Fix typo in t-dimode
[official-gcc.git] / gcc / ChangeLog
blobe1e381e19058dfa4b4d42100eceb5e81023b368b
1 2021-11-27  Martin Jambor  <mjambor@suse.cz>
3         PR ipa/103441
4         * ipa-prop.c (ipcp_transform_function): Call
5         delete_unreachable_blocks_update_callgraph instead of returning
6         TODO_cleanup_cfg.
8 2021-11-26  Siddhesh Poyarekar  <siddhesh@gotplt.org>
10         * tree-object-size.c (object_sizes_grow, object_sizes_release,
11         object_sizes_unknown_p, object_sizes_get, object_size_set_force,
12         object_sizes_set): New functions.
13         (addr_object_size, compute_builtin_object_size,
14         expr_object_size, call_object_size, unknown_object_size,
15         merge_object_sizes, plus_stmt_object_size,
16         cond_expr_object_size, collect_object_sizes_for,
17         check_for_plus_in_loops_1, init_object_sizes,
18         fini_object_sizes): Adjust.
20 2021-11-26  Siddhesh Poyarekar  <siddhesh@gotplt.org>
22         * tree-object-size.c: New enum.
23         (object_sizes, computed, addr_object_size,
24         compute_builtin_object_size, expr_object_size, call_object_size,
25         merge_object_sizes, plus_stmt_object_size,
26         collect_object_sizes_for, init_object_sizes, fini_object_sizes,
27         object_sizes_execute): Replace magic numbers with enums.
29 2021-11-26  Roger Sayle  <roger@nextmovesoftware.com>
31         * tree-ssa-loop-ivopts.c (cand_value_at): Take a class
32         tree_niter_desc* argument instead of just a tree for NITER.
33         If we require the iv candidate value at the end of the final
34         loop iteration, try using the original loop bound as the
35         NITER for sufficiently simple loops.
36         (may_eliminate_iv): Update (only) call to cand_value_at.
38 2021-11-26  Jan Hubicka  <hubicka@ucw.cz>
40         * ipa-modref.c (analyze_function): Drop parameter F and dump
41         cgraph node name rather than cfun name.
42         (modref_generate): Update.
43         (modref_summaries::insert):Update.
44         (modref_summaries_lto::insert):Update.
45         (pass_modref::execute):Update.
46         (ipa_merge_modref_summary_after_inlining): Improve combining of
47         ECF_FLAGS.
49 2021-11-26  Jan Hubicka  <jh@suse.cz>
51         PR ipa/102943
52         * ipa-modref.c (update_escape_summary_1): Fix handling of min_flags.
54 2021-11-26  konglin1  <lingling.kong@intel.com>
56         PR target/102811
57         * config/i386/i386.c (ix86_can_change_mode_class): Allow 16 bit data in XMM register
58         for TARGET_SSE2.
59         * config/i386/i386.md (extendhfsf2): Add extenndhfsf2 for TARGET_F16C.
60         (extendhfdf2): Restrict extendhfdf for TARGET_AVX512FP16 only.
61         (*extendhf<mode>2): Rename from extendhf<mode>2.
62         (truncsfhf2): Likewise.
63         (truncdfhf2): Likewise.
64         (*trunc<mode>2): Likewise.
66 2021-11-26  liuhongt  <hongtao.liu@intel.com>
68         PR middle-end/103419
69         * match.pd: Fix typo, use the type of second parameter, not
70         first one.
72 2021-11-25  Jan Hubicka  <jh@suse.cz>
74         * ipa-cp.c (ipa_value_range_from_jfunc): Remove forgotten early return.
76 2021-11-25  Roger Sayle  <roger@nextmovesoftware.com>
78         PR middle-end/103406
79         * match.pd (minus @0 @0): Check tree_expr_maybe_infinite_p.
81 2021-11-25  Martin Jambor  <mjambor@suse.cz>
83         PR ipa/103227
84         * ipa-prop.h (ipa_get_param): New overload.  Move bits of the existing
85         one to the new one.
86         * ipa-param-manipulation.h (ipa_param_adjustments): New member
87         function get_updated_index_or_split.
88         * ipa-param-manipulation.c
89         (ipa_param_adjustments::get_updated_index_or_split): New function.
90         * ipa-prop.c (adjust_agg_replacement_values): Reimplement, add
91         capability to identify scalarized parameters and perform substitution
92         on them.
93         (ipcp_transform_function): Create descriptors earlier, handle new
94         return values of adjust_agg_replacement_values.
96 2021-11-25  Aldy Hernandez  <aldyh@redhat.com>
98         * gimple-range-path.cc (path_range_query::compute_ranges_defined): Remove.
99         (path_range_query::compute_ranges_in_block): Revert to bitmap order.
100         * gimple-range-path.h: Remove compute_ranges_defined.
102 2021-11-25  Andrew Stubbs  <ams@codesourcery.com>
104         PR target/103396
105         * config/gcn/gcn.c (move_callee_saved_registers): Ensure that the
106         number of spilled registers is counted correctly.
108 2021-11-25  Jan Hubicka  <hubicka@ucw.cz>
110         * ipa-prop.h (ipa_node_params::ipa_node_params): Initialize
111         node_is_self_scc.
113 2021-11-25  Andrew MacLeod  <amacleod@redhat.com>
115         PR tree-optimization/103359
116         * gimple-range-fold.cc (fold_using_range::range_of_phi): If arg is
117         equivalent to def, don't initially include it's range.
119 2021-11-25  Jan Hubicka  <hubicka@ucw.cz>
121         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Do not check
122         gimple_static_chain.
124 2021-11-25  Richard Biener  <rguenther@suse.de>
126         * cgraphunit.c (symbol_table::output_weakrefs): Remove
127         unreachable init.
128         (get_alias_symbol): Remove now unused function.
130 2021-11-25  Richard Biener  <rguenther@suse.de>
132         * cfgrtl.c (rtl_verify_fallthru): Do not stop verifying
133         with fatal_insn.
134         (skip_insns_after_block): Remove unreachable break and continue.
136 2021-11-25  Richard Biener  <rguenther@suse.de>
138         * cfgexpand.c (label_rtx_for_bb): Remove dead loop construct.
140 2021-11-25  Richard Biener  <rguenther@suse.de>
142         * regset.h (REG_SET_EMPTY_P): New macro.
143         * cfgcleanup.c (thread_jump): Use REG_SET_EMPTY_P.
145 2021-11-25  Martin Liska  <mliska@suse.cz>
147         * doc/invoke.texi: Use @option for -Wuninitialized.
149 2021-11-25  Aldy Hernandez  <aldyh@redhat.com>
151         PR tree-optimization/103254
152         * gimple-range-path.cc (path_range_query::compute_ranges): Move
153         exported boolean code...
154         (path_range_query::compute_imports): ...here.
156 2021-11-25  Aldy Hernandez  <aldyh@redhat.com>
158         PR tree-optimization/103254
159         * gimple-range-path.cc (path_range_query::compute_ranges_defined): New
160         (path_range_query::compute_ranges_in_block): Move to
161         compute_ranges_defined.
162         * gimple-range-path.h (compute_ranges_defined): New.
164 2021-11-25  Jakub Jelinek  <jakub@redhat.com>
166         PR tree-optimization/103417
167         * match.pd ((X & Y) CMP 0): Only handle eq and ne.  Commonalize
168         common tests.
170 2021-11-25  Jakub Jelinek  <jakub@redhat.com>
172         PR tree-optimization/103376
173         * gimple-ssa-store-merging.c (perform_symbolic_merge): For
174         BIT_IOR_EXPR, if masked1 && masked2 && masked1 != masked2, don't
175         punt, but set the corresponding result byte to MARKER_BYTE_UNKNOWN.
176         For BIT_XOR_EXPR similarly and if masked1 == masked2 and the
177         byte isn't MARKER_BYTE_UNKNOWN, set the corresponding result byte to
178         0.
180 2021-11-25  Jakub Jelinek  <jakub@redhat.com>
182         PR c++/102611
183         * doc/invoke.texi (-Wcomma-subscript): Document that for
184         -std=c++20 the option isn't enabled by default with -Wno-deprecated
185         but for -std=c++23 it is.
187 2021-11-24  Jan Hubicka  <hubicka@ucw.cz>
189         * ipa-modref.c (implicit_eaf_flags_for_edge_and_arg): Break out from...
190         (modref_merge_call_site_flags): ... here.
191         (ipa_merge_modref_summary_after_inlining): Use it.
193 2021-11-24  Thomas Schwinge  <thomas@codesourcery.com>
195         * cfgloop.c (verify_loop_structure): Reduce scope of
196         'class loop *loop' variable.
197         * ipa-fnsummary.c (analyze_function_body): Likewise.
198         * loop-init.c (fix_loop_structure): Likewise.
199         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
200         * predict.c (predict_loops): Likewise.
201         * tree-loop-distribution.c (loop_distribution::execute): Likewise.
202         * tree-vectorizer.c (pass_vectorize::execute): Likewise.
204 2021-11-24  Andrew MacLeod  <amacleod@redhat.com>
206         PR tree-optimization/103231
207         * gimple-range.cc (gimple_ranger::gimple_ranger): Create stmt stack.
208         (gimple_ranger::gimple_ranger): Delete stmt stack.
209         (gimple_ranger::range_of_stmt): Process depenedencies if they have no
210         global cache entry.
211         (gimple_ranger::prefill_name): New.
212         (gimple_ranger::prefill_stmt_dependencies): New.
213         * gimple-range.h (class gimple_ranger): Add prototypes.
215 2021-11-24  Andrew MacLeod  <amacleod@redhat.com>
217         * gimple-range-cache.cc (ranger_cache::get_global_range): Always
218         return a range, return if it came from the cache or not.
219         (get_non_stale_global_range): Rename to get_global_range, and return
220         the temporal state in a flag.
221         * gimple-range-cache.h (get_non_stale_global_range): Rename and adjust.
222         * gimple-range.cc (gimple_ranger::range_of_expr): No need to query
223         get_global_range.
224         (gimple_ranger::range_of_stmt): Adjust for global cache temporal state
225         returned in a flag.
227 2021-11-24  Andrew MacLeod  <amacleod@redhat.com>
229         * gimple-range.cc (gimple_ranger::range_on_edge): Call trailer when
230         a constant is encountered to terminate the trace.
232 2021-11-24  Maciej W. Rozycki  <macro@embecosm.com>
234         PR middle-end/103059
235         * reload.c (find_reloads_address_1): Also accept the ASHIFT form
236         of indexed addressing.
237         (find_reloads): Adjust accordingly.
239 2021-11-24  Richard Biener  <rguenther@suse.de>
240             Jan Hubicka  <jh@suse.cz>
242         PR tree-optimization/103168
243         * ipa-modref.h (struct modref_summary): Add load_accesses.
244         * ipa-modref.c (modref_summary::finalize): Initialize load_accesses.
245         * tree-ssa-sccvn.c (visit_reference_op_call): Use modref
246         info to walk the virtual use->def chain to CSE const/pure
247         function calls possibly reading from memory.
249 2021-11-24  Thomas Schwinge  <thomas@codesourcery.com>
251         PR middle-end/103244
252         * gimplify.c (gimplify_adjust_omp_clauses): Restore previous
253         OpenACC behavior.
255 2021-11-24  Richard Biener  <rguenther@suse.de>
257         PR middle-end/103193
258         * match.pd: Avoid canonicalizing (le/ge @0 @0) to (eq @0 @0)
259         with NaNs and -ftrapping-math.
261 2021-11-24  Jakub Jelinek  <jakub@redhat.com>
263         PR middle-end/103384
264         * omp-general.c (omp_context_selector_matches): For ACCEL_COMPILER,
265         return 0 for kind(host) and continue for kind(nohost).
267 2021-11-24  Jakub Jelinek  <jakub@redhat.com>
269         PR middle-end/103365
270         * attribs.h (lookup_attribute): Allow attr_name to start with
271         underscore, as long as canonicalize_attr_name returns false.
272         (lookup_attribute_by_prefix): Don't call get_attribute_name twice.
273         * attribs.c (extract_attribute_substring): Reimplement using
274         canonicalize_attr_name.
275         (register_scoped_attribute): Change gcc_assert into
276         gcc_checking_assert, verify !canonicalize_attr_name rather than
277         that str.str doesn't start with '_'.
279 2021-11-24  Jakub Jelinek  <jakub@redhat.com>
281         PR tree-optimization/103376
282         * gimple-ssa-store-merging.c (perform_symbolic_merge): Add CODE
283         argument.  If CODE is not BIT_IOR_EXPR, ensure that one of masked1
284         or masked2 is 0.
285         (find_bswap_or_nop_1, find_bswap_or_nop,
286         imm_store_chain_info::try_coalesce_bswap): Adjust
287         perform_symbolic_merge callers.
289 2021-11-24  Richard Biener  <rguenther@suse.de>
291         * tree-ssa-loop-ivopts.c (find_givs): Take loop body as
292         argument instead of re-computing it.
293         (find_interesting_uses): Likewise.
294         (find_induction_variables): Pass through loop body.
295         (tree_ssa_iv_optimize_loop): Pass down loop body.
297 2021-11-24  Tamar Christina  <tamar.christina@arm.com>
299         * tree-ssa-phiopt.c (spaceship_replacement): Handle new canonical
300         codegen.
302 2021-11-24  Tamar Christina  <tamar.christina@arm.com>
304         * tree.c (bitmask_inv_cst_vector_p): New.
305         * tree.h (bitmask_inv_cst_vector_p): New.
306         * match.pd: Use it in new bitmask compare pattern.
308 2021-11-24  Jason Merrill  <jason@redhat.com>
310         * timevar.h (class auto_cond_timevar): New.
312 2021-11-24  Hongtao Liu  <hongtao.liu@intel.com>
313             H.J. Lu  <hongjiu.lu@intel.com>
315         PR tree-optimization/103194
316         * match.pd (gimple_nop_atomic_bit_test_and_p): Extended to
317         match truncation.
318         * tree-ssa-ccp.c (gimple_nop_convert): Declare.
319         (optimize_atomic_bit_test_and): Enhance
320         optimize_atomic_bit_test_and to handle truncation.
322 2021-11-23  Martin Sebor  <msebor@redhat.com>
324         PR middle-end/88232
325         * Makefile.in (OBJS): Add gimple-warn-recursion.o.
326         * common.opt: Add -Winfinite-recursion.
327         * doc/invoke.texi (-Winfinite-recursion): Document.
328         * passes.def (pass_warn_recursion): Schedule a new pass.
329         * tree-pass.h (make_pass_warn_recursion): Declare.
330         * gimple-warn-recursion.c: New file.
332 2021-11-23  Bill Schmidt  <wschmidt@linux.ibm.com>
334         * config/rs6000/rs6000-call.c (rs6000_invalid_new_builtin): Change
335         error messages for ENB_P8V and ENB_P9V.
337 2021-11-23  Bill Schmidt  <wschmidt@linux.ibm.com>
339         * config/rs6000/rs6000-builtin-new.def: Add power6-64 stanza.  Move
340         CMPB to power6-64 stanza.
341         * config/rs6000/rs6000-call.c (rs6000_invalid_new_builtin): Handle
342         ENB_P6_64 case.
343         (rs6000_new_builtin_is_supported): Likewise.
344         (rs6000_expand_new_builtin): Likewise.  Clean up formatting.
345         (rs6000_init_builtins): Handle ENB_P6_64 case.
346         * config/rs6000/rs6000-gen-builtins.c (bif_stanza): Add BSTZ_P6_64.
347         (stanza_map): Add entry mapping power6-64 to BSTZ_P6_64.
348         (enable_string): Add "ENB_P6_64".
349         (write_decls): Add ENB_P6_64 to bif_enable enum.
351 2021-11-23  Jan Hubicka  <jh@suse.cz>
353         * ipa-modref-tree.h (struct modref_tree): Remove max_bases, max_refs
354         and max_accesses.
355         (modref_tree::modref_tree): Remove parametr.
356         (modref_tree::insert_base): Add max_bases parameter.
357         (modref_tree::insert): Add max_bases, max_refs, max_accesses
358         parameters.
359         (modref_tree::insert): New member function.
360         (modref_tree::merge): Add max_bases, max_refs, max_accesses
361         parameters.
362         (modref_tree::insert): New member function.
363         * ipa-modref-tree.c (test_insert_search_collapse): Update.
364         (test_merge): Update.
365         * ipa-modref.c (dump_records): Don't dump max_refs and max_bases.
366         (dump_lto_records): Likewise.
367         (modref_summary::finalize): Fix whitespace.
368         (get_modref_function_summary): Likewise.
369         (modref_access_analysis::record_access): Update.
370         (modref_access_analysis::record_access_lto): Update.
371         (modref_access_analysis::process_fnspec): Update.
372         (analyze_function): Update.
373         (modref_summaries::duplicate): Update.
374         (modref_summaries_lto::duplicate): Update.
375         (write_modref_records): Update.
376         (read_modref_records): Update.
377         (read_section): Update.
378         (propagate_unknown_call): Update.
379         (modref_propagate_in_scc): Update.
380         (ipa_merge_modref_summary_after_inlining): Update.
382 2021-11-23  Martin Liska  <mliska@suse.cz>
384         * doc/invoke.texi: Remove 2 more duplicite param descriptions.
386 2021-11-23  Richard Biener  <rguenther@suse.de>
388         PR tree-optimization/103361
389         * gimple-loop-jam.c (adjust_unroll_factor): Use lambda_int
390         for the dependence distance.
391         * tree-data-ref.c (print_lambda_vector): Properly print a lambda_int.
393 2021-11-23  Jakub Jelinek  <jakub@redhat.com>
395         * tree-inline.h (struct copy_body_data): Remove
396         transform_lang_insert_block member.
397         * tree-inline.c (remap_block): Don't call
398         id->transform_lang_insert_block.
399         (optimize_inline_calls, copy_gimple_seq_and_replace_locals,
400         tree_function_versioning, maybe_inline_call_in_expr,
401         copy_fn): Don't initialize id.transform_lang_insert_block.
402         * gimplify.c (gimplify_omp_loop): Likewise.
404 2021-11-23  Jan Hubicka  <hubicka@ucw.cz>
406         PR tree-optimization/103335
407         * tree-ssa-dse.c (valid_ao_ref_for_dse): Rename to ...
408         (valid_ao_ref_kill_for_dse): ... this; do not check that boundaries
409         are divisible by BITS_PER_UNIT.
410         (get_byte_aligned_range_containing_ref): New function.
411         (get_byte_aligned_range_contained_in_ref): New function.
412         (normalize_ref): Rename to ...
413         (get_byte_range): ... this one; handle accesses not aligned to byte
414         boundary; return range in bytes rater than updating ao_ref.
415         (clear_live_bytes_for_ref): Take write ref by reference; simplify using
416         get_byte_access.
417         (setup_live_bytes_from_ref): Likewise.
418         (clear_bytes_written_by): Update.
419         (live_bytes_read): Update.
420         (dse_classify_store): Simplify tech before live_bytes_read checks.
422 2021-11-23  Andrew Pinski  <apinski@marvell.com>
424         PR tree-optimization/102216
425         * gimple-fold.c (fold_stmt_1): Add canonicalization
426         of "&MEM[ssa_n, CST]" to "ssa_n p+ CST", note this
427         can only be done if !in_place.
429 2021-11-23  Jakub Jelinek  <jakub@redhat.com>
431         PR middle-end/102431
432         * gimplify.c (replace_reduction_placeholders): Remove.
433         (note_no_context_vars): New function.
434         (gimplify_omp_loop): For OMP_PARALLEL's BIND_EXPR create a new
435         BLOCK.  Use copy_tree_body_r with walk_tree instead of unshare_expr
436         and replace_reduction_placeholders for duplication of
437         OMP_CLAUSE_REDUCTION_{INIT,MERGE} expressions.  Ensure all mentioned
438         automatic vars have DECL_CONTEXT set to non-NULL before doing so
439         and reset it afterwards for those vars and their corresponding
440         vars.
442 2021-11-23  Haochen Gui  <guihaoc@gcc.gnu.org>
444         PR target/100868
445         * config/rs6000/altivec.md (altivec_vreve<mode>2 for VEC_K): Use
446         xxbrq for v16qi, xxbrq + xxbrh for v8hi and xxbrq + xxbrw for v4si
447         or v4sf when p9_vector is set.
448         (altivec_vreve<mode>2 for VEC_64): Defined. Implemented by xxswapd.
450 2021-11-23  Navid Rahimi  <navidrahimi@microsoft.com>
452         PR tree-optimization/102232
453         * match.pd (x * (1 + y / x) - y) -> (x - y % x): New optimization.
455 2021-11-23  Navid Rahimi  <navidrahimi@microsoft.com>
457         PR tree-optimization/96779
458         * match.pd (-x == x) -> (x == 0): New optimization.
460 2021-11-22  Roger Sayle  <roger@nextmovesoftware.com>
462         PR tree-optimization/98953
463         PR tree-optimization/103345
464         * gimple-ssa-store-merging.c (find_bswap_or_nop_1): Handle
465         BIT_XOR_EXPR and PLUS_EXPR the same as BIT_IOR_EXPR.
466         (pass_optimize_bswap::execute): Likewise.
468 2021-11-22  Martin Liska  <mliska@suse.cz>
470         * doc/invoke.texi: Remove duplicate documentation for 3 params.
472 2021-11-22  Richard Biener  <rguenther@suse.de>
474         PR tree-optimization/103351
475         * tree-ssa-dce.c (sort_phi_args): Sort after e->dest_idx as
476         second key.
478 2021-11-22  liuhongt  <hongtao.liu@intel.com>
480         PR target/103275
481         * config/i386/constraints.md (Bk): New
482         define_memory_constraint.
483         * config/i386/i386-protos.h (ix86_gpr_tls_address_pattern_p):
484         Declare.
485         * config/i386/i386.c (ix86_gpr_tls_address_pattern_p): New
486         function.
487         * config/i386/i386.md (*movsi_internal): Don't allow
488         mask/sse/mmx move in TLS code sequences.
489         (*movdi_internal): Ditto.
491 2021-11-22  Kewen Lin  <linkw@linux.ibm.com>
493         * config/xtensa/xtensa.md (movdi_internal, movdf_internal): Fix split
494         condition.
496 2021-11-21  Jakub Jelinek  <jakub@redhat.com>
498         PR c++/101180
499         * config/i386/i386-options.c (ix86_valid_target_attribute_p): If
500         fndecl already has DECL_FUNCTION_SPECIFIC_TARGET, use that as base
501         instead of target_option_default_node.
503 2021-11-21  Jan Hubicka  <hubicka@ucw.cz>
505         PR ipa/103227
506         * ipa-modref.c (parm_map_for_arg): Rename to ...
507         (parm_map_for_ptr): .. this one; handle static chain and calls to
508         malloc functions.
509         (modref_access_analysis::get_access): Use parm_map_for_ptr.
510         (modref_access_analysis::process_fnspec): Update.
511         (modref_access_analysis::analyze_load): Update.
512         (modref_access_analysis::analyze_store): Update.
514 2021-11-21  Jan Hubicka  <hubicka@ucw.cz>
516         * ipa-modref.c (ignore_nondeterminism_p): Move earlier in source
517         code.
518         (ignore_retval_p): Likewise.
519         (ignore_stores_p): Likewise.
520         (parm_map_for_arg): Likewise.
521         (class modref_access_analysis): New class.
522         (modref_access_analysis::set_side_effects): New member function.
523         (modref_access_analysis::set_nondeterministic): New member function.
524         (get_access): Turn to ...
525         (modref_access_analysis::get_access): ... this one.
526         (record_access): Turn to ...
527         (modref_access_analysis::record_access): ... this one.
528         (record_access_lto): Turn to ...
529         (modref_access_analysis::record_access_lto): ... This one.
530         (record_access_p): Turn to ...
531         (modref_access_analysis::record_access_p): ... This one
532         (modref_access_analysis::record_unknown_load): New member function.
533         (modref_access_analysis::record_unknown_store): New member function.
534         (get_access_for_fnspec): Turn to ...
535         (modref_access_analysis::get_access_for_fnspec): ... this one.
536         (merge_call_side_effects): Turn to ...
537         (moderf_access_analysis::merge_call_side_effects): Turn to ...
538         (collapse_loads): Move later in source code.
539         (collapse_stores): Move later in source code.
540         (process_fnspec): Turn to ...
541         (modref_access_analysis::process_fnspec): ... this one.
542         (analyze_call): Turn to ...
543         (modref_access_analysis::analyze_call): ... this one.
544         (struct summary_ptrs): Remove.
545         (analyze_load): Turn to ...
546         (modref_access_analysis::analyze_load): ... this one.
547         (analyze_store): Turn to ...
548         (modref_access_analysis::analyze_store): ... this one.
549         (analyze_stmt): Turn to ...
550         (modref_access_analysis::analyze_stmt): ... This one.
551         (remove_summary): Remove.
552         (modref_access_analysis::propagate): Break out from ...
553         (modref_access_analysis::analyze): Break out from ...
554         (analyze_function): ... here.
556 2021-11-21  Roger Sayle  <roger@nextmovesoftware.com>
557             Robin Dapp  <rdapp@linux.ibm.com>
559         PR target/102117
560         * tree-ssa-math-opts.c (convert_mult_to_widen): Recognize
561         signed WIDEN_MULT_EXPR if the target supports umul_widen_optab.
563 2021-11-20  Jan Hubicka  <hubicka@ucw.cz>
565         PR ipa/103052
566         * ipa-modref.c (ignore_nondeterminism_p): Allow looping pure/cont.
567         (merge_call_side_effects): Improve debug output.
569 2021-11-20  Jan Hubicka  <hubicka@ucw.cz>
571         PR ipa/103052
572         * ipa-pure-const.c (propagate_pure_const): Fix merging of loping flag.
574 2021-11-20  Jeff Law  <jeffreyalaw@gmail.com>
576         PR tree-optimization/103226
577         * config/bfin/bfin.md (doloop pattern, splitter and expander): Clobber
578         CC.
580 2021-11-20  Andrew Pinski  <apinski@marvell.com>
582         PR tree-optimization/103220
583         * match.pd ((type) X bitop CST): Don't check if CST
584         fits into the type if only the sign changes.
586 2021-11-20  Alexandre Oliva  <oliva@adacore.com>
588         PR tree-optimization/102988
589         * gimple-harden-conditionals.cc (detach_value): Copy SSA_NAME
590         without decl sharing.
592 2021-11-19  Iain Sandoe  <iain@sandoe.co.uk>
594         * doc/invoke.texi: Remove whitespace after an @option.
596 2021-11-19  Paul A. Clarke  <pc@us.ibm.com>
598         * config/rs6000/emmintrin.h (_mm_sad_epu8): Use vec_absd when
599         _ARCH_PWR9, optimize vec_sum2s when LE.
601 2021-11-19  Iain Sandoe  <iain@sandoe.co.uk>
603         PR target/80556
604         * config/darwin-driver.c (darwin_driver_init): Handle exported
605         symbols and symbol lists (suppress automatic export of the TLS
606         symbols).
607         * config/darwin.c (darwin_rename_builtins): Remove workaround.
608         * config/darwin.h (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
609         (REAL_LIBGCC_SPEC): Handle revised library uses.
610         * config/darwin.opt (nodefaultexport): New.
611         * config/i386/darwin.h (PR80556_WORKAROUND): Remove.
612         * config/i386/darwin32-biarch.h (PR80556_WORKAROUND): Likewise.
613         * config/i386/darwin64-biarch.h (PR80556_WORKAROUND): Likewise.
615 2021-11-19  Martin Jambor  <mjambor@suse.cz>
617         * opts.c (default_options_table): Switch off
618         flag_semantic_interposition at Ofast.
619         * doc/invoke.texi (Optimize Options): Document that Ofast switches off
620         -fsemantic-interposition.
622 2021-11-19  Jan Hubicka  <hubicka@ucw.cz>
624         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Do not guard modref
625         by !gimple_call_chain.
627 2021-11-19  Martin Sebor  <msebor@redhat.com>
629         PR c++/33925
630         PR c/102867
631         * doc/invoke.texi (-Waddress): Update.
633 2021-11-19  Andrew MacLeod  <amacleod@redhat.com>
635         PR tree-optimization/103254
636         * gimple-range-gori.cc (range_def_chain::get_def_chain): Limit the
637         depth for all statements with multple ssa names.
639 2021-11-19  Stefan Schulze Frielinghaus  <stefansf@linux.ibm.com>
641         * config/s390/s390.md (define_peephole2): Variable insn points
642         to the first matched insn.  Use peep2_next_insn(1) to refer to
643         the second matched insn.
645 2021-11-19  Tamar Christina  <tamar.christina@arm.com>
647         PR tree-optimization/103311
648         PR target/103330
649         * tree-vect-slp-patterns.c (vect_validate_multiplication): Fix CONJ
650         test to new codegen.
651         (complex_mul_pattern::matches): Move check downwards.
653 2021-11-19  Martin Liska  <mliska@suse.cz>
655         Revert:
656         2021-11-19  Martin Liska  <mliska@suse.cz>
658         * cfgexpand.c (pass_expand::execute): Use option directly.
659         * function.c (allocate_struct_function): Likewise.
660         * gimple-low.c (lower_function_body): Likewise.
661         (lower_stmt): Likewise.
662         * gimple-ssa-backprop.c (backprop::prepare_change): Likewise.
663         * ipa-param-manipulation.c (ipa_param_adjustments::modify_call): Likewise.
664         * ipa-split.c (split_function): Likewise.
665         * lto-streamer-in.c (input_function): Likewise.
666         * sese.c (sese_insert_phis_for_liveouts): Likewise.
667         * ssa-iterators.h (num_imm_uses): Likewise.
668         * tree-cfg.c (make_blocks): Likewise.
669         (gimple_merge_blocks): Likewise.
670         * tree-inline.c (tree_function_versioning): Likewise.
671         * tree-loop-distribution.c (generate_loops_for_partition): Likewise.
672         * tree-sra.c (analyze_access_subtree): Likewise.
673         * tree-ssa-dce.c (remove_dead_stmt): Likewise.
674         * tree-ssa-loop-ivopts.c (remove_unused_ivs): Likewise.
675         * tree-ssa-phiopt.c (spaceship_replacement): Likewise.
676         * tree-ssa-reassoc.c (reassoc_remove_stmt): Likewise.
677         * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
678         * tree-ssa-threadedge.c (propagate_threaded_block_debug_into): Likewise.
679         * tree-ssa.c (gimple_replace_ssa_lhs): Likewise.
680         (target_for_debug_bind): Likewise.
681         (insert_debug_temp_for_var_def): Likewise.
682         (insert_debug_temps_for_defs): Likewise.
683         (reset_debug_uses): Likewise.
684         * tree-ssanames.c (release_ssa_name_fn): Likewise.
685         * tree-vect-loop-manip.c (adjust_vec_debug_stmts): Likewise.
686         (adjust_debug_stmts): Likewise.
687         (adjust_phi_and_debug_stmts): Likewise.
688         (vect_do_peeling): Likewise.
689         * tree-vect-loop.c (vect_transform_loop_stmt): Likewise.
690         (vect_transform_loop): Likewise.
691         * tree.h (MAY_HAVE_DEBUG_MARKER_STMTS): Remove
692         (MAY_HAVE_DEBUG_BIND_STMTS): Remove.
693         (MAY_HAVE_DEBUG_STMTS): Use options directly.
695 2021-11-19  Giuliano Belinassi  <gbelinassi@suse.de>
697         * gcc.c (process_command): Skip dumpdir override if file is a
698         not_actual_file_p.
699         * doc/invoke.texi: Update -dumpdir documentation.
701 2021-11-19  Andrew Pinski  <apinski@marvell.com>
703         PR tree-optimization/103314
704         * match.pd ((type) X op CST): Restrict the equal
705         TYPE_PRECISION case to GIMPLE only.
707 2021-11-19  Martin Liska  <mliska@suse.cz>
709         PR ipa/103230
710         * ipa-modref-tree.h (struct modref_parm_map): Add default
711         constructor.
712         * ipa-modref.c (ipa_merge_modref_summary_after_inlining): Use it.
714 2021-11-19  Richard Biener  <rguenther@suse.de>
716         PR middle-end/103248
717         * tree-eh.c (operation_could_trap_helper_p): Properly handle
718         fixed-point RDIV_EXPR.
720 2021-11-19  Richard Biener  <rguenther@suse.de>
722         PR tree-optimization/102436
723         * tree-ssa-loop-im.c (execute_sm_if_changed): Add mode
724         to just create the if structure and return the then block.
725         (execute_sm): Add flag to indicate the var will re-use
726         another flag var.
727         (hoist_memory_references): Support a single conditional
728         block with all stores as special case.
730 2021-11-19  Andrew Pinski  <apinski@marvell.com>
732         PR tree-optimization/103317
733         * tree-ssa-phiopt.c (minmax_replacement): For the non empty
734         middle bb case, check to make sure it has a single predecessor.
736 2021-11-19  Andrew Pinski  <apinski@marvell.com>
738         PR tree-optimization/103257
739         * match.pd
740         ((m1 >/</>=/<= m2) * d -> (m1 >/</>=/<= m2) ? d : 0):
741         Disable until !canonicalize_math_p ().
743 2021-11-19  Marek Polacek  <polacek@redhat.com>
745         PR c++/19808
746         PR c++/96121
747         * doc/invoke.texi: Update documentation for -Wuninitialized.
748         * tree.c (stabilize_reference): Set location.
750 2021-11-19  liuhongt  <hongtao.liu@intel.com>
752         PR target/102543
753         * config/i386/x86-tune-costs.h (skylake_cost): Reduce cost of
754         storing 256/512-bit SSE register to be equal to cost of
755         unaligned store to avoid odd alignment peeling.
756         (icelake_cost): Ditto.
758 2021-11-18  David Edelsohn  <dje.gcc@gmail.com>
760         * config/rs6000/predicates.md (current_file_function_operand):
761         Add flag_semantic_interposition to call of decl_replaceable_p.
763 2021-11-18  Martin Liska  <mliska@suse.cz>
765         * ipa-modref.c (analyze_function): Do not execute the code
766         only if dump_file != NULL.
768 2021-11-18  Martin Liska  <mliska@suse.cz>
770         * ipa-modref.c (analyze_function): Use fnode instead of repeated
771         cgraph_node::get (current_function_decl).
773 2021-11-18  Jan Hubicka  <hubicka@ucw.cz>
775         * cgraph.c (cgraph_node::get_availability): Update call of
776         decl_replaceable_p.
777         (cgraph_node::verify_node): Verify that semantic_interposition flag
778         is set correclty.
779         * cgraph.h: (symtab_node): Add semantic_interposition flag.
780         * cgraphclones.c (set_new_clone_decl_and_node_flags): Clear
781         semantic_interposition flag.
782         * cgraphunit.c (cgraph_node::finalize_function): Set
783         semantic_interposition flag.
784         (cgraph_node::add_new_function): Likewise.
785         (varpool_node::finalize_decl): Likewise.
786         (cgraph_node::create_wrapper): Likewise.
787         * common.opt (fsemantic-interposition): Turn to optimization node.
788         * lto-cgraph.c (lto_output_node): Stream semantic_interposition.
789         (lto_output_varpool_node): Likewise.
790         (input_overwrite_node): Likewise.
791         (input_varpool_node): Likewise.
792         * symtab.c (symtab_node::dump_base): Dump new flag.
793         * varasm.c (decl_replaceable_p): Add semantic_interposition_p
794         parameter.
795         * varasm.h (decl_replaceable_p): Update declaration.
796         * varpool.c (varpool_node::ctor_useable_for_folding_p):
797         Use semantic_interposition flag.
798         (varpool_node::get_availability): Likewise.
799         (varpool_node::create_alias): Copy semantic_interposition flag.
801 2021-11-18  Jan Hubicka  <hubicka@ucw.cz>
803         PR ipa/103266
804         * ipa-modref.c (modref_eaf_analysis::merge_call_lhs_flags): Unused
805         parameter may still be returned.
806         (modref_eaf_analysis::analyze_ssa_name): Call merge_call_lhs_flags
807         even for unused function args.
809 2021-11-18  Tamar Christina  <tamar.christina@arm.com>
811         PR tree-optimization/103311
812         * tree-vect-slp-patterns.c (complex_mul_pattern::matches,
813         complex_fms_pattern::matches): Check for multiplications.
815 2021-11-18  H.J. Lu  <hjl.tools@gmail.com>
817         PR target/102952
818         * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): Emit
819         CS prefix for -mindirect-branch-cs-prefix.
820         (ix86_output_indirect_branch_via_reg): Likewise.
821         * config/i386/i386.opt: Add -mindirect-branch-cs-prefix.
822         * doc/invoke.texi: Document -mindirect-branch-cs-prefix.
824 2021-11-18  David Edelsohn  <dje.gcc@gmail.com>
826         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
827         power10.
829 2021-11-18  Tamar Christina  <tamar.christina@arm.com>
831         PR tree-optimization/103253
832         * tree-ssa-math-opts.c (convert_mult_to_fma): Check for LHS.
834 2021-11-18  Matthias Kretz  <m.kretz@gsi.de>
836         * doc/extend.texi: Document __builtin_assoc_barrier.
838 2021-11-18  Martin Liska  <mliska@suse.cz>
840         * cfgexpand.c (pass_expand::execute): Use option directly.
841         * function.c (allocate_struct_function): Likewise.
842         * gimple-low.c (lower_function_body): Likewise.
843         (lower_stmt): Likewise.
844         * gimple-ssa-backprop.c (backprop::prepare_change): Likewise.
845         * ipa-param-manipulation.c (ipa_param_adjustments::modify_call): Likewise.
846         * ipa-split.c (split_function): Likewise.
847         * lto-streamer-in.c (input_function): Likewise.
848         * sese.c (sese_insert_phis_for_liveouts): Likewise.
849         * ssa-iterators.h (num_imm_uses): Likewise.
850         * tree-cfg.c (make_blocks): Likewise.
851         (gimple_merge_blocks): Likewise.
852         * tree-inline.c (tree_function_versioning): Likewise.
853         * tree-loop-distribution.c (generate_loops_for_partition): Likewise.
854         * tree-sra.c (analyze_access_subtree): Likewise.
855         * tree-ssa-dce.c (remove_dead_stmt): Likewise.
856         * tree-ssa-loop-ivopts.c (remove_unused_ivs): Likewise.
857         * tree-ssa-phiopt.c (spaceship_replacement): Likewise.
858         * tree-ssa-reassoc.c (reassoc_remove_stmt): Likewise.
859         * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
860         * tree-ssa-threadedge.c (propagate_threaded_block_debug_into): Likewise.
861         * tree-ssa.c (gimple_replace_ssa_lhs): Likewise.
862         (target_for_debug_bind): Likewise.
863         (insert_debug_temp_for_var_def): Likewise.
864         (insert_debug_temps_for_defs): Likewise.
865         (reset_debug_uses): Likewise.
866         * tree-ssanames.c (release_ssa_name_fn): Likewise.
867         * tree-vect-loop-manip.c (adjust_vec_debug_stmts): Likewise.
868         (adjust_debug_stmts): Likewise.
869         (adjust_phi_and_debug_stmts): Likewise.
870         (vect_do_peeling): Likewise.
871         * tree-vect-loop.c (vect_transform_loop_stmt): Likewise.
872         (vect_transform_loop): Likewise.
873         * tree.h (MAY_HAVE_DEBUG_MARKER_STMTS): Remove
874         (MAY_HAVE_DEBUG_BIND_STMTS): Remove.
875         (MAY_HAVE_DEBUG_STMTS): Use options directly.
877 2021-11-18  Richard Biener  <rguenther@suse.de>
879         PR tree-optimization/103277
880         * tree-ssa-dse.c (need_ab_cleanup): New.
881         (dse_optimize_redundant_stores): Adjust.
882         (delete_dead_or_redundant_assignment): Get extra
883         need_ab_cleanup argument and set when abnormal cleanup is
884         needed.
885         (dse_optimize_call): Adjust.
886         (dse_optimize_stmt): Likewise.
887         (pass_dse::execute): Allocate and deallocate need_ab_cleanup.
888         Perform abnormal cleanup.
889         * tree-ssa-dse.h (delete_dead_or_redundant_assignment): Adjust.
891 2021-11-18  Hongyu Wang  <hongyu.wang@intel.com>
893         * config/i386/i386-expand.c (ix86_expand_atomic_fetch_op_loop):
894         Adjust generated cfg to avoid infinite loop.
896 2021-11-18  konglin1  <lingling.kong@intel.com>
898         * config/i386/avx512fp16intrin.h (_mm512_mul_pch): Add alias for _mm512_fmul_pch.
899         (_mm512_mask_mul_pch): Likewise.
900         (_mm512_maskz_mul_pch): Likewise.
901         (_mm512_mul_round_pch): Likewise.
902         (_mm512_mask_mul_round_pch): Likewise.
903         (_mm512_maskz_mul_round_pch): Likewise.
904         (_mm512_cmul_pch): Likewise.
905         (_mm512_mask_cmul_pch): Likewise.
906         (_mm512_maskz_cmul_pch): Likewise.
907         (_mm512_cmul_round_pch): Likewise.
908         (_mm512_mask_cmul_round_pch): Likewise.
909         (_mm512_maskz_cmul_round_pch): Likewise.
910         (_mm_mul_sch): Likewise.
911         (_mm_mask_mul_sch): Likewise.
912         (_mm_maskz_mul_sch): Likewise.
913         (_mm_mul_round_sch): Likewise.
914         (_mm_mask_mul_round_sch): Likewise.
915         (_mm_maskz_mul_round_sch): Likewise.
916         (_mm_cmul_sch): Likewise.
917         (_mm_mask_cmul_sch): Likewise.
918         (_mm_maskz_cmul_sch): Likewise.
919         (_mm_cmul_round_sch): Likewise.
920         (_mm_mask_cmul_round_sch): Likewise.
921         (_mm_maskz_cmul_round_sch): Likewise.
922         * config/i386/avx512fp16vlintrin.h (_mm_mul_pch): Likewise.
923         (_mm_mask_mul_pch): Likewise.
924         (_mm_maskz_mul_pch): Likewise.
925         (_mm256_mul_pch): Likewise.
926         (_mm256_mask_mul_pch): Likewise.
927         (_mm256_maskz_mul_pch): Likewise.
928         (_mm_cmul_pch): Likewise.
929         (_mm_mask_cmul_pch): Likewise.
930         (_mm_maskz_cmul_pch): Likewise.
931         (_mm256_cmul_pch): Likewise.
932         (_mm256_mask_cmul_pch): Likewise.
933         (_mm256_maskz_cmul_pch): Likewise.
935 2021-11-17  Andrew Pinski  <apinski@marvell.com>
937         PR tree-optimization/103228
938         PR tree-optimization/55177
939         * match.pd ((type) X bitop CST): Also do this
940         transformation for nop conversions.
942 2021-11-17  Martin Sebor  <msebor@redhat.com>
944         PR tree-optimization/102759
945         * gimple-array-bounds.cc (build_printable_array_type): Move...
946         * gimple-ssa-warn-access.cc (build_printable_array_type): Avoid
947         pathological function redeclarations that remove a previously
948         declared prototype.
949         Improve formatting of function arguments in informational notes.
950         * pointer-query.cc (build_printable_array_type): ...to here.
951         * pointer-query.h (build_printable_array_type): Declared.
953 2021-11-17  H.J. Lu  <hjl.tools@gmail.com>
955         PR target/102952
956         * config/i386/i386-opts.h (harden_sls): New enum.
957         * config/i386/i386.c (output_indirect_thunk): Mitigate against
958         SLS for function return.
959         (ix86_output_function_return): Likewise.
960         (ix86_output_jmp_thunk_or_indirect): Mitigate against indirect
961         branch.
962         (ix86_output_indirect_jmp): Likewise.
963         (ix86_output_call_insn): Likewise.
964         * config/i386/i386.opt: Add -mharden-sls=.
965         * doc/invoke.texi: Document -mharden-sls=.
967 2021-11-17  H.J. Lu  <hjl.tools@gmail.com>
969         PR target/103307
970         * config/i386/i386.c (ix86_code_end): Remove "%!" before ret.
971         (ix86_output_function_return): Likewise.
972         * config/i386/i386.md (simple_return_pop_internal): Likewise.
974 2021-11-17  Jan Hubicka  <hubicka@ucw.cz>
976         PR ipa/103246
977         * ipa-modref.c (read_modref_records): Fix streaminig in of every_access
978         flag.
980 2021-11-17  Uroš Bizjak  <ubizjak@gmail.com>
982         * config/i386/i386.c (indirect_thunks_used): Redefine as HARD_REG_SET.
983         (ix86_code_end): Use TEST_HARD_REG_BIT on indirect_thunks_used.
984         (ix86_output_indirect_branch_via_reg): Use SET_HARD_REG_BIT
985         on indirect_thunks_used.
986         (ix86_output_indirect_function_return): Ditto.
988 2021-11-17  Jan Hubicka  <hubicka@ucw.cz>
990         * ipa-modref-tree.c: Include cgraph.h and tree-streamer.h.
991         (modref_access_node::stream_out): New member function.
992         (modref_access_node::stream_in): New member function.
993         * ipa-modref-tree.h (modref_access_node::stream_out,
994         modref_access_node::stream_in): Declare.
995         * ipa-modref.c (modref_summary_lto::useful_p): Free useless kills.
996         (modref_summary_lto::dump): Dump kills.
997         (analyze_store): Record kills for LTO
998         (analyze_stmt): Likewise.
999         (modref_summaries_lto::duplicate): Duplicate kills.
1000         (write_modref_records): Use new stream_out member function.
1001         (read_modref_records): Likewise.
1002         (modref_write): Stream out kills.
1003         (read_section): Stream in kills
1004         (remap_kills): New function.
1005         (update_signature): Use it.
1007 2021-11-17  Uroš Bizjak  <ubizjak@gmail.com>
1009         * config/i386/i386.h (LEGACY_SSE_REGNO_P): New predicate.
1010         (SSE_REGNO_P): Use LEGACY_SSE_REGNO_P predicate.
1011         * config/i386/i386.c (zero_all_vector_registers):
1012         Use LEGACY_SSE_REGNO_P predicate.
1013         (ix86_register_priority): Use REX_INT_REGNO_P, REX_SSE_REGNO_P
1014         and EXT_REG_SSE_REGNO_P predicates.
1015         (ix86_hard_regno_call_part_clobbered): Use REX_SSE_REGNO_P
1016         and LEGACY_SSE_REGNO_P predicates.
1018 2021-11-17  Jason Merrill  <jason@redhat.com>
1020         * doc/invoke.texi (C++ Dialect Options): Document
1021         -fimplicit-constexpr.
1023 2021-11-17  Przemyslaw Wirkus  <przemyslaw.wirkus@arm.com>
1025         * config/aarch64/aarch64-modes.def (VECTOR_MODE): New V8DI mode.
1026         * config/aarch64/aarch64.c (aarch64_hard_regno_mode_ok): Handle
1027         V8DImode.
1028         * config/aarch64/iterators.md (define_mode_attr nunits): Add entry
1029         for V8DI.
1031 2021-11-17  Martin Uecker  <uecker@gcc.gnu.org>
1033         PR c/91038
1034         PR c/29970
1035         * gimplify.c (gimplify_var_or_parm_decl): Update comment.
1036         (gimplify_compound_lval): Gimplify base expression first.
1037         (gimplify_target_expr): Add comment.
1039 2021-11-17  Jakub Jelinek  <jakub@redhat.com>
1041         PR tree-optimization/103192
1042         * tree-ssa-loop-im.c (move_computations_worker): Use
1043         reset_flow_sensitive_info instead of manually clearing
1044         SSA_NAME_RANGE_INFO and do it for all SSA_NAMEs, not just ones
1045         with integral types.
1047 2021-11-17  Jakub Jelinek  <jakub@redhat.com>
1049         PR tree-optimization/103255
1050         * gimple-range-fold.cc (fold_using_range::range_of_address): Return
1051         range_nonzero rather than unadjusted base's range.  Formatting fixes.
1053 2021-11-17  Richard Sandiford  <richard.sandiford@arm.com>
1055         * doc/md.texi (cond_fmin@var{mode}, cond_fmax@var{mode}): Document.
1056         * optabs.def (cond_fmin_optab, cond_fmax_optab): New optabs.
1057         * internal-fn.def (COND_FMIN, COND_FMAX): New functions.
1058         * internal-fn.c (first_commutative_argument): Handle them.
1059         (FOR_EACH_COND_FN_PAIR): Likewise.
1060         * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
1061         * config/aarch64/aarch64-sve.md (cond_<fmaxmin><mode>): New
1062         pattern.
1064 2021-11-17  Kewen Lin  <linkw@linux.ibm.com>
1066         * config/i386/i386.md (*add<dwi>3_doubleword, *addv<dwi>4_doubleword,
1067         *addv<dwi>4_doubleword_1, *sub<dwi>3_doubleword,
1068         *subv<dwi>4_doubleword, *subv<dwi>4_doubleword_1,
1069         *add<dwi>3_doubleword_cc_overflow_1, *divmodsi4_const,
1070         *neg<dwi>2_doubleword, *tls_dynamic_gnu2_combine_64_<mode>): Fix split
1071         condition.
1073 2021-11-17  Andrew Pinski  <apinski@marvell.com>
1075         PR tree-optimization/103288
1076         * tree-ssa-phiopt.c (value_replacement): Return early if middle
1077         block has more than one pred.
1079 2021-11-17  Kewen Lin  <linkw@linux.ibm.com>
1081         * config/visium/visium.md (*add<mode>3_insn, *addsi3_insn, *addi3_insn,
1082         *sub<mode>3_insn, *subsi3_insn, *subdi3_insn, *neg<mode>2_insn,
1083         *negdi2_insn, *and<mode>3_insn, *ior<mode>3_insn, *xor<mode>3_insn,
1084         *one_cmpl<mode>2_insn, *ashl<mode>3_insn, *ashr<mode>3_insn,
1085         *lshr<mode>3_insn, *trunchiqi2_insn, *truncsihi2_insn,
1086         *truncdisi2_insn, *extendqihi2_insn, *extendqisi2_insn,
1087         *extendhisi2_insn, *extendsidi2_insn, *zero_extendqihi2_insn,
1088         *zero_extendqisi2_insn, *zero_extendsidi2_insn): Fix split condition.
1090 2021-11-17  Marek Polacek  <polacek@redhat.com>
1092         PR preprocessor/103026
1093         * doc/invoke.texi: Document -Wbidi-chars.
1095 2021-11-17  Jan Hubicka  <hubicka@ucw.cz>
1097         PR ipa/103246
1098         * ipa-modref.c (ipa_merge_modref_summary_after_inlining): Fix clearing
1099         of to_info_lto
1101 2021-11-16  Jan Hubicka  <jh@suse.cz>
1103         * ipa-modref.c (get_modref_function_summary): Declare.
1104         * ipa-modref.h (get_modref_function_summary): New function.
1105         * tree-ssa-dse.c (clear_live_bytes_for_ref): Break out from ...
1106         (clear_bytes_written_by): ... here; also clear memory killed by
1107         calls.
1109 2021-11-16  Iain Sandoe  <iain@sandoe.co.uk>
1111         * ggc-common.c (gt_pch_save): If we cannot find a suitable
1112         memory segment for save, then error-out, do not try to
1113         continue.
1114         (gt_pch_restore): Save the existing line table, and when
1115         the replacement is being read, use that when constructing
1116         diagnostics.
1118 2021-11-16  Peter Bergner  <bergner@linux.ibm.com>
1120         PR target/102976
1121         * config/rs6000/mma.md (*vsx_assemble_pair): Add early-clobber for
1122         output operand.
1123         (*mma_assemble_acc): Likewise.
1125 2021-11-16  Martin Sebor  <msebor@redhat.com>
1127         PR tree-optimization/102960
1128         * gimple-fold.c (get_range_strlen): Take bitmap as an argument rather
1129         than a pointer to it.
1130         (get_range_strlen_tree): Same.  Remove bitmap allocation.  Use
1131         an auto_bitmap.
1132         (get_maxval_strlen): Use an auto_bitmap.
1133         * tree-ssa-strlen.c (get_range_strlen_dynamic): Factor out PHI
1134         handling...
1135         (get_range_strlen_phi): ...into this function.
1136         Avoid assuming maximum string length is constant
1137         (printf_strlen_execute): Dump pointer query cache contents when
1138         details are requisted.
1140 2021-11-16  Jason Merrill  <jason@redhat.com>
1142         * langhooks.h (struct lang_hooks): Adjust comment.
1143         * print-tree.c (print_node): Also call print_xnode hook for
1144         tcc_constant class.
1146 2021-11-16  Andrew Pinski  <apinski@marvell.com>
1148         PR tree-optimization/103218
1149         * match.pd: New pattern for "((type)(a<0)) << SIGNBITOFA".
1151 2021-11-16  Claudiu Zissulescu  <claziss@synopsys.com>
1153         * config/arc/arc.md (maddhisi4): Use a single move to accumulator.
1154         (umaddhisi4): Likewise.
1155         (machi): Update pattern.
1156         (umachi): Likewise.
1158 2021-11-16  Richard Biener  <rguenther@suse.de>
1160         PR tree-optimization/102880
1161         * tree-ssa-dce.c (sort_phi_args): New function.
1162         (make_forwarders_with_degenerate_phis): Likewise.
1163         (perform_tree_ssa_dce): Call
1164         make_forwarders_with_degenerate_phis.
1166 2021-11-16  Richard Biener  <rguenther@suse.de>
1168         PR tree-optimization/102880
1169         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Push
1170         single_pred (bb1) condition to places that really need it.
1171         (match_simplify_replacement): Likewise.
1172         (value_replacement): Likewise.
1173         (replace_phi_edge_with_variable): Deal with extra edges
1174         into the middle BB.
1176 2021-11-16  Martin Jambor  <mjambor@suse.cz>
1178         * cfgexpand.c (expand_gimple_basic_block): Use build_debug_expr_decl,
1179         add a fixme note about the mode assignment perhaps being unnecessary.
1180         * ipa-param-manipulation.c (ipa_param_adjustments::modify_call):
1181         Likewise.
1182         (ipa_param_body_adjustments::mark_dead_statements): Likewise.
1183         (ipa_param_body_adjustments::reset_debug_stmts): Likewise.
1184         * tree-inline.c (remap_ssa_name): Likewise.
1185         (tree_function_versioning): Likewise.
1186         * tree-into-ssa.c (rewrite_debug_stmt_uses): Likewise.
1187         * tree-ssa-loop-ivopts.c (remove_unused_ivs): Likewise.
1188         * tree-ssa.c (insert_debug_temp_for_var_def): Likewise.
1190 2021-11-16  Jakub Jelinek  <jakub@redhat.com>
1192         PR tree-optimization/103208
1193         * omp-expand.c (expand_omp_build_cond): New function.
1194         (expand_omp_for_init_counts, expand_omp_for_init_vars,
1195         expand_omp_for_static_nochunk, expand_omp_for_static_chunk): Use it.
1197 2021-11-16  Jakub Jelinek  <jakub@redhat.com>
1199         PR tree-optimization/102009
1200         * gimple-ssa-warn-access.cc (pass_waccess::check_alloc_size_call):
1201         Punt if any of alloc_size arguments is out of bounds vs. number of
1202         call arguments.
1204 2021-11-16  Roger Sayle  <roger@nextmovesoftware.com>
1206         * config/i386/i386.md (*bmi2_rorx<mode3>_1): Make conditional
1207         on !optimize_function_for_size_p.
1208         (*<any_rotate><mode>3_1): Add preferred_for_size attribute.
1209         (define_splits): Conditionalize on !optimize_function_for_size_p.
1210         (*bmi2_rorxsi3_1_zext): Likewise.
1211         (*<any_rotate>si2_1_zext): Add preferred_for_size attribute.
1212         (define_splits): Conditionalize on !optimize_function_for_size_p.
1214 2021-11-16  Jan Hubicka  <jh@suse.cz>
1216         PR ipa/103262
1217         * ipa-modref.c (merge_call_side_effects): Fix uninitialized
1218         access.
1220 2021-11-16  Andrew Pinski  <apinski@marvell.com>
1222         PR tree-optimization/103245
1223         * match.pd: Combine the abs pattern matching using multiplication.
1224         Adding optional nop_convert too.
1226 2021-11-16  H.J. Lu  <hjl.tools@gmail.com>
1228         PR middle-end/103268
1229         * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Add a missing
1230         return.
1232 2021-11-15  Siddhesh Poyarekar  <siddhesh@gotplt.org>
1234         * gimple-fold.c (gimple_fold_builtin_strncat): Use ranges to
1235         determine if it is safe to transform to strcat.
1236         (gimple_fold_builtin_snprintf): Likewise.
1238 2021-11-15  Siddhesh Poyarekar  <siddhesh@gotplt.org>
1240         * gimple-fold.c (known_lower): New function.
1241         (gimple_fold_builtin_strncat_chk,
1242         gimple_fold_builtin_memory_chk, gimple_fold_builtin_stxcpy_chk,
1243         gimple_fold_builtin_stxncpy_chk,
1244         gimple_fold_builtin_snprintf_chk,
1245         gimple_fold_builtin_sprintf_chk): Use it.
1247 2021-11-15  Siddhesh Poyarekar  <siddhesh@gotplt.org>
1249         * gimple-fold.c (dump_transformation): New function.
1250         (gimple_fold_builtin_stxcpy_chk,
1251         gimple_fold_builtin_stxncpy_chk): Use it.  Simplify to
1252         BUILT_IN_STRNCPY if return value is not used.
1254 2021-11-15  H.J. Lu  <hjl.tools@gmail.com>
1256         PR middle-end/103184
1257         * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Check optab
1258         before transforming equivalent, but slighly different cases to
1259         their canonical forms.
1261 2021-11-15  Iain Sandoe  <iain@sandoe.co.uk>
1263         PR fortran/102992
1264         * config/darwin.h (TARGET_DTORS_FROM_CXA_ATEXIT): New.
1265         * doc/tm.texi: Regenerated.
1266         * doc/tm.texi.in: Add TARGET_DTORS_FROM_CXA_ATEXIT hook.
1267         * ipa.c (cgraph_build_static_cdtor_1): Return the built
1268         function decl.
1269         (build_cxa_atexit_decl): New.
1270         (build_dso_handle_decl): New.
1271         (build_cxa_dtor_registrations): New.
1272         (compare_cdtor_tu_order): New.
1273         (build_cxa_atexit_fns): New.
1274         (ipa_cdtor_merge): If dtors_from_cxa_atexit is set,
1275         process the DTORs/CTORs accordingly.
1276         (pass_ipa_cdtor_merge::gate): Also run if
1277         dtors_from_cxa_atexit is set.
1278         * target.def (dtors_from_cxa_atexit): New hook.
1280 2021-11-15  Iain Sandoe  <iain@sandoe.co.uk>
1282         * config.in: Regenerate.
1283         * configure: Regenerate.
1284         * configure.ac: Test ld64 for -platform-version support.
1286 2021-11-15  Thomas Schwinge  <thomas@codesourcery.com>
1288         * diagnostic-spec.h (typedef xint_hash_t)
1289         (typedef xint_hash_map_t): Replace with...
1290         (typedef nowarn_map_t): ... this.
1291         (nowarn_map): Adjust.
1292         * diagnostic-spec.c (nowarn_map, suppress_warning_at): Likewise.
1294 2021-11-15  Thomas Schwinge  <thomas@codesourcery.com>
1296         * profile.c (branch_prob): Use 'location_hash' for
1297         'seen_locations'.
1299 2021-11-15  Aldy Hernandez  <aldyh@redhat.com>
1301         PR tree-optimization/103207
1302         * value-range.cc (irange::set): Drop overflow.
1304 2021-11-15  Jakub Jelinek  <jakub@redhat.com>
1306         * gimplify.c (optimize_target_teams): Only add OMP_CLAUSE_THREAD_LIMIT
1307         to OMP_TARGET_CLAUSES if it isn't there already.
1309 2021-11-15  Aldy Hernandez  <aldyh@redhat.com>
1311         * gimple-range-path.cc (path_range_query::internal_range_of_expr):
1312         Remove useless code.
1313         (path_range_query::ssa_defined_in_bb): New.
1314         (path_range_query::ssa_range_in_phi): Avoid fold_range call that
1315         could trigger additional lookups.
1316         Do not use the cache for ARGs defined in this block.
1317         (path_range_query::compute_ranges_in_block): Use ssa_defined_in_bb.
1318         (path_range_query::maybe_register_phi_relation): Same.
1319         (path_range_query::range_of_stmt): Adjust comment.
1320         * gimple-range-path.h (ssa_defined_in_bb): New.
1322 2021-11-15  Aldy Hernandez  <aldyh@redhat.com>
1324         * gimple-range-path.cc (path_range_query::internal_range_of_expr):
1325         Default to global range if nothing found.
1327 2021-11-15  Richard Biener  <rguenther@suse.de>
1329         PR tree-optimization/103237
1330         * tree-vect-loop.c (vect_is_simple_reduction): Fail for
1331         double reductions with multiple inner loop LC PHI nodes.
1333 2021-11-15  Hongyu Wang  <hongyu.wang@intel.com>
1335         PR target/103069
1336         * config/i386/i386-expand.c (ix86_expand_atomic_fetch_op_loop):
1337         New expand function.
1338         * config/i386/i386-options.c (ix86_target_string): Add
1339         -mrelax-cmpxchg-loop flag.
1340         (ix86_valid_target_attribute_inner_p): Likewise.
1341         * config/i386/i386-protos.h (ix86_expand_atomic_fetch_op_loop):
1342         New expand function prototype.
1343         * config/i386/i386.opt: Add -mrelax-cmpxchg-loop.
1344         * config/i386/sync.md (atomic_fetch_<logic><mode>): New expander
1345         for SI,HI,QI modes.
1346         (atomic_<logic>_fetch<mode>): Likewise.
1347         (atomic_fetch_nand<mode>): Likewise.
1348         (atomic_nand_fetch<mode>): Likewise.
1349         (atomic_fetch_<logic><mode>): New expander for DI,TI modes.
1350         (atomic_<logic>_fetch<mode>): Likewise.
1351         (atomic_fetch_nand<mode>): Likewise.
1352         (atomic_nand_fetch<mode>): Likewise.
1353         * doc/invoke.texi: Document -mrelax-cmpxchg-loop.
1355 2021-11-15  Richard Biener  <rguenther@suse.de>
1357         PR tree-optimization/103219
1358         * gimple-loop-jam.c (tree_loop_unroll_and_jam): Use single_exit
1359         to determine the exit for the VN region.
1361 2021-11-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
1363         * tree-ssa-loop.c (pass_vectorize): Move to tree-vectorizer.c.
1364         (pass_data_vectorize): Likewise.
1365         (make_pass_vectorize): Likewise.
1366         * tree-vectorizer.c (vectorize_loops): Merge with
1367         pass_vectorize::execute and replace cfun occurences with fun param.
1368         (adjust_simduid_builtins): Add fun param, replace cfun occurences with
1369         fun, and adjust callers approrpiately.
1370         (note_simd_array_uses): Likewise.
1371         (vect_loop_dist_alias_call): Likewise.
1372         (set_uid_loop_bbs): Likewise.
1373         (vect_transform_loops): Likewise.
1374         (try_vectorize_loop_1): Likewise.
1375         (try_vectorize_loop): Likewise.
1377 2021-11-15  Jakub Jelinek  <jakub@redhat.com>
1379         PR target/103205
1380         * config/i386/sync.md (atomic_bit_test_and_set<mode>,
1381         atomic_bit_test_and_complement<mode>,
1382         atomic_bit_test_and_reset<mode>): Use OPTAB_WIDEN instead of
1383         OPTAB_DIRECT.
1385 2021-11-15  Maciej W. Rozycki  <macro@embecosm.com>
1387         * config/vax/vax.c (vax_lra_p): New prototype and function.
1388         (TARGET_LRA_P): Wire it.
1389         * config/vax/vax.opt (mlra): New option.
1390         * doc/invoke.texi (Option Summary, VAX Options): Document the
1391         new option.
1393 2021-11-14  Jan Hubicka  <jh@suse.cz>
1395         * ipa-modref.h (struct modref_summary): Add nondeterministic
1396         and calls_interposable flags.
1397         * ipa-modref.c (modref_summary::modref_summary): Initialize new flags.
1398         (modref_summary::useful_p): Check new flags.
1399         (struct modref_summary_lto): Add nondeterministic and
1400         calls_interposable flags.
1401         (modref_summary_lto::modref_summary_lto): Initialize new flags.
1402         (modref_summary_lto::useful_p): Check new flags.
1403         (modref_summary::dump): Dump new flags.
1404         (modref_summary_lto::dump): Dump new flags.
1405         (ignore_nondeterminism_p): New function.
1406         (merge_call_side_effects): Merge new flags.
1407         (process_fnspec): Likewise.
1408         (analyze_load): Volatile access is nondeterministic.
1409         (analyze_store): Liekwise.
1410         (analyze_stmt): Volatile ASM is nondeterministic.
1411         (analyze_function): Clear new flags.
1412         (modref_summaries::duplicate): Duplicate new flags.
1413         (modref_summaries_lto::duplicate): Duplicate new flags.
1414         (modref_write): Stream new flags.
1415         (read_section): Stream new flags.
1416         (propagate_unknown_call): Update new flags.
1417         (modref_propagate_in_scc): Propagate new flags.
1418         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check
1419         calls_interposable.
1420         * tree-ssa-structalias.c (determine_global_memory_access):
1421         Likewise.
1423 2021-11-14  Maciej W. Rozycki  <macro@embecosm.com>
1425         * config/vax/vax.h (SET_RATIO): New macro.
1426         * config/vax/vax.md (UNSPEC_SETMEM_FILL): New constant.
1427         (setmemhi): New expander.
1428         (setmemhi1): New insn and splitter.
1429         (*setmemhi1): New insn.
1431 2021-11-14  Jan Hubicka  <hubicka@ucw.cz>
1433         * ipa-modref-tree.c (modref_access_node::update_for_kills): New
1434         member function.
1435         (modref_access_node::merge_for_kills): Likewise.
1436         (modref_access_node::insert_kill): Likewise.
1437         * ipa-modref-tree.h (modref_access_node::update_for_kills,
1438         modref_access_node::merge_for_kills, modref_access_node::insert_kill):
1439         Declare.
1440         (modref_access_node::useful_for_kill): New member function.
1441         * ipa-modref.c (modref_summary::useful_p): Release useless kills.
1442         (lto_modref_summary): Add kills.
1443         (modref_summary::dump): Dump kills.
1444         (record_access): Add mdoref_access_node parameter.
1445         (record_access_lto): Likewise.
1446         (merge_call_side_effects): Merge kills.
1447         (analyze_call): Add ALWAYS_EXECUTED param and pass it around.
1448         (struct summary_ptrs): Add always_executed filed.
1449         (analyze_load): Update.
1450         (analyze_store): Update; record kills.
1451         (analyze_stmt): Add always_executed; record kills in clobbers.
1452         (analyze_function): Track always_executed.
1453         (modref_summaries::duplicate): Duplicate kills.
1454         (update_signature): Release kills.
1455         * ipa-modref.h (struct modref_summary): Add kills.
1456         * tree-ssa-alias.c (alias_stats): Add kill stats.
1457         (dump_alias_stats): Dump kill stats.
1458         (store_kills_ref_p): Break out from ...
1459         (stmt_kills_ref_p): Use it; handle modref info based kills.
1461 2021-11-14  Aldy Hernandez  <aldyh@redhat.com>
1463         PR tree-optimization/103229
1464         * gimple-range-cache.cc (ssa_global_cache::clear): Do not pass
1465         null value to memset.
1467 2021-11-14  Jan Hubicka  <hubicka@ucw.cz>
1469         * ipa-modref-tree.c (modref_access_node::get_call_arg): New member
1470         function.
1471         (modref_access_node::get_ao_ref): Likewise.
1472         * ipa-modref-tree.h (modref_access_node::get_call_arg): Declare.
1473         (modref_access_node::get_ao_ref): Declare.
1474         * tree-ssa-alias.c (modref_may_conflict): Use new accessors.
1475         * tree-ssa-dse.c (dse_optimize_call): Use new accessors.
1477 2021-11-13  Jan Hubicka  <jh@suse.cz>
1479         PR lto/103211
1480         * dbgcnt.def (ipa_attr): New counters.
1481         * ipa-pure-const.c: Include dbgcnt.c
1482         (ipa_make_function_const): Use debug counter.
1483         (ipa_make_function_pure): Likewise.
1484         (propagate_pure_const): Fix bug in my previous change.
1486 2021-11-13  Jan Hubicka  <hubicka@ucw.cz>
1488         * ipa-modref-tree.c (modref_access_node::range_info_useful_p):
1489         Offline from ipa-modref-tree.h.
1490         (modref_access_node::dump): Move from ipa-modref.c; make member
1491         function.
1492         * ipa-modref-tree.h (modref_access_node::range_info_useful_p.
1493         modref_access_node::dump): Declare.
1494         * ipa-modref.c (dump_access): Remove.
1495         (dump_records): Update.
1496         (dump_lto_records): Update.
1497         (record_access): Update.
1498         (record_access_lto): Update.
1500 2021-11-13  Jan Hubicka  <hubicka@ucw.cz>
1502         * ipa-modref.c (modref_summary::modref_summary): Clear new flags.
1503         (modref_summary::dump): Dump try_dse.
1504         (modref_summary::finalize): Add FUN attribute; compute try-dse.
1505         (analyze_function): Update.
1506         (read_section): Update.
1507         (update_signature): Update.
1508         (pass_ipa_modref::execute): Update.
1509         * ipa-modref.h (struct modref_summary):
1510         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_range): Export.
1511         * tree-ssa-alias.h (ao_ref_init_from_ptr_and_range): Declare.
1512         * tree-ssa-dse.c (dse_optimize_call): New function.
1513         (dse_optimize_stmt): Use it.
1515 2021-11-13  Jan Hubicka  <hubicka@ucw.cz>
1517         * ipa-modref-tree.c: Move #if CHECKING_P to proper place.
1519 2021-11-13  Jan Hubicka  <jh@suse.cz>
1521         * ipa-modref-tree.h
1522         (struct modref_access_node): Move longer member functions to
1523         ipa-modref-tree.c
1524         (modref_ref_node::try_merge_with): Turn into modreef_acces_node member
1525         function.
1526         * ipa-modref-tree.c (modref_access_node::contains): Move here
1527         from ipa-modref-tree.h.
1528         (modref_access_node::update): Likewise.
1529         (modref_access_node::merge): Likewise.
1530         (modref_access_node::closer_pair_p): Likewise.
1531         (modref_access_node::forced_merge): Likewise.
1532         (modref_access_node::update2): Likewise.
1533         (modref_access_node::combined_offsets): Likewise.
1534         (modref_access_node::try_merge_with): Likewise.
1535         (modref_access_node::insert): Likewise.
1537 2021-11-13  Jan Hubicka  <jh@suse.cz>
1539         * ipa-modref.c (modref_summary::global_memory_read_p): Remove.
1540         (modref_summary::global_memory_written_p): Remove.
1541         (modref_summary::dump): Dump new flags.
1542         (modref_summary::finalize): New member function.
1543         (analyze_function): Call it.
1544         (read_section): Call it.
1545         (update_signature): Call it.
1546         (pass_ipa_modref::execute): Call it.
1547         * ipa-modref.h (struct modref_summary): Remove
1548         global_memory_read_p and global_memory_written_p.
1549         Add global_memory_read, global_memory_written.
1550         * tree-ssa-structalias.c (determine_global_memory_access):
1551         Update.
1553 2021-11-13  Jan Hubicka  <jh@suse.cz>
1555         * ipa-fnsummary.c (compute_fn_summary): Use type_attribut_allowed_p
1556         * ipa-param-manipulation.c
1557         (ipa_param_adjustments::type_attribute_allowed_p):
1558         New member function.
1559         (drop_type_attribute_if_params_changed_p): New function.
1560         (build_adjusted_function_type): Use it.
1561         * ipa-param-manipulation.h: Add type_attribute_allowed_p.
1563 2021-11-13  David Malcolm  <dmalcolm@redhat.com>
1565         * doc/invoke.texi (Static Analyzer Options): Add
1566         -Wno-analyzer-tainted-allocation-size,
1567         -Wno-analyzer-tainted-divisor, -Wno-analyzer-tainted-offset, and
1568         -Wno-analyzer-tainted-size to list.  Add
1569         -Wanalyzer-tainted-allocation-size, -Wanalyzer-tainted-divisor,
1570         -Wanalyzer-tainted-offset, and -Wanalyzer-tainted-size to list
1571         of options effectively enabled by -fanalyzer.
1572         (-Wanalyzer-tainted-allocation-size): New.
1573         (-Wanalyzer-tainted-array-index): Tweak wording; add link to CWE.
1574         (-Wanalyzer-tainted-divisor): New.
1575         (-Wanalyzer-tainted-offset): New.
1576         (-Wanalyzer-tainted-size): New.
1578 2021-11-13  Jan Hubicka  <jh@suse.cz>
1580         * attr-fnspec.h (attr_fnspec::arg_eaf_flags): Break out from ...
1581         * gimple.c (gimple_call_arg_flags): ... here.
1582         * ipa-modref.c (analyze_parms): Record flags known from fnspec.
1583         (modref_merge_call_site_flags): Use arg_eaf_flags.
1585 2021-11-13  Aldy Hernandez  <aldyh@redhat.com>
1587         PR tree-optimization/103222
1588         * gimple-range-path.cc (path_range_query::compute_ranges_in_phis):
1589         New.
1590         (path_range_query::compute_ranges_in_block): Call
1591         compute_ranges_in_phis.
1592         * gimple-range-path.h (path_range_query::compute_ranges_in_phis):
1593         New.
1595 2021-11-13  Jan Hubicka  <jh@suse.cz>
1597         * ipa-fnsummary.c (compute_fn_summary): Do not give up on signature
1598         changes on "fn spec" attribute; give up on varadic types.
1599         * ipa-param-manipulation.c: Include attribs.h.
1600         (build_adjusted_function_type): New parameter ARG_MODIFIED; if it is
1601         true remove "fn spec" attribute.
1602         (ipa_param_adjustments::build_new_function_type): Update.
1603         (ipa_param_body_adjustments::modify_formal_parameters): update.
1604         * ipa-sra.c: Include attribs.h.
1605         (ipa_sra_preliminary_function_checks): Do not check for TYPE_ATTRIBUTES.
1607 2021-11-13  Aldy Hernandez  <aldyh@redhat.com>
1609         * gimple-range-path.cc (path_range_query::path_range_query): Merge
1610         ctors.
1611         (path_range_query::import_p): Move from header file.
1612         (path_range_query::~path_range_query): Adjust for combined ctors.
1613         * gimple-range-path.h: Merge ctors.
1614         (path_range_query::import_p): Move to .cc file.
1616 2021-11-13  Jan Hubicka  <jh@suse.cz>
1618         PR tree-optimization/103182
1619         * ipa-modref.c (callee_to_caller_flags): Fix merging of flags.
1620         (modref_eaf_analysis::analyze_ssa_name): Fix merging of flags.
1622 2021-11-12  Stafford Horne  <shorne@gmail.com>
1624         * config/or1k/or1k-protos.h (or1k_profile_hook): New function.
1625         * config/or1k/or1k.h (PROFILE_HOOK): Change macro to reference
1626         new function or1k_profile_hook.
1627         * config/or1k/or1k.c (struct machine_function): Add new field
1628         set_mcount_arg_insn.
1629         (or1k_profile_hook): New function.
1630         (or1k_init_pic_reg): Update to inject pic rtx after _mcount arg
1631         when profiling.
1632         (or1k_frame_pointer_required): Frame pointer no longer needed
1633         when profiling.
1635 2021-11-12  Jan Hubicka  <jh@suse.cz>
1637         PR tree-optimization/103209
1638         * tree-ssa-structalias.c (find_func_aliases_for_call): Fix
1639         use of handle_rhs_call
1641 2021-11-12  Aldy Hernandez  <aldyh@redhat.com>
1643         PR tree-optimization/103202
1644         * gimple-range-path.cc
1645         (path_range_query::compute_ranges_in_block): Solve PHI imports first.
1647 2021-11-12  Jan Hubicka  <jh@suse.cz>
1649         * ipa-pure-const.c (propagate_pure_const): Remove redundant check;
1650         fix call of ipa_make_function_const and ipa_make_function_pure.
1652 2021-11-12  Richard Sandiford  <richard.sandiford@arm.com>
1654         * config/aarch64/aarch64.c (aarch64_vector_op::n_advsimd_ops): Delete.
1655         (aarch64_vector_op::m_seen_loads): Likewise.
1656         (aarch64_vector_costs::aarch64_vector_costs): Don't push to
1657         m_advsimd_ops.
1658         (aarch64_vector_op::count_ops): Remove vectype and factor parameters.
1659         Remove code that tries to predict different vec_flags from the
1660         current loop's.
1661         (aarch64_vector_costs::add_stmt_cost): Update accordingly.
1662         Remove m_advsimd_ops handling.
1664 2021-11-12  Richard Sandiford  <richard.sandiford@arm.com>
1666         * config/aarch64/aarch64.c (aarch64_vector_costs::m_saw_sve_only_op)
1667         (aarch64_sve_only_stmt_p): Delete.
1668         (aarch64_vector_costs::prefer_unrolled_loop): New function,
1669         extracted from adjust_body_cost.
1670         (aarch64_vector_costs::better_main_loop_than_p): New function,
1671         using heuristics extracted from adjust_body_cost and
1672         adjust_body_cost_sve.
1673         (aarch64_vector_costs::adjust_body_cost_sve): Remove
1674         advsimd_cycles_per_iter and could_use_advsimd parameters.
1675         Update after changes above.
1676         (aarch64_vector_costs::adjust_body_cost): Update after changes above.
1678 2021-11-12  Richard Sandiford  <richard.sandiford@arm.com>
1680         * config/aarch64/aarch64.c (aarch64_vec_op_count::m_vf_factor):
1681         New member variable.
1682         (aarch64_vec_op_count::aarch64_vec_op_count): Add a parameter for it.
1683         (aarch64_vec_op_count::vf_factor): New function.
1684         (aarch64_vector_costs::aarch64_vector_costs): When costing for
1685         neoverse-512tvb, pass a vf_factor of 2 for the Neoverse V1 version
1686         of an SVE loop.
1687         (aarch64_vector_costs::adjust_body_cost): Read the vf factor
1688         instead of hard-coding 2.
1690 2021-11-12  Richard Sandiford  <richard.sandiford@arm.com>
1692         * config/aarch64/aarch64.c
1693         (aarch64_vec_op_count::rename_cycles_per_iter): New function.
1694         (aarch64_vec_op_count::min_nonpred_cycles_per_iter): Likewise.
1695         (aarch64_vec_op_count::min_pred_cycles_per_iter): Likewise.
1696         (aarch64_vec_op_count::min_cycles_per_iter): Likewise.
1697         (aarch64_vec_op_count::dump): Move earlier in file.  Dump the
1698         above properties too.
1699         (aarch64_estimate_min_cycles_per_iter): Delete.
1700         (adjust_body_cost): Use aarch64_vec_op_count::min_cycles_per_iter
1701         instead of aarch64_estimate_min_cycles_per_iter.  Rely on the dump
1702         routine to print CPI estimates.
1703         (adjust_body_cost_sve): Likewise.  Use the other functions above
1704         instead of doing the work inline.
1706 2021-11-12  Richard Sandiford  <richard.sandiford@arm.com>
1708         * config/aarch64/aarch64.c (aarch64_vec_op_count): Allow default
1709         initialization.
1710         (aarch64_vec_op_count::base_issue_info): Remove handling of null
1711         issue_infos.
1712         (aarch64_vec_op_count::simd_issue_info): Likewise.
1713         (aarch64_vec_op_count::sve_issue_info): Likewise.
1714         (aarch64_vector_costs::m_ops): Turn into a vector.
1715         (aarch64_vector_costs::m_advsimd_ops): Likewise.
1716         (aarch64_vector_costs::aarch64_vector_costs): Add entries to
1717         the vectors based on aarch64_tune_params.
1718         (aarch64_vector_costs::analyze_loop_vinfo): Update the pred_ops
1719         of all entries in m_ops.
1720         (aarch64_vector_costs::add_stmt_cost): Call count_ops for all
1721         entries in m_ops.
1722         (aarch64_estimate_min_cycles_per_iter): Remove issue_info
1723         parameter and get the information from the ops instead.
1724         (aarch64_vector_costs::adjust_body_cost_sve): Take a
1725         aarch64_vec_issue_info instead of a aarch64_vec_op_count.
1726         (aarch64_vector_costs::adjust_body_cost): Update call accordingly.
1727         Exit earlier if m_ops is empty for either cost structure.
1729 2021-11-12  Richard Sandiford  <richard.sandiford@arm.com>
1731         * config/aarch64/aarch64.c (aarch64_vector_costs::m_scalar_ops)
1732         (aarch64_vector_costs::m_sve_ops): Replace with...
1733         (aarch64_vector_costs::m_ops): ...this.
1734         (aarch64_vector_costs::analyze_loop_vinfo): Update accordingly.
1735         (aarch64_vector_costs::adjust_body_cost_sve): Likewise.
1736         (aarch64_vector_costs::aarch64_vector_costs): Likewise.
1737         Initialize m_vec_flags here rather than in add_stmt_cost.
1738         (aarch64_vector_costs::count_ops): Test for scalar reductions too.
1739         Allow vectype to be null.
1740         (aarch64_vector_costs::add_stmt_cost): Call count_ops for scalar
1741         code too.  Don't require vectype to be nonnull.
1742         (aarch64_vector_costs::adjust_body_cost): Take the loop_vec_info
1743         and scalar costs as parameters.  Use the scalar costs to determine
1744         the cycles per iteration of the scalar loop, then multiply it
1745         by the estimated VF.
1746         (aarch64_vector_costs::finish_cost): Update call accordingly.
1748 2021-11-12  Richard Sandiford  <richard.sandiford@arm.com>
1750         * config/aarch64/aarch64.c (aarch64_dr_type): New function.
1751         (aarch64_vector_costs::count_ops): Use it rather than the
1752         vectype to determine floatness.
1754 2021-11-12  Richard Sandiford  <richard.sandiford@arm.com>
1756         * config/aarch64/aarch64.c (aarch64_sve_in_loop_reduction_latency):
1757         Remove vectype parameter and get floatness from the type of the
1758         stmt lhs instead.
1759         (arch64_in_loop_reduction_latency): Likewise.
1760         (aarch64_detect_vector_stmt_subtype): Update caller.
1761         (aarch64_vector_costs::count_ops): Likewise.
1763 2021-11-12  Richard Sandiford  <richard.sandiford@arm.com>
1765         * config/aarch64/aarch64.c (aarch64_sve_op_count): Fold into...
1766         (aarch64_vec_op_count): ...this.  Add a constructor.
1767         (aarch64_vec_op_count::vec_flags): New function.
1768         (aarch64_vec_op_count::base_issue_info): Likewise.
1769         (aarch64_vec_op_count::simd_issue_info): Likewise.
1770         (aarch64_vec_op_count::sve_issue_info): Likewise.
1771         (aarch64_vec_op_count::m_issue_info): New member variable.
1772         (aarch64_vec_op_count::m_vec_flags): Likewise.
1773         (aarch64_vector_costs): Add a constructor.
1774         (aarch64_vector_costs::m_sve_ops): Change type to aarch64_vec_op_count.
1775         (aarch64_vector_costs::aarch64_vector_costs): New function.
1776         Initialize m_scalar_ops, m_advsimd_ops and m_sve_ops.
1777         (aarch64_vector_costs::count_ops): Remove vec_flags and
1778         issue_info parameters, using the new aarch64_vec_op_count
1779         functions instead.
1780         (aarch64_vector_costs::add_stmt_cost): Update call accordingly.
1781         (aarch64_sve_op_count::dump): Fold into...
1782         (aarch64_vec_op_count::dump): ..here.
1784 2021-11-12  Richard Sandiford  <richard.sandiford@arm.com>
1786         * config/aarch64/aarch64.c: Include tree-dfa.h.
1787         (aarch64_check_consecutive_mems): New function that takes MEM_EXPR
1788         and MEM_OFFSET into account.
1789         (aarch64_swap_ldrstr_operands): Use it.
1790         (aarch64_operands_ok_for_ldpstp): Likewise.  Check that the
1791         address of the second memory doesn't depend on the result of
1792         the first load.
1794 2021-11-12  Jan Hubicka  <hubicka@ucw.cz>
1796         * ipa-pure-const.c (ipa_make_function_pure): Fix exit condition.
1798 2021-11-12  Jan Hubicka  <jh@suse.cz>
1800         PR tree-optimization/103175
1801         * ipa-modref.c (modref_lattice::merge): Add sanity check.
1802         (callee_to_caller_flags): Make flags adjustment sane.
1803         (modref_eaf_analysis::analyze_ssa_name): Likewise.
1805 2021-11-12  Jan Hubicka  <jh@suse.cz>
1807         PR ipa/103200
1808         * ipa-modref.c (analyze_function, modref_propagate_in_scc): Do
1809         not mark pure/const function if there are side-effects.
1811 2021-11-12  Chung-Lin Tang  <cltang@codesourcery.com>
1813         * tree.h (OMP_CLAUSE_MAP_RUNTIME_IMPLICIT_P): New access macro for
1814         'implicit' bit, using 'base.deprecated_flag' field of tree_node.
1815         * tree-pretty-print.c (dump_omp_clause): Add support for printing
1816         implicit attribute in tree dumping.
1817         * gimplify.c (gimplify_adjust_omp_clauses_1):
1818         Set OMP_CLAUSE_MAP_RUNTIME_IMPLICIT_P to 1 if map clause is implicitly
1819         created.
1820         (gimplify_adjust_omp_clauses): Adjust place of adding implicitly created
1821         clauses, from simple append, to starting of list, after non-map clauses.
1822         * omp-low.c (lower_omp_target): Add GOMP_MAP_IMPLICIT bits into kind
1823         values passed to libgomp for implicit maps.
1825 2021-11-12  Jakub Jelinek  <jakub@redhat.com>
1827         * omp-builtins.def (BUILT_IN_GOMP_TEAMS): Remove.
1828         (BUILT_IN_GOMP_TEAMS4): New.
1829         * builtin-types.def (BT_FN_VOID_UINT_UINT): Remove.
1830         (BT_FN_BOOL_UINT_UINT_UINT_BOOL): New.
1831         * omp-low.c (lower_omp_teams): Use GOMP_teams4 instead of
1832         GOMP_teams, pass to it also num_teams lower-bound expression
1833         or a dup of upper-bound if it is missing and a flag whether
1834         it is the first call or not.
1836 2021-11-12  Martin Liska  <mliska@suse.cz>
1838         PR tree-optimization/102497
1839         * gimple-predicate-analysis.cc (add_pred): Remove unused
1840         function:
1842 2021-11-12  Richard Biener  <rguenther@suse.de>
1844         PR tree-optimization/103204
1845         * tree-ssa-sccvn.c (valueize_refs_1): Re-valueize the
1846         top operand after folding in an address.
1848 2021-11-11  Aldy Hernandez  <aldyh@redhat.com>
1850         * gimple-range-path.cc (path_range_query::path_range_query): New
1851         ctor without a ranger.
1852         (path_range_query::~path_range_query): Free ranger if necessary.
1853         (path_range_query::range_on_path_entry): Adjust m_ranger for pointer.
1854         (path_range_query::ssa_range_in_phi): Same.
1855         (path_range_query::compute_ranges_in_block): Same.
1856         (path_range_query::compute_imports): Same.
1857         (path_range_query::compute_ranges): Same.
1858         (path_range_query::range_of_stmt): Same.
1859         (path_range_query::compute_outgoing_relations): Same.
1860         * gimple-range-path.h (class path_range_query): New ctor.
1861         * tree-ssa-loop-ch.c (ch_base::copy_headers): Remove gimple_ranger
1862         as path_range_query allocates one.
1863         * tree-ssa-threadbackward.c (class back_threader): Remove m_ranger.
1864         (back_threader::~back_threader): Same.
1866 2021-11-11  Aldy Hernandez  <aldyh@redhat.com>
1868         * tree-ssa-threadbackward.c
1869         (back_threader_profitability::profitable_path_p): Remove loop
1870         crossing restriction.
1872 2021-11-11  Jan Hubicka  <hubicka@ucw.cz>
1874         * ipa-modref.c (analyze_function): Do pure/const discovery, return
1875         true on success.
1876         (pass_modref::execute): If pure/const is discovered fixup cfg.
1877         (ignore_edge): Do not ignore pure/const edges.
1878         (modref_propagate_in_scc): Do pure/const discovery, return true if
1879         cdtor was promoted pure/const.
1880         (pass_ipa_modref::execute): If needed remove unreachable functions.
1881         * ipa-pure-const.c (warn_function_noreturn): Fix whitespace.
1882         (warn_function_cold): Likewise.
1883         (skip_function_for_local_pure_const): Move earlier.
1884         (ipa_make_function_const): Break out from ...
1885         (ipa_make_function_pure): Break out from ...
1886         (propagate_pure_const): ... here.
1887         (pass_local_pure_const::execute): Use it.
1888         * ipa-utils.h (ipa_make_function_const): Declare.
1889         (ipa_make_function_pure): Declare.
1890         * passes.def: Move early modref after pure-const.
1892 2021-11-11  David Malcolm  <dmalcolm@redhat.com>
1894         PR other/103129
1895         * diagnostic-show-locus.c (def_policy): Use def_tabstop.
1897 2021-11-11  Jonathan Wright  <jonathan.wright@arm.com>
1899         * config/aarch64/aarch64-builtins.c (TYPES_COMBINE): Delete.
1900         (TYPES_COMBINEP): Delete.
1901         * config/aarch64/aarch64-simd-builtins.def: Declare type-
1902         qualified builtins for vcombine_* intrinsics.
1903         * config/aarch64/arm_neon.h (vcombine_s8): Remove unnecessary
1904         cast.
1905         (vcombine_s16): Likewise.
1906         (vcombine_s32): Likewise.
1907         (vcombine_f32): Likewise.
1908         (vcombine_u8): Use type-qualified builtin and remove casts.
1909         (vcombine_u16): Likewise.
1910         (vcombine_u32): Likewise.
1911         (vcombine_u64): Likewise.
1912         (vcombine_p8): Likewise.
1913         (vcombine_p16): Likewise.
1914         (vcombine_p64): Likewise.
1915         (vcombine_bf16): Remove unnecessary cast.
1916         * config/aarch64/iterators.md (VD_I): New mode iterator.
1917         (VDC_P): New mode iterator.
1919 2021-11-11  Jonathan Wright  <jonathan.wright@arm.com>
1921         * config/aarch64/aarch64-builtins.c (TYPES_LOAD1_U): Define.
1922         (TYPES_LOAD1_P): Define.
1923         (TYPES_STORE1_U): Define.
1924         (TYPES_STORE1P): Rename to...
1925         (TYPES_STORE1_P): This.
1926         (get_mem_type_for_load_store): Add unsigned and poly types.
1927         (aarch64_general_gimple_fold_builtin): Add unsigned and poly
1928         type-qualified builtin declarations.
1929         * config/aarch64/aarch64-simd-builtins.def: Declare type-
1930         qualified builtins for LD1/ST1.
1931         * config/aarch64/arm_neon.h (vld1_p8): Use type-qualified
1932         builtin and remove cast.
1933         (vld1_p16): Likewise.
1934         (vld1_u8): Likewise.
1935         (vld1_u16): Likewise.
1936         (vld1_u32): Likewise.
1937         (vld1q_p8): Likewise.
1938         (vld1q_p16): Likewise.
1939         (vld1q_p64): Likewise.
1940         (vld1q_u8): Likewise.
1941         (vld1q_u16): Likewise.
1942         (vld1q_u32): Likewise.
1943         (vld1q_u64): Likewise.
1944         (vst1_p8): Likewise.
1945         (vst1_p16): Likewise.
1946         (vst1_u8): Likewise.
1947         (vst1_u16): Likewise.
1948         (vst1_u32): Likewise.
1949         (vst1q_p8): Likewise.
1950         (vst1q_p16): Likewise.
1951         (vst1q_p64): Likewise.
1952         (vst1q_u8): Likewise.
1953         (vst1q_u16): Likewise.
1954         (vst1q_u32): Likewise.
1955         (vst1q_u64): Likewise.
1956         * config/aarch64/iterators.md (VALLP_NO_DI): New iterator.
1958 2021-11-11  Jonathan Wright  <jonathan.wright@arm.com>
1960         * config/aarch64/aarch64-simd-builtins.def: Declare unsigned
1961         builtins for vector reduction.
1962         * config/aarch64/arm_neon.h (vaddv_u8): Use type-qualified
1963         builtin and remove casts.
1964         (vaddv_u16): Likewise.
1965         (vaddv_u32): Likewise.
1966         (vaddvq_u8): Likewise.
1967         (vaddvq_u16): Likewise.
1968         (vaddvq_u32): Likewise.
1969         (vaddvq_u64): Likewise.
1971 2021-11-11  Jonathan Wright  <jonathan.wright@arm.com>
1973         * config/aarch64/aarch64-simd-builtins.def:
1974         * config/aarch64/arm_neon.h (vpaddq_u8): Use type-qualified
1975         builtin and remove casts.
1976         (vpaddq_u16): Likewise.
1977         (vpaddq_u32): Likewise.
1978         (vpaddq_u64): Likewise.
1979         (vpadd_u8): Likewise.
1980         (vpadd_u16): Likewise.
1981         (vpadd_u32): Likewise.
1982         (vpaddd_u64): Likewise.
1984 2021-11-11  Jonathan Wright  <jonathan.wright@arm.com>
1986         * config/aarch64/aarch64-simd-builtins.def: Declare unsigned
1987         builtins for [r]subhn[2].
1988         * config/aarch64/arm_neon.h (vsubhn_s16): Remove unnecessary
1989         cast.
1990         (vsubhn_s32): Likewise.
1991         (vsubhn_s64): Likewise.
1992         (vsubhn_u16): Use type-qualified builtin and remove casts.
1993         (vsubhn_u32): Likewise.
1994         (vsubhn_u64): Likewise.
1995         (vrsubhn_s16): Remove unnecessary cast.
1996         (vrsubhn_s32): Likewise.
1997         (vrsubhn_s64): Likewise.
1998         (vrsubhn_u16): Use type-qualified builtin and remove casts.
1999         (vrsubhn_u32): Likewise.
2000         (vrsubhn_u64): Likewise.
2001         (vrsubhn_high_s16): Remove unnecessary cast.
2002         (vrsubhn_high_s32): Likewise.
2003         (vrsubhn_high_s64): Likewise.
2004         (vrsubhn_high_u16): Use type-qualified builtin and remove
2005         casts.
2006         (vrsubhn_high_u32): Likewise.
2007         (vrsubhn_high_u64): Likewise.
2008         (vsubhn_high_s16): Remove unnecessary cast.
2009         (vsubhn_high_s32): Likewise.
2010         (vsubhn_high_s64): Likewise.
2011         (vsubhn_high_u16): Use type-qualified builtin and remove
2012         casts.
2013         (vsubhn_high_u32): Likewise.
2014         (vsubhn_high_u64): Likewise.
2016 2021-11-11  Jonathan Wright  <jonathan.wright@arm.com>
2018         * config/aarch64/aarch64-simd-builtins.def: Declare unsigned
2019         builtins for [r]addhn[2].
2020         * config/aarch64/arm_neon.h (vaddhn_s16): Remove unnecessary
2021         cast.
2022         (vaddhn_s32): Likewise.
2023         (vaddhn_s64): Likewise.
2024         (vaddhn_u16): Use type-qualified builtin and remove casts.
2025         (vaddhn_u32): Likewise.
2026         (vaddhn_u64): Likewise.
2027         (vraddhn_s16): Remove unnecessary cast.
2028         (vraddhn_s32): Likewise.
2029         (vraddhn_s64): Likewise.
2030         (vraddhn_u16): Use type-qualified builtin and remove casts.
2031         (vraddhn_u32): Likewise.
2032         (vraddhn_u64): Likewise.
2033         (vaddhn_high_s16): Remove unnecessary cast.
2034         (vaddhn_high_s32): Likewise.
2035         (vaddhn_high_s64): Likewise.
2036         (vaddhn_high_u16): Use type-qualified builtin and remove
2037         casts.
2038         (vaddhn_high_u32): Likewise.
2039         (vaddhn_high_u64): Likewise.
2040         (vraddhn_high_s16): Remove unnecessary cast.
2041         (vraddhn_high_s32): Likewise.
2042         (vraddhn_high_s64): Likewise.
2043         (vraddhn_high_u16): Use type-qualified builtin and remove
2044         casts.
2045         (vraddhn_high_u32): Likewise.
2046         (vraddhn_high_u64): Likewise.
2048 2021-11-11  Jonathan Wright  <jonathan.wright@arm.com>
2050         * config/aarch64/aarch64-simd-builtins.def: Use BINOPU type
2051         qualifiers in generator macros for uhsub builtins.
2052         * config/aarch64/arm_neon.h (vhsub_s8): Remove unnecessary
2053         cast.
2054         (vhsub_s16): Likewise.
2055         (vhsub_s32): Likewise.
2056         (vhsub_u8): Use type-qualified builtin and remove casts.
2057         (vhsub_u16): Likewise.
2058         (vhsub_u32): Likewise.
2059         (vhsubq_s8): Remove unnecessary cast.
2060         (vhsubq_s16): Likewise.
2061         (vhsubq_s32): Likewise.
2062         (vhsubq_u8): Use type-qualified builtin and remove casts.
2063         (vhsubq_u16): Likewise.
2064         (vhsubq_u32): Likewise.
2066 2021-11-11  Jonathan Wright  <jonathan.wright@arm.com>
2068         * config/aarch64/aarch64-simd-builtins.def: Use BINOPU type
2069         qualifiers in generator macros for u[r]hadd builtins.
2070         * config/aarch64/arm_neon.h (vhadd_s8): Remove unnecessary
2071         cast.
2072         (vhadd_s16): Likewise.
2073         (vhadd_s32): Likewise.
2074         (vhadd_u8): Use type-qualified builtin and remove casts.
2075         (vhadd_u16): Likewise.
2076         (vhadd_u32): Likewise.
2077         (vhaddq_s8): Remove unnecessary cast.
2078         (vhaddq_s16): Likewise.
2079         (vhaddq_s32): Likewise.
2080         (vhaddq_u8): Use type-qualified builtin and remove casts.
2081         (vhaddq_u16): Likewise.
2082         (vhaddq_u32): Likewise.
2083         (vrhadd_s8): Remove unnecessary cast.
2084         (vrhadd_s16): Likewise.
2085         (vrhadd_s32): Likewise.
2086         (vrhadd_u8): Use type-qualified builtin and remove casts.
2087         (vrhadd_u16): Likewise.
2088         (vrhadd_u32): Likewise.
2089         (vrhaddq_s8): Remove unnecessary cast.
2090         (vrhaddq_s16): Likewise.
2091         (vrhaddq_s32): Likewise.
2092         (vrhaddq_u8): Use type-wualified builtin and remove casts.
2093         (vrhaddq_u16): Likewise.
2094         (vrhaddq_u32): Likewise.
2096 2021-11-11  Jonathan Wright  <jonathan.wright@arm.com>
2098         * config/aarch64/aarch64-simd-builtins.def: Use BINOPU type
2099         qualifiers in generator macros for usub[lw][2] builtins.
2100         * config/aarch64/arm_neon.h (vsubl_s8): Remove unnecessary
2101         cast.
2102         (vsubl_s16): Likewise.
2103         (vsubl_s32): Likewise.
2104         (vsubl_u8): Use type-qualified builtin and remove casts.
2105         (vsubl_u16): Likewise.
2106         (vsubl_u32): Likewise.
2107         (vsubl_high_s8): Remove unnecessary cast.
2108         (vsubl_high_s16): Likewise.
2109         (vsubl_high_s32): Likewise.
2110         (vsubl_high_u8): Use type-qualified builtin and remove casts.
2111         (vsubl_high_u16): Likewise.
2112         (vsubl_high_u32): Likewise.
2113         (vsubw_s8): Remove unnecessary casts.
2114         (vsubw_s16): Likewise.
2115         (vsubw_s32): Likewise.
2116         (vsubw_u8): Use type-qualified builtin and remove casts.
2117         (vsubw_u16): Likewise.
2118         (vsubw_u32): Likewise.
2119         (vsubw_high_s8): Remove unnecessary cast.
2120         (vsubw_high_s16): Likewise.
2121         (vsubw_high_s32): Likewise.
2122         (vsubw_high_u8): Use type-qualified builtin and remove casts.
2123         (vsubw_high_u16): Likewise.
2124         (vsubw_high_u32): Likewise.
2126 2021-11-11  Jonathan Wright  <jonathan.wright@arm.com>
2128         * config/aarch64/aarch64-simd-builtins.def: Use BINOPU type
2129         qualifiers in generator macros for uadd[lw][2] builtins.
2130         * config/aarch64/arm_neon.h (vaddl_s8): Remove unnecessary
2131         cast.
2132         (vaddl_s16): Likewise.
2133         (vaddl_s32): Likewise.
2134         (vaddl_u8): Use type-qualified builtin and remove casts.
2135         (vaddl_u16): Likewise.
2136         (vaddl_u32): Likewise.
2137         (vaddl_high_s8): Remove unnecessary cast.
2138         (vaddl_high_s16): Likewise.
2139         (vaddl_high_s32): Likewise.
2140         (vaddl_high_u8): Use type-qualified builtin and remove casts.
2141         (vaddl_high_u16): Likewise.
2142         (vaddl_high_u32): Likewise.
2143         (vaddw_s8): Remove unnecessary cast.
2144         (vaddw_s16): Likewise.
2145         (vaddw_s32): Likewise.
2146         (vaddw_u8): Use type-qualified builtin and remove casts.
2147         (vaddw_u16): Likewise.
2148         (vaddw_u32): Likewise.
2149         (vaddw_high_s8): Remove unnecessary cast.
2150         (vaddw_high_s16): Likewise.
2151         (vaddw_high_s32): Likewise.
2152         (vaddw_high_u8): Use type-qualified builtin and remove casts.
2153         (vaddw_high_u16): Likewise.
2154         (vaddw_high_u32): Likewise.
2156 2021-11-11  Jonathan Wright  <jonathan.wright@arm.com>
2158         * config/aarch64/aarch64-simd-builtins.def: Declare type-
2159         qualified builtins for [R]SHRN[2].
2160         * config/aarch64/arm_neon.h (vshrn_n_u16): Use type-qualified
2161         builtin and remove casts.
2162         (vshrn_n_u32): Likewise.
2163         (vshrn_n_u64): Likewise.
2164         (vrshrn_high_n_u16): Likewise.
2165         (vrshrn_high_n_u32): Likewise.
2166         (vrshrn_high_n_u64): Likewise.
2167         (vrshrn_n_u16): Likewise.
2168         (vrshrn_n_u32): Likewise.
2169         (vrshrn_n_u64): Likewise.
2170         (vshrn_high_n_u16): Likewise.
2171         (vshrn_high_n_u32): Likewise.
2172         (vshrn_high_n_u64): Likewise.
2174 2021-11-11  Jonathan Wright  <jonathan.wright@arm.com>
2176         * config/aarch64/aarch64-simd-builtins.def: Declare unsigned
2177         type-qualified builtins for XTN[2].
2178         * config/aarch64/arm_neon.h (vmovn_high_u16): Use type-
2179         qualified builtin and remove casts.
2180         (vmovn_high_u32): Likewise.
2181         (vmovn_high_u64): Likewise.
2182         (vmovn_u16): Likewise.
2183         (vmovn_u32): Likewise.
2184         (vmovn_u64): Likewise.
2186 2021-11-11  Jonathan Wright  <jonathan.wright@arm.com>
2188         * config/aarch64/aarch64-simd-builtins.def: Use poly type
2189         qualifier in builtin generator macros.
2190         * config/aarch64/arm_neon.h (vmul_p8): Use type-qualified
2191         builtin and remove casts.
2192         (vmulq_p8): Likewise.
2193         (vmull_high_p8): Likewise.
2194         (vmull_p8): Likewise.
2196 2021-11-11  Jonathan Wright  <jonathan.wright@arm.com>
2198         * config/aarch64/aarch64-simd-builtins.def: Declare type-
2199         qualified builtin generators for unsigned MLA/MLS intrinsics.
2200         * config/aarch64/arm_neon.h (vmla_n_u16): Use type-qualified
2201         builtin.
2202         (vmla_n_u32): Likewise.
2203         (vmla_u8): Likewise.
2204         (vmla_u16): Likewise.
2205         (vmla_u32): Likewise.
2206         (vmlaq_n_u16): Likewise.
2207         (vmlaq_n_u32): Likewise.
2208         (vmlaq_u8): Likewise.
2209         (vmlaq_u16): Likewise.
2210         (vmlaq_u32): Likewise.
2211         (vmls_n_u16): Likewise.
2212         (vmls_n_u32): Likewise.
2213         (vmls_u8): Likewise.
2214         (vmls_u16): Likewise.
2215         (vmls_u32): Likewise.
2216         (vmlsq_n_u16): Likewise.
2217         (vmlsq_n_u32): Likewise.
2218         (vmlsq_u8): Likewise.
2219         (vmlsq_u16): Likewise.
2220         (vmlsq_u32): Likewise.
2222 2021-11-11  Jan Hubicka  <hubicka@ucw.cz>
2224         * ipa-modref.c (modref_summary::useful_p): Check also for side-effects
2225         with looping const/pure.
2226         (modref_summary_lto::useful_p): Likewise.
2227         (merge_call_side_effects): Merge side effects before early exit
2228         for pure/const.
2229         (process_fnspec): Also handle pure functions.
2230         (analyze_call): Do not early exit on looping pure const.
2231         (propagate_unknown_call): Also handle nontrivial SCC as side-effect.
2232         (modref_propagate_in_scc): Update.
2234 2021-11-11  Richard Biener  <rguenther@suse.de>
2236         PR tree-optimization/103190
2237         * tree-ssa-reassoc.c (insert_stmt_after): Only assert on asm goto.
2239 2021-11-11  Aldy Hernandez  <aldyh@redhat.com>
2241         * gimple-range-path.cc (path_range_query::add_copies_to_imports):
2242         Rename to...
2243         (path_range_query::compute_imports): ...this.  Adapt it so it can
2244         be passed the imports bitmap instead of working on m_imports.
2245         (path_range_query::compute_ranges): Call compute_imports in all
2246         cases unless an imports bitmap is passed.
2247         * gimple-range-path.h (path_range_query::compute_imports): New.
2248         (path_range_query::add_copies_to_imports): Remove.
2249         * tree-ssa-threadbackward.c (back_threader::resolve_def): Remove.
2250         (back_threader::find_paths_to_names): Inline resolve_def.
2251         (back_threader::find_paths): Call compute_imports.
2252         (back_threader::resolve_phi): Adjust comment.
2254 2021-11-11  Richard Biener  <rguenther@suse.de>
2256         PR tree-optimization/103188
2257         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p):
2258         Remove query parameter, split out check for size
2259         optimization.
2260         (ch_base::m_ranger, cb_base::m_query): Remove.
2261         (ch_base::copy_headers): Split processing loop into
2262         analysis around which we allocate and use ranger and
2263         transform where we do not.
2264         (pass_ch::execute): Do not allocate/free ranger here.
2265         (pass_ch_vect::execute): Likewise.
2267 2021-11-11  Jan Hubicka  <hubicka@ucw.cz>
2269         * ipa-pure-const.c (propagate_pure_const): Self recursion is
2270         a side effects.
2272 2021-11-11  Jan Hubicka  <hubicka@ucw.cz>
2274         * cgraph.c (set_noreturn_flag_1): New function.
2275         (cgraph_node::set_noreturn_flag): New member function
2276         * cgraph.h (cgraph_node::set_noreturn_flags): Declare.
2277         * ipa-pure-const.c (pass_local_pure_const::execute): Use it.
2279 2021-11-11  Aldy Hernandez  <aldyh@redhat.com>
2280             Richard Biener  <rguenther@suse.de>
2282         * tree-ssa-loop-ch.c (entry_loop_condition_is_static): Resolve
2283         statically to the edge remaining in the loop.
2285 2021-11-11  Richard Biener  <rguenther@suse.de>
2287         PR middle-end/103181
2288         * tree-eh.c (operation_could_trap_helper_p): Properly
2289         check vector constants for a zero element for integer
2290         division.  Separate floating point and integer division code.
2292 2021-11-11  Jakub Jelinek  <jakub@redhat.com>
2294         PR debug/101378
2295         * dwarf2out.c (field_byte_offset): Do the PCC_BITFIELD_TYPE_MATTERS
2296         handling only for DECL_BIT_FIELD_TYPE decls.
2298 2021-11-11  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
2300         PR target/102376
2301         * config/aarch64/aarch64.c (aarch64_process_target_attr): Check if
2302         token is arch extension without leading '+' and emit appropriate
2303         diagnostic for the same.
2305 2021-11-11  Jakub Jelinek  <jakub@redhat.com>
2307         * tree.h (OMP_CLAUSE_NUM_TEAMS_EXPR): Rename to ...
2308         (OMP_CLAUSE_NUM_TEAMS_UPPER_EXPR): ... this.
2309         (OMP_CLAUSE_NUM_TEAMS_LOWER_EXPR): Define.
2310         * tree.c (omp_clause_num_ops): Increase num ops for
2311         OMP_CLAUSE_NUM_TEAMS to 2.
2312         * tree-pretty-print.c (dump_omp_clause): Print optional lower bound
2313         for OMP_CLAUSE_NUM_TEAMS.
2314         * gimplify.c (gimplify_scan_omp_clauses): Gimplify
2315         OMP_CLAUSE_NUM_TEAMS_LOWER_EXPR if non-NULL.
2316         (optimize_target_teams): Use OMP_CLAUSE_NUM_TEAMS_UPPER_EXPR instead
2317         of OMP_CLAUSE_NUM_TEAMS_EXPR.  Handle OMP_CLAUSE_NUM_TEAMS_LOWER_EXPR.
2318         * omp-low.c (lower_omp_teams): Use OMP_CLAUSE_NUM_TEAMS_UPPER_EXPR
2319         instead of OMP_CLAUSE_NUM_TEAMS_EXPR.
2320         * omp-expand.c (expand_teams_call, get_target_arguments): Likewise.
2322 2021-11-11  Richard Biener  <rguenther@suse.de>
2324         * cfganal.c (find_pdom): Remove.
2325         (control_dependences::find_control_dependence): Remove
2326         special-casing of entry block, call get_immediate_dominator
2327         directly.
2328         * gimple-predicate-analysis.cc (find_pdom): Remove.
2329         (find_dom): Likewise.
2330         (find_control_equiv_block): Call get_immediate_dominator
2331         directly.
2332         (compute_control_dep_chain): Likewise.
2333         (predicate::init_from_phi_def): Likewise.
2335 2021-11-11  Richard Biener  <rguenther@suse.de>
2337         * cfganal.h (control_dependences::control_dependence_map):
2338         Embed bitmap_head.
2339         (control_dependences::m_bitmaps): New.
2340         * cfganal.c (control_dependences::set_control_dependence_map_bit):
2341         Adjust.
2342         (control_dependences::clear_control_dependence_bitmap):
2343         Likewise.
2344         (control_dependences::find_control_dependence): Do not
2345         find_edge for the abnormal edge test.
2346         (control_dependences::control_dependences): Instead do not
2347         add abnormal edges to the edge list.  Adjust.
2348         (control_dependences::~control_dependences): Likewise.
2349         (control_dependences::get_edges_dependent_on): Likewise.
2350         * function-tests.c: Include bitmap.h.
2352 2021-11-11  Kewen Lin  <linkw@linux.ibm.com>
2354         * doc/invoke.texi: Change references to "future cpu" to "power10",
2355         "-mcpu=future" to "-mcpu=power10".  Adjust words for float128.
2357 2021-11-11  Cui,Lili  <lili.cui@intel.com>
2359         * config/i386/i386-options.c (m_CORE_AVX2): Remove Alderlake
2360         from m_CORE_AVX2.
2361         (processor_cost_table): Use alderlake_cost for Alderlake.
2362         * config/i386/i386.c (ix86_sched_init_global): Handle Alderlake.
2363         * config/i386/x86-tune-costs.h (struct processor_costs): Add alderlake
2364         cost.
2365         * config/i386/x86-tune-sched.c (ix86_issue_rate): Change Alderlake
2366         issue rate to 4.
2367         (ix86_adjust_cost): Handle Alderlake.
2368         * config/i386/x86-tune.def (X86_TUNE_SCHEDULE): Enable for Alderlake.
2369         (X86_TUNE_PARTIAL_REG_DEPENDENCY): Likewise.
2370         (X86_TUNE_SSE_PARTIAL_REG_DEPENDENCY): Likewise.
2371         (X86_TUNE_SSE_PARTIAL_REG_FP_CONVERTS_DEPENDENCY): Likewise.
2372         (X86_TUNE_SSE_PARTIAL_REG_CONVERTS_DEPENDENCY): Likewise.
2373         (X86_TUNE_MEMORY_MISMATCH_STALL): Likewise.
2374         (X86_TUNE_USE_LEAVE): Likewise.
2375         (X86_TUNE_PUSH_MEMORY): Likewise.
2376         (X86_TUNE_USE_INCDEC): Likewise.
2377         (X86_TUNE_INTEGER_DFMODE_MOVES): Likewise.
2378         (X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Likewise.
2379         (X86_TUNE_USE_SAHF): Likewise.
2380         (X86_TUNE_USE_BT): Likewise.
2381         (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI): Likewise.
2382         (X86_TUNE_ONE_IF_CONV_INSN): Likewise.
2383         (X86_TUNE_AVOID_MFENCE): Likewise.
2384         (X86_TUNE_USE_SIMODE_FIOP): Likewise.
2385         (X86_TUNE_EXT_80387_CONSTANTS): Likewise.
2386         (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL): Likewise.
2387         (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Likewise.
2388         (X86_TUNE_SSE_TYPELESS_STORES): Likewise.
2389         (X86_TUNE_SSE_LOAD0_BY_PXOR): Likewise.
2390         (X86_TUNE_AVOID_4BYTE_PREFIXES): Likewise.
2391         (X86_TUNE_USE_GATHER): Disable for Alderlake.
2392         (X86_TUNE_AVX256_MOVE_BY_PIECES): Likewise.
2393         (X86_TUNE_AVX256_STORE_BY_PIECES): Likewise.
2395 2021-11-11  liuhongt  <hongtao.liu@intel.com>
2397         PR target/103151
2398         * config/i386/sse.md (V_128_256): Extend to V8HF/V16HF.
2399         (avxsizesuffix): Ditto.
2401 2021-11-11  Kito Cheng  <kito.cheng@sifive.com>
2403         * common/config/riscv/riscv-common.c (riscv_subset_list::to_string): Fix
2404         wrong marco checking.
2406 2021-11-10  Aldy Hernandez  <aldyh@redhat.com>
2408         PR tree-optimization/102906
2409         * tree-ssa-loop-ch.c (entry_loop_condition_is_static): New.
2410         (should_duplicate_loop_header_p): Call entry_loop_condition_is_static.
2411         (class ch_base): Add m_ranger and m_query.
2412         (ch_base::copy_headers): Pass m_query to
2413         entry_loop_condition_is_static.
2414         (pass_ch::execute): Allocate and deallocate m_ranger and
2415         m_query.
2416         (pass_ch_vect::execute): Same.
2418 2021-11-10  Andrew Pinski  <apinski@marvell.com>
2420         PR target/103170
2421         * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>):
2422         Use vwcore iterator for the r constraint output string.
2424 2021-11-10  qing zhao  <qing.zhao@oracle.com>
2426         * internal-fn.c (expand_DEFERRED_INIT): Apply pattern initialization
2427         only when have_insn_for return true for the mode. Fix a memory leak.
2429 2021-11-10  Christophe Lyon  <christophe.lyon@foss.st.com>
2431         * config/arm/arm.c (cortexa9_extra_costs, cortexa8_extra_costs,
2432         cortexa5_extra_costs, cortexa7_extra_costs,
2433         cortexa12_extra_costs, cortexa15_extra_costs, v7m_extra_costs):
2434         Initialize movi, dup and extract costing fields.
2436 2021-11-10  Aldy Hernandez  <aldyh@redhat.com>
2438         * gimple-range-path.cc (path_range_query::path_range_query): Do
2439         not init m_path.
2440         (path_range_query::dump): Change m_path uses to non-pointer.
2441         (path_range_query::defined_outside_path):  Same.
2442         (path_range_query::set_path): Same.
2443         (path_range_query::add_copies_to_imports): Same.
2444         (path_range_query::range_of_stmt): Same.
2445         (path_range_query::compute_outgoing_relations): Same.
2446         (path_range_query::compute_ranges): Imports are now optional.
2447         Implement overload that takes an edge.
2448         * gimple-range-path.h (class path_range_query): Make imports
2449         optional for compute_ranges.  Add compute_ranges(edge) overload.
2450         Make m_path an auto_vec instead of a pointer and adjust
2451         accordingly.
2453 2021-11-10  Tamar Christina  <tamar.christina@arm.com>
2455         * tree-vectorizer.h (struct scalar_cond_masked_key): Add inverted_p.
2456         (default_hash_traits<scalar_conf_masked_key>): Likewise.
2457         * tree-vect-stmts.c (vectorizable_condition): Check if inverse of mask
2458         is live.
2459         * tree-vectorizer.c (scalar_cond_masked_key::get_cond_ops_from_tree):
2460         Register mask inverses.
2462 2021-11-10  Tamar Christina  <tamar.christina@arm.com>
2464         * tree-vectorizer.c (vectorize_loops): Do local CSE through RPVN upon
2465         successful vectorization.
2467 2021-11-10  Andrew MacLeod  <amacleod@redhat.com>
2469         * gimple-range-cache.cc (sbr_vector::grow): New.
2470         (sbr_vector::set_bb_range): Call grow.
2471         (sbr_vector::get_bb_range): Same.
2472         (sbr_vector::bb_range_p): Remove assert.
2474 2021-11-10  Tamar Christina  <tamar.christina@arm.com>
2476         * config/aarch64/aarch64-simd.md (*aarch64_topbits_shuffle<mode>_le
2477         ,*aarch64_topbits_shuffle<mode>_be): Remove.
2479 2021-11-10  Jan Hubicka  <jh@suse.cz>
2481         * ipa-modref.c: Include tree-eh.h
2482         (modref_summary::modref_summary): Initialize side_effects.
2483         (struct modref_summary_lto): New bool field side_effects.
2484         (modref_summary_lto::modref_summary_lto): Initialize side_effects.
2485         (modref_summary::dump): Dump side_effects.
2486         (modref_summary_lto::dump): Dump side_effects.
2487         (merge_call_side_effects): Merge side effects.
2488         (process_fnspec): Calls to non-const/pure or looping
2489         function is a side effect.
2490         (analyze_call): Self-recursion is a side-effect; handle
2491         special builtins.
2492         (analyze_load): Watch for volatile and throwing memory.
2493         (analyze_store): Likewise.
2494         (analyze_stmt): Watch for volatitle asm.
2495         (analyze_function): Handle side_effects.
2496         (modref_summaries::duplicate): Duplicate side_effects.
2497         (modref_summaries_lto::duplicate): Likewise.
2498         (modref_write): Stream side_effects.
2499         (read_section): Likewise.
2500         (update_signature): Update.
2501         (propagate_unknown_call): Handle side_effects.
2502         (modref_propagate_in_scc): Likewise.
2503         * ipa-modref.h (struct modref_summary): Add side_effects.
2504         * ipa-pure-const.c (special_builtin_state): Rename to ...
2505         (builtin_safe_for_const_function_p): ... this one.
2506         (check_call): Update.
2507         (finite_function_p): Break out from ...
2508         (propagate_pure_const): ... here
2509         * ipa-utils.h (finite_function): Declare.
2511 2021-11-10  Lucas A. M. Magalhães  <lamm@linux.ibm.com>
2513         * config.gcc (powerpc*-*-*): Remove -rpath from
2514         --with-advance-toolchain.
2516 2021-11-10  Marek Polacek  <polacek@redhat.com>
2518         PR c++/101940
2519         * attribs.c (struct scoped_attributes): Add a bool member.
2520         (lookup_scoped_attribute_spec): Forward declare.
2521         (register_scoped_attributes): New bool parameter, defaulted to
2522         false.  Use it.
2523         (handle_ignored_attributes_option): New function.
2524         (free_attr_data): New function.
2525         (init_attributes): Call handle_ignored_attributes_option.
2526         (attr_namespace_ignored_p): New function.
2527         (decl_attributes): Check attr_namespace_ignored_p before
2528         warning.
2529         * attribs.h (free_attr_data): Declare.
2530         (register_scoped_attributes): Adjust declaration.
2531         (handle_ignored_attributes_option): Declare.
2532         (canonicalize_attr_name): New function template.
2533         (canonicalize_attr_name): Use it.
2534         * common.opt (Wattributes=): New option with a variable.
2535         * doc/extend.texi: Document #pragma GCC diagnostic ignored_attributes.
2536         * doc/invoke.texi: Document -Wno-attributes=.
2537         * opts.c (common_handle_option) <case OPT_Wattributes_>: Handle.
2538         * plugin.h (register_scoped_attributes): Adjust declaration.
2539         * toplev.c (compile_file): Call free_attr_data.
2541 2021-11-10  Przemyslaw Wirkus  <przemyslaw.wirkus@arm.com>
2543         * config/arm/arm-cpus.in (cortex-a710): New CPU.
2544         * config/arm/arm-tables.opt: Regenerate.
2545         * config/arm/arm-tune.md: Regenerate.
2546         * doc/invoke.texi: Update docs.
2548 2021-11-10  Andre Vieira  <andre.simoesdiasvieira@arm.com>
2550         * config/aarch64/aarch64-builtins.c
2551         (aarch64_general_gimple_fold_builtin): Mark argument as unused.
2553 2021-11-10  Martin Liska  <mliska@suse.cz>
2555         * lto-wrapper.c (merge_and_complain): Make the first argument
2556         a reference type.
2558 2021-11-10  Richard Sandiford  <richard.sandiford@arm.com>
2560         * config/aarch64/iterators.md (optab): Use fmax_nan instead of
2561         smax_nan and fmin_nan instead of smin_nan.
2562         (maxmin_uns): Rename to...
2563         (fmaxmin): ...this and make the same changes.  Remove entries
2564         unrelated to fmax* and fmin*.
2565         * config/aarch64/aarch64.md (<maxmin_uns><mode>3): Rename to...
2566         (<fmaxmin><mode>3): ...this.
2567         * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>):
2568         Rename to...
2569         (aarch64_<optab>p<mode>): ...this.
2570         (<maxmin_uns><mode>3): Rename to...
2571         (<fmaxmin><mode>3): ...this.
2572         (reduc_<maxmin_uns>_scal_<mode>): Rename to...
2573         (reduc_<optab>_scal_<mode>): ...this and update gen* call.
2574         (aarch64_reduc_<maxmin_uns>_internal<mode>): Rename to...
2575         (aarch64_reduc_<optab>_internal<mode>): ...this.
2576         (aarch64_reduc_<maxmin_uns>_internalv2si): Rename to...
2577         (aarch64_reduc_<optab>_internalv2si): ...this.
2578         * config/aarch64/aarch64-sve.md (<maxmin_uns><mode>3): Rename to...
2579         (<fmaxmin><mode>3): ...this.
2580         * config/aarch64/aarch64-simd-builtins.def (smax_nan, smin_nan)
2581         Rename to...
2582         (fmax_nan, fmin_nan): ...this.
2583         * config/aarch64/arm_neon.h (vmax_f32, vmax_f64, vmaxq_f32, vmaxq_f64)
2584         (vmin_f32, vmin_f64, vminq_f32, vminq_f64, vmax_f16, vmaxq_f16)
2585         (vmin_f16, vminq_f16): Update accordingly.
2587 2021-11-10  Richard Sandiford  <richard.sandiford@arm.com>
2589         * tree-vectorizer.h (vector_costs::finish_cost): Take the
2590         corresponding scalar costs as a parameter.
2591         (finish_cost): Likewise.
2592         * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost)
2593         (vect_estimate_min_profitable_iters): Update accordingly.
2594         * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Likewise.
2595         * tree-vectorizer.c (vector_costs::finish_cost): Likewise.
2596         * config/aarch64/aarch64.c (aarch64_vector_costs::finish_cost):
2597         Likewise.
2598         * config/rs6000/rs6000.c (rs6000_cost_data::finish_cost): Likewise.
2600 2021-11-10  Richard Sandiford  <richard.sandiford@arm.com>
2602         * tree-vectorizer.h (_loop_vec_info::scalar_costs): New member
2603         variable.
2604         (_loop_vec_info::single_scalar_iteration_cost): Delete.
2605         (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Delete.
2606         (vector_costs::total_cost): New function.
2607         * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Update
2608         after above changes.
2609         (_loop_vec_info::~_loop_vec_info): Delete scalar_costs.
2610         (vect_compute_single_scalar_iteration_cost): Store the costs
2611         in loop_vinfo->scalar_costs.
2612         (vect_estimate_min_profitable_iters): Get the scalar cost from
2613         loop_vinfo->scalar_costs.
2615 2021-11-10  Richard Sandiford  <richard.sandiford@arm.com>
2617         * tree-vectorizer.h (vector_costs::better_main_loop_than_p)
2618         (vector_costs::better_epilogue_loop_than_p)
2619         (vector_costs::compare_inside_loop_cost)
2620         (vector_costs::compare_outside_loop_cost): Likewise.
2621         * tree-vectorizer.c (vector_costs::better_main_loop_than_p)
2622         (vector_costs::better_epilogue_loop_than_p)
2623         (vector_costs::compare_inside_loop_cost)
2624         (vector_costs::compare_outside_loop_cost): New functions,
2625         containing code moved from...
2626         * tree-vect-loop.c (vect_better_loop_vinfo_p): ...here.
2628 2021-11-10  Richard Sandiford  <richard.sandiford@arm.com>
2630         * tree-vectorizer.h (_loop_vec_info): Remove vec_outside_cost
2631         and vec_inside_cost.
2632         (vector_costs::outside_cost): New function.
2633         * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Update
2634         after above.
2635         (vect_estimate_min_profitable_iters): Likewise.
2636         (vect_better_loop_vinfo_p): Get the inside and outside costs
2637         from the loop_vec_infos' vector_costs.
2639 2021-11-10  Richard Sandiford  <richard.sandiford@arm.com>
2641         * tree-vectorizer.h (vec_info::target_cost_data): Replace with...
2642         (_loop_vec_info::vector_costs): ...this.
2643         (LOOP_VINFO_TARGET_COST_DATA): Delete.
2644         * tree-vectorizer.c (vec_info::vec_info): Remove target_cost_data
2645         initialization.
2646         (vec_info::~vec_info): Remove corresponding delete.
2647         * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
2648         vector_costs to null.
2649         (_loop_vec_info::~_loop_vec_info): Delete vector_costs.
2650         (vect_analyze_loop_operations): Update after above changes.
2651         (vect_analyze_loop_2): Likewise.
2652         (vect_estimate_min_profitable_iters): Likewise.
2653         * tree-vect-slp.c (vect_slp_analyze_operations): Likewise.
2655 2021-11-10  Jan Hubicka  <hubicka@ucw.cz>
2657         * tree-core.h (EAF_DIRECT): Remove.
2658         (EAF_NOCLOBBER): Remove.
2659         (EAF_UNUSED): Remove.
2660         (EAF_NOESCAPE): Remove.
2661         (EAF_NO_DIRECT_CLOBBER): New.
2662         (EAF_NO_INDIRECT_CLOBBER): New.
2663         (EAF_NODIRECTESCAPE): Remove.
2664         (EAF_NO_DIRECT_ESCAPE): New.
2665         (EAF_NO_INDIRECT_ESCAPE): New.
2666         (EAF_NOT_RETURNED): Remove.
2667         (EAF_NOT_RETURNED_INDIRECTLY): New.
2668         (EAF_NOREAD): Remove.
2669         (EAF_NO_DIRECT_READ): New.
2670         (EAF_NO_INDIRECT_READ): New.
2671         * gimple.c (gimple_call_arg_flags): Update for new flags.
2672         (gimple_call_retslot_flags): Update for new flags.
2673         * ipa-modref.c (dump_eaf_flags): Likewise.
2674         (remove_useless_eaf_flags): Likewise.
2675         (deref_flags): Likewise.
2676         (modref_lattice::init): Likewise.
2677         (modref_lattice::merge): Likewise.
2678         (modref_lattice::merge_direct_load): Likewise.
2679         (modref_lattice::merge_direct_store): Likewise.
2680         (modref_eaf_analysis::merge_call_lhs_flags): Likewise.
2681         (callee_to_caller_flags): Likewise.
2682         (modref_eaf_analysis::analyze_ssa_name): Likewise.
2683         (modref_eaf_analysis::propagate): Likewise.
2684         (modref_merge_call_site_flags): Likewise.
2685         * ipa-modref.h (interposable_eaf_flags): Likewise.
2686         * tree-ssa-alias.c: (ref_maybe_used_by_call_p_1) Likewise.
2687         * tree-ssa-structalias.c (handle_call_arg): Likewise.
2688         (handle_rhs_call): Likewise.
2689         * tree-ssa-uninit.c (maybe_warn_pass_by_reference): Likewise.
2691 2021-11-10  Tamar Christina  <tamar.christina@arm.com>
2693         * tree-vect-slp-patterns.c (complex_mul_pattern::matches): Remove l1node.
2695 2021-11-10  Andre Vieira  <andre.simoesdiasvieira@arm.com>
2697         * config/aarch64/aarch64-builtins.c
2698         (aarch64_general_gimple_fold_builtin): Change pointer alignment and
2699         alias.
2701 2021-11-10  Jan Hubicka  <jh@suse.cz>
2703         * ipa-modref-tree.h (modref_tree::remap_params): Fix off-by-one error.
2705 2021-11-10  H.J. Lu  <hongjiu.lu@intel.com>
2706             Hongtao Liu  <hongtao.liu@intel.com>
2708         PR middle-end/102566
2709         * match.pd (nop_atomic_bit_test_and_p): New match.
2710         * tree-ssa-ccp.c (convert_atomic_bit_not): New function.
2711         (gimple_nop_atomic_bit_test_and_p): New prototype.
2712         (optimize_atomic_bit_test_and): Transform equivalent, but slighly
2713         different cases to their canonical forms.
2715 2021-11-10  liuhongt  <hongtao.liu@intel.com>
2717         PR tree-optimization/103126
2718         * tree-vect-loop.c (neutral_op_for_reduction): Remove static.
2719         * tree-vectorizer.h (neutral_op_for_reduction): Declare.
2720         * tree-if-conv.c : Include tree-vectorizer.h.
2721         (is_cond_scalar_reduction): Handle
2722         BIT_XOR_EXPR/BIT_IOR_EXPR/BIT_AND_EXPR.
2723         (convert_scalar_cond_reduction): Ditto.
2725 2021-11-10  konglin1  <lingling.kong@intel.com>
2727         * config/i386/sse.md (cmul<conj_op><mode>3): add new define_expand.
2728         (cmla<conj_op><mode>4): Likewise
2730 2021-11-10  Aldy Hernandez  <aldyh@redhat.com>
2732         * tree-ssa-threadedge.c: Do not include
2733         gimple-ssa-evrp-analyze.h.
2734         * value-pointer-equiv.cc: Same.
2736 2021-11-10  Aldy Hernandez  <aldyh@redhat.com>
2738         * tree-ssa-threadbackward.c
2739         (back_threader::maybe_register_path_dump): Abstract path dumping...
2740         (dump_path): ...here.
2741         (back_threader::resolve_phi): Call dump_path.
2742         (debug): Same.
2744 2021-11-10  konglin1  <lingling.kong@intel.com>
2746         * config/i386/sse.md (fma_<complexpairopname>_<mode>_pair):
2747         Add new define_insn.
2748         (fma_<mode>_fmaddc_bcst): Add new define_insn_and_split.
2749         (fma_<mode>_fcmaddc_bcst): Likewise
2751 2021-11-10  liuhongt  <hongtao.liu@intel.com>
2753         PR target/102464
2754         * match.pd: Simplify (trunc)fmax/fmin((extend)a, (extend)b) to
2755         MAX/MIN(a,b)
2757 2021-11-10  Andrew Pinski  <apinski@marvell.com>
2759         PR target/101529
2760         * config/aarch64/aarch64.c (aarch64_evpc_ins): Don't use target
2761         as an input, use original one.
2763 2021-11-10  Sandra Loosemore  <sandra@codesourcery.com>
2765         * config/nios2/nios2.c (nios2_can_inline_p): New.
2766         (TARGET_CAN_INLINE_P): Define.
2768 2021-11-09  Bill Schmidt  <wschmidt@linux.ibm.com>
2770         * config/rs6000/rs6000-call.c (rs6000_gimple_fold_new_builtin):
2771         Disable gimple fold for RS6000_BIF_{XVMINDP,XVMINSP,VMINFP} and
2772         RS6000_BIF_{XVMAXDP,XVMAXSP,VMAXFP} when fast-math is not set.
2773         (lxvrse_expand_builtin): Modify the expansion for sign extension.
2774         All extensions are done within VSX registers.
2776 2021-11-09  Andrew Pinski  <apinski@marvell.com>
2778         PR tree-optimization/10352
2779         * match.pd: Remove check of TYPE_PRECISION for
2780         the a?0:pow2 case.
2782 2021-11-09  Andrew MacLeod  <amacleod@redhat.com>
2784         * function.c (allocate_struct_function): Don't set x_range_query.
2785         * function.h (get_range_query): Move to value-query.h.
2786         * gimple-range.cc (enable_ranger): Check that query is currently NULL.
2787         (disable_ranger): Clear function current query field.
2788         * value-query.cc (get_global_range_query): Relocate to:
2789         * value-query.h (get_global_range_query): Here and inline.
2790         (get_range_query): Relocate here from function.h.
2792 2021-11-09  Aldy Hernandez  <aldyh@redhat.com>
2794         * tree-ssa-threadbackward.c
2795         (back_threader::maybe_register_path_dump): New.
2796         (back_threader::maybe_register_path): Call maybe_register_path_dump.
2798 2021-11-09  Aldy Hernandez  <aldyh@redhat.com>
2800         * tree-ssa-threadbackward.c (back_threader::maybe_register_path):
2801         Return NULL when unprofitable.
2803 2021-11-09  Martin Jambor  <mjambor@suse.cz>
2805         * tree.h (build_debug_expr_decl): Declare.
2806         * tree.c (build_debug_expr_decl): New function.
2807         * cfgexpand.c (avoid_deep_ter_for_debug): Use build_debug_expr_decl
2808         instead of building a DEBUG_EXPR_DECL.
2809         * ipa-param-manipulation.c
2810         (ipa_param_body_adjustments::prepare_debug_expressions): Likewise.
2811         * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Likewise.
2812         * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
2813         * tree-ssa-phiopt.c (spaceship_replacement): Likewise.
2814         * tree-ssa-reassoc.c (make_new_ssa_for_def): Likewise.
2816 2021-11-09  Bill Schmidt  <wschmidt@linux.ibm.com>
2818         * config/rs6000/rs6000-call.c (rs6000_type_string): New function.
2819         (def_builtin): Change debug formatting for easier parsing and
2820         include more information.
2821         (rs6000_init_builtins): Add dump of autogenerated builtins.
2822         (altivec_init_builtins): Dump __builtin_altivec_mask_for_load for
2823         completeness.
2825 2021-11-09  Marek Polacek  <polacek@redhat.com>
2827         * ipa-modref.c (analyze_parms): Fix a typo.
2829 2021-11-09  Kito Cheng  <kito.cheng@sifive.com>
2831         PR target/102957
2832         * common/config/riscv/riscv-common.c (multi_letter_subset_rank): Remove
2833         assertion for Z*-ext.
2835 2021-11-09  Jan Hubicka  <hubicka@ucw.cz>
2837         * ipa-modref.c (analyze_parms): Add past_flags, past_retslot_flags
2838         and past_static_chain; merge past summary with current one.
2839         (analyze_function): Update.
2841 2021-11-09  Aldy Hernandez  <aldyh@redhat.com>
2843         * doc/invoke.texi (Invoking GCC): Document --param=threader-debug.
2845 2021-11-09  Martin Liska  <mliska@suse.cz>
2847         * print-rtl.c (rtx_writer::rtx_writer): Make the compilation
2848         conditional based on
2849         * print-rtl.h (class rtx_writer): Likewise.
2851 2021-11-09  Thomas Schwinge  <thomas@codesourcery.com>
2853         * input.h (location_hash): Use 'BUILTINS_LOCATION' as spare value
2854         for 'Deleted'.  Turn into a '#define'.
2856 2021-11-09  Aldy Hernandez  <aldyh@redhat.com>
2858         * gimple-range-path.cc (path_range_query::dump): Clean up.
2859         (path_range_query::compute_ranges): Same.
2860         * value-relation.cc (path_oracle::dump): Same.
2862 2021-11-09  Aldy Hernandez  <aldyh@redhat.com>
2864         * dumpfile.c (dump_options): Remove TDF_THREADING entry.
2865         * dumpfile.h (enum dump_flag): Remove TDF_THREADING and adjust
2866         remaining entries.
2867         * flag-types.h (enum threader_debug): New.
2868         * gimple-range-path.cc (DEBUG_SOLVER): Use param_threader_debug.
2869         * params.opt: Add entry for --param=threader-debug=.
2871 2021-11-09  Thomas Schwinge  <thomas@codesourcery.com>
2873         PR middle-end/101204
2874         PR other/103157
2875         * diagnostic-spec.h (typedef xint_hash_t): Turn into...
2876         (struct xint_hash_t): ... this.
2877         * doc/gty.texi: Update.
2879 2021-11-09  Przemyslaw Wirkus  <przemyslaw.wirkus@arm.com>
2881         * config/arm/arm-cpus.in (armv9): New define.
2882         (ARMv9a): New group.
2883         (armv9-a): New arch definition.
2884         * config/arm/arm-tables.opt: Regenerate.
2885         * config/arm/arm.h (BASE_ARCH_9A): New arch enum value.
2886         * config/arm/t-aprofile: Added armv9-a and armv9+simd.
2887         * config/arm/t-arm-elf: Added arm9-a, v9_fps and all_v9_archs
2888         to MULTILIB_MATCHES.
2889         * config/arm/t-multilib: Added v9_a_nosimd_variants and
2890         v9_a_simd_variants to MULTILIB_MATCHES.
2891         * doc/invoke.texi: Update docs.
2893 2021-11-09  Martin Jambor  <mjambor@suse.cz>
2895         PR ipa/103132
2896         * ipa-param-manipulation.c (replace_with_mapped_expr): Early
2897         return with error_mark_mode when part of expression is mapped to
2898         NULL.
2899         (ipa_param_body_adjustments::remap_with_debug_expressions): Set
2900         mapped value to NULL if walk_tree returns error_mark_mode.
2902 2021-11-09  Aldy Hernandez  <aldyh@redhat.com>
2904         * tree-ssa-strlen.c (compare_nonzero_chars): Pass statement
2905         context to ranger.
2906         (get_addr_stridx): Same.
2907         (get_stridx): Same.
2908         (get_range_strlen_dynamic): Same.
2909         (handle_builtin_strlen): Same.
2910         (handle_builtin_strchr): Same.
2911         (handle_builtin_strcpy): Same.
2912         (maybe_diag_stxncpy_trunc): Same.
2913         (handle_builtin_stxncpy_strncat): Same.
2914         (handle_builtin_memcpy): Same.
2915         (handle_builtin_strcat): Same.
2916         (handle_alloc_call): Same.
2917         (handle_builtin_memset): Same.
2918         (handle_builtin_string_cmp): Same.
2919         (handle_pointer_plus): Same.
2920         (count_nonzero_bytes_addr): Same.
2921         (count_nonzero_bytes): Same.
2922         (handle_store): Same.
2923         (fold_strstr_to_strncmp): Same.
2924         (handle_integral_assign): Same.
2925         (check_and_optimize_stmt): Same.
2926         (class strlen_dom_walker): Replace evrp with ranger.
2927         (strlen_dom_walker::before_dom_children): Remove evrp.
2928         (strlen_dom_walker::after_dom_children): Remove evrp.
2929         * gimple-ssa-warn-access.cc (maybe_check_access_sizes):
2930         Restrict sprintf output.
2932 2021-11-09  Martin Liska  <mliska@suse.cz>
2934         * genconditions.c (write_one_condition): Add const qualifier
2935         to pointer casting.
2937 2021-11-09  Jeff Law  <jeffreyalaw@gmail.com>
2939         * match.pd: New pattern to simplify (1 << n) & M ==/!= 0 for M
2940         being a power of 2.
2942 2021-11-08  Bill Schmidt  <wschmidt@linux.ibm.com>
2944         * config/rs6000/rs6000-builtin-new.def (VEC_INIT_V16QI): Use
2945         escape-newline support.
2946         (VEC_INIT_V4SI): Likewise.
2947         (VEC_INIT_V8HI): Likewise.
2948         (PACK_V1TI): Likewise.
2949         (DIVDEU): Likewise.
2950         (VFIRSTMISMATCHOREOSINDEX_V16QI): Likewise.
2951         (VFIRSTMISMATCHOREOSINDEX_V8HI): Likewise.
2952         (VFIRSTMISMATCHOREOSINDEX_V4SI): Likewise.
2953         (CMPRB2): Likewise.
2954         (VSTDCP): Likewise.
2955         (VSIEDP): Likewise.
2956         (FMAF128_ODD): Likewise.
2957         (VSCEQPUO): Likewise.
2958         (VSIEQP): Likewise.
2959         (VSIEQPF): Likewise.
2960         (VSTDCQP): Likewise.
2961         (PACK_TD): Likewise.
2962         (TABORTDC): Likewise.
2963         (TABORTDCI): Likewise.
2964         (SE_LXVRBX): Likewise.
2965         (SE_LXVRHX): Likewise.
2966         (SE_LXVRWX): Likewise.
2967         (SE_LXVRDX): Likewise.
2968         (VREPLACE_UN_UV2DI): Likewise.
2969         (VREPLACE_UN_UV4SI): Likewise.
2970         (VREPLACE_UN_V2DI): Likewise.
2971         (VREPLACE_ELT_UV2DI): Likewise.
2972         (VREPLACE_ELT_V2DI): Likewise.
2973         (ZE_LXVRBX): Likewise.
2974         (ZE_LXVRHX): Likewise.
2975         (ZE_LXVRWX): Likewise.
2976         (ZE_LXVRDX): Likewise.
2977         (CFUGED): Likewise.
2978         (CNTLZDM): Likewise.
2979         (CNTTZDM): Likewise.
2980         (PDEPD): Likewise.
2981         (PEXTD): Likewise.
2982         (PMXVBF16GER2): Likewise.
2983         (PMXVBF16GER2_INTERNAL): Likewise.
2984         (PMXVBF16GER2NN): Likewise.
2985         (PMXVBF16GER2NN_INTERNAL): Likewise.
2986         (PMXVBF16GER2NP): Likewise.
2987         (PMXVBF16GER2NP_INTERNAL): Likewise.
2988         (PMXVBF16GER2PN): Likewise.
2989         (PMXVBF16GER2PN_INTERNAL): Likewise.
2990         (PMXVBF16GER2PP): Likewise.
2991         (PMXVBF16GER2PP_INTERNAL): Likewise.
2992         (PMXVF16GER2): Likewise.
2993         (PMXVF16GER2_INTERNAL): Likewise.
2994         (PMXVF16GER2NN): Likewise.
2995         (PMXVF16GER2NN_INTERNAL): Likewise.
2996         (PMXVF16GER2NP): Likewise.
2997         (PMXVF16GER2NP_INTERNAL): Likewise.
2998         (PMXVF16GER2PN): Likewise.
2999         (PMXVF16GER2PN_INTERNAL): Likewise.
3000         (PMXVF16GER2PP): Likewise.
3001         (PMXVF16GER2PP_INTERNAL): Likewise.
3002         (PMXVF32GER_INTERNAL): Likewise.
3003         (PMXVF32GERNN): Likewise.
3004         (PMXVF32GERNN_INTERNAL): Likewise.
3005         (PMXVF32GERNP): Likewise.
3006         (PMXVF32GERNP_INTERNAL): Likewise.
3007         (PMXVF32GERPN): Likewise.
3008         (PMXVF32GERPN_INTERNAL): Likewise.
3009         (PMXVF32GERPP): Likewise.
3010         (PMXVF32GERPP_INTERNAL): Likewise.
3011         (PMXVF64GER): Likewise.
3012         (PMXVF64GER_INTERNAL): Likewise.
3013         (PMXVF64GERNN): Likewise.
3014         (PMXVF64GERNN_INTERNAL): Likewise.
3015         (PMXVF64GERNP): Likewise.
3016         (PMXVF64GERNP_INTERNAL): Likewise.
3017         (PMXVF64GERPN): Likewise.
3018         (PMXVF64GERPN_INTERNAL): Likewise.
3019         (PMXVF64GERPP): Likewise.
3020         (PMXVF64GERPP_INTERNAL): Likewise.
3021         (PMXVI16GER2): Likewise.
3022         (PMXVI16GER2_INTERNAL): Likewise.
3023         (PMXVI16GER2PP): Likewise.
3024         (PMXVI16GER2PP_INTERNAL): Likewise.
3025         (PMXVI16GER2S): Likewise.
3026         (PMXVI16GER2S_INTERNAL): Likewise.
3027         (PMXVI16GER2SPP): Likewise.
3028         (PMXVI16GER2SPP_INTERNAL): Likewise.
3029         (PMXVI4GER8): Likewise.
3030         (PMXVI4GER8_INTERNAL): Likewise.
3031         (PMXVI4GER8PP): Likewise.
3032         (PMXVI4GER8PP_INTERNAL): Likewise.
3033         (PMXVI8GER4): Likewise.
3034         (PMXVI8GER4_INTERNAL): Likewise.
3035         (PMXVI8GER4PP): Likewise.
3036         (PMXVI8GER4PP_INTERNAL): Likewise.
3037         (PMXVI8GER4SPP): Likewise.
3038         (PMXVI8GER4SPP_INTERNAL): Likewise.
3039         * config/rs6000/rs6000-gen-builtins.c (MAXLINES): New macro.
3040         (linebuf): Increase size.
3041         (lines): New variable.
3042         (lastline): Likewise.
3043         (real_line_pos): New function.
3044         (diag): Change signature.
3045         (bif_diag): Change signature; support escape-newline handling.
3046         (ovld_diag): Likewise.
3047         (fatal): Move earlier.
3048         (consume_whitespace): Adjust diag call.
3049         (advance_line): Add escape-newline handling; call fatal.
3050         (safe_inc_pos): Adjust diag call.
3051         (match_identifier): Likewise.
3052         (match_integer): Likewise.
3053         (match_to_right_bracket): Call fatal instead of diag; adjust diag
3054         call.
3055         (match_basetype): Adjust diag calls.
3056         (match_bracketed_pair): Likewise.
3057         (match_const_restriction): Likewise.
3058         (match_type): Likewise.
3059         (parse_args): Likewise.
3060         (parse_bif_attrs): Likewise.
3061         (complete_vector_type): Likewise.
3062         (complete_base_type): Likewise.
3063         (parse_prototype): Likewise.
3064         (parse_bif_entry): Likewise.
3065         (parse_bif_stanza): Likewise.
3066         (parse_ovld_entry): Likewise.
3067         (parse_ovld_stanza): Likewise.
3068         (main): Allocate buffers for lines[].
3070 2021-11-08  Eric Botcazou  <ebotcazou@adacore.com>
3072         * config/i386/i386.c (legitimize_pic_address): Adjust comment and
3073         use the REG argument on the CM_LARGE_PIC code path as well.
3074         * config/i386/predicates.md (gotoff_operand): Do not treat VxWorks
3075         specially with the large code models.
3077 2021-11-08  Jan Hubicka  <hubicka@ucw.cz>
3079         * gimple.c (gimple_call_static_chain_flags): Revert the workaround
3080         allowing interposition since issues with binds_to_local_def were
3081         hopefully solved.
3083 2021-11-08  Andrew MacLeod  <amacleod@redhat.com>
3085         PR tree-optimization/103122
3086         * gimple-range.cc (gimple_ranger::range_of_expr): Request the cache
3087         entry with "calulate new values" set to false.
3089 2021-11-08  Jan Hubicka  <hubicka@ucw.cz>
3091         * builtins.c (is_simple_builtin): Add builitin_dwarf_cfa
3092         and builtin_return_address.
3093         (builtin_fnspec): Annotate builtin_return,
3094         bulitin_eh_pointer, builtin_eh_filter, builtin_unwind_resume,
3095         builtin_cxa_end_cleanup, builtin_eh_copy_values,
3096         builtin_frame_address, builtin_apply_args,
3097         builtin_asan_before_dynamic_init, builtin_asan_after_dynamic_init,
3098         builtin_prefetch, builtin_dwarf_cfa, builtin_return_addrss
3099         as ".c"
3100         * ipa-pure-const.c (special_builtin_state): Add builtin_dwarf_cfa
3101         and builtin_return_address.
3103 2021-11-08  Jan Hubicka  <hubicka@ucw.cz>
3105         PR tree-optimization/103177
3106         * passes.def: Move uncprop after pure/const and modref.
3108 2021-11-08  Martin Jambor  <mjambor@suse.cz>
3110         PR ipa/103099
3111         PR ipa/103107
3112         * tree-inline.c (remap_gimple_stmt): Unshare the expression without
3113         location before invoking remap_with_debug_expressions on it.
3114         * ipa-param-manipulation.c
3115         (ipa_param_body_adjustments::prepare_debug_expressions): Likewise.
3117 2021-11-08  David Edelsohn  <dje.gcc@gmail.com>
3119         * config/rs6000/vsx.md (vsx_splat_v4si_di): Revert "wa"
3120         constraint to "we".
3122 2021-11-08  Richard Biener  <rguenther@suse.de>
3124         * cfgloop.c (verify_loop_structure): Use a temporary BB flag
3125         instead of an sbitmap to cache irreducible state.
3127 2021-11-08  Aldy Hernandez  <aldyh@redhat.com>
3129         PR tree-optimization/103120
3130         * gimple-range-path.cc (path_range_query::range_defined_in_block):
3131         Bail if there's a cache entry.
3133 2021-11-08  Bill Schmidt  <wschmidt@linux.ibm.com>
3135         * config/rs6000/rs6000.c (rs6000_builtin_reciprocal): Use
3136         rs6000_builtin_decls_x when appropriate.
3137         (add_condition_to_bb): Likewise.
3138         (rs6000_atomic_assign_expand_fenv): Likewise.
3140 2021-11-08  Bill Schmidt  <wschmidt@linux.ibm.com>
3142         * config/rs6000/rs6000-call.c (rs6000_new_builtin_decl): New function.
3143         (rs6000_builtin_decl): Call it.
3145 2021-11-08  Martin Liska  <mliska@suse.cz>
3147         * cgraph.c (cgraph_node::dump): Dump it from decl.
3149 2021-11-08  Martin Liska  <mliska@suse.cz>
3151         PR gcov-profile/100520
3152         * coverage.c (coverage_compute_profile_id): Strip .gk when
3153         compare debug is used.
3154         * system.h (endswith): New function.
3156 2021-11-08  Martin Liska  <mliska@suse.cz>
3158         * cgraph.c (cgraph_node::dump): Dump static_chain_decl.
3160 2021-11-08  Thomas Schwinge  <thomas@codesourcery.com>
3162         * config/rs6000/rbtree.c: Fix 'Copyright (C) 2020-21' into '2020-2021'
3163         * config/rs6000/rbtree.h: Likewise.
3164         * config/rs6000/rs6000-builtin-new.def: Likewise.
3165         * config/rs6000/rs6000-gen-builtins.c: Likewise.
3166         * config/rs6000/rs6000-overload.def: Likewise.
3168 2021-11-08  Richard Sandiford  <richard.sandiford@arm.com>
3170         * config/aarch64/aarch64.c (aarch64_ldn_stn_vectors): New function.
3171         (aarch64_address_cost): Use it instead of testing for CImode and
3172         XImode directly.
3174 2021-11-08  Richard Sandiford  <richard.sandiford@arm.com>
3176         * genmodes.c (emit_insn_modes_h): Define NUM_MODE_* macros.
3177         * expmed.h (NUM_MODE_INT): Delete in favor of genmodes definitions.
3178         (NUM_MODE_PARTIAL_INT, NUM_MODE_VECTOR_INT): Likewise.
3179         * real.h (real_format_for_mode): Use NUM_MODE_FLOAT and
3180         NUM_MODE_DECIMAL_FLOAT.
3181         (REAL_MODE_FORMAT): Likewise.
3183 2021-11-08  Andre Vieira  <andre.simoesdiasvieira@arm.com>
3185         * tree-vect-loop.c (vect_better_loop_vinfo_p): Change how epilogue loop
3186         costs are compared.
3188 2021-11-08  Richard Biener  <rguenther@suse.de>
3190         * tree-vectorizer.h (vect_create_loop_vinfo): Add main_loop_info
3191         parameter.
3192         * tree-vect-loop.c (vect_create_loop_vinfo): Likewise.  Set
3193         LOOP_VINFO_ORIG_LOOP_INFO and conditionalize set of
3194         LOOP_VINFO_NITERS_ASSUMPTIONS.
3195         (vect_analyze_loop_1): Adjust.
3196         (vect_analyze_loop): Move loop constraint setting and
3197         SCEV/niter reset here from vect_create_loop_vinfo to perform
3198         it only once.
3199         (vect_analyze_loop_form): Move dumping of symbolic niters
3200         here from vect_create_loop_vinfo.
3202 2021-11-08  Jan Hubicka  <hubicka@ucw.cz>
3204         * ipa-modref-tree.h (enum modref_special_parms): New enum.
3205         (struct modref_access_node): update for special parms.
3206         (struct modref_ref_node): Likewise.
3207         (struct modref_parm_map): Likewise.
3208         (struct modref_tree): Likewise.
3209         * ipa-modref.c (dump_access): Likewise.
3210         (get_access): Detect static chain.
3211         (parm_map_for_arg): Take tree as arg instead of
3212         stmt and index.
3213         (merge_call_side_effects): Compute map for static chain.
3214         (process_fnspec): Update.
3215         (struct escape_point): Remove retslot_arg and static_chain_arg.
3216         (analyze_parms): Update.
3217         (compute_parm_map): Update.
3218         (propagate_unknown_call): Update.
3219         (modref_propagate_in_scc): Update.
3220         (modref_merge_call_site_flags): Update.
3221         (ipa_merge_modref_summary_after_inlining): Update.
3222         * tree-ssa-alias.c (modref_may_conflict): Handle static chain.
3223         * ipa-modref-tree.c (test_merge): Update.
3225 2021-11-08  Haochen Gui  <guihaoc@gcc.gnu.org>
3227         * config/rs6000/rs6000-call.c (rs6000_gimple_fold_builtin): Disable
3228         gimple fold for VSX_BUILTIN_XVMINDP, ALTIVEC_BUILTIN_VMINFP,
3229         VSX_BUILTIN_XVMAXDP, ALTIVEC_BUILTIN_VMAXFP when fast-math is not
3230         set.
3232 2021-11-08  liuhongt  <hongtao.liu@intel.com>
3234         PR tree-optimization/103077
3235         * doc/invoke.texi (Options That Control Optimization):
3236         Update documentation for -ftree-loop-vectorize and
3237         -ftree-slp-vectorize which are enabled by default at -02.
3239 2021-11-08  liuhongt  <hongtao.liu@intel.com>
3241         PR target/102464
3242         * match.pd (Simplifcation (trunc)copysign((extend)a, (extend)b)
3243         to .COPYSIGN (a, b)): Add !HONOR_SNANS.
3245 2021-11-08  liuhongt  <hongtao.liu@intel.com>
3247         PR target/102464
3248         * match.pd: Simplify
3249         (trunc)fma ((extend)a, (extend)b, (extend)c) to IFN_FMA (a, b,
3250         c) under flag_unsafe_math_optimizations.
3252 2021-11-07  Jan Hubicka  <hubicka@ucw.cz>
3254         PR ipa/103055
3255         * params.opt (modref-max-depth): Add range.
3256         (modref-max-adjustments): Fix range.
3258 2021-11-07  Aldy Hernandez  <aldyh@redhat.com>
3260         * tree-pass.h (make_pass_vrp_threader): Remove.
3261         * tree-ssa-threadbackward.c
3262         (back_threader_profitability::profitable_path_p): Remove
3263         ASSERT_EXPR references.
3264         * tree-ssa-threadedge.c (jt_state::register_equivs_stmt): Same.
3265         * tree-vrp.c (vrp_folder::simplify_casted_conds): Same.
3266         (execute_vrp): Same.
3267         (class hybrid_threader): Remove.
3268         (hybrid_threader::hybrid_threader): Remove.
3269         (hybrid_threader::~hybrid_threader): Remove.
3270         (hybrid_threader::before_dom_children): Remove.
3271         (hybrid_threader::after_dom_children): Remove.
3272         (execute_vrp_threader): Remove.
3273         (class pass_vrp_threader): Remove.
3274         (make_pass_vrp_threader): Remove.
3276 2021-11-07  Jan Hubicka  <hubicka@ucw.cz>
3278         * gimple.c (gimple_call_arg_flags): Use interposable_eaf_flags.
3279         (gimple_call_retslot_flags): Likewise.
3280         (gimple_call_static_chain_flags): Likewise.
3281         * ipa-modref.c (remove_useless_eaf_flags): Do not remove everything for
3282         NOVOPS.
3283         (modref_summary::useful_p): Likewise.
3284         (modref_summary_lto::useful_p): Likewise.
3285         (analyze_parms): Do not give up on NOVOPS.
3286         (analyze_function): When dumping report chnages in EAF flags
3287         between IPA and local pass.
3288         (modref_merge_call_site_flags): Compute implicit eaf flags
3289         based on callee ecf_flags and fnspec; if the function does not
3290         bind to current defs use interposable_eaf_flags.
3291         (modref_propagate_flags_in_scc): Update.
3292         * ipa-modref.h (interposable_eaf_flags): New function.
3294 2021-11-07  Bill Schmidt  <wschmidt@linux.ibm.com>
3296         * config/rs6000/rs6000-call.c (rs6000_expand_new_builtin): New
3297         forward decl.
3298         (rs6000_invalid_new_builtin): New function.
3299         (rs6000_expand_builtin): Call rs6000_expand_new_builtin.
3300         (rs6000_expand_ldst_mask): New function.
3301         (new_cpu_expand_builtin): Likewise.
3302         (elemrev_icode): Likewise.
3303         (ldv_expand_builtin): Likewise.
3304         (lxvrse_expand_builtin): Likewise.
3305         (lxvrze_expand_builtin): Likewise.
3306         (stv_expand_builtin): Likewise.
3307         (new_mma_expand_builtin): Likewise.
3308         (new_htm_spr_num): Likewise.
3309         (new_htm_expand_builtin): Likewise.
3310         (rs6000_expand_new_builtin): Likewise.
3311         (rs6000_init_builtins): Initialize altivec_builtin_mask_for_load.
3313 2021-11-07  Jan Hubicka  <hubicka@ucw.cz>
3315         * ipa-modref.c (modref_lattice): Add do_dataflow,
3316         changed and propagate_to fields.
3317         (modref_lattice::release): Free propagate_to
3318         (modref_lattice::merge): Do not give up early on unknown
3319         lattice values.
3320         (modref_lattice::merge_deref): Likewise.
3321         (modref_eaf_analysis): Update toplevel comment.
3322         (modref_eaf_analysis::analyze_ssa_name): Record postponned ssa names;
3323         do optimistic dataflow initialization.
3324         (modref_eaf_analysis::merge_with_ssa_name): Build dataflow graph.
3325         (modref_eaf_analysis::propagate): New member function.
3326         (analyze_parms): Update to new API of modref_eaf_analysis.
3328 2021-11-06  Jan Hubicka  <hubicka@ucw.cz>
3330         * cgraph.h (cgraph_node::can_be_discarded_p): Do not
3331         return true on functions from other partition.
3333 2021-11-06  David Edelsohn  <dje.gcc@gmail.com>
3335         * config/rs6000/vsx.md (vsx_splat_v4si): Change constraints to "wa".
3336         (vsx_splat_v4si_di): Change constraint to "wa".
3338 2021-11-06  Aldy Hernandez  <aldyh@redhat.com>
3340         PR tree-optimization/103061
3341         * value-relation.cc (path_oracle::path_oracle): Initialize
3342         m_killed_defs.
3343         (path_oracle::killing_def): Set m_killed_defs.
3344         (path_oracle::query_relation): Do not look at the root oracle for
3345         killed defs.
3346         * value-relation.h (class path_oracle): Add m_killed_defs.
3348 2021-11-06  Aldy Hernandez  <aldyh@redhat.com>
3350         * tree-ssa-threadbackward.c (back_threader::find_paths_to_names):
3351         Remove gotos and other cleanups.
3353 2021-11-05  Jan Hubicka  <hubicka@ucw.cz>
3355         PR ipa/103073
3356         * ipa-modref-tree.h (modref_tree::insert): Do nothing for
3357         paradoxical and zero sized accesses.
3359 2021-11-05  Jan Hubicka  <hubicka@ucw.cz>
3361         PR ipa/103082
3362         * ipa-modref-tree.h (struct modref_access_node): Avoid left shift
3363         of negative value
3365 2021-11-05  Iain Sandoe  <iain@sandoe.co.uk>
3367         * config/darwin.h (ASM_GENERATE_INTERNAL_LABEL): Add LTRAMP
3368         to the list of symbol prefixes that must be made linker-
3369         visible.
3371 2021-11-05  Iain Sandoe  <iain@sandoe.co.uk>
3373         * config.host: Add support for aarch64-*-darwin.
3374         * config/aarch64/host-aarch64-darwin.c: New file.
3375         * config/aarch64/x-darwin: New file.
3377 2021-11-05  Andrew MacLeod  <amacleod@redhat.com>
3379         PR tree-optimization/103093
3380         * gimple-range-gori.cc (range_def_chain::get_imports): Remove assert.
3382 2021-11-05  Andrew MacLeod  <amacleod@redhat.com>
3384         PR tree-optimization/102943
3385         * gimple-range-cache.cc (class update_list): New.
3386         (update_list::add): Replace add_to_update.
3387         (update_list::pop): New.
3388         (ranger_cache::ranger_cache): Adjust.
3389         (ranger_cache::~ranger_cache): Adjust.
3390         (ranger_cache::add_to_update): Delete.
3391         (ranger_cache::propagate_cache): Adjust to new class.
3392         (ranger_cache::propagate_updated_value): Ditto.
3393         (ranger_cache::fill_block_cache): Ditto.
3394         * gimple-range-cache.h (class ranger_cache): Adjust to update class.
3396 2021-11-05  Richard Biener  <rguenther@suse.de>
3398         * tree-vect-loop.c (vect_analyze_loop): Remove obsolete
3399         comment and expand on another one.  Combine nested if.
3401 2021-11-05  John David Anglin  <danglin@gcc.gnu.org>
3403         PR libgomp/96661
3404         * config/pa/pa-modes.def: Add OImode integer type.
3405         * config/pa/pa.c (pa_scalar_mode_supported_p): Allow TImode
3406         for TARGET_64BIT.
3407         * config/pa/pa.h (MIN_UNITS_PER_WORD) Define to MIN_UNITS_PER_WORD
3408         to UNITS_PER_WORD if IN_LIBGCC2.
3409         * config/pa/pa.md (addti3, addvti3, subti3, subvti3, negti2,
3410         negvti2, ashlti3, shrpd_internal): New patterns.
3411         Change some multi instruction types to multi.
3413 2021-11-05  Jakub Jelinek  <jakub@redhat.com>
3415         PR bootstrap/100246
3416         * config/i386/i386.h
3417         (stringop_algs::stringop_strategy::stringop_strategy): Make the ctor
3418         constexpr.
3420 2021-11-05  Wilco Dijkstra  <wdijkstr@arm.com>
3422         PR target/103085
3423         * config/aarch64/aarch64.c (aarch64_mov_operand_p): Strip the salt
3424         first.
3425         * config/aarch64/constraints.md: Support const in Usw.
3427 2021-11-05  John David Anglin  <danglin@gcc.gnu.org>
3429         * config/pa/pa.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2_DEBUG.
3430         * config/pa/pa64-hpux.h (PREFERRED_DEBUGGING_TYPE): Remove define.
3432 2021-11-05  Richard Biener  <rguenther@suse.de>
3434         * tree-vectorizer.h (vec_info_shared::n_stmts): Add.
3435         (LOOP_VINFO_N_STMTS): Likewise.
3436         (vec_info_for_bb): Remove unused function.
3437         * tree-vectorizer.c (vec_info_shared::vec_info_shared):
3438         Initialize n_stmts member.
3439         * tree-vect-loop.c: Remove INCLUDE_FUNCTIONAL.
3440         (vect_create_loop_vinfo): Do not set loop->aux.
3441         (vect_analyze_loop_2): Do not get n_stmts as argument,
3442         instead use LOOP_VINFO_N_STMTS.  Set LOOP_VINFO_VECTORIZABLE_P
3443         here.
3444         (vect_analyze_loop_1): Remove callback, get the mode iterator
3445         and autodetected_vector_mode as argument, advancing the
3446         iterator and initializing autodetected_vector_mode here.
3447         (vect_analyze_loop): Split analysis loop into two, first
3448         processing main loops only and then epilogues.
3450 2021-11-05  Martin Jambor  <mjambor@suse.cz>
3452         * ipa-prop.c (compute_complex_assign_jump_func): Remove
3453         unnecessary check for RECORD_TYPE.
3455 2021-11-05  Gerald Pfeifer  <gerald@pfeifer.com>
3457         * doc/install.texi2html: Do not generate old.html any longer.
3459 2021-11-05  Martin Liska  <mliska@suse.cz>
3461         PR debug/102955
3462         * opts.c (finish_options): Reset flag_gtoggle when it is used.
3464 2021-11-05  Jakub Jelinek  <jakub@redhat.com>
3466         PR debug/103046
3467         * dwarf2out.c (add_const_value_attribute): Add MODE argument, use it
3468         in CONST_WIDE_INT handling.  Adjust recursive calls.
3469         (add_location_or_const_value_attribute): Pass DECL_MODE (decl) to
3470         new add_const_value_attribute argument.
3471         (tree_add_const_value_attribute): Pass TYPE_MODE (type) to new
3472         add_const_value_attribute argument.
3474 2021-11-05  Rasmus Villemoes  <rasmus.villemoes@prevas.dk>
3476         * config/vx-common.h: Test value of TARGET_VXWORKS7 rather
3477         than definedness.
3479 2021-11-05  Richard Biener  <rguenther@suse.de>
3481         * tree-vectorizer.h (struct vect_loop_form_info): New.
3482         (vect_analyze_loop_form): Adjust.
3483         (vect_create_loop_vinfo): New.
3484         * tree-parloops.c (gather_scalar_reductions): Adjust for
3485         vect_analyze_loop_form API change.
3486         * tree-vect-loop.c: Include <functional>.
3487         (vect_analyze_loop_form_1): Rename to vect_analyze_loop_form,
3488         take struct vect_loop_form_info as output parameter and adjust.
3489         (vect_analyze_loop_form): Rename to vect_create_loop_vinfo and
3490         split out call to the original vect_analyze_loop_form_1.
3491         (vect_reanalyze_as_main_loop): Rename to...
3492         (vect_analyze_loop_1): ... this, factor out the call to
3493         vect_analyze_loop_form and generalize to be able to use it twice ...
3494         (vect_analyze_loop): ... here.  Perform vect_analyze_loop_form
3495         once only and here.
3497 2021-11-05  Xionghu Luo  <luoxhu@linux.ibm.com>
3499         PR target/102991
3500         * config/rs6000/fusion.md: Regenerate.
3501         * config/rs6000/genfusion.pl: Fix incorrect clobber constraint.
3503 2021-11-04  Andreas Krebbel  <krebbel@linux.ibm.com>
3505         * config/s390/s390.h (STACK_CHECK_MOVING_SP): New macro
3506         definition.
3508 2021-11-04  Tamar Christina  <tamar.christina@arm.com>
3510         * config/aarch64/aarch64-builtins.c
3511         (aarch64_general_gimple_fold_builtin): Add ashl, sshl, ushl, ashr,
3512         ashr_simd, lshr, lshr_simd.
3513         * config/aarch64/aarch64-simd-builtins.def (lshr): Use USHIFTIMM.
3514         * config/aarch64/arm_neon.h (vshr_n_u8, vshr_n_u16, vshr_n_u32,
3515         vshrq_n_u8, vshrq_n_u16, vshrq_n_u32, vshrq_n_u64): Fix type hack.
3517 2021-11-04  Tamar Christina  <tamar.christina@arm.com>
3519         * match.pd: New negate+shift pattern.
3521 2021-11-04  Andrew MacLeod  <amacleod@redhat.com>
3523         PR tree-optimization/103079
3524         * gimple-range-gori.cc (gimple_range_calc_op1): Treat undefined as
3525         varying.
3526         (gimple_range_calc_op2): Ditto.
3528 2021-11-04  Martin Jambor  <mjambor@suse.cz>
3530         PR ipa/93385
3531         * ipa-param-manipulation.h (class ipa_param_body_adjustments): New
3532         members remap_with_debug_expressions, m_dead_ssa_debug_equiv,
3533         m_dead_stmt_debug_equiv and prepare_debug_expressions.  Added
3534         parameter to mark_dead_statements.
3535         * ipa-param-manipulation.c: Include tree-phinodes.h and cfgexpand.h.
3536         (ipa_param_body_adjustments::mark_dead_statements): New parameter
3537         debugstack, push into it all SSA names used in debug statements,
3538         produce m_dead_ssa_debug_equiv mapping for the removed param.
3539         (replace_with_mapped_expr): New function.
3540         (ipa_param_body_adjustments::remap_with_debug_expressions): Likewise.
3541         (ipa_param_body_adjustments::prepare_debug_expressions): Likewise.
3542         (ipa_param_body_adjustments::common_initialization): Gather and
3543         procecc SSA which will be removed but are in debug statements. Simplify.
3544         (ipa_param_body_adjustments::ipa_param_body_adjustments): Initialize
3545         new members.
3546         * tree-inline.c (remap_gimple_stmt): Create a debug bind when possible
3547         when avoiding a copy of an unnecessary statement.  Remap removed SSA
3548         names in existing debug statements.
3549         (tree_function_versioning): Do not create DEBUG_EXPR_DECL for removed
3550         parameters if we have already done so.
3552 2021-11-04  Jan Hubicka  <hubicka@ucw.cz>
3554         PR ipa/103058
3555         * gimple.c (gimple_call_static_chain_flags): Handle case when
3556         nested function does not bind locally.
3558 2021-11-04  Jonathan Wright  <jonathan.wright@arm.com>
3560         * config/aarch64/aarch64.c (aarch64_function_value): Generate
3561         a register rtx for Neon vector-tuple modes.
3562         (aarch64_layout_arg): Likewise.
3564 2021-11-04  Jonathan Wright  <jonathan.wright@arm.com>
3566         * lower-subreg.c (simple_move): Prevent decomposition if
3567         modes are not tieable.
3569 2021-11-04  Jonathan Wright  <jonathan.wright@arm.com>
3570             Richard Sandiford  <richard.sandiford@arm.com>
3572         * config/aarch64/aarch64-builtins.c (v2x8qi_UP): Define.
3573         (v2x4hi_UP): Likewise.
3574         (v2x4hf_UP): Likewise.
3575         (v2x4bf_UP): Likewise.
3576         (v2x2si_UP): Likewise.
3577         (v2x2sf_UP): Likewise.
3578         (v2x1di_UP): Likewise.
3579         (v2x1df_UP): Likewise.
3580         (v2x16qi_UP): Likewise.
3581         (v2x8hi_UP): Likewise.
3582         (v2x8hf_UP): Likewise.
3583         (v2x8bf_UP): Likewise.
3584         (v2x4si_UP): Likewise.
3585         (v2x4sf_UP): Likewise.
3586         (v2x2di_UP): Likewise.
3587         (v2x2df_UP): Likewise.
3588         (v3x8qi_UP): Likewise.
3589         (v3x4hi_UP): Likewise.
3590         (v3x4hf_UP): Likewise.
3591         (v3x4bf_UP): Likewise.
3592         (v3x2si_UP): Likewise.
3593         (v3x2sf_UP): Likewise.
3594         (v3x1di_UP): Likewise.
3595         (v3x1df_UP): Likewise.
3596         (v3x16qi_UP): Likewise.
3597         (v3x8hi_UP): Likewise.
3598         (v3x8hf_UP): Likewise.
3599         (v3x8bf_UP): Likewise.
3600         (v3x4si_UP): Likewise.
3601         (v3x4sf_UP): Likewise.
3602         (v3x2di_UP): Likewise.
3603         (v3x2df_UP): Likewise.
3604         (v4x8qi_UP): Likewise.
3605         (v4x4hi_UP): Likewise.
3606         (v4x4hf_UP): Likewise.
3607         (v4x4bf_UP): Likewise.
3608         (v4x2si_UP): Likewise.
3609         (v4x2sf_UP): Likewise.
3610         (v4x1di_UP): Likewise.
3611         (v4x1df_UP): Likewise.
3612         (v4x16qi_UP): Likewise.
3613         (v4x8hi_UP): Likewise.
3614         (v4x8hf_UP): Likewise.
3615         (v4x8bf_UP): Likewise.
3616         (v4x4si_UP): Likewise.
3617         (v4x4sf_UP): Likewise.
3618         (v4x2di_UP): Likewise.
3619         (v4x2df_UP): Likewise.
3620         (TYPES_GETREGP): Delete.
3621         (TYPES_SETREGP): Likewise.
3622         (TYPES_LOADSTRUCT_U): Define.
3623         (TYPES_LOADSTRUCT_P): Likewise.
3624         (TYPES_LOADSTRUCT_LANE_U): Likewise.
3625         (TYPES_LOADSTRUCT_LANE_P): Likewise.
3626         (TYPES_STORE1P): Move for consistency.
3627         (TYPES_STORESTRUCT_U): Define.
3628         (TYPES_STORESTRUCT_P): Likewise.
3629         (TYPES_STORESTRUCT_LANE_U): Likewise.
3630         (TYPES_STORESTRUCT_LANE_P): Likewise.
3631         (aarch64_simd_tuple_types): Define.
3632         (aarch64_lookup_simd_builtin_type): Handle tuple type lookup.
3633         (aarch64_init_simd_builtin_functions): Update frontend lookup
3634         for builtin functions after handling arm_neon.h pragma.
3635         (register_tuple_type): Manually set modes of single-integer
3636         tuple types. Record tuple types.
3637         * config/aarch64/aarch64-modes.def
3638         (ADV_SIMD_D_REG_STRUCT_MODES): Define D-register tuple modes.
3639         (ADV_SIMD_Q_REG_STRUCT_MODES): Define Q-register tuple modes.
3640         (SVE_MODES): Give single-vector modes priority over vector-
3641         tuple modes.
3642         (VECTOR_MODES_WITH_PREFIX): Set partial-vector mode order to
3643         be after all single-vector modes.
3644         * config/aarch64/aarch64-simd-builtins.def: Update builtin
3645         generator macros to reflect modifications to the backend
3646         patterns.
3647         * config/aarch64/aarch64-simd.md (aarch64_simd_ld2<mode>):
3648         Use vector-tuple mode iterator and rename to...
3649         (aarch64_simd_ld2<vstruct_elt>): This.
3650         (aarch64_simd_ld2r<mode>): Use vector-tuple mode iterator and
3651         rename to...
3652         (aarch64_simd_ld2r<vstruct_elt>): This.
3653         (aarch64_vec_load_lanesoi_lane<mode>): Use vector-tuple mode
3654         iterator and rename to...
3655         (aarch64_vec_load_lanes<mode>_lane<vstruct_elt>): This.
3656         (vec_load_lanesoi<mode>): Use vector-tuple mode iterator and
3657         rename to...
3658         (vec_load_lanes<mode><vstruct_elt>): This.
3659         (aarch64_simd_st2<mode>): Use vector-tuple mode iterator and
3660         rename to...
3661         (aarch64_simd_st2<vstruct_elt>): This.
3662         (aarch64_vec_store_lanesoi_lane<mode>): Use vector-tuple mode
3663         iterator and rename to...
3664         (aarch64_vec_store_lanes<mode>_lane<vstruct_elt>): This.
3665         (vec_store_lanesoi<mode>): Use vector-tuple mode iterator and
3666         rename to...
3667         (vec_store_lanes<mode><vstruct_elt>): This.
3668         (aarch64_simd_ld3<mode>): Use vector-tuple mode iterator and
3669         rename to...
3670         (aarch64_simd_ld3<vstruct_elt>): This.
3671         (aarch64_simd_ld3r<mode>): Use vector-tuple mode iterator and
3672         rename to...
3673         (aarch64_simd_ld3r<vstruct_elt>): This.
3674         (aarch64_vec_load_lanesci_lane<mode>): Use vector-tuple mode
3675         iterator and rename to...
3676         (vec_load_lanesci<mode>): This.
3677         (aarch64_simd_st3<mode>): Use vector-tuple mode iterator and
3678         rename to...
3679         (aarch64_simd_st3<vstruct_elt>): This.
3680         (aarch64_vec_store_lanesci_lane<mode>): Use vector-tuple mode
3681         iterator and rename to...
3682         (vec_store_lanesci<mode>): This.
3683         (aarch64_simd_ld4<mode>): Use vector-tuple mode iterator and
3684         rename to...
3685         (aarch64_simd_ld4<vstruct_elt>): This.
3686         (aarch64_simd_ld4r<mode>): Use vector-tuple mode iterator and
3687         rename to...
3688         (aarch64_simd_ld4r<vstruct_elt>): This.
3689         (aarch64_vec_load_lanesxi_lane<mode>): Use vector-tuple mode
3690         iterator and rename to...
3691         (vec_load_lanesxi<mode>): This.
3692         (aarch64_simd_st4<mode>): Use vector-tuple mode iterator and
3693         rename to...
3694         (aarch64_simd_st4<vstruct_elt>): This.
3695         (aarch64_vec_store_lanesxi_lane<mode>): Use vector-tuple mode
3696         iterator and rename to...
3697         (vec_store_lanesxi<mode>): This.
3698         (mov<mode>): Define for Neon vector-tuple modes.
3699         (aarch64_ld1x3<VALLDIF:mode>): Use vector-tuple mode iterator
3700         and rename to...
3701         (aarch64_ld1x3<vstruct_elt>): This.
3702         (aarch64_ld1_x3_<mode>): Use vector-tuple mode iterator and
3703         rename to...
3704         (aarch64_ld1_x3_<vstruct_elt>): This.
3705         (aarch64_ld1x4<VALLDIF:mode>): Use vector-tuple mode iterator
3706         and rename to...
3707         (aarch64_ld1x4<vstruct_elt>): This.
3708         (aarch64_ld1_x4_<mode>): Use vector-tuple mode iterator and
3709         rename to...
3710         (aarch64_ld1_x4_<vstruct_elt>): This.
3711         (aarch64_st1x2<VALLDIF:mode>): Use vector-tuple mode iterator
3712         and rename to...
3713         (aarch64_st1x2<vstruct_elt>): This.
3714         (aarch64_st1_x2_<mode>): Use vector-tuple mode iterator and
3715         rename to...
3716         (aarch64_st1_x2_<vstruct_elt>): This.
3717         (aarch64_st1x3<VALLDIF:mode>): Use vector-tuple mode iterator
3718         and rename to...
3719         (aarch64_st1x3<vstruct_elt>): This.
3720         (aarch64_st1_x3_<mode>): Use vector-tuple mode iterator and
3721         rename to...
3722         (aarch64_st1_x3_<vstruct_elt>): This.
3723         (aarch64_st1x4<VALLDIF:mode>): Use vector-tuple mode iterator
3724         and rename to...
3725         (aarch64_st1x4<vstruct_elt>): This.
3726         (aarch64_st1_x4_<mode>): Use vector-tuple mode iterator and
3727         rename to...
3728         (aarch64_st1_x4_<vstruct_elt>): This.
3729         (*aarch64_mov<mode>): Define for vector-tuple modes.
3730         (*aarch64_be_mov<mode>): Likewise.
3731         (aarch64_ld<VSTRUCT:nregs>r<VALLDIF:mode>): Use vector-tuple
3732         mode iterator and rename to...
3733         (aarch64_ld<nregs>r<vstruct_elt>): This.
3734         (aarch64_ld2<mode>_dreg): Use vector-tuple mode iterator and
3735         rename to...
3736         (aarch64_ld2<vstruct_elt>_dreg): This.
3737         (aarch64_ld3<mode>_dreg): Use vector-tuple mode iterator and
3738         rename to...
3739         (aarch64_ld3<vstruct_elt>_dreg): This.
3740         (aarch64_ld4<mode>_dreg): Use vector-tuple mode iterator and
3741         rename to...
3742         (aarch64_ld4<vstruct_elt>_dreg): This.
3743         (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Use vector-tuple mode
3744         iterator and rename to...
3745         (aarch64_ld<nregs><vstruct_elt>): Use vector-tuple mode
3746         iterator and rename to...
3747         (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Use vector-tuple mode
3748         (aarch64_ld1x2<VQ:mode>): Delete.
3749         (aarch64_ld1x2<VDC:mode>): Use vector-tuple mode iterator and
3750         rename to...
3751         (aarch64_ld1x2<vstruct_elt>): This.
3752         (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): Use vector-
3753         tuple mode iterator and rename to...
3754         (aarch64_ld<nregs>_lane<vstruct_elt>): This.
3755         (aarch64_get_dreg<VSTRUCT:mode><VDC:mode>): Delete.
3756         (aarch64_get_qreg<VSTRUCT:mode><VQ:mode>): Likewise.
3757         (aarch64_st2<mode>_dreg): Use vector-tuple mode iterator and
3758         rename to...
3759         (aarch64_st2<vstruct_elt>_dreg): This.
3760         (aarch64_st3<mode>_dreg): Use vector-tuple mode iterator and
3761         rename to...
3762         (aarch64_st3<vstruct_elt>_dreg): This.
3763         (aarch64_st4<mode>_dreg): Use vector-tuple mode iterator and
3764         rename to...
3765         (aarch64_st4<vstruct_elt>_dreg): This.
3766         (aarch64_st<VSTRUCT:nregs><VDC:mode>): Use vector-tuple mode
3767         iterator and rename to...
3768         (aarch64_st<nregs><vstruct_elt>): This.
3769         (aarch64_st<VSTRUCT:nregs><VQ:mode>): Use vector-tuple mode
3770         iterator and rename to aarch64_st<nregs><vstruct_elt>.
3771         (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): Use vector-
3772         tuple mode iterator and rename to...
3773         (aarch64_st<nregs>_lane<vstruct_elt>): This.
3774         (aarch64_set_qreg<VSTRUCT:mode><VQ:mode>): Delete.
3775         (aarch64_simd_ld1<mode>_x2): Use vector-tuple mode iterator
3776         and rename to...
3777         (aarch64_simd_ld1<vstruct_elt>_x2): This.
3778         * config/aarch64/aarch64.c (aarch64_advsimd_struct_mode_p):
3779         Refactor to include new vector-tuple modes.
3780         (aarch64_classify_vector_mode): Add cases for new vector-
3781         tuple modes.
3782         (aarch64_advsimd_partial_struct_mode_p): Define.
3783         (aarch64_advsimd_full_struct_mode_p): Likewise.
3784         (aarch64_advsimd_vector_array_mode): Likewise.
3785         (aarch64_sve_data_mode): Change location in file.
3786         (aarch64_array_mode): Handle case of Neon vector-tuple modes.
3787         (aarch64_hard_regno_nregs): Handle case of partial Neon
3788         vector structures.
3789         (aarch64_classify_address): Refactor to include handling of
3790         Neon vector-tuple modes.
3791         (aarch64_print_operand): Print "d" for "%R" for a partial
3792         Neon vector structure.
3793         (aarch64_expand_vec_perm_1): Use new vector-tuple mode.
3794         (aarch64_modes_tieable_p): Prevent tieing Neon partial struct
3795         modes with scalar machines modes larger than 8 bytes.
3796         (aarch64_can_change_mode_class): Don't allow changes between
3797         partial and full Neon vector-structure modes.
3798         * config/aarch64/arm_neon.h (vst2_lane_f16): Use updated
3799         builtin and remove boiler-plate code for opaque mode.
3800         (vst2_lane_f32): Likewise.
3801         (vst2_lane_f64): Likewise.
3802         (vst2_lane_p8): Likewise.
3803         (vst2_lane_p16): Likewise.
3804         (vst2_lane_p64): Likewise.
3805         (vst2_lane_s8): Likewise.
3806         (vst2_lane_s16): Likewise.
3807         (vst2_lane_s32): Likewise.
3808         (vst2_lane_s64): Likewise.
3809         (vst2_lane_u8): Likewise.
3810         (vst2_lane_u16): Likewise.
3811         (vst2_lane_u32): Likewise.
3812         (vst2_lane_u64): Likewise.
3813         (vst2q_lane_f16): Likewise.
3814         (vst2q_lane_f32): Likewise.
3815         (vst2q_lane_f64): Likewise.
3816         (vst2q_lane_p8): Likewise.
3817         (vst2q_lane_p16): Likewise.
3818         (vst2q_lane_p64): Likewise.
3819         (vst2q_lane_s8): Likewise.
3820         (vst2q_lane_s16): Likewise.
3821         (vst2q_lane_s32): Likewise.
3822         (vst2q_lane_s64): Likewise.
3823         (vst2q_lane_u8): Likewise.
3824         (vst2q_lane_u16): Likewise.
3825         (vst2q_lane_u32): Likewise.
3826         (vst2q_lane_u64): Likewise.
3827         (vst3_lane_f16): Likewise.
3828         (vst3_lane_f32): Likewise.
3829         (vst3_lane_f64): Likewise.
3830         (vst3_lane_p8): Likewise.
3831         (vst3_lane_p16): Likewise.
3832         (vst3_lane_p64): Likewise.
3833         (vst3_lane_s8): Likewise.
3834         (vst3_lane_s16): Likewise.
3835         (vst3_lane_s32): Likewise.
3836         (vst3_lane_s64): Likewise.
3837         (vst3_lane_u8): Likewise.
3838         (vst3_lane_u16): Likewise.
3839         (vst3_lane_u32): Likewise.
3840         (vst3_lane_u64): Likewise.
3841         (vst3q_lane_f16): Likewise.
3842         (vst3q_lane_f32): Likewise.
3843         (vst3q_lane_f64): Likewise.
3844         (vst3q_lane_p8): Likewise.
3845         (vst3q_lane_p16): Likewise.
3846         (vst3q_lane_p64): Likewise.
3847         (vst3q_lane_s8): Likewise.
3848         (vst3q_lane_s16): Likewise.
3849         (vst3q_lane_s32): Likewise.
3850         (vst3q_lane_s64): Likewise.
3851         (vst3q_lane_u8): Likewise.
3852         (vst3q_lane_u16): Likewise.
3853         (vst3q_lane_u32): Likewise.
3854         (vst3q_lane_u64): Likewise.
3855         (vst4_lane_f16): Likewise.
3856         (vst4_lane_f32): Likewise.
3857         (vst4_lane_f64): Likewise.
3858         (vst4_lane_p8): Likewise.
3859         (vst4_lane_p16): Likewise.
3860         (vst4_lane_p64): Likewise.
3861         (vst4_lane_s8): Likewise.
3862         (vst4_lane_s16): Likewise.
3863         (vst4_lane_s32): Likewise.
3864         (vst4_lane_s64): Likewise.
3865         (vst4_lane_u8): Likewise.
3866         (vst4_lane_u16): Likewise.
3867         (vst4_lane_u32): Likewise.
3868         (vst4_lane_u64): Likewise.
3869         (vst4q_lane_f16): Likewise.
3870         (vst4q_lane_f32): Likewise.
3871         (vst4q_lane_f64): Likewise.
3872         (vst4q_lane_p8): Likewise.
3873         (vst4q_lane_p16): Likewise.
3874         (vst4q_lane_p64): Likewise.
3875         (vst4q_lane_s8): Likewise.
3876         (vst4q_lane_s16): Likewise.
3877         (vst4q_lane_s32): Likewise.
3878         (vst4q_lane_s64): Likewise.
3879         (vst4q_lane_u8): Likewise.
3880         (vst4q_lane_u16): Likewise.
3881         (vst4q_lane_u32): Likewise.
3882         (vst4q_lane_u64): Likewise.
3883         (vtbl3_s8): Likewise.
3884         (vtbl3_u8): Likewise.
3885         (vtbl3_p8): Likewise.
3886         (vtbl4_s8): Likewise.
3887         (vtbl4_u8): Likewise.
3888         (vtbl4_p8): Likewise.
3889         (vld1_u8_x3): Likewise.
3890         (vld1_s8_x3): Likewise.
3891         (vld1_u16_x3): Likewise.
3892         (vld1_s16_x3): Likewise.
3893         (vld1_u32_x3): Likewise.
3894         (vld1_s32_x3): Likewise.
3895         (vld1_u64_x3): Likewise.
3896         (vld1_s64_x3): Likewise.
3897         (vld1_f16_x3): Likewise.
3898         (vld1_f32_x3): Likewise.
3899         (vld1_f64_x3): Likewise.
3900         (vld1_p8_x3): Likewise.
3901         (vld1_p16_x3): Likewise.
3902         (vld1_p64_x3): Likewise.
3903         (vld1q_u8_x3): Likewise.
3904         (vld1q_s8_x3): Likewise.
3905         (vld1q_u16_x3): Likewise.
3906         (vld1q_s16_x3): Likewise.
3907         (vld1q_u32_x3): Likewise.
3908         (vld1q_s32_x3): Likewise.
3909         (vld1q_u64_x3): Likewise.
3910         (vld1q_s64_x3): Likewise.
3911         (vld1q_f16_x3): Likewise.
3912         (vld1q_f32_x3): Likewise.
3913         (vld1q_f64_x3): Likewise.
3914         (vld1q_p8_x3): Likewise.
3915         (vld1q_p16_x3): Likewise.
3916         (vld1q_p64_x3): Likewise.
3917         (vld1_u8_x2): Likewise.
3918         (vld1_s8_x2): Likewise.
3919         (vld1_u16_x2): Likewise.
3920         (vld1_s16_x2): Likewise.
3921         (vld1_u32_x2): Likewise.
3922         (vld1_s32_x2): Likewise.
3923         (vld1_u64_x2): Likewise.
3924         (vld1_s64_x2): Likewise.
3925         (vld1_f16_x2): Likewise.
3926         (vld1_f32_x2): Likewise.
3927         (vld1_f64_x2): Likewise.
3928         (vld1_p8_x2): Likewise.
3929         (vld1_p16_x2): Likewise.
3930         (vld1_p64_x2): Likewise.
3931         (vld1q_u8_x2): Likewise.
3932         (vld1q_s8_x2): Likewise.
3933         (vld1q_u16_x2): Likewise.
3934         (vld1q_s16_x2): Likewise.
3935         (vld1q_u32_x2): Likewise.
3936         (vld1q_s32_x2): Likewise.
3937         (vld1q_u64_x2): Likewise.
3938         (vld1q_s64_x2): Likewise.
3939         (vld1q_f16_x2): Likewise.
3940         (vld1q_f32_x2): Likewise.
3941         (vld1q_f64_x2): Likewise.
3942         (vld1q_p8_x2): Likewise.
3943         (vld1q_p16_x2): Likewise.
3944         (vld1q_p64_x2): Likewise.
3945         (vld1_s8_x4): Likewise.
3946         (vld1q_s8_x4): Likewise.
3947         (vld1_s16_x4): Likewise.
3948         (vld1q_s16_x4): Likewise.
3949         (vld1_s32_x4): Likewise.
3950         (vld1q_s32_x4): Likewise.
3951         (vld1_u8_x4): Likewise.
3952         (vld1q_u8_x4): Likewise.
3953         (vld1_u16_x4): Likewise.
3954         (vld1q_u16_x4): Likewise.
3955         (vld1_u32_x4): Likewise.
3956         (vld1q_u32_x4): Likewise.
3957         (vld1_f16_x4): Likewise.
3958         (vld1q_f16_x4): Likewise.
3959         (vld1_f32_x4): Likewise.
3960         (vld1q_f32_x4): Likewise.
3961         (vld1_p8_x4): Likewise.
3962         (vld1q_p8_x4): Likewise.
3963         (vld1_p16_x4): Likewise.
3964         (vld1q_p16_x4): Likewise.
3965         (vld1_s64_x4): Likewise.
3966         (vld1_u64_x4): Likewise.
3967         (vld1_p64_x4): Likewise.
3968         (vld1q_s64_x4): Likewise.
3969         (vld1q_u64_x4): Likewise.
3970         (vld1q_p64_x4): Likewise.
3971         (vld1_f64_x4): Likewise.
3972         (vld1q_f64_x4): Likewise.
3973         (vld2_s64): Likewise.
3974         (vld2_u64): Likewise.
3975         (vld2_f64): Likewise.
3976         (vld2_s8): Likewise.
3977         (vld2_p8): Likewise.
3978         (vld2_p64): Likewise.
3979         (vld2_s16): Likewise.
3980         (vld2_p16): Likewise.
3981         (vld2_s32): Likewise.
3982         (vld2_u8): Likewise.
3983         (vld2_u16): Likewise.
3984         (vld2_u32): Likewise.
3985         (vld2_f16): Likewise.
3986         (vld2_f32): Likewise.
3987         (vld2q_s8): Likewise.
3988         (vld2q_p8): Likewise.
3989         (vld2q_s16): Likewise.
3990         (vld2q_p16): Likewise.
3991         (vld2q_p64): Likewise.
3992         (vld2q_s32): Likewise.
3993         (vld2q_s64): Likewise.
3994         (vld2q_u8): Likewise.
3995         (vld2q_u16): Likewise.
3996         (vld2q_u32): Likewise.
3997         (vld2q_u64): Likewise.
3998         (vld2q_f16): Likewise.
3999         (vld2q_f32): Likewise.
4000         (vld2q_f64): Likewise.
4001         (vld3_s64): Likewise.
4002         (vld3_u64): Likewise.
4003         (vld3_f64): Likewise.
4004         (vld3_s8): Likewise.
4005         (vld3_p8): Likewise.
4006         (vld3_s16): Likewise.
4007         (vld3_p16): Likewise.
4008         (vld3_s32): Likewise.
4009         (vld3_u8): Likewise.
4010         (vld3_u16): Likewise.
4011         (vld3_u32): Likewise.
4012         (vld3_f16): Likewise.
4013         (vld3_f32): Likewise.
4014         (vld3_p64): Likewise.
4015         (vld3q_s8): Likewise.
4016         (vld3q_p8): Likewise.
4017         (vld3q_s16): Likewise.
4018         (vld3q_p16): Likewise.
4019         (vld3q_s32): Likewise.
4020         (vld3q_s64): Likewise.
4021         (vld3q_u8): Likewise.
4022         (vld3q_u16): Likewise.
4023         (vld3q_u32): Likewise.
4024         (vld3q_u64): Likewise.
4025         (vld3q_f16): Likewise.
4026         (vld3q_f32): Likewise.
4027         (vld3q_f64): Likewise.
4028         (vld3q_p64): Likewise.
4029         (vld4_s64): Likewise.
4030         (vld4_u64): Likewise.
4031         (vld4_f64): Likewise.
4032         (vld4_s8): Likewise.
4033         (vld4_p8): Likewise.
4034         (vld4_s16): Likewise.
4035         (vld4_p16): Likewise.
4036         (vld4_s32): Likewise.
4037         (vld4_u8): Likewise.
4038         (vld4_u16): Likewise.
4039         (vld4_u32): Likewise.
4040         (vld4_f16): Likewise.
4041         (vld4_f32): Likewise.
4042         (vld4_p64): Likewise.
4043         (vld4q_s8): Likewise.
4044         (vld4q_p8): Likewise.
4045         (vld4q_s16): Likewise.
4046         (vld4q_p16): Likewise.
4047         (vld4q_s32): Likewise.
4048         (vld4q_s64): Likewise.
4049         (vld4q_u8): Likewise.
4050         (vld4q_u16): Likewise.
4051         (vld4q_u32): Likewise.
4052         (vld4q_u64): Likewise.
4053         (vld4q_f16): Likewise.
4054         (vld4q_f32): Likewise.
4055         (vld4q_f64): Likewise.
4056         (vld4q_p64): Likewise.
4057         (vld2_dup_s8): Likewise.
4058         (vld2_dup_s16): Likewise.
4059         (vld2_dup_s32): Likewise.
4060         (vld2_dup_f16): Likewise.
4061         (vld2_dup_f32): Likewise.
4062         (vld2_dup_f64): Likewise.
4063         (vld2_dup_u8): Likewise.
4064         (vld2_dup_u16): Likewise.
4065         (vld2_dup_u32): Likewise.
4066         (vld2_dup_p8): Likewise.
4067         (vld2_dup_p16): Likewise.
4068         (vld2_dup_p64): Likewise.
4069         (vld2_dup_s64): Likewise.
4070         (vld2_dup_u64): Likewise.
4071         (vld2q_dup_s8): Likewise.
4072         (vld2q_dup_p8): Likewise.
4073         (vld2q_dup_s16): Likewise.
4074         (vld2q_dup_p16): Likewise.
4075         (vld2q_dup_s32): Likewise.
4076         (vld2q_dup_s64): Likewise.
4077         (vld2q_dup_u8): Likewise.
4078         (vld2q_dup_u16): Likewise.
4079         (vld2q_dup_u32): Likewise.
4080         (vld2q_dup_u64): Likewise.
4081         (vld2q_dup_f16): Likewise.
4082         (vld2q_dup_f32): Likewise.
4083         (vld2q_dup_f64): Likewise.
4084         (vld2q_dup_p64): Likewise.
4085         (vld3_dup_s64): Likewise.
4086         (vld3_dup_u64): Likewise.
4087         (vld3_dup_f64): Likewise.
4088         (vld3_dup_s8): Likewise.
4089         (vld3_dup_p8): Likewise.
4090         (vld3_dup_s16): Likewise.
4091         (vld3_dup_p16): Likewise.
4092         (vld3_dup_s32): Likewise.
4093         (vld3_dup_u8): Likewise.
4094         (vld3_dup_u16): Likewise.
4095         (vld3_dup_u32): Likewise.
4096         (vld3_dup_f16): Likewise.
4097         (vld3_dup_f32): Likewise.
4098         (vld3_dup_p64): Likewise.
4099         (vld3q_dup_s8): Likewise.
4100         (vld3q_dup_p8): Likewise.
4101         (vld3q_dup_s16): Likewise.
4102         (vld3q_dup_p16): Likewise.
4103         (vld3q_dup_s32): Likewise.
4104         (vld3q_dup_s64): Likewise.
4105         (vld3q_dup_u8): Likewise.
4106         (vld3q_dup_u16): Likewise.
4107         (vld3q_dup_u32): Likewise.
4108         (vld3q_dup_u64): Likewise.
4109         (vld3q_dup_f16): Likewise.
4110         (vld3q_dup_f32): Likewise.
4111         (vld3q_dup_f64): Likewise.
4112         (vld3q_dup_p64): Likewise.
4113         (vld4_dup_s64): Likewise.
4114         (vld4_dup_u64): Likewise.
4115         (vld4_dup_f64): Likewise.
4116         (vld4_dup_s8): Likewise.
4117         (vld4_dup_p8): Likewise.
4118         (vld4_dup_s16): Likewise.
4119         (vld4_dup_p16): Likewise.
4120         (vld4_dup_s32): Likewise.
4121         (vld4_dup_u8): Likewise.
4122         (vld4_dup_u16): Likewise.
4123         (vld4_dup_u32): Likewise.
4124         (vld4_dup_f16): Likewise.
4125         (vld4_dup_f32): Likewise.
4126         (vld4_dup_p64): Likewise.
4127         (vld4q_dup_s8): Likewise.
4128         (vld4q_dup_p8): Likewise.
4129         (vld4q_dup_s16): Likewise.
4130         (vld4q_dup_p16): Likewise.
4131         (vld4q_dup_s32): Likewise.
4132         (vld4q_dup_s64): Likewise.
4133         (vld4q_dup_u8): Likewise.
4134         (vld4q_dup_u16): Likewise.
4135         (vld4q_dup_u32): Likewise.
4136         (vld4q_dup_u64): Likewise.
4137         (vld4q_dup_f16): Likewise.
4138         (vld4q_dup_f32): Likewise.
4139         (vld4q_dup_f64): Likewise.
4140         (vld4q_dup_p64): Likewise.
4141         (vld2_lane_u8): Likewise.
4142         (vld2_lane_u16): Likewise.
4143         (vld2_lane_u32): Likewise.
4144         (vld2_lane_u64): Likewise.
4145         (vld2_lane_s8): Likewise.
4146         (vld2_lane_s16): Likewise.
4147         (vld2_lane_s32): Likewise.
4148         (vld2_lane_s64): Likewise.
4149         (vld2_lane_f16): Likewise.
4150         (vld2_lane_f32): Likewise.
4151         (vld2_lane_f64): Likewise.
4152         (vld2_lane_p8): Likewise.
4153         (vld2_lane_p16): Likewise.
4154         (vld2_lane_p64): Likewise.
4155         (vld2q_lane_u8): Likewise.
4156         (vld2q_lane_u16): Likewise.
4157         (vld2q_lane_u32): Likewise.
4158         (vld2q_lane_u64): Likewise.
4159         (vld2q_lane_s8): Likewise.
4160         (vld2q_lane_s16): Likewise.
4161         (vld2q_lane_s32): Likewise.
4162         (vld2q_lane_s64): Likewise.
4163         (vld2q_lane_f16): Likewise.
4164         (vld2q_lane_f32): Likewise.
4165         (vld2q_lane_f64): Likewise.
4166         (vld2q_lane_p8): Likewise.
4167         (vld2q_lane_p16): Likewise.
4168         (vld2q_lane_p64): Likewise.
4169         (vld3_lane_u8): Likewise.
4170         (vld3_lane_u16): Likewise.
4171         (vld3_lane_u32): Likewise.
4172         (vld3_lane_u64): Likewise.
4173         (vld3_lane_s8): Likewise.
4174         (vld3_lane_s16): Likewise.
4175         (vld3_lane_s32): Likewise.
4176         (vld3_lane_s64): Likewise.
4177         (vld3_lane_f16): Likewise.
4178         (vld3_lane_f32): Likewise.
4179         (vld3_lane_f64): Likewise.
4180         (vld3_lane_p8): Likewise.
4181         (vld3_lane_p16): Likewise.
4182         (vld3_lane_p64): Likewise.
4183         (vld3q_lane_u8): Likewise.
4184         (vld3q_lane_u16): Likewise.
4185         (vld3q_lane_u32): Likewise.
4186         (vld3q_lane_u64): Likewise.
4187         (vld3q_lane_s8): Likewise.
4188         (vld3q_lane_s16): Likewise.
4189         (vld3q_lane_s32): Likewise.
4190         (vld3q_lane_s64): Likewise.
4191         (vld3q_lane_f16): Likewise.
4192         (vld3q_lane_f32): Likewise.
4193         (vld3q_lane_f64): Likewise.
4194         (vld3q_lane_p8): Likewise.
4195         (vld3q_lane_p16): Likewise.
4196         (vld3q_lane_p64): Likewise.
4197         (vld4_lane_u8): Likewise.
4198         (vld4_lane_u16): Likewise.
4199         (vld4_lane_u32): Likewise.
4200         (vld4_lane_u64): Likewise.
4201         (vld4_lane_s8): Likewise.
4202         (vld4_lane_s16): Likewise.
4203         (vld4_lane_s32): Likewise.
4204         (vld4_lane_s64): Likewise.
4205         (vld4_lane_f16): Likewise.
4206         (vld4_lane_f32): Likewise.
4207         (vld4_lane_f64): Likewise.
4208         (vld4_lane_p8): Likewise.
4209         (vld4_lane_p16): Likewise.
4210         (vld4_lane_p64): Likewise.
4211         (vld4q_lane_u8): Likewise.
4212         (vld4q_lane_u16): Likewise.
4213         (vld4q_lane_u32): Likewise.
4214         (vld4q_lane_u64): Likewise.
4215         (vld4q_lane_s8): Likewise.
4216         (vld4q_lane_s16): Likewise.
4217         (vld4q_lane_s32): Likewise.
4218         (vld4q_lane_s64): Likewise.
4219         (vld4q_lane_f16): Likewise.
4220         (vld4q_lane_f32): Likewise.
4221         (vld4q_lane_f64): Likewise.
4222         (vld4q_lane_p8): Likewise.
4223         (vld4q_lane_p16): Likewise.
4224         (vld4q_lane_p64): Likewise.
4225         (vqtbl2_s8): Likewise.
4226         (vqtbl2_u8): Likewise.
4227         (vqtbl2_p8): Likewise.
4228         (vqtbl2q_s8): Likewise.
4229         (vqtbl2q_u8): Likewise.
4230         (vqtbl2q_p8): Likewise.
4231         (vqtbl3_s8): Likewise.
4232         (vqtbl3_u8): Likewise.
4233         (vqtbl3_p8): Likewise.
4234         (vqtbl3q_s8): Likewise.
4235         (vqtbl3q_u8): Likewise.
4236         (vqtbl3q_p8): Likewise.
4237         (vqtbl4_s8): Likewise.
4238         (vqtbl4_u8): Likewise.
4239         (vqtbl4_p8): Likewise.
4240         (vqtbl4q_s8): Likewise.
4241         (vqtbl4q_u8): Likewise.
4242         (vqtbl4q_p8): Likewise.
4243         (vqtbx2_s8): Likewise.
4244         (vqtbx2_u8): Likewise.
4245         (vqtbx2_p8): Likewise.
4246         (vqtbx2q_s8): Likewise.
4247         (vqtbx2q_u8): Likewise.
4248         (vqtbx2q_p8): Likewise.
4249         (vqtbx3_s8): Likewise.
4250         (vqtbx3_u8): Likewise.
4251         (vqtbx3_p8): Likewise.
4252         (vqtbx3q_s8): Likewise.
4253         (vqtbx3q_u8): Likewise.
4254         (vqtbx3q_p8): Likewise.
4255         (vqtbx4_s8): Likewise.
4256         (vqtbx4_u8): Likewise.
4257         (vqtbx4_p8): Likewise.
4258         (vqtbx4q_s8): Likewise.
4259         (vqtbx4q_u8): Likewise.
4260         (vqtbx4q_p8): Likewise.
4261         (vst1_s64_x2): Likewise.
4262         (vst1_u64_x2): Likewise.
4263         (vst1_f64_x2): Likewise.
4264         (vst1_s8_x2): Likewise.
4265         (vst1_p8_x2): Likewise.
4266         (vst1_s16_x2): Likewise.
4267         (vst1_p16_x2): Likewise.
4268         (vst1_s32_x2): Likewise.
4269         (vst1_u8_x2): Likewise.
4270         (vst1_u16_x2): Likewise.
4271         (vst1_u32_x2): Likewise.
4272         (vst1_f16_x2): Likewise.
4273         (vst1_f32_x2): Likewise.
4274         (vst1_p64_x2): Likewise.
4275         (vst1q_s8_x2): Likewise.
4276         (vst1q_p8_x2): Likewise.
4277         (vst1q_s16_x2): Likewise.
4278         (vst1q_p16_x2): Likewise.
4279         (vst1q_s32_x2): Likewise.
4280         (vst1q_s64_x2): Likewise.
4281         (vst1q_u8_x2): Likewise.
4282         (vst1q_u16_x2): Likewise.
4283         (vst1q_u32_x2): Likewise.
4284         (vst1q_u64_x2): Likewise.
4285         (vst1q_f16_x2): Likewise.
4286         (vst1q_f32_x2): Likewise.
4287         (vst1q_f64_x2): Likewise.
4288         (vst1q_p64_x2): Likewise.
4289         (vst1_s64_x3): Likewise.
4290         (vst1_u64_x3): Likewise.
4291         (vst1_f64_x3): Likewise.
4292         (vst1_s8_x3): Likewise.
4293         (vst1_p8_x3): Likewise.
4294         (vst1_s16_x3): Likewise.
4295         (vst1_p16_x3): Likewise.
4296         (vst1_s32_x3): Likewise.
4297         (vst1_u8_x3): Likewise.
4298         (vst1_u16_x3): Likewise.
4299         (vst1_u32_x3): Likewise.
4300         (vst1_f16_x3): Likewise.
4301         (vst1_f32_x3): Likewise.
4302         (vst1_p64_x3): Likewise.
4303         (vst1q_s8_x3): Likewise.
4304         (vst1q_p8_x3): Likewise.
4305         (vst1q_s16_x3): Likewise.
4306         (vst1q_p16_x3): Likewise.
4307         (vst1q_s32_x3): Likewise.
4308         (vst1q_s64_x3): Likewise.
4309         (vst1q_u8_x3): Likewise.
4310         (vst1q_u16_x3): Likewise.
4311         (vst1q_u32_x3): Likewise.
4312         (vst1q_u64_x3): Likewise.
4313         (vst1q_f16_x3): Likewise.
4314         (vst1q_f32_x3): Likewise.
4315         (vst1q_f64_x3): Likewise.
4316         (vst1q_p64_x3): Likewise.
4317         (vst1_s8_x4): Likewise.
4318         (vst1q_s8_x4): Likewise.
4319         (vst1_s16_x4): Likewise.
4320         (vst1q_s16_x4): Likewise.
4321         (vst1_s32_x4): Likewise.
4322         (vst1q_s32_x4): Likewise.
4323         (vst1_u8_x4): Likewise.
4324         (vst1q_u8_x4): Likewise.
4325         (vst1_u16_x4): Likewise.
4326         (vst1q_u16_x4): Likewise.
4327         (vst1_u32_x4): Likewise.
4328         (vst1q_u32_x4): Likewise.
4329         (vst1_f16_x4): Likewise.
4330         (vst1q_f16_x4): Likewise.
4331         (vst1_f32_x4): Likewise.
4332         (vst1q_f32_x4): Likewise.
4333         (vst1_p8_x4): Likewise.
4334         (vst1q_p8_x4): Likewise.
4335         (vst1_p16_x4): Likewise.
4336         (vst1q_p16_x4): Likewise.
4337         (vst1_s64_x4): Likewise.
4338         (vst1_u64_x4): Likewise.
4339         (vst1_p64_x4): Likewise.
4340         (vst1q_s64_x4): Likewise.
4341         (vst1q_u64_x4): Likewise.
4342         (vst1q_p64_x4): Likewise.
4343         (vst1_f64_x4): Likewise.
4344         (vst1q_f64_x4): Likewise.
4345         (vst2_s64): Likewise.
4346         (vst2_u64): Likewise.
4347         (vst2_f64): Likewise.
4348         (vst2_s8): Likewise.
4349         (vst2_p8): Likewise.
4350         (vst2_s16): Likewise.
4351         (vst2_p16): Likewise.
4352         (vst2_s32): Likewise.
4353         (vst2_u8): Likewise.
4354         (vst2_u16): Likewise.
4355         (vst2_u32): Likewise.
4356         (vst2_f16): Likewise.
4357         (vst2_f32): Likewise.
4358         (vst2_p64): Likewise.
4359         (vst2q_s8): Likewise.
4360         (vst2q_p8): Likewise.
4361         (vst2q_s16): Likewise.
4362         (vst2q_p16): Likewise.
4363         (vst2q_s32): Likewise.
4364         (vst2q_s64): Likewise.
4365         (vst2q_u8): Likewise.
4366         (vst2q_u16): Likewise.
4367         (vst2q_u32): Likewise.
4368         (vst2q_u64): Likewise.
4369         (vst2q_f16): Likewise.
4370         (vst2q_f32): Likewise.
4371         (vst2q_f64): Likewise.
4372         (vst2q_p64): Likewise.
4373         (vst3_s64): Likewise.
4374         (vst3_u64): Likewise.
4375         (vst3_f64): Likewise.
4376         (vst3_s8): Likewise.
4377         (vst3_p8): Likewise.
4378         (vst3_s16): Likewise.
4379         (vst3_p16): Likewise.
4380         (vst3_s32): Likewise.
4381         (vst3_u8): Likewise.
4382         (vst3_u16): Likewise.
4383         (vst3_u32): Likewise.
4384         (vst3_f16): Likewise.
4385         (vst3_f32): Likewise.
4386         (vst3_p64): Likewise.
4387         (vst3q_s8): Likewise.
4388         (vst3q_p8): Likewise.
4389         (vst3q_s16): Likewise.
4390         (vst3q_p16): Likewise.
4391         (vst3q_s32): Likewise.
4392         (vst3q_s64): Likewise.
4393         (vst3q_u8): Likewise.
4394         (vst3q_u16): Likewise.
4395         (vst3q_u32): Likewise.
4396         (vst3q_u64): Likewise.
4397         (vst3q_f16): Likewise.
4398         (vst3q_f32): Likewise.
4399         (vst3q_f64): Likewise.
4400         (vst3q_p64): Likewise.
4401         (vst4_s64): Likewise.
4402         (vst4_u64): Likewise.
4403         (vst4_f64): Likewise.
4404         (vst4_s8): Likewise.
4405         (vst4_p8): Likewise.
4406         (vst4_s16): Likewise.
4407         (vst4_p16): Likewise.
4408         (vst4_s32): Likewise.
4409         (vst4_u8): Likewise.
4410         (vst4_u16): Likewise.
4411         (vst4_u32): Likewise.
4412         (vst4_f16): Likewise.
4413         (vst4_f32): Likewise.
4414         (vst4_p64): Likewise.
4415         (vst4q_s8): Likewise.
4416         (vst4q_p8): Likewise.
4417         (vst4q_s16): Likewise.
4418         (vst4q_p16): Likewise.
4419         (vst4q_s32): Likewise.
4420         (vst4q_s64): Likewise.
4421         (vst4q_u8): Likewise.
4422         (vst4q_u16): Likewise.
4423         (vst4q_u32): Likewise.
4424         (vst4q_u64): Likewise.
4425         (vst4q_f16): Likewise.
4426         (vst4q_f32): Likewise.
4427         (vst4q_f64): Likewise.
4428         (vst4q_p64): Likewise.
4429         (vtbx4_s8): Likewise.
4430         (vtbx4_u8): Likewise.
4431         (vtbx4_p8): Likewise.
4432         (vld1_bf16_x2): Likewise.
4433         (vld1q_bf16_x2): Likewise.
4434         (vld1_bf16_x3): Likewise.
4435         (vld1q_bf16_x3): Likewise.
4436         (vld1_bf16_x4): Likewise.
4437         (vld1q_bf16_x4): Likewise.
4438         (vld2_bf16): Likewise.
4439         (vld2q_bf16): Likewise.
4440         (vld2_dup_bf16): Likewise.
4441         (vld2q_dup_bf16): Likewise.
4442         (vld3_bf16): Likewise.
4443         (vld3q_bf16): Likewise.
4444         (vld3_dup_bf16): Likewise.
4445         (vld3q_dup_bf16): Likewise.
4446         (vld4_bf16): Likewise.
4447         (vld4q_bf16): Likewise.
4448         (vld4_dup_bf16): Likewise.
4449         (vld4q_dup_bf16): Likewise.
4450         (vst1_bf16_x2): Likewise.
4451         (vst1q_bf16_x2): Likewise.
4452         (vst1_bf16_x3): Likewise.
4453         (vst1q_bf16_x3): Likewise.
4454         (vst1_bf16_x4): Likewise.
4455         (vst1q_bf16_x4): Likewise.
4456         (vst2_bf16): Likewise.
4457         (vst2q_bf16): Likewise.
4458         (vst3_bf16): Likewise.
4459         (vst3q_bf16): Likewise.
4460         (vst4_bf16): Likewise.
4461         (vst4q_bf16): Likewise.
4462         (vld2_lane_bf16): Likewise.
4463         (vld2q_lane_bf16): Likewise.
4464         (vld3_lane_bf16): Likewise.
4465         (vld3q_lane_bf16): Likewise.
4466         (vld4_lane_bf16): Likewise.
4467         (vld4q_lane_bf16): Likewise.
4468         (vst2_lane_bf16): Likewise.
4469         (vst2q_lane_bf16): Likewise.
4470         (vst3_lane_bf16): Likewise.
4471         (vst3q_lane_bf16): Likewise.
4472         (vst4_lane_bf16): Likewise.
4473         (vst4q_lane_bf16): Likewise.
4474         * config/aarch64/geniterators.sh: Modify iterator regex to
4475         match new vector-tuple modes.
4476         * config/aarch64/iterators.md (insn_count): Extend mode
4477         attribute with vector-tuple type information.
4478         (nregs): Likewise.
4479         (Vendreg): Likewise.
4480         (Vetype): Likewise.
4481         (Vtype): Likewise.
4482         (VSTRUCT_2D): New mode iterator.
4483         (VSTRUCT_2DNX): Likewise.
4484         (VSTRUCT_2DX): Likewise.
4485         (VSTRUCT_2Q): Likewise.
4486         (VSTRUCT_2QD): Likewise.
4487         (VSTRUCT_3D): Likewise.
4488         (VSTRUCT_3DNX): Likewise.
4489         (VSTRUCT_3DX): Likewise.
4490         (VSTRUCT_3Q): Likewise.
4491         (VSTRUCT_3QD): Likewise.
4492         (VSTRUCT_4D): Likewise.
4493         (VSTRUCT_4DNX): Likewise.
4494         (VSTRUCT_4DX): Likewise.
4495         (VSTRUCT_4Q): Likewise.
4496         (VSTRUCT_4QD): Likewise.
4497         (VSTRUCT_D): Likewise.
4498         (VSTRUCT_Q): Likewise.
4499         (VSTRUCT_QD): Likewise.
4500         (VSTRUCT_ELT): New mode attribute.
4501         (vstruct_elt): Likewise.
4502         * genmodes.c (VECTOR_MODE): Add default prefix and order
4503         parameters.
4504         (VECTOR_MODE_WITH_PREFIX): Define.
4505         (make_vector_mode): Add mode prefix and order parameters.
4507 2021-11-04  Jonathan Wright  <jonathan.wright@arm.com>
4509         * expmed.c (extract_bit_field_1): Ensure modes are tieable.
4511 2021-11-04  Jonathan Wright  <jonathan.wright@arm.com>
4513         * expr.c (emit_group_load_1): Remove historic workaround.
4515 2021-11-04  Jonathan Wright  <jonathan.wright@arm.com>
4517         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
4518         Factor out main loop to...
4519         (aarch64_init_simd_builtin_functions): This new function.
4520         (register_tuple_type): Define.
4521         (aarch64_scalar_builtin_type_p): Define.
4522         (handle_arm_neon_h): Define.
4523         * config/aarch64/aarch64-c.c (aarch64_pragma_aarch64): Handle
4524         pragma for arm_neon.h.
4525         * config/aarch64/aarch64-protos.h (aarch64_advsimd_struct_mode_p):
4526         Declare.
4527         (handle_arm_neon_h): Likewise.
4528         * config/aarch64/aarch64.c (aarch64_advsimd_struct_mode_p):
4529         Remove static modifier.
4530         * config/aarch64/arm_neon.h (target): Remove Neon vector
4531         structure type definitions.
4533 2021-11-04  Aldy Hernandez  <aldyh@redhat.com>
4535         PR tree-optimization/102943
4536         * gimple-range-path.cc (path_range_query::range_on_path_entry):
4537         Prefer range_of_expr unless there are no statements in the BB.
4539 2021-11-04  Aldy Hernandez  <aldyh@redhat.com>
4541         PR tree-optimization/102943
4542         * tree-ssa-threadbackward.c (back_threader::find_paths_to_names):
4543         Avoid duplicate calculation of paths.
4545 2021-11-04  Aldy Hernandez  <aldyh@redhat.com>
4547         PR tree-optimization/102943
4548         * gimple-range-path.cc (path_range_query::compute_phi_relations):
4549         Only compute relations for SSA names in the import list.
4550         (path_range_query::compute_outgoing_relations): Same.
4551         * gimple-range-path.h (path_range_query::import_p): New.
4553 2021-11-04  Richard Biener  <rguenther@suse.de>
4555         PR rtl-optimization/103075
4556         * simplify-rtx.c (exact_int_to_float_conversion_p): Return
4557         false for a VOIDmode operand.
4559 2021-11-04  Richard Sandiford  <richard.sandiford@arm.com>
4561         * config/aarch64/aarch64.c (aarch64_vector_costs): Make member
4562         variables private and add "m_" to their names.  Remove is_loop.
4563         (aarch64_record_potential_advsimd_unrolling): Replace with...
4564         (aarch64_vector_costs::record_potential_advsimd_unrolling): ...this.
4565         (aarch64_analyze_loop_vinfo): Replace with...
4566         (aarch64_vector_costs::analyze_loop_vinfo): ...this.
4567         Move initialization of (m_)vec_flags to add_stmt_cost.
4568         (aarch64_analyze_bb_vinfo): Delete.
4569         (aarch64_count_ops): Replace with...
4570         (aarch64_vector_costs::count_ops): ...this.
4571         (aarch64_vector_costs::add_stmt_cost): Set m_vec_flags,
4572         using m_costing_for_scalar to test whether we're costing
4573         scalar or vector code.
4574         (aarch64_adjust_body_cost_sve): Replace with...
4575         (aarch64_vector_costs::adjust_body_cost_sve): ...this.
4576         (aarch64_adjust_body_cost): Replace with...
4577         (aarch64_vector_costs::adjust_body_cost): ...this.
4578         (aarch64_vector_costs::finish_cost): Use m_vinfo instead of is_loop.
4580 2021-11-04  Richard Sandiford  <richard.sandiford@arm.com>
4582         * target.def (targetm.vectorize.init_cost): Replace with...
4583         (targetm.vectorize.create_costs): ...this.
4584         (targetm.vectorize.add_stmt_cost): Delete.
4585         (targetm.vectorize.finish_cost): Likewise.
4586         (targetm.vectorize.destroy_cost_data): Likewise.
4587         * doc/tm.texi.in (TARGET_VECTORIZE_INIT_COST): Replace with...
4588         (TARGET_VECTORIZE_CREATE_COSTS): ...this.
4589         (TARGET_VECTORIZE_ADD_STMT_COST): Delete.
4590         (TARGET_VECTORIZE_FINISH_COST): Likewise.
4591         (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
4592         * doc/tm.texi: Regenerate.
4593         * tree-vectorizer.h (vec_info::vec_info): Remove target_cost_data
4594         parameter.
4595         (vec_info::target_cost_data): Change from a void * to a vector_costs *.
4596         (vector_costs): New class.
4597         (init_cost): Take a vec_info and return a vector_costs.
4598         (dump_stmt_cost): Remove data parameter.
4599         (add_stmt_cost): Replace vinfo and data parameters with a vector_costs.
4600         (add_stmt_costs): Likewise.
4601         (finish_cost): Replace data parameter with a vector_costs.
4602         (destroy_cost_data): Delete.
4603         * tree-vectorizer.c (dump_stmt_cost): Remove data argument and
4604         don't print it.
4605         (vec_info::vec_info): Remove the target_cost_data parameter and
4606         initialize the member variable to null instead.
4607         (vec_info::~vec_info): Delete target_cost_data instead of calling
4608         destroy_cost_data.
4609         (vector_costs::add_stmt_cost): New function.
4610         (vector_costs::finish_cost): Likewise.
4611         (vector_costs::record_stmt_cost): Likewise.
4612         (vector_costs::adjust_cost_for_freq): Likewise.
4613         * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Update
4614         call to vec_info::vec_info.
4615         (vect_compute_single_scalar_iteration_cost): Update after above
4616         changes to costing interface.
4617         (vect_analyze_loop_operations): Likewise.
4618         (vect_estimate_min_profitable_iters): Likewise.
4619         (vect_analyze_loop_2): Initialize LOOP_VINFO_TARGET_COST_DATA
4620         at the start_over point, where it needs to be recreated after
4621         trying without slp.  Update retry code accordingly.
4622         * tree-vect-slp.c (_bb_vec_info::_bb_vec_info): Update call
4623         to vec_info::vec_info.
4624         (vect_slp_analyze_operation): Update after above changes to costing
4625         interface.
4626         (vect_bb_vectorization_profitable_p): Likewise.
4627         * targhooks.h (default_init_cost): Replace with...
4628         (default_vectorize_create_costs): ...this.
4629         (default_add_stmt_cost): Delete.
4630         (default_finish_cost, default_destroy_cost_data): Likewise.
4631         * targhooks.c (default_init_cost): Replace with...
4632         (default_vectorize_create_costs): ...this.
4633         (default_add_stmt_cost): Delete, moving logic to vector_costs instead.
4634         (default_finish_cost, default_destroy_cost_data): Delete.
4635         * config/aarch64/aarch64.c (aarch64_vector_costs): Inherit from
4636         vector_costs.  Add a constructor.
4637         (aarch64_init_cost): Replace with...
4638         (aarch64_vectorize_create_costs): ...this.
4639         (aarch64_add_stmt_cost): Replace with...
4640         (aarch64_vector_costs::add_stmt_cost): ...this.  Use record_stmt_cost
4641         to adjust the cost for inner loops.
4642         (aarch64_finish_cost): Replace with...
4643         (aarch64_vector_costs::finish_cost): ...this.
4644         (aarch64_destroy_cost_data): Delete.
4645         (TARGET_VECTORIZE_INIT_COST): Replace with...
4646         (TARGET_VECTORIZE_CREATE_COSTS): ...this.
4647         (TARGET_VECTORIZE_ADD_STMT_COST): Delete.
4648         (TARGET_VECTORIZE_FINISH_COST): Likewise.
4649         (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
4650         * config/i386/i386.c (ix86_vector_costs): New structure.
4651         (ix86_init_cost): Replace with...
4652         (ix86_vectorize_create_costs): ...this.
4653         (ix86_add_stmt_cost): Replace with...
4654         (ix86_vector_costs::add_stmt_cost): ...this.  Use adjust_cost_for_freq
4655         to adjust the cost for inner loops.
4656         (ix86_finish_cost, ix86_destroy_cost_data): Delete.
4657         (TARGET_VECTORIZE_INIT_COST): Replace with...
4658         (TARGET_VECTORIZE_CREATE_COSTS): ...this.
4659         (TARGET_VECTORIZE_ADD_STMT_COST): Delete.
4660         (TARGET_VECTORIZE_FINISH_COST): Likewise.
4661         (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
4662         * config/rs6000/rs6000.c (TARGET_VECTORIZE_INIT_COST): Replace with...
4663         (TARGET_VECTORIZE_CREATE_COSTS): ...this.
4664         (TARGET_VECTORIZE_ADD_STMT_COST): Delete.
4665         (TARGET_VECTORIZE_FINISH_COST): Likewise.
4666         (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
4667         (rs6000_cost_data): Inherit from vector_costs.
4668         Add a constructor.  Drop loop_info, cost and costing_for_scalar
4669         in favor of the corresponding vector_costs member variables.
4670         Add "m_" to the names of the remaining member variables and
4671         initialize them.
4672         (rs6000_density_test): Replace with...
4673         (rs6000_cost_data::density_test): ...this.
4674         (rs6000_init_cost): Replace with...
4675         (rs6000_vectorize_create_costs): ...this.
4676         (rs6000_update_target_cost_per_stmt): Replace with...
4677         (rs6000_cost_data::update_target_cost_per_stmt): ...this.
4678         (rs6000_add_stmt_cost): Replace with...
4679         (rs6000_cost_data::add_stmt_cost): ...this.  Use adjust_cost_for_freq
4680         to adjust the cost for inner loops.
4681         (rs6000_adjust_vect_cost_per_loop): Replace with...
4682         (rs6000_cost_data::adjust_vect_cost_per_loop): ...this.
4683         (rs6000_finish_cost): Replace with...
4684         (rs6000_cost_data::finish_cost): ...this.  Group loop code
4685         into a single if statement and pass the loop_vinfo down to
4686         subroutines.
4687         (rs6000_destroy_cost_data): Delete.
4689 2021-11-04  Aldy Hernandez  <aldyh@redhat.com>
4691         PR tree-optimization/103062
4692         PR tree-optimization/103062
4693         * value-pointer-equiv.cc (ssa_equiv_stack::ssa_equiv_stack):
4694         Increase size of allocation by 1.
4695         (ssa_equiv_stack::push_replacement): Grow as needed.
4696         (ssa_equiv_stack::get_replacement): Same.
4697         (pointer_equiv_analyzer::pointer_equiv_analyzer): Same.
4698         (pointer_equiv_analyzer::~pointer_equiv_analyzer): Remove delete.
4699         (pointer_equiv_analyzer::set_global_equiv): Grow as needed.
4700         (pointer_equiv_analyzer::get_equiv): Same.
4701         (pointer_equiv_analyzer::get_equiv_expr): Remove const.
4702         * value-pointer-equiv.h (class pointer_equiv_analyzer): Remove
4703         const markers.  Use auto_vec instead of tree *.
4705 2021-11-04  Richard Biener  <rguenther@suse.de>
4707         * tree-ssa-sccvn.c (vn_nary_op_insert_into): Remove always
4708         true parameter and inline valueization.
4709         (vn_nary_op_lookup_1): Inline valueization from ...
4710         (vn_nary_op_compute_hash): ... here and remove it here.
4711         * tree-ssa-pre.c (phi_translate_1): Do not valueize
4712         before vn_nary_lookup_pieces.
4713         (get_representative_for): Mark created SSA representatives
4714         as visited.
4716 2021-11-04  Richard Sandiford  <richard.sandiford@arm.com>
4718         * simplify-rtx.c (simplify_context::simplify_gen_vec_select): Assert
4719         that the operand has a vector mode.  Use subreg_lowpart_offset
4720         to test whether an index corresponds to the low part.
4722 2021-11-04  Richard Sandiford  <richard.sandiford@arm.com>
4724         * read-rtl.c: Remove dead !GENERATOR_FILE block.
4725         * read-rtl-function.c (function_reader::consolidate_singletons):
4726         Generate canonical CONST_VECTORs.
4728 2021-11-04  liuhongt  <hongtao.liu@intel.com>
4730         PR target/101989
4731         * config/i386/predicates.md (reg_or_notreg_operand): Rename to ..
4732         (regmem_or_bitnot_regmem_operand): .. and extend to handle
4733         memory_operand.
4734         * config/i386/sse.md (*<avx512>_vpternlog<mode>_1): Force_reg
4735         the operands which are required to be register_operand.
4736         (*<avx512>_vpternlog<mode>_2): Ditto.
4737         (*<avx512>_vpternlog<mode>_3): Ditto.
4738         (*<avx512>_vternlog<mode>_all): Disallow embeded broadcast for
4739         vector HFmodes since it's not a real AVX512FP16 instruction.
4741 2021-11-04  liuhongt  <hongtao.liu@intel.com>
4743         PR target/102464
4744         * match.pd: simplify (trunc)copysign((extend)a, (extend)b) to
4745         .COPYSIGN (a,b) when a and b are same type as the truncation
4746         type and has less precision than extend type.
4748 2021-11-04  Richard Biener  <rguenther@suse.de>
4750         * doc/generic.texi: Update TARGET_MEM_REF and MEM_REF
4751         documentation.
4753 2021-11-04  Hongyu Wang  <hongyu.wang@intel.com>
4755         * config/i386/sse.md (VI2_AVX512VNNIBW): New mode iterator.
4756         (VI1_AVX512VNNI): Likewise.
4757         (SDOT_VPDP_SUF): New mode_attr.
4758         (VI1SI): Likewise.
4759         (vi1si): Likewise.
4760         (sdot_prod<mode>): Use VI2_AVX512F iterator, expand to
4761         vpdpwssd when VNNI targets available.
4762         (usdot_prod<mode>): New expander for vector QImode.
4764 2021-11-04  Hongyu Wang  <hongyu.wang@intel.com>
4766         * config/i386/amxtileintrin.h (_tile_loadd_internal): Add
4767         parentheses to base and stride.
4768         (_tile_stream_loadd_internal): Likewise.
4769         (_tile_stored_internal): Likewise.
4771 2021-11-03  Maciej W. Rozycki  <macro@embecosm.com>
4773         * config/riscv/riscv.c (riscv_class_max_nregs): Swap the
4774         arguments to `reg_class_subset_p'.
4776 2021-11-03  Joseph Myers  <joseph@codesourcery.com>
4778         PR c/103031
4779         * fold-const.c (fold_init): New function.
4780         * fold-const.h (fold_init): New prototype.
4782 2021-11-03  Andrew MacLeod  <amacleod@redhat.com>
4784         * params.opt (param_vrp2_mode): Make ranger the default for VRP2.
4786 2021-11-03  Andrew MacLeod  <amacleod@redhat.com>
4788         * gimple-range-fold.cc (fold_using_range::range_of_phi): Don't import
4789         a range from edge if arg == phidef.
4791 2021-11-03  Andrew MacLeod  <amacleod@redhat.com>
4793         * gimple-range-fold.cc (fold_using_range::range_of_builtin_call): Test
4794         for constant before any other processing.
4796 2021-11-03  Andrew MacLeod  <amacleod@redhat.com>
4798         * flag-types.h (RANGER_DEBUG_ALL): Fix values.
4800 2021-11-03  Andrew MacLeod  <amacleod@redhat.com>
4802         * gimple-range.cc (gimple_ranger::gimple_ranger): Initialize current_bb.
4803         (gimple_ranger::range_of_expr): Pick up range_on_entry when there is
4804         no explcit context and current_bb is set.
4805         (gimple_ranger::fold_stmt): New.
4806         * gimple-range.h (current_bb, fold_stmt): New.
4807         * tree-vrp.c (rvrp_folder::fold_stmt): Call ranger's fold_stmt.
4809 2021-11-03  Richard Biener  <rguenther@suse.de>
4811         PR tree-optimization/102970
4812         * tree-ssa-pre.c (phi_translate_1): Drop clique and base
4813         when translating a MEM_REF over a backedge.
4815 2021-11-03  Philipp Tomsich  <philipp.tomsich@vrull.eu>
4817         * config/aarch64/aarch64-cores.def (AARCH64_CORE): New Ampere-1 core.
4818         * config/aarch64/aarch64-tune.md: Regenerate.
4819         * config/aarch64/aarch64-cost-tables.h: Add extra costs for Ampere-1.
4820         * config/aarch64/aarch64.c: Add tuning structures for Ampere-1.
4821         * doc/invoke.texi: Add documentation for Ampere-1 core.
4823 2021-11-03  Wilco Dijkstra  <wdijkstr@arm.com>
4825         * config/aarch64/aarch64.md (movsi): Add alternative for GOT accesses.
4826         (movdi): Likewise.
4827         (ldr_got_small_<mode>): Remove pattern.
4828         (ldr_got_small_sidi): Likewise.
4829         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Keep
4830         GOT accesses as moves.
4831         (aarch64_print_operand): Correctly print got_lo12 in L specifier.
4832         (aarch64_mov_operand_p): Make GOT accesses valid move operands.
4833         * config/aarch64/constraints.md: Add new constraint Usw for GOT access.
4835 2021-11-03  Martin Liska  <mliska@suse.cz>
4837         * gcov.c (read_line): Remove dead variable.
4839 2021-11-03  Martin Liska  <mliska@suse.cz>
4841         PR bootstrap/102828
4842         * ipa-fnsummary.c (edge_predicate_pool): Rename predicate class to ipa_predicate.
4843         (ipa_fn_summary::account_size_time): Likewise.
4844         (edge_set_predicate): Likewise.
4845         (set_hint_predicate): Likewise.
4846         (add_freqcounting_predicate): Likewise.
4847         (evaluate_conditions_for_known_args): Likewise.
4848         (evaluate_properties_for_edge): Likewise.
4849         (remap_freqcounting_preds_after_dup): Likewise.
4850         (ipa_fn_summary_t::duplicate): Likewise.
4851         (set_cond_stmt_execution_predicate): Likewise.
4852         (set_switch_stmt_execution_predicate): Likewise.
4853         (compute_bb_predicates): Likewise.
4854         (will_be_nonconstant_expr_predicate): Likewise.
4855         (will_be_nonconstant_predicate): Likewise.
4856         (phi_result_unknown_predicate): Likewise.
4857         (predicate_for_phi_result): Likewise.
4858         (analyze_function_body): Likewise.
4859         (compute_fn_summary): Likewise.
4860         (summarize_calls_size_and_time): Likewise.
4861         (estimate_calls_size_and_time): Likewise.
4862         (ipa_call_context::estimate_size_and_time): Likewise.
4863         (remap_edge_summaries): Likewise.
4864         (remap_freqcounting_predicate): Likewise.
4865         (ipa_merge_fn_summary_after_inlining): Likewise.
4866         (ipa_update_overall_fn_summary): Likewise.
4867         (read_ipa_call_summary): Likewise.
4868         (inline_read_section): Likewise.
4869         * ipa-fnsummary.h (struct ipa_freqcounting_predicate): Likewise.
4870         * ipa-predicate.c (predicate::add_clause): Likewise.
4871         (ipa_predicate::add_clause): Likewise.
4872         (predicate::or_with): Likewise.
4873         (ipa_predicate::or_with): Likewise.
4874         (predicate::evaluate): Likewise.
4875         (ipa_predicate::evaluate): Likewise.
4876         (predicate::probability): Likewise.
4877         (ipa_predicate::probability): Likewise.
4878         (dump_condition): Likewise.
4879         (dump_clause): Likewise.
4880         (predicate::dump): Likewise.
4881         (ipa_predicate::dump): Likewise.
4882         (predicate::debug): Likewise.
4883         (ipa_predicate::debug): Likewise.
4884         (predicate::remap_after_duplication): Likewise.
4885         (ipa_predicate::remap_after_duplication): Likewise.
4886         (predicate::remap_after_inlining): Likewise.
4887         (ipa_predicate::remap_after_inlining): Likewise.
4888         (predicate::stream_in): Likewise.
4889         (ipa_predicate::stream_in): Likewise.
4890         (predicate::stream_out): Likewise.
4891         (ipa_predicate::stream_out): Likewise.
4892         (add_condition): Likewise.
4893         * ipa-predicate.h (class predicate): Likewise.
4894         (class ipa_predicate): Likewise.
4895         (add_condition): Likewise.
4897 2021-11-03  Richard Biener  <rguenther@suse.de>
4899         * bitmap.h (bitmap_bit_p): Change the return type to bool.
4900         * bitmap.c (bitmap_bit_p): Likewise.
4901         * sbitmap.h (bitmap_bit_p): Likewise.
4902         (bitmap_set_bit): Return whether the bit changed.
4903         (bitmap_clear_bit): Likewise.
4904         * tree-ssa.c (verify_vssa): Make use of the changed state
4905         from bitmap_set_bit.
4907 2021-11-03  Richard Biener  <rguenther@suse.de>
4909         PR middle-end/103033
4910         * internal-fn.c (expand_DEFERRED_INIT): Elide the
4911         native_interpret_expr path in favor of folding the
4912         VIEW_CONVERT_EXPR generated when punning the RHS.
4914 2021-11-03  Stefan Schulze Frielinghaus  <stefansf@linux.ibm.com>
4916         * config/s390/s390.c (s390_loop_unroll_adjust): In case of early
4917         exit free bbs.
4919 2021-11-03  Jan Hubicka  <hubicka@ucw.cz>
4921         PR ipa/103040
4922         * ipa-modref.c (callee_to_caller_flags): New function.
4923         (modref_eaf_analysis::analyze_ssa_name): Use it.
4924         (ipa_merge_modref_summary_after_inlining): Fix whitespace.
4926 2021-11-02  Jan Hubicka  <hubicka@ucw.cz>
4928         * ipa-modref.c (modref_eaf_analysis::analyze_ssa_name): Revert
4929         accidental commit.
4931 2021-11-02  Roger Sayle  <roger@nextmovesoftware.com>
4932             Uroš Bizjak  <ubizjak@gmail.com>
4934         * config/i386/i386.md (<any_rotate>ti3): Provide expansion for
4935         rotations by non-constant amounts.
4937 2021-11-02  Jan Hubicka  <hubicka@ucw.cz>
4939         * ipa-modref.c: Fix anonymous namespace placement.
4940         (class modref_eaf_analysis): New class.
4941         (analyze_ssa_name_flags): Turn to ...
4942         (modref_eaf_analysis::analyze_ssa_name): ... this one.
4943         (merge_call_lhs_flags): Turn to ...
4944         (modref_eaf_analysis::merge_call_lhs_flags): .. this one
4945         (modref_eaf_analysis::merge_with_ssa_name): New member function.
4946         (record_escape_points): Turn to ...
4947         (modref_eaf_analysis::record_escape_points): ... this one.
4948         (analyze_parms): Updat
4949         (ipa_merge_modref_summary_after_inlining): Move to the end of file.
4951 2021-11-02  Jan Hubicka  <hubicka@ucw.cz>
4953         * gimple.c (gimple_call_static_chain_flags): New function.
4954         * gimple.h (gimple_call_static_chain_flags): Declare
4955         * ipa-modref.c (modref_summary::modref_summary): Initialize
4956         static_chain_flags.
4957         (modref_summary_lto::modref_summary_lto): Likewise.
4958         (modref_summary::useful_p): Test static_chain_flags.
4959         (modref_summary_lto::useful_p): Likewise.
4960         (struct modref_summary_lto): Add static_chain_flags.
4961         (modref_summary::dump): Dump static_chain_flags.
4962         (modref_summary_lto::dump): Likewise.
4963         (struct escape_point): Add static_cahin_arg.
4964         (analyze_ssa_name_flags): Use gimple_call_static_chain_flags.
4965         (analyze_parms): Handle static chains.
4966         (modref_summaries::duplicate): Duplicate static_chain_flags.
4967         (modref_summaries_lto::duplicate): Likewise.
4968         (modref_write): Stream static_chain_flags.
4969         (read_section): Likewise.
4970         (modref_merge_call_site_flags): Handle static_chain_flags.
4971         * ipa-modref.h (struct modref_summary): Add static_chain_flags.
4972         * tree-ssa-structalias.c (handle_rhs_call): Use
4973         gimple_static_chain_flags.
4975 2021-11-02  Richard Biener  <rguenther@suse.de>
4977         PR tree-optimization/103029
4978         * tree-vect-loop-manip.c (vect_loop_versioning): Ensure
4979         the PHI nodes in the loop maintain their original operand
4980         order.
4982 2021-11-02  Jan Hubicka  <hubicka@ucw.cz>
4984         * tree-core.h (EAF_NOT_RETURNED_DIRECTLY): New flag.
4985         (EAF_NOREAD): Renumber.
4986         * ipa-modref.c (dump_eaf_flags): Dump EAF_NOT_RETURNED_DIRECTLY.
4987         (remove_useless_eaf_flags): Handle EAF_NOT_RETURNED_DIRECTLY
4988         (deref_flags): Likewise.
4989         (modref_lattice::init): Likewise.
4990         (modref_lattice::merge): Likewise.
4991         (merge_call_lhs_flags): Likewise.
4992         (analyze_ssa_name_flags): Likewise.
4993         (modref_merge_call_site_flags): Likewise.
4994         * tree-ssa-structalias.c (handle_call_arg): Likewise.
4996 2021-11-02  Maciej W. Rozycki  <macro@embecosm.com>
4998         * config/riscv/riscv.c (riscv_rtx_costs): Correct a CONST_INT_P
4999         check and remove an unused local variable with shNadd/shNadd.uw
5000         pattern handling.
5002 2021-11-02  Tamar Christina  <tamar.christina@arm.com>
5004         PR tree-optimization/103007
5005         * tree-vect-slp-patterns.c (complex_fms_pattern::matches): Add elem
5006         check.
5008 2021-11-02  Richard Biener  <rguenther@suse.de>
5010         PR middle-end/103038
5011         * fold-const.c (native_interpret_expr): Handle OFFSET_TYPE.
5012         (can_native_interpret_type_p): Likewise.
5013         * internal-fn.c (expand_DEFERRED_INIT): View-convert the
5014         RHS if the LHS is an SSA name.
5016 2021-11-02  Richard Sandiford  <richard.sandiford@arm.com>
5018         * langhooks.h (lang_hooks_for_types::simulate_record_decl): New hook.
5019         * langhooks-def.h (lhd_simulate_record_decl): Declare.
5020         (LANG_HOOKS_SIMULATE_RECORD_DECL): Define.
5021         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Include it.
5022         * langhooks.c (lhd_simulate_record_decl): New function.
5024 2021-11-02  Jakub Jelinek  <jakub@redhat.com>
5026         PR target/103020
5027         * config/i386/i386.c (ix86_vector_mode_supported_p): Reject vector
5028         modes with TImode inner mode if 32-bit.
5030 2021-11-02  liuhongt  <hongtao.liu@intel.com>
5032         * doc/sourcebuild.texi (vect_slp_v4qi_store_unalign,
5033         vect_slp_v2hi_store_unalign, vect_slp_v4hi_store_unalign,
5034         vect_slp_v4si_store_unalign): Document efficient target.
5035         (vect_slp_v4qi_store_unalign_1, vect_slp_v8qi_store_unalign_1,
5036         vect_slp_v16qi_store_unalign_1): Ditto.
5037         (vect_slp_v2hi_store_align,vect_slp_v2qi_store_align,
5038         vect_slp_v2si_store_align, vect_slp_v4qi_store_align): Ditto.
5039         (struct_4char_block_move, struct_8char_block_move,
5040         struct_16char_block_move): Ditto.
5042 2021-11-02  Roger Sayle  <roger@nextmovesoftware.com>
5043             Jakub Jelinek  <jakub@redhat.com>
5045         PR target/102986
5046         * config/i386/i386-expand.c (ix86_expand_v1ti_to_ti,
5047         ix86_expand_ti_to_v1ti): New helper functions.
5048         (ix86_expand_v1ti_shift): Check if the amount operand is an
5049         integer constant, and expand as a TImode shift if it isn't.
5050         (ix86_expand_v1ti_rotate): Check if the amount operand is an
5051         integer constant, and expand as a TImode rotate if it isn't.
5052         (ix86_expand_v1ti_ashiftrt): New function to expand arithmetic
5053         right shifts of V1TImode quantities.
5054         * config/i386/i386-protos.h (ix86_expand_v1ti_ashift): Prototype.
5055         * config/i386/sse.md (ashlv1ti3, lshrv1ti3): Change constraints
5056         to QImode general_operand, and let the helper functions lower
5057         shifts by non-constant operands, as TImode shifts.  Make
5058         conditional on TARGET_64BIT.
5059         (ashrv1ti3): New expander calling ix86_expand_v1ti_ashiftrt.
5060         (rotlv1ti3, rotrv1ti3): Change shift operand to QImode.
5061         Make conditional on TARGET_64BIT.
5063 2021-11-02  Stefan Schulze Frielinghaus  <stefansf@linux.ibm.com>
5065         * config/s390/s390.md ("*cc_to_int", "tabort", "*tabort_1",
5066         "*tabort_1_plus"): Remove operands non-null check.
5068 2021-11-01  Martin Liska  <mliska@suse.cz>
5070         * opt-functions.awk: Add new sanity checking.
5071         * optc-gen.awk: Add new argument to integer_range_info.
5072         * params.opt: Update 2 params which have negative IntegerRange.
5074 2021-11-01  qing zhao  <qing.zhao@oracle.com>
5076         * gimplify.c (gimplify_decl_expr): Do not add call to
5077         __builtin_clear_padding when a variable is a gimple register
5078         or it might not have padding.
5079         (gimplify_init_constructor): Likewise.
5081 2021-11-01  Tamar Christina  <tamar.christina@arm.com>
5083         * config/arm/aarch-common-protos.h (struct vector_cost_table): Add
5084         movi, dup and extract costing fields.
5085         * config/aarch64/aarch64-cost-tables.h (qdf24xx_extra_costs,
5086         thunderx_extra_costs, thunderx2t99_extra_costs,
5087         thunderx3t110_extra_costs, tsv110_extra_costs, a64fx_extra_costs): Use
5088         them.
5089         * config/arm/aarch-cost-tables.h (generic_extra_costs,
5090         cortexa53_extra_costs, cortexa57_extra_costs, cortexa76_extra_costs,
5091         exynosm1_extra_costs, xgene1_extra_costs): Likewise
5092         * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>): Add r->w dup.
5093         * config/aarch64/aarch64.c (aarch64_rtx_costs): Add extra costs.
5095 2021-11-01  Tamar Christina  <tamar.christina@arm.com>
5097         * cse.c (add_to_set): New.
5098         (find_sets_in_insn): Register constants in sets.
5099         (canonicalize_insn): Use auto_vec instead.
5100         (cse_insn): Try materializing using vec_dup.
5101         * rtl.h (simplify_context::simplify_gen_vec_select,
5102         simplify_gen_vec_select): New.
5103         * simplify-rtx.c (simplify_context::simplify_gen_vec_select): New.
5105 2021-11-01  David Malcolm  <dmalcolm@redhat.com>
5107         * common.opt (fdiagnostics-escape-format=): New.
5108         (diagnostics_escape_format): New enum.
5109         (DIAGNOSTICS_ESCAPE_FORMAT_UNICODE): New enum value.
5110         (DIAGNOSTICS_ESCAPE_FORMAT_BYTES): Likewise.
5111         * diagnostic-format-json.cc (json_end_diagnostic): Add
5112         "escape-source" attribute.
5113         * diagnostic-show-locus.c
5114         (exploc_with_display_col::exploc_with_display_col): Replace
5115         "tabstop" param with a cpp_char_column_policy and add an "aspect"
5116         param.  Use these to compute m_display_col accordingly.
5117         (struct char_display_policy): New struct.
5118         (layout::m_policy): New field.
5119         (layout::m_escape_on_output): New field.
5120         (def_policy): New function.
5121         (make_range): Update for changes to exploc_with_display_col ctor.
5122         (default_print_decoded_ch): New.
5123         (width_per_escaped_byte): New.
5124         (escape_as_bytes_width): New.
5125         (escape_as_bytes_print): New.
5126         (escape_as_unicode_width): New.
5127         (escape_as_unicode_print): New.
5128         (make_policy): New.
5129         (layout::layout): Initialize new fields.  Update m_exploc ctor
5130         call for above change to ctor.
5131         (layout::maybe_add_location_range): Update for changes to
5132         exploc_with_display_col ctor.
5133         (layout::calculate_x_offset_display): Update for change to
5134         cpp_display_width.
5135         (layout::print_source_line): Pass policy
5136         to cpp_display_width_computation. Capture cpp_decoded_char when
5137         calling process_next_codepoint.  Move printing of source code to
5138         m_policy.m_print_cb.
5139         (line_label::line_label): Pass in policy rather than context.
5140         (layout::print_any_labels): Update for change to line_label ctor.
5141         (get_affected_range): Pass in policy rather than context, updating
5142         calls to location_compute_display_column accordingly.
5143         (get_printed_columns): Likewise, also for cpp_display_width.
5144         (correction::correction): Pass in policy rather than tabstop.
5145         (correction::compute_display_cols): Pass m_policy rather than
5146         m_tabstop to cpp_display_width.
5147         (correction::m_tabstop): Replace with...
5148         (correction::m_policy): ...this.
5149         (line_corrections::line_corrections): Pass in policy rather than
5150         context.
5151         (line_corrections::m_context): Replace with...
5152         (line_corrections::m_policy): ...this.
5153         (line_corrections::add_hint): Update to use m_policy rather than
5154         m_context.
5155         (line_corrections::add_hint): Likewise.
5156         (layout::print_trailing_fixits): Likewise.
5157         (selftest::test_display_widths): New.
5158         (selftest::test_layout_x_offset_display_utf8): Update to use
5159         policy rather than tabstop.
5160         (selftest::test_one_liner_labels_utf8): Add test of escaping
5161         source lines.
5162         (selftest::test_diagnostic_show_locus_one_liner_utf8): Update to
5163         use policy rather than tabstop.
5164         (selftest::test_overlapped_fixit_printing): Likewise.
5165         (selftest::test_overlapped_fixit_printing_utf8): Likewise.
5166         (selftest::test_overlapped_fixit_printing_2): Likewise.
5167         (selftest::test_tab_expansion): Likewise.
5168         (selftest::test_escaping_bytes_1): New.
5169         (selftest::test_escaping_bytes_2): New.
5170         (selftest::diagnostic_show_locus_c_tests): Call the new tests.
5171         * diagnostic.c (diagnostic_initialize): Initialize
5172         context->escape_format.
5173         (convert_column_unit): Update to use default character width policy.
5174         (selftest::test_diagnostic_get_location_text): Likewise.
5175         * diagnostic.h (enum diagnostics_escape_format): New enum.
5176         (diagnostic_context::escape_format): New field.
5177         * doc/invoke.texi (-fdiagnostics-escape-format=): New option.
5178         (-fdiagnostics-format=): Add "escape-source" attribute to examples
5179         of JSON output, and document it.
5180         * input.c (location_compute_display_column): Pass in "policy"
5181         rather than "tabstop", passing to
5182         cpp_byte_column_to_display_column.
5183         (selftest::test_cpp_utf8): Update to use cpp_char_column_policy.
5184         * input.h (class cpp_char_column_policy): New forward decl.
5185         (location_compute_display_column): Pass in "policy" rather than
5186         "tabstop".
5187         * opts.c (common_handle_option): Handle
5188         OPT_fdiagnostics_escape_format_.
5189         * selftest.c (temp_source_file::temp_source_file): New ctor
5190         overload taking a size_t.
5191         * selftest.h (temp_source_file::temp_source_file): Likewise.
5193 2021-11-01  Aldy Hernandez  <aldyh@redhat.com>
5195         * dbgcnt.def: Add debug counter for back_thread[12] and
5196         back_threadfull[12].
5197         * passes.def: Pass "first" argument to each back threading pass.
5198         * tree-ssa-threadbackward.c (back_threader::back_threader): Add
5199         first argument.
5200         (back_threader::debug_counter): New.
5201         (back_threader::maybe_register_path): Call debug_counter.
5203 2021-11-01  Aldy Hernandez  <aldyh@redhat.com>
5205         * tree-ssa-threadbackward.c (BT_NONE): New.
5206         (BT_SPEED): New.
5207         (BT_RESOLVE): New.
5208         (back_threader::back_threader): Add flags.
5209         Move loop initialization here.
5210         (back_threader::~back_threader): New.
5211         (back_threader::find_taken_edge_switch): Change solver and ranger
5212         to pointers.
5213         (back_threader::find_taken_edge_cond): Same.
5214         (back_threader::find_paths_to_names): Same.
5215         (back_threader::find_paths): Same.
5216         (back_threader::dump): Same.
5217         (try_thread_blocks): Merge into thread_blocks.
5218         (back_threader::thread_blocks): New.
5219         (do_early_thread_jumps): Merge into thread_blocks.
5220         (do_thread_jumps): Merge into thread_blocks.
5221         (back_threader::thread_through_all_blocks): Remove.
5223 2021-11-01  Andrew MacLeod  <amacleod@redhat.com>
5225         PR tree-optimization/103003
5226         * value-relation.cc (dom_oracle::register_relation): If the 2
5227         ssa names are the same, don't register any relation.
5229 2021-11-01  Dan Li  <ashimida@linux.alibaba.com>
5231         * config/aarch64/aarch64.c (aarch64_expand_epilogue): Remove
5232         redundant check for calls_eh_return.
5233         * config/aarch64/aarch64.md (*do_return): Likewise.
5235 2021-11-01  Xionghu Luo  <luoxhu@linux.ibm.com>
5237         * cfghooks.c (cfg_hook_duplicate_loop_to_header_edge): Rename
5238         duplicate_loop_to_header_edge to
5239         duplicate_loop_body_to_header_edge.
5240         (cfg_hook_duplicate_loop_body_to_header_edge): Likewise.
5241         * cfghooks.h (struct cfg_hooks): Likewise.
5242         (cfg_hook_duplicate_loop_body_to_header_edge): Likewise.
5243         * cfgloopmanip.c (duplicate_loop_body_to_header_edge): Likewise.
5244         (clone_loop_to_header_edge): Likewise.
5245         * cfgloopmanip.h (duplicate_loop_body_to_header_edge): Likewise.
5246         * cfgrtl.c (struct cfg_hooks): Likewise.
5247         * doc/loop.texi: Likewise.
5248         * loop-unroll.c (unroll_loop_constant_iterations): Likewise.
5249         (unroll_loop_runtime_iterations): Likewise.
5250         (unroll_loop_stupid): Likewise.
5251         (apply_opt_in_copies): Likewise.
5252         * tree-cfg.c (struct cfg_hooks): Likewise.
5253         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
5254         (try_peel_loop): Likewise.
5255         * tree-ssa-loop-manip.c (copy_phi_node_args): Likewise.
5256         (gimple_duplicate_loop_body_to_header_edge): Likewise.
5257         (tree_transform_and_unroll_loop): Likewise.
5258         * tree-ssa-loop-manip.h (gimple_duplicate_loop_body_to_header_edge):
5259         Likewise.
5261 2021-11-01  Xionghu Luo  <luoxhu@linux.ibm.com>
5263         * cfgloopmanip.c (loop_version): Refactor loopify to
5264         loop_version.  Move condition generation after loopify.
5265         (loopify): Delete.
5266         * cfgloopmanip.h (loopify): Delete.
5268 2021-10-31  Jan Hubicka  <hubicka@ucw.cz>
5270         * ipa-fnsummary.c: Include tree-dfa.h.
5271         (points_to_local_or_readonly_memory_p): Return true on return
5272         slot writes.
5273         * ipa-modref.c (analyze_ssa_name_flags): Fix handling of copy
5274         statement.
5276 2021-10-30  Tobias Burnus  <tobias@codesourcery.com>
5278         PR middle-end/102972
5279         * omp-low.c (omp_runtime_api_call): Use DECL_ASSEMBLER_NAME to get
5280         internal Fortran name; new permit_num_teams arg to permit
5281         omp_get_num_teams and omp_get_team_num.
5282         (scan_omp_1_stmt): Update call to it, add missing call for
5283         reverse offload, and check for strictly nested API calls in teams.
5285 2021-10-30  Jakub Jelinek  <jakub@redhat.com>
5287         * gimplify.c (gimplify_omp_for): Diagnose threadprivate iterators.
5289 2021-10-29  David Malcolm  <dmalcolm@redhat.com>
5291         * selftest.c (assert_streq): Add newlines when emitting non-equal
5292         non-NULL strings.
5294 2021-10-29  David Malcolm  <dmalcolm@redhat.com>
5296         * Makefile.in: Fix syntax for reference to LIBDEPS in
5297         gengtype link rule.
5299 2021-10-29  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
5301         * doc/install.texi: Bump required minimum DejaGnu version.
5303 2021-10-29  Aldy Hernandez  <aldyh@redhat.com>
5304             Andrew MacLeod  <amacleod@redhat.com>
5306         * value-relation.cc (path_oracle::killing_def): Add a
5307         self-equivalence so we don't look to the root oracle.
5309 2021-10-29  Aldy Hernandez  <aldyh@redhat.com>
5311         * passes.def: Replace the pass_thread_jumps before VRP* with
5312         pass_thread_jumps_full.  Remove all pass_vrp_threader instances.
5313         * tree-ssa-threadbackward.c (pass_data_thread_jumps_full):
5314         Remove hyphen from "thread-full" name.
5316 2021-10-29  Andrew MacLeod  <amacleod@redhat.com>
5318         PR tree-optimization/102983
5319         * gimple-range-cache.h (propagate_updated_value): Make public.
5320         * gimple-range.cc (gimple_ranger::range_of_stmt): Propagate exports
5321         when processing gcond stmts.
5323 2021-10-29  Jan Hubicka  <hubicka@ucw.cz>
5325         * gimple.c (gimple_call_retslot_flags): New function.
5326         * gimple.h (gimple_call_retslot_flags): Declare.
5327         * ipa-modref.c: Include tree-cfg.h.
5328         (struct escape_entry): Turn parm_index to signed.
5329         (modref_summary_lto::modref_summary_lto): Add retslot_flags.
5330         (modref_summary::modref_summary): Initialize retslot_flags.
5331         (struct modref_summary_lto): Likewise.
5332         (modref_summary::useful_p): Check retslot_flags.
5333         (modref_summary_lto::useful_p): Likewise.
5334         (modref_summary::dump): Dump retslot_flags.
5335         (modref_summary_lto::dump): Likewise.
5336         (struct escape_point): Add hidden_args enum.
5337         (analyze_ssa_name_flags): Ignore return slot return;
5338         use gimple_call_retslot_flags.
5339         (record_escape_points): Break out from ...
5340         (analyze_parms): ... here; handle retslot_flags.
5341         (modref_summaries::duplicate): Duplicate retslot_flags.
5342         (modref_summaries_lto::duplicate): Likewise.
5343         (modref_write_escape_summary): Stream parm_index as signed.
5344         (modref_read_escape_summary): Likewise.
5345         (modref_write): Stream retslot_flags.
5346         (read_section): Likewise.
5347         (struct escape_map): Fix typo in comment.
5348         (update_escape_summary_1): Fix whitespace.
5349         (ipa_merge_modref_summary_after_inlining): Drop retslot_flags.
5350         (modref_merge_call_site_flags): Merge retslot_flags.
5351         * ipa-modref.h (struct modref_summary): Add retslot_flags.
5352         * tree-ssa-structalias.c (handle_rhs_call): Handle retslot_flags.
5354 2021-10-29  Tamar Christina  <tamar.christina@arm.com>
5356         PR tree-optimization/102977
5357         * tree-vect-slp-patterns.c (vect_match_call_p): Remove.
5358         (vect_detect_pair_op): Add crosslane check.
5359         (vect_match_call_complex_mla): Remove.
5360         (class complex_mul_pattern): Update comment.
5361         (complex_mul_pattern::matches): Update detection.
5362         (class complex_fma_pattern): Remove.
5363         (complex_fma_pattern::matches): Remove.
5364         (complex_fma_pattern::recognize): Remove.
5365         (complex_fma_pattern::build): Remove.
5366         (class complex_fms_pattern):  Update comment.
5367         (complex_fms_pattern::matches): Remove.
5368         (complex_operations_pattern::recognize): Remove complex_fma_pattern
5370 2021-10-29  Jakub Jelinek  <jakub@redhat.com>
5372         * gimple-fold.c (gimple_fold_builtin_memset): Copy over location from
5373         call to store.
5375 2021-10-29  Xionghu Luo  <luoxhu@linux.ibm.com>
5377         PR target/102868
5378         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Add
5379         patterns match and emit for VSX xxpermdi.
5381 2021-10-29  liuhongt  <hongtao.liu@intel.com>
5383         PR target/102464
5384         * config/i386/i386-builtin-types.def (V8HF_FTYPE_V8HF): New
5385         function type.
5386         (V16HF_FTYPE_V16HF): Ditto.
5387         (V32HF_FTYPE_V32HF): Ditto.
5388         (V8HF_FTYPE_V8HF_ROUND): Ditto.
5389         (V16HF_FTYPE_V16HF_ROUND): Ditto.
5390         (V32HF_FTYPE_V32HF_ROUND): Ditto.
5391         * config/i386/i386-builtin.def ( IX86_BUILTIN_FLOORPH,
5392         IX86_BUILTIN_CEILPH, IX86_BUILTIN_TRUNCPH,
5393         IX86_BUILTIN_FLOORPH256, IX86_BUILTIN_CEILPH256,
5394         IX86_BUILTIN_TRUNCPH256, IX86_BUILTIN_FLOORPH512,
5395         IX86_BUILTIN_CEILPH512, IX86_BUILTIN_TRUNCPH512): New builtin.
5396         * config/i386/i386-builtins.c
5397         (ix86_builtin_vectorized_function): Enable vectorization for
5398         HFmode FLOOR/CEIL/TRUNC operation.
5399         * config/i386/i386-expand.c (ix86_expand_args_builtin): Handle
5400         new builtins.
5401         * config/i386/sse.md (rint<mode>2, nearbyint<mode>2): Extend
5402         to vector HFmodes.
5404 2021-10-28  Aldy Hernandez  <aldyh@redhat.com>
5405             Andrew MacLeod  <amacleod@redhat.com>
5407         * value-relation.cc (path_oracle::killing_def): Walk the
5408         equivalency list and remove SSA from any equivalencies.
5410 2021-10-28  Stafford Horne  <shorne@gmail.com>
5412         * config/or1k/or1k.h (PROFILE_HOOK): Add return address argument
5413         to _mcount.
5415 2021-10-28  Jakub Jelinek  <jakub@redhat.com>
5417         PR tree-optimization/102951
5418         * fold-const.h (address_compare): Declare.
5419         * fold-const.c (address_compare): New function.
5420         * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Use
5421         address_compare helper.
5422         (minmax cmp (convert1?@2 addr@0) (convert2?@3 addr@1)): New
5423         simplification.
5425 2021-10-28  Andrew MacLeod  <amacleod@redhat.com>
5427         * vr-values.c (simplify_using_ranges::fold_cond): Change fold message.
5429 2021-10-28  Andrew MacLeod  <amacleod@redhat.com>
5431         PR tree-optimization/102940
5432         * tree-vrp.c (execute_ranger_vrp): Reset scev.
5434 2021-10-28  Richard Purdie  <richard.purdie@linuxfoundation.org>
5436         * config/nios2/linux.h (MUSL_DYNAMIC_LINKER): Add musl linker
5438 2021-10-28  Richard Purdie  <richard.purdie@linuxfoundation.org>
5440         * configure: Regenerate.
5441         * configure.ac: Use CPPFLAGS_FOR_BUILD for GMPINC
5443 2021-10-28  Eric Botcazou  <ebotcazou@adacore.com>
5445         * doc/invoke.texi (%X): Remove obsolete reference to -Wl.
5447 2021-10-28  Richard Biener  <rguenther@suse.de>
5449         PR middle-end/84407
5450         * fold-const.c (fold_convert_const): Avoid int to float
5451         constant folding with -frounding-math and inexact result.
5452         * simplify-rtx.c (simplify_const_unary_operation): Likewise
5453         for both float and unsigned_float.
5455 2021-10-28  Aldy Hernandez  <aldyh@redhat.com>
5457         * tree-ssa-threadbackward.c
5458         (back_threader::find_taken_edge_switch): Use find_case_label_range
5459         instead of find_taken_edge.
5461 2021-10-28  Aldy Hernandez  <aldyh@redhat.com>
5463         * tree-ssa-threadbackward.c (class back_threader_registry):
5464         Inherit from back_jt_path_registry.
5465         (back_threader_registry::thread_through_all_blocks): Remove.
5466         (back_threader_registry::register_path): Remove
5467         m_lowlevel_registry prefix.
5469 2021-10-28  Richard Biener  <rguenther@suse.de>
5471         PR middle-end/57245
5472         * fold-const.c (fold_convert_const_real_from_real): Honor
5473         -frounding-math if the conversion is not exact.
5474         * simplify-rtx.c (simplify_const_unary_operation): Do not
5475         simplify FLOAT_TRUNCATE with sign dependent rounding.
5477 2021-10-28  Richard Biener  <rguenther@suse.de>
5479         PR tree-optimization/102949
5480         * tree-vect-stmts.c (ensure_base_align): Look at the
5481         dr_info of a group leader and assert we are looking at
5482         one with analyzed alignment.
5484 2021-10-28  Kewen Lin  <linkw@linux.ibm.com>
5486         PR target/102767
5487         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Consider
5488         V1T1 mode for unaligned load and store.
5490 2021-10-28  Kito Cheng  <kito.cheng@sifive.com>
5492         * config/riscv/riscv.md (zero_extendsidi2_internal): Allow ZBB
5493         use this pattern.
5495 2021-10-28  Kito Cheng  <kito.cheng@sifive.com>
5497         * config/riscv/arch-canonicalize (CANONICAL_ORDER): Add `i` to
5498         CANONICAL_ORDER.
5500 2021-10-28  Alexandre Oliva  <oliva@adacore.com>
5502         * common.opt (fharden-compares): New.
5503         (fharden-conditional-branches): New.
5504         * doc/invoke.texi: Document new options.
5505         * gimple-harden-conditionals.cc: New.
5506         * Makefile.in (OBJS): Build it.
5507         * passes.def: Add new passes.
5508         * tree-pass.h (make_pass_harden_compares): Declare.
5509         (make_pass_harden_conditional_branches): Declare.
5511 2021-10-28  Xionghu Luo  <luoxhu@linux.ibm.com>
5513         PR target/94613
5514         * config/rs6000/altivec.md: Add vsx register constraints.
5515         * config/rs6000/vsx.md (vsx_xxsel<mode>): Delete.
5516         (vsx_xxsel<mode>2): Likewise.
5517         (vsx_xxsel<mode>3): Likewise.
5518         (vsx_xxsel<mode>4): Likewise.
5520 2021-10-28  Xionghu Luo  <luoxhu@linux.ibm.com>
5522         PR target/94613
5523         * config/rs6000/altivec.md (*altivec_vsel<mode>): Change to ...
5524         (altivec_vsel<mode>): ... this and update define.
5525         (*altivec_vsel<mode>_uns): Delete.
5526         (altivec_vsel<mode>2): New define_insn.
5527         (altivec_vsel<mode>3): Likewise.
5528         (altivec_vsel<mode>4): Likewise.
5529         * config/rs6000/rs6000-call.c (altivec_expand_vec_sel_builtin): New.
5530         (altivec_expand_builtin): Call altivec_expand_vec_sel_builtin to expand
5531         vel_sel.
5532         * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Use bit-wise
5533         selection instead of per element.
5534         * config/rs6000/vector.md:
5535         * config/rs6000/vsx.md (*vsx_xxsel<mode>): Change to ...
5536         (vsx_xxsel<mode>): ... this and update define.
5537         (*vsx_xxsel<mode>_uns): Delete.
5538         (vsx_xxsel<mode>2): New define_insn.
5539         (vsx_xxsel<mode>3): Likewise.
5540         (vsx_xxsel<mode>4): Likewise.
5542 2021-10-28  Hongyu Wang  <hongyu.wang@intel.com>
5544         * config/i386/i386.c (use_rsqrt_p): Add mode parameter, enable
5545           HFmode rsqrt without TARGET_SSE_MATH.
5546         (ix86_optab_supported_p): Refactor rint, adjust floor, ceil,
5547         btrunc condition to be restricted by -ftrapping-math, adjust
5548         use_rsqrt_p function call.
5549         * config/i386/i386.md (rcphf2): New define_insn.
5550         (rsqrthf2): Likewise.
5551         * config/i386/sse.md (div<mode>3): Change VF2H to VF2.
5552         (div<mode>3): New expander for HF mode.
5553         (rsqrt<mode>2): Likewise.
5554         (*avx512fp16_vmrcpv8hf2): New define_insn for rpad pass.
5555         (*avx512fp16_vmrsqrtv8hf2): Likewise.
5557 2021-10-27  Saagar Jha  <saagar@saagarjha.com>
5559         * config.gcc: Adjust for Darwin21.
5560         * config/darwin-c.c (macosx_version_as_macro): Likewise.
5561         * config/darwin-driver.c (validate_macosx_version_min):
5562         Likewise.
5563         (darwin_find_version_from_kernel): Likewise.
5565 2021-10-27  Aldy Hernandez  <aldyh@redhat.com>
5567         * gimple-range-path.cc
5568         (path_range_query::range_defined_in_block): Call killing_def.
5570 2021-10-27  Aldy Hernandez  <aldyh@redhat.com>
5572         * gimple-range-fold.cc (fold_using_range::range_of_range_op): Dump
5573         operands as well as relation.
5574         * gimple-range-path.cc
5575         (path_range_query::compute_ranges_in_block): Compute PHI relations
5576         first.  Compute outgoing relations at the end.
5577         (path_range_query::compute_ranges): Remove call to compute_relations.
5578         (path_range_query::compute_relations): Remove.
5579         (path_range_query::maybe_register_phi_relation): New.
5580         (path_range_query::compute_phi_relations): Abstract out
5581         registering one PHI relation to...
5582         (path_range_query::compute_outgoing_relations): ...here.
5583         * gimple-range-path.h (class path_range_query): Remove
5584         compute_relations.
5585         Add maybe_register_phi_relation.
5587 2021-10-27  Aldy Hernandez  <aldyh@redhat.com>
5588             Andrew MacLeod  <amacleod@redhat.com>
5590         * value-relation.cc (path_oracle::killing_def): Kill second
5591         order relations.
5593 2021-10-27  Martin Jambor  <mjambor@suse.cz>
5595         * ipa-cp.c (good_cloning_opportunity_p): Decide whether to use
5596         profile feedback depending on their local availability.
5598 2021-10-27  Martin Jambor  <mjambor@suse.cz>
5600         * params.opt (param_ipa_cp_profile_count_base): New parameter.
5601         * doc/invoke.texi (Optimize Options): Add entry for
5602         ipa-cp-profile-count-base.
5603         * ipa-cp.c (max_count): Replace with base_count, replace all
5604         occurrences too, unless otherwise stated.
5605         (ipcp_cloning_candidate_p): identify mostly-directly called
5606         functions based on their counts, not max_count.
5607         (compare_edge_profile_counts): New function.
5608         (ipcp_propagate_stage): Instead of setting max_count, find the
5609         appropriate edge count in a sorted vector of counts of eligible
5610         edges and make it the base_count.
5612 2021-10-27  Martin Jambor  <mjambor@suse.cz>
5614         * ipa-cp.c (struct caller_statistics): New fields rec_count_sum,
5615         n_nonrec_calls and itself, document all fields.
5616         (init_caller_stats): Initialize the above new fields.
5617         (gather_caller_stats): Gather self-recursive counts and calls number.
5618         (get_info_about_necessary_edges): Gather counts of self-recursive and
5619         other edges bringing in the requested value separately.
5620         (dump_profile_updates): Rework to dump info about a single node only.
5621         (lenient_count_portion_handling): New function.
5622         (struct gather_other_count_struct): New type.
5623         (gather_count_of_non_rec_edges): New function.
5624         (struct desc_incoming_count_struct): New type.
5625         (analyze_clone_icoming_counts): New function.
5626         (adjust_clone_incoming_counts): Likewise.
5627         (update_counts_for_self_gen_clones): Likewise.
5628         (update_profiling_info): Rewritten.
5629         (update_specialized_profile): Adjust call to dump_profile_updates.
5630         (create_specialized_node): Do not update profiling info.
5631         (decide_about_value): New parameter self_gen_clones, either push new
5632         clones into it or updat their profile counts.  For self-recursively
5633         generated values, use a portion of the node count instead of count
5634         from self-recursive edges to estimate goodness.
5635         (decide_whether_version_node): Gather clones for self-generated values
5636         in a new vector, update their profiles at once at the end.
5638 2021-10-27  Richard Biener  <rguenther@suse.de>
5640         * tree-vectorizer.c (vect_transform_loops): New function,
5641         split out from ...
5642         (try_vectorize_loop_1): ... here.  Simplify as epilogues
5643         are now fully handled in the split part.
5645 2021-10-27  Jakub Jelinek  <jakub@redhat.com>
5647         * omp-expand.c (expand_omp_for_init_counts): Handle non-rectangular
5648         iterators with pointer types.
5649         (expand_omp_for_init_vars, extract_omp_for_update_vars): Likewise.
5651 2021-10-26  Martin Sebor  <msebor@redhat.com>
5653         PR tree-optimization/102238
5654         PR tree-optimization/102919
5655         * gimple-ssa-sprintf.c (get_string_length): Add an argument.
5656         (array_elt_at_offset): Move to pointer-query.
5657         (set_aggregate_size_and_offset): New function.
5658         (field_at_offset):  Move to pointer-query.
5659         (get_origin_and_offset): Rename...
5660         (get_origin_and_offset_r): this.  Add an argument.  Make aggregate
5661         handling more robust.
5662         (get_origin_and_offset): New.
5663         (alias_offset): Add an argument.
5664         (format_string): Use subobject size determined by get_origin_and_offset.
5665         * pointer-query.cc (field_at_offset): Move from gimple-ssa-sprintf.c.
5666         Improve/correct handling of aggregates.
5667         (array_elt_at_offset): Same.
5668         * pointer-query.h (field_at_offset): Declare.
5669         (array_elt_at_offset): Declare.
5671 2021-10-26  Martin Sebor  <msebor@redhat.com>
5673         * builtins.c (check_strncat_sizes): Pass access_data ctor additional
5674         arguments.
5675         (expand_builtin_memcmp): Move code to gimple-ssa-warn-access.cc.
5676         (expand_builtin_fork_or_exec): Same.
5677         * gimple-array-bounds.cc (array_bounds_checker::check_mem_ref): Pass
5678         compute_objsize additional arguments.
5679         (inbounds_memaccess_p): Same.
5680         (array_bounds_checker::check_array_bounds): Add an assert.  Stash
5681         statement in a member.
5682         (check_array_bounds_dom_walker::before_dom_children): Same.
5683         * gimple-array-bounds.h (array_bounds_checker::m_stmt): New member.
5684         * gimple-ssa-sprintf.c (get_destination_size): Add an argument.
5685         (handle_printf_call): Pass a new argument.
5686         * gimple-ssa-warn-access.cc (get_size_range): Add an argument.
5687         (check_access): Add an argument and pass it along to callees.
5688         (check_read_access): Make a member function.
5689         (pass_waccess::check_strcat): Pass access_data ctor additional
5690         arguments.
5691         (pass_waccess::check_strncat): Same.
5692         (pass_waccess::check_stxcpy): Same.
5693         (pass_waccess::check_stxncpy): Same.
5694         (pass_waccess::check_strncmp): Same.
5695         (pass_waccess::check_read_access): Same.
5696         (pass_waccess::check_builtin): Same.
5697         (pass_waccess::maybe_check_access_sizes): Same.
5698         (pass_waccess::maybe_check_dealloc_call): Same.
5699         * gimple-ssa-warn-access.h (check_read_access): Declare a new
5700         member function.
5701         * pointer-query.cc (compute_objsize_r): Add an argument.
5702         (gimple_call_return_array): Same.
5703         (gimple_call_alloc_size): Same.
5704         (access_ref::access_ref): Same.
5705         (access_ref::get_ref): Same.
5706         (pointer_query::get_ref): Same.
5707         (handle_min_max_size): Pass an arguments to callees.
5708         (handle_array_ref): Add an argument.
5709         (handle_mem_ref): Same.
5710         (compute_objsize): Same.
5711         * pointer-query.h (struct access_ref): Adjust signatures.
5712         (struct access_data): Same.
5713         (gimple_call_alloc_size): Add an argument.
5714         (gimple_parm_array_size): Same.
5715         (compute_objsize): Same.
5716         * tree-ssa-strlen.c (strlen_pass::adjust_last_stmt): Pass an additional
5717         argument to compute_objsize.
5718         (strlen_pass::maybe_warn_overflow): Same.
5719         (maybe_diag_stxncpy_trunc): Same.
5721 2021-10-26  Martin Sebor  <msebor@redhat.com>
5723         PR middle-end/102453
5724         * gimple-ssa-warn-access.cc (pass_waccess::check_atomic_builtin): New.
5725         (pass_waccess::check_atomic_builtin): Call it.
5727 2021-10-26  Vladimir N. Makarov  <vmakarov@redhat.com>
5729         PR rtl-optimization/102842
5730         * lra-constraints.c (match_reload): Ignore out in checking values
5731         of outs.
5732         (curr_insn_transform): Collect outputs before doing reloads of operands.
5734 2021-10-26  Paul A. Clarke  <pc@us.ibm.com>
5736         PR target/102719
5737         * config/rs6000/x86intrin.h: Move some included headers to new
5738         headers.  Include new immintrin.h instead of those headers.
5739         * config/rs6000/immintrin.h: New.
5740         * config/rs6000/x86gprintrin.h: New.
5741         * config.gcc (powerpc*-*-*): Add new headers to extra_headers.
5743 2021-10-26  Richard Biener  <rguenther@suse.de>
5745         * tree-vectorizer.h (vect_create_addr_base_for_vector_ref):
5746         Remove byte_offset parameter.
5747         (vect_create_data_ref_ptr): Likewise.
5748         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
5749         Likewise.
5750         (vect_create_data_ref_ptr): Likewise.
5751         * tree-vect-stmts.c (vectorizable_store): Adjust.
5752         (vectorizable_load): Likewise.
5754 2021-10-26  Richard Biener  <rguenther@suse.de>
5756         PR tree-optimization/96109
5757         * tree-vectorizer.h (dr_misalignment): Add optional offset
5758         parameter.
5759         * tree-vect-data-refs.c (dr_misalignment): Likewise.  Remove
5760         offset applied for negative stride accesses.
5761         (vect_enhance_data_refs_alignment): Compute negative stride
5762         access offset and pass it to dr_misalignment.
5763         * tree-vect-stmts.c (get_negative_load_store_type): Pass
5764         negative offset to dr_misalignment.
5765         (get_group_load_store_type): Likewise.
5766         (get_load_store_type): Likewise.
5767         (vectorizable_store): Remove asserts about alignment.
5768         (vectorizable_load): Likewise.
5770 2021-10-26  Kewen Lin  <linkw@linux.ibm.com>
5772         PR tree-optimization/102897
5773         * tree-ssa-forwprop.c (simplify_permutation): Remove a wrong assertion.
5775 2021-10-26  Richard Biener  <rguenther@suse.de>
5777         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
5778         Take offset in bytes.
5779         (vect_create_data_ref_ptr): Likewise.
5780         * tree-vect-loop-manip.c (get_misalign_in_elems): Multiply
5781         offset by element size.
5782         (vect_create_cond_for_align_checks): Likewise.
5783         * tree-vect-stmts.c (get_negative_load_store_type): Likewise.
5784         (vectorizable_load): Remove duplicate leftover from merge
5785         conflict.
5787 2021-10-26  Roger Sayle  <roger@nextmovesoftware.com>
5789         * config/i386/i386-expand.c (ix86_expand_v1ti_shift): New helper
5790         function to expand V1TI mode logical shifts by integer constants.
5791         (ix86_expand_v1ti_rotate): New helper function to expand V1TI
5792         mode rotations by integer constants.
5793         * config/i386/i386-protos.h (ix86_expand_v1ti_shift,
5794         ix86_expand_v1ti_rotate): Prototype new functions here.
5795         * config/i386/sse.md (ashlv1ti3, lshrv1ti3, rotlv1ti3, rotrv1ti3):
5796         New TARGET_SSE2 expanders to implement V1TI shifts and rotations.
5798 2021-10-26  Aldy Hernandez  <aldyh@redhat.com>
5800         * tree-ssa-threadbackward.c (back_threader::maybe_register_path):
5801         Avoid threading circular paths.
5803 2021-10-26  Aldy Hernandez  <aldyh@redhat.com>
5805         * tree-ssa-threadbackward.c (back_threader::resolve_phi):
5806         Attempt to resolve all incoming paths to a PHI.
5807         (back_threader::resolve_def): Always return true for PHIs.
5809 2021-10-26  Aldy Hernandez  <aldyh@redhat.com>
5811         * tree-ssa-threadbackward.c (back_threader::find_paths_to_names):
5812         Always try to resolve path without looking back.
5813         * tree-ssa-threadupdate.c (dump_jump_thread): Indidicate whether
5814         edge is a back edge.
5816 2021-10-26  Kewen Lin  <linkw@linux.ibm.com>
5818         PR tree-optimization/102789
5819         * tree-vect-loop-manip.c (vect_update_inits_of_drs): Do not
5820         update inits of simd_lane_access.
5822 2021-10-25  Andrew MacLeod  <amacleod@redhat.com>
5824         * tree-vrp.c (vrp_simplify_cond_using_ranges): Add return type and
5825         move to vr-values.c.
5826         (simplify_casted_conds): Move to vrp_folder class.
5827         (execute_vrp): Call via vrp_folder now.
5828         * vr-values.c (simplify_cond_using_ranges_1): Call simplify_casted_cond.
5829         (simplify_using_ranges::simplify_casted_cond): Relocate from tree-vrp.c.
5830         * vr-values.h (simplify_casted_cond): Add prototype.
5832 2021-10-25  Andrew MacLeod  <amacleod@redhat.com>
5834         * tree-vrp.c (rvrp_folder::fold_stmt): If simplification fails, try
5835         to fold anyway.
5837 2021-10-25  Paul A. Clarke  <pc@us.ibm.com>
5839         * config/rs6000/smmintrin.h (_mm_testz_si128): Add "extern" to
5840         function signature.
5841         (_mm_testc_si128): Likewise.
5842         (_mm_testnzc_si128): Likewise.
5843         (_mm_blend_ps): Likewise.
5844         (_mm_blendv_ps): Likewise.
5845         (_mm_blend_pd): Likewise.
5846         (_mm_blendv_pd): Likewise.
5847         (_mm_ceil_pd): Likewise.
5848         (_mm_ceil_sd): Likewise.
5849         (_mm_ceil_ps): Likewise.
5850         (_mm_ceil_ss): Likewise.
5851         (_mm_floor_pd): Likewise.
5852         (_mm_floor_sd): Likewise.
5853         (_mm_floor_ps): Likewise.
5854         (_mm_floor_ss): Likewise.
5855         (_mm_minpos_epu16): Likewise.
5856         (_mm_mul_epi32): Likewise.
5857         (_mm_cvtepi8_epi16): Likewise.
5858         (_mm_packus_epi32): Likewise.
5859         (_mm_cmpgt_epi64): Likewise.
5861 2021-10-25  Roger Sayle  <roger@nextmovesoftware.com>
5863         * simplify-rtx.c (simplify_binary_operation_1) [SS_ASHIFT]: Simplify
5864         shifts of the mode's smin_value and smax_value when the bit count
5865         operand doesn't have side-effects.
5866         [US_ASHIFT]: Likewise, simplify shifts of the mode's umax_value
5867         when the bit count operand doesn't have side-effects.
5868         (simplify_const_binary_operation) [SS_ASHIFT, US_ASHIFT]: Perform
5869         compile-time evaluation of saturating left shifts with constant
5870         arguments.
5872 2021-10-25  Andrew MacLeod  <amacleod@redhat.com>
5874         * gimple-range.cc (gimple_ranger::export_global_ranges): Remove check
5875         for TDF_DETAILS.
5877 2021-10-25  Andrew MacLeod  <amacleod@redhat.com>
5879         * flag-types.h (enum ranger_debug): Adjust values.
5880         * params.opt (ranger_debug): Ditto.
5882 2021-10-25  Martin Jambor  <mjambor@suse.cz>
5884         PR tree-optimization/102886
5885         * tree-sra.c (totally_scalarize_subtree): Fix the out of
5886         access-condition.
5888 2021-10-25  Andrew Pinski  <apinski@marvell.com>
5890         * tree-ssa-dce.c (simple_dce_from_worklist):
5891         Check stmt_unremovable_because_of_non_call_eh_p also
5892         before removing the statement.
5894 2021-10-25  Richard Biener  <rguenther@suse.de>
5896         PR tree-optimization/102905
5897         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
5898         Use vect_supportable_dr_alignment again to determine whether
5899         an access is supported when not aligned.
5901 2021-10-25  Kito Cheng  <kito.cheng@sifive.com>
5903         * config/riscv/riscv.c (riscv_rtx_costs): Handle cost model
5904         for zbs extension.
5906 2021-10-25  Jim Wilson  <jimw@sifive.com>
5907             Kito Cheng  <kito.cheng@sifive.com>
5908             Jia-Wei Chen  <jiawei@iscas.ac.cn>
5909             Shi-Hua Liao  <shihua@iscas.ac.cn>
5911         * config/riscv/bitmanip.md (shiftm1): New.
5912         (*bset<mode>): Ditto.
5913         (*bset<mode>_mask): Ditto.
5914         (*bset<mode>_1): Ditto.
5915         (*bset<mode>_1_mask): Ditto.
5916         (*bseti<mode>): Ditto.
5917         (*bclr<mode>): Ditto.
5918         (*bclri<mode>): Ditto.
5919         (*binv<mode>): Ditto.
5920         (*binvi<mode>): Ditto.
5921         (*bext<mode>): Ditto.
5922         (*bexti): Ditto.
5923         * config/riscv/predicates.md (splittable_const_int_operand):
5924         Handle bseti.
5925         (single_bit_mask_operand): New.
5926         (not_single_bit_mask_operand): Ditto.
5927         (const31_operand): Ditto.
5928         (const63_operand): Ditto.
5929         * config/riscv/riscv.c (riscv_build_integer_1): Handle bseti.
5930         (riscv_output_move): Ditto.
5931         (riscv_print_operand): Handle new operand type: T and S.
5932         * config/riscv/riscv.h (SINGLE_BIT_MASK_OPERAND): New.
5934 2021-10-25  Jim Wilson  <jimw@sifive.com>
5936         * config/riscv/riscv.c (riscv_build_integer_1): Build integer
5937         with rotate.
5939 2021-10-25  Kito Cheng  <kito.cheng@sifive.com>
5941         * config/riscv/riscv.c (riscv_extend_cost): Handle cost model
5942         for zbb extension.
5943         (riscv_rtx_costs): Ditto.
5945 2021-10-25  Jim Wilson  <jimw@sifive.com>
5946             Kito Cheng  <kito.cheng@sifive.com>
5947             Jia-Wei Chen  <jiawei@iscas.ac.cn>
5949         * config/riscv/bitmanip.md (bitmanip_bitwise): New.
5950         (bitmanip_minmax): New.
5951         (clz_ctz_pcnt): New.
5952         (bitmanip_optab): New.
5953         (bitmanip_insn): New.
5954         (*<optab>_not<mode>): New.
5955         (*xor_not<mode>): New.
5956         (<bitmanip_optab>si2): New.
5957         (*<bitmanip_optab>disi2): New.
5958         (<bitmanip_optab>di2): New.
5959         (*zero_extendhi<GPR:mode>2_bitmanip): New.
5960         (*extend<SHORT:mode><SUPERQI:mode>2_zbb): New.
5961         (*zero_extendhi<GPR:mode>2_zbb): New.
5962         (rotrsi3): New.
5963         (rotrdi3): New.
5964         (rotrsi3_sext): New.
5965         (rotlsi3): New.
5966         (rotldi3): New.
5967         (rotlsi3_sext): New.
5968         (bswap<mode>2): New.
5969         (<bitmanip_optab><mode>3): New.
5970         * config/riscv/riscv.md (type): Add rotate.
5971         (zero_extendhi<GPR:mode>2): Change to define_expand pattern.
5972         (*zero_extendhi<GPR:mode>2): New.
5973         (extend<SHORT:mode><SUPERQI:mode>2): Change to define_expand pattern.
5974         (*extend<SHORT:mode><SUPERQI:mode>2): New.
5976 2021-10-25  Kito Cheng  <kito.cheng@sifive.com>
5978         * config/riscv/riscv.c (riscv_extend_cost): Handle cost model
5979         for zba extension.
5980         (riscv_rtx_costs): Ditto.
5982 2021-10-25  Jim Wilson  <jimw@sifive.com>
5983             Kito Cheng  <kito.cheng@sifive.com>
5984             Jia-Wei Chen  <jiawei@iscas.ac.cn>
5986         * config/riscv/bitmanip.md (*zero_extendsidi2_bitmanip): New.
5987         (*shNadd): Ditto.
5988         (*shNadduw): Ditto.
5989         (*add.uw): Ditto.
5990         (*slliuw): Ditto.
5991         (riscv_rtx_costs): Ditto.
5992         * config/riscv/riscv.md: Include bitmanip.md
5993         (type): Add bitmanip bype.
5994         (zero_extendsidi2): Change to define_expand pattern.
5995         (*zero_extendsidi2_internal): New.
5996         (zero_extendsidi2_shifted): Disable for ZBA.
5998 2021-10-25  Kito Cheng  <kito.cheng@sifive.com>
6000         * common/config/riscv/riscv-common.c (riscv_ext_version_table):
6001         Add zba, zbb, zbc and zbs.
6002         (riscv_ext_flag_table): Ditto.
6003         * config/riscv/riscv-opts.h (MASK_ZBA): New.
6004         (MASK_ZBB): Ditto.
6005         (MASK_ZBC): Ditto.
6006         (MASK_ZBS): Ditto.
6007         (TARGET_ZBA): Ditto.
6008         (TARGET_ZBB): Ditto.
6009         (TARGET_ZBC): Ditto.
6010         (TARGET_ZBS): Ditto.
6011         * config/riscv/riscv.opt (riscv_zb_subext): New.
6013 2021-10-25  liuhongt  <hongtao.liu@intel.com>
6015         PR target/102464
6016         * match.pd: Simplify (_Float16) sqrtf((float) a) to .SQRT(a)
6017         when direct_internal_fn_supported_p, similar for sqrt/sqrtl.
6019 2021-10-25  Richard Biener  <rguenther@suse.de>
6021         PR tree-optimization/102920
6022         * tree-ssa-sccvn.h (expressions_equal_p): Add argument
6023         controlling VN_TOP matching behavior.
6024         * tree-ssa-sccvn.c (expressions_equal_p): Likewise.
6025         (vn_phi_eq): Do not optimistically match VN_TOP.
6027 2021-10-25  konglin1  <lingling.kong@intel.com>
6029         * config/i386/sse.md (fma_<mode>_fadd_fmul): Add new
6030         define_insn_and_split.
6031         (fma_<mode>_fadd_fcmul):Likewise
6032         (fma_<complexopname>_<mode>_fma_zero):Likewise
6034 2021-10-24  John David Anglin  <danglin@gcc.gnu.org>
6036         * config/pa/pa-d.c (pa_d_handle_target_float_abi): Don't check
6037         TARGET_DISABLE_FPREGS.
6038         * config/pa/pa.c (fix_range): Use MASK_SOFT_FLOAT instead of
6039         MASK_DISABLE_FPREGS.
6040         (hppa_rtx_costs): Don't check TARGET_DISABLE_FPREGS.  Adjust
6041         cost of hardware integer multiplication.
6042         (pa_conditional_register_usage): Don't check TARGET_DISABLE_FPREGS.
6043         * config/pa/pa.h (INT14_OK_STRICT): Likewise.
6044         * config/pa/pa.md: Don't check TARGET_DISABLE_FPREGS. Check
6045         TARGET_SOFT_FLOAT in patterns that use xmpyu instruction.
6046         * config/pa/pa.opt (mdisable-fpregs): Change target mask to
6047         SOFT_FLOAT.  Revise comment.
6048         (msoft-float): New option.
6050 2021-10-24  John David Anglin  <danglin@gcc.gnu.org>
6052         * config/pa/pa.md: Don't use 'G' constraint in integer move patterns.
6054 2021-10-24  Gerald Pfeifer  <gerald@pfeifer.com>
6056         * doc/install.texi (Specific): Remove obsolete details
6057         around GNU/Linux on Itanium.
6058         (Specific): Remove reference to Windows for Itanium.
6060 2021-10-23  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
6062         * config/i386/x86-tune-sched-bd.c (dispatch_group): Commentary
6063         typo fix.
6065 2021-10-23  Jan Hubicka  <hubicka@ucw.cz>
6067         * tree-ssa-structalias.c (compute_points_to_sets): Cleanup.
6069 2021-10-23  Roger Sayle  <roger@nextmovesoftware.com>
6071         * config/i386/sse.md (<any_logic>v1ti3): New define_insn to
6072         implement V1TImode AND, IOR and XOR on TARGET_SSE2 (and above).
6073         (one_cmplv1ti2): New define expand.
6075 2021-10-22  Eric Gallager  <egallager@gcc.gnu.org>
6077         PR other/102663
6078         * Makefile.in: Handle dvidir and install-dvi target.
6079         * configure: Regenerate.
6080         * configure.ac: Add install-dvi to target_list.
6082 2021-10-22  Gerald Pfeifer  <gerald@pfeifer.com>
6084         * doc/install.texi (Binaries): Convert mingw-w64.org to https.
6085         (Specific): Ditto.
6087 2021-10-22  Richard Biener  <rguenther@suse.de>
6089         PR tree-optimization/102893
6090         * tree-ssa-dce.c (find_obviously_necessary_stmts): Fix the
6091         test for an exit edge.
6093 2021-10-22  Aldy Hernandez  <aldyh@redhat.com>
6094             Andrew MacLeod  <amacleod@redhat.com>
6096         * gimple-range-path.cc (path_range_query::compute_phi_relations):
6097         Kill any global relations we may know before registering a new
6098         one.
6099         * value-relation.cc (path_oracle::killing_def): New.
6100         * value-relation.h (path_oracle::killing_def): New.
6102 2021-10-22  Richard Biener  <rguenther@suse.de>
6104         PR bootstrap/102681
6105         * tree-ssa-sccvn.c (vn_phi_insert): For undefined SSA args
6106         record VN_TOP.
6107         (vn_phi_lookup): Likewise.
6109 2021-10-21  H.J. Lu  <hjl.tools@gmail.com>
6111         PR target/98667
6112         * doc/invoke.texi: Document -fcf-protection requires i686 or
6113         new.
6115 2021-10-21  Eric Botcazou  <ebotcazou@adacore.com>
6117         PR middle-end/102764
6118         * cfgexpand.c (expand_gimple_basic_block): Robustify latest change.
6120 2021-10-21  Jonathan Wright  <jonathan.wright@arm.com>
6122         * config/aarch64/arm_neon.h (__STRUCTN): Delete function
6123         macro and all invocations.
6125 2021-10-21  Andrew MacLeod  <amacleod@redhat.com>
6127         * doc/invoke.texi (ranger-debug): Document.
6128         * flag-types.h (enum ranger_debug): New.
6129         (enum evrp_mode): Remove debug values.
6130         * gimple-range-cache.cc (DEBUG_RANGE_CACHE): Use new debug flag.
6131         * gimple-range-gori.cc (gori_compute::gori_compute): Ditto.
6132         * gimple-range.cc (gimple_ranger::gimple_ranger): Ditto.
6133         * gimple-ssa-evrp.c (hybrid_folder::choose_value): Ditto.
6134         (execute_early_vrp): Use evrp-mode directly.
6135         * params.opt (enum evrp_mode): Remove debug values.
6136         (ranger-debug): New.
6137         (ranger-logical-depth): Relocate to be in alphabetical order.
6139 2021-10-21  Andrew MacLeod  <amacleod@redhat.com>
6141         * doc/invoke.texi: (vrp1-mode, vrp2-mode): Document.
6142         * flag-types.h: (enum vrp_mode): New.
6143         * params.opt: (vrp1-mode, vrp2-mode): New.
6144         * tree-vrp.c (vrp_pass_num): New.
6145         (pass_vrp::pass_vrp): Set pass number.
6146         (pass_vrp::execute): Choose which VRP mode to execute.
6148 2021-10-21  Andrew MacLeod  <amacleod@redhat.com>
6150         * gimple-ssa-evrp.c (class rvrp_folder): Move to tree-vrp.c.
6151         (execute_early_vrp): For ranger only mode, invoke ranger_vrp.
6152         * tree-vrp.c (class rvrp_folder): Relocate here.
6153         (execute_ranger_vrp): New.
6154         * tree-vrp.h (execute_ranger_vrp): Export.
6156 2021-10-21  Martin Liska  <mliska@suse.cz>
6158         PR debug/102585
6159         PR bootstrap/102766
6160         * opts.c (finish_options): Process flag_var_tracking* options
6161         here as they can be adjusted by optimize attribute.
6162         Process also flag_syntax_only and flag_gtoggle.
6163         * toplev.c (process_options): Remove it here.
6164         * common.opt: Make debug_nonbind_markers_p as PerFunction
6165         attribute as it depends on optimization level.
6167 2021-10-21  Martin Jambor  <mjambor@suse.cz>
6169         PR tree-optimization/102505
6170         * tree-sra.c (totally_scalarize_subtree): Check that the
6171         encountered field fits within the acces we would like to put it
6172         in.
6174 2021-10-21  Aldy Hernandez  <aldyh@redhat.com>
6176         * tree-ssa-threadbackward.c
6177         (back_threader::maybe_register_path): Remove circular paths check.
6179 2021-10-21  Richard Biener  <rguenther@suse.de>
6181         * toplev.c (process_options): Move the initial debug_hooks
6182         setting ...
6183         (toplev::main): ... before the call of the post_options
6184         langhook.
6186 2021-10-21  Richard Biener  <rguenther@suse.de>
6188         PR tree-optimization/102847
6189         * tree-vect-stmts.c (vect_model_load_cost): Add the scalar
6190         load cost in the prologue for VMAT_INVARIANT.
6192 2021-10-21  Richard Biener  <rguenther@suse.de>
6194         PR tree-optimization/102847
6195         * tree-vect-stmts.c (vect_model_load_cost): Explicitely
6196         handle VMAT_INVARIANT as a splat in the prologue.
6198 2021-10-21  Hongyu Wang  <hongyu.wang@intel.com>
6200         PR target/102812
6201         * config/i386/i386.c (ix86_get_ssemov): Adjust HFmode vector
6202         move to use the same logic as HImode.
6204 2021-10-21  Richard Biener  <rguenther@suse.de>
6206         * tree-vect-slp.c (vect_build_slp_tree_1): Remove
6207         superfluous gimple_call_nothrow_p check.
6209 2021-10-21  Andrew Pinski  <apinski@marvell.com>
6211         * tree-cfg.c (maybe_remove_writeonly_store): Add dce_ssa_names argument.
6212         Mark the ssa-name of the rhs as one to be removed.
6213         (execute_fixup_cfg): Update call to maybe_remove_writeonly_store.
6214         Call simple_dce_from_worklist at the end to a simple dce.
6216 2021-10-21  Andrew Pinski  <apinski@marvell.com>
6218         * tree-cfg.c (maybe_remove_writeonly_store): New function
6219         factored out from ...
6220         (execute_fixup_cfg): Here. Call maybe_remove_writeonly_store.
6222 2021-10-21  Andrew Pinski  <apinski@marvell.com>
6224         * tree-cfg.c (execute_fixup_cfg): Remove comment
6225         about standalone pass.
6227 2021-10-21  Andrew Pinski  <apinski@marvell.com>
6229         * tree-cfg.c (execute_fixup_cfg): Output when the statement
6230         is removed when it is a write only var.
6232 2021-10-21  Aldy Hernandez  <aldyh@redhat.com>
6234         * tree-ssa-threadbackward.c (back_threader::maybe_register_path):
6235         Avoid threading circular paths.
6237 2021-10-20  Alex Coplan  <alex.coplan@arm.com>
6239         * calls.c (initialize_argument_information): Remove some dead
6240         code, remove handling for function_arg returning const_int.
6241         * doc/tm.texi: Delete documentation for unused target hooks.
6242         * doc/tm.texi.in: Likewise.
6243         * target.def (load_bounds_for_arg): Delete.
6244         (store_bounds_for_arg): Delete.
6245         (load_returned_bounds): Delete.
6246         (store_returned_bounds): Delete.
6247         * targhooks.c (default_load_bounds_for_arg): Delete.
6248         (default_store_bounds_for_arg): Delete.
6249         (default_load_returned_bounds): Delete.
6250         (default_store_returned_bounds): Delete.
6251         * targhooks.h (default_load_bounds_for_arg): Delete.
6252         (default_store_bounds_for_arg): Delete.
6253         (default_load_returned_bounds): Delete.
6254         (default_store_returned_bounds): Delete.
6256 2021-10-20  Jonathan Wakely  <jwakely@redhat.com>
6258         * doc/extend.texi (Basic Asm): Clarify that asm is not an
6259         extension in C++.
6260         * doc/invoke.texi (-fno-asm): Fix description for C++.
6262 2021-10-20  Jonathan Wakely  <jwakely@redhat.com>
6264         * doc/install.texi: Remove link to old.html
6266 2021-10-20  Tamar Christina  <tamar.christina@arm.com>
6268         * config/aarch64/aarch64-simd.md (*aarch64_cmtst_same_<mode>): New.
6270 2021-10-20  Tamar Christina  <tamar.christina@arm.com>
6272         * config/aarch64/aarch64-simd.md (*aarch64_narrow_trunc<mode>): New.
6274 2021-10-20  Tamar Christina  <tamar.christina@arm.com>
6276         * config/aarch64/aarch64-simd.md (aarch64_simd_ashr<mode>): Add case cmp
6277         case.
6278         * config/aarch64/constraints.md (D1): New.
6280 2021-10-20  Tamar Christina  <tamar.christina@arm.com>
6282         * config/aarch64/aarch64-simd.md
6283         (*aarch64_<srn_op>topbits_shuffle<mode>_le): New.
6284         (*aarch64_topbits_shuffle<mode>_le): New.
6285         (*aarch64_<srn_op>topbits_shuffle<mode>_be): New.
6286         (*aarch64_topbits_shuffle<mode>_be): New.
6287         * config/aarch64/predicates.md
6288         (aarch64_simd_shift_imm_vec_exact_top): New.
6290 2021-10-20  Tamar Christina  <tamar.christina@arm.com>
6292         * config/aarch64/aarch64-simd.md (*aarch64_<srn_op>shrn<mode>_vect,
6293         *aarch64_<srn_op>shrn<mode>2_vect_le,
6294         *aarch64_<srn_op>shrn<mode>2_vect_be): New.
6295         * config/aarch64/iterators.md (srn_op): New.
6297 2021-10-20  Chung-Lin Tang  <cltang@codesourcery.com>
6299         * omp-low.c (omp_copy_decl_2): For !ctx, use record_vars to add new copy
6300         as local variable.
6301         (scan_sharing_clauses): Place copy of OMP_CLAUSE_IN_REDUCTION decl in
6302         ctx->outer instead of ctx.
6304 2021-10-20  Martin Liska  <mliska@suse.cz>
6306         Revert:
6307         2021-10-19  Martin Liska  <mliska@suse.cz>
6309         PR target/102374
6310         * config/i386/i386-options.c (ix86_valid_target_attribute_inner_p): Strip whitespaces.
6311         * system.h (strip_whilespaces): New function.
6313 2021-10-20  Martin Liska  <mliska@suse.cz>
6315         Revert:
6316         2021-10-19  Martin Liska  <mliska@suse.cz>
6318         PR target/102375
6319         * config/aarch64/aarch64.c (aarch64_process_one_target_attr):
6320         Strip whitespaces.
6322 2021-10-20  Wilco Dijkstra  <wdijkstr@arm.com>
6324         * config/aarch64/aarch64.c (aarch64_case_values_threshold):
6325         Change to 8 with -Os, 11 otherwise.
6327 2021-10-20  Wilco Dijkstra  <wdijkstr@arm.com>
6329         * config/aarch64/aarch64.c (neoversev1_tunings):
6330         Enable AARCH64_EXTRA_TUNE_CHEAP_SHIFT_EXTEND.
6331         (neoversen2_tunings): Likewise.
6333 2021-10-20  Wilco Dijkstra  <wdijkstr@arm.com>
6335         PR target/100966
6336         * config/aarch64/aarch64.md (frint_pattern): Update comment.
6337         * config/aarch64/aarch64-simd-builtins.def: Change frintn to roundeven.
6338         * config/aarch64/arm_fp16.h: Change frintn to roundeven.
6339         * config/aarch64/arm_neon.h: Likewise.
6340         * config/aarch64/iterators.md (frint_pattern): Use roundeven for FRINTN.
6342 2021-10-20  Martin Liska  <mliska@suse.cz>
6344         * config/arm/arm.c (arm_unwind_emit_sequence): Do not declare
6345         already declared global variable.
6346         (arm_unwind_emit_set): Use out_file as function argument.
6347         (arm_unwind_emit): Likewise.
6348         * config/darwin.c (machopic_output_data_section_indirection): Likewise.
6349         (machopic_output_stub_indirection): Likewise.
6350         (machopic_output_indirection): Likewise.
6351         (machopic_finish): Likewise.
6352         * config/i386/i386.c (ix86_asm_output_function_label): Likewise.
6353         * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
6354         * config/ia64/ia64.c (process_epilogue): Likewise.
6355         (process_cfa_adjust_cfa): Likewise.
6356         (process_cfa_register): Likewise.
6357         (process_cfa_offset): Likewise.
6358         (ia64_asm_unwind_emit): Likewise.
6359         * config/s390/s390.c (s390_asm_output_function_label): Likewise.
6361 2021-10-20  Andre Simoes Dias Vieira  <andre.simoesdiasvieira@arm.com>
6363         * config/aarch64/aarch64-builtins.c
6364         (aarch64_general_gimple_fold_builtin):
6365         lower vld1 and vst1 variants of the neon builtins
6366         * config/aarch64/aarch64-protos.h:
6367         (aarch64_general_gimple_fold_builtin): Add gsi parameter.
6368         * config/aarch64/aarch64.c (aarch64_general_gimple_fold_builtin):
6369         Likwise.
6371 2021-10-20  Andre Simoes Dias Vieira  <andre.simoesdiasvieira@arm.com>
6373         * match.pd: Generate IFN_TRUNC.
6375 2021-10-20  Richard Biener  <rguenther@suse.de>
6377         PR tree-optimization/102853
6378         * tree-data-ref.c (split_constant_offset_1): Bail out
6379         immediately if the expression traps on overflow.
6381 2021-10-20  Aldy Hernandez  <aldyh@redhat.com>
6383         * tree-ssa-threadbackward.c (back_threader::~back_threader): Remove.
6385 2021-10-20  Aldy Hernandez  <aldyh@redhat.com>
6387         * tree-ssa-threadupdate.c (back_jt_path_registry::adjust_paths_after_duplication):
6388         Remove superflous debugging message.
6389         (back_jt_path_registry::duplicate_thread_path): Same.
6391 2021-10-20  Aldy Hernandez  <aldyh@redhat.com>
6393         * tree-ssa-threadbackward.c (back_threader_registry::back_threader_registry):
6394         Remove.
6395         (back_threader_registry::register_path): Remove m_threaded_paths.
6397 2021-10-20  Aldy Hernandez  <aldyh@redhat.com>
6399         PR tree-optimization/102814
6400         * doc/invoke.texi: Document --param=max-fsm-thread-length.
6401         * params.opt: Add --param=max-fsm-thread-length.
6402         * tree-ssa-threadbackward.c
6403         (back_threader_profitability::profitable_path_p): Fail on paths
6404         longer than max-fsm-thread-length.
6406 2021-10-20  Eric Botcazou  <ebotcazou@adacore.com>
6408         PR middle-end/102764
6409         * cfgexpand.c (expand_gimple_basic_block): Disregard a final debug
6410         statement to reset the current location for the outgoing edges.
6412 2021-10-20  Aldy Hernandez  <aldyh@redhat.com>
6413             Richard Biener  <rguenther@suse.de>
6415         * tree-ssa-threadupdate.c (cancel_thread): Dump threading reason
6416         on the same line as the threading cancellation.
6417         (jt_path_registry::cancel_invalid_paths): Avoid rotating loops.
6418         Avoid threading through loop headers where the path remains in the
6419         loop.
6421 2021-10-20  Siddhesh Poyarekar  <siddhesh@gotplt.org>
6423         * tree-object-size.c (unknown): Make into a function.  Adjust
6424         all uses.
6425         (unknown_object_size): Simplify implementation.
6427 2021-10-20  Hongtao Liu  <hongtao.liu@intel.com>
6428             Kewen Lin  <linkw@linux.ibm.com>
6430         * doc/sourcebuild.texi (Effective-Target Keywords): Document
6431         vect_slp_v2qi_store, vect_slp_v4qi_store, vect_slp_v8qi_store,
6432         vect_slp_v16qi_store, vect_slp_v2hi_store,
6433         vect_slp_v4hi_store, vect_slp_v2si_store, vect_slp_v4si_store.
6435 2021-10-19  Jonathan Wakely  <jwakely@redhat.com>
6437         * doc/extend.texi (Basic PowerPC Built-in Functions): Fix typo.
6439 2021-10-19  Paul A. Clarke  <pc@us.ibm.com>
6441         PR target/101893
6442         PR target/102719
6443         * config/rs6000/emmintrin.h: Guard POWER8 intrinsics.
6444         * config/rs6000/pmmintrin.h: Same.
6445         * config/rs6000/smmintrin.h: Same.
6446         * config/rs6000/tmmintrin.h: Same.
6448 2021-10-19  Paul A. Clarke  <pc@us.ibm.com>
6450         * config.gcc (extra_headers): Add nmmintrin.h.
6452 2021-10-19  Richard Biener  <rguenther@suse.de>
6454         * tree-vectorizer.h (vect_supportable_dr_alignment): Add
6455         misalignment parameter.
6456         * tree-vect-data-refs.c (vect_get_peeling_costs_all_drs):
6457         Do not change DR_MISALIGNMENT in place, instead pass the
6458         adjusted misalignment to vect_supportable_dr_alignment.
6459         (vect_peeling_supportable): Likewise.
6460         (vect_peeling_hash_get_lowest_cost): Adjust.
6461         (vect_enhance_data_refs_alignment): Likewise.
6462         (vect_vfa_access_size): Likewise.
6463         (vect_supportable_dr_alignment): Add misalignment
6464         parameter and simplify.
6465         * tree-vect-stmts.c (get_negative_load_store_type): Adjust.
6466         (get_group_load_store_type): Likewise.
6467         (get_load_store_type): Likewise.
6469 2021-10-19  Clément Chigot  <clement.chigot@atos.net>
6471         * config/rs6000/rs6000.c (rs6000_xcoff_file_end): Move
6472         __tls_get_addr reference to .text csect.
6474 2021-10-19  Martin Liska  <mliska@suse.cz>
6476         PR target/102375
6477         * config/aarch64/aarch64.c (aarch64_process_one_target_attr):
6478         Strip whitespaces.
6480 2021-10-19  Richard Biener  <rguenther@suse.de>
6482         * tree-vectorizer.h (vect_get_store_cost): Adjust signature.
6483         (vect_get_load_cost): Likewise.
6484         * tree-vect-data-refs.c (vect_get_data_access_cost): Get
6485         alignment support scheme and misalignment as arguments
6486         and pass them down.
6487         (vect_get_peeling_costs_all_drs): Compute that info here
6488         and note that we shouldn't need to.
6489         * tree-vect-stmts.c (vect_model_store_cost): Get
6490         alignment support scheme and misalignment as arguments.
6491         (vect_get_store_cost): Likewise.
6492         (vect_model_load_cost): Likewise.
6493         (vect_get_load_cost): Likewise.
6494         (vectorizable_store): Pass down alignment support scheme
6495         and misalignment to costing.
6496         (vectorizable_load): Likewise.
6498 2021-10-19  Richard Biener  <rguenther@suse.de>
6500         * tree-vect-stmts.c (get_negative_load_store_type): Add
6501         offset output parameter and initialize it.
6502         (get_group_load_store_type): Likewise.
6503         (get_load_store_type): Likewise.
6504         (vectorizable_store): Use offset as computed by
6505         get_load_store_type.
6506         (vectorizable_load): Likewise.
6508 2021-10-19  Richard Biener  <rguenther@suse.de>
6510         PR tree-optimization/102827
6511         * tree-if-conv.c (predicate_statements): Add pe parameter
6512         and use that edge to insert invariant stmts on.
6513         (combine_blocks): Pass through pe.
6514         (tree_if_conversion): Compute the edge to insert invariant
6515         stmts on and pass it along.
6517 2021-10-19  Roger Sayle  <roger@nextmovesoftware.com>
6519         PR target/102785
6520         * config/bfin/bfin.md (addsubv2hi3, subaddv2hi3, ssaddsubv2hi3,
6521         sssubaddv2hi3):  Swap the order of operators in vec_concat.
6523 2021-10-19  Xionghu Luo  <luoxhu@linux.ibm.com>
6525         * config/rs6000/altivec.md (*altivec_vmrghb_internal): Delete.
6526         (altivec_vmrghb_direct): New.
6527         (*altivec_vmrghh_internal): Delete.
6528         (altivec_vmrghh_direct): New.
6529         (*altivec_vmrghw_internal): Delete.
6530         (altivec_vmrghw_direct_<mode>): New.
6531         (altivec_vmrghw_direct): Delete.
6532         (*altivec_vmrglb_internal): Delete.
6533         (altivec_vmrglb_direct): New.
6534         (*altivec_vmrglh_internal): Delete.
6535         (altivec_vmrglh_direct): New.
6536         (*altivec_vmrglw_internal): Delete.
6537         (altivec_vmrglw_direct_<mode>): New.
6538         (altivec_vmrglw_direct): Delete.
6539         * config/rs6000/rs6000-p8swap.c (rtx_is_swappable_p): Adjust.
6540         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const):
6541         Adjust.
6542         * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust.
6543         (vsx_xxmrglw_<mode>): Adjust.
6545 2021-10-19  Aldy Hernandez  <aldyh@redhat.com>
6547         * passes.def: Change threading comment before pass_ccp pass.
6549 2021-10-19  Haochen Gui  <guihaoc@gcc.gnu.org>
6551         * config/rs6000/rs6000-call.c (altivec_expand_lxvr_builtin):
6552         Modify the expansion for sign extension. All extensions are done
6553         within VSX registers.
6555 2021-10-19  Richard Biener  <rguenther@suse.de>
6557         * tree-vect-stmts.c (get_group_load_store_type): Add
6558         misalignment output parameter and initialize it.
6559         (get_group_load_store_type): Likewise.
6560         (vectorizable_store): Remove now redundant queries.
6561         (vectorizable_load): Likewise.
6563 2021-10-19  Richard Biener  <rguenther@suse.de>
6565         * tree-vectorizer.h (vect_supportable_dr_alignment): Remove
6566         check_aligned argument.
6567         * tree-vect-data-refs.c (vect_supportable_dr_alignment):
6568         Likewise.
6569         (vect_peeling_hash_insert): Add supportable_if_not_aligned
6570         argument and do not call vect_supportable_dr_alignment here.
6571         (vect_peeling_supportable): Adjust.
6572         (vect_enhance_data_refs_alignment): Compute whether the
6573         access is supported with different alignment here and
6574         pass that down to vect_peeling_hash_insert.
6575         (vect_vfa_access_size): Adjust.
6576         * tree-vect-stmts.c (vect_get_store_cost): Likewise.
6577         (vect_get_load_cost): Likewise.
6578         (get_negative_load_store_type): Likewise.
6579         (get_group_load_store_type): Likewise.
6580         (get_load_store_type): Likewise.
6582 2021-10-19  Martin Liska  <mliska@suse.cz>
6584         PR target/102374
6585         * config/i386/i386-options.c (ix86_valid_target_attribute_inner_p): Strip whitespaces.
6586         * system.h (strip_whilespaces): New function.
6588 2021-10-19  dianhong xu  <dianhong.xu@intel.com>
6590         * config/i386/avx512fp16intrin.h:
6591         (_mm512_set1_pch): New intrinsic.
6592         * config/i386/avx512fp16vlintrin.h:
6593         (_mm256_set1_pch): New intrinsic.
6594         (_mm_set1_pch): Ditto.
6596 2021-10-18  Andrew MacLeod  <amacleod@redhat.com>
6598         PR tree-optimization/102796
6599         * gimple-range.cc (gimple_ranger::range_on_edge): Process EH edges
6600         normally.  Return get_tree_range for non gimple_range_ssa_p names.
6601         (gimple_ranger::range_of_stmt): Use get_tree_range for non
6602         gimple_range_ssa_p names.
6604 2021-10-18  Uroš Bizjak  <ubizjak@gmail.com>
6606         PR target/102761
6607         * config/i386/i386.c (ix86_print_operand_address):
6608         Error out for non-address_operand asm operands.
6610 2021-10-18  Richard Biener  <rguenther@suse.de>
6612         * tree-vect-data-refs.c (vect_peeling_hash_insert): Do
6613         not auto-convert dr_alignment_support to bool.
6614         (vect_peeling_supportable): Likewise.
6615         (vect_enhance_data_refs_alignment): Likewise.
6616         (vect_supportable_dr_alignment): Commonize read/write case.
6617         * tree-vect-stmts.c (vect_get_store_cost): Use
6618         dr_alignment_support, not int, for the vect_supportable_dr_alignment
6619         result.
6620         (vect_get_load_cost): Likewise.
6622 2021-10-18  Siddhesh Poyarekar  <siddhesh@gotplt.org>
6624         * tree-object-size.c (object_sizes_execute): Consolidate LHS
6625         null check and do it early.
6627 2021-10-18  Richard Biener  <rguenther@suse.de>
6629         * tree-vect-stmts.c (vectorizable_store): Use the
6630         computed alignment scheme instead of querying
6631         aligned_access_p.
6633 2021-10-18  Richard Biener  <rguenther@suse.de>
6635         * tree-vect-stmts.c (vectorizable_store): Do not recompute
6636         alignment scheme already determined by get_load_store_type.
6638 2021-10-18  Aldy Hernandez  <aldyh@redhat.com>
6640         * tree-ssa-threadbackward.c (class pass_thread_jumps_full):
6641         Clone corresponding pass.
6643 2021-10-18  Roger Sayle  <roger@nextmovesoftware.com>
6645         * combine.c (recog_for_combine): For an unrecognized move/set of
6646         a constant, try force_const_mem to place it in the constant pool.
6647         * cse.c (constant_pool_entries_cost, constant_pool_entries_regcost):
6648         Delete global variables (that are no longer assigned a cost value).
6649         (cse_insn): Simplify logic for deciding whether to place a folded
6650         constant in the constant pool using force_const_mem.
6651         (cse_main): Remove zero initialization of constant_pool_entries_cost
6652         and constant_pool_entries_regcost.
6653         * config/i386/i386.c (ix86_rtx_costs): Make memory accesses
6654         fractionally more expensive, when optimizing for speed.
6656 2021-10-18  Martin Liska  <mliska@suse.cz>
6658         PR gcov-profile/102746
6659         PR gcov-profile/102747
6660         * gcov.c (main): Return return_code.
6661         (output_gcov_file): Mark return_code when error happens.
6662         (generate_results): Likewise.
6663         (read_graph_file): Likewise.
6664         (read_count_file): Likewise.
6666 2021-10-18  Roger Sayle  <roger@nextmovesoftware.com>
6668         * config/bfin/bfin.md (define_constants): Remove UNSPEC_ONES.
6669         (define_insn "ones"): Replace UNSPEC_ONES with a truncate of
6670         a popcount, allowing compile-time evaluation/simplification.
6671         (popcountsi2, popcounthi2): New expanders using a "ones" insn.
6673 2021-10-18  Richard Biener  <rguenther@suse.de>
6675         PR tree-optimization/102788
6676         * tree-vect-patterns.c (vect_init_pattern_stmt): Allow
6677         a NULL vectype.
6678         (vect_pattern_recog_1): Likewise.
6679         (vect_recog_bool_pattern): Continue matching the pattern
6680         even if we do not have a vector type for a conversion
6681         result.
6683 2021-10-18  Roger Sayle  <roger@nextmovesoftware.com>
6685         * simplify-rtx.c (simplify_const_unary_operation) [SS_NEG, SS_ABS]:
6686         Evalute SS_NEG and SS_ABS of a constant argument.
6688 2021-10-18  prathamesh.kulkarni  <prathamesh.kulkarni@linaro.org>
6690         PR target/93183
6691         * gimple-match-head.c (try_conditional_simplification): Add case for single operand.
6692         * internal-fn.def: Add entry for COND_NEG internal function.
6693         * internal-fn.c (FOR_EACH_CODE_MAPPING): Add entry for
6694         NEGATE_EXPR, COND_NEG mapping.
6695         * optabs.def: Add entry for cond_neg_optab.
6696         * match.pd (UNCOND_UNARY, COND_UNARY): New operator lists.
6697         (vec_cond COND (foo A) B) -> (IFN_COND_FOO COND A B): New pattern.
6698         (vec_cond COND B (foo A)) -> (IFN_COND_FOO ~COND A B): Likewise.
6700 2021-10-18  Aldy Hernandez  <aldyh@redhat.com>
6702         * tree-ssa-strlen.c (class strlen_pass): Rename from
6703         strlen_dom_walker.
6704         (handle_builtin_stxncpy_strncat): Move to strlen_pass.
6705         (handle_assign): Same.
6706         (adjust_last_stmt): Same.
6707         (maybe_warn_overflow): Same.
6708         (handle_builtin_strlen): Same.
6709         (handle_builtin_strchr): Same.
6710         (handle_builtin_strcpy): Same.
6711         (handle_builtin_strncat): Same.
6712         (handle_builtin_stxncpy_strncat): Same.
6713         (handle_builtin_memcpy): Same.
6714         (handle_builtin_strcat): Same.
6715         (handle_alloc_call): Same.
6716         (handle_builtin_memset): Same.
6717         (handle_builtin_memcmp): Same.
6718         (get_len_or_size): Same.
6719         (strxcmp_eqz_result): Same.
6720         (handle_builtin_string_cmp): Same.
6721         (handle_pointer_plus): Same.
6722         (count_nonzero_bytes_addr): Same.
6723         (count_nonzero_bytes): Same.
6724         (handle_store): Same.
6725         (strlen_check_and_optimize_call): Same.
6726         (handle_integral_assign): Same.
6727         (check_and_optimize_stmt): Same.
6728         (printf_strlen_execute): Rename strlen_dom_walker to strlen_pass.
6730 2021-10-18  Richard Biener  <rguenther@suse.de>
6732         PR tree-optimization/102798
6733         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
6734         Only copy points-to info to newly generated SSA names.
6736 2021-10-18  Martin Liska  <mliska@suse.cz>
6738         * dbgcnt.c (dbg_cnt_process_opt): Remove unused but set variable.
6739         * gcov.c (get_cycles_count): Likewise.
6740         * lto-compress.c (lto_compression_zlib): Likewise.
6741         (lto_uncompression_zlib): Likewise.
6742         * targhooks.c (default_pch_valid_p): Likewise.
6744 2021-10-17  Aldy Hernandez  <aldyh@redhat.com>
6746         * tree-pass.h (make_pass_thread_jumps_full): New.
6747         * tree-ssa-threadbackward.c (pass_thread_jumps::gate): Inline.
6748         (try_thread_blocks): Add resolve and speed arguments.
6749         (pass_thread_jumps::execute): Inline.
6750         (do_early_thread_jumps): New.
6751         (do_thread_jumps): New.
6752         (make_pass_thread_jumps): Move.
6753         (pass_early_thread_jumps::gate): Inline.
6754         (pass_early_thread_jumps::execute): Inline.
6755         (class pass_thread_jumps_full): New.
6757 2021-10-16  Piotr Kubaj  <pkubaj@FreeBSD.org>
6759         * configure.ac: Treat powerpc64*-*-freebsd* the same as
6760         powerpc64-*-freebsd*.
6761         * configure: Regenerate.
6763 2021-10-16  H.J. Lu  <hjl.tools@gmail.com>
6765         * value-query.cc (get_ssa_name_ptr_info_nonnull): Change
6766         set_ptr_nonull to set_ptr_nonnull in comments.
6768 2021-10-16  Jan Hubicka  <hubicka@ucw.cz>
6770         PR tree-optimization/102720
6771         * tree-ssa-structalias.c (compute_points_to_sets): Fix producing
6772         of call used and clobbered sets.
6774 2021-10-15  Iain Sandoe  <iain@sandoe.co.uk>
6776         * config/darwin.h (LINK_COMMAND_SPEC_A): Update 'r' handling to
6777         skip gomp and itm when r or nodefaultlibs is given.
6778         (DSYMUTIL_SPEC): Do not call dsymutil for '-r' link lines.
6779         Update ordering of exclusions, remove duplicate 'v' addition
6780         (collect2 will add this from the main command line).
6782 2021-10-15  Iain Sandoe  <iain@sandoe.co.uk>
6784         * config/darwin-driver.c (darwin_driver_init): Revise comments, handle
6785         filelist and framework options in specs instead of code.
6786         * config/darwin.h (SUBTARGET_DRIVER_SELF_SPECS): Update to handle link
6787         specs that are really driver ones.
6788         (DARWIN_CC1_SPEC): Likewise.
6789         (CPP_SPEC): Likewise.
6790         (SYSROOT_SPEC): Append space.
6791         (LINK_SYSROOT_SPEC): Remove most driver link specs.
6792         (STANDARD_STARTFILE_PREFIX_2): Update link-related specs.
6793         (STARTFILE_SPEC): Likewise.
6794         (ASM_MMACOSX_VERSION_MIN_SPEC): Fix line wrap.
6795         (ASM_SPEC): Update driver-related specs.
6796         (ASM_FINAL_SPEC): Likewise.
6797         * config/darwin.opt: Remove now unused option aliases.
6798         * config/i386/darwin.h (EXTRA_ASM_OPTS): Ensure space after opt.
6799         (ASM_SPEC): Update driver-related specs.
6801 2021-10-15  Roger Sayle  <roger@nextmovesoftware.com>
6803         * config/i386/i386.c (ix86_hardreg_mov_ok): For vector modes,
6804         allow standard_sse_constant_p immediate constants.
6806 2021-10-15  Iain Sandoe  <iain@sandoe.co.uk>
6808         * config.gcc: Add tm-dwarf2.h to tm_d-file.
6810 2021-10-15  Andrew MacLeod  <amacleod@redhat.com>
6812         * gimple-range-fold.h (gimple_range_ssa_p): Don't process names
6813         that occur in abnormal phis.
6814         * gimple-range.cc (gimple_ranger::range_on_edge): Return false for
6815         abnormal and EH edges.
6816         * gimple-ssa-evrp.c (rvrp_folder::value_of_expr): Ditto.
6817         (rvrp_folder::value_on_edge): Ditto.
6818         (rvrp_folder::value_of_stmt): Ditto.
6819         (hybrid_folder::value_of_expr): Ditto for ranger queries.
6820         (hybrid_folder::value_on_edge): Ditto.
6821         (hybrid_folder::value_of_stmt): Ditto.
6822         * value-query.cc (gimple_range_global): Always return a range if
6823         the type is supported.
6825 2021-10-15  John David Anglin  <danglin@gcc.gnu.org>
6827         * config/pa/pa.md: Consistently use "rG" constraint for copy
6828         instruction in move patterns.
6830 2021-10-15  Andrew Stubbs  <ams@codesourcery.com>
6832         * config/gcn/gcn-hsa.h (S_FIJI): Set unconditionally.
6833         (S_900): Likewise.
6834         (S_906): Likewise.
6835         * config/gcn/gcn.c: Hard code SRAM ECC settings for old architectures.
6836         * config/gcn/mkoffload.c (ELFABIVERSION_AMDGPU_HSA): Rename to ...
6837         (ELFABIVERSION_AMDGPU_HSA_V3): ... this.
6838         (ELFABIVERSION_AMDGPU_HSA_V4): New.
6839         (SET_SRAM_ECC_UNSUPPORTED): New.
6840         (copy_early_debug_info): Create elf flags to match the other objects.
6841         (main): Just let the attribute flags pass through.
6843 2021-10-15  Stefan Schulze Frielinghaus  <stefansf@linux.ibm.com>
6845         * tree-loop-distribution.c (reduction_var_overflows_first):
6846         Pass the type of reduction_var as first argument as it is also
6847         done for the load type.
6848         (loop_distribution::transform_reduction_loop): Add missing
6849         TREE_TYPE while determining precission of reduction_var.
6851 2021-10-15  Richard Biener  <rguenther@suse.de>
6853         * defaults.h (PREFERRED_DEBUGGING_TYPE): Choose DWARF2_DEBUG
6854         when not set.
6855         * toplev.c (process_options): Warn when STABS debugging is
6856         enabled but not the preferred format.
6857         * config/pa/som.h (PREFERRED_DEBUGGING_TYPE): Define to
6858         DBX_DEBUG.
6859         * config/pdp11/pdp11.h (PREFERRED_DEBUGGING_TYPE): Likewise.
6861 2021-10-15  Richard Biener  <rguenther@suse.de>
6863         PR ipa/102762
6864         * tree-inline.c (copy_bb): Avoid underflowing nargs.
6866 2021-10-15  Hongyu Wang  <hongyu.wang@intel.com>
6868         * config/i386/i386-expand.c (ix86_expand_vec_perm): Convert
6869         HFmode input operand to HImode.
6870         (ix86_vectorize_vec_perm_const): Likewise.
6871         * config/i386/sse.md (*avx512bw_permvar_truncv16siv16hi_1_hf):
6872         New define_insn.
6873         (*avx512f_permvar_truncv8siv8hi_1_hf):
6874         Likewise.
6876 2021-10-15  Richard Biener  <rguenther@suse.de>
6878         PR middle-end/102682
6879         * expmed.c (store_bit_field_1): Ensure a LHS subreg would
6880         not create a paradoxical subreg.
6882 2021-10-15  Hongyu Wang  <hongyu.wang@intel.com>
6884         * config/i386/i386-expand.c (ix86_expand_vector_init):
6885         For half_vector concat for HFmode, handle them like HImode.
6887 2021-10-14  Aldy Hernandez  <aldyh@redhat.com>
6889         * tree-ssa-threadbackward.c (class back_threader): Add m_resolve.
6890         (back_threader::back_threader): Same.
6891         (back_threader::resolve_phi): Try to solve without looking back if
6892         possible.
6893         (back_threader::find_paths_to_names): Same.
6894         (try_thread_blocks): Pass resolve argument to back threader.
6895         (pass_early_thread_jumps::execute): Same.
6897 2021-10-14  Aldy Hernandez  <aldyh@redhat.com>
6899         * doc/invoke.texi: Remove max-fsm-thread-length,
6900         max-fsm-thread-paths, and fsm-maximum-phi-arguments.
6901         * params.opt: Same.
6902         * tree-ssa-threadbackward.c (back_threader::back_threader): Remove
6903         argument.
6904         (back_threader_registry::back_threader_registry): Same.
6905         (back_threader_profitability::profitable_path_p): Remove
6906         param_max_fsm_thread-length.
6907         (back_threader_registry::register_path): Remove
6908         m_max_allowable_paths.
6910 2021-10-14  Aldy Hernandez  <aldyh@redhat.com>
6912         * tree-ssa-threadbackward.c (class back_threader): Make m_imports
6913         an auto_bitmap.
6914         (back_threader::~back_threader): Do not release m_path.
6916 2021-10-14  Andrew MacLeod  <amacleod@redhat.com>
6918         PR tree-optimization/102738
6919         * vr-values.c (simplify_using_ranges::simplify): Handle RSHIFT_EXPR.
6921 2021-10-14  Kwok Cheung Yeung  <kcy@codesourcery.com>
6923         * omp-general.c (omp_check_context_selector):  Move from c-omp.c.
6924         (omp_mark_declare_variant): Move from c-omp.c.
6925         (omp_context_name_list_prop): Update for Fortran strings.
6926         * omp-general.h (omp_check_context_selector): New prototype.
6927         (omp_mark_declare_variant): New prototype.
6929 2021-10-14  Richard Sandiford  <richard.sandiford@arm.com>
6931         * config/rs6000/rs6000.c (rs6000_density_test): Move early
6932         exit test further up the function.
6934 2021-10-14  Richard Sandiford  <richard.sandiford@arm.com>
6936         * config/arm/arm.c (arm_add_stmt_cost): Delete.
6937         (TARGET_VECTORIZE_ADD_STMT_COST): Delete.
6939 2021-10-14  Martin Jambor  <mjambor@suse.cz>
6941         * doc/invoke.texi (Optimize Options): Add entry for
6942         ipa-cp-recursive-freq-factor.
6944 2021-10-14  Tamar Christina  <tamar.christina@arm.com>
6946         * match.pd: New rule.
6948 2021-10-14  Jan Hubicka  <hubicka@ucw.cz>
6950         PR ipa/102557
6951         * ipa-modref-tree.h (modref_access_node::update2):
6952         Also check that parm_offset is unchanged.
6953         (modref_ref_node::insert_access): Fix updating of
6954         parameter.
6956 2021-10-14  Aldy Hernandez  <aldyh@redhat.com>
6958         * tree-ssa-threadbackward.c (back_threader::resolve_phi): Add
6959         FIXME note.
6961 2021-10-14  Richard Biener  <rguenther@suse.de>
6963         PR tree-optimization/102659
6964         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Also
6965         rewrite pointer typed undefined overflow operations.
6966         (predicate_statements): Likewise.  Make sure to emit invariant
6967         conversions in the preheader.
6968         * tree-vectorizer.c (vect_loop_vectorized_call): Look through
6969         non-empty preheaders.
6970         * tree-data-ref.c (dr_analyze_indices): Strip useless
6971         conversions to the MEM_REF base type.
6973 2021-10-14  Martin Liska  <mliska@suse.cz>
6975         * common.opt: Stop using AUTODETECT_VALUE
6976         and use EnabledBy where possible.
6977         * opts.c: Enable OPT_fvar_tracking with optimize >= 1.
6978         * toplev.c (AUTODETECT_VALUE): Remove macro.
6979         (process_options): Simplify by using EnabledBy and
6980         OPT_fvar_tracking.  Use OPTION_SET_P macro instead of
6981         AUTODETECT_VALUE.
6983 2021-10-14  Jonathan Wright  <jonathan.wright@arm.com>
6985         * config/aarch64/arm_neon.h (vld1_s8_x3): Use signed type for
6986         pointer parameter.
6987         (vld1_s32_x3): Likewise.
6989 2021-10-14  Aldy Hernandez  <aldyh@redhat.com>
6991         PR tree-optimization/102736
6992         PR tree-optimization/102736
6993         * gimple-range-path.cc (path_range_query::range_on_path_entry):
6994         Assert that the requested range is defined outside the path.
6995         (path_range_query::ssa_range_in_phi): Do not call
6996         range_on_path_entry for SSA names that are defined within the
6997         path.
6999 2021-10-14  Iain Sandoe  <iain@sandoe.co.uk>
7001         * config/darwin-driver.c (darwin_find_version_from_kernel):
7002         Quote internal identifiers and avoid contractions in
7003         warnings.
7004         (darwin_default_min_version): Likewise.
7005         (darwin_driver_init): Likewise.
7007 2021-10-14  Martin Jambor  <mjambor@suse.cz>
7009         * params.opt (ipa-cp-recursive-freq-factor): New.
7010         * ipa-cp.c (ipcp_value): Switch to inline initialization.  New members
7011         scc_no, self_recursion_generated_level, same_scc and
7012         self_recursion_generated_p.
7013         (ipcp_lattice::add_value): Replaced parameter unlimited with
7014         same_lat_gen_level, usit it determine limit of values and store it to
7015         the value.
7016         (ipcp_lattice<valtype>::print): Dump the new fileds.
7017         (allocate_and_init_ipcp_value): Take same_lat_gen_level as a new
7018         parameter and store it to the new value.
7019         (self_recursively_generated_p): Removed.
7020         (propagate_vals_across_arith_jfunc): Use self_recursion_generated_p
7021         instead of self_recursively_generated_p, store self generation level
7022         to such values.
7023         (value_topo_info<valtype>::add_val): Set scc_no.
7024         (value_topo_info<valtype>::propagate_effects): Multiply frequencies of
7025         recursively feeding values and self generated values by appropriate
7026         new factors.
7028 2021-10-14  Richard Sandiford  <richard.sandiford@arm.com>
7030         * config/aarch64/aarch64.c (aarch64_add_stmt_cost): Remove
7031         redundant test for flag_vect_cost_model.
7033 2021-10-14  Aldy Hernandez  <aldyh@redhat.com>
7035         * bitmap.c (debug): New overloaded function for auto_bitmaps.
7036         * bitmap.h (debug): Same.
7038 2021-10-14  Hongyu Wang  <hongyu.wang@intel.com>
7040         * config/i386/avx512fp16intrin.h (_mm512_mask_fcmadd_pch):
7041         Adjust builtin call.
7042         (_mm512_mask3_fcmadd_pch): Likewise.
7043         (_mm512_mask_fmadd_pch): Likewise
7044         (_mm512_mask3_fmadd_pch): Likewise
7045         (_mm512_mask_fcmadd_round_pch): Likewise
7046         (_mm512_mask3_fcmadd_round_pch): Likewise
7047         (_mm512_mask_fmadd_round_pch): Likewise
7048         (_mm512_mask3_fmadd_round_pch): Likewise
7049         (_mm_mask_fcmadd_sch): Likewise
7050         (_mm_mask3_fcmadd_sch): Likewise
7051         (_mm_mask_fmadd_sch): Likewise
7052         (_mm_mask3_fmadd_sch): Likewise
7053         (_mm_mask_fcmadd_round_sch): Likewise
7054         (_mm_mask3_fcmadd_round_sch): Likewise
7055         (_mm_mask_fmadd_round_sch): Likewise
7056         (_mm_mask3_fmadd_round_sch): Likewise
7057         (_mm_fcmadd_round_sch): Likewise
7058         * config/i386/avx512fp16vlintrin.h (_mm_mask_fmadd_pch):
7059         Adjust builtin call.
7060         (_mm_mask3_fmadd_pch): Likewise
7061         (_mm256_mask_fmadd_pch): Likewise
7062         (_mm256_mask3_fmadd_pch): Likewise
7063         (_mm_mask_fcmadd_pch): Likewise
7064         (_mm_mask3_fcmadd_pch): Likewise
7065         (_mm256_mask_fcmadd_pch): Likewise
7066         (_mm256_mask3_fcmadd_pch): Likewise
7067         * config/i386/i386-builtin.def: Add mask3 builtin for complex
7068         fma, and adjust mask_builtin to corresponding expander.
7069         * config/i386/i386-expand.c (ix86_expand_round_builtin):
7070         Skip eraseing embedded rounding for expanders that emits
7071         multiple insns.
7072         * config/i386/sse.md (complexmove): New mode_attr.
7073         (<avx512>_fmaddc_<mode>_mask1<round_expand_name>): New expander.
7074         (<avx512>_fcmaddc_<mode>_mask1<round_expand_name>): Likewise.
7075         (avx512fp16_fmaddcsh_v8hf_mask1<round_expand_name>): Likewise.
7076         (avx512fp16_fcmaddcsh_v8hf_mask1<round_expand_name>): Likewise.
7077         (avx512fp16_fcmaddcsh_v8hf_mask3<round_expand_name>): Likewise.
7078         (avx512fp16_fmaddcsh_v8hf_mask3<round_expand_name>): Likewise.
7079         * config/i386/subst.md (round_embedded_complex): New subst.
7081 2021-10-14  John David Anglin  <danglin@gcc.gnu.org>
7083         * config/pa/pa.md (cbranchsf4): Disable if TARGET_SOFT_FLOAT.
7084         (cbranchdf4): Likewise.
7085         Add missing move patterns for TARGET_SOFT_FLOAT.
7087 2021-10-13  Roger Sayle  <roger@nextmovesoftware.com>
7089         * config/i386/i386-expand.c (ix86_expand_vector_move):  Use a
7090         pseudo intermediate when moving a SUBREG into a hard register,
7091         by checking ix86_hardreg_mov_ok.
7092         (ix86_expand_vector_extract): Store zero-extended SImode
7093         intermediate in a pseudo, then set target using a SUBREG_PROMOTED
7094         annotated subreg.
7095         * config/i386/sse.md (mov<VMOVE>_internal): Prevent CSE creating
7096         complex (SUBREG) sets of (vector) hard registers before reload, by
7097         checking ix86_hardreg_mov_ok.
7099 2021-10-13  Indu Bhagat  <indu.bhagat@oracle.com>
7101         * ctfc.h (enum ctf_dtu_d_union_enum): Remove redundant comma.
7103 2021-10-13  Indu Bhagat  <indu.bhagat@oracle.com>
7105         * dwarf2ctf.c (gen_ctf_array_type): Fix typo in comment.
7107 2021-10-13  Martin Sebor  <msebor@redhat.com>
7109         PR middle-end/102630
7110         * pointer-query.cc (compute_objsize_r): Handle named address spaces.
7112 2021-10-13  Iain Sandoe  <iain@sandoe.co.uk>
7114         * collect2.c (is_lto_object_file): Release simple-object
7115         resources, close files.
7117 2021-10-13  Andre Vieira  <andre.simoesdiasvieira@arm.com>
7119         * config/arm/arm.c (thumb2_legitimate_address_p): Use VALID_MVE_MODE
7120         when checking mve addressing modes.
7121         (mve_vector_mem_operand): Fix the way we handle pre, post and offset
7122         addressing modes.
7123         (arm_print_operand): Fix printing of POST_ and PRE_MODIFY.
7124         * config/arm/mve.md: Use mve_memory_operand predicate everywhere where
7125         there is a single Ux constraint.
7127 2021-10-13  John David Anglin  <danglin@gcc.gnu.org>
7129         * config/pa/pa.md (muldi3): Add support for inlining 64-bit
7130         multiplication on 32-bit PA 1.1 and 2.0 targets.
7132 2021-10-13  Martin Liska  <mliska@suse.cz>
7134         PR gcov-profile/90364
7135         * coverage.c (build_info): Emit checksum to the global variable.
7136         (build_info_type): Add new field for checksum.
7137         (coverage_obj_finish): Pass object_checksum.
7138         (coverage_init): Use 0 as checksum for .gcno files.
7139         * gcov-dump.c (dump_gcov_file): Dump also new checksum field.
7140         * gcov.c (read_graph_file): Read also checksum.
7141         * doc/invoke.texi: Document the behaviour change.
7143 2021-10-13  Richard Biener  <rguenther@suse.de>
7145         * gimple-iterator.h (gsi_iterator_update): Add GSI_LAST_NEW_STMT,
7146         start at integer value 2.
7147         * gimple-iterator.c (gsi_insert_seq_nodes_before): Update
7148         the iterator for GSI_LAST_NEW_STMT.
7149         (gsi_insert_seq_nodes_after): Likewise.
7150         * tree-if-conv.c (predicate_statements): Use GSI_LAST_NEW_STMT.
7151         * tree-ssa.c (execute_update_addresses_taken): Correct bogus
7152         arguments to gsi_replace.
7154 2021-10-13  Martin Liska  <mliska@suse.cz>
7156         PR target/102688
7157         * common.opt: Use EnabledBy instead of detection in
7158         finish_options and process_options.
7159         * opts.c (finish_options): Remove handling of
7160         x_flag_unroll_all_loops.
7161         * toplev.c (process_options): Likewise for flag_web and
7162         flag_rename_registers.
7164 2021-10-13  Richard Biener  <rguenther@suse.de>
7166         PR tree-optimization/102659
7167         * tree-if-conv.c (need_to_rewrite_undefined): New flag.
7168         (if_convertible_gimple_assign_stmt_p): Mark the loop for
7169         rewrite when stmts with undefined behavior on integer
7170         overflow appear.
7171         (combine_blocks): Predicate also when we need to rewrite stmts.
7172         (predicate_statements): Rewrite affected stmts to something
7173         with well-defined behavior on overflow.
7174         (tree_if_conversion): Initialize need_to_rewrite_undefined.
7176 2021-10-13  Richard Biener  <rguenther@suse.de>
7178         PR ipa/102714
7179         * ipa-sra.c (ptr_parm_has_nonarg_uses): Fix volatileness
7180         check.
7182 2021-10-13  Jose E. Marchesi  <jose.marchesi@oracle.com>
7184         * dwarf2ctf.c: Fix typo in comment.
7186 2021-10-12  Bill Schmidt  <wschmidt@linux.ibm.com>
7188         PR target/101985
7189         * config/rs6000/altivec.h (vec_cpsgn): Swap operand order.
7190         * config/rs6000/rs6000-overload.def (VEC_COPYSIGN): Use SKIP to
7191         avoid generating an automatic #define of vec_cpsgn.  Use the
7192         correct built-in for V4SFmode that doesn't depend on VSX.
7194 2021-10-12  Uroš Bizjak  <ubizjak@gmail.com>
7196         PR target/85730
7197         PR target/82524
7198         * config/i386/i386.md (*add<mode>_1_slp): Rewrite as
7199         define_insn_and_split pattern.  Add alternative 1 and split it
7200         post reload to insert operand 1 into the low part of operand 0.
7201         (*sub<mode>_1_slp): Ditto.
7202         (*and<mode>_1_slp): Ditto.
7203         (*<any_or:code><mode>_1_slp): Ditto.
7204         (*ashl<mode>3_1_slp): Ditto.
7205         (*<any_shiftrt:insn><mode>3_1_slp): Ditto.
7206         (*<any_rotate:insn><mode>3_1_slp): Ditto.
7207         (*neg<mode>_1_slp): New insn_and_split pattern.
7208         (*one_cmpl<mode>_1_slp): Ditto.
7210 2021-10-12  David Edelsohn  <dje.gcc@gmail.com>
7212         * doc/install.texi: Update MinGW and mingw-64 Binaries
7213         download links.
7215 2021-10-12  Daniel Le Duc Khoi Nguyen  <greenrecyclebin@gmail.com>
7217         * doc/extend.texi (Common Variable Attributes): Fix typos in
7218         alloc_size documentation.
7220 2021-10-12  Richard Biener  <rguenther@suse.de>
7222         PR tree-optimization/102696
7223         * tree-vect-slp.c (vect_build_slp_tree_2): Properly mark
7224         the tree fatally failed when we reject a BIT_FIELD_REF.
7226 2021-10-12  Richard Biener  <rguenther@suse.de>
7228         PR tree-optimization/102572
7229         * tree-vect-stmts.c (vect_build_gather_load_calls): When
7230         gathering the vectorized defs for the mask pass in the
7231         desired mask vector type so invariants will be handled
7232         correctly.
7234 2021-10-12  Tamar Christina  <tamar.christina@arm.com>
7236         * config/aarch64/aarch64-sve.md (*fcm<cmp_op><mode>_bic_combine,
7237         *fcm<cmp_op><mode>_nor_combine, *fcmuo<mode>_bic_combine,
7238         *fcmuo<mode>_nor_combine): New.
7240 2021-10-12  Eric Botcazou  <ebotcazou@adacore.com>
7242         PR target/102588
7243         * config/sparc/sparc-modes.def (OI): New integer mode.
7245 2021-10-12  Jakub Jelinek  <jakub@redhat.com>
7247         * gimple-fold.h (clear_padding_type_may_have_padding_p): Declare.
7248         * gimple-fold.c (clear_padding_type_may_have_padding_p): No longer
7249         static.
7251 2021-10-12  Jakub Jelinek  <jakub@redhat.com>
7253         * tree-vectorizer.h (loop_cost_model): New function.
7254         (unlimited_cost_model): Use it.
7255         * tree-vect-loop.c (vect_analyze_loop_costing): Use loop_cost_model
7256         call instead of flag_vect_cost_model.
7257         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
7258         (vect_prune_runtime_alias_test_list): Likewise.  Also use it instead
7259         of flag_simd_cost_model.
7261 2021-10-12  liuhongt  <hongtao.liu@intel.com>
7263         PR target/102483
7264         * config/i386/i386-expand.c (emit_reduc_half): Handle
7265         V4QImode.
7266         * config/i386/mmx.md (reduc_<code>_scal_v4qi): New expander.
7267         (reduc_plus_scal_v4qi): Ditto.
7269 2021-10-12  Paul A. Clarke  <pc@us.ibm.com>
7271         * config/rs6000/smmintrin.h (_mm_cmpeq_epi64, _mm_cmpgt_epi64,
7272         _mm_mullo_epi32, _mm_mul_epi32, _mm_packus_epi32): New.
7273         * config/rs6000/nmmintrin.h: Copy from i386, tweak to suit.
7275 2021-10-12  Paul A. Clarke  <pc@us.ibm.com>
7277         * config/rs6000/smmintrin.h (_mm_cvtepi8_epi16, _mm_cvtepi8_epi32,
7278         _mm_cvtepi8_epi64, _mm_cvtepi16_epi32, _mm_cvtepi16_epi64,
7279         _mm_cvtepi32_epi64, _mm_cvtepu8_epi16, _mm_cvtepu8_epi32,
7280         _mm_cvtepu8_epi64, _mm_cvtepu16_epi32, _mm_cvtepu16_epi64,
7281         _mm_cvtepu32_epi64): New.
7283 2021-10-12  Paul A. Clarke  <pc@us.ibm.com>
7285         * config/rs6000/smmintrin.h (_mm_test_all_zeros,
7286         _mm_test_all_ones, _mm_test_mix_ones_zeros): Rewrite as macro.
7288 2021-10-12  Paul A. Clarke  <pc@us.ibm.com>
7290         * config/rs6000/smmintrin.h (_mm_min_epi8, _mm_min_epu16,
7291         _mm_min_epi32, _mm_min_epu32, _mm_max_epi8, _mm_max_epu16,
7292         _mm_max_epi32, _mm_max_epu32): New.
7294 2021-10-11  Jan Hubicka  <hubicka@ucw.cz>
7296         * ipa-modref-tree.h (struct modref_access_node): Revert
7297         accidental change.
7298         (struct modref_ref_node): Likewise.
7300 2021-10-11  Jan Hubicka  <hubicka@ucw.cz>
7302         * ipa-modref-tree.h (modref_tree::global_access_p): New member
7303         function.
7304         * ipa-modref.c:
7305         (implicint_const_eaf_flags,implicit_pure_eaf_flags,
7306         ignore_stores_eaf_flags): Move to ipa-modref.h
7307         (remove_useless_eaf_flags): Remove early exit on NOCLOBBER.
7308         (modref_summary::global_memory_read_p): New member function.
7309         (modref_summary::global_memory_written_p): New member function.
7310         * ipa-modref.h (modref_summary::global_memory_read_p,
7311         modref_summary::global_memory_written_p): Declare.
7312         (implicint_const_eaf_flags,implicit_pure_eaf_flags,
7313         ignore_stores_eaf_flags): move here.
7314         * tree-ssa-structalias.c: Include ipa-modref-tree.h, ipa-modref.h
7315         and attr-fnspec.h.
7316         (handle_rhs_call): Rewrite.
7317         (handle_call_arg): New function.
7318         (determine_global_memory_access): New function.
7319         (handle_const_call): Remove
7320         (handle_pure_call): Remove
7321         (find_func_aliases_for_call): Update use of handle_rhs_call.
7322         (compute_points_to_sets): Handle global memory acccesses
7323         selectively
7325 2021-10-11  Diane Meirowitz  <diane.meirowitz@oracle.com>
7327         * doc/invoke.texi: Add link to UndefinedBehaviorSanitizer
7328         documentation, mention UBSAN_OPTIONS, similar to what is done
7329         for AddressSanitizer.
7331 2021-10-11  Richard Biener  <rguenther@suse.de>
7333         PR middle-end/102683
7334         * internal-fn.c (expand_DEFERRED_INIT): Check for mode
7335         availability before building an integer type for storage
7336         purposes.
7338 2021-10-11  Richard Biener  <rguenther@suse.de>
7340         PR middle-end/101480
7341         * gimple.c (gimple_call_fnspec): Do not mark operator new/delete
7342         as const.
7344 2021-10-11  Martin Liska  <mliska@suse.cz>
7346         * common.opt: Remove Init(2) for some options.
7347         * toplev.c (process_options): Do not use AUTODETECT_VALUE, but
7348         use rather OPTION_SET_P.
7350 2021-10-11  Martin Liska  <mliska@suse.cz>
7352         * common.opt: Remove usage of IRA_REGION_AUTODETECT.
7353         * flag-types.h (enum ira_region): Likewise.
7354         * toplev.c (process_options): Use OPTION_SET_P instead of
7355         IRA_REGION_AUTODETECT.
7357 2021-10-11  Jakub Jelinek  <jakub@redhat.com>
7359         * omp-low.c (omp_runtime_api_call): Handle omp_get_max_teams,
7360         omp_[sg]et_teams_thread_limit and omp_set_num_teams.
7362 2021-10-11  Stefan Schulze Frielinghaus  <stefansf@linux.ibm.com>
7364         * config/s390/s390-protos.h (s390_rawmemchr): Add prototype.
7365         * config/s390/s390.c (s390_rawmemchr): New function.
7366         * config/s390/s390.md (rawmemchr<SINT:mode>): New expander.
7367         * config/s390/vector.md (@vec_vfees<mode>): Basically a copy of
7368         the pattern vfees<mode> from vx-builtins.md.
7369         * config/s390/vx-builtins.md (*vfees<mode>): Remove.
7371 2021-10-11  Stefan Schulze Frielinghaus  <stefansf@linux.ibm.com>
7373         * builtins.c (get_memory_rtx): Change to external linkage.
7374         * builtins.h (get_memory_rtx): Add function prototype.
7375         * doc/md.texi (rawmemchr<mode>): Document.
7376         * internal-fn.c (expand_RAWMEMCHR): Define.
7377         * internal-fn.def (RAWMEMCHR): Add.
7378         * optabs.def (rawmemchr_optab): Add.
7379         * tree-loop-distribution.c (find_single_drs): Change return code
7380         behaviour by also returning true if no single store was found
7381         but a single load.
7382         (loop_distribution::classify_partition): Respect the new return
7383         code behaviour of function find_single_drs.
7384         (loop_distribution::execute): Call new function
7385         transform_reduction_loop in order to replace rawmemchr or strlen
7386         like loops by calls into builtins.
7387         (generate_reduction_builtin_1): New function.
7388         (generate_rawmemchr_builtin): New function.
7389         (generate_strlen_builtin_1): New function.
7390         (generate_strlen_builtin): New function.
7391         (generate_strlen_builtin_using_rawmemchr): New function.
7392         (reduction_var_overflows_first): New function.
7393         (determine_reduction_stmt_1): New function.
7394         (determine_reduction_stmt): New function.
7395         (loop_distribution::transform_reduction_loop): New function.
7397 2021-10-11  Martin Liska  <mliska@suse.cz>
7399         * tree.c (cl_option_hasher::hash): Use cl_optimization_hash
7400         and remove legacy hashing code.
7402 2021-10-11  Kito Cheng  <kito.cheng@sifive.com>
7404         PR target/100316
7405         * builtins.c (maybe_emit_call_builtin___clear_cache): Allow
7406         CONST_INT for BEGIN and END, and use gcc_assert rather than
7407         error.
7409 2021-10-10  Jakub Jelinek  <jakub@redhat.com>
7411         PR debug/102441
7412         * var-tracking.c (add_stores): For cselib_sp_derived_value_p values
7413         use MO_VAL_SET if loc is not sp.
7415 2021-10-10  Andrew Pinski  <apinski@marvell.com>
7417         PR tree-optimization/102622
7418         * match.pd: Swap the order of a?pow2cst:0 and a?-1:0 transformations.
7419         Swap the order of a?0:pow2cst and a?0:-1 transformations.
7421 2021-10-09  liuhongt  <hongtao.liu@intel.com>
7423         PR target/102639
7424         * config/i386/i386-expand.c (ix86_valid_mask_cmp_mode): Handle
7425         HFmode.
7426         (ix86_use_mask_cmp_p): Ditto.
7427         (ix86_expand_sse_movcc): Ditto.
7428         * config/i386/i386.md (setcc_hf_mask): New define_insn.
7429         (movhf_mask): Ditto.
7430         (UNSPEC_MOVCC_MASK): New unspec.
7431         * config/i386/sse.md (UNSPEC_PCMP): Move to i386.md.
7433 2021-10-08  Vladimir N. Makarov  <vmakarov@redhat.com>
7435         PR rtl-optimization/102627
7436         * lra-constraints.c (split_reg): Use at least natural mode of hard reg.
7438 2021-10-08  Aldy Hernandez  <aldyh@redhat.com>
7440         * gimple-range-cache.cc (non_null_ref::non_null_deref_p): Grow
7441         bitmap if needed.
7443 2021-10-08  Aldy Hernandez  <aldyh@redhat.com>
7445         * value-range.cc (irange::debug): New.
7446         * value-range.h (irange::debug): New.
7448 2021-10-08  Richard Sandiford  <richard.sandiford@arm.com>
7450         PR tree-optimization/102385
7451         * predict.h (change_edge_frequency): Declare.
7452         * predict.c (change_edge_frequency): New function.
7453         * tree-ssa-loop-manip.h (tree_transform_and_unroll_loop): Remove
7454         edge argument.
7455         (tree_unroll_loop): Likewise.
7456         * gimple-loop-jam.c (tree_loop_unroll_and_jam): Update accordingly.
7457         * tree-predcom.c (pcom_worker::tree_predictive_commoning_loop):
7458         Likewise.
7459         * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Likewise.
7460         * tree-ssa-loop-manip.c (tree_unroll_loop): Likewise.
7461         (tree_transform_and_unroll_loop): Likewise.  Use single_dom_exit
7462         to retrieve the exit edges.  Make all the old profile update code
7463         conditional on !single_loop_p -- the case it was written for --
7464         and use a different approach for the single-loop case.
7466 2021-10-08  Martin Liska  <mliska@suse.cz>
7468         * config/alpha/alpha.c (alpha_option_override): Use new macro
7469         OPTION_SET_P.
7470         * config/arc/arc.c (arc_override_options): Likewise.
7471         * config/arm/arm.c (arm_option_override): Likewise.
7472         * config/bfin/bfin.c (bfin_load_pic_reg): Likewise.
7473         * config/c6x/c6x.c (c6x_option_override): Likewise.
7474         * config/csky/csky.c: Likewise.
7475         * config/darwin.c (darwin_override_options): Likewise.
7476         * config/frv/frv.c (frv_option_override): Likewise.
7477         * config/i386/djgpp.h: Likewise.
7478         * config/i386/i386.c (ix86_stack_protect_guard): Likewise.
7479         (ix86_max_noce_ifcvt_seq_cost): Likewise.
7480         * config/ia64/ia64.c (ia64_option_override): Likewise.
7481         (ia64_override_options_after_change): Likewise.
7482         * config/m32c/m32c.c (m32c_option_override): Likewise.
7483         * config/m32r/m32r.c (m32r_init): Likewise.
7484         * config/m68k/m68k.c (m68k_option_override): Likewise.
7485         * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
7486         * config/mips/mips.c (mips_option_override): Likewise.
7487         * config/nios2/nios2.c (nios2_option_override): Likewise.
7488         * config/nvptx/nvptx.c (nvptx_option_override): Likewise.
7489         * config/pa/pa.c (pa_option_override): Likewise.
7490         * config/riscv/riscv.c (riscv_option_override): Likewise.
7491         * config/rs6000/aix71.h: Likewise.
7492         * config/rs6000/aix72.h: Likewise.
7493         * config/rs6000/aix73.h: Likewise.
7494         * config/rs6000/rs6000.c (darwin_rs6000_override_options): Likewise.
7495         (rs6000_override_options_after_change): Likewise.
7496         (rs6000_linux64_override_options): Likewise.
7497         (glibc_supports_ieee_128bit): Likewise.
7498         (rs6000_option_override_internal): Likewise.
7499         (rs6000_file_start): Likewise.
7500         (rs6000_darwin_file_start): Likewise.
7501         * config/rs6000/rtems.h: Likewise.
7502         * config/rs6000/sysv4.h: Likewise.
7503         * config/rs6000/vxworks.h (SUB3TARGET_OVERRIDE_OPTIONS): Likewise.
7504         * config/s390/s390.c (s390_option_override): Likewise.
7505         * config/sh/linux.h: Likewise.
7506         * config/sh/netbsd-elf.h (while): Likewise.
7507         * config/sh/sh.c (sh_option_override): Likewise.
7508         * config/sol2.c (solaris_override_options): Likewise.
7509         * config/sparc/sparc.c (sparc_option_override): Likewise.
7510         * config/tilegx/tilegx.c (tilegx_option_override): Likewise.
7511         * config/visium/visium.c (visium_option_override): Likewise.
7512         * config/vxworks.c (vxworks_override_options): Likewise.
7513         * lto-opts.c (lto_write_options): Likewise.
7514         * omp-expand.c (expand_omp_simd): Likewise.
7515         * omp-general.c (omp_max_vf): Likewise.
7516         * omp-offload.c (oacc_xform_loop): Likewise.
7517         * opts.h (OPTION_SET_P): Likewise.
7518         * targhooks.c (default_max_noce_ifcvt_seq_cost): Likewise.
7519         * toplev.c (process_options): Likewise.
7520         * tree-predcom.c: Likewise.
7521         * tree-sra.c (analyze_all_variable_accesses): Likewise.
7523 2021-10-08  liuhongt  <hongtao.liu@intel.com>
7525         PR target/102464
7526         * config/i386/i386.c (ix86_optab_supported_p):
7527         Return true for HFmode.
7528         * match.pd: Simplify (_Float16) ceil ((double) x) to
7529         __builtin_ceilf16 (a) when a is _Float16 type and
7530         direct_internal_fn_supported_p.
7532 2021-10-08  liuhongt  <hongtao.liu@intel.com>
7534         PR target/102494
7535         * config/i386/i386-expand.c (emit_reduc_half): Hanlde V4HImode.
7536         * config/i386/mmx.md (reduc_plus_scal_v4hi): New.
7537         (reduc_<code>_scal_v4hi): New.
7539 2021-10-08  liuhongt  <hongtao.liu@intel.com>
7541         * common.opt (ftree-vectorize): Add Var(flag_tree_vectorize).
7542         * doc/invoke.texi (Options That Control Optimization): Update
7543         documents.
7544         * opts.c (default_options_table): Enable auto-vectorization at
7545         O2 with very-cheap cost model.
7546         (finish_options): Use cheap cost model for
7547         explicit -ftree{,-loop}-vectorize.
7549 2021-10-07  Indu Bhagat  <indu.bhagat@oracle.com>
7551         * ctfc.c (ctfc_delete_container): Free hash table contents.
7553 2021-10-07  Indu Bhagat  <indu.bhagat@oracle.com>
7555         * toplev.c (process_options): Do not warn for GNU GIMPLE.
7557 2021-10-07  Siddhesh Poyarekar  <siddhesh@gotplt.org>
7559         * tree-object-size.c (addr_object_size,
7560         compute_builtin_object_size): Drop PDECL and POFF arguments.
7561         (addr_object_size): Adjust calls.
7562         * tree-object-size.h (compute_builtin_object_size): Drop PDECL
7563         and POFF arguments.
7565 2021-10-07  Roger Sayle  <roger@nextmovesoftware.com>
7567         * rtl.def (SMUL_HIGHPART, UMUL_HIGHPART): New RTX codes for
7568         representing signed and unsigned high-part multiplication resp.
7569         * simplify-rtx.c (simplify_binary_operation_1) [SMUL_HIGHPART,
7570         UMUL_HIGHPART]: Simplify high-part multiplications by zero.
7571         [SS_PLUS, US_PLUS, SS_MINUS, US_MINUS, SS_MULT, US_MULT,
7572         SS_DIV, US_DIV]: Similar simplifications for saturating
7573         arithmetic.
7574         (simplify_const_binary_operation) [SS_PLUS, US_PLUS, SS_MINUS,
7575         US_MINUS, SS_MULT, US_MULT, SMUL_HIGHPART, UMUL_HIGHPART]:
7576         Implement compile-time evaluation for constant operands.
7577         * dwarf2out.c (mem_loc_descriptor): Skip SMUL_HIGHPART and
7578         UMUL_HIGHPART.
7579         * doc/rtl.texi (smul_highpart, umul_highpart): Document RTX codes.
7580         * doc/md.texi (smul@var{m}3_highpart, umul@var{m3}_highpart):
7581         Mention the new smul_highpart and umul_highpart RTX codes.
7582         * doc/invoke.texi: Silence @xref "compilation" warnings.
7584 2021-10-07  Martin Jambor  <mjambor@suse.cz>
7586         PR ipa/102388
7587         * ipa-prop.c (ipa_edge_args_sum_t::duplicate): Also handle the
7588         case when the source reference description corresponds to a
7589         referance taken in a function src->caller is inlined to.
7591 2021-10-07  Jan Hubicka  <hubicka@ucw.cz>
7593         PR ipa/102581
7594         * ipa-modref-tree.h (modref_access_node::contains_p): Handle offsets
7595         better.
7596         (modref_access_node::try_merge_with): Add sanity check that there
7597         are no redundant entries in the list.
7599 2021-10-07  Richard Biener  <rguenther@suse.de>
7601         PR tree-optimization/102608
7602         * tree-ssa-sccvn.c (visit_stmt): Drop .DEFERRED_INIT to
7603         varying.
7605 2021-10-07  Martin Liska  <mliska@suse.cz>
7607         * toplev.c (toplev::main): Make
7608         save_opt_decoded_options a pointer type
7609         * toplev.h: Likewise.
7611 2021-10-07  Andrew Stubbs  <ams@codesourcery.com>
7613         * config/gcn/gcn-valu.md (gather<mode>_insn_2offsets<exec>): Apply
7614         HAVE_GCN_ASM_GLOBAL_LOAD_FIXED.
7615         (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
7617 2021-10-07  Andrew Stubbs  <ams@codesourcery.com>
7619         * config/gcn/gcn-hsa.h (SRAMOPT): Include the whole option string.
7620         Adjust for new -msram-ecc=any behaviour.
7621         (ASM_SPEC): Adjust -mxnack and -msram-ecc usage.
7622         * config/gcn/gcn.c (output_file_start): Implement -msram-ecc=any.
7623         * config/gcn/mkoffload.c (EF_AMDGPU_XNACK): Rename to ...
7624         (EF_AMDGPU_XNACK_V3): ... this.
7625         (EF_AMDGPU_SRAM_ECC): Rename to ...
7626         (EF_AMDGPU_SRAM_ECC_V3): ... this.
7627         (EF_AMDGPU_FEATURE_XNACK_V4): New.
7628         (EF_AMDGPU_FEATURE_XNACK_UNSUPPORTED_V4): New.
7629         (EF_AMDGPU_FEATURE_XNACK_ANY_V4): New.
7630         (EF_AMDGPU_FEATURE_XNACK_OFF_V4): New.
7631         (EF_AMDGPU_FEATURE_XNACK_ON_V4): New.
7632         (EF_AMDGPU_FEATURE_SRAMECC_V4): New.
7633         (EF_AMDGPU_FEATURE_SRAMECC_UNSUPPORTED_V4): New.
7634         (EF_AMDGPU_FEATURE_SRAMECC_ANY_V4): New.
7635         (EF_AMDGPU_FEATURE_SRAMECC_OFF_V4): New.
7636         (EF_AMDGPU_FEATURE_SRAMECC_ON_V4): New.
7637         (SET_XNACK_ON): New.
7638         (SET_XNACK_OFF): New.
7639         (TEST_XNACK): New.
7640         (SET_SRAM_ECC_ON): New.
7641         (SET_SRAM_ECC_ANY): New.
7642         (SET_SRAM_ECC_OFF): New.
7643         (TEST_SRAM_ECC_ANY): New.
7644         (TEST_SRAM_ECC_ON): New.
7645         (main): Implement HSACOv4 and -msram-ecc=any.
7647 2021-10-07  Andrew Stubbs  <ams@codesourcery.com>
7649         * config.in: Regenerate.
7650         * config/gcn/gcn-hsa.h (X_FIJI): New macro.
7651         (X_900): New macro.
7652         (X_906): New macro.
7653         (X_908): New macro.
7654         (A_FIJI): Rename to ...
7655         (S_FIJI): ... this.
7656         (A_900): Rename to ...
7657         (S_900): ... this.
7658         (A_906): Rename to ...
7659         (S_906): ... this.
7660         (A_908): Rename to ...
7661         (S_908): ... this.
7662         (SRAMOPT): New macro.
7663         (ASM_SPEC): Adjust xnack option usage.
7664         * config/gcn/gcn.c (output_file_start): Adjust amdgcn_target usage.
7665         * configure: Regenerate.
7666         * configure.ac: Detect LLVM assembler dialect.
7668 2021-10-07  Richard Biener  <rguenther@suse.de>
7670         * tree-pretty-print.c (dump_generic_node): Do not elide
7671         printing '&' when dumping with -gimple.
7673 2021-10-06  Andrew MacLeod  <amacleod@redhat.com>
7675         * gimple-range-cache.cc (non_null_ref::adjust_range): Call new
7676         intersect routine.
7677         * gimple-range-fold.cc (adjust_pointer_diff_expr): Ditto.
7678         (adjust_imagpart_expr): Ditto.
7679         * value-range.cc (irange::irange_intersect): Call new routine if
7680         RHS is a single pair.
7681         (irange::intersect): New wide_int version.
7682         * value-range.h (class irange): New prototype.
7684 2021-10-06  Andrew MacLeod  <amacleod@redhat.com>
7686         * gimple-range-edge.cc (gimple_outgoing_range::gimple_outgoing_range):
7687         Add parameter to limit size when recognizing switches.
7688         (gimple_outgoing_range::edge_range_p): Check size limit.
7689         * gimple-range-edge.h (gimple_outgoing_range): Add size field.
7690         * gimple-range-gori.cc (gori_map::calculate_gori): Ignore switches
7691         that exceed the size limit.
7692         (gori_compute::gori_compute): Add initializer.
7693         * params.opt (evrp-switch-limit): New.
7694         * doc/invoke.texi: Update docs.
7696 2021-10-06  Andrew MacLeod  <amacleod@redhat.com>
7698         * value-range.h (irange::set_varying): Use TYPE_MIN_VALUE and
7699         TYPE_MAX_VALUE instead of creating new trees when possible.
7701 2021-10-06  Andrew MacLeod  <amacleod@redhat.com>
7703         * gimple-range-cache.cc (non_null_ref::adjust_range): Check for
7704         zero and non-zero more efficently.
7706 2021-10-06  Richard Biener  <rguenther@suse.de>
7708         PR c/102605
7709         * dumpfile.h (TDF_GIMPLE_VAL): New.
7710         (dump_flag): Re-order and adjust TDF_* flags.  Make
7711         the enum uint32_t.  Use std::underlying_type in the
7712         operator overloads.
7713         (optgroup_flag): Likewise for the operator overloads.
7714         * tree-pretty-print.c (dump_generic_node): Wrap ADDR_EXPR
7715         in _Literal if TDF_GIMPLE_VAL.
7716         * gimple-pretty-print.c (dump_gimple_assign): Add
7717         TDF_GIMPLE_VAL to flags when dumping operands where only
7718         is_gimple_val are allowed.
7719         (dump_gimple_cond): Likewise.
7721 2021-10-06  prathamesh.kulkarni  <prathamesh.kulkarni@linaro.org>
7723         * gimple-isel.cc (gimple_expand_vec_cond_expr): Remove redundant if
7724         condition.
7726 2021-10-05  qing zhao  <qing.zhao@oracle.com>
7728         PR middle-end/102359
7729         * gimplify.c (gimplify_decl_expr): Not add initialization for an
7730         auto variable when it has been initialized by frontend.
7732 2021-10-05  Aldy Hernandez  <aldyh@redhat.com>
7734         * tree-ssa-threadupdate.c (jt_path_registry::cancel_invalid_paths):
7735         Loosen restrictions
7737 2021-10-05  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
7739         * common/config/avr/avr-common.c (avr_handle_option): Mark
7740         argument as ATTRIBUTE_UNUSED.
7742 2021-10-05  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
7744         * config/lm32/uclinux-elf.h (LINK_GCC_C_SEQUENCE_SPEC):
7745         Undefine before redefinition.
7747 2021-10-05  Richard Biener  <rguenther@suse.de>
7749         * toplev.c (no_backend): Remove global var.
7750         (process_options): Pass in no_backend, move post_options
7751         langhook call to toplev::main.
7752         (do_compile): Pass in no_backend, move process_options call
7753         to toplev::main.
7754         (toplev::run_self_tests): Check no_backend at the caller.
7755         (toplev::main): Call post_options and process_options
7756         split out from do_compile, do self-tests only if
7757         no_backend is initialized.
7759 2021-10-05  Richard Biener  <rguenther@suse.de>
7761         * tree-cfg.c (dump_function_to_file): Dump the UID of the
7762         function as part of the name when requested.
7763         * tree-pretty-print.c (dump_function_name): Dump the UID when
7764         requested and the langhook produced the actual name.
7766 2021-10-05  Richard Biener  <rguenther@suse.de>
7768         PR middle-end/102587
7769         PR middle-end/102285
7770         * internal-fn.c (expand_DEFERRED_INIT): Fall back to
7771         zero-initialization as last resort, use the constant
7772         size as given by the DEFERRED_INIT argument to build
7773         the initializer.
7775 2021-10-04  Marek Polacek  <polacek@redhat.com>
7777         PR c++/97573
7778         * doc/invoke.texi: Document -Warray-compare.
7780 2021-10-04  Richard Biener  <rguenther@suse.de>
7782         * gimplify.c (is_var_need_auto_init): DECL_HARD_REGISTER
7783         variables are not to be initialized.
7785 2021-10-04  Richard Biener  <rguenther@suse.de>
7787         * expr.h (non_mem_decl_p): Declare.
7788         (mem_ref_refers_to_non_mem_p): Likewise.
7789         * expr.c (non_mem_decl_p): Export.
7790         (mem_ref_refers_to_non_mem_p): Likewise.
7791         * internal-fn.c (expand_DEFERRED_INIT): Do not expand the LHS
7792         but check the base with mem_ref_refers_to_non_mem_p
7793         and non_mem_decl_p.
7795 2021-10-04  Richard Biener  <rguenther@suse.de>
7797         PR tree-optimization/102570
7798         * tree-ssa-sccvn.h (vn_reference_op_struct): Document
7799         we are using clique for the internal function code.
7800         * tree-ssa-sccvn.c (vn_reference_op_eq): Compare the
7801         internal function code.
7802         (print_vn_reference_ops): Print the internal function code.
7803         (vn_reference_op_compute_hash): Hash it.
7804         (copy_reference_ops_from_call): Record it.
7805         (visit_stmt): Remove the restriction around internal function
7806         calls.
7807         (fully_constant_vn_reference_p): Use fold_const_call and handle
7808         internal functions.
7809         (vn_reference_eq): Compare call return types.
7810         * tree-ssa-pre.c (create_expression_by_pieces): Handle
7811         generating calls to internal functions.
7812         (compute_avail): Remove the restriction around internal function
7813         calls.
7815 2021-10-04  Aldy Hernandez  <aldyh@redhat.com>
7817         PR tree-optimization/102560
7818         * gimple-ssa-warn-alloca.c (alloca_call_type): Remove static
7819         marker for invalid_range.
7821 2021-10-04  Richard Biener  <rguenther@suse.de>
7823         PR middle-end/102587
7824         * internal-fn.c (expand_DEFERRED_INIT): Guard register
7825         initialization path an avoid initializing VLA registers
7826         with it.
7828 2021-10-04  Eric Botcazou  <ebotcazou@adacore.com>
7830         * config/rs6000/vxworks.h (TARGET_INIT_LIBFUNCS): Delete.
7832 2021-10-03  Martin Liska  <mliska@suse.cz>
7834         * toplev.c (toplev::main): Check opt_index if it is a part
7835         of cl_options.
7837 2021-10-02  Aldy Hernandez  <aldyh@redhat.com>
7839         PR tree-optimization/102563
7840         * range-op.cc (operator_lshift::op1_range): Do not clobber
7841         range.
7843 2021-10-02  Martin Liska  <mliska@suse.cz>
7845         * toplev.c (toplev::main): save_decoded_options[0] is program
7846         name and so it should be skipped.
7848 2021-10-01  Aldy Hernandez  <aldyh@redhat.com>
7850         PR tree-optimization/102546
7851         * range-op.cc (operator_lshift::op1_range): Teach range-ops that
7852         X << Y is non-zero implies X is also non-zero.
7854 2021-10-01  Przemyslaw Wirkus  <przemyslaw.wirkus@arm.com>
7856         * config/aarch64/aarch64-cores.def (AARCH64_CORE): New
7857         Cortex-X2 core.
7858         * config/aarch64/aarch64-tune.md: Regenerate.
7859         * doc/invoke.texi: Update docs.
7861 2021-10-01  Przemyslaw Wirkus  <przemyslaw.wirkus@arm.com>
7863         * config/aarch64/aarch64-cores.def (AARCH64_CORE): New
7864         Cortex-A710 core.
7865         * config/aarch64/aarch64-tune.md: Regenerate.
7866         * doc/invoke.texi: Update docs.
7868 2021-10-01  Przemyslaw Wirkus  <przemyslaw.wirkus@arm.com>
7870         * config/aarch64/aarch64-cores.def (AARCH64_CORE): New
7871         Cortex-A510 core.
7872         * config/aarch64/aarch64-tune.md: Regenerate.
7873         * doc/invoke.texi: Update docs.
7875 2021-10-01  Martin Sebor  <msebor@redhat.com>
7877         PR c/102103
7878         * doc/invoke.texi (-Waddress): Update.
7879         * gengtype.c (write_types): Avoid -Waddress.
7880         * poly-int.h (POLY_SET_COEFF): Avoid using null.
7882 2021-10-01  John David Anglin  <danglin@gcc.gnu.org>
7884         PR debug/102373
7885         * config/pa/pa.c (pa_option_override): Default to dwarf version 4
7886         on hppa64-hpux.
7888 2021-10-01  Przemyslaw Wirkus  <przemyslaw.wirkus@arm.com>
7890         * config/aarch64/aarch64.h (AARCH64_FL_V9): Update value.
7892 2021-10-01  Aldy Hernandez  <aldyh@redhat.com>
7894         * gimple-range-path.cc (path_range_query::compute_ranges): Use
7895         get_path_oracle.
7896         * gimple-range-path.h (class path_range_query): Remove shadowed
7897         m_oracle field.
7898         (path_range_query::get_path_oracle): New.
7900 2021-10-01  Jakub Jelinek  <jakub@redhat.com>
7901             Richard Biener  <rguenther@suse.de>
7903         PR sanitizer/102515
7904         * doc/invoke.texi (-fsanitize=integer-divide-by-zero): Remove
7905         INT_MIN / -1 division detection from here ...
7906         (-fsanitize=signed-integer-overflow): ... and add it here.
7908 2021-10-01  Przemyslaw Wirkus  <przemyslaw.wirkus@arm.com>
7910         * config/aarch64/aarch64-arches.def (AARCH64_ARCH): Added
7911         armv9-a.
7912         * config/aarch64/aarch64.h (AARCH64_FL_V9): New.
7913         (AARCH64_FL_FOR_ARCH9): New flags for Armv9-A.
7914         (AARCH64_ISA_V9): New ISA flag.
7915         * doc/invoke.texi: Update docs.
7917 2021-10-01  Martin Liska  <mliska@suse.cz>
7919         * toplev.c (toplev::main): Save decoded optimization options.
7920         * toplev.h (save_opt_decoded_options): New.
7921         * doc/extend.texi: Be more clear about optimize and target
7922         attributes.
7924 2021-10-01  Eric Botcazou  <ebotcazou@adacore.com>
7926         * explow.c: Include langhooks.h.
7927         (set_stack_check_libfunc): Build a proper function type.
7929 2021-10-01  Eric Botcazou  <ebotcazou@adacore.com>
7931         PR c++/64697
7932         * config/i386/i386.c (legitimate_pic_address_disp_p): For PE-COFF do
7933         not return true for external weak function symbols in medium model.
7935 2021-10-01  Jakub Jelinek  <jakub@redhat.com>
7937         * tree.h (OMP_CLAUSE_ORDER_REPRODUCIBLE): Define.
7938         * tree-pretty-print.c (dump_omp_clause) <case OMP_CLAUSE_ORDER>: Print
7939         reproducible: for OMP_CLAUSE_ORDER_REPRODUCIBLE.
7940         * omp-general.c (omp_extract_for_data): If OMP_CLAUSE_ORDER is seen
7941         without OMP_CLAUSE_ORDER_UNCONSTRAINED, overwrite sched_kind to
7942         OMP_CLAUSE_SCHEDULE_STATIC.
7944 2021-10-01  Richard Biener  <rguenther@suse.de>
7946         PR middle-end/102518
7947         * tree-inline.c (setup_one_parameter): Avoid substituting
7948         an invariant into contexts where a GIMPLE register is not valid.
7950 2021-09-30  Przemyslaw Wirkus  <przemyslaw.wirkus@arm.com>
7952         * config/arm/arm-cpus.in: Add Cortex-R52+ CPU.
7953         * config/arm/arm-tables.opt: Regenerate.
7954         * config/arm/arm-tune.md: Regenerate.
7955         * doc/invoke.texi: Update docs.
7957 2021-09-30  Uroš Bizjak  <ubizjak@gmail.com>
7959         PR target/89954
7960         * config/i386/i386.md
7961         (sign_extend:WIDE (any_logic:NARROW (memory, immediate)) splitters):
7962         New splitters.
7964 2021-09-30  Tobias Burnus  <tobias@codesourcery.com>
7966         * omp-low.c (omp_runtime_api_call): Add omp_aligned_{,c}alloc and
7967         omp_{c,re}alloc, fix omp_alloc/omp_free.
7969 2021-09-30  Martin Liska  <mliska@suse.cz>
7971         * defaults.h (ASM_OUTPUT_ASCII): Do not hide global variable
7972         asm_out_file and stream directly to MYFILE.
7974 2021-09-30  Richard Biener  <rguenther@suse.de>
7976         * tree-vect-data-refs.c (vect_update_misalignment_for_peel):
7977         Restore and fix condition under which we apply npeel to
7978         the DRs misalignment value.
7980 2021-09-30  Richard Biener  <rguenther@suse.de>
7982         * tree-vect-data-refs.c (vect_update_misalignment_for_peel):
7983         Fix npeel check for variable amount of peeling.
7985 2021-09-30  Aldy Hernandez  <aldyh@redhat.com>
7987         * lto-wrapper.c (run_gcc): Plug snprintf overflow.
7989 2021-09-30  Aldy Hernandez  <aldyh@redhat.com>
7991         * gimple-range.cc (gimple_ranger::debug): New.
7992         * gimple-range.h (class gimple_ranger): Add debug.
7994 2021-09-30  Aldy Hernandez  <aldyh@redhat.com>
7996         PR middle-end/102519
7997         * tree-vrp.c (hybrid_threader::~hybrid_threader): Free m_query.
7999 2021-09-29  Indu Bhagat  <indu.bhagat@oracle.com>
8001         PR debug/102507
8002         * btfout.c (GTY): Add GTY (()) albeit for cosmetic only purpose.
8003         (btf_finalize): Empty the hash_map btf_var_ids.
8005 2021-09-29  Aldy Hernandez  <aldyh@redhat.com>
8007         * tree-vrp.c (thread_through_all_blocks): Return bool.
8008         (execute_vrp_threader): Return TODO_* flags.
8009         (pass_data_vrp_threader): Set todo_flags_finish to 0.
8011 2021-09-29  Aldy Hernandez  <aldyh@redhat.com>
8013         * timevar.def (TV_TREE_VRP_THREADER): New.
8014         * tree-vrp.c: Use TV_TREE_VRP_THREADER for VRP threader pass.
8016 2021-09-29  David Faust  <david.faust@oracle.com>
8018         * config.gcc (bpf-*-*): Do not overwrite extra_headers.
8020 2021-09-29  Jonathan Wright  <jonathan.wright@arm.com>
8022         * config/aarch64/aarch64-builtins.c (TYPES_BINOP_PPU): Define
8023         new type qualifier enum.
8024         (TYPES_TERNOP_SSSU): Likewise.
8025         (TYPES_TERNOP_PPPU): Likewise.
8026         * config/aarch64/aarch64-simd-builtins.def: Define PPU, SSU,
8027         PPPU and SSSU builtin generator macros for qtbl1 and qtbx1
8028         Neon builtins.
8029         * config/aarch64/arm_neon.h (vqtbl1_p8): Use type-qualified
8030         builtin and remove casts.
8031         (vqtbl1_s8): Likewise.
8032         (vqtbl1q_p8): Likewise.
8033         (vqtbl1q_s8): Likewise.
8034         (vqtbx1_s8): Likewise.
8035         (vqtbx1_p8): Likewise.
8036         (vqtbx1q_s8): Likewise.
8037         (vqtbx1q_p8): Likewise.
8038         (vtbl1_p8): Likewise.
8039         (vtbl2_p8): Likewise.
8040         (vtbx2_p8): Likewise.
8042 2021-09-29  Richard Biener  <rguenther@suse.de>
8044         * tree-vect-data-refs.c (vect_dr_misalign_for_aligned_access):
8045         New helper.
8046         (vect_update_misalignment_for_peel): Use it to update
8047         misaligned to the value necessary for an aligned access.
8048         (vect_get_peeling_costs_all_drs): Likewise.
8049         (vect_enhance_data_refs_alignment): Likewise.
8051 2021-09-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8053         * config/aarch64/aarch64.c (aarch64_expand_cpymem): Count number of
8054         emitted operations and adjust heuristic for code size.
8056 2021-09-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8058         * config/aarch64/aarch64.c (aarch64_expand_setmem): Count number of
8059         emitted operations and adjust heuristic for code size.
8061 2021-09-29  Jakub Jelinek  <jakub@redhat.com>
8063         PR middle-end/102504
8064         * gimplify.c (gimplify_scan_omp_clauses): Use omp_check_private even
8065         in OMP_SCOPE clauses, not just on worksharing construct clauses.
8067 2021-09-28  Geng Qi  <gengqi@linux.alibaba.com>
8069         * config/riscv/riscv.md (mulv<mode>4): Call gen_smul<mode>3_highpart.
8070         (<u>mulditi3): Call <su>muldi3_highpart.
8071         (<u>muldi3_highpart): Rename to <su>muldi3_highpart.
8072         (<u>mulsidi3): Call <su>mulsi3_highpart.
8073         (<u>mulsi3_highpart): Rename to <su>mulsi3_highpart.
8075 2021-09-28  Iain Sandoe  <iain@sandoe.co.uk>
8077         * config/darwin.h (DSYMUTIL_SPEC): Recognize D sources.
8079 2021-09-28  Iain Sandoe  <iain@sandoe.co.uk>
8081         * config/rs6000/darwin.h (FIXED_R13): Add for PPC64.
8082         (FIRST_SAVED_GP_REGNO): Save from R13 even when it is one
8083         of the fixed regs.
8085 2021-09-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8087         * config/aarch64/aarch64.h (AARCH64_FL_LS64): Define
8088         (AARCH64_FL_V8_7): Likewise.
8089         (AARCH64_FL_FOR_ARCH8_7): Likewise.
8090         * config/aarch64/aarch64-arches.def (armv8.7-a): Define.
8091         * config/aarch64/aarch64-option-extensions.def (ls64): Define.
8092         * doc/invoke.texi: Document the above.
8094 2021-09-28  Aldy Hernandez  <aldyh@redhat.com>
8096         * dbgcnt.c (dbg_cnt_counter): New.
8097         * dbgcnt.h (dbg_cnt_counter): New.
8098         * dumpfile.c (dump_options): Add entry for TDF_THREADING.
8099         * dumpfile.h (enum dump_flag): Add TDF_THREADING.
8100         * gimple-range-path.cc (DEBUG_SOLVER): Use TDF_THREADING.
8101         * tree-ssa-threadupdate.c (dump_jump_thread_path): Dump out
8102         debug counter.
8104 2021-09-28  Aldy Hernandez  <aldyh@redhat.com>
8106         * cfgcleanup.c (pass_jump::execute): Check
8107         flag_expensive_optimizations.
8108         (pass_jump_after_combine::gate): Same.
8109         * doc/invoke.texi (-fthread-jumps): Enable for -O1.
8110         * opts.c (default_options_table): Enable -fthread-jumps at -O1.
8111         * tree-ssa-threadupdate.c
8112         (fwd_jt_path_registry::remove_jump_threads_including): Bail unless
8113         flag_thread_jumps.
8115 2021-09-28  Ilya Leoshkevich  <iii@linux.ibm.com>
8117         * tree-ssa-reassoc.c (biased_names): New global.
8118         (propagate_bias_p): New function.
8119         (loop_carried_phi): Remove.
8120         (propagate_rank): Propagate bias along single uses.
8121         (get_rank): Update biased_names when needed.
8123 2021-09-28  Ilya Leoshkevich  <iii@linux.ibm.com>
8125         * passes.def (pass_reassoc): Rename parameter to early_p.
8126         * tree-ssa-reassoc.c (reassoc_bias_loop_carried_phi_ranks_p):
8127         New variable.
8128         (phi_rank): Don't bias loop-carried phi ranks
8129         before vectorization pass.
8130         (execute_reassoc): Add bias_loop_carried_phi_ranks_p parameter.
8131         (pass_reassoc::pass_reassoc): Add bias_loop_carried_phi_ranks_p
8132         initializer.
8133         (pass_reassoc::set_param): Set bias_loop_carried_phi_ranks_p
8134         value.
8135         (pass_reassoc::execute): Pass bias_loop_carried_phi_ranks_p to
8136         execute_reassoc.
8137         (pass_reassoc::bias_loop_carried_phi_ranks_p): New member.
8139 2021-09-28  Jakub Jelinek  <jakub@redhat.com>
8141         PR target/102498
8142         * config/i386/i386.c (standard_80387_constant_p): Don't recognize
8143         special 80387 instruction XFmode constants if flag_rounding_math.
8145 2021-09-28  Richard Biener  <rguenther@suse.de>
8147         PR tree-optimization/100112
8148         * tree-ssa-sccvn.c (visit_reference_op_load): Record the
8149         referece into the hashtable twice in case last_vuse is
8150         different from the original vuse on the stmt.
8152 2021-09-28  Jakub Jelinek  <jakub@redhat.com>
8154         PR middle-end/102492
8155         * gimplify.c (gimplify_adjust_omp_clauses_1): Don't call the
8156         omp_finish_clause langhook on implicitly added OMP_CLAUSE_PRIVATE
8157         clauses on SIMD constructs.
8159 2021-09-28  Aldy Hernandez  <aldyh@redhat.com>
8161         PR tree-optimization/102511
8162         * gimple-range-path.cc (path_range_query::range_on_path_entry):
8163         Return VARYING when nothing found.
8165 2021-09-28  Hongyu Wang  <hongyu.wang@intel.com>
8167         PR target/102230
8168         * config/i386/i386.h (VALID_AVX512FP16_REG_MODE): Add
8169         V2HF mode check.
8170         (VALID_SSE2_REG_VHF_MODE): Add V4HFmode and V2HFmode.
8171         (VALID_MMX_REG_MODE): Add V4HFmode.
8172         (SSE_REG_MODE_P): Replace VALID_AVX512FP16_REG_MODE with
8173         vector mode condition.
8174         * config/i386/i386.c (classify_argument): Parse V4HF/V2HF
8175         via sse regs.
8176         (function_arg_32): Add V4HFmode.
8177         (function_arg_advance_32): Likewise.
8178         * config/i386/i386.md (mode): Add V4HF/V2HF.
8179         (MODE_SIZE): Likewise.
8180         * config/i386/mmx.md (MMXMODE): Add V4HF mode.
8181         (V_32): Add V2HF mode.
8182         (VHF_32_64): New mode iterator.
8183         (*mov<mode>_internal): Adjust sse alternatives to support
8184         V4HF mode move.
8185         (*mov<mode>_internal): Adjust sse alternatives to support
8186         V2HF mode move.
8187         (<insn><mode>3): New define_insn for add/sub/mul/div.
8189 2021-09-28  Aldy Hernandez  <aldyh@redhat.com>
8191         * tree-ssa-threadbackward.c (pass_thread_jumps::gate): Check
8192         flag_thread_jumps.
8193         (pass_early_thread_jumps::gate): Same.
8194         * tree-ssa-threadedge.c (jump_threader::thread_outgoing_edges):
8195         Return if !flag_thread_jumps.
8196         * tree-ssa-threadupdate.c
8197         (jt_path_registry::register_jump_thread): Assert that
8198         flag_thread_jumps is true.
8200 2021-09-28  liuhongt  <hongtao.liu@intel.com>
8202         * simplify-rtx.c
8203         (simplify_context::simplify_binary_operation_1): Relax
8204         condition of simplifying (vec_concat:M (vec_select op0
8205         index0)(vec_select op1 index1)) to allow different modes
8206         between op0 and M, but have same inner mode.
8208 2021-09-28  liuhongt  <hongtao.liu@intel.com>
8210         * config/i386/i386-expand.c (emit_reduc_half): Handle
8211         V8HF/V16HF/V32HFmode.
8212         * config/i386/sse.md (REDUC_SSE_PLUS_MODE): Add V8HF.
8213         (REDUC_SSE_SMINMAX_MODE): Ditto.
8214         (REDUC_PLUS_MODE): Add V16HF and V32HF.
8215         (REDUC_SMINMAX_MODE): Ditto.
8217 2021-09-27  Aldy Hernandez  <aldyh@redhat.com>
8219         * gimple-range-path.cc
8220         (path_range_query::precompute_ranges_in_block): Rename to...
8221         (path_range_query::compute_ranges_in_block): ...this.
8222         (path_range_query::precompute_ranges): Rename to...
8223         (path_range_query::compute_ranges): ...this.
8224         (path_range_query::precompute_relations): Rename to...
8225         (path_range_query::compute_relations): ...this.
8226         (path_range_query::precompute_phi_relations): Rename to...
8227         (path_range_query::compute_phi_relations): ...this.
8228         * gimple-range-path.h: Rename precompute* to compute*.
8229         * tree-ssa-threadbackward.c
8230         (back_threader::find_taken_edge_switch): Same.
8231         (back_threader::find_taken_edge_cond): Same.
8232         * tree-ssa-threadedge.c
8233         (hybrid_jt_simplifier::compute_ranges_from_state): Same.
8234         (hybrid_jt_state::register_equivs_stmt): Inline...
8235         * tree-ssa-threadedge.h: ...here.
8237 2021-09-27  Aldy Hernandez  <aldyh@redhat.com>
8239         * tree-vrp.c (lhs_of_dominating_assert): Remove.
8240         (class vrp_jt_state): Remove.
8241         (class vrp_jt_simplifier): Remove.
8242         (vrp_jt_simplifier::simplify): Remove.
8243         (class vrp_jump_threader): Remove.
8244         (vrp_jump_threader::vrp_jump_threader): Remove.
8245         (vrp_jump_threader::~vrp_jump_threader): Remove.
8246         (vrp_jump_threader::before_dom_children): Remove.
8247         (vrp_jump_threader::after_dom_children): Remove.
8249 2021-09-27  Aldy Hernandez  <aldyh@redhat.com>
8251         * passes.def (pass_vrp_threader): New.
8252         * tree-pass.h (make_pass_vrp_threader): Add make_pass_vrp_threader.
8253         * tree-ssa-threadedge.c (hybrid_jt_state::register_equivs_stmt): New.
8254         (hybrid_jt_simplifier::hybrid_jt_simplifier): New.
8255         (hybrid_jt_simplifier::simplify): New.
8256         (hybrid_jt_simplifier::compute_ranges_from_state): New.
8257         * tree-ssa-threadedge.h (class hybrid_jt_state): New.
8258         (class hybrid_jt_simplifier): New.
8259         * tree-vrp.c (execute_vrp): Remove ASSERT_EXPR based jump
8260         threader.
8261         (class hybrid_threader): New.
8262         (hybrid_threader::hybrid_threader): New.
8263         (hybrid_threader::~hybrid_threader): New.
8264         (hybrid_threader::before_dom_children): New.
8265         (hybrid_threader::after_dom_children): New.
8266         (execute_vrp_threader): New.
8267         (class pass_vrp_threader): New.
8268         (make_pass_vrp_threader): New.
8270 2021-09-27  Martin Liska  <mliska@suse.cz>
8272         * output.h (enum section_flag): New.
8273         (SECTION_FORGET): Remove.
8274         (SECTION_ENTSIZE): Make it (1UL << 8) - 1.
8275         (SECTION_STYLE_MASK): Define it based on other enum
8276         values.
8277         * varasm.c (switch_to_section): Remove unused handling of
8278         SECTION_FORGET.
8280 2021-09-27  Martin Liska  <mliska@suse.cz>
8282         * common.opt: Add new variable flag_default_complex_method.
8283         * opts.c (finish_options): Handle flags related to
8284           x_flag_complex_method.
8285         * toplev.c (process_options): Remove option handling related
8286         to flag_complex_method.
8288 2021-09-27  Richard Biener  <rguenther@suse.de>
8290         PR middle-end/102450
8291         * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid using
8292         type_for_size, instead use int_mode_for_size.
8294 2021-09-27  Andrew Pinski  <apinski@marvell.com>
8296         PR c/94726
8297         * gimplify.c (gimplify_save_expr): Return early
8298         if the type of val is error_mark_node.
8300 2021-09-27  Aldy Hernandez  <aldyh@redhat.com>
8302         * tree-ssanames.c (ssa_name_has_boolean_range): Use
8303         get_range_query.
8305 2021-09-27  Aldy Hernandez  <aldyh@redhat.com>
8307         * gimple-ssa-evrp-analyze.h (class evrp_range_analyzer): Remove
8308         vrp_visit_cond_stmt.
8309         * tree-ssa-dom.c (cprop_operand): Convert to range_query API.
8310         (cprop_into_stmt): Same.
8311         (dom_opt_dom_walker::optimize_stmt): Same.
8313 2021-09-27  Richard Biener  <rguenther@suse.de>
8315         PR tree-optimization/97351
8316         PR tree-optimization/97352
8317         PR tree-optimization/82426
8318         * tree-vectorizer.h (dr_misalignment): Add vector type
8319         argument.
8320         (aligned_access_p): Likewise.
8321         (known_alignment_for_access_p): Likewise.
8322         (vect_supportable_dr_alignment): Likewise.
8323         (vect_known_alignment_in_bytes): Likewise.  Refactor.
8324         (DR_MISALIGNMENT): Remove.
8325         (vect_update_shared_vectype): Likewise.
8326         * tree-vect-data-refs.c (dr_misalignment): Refactor, handle
8327         a vector type with larger alignment requirement and apply
8328         the negative step adjustment here.
8329         (vect_calculate_target_alignment): Remove.
8330         (vect_compute_data_ref_alignment): Get explicit vector type
8331         argument, do not apply a negative step alignment adjustment
8332         here.
8333         (vect_slp_analyze_node_alignment): Re-analyze alignment
8334         when we re-visit the DR with a bigger desired alignment but
8335         keep more precise results from smaller alignments.
8336         * tree-vect-slp.c (vect_update_shared_vectype): Remove.
8337         (vect_slp_analyze_node_operations_1): Do not update the
8338         shared vector type on stmts.
8339         * tree-vect-stmts.c (vect_analyze_stmt): Push/pop the
8340         vector type of an SLP node to the representative stmt-info.
8341         (vect_transform_stmt): Likewise.
8343 2021-09-27  liuhongt  <hongtao.liu@intel.com>
8345         Revert:
8346         2021-09-09  liuhongt  <hongtao.liu@intel.com>
8348         PR target/101059
8349         * config/i386/sse.md (reduc_plus_scal_<mode>): Split to ..
8350         (reduc_plus_scal_v4sf): .. this, New define_expand.
8351         (reduc_plus_scal_v2df): .. and this, New define_expand.
8353 2021-09-26  liuhongt  <hongtao.liu@intel.com>
8355         * doc/extend.texi (Half-Precision): Remove storage only
8356         description for _Float16 w/o avx512fp16.
8358 2021-09-25  Dimitar Dimitrov  <dimitar@dinux.eu>
8360         * config/pru/constraints.md (Rrio): New constraint.
8361         * config/pru/predicates.md (regio_operand): New predicate.
8362         * config/pru/pru-pragma.c (pru_register_pragmas): Register
8363         the __regio_symbol address space.
8364         * config/pru/pru-protos.h (pru_symref2ioregno): Declaration.
8365         * config/pru/pru.c (pru_symref2ioregno): New helper function.
8366         (pru_legitimate_address_p): Remove.
8367         (pru_addr_space_legitimate_address_p): Use the address space
8368         aware hook variant.
8369         (pru_nongeneric_pointer_addrspace): New helper function.
8370         (pru_insert_attributes): New function to validate __regio_symbol
8371         usage.
8372         (TARGET_INSERT_ATTRIBUTES): New macro.
8373         (TARGET_LEGITIMATE_ADDRESS_P): Remove.
8374         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): New macro.
8375         * config/pru/pru.h (enum reg_class): Add REGIO_REGS class.
8376         * config/pru/pru.md (*regio_readsi): New pattern to read I/O
8377         registers.
8378         (*regio_nozext_writesi): New pattern to write to I/O registers.
8379         (*regio_zext_write_r30<EQS0:mode>): Ditto.
8380         * doc/extend.texi: Document the new PRU Named Address Space.
8382 2021-09-24  Patrick Palka  <ppalka@redhat.com>
8384         PR c++/98216
8385         PR c++/91292
8386         * real.c (encode_ieee_double): Avoid unwanted sign extension.
8387         (encode_ieee_quad): Likewise.
8389 2021-09-24  Vladimir Makarov  <vmakarov@redhat.com>
8391         PR rtl-optimization/102147
8392         * ira-build.c (ira_conflict_vector_profitable_p): Make
8393         profitability calculation independent of host compiler pointer and
8394         IRA_INT_BITS sizes.
8396 2021-09-24  Aldy Hernandez  <aldyh@redhat.com>
8398         * gimple-range-path.cc (path_range_query::path_range_query):
8399         Move debugging header...
8400         (path_range_query::precompute_ranges): ...here.
8401         (path_range_query::internal_range_of_expr): Do not call
8402         range_on_path_entry if NAME is defined in the current block.
8404 2021-09-24  Richard Biener  <rguenther@suse.de>
8406         * cfghooks.c (verify_flow_info): Verify unallocated BB and
8407         edge flags are not set.
8409 2021-09-24  Aldy Hernandez  <aldyh@redhat.com>
8411         * tree-ssa-threadupdate.c (jt_path_registry::cancel_invalid_paths):
8412         New.
8413         (jt_path_registry::register_jump_thread): Call
8414         cancel_invalid_paths.
8415         * tree-ssa-threadupdate.h (class jt_path_registry): Add
8416         cancel_invalid_paths.
8418 2021-09-24  Feng Xue  <fxue@os.amperecomputing.com>
8420         PR tree-optimization/102400
8421         * tree-ssa-sccvn.c (vn_reference_insert_pieces): Initialize
8422         result_vdef to zero value.
8424 2021-09-24  Feng Xue  <fxue@os.amperecomputing.com>
8426         PR tree-optimization/102451
8427         * tree-ssa-dse.c (delete_dead_or_redundant_call): Record bb of stmt
8428         before removal.
8430 2021-09-24  Hongyu Wang  <hongyu.wang@intel.com>
8432         * config/i386/sse.md (cond_<insn><mode>): Extend to support
8433         vector HFmodes.
8434         (cond_mul<mode>): Likewise.
8435         (cond_div<mode>): Likewise.
8436         (cond_<code><mode>): Likewise.
8437         (cond_fma<mode>): Likewise.
8438         (cond_fms<mode>): Likewise.
8439         (cond_fnma<mode>): Likewise.
8440         (cond_fnms<mode>): Likewise.
8442 2021-09-23  Andrew MacLeod  <amacleod@redhat.com>
8444         PR tree-optimization/102463
8445         * gimple-range-fold.cc (fold_using_range::relation_fold_and_or): If
8446         there is no range-ops handler, don't look for a relation.
8448 2021-09-23  Andrew MacLeod  <amacleod@redhat.com>
8450         * gimple-range-cache.cc (ranger_cache::ranger_cache): Take
8451         non-executable_edge flag as parameter.
8452         * gimple-range-cache.h (ranger_cache): Adjust prototype.
8453         * gimple-range-gori.cc (gori_compute::gori_compute): Take
8454         non-executable_edge flag as parameter.
8455         (gori_compute::outgoing_edge_range_p): Check new flag.
8456         * gimple-range-gori.h (gori_compute): Adjust prototype.
8457         * gimple-range.cc (gimple_ranger::gimple_ranger): Create new flag.
8458         (gimple_ranger::range_on_edge): Check new flag.
8459         * gimple-range.h (gimple_ranger::non_executable_edge_flag): New.
8460         * gimple-ssa-evrp.c (rvrp_folder): Pass ranger flag to simplifer.
8461         (hybrid_folder::hybrid_folder): Set ranger non-executable flag value.
8462         (hybrid_folder::fold_stmt): Set flag value in the simplifer.
8463         * vr-values.c (simplify_using_ranges::set_and_propagate_unexecutable):
8464         Use not_executable flag if provided inmstead of EDGE_EXECUTABLE.
8465         (simplify_using_ranges::simplify_switch_using_ranges): Clear
8466         EDGE_EXECUTABLE like it originally did.
8467         (simplify_using_ranges::cleanup_edges_and_switches): Clear any
8468         NON_EXECUTABLE flags.
8469         (simplify_using_ranges::simplify_using_ranges): Adjust.
8470         * vr-values.h (class simplify_using_ranges): Adjust.
8471         (simplify_using_ranges::set_range_query): Add non-executable flag param.
8473 2021-09-23  Bill Schmidt  <wschmidt@linux.ibm.com>
8475         PR target/102024
8476         * config/rs6000/rs6000-call.c (rs6000_aggregate_candidate): Detect
8477         zero-width bit fields and return indicator.
8478         (rs6000_discover_homogeneous_aggregate): Diagnose when the
8479         presence of a zero-width bit field changes parameter passing in
8480         GCC 12.
8482 2021-09-23  Aldy Hernandez  <aldyh@redhat.com>
8484         * gimple-range-fold.cc (fold_using_range::range_of_phi):
8485         Remove dominator check.
8487 2021-09-23  Aldy Hernandez  <aldyh@redhat.com>
8489         * gimple-range-path.cc (path_range_query::precompute_relations):
8490         Hoist edge calculations before using EDGE_SUCC.
8492 2021-09-23  Jonathan Wakely  <jwakely@redhat.com>
8494         * configure.ac: Fix --with-multilib-list description.
8495         * configure: Regenerate.
8497 2021-09-23  Richard Biener  <rguenther@suse.de>
8499         PR tree-optimization/102448
8500         * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info):
8501         Clear alignment info copied from DR_PTR_INFO.
8503 2021-09-23  Hongyu Wang  <hongyu.wang@intel.com>
8505         * config/i386/i386-expand.c (ix86_use_mask_cmp_p): Enable
8506         HFmode mask_cmp.
8507         * config/i386/sse.md (sseintvecmodelower): Add HF vector modes.
8508         (<avx512>_store<mode>_mask): Extend to support HF vector modes.
8509         (vec_cmp<mode><avx512fmaskmodelower>): Likewise.
8510         (vcond_mask_<mode><avx512fmaskmodelower>): Likewise.
8511         (vcond<mode><mode>): New expander.
8512         (vcond<mode><sseintvecmodelower>): Likewise.
8513         (vcond<sseintvecmodelower><mode>): Likewise.
8514         (vcondu<mode><sseintvecmodelower>): Likewise.
8516 2021-09-23  Hongyu Wang  <hongyu.wang@intel.com>
8518         * config/i386/sse.md (extend<ssePHmodelower><mode>2):
8519         New expander.
8520         (extendv4hf<mode>2): Likewise.
8521         (extendv2hfv2df2): Likewise.
8522         (trunc<mode><ssePHmodelower>2): Likewise.
8523         (avx512fp16_vcvt<castmode>2ph_<mode>): Rename to ...
8524         (trunc<mode>v4hf2): ... this, and drop constraints.
8525         (avx512fp16_vcvtpd2ph_v2df): Rename to ...
8526         (truncv2dfv2hf2): ... this, and likewise.
8528 2021-09-23  Hongyu Wang  <hongyu.wang@intel.com>
8530         * config/i386/sse.md (float<floatunssuffix><mode><ssePHmodelower>2):
8531         New expander.
8532         (avx512fp16_vcvt<floatsuffix><sseintconvert>2ph_<mode>):
8533         Rename to ...
8534         (float<floatunssuffix><mode>v4hf2): ... this, and drop constraints.
8535         (avx512fp16_vcvt<floatsuffix>qq2ph_v2di): Rename to ...
8536         (float<floatunssuffix>v2div2hf2): ... this, and likewise.
8538 2021-09-23  Hongyu Wang  <hongyu.wang@intel.com>
8540         * config/i386/i386.md (fix<fixunssuffix>_trunchf<mode>2): New expander.
8541         (fixuns_trunchfhi2): Likewise.
8542         (*fixuns_trunchfsi2zext): New define_insn.
8543         * config/i386/sse.md (ssePHmodelower): New mode_attr.
8544         (fix<fixunssuffix>_trunc<ssePHmodelower><mode>2):
8545         New expander for same element vector fix_truncate.
8546         (fix<fixunssuffix>_trunc<ssePHmodelower><mode>2):
8547         Likewise for V4HF to V4SI/V4DI fix_truncate.
8548         (fix<fixunssuffix>_truncv2hfv2di2):
8549         Likeise for V2HF to V2DI fix_truncate.
8551 2021-09-23  Hongyu Wang  <hongyu.wang@intel.com>
8553         * config/i386/i386.md (<code>hf3): New expander.
8555 2021-09-23  liuhongt  <hongtao.liu@intel.com>
8557         * config/i386/sse.md (FMAMODEM): extend to handle FP16.
8558         (VFH_SF_AVX512VL): Extend to handle HFmode.
8559         (VF_SF_AVX512VL): Deleted.
8561 2021-09-23  liuhongt  <hongtao.liu@intel.com>
8563         * config/i386/i386.md (rinthf2): New expander.
8564         (nearbyinthf2): New expander.
8566 2021-09-23  Aldy Hernandez  <aldyh@redhat.com>
8568         * tree-ssa-dom.c (class dom_jump_threader_simplifier): Rename...
8569         (class dom_jt_state): ...this and provide virtual overrides.
8570         (dom_jt_state::register_equiv): New.
8571         (class dom_jt_simplifier): Rename from
8572         dom_jump_threader_simplifier.
8573         (dom_jump_threader_simplifier::simplify): Rename...
8574         (dom_jt_simplifier::simplify): ...to this.
8575         (pass_dominator::execute): Use dom_jt_simplifier and
8576         dom_jt_state.
8577         * tree-ssa-threadedge.c (jump_threader::jump_threader):
8578         Clean-up.
8579         (jt_state::register_equivs_stmt): Abstract out...
8580         (jump_threader::record_temporary_equivalences_from_stmts_at_dest):
8581         ...from here.
8582         (jump_threader::thread_around_empty_blocks): Update state.
8583         (jump_threader::thread_through_normal_block): Same.
8584         (jt_state::jt_state): Remove.
8585         (jt_state::push): Remove pass specific bits.  Keep block vector
8586         updated.
8587         (jt_state::append_path): New.
8588         (jt_state::pop): Remove pass specific bits.
8589         (jt_state::register_equiv): Same.
8590         (jt_state::record_ranges_from_stmt): Same.
8591         (jt_state::register_equivs_on_edge): Same.  Rename...
8592         (jt_state::register_equivs_edge):  ...to this.
8593         (jt_state::dump): New.
8594         (jt_state::debug): New.
8595         (jump_threader_simplifier::simplify): Remove.
8596         (jt_state::get_path): New.
8597         * tree-ssa-threadedge.h (class jt_simplifier): Make into a base
8598         class.  Expose common functionality as virtual methods.
8599         (class jump_threader_simplifier): Same.  Rename...
8600         (class jt_simplifier): ...to this.
8601         * tree-vrp.c (class vrp_jump_threader_simplifier): Rename...
8602         (class vrp_jt_simplifier): ...to this. Provide pass specific
8603         overrides.
8604         (class vrp_jt_state): New.
8605         (vrp_jump_threader_simplifier::simplify): Rename...
8606         (vrp_jt_simplifier::simplify): ...to this.  Inline code from
8607         what used to be the base class.
8608         (vrp_jump_threader::vrp_jump_threader): Use vrp_jt_state and
8609         vrp_jt_simplifier.
8611 2021-09-22  Tobias Burnus  <tobias@codesourcery.com>
8613         PR fortran/55534
8614         * doc/invoke.texi (-Wno-missing-include-dirs.): Document Fortran
8615         behavior.
8617 2021-09-22  Roger Sayle  <roger@nextmovesoftware.com>
8618             Richard Biener  <rguenther@suse.de>
8620         * match.pd (negation simplifications): Implement some negation
8621         folding transformations from fold-const.c's fold_negate_expr.
8622         * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Add a SIMPLIFY
8623         argument, to control whether the op should be simplified prior
8624         to looking up/assigning a value number.
8625         (vn_nary_build_or_lookup): Update call to vn_nary_build_or_lookup_1.
8626         (vn_nary_simplify): Likewise.
8627         (visit_nary_op): Likewise, but when constructing a NEGATE_EXPR
8628         now call vn_nary_build_or_lookup_1 disabling simplification.
8630 2021-09-22  Jiufu Guo  <guojiufu@linux.ibm.com>
8632         PR tree-optimization/102087
8633         * tree-ssa-loop-niter.c (number_of_iterations_until_wrap):
8634         Update bound/cmp/control for niter.
8636 2021-09-22  Aldy Hernandez  <aldyh@redhat.com>
8638         * gimple-range-fold.cc (fold_using_range::range_of_range_op):
8639         Move check for non-empty BB here.
8640         (fur_source::register_outgoing_edges): ...from here.
8642 2021-09-22  Aldy Hernandez  <aldyh@redhat.com>
8644         * gimple-range-path.cc (path_range_query::internal_range_of_expr):
8645         Remove call to improve_range_with_equivs.
8646         (path_range_query::improve_range_with_equivs): Remove
8647         * gimple-range-path.h: Remove improve_range_with_equivs.
8649 2021-09-22  dianhong xu  <dianhong.xu@intel.com>
8651         * config/i386/avx512fp16intrin.h:
8652         (_mm512_mask_blend_ph): New intrinsic.
8653         (_mm512_permutex2var_ph): Ditto.
8654         (_mm512_permutexvar_ph): Ditto.
8655         * config/i386/avx512fp16vlintrin.h:
8656         (_mm256_mask_blend_ph): New intrinsic.
8657         (_mm256_permutex2var_ph): Ditto.
8658         (_mm256_permutexvar_ph): Ditto.
8659         (_mm_mask_blend_ph): Ditto.
8660         (_mm_permutex2var_ph): Ditto.
8661         (_mm_permutexvar_ph): Ditto.
8663 2021-09-22  dianhong xu  <dianhong.xu@intel.com>
8665         * config/i386/avx512fp16intrin.h: Add new intrinsics.
8666         (_mm512_conj_pch): New intrinsic.
8667         (_mm512_mask_conj_pch): Ditto.
8668         (_mm512_maskz_conj_pch): Ditto.
8669         * config/i386/avx512fp16vlintrin.h: Add new intrinsics.
8670         (_mm256_conj_pch): New intrinsic.
8671         (_mm256_mask_conj_pch): Ditto.
8672         (_mm256_maskz_conj_pch): Ditto.
8673         (_mm_conj_pch): Ditto.
8674         (_mm_mask_conj_pch): Ditto.
8675         (_mm_maskz_conj_pch): Ditto.
8677 2021-09-22  dianhong xu  <dianhong.xu@intel.com>
8679         * config/i386/avx512fp16intrin.h (_MM512_REDUCE_OP): New macro
8680         (_mm512_reduce_add_ph): New intrinsic.
8681         (_mm512_reduce_mul_ph): Ditto.
8682         (_mm512_reduce_min_ph): Ditto.
8683         (_mm512_reduce_max_ph): Ditto.
8684         * config/i386/avx512fp16vlintrin.h
8685         (_MM256_REDUCE_OP/_MM_REDUCE_OP): New macro.
8686         (_mm256_reduce_add_ph): New intrinsic.
8687         (_mm256_reduce_mul_ph): Ditto.
8688         (_mm256_reduce_min_ph): Ditto.
8689         (_mm256_reduce_max_ph): Ditto.
8690         (_mm_reduce_add_ph): Ditto.
8691         (_mm_reduce_mul_ph): Ditto.
8692         (_mm_reduce_min_ph): Ditto.
8693         (_mm_reduce_max_ph): Ditto.
8695 2021-09-22  dianhong xu  <dianhong.xu@intel.com>
8697         * config/i386/avx512fp16intrin.h (__m512h_u, __m256h_u,
8698         __m128h_u): New typedef.
8699         (_mm512_load_ph): New intrinsic.
8700         (_mm256_load_ph): Ditto.
8701         (_mm_load_ph): Ditto.
8702         (_mm512_loadu_ph): Ditto.
8703         (_mm256_loadu_ph): Ditto.
8704         (_mm_loadu_ph): Ditto.
8705         (_mm512_store_ph): Ditto.
8706         (_mm256_store_ph): Ditto.
8707         (_mm_store_ph): Ditto.
8708         (_mm512_storeu_ph): Ditto.
8709         (_mm256_storeu_ph): Ditto.
8710         (_mm_storeu_ph): Ditto.
8711         (_mm512_abs_ph): Ditto.
8712         * config/i386/avx512fp16vlintrin.h
8713         (_mm_abs_ph): Ditto.
8714         (_mm256_abs_ph): Ditto.
8716 2021-09-22  Andreas Krebbel  <krebbel@linux.ibm.com>
8718         * config/s390/tpf.md (prologue_tpf, epilogue_tpf): Add cc clobber.
8720 2021-09-22  Andreas Krebbel  <krebbel@linux.ibm.com>
8722         PR target/102222
8723         * config/s390/s390.c (s390_expand_insv): Emit a normal move if it
8724         is actually a full copy of the source operand into the target.
8725         Don't emit a strict low part move if source and target mode match.
8727 2021-09-22  Jakub Jelinek  <jakub@redhat.com>
8729         PR middle-end/102415
8730         * omp-expand.c (expand_omp_single): If region->exit is NULL,
8731         assert region->entry is GIMPLE_OMP_SCOPE region and return.
8733 2021-09-22  Jakub Jelinek  <jakub@redhat.com>
8735         * tree.h (OMP_CLAUSE_ALLOCATE_ALIGN): Define.
8736         * tree.c (omp_clause_num_ops): Change number of OMP_CLAUSE_ALLOCATE
8737         arguments from 2 to 3.
8738         * tree-pretty-print.c (dump_omp_clause): Print allocator() around
8739         allocate clause allocator and print align if present.
8740         * omp-low.c (scan_sharing_clauses): Force allocate_map entry even
8741         for omp_default_mem_alloc if align modifier is present.  If align
8742         modifier is present, use TREE_LIST to encode both allocator and
8743         align.
8744         (lower_private_allocate, lower_rec_input_clauses, create_task_copyfn):
8745         Handle align modifier on allocator clause if present.
8747 2021-09-22  liuhongt  <hongtao.liu@intel.com>
8749         * config/i386/i386.md (define_attr "isa"): Add
8750         fma_or_avx512vl.
8751         (define_attr "enabled"): Correspond fma_or_avx512vl to
8752         TARGET_FMA || TARGET_AVX512VL.
8753         * config/i386/mmx.md (fmav2sf4): Extend to AVX512 fma.
8754         (fmsv2sf4): Ditto.
8755         (fnmav2sf4): Ditto.
8756         (fnmsv2sf4): Ditto.
8758 2021-09-22  liuhongt  <hongtao.liu@intel.com>
8760         * config/i386/i386.md (cstorehf3): New define_expand.
8762 2021-09-22  liuhongt  <hongtao.liu@intel.com>
8764         * config/i386/i386.md (<rounding_insn>hf2): New expander.
8765         (sse4_1_round<mode>2): Extend from MODEF to MODEFH.
8766         * config/i386/sse.md (*sse4_1_round<ssescalarmodesuffix>):
8767         Extend from VF_128 to VFH_128.
8769 2021-09-22  liuhongt  <hongtao.liu@intel.com>
8771         * config/i386/i386-features.c (i386-features.c): Handle
8772         E_HFmode.
8773         * config/i386/i386.md (sqrthf2): New expander.
8774         (*sqrthf2): New define_insn.
8775         * config/i386/sse.md
8776         (*<sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>):
8777         Extend to VFH_128.
8779 2021-09-22  liuhongt  <hongtao.liu@intel.com>
8781         * config/i386/avx512fp16intrin.h (_mm_mask_fcmadd_sch):
8782         New intrinsic.
8783         (_mm_mask3_fcmadd_sch): Likewise.
8784         (_mm_maskz_fcmadd_sch): Likewise.
8785         (_mm_fcmadd_sch): Likewise.
8786         (_mm_mask_fmadd_sch): Likewise.
8787         (_mm_mask3_fmadd_sch): Likewise.
8788         (_mm_maskz_fmadd_sch): Likewise.
8789         (_mm_fmadd_sch): Likewise.
8790         (_mm_mask_fcmadd_round_sch): Likewise.
8791         (_mm_mask3_fcmadd_round_sch): Likewise.
8792         (_mm_maskz_fcmadd_round_sch): Likewise.
8793         (_mm_fcmadd_round_sch): Likewise.
8794         (_mm_mask_fmadd_round_sch): Likewise.
8795         (_mm_mask3_fmadd_round_sch): Likewise.
8796         (_mm_maskz_fmadd_round_sch): Likewise.
8797         (_mm_fmadd_round_sch): Likewise.
8798         (_mm_fcmul_sch): Likewise.
8799         (_mm_mask_fcmul_sch): Likewise.
8800         (_mm_maskz_fcmul_sch): Likewise.
8801         (_mm_fmul_sch): Likewise.
8802         (_mm_mask_fmul_sch): Likewise.
8803         (_mm_maskz_fmul_sch): Likewise.
8804         (_mm_fcmul_round_sch): Likewise.
8805         (_mm_mask_fcmul_round_sch): Likewise.
8806         (_mm_maskz_fcmul_round_sch): Likewise.
8807         (_mm_fmul_round_sch): Likewise.
8808         (_mm_mask_fmul_round_sch): Likewise.
8809         (_mm_maskz_fmul_round_sch): Likewise.
8810         * config/i386/i386-builtin.def: Add corresponding new builtins.
8811         * config/i386/sse.md
8812         (avx512fp16_fmaddcsh_v8hf_maskz<round_expand_name>): New expander.
8813         (avx512fp16_fcmaddcsh_v8hf_maskz<round_expand_name>): Ditto.
8814         (avx512fp16_fma_<complexopname>sh_v8hf<mask_scalarcz_name><round_scalarcz_name>):
8815         New define insn.
8816         (avx512fp16_<complexopname>sh_v8hf_mask<round_name>): Ditto.
8817         (avx512fp16_<complexopname>sh_v8hf<mask_scalarc_name><round_scalarcz_name>):
8818         Ditto.
8819         * config/i386/subst.md (mask_scalarcz_name): New.
8820         (mask_scalarc_name): Ditto.
8821         (mask_scalarc_operand3): Ditto.
8822         (mask_scalarcz_operand4): Ditto.
8823         (round_scalarcz_name): Ditto.
8824         (round_scalarc_mask_operand3): Ditto.
8825         (round_scalarcz_mask_operand4): Ditto.
8826         (round_scalarc_mask_op3): Ditto.
8827         (round_scalarcz_mask_op4): Ditto.
8828         (round_scalarcz_constraint): Ditto.
8829         (round_scalarcz_nimm_predicate): Ditto.
8830         (mask_scalarcz): Ditto.
8831         (mask_scalarc): Ditto.
8832         (round_scalarcz): Ditto.
8834 2021-09-22  liuhongt  <hongtao.liu@intel.com>
8836         * config/i386/avx512fp16intrin.h (_mm512_fcmadd_pch):
8837         New intrinsic.
8838         (_mm512_mask_fcmadd_pch): Likewise.
8839         (_mm512_mask3_fcmadd_pch): Likewise.
8840         (_mm512_maskz_fcmadd_pch): Likewise.
8841         (_mm512_fmadd_pch): Likewise.
8842         (_mm512_mask_fmadd_pch): Likewise.
8843         (_mm512_mask3_fmadd_pch): Likewise.
8844         (_mm512_maskz_fmadd_pch): Likewise.
8845         (_mm512_fcmadd_round_pch): Likewise.
8846         (_mm512_mask_fcmadd_round_pch): Likewise.
8847         (_mm512_mask3_fcmadd_round_pch): Likewise.
8848         (_mm512_maskz_fcmadd_round_pch): Likewise.
8849         (_mm512_fmadd_round_pch): Likewise.
8850         (_mm512_mask_fmadd_round_pch): Likewise.
8851         (_mm512_mask3_fmadd_round_pch): Likewise.
8852         (_mm512_maskz_fmadd_round_pch): Likewise.
8853         (_mm512_fcmul_pch): Likewise.
8854         (_mm512_mask_fcmul_pch): Likewise.
8855         (_mm512_maskz_fcmul_pch): Likewise.
8856         (_mm512_fmul_pch): Likewise.
8857         (_mm512_mask_fmul_pch): Likewise.
8858         (_mm512_maskz_fmul_pch): Likewise.
8859         (_mm512_fcmul_round_pch): Likewise.
8860         (_mm512_mask_fcmul_round_pch): Likewise.
8861         (_mm512_maskz_fcmul_round_pch): Likewise.
8862         (_mm512_fmul_round_pch): Likewise.
8863         (_mm512_mask_fmul_round_pch): Likewise.
8864         (_mm512_maskz_fmul_round_pch): Likewise.
8865         * config/i386/avx512fp16vlintrin.h (_mm_fmadd_pch):
8866         New intrinsic.
8867         (_mm_mask_fmadd_pch): Likewise.
8868         (_mm_mask3_fmadd_pch): Likewise.
8869         (_mm_maskz_fmadd_pch): Likewise.
8870         (_mm256_fmadd_pch): Likewise.
8871         (_mm256_mask_fmadd_pch): Likewise.
8872         (_mm256_mask3_fmadd_pch): Likewise.
8873         (_mm256_maskz_fmadd_pch): Likewise.
8874         (_mm_fcmadd_pch): Likewise.
8875         (_mm_mask_fcmadd_pch): Likewise.
8876         (_mm_mask3_fcmadd_pch): Likewise.
8877         (_mm_maskz_fcmadd_pch): Likewise.
8878         (_mm256_fcmadd_pch): Likewise.
8879         (_mm256_mask_fcmadd_pch): Likewise.
8880         (_mm256_mask3_fcmadd_pch): Likewise.
8881         (_mm256_maskz_fcmadd_pch): Likewise.
8882         (_mm_fmul_pch): Likewise.
8883         (_mm_mask_fmul_pch): Likewise.
8884         (_mm_maskz_fmul_pch): Likewise.
8885         (_mm256_fmul_pch): Likewise.
8886         (_mm256_mask_fmul_pch): Likewise.
8887         (_mm256_maskz_fmul_pch): Likewise.
8888         (_mm_fcmul_pch): Likewise.
8889         (_mm_mask_fcmul_pch): Likewise.
8890         (_mm_maskz_fcmul_pch): Likewise.
8891         (_mm256_fcmul_pch): Likewise.
8892         (_mm256_mask_fcmul_pch): Likewise.
8893         (_mm256_maskz_fcmul_pch): Likewise.
8894         * config/i386/i386-builtin-types.def (V8HF_FTYPE_V8HF_V8HF_V8HF,
8895         V8HF_FTYPE_V16HF_V16HF_V16HF, V16HF_FTYPE_V16HF_V16HF_V16HF_UQI,
8896         V32HF_FTYPE_V32HF_V32HF_V32HF_INT,
8897         V32HF_FTYPE_V32HF_V32HF_V32HF_UHI_INT): Add new builtin types.
8898         * config/i386/i386-builtin.def: Add new builtins.
8899         * config/i386/i386-expand.c: Handle new builtin types.
8900         * config/i386/subst.md (SUBST_CV): New.
8901         (maskc_name): Ditto.
8902         (maskc_operand3): Ditto.
8903         (maskc): Ditto.
8904         (sdc_maskz_name): Ditto.
8905         (sdc_mask_op4): Ditto.
8906         (sdc_mask_op5): Ditto.
8907         (sdc_mask_mode512bit_condition): Ditto.
8908         (sdc): Ditto.
8909         (round_maskc_operand3): Ditto.
8910         (round_sdc_mask_operand4): Ditto.
8911         (round_maskc_op3): Ditto.
8912         (round_sdc_mask_op4): Ditto.
8913         (round_saeonly_sdc_mask_operand5): Ditto.
8914         * config/i386/sse.md (unspec): Add complex fma unspecs.
8915         (avx512fmaskcmode): New.
8916         (UNSPEC_COMPLEX_F_C_MA): Ditto.
8917         (UNSPEC_COMPLEX_F_C_MUL): Ditto.
8918         (complexopname): Ditto.
8919         (<avx512>_fmaddc_<mode>_maskz<round_expand_name>): New expander.
8920         (<avx512>_fcmaddc_<mode>_maskz<round_expand_name>): Ditto.
8921         (fma_<complexopname>_<mode><sdc_maskz_name><round_name>): New
8922         define insn.
8923         (<avx512>_<complexopname>_<mode>_mask<round_name>): Ditto.
8924         (<avx512>_<complexopname>_<mode><maskc_name><round_name>): Ditto.
8926 2021-09-22  Kewen Lin  <linkw@linux.ibm.com>
8928         * config/rs6000/rs6000.opt (rs6000-density-pct-threshold,
8929         rs6000-density-size-threshold, rs6000-density-penalty,
8930         rs6000-density-load-pct-threshold,
8931         rs6000-density-load-num-threshold): New parameter.
8932         * config/rs6000/rs6000.c (rs6000_density_test): Adjust with
8933         corresponding parameters.
8935 2021-09-21  Aldy Hernandez  <aldyh@redhat.com>
8937         * gimple-range-path.cc (path_range_query::defined_outside_path):
8938         New.
8939         (path_range_query::range_on_path_entry): New.
8940         (path_range_query::internal_range_of_expr): Resolve unknowns
8941         with ranger.
8942         (path_range_query::improve_range_with_equivs): New.
8943         (path_range_query::ssa_range_in_phi): Resolve unknowns with
8944         ranger.
8945         * gimple-range-path.h (class path_range_query): Add
8946         defined_outside_path, range_on_path_entry, and
8947         improve_range_with_equivs.
8949 2021-09-21  Aldy Hernandez  <aldyh@redhat.com>
8951         * gimple-range-path.cc (path_range_query::add_to_imports): New.
8952         (path_range_query::add_copies_to_imports): New.
8953         (path_range_query::precompute_ranges): Call
8954         add_copies_to_imports.
8955         * gimple-range-path.h (class path_range_query): Add prototypes
8956         for add_copies_to_imports and add_to_imports.
8958 2021-09-21  Aldy Hernandez  <aldyh@redhat.com>
8960         * gimple-range-path.cc (path_range_query::range_defined_in_block):
8961         Remove useless code.
8963 2021-09-21  Aldy Hernandez  <aldyh@redhat.com>
8965         * gimple-range-fold.h (class fur_source): Make oracle protected.
8966         * gimple-range-path.cc (path_range_query::path_range_query): Add
8967         resolve argument.  Initialize oracle.
8968         (path_range_query::~path_range_query): Delete oracle.
8969         (path_range_query::range_of_stmt): Adapt to use relations.
8970         (path_range_query::precompute_ranges): Pre-compute relations.
8971         (class jt_fur_source): New
8972         (jt_fur_source::jt_fur_source): New.
8973         (jt_fur_source::register_relation): New.
8974         (jt_fur_source::query_relation): New.
8975         (path_range_query::precompute_relations): New.
8976         (path_range_query::precompute_phi_relations): New.
8977         * gimple-range-path.h (path_range_query): Add resolve argument.
8978         Add oracle, precompute_relations, precompute_phi_relations.
8979         * tree-ssa-threadbackward.c (back_threader::back_threader): Pass
8980         resolve argument to solver.
8982 2021-09-21  Aldy Hernandez  <aldyh@redhat.com>
8984         * gimple-range-fold.cc (fold_using_range::range_of_range_op):
8985         Rename postfold_gcond_edges to register_outgoing_edges and
8986         adapt.
8987         (fold_using_range::postfold_gcond_edges): Rename...
8988         (fur_source::register_outgoing_edges): ...to this.
8989         * gimple-range-fold.h (postfold_gcond_edges): Rename to
8990         register_outgoing_edges and move to fur_source.
8992 2021-09-21  Aldy Hernandez  <aldyh@redhat.com>
8994         * gimple-range-fold.cc (fold_using_range::range_of_phi): Check
8995         dom_info_available_p.
8997 2021-09-21  Aldy Hernandez  <aldyh@redhat.com>
8999         * gimple-range-cache.cc (non_null_ref::non_null_ref): Use create
9000         and quick_grow_cleared instead of safe_grow_cleared.
9002 2021-09-21  Thomas Schwinge  <thomas@codesourcery.com>
9004         PR other/102408
9005         * omp-oacc-neuter-broadcast.cc (oacc_do_neutering): Evaluate
9006         'random ()' to '0'.
9008 2021-09-21  Richard Earnshaw  <rearnsha@arm.com>
9010         * configure.ac: Detect when the assembler supports new-style
9011         architecture extensions.
9012         * common/config/arm/arm-common.c (arm_rewrite_mcpu): Return
9013         the full CPU string if the assembler can grok it.
9014         (arm_rewrite_march): Likewise but for the architecture.
9015         * config.in: Regenerate.
9016         * configure: Regenerate.
9018 2021-09-21  Richard Biener  <rguenther@suse.de>
9020         PR tree-optimization/102421
9021         * tree-vect-loop.c (vect_dissolve_slp_only_groups): Copy and
9022         adjust alignment info.
9024 2021-09-21  Kewen Lin  <linkw@linux.ibm.com>
9026         * ipa-fnsummary.c (ipa_fn_summary_write): Remove inconsistent
9027         bitfield stream out.
9029 2021-09-20  Andrew MacLeod  <amacleod@redhat.com>
9031         * gimple-range-fold.cc (fold_using_range::range_of_phi): Ignore
9032         undefined edges, apply an equivalence if appropriate.
9033         * gimple-range-gori.cc (gori_compute::outgoing_edge_range_p): Return
9034         UNDEFINED if EDGE_EXECUTABLE is not set.
9035         * gimple-range.cc (gimple_ranger::gimple_ranger): Set all edges
9036         as EXECUTABLE upon startup.
9037         (gimple_ranger::range_on_edge): Return UNDEFINED for edges without
9038         EDGE_EXECUTABLE set.
9039         * vr-values.c (set_and_propagate_unexecutable): New.
9040         (simplify_using_ranges::fold_cond): Call set_and_propagate.
9041         (simplify_using_ranges::simplify_switch_using_ranges): Ditto.
9042         * vr-values.h: Add prototype.
9044 2021-09-20  Andrew MacLeod  <amacleod@redhat.com>
9046         * value-relation.cc (equiv_oracle::register_initial_def): New.
9047         (equiv_oracle::register_relation): Call register_initial_def.
9048         (equiv_oracle::add_equiv_to_block): New.  Split register_relation.
9049         (relation_oracle::register_stmt): Check def block of PHI arguments.
9050         * value-relation.h (equiv_oracle): Add new prototypes.
9052 2021-09-20  Matthias Kretz  <m.kretz@gsi.de>
9054         * cppbuiltin.c (define_builtin_macros_for_compilation_flags):
9055         Define __RECIPROCAL_MATH__, __NO_SIGNED_ZEROS__,
9056         __NO_TRAPPING_MATH__, __ASSOCIATIVE_MATH__, and
9057         __ROUNDING_MATH__ according to their corresponding flags.
9058         * doc/cpp.texi: Document __RECIPROCAL_MATH__,
9059         __NO_SIGNED_ZEROS__, __NO_TRAPPING_MATH__, __ASSOCIATIVE_MATH__,
9060         and __ROUNDING_MATH__.
9062 2021-09-20  Richard Biener  <rguenther@suse.de>
9064         * tree-vect-stmts.c (vectorizable_load): Use the vectype
9065         from the SLP node.
9067 2021-09-20  Richard Biener  <rguenther@suse.de>
9069         * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info):
9070         Do not compute alignment of the vectorized access here.
9072 2021-09-20  Richard Biener  <rguenther@suse.de>
9074         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
9075         Store -1 for runtime alias peeling iterations.
9077 2021-09-20  Richard Biener  <rguenther@suse.de>
9079         * config.gcc: Obsolete hppa[12]*-*-hpux10* and hppa[12]*-*-hpux11*.
9081 2021-09-20  Thomas Schwinge  <thomas@codesourcery.com>
9083         * input.c (string_concat_db::record_string_concatenation)
9084         (string_concat_db::get_string_concatenation): Skip for
9085         'RESERVED_LOCATION_P'.
9087 2021-09-20  Richard Biener  <rguenther@suse.de>
9089         PR tree-optimization/65206
9090         * tree-data-ref.h (struct data_reference): Add alt_indices,
9091         order it last.
9092         * tree-data-ref.c (free_data_ref): Release alt_indices.
9093         (dr_analyze_indices): Work on struct indices and get DR_REF as tree.
9094         (create_data_ref): Adjust.
9095         (initialize_data_dependence_relation): Split into head
9096         and tail.  When the base objects fail to match up try
9097         again with pointer-based analysis of indices.
9098         * tree-vectorizer.c (vec_info_shared::check_datarefs): Do
9099         not compare the lazily computed alternate set of indices.
9101 2021-09-20  Iain Sandoe  <iain@sandoe.co.uk>
9103         * gcc.c: Test for execute OK when we find the
9104         programs for assembler linker and dsymutil and those
9105         were specified at configure-time.
9107 2021-09-19  Martin Sebor  <msebor@redhat.com>
9109         PR middle-end/102403
9110         * gimple-predicate-analysis.cc (predicate::init_from_control_deps):
9111         Correct a function pre/postcondition.
9113 2021-09-19  Martin Sebor  <msebor@redhat.com>
9115         PR middle-end/102243
9116         * tree-ssa-strlen.c (get_range): Handle null cfun.
9118 2021-09-19  Iain Sandoe  <iain@sandoe.co.uk>
9120         * config/darwin.h (LINK_COMMAND_SPEC_A): Use Darwin10
9121         unwinder shim as a convenience library.
9123 2021-09-19  Andrew Pinski  <apinski@marvell.com>
9125         * doc/install.texi: Add note about
9126         binutils 2.35 is required for LTO usage.
9128 2021-09-19  Aldy Hernandez  <aldyh@redhat.com>
9130         * tree-ssa-threadbackward.c
9131         (back_threader_registry::register_path): Use push_edge.
9132         * tree-ssa-threadedge.c
9133         (jump_threader::thread_around_empty_blocks): Same.
9134         (jump_threader::thread_through_normal_block): Same.
9135         (jump_threader::thread_across_edge): Same.  Also, use auto_bitmap.
9136         Tidy up code.
9137         * tree-ssa-threadupdate.c
9138         (jt_path_registry::allocate_thread_edge): Remove.
9139         (jt_path_registry::push_edge): New.
9140         (dump_jump_thread_path): Make static.
9141         * tree-ssa-threadupdate.h (allocate_thread_edge): Remove.
9142         (push_edge): New.
9144 2021-09-19  Aldy Hernandez  <aldyh@redhat.com>
9146         * gimple-range-path.cc (path_range_query::path_range_query): Add
9147         header.
9148         (path_range_query::dump): Remove extern declaration of dump_ranger.
9149         * gimple-range-trace.cc (dump_ranger): Add DEBUG_FUNCTION marker.
9150         * gimple-range-trace.h (dump_ranger): Add prototype.
9152 2021-09-19  John Ericson  <git@JohnEricson.me>
9154         * gcc.c (find_a_program): New function, factored out of...
9155         (find_a_file): Here.
9156         (execute): Use find_a_program when looking for programs rather
9157         than find_a_file.
9159 2021-09-19  Matwey V. Kornilov  <matwey.kornilov@gmail.com>
9161         * config/avr/avr-mcus.def: Add atmega324pb.
9162         * doc/avr-mmcu.texi: Corresponding changes.
9164 2021-09-19  Roger Sayle  <roger@nextmovesoftware.com>
9166         PR middle-end/88173
9167         * match.pd (cmp @0 REAL_CST@1): When @0 is also REAL_CST, apply
9168         the same transformations as to @1.  For comparisons against NaN,
9169         don't check HONOR_SNANS but confirm that neither operand is a
9170         signaling NaN.
9172 2021-09-19  Benjamin Peterson  <benjamin@locrian.net>
9174         * attribs.c (make_unique_name): Delete.
9175         * attribs.h (make_unique_name): Delete.
9177 2021-09-19  Andrew Pinski  <apinski@marvell.com>
9179         * lra-constraints.c (check_and_process_move): Assert
9180         that dclass and sclass are greater than or equal to NO_REGS.
9182 2021-09-18  Jakub Jelinek  <jakub@redhat.com>
9184         * tree.h (OMP_CLAUSE_ORDER_UNCONSTRAINED): Define.
9185         * tree-pretty-print.c (dump_omp_clause): Print unconstrained:
9186         for OMP_CLAUSE_ORDER_UNCONSTRAINED.
9188 2021-09-18  liuhongt  <hongtao.liu@intel.com>
9190         * config/i386/i386-features.c (remove_partial_avx_dependency):
9191         Restrict TARGET_USE_VECTOR_FP_CONVERTS and
9192         TARGET_USE_VECTOR_CONVERTS to conversion instructions only.
9194 2021-09-18  Jakub Jelinek  <jakub@redhat.com>
9196         * gimplify.c (omp_default_clause): For C/C++ default({,first}private),
9197         if file/namespace scope variable doesn't have predetermined sharing,
9198         treat it as if there was default(none).
9200 2021-09-18  liuhongt  <hongtao.liu@intel.com>
9202         * config/i386/avx512fp16intrin.h (_mm_fmadd_sh):
9203         New intrinsic.
9204         (_mm_mask_fmadd_sh): Likewise.
9205         (_mm_mask3_fmadd_sh): Likewise.
9206         (_mm_maskz_fmadd_sh): Likewise.
9207         (_mm_fmadd_round_sh): Likewise.
9208         (_mm_mask_fmadd_round_sh): Likewise.
9209         (_mm_mask3_fmadd_round_sh): Likewise.
9210         (_mm_maskz_fmadd_round_sh): Likewise.
9211         (_mm_fnmadd_sh): Likewise.
9212         (_mm_mask_fnmadd_sh): Likewise.
9213         (_mm_mask3_fnmadd_sh): Likewise.
9214         (_mm_maskz_fnmadd_sh): Likewise.
9215         (_mm_fnmadd_round_sh): Likewise.
9216         (_mm_mask_fnmadd_round_sh): Likewise.
9217         (_mm_mask3_fnmadd_round_sh): Likewise.
9218         (_mm_maskz_fnmadd_round_sh): Likewise.
9219         (_mm_fmsub_sh): Likewise.
9220         (_mm_mask_fmsub_sh): Likewise.
9221         (_mm_mask3_fmsub_sh): Likewise.
9222         (_mm_maskz_fmsub_sh): Likewise.
9223         (_mm_fmsub_round_sh): Likewise.
9224         (_mm_mask_fmsub_round_sh): Likewise.
9225         (_mm_mask3_fmsub_round_sh): Likewise.
9226         (_mm_maskz_fmsub_round_sh): Likewise.
9227         (_mm_fnmsub_sh): Likewise.
9228         (_mm_mask_fnmsub_sh): Likewise.
9229         (_mm_mask3_fnmsub_sh): Likewise.
9230         (_mm_maskz_fnmsub_sh): Likewise.
9231         (_mm_fnmsub_round_sh): Likewise.
9232         (_mm_mask_fnmsub_round_sh): Likewise.
9233         (_mm_mask3_fnmsub_round_sh): Likewise.
9234         (_mm_maskz_fnmsub_round_sh): Likewise.
9235         * config/i386/i386-builtin-types.def
9236         (V8HF_FTYPE_V8HF_V8HF_V8HF_UQI_INT): New builtin type.
9237         * config/i386/i386-builtin.def: Add new builtins.
9238         * config/i386/i386-expand.c: Handle new builtin type.
9239         * config/i386/sse.md (fmai_vmfmadd_<mode><round_name>):
9240         Ajdust to support FP16.
9241         (fmai_vmfmsub_<mode><round_name>): Ditto.
9242         (fmai_vmfnmadd_<mode><round_name>): Ditto.
9243         (fmai_vmfnmsub_<mode><round_name>): Ditto.
9244         (*fmai_fmadd_<mode>): Ditto.
9245         (*fmai_fmsub_<mode>): Ditto.
9246         (*fmai_fnmadd_<mode><round_name>): Ditto.
9247         (*fmai_fnmsub_<mode><round_name>): Ditto.
9248         (avx512f_vmfmadd_<mode>_mask<round_name>): Ditto.
9249         (avx512f_vmfmadd_<mode>_mask3<round_name>): Ditto.
9250         (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): Ditto.
9251         (avx512f_vmfmadd_<mode>_maskz_1<round_name>): Ditto.
9252         (*avx512f_vmfmsub_<mode>_mask<round_name>): Ditto.
9253         (avx512f_vmfmsub_<mode>_mask3<round_name>): Ditto.
9254         (*avx512f_vmfmsub_<mode>_maskz_1<round_name>): Ditto.
9255         (*avx512f_vmfnmsub_<mode>_mask<round_name>): Ditto.
9256         (*avx512f_vmfnmsub_<mode>_mask3<round_name>): Ditto.
9257         (*avx512f_vmfnmsub_<mode>_mask<round_name>): Ditto.
9258         (*avx512f_vmfnmadd_<mode>_mask<round_name>): Renamed to ...
9259         (avx512f_vmfnmadd_<mode>_mask<round_name>) ... this, and
9260         adjust to support FP16.
9261         (avx512f_vmfnmadd_<mode>_mask3<round_name>): Ditto.
9262         (avx512f_vmfnmadd_<mode>_maskz_1<round_name>): Ditto.
9263         (avx512f_vmfnmadd_<mode>_maskz<round_expand_name>): New
9264         expander.
9266 2021-09-18  H.J. Lu  <hjl.tools@gmail.com>
9268         * config/i386/sse.md (avx512fmaskmodelower): Extend to support
9269         HF modes.
9270         (maskload<mode><avx512fmaskmodelower>): Ditto.
9271         (maskstore<mode><avx512fmaskmodelower>): Ditto.
9273 2021-09-18  H.J. Lu  <hjl.tools@gmail.com>
9275         * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
9276         Handle HFmode.
9277         (ix86_expand_copysign): Ditto.
9278         (ix86_expand_xorsign): Ditto.
9279         * config/i386/i386.c (ix86_build_const_vector): Handle HF vector
9280         modes.
9281         (ix86_build_signbit_mask): Ditto.
9282         (ix86_can_change_mode_class): Ditto.
9283         * config/i386/i386.md
9284         (SSEMODEF): Add HFmode.
9285         (ssevecmodef): Ditto.
9286         (<code>hf2): New define_expand.
9287         (*<code>hf2_1): New define_insn_and_split.
9288         (copysign<mode>): Extend to support HFmode under AVX512FP16.
9289         (xorsign<mode>): Ditto.
9290         * config/i386/sse.md (VFB): New mode iterator.
9291         (VFB_128_256): Ditto.
9292         (VFB_512): Ditto.
9293         (sseintvecmode2): Support HF vector mode.
9294         (<code><mode>2): Use new mode iterator.
9295         (*<code><mode>2): Ditto.
9296         (copysign<mode>3): Ditto.
9297         (xorsign<mode>3): Ditto.
9298         (<code><mode>3<mask_name>): Ditto.
9299         (<code><mode>3<mask_name>): Ditto.
9300         (<sse>_andnot<mode>3<mask_name>): Adjust for HF vector mode.
9301         (<sse>_andnot<mode>3<mask_name>): Ditto.
9302         (*<code><mode>3<mask_name>): Ditto.
9303         (*<code><mode>3<mask_name>): Ditto.
9305 2021-09-18  liuhongt  <hongtao.liu@intel.com>
9307         * config/i386/avx512fp16intrin.h (_mm512_mask_fmadd_ph):
9308         New intrinsic.
9309         (_mm512_mask3_fmadd_ph): Likewise.
9310         (_mm512_maskz_fmadd_ph): Likewise.
9311         (_mm512_fmadd_round_ph): Likewise.
9312         (_mm512_mask_fmadd_round_ph): Likewise.
9313         (_mm512_mask3_fmadd_round_ph): Likewise.
9314         (_mm512_maskz_fmadd_round_ph): Likewise.
9315         (_mm512_fnmadd_ph): Likewise.
9316         (_mm512_mask_fnmadd_ph): Likewise.
9317         (_mm512_mask3_fnmadd_ph): Likewise.
9318         (_mm512_maskz_fnmadd_ph): Likewise.
9319         (_mm512_fnmadd_round_ph): Likewise.
9320         (_mm512_mask_fnmadd_round_ph): Likewise.
9321         (_mm512_mask3_fnmadd_round_ph): Likewise.
9322         (_mm512_maskz_fnmadd_round_ph): Likewise.
9323         (_mm512_fmsub_ph): Likewise.
9324         (_mm512_mask_fmsub_ph): Likewise.
9325         (_mm512_mask3_fmsub_ph): Likewise.
9326         (_mm512_maskz_fmsub_ph): Likewise.
9327         (_mm512_fmsub_round_ph): Likewise.
9328         (_mm512_mask_fmsub_round_ph): Likewise.
9329         (_mm512_mask3_fmsub_round_ph): Likewise.
9330         (_mm512_maskz_fmsub_round_ph): Likewise.
9331         (_mm512_fnmsub_ph): Likewise.
9332         (_mm512_mask_fnmsub_ph): Likewise.
9333         (_mm512_mask3_fnmsub_ph): Likewise.
9334         (_mm512_maskz_fnmsub_ph): Likewise.
9335         (_mm512_fnmsub_round_ph): Likewise.
9336         (_mm512_mask_fnmsub_round_ph): Likewise.
9337         (_mm512_mask3_fnmsub_round_ph): Likewise.
9338         (_mm512_maskz_fnmsub_round_ph): Likewise.
9339         * config/i386/avx512fp16vlintrin.h (_mm256_fmadd_ph):
9340         New intrinsic.
9341         (_mm256_mask_fmadd_ph): Likewise.
9342         (_mm256_mask3_fmadd_ph): Likewise.
9343         (_mm256_maskz_fmadd_ph): Likewise.
9344         (_mm_fmadd_ph): Likewise.
9345         (_mm_mask_fmadd_ph): Likewise.
9346         (_mm_mask3_fmadd_ph): Likewise.
9347         (_mm_maskz_fmadd_ph): Likewise.
9348         (_mm256_fnmadd_ph): Likewise.
9349         (_mm256_mask_fnmadd_ph): Likewise.
9350         (_mm256_mask3_fnmadd_ph): Likewise.
9351         (_mm256_maskz_fnmadd_ph): Likewise.
9352         (_mm_fnmadd_ph): Likewise.
9353         (_mm_mask_fnmadd_ph): Likewise.
9354         (_mm_mask3_fnmadd_ph): Likewise.
9355         (_mm_maskz_fnmadd_ph): Likewise.
9356         (_mm256_fmsub_ph): Likewise.
9357         (_mm256_mask_fmsub_ph): Likewise.
9358         (_mm256_mask3_fmsub_ph): Likewise.
9359         (_mm256_maskz_fmsub_ph): Likewise.
9360         (_mm_fmsub_ph): Likewise.
9361         (_mm_mask_fmsub_ph): Likewise.
9362         (_mm_mask3_fmsub_ph): Likewise.
9363         (_mm_maskz_fmsub_ph): Likewise.
9364         (_mm256_fnmsub_ph): Likewise.
9365         (_mm256_mask_fnmsub_ph): Likewise.
9366         (_mm256_mask3_fnmsub_ph): Likewise.
9367         (_mm256_maskz_fnmsub_ph): Likewise.
9368         (_mm_fnmsub_ph): Likewise.
9369         (_mm_mask_fnmsub_ph): Likewise.
9370         (_mm_mask3_fnmsub_ph): Likewise.
9371         (_mm_maskz_fnmsub_ph): Likewise.
9372         * config/i386/i386-builtin.def: Add corresponding new builtins.
9373         * config/i386/sse.md
9374         (<avx512>_fmadd_<mode>_maskz<round_expand_name>): Adjust to
9375         support HF vector modes.
9376         (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
9377         Ditto.
9378         (*<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name>_bcst_1): Ditto.
9379         (*<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name>_bcst_2): Ditto.
9380         (*<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name>_bcst_3): Ditto.
9381         (<avx512>_fmadd_<mode>_mask<round_name>): Ditto.
9382         (<avx512>_fmadd_<mode>_mask3<round_name>): Ditto.
9383         (<avx512>_fmsub_<mode>_maskz<round_expand_name>): Ditto.
9384         (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>):
9385         Ditto.
9386         (*<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name>_bcst_1): Ditto.
9387         (*<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name>_bcst_2): Ditto.
9388         (*<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name>_bcst_3): Ditto.
9389         (<avx512>_fmsub_<mode>_mask<round_name>): Ditto.
9390         (<avx512>_fmsub_<mode>_mask3<round_name>): Ditto.
9391         (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>):
9392         Ditto.
9393         (*<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name>_bcst_1): Ditto.
9394         (*<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name>_bcst_2): Ditto.
9395         (*<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name>_bcst_3): Ditto.
9396         (<avx512>_fnmadd_<mode>_mask<round_name>): Ditto.
9397         (<avx512>_fnmadd_<mode>_mask3<round_name>): Ditto.
9398         (<avx512>_fnmsub_<mode>_maskz<round_expand_name>): Ditto.
9399         (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>):
9400         Ditto.
9401         (*<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name>_bcst_1): Ditto.
9402         (*<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name>_bcst_2): Ditto.
9403         (*<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name>_bcst_3): Ditto.
9404         (<avx512>_fnmsub_<mode>_mask<round_name>): Ditto.
9405         (<avx512>_fnmsub_<mode>_mask3<round_name>): Ditto.
9407 2021-09-18  liuhongt  <hongtao.liu@intel.com>
9409         * config/i386/avx512fp16intrin.h (_mm512_fmaddsub_ph):
9410         New intrinsic.
9411         (_mm512_mask_fmaddsub_ph): Likewise.
9412         (_mm512_mask3_fmaddsub_ph): Likewise.
9413         (_mm512_maskz_fmaddsub_ph): Likewise.
9414         (_mm512_fmaddsub_round_ph): Likewise.
9415         (_mm512_mask_fmaddsub_round_ph): Likewise.
9416         (_mm512_mask3_fmaddsub_round_ph): Likewise.
9417         (_mm512_maskz_fmaddsub_round_ph): Likewise.
9418         (_mm512_mask_fmsubadd_ph): Likewise.
9419         (_mm512_mask3_fmsubadd_ph): Likewise.
9420         (_mm512_maskz_fmsubadd_ph): Likewise.
9421         (_mm512_fmsubadd_round_ph): Likewise.
9422         (_mm512_mask_fmsubadd_round_ph): Likewise.
9423         (_mm512_mask3_fmsubadd_round_ph): Likewise.
9424         (_mm512_maskz_fmsubadd_round_ph): Likewise.
9425         * config/i386/avx512fp16vlintrin.h (_mm256_fmaddsub_ph):
9426         New intrinsic.
9427         (_mm256_mask_fmaddsub_ph): Likewise.
9428         (_mm256_mask3_fmaddsub_ph): Likewise.
9429         (_mm256_maskz_fmaddsub_ph): Likewise.
9430         (_mm_fmaddsub_ph): Likewise.
9431         (_mm_mask_fmaddsub_ph): Likewise.
9432         (_mm_mask3_fmaddsub_ph): Likewise.
9433         (_mm_maskz_fmaddsub_ph): Likewise.
9434         (_mm256_fmsubadd_ph): Likewise.
9435         (_mm256_mask_fmsubadd_ph): Likewise.
9436         (_mm256_mask3_fmsubadd_ph): Likewise.
9437         (_mm256_maskz_fmsubadd_ph): Likewise.
9438         (_mm_fmsubadd_ph): Likewise.
9439         (_mm_mask_fmsubadd_ph): Likewise.
9440         (_mm_mask3_fmsubadd_ph): Likewise.
9441         (_mm_maskz_fmsubadd_ph): Likewise.
9442         * config/i386/i386-builtin.def: Add corresponding new builtins.
9443         * config/i386/sse.md (VFH_SF_AVX512VL): New mode iterator.
9444         * (<avx512>_fmsubadd_<mode>_maskz<round_expand_name>): New expander.
9445         * (<avx512>_fmaddsub_<mode>_maskz<round_expand_name>): Use
9446         VFH_SF_AVX512VL.
9447         * (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
9448         Ditto.
9449         * (<avx512>_fmaddsub_<mode>_mask<round_name>): Ditto.
9450         * (<avx512>_fmaddsub_<mode>_mask3<round_name>): Ditto.
9451         * (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
9452         Ditto.
9453         * (<avx512>_fmsubadd_<mode>_mask<round_name>): Ditto.
9454         * (<avx512>_fmsubadd_<mode>_mask3<round_name>): Ditto.
9456 2021-09-18  liuhongt  <hongtao.liu@intel.com>
9458         PR target/87767
9459         * config/i386/i386.c (ix86_print_operand): Handle
9460         V8HF/V16HF/V32HFmode.
9461         * config/i386/i386.h (VALID_BCST_MODE_P): Add HFmode.
9462         * config/i386/sse.md (avx512bcst): Remove.
9464 2021-09-17  Martin Sebor  <msebor@redhat.com>
9466         * Makefile.in (OBJS): Add gimple-predicate-analysis.o.
9467         * tree-ssa-uninit.c (max_phi_args): Move to gimple-predicate-analysis.
9468         (MASK_SET_BIT, MASK_TEST_BIT, MASK_EMPTY): Same.
9469         (check_defs): Add comment.
9470         (can_skip_redundant_opnd): Update comment.
9471         (compute_uninit_opnds_pos): Adjust to namespace change.
9472         (find_pdom): Move to gimple-predicate-analysis.cc.
9473         (find_dom): Same.
9474         (struct uninit_undef_val_t): New.
9475         (is_non_loop_exit_postdominating): Move to gimple-predicate-analysis.cc.
9476         (find_control_equiv_block): Same.
9477         (MAX_NUM_CHAINS, MAX_CHAIN_LEN, MAX_POSTDOM_CHECK): Same.
9478         (MAX_SWITCH_CASES): Same.
9479         (compute_control_dep_chain): Same.
9480         (find_uninit_use): Use predicate analyzer.
9481         (struct pred_info): Move to gimple-predicate-analysis.
9482         (convert_control_dep_chain_into_preds): Same.
9483         (find_predicates): Same.
9484         (collect_phi_def_edges): Same.
9485         (warn_uninitialized_phi): Use predicate analyzer.
9486         (find_def_preds): Move to gimple-predicate-analysis.
9487         (dump_pred_info): Same.
9488         (dump_pred_chain): Same.
9489         (dump_predicates): Same.
9490         (destroy_predicate_vecs): Remove.
9491         (execute_late_warn_uninitialized): New.
9492         (get_cmp_code): Move to gimple-predicate-analysis.
9493         (is_value_included_in): Same.
9494         (value_sat_pred_p): Same.
9495         (find_matching_predicate_in_rest_chains): Same.
9496         (is_use_properly_guarded): Same.
9497         (prune_uninit_phi_opnds): Same.
9498         (find_var_cmp_const): Same.
9499         (use_pred_not_overlap_with_undef_path_pred): Same.
9500         (pred_equal_p): Same.
9501         (is_neq_relop_p): Same.
9502         (is_neq_zero_form_p): Same.
9503         (pred_expr_equal_p): Same.
9504         (is_pred_expr_subset_of): Same.
9505         (is_pred_chain_subset_of): Same.
9506         (is_included_in): Same.
9507         (is_superset_of): Same.
9508         (pred_neg_p): Same.
9509         (simplify_pred): Same.
9510         (simplify_preds_2): Same.
9511         (simplify_preds_3): Same.
9512         (simplify_preds_4): Same.
9513         (simplify_preds): Same.
9514         (push_pred): Same.
9515         (push_to_worklist): Same.
9516         (get_pred_info_from_cmp): Same.
9517         (is_degenerated_phi): Same.
9518         (normalize_one_pred_1): Same.
9519         (normalize_one_pred): Same.
9520         (normalize_one_pred_chain): Same.
9521         (normalize_preds): Same.
9522         (can_one_predicate_be_invalidated_p): Same.
9523         (can_chain_union_be_invalidated_p): Same.
9524         (uninit_uses_cannot_happen): Same.
9525         (pass_late_warn_uninitialized::execute): Define.
9526         * gimple-predicate-analysis.cc: New file.
9527         * gimple-predicate-analysis.h: New file.
9529 2021-09-17  Julian Brown  <julian@codesourcery.com>
9531         * config/gcn/gcn.c (gimple.h): Include.
9532         (gcn_fork_join): Emit barrier for worker-level joins.
9533         * omp-oacc-neuter-broadcast.cc (find_local_vars_to_propagate): Add
9534         writes_gang_private bitmap parameter. Set bit for blocks
9535         containing gang-private variable writes.
9536         (worker_single_simple): Don't emit barrier after predicated block.
9537         (worker_single_copy): Don't emit barrier if we're not broadcasting
9538         anything and the block contains no gang-private writes.
9539         (neuter_worker_single): Don't predicate blocks that only contain
9540         NOPs or internal marker functions.  Pass has_gang_private_write
9541         argument to worker_single_copy.
9542         (oacc_do_neutering): Add writes_gang_private bitmap handling.
9544 2021-09-17  Julian Brown  <julian@codesourcery.com>
9546         * config/gcn/gcn-protos.h
9547         (gcn_goacc_create_worker_broadcast_record): Update prototype.
9548         * config/gcn/gcn-tree.c (gcn_goacc_get_worker_red_decl): Use
9549         preallocated block of LDS memory.  Do not cache/share decls for
9550         reduction temporaries between invocations.
9551         (gcn_goacc_reduction_teardown): Unshare VAR on second use.
9552         (gcn_goacc_create_worker_broadcast_record): Add OFFSET parameter
9553         and return temporary LDS space at that offset.  Return pointer in
9554         "sender" case.
9555         * config/gcn/gcn.c (acc_lds_size, gang_private_hwm, lds_allocs):
9556         New global vars.
9557         (ACC_LDS_SIZE): Define as acc_lds_size.
9558         (gcn_init_machine_status): Don't initialise lds_allocated,
9559         lds_allocs, reduc_decls fields of machine function struct.
9560         (gcn_option_override): Handle default size for gang-private
9561         variables and -mgang-private-size option.
9562         (gcn_expand_prologue): Use LDS_SIZE instead of LDS_SIZE-1 when
9563         initialising M0_REG.
9564         (gcn_shared_mem_layout): New function.
9565         (gcn_print_lds_decl): Update comment. Use global lds_allocs map and
9566         gang_private_hwm variable.
9567         (TARGET_GOACC_SHARED_MEM_LAYOUT): Define target hook.
9568         * config/gcn/gcn.h (machine_function): Remove lds_allocated,
9569         lds_allocs, reduc_decls. Add reduction_base, reduction_limit.
9570         * config/gcn/gcn.opt (gang_private_size_opt): New global.
9571         (mgang-private-size=): New option.
9572         * doc/tm.texi.in (TARGET_GOACC_SHARED_MEM_LAYOUT): Place
9573         documentation hook.
9574         * doc/tm.texi: Regenerate.
9575         * omp-oacc-neuter-broadcast.cc (targhooks.h, diagnostic-core.h):
9576         Add includes.
9577         (build_sender_ref): Handle sender_decl being pointer.
9578         (worker_single_copy): Add PLACEMENT and ISOLATE_BROADCASTS
9579         parameters.  Pass placement argument to
9580         create_worker_broadcast_record hook invocations.  Handle
9581         sender_decl being pointer and isolate_broadcasts inserting extra
9582         barriers.
9583         (blk_offset_map_t): Add typedef.
9584         (neuter_worker_single): Add BLK_OFFSET_MAP parameter.  Pass
9585         preallocated range to worker_single_copy call.
9586         (dfs_broadcast_reachable_1): New function.
9587         (idx_decl_pair_t, used_range_vec_t): New typedefs.
9588         (sort_size_descending): New function.
9589         (addr_range): New class.
9590         (splay_tree_compare_addr_range, splay_tree_free_key)
9591         (first_fit_range, merge_ranges_1, merge_ranges): New functions.
9592         (execute_omp_oacc_neuter_broadcast): Rename to...
9593         (oacc_do_neutering): ... this.  Add BOUNDS_LO, BOUNDS_HI
9594         parameters.  Arrange layout of shared memory for broadcast
9595         operations.
9596         (execute_omp_oacc_neuter_broadcast): New function.
9597         (pass_omp_oacc_neuter_broadcast::gate): Remove num_workers==1
9598         handling from here.  Enable pass for all OpenACC routines in order
9599         to call shared memory-layout hook.
9600         * target.def (create_worker_broadcast_record): Add OFFSET
9601         parameter.
9602         (shared_mem_layout): New hook.
9604 2021-09-17  Julian Brown  <julian@codesourcery.com>
9605             Thomas Schwinge  <thomas@codesourcery.com>
9607         * omp-oacc-neuter-broadcast.cc
9608         (pass_omp_oacc_neuter_broadcast::gate): Disable if num_workers is
9609         1.
9610         (execute_omp_oacc_neuter_broadcast): Adjust.
9612 2021-09-17  Andrew MacLeod  <amacleod@redhat.com>
9614         * value-relation.cc (class equiv_chain): Move to header file.
9615         (path_oracle::path_oracle): New.
9616         (path_oracle::~path_oracle): New.
9617         (path_oracle::register_relation): New.
9618         (path_oracle::query_relation): New.
9619         (path_oracle::reset_path): New.
9620         (path_oracle::dump): New.
9621         * value-relation.h (class equiv_chain): Move to here.
9622         (class path_oracle): New.
9624 2021-09-17  Andrew MacLeod  <amacleod@redhat.com>
9626         * gimple-range-cache.cc (ranger_cache::ranger_cache): Create a DOM
9627         based oracle.
9628         * gimple-range-fold.cc (fur_depend::register_relation): Use
9629         register_stmt/edge routines.
9630         * value-relation.cc (equiv_chain::find): Relocate from equiv_oracle.
9631         (equiv_oracle::equiv_oracle): Create self equivalence cache.
9632         (equiv_oracle::~equiv_oracle): Release same.
9633         (equiv_oracle::equiv_set): Return entry from self equiv cache if there
9634         are no equivalences.
9635         (equiv_oracle::find_equiv_block): Move list find to equiv_chain.
9636         (equiv_oracle::register_relation): Rename from register_equiv.
9637         (relation_chain_head::find_relation): Relocate from dom_oracle.
9638         (relation_oracle::register_stmt): New.
9639         (relation_oracle::register_edge): New.
9640         (dom_oracle::*): Rename from relation_oracle.
9641         (dom_oracle::register_relation): Adjust to call equiv_oracle.
9642         (dom_oracle::set_one_relation): Split from register_relation.
9643         (dom_oracle::register_transitives): Consolidate 2 methods.
9644         (dom_oracle::find_relation_block): Move core to relation_chain.
9645         (dom_oracle::query_relation): Rename from find_relation_dom and adjust.
9646         * value-relation.h (class relation_oracle): New pure virtual base.
9647         (class equiv_oracle): Inherit from relation_oracle and adjust.
9648         (class dom_oracle): Rename from old relation_oracle and adjust.
9650 2021-09-17  Martin Sebor  <msebor@redhat.com>
9652         PR middle-end/102200
9653         * pointer-query.cc (access_ref::inform_access): Handle MIN/MAX_EXPR.
9654         (handle_min_max_size): Change argument.  Store original SSA_NAME for
9655         operands to potentially distinct (sub)objects.
9656         (compute_objsize_r): Adjust call to the above.
9658 2021-09-17  Bill Schmidt  <wschmidt@linux.ibm.com>
9660         * config/rs6000/rs6000.c (rs6000-builtins.h): New include.
9661         (rs6000_new_builtin_vectorized_function): New function.
9662         (rs6000_new_builtin_md_vectorized_function): Likewise.
9663         (rs6000_builtin_vectorized_function): Call
9664         rs6000_new_builtin_vectorized_function.
9665         (rs6000_builtin_md_vectorized_function): Call
9666         rs6000_new_builtin_md_vectorized_function.
9668 2021-09-17  Bill Schmidt  <wschmidt@linux.ibm.com>
9670         * config/rs6000/rs6000-builtin-new.def (ASSEMBLE_ACC): Add mmaint flag.
9671         (ASSEMBLE_PAIR): Likewise.
9672         (BUILD_ACC): Likewise.
9673         (DISASSEMBLE_ACC): Likewise.
9674         (DISASSEMBLE_PAIR): Likewise.
9675         (PMXVBF16GER2): Likewise.
9676         (PMXVBF16GER2NN): Likewise.
9677         (PMXVBF16GER2NP): Likewise.
9678         (PMXVBF16GER2PN): Likewise.
9679         (PMXVBF16GER2PP): Likewise.
9680         (PMXVF16GER2): Likewise.
9681         (PMXVF16GER2NN): Likewise.
9682         (PMXVF16GER2NP): Likewise.
9683         (PMXVF16GER2PN): Likewise.
9684         (PMXVF16GER2PP): Likewise.
9685         (PMXVF32GER): Likewise.
9686         (PMXVF32GERNN): Likewise.
9687         (PMXVF32GERNP): Likewise.
9688         (PMXVF32GERPN): Likewise.
9689         (PMXVF32GERPP): Likewise.
9690         (PMXVF64GER): Likewise.
9691         (PMXVF64GERNN): Likewise.
9692         (PMXVF64GERNP): Likewise.
9693         (PMXVF64GERPN): Likewise.
9694         (PMXVF64GERPP): Likewise.
9695         (PMXVI16GER2): Likewise.
9696         (PMXVI16GER2PP): Likewise.
9697         (PMXVI16GER2S): Likewise.
9698         (PMXVI16GER2SPP): Likewise.
9699         (PMXVI4GER8): Likewise.
9700         (PMXVI4GER8PP): Likewise.
9701         (PMXVI8GER4): Likewise.
9702         (PMXVI8GER4PP): Likewise.
9703         (PMXVI8GER4SPP): Likewise.
9704         (XVBF16GER2): Likewise.
9705         (XVBF16GER2NN): Likewise.
9706         (XVBF16GER2NP): Likewise.
9707         (XVBF16GER2PN): Likewise.
9708         (XVBF16GER2PP): Likewise.
9709         (XVF16GER2): Likewise.
9710         (XVF16GER2NN): Likewise.
9711         (XVF16GER2NP): Likewise.
9712         (XVF16GER2PN): Likewise.
9713         (XVF16GER2PP): Likewise.
9714         (XVF32GER): Likewise.
9715         (XVF32GERNN): Likewise.
9716         (XVF32GERNP): Likewise.
9717         (XVF32GERPN): Likewise.
9718         (XVF32GERPP): Likewise.
9719         (XVF64GER): Likewise.
9720         (XVF64GERNN): Likewise.
9721         (XVF64GERNP): Likewise.
9722         (XVF64GERPN): Likewise.
9723         (XVF64GERPP): Likewise.
9724         (XVI16GER2): Likewise.
9725         (XVI16GER2PP): Likewise.
9726         (XVI16GER2S): Likewise.
9727         (XVI16GER2SPP): Likewise.
9728         (XVI4GER8): Likewise.
9729         (XVI4GER8PP): Likewise.
9730         (XVI8GER4): Likewise.
9731         (XVI8GER4PP): Likewise.
9732         (XVI8GER4SPP): Likewise.
9733         (XXMFACC): Likewise.
9734         (XXMTACC): Likewise.
9735         (XXSETACCZ): Likewise.
9736         (ASSEMBLE_PAIR_V): Likewise.
9737         (BUILD_PAIR): Likewise.
9738         (DISASSEMBLE_PAIR_V): Likewise.
9739         (LXVP): New.
9740         (STXVP): New.
9741         * config/rs6000/rs6000-call.c (rs6000_gimple_fold_new_mma_builtin):
9742         Handle RS6000_BIF_LXVP and RS6000_BIF_STXVP.
9743         * config/rs6000/rs6000-gen-builtins.c (attrinfo): Add ismmaint.
9744         (parse_bif_attrs): Handle ismmaint.
9745         (write_decls): Add bif_mmaint_bit and bif_is_mmaint.
9746         (write_bif_static_init): Handle ismmaint.
9748 2021-09-17  Bill Schmidt  <wschmidt@linux.ibm.com>
9750         * config/rs6000/rs6000-call.c (rs6000_gimple_fold_new_builtin): New
9751         forward decl.
9752         (rs6000_gimple_fold_builtin): Call rs6000_gimple_fold_new_builtin.
9753         (rs6000_new_builtin_valid_without_lhs): New function.
9754         (rs6000_gimple_fold_new_mma_builtin): Likewise.
9755         (rs6000_gimple_fold_new_builtin): Likewise.
9757 2021-09-17  Thomas Schwinge  <thomas@codesourcery.com>
9759         * hash-table.h (hash_table<Descriptor, Lazy, Allocator>::expand):
9760         Destruct stale Value objects.
9761         * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor_expand):
9762         Update.
9764 2021-09-17  Roger Sayle  <roger@nextmovesoftware.com>
9766         PR c/102245
9767         * match.pd (shift optimizations): Disable recent sign-changing
9768         optimization for shifts by zero, these will be folded later.
9770 2021-09-17  Bill Schmidt  <wschmidt@linux.ibm.com>
9772         * config/rs6000/rs6000-builtin-new.def (__builtin_mffsl): Move from
9773         [power9] to [always].
9775 2021-09-17  Richard Biener  <rguenther@suse.de>
9777         * tree-vect-stmts.c (vectorizable_load): Do not frob
9778         stmt_info for SLP.
9780 2021-09-17  H.J. Lu  <hjl.tools@gmail.com>
9782         * config/i386/i386-features.c (remove_partial_avx_dependency):
9783         Also check TARGET_SSE_PARTIAL_REG_FP_CONVERTS_DEPENDENCY and
9784         and TARGET_SSE_PARTIAL_REG_CONVERTS_DEPENDENCY before generating
9785         vxorps.
9786         * config/i386/i386.h (TARGET_SSE_PARTIAL_REG_FP_CONVERTS_DEPENDENCY):
9787         New.
9788         (TARGET_SSE_PARTIAL_REG_CONVERTS_DEPENDENCY): Likewise.
9789         * config/i386/i386.md (SSE FP to FP splitters): Replace
9790         TARGET_SSE_PARTIAL_REG_DEPENDENCY with
9791         TARGET_SSE_PARTIAL_REG_FP_CONVERTS_DEPENDENCY.
9792         (SSE INT to FP splitter): Replace TARGET_SSE_PARTIAL_REG_DEPENDENCY
9793         with TARGET_SSE_PARTIAL_REG_CONVERTS_DEPENDENCY.
9794         * config/i386/x86-tune.def
9795         (X86_TUNE_SSE_PARTIAL_REG_FP_CONVERTS_DEPENDENCY): New.
9796         (X86_TUNE_SSE_PARTIAL_REG_CONVERTS_DEPENDENCY): Likewise.
9798 2021-09-17  H.J. Lu  <hjl.tools@gmail.com>
9800         PR target/101900
9801         * config/i386/i386-features.c (remove_partial_avx_dependency):
9802         Check TARGET_USE_VECTOR_FP_CONVERTS and TARGET_USE_VECTOR_CONVERTS
9803         before generating vxorps.
9805 2021-09-17  H.J. Lu  <hjl.tools@gmail.com>
9807         * config/i386/i386-options.c (processor_cost_table): Use
9808         tremont_cost for Tremont.
9809         * config/i386/x86-tune-costs.h (tremont_memcpy): New.
9810         (tremont_memset): Likewise.
9811         (tremont_cost): Likewise.
9812         * config/i386/x86-tune.def (X86_TUNE_PREFER_KNOWN_REP_MOVSB_STOSB):
9813         Enable for Tremont.
9815 2021-09-17  H.J. Lu  <hjl.tools@gmail.com>
9817         * common/config/i386/i386-common.c: Use Haswell scheduling model
9818         for Tremont.
9819         * config/i386/i386.c (ix86_sched_init_global): Prepare for Tremont
9820         scheduling pass.
9821         * config/i386/x86-tune-sched.c (ix86_issue_rate): Change Tremont
9822         issue rate to 4.
9823         (ix86_adjust_cost): Handle Tremont.
9824         * config/i386/x86-tune.def (X86_TUNE_SSE_PARTIAL_REG_DEPENDENCY):
9825         Enable for Tremont.
9826         (X86_TUNE_USE_LEAVE): Likewise.
9827         (X86_TUNE_PUSH_MEMORY): Likewise.
9828         (X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Likewise.
9829         (X86_TUNE_USE_CLTD): Likewise.
9830         (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI): Likewise.
9831         (X86_TUNE_AVOID_MFENCE): Likewise.
9832         (X86_TUNE_SSE_TYPELESS_STORES): Likewise.
9833         (X86_TUNE_SSE_LOAD0_BY_PXOR): Likewise.
9834         (X86_TUNE_ACCUMULATE_OUTGOING_ARGS): Disable for Tremont.
9835         (X86_TUNE_FOUR_JUMP_LIMIT): Likewise.
9836         (X86_TUNE_OPT_AGU): Likewise.
9837         (X86_TUNE_AVOID_LEA_FOR_ADDR): Likewise.
9838         (X86_TUNE_AVOID_MEM_OPND_FOR_CMOVE): Likewise.
9839         (X86_TUNE_EXPAND_ABS): Likewise.
9840         (X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS): Likewise.
9841         (X86_TUNE_SLOW_PSHUFB): Likewise.
9843 2021-09-17  Eric Botcazou  <ebotcazou@adacore.com>
9845         PR rtl-optimization/102306
9846         * combine.c (try_combine): Abort the combination if we are about to
9847         duplicate volatile references.
9849 2021-09-17  liuhongt  <hongtao.liu@intel.com>
9851         * config/i386/avx512fp16intrin.h (_mm_undefined_ph):
9852         New intrinsic.
9853         (_mm256_undefined_ph): Likewise.
9854         (_mm512_undefined_ph): Likewise.
9855         (_mm_cvtsh_h): Likewise.
9856         (_mm256_cvtsh_h): Likewise.
9857         (_mm512_cvtsh_h): Likewise.
9858         (_mm512_castph_ps): Likewise.
9859         (_mm512_castph_pd): Likewise.
9860         (_mm512_castph_si512): Likewise.
9861         (_mm512_castph512_ph128): Likewise.
9862         (_mm512_castph512_ph256): Likewise.
9863         (_mm512_castph128_ph512): Likewise.
9864         (_mm512_castph256_ph512): Likewise.
9865         (_mm512_zextph128_ph512): Likewise.
9866         (_mm512_zextph256_ph512): Likewise.
9867         (_mm512_castps_ph): Likewise.
9868         (_mm512_castpd_ph): Likewise.
9869         (_mm512_castsi512_ph): Likewise.
9870         * config/i386/avx512fp16vlintrin.h (_mm_castph_ps):
9871         New intrinsic.
9872         (_mm256_castph_ps): Likewise.
9873         (_mm_castph_pd): Likewise.
9874         (_mm256_castph_pd): Likewise.
9875         (_mm_castph_si128): Likewise.
9876         (_mm256_castph_si256): Likewise.
9877         (_mm_castps_ph): Likewise.
9878         (_mm256_castps_ph): Likewise.
9879         (_mm_castpd_ph): Likewise.
9880         (_mm256_castpd_ph): Likewise.
9881         (_mm_castsi128_ph): Likewise.
9882         (_mm256_castsi256_ph): Likewise.
9883         (_mm256_castph256_ph128): Likewise.
9884         (_mm256_castph128_ph256): Likewise.
9885         (_mm256_zextph128_ph256): Likewise.
9887 2021-09-17  liuhongt  <hongtao.liu@intel.com>
9889         * config/i386/avx512fp16intrin.h (_mm_cvtsh_ss):
9890         New intrinsic.
9891         (_mm_mask_cvtsh_ss): Likewise.
9892         (_mm_maskz_cvtsh_ss): Likewise.
9893         (_mm_cvtsh_sd): Likewise.
9894         (_mm_mask_cvtsh_sd): Likewise.
9895         (_mm_maskz_cvtsh_sd): Likewise.
9896         (_mm_cvt_roundsh_ss): Likewise.
9897         (_mm_mask_cvt_roundsh_ss): Likewise.
9898         (_mm_maskz_cvt_roundsh_ss): Likewise.
9899         (_mm_cvt_roundsh_sd): Likewise.
9900         (_mm_mask_cvt_roundsh_sd): Likewise.
9901         (_mm_maskz_cvt_roundsh_sd): Likewise.
9902         (_mm_cvtss_sh): Likewise.
9903         (_mm_mask_cvtss_sh): Likewise.
9904         (_mm_maskz_cvtss_sh): Likewise.
9905         (_mm_cvtsd_sh): Likewise.
9906         (_mm_mask_cvtsd_sh): Likewise.
9907         (_mm_maskz_cvtsd_sh): Likewise.
9908         (_mm_cvt_roundss_sh): Likewise.
9909         (_mm_mask_cvt_roundss_sh): Likewise.
9910         (_mm_maskz_cvt_roundss_sh): Likewise.
9911         (_mm_cvt_roundsd_sh): Likewise.
9912         (_mm_mask_cvt_roundsd_sh): Likewise.
9913         (_mm_maskz_cvt_roundsd_sh): Likewise.
9914         * config/i386/i386-builtin-types.def
9915         (V8HF_FTYPE_V2DF_V8HF_V8HF_UQI_INT,
9916         V8HF_FTYPE_V4SF_V8HF_V8HF_UQI_INT,
9917         V2DF_FTYPE_V8HF_V2DF_V2DF_UQI_INT,
9918         V4SF_FTYPE_V8HF_V4SF_V4SF_UQI_INT): Add new builtin types.
9919         * config/i386/i386-builtin.def: Add corrresponding new builtins.
9920         * config/i386/i386-expand.c: Handle new builtin types.
9921         * config/i386/sse.md (VF48_128): New mode iterator.
9922         (avx512fp16_vcvtsh2<ssescalarmodesuffix><mask_scalar_name><round_saeonly_scalar_name>):
9923         New.
9924         (avx512fp16_vcvt<ssescalarmodesuffix>2sh<mask_scalar_name><round_scalar_name>):
9925         Ditto.
9927 2021-09-17  liuhongt  <hongtao.liu@intel.com>
9929         * config/i386/avx512fp16intrin.h (_mm512_cvtph_pd):
9930         New intrinsic.
9931         (_mm512_mask_cvtph_pd): Likewise.
9932         (_mm512_maskz_cvtph_pd): Likewise.
9933         (_mm512_cvt_roundph_pd): Likewise.
9934         (_mm512_mask_cvt_roundph_pd): Likewise.
9935         (_mm512_maskz_cvt_roundph_pd): Likewise.
9936         (_mm512_cvtxph_ps): Likewise.
9937         (_mm512_mask_cvtxph_ps): Likewise.
9938         (_mm512_maskz_cvtxph_ps): Likewise.
9939         (_mm512_cvtx_roundph_ps): Likewise.
9940         (_mm512_mask_cvtx_roundph_ps): Likewise.
9941         (_mm512_maskz_cvtx_roundph_ps): Likewise.
9942         (_mm512_cvtxps_ph): Likewise.
9943         (_mm512_mask_cvtxps_ph): Likewise.
9944         (_mm512_maskz_cvtxps_ph): Likewise.
9945         (_mm512_cvtx_roundps_ph): Likewise.
9946         (_mm512_mask_cvtx_roundps_ph): Likewise.
9947         (_mm512_maskz_cvtx_roundps_ph): Likewise.
9948         (_mm512_cvtpd_ph): Likewise.
9949         (_mm512_mask_cvtpd_ph): Likewise.
9950         (_mm512_maskz_cvtpd_ph): Likewise.
9951         (_mm512_cvt_roundpd_ph): Likewise.
9952         (_mm512_mask_cvt_roundpd_ph): Likewise.
9953         (_mm512_maskz_cvt_roundpd_ph): Likewise.
9954         * config/i386/avx512fp16vlintrin.h (_mm_cvtph_pd):
9955         New intrinsic.
9956         (_mm_mask_cvtph_pd): Likewise.
9957         (_mm_maskz_cvtph_pd): Likewise.
9958         (_mm256_cvtph_pd): Likewise.
9959         (_mm256_mask_cvtph_pd): Likewise.
9960         (_mm256_maskz_cvtph_pd): Likewise.
9961         (_mm_cvtxph_ps): Likewise.
9962         (_mm_mask_cvtxph_ps): Likewise.
9963         (_mm_maskz_cvtxph_ps): Likewise.
9964         (_mm256_cvtxph_ps): Likewise.
9965         (_mm256_mask_cvtxph_ps): Likewise.
9966         (_mm256_maskz_cvtxph_ps): Likewise.
9967         (_mm_cvtxps_ph): Likewise.
9968         (_mm_mask_cvtxps_ph): Likewise.
9969         (_mm_maskz_cvtxps_ph): Likewise.
9970         (_mm256_cvtxps_ph): Likewise.
9971         (_mm256_mask_cvtxps_ph): Likewise.
9972         (_mm256_maskz_cvtxps_ph): Likewise.
9973         (_mm_cvtpd_ph): Likewise.
9974         (_mm_mask_cvtpd_ph): Likewise.
9975         (_mm_maskz_cvtpd_ph): Likewise.
9976         (_mm256_cvtpd_ph): Likewise.
9977         (_mm256_mask_cvtpd_ph): Likewise.
9978         (_mm256_maskz_cvtpd_ph): Likewise.
9979         * config/i386/i386-builtin.def: Add corresponding new builtins.
9980         * config/i386/i386-builtin-types.def: Add corresponding builtin types.
9981         * config/i386/i386-expand.c: Handle new builtin types.
9982         * config/i386/sse.md
9983         (VF4_128_8_256): New.
9984         (VF48H_AVX512VL): Ditto.
9985         (ssePHmode): Add HF vector modes.
9986         (castmode): Add new convertable modes.
9987         (qq2phsuff): Ditto.
9988         (ph2pssuffix): New.
9989         (avx512fp16_vcvt<castmode>2ph_<mode><mask_name><round_name>): Ditto.
9990         (avx512fp16_vcvt<castmode>2ph_<mode>): Ditto.
9991         (*avx512fp16_vcvt<castmode>2ph_<mode>): Ditto.
9992         (avx512fp16_vcvt<castmode>2ph_<mode>_mask): Ditto.
9993         (*avx512fp16_vcvt<castmode>2ph_<mode>_mask): Ditto.
9994         (*avx512fp16_vcvt<castmode>2ph_<mode>_mask_1): Ditto.
9995         (avx512fp16_float_extend_ph<mode>2<mask_name><round_saeonly_name>):
9996         Ditto.
9997         (avx512fp16_float_extend_ph<mode>2<mask_name>): Ditto.
9998         (*avx512fp16_float_extend_ph<mode>2_load<mask_name>): Ditto.
9999         (avx512fp16_float_extend_phv2df2<mask_name>): Ditto.
10000         (*avx512fp16_float_extend_phv2df2_load<mask_name>): Ditto.
10002 2021-09-17  liuhongt  <hongtao.liu@intel.com>
10004         * config/i386/avx512fp16intrin.h (_mm_cvttsh_i32):
10005         New intrinsic.
10006         (_mm_cvttsh_u32): Likewise.
10007         (_mm_cvtt_roundsh_i32): Likewise.
10008         (_mm_cvtt_roundsh_u32): Likewise.
10009         (_mm_cvttsh_i64): Likewise.
10010         (_mm_cvttsh_u64): Likewise.
10011         (_mm_cvtt_roundsh_i64): Likewise.
10012         (_mm_cvtt_roundsh_u64): Likewise.
10013         * config/i386/i386-builtin.def: Add corresponding new builtins.
10014         * config/i386/sse.md
10015         (avx512fp16_fix<fixunssuffix>_trunc<mode>2<round_saeonly_name>):
10016         New.
10018 2021-09-17  liuhongt  <hongtao.liu@intel.com>
10020         * config/i386/avx512fp16intrin.h (_mm512_cvttph_epi32):
10021         New intrinsic.
10022         (_mm512_mask_cvttph_epi32): Likewise.
10023         (_mm512_maskz_cvttph_epi32): Likewise.
10024         (_mm512_cvtt_roundph_epi32): Likewise.
10025         (_mm512_mask_cvtt_roundph_epi32): Likewise.
10026         (_mm512_maskz_cvtt_roundph_epi32): Likewise.
10027         (_mm512_cvttph_epu32): Likewise.
10028         (_mm512_mask_cvttph_epu32): Likewise.
10029         (_mm512_maskz_cvttph_epu32): Likewise.
10030         (_mm512_cvtt_roundph_epu32): Likewise.
10031         (_mm512_mask_cvtt_roundph_epu32): Likewise.
10032         (_mm512_maskz_cvtt_roundph_epu32): Likewise.
10033         (_mm512_cvttph_epi64): Likewise.
10034         (_mm512_mask_cvttph_epi64): Likewise.
10035         (_mm512_maskz_cvttph_epi64): Likewise.
10036         (_mm512_cvtt_roundph_epi64): Likewise.
10037         (_mm512_mask_cvtt_roundph_epi64): Likewise.
10038         (_mm512_maskz_cvtt_roundph_epi64): Likewise.
10039         (_mm512_cvttph_epu64): Likewise.
10040         (_mm512_mask_cvttph_epu64): Likewise.
10041         (_mm512_maskz_cvttph_epu64): Likewise.
10042         (_mm512_cvtt_roundph_epu64): Likewise.
10043         (_mm512_mask_cvtt_roundph_epu64): Likewise.
10044         (_mm512_maskz_cvtt_roundph_epu64): Likewise.
10045         (_mm512_cvttph_epi16): Likewise.
10046         (_mm512_mask_cvttph_epi16): Likewise.
10047         (_mm512_maskz_cvttph_epi16): Likewise.
10048         (_mm512_cvtt_roundph_epi16): Likewise.
10049         (_mm512_mask_cvtt_roundph_epi16): Likewise.
10050         (_mm512_maskz_cvtt_roundph_epi16): Likewise.
10051         (_mm512_cvttph_epu16): Likewise.
10052         (_mm512_mask_cvttph_epu16): Likewise.
10053         (_mm512_maskz_cvttph_epu16): Likewise.
10054         (_mm512_cvtt_roundph_epu16): Likewise.
10055         (_mm512_mask_cvtt_roundph_epu16): Likewise.
10056         (_mm512_maskz_cvtt_roundph_epu16): Likewise.
10057         * config/i386/avx512fp16vlintrin.h (_mm_cvttph_epi32):
10058         New intirnsic.
10059         (_mm_mask_cvttph_epi32): Likewise.
10060         (_mm_maskz_cvttph_epi32): Likewise.
10061         (_mm256_cvttph_epi32): Likewise.
10062         (_mm256_mask_cvttph_epi32): Likewise.
10063         (_mm256_maskz_cvttph_epi32): Likewise.
10064         (_mm_cvttph_epu32): Likewise.
10065         (_mm_mask_cvttph_epu32): Likewise.
10066         (_mm_maskz_cvttph_epu32): Likewise.
10067         (_mm256_cvttph_epu32): Likewise.
10068         (_mm256_mask_cvttph_epu32): Likewise.
10069         (_mm256_maskz_cvttph_epu32): Likewise.
10070         (_mm_cvttph_epi64): Likewise.
10071         (_mm_mask_cvttph_epi64): Likewise.
10072         (_mm_maskz_cvttph_epi64): Likewise.
10073         (_mm256_cvttph_epi64): Likewise.
10074         (_mm256_mask_cvttph_epi64): Likewise.
10075         (_mm256_maskz_cvttph_epi64): Likewise.
10076         (_mm_cvttph_epu64): Likewise.
10077         (_mm_mask_cvttph_epu64): Likewise.
10078         (_mm_maskz_cvttph_epu64): Likewise.
10079         (_mm256_cvttph_epu64): Likewise.
10080         (_mm256_mask_cvttph_epu64): Likewise.
10081         (_mm256_maskz_cvttph_epu64): Likewise.
10082         (_mm_cvttph_epi16): Likewise.
10083         (_mm_mask_cvttph_epi16): Likewise.
10084         (_mm_maskz_cvttph_epi16): Likewise.
10085         (_mm256_cvttph_epi16): Likewise.
10086         (_mm256_mask_cvttph_epi16): Likewise.
10087         (_mm256_maskz_cvttph_epi16): Likewise.
10088         (_mm_cvttph_epu16): Likewise.
10089         (_mm_mask_cvttph_epu16): Likewise.
10090         (_mm_maskz_cvttph_epu16): Likewise.
10091         (_mm256_cvttph_epu16): Likewise.
10092         (_mm256_mask_cvttph_epu16): Likewise.
10093         (_mm256_maskz_cvttph_epu16): Likewise.
10094         * config/i386/i386-builtin.def: Add new builtins.
10095         * config/i386/sse.md
10096         (avx512fp16_fix<fixunssuffix>_trunc<mode>2<mask_name><round_saeonly_name>):
10097         New.
10098         (avx512fp16_fix<fixunssuffix>_trunc<mode>2<mask_name>): Ditto.
10099         (*avx512fp16_fix<fixunssuffix>_trunc<mode>2_load<mask_name>): Ditto.
10100         (avx512fp16_fix<fixunssuffix>_truncv2di2<mask_name>): Ditto.
10101         (avx512fp16_fix<fixunssuffix>_truncv2di2_load<mask_name>): Ditto.
10103 2021-09-17  liuhongt  <hongtao.liu@intel.com>
10105         * config/i386/avx512fp16intrin.h (_mm_cvtsh_i32): New intrinsic.
10106         (_mm_cvtsh_u32): Likewise.
10107         (_mm_cvt_roundsh_i32): Likewise.
10108         (_mm_cvt_roundsh_u32): Likewise.
10109         (_mm_cvtsh_i64): Likewise.
10110         (_mm_cvtsh_u64): Likewise.
10111         (_mm_cvt_roundsh_i64): Likewise.
10112         (_mm_cvt_roundsh_u64): Likewise.
10113         (_mm_cvti32_sh): Likewise.
10114         (_mm_cvtu32_sh): Likewise.
10115         (_mm_cvt_roundi32_sh): Likewise.
10116         (_mm_cvt_roundu32_sh): Likewise.
10117         (_mm_cvti64_sh): Likewise.
10118         (_mm_cvtu64_sh): Likewise.
10119         (_mm_cvt_roundi64_sh): Likewise.
10120         (_mm_cvt_roundu64_sh): Likewise.
10121         * config/i386/i386-builtin-types.def: Add corresponding builtin types.
10122         * config/i386/i386-builtin.def: Add corresponding new builtins.
10123         * config/i386/i386-expand.c (ix86_expand_round_builtin):
10124         Handle new builtin types.
10125         * config/i386/sse.md
10126         (avx512fp16_vcvtsh2<sseintconvertsignprefix>si<rex64namesuffix><round_name>):
10127         New define_insn.
10128         (avx512fp16_vcvtsh2<sseintconvertsignprefix>si<rex64namesuffix>_2): Likewise.
10129         (avx512fp16_vcvt<floatsuffix>si2sh<rex64namesuffix><round_name>): Likewise.
10131 2021-09-16  Bill Schmidt  <wschmidt@linux.ibm.com>
10133         * config/rs6000/rs6000-c.c (rs6000-builtins.h): New include.
10134         (altivec_resolve_new_overloaded_builtin): New forward decl.
10135         (rs6000_new_builtin_type_compatible): New function.
10136         (altivec_resolve_overloaded_builtin): Call
10137         altivec_resolve_new_overloaded_builtin.
10138         (altivec_build_new_resolved_builtin): New function.
10139         (altivec_resolve_new_overloaded_builtin): Likewise.
10140         * config/rs6000/rs6000-call.c (rs6000_new_builtin_is_supported):
10141         Likewise.
10142         * config/rs6000/rs6000-gen-builtins.c (write_decls): Remove _p from
10143         name of rs6000_new_builtin_is_supported.
10145 2021-09-16  Uroš Bizjak  <ubizjak@gmail.com>
10147         * config/i386/i386-protos.h (ix86_decompose_address):
10148         Change return type to bool.
10149         * config/i386/i386.c (ix86_decompose_address): Ditto.
10151 2021-09-16  Tobias Burnus  <tobias@codesourcery.com>
10153         PR target/102353
10154         * config/rs6000/t-rs6000 (build/rs6000-gen-builtins.o, build/rbtree.o):
10155         Added 'build/' to target, use build/%.o rule.
10156         (build/rs6000-gen-builtins$(build_exeext)): Add 'build/' and
10157         '$(build_exeext)' to target and 'build/' for the *.o files.
10158         (rs6000-builtins.c): Update for those changes; run rs6000-gen-builtins
10159         with $(RUN_GEN).
10161 2021-09-16  Martin Jambor  <mjambor@suse.cz>
10163         * cgraph.c (cgraph_node::dump): Do not check caller count sums if
10164         the body has been removed.  Remove trailing whitespace.
10166 2021-09-16  Richard Biener  <rguenther@suse.de>
10168         PR middle-end/102360
10169         * internal-fn.c (expand_DEFERRED_INIT): Make pattern-init
10170         of non-memory more robust.
10172 2021-09-16  Daniel Cederman  <cederman@gaisler.com>
10174         * config/sparc/sparc-opts.h (enum sparc_processor_type): Add LEON5
10175         * config/sparc/sparc.c (struct processor_costs): Add LEON5 costs
10176         (leon5_adjust_cost): Increase cost of store with data dependency
10177         on ALU instruction and FPU anti-dependencies.
10178         (sparc_option_override): Add LEON5 costs
10179         (sparc_adjust_cost): Add LEON5 cost adjustments
10180         * config/sparc/sparc.h: Add LEON5
10181         * config/sparc/sparc.md: Include LEON5 scheduling information
10182         * config/sparc/sparc.opt: Add LEON5
10183         * doc/invoke.texi: Add LEON5
10184         * config/sparc/leon5.md: New file.
10186 2021-09-16  Daniel Cederman  <cederman@gaisler.com>
10188         * config/sparc/sparc.md (stack_protect_set32): Add NOP to prevent
10189         sensitive sequence for B2BST errata workaround.
10191 2021-09-16  Daniel Cederman  <cederman@gaisler.com>
10193         * config/sparc/sparc.c (sparc_do_work_around_errata): Do not begin
10194         functions with atomic instruction in the UT700 errata workaround.
10196 2021-09-16  Daniel Cederman  <cederman@gaisler.com>
10198         * config/sparc/sparc.c (next_active_non_empty_insn): New function
10199         that returns next active non empty assembly instruction.
10200         (sparc_do_work_around_errata): Use new function.
10202 2021-09-16  Daniel Cederman  <cederman@gaisler.com>
10204         * config/sparc/sparc.c (store_insn_p): Add predicate for store
10205         attributes.
10206         (load_insn_p): Add predicate for load attributes.
10207         (sparc_do_work_around_errata): Use new predicates.
10209 2021-09-16  Andreas Larsson  <andreas@gaisler.com>
10211         * config/sparc/sparc.c (dump_target_flag_bits): Print bit names for
10212         LEON and LEON3.
10214 2021-09-16  Martin Liska  <mliska@suse.cz>
10216         * config/mips/netbsd.h: Fix typo in name of a macro.
10218 2021-09-16  liuhongt  <hongtao.liu@intel.com>
10220         PR middle-end/102080
10221         * match.pd: Check mask type when doing cond_op related gimple
10222         simplification.
10223         * tree.c (is_truth_type_for): New function.
10224         * tree.h (is_truth_type_for): New declaration.
10226 2021-09-16  liuhongt  <hongtao.liu@intel.com>
10228         * config/i386/avx512fp16intrin.h (_mm512_cvtepi32_ph): New
10229         intrinsic.
10230         (_mm512_mask_cvtepi32_ph): Likewise.
10231         (_mm512_maskz_cvtepi32_ph): Likewise.
10232         (_mm512_cvt_roundepi32_ph): Likewise.
10233         (_mm512_mask_cvt_roundepi32_ph): Likewise.
10234         (_mm512_maskz_cvt_roundepi32_ph): Likewise.
10235         (_mm512_cvtepu32_ph): Likewise.
10236         (_mm512_mask_cvtepu32_ph): Likewise.
10237         (_mm512_maskz_cvtepu32_ph): Likewise.
10238         (_mm512_cvt_roundepu32_ph): Likewise.
10239         (_mm512_mask_cvt_roundepu32_ph): Likewise.
10240         (_mm512_maskz_cvt_roundepu32_ph): Likewise.
10241         (_mm512_cvtepi64_ph): Likewise.
10242         (_mm512_mask_cvtepi64_ph): Likewise.
10243         (_mm512_maskz_cvtepi64_ph): Likewise.
10244         (_mm512_cvt_roundepi64_ph): Likewise.
10245         (_mm512_mask_cvt_roundepi64_ph): Likewise.
10246         (_mm512_maskz_cvt_roundepi64_ph): Likewise.
10247         (_mm512_cvtepu64_ph): Likewise.
10248         (_mm512_mask_cvtepu64_ph): Likewise.
10249         (_mm512_maskz_cvtepu64_ph): Likewise.
10250         (_mm512_cvt_roundepu64_ph): Likewise.
10251         (_mm512_mask_cvt_roundepu64_ph): Likewise.
10252         (_mm512_maskz_cvt_roundepu64_ph): Likewise.
10253         (_mm512_cvtepi16_ph): Likewise.
10254         (_mm512_mask_cvtepi16_ph): Likewise.
10255         (_mm512_maskz_cvtepi16_ph): Likewise.
10256         (_mm512_cvt_roundepi16_ph): Likewise.
10257         (_mm512_mask_cvt_roundepi16_ph): Likewise.
10258         (_mm512_maskz_cvt_roundepi16_ph): Likewise.
10259         (_mm512_cvtepu16_ph): Likewise.
10260         (_mm512_mask_cvtepu16_ph): Likewise.
10261         (_mm512_maskz_cvtepu16_ph): Likewise.
10262         (_mm512_cvt_roundepu16_ph): Likewise.
10263         (_mm512_mask_cvt_roundepu16_ph): Likewise.
10264         (_mm512_maskz_cvt_roundepu16_ph): Likewise.
10265         * config/i386/avx512fp16vlintrin.h (_mm_cvtepi32_ph): New
10266         intrinsic.
10267         (_mm_mask_cvtepi32_ph): Likewise.
10268         (_mm_maskz_cvtepi32_ph): Likewise.
10269         (_mm256_cvtepi32_ph): Likewise.
10270         (_mm256_mask_cvtepi32_ph): Likewise.
10271         (_mm256_maskz_cvtepi32_ph): Likewise.
10272         (_mm_cvtepu32_ph): Likewise.
10273         (_mm_mask_cvtepu32_ph): Likewise.
10274         (_mm_maskz_cvtepu32_ph): Likewise.
10275         (_mm256_cvtepu32_ph): Likewise.
10276         (_mm256_mask_cvtepu32_ph): Likewise.
10277         (_mm256_maskz_cvtepu32_ph): Likewise.
10278         (_mm_cvtepi64_ph): Likewise.
10279         (_mm_mask_cvtepi64_ph): Likewise.
10280         (_mm_maskz_cvtepi64_ph): Likewise.
10281         (_mm256_cvtepi64_ph): Likewise.
10282         (_mm256_mask_cvtepi64_ph): Likewise.
10283         (_mm256_maskz_cvtepi64_ph): Likewise.
10284         (_mm_cvtepu64_ph): Likewise.
10285         (_mm_mask_cvtepu64_ph): Likewise.
10286         (_mm_maskz_cvtepu64_ph): Likewise.
10287         (_mm256_cvtepu64_ph): Likewise.
10288         (_mm256_mask_cvtepu64_ph): Likewise.
10289         (_mm256_maskz_cvtepu64_ph): Likewise.
10290         (_mm_cvtepi16_ph): Likewise.
10291         (_mm_mask_cvtepi16_ph): Likewise.
10292         (_mm_maskz_cvtepi16_ph): Likewise.
10293         (_mm256_cvtepi16_ph): Likewise.
10294         (_mm256_mask_cvtepi16_ph): Likewise.
10295         (_mm256_maskz_cvtepi16_ph): Likewise.
10296         (_mm_cvtepu16_ph): Likewise.
10297         (_mm_mask_cvtepu16_ph): Likewise.
10298         (_mm_maskz_cvtepu16_ph): Likewise.
10299         (_mm256_cvtepu16_ph): Likewise.
10300         (_mm256_mask_cvtepu16_ph): Likewise.
10301         (_mm256_maskz_cvtepu16_ph): Likewise.
10302         * config/i386/i386-builtin-types.def: Add corresponding builtin types.
10303         * config/i386/i386-builtin.def: Add corresponding new builtins.
10304         * config/i386/i386-expand.c
10305         (ix86_expand_args_builtin): Handle new builtin types.
10306         (ix86_expand_round_builtin): Ditto.
10307         * config/i386/i386-modes.def: Declare V2HF and V6HF.
10308         * config/i386/sse.md (VI2H_AVX512VL): New.
10309         (qq2phsuff): Ditto.
10310         (sseintvecmode): Add HF vector modes.
10311         (avx512fp16_vcvt<floatsuffix><sseintconvert>2ph_<mode><mask_name><round_name>):
10312         New.
10313         (avx512fp16_vcvt<floatsuffix><sseintconvert>2ph_<mode>): Ditto.
10314         (*avx512fp16_vcvt<floatsuffix><sseintconvert>2ph_<mode>): Ditto.
10315         (avx512fp16_vcvt<floatsuffix><sseintconvert>2ph_<mode>_mask): Ditto.
10316         (*avx512fp16_vcvt<floatsuffix><sseintconvert>2ph_<mode>_mask): Ditto.
10317         (*avx512fp16_vcvt<floatsuffix><sseintconvert>2ph_<mode>_mask_1): Ditto.
10318         (avx512fp16_vcvt<floatsuffix>qq2ph_v2di): Ditto.
10319         (*avx512fp16_vcvt<floatsuffix>qq2ph_v2di): Ditto.
10320         (avx512fp16_vcvt<floatsuffix>qq2ph_v2di_mask): Ditto.
10321         (*avx512fp16_vcvt<floatsuffix>qq2ph_v2di_mask): Ditto.
10322         (*avx512fp16_vcvt<floatsuffix>qq2ph_v2di_mask_1): Ditto.
10323         * config/i386/subst.md (round_qq2phsuff): New subst_attr.
10325 2021-09-16  liuhongt  <hongtao.liu@intel.com>
10327         * config/i386/avx512fp16intrin.h (_mm512_cvtph_epi32):
10328         New intrinsic/
10329         (_mm512_mask_cvtph_epi32): Likewise.
10330         (_mm512_maskz_cvtph_epi32): Likewise.
10331         (_mm512_cvt_roundph_epi32): Likewise.
10332         (_mm512_mask_cvt_roundph_epi32): Likewise.
10333         (_mm512_maskz_cvt_roundph_epi32): Likewise.
10334         (_mm512_cvtph_epu32): Likewise.
10335         (_mm512_mask_cvtph_epu32): Likewise.
10336         (_mm512_maskz_cvtph_epu32): Likewise.
10337         (_mm512_cvt_roundph_epu32): Likewise.
10338         (_mm512_mask_cvt_roundph_epu32): Likewise.
10339         (_mm512_maskz_cvt_roundph_epu32): Likewise.
10340         (_mm512_cvtph_epi64): Likewise.
10341         (_mm512_mask_cvtph_epi64): Likewise.
10342         (_mm512_maskz_cvtph_epi64): Likewise.
10343         (_mm512_cvt_roundph_epi64): Likewise.
10344         (_mm512_mask_cvt_roundph_epi64): Likewise.
10345         (_mm512_maskz_cvt_roundph_epi64): Likewise.
10346         (_mm512_cvtph_epu64): Likewise.
10347         (_mm512_mask_cvtph_epu64): Likewise.
10348         (_mm512_maskz_cvtph_epu64): Likewise.
10349         (_mm512_cvt_roundph_epu64): Likewise.
10350         (_mm512_mask_cvt_roundph_epu64): Likewise.
10351         (_mm512_maskz_cvt_roundph_epu64): Likewise.
10352         (_mm512_cvtph_epi16): Likewise.
10353         (_mm512_mask_cvtph_epi16): Likewise.
10354         (_mm512_maskz_cvtph_epi16): Likewise.
10355         (_mm512_cvt_roundph_epi16): Likewise.
10356         (_mm512_mask_cvt_roundph_epi16): Likewise.
10357         (_mm512_maskz_cvt_roundph_epi16): Likewise.
10358         (_mm512_cvtph_epu16): Likewise.
10359         (_mm512_mask_cvtph_epu16): Likewise.
10360         (_mm512_maskz_cvtph_epu16): Likewise.
10361         (_mm512_cvt_roundph_epu16): Likewise.
10362         (_mm512_mask_cvt_roundph_epu16): Likewise.
10363         (_mm512_maskz_cvt_roundph_epu16): Likewise.
10364         * config/i386/avx512fp16vlintrin.h (_mm_cvtph_epi32):
10365         New intrinsic.
10366         (_mm_mask_cvtph_epi32): Likewise.
10367         (_mm_maskz_cvtph_epi32): Likewise.
10368         (_mm256_cvtph_epi32): Likewise.
10369         (_mm256_mask_cvtph_epi32): Likewise.
10370         (_mm256_maskz_cvtph_epi32): Likewise.
10371         (_mm_cvtph_epu32): Likewise.
10372         (_mm_mask_cvtph_epu32): Likewise.
10373         (_mm_maskz_cvtph_epu32): Likewise.
10374         (_mm256_cvtph_epu32): Likewise.
10375         (_mm256_mask_cvtph_epu32): Likewise.
10376         (_mm256_maskz_cvtph_epu32): Likewise.
10377         (_mm_cvtph_epi64): Likewise.
10378         (_mm_mask_cvtph_epi64): Likewise.
10379         (_mm_maskz_cvtph_epi64): Likewise.
10380         (_mm256_cvtph_epi64): Likewise.
10381         (_mm256_mask_cvtph_epi64): Likewise.
10382         (_mm256_maskz_cvtph_epi64): Likewise.
10383         (_mm_cvtph_epu64): Likewise.
10384         (_mm_mask_cvtph_epu64): Likewise.
10385         (_mm_maskz_cvtph_epu64): Likewise.
10386         (_mm256_cvtph_epu64): Likewise.
10387         (_mm256_mask_cvtph_epu64): Likewise.
10388         (_mm256_maskz_cvtph_epu64): Likewise.
10389         (_mm_cvtph_epi16): Likewise.
10390         (_mm_mask_cvtph_epi16): Likewise.
10391         (_mm_maskz_cvtph_epi16): Likewise.
10392         (_mm256_cvtph_epi16): Likewise.
10393         (_mm256_mask_cvtph_epi16): Likewise.
10394         (_mm256_maskz_cvtph_epi16): Likewise.
10395         (_mm_cvtph_epu16): Likewise.
10396         (_mm_mask_cvtph_epu16): Likewise.
10397         (_mm_maskz_cvtph_epu16): Likewise.
10398         (_mm256_cvtph_epu16): Likewise.
10399         (_mm256_mask_cvtph_epu16): Likewise.
10400         (_mm256_maskz_cvtph_epu16): Likewise.
10401         * config/i386/i386-builtin-types.def: Add new builtin types.
10402         * config/i386/i386-builtin.def: Add new builtins.
10403         * config/i386/i386-expand.c
10404         (ix86_expand_args_builtin): Handle new builtin types.
10405         (ix86_expand_round_builtin): Ditto.
10406         * config/i386/sse.md (sseintconvert): New.
10407         (ssePHmode): Ditto.
10408         (UNSPEC_US_FIX_NOTRUNC): Ditto.
10409         (sseintconvertsignprefix): Ditto.
10410         (avx512fp16_vcvtph2<sseintconvertsignprefix><sseintconvert>_<mode><mask_name><round_name>):
10411         Ditto.
10413 2021-09-16  liuhongt  <hongtao.liu@intel.com>
10415         * config/i386/avx512fp16intrin.h: (_mm_cvtsi16_si128):
10416         New intrinsic.
10417         (_mm_cvtsi128_si16): Likewise.
10418         (_mm_mask_load_sh): Likewise.
10419         (_mm_maskz_load_sh): Likewise.
10420         (_mm_mask_store_sh): Likewise.
10421         (_mm_move_sh): Likewise.
10422         (_mm_mask_move_sh): Likewise.
10423         (_mm_maskz_move_sh): Likewise.
10424         * config/i386/i386-builtin-types.def: Add corresponding builtin types.
10425         * config/i386/i386-builtin.def: Add corresponding new builtins.
10426         * config/i386/i386-expand.c
10427         (ix86_expand_special_args_builtin): Handle new builtin types.
10428         (ix86_expand_vector_init_one_nonzero): Adjust for FP16 target.
10429         * config/i386/sse.md (VI2F): New mode iterator.
10430         (vec_set<mode>_0): Use new mode iterator.
10431         (avx512f_mov<ssescalarmodelower>_mask): Adjust for HF vector mode.
10432         (avx512f_store<mode>_mask): Ditto.
10434 2021-09-16  Kewen Lin  <linkw@linux.ibm.com>
10436         * config/rs6000/rs6000.opt (-mtoc-fusion): Remove.
10438 2021-09-15  David Edelsohn  <dje.gcc@gmail.com>
10440         * config/rs6000/rs6000.c (rs6000_xcoff_encode_section_info):
10441         Proceed if no symbol summary or the symbol alias flag is false.
10443 2021-09-15  Jakub Jelinek  <jakub@redhat.com>
10445         PR c++/88578
10446         PR c++/102295
10447         * varasm.c (output_constructor_regular_field): Instead of assertion
10448         that array_size_for_constructor result is equal to size of
10449         TREE_TYPE (local->val) in bytes, assert that the type size is greater
10450         or equal to array_size_for_constructor result and use type size as
10451         fieldsize.
10453 2021-09-15  Martin Liska  <mliska@suse.cz>
10455         PR target/102351
10456         * config/i386/vxworks.h: Use new macro TARGET_CPU_P.
10458 2021-09-15  Martin Liska  <mliska@suse.cz>
10460         PR target/102349
10461         * config/rs6000/rs6000.c (rs6000_xcoff_encode_section_info):
10462         Check that we have a symbol summary for a symbol.
10464 2021-09-15  Richard Biener  <rguenther@suse.de>
10466         PR target/102348
10467         * config/rs6000/lynx.h: Remove undef of PREFERRED_DEBUGGING_TYPE
10468         to inherit from elfos.h
10470 2021-09-15  liuhongt  <hongtao.liu@intel.com>
10472         PR target/102327
10473         * config/i386/i386-expand.c
10474         (ix86_expand_vector_init_interleave): Use puncklwd to pack 2
10475         HFmodes.
10476         (ix86_expand_vector_set): Use blendw instead of pinsrw.
10477         * config/i386/i386.c (ix86_can_change_mode_class): Adjust for
10478         AVX512FP16 which supports 16bit vector load.
10479         * config/i386/sse.md (avx512bw_interleave_highv32hi<mask_name>):
10480         Rename to ..
10481         (avx512bw_interleave_high<mode><mask_name>): .. this, and
10482         extend to V32HFmode.
10483         (avx2_interleave_highv16hi<mask_name>): Rename to ..
10484         (avx2_interleave_high<mode><mask_name>): .. this, and extend
10485         to V16HFmode.
10486         (vec_interleave_highv8hi<mask_name>): Rename to ..
10487         (vec_interleave_high<mode><mask_name>): .. this, and extend to V8HFmode.
10488         (<mask_codefor>avx512bw_interleave_lowv32hi<mask_name>):
10489         Rename to ..
10490         (<mask_codefor>avx512bw_interleave_low<mode><mask_name>):
10491         this, and extend to V32HFmode.
10492         (avx2_interleave_lowv16hi<mask_name>): Rename to ..
10493         (avx2_interleave_low<mode><mask_name>): .. this, and extend to V16HFmode.
10494         (vec_interleave_lowv8hi<mask_name>): Rename to ..
10495         (vec_interleave_low<mode><mask_name>): .. this, and extend to V8HFmode.
10496         (sse4_1_pblendw): Rename to ..
10497         (sse4_1_pblend<blendsuf>): .. this, and extend to V8HFmode.
10498         (avx2_pblendph): New define_expand.
10499         (<sse2p4_1>_pinsr<ssemodesuffix>): Refactor, use
10500         sseintmodesuffix instead of ssemodesuffix.
10501         (blendsuf): New mode attr.
10503 2021-09-15  Richard Biener  <rguenther@suse.de>
10505         * tree-vectorizer.h (dr_misalignment): Move out of line.
10506         (dr_target_alignment): New.
10507         (DR_TARGET_ALIGNMENT): Wrap dr_target_alignment.
10508         (set_dr_target_alignment): New.
10509         (SET_DR_TARGET_ALIGNMENT): Wrap set_dr_target_alignment.
10510         * tree-vect-data-refs.c (dr_misalignment): Compute and
10511         return the group members misalignment.
10512         (vect_compute_data_ref_alignment): Use SET_DR_TARGET_ALIGNMENT.
10513         (vect_analyze_data_refs_alignment): Compute alignment only
10514         for the first element of a DR group.
10515         (vect_slp_analyze_node_alignment): Likewise.
10517 2021-09-15  Hongyu Wang  <hongyu.wang@intel.com>
10519         * config/i386/avx512fp16intrin.h: Adjust all builtin calls.
10520         * config/i386/avx512fp16vlintrin.h: Likewise.
10521         * config/i386/i386-builtin.def: Adjust builtin name and
10522         enumeration to match AVX512F style.
10524 2021-09-15  Richard Biener  <rguenther@suse.de>
10526         PR tree-optimization/102318
10527         * tree-vect-loop.c (vect_transform_cycle_phi): Revert
10528         previous change and do the mode conversion separately from
10529         the sign conversion.
10531 2021-09-15  Hongtao Liu  <hongtao.liu@intel.com>
10532             Peter Cordes  <peter@cordes.ca>
10534         PR target/91103
10535         * config/i386/sse.md (extract_suf): Add V8SF/V8SI/V4DF/V4DI.
10536         (*vec_extract<mode><ssescalarmodelower>_valign): Output
10537         vextract{i,f}{32x4,64x2} instruction when byte_offset % 16 ==
10538         0.
10540 2021-09-15  Richard Biener  <rguenther@suse.de>
10542         * config.gcc: Remove vax-*-openbsd* configuration.
10544 2021-09-15  Richard Biener  <rguenther@suse.de>
10546         * config.gcc: Remove m68k-openbsd.
10548 2021-09-15  Max Filippov  <jcmvbkbc@gmail.com>
10550         PR target/102336
10551         * config/xtensa/t-xtensa (TM_H): Add include/xtensa-config.h.
10553 2021-09-14  Peter Bergner  <bergner@linux.ibm.com>
10555         * config/rs6000/mma.md (unspec): Delete UNSPEC_MMA_XXSETACCZ.
10556         (unspecv): Add UNSPECV_MMA_XXSETACCZ.
10557         (*mma_xxsetaccz): Delete.
10558         (mma_xxsetaccz): Change to define_insn.  Remove operand 1.
10559         Use UNSPECV_MMA_XXSETACCZ.  Update comment.
10560         * config/rs6000/rs6000.c (rs6000_rtx_costs): Use UNSPECV_MMA_XXSETACCZ.
10562 2021-09-14  Iain Sandoe  <iain@sandoe.co.uk>
10564         * Makefile.in: Remove variables related to applying no-PIE
10565         to the exes on $build.
10566         * configure: Regenerate.
10567         * configure.ac: Remove configuration related to applying
10568         no-PIE to the exes on $build.
10570 2021-09-14  Claudiu Zissulescu  <claziss@synopsys.com>
10572         * config/arc/arc.md (doloop_end): Add missing mode.
10573         (loop_end): Likewise.
10575 2021-09-14  Jakub Jelinek  <jakub@redhat.com>
10577         * gimplify.c (goa_stabilize_expr): Add depth argument, propagate
10578         it to recursive calls, for depth above 7 just gimplify or return.
10579         Perform a test even for MODIFY_EXPR, ADDR_EXPR, COMPOUND_EXPR with
10580         __builtin_clear_padding and TARGET_EXPR.
10581         (gimplify_omp_atomic): Adjust goa_stabilize_expr callers.
10583 2021-09-14  liuhongt  <hongtao.liu@intel.com>
10585         * config/i386/avx512fp16intrin.h (_mm_fpclass_sh_mask):
10586         New intrinsic.
10587         (_mm_mask_fpclass_sh_mask): Likewise.
10588         (_mm512_mask_fpclass_ph_mask): Likewise.
10589         (_mm512_fpclass_ph_mask): Likewise.
10590         (_mm_getexp_sh): Likewise.
10591         (_mm_mask_getexp_sh): Likewise.
10592         (_mm_maskz_getexp_sh): Likewise.
10593         (_mm512_getexp_ph): Likewise.
10594         (_mm512_mask_getexp_ph): Likewise.
10595         (_mm512_maskz_getexp_ph): Likewise.
10596         (_mm_getexp_round_sh): Likewise.
10597         (_mm_mask_getexp_round_sh): Likewise.
10598         (_mm_maskz_getexp_round_sh): Likewise.
10599         (_mm512_getexp_round_ph): Likewise.
10600         (_mm512_mask_getexp_round_ph): Likewise.
10601         (_mm512_maskz_getexp_round_ph): Likewise.
10602         (_mm_getmant_sh): Likewise.
10603         (_mm_mask_getmant_sh): Likewise.
10604         (_mm_maskz_getmant_sh): Likewise.
10605         (_mm512_getmant_ph): Likewise.
10606         (_mm512_mask_getmant_ph): Likewise.
10607         (_mm512_maskz_getmant_ph): Likewise.
10608         (_mm_getmant_round_sh): Likewise.
10609         (_mm_mask_getmant_round_sh): Likewise.
10610         (_mm_maskz_getmant_round_sh): Likewise.
10611         (_mm512_getmant_round_ph): Likewise.
10612         (_mm512_mask_getmant_round_ph): Likewise.
10613         (_mm512_maskz_getmant_round_ph): Likewise.
10614         * config/i386/avx512fp16vlintrin.h (_mm_mask_fpclass_ph_mask):
10615         New intrinsic.
10616         (_mm_fpclass_ph_mask): Likewise.
10617         (_mm256_mask_fpclass_ph_mask): Likewise.
10618         (_mm256_fpclass_ph_mask): Likewise.
10619         (_mm256_getexp_ph): Likewise.
10620         (_mm256_mask_getexp_ph): Likewise.
10621         (_mm256_maskz_getexp_ph): Likewise.
10622         (_mm_getexp_ph): Likewise.
10623         (_mm_mask_getexp_ph): Likewise.
10624         (_mm_maskz_getexp_ph): Likewise.
10625         (_mm256_getmant_ph): Likewise.
10626         (_mm256_mask_getmant_ph): Likewise.
10627         (_mm256_maskz_getmant_ph): Likewise.
10628         (_mm_getmant_ph): Likewise.
10629         (_mm_mask_getmant_ph): Likewise.
10630         (_mm_maskz_getmant_ph): Likewise.
10631         * config/i386/i386-builtin-types.def: Add corresponding builtin types.
10632         * config/i386/i386-builtin.def: Add corresponding new builtins.
10633         * config/i386/i386-expand.c
10634         (ix86_expand_args_builtin): Handle new builtin types.
10635         (ix86_expand_round_builtin): Ditto.
10636         * config/i386/sse.md (vecmemsuffix): Add HF vector modes.
10637         (<avx512>_getexp<mode><mask_name><round_saeonly_name>): Adjust
10638         to support HF vector modes.
10639         (avx512f_sgetexp<mode><mask_scalar_name><round_saeonly_scalar_name):
10640         Ditto.
10641         (avx512dq_fpclass<mode><mask_scalar_merge_name>): Ditto.
10642         (avx512dq_vmfpclass<mode><mask_scalar_merge_name>): Ditto.
10643         (<avx512>_getmant<mode><mask_name><round_saeonly_name>): Ditto.
10644         (avx512f_vgetmant<mode><mask_scalar_name><round_saeonly_scalar_name>):
10645         Ditto.
10647 2021-09-14  liuhongt  <hongtao.liu@intel.com>
10649         * config/i386/avx512fp16intrin.h (_mm512_reduce_ph):
10650         New intrinsic.
10651         (_mm512_mask_reduce_ph): Likewise.
10652         (_mm512_maskz_reduce_ph): Likewise.
10653         (_mm512_reduce_round_ph): Likewise.
10654         (_mm512_mask_reduce_round_ph): Likewise.
10655         (_mm512_maskz_reduce_round_ph): Likewise.
10656         (_mm_reduce_sh): Likewise.
10657         (_mm_mask_reduce_sh): Likewise.
10658         (_mm_maskz_reduce_sh): Likewise.
10659         (_mm_reduce_round_sh): Likewise.
10660         (_mm_mask_reduce_round_sh): Likewise.
10661         (_mm_maskz_reduce_round_sh): Likewise.
10662         (_mm512_roundscale_ph): Likewise.
10663         (_mm512_mask_roundscale_ph): Likewise.
10664         (_mm512_maskz_roundscale_ph): Likewise.
10665         (_mm512_roundscale_round_ph): Likewise.
10666         (_mm512_mask_roundscale_round_ph): Likewise.
10667         (_mm512_maskz_roundscale_round_ph): Likewise.
10668         (_mm_roundscale_sh): Likewise.
10669         (_mm_mask_roundscale_sh): Likewise.
10670         (_mm_maskz_roundscale_sh): Likewise.
10671         (_mm_roundscale_round_sh): Likewise.
10672         (_mm_mask_roundscale_round_sh): Likewise.
10673         (_mm_maskz_roundscale_round_sh): Likewise.
10674         * config/i386/avx512fp16vlintrin.h: (_mm_reduce_ph):
10675         New intrinsic.
10676         (_mm_mask_reduce_ph): Likewise.
10677         (_mm_maskz_reduce_ph): Likewise.
10678         (_mm256_reduce_ph): Likewise.
10679         (_mm256_mask_reduce_ph): Likewise.
10680         (_mm256_maskz_reduce_ph): Likewise.
10681         (_mm_roundscale_ph): Likewise.
10682         (_mm_mask_roundscale_ph): Likewise.
10683         (_mm_maskz_roundscale_ph): Likewise.
10684         (_mm256_roundscale_ph): Likewise.
10685         (_mm256_mask_roundscale_ph): Likewise.
10686         (_mm256_maskz_roundscale_ph): Likewise.
10687         * config/i386/i386-builtin-types.def: Add corresponding builtin types.
10688         * config/i386/i386-builtin.def: Add corresponding new builtins.
10689         * config/i386/i386-expand.c
10690         (ix86_expand_args_builtin): Handle new builtin types.
10691         (ix86_expand_round_builtin): Ditto.
10692         * config/i386/sse.md (<mask_codefor>reducep<mode><mask_name>):
10693         Renamed to ...
10694         (<mask_codefor>reducep<mode><mask_name><round_saeonly_name>):
10695         ... this, and adjust for round operands.
10696         (reduces<mode><mask_scalar_name>): Likewise, with ...
10697         (reduces<mode><mask_scalar_name><round_saeonly_scalar_name):
10698         ... this.
10699         (<avx512>_rndscale<mode><mask_name><round_saeonly_name>):
10700         Adjust for HF vector modes.
10701         (avx512f_rndscale<mode><mask_scalar_name><round_saeonly_scalar_name>):
10702         Ditto.
10703         (*avx512f_rndscale<mode><round_saeonly_name>): Ditto.
10705 2021-09-14  liuhongt  <hongtao.liu@intel.com>
10707         * config/i386/avx512fp16intrin.h: (_mm512_rcp_ph):
10708         New intrinsic.
10709         (_mm512_mask_rcp_ph): Likewise.
10710         (_mm512_maskz_rcp_ph): Likewise.
10711         (_mm_rcp_sh): Likewise.
10712         (_mm_mask_rcp_sh): Likewise.
10713         (_mm_maskz_rcp_sh): Likewise.
10714         (_mm512_scalef_ph): Likewise.
10715         (_mm512_mask_scalef_ph): Likewise.
10716         (_mm512_maskz_scalef_ph): Likewise.
10717         (_mm512_scalef_round_ph): Likewise.
10718         (_mm512_mask_scalef_round_ph): Likewise.
10719         (_mm512_maskz_scalef_round_ph): Likewise.
10720         (_mm_scalef_sh): Likewise.
10721         (_mm_mask_scalef_sh): Likewise.
10722         (_mm_maskz_scalef_sh): Likewise.
10723         (_mm_scalef_round_sh): Likewise.
10724         (_mm_mask_scalef_round_sh): Likewise.
10725         (_mm_maskz_scalef_round_sh): Likewise.
10726         * config/i386/avx512fp16vlintrin.h (_mm_rcp_ph):
10727         New intrinsic.
10728         (_mm256_rcp_ph): Likewise.
10729         (_mm_mask_rcp_ph): Likewise.
10730         (_mm256_mask_rcp_ph): Likewise.
10731         (_mm_maskz_rcp_ph): Likewise.
10732         (_mm256_maskz_rcp_ph): Likewise.
10733         (_mm_scalef_ph): Likewise.
10734         (_mm256_scalef_ph): Likewise.
10735         (_mm_mask_scalef_ph): Likewise.
10736         (_mm256_mask_scalef_ph): Likewise.
10737         (_mm_maskz_scalef_ph): Likewise.
10738         (_mm256_maskz_scalef_ph): Likewise.
10739         * config/i386/i386-builtin.def: Add new builtins.
10740         * config/i386/sse.md (VFH_AVX512VL): New.
10741         (avx512fp16_rcp<mode>2<mask_name>): Ditto.
10742         (avx512fp16_vmrcpv8hf2<mask_scalar_name>): Ditto.
10743         (avx512f_vmscalef<mode><mask_scalar_name><round_scalar_name>):
10744         Adjust to support HF vector modes.
10745         (<avx512>_scalef<mode><mask_name><round_name>): Ditto.
10747 2021-09-14  liuhongt  <hongtao.liu@intel.com>
10749         * config/i386/avx512fp16intrin.h: (_mm512_sqrt_ph):
10750         New intrinsic.
10751         (_mm512_mask_sqrt_ph): Likewise.
10752         (_mm512_maskz_sqrt_ph): Likewise.
10753         (_mm512_sqrt_round_ph): Likewise.
10754         (_mm512_mask_sqrt_round_ph): Likewise.
10755         (_mm512_maskz_sqrt_round_ph): Likewise.
10756         (_mm512_rsqrt_ph): Likewise.
10757         (_mm512_mask_rsqrt_ph): Likewise.
10758         (_mm512_maskz_rsqrt_ph): Likewise.
10759         (_mm_rsqrt_sh): Likewise.
10760         (_mm_mask_rsqrt_sh): Likewise.
10761         (_mm_maskz_rsqrt_sh): Likewise.
10762         (_mm_sqrt_sh): Likewise.
10763         (_mm_mask_sqrt_sh): Likewise.
10764         (_mm_maskz_sqrt_sh): Likewise.
10765         (_mm_sqrt_round_sh): Likewise.
10766         (_mm_mask_sqrt_round_sh): Likewise.
10767         (_mm_maskz_sqrt_round_sh): Likewise.
10768         * config/i386/avx512fp16vlintrin.h (_mm_sqrt_ph): New intrinsic.
10769         (_mm256_sqrt_ph): Likewise.
10770         (_mm_mask_sqrt_ph): Likewise.
10771         (_mm256_mask_sqrt_ph): Likewise.
10772         (_mm_maskz_sqrt_ph): Likewise.
10773         (_mm256_maskz_sqrt_ph): Likewise.
10774         (_mm_rsqrt_ph): Likewise.
10775         (_mm256_rsqrt_ph): Likewise.
10776         (_mm_mask_rsqrt_ph): Likewise.
10777         (_mm256_mask_rsqrt_ph): Likewise.
10778         (_mm_maskz_rsqrt_ph): Likewise.
10779         (_mm256_maskz_rsqrt_ph): Likewise.
10780         * config/i386/i386-builtin-types.def: Add corresponding builtin types.
10781         * config/i386/i386-builtin.def: Add corresponding new builtins.
10782         * config/i386/i386-expand.c
10783         (ix86_expand_args_builtin): Handle new builtins.
10784         (ix86_expand_round_builtin): Ditto.
10785         * config/i386/sse.md (VF_AVX512FP16VL): New.
10786         (sqrt<mode>2): Adjust for HF vector modes.
10787         (<sse>_sqrt<mode>2<mask_name><round_name>): Likewise.
10788         (<sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>):
10789         Likewise.
10790         (<sse>_rsqrt<mode>2<mask_name>): New.
10791         (avx512fp16_vmrsqrtv8hf2<mask_scalar_name>): Likewise.
10793 2021-09-13  Thomas Schwinge  <thomas@codesourcery.com>
10795         PR bootstrap/101574
10796         * diagnostic-spec.c (warning_suppressed_at, copy_warning): Handle
10797         'RESERVED_LOCATION_P' locations.
10798         * warning-control.cc (get_nowarn_spec, suppress_warning)
10799         (copy_warning): Likewise.
10801 2021-09-13  Thomas Schwinge  <thomas@codesourcery.com>
10803         * diagnostic-spec.h (typedef xint_hash_t): Use 'location_t' instead of...
10804         (typedef key_type_t): ... this.  Remove.
10805         (nowarn_map): Document.
10806         * diagnostic-spec.c (nowarn_map): Likewise.
10807         * warning-control.cc (convert_to_key): Evolve functions into...
10808         (get_location): ... these.  Adjust all users.
10810 2021-09-13  Thomas Schwinge  <thomas@codesourcery.com>
10812         * warning-control.cc (copy_warning): Remove 'nowarn_map' setup.
10814 2021-09-13  Jason Merrill  <jason@redhat.com>
10816         * params.opt: Add destructive-interference-size and
10817         constructive-interference-size.
10818         * doc/invoke.texi: Document them.
10819         * config/aarch64/aarch64.c (aarch64_override_options_internal):
10820         Set them.
10821         * config/arm/arm.c (arm_option_override): Set them.
10822         * config/i386/i386-options.c (ix86_option_override_internal):
10823         Set them.
10825 2021-09-13  Martin Liska  <mliska@suse.cz>
10826             H.J. Lu  <hjl.tools@gmail.com>
10828         PR target/101696
10829         * common/config/i386/cpuinfo.h (cpu_indicator_init): Add support
10830         for x86-64 micro levels for __builtin_cpu_supports.
10831         * common/config/i386/i386-cpuinfo.h (enum feature_priority):
10832         Add priorities for the micro-arch levels.
10833         (enum processor_features): Add new features.
10834         * common/config/i386/i386-isas.h: Add micro-arch features.
10835         * config/i386/i386-builtins.c (get_builtin_code_for_version):
10836         Support the micro-arch levels by callsing
10837         __builtin_cpu_supports.
10838         * doc/extend.texi: Document that the levels are support by
10839           __builtin_cpu_supports.
10841 2021-09-13  Andrew Pinski  <apinski@marvell.com>
10843         PR target/95969
10844         * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin_lane_check):
10845         New function.
10846         (aarch64_general_fold_builtin): Handle AARCH64_SIMD_BUILTIN_LANE_CHECK.
10847         (aarch64_general_gimple_fold_builtin): Likewise.
10849 2021-09-13  Andrew Pinski  <apinski@marvell.com>
10851         * config.gcc: Add m32r-*-linux* and m32rle-*-linux*
10852         to the Unsupported targets list.
10853         Remove support for m32r-*-linux* and m32rle-*-linux*.
10854         * config/m32r/linux.h: Removed.
10855         * config/m32r/t-linux: Removed.
10857 2021-09-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10859         PR target/102252
10860         * config/aarch64/aarch64.c (aarch64_classify_address): Don't allow
10861         register index for SVE predicate modes.
10863 2021-09-13  Aldy Hernandez  <aldyh@redhat.com>
10865         * tree-ssa-threadbackward.c
10866         (back_threader_profitability::profitable_path_p): Remove FSM
10867         references.
10868         (back_threader_registry::register_path): Same.
10869         * tree-ssa-threadedge.c
10870         (jump_threader::simplify_control_stmt_condition): Same.
10871         * tree-ssa-threadupdate.c (jt_path_registry::jt_path_registry):
10872         Add backedge_threads argument.
10873         (fwd_jt_path_registry::fwd_jt_path_registry): Pass
10874         backedge_threads argument.
10875         (back_jt_path_registry::back_jt_path_registry):  Same.
10876         (dump_jump_thread_path): Adjust for FSM removal.
10877         (back_jt_path_registry::rewire_first_differing_edge): Same.
10878         (back_jt_path_registry::adjust_paths_after_duplication): Same.
10879         (back_jt_path_registry::update_cfg): Same.
10880         (jt_path_registry::register_jump_thread): Same.
10881         * tree-ssa-threadupdate.h (enum jump_thread_edge_type): Remove
10882         EDGE_FSM_THREAD.
10883         (class back_jt_path_registry): Add backedge_threads to
10884         constructor.
10886 2021-09-13  Martin Liska  <mliska@suse.cz>
10888         PR c++/101331
10889         * asan.h (sanitize_coverage_p): Handle when fn == NULL.
10891 2021-09-13  H.J. Lu  <hjl.tools@gmail.com>
10893         PR target/101935
10894         * config/i386/i386.h (TARGET_AVX256_MOVE_BY_PIECES): New.
10895         (TARGET_AVX256_STORE_BY_PIECES): Likewise.
10896         (MOVE_MAX): Check TARGET_AVX256_MOVE_BY_PIECES and
10897         TARGET_AVX256_STORE_BY_PIECES instead of
10898         TARGET_AVX256_SPLIT_UNALIGNED_LOAD and
10899         TARGET_AVX256_SPLIT_UNALIGNED_STORE.
10900         (STORE_MAX_PIECES): Check TARGET_AVX256_STORE_BY_PIECES instead
10901         of TARGET_AVX256_SPLIT_UNALIGNED_STORE.
10902         * config/i386/x86-tune.def (X86_TUNE_AVX256_MOVE_BY_PIECES): New.
10903         (X86_TUNE_AVX256_STORE_BY_PIECES): Likewise.
10905 2021-09-13  liuhongt  <hongtao.liu@intel.com>
10907         PR bootstrap/102302
10908         * expmed.c (extract_bit_field_using_extv): Use
10909         gen_lowpart_if_possible instead of gen_lowpart to avoid ICE.
10911 2021-09-13  Aldy Hernandez  <aldyh@redhat.com>
10913         * Makefile.in (OBJS): Add value-pointer-equiv.o.
10914         * gimple-ssa-evrp.c (class ssa_equiv_stack): Move to
10915         value-pointer-equiv.*.
10916         (ssa_equiv_stack::ssa_equiv_stack): Same.
10917         (ssa_equiv_stack::enter): Same.
10918         (ssa_equiv_stack::leave): Same.
10919         (ssa_equiv_stack::push_replacement): Same.
10920         (ssa_equiv_stack::get_replacement): Same.
10921         (is_pointer_ssa): Same.
10922         (class pointer_equiv_analyzer): Same.
10923         (pointer_equiv_analyzer::pointer_equiv_analyzer): Same.
10924         (pointer_equiv_analyzer::~pointer_equiv_analyzer): Same.
10925         (pointer_equiv_analyzer::set_global_equiv): Same.
10926         (pointer_equiv_analyzer::set_cond_equiv): Same.
10927         (pointer_equiv_analyzer::get_equiv): Same.
10928         (pointer_equiv_analyzer::enter): Same.
10929         (pointer_equiv_analyzer::leave): Same.
10930         (pointer_equiv_analyzer::get_equiv_expr): Same.
10931         (pta_valueize): Same.
10932         (pointer_equiv_analyzer::visit_stmt): Same.
10933         (pointer_equiv_analyzer::visit_edge): Same.
10934         (hybrid_folder::value_of_expr): Same.
10935         (hybrid_folder::value_on_edge): Same.
10936         * value-pointer-equiv.cc: New file.
10937         * value-pointer-equiv.h: New file.
10939 2021-09-13  Richard Earnshaw  <rearnsha@arm.com>
10941         PR target/102125
10942         * gimple-fold.c (gimple_fold_builtin_memory_op): Allow folding
10943         memcpy if the size is not more than MOVE_MAX * MOVE_RATIO.
10945 2021-09-13  Richard Earnshaw  <rearnsha@arm.com>
10947         PR target/102125
10948         * config/arm/arm.md (movmisaligndi): New define_expand.
10949         * config/arm/vec-common.md (movmisalign<mode>): Iterate over VDQ mode.
10951 2021-09-13  Richard Earnshaw  <rearnsha@arm.com>
10953         PR target/102125
10954         * emit-rtl.c (gen_highpart): Use adjust_address to handle
10955         MEM rather than calling simplify_gen_subreg.
10957 2021-09-13  Jan-Benedict Glaw  <jbglaw@ług-owl.de>
10959         * config/alpha/vms.h (INIT_CUMULATIVE_ARGS): Wrap multi-statment
10960         define into a block.
10962 2021-09-13  Richard Biener  <rguenther@suse.de>
10964         * config/darwin.h (DARWIN_PREFER_DWARF): Do not define.
10965         * config/i386/darwin.h (PREFERRED_DEBUGGING_TYPE): Do not
10966         change based on DARWIN_PREFER_DWARF not being defined.
10968 2021-09-13  Richard Biener  <rguenther@suse.de>
10970         * config/i386/lynx.h: Remove undef of PREFERRED_DEBUGGING_TYPE
10971         to inherit from elfos.h
10973 2021-09-13  Richard Biener  <rguenther@suse.de>
10975         * config.gcc: Add cr16-*-* to the list of obsoleted targets.
10977 2021-09-13  Richard Biener  <rguenther@suse.de>
10979         * config/avr/elf.h (PREFERRED_DEBUGGING_TYPE): Remove
10980         override, pick up DWARF2_DEBUG define from elfos.h
10982 2021-09-13  Richard Biener  <rguenther@suse.de>
10984         * config/rx/rx.h (PREFERRED_DEBUGGING_TYPE): Always define to
10985         DWARF2_DEBUG.
10987 2021-09-13  Richard Biener  <rguenther@suse.de>
10989         * config/alpha/vms.h (PREFERRED_DEBUGGING_TYPE): Define to
10990         DWARF2_DEBUG.
10992 2021-09-13  Richard Biener  <rguenther@suse.de>
10994         * config/i386/cygming.h: Always default to DWARF2 debugging.
10995         Do not define DBX_DEBUGGING_INFO, that's done via dbxcoff.h
10996         already.
10997         * doc/install.texi: Document binutils 2.16 as minimum
10998         requirement for mingw.
11000 2021-09-13  Kewen Lin  <linkw@linux.ibm.com>
11002         * config/rs6000/rs6000.c (struct rs6000_cost_data): New members
11003         nstmts, nloads and extra_ctor_cost.
11004         (rs6000_density_test): Add load density related heuristics.  Do
11005         extra costing on vector construction statements if need.
11006         (rs6000_init_cost): Init new members.
11007         (rs6000_update_target_cost_per_stmt): New function.
11008         (rs6000_add_stmt_cost): Factor vect_nonmem hunk out to function
11009         rs6000_update_target_cost_per_stmt and call it.
11011 2021-09-13  Kewen Lin  <linkw@linux.ibm.com>
11013         * config/rs6000/rs6000.c (struct rs6000_cost_data): Remove typedef.
11014         (rs6000_init_cost): Adjust.
11016 2021-09-13  liuhongt  <hongtao.liu@intel.com>
11018         * config/i386/i386.md: (UNSPEC_COPYSIGN): Remove.
11019         (UNSPEC_XORSIGN): Ditto.
11021 2021-09-12  Roger Sayle  <roger@nextmovesoftware.com>
11023         * expr.c (convert_move): Preserve SUBREG_PROMOTED_VAR_P when
11024         creating a (wider) partial subreg from a SUBREG_PROMOTED_VAR_P
11025         subreg.
11027 2021-09-11  Aldy Hernandez  <aldyh@redhat.com>
11029         * tree-ssa-threadbackward.c (class back_threader_registry): Use
11030         back_jt_path_registry.
11031         * tree-ssa-threadedge.c (jump_threader::jump_threader): Use
11032         fwd_jt_path_registry.
11033         * tree-ssa-threadedge.h (class jump_threader): Same..
11034         * tree-ssa-threadupdate.c
11035         (jump_thread_path_registry::jump_thread_path_registry): Rename...
11036         (jt_path_registry::jt_path_registry): ...to this.
11037         (jump_thread_path_registry::~jump_thread_path_registry): Rename...
11038         (jt_path_registry::~jt_path_registry): ...this.
11039         (fwd_jt_path_registry::fwd_jt_path_registry): New.
11040         (fwd_jt_path_registry::~fwd_jt_path_registry): New.
11041         (jump_thread_path_registry::allocate_thread_edge): Rename...
11042         (jt_path_registry::allocate_thread_edge): ...to this.
11043         (jump_thread_path_registry::allocate_thread_path): Rename...
11044         (jt_path_registry::allocate_thread_path): ...to this.
11045         (jump_thread_path_registry::lookup_redirection_data): Rename...
11046         (fwd_jt_path_registry::lookup_redirection_data): ...to this.
11047         (jump_thread_path_registry::thread_block_1): Rename...
11048         (fwd_jt_path_registry::thread_block_1): ...to this.
11049         (jump_thread_path_registry::thread_block): Rename...
11050         (fwd_jt_path_registry::thread_block): ...to this.
11051         (jt_path_registry::thread_through_loop_header): Rename...
11052         (fwd_jt_path_registry::thread_through_loop_header): ...to this.
11053         (jump_thread_path_registry::mark_threaded_blocks): Rename...
11054         (fwd_jt_path_registry::mark_threaded_blocks): ...to this.
11055         (jump_thread_path_registry::debug_path): Rename...
11056         (jt_path_registry::debug_path): ...to this.
11057         (jump_thread_path_registry::dump): Rename...
11058         (jt_path_registry::debug): ...to this.
11059         (jump_thread_path_registry::rewire_first_differing_edge): Rename...
11060         (back_jt_path_registry::rewire_first_differing_edge): ...to this.
11061         (jump_thread_path_registry::adjust_paths_after_duplication): Rename...
11062         (back_jt_path_registry::adjust_paths_after_duplication): ...to this.
11063         (jump_thread_path_registry::duplicate_thread_path): Rename...
11064         (back_jt_path_registry::duplicate_thread_path): ...to this.  Also,
11065         drop ill-formed candidates.
11066         (jump_thread_path_registry::remove_jump_threads_including): Rename...
11067         (fwd_jt_path_registry::remove_jump_threads_including): ...to this.
11068         (jt_path_registry::thread_through_all_blocks): New.
11069         (back_jt_path_registry::update_cfg): New.
11070         (fwd_jt_path_registry::update_cfg): New.
11071         (jump_thread_path_registry::register_jump_thread): Rename...
11072         (jt_path_registry::register_jump_thread): ...to this.
11073         * tree-ssa-threadupdate.h (class jump_thread_path_registry):
11074         Abstract to...
11075         (class jt_path_registry): ...here.
11076         (class fwd_jt_path_registry): New.
11077         (class back_jt_path_registry): New.
11079 2021-09-10  liuhongt  <hongtao.liu@intel.com>
11081         Revert:
11082         2021-09-01  liuhongt  <hongtao.liu@intel.com>
11084         * emit-rtl.c (validate_subreg): Get rid of all float-int
11085         special cases.
11087 2021-09-10  Jakub Jelinek  <jakub@redhat.com>
11089         * tree-core.h (enum omp_memory_order): Add OMP_MEMORY_ORDER_MASK,
11090         OMP_FAIL_MEMORY_ORDER_UNSPECIFIED, OMP_FAIL_MEMORY_ORDER_RELAXED,
11091         OMP_FAIL_MEMORY_ORDER_ACQUIRE, OMP_FAIL_MEMORY_ORDER_RELEASE,
11092         OMP_FAIL_MEMORY_ORDER_ACQ_REL, OMP_FAIL_MEMORY_ORDER_SEQ_CST and
11093         OMP_FAIL_MEMORY_ORDER_MASK enumerators.
11094         (OMP_FAIL_MEMORY_ORDER_SHIFT): Define.
11095         * gimple-pretty-print.c (dump_gimple_omp_atomic_load,
11096         dump_gimple_omp_atomic_store): Print [weak] for weak atomic
11097         load/store.
11098         * gimple.h (enum gf_mask): Change GF_OMP_ATOMIC_MEMORY_ORDER
11099         to 6-bit mask, adjust GF_OMP_ATOMIC_NEED_VALUE value and add
11100         GF_OMP_ATOMIC_WEAK.
11101         (gimple_omp_atomic_weak_p, gimple_omp_atomic_set_weak): New inline
11102         functions.
11103         * tree.h (OMP_ATOMIC_WEAK): Define.
11104         * tree-pretty-print.c (dump_omp_atomic_memory_order): Adjust for
11105         fail memory order being encoded in the same enum and also print
11106         fail clause if present.
11107         (dump_generic_node): Print weak clause if OMP_ATOMIC_WEAK.
11108         * gimplify.c (goa_stabilize_expr): Add target_expr and rhs arguments,
11109         handle pre_p == NULL case as a test mode that only returns value
11110         but doesn't change gimplify nor change anything otherwise, adjust
11111         recursive calls, add MODIFY_EXPR, ADDR_EXPR, COND_EXPR, TARGET_EXPR
11112         and CALL_EXPR handling, adjust COMPOUND_EXPR handling for
11113         __builtin_clear_padding calls, for !rhs gimplify as lvalue rather
11114         than rvalue.
11115         (gimplify_omp_atomic): Adjust goa_stabilize_expr caller.  Handle
11116         COND_EXPR rhs.  Set weak flag on gimple load/store for
11117         OMP_ATOMIC_WEAK.
11118         * omp-expand.c (omp_memory_order_to_fail_memmodel): New function.
11119         (omp_memory_order_to_memmodel): Adjust for fail clause encoded
11120         in the same enum.
11121         (expand_omp_atomic_cas): New function.
11122         (expand_omp_atomic_pipeline): Use omp_memory_order_to_fail_memmodel
11123         function.
11124         (expand_omp_atomic): Attempt to optimize atomic compare and exchange
11125         using expand_omp_atomic_cas.
11127 2021-09-10  Aldy Hernandez  <aldyh@redhat.com>
11128             Michael Matz  <matz@suse.de>
11130         * tree-pass.h (PROP_loop_opts_done): New.
11131         * gimple-range-path.cc (path_range_query::internal_range_of_expr):
11132         Intersect with global range.
11133         * tree-ssa-loop.c (tree_ssa_loop_done): Set PROP_loop_opts_done.
11134         * tree-ssa-threadbackward.c
11135         (back_threader_profitability::profitable_path_p): Disable
11136         threading through latches until after loop optimizations have run.
11138 2021-09-10  David Faust  <david.faust@oracle.com>
11140         * doc/invoke.texi: Document BPF -mcpu, -mjmpext, -mjmp32 and -malu32
11141         options.
11143 2021-09-10  David Faust  <david.faust@oracle.com>
11145         * config/bpf/bpf-opts.h (bpf_isa_version): New enum.
11146         * config/bpf/bpf-protos.h (bpf_expand_cbranch): New.
11147         * config/bpf/bpf.c (bpf_option_override): Handle -mcpu option.
11148         (bpf_expand_cbranch): New function.
11149         * config/bpf/bpf.md (AM mode iterator): Conditionalize support for SI
11150         mode.
11151         (zero_extendsidi2): Only use mov32 instruction if it is available.
11152         (SIM mode iterator): Conditionalize support for SI mode.
11153         (JM mode iterator): New.
11154         (cbranchdi4): Update name, use new JM iterator. Use bpf_expand_cbranch.
11155         (*branch_on_di): Update name, use new JM iterator.
11156         * config/bpf/bpf.opt: (mjmpext): New option.
11157         (malu32): Likewise.
11158         (mjmp32): Likewise.
11159         (mcpu): Likewise.
11160         (bpf_isa): New enum.
11162 2021-09-10  David Faust  <david.faust@oracle.com>
11164         * config/bpf/bpf.md (zero_extendhidi2): Add new output template
11165         for register-to-register extensions.
11166         (zero_extendqidi2): Likewise.
11168 2021-09-10  Richard Biener  <rguenther@suse.de>
11170         PR middle-end/102273
11171         * internal-fn.c (expand_DEFERRED_INIT): Always expand non-SSA vars.
11173 2021-09-10  Richard Biener  <rguenther@suse.de>
11175         PR middle-end/102269
11176         * gimplify.c (is_var_need_auto_init): Empty types do not need
11177         initialization.
11179 2021-09-10  Richard Biener  <rguenther@suse.de>
11181         * configure.ac (--with-stabs): Remove.
11182         * configure: Regenerate.
11183         * doc/install.texi: Remove --with-stabs documentation.
11185 2021-09-10  liuhongt  <hongtao.liu@intel.com>
11187         * config/i386/avx512fp16intrin.h: (_mm512_cmp_ph_mask):
11188         New intrinsic.
11189         (_mm512_mask_cmp_ph_mask): Likewise.
11190         (_mm512_cmp_round_ph_mask): Likewise.
11191         (_mm512_mask_cmp_round_ph_mask): Likewise.
11192         (_mm_cmp_sh_mask): Likewise.
11193         (_mm_mask_cmp_sh_mask): Likewise.
11194         (_mm_cmp_round_sh_mask): Likewise.
11195         (_mm_mask_cmp_round_sh_mask): Likewise.
11196         (_mm_comieq_sh): Likewise.
11197         (_mm_comilt_sh): Likewise.
11198         (_mm_comile_sh): Likewise.
11199         (_mm_comigt_sh): Likewise.
11200         (_mm_comige_sh): Likewise.
11201         (_mm_comineq_sh): Likewise.
11202         (_mm_ucomieq_sh): Likewise.
11203         (_mm_ucomilt_sh): Likewise.
11204         (_mm_ucomile_sh): Likewise.
11205         (_mm_ucomigt_sh): Likewise.
11206         (_mm_ucomige_sh): Likewise.
11207         (_mm_ucomineq_sh): Likewise.
11208         (_mm_comi_round_sh): Likewise.
11209         (_mm_comi_sh): Likewise.
11210         * config/i386/avx512fp16vlintrin.h (_mm_cmp_ph_mask): New intrinsic.
11211         (_mm_mask_cmp_ph_mask): Likewise.
11212         (_mm256_cmp_ph_mask): Likewise.
11213         (_mm256_mask_cmp_ph_mask): Likewise.
11214         * config/i386/i386-builtin-types.def: Add corresponding builtin types.
11215         * config/i386/i386-builtin.def: Add corresponding new builtins.
11216         * config/i386/i386-expand.c
11217         (ix86_expand_args_builtin): Handle new builtin types.
11218         (ix86_expand_round_builtin): Ditto.
11219         * config/i386/i386.md (ssevecmode): Add HF mode.
11220         (MODEFH): New mode iterator.
11221         * config/i386/sse.md
11222         (V48H_AVX512VL): New mode iterator to support HF vector modes.
11223         Ajdust corresponding description.
11224         (ssecmpintprefix): New.
11225         (VI12_AVX512VL): Adjust to support HF vector modes.
11226         (cmp_imm_predicate): Likewise.
11227         (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
11228         Likewise.
11229         (avx512f_vmcmp<mode>3<round_saeonly_name>): Likewise.
11230         (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Likewise.
11231         (<sse>_<unord>comi<round_saeonly_name>): Likewise.
11233 2021-09-10  liuhongt  <hongtao.liu@intel.com>
11235         * config/i386/avx512fp16intrin.h: (_mm512_max_ph): New intrinsic.
11236         (_mm512_mask_max_ph): Likewise.
11237         (_mm512_maskz_max_ph): Likewise.
11238         (_mm512_min_ph): Likewise.
11239         (_mm512_mask_min_ph): Likewise.
11240         (_mm512_maskz_min_ph): Likewise.
11241         (_mm512_max_round_ph): Likewise.
11242         (_mm512_mask_max_round_ph): Likewise.
11243         (_mm512_maskz_max_round_ph): Likewise.
11244         (_mm512_min_round_ph): Likewise.
11245         (_mm512_mask_min_round_ph): Likewise.
11246         (_mm512_maskz_min_round_ph): Likewise.
11247         (_mm_max_sh): Likewise.
11248         (_mm_mask_max_sh): Likewise.
11249         (_mm_maskz_max_sh): Likewise.
11250         (_mm_min_sh): Likewise.
11251         (_mm_mask_min_sh): Likewise.
11252         (_mm_maskz_min_sh): Likewise.
11253         (_mm_max_round_sh): Likewise.
11254         (_mm_mask_max_round_sh): Likewise.
11255         (_mm_maskz_max_round_sh): Likewise.
11256         (_mm_min_round_sh): Likewise.
11257         (_mm_mask_min_round_sh): Likewise.
11258         (_mm_maskz_min_round_sh): Likewise.
11259         * config/i386/avx512fp16vlintrin.h (_mm_max_ph): New intrinsic.
11260         (_mm256_max_ph): Likewise.
11261         (_mm_mask_max_ph): Likewise.
11262         (_mm256_mask_max_ph): Likewise.
11263         (_mm_maskz_max_ph): Likewise.
11264         (_mm256_maskz_max_ph): Likewise.
11265         (_mm_min_ph): Likewise.
11266         (_mm256_min_ph): Likewise.
11267         (_mm_mask_min_ph): Likewise.
11268         (_mm256_mask_min_ph): Likewise.
11269         (_mm_maskz_min_ph): Likewise.
11270         (_mm256_maskz_min_ph): Likewise.
11271         * config/i386/i386-builtin-types.def: Add corresponding builtin types.
11272         * config/i386/i386-builtin.def: Add corresponding new builtins.
11273         * config/i386/i386-expand.c
11274         (ix86_expand_args_builtin): Handle new builtin types.
11275         * config/i386/sse.md
11276         (<code><mode>3<mask_name><round_saeonly_name>): Adjust to
11277         support HF vector modes.
11278         (*<code><mode>3<mask_name><round_saeonly_name>): Likewise.
11279         (ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>):
11280         Likewise.
11281         (<sse>_vm<code><mode>3<mask_scalar_name><round_saeonly_scalar_name>):
11282         Likewise.
11283         * config/i386/subst.md (round_saeonly_mode512bit_condition):
11284         Adjust for HF vector modes.
11286 2021-09-10  Liu, Hongtao  <hongtao.liu@intel.com>
11288         * config/i386/avx512fp16intrin.h (_mm_add_sh): New intrinsic.
11289         (_mm_mask_add_sh): Likewise.
11290         (_mm_maskz_add_sh): Likewise.
11291         (_mm_sub_sh): Likewise.
11292         (_mm_mask_sub_sh): Likewise.
11293         (_mm_maskz_sub_sh): Likewise.
11294         (_mm_mul_sh): Likewise.
11295         (_mm_mask_mul_sh): Likewise.
11296         (_mm_maskz_mul_sh): Likewise.
11297         (_mm_div_sh): Likewise.
11298         (_mm_mask_div_sh): Likewise.
11299         (_mm_maskz_div_sh): Likewise.
11300         (_mm_add_round_sh): Likewise.
11301         (_mm_mask_add_round_sh): Likewise.
11302         (_mm_maskz_add_round_sh): Likewise.
11303         (_mm_sub_round_sh): Likewise.
11304         (_mm_mask_sub_round_sh): Likewise.
11305         (_mm_maskz_sub_round_sh): Likewise.
11306         (_mm_mul_round_sh): Likewise.
11307         (_mm_mask_mul_round_sh): Likewise.
11308         (_mm_maskz_mul_round_sh): Likewise.
11309         (_mm_div_round_sh): Likewise.
11310         (_mm_mask_div_round_sh): Likewise.
11311         (_mm_maskz_div_round_sh): Likewise.
11312         * config/i386/i386-builtin-types.def: Add corresponding builtin types.
11313         * config/i386/i386-builtin.def: Add corresponding new builtins.
11314         * config/i386/i386-expand.c
11315         (ix86_expand_round_builtin): Handle new builtins.
11316         * config/i386/sse.md (VF_128): Change description.
11317         (<sse>_vm<plusminus_insn><mode>3<mask_scalar_name><round_scalar_name>):
11318         Adjust to support HF vector modes.
11319         (<sse>_vm<multdiv_mnemonic><mode>3<mask_scalar_name><round_scalar_name>):
11320         Likewise.
11322 2021-09-10  H.J. Lu  <hjl.tools@gmail.com>
11324         * config/i386/i386-expand.c
11325         (ix86_avx256_split_vector_move_misalign): Handle V16HF mode.
11326         * config/i386/i386.c
11327         (ix86_preferred_simd_mode): Handle HF mode.
11328         * config/i386/sse.md (V_256H): New mode iterator.
11329         (avx_vextractf128<mode>): Use it.
11330         (VEC_INIT_MODE): Align vector HFmode condition to vector
11331         HImodes since there're no real HF instruction used.
11332         (VEC_INIT_HALF_MODE): Ditto.
11333         (VIHF): Ditto.
11334         (VIHF_AVX512BW): Ditto.
11335         (*vec_extracthf): Ditto.
11336         (VEC_EXTRACT_MODE): Ditto.
11338 2021-09-10  Richard Biener  <rguenther@suse.de>
11340         PR target/102255
11341         * config/dbx.h: Remove.
11342         * config/dbxcoff.h: Do not define PREFERRED_DEBUGGING_TYPE.
11343         * config/lynx.h: Likewise.
11345 2021-09-10  liuhongt  <hongtao.liu@intel.com>
11347         * config/i386/i386-expand.c (ix86_expand_copysign): Expand
11348         right into ANDNOT + AND + IOR, using paradoxical subregs.
11349         (ix86_split_copysign_const): Remove.
11350         (ix86_split_copysign_var): Ditto.
11351         * config/i386/i386-protos.h (ix86_split_copysign_const): Dotto.
11352         (ix86_split_copysign_var): Ditto.
11353         * config/i386/i386.md (@copysign<mode>3_const): Ditto.
11354         (@copysign<mode>3_var): Ditto.
11356 2021-09-09  qing zhao  <qing.zhao@oracle.com>
11358         * builtins.c (expand_builtin_memset): Make external visible.
11359         * builtins.h (expand_builtin_memset): Declare extern.
11360         * common.opt (ftrivial-auto-var-init=): New option.
11361         * doc/extend.texi: Document the uninitialized attribute.
11362         * doc/invoke.texi: Document -ftrivial-auto-var-init.
11363         * flag-types.h (enum auto_init_type): New enumerated type
11364         auto_init_type.
11365         * gimple-fold.c (clear_padding_type): Add one new parameter.
11366         (clear_padding_union): Likewise.
11367         (clear_padding_emit_loop): Likewise.
11368         (clear_type_padding_in_mask): Likewise.
11369         (gimple_fold_builtin_clear_padding): Handle this new parameter.
11370         * gimplify.c (gimple_add_init_for_auto_var): New function.
11371         (gimple_add_padding_init_for_auto_var): New function.
11372         (is_var_need_auto_init): New function.
11373         (gimplify_decl_expr): Add initialization to automatic variables per
11374         users' requests.
11375         (gimplify_call_expr): Add one new parameter for call to
11376         __builtin_clear_padding.
11377         (gimplify_init_constructor): Add padding initialization in the end.
11378         * internal-fn.c (INIT_PATTERN_VALUE): New macro.
11379         (expand_DEFERRED_INIT): New function.
11380         * internal-fn.def (DEFERRED_INIT): New internal function.
11381         * tree-cfg.c (verify_gimple_call): Verify calls to .DEFERRED_INIT.
11382         * tree-sra.c (generate_subtree_deferred_init): New function.
11383         (scan_function): Avoid setting cannot_scalarize_away_bitmap for
11384         calls to .DEFERRED_INIT.
11385         (sra_modify_deferred_init): New function.
11386         (sra_modify_function_body): Handle calls to DEFERRED_INIT specially.
11387         * tree-ssa-structalias.c (find_func_aliases_for_call): Likewise.
11388         * tree-ssa-uninit.c (warn_uninit): Handle calls to DEFERRED_INIT
11389         specially.
11390         (check_defs): Likewise.
11391         (warn_uninitialized_vars): Likewise.
11392         * tree-ssa.c (ssa_undefined_value_p): Likewise.
11393         * tree.c (build_common_builtin_nodes): Build tree node for
11394         BUILT_IN_CLEAR_PADDING when needed.
11396 2021-09-09  Richard Biener  <rguenther@suse.de>
11398         * tree-ssa-loop-im.c (fill_always_executed_in_1): Walk
11399         into all subloops.
11401 2021-09-09  Richard Biener  <rguenther@suse.de>
11403         * tree-ssa-loop-im.c (fill_always_executed_in_1): Integrate
11404         DOM walk from get_loop_body_in_dom_order using a worklist
11405         approach.
11407 2021-09-09  liuhongt  <hongtao.liu@intel.com>
11409         * config.gcc: Add avx512fp16vlintrin.h.
11410         * config/i386/avx512fp16intrin.h: (_mm512_add_ph): New intrinsic.
11411         (_mm512_mask_add_ph): Likewise.
11412         (_mm512_maskz_add_ph): Likewise.
11413         (_mm512_sub_ph): Likewise.
11414         (_mm512_mask_sub_ph): Likewise.
11415         (_mm512_maskz_sub_ph): Likewise.
11416         (_mm512_mul_ph): Likewise.
11417         (_mm512_mask_mul_ph): Likewise.
11418         (_mm512_maskz_mul_ph): Likewise.
11419         (_mm512_div_ph): Likewise.
11420         (_mm512_mask_div_ph): Likewise.
11421         (_mm512_maskz_div_ph): Likewise.
11422         (_mm512_add_round_ph): Likewise.
11423         (_mm512_mask_add_round_ph): Likewise.
11424         (_mm512_maskz_add_round_ph): Likewise.
11425         (_mm512_sub_round_ph): Likewise.
11426         (_mm512_mask_sub_round_ph): Likewise.
11427         (_mm512_maskz_sub_round_ph): Likewise.
11428         (_mm512_mul_round_ph): Likewise.
11429         (_mm512_mask_mul_round_ph): Likewise.
11430         (_mm512_maskz_mul_round_ph): Likewise.
11431         (_mm512_div_round_ph): Likewise.
11432         (_mm512_mask_div_round_ph): Likewise.
11433         (_mm512_maskz_div_round_ph): Likewise.
11434         * config/i386/avx512fp16vlintrin.h: New header.
11435         * config/i386/i386-builtin-types.def (V16HF, V8HF, V32HF):
11436         Add new builtin types.
11437         * config/i386/i386-builtin.def: Add corresponding builtins.
11438         * config/i386/i386-expand.c
11439         (ix86_expand_args_builtin): Handle new builtin types.
11440         (ix86_expand_round_builtin): Likewise.
11441         * config/i386/immintrin.h: Include avx512fp16vlintrin.h
11442         * config/i386/sse.md (VFH): New mode_iterator.
11443         (VF2H): Likewise.
11444         (avx512fmaskmode): Add HF vector modes.
11445         (avx512fmaskhalfmode): Likewise.
11446         (<plusminus_insn><mode>3<mask_name><round_name>): Adjust to for
11447         HF vector modes.
11448         (*<plusminus_insn><mode>3<mask_name><round_name>): Likewise.
11449         (mul<mode>3<mask_name><round_name>): Likewise.
11450         (*mul<mode>3<mask_name><round_name>): Likewise.
11451         (div<mode>3): Likewise.
11452         (<sse>_div<mode>3<mask_name><round_name>): Likewise.
11453         * config/i386/subst.md (SUBST_V): Add HF vector modes.
11454         (SUBST_A): Likewise.
11455         (round_mode512bit_condition): Adjust for V32HFmode.
11457 2021-09-09  liuhongt  <hongtao.liu@intel.com>
11459         PR target/101059
11460         * config/i386/sse.md (reduc_plus_scal_<mode>): Split to ..
11461         (reduc_plus_scal_v4sf): .. this, New define_expand.
11462         (reduc_plus_scal_v2df): .. and this, New define_expand.
11464 2021-09-09  liuhongt  <hongtao.liu@intel.com>
11466         PR target/91103
11467         * config/i386/sse.md (*vec_extract<mode><ssescalarmodelower>_valign):
11468         New define_insn.
11470 2021-09-08  Jonathan Wakely  <jwakely@redhat.com>
11472         PR c++/60318
11473         * doc/trouble.texi (Copy Assignment): Fix description of
11474         behaviour and fix code in example.
11476 2021-09-08  Segher Boessenkool  <segher@kernel.crashing.org>
11478         PR target/102107
11479         * config/rs6000/rs6000-logue.c (rs6000_emit_epilogue): For ELFv2 use
11480         r11 instead of r12 for restoring CR.
11482 2021-09-08  Jakub Jelinek  <jakub@redhat.com>
11483             liuhongt  <hongtao.liu@intel.com>
11485         PR target/89984
11486         * config/i386/i386.md (@xorsign<mode>3_1): Remove.
11487         * config/i386/i386-expand.c (ix86_expand_xorsign): Expand right away
11488         into AND with mask and XOR, using paradoxical subregs.
11489         (ix86_split_xorsign): Remove.
11490         * config/i386/i386-protos.h (ix86_split_xorsign): Remove.
11492 2021-09-08  Di Zhao  <dizhao@os.amperecomputing.com>
11494         * tree-ssa-sccvn.c (vn_nary_op_insert_into): fix result compare
11496 2021-09-08  Jakub Jelinek  <jakub@redhat.com>
11498         PR target/102224
11499         * config/i386/i386.md (xorsign<mode>3): If operands[1] is equal to
11500         operands[2], emit abs<mode>2 instead.
11501         (@xorsign<mode>3_1): Add early-clobbers for output operand, enable
11502         first alternative even for avx, add another alternative with
11503         =&Yv <- 0, Yv, Yvm constraints.
11504         * config/i386/i386-expand.c (ix86_split_xorsign): If op0 is equal
11505         to op1, emit vpandn instead.
11507 2021-09-08  liuhongt  <hongtao.liu@intel.com>
11509         * config/i386/avx512fp16intrin.h (_mm_set_ph): New intrinsic.
11510         (_mm256_set_ph): Likewise.
11511         (_mm512_set_ph): Likewise.
11512         (_mm_setr_ph): Likewise.
11513         (_mm256_setr_ph): Likewise.
11514         (_mm512_setr_ph): Likewise.
11515         (_mm_set1_ph): Likewise.
11516         (_mm256_set1_ph): Likewise.
11517         (_mm512_set1_ph): Likewise.
11518         (_mm_setzero_ph): Likewise.
11519         (_mm256_setzero_ph): Likewise.
11520         (_mm512_setzero_ph): Likewise.
11521         (_mm_set_sh): Likewise.
11522         (_mm_load_sh): Likewise.
11523         (_mm_store_sh): Likewise.
11524         * config/i386/i386-builtin-types.def (V8HF): New type.
11525         (DEF_FUNCTION_TYPE (V8HF, V8HI)): New builtin function type
11526         * config/i386/i386-expand.c (ix86_expand_vector_init_duplicate):
11527         Support vector HFmodes.
11528         (ix86_expand_vector_init_one_nonzero): Likewise.
11529         (ix86_expand_vector_init_one_var): Likewise.
11530         (ix86_expand_vector_init_interleave): Likewise.
11531         (ix86_expand_vector_init_general): Likewise.
11532         (ix86_expand_vector_set): Likewise.
11533         (ix86_expand_vector_extract): Likewise.
11534         (ix86_expand_vector_init_concat): Likewise.
11535         (ix86_expand_sse_movcc): Handle vector HFmodes.
11536         (ix86_expand_vector_set_var): Ditto.
11537         * config/i386/i386-modes.def: Add HF vector modes in comment.
11538         * config/i386/i386.c (classify_argument): Add HF vector modes.
11539         (ix86_hard_regno_mode_ok): Allow HF vector modes for AVX512FP16.
11540         (ix86_vector_mode_supported_p): Likewise.
11541         (ix86_set_reg_reg_cost): Handle vector HFmode.
11542         (ix86_get_ssemov): Handle vector HFmode.
11543         (function_arg_advance_64): Pass unamed V16HFmode and V32HFmode
11544         by stack.
11545         (function_arg_advance_32): Pass V8HF/V16HF/V32HF by sse reg for 32bit
11546         mode.
11547         (function_arg_advance_32): Ditto.
11548         * config/i386/i386.h (VALID_AVX512FP16_REG_MODE): New.
11549         (VALID_AVX256_REG_OR_OI_MODE): Rename to ..
11550         (VALID_AVX256_REG_OR_OI_VHF_MODE): .. this, and add V16HF.
11551         (VALID_SSE2_REG_VHF_MODE): New.
11552         (VALID_AVX512VL_128_REG_MODE): Add V8HF and TImode.
11553         (SSE_REG_MODE_P): Add vector HFmode.
11554         * config/i386/i386.md (mode): Add HF vector modes.
11555         (MODE_SIZE): Likewise.
11556         (ssemodesuffix): Add ph suffix for HF vector modes.
11557         * config/i386/sse.md (VFH_128): New mode iterator.
11558         (VMOVE): Adjust for HF vector modes.
11559         (V): Likewise.
11560         (V_256_512): Likewise.
11561         (avx512): Likewise.
11562         (avx512fmaskmode): Likewise.
11563         (shuffletype): Likewise.
11564         (sseinsnmode): Likewise.
11565         (ssedoublevecmode): Likewise.
11566         (ssehalfvecmode): Likewise.
11567         (ssehalfvecmodelower): Likewise.
11568         (ssePScmode): Likewise.
11569         (ssescalarmode): Likewise.
11570         (ssescalarmodelower): Likewise.
11571         (sseintprefix): Likewise.
11572         (i128): Likewise.
11573         (bcstscalarsuff): Likewise.
11574         (xtg_mode): Likewise.
11575         (VI12HF_AVX512VL): New mode_iterator.
11576         (VF_AVX512FP16): Likewise.
11577         (VIHF): Likewise.
11578         (VIHF_256): Likewise.
11579         (VIHF_AVX512BW): Likewise.
11580         (V16_256): Likewise.
11581         (V32_512): Likewise.
11582         (sseintmodesuffix): New mode_attr.
11583         (sse): Add scalar and vector HFmodes.
11584         (ssescalarmode): Add vector HFmode mapping.
11585         (ssescalarmodesuffix): Add sh suffix for HFmode.
11586         (*<sse>_vm<insn><mode>3): Use VFH_128.
11587         (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
11588         (*ieee_<ieee_maxmin><mode>3): Likewise.
11589         (<avx512>_blendm<mode>): New define_insn.
11590         (vec_setv8hf): New define_expand.
11591         (vec_set<mode>_0): New define_insn for HF vector set.
11592         (*avx512fp16_movsh): Likewise.
11593         (avx512fp16_movsh): Likewise.
11594         (vec_extract_lo_v32hi): Rename to ...
11595         (vec_extract_lo_<mode>): ... this, and adjust to allow HF
11596         vector modes.
11597         (vec_extract_hi_v32hi): Likewise.
11598         (vec_extract_hi_<mode>): Likewise.
11599         (vec_extract_lo_v16hi): Likewise.
11600         (vec_extract_lo_<mode>): Likewise.
11601         (vec_extract_hi_v16hi): Likewise.
11602         (vec_extract_hi_<mode>): Likewise.
11603         (vec_set_hi_v16hi): Likewise.
11604         (vec_set_hi_<mode>): Likewise.
11605         (vec_set_lo_v16hi): Likewise.
11606         (vec_set_lo_<mode>): Likewise.
11607         (*vec_extract<mode>_0): New define_insn_and_split for HF
11608         vector extract.
11609         (*vec_extracthf): New define_insn.
11610         (VEC_EXTRACT_MODE): Add HF vector modes.
11611         (PINSR_MODE): Add V8HF.
11612         (sse2p4_1): Likewise.
11613         (pinsr_evex_isa): Likewise.
11614         (<sse2p4_1>_pinsr<ssemodesuffix>): Adjust to support
11615         insert for V8HFmode.
11616         (pbroadcast_evex_isa): Add HF vector modes.
11617         (AVX2_VEC_DUP_MODE): Likewise.
11618         (VEC_INIT_MODE): Likewise.
11619         (VEC_INIT_HALF_MODE): Likewise.
11620         (avx2_pbroadcast<mode>): Adjust to support HF vector mode
11621         broadcast.
11622         (avx2_pbroadcast<mode>_1): Likewise.
11623         (<avx512>_vec_dup<mode>_1): Likewise.
11624         (<avx512>_vec_dup<mode><mask_name>): Likewise.
11625         (<mask_codefor><avx512>_vec_dup_gpr<mode><mask_name>):
11626         Likewise.
11628 2021-09-08  Guo, Xuepeng  <xuepeng.guo@intel.com>
11629             H.J. Lu  <hongjiu.lu@intel.com>
11630             Liu Hongtao  <hongtao.liu@intel.com>
11631             Wang Hongyu  <hongyu.wang@intel.com>
11632             Xu Dianhong  <dianhong.xu@intel.com>
11634         * common/config/i386/cpuinfo.h (get_available_features):
11635         Detect FEATURE_AVX512FP16.
11636         * common/config/i386/i386-common.c
11637         (OPTION_MASK_ISA_AVX512FP16_SET,
11638         OPTION_MASK_ISA_AVX512FP16_UNSET,
11639         OPTION_MASK_ISA2_AVX512FP16_SET,
11640         OPTION_MASK_ISA2_AVX512FP16_UNSET): New.
11641         (OPTION_MASK_ISA2_AVX512BW_UNSET,
11642         OPTION_MASK_ISA2_AVX512BF16_UNSET): Add AVX512FP16.
11643         (ix86_handle_option): Handle -mavx512fp16.
11644         * common/config/i386/i386-cpuinfo.h (enum processor_features):
11645         Add FEATURE_AVX512FP16.
11646         * common/config/i386/i386-isas.h: Add entry for AVX512FP16.
11647         * config.gcc: Add avx512fp16intrin.h.
11648         * config/i386/avx512fp16intrin.h: New intrinsic header.
11649         * config/i386/cpuid.h: Add bit_AVX512FP16.
11650         * config/i386/i386-builtin-types.def: (FLOAT16): New primitive type.
11651         * config/i386/i386-builtins.c: Support _Float16 type for i386
11652         backend.
11653         (ix86_register_float16_builtin_type): New function.
11654         (ix86_float16_type_node): New.
11655         * config/i386/i386-c.c (ix86_target_macros_internal): Define
11656         __AVX512FP16__.
11657         * config/i386/i386-expand.c (ix86_expand_branch): Support
11658         HFmode.
11659         (ix86_prepare_fp_compare_args): Adjust TARGET_SSE_MATH &&
11660         SSE_FLOAT_MODE_P to SSE_FLOAT_MODE_SSEMATH_OR_HF_P.
11661         (ix86_expand_fp_movcc): Ditto.
11662         * config/i386/i386-isa.def: Add PTA define for AVX512FP16.
11663         * config/i386/i386-options.c (isa2_opts): Add -mavx512fp16.
11664         (ix86_valid_target_attribute_inner_p): Add avx512fp16 attribute.
11665         * config/i386/i386.c (ix86_get_ssemov): Use
11666         vmovdqu16/vmovw/vmovsh for HFmode/HImode scalar or vector.
11667         (ix86_get_excess_precision): Use
11668         FLT_EVAL_METHOD_PROMOTE_TO_FLOAT16 when TARGET_AVX512FP16
11669         existed.
11670         (sse_store_index): Use SFmode cost for HFmode cost.
11671         (inline_memory_move_cost): Add HFmode, and perfer SSE cost over
11672         GPR cost for HFmode.
11673         (ix86_hard_regno_mode_ok): Allow HImode in sse register.
11674         (ix86_mangle_type): Add manlging for _Float16 type.
11675         (inline_secondary_memory_needed): No memory is needed for
11676         16bit movement between gpr and sse reg under
11677         TARGET_AVX512FP16.
11678         (ix86_multiplication_cost): Adjust TARGET_SSE_MATH &&
11679         SSE_FLOAT_MODE_P to SSE_FLOAT_MODE_SSEMATH_OR_HF_P.
11680         (ix86_division_cost): Ditto.
11681         (ix86_rtx_costs): Ditto.
11682         (ix86_add_stmt_cost): Ditto.
11683         (ix86_optab_supported_p): Ditto.
11684         * config/i386/i386.h (VALID_AVX512F_SCALAR_MODE): Add HFmode.
11685         (SSE_FLOAT_MODE_SSEMATH_OR_HF_P): Add HFmode.
11686         (PTA_SAPPHIRERAPIDS): Add PTA_AVX512FP16.
11687         * config/i386/i386.md (mode): Add HFmode.
11688         (MODE_SIZE): Add HFmode.
11689         (isa): Add avx512fp16.
11690         (enabled): Handle avx512fp16.
11691         (ssemodesuffix): Add sh suffix for HFmode.
11692         (comm): Add mult, div.
11693         (plusminusmultdiv): New code iterator.
11694         (insn): Add mult, div.
11695         (*movhf_internal): Adjust for avx512fp16 instruction.
11696         (*movhi_internal): Ditto.
11697         (*cmpi<unord>hf): New define_insn for HFmode.
11698         (*ieee_s<ieee_maxmin>hf3): Likewise.
11699         (extendhf<mode>2): Likewise.
11700         (trunc<mode>hf2): Likewise.
11701         (float<floatunssuffix><mode>hf2): Likewise.
11702         (*<insn>hf): Likewise.
11703         (cbranchhf4): New expander.
11704         (movhfcc): Likewise.
11705         (<insn>hf3): Likewise.
11706         (mulhf3): Likewise.
11707         (divhf3): Likewise.
11708         * config/i386/i386.opt: Add mavx512fp16.
11709         * config/i386/immintrin.h: Include avx512fp16intrin.h.
11710         * doc/invoke.texi: Add mavx512fp16.
11711         * doc/extend.texi: Add avx512fp16 Usage Notes.
11713 2021-09-08  liuhongt  <hongtao.liu@intel.com>
11715         * common.opt: Support -fexcess-precision=16.
11716         * config/aarch64/aarch64.c (aarch64_excess_precision): Return
11717         FLT_EVAL_METHOD_PROMOTE_TO_FLOAT16 when
11718         EXCESS_PRECISION_TYPE_FLOAT16.
11719         * config/arm/arm.c (arm_excess_precision): Ditto.
11720         * config/i386/i386.c (ix86_get_excess_precision): Ditto.
11721         * config/m68k/m68k.c (m68k_excess_precision): Issue an error
11722         when EXCESS_PRECISION_TYPE_FLOAT16.
11723         * config/s390/s390.c (s390_excess_precision): Ditto.
11724         * coretypes.h (enum excess_precision_type): Add
11725         EXCESS_PRECISION_TYPE_FLOAT16.
11726         * doc/tm.texi (TARGET_C_EXCESS_PRECISION): Update documents.
11727         * doc/tm.texi.in (TARGET_C_EXCESS_PRECISION): Ditto.
11728         * doc/extend.texi (Half-Precision): Document
11729         -fexcess-precision=16.
11730         * flag-types.h (enum excess_precision): Add
11731         EXCESS_PRECISION_FLOAT16.
11732         * target.def (excess_precision): Update document.
11733         * tree.c (excess_precision_type): Set excess_precision_type to
11734         EXCESS_PRECISION_FLOAT16 when -fexcess-precision=16.
11736 2021-09-08  liuhongt  <hongtao.liu@intel.com>
11738         * doc/extend.texi: (@node Floating Types): Adjust the wording.
11739         (@node Half-Precision): Ditto.
11741 2021-09-07  Takayuki 'January June' Suwa  <jjsuwa_sys3175@yahoo.co.jp>
11743         PR target/102115
11744         * config/xtensa/xtensa.c (xtensa_emit_move_sequence): Add
11745         'CONST_INT_P (src)' to the condition of the block that tries to
11746         eliminate literal when loading integer contant.
11748 2021-09-07  David Faust  <david.faust@oracle.com>
11750         * doc/extend.texi (BPF Type Attributes) New node.
11751         Document new preserve_access_index attribute.
11752         Document new preserve_access_index builtin.
11753         * doc/invoke.texi: Document -mco-re and -mno-co-re options.
11755 2021-09-07  David Faust  <david.faust@oracle.com>
11757         * config/bpf/bpf.c: Adjust includes.
11758         (bpf_handle_preserve_access_index_attribute): New function.
11759         (bpf_attribute_table): Use it here.
11760         (bpf_builtins): Add BPF_BUILTIN_PRESERVE_ACCESS_INDEX.
11761         (bpf_option_override): Handle "-mco-re" option.
11762         (bpf_asm_init_sections): New.
11763         (TARGET_ASM_INIT_SECTIONS): Redefine.
11764         (bpf_file_end): New.
11765         (TARGET_ASM_FILE_END): Redefine.
11766         (bpf_init_builtins): Add "__builtin_preserve_access_index".
11767         (bpf_core_compute, bpf_core_get_index): New.
11768         (is_attr_preserve_access): New.
11769         (bpf_expand_builtin): Handle new builtins.
11770         (bpf_core_newdecl, bpf_core_is_maybe_aggregate_access): New.
11771         (bpf_core_walk): New.
11772         (bpf_resolve_overloaded_builtin): New.
11773         (TARGET_RESOLVE_OVERLOADED_BUILTIN): Redefine.
11774         (handle_attr): New.
11775         (pass_bpf_core_attr): New RTL pass.
11776         * config/bpf/bpf-passes.def: New file.
11777         * config/bpf/bpf-protos.h (make_pass_bpf_core_attr): New.
11778         * config/bpf/coreout.c: New file.
11779         * config/bpf/coreout.h: Likewise.
11780         * config/bpf/t-bpf (TM_H): Add $(srcdir)/config/bpf/coreout.h.
11781         (coreout.o): New rule.
11782         (PASSES_EXTRA): Add $(srcdir)/config/bpf/bpf-passes.def.
11783         * config.gcc (bpf): Add coreout.h to extra_headers.
11784         Add coreout.o to extra_objs.
11785         Add $(srcdir)/config/bpf/coreout.c to target_gtfiles.
11787 2021-09-07  David Faust  <david.faust@oracle.com>
11789         * btfout.c (get_btf_id): Function is no longer static.
11790         * ctfc.h: Expose it here.
11792 2021-09-07  David Faust  <david.faust@oracle.com>
11794         * ctfc.c (ctf_lookup_tree_type): New function.
11795         * ctfc.h: Likewise.
11797 2021-09-07  David Faust  <david.faust@oracle.com>
11799         * ctfc.c (ctf_dtd_lookup): Function is no longer static.
11800         * ctfc.h: Analogous change.
11802 2021-09-07  David Faust  <david.faust@oracle.com>
11804         * dwarf2out.c (lookup_type_die): Function is no longer static.
11805         * dwarf2out.h: Expose it here.
11807 2021-09-07  Indu Bhagat  <indu.bhagat@oracle.com>
11809         * dwarf2ctf.c (ctf_debug_finalize): Make it static.
11810         (ctf_debug_early_finish): New definition.
11811         (ctf_debug_finish): Likewise.
11812         * dwarf2ctf.h (ctf_debug_finalize): Remove declaration.
11813         (ctf_debug_early_finish): New declaration.
11814         (ctf_debug_finish): Likewise.
11815         * dwarf2out.c (dwarf2out_finish): Invoke ctf_debug_finish.
11816         (dwarf2out_early_finish): Invoke ctf_debug_early_finish.
11818 2021-09-07  Indu Bhagat  <indu.bhagat@oracle.com>
11820         * config/bpf/bpf.c (bpf_option_override): For BPF backend, disable LTO
11821         support when compiling for CO-RE.
11822         * config/bpf/bpf.opt: Add new command line option -mco-re.
11824 2021-09-07  Indu Bhagat  <indu.bhagat@oracle.com>
11826         * flag-types.h (enum debug_info_type): Add new enum
11827         DINFO_TYPE_BTF_WITH_CORE.
11828         (BTF_WITH_CORE_DEBUG): New bitmask.
11829         * flags.h (btf_with_core_debuginfo_p): New declaration.
11830         * opts.c (btf_with_core_debuginfo_p): New definition.
11832 2021-09-07  Jason Merrill  <jason@redhat.com>
11834         * tree.h (error_operand_p): Change to inline function.
11836 2021-09-07  Aldy Hernandez  <aldyh@redhat.com>
11838         * tree-ssa-threadedge.c (forwarder_block_p): Rename to...
11839         (empty_block_with_phis_p): ...this.
11840         (potentially_threadable_block): Same.
11841         (jump_threader::thread_through_normal_block): Same.
11843 2021-09-07  Eric Botcazou  <ebotcazou@adacore.com>
11845         PR debug/101947
11846         * dwarf2out.c (mark_base_types): New overloaded function.
11847         (dwarf2out_early_finish): Invoke it on the COMDAT type list as well
11848         as the compilation unit, and call move_marked_base_types afterward.
11850 2021-09-07  H.J. Lu  <hjl.tools@gmail.com>
11852         PR target/85819
11853         * config/i386/i386-expand.c (ix86_expand_convert_uns_sisf_sse):
11854         Enable FMA.
11855         (ix86_expand_vector_convert_uns_vsivsf): Likewise.
11857 2021-09-07  Richard Biener  <rguenther@suse.de>
11859         PR tree-optimization/102226
11860         * tree-vect-loop.c (vect_transform_cycle_phi): Record
11861         the converted value for the epilogue PHI use.
11863 2021-09-07  Martin Liska  <mliska@suse.cz>
11865         PR gcov-profile/80223
11866         * ipa-inline.c (can_inline_edge_p): Similarly to sanitizer
11867         options, do not inline when no_profile_instrument_function
11868         attributes are different in early inliner. It's fine to inline
11869         it after PGO instrumentation.
11871 2021-09-07  Richard Biener  <rguenther@suse.de>
11873         PR tree-optimization/101555
11874         * tree-ssa-pre.c (translate_vuse_through_block): Do not
11875         perform an alias walk to determine the validity of the
11876         mem at the start of the block which is already guaranteed
11877         by means of prune_clobbered_mems.
11878         (phi_translate_1): Pass edge to translate_vuse_through_block.
11880 2021-09-07  Xionghu Luo  <luoxhu@linux.ibm.com>
11882         PR target/97142
11883         * config/rs6000/rs6000.md (fmod<mode>3): New define_expand.
11884         (remainder<mode>3): Likewise.
11886 2021-09-07  YunQiang Su  <yunqiang.su@cipunited.com>
11888         * config/mips/mips.c (mips_file_start): add .module for
11889           arch and ase.
11891 2021-09-06  Roger Sayle  <roger@nextmovesoftware.com>
11893         * wide-int.cc (wi::clz): Reorder tests to ensure the result
11894         is zero for all negative values.
11896 2021-09-06  Tobias Burnus  <tobias@codesourcery.com>
11898         * doc/invoke.texi (-foffload-options): Fix @opindex.
11900 2021-09-06  H.J. Lu  <hjl.tools@gmail.com>
11902         PR target/89984
11903         * config/i386/i386-expand.c (ix86_split_xorsign): Use operands[2].
11904         * config/i386/i386.md (@xorsign<mode>3_1): Add non-destructive
11905         source alternative for AVX.
11907 2021-09-06  liuhongt  <hongtao.liu@intel.com>
11909         PR middle-end/102182
11910         * optabs.c (expand_fix): Add from1 to avoid from being
11911         overwritten.
11913 2021-09-06  Eric Botcazou  <ebotcazou@adacore.com>
11915         * dwarf2out.c (modified_type_die): Deal with all array types earlier
11916         and use local variable consistently throughout the function.
11918 2021-09-06  Jakub Jelinek  <jakub@redhat.com>
11920         PR tree-optimization/102207
11921         * match.pd: Don't demote operands of IFN_{ADD,SUB,MUL}_OVERFLOW if they
11922         were promoted from signed to wider unsigned type.
11924 2021-09-06  Andrew Pinski  <apinski@marvell.com>
11926         PR tree-optimization/63184
11927         * match.pd: Add simplification of pointer_diff of two pointer_plus
11928         with addr_expr in the first operand of each pointer_plus.
11929         Add simplificatoin of ne/eq of two pointer_plus with addr_expr
11930         in the first operand of each pointer_plus.
11932 2021-09-06  Richard Biener  <rguenther@suse.de>
11934         PR tree-optimization/102176
11935         * tree-vect-slp.c (vect_slp_gather_vectorized_scalar_stmts):
11936         New function.
11937         (vect_bb_slp_scalar_cost): Use the computed set of
11938         vectorized scalar stmts instead of relying on the out-of-date
11939         and not accurate PURE_SLP_STMT.
11940         (vect_bb_vectorization_profitable_p): Compute the set
11941         of vectorized scalar stmts.
11943 2021-09-05  Aldy Hernandez  <aldyh@redhat.com>
11945         * gimple-range-path.cc (path_range_query::range_of_stmt): Remove
11946         GIMPLE_COND special casing.
11947         (path_range_query::range_defined_in_block): Use range_of_stmt
11948         instead of calling fold_range directly.
11950 2021-09-05  Aldy Hernandez  <aldyh@redhat.com>
11952         * gimple-range-path.cc (path_range_query::range_of_expr): Set
11953         m_undefined_path when appropriate.
11954         (path_range_query::internal_range_of_expr): Copy from range_of_expr.
11955         (path_range_query::unreachable_path_p): New.
11956         (path_range_query::precompute_ranges): Set m_undefined_path.
11957         * gimple-range-path.h (path_range_query::unreachable_path_p): New.
11958         (path_range_query::internal_range_of_expr): New.
11959         * tree-ssa-threadbackward.c (back_threader::find_taken_edge_cond):
11960         Use unreachable_path_p.
11962 2021-09-05  Aldy Hernandez  <aldyh@redhat.com>
11964         * tree-ssa-threadbackward.c (back_threader::maybe_register_path):
11965         Remove argument and call find_taken_edge.
11966         (back_threader::resolve_phi): Do not calculate taken edge before
11967         calling maybe_register_path.
11968         (back_threader::find_paths_to_names): Same.
11970 2021-09-05  Jeff Law  <jlaw@localhost.localdomain>
11972         * config/h8300/h8300.md (QHSI2 mode iterator): New mode iterator.
11973         * config/h8300/testcompare.md (store_c): Update name, use new
11974         QHSI2 iterator.
11975         (store_neg_c, store_shifted_c): New patterns.
11977 2021-09-03  Segher Boessenkool  <segher@kernel.crashing.org>
11979         PR target/102107
11980         * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): On ELFv2 use r11
11981         instead of r12 for CR save, in all cases.
11983 2021-09-03  Andrew Pinski  <apinski@marvell.com>
11985         * config/aarch64/aarch64-sve-builtins.cc (register_vector_type):
11986         Handle error_mark_node as the type of the type_decl.
11988 2021-09-03  Andrew Pinski  <apinski@marvell.com>
11990         * config/aarch64/aarch64-builtins.c (struct aarch64_simd_type_info):
11991         Mark with GTY.
11992         (aarch64_simd_types): Likewise.
11993         (aarch64_simd_intOI_type_node): Likewise.
11994         (aarch64_simd_intCI_type_node): Likewise.
11995         (aarch64_simd_intXI_type_node): Likewise.
11996         * config/aarch64/aarch64.h (aarch64_fp16_type_node): Likewise.
11997         (aarch64_fp16_ptr_type_node): Likewise.
11998         (aarch64_bf16_type_node): Likewise.
11999         (aarch64_bf16_ptr_type_node): Likewise.
12001 2021-09-03  Aldy Hernandez  <aldyh@redhat.com>
12003         * range-op.cc (operator_minus::op1_op2_relation_effect): Abstract
12004         out to...
12005         (minus_op1_op2_relation_effect): ...here.
12006         (class operator_pointer_diff): New.
12007         (operator_pointer_diff::op1_op2_relation_effect): Call
12008         minus_op1_op2_relation_effect.
12009         (integral_table::integral_table): Add entry for POINTER_DIFF_EXPR.
12011 2021-09-03  Aldy Hernandez  <aldyh@redhat.com>
12013         * tree-ssa-threadbackward.c (back_threader::thread_through_all_blocks):
12014         Add may_peel_loop_headers.
12015         (back_threader_registry::thread_through_all_blocks): Same.
12016         (try_thread_blocks): Pass may_peel_loop_headers argument.
12017         (pass_early_thread_jumps::execute): Same.
12019 2021-09-03  Aldy Hernandez  <aldyh@redhat.com>
12021         * tree-ssa-threadedge.c (has_phis_p): New.
12022         (forwarder_block_p): New.
12023         (potentially_threadable_block): Call forwarder_block_p.
12024         (jump_threader::thread_around_empty_blocks): Call has_phis_p.
12025         (jump_threader::thread_through_normal_block): Call
12026         forwarder_block_p.
12028 2021-09-03  Aldy Hernandez  <aldyh@redhat.com>
12030         * tree-ssa-threadbackward.c (back_threader::dump): New.
12031         (back_threader::debug): New.
12032         (back_threader_profitability::profitable_path_p): Dump blocks
12033         even if we are bailing early.
12035 2021-09-03  Aldy Hernandez  <aldyh@redhat.com>
12037         * tree-ssa-threadupdate.c (cancel_thread): New.
12038         (jump_thread_path_registry::thread_block_1): Use cancel_thread.
12039         (jump_thread_path_registry::mark_threaded_blocks): Same.
12040         (jump_thread_path_registry::register_jump_thread): Same.
12042 2021-09-03  Aldy Hernandez  <aldyh@redhat.com>
12044         * tree-ssa-threadedge.c (jt_state::push): Only call methods for
12045         which objects are available.
12046         (jt_state::pop): Same.
12047         (jt_state::register_equiv): Same.
12048         (jt_state::register_equivs_on_edge): Same.
12050 2021-09-03  Aldy Hernandez  <aldyh@redhat.com>
12052         * tree-ssa-threadedge.c (jump_threader::thread_across_edge):
12053         Move pop until after a thread is registered.
12055 2021-09-03  Aldy Hernandez  <aldyh@redhat.com>
12057         * tree-ssa-threadupdate.c (debug): New.
12059 2021-09-03  Aldy Hernandez  <aldyh@redhat.com>
12061         * gimple-range-trace.cc (push_dump_file::push_dump_file): New.
12062         (push_dump_file::~push_dump_file): New.
12063         (dump_ranger): Change dump_file temporarily while dumping
12064         ranger.
12065         * gimple-range-trace.h (class push_dump_file): New.
12067 2021-09-03  Aldy Hernandez  <aldyh@redhat.com>
12069         * gimple-range-trace.cc (debug_seed_ranger): Remove static.
12070         (dump_ranger): Dump function name.
12072 2021-09-03  Aldy Hernandez  <aldyh@redhat.com>
12074         * gimple-range-path.cc (path_range_query::range_defined_in_block):
12075         Adjust for non-null.
12076         (path_range_query::adjust_for_non_null_uses): New.
12077         (path_range_query::precompute_ranges): Call
12078         adjust_for_non_null_uses.
12079         * gimple-range-path.h: Add m_non_null and
12080         adjust_for_non_null_uses.
12082 2021-09-03  Aldy Hernandez  <aldyh@redhat.com>
12084         * gimple-range-path.cc (path_range_query::dump): Dump path
12085         length.
12086         (path_range_query::precompute_ranges): Dump entire path.
12088 2021-09-03  Aldy Hernandez  <aldyh@redhat.com>
12090         * value-relation.cc (relation_oracle::debug): New.
12091         * value-relation.h (relation_oracle::debug): New.
12093 2021-09-03  Aldy Hernandez  <aldyh@redhat.com>
12095         * tree-ssa-loop-ch.c: Remove unnecessary include file.
12097 2021-09-03  Aldy Hernandez  <aldyh@redhat.com>
12099         * gimple-range-fold.cc (fold_using_range::postfold_gcond_edges):
12100         Skip statements with no defining BB.
12101         * gimple-range-path.cc (path_range_query::range_defined_in_block):
12102         Do not get confused by statements with no defining BB.
12104 2021-09-03  Aldy Hernandez  <aldyh@redhat.com>
12106         * gimple-range-fold.cc (adjust_imagpart_expr): Move from
12107         gimple_range_adjustment.  Add support for constants.
12108         (adjust_realpart_expr): New.
12109         (gimple_range_adjustment): Move IMAGPART_EXPR code to
12110         adjust_imagpart_expr.
12111         * range-op.cc (integral_table::integral_table): Add entry for
12112         REALPART_CST.
12114 2021-09-03  Jakub Jelinek  <jakub@redhat.com>
12116         * omp-expand.c (expand_omp_atomic_pipeline): Use
12117         IFN_ATOMIC_COMPARE_EXCHANGE instead of
12118         BUILT_IN_SYNC_VAL_COMPARE_AND_SWAP_? so that memory order
12119         can be provided.
12121 2021-09-03  Jakub Jelinek  <jakub@redhat.com>
12123         PR target/102024
12124         * tree.h (DECL_FIELD_ABI_IGNORED): Changed into rvalue only macro
12125         that is false if DECL_BIT_FIELD.
12126         (SET_DECL_FIELD_ABI_IGNORED, DECL_FIELD_CXX_ZERO_WIDTH_BIT_FIELD,
12127         SET_DECL_FIELD_CXX_ZERO_WIDTH_BIT_FIELD): Define.
12128         * tree-streamer-out.c (pack_ts_decl_common_value_fields): For
12129         DECL_BIT_FIELD stream DECL_FIELD_CXX_ZERO_WIDTH_BIT_FIELD instead
12130         of DECL_FIELD_ABI_IGNORED.
12131         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
12132         SET_DECL_FIELD_ABI_IGNORED instead of writing to
12133         DECL_FIELD_ABI_IGNORED and for DECL_BIT_FIELD use
12134         SET_DECL_FIELD_CXX_ZERO_WIDTH_BIT_FIELD instead.
12135         * lto-streamer-out.c (hash_tree): For DECL_BIT_FIELD hash
12136         DECL_FIELD_CXX_ZERO_WIDTH_BIT_FIELD instead of DECL_FIELD_ABI_IGNORED.
12138 2021-09-03  liuhongt  <hongtao.liu@intel.com>
12140         PR target/102166
12141         * config/i386/amxbf16intrin.h : Remove macro check for __AMX_BF16__.
12142         * config/i386/amxint8intrin.h : Remove macro check for __AMX_INT8__.
12143         * config/i386/amxtileintrin.h : Remove macro check for __AMX_TILE__.
12145 2021-09-02  Martin Sebor  <msebor@redhat.com>
12147         PR tree-optimization/17506
12148         PR testsuite/37182
12149         * tree-ssa-uninit.c (warn_uninit): Remove conditional guarding note.
12151 2021-09-02  Richard Biener  <rguenther@suse.de>
12153         * tree-ssa-loop-im.c (fill_always_executed_in_1): Refine
12154         fix for PR78185 and continue processing when leaving
12155         finite inner loops.
12157 2021-09-02  Jakub Jelinek  <jakub@redhat.com>
12159         PR tree-optimization/99591
12160         * match.pd: Demote operands of IFN_{ADD,SUB,MUL}_OVERFLOW if they
12161         were promoted.
12163 2021-09-02  Richard Biener  <rguenther@suse.de>
12165         Revert:
12166         2021-09-02  Richard Biener  <rguenther@suse.de>
12168         PR tree-optimization/102155
12169         * tree-ssa-loop-im.c (fill_always_executed_in_1): Iterate
12170         over a part of the RPO array and do not recurse here.
12171         Dump blocks marked as always executed.
12172         (fill_always_executed_in): Walk over the RPO array and
12173         process loops whose header we run into.
12174         (loop_invariant_motion_in_fun): Compute the first RPO
12175         using rev_post_order_and_mark_dfs_back_seme in iteration
12176         order and pass that to fill_always_executed_in.
12178 2021-09-02  liuhongt  <hongtao.liu@intel.com>
12180         * config/i386/i386-modes.def (FLOAT_MODE): Define ieee HFmode.
12181         * config/i386/i386.c (enum x86_64_reg_class): Add
12182         X86_64_SSEHF_CLASS.
12183         (merge_classes): Handle X86_64_SSEHF_CLASS.
12184         (examine_argument): Ditto.
12185         (construct_container): Ditto.
12186         (classify_argument): Ditto, and set HFmode/HCmode to
12187         X86_64_SSEHF_CLASS.
12188         (function_value_32): Return _FLoat16/Complex Float16 by
12189         %xmm0.
12190         (function_value_64): Return _Float16/Complex Float16 by SSE
12191         register.
12192         (ix86_print_operand): Handle CONST_DOUBLE HFmode.
12193         (ix86_secondary_reload): Require gpr as intermediate register
12194         to store _Float16 from sse register when sse4 is not
12195         available.
12196         (ix86_libgcc_floating_mode_supported_p): Enable _FLoat16 under
12197         sse2.
12198         (ix86_scalar_mode_supported_p): Ditto.
12199         (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Defined.
12200         * config/i386/i386.h (VALID_SSE2_REG_MODE): Add HFmode.
12201         (VALID_INT_MODE_P): Add HFmode and HCmode.
12202         * config/i386/i386.md (*pushhf_rex64): New define_insn.
12203         (*pushhf): Ditto.
12204         (*movhf_internal): Ditto.
12205         * doc/extend.texi (Half-Precision Floating Point): Documemt
12206         _Float16 for x86.
12208 2021-09-02  Richard Biener  <rguenther@suse.de>
12210         PR tree-optimization/102155
12211         * tree-ssa-loop-im.c (fill_always_executed_in_1): Iterate
12212         over a part of the RPO array and do not recurse here.
12213         Dump blocks marked as always executed.
12214         (fill_always_executed_in): Walk over the RPO array and
12215         process loops whose header we run into.
12216         (loop_invariant_motion_in_fun): Compute the first RPO
12217         using rev_post_order_and_mark_dfs_back_seme in iteration
12218         order and pass that to fill_always_executed_in.
12220 2021-09-02  YunQiang Su  <syq@debian.org>
12222         Revert:
12223         2021-08-31  YunQiang Su  <yunqiang.su@cipunited.com>
12225         * config/mips/mips.c (mips_module_isa_name): New.
12226           mips_file_start: add .module mipsREV to all asm output
12228 2021-09-01  Jeff Law  <jlaw@localhost.localdomain>
12230         PR tree-optimization/102152
12231         * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Reduce a vector
12232         comparison to a scalar comparison before calling
12233         update_stmt_if_modified.
12235 2021-09-01  Andrew Pinski  <apinski@marvell.com>
12237         PR target/101934
12238         * config/aarch64/aarch64.c (aarch64_expand_setmem):
12239         Check STRICT_ALIGNMENT before creating an overlapping
12240         store.
12242 2021-09-01  Martin Sebor  <msebor@redhat.com>
12244         * gimple-ssa-warn-access.cc (get_size_range): Add argument.
12245         (check_access): Pass additional argument.
12246         (check_memop_access): Remove template and make a member function.
12247         (maybe_check_dealloc_call): Make a pass_waccess member function.
12248         (class pass_waccess): Add, rename, and remove members.
12249         (pass_waccess::pass_waccess): Adjust to name change.
12250         (pass_waccess::~pass_waccess): Same.
12251         (check_alloca): Make a member function.
12252         (check_alloc_size_call): Same.
12253         (check_strcat): Same.
12254         (check_strncat): Same.
12255         (check_stxcpy): Same.
12256         (check_stxncpy): Same.
12257         (check_strncmp): Same.
12258         (maybe_warn_rdwr_sizes): Rename...
12259         (pass_waccess::maybe_check_access_sizes): ...to this.
12260         (pass_waccess::check_call): Adjust to name changes.
12261         (pass_waccess::maybe_check_dealloc_call): Make a pass_waccess member
12262         function.
12263         (pass_waccess::execute): Adjust to name changes.
12264         * gimple-ssa-warn-access.h (check_memop_access): Remove.
12265         * pointer-query.cc (access_ref::phi): Handle null pointer.
12266         (access_ref::inform_access): Same.
12267         (pointer_query::put_ref): Modify a cached value, not a copy of it.
12268         (pointer_query::dump): New function.
12269         (compute_objsize_r): Avoid overwriting access_ref::bndrng.  Cache
12270         more results.
12271         * pointer-query.h (pointer_query::dump): Declare.
12272         * tree-ssa-strlen.c (get_range): Simplify.  Use function query.
12273         (dump_strlen_info): Use function query.
12274         (printf_strlen_execute): Factor code out into pointer_query::put_ref.
12276 2021-09-01  Thomas Schwinge  <thomas@codesourcery.com>
12278         * tree.c (walk_tree_1) <OMP_CLAUSE>: Simplify.
12280 2021-09-01  Iain Sandoe  <iain@sandoe.co.uk>
12282         * doc/extend.texi: Document unavailable attribute.
12283         * print-tree.c (print_node): Handle unavailable attribute.
12284         * tree-core.h (struct tree_base): Add a bit to carry unavailability.
12285         * tree.c (error_unavailable_use): New.
12286         * tree.h (TREE_UNAVAILABLE): New.
12287         (error_unavailable_use): New.
12289 2021-09-01  Jakub Jelinek  <jakub@redhat.com>
12291         PR tree-optimization/102124
12292         * tree-vect-patterns.c (vect_recog_widen_op_pattern): For ORIG_CODE
12293         MINUS_EXPR, if itype is unsigned with smaller precision than type,
12294         add an extra cast to signed variant of itype to ensure sign-extension.
12296 2021-09-01  Martin Liska  <mliska@suse.cz>
12298         * graph.c (draw_cfg_node_succ_edges): Do not color fallthru
12299           edges and rather use colors for TRUE and FALSE edges.
12301 2021-09-01  Richard Biener  <rguenther@suse.de>
12303         PR tree-optimization/93491
12304         * tree-ssa-pre.c (compute_avail): Set BB_MAY_NOTRETURN
12305         after processing the stmt itself.  Do not consider
12306         pure functions possibly not returning.  Properly avoid
12307         adding possibly trapping calls to EXP_GEN when there's
12308         a preceeding possibly not returning call.
12309         * tree-ssa-sccvn.c (vn_reference_may_trap): Conservatively
12310         not handle calls.
12312 2021-09-01  Richard Biener  <rguenther@suse.de>
12314         PR tree-optimization/102139
12315         * tree-vectorizer.h (vec_base_alignments): Adjust hash-map
12316         type to record a std::pair of the stmt-info and the innermost
12317         loop behavior.
12318         (dr_vec_info::group): New member.
12319         * tree-vect-data-refs.c (vect_record_base_alignment): Adjust.
12320         (vect_compute_data_ref_alignment): Verify the recorded
12321         base alignment can be used.
12322         (data_ref_pair): Remove.
12323         (dr_group_sort_cmp): Adjust.
12324         (vect_analyze_data_ref_accesses): Store the group-ID in the
12325         dr_vec_info and operate on a vector of dr_vec_infos.
12327 2021-09-01  YunQiang Su  <yunqiang.su@cipunited.com>
12329         * read-md.c (md_reader::handle_enum): support value assignation.
12330         * doc/md.texi: record define_c_enum value assignation support.
12332 2021-09-01  Jakub Jelinek  <jakub@redhat.com>
12334         PR tree-optimization/102141
12335         * gimple-ssa-store-merging.c (bswap_view_convert): Add BEFORE
12336         argument.  If false, emit stmts after gsi instead of before, and
12337         with GSI_NEW_STMT.
12338         (bswap_replace): Adjust callers.  When converting output of bswap,
12339         emit VIEW_CONVERT prepratation stmts after a copy of gsi instead
12340         of before it.
12342 2021-09-01  liuhongt  <hongtao.liu@intel.com>
12344         * emit-rtl.c (validate_subreg): Get rid of all float-int
12345         special cases.
12347 2021-09-01  liuhongt  <hongtao.liu@intel.com>
12349         Revert:
12350         2021-08-30  liuhongt  <hongtao.liu@intel.com>
12352         * expmed.c (extract_bit_field_1): Make sure we're playing with
12353         integral modes before call extract_integral_bit_field.
12354         (extract_integral_bit_field): Add a parameter of type
12355         scalar_int_mode which corresponds to of tmode.
12356         And call extract_and_convert_fixed_bit_field instead of
12357         extract_fixed_bit_field and convert_extracted_bit_field.
12358         (extract_and_convert_fixed_bit_field): New function, it's a
12359         combination of extract_fixed_bit_field and
12360         convert_extracted_bit_field.
12362 2021-08-31  Thomas Schwinge  <thomas@codesourcery.com>
12364         * tree.c (walk_tree_1) <OMP_CLAUSE_TILE>: Handle three operands.
12366 2021-08-31  Thomas Schwinge  <thomas@codesourcery.com>
12368         * omp-general.h (omp_is_reference): Rename to...
12369         (omp_privatize_by_reference): ... this.  Adjust all users...
12370         * omp-general.c: ... here, ...
12371         * gimplify.c: ... here, ...
12372         * omp-expand.c: ... here, ...
12373         * omp-low.c: ... here.
12375 2021-08-31  Martin Sebor  <msebor@redhat.com>
12377         * gimple-ssa-warn-access.cc (maybe_warn_alloc_args_overflow): Test
12378         pointer element for equality to zero, not that of the cotaining
12379         array.
12381 2021-08-31  Martin Sebor  <msebor@redhat.com>
12383         * gcc-rich-location.h (gcc_rich_location): Make ctor explicit.
12385 2021-08-31  Martin Sebor  <msebor@redhat.com>
12387         * function.h (function): Add comments.
12388         (get_range_query): Same.  Add attribute returns nonnull.
12390 2021-08-31  Roger Sayle  <roger@nextmovesoftware.com>
12392         * expr.c (convert_modes): Don't use subreg_promoted_mode on a
12393         SUBREG if it can't be guaranteed to a SUBREG_PROMOTED_VAR_P set.
12394         Instead use the standard (safer) is_a <scalar_int_mode> idiom.
12396 2021-08-31  Jeff Law  <jlaw@localhost.localdomain>
12398         * config.gcc (cris-*-elf, cris-*-none): Remove dbxelf.h from
12399         tm_file.
12400         (m32r-*-elf, m32rle-*-elf, m32r-*-linux): Likewise.
12401         (mn10300-*-*, am33_2.0-*-linux*): Likewise.
12402         (xtensa*-*-elf, xtensa*-*-linux, xtensa*-*-uclinux): Likewise.
12403         (m32c-*-elf*, m32c-*-rtems*): Likewise.
12404         * config/cris/cris.h (DBX_NO_XREFS): Remove.
12405         (DBX_CONTIN_LENGTH, DBX_CONTIN_CHAR): Likewise.
12406         * config/m32r/m32r.h (DBXOUT_SOURCE_LINE): Likewise.
12407         (DBX_DEBUGGING_INFO, DBX_CONTIN_LENGTH): Likewise.
12408         * config/mn10300/mn10300.h (DEFAULT_GDB_EXTENSIONS): Likewise.
12409         * config/mn10300/linux.h (DBX_REGISTER_NAMES): Likewise.
12411 2021-08-31  Marcel Vollweiler  <marcel@codesourcery.com>
12413         * gimplify.c (gimplify_scan_omp_clauses): Error handling. 'ancestor' only
12414         allowed on target constructs and only with particular other clauses.
12415         * omp-expand.c (expand_omp_target): Output of 'sorry, not supported' if
12416         'ancestor' is used.
12417         * omp-low.c (check_omp_nesting_restrictions): Error handling. No nested OpenMP
12418         structs when 'ancestor' is used.
12419         (scan_omp_1_stmt): No usage of OpenMP runtime routines in a target region when
12420         'ancestor' is used.
12421         * tree-pretty-print.c (dump_omp_clause): Append 'ancestor'.
12422         * tree.h (OMP_CLAUSE_DEVICE_ANCESTOR): Define macro.
12424 2021-08-31  Roger Sayle  <roger@nextmovesoftware.com>
12426         * expr.c (convert_modes): Preserve SUBREG_PROMOTED_VAR_P when
12427         creating a (wider) partial subreg from a SUBREG_PROMOTED_VAR_P
12428         subreg.
12429         * simplify-rtx.c (simplify_unary_operation_1) [SIGN_EXTEND]:
12430         Likewise, preserve SUBREG_PROMOTED_VAR_P when creating a (wider)
12431         partial subreg from a SUBREG_PROMOTED_VAR_P subreg.  Generate
12432         SIGN_EXTEND of the SUBREG_REG when a subreg would be paradoxical.
12433         [ZERO_EXTEND]: Likewise, preserve SUBREG_PROMOTED_VAR_P when
12434         creating a (wider) partial subreg from a SUBREG_PROMOTED_VAR_P
12435         subreg.  Generate ZERO_EXTEND of the SUBREG_REG when a subreg
12436         would be paradoxical.
12438 2021-08-31  Roger Sayle  <roger@nextmovesoftware.com>
12440         * combine.c (combine_simplify_rtx): Avoid converting an explicit
12441         TRUNCATE into a lowpart SUBREG on !TRULY_NOOP_TRUNCATION targets.
12442         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
12444 2021-08-31  Richard Biener  <rguenther@suse.de>
12446         PR tree-optimization/102142
12447         * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Fix
12448         condition under which to unset the visited flag.
12450 2021-08-31  Richard Biener  <rguenther@suse.de>
12452         PR middle-end/102129
12453         * tree-ssa-ter.c (find_replaceable_in_bb): Do not move
12454         possibly trapping expressions across calls.
12456 2021-08-31  Jakub Jelinek  <jakub@redhat.com>
12458         PR tree-optimization/102134
12459         * tree-ssa-ccp.c (bit_value_binop) <case RSHIFT_EXPR>: If sgn is
12460         UNSIGNED and r1val | r1mask has MSB set, ensure lzcount doesn't
12461         become negative.
12463 2021-08-31  Andrew Pinski  <apinski@marvell.com>
12465         PR driver/79181
12466         * collect-utils.c (setup_signals): New declaration.
12467         * collect-utils.h (setup_signals): New function.
12468         * collect2.c (handler): Delete.
12469         (main): Instead of manually setting up the signals,
12470         just call setup_signals.
12471         * lto-wrapper.c (main): Likewise.
12473 2021-08-31  Andrew Pinski  <apinski@marvell.com>
12475         PR target/56337
12476         * config/i386/i386-protos.h (x86_output_aligned_bss):
12477         Change align argument to unsigned type.
12478         (x86_elf_aligned_decl_common): Likewise.
12479         * config/i386/i386.c (x86_elf_aligned_decl_common): Likewise.
12480         (x86_output_aligned_bss): Likewise.
12482 2021-08-31  YunQiang Su  <yunqiang.su@cipunited.com>
12484         * config/mips/mips.c (mips_module_isa_name): New.
12485           mips_file_start: add .module mipsREV to all asm output
12487 2021-08-31  YunQiang Su  <yunqiang.su@cipunited.com>
12489         * config/mips/mips.h (struct mips_cpu_info): define enum mips_isa;
12490           use enum instead of int for 'isa' member.
12491         * config.gcc, config/mips/mips.c, config/mips/mips-cpus.def,
12492           config/mips/netbsd.h: replace hardcoded numbers with enum.
12494 2021-08-31  liuhongt  <hongtao.liu@intel.com>
12496         * config/i386/sse.md (*<avx512>_ucmp<mode>3_1): Change from
12497         define_split to define_insn_and_split.
12498         (*avx2_eq<mode>3): Removed.
12499         (<avx512>_eq<mode>3<mask_scalar_merge_name>): Adjust pattern
12500         (<avx512>_eq<mode>3<mask_scalar_merge_name>_1): Rename to ..
12501         (*<avx512>_eq<mode>3<mask_scalar_merge_name>_1): .. this, and
12502         adjust pattern.
12503         (*avx2_gt<mode>3): Removed.
12504         (<avx512>_gt<mode>3<mask_scalar_merge_name>): Change from
12505         define_insn to define_expand, and adjust pattern.
12506         (UNSPEC_MASKED_EQ, UNSPEC_MASKED_GT): Removed.
12508 2021-08-30  David Malcolm  <dmalcolm@redhat.com>
12510         PR analyzer/99260
12511         * Makefile.in (ANALYZER_OBJS): Add analyzer/call-info.o.
12513 2021-08-30  Jason Merrill  <jason@redhat.com>
12515         * doc/invoke.texi: Document -Wmissing-requires.
12517 2021-08-30  Bill Schmidt  <wschmidt@linux.ibm.com>
12519         * config/rs6000/rs6000-call.c (rs6000_init_builtins): Remove
12520         TARGET_EXTRA_BUILTINS guard.
12522 2021-08-30  Bill Schmidt  <wschmidt@linux.ibm.com>
12524         * config/rs6000/rs6000-call.c (rs6000_init_builtins): Change
12525         initialization of V2DI_type_node and unsigned_V2DI_type_node.
12527 2021-08-30  Bill Schmidt  <wschmidt@linux.ibm.com>
12529         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Use the new
12530         decl when new_builtins_are_live.
12531         * config/rs6000/rs6000-builtin-new.def (__builtin_cfstring): New
12532         built-in.
12534 2021-08-30  Pat Haugen  <pthaugen@linux.ibm.com>
12536         * config/rs6000/rs6000-cpus.def (ISA_3_1_MASKS_SERVER): Add
12537         OPTION_MASK_P10_FUSION_2STORE.
12538         (POWERPC_MASKS): Likewise.
12539         * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
12540         store fusion for Power10.
12541         (is_fusable_store): New.
12542         (power10_sched_reorder): Likewise.
12543         (rs6000_sched_reorder): Do Power10 specific reordering.
12544         (rs6000_sched_reorder2): Likewise.
12545         * config/rs6000/rs6000.opt: Add new option.
12547 2021-08-30  Richard Biener  <rguenther@suse.de>
12549         PR tree-optimization/102128
12550         * tree-vect-slp.c (vect_bb_vectorization_profitable_p):
12551         Move scanning for if-converted scalar code to the caller
12552         and instead delay clearing the visited flag for profitable
12553         subgraphs.
12554         (vect_slp_region): Cost all subgraphs before scheduling.
12555         For if-converted BB vectorization scan for scalar COND_EXPRs
12556         and do not vectorize if any found and the cost model is
12557         very-cheap.
12559 2021-08-30  Richard Biener  <rguenther@suse.de>
12561         * common.opt (fexceptions): Mark
12562         EnabledBy(fnon-call-exceptions).
12563         * doc/invoke.texi (fnon-call-exceptions): Document this
12564         enables -fexceptions.
12566 2021-08-30  Sebastian Huber  <sebastian.huber@embedded-brains.de>
12568         * tsystem.h (abort): Define abort() if inhibit_libc is defined and it
12569         is not already defined.
12571 2021-08-30  liuhongt  <hongtao.liu@intel.com>
12573         * expmed.c (extract_bit_field_1): Make sure we're playing with
12574         integral modes before call extract_integral_bit_field.
12575         (extract_integral_bit_field): Add a parameter of type
12576         scalar_int_mode which corresponds to of tmode.
12577         And call extract_and_convert_fixed_bit_field instead of
12578         extract_fixed_bit_field and convert_extracted_bit_field.
12579         (extract_and_convert_fixed_bit_field): New function, it's a
12580         combination of extract_fixed_bit_field and
12581         convert_extracted_bit_field.
12583 2021-08-29  Iain Sandoe  <iain@sandoe.co.uk>
12585         * config/darwin.c (darwin_libc_has_function): Do not run
12586         the checks for x86 or modern Darwin.  Make sure that there
12587         is a value set for darwin_macosx_version_min before testing.
12589 2021-08-29  Iain Sandoe  <iain@sandoe.co.uk>
12591         * config/i386/darwin.h (CLEAR_INSN_CACHE): New.
12593 2021-08-28  Jan Hubicka  <hubicka@ucw.cz>
12595         * ipa-modref-tree.h (modref_access_node::merge): Break out
12596         logic combining offsets and logic merging ranges to ...
12597         (modref_access_node::combined_offsets): ... here
12598         (modref_access_node::update2): ... here
12599         (modref_access_node::closer_pair_p): New member function.
12600         (modref_access_node::forced_merge): New member function.
12601         (modre_ref_node::insert): Do merging when table is full.
12603 2021-08-28  YunQiang Su  <yunqiang.su@cipunited.com>
12605         PR target/102089
12606         * config.gcc: MIPS: use N64 ABI by default if the triple end
12607           with -gnuabi64, which is used by Debian since 2013.
12609 2021-08-28  Alexandre Oliva  <oliva@adacore.com>
12611         * ipa-modref.c (analyze_function): Skip debug stmts.
12612         * tree-inline.c (estimate_num_insn): Consider builtins even
12613         without a cgraph_node.
12615 2021-08-27  Jeff Law  <jlaw@localhost.localdomain>
12617         * config/h8300/bitfield.md (cstore<mode>4): Remove expander.
12618         * config/h8300/h8300.c (h8300_expand_branch): Remove function.
12619         * config/h8300/h8300-protos.h (h8300_expadn_branch): Remove prototype.
12620         * config/h8300/h8300.md (eqne): New code iterator.
12621         (geultu, geultu_to_c): Similarly.
12622         * config/h8300/testcompare.md (cstore<mode>4): Dummy expander.
12623         (store_c_<mode>, store_c_i_<mode>): New define_insn_and_splits
12624         (cmp<mode>_c): New pattern
12626 2021-08-27  Jeff Law  <jlaw@localhost.localdomain>
12628         * tree-ssa-dom.c (reduce_vector_comparison_to_scalar_comparison): New
12629         function.
12630         (dom_opt_dom_walker::optimize_stmt): Use it.
12632 2021-08-27  Iain Sandoe  <iain@sandoe.co.uk>
12634         * config/darwin.c (finalize_ctors): Add a section-start linker-
12635         visible symbol.
12636         (finalize_dtors): Likewise.
12637         * config/darwin.h (MIN_LD64_INIT_TERM_START_LABELS): New.
12639 2021-08-27  Bill Schmidt  <wschmidt@linux.ibm.com>
12641         * config/rs6000/rs6000-call.c (rs6000-builtins.h): New #include.
12642         (rs6000_init_builtins): Call rs6000_init_generated_builtins.  Skip the
12643         old initialization logic when new builtins are enabled.
12644         * config/rs6000/rs6000-gen-builtins.c (write_decls): Rename
12645         rs6000_autoinit_builtins to rs6000_init_generated_builtins.
12646         (write_init_file): Likewise.
12648 2021-08-27  Iain Sandoe  <iain@sandoe.co.uk>
12650         * configure.ac (darwin2[[0-9]]* | darwin19*): Alter use of
12651         gcc_GAS_CHECK_FEATURE to remove an extraneous parameter.
12652         (amdgcn-* | gcn-*) Likewise.
12654 2021-08-27  Anthony Sharp  <anthonysharp15@gmail.com>
12656         * symbol-summary.h: Added missing template keyword.
12658 2021-08-27  Richard Biener  <rguenther@suse.de>
12660         PR tree-optimization/45178
12661         * tree-ssa-dce.c (find_obviously_necessary_stmts): For
12662         infinite loops without exit do not mark control dependent
12663         edges of the latch necessary.
12665 2021-08-27  konglin1  <lingling.kong@intel.com>
12667         PR target/101472
12668         * config/i386/sse.md: (<avx512>scattersi<mode>): Add mask operand to
12669         UNSPEC_VSIBADDR.
12670         (<avx512>scattersi<mode>): Likewise.
12671         (*avx512f_scattersi<VI48F:mode>): Merge mask operand to set_dest.
12672         (*avx512f_scatterdi<VI48F:mode>): Likewise
12674 2021-08-27  Kewen Lin  <linkw@linux.ibm.com>
12676         * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function): Add
12677         support for built-in functions MISC_BUILTIN_DIVWE, MISC_BUILTIN_DIVWEU,
12678         MISC_BUILTIN_DIVDE, MISC_BUILTIN_DIVDEU, P10_BUILTIN_CFUGED,
12679         P10_BUILTIN_CNTLZDM, P10_BUILTIN_CNTTZDM, P10_BUILTIN_PDEPD and
12680         P10_BUILTIN_PEXTD on Power10.
12682 2021-08-27  Kewen Lin  <linkw@linux.ibm.com>
12684         * config/rs6000/rs6000-call.c (builtin_function_type): Add unsigned
12685         signedness for some Power10 bifs.
12687 2021-08-27  David Edelsohn  <dje.gcc@gmail.com>
12689         PR target/102068
12690         * config/rs6000/rs6000.c (rs6000_adjust_field_align): Use
12691         computed alignment if the entire struct has attribute packed.
12693 2021-08-27  liuhongt  <hongtao.liu@intel.com>
12695         PR target/98167
12696         PR target/43147
12697         * config/i386/i386.c (ix86_gimple_fold_builtin): Fold
12698         IX86_BUILTIN_SHUFPD512, IX86_BUILTIN_SHUFPS512,
12699         IX86_BUILTIN_SHUFPD256, IX86_BUILTIN_SHUFPS,
12700         IX86_BUILTIN_SHUFPS256.
12701         (ix86_masked_all_ones): New function.
12703 2021-08-26  Uroš Bizjak  <ubizjak@gmail.com>
12705         * config/i386/i386.md (*btr<mode>_1): Call force_reg unconditionally.
12706         (conditional moves with memory inputs splitters): Ditto.
12707         * config/i386/sse.md (one_cmpl<mode>2): Simplify.
12709 2021-08-26  Jan Hubicka  <hubicka@ucw.cz>
12711         * ipa-modref-tree.h (modref_access_node::try_merge_with): Restart
12712         search after merging.
12714 2021-08-26  Bill Schmidt  <wschmidt@linux.ibm.com>
12716         * config/rs6000/rs6000-overload.def: Add remaining overloads.
12718 2021-08-26  Bill Schmidt  <wschmidt@linux.ibm.com>
12720         * config/rs6000/rs6000-builtin-new.def: Add cell stanza.
12722 2021-08-26  Bill Schmidt  <wschmidt@linux.ibm.com>
12724         * config/rs6000/rs6000-builtin-new.def: Add ieee128-hw, dfp,
12725         crypto, and htm stanzas.
12727 2021-08-26  Bill Schmidt  <wschmidt@linux.ibm.com>
12729         * config/rs6000/rs6000-builtin-new.def: Add mma stanza.
12731 2021-08-26  Martin Sebor  <msebor@redhat.com>
12733         * tree-ssa-uninit.c (warn_uninit): Refactor and simplify.
12734         (warn_uninit_phi_uses): Remove argument from calls to warn_uninit.
12735         (warn_uninitialized_vars): Same.  Reduce visibility of locals.
12736         (warn_uninitialized_phi): Same.
12738 2021-08-26  Roger Sayle  <roger@nextmovesoftware.com>
12740         * tree-ssa-ccp.c (get_individual_bits): Helper function to
12741         extract the individual bits from a widest_int constant (mask).
12742         (gray_code_bit_flips): New read-only table for effiently
12743         enumerating permutations/combinations of bits.
12744         (bit_value_binop) [LROTATE_EXPR, RROTATE_EXPR]: Handle rotates
12745         by unknown counts that are guaranteed less than the target
12746         precision and four or fewer unknown bits by enumeration.
12747         [LSHIFT_EXPR, RSHIFT_EXPR]: Likewise, also handle shifts by
12748         enumeration under the same conditions.  Handle remaining
12749         shifts as a mask based upon the minimum possible shift value.
12751 2021-08-26  Roger Sayle  <roger@nextmovesoftware.com>
12752             Richard Biener  <rguenther@suse.de>
12754         * match.pd (shift transformations): Remove a redundant
12755         !POINTER_TYPE_P check.
12757 2021-08-26  Uroš Bizjak  <ubizjak@gmail.com>
12759         PR target/102057
12760         * config/i386/i386.md (cmove reg-reg move elimination peephole2s):
12761         Set all_regs to true in the call to replace_rtx.
12763 2021-08-26  Jan Hubicka  <hubicka@ucw.cz>
12765         * ipa-modref-tree.c (test_insert_search_collapse): Update test.
12766         * ipa-modref-tree.h (modref_base_node::insert): Be smarter when
12767         hiting --param modref-max-refs limit.
12768         (modref_tree:insert_base): Be smarter when hitting
12769         --param modref-max-bases limit. Add new parameter REF.
12770         (modref_tree:insert): Update.
12771         (modref_tree:merge): Update.
12772         * ipa-modref.c (read_modref_records): Update.
12774 2021-08-26  Jan Hubicka  <hubicka@ucw.cz>
12776         * params.opt: (modref-max-adjustments): Add full stop.
12778 2021-08-26  Jan Hubicka  <hubicka@ucw.cz>
12780         * ipa-modref-tree.h (modref_ref_node::verify): New member
12781         functoin.
12782         (modref_ref_node::insert): Use it.
12783         (modref_ref_node::try_mere_with): Fix off by one error.
12785 2021-08-26  Martin Liska  <mliska@suse.cz>
12786             Stefan Kneifel  <stefan.kneifel@bluewin.ch>
12788         * cgraph.h (create_version_clone_with_body): Add new parameter.
12789         * cgraphclones.c: Likewise.
12790         * multiple_target.c (create_dispatcher_calls): Do not use
12791         numbered suffixes.
12792         (create_target_clone): Likewise here.
12794 2021-08-26  Jonathan Yong  <10walls@gmail.com>
12796         * doc/extend.texi: Add note about reserved priorities
12797         to the constructor attribute.
12799 2021-08-25  Martin Sebor  <msebor@redhat.com>
12801         * gimple-range-cache.cc (ssa_global_cache::dump): Avoid printing
12802         range table header alone.
12803         * gimple-range.cc (gimple_ranger::export_global_ranges): Same.
12805 2021-08-25  Jan Hubicka  <hubicka@ucw.cz>
12807         * doc/invoke.texi: Document --param modref-max-adjustments.
12808         * ipa-modref-tree.c (test_insert_search_collapse): Update.
12809         (test_merge): Update.
12810         * ipa-modref-tree.h (struct modref_access_node): Add adjustments;
12811         (modref_access_node::operator==): Fix handling of access ranges.
12812         (modref_access_node::contains): Constify parameter; handle also
12813         mismatched parm offsets.
12814         (modref_access_node::update): New function.
12815         (modref_access_node::merge): New function.
12816         (unspecified_modref_access_node): Update constructor.
12817         (modref_ref_node::insert_access): Add record_adjustments parameter;
12818         handle merging.
12819         (modref_ref_node::try_merge_with): New private function.
12820         (modref_tree::insert): New record_adjustments parameter.
12821         (modref_tree::merge): New record_adjustments parameter.
12822         (modref_tree::copy_from): Update.
12823         * ipa-modref.c (dump_access): Dump adjustments field.
12824         (get_access): Update constructor.
12825         (record_access): Update call of insert.
12826         (record_access_lto): Update call of insert.
12827         (merge_call_side_effects): Add record_adjustments parameter.
12828         (get_access_for_fnspec): Update.
12829         (process_fnspec): Update.
12830         (analyze_call): Update.
12831         (analyze_function): Update.
12832         (read_modref_records): Update.
12833         (ipa_merge_modref_summary_after_inlining): Update.
12834         (propagate_unknown_call): Update.
12835         (modref_propagate_in_scc): Update.
12836         * params.opt (param-max-modref-adjustments=): New.
12838 2021-08-25  Michael Meissner  <meissner@linux.ibm.com>
12840         * config/rs6000/vsx.md (UNSPEC_XXSPLTIDP): Rename from
12841         UNSPEC_XXSPLTID.
12842         (xxspltiw_v4si): Use vecperm type attribute.
12843         (xxspltiw_v4si_inst): Use vecperm type attribute.
12844         (xxspltiw_v4sf_inst): Likewise.
12845         (xxspltidp_v2df): Use vecperm type attribute.  Use
12846         UNSPEC_XXSPLTIDP instead of UNSPEC_XXSPLTID.
12847         (xxspltidp_v2df_inst): Likewise.
12848         (xxsplti32dx_v4si): Use vecperm type attribute.
12849         (xxsplti32dx_v4si_inst): Likewise.
12850         (xxsplti32dx_v4sf_inst): Likewise.
12851         (xxblend_<mode>): Likewise.
12852         (xxpermx): Likewise.
12853         (xxpermx_inst): Likewise.
12854         (xxeval): Likewise.
12856 2021-08-25  Lewis Hyatt  <lhyatt@gmail.com>
12858         PR other/93067
12859         * coretypes.h (typedef diagnostic_input_charset_callback): Declare.
12860         * diagnostic.c (diagnostic_initialize_input_context): New function.
12861         * diagnostic.h (diagnostic_initialize_input_context): Declare.
12862         * input.c (default_charset_callback): New function.
12863         (file_cache::initialize_input_context): New function.
12864         (file_cache_slot::create): Added ability to convert the input
12865         according to the input context.
12866         (file_cache::file_cache): Initialize the new input context.
12867         (class file_cache_slot): Added new m_alloc_offset member.
12868         (file_cache_slot::file_cache_slot): Initialize the new member.
12869         (file_cache_slot::~file_cache_slot): Handle potentially offset buffer.
12870         (file_cache_slot::maybe_grow): Likewise.
12871         (file_cache_slot::needs_read_p): Handle NULL fp, which is now possible.
12872         (file_cache_slot::get_next_line): Likewise.
12873         * input.h (class file_cache): Added input context member.
12875 2021-08-25  Richard Biener  <rguenther@suse.de>
12877         PR tree-optimization/102046
12878         * tree-vect-slp.c (vect_build_slp_tree_2): Conservatively
12879         update ->any_pattern when swapping operands.
12881 2021-08-25  Hongyu Wang  <hongyu.wang@intel.com>
12883         PR target/101716
12884         * config/i386/i386.c (ix86_live_on_entry): Adjust comment.
12885         (ix86_decompose_address): Remove retval check for ASHIFT,
12886         allow non-canonical zero extend if AND mask covers ASHIFT
12887         count.
12888         (ix86_legitimate_address_p): Adjust condition for decompose.
12889         (ix86_rtx_costs): Adjust cost for lea with non-canonical
12890         zero-extend.
12891         Co-Authored by: Uros Bizjak <ubizjak@gmail.com>
12893 2021-08-25  Jiufu Guo  <guojiufu@linux.ibm.com>
12895         PR tree-optimization/101145
12896         * tree-ssa-loop-niter.c (number_of_iterations_until_wrap):
12897         New function.
12898         (number_of_iterations_lt): Invoke above function.
12899         (adjust_cond_for_loop_until_wrap):
12900         Merge to number_of_iterations_until_wrap.
12901         (number_of_iterations_cond): Update invokes for
12902         adjust_cond_for_loop_until_wrap and number_of_iterations_lt.
12904 2021-08-25  konglin1  <lingling.kong@intel.com>
12906         PR target/101471
12907         * config/i386/avx512dqintrin.h (_mm512_fpclass_ps_mask): Fix
12908         macro define in O0.
12909         (_mm512_mask_fpclass_ps_mask): Ditto.
12911 2021-08-25  Kewen Lin  <linkw@linux.ibm.com>
12913         * config/rs6000/altivec.md (vec_unpacku_hi_v16qi): Remove.
12914         (vec_unpacku_hi_v8hi): Likewise.
12915         (vec_unpacku_lo_v16qi): Likewise.
12916         (vec_unpacku_lo_v8hi): Likewise.
12917         (vec_unpacku_hi_<VP_small_lc>): New define_expand.
12918         (vec_unpacku_lo_<VP_small_lc>): Likewise.
12920 2021-08-24  David Edelsohn  <dje.gcc@gmail.com>
12922         * config/rs6000/aix.h (SYSTEM_IMPLICIT_EXTERN_C): Delete.
12923         * config/rs6000/aix71.h (SYSTEM_IMPLICIT_EXTERN_C): Define.
12924         * config/rs6000/aix72.h (SYSTEM_IMPLICIT_EXTERN_C): Define.
12925         * config/rs6000/aix73.h (TARGET_AIX_VERSION): Increase to 73.
12927 2021-08-24  Roger Sayle  <roger@nextmovesoftware.com>
12929         PR middle-end/102031
12930         * simplify-rtx.c (simplify_truncation): When comparing precisions
12931         use "subreg_prec" variable, not "subreg_mode".
12933 2021-08-24  Bill Schmidt  <wschmidt@linux.ibm.com>
12935         * config/rs6000/rs6000-builtin-new.def: Add power10 and power10-64
12936         stanzas.
12938 2021-08-24  Bill Schmidt  <wschmidt@linux.ibm.com>
12940         * config/rs6000/rs6000-call.c (rs6000_init_builtins): Initialize
12941         various pointer type nodes.
12942         * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add enum
12943         values for various pointer types.
12944         (ptr_V16QI_type_node): New macro.
12945         (ptr_V1TI_type_node): New macro.
12946         (ptr_V2DI_type_node): New macro.
12947         (ptr_V2DF_type_node): New macro.
12948         (ptr_V4SI_type_node): New macro.
12949         (ptr_V4SF_type_node): New macro.
12950         (ptr_V8HI_type_node): New macro.
12951         (ptr_unsigned_V16QI_type_node): New macro.
12952         (ptr_unsigned_V1TI_type_node): New macro.
12953         (ptr_unsigned_V8HI_type_node): New macro.
12954         (ptr_unsigned_V4SI_type_node): New macro.
12955         (ptr_unsigned_V2DI_type_node): New macro.
12956         (ptr_bool_V16QI_type_node): New macro.
12957         (ptr_bool_V8HI_type_node): New macro.
12958         (ptr_bool_V4SI_type_node): New macro.
12959         (ptr_bool_V2DI_type_node): New macro.
12960         (ptr_bool_V1TI_type_node): New macro.
12961         (ptr_pixel_type_node): New macro.
12962         (ptr_intQI_type_node): New macro.
12963         (ptr_uintQI_type_node): New macro.
12964         (ptr_intHI_type_node): New macro.
12965         (ptr_uintHI_type_node): New macro.
12966         (ptr_intSI_type_node): New macro.
12967         (ptr_uintSI_type_node): New macro.
12968         (ptr_intDI_type_node): New macro.
12969         (ptr_uintDI_type_node): New macro.
12970         (ptr_intTI_type_node): New macro.
12971         (ptr_uintTI_type_node): New macro.
12972         (ptr_long_integer_type_node): New macro.
12973         (ptr_long_unsigned_type_node): New macro.
12974         (ptr_float_type_node): New macro.
12975         (ptr_double_type_node): New macro.
12976         (ptr_long_double_type_node): New macro.
12977         (ptr_dfloat64_type_node): New macro.
12978         (ptr_dfloat128_type_node): New macro.
12979         (ptr_ieee128_type_node): New macro.
12980         (ptr_ibm128_type_node): New macro.
12981         (ptr_vector_pair_type_node): New macro.
12982         (ptr_vector_quad_type_node): New macro.
12983         (ptr_long_long_integer_type_node): New macro.
12984         (ptr_long_long_unsigned_type_node): New macro.
12986 2021-08-24  Bill Schmidt  <wschmidt@linux.ibm.com>
12988         * config/rs6000/rs6000-builtin-new.def: Add power9-vector, power9,
12989         and power9-64 stanzas.
12991 2021-08-24  Roger Sayle  <roger@nextmovesoftware.com>
12992             Tom de Vries  <tdevries@suse.de>
12994         * config.gcc (nvptx-*-*): Define {c,c++}_target_objs.
12995         * config/nvptx/nvptx-protos.h (nvptx_cpu_cpp_builtins): Prototype.
12996         * config/nvptx/nvptx.h (TARGET_CPU_CPP_BUILTINS): Implement with
12997         a call to the new nvptx_cpu_cpp_builtins function in nvptx-c.c.
12998         * config/nvptx/t-nvptx (nvptx-c.o): New rule.
12999         * config/nvptx/nvptx-c.c: New source file.
13000         (nvptx_cpu_cpp_builtins): Move implementation here.
13002 2021-08-24  Martin Sebor  <msebor@redhat.com>
13004         PR middle-end/101600
13005         PR middle-end/101977
13006         * gimple-ssa-warn-access.cc (maybe_warn_for_bound): Tighten up
13007         the phrasing of a warning.
13008         (check_access): Use the remaining size after subtracting any offset
13009         rather than the whole object size.
13010         * pointer-query.cc (access_ref::get_ref): Clear BASE0 flag if it's
13011         clear for any nonnull PHI argument.
13012         (compute_objsize): Clear argument.
13014 2021-08-24  Bill Schmidt  <wschmidt@linux.ibm.com>
13016         * config/rs6000/rs6000-builtin-new.def: Add power8-vector stanza.
13018 2021-08-24  Bill Schmidt  <wschmidt@linux.ibm.com>
13020         * config/rs6000/rs6000-builtin-new.def: Add power7 and power7-64
13021         stanzas.
13023 2021-08-24  Andrew MacLeod  <amacleod@redhat.com>
13025         * value-relation.cc (rr_transitive_table): New.
13026         (relation_transitive): New.
13027         (value_relation::swap): Remove.
13028         (value_relation::apply_transitive): New.
13029         (relation_oracle::relation_oracle): Allocate a new tmp bitmap.
13030         (relation_oracle::register_relation): Call register_transitives.
13031         (relation_oracle::register_transitives): New.
13032         * value-relation.h (relation_oracle): Add new temporary bitmap and
13033         methods.
13035 2021-08-24  H.J. Lu  <hjl.tools@gmail.com>
13037         PR target/102021
13038         * config/i386/i386-expand.c (ix86_expand_vector_move): Broadcast
13039         from integer to a pseudo vector register.
13041 2021-08-24  Richard Biener  <rguenther@suse.de>
13043         PR tree-optimization/100089
13044         * tree-vectorizer.h (vect_slp_bb): Rename to ...
13045         (vect_slp_if_converted_bb): ... this and get the original
13046         loop as new argument.
13047         * tree-vectorizer.c (try_vectorize_loop_1): Revert previous fix,
13048         pass original loop to vect_slp_if_converted_bb.
13049         * tree-vect-slp.c (vect_bb_vectorization_profitable_p):
13050         If orig_loop was passed scan the not vectorized stmts
13051         for COND_EXPRs and force not profitable if found.
13052         (vect_slp_region): Pass down all SLP instances to costing
13053         if orig_loop was specified.
13054         (vect_slp_bbs): Pass through orig_loop.
13055         (vect_slp_bb): Rename to ...
13056         (vect_slp_if_converted_bb): ... this and get the original
13057         loop as new argument.
13058         (vect_slp_function): Adjust.
13060 2021-08-24  Richard Earnshaw  <rearnsha@arm.com>
13062         PR target/102035
13063         * config/arm/arm.md (attribute arch): Add fix_vlldm.
13064         (arch_enabled): Use it.
13065         * config/arm/vfp.md (lazy_store_multiple_insn): Add alternative to
13066         use when erratum mitigation is needed.
13068 2021-08-24  Richard Earnshaw  <rearnsha@arm.com>
13070         PR target/102035
13071         * config/arm/arm.opt (mfix-cmse-cve-2021-35465): New option.
13072         * doc/invoke.texi (Arm Options): Document it.
13073         * config/arm/arm-cpus.in (quirk_vlldm): New feature bit.
13074         (ALL_QUIRKS): Add quirk_vlldm.
13075         (cortex-m33): Add quirk_vlldm.
13076         (cortex-m35p, cortex-m55): Likewise.
13077         * config/arm/arm.c (arm_option_override): Enable fix_vlldm if
13078         targetting an affected CPU and not explicitly controlled on
13079         the command line.
13081 2021-08-24  Richard Earnshaw  <rearnsha@arm.com>
13083         * config/arm/vfp.md (lazy_store_multiple_insn): Rewrite as valid RTL.
13084         (lazy_load_multiple_insn): Likewise.
13086 2021-08-24  liuhongt  <hongtao.liu@intel.com>
13088         PR target/101989
13089         * config/i386/sse.md (<avx512>_vternlog<mode><sd_maskz_name>):
13090         Enable avx512 embedded broadcast.
13091         (*<avx512>_vternlog<mode>_all): Ditto.
13092         (<avx512>_vternlog<mode>_mask): Ditto.
13094 2021-08-24  liuhongt  <hongtao.liu@intel.com>
13096         PR target/101989
13097         * config/i386/i386.c (ix86_rtx_costs): Define cost for
13098         UNSPEC_VTERNLOG.
13099         * config/i386/i386.h (STRIP_UNARY): New macro.
13100         * config/i386/predicates.md (reg_or_notreg_operand): New
13101         predicate.
13102         * config/i386/sse.md (*<avx512>_vternlog<mode>_all): New define_insn.
13103         (*<avx512>_vternlog<mode>_1): New pre_reload
13104         define_insn_and_split.
13105         (*<avx512>_vternlog<mode>_2): Ditto.
13106         (*<avx512>_vternlog<mode>_3): Ditto.
13107         (any_logic1,any_logic2): New code iterator.
13108         (logic_op): New code attribute.
13109         (ternlogsuffix): Extend to VNxDF and VNxSF.
13111 2021-08-24  Richard Biener  <rguenther@suse.de>
13113         * doc/invoke.texi (vect-inner-loop-cost-factor): Adjust.
13114         * params.opt (--param vect-inner-loop-cost-factor): Adjust
13115         maximum value.
13116         * tree-vect-loop.c (vect_analyze_loop_form): Initialize
13117         inner_loop_cost_factor to the minimum of the estimated number
13118         of iterations of the inner loop and vect-inner-loop-cost-factor.
13120 2021-08-24  Roger Sayle  <roger@nextmovesoftware.com>
13121             Richard Biener  <rguenther@suse.de>
13123         * config/i386/i386-features.c (compute_convert_gain): Provide
13124         more accurate values for CONST_INT, when optimizing for size.
13125         * config/i386/i386.c (COSTS_N_BYTES): Move definition from here...
13126         * config/i386/i386.h (COSTS_N_BYTES): to here.
13128 2021-08-24  Roger Sayle  <roger@nextmovesoftware.com>
13129             Jakub Jelinek  <jakub@redhat.com>
13131         PR middle-end/102029
13132         * match.pd (shift transformations): Add an additional check for
13133         !POINTER_TYPE_P in the recently added left shift transformation.
13135 2021-08-24  liuhongt  <hongtao.liu@intel.com>
13137         PR tree-optimization/100089
13138         * tree-vectorizer.c (try_vectorize_loop_1): Disable slp in
13139         loop vectorizer when cost model is very-cheap.
13141 2021-08-23  Bill Schmidt  <wschmidt@linux.ibm.com>
13143         * config/rs6000/rs6000-gen-builtins.c (parse_bif_entry): Don't call
13144         asprintf, which is not available on AIX.
13146 2021-08-23  Bill Schmidt  <wschmidt@linux.ibm.com>
13148         * config.gcc (target_gtfiles): Add ./rs6000-builtins.h.
13149         * config/rs6000/t-rs6000 (EXTRA_GTYPE_DEPS): Set.
13151 2021-08-23  Bill Schmidt  <wschmidt@linux.ibm.com>
13153         * config.gcc (powerpc*-*-*): Add rs6000-builtins.o to extra_objs.
13154         * config/rs6000/rs6000-gen-builtins.c (main): Close init_file
13155         last.
13156         * config/rs6000/t-rs6000 (rs6000-gen-builtins.o): New target.
13157         (rbtree.o): Likewise.
13158         (rs6000-gen-builtins): Likewise.
13159         (rs6000-builtins.c): Likewise.
13160         (rs6000-builtins.h): Likewise.
13161         (rs6000.o): Add dependency.
13162         (EXTRA_HEADERS): Add rs6000-vecdefines.h.
13163         (rs6000-vecdefines.h): New target.
13164         (rs6000-builtins.o): Likewise.
13165         (rs6000-call.o): Add rs6000-builtins.h as a dependency.
13166         (rs6000-c.o): Likewise.
13168 2021-08-23  Bill Schmidt  <wschmidt@linux.ibm.com>
13170         PR target/101830
13171         * config/rs6000/rs6000-gen-builtins.c (consume_whitespace):
13172         Diagnose buffer overrun.
13173         (safe_inc_pos): Fix overrun detection.
13174         (match_identifier): Diagnose buffer overrun.
13175         (match_integer): Likewise.
13176         (match_to_right_bracket): Likewise.
13178 2021-08-23  Jan Hubicka  <hubicka@ucw.cz>
13180         * ipa-modref-tree.h (modref_access_node::range_info_useful_p):
13181         Improve range compare.
13182         (modref_access_node::contains): New member function.
13183         (modref_access_node::search): Remove.
13184         (modref_access_node::insert): Be smarter about subaccesses.
13186 2021-08-23  Thomas Schwinge  <thomas@codesourcery.com>
13188         * config/i386/i386-options.c (ix86_omp_device_kind_arch_isa)
13189         <omp_device_arch> [ACCEL_COMPILER]: Match "intel_mic".
13190         * config/i386/t-omp-device (omp-device-properties-i386) <arch>:
13191         Add "intel_mic".
13193 2021-08-23  Jeff Law  <jlaw@localhost.localdomain>
13195         * config/h8300/h8300-protos.h (h8300_expand_epilogue): Add new
13196         argument.
13197         * config/h8300/jumpcall.md (call, call_value): Restrict to
13198         !SIBLING_CALL_P cases.
13199         (subcall, sibcall_value): New patterns & expanders.
13200         * config/h8300/proepi.md (epilogue): Pass new argument to
13201         h8300_expand_epilogue.
13202         (sibcall_epilogue): New expander.
13203         * config/h8300/h8300.c (h8300_expand_epilogue): Handle sibcall
13204         epilogues too.
13205         (h8300_ok_for_sibcall_p): New function.
13206         (TARGET_FUNCTION_OK_FOR_SIBCALL): define.
13208 2021-08-23  Roger Sayle  <roger@nextmovesoftware.com>
13210         * simplify-rtx.c (simplify_unary_operation_1): [TRUNCATE]:
13211         Handle case where the operand is already the desired mode.
13213 2021-08-23  Richard Biener  <rguenther@suse.de>
13215         PR ipa/97565
13216         * tree-ssa-structalias.c (ipa_pta_execute): Check in_other_partition
13217         in addition to has_gimple_body.
13219 2021-08-23  Jan Hubicka  <hubicka@ucw.cz>
13221         PR middle-end/101949
13222         * ipa-modref.c (analyze_ssa_name_flags): Fix merging of
13223         EAF_NOCLOBBER
13225 2021-08-23  Martin Liska  <mliska@suse.cz>
13227         * doc/invoke.texi: Put the option out of -mxl-mode-app-model
13228         table.
13230 2021-08-23  Richard Biener  <rguenther@suse.de>
13232         * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
13233         Properly scale the inner loop cost only once.
13235 2021-08-23  Roger Sayle  <roger@nextmovesoftware.com>
13237         * tree-ssa-ccp.c (bit_value_binop) [TRUNC_MOD_EXPR, TRUNC_DIV_EXPR]:
13238         Provide bounds for unsigned (and signed with non-negative operands)
13239         division and modulus.
13241 2021-08-23  Roger Sayle  <roger@nextmovesoftware.com>
13243         * simplify-rtx.c (simplify_truncation): Generalize simplification
13244         of (truncate:A (subreg:B X)).
13245         (simplify_unary_operation_1) [FLOAT_TRUNCATE, FLOAT_EXTEND,
13246         SIGN_EXTEND, ZERO_EXTEND]: Handle cases where the operand
13247         already has the desired machine mode.
13248         (test_scalar_int_ops): Add tests that useless extensions and
13249         truncations are optimized away.
13250         (test_scalar_int_ext_ops): New self-test function to confirm
13251         that truncations of extensions are correctly simplified.
13252         (test_scalar_int_ext_ops2): New self-test function to check
13253         truncations of truncations, extensions of extensions, and
13254         truncations of extensions.
13255         (test_scalar_ops): Call the above two functions with a
13256         representative sampling of integer machine modes.
13258 2021-08-23  Roger Sayle  <roger@nextmovesoftware.com>
13260         * match.pd (shift transformations): Change the sign of an
13261         LSHIFT_EXPR if it reduces the number of explicit conversions.
13263 2021-08-23  Jakub Jelinek  <jakub@redhat.com>
13265         PR tree-optimization/86723
13266         * gimple-ssa-store-merging.c (find_bswap_or_nop_finalize): Add
13267         cast64_to_32 argument, set *cast64_to_32 to false, unless n is
13268         non-memory permutation of 64-bit src which only has bytes of
13269         0 or [5..8] and n->range is 4.
13270         (find_bswap_or_nop): Add cast64_to_32 and mask arguments, adjust
13271         find_bswap_or_nop_finalize caller, support bswap with some bytes
13272         zeroed, as long as at least two bytes are not zeroed.
13273         (bswap_replace): Add mask argument and handle masking of bswap
13274         result.
13275         (maybe_optimize_vector_constructor): Adjust find_bswap_or_nop
13276         caller, punt if cast64_to_32 or mask is not all ones.
13277         (pass_optimize_bswap::execute): Adjust find_bswap_or_nop_finalize
13278         caller, for now punt if cast64_to_32.
13280 2021-08-23  Richard Biener  <rguenther@suse.de>
13282         PR tree-optimization/79334
13283         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record
13284         a type also for COMPONENT_REFs.
13285         (vn_reference_may_trap): Check ARRAY_REF with constant index
13286         against the array domain.
13288 2021-08-23  liuhongt  <hongtao.liu@intel.com>
13290         PR target/102016
13291         * config/i386/sse.md (*avx512f_pshufb_truncv8hiv8qi_1): Add
13292         TARGET_AVX512BW to condition.
13294 2021-08-23  Jakub Jelinek  <jakub@redhat.com>
13296         PR debug/101905
13297         * dwarf2out.c (gen_variable_die): Add DW_AT_location for global
13298         register variables already during early_dwarf if possible.
13300 2021-08-23  Christophe Lyon  <christophe.lyon@foss.st.com>
13302         * config/arm/arm_mve.h: Fix __arm_vctp16q return type.
13304 2021-08-23  Christophe Lyon  <christophe.lyon@foss.st.com>
13306         PR target/100856
13307         * config/arm/arm.opt: Fix typo.
13308         * config/arm/t-rmprofile: Fix typo.
13310 2021-08-23  Jakub Jelinek  <jakub@redhat.com>
13312         * tree.h (OMP_CLAUSE_GRAINSIZE_STRICT): Define.
13313         (OMP_CLAUSE_NUM_TASKS_STRICT): Define.
13314         * tree-pretty-print.c (dump_omp_clause) <case OMP_CLAUSE_GRAINSIZE,
13315         case OMP_CLAUSE_NUM_TASKS>: Print strict: modifier.
13316         * omp-expand.c (expand_task_call): Use GOMP_TASK_FLAG_STRICT in iflags
13317         if either grainsize or num_tasks clause has the strict modifier.
13319 2021-08-23  Martin Liska  <mliska@suse.cz>
13321         * dbgcnt.def (DEBUG_COUNTER): New counter.
13322         * gimple.c (gimple_call_arg_flags): Use it in IPA PTA.
13324 2021-08-23  Jan Hubicka  <hubicka@ucw.cz>
13326         * ipa-modref.c (analyze_ssa_name_flags): Improve handling of return slot.
13328 2021-08-23  Xi Ruoyao  <xry111@mengyan1223.wang>
13330         PR target/101922
13331         * config/mips/mips-protos.h (mips_msa_output_shift_immediate):
13332           Declare.
13333         * config/mips/mips.c (mips_msa_output_shift_immediate): New
13334           function.
13335         * config/mips/mips-msa.md (vashl<mode>3, vashr<mode>3,
13336           vlshr<mode>3): Call it.
13338 2021-08-22  Jan Hubicka  <hubicka@ucw.cz>
13339             Martin Liska  <mliska@suse.cz>
13341         PR middle-end/101949
13342         * ipa-modref.c (analyze_ssa_name_flags): Indirect call implies
13343         ~EAF_NOCLOBBER.
13345 2021-08-21  Dragan Mladjenovic  <OT_Dragan.Mladjenovic@mediatek.com>
13347         * config/mips/mips.c (mips_function_rodata_section,
13348         TARGET_ASM_FUNCTION_RODATA_SECTION): Removed.
13350 2021-08-21  John David Anglin  <danglin@gcc.gnu.org>
13352         * config/pa/pa.c (pa_asm_output_aligned_common): Remove warning.
13354 2021-08-20  Serge Belyshev  <belyshev@depni.sinp.msu.ru>
13356         * configure.ac (thread-local storage support): Remove tls_first_major
13357         and tls_first_minor.  Use "$conftest_s" to check support.
13358         * configure: Regenerate.
13360 2021-08-20  Serge Belyshev  <belyshev@depni.sinp.msu.ru>
13362         * configure.ac: Fixup formatting.
13364 2021-08-20  Serge Belyshev  <belyshev@depni.sinp.msu.ru>
13366         * acinclude.m4 (gcc_GAS_CHECK_FEATURE): Remove third argument and ...
13367         * configure.ac: ... update all callers.
13369 2021-08-20  Serge Belyshev  <belyshev@depni.sinp.msu.ru>
13371         PR target/91602
13372         * acinclude.m4 (_gcc_COMPUTE_GAS_VERSION, _gcc_GAS_VERSION_GTE_IFELSE)
13373         (gcc_GAS_VERSION_GTE_IFELSE): Remove.
13374         (gcc_GAS_CHECK_FEATURE): Do not handle in-tree case specially.
13375         * configure.ac: Remove gcc_cv_gas_major_version, gcc_cv_gas_minor_version.
13376         Remove remaining checks for in-tree assembler.
13377         * configure: Regenerate.
13379 2021-08-20  Jeff Law  <jlaw@localhost.localdomain>
13381         * config/h8300/h8300.c (shift_alg_hi): Improve arithmetic shift right
13382         by 15 bits for H8/300H and H8/S.  Improve logical shifts by 12
13383         bits for H8/S.
13384         (shift_alg_si): Improve arithmetic right shift by 28-30 bits for
13385         H8/300H.  Improve arithmetic shift right by 15 bits for H8/S.
13386         Improve logical shifts by 27 bits for H8/S.
13387         (get_shift_alg): Corresponding changes.
13388         (h8300_option_override): Revert to loops for -Os when profitable.
13390 2021-08-20  Richard Biener  <rguenther@suse.de>
13392         * tree-vect-data-refs.c (dr_group_sort_cmp): Do not compare
13393         BBs.
13394         (vect_analyze_data_ref_accesses): Likewise.  Assign the BB
13395         index as group_id when dataref_groups were not computed.
13396         * tree-vect-slp.c (vect_slp_bbs): Bump current_group when
13397         we advace to the next BB.
13399 2021-08-20  Jakub Jelinek  <jakub@redhat.com>
13401         * omp-builtins.def (BUILT_IN_GOMP_WARNING, BUILT_IN_GOMP_ERROR): New
13402         builtins.
13404 2021-08-20  Martin Liska  <mliska@suse.cz>
13406         PR gcov-profile/89961
13407         * gcov.c (make_gcov_file_name): Rewrite using std::string.
13408         (mangle_name): Simplify, do not used the second argument.
13409         (strip_extention): New function.
13410         (get_md5sum): Likewise.
13411         (get_gcov_intermediate_filename): Handle properly -p and -x
13412         options.
13413         (output_gcov_file): Use string type.
13414         (generate_results): Likewise.
13415         (md5sum_to_hex): Remove.
13417 2021-08-20  Michael Meissner  <meissner@linux.ibm.com>
13419         * config/rs6000/altivec.md (UNSPEC_XXEVAL): Move to vsx.md.
13420         (UNSPEC_XXSPLTIW): Move to vsx.md.
13421         (UNSPEC_XXSPLTID): Move to vsx.md.
13422         (UNSPEC_XXSPLTI32DX): Move to vsx.md.
13423         (UNSPEC_XXBLEND): Move to vsx.md.
13424         (UNSPEC_XXPERMX): Move to vsx.md.
13425         (VM3): Move to vsx.md.
13426         (VM3_char): Move to vsx.md.
13427         (xxspltiw_v4si): Move to vsx.md.
13428         (xxspltiw_v4sf): Move to vsx.md.
13429         (xxspltiw_v4sf_inst): Move to vsx.md.
13430         (xxspltidp_v2df): Move to vsx.md.
13431         (xxspltidp_v2df_inst): Move to vsx.md.
13432         (xxsplti32dx_v4si_inst): Move to vsx.md.
13433         (xxsplti32dx_v4sf): Move to vsx.md.
13434         (xxsplti32dx_v4sf_inst): Move to vsx.md.
13435         (xxblend_<mode>): Move to vsx.md.
13436         (xxpermx): Move to vsx.md.
13437         (xxpermx_inst): Move to vsx.md.
13438         * config/rs6000/vsx.md (UNSPEC_XXEVAL): Move from altivec.md.
13439         (UNSPEC_XXSPLTIW): Move from altivec.md.
13440         (UNSPEC_XXSPLTID): Move from altivec.md.
13441         (UNSPEC_XXSPLTI32DX): Move from altivec.md.
13442         (UNSPEC_XXBLEND): Move from altivec.md.
13443         (UNSPEC_XXPERMX): Move from altivec.md.
13444         (VM3): Move from altivec.md.
13445         (VM3_char): Move from altivec.md.
13446         (xxspltiw_v4si): Move from altivec.md.
13447         (xxspltiw_v4sf): Move from altivec.md.
13448         (xxspltiw_v4sf_inst): Move from altivec.md.
13449         (xxspltidp_v2df): Move from altivec.md.
13450         (xxspltidp_v2df_inst): Move from altivec.md.
13451         (xxsplti32dx_v4si_inst): Move from altivec.md.
13452         (xxsplti32dx_v4sf): Move from altivec.md.
13453         (xxsplti32dx_v4sf_inst): Move from altivec.md.
13454         (xxblend_<mode>): Move from altivec.md.
13455         (xxpermx): Move from altivec.md.
13456         (xxpermx_inst): Move from altivec.md.
13458 2021-08-19  Roger Sayle  <roger@nextmovesoftware.com>
13460         * tree-vect-generic.c (expand_vector_operations_1): Use either
13461         gimplify_build1 or gimplify_build2 instead of gimple_build_assign
13462         when constructing scalar splat expressions.
13464 2021-08-19  Peter Bergner  <bergner@linux.ibm.com>
13466         PR target/101849
13467         * config/rs6000/rs6000-call.c (rs6000_gimple_fold_mma_builtin): Cast
13468         pointer to __vector_pair *.
13470 2021-08-19  Martin Sebor  <msebor@redhat.com>
13472         * gimple-range.cc: Add comments.
13473         * gimple-range.h: Same.
13475 2021-08-19  Martin Sebor  <msebor@redhat.com>
13477         PR middle-end/101984
13478         * gimple-ssa-warn-access.cc (pass_waccess::execute): Also call
13479         disable_ranger.
13481 2021-08-19  Jeff Law  <jlaw@localhost.localdomain>
13483         * config.gcc (h8300-*-elf*): Do not include dbxelf.h.
13484         (h8300-*-linux*, v850-*-rtems*, v850*-elf*): Likewise.
13485         * config/v850/v850.h (DEFAULT_GDB_EXTENSIONS): Remove.
13487 2021-08-19  Jakub Jelinek  <jakub@redhat.com>
13489         PR middle-end/101950
13490         * optabs.c (expand_clrsb_using_clz): New function.
13491         (expand_unop): Use it as another clrsb expansion fallback.
13493 2021-08-19  liuhongt  <hongtao.liu@intel.com>
13495         Revert:
13496         2021-07-28  liuhongt  <hongtao.liu@intel.com>
13498         PR target/99881
13499         * config/i386/i386.h (processor_costs): Add new member
13500         integer_to_sse.
13501         * config/i386/x86-tune-costs.h (ix86_size_cost, i386_cost,
13502         i486_cost, pentium_cost, lakemont_cost, pentiumpro_cost,
13503         geode_cost, k6_cost, athlon_cost, k8_cost, amdfam10_cost,
13504         bdver_cost, znver1_cost, znver2_cost, znver3_cost,
13505         btver1_cost, btver2_cost, btver3_cost, pentium4_cost,
13506         nocona_cost, atom_cost, atom_cost, slm_cost, intel_cost,
13507         generic_cost, core_cost): Initialize integer_to_sse same value
13508         as sse_op.
13509         (skylake_cost): Initialize integer_to_sse twice as much as sse_op.
13510         * config/i386/i386.c (ix86_builtin_vectorization_cost):
13511         Use integer_to_sse instead of sse_op to calculate the cost of
13512         vec_construct.
13514 2021-08-18  Iain Sandoe  <iain@sandoe.co.uk>
13516         * config.gcc: Include rpath.opt for Darwin.
13517         * config/darwin.h (DRIVER_SELF_SPECS): Handle -rpath.
13519 2021-08-18  Thomas Schwinge  <thomas@codesourcery.com>
13521         PR bootstrap/101959
13522         * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor_expand):
13523         Use an 'int_hash'.
13525 2021-08-18  Jonathan Wright  <jonathan.wright@arm.com>
13527         * config/aarch64/arm_neon.h (vld3_lane_f64): Use float RTL
13528         pattern and type cast.
13529         (vld4_lane_f32): Use float RTL pattern.
13530         (vld4q_lane_f64): Use float type cast.
13532 2021-08-18  Jan Hubicka  <hubicka@ucw.cz>
13534         * tree-ssa-uninit.c (maybe_warn_pass_by_reference): Check also
13535         EAF_NOREAD.
13537 2021-08-18  Thomas Schwinge  <thomas@codesourcery.com>
13539         * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): Extend.
13540         (test_map_of_type_with_ctor_and_dtor_expand): Add function.
13541         (hash_map_tests_c_tests): Call it.
13543 2021-08-18  Thomas Schwinge  <thomas@codesourcery.com>
13545         * ggc.h (enum ggc_collect): New.
13546         (ggc_collect): Use it.
13547         * ggc-page.c: Adjust.
13548         * ggc-common.c: Likewise.
13549         * ggc-tests.c: Likewise.
13550         * read-rtl-function.c: Likewise.
13551         * selftest-run-tests.c: Likewise.
13552         * doc/gty.texi (Invoking the garbage collector): Likewise.
13554 2021-08-18  liuhongt  <hongtao.liu@intel.com>
13556         PR target/97147
13557         * config/i386/i386.h (TARGET_V2DF_REDUCTION_PREFER_HADDPD):
13558         New macro.
13559         * config/i386/sse.md (*sse3_haddv2df3_low): Add
13560         TARGET_V2DF_REDUCTION_PREFER_HADDPD.
13561         (*sse3_hsubv2df3_low): Ditto.
13562         * config/i386/x86-tune.def
13563         (X86_TUNE_V2DF_REDUCTION_PREFER_HADDPD): New tune.
13565 2021-08-17  Andrew MacLeod  <amacleod@redhat.com>
13567         * gimple-range-gori.cc (gori_compute::gori_compute): Enable tracing.
13568         (gori_compute::compute_operand_range): Add tracing.
13569         (gori_compute::logical_combine): Ditto.
13570         (gori_compute::compute_logical_operands): Ditto.
13571         (gori_compute::compute_operand1_range): Ditto.
13572         (gori_compute::compute_operand2_range): Ditto.
13573         (gori_compute::outgoing_edge_range_p): Ditto.
13574         * gimple-range-gori.h (class gori_compute): Add range_tracer.
13576 2021-08-17  Andrew MacLeod  <amacleod@redhat.com>
13578         * flag-types.h (enum evrp_mode): Adjust evrp-mode values.
13579         * gimple-range-cache.cc (DEBUG_RANGE_CACHE): Relocate from.
13580         * gimple-range-trace.h (DEBUG_RANGE_CACHE): Here.
13581         * params.opt (--param=evrp-mode): Adjust options.
13583 2021-08-17  Andrew MacLeod  <amacleod@redhat.com>
13585         * Makefile.in (OBJS): Add gimple-range-trace.o.
13586         * gimple-range-cache.h (enable_new_values): Remove unused prototype.
13587         * gimple-range-fold.cc: Adjust headers.
13588         * gimple-range-trace.cc: New.
13589         * gimple-range-trace.h: New.
13590         * gimple-range.cc (gimple_ranger::gimple_ranger): Enable tracer.
13591         (gimple_ranger::range_of_expr): Add tracing.
13592         (gimple_ranger::range_on_entry): Ditto.
13593         (gimple_ranger::range_on_exit): Ditto.
13594         (gimple_ranger::range_on_edge): Ditto.
13595         (gimple_ranger::fold_range_internal): Ditto.
13596         (gimple_ranger::dump_bb): Do not calculate edge range twice.
13597         (trace_ranger::*): Remove.
13598         (enable_ranger): Never create a trace_ranger.
13599         (debug_seed_ranger): Move to gimple-range-trace.cc.
13600         (dump_ranger): Ditto.
13601         (debug_ranger): Ditto.
13602         * gimple-range.h: Include gimple-range-trace.h.
13603         (range_on_entry, range_on_exit): No longer virtual.
13604         (class trace_ranger): Remove.
13605         (DEBUG_RANGE_CACHE): Move to gimple-range-trace.h.
13607 2021-08-17  Martin Sebor  <msebor@redhat.com>
13609         PR middle-end/101854
13610         * builtins.c (expand_builtin_alloca): Move warning code to check_alloca
13611         in gimple-ssa-warn-access.cc.
13612         * calls.c (alloc_max_size): Move code to check_alloca.
13613         (get_size_range): Move to pointer-query.cc.
13614         (maybe_warn_alloc_args_overflow): Move to gimple-ssa-warn-access.cc.
13615         (get_attr_nonstring_decl): Move to tree.c.
13616         (fntype_argno_type): Move to gimple-ssa-warn-access.cc.
13617         (append_attrname): Same.
13618         (maybe_warn_rdwr_sizes): Same.
13619         (initialize_argument_information): Move code to
13620         gimple-ssa-warn-access.cc.
13621         * calls.h (maybe_warn_alloc_args_overflow): Move to
13622         gimple-ssa-warn-access.h.
13623         (get_attr_nonstring_decl): Move to tree.h.
13624         (maybe_warn_nonstring_arg):  Move to gimple-ssa-warn-access.h.
13625         (enum size_range_flags): Move to pointer-query.h.
13626         (get_size_range): Same.
13627         * gimple-ssa-warn-access.cc (has_location): Remove unused overload
13628         to avoid Clang -Wunused-function.
13629         (get_size_range): Declare static.
13630         (maybe_emit_free_warning): Rename...
13631         (maybe_check_dealloc_call): ...to this for consistency.
13632         (class pass_waccess): Add members.
13633         (pass_waccess::~pass_waccess): Defined.
13634         (alloc_max_size): Move here from calls.c.
13635         (maybe_warn_alloc_args_overflow): Same.
13636         (check_alloca): New function.
13637         (check_alloc_size_call): New function.
13638         (check_strncat): Handle another warning flag.
13639         (pass_waccess::check_builtin): Handle alloca.
13640         (fntype_argno_type): Move here from calls.c.
13641         (append_attrname): Same.
13642         (maybe_warn_rdwr_sizes): Same.
13643         (pass_waccess::check_call): Define.
13644         (check_nonstring_args): New function.
13645         (pass_waccess::check): Call new member functions.
13646         (pass_waccess::execute): Enable ranger.
13647         * gimple-ssa-warn-access.h (get_size_range): Move here from calls.h.
13648         (maybe_warn_nonstring_arg): Same.
13649         * gimple-ssa-warn-restrict.c: Remove #include.
13650         * pointer-query.cc (get_size_range): Move here from calls.c.
13651         * pointer-query.h (enum size_range_flags): Same.
13652         (get_size_range): Same.
13653         * tree.c (get_attr_nonstring_decl): Move here from calls.c.
13654         * tree.h (get_attr_nonstring_decl): Move here from calls.h.
13656 2021-08-17  Thomas Schwinge  <thomas@codesourcery.com>
13658         * ggc.h (ggc_collect): Add 'force_collect' parameter.
13659         * ggc-page.c (ggc_collect): Use that one instead of global
13660         'ggc_force_collect'.  Adjust all users.
13661         * doc/gty.texi (Invoking the garbage collector): Update.
13662         * ggc-internal.h (ggc_force_collect): Remove.
13663         * ggc-common.c (ggc_force_collect): Likewise.
13664         * selftest.h (forcibly_ggc_collect): Remove.
13665         * ggc-tests.c (selftest::forcibly_ggc_collect): Likewise.
13666         * read-rtl-function.c (test_loading_labels): Adjust.
13667         * selftest-run-tests.c (run_tests): Likewise.
13669 2021-08-17  Iain Sandoe  <iain@sandoe.co.uk>
13671         * config/darwin.c (darwin_file_end): Reset and reclaim the
13672         section names table at the end of compile.
13674 2021-08-17  Iain Sandoe  <iain@sandoe.co.uk>
13676         PR target/100340
13677         * config.in: Regenerate.
13678         * config/i386/darwin.h (EXTRA_ASM_OPTS): New
13679         (ASM_SPEC): Pass options to disable branch shortening where
13680         needed.
13681         * configure: Regenerate.
13682         * configure.ac: Detect versions of 'as' that support the
13683         optimisation which has the bug.
13685 2021-08-17  Richard Biener  <rguenther@suse.de>
13687         * optabs-query.c (supports_vec_gather_load_p): Also check
13688         for masked optabs.
13689         (supports_vec_scatter_store_p): Likewise.
13690         * tree-vect-data-refs.c (vect_gather_scatter_fn_p): Fall
13691         back to masked variants if non-masked are not supported.
13692         * tree-vect-patterns.c (vect_recog_gather_scatter_pattern):
13693         When we need to use masked gather/scatter but do not have
13694         a mask set up a constant true one.
13695         * tree-vect-stmts.c (vect_check_scalar_mask): Also allow
13696         non-SSA_NAME masks.
13698 2021-08-17  Roger Sayle  <roger@nextmovesoftware.com>
13700         * tree-ssa-ccp.c (bit_value_binop) [MINUS_EXPR]: Use same
13701         algorithm as PLUS_EXPR to improve subtraction bit bounds.
13702         [POINTER_DIFF_EXPR]: Treat as synonymous with MINUS_EXPR.
13704 2021-08-17  Roger Sayle  <roger@nextmovesoftware.com>
13706         * tree-ssa-ccp.c (bit_value_mult_const): New helper function to
13707         calculate the mask-value pair result of a multiplication by an
13708         unsigned constant.
13709         (bit_value_binop) [MULT_EXPR]:  Call it from here for
13710         multiplications by (sparse) non-negative constants.
13712 2021-08-17  Christophe Lyon  <christophe.lyon@foss.st.com>
13714         PR target/100896
13715         * config.gcc (gcc_cv_initfini_array): Leave undefined for
13716         uclinuxfdpiceabi targets.
13718 2021-08-17  Alexandre Oliva  <oliva@adacore.com>
13720         * tree-inline.c (maybe_move_debug_stmts_to_successors): Don't
13721         reverse debug stmts.
13723 2021-08-17  Alexandre Oliva  <oliva@adacore.com>
13725         * tree-cfg.c (dump_function_to_file): Use fun, not cfun.
13727 2021-08-17  Jonathan Wright  <jonathan.wright@arm.com>
13729         * config/aarch64/arm_neon.h (__LD4_LANE_FUNC): Delete.
13730         (__LD4Q_LANE_FUNC): Likewise.
13731         (vld4_lane_u8): Define without macro.
13732         (vld4_lane_u16): Likewise.
13733         (vld4_lane_u32): Likewise.
13734         (vld4_lane_u64): Likewise.
13735         (vld4_lane_s8): Likewise.
13736         (vld4_lane_s16): Likewise.
13737         (vld4_lane_s32): Likewise.
13738         (vld4_lane_s64): Likewise.
13739         (vld4_lane_f16): Likewise.
13740         (vld4_lane_f32): Likewise.
13741         (vld4_lane_f64): Likewise.
13742         (vld4_lane_p8): Likewise.
13743         (vld4_lane_p16): Likewise.
13744         (vld4_lane_p64): Likewise.
13745         (vld4q_lane_u8): Likewise.
13746         (vld4q_lane_u16): Likewise.
13747         (vld4q_lane_u32): Likewise.
13748         (vld4q_lane_u64): Likewise.
13749         (vld4q_lane_s8): Likewise.
13750         (vld4q_lane_s16): Likewise.
13751         (vld4q_lane_s32): Likewise.
13752         (vld4q_lane_s64): Likewise.
13753         (vld4q_lane_f16): Likewise.
13754         (vld4q_lane_f32): Likewise.
13755         (vld4q_lane_f64): Likewise.
13756         (vld4q_lane_p8): Likewise.
13757         (vld4q_lane_p16): Likewise.
13758         (vld4q_lane_p64): Likewise.
13759         (vld4_lane_bf16): Likewise.
13760         (vld4q_lane_bf16): Likewise.
13762 2021-08-17  Jonathan Wright  <jonathan.wright@arm.com>
13764         * config/aarch64/arm_neon.h (__LD3_LANE_FUNC): Delete.
13765         (__LD3Q_LANE_FUNC): Delete.
13766         (vld3_lane_u8): Define without macro.
13767         (vld3_lane_u16): Likewise.
13768         (vld3_lane_u32): Likewise.
13769         (vld3_lane_u64): Likewise.
13770         (vld3_lane_s8): Likewise.
13771         (vld3_lane_s16): Likewise.
13772         (vld3_lane_s32): Likewise.
13773         (vld3_lane_s64): Likewise.
13774         (vld3_lane_f16): Likewise.
13775         (vld3_lane_f32): Likewise.
13776         (vld3_lane_f64): Likewise.
13777         (vld3_lane_p8): Likewise.
13778         (vld3_lane_p16): Likewise.
13779         (vld3_lane_p64): Likewise.
13780         (vld3q_lane_u8): Likewise.
13781         (vld3q_lane_u16): Likewise.
13782         (vld3q_lane_u32): Likewise.
13783         (vld3q_lane_u64): Likewise.
13784         (vld3q_lane_s8): Likewise.
13785         (vld3q_lane_s16): Likewise.
13786         (vld3q_lane_s32): Likewise.
13787         (vld3q_lane_s64): Likewise.
13788         (vld3q_lane_f16): Likewise.
13789         (vld3q_lane_f32): Likewise.
13790         (vld3q_lane_f64): Likewise.
13791         (vld3q_lane_p8): Likewise.
13792         (vld3q_lane_p16): Likewise.
13793         (vld3q_lane_p64): Likewise.
13794         (vld3_lane_bf16): Likewise.
13795         (vld3q_lane_bf16): Likewise.
13797 2021-08-17  Jonathan Wright  <jonathan.wright@arm.com>
13799         * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Delete.
13800         (__LD2Q_LANE_FUNC): Likewise.
13801         (vld2_lane_u8): Define without macro.
13802         (vld2_lane_u16): Likewise.
13803         (vld2_lane_u32): Likewise.
13804         (vld2_lane_u64): Likewise.
13805         (vld2_lane_s8): Likewise.
13806         (vld2_lane_s16): Likewise.
13807         (vld2_lane_s32): Likewise.
13808         (vld2_lane_s64): Likewise.
13809         (vld2_lane_f16): Likewise.
13810         (vld2_lane_f32): Likewise.
13811         (vld2_lane_f64): Likewise.
13812         (vld2_lane_p8): Likewise.
13813         (vld2_lane_p16): Likewise.
13814         (vld2_lane_p64): Likewise.
13815         (vld2q_lane_u8): Likewise.
13816         (vld2q_lane_u16): Likewise.
13817         (vld2q_lane_u32): Likewise.
13818         (vld2q_lane_u64): Likewise.
13819         (vld2q_lane_s8): Likewise.
13820         (vld2q_lane_s16): Likewise.
13821         (vld2q_lane_s32): Likewise.
13822         (vld2q_lane_s64): Likewise.
13823         (vld2q_lane_f16): Likewise.
13824         (vld2q_lane_f32): Likewise.
13825         (vld2q_lane_f64): Likewise.
13826         (vld2q_lane_p8): Likewise.
13827         (vld2q_lane_p16): Likewise.
13828         (vld2q_lane_p64): Likewise.
13829         (vld2_lane_bf16): Likewise.
13830         (vld2q_lane_bf16): Likewise.
13832 2021-08-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
13834         * haifa-sched.c (advance_one_cycle): Output more context-synchronization
13835         lines for diff.
13837 2021-08-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
13839         * haifa-sched.c (enum rfs_decision, rfs_str): Add RFS_AUTOPREF.
13840         (rank_for_schedule): Use it.
13842 2021-08-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
13844         PR rtl-optimization/91598
13845         * haifa-sched.c (autopref_rank_for_schedule): Prioritize "irrelevant"
13846         insns after memory reads and before memory writes.
13848 2021-08-17  Alistair_Lee  <alistair.lee@arm.com>
13850         * rtl.h (CONST_VECTOR_P): New macro.
13851         * config/aarch64/aarch64.c (aarch64_get_sve_pred_bits): Use RTL
13852         code testing macros.
13853         (aarch64_ptrue_all_mode): Likewise.
13854         (aarch64_expand_mov_immediate): Likewise.
13855         (aarch64_const_vec_all_in_range_p): Likewise.
13856         (aarch64_rtx_costs): Likewise.
13857         (aarch64_legitimate_constant_p): Likewise.
13858         (aarch64_simd_valid_immediate): Likewise.
13859         (aarch64_simd_make_constant): Likewise.
13860         (aarch64_convert_mult_to_shift): Likewise.
13861         (aarch64_expand_sve_vec_perm): Likewise.
13862         (aarch64_vec_fpconst_pow_of_2): Likewise.
13864 2021-08-17  Andrew MacLeod  <amacleod@redhat.com>
13866         PR tree-optimization/101938
13867         * range-op.cc (operator_abs::op1_range): Special case
13868         -TYPE_MIN_VALUE for flag_wrapv.
13870 2021-08-17  Kewen Lin  <linkw@linux.ibm.com>
13872         * tree-vect-slp.c (vectorizable_bb_reduc_epilogue): Add the cost for
13873         value extraction.
13875 2021-08-17  Jakub Jelinek  <jakub@redhat.com>
13877         * tree.def (OMP_SCOPE): New tree code.
13878         * tree.h (OMP_SCOPE_BODY, OMP_SCOPE_CLAUSES): Define.
13879         * tree-nested.c (convert_nonlocal_reference_stmt,
13880         convert_local_reference_stmt, convert_gimple_call): Handle
13881         GIMPLE_OMP_SCOPE.
13882         * tree-pretty-print.c (dump_generic_node): Handle OMP_SCOPE.
13883         * gimple.def (GIMPLE_OMP_SCOPE): New gimple code.
13884         * gimple.c (gimple_build_omp_scope): New function.
13885         (gimple_copy): Handle GIMPLE_OMP_SCOPE.
13886         * gimple.h (gimple_build_omp_scope): Declare.
13887         (gimple_has_substatements): Handle GIMPLE_OMP_SCOPE.
13888         (gimple_omp_scope_clauses, gimple_omp_scope_clauses_ptr,
13889         gimple_omp_scope_set_clauses): New inline functions.
13890         (CASE_GIMPLE_OMP): Add GIMPLE_OMP_SCOPE.
13891         * gimple-pretty-print.c (dump_gimple_omp_scope): New function.
13892         (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCOPE.
13893         * gimple-walk.c (walk_gimple_stmt): Likewise.
13894         * gimple-low.c (lower_stmt): Likewise.
13895         * gimplify.c (is_gimple_stmt): Handle OMP_MASTER.
13896         (gimplify_scan_omp_clauses): For task reductions, handle OMP_SCOPE
13897         like ORT_WORKSHARE constructs.  Adjust diagnostics for %<scope%>
13898         allowing task reductions.  Reject inscan reductions on scope.
13899         (omp_find_stores_stmt): Handle GIMPLE_OMP_SCOPE.
13900         (gimplify_omp_workshare, gimplify_expr): Handle OMP_SCOPE.
13901         * tree-inline.c (remap_gimple_stmt): Handle GIMPLE_OMP_SCOPE.
13902         (estimate_num_insns): Likewise.
13903         * omp-low.c (build_outer_var_ref): Look through GIMPLE_OMP_SCOPE
13904         contexts if var isn't privatized there.
13905         (check_omp_nesting_restrictions): Handle GIMPLE_OMP_SCOPE.
13906         (scan_omp_1_stmt): Likewise.
13907         (maybe_add_implicit_barrier_cancel): Look through outer
13908         scope constructs.
13909         (lower_omp_scope): New function.
13910         (lower_omp_task_reductions): Handle OMP_SCOPE.
13911         (lower_omp_1): Handle GIMPLE_OMP_SCOPE.
13912         (diagnose_sb_1, diagnose_sb_2): Likewise.
13913         * omp-expand.c (expand_omp_single): Support also GIMPLE_OMP_SCOPE.
13914         (expand_omp): Handle GIMPLE_OMP_SCOPE.
13915         (omp_make_gimple_edges): Likewise.
13916         * omp-builtins.def (BUILT_IN_GOMP_SCOPE_START): New built-in.
13918 2021-08-17  Richard Biener  <rguenther@suse.de>
13920         PR tree-optimization/101925
13921         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Set
13922         reverse on COMPONENT_REF and ARRAY_REF according to
13923         what reverse_storage_order_for_component_p does.
13924         (vn_reference_eq): Compare reversed on reference ops.
13925         (reverse_storage_order_for_component_p): New overload.
13926         (vn_reference_lookup_3): Check reverse_storage_order_for_component_p
13927         on the reference looked up.
13929 2021-08-17  Jeff Law  <jlaw@localhost.localdomain>
13931         * config/h8300/h8300.c (shift_alg_si): Avoid loops for most SImode
13932         shifts on the H8/S.
13933         (h8300_option_override): Use loops on H8/S more often when optimizing
13934         for size.
13935         (get_shift_alg): Handle new "special" cases on H8/S.  Simplify
13936         accordingly.  Handle various arithmetic right shifts with special
13937         sequences that we couldn't handle before.
13939 2021-08-16  Jeff Law  <jlaw@localhost.localdomain>
13941         * config.gcc (rl78-*-elf*): Do not include dbxelf.h.
13943 2021-08-16  Sebastian Huber  <sebastian.huber@embedded-brains.de>
13945         * config/sparc/rtemself.h (SPARC_GCOV_TYPE_SIZE): Define.
13946         * config/sparc/sparc.c (sparc_gcov_type_size): New.
13947         (TARGET_GCOV_TYPE_SIZE): Redefine if SPARC_GCOV_TYPE_SIZE is defined.
13948         * coverage.c (get_gcov_type): Use targetm.gcov_type_size().
13949         * doc/tm.texi (TARGET_GCOV_TYPE_SIZE): Add hook under "Misc".
13950         * doc/tm.texi.in: Regenerate.
13951         * target.def (gcov_type_size): New target hook.
13952         * targhooks.c (default_gcov_type_size): New.
13953         * targhooks.h (default_gcov_type_size): Declare.
13954         * tree-profile.c (gimple_gen_edge_profiler): Use precision of
13955         gcov_type_node.
13956         (gimple_gen_time_profiler): Likewise.
13958 2021-08-16  Eric Botcazou  <ebotcazou@gcc.gnu.org>
13960         * dwarf2out.c (add_scalar_info): Deal with DW_AT_data_bit_offset.
13962 2021-08-16  Tobias Burnus  <tobias@codesourcery.com>
13964         PR middle-end/101931
13965         * omp-low.c (omp_runtime_api_call): Update for routines
13966         added in the meanwhile.
13968 2021-08-16  Martin Liska  <mliska@suse.cz>
13970         PR tree-optimization/100393
13971         * tree-switch-conversion.c (group_cluster::dump): Use
13972           get_comparison_count.
13973         (jump_table_cluster::find_jump_tables): Pre-compute number of
13974         comparisons and then decrement it. Cache also max_ratio.
13975         (jump_table_cluster::can_be_handled): Change signature.
13976         * tree-switch-conversion.h (get_comparison_count): New.
13978 2021-08-16  Eric Botcazou  <ebotcazou@gcc.gnu.org>
13980         * dwarf2out.c (add_data_member_location_attribute): Use GNAT
13981         encodings only when -fgnat-encodings=all is specified.
13982         (add_bound_info): Likewise.
13983         (add_byte_size_attribute): Likewise.
13984         (gen_member_die): Likewise.
13986 2021-08-16  Thomas Schwinge  <thomas@codesourcery.com>
13988         * omp-oacc-neuter-broadcast.cc
13989         (execute_omp_oacc_neuter_broadcast): Plug 'par' memory leak.
13991 2021-08-16  Thomas Schwinge  <thomas@codesourcery.com>
13993         * omp-oacc-neuter-broadcast.cc
13994         (execute_omp_oacc_neuter_broadcast): Clarify memory management for
13995         'prop_set'.
13997 2021-08-16  Thomas Schwinge  <thomas@codesourcery.com>
13999         * omp-oacc-neuter-broadcast.cc (field_map): Move variable into...
14000         (execute_omp_oacc_neuter_broadcast): ... here.
14001         (install_var_field, build_receiver_ref, build_sender_ref): Take
14002         'field_map_t *' parameter.  Adjust all users.
14003         (worker_single_copy, neuter_worker_single): Take a
14004         'record_field_map_t *' parameter.  Adjust all users.
14006 2021-08-16  liuhongt  <hongtao.liu@intel.com>
14008         PR target/101930
14009         * config/i386/i386.md (ldexp<mode>3): Force operands[1] to
14010         reg.
14012 2021-08-16  Martin Liska  <mliska@suse.cz>
14014         PR ipa/101726
14015         * multiple_target.c (create_dispatcher_calls): Make default
14016           function local only if it is a definition.
14018 2021-08-16  Martin Liska  <mliska@suse.cz>
14020         PR ipa/100600
14021         * ipa-icf-gimple.c (func_checker::compare_ssa_name): Do not
14022           consider equal SSA_NAMEs when one is a param.
14024 2021-08-16  liuhongt  <hongtao.liu@intel.com>
14026         PR target/101846
14027         * config/i386/i386-expand.c (ix86_expand_vec_perm_vpermt2):
14028         Support vpermi2b for V32QI/V16QImode.
14029         (ix86_extract_perm_from_pool_constant): New function.
14030         (ix86_expand_vec_one_operand_perm_avx512): Support
14031         vpermw/vpermb under TARGET_AVX512BW/TARGET_AVX512VBMI.
14032         (expand_vec_perm_1): Adjust comments for upper.
14033         * config/i386/i386-protos.h (ix86_extract_perm_from_pool_constant):
14034         New declare.
14035         * config/i386/predicates.md (permvar_truncate_operand): New predicate.
14036         (pshufb_truncv4siv4hi_operand): Ditto.
14037         (pshufb_truncv8hiv8qi_operand): Ditto.
14038         * config/i386/sse.md (*avx512bw_permvar_truncv16siv16hi_1):
14039         New pre_reload define_insn_and_split.
14040         (*avx512f_permvar_truncv8siv8hi_1): Ditto.
14041         (*avx512f_vpermvar_truncv8div8si_1): Ditto.
14042         (*avx512f_permvar_truncv32hiv32qi_1): Ditto.
14043         (*avx512f_permvar_truncv16hiv16qi_1): Ditto.
14044         (*avx512f_permvar_truncv4div4si_1): Ditto.
14045         (*avx512f_pshufb_truncv8hiv8qi_1): Ditto.
14046         (*avx512f_pshufb_truncv4siv4hi_1): Ditto.
14047         (*avx512f_pshufd_truncv2div2si_1): Ditto.
14049 2021-08-16  Kito Cheng  <kito.cheng@sifive.com>
14051         * config/riscv/multilib-generator: Support code model option for
14052         multi-lib.
14053         * doc/install.texi: Add document of new option for
14054         --with-multilib-generator.
14056 2021-08-15  Clément Chigot  <clement.chigot@atos.net>
14058         * config/rs6000/rs6000.c (xcoff_tls_exec_model_detected): New.
14059         (rs6000_legitimize_tls_address_aix): Use it.
14060         (rs6000_xcoff_file_end): Add ".ref __tls_get_addr" when
14061         xcoff_tls_exec_model_detected is true.
14063 2021-08-15  Jeff Law  <jlaw@localhost.localdomain>
14065         * config/h8300/h8300.c (shift_alg_si): Retune H8/300H shifts
14066         to allow a bit more code growth, saving many dozens of cycles.
14067         (h8300_option_override): Adjus shift_alg_si if optimizing for
14068         code size.
14069         (get_shift_alg): Use special + inline shifts for residuals
14070         in more cases.
14072 2021-08-14  Stafford Horne  <shorne@gmail.com>
14074         PR target/99783
14075         * config/or1k/or1k-opts.h: New file.
14076         * config/or1k/or1k.c (or1k_legitimize_address_1, print_reloc):
14077         Support generating gotha relocations if -mcmodel=large is
14078         specified.
14079         * config/or1k/or1k.h (TARGET_CMODEL_SMALL, TARGET_CMODEL_LARGE):
14080         New macros.
14081         * config/or1k/or1k.opt (mcmodel=): New option.
14082         * doc/invoke.texi (OpenRISC Options): Document mcmodel.
14084 2021-08-14  Martin Sebor  <msebor@redhat.com>
14086         PR middle-end/101791
14087         * gimple-ssa-warn-access.cc (new_delete_mismatch_p): Use new argument
14088         to valid_new_delete_pair_p.
14089         * tree.c (valid_new_delete_pair_p): Add argument.
14090         * tree.h (valid_new_delete_pair_p): Same.
14092 2021-08-14  Jakub Jelinek  <jakub@redhat.com>
14094         PR target/101896
14095         * config/i386/i386-expand.c (expand_vec_perm_broadcast_1)
14096         <case E_V64QImode>: For this mode assert
14097         !TARGET_AVX512BW || d->perm[0] rather than !TARGET_AVX2 || d->perm[0].
14099 2021-08-13  Michael Meissner  <meissner@linux.ibm.com>
14101         PR target/99921
14102         * config/rs6000/altivec.md (xxeval): Use register_predicate
14103         instead of altivec_register_predicate.
14105 2021-08-13  Martin Sebor  <msebor@redhat.com>
14107         PR middle-end/101734
14108         * tree-ssa-uninit.c (maybe_warn_read_write_only): New function.
14109         (maybe_warn_operand): Call it.
14111 2021-08-13  Martin Liska  <mliska@suse.cz>
14113         PR ipa/101354
14114         * attribs.c (decl_attributes): Make naked functions "noipa"
14115           functions.
14117 2021-08-13  Martin Liska  <mliska@suse.cz>
14119         PR ipa/101261
14120         * symtab.c (symtab_node::noninterposable_alias): Do not create
14121           local aliases for target_clone functions as the clonning pass
14122           rejects aliases.
14124 2021-08-13  Martin Liska  <mliska@suse.cz>
14126         * opts.c (LIVE_PATCHING_OPTION): Define.
14127         (control_options_for_live_patching): Use it in error messages.
14129 2021-08-13  Jan Hubicka  <hubicka@ucw.cz>
14131         * ipa-modref.c (dump_eaf_flags): Dump EAF_NOREAD.
14132         (implicit_const_eaf_flags, implicit_pure_eaf_flags,
14133          ignore_stores_eaf_flags): New constants.
14134         (remove_useless_eaf_flags): New function.
14135         (eaf_flags_useful_p): Use it.
14136         (deref_flags): Add EAF_NOT_RETURNED if flag is unused;
14137         handle EAF_NOREAD.
14138         (modref_lattice::init): Add EAF_NOREAD.
14139         (modref_lattice::add_escape_point): Do not reacord escape point if
14140         result is unused.
14141         (modref_lattice::merge): EAF_NOESCAPE implies EAF_NODIRECTESCAPE;
14142         use remove_useless_eaf_flags.
14143         (modref_lattice::merge_deref): Use ignore_stores_eaf_flags.
14144         (modref_lattice::merge_direct_load): Add EAF_NOREAD
14145         (analyze_ssa_name_flags): Fix handling EAF_NOT_RETURNED
14146         (analyze_parms): Use remove_useless_eaf_flags.
14147         (ipa_merge_modref_summary_after_inlining): Use ignore_stores_eaf_flags.
14148         (modref_merge_call_site_flags): Add caller and ecf_flags parameter;
14149         use remove_useless_eaf_flags.
14150         (modref_propagate_flags_in_scc): Update.
14151         * ipa-modref.h: Turn eaf_flags_t back to char.
14152         * tree-core.h (EAF_NOT_RETURNED): Fix.
14153         (EAF_NOREAD): New constant
14154         * tree-ssa-alias.c: (ref_maybe_used_by_call_p_1): Check for
14155         EAF_NOREAD.
14156         * tree-ssa-structalias.c (handle_rhs_call): Handle new flags.
14157         (handle_pure_call): Likewise.
14159 2021-08-12  Jakub Jelinek  <jakub@redhat.com>
14161         * tree.def (OMP_MASKED): New tree code.
14162         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_FILTER.
14163         * tree.h (OMP_MASKED_BODY, OMP_MASKED_CLAUSES, OMP_MASKED_COMBINED,
14164         OMP_CLAUSE_FILTER_EXPR): Define.
14165         * tree.c (omp_clause_num_ops): Add OMP_CLAUSE_FILTER entry.
14166         (omp_clause_code_name): Likewise.
14167         (walk_tree_1): Handle OMP_CLAUSE_FILTER.
14168         * tree-nested.c (convert_nonlocal_omp_clauses,
14169         convert_local_omp_clauses): Handle OMP_CLAUSE_FILTER.
14170         (convert_nonlocal_reference_stmt, convert_local_reference_stmt,
14171         convert_gimple_call): Handle GIMPLE_OMP_MASTER.
14172         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_FILTER.
14173         (dump_generic_node): Handle OMP_MASTER.
14174         * gimple.def (GIMPLE_OMP_MASKED): New gimple code.
14175         * gimple.c (gimple_build_omp_masked): New function.
14176         (gimple_copy): Handle GIMPLE_OMP_MASKED.
14177         * gimple.h (gimple_build_omp_masked): Declare.
14178         (gimple_has_substatements): Handle GIMPLE_OMP_MASKED.
14179         (gimple_omp_masked_clauses, gimple_omp_masked_clauses_ptr,
14180         gimple_omp_masked_set_clauses): New inline functions.
14181         (CASE_GIMPLE_OMP): Add GIMPLE_OMP_MASKED.
14182         * gimple-pretty-print.c (dump_gimple_omp_masked): New function.
14183         (pp_gimple_stmt_1): Handle GIMPLE_OMP_MASKED.
14184         * gimple-walk.c (walk_gimple_stmt): Likewise.
14185         * gimple-low.c (lower_stmt): Likewise.
14186         * gimplify.c (is_gimple_stmt): Handle OMP_MASTER.
14187         (gimplify_scan_omp_clauses): Handle OMP_CLAUSE_FILTER.  For clauses
14188         that take one expression rather than decl or constant, force
14189         gimplification of that into a SSA_NAME or temporary unless min
14190         invariant.
14191         (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_FILTER.
14192         (gimplify_expr): Handle OMP_MASKED.
14193         * tree-inline.c (remap_gimple_stmt): Handle GIMPLE_OMP_MASKED.
14194         (estimate_num_insns): Likewise.
14195         * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_FILTER.
14196         (check_omp_nesting_restrictions): Handle GIMPLE_OMP_MASKED.  Adjust
14197         diagnostics for existence of masked construct.
14198         (scan_omp_1_stmt, lower_omp_master, lower_omp_1, diagnose_sb_1,
14199         diagnose_sb_2): Handle GIMPLE_OMP_MASKED.
14200         * omp-expand.c (expand_omp_synch, expand_omp, omp_make_gimple_edges):
14201         Likewise.
14203 2021-08-12  Uroš Bizjak  <ubizjak@gmail.com>
14205         PR target/98309
14206         * config/i386/i386.md (avx512f_scalef<mode>2): New insn pattern.
14207         (ldexp<mode>3): Use avx512f_scalef<mode>2.
14208         (UNSPEC_SCALEF): Move from ...
14209         * config/i386/sse.md (UNSPEC_SCALEF): ... here.
14211 2021-08-12  Jan Hubicka  <hubicka@ucw.cz>
14213         * ipa-split.c (consider_split): Fix condition testing void functions.
14215 2021-08-12  Aldy Hernandez  <aldyh@redhat.com>
14217         * doc/invoke.texi: Remove docs for threader-mode param.
14218         * flag-types.h (enum threader_mode): Remove.
14219         * params.opt: Remove threader-mode param.
14220         * tree-ssa-threadbackward.c (class back_threader): Remove
14221         path_is_unreachable_p.
14222         Make find_paths private.
14223         Add maybe_thread and thread_through_all_blocks.
14224         Remove reference marker for m_registry.
14225         Remove reference marker for m_profit.
14226         (back_threader::back_threader): Adjust for registry and profit not
14227         being references.
14228         (dump_path): Move down.
14229         (debug): Move down.
14230         (class thread_jumps): Remove.
14231         (class back_threader_registry): Remove m_all_paths.
14232         Remove destructor.
14233         (thread_jumps::thread_through_all_blocks): Move to back_threader
14234         class.
14235         (fsm_find_thread_path): Remove
14236         (back_threader::maybe_thread): New.
14237         (back_threader::thread_through_all_blocks): Move from
14238         thread_jumps.
14239         (back_threader_registry::back_threader_registry): Remove
14240         m_all_paths.
14241         (back_threader_registry::~back_threader_registry): Remove.
14242         (thread_jumps::find_taken_edge): Remove.
14243         (thread_jumps::check_subpath_and_update_thread_path): Remove.
14244         (thread_jumps::maybe_register_path): Remove.
14245         (thread_jumps::handle_phi): Remove.
14246         (handle_assignment_p): Remove.
14247         (thread_jumps::handle_assignment): Remove.
14248         (thread_jumps::fsm_find_control_statement_thread_paths): Remove.
14249         (thread_jumps::find_jump_threads_backwards): Remove.
14250         (thread_jumps::find_jump_threads_backwards_with_ranger): Remove.
14251         (try_thread_blocks): Rename find_jump_threads_backwards to
14252         maybe_thread.
14253         (pass_early_thread_jumps::execute): Same.
14255 2021-08-12  Tobias Burnus  <tobias@codesourcery.com>
14257         * tree-core.h (omp_clause_proc_bind_kind): Add
14258         OMP_CLAUSE_PROC_BIND_PRIMARY.
14259         * tree-pretty-print.c (dump_omp_clause): Add TODO comment to
14260         change 'master' to 'primary' in proc_bind for OpenMP 5.1.
14262 2021-08-12  Claudiu Zissulescu  <claziss@synopsys.com>
14264         * common/config/arc/arc-common.c (arc_option_init_struct): Remove
14265         fno-common reference.
14266         * config/arc/arc.c (arc_override_options): Remove overriding of
14267         flag_no_common.
14269 2021-08-12  Jakub Jelinek  <jakub@redhat.com>
14271         PR target/101860
14272         * config/i386/i386-expand.c (ix86_expand_vec_one_operand_perm_avx512):
14273         If d->testing_p, return true after performing checks instead of
14274         actually expanding the insn.
14275         (expand_vec_perm_broadcast_1): Handle V32HImode - assert
14276         !TARGET_AVX512BW and return false.
14278 2021-08-12  Eric Botcazou  <ebotcazou@gcc.gnu.org>
14280         * configure.ac (PE linker --disable-dynamicbase support): New check.
14281         * configure: Regenerate.
14282         * config.in: Likewise.
14283         * config/i386/mingw32.h (LINK_SPEC_DISABLE_DYNAMICBASE): New define.
14284         (LINK_SPEC): Use it.
14285         * config/i386/mingw-w64.h (LINK_SPEC_DISABLE_DYNAMICBASE): Likewise.
14286         (LINK_SPEC): Likewise.
14288 2021-08-12  liuhongt  <hongtao.liu@intel.com>
14290         PR target/101846
14291         * config/i386/sse.md (*avx2_zero_extendv16qiv16hi2_2): New
14292         post_reload define_insn_and_split.
14293         (*avx512bw_zero_extendv32qiv32hi2_2): Ditto.
14294         (*sse4_1_zero_extendv8qiv8hi2_4): Ditto.
14295         (*avx512f_zero_extendv16hiv16si2_2): Ditto.
14296         (*avx2_zero_extendv8hiv8si2_2): Ditto.
14297         (*sse4_1_zero_extendv4hiv4si2_4): Ditto.
14298         (*avx512f_zero_extendv8siv8di2_2): Ditto.
14299         (*avx2_zero_extendv4siv4di2_2): Ditto.
14300         (*sse4_1_zero_extendv2siv2di2_4): Ditto.
14301         (VI248_256, VI248_512, VI148_512, VI148_256, VI148_128): New
14302         mode iterator.
14304 2021-08-11  Bill Schmidt  <wschmidt@linux.ibm.com>
14306         * config/rs6000/rs6000-builtin-new.def: Add always, power5, and
14307         power6 stanzas.
14309 2021-08-11  Bill Schmidt  <wschmidt@linux.ibm.com>
14311         * config/rs6000/rs6000-builtin-new.def: Add vsx stanza.
14313 2021-08-11  Bill Schmidt  <wschmidt@linux.ibm.com>
14315         * config/rs6000/rs6000-builtin-new.def: Finish altivec stanza.
14316         * config/rs6000/rs6000-call.c (rs6000_init_builtins): Move
14317         initialization of pcvoid_type_node here...
14318         (altivec_init_builtins): ...from here.
14319         * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add
14320         RS6000_BTI_const_ptr_void.
14321         (pcvoid_type_node): New macro.
14323 2021-08-11  Richard Biener  <rguenther@suse.de>
14325         PR target/101877
14326         * tree-ssa-forwprop.c (pass_forwprop::execute): Do not decompose
14327         hard-register accesses.
14329 2021-08-11  Richard Biener  <rguenther@suse.de>
14331         * tree-ssa-operands.c (operands_scanner::get_expr_operands):
14332         Do not look at COMPONENT_REF FIELD_DECLs TREE_THIS_VOLATILE
14333         to determine has_volatile_ops.
14335 2021-08-11  Eric Botcazou  <ebotcazou@gcc.gnu.org>
14337         * cfgexpand.c (expand_used_vars): Reuse attribs local variable.
14339 2021-08-11  Jan Hubicka  <hubicka@ucw.cz>
14340             Alexandre Oliva  <oliva@adacore.com>
14342         * ipa-modref.c (modref_lattice::dump): Fix escape_point's min_flags
14343         dumping.
14344         (modref_lattice::merge_deref): Fix handling of indirect scape points.
14345         (update_escape_summary_1): Likewise.
14346         (update_escape_summary): Likewise.
14347         (ipa_merge_modref_summary_after_inlining): Likewise.
14349 2021-08-11  Richard Biener  <rguenther@suse.de>
14351         PR middle-end/101858
14352         * fold-const.c (fold_binary_loc): Guard simplification
14353         of  X < (cast) (1 << Y) to integer types.
14355 2021-08-11  Richard Biener  <rguenther@suse.de>
14357         PR tree-optimization/101861
14358         * tree-vect-stmts.c (vectorizable_load): Fix error in
14359         previous change with regard to gather vectorization.
14361 2021-08-11  prathamesh.kulkarni  <prathamesh.kulkarni@linaro.org>
14363         PR target/66791
14364         * config/arm/arm_neon.h (vdup_n_s8): Replace call to builtin
14365         with constructor.
14366         (vdup_n_s16): Likewise.
14367         (vdup_n_s32): Likewise.
14368         (vdup_n_s64): Likewise.
14369         (vdup_n_u8): Likewise.
14370         (vdup_n_u16): Likewise.
14371         (vdup_n_u32): Likewise.
14372         (vdup_n_u64): Likewise.
14373         (vdup_n_p8): Likewise.
14374         (vdup_n_p16): Likewise.
14375         (vdup_n_p64): Likewise.
14376         (vdup_n_f16): Likewise.
14377         (vdup_n_f32): Likewise.
14378         (vdupq_n_s8): Likewise.
14379         (vdupq_n_s16): Likewise.
14380         (vdupq_n_s32): Likewise.
14381         (vdupq_n_s64): Likewise.
14382         (vdupq_n_u8): Likewise.
14383         (vdupq_n_u16): Likewise.
14384         (vdupq_n_u32): Likewise.
14385         (vdupq_n_u64): Likewise.
14386         (vdupq_n_p8): Likewise.
14387         (vdupq_n_p16): Likewise.
14388         (vdupq_n_p64): Likewise.
14389         (vdupq_n_f16): Likewise.
14390         (vdupq_n_f32): Likewise.
14391         (vmov_n_s8): Replace call to builtin with call to corresponding
14392         vdup_n intrinsic.
14393         (vmov_n_s16): Likewise.
14394         (vmov_n_s32): Likewise.
14395         (vmov_n_s64): Likewise.
14396         (vmov_n_u8): Likewise.
14397         (vmov_n_u16): Likewise.
14398         (vmov_n_u32): Likewise.
14399         (vmov_n_u64): Likewise.
14400         (vmov_n_p8): Likewise.
14401         (vmov_n_p16): Likewise.
14402         (vmov_n_f16): Likewise.
14403         (vmov_n_f32): Likewise.
14404         (vmovq_n_s8): Likewise.
14405         (vmovq_n_s16): Likewise.
14406         (vmovq_n_s32): Likewise.
14407         (vmovq_n_s64): Likewise.
14408         (vmovq_n_u8): Likewise.
14409         (vmovq_n_u16): Likewise.
14410         (vmovq_n_u32): Likewise.
14411         (vmovq_n_u64): Likewise.
14412         (vmovq_n_p8): Likewise.
14413         (vmovq_n_p16): Likewise.
14414         (vmovq_n_f16): Likewise.
14415         (vmovq_n_f32): Likewise.
14416         * config/arm/arm_neon_builtins.def: Remove entries for vdup_n.
14418 2021-08-11  liuhongt  <hongtao.liu@intel.com>
14420         PR target/98309
14421         * config/i386/i386.md (ldexp<mode>3): Extend to vscalefs[sd]
14422         when TARGET_AVX512F and TARGET_SSE_MATH.
14424 2021-08-10  Jakub Jelinek  <jakub@redhat.com>
14426         PR target/80355
14427         * config/i386/i386-expand.c (expand_vec_perm_even_odd): Return false
14428         for V32HImode if !TARGET_AVX512BW.
14429         (ix86_vectorize_vec_perm_const) <case E_V32HImode, case E_V64QImode>:
14430         If !TARGET_AVX512BW and TARGET_AVX512F and d.testing_p, don't fail
14431         early, but actually check the permutation.
14433 2021-08-10  Richard Biener  <rguenther@suse.de>
14435         PR tree-optimization/101809
14436         * tree-vect-stmts.c (get_load_store_type): Allow emulated
14437         gathers with offset vector nunits being a constant multiple
14438         of the data vector nunits.
14439         (vect_get_gather_scatter_ops): Use the appropriate nunits
14440         for the offset vector defs.
14441         (vectorizable_store): Adjust call to
14442         vect_get_gather_scatter_ops.
14443         (vectorizable_load): Likewise.  Handle the case of less
14444         offset vectors than data vectors.
14446 2021-08-10  Jakub Jelinek  <jakub@redhat.com>
14448         PR target/80355
14449         * config/i386/sse.md (*avx512f_shuf_<shuffletype>64x2_1<mask_name>_1,
14450         *avx512f_shuf_<shuffletype>32x4_1<mask_name>_1): New define_insn
14451         patterns.
14453 2021-08-10  Richard Biener  <rguenther@suse.de>
14455         PR tree-optimization/101801
14456         PR tree-optimization/101819
14457         * tree-vectorizer.h (vect_emulated_vector_p): Declare.
14458         * tree-vect-loop.c (vect_emulated_vector_p): New function.
14459         (vectorizable_reduction): Re-instantiate a check for emulated
14460         operations.
14461         * tree-vect-stmts.c (vectorizable_shift): Likewise.
14462         (vectorizable_operation): Likewise.  Cost emulated vector
14463         operations according to the scalar sequence synthesized by
14464         vector lowering.
14466 2021-08-10  Richard Biener  <rguenther@suse.de>
14468         PR middle-end/101824
14469         * tree-nested.c (get_frame_field): Mark the COMPONENT_REF as
14470         volatile in case the variable was.
14472 2021-08-10  H.J. Lu  <hjl.tools@gmail.com>
14474         PR target/101804
14475         * config/i386/constraints.md (BC): Document for integer SSE
14476         constant all bits set operand.
14477         (BF): New constraint for const floating-point all bits set
14478         vectors.
14479         * config/i386/i386.c (standard_sse_constant_p): Likewise.
14480         (standard_sse_constant_opcode): Likewise.
14481         * config/i386/sse.md (sseconstm1): New mode attribute.
14482         (mov<mode>_internal): Replace BC with <sseconstm1>.
14484 2021-08-10  liuhongt  <hongtao.liu@intel.com>
14486         * config/i386/sse.md (cond_<insn><mode>): New expander.
14487         (VI248_AVX512VLBW): New mode iterator.
14488         * config/i386/predicates.md
14489         (nonimmediate_or_const_vec_dup_operand): New predicate.
14491 2021-08-09  Andrew MacLeod  <amacleod@redhat.com>
14493         PR tree-optimization/101741
14494         * gimple-range-fold.cc (fold_using_range::range_of_builtin_call): Check
14495         type of parameter for toupper/tolower.
14497 2021-08-09  Martin Jambor  <mjambor@suse.cz>
14499         PR testsuite/101654
14500         * ipa-prop.c (propagate_controlled_uses): Removed a spurious space.
14502 2021-08-09  Pat Haugen  <pthaugen@linux.ibm.com>
14504         * config/rs6000/rs6000.c (is_load_insn1): Verify destination is a
14505         register.
14506         (is_store_insn1): Verify source is a register.
14508 2021-08-09  Uroš Bizjak  <ubizjak@gmail.com>
14510         PR target/101812
14511         * config/i386/mmx.md (<any_logic:code>v2sf3):
14512         Rename from *mmx_<any_logic:code>v2sf3
14514 2021-08-09  Thomas Schwinge  <thomas@codesourcery.com>
14516         * config/nvptx/nvptx.c: Cross-reference parts adapted in
14517         'gcc/omp-oacc-neuter-broadcast.cc'.
14518         * omp-low.c: Likewise.
14519         * omp-oacc-neuter-broadcast.cc: Cross-reference parts adapted from
14520         the above files.
14522 2021-08-09  Julian Brown  <julian@codesourcery.com>
14523             Kwok Cheung Yeung  <kcy@codesourcery.com>
14524             Thomas Schwinge  <thomas@codesourcery.com>
14526         * config/gcn/gcn.c (gcn_init_builtins): Override decls for
14527         BUILT_IN_GOACC_SINGLE_START, BUILT_IN_GOACC_SINGLE_COPY_START,
14528         BUILT_IN_GOACC_SINGLE_COPY_END and BUILT_IN_GOACC_BARRIER.
14529         (gcn_goacc_validate_dims): Turn on worker partitioning unconditionally.
14530         (gcn_fork_join): Update comment.
14531         * config/gcn/gcn.opt (flag_worker_partitioning): Remove.
14532         (macc_experimental_workers): Remove unused option.
14534 2021-08-09  Julian Brown  <julian@codesourcery.com>
14535             Nathan Sidwell  <nathan@codesourcery.com> (via 'gcc/config/nvptx/nvptx.c' master)
14536             Kwok Cheung Yeung  <kcy@codesourcery.com>
14537             Thomas Schwinge  <thomas@codesourcery.com>
14539         * Makefile.in (OBJS): Add omp-oacc-neuter-broadcast.o.
14540         * doc/tm.texi.in (TARGET_GOACC_CREATE_WORKER_BROADCAST_RECORD):
14541         Add documentation hook.
14542         * doc/tm.texi: Regenerate.
14543         * omp-oacc-neuter-broadcast.cc: New file.
14544         * omp-builtins.def (BUILT_IN_GOACC_BARRIER)
14545         (BUILT_IN_GOACC_SINGLE_START, BUILT_IN_GOACC_SINGLE_COPY_START)
14546         (BUILT_IN_GOACC_SINGLE_COPY_END): New builtins.
14547         * passes.def (pass_omp_oacc_neuter_broadcast): Add pass.
14548         * target.def (goacc.create_worker_broadcast_record): Add target
14549         hook.
14550         * tree-pass.h (make_pass_omp_oacc_neuter_broadcast): Add
14551         prototype.
14552         * config/gcn/gcn-protos.h (gcn_goacc_adjust_propagation_record):
14553         Rename prototype to...
14554         (gcn_goacc_create_worker_broadcast_record): ... this.
14555         * config/gcn/gcn-tree.c (gcn_goacc_adjust_propagation_record): Rename
14556         function to...
14557         (gcn_goacc_create_worker_broadcast_record): ... this.
14558         * config/gcn/gcn.c (TARGET_GOACC_ADJUST_PROPAGATION_RECORD):
14559         Rename to...
14560         (TARGET_GOACC_CREATE_WORKER_BROADCAST_RECORD): ... this.
14562 2021-08-09  Tejas Belagod  <tejas.belagod@arm.com>
14564         PR target/101609
14565         * config/aarch64/aarch64-simd.md (vlshr<mode>3, vashr<mode>3): Use
14566         the right iterator.
14568 2021-08-09  Thomas Schwinge  <thomas@codesourcery.com>
14570         * Makefile.in (GTFILES): Remove '$(srcdir)/omp-offload.c'.
14572 2021-08-09  Thomas Schwinge  <thomas@codesourcery.com>
14574         * builtins.def (DEF_GOACC_BUILTIN, DEF_GOMP_BUILTIN): Don't
14575         consider '-foffload-abi'.
14576         * common.opt (-foffload-abi): Remove 'Var', 'Init'.
14577         * opts.c (common_handle_option) <-foffload-abi> [ACCEL_COMPILER]:
14578         Ignore.
14580 2021-08-09  Thomas Schwinge  <thomas@codesourcery.com>
14582         * optc-gen.awk: Sanity check that 'Init' doesn't appear without
14583         'Var'.
14585 2021-08-09  Thomas Schwinge  <thomas@codesourcery.com>
14587         * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE): Remove.
14589 2021-08-09  Thomas Schwinge  <thomas@codesourcery.com>
14591         * doc/gty.texi (Files): Update.
14593 2021-08-09  Thomas Schwinge  <thomas@codesourcery.com>
14595         * doc/gty.texi (Files): Fix GTY header file example.
14597 2021-08-09  Roger Sayle  <roger@nextmovesoftware.com>
14599         * tree-ssa-ccp.c (value_mask_to_min_max): Helper function to
14600         determine the upper and lower bounds from a mask-value pair.
14601         (bit_value_unop) [ABS_EXPR, ABSU_EXPR]: Add support for
14602         absolute value and unsigned absolute value expressions.
14603         (bit_value_binop):  Initialize *VAL's precision.
14604         [LT_EXPR, LE_EXPR]: Use value_mask_to_min_max to determine
14605         upper and lower bounds of operands.  Add LE_EXPR/GE_EXPR
14606         support when the operands are unknown but potentially equal.
14607         [MIN_EXPR, MAX_EXPR]: Support minimum/maximum expressions.
14609 2021-08-09  Bin Cheng  <bin.cheng@linux.alibaba.com>
14611         * config/aarch64/aarch64.md
14612         (*extend<SHORT:mode><GPI:mode>2_aarch64): Use %<GPI:w>0.
14614 2021-08-08  Sergei Trofimovich  <siarheit@google.com>
14616         * lra-constraints.c: Fix s/otput/output/ typo.
14618 2021-08-06  Martin Sebor  <msebor@redhat.com>
14620         * builtins.c (expand_builtin_memchr): Move to gimple-ssa-warn-access.cc.
14621         (expand_builtin_strcat): Same.
14622         (expand_builtin_stpncpy): Same.
14623         (expand_builtin_strncat): Same.
14624         (check_read_access): Same.
14625         (check_memop_access): Same.
14626         (expand_builtin_strlen): Move checks to gimple-ssa-warn-access.cc.
14627         (expand_builtin_strnlen): Same.
14628         (expand_builtin_memcpy): Same.
14629         (expand_builtin_memmove): Same.
14630         (expand_builtin_mempcpy): Same.
14631         (expand_builtin_strcpy): Same.
14632         (expand_builtin_strcpy_args): Same.
14633         (expand_builtin_stpcpy_1): Same.
14634         (expand_builtin_strncpy): Same.
14635         (expand_builtin_memset): Same.
14636         (expand_builtin_bzero): Same.
14637         (expand_builtin_strcmp): Same.
14638         (expand_builtin_strncmp): Same.
14639         (expand_builtin): Remove handlers.
14640         (fold_builtin_strlen): Add a comment.
14641         * builtins.h (check_access): Move to gimple-ssa-warn-access.cc.
14642         * calls.c (maybe_warn_nonstring_arg): Same.
14643         * diagnostic-spec.c (nowarn_spec_t::nowarn_spec_t): Add warning option.
14644         * gimple-fold.c (gimple_fold_builtin_strcpy): Pass argument to callee.
14645         (gimple_fold_builtin_stpcpy): Same.
14646         * gimple-ssa-warn-access.cc (has_location): New function.
14647         (get_location): Same.
14648         (get_callee_fndecl): Same.
14649         (call_nargs): Same.
14650         (call_arg): Same.
14651         (warn_string_no_nul): Define.
14652         (unterminated_array): Same.
14653         (check_nul_terminated_array): Same.
14654         (maybe_warn_nonstring_arg): Same.
14655         (maybe_warn_for_bound): Same.
14656         (warn_for_access): Same.
14657         (check_access): Same.
14658         (check_memop_access): Same.
14659         (check_read_access): Same.
14660         (warn_dealloc_offset): Use helper functions.
14661         (maybe_emit_free_warning): Same.
14662         (class pass_waccess): Add members.
14663         (check_strcat): New function.
14664         (check_strncat): New function.
14665         (check_stxcpy): New function.
14666         (check_stxncpy): New function.
14667         (check_strncmp): New function.
14668         (pass_waccess::check_builtin): New function.
14669         (pass_waccess::check): Call it.
14670         * gimple-ssa-warn-access.h (warn_string_no_nul): Move here from
14671         builtins.h.
14672         (maybe_warn_for_bound): Same.
14673         (check_access): Same.
14674         (check_memop_access): Same.
14675         (check_read_access): Same.
14676         * pointer-query.h (struct access_data): Define a ctor overload.
14678 2021-08-06  Richard Biener  <rguenther@suse.de>
14680         PR tree-optimization/101801
14681         * tree-vectorizer.h (vect_worthwhile_without_simd_p): Rename...
14682         (vect_can_vectorize_without_simd_p): ... to this.
14683         * tree-vect-loop.c (vect_worthwhile_without_simd_p): Rename...
14684         (vect_can_vectorize_without_simd_p): ... to this and fold
14685         in vect_min_worthwhile_factor.
14686         (vect_min_worthwhile_factor): Remove.
14687         (vectorizable_reduction): Adjust and remove the cost part.
14688         * tree-vect-stmts.c (vectorizable_shift): Likewise.
14689         (vectorizable_operation): Likewise.
14691 2021-08-06  Uroš Bizjak  <ubizjak@gmail.com>
14693         PR target/101797
14694         * config/i386/i386.md (cmove reg-to-reg move elimination peephole2s):
14695         Add general_gr_operand predicate to operand 3.
14697 2021-08-06  Roger Sayle  <roger@nextmovesoftware.com>
14699         * tree-ssa-phiopt.c (cond_removal_in_builtin_zero_pattern): Use
14700         CFN_BUILT_IN_CLRSB* instead of BUILT_IN_CLRSB* for consistency.
14702 2021-08-06  Tamar Christina  <tamar.christina@arm.com>
14704         * config/aarch64/aarch64-sve-builtins.cc (register_svpattern,
14705         register_svprfop): Pass vec<> by pointer.
14706         * langhooks-def.h (lhd_simulate_enum_decl): Likewise.
14707         * langhooks.c (lhd_simulate_enum_decl): Likewise.
14708         * langhooks.h (struct lang_hooks_for_types): Likewise.
14710 2021-08-06  Jonathan Wright  <jonathan.wright@arm.com>
14712         * config/aarch64/arm_neon.h (vst1_bf16_x2): Use
14713         __builtin_memcpy instead of constructing an additional
14714         __builtin_aarch64_simd_oi one vector at a time.
14715         (vst1q_bf16_x2): Likewise.
14716         (vst1_bf16_x3): Use __builtin_memcpy instead of constructing
14717         an additional __builtin_aarch64_simd_ci one vector at a time.
14718         (vst1q_bf16_x3): Likewise.
14719         (vst1_bf16_x4): Use __builtin_memcpy instead of a union.
14720         (vst1q_bf16_x4): Likewise.
14721         (vst2_bf16): Use __builtin_memcpy instead of constructing an
14722         additional __builtin_aarch64_simd_oi one vector at a time.
14723         (vst2q_bf16): Likewise.
14724         (vst3_bf16): Use __builtin_memcpy instead of constructing an
14725         additional __builtin_aarch64_simd_ci mode one vector at a
14726         time.
14727         (vst3q_bf16): Likewise.
14728         (vst4_bf16): Use __builtin_memcpy instead of constructing an
14729         additional __builtin_aarch64_simd_xi one vector at a time.
14730         (vst4q_bf16): Likewise.
14732 2021-08-06  Jonathan Wright  <jonathan.wright@arm.com>
14734         * config/aarch64/arm_neon.h (__ST2_LANE_FUNC): Delete.
14735         (__ST2Q_LANE_FUNC): Delete.
14736         (vst2_lane_f16): Use __builtin_memcpy to copy vector
14737         structure instead of constructing __builtin_aarch64_simd_oi
14738         one vector at a time.
14739         (vst2_lane_f32): Likewise.
14740         (vst2_lane_f64): Likewise.
14741         (vst2_lane_p8): Likewise.
14742         (vst2_lane_p16): Likewise.
14743         (vst2_lane_p64): Likewise.
14744         (vst2_lane_s8): Likewise.
14745         (vst2_lane_s16): Likewise.
14746         (vst2_lane_s32): Likewise.
14747         (vst2_lane_s64): Likewise.
14748         (vst2_lane_u8): Likewise.
14749         (vst2_lane_u16): Likewise.
14750         (vst2_lane_u32): Likewise.
14751         (vst2_lane_u64): Likewise.
14752         (vst2_lane_bf16): Likewise.
14753         (vst2q_lane_f16): Use __builtin_memcpy to copy vector
14754         structure instead of using a union.
14755         (vst2q_lane_f32): Likewise.
14756         (vst2q_lane_f64): Likewise.
14757         (vst2q_lane_p8): Likewise.
14758         (vst2q_lane_p16): Likewise.
14759         (vst2q_lane_p64): Likewise.
14760         (vst2q_lane_s8): Likewise.
14761         (vst2q_lane_s16): Likewise.
14762         (vst2q_lane_s32): Likewise.
14763         (vst2q_lane_s64): Likewise.
14764         (vst2q_lane_u8): Likewise.
14765         (vst2q_lane_u16): Likewise.
14766         (vst2q_lane_u32): Likewise.
14767         (vst2q_lane_u64): Likewise.
14768         (vst2q_lane_bf16): Likewise.
14770 2021-08-06  Jonathan Wright  <jonathan.wright@arm.com>
14772         * config/aarch64/arm_neon.h (__ST3_LANE_FUNC): Delete.
14773         (__ST3Q_LANE_FUNC): Delete.
14774         (vst3_lane_f16): Use __builtin_memcpy to copy vector
14775         structure instead of constructing __builtin_aarch64_simd_ci
14776         one vector at a time.
14777         (vst3_lane_f32): Likewise.
14778         (vst3_lane_f64): Likewise.
14779         (vst3_lane_p8): Likewise.
14780         (vst3_lane_p16): Likewise.
14781         (vst3_lane_p64): Likewise.
14782         (vst3_lane_s8): Likewise.
14783         (vst3_lane_s16): Likewise.
14784         (vst3_lane_s32): Likewise.
14785         (vst3_lane_s64): Likewise.
14786         (vst3_lane_u8): Likewise.
14787         (vst3_lane_u16): Likewise.
14788         (vst3_lane_u32): Likewise.
14789         (vst3_lane_u64): Likewise.
14790         (vst3_lane_bf16): Likewise.
14791         (vst3q_lane_f16): Use __builtin_memcpy to copy vector
14792         structure instead of using a union.
14793         (vst3q_lane_f32): Likewise.
14794         (vst3q_lane_f64): Likewise.
14795         (vst3q_lane_p8): Likewise.
14796         (vst3q_lane_p16): Likewise.
14797         (vst3q_lane_p64): Likewise.
14798         (vst3q_lane_s8): Likewise.
14799         (vst3q_lane_s16): Likewise.
14800         (vst3q_lane_s32): Likewise.
14801         (vst3q_lane_s64): Likewise.
14802         (vst3q_lane_u8): Likewise.
14803         (vst3q_lane_u16): Likewise.
14804         (vst3q_lane_u32): Likewise.
14805         (vst3q_lane_u64): Likewise.
14806         (vst3q_lane_bf16): Likewise.
14808 2021-08-06  Jonathan Wright  <jonathan.wright@arm.com>
14810         * config/aarch64/arm_neon.h (__ST4_LANE_FUNC): Delete.
14811         (__ST4Q_LANE_FUNC): Delete.
14812         (vst4_lane_f16): Use __builtin_memcpy to copy vector
14813         structure instead of constructing __builtin_aarch64_simd_xi
14814         one vector at a time.
14815         (vst4_lane_f32): Likewise.
14816         (vst4_lane_f64): Likewise.
14817         (vst4_lane_p8): Likewise.
14818         (vst4_lane_p16): Likewise.
14819         (vst4_lane_p64): Likewise.
14820         (vst4_lane_s8): Likewise.
14821         (vst4_lane_s16): Likewise.
14822         (vst4_lane_s32): Likewise.
14823         (vst4_lane_s64): Likewise.
14824         (vst4_lane_u8): Likewise.
14825         (vst4_lane_u16): Likewise.
14826         (vst4_lane_u32): Likewise.
14827         (vst4_lane_u64): Likewise.
14828         (vst4_lane_bf16): Likewise.
14829         (vst4q_lane_f16): Use __builtin_memcpy to copy vector
14830         structure instead of using a union.
14831         (vst4q_lane_f32): Likewise.
14832         (vst4q_lane_f64): Likewise.
14833         (vst4q_lane_p8): Likewise.
14834         (vst4q_lane_p16): Likewise.
14835         (vst4q_lane_p64): Likewise.
14836         (vst4q_lane_s8): Likewise.
14837         (vst4q_lane_s16): Likewise.
14838         (vst4q_lane_s32): Likewise.
14839         (vst4q_lane_s64): Likewise.
14840         (vst4q_lane_u8): Likewise.
14841         (vst4q_lane_u16): Likewise.
14842         (vst4q_lane_u32): Likewise.
14843         (vst4q_lane_u64): Likewise.
14844         (vst4q_lane_bf16): Likewise.
14846 2021-08-06  Martin Liska  <mliska@suse.cz>
14848         * config/rs6000/rs6000.c (rs6000_option_override_internal): When
14849         a target option is restored, it can have
14850         rs6000_long_double_type_size set to FLOAT_PRECISION_TFmode
14851         and error should not be emitted.
14853 2021-08-06  Sebastian Huber  <sebastian.huber@embedded-brains.de>
14855         * gcov-io.h (gcov_write): Declare.
14856         * gcov-io.c (gcov_write): New.
14857         (gcov_write_counter): Remove.
14858         (gcov_write_tag_length): Likewise.
14859         (gcov_write_summary): Replace gcov_write_tag_length() with calls to
14860         gcov_write_unsigned().
14861         * doc/invoke.texi (fprofile-info-section): Mention
14862         __gcov_info_to_gdca().
14864 2021-08-06  Martin Sebor  <msebor@redhat.com>
14866         * dominance.c (prune_bbs_to_update_dominators): Adjust by-value vec
14867         arguments to by-reference.
14868         (iterate_fix_dominators): Same.
14869         * dominance.h (iterate_fix_dominators): Same.
14870         * ipa-prop.h: Call auto_vec::to_vec_legacy.
14871         * tree-data-ref.c (dump_data_dependence_relation): Adjust by-value vec
14872         arguments to by-reference.
14873         (debug_data_dependence_relation): Same.
14874         (dump_data_dependence_relations): Same.
14875         * tree-data-ref.h (debug_data_dependence_relation): Same.
14876         (dump_data_dependence_relations): Same.
14877         * tree-predcom.c (dump_chains): Same.
14878         (initialize_root_vars_lm): Same.
14879         (determine_unroll_factor): Same.
14880         (replace_phis_by_defined_names): Same.
14881         (insert_init_seqs): Same.
14882         (pcom_worker::tree_predictive_commoning_loop): Call
14883          auto_vec::to_vec_legacy.
14884         * tree-ssa-pre.c (insert_into_preds_of_block): Adjust by-value vec
14885         arguments to by-reference.
14886         * tree-ssa-threadbackward.c (populate_worklist): Same.
14887         (back_threader::resolve_def): Same.
14888         * tree-vect-data-refs.c (vect_check_nonzero_value): Same.
14889         (vect_enhance_data_refs_alignment): Same.
14890         (vect_check_lower_bound): Same.
14891         (vect_prune_runtime_alias_test_list): Same.
14892         (vect_permute_store_chain): Same.
14893         * tree-vect-slp-patterns.c (vect_normalize_conj_loc): Same.
14894         * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Same.
14895         * tree-vectorizer.h (vect_permute_store_chain): Same.
14896         * vec.c (test_init): New function.
14897         (vec_c_tests): Call new function.
14898         * vec.h (vec): Declare ctors, dtor, and assignment.
14899         (auto_vec::vec_to_legacy): New function.
14900         (vec::copy): Adjust initialization.
14902 2021-08-05  H.J. Lu  <hjl.tools@gmail.com>
14904         PR target/99744
14905         * config/i386/i386.c (ix86_can_inline_p): Ignore MASK_80387 if
14906         callee only uses GPRs.
14907         * config/i386/ia32intrin.h: Revert commit 5463cee2770.
14908         * config/i386/serializeintrin.h: Revert commit 71958f740f1.
14909         * config/i386/x86gprintrin.h: Add
14910         #pragma GCC target("general-regs-only") and #pragma GCC pop_options
14911         to disable non-GPR ISAs.
14913 2021-08-05  Richard Sandiford  <richard.sandiford@arm.com>
14915         PR middle-end/101787
14916         * doc/md.texi (cond_ashl, cond_ashr, cond_lshr): Document.
14918 2021-08-05  Richard Sandiford  <richard.sandiford@arm.com>
14920         * tree-vectorizer.h (vect_is_store_elt_extraction, vect_is_reduction)
14921         (vect_reduc_type, vect_embedded_comparison_type, vect_comparison_type)
14922         (vect_is_extending_load, vect_is_integer_truncation): New functions,
14923         moved from aarch64.c but given different names.
14924         * config/aarch64/aarch64.c (aarch64_is_store_elt_extraction)
14925         (aarch64_is_reduction, aarch64_reduc_type)
14926         (aarch64_embedded_comparison_type, aarch64_comparison_type)
14927         (aarch64_extending_load_p, aarch64_integer_truncation_p): Delete
14928         in favor of the above.  Update callers accordingly.
14930 2021-08-05  Richard Earnshaw  <rearnsha@arm.com>
14932         PR target/101723
14933         * config/arm/arm-cpus.in (generic-armv7-a): Add quirk to suppress
14934         writing .cpu directive in asm output.
14935         * config/arm/arm.c (arm_identify_fpu_from_isa): New variable.
14936         (arm_last_printed_arch_string): Delete.
14937         (arm_last-printed_fpu_string): Delete.
14938         (arm_configure_build_target): If use of floating-point/SIMD is
14939         disabled, remove all fp/simd related features from the target ISA.
14940         (last_arm_targ_options): New variable.
14941         (arm_print_asm_arch_directives): Add new parameters.  Change order
14942         of emitted directives and handle all cases here.
14943         (arm_file_start): Always call arm_print_asm_arch_directives, move
14944         all generation of .arch/.arch_extension here.
14945         (arm_file_end): Call arm_print_asm_arch.
14946         (arm_declare_function_name): Call arm_print_asm_arch_directives
14947         instead of printing .arch/.fpu directives directly.
14949 2021-08-05  Richard Earnshaw  <rearnsha@arm.com>
14951         * config/arm/arm.c (arm_configure_build_target): Don't call
14952         arm_option_reconfigure_globals.
14953         (arm_option_restore): Call arm_option_reconfigure_globals after
14954         reconfiguring the target.
14955         * config/arm/arm-c.c (arm_pragma_target_parse): Likewise.
14957 2021-08-05  Richard Earnshaw  <rearnsha@arm.com>
14959         * config/arm/arm.c (arm_configure_build_target): Ensure the target's
14960         arch_name is always set.
14962 2021-08-05  Jonathan Wright  <jonathan.wright@arm.com>
14964         * config/aarch64/aarch64.c: Traverse RTL tree to prevent cost
14965         of vec_select high-half from being added into Neon subtract
14966         cost.
14968 2021-08-05  Jonathan Wright  <jonathan.wright@arm.com>
14970         * config/aarch64/aarch64.c: Traverse RTL tree to prevent cost
14971         of vec_select high-half from being added into Neon add cost.
14973 2021-08-05  Kewen Lin  <linkw@linux.ibm.com>
14975         * cfgloop.h (loops_list::loops_list): Add one optional argument
14976         root and adjust accordingly, update loop tree walking and factor
14977         out to ...
14978         * cfgloop.c (loops_list::walk_loop_tree): ... this.  New function.
14980 2021-08-05  Eric Botcazou  <ebotcazou@gcc.gnu.org>
14982         PR tree-optimization/101626
14983         * tree-sra.c (propagate_subaccesses_from_rhs): Do not set the
14984         reverse scalar storage order on a pointer or vector component.
14986 2021-08-05  liuhongt  <hongtao.liu@intel.com>
14988         * config/i386/sse.md (cond_<code><mode>): New expander.
14990 2021-08-05  liuhongt  <hongtao.liu@intel.com>
14992         * config/i386/sse.md (cond_<code><mode>): New expander.
14994 2021-08-05  liuhongt  <hongtao.liu@intel.com>
14996         * config/i386/sse.md (cond_<code><mode>): New expander.
14998 2021-08-04  David Malcolm  <dmalcolm@redhat.com>
15000         PR analyzer/101570
15001         * Makefile.in (ANALYZER_OBJS): Add analyzer/region-model-asm.o.
15003 2021-08-04  H.J. Lu  <hjl.tools@gmail.com>
15005         PR target/101742
15006         * config/i386/i386.h (STORE_MAX_PIECES): Allow 16/32/64 bytes
15007         only if TARGET_INTER_UNIT_MOVES_TO_VEC is true.
15009 2021-08-04  H.J. Lu  <hjl.tools@gmail.com>
15011         PR target/101772
15012         * config/i386/i386-expand.c (ix86_expand_vector_move): Call
15013         ix86_gen_scratch_sse_rtx to get a scratch SSE register to copy
15014         data with SSE register from one memory location to another.
15016 2021-08-04  Andreas Krebbel  <krebbel@linux.ibm.com>
15018         * config/s390/s390.c (expand_perm_with_vpdi): New function.
15019         (vectorize_vec_perm_const_1): Call expand_perm_with_vpdi.
15020         * config/s390/vector.md (*vpdi1<mode>, @vpdi1<mode>): Enable a
15021         parameterized expander.
15022         (*vpdi4<mode>, @vpdi4<mode>): Likewise.
15024 2021-08-04  Andreas Krebbel  <krebbel@linux.ibm.com>
15026         * config/s390/s390.c (MAX_VECT_LEN): Define macro.
15027         (struct expand_vec_perm_d): Define struct.
15028         (expand_perm_with_merge): New function.
15029         (vectorize_vec_perm_const_1): New function.
15030         (s390_vectorize_vec_perm_const): New function.
15031         (TARGET_VECTORIZE_VEC_PERM_CONST): Define target macro.
15033 2021-08-04  Andreas Krebbel  <krebbel@linux.ibm.com>
15035         * config/s390/vector.md (V_HW_64): Remove mode iterator.
15036         (*vec_load_pair<mode>): Use V_HW_2 instead of V_HW_64.
15037         * config/s390/vx-builtins.md
15038         (vec_scatter_element<V_HW_2:mode>_SI): Use V_HW_2 instead of
15039         V_HW_64.
15041 2021-08-04  Andreas Krebbel  <krebbel@linux.ibm.com>
15043         * config/s390/s390.md (UNSPEC_VEC_PERMI): Remove constant
15044         definition.
15045         * config/s390/vector.md (*vpdi1<mode>, *vpdi4<mode>): New pattern
15046         definitions.
15047         * config/s390/vx-builtins.md (*vec_permi<mode>): Emit generic rtx
15048         instead of an unspec.
15050 2021-08-04  Andreas Krebbel  <krebbel@linux.ibm.com>
15052         * config/s390/s390-modes.def: Add more vector modes to support
15053         concatenation of two vectors.
15054         * config/s390/s390-protos.h (s390_expand_merge_perm_const): Add
15055         prototype.
15056         (s390_expand_merge): Likewise.
15057         * config/s390/s390.c (s390_expand_merge_perm_const): New function.
15058         (s390_expand_merge): New function.
15059         * config/s390/s390.md (UNSPEC_VEC_MERGEH, UNSPEC_VEC_MERGEL):
15060         Remove constant definitions.
15061         * config/s390/vector.md (V_HW_2): Add mode iterators.
15062         (VI_HW_4, V_HW_4): Rename VI_HW_4 to V_HW_4.
15063         (vec_2x_nelts, vec_2x_wide): New mode attributes.
15064         (*vmrhb, *vmrlb, *vmrhh, *vmrlh, *vmrhf, *vmrlf, *vmrhg, *vmrlg):
15065         New pattern definitions.
15066         (vec_widen_umult_lo_<mode>, vec_widen_umult_hi_<mode>)
15067         (vec_widen_smult_lo_<mode>, vec_widen_smult_hi_<mode>)
15068         (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf, vec_unpacks_lo_v2df)
15069         (vec_unpacks_hi_v2df): Adjust expanders to emit non-unspec RTX for
15070         vec merge.
15071         * config/s390/vx-builtins.md (V_HW_4): Remove mode iterator. Now
15072         in vector.md.
15073         (vec_mergeh<mode>, vec_mergel<mode>): Use s390_expand_merge to
15074         emit vec merge pattern.
15076 2021-08-04  Jonathan Wright  <jonathan.wright@arm.com>
15078         * config/aarch64/aarch64.c (aarch64_strip_extend_vec_half):
15079         Define.
15080         (aarch64_rtx_mult_cost): Traverse RTL tree to prevent cost of
15081         vec_select high-half from being added into Neon multiply
15082         cost.
15083         * rtlanal.c (vec_series_highpart_p): Define.
15084         * rtlanal.h (vec_series_highpart_p): Declare.
15086 2021-08-04  Jonathan Wright  <jonathan.wright@arm.com>
15088         * config/aarch64/aarch64.c (aarch64_strip_duplicate_vec_elt):
15089         Define.
15090         (aarch64_rtx_mult_cost): Traverse RTL tree to prevent
15091         vec_select cost from being added into Neon multiply cost.
15093 2021-08-04  Richard Sandiford  <richard.sandiford@arm.com>
15095         * tree-vect-loop.c (vect_better_loop_vinfo_p): Detect cases in
15096         which old_loop_vinfo is an epilogue loop that handles a constant
15097         number of iterations.
15099 2021-08-04  Richard Sandiford  <richard.sandiford@arm.com>
15101         * tree-vect-loop.c (vect_analyze_loop): Print a dump message
15102         when a reanalyzed loop fails to be cheaper than the current
15103         main loop.
15105 2021-08-04  Richard Sandiford  <richard.sandiford@arm.com>
15107         * config/aarch64/aarch64.c: Fix a typo.
15109 2021-08-04  Vincent Lefèvre  <vincent-gcc@vinc17.net>
15111         PR gcov-profile/101773
15112         * gcov-io.c (gcov_close): Check return code of a fclose.
15114 2021-08-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
15116         PR ada/101575
15117         * dwarf2out.c (dwarf2out_assembly_start): Emit a dummy
15118         .file statement when needed.
15120 2021-08-04  Richard Biener  <rguenther@suse.de>
15122         * tree-vect-data-refs.c (vect_check_gather_scatter):
15123         Include widening conversions only when the result is
15124         still handed by native gather or the current offset
15125         size not already matches the data size.
15126         Also succeed analysis in case there's no native support,
15127         noted by a IFN_LAST ifn and a NULL decl.
15128         (vect_analyze_data_refs): Always consider gathers.
15129         * tree-vect-patterns.c (vect_recog_gather_scatter_pattern):
15130         Test for no IFN gather rather than decl gather.
15131         * tree-vect-stmts.c (vect_model_load_cost): Pass in the
15132         gather-scatter info and cost emulated gathers accordingly.
15133         (vect_truncate_gather_scatter_offset): Properly test for
15134         no IFN gather.
15135         (vect_use_strided_gather_scatters_p): Likewise.
15136         (get_load_store_type): Handle emulated gathers and its
15137         restrictions.
15138         (vectorizable_load): Likewise.  Emulate them by extracting
15139         scalar offsets, doing scalar loads and a vector construct.
15141 2021-08-04  H.J. Lu  <hjl.tools@gmail.com>
15143         PR target/101742
15144         * expr.c (op_by_pieces_d::op_by_pieces_d): Add a max_pieces
15145         argument to set m_max_size.
15146         (move_by_pieces_d): Pass MOVE_MAX_PIECES to op_by_pieces_d.
15147         (store_by_pieces_d): Pass STORE_MAX_PIECES to op_by_pieces_d.
15148         (compare_by_pieces_d): Pass COMPARE_MAX_PIECES to op_by_pieces_d.
15150 2021-08-04  Roger Sayle  <roger@nextmovesoftware.com>
15151             Marc Glisse  <marc.glisse@inria.fr>
15153         * match.pd (bit_ior, bit_xor): Canonicalize (X*C1)|(X*C2) and
15154         (X*C1)^(X*C2) as X*(C1+C2), and related variants, using
15155         tree_nonzero_bits to ensure that operands are bit-wise disjoint.
15157 2021-08-04  Richard Biener  <rguenther@suse.de>
15159         * tree-ssa-forwprop.c (pass_forwprop::execute): Split
15160         out code to decompose vector loads ...
15161         (optimize_vector_load): ... here.  Generalize it to
15162         handle intermediate widening and TARGET_MEM_REF loads
15163         and apply it to loads with a supported vector mode as well.
15165 2021-08-04  Richard Biener  <rguenther@suse.de>
15167         PR tree-optimization/101756
15168         * tree-vect-slp.c (vectorizable_bb_reduc_epilogue): Make sure
15169         the result of the reduction epilogue is compatible to the original
15170         scalar result.
15172 2021-08-04  liuhongt  <hongtao.liu@intel.com>
15174         PR target/101743
15175         * config/i386/i386.md (peephole2): Refine predicate from
15176         register_operand to general_reg_operand.
15178 2021-08-04  Aldy Hernandez  <aldyh@redhat.com>
15180         * gimple-range-path.h (path_range_query::dump): Mark override.
15182 2021-08-04  Richard Biener  <rguenther@suse.de>
15184         PR tree-optimization/101769
15185         * tree-tailcall.c (eliminate_tail_call): Add the created loop
15186         for the first recursion and return it via the new output parameter.
15187         (optimize_tail_call): Pass through new output param.
15188         (tree_optimize_tail_calls_1): After creating all latches,
15189         add the created loop to the loop tree.  Do not mark loops for fixup.
15191 2021-08-04  Martin Liska  <mliska@suse.cz>
15193         * doc/invoke.texi: Document threader-mode param.
15195 2021-08-04  liuhongt  <hongtao.liu@intel.com>
15197         * config/i386/sse.md (cond_fma<mode>): New expander.
15198         (cond_fms<mode>): Ditto.
15199         (cond_fnma<mode>): Ditto.
15200         (cond_fnms<mode>): Ditto.
15202 2021-08-03  Segher Boessenkool  <segher@kernel.crashing.org>
15204         * config/rs6000/vsx.md (*vsx_le_perm_store_<mode>): Use && instead of &.
15206 2021-08-03  Segher Boessenkool  <segher@kernel.crashing.org>
15208         * config/rs6000/constraints.md: Remove "e" from the list of available
15209         constraint characters.
15211 2021-08-03  Eugene Rozenfeld  <erozen@microsoft.com>
15213         PR gcov-profile/71672
15214         * auto-profile.c (afdo_indirect_call): Fix setup of the historgram value for indirect calls.
15216 2021-08-03  Paul A. Clarke  <pc@us.ibm.com>
15218         * config/rs6000/smmintrin.h (_mm_minpos_epu16): New.
15220 2021-08-03  H.J. Lu  <hjl.tools@gmail.com>
15222         * config/i386/i386.c (ix86_gen_scratch_sse_rtx): In 64-bit mode,
15223         try XMM31 to avoid vzeroupper.
15225 2021-08-03  Richard Sandiford  <richard.sandiford@arm.com>
15227         * doc/invoke.texi: Document -mtune=neoverse-512tvb and
15228         -mcpu=neoverse-512tvb.
15229         * config/aarch64/aarch64-cores.def (neoverse-512tvb): New entry.
15230         * config/aarch64/aarch64-tune.md: Regenerate.
15231         * config/aarch64/aarch64.c (neoverse512tvb_sve_vector_cost)
15232         (neoverse512tvb_sve_issue_info, neoverse512tvb_vec_issue_info)
15233         (neoverse512tvb_vector_cost, neoverse512tvb_tunings): New structures.
15234         (aarch64_adjust_body_cost_sve): Handle -mtune=neoverse-512tvb.
15235         (aarch64_adjust_body_cost): Likewise.
15237 2021-08-03  Richard Sandiford  <richard.sandiford@arm.com>
15239         * config/aarch64/aarch64.c (aarch64_add_stmt_cost): Only
15240         record issue information for operations that occur in the
15241         innermost loop.
15243 2021-08-03  Richard Sandiford  <richard.sandiford@arm.com>
15245         * config/aarch64/aarch64.c (aarch64_multiply_add_p): Add a vec_flags
15246         parameter.  Detect cases in which an Advanced SIMD MLA would almost
15247         certainly require a MOV.
15248         (aarch64_count_ops): Update accordingly.
15250 2021-08-03  Richard Sandiford  <richard.sandiford@arm.com>
15252         * config/aarch64/aarch64.c (aarch64_is_store_elt_extraction): New
15253         function, split out from...
15254         (aarch64_detect_vector_stmt_subtype): ...here.
15255         (aarch64_add_stmt_cost): Treat extracting element 0 as free.
15257 2021-08-03  Richard Sandiford  <richard.sandiford@arm.com>
15259         * config/aarch64/aarch64-protos.h (sve_vec_cost):
15260         Add gather_load_x32_cost and gather_load_x64_cost.
15261         * config/aarch64/aarch64.c (generic_sve_vector_cost)
15262         (a64fx_sve_vector_cost, neoversev1_sve_vector_cost): Update
15263         accordingly, using the values given by the scalar_load * number
15264         of elements calculation that we used previously.
15265         (aarch64_detect_vector_stmt_subtype): Use the new fields.
15267 2021-08-03  Richard Sandiford  <richard.sandiford@arm.com>
15269         * config/aarch64/aarch64.c (aarch64_adjust_body_cost_sve): New
15270         function, split out from...
15271         (aarch64_adjust_body_cost): ...here.
15273 2021-08-03  Richard Sandiford  <richard.sandiford@arm.com>
15275         * config/aarch64/fractional-cost.h: New file.
15276         * config/aarch64/aarch64.c: Include <algorithm> (indirectly)
15277         and cost_fraction.h.
15278         (vec_cost_fraction): New typedef.
15279         (aarch64_detect_scalar_stmt_subtype): Use it for statement costs.
15280         (aarch64_detect_vector_stmt_subtype): Likewise.
15281         (aarch64_sve_adjust_stmt_cost, aarch64_adjust_stmt_cost): Likewise.
15282         (aarch64_estimate_min_cycles_per_iter): Use vec_cost_fraction
15283         for cycle counts.
15284         (aarch64_adjust_body_cost): Likewise.
15285         (aarch64_test_cost_fraction): New function.
15286         (aarch64_run_selftests): Call it.
15288 2021-08-03  Richard Sandiford  <richard.sandiford@arm.com>
15290         * config/aarch64/aarch64-protos.h (tune_params::sve_width): Turn
15291         into a bitmask.
15292         * config/aarch64/aarch64.c (aarch64_cmp_autovec_modes): Update
15293         accordingly.
15294         (aarch64_estimated_poly_value): Likewise.  Use the least significant
15295         set bit for the minimum and likely values.  Use the most significant
15296         set bit for the maximum value.
15298 2021-08-03  liuhongt  <hongtao.liu@intel.com>
15300         * config/i386/sse.md (cond_<insn><mode>): New expander.
15301         (cond_mul<mode>): Ditto.
15303 2021-08-03  Kewen Lin  <linkw@linux.ibm.com>
15305         * tree-cfg.c (move_sese_region_to_fn): Fix typos on dloop.
15307 2021-08-03  liuhongt  <hongtao.liu@intel.com>
15309         * config/i386/sse.md (cond_<insn><mode>):New expander.
15310         (cond_mul<mode>): Ditto.
15311         (cond_div<mode>): Ditto.
15313 2021-08-02  H.J. Lu  <hjl.tools@gmail.com>
15315         * config/i386/i386.c (ix86_finalize_stack_frame_flags): Also
15316         check stack_realign_needed for stack realignment.
15317         (ix86_legitimate_constant_p): Always allow CONST_WIDE_INT smaller
15318         than the largest integer supported by vector register.
15319         * config/i386/i386.h (MAX_MOVE_MAX): New.  Set to 64.
15320         (MOVE_MAX): Set to bytes of the largest integer supported by
15321         vector register.
15322         (STORE_MAX_PIECES): New.
15324 2021-08-02  H.J. Lu  <hjl.tools@gmail.com>
15326         * config/i386/i386-expand.c (ix86_expand_vector_move): Call
15327         ix86_gen_scratch_sse_rtx to get a scratch SSE register to copy
15328         data from one memory location to another.
15330 2021-08-02  H.J. Lu  <hjl.tools@gmail.com>
15332         PR middle-end/90773
15333         * config/i386/i386.c (TARGET_GEN_MEMSET_SCRATCH_RTX): New.
15335 2021-08-02  Aldy Hernandez  <aldyh@redhat.com>
15337         PR tree-optimization/101724
15338         * params.opt: Remove --param=threader-iterative.
15339         * tree-ssa-threadbackward.c (pass_thread_jumps::execute): Remove
15340         iterative mode.
15342 2021-08-02  Tom de Vries  <tdevries@suse.de>
15344         PR middle-end/101665
15345         * doc/extend.texi (nonnull attribute): Improve documentation.
15347 2021-08-02  Andrew Pinski  <apinski@marvell.com>
15349         PR rtl-optimization/101683
15350         * rtlanal.c (may_trap_p_1): Handle UNSIGNED_FIX.
15352 2021-08-02  Roger Sayle  <roger@nextmovesoftware.com>
15354         * tree-ssa-phiopt.c (cond_removal_in_builtin_zero_pattern):
15355         Renamed from cond_removal_in_popcount_clz_ctz_pattern.
15356         Add support for BSWAP, FFS, PARITY and CLRSB builtins.
15357         (tree_ssa_phiop_worker): Update call to function above.
15359 2021-08-01  H.J. Lu  <hjl.tools@gmail.com>
15361         PR target/78103
15362         * config/i386/i386.md (bsr_rex64_1_zext): New.
15363         (combine splitter for constant - clzll): Replace gen_bsr_rex64_1
15364         with gen_bsr_rex64_1_zext.
15366 2021-07-31  Jakub Jelinek  <jakub@redhat.com>
15368         PR target/78103
15369         * config/i386/i386.md (bsr_rex64_1, bsr_1, bsr_zext_1): New
15370         define_insn patterns.
15371         (*bsr_rex64_2, *bsr_2): New define_insn_and_split patterns.
15372         Add combine splitters for constant - clz.
15373         (clz<mode>2): Use a temporary pseudo for bsr result.
15375 2021-07-30  Paul A. Clarke  <pc@us.ibm.com>
15377         * config/rs6000/smmintrin.h (_mm_floor_pd, _mm_floor_ps,
15378         _mm_floor_sd, _mm_floor_ss): New.
15380 2021-07-30  Paul A. Clarke  <pc@us.ibm.com>
15382         * config/rs6000/smmintrin.h (_mm_ceil_pd, _mm_ceil_ps,
15383         _mm_ceil_sd, _mm_ceil_ss): New.
15385 2021-07-30  Paul A. Clarke  <pc@us.ibm.com>
15387         * config/rs6000/smmintrin.h (_mm_blend_pd, _mm_blendv_pd,
15388         _mm_blend_ps, _mm_blendv_ps): New.
15390 2021-07-30  Roger Sayle  <roger@nextmovesoftware.com>
15391             Uroš Bizjak  <ubizjak@gmail.com>
15393         * config/i386/i386.md (*dec_cmov<mode>): New define_insn_and_split
15394         to generate a conditional move using the carry flag after sub $1.
15395         (peephole2): Eliminate a register-to-register move by inverting
15396         the condition of a conditional move.
15398 2021-07-30  Hans-Peter Nilsson  <hp@bitrange.com>
15400         * config/mmix/mmix.md ("call", "call_value", "*call_real")
15401         ("*call_value_real"): Don't generate rtx mentioning the generic
15402         operands 1 and 2 to "call", and similarly for "call_value".
15403         * config/mmix/mmix.c (mmix_print_operand_punct_valid_p)
15404         (mmix_print_operand): Use '!' instead of 'p'.
15406 2021-07-30  Hans-Peter Nilsson  <hp@bitrange.com>
15408         * doc/md.texi (call): Correct information about operand 2.
15409         * config/mmix/mmix.md ("call", "call_value"): Remove fixed FIXMEs.
15411 2021-07-30  Andrew MacLeod  <amacleod@redhat.com>
15413         * range-op.cc (operator_trunc_mod::wi_fold): Fold constants.
15415 2021-07-30  Andrew MacLeod  <amacleod@redhat.com>
15417         * range-op.cc (operator_div::wi_fold): Return UNDEFINED for [0, 0] divisor.
15419 2021-07-30  Andrew MacLeod  <amacleod@redhat.com>
15421         * gimple-range-cache.cc (*::set_bb_range): Change const basic_block to
15422         const_basic_block..
15423         (*::get_bb_range): Ditto.
15424         (*::bb_range_p): Ditto.
15425         * gimple-range-cache.h: Change prototypes.
15427 2021-07-30  H.J. Lu  <hjl.tools@gmail.com>
15429         PR middle-end/90773
15430         * builtins.c (builtin_memcpy_read_str): Change the mode argument
15431         from scalar_int_mode to fixed_size_mode.
15432         (builtin_strncpy_read_str): Likewise.
15433         (gen_memset_value_from_prev): New function.
15434         (builtin_memset_read_str): Change the mode argument from
15435         scalar_int_mode to fixed_size_mode.  Use gen_memset_value_from_prev
15436         and support CONST_VECTOR.
15437         (builtin_memset_gen_str): Likewise.
15438         (try_store_by_multiple_pieces): Use by_pieces_constfn to declare
15439         constfun.
15440         * builtins.h (builtin_strncpy_read_str): Replace scalar_int_mode
15441         with fixed_size_mode.
15442         (builtin_memset_read_str): Likewise.
15443         * expr.c (widest_int_mode_for_size): Renamed to ...
15444         (widest_fixed_size_mode_for_size): Add a bool argument to
15445         indicate if QI vector mode can be used.
15446         (by_pieces_ninsns): Call widest_fixed_size_mode_for_size
15447         instead of widest_int_mode_for_size.
15448         (pieces_addr::adjust): Change the mode argument from
15449         scalar_int_mode to fixed_size_mode.
15450         (op_by_pieces_d): Make m_len read-only.  Add a bool member,
15451         m_qi_vector_mode, to indicate that QI vector mode can be used.
15452         (op_by_pieces_d::op_by_pieces_d): Add a bool argument to
15453         initialize m_qi_vector_mode.  Call widest_fixed_size_mode_for_size
15454         instead of widest_int_mode_for_size.
15455         (op_by_pieces_d::get_usable_mode): Change the mode argument from
15456         scalar_int_mode to fixed_size_mode.  Call
15457         widest_fixed_size_mode_for_size instead of
15458         widest_int_mode_for_size.
15459         (op_by_pieces_d::smallest_fixed_size_mode_for_size): New member
15460         function to return the smallest integer or QI vector mode.
15461         (op_by_pieces_d::run): Call widest_fixed_size_mode_for_size
15462         instead of widest_int_mode_for_size.  Call
15463         smallest_fixed_size_mode_for_size instead of
15464         smallest_int_mode_for_size.
15465         (store_by_pieces_d::store_by_pieces_d): Add a bool argument to
15466         indicate that QI vector mode can be used and pass it to
15467         op_by_pieces_d::op_by_pieces_d.
15468         (can_store_by_pieces): Call widest_fixed_size_mode_for_size
15469         instead of widest_int_mode_for_size.  Pass memsetp to
15470         widest_fixed_size_mode_for_size to support QI vector mode.
15471         Allow all CONST_VECTORs for memset if vec_duplicate is supported.
15472         (store_by_pieces): Pass memsetp to
15473         store_by_pieces_d::store_by_pieces_d.
15474         (clear_by_pieces_1): Removed.
15475         (clear_by_pieces): Replace clear_by_pieces_1 with
15476         builtin_memset_read_str and pass true to store_by_pieces_d to
15477         support vector mode broadcast.
15478         (string_cst_read_str): Change the mode argument from
15479         scalar_int_mode to fixed_size_mode.
15480         * expr.h (by_pieces_constfn): Change scalar_int_mode to
15481         fixed_size_mode.
15482         (by_pieces_prev): Likewise.
15483         * rtl.h (lowpart_subreg_regno): New.
15484         * rtlanal.c (lowpart_subreg_regno): New.  A wrapper around
15485         simplify_subreg_regno.
15486         * target.def (gen_memset_scratch_rtx): New hook.
15487         * doc/tm.texi.in: Add TARGET_GEN_MEMSET_SCRATCH_RTX.
15488         * doc/tm.texi: Regenerated.
15490 2021-07-30  Xi Ruoyao  <xry111@mengyan1223.wang>
15492         PR target/94780
15493         * config/mips/mips.c (mips_atomic_assign_expand_fenv): Use
15494           TARGET_EXPR instead of MODIFY_EXPR.
15496 2021-07-30  Xi Ruoyao  <xry111@mengyan1223.wang>
15498         PR target/101132
15499         * config/mips/mips-protos.h (mips_expand_vec_cmp_expr): Declare.
15500         * config/mips/mips.c (mips_expand_vec_cmp_expr): New function.
15501         * config/mips/mips-msa.md (vec_cmp<MSA:mode><mode_i>): New
15502           expander.
15503           (vec_cmpu<IMSA:mode><mode_i>): New expander.
15505 2021-07-30  H.J. Lu  <hjl.tools@gmail.com>
15507         PR target/101685
15508         * config/i386/i386-options.c (ix86_option_override_internal):
15509         Don't enable LZCNT/POPCNT if they have been disabled explicitly.
15511 2021-07-30  prathamesh.kulkarni  <prathamesh.kulkarni@linaro.org>
15513         PR target/66791
15514         * config/arm/arm_neon.h (vld1_p64): Replace call to builtin by
15515         explicitly dereferencing __a.
15516         (vld1_s64): Likewise.
15517         (vld1_u64): Likewise.
15518         * config/arm/arm_neon_builtins.def (vld1): Remove entry for di
15519         and change to VAR13.
15521 2021-07-30  Aldy Hernandez  <aldyh@redhat.com>
15523         * gimple-loop-versioning.cc (lv_dom_walker::lv_dom_walker): Remove
15524         use of m_range_analyzer.
15525         (loop_versioning::lv_dom_walker::before_dom_children): Same.
15526         (loop_versioning::lv_dom_walker::after_dom_children): Remove.
15527         (loop_versioning::prune_loop_conditions): Replace vr_values use
15528         with range_query interface.
15529         (pass_loop_versioning::execute): Use ranger.
15531 2021-07-30  Xi Ruoyao  <xry111@mengyan1223.wang>
15533         PR ipa/101396
15534         * ipa-devirt.c (ipa_odr_read_section): Compare the precision of
15535           enum values, and emit a warning if they mismatch.
15537 2021-07-30  Kewen Lin  <linkw@linux.ibm.com>
15539         * cfgloop.h (as_const): New function.
15540         (class loop_iterator): Rename to ...
15541         (class loops_list): ... this.
15542         (loop_iterator::next): Rename to ...
15543         (loops_list::Iter::fill_curr_loop): ... this and adjust.
15544         (loop_iterator::loop_iterator): Rename to ...
15545         (loops_list::loops_list): ... this and adjust.
15546         (loops_list::Iter): New class.
15547         (loops_list::iterator): New type.
15548         (loops_list::const_iterator): New type.
15549         (loops_list::begin): New function.
15550         (loops_list::end): Likewise.
15551         (loops_list::begin const): Likewise.
15552         (loops_list::end const): Likewise.
15553         (FOR_EACH_LOOP): Remove.
15554         (FOR_EACH_LOOP_FN): Remove.
15555         * cfgloop.c (flow_loops_dump): Adjust FOR_EACH_LOOP* with range-based
15556         for loop with loops_list instance.
15557         (sort_sibling_loops): Likewise.
15558         (disambiguate_loops_with_multiple_latches): Likewise.
15559         (verify_loop_structure): Likewise.
15560         * cfgloopmanip.c (create_preheaders): Likewise.
15561         (force_single_succ_latches): Likewise.
15562         * config/aarch64/falkor-tag-collision-avoidance.c
15563         (execute_tag_collision_avoidance): Likewise.
15564         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Likewise.
15565         * config/s390/s390.c (s390_adjust_loops): Likewise.
15566         * doc/loop.texi: Likewise.
15567         * gimple-loop-interchange.cc (pass_linterchange::execute): Likewise.
15568         * gimple-loop-jam.c (tree_loop_unroll_and_jam): Likewise.
15569         * gimple-loop-versioning.cc (loop_versioning::analyze_blocks): Likewise.
15570         (loop_versioning::make_versioning_decisions): Likewise.
15571         * gimple-ssa-split-paths.c (split_paths): Likewise.
15572         * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl): Likewise.
15573         * graphite.c (canonicalize_loop_form): Likewise.
15574         (graphite_transform_loops): Likewise.
15575         * ipa-fnsummary.c (analyze_function_body): Likewise.
15576         * ipa-pure-const.c (analyze_function): Likewise.
15577         * loop-doloop.c (doloop_optimize_loops): Likewise.
15578         * loop-init.c (loop_optimizer_finalize): Likewise.
15579         (fix_loop_structure): Likewise.
15580         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
15581         (move_loop_invariants): Likewise.
15582         * loop-unroll.c (decide_unrolling): Likewise.
15583         (unroll_loops): Likewise.
15584         * modulo-sched.c (sms_schedule): Likewise.
15585         * predict.c (predict_loops): Likewise.
15586         (pass_profile::execute): Likewise.
15587         * profile.c (branch_prob): Likewise.
15588         * sel-sched-ir.c (sel_finish_pipelining): Likewise.
15589         (sel_find_rgns): Likewise.
15590         * tree-cfg.c (replace_loop_annotate): Likewise.
15591         (replace_uses_by): Likewise.
15592         (move_sese_region_to_fn): Likewise.
15593         * tree-if-conv.c (pass_if_conversion::execute): Likewise.
15594         * tree-loop-distribution.c (loop_distribution::execute): Likewise.
15595         * tree-parloops.c (parallelize_loops): Likewise.
15596         * tree-predcom.c (tree_predictive_commoning): Likewise.
15597         * tree-scalar-evolution.c (scev_initialize): Likewise.
15598         (scev_reset): Likewise.
15599         * tree-ssa-dce.c (find_obviously_necessary_stmts): Likewise.
15600         * tree-ssa-live.c (remove_unused_locals): Likewise.
15601         * tree-ssa-loop-ch.c (ch_base::copy_headers): Likewise.
15602         * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
15603         (tree_ssa_lim_initialize): Likewise.
15604         * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Likewise.
15605         * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize): Likewise.
15606         * tree-ssa-loop-manip.c (get_loops_exits): Likewise.
15607         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations): Likewise.
15608         (free_numbers_of_iterations_estimates): Likewise.
15609         * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
15610         * tree-ssa-loop-split.c (tree_ssa_split_loops): Likewise.
15611         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Likewise.
15612         * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
15613         (pass_scev_cprop::execute): Likewise.
15614         * tree-ssa-propagate.c (clean_up_loop_closed_phi): Likewise.
15615         * tree-ssa-sccvn.c (do_rpo_vn): Likewise.
15616         * tree-ssa-threadupdate.c
15617         (jump_thread_path_registry::thread_through_all_blocks): Likewise.
15618         * tree-vectorizer.c (vectorize_loops): Likewise.
15619         * tree-vrp.c (vrp_asserts::find_assert_locations): Likewise.
15621 2021-07-29  Hans-Peter Nilsson  <hp@bitrange.com>
15623         * config/mmix/mmix.c (mmix_function_arg_1): Avoid
15624         generating a VOIDmode register for e.g the
15625         function_arg_info::end_marker.
15627 2021-07-29  Jeff Law  <jeffreyalaw@gmail.com>
15629         * config/h8300/h8300-modes.def: Add CCZ, CCV and CCC, drop CCZNV.
15630         * config/h8300/h8300.md (H8cc mode iterator): Add CCZ.
15631         (cc mode_attr): Similarly.
15632         (ccz subst_attr): Similarly.
15633         * config/h8300/jumpcall.md: Add new patterns for branch-on-bit.
15634         * config/h8300/testcompare.md: Remove various cc0 based patterns
15635         that had been commented out.  Add pattern to set CCZ from a bit
15636         test.
15638 2021-07-29  Thomas Schwinge  <thomas@codesourcery.com>
15639             Julian Brown  <julian@codesourcery.com>
15640             Kwok Cheung Yeung  <kcy@codesourcery.com>
15642         * omp-offload.c (oacc_loop_xform_head_tail, oacc_loop_process):
15643         'update_stmt' after modification.
15644         (pass_oacc_loop_designation): New function, extracted out of...
15645         (pass_oacc_device_lower): ... this.
15646         (pass_data_oacc_loop_designation, pass_oacc_loop_designation)
15647         (make_pass_oacc_loop_designation): New
15648         * passes.def: Add it.
15649         * tree-parloops.c (create_parallel_loop): Adjust.
15650         * tree-pass.h (make_pass_oacc_loop_designation): New.
15652 2021-07-29  Aldy Hernandez  <aldyh@redhat.com>
15654         * flag-types.h (enum threader_mode): New.
15655         * params.opt: Add entry for --param=threader-mode.
15656         * tree-ssa-threadbackward.c (THREADER_ITERATIVE_MODE): New.
15657         (class back_threader): New.
15658         (back_threader::back_threader): New.
15659         (back_threader::~back_threader): New.
15660         (back_threader::maybe_register_path): New.
15661         (back_threader::find_taken_edge): New.
15662         (back_threader::find_taken_edge_switch): New.
15663         (back_threader::find_taken_edge_cond): New.
15664         (back_threader::resolve_def): New.
15665         (back_threader::resolve_phi): New.
15666         (back_threader::find_paths_to_names): New.
15667         (back_threader::find_paths): New.
15668         (dump_path): New.
15669         (debug): New.
15670         (thread_jumps::find_jump_threads_backwards): Call ranger threader.
15671         (thread_jumps::find_jump_threads_backwards_with_ranger): New.
15672         (pass_thread_jumps::execute): Abstract out code...
15673         (try_thread_blocks): ...here.
15674         * tree-ssa-threadedge.c (jump_threader::thread_outgoing_edges):
15675         Abstract out threading candidate code to...
15676         (single_succ_to_potentially_threadable_block): ...here.
15677         * tree-ssa-threadedge.h (single_succ_to_potentially_threadable_block):
15678         New.
15679         * tree-ssa-threadupdate.c (register_jump_thread): Return boolean.
15680         * tree-ssa-threadupdate.h (class jump_thread_path_registry):
15681         Return bool from register_jump_thread.
15683 2021-07-29  Andreas Krebbel  <krebbel@linux.ibm.com>
15685         * target.def: in0 and in1 do not need to be registers.
15686         * doc/tm.texi: Regenerate.
15688 2021-07-29  liuhongt  <hongtao.liu@intel.com>
15690         PR target/39821
15691         * config/i386/i386.c (ix86_widen_mult_cost): New function.
15692         (ix86_add_stmt_cost): Use ix86_widen_mult_cost for
15693         WIDEN_MULT_EXPR.
15695 2021-07-29  Jiufu Guo  <guojiufu@linux.ibm.com>
15697         PR target/61837
15698         * config/rs6000/rs6000.c (TARGET_PREFERRED_DOLOOP_MODE): New hook.
15699         (rs6000_preferred_doloop_mode): New hook.
15700         * doc/tm.texi: Regenerate.
15701         * doc/tm.texi.in: Add hook preferred_doloop_mode.
15702         * target.def (preferred_doloop_mode): New hook.
15703         * targhooks.c (default_preferred_doloop_mode): New hook.
15704         * targhooks.h (default_preferred_doloop_mode): New hook.
15705         * tree-ssa-loop-ivopts.c (compute_doloop_base_on_mode): New function.
15706         (add_iv_candidate_for_doloop): Call targetm.preferred_doloop_mode
15707         and compute_doloop_base_on_mode.
15709 2021-07-28  Martin Sebor  <msebor@redhat.com>
15711         PR middle-end/101494
15712         * tree-ssa-uninit.c (maybe_warn_operand): Correct object offset
15713         and size computation.
15715 2021-07-28  Martin Sebor  <msebor@redhat.com>
15717         PR middle-end/101601
15718         * gimple-array-bounds.cc (array_bounds_checker::check_mem_ref): Remove
15719         a pointless test.
15720         Handle pointers to functions.
15722 2021-07-28  Martin Sebor  <msebor@redhat.com>
15724         * Makefile.in (OBJS): Add gimple-ssa-warn-access.o and pointer-query.o.
15725         * attribs.h (fndecl_dealloc_argno): Move fndecl_dealloc_argno to tree.h.
15726         * builtins.c (compute_objsize_r): Move to pointer-query.cc.
15727         (access_ref::access_ref): Same.
15728         (access_ref::phi): Same.
15729         (access_ref::get_ref): Same.
15730         (access_ref::size_remaining): Same.
15731         (access_ref::offset_in_range): Same.
15732         (access_ref::add_offset): Same.
15733         (access_ref::inform_access): Same.
15734         (ssa_name_limit_t::visit_phi): Same.
15735         (ssa_name_limit_t::leave_phi): Same.
15736         (ssa_name_limit_t::next): Same.
15737         (ssa_name_limit_t::next_phi): Same.
15738         (ssa_name_limit_t::~ssa_name_limit_t): Same.
15739         (pointer_query::pointer_query): Same.
15740         (pointer_query::get_ref): Same.
15741         (pointer_query::put_ref): Same.
15742         (pointer_query::flush_cache): Same.
15743         (warn_string_no_nul): Move to gimple-ssa-warn-access.cc.
15744         (check_nul_terminated_array): Same.
15745         (unterminated_array): Same.
15746         (maybe_warn_for_bound): Same.
15747         (check_read_access): Same.
15748         (warn_for_access): Same.
15749         (get_size_range): Same.
15750         (check_access): Same.
15751         (gimple_call_alloc_size): Move to tree.c.
15752         (gimple_parm_array_size): Move to pointer-query.cc.
15753         (get_offset_range): Same.
15754         (gimple_call_return_array): Same.
15755         (handle_min_max_size): Same.
15756         (handle_array_ref): Same.
15757         (handle_mem_ref): Same.
15758         (compute_objsize): Same.
15759         (gimple_call_alloc_p): Move to gimple-ssa-warn-access.cc.
15760         (call_dealloc_argno): Same.
15761         (fndecl_dealloc_argno): Same.
15762         (new_delete_mismatch_p): Same.
15763         (matching_alloc_calls_p): Same.
15764         (warn_dealloc_offset): Same.
15765         (maybe_emit_free_warning): Same.
15766         * builtins.h (check_nul_terminated_array): Move to
15767         gimple-ssa-warn-access.h.
15768         (check_nul_terminated_array): Same.
15769         (warn_string_no_nul): Same.
15770         (unterminated_array): Same.
15771         (class ssa_name_limit_t): Same.
15772         (class pointer_query): Same.
15773         (struct access_ref): Same.
15774         (class range_query): Same.
15775         (struct access_data): Same.
15776         (gimple_call_alloc_size): Same.
15777         (gimple_parm_array_size): Same.
15778         (compute_objsize): Same.
15779         (class access_data): Same.
15780         (maybe_emit_free_warning): Same.
15781         * calls.c (initialize_argument_information): Remove call to
15782         maybe_emit_free_warning.
15783         * gimple-array-bounds.cc: Include new header..
15784         * gimple-fold.c: Same.
15785         * gimple-ssa-sprintf.c: Same.
15786         * gimple-ssa-warn-restrict.c: Same.
15787         * passes.def: Add pass_warn_access.
15788         * tree-pass.h (make_pass_warn_access): Declare.
15789         * tree-ssa-strlen.c: Include new headers.
15790         * tree.c (fndecl_dealloc_argno): Move here from builtins.c.
15791         * tree.h (fndecl_dealloc_argno): Move here from attribs.h.
15792         * gimple-ssa-warn-access.cc: New file.
15793         * gimple-ssa-warn-access.h: New file.
15794         * pointer-query.cc: New file.
15795         * pointer-query.h: New file.
15797 2021-07-28  Jakub Jelinek  <jakub@redhat.com>
15799         PR middle-end/101624
15800         * ubsan.c (maybe_instrument_pointer_overflow,
15801         instrument_object_size): Only test DECL_REGISTER on VAR_DECLs,
15802         PARM_DECLs or RESULT_DECLs.
15803         * sanopt.c (maybe_optimize_ubsan_ptr_ifn): Likewise.
15805 2021-07-28  Jakub Jelinek  <jakub@redhat.com>
15807         PR middle-end/101642
15808         * match.pd (bswap16 (x) == bswap16 (y)): Cast both operands
15809         to type of bswap16 for comparison.
15810         (bswap16 (x) == cst): Cast bswap16 operand to type of cst.
15812 2021-07-28  Richard Biener  <rguenther@suse.de>
15814         PR tree-optimization/101615
15815         * tree-vect-slp.c (vect_optimize_slp): Materialize permutes
15816         at CTOR SLP graph entries.
15818 2021-07-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15820         * config/aarch64/aarch64.md (*extend<SHORT:mode><GPI:mode>2_aarch64):
15821         Add "r,w" alternative.
15823 2021-07-28  H.J. Lu  <hjl.tools@gmail.com>
15825         PR target/101456
15826         * config/i386/i386.c (ix86_avx_u128_mode_needed): Don't set
15827         AVX_U128_DIRTY when all bits are zero.
15829 2021-07-28  Richard Biener  <rguenther@suse.de>
15831         PR tree-optimization/101615
15832         * tree-vect-slp.c (vect_optimize_slp): Pre-existing vector
15833         external nodes cannot be permuted so make them perm_out 0.
15835 2021-07-28  Andrew Stubbs  <ams@codesourcery.com>
15837         PR target/100208
15838         * config.in: Regenerate.
15839         * config/gcn/gcn-hsa.h (A_FIJI): New define.
15840         (A_900): New define.
15841         (A_906): New define.
15842         (A_908): New define.
15843         (ASM_SPEC): Use A_FIJI, A_900, A_906 and A_908.
15844         * config/gcn/gcn.c (output_file_start): Adjust attributes according
15845         to the assembler capabilities.
15846         * config/gcn/mkoffload.c (main): Likewise.
15847         * configure: Regenerate.
15848         * configure.ac: Add tests for LLVM assembler attribute features.
15850 2021-07-28  Andrew MacLeod  <amacleod@redhat.com>
15852         * gimple-range-gori.cc (gori_compute::outgoing_edge_range_p): Check for
15853         cond_false and cond_true on branches.
15855 2021-07-28  Bin Cheng  <bin.cheng@linux.alibaba.com>
15857         * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): use
15858         gcc_stablesort.
15860 2021-07-28  Bin Cheng  <bin.cheng@linux.alibaba.com>
15862         * alias.c (init_alias_analysis): Don't skip prologue/epilogue.
15864 2021-07-28  Jakub Jelinek  <jakub@redhat.com>
15866         PR target/101611
15867         * config/i386/sse.md (vashr<mode>3): Split into vashrv8di3 expander
15868         and vashrv4di3 expander, where the latter requires just TARGET_AVX2
15869         and has special !TARGET_AVX512VL expansion.
15870         (vashrv2di3<mask_name>): Rename to ...
15871         (vashrv2di3): ... this.  Change condition to TARGET_XOP || TARGET_AVX2
15872         and add special !TARGET_XOP && !TARGET_AVX512VL expansion.
15874 2021-07-28  Martin Uecker  <muecker@gwdg.de>
15876         * calls.c (maybe_warn_rdwr_sizes): Correct argument
15877         numbers in warning that were switched.
15879 2021-07-28  Kewen Lin  <linkw@linux.ibm.com>
15881         PR tree-optimization/101596
15882         * tree-vect-patterns.c (vect_recog_mulhs_pattern): Fix wrong check
15883         by using new_type's precision instead.
15885 2021-07-28  liuhongt  <hongtao.liu@intel.com>
15887         PR target/99881
15888         * config/i386/i386.h (processor_costs): Add new member
15889         integer_to_sse.
15890         * config/i386/x86-tune-costs.h (ix86_size_cost, i386_cost,
15891         i486_cost, pentium_cost, lakemont_cost, pentiumpro_cost,
15892         geode_cost, k6_cost, athlon_cost, k8_cost, amdfam10_cost,
15893         bdver_cost, znver1_cost, znver2_cost, znver3_cost,
15894         btver1_cost, btver2_cost, btver3_cost, pentium4_cost,
15895         nocona_cost, atom_cost, atom_cost, slm_cost, intel_cost,
15896         generic_cost, core_cost): Initialize integer_to_sse same value
15897         as sse_op.
15898         (skylake_cost): Initialize integer_to_sse twice as much as sse_op.
15899         * config/i386/i386.c (ix86_builtin_vectorization_cost):
15900         Use integer_to_sse instead of sse_op to calculate the cost of
15901         vec_construct.
15903 2021-07-27  Bill Schmidt  <wschmidt@linux.ibm.com>
15905         * config/rs6000/rs6000-gen-builtins.c (write_ovld_static_init): New
15906         function.
15907         (write_init_file): Call write_ovld_static_init.
15909 2021-07-27  Bill Schmidt  <wschmidt@linux.ibm.com>
15911         * config/rs6000/rs6000-gen-builtins.c (write_bif_static_init): New
15912         function.
15913         (write_init_file): Call write_bif_static_init.
15915 2021-07-27  Bill Schmidt  <wschmidt@linux.ibm.com>
15917         * config/rs6000/rs6000-gen-builtins.c (typemap): New struct.
15918         (TYPE_MAP_SIZE): New macro.
15919         (type_map): New initialized variable.
15920         (typemap_cmp): New function.
15921         (write_type_node): Likewise.
15922         (write_fntype_init): Implement.
15924 2021-07-27  Martin Sebor  <msebor@redhat.com>
15926         PR tree-optimization/101584
15927         * tree-ssa-uninit.c (builtin_call_nomodifying_p): New function.
15928         (check_defs): Call it.
15930 2021-07-27  Aldy Hernandez  <aldyh@redhat.com>
15932         * tree-ssa-dom.c (dom_jump_threader_simplifier):
15933         Put avail_exprs_stack in the class, instead of passing it to
15934         jump_threader_simplifier.
15935         (dom_jump_threader_simplifier::simplify): Add state argument.
15936         (dom_opt_dom_walker): Add state.
15937         (pass_dominator::execute): Pass state to threader.
15938         (dom_opt_dom_walker::before_dom_children): Use state.
15939         * tree-ssa-threadedge.c (jump_threader::jump_threader): Replace
15940         arguments by state.
15941         (jump_threader::record_temporary_equivalences_from_phis):
15942         Register equivalences through the state variable.
15943         (jump_threader::record_temporary_equivalences_from_stmts_at_dest):
15944         Record ranges in a statement through the state variable.
15945         (jump_threader::simplify_control_stmt_condition): Pass state to
15946         simplify.
15947         (jump_threader::simplify_control_stmt_condition_1): Same.
15948         (jump_threader::thread_around_empty_blocks): Remove obsolete
15949         comment.
15950         (jump_threader::thread_through_normal_block): Record equivalences
15951         on edge through the state variable.
15952         (jump_threader::thread_across_edge): Abstract state pushing.
15953         (jt_state::jt_state): New.
15954         (jt_state::push): New.
15955         (jt_state::pop): New.
15956         (jt_state::register_equiv): New.
15957         (jt_state::record_ranges_from_stmt): New.
15958         (jt_state::register_equivs_on_edge): New.
15959         (jump_threader_simplifier::jump_threader_simplifier): Move from
15960         header.
15961         (jump_threader_simplifier::simplify): Add state argument.
15962         * tree-ssa-threadedge.h (class jt_state): New.
15963         (class jump_threader): Add state to constructor.
15964         (class jump_threader_simplifier): Add state to simplify.  Remove
15965         avail_exprs_stack from class.
15966         * tree-vrp.c (vrp_jump_threader_simplifier::simplify): Add state
15967         argument.
15968         (vrp_jump_threader::vrp_jump_threader): Add state.
15969         (vrp_jump_threader::~vrp_jump_threader): Cleanup state.
15971 2021-07-27  Aldy Hernandez  <aldyh@redhat.com>
15973         * Makefile.in (OBJS): Add gimple-range-path.o.
15974         * gimple-range-path.cc: New file.
15975         * gimple-range-path.h: New file.
15977 2021-07-27  Jonathan Wright  <jonathan.wright@arm.com>
15979         * config/aarch64/aarch64-simd.md: Push sign/zero-extension
15980         inside vec_duplicate for all patterns.
15981         * simplify-rtx.c (simplify_context::simplify_unary_operation_1):
15982         Push sign/zero-extension inside vec_duplicate.
15984 2021-07-27  Richard Biener  <rguenther@suse.de>
15986         PR tree-optimization/101573
15987         * tree-ssa-uninit.c (warn_uninit_phi_uses): New function
15988         looking at uninitialized PHI arg defs in some constrained cases.
15989         (warn_uninitialized_vars): Call it.
15990         (execute_early_warn_uninitialized): Calculate dominators.
15992 2021-07-27  Richard Biener  <rguenther@suse.de>
15994         PR tree-optimization/39821
15995         * tree-vect-stmts.c (vect_model_promotion_demotion_cost): Use
15996         vector_stmt for widening arithmetic.
15997         (vectorizable_conversion): Adjust.
15999 2021-07-27  Martin Jambor  <mjambor@suse.cz>
16001         * cgraph.h (ipa_replace_map): New field force_load_ref.
16002         * ipa-prop.h (ipa_param_descriptor): Reduce precision of move_cost,
16003         aded new flag load_dereferenced, adjusted comments.
16004         (ipa_get_param_dereferenced): New function.
16005         (ipa_set_param_dereferenced): Likewise.
16006         * cgraphclones.c (cgraph_node::create_virtual_clone): Follow it.
16007         * ipa-cp.c: Include gimple.h.
16008         (ipcp_discover_new_direct_edges): Take into account dereferenced flag.
16009         (get_replacement_map): New parameter force_load_ref, set the
16010         appropriate flag in ipa_replace_map if set.
16011         (struct symbol_and_index_together): New type.
16012         (adjust_refs_in_act_callers): New function.
16013         (adjust_references_in_caller): Likewise.
16014         (create_specialized_node): When appropriate, call
16015         adjust_references_in_caller and force only load references.
16016         * ipa-prop.c (load_from_dereferenced_name): New function.
16017         (ipa_analyze_controlled_uses): Also detect loads from a
16018         dereference, harden testing of call statements.
16019         (ipa_write_node_info): Stream the dereferenced flag.
16020         (ipa_read_node_info): Likewise.
16021         (ipa_set_jf_constant): Also create refdesc when jump function
16022         references a variable.
16023         (cgraph_node_for_jfunc): Rename to symtab_node_for_jfunc, work
16024         also on references of variables and return a symtab_node.  Adjust
16025         all callers.
16026         (propagate_controlled_uses): Also remove references to VAR_DECLs.
16028 2021-07-27  Jakub Jelinek  <jakub@redhat.com>
16030         PR middle-end/101586
16031         * gimple-fold.c (clear_padding_type): Ignore FIELD_DECLs with byte
16032         positions above or equal to sz except for diagnostics of flexible
16033         array members.
16035 2021-07-26  Andrew MacLeod  <amacleod@redhat.com>
16037         PR tree-optimization/78888
16038         * gimple-range-fold.cc (get_letter_range): New.
16039         (fold_using_range::range_of_builtin_call): Call get_letter_range.
16041 2021-07-26  Andrew MacLeod  <amacleod@redhat.com>
16043         PR tree-optimization/78888
16044         * gimple-range-fold.cc (fold_using_range::range_of_builtin_call): Add cases
16045         for CFN_BUILT_IN_TOUPPER and CFN_BUILT_IN_TOLOWER.
16047 2021-07-26  Roger Sayle  <roger@nextmovesoftware.com>
16048             Marc Glisse  <marc.glisse@inria.fr>
16050         * match.pd (rotate): Simplify equality/inequality of rotations.
16051         (bswap): Simplify equality/inequality tests of byte swapping.
16053 2021-07-26  Aldy Hernandez  <aldyh@redhat.com>
16055         * range-op.cc (operator_bitwise_xor::op1_op2_relation_effect):
16056         New.
16058 2021-07-26  Aldy Hernandez  <aldyh@redhat.com>
16060         * range-op.cc (operator_lshift::fold_range): Pass rel to
16061         base class fold_range.
16062         (operator_rshift::fold_range): Same.
16064 2021-07-26  Ashimida  <ashimida@linux.alibaba.com>
16066         PR driver/101447
16067         * toplev.h (min_align_loops_log): Remove declaration.
16068         (min_align_jumps_log, min_align_labels_log): Likewise.
16069         (min_align_functions_log): Likewise.
16071 2021-07-26  Aldy Hernandez  <aldyh@redhat.com>
16073         * tree-vrp.c (vrp_simplify_cond_using_ranges): Rename vr_values
16074         with range_query.
16075         (execute_vrp): Abstract out simplification of conditionals...
16076         (simplify_casted_conds): ...here.
16078 2021-07-26  Aldy Hernandez  <aldyh@redhat.com>
16080         * gimple-array-bounds.cc (array_bounds_checker::get_value_range):
16081         Add gimple argument.
16082         (array_bounds_checker::check_array_ref): Same.
16083         (array_bounds_checker::check_addr_expr): Same.
16084         (array_bounds_checker::check_array_bounds): Pass statement to
16085         check_array_bounds and check_addr_expr.
16086         * gimple-array-bounds.h (check_array_bounds): Add gimple argument.
16087         (check_addr_expr): Same.
16088         (get_value_range): Same.
16090 2021-07-26  Tamar Christina  <tamar.christina@arm.com>
16092         * config/aarch64/aarch64-simd-builtins.def (sdot, udot): Rename to..
16093         (sdot_prod, udot_prod): ... This.
16094         * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>): Merged
16095         into...
16096         (<sur>dot_prod<vsi2qi>): ... this.
16097         (aarch64_<sur>dot_lane<vsi2qi>, aarch64_<sur>dot_laneq<vsi2qi>):
16098         Change operands order.
16099         (<sur>sadv16qi): Use new operands order.
16100         * config/aarch64/arm_neon.h (vdot_u32, vdotq_u32, vdot_s32,
16101         vdotq_s32): Use new RTL ordering.
16103 2021-07-26  Tamar Christina  <tamar.christina@arm.com>
16105         * config/aarch64/aarch64-builtins.c (TYPES_TERNOP_SUSS,
16106         aarch64_types_ternop_suss_qualifiers): New.
16107         * config/aarch64/aarch64-simd-builtins.def (usdot_prod): Use it.
16108         * config/aarch64/aarch64-simd.md (usdot_prod<vsi2qi>): Re-organize RTL.
16109         * config/aarch64/arm_neon.h (vusdot_s32, vusdotq_s32): Use it.
16111 2021-07-23  Jakub Jelinek  <jakub@redhat.com>
16113         PR rtl-optimization/101562
16114         * expmed.c (store_integral_bit_field): Only use movstrict_optab
16115         if the operand isn't paradoxical.
16117 2021-07-23  Aldy Hernandez  <aldyh@redhat.com>
16119         * gimple-array-bounds.h (class array_bounds_checker): Change
16120         ranges type to range_query.
16122 2021-07-23  Jonathan Wright  <jonathan.wright@arm.com>
16124         * config/aarch64/arm_neon.h (vst1_s64_x2): Use
16125         __builtin_memcpy instead of constructing
16126         __builtin_aarch64_simd_oi one vector at a time.
16127         (vst1_u64_x2): Likewise.
16128         (vst1_f64_x2): Likewise.
16129         (vst1_s8_x2): Likewise.
16130         (vst1_p8_x2): Likewise.
16131         (vst1_s16_x2): Likewise.
16132         (vst1_p16_x2): Likewise.
16133         (vst1_s32_x2): Likewise.
16134         (vst1_u8_x2): Likewise.
16135         (vst1_u16_x2): Likewise.
16136         (vst1_u32_x2): Likewise.
16137         (vst1_f16_x2): Likewise.
16138         (vst1_f32_x2): Likewise.
16139         (vst1_p64_x2): Likewise.
16140         (vst1q_s8_x2): Likewise.
16141         (vst1q_p8_x2): Likewise.
16142         (vst1q_s16_x2): Likewise.
16143         (vst1q_p16_x2): Likewise.
16144         (vst1q_s32_x2): Likewise.
16145         (vst1q_s64_x2): Likewise.
16146         (vst1q_u8_x2): Likewise.
16147         (vst1q_u16_x2): Likewise.
16148         (vst1q_u32_x2): Likewise.
16149         (vst1q_u64_x2): Likewise.
16150         (vst1q_f16_x2): Likewise.
16151         (vst1q_f32_x2): Likewise.
16152         (vst1q_f64_x2): Likewise.
16153         (vst1q_p64_x2): Likewise.
16155 2021-07-23  Jonathan Wright  <jonathan.wright@arm.com>
16157         * config/aarch64/arm_neon.h (vst1_s64_x3): Use
16158         __builtin_memcpy instead of constructing
16159         __builtin_aarch64_simd_ci one vector at a time.
16160         (vst1_u64_x3): Likewise.
16161         (vst1_f64_x3): Likewise.
16162         (vst1_s8_x3): Likewise.
16163         (vst1_p8_x3): Likewise.
16164         (vst1_s16_x3): Likewise.
16165         (vst1_p16_x3): Likewise.
16166         (vst1_s32_x3): Likewise.
16167         (vst1_u8_x3): Likewise.
16168         (vst1_u16_x3): Likewise.
16169         (vst1_u32_x3): Likewise.
16170         (vst1_f16_x3): Likewise.
16171         (vst1_f32_x3): Likewise.
16172         (vst1_p64_x3): Likewise.
16173         (vst1q_s8_x3): Likewise.
16174         (vst1q_p8_x3): Likewise.
16175         (vst1q_s16_x3): Likewise.
16176         (vst1q_p16_x3): Likewise.
16177         (vst1q_s32_x3): Likewise.
16178         (vst1q_s64_x3): Likewise.
16179         (vst1q_u8_x3): Likewise.
16180         (vst1q_u16_x3): Likewise.
16181         (vst1q_u32_x3): Likewise.
16182         (vst1q_u64_x3): Likewise.
16183         (vst1q_f16_x3): Likewise.
16184         (vst1q_f32_x3): Likewise.
16185         (vst1q_f64_x3): Likewise.
16186         (vst1q_p64_x3): Likewise.
16188 2021-07-23  H.J. Lu  <hjl.tools@gmail.com>
16190         PR target/101504
16191         * config/i386/i386.c (ix86_gen_scratch_sse_rtx): Don't return
16192         hard register when LRA is in progress.
16194 2021-07-23  Jonathan Wright  <jonathan.wright@arm.com>
16196         * config/aarch64/arm_neon.h (vst1_s8_x4): Use
16197         __builtin_memcpy instead of using a union.
16198         (vst1q_s8_x4): Likewise.
16199         (vst1_s16_x4): Likewise.
16200         (vst1q_s16_x4): Likewise.
16201         (vst1_s32_x4): Likewise.
16202         (vst1q_s32_x4): Likewise.
16203         (vst1_u8_x4): Likewise.
16204         (vst1q_u8_x4): Likewise.
16205         (vst1_u16_x4): Likewise.
16206         (vst1q_u16_x4): Likewise.
16207         (vst1_u32_x4): Likewise.
16208         (vst1q_u32_x4): Likewise.
16209         (vst1_f16_x4): Likewise.
16210         (vst1q_f16_x4): Likewise.
16211         (vst1_f32_x4): Likewise.
16212         (vst1q_f32_x4): Likewise.
16213         (vst1_p8_x4): Likewise.
16214         (vst1q_p8_x4): Likewise.
16215         (vst1_p16_x4): Likewise.
16216         (vst1q_p16_x4): Likewise.
16217         (vst1_s64_x4): Likewise.
16218         (vst1_u64_x4): Likewise.
16219         (vst1_p64_x4): Likewise.
16220         (vst1q_s64_x4): Likewise.
16221         (vst1q_u64_x4): Likewise.
16222         (vst1q_p64_x4): Likewise.
16223         (vst1_f64_x4): Likewise.
16224         (vst1q_f64_x4): Likewise.
16226 2021-07-23  Jonathan Wrightt  <jonathan.wright@arm.com>
16228         * config/aarch64/arm_neon.h (vst2_s64): Use __builtin_memcpy
16229         instead of constructing __builtin_aarch64_simd_oi one vector
16230         at a time.
16231         (vst2_u64): Likewise.
16232         (vst2_f64): Likewise.
16233         (vst2_s8): Likewise.
16234         (vst2_p8): Likewise.
16235         (vst2_s16): Likewise.
16236         (vst2_p16): Likewise.
16237         (vst2_s32): Likewise.
16238         (vst2_u8): Likewise.
16239         (vst2_u16): Likewise.
16240         (vst2_u32): Likewise.
16241         (vst2_f16): Likewise.
16242         (vst2_f32): Likewise.
16243         (vst2_p64): Likewise.
16244         (vst2q_s8): Likewise.
16245         (vst2q_p8): Likewise.
16246         (vst2q_s16): Likewise.
16247         (vst2q_p16): Likewise.
16248         (vst2q_s32): Likewise.
16249         (vst2q_s64): Likewise.
16250         (vst2q_u8): Likewise.
16251         (vst2q_u16): Likewise.
16252         (vst2q_u32): Likewise.
16253         (vst2q_u64): Likewise.
16254         (vst2q_f16): Likewise.
16255         (vst2q_f32): Likewise.
16256         (vst2q_f64): Likewise.
16257         (vst2q_p64): Likewise.
16259 2021-07-23  Jonathan Wright  <jonathan.wright@arm.com>
16261         * config/aarch64/arm_neon.h (vst3_s64): Use __builtin_memcpy
16262         instead of constructing __builtin_aarch64_simd_ci one vector
16263         at a time.
16264         (vst3_u64): Likewise.
16265         (vst3_f64): Likewise.
16266         (vst3_s8): Likewise.
16267         (vst3_p8): Likewise.
16268         (vst3_s16): Likewise.
16269         (vst3_p16): Likewise.
16270         (vst3_s32): Likewise.
16271         (vst3_u8): Likewise.
16272         (vst3_u16): Likewise.
16273         (vst3_u32): Likewise.
16274         (vst3_f16): Likewise.
16275         (vst3_f32): Likewise.
16276         (vst3_p64): Likewise.
16277         (vst3q_s8): Likewise.
16278         (vst3q_p8): Likewise.
16279         (vst3q_s16): Likewise.
16280         (vst3q_p16): Likewise.
16281         (vst3q_s32): Likewise.
16282         (vst3q_s64): Likewise.
16283         (vst3q_u8): Likewise.
16284         (vst3q_u16): Likewise.
16285         (vst3q_u32): Likewise.
16286         (vst3q_u64): Likewise.
16287         (vst3q_f16): Likewise.
16288         (vst3q_f32): Likewise.
16289         (vst3q_f64): Likewise.
16290         (vst3q_p64): Likewise.
16292 2021-07-23  Jonathan Wright  <jonathan.wright@arm.com>
16294         * config/aarch64/arm_neon.h (vst4_s64): Use __builtin_memcpy
16295         instead of constructing __builtin_aarch64_simd_xi one vector
16296         at a time.
16297         (vst4_u64): Likewise.
16298         (vst4_f64): Likewise.
16299         (vst4_s8): Likewise.
16300         (vst4_p8): Likewise.
16301         (vst4_s16): Likewise.
16302         (vst4_p16): Likewise.
16303         (vst4_s32): Likewise.
16304         (vst4_u8): Likewise.
16305         (vst4_u16): Likewise.
16306         (vst4_u32): Likewise.
16307         (vst4_f16): Likewise.
16308         (vst4_f32): Likewise.
16309         (vst4_p64): Likewise.
16310         (vst4q_s8): Likewise.
16311         (vst4q_p8): Likewise.
16312         (vst4q_s16): Likewise.
16313         (vst4q_p16): Likewise.
16314         (vst4q_s32): Likewise.
16315         (vst4q_s64): Likewise.
16316         (vst4q_u8): Likewise.
16317         (vst4q_u16): Likewise.
16318         (vst4q_u32): Likewise.
16319         (vst4q_u64): Likewise.
16320         (vst4q_f16): Likewise.
16321         (vst4q_f32): Likewise.
16322         (vst4q_f64): Likewise.
16323         (vst4q_p64): Likewise.
16325 2021-07-23  Jonathan Wright  <jonathan.wright@arm.com>
16327         * config/aarch64/arm_neon.h (vtbx4_s8): Use __builtin_memcpy
16328         instead of constructing __builtin_aarch64_simd_oi one vector
16329         at a time.
16330         (vtbx4_u8): Likewise.
16331         (vtbx4_p8): Likewise.
16333 2021-07-23  Jonathan Wright  <jonathan.wright@arm.com>
16335         * config/aarch64/arm_neon.h (vtbl3_s8): Use __builtin_memcpy
16336         instead of constructing __builtin_aarch64_simd_oi one vector
16337         at a time.
16338         (vtbl3_u8): Likewise.
16339         (vtbl3_p8): Likewise.
16340         (vtbl4_s8): Likewise.
16341         (vtbl4_u8): Likewise.
16342         (vtbl4_p8): Likewise.
16344 2021-07-23  Jonathan Wright  <jonathan.wright@arm.com>
16346         * config/aarch64/arm_neon.h (vqtbx2_s8): Use __builtin_memcpy
16347         instead of constructing __builtin_aarch64_simd_oi one vector
16348         at a time.
16349         (vqtbx2_u8): Likewise.
16350         (vqtbx2_p8): Likewise.
16351         (vqtbx2q_s8): Likewise.
16352         (vqtbx2q_u8): Likewise.
16353         (vqtbx2q_p8): Likewise.
16354         (vqtbx3_s8): Use __builtin_memcpy instead of constructing
16355         __builtin_aarch64_simd_ci one vector at a time.
16356         (vqtbx3_u8): Likewise.
16357         (vqtbx3_p8): Likewise.
16358         (vqtbx3q_s8): Likewise.
16359         (vqtbx3q_u8): Likewise.
16360         (vqtbx3q_p8): Likewise.
16361         (vqtbx4_s8): Use __builtin_memcpy instead of constructing
16362         __builtin_aarch64_simd_xi one vector at a time.
16363         (vqtbx4_u8): Likewise.
16364         (vqtbx4_p8): Likewise.
16365         (vqtbx4q_s8): Likewise.
16366         (vqtbx4q_u8): Likewise.
16367         (vqtbx4q_p8): Likewise.
16369 2021-07-23  Jonathan Wright  <jonathan.wright@arm.com>
16371         * config/aarch64/arm_neon.h (vqtbl2_s8): Use __builtin_memcpy
16372         instead of constructing __builtin_aarch64_simd_oi one vector
16373         at a time.
16374         (vqtbl2_u8): Likewise.
16375         (vqtbl2_p8): Likewise.
16376         (vqtbl2q_s8): Likewise.
16377         (vqtbl2q_u8): Likewise.
16378         (vqtbl2q_p8): Likewise.
16379         (vqtbl3_s8): Use __builtin_memcpy instead of constructing
16380         __builtin_aarch64_simd_ci one vector at a time.
16381         (vqtbl3_u8): Likewise.
16382         (vqtbl3_p8): Likewise.
16383         (vqtbl3q_s8): Likewise.
16384         (vqtbl3q_u8): Likewise.
16385         (vqtbl3q_p8): Likewise.
16386         (vqtbl4_s8): Use __builtin_memcpy instead of constructing
16387         __builtin_aarch64_simd_xi one vector at a time.
16388         (vqtbl4_u8): Likewise.
16389         (vqtbl4_p8): Likewise.
16390         (vqtbl4q_s8): Likewise.
16391         (vqtbl4q_u8): Likewise.
16392         (vqtbl4q_p8): Likewise.
16394 2021-07-23  Haochen Gui  <guihaoc@gcc.gnu.org>
16396         PR target/100952
16397         * config/rs6000/rs6000.md (cstore<mode>4): Fix wrong fall through.
16399 2021-07-22  Andrew Pinski  <apinski@marvell.com>
16401         PR tree-optimization/10153
16402         * tree-tailcall.c (create_tailcall_accumulator):
16403         Don't call fold_convert as the type should be correct already.
16404         (tree_optimize_tail_calls_1): Use build_{one,zero}_cst instead
16405         of integer_{one,zero}_node for the call of create_tailcall_accumulator.
16407 2021-07-22  Aldy Hernandez  <aldyh@redhat.com>
16409         * gimple-range-cache.cc (non_null_ref::adjust_range): Replace
16410         varying_p check for null/non-null check.
16412 2021-07-22  Andrew MacLeod  <amacleod@redhat.com>
16414         PR tree-optimization/101511
16415         * value-relation.cc (relation_oracle::query_relation): Check if ssa1
16416         is in ssa2's equiv set, and don't trap if so.
16418 2021-07-22  Andrew MacLeod  <amacleod@redhat.com>
16420         PR tree-optimization/101497
16421         * gimple-range-fold.cc (fold_using_range::range_of_cond_expr): Check
16422         for undefined.
16424 2021-07-22  Andrew MacLeod  <amacleod@redhat.com>
16426         PR tree-optimization/101496
16427         * vr-values.c (simplify_using_ranges::fold_cond): Call range_of_stmt
16428         first, then vrp_visit_cond_Stmt.
16430 2021-07-22  liuhongt  <hongtao.liu@intel.com>
16432         * config/i386/i386-expand.c
16433         (ix86_broadcast_from_integer_constant): Rename to ..
16434         (ix86_broadcast_from_constant): .. this, and extend it to
16435         handle float mode.
16436         (ix86_expand_vector_move): Extend to float mode.
16437         * config/i386/i386-features.c
16438         (replace_constant_pool_with_broadcast): Remove.
16439         (remove_partial_avx_dependency_gate): Ditto.
16440         (constant_pool_broadcast): Ditto.
16441         (class pass_constant_pool_broadcast): Ditto.
16442         (make_pass_constant_pool_broadcast): Ditto.
16443         (remove_partial_avx_dependency): Adjust gate.
16444         * config/i386/i386-passes.def: Remove pass_constant_pool_broadcast.
16445         * config/i386/i386-protos.h
16446         (make_pass_constant_pool_broadcast): Remove.
16448 2021-07-22  liuhongt  <hongtao.liu@intel.com>
16450         * config/i386/constraints.md (Wb): New constraint.
16451         (Ww): Ditto.
16452         * config/i386/i386.md (*ashlhi3_1): Extend to avx512 mask
16453         shift.
16454         (*ashlqi3_1): Ditto.
16455         (*<insn><mode>3_1): Split to ..
16456         (*ashr<mode>3_1): this, ...
16457         (*lshr<mode>3_1): and this, also extend this pattern to avx512
16458         mask registers.
16459         (*<insn><mode>3_1): Split to ..
16460         (*ashr<mode>3_1): this, ...
16461         (*lshrqi3_1): and this, also extend this pattern to avx512
16462         mask registers.
16463         (*lshrhi3_1): And this, also extend this pattern to avx512
16464         mask registers.
16465         * config/i386/sse.md (k<code><mode>): New define_split after
16466         it to convert generic shift pattern to mask shift ones.
16468 2021-07-21  Thomas Schwinge  <thomas@codesourcery.com>
16469             Joseph Myers  <joseph@codesourcery.com>
16470             Cesar Philippidis  <cesar@codesourcery.com>
16472         * tree-core.h (omp_clause_code): Add 'OMP_CLAUSE_NOHOST'.
16473         * tree.c (omp_clause_num_ops, omp_clause_code_name, walk_tree_1):
16474         Handle it.
16475         * tree-pretty-print.c (dump_omp_clause): Likewise.
16476         * omp-general.c (oacc_verify_routine_clauses): Likewise.
16477         * gimplify.c (gimplify_scan_omp_clauses)
16478         (gimplify_adjust_omp_clauses): Likewise.
16479         * tree-nested.c (convert_nonlocal_omp_clauses)
16480         (convert_local_omp_clauses): Likewise.
16481         * omp-low.c (scan_sharing_clauses): Likewise.
16482         * omp-offload.c (execute_oacc_device_lower): Update.
16484 2021-07-21  Martin Sebor  <msebor@redhat.com>
16486         * tree-ssa-alias.c (walk_aliased_vdefs_1): Fix typos in a comment.
16488 2021-07-21  Bill Schmidt  <wschmidt@linux.ibm.com>
16490         * config/rs6000/rs6000-gen-builtins.c (write_init_bif_table):
16491         Implement.
16493 2021-07-21  Bill Schmidt  <wschmidt@linux.ibm.com>
16495         * config/rs6000/rs6000-gen-builtins.c (write_fntype): New
16496         callback function.
16497         (write_fntype_init): New stub function.
16498         (write_init_bif_table): Likewise.
16499         (write_init_ovld_table): New function.
16500         (write_init_file): Implement.
16502 2021-07-21  Bill Schmidt  <wschmidt@linux.ibm.com>
16504         * config/rs6000/rs6000-gen-builtins.c
16505         (write_autogenerated_header): New function.
16506         (write_decls): Likewise.
16507         (write_extern_fntype): New callback function.
16508         (write_header_file): Implement.
16510 2021-07-21  Bill Schmidt  <wschmidt@linux.ibm.com>
16512         * config/rs6000/rs6000-gen-builtins.c (write_defines_file):
16513         Implement.
16515 2021-07-21  Bill Schmidt  <wschmidt@linux.ibm.com>
16517         * config/rs6000/rs6000-gen-builtins.c (complete_vector_type): New
16518         function.
16519         (complete_base_type): Likewise.
16520         (construct_fntype_id): Likewise.
16521         (parse_bif_entry): Call contruct_fntype_id.
16522         (parse_ovld_entry): Likewise.
16524 2021-07-21  Bill Schmidt  <wschmidt@linux.ibm.com>
16526         * config/rs6000/rs6000-gen-builtins.c (ovld_stanza): New struct.
16527         (MAXOVLDSTANZAS): New macro.
16528         (ovld_stanzas): New variable.
16529         (curr_ovld_stanza): Likewise.
16530         (MAXOVLDS): New macro.
16531         (ovlddata): New struct.
16532         (ovlds): New variable.
16533         (curr_ovld): Likewise.
16534         (max_ovld_args): Likewise.
16535         (parse_ovld_entry): New function.
16536         (parse_ovld_stanza): Likewise.
16537         (parse_ovld): Implement.
16539 2021-07-21  Bill Schmidt  <wschmidt@linux.ibm.com>
16541         * config/rs6000/rs6000-gen-builtins.c (parse_bif_attrs):
16542         Implement.
16544 2021-07-21  Bill Schmidt  <wschmidt@linux.ibm.com>
16546         * config/rs6000/rs6000-gen-builtins.c (parse_args): New function.
16547         (parse_prototype): Implement.
16549 2021-07-21  Bill Schmidt  <wschmidt@linux.ibm.com>
16551         * config/rs6000/rs6000-gen-builtins.c (bif_stanza): New enum.
16552         (curr_bif_stanza): New variable.
16553         (stanza_entry): New struct.
16554         (stanza_map): New initialized variable.
16555         (enable_string): Likewise.
16556         (fnkinds): New enum.
16557         (typelist): New struct.
16558         (attrinfo): Likewise.
16559         (MAXRESTROPNDS): New macro.
16560         (prototype): New struct.
16561         (MAXBIFS): New macro.
16562         (bifdata): New struct.
16563         (bifs): New variable.
16564         (curr_bif): Likewise.
16565         (bif_order): Likewise.
16566         (bif_index): Likewise.
16567         (fatal): New function.
16568         (stanza_name_to_stanza): Likewise.
16569         (parse_bif_attrs): New stub function.
16570         (parse_prototype): Likewise.
16571         (parse_bif_entry): New function.
16572         (parse_bif_stanza): Likewise.
16573         (parse_bif): Implement.
16574         (set_bif_order): New function.
16575         (create_bif_order): Implement.
16577 2021-07-21  Bill Schmidt  <wschmidt@linux.ibm.com>
16579         * config/rs6000/rs6000-gen-builtins.c (rbtree.h): New #include.
16580         (num_bifs): New variable.
16581         (num_ovld_stanzas): Likewise.
16582         (num_ovlds): Likewise.
16583         (parse_codes): New enum.
16584         (bif_rbt): New variable.
16585         (ovld_rbt): Likewise.
16586         (fntype_rbt): Likewise.
16587         (bifo_rbt): Likewise.
16588         (parse_bif): New stub function.
16589         (create_bif_order): Likewise.
16590         (parse_ovld): Likewise.
16591         (write_header_file): Likewise.
16592         (write_init_file): Likewise.
16593         (write_defines_file): Likewise.
16594         (delete_output_files): New function.
16595         (main): Likewise.
16597 2021-07-21  H.J. Lu  <hjl.tools@gmail.com>
16599         PR target/101549
16600         * config/i386/i386-builtin.def: Remove OPTION_MASK_ISA_SSE4_2
16601         from CRC32 _builtin functions.
16603 2021-07-21  Sebastian Huber  <sebastian.huber@embedded-brains.de>
16605         * coverage.c (build_gcov_info_var_registration): Mark the object placed
16606         in the linker set as referenced so that it does not get optimized away.
16608 2021-07-21  Kito Cheng  <kito.cheng@sifive.com>
16610         Revert:
16611         2021-07-20  Kito Cheng  <kito.cheng@sifive.com>
16613         * config.gcc (riscv*-*-*): Detect which python is available.
16615 2021-07-21  Jakub Jelinek  <jakub@redhat.com>
16617         PR middle-end/101535
16618         * gimplify.c (omp_check_private): Properly skip ORT_TARGET_DATA
16619         contexts in which decl isn't privatized and for ORT_TARGET return
16620         false if decl is mapped.
16622 2021-07-21  Richard Sandiford  <richard.sandiford@arm.com>
16624         * gimple-loop-jam.c: Include tree-ssa-sccvn.h.
16625         (tree_loop_unroll_and_jam): Run value-numbering on a loop that
16626         has been successfully unrolled.
16628 2021-07-21  Richard Sandiford  <richard.sandiford@arm.com>
16630         * tree-ssa-loop-manip.c (determine_exit_conditions): Return a null
16631         exit condition if no tail loop is needed, and if the original exit
16632         condition should therefore be kept as-is.
16633         (tree_transform_and_unroll_loop): Handle that case here too.
16635 2021-07-21  Kewen Lin  <linkw@linux.ibm.com>
16637         * tree-data-ref.c (free_dependence_relations): Adjust to pass vec
16638         by reference.
16639         (free_data_refs): Likewise.
16640         * tree-data-ref.h (free_dependence_relations): Likewise.
16641         (free_data_refs): Likewise.
16642         * tree-predcom.c (struct chain): Use auto_vec instead of vec for
16643         members.
16644         (struct component): Likewise.
16645         (pcom_worker::pcom_worker): Adjust for auto_vec and renaming changes.
16646         (pcom_worker::~pcom_worker): Likewise.
16647         (pcom_worker::release_chain): Adjust as auto_vec changes.
16648         (pcom_worker::loop): Rename to ...
16649         (pcom_worker::m_loop): ... this.
16650         (pcom_worker::datarefs): Rename to ...
16651         (pcom_worker::m_datarefs): ... this.  Use auto_vec instead of vec.
16652         (pcom_worker::dependences): Rename to ...
16653         (pcom_worker::m_dependences): ... this.  Use auto_vec instead of vec.
16654         (pcom_worker::chains): Rename to ...
16655         (pcom_worker::m_chains): ... this.  Use auto_vec instead of vec.
16656         (pcom_worker::looparound_phis): Rename to ...
16657         (pcom_worker::m_looparound_phis): ... this.  Use auto_vec instead of
16658         vec.
16659         (pcom_worker::cache): Rename to ...
16660         (pcom_worker::m_cache): ... this.  Use auto_vec instead of vec.
16661         (pcom_worker::release_chain): Adjust for auto_vec changes.
16662         (pcom_worker::release_chains): Adjust for auto_vec and renaming
16663         changes.
16664         (release_component): Remove.
16665         (release_components): Adjust for release_component removal.
16666         (component_of): Adjust to use vec.
16667         (merge_comps): Likewise.
16668         (pcom_worker::aff_combination_dr_offset): Adjust for renaming changes.
16669         (pcom_worker::determine_offset): Likewise.
16670         (class comp_ptrs): Remove.
16671         (pcom_worker::split_data_refs_to_components): Adjust for renaming
16672         changes, for comp_ptrs removal with auto_vec.
16673         (pcom_worker::suitable_component_p): Adjust for renaming changes.
16674         (pcom_worker::filter_suitable_components): Adjust for release_component
16675         removal.
16676         (pcom_worker::valid_initializer_p): Adjust for renaming changes.
16677         (pcom_worker::find_looparound_phi): Likewise.
16678         (pcom_worker::add_looparound_copies): Likewise.
16679         (pcom_worker::determine_roots_comp): Likewise.
16680         (pcom_worker::single_nonlooparound_use): Likewise.
16681         (pcom_worker::execute_pred_commoning_chain): Likewise.
16682         (pcom_worker::execute_pred_commoning): Likewise.
16683         (pcom_worker::try_combine_chains): Likewise.
16684         (pcom_worker::prepare_initializers_chain): Likewise.
16685         (pcom_worker::prepare_initializers): Likewise.
16686         (pcom_worker::prepare_finalizers_chain): Likewise.
16687         (pcom_worker::prepare_finalizers): Likewise.
16688         (pcom_worker::tree_predictive_commoning_loop): Likewise.
16690 2021-07-20  Martin Sebor  <msebor@redhat.com>
16692         PR middle-end/101397
16693         * builtins.c (gimple_call_return_array): Add argument.  Correct
16694         offsets for memchr, mempcpy, stpcpy, and stpncpy.
16695         (compute_objsize_r): Adjust offset computation for argument returning
16696         built-ins.
16698 2021-07-20  Martin Sebor  <msebor@redhat.com>
16700         PR middle-end/101300
16701         * tree-ssa-uninit.c (check_defs): Handle UBSAN built-ins.
16703 2021-07-20  Jeff Law  <jlaw@localhost.localdomain>
16705         * function.c (assign_parm_setup_block): Use adjust_address instead
16706         of change_address to preserve MEM_EXPR and friends.
16708 2021-07-20  Martin Sebor  <msebor@redhat.com>
16710         * cfgloop.h (single_likely_exit): Adjust by-value argument to
16711         by-const-reference.
16712         * cfgloopanal.c (single_likely_exit): Same.
16713         * cgraph.h (struct cgraph_node): Same.
16714         * cgraphclones.c (cgraph_node::create_virtual_clone): Same.
16715         * genautomata.c (merge_states): Same.
16716         * genextract.c (VEC_char_to_string): Same.
16717         * genmatch.c (dt_node::gen_kids_1): Same.
16718         (walk_captures): Adjust by-value argument to by-reference.
16719         * gimple-ssa-store-merging.c (check_no_overlap): Adjust by-value argument
16720         to by-const-reference.
16721         * gimple.c (gimple_build_call_vec): Same.
16722         (gimple_build_call_internal_vec): Same.
16723         (gimple_build_switch): Same.
16724         (sort_case_labels): Same.
16725         (preprocess_case_label_vec_for_gimple): Adjust by-value argument to
16726         by-reference.
16727         * gimple.h (gimple_build_call_vec): Adjust by-value argument to
16728         by-const-reference.
16729         (gimple_build_call_internal_vec): Same.
16730         (gimple_build_switch): Same.
16731         (sort_case_labels): Same.
16732         (preprocess_case_label_vec_for_gimple): Adjust by-value argument to
16733         by-reference.
16734         * haifa-sched.c (calc_priorities): Adjust by-value argument to
16735         by-const-reference.
16736         (sched_init_luids): Same.
16737         (haifa_init_h_i_d): Same.
16738         * ipa-cp.c (ipa_get_indirect_edge_target_1): Same.
16739         (adjust_callers_for_value_intersection): Adjust by-value argument to
16740         by-reference.
16741         (find_more_scalar_values_for_callers_subset): Adjust by-value argument to
16742         by-const-reference.
16743         (find_more_contexts_for_caller_subset): Same.
16744         (find_aggregate_values_for_callers_subset): Same.
16745         (copy_useful_known_contexts): Same.
16746         * ipa-fnsummary.c (remap_edge_summaries): Same.
16747         (remap_freqcounting_predicate): Same.
16748         * ipa-inline.c (add_new_edges_to_heap): Adjust by-value argument to
16749         by-reference.
16750         * ipa-predicate.c (predicate::remap_after_inlining): Adjust by-value argument
16751         to by-const-reference.
16752         * ipa-predicate.h (predicate::remap_after_inlining): Same.
16753         * ipa-prop.c (ipa_find_agg_cst_for_param): Same.
16754         * ipa-prop.h (ipa_find_agg_cst_for_param): Same.
16755         * ira-build.c (ira_loop_tree_body_rev_postorder): Same.
16756         * read-rtl.c (add_overload_instance): Same.
16757         * rtl.h (native_decode_rtx): Same.
16758         (native_decode_vector_rtx): Same.
16759         * sched-int.h (sched_init_luids): Same.
16760         (haifa_init_h_i_d): Same.
16761         * simplify-rtx.c (native_decode_vector_rtx): Same.
16762         (native_decode_rtx): Same.
16763         * tree-call-cdce.c (gen_shrink_wrap_conditions): Same.
16764         (shrink_wrap_one_built_in_call_with_conds): Same.
16765         (shrink_wrap_conditional_dead_built_in_calls): Same.
16766         * tree-data-ref.c (create_runtime_alias_checks): Same.
16767         (compute_all_dependences): Same.
16768         * tree-data-ref.h (compute_all_dependences): Same.
16769         (create_runtime_alias_checks): Same.
16770         (index_in_loop_nest): Same.
16771         * tree-if-conv.c (mask_exists): Same.
16772         * tree-loop-distribution.c (class loop_distribution): Same.
16773         (loop_distribution::create_rdg_vertices): Same.
16774         (dump_rdg_partitions): Same.
16775         (debug_rdg_partitions): Same.
16776         (partition_contains_all_rw): Same.
16777         (loop_distribution::distribute_loop): Same.
16778         * tree-parloops.c (oacc_entry_exit_ok_1): Same.
16779         (oacc_entry_exit_single_gang): Same.
16780         * tree-ssa-loop-im.c (hoist_memory_references): Same.
16781         (loop_suitable_for_sm): Same.
16782         * tree-ssa-loop-niter.c (bound_index): Same.
16783         * tree-ssa-reassoc.c (update_ops): Same.
16784         (swap_ops_for_binary_stmt): Same.
16785         (rewrite_expr_tree): Same.
16786         (rewrite_expr_tree_parallel): Same.
16787         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Same.
16788         * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Same.
16789         * tree-ssa-structalias.c (process_all_all_constraints): Same.
16790         (make_constraints_to): Same.
16791         (handle_lhs_call): Same.
16792         (find_func_aliases_for_builtin_call): Same.
16793         (sort_fieldstack): Same.
16794         (check_for_overlaps): Same.
16795         * tree-vect-loop-manip.c (vect_create_cond_for_align_checks): Same.
16796         (vect_create_cond_for_unequal_addrs): Same.
16797         (vect_create_cond_for_lower_bounds): Same.
16798         (vect_create_cond_for_alias_checks): Same.
16799         * tree-vect-slp-patterns.c (vect_validate_multiplication): Same.
16800         * tree-vect-slp.c (vect_analyze_slp_instance): Same.
16801         (vect_make_slp_decision): Same.
16802         (vect_slp_bbs): Same.
16803         (duplicate_and_interleave): Same.
16804         (vect_transform_slp_perm_load): Same.
16805         (vect_schedule_slp): Same.
16806         * tree-vectorizer.h (vect_transform_slp_perm_load): Same.
16807         (vect_schedule_slp): Same.
16808         (duplicate_and_interleave): Same.
16809         * tree.c (build_vector_from_ctor): Same.
16810         (build_vector): Same.
16811         (check_vector_cst): Same.
16812         (check_vector_cst_duplicate): Same.
16813         (check_vector_cst_fill): Same.
16814         (check_vector_cst_stepped): Same.
16815         * tree.h (build_vector_from_ctor): Same.
16817 2021-07-20  Jakub Jelinek  <jakub@redhat.com>
16819         PR target/101384
16820         * config/rs6000/rs6000-protos.h (easy_altivec_constant): Change return
16821         type from bool to int.
16822         * config/rs6000/rs6000.c (vspltis_constant): Fix up handling the
16823         EASY_VECTOR_MSB case if either step or copies is not 1.
16824         (vspltis_shifted): Fix comment typo.
16825         (easy_altivec_constant): Change return type from bool to int, instead
16826         of returning true return byte size of the element mode that should be
16827         used to synthetize the constant.
16828         * config/rs6000/predicates.md (easy_vector_constant_msb): Require
16829         that vspltis_shifted is 0, handle the case where easy_altivec_constant
16830         assumes using different vector mode from CONST_VECTOR's mode.
16831         * config/rs6000/altivec.md (easy_vector_constant_msb splitter): Use
16832         easy_altivec_constant to determine mode in which -1 >> -1 should be
16833         performed, use rs6000_expand_vector_init instead of gen_vec_initv4sisi.
16835 2021-07-20  Richard Biener  <rguenther@suse.de>
16837         PR debug/101473
16838         * dwarf2out.h (dwarf_file_data): Add key member.
16839         * dwarf2out.c (dwarf_file_hasher::equal): Compare key.
16840         (dwarf_file_hasher::hash): Hash key.
16841         (lookup_filename): Remap the filename and store it in the
16842         filename member of dwarf_file_data when creating a new
16843         dwarf_file_data.
16844         (file_name_acquire): Do not remap the filename again.
16845         (maybe_emit_file): Likewise.
16847 2021-07-20  Jonathan Wright  <jonathan.wright@arm.com>
16849         * config/aarch64/aarch64-simd-builtins.def: Use two variant
16850         generators for all TBL/TBX intrinsics and rename to
16851         consistent forms: qtbl[1234] or qtbx[1234].
16852         * config/aarch64/aarch64-simd.md (aarch64_tbl1<mode>):
16853         Rename to...
16854         (aarch64_qtbl1<mode>): This.
16855         (aarch64_tbx1<mode>): Rename to...
16856         (aarch64_qtbx1<mode>): This.
16857         (aarch64_tbl2v16qi): Delete.
16858         (aarch64_tbl3<mode>): Rename to...
16859         (aarch64_qtbl2<mode>): This.
16860         (aarch64_tbx4<mode>): Rename to...
16861         (aarch64_qtbx2<mode>): This.
16862         * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Use
16863         renamed qtbl1 and qtbl2 RTL patterns.
16864         * config/aarch64/arm_neon.h (vqtbl1_p8): Use renamed qtbl1
16865         RTL pattern.
16866         (vqtbl1_s8): Likewise.
16867         (vqtbl1_u8): Likewise.
16868         (vqtbl1q_p8): Likewise.
16869         (vqtbl1q_s8): Likewise.
16870         (vqtbl1q_u8): Likewise.
16871         (vqtbx1_s8): Use renamed qtbx1 RTL pattern.
16872         (vqtbx1_u8): Likewise.
16873         (vqtbx1_p8): Likewise.
16874         (vqtbx1q_s8): Likewise.
16875         (vqtbx1q_u8): Likewise.
16876         (vqtbx1q_p8): Likewise.
16877         (vtbl1_s8): Use renamed qtbl1 RTL pattern.
16878         (vtbl1_u8): Likewise.
16879         (vtbl1_p8): Likewise.
16880         (vtbl2_s8): Likewise
16881         (vtbl2_u8): Likewise.
16882         (vtbl2_p8): Likewise.
16883         (vtbl3_s8): Use renamed qtbl2 RTL pattern.
16884         (vtbl3_u8): Likewise.
16885         (vtbl3_p8): Likewise.
16886         (vtbl4_s8): Likewise.
16887         (vtbl4_u8): Likewise.
16888         (vtbl4_p8): Likewise.
16889         (vtbx2_s8): Use renamed qtbx2 RTL pattern.
16890         (vtbx2_u8): Likewise.
16891         (vtbx2_p8): Likewise.
16892         (vqtbl2_s8): Use renamed qtbl2 RTL pattern.
16893         (vqtbl2_u8): Likewise.
16894         (vqtbl2_p8): Likewise.
16895         (vqtbl2q_s8): Likewise.
16896         (vqtbl2q_u8): Likewise.
16897         (vqtbl2q_p8): Likewise.
16898         (vqtbx2_s8): Use renamed qtbx2 RTL pattern.
16899         (vqtbx2_u8): Likewise.
16900         (vqtbx2_p8): Likewise.
16901         (vqtbx2q_s8): Likewise.
16902         (vqtbx2q_u8): Likewise.
16903         (vqtbx2q_p8): Likewise.
16904         (vtbx4_s8): Likewise.
16905         (vtbx4_u8): Likewise.
16906         (vtbx4_p8): Likewise.
16908 2021-07-20  Uroš Bizjak  <ubizjak@gmail.com>
16910         PR target/100182
16911         * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
16912         Remove.
16913         (define_peephole2 atomic_loaddi_fpu): Ditto.
16915 2021-07-20  Kito Cheng  <kito.cheng@sifive.com>
16917         * config.gcc (riscv*-*-*): Detect which python is available.
16919 2021-07-20  Kewen Lin  <linkw@linux.ibm.com>
16921         * config/rs6000/vsx.md (mulhs_<mode>): Rename to...
16922         (smul<mode>3_highpart): ... this.
16923         (mulhu_<mode>): Rename to...
16924         (umul<mode>3_highpart): ... this.
16925         * config/rs6000/rs6000-builtin.def (MULHS_V2DI, MULHS_V4SI,
16926         MULHU_V2DI, MULHU_V4SI): Adjust.
16928 2021-07-20  Kewen Lin  <linkw@linux.ibm.com>
16930         PR tree-optimization/100696
16931         * internal-fn.c (first_commutative_argument): Add info for IFN_MULH.
16932         * internal-fn.def (IFN_MULH): New internal function.
16933         * tree-vect-patterns.c (vect_recog_mulhs_pattern): Add support to
16934         recog normal multiply highpart as IFN_MULH.
16935         * config/i386/i386.c (ix86_add_stmt_cost): Adjust for combined
16936         function CFN_MULH.
16938 2021-07-19  Indu Bhagat  <indu.bhagat@oracle.com>
16940         * config/elfos.h (CTF_DEBUGGING_INFO): New definition.
16941         (BTF_DEBUGGING_INFO): Likewise.
16942         * doc/tm.texi.in: Document the new macros.
16943         * doc/tm.texi: Regenerated.
16944         * toplev.c: Guard initialization of debug hooks.
16946 2021-07-19  Indu Bhagat  <indu.bhagat@oracle.com>
16948         * flags.h (ctf_debuginfo_p): New function declaration.
16949         * opts.c (ctf_debuginfo_p): New function definition.
16951 2021-07-19  Andrew Stubbs  <ams@codesourcery.com>
16953         PR target/100208
16954         * config/gcn/gcn-hsa.h (DRIVER_SELF_SPECS): New.
16955         (ASM_SPEC): Set -mattr for xnack and sram-ecc.
16956         * config/gcn/gcn-opts.h (enum sram_ecc_type): New.
16957         * config/gcn/gcn-valu.md: Add a warning comment.
16958         * config/gcn/gcn.c (gcn_option_override): Add "sorry" for -mxnack.
16959         (output_file_start): Add xnack and sram-ecc state to ".amdgcn_target".
16960         * config/gcn/gcn.md: Add a warning comment.
16961         * config/gcn/gcn.opt: Add -mxnack and -msram-ecc.
16962         * config/gcn/mkoffload.c (EF_AMDGPU_MACH_AMDGCN_GFX908): Remove
16963         SRAM-ECC flag.
16964         (EF_AMDGPU_XNACK): New.
16965         (EF_AMDGPU_SRAM_ECC): New.
16966         (elf_flags): New.
16967         (copy_early_debug_info): Use elf_flags.
16968         (main): Handle -mxnack and -msram-ecc options.
16969         * doc/invoke.texi: Document -mxnack and -msram-ecc.
16971 2021-07-19  Andrew Pinski  <apinski@marvell.com>
16973         PR target/101205
16974         * config/aarch64/aarch64.md (csneg3_uxtw_insn): Rename to ...
16975         (*cs<neg_not_cs>3_uxtw_insn4): and extend to NEG_NOT.
16977 2021-07-19  Richard Biener  <rguenther@suse.de>
16979         PR tree-optimization/101505
16980         * tree-vect-patterns.c (vect_determine_precisions): Walk
16981         PHIs also for loop vectorization.
16983 2021-07-19  Richard Biener  <rguenther@suse.de>
16985         * gimple.h (gimple_expr_type): Remove.
16986         * doc/gimple.texi: Remove gimple_expr_type documentation.
16988 2021-07-19  Richard Biener  <rguenther@suse.de>
16990         * tree-ssa-sccvn.c (vn_reference_eq): Handle NULL vr->type.
16991         (ao_ref_init_from_vn_reference): Likewise.
16992         (fully_constant_reference): Likewise.
16993         (vn_reference_lookup_call): Do not set vr->type to random
16994         values.
16995         * tree-ssa-pre.c (compute_avail): Do not try to PRE calls
16996         without a value.
16997         * tree-vect-generic.c (expand_vector_piecewise): Pass in
16998         whether we expanded parallel.
16999         (expand_vector_parallel): Adjust.
17000         (expand_vector_addition): Likewise.
17001         (expand_vector_comparison): Likewise.
17002         (expand_vector_operation): Likewise.
17003         (expand_vector_scalar_condition): Likewise.
17004         (expand_vector_conversion): Likewise.
17006 2021-07-19  Richard Biener  <rguenther@suse.de>
17008         * tree-vrp.c (register_edge_assert_for_2): Use the
17009         type from the LHS.
17010         (vrp_folder::fold_predicate_in): Likewise.
17011         * vr-values.c (gimple_assign_nonzero_p): Likewise.
17012         (vr_values::extract_range_from_comparison): Likewise.
17013         (vr_values::extract_range_from_ubsan_builtin): Use the
17014         type of the first operand.
17015         (vr_values::extract_range_basic): Push down type
17016         computation, use the appropriate LHS.
17017         (vr_values::extract_range_from_assignment): Use the
17018         type of the LHS.
17020 2021-07-18  H.J. Lu  <hjl.tools@gmail.com>
17022         PR target/101492
17023         * common/config/i386/i386-common.c (ix86_handle_option): For
17024         -mgeneral-regs-only, enable the GPR only instructions which are
17025         enabled implicitly by SSE ISAs unless they have been disabled
17026         explicitly.
17028 2021-07-18  H.J. Lu  <hjl.tools@gmail.com>
17030         PR target/101495
17031         * config/i386/i386.c (ix86_check_avx_upper_stores): Moved before
17032         ix86_avx_u128_mode_needed.
17033         (ix86_avx_u128_mode_needed): Return AVX_U128_DIRTY if callee
17034         returns AVX register.
17036 2021-07-17  Jan Hubicka  <hubicka@ucw.cz>
17038         * tree-ssa-structalias.c (handle_rhs_call): Support EAF_NOT_RETURNED.
17039         (handle_const_call): Liekise
17040         (handle_pure_call): Liekise
17042 2021-07-17  Andrew MacLeod  <amacleod@redhat.com>
17044         PR tree-optimization/96542
17045         * range-op.cc (range_operator::wi_fold_in_parts): New.
17046         (range_operator::fold_range): Call wi_fold_in_parts.
17047         (operator_lshift::wi_fold): Fix broken lshift by [0,0].
17048         * range-op.h (wi_fold_in_parts): Add prototype.
17050 2021-07-16  David Malcolm  <dmalcolm@redhat.com>
17052         * doc/analyzer.texi: Add __analyzer_dump_state.
17054 2021-07-16  Bill Schmidt  <wschmidt@linux.ibm.com>
17056         * config/rs6000/rbtree.c: New file.
17057         * config/rs6000/rbtree.h: New file.
17059 2021-07-16  Bill Schmidt  <wschmidt@linux.ibm.com>
17061         * config/rs6000/rs6000-gen-builtins.c (restriction): New enum.
17062         (typeinfo): Add restr field.
17063         (match_bracketed_pair): New function.
17064         (match_const_restriction): Implement.
17066 2021-07-16  Bill Schmidt  <wschmidt@linux.ibm.com>
17068         * config/rs6000/rs6000-gen-builtins.c (match_basetype): Implement.
17070 2021-07-16  Bill Schmidt  <wschmidt@linux.ibm.com>
17072         * config/rs6000/rs6000-gen-builtins.c (void_status): New enum.
17073         (basetype): Likewise.
17074         (typeinfo): Likewise.
17075         (handle_pointer): New function.
17076         (match_basetype): New stub function.
17077         (match_const_restriction): Likewise.
17078         (match_type): New function.
17080 2021-07-16  Bill Schmidt  <wschmidt@linux.ibm.com>
17082         * config/rs6000/rs6000-gen-builtins.c (consume_whitespace): New
17083         function.
17084         (advance_line): Likewise.
17085         (safe_inc_pos): Likewise.
17086         (match_identifier): Likewise.
17087         (match_integer): Likewise.
17088         (match_to_right_bracket): Likewise.
17090 2021-07-16  Bill Schmidt  <wschmidt@linux.ibm.com>
17092         * config/rs6000/rs6000-gen-builtins.c (bif_file): New variable.
17093         (ovld_file): Likewise.
17094         (header_file): Likewise.
17095         (init_file): Likewise.
17096         (defines_file): Likewise.
17097         (pgm_path): Likewise.
17098         (bif_path): Likewise.
17099         (ovld_path): Likewise.
17100         (header_path): Likewise.
17101         (init_path): Likewise.
17102         (defines_path): Likewise.
17103         (LINELEN): New macro.
17104         (linebuf): New variable.
17105         (line): Likewise.
17106         (pos): Likewise.
17107         (diag): Likewise.
17108         (bif_diag): New function.
17109         (ovld_diag): Likewise.
17111 2021-07-16  Bill Schmidt  <wschmidt@linux.ibm.com>
17113         * config/rs6000/rs6000-builtin-new.def: New.
17114         * config/rs6000/rs6000-overload.def: New.
17116 2021-07-16  Bill Schmidt  <wschmidt@linux.ibm.com>
17118         * config/rs6000/rs6000-gen-builtins.c: New.
17120 2021-07-16  Bill Schmidt  <wschmidt@linux.ibm.com>
17122         * Makefile.in (EXTRA_GTYPE_DEPS): New variable.
17123         (s-gtype): Depend on EXTRA_GTYPE_DEPS.
17124         * gengtype-state.c (state_writer::write_state_file_list): Add a
17125         parameter to the fileslist expression for the number of build
17126         headers to scan.
17127         (read_state_files_list): Detect build headers and strip the
17128         initial "./" or ".\" from their names.
17129         * gengtype.c (build_headers): New global variable.
17130         (num_build_headers): Likewise.
17131         (open_base_files): Emit #include for each build header.
17132         (main): Detect and count build headers.
17133         * gengtype.h (build_headers): New extern variable.
17134         (num_build_headers): Likewise.
17136 2021-07-16  Richard Biener   <rguenther@suse.de>
17138         * gimple-ssa-store-merging.c (verify_symbolic_number_p): Use
17139         the type of the LHS.
17140         (find_bswap_or_nop_1): Likewise.
17141         (find_bswap_or_nop): Likewise.
17142         * tree-vectorizer.h (vect_get_smallest_scalar_type): Adjust
17143         prototype.
17144         * tree-vect-data-refs.c (vect_get_smallest_scalar_type):
17145         Remove unused parameters, pass in the scalar type.  Fix
17146         internal store function handling.
17147         * tree-vect-stmts.c (vect_analyze_stmt): Remove assert.
17148         (vect_get_vector_types_for_stmt): Move down check for
17149         existing vector stmt after we've determined a scalar type.
17150         Pass down the used scalar type to vect_get_smallest_scalar_type.
17151         * tree-vect-generic.c (expand_vector_condition): Use
17152         the type of the LHS.
17153         (expand_vector_scalar_condition): Likewise.
17154         (expand_vector_operations_1): Likewise.
17155         * tree-vect-patterns.c (vect_widened_op_tree): Likewise.
17156         (vect_recog_dot_prod_pattern): Likewise.
17157         (vect_recog_sad_pattern): Likewise.
17158         (vect_recog_widen_op_pattern): Likewise.
17159         (vect_recog_widen_sum_pattern): Likewise.
17160         (vect_recog_mixed_size_cond_pattern): Likewise.
17162 2021-07-16  Jan Hubicka  <hubicka@ucw.cz>
17164         * ipa-modref.c (struct escape_entry): Use eaf_fleags_t.
17165         (dump_eaf_flags): Dump EAF_NOT_RETURNED
17166         (eaf_flags_useful_p): Use eaf_fleags_t; handle const functions
17167         and EAF_NOT_RETURNED.
17168         (modref_summary::useful_p): Likewise.
17169         (modref_summary_lto::useful_p): Likewise.
17170         (struct) modref_summary_lto: Use eaf_fleags_t.
17171         (deref_flags): Handle EAF_NOT_RETURNED.
17172         (struct escape_point): Use min_flags.
17173         (modref_lattice::init): Add EAF_NOT_RETURNED.
17174         (merge_call_lhs_flags): Ignore EAF_NOT_RETURNED functions
17175         (analyze_ssa_name_flags): Clear EAF_NOT_RETURNED on return;
17176         handle call flags.
17177         (analyze_parms): Also analyze const functions; update conition on
17178         flags usefulness.
17179         (modref_write): Update streaming.
17180         (read_section): Update streaming.
17181         (remap_arg_flags): Use eaf_flags_t.
17182         (modref_merge_call_site_flags): Hanlde EAF_NOT_RETURNED.
17183         * ipa-modref.h: (eaf_flags_t): New typedef.
17184         (struct modref_summary): Use eaf_flags_t.
17185         * tree-core.h (EAF_NOT_RETURNED): New constant.
17187 2021-07-16  Richard Biener  <rguenther@suse.de>
17189         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Use
17190         the type of the LHS.
17191         (gimple_assign_nonnegative_warnv_p): Likewise.
17192         (gimple_call_nonnegative_warnv_p): Likewise.  Return false
17193         if the call has no LHS.
17194         * gimple.c (gimple_could_trap_p_1): Use the type of the LHS.
17195         * tree-eh.c (stmt_could_throw_1_p): Likewise.
17196         * tree-inline.c (insert_init_stmt): Likewise.
17197         * tree-ssa-loop-niter.c (get_val_for): Likewise.
17198         * tree-outof-ssa.c (ssa_is_replaceable_p): Use the type of
17199         the def.
17200         * tree-ssa-sccvn.c (init_vn_nary_op_from_stmt): Take a
17201         gassign *.  Use the type of the lhs.
17202         (vn_nary_op_lookup_stmt): Adjust.
17203         (vn_nary_op_insert_stmt): Likewise.
17205 2021-07-16  Ilya Leoshkevich  <iii@linux.ibm.com>
17207         * config/s390/predicates.md (bras_sym_operand): Accept all
17208         functions in 64-bit mode, use UNSPEC_PLT31.
17209         (larl_operand): Use UNSPEC_PLT31.
17210         * config/s390/s390.c (s390_loadrelative_operand_p): Likewise.
17211         (legitimize_pic_address): Likewise.
17212         (s390_emit_tls_call_insn): Mark __tls_get_offset as function,
17213         use UNSPEC_PLT31.
17214         (s390_delegitimize_address): Use UNSPEC_PLT31.
17215         (s390_output_addr_const_extra): Likewise.
17216         (print_operand): Add @PLT to TLS calls, handle %K.
17217         (s390_function_profiler): Mark __fentry__/_mcount as function,
17218         use %K, use UNSPEC_PLT31.
17219         (s390_output_mi_thunk): Use only UNSPEC_GOT, use %K.
17220         (s390_emit_call): Use UNSPEC_PLT31.
17221         (s390_emit_tpf_eh_return): Mark __tpf_eh_return as function.
17222         * config/s390/s390.md (UNSPEC_PLT31): Rename from UNSPEC_PLT.
17223         (*movdi_64): Use %K.
17224         (reload_base_64): Likewise.
17225         (*sibcall_brc): Likewise.
17226         (*sibcall_brcl): Likewise.
17227         (*sibcall_value_brc): Likewise.
17228         (*sibcall_value_brcl): Likewise.
17229         (*bras): Likewise.
17230         (*brasl): Likewise.
17231         (*bras_r): Likewise.
17232         (*brasl_r): Likewise.
17233         (*bras_tls): Likewise.
17234         (*brasl_tls): Likewise.
17235         (main_base_64): Likewise.
17236         (reload_base_64): Likewise.
17237         (@split_stack_call<mode>): Likewise.
17239 2021-07-16  Richard Biener  <rguenther@suse.de>
17241         PR tree-optimization/101467
17242         * tree-vect-stmts.c (vect_gen_while): Properly guard
17243         make_temp_ssa_name usage.
17245 2021-07-16  Cooper Qu  <cooper.qu@linux.alibaba.com>
17247         * config.gcc: Don't use forked print-sysroot-suffix.sh and
17248         t-sysroot-suffix for C-SKY.
17249         * config/csky/print-sysroot-suffix.sh: Delete.
17250         * config/csky/t-csky-linux: Delete.
17251         * config/csky/t-sysroot-suffix: Define MULTILIB_DIRNAMES
17252         instead of CSKY_MULTILIB_DIRNAMES.
17254 2021-07-16  Richard Biener  <rguenther@suse.de>
17256         * tree-vect-loop.c (vect_transform_cycle_phi): Correct sign
17257         conversion issues with the partial reduction of the reused
17258         vector accumulator.
17260 2021-07-16  Richard Biener  <rguenther@suse.de>
17262         * config/i386/i386-options.c (ix86_option_override_internal): Set
17263         param_vect_partial_vector_usage to zero if not set.
17265 2021-07-15  Uroš Bizjak  <ubizjak@gmail.com>
17267         PR target/101346
17268         * config/i386/i386.h (VALID_SSE_REG_MODE): Add TDmode.
17269         (VALID_INT_MODE_P): Add SDmode and DDmode.
17270         Add TDmode for TARGET_64BIT.
17271         (VALID_DFP_MODE_P): Remove.
17272         * config/i386/i386.c (ix86_hard_regno_mode_ok):
17273         Do not use VALID_DFP_MODE_P.
17275 2021-07-15  Andrew MacLeod  <amacleod@redhat.com>
17277         * gimple-range-fold.cc (adjust_pointer_diff_expr): Use
17278         gimple_range_type.
17279         (fold_using_range::fold_stmt): Ditto.
17280         (fold_using_range::range_of_range_op): Ditto.
17281         (fold_using_range::range_of_phi): Ditto.
17282         (fold_using_range::range_of_call): Ditto.
17283         (fold_using_range::range_of_builtin_ubsan_call): Ditto.
17284         (fold_using_range::range_of_builtin_call): Ditto.
17285         (fold_using_range::range_of_cond_expr): Ditto.
17286         * gimple-range-fold.h (gimple_range_type): New.
17288 2021-07-15  Martin Sebor  <msebor@redhat.com>
17290         PR middle-end/97027
17291         * tree-ssa-strlen.c (handle_assign): New function.
17292         (maybe_warn_overflow): Add argument.
17293         (nonzero_bytes_for_type): New function.
17294         (count_nonzero_bytes): Handle more tree types.  Call
17295         nonzero_bytes_for_tye.
17296         (count_nonzero_bytes): Handle types.
17297         (handle_store): Handle stores from function calls.
17298         (strlen_check_and_optimize_call): Move code to handle_assign.  Call
17299         it for assignments from function calls.
17301 2021-07-15  David Malcolm  <dmalcolm@redhat.com>
17303         PR analyzer/95006
17304         PR analyzer/94713
17305         PR analyzer/94714
17306         * doc/invoke.texi: Add -Wanalyzer-use-of-uninitialized-value.
17308 2021-07-15  David Malcolm  <dmalcolm@redhat.com>
17310         * doc/invoke.texi (-fdump-analyzer-exploded-paths): New.
17312 2021-07-15  Martin Sebor  <msebor@redhat.com>
17314         PR c/101289
17315         PR c/97548
17316         * fold-const.c (operand_compare::operand_equal_p): Handle OEP_DECL_NAME.
17317         (operand_compare::verify_hash_value): Same.
17318         * tree-core.h (OEP_DECL_NAME): New.
17320 2021-07-15  Martin Jambor  <mjambor@suse.cz>
17322         * profile-count.h (profile_count::value): Change the return type to
17323         uint64_t.
17324         * gimple-pretty-print.c (dump_gimple_bb_header): Adjust print
17325         statement.
17326         * tree-cfg.c (dump_function_to_file): Likewise.
17328 2021-07-15  Bill Schmidt  <wschmidt@linux.ibm.com>
17330         PR target/101129
17331         * config/rs6000/rs6000-p8swap.c (has_part_mult): New.
17332         (rs6000_analyze_swaps): Insns containing a subreg of a mult are
17333         not swappable.
17335 2021-07-15  Richard Biener  <rguenther@suse.de>
17337         * tree-vectorizer.h (vect_gen_while): Match up with
17338         vect_gen_while_not.
17339         * tree-vect-stmts.c (vect_gen_while): Adjust API to that
17340         of vect_gen_while_not.
17341         (vect_gen_while_not): Adjust.
17342         * tree-vect-loop-manip.c (vect_set_loop_controls_directly): Likewise.
17344 2021-07-15  Aldy Hernandez  <aldyh@redhat.com>
17346         * gimple-range-cache.cc (non_null_ref::adjust_range): New.
17347         (ranger_cache::range_of_def): Call adjust_range.
17348         (ranger_cache::entry_range): Same.
17349         * gimple-range-cache.h (non_null_ref::adjust_range): New.
17350         * gimple-range.cc (gimple_ranger::range_of_expr): Call
17351         adjust_range.
17352         (gimple_ranger::range_on_entry): Same.
17354 2021-07-15  Tamar Christina  <tamar.christina@arm.com>
17356         Revert:
17357         2021-07-14  Tamar Christina  <tamar.christina@arm.com>
17359         * config/arm/neon.md (<sup>dot_prod<vsi2qi>): Drop statements.
17361 2021-07-15  Tamar Christina  <tamar.christina@arm.com>
17363         Revert:
17364         2021-07-14  Tamar Christina  <tamar.christina@arm.com>
17366         * config/aarch64/aarch64-simd-builtins.def (udot, sdot): Rename to...
17367         (sdot_prod, udot_prod): ...These.
17368         * config/aarch64/aarch64-simd.md (<sur>dot_prod<vsi2qi>): Remove.
17369         (aarch64_<sur>dot<vsi2qi>): Rename to...
17370         (<sur>dot_prod<vsi2qi>): ...This.
17371         * config/aarch64/arm_neon.h (vdot_u32, vdotq_u32, vdot_s32, vdotq_s32):
17372         Update builtins.
17374 2021-07-15  Jakub Jelinek  <jakub@redhat.com>
17376         PR middle-end/101437
17377         * gimplify.c (gimplify_expr): Throw away volatile reads from empty
17378         types even if they have non-BLKmode TYPE_MODE.
17380 2021-07-15  Richard Biener  <rguenther@suse.de>
17382         PR driver/101383
17383         * gcc.c (process_command): Process -gtoggle like process_options
17384         would after parsing options.
17386 2021-07-15  Trevor Saunders  <tbsaunde@tbsaunde.org>
17388         * cfgexpand.c (expand_asm_loc): Adjust.
17389         (expand_asm_stmt): Likewise.
17390         * config/arm/aarch-common-protos.h (arm_md_asm_adjust): Likewise.
17391         * config/arm/aarch-common.c (arm_md_asm_adjust): Likewise.
17392         * config/arm/arm.c (thumb1_md_asm_adjust): Likewise.
17393         * config/avr/avr.c (avr_md_asm_adjust): Likewise.
17394         * config/cris/cris.c (cris_md_asm_adjust): Likewise.
17395         * config/i386/i386.c (ix86_md_asm_adjust): Likewise.
17396         * config/mn10300/mn10300.c (mn10300_md_asm_adjust): Likewise.
17397         * config/nds32/nds32.c (nds32_md_asm_adjust): Likewise.
17398         * config/pdp11/pdp11.c (pdp11_md_asm_adjust): Likewise.
17399         * config/rs6000/rs6000.c (rs6000_md_asm_adjust): Likewise.
17400         * config/s390/s390.c (s390_md_asm_adjust): Likewise.
17401         * config/vax/vax.c (vax_md_asm_adjust): Likewise.
17402         * config/visium/visium.c (visium_md_asm_adjust): Likewise.
17403         * doc/tm.texi: Regenerate.
17404         * target.def: Add location argument to md_asm_adjust.
17406 2021-07-15  Trevor Saunders  <tbsaunde@tbsaunde.org>
17408         * tree-diagnostic.c (diagnostic_report_current_function): Use the
17409         diagnostic's location, not input_location.
17411 2021-07-15  Trevor Saunders  <tbsaunde@tbsaunde.org>
17413         * cfgexpand.c (tree_conflicts_with_clobbers_p): Pass location to
17414         diagnostics.
17415         (expand_asm_stmt): Likewise.
17417 2021-07-14  Peter Bergner  <bergner@linux.ibm.com>
17419         * config/rs6000/rs6000.c (adjacent_mem_locations): Return the lower
17420         addressed memory rtx, if any.
17421         (rs6000_split_multireg_move): Fix code formatting.
17422         Handle MMA build built-ins with operands in adjacent memory locations.
17424 2021-07-14  Peter Bergner  <bergner@linux.ibm.com>
17426         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Move to later
17427         in the file.
17429 2021-07-14  Jason Merrill  <jason@redhat.com>
17431         * sel-sched-ir.h (get_all_loop_exits): Use auto_vec.
17433 2021-07-14  Jason Merrill  <jason@redhat.com>
17435         * doc/invoke.texi: -fdelete-dead-exceptions is on by default for
17436         C++.
17438 2021-07-14  Tamar Christina  <tamar.christina@arm.com>
17440         * tree-vect-patterns.c (vect_recog_dot_prod_pattern):
17441         Remove erroneous line.
17443 2021-07-14  Andrew MacLeod  <amacleod@redhat.com>
17445         * params.opt (param_evrp_mode): Change default.
17447 2021-07-14  Tamar Christina  <tamar.christina@arm.com>
17449         * config/aarch64/aarch64-simd-builtins.def (udot, sdot): Rename to...
17450         (sdot_prod, udot_prod): ...These.
17451         * config/aarch64/aarch64-simd.md (<sur>dot_prod<vsi2qi>): Remove.
17452         (aarch64_<sur>dot<vsi2qi>): Rename to...
17453         (<sur>dot_prod<vsi2qi>): ...This.
17454         * config/aarch64/arm_neon.h (vdot_u32, vdotq_u32, vdot_s32, vdotq_s32):
17455         Update builtins.
17457 2021-07-14  Tamar Christina  <tamar.christina@arm.com>
17459         * config/arm/neon.md (<sup>dot_prod<vsi2qi>): Drop statements.
17461 2021-07-14  Tamar Christina  <tamar.christina@arm.com>
17463         * doc/sourcebuild.texi (arm_v8_2a_i8mm_neon_hw): Document.
17465 2021-07-14  Tamar Christina  <tamar.christina@arm.com>
17467         * config/arm/neon.md (usdot_prod<vsi2qi>): New.
17469 2021-07-14  Tamar Christina  <tamar.christina@arm.com>
17471         * config/aarch64/aarch64-simd.md (aarch64_usdot<vsi2qi>): Rename to...
17472         (usdot_prod<vsi2qi>): ... This.
17473         * config/aarch64/aarch64-simd-builtins.def (usdot): Rename to...
17474         (usdot_prod): ...This.
17475         * config/aarch64/arm_neon.h (vusdot_s32, vusdotq_s32): Likewise.
17476         * config/aarch64/aarch64-sve.md (@aarch64_<sur>dot_prod<vsi2qi>):
17477         Rename to...
17478         (@<sur>dot_prod<vsi2qi>): ...This.
17479         * config/aarch64/aarch64-sve-builtins-base.cc
17480         (svusdot_impl::expand): Use it.
17482 2021-07-14  Tamar Christina  <tamar.christina@arm.com>
17484         * optabs.def (usdot_prod_optab): New.
17485         * doc/md.texi: Document it and clarify other dot prod optabs.
17486         * optabs-tree.h (enum optab_subtype): Add optab_vector_mixed_sign.
17487         * optabs-tree.c (optab_for_tree_code): Support usdot_prod_optab.
17488         * optabs.c (expand_widen_pattern_expr): Likewise.
17489         * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
17490         * tree-vect-loop.c (vectorizable_reduction): Query dot-product kind.
17491         * tree-vect-patterns.c (vect_supportable_direct_optab_p): Take optional
17492         optab subtype.
17493         (vect_widened_op_tree): Optionally ignore
17494         mismatch types.
17495         (vect_recog_dot_prod_pattern): Support usdot_prod_optab.
17497 2021-07-14  H.J. Lu  <hjl.tools@gmail.com>
17499         PR target/101395
17500         * config/i386/driver-i386.c (host_detect_local_cpu): Check
17501         "arch [32|64]" and "tune [32|64]" for 32-bit and 64-bit codegen.
17502         Enable UINTR only for 64-bit codegen.
17503         * config/i386/i386-options.c
17504         (ix86_option_override_internal::DEF_PTA): Skip PTA_UINTR if not
17505         in 64-bit mode.
17506         * config/i386/i386.h (ARCH_ARG): New.
17507         (CC1_CPU_SPEC): Pass "[arch|tune] 32" for 32-bit codegen and
17508         "[arch|tune] 64" for 64-bit codegen.
17510 2021-07-14  Richard Biener  <rguenther@suse.de>
17512         PR tree-optimization/101445
17513         * tree-vect-stmts.c (vectorizable_load): Do the gap adjustment
17514         of the IV in the correct direction for negative stride
17515         accesses.
17517 2021-07-14  Jakub Jelinek  <jakub@redhat.com>
17519         PR go/101407
17520         * godump.c (godump_str_hash): New type.
17521         (godump_container::pot_dummy_types): Use string_hash instead of
17522         ptr_hash in the hash_set.
17524 2021-07-14  Richard Biener  <rguenther@suse.de>
17526         * tree-vect-loop.c (vect_find_reusable_accumulator): Handle
17527         vector types where the old vector type has a multiple of
17528         the new vector type elements.
17529         (vect_create_partial_epilog): New function, split out from...
17530         (vect_create_epilog_for_reduction): ... here.
17531         (vect_transform_cycle_phi): Reduce the re-used accumulator
17532         to the new vector type.
17534 2021-07-14  Alexandre Oliva  <oliva@adacore.com>
17536         * tree-ssa-alias.c (attr_fnspec::verify): Fix index in
17537         non-'t'-sized arg check.
17539 2021-07-14  Alexandre Oliva  <oliva@adacore.com>
17541         * tree-cfg.c (cleanup_dead_labels_eh): Update
17542         post_landing_pad label upon change of landing pad block's
17543         primary label.
17544         (cleanup_dead_labels): Check that a removed label is not that
17545         of a landing pad.
17547 2021-07-13  Jonathan Wright  <jonathan.wright@arm.com>
17549         * combine.c (combine_simplify_rtx): Add vec_select -> subreg
17550         simplification.
17551         * config/aarch64/aarch64.md (*zero_extend<SHORT:mode><GPI:mode>2_aarch64):
17552         Add Neon to general purpose register case for zero-extend
17553         pattern.
17554         * config/arm/vfp.md (*arm_movsi_vfp): Remove "*" from *t -> r
17555         case to prevent some cases opting to go through memory.
17556         * cse.c (fold_rtx): Add vec_select -> subreg simplification.
17557         * rtl.c (rtvec_series_p): Define predicate to determine
17558         whether a vector contains a linear series of integers.
17559         * rtl.h (rtvec_series_p): Define.
17560         * rtlanal.c (vec_series_lowpart_p): Define predicate to
17561         determine if a vector selection is equivalent to the low part
17562         of the vector.
17563         * rtlanal.h (vec_series_lowpart_p): Define.
17564         * simplify-rtx.c (simplify_context::simplify_binary_operation_1):
17565         Add vec_select -> subreg simplification.
17567 2021-07-13  Paul A. Clarke  <pc@us.ibm.com>
17569         * config/rs6000/smmintrin.h (_mm_testz_si128, _mm_testc_si128,
17570         _mm_testnzc_si128, _mm_test_all_ones, _mm_test_all_zeros,
17571         _mm_test_mix_ones_zeros): New.
17573 2021-07-13  Roger Sayle  <roger@nextmovesoftware.com>
17574             Richard Biener  <rguenther@suse.de>
17576         * gimple.c (gimple_could_trap_p_1):  Make S argument a
17577         "const gimple*".  Preserve constness in call to
17578         gimple_asm_volatile_p.
17579         (gimple_could_trap_p): Make S argument a "const gimple*".
17580         * gimple.h (gimple_could_trap_p_1, gimple_could_trap_p):
17581         Update function prototypes.
17583 2021-07-13  Richard Sandiford  <richard.sandiford@arm.com>
17585         * tree-vectorizer.h (vect_reusable_accumulator): New structure.
17586         (_loop_vec_info::main_loop_edge): New field.
17587         (_loop_vec_info::skip_main_loop_edge): Likewise.
17588         (_loop_vec_info::skip_this_loop_edge): Likewise.
17589         (_loop_vec_info::reusable_accumulators): Likewise.
17590         (_stmt_vec_info::reduc_scalar_results): Likewise.
17591         (_stmt_vec_info::reused_accumulator): Likewise.
17592         (vect_get_main_loop_result): Declare.
17593         * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
17594         reduc_scalar_inputs.
17595         (vec_info::free_stmt_vec_info): Free reduc_scalar_inputs.
17596         * tree-vect-loop-manip.c (vect_get_main_loop_result): New function.
17597         (vect_do_peeling): Fill an epilogue loop's main_loop_edge,
17598         skip_main_loop_edge and skip_this_loop_edge fields.
17599         * tree-vect-loop.c (INCLUDE_ALGORITHM): Define.
17600         (vect_emit_reduction_init_stmts): New function.
17601         (get_initial_def_for_reduction): Use it.
17602         (get_initial_defs_for_reduction): Likewise.  Change the vinfo
17603         parameter to a loop_vec_info.
17604         (vect_create_epilog_for_reduction): Store the scalar results
17605         in the reduc_info.  If an epilogue loop is reusing an accumulator
17606         from the main loop, and if the epilogue loop can also be skipped,
17607         try to place the reduction code in the join block.  Record
17608         accumulators that could potentially be reused by epilogue loops.
17609         (vect_transform_cycle_phi): When vectorizing epilogue loops,
17610         try to reuse accumulators from the main loop.  Record the initial
17611         value in reduc_info for non-SLP reductions too.
17613 2021-07-13  Richard Sandiford  <richard.sandiford@arm.com>
17615         * tree-vect-loop.c (get_initial_def_for_reduction): Remove
17616         adjustment handling.  Take the neutral value as an argument,
17617         in place of the code argument.
17618         (vect_transform_cycle_phi): Update accordingly.  Handle the
17619         initial values of cond reductions separately from code reductions.
17620         Choose the adjustment here rather than in
17621         get_initial_def_for_reduction.  Sink the splat of vec_initial_def.
17623 2021-07-13  Richard Sandiford  <richard.sandiford@arm.com>
17625         * tree-vect-loop.c (neutral_op_for_slp_reduction): Replace with...
17626         (neutral_op_for_reduction): ...this, providing a more general
17627         interface.
17628         (vect_create_epilog_for_reduction): Update accordingly.
17629         (vectorizable_reduction): Likewise.
17630         (vect_transform_cycle_phi): Likewise.
17632 2021-07-13  Richard Sandiford  <richard.sandiford@arm.com>
17634         * tree-vect-loop.c (get_initial_def_for_reduction): Take the
17635         reduc_info instead of the original stmt_vec_info.
17636         (vect_transform_cycle_phi): Update accordingly.
17638 2021-07-13  Richard Sandiford  <richard.sandiford@arm.com>
17640         * tree-vect-loop.c (get_initial_defs_for_reduction): Take the
17641         reduc_info as an additional parameter.
17642         (vect_transform_cycle_phi): Update accordingly.
17644 2021-07-13  Richard Sandiford  <richard.sandiford@arm.com>
17646         * tree-vectorizer.h: Include tree-ssa-operands.h.
17647         (vect_phi_initial_value): New function.
17648         * tree-vect-loop.c (neutral_op_for_slp_reduction): Use it.
17649         (get_initial_defs_for_reduction, info_for_reduction): Likewise.
17650         (vect_create_epilog_for_reduction, vectorizable_reduction): Likewise.
17651         (vect_transform_cycle_phi, vectorizable_induction): Likewise.
17653 2021-07-13  Richard Sandiford  <richard.sandiford@arm.com>
17655         * tree-vect-loop.c (vect_create_epilog_for_reduction): Convert
17656         the phi results to vectype after creating them.  Remove later
17657         conversion code that thus becomes redundant.
17659 2021-07-13  Richard Sandiford  <richard.sandiford@arm.com>
17661         * tree-vect-loop.c (vect_create_epilog_for_reduction): Replace
17662         the new_phis vector with a reduc_inputs vector.  Combine handling
17663         of reduction chains and ncopies > 1.
17665 2021-07-13  Richard Sandiford  <richard.sandiford@arm.com>
17667         * tree-vect-loop.c (vect_create_epilog_for_reduction): Truncate
17668         scalar_results to group_size elements after reducing down from
17669         N*group_size elements.  Construct an array_slice of the live-out
17670         stmts and assert that there is one stmt per scalar result.
17672 2021-07-13  Richard Sandiford  <richard.sandiford@arm.com>
17674         * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
17675         nested_in_vect_loop and use double_reduc everywhere.  Remove dead
17676         assignment to "loop".
17678 2021-07-13  Richard Sandiford  <richard.sandiford@arm.com>
17680         * internal-fn.c (vectorized_internal_fn_supported_p): Handle
17681         vector types first.  For scalar types, consider both the preferred
17682         vector mode and the alternative vector modes.
17683         * optabs-query.c (can_vec_mask_load_store_p): Use the same
17684         structure as above, in particular using related_vector_mode
17685         for modes provided by autovectorize_vector_modes.
17687 2021-07-13  Jakub Jelinek  <jakub@redhat.com>
17688             Richard Biener  <rguenther@suse.de>
17690         PR tree-optimization/101419
17691         * tree-pass.h (PROP_objsz): Define.
17692         (make_pass_early_object_sizes): Declare.
17693         * passes.def (pass_all_early_optimizations): Rename pass_object_sizes
17694         there to pass_early_object_sizes, drop parameter.
17695         (pass_all_optimizations): Move pass_object_sizes right after pass_ccp,
17696         drop parameter, move pass_post_ipa_warn right after that.
17697         * tree-object-size.c (pass_object_sizes::execute): Rename to...
17698         (object_sizes_execute): ... this.  Add insert_min_max_p argument.
17699         (pass_data_object_sizes): Move after object_sizes_execute.
17700         (pass_object_sizes): Likewise.  In execute method call
17701         object_sizes_execute, drop set_pass_param method and insert_min_max_p
17702         non-static data member and its initializer in the ctor.
17703         (pass_data_early_object_sizes, pass_early_object_sizes,
17704         make_pass_early_object_sizes): New.
17705         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use
17706         (cfun->curr_properties & PROP_objsz) instead of cfun->after_inlining.
17708 2021-07-13  Kito Cheng  <kito.cheng@sifive.com>
17710         PR target/101275
17711         * config/riscv/constraints.md ("S"): Update description and remove
17712         @internal.
17713         * doc/md.texi (Machine Constraints): Document the 'S' constraints
17714         for RISC-V.
17716 2021-07-13  Richard Biener  <rguenther@suse.de>
17718         Revert:
17719         2021-07-12  Richard Biener  <rguenther@suse.de>
17721         * tree-vect-slp.c (vect_slp_region): Show the number of
17722         SLP graph entries in the optimization message.
17724 2021-07-13  Michael Meissner  <meissner@linux.ibm.com>
17726         * config/rs6000/altivec.md (xxspltiw_v4sf): Change local variable
17727         value to to long.
17728         * config/rs6000/rs6000-protos.h (rs6000_const_f32_to_i32): Change
17729         return type to long.
17730         * config/rs6000/rs6000.c (rs6000_const_f32_to_i32): Change return
17731         type to long.
17733 2021-07-12  Andrew MacLeod  <amacleod@redhat.com>
17735         * gimple-range-fold.cc (fold_using_range::range_of_builtin_ubsan_call):
17736         Query relation between the 2 operands and use it.
17738 2021-07-12  Sergei Trofimovich  <siarheit@google.com>
17740         * doc/cfg.texi: Fix s/ei_safe_safe/ei_safe_edge/ typo.
17742 2021-07-12  Uroš Bizjak  <ubizjak@gmail.com>
17744         PR target/101424
17745         * config/i386/predicates.md (vec_setm_sse41_operand):
17746         Rename from vec_setm_operand.
17747         (vec_setm_avx2_operand): New predicate.
17748         * config/i386/sse.md (vec_set<V_128:mode>): Use V_128 mode iterator.
17749         Use vec_setm_sse41_operand as operand 2 predicate.
17750         (vec_set<V_256_512:mode): New expander.
17751         * config/i386/mmx.md (vec_setv2hi): Use vec_setm_sse41_operand
17752         as operand 2 predicate.
17754 2021-07-12  Andrew MacLeod  <amacleod@redhat.com>
17756         PR tree-optimization/101335
17757         * range-op.cc (operator_cast::lhs_op1_relation): Delete.
17759 2021-07-12  Andrew Pinski  <apinski@marvell.com>
17761         * tree-ssa-phiopt.c (match_simplify_replacement): Move
17762         insert of the sequence before the movement of the
17763         statement. Check if to see if the statement is used
17764         outside of the original phi to see if we should move it.
17766 2021-07-12  Richard Biener  <rguenther@suse.de>
17768         * dump-context.h (debug_dump_context::debug_dump_context):
17769         Add FILE * parameter defaulted to stderr.
17770         * dumpfile.c (debug_dump_context::debug_dump_context): Adjust.
17771         * tree-vect-slp.c (dot_slp_tree): New functions.
17773 2021-07-12  Richard Biener  <rguenther@suse.de>
17775         PR tree-optimization/101373
17776         * tree-ssa-pre.c (prune_clobbered_mems): Also prune trapping
17777         references when the BB may not return.
17778         (compute_avail): Pass in the function we're working on and
17779         replace cfun references with it.  Externally throwing
17780         const calls also possibly terminate the function.
17781         (pass_pre::execute): Pass down the function we're working on.
17782         * gcse.c (compute_hash_table_work): Externally throwing
17783         const/pure calls also need record_last_mem_set_info.
17784         * postreload-gcse.c (record_opr_changes): Looping or externally
17785         throwing const/pure calls also need record_last_mem_set_info.
17787 2021-07-12  Uroš Bizjak  <ubizjak@gmail.com>
17789         * recog.c (memory_address_addr_space_p): Change the type to bool.
17790         Return true/false instead of 1/0.
17791         (offsettable_memref_p): Ditto.
17792         (offsettable_nonstrict_memref_p): Ditto.
17793         (offsettable_address_addr_space_p): Ditto.
17794         Change the type of addressp indirect function to bool.
17795         * recog.h (memory_address_addr_space_p): Change the type to bool.
17796         (strict_memory_address_addr_space_p): Ditto.
17797         (offsettable_memref_p): Ditto.
17798         (offsettable_nonstrict_memref_p): Ditto.
17799         (offsettable_address_addr_space_p): Ditto.
17800         * reload.c (maybe_memory_address_addr_space_p): Ditto.
17801         (strict_memory_address_addr_space_p): Change the type to bool.
17802         Return true/false instead of 1/0.
17803         (maybe_memory_address_addr_space_p): Change the type to bool.
17805 2021-07-12  Richard Biener  <rguenther@suse.de>
17807         * tree-vect-slp.c (vect_slp_region): Show the number of
17808         SLP graph entries in the optimization message.
17810 2021-07-12  Richard Biener  <rguenther@suse.de>
17812         PR tree-optimization/101394
17813         * tree-ssa-pre.c (do_pre_regular_insertion): Avoid inserting
17814         copies from abnormals for a full redundancy.
17816 2021-07-12  Richard Biener  <rguenther@suse.de>
17818         PR middle-end/101423
17819         * gimple.c (gimple_could_trap_p_1): Internal function calls
17820         do not trap.
17821         * tree-eh.c (tree_could_trap_p): Likewise.
17823 2021-07-12  prathamesh.kulkarni  <prathamesh.kulkarni@linaro.org>
17825         PR target/66791
17826         * config/arm/arm_neon.h (vmul_n_u32): Replace call to builtin with
17827         __a * __b.
17828         (vmulq_n_u32): Likewise.
17829         (vmul_n_f32): Gate __a * __b on __FAST_MATH__.
17830         (vmulq_n_f32): Likewise.
17831         (vmul_n_f16): Likewise.
17832         (vmulq_n_f16): Likewise.
17834 2021-07-12  Martin Liska  <mliska@suse.cz>
17836         PR sanitizer/101425
17837         * gcc.c (check_offload_target_name): Call
17838           candidates_list_and_hint only if we have a candidate.
17840 2021-07-12  prathamesh.kulkarni  <prathamesh.kulkarni@linaro.org>
17842         PR target/98435
17843         * config/arm/neon.md (vec_init): Move to ...
17844         * config/arm/vec-common.md (vec_init): ... here.
17845         Change the pattern's mode to VDQX and gate it on VALID_MVE_MODE.
17847 2021-07-12  Roger Sayle  <roger@nextmovesoftware.com>
17849         PR tree-optimization/101403
17850         * match.pd ((T)bswap(X)>>C): Correctly handle cases where
17851         signedness of the shift is not the same as the signedness of
17852         the type extension.
17854 2021-07-09  Roger Sayle  <roger@nextmovesoftware.com>
17855             Uroš Bizjak  <ubizjak@gmail.com>
17857         * config/i386/i386.md (*divmodsi4_const): Optimize SImode
17858         divmod of a constant numerator with new define_insn_and_split.
17860 2021-07-09  Iain Sandoe  <iain@sandoe.co.uk>
17862         PR target/100152
17863         * config/i386/i386-expand.c (ix86_expand_call): If a call is
17864         to a non-local-binding, or local but to a public symbol, then
17865         assume that it might be indirected via the lazy symbol binder.
17866         Mark R10 and R10 as clobbered in that case.
17868 2021-07-09  Eric Botcazou  <ebotcazou@adacore.com>
17870         PR target/101377
17871         * gcc.c (ASM_DEBUG_DWARF_OPTION): Set again to --gdwarf2 in
17872         the case where HAVE_AS_WORKING_DWARF_N_FLAG is not defined
17873         and HAVE_LD_BROKEN_PE_DWARF5 is defined.
17875 2021-07-09  Uroš Bizjak  <ubizjak@gmail.com>
17877         * config/i386/i386.md (*udivmodsi4_pow2_zext_1): Limit the
17878         log2 range of operands[3] to [1,31].
17879         (*udivmodsi4_pow2_zext_2): Ditto.  Correct insn RTX pattern.
17881 2021-07-09  Sergei Trofimovich  <siarheit@google.com>
17883         * doc/md.texi: Don't split @smallexample in multiple @groups.
17885 2021-07-09  Sergei Trofimovich  <siarheit@google.com>
17887         * doc/md.texi: Add missing 'see' word.
17889 2021-07-09  Andrew Pinski  <apinski@marvell.com>
17891         * tree-ssa-phiopt.c (phiopt_early_allow): Change arguments
17892         to take sequence and gimple_match_op.  Accept the case where
17893         op is a SSA_NAME and one statement in the sequence.
17894         Also allow constants.
17895         (gimple_simplify_phiopt): Always pass a sequence to resimplify.
17896         Update call to phiopt_early_allow.  Discard the sequence if not
17897         used.
17899 2021-07-09  Xi Ruoyao  <xry111@mengyan1223.wang>
17901         PR target/100760
17902         PR target/100761
17903         PR target/100762
17904         * config/mips/mips.c (mips_const_insns): Use MSA_SUPPORTED_MODE_P
17905         instead of ISA_HAS_MSA.
17906         (mips_expand_vec_unpack): Likewise.
17907         (mips_expand_vector_init): Likewise.
17909 2021-07-09  Kewen Lin  <linkw@linux.ibm.com>
17911         * config/rs6000/vsx.md (mods_<mode>): Rename to...
17912         (mod<mode>3): ... this.
17913         (modu_<mode>): Rename to...
17914         (umod<mode>3): ... this.
17915         * config/rs6000/rs6000-builtin.def (MODS_V2DI, MODS_V4SI, MODU_V2DI,
17916         MODU_V4SI): Adjust.
17918 2021-07-08  Jeff Law  <jeffreyalaw@gmail.com>
17920         * config/h8300/shiftrotate.md (variable shifts): Expose condition
17921         code handling for the test before the loop.
17923 2021-07-08  Martin Jambor  <mjambor@suse.cz>
17925         PR ipa/101066
17926         * ipa-sra.c (class isra_call_summary): New member
17927         m_before_any_store, initialize it in the constructor.
17928         (isra_call_summary::dump): Dump the new field.
17929         (ipa_sra_call_summaries::duplicate): Copy it.
17930         (process_scan_results): Set it.
17931         (isra_write_edge_summary): Stream it.
17932         (isra_read_edge_summary): Likewise.
17933         (param_splitting_across_edge): Only override
17934         safe_to_import_accesses if m_before_any_store is set.
17936 2021-07-08  Martin Sebor  <msebor@redhat.com>
17938         PR bootstrap/101374
17939         * gimple-array-bounds.cc (array_bounds_checker::check_mem_ref):
17940         Use Object Size Type 0 instead of 1.
17942 2021-07-08  Richard Sandiford  <richard.sandiford@arm.com>
17944         * tree-vect-loop.c (vectorizable_reduction): Remove always-true
17945         if condition.
17947 2021-07-08  Richard Sandiford  <richard.sandiford@arm.com>
17949         * match.pd: Simplify an extend-operate-truncate sequence involving
17950         a POLY_INT_CST.
17952 2021-07-08  Roger Sayle  <roger@nextmovesoftware.com>
17953             Richard Biener  <rguenther@suse.de>
17955         PR tree-optimization/40210
17956         * match.pd (bswap optimizations): Simplify (bswap(x)>>C1)&C2 as
17957         (x>>C3)&C2 when possible.  Simplify bswap(x)>>C1 as ((T)x)>>C2
17958         when possible.  Simplify bswap(x)&C1 as (x>>C2)&C1 when 0<=C1<=255.
17960 2021-07-08  Uroš Bizjak  <ubizjak@gmail.com>
17962         PR target/100637
17963         * config/i386/i386-expand.c (ix86_expand_sse_unpack):
17964         Handle V4QI mode.
17965         * config/i386/mmx.md (V_32): New mode iterator.
17966         (mov<V_32:mode>): Use V_32 mode iterator.
17967         (*mov<V_32:mode>_internal): Ditto.
17968         (*push<V_32:mode>2_rex64): Ditto.
17969         (*push<V_32:mode>2): Ditto.
17970         (movmisalign<V_32:mode>): Ditto.
17971         (mmx_<any_shiftrt:insn>v1si3): New insn pattern.
17972         (sse4_1_<any_extend:code>v2qiv2hi2): Ditto.
17973         (vec_unpacks_lo_v4qi): New expander.
17974         (vec_unpacks_hi_v4qi): Ditto.
17975         (vec_unpacku_lo_v4qi): Ditto.
17976         (vec_unpacku_hi_v4qi): Ditto.
17977         * config/i386/i386.h (VALID_SSE2_REG_MODE): Add V1SImode.
17978         (VALID_INT_MODE_P): Ditto.
17980 2021-07-08  Michael Meissner  <meissner@linux.ibm.com>
17982         PR target/100809
17983         * config/rs6000/rs6000.md (udivti3): New insn.
17984         (divti3): New insn.
17985         (umodti3): New insn.
17986         (modti3): New insn.
17988 2021-07-07  Martin Sebor  <msebor@redhat.com>
17990         PR tree-optimization/100137
17991         PR tree-optimization/99121
17992         PR tree-optimization/97027
17993         * builtins.c (access_ref::access_ref): Also set offmax.
17994         (access_ref::offset_in_range): Define new function.
17995         (access_ref::add_offset): Set offmax.
17996         (access_ref::inform_access): Handle access_none.
17997         (handle_mem_ref): Clear ostype.
17998         (compute_objsize_r): Handle ASSERT_EXPR.
17999         * builtins.h (struct access_ref): Add offmax member.
18000         * gimple-array-bounds.cc (array_bounds_checker::check_mem_ref): Use
18001         compute_objsize() and simplify.
18003 2021-07-07  Peter Bergner  <bergner@linux.ibm.com>
18005         * config/rs6000/rs6000-call.c (mma_init_builtins): Use VSX_BUILTIN_LXVP
18006         and VSX_BUILTIN_STXVP.
18008 2021-07-07  Martin Sebor  <msebor@redhat.com>
18010         PR target/101363
18011         * config/aarch64/aarch64.c (aarch64_simd_lane_bounds): Remove
18012         a stray %K from error_at() missed in r12-2088.
18014 2021-07-07  Richard Biener  <rguenther@suse.de>
18016         PR tree-optimization/99728
18017         * tree-ssa-loop-im.c (gather_mem_refs_stmt): Record
18018         aggregate copies.
18019         (mem_refs_may_alias_p): Add assert we handled aggregate
18020         copies elsewhere.
18021         (sm_seq_valid_bb): Give up when running into aggregate copies.
18022         (ref_indep_loop_p): Handle aggregate copies as never
18023         being invariant themselves but allow other refs to be
18024         disambiguated against them.
18025         (can_sm_ref_p): Do not try to apply store-motion to aggregate
18026         copies.
18028 2021-07-06  Indu Bhagat  <indu.bhagat@oracle.com>
18030         PR debug/101283
18031         * dwarf2ctf.c (ctf_get_AT_data_member_location): Multiply by 8 to get
18032         number of bits.
18034 2021-07-06  Martin Sebor  <msebor@redhat.com>
18036         * gimple-pretty-print.c (percent_G_format): Remove.
18037         * tree-diagnostic.c (default_tree_printer): Remove calls.
18038         * tree-pretty-print.c (percent_K_format): Remove.
18039         * tree-pretty-print.h (percent_K_format): Remove.
18041 2021-07-06  Martin Sebor  <msebor@redhat.com>
18043         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
18044         Remove %K and use error_at.
18045         (aarch64_expand_fcmla_builtin): Same.
18046         (aarch64_expand_builtin_tme): Same.
18047         (aarch64_expand_builtin_memtag): Same.
18048         * config/arm/arm-builtins.c (arm_expand_acle_builtin): Same.
18049         (arm_expand_builtin): Same.
18050         * config/arm/arm.c (bounds_check): Same.
18052 2021-07-06  Martin Sebor  <msebor@redhat.com>
18054         * builtins.c (warn_string_no_nul): Remove %G.
18055         (maybe_warn_for_bound): Same.
18056         (warn_for_access): Same.
18057         (check_access): Same.
18058         (check_strncat_sizes): Same.
18059         (expand_builtin_strncat): Same.
18060         (expand_builtin_strncmp): Same.
18061         (expand_builtin): Same.
18062         (expand_builtin_object_size): Same.
18063         (warn_dealloc_offset): Same.
18064         (maybe_emit_free_warning): Same.
18065         * calls.c (maybe_warn_alloc_args_overflow): Same.
18066         (maybe_warn_nonstring_arg): Same.
18067         (maybe_warn_rdwr_sizes): Same.
18068         * expr.c (expand_expr_real_1): Remove %K.
18069         * gimple-fold.c (gimple_fold_builtin_strncpy): Remove %G.
18070         (gimple_fold_builtin_strncat): Same.
18071         * gimple-ssa-sprintf.c (format_directive): Same.
18072         (handle_printf_call): Same.
18073         * gimple-ssa-warn-alloca.c (pass_walloca::execute): Same.
18074         * gimple-ssa-warn-restrict.c (maybe_diag_overlap): Same.
18075         (maybe_diag_access_bounds): Same.  Call gimple_location.
18076         (check_bounds_or_overlap): Same.
18077         * trans-mem.c (ipa_tm_scan_irr_block): Remove %K.  Simplify.
18078         * tree-ssa-ccp.c (pass_post_ipa_warn::execute): Remove %G.
18079         * tree-ssa-strlen.c (maybe_warn_overflow): Same.
18080         (maybe_diag_stxncpy_trunc): Same.
18081         (handle_builtin_stxncpy_strncat): Same.
18082         (maybe_warn_pointless_strcmp): Same.
18083         * tree-ssa-uninit.c (maybe_warn_operand): Same.
18085 2021-07-06  Uroš Bizjak  <ubizjak@gmail.com>
18087         PR target/97194
18088         * config/i386/predicates.md (vec_setm_operand): Enable
18089         register_operand for TARGET_SSE4_1.
18090         * config/i386/mmx.md (vec_setv2hi): Use vec_setm_operand
18091         as operand 2 predicate.  Call ix86_expand_vector_set_var
18092         for non-constant index operand.
18093         (vec_setv4qi): Use vec_setm_mmx_operand as operand 2 predicate.
18094         Call ix86_expand_vector_set_var for non-constant index operand.
18096 2021-07-06  Jeff Law  <jeffreyalaw@gmail.com>
18098         * config/h8300/jumpcall.md (*branch): When possible, generate
18099         the comparison in CCZN mode.
18100         * config/h8300/predicates.md (simple_memory_operand): Reject all
18101         auto-increment addressing modes.
18103 2021-07-06  Iain Sandoe  <iain@sandoe.co.uk>
18105         PR bootstrap/100246
18106         * config/i386/i386.h (struct stringop_algs): Define a CTOR for
18107         this type.
18109 2021-07-06  Richard Biener  <rguenther@suse.de>
18111         * doc/md.texi (vec_fmaddsub<mode>4): Document.
18112         (vec_fmsubadd<mode>4): Likewise.
18113         * optabs.def (vec_fmaddsub$a4): Add.
18114         (vec_fmsubadd$a4): Likewise.
18115         * internal-fn.def (IFN_VEC_FMADDSUB): Add.
18116         (IFN_VEC_FMSUBADD): Likewise.
18117         * tree-vect-slp-patterns.c (addsub_pattern::recognize):
18118         Refactor to handle IFN_VEC_FMADDSUB and IFN_VEC_FMSUBADD.
18119         (addsub_pattern::build): Likewise.
18120         * tree-vect-slp.c (vect_optimize_slp): CFN_VEC_FMADDSUB
18121         and CFN_VEC_FMSUBADD are not transparent for permutes.
18122         * config/i386/sse.md (vec_fmaddsub<mode>4): New expander.
18123         (vec_fmsubadd<mode>4): Likewise.
18125 2021-07-06  Richard Biener  <rguenther@suse.de>
18127         * doc/invoke.texi (fmove-loop-stores): Document.
18128         * common.opt (fmove-loop-stores): New option.
18129         * opts.c (default_options_table): Enable -fmove-loop-stores
18130         at -O1 but not -Og.
18131         * tree-ssa-loop-im.c (pass_lim::execute): Pass
18132         flag_move_loop_stores instead of true to
18133         loop_invariant_motion_in_fun.
18135 2021-07-06  Iain Sandoe  <iain@sandoe.co.uk>
18137         * doc/install.texi: Document --with-dsymutil.
18139 2021-07-06  Andrew Pinski  <apinski@marvell.com>
18141         PR tree-optimization/101256
18142         * dbgcnt.def (phiopt_edge_range): New counter.
18143         * tree-ssa-phiopt.c (replace_phi_edge_with_variable):
18144         Check to make sure the new name is defined in the same
18145         bb as the conditional before duplicating range info.
18146         Also add debug counter.
18148 2021-07-06  Kewen Lin  <linkw@linux.ibm.com>
18150         PR rtl-optimization/100328
18151         * config/i386/i386-options.c (ix86_option_override_internal):
18152         Set param_ira_consider_dup_in_all_alts to 0.
18154 2021-07-06  Kewen Lin  <linkw@linux.ibm.com>
18156         PR rtl-optimization/100328
18157         * doc/invoke.texi (ira-consider-dup-in-all-alts): Document new
18158         parameter.
18159         * ira.c (ira_get_dup_out_num): Adjust as parameter
18160         param_ira_consider_dup_in_all_alts.
18161         * params.opt (ira-consider-dup-in-all-alts): New.
18162         * ira-conflicts.c (process_regs_for_copy): Add one parameter
18163         single_input_op_has_cstr_p.
18164         (get_freq_for_shuffle_copy): New function.
18165         (add_insn_allocno_copies): Adjust as single_input_op_has_cstr_p.
18166         * ira-int.h (ira_get_dup_out_num): Add one bool parameter.
18168 2021-07-05  Jeff Law  <jeffreyalaw@gmail.com>
18170         * config/h8300/shiftrotate.md (shift-by-variable patterns): Update to
18171         generate condition code aware RTL directly.
18173 2021-07-05  Andrew Pinski  <apinski@marvell.com>
18175         PR tree-optimization/101039
18176         * match.pd (A CMP 0 ? A : -A): New patterns.
18177         * tree-ssa-phiopt.c (abs_replacement): Delete function.
18178         (tree_ssa_phiopt_worker): Don't call abs_replacement.
18179         Update comment about abs_replacement.
18181 2021-07-05  Andrew Pinski  <apinski@marvell.com>
18183         * tree-ssa-phiopt.c (gimple_simplify_phiopt):
18184         If "A ? B : C" fails to simplify, try "(!A) ? C : B".
18186 2021-07-05  Andrew Pinski  <apinski@marvell.com>
18188         * tree-ssa-phiopt.c (match_simplify_replacement):
18189         Add early_p argument. Call gimple_simplify_phiopt
18190         instead of gimple_simplify.
18191         (tree_ssa_phiopt_worker): Update call to
18192         match_simplify_replacement and allow unconditionally.
18193         (phiopt_early_allow): New function.
18194         (gimple_simplify_phiopt): New function.
18196 2021-07-05  Andrew Pinski  <apinski@marvell.com>
18198         PR middle-end/101237
18199         * fold-const.c (negate_expr_p): Remove call to element_mode
18200         and TREE_MODE/TREE_TYPE when calling HONOR_SIGNED_ZEROS,
18201         HONOR_SIGN_DEPENDENT_ROUNDING, and HONOR_SNANS.
18202         (fold_negate_expr_1): Likewise.
18203         (const_unop): Likewise.
18204         (fold_cond_expr_with_comparison): Likewise.
18205         (fold_binary_loc): Likewise.
18206         (fold_ternary_loc): Likewise.
18207         (tree_call_nonnegative_warnv_p): Likewise.
18208         * match.pd (-(A + B) -> (-B) - A): Likewise.
18210 2021-07-05  Iain Sandoe  <iain@sandoe.co.uk>
18212         * configure.ac: Handle --with-dsymutil in the same way as we
18213         do for the assembler and linker.  (DEFAULT_DSYMUTIL): New.
18214         Extract the type and version for the dsymutil configured or
18215         found by the default searches.
18216         * config.in: Regenerated.
18217         * configure: Regenerated.
18218         * collect2.c (do_dsymutil): Handle locating dsymutil in the
18219         same way as for the assembler and  linker.
18220         * config/darwin.h (DSYMUTIL): Delete.
18221         * gcc.c: Report a configured dsymutil correctly.
18222         * exec-tool.in: Allow for dsymutil.
18224 2021-07-05  Uroš Bizjak  <ubizjak@gmail.com>
18226         * config/i386/i386-expand.c (ix86_split_mmx_punpck):
18227         Handle V4QI and V2HI modes.
18228         (expand_vec_perm_blend): Allow 4-byte vector modes with TARGET_SSE4_1.
18229         Handle V4QI mode. Emit mmx_pblendvb32 for 4-byte modes.
18230         (expand_vec_perm_pshufb): Rewrite to use switch statemets.
18231         Handle 4-byte dual operands with TARGET_XOP and single operands
18232         with TARGET_SSSE3.  Emit mmx_ppermv32 for TARGET_XOP and
18233         mmx_pshufbv4qi3 for TARGET_SSSE3.
18234         (expand_vec_perm_pblendv): Allow 4-byte vector modes with TARGET_SSE4_1.
18235         (expand_vec_perm_interleave2): Allow 4-byte vector modes.
18236         (expand_vec_perm_pshufb2): Allow 4-byte vector modes with TARGET_SSSE3.
18237         (expand_vec_perm_even_odd_1): Handle V4QI mode.
18238         (expand_vec_perm_broadcast_1): Handle V4QI mode.
18239         (ix86_vectorize_vec_perm_const): Handle V4QI mode.
18240         * config/i386/mmx.md (mmx_ppermv32): New insn pattern.
18241         (mmx_pshufbv4qi3): Ditto.
18242         (*mmx_pblendw32): Ditto.
18243         (*mmx_pblendw64): Rename from *mmx_pblendw.
18244         (mmx_punpckhbw_low): New insn_and_split pattern.
18245         (mmx_punpcklbw_low): Ditto.
18247 2021-07-05  Richard Biener  <rguenther@suse.de>
18249         * tree-vect-loop-manip.c (vect_loop_versioning): Do not
18250         set LOOP_C_INFINITE on the vectorized loop.
18252 2021-07-05  Richard Biener  <rguenther@suse.de>
18254         PR middle-end/101291
18255         * cfgloopmanip.c (loop_version): Set the loop copy of the
18256         versioned loop to the new loop.
18258 2021-07-04  Iain Sandoe  <iain@sandoe.co.uk>
18260         PR target/100269
18261         * config.gcc: Ensure that Darwin biarch definitions are
18262         added before i386.h.
18263         * config/i386/darwin.h (TARGET_64BIT): Remove.
18264         (PR80556_WORKAROUND): New.
18265         (REAL_LIBGCC_SPEC): Amend to use PR80556_WORKAROUND.
18266         (DARWIN_SUBARCH_SPEC): New.
18267         * config/i386/darwin32-biarch.h (TARGET_64BIT_DEFAULT,
18268         TARGET_BI_ARCH, PR80556_WORKAROUND): New.
18269         (REAL_LIBGCC_SPEC): Remove.
18270         * config/i386/darwin64-biarch.h (TARGET_64BIT_DEFAULT,
18271         TARGET_BI_ARCH, PR80556_WORKAROUND): New.
18272         (REAL_LIBGCC_SPEC): Remove.
18274 2021-07-03  H.J. Lu  <hjl.tools@gmail.com>
18276         PR middle-end/101294
18277         * expr.c (store_constructor): Don't use vec_duplicate on vector.
18279 2021-07-02  Martin Sebor  <msebor@redhat.com>
18281         PR middle-end/98871
18282         PR middle-end/98512
18283         * diagnostic.c (get_any_inlining_info): New.
18284         (update_effective_level_from_pragmas): Handle inlining context.
18285         (diagnostic_enabled): Same.
18286         (diagnostic_report_diagnostic): Same.
18287         * diagnostic.h (struct diagnostic_info): Add ctor.
18288         (struct diagnostic_context): Add new member.
18289         * tree-diagnostic.c (set_inlining_locations): New.
18290         (tree_diagnostics_defaults): Set new callback pointer.
18292 2021-07-02  Peter Bergner  <bergner@linux.ibm.com>
18294         * config/rs6000/rs6000-builtin.def (BU_MMA_PAIR_LD, BU_MMA_PAIR_ST):
18295         New macros.
18296         (__builtin_vsx_lxvp, __builtin_vsx_stxvp): New built-ins.
18297         * config/rs6000/rs6000-call.c (rs6000_gimple_fold_mma_builtin): Expand
18298         lxvp and stxvp built-ins.
18299         (mma_init_builtins): Handle lxvp and stxvp built-ins.
18300         (builtin_function_type): Likewise.
18301         * doc/extend.texi (__builtin_vsx_lxvp, __builtin_mma_stxvp): Document.
18303 2021-07-02  Jeff Law  <jeffreyalaw@gmail.com>
18305         * config/h8300/h8300-protos.h (compute_a_shift_cc): Accept
18306         additional argument for the code.
18307         * config/h8300/h8300.c (compute_a_shift_cc): Accept additional
18308         argument for the code.  Just return if the ZN bits are useful or
18309         not rather than the old style CC_* enums.
18310         * config/h8300/shiftrotate.md (shiftqi_noscratch): Move before
18311         more generic shiftqi patterns.
18312         (shifthi_noscratch, shiftsi_noscratch): Similarly.
18313         (shiftqi_noscratch_set_flags): New pattern.
18314         (shifthi_noscratch_set_flags, shiftsi_noscratch_set_flags): Likewise.
18316 2021-07-02  Andrew MacLeod  <amacleod@redhat.com>
18318         PR tree-optimization/101223
18319         * range-op.cc (build_lt): Add -1 for signed values.
18320         (built_gt): Subtract -1 for signed values.
18322 2021-07-02  David Faust  <david.faust@oracle.com>
18324         * btfout.c (get_btf_kind): Support BTF_KIND_FLOAT.
18325         (btf_asm_type): Likewise.
18327 2021-07-02  Jeff Law  <jeffreyalaw@gmail.com>
18329         * config/h8300/h8300-protos.h (output_a_shift): Make first argument
18330         an array of rtx rather than a pointer to rtx.  Add code argument.
18331         (compute_a_shift_length): Similarly.
18332         * config/h8300/h8300.c (h8300_shift_costs): Adjust now that the
18333         shift itself isn't an operand.  Create dummy operand[0] to carry
18334         a mode and pass a suitable rtx code to compute_a_shift_length.
18335         (get_shift_alg): Adjust operand number of clobber in output templates.
18336         (output_a_shift): Make first argument an array of rtx rather than
18337         a pointer to rtx.  Add code argument for the type of shift.
18338         Adjust now that the shift itself is no longer an operand.
18339         (compute_a_shift_length): Similarly.
18340         * config/h8300/shiftrotate.md (shiftqi, shifthi, shiftsi): Use an
18341         iterator rather than nshift_operator.
18342         (shiftqi_noscratch, shifthi_noscratch, shiftsi_noscratch): Likewise.
18343         (shiftqi_clobber_flags): Adjust to API changes in output_a_shift
18344         and compute_a_shift_length.
18345         (shiftqi_noscratch_clobber_flags): Likewise.
18346         (shifthi_noscratch_clobber_flags): Likewise.
18347         (shiftsi_noscratch_clobber_flags): Likewise.
18349 2021-07-02  Iain Sandoe  <iain@sandoe.co.uk>
18351         PR debug/101283
18352         * config/darwin.h (DSYMUTIL_SPEC): Do not try to run
18353         dsymutil for BTF/CTF.
18355 2021-07-02  Iain Sandoe  <iain@sandoe.co.uk>
18357         PR debug/101283
18358         * config/darwin.h (CTF_INFO_SECTION_NAME): Update the
18359         segment to include BTF.
18360         (BTF_INFO_SECTION_NAME): New.
18362 2021-07-02  Jeff Law  <jeffreyalaw@gmail.com>
18364         * config/m32r/m32r-protos.h (call_operand): Adjust return type.
18365         (small_data_operand, memreg_operand, small_insn_p): Likewise.
18366         * config/m32r/m32r.c (call_operand): Adjust return type.
18367         (small_data_operand, memreg_operand): Likewise.
18369 2021-07-02  Jeff Law  <jeffreyalaw@gmail.com>
18371         * config/frv/frv-protos.h  (integer_register_operand): Adjust return
18372         type.
18373         (frv_load_operand, gpr_or_fpr_operand, gpr_no_subreg_operand): Likewise.
18374         (fpr_or_int6_operand, gpr_or_int_operand); Likewise.
18375         (gpr_or_int12_operand, gpr_or_int10_operand); Likewise.
18376         (move_source_operand, move_destination_operand): Likewise.
18377         (condexec_source_operand, condexec_dest_operand): Likewise.
18378         (lr_operand, gpr_or_memory_operand, fpr_or_memory_operand): Likewise.
18379         (reg_or_0_operand, fcc_operand, icc_operand, cc_operand): Likewise.
18380         (fcr_operand, icr_operand, cr_operand, call_operand): Likewise.
18381         (fpr_operand, even_reg_operand, odd_reg_operand): Likewise.
18382         (even_gpr_operand, odd_gpr_operand, quad_fpr_operand): Likewise.
18383         (even_fpr_operand, odd_fpr_operand): Likewise.
18384         (dbl_memory_one_insn_operand, dbl_memory_two_insn_operand): Likewise.
18385         (int12_operand, int6_operand, int5_operand, uint5_operand): Likewise.
18386         (uint4_operand, uint1_operand, int_2word_operand): Likewise
18387         (upper_int16_operand, uint16_operand, symbolic_operand): Likewise.
18388         (relational_operator, float_relational_operator): Likewise.
18389         (ccr_eqne_operator, minmax_operator): Likewise.
18390         (condexec_si_binary_operator, condexec_si_media_operator): Likewise.
18391         (condexec_si_divide_operator, condexec_si_unary_operator): Likewise.
18392         (condexec_sf_conv_operator, condexec_sf_add_operator): Likewise.
18393         (intop_compare_operator, acc_operand, even_acc_operand): Likewise.
18394         (quad_acc_operand, accg_operand): Likewise.
18396 2021-07-02  Jeff Law  <jeffreyalaw@gmail.com>
18398         * config/stormy16/stormy16-protos.h (xstormy16_below_100_symbol): Change
18399         return type to a bool.
18400         (nonimmediate_nonstack_operand): Likewise.
18401         (xstormy16_splittable_below100_operand): Likewise.
18402         * config/stormy16/stormy16.c (xstormy16_below_100_symbol): Fix
18403         return type.
18404         (xstormy16_splittable_below100_operand): Likewise.
18406 2021-07-02  Richard Biener  <rguenther@suse.de>
18408         PR tree-optimization/101293
18409         * tree-ssa-loop-im.c (mem_ref_hasher::equal): Compare MEM_REF bases
18410         with combined offsets.
18411         (gather_mem_refs_stmt): Hash MEM_REFs as if their offset were
18412         combined with the rest of the offset.
18414 2021-07-02  Eric Botcazou  <ebotcazou@adacore.com>
18416         * config/i386/i386.c (asm_preferred_eh_data_format): Always use the
18417         PIC encodings for PE-COFF targets.
18419 2021-07-02  Jakub Jelinek  <jakub@redhat.com>
18421         PR target/101286
18422         * config/i386/i386-expand.c (ix86_broadcast_from_integer_constant):
18423         Return nullptr for TImode inner mode.
18425 2021-07-02  Richard Biener  <rguenther@suse.de>
18427         PR tree-optimization/101280
18428         PR tree-optimization/101173
18429         * gimple-loop-interchange.cc
18430         (tree_loop_interchange::valid_data_dependences): Properly
18431         guard all dependence checks with DDR_REVERSED_P or its
18432         inverse.
18434 2021-07-02  Hongyu Wang  <hongyu.wang@intel.com>
18436         * config/i386/i386-expand.c (ix86_expand_builtin):
18437         Add branch to clear odata when ZF is set for asedecenc_expand
18438         and wideaesdecenc_expand.
18440 2021-07-02  Eugene Rozenfeld  <erozen@microsoft.com>
18442         * config/i386/gcc-auto-profile: regenerate
18444 2021-07-02  liuhongt  <hongtao.liu@intel.com>
18446         * config/i386/sse.md (trunc<mode><pmov_dst_4>2): Refined to ..
18447         (trunc<mode><pmov_dst_4_lower>2): this.
18449 2021-07-01  David Malcolm  <dmalcolm@redhat.com>
18451         * diagnostic.h (diagnostic_context::m_file_cache): New field.
18452         * input.c (class fcache): Rename to...
18453         (class file_cache_slot): ...this, making most members private and
18454         prefixing fields with "m_".
18455         (file_cache_slot::get_file_path): New accessor.
18456         (file_cache_slot::get_use_count): New accessor.
18457         (file_cache_slot::missing_trailing_newline_p): New accessor.
18458         (file_cache_slot::inc_use_count): New.
18459         (fcache_buffer_size): Move to...
18460         (file_cache_slot::buffer_size): ...here.
18461         (fcache_line_record_size): Move to...
18462         (file_cache_slot::line_record_size): ...here.
18463         (fcache_tab): Delete, in favor of global_dc->m_file_cache.
18464         (fcache_tab_size): Move to file_cache::num_file_slots.
18465         (diagnostic_file_cache_init): Update for move of fcache_tab
18466         to global_dc->m_file_cache.
18467         (diagnostic_file_cache_fini): Likewise.
18468         (lookup_file_in_cache_tab): Convert to...
18469         (file_cache::lookup_file): ...this.
18470         (diagnostics_file_cache_forcibly_evict_file): Update for move of
18471         fcache_tab to global_dc->m_file_cache, moving most of
18472         implementation to...
18473         (file_cache::forcibly_evict_file): ...this new function and...
18474         (file_cache_slot::evict): ...this new function.
18475         (evicted_cache_tab_entry): Convert to...
18476         (file_cache::evicted_cache_tab_entry): ...this.
18477         (add_file_to_cache_tab): Convert to...
18478         (file_cache::add_file): ...this, moving bulk of implementation
18479         to...
18480         (file_cache_slot::create): ..this new function.
18481         (file_cache::file_cache): New.
18482         (file_cache::~file_cache): New.
18483         (lookup_or_add_file_to_cache_tab): Convert to...
18484         (file_cache::lookup_or_add_file): ..this new function.
18485         (fcache::fcache): Rename to...
18486         (file_cache_slot::file_cache_slot): ...this, adding "m_" prefixes
18487         to fields.
18488         (fcache::~fcache): Rename to...
18489         (file_cache_slot::~file_cache_slot): ...this, adding "m_" prefixes
18490         to fields.
18491         (needs_read): Convert to...
18492         (file_cache_slot::needs_read_p): ...this.
18493         (needs_grow): Convert to...
18494         (file_cache_slot::needs_grow_p): ...this.
18495         (maybe_grow): Convert to...
18496         (file_cache_slot::maybe_grow): ...this.
18497         (read_data): Convert to...
18498         (file_cache_slot::read_data): ...this.
18499         (maybe_read_data): Convert to...
18500         (file_cache_slot::maybe_read_data): ...this.
18501         (get_next_line): Convert to...
18502         (file_cache_slot::get_next_line): ...this.
18503         (goto_next_line): Convert to...
18504         (file_cache_slot::goto_next_line): ...this.
18505         (read_line_num): Convert to...
18506         (file_cache_slot::read_line_num): ...this.
18507         (location_get_source_line): Update for moving of globals to
18508         global_dc->m_file_cache.
18509         (location_missing_trailing_newline): Likewise.
18510         * input.h (class file_cache_slot): New forward decl.
18511         (class file_cache): New.
18513 2021-07-01  Michael Meissner  <meissner@linux.ibm.com>
18515         * config/rs6000/rs6000.c (rs6000_maybe_emit_fp_cmove): Add IEEE
18516         128-bit floating point conditional move support.
18517         (have_compare_and_set_mask): Add IEEE 128-bit floating point
18518         types.
18519         * config/rs6000/rs6000.md (mov<mode>cc, IEEE128 iterator): New insn.
18520         (mov<mode>cc_p10, IEEE128 iterator): New insn.
18521         (mov<mode>cc_invert_p10, IEEE128 iterator): New insn.
18522         (fpmask<mode>, IEEE128 iterator): New insn.
18523         (xxsel<mode>, IEEE128 iterator): New insn.
18525 2021-07-01  Iain Sandoe  <iain@sandoe.co.uk>
18527         PR debug/101283
18528         * config/darwin.h (CTF_INFO_SECTION_NAME): New.
18530 2021-07-01  H.J. Lu  <hjl.tools@gmail.com>
18532         * config/i386/i386-expand.c (ix86_expand_vector_init_duplicate):
18533         Make it global.
18534         * config/i386/i386-protos.h (ix86_expand_vector_init_duplicate):
18535         New prototype.
18536         * config/i386/sse.md (INT_BROADCAST_MODE): New mode iterator.
18537         (vec_duplicate<mode>): New expander.
18539 2021-07-01  H.J. Lu  <hjl.tools@gmail.com>
18541         PR target/100865
18542         * config/i386/i386-expand.c (ix86_expand_vector_init_duplicate):
18543         New prototype.
18544         (ix86_byte_broadcast): New function.
18545         (ix86_convert_const_wide_int_to_broadcast): Likewise.
18546         (ix86_expand_move): Convert CONST_WIDE_INT to broadcast if mode
18547         size is 16 bytes or bigger.
18548         (ix86_broadcast_from_integer_constant): New function.
18549         (ix86_expand_vector_move): Convert CONST_WIDE_INT and CONST_VECTOR
18550         to broadcast if mode size is 16 bytes or bigger.
18551         * config/i386/i386-protos.h (ix86_gen_scratch_sse_rtx): New
18552         prototype.
18553         * config/i386/i386.c (ix86_gen_scratch_sse_rtx): New function.
18555 2021-07-01  Uroš Bizjak  <ubizjak@gmail.com>
18557         * config/i386/predicates.md (ix86_endbr_immediate_operand):
18558         Return true/false instead of 1/0.
18559         (movq_parallel): Ditto.
18561 2021-07-01  Uroš Bizjak  <ubizjak@gmail.com>
18563         * recog.c (general_operand): Return true/false instead of 1/0.
18564         (register_operand): Ditto.
18565         (immediate_operand): Ditto.
18566         (const_int_operand): Ditto.
18567         (const_scalar_int_operand): Ditto.
18568         (const_double_operand): Ditto.
18569         (push_operand): Ditto.
18570         (pop_operand): Ditto.
18571         (memory_operand): Ditto.
18572         (indirect_operand): Ditto.
18574 2021-07-01  Uroš Bizjak  <ubizjak@gmail.com>
18576         * genpreds.c (write_predicate_subfunction):
18577         Change the type of written subfunction to bool.
18578         (write_one_predicate_function):
18579         Change the type of written function to bool.
18580         (write_tm_preds_h): Ditto.
18581         * recog.h (*insn_operand_predicate_fn): Change the type to bool.
18582         * recog.c (general_operand): Change the type to bool.
18583         (address_operand): Ditto.
18584         (register_operand): Ditto.
18585         (pmode_register_operand): Ditto.
18586         (scratch_operand): Ditto.
18587         (immediate_operand): Ditto.
18588         (const_int_operand): Ditto.
18589         (const_scalar_int_operand): Ditto.
18590         (const_double_operand): Ditto.
18591         (nonimmediate_operand): Ditto.
18592         (nonmemory_operand): Ditto.
18593         (push_operand): Ditto.
18594         (pop_operand): Ditto.
18595         (memory_operand): Ditto.
18596         (indirect_operand): Ditto.
18597         (ordered_comparison_operator): Ditto.
18598         (comparison_operator): Ditto.
18599         * config/i386/i386-expand.c (ix86_expand_sse_cmp):
18600         Change the type of indirect predicate function to bool.
18601         * config/rs6000/rs6000.c (easy_vector_constant):
18602         Change the type to bool.
18603         * config/mips/mips-protos.h (m16_based_address_p):
18604         Change the type of operand 3 to bool.
18606 2021-07-01  Richard Biener  <rguenther@suse.de>
18608         PR tree-optimization/101280
18609         PR tree-optimization/101173
18610         * gimple-loop-interchange.cc
18611         (tree_loop_interchange::valid_data_dependences): Revert
18612         previous change and instead correctly handle DDR_REVERSED_P
18613         dependence.
18615 2021-07-01  Richard Biener  <rguenther@suse.de>
18617         PR tree-optimization/101278
18618         * tree-ssa-dse.c (dse_classify_store): First check for
18619         uses, then ignore stmt for chaining purposes.
18621 2021-07-01  Richard Biener  <rguenther@suse.de>
18623         PR tree-optimization/100778
18624         * tree-vect-slp.c (vect_schedule_slp_node): Do not place trapping
18625         vectorized ops ahead of their scalar BB.
18627 2021-07-01  Uroš Bizjak  <ubizjak@gmail.com>
18629         PR target/101044
18630         * config/i386/i386.md (*nabs<dwi>2_doubleword):
18631         New insn_and_split pattern.
18632         (*nabs<dwi>2_1): Ditto.
18633         * config/i386/i386-features.c
18634         (general_scalar_chain::compute_convert_gain):
18635         Handle (NEG (ABS (...))) RTX.  Rewrite src code
18636         scanner as switch statement.
18637         (general_scalar_chain::convert_insn):
18638         Handle (NEG (ABS (...))) RTX.
18639         (general_scalar_to_vector_candidate_p):
18640         Detect  (NEG (ABS (...))) RTX.  Reorder case statements
18641         for (AND (NOT (...) ...)) fallthrough.
18643 2021-07-01  Richard Biener  <rguenther@suse.de>
18645         PR tree-optimization/101178
18646         * tree-vect-slp.c (slpg_vertex::materialize): Remove.
18647         (slpg::perm_in): Add.
18648         (slpg::get_perm_in): Remove.
18649         (slpg::get_perm_materialized): Add.
18650         (vect_optimize_slp): Handle VEC_PERM nodes more optimally
18651         during permute propagation and materialization.
18653 2021-07-01  Jakub Jelinek  <jakub@redhat.com>
18655         PR debug/101266
18656         * dwarf2out.c (loc_list_from_tree_1): Handle COMPOUND_LITERAL_EXPR.
18658 2021-07-01  Jakub Jelinek  <jakub@redhat.com>
18660         PR middle-end/94366
18661         * omp-low.c (lower_rec_input_clauses): Rename is_fp_and_or to
18662         is_truth_op, set it for TRUTH_*IF_EXPR regardless of new_var's type,
18663         use boolean_type_node instead of integer_type_node as NE_EXPR type.
18664         (lower_reduction_clauses): Likewise.
18666 2021-06-30  Hafiz Abid Qadeer  <abidh@codesourcery.com>
18668         * config/gcn/gcn.c: Include dwarf2.h.
18669         (gcn_addr_space_debug): New function.
18670         (TARGET_ADDR_SPACE_DEBUG): New hook.
18672 2021-06-30  Hafiz Abid Qadeer  <abidh@codesourcery.com>
18674         * common/config/gcn/gcn-common.c
18675         (gcn_option_optimization_table): Change OPT_fomit_frame_pointer to -O3.
18676         * config/gcn/gcn.c (gcn_expand_prologue): Prefer the frame pointer
18677         when emitting CFI.
18678         (gcn_expand_prologue): Prefer the frame pointer when emitting CFI.
18679         (gcn_frame_pointer_rqd): New function.
18680         (TARGET_FRAME_POINTER_REQUIRED): New hook.
18682 2021-06-30  Hafiz Abid Qadeer  <abidh@codesourcery.com>
18684         * config/gcn/gcn.c (move_callee_saved_registers): Emit CFI notes for
18685         prologue register saves.
18686         (gcn_debug_unwind_info): Use UI_DWARF2.
18687         (gcn_dwarf_register_number): Map DWARF_LINK_REGISTER to DWARF PC.
18688         (gcn_dwarf_register_span): DWARF_LINK_REGISTER doesn't span.
18689         * config/gcn/gcn.h: (DWARF_FRAME_RETURN_COLUMN): New define.
18690         (DWARF_LINK_REGISTER): New define.
18691         (FIRST_PSEUDO_REGISTER): Increment.
18692         (FIXED_REGISTERS): Add entry for DWARF_LINK_REGISTER.
18693         (CALL_USED_REGISTERS): Likewise.
18694         (REGISTER_NAMES): Likewise.
18696 2021-06-30  Richard Biener  <rguenther@suse.de>
18698         PR tree-optimization/101267
18699         * tree-vect-stmts.c (vect_check_scalar_mask): Adjust
18700         API and use SLP compatible interface of vect_is_simple_use.
18701         Reject not vectorized SLP defs for callers that do not support
18702         that.
18703         (vect_check_store_rhs): Handle masked stores and pass down
18704         the appropriate operator index.
18705         (vectorizable_call): Adjust.
18706         (vectorizable_store): Likewise.
18707         (vectorizable_load): Likewise.  Handle SLP pecularity of
18708         masked loads.
18709         (vect_is_simple_use): Remove special-casing of masked stores.
18711 2021-06-30  Tobias Burnus  <tobias@codesourcery.com>
18713         * common.opt (foffload): Remove help as Driver only.
18714         * gcc.c (display_help): Add -foffload.
18716 2021-06-30  Tobias Burnus  <tobias@codesourcery.com>
18718         * gcc.c (close_at_file, execute): Replace alloca by XALLOCAVEC.
18719         (check_offload_target_name): Fix splitting OFFLOAD_TARGETS into
18720         a candidate list; better inform no offload target is configured
18721         and fix hint extraction when passed target is not '\0' at [len].
18722         * common.opt (foffload): Add tailing '.'.
18723         (foffload-options): Likewise; fix flag name in the help string.
18725 2021-06-30  prathamesh.kulkarni  <prathamesh.kulkarni@linaro.org>
18727         PR target/66791
18728         * config/arm/arm_neon.h: Move vabs intrinsics before vcage_f32.
18729         (vcage_f32): Gate comparison on __FAST_MATH__.
18730         (vcageq_f32): Likewise.
18731         (vcale_f32): Likewise.
18732         (vcaleq_f32): Likewise.
18733         (vcagt_f32): Likewise.
18734         (vcagtq_f32): Likewise.
18735         (vcalt_f32): Likewise.
18736         (vcaltq_f32): Likewise.
18737         (vcage_f16): Likewise.
18738         (vcageq_f16): Likewise.
18739         (vcale_f16): Likewise.
18740         (vcaleq_f16): Likewise.
18741         (vcagt_f16): Likewise.
18742         (vcagtq_f16): Likewise.
18743         (vcalt_f16): Likewise.
18744         (vcaltq_f16): Likewise.
18746 2021-06-30  Richard Biener  <rguenther@suse.de>
18748         PR tree-optimization/101264
18749         * tree-vect-slp.c (vect_optimize_slp): Propagate the
18750         computed perm_in to all "any" permute successors
18751         we cannot de-duplicate immediately.
18753 2021-06-30  liuhongt  <hongtao.liu@intel.com>
18755         PR target/101248
18756         * config/i386/sse.md
18757         (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>):
18758         Refined to ..
18759         (avx512f_sfixupimm<mode><maskz_scalar_name><round_saeonly_name>):
18760         this.
18761         (avx512f_sfixupimm<mode>_mask<round_saeonly_name>"): Refined.
18762         * config/i386/subst.md (maskz_scalar): New define_subst.
18763         (maskz_scalar_name): New subst_attr.
18764         (maskz_scalar_op5): Ditto.
18765         (round_saeonly_maskz_scalar_op5): Ditto.
18766         (round_saeonly_maskz_scalar_operand5): Ditto.
18768 2021-06-30  David Edelsohn  <dje.gcc@gmail.com>
18770         * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags):
18771         Increase code CSECT alignment to at least 32 bytes.
18772         * config/rs6000/xcoff.h (TEXT_SECTION_ASM_OP): Add 32 byte
18773         alignment designation.
18775 2021-06-29  Sergei Trofimovich  <siarheit@google.com>
18777         * doc/generic.texi: Fix s/net yet/not yet/ typo.
18779 2021-06-29  Andrew MacLeod  <amacleod@redhat.com>
18781         PR tree-optimization/101254
18782         * range-op.cc (operator_minus::op1_op2_relation_effect): Check for
18783         wrapping/non-wrapping when setting the result range.
18785 2021-06-29  Andrew MacLeod  <amacleod@redhat.com>
18787         * value-query.cc (gimple_range_global): Allow phis.
18789 2021-06-29  Andrew MacLeod  <amacleod@redhat.com>
18791         * vr-values.c (vr_values::vrp_stmt_computes_nonzero): Use stmt.
18792         (simplify_using_ranges::op_with_boolean_value_range_p): Add a
18793         statement for location context.
18794         (check_for_binary_op_overflow): Ditto.
18795         (simplify_using_ranges::get_vr_for_comparison): Ditto.
18796         (simplify_using_ranges::compare_name_with_value): Ditto.
18797         (simplify_using_ranges::compare_names): Ditto.
18798         (vrp_evaluate_conditional_warnv_with_ops_using_ranges): Ditto.
18799         (simplify_using_ranges::simplify_truth_ops_using_ranges): Ditto.
18800         (simplify_using_ranges::simplify_min_or_max_using_ranges): Ditto.
18801         (simplify_using_ranges::simplify_internal_call_using_ranges): Ditto.
18802         (simplify_using_ranges::two_valued_val_range_p): Ditto.
18803         (simplify_using_ranges::simplify): Ditto.
18804         * vr-values.h: Adjust prototypes.
18806 2021-06-29  Uroš Bizjak  <ubizjak@gmail.com>
18808         PR target/95046
18809         * config/i386/mmx.md (vec_addsubv2sf3): New insn pattern.
18811 2021-06-29  Julian Brown  <julian@codesourcery.com>
18813         * config/gcn/gcn.c (gcn_init_libfuncs): New function.
18814         (TARGET_INIT_LIBFUNCS): Define target hook using above function.
18815         * config/gcn/gcn.h (UNITS_PER_WORD): Define to 8 for IN_LIBGCC2, 4
18816         otherwise.
18817         (LIBGCC2_UNITS_PER_WORD, BITS_PER_WORD): Remove definitions.
18818         (MAX_FIXED_MODE_SIZE): Change to 128.
18820 2021-06-29  Julian Brown  <julian@codesourcery.com>
18822         * config/gcn/gcn.md (UNSPEC_FLBIT_INT): New unspec constant.
18823         (s_mnemonic): Add clrsb.
18824         (gcn_flbit<mode>_int): Add insn pattern for SImode/DImode.
18825         (clrsb<mode>2): Add expander for SImode/DImode.
18827 2021-06-29  Julian Brown  <julian@codesourcery.com>
18829         * config/gcn/gcn.md (<su>mulsidi3, <su>mulsidi3_reg, <su>mulsidi3_imm,
18830         muldi3): Add patterns.
18832 2021-06-29  Julian Brown  <julian@codesourcery.com>
18834         * config/gcn/gcn.md (<su>mulsi3_highpart): Change to expander.
18835         (<su>mulsi3_highpart_reg, <su>mulsi3_highpart_imm): New patterns.
18837 2021-06-29  Julian Brown  <julian@codesourcery.com>
18839         * config/gcn/gcn.md (mulsi3): Make s_mulk_i32 variant clobber SCC.
18841 2021-06-29  Joseph Myers  <joseph@codesourcery.com>
18843         * btfout.c, ctfout.c: Include "memmodel.h".
18845 2021-06-29  Tobias Burnus  <tobias@codesourcery.com>
18847         * gcc.c (check_offload_target_name): Cast len argument to
18848         %q.*s to 'int'; avoid -Wstringop-truncation warning.
18850 2021-06-29  Richard Biener  <rguenther@suse.de>
18852         * tree-vect-slp.c (vect_optimize_slp): Forward propagate
18853         to "any" permute nodes and relax "any" permute proapgation
18854         during iterative backward propagation.
18856 2021-06-29  Tobias Burnus  <tobias@codesourcery.com>
18858         PR other/67300
18859         * common.opt (-foffload=): Update description.
18860         (-foffload-options=): New.
18861         * doc/invoke.texi (C Language Options): Document
18862         -foffload and -foffload-options.
18863         * gcc.c (check_offload_target_name): New, split off from
18864         handle_foffload_option.
18865         (check_foffload_target_names): New.
18866         (handle_foffload_option): Handle -foffload=default.
18867         (driver_handle_option): Update for -foffload-options.
18868         * lto-opts.c (lto_write_options): Use -foffload-options
18869         instead of -foffload.
18870         * lto-wrapper.c (merge_and_complain, append_offload_options):
18871         Likewise.
18872         * opts.c (common_handle_option): Likewise.
18874 2021-06-29  Tobias Burnus  <tobias@codesourcery.com>
18876         * doc/invoke.texi (C Language Options): Sort options
18877         alphabetically in optlist and also the description itself.
18878         Remove leftover -fallow-single-precision from and add missing
18879         -fgnu-tm to the optlist.
18881 2021-06-29  Richard Biener  <rguenther@suse.de>
18883         * tree-vect-slp.c (slpg_vertex::visited): Remove.
18884         (vect_slp_perms_eq): Handle -1 permutes.
18885         (vect_optimize_slp): Rewrite permute propagation.
18887 2021-06-29  Jakub Jelinek  <jakub@redhat.com>
18889         PR c++/101210
18890         * match.pd ((intptr_t)x eq/ne CST to x eq/ne (typeof x) CST): Don't
18891         perform the optimization in GENERIC when sanitizing and x has a
18892         reference type.
18894 2021-06-29  Richard Biener  <rguenther@suse.de>
18896         PR tree-optimization/101242
18897         * tree-vect-slp.c (vect_slp_build_vertices): Force-add
18898         PHIs with not represented initial values as leafs.
18900 2021-06-29  Jan-Benedict Glaw  <jbglaw@getslash.de>
18902         * config/pdp11/pdp11.h (ASM_OUTPUT_SKIP): Fix signedness warning.
18903         * config/pdp11/pdp11.c (pdp11_asm_print_operand_punct_valid_p): Remove
18904         "register" keyword.
18905         (pdp11_initial_elimination_offset) Remove unused variable.
18906         (pdp11_cmp_length) Ditto.
18907         (pdp11_insn_cost): Ditto, and fix signedness warning.
18909 2021-06-29  David Edelsohn  <dje.gcc@gmail.com>
18911         * btfout.c: Include tm_p.h.
18912         * ctfout.c: Same.
18914 2021-06-28  Indu Bhagat  <indu.bhagat@oracle.com>
18916         * config/bpf/bpf.c (bpf_expand_prologue): Do not mark insns as
18917         frame related.
18918         (bpf_expand_epilogue): Likewise.
18919         * config/bpf/bpf.h (DWARF2_FRAME_INFO): Define to 0.
18920         Do not define DBX_DEBUGGING_INFO.
18922 2021-06-28  Indu Bhagat  <indu.bhagat@oracle.com>
18924         * doc/invoke.texi: Document the CTF and BTF debug info options.
18926 2021-06-28  Indu Bhagat  <indu.bhagat@oracle.com>
18927             David Faust  <david.faust@oracle.com>
18928             Jose E. Marchesi  <jose.marchesi@oracle.com>
18929             Weimin Pan  <weimin.pan@oracle.com>
18931         * Makefile.in: Add ctfc.*, ctfout.c and btfout.c files to
18932         GTFILES.  Add new object files.
18933         * common.opt: Add CTF and BTF debug info options.
18934         * btfout.c: New file.
18935         * ctfc.c: Likewise.
18936         * ctfc.h: Likewise.
18937         * ctfout.c: Likewise.
18938         * dwarf2ctf.c: Likewise.
18939         * dwarf2ctf.h: Likewise.
18940         * dwarf2cfi.c (dwarf2out_do_frame): Acknowledge CTF_DEBUG and
18941         BTF_DEBUG.
18942         * dwarf2out.c (dwarf2out_source_line): Likewise.
18943         (dwarf2out_finish): Skip emitting DWARF if CTF or BTF are to
18944         be generated.
18945         (debug_format_do_cu): New function.
18946         (dwarf2out_early_finish): Traverse DIEs and emit CTF/BTF for
18947         them if requested.
18948         Include dwarf2ctf.c.
18949         * final.c (dwarf2_debug_info_emitted_p): Acknowledge DWARF-based debug
18950         formats.
18951         * flag-types.h (enum debug_info_type): Add CTF_DEBUG and BTF_DEBUG.
18952         (CTF_DEBUG): New bitmask.
18953         (BTF_DEBUG): Likewise.
18954         (enum ctf_debug_info_levels): New enum.
18955         * gengtype.c (open_base_files): Handle ctfc.h.
18956         (main): Handle uint32_t type.
18957         * flags.h (btf_debuginfo_p): New definition.
18958         (dwarf_based_debuginfo_p): Likewise.
18959         * opts.c (debug_type_names): Add entries for CTF and BTF.
18960         (btf_debuginfo_p): New function.
18961         (dwarf_based_debuginfo_p): Likewise.
18962         (common_handle_option): Handle -gctfN and -gbtf options.
18963         (set_debug_level): Set CTF_DEBUG, BTF_DEBUG whenever appropriate.
18964         * toplev.c (process_options): Inform the user and ignore -gctfLEVEL if
18965         frontend is not C.
18967 2021-06-28  Jose E. Marchesi  <jose.marchesi@oracle.com>
18969         * dwarf2out.c (AT_class): Function is no longer static.
18970         (AT_int): Likewise.
18971         (AT_unsigned): Likewise.
18972         (AT_loc): Likewise.
18973         (get_AT): Likewise.
18974         (get_AT_string): Likewise.
18975         (get_AT_flag): Likewise.
18976         (get_AT_unsigned): Likewise.
18977         (get_AT_ref): Likewise.
18978         (new_die_raw): Likewise.
18979         (lookup_decl_die): Likewise.
18980         (base_type_die): Likewise.
18981         (add_name_attribute): Likewise.
18982         (add_AT_int): Likewise.
18983         (add_AT_unsigned): Likewise.
18984         (add_AT_loc): Likewise.
18985         (dw_get_die_tag): New function.
18986         (dw_get_die_child): Likewise.
18987         (dw_get_die_sib): Likewise.
18988         (struct dwarf_file_data): Move from here to dwarf2out.h
18989         (struct dw_attr_struct): Likewise.
18990         * dwarf2out.h: Analogous changes.
18992 2021-06-28  Martin Jambor  <mjambor@suse.cz>
18994         PR ipa/93385
18995         * ipa-param-manipulation.h (class ipa_param_body_adjustments): New
18996         members m_dead_stmts and m_dead_ssas.
18997         * ipa-param-manipulation.c
18998         (ipa_param_body_adjustments::mark_dead_statements): New function.
18999         (ipa_param_body_adjustments::common_initialization): Call it on
19000         all removed but not split parameters.
19001         (ipa_param_body_adjustments::ipa_param_body_adjustments): Initialize
19002         new mwmbers.
19003         (ipa_param_body_adjustments::modify_call_stmt): Remove arguments that
19004         are dead.
19005         * tree-inline.c (remap_gimple_stmt): Do not copy dead statements, reset
19006         dead debug statements.
19007         (copy_phis_for_bb): Do not copy dead PHI nodes.
19009 2021-06-28  Martin Jambor  <mjambor@suse.cz>
19011         PR ipa/93385
19012         * symtab-clones.h (clone_info): Removed member param_adjustments.
19013         * ipa-param-manipulation.h: Adjust initial comment to reflect how we
19014         deal with pass-through splits now.
19015         (ipa_param_performed_split): Removed.
19016         (ipa_param_adjustments::modify_call): Adjusted parameters.
19017         (class ipa_param_body_adjustments): Adjusted parameters of
19018         register_replacement, modify_gimple_stmt and modify_call_stmt.
19019         (ipa_verify_edge_has_no_modifications): Declare.
19020         (ipa_edge_modifications_finalize): Declare.
19021         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Remove
19022         performed_splits processing, pas only edge to padjs->modify_call,
19023         check that call arguments were not modified if they should not have
19024         been.
19025         * cgraphclones.c (cgraph_node::create_clone): Do not copy performed
19026         splits.
19027         * ipa-param-manipulation.c (struct pass_through_split_map): New type.
19028         (ipa_edge_modification_info): Likewise.
19029         (ipa_edge_modification_sum): Likewise.
19030         (ipa_edge_modifications): New edge summary.
19031         (ipa_verify_edge_has_no_modifications): New function.
19032         (transitive_split_p): Removed.
19033         (transitive_split_map): Likewise.
19034         (init_transitive_splits): Likewise.
19035         (ipa_param_adjustments::modify_call): Adjusted to use the new edge
19036         summary instead of performed_splits.
19037         (ipa_param_body_adjustments::register_replacement): Drop dummy
19038         parameter, set base_index of the created ipa_param_body_replacement.
19039         (phi_arg_will_live_p): New function.
19040         (ipa_param_body_adjustments::common_initialization): Do not create
19041         IPA_SRA dummy decls.
19042         (simple_tree_swap_info): Removed.
19043         (remap_split_decl_to_dummy): Likewise.
19044         (record_argument_state_1): New function.
19045         (record_argument_state): Likewise.
19046         (ipa_param_body_adjustments::modify_call_stmt): New parameter
19047         orig_stmt.  Do not work with dummy decls, save necessary info about
19048         changes to ipa_edge_modifications.
19049         (ipa_param_body_adjustments::modify_gimple_stmt): New parameter
19050         orig_stmt, pass it to modify_call_stmt.
19051         (ipa_param_body_adjustments::modify_cfun_body): Adjust call to
19052         modify_gimple_stmt.
19053         (ipa_edge_modifications_finalize): New function.
19054         * tree-inline.c (remap_gimple_stmt): Pass original statement to
19055         modify_gimple_stmt.
19056         (copy_phis_for_bb): Do not copy dead PHI nodes.
19057         (expand_call_inline): Do not remap performed_splits.
19058         (update_clone_info): Likewise.
19059         * toplev.c: Include ipa-param-manipulation.h.
19060         (toplev::finalize): Call ipa_edge_modifications_finalize.
19062 2021-06-28  Andrew Pinski  <apinski@marvell.com>
19064         * tree-ssa-phiopt.c (replace_phi_edge_with_variable): Duplicate range
19065         info if we're the only things setting the target PHI.
19066         (value_replacement): Don't duplicate range here.
19067         (minmax_replacement): Likewise.
19069 2021-06-28  Richard Biener  <rguenther@suse.de>
19071         PR tree-optimization/101229
19072         * gimple-walk.c (gimple_walk_op): Handle PHIs.
19074 2021-06-28  Martin Liska  <mliska@suse.cz>
19076         * config/v850/v850.c (construct_dispose_instruction): Allocate
19077         a bigger buffer.
19078         (construct_prepare_instruction): Likewise.
19080 2021-06-28  Martin Liska  <mliska@suse.cz>
19082         * config/v850/v850.c (v850_option_override): Build default
19083         target node.
19084         (v850_can_inline_p): New.  Allow MASK_PROLOG_FUNCTION to be
19085         ignored for inlining.
19086         (TARGET_CAN_INLINE_P): New.
19088 2021-06-28  Richard Biener  <rguenther@suse.de>
19090         PR tree-optimization/101207
19091         * tree-vect-slp.c (vect_optimize_slp): Do BB reduction
19092         permute eliding for load permutations properly.
19094 2021-06-28  Richard Biener  <rguenther@suse.de>
19096         PR tree-optimization/101173
19097         * gimple-loop-interchange.cc
19098         (tree_loop_interchange::valid_data_dependences): Disallow outer
19099         loop dependence distance of zero.
19101 2021-06-28  liuhongt  <hongtao.liu@intel.com>
19103         PR target/100648
19104         * config/i386/sse.md (*avx_cmp<mode>3_lt): New
19105         define_insn_and_split.
19106         (*avx_cmp<mode>3_ltint): Ditto.
19107         (*avx2_pcmp<mode>3_3): Ditto.
19108         (*avx2_pcmp<mode>3_4): Ditto.
19109         (*avx2_pcmp<mode>3_5): Ditto.
19111 2021-06-28  liuhongt  <hongtao.liu@intel.com>
19113         * config/i386/i386-builtin.def (IX86_BUILTIN_BLENDVPD256,
19114         IX86_BUILTIN_BLENDVPS256, IX86_BUILTIN_PBLENDVB256,
19115         IX86_BUILTIN_BLENDVPD, IX86_BUILTIN_BLENDVPS,
19116         IX86_BUILTIN_PBLENDVB128): Replace icode with
19117         CODE_FOR_nothing.
19118         * config/i386/i386.c (ix86_gimple_fold_builtin): Fold blendv
19119         builtins.
19120         * config/i386/sse.md (*<sse4_1_avx2>_pblendvb_lt_subreg_not):
19121         New pre_reload splitter.
19123 2021-06-27  Andrew Pinski  <apinski@marvell.com>
19125         PR middle-end/101230
19126         * fold-const.c (fold_ternary_loc): Check
19127         the return value of invert_tree_comparison.
19129 2021-06-27  David Edelsohn  <dje.gcc@gmail.com>
19131         * config.gcc: Add SPDX License Identifier.
19132         (powerpc-ibm-aix789): Default to aix73.h.
19133         (powerpc-ibm-aix7.2.*.*): New stanza.
19134         * config/rs6000/aix72.h: Add SPDX License Identifier.
19135         * config/rs6000/aix73.h: New file.
19137 2021-06-26  Jason Merrill  <jason@redhat.com>
19139         * except.c: #include "dwarf2.h" instead of "dwarf2out.h".
19141 2021-06-26  Andrew Pinski  <apinski@marvell.com>
19143         * genmatch.c (lower_cond): Copy for_subst_vec
19144         for the simplify also.
19145         (lower): Swap the order for lower_for and lower_cond.
19147 2021-06-26  Andrew Pinski  <apinski@marvell.com>
19149         * tree-ssa-phiopt.c (match_simplify_replacement): Reset
19150         flow senatitive info on the moved ssa set.
19152 2021-06-26  Andrew Pinski  <apinski@marvell.com>
19154         * fold-const.c (fold_cond_expr_with_comparison):
19155         Exand arg0 into comp_code, arg00, and arg01.
19156         (fold_ternary_loc): Use invert_tree_comparison
19157         instead of fold_invert_truthvalue for the case
19158         where we have A CMP B ? C : A.
19160 2021-06-25  Martin Sebor  <msebor@redhat.com>
19162         PR middle-end/101216
19163         * calls.c (maybe_warn_rdwr_sizes): Use the no_warning constant.
19165 2021-06-25  Jeff Law  <jeffreyalaw@gmail.com>
19167         * config/h8300/h8300.c (select_cc_mode): Handle ASHIFTRT and LSHIFTRT.
19169 2021-06-25  Richard Biener  <rguenther@suse.de>
19171         PR tree-optimization/101202
19172         * tree-vect-slp.c (vect_optimize_slp): Explicitely handle
19173         failed nodes.
19175 2021-06-25  Richard Biener  <rguenther@suse.de>
19177         * tree-vect-slp-patterns.c (addsub_pattern::build): Copy
19178         STMT_VINFO_REDUC_DEF from the original representative.
19180 2021-06-25  Martin Sebor  <msebor@redhat.com>
19182         * builtins.c (warn_string_no_nul): Replace uses of TREE_NO_WARNING,
19183         gimple_no_warning_p and gimple_set_no_warning with
19184         warning_suppressed_p, and suppress_warning.
19185         (c_strlen): Same.
19186         (maybe_warn_for_bound): Same.
19187         (warn_for_access): Same.
19188         (check_access): Same.
19189         (expand_builtin_strncmp): Same.
19190         (fold_builtin_varargs): Same.
19191         * calls.c (maybe_warn_nonstring_arg): Same.
19192         (maybe_warn_rdwr_sizes): Same.
19193         * cfgexpand.c (expand_call_stmt): Same.
19194         * cgraphunit.c (check_global_declaration): Same.
19195         * fold-const.c (fold_undefer_overflow_warnings): Same.
19196         (fold_truth_not_expr): Same.
19197         (fold_unary_loc): Same.
19198         (fold_checksum_tree): Same.
19199         * gimple-array-bounds.cc (array_bounds_checker::check_array_ref): Same.
19200         (array_bounds_checker::check_mem_ref): Same.
19201         (array_bounds_checker::check_addr_expr): Same.
19202         (array_bounds_checker::check_array_bounds): Same.
19203         * gimple-expr.c (copy_var_decl): Same.
19204         * gimple-fold.c (gimple_fold_builtin_strcpy): Same.
19205         (gimple_fold_builtin_strncat): Same.
19206         (gimple_fold_builtin_stxcpy_chk): Same.
19207         (gimple_fold_builtin_stpcpy): Same.
19208         (gimple_fold_builtin_sprintf): Same.
19209         (fold_stmt_1): Same.
19210         * gimple-ssa-isolate-paths.c (diag_returned_locals): Same.
19211         * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
19212         * gimple-ssa-sprintf.c (handle_printf_call): Same.
19213         * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_store): Same.
19214         * gimple-ssa-warn-restrict.c (maybe_diag_overlap): Same.
19215         * gimple-ssa-warn-restrict.h: Adjust declarations.
19216         (maybe_diag_access_bounds): Replace uses of TREE_NO_WARNING,
19217         gimple_no_warning_p and gimple_set_no_warning with
19218         warning_suppressed_p, and suppress_warning.
19219         (check_call): Same.
19220         (check_bounds_or_overlap): Same.
19221         * gimple.c (gimple_build_call_from_tree): Same.
19222         * gimplify.c (gimplify_return_expr): Same.
19223         (gimplify_cond_expr): Same.
19224         (gimplify_modify_expr_complex_part): Same.
19225         (gimplify_modify_expr): Same.
19226         (gimple_push_cleanup): Same.
19227         (gimplify_expr): Same.
19228         * omp-expand.c (expand_omp_for_generic): Same.
19229         (expand_omp_taskloop_for_outer): Same.
19230         * omp-low.c (lower_rec_input_clauses): Same.
19231         (lower_lastprivate_clauses): Same.
19232         (lower_send_clauses): Same.
19233         (lower_omp_target): Same.
19234         * tree-cfg.c (pass_warn_function_return::execute): Same.
19235         * tree-complex.c (create_one_component_var): Same.
19236         * tree-inline.c (remap_gimple_op_r): Same.
19237         (copy_tree_body_r): Same.
19238         (declare_return_variable): Same.
19239         (expand_call_inline): Same.
19240         * tree-nested.c (lookup_field_for_decl): Same.
19241         * tree-sra.c (create_access_replacement): Same.
19242         (generate_subtree_copies): Same.
19243         * tree-ssa-ccp.c (pass_post_ipa_warn::execute): Same.
19244         * tree-ssa-forwprop.c (combine_cond_expr_cond): Same.
19245         * tree-ssa-loop-ch.c (ch_base::copy_headers): Same.
19246         * tree-ssa-loop-im.c (execute_sm): Same.
19247         * tree-ssa-phiopt.c (cond_store_replacement): Same.
19248         * tree-ssa-strlen.c (maybe_warn_overflow): Same.
19249         (handle_builtin_strcpy): Same.
19250         (maybe_diag_stxncpy_trunc): Same.
19251         (handle_builtin_stxncpy_strncat): Same.
19252         (handle_builtin_strcat): Same.
19253         * tree-ssa-uninit.c (get_no_uninit_warning): Same.
19254         (set_no_uninit_warning): Same.
19255         (uninit_undefined_value_p): Same.
19256         (warn_uninit): Same.
19257         (maybe_warn_operand): Same.
19258         * tree-vrp.c (compare_values_warnv): Same.
19259         * vr-values.c (vr_values::extract_range_for_var_from_comparison_expr): Same.
19260         (test_for_singularity): Same.
19261         * gimple.h (warning_suppressed_p): New function.
19262         (suppress_warning): Same.
19263         (copy_no_warning): Same.
19264         (gimple_set_block): Call gimple_set_location.
19265         (gimple_set_location): Call copy_warning.
19267 2021-06-25  Martin Sebor  <msebor@redhat.com>
19269         * tree.h (warning_suppressed_at, copy_warning,
19270         warning_suppressed_p, suppress_warning): New functions.
19272 2021-06-25  Martin Sebor  <msebor@redhat.com>
19274         * Makefile.in (OBJS-libcommon): Add diagnostic-spec.o.
19275         * gengtype.c (open_base_files): Add diagnostic-spec.h.
19276         * diagnostic-spec.c: New file.
19277         * diagnostic-spec.h: New file.
19278         * tree.h (no_warning, all_warnings, suppress_warning_at): New
19279         declarations.
19280         * warning-control.cc: New file.
19282 2021-06-25  liuhongt  <hongtao.liu@intel.com>
19284         PR target/101185
19285         * config/i386/i386.c (x86_order_regs_for_local_alloc):
19286         Revert r12-1669.
19288 2021-06-24  Andrew MacLeod  <amacleod@redhat.com>
19290         PR tree-optimization/101189
19291         * gimple-range-fold.cc (fold_using_range::range_of_range_op): Pass
19292         LHS range of condition to postfold routine.
19293         (fold_using_range::postfold_gcond_edges): Only process the TRUE or
19294         FALSE edge if the LHS range supports it being taken.
19295         * gimple-range-fold.h (postfold_gcond_edges): Add range parameter.
19297 2021-06-24  Andrew MacLeod  <amacleod@redhat.com>
19299         * value-relation.cc (equiv_oracle::dump): Do not dump NULL blocks.
19300         (relation_oracle::find_relation_block): Check correct bitmap.
19301         (relation_oracle::dump): Do not dump NULL blocks.
19303 2021-06-24  Andrew MacLeod  <amacleod@redhat.com>
19305         * gimple-range-cache.cc (ranger_cache::propagate_cache): Call
19306         range_on_edge instead of manually calculating.
19308 2021-06-24  Andrew MacLeod  <amacleod@redhat.com>
19310         * range-op.cc: Fix comment.
19312 2021-06-24  Uroš Bizjak  <ubizjak@gmail.com>
19314         PR target/89021
19315         * config/i386/i386-expand.c (ix86_expand_sse_unpack):
19316         Handle V8QI and V4HI modes.
19317         * config/i386/mmx.md (sse4_1_<any_extend:code>v4qiv4hi2):
19318         New insn pattern.
19319         (sse4_1_<any_extend:code>v4qiv4hi2): Ditto.
19320         (mmxpackmode): New mode attribute.
19321         (vec_pack_trunc_<mmxpackmode:mode>): New expander.
19322         (mmxunpackmode): New mode attribute.
19323         (vec_unpacks_lo_<mmxunpackmode:mode>): New expander.
19324         (vec_unpacks_hi_<mmxunpackmode:mode>): Ditto.
19325         (vec_unpacku_lo_<mmxunpackmode:mode>): Ditto.
19326         (vec_unpacku_hi_<mmxunpackmode:mode>): Ditto.
19327         * config/i386/i386.md (extsuffix): Move from ...
19328         * config/i386/sse.md: ... here.
19330 2021-06-24  Eric Botcazou  <ebotcazou@adacore.com>
19332         * dwarf2out.c (dwarf2out_assembly_start): Emit .file 0 marker here..
19333         (dwarf2out_finish): ...instead of here.
19335 2021-06-24  Eric Botcazou  <ebotcazou@adacore.com>
19337         * configure.ac (--gdwarf-5 option): Use objdump instead of readelf.
19338         (working --gdwarf-4/--gdwarf-5 for all sources): Likewise.
19339         (--gdwarf-4 not refusing generated .debug_line): Adjust for Windows.
19340         * configure: Regenerate.
19342 2021-06-24  Richard Biener  <rguenther@suse.de>
19344         * config/i386/sse.md (vec_addsubv4df3, vec_addsubv2df3,
19345         vec_addsubv8sf3, vec_addsubv4sf3): Merge into ...
19346         (vec_addsub<mode>3): ... using a new addsub_cst mode attribute.
19348 2021-06-24  Richard Biener  <rguenther@suse.de>
19350         * config/i386/sse.md (avx_addsubv4df3): Rename to
19351         vec_addsubv4df3.
19352         (avx_addsubv8sf3): Rename to vec_addsubv8sf3.
19353         (sse3_addsubv2df3): Rename to vec_addsubv2df3.
19354         (sse3_addsubv4sf3): Rename to vec_addsubv4sf3.
19355         * config/i386/i386-builtin.def: Adjust.
19356         * internal-fn.def (VEC_ADDSUB): New internal optab fn.
19357         * optabs.def (vec_addsub_optab): New optab.
19358         * tree-vect-slp-patterns.c (class addsub_pattern): New.
19359         (slp_patterns): Add addsub_pattern.
19360         * tree-vect-slp.c (vect_optimize_slp): Disable propagation
19361         across CFN_VEC_ADDSUB.
19362         * tree-vectorizer.h (vect_pattern::vect_pattern): Make
19363         m_ops optional.
19364         * doc/md.texi (vec_addsub<mode>3): Document.
19366 2021-06-24  Jakub Jelinek  <jakub@redhat.com>
19368         PR middle-end/101170
19369         * df-scan.c (df_ref_record): For paradoxical big-endian SUBREGs
19370         where regno + subreg_regno_offset wraps around use 0 as starting
19371         regno.
19373 2021-06-24  Jakub Jelinek  <jakub@redhat.com>
19375         PR middle-end/101172
19376         * stor-layout.c (finish_bitfield_representative): If nextf has
19377         error_mark_node type, set repr type to error_mark_node too.
19379 2021-06-24  Ilya Leoshkevich  <iii@linux.ibm.com>
19381         * config/s390/s390.c (s390_function_profiler): Ignore labelno
19382         parameter.
19383         * config/s390/s390.h (NO_PROFILE_COUNTERS): Define.
19385 2021-06-24  Richard Biener  <rguenther@suse.de>
19387         * tree-vect-slp.c (vect_optimize_slp): Do not propagate
19388         across operations that have different semantics on different
19389         lanes.
19391 2021-06-24  Jakub Jelinek  <jakub@redhat.com>
19393         * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): Document meaning for OpenMP.
19394         * gimplify.c (gimplify_scan_omp_clauses): For OpenMP map clauses
19395         with OMP_CLAUSE_MAP_IN_REDUCTION flag partially defer gimplification
19396         of non-decl OMP_CLAUSE_DECL.  For OMP_CLAUSE_IN_REDUCTION on
19397         OMP_TARGET user outer_ctx instead of ctx for placeholders and
19398         initializer/combiner gimplification.
19399         * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_MAP_IN_REDUCTION
19400         on target constructs.
19401         (lower_rec_input_clauses): Likewise.
19402         (lower_omp_target): Likewise.
19403         * omp-expand.c (expand_omp_target): Temporarily ignore nowait clause
19404         on target if in_reduction is present.
19406 2021-06-24  Kewen Lin  <linkw@linux.ibm.com>
19408         * tree-predcom.c (class pcom_worker): New class.
19409         (release_chain): Renamed to...
19410         (pcom_worker::release_chain): ...this.
19411         (release_chains): Renamed to...
19412         (pcom_worker::release_chains): ...this.
19413         (aff_combination_dr_offset): Renamed to...
19414         (pcom_worker::aff_combination_dr_offset): ...this.
19415         (determine_offset): Renamed to...
19416         (pcom_worker::determine_offset): ...this.
19417         (class comp_ptrs): New class.
19418         (split_data_refs_to_components): Renamed to...
19419         (pcom_worker::split_data_refs_to_components): ...this,
19420         and update with class comp_ptrs.
19421         (suitable_component_p): Renamed to...
19422         (pcom_worker::suitable_component_p): ...this.
19423         (filter_suitable_components): Renamed to...
19424         (pcom_worker::filter_suitable_components): ...this.
19425         (valid_initializer_p): Renamed to...
19426         (pcom_worker::valid_initializer_p): ...this.
19427         (find_looparound_phi): Renamed to...
19428         (pcom_worker::find_looparound_phi): ...this.
19429         (add_looparound_copies): Renamed to...
19430         (pcom_worker::add_looparound_copies): ...this.
19431         (determine_roots_comp): Renamed to...
19432         (pcom_worker::determine_roots_comp): ...this.
19433         (determine_roots): Renamed to...
19434         (pcom_worker::determine_roots): ...this.
19435         (single_nonlooparound_use): Renamed to...
19436         (pcom_worker::single_nonlooparound_use): ...this.
19437         (remove_stmt): Renamed to...
19438         (pcom_worker::remove_stmt): ...this.
19439         (execute_pred_commoning_chain): Renamed to...
19440         (pcom_worker::execute_pred_commoning_chain): ...this.
19441         (execute_pred_commoning): Renamed to...
19442         (pcom_worker::execute_pred_commoning): ...this.
19443         (struct epcc_data): New member worker.
19444         (execute_pred_commoning_cbck): Call execute_pred_commoning
19445         with pcom_worker pointer.
19446         (find_use_stmt): Renamed to...
19447         (pcom_worker::find_use_stmt): ...this.
19448         (find_associative_operation_root): Renamed to...
19449         (pcom_worker::find_associative_operation_root): ...this.
19450         (find_common_use_stmt): Renamed to...
19451         (pcom_worker::find_common_use_stmt): ...this.
19452         (combinable_refs_p): Renamed to...
19453         (pcom_worker::combinable_refs_p): ...this.
19454         (reassociate_to_the_same_stmt): Renamed to...
19455         (pcom_worker::reassociate_to_the_same_stmt): ...this.
19456         (stmt_combining_refs): Renamed to...
19457         (pcom_worker::stmt_combining_refs): ...this.
19458         (combine_chains): Renamed to...
19459         (pcom_worker::combine_chains): ...this.
19460         (try_combine_chains): Renamed to...
19461         (pcom_worker::try_combine_chains): ...this.
19462         (prepare_initializers_chain): Renamed to...
19463         (pcom_worker::prepare_initializers_chain): ...this.
19464         (prepare_initializers): Renamed to...
19465         (pcom_worker::prepare_initializers): ...this.
19466         (prepare_finalizers_chain): Renamed to...
19467         (pcom_worker::prepare_finalizers_chain): ...this.
19468         (prepare_finalizers): Renamed to...
19469         (pcom_worker::prepare_finalizers): ...this.
19470         (tree_predictive_commoning_loop): Renamed to...
19471         (pcom_worker::tree_predictive_commoning_loop): ...this, adjust
19472         some calls and remove some cleanup code.
19473         (tree_predictive_commoning): Adjusted to use pcom_worker instance.
19474         (static variable looparound_phis): Remove.
19475         (static variable name_expansions): Remove.
19477 2021-06-24  Richard Biener  <rguenther@suse.de>
19479         * tree-vect-slp.c (slpg_vertex): New struct.
19480         (vect_slp_build_vertices): Adjust.
19481         (vect_optimize_slp): Likewise.  Maintain an outgoing permute
19482         and a materialized one.
19484 2021-06-24  Richard Biener  <rguenther@suse.de>
19486         PR tree-optimization/101105
19487         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
19488         Only ignore steps when they are equal or scalar order is preserved.
19490 2021-06-24  liuhongt  <hongtao.liu@intel.com>
19492         PR target/98434
19493         * config/i386/i386-expand.c (ix86_expand_vec_interleave):
19494         Adjust comments for ix86_expand_vecop_qihi2.
19495         (ix86_expand_vecmul_qihi): Renamed to ..
19496         (ix86_expand_vecop_qihi2): Adjust function prototype to
19497         support shift operation, add static to definition.
19498         (ix86_expand_vec_shift_qihi_constant): Add static to definition.
19499         (ix86_expand_vecop_qihi): Call ix86_expand_vecop_qihi2 and
19500         ix86_expand_vec_shift_qihi_constant.
19501         * config/i386/i386-protos.h (ix86_expand_vecmul_qihi): Deleted.
19502         (ix86_expand_vec_shift_qihi_constant): Deleted.
19503         * config/i386/sse.md (VI12_256_512_AVX512VL): New mode
19504         iterator.
19505         (mulv8qi3): Call ix86_expand_vecop_qihi directly, add
19506         condition TARGET_64BIT.
19507         (mul<mode>3): Ditto.
19508         (<insn><mode>3): Ditto.
19509         (vlshr<mode>3): Extend to support avx512 vlshr.
19510         (v<insn><mode>3): New expander for
19511         vashr/vlshr/vashl.
19512         (v<insn>v8qi3): Ditto.
19513         (vashrv8hi3<mask_name>): Renamed to ..
19514         (vashr<mode>3): And extend to support V16QImode for avx512.
19515         (vashrv16qi3): Deleted.
19516         (vashrv2di3<mask_name>): Extend expander to support avx512
19517         instruction.
19519 2021-06-23  Dimitar Dimitrov  <dimitar@dinux.eu>
19521         * doc/lto.texi (Design Overview): Update that slim objects are
19522         the default.
19524 2021-06-23  Aaron Sawdey  <acsawdey@linux.ibm.com>
19526         * config/rs6000/rs6000-cpus.def: Take OPTION_MASK_PCREL_OPT out
19527         of OTHER_POWER10_MASKS so it will not be enabled by default.
19529 2021-06-23  Richard Biener  <rguenther@suse.de>
19530             Martin Jambor  <mjambor@suse.cz>
19532         * tree-inline.c (setup_one_parameter): Set TREE_READONLY of the
19533         param replacement unconditionally.  Adjust comment.
19535 2021-06-23  Andrew MacLeod  <amacleod@redhat.com>
19537         * Makefile.in (OBJS): Add gimple-range-fold.o
19538         * gimple-range-fold.cc: New.
19539         * gimple-range-fold.h: New.
19540         * gimple-range-gori.cc (gimple_range_calc_op1): Move to here.
19541         (gimple_range_calc_op2): Ditto.
19542         * gimple-range-gori.h: Move prototypes to here.
19543         * gimple-range.cc: Adjust include files.
19544         (fur_source:fur_source): Relocate to gimple-range-fold.cc.
19545         (fur_source::get_operand): Ditto.
19546         (fur_source::get_phi_operand): Ditto.
19547         (fur_source::query_relation): Ditto.
19548         (fur_source::register_relation): Ditto.
19549         (class fur_edge): Ditto.
19550         (fur_edge::fur_edge): Ditto.
19551         (fur_edge::get_operand): Ditto.
19552         (fur_edge::get_phi_operand): Ditto.
19553         (fur_stmt::fur_stmt): Ditto.
19554         (fur_stmt::get_operand): Ditto.
19555         (fur_stmt::get_phi_operand): Ditto.
19556         (fur_stmt::query_relation): Ditto.
19557         (class fur_depend): Relocate to gimple-range-fold.h.
19558         (fur_depend::fur_depend): Relocate to gimple-range-fold.cc.
19559         (fur_depend::register_relation): Ditto.
19560         (fur_depend::register_relation): Ditto.
19561         (class fur_list): Ditto.
19562         (fur_list::fur_list): Ditto.
19563         (fur_list::get_operand): Ditto.
19564         (fur_list::get_phi_operand): Ditto.
19565         (fold_range): Ditto.
19566         (adjust_pointer_diff_expr): Ditto.
19567         (gimple_range_adjustment): Ditto.
19568         (gimple_range_base_of_assignment): Ditto.
19569         (gimple_range_operand1): Ditto.
19570         (gimple_range_operand2): Ditto.
19571         (gimple_range_calc_op1): Relocate to gimple-range-gori.cc.
19572         (gimple_range_calc_op2): Ditto.
19573         (fold_using_range::fold_stmt): Relocate to gimple-range-fold.cc.
19574         (fold_using_range::range_of_range_op): Ditto.
19575         (fold_using_range::range_of_address): Ditto.
19576         (fold_using_range::range_of_phi): Ditto.
19577         (fold_using_range::range_of_call): Ditto.
19578         (fold_using_range::range_of_builtin_ubsan_call): Ditto.
19579         (fold_using_range::range_of_builtin_call): Ditto.
19580         (fold_using_range::range_of_cond_expr): Ditto.
19581         (fold_using_range::range_of_ssa_name_with_loop_info): Ditto.
19582         (fold_using_range::relation_fold_and_or): Ditto.
19583         (fold_using_range::postfold_gcond_edges): Ditto.
19584         * gimple-range.h: Add gimple-range-fold.h to include files. Change
19585         GIMPLE_RANGE_STMT_H to GIMPLE_RANGE_H.
19586         (gimple_range_handler): Relocate to gimple-range-fold.h.
19587         (gimple_range_ssa_p): Ditto.
19588         (range_compatible_p): Ditto.
19589         (class fur_source): Ditto.
19590         (class fur_stmt): Ditto.
19591         (class fold_using_range): Ditto.
19592         (gimple_range_calc_op1): Relocate to gimple-range-gori.h
19593         (gimple_range_calc_op2): Ditto.
19595 2021-06-23  Andrew MacLeod  <amacleod@redhat.com>
19597         PR tree-optimization/101148
19598         PR tree-optimization/101014
19599         * gimple-range-cache.cc (ranger_cache::ranger_cache): Adjust.
19600         (ranger_cache::~ranger_cache): Adjust.
19601         (ranger_cache::block_range): Check if propagation disallowed.
19602         (ranger_cache::propagate_cache): Disallow propagation if new value
19603         can't be stored properly.
19604         * gimple-range-cache.h (ranger_cache::m_propfail): New member.
19606 2021-06-23  Andrew MacLeod  <amacleod@redhat.com>
19608         * gimple-range-cache.cc (class ssa_block_ranges): Adjust prototype.
19609         (sbr_vector::set_bb_range): Return true.
19610         (class sbr_sparse_bitmap): Adjust.
19611         (sbr_sparse_bitmap::set_bb_range): Return value.
19612         (block_range_cache::set_bb_range): Return value.
19613         (ranger_cache::propagate_cache): Use return value to print msg.
19614         * gimple-range-cache.h (class block_range_cache): Adjust.
19616 2021-06-23  Andrew MacLeod  <amacleod@redhat.com>
19618         * gimple-range.cc (dump_bb): Use range_on_edge from the cache.
19620 2021-06-23  Jeff Law  <jeffreyalaw@gmail.com>
19622         * config/h8300/logical.md (<code><mode>3<ccnz>): Use <cczn>
19623         so this pattern can be used for test/compare removal.  Pass
19624         current insn to compute_logical_op_length and output_logical_op.
19625         * config/h8300/h8300.c (compute_logical_op_cc): Remove.
19626         (h8300_and_costs): Add argument to compute_logical_op_length.
19627         (output_logical_op): Add new argument.  Use it to determine if the
19628         condition codes are used and adjust the output accordingly.
19629         (compute_logical_op_length): Add new argument and update length
19630         computations when condition codes are used.
19631         * config/h8300/h8300-protos.h (compute_logical_op_length): Update
19632         prototype.
19633         (output_logical_op): Likewise.
19635 2021-06-23  Uroš Bizjak  <ubizjak@gmail.com>
19637         PR target/89021
19638         * config/i386/i386-expand.c (expand_vec_perm_pshufb):
19639         Handle 64bit modes for TARGET_XOP.  Use indirect gen_* functions.
19640         * config/i386/mmx.md (mmx_ppermv64): New insn pattern.
19641         * config/i386/i386.md (unspec): Move UNSPEC_XOP_PERMUTE from ...
19642         * config/i386/sse.md (unspec): ... here.
19644 2021-06-23  Martin Liska  <mliska@suse.cz>
19646         PR target/98636
19647         * optc-save-gen.awk: Put back arm_fp16_format to
19648         checked_options.
19650 2021-06-23  Uroš Bizjak  <ubizjak@gmail.com>
19652         PR target/101175
19653         * config/i386/i386.md (bsr_rex64): Add zero-flag setting RTX.
19654         (bsr): Ditto.
19655         (*bsrhi): Remove.
19656         (clz<mode>2): Update RTX pattern for additions.
19658 2021-06-23  Jakub Jelinek  <jakub@redhat.com>
19660         PR middle-end/101167
19661         * omp-low.c (lower_omp_regimplify_p): Regimplify also PARM_DECLs
19662         and RESULT_DECLs that have DECL_HAS_VALUE_EXPR_P set.
19664 2021-06-22  Sergei Trofimovich  <siarheit@google.com>
19666         * doc/rtl.texi: drop unbalanced parenthesis.
19668 2021-06-22  Richard Biener  <rguenther@suse.de>
19670         PR middle-end/101156
19671         * gimplify.c (gimplify_expr): Remove premature incorrect
19672         optimization.
19674 2021-06-22  Jakub Jelinek  <jakub@redhat.com>
19676         PR tree-optimization/101159
19677         * tree-vect-patterns.c (vect_recog_popcount_pattern): Fix some
19678         comment typos.
19680 2021-06-22  Jakub Jelinek  <jakub@redhat.com>
19682         PR middle-end/101160
19683         * function.c (assign_parms): For decl_result with TYPE_EMPTY_P type
19684         clear crtl->return_rtx instead of keeping it referencing a pseudo.
19686 2021-06-22  Jakub Jelinek  <jakub@redhat.com>
19687             Andrew Pinski  <apinski@marvell.com>
19689         PR tree-optimization/101162
19690         * fold-const.c (range_check_type): Handle OFFSET_TYPE like pointer
19691         types.
19693 2021-06-22  Andrew MacLeod  <amacleod@redhat.com>
19695         * range-op.cc (range_relational_tests): New.
19696         (range_op_tests): Call range_relational_tests.
19698 2021-06-22  Andrew MacLeod  <amacleod@redhat.com>
19700         * range-op.cc (operator_cast::lhs_op1_relation): New.
19701         (operator_identity::lhs_op1_relation): Mew.
19703 2021-06-22  Andrew MacLeod  <amacleod@redhat.com>
19705         * range-op.cc (operator_minus::op1_op2_relation_effect): New.
19707 2021-06-22  Andrew MacLeod  <amacleod@redhat.com>
19709         * range-op.cc (operator_plus::lhs_op1_relation): New.
19710         (operator_plus::lhs_op2_relation): New.
19712 2021-06-22  Andrew MacLeod  <amacleod@redhat.com>
19714         * gimple-range-cache.cc (ranger_cache::ranger_cache): Create a
19715         relation_oracle if dominators exist.
19716         (ranger_cache::~ranger_cache): Dispose of oracle.
19717         (ranger_cache::dump_bb): Dump oracle.
19718         * gimple-range.cc (fur_source::fur_source): New.
19719         (fur_source::get_operand): Use mmeber query.
19720         (fur_source::get_phi_operand): Use member_query.
19721         (fur_source::query_relation): New.
19722         (fur_source::register_dependency): Delete.
19723         (fur_source::register_relation): New.
19724         (fur_edge::fur_edge): Adjust.
19725         (fur_edge::get_phi_operand): Fix comment.
19726         (fur_edge::query): Delete.
19727         (fur_stmt::fur_stmt): Adjust.
19728         (fur_stmt::query): Delete.
19729         (fur_depend::fur_depend): Adjust.
19730         (fur_depend::register_relation): New.
19731         (fur_depend::register_relation): New.
19732         (fur_list::fur_list): Adjust.
19733         (fur_list::get_operand): Use member query.
19734         (fold_using_range::range_of_range_op): Process and query relations.
19735         (fold_using_range::range_of_address): Adjust dependency call.
19736         (fold_using_range::range_of_phi): Ditto.
19737         (gimple_ranger::gimple_ranger): New.  Use ranger_ache oracle.
19738         (fold_using_range::relation_fold_and_or): New.
19739         (fold_using_range::postfold_gcond_edges): New.
19740         * gimple-range.h (class gimple_ranger): Adjust.
19741         (class fur_source): Adjust members.
19742         (class fur_stmt): Ditto.
19743         (class fold_using_range): Ditto.
19745 2021-06-22  Andrew MacLeod  <amacleod@redhat.com>
19747         * range-op.cc (range_operator::wi_fold): Apply relation effect.
19748         (range_operator::fold_range): Adjust and apply relation effect.
19749         (*::fold_range): Add relation parameters.
19750         (*::op1_range): Ditto.
19751         (*::op2_range): Ditto.
19752         (range_operator::lhs_op1_relation): New.
19753         (range_operator::lhs_op2_relation): New.
19754         (range_operator::op1_op2_relation): New.
19755         (range_operator::op1_op2_relation_effect): New.
19756         (relop_early_resolve): New.
19757         (operator_equal::op1_op2_relation): New.
19758         (operator_equal::fold_range): Call relop_early_resolve.
19759         (operator_not_equal::op1_op2_relation): New.
19760         (operator_not_equal::fold_range): Call relop_early_resolve.
19761         (operator_lt::op1_op2_relation): New.
19762         (operator_lt::fold_range): Call relop_early_resolve.
19763         (operator_le::op1_op2_relation): New.
19764         (operator_le::fold_range): Call relop_early_resolve.
19765         (operator_gt::op1_op2_relation): New.
19766         (operator_gt::fold_range): Call relop_early_resolve.
19767         (operator_ge::op1_op2_relation): New.
19768         (operator_ge::fold_range): Call relop_early_resolve.
19769         * range-op.h (class range_operator): Adjust parameters and methods.
19771 2021-06-22  Andrew MacLeod  <amacleod@redhat.com>
19773         * Makefile.in (OBJS): Add value-relation.o.
19774         * gimple-range.h: Adjust include files.
19775         * tree-data-ref.c: Adjust include file order.
19776         * value-query.cc (range_query::get_value_range): Default to no oracle.
19777         (range_query::query_relation): New.
19778         (range_query::query_relation): New.
19779         * value-query.h (class range_query): Adjust.
19780         * value-relation.cc: New.
19781         * value-relation.h: New.
19783 2021-06-22  Richard Biener  <rguenther@suse.de>
19785         PR tree-optimization/101151
19786         * tree-ssa-sink.c (statement_sink_location): Expand irreducible
19787         region check.
19789 2021-06-22  Jojo R  <rjiejie@linux.alibaba.com>
19791         * config/riscv/riscv.c (thead_c906_tune_info): New.
19792         (riscv_tune_info_table): Use new tune.
19794 2021-06-22  Richard Biener  <rguenther@suse.de>
19796         PR tree-optimization/101158
19797         * tree-vect-slp.c (vect_build_slp_tree_1): Move same operand
19798         checking after checking for matching operation.
19800 2021-06-22  Richard Biener  <rguenther@suse.de>
19802         PR tree-optimization/101159
19803         * tree-vect-patterns.c (vect_recog_popcount_pattern): Add
19804         missing NULL vectype check.
19806 2021-06-22  Richard Biener  <rguenther@suse.de>
19808         PR tree-optimization/101154
19809         * tree-vect-slp.c (vect_build_slp_tree_2): Fix out-of-bound access.
19811 2021-06-22  Jakub Jelinek  <jakub@redhat.com>
19813         PR target/11877
19814         * config/i386/i386-protos.h (ix86_last_zero_store_uid): Declare.
19815         * config/i386/i386-expand.c (ix86_last_zero_store_uid): New variable.
19816         * config/i386/i386.c (ix86_expand_prologue): Clear it.
19817         * config/i386/i386.md (peephole2s for 1/2/4 stores of const0_rtx):
19818         Remove "" from match_operand.  Emit new insns using emit_move_insn and
19819         set ix86_last_zero_store_uid to INSN_UID of the last store.
19820         Add peephole2s for 1/2/4 stores of const0_rtx following previous
19821         successful peep2s.
19823 2021-06-22  Martin Liska  <mliska@suse.cz>
19825         * auto-profile.c (AUTO_PROFILE_VERSION): Bump as string format
19826         was changed.
19828 2021-06-22  Martin Liska  <mliska@suse.cz>
19830         * gcov-io.h: Remove padding entries.
19832 2021-06-22  liuhongt  <hongtao.liu@intel.com>
19834         PR tree-optimization/97770
19835         * tree-vect-patterns.c (vect_recog_popcount_pattern):
19836         New.
19837         (vect_recog_func vect_vect_recog_func_ptrs): Add new pattern.
19839 2021-06-22  liuhongt  <hongtao.liu@intel.com>
19841         PR target/100267
19842         * config/i386/i386-builtin.def (BDESC): Adjust builtin name.
19843         * config/i386/sse.md (<avx512>_expand<mode>_mask): Rename to ..
19844         (expand<mode>_mask): this ..
19845         (*expand<mode>_mask): New pre_reload splitter to transform
19846         v{,p}expand* to vmov* when mask is zero, all ones, or has all
19847         ones in it's lower part, otherwise still generate
19848         v{,p}expand*.
19850 2021-06-22  liuhongt  <hongtao.liu@intel.com>
19852         PR target/100310
19853         * config/i386/i386-expand.c
19854         (ix86_expand_special_args_builtin): Keep constm1_operand only
19855         if it satisfies insn's operand predicate.
19857 2021-06-21  Jason Merrill  <jason@redhat.com>
19859         PR target/88529
19860         * df-scan.c (df_ref_record): Check that regno < endregno.
19861         * function.c (assign_parms, expand_function_end): Do nothing with a
19862         TYPE_EMPTY_P result.
19864 2021-06-21  Richard Biener  <rguenther@suse.de>
19866         PR tree-optimization/101120
19867         * tree-vect-data-refs.c (bump_vector_ptr): Fold the
19868         built increment.
19869         * tree-vect-slp.c (vect_transform_slp_perm_load): Add
19870         DR chain DCE capability.
19871         * tree-vectorizer.h (vect_transform_slp_perm_load): Adjust.
19872         * tree-vect-stmts.c (vectorizable_load): Remove unused
19873         loads in the DR chain for SLP.
19875 2021-06-21  Jakub Jelinek  <jakub@redhat.com>
19877         PR inline-asm/100785
19878         * gimplify.c (gimplify_asm_expr): Don't diagnose errors if
19879         output or input operands were already error_mark_node.
19880         * cfgexpand.c (expand_asm_stmt): If errors are emitted,
19881         remove all inputs, outputs and clobbers from the asm and
19882         set template to "".
19884 2021-06-21  prathamesh.kulkarni  <prathamesh.kulkarni@linaro.org>
19886         * config/arm/arm_neon.h (vceq_s8): Replace builtin with __a == __b.
19887         (vceq_s16): Likewise.
19888         (vceq_s32): Likewise.
19889         (vceq_u8): Likewise.
19890         (vceq_u16): Likewise.
19891         (vceq_u32): Likewise.
19892         (vceq_p8): Likewise.
19893         (vceqq_s8): Likewise.
19894         (vceqq_s16): Likewise.
19895         (vceqq_s32): Likewise.
19896         (vceqq_u8): Likewise.
19897         (vceqq_u16): Likewise.
19898         (vceqq_u32): Likewise.
19899         (vceqq_p8): Likewise.
19900         (vceq_f32): Gate __a == __b on __FAST_MATH__.
19901         (vceqq_f32): Likewise.
19902         (vceq_f16): Likewise.
19903         (vceqq_f16): Likewise.
19905 2021-06-21  prathamesh.kulkarni  <prathamesh.kulkarni@linaro.org>
19907         PR target/97906
19908         * config/arm/iterators.md (NEON_VACMP): Remove.
19909         * config/arm/neon.md (neon_vca<cmp_op><mode>): Use GLTE instead of GTGE
19910         iterator.
19911         (neon_vca<cmp_op><mode>_insn): Likewise.
19912         (neon_vca<cmp_op_unsp><mode>_insn_unspec): Use NEON_VAGLTE instead of
19913         NEON_VACMP.
19915 2021-06-21  Richard Biener  <rguenther@suse.de>
19917         PR tree-optimization/101121
19918         * tree-vect-slp.c (vect_build_slp_tree_2): To not fail fatally
19919         when we just lack a stmt with the desired op when doing permutation.
19920         (vect_build_slp_tree): When caching a failed SLP build attempt
19921         assert that at least one lane is marked as not matching.
19923 2021-06-21  liuhongt  <hongtao.liu@intel.com>
19925         PR target/101142
19926         * config/i386/i386.md: (*anddi_1): Disparage slightly the mask
19927         register alternative.
19928         (*and<mode>_1): Ditto.
19929         (*andqi_1): Ditto.
19930         (*andn<mode>_1): Ditto.
19931         (*<code><mode>_1): Ditto.
19932         (*<code>qi_1): Ditto.
19933         (*one_cmpl<mode>2_1): Ditto.
19934         (*one_cmplsi2_1_zext): Ditto.
19935         (*one_cmplqi2_1): Ditto.
19936         * config/i386/i386.c (x86_order_regs_for_local_alloc): Change
19937         the order of mask registers to be before general registers.
19939 2021-06-21  Roger Sayle  <roger@nextmovesoftware.com>
19941         PR target/11877
19942         * config/i386/i386.md: New define_peephole2s to shrink writing
19943         1, 2 or 4 consecutive zeros to memory when optimizing for size.
19945 2021-06-18  Jeff Law  <jeffreyalaw@gmail.com>
19947         * config/h8300/h8300.c (h8300_select_cc_mode): Handle SYMBOL_REF.
19948         * config/h8300/logical.md (<code><mode>3 logcial expander): Generate
19949         more efficient code when the source can be trivially simplified.
19951 2021-06-18  Andrew MacLeod  <amacleod@redhat.com>
19953         * gimple-range-cache.cc (ranger_cache::range_of_def):  Calculate
19954         a range if global is not available.
19955         (ranger_cache::entry_range): Fallback to range_of_def.
19956         * gimple-range-cache.h (range_of_def): Adjust prototype.
19958 2021-06-18  Andrew MacLeod  <amacleod@redhat.com>
19960         PR tree-optimization/101014
19961         * gimple-range-cache.cc (ranger_cache::ranger_cache): Remove poor
19962         value list.
19963         (ranger_cache::~ranger_cache): Ditto.
19964         (ranger_cache::enable_new_values): Delete.
19965         (ranger_cache::push_poor_value): Delete.
19966         (ranger_cache::range_of_def): Remove poor value processing.
19967         (ranger_cache::entry_range): Ditto.
19968         (ranger_cache::fill_block_cache): Ditto.
19969         * gimple-range-cache.h (class ranger_cache): Remove poor value members.
19970         * gimple-range.cc (gimple_ranger::range_of_expr): Remove call.
19971         * gimple-range.h (class gimple_ranger): Adjust.
19973 2021-06-18  Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
19975         PR target/100856
19976         * common/config/arm/arm-common.c (arm_canon_arch_option_1): New function
19977         derived from arm_canon_arch.
19978         (arm_canon_arch_option): Call it.
19979         (arm_canon_arch_multilib_option): New function.
19980         * config/arm/arm-cpus.in (IGNORE_FOR_MULTILIB): New fgroup.
19981         * config/arm/arm.h (arm_canon_arch_multilib_option): New prototype.
19982         (CANON_ARCH_MULTILIB_SPEC_FUNCTION): New macro.
19983         (MULTILIB_ARCH_CANONICAL_SPECS): New macro.
19984         (DRIVER_SELF_SPECS): Add MULTILIB_ARCH_CANONICAL_SPECS.
19985         * config/arm/arm.opt (mlibarch): New option.
19986         * config/arm/t-rmprofile (MULTILIB_MATCHES): For armv8*-m, replace use
19987         of march on RHS with mlibarch.
19989 2021-06-18  Marcel Vollweiler  <marcel@codesourcery.com>
19991         * config.in: Regenerate.
19992         * config/gcn/gcn.c (print_operand_address): Fix for global_load assembler
19993         functions.
19994         * configure: Regenerate.
19995         * configure.ac: Fix for global_load assembler functions.
19997 2021-06-18  Richard Biener  <rguenther@suse.de>
19999         PR tree-optimization/101112
20000         * tree-vect-slp.c (vect_slp_linearize_chain): Fix condition
20001         to lookup a pattern stmt def.
20003 2021-06-18  Jakub Jelinek  <jakub@redhat.com>
20005         PR middle-end/101062
20006         * stor-layout.c (finish_bitfield_layout): Don't add bitfield
20007         representatives in QUAL_UNION_TYPE.
20009 2021-06-18  Andrew Pinski  <apinski@marvell.com>
20011         * tree-ssa-phiopt.c (replace_phi_edge_with_variable):
20012         Add counting of how many times it is done.
20013         (factor_out_conditional_conversion): Likewise.
20014         (match_simplify_replacement): Likewise.
20015         (value_replacement): Likewise.
20016         (spaceship_replacement): Likewise.
20017         (cond_store_replacement): Likewise.
20018         (cond_if_else_store_replacement_1): Likewise.
20019         (hoist_adjacent_loads): Likewise.
20021 2021-06-18  Andrew Pinski  <apinski@marvell.com>
20023         * tree-cfg.c (verify_gimple_assign_unary): Reject point and offset
20024         types on NEGATE_EXPR, ABS_EXPR, BIT_NOT_EXPR, PAREN_EXPR and CNONJ_EXPR.
20025         (verify_gimple_assign_binary): Reject point and offset types on
20026         MULT_EXPR, MULT_HIGHPART_EXPR, TRUNC_DIV_EXPR, CEIL_DIV_EXPR,
20027         FLOOR_DIV_EXPR, ROUND_DIV_EXPR, TRUNC_MOD_EXPR, CEIL_MOD_EXPR,
20028         FLOOR_MOD_EXPR, ROUND_MOD_EXPR, RDIV_EXPR, and EXACT_DIV_EXPR.
20030 2021-06-18  Michael Meissner  <meissner@linux.ibm.com>
20032         * config/rs6000/rs6000.c (rs6000_emit_minmax): Add support for ISA
20033         3.1 IEEE 128-bit floating point xsmaxcqp/xsmincqp instructions.
20034         * config/rs6000/rs6000.md (s<minmax><mode>3, IEEE128 iterator):
20035         New insns.
20037 2021-06-17  Aaron Sawdey  <acsawdey@linux.ibm.com>
20039         * config/rs6000/genfusion.pl (gen_logical_addsubf): Add
20040         earlyclobber to alts 0/1.
20041         (gen_addadd): Add earlyclobber to alts 0/1.
20042         * config/rs6000/fusion.md: Regenerate file.
20044 2021-06-17  Trevor Saunders  <tbsaunde@tbsaunde.org>
20046         * cfgloopanal.c (get_loop_hot_path): Make path an auto_vec.
20048 2021-06-17  Andrew MacLeod  <amacleod@redhat.com>
20050         * gimple-range-cache.cc: Comment cleanups.
20051         * gimple-range-gori.cc: Comment cleanups.
20052         * gimple-range.cc: Comment/spacing cleanups
20053         * value-range.h: Comment cleanups.
20055 2021-06-17  H.J. Lu  <hjl.tools@gmail.com>
20057         PR target/100704
20058         * calls.c (expand_call): Replace PUSH_ARGS with
20059         targetm.calls.push_argument (0).
20060         (emit_library_call_value_1): Likewise.
20061         * defaults.h (PUSH_ARGS): Removed.
20062         (PUSH_ARGS_REVERSED): Replace PUSH_ARGS with
20063         targetm.calls.push_argument (0).
20064         * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
20065         (emit_push_insn): Pass the number bytes to push to
20066         targetm.calls.push_argument and pass 0 if ARGS_ADDR is 0.
20067         * hooks.c (hook_bool_uint_true): New.
20068         * hooks.h (hook_bool_uint_true): Likewise.
20069         * rtlanal.c (nonzero_bits1): Replace PUSH_ARGS with
20070         targetm.calls.push_argument (0).
20071         * target.def (push_argument): Add a targetm.calls hook.
20072         * targhooks.c (default_push_argument): New.
20073         * targhooks.h (default_push_argument): Likewise.
20074         * config/bpf/bpf.h (PUSH_ARGS): Removed.
20075         * config/cr16/cr16.c (TARGET_PUSH_ARGUMENT): New.
20076         * config/cr16/cr16.h (PUSH_ARGS): Removed.
20077         * config/i386/i386.c (ix86_push_argument): New.
20078         (TARGET_PUSH_ARGUMENT): Likewise.
20079         * config/i386/i386.h (PUSH_ARGS): Removed.
20080         * config/m32c/m32c.c (TARGET_PUSH_ARGUMENT): New.
20081         * config/m32c/m32c.h (PUSH_ARGS): Removed.
20082         * config/nios2/nios2.h (PUSH_ARGS): Likewise.
20083         * config/pru/pru.h (PUSH_ARGS): Likewise.
20084         * doc/tm.texi.in: Remove PUSH_ARGS documentation.  Add
20085         TARGET_PUSH_ARGUMENT hook.
20086         * doc/tm.texi: Regenerated.
20088 2021-06-17  Uroš Bizjak  <ubizjak@gmail.com>
20090         PR target/97194
20091         * config/i386/i386-expand.c (expand_vector_set_var):
20092         Handle V2FS mode remapping.  Pass TARGET_MMX_WITH_SSE to
20093         ix86_expand_vector_init_duplicate.
20094         (ix86_expand_vector_init_duplicate): Emit insv_1 for
20095         QImode for !TARGET_PARTIAL_REG_STALL.
20096         * config/i386/predicates.md (vec_setm_mmx_operand): New predicate.
20097         * config/i386/mmx.md (vec_setv2sf): Use vec_setm_mmx_operand
20098         as operand 2 predicate.  Call ix86_expand_vector_set_var
20099         for non-constant index operand.
20100         (vec_setv2si): Ditto.
20101         (vec_setv4hi): Ditto.
20102         (vec_setv8qi): ditto.
20104 2021-06-17  Aldy Hernandez  <aldyh@redhat.com>
20106         PR tree-optimization/100790
20107         * gimple-range.cc (range_of_builtin_call): Cleanup clz and ctz
20108         code.
20110 2021-06-17  Martin Liska  <mliska@suse.cz>
20112         * doc/invoke.texi: Use consistently -O1 instead of -O.
20114 2021-06-17  Martin Liska  <mliska@suse.cz>
20116         * gcov-io.h: Update documentation entry about string format.
20118 2021-06-17  Marius Hillenbrand  <mhillen@linux.ibm.com>
20120         PR target/100871
20121         * config/s390/vecintrin.h (vec_doublee): Fix to use
20122           __builtin_s390_vflls.
20123         (vec_floate): Fix to use __builtin_s390_vflrd.
20125 2021-06-17  Trevor Saunders  <tbsaunde@tbsaunde.org>
20127         * dominance.c (get_dominated_to_depth): Return auto_vec<basic_block>.
20128         * dominance.h (get_dominated_to_depth): Likewise.
20129         (get_all_dominated_blocks): Likewise.
20130         * cfgcleanup.c (delete_unreachable_blocks): Adjust.
20131         * gcse.c (hoist_code): Likewise.
20132         * tree-cfg.c (remove_edge_and_dominated_blocks): Likewise.
20133         * tree-parloops.c (oacc_entry_exit_ok): Likewise.
20134         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
20135         * tree-ssa-phiprop.c (pass_phiprop::execute): Likewise.
20137 2021-06-17  Trevor Saunders  <tbsaunde@tbsaunde.org>
20139         * dominance.c (get_dominated_by_region): Return auto_vec<basic_block>.
20140         * dominance.h (get_dominated_by_region): Likewise.
20141         * tree-cfg.c (gimple_duplicate_sese_region): Adjust.
20142         (gimple_duplicate_sese_tail): Likewise.
20143         (move_sese_region_to_fn): Likewise.
20145 2021-06-17  Trevor Saunders  <tbsaunde@tbsaunde.org>
20147         * dominance.c (get_dominated_by): Return auto_vec<basic_block>.
20148         * dominance.h (get_dominated_by): Likewise.
20149         * auto-profile.c (afdo_find_equiv_class): Adjust.
20150         * cfgloopmanip.c (duplicate_loop_to_header_edge): Likewise.
20151         * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
20152         * tree-cfg.c (test_linear_chain): Likewise.
20153         (test_diamond): Likewise.
20155 2021-06-17  Trevor Saunders  <tbsaunde@tbsaunde.org>
20157         * cfgloop.h (get_loop_hot_path): Return auto_vec<basic_block>.
20158         * cfgloopanal.c (get_loop_hot_path): Likewise.
20159         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise.
20161 2021-06-17  Trevor Saunders  <tbsaunde@tbsaunde.org>
20163         * cgraph.c (cgraph_node::collect_callers): Return
20164         auto_vec<cgraph_edge *>.
20165         * cgraph.h (cgraph_node::collect_callers): Likewise.
20166         * ipa-cp.c (create_specialized_node): Adjust.
20167         (decide_about_value): Likewise.
20168         (decide_whether_version_node): Likewise.
20169         * ipa-sra.c (process_isra_node_results): Likewise.
20171 2021-06-17  Trevor Saunders  <tbsaunde@tbsaunde.org>
20173         * vec.h (vl_ptr>::using_auto_storage): Handle null m_vec.
20174         (auto_vec<T, 0>::auto_vec): Define move constructor, and delete copy
20175         constructor.
20176         (auto_vec<T, 0>::operator=): Define move assignment and delete copy
20177         assignment.
20179 2021-06-17  Aldy Hernandez  <aldyh@redhat.com>
20181         * gimple-range.cc (debug_seed_ranger): New.
20182         (dump_ranger): New.
20183         (debug_ranger): New.
20185 2021-06-17  Richard Biener   <rguenther@suse.de>
20187         PR tree-optimization/54400
20188         * tree-vectorizer.h (enum slp_instance_kind): Add
20189         slp_inst_kind_bb_reduc.
20190         (reduction_fn_for_scalar_code): Declare.
20191         * tree-vect-data-refs.c (vect_slp_analyze_instance_dependence):
20192         Check SLP_INSTANCE_KIND instead of looking at the
20193         representative.
20194         (vect_slp_analyze_instance_alignment): Likewise.
20195         * tree-vect-loop.c (reduction_fn_for_scalar_code): Export.
20196         * tree-vect-slp.c (vect_slp_linearize_chain): Split out
20197         chain linearization from vect_build_slp_tree_2 and generalize
20198         for the use of BB reduction vectorization.
20199         (vect_build_slp_tree_2): Adjust accordingly.
20200         (vect_optimize_slp): Elide permutes at the root of BB reduction
20201         instances.
20202         (vectorizable_bb_reduc_epilogue): New function.
20203         (vect_slp_prune_covered_roots): Likewise.
20204         (vect_slp_analyze_operations): Use them.
20205         (vect_slp_check_for_constructors): Recognize associatable
20206         chains for BB reduction vectorization.
20207         (vectorize_slp_instance_root_stmt): Generate code for the
20208         BB reduction epilogue.
20210 2021-06-17  Andrew MacLeod  <amacleod@redhat.com>
20212         * gimple-range-gori.cc (gori_compute::has_edge_range_p): Check with
20213         may_recompute_p.
20214         (gori_compute::may_recompute_p): New.
20215         (gori_compute::outgoing_edge_range_p): Perform recomputations.
20216         * gimple-range-gori.h (class gori_compute): Add prototype.
20218 2021-06-17  Andrew MacLeod  <amacleod@redhat.com>
20220         * gimple-range-cache.cc (ranger_cache::range_on_edge): Always return
20221         true when a range can be calculated.
20222         * gimple-range.cc (gimple_ranger::dump_bb): Check has_edge_range_p.
20224 2021-06-16  Martin Sebor  <msebor@redhat.com>
20226         * doc/invoke.texi (-Wmismatched-dealloc, -Wmismatched-new-delete):
20227         Correct documented defaults.
20229 2021-06-16  Andrew MacLeod  <amacleod@redhat.com>
20231         * gimple-range-cache.cc (ranger_cache::ranger_cache): Initialize
20232         m_new_value_p directly.
20234 2021-06-16  Uroš Bizjak  <ubizjak@gmail.com>
20236         PR target/89021
20237         * config/i386/i386-expand.c (expand_vec_perm_2perm_pblendv):
20238         Handle 64bit modes for TARGET_SSE4_1.
20239         (expand_vec_perm_pshufb2): Handle 64bit modes for TARGET_SSSE3.
20240         (expand_vec_perm_even_odd_pack): Handle V4HI mode.
20241         (expand_vec_perm_even_odd_1) <case E_V4HImode>: Expand via
20242         expand_vec_perm_pshufb2 for TARGET_SSSE3 and via
20243         expand_vec_perm_even_odd_pack for TARGET_SSE4_1.
20244         * config/i386/mmx.md (mmx_packusdw): New insn pattern.
20246 2021-06-16  Jonathan Wright  <jonathan.wright@arm.com>
20248         * config/aarch64/aarch64-simd.md (aarch64_<sur><addsub>hn<mode>):
20249         Change to an expander that emits the correct instruction
20250         depending on endianness.
20251         (aarch64_<sur><addsub>hn<mode>_insn_le): Define.
20252         (aarch64_<sur><addsub>hn<mode>_insn_be): Define.
20254 2021-06-16  Jonathan Wright  <jonathan.wright@arm.com>
20256         * config/aarch64/aarch64-simd-builtins.def: Split generator
20257         for aarch64_<su>qmovn builtins into scalar and vector
20258         variants.
20259         * config/aarch64/aarch64-simd.md (aarch64_<su>qmovn<mode>_insn_le):
20260         Define.
20261         (aarch64_<su>qmovn<mode>_insn_be): Define.
20262         (aarch64_<su>qmovn<mode>): Split into scalar and vector
20263         variants. Change vector variant to an expander that emits the
20264         correct instruction depending on endianness.
20266 2021-06-16  Jonathan Wright  <jonathan.wright@arm.com>
20268         * config/aarch64/aarch64-simd-builtins.def: Split generator
20269         for aarch64_sqmovun builtins into scalar and vector variants.
20270         * config/aarch64/aarch64-simd.md (aarch64_sqmovun<mode>):
20271         Split into scalar and vector variants. Change vector variant
20272         to an expander that emits the correct instruction depending
20273         on endianness.
20274         (aarch64_sqmovun<mode>_insn_le): Define.
20275         (aarch64_sqmovun<mode>_insn_be): Define.
20277 2021-06-16  Jonathan Wright  <jonathan.wright@arm.com>
20279         * config/aarch64/aarch64-simd.md (aarch64_xtn<mode>_insn_le):
20280         Define - modeling zero-high-half semantics.
20281         (aarch64_xtn<mode>): Change to an expander that emits the
20282         appropriate instruction depending on endianness.
20283         (aarch64_xtn<mode>_insn_be): Define - modeling zero-high-half
20284         semantics.
20285         (aarch64_xtn2<mode>_le): Rename to...
20286         (aarch64_xtn2<mode>_insn_le): This.
20287         (aarch64_xtn2<mode>_be): Rename to...
20288         (aarch64_xtn2<mode>_insn_be): This.
20289         (vec_pack_trunc_<mode>): Emit truncation instruction instead
20290         of aarch64_xtn.
20291         * config/aarch64/iterators.md (Vnarrowd): Add Vnarrowd mode
20292         attribute iterator.
20294 2021-06-16  Martin Jambor  <mjambor@suse.cz>
20296         PR tree-optimization/100453
20297         * tree-sra.c (create_access): Disqualify any const candidates
20298         which are written to.
20299         (sra_modify_expr): Do not store sub-replacements back to a const base.
20300         (handle_unscalarized_data_in_subtree): Likewise.
20301         (sra_modify_assign): Likewise.  Earlier, use TREE_READONLy test
20302         instead of constant_decl_p.
20304 2021-06-16  Jakub Jelinek  <jakub@redhat.com>
20306         PR middle-end/101062
20307         * stor-layout.c (finish_bitfield_representative): For fields in unions
20308         assume nextf is always NULL.
20309         (finish_bitfield_layout): Compute bit field representatives also in
20310         unions, but handle it as if each bitfield was the only field in the
20311         aggregate.
20313 2021-06-16  Richard Biener  <rguenther@suse.de>
20315         PR tree-optimization/101088
20316         * tree-ssa-loop-im.c (sm_seq_valid_bb): Only look for
20317         supported refs on edges.  Do not assert same ref but
20318         different kind stores are unsuported but mark them so.
20319         (hoist_memory_references): Only look for supported refs
20320         on exits.
20322 2021-06-16  Roger Sayle  <roger@nextmovesoftware.com>
20324         PR rtl-optimization/46235
20325         * config/i386/i386.md: New define_split for bt followed by cmov.
20326         (*bt<mode>_setcqi): New define_insn_and_split for bt followed by setc.
20327         (*bt<mode>_setncqi): New define_insn_and_split for bt then setnc.
20328         (*bt<mode>_setnc<mode>): New define_insn_and_split for bt followed
20329         by setnc with zero extension.
20331 2021-06-16  Richard Biener  <rguenther@suse.de>
20333         PR tree-optimization/101083
20334         * tree-vect-slp.c (vect_slp_build_two_operator_nodes): Get
20335         vectype as argument.
20336         (vect_build_slp_tree_2): Adjust.
20338 2021-06-15  Martin Sebor  <msebor@redhat.com>
20340         PR middle-end/100876
20341         * builtins.c: (gimple_call_return_array): Account for size_t
20342         mangling as either unsigned int or unsigned long
20344 2021-06-15  Jeff Law  <jeffreyalaw@gmail.com>
20346         * compare-elim.c (try_eliminate_compare): Run DCE to clean things
20347         up before eliminating comparisons.
20349 2021-06-15  Aldy Hernandez  <aldyh@redhat.com>
20351         * range-op.cc (operator_bitwise_or::wi_fold): Make sure
20352         nonzero|X is nonzero.
20353         (range_op_bitwise_and_tests): Add tests for above.
20355 2021-06-15  Carl Love  <cel@us.ibm.com>
20357         PR target/101022
20358         * config/rs6000/rs6000-builtin.def (VCMPEQUT): Fix the ICODE for the
20359         enum definition.
20360         (VRLQ, VSLQ, VSRQ, VSRAQ): Remove unused BU_P10_OVERLOAD_2
20361         definitions.
20363 2021-06-15  Tobias Burnus  <tobias@codesourcery.com>
20365         PR fortran/92568
20366         * gimplify.c (enum gimplify_defaultmap_kind): Add GDMK_SCALAR_TARGET.
20367         (struct gimplify_omp_ctx): Extend defaultmap array by one.
20368         (new_omp_context): Init defaultmap[GDMK_SCALAR_TARGET].
20369         (omp_notice_variable): Update type classification for Fortran.
20370         (gimplify_scan_omp_clauses): Update calls for new argument; handle
20371         GDMK_SCALAR_TARGET; for Fortran, GDMK_POINTER avoid GOVD_MAP_0LEN_ARRAY.
20372         * langhooks-def.h (lhd_omp_scalar_p): Add 'ptr_ok' argument.
20373         * langhooks.c (lhd_omp_scalar_p): Likewise.
20374         (LANG_HOOKS_OMP_ALLOCATABLE_P, LANG_HOOKS_OMP_SCALAR_TARGET_P): New.
20375         (LANG_HOOKS_DECLS): Add them.
20376         * langhooks.h (struct lang_hooks_for_decls): Add new hooks, update
20377         omp_scalar_p pointer type to include the new bool argument.
20379 2021-06-15  David Malcolm  <dmalcolm@redhat.com>
20381         * doc/analyzer.texi
20382         (Special Functions for Debugging the Analyzer): Add
20383         __analyzer_dump_capacity.
20385 2021-06-15  Jakub Jelinek  <jakub@redhat.com>
20387         PR target/101046
20388         * expr.c (expand_expr_real_2) <case VEC_PACK_FIX_TRUNC_EXPR,
20389         case VEC_PACK_TRUNC_EXPR>: Clear subtarget when changing mode.
20391 2021-06-15  Richard Biener  <rguenther@suse.de>
20393         * cfgloopanal.c (mark_irreducible_loops): Use a dominance
20394         check to identify loop latches.
20395         * cfgloop.c (verify_loop_structure): Likewise.
20396         * loop-init.c (apply_loop_flags): Allow marked irreducible
20397         regions even with multiple latches.
20398         * predict.c (rebuild_frequencies): Simplify.
20400 2021-06-15  Richard Biener  <rguenther@suse.de>
20402         * tree-ssa-threadupdate.c
20403         (jump_thread_path_registry::mark_threaded_blocks): Assert we
20404         have marked irreducible regions.
20406 2021-06-14  Martin Sebor  <msebor@redhat.com>
20408         PR c++/100876
20409         * builtins.c (gimple_call_return_array): Check for attribute fn spec.
20410         Handle calls to placement new.
20411         (ndecl_dealloc_argno): Avoid placement delete.
20413 2021-06-14  Peter Bergner  <bergner@linux.ibm.com>
20415         PR target/100777
20416         * config/rs6000/rs6000-call.c (rs6000_gimple_fold_mma_builtin): Use
20417         create_tmp_reg_or_ssa_name().
20419 2021-06-14  Andrew MacLeod  <amacleod@redhat.com>
20421         * gimple-range-cache.cc (ranger_cache::ranger_cache): Adjust.
20422         (ranger_cache::enable_new_values): Set to specified value and
20423         return the old value.
20424         (ranger_cache::disable_new_values): Delete.
20425         (ranger_cache::fill_block_cache): Disable non 1st order derived
20426         poor values.
20427         * gimple-range-cache.h (ranger_cache): Adjust prototypes.
20428         * gimple-range.cc (gimple_ranger::range_of_expr): Adjust.
20430 2021-06-14  Uroš Bizjak  <ubizjak@gmail.com>
20432         PR target/101058
20433         * config/i386/i386-expand.c (ix86_vectorize_vec_perm_const):
20434         Return true early when testing with V2HImode.
20435         * config/i386/mmx.md (*punpckwd): Split to sse2_pshuflw_1.
20437 2021-06-14  Christophe Lyon  <christophe.lyon@linaro.org>
20439         * config/arm/mve.md (mve_vec_unpack<US>_lo_<mode>): New pattern.
20440         (mve_vec_unpack<US>_hi_<mode>): New pattern.
20441         (@mve_vec_pack_trunc_lo_<mode>): New pattern.
20442         (mve_vmovntq_<supf><mode>): Prefix with '@'.
20443         * config/arm/neon.md (vec_unpack<US>_hi_<mode>): Move to
20444         vec-common.md.
20445         (vec_unpack<US>_lo_<mode>): Likewise.
20446         (vec_pack_trunc_<mode>): Rename to
20447         neon_quad_vec_pack_trunc_<mode>.
20448         * config/arm/vec-common.md (vec_unpack<US>_hi_<mode>): New
20449         pattern.
20450         (vec_unpack<US>_lo_<mode>): New.
20451         (vec_pack_trunc_<mode>): New.
20453 2021-06-14  Richard Biener  <rguenther@suse.de>
20455         PR tree-optimization/100934
20456         * tree-ssa-dom.c (pass_dominator::execute): Properly
20457         mark irreducible regions.
20459 2021-06-14  Martin Liska  <mliska@suse.cz>
20461         * doc/invoke.texi: Put r{...} on the same line as @item.
20463 2021-06-14  Martin Liska  <mliska@suse.cz>
20465         * doc/invoke.texi: Add missing newline.
20467 2021-06-14  Martin Liska  <mliska@suse.cz>
20469         * doc/invoke.texi: Remove '+' charasters.
20471 2021-06-14  Claudiu Zissulescu  <claziss@synopsys.com>
20473         * config.gcc (arc): Add support for with_cpu option.
20474         * config/arc/arc.h (OPTION_DEFAULT_SPECS): Add fpu.
20476 2021-06-14  Richard Biener  <rguenther@suse.de>
20478         PR tree-optimization/101031
20479         * tree-ssa-strlen.c (maybe_invalidate): Increment max_size
20480         instead of size when accounting for a possibly string
20481         terminating nul.
20483 2021-06-14  Martin Liska  <mliska@suse.cz>
20485         * gimple-ssa-evrp.c (pointer_equiv_analyzer::~pointer_equiv_analyzer): Use delete[].
20487 2021-06-14  Aldy Hernandez  <aldyh@redhat.com>
20489         * value-query.cc (gimple_range_global): Call get_range_global
20490         if called after inlining.
20492 2021-06-13  Uroš Bizjak  <ubizjak@gmail.com>
20494         PR target/101021
20495         * config/i386/i386-expand.c (expand_vec_perm_pshufb):
20496         Emit constant permutation insn directly from here.
20498 2021-06-13  Trevor Saunders  <tbsaunde@tbsaunde.org>
20500         * attribs.c (find_attribute_namespace): Iterate over vec<> with
20501         range based for.
20502         * auto-profile.c (afdo_find_equiv_class): Likewise.
20503         * gcc.c (do_specs_vec): Likewise.
20504         (do_spec_1): Likewise.
20505         (driver::set_up_specs): Likewise.
20506         * gimple-loop-jam.c (any_access_function_variant_p): Likewise.
20507         * gimple-ssa-store-merging.c (compatible_load_p): Likewise.
20508         (imm_store_chain_info::try_coalesce_bswap): Likewise.
20509         (imm_store_chain_info::coalesce_immediate_stores): Likewise.
20510         (get_location_for_stmts): Likewise.
20511         * graphite-poly.c (print_iteration_domains): Likewise.
20512         (free_poly_bb): Likewise.
20513         (remove_gbbs_in_scop): Likewise.
20514         (free_scop): Likewise.
20515         (dump_gbb_cases): Likewise.
20516         (dump_gbb_conditions): Likewise.
20517         (print_pdrs): Likewise.
20518         (print_scop): Likewise.
20519         * ifcvt.c (cond_move_process_if_block): Likewise.
20520         * lower-subreg.c (decompose_multiword_subregs): Likewise.
20521         * regcprop.c (pass_cprop_hardreg::execute): Likewise.
20522         * sanopt.c (sanitize_rewrite_addressable_params): Likewise.
20523         * sel-sched-dump.c (dump_insn_vector): Likewise.
20524         * store-motion.c (store_ops_ok): Likewise.
20525         (store_killed_in_insn): Likewise.
20526         * timevar.c (timer::named_items::print): Likewise.
20527         * tree-cfgcleanup.c (cleanup_control_flow_pre): Likewise.
20528         (cleanup_tree_cfg_noloop): Likewise.
20529         * tree-data-ref.c (dump_data_references): Likewise.
20530         (print_dir_vectors): Likewise.
20531         (print_dist_vectors): Likewise.
20532         (dump_data_dependence_relations): Likewise.
20533         (dump_dist_dir_vectors): Likewise.
20534         (dump_ddrs): Likewise.
20535         (create_runtime_alias_checks): Likewise.
20536         (free_subscripts): Likewise.
20537         (save_dist_v): Likewise.
20538         (save_dir_v): Likewise.
20539         (invariant_access_functions): Likewise.
20540         (same_access_functions): Likewise.
20541         (access_functions_are_affine_or_constant_p): Likewise.
20542         (find_data_references_in_stmt): Likewise.
20543         (graphite_find_data_references_in_stmt): Likewise.
20544         (free_dependence_relations): Likewise.
20545         (free_data_refs): Likewise.
20546         * tree-inline.c (copy_debug_stmts): Likewise.
20547         * tree-into-ssa.c (dump_currdefs): Likewise.
20548         (rewrite_update_phi_arguments): Likewise.
20549         * tree-ssa-propagate.c (clean_up_loop_closed_phi): Likewise.
20550         * tree-vect-data-refs.c (vect_analyze_possibly_independent_ddr):
20551         Likewise.
20552         (vect_slp_analyze_node_dependences): Likewise.
20553         (vect_slp_analyze_instance_dependence): Likewise.
20554         (vect_record_base_alignments): Likewise.
20555         (vect_get_peeling_costs_all_drs): Likewise.
20556         (vect_peeling_supportable): Likewise.
20557         * tree-vectorizer.c (vec_info::~vec_info): Likewise.
20558         (vec_info::free_stmt_vec_infos): Likewise.
20560 2021-06-13  Jeff Law  <jeffreyalaw@gmail.com>
20562         * config/h8300/logical.md (<code>qi3_1<cczn>): New pattern.
20563         (andqi3_1<cczn>): Removed.
20564         (<ors>qi3_1): Do not split for IOR/XOR a single bit.
20565         (H8/SX bit logicals): Split out from other patterns.
20566         * config/h8300/multiply.md (mulqihi3_const<cczn>): Renamed from
20567         mulqihi3_const_clobber_flags.
20568         (mulqihi3<cczn>, mulhisi3_const<cczn>, mulhisi3<cczn>): Similarly
20570 2021-06-13  H.J. Lu  <hjl.tools@gmail.com>
20572         PR target/101023
20573         * config/i386/i386.c (ix86_expand_prologue): Set red_zone_used
20574         to true if red zone is used.
20575         (ix86_output_indirect_jmp): Replace ix86_red_zone_size with
20576         ix86_red_zone_used.
20577         * config/i386/i386.h (machine_function): Add red_zone_used.
20578         (ix86_red_zone_size): Removed.
20579         (ix86_red_zone_used): New.
20580         * config/i386/i386.md (peephole2 patterns): Replace
20581         ix86_red_zone_size with ix86_red_zone_used.
20583 2021-06-12  Jason Merrill  <jason@redhat.com>
20585         * doc/extend.texi (unused variable attribute): Applies to
20586         structure fields as well.
20588 2021-06-12  Eugene Rozenfeld  <erozen@microsoft.com>
20590         * auto-profile.c (read_profile): fix a typo in an error string
20592 2021-06-11  Thomas Schwinge  <thomas@codesourcery.com>
20594         * tree-pretty-print.h (dump_omp_clauses): Add 'bool = true'
20595         default argument.
20596         * tree-pretty-print.c (dump_omp_clauses): Update.
20597         (dump_generic_node) <OMP_CLAUSE>: Use it.
20599 2021-06-11  Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
20601         PR target/101016
20602         * config/arm/arm_mve.h (__arm_vld1q): Change __ARM_mve_coerce(p0,
20603         int8_t const *) to __ARM_mve_coerce1(p0, int8_t *) in the argument for
20604         the polymorphic variants matching code.
20605         (__arm_vld1q_z): Likewise.
20606         (__arm_vld2q): Likewise.
20607         (__arm_vld4q): Likewise.
20608         (__arm_vldrbq_gather_offset): Likewise.
20609         (__arm_vldrbq_gather_offset_z): Likewise.
20611 2021-06-11  Roger Sayle  <roger@nextmovesoftware.com>
20613         PR tree-optimization/96392
20614         * fold-const.h (tree_expr_maybe_real_minus_zero_p): Fix prototype.
20616 2021-06-11  Roger Sayle  <roger@nextmovesoftware.com>
20618         PR tree-optimization/96392
20619         * fold-const.c (fold_real_zero_addition_p): Take both arguments
20620         of the addition or subtraction, not just the zero.  Use this
20621         other argument in tests for signaling NaNs and signed zeros.
20622         (tree_expr_maybe_real_minus_zero_p): New predicate.
20623         * fold-const.h (fold_real_zero_addition_p): Update prototype.
20624         (tree_expr_maybe_real_minus_zero_p): New function prototype.
20625         * match.pd: Update calls to fold_real_zero_addition_p.
20626         Replace HONOR_NANS with tree_expr_maybe_nan_p.
20627         Replace HONOR_SIGNED_ZEROS with tree_expr_maybe_real_minus_zero_p.
20628         Replace HONOR_SNANS with tree_expr_maybe_signaling_nan_p.
20629         * tree-ssa-reassoc.c (eliminate_using_constants): Update
20630         call to fold_real_zero_addition_p.
20632 2021-06-11  Richard Biener  <rguenther@suse.de>
20634         PR tree-optimization/101025
20635         * tree-ssa-loop-im.c (sm_seq_valid_bb): Make sure to process
20636         all refs that require dependence checking.
20638 2021-06-11  Richard Biener  <rguenther@suse.de>
20640         PR tree-optimization/101028
20641         * tree-vect-slp.c (vect_build_slp_tree_2): When SLP
20642         reassoc discovery fails fatally, mark appropriate lanes
20643         in matches[] so.
20645 2021-06-11  Richard Biener  <rguenther@suse.de>
20647         PR tree-optimization/101026
20648         * tree-vect-slp.c (vect_build_slp_tree_2): Make sure we
20649         have a representative for the associated chain nodes.
20651 2021-06-11  Jakub Jelinek  <jakub@redhat.com>
20653         PR rtl-optimization/101008
20654         * simplify-rtx.c (relational_result): New function.
20655         (simplify_logical_relational_operation,
20656         simplify_relational_operation): Use it.
20658 2021-06-11  Jakub Jelinek  <jakub@redhat.com>
20660         PR target/101007
20661         * config/i386/sse.md (*vec_concat<mode>_0_1): Require TARGET_SSE2.
20663 2021-06-11  Uroš Bizjak  <ubizjak@gmail.com>
20665         PR target/101021
20666         * config/i386/i386-expand.c (expand_vec_perm_pshufb): Return
20667         false if the permutation can be implemented with constant
20668         permutation instruction in wider mode.
20669         (canonicalize_vector_int_perm): Move above expand_vec_perm_pshufb.
20670         Handle V8QImode and V4HImode.
20672 2021-06-11  Martin Liska  <mliska@suse.cz>
20674         PR gcov-profile/100788
20675         * common.opt: Add new option.
20676         * coverage.c (coverage_begin_function): Emit warning instead on
20677         the internal compiler error.
20678         * doc/invoke.texi: Document the option.
20679         * toplev.c (process_options): Enable it by default.
20681 2021-06-11  Richard Biener  <rguenther@suse.de>
20683         PR middle-end/101009
20684         * tree-data-ref.c (build_classic_dist_vector_1): Make sure
20685         to set *init_b to true when we encounter a constant equal
20686         index pair.
20687         (compute_affine_dependence): Also dump the actual DR_REF.
20689 2021-06-10  Aldy Hernandez  <aldyh@redhat.com>
20691         PR tree-optimization/100984
20692         * gimple-ssa-evrp.c  (ssa_equiv_stack): Use auto_vec for
20693         replacements table.
20694         (ssa_equiv_stack::~ssa_equiv_stack): Remove.
20696 2021-06-11  Kewen Lin  <linkw@linux.ibm.com>
20698         * config/rs6000/rs6000.md
20699         (floatsi<SFDF:mode>2_lfiwax_<QHI:mode>_mem_zext): New
20700         define_insn_and_split.
20702 2021-06-11  Richard Biener  <rguenther@suse.de>
20704         * tree-vect-slp.c (vect_build_slp_tree_2): Use stablesort
20705         to sort operands of the associative chain.
20707 2021-06-11  Richard Biener  <rguenther@suse.de>
20709         * system.h (gcc_stablesort_r): Declare.
20710         * sort.cc (gcc_sort_r): Support stable sort.
20711         (gcc_stablesort_r): Define.
20712         * vec.h (vec<>::stablesort): Add.
20714 2021-06-10  Uroš Bizjak  <ubizjak@gmail.com>
20716         PR target/89021
20717         * config/i386/i386-expand.c (ix86_split_mmx_punpck):
20718         Handle V2SF mode.  Emit SHUFPS to fixup unpack-high for V2SF mode.
20719         (expand_vec_perm_blend): Handle 64bit modes for TARGET_SSE4_1.
20720         (expand_vec_perm_pshufb): Handle 64bit modes for TARGET_SSSE3.
20721         (expand_vec_perm_pblendv): Handle 64bit modes for TARGET_SSE4_1.
20722         (expand_vec_perm_interleave2): Handle 64bit modes.
20723         (expand_vec_perm_even_odd_pack): Handle V8QI mode.
20724         (expand_vec_perm_even_odd_1): Ditto.
20725         (ix86_vectorize_vec_perm_const): Ditto.
20726         * config/i386/i386.md (UNSPEC_PSHUFB): Move from ...
20727         * config/i386/sse.md: ... here.
20728         * config/i386/mmx.md (*vec_interleave_lowv2sf):
20729         New insn_and_split pattern.
20730         (*vec_interleave_highv2sf): Ditto.
20731         (mmx_pshufbv8qi3): New insn pattern.
20732         (*mmx_pblendw): Ditto.
20734 2021-06-10  Peter Bergner  <bergner@linux.ibm.com>
20736         * config/rs6000/rs6000-builtin.def (build_pair): New built-in.
20737         (build_acc): Likewise.
20738         * config/rs6000/rs6000-call.c (mma_expand_builtin): Swap assemble
20739         source operands in little-endian mode.
20740         (rs6000_gimple_fold_mma_builtin): Handle VSX_BUILTIN_BUILD_PAIR.
20741         (mma_init_builtins): Likewise.
20742         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Handle endianness
20743         ordering for the MMA assemble and build source operands.
20744         * doc/extend.texi (__builtin_vsx_build_acc, __builtin_mma_build_pair):
20745         Document.
20746         (__builtin_mma_assemble_acc, __builtin_mma_assemble_pair): Remove
20747         documentation.
20749 2021-06-10  Jeff Law  <jeffreyalaw@gmail.com>
20751         * config/h8300/h8300.c (select_cc_mode): Handle MEM.  Use
20752         REG_P.
20753         * config/h8300/extensions.md: Replace _clobber_flags patterns
20754         with <cczn>.
20756 2021-06-10  Robin Dapp  <rdapp@linux.ibm.com>
20758         * config/s390/vector.md (vcond_mask_<mode><mode>): Change to
20759         (vcond_mask_<mode><tointvec>): this.
20761 2021-06-10  Andrew Stubbs  <ams@codesourcery.com>
20762             Thomas Schwinge  <thomas@codesourcery.com>
20764         * omp-builtins.def (BUILT_IN_GOACC_ENTER_EXIT_DATA): Split into...
20765         (BUILT_IN_GOACC_ENTER_DATA, BUILT_IN_GOACC_EXIT_DATA): ... these.
20766         * gimple.h (enum gf_mask): Split
20767         'GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA' into
20768         'GF_OMP_TARGET_KIND_OACC_ENTER_DATA' and
20769         'GF_OMP_TARGET_KIND_OACC_EXIT_DATA'.
20770         (is_gimple_omp_oacc): Update.
20771         * gimple-pretty-print.c (dump_gimple_omp_target): Likewise.
20772         * gimplify.c (gimplify_omp_target_update): Likewise.
20773         * omp-expand.c (expand_omp_target, build_omp_regions_1)
20774         (omp_make_gimple_edges): Likewise.
20775         * omp-low.c (check_omp_nesting_restrictions, lower_omp_target):
20776         Likewise.
20778 2021-06-10  Aldy Hernandez  <aldyh@redhat.com>
20780         * value-query.cc (value_query::value_on_edge): Rename name to
20781         expr.
20782         (range_query::range_on_edge): Same.
20783         (range_query::value_of_expr): Same.
20784         (range_query::value_on_edge): Same.
20785         * value-query.h (class value_query): Same.
20786         (class range_query): Same.
20788 2021-06-10  Richard Biener  <rguenther@suse.de>
20790         PR tree-optimization/101003
20791         * tree-vect-slp.c (vect_build_slp_tree_2): Appropriately
20792         use the pattern stmt defs when linearizing a chain.
20794 2021-06-10  Jakub Jelinek  <jakub@redhat.com>
20796         PR debug/100852
20797         * ifcvt.c (noce_get_alt_condition, noce_try_abs): Use
20798         prev_nonnote_nondebug_insn instead of prev_nonnote_insn.
20800 2021-06-10  Clement Chigot  <clement.chigot@atos.net>
20802         * config/rs6000/aix71.h (ASM_CPU_SPEC): Add Power10 directive.
20803         * config/rs6000/aix72.h (ASM_CPU_SPEC): Likewise.
20805 2021-06-09  Andrew Pinski  <apinski@marvell.com>
20807         PR tree-optimization/100925
20808         * match.pd (a ? CST1 : CST2): Limit transformations
20809         that would produce a negative to integeral types only.
20810         Change !POINTER_TYPE_P to INTEGRAL_TYPE_P also.
20812 2021-06-09  Jeff Law  <jeffreyalaw@gmail.com>
20814         Revert:
20815         2021-06-09  Jeff Law  <jeffreyalaw@gmail.com>
20817         * doc/tm.texi: Correctly update.
20819 2021-06-09  Jeff Law  <jeffreyalaw@gmail.com>
20821         * doc/tm.texi: Correctly update.
20823 2021-06-09  H.J. Lu  <hjl.tools@gmail.com>
20825         PR other/100735
20826         * doc/tm.texi.in (Trampolines): Add a missing blank line.
20828 2021-06-09  Paul Eggert  <eggert@cs.ucla.edu>
20830         PR other/100735
20831         * doc/invoke.texi (Code Gen Options); Document that -fno-trampolines
20832         and -ftrampolines work only with Ada.
20833         * doc/tm.texi.in (Trampolines): Likewise.
20834         * doc/tm.texi: Regenerated.
20836 2021-06-09  Carl Love  <cel@us.ibm.com>
20838         * config/rs6000/altivec.h (vec_signextll, vec_signexti, vec_signextq):
20839         Add define for new builtins.
20840         * config/rs6000/altivec.md(altivec_vreveti2): Add define_expand.
20841         * config/rs6000/rs6000-builtin.def (VSIGNEXTI, VSIGNEXTLL):  Add
20842         overloaded builtin definitions.
20843         (VSIGNEXTSB2W, VSIGNEXTSH2W, VSIGNEXTSB2D, VSIGNEXTSH2D,VSIGNEXTSW2D,
20844         VSIGNEXTSD2Q):  Add builtin expansions.
20845         (SIGNEXT): Add P10 overload definition.
20846         * config/rs6000/rs6000-call.c (P9V_BUILTIN_VEC_VSIGNEXTI, P9V_BUILTIN_VEC_VSIGNEXTLL,
20847         P10_BUILTIN_VEC_SIGNEXT): Add overloaded argument definitions.
20848         * config/rs6000/vsx.md (vsx_sign_extend_v2di_v1ti): Add define_insn.
20849         (vsignextend_v2di_v1ti, vsignextend_qi_<mode>, vsignextend_hi_<mode>,
20850         vsignextend_si_v2di)[VIlong]: Add define_expand.
20851         Make define_insn vsx_sign_extend_si_v2di visible.
20852         * doc/extend.texi:  Add documentation for the vec_signexti,
20853         vec_signextll builtins and vec_signextq.
20855 2021-06-09  Carl Love  <cel@us.ibm.com>
20857         * config/rs6000/rs6000.c (__fixkfti, __fixunskfti, __floattikf,
20858         __floatuntikf): Names changed to __fixkfti_sw, __fixunskfti_sw,
20859         __floattikf_sw, __floatuntikf_sw respectively.
20860         * config/rs6000/rs6000.md (floatti<mode>2, floatunsti<mode>2,
20861         fix_trunc<mode>ti2, fixuns_trunc<mode>ti2): Add
20862         define_insn for mode IEEE 128.
20864 2021-06-09  Carl Love  <cel@us.ibm.com>
20866         * config/rs6000/altivec.md (altivec_vslq, altivec_vsrq):
20867         Rename to altivec_vslq_<mode>, altivec_vsrq_<mode>, mode VEC_TI.
20868         * config/rs6000/vector.md (VEC_TI): Was named VSX_TI in vsx.md.
20869         (vashlv1ti3): Change to vashl<mode>3, mode VEC_TI.
20870         (vlshrv1ti3): Change to vlshr<mode>3, mode VEC_TI.
20871         * config/rs6000/vsx.md (VSX_TI): Remove define_mode_iterator. Update
20872         uses of VSX_TI to VEC_TI.
20874 2021-06-09  Carl Love  <cel@us.ibm.com>
20876         * config/rs6000/dfp.md (floattitd2, fixtdti2): New define_insns.
20878 2021-06-09  Carl Love  <cel@us.ibm.com>
20880         * config/rs6000/altivec.h (vec_dive, vec_mod): Add define for new
20881         builtins.
20882         * config/rs6000/altivec.md (UNSPEC_VMULEUD, UNSPEC_VMULESD,
20883         UNSPEC_VMULOUD, UNSPEC_VMULOSD): New unspecs.
20884         (altivec_eqv1ti, altivec_gtv1ti, altivec_gtuv1ti, altivec_vmuleud,
20885         altivec_vmuloud, altivec_vmulesd, altivec_vmulosd, altivec_vrlq,
20886         altivec_vrlqmi, altivec_vrlqmi_inst, altivec_vrlqnm,
20887         altivec_vrlqnm_inst, altivec_vslq, altivec_vsrq, altivec_vsraq,
20888         altivec_vcmpequt_p, altivec_vcmpgtst_p, altivec_vcmpgtut_p): New
20889         define_insn.
20890         (vec_widen_umult_even_v2di, vec_widen_smult_even_v2di,
20891         vec_widen_umult_odd_v2di, vec_widen_smult_odd_v2di, altivec_vrlqmi,
20892         altivec_vrlqnm): New define_expands.
20893         * config/rs6000/rs6000-builtin.def (VCMPEQUT_P, VCMPGTST_P,
20894         VCMPGTUT_P): Add macro expansions.
20895         (BU_P10V_AV_P): Add builtin predicate definition.
20896         (VCMPGTUT, VCMPGTST, VCMPEQUT, CMPNET, CMPGE_1TI,
20897         CMPGE_U1TI, CMPLE_1TI, CMPLE_U1TI, VNOR_V1TI_UNS, VNOR_V1TI, VCMPNET_P,
20898         VCMPAET_P, VMULEUD, VMULESD, VMULOUD, VMULOSD, VRLQ,
20899         VSLQ, VSRQ, VSRAQ, VRLQNM, DIV_V1TI, UDIV_V1TI, DIVES_V1TI, DIVEU_V1TI,
20900         MODS_V1TI, MODU_V1TI, VRLQMI): New macro expansions.
20901         (VRLQ, VSLQ, VSRQ, VSRAQ, DIVE, MOD): New overload expansions.
20902         * config/rs6000/rs6000-call.c (P10_BUILTIN_VCMPEQUT,
20903         P10V_BUILTIN_CMPGE_1TI, P10V_BUILTIN_CMPGE_U1TI,
20904         P10V_BUILTIN_VCMPGTUT, P10V_BUILTIN_VCMPGTST,
20905         P10V_BUILTIN_CMPLE_1TI, P10V_BUILTIN_VCMPLE_U1TI,
20906         P10V_BUILTIN_DIV_V1TI, P10V_BUILTIN_UDIV_V1TI,
20907         P10V_BUILTIN_VMULESD, P10V_BUILTIN_VMULEUD,
20908         P10V_BUILTIN_VMULOSD, P10V_BUILTIN_VMULOUD,
20909         P10V_BUILTIN_VNOR_V1TI, P10V_BUILTIN_VNOR_V1TI_UNS,
20910         P10V_BUILTIN_VRLQ, P10V_BUILTIN_VRLQMI,
20911         P10V_BUILTIN_VRLQNM, P10V_BUILTIN_VSLQ,
20912         P10V_BUILTIN_VSRQ, P10V_BUILTIN_VSRAQ,
20913         P10V_BUILTIN_VCMPGTUT_P, P10V_BUILTIN_VCMPGTST_P,
20914         P10V_BUILTIN_VCMPEQUT_P, P10V_BUILTIN_VCMPGTUT_P,
20915         P10V_BUILTIN_VCMPGTST_P, P10V_BUILTIN_CMPNET,
20916         P10V_BUILTIN_VCMPNET_P, P10V_BUILTIN_VCMPAET_P,
20917         P10V_BUILTIN_DIVES_V1TI, P10V_BUILTIN_MODS_V1TI,
20918         P10V_BUILTIN_MODU_V1TI):
20919         New overloaded definitions.
20920         (rs6000_gimple_fold_builtin) [P10V_BUILTIN_VCMPEQUT,
20921         P10V_BUILTIN_CMPNET, P10V_BUILTIN_CMPGE_1TI,
20922         P10V_BUILTIN_CMPGE_U1TI, P10V_BUILTIN_VCMPGTUT,
20923         P10V_BUILTIN_VCMPGTST, P10V_BUILTIN_CMPLE_1TI,
20924         P10V_BUILTIN_CMPLE_U1TI]: New case statements.
20925         (rs6000_init_builtins) [bool_V1TI_type_node, int_ftype_int_v1ti_v1ti]:
20926         New assignments.
20927         (altivec_init_builtins): New E_V1TImode case statement.
20928         (builtin_function_type)[P10_BUILTIN_128BIT_VMULEUD,
20929         P10_BUILTIN_128BIT_VMULOUD, P10_BUILTIN_128BIT_DIVEU_V1TI,
20930         P10_BUILTIN_128BIT_MODU_V1TI, P10_BUILTIN_CMPGE_U1TI,
20931         P10_BUILTIN_VCMPGTUT, P10_BUILTIN_VCMPEQUT]: New case statements.
20932         * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute) [E_TImode,
20933         E_V1TImode]: New case statements.
20934         * config/rs6000/rs6000.h (rs6000_builtin_type_index): New enum
20935         value RS6000_BTI_bool_V1TI.
20936         * config/rs6000/vector.md (vector_gtv1ti,vector_nltv1ti,
20937         vector_gtuv1ti, vector_nltuv1ti, vector_ngtv1ti, vector_ngtuv1ti,
20938         vector_eq_v1ti_p, vector_ne_v1ti_p, vector_ae_v1ti_p,
20939         vector_gt_v1ti_p, vector_gtu_v1ti_p, vrotlv1ti3, vashlv1ti3,
20940         vlshrv1ti3, vashrv1ti3): New define_expands.
20941         * config/rs6000/vsx.md (UNSPEC_VSX_DIVSQ, UNSPEC_VSX_DIVUQ,
20942         UNSPEC_VSX_DIVESQ, UNSPEC_VSX_DIVEUQ, UNSPEC_VSX_MODSQ,
20943         UNSPEC_VSX_MODUQ): New unspecs.
20944         (mulv2di3, vsx_div_v1ti, vsx_udiv_v1ti, vsx_dives_v1ti,
20945         vsx_diveu_v1ti, vsx_mods_v1ti, vsx_modu_v1ti, xxswapd_v1ti): New
20946         define_insns.
20947         (vcmpnet): New define_expand.
20948         * doc/extend.texi: Add documentation for the new builtins vec_rl,
20949         vec_rlmi, vec_rlnm, vec_sl, vec_sr, vec_sra, vec_mule, vec_mulo,
20950         vec_div, vec_dive, vec_mod, vec_cmpeq, vec_cmpne, vec_cmpgt, vec_cmplt,
20951         vec_cmpge, vec_cmple, vec_all_eq, vec_all_ne, vec_all_gt, vec_all_lt,
20952         vec_all_ge, vec_all_le, vec_any_eq, vec_any_ne, vec_any_gt, vec_any_lt,
20953         vec_any_ge, vec_any_le.
20955 2021-06-09  Carl Love  <cel@us.ibm.com>
20957         * config/rs6000/altivec.md (altivec_vrl<VI_char>mi): Fix
20958         bug in argument generation.
20960 2021-06-09  Christophe Lyon  <christophe.lyon@linaro.org>
20962         * config/arm/iterators.md (<supf>): Remove VCLZQ_U, VCLZQ_S.
20963         (VCLZQ): Remove.
20964         * config/arm/mve.md (mve_vclzq_<supf><mode>): Add '@' prefix,
20965         remove <supf> iterator.
20966         (mve_vclzq_u<mode>): New.
20967         * config/arm/neon.md (clz<mode>2): Rename to neon_vclz<mode>.
20968         (neon_vclz<mode): Move to ...
20969         * config/arm/unspecs.md (VCLZQ_U, VCLZQ_S): Remove.
20970         * config/arm/vec-common.md: ... here. Add support for MVE.
20972 2021-06-09  Christophe Lyon  <christophe.lyon@linaro.org>
20974         * config/arm/mve.md (mve_vhaddq_<supf><mode>): Prefix with '@'.
20975         (@mve_vrhaddq_<supf><mode): Likewise.
20976         * config/arm/neon.md (neon_v<r>hadd<sup><mode>): Likewise.
20977         * config/arm/vec-common.md (avg<mode>3_floor, uavg<mode>3_floor)
20978         (avg<mode>3_ceil", uavg<mode>3_ceil): New patterns.
20980 2021-06-09  imba-tjd  <109224573@qq.com>
20982         * doc/invoke.texi: Fix typo.
20984 2021-06-09  Roger Sayle  <roger@nextmovesoftware.com>
20986         PR middle-end/53267
20987         * fold-const-call.c (fold_const_call_sss) [CASE_CFN_FMOD]:
20988         Support evaluation of fmod/fmodf/fmodl at compile-time.
20990 2021-06-09  Richard Biener  <rguenther@suse.de>
20992         PR tree-optimization/100981
20993         * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
20994         gimple_get_lhs to also handle calls.
20995         * tree-vect-slp-patterns.c (complex_pattern::build): Transfer
20996         reduction info.
20998 2021-06-09  Richard Biener  <rguenther@suse.de>
21000         PR tree-optimization/97832
21001         * tree-vectorizer.h (_slp_tree::failed): New.
21002         * tree-vect-slp.c (_slp_tree::_slp_tree): Initialize
21003         failed member.
21004         (_slp_tree::~_slp_tree): Free failed.
21005         (vect_build_slp_tree): Retain failed nodes and record
21006         matches in them, copying that back out when running
21007         into a cached fail.  Dump start and end of discovery.
21008         (dt_sort_cmp): New.
21009         (vect_build_slp_tree_2): Handle associatable chains
21010         together doing more aggressive operand swapping.
21012 2021-06-09  H.J. Lu  <hjl.tools@gmail.com>
21014         PR target/100896
21015         * config.gcc (gcc_cv_initfini_array): Set to yes for Linux and
21016         GNU targets.
21017         * doc/install.texi: Require glibc 2.1 and binutils 2.12 for
21018         Linux and GNU targets.
21020 2021-06-09  Richard Biener  <rguenther@suse.de>
21022         * tree-vect-stmts.c (vect_is_simple_use): Always get dt
21023         from the stmt.
21025 2021-06-09  Claudiu Zissulescu  <claziss@synopsys.com>
21027         * config/arc/arc.md (loop_end): Change it to
21028         define_insn_and_split.
21030 2021-06-09  Claudiu Zissulescu  <claziss@synopsys.com>
21032         * config/arc/arc.md (maddhisi4): Use VMAC2H instruction.
21033         (machi): New pattern.
21034         (umaddhisi4): Use VMAC2HU instruction.
21035         (umachi): New pattern.
21037 2021-06-09  Claudiu Zissulescu  <claziss@synopsys.com>
21039         * config/arc/arc-protos.h (arc_split_move_p): New prototype.
21040         * config/arc/arc.c (arc_split_move_p): New function.
21041         (arc_split_move): Clean up.
21042         * config/arc/arc.md (movdi_insn): Clean up, use arc_split_move_p.
21043         (movdf_insn): Likewise.
21044         * config/arc/simdext.md (mov<VWH>_insn): Likewise.
21046 2021-06-09  Uroš Bizjak  <ubizjak@gmail.com>
21048         PR target/100936
21049         * config/i386/i386.c (print_operand_address_as): Rename "no_rip"
21050         argument to "raw".  Do not emit segment overrides when "raw" is true.
21052 2021-06-09  Martin Liska  <mliska@suse.cz>
21054         * doc/gcov.texi: Create a proper JSON files.
21055         * doc/invoke.texi: Remove dots in order to make it a valid
21056         JSON object.
21058 2021-06-09  Xionghu Luo  <luoxhu@linux.ibm.com>
21060         * config/rs6000/rs6000-p8swap.c (pattern_is_rotate64): New.
21061         (insn_is_load_p): Use pattern_is_rotate64.
21062         (insn_is_swap_p): Likewise.
21063         (quad_aligned_load_p): Likewise.
21064         (const_load_sequence_p): Likewise.
21065         (replace_swapped_aligned_load): Likewise.
21066         (recombine_lvx_pattern): Likewise.
21067         (recombine_stvx_pattern): Likewise.
21069 2021-06-09  Andrew MacLeod  <amacleod@redhat.com>
21071         * gimple-range-gori.cc (gori_compute::outgoing_edge_range_p): Use a
21072         fur_stmt source record.
21073         * gimple-range.cc (fur_source::get_operand): Generic range query.
21074         (fur_source::get_phi_operand): New.
21075         (fur_source::register_dependency): New.
21076         (fur_source::query): New.
21077         (class fur_edge): New.  Edge source for operands.
21078         (fur_edge::fur_edge): New.
21079         (fur_edge::get_operand): New.
21080         (fur_edge::get_phi_operand): New.
21081         (fur_edge::query): New.
21082         (fur_stmt::fur_stmt): New.
21083         (fur_stmt::get_operand): New.
21084         (fur_stmt::get_phi_operand): New.
21085         (fur_stmt::query): New.
21086         (class fur_depend): New.  Statement source and process dependencies.
21087         (fur_depend::fur_depend): New.
21088         (fur_depend::register_dependency): New.
21089         (class fur_list): New.  List source for operands.
21090         (fur_list::fur_list): New.
21091         (fur_list::get_operand): New.
21092         (fur_list::get_phi_operand): New.
21093         (fold_range): New.  Instantiate appropriate fur_source class and fold.
21094         (fold_using_range::range_of_range_op): Use new API.
21095         (fold_using_range::range_of_address): Ditto.
21096         (fold_using_range::range_of_phi): Ditto.
21097         (imple_ranger::fold_range_internal): Use fur_depend class.
21098         (fold_using_range::range_of_ssa_name_with_loop_info): Use new API.
21099         * gimple-range.h (class fur_source): Now a base class.
21100         (class fur_stmt): New.
21101         (fold_range): New prototypes.
21102         (fur_source::fur_source): Delete.
21104 2021-06-08  Andrew Pinski  <apinski@marvell.com>
21106         PR tree-optimization/25290
21107         * tree-ssa-phiopt.c (xor_replacement): Delete.
21108         (tree_ssa_phiopt_worker): Delete use of xor_replacement.
21109         (match_simplify_replacement): Allow one cheap preparation
21110         statement that can be moved to before the if.
21112 2021-06-08  Pat Haugen  <pthaugen@linux.ibm.com>
21114         * config/rs6000/power10.md (power10-fused-load, power10-fused-store,
21115         power10-fused_alu, power10-fused-vec, power10-fused-branch): New.
21117 2021-06-08  Jeff Law  <jeffreyalaw@gmail.com>
21119         * config/h8300/logical.md (andqi3_1): Move BCLR case into define_insn_and_split.
21120         Create length attribute on define_insn_and_split.  Only split for cases which we
21121         know will use AND.
21122         (andqi3_1<cczn>): Renamed from andqi3_1_clobber_flags.  Only handle AND here and
21123         fix length computation.
21124         (b<code><mode>msx): Combine QImode and HImode H8/SX patterns using iterator.
21126 2021-06-08  Richard Biener  <rguenther@suse.de>
21128         PR tree-optimization/100923
21129         * tree-ssa-sccvn.c (valueize_refs_1): Take a pointer to
21130         the operand vector to be valueized.
21131         (valueize_refs): Likewise.
21132         (valueize_shared_reference_ops_from_ref): Adjust.
21133         (valueize_shared_reference_ops_from_call): Likewise.
21134         (vn_reference_lookup_3): Likewise.
21135         (vn_reference_lookup_pieces): Likewise.  Re-valueize
21136         with honoring availability when we are about to create
21137         the ao_ref and valueized before.
21138         (vn_reference_lookup): Likewise.
21139         (vn_reference_insert_pieces): Adjust.
21141 2021-06-08  Richard Biener  <rguenther@suse.de>
21143         * tree-vectorizer.h (_slp_instance::root_stmt): Change to...
21144         (_slp_instance::root_stmts): ... a vector.
21145         (SLP_INSTANCE_ROOT_STMT): Rename to ...
21146         (SLP_INSTANCE_ROOT_STMTS): ... this.
21147         (slp_root::root): Change to...
21148         (slp_root::roots): ... a vector.
21149         (slp_root::slp_root): Adjust.
21150         * tree-vect-slp.c (_slp_instance::location): Adjust.
21151         (vect_free_slp_instance): Release the root stmt vector.
21152         (vect_build_slp_instance): Adjust.
21153         (vect_analyze_slp): Likewise.
21154         (_bb_vec_info::~_bb_vec_info): Likewise.
21155         (vect_slp_analyze_operations): Likewise.
21156         (vect_bb_vectorization_profitable_p): Likewise.  Adjust
21157         costs for the root stmt.
21158         (vect_slp_check_for_constructors): Gather all BIT_INSERT_EXPRs
21159         as root stmts.
21160         (vect_slp_analyze_bb_1): Simplify by marking all root stmts
21161         as pure_slp.
21162         (vectorize_slp_instance_root_stmt): Adjust.
21163         (vect_schedule_slp): Likewise.
21165 2021-06-08  Aldy Hernandez  <aldyh@redhat.com>
21167         * gimple-ssa-evrp.c (class ssa_equiv_stack): New.
21168         (ssa_equiv_stack::ssa_equiv_stack): New.
21169         (ssa_equiv_stack::~ssa_equiv_stack): New.
21170         (ssa_equiv_stack::enter): New.
21171         (ssa_equiv_stack::leave): New.
21172         (ssa_equiv_stack::push_replacement): New.
21173         (ssa_equiv_stack::get_replacement): New.
21174         (is_pointer_ssa): New.
21175         (class pointer_equiv_analyzer): New.
21176         (pointer_equiv_analyzer::pointer_equiv_analyzer): New.
21177         (pointer_equiv_analyzer::~pointer_equiv_analyzer): New.
21178         (pointer_equiv_analyzer::set_global_equiv): New.
21179         (pointer_equiv_analyzer::set_cond_equiv): New.
21180         (pointer_equiv_analyzer::get_equiv): New.
21181         (pointer_equiv_analyzer::enter): New.
21182         (pointer_equiv_analyzer::leave): New.
21183         (pointer_equiv_analyzer::get_equiv_expr): New.
21184         (pta_valueize): New.
21185         (pointer_equiv_analyzer::visit_stmt): New.
21186         (pointer_equiv_analyzer::visit_edge): New.
21187         (hybrid_folder::value_of_expr): Call PTA.
21188         (hybrid_folder::value_on_edge): Same.
21189         (hybrid_folder::pre_fold_bb): New.
21190         (hybrid_folder::post_fold_bb): New.
21191         (hybrid_folder::pre_fold_stmt): New.
21192         (rvrp_folder::pre_fold_bb): New.
21193         (rvrp_folder::post_fold_bb): New.
21194         (rvrp_folder::pre_fold_stmt): New.
21195         (rvrp_folder::value_of_expr): Call PTA.
21196         (rvrp_folder::value_on_edge): Same.
21198 2021-06-08  Jakub Jelinek  <jakub@redhat.com>
21200         PR c++/100957
21201         * tree-inline.c (copy_tree_body_r): For OMP_CLAUSE_DEPEND don't
21202         check TREE_CODE if OMP_CLAUSE_DECL is NULL.
21204 2021-06-08  Richard Biener  <rguenther@suse.de>
21206         PR middle-end/100951
21207         * tree-vect-generic.c (expand_vector_piecewise): Build a
21208         VECTOR_CST if all elements are constant.
21209         (expand_vector_condition): Likewise.
21210         (lower_vec_perm): Likewise.
21211         (expand_vector_conversion): Likewise.
21213 2021-06-08  Martin Liska  <mliska@suse.cz>
21215         * doc/invoke.texi: Document new param evrp-sparse-threshold.
21217 2021-06-08  Martin Liska  <mliska@suse.cz>
21219         * genautomata.c (create_automata): Fix typo.
21221 2021-06-08  Kewen Lin  <linkw@linux.ibm.com>
21223         PR tree-optimization/100794
21224         * tree-predcom.c (tree_predictive_commoning_loop): Add parameter
21225         allow_unroll_p and only allow unrolling when it's true.
21226         (tree_predictive_commoning): Add parameter allow_unroll_p and
21227         adjust for it.
21228         (run_tree_predictive_commoning): Likewise.
21229         (pass_predcom::gate): Check flag_tree_loop_vectorize and
21230         global_options_set.x_flag_predictive_commoning.
21231         (pass_predcom::execute): Adjust for allow_unroll_p.
21233 2021-06-08  Kewen Lin  <linkw@linux.ibm.com>
21235         * tree-predcom.c (execute_pred_commoning): Remove update_ssa call.
21236         (tree_predictive_commoning_loop): Factor some cleanup stuffs into
21237         lambda function cleanup, remove scev_reset call, and adjust return
21238         value.
21239         (tree_predictive_commoning): Adjust for different changed values,
21240         only set flag TODO_update_ssa_only_virtuals if changed.
21241         (pass_data pass_data_predcom): Remove TODO_update_ssa_only_virtuals
21242         from todo_flags_finish.
21244 2021-06-07  Andrew MacLeod  <amacleod@redhat.com>
21246         * gimple-range-cache.cc (class sbr_sparse_bitmap): New.
21247         (sbr_sparse_bitmap::sbr_sparse_bitmap): New.
21248         (sbr_sparse_bitmap::bitmap_set_quad): New.
21249         (sbr_sparse_bitmap::bitmap_get_quad): New.
21250         (sbr_sparse_bitmap::set_bb_range): New.
21251         (sbr_sparse_bitmap::get_bb_range): New.
21252         (sbr_sparse_bitmap::bb_range_p): New.
21253         (block_range_cache::block_range_cache): initialize bitmap obstack.
21254         (block_range_cache::~block_range_cache): Destruct obstack.
21255         (block_range_cache::set_bb_range): Decide when to utilze the
21256         sparse on entry cache.
21257         * gimple-range-cache.h (block_range_cache): Add bitmap obstack.
21258         * params.opt (-param=evrp-sparse-threshold): New.
21260 2021-06-07  Andrew MacLeod  <amacleod@redhat.com>
21262         * bitmap.c (bitmap_set_aligned_chunk): New.
21263         (bitmap_get_aligned_chunk): New.
21264         (test_aligned_chunk): New.
21265         (bitmap_c_tests): Call test_aligned_chunk.
21266         * bitmap.h (bitmap_set_aligned_chunk, bitmap_get_aligned_chunk): New.
21268 2021-06-07  Uroš Bizjak  <ubizjak@gmail.com>
21270         PR target/100637
21271         * config/i386/i386-expand.c (ix86_expand_vector_init_duplicate):
21272         Handle V4QI mode.
21273         (ix86_expand_vector_init_one_nonzero): Ditto.
21274         (ix86_expand_vector_init_one_var): Ditto.
21275         (ix86_expand_vector_init_general): Ditto.
21276         * config/i386/mmx.md (vec_initv4qiqi): New expander.
21278 2021-06-07  Jeff Law  <jeffreyalaw@gmail.com>
21280         * config/h8300/movepush.md: Change most _clobber_flags
21281         patterns to instead use <cczn> subst.
21282         (movsi_cczn): New pattern with usable CC cases split out.
21283         (movsi_h8sx_cczn): Likewise.
21285 2021-06-07  Martin Liska  <mliska@suse.cz>
21287         * common/common-target.def: Split long lines and replace them
21288         with '\n\'.
21289         * target.def: Likewise.
21290         * doc/tm.texi: Re-generated.
21292 2021-06-07  Jakub Jelinek  <jakub@redhat.com>
21294         PR target/100887
21295         * fold-const.c (fold_read_from_vector): Return NULL if trying to
21296         read from a CONSTRUCTOR with vector type elements.
21298 2021-06-07  Jakub Jelinek  <jakub@redhat.com>
21300         PR middle-end/100898
21301         * tree-inline.c (copy_bb): Only use gimple_call_arg_ptr if memcpy
21302         should copy any arguments.  Don't call gimple_call_num_args
21303         on id->call_stmt or call_stmt more than once.
21305 2021-06-07  liuhongt  <hongtao.liu@intel.com>
21307         PR target/100885
21308         * config/i386/sse.md (*sse4_1_zero_extendv8qiv8hi2_3): Refine
21309         constraints.
21310         (<insn>v4siv4di2): Delete constraints for define_expand.
21312 2021-06-07  liuhongt  <hongtao.liu@intel.com>
21314         PR target/82735
21315         * config/i386/i386-expand.c (ix86_expand_builtin): Remove
21316         assignment of cfun->machine->has_explicit_vzeroupper.
21317         * config/i386/i386-features.c
21318         (ix86_add_reg_usage_to_vzerouppers): Delete.
21319         (ix86_add_reg_usage_to_vzeroupper): Ditto.
21320         (rest_of_handle_insert_vzeroupper): Remove
21321         ix86_add_reg_usage_to_vzerouppers, add df_analyze at the end
21322         of the function.
21323         (gate): Remove cfun->machine->has_explicit_vzeroupper.
21324         * config/i386/i386-protos.h (ix86_expand_avx_vzeroupper):
21325         Declared.
21326         * config/i386/i386.c (ix86_insn_callee_abi): New function.
21327         (ix86_initialize_callee_abi): Ditto.
21328         (ix86_expand_avx_vzeroupper): Ditto.
21329         (ix86_hard_regno_call_part_clobbered): Adjust for vzeroupper
21330         ABI.
21331         (TARGET_INSN_CALLEE_ABI): Define as ix86_insn_callee_abi.
21332         (ix86_emit_mode_set): Call ix86_expand_avx_vzeroupper
21333         directly.
21334         * config/i386/i386.h (struct GTY(()) machine_function): Delete
21335         has_explicit_vzeroupper.
21336         * config/i386/i386.md (enum unspec): New member
21337         UNSPEC_CALLEE_ABI.
21338         (ABI_DEFAULT,ABI_VZEROUPPER,ABI_UNKNOWN): New
21339         define_constants for insn callee abi index.
21340         * config/i386/predicates.md (vzeroupper_pattern): Adjust.
21341         * config/i386/sse.md (UNSPECV_VZEROUPPER): Deleted.
21342         (avx_vzeroupper): Call ix86_expand_avx_vzeroupper.
21343         (*avx_vzeroupper): Rename to ..
21344         (avx_vzeroupper_callee_abi): .. this, and adjust pattern as
21345         call_insn which has a special vzeroupper ABI.
21346         (*avx_vzeroupper_1): Deleted.
21348 2021-06-07  liuhongt  <hongtao.liu@intel.com>
21350         PR target/82735
21351         * df-scan.c (df_get_call_refs): When call_insn is a fake call,
21352         it won't use stack pointer reg.
21353         * final.c (leaf_function_p): When call_insn is a fake call, it
21354         won't affect caller as a leaf function.
21355         * reg-stack.c (callee_clobbers_any_stack_reg): New.
21356         (subst_stack_regs): When call_insn doesn't clobber any stack
21357         reg, don't clear the arguments.
21358         * rtl.c (shallow_copy_rtx): Don't clear flag used when orig is
21359         a insn.
21360         * shrink-wrap.c (requires_stack_frame_p): No need for stack
21361         frame for a fake call.
21362         * rtl.h (FAKE_CALL_P): New macro.
21364 2021-06-06  Eric Botcazou  <ebotcazou@adacore.com>
21366         * config/sparc/sparc-protos.h (order_regs_for_local_alloc): Rename
21367         to...
21368         (sparc_order_regs_for_local_alloc): ...this.
21369         (sparc_leaf_reg_remap): Declare.
21370         * config/sparc/sparc.h (ADJUST_REG_ALLOC_ORDER): Adjust.
21371         (LEAF_REG_REMAP): Reimplement as call to sparc_leaf_reg_remap.
21372         * config/sparc/sparc.c (leaf_reg_remap): Delete.
21373         (order_regs_for_local_alloc): Rename to...
21374         (sparc_order_regs_for_local_alloc): ...this.
21375         (sparc_leaf_reg_remap): New function.
21376         (sparc_conditional_register_usage): Do not modify leaf_reg_remap.
21378 2021-06-06  David Edelsohn  <dje.gcc@gmail.com>
21380         * config/rs6000/rs6000.c (rs6000_xcoff_asm_output_aligned_decl_common):
21381         Use assemble_name to output BSS section name.
21383 2021-06-06  Uroš Bizjak  <ubizjak@gmail.com>
21385         * config/i386/constraints.md (Bs):
21386         Remove boolean operators from match_test RTX.
21387         (Bw): Ditto.
21388         (L): Ditto.
21389         (M): Use "mode" variable instead of GET_MODE (op) in match_test RTX.
21390         (Wz): Ditto.
21392 2021-06-06  Martin Liska  <mliska@suse.cz>
21394         * doc/extend.texi: Add missing @headitem.
21395         * doc/invoke.texi: Likewise.
21396         * doc/objc.texi: Likewise.
21398 2021-06-06  Martin Liska  <mliska@suse.cz>
21400         * genhooks.c (emit_findices): Remove unused function.
21401         (emit_documentation): Do not call emit_findices
21402         and do not search for @Fcode directives.
21404 2021-06-06  Martin Liska  <mliska@suse.cz>
21406         * doc/invoke.texi: Remove extra character.
21408 2021-06-05  Kewen Lin  <linkw@linux.ibm.com>
21410         * config/sh/sh.md (doloop_end_split): Fix empty split condition.
21412 2021-06-05  Kewen Lin  <linkw@linux.ibm.com>
21414         * config/sparc/sparc.md (*snedi<W:mode>_zero_vis3,
21415         *neg_snedi<W:mode>_zero_subxc, *plus_snedi<W:mode>_zero,
21416         *plus_plus_snedi<W:mode>_zero, *minus_snedi<W:mode>_zero,
21417         *minus_minus_snedi<W:mode>_zero): Fix empty split condition.
21419 2021-06-05  Kewen Lin  <linkw@linux.ibm.com>
21421         * config/or1k/or1k.md (*movdi): Fix empty split condition.
21423 2021-06-05  Kewen Lin  <linkw@linux.ibm.com>
21425         * config/mips/mips.md (<anonymous>, bswapsi2, bswapdi2): Fix empty
21426         split condition.
21428 2021-06-05  Kewen Lin  <linkw@linux.ibm.com>
21430         * config/m68k/m68k.md (*zero_extend_inc, *zero_extend_dec,
21431         *zero_extendsidi2): Fix empty split condition.
21433 2021-06-05  Jeff Law  <jeffreyalaw@gmail.com>
21435         * config/h8300/addsub.md: Fix split condition in define_insn_and_split
21436         patterns.
21437         * config/h8300/bitfield.md: Likewise.
21438         * config/h8300/combiner.md: Likewise.
21439         * config/h8300/divmod.md: Likewise.
21440         * config/h8300/extensions.md: Likewise.
21441         * config/h8300/jumpcall.md: Likewise.
21442         * config/h8300/movepush.md: Likewise.
21443         * config/h8300/multiply.md: Likewise.
21444         * config/h8300/other.md: Likewise.
21445         * config/h8300/shiftrotate.md: Likewise.
21446         * config/h8300/logical.md: Likewise.  Fix split pattern to use
21447         code iterator that somehow slipped through.
21449 2021-06-04  Tobias Burnus  <tobias@codesourcery.com>
21451         PR middle-end/100905
21452         * tree-nested.c (convert_nonlocal_omp_clauses,
21453         convert_local_omp_clauses): Handle OMP_CLAUSE_BIND.
21455 2021-06-04  Martin Sebor  <msebor@redhat.com>
21457         PR middle-end/100732
21458         * gimple-fold.c (gimple_fold_builtin_sprintf): Avoid folding calls
21459         with either source or destination argument of invalid type.
21460         * tree-ssa-uninit.c (maybe_warn_pass_by_reference): Avoid checking
21461         calls with arguments of invalid type.
21463 2021-06-04  Martin Sebor  <msebor@redhat.com>
21465         * attribs.c (init_attr_rdwr_indices): Use VLA bounds in the expected
21466         order.
21467         (attr_access::vla_bounds): Also handle VLA bounds.
21469 2021-06-04  Uroš Bizjak  <ubizjak@gmail.com>
21471         * config/i386/predicates.md (GOT_memory_operand):
21472         Implement using match_code RTXes.
21473         (GOT32_symbol_operand): Ditto.
21475 2021-06-04  Uroš Bizjak  <ubizjak@gmail.com>
21477         PR target/100637
21478         * config/i386/i386-expand.c (ix86_expand_vector_init_duplicate):
21479         Handle V2HI mode.
21480         (ix86_expand_vector_init_general): Ditto.
21481         Use SImode instead of word_mode for logic operations
21482         when GET_MODE_SIZE (mode) < UNITS_PER_WORD.
21483         (expand_vec_perm_even_odd_1): Assert that V2HI mode should be
21484         implemented by expand_vec_perm_1.
21485         (expand_vec_perm_broadcast_1): Assert that V2HI and V4HI modes
21486         should be implemented using standard shuffle patterns.
21487         (ix86_vectorize_vec_perm_const): Handle V2HImode.  Add V4HI and
21488         V2HI modes to modes, implementable with shuffle for one operand.
21489         * config/i386/mmx.md (*punpckwd): New insn_and_split pattern.
21490         (*pshufw_1): New insn pattern.
21491         (*vec_dupv2hi): Ditto.
21492         (vec_initv2hihi): New expander.
21494 2021-06-04  Kewen Lin  <linkw@linux.ibm.com>
21496         * config/arm/vfp.md (no_literal_pool_df_immediate,
21497         no_literal_pool_sf_immediate): Fix empty split condition.
21499 2021-06-04  Kewen Lin  <linkw@linux.ibm.com>
21501         * config/i386/i386.md (*load_tp_x32_zext, *add_tp_x32_zext,
21502         *tls_dynamic_gnu2_combine_32): Fix empty split condition.
21503         * config/i386/sse.md (*<sse2_avx2>_pmovmskb_lt,
21504         *<sse2_avx2>_pmovmskb_zext_lt, *sse2_pmovmskb_ext_lt,
21505         *<sse4_1_avx2>_pblendvb_lt): Likewise.
21507 2021-06-04  Jakub Jelinek  <jakub@redhat.com>
21509         PR target/100887
21510         * config/i386/i386-expand.c (ix86_expand_vector_init): Handle
21511         concatenation from half-sized modes with TImode elements.
21513 2021-06-04  Claudiu Zissulescu  <claziss@synopsys.com>
21515         * config/arc/arc.c (arc_override_options): Disable millicode
21516         thunks when RF16 is on.
21518 2021-06-04  Haochen Gui  <guihaoc@gcc.gnu.org>
21520         * config/rs6000/rs6000.h (PROMOTE_MODE): Remove.
21522 2021-06-04  Haochen Gui  <guihaoc@gcc.gnu.org>
21524         * config/rs6000/rs6000-call.c (rs6000_promote_function_mode):
21525         Replace PROMOTE_MODE marco with its content.
21527 2021-06-03  Kewen Lin  <linkw@linux.ibm.com>
21529         * config/cris/cris.md (*addi_reload): Fix empty split condition.
21531 2021-06-03  Jim Wilson  <jimw@sifive.com>
21533         * config.gcc (riscv*-*-*): If --with-riscv-attribute not used,
21534         turn it on for all riscv targets.
21536 2021-06-03  Uroš Bizjak  <ubizjak@gmail.com>
21538         PR target/100637
21539         * config/i386/i386-expand.c (ix86_expand_vector_set):
21540         Handle V2HI and V4QI modes.
21541         (ix86_expand_vector_extract): Ditto.
21542         * config/i386/mmx.md (*pinsrw): New insn pattern.
21543         (*pinsrb): Ditto.
21544         (*pextrw): Ditto.
21545         (*pextrw_zext): Ditto.
21546         (*pextrb): Ditto.
21547         (*pextrb_zext): Ditto.
21548         (vec_setv2hi): New expander.
21549         (vec_extractv2hihi): Ditto.
21550         (vec_setv4qi): Ditto.
21551         (vec_extractv4qiqi): Ditto.
21552         (vec_setv8qi): Enable only for TARGET_SSE4_1.
21553         (vec_extractv8qiqi): Ditto.
21555 2021-06-03  Aaron Sawdey  <acsawdey@linux.ibm.com>
21557         * config/rs6000/genfusion.pl (gen_logical_addsubf): Fix input
21558         order to subf instruction.
21559         * config/rs6000/fusion.md: Regenerate.
21561 2021-06-03  Aldy Hernandez  <aldyh@redhat.com>
21563         * calls.c (get_size_range): Use range_of_expr instead of
21564         determine_value_range.
21565         * tree-affine.c (expr_to_aff_combination): Same.
21566         * tree-data-ref.c (split_constant_offset): Same.
21567         * tree-vrp.c (determine_value_range_1): Remove.
21568         (determine_value_range): Remove.
21569         * tree-vrp.h (determine_value_range): Remove.
21571 2021-06-03  Aldy Hernandez  <aldyh@redhat.com>
21573         * function-tests.c (test_ranges): Call gimple_range_tests.
21574         * gimple-range-cache.cc (ranger_cache::range_of_expr): Pass stmt
21575         to get_tree_range.
21576         * gimple-range.cc (fur_source::get_operand): Do not call
21577         get_tree_range or gimple_range_global.
21578         get_tree_range.
21579         (get_tree_range): Move to value-query.cc.
21580         Call get_arith_expr_range.
21581         (gimple_ranger::range_of_expr): Add argument to get_tree_range.
21582         Include gimple-range-tests.cc.
21583         * gimple-range.h (fold_range): Add argument.
21584         (get_tree_range): Remove.
21585         * selftest.h (gimple_range_tests): New.
21586         * value-query.cc (global_range_query::range_of_expr): Add
21587         stmt argument.
21588         (range_query::get_tree_range): Move from gimple-range.cc.
21589         * value-query.h (class range_query): Add get_tree_range and
21590         get_arith_expr_range.  Make fur_source a friend.
21591         * vr-values.c (vr_values::range_of_expr): Pass stmt to
21592         get_tree_range.
21593         * gimple-range-tests.cc: New file.
21595 2021-06-03  Aldy Hernandez  <aldyh@redhat.com>
21597         * gimple-range.cc (gimple_ranger::export_global_ranges): Call
21598           update_global_range.
21599         * value-query.cc (update_global_range): New.
21600         * value-query.h (update_global_range): New.
21602 2021-06-03  David Malcolm  <dmalcolm@redhat.com>
21604         * diagnostic-show-locus.c (diagnostic_show_locus): Don't reject
21605         printing the same location twice if there are fix-it hints,
21606         multiple locations, or a label.
21608 2021-06-03  Andre Vieira  <andre.simoesdiasvieira@arm.com>
21610         * tree-vect-loop.c (vect_transform_loop): Use main loop's various'
21611         thresholds to narrow the upper bound on epilogue iterations.
21613 2021-06-03  Christophe Lyon  <christophe.lyon@linaro.org>
21615         * config/arm/mve.md (mve_vabsq_f<mode>): Use 'abs' instead of unspec.
21616         (mve_vabsq_s<mode>): Likewise.
21617         * config/arm/neon.md (abs<mode>2): Rename to neon_abs<mode>2.
21618         * config/arm/unspecs.md (VABSQ_F, VABSQ_S): Delete.
21619         * config/arm/vec-common.md (neg<mode>2): Rename to
21620         <absneg_str><mode>2.
21622 2021-06-03  Claudiu Zissulescu  <claziss@synopsys.com>
21624         * common/config/arc/arc-common.c (arc_option_optimization_table):
21625         Remove malign-call.
21626         * config/arc/arc.c (arc_unalign_branch_p): Remove unused function.
21627         * config/arc/arc.h (TARGET_MIXED_CODE): Remove macro.
21628         (INDEX_REG_CLASS): Only refer to GENERAL_REGS.
21629         * config/arc/arc.md (abssi2_mixed): Remove pattern.
21630         * config/arc/arc.opt (munalign-prob-threshold): Mark it obsolete.
21631         (malign-call): Likewise.
21632         (mmixed-code): Likewise.
21633         * doc/invoke.texi (ARC): Update doc.
21635 2021-06-03  Martin Liska  <mliska@suse.cz>
21637         * common.opt: Use proper Enum values.
21638         * opts.c (COVERAGE_SANITIZER_OPT): Remove.
21639         (parse_sanitizer_options): Handle only sanitizer_opts.
21640         (common_handle_option): Just assign value.
21642 2021-06-03  Eric Botcazou  <ebotcazou@adacore.com>
21644         PR ipa/99122
21645         * tree-inline.c (inline_forbidden_p): Remove test on return type.
21647 2021-06-03  Eric Botcazou  <ebotcazou@adacore.com>
21649         * dwarf2out.c (loc_list_from_tree_1) <FUNCTION_DECL>: Also generate
21650         DW_OP_GNU_variable_value referencing an existing DIE at file scope.
21651         (type_byte_size): Inline into...
21652         (add_byte_size_attribute): ...this and call add_scalar_info.
21654 2021-06-03  Eric Botcazou  <ebotcazou@adacore.com>
21656         * dwarf2out.c (mem_loc_descriptor) <UDIV>: Fix typo.
21657         (typed_binop_from_tree): New function.
21658         (loc_list_from_tree_1) <EXACT_DIV_EXPR>: For an unsigned type,
21659         turn a divide by a power of 2 into a shift.
21660         <CEIL_DIV_EXPR>: For an unsigned type, use a signed divide if the
21661         size of the mode is lower than DWARF2_ADDR_SIZE; otherwise, do a
21662         typed divide by calling typed_binop_from_tree.
21664 2021-06-03  Eric Botcazou  <ebotcazou@adacore.com>
21666         * dwarf2out.c (scompare_loc_descriptor): Fix head comment.
21667         (is_handled_procedure_type): Likewise.
21668         (struct loc_descr_context): Add strict_signedness field.
21669         (resolve_args_picking_1): Deal with DW_OP_[GNU_]deref_type,
21670         DW_OP_[GNU_]convert and DW_OP_[GNU_]reinterpret.
21671         (resolve_args_picking): Minor tweak.
21672         (function_to_dwarf_procedure): Initialize strict_signedness field.
21673         (type_byte_size): Likewise.
21674         (field_byte_offset): Likewise.
21675         (gen_descr_array_type_die): Likewise.
21676         (gen_variant_part): Likewise.
21677         (loc_list_from_tree_1) <CALL_EXPR>: Tidy up and set strict_signedness
21678         to true when a context is present before evaluating the arguments.
21679         <COND_EXPR>: Do not generate a useless comparison with zero.
21680         When dereferencing an address, if strict_signedness is true and the
21681         type is small and signed, use DW_OP_deref_type to do the dereference
21682         and then DW_OP_convert to convert back to the generic type.
21684 2021-06-03  Jakub Jelinek  <jakub@redhat.com>
21686         PR c++/100859
21687         * tree-inline.c (copy_tree_body_r): Handle iterators on
21688         OMP_CLAUSE_AFFINITY or OMP_CLAUSE_DEPEND.
21690 2021-06-03  Kewen Lin  <linkw@linux.ibm.com>
21692         * config/arc/arc.md (*bbit_di): Remove.
21694 2021-06-02  Christoph Muellner  <cmuellner@gcc.gnu.org>
21696         PR rtl-optimization/100264
21697         * ree.c (get_sub_rtx): Ignore SET expressions without register
21698         destinations and remove assertion, as it is not valid anymore
21699         with this new behaviour.
21700         (merge_def_and_ext): Eliminate destination check for register
21701         as such SET expressions can't occur anymore.
21702         (combine_reaching_defs): Likewise.
21704 2021-06-02  Jakub Jelinek  <jakub@redhat.com>
21706         PR target/100841
21707         * config/xtensa/xtensa.h (LEAF_REG_REMAP): Cast REGNO to int to avoid
21708         -Wtype-limits warnings.
21709         (DWARF_FRAME_REGISTER): Rewrite into ternary operator with addition
21710         in operands to avoid -Wsign-compare warnings.
21712 2021-06-02  Pat Haugen  <pthaugen@linux.ibm.com>
21714         * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Use
21715         gen_frame_store.
21717 2021-06-02  Vineet Gupta  <vgupta@synopsys.com>
21719         * config/arc/arc.h (TARGET_CPU_DEFAULT): Change to hs38_linux.
21721 2021-06-02  Ilya Leoshkevich  <iii@linux.ibm.com>
21723         * config/s390/s390.md(*ashrdi3_31<setcc><cconly>): Use a single
21724         constraint.
21725         * config/s390/subst.md(cconly_subst): Use a single constraint
21726         in (match_scratch).
21728 2021-06-02  Martin Liska  <mliska@suse.cz>
21730         * ipa-icf.h: Use auto_vec for memory_access_types.
21732 2021-06-02  Jeff Law  <jeffreyalaw@gmail.com>
21734         * config/h8300/h8300-protos.h (compute_a_shift_length): Drop unused
21735         argument from prototype.
21736         (output_logical_op): Add rtx_code argument.
21737         (compute_logical_op_length): Likewise.
21738         * config/h8300/h8300.c (h8300_and_costs): Pass additional argument
21739         to compute_a_shift_length.
21740         (output_logical_op); New argument with the rtx code rather than
21741         extracting it from an operand.  Handle QImode too.
21742         (compute_logical_op_length): Similary.
21743         (compute_a_shift_length): Drop unused argument.
21744         * config/h8300/h8300.md (logicals): New code iterator.
21745         * config/h8300/logical.md (<code><mode>3 expander): Combine
21746         the "and" expander with the "ior"/"xor" expander.
21747         (bclr<mode>msx): Combine the QI/HI mode patterns.
21748         (<logical><mode>3 insns): Use code iterator rather than match_operator.
21749         Handle QImode as well.   Update call to output_logical_op and
21750         compute_logical_op_length to pass in rtx_code
21751         Fix split condition on all define_insn_and_split patterns.
21752         (one_cmpl<mode>2<cczn>): Use <cczn> to support both clobbering
21753         the flags and setting ZN via existing define_subst.
21754         * config/h8300/shiftrotate.md: Drop unused argument from
21755         calls to compute_a_shift_length.
21756         Signed-off-by: Jeff Law <jeffreyalaw@gmail.com>
21758 2021-06-01  Andrew Pinski  <apinski@marvell.com>
21760         PR tree-optimization/25290
21761         * tree-ssa-phiopt.c (match_simplify_replacement):
21762         New function.
21763         (tree_ssa_phiopt_worker): Use match_simplify_replacement.
21764         (two_value_replacement): Change the comment about
21765         conditional_replacement.
21766         (conditional_replacement): Delete.
21768 2021-06-01  Andrew Pinski  <apinski@marvell.com>
21770         PR tree-optimization/95481
21771         * tree-tailcall.c (find_tail_calls): Handle empty typed
21772         return decls.
21774 2021-06-01  Andrew Pinski  <apinski@marvell.com>
21776         * gimplify.c (zero_sized_field_decl): Delete
21777         (zero_sized_type): Delete
21778         (gimplify_init_ctor_eval): Use is_empty_type instead
21779         of zero_sized_field_decl.
21780         (gimplify_modify_expr): Use is_empty_type instead of
21781         zero_sized_type.
21783 2021-06-01  Jason Merrill  <jason@redhat.com>
21785         PR c++/91859
21786         * tree.h (CALL_FROM_NEW_OR_DELETE_P): Adjust comment.
21788 2021-06-01  Jason Merrill  <jason@redhat.com>
21790         PR c++/94492
21791         * diagnostic.h (warning_enabled_at): Declare.
21792         * diagnostic.c (diagnostic_enabled): Factor out from...
21793         (diagnostic_report_diagnostic): ...here.
21794         (warning_enabled_at): New.
21796 2021-06-01  Aldy Hernandez  <aldyh@redhat.com>
21798         * gimple-ssa-evrp.c: Enable exporting of global ranges.
21800 2021-06-01  Martin Liska  <mliska@suse.cz>
21802         PR other/100826
21803         * doc/invoke.texi: Mention that -fgcse-after-reload
21804         is enabled with -O3.
21806 2021-06-01  liuhongt  <hongtao.liu@intel.com>
21808         PR tree-optimization/98365
21809         * tree-if-conv.c (strip_nop_cond_scalar_reduction): New function.
21810         (is_cond_scalar_reduction): Handle nop_expr in cond scalar reduction.
21811         (convert_scalar_cond_reduction): Ditto.
21812         (predicate_scalar_phi): Ditto.
21814 2021-06-01  Andrew MacLeod  <amacleod@redhat.com>
21816         PR tree-optimization/100781
21817         * gimple-range-cache.cc (ranger_cache::ranger_cache): Enable new
21818         value calculation by default.
21819         (ranger_cache::enable_new_values): New.
21820         (ranger_cache::disable_new_values): New.
21821         (ranger_cache::push_poor_value): Check if new values are allowed.
21822         * gimple-range-cache.h (class ranger_cache): New member/methods.
21823         * gimple-range.cc (gimple_ranger::range_of_expr): Check for debug
21824         statement, and disable/renable new value calculation.
21826 2021-06-01  Andrew MacLeod  <amacleod@redhat.com>
21828         * gimple-range-cache.cc (ranger_cache::ssa_range_in_bb): Delete.
21829         (ranger_cache::range_of_def): New.
21830         (ranger_cache::entry_range): New.
21831         (ranger_cache::exit_range): New.
21832         (ranger_cache::range_of_expr): Adjust.
21833         (ranger_cache::range_on_edge): Adjust.
21834         (ranger_cache::propagate_cache): Call exit_range directly.
21835         * gimple-range-cache.h (class ranger_cache): Adjust.
21837 2021-06-01  Andrew MacLeod  <amacleod@redhat.com>
21839         * gimple-range-cache.cc (ranger_cache::ranger_cache): Adjust for
21840         gori_compute being a member rather than base class.
21841         dervied call to member call.
21842         (ranger_cache::dump): No longer dump gori_map.
21843         (ranger_cache::dump_bb): New.
21844         (ranger_cache::get_non_stale_global_range): Adjust for gori_compute
21845         being a member rather than base class.
21846         (ranger_cache::set_global_range): Ditto.
21847         (ranger_cache::ssa_range_in_bb): Ditto.
21848         (ranger_cache::range_of_expr): New.
21849         (ranger_cache::range_on_edge): New.
21850         (ranger_cache::block_range): Adjust for gori_computes.  Debug changes.
21851         (ranger_cache::propagate_cache):  Adjust debugging output.
21852         (ranger_cache::fill_block_cache): Adjust for gori_computes.  Debug
21853         output changes.
21854         * gimple-range-cache.h (class ranger_cache): Make gori_compute a
21855         member, and inherit from range_query instead.
21856         (ranger_cache::dump_bb): New. split from dump.
21857         * gimple-range-gori.cc (gori_compute::ssa_range_in_bb): Delete.
21858         (gori_compute::expr_range_at_stmt): Delete.
21859         (gori_compute::compute_name_range_op): Delete.
21860         (gori_compute::compute_operand_range_switch): Add fur_source.
21861         (gori_compute::compute_operand_range): Add fur_source param, inline
21862         old compute_name_range_op and optimize_logical_operands.
21863         (struct tf_range): Delete.
21864         (gori_compute::logical_combine): Adjust
21865         (gori_compute::optimize_logical_operands): Delete.
21866         (gori_compute::compute_logical_operands_in_chain): Delete.
21867         (gori_compute::compute_logical_operands): Adjust.
21868         (gori_compute::compute_operand1_range): Adjust to fur_source.
21869         (gori_compute::compute_operand2_range): Ditto.
21870         (gori_compute::compute_operand1_and_operand2_range): Ditto.
21871         (gori_compute::outgoing_edge_range_p): Add range_query parameter,
21872         and adjust to fur_source.
21873         * gimple-range-gori.h (class gori_compute): Simplify and adjust to
21874         range_query and fur_source.
21875         * gimple-range.cc (gimple_ranger::range_on_edge): Query range_on_edge
21876         from the ranger_cache..
21877         (gimple_ranger::fold_range_internal): Adjust to base class change of
21878         ranger_cache.
21879         (gimple_ranger::dump_bb): Adjust dump.
21880         * gimple-range.h (gimple_ranger):export gori computes object.
21882 2021-06-01  Andrew MacLeod  <amacleod@redhat.com>
21884         PR tree-optimization/100774
21885         * gimple-range-cache.cc (ranger_cache::get_non_stale_global_range):
21886         Constant values are also not stale.
21887         (ranger_cache::set_global_range): Range invariant values should also
21888         have the correct timestamp.
21890 2021-05-31  Martin Liska  <mliska@suse.cz>
21892         * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
21893         Unpack FUNCTION_DECL_DECL_TYPE.
21894         * tree-streamer-out.c (pack_ts_function_decl_value_fields):
21895         Stream FUNCTION_DECL_DECL_TYPE instead of
21896         DECL_IS_OPERATOR_NEW_P.
21897         * tree.h (set_function_decl_type): Use FUNCTION_DECL_DECL_TYPE
21898         macro.
21899         (DECL_IS_OPERATOR_NEW_P): Likewise.
21900         (DECL_IS_OPERATOR_DELETE_P): Likewise.
21901         (DECL_LAMBDA_FUNCTION_P): Likewise.
21903 2021-05-31  Richard Biener  <rguenther@suse.de>
21905         PR c++/88601
21906         * internal-fn.c (expand_SHUFFLEVECTOR): Define.
21907         * internal-fn.def (SHUFFLEVECTOR): New.
21908         * internal-fn.h (expand_SHUFFLEVECTOR): Declare.
21909         * doc/extend.texi: Document __builtin_shufflevector.
21911 2021-05-31  Peter Bergner  <bergner@linux.ibm.com>
21913         PR target/99842
21914         * config/rs6000/predicates.md(mma_assemble_input_operand): Allow
21915         indexed form addresses.
21917 2021-05-29  Jeff Law  <jlaw@tachyum.com>
21919         * config/h8300/h8300.c (h8300_emit_stack_adjustment): Drop unused
21920         parameter.  Call callers fixed.
21921         (push): Likewise.
21922         (output_plussi): Add FALLTHRU markers.
21923         (h8300_shift_needs_scratch_p): Add gcc_unreachable marker.
21925 2021-05-29  Jakub Jelinek  <jakub@redhat.com>
21927         PR middle-end/99928
21928         * gimplify.c (gimplify_scan_omp_clauses): For taskloop simd
21929         combined with parallel, make sure to add shared clause to
21930         parallel for explicit linear clause.
21932 2021-05-29  Aldy Hernandez  <aldyh@redhat.com>
21934         PR tree-optimization/100787
21935         * gimple-ssa-evrp.c: Disable exporting of global ranges.
21937 2021-05-28  Jason Merrill  <jason@redhat.com>
21939         * tree-iterator.h (struct tree_stmt_iterator): Add operator++,
21940         operator--, operator*, operator==, and operator!=.
21941         (class tsi_range): New.
21943 2021-05-28  Richard Biener  <rguenther@suse.de>
21945         PR tree-optimization/100778
21946         * tree-vect-slp.c (vect_build_slp_tree_1): Prevent possibly
21947         trapping ops in different BBs.
21949 2021-05-28  Richard Biener  <rguenther@suse.de>
21951         PR ipa/100791
21952         * tree-inline.c (copy_bb): When processing __builtin_va_arg_pack
21953         copy fntype from original call.
21955 2021-05-28  Martin Liska  <mliska@suse.cz>
21957         PR gcov-profile/100751
21958         * doc/gcov.texi: Revert partially a hunk that was wrong.
21960 2021-05-28  Cooper Qu  <cooper.qu@linux.alibaba.com>
21962         * config/csky/csky-linux-elf.h (HAVE_sync_compare_and_swapqi):
21963         Defined.
21964         (HAVE_sync_compare_and_swaphi): Likewise.
21965         (HAVE_sync_compare_and_swapsi): Likewise.
21967 2021-05-28  Jakub Jelinek  <jakub@redhat.com>
21969         PR middle-end/99928
21970         * tree.h (OMP_CLAUSE_MAP_IMPLICIT): Define.
21972 2021-05-28  Tobias Burnus  <tobias@codesourcery.com>
21974         * gimplify.c (gimplify_omp_affinity): New.
21975         (gimplify_scan_omp_clauses): Call it; remove affinity clause afterwards.
21976         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_AFFINITY.
21977         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_AFFINITY.
21978         * tree.c (omp_clause_num_ops, omp_clause_code_name): Add clause.
21979         (walk_tree_1): Handle OMP_CLAUSE_AFFINITY.
21981 2021-05-28  Joern Rennecke  <joern.rennecke@riscy-ip.com>
21982             Richard Biener   <rguenther@suse.de>
21984         * match.pd <popcount & / + pattern matching>:
21985         When generating popcount directly fails, try doing it in two halves.
21987 2021-05-28  Bernd Edlinger  <bernd.edlinger@hotmail.de>
21989         * Makefile.in (generated_files): Add gimple-match.c and
21990         generic-match.c
21992 2021-05-28  Joern Rennecke  <joern.rennecke@embecosm.com>
21994         * gensupport.c (alter_predicate_for_insn): Handle MATCH_DUP.
21996 2021-05-28  Joern Rennecke  <joern.rennecke@embecosm.com>
21998         * gensupport.c (alter_constraints): Add MATCH_SCRATCH case.
22000 2021-05-28  Kewen Lin  <linkw@linux.ibm.com>
22002         PR tree-optimization/99398
22003         * tree-ssa-forwprop.c (simplify_permutation): Optimize some cases
22004         where the fed operands are CTOR/CST and propagated through
22005         VIEW_CONVERT_EXPR.  Call vec_perm_indices::new_shrunk_vector.
22006         * vec-perm-indices.c (vec_perm_indices::new_shrunk_vector): New
22007         function.
22008         * vec-perm-indices.h (vec_perm_indices::new_shrunk_vector): New
22009         declare.
22011 2021-05-27  Uroš Bizjak  <ubizjak@gmail.com>
22013         * config/i386/mmx.md (addv2sf3): Do not call
22014         ix86_fixup_binary_operands_no_copy.
22015         (subv2sf3): Ditto.
22016         (mulv2sf3): Ditto.
22017         (<smaxmin:code>v2sf3): Ditto.
22018         (<plusminus:insn><MMXMODEI:mode>3): Ditto.
22019         (<plusminus:insn><VI_32:mode>3): Remove expander.
22020         (<plusminus:insn><VI_32:mode>3): Rename from
22021         "*<plusminus:insn><VI_32:mode>3".
22022         (mulv4hi): Do not call ix86_fixup_binary_operands_no_copy.
22023         (mulv2hi3): Remove expander.
22024         (mulv2hi3): Rename from *mulv2hi3.
22025         (<s>mulv2hi3_highpart): Remove expander.
22026         (<s>mulv2hi3_highpart): Rename from *<s>mulv2hi3_highpart.
22027         (<smaxmin:code><MMXMODE14:mode>3): Rename from
22028         "*mmx_<smaxmin:code><MMXMODE14:mode>3".
22029         (<smaxmin:code><SMAXMIN_MMXMODEI:mode>3): Remove expander.
22030         (SMAXMIN_MMXMODEI): Remove mode iterator.
22031         (<smaxmin:code>v4hi3): New expander.
22032         (<smaxmin:code>v4qi3): Rename from *<smaxmin:code>v4qi3.
22033         (<smaxmin:code>v2hi3): Rename from *<smaxmin:code>v2hi3.
22034         (<smaxmin:code><SMAXMIN_VI_32:mode>3): Remove expander.
22035         (SMAXMIN_VI_32): Remove mode iterator.
22036         (<umaxmin:code><MMXMODE24:mode>3): Rename from
22037         "*mmx_<umaxmin:code><MMXMODE24:mode>3".
22038         (<umaxmin:code><UMAXMIN_MMXMODEI:mode>3): Remove expander.
22039         (UMAXMIN_MMXMODEI): Remove mode iterator.
22040         (<umaxmin:code>v8qi3): New expander.
22041         (<umaxmin:code>v4qi3): Rename from *<umaxmin:code>v4qi3.
22042         (<umaxmin:code>v2hi3): Rename from *<umaxmin:code>v2hi3.
22043         (<umaxmin:code><SMAXMIN_VI_32:mode>3): Remove expander.
22044         (UMAXMIN_VI_32): Remove mode iterator.
22045         (<any_shift:insn>v2hi3): Remove expander.
22046         (<any_shift:insn>v2hi3): Rename from *<any_shift:insn>v2hi3.
22047         (<any_logic:code><MMXMODEI:mode>3): Do not call
22048         ix86_fixup_binary_operands_no_copy.
22049         (<any_logic:code><VI_32:mode>3): Remove expander.
22050         (<any_logic:code><VI_32:mode>3): Rename from
22051         "*<any_logic:code><VI_32:mode>3".
22052         (uavg<mode>3_ceil): Do not call ix86_fixup_binary_operands_no_copy.
22053         * config/i386/sse.md (div<VF2:mode>3): Do not call
22054         ix86_fixup_binary_operands_no_copy.
22055         (div<VF1:mode>3): Ditto.
22056         (<maxmin:code><VI8_AVX2_AVX512F:mode>3): Ditto.
22057         (smulhrsv4hi3): Ditto.
22058         (smulhrsv2hi3): Ditto.
22060 2021-05-27  Martin Sebor  <msebor@redhat.com>
22062         * ggc.h (gt_ggc_mx): Add overloads for all integers.
22063         (gt_pch_nx):  Same.
22064         * hash-map.h (class hash_map): Add pch_nx_helper overloads for all
22065         integers.
22066         (hash_map::operator==): New function.
22068 2021-05-27  Uroš Bizjak  <ubizjak@gmail.com>
22070         PR target/100637
22071         * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
22072         For TARGET_XOP bypass SSE comparisons for all supported vector modes.
22073         * config/i386/mmx.md (*xop_maskcmp<MMXMODEI:mode>3): New insn pattern.
22074         (*xop_maskcmp<VI_32:mode>3): Ditto.
22075         (*xop_maskcmp_uns<MMXMODEI:mode>3): Ditto.
22076         (*xop_maskcmp_uns<VI_32:mode>3): Ditto.
22078 2021-05-27  Richard Earnshaw  <rearnsha@arm.com>
22080         PR target/100767
22081         * config/arm/arm.c (arm_configure_build_target): Remove parameter
22082         opts_set, directly check opts parameters for being non-null.
22083         (arm_option_restore): Update call to arm_configure_build_target.
22084         (arm_option_override): Likewise.
22085         (arm_can_inline_p): Likewise.
22086         (arm_valid_target_attribute_tree): Likewise.
22087         * config/arm/arm-c.c (arm_pragma_target_parse): Likewise.
22088         * config/arm/arm-protos.h (arm_configure_build_target): Adjust
22089         prototype.
22091 2021-05-27  Aldy Hernandez  <aldyh@redhat.com>
22093         * vr-values.c (simplify_conversion_using_ranges): Use
22094         get_range_query instead of get_global_range_query.
22096 2021-05-27  Aldy Hernandez  <aldyh@redhat.com>
22098         * gimple-range.cc (get_range_global): Move to value-query.cc.
22099         (gimple_range_global): Same.
22100         (get_global_range_query): Same.
22101         (global_range_query::range_of_expr): Same.
22102         * gimple-range.h (class global_range_query): Move to
22103         value-query.h.
22104         (gimple_range_global): Same.
22105         * tree-ssanames.c (get_range_info): Move to value-query.cc.
22106         (get_ptr_nonnull): Same.
22107         * tree-ssanames.h (get_range_info): Remove.
22108         (get_ptr_nonnull): Remove.
22109         * value-query.cc (get_ssa_name_range_info): Move from
22110         tree-ssanames.c.
22111         (get_ssa_name_ptr_info_nonnull): Same.
22112         (get_range_global): Move from gimple-range.cc.
22113         (gimple_range_global): Same.
22114         (get_global_range_query): Same.
22115         (global_range_query::range_of_expr): Same.
22116         * value-query.h (class global_range_query): Move from
22117         gimple-range.h.
22118         (gimple_range_global): Same.
22120 2021-05-27  Uroš Bizjak  <ubizjak@gmail.com>
22122         PR target/100637
22123         * config/i386/mmx.md (uavgv4qi3_ceil): New insn pattern.
22124         (uavgv2hi3_ceil): Ditto.
22126 2021-05-26  Eric Botcazou  <ebotcazou@adacore.com>
22128         PR c/100653
22129         * doc/extend.texi (scalar_storage_order): Rephrase slightly.
22131 2021-05-26  Aldy Hernandez  <aldyh@redhat.com>
22133         * tree-ssanames.c (get_range_info): Merge both copies of
22134         get_range_info into one that works with irange.
22135         * tree-ssanames.h (get_range_info): Remove version that works on
22136         wide_ints.
22138 2021-05-26  Aldy Hernandez  <aldyh@redhat.com>
22140         * builtins.c (check_nul_terminated_array): Convert to get_range_query.
22141         (expand_builtin_strnlen): Same.
22142         (determine_block_size): Same.
22143         * fold-const.c (expr_not_equal_to): Same.
22144         * gimple-fold.c (size_must_be_zero_p): Same.
22145         * gimple-match-head.c: Include gimple-range.h.
22146         * gimple-pretty-print.c (dump_ssaname_info): Convert to get_range_query.
22147         * gimple-ssa-warn-restrict.c
22148         (builtin_memref::extend_offset_range): Same.
22149         * graphite-sese-to-poly.c (add_param_constraints): Same.
22150         * internal-fn.c (get_min_precision): Same.
22151         * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Same.
22152         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
22153         * match.pd: Same.
22154         * tree-data-ref.c (split_constant_offset): Same.
22155         (dr_step_indicator): Same.
22156         * tree-dfa.c (get_ref_base_and_extent): Same.
22157         * tree-scalar-evolution.c (iv_can_overflow_p): Same.
22158         * tree-ssa-loop-niter.c (refine_value_range_using_guard): Same.
22159         (determine_value_range): Same.
22160         (record_nonwrapping_iv): Same.
22161         (infer_loop_bounds_from_signedness): Same.
22162         (scev_var_range_cant_overflow): Same.
22163         * tree-ssa-phiopt.c (two_value_replacement): Same.
22164         * tree-ssa-pre.c (insert_into_preds_of_block): Same.
22165         * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Same.
22166         * tree-ssa-strlen.c (handle_builtin_stxncpy_strncat): Same.
22167         (get_range): Same.
22168         (dump_strlen_info): Same.
22169         (set_strlen_range): Same.
22170         (maybe_diag_stxncpy_trunc): Same.
22171         (get_len_or_size): Same.
22172         (handle_integral_assign): Same.
22173         * tree-ssa-structalias.c (find_what_p_points_to): Same.
22174         * tree-ssa-uninit.c (find_var_cmp_const): Same.
22175         * tree-switch-conversion.c (bit_test_cluster::emit): Same.
22176         * tree-vect-patterns.c (vect_get_range_info): Same.
22177         (vect_recog_divmod_pattern): Same.
22178         * tree-vrp.c (intersect_range_with_nonzero_bits): Same.
22179         (register_edge_assert_for_2): Same.
22180         (determine_value_range_1): Same.
22181         * tree.c (get_range_pos_neg): Same.
22182         * vr-values.c (vr_values::get_lattice_entry): Same.
22183         (vr_values::update_value_range): Same.
22184         (simplify_conversion_using_ranges): Same.
22186 2021-05-26  Aldy Hernandez  <aldyh@redhat.com>
22188         * gimple-ssa-warn-alloca.c (alloca_call_type): Use
22189           get_range_query instead of query argument.
22190         (pass_walloca::execute): Enable and disable global ranger.
22192 2021-05-26  Aldy Hernandez  <aldyh@redhat.com>
22194         * gimple-ssa-evrp.c (rvrp_folder::rvrp_folder): Call
22195         enable_ranger.
22196         (rvrp_folder::~rvrp_folder): Call disable_ranger.
22197         (hybrid_folder::hybrid_folder): Call enable_ranger.
22198         (hybrid_folder::~hybrid_folder): Call disable_ranger.
22200 2021-05-26  Aldy Hernandez  <aldyh@redhat.com>
22202         * function.c (allocate_struct_function): Set cfun->x_range_query.
22203         * function.h (struct function): Declare x_range_query.
22204         (get_range_query): New.
22205         (get_global_range_query): New.
22206         * gimple-range-cache.cc (ssa_global_cache::ssa_global_cache):
22207         Remove call to safe_grow_cleared.
22208         * gimple-range.cc (get_range_global): New.
22209         (gimple_range_global): Move from gimple-range.h.
22210         (get_global_range_query): New.
22211         (global_range_query::range_of_expr): New.
22212         (enable_ranger): New.
22213         (disable_ranger): New.
22214         * gimple-range.h (gimple_range_global): Move to gimple-range.cc.
22215         (class global_range_query): New.
22216         (enable_ranger): New.
22217         (disable_ranger): New.
22218         * gimple-ssa-evrp.c (evrp_folder::~evrp_folder): Rename
22219         dump_all_value_ranges to dump.
22220         * tree-vrp.c (vrp_prop::finalize): Same.
22221         * value-query.cc (range_query::dump): New.
22222         * value-query.h (range_query::dump): New.
22223         * vr-values.c (vr_values::dump_all_value_ranges): Rename to...
22224         (vr_values::dump): ...this.
22225         * vr-values.h (class vr_values): Rename dump_all_value_ranges to
22226         dump and make virtual.
22228 2021-05-26  Uroš Bizjak  <ubizjak@gmail.com>
22230         * config/i386/i386.c (ix86_autovectorize_vector_modes):
22231         Add V4QImode and V16QImode for TARGET_SSE2.
22232         * doc/sourcebuild.texi (Vector-specific attributes):
22233         Add vect64 and vect32 description.
22235 2021-05-26  Bernd Edlinger  <bernd.edlinger@hotmail.de>
22237         * gimple-range-gori.cc (range_def_chain::register_dependency):
22238         Resize m_def_chain when needed.
22240 2021-05-26  Christophe Lyon  <christophe.lyon@linaro.org>
22242         * config/arm/mve.md (mve_vaddvq_<supf><mode>): Prefix with '@'.
22243         * config/arm/neon.md (reduc_plus_scal_<mode>): Move to ..
22244         * config/arm/vec-common.md: .. here. Add support for MVE.
22246 2021-05-26  Jakub Jelinek  <jakub@redhat.com>
22248         * config/epiphany/epiphany.c (epiphany_print_operand_address): Remove
22249         register keywords.
22250         * config/microblaze/microblaze.c (microblaze_legitimize_address,
22251         call_internal1,
22252         microblaze_option_override, print_operand): Likewise.
22253         * config/microblaze/microblaze.md (call_internal_plt,
22254         call_value_intern_plt, call_value_intern): Likewise.
22255         * config/arm/aout.h (ASM_OUTPUT_ALIGN): Likewise.
22256         * config/iq2000/iq2000.md (call_internal1, call_value_internal1,
22257         call_value_multiple_internal1): Likewise.
22258         * config/bfin/bfin.c (symbolic_reference_mentioned_p): Likewise.
22260 2021-05-26  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
22262         * config/arc/arc.c (arc_address_cost, arc_print_operand_address,
22263         arc_ccfsm_advance, symbolic_reference_mentioned_p,
22264         arc_raw_symbolic_reference_mentioned_p): Remove register
22265         keyword.
22267 2021-05-26  Jakub Jelinek  <jakub@redhat.com>
22269         PR libgomp/100573
22270         * omp-low.c: Include omp-offload.h.
22271         (create_omp_child_function): If current_function_decl has
22272         "omp declare target" attribute and is_gimple_omp_offloaded,
22273         remove that attribute from the copy of attribute list and
22274         add "omp target entrypoint" attribute instead.
22275         (lower_omp_target): Mark .omp_data_sizes.* and .omp_data_kinds.*
22276         variables for offloading if in omp_maybe_offloaded_ctx.
22277         * omp-offload.c (pass_omp_target_link::execute): Nullify second
22278         argument to GOMP_target_data_ext in offloaded code.
22280 2021-05-26  Geng Qi  <gengqi@linux.alibaba.com>
22282         * config/csky/csky.c (csky_can_change_mode_class): Delete.
22283         For csky, HF/SF mode use the low bits of VREGS.
22285 2021-05-26  Eric Botcazou  <ebotcazou@adacore.com>
22287         * gimplify.c (gimplify_decl_expr): Do not clear TREE_READONLY on a
22288         DECL which is a reference for OMP.
22290 2021-05-26  Martin Liska  <mliska@suse.cz>
22292         PR gcov-profile/100751
22293         * doc/gcov.texi: Document that __gcov_dump can be called just
22294         once and that __gcov_reset resets run-time counters.
22296 2021-05-26  Martin Liska  <mliska@suse.cz>
22298         * doc/install.texi: Port relevant part from install-old.texi
22299         and re-generate list of CPUs and systems.
22301 2021-05-26  Martin Liska  <mliska@suse.cz>
22303         * Makefile.in: Remove it.
22304         * doc/include/fdl.texi: Update next/previous chapters.
22305         * doc/install.texi: Likewise.
22306         * doc/install-old.texi: Removed.
22308 2021-05-26  Geng Qi  <gengqi@linux.alibaba.com>
22310         * config/csky/csky.c (ck810_legitimate_index_p): Support
22311         "base + index" with DF mode.
22312         * config/csky/constraints.md ("Y"): New constraint for memory operands
22313         without index register.
22314         * config/csky/csky_insn_fpuv2.md (fpuv3_movdf): Use "Y" instead of "m"
22315         when mov between memory and general registers, and lower their priority.
22316         * config/csky/csky_insn_fpuv3.md (fpuv2_movdf): Likewise.
22318 2021-05-26  Geng Qi  <gengqi@linux.alibaba.com>
22320         * config/csky/csky.c (TARGET_PROMOTE_PROTOTYPES): Delete.
22322 2021-05-26  Geng Qi  <gengqi@linux.alibaba.com>
22324         * config/csky/csky.md (untyped_call): Emit clobber for return
22325         registers to mark them used.
22327 2021-05-26  Geng Qi  <gengqi@linux.alibaba.com>
22329         * config/csky/csky.md (cskyv2_sextend_ldbs): New.
22331 2021-05-26  Andrew Pinski  <apinski@marvell.com>
22333         * match.pd (x < 0 ? ~y : y): New patterns.
22335 2021-05-26  Andrew Pinski  <apinski@marvell.com>
22337         * match.pd (A?CST1:CST2): Add simplifcations for A?0:+-1, A?+-1:0,
22338         A?POW2:0 and A?0:POW2.
22340 2021-05-25  Andrew MacLeod  <amacleod@redhat.com>
22342         * gimple-range-gori.cc (class logical_stmt_cache): Delete
22343         (logical_stmt_cache::logical_stmt_cache ): Delete.
22344         (logical_stmt_cache::~logical_stmt_cache): Delete.
22345         (logical_stmt_cache::cache_entry::dump): Delete.
22346         (logical_stmt_cache::get_range): Delete.
22347         (logical_stmt_cache::cached_name ): Delete.
22348         (logical_stmt_cache::same_cached_name): Delete.
22349         (logical_stmt_cache::cacheable_p): Delete.
22350         (logical_stmt_cache::slot_diagnostics ): Delete.
22351         (logical_stmt_cache::dump): Delete.
22352         (gori_compute_cache::gori_compute_cache): Delete.
22353         (gori_compute_cache::~gori_compute_cache): Delete.
22354         (gori_compute_cache::compute_operand_range): Delete.
22355         (gori_compute_cache::cache_stmt): Delete.
22356         * gimple-range-gori.h (gori_compute::compute_operand_range): Remove
22357         virtual.
22358         (class gori_compute_cache): Delete.
22360 2021-05-25  Andrew MacLeod  <amacleod@redhat.com>
22362         * gimple-range.cc (fold_using_range::range_of_range_op): Use m_gori
22363         intead of m_cache.
22364         (fold_using_range::range_of_address): Adjust.
22365         (fold_using_range::range_of_phi): Adjust.
22366         * gimple-range.h (class fur_source): Adjust.
22367         (fur_source::fur_source): Adjust.
22369 2021-05-25  Andrew MacLeod  <amacleod@redhat.com>
22371         * gimple-range-gori.cc (gori_compute::expr_range_at_stmt): Rename
22372         from expr_range_in_bb and adjust.
22373         (gori_compute::compute_name_range_op): Adjust.
22374         (gori_compute::optimize_logical_operands): Adjust.
22375         (gori_compute::compute_logical_operands_in_chain): Adjust.
22376         (gori_compute::compute_operand1_range): Adjust.
22377         (gori_compute::compute_operand2_range): Adjust.
22378         (ori_compute_cache::cache_stmt): Adjust.
22379         * gimple-range-gori.h (gori_compute): Rename prototype.
22381 2021-05-25  Andrew MacLeod  <amacleod@redhat.com>
22383         * gimple-range.cc (gimple_ranger::range_of_expr): Non-null should be
22384         checked only after range_of_stmt, not range_on_entry.
22385         (gimple_ranger::range_on_entry): Check for non-null in any
22386         predecessor block, if it is not already non-null.
22387         (gimple_ranger::range_on_exit): DOnt check for non-null after
22388         range on entry call.
22389         (gimple_ranger::dump_bb): New.  Split from dump.
22390         (gimple_ranger::dump): Adjust.
22391         * gimple-range.h (class gimple_ranger): Adjust.
22393 2021-05-25  Andrew MacLeod  <amacleod@redhat.com>
22395         * gimple-range-cache.cc (struct range_timestamp): Delete.
22396         (class temporal_cache): Adjust.
22397         (temporal_cache::get_timestamp): Delete.
22398         (temporal_cache::set_dependency): Delete.
22399         (temporal_cache::temporal_value): Adjust.
22400         (temporal_cache::current_p): Take dependencies as params.
22401         (temporal_cache::set_timestamp): Adjust.
22402         (temporal_cache::set_always_current): Adjust.
22403         (ranger_cache::get_non_stale_global_range): Adjust.
22404         (ranger_cache::register_dependency): Delete.
22405         * gimple-range-cache.h (class range_cache): Adjust.
22407 2021-05-25  Andrew MacLeod  <amacleod@redhat.com>
22409         * gimple-range-gori.cc (range_def_chain::range_def_chain): init
22410         bitmap obstack.
22411         (range_def_chain::~range_def_chain): Dispose of obstack rather than
22412         each individual bitmap.
22413         (range_def_chain::set_import): New.
22414         (range_def_chain::get_imports): New.
22415         (range_def_chain::chain_import_p): New.
22416         (range_def_chain::register_dependency): Rename from build_def_chain
22417         and set imports.
22418         (range_def_chain::def_chain_in_bitmap_p): New.
22419         (range_def_chain::add_def_chain_to_bitmap): New.
22420         (range_def_chain::has_def_chain): Just check first depenedence.
22421         (range_def_chain::get_def_chain): Process imports, use generic
22422         register_dependency routine.
22423         (range_def_chain::dump): New.
22424         (gori_map::gori_map): Allocate import list.
22425         (gori_map::~gori_map): Release imports.
22426         (gori_map::exports): Check for past allocated block size.
22427         (gori_map::imports): New.
22428         (gori_map::def_chain_in_export_p): Delete.
22429         (gori_map::is_import_p): New.
22430         (gori_map::maybe_add_gori): Handle imports.
22431         (gori_map::dump): Adjust output, add imports.
22432         (gori_compute::has_edge_range_p): Remove def_chain_in_export call.
22433         (gori_export_iterator::gori_export_iterator): New.
22434         (gori_export_iterator::next): New.
22435         (gori_export_iterator::get_name): New.
22436         * gimple-range-gori.h (range_def_chain): Add imports and direct
22437         dependecies via struct rdc.
22438         (range_def_chain::depend1): New.
22439         (range_def_chain::depend2): New.
22440         (class gori_map): Adjust.
22441         (FOR_EACH_GORI_IMPORT_NAME): New.
22442         (FOR_EACH_GORI_EXPORT_NAME): New.
22443         (class gori_export_iterator): New.
22445 2021-05-25  Andrew MacLeod  <amacleod@redhat.com>
22447         * gimple-range-cache.cc (ranger_cache::ranger_cache):  Move initial
22448         export cache filling to here.
22449         * gimple-range-gori.cc (gori_compute::gori_compute) : From Here.
22451 2021-05-25  Andrew MacLeod  <amacleod@redhat.com>
22453         * gimple-range-gori.cc (range_def_chain): Move to gimple-range-gori.h.
22454         (gori_map): Move to gimple-range-gori.h.
22455         (gori_compute::gori_compute): Adjust.
22456         (gori_compute::~gori_compute): Delete.
22457         (gori_compute::compute_operand_range_switch): Adjust.
22458         (gori_compute::compute_operand_range): Adjust.
22459         (gori_compute::compute_logical_operands): Adjust.
22460         (gori_compute::has_edge_range_p ): Adjust.
22461         (gori_compute::set_range_invariant): Delete.
22462         (gori_compute::dump): Adjust.
22463         (gori_compute::outgoing_edge_range_p): Adjust.
22464         * gimple-range-gori.h (class range_def_chain): Relocate here.
22465         (class gori_map): Relocate here.
22466         (class gori_compute): Inherit from gori_map, and adjust.
22468 2021-05-25  Aldy Hernandez  <aldyh@redhat.com>
22470         * value-range.cc (range_tests_legacy): Use
22471         build_nonstandard_integer_type instead of int and short.
22473 2021-05-25  Eric Botcazou  <ebotcazou@adacore.com>
22475         * gimplify.c (gimplify_decl_expr): Clear TREE_READONLY on the DECL
22476         when really creating an initialization statement for it.
22478 2021-05-25  Eric Botcazou  <ebotcazou@adacore.com>
22480         * tree-inline.c (setup_one_parameter): Fix thinko in new condition.
22482 2021-05-25  Kito Cheng  <kito.cheng@sifive.com>
22484         * config/riscv/riscv.h (ASM_SPEC): Pass -mno-relax.
22486 2021-05-25  Martin Liska  <mliska@suse.cz>
22488         PR tree-optimization/92860
22489         PR target/99592
22490         * optc-save-gen.awk: Remove exceptions.
22492 2021-05-25  Martin Liska  <mliska@suse.cz>
22494         * asan.h (sanitize_coverage_p): New function.
22495         * doc/extend.texi: Document it.
22496         * fold-const.c (fold_range_test): Use sanitize_flags_p
22497         instead of flag_sanitize_coverage.
22498         (fold_truth_andor): Likewise.
22499         * sancov.c: Likewise.
22500         * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
22501         * ipa-inline.c (sanitize_attrs_match_for_inline_p): Handle
22502         -fsanitize-coverage when inlining.
22504 2021-05-25  Cooper Qu  <cooper.qu@linux.alibaba.com>
22506         * config/csky/csky-modes.def : Fix copyright.
22508 2021-05-25  Cooper Qu  <cooper.qu@linux.alibaba.com>
22510         * config/csky/csky-modes.def : Amend copyright.
22511         * config/csky/csky_insn_fpuv2.md : Likewise.
22512         * config/csky/csky_insn_fpuv3.md : Likewise.
22514 2021-05-25  Richard Biener  <rguenther@suse.de>
22516         PR middle-end/100727
22517         * calls.c (initialize_argument_information): Explicitely test
22518         for WITH_SIZE_EXPR.
22519         * gimple-expr.c (mark_addressable): Skip outer WITH_SIZE_EXPR.
22521 2021-05-25  Geng Qi  <gengqi@linux.alibaba.com>
22523         * config/csky/csky.h (FRAME_POINTER_REGNUM): Use
22524         HARD_FRAME_POINTER_REGNUM and FRAME_POINTER_REGNUM instead of
22525         the signle definition. The signle definition may not work well
22526         at simplify_subreg_regno().
22527         (HARD_FRAME_POINTER_REGNUM): New.
22528         (ELIMINABLE_REGS): Add for HARD_FRAME_POINTER_REGNUM.
22529         * config/csky/csky.c (get_csky_live_regs, csky_can_eliminate,
22530         csky_initial_elimination_offset, csky_expand_prologue,
22531         csky_expand_epilogue): Add for HARD_FRAME_POINTER_REGNUM.
22533 2021-05-25  Geng Qi  <gengqi@linux.alibaba.com>
22535         * config/csky/csky.c (csky_option_override):
22536         Init csky_arch_isa_features[] in advance, so TARGET_DSP
22537         and TARGET_DIV can be set well.
22539 2021-05-25  Geng Qi  <gengqi@linux.alibaba.com>
22541         * config/csky/constraints.md ("l", "h"): Delete.
22542         * config/csky/csky.h (reg_class, REG_CLASS_NAMES,
22543         REG_CLASS_CONTENTS):  Delete LO_REGS and HI_REGS.
22544         * config/csky/csky.c (regno_reg_classm,
22545         csky_secondary_reload, csky_register_move_cost):
22546         Use HILO_REGS instead of LO_REGS and HI_REGS.
22548 2021-05-25  Geng Qi  <gengqi@linux.alibaba.com>
22550         * config/csky/constraints.md ("W"): New constriant for mem operand
22551         with base reg, index register.
22552         ("Q"): Renamed and modified "csky_valid_fpuv2_mem_operand" to
22553         "csky_valid_mem_constraint_operand" to deal with both "Q" and "W"
22554         constraint.
22555         ("Dv"): New constraint for const double value that can be used at
22556         fmovi instruction.
22557         * config/csky/csky-modes.def (HFmode): New mode.
22558         * config/csky/csky-protos.h (csky_valid_fpuv2_mem_operand): Rename
22559         to "csky_valid_mem_constraint_operand" and support new constraint
22560         "W".
22561         (csky_get_movedouble_length): New.
22562         (fpuv3_output_move): New.
22563         (fpuv3_const_double): New.
22564         * config/csky/csky.c (csky_option_override): New arch CK860 with fpv3.
22565         (decompose_csky_address): Refine.
22566         (csky_print_operand): New "CONST_DOUBLE" operand.
22567         (csky_output_move): Support fpv3 instructions.
22568         (csky_get_movedouble_length): New.
22569         (fpuv3_output_move): New.
22570         (fpuv3_const_double): New.
22571         (csky_emit_compare): Cover float comparsion.
22572         (csky_emit_compare_float): Refine.
22573         (csky_vaild_fpuv2_mem_operand): Rename to
22574         "csky_valid_mem_constraint_operand" and support new constraint "W".
22575         (ck860_rtx_costs): New.
22576         (csky_rtx_costs): Add the cost calculation of CK860.
22577         (regno_reg_class): New vregs for fpuv3.
22578         (csky_dbx_regno): Likewise.
22579         (csky_cpu_cpp_builtins): New builtin macro for fpuv3.
22580         (csky_conditional_register_usage): Suporrot fpuv3.
22581         (csky_dwarf_register_span): Suporrot fpuv3.
22582         (csky_init_builtins, csky_mangle_type): Support "__fp16" type.
22583         (ck810_legitimate_index_p): Support fp16.
22584         * config/csky/csky.h (TARGET_TLS): ADD CK860.
22585         (CSKY_VREG_P, CSKY_VREG_LO_P, CSKY_VREG_HI_P): Support fpuv3.
22586         (TARGET_SINGLE_FPU): Support fpuv3.
22587         (TARGET_SUPPORT_FPV3): New.
22588         (FIRST_PSEUDO_REGISTER): Change to 202 to hold the new fpuv3 registers.
22589         (FIXED_REGISTERS, CALL_REALLY_USED_REGISTERS, REGISTER_NAMES,
22590          REG_CLASS_CONTENTS): Support fpuv3.
22591         * config/csky/csky.md (movsf): Move to cksy_insn_fpu.md and refine.
22592         (csky_movsf_fpv2): Likewise.
22593         (ck801_movsf): Likewise.
22594         (csky_movsf): Likewise.
22595         (movdf): Likewise.
22596         (csky_movdf_fpv2): Likewise.
22597         (ck801_movdf): Likewise.
22598         (csky_movdf): Likewise.
22599         (movsicc): Refine. Use "comparison_operatior" instead of
22600         "ordered_comparison_operatior".
22601         (addsicc): Likewise.
22602         (CSKY_FIRST_VFP3_REGNUM, CSKY_LAST_VFP3_REGNUM): New constant.
22603         (call_value_internal_vh): New.
22604         * config/csky/csky_cores.def (CK860): New arch and cpu.
22605         (fpv3_hf): New.
22606         (fpv3_hsf): New.
22607         (fpv3_sdf): New.
22608         (fpv3): New.
22609         * config/csky/csky_insn_fpu.md: Refactor. Separate all float patterns
22610         into emit-patterns and match-patterns, remain the emit-patterns here,
22611         and move the match-patterns to csky_insn_fpuv2.md or
22612         csky_insn_fpuv3.md.
22613         * config/csky/csky_insn_fpuv2.md: New file for fpuv2 instructions.
22614         * config/csky/csky_insn_fpuv3.md: New file and new patterns for fpuv3
22615         isntructions.
22616         * config/csky/csky_isa.def (fcr): New.
22617         (fpv3_hi): New.
22618         (fpv3_hf): New.
22619         (fpv3_sf): New.
22620         (fpv3_df): New.
22621         (CK860): New definition for ck860.
22622         * config/csky/csky_tables.opt (ck860): New processors ck860,
22623         ck860f. And new arch ck860.
22624         (fpv3_hf): New.
22625         (fpv3_hsf): New.
22626         (fpv3_hdf): New.
22627         (fpv3): New.
22628         * config/csky/predicates.md (csky_float_comparsion_operator): Delete
22629         "geu", "gtu", "leu", "ltu", which will never appear at float comparison.
22630         * config/csky/t-csky-elf: Support 860.
22631         * config/csky/t-csky-linux: Likewise.
22632         * doc/md.texi: Add "Q" and "W" constraints for C-SKY.
22634 2021-05-24  Aaron Sawdey  <acsawdey@linux.ibm.com>
22636         * config/rs6000/genfusion.pl (gen_logical_addsubf): Refactor to
22637         add generation of logical-add and add-logical fusion pairs.
22638         * config/rs6000/rs6000-cpus.def: Add new fusion to ISA 3.1 mask
22639         and powerpc mask.
22640         * config/rs6000/rs6000.c (rs6000_option_override_internal): Turn on
22641         logical-add and add-logical fusion by default.
22642         * config/rs6000/rs6000.opt: Add -mpower10-fusion-logical-add and
22643         -mpower10-fusion-add-logical options.
22644         * config/rs6000/fusion.md: Regenerate file.
22646 2021-05-24  Aldy Hernandez  <aldyh@redhat.com>
22648         * value-range.cc (irange::legacy_equal_p): Check type when
22649         comparing VR_VARYING types.
22650         (range_tests_legacy): Test comparing VARYING ranges of different
22651         sizes.
22653 2021-05-24  Wilco Dijkstra  <wdijkstr@arm.com>
22655         * config/aarch64/aarch64.c (neoversen1_tunings):
22656         Enable AARCH64_EXTRA_TUNE_CHEAP_SHIFT_EXTEND.
22658 2021-05-24  Wilco Dijkstra  <wdijkstr@arm.com>
22660         * config/aarch64/aarch64.c (aarch64_classify_symbol): Use GOT for
22661         extern weak symbols.  Limit symbol offsets for non-GOT symbols with
22662         PIC/PIE.
22664 2021-05-24  Christophe Lyon  <christophe.lyon@linaro.org>
22666         * config/arm/neon.md (vec_load_lanesxi<mode>)
22667         (vec_store_lanexoi<mode>): Move ...
22668         * config/arm/vec-common.md: here.
22670 2021-05-24  Christophe Lyon  <christophe.lyon@linaro.org>
22672         * config/arm/neon.md (vec_load_lanesoi<mode>)
22673         (vec_store_lanesoi<mode>): Move ...
22674         * config/arm/vec-common.md: here.
22676 2021-05-24  liuhongt  <hongtao.liu@intel.com>
22678         PR target/100660
22679         * config/i386/i386.c (ix86_gimple_fold_builtin): Replacing
22680         stmt with GIMPLE_NOP when lhs doesn't exist.
22682 2021-05-23  Uroš Bizjak  <ubizjak@gmail.com>
22684         PR target/100722
22685         * config/i386/mmx.md (*push<VI_32:mode>2_rex64):
22686         New instruction pattern.
22687         (*push<VI_32:mode>2): Ditto.
22688         (push splitter for SSE registers): New splitter.
22690 2021-05-23  Andrew Pinski  <apinski@marvell.com>
22692         * match.pd ((A & C) != 0 ? D : 0): Limit to non pointer types.
22694 2021-05-22  Aaron Sawdey  <acsawdey@linux.ibm.com>
22696         * config/rs6000/genfusion.pl (gen_addadd): Fix incorrect attr types.
22697         * config/rs6000/fusion.md: Regenerate file.
22699 2021-05-21  Aaron Sawdey  <acsawdey@linux.ibm.com>
22701         * config/rs6000/genfusion.pl (gen_addadd): New function.
22702         * config/rs6000/fusion.md: Regenerate file.
22703         * config/rs6000/rs6000-cpus.def: Add
22704         OPTION_MASK_P10_FUSION_2ADD to masks.
22705         * config/rs6000/rs6000.c (rs6000_option_override_internal):
22706         Handle default value of OPTION_MASK_P10_FUSION_2ADD.
22707         * config/rs6000/rs6000.opt: Add -mpower10-fusion-2add.
22709 2021-05-21  Jakub Jelinek  <jakub@redhat.com>
22711         PR middle-end/99928
22712         * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT_TARGET): Define.
22713         * gimplify.c (enum gimplify_omp_var_data): Fix up
22714         GOVD_MAP_HAS_ATTACHMENTS value, add GOVD_FIRSTPRIVATE_IMPLICIT.
22715         (omp_lastprivate_for_combined_outer_constructs): If combined target
22716         has GOVD_FIRSTPRIVATE_IMPLICIT set for the decl, change it to
22717         GOVD_MAP | GOVD_SEEN.
22718         (gimplify_scan_omp_clauses): Set GOVD_FIRSTPRIVATE_IMPLICIT for
22719         firstprivate clauses with OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT.
22720         (gimplify_adjust_omp_clauses): For firstprivate clauses with
22721         OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT either clear that bit and
22722         OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT_TARGET too, or remove it and
22723         let it be replaced by implicit map clause.
22725 2021-05-21  Jakub Jelinek  <jakub@redhat.com>
22727         PR middle-end/99928
22728         * gimplify.c (omp_lastprivate_for_combined_outer_constructs): New
22729         function.
22730         (gimplify_scan_omp_clauses) <case OMP_CLAUSE_LASTPRIVATE>: Use it.
22731         (gimplify_omp_for): Likewise.
22733 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
22735         PR middle-end/90115
22736         * omp-low.c (oacc_privatization_candidate_p): Reject 'static',
22737         'external' in blocks.
22739 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
22741         PR middle-end/90115
22742         * flag-types.h (enum openacc_privatization): New.
22743         * params.opt (-param=openacc-privatization): New.
22744         * doc/invoke.texi (openacc-privatization): Document it.
22745         * omp-general.h (get_openacc_privatization_dump_flags): New
22746         function.
22747         * omp-low.c (oacc_privatization_candidate_p): Add diagnostics.
22748         * omp-offload.c (execute_oacc_device_lower)
22749         <IFN_UNIQUE_OACC_PRIVATE>: Re-work diagnostics.
22750         * target.def (goacc.adjust_private_decl): Add 'location_t'
22751         parameter.
22752         * doc/tm.texi: Regenerate.
22753         * config/gcn/gcn-protos.h (gcn_goacc_adjust_private_decl): Adjust.
22754         * config/gcn/gcn-tree.c (gcn_goacc_adjust_private_decl): Likewise.
22755         * config/nvptx/nvptx.c (nvptx_goacc_adjust_private_decl):
22756         Likewise.  Preserve it for...
22757         (nvptx_goacc_expand_var_decl): ... use here.
22759 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
22761         * doc/sourcebuild.texi (Other attributes): Document '__OPTIMIZE__'
22762         DejaGnu selector.
22764 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
22766         PR middle-end/90115
22767         * omp-low.c (oacc_privatization_candidate_p): New function.
22768         (oacc_privatization_scan_clause_chain)
22769         (oacc_privatization_scan_decl_chain): Use it.  Also
22770         'gcc_checking_assert' that we're not seeing duplicates.
22772 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
22774         PR middle-end/90115
22775         * omp-offload.c (execute_oacc_device_lower): Skip processing if no
22776         work to be done.
22778 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
22780         PR middle-end/90115
22781         * omp-offload.c (execute_oacc_device_lower): Explain.
22783 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
22785         PR middle-end/90115
22786         * omp-offload.c (execute_oacc_device_lower)
22787         <IFN_UNIQUE_OACC_PRIVATE>: Diagnose and handle for 'level == -1'
22788         case, too.
22789         * internal-fn.c (expand_UNIQUE): Don't expect
22790         'IFN_UNIQUE_OACC_PRIVATE'.
22792 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
22794         PR middle-end/90115
22795         * omp-low.c (lower_omp_for): Don't evaluate OpenMP 'for' clauses.
22797 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
22799         PR middle-end/90115
22800         * config/nvptx/nvptx.c (nvptx_goacc_adjust_private_decl)
22801         (nvptx_goacc_expand_var_decl): Tighten.
22803 2021-05-21  Julian Brown  <julian@codesourcery.com>
22804             Chung-Lin Tang  <cltang@codesourcery.com>
22805             Thomas Schwinge  <thomas@codesourcery.com>
22807         PR middle-end/90115
22808         * doc/tm.texi.in (TARGET_GOACC_EXPAND_VAR_DECL)
22809         (TARGET_GOACC_ADJUST_PRIVATE_DECL): Add documentation hooks.
22810         * doc/tm.texi: Regenerate.
22811         * expr.c (expand_expr_real_1): Expand decls using the
22812         expand_var_decl OpenACC hook if defined.
22813         * internal-fn.c (expand_UNIQUE): Handle IFN_UNIQUE_OACC_PRIVATE.
22814         * internal-fn.h (IFN_UNIQUE_CODES): Add OACC_PRIVATE.
22815         * omp-low.c (omp_context): Add oacc_privatization_candidates
22816         field.
22817         (lower_oacc_reductions): Add PRIVATE_MARKER parameter.  Insert
22818         before fork.
22819         (lower_oacc_head_tail): Add PRIVATE_MARKER parameter.  Modify
22820         private marker's gimple call arguments, and pass it to
22821         lower_oacc_reductions.
22822         (oacc_privatization_scan_clause_chain)
22823         (oacc_privatization_scan_decl_chain, lower_oacc_private_marker):
22824         New functions.
22825         (lower_omp_for, lower_omp_target, lower_omp_1): Use these.
22826         * omp-offload.c (convert.h): Include.
22827         (oacc_loop_xform_head_tail): Treat private-variable markers like
22828         fork/join when transforming head/tail sequences.
22829         (struct var_decl_rewrite_info): Add struct.
22830         (oacc_rewrite_var_decl, is_sync_builtin_call): New functions.
22831         (execute_oacc_device_lower): Support rewriting gang-private
22832         variables using target hook, and fix up addr_expr and var_decl
22833         nodes afterwards.
22834         * target.def (adjust_private_decl, expand_var_decl): New hooks.
22835         * config/gcn/gcn-protos.h (gcn_goacc_adjust_gangprivate_decl):
22836         Rename to...
22837         (gcn_goacc_adjust_private_decl): ...this.
22838         * config/gcn/gcn-tree.c (gcn_goacc_adjust_gangprivate_decl):
22839         Rename to...
22840         (gcn_goacc_adjust_private_decl): ...this. Add LEVEL parameter.
22841         * config/gcn/gcn.c (TARGET_GOACC_ADJUST_GANGPRIVATE_DECL): Rename
22842         definition using gcn_goacc_adjust_gangprivate_decl...
22843         (TARGET_GOACC_ADJUST_PRIVATE_DECL): ...to this, using
22844         gcn_goacc_adjust_private_decl.
22845         * config/nvptx/nvptx.c (tree-pretty-print.h): Include.
22846         (gang_private_shared_size): New global variable.
22847         (gang_private_shared_align): Likewise.
22848         (gang_private_shared_sym): Likewise.
22849         (gang_private_shared_hmap): Likewise.
22850         (nvptx_option_override): Initialize these.
22851         (nvptx_file_end): Output gang_private_shared_sym.
22852         (nvptx_goacc_adjust_private_decl, nvptx_goacc_expand_var_decl):
22853         New functions.
22854         (nvptx_set_current_function): Clear gang_private_shared_hmap.
22855         (TARGET_GOACC_ADJUST_PRIVATE_DECL): Define hook.
22856         (TARGET_GOACC_EXPAND_VAR_DECL): Likewise.
22858 2021-05-21  H.J. Lu  <hjl.tools@gmail.com>
22860         * config/i386/i386-modes.def (MAX_BITSIZE_MODE_ANY_INT): Removed.
22862 2021-05-21  Richard Biener  <rguenther@suse.de>
22863             H.J. Lu  <hjl.tools@gmail.com>
22865         PR middle-end/90773
22866         * expr.c (expand_constructor): Elide expand_constructor if
22867         move by pieces is preferred.
22869 2021-05-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22871         * config/aarch64/aarch64-builtins.c (aarch64_call_properties):
22872         Take a flag and mode value as arguments.
22873         (aarch64_modifies_global_state_p): Likewise.
22874         (aarch64_reads_global_state_p): Likewise.
22875         (aarch64_could_trap_p): Likewise.
22876         (aarch64_get_attributes): Likewise.
22877         (aarch64_init_simd_builtins): Adjust callsite of above.
22878         (aarch64_init_fcmla_laneq_builtins): Use aarch64_get_attributes to get
22879         function attributes to apply to builtins.
22880         (aarch64_init_crc32_builtins): Likewise.
22881         (aarch64_init_builtin_rsqrt): Likewise.
22883 2021-05-21  Aaron Sawdey  <acsawdey@linux.ibm.com>
22885         * config/rs6000/rs6000.md (define_attr "type"): Add types for fusion.
22886         * config/rs6000/genfusion.pl (gen_ld_cmpi_p10): Use new fusion types.
22887         (gen_2logical): Use new fusion types.
22888         * config/rs6000/fusion.md: Regenerate.
22890 2021-05-21  Uroš Bizjak  <ubizjak@gmail.com>
22892         PR target/100637
22893         * config/i386/i386-expand.c (ix86_expand_sse_movcc):
22894         Handle V4QI and V2HI modes.
22895         (ix86_expand_sse_movcc): Ditto.
22896         * config/i386/mmx.md (*<sat_plusminus:insn><VI_32:mode>3):
22897         New instruction pattern.
22898         (*eq<VI_32:mode>3): Ditto.
22899         (*gt<VI_32:mode>3): Ditto.
22900         (*xop_pcmov_<VI_32:mode>): Ditto.
22901         (mmx_pblendvb32): Ditto.
22902         (mmx_pblendvb64): Rename from mmx_pblendvb.
22903         (vec_cmp<VI_32:mode><VI_32:mode>): New expander.
22904         (vec_cmpu<VI_32:mode><VI_32:mode>): Ditto.
22905         (vcond<VI_32:mode><VI_32:mode>): Ditto.
22906         (vcondu<VI_32:mode><VI_32:mode>): Ditto.
22907         (vcond_mask_<VI_32:mode><VI_32:mode>): Ditto.
22909 2021-05-21  Jakub Jelinek  <jakub@redhat.com>
22911         PR tree-optimization/94589
22912         * tree-ssa-phiopt.c (spaceship_replacement): For integral rhs1 and
22913         rhs2, treat x <= 4 equivalently to x < 5 etc.  In cmp1 and cmp2 (if
22914         not the same as cmp3) treat <= the same as < and >= the same as >.
22915         Don't require that cond2_phi_edge is true edge, instead take
22916         false/true edges into account based on cmp1/cmp2 comparison kinds.
22918 2021-05-21  Uroš Bizjak  <ubizjak@gmail.com>
22920         PR target/100637
22921         * config/i386/mmx.md (SMAXMIN_MMXMODEI): New mode iterator.
22922         (<smaxmin:code><SMAXMIN_MMXMODEI:mode>3): Macroize expander
22923         from <smaxmin:code>v4hi3> and <smaxmin:code><MMXMODE14:mode>3
22924         using SMAXMIN_MMXMODEI mode iterator.
22925         (*<smaxmin:code>v4qi3): New insn pattern.
22926         (*<smaxmin:code>v2hi3): Ditto.
22927         (SMAXMIN_VI_32): New mode iterator.
22928         (<smaxmin:code><SMAXMIN_VI_32>mode3): New expander.
22929         (UMAXMIN_MMXMODEI): New mode iterator.
22930         (<umaxmin:code><UMAXMIN_MMXMODEI:mode>3): Macroize expander
22931         from <umaxmin:code>v8qi3> and <umaxmin:code><MMXMODE24:mode>3
22932         using UMAXMIN_MMXMODEI mode iterator.
22933         (*<umaxmin:code>v4qi3): New insn pattern.
22934         (*<umaxmin:code>v2hi3): Ditto.
22935         (UMAXMIN_VI_32): New mode iterator.
22936         (<umaxmin:code><UMAXMIN_VI_32>mode3): New expander.
22937         (abs<VI_32:mode>2): New insn pattern.
22938         (ssse3_abs<MMXMODEI:mode>2, abs<MMXMODEI:mode>2): Move from ...
22939         * config/i386/sse.md: ... here.
22941 2021-05-20  Clement Chigot  <clement.chigot@atos.net>
22942             David Edelsohn  <dje.gcc@gmail.com>
22944         * collect2.c (scan_prog_file): Issue non-fatal warning for
22945         non-COFF files.
22947 2021-05-20  Jonathan Wakely  <jwakely@redhat.com>
22949         * doc/invoke.texi (-Wno-c++11-extensions)
22950         (-Wno-c++14-extensions, -Wno-c++17-extensions)
22951         (-Wno-c++20-extensions, -Wno-c++23-extensions): Document
22952         new options.
22954 2021-05-20  Indu Bhagat  <indu.bhagat@oracle.com>
22956         * config/c6x/c6x.c (c6x_output_file_unwind): Use dwarf_debuginfo_p.
22957         * config/darwin.c (darwin_override_options): Likewise.
22958         * config/i386/cygming.h (DBX_REGISTER_NUMBER): Likewise.
22959         * config/i386/darwin.h (DBX_REGISTER_NUMBER): Likewise.
22960         (DWARF2_FRAME_REG_OUT): Likewise.
22961         * config/mips/mips.c (mips_output_filename): Likewise.
22962         * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name):
22963         Likewise.
22964         (rs6000_dbx_register_number): Likewise.
22965         * dbxout.c: Include flags.h.
22966         * dwarf2cfi.c (cfi_label_required_p): Likewise.
22967         (dwarf2out_do_frame): Likewise.
22968         * except.c: Include flags.h.
22969         * final.c (dwarf2_debug_info_emitted_p): Likewise.
22970         (final_scan_insn_1): Likewise.
22971         * flags.h (dwarf_debuginfo_p): New function declaration.
22972         * opts.c (dwarf_debuginfo_p): New function definition.
22973         * targhooks.c (default_debug_unwind_info): Use dwarf_debuginfo_p.
22974         * toplev.c (process_options): Likewise.
22976 2021-05-20  Indu Bhagat  <indu.bhagat@oracle.com>
22978         * common.opt: Change type to support bitmasks.
22979         * flag-types.h (enum debug_info_type): Rename enumerator constants.
22980         (NO_DEBUG): New bitmask.
22981         (DBX_DEBUG): Likewise.
22982         (DWARF2_DEBUG): Likewise.
22983         (XCOFF_DEBUG): Likewise.
22984         (VMS_DEBUG): Likewise.
22985         (VMS_AND_DWARF2_DEBUG): Likewise.
22986         * flags.h (debug_set_to_format): New function declaration.
22987         (debug_set_count): Likewise.
22988         (debug_set_names): Likewise.
22989         * opts.c (debug_type_masks): Array of bitmasks for debug formats.
22990         (debug_set_to_format): New function definition.
22991         (debug_set_count): Likewise.
22992         (debug_set_names): Likewise.
22993         (set_debug_level): Update access to debug_type_names.
22994         * toplev.c: Likewise.
22996 2021-05-20  Martin Sebor  <msebor@redhat.com>
22998         PR middle-end/100684
22999         * tree-ssa-ccp.c (pass_post_ipa_warn::execute): Handle C++ lambda.
23001 2021-05-20  Uroš Bizjak  <ubizjak@gmail.com>
23003         PR target/100701
23004         * config/i386/i386.md (isa): Remove x64_bmi.
23005         (enabled): Remove x64_bmi.
23006         * config/i386/mmx.md (mmx_andnot<MMXMODEI:mode>3):
23007         Remove general register alternative.
23008         (*andnot<VI_32:mode>3): Ditto.
23009         (*mmx_<any_logic:code><MMXMODEI:mode>3): Ditto.
23010         (*<any_logic:code><VI_32:mode>3): Ditto.
23012 2021-05-20  Kewen Lin  <linkw@linux.ibm.com>
23014         * config/arm/arm.c: Include head files tree-vectorizer.h and
23015         cfgloop.h.
23017 2021-05-20  Uroš Bizjak  <ubizjak@gmail.com>
23019         PR target/100637
23020         * config/i386/mmx.md (Yv_Yw): Revert adding V4QI and V2HI modes.
23021         (*<plusminus:insn><VI_32:mode>3): Use Yw instad of <Yv_Yw> constrint.
23022         (<s>mulv4hi3_highpart): New expander.
23023         (*<s>mulv2hi3_highpart): New insn pattern.
23024         (<s>mulv2hi3_higpart): New expander.
23025         (*<any_shift:insn>v2hi3): New insn pattern.
23026         (<any_shift:insn>v2hi3): New expander.
23027         * config/i386/sse.md (smulhrsv2hi3): New expander.
23028         (*smulhrsv2hi3): New insn pattern.
23030 2021-05-20  Kewen Lin  <linkw@linux.ibm.com>
23032         * doc/invoke.texi (vect-inner-loop-cost-factor): Document new
23033         parameter.
23034         * params.opt (vect-inner-loop-cost-factor): New.
23035         * targhooks.c (default_add_stmt_cost): Replace hardcoded factor
23036         50 with LOOP_VINFO_INNER_LOOP_COST_FACTOR, include head file
23037         tree-vectorizer.h and its required ones.
23038         * config/aarch64/aarch64.c (aarch64_add_stmt_cost): Replace
23039         hardcoded factor 50 with LOOP_VINFO_INNER_LOOP_COST_FACTOR.
23040         * config/arm/arm.c (arm_add_stmt_cost): Likewise.
23041         * config/i386/i386.c (ix86_add_stmt_cost): Likewise.
23042         * config/rs6000/rs6000.c (rs6000_add_stmt_cost): Likewise.
23043         * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
23044         Likewise.
23045         (_loop_vec_info::_loop_vec_info): Init inner_loop_cost_factor.
23046         * tree-vectorizer.h (_loop_vec_info): Add inner_loop_cost_factor.
23047         (LOOP_VINFO_INNER_LOOP_COST_FACTOR): New macro.
23049 2021-05-20  Christophe Lyon  <christophe.lyon@linaro.org>
23050             Torbjörn Svensson  <torbjorn.svensson@st.com>
23052         PR c/42579
23053         * doc/cpp.texi (Common Predefined Macros): Document __FILE_NAME__.
23055 2021-05-20  Jakub Jelinek  <jakub@redhat.com>
23057         PR middle-end/99928
23058         * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_LINEAR>: For
23059         explicit linear clause when combined with target, make it map(tofrom:)
23060         instead of no clause or firstprivate.
23062 2021-05-20  Jakub Jelinek  <jakub@redhat.com>
23064         PR tree-optimization/94589
23065         * match.pd ((X & Y) == X -> (X & ~Y) == 0): Simplify even in presence
23066         of integral conversions.
23068 2021-05-19  Andrew MacLeod  <amacleod@redhat.com>
23070         * gimple-range.cc (fur_source::get_operand): New.
23071         (gimple_range_fold): Delete.
23072         (fold_using_range::fold_stmt): Move from gimple_ranger::calc_stmt.
23073         (fold_using_range::range_of_range_op): Move from gimple_ranger.
23074         (fold_using_range::range_of_address): Ditto.
23075         (fold_using_range::range_of_phi): Ditto.
23076         (fold_using_range::range_of_call): Ditto.
23077         (fold_using_range::range_of_builtin_ubsan_call): Move from
23078         range_of_builtin_ubsan_call.
23079         (fold_using_range::range_of_builtin_call): Move from
23080         range_of_builtin_call.
23081         (gimple_ranger::range_of_builtin_call): Delete.
23082         (fold_using_range::range_of_cond_expr): Move from gimple_ranger.
23083         (gimple_ranger::fold_range_internal): New.
23084         (gimple_ranger::range_of_stmt): Use new fold_using_range API.
23085         (fold_using_range::range_of_ssa_name_with_loop_info): Move from
23086         gimple_ranger.  Improve ranges of SSA_NAMES when possible.
23087         * gimple-range.h (gimple_ranger): Remove various range_of routines.
23088         (class fur_source): New.
23089         (class fold_using_range): New.
23090         (fur_source::fur_source): New.
23091         (fold_range): New.
23092         * vr-values.c (vr_values::extract_range_basic): Use fold_using_range
23093         instead of range_of_builtin_call.
23095 2021-05-19  Jonathan Wakely  <jwakely@redhat.com>
23097         * doc/cpp.texi (Common Predefined Macros): Update documentation
23098         for the __GXX_EXPERIMENTAL_CXX0X__ macro.
23100 2021-05-19  Alex Coplan  <alex.coplan@arm.com>
23102         PR target/100333
23103         * config/arm/arm.md (nonsecure_call_internal): Always ensure
23104         callee's address is in a register.
23106 2021-05-19  Geng Qi  <gengqi@linux.alibaba.com>
23108         * common/config/riscv/riscv-common.c
23109         (riscv_subset_list::parsing_subset_version): Properly parse the letter
23110         'p' in '-march'.
23111         (riscv_subset_list::parse_std_ext,
23112          riscv_subset_list::parse_multiletter_ext): To handle errors generated
23113         in riscv_subset_list::parsing_subset_version.
23115 2021-05-19  Jonathan Wright  <jonathan.wright@arm.com>
23117         * config/aarch64/aarch64-simd.md: Use "neon_move_narrow_q"
23118         type attribute in patterns generating XTN(2).
23120 2021-05-19  Jonathan Wright  <jonathan.wright@arm.com>
23122         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_pack_trunc_<mode>):
23123         Remove as duplicate of...
23124         (aarch64_xtn<mode>): This.
23125         (aarch64_xtn2<mode>_le): Move position in file.
23126         (aarch64_xtn2<mode>_be): Move position in file.
23127         (aarch64_xtn2<mode>): Move position in file.
23128         (vec_pack_trunc_<mode>): Define as an expander.
23130 2021-05-19  Jonathan Wright  <jonathan.wright@arm.com>
23132         * config/aarch64/aarch64-simd-builtins.def: Split builtin
23133         generation for aarch64_<sur>q<r>shr<u>n_n<mode> pattern into
23134         separate scalar and vector generators.
23135         * config/aarch64/aarch64-simd.md
23136         (aarch64_<sur>q<r>shr<u>n_n<mode>): Define as an expander and
23137         split into...
23138         (aarch64_<sur>q<r>shr<u>n_n<mode>_insn_le): This and...
23139         (aarch64_<sur>q<r>shr<u>n_n<mode>_insn_be): This.
23140         * config/aarch64/iterators.md: Define SD_HSDI iterator.
23142 2021-05-19  Jonathn Wright  <jonathan.wright@arm.com>
23144         * config/aarch64/aarch64-simd.md: Use UNSPEC_SQXTUN instead
23145         of UNSPEC_SQXTUN2.
23146         * config/aarch64/iterators.md: Remove UNSPEC_SQXTUN2.
23148 2021-05-19  Jonathan Wright  <jonathan.wright@arm.com>
23150         * config/aarch64/aarch64-simd.md (aarch64_<sur>q<r>shr<u>n2_n<mode>):
23151         Implement as an expand emitting a big/little endian
23152         instruction pattern.
23153         (aarch64_<sur>q<r>shr<u>n2_n<mode>_insn_le): Define.
23154         (aarch64_<sur>q<r>shr<u>n2_n<mode>_insn_be): Define.
23156 2021-05-19  Jonathan Wright  <jonathan.wright@arm.com>
23158         * config/aarch64/aarch64-simd.md (aarch64_<sur><addsub>hn2<mode>):
23159         Implement as an expand emitting a big/little endian
23160         instruction pattern.
23161         (aarch64_<sur><addsub>hn2<mode>_insn_le): Define.
23162         (aarch64_<sur><addsub>hn2<mode>_insn_be): Define.
23163         * config/aarch64/iterators.md: Remove UNSPEC_[R]ADDHN2 and
23164         UNSPEC_[R]SUBHN2 unspecs and ADDSUBHN2 iterator.
23166 2021-05-19  Richard Biener  <rguenther@suse.de>
23168         PR middle-end/100672
23169         * fold-const.c (fold_negate_expr_1): Use element_precision.
23170         (negate_expr_p): Likewise.
23172 2021-05-19  Andre Vieira  <andre.simoesdiasvieira@arm.com>
23174         * config/aarch64/iterators.md (SVE_PRED_LOAD): New iterator.
23175         (pred_load): New int attribute.
23176         * config/aarch64/aarch64-sve.md
23177         (aarch64_load_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>): Use
23178         SVE_PRED_LOAD enum iterator and corresponding pred_load attribute.
23179         * config/aarch64/aarch64-sve-builtins-base.cc (expand): Update call to
23180         code_for_aarch64_load.
23182 2021-05-19  Richard Biener  <rguenther@suse.de>
23184         * cfgexpand.c (discover_nonconstant_array_refs_r): Make
23185         sure TARGET_MEM_REF bases are expanded as memory.
23186         * tree-ssa-operands.c (operands_scanner::get_tmr_operands):
23187         Do not mark TARGET_MEM_REF bases addressable.
23188         * tree-ssa.c (non_rewritable_mem_ref_base): Handle
23189         TARGET_MEM_REF bases as never rewritable.
23190         * gimple-walk.c (walk_stmt_load_store_addr_ops): Do not
23191         walk TARGET_MEM_REF bases as address-takens.
23192         * tree-ssa-dce.c (ref_may_be_aliased): Handle TARGET_MEM_REF.
23194 2021-05-19  Richard Biener  <rguenther@suse.de>
23196         * builtins.c (get_object_alignment_1): Strip outer
23197         WITH_SIZE_EXPR.
23198         * tree-dfa.c (get_ref_base_and_extent): Handle outer
23199         WITH_SIZE_EXPR for size processing and process the
23200         containing ref.
23201         * tree-ssa-alias.c (ao_ref_base_alias_set): Strip
23202         outer WITH_SIZE_EXPR.
23203         (ao_ref_base_alias_ptr_type): Likewise.
23204         (refs_may_alias_p_2): Allow WITH_SIZE_EXPR in ref->ref
23205         and handle that accordingly, stripping it for the
23206         core alias workers.
23207         * tree.c (get_base_address): Handle WITH_SIZE_EXPR by
23208         looking through it instead of returning NULL.
23210 2021-05-19  Jakub Jelinek  <jakub@redhat.com>
23212         PR middle-end/100576
23213         * builtins.c (check_read_access): Convert bound to size_type_node if
23214         non-NULL.
23216 2021-05-19  Richard Biener  <rguenther@suse.de>
23218         * tree-cfg.c (verify_types_in_gimple_min_lval): Inline...
23219         (verify_types_in_gimple_reference): ... here.  Sanitize.
23220         (verify_gimple_call): Verify references in LHS and arguments.
23221         (verify_gimple_assign_single): Reject WITH_SIZE_EXPR.
23223 2021-05-19  Uroš Bizjak  <ubizjak@gmail.com>
23225         * config/i386/i386.h (VALID_INT_MODE_P):
23226         Add V8QI, V4HI and V2SI modes for TARGET_64BIT.
23227         * config/i386/i386.md (isa): Add x64_bmi.
23228         (enabled): Handle x64_bmi.
23229         * config/i386/mmx.md (mmx_andnot<MMXMODEI:mode>3):
23230         Add alternative using 64bit general registers.
23231         (*mmx_<any_logic:code><MMXMODEI:mode>3): Ditto.
23233 2021-05-19  Jakub Jelinek  <jakub@redhat.com>
23235         PR middle-end/99928
23236         * tree.h (OMP_MASTER_COMBINED): Define.
23237         * gimplify.c (gimplify_scan_omp_clauses): Rewrite lastprivate
23238         handling for outer combined/composite constructs to a loop.
23239         Handle lastprivate on combined target.
23240         (gimplify_expr): Formatting fix.
23242 2021-05-19  Xionghu Luo  <luoxhu@linux.ibm.com>
23244         * passes.def: Add sink_code pass before store_merging.
23245         * tree-ssa-sink.c (pass_sink_code:clone): New.
23247 2021-05-18  Bill Schmidt  <wschmidt@linux.ibm.com>
23249         * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Remove call to
23250         rs6000_special_adjust_field_align_p.
23251         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
23252         * config/rs6000/rs6000-call.c (rs6000_function_arg_boundary):
23253         Remove ABI warning.
23254         (rs6000_function_arg): Likewise.
23255         * config/rs6000/rs6000-protos.h
23256         (rs6000_special_adjust_field_align_p): Remove prototype.
23257         * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
23258         Remove.
23259         * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Remove call to
23260         rs6000_special_adjust_field_align_p.
23262 2021-05-18  Uroš Bizjak  <ubizjak@gmail.com>
23264         PR target/100637
23265         * config/i386/i386.h (VALID_SSE2_REG_MODE):
23266         Add V4QI and V2HI modes.
23267         (VALID_INT_MODE_P): Ditto.
23268         * config/i386/mmx.md (VI_32): New mode iterator.
23269         (mmxvecsize): Handle V4QI and V2HI.
23270         (Yv_Yw): Ditto.
23271         (mov<VI_32:mode>): New expander.
23272         (*mov<mode>_internal): New insn pattern.
23273         (movmisalign<VI_32:mode>): New expander.
23274         (neg<VI_32:mode>): New expander.
23275         (<plusminus:insn><VI_32:mode>3): New expander.
23276         (*<plusminus:insn><VI_32:mode>3): New insn pattern.
23277         (mulv2hi3): New expander.
23278         (*mulv2hi3): New insn pattern.
23279         (one_cmpl<VI_32:mode>2): New expander.
23280         (*andnot<VI_32:mode>3): New insn pattern.
23281         (<any_logic:code><VI_32:mode>3): New expander.
23282         (*<any_logic:code><VI_32:mode>3): New insn pattern.
23284 2021-05-18  Uroš Bizjak  <ubizjak@gmail.com>
23286         * config/i386/sse.md (<any_extend:insn>v4qiv4di2):
23287         Fix a mode mismatch with operand 1.
23289 2021-05-18  Uroš Bizjak  <ubizjak@gmail.com>
23291         PR target/100626
23292         * config/i386/i386-expand.c (split_double_mode): Return
23293         temporary register when simplify_gen_subreg fails with
23294         the high half od the paradoxical subreg.
23296 2021-05-18  Richard Biener  <rguenther@suse.de>
23298         * cfgexpand.c (expand_one_var): Pass in forced_stack_var
23299         and honor it when expanding.
23300         (expand_used_vars_for_block): Pass through forced_stack_var.
23301         (expand_used_vars): Likewise.
23302         (discover_nonconstant_array_refs_r): Set bits in
23303         forced_stack_vars instead of marking vars TREE_ADDRESSABLE.
23304         (avoid_type_punning_on_regs): Likewise.
23305         (discover_nonconstant_array_refs): Likewise.
23306         (pass_expand::execute): Create and pass down forced_stack_var
23307         bitmap.  For parameters and returns temporarily set
23308         TREE_ADDRESSABLE when expand_function_start.
23310 2021-05-18  Thomas Schwinge  <thomas@codesourcery.com>
23312         * doc/sourcebuild.texi: Document 'dg-note'.
23314 2021-05-18  Tobias Burnus  <tobias@codesourcery.com>
23316         PR other/100598
23317         * configure: Regenerate.
23318         * configure.ac (BUILD_CFLAG, BUILD_CXXFLAGS): Add $(CFLAGS-$@).
23320 2021-05-18  Thomas Schwinge  <thomas@codesourcery.com>
23322         * gimple.h (is_gimple_omp_oacc): Tighten.
23323         * omp-low.c (check_omp_nesting_restrictions): Adjust.
23325 2021-05-18  Richard Biener  <rguenther@suse.de>
23327         * tree-ssa-operands.c (mark_address_taken): Simplify.
23329 2021-05-18  Martin Liska  <mliska@suse.cz>
23331         * config/gcn/mkoffload.c (STR): Redefine.
23332         * config/i386/intelmic-mkoffload.c (STR): Likewise.
23333         * config/nvptx/mkoffload.c (STR): Likewise.
23335 2021-05-18  Martin Liska  <mliska@suse.cz>
23337         * common/config/aarch64/aarch64-common.c (aarch64_parse_extension):
23338         Use startswith function instead of strncmp.
23339         * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
23340         * common/config/riscv/riscv-common.c (riscv_subset_list::parse): Likewise.
23341         * config/aarch64/aarch64-sve-builtins-shapes.cc (parse_type): Likewise.
23342         * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Likewise.
23343         * config/alpha/alpha.c (alpha_elf_section_type_flags): Likewise.
23344         * config/arm/aarch-common.c (arm_md_asm_adjust): Likewise.
23345         * config/arm/arm.c (arm_file_start): Likewise.
23346         (arm_valid_target_attribute_rec): Likewise.
23347         (thumb1_md_asm_adjust): Likewise.
23348         * config/arm/driver-arm.c (host_detect_local_cpu): Likewise.
23349         * config/avr/avr.c (STR_PREFIX_P): Likewise.
23350         (avr_set_current_function): Likewise.
23351         (avr_handle_addr_attribute): Likewise.
23352         (avr_asm_output_aligned_decl_common): Likewise.
23353         (avr_asm_named_section): Likewise.
23354         (avr_section_type_flags): Likewise.
23355         (avr_asm_select_section): Likewise.
23356         * config/c6x/c6x.c (c6x_in_small_data_p): Likewise.
23357         (c6x_section_type_flags): Likewise.
23358         * config/darwin-c.c (darwin_cfstring_ref_p): Likewise.
23359         (darwin_objc_declare_unresolved_class_reference): Likewise.
23360         (darwin_objc_declare_class_definition): Likewise.
23361         * config/darwin.c (indirect_data): Likewise.
23362         (darwin_encode_section_info): Likewise.
23363         (darwin_objc2_section): Likewise.
23364         (darwin_objc1_section): Likewise.
23365         (machopic_select_section): Likewise.
23366         (darwin_globalize_label): Likewise.
23367         (darwin_label_is_anonymous_local_objc_name): Likewise.
23368         (darwin_asm_named_section): Likewise.
23369         (darwin_asm_output_dwarf_offset): Likewise.
23370         * config/frv/frv.c (frv_string_begins_with): Likewise.
23371         (frv_in_small_data_p): Likewise.
23372         * config/gcn/mkoffload.c (STR): Likewise.
23373         (main): Likewise.
23374         * config/i386/i386-builtins.c (get_builtin_code_for_version): Likewise.
23375         * config/i386/i386-options.c (ix86_option_override_internal): Likewise.
23376         * config/i386/i386.c (x86_64_elf_section_type_flags): Likewise.
23377         (ix86_md_asm_adjust): Likewise.
23378         * config/i386/intelmic-mkoffload.c (STR): Likewise.
23379         * config/i386/winnt.c (i386_pe_asm_named_section): Likewise.
23380         (i386_pe_file_end): Likewise.
23381         * config/ia64/ia64.c (ia64_in_small_data_p): Likewise.
23382         (ia64_section_type_flags): Likewise.
23383         * config/mips/driver-native.c (host_detect_local_cpu): Likewise.
23384         * config/mips/mips.c (mips_handle_interrupt_attr): Likewise.
23385         (mips16_stub_function_p): Likewise.
23386         (mips_function_rodata_section): Likewise.
23387         * config/msp430/msp430.c (msp430_mcu_name): Likewise.
23388         (msp430_function_section): Likewise.
23389         (msp430_section_type_flags): Likewise.
23390         (msp430_expand_helper): Likewise.
23391         * config/nios2/nios2.c (nios2_small_section_name_p): Likewise.
23392         (nios2_valid_target_attribute_rec): Likewise.
23393         * config/nvptx/mkoffload.c (process): Likewise.
23394         (STR): Likewise.
23395         * config/pa/som.h: Likewise.
23396         * config/pdp11/pdp11.c (pdp11_output_ident): Likewise.
23397         * config/riscv/riscv.c (riscv_elf_select_rtx_section): Likewise.
23398         * config/rs6000/rs6000.c (VTABLE_NAME_P): Likewise.
23399         (rs6000_inner_target_options): Likewise.
23400         * config/s390/driver-native.c (s390_host_detect_local_cpu): Likewise.
23401         * config/sparc/driver-sparc.c (host_detect_local_cpu): Likewise.
23402         * config/vax/vax.c (vax_output_int_move): Likewise.
23403         * config/vms/vms-ld.c (startswith): Likewise.
23404         (process_args): Likewise.
23405         (main): Likewise.
23406         * config/vms/vms.c: Likewise.
23408 2021-05-18  Jakub Jelinek  <jakub@redhat.com>
23410         PR rtl-optimization/100590
23411         * regcprop.c (copyprop_hardreg_forward_1): Only DCE dead sets if
23412         they are NONJUMP_INSN_P.
23414 2021-05-18  Jakub Jelinek  <jakub@redhat.com>
23416         PR c++/100580
23417         * function.c (push_dummy_function): Set DECL_ARTIFICIAL and
23418         DECL_ASSEMBLER_NAME on the fn_decl.
23420 2021-05-18  Jakub Jelinek  <jakub@redhat.com>
23422         PR tree-optimization/94589
23423         * tree-ssa-phiopt.c (spaceship_replacement): Pattern match
23424         phi result used in (res & ~1) == 0 comparison as res >= 0 as
23425         res == 2 would be UB with -ffinite-math-only.
23427 2021-05-18  Martin Liska  <mliska@suse.cz>
23429         * Makefile.in: genversion.o should depend on DATESTAMP.
23431 2021-05-18  Claudiu Zissulescu  <claziss@synopsys.com>
23433         * config/arc/simdext.md (negv2si2): Remove round bracket.
23435 2021-05-18  Andreas Krebbel  <krebbel@linux.ibm.com>
23437         * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Define
23438         _Bool as macro expanding to _Bool.
23440 2021-05-18  Andreas Krebbel  <krebbel@linux.ibm.com>
23442         PR c++/100281
23443         * tree.c (build_reference_type_for_mode)
23444         (build_pointer_type_for_mode): Pick pointer mode if MODE argument
23445         is VOIDmode.
23446         (build_reference_type, build_pointer_type): Invoke
23447         build_*_type_for_mode with VOIDmode.
23449 2021-05-17  Andrew MacLeod  <amacleod@redhat.com>
23451         PR tree-optimization/100512
23452         * gimple-range-cache.cc (ranger_cache::set_global_range): Mark const
23453         and non-zero pointer ranges as invariant.
23454         * gimple-range.cc (gimple_ranger::range_of_stmt): Remove pointer
23455         processing from here.
23457 2021-05-17  Tom de Vries  <tdevries@suse.de>
23459         PR target/100497
23460         * config/nvptx/nvptx-protos.h (nvptx_output_atomic_insn): Declare
23461         * config/nvptx/nvptx.c (nvptx_output_barrier)
23462         (nvptx_output_atomic_insn): New function.
23463         (nvptx_print_operand): Add support for 'B'.
23464         * config/nvptx/nvptx.md: Use nvptx_output_atomic_insn for atomic
23465         insns.
23467 2021-05-17  Aldy Hernandez  <aldyh@redhat.com>
23469         PR tree-optimization/100349
23470         * vr-values.c (bounds_of_var_in_loop): Bail if scev returns
23471           NULL.
23473 2021-05-17  Tamar Christina  <tamar.christina@arm.com>
23475         * config/aarch64/driver-aarch64.c (DEFAULT_ARCH): New.
23476         (host_detect_local_cpu): Use it.
23478 2021-05-17  Martin Liska  <mliska@suse.cz>
23480         * doc/invoke.texi: Add 2 missing dots.
23482 2021-05-17  Marius Hillenbrand  <mhillen@linux.ibm.com>
23484         PR bootstrap/100552
23485         * configure.ac: Replace pattern substitution with call to sed.
23486         * configure: Regenerate.
23488 2021-05-17  Richard Biener  <rguenther@suse.de>
23490         PR middle-end/100582
23491         * tree.c (array_at_struct_end_p): Get to the base of the
23492         reference before looking for the underlying decl.
23494 2021-05-17  Joern Rennecke  <joern.rennecke@embecosm.com>
23496         * genoutput.c (validate_insn_alternatives) Make "wrong number of
23497         alternatives" message more specific, and remove assumption on where
23498         the problem is.
23500 2021-05-17  Christophe Lyon  <christophe.lyon@linaro.org>
23502         * config/arm/iterators.md (V16): New iterator.
23503         (VH_cvtto): New iterator.
23504         (v_cmp_result): Added V4HF and V8HF support.
23505         * config/arm/vec-common.md (vec_cmp<mode><v_cmp_result>): Use VDQWH.
23506         (vcond<mode><mode>): Likewise.
23507         (vcond_mask_<mode><v_cmp_result>): Likewise.
23508         (vcond<VH_cvtto><mode>): New expander.
23510 2021-05-17  Christophe Lyon  <christophe.lyon@linaro.org>
23512         * config/arm/arm-protos.h (arm_expand_vector_compare): Update
23513         prototype.
23514         * config/arm/arm.c (arm_expand_vector_compare): Add support for
23515         MVE.
23516         (arm_expand_vcond): Likewise.
23517         * config/arm/iterators.md (supf): Remove VCMPNEQ_S, VCMPEQQ_S,
23518         VCMPEQQ_N_S, VCMPNEQ_N_S.
23519         (VCMPNEQ, VCMPEQQ, VCMPEQQ_N, VCMPNEQ_N): Remove.
23520         * config/arm/mve.md (@mve_vcmp<mve_cmp_op>q_<mode>): Add '@' prefix.
23521         (@mve_vcmp<mve_cmp_op>q_f<mode>): Likewise.
23522         (@mve_vcmp<mve_cmp_op>q_n_f<mode>): Likewise.
23523         (@mve_vpselq_<supf><mode>): Likewise.
23524         (@mve_vpselq_f<mode>"): Likewise.
23525         * config/arm/neon.md (vec_cmp<mode><v_cmp_result): Enable for MVE
23526         and move to vec-common.md.
23527         (vec_cmpu<mode><mode>): Likewise.
23528         (vcond<mode><mode>): Likewise.
23529         (vcond<V_cvtto><mode>): Likewise.
23530         (vcondu<mode><v_cmp_result>): Likewise.
23531         (vcond_mask_<mode><v_cmp_result>): Likewise.
23532         * config/arm/unspecs.md (VCMPNEQ_U, VCMPNEQ_S, VCMPEQQ_S)
23533         (VCMPEQQ_N_S, VCMPNEQ_N_S, VCMPEQQ_U, CMPEQQ_N_U, VCMPNEQ_N_U)
23534         (VCMPGEQ_N_S, VCMPGEQ_S, VCMPGTQ_N_S, VCMPGTQ_S, VCMPLEQ_N_S)
23535         (VCMPLEQ_S, VCMPLTQ_N_S, VCMPLTQ_S, VCMPCSQ_N_U, VCMPCSQ_U)
23536         (VCMPHIQ_N_U, VCMPHIQ_U): Remove.
23537         * config/arm/vec-common.md (vec_cmp<mode><v_cmp_result): Moved
23538         from neon.md.
23539         (vec_cmpu<mode><mode>): Likewise.
23540         (vcond<mode><mode>): Likewise.
23541         (vcond<V_cvtto><mode>): Likewise.
23542         (vcondu<mode><v_cmp_result>): Likewise.
23543         (vcond_mask_<mode><v_cmp_result>): Likewise. Added unsafe math
23544         condition.
23546 2021-05-17  liuhongt  <hongtao.liu@intel.com>
23548         PR target/100549
23549         * config/i386/i386.c (ix86_gimple_fold_builtin): Use
23550         gsi_insert_seq_before instead.
23552 2021-05-17  Christophe Lyon  <christophe.lyon@linaro.org>
23554         * doc/sourcebuild.texi (arm_qbit_ok): Rename into...
23555         (arm_sat_ok): ...this.
23557 2021-05-17  Martin Liska  <mliska@suse.cz>
23559         * lto-wrapper.c (merge_flto_options): Factor out a new function.
23560         (merge_and_complain): Use it.
23561         (run_gcc): Merge also linker command line -flto=foo argument
23562         with IL files.
23564 2021-05-16  Christophe Lyon  <christophe.lyon@linaro.org>
23566         * config/arm/arm.h (CPP_SPEC): Remove error message about
23567         -mlittle-endian/-mbig-endian conflict.
23569 2021-05-15  Bill Schmidt  <wschmidt@linux.ibm.com>
23571         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
23572         __ROP_PROTECT__ if -mrop-protect is selected.
23574 2021-05-15  Bill Schmidt  <wschmidt@linux.ibm.com>
23576         * config/rs6000/rs6000-internal.h (rs6000_stack): Add
23577         rop_hash_save_offset and rop_hash_size.
23578         * config/rs6000/rs6000-logue.c (rs6000_stack_info): Compute
23579         rop_hash_size and rop_hash_save_offset.
23580         (debug_stack_info): Dump rop_hash_save_offset and rop_hash_size.
23581         (rs6000_emit_prologue): Emit hashst[p] in prologue.
23582         (rs6000_emit_epilogue): Emit hashchk[p] in epilogue.
23583         * config/rs6000/rs6000.md (unspec): Add UNSPEC_HASHST and
23584         UNSPEC_HASHCHK.
23585         (hashst): New define_insn.
23586         (hashchk): Likewise.
23588 2021-05-15  Bill Schmidt  <wschmidt@linux.ibm.com>
23590         * config/rs6000/rs6000.c (rs6000_option_override_internal):
23591         Disable shrink wrap when inserting ROP-protect instructions.
23592         * config/rs6000/rs6000.opt (mrop-protect): New option.
23593         (mprivileged): Likewise.
23594         * doc/invoke.texi: Document mrop-protect and mprivileged.
23596 2021-05-15  Hans-Peter Nilsson  <hp@axis.com>
23598         * reorg.c (fill_slots_from_thread): Reinstate code typoed out in
23599         "Remove CC0".
23601 2021-05-15  Martin Jambor  <mjambor@suse.cz>
23603         Revert:
23604         2021-05-13  Martin Jambor  <mjambor@suse.cz>
23606         PR tree-optimization/100453
23607         * tree-sra.c (sra_modify_assign): All const base accesses do not
23608         need refreshing, not just those from decl_pool.
23609         (sra_modify_assign): Do not refresh into a const base decl.
23611 2021-05-15  Jakub Jelinek  <jakub@redhat.com>
23613         PR rtl-optimization/100342
23614         * regcprop.c (copy_value): When copying a source reg in a wider
23615         mode than it has recorded for the value, adjust recorded destination
23616         mode too or punt if !REG_CAN_CHANGE_MODE_P.
23618 2021-05-14  Jason Merrill  <jason@redhat.com>
23620         * intl.h: Add comments.
23622 2021-05-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23624         * config/aarch64/aarch64-simd.md
23625         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Split into...
23626         (aarch64_sqdmlsl2_lane<mode>_internal): ... This...
23627         (aarch64_sqdmlal2_lane<mode>_internal): ... And this.
23628         (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Split into ...
23629         (aarch64_sqdmlsl2_laneq<mode>_internal): ... This...
23630         (aarch64_sqdmlal2_laneq<mode>_internal): ... And this.
23631         (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Split into...
23632         (aarch64_sqdmlsl2_n<mode>_internal): ... This...
23633         (aarch64_sqdmlal2_n<mode>_internal): ... And this.
23635 2021-05-14  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
23637         PR target/66791
23638         * config/arm/arm_neon.h (vtst_s8): Replace call to vtst builtin with it's
23639         boolean logic equivalent.
23640         (vtst_s16): Likewise.
23641         (vtst_s32): Likewise.
23642         (vtst_u8): Likewise.
23643         (vtst_u16): Likewise.
23644         (vtst_u32): Likewise.
23645         (vtst_p8): Likewise.
23646         (vtst_p16): Likewise.
23647         (vtstq_s8): Likewise.
23648         (vtstq_s16): Likewise.
23649         (vtstq_s32): Likewise.
23650         (vtstq_u8): Likewise.
23651         (vtstq_u16): Likewise.
23652         (vtstq_u32): Likewise.
23653         (vtstq_p8): Likewise.
23654         (vtstq_p16): Likewise.
23655         * config/arm/arm_neon_builtins.def: Remove entry for vtst.
23656         * config/arm/neon.md (neon_vtst<mode>): Remove pattern.
23658 2021-05-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23660         * config/aarch64/aarch64-simd.md (aarch64_sqdmlal2<mode>): Merge into...
23661         (aarch64_sqdml<SBINQOPS:as>l2<mode>): ... This.
23662         (aarch64_sqdmlsl2<mode>): Delete.
23663         (aarch64_sqdmlal2_lane<mode>): Merge this...
23664         (aarch64_sqdmlsl2_lane<mode>): ... And this...
23665         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>): ... Into this.
23666         (aarch64_sqdmlal2_laneq<mode>): Merge this...
23667         (aarch64_sqdmlsl2_laneq<mode>): ... And this...
23668         (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>): ... Into this.
23669         (aarch64_sqdmlal2_n<mode>): Merge this...
23670         (aarch64_sqdmlsl2_n<mode>): ... And this...
23671         (aarch64_sqdml<SBINQOPS:as>l2_n<mode>): ... Into this.
23673 2021-05-13  Martin Sebor  <msebor@redhat.com>
23675         PR middle-end/100574
23676         * builtins.c (access_ref::get_ref): Improve detection of PHIs with
23677         all null arguments.
23679 2021-05-13  Martin Sebor  <msebor@redhat.com>
23681         PR tree-optimization/93100
23682         PR middle-end/98583
23683         * tree-ssa-uninit.c (check_defs): Exclude intrinsic functions that
23684         don't modify referenced objects.
23686 2021-05-13  Martin Jambor  <mjambor@suse.cz>
23688         PR tree-optimization/100453
23689         * tree-sra.c (sra_modify_assign): All const base accesses do not
23690         need refreshing, not just those from decl_pool.
23691         (sra_modify_assign): Do not refresh into a const base decl.
23693 2021-05-13  Martin Liska  <mliska@suse.cz>
23695         * tree-ssa-dom.c: Remove m_simplifier.
23697 2021-05-13  Richard Earnshaw  <rearnsha@arm.com>
23699         PR target/100563
23700         * config/arm/arm.c (arm_canonicalize_comparison): Correctly
23701         canonicalize DImode inequality comparisons against the
23702         maximum integral value.
23704 2021-05-13  Jakub Jelinek  <jakub@redhat.com>
23706         PR tree-optimization/98856
23707         * config/i386/i386.c (ix86_shift_rotate_cost): Add CODE argument.
23708         Expect V2DI and V4DI arithmetic right shifts to be emulated.
23709         (ix86_rtx_costs, ix86_add_stmt_cost): Adjust ix86_shift_rotate_cost
23710         caller.
23711         * config/i386/i386-expand.c (expand_vec_perm_2perm_interleave,
23712         expand_vec_perm_2perm_pblendv): New functions.
23713         (ix86_expand_vec_perm_const_1): Use them.
23714         * config/i386/sse.md (ashr<mode>3<mask_name>): Rename to ...
23715         (<mask_codefor>ashr<mode>3<mask_name>): ... this.
23716         (ashr<mode>3): New define_expand with VI248_AVX512BW iterator.
23717         (ashrv4di3): New define_expand.
23718         (ashrv2di3): Change condition to TARGET_SSE2, handle !TARGET_XOP
23719         and !TARGET_AVX512VL expansion.
23721 2021-05-13  Uroš Bizjak  <ubizjak@gmail.com>
23723         PR target/100581
23724         * config/i386/i386-expand.c (ix86_expand_sse_movcc): Force mode
23725         sizes < 16 to a register when constructing vpcmov pattern.
23726         * config/i386/mmx.md (*xop_pcmov_<mode>): Use MMXMODE124 mode.
23728 2021-05-13  Martin Liska  <mliska@suse.cz>
23730         * gcov-io.c (gcov_write_block): Remove.
23731         (gcov_write_words): Likewise.
23732         (gcov_read_words): Re-implement using gcov_read_bytes.
23733         (gcov_allocate): Remove.
23734         (GCOV_BLOCK_SIZE): Likewise.
23735         (struct gcov_var): Remove most of the fields.
23736         (gcov_position): Implement with ftell.
23737         (gcov_rewrite): Remove setting of start and offset fields.
23738         (from_file): Re-format.
23739         (gcov_open): Remove setbuf call. It should not be needed.
23740         (gcov_close): Remove internal buffer handling.
23741         (gcov_magic): Use __builtin_bswap32.
23742         (gcov_write_counter): Use directly gcov_write_unsigned.
23743         (gcov_write_string): Use direct fwrite and do not round
23744         to 4 bytes.
23745         (gcov_seek): Use directly fseek.
23746         (gcov_write_tag): Use gcov_write_unsigned directly.
23747         (gcov_write_length): Likewise.
23748         (gcov_write_tag_length): Likewise.
23749         (gcov_read_bytes): Use directly fread.
23750         (gcov_read_unsigned): Use gcov_read_words.
23751         (gcov_read_counter): Likewise.
23752         (gcov_read_string): Use gcov_read_bytes.
23753         * gcov-io.h (GCOV_WORD_SIZE): Adjust to reflect
23754         that size is not in bytes, but words (4B).
23755         (GCOV_TAG_FUNCTION_LENGTH): Likewise.
23756         (GCOV_TAG_ARCS_LENGTH): Likewise.
23757         (GCOV_TAG_ARCS_NUM): Likewise.
23758         (GCOV_TAG_COUNTER_LENGTH): Likewise.
23759         (GCOV_TAG_COUNTER_NUM): Likewise.
23760         (GCOV_TAG_SUMMARY_LENGTH): Likewise.
23762 2021-05-13  liuhongt  <hongtao.liu@intel.com>
23764         PR target/94680
23765         * config/i386/sse.md (ssedoublevecmode): Add attribute for
23766         V64QI/V32HI/V16SI/V4DI.
23767         (ssehalfvecmode): Add attribute for V2DI/V2DF.
23768         (*vec_concatv4si_0): Extend to VI124_128.
23769         (*vec_concat<mode>_0): New pre-reload splitter.
23770         * config/i386/predicates.md (movq_parallel): New predicate.
23772 2021-05-13  Alexandre Oliva  <oliva@adacore.com>
23774         * targhooks.c (default_zero_call_used_regs): Retry using
23775         successfully-zeroed registers as sources.
23777 2021-05-12  Tobias Burnus  <tobias@codesourcery.com>
23779         * omp-low.c (finish_taskreg_scan): Use the proper detach decl.
23781 2021-05-12  Aldy Hernandez  <aldyh@redhat.com>
23783         PR c/100521
23784         * gimple-range.cc (range_of_builtin_call): Skip out on
23785           processing __builtin_clz when varying.
23787 2021-05-12  Tom de Vries  <tdevries@suse.de>
23789         PR target/96005
23790         * config/nvptx/nvptx-opts.h (enum ptx_version): New enum.
23791         * config/nvptx/nvptx.c (nvptx_file_start): Print .version according
23792         to ptx_version_option.
23793         * config/nvptx/nvptx.h (TARGET_PTX_6_3): Define.
23794         * config/nvptx/nvptx.md (define_insn "nvptx_shuffle<mode>")
23795         (define_insn "nvptx_vote_ballot"): Use sync variant for
23796         TARGET_PTX_6_3.
23797         * config/nvptx/nvptx.opt (ptx_version): Add enum.
23798         (mptx): Add option.
23799         * doc/invoke.texi (Nvidia PTX Options): Add mptx item.
23801 2021-05-12  Richard Biener  <rguenther@suse.de>
23803         PR tree-optimization/100566
23804         * tree-ssa-sccvn.c (dominated_by_p_w_unex): Properly handle
23805         allow_back for all edge queries.
23807 2021-05-12  liuhongt  <hongtao.liu@intel.com>
23809         PR target/99908
23810         * config/i386/sse.md (<sse4_1_avx2>_pblendvb): Add
23811         splitters for pblendvb of NOT mask register.
23813 2021-05-12  Richard Biener  <rguenther@suse.de>
23815         PR tree-optimization/100519
23816         * tree-ssa-reassoc.c (can_associate_p): Split into...
23817         (can_associate_op_p): ... this
23818         (can_associate_type_p): ... and this.
23819         (is_reassociable_op): Call can_associate_op_p.
23820         (break_up_subtract_bb): Call the appropriate predicates.
23821         (reassociate_bb): Likewise.
23823 2021-05-12  Martin Liska  <mliska@suse.cz>
23825         * lto-wrapper.c (merge_and_complain): Merge -flto=arg options.
23826         (run_gcc): Use -flto argument detection for merged
23827         fdecoded_options.
23829 2021-05-12  Martin Liska  <mliska@suse.cz>
23831         * lto-wrapper.c (print_lto_docs_link): New function.
23832         (run_gcc): Print warning about missing job server detection
23833         after we know NR of partitions. Do the same for -flto{,=1}.
23834         * opts.c (get_option_html_page): Support -flto option.
23836 2021-05-12  Martin Liska  <mliska@suse.cz>
23838         * lto-wrapper.c (get_options_from_collect_gcc_options): Change
23839         return type.
23840         (append_option): Remove.
23841         (find_option): Rework to use the vector type.
23842         (remove_option): Remove.
23843         (merge_and_complain): Use vectors for cl_decoded_option data
23844         type arguments.
23845         (append_compiler_options): Likewise.
23846         (append_diag_options): Likewise.
23847         (append_linker_options): Likewise.
23848         (append_offload_options): Likewise.
23849         (compile_offload_image): Likewise.
23850         (compile_images_for_offload_targets): Likewise.
23851         (find_and_merge_options): Likewise.
23852         (run_gcc): Likewise.
23854 2021-05-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
23856         PR debug/100515
23857         * dwarf2out.c (dwarf2out_finish): Set
23858         have_multiple_function_sections with multi-range text_section.
23860 2021-05-12  Martin Liska  <mliska@suse.cz>
23862         PR bootstrap/100560
23863         * Makefile.in: Remove version.h from linker command line.
23865 2021-05-12  Richard Biener  <rguenther@suse.de>
23867         PR middle-end/100547
23868         * rtl.h (rtvec_alloc): Make argument size_t.
23869         * rtl.c (rtvec_alloc): Verify the count is less than INT_MAX.
23871 2021-05-12  Jakub Jelinek  <jakub@redhat.com>
23873         PR middle-end/100508
23874         * cfgexpand.c (expand_debug_expr): For DEBUG_EXPR_DECL with vector
23875         type, don't reuse DECL_RTL if it has different mode, instead force
23876         creation of a new DEBUG_EXPR.
23878 2021-05-12  Jakub Jelinek  <jakub@redhat.com>
23879             Marc Glisse  <marc.glisse@inria.fr>
23881         PR tree-optimization/94589
23882         * match.pd ((X & Y) == X -> (X & ~Y) == 0,
23883         (X | Y) == Y -> (X & ~Y) == 0): New GIMPLE simplifications.
23885 2021-05-12  Uroš Bizjak  <ubizjak@gmail.com>
23887         PR target/98218
23888         * config/i386/i386-expand.c (ix86_expand_sse_movcc): Handle V2SF mode.
23889         * config/i386/mmx.md (MMXMODE124): New mode iterator.
23890         (V2FI): Ditto.
23891         (mmxintvecmode): New mode attribute.
23892         (mmxintvecmodelower): Ditto.
23893         (*mmx_maskcmpv2sf3_comm): New insn pattern.
23894         (*mmx_maskcmpv2sf3): Ditto.
23895         (vec_cmpv2sfv2si): New expander.
23896         (vcond<V2FI:mode>v2si): Ditto.
23897         (mmx_vlendvps): New insn pattern.
23898         (vcond<MMXMODE124:mode><MMXMODEI:mode>): Also handle V2SFmode.
23899         (vcondu<MMXMODE124:mode><MMXMODEI:mode>): Ditto.
23900         (vcond_mask_<mode><mmxintvecmodelower>): Ditto.
23902 2021-05-11  Martin Sebor  <msebor@redhat.com>
23904         PR middle-end/21433
23905         * expr.c (expand_expr_real_1): Replace unreachable code with an assert.
23907 2021-05-11  Richard Biener  <rguenther@suse.de>
23909         * gimple-fold.c (gimple_fold_call): Do not call
23910         maybe_fold_reference on call arguments or the static chain.
23911         (fold_stmt_1): Do not call maybe_fold_reference on GIMPLE_ASM
23912         inputs.
23914 2021-05-11  Martin Liska  <mliska@suse.cz>
23916         * builtins.def (DEF_HSAIL_BUILTIN): Remove.
23917         (DEF_HSAIL_ATOMIC_BUILTIN): Likewise.
23918         (DEF_HSAIL_SAT_BUILTIN): Likewise.
23919         (DEF_HSAIL_INTR_BUILTIN): Likewise.
23920         (DEF_HSAIL_CVT_ZEROI_SAT_BUILTIN): Likewise.
23921         * doc/frontends.texi: Remove BRIG.
23922         * doc/install.texi: Likewise.
23923         * doc/invoke.texi: Likewise.
23924         * doc/standards.texi: Likewise.
23925         * brig-builtins.def: Removed.
23926         * brig/ChangeLog: Removed.
23927         * brig/Make-lang.in: Removed.
23928         * brig/brig-builtins.h: Removed.
23929         * brig/brig-c.h: Removed.
23930         * brig/brig-lang.c: Removed.
23931         * brig/brigfrontend/brig-arg-block-handler.cc: Removed.
23932         * brig/brigfrontend/brig-atomic-inst-handler.cc: Removed.
23933         * brig/brigfrontend/brig-basic-inst-handler.cc: Removed.
23934         * brig/brigfrontend/brig-branch-inst-handler.cc: Removed.
23935         * brig/brigfrontend/brig-cmp-inst-handler.cc: Removed.
23936         * brig/brigfrontend/brig-code-entry-handler.cc: Removed.
23937         * brig/brigfrontend/brig-code-entry-handler.h: Removed.
23938         * brig/brigfrontend/brig-comment-handler.cc: Removed.
23939         * brig/brigfrontend/brig-control-handler.cc: Removed.
23940         * brig/brigfrontend/brig-copy-move-inst-handler.cc: Removed.
23941         * brig/brigfrontend/brig-cvt-inst-handler.cc: Removed.
23942         * brig/brigfrontend/brig-fbarrier-handler.cc: Removed.
23943         * brig/brigfrontend/brig-function-handler.cc: Removed.
23944         * brig/brigfrontend/brig-function.cc: Removed.
23945         * brig/brigfrontend/brig-function.h: Removed.
23946         * brig/brigfrontend/brig-inst-mod-handler.cc: Removed.
23947         * brig/brigfrontend/brig-label-handler.cc: Removed.
23948         * brig/brigfrontend/brig-lane-inst-handler.cc: Removed.
23949         * brig/brigfrontend/brig-machine.c: Removed.
23950         * brig/brigfrontend/brig-machine.h: Removed.
23951         * brig/brigfrontend/brig-mem-inst-handler.cc: Removed.
23952         * brig/brigfrontend/brig-module-handler.cc: Removed.
23953         * brig/brigfrontend/brig-queue-inst-handler.cc: Removed.
23954         * brig/brigfrontend/brig-seg-inst-handler.cc: Removed.
23955         * brig/brigfrontend/brig-signal-inst-handler.cc: Removed.
23956         * brig/brigfrontend/brig-to-generic.cc: Removed.
23957         * brig/brigfrontend/brig-to-generic.h: Removed.
23958         * brig/brigfrontend/brig-util.cc: Removed.
23959         * brig/brigfrontend/brig-util.h: Removed.
23960         * brig/brigfrontend/brig-variable-handler.cc: Removed.
23961         * brig/brigfrontend/hsa-brig-format.h: Removed.
23962         * brig/brigfrontend/phsa.h: Removed.
23963         * brig/brigspec.c: Removed.
23964         * brig/config-lang.in: Removed.
23965         * brig/gccbrig.texi: Removed.
23966         * brig/lang-specs.h: Removed.
23967         * brig/lang.opt: Removed.
23969 2021-05-11  Richard Biener  <rguenther@suse.de>
23971         PR ipa/100513
23972         * ipa-param-manipulation.c
23973         (ipa_param_body_adjustments::modify_call_stmt): Avoid
23974         altering SSA_NAME_DEF_STMT by adjusting the calls LHS
23975         via gimple_call_lhs_ptr.
23977 2021-05-11  Alex Coplan  <alex.coplan@arm.com>
23979         PR target/99725
23980         * config/arm/arm.c (cmse_nonsecure_call_inline_register_clear):
23981         Avoid emitting CFA adjusts on the sp if we have the fp.
23983 2021-05-11  Richard Sandiford  <richard.sandiford@arm.com>
23985         * config/aarch64/iterators.md (VMUL_CHANGE_NLANES): Delete.
23986         (VMULD): New iterator.
23987         (VCOND): Handle V4HF and V8HF.
23988         (VCONQ): Fix entry for V2SF.
23989         * config/aarch64/aarch64-simd.md (mul_lane<mode>3): Use VMULD
23990         instead of VMUL.  Use a 64-bit vector mode for the indexed operand.
23991         (*aarch64_mul3_elt_<vswap_width_name><mode>): Merge with...
23992         (mul_laneq<mode>3): ...this define_insn.  Use VMUL instead of VDQSF.
23993         Use a 128-bit vector mode for the indexed operand.  Use stype for
23994         the scheduling type.
23996 2021-05-11  Richard Biener  <rguenther@suse.de>
23998         * gimple-fold.c (maybe_fold_reference): Only return
23999         is_gimple_min_invariant values.
24001 2021-05-11  Richard Biener  <rguenther@suse.de>
24003         PR middle-end/100509
24004         * gimple-fold.c (fold_gimple_assign): Only call
24005         get_symbol_constant_value on register type symbols.
24007 2021-05-11  Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
24008             Joe Ramsay   <joe.ramsay@arm.com>
24010         PR target/100419
24011         * config/arm/arm_mve.h (__arm_vstrwq_scatter_offset): Fix wrong arguments.
24012         (__arm_vcmpneq): Remove duplicate definition.
24013         (__arm_vstrwq_scatter_offset_p): Likewise.
24014         (__arm_vmaxq_x): Likewise.
24015         (__arm_vmlsdavaq): Likewise.
24016         (__arm_vmlsdavaxq): Likewise.
24017         (__arm_vmlsdavq_p): Likewise.
24018         (__arm_vmlsdavxq_p): Likewise.
24019         (__arm_vrmlaldavhaq): Likewise.
24020         (__arm_vstrbq_p): Likewise.
24021         (__arm_vstrbq_scatter_offset): Likewise.
24022         (__arm_vstrbq_scatter_offset_p): Likewise.
24023         (__arm_vstrdq_scatter_offset): Likewise.
24024         (__arm_vstrdq_scatter_offset_p): Likewise.
24025         (__arm_vstrdq_scatter_shifted_offset): Likewise.
24026         (__arm_vstrdq_scatter_shifted_offset_p): Likewise.
24028 2021-05-11  Jakub Jelinek  <jakub@redhat.com>
24030         PR middle-end/100471
24031         * omp-low.c (lower_omp_task_reductions): For OMP_TASKLOOP, if data
24032         is 0, bypass the reduction loop including
24033         GOMP_taskgroup_reduction_unregister call.
24035 2021-05-11  Kewen Lin  <linkw@linux.ibm.com>
24037         * config/rs6000/rs6000.c (struct rs6000_cost_data): New member
24038         costing_for_scalar.
24039         (rs6000_density_test): Early return if costing_for_scalar is true.
24040         (rs6000_init_cost): Init costing_for_scalar of rs6000_cost_data.
24042 2021-05-11  Kewen Lin  <linkw@linux.ibm.com>
24044         * doc/tm.texi: Regenerated.
24045         * target.def (init_cost): Add new parameter costing_for_scalar.
24046         * targhooks.c (default_init_cost): Adjust for new parameter.
24047         * targhooks.h (default_init_cost): Likewise.
24048         * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Likewise.
24049         (vect_compute_single_scalar_iteration_cost): Likewise.
24050         (vect_analyze_loop_2): Likewise.
24051         * tree-vect-slp.c (_bb_vec_info::_bb_vec_info): Likewise.
24052         (vect_bb_vectorization_profitable_p): Likewise.
24053         * tree-vectorizer.h (init_cost): Likewise.
24054         * config/aarch64/aarch64.c (aarch64_init_cost): Likewise.
24055         * config/i386/i386.c (ix86_init_cost): Likewise.
24056         * config/rs6000/rs6000.c (rs6000_init_cost): Likewise.
24058 2021-05-11  Kewen Lin  <linkw@linux.ibm.com>
24060         * config/rs6000/rs6000.c (rs6000_vect_nonmem): Renamed to
24061         vect_nonmem and moved into...
24062         (struct rs6000_cost_data): ...here.
24063         (rs6000_init_cost): Use vect_nonmem of cost_data instead.
24064         (rs6000_add_stmt_cost): Likewise.
24065         (rs6000_finish_cost): Likewise.
24067 2021-05-10  Eric Botcazou  <ebotcazou@adacore.com>
24069         * range-op.cc (get_bool_state): Adjust head comment.
24070         (operator_not_equal::op1_range): Fix comment.
24071         (operator_bitwise_xor::op1_range): Remove call to gcc_unreachable.
24073 2021-05-10  Martin Sebor  <msebor@redhat.com>
24075         PR middle-end/100425
24076         PR middle-end/100510
24077         * gimple-ssa-warn-alloca.c (pass_walloca::firast_time_p): Rename...
24078         (pass_walloca::xlimit_certain_p): ...to this.
24079         (pass_walloca::gate): Execute for any kind of handled warning.
24080         (pass_walloca::execute): Avoid issuing "maybe" and "unbounded"
24081         warnings when xlimit_certain_p is set.
24083 2021-05-10  Pat Haugen  <pthaugen@linux.ibm.com>
24085         * config/rs6000/rs6000.c (rs6000_ira_change_pseudo_allocno_class):
24086         Return ALTIVEC_REGS if that is best_class.
24087         (rs6000_compute_pressure_classes): Add ALTIVEC_REGS.
24089 2021-05-10  Christophe Lyon  <christophe.lyon@linaro.org>
24091         * config/arm/arm.h (CPP_SPEC): Remove error message about
24092         -mfloat-abi.
24094 2021-05-10  Martin Jambor  <mjambor@suse.cz>
24096         * ipa-prop.h (IPA_NODE_REF): Removed.
24097         (IPA_NODE_REF_GET_CREATE): Likewise.
24098         (IPA_EDGE_REF): Likewise.
24099         (IPA_EDGE_REF_GET_CREATE): Likewise.
24100         (IS_VALID_JUMP_FUNC_INDEX): Likewise.
24101         * ipa-cp.c (print_all_lattices): Replaced IPA_NODE_REF with a direct
24102         use of ipa_node_params_sum.
24103         (ipcp_versionable_function_p): Likewise.
24104         (push_node_to_stack): Likewise.
24105         (pop_node_from_stack): Likewise.
24106         (set_single_call_flag): Replaced two IPA_NODE_REF with one single
24107         direct use of ipa_node_params_sum.
24108         (initialize_node_lattices): Replaced IPA_NODE_REF with a direct use of
24109         ipa_node_params_sum.
24110         (ipa_context_from_jfunc): Replaced IPA_EDGE_REF with a direct use of
24111         ipa_edge_args_sum.
24112         (ipcp_verify_propagated_values): Replaced IPA_NODE_REF with a direct
24113         use of ipa_node_params_sum.
24114         (self_recursively_generated_p): Likewise.
24115         (propagate_scalar_across_jump_function): Likewise.
24116         (propagate_context_across_jump_function): Replaced IPA_EDGE_REF with a
24117         direct use of ipa_edge_args_sum, moved the lookup after the early
24118         exit.  Replaced IPA_NODE_REF with a direct use of ipa_node_params_sum.
24119         (propagate_bits_across_jump_function): Replaced IPA_NODE_REF with
24120         direct uses of ipa_node_params_sum.
24121         (propagate_vr_across_jump_function): Likewise.
24122         (propagate_aggregate_lattice): Likewise.
24123         (propagate_aggs_across_jump_function): Likewise.
24124         (propagate_constants_across_call): Likewise, also replaced
24125         IPA_EDGE_REF with a direct use of ipa_edge_args_sum.
24126         (good_cloning_opportunity_p): Replaced IPA_NODE_REF with a direct use
24127         of ipa_node_params_sum.
24128         (estimate_local_effects): Likewise.
24129         (add_all_node_vals_to_toposort): Likewise.
24130         (propagate_constants_topo): Likewise.
24131         (ipcp_propagate_stage): Likewise.
24132         (ipcp_discover_new_direct_edges): Likewise.
24133         (calls_same_node_or_its_all_contexts_clone_p): Likewise.
24134         (cgraph_edge_brings_value_p): Likewise (in both overloaded functions).
24135         (get_info_about_necessary_edges): Likewise.
24136         (want_remove_some_param_p): Likewise.
24137         (create_specialized_node): Likewise.
24138         (self_recursive_pass_through_p): Likewise.
24139         (self_recursive_agg_pass_through_p): Likewise.
24140         (find_more_scalar_values_for_callers_subset): Likewise and also
24141         replaced IPA_EDGE_REF with direct uses of ipa_edge_args_sum, in one
24142         case replacing two of those with a single query.
24143         (find_more_contexts_for_caller_subset): Likewise for the
24144         ipa_polymorphic_call_context overload.
24145         (intersect_aggregates_with_edge): Replaced IPA_EDGE_REF with a direct
24146         use of ipa_edge_args_sum.  Replaced IPA_NODE_REF with direct uses of
24147         ipa_node_params_sum.
24148         (find_aggregate_values_for_callers_subset): Likewise, also reusing
24149         results of ipa_edge_args_sum->get.
24150         (cgraph_edge_brings_all_scalars_for_node): Replaced IPA_NODE_REF with
24151         direct uses of ipa_node_params_sum, replaced IPA_EDGE_REF with a
24152         direct use of ipa_edge_args_sum.
24153         (cgraph_edge_brings_all_agg_vals_for_node): Likewise, moved node
24154         summary query after the early exit and reused the result later.
24155         (decide_about_value): Replaced IPA_NODE_REF with a direct use of
24156         ipa_node_params_sum.
24157         (decide_whether_version_node): Likewise.  Removed re-querying for
24158         summaries after cloning.
24159         (spread_undeadness): Replaced IPA_NODE_REF with a direct use of
24160         ipa_node_params_sum.
24161         (has_undead_caller_from_outside_scc_p): Likewise, reusing results of
24162         some queries.
24163         (identify_dead_nodes): Likewise.
24164         (ipcp_store_bits_results): Replaced IPA_NODE_REF with direct uses of
24165         ipa_node_params_sum.
24166         (ipcp_store_vr_results): Likewise.
24167         * ipa-fnsummary.c (evaluate_properties_for_edge): Likewise.
24168         (ipa_fn_summary_t::duplicate): Likewise.
24169         (analyze_function_body): Likewise.
24170         (estimate_calls_size_and_time): Likewise.
24171         (ipa_cached_call_context::duplicate_from): Likewise.
24172         (ipa_call_context::equal_to): Likewise.
24173         (remap_edge_params): Likewise.
24174         (ipa_merge_fn_summary_after_inlining): Likewise.
24175         (inline_read_section): Likewise.
24176         * ipa-icf.c (sem_function::param_used_p): Likewise.
24177         * ipa-modref.c (compute_parm_map): Likewise.
24178         (compute_parm_map): Replaced IPA_EDGE_REF with a direct use of
24179         ipa_edge_args_sum.
24180         (get_access_for_fnspec): Replaced IPA_NODE_REF with a direct use of
24181         ipa_node_params_sum and replaced IPA_EDGE_REF with a direct use of
24182         ipa_edge_args_sum.
24183         * ipa-profile.c (check_argument_count): Likewise.
24184         * ipa-prop.c (ipa_alloc_node_params): Replaced IPA_NODE_REF_GET_CREATE
24185         with a direct use of ipa_node_params_sum.
24186         (ipa_initialize_node_params): Likewise.
24187         (ipa_print_node_jump_functions_for_edge): Replaced IPA_EDGE_REF with a
24188         direct use of ipa_edge_args_sum and reused the query result.
24189         (ipa_compute_jump_functions_for_edge): Replaced IPA_NODE_REF with a
24190         direct use of ipa_node_params_sum and replaced IPA_EDGE_REF with a
24191         direct use of ipa_edge_args_sum.
24192         (ipa_note_param_call): Replaced IPA_NODE_REF with a direct use of
24193         ipa_node_params_sum and reused the result of the query.
24194         (ipa_analyze_node): Likewise.
24195         (ipa_analyze_controlled_uses): Replaced IPA_NODE_REF with a direct use
24196         of ipa_node_params_sum.
24197         (update_jump_functions_after_inlining): Replaced IPA_EDGE_REF with
24198         direct uses of ipa_edge_args_sum.
24199         (update_indirect_edges_after_inlining): Replaced IPA_NODE_REF with
24200         direct uses of ipa_node_params_sum and replaced IPA_EDGE_REF with a
24201         direct use of ipa_edge_args_sum.  Removed superficial re-querying the
24202         top edge summary.
24203         (propagate_controlled_uses): Replaced IPA_NODE_REF with direct uses of
24204         ipa_node_params_sum and replaced IPA_EDGE_REF with a direct use of
24205         ipa_edge_args_sum.
24206         (ipa_propagate_indirect_call_infos): Replaced IPA_EDGE_REF with a
24207         direct use of ipa_edge_args_sum.
24208         (ipa_edge_args_sum_t::duplicate): Replaced IPA_NODE_REF with a direct
24209         use of ipa_node_params_sum.
24210         (ipa_print_node_params): Likewise.
24211         (ipa_write_node_info): Likewise and also replaced IPA_EDGE_REF with
24212         direct uses of ipa_edge_args_sum.
24213         (ipa_read_edge_info): Replaced IPA_EDGE_REF with a direct use of
24214         ipa_edge_args_sum.
24215         (ipa_read_node_info): Replaced IPA_NODE_REF with a direct use of
24216         ipa_node_params_sum.
24217         (ipa_prop_write_jump_functions): Likewise.  Move variable node to the
24218         scopes where it is used.
24220 2021-05-10  Uroš Bizjak  <ubizjak@gmail.com>
24222         * config/i386/i386-expand.c (ix86_expand_sse_movcc)
24223         <case E_V2SImode>: Force op_true to register.
24225 2021-05-10  Christophe Lyon  <christophe.lyon@linaro.org>
24227         * config/arm/iterators.md (MVE_FP_COMPARISONS): New.
24228         * config/arm/mve.md (mve_vcmp<mve_cmp_op>q_f<mode>)
24229         (mve_vcmp<mve_cmp_op>q_n_f<mode>): New, merge all vcmp_*f*
24230         patterns.
24231         (mve_vcmpeqq_f<mode>, mve_vcmpeqq_n_f<mode>, mve_vcmpgeq_f<mode>)
24232         (mve_vcmpgeq_n_f<mode>, mve_vcmpgtq_f<mode>)
24233         (mve_vcmpgtq_n_f<mode>, mve_vcmpleq_f<mode>)
24234         (mve_vcmpleq_n_f<mode>, mve_vcmpltq_f<mode>)
24235         (mve_vcmpltq_n_f<mode>, mve_vcmpneq_f<mode>)
24236         (mve_vcmpneq_n_f<mode>): Remove.
24237         * config/arm/unspecs.md (VCMPEQQ_F, VCMPEQQ_N_F, VCMPGEQ_F)
24238         (VCMPGEQ_N_F, VCMPGTQ_F, VCMPGTQ_N_F, VCMPLEQ_F, VCMPLEQ_N_F)
24239         (VCMPLTQ_F, VCMPLTQ_N_F, VCMPNEQ_F, VCMPNEQ_N_F): Remove.
24241 2021-05-10  Christophe Lyon  <christophe.lyon@linaro.org>
24243         * config/arm/iterators.md (MVE_COMPARISONS): New.
24244         (mve_cmp_op): New.
24245         (mve_cmp_type): New.
24246         * config/arm/mve.md (mve_vcmp<mve_cmp_op>q_<mode>): New, merge all
24247         mve_vcmp patterns.
24248         (mve_vcmpneq_<mode>, mve_vcmpcsq_n_<mode>, mve_vcmpcsq_<mode>)
24249         (mve_vcmpeqq_n_<mode>, mve_vcmpeqq_<mode>, mve_vcmpgeq_n_<mode>)
24250         (mve_vcmpgeq_<mode>, mve_vcmpgtq_n_<mode>, mve_vcmpgtq_<mode>)
24251         (mve_vcmphiq_n_<mode>, mve_vcmphiq_<mode>, mve_vcmpleq_n_<mode>)
24252         (mve_vcmpleq_<mode>, mve_vcmpltq_n_<mode>, mve_vcmpltq_<mode>)
24253         (mve_vcmpneq_n_<mode>, mve_vcmpltq_n_<mode>, mve_vcmpltq_<mode>)
24254         (mve_vcmpneq_n_<mode>): Remove.
24256 2021-05-10  Christophe Lyon  <christophe.lyon@linaro.org>
24258         * config/arm/arm_mve.h (__arm_vcmp*): Remove 's' suffix.
24259         * config/arm/arm_mve_builtins.def (vcmp*): Remove 's' suffix.
24260         * config/arm/mve.md (mve_vcmp*): Remove 's' suffix in pattern
24261         names.
24263 2021-05-10  Christophe Lyon  <christophe.lyon@linaro.org>
24265         * config/arm/arm_mve_builtins.def (vcmpneq_u): Remove.
24266         (vcmpneq_n_u): Likewise.
24267         (vcmpeqq_u,): Likewise.
24268         (vcmpeqq_n_u): Likewise.
24269         * config/arm/iterators.md (supf): Remove VCMPNEQ_U, VCMPEQQ_U,
24270         VCMPEQQ_N_U and VCMPNEQ_N_U.
24271         * config/arm/mve.md (mve_vcmpneq): Remove <supf> iteration.
24272         (mve_vcmpeqq_n): Likewise.
24273         (mve_vcmpeqq): Likewise.
24274         (mve_vcmpneq_n): Likewise.
24276 2021-05-10  Christophe Lyon  <christophe.lyon@linaro.org>
24278         * config/arm/arm_mve.h (__arm_vcmpeq*u*, __arm_vcmpne*u*): Call
24279         the 's' version of the builtin.
24281 2021-05-10  Richard Biener  <rguenther@suse.de>
24283         PR tree-optimization/100492
24284         * tree-loop-distribution.c (find_seed_stmts_for_distribution):
24285         Find nothing when the loop contains an irreducible region.
24287 2021-05-10  Richard Biener  <rguenther@suse.de>
24289         PR middle-end/100464
24290         PR c++/100468
24291         * gimple-fold.c (canonicalize_constructor_val): Do not set
24292         TREE_ADDRESSABLE.
24294 2021-05-10  Richard Biener  <rguenther@suse.de>
24296         PR tree-optimization/100434
24297         * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
24298         call LHS.
24299         (dse_optimize_stmt): Handle call LHS by dropping the
24300         LHS or the whole call if it doesn't have other
24301         side-effects.
24302         (pass_dse::execute): Adjust.
24304 2021-05-10  Martin Liska  <mliska@suse.cz>
24306         * Makefile.in: Add missing genversion rule.
24308 2021-05-10  Alex Coplan  <alex.coplan@arm.com>
24310         PR target/99960
24311         * config/arm/mve.md (*mve_mov<mode>): Simplify output code. Use
24312         vldrw.u32 and vstrw.32 for V2D[IF]mode loads and stores.
24314 2021-05-10  Martin Liska  <mliska@suse.cz>
24316         * builtins.c (is_builtin_name): Use startswith
24317         function instead of strncmp.
24318         * collect2.c (main): Likewise.
24319         (has_lto_section): Likewise.
24320         (scan_libraries): Likewise.
24321         * coverage.c (coverage_checksum_string): Likewise.
24322         (coverage_init): Likewise.
24323         * dwarf2out.c (is_cxx): Likewise.
24324         (gen_compile_unit_die): Likewise.
24325         * gcc-ar.c (main): Likewise.
24326         * gcc.c (init_spec): Likewise.
24327         (read_specs): Likewise.
24328         (execute): Likewise.
24329         (check_live_switch): Likewise.
24330         * genattrtab.c (write_attr_case): Likewise.
24331         (IS_ATTR_GROUP): Likewise.
24332         * gencfn-macros.c (main): Likewise.
24333         * gengtype.c (type_for_name): Likewise.
24334         (gen_rtx_next): Likewise.
24335         (get_file_langdir): Likewise.
24336         (write_local): Likewise.
24337         * genmatch.c (get_operator): Likewise.
24338         (get_operand_type): Likewise.
24339         (expr::gen_transform): Likewise.
24340         * genoutput.c (validate_optab_operands): Likewise.
24341         * incpath.c (add_sysroot_to_chain): Likewise.
24342         * langhooks.c (lang_GNU_C): Likewise.
24343         (lang_GNU_CXX): Likewise.
24344         (lang_GNU_Fortran): Likewise.
24345         (lang_GNU_OBJC): Likewise.
24346         * lto-wrapper.c (run_gcc): Likewise.
24347         * omp-general.c (omp_max_simt_vf): Likewise.
24348         * omp-low.c (omp_runtime_api_call): Likewise.
24349         * opts-common.c (parse_options_from_collect_gcc_options): Likewise.
24350         * read-rtl-function.c (function_reader::read_rtx_operand_r): Likewise.
24351         * real.c (real_from_string): Likewise.
24352         * selftest.c (assert_str_startswith): Likewise.
24353         * timevar.c (timer::validate_phases): Likewise.
24354         * tree.c (get_file_function_name): Likewise.
24355         * ubsan.c (ubsan_use_new_style_p): Likewise.
24356         * varasm.c (default_function_rodata_section): Likewise.
24357         (incorporeal_function_p): Likewise.
24358         (default_section_type_flags): Likewise.
24359         * system.h (startswith): Define startswith.
24361 2021-05-10  Martin Liska  <mliska@suse.cz>
24363         * bitmap.h (class auto_bitmap): Remove
24364         __cplusplus >= 201103.
24365         * config/aarch64/aarch64.c: Likewise.
24366         * gimple-ssa-store-merging.c (store_immediate_info::store_immediate_info):
24367         Likewise.
24368         * sbitmap.h: Likewise.
24370 2021-05-10  Martin Liska  <mliska@suse.cz>
24372         * Makefile.in: Rename gcov-iov to genversion and depend
24373         on version.h (instead of gcov-iov.h).
24374         * gcov-io.h: Include version.h instread of gcov-iov.h.
24375         * gengtype-state.c (read_state_version): Likewise.
24376         * gcov-iov.c: Moved to...
24377         * genversion.c: ...here.
24378         * lto-streamer.h (LTO_major_version): Define it with
24379         GCC_major_version.
24380         * version.c: Removed.
24381         * version.h: Removed.
24383 2021-05-10  Claudiu Zissulescu  <claziss@synopsys.com>
24385         * config/arc/arc.md (UNSPEC_ARC_DMPYWH): Define.
24386         * config/arc/simdext.md (VCT): Add predicates for iterator
24387         elements.
24388         (EMUVEC): Define.
24389         (voptab): Likewise.
24390         (vec_widen_<V_US>mult_hi_v4hi): Change pattern predicate.
24391         (<voptab>v2si3): New patterns.
24392         (neg): Likewise.
24393         (reduc_plus_scal_v4hi): Likewise.
24394         (reduc_plus_scal_v2si): Likewise.
24395         (vec_duplicatev2si): Likewise.
24396         (vec_duplicatev4hi): Likewise.
24398 2021-05-10  Claudiu Zissulescu  <claziss@synopsys.com>
24400         * config/arc/simdext.md: Format and cleanup file.
24402 2021-05-10  Claudiu Zissulescu  <claziss@synopsys.com>
24404         * config/arc/simdext.md (movmisalignv2hi): Allow misaligned access
24405         only when munaligned-access option is on.
24406         (movmisalign<mode>): Likewise.
24408 2021-05-10  Claudiu Zissulescu  <claziss@synopsys.com>
24410         * common/config/arc/arc-common.c (arc_handle_option): Remove dot
24411         from string.
24412         * config/arc/arc.c (arc_reorg): Remove underscore from string.
24414 2021-05-10  Claudiu Zissulescu  <claziss@synopsys.com>
24416         * config/arc/arc.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
24417         (CTZ_DEFINED_VALUE_AT_ZERO): Likewise.
24418         * config/arc/arc.md (clrsbsi2): Cleanup pattern.
24419         (norm_f): Likewise.
24420         (ffs): Likewise.
24421         (ffs_f): Likewise.
24422         (clzsi2): Use fls instruction when available.
24423         (arc_clzsi2): Likewise.
24425 2021-05-10  Claudiu Zissulescu  <claziss@synopsys.com>
24427         * config/arc/arc.h (ADDITIONAL_REGISTER_NAMES): Add r26 and r27.
24429 2021-05-10  Claudiu Zissulescu  <claziss@synopsys.com>
24431         * doc/extend.texi (__builtin_arc_sr): Swap arguments.
24433 2021-05-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
24435         PR middle-end/100467
24436         * toplev.c (compile_file): Call insn_locations_init before
24437         targetm.asm_out.code_end.
24439 2021-05-07  Andrew Stubbs  <ams@codesourcery.com>
24441         Revert:
24442         2021-05-07  Andrew Stubbs  <ams@codesourcery.com>
24444         * config/gcn/gcn.c (gcn_scalar_mode_supported_p): Disable TImode.
24446 2021-05-07  Jakub Jelinek  <jakub@redhat.com>
24447             Andrew Stubbs  <amd@codesourcery.com>
24449         PR target/100418
24450         * builtins.c (try_store_by_multiple_pieces): Use force_operand for
24451         emit_move_insn operands.
24453 2021-05-07  Eric Botcazou  <ebotcazou@adacore.com>
24455         * cfgexpand.c (expand_gimple_basic_block): Do not inherit a current
24456         location for the outgoing edges of an empty block.
24457         * dwarf2out.c (add_subscript_info): Retrieve the bounds and index
24458         type by means of the get_array_descr_info langhook, if it is set and
24459         returns true.  Remove obsolete code dealing with unnamed subtypes.
24461 2021-05-07  Andrew MacLeod  <amacleod@redhat.com>
24463         * gimple-range-cache.cc (ssa_block_ranges): Virtualize.
24464         (sbr_vector): Renamed from ssa_block_cache.
24465         (sbr_vector::sbr_vector): Allocate from obstack abd initialize.
24466         (ssa_block_ranges::~ssa_block_ranges): Remove.
24467         (sbr_vector::set_bb_range): Use varying and undefined cached values.
24468         (ssa_block_ranges::set_bb_varying): Remove.
24469         (sbr_vector::get_bb_range): Adjust assert.
24470         (sbr_vector::bb_range_p): Adjust assert.
24471         (~block_range_cache): No freeing loop required.
24472         (block_range_cache::get_block_ranges): Remove.
24473         (block_range_cache::set_bb_range): Inline get_block_ranges.
24474         (block_range_cache::set_bb_varying): Remove.
24475         * gimple-range-cache.h (set_bb_varying): Remove prototype.
24476         * value-range.h (irange_allocator::get_memory): New.
24478 2021-05-07  Andrew MacLeod  <amacleod@redhat.com>
24480         * gimple-range-cache.cc (non_null_ref::non_null_deref_p): Search
24481         dominator tree is available and requested.
24482         (ranger_cache::ssa_range_in_bb): Don't search dom tree here.
24483         (ranger_cache::fill_block_cache): Don't search dom tree here either.
24484         * gimple-range-cache.h (non_null_deref_p): Add dom_search param.
24486 2021-05-07  Andrew MacLeod  <amacleod@redhat.com>
24488         * gimple-range.cc (gimple_ranger::range_on_exit): Handle block with
24489         only PHI nodes better.
24491 2021-05-07  Andrew MacLeod  <amacleod@redhat.com>
24493         * gimple-range-edge.h (gimple_outgoing_range): Rename from
24494         outgoing_range.
24495         (gcond_edge_range): Export prototype.
24496         * gimple-range-edge.cc (gcond_edge_range): New.
24497         (gimple_outgoing_range::edge_range_p): Use gcond_edge_range.
24498         * gimple-range-gori.h (gori_compute): Use gimple_outgoing_range.
24500 2021-05-07  Andrew MacLeod  <amacleod@redhat.com>
24502         * gimple-range-edge.cc (outgoing_range::calc_switch_ranges): Compute
24503         default range into a temp and allocate only what is needed.
24505 2021-05-07  Andrew MacLeod  <amacleod@redhat.com>
24507         * range-op.cc (operator_trunc_mod::wi_fold): x % 0 is UNDEFINED.
24509 2021-05-07  Andrew MacLeod  <amacleod@redhat.com>
24511         * gimple-range.h (gimple_range_global): Pick up parameter initial
24512         values, and use-before defined locals are UNDEFINED.
24514 2021-05-07  Eric Botcazou  <ebotcazou@adacore.com>
24516         * doc/extend.texi (scalar_storage_order): Mention effect on pointer
24517         and vector fields.
24518         * tree.h (reverse_storage_order_for_component_p): Return false if
24519         the type is a pointer.
24521 2021-05-07  Andrew Stubbs  <ams@codesourcery.com>
24523         * config/gcn/gcn.c (gcn_scalar_mode_supported_p): Disable TImode.
24525 2021-05-07  Uroš Bizjak  <ubizjak@gmail.com>
24527         PR target/98218
24528         * config/i386/i386-expand.c (ix86_expand_sse_movcc):
24529         Handle V8QI, V4HI and V2SI modes.
24530         * config/i386/mmx.md (mmx_pblendvb): New insn pattern.
24531         * config/i386/sse.md (unspec): Move UNSPEC_BLENDV ...
24532         * config/i386/i386.md (unspec): ... here.
24534 2021-05-07  Tobias Burnus  <tobias@codesourcery.com>
24535             Tom de Vries  <tdevries@suse.de>
24537         * omp-low.c (lower_rec_simd_input_clauses): Set max_vf = 1 if
24538         a truth_value_p reduction variable is nonintegral.
24540 2021-05-07  Uroš Bizjak  <ubizjak@gmail.com>
24542         PR target/100445
24543         * config/i386/i386-expand.c (ix86_use_mask_cmp_p):
24544         Return false for mode sizes < 16.
24546 2021-05-07  Jakub Jelinek  <jakub@redhat.com>
24548         PR target/100445
24549         * config/i386/mmx.md (*xop_pcmov_<mode>): New define_insn.
24551 2021-05-06  Martin Jambor  <mjambor@suse.cz>
24553         * ipa-sra.c (ipa_sra_dump_all_summaries): Dump edge summaries even
24554         when there is no function summary.
24555         (ipa_sra_summarize_function): produce edge summaries even when
24556         bailing out early.
24558 2021-05-06  Tom Tromey  <tom@tromey.com>
24560         * godump.c (string_hash_eq): Remove.
24561         (go_finish): Use htab_eq_string.
24563 2021-05-06  Tom Tromey  <tom@tromey.com>
24565         * gengtype-state.c (read_state): Use htab_eq_string.
24566         (string_eq): Remove.
24568 2021-05-06  Tom Tromey  <tom@tromey.com>
24570         * gensupport.c (htab_eq_string): Remove.
24572 2021-05-06  Bernd Edlinger  <bernd.edlinger@hotmail.de>
24574         PR ipa/97937
24575         * debug.h (gcc_debug_hooks): Add set_ignored_loc function pointer.
24576         * dwarf2out.h (dw_fde_node::ignored_debug): New data item.
24577         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Add dummy
24578         set_ignored_loc callbacks.
24579         * debug.c (do_nothing_debug_hooks): Likewise.
24580         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
24581         * dwarf2out.c (text_section_used, cold_text_section_used): Remove.
24582         (in_text_section_p, last_text_label, last_cold_label,
24583         switch_text_ranges, switch_cold_ranges): New data items.
24584         (dwarf2out_note_section_used): Remove.
24585         (dwarf2out_begin_prologue): Set fde->ignored_debug and
24586         in_text_section_p.
24587         (mark_ignored_debug_section): New helper function.
24588         (dwarf2out_end_epilogue, dwarf2out_switch_text_section): Call
24589         mark_ignored_debug_section.
24590         (dwarf2_debug_hooks): Use dwarf2out_set_ignored_loc.
24591         (dwarf2_lineno_debug_hooks): Use dummy for set_ignored_loc.
24592         (size_of_aranges): Adjust formula for multi-part text ranges size.
24593         (output_aranges): Output multi-part text ranges.
24594         (dwarf2out_set_ignored_loc): New callback function.
24595         (dwarf2out_finish): Output multi-part text ranges.
24596         (dwarf2out_c_finalize): Clear new data items.
24597         * final.c (final_start_function_1): Call set_ignored_loc callback.
24598         (final_scan_insn_1): Likewise.
24599         * ggc-page.c (gt_ggc_mx): New helper function.
24600         * stringpool.c (gt_pch_nx): Likewise.
24602 2021-05-06  Richard Biener  <rguenther@suse.de>
24604         * timevar.def (TV_TREE_INSERT_PHI_NODES): Remove.
24605         (TV_TREE_SSA_REWRITE_BLOCKS): Likewise.
24606         (TV_TREE_INTO_SSA): New.
24607         * tree-into-ssa.c (insert_phi_nodes): Do not account separately.
24608         (rewrite_blocks): Likewise.
24609         (pass_data_build_ssa): Account to TV_TREE_INTO_SSA.
24611 2021-05-06  Jakub Jelinek  <jakub@redhat.com>
24613         * tree-ssa-phiopt.c (value_replacement, minmax_replacement,
24614         abs_replacement, xor_replacement,
24615         cond_removal_in_popcount_clz_ctz_pattern,
24616         replace_phi_edge_with_variable): Change type of phi argument from
24617         gimple * to gphi *.
24619 2021-05-06  Richard Biener  <rguenther@suse.de>
24621         * tree-ssa-loop-split.c (split_loop): Delay updating SSA form.
24622         Output an opt-info message.
24623         (do_split_loop_on_cond): Likewise.
24624         (tree_ssa_split_loops): Update SSA form here.
24626 2021-05-06  Richard Biener  <rguenther@suse.de>
24628         * tree-inline.c (tree_function_versioning): Fix DECL_BY_REFERENCE
24629         return variable removal.
24631 2021-05-06  Marius Hillenbrand  <mhillen@linux.ibm.com>
24633         * config/s390/s390-builtins.def (O_M5, O1_M5, ...): Remove unused macros.
24634         (s390_vec_permi_s64, s390_vec_permi_b64, s390_vec_permi_u64)
24635         (s390_vec_permi_dbl, s390_vpdi): Use the O3_U2 type for the immediate
24636         operand.
24637         * config/s390/s390.c (s390_const_operand_ok): Remove unused
24638         values.
24640 2021-05-06  Jakub Jelinek  <jakub@redhat.com>
24642         PR tree-optimization/94589
24643         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Call
24644         spaceship_replacement.
24645         (cond_only_block_p, spaceship_replacement): New functions.
24647 2021-05-06  Richard Biener  <rguenther@suse.de>
24649         PR ipa/100373
24650         * tree-emutls.c (gen_emutls_addr): Pass in whether we're
24651         dealing with a debug use and only query existing addresses
24652         if so.
24653         (lower_emutls_1): Avoid splitting out addresses for debug
24654         stmts, reset the debug stmt when we fail to find existing
24655         lowered addresses.
24656         (lower_emutls_phi_arg): Set wi.stmt.
24658 2021-05-06  Christoph Muellner  <cmuellner@gcc.gnu.org>
24660         PR target/100266
24661         * config/riscv/riscv.c (riscv_block_move_loop): Use cbranch helper.
24662         * config/riscv/riscv.md (cbranch<mode>4): Generate helpers.
24663         (stack_protect_test): Use cbranch helper.
24665 2021-05-05  Eric Botcazou  <ebotcazou@adacore.com>
24667         PR target/100402
24668         * config/i386/i386.c (ix86_compute_frame_layout): For a SEH target,
24669         always return the establisher frame for __builtin_frame_address (0).
24671 2021-05-05  Ivan Sorokin  <vanyacpp@gmail.com>
24673         PR target/91400
24674         * config/i386/i386-builtins.c (ix86_cpu_model_type_node): New.
24675         (ix86_cpu_model_var): Likewise.
24676         (ix86_cpu_features2_type_node): Likewise.
24677         (ix86_cpu_features2_var): Likewise.
24678         (fold_builtin_cpu): Cache __cpu_model and __cpu_features2 with
24679         their types.
24681 2021-05-05  Martin Sebor  <msebor@redhat.com>
24683         * passes.def (pass_warn_printf): Run after SSA.
24685 2021-05-05  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
24687         * config/arm/neon.md (neon_vtst_combine<mode>): New pattern.
24688         * config/arm/predicates.md (minus_one_operand): New predicate.
24690 2021-05-05  Jeff Law  <jlaw@tachyum.com>
24692         * config/avr/avr.md: Remove references to CC_STATUS_INIT.
24694 2021-05-05  Stefan Schulze Frielinghaus  <stefansf@linux.ibm.com>
24696         PR rtl-optimization/100263
24697         * postreload.c (move2add_valid_value_p): Ensure register can
24698         change mode.
24700 2021-05-05  Eric Botcazou  <ebotcazou@adacore.com>
24702         PR rtl-optimization/100411
24703         * cfgcleanup.c (try_crossjump_to_edge): Also skip end of prologue
24704         and beginning of function markers.
24706 2021-05-05  Jeff Law  <jlaw@tachyum.com>
24708         * config/cr16/cr16.h (NOTICE_UPDATE_CC): Remove.
24709         * config/cr16/cr16.c (notice_update_cc): Remove.
24710         * config/cr16/cr16-protos.h (notice_update_cc): Remove.
24712 2021-05-05  Uroš Bizjak  <ubizjak@gmail.com>
24714         PR target/98218
24715         * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
24716         Handle V8QI, V4HI and V2SI modes.
24717         * config/i386/i386.c (ix86_build_const_vector): Handle V2SImode.
24718         (ix86_build_signbit_mask): Ditto.
24719         * config/i386/mmx.md (MMXMODE14): New mode iterator.
24720         (<smaxmin:code><MMXMODE14:mode>3): New expander.
24721         (*mmx_<smaxmin:code><MMXMODE14:mode>3): New insn pattern.
24722         (<umaxmin:code><MMXMODE24:mode>3): New expander.
24723         (*mmx_<umaxmin:code><MMXMODE24:mode>3): New insn pattern.
24724         (vec_cmp<MMXMODEI:mode><MMXMODEI:mode>): New expander.
24725         (vec_cmpu<MMXMODEI:mode><MMXMODEI:mode>): Ditto.
24726         (vcond<MMXMODEI:mode><MMXMODEI:mode>): Ditto.
24727         (vcondu<MMXMODEI:mode><MMXMODEI:mode>): Ditto.
24728         (vcond_mask_<MMXMODEI:mode><MMXMODEI:mode>): Ditto.
24730 2021-05-05  Eric Botcazou  <ebotcazou@adacore.com>
24732         * dwarf2out.c (loc_list_from_tree_1) <DECL>: During early DWARF, do
24733         not expand the VALUE_EXPR of variables put in the non-local frame.
24734         * gimplify.c (gimplify_type_sizes) <RECORD_TYPE>: If the type is not
24735         to be ignored for debug info, ensure its variable offsets are not.
24737 2021-05-05  Richard Biener  <rguenther@suse.de>
24739         PR tree-optimization/79333
24740         * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt):
24741         Fold stmt following SSA edges.
24743 2021-05-05  Richard Biener  <rguenther@suse.de>
24745         PR middle-end/100394
24746         * calls.c (expand_call): Preserve possibly throwing calls.
24747         * cfgexpand.c (expand_call_stmt): When a call can throw signal
24748         RTL expansion there are side-effects.
24749         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Simplify,
24750         mark all possibly throwing stmts necessary unless we can elide
24751         dead EH.
24752         * tree-ssa-dse.c (pass_dse::execute): Preserve exceptions unless
24753         -fdelete-dead-exceptions.
24754         * tree.h (DECL_PURE_P): Add note about exceptions.
24756 2021-05-05  Alexandre Oliva  <oliva@adacore.com>
24758         * config/i386/vxworks.h (DBX_REGISTER_NUMBER): Make it
24759         unconditional.
24761 2021-05-04  David Edelsohn  <dje.gcc@gmail.com>
24763         * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
24764         get_fnname_from_decl for name of thunk.
24765         * config/rs6000/rs6000.c (rs6000_declare_alias): Use assemble_name
24766         and ASM_OUTPUT_LABEL.
24767         (rs6000_xcoff_declare_function_name): Use assemble_name and
24768         ASM_OUTPUT_LABEL.
24769         (rs6000_xcoff_declare_object_name): Use ASM_OUTPUT_LABEL.
24770         (rs6000_xcoff_encode_section_info): Don't add mapping class
24771         for aliases.  Always add [DS] mapping class to primary
24772         FUNCTION_DECL.
24773         (rs6000_asm_weaken_decl): Don't explicitly add [DS].
24775 2021-05-04  Martin Sebor  <msebor@redhat.com>
24777         PR middle-end/100307
24778         * builtins.c (compute_objsize_r): Clear base0 for pointers.
24780 2021-05-04  Jeff Law  <jlaw@tachyum.com>
24782         * config/bfin/bfin.h (NOTICE_UPDATE_CC): Remove.
24784 2021-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
24786         * caller-save.c: Remove CC0.
24787         * cfgcleanup.c: Remove CC0.
24788         * cfgrtl.c: Remove CC0.
24789         * combine.c: Remove CC0.
24790         * compare-elim.c: Remove CC0.
24791         * conditions.h: Remove CC0.
24792         * config/h8300/h8300.h: Remove CC0.
24793         * config/h8300/h8300-protos.h: Remove CC0.
24794         * config/h8300/peepholes.md: Remove CC0.
24795         * config/i386/x86-tune-sched.c: Remove CC0.
24796         * config/m68k/m68k.c: Remove CC0.
24797         * config/rl78/rl78.c: Remove CC0.
24798         * config/sparc/sparc.c: Remove CC0.
24799         * config/xtensa/xtensa.c: Remove CC0.
24800         (gen_conditional_move):  Use pc_rtx instead of cc0_rtx in a piece of
24801         RTL where that is used as a placeholder only.
24802         * cprop.c: Remove CC0.
24803         * cse.c: Remove CC0.
24804         * cselib.c: Remove CC0.
24805         * df-problems.c: Remove CC0.
24806         * df-scan.c: Remove CC0.
24807         * doc/md.texi: Remove CC0.  Adjust an example.
24808         * doc/rtl.texi: Remove CC0.  Adjust an example.
24809         * doc/tm.texi: Regenerate.
24810         * doc/tm.texi.in: Remove CC0.
24811         * emit-rtl.c: Remove CC0.
24812         * final.c: Remove CC0.
24813         * fwprop.c: Remove CC0.
24814         * gcse-common.c: Remove CC0.
24815         * gcse.c: Remove CC0.
24816         * genattrtab.c: Remove CC0.
24817         * genconfig.c: Remove CC0.
24818         * genemit.c: Remove CC0.
24819         * genextract.c: Remove CC0.
24820         * gengenrtl.c: Remove CC0.
24821         * genrecog.c: Remove CC0.
24822         * haifa-sched.c: Remove CC0.
24823         * ifcvt.c: Remove CC0.
24824         * ira-costs.c: Remove CC0.
24825         * ira.c: Remove CC0.
24826         * jump.c: Remove CC0.
24827         * loop-invariant.c: Remove CC0.
24828         * lra-constraints.c: Remove CC0.
24829         * lra-eliminations.c: Remove CC0.
24830         * optabs.c: Remove CC0.
24831         * postreload-gcse.c: Remove CC0.
24832         * postreload.c: Remove CC0.
24833         * print-rtl.c: Remove CC0.
24834         * read-rtl-function.c: Remove CC0.
24835         * reg-notes.def: Remove CC0.
24836         * reg-stack.c: Remove CC0.
24837         * reginfo.c: Remove CC0.
24838         * regrename.c: Remove CC0.
24839         * reload.c: Remove CC0.
24840         * reload1.c: Remove CC0.
24841         * reorg.c: Remove CC0.
24842         * resource.c: Remove CC0.
24843         * rtl.c: Remove CC0.
24844         * rtl.def: Remove CC0.
24845         * rtl.h: Remove CC0.
24846         * rtlanal.c: Remove CC0.
24847         * sched-deps.c: Remove CC0.
24848         * sched-rgn.c: Remove CC0.
24849         * shrink-wrap.c: Remove CC0.
24850         * simplify-rtx.c: Remove CC0.
24851         * system.h: Remove CC0.  Poison NOTICE_UPDATE_CC, CC_STATUS_MDEP_INIT,
24852         CC_STATUS_MDEP, and CC_STATUS.
24853         * target.def: Remove CC0.
24854         * valtrack.c: Remove CC0.
24855         * var-tracking.c: Remove CC0.
24857 2021-05-04  Richard Biener  <rguenther@suse.de>
24859         PR tree-optimization/100414
24860         * tree-ssa-phiopt.c (get_non_trapping): Do not compute dominance
24861         info here.
24862         (tree_ssa_phiopt_worker): But unconditionally here.
24864 2021-05-04  Tobias Burnus  <tobias@codesourcery.com>
24866         * omp-low.c (lower_rec_input_clauses, lower_reduction_clauses): Handle
24867         && and || with floating-point and complex arguments.
24869 2021-05-04  Eric Botcazou  <ebotcazou@adacore.com>
24871         * tree-inline.c (insert_debug_decl_map): Delete.
24872         (copy_debug_stmt): Minor tweak.
24873         (setup_one_parameter): Do not use a variable if the value is either
24874         a read-only DECL or a non-addressable local variable in the caller.
24875         In this case, insert the debug-only variable in the map manually.
24876         (expand_call_inline): Do not generate a CLOBBER for these values.
24877         * tree-inline.h (debug_map): Minor tweak.
24879 2021-05-04  Eric Botcazou  <ebotcazou@adacore.com>
24881         * builtins.c (builtin_with_linkage_p): Return true for stp[n]cpy.
24882         * symtab.c (symtab_node::output_to_lto_symbol_table_p): Tidy up.
24884 2021-05-04  Richard Biener  <rguenther@suse.de>
24886         PR tree-optimization/100329
24887         * tree-ssa-reassoc.c (can_reassociate_p): Do not reassociate
24888         asm goto defs.
24889         (insert_stmt_after): Assert we're not running into asm goto.
24891 2021-05-04  Richard Biener  <rguenther@suse.de>
24893         PR tree-optimization/100398
24894         * tree-ssa-dse.c (pass_dse::execute): Preserve control
24895         altering stmts.
24897 2021-05-04  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
24899         * builtins.c (try_store_by_multiple_pieces): Fix constfun's prototype.
24901 2021-05-04  Alexandre Oliva  <oliva@adacore.com>
24903         * builtins.c (try_store_by_multiple_pieces): New.
24904         (expand_builtin_memset_args): Use it.  If target_char_cast
24905         fails, proceed as for non-constant val.  Pass len's ctz to...
24906         * expr.c (clear_storage_hints): ... this.  Try store by
24907         multiple pieces after setmem.
24908         (clear_storage): Adjust.
24909         * expr.h (clear_storage_hints): Likewise.
24910         (try_store_by_multiple_pieces): Declare.
24911         * passes.def: Replace the last copy_prop with ccp.
24913 2021-05-03  Tom de Vries  <tdevries@suse.de>
24915         PR target/100321
24916         * omp-low.c (lower_rec_input_clauses): Disable SIMT for user-defined
24917         reduction.
24919 2021-05-03  Richard Biener  <rguenther@suse.de>
24921         * tree-ssa-dse.c (dse_classify_store): Track two PHI defs.
24923 2021-05-03  Richard Biener  <rguenther@suse.de>
24925         * tree-ssa-dse.c: Do not include domwalk.h but cfganal.h.
24926         (dse_dom_walker): Remove.
24927         (dse_dom_walker::dse_optimize_stmt): Rename...
24928         (dse_optimize_stmt): ... to this, pass in live_bytes sbitmap.
24929         (dse_dom_walker::before_dom_children): Inline ...
24930         (pass_dse::execute): ... here.  Perform a reverse program
24931         order walk.
24933 2021-05-03  H.J. Lu  <hjl.tools@gmail.com>
24935         PR bootstrap/99703
24936         * configure: Regenerated.
24938 2021-05-03  Ilya Leoshkevich  <iii@linux.ibm.com>
24940         PR target/100217
24941         * config/s390/s390.c (s390_hard_fp_reg_p): New function.
24942         (s390_md_asm_adjust): Handle hard registers.
24944 2021-05-03  Jakub Jelinek  <jakub@redhat.com>
24946         PR tree-optimization/100382
24947         * tree-ssa-dse.c: Include tree-eh.h.
24948         (dse_dom_walker::before_dom_children): Don't remove stmts if
24949         stmt_unremovable_because_of_non_call_eh_p is true.
24951 2021-05-02  David Edelsohn  <dje.gcc@gmail.com>
24953         * varasm.c (compute_reloc_for_var): Split out from...
24954         (get_variable_section): Use it.
24955         * output.h (compute_reloc_for_var): Declare.
24956         * config/rs6000/rs6000-protos.h
24957         (rs6000_xcoff_asm_output_aligned_decl_common): Change alignment to
24958         unsigned int.
24959         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address_aix):
24960         Don't append storage mapping class to symbol.
24961         (rs6000_xcoff_asm_named_section): Add BS and UL mapping classes.
24962         Don't convert TLS BSS to common.
24963         (rs6000_xcoff_unique_section): Don't fall back to select_secton.
24964         (rs6000_xcoff_section_type_flags): Add SECTION_BSS if DECL is
24965         bss_initializer.
24966         (rs6000_xcoff_asm_globalize_decl_name): Don't strip storage
24967         mapping class.
24968         (rs6000_xcoff_asm_output_aligned_decl_common): Align is unsigned int.
24969         If align is 0 from TLS class, use the same rules as varasm.c
24970         If not common, switch to BSS section manually.
24971         If common, emit appropriate comm or lcomm directive.
24972         (rs6000_xcoff_encode_section_info): Add logic to append all
24973         storage mapping classes.
24974         (rs6000_asm_weaken_decl): Adjust for qualname symbols.
24975         * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
24976         rs6000_xcoff_asm_output_aligned_decl_common.
24977         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
24978         rs6000_xcoff_asm_output_aligned_decl_common.
24979         (ASM_OUTPUT_TLS_COMMON): Use
24980         rs6000_xcoff_asm_output_aligned_decl_common.
24982 2021-05-02  Jakub Jelinek  <jakub@redhat.com>
24984         PR target/100375
24985         * config/nvptx/nvptx.c (nvptx_sese_pseudo): Use nullptr instead of 0
24986         as first argument of pseudo_node_t constructors.
24988 2021-05-02  Jakub Jelinek  <jakub@redhat.com>
24990         PR target/100336
24991         * config/i386/t-i386 (TM_H): Add $(srcdir)/config/i386/i386-isa.def.
24993 2021-05-01  Aldy Hernandez  <aldyh@redhat.com>
24995         * value-range.cc (DEFINE_INT_RANGE_GC_STUBS): Remove.
24996         (gt_pch_nx (int_range<1> *&)): New.
24997         (gt_ggc_mx (int_range<1> *&)): New.
24998         * value-range.h (class irange): Add GTY support for
24999         the base class.
25001 2021-05-01  Geng Qi  <gengqi@linux.alibaba.com>
25003         * doc/options.texi (Negative): Change either or to both and.
25005 2021-04-30  Jonathan Wright  <jonathan.wright@arm.com>
25007         * config/aarch64/aarch64-simd-builtins.def: Add
25008         float_ml[as][q]_laneq builtin generator macros.
25009         * config/aarch64/aarch64-simd.md (mul_laneq<mode>3): Define.
25010         (aarch64_float_mla_laneq<mode>): Define.
25011         (aarch64_float_mls_laneq<mode>): Define.
25012         * config/aarch64/arm_neon.h (vmla_laneq_f32): Use RTL builtin
25013         instead of GCC vector extensions.
25014         (vmlaq_laneq_f32): Likewise.
25015         (vmls_laneq_f32): Likewise.
25016         (vmlsq_laneq_f32): Likewise.
25018 2021-04-30  Jonathan Wright  <jonathan.wright@arm.com>
25020         * config/aarch64/aarch64-simd-builtins.def: Add
25021         float_ml[as]_lane builtin generator macros.
25022         * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt<mode>):
25023         Rename to...
25024         (mul_lane<mode>3): This, and re-order arguments.
25025         (aarch64_float_mla_lane<mode>): Define.
25026         (aarch64_float_mls_lane<mode>): Define.
25027         * config/aarch64/arm_neon.h (vmla_lane_f32): Use RTL builtin
25028         instead of GCC vector extensions.
25029         (vmlaq_lane_f32): Likewise.
25030         (vmls_lane_f32): Likewise.
25031         (vmlsq_lane_f32): Likewise.
25033 2021-04-30  Jonathan Wright  <jonathan.wright@arm.com>
25035         * config/aarch64/aarch64-simd-builtins.def: Add float_ml[as]
25036         builtin generator macros.
25037         * config/aarch64/aarch64-simd.md (aarch64_float_mla<mode>):
25038         Define.
25039         (aarch64_float_mls<mode>): Define.
25040         * config/aarch64/arm_neon.h (vmla_f32): Use RTL builtin
25041         instead of relying on GCC vector extensions.
25042         (vmla_f64): Likewise.
25043         (vmlaq_f32): Likewise.
25044         (vmlaq_f64): Likewise.
25045         (vmls_f32): Likewise.
25046         (vmls_f64): Likewise.
25047         (vmlsq_f32): Likewise.
25048         (vmlsq_f64): Likewise.
25049         * config/aarch64/iterators.md: Define VDQF_DF mode iterator.
25051 2021-04-30  Jonathan Wright  <jonathan.wright@arm.com>
25053         * config/aarch64/aarch64-simd-builtins.def: Add
25054         float_ml[as]_n_builtin generator macros.
25055         * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_from_dup<mode>):
25056         Rename to...
25057         (mul_n<mode>3): This, and re-order arguments.
25058         (aarch64_float_mla_n<mode>): Define.
25059         (aarch64_float_mls_n<mode>): Define.
25060         * config/aarch64/arm_neon.h (vmla_n_f32): Use RTL builtin
25061         instead of inline asm.
25062         (vmlaq_n_f32): Likewise.
25063         (vmls_n_f32): Likewise.
25064         (vmlsq_n_f32): Likewise.
25066 2021-04-30  Jonathan Wright  <joanthan.wright@arm.com>
25068         * config/aarch64/aarch64-simd-builtins.def: Add pmull[2]
25069         builtin generator macros.
25070         * config/aarch64/aarch64-simd.md (aarch64_pmullv8qi): Define.
25071         (aarch64_pmull_hiv16qi_insn): Define.
25072         (aarch64_pmull_hiv16qi): Define.
25073         * config/aarch64/arm_neon.h (vmull_high_p8): Use RTL builtin
25074         instead of inline asm.
25075         (vmull_p8): Likewise.
25077 2021-04-30  Senthil Kumar Selvaraj  <saaadhu@gcc.gnu.org>
25079         * config/avr/avr.md: Adjust peepholes to match and
25080         generate parallels with clobber of REG_CC.
25081         (mov<mode>_insn): Rename to mov<mode>_insn_split.
25082         (*mov<mode>_insn): Rename to mov<mode>_insn.
25084 2021-04-30  David Edelsohn  <dje.gcc@gmail.com>
25086         * varasm.c (use_blocks_for_decl_p): Don't use section anchors
25087         for VAR_DECLs if -fdata-sections enabled.
25089 2021-04-30  Michael Meissner  <meissner@linux.ibm.com>
25091         PR bootstrap/100327
25092         * config/rs6000/rs6000.c
25093         (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Define.
25094         (rs6000_libgcc_floating_mode_supported_p): New target hook.
25096 2021-04-30  Aldy Hernandez  <aldyh@redhat.com>
25098         * tree-ssa-threadbackward.c (class thread_jumps): Split out code
25099         from here...
25100         (class back_threader_registry): ...to here...
25101         (class back_threader_profitability): ...and here...
25102         (thread_jumps::thread_through_all_blocks): Remove argument.
25103         (back_threader_registry::back_threader_registry): New.
25104         (back_threader_registry::~back_threader_registry): New.
25105         (back_threader_registry::thread_through_all_blocks): New.
25106         (thread_jumps::profitable_jump_thread_path): Move from here...
25107         (back_threader_profitability::profitable_path_p): ...to here.
25108         (thread_jumps::find_taken_edge): New.
25109         (thread_jumps::convert_and_register_current_path): Move...
25110         (back_threader_registry::register_path): ...to here.
25111         (thread_jumps::register_jump_thread_path_if_profitable): Move...
25112         (thread_jumps::maybe_register_path): ...to here.
25113         (thread_jumps::handle_phi): Call find_taken_edge and
25114         maybe_register_path.
25115         (thread_jumps::handle_assignment): Same.
25116         (thread_jumps::fsm_find_control_statement_thread_paths): Remove
25117         tree argument to handle_phi and handle_assignment.
25118         (thread_jumps::find_jump_threads_backwards): Set m_name.  Remove
25119         set of m_speed_p and m_max_threaded_paths.
25120         (pass_thread_jumps::execute): Remove second argument from
25121         find_jump_threads_backwards.
25122         (pass_early_thread_jumps::execute): Same.
25124 2021-04-30  Aldy Hernandez  <aldyh@redhat.com>
25126         * tree-ssa-dom.c (class dom_jump_threader_simplifier): New.
25127         (class dom_opt_dom_walker): Initialize some class variables.
25128         (pass_dominator::execute): Pass evrp_range_analyzer and
25129         dom_jump_threader_simplifier to dom_opt_dom_walker.
25130         Adjust for some functions moving into classes.
25131         (simplify_stmt_for_jump_threading): Adjust and move to...
25132         (jump_threader_simplifier::simplify): ...here.
25133         (dom_opt_dom_walker::before_dom_children): Adjust for
25134         m_evrp_range_analyzer.
25135         (dom_opt_dom_walker::after_dom_children): Remove x_vr_values hack.
25136         (test_for_singularity): Place in dom_opt_dom_walker class.
25137         (dom_opt_dom_walker::optimize_stmt): The argument
25138         evrp_range_analyzer is now a class field.
25139         * tree-ssa-threadbackward.c (class thread_jumps): Add m_registry.
25140         (thread_jumps::thread_through_all_blocks): New.
25141         (thread_jumps::convert_and_register_current_path): Use m_registry.
25142         (pass_thread_jumps::execute): Adjust for thread_through_all_blocks
25143         being in the threader class.
25144         (pass_early_thread_jumps::execute): Same.
25145         * tree-ssa-threadedge.c (threadedge_initialize_values): Move...
25146         (jump_threader::jump_threader): ...here.
25147         (threadedge_finalize_values): Move...
25148         (jump_threader::~jump_threader): ...here.
25149         (jump_threader::remove_jump_threads_including): New.
25150         (jump_threader::thread_through_all_blocks): New.
25151         (record_temporary_equivalences_from_phis): Move...
25152         (jump_threader::record_temporary_equivalences_from_phis): ...here.
25153         (record_temporary_equivalences_from_stmts_at_dest): Move...
25154         (jump_threader::record_temporary_equivalences_from_stmts_at_dest):
25155         Here...
25156         (simplify_control_stmt_condition_1): Move to jump_threader class.
25157         (simplify_control_stmt_condition): Move...
25158         (jump_threader::simplify_control_stmt_condition): ...here.
25159         (thread_around_empty_blocks): Move...
25160         (jump_threader::thread_around_empty_blocks): ...here.
25161         (thread_through_normal_block): Move...
25162         (jump_threader::thread_through_normal_block): ...here.
25163         (thread_across_edge): Move...
25164         (jump_threader::thread_across_edge): ...here.
25165         (thread_outgoing_edges): Move...
25166         (jump_threader::thread_outgoing_edges): ...here.
25167         * tree-ssa-threadedge.h: Move externally facing functings...
25168         (class jump_threader): ...here...
25169         (class jump_threader_simplifier): ...and here.
25170         * tree-ssa-threadupdate.c (struct redirection_data): Remove comment.
25171         (jump_thread_path_allocator::jump_thread_path_allocator): New.
25172         (jump_thread_path_allocator::~jump_thread_path_allocator): New.
25173         (jump_thread_path_allocator::allocate_thread_edge): New.
25174         (jump_thread_path_allocator::allocate_thread_path): New.
25175         (jump_thread_path_registry::jump_thread_path_registry): New.
25176         (jump_thread_path_registry::~jump_thread_path_registry): New.
25177         (jump_thread_path_registry::allocate_thread_edge): New.
25178         (jump_thread_path_registry::allocate_thread_path): New.
25179         (dump_jump_thread_path): Make extern.
25180         (debug (const vec<jump_thread_edge *> &path)): New.
25181         (struct removed_edges): Move to tree-ssa-threadupdate.h.
25182         (struct thread_stats_d): Remove.
25183         (remove_ctrl_stmt_and_useless_edges): Make static.
25184         (lookup_redirection_data): Move...
25185         (jump_thread_path_registry::lookup_redirection_data): ...here.
25186         (ssa_redirect_edges): Make static.
25187         (thread_block_1): Move...
25188         (jump_thread_path_registry::thread_block_1): ...here.
25189         (thread_block): Move...
25190         (jump_thread_path_registry::thread_block): ...here.
25191         (thread_through_loop_header):  Move...
25192         (jump_thread_path_registry::thread_through_loop_header): ...here.
25193         (mark_threaded_blocks): Move...
25194         (jump_thread_path_registry::mark_threaded_blocks): ...here.
25195         (debug_path): Move...
25196         (jump_thread_path_registry::debug_path): ...here.
25197         (debug_all_paths): Move...
25198         (jump_thread_path_registry::dump): ..here.
25199         (rewire_first_differing_edge): Move...
25200         (jump_thread_path_registry::rewire_first_differing_edge): ...here.
25201         (adjust_paths_after_duplication): Move...
25202         (jump_thread_path_registry::adjust_paths_after_duplication): ...here.
25203         (duplicate_thread_path): Move...
25204         (jump_thread_path_registry::duplicate_thread_path): ..here.
25205         (remove_jump_threads_including): Move...
25206         (jump_thread_path_registry::remove_jump_threads_including): ...here.
25207         (thread_through_all_blocks): Move to...
25208         (jump_thread_path_registry::thread_through_all_blocks): ...here.
25209         (delete_jump_thread_path): Remove.
25210         (register_jump_thread): Move...
25211         (jump_thread_path_registry::register_jump_thread): ...here.
25212         * tree-ssa-threadupdate.h: Move externally facing functions...
25213         (class jump_thread_path_allocator): ...here...
25214         (class jump_thread_path_registry): ...and here.
25215         (thread_through_all_blocks): Remove.
25216         (struct removed_edges): New.
25217         (register_jump_thread): Remove.
25218         (remove_jump_threads_including): Remove.
25219         (delete_jump_thread_path): Remove.
25220         (remove_ctrl_stmt_and_useless_edges): Remove.
25221         (free_dom_edge_info): New prototype.
25222         * tree-vrp.c: Remove x_vr_values hack.
25223         (class vrp_jump_threader_simplifier): New.
25224         (vrp_jump_threader_simplifier::simplify): New.
25225         (vrp_jump_threader::vrp_jump_threader): Adjust method signature.
25226         Remove m_dummy_cond.
25227         Instantiate m_simplifier and m_threader.
25228         (vrp_jump_threader::thread_through_all_blocks): New.
25229         (vrp_jump_threader::simplify_stmt): Remove.
25230         (vrp_jump_threader::after_dom_children): Do not set m_dummy_cond.
25231         Remove x_vr_values hack.
25232         (execute_vrp): Adjust for thread_through_all_blocks being in a
25233         class.
25235 2021-04-30  Christophe Lyon  <christophe.lyon@linaro.org>
25237         * genflags.c (gen_insn): Print failed expansion string.
25239 2021-04-30  H.J. Lu  <hjl.tools@gmail.com>
25241         * expr.c (alignment_for_piecewise_move): Call mode_for_size
25242         without limit to MAX_FIXED_MODE_SIZE.
25244 2021-04-30  H.J. Lu  <hjl.tools@gmail.com>
25246         PR middle-end/90773
25247         * builtins.c (builtin_memset_gen_str): Don't use return from
25248         simplify_gen_subreg.
25250 2021-04-30  Uroš Bizjak  <ubizjak@gmail.com>
25252         PR target/98060
25253         * config/i386/i386.md (*add<mode>3_carry_0r): New insn pattern.
25254         (*addsi3_carry_zext_0r): Ditto.
25255         (*sub<mode>3_carry_0): Ditto.
25256         (*subsi3_carry_zext_0r): Ditto.
25257         * config/i386/predicates.md (ix86_carry_flag_unset_operator):
25258         New predicate.
25259         * config/i386/i386.c (ix86_rtx_costs) <case PLUS, case MINUS>:
25260         Also consider ix86_carry_flag_unset_operator to calculate
25261         the cost of adc/sbb insn.
25263 2021-04-30  Roman Zhuykov  <zhroma@ispras.ru>
25265         PR rtl-optimization/100225
25266         PR rtl-optimization/84878
25267         * modulo-sched.c (sms_schedule): Use note_stores to skip loops
25268         where we have an instruction which touches (writes) any hard
25269         register from df->regular_block_artificial_uses set.
25270         Allow not-single-set instruction only right before basic block
25271         tail.
25273 2021-04-30  Geng Qi  <gengqi@linux.alibaba.com>
25275         * config/riscv/riscv.opt (march=,mabi=): Negative itself.
25277 2021-04-30  LevyHsu  <admin@levyhsu.com>
25279         * config/riscv/riscv.c (riscv_min_arithmetic_precision): New.
25280         * config/riscv/riscv.h (TARGET_MIN_ARITHMETIC_PRECISION): New.
25281         * config/riscv/riscv.md (addv<mode>4, uaddv<mode>4): New.
25282         (subv<mode>4, usubv<mode>4, mulv<mode>4, umulv<mode>4): New.
25284 2021-04-29  Alexandre Oliva  <oliva@adacore.com>
25286         * config.gcc: Merged x86 and x86_64 cpu_type-setting cases.
25288 2021-04-29  Alexandre Oliva  <oliva@adacore.com>
25290         * config/i386/i386.h (ASM_OUTPUT_MAX_SKIP_PAD): Rename to...
25291         (ASM_OUTPUT_MAX_SKIP_ALIGN): ... this.  Enclose in do/while(0).
25292         * config/i386/i386.c: Adjust.
25293         * config/i386/i386.md: Adjust.
25294         * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Drop.
25295         * config/i386/dragonfly.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
25296         * config/i386/freebsd.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
25297         * config/i386/gas.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
25298         * config/i386/gnu-user.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
25299         * config/i386/iamcu.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
25300         * config/i386/lynx.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
25301         * config/i386/netbsd-elf.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
25302         * config/i386/openbsdelf.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
25303         * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
25304         (ASM_OUTPUT_MAX_SKIP_PAD): Likewise.
25306 2021-04-29  Uroš Bizjak  <ubizjak@gmail.com>
25308         * config/i386/i386-expand.c (ix86_expand_int_compare):
25309         Swap operands of GTU and LEU comparison to emit carry flag comparison.
25310         * config/i386/i386.md (*add<mode>3_carry_0): Change insn
25311         predicate to allow more combine opportunities with memory operands.
25312         (*sub<mode>3_carry_0): Ditto.
25314 2021-04-29  Richard Sandiford  <richard.sandiford@arm.com>
25316         PR rtl-optimization/100303
25317         * rtl-ssa/accesses.cc (function_info::make_use_available): Take a
25318         boolean that indicates whether the use will only be used in
25319         debug instructions.  Treat it in the same way that existing
25320         cross-EBB debug references would be handled if so.
25321         (function_info::make_uses_available): Likewise.
25322         * rtl-ssa/functions.h (function_info::make_uses_available): Update
25323         prototype accordingly.
25324         (function_info::make_uses_available): Likewise.
25325         * fwprop.c (try_fwprop_subst): Update call accordingly.
25327 2021-04-29  Jeff Law  <jlaw@tachyum.com>
25329         * config/nios2/nios2-protos.h (nios2_fpu_insn_enabled): Move outside
25330         of RTX_CODE guard.
25332 2021-04-29  Uroš Bizjak  <ubizjak@gmail.com>
25333             Richard Biener  <rguenther@suse.de>
25335         PR target/100312
25336         * config/i386/i386-builtin.def (IX86_BUILTIN_MASKLOADPD)
25337         (IX86_BUILTIN_MASKLOADPS, IX86_BUILTIN_MASKLOADPD256)
25338         (IX86_BUILTIN_MASKLOADPS256, IX86_BUILTIN_MASKLOADD)
25339         (IX86_BUILTIN_MASKLOADQ, IX86_BUILTIN_MASKLOADD256)
25340         (IX86_BUILTIN_MASKLOADQ256): Move from SPECIAL_ARGS
25341         to PURE_ARGS category.
25342         * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
25343         Handle PURE_ARGS category.
25344         * config/i386/i386-expand.c (ix86_expand_builtin): Ditto.
25346 2021-04-29  Eric Botcazou  <ebotcazou@adacore.com>
25348         * configure.ac: Check for the presence of sys/locking.h header and
25349         for whether _LK_LOCK is supported by _locking.
25350         * configure: Regenerate.
25351         * config.in: Likewise.
25352         * gcov-io.h: Define GCOV_LOCKED_WITH_LOCKING if HOST_HAS_LK_LOCK.
25353         * gcov-io.c (gcov_open): Add support for GCOV_LOCKED_WITH_LOCKING.
25354         * system.h: Include <sys/locking.h> if HAVE_SYS_LOCKING_H.
25356 2021-04-29  Uroš Bizjak  <ubizjak@gmail.com>
25358         * config/i386/predicates.md (fcmov_comparison_operator):
25359         Do not check for trivial FP comparison operator.
25360         <case GEU, case LTU>: Allow CCGZmode.
25361         <case GTU, case LEU>: Do not allow CCCmode.
25362         (ix86_comparison_operator) <case GTU, case LEU>: Allow only CCmode.
25363         (ix86_carry_flag_operator): Match only LTU and UNLT code.
25364         Do not check for trivial FP comparison operator.  Allow CCGZmode.
25366 2021-04-29  Tom de Vries  <tdevries@suse.de>
25368         * omp-expand.c (expand_omp_simd): Add step_orig, and replace uses of
25369         fd->loop.step by either step or orig_step.
25371 2021-04-29  Eric Botcazou  <ebotcazou@adacore.com>
25373         * config/sparc/sparc.c (gen_load_pcrel_sym): Delete.
25374         (load_got_register): Do the PIC dance here.
25375         (sparc_legitimize_tls_address): Simplify.
25376         (sparc_emit_probe_stack_range): Likewise.
25377         (sparc32_initialize_trampoline): Likewise.
25378         (sparc64_initialize_trampoline): Likewise.
25379         * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Add @ marker.
25380         (probe_stack_range<P:mode>): Likewise.
25381         (flush<P:mode>): Likewise.
25382         (tgd_hi22<P:mode>): Likewise.
25383         (tgd_lo10<P:mode>): Likewise.
25384         (tgd_add<P:mode>): Likewise.
25385         (tgd_call<P:mode>): Likewise.
25386         (tldm_hi22<P:mode>): Likewise.
25387         (tldm_lo10<P:mode>): Likewise.
25388         (tldm_add<P:mode>): Likewise.
25389         (tldm_call<P:mode>): Likewise.
25390         (tldo_hix22<P:mode>): Likewise.
25391         (tldo_lox10<P:mode>): Likewise.
25392         (tldo_add<P:mode>): Likewise.
25393         (tie_hi22<P:mode>): Likewise.
25394         (tie_lo10<P:mode>): Likewise.
25395         (tie_add<P:mode>): Likewise.
25396         (tle_hix22<P:mode>): Likewise.
25397         (tle_lox10<P:mode>): Likewise.
25398         (stack_protect_setsi): Rename to...
25399         (stack_protect_set32): ...this.
25400         (stack_protect_setdi): Rename to...
25401         (stack_protect_set64): ...this.
25402         (stack_protect_set): Adjust calls to above.
25403         (stack_protect_testsi): Rename to...
25404         (stack_protect_test32): ...this.
25405         (stack_protect_testdi): Rename to...
25406         (stack_protect_test64): ...this.
25407         (stack_protect_test): Adjust calls to above.
25409 2021-04-29  H.J. Lu  <hjl.tools@gmail.com>
25411         PR middle-end/90773
25412         * builtins.c (builtin_memcpy_read_str): Add a dummy argument.
25413         (builtin_strncpy_read_str): Likewise.
25414         (builtin_memset_read_str): Add an argument for the previous RTL
25415         information and generate the new RTL from the previous RTL info.
25416         (builtin_memset_gen_str): Likewise.
25417         * builtins.h (builtin_strncpy_read_str): Update the prototype.
25418         (builtin_memset_read_str): Likewise.
25419         * expr.c (by_pieces_ninsns): If targetm.overlap_op_by_pieces_p()
25420         returns true, round up size and alignment to the widest integer
25421         mode for maximum size.
25422         (pieces_addr::adjust): Add a pointer to by_pieces_prev argument
25423         and pass it to m_constfn.
25424         (op_by_pieces_d): Add m_push and m_overlap_op_by_pieces.
25425         (op_by_pieces_d::op_by_pieces_d): Add a bool argument to
25426         initialize m_push.  Initialize m_overlap_op_by_pieces with
25427         targetm.overlap_op_by_pieces_p ().
25428         (op_by_pieces_d::run): Pass the previous RTL information to
25429         pieces_addr::adjust and generate overlapping operations if
25430         m_overlap_op_by_pieces is true.
25431         (PUSHG_P): New.
25432         (move_by_pieces_d::move_by_pieces_d): Updated for op_by_pieces_d
25433         change.
25434         (store_by_pieces_d::store_by_pieces_d): Updated for op_by_pieces_d
25435         change.
25436         (can_store_by_pieces): Use by_pieces_constfn on constfun.
25437         (store_by_pieces): Use by_pieces_constfn on constfun.  Updated
25438         for op_by_pieces_d change.
25439         (clear_by_pieces_1): Add a dummy argument.
25440         (clear_by_pieces): Updated for op_by_pieces_d change.
25441         (compare_by_pieces_d::compare_by_pieces_d): Likewise.
25442         (string_cst_read_str): Add a dummy argument.
25443         * expr.h (by_pieces_constfn): Add a dummy argument.
25444         (by_pieces_prev): New.
25445         * target.def (overlap_op_by_pieces_p): New target hook.
25446         * config/i386/i386.c (TARGET_OVERLAP_OP_BY_PIECES_P): New.
25447         * doc/tm.texi.in: Add TARGET_OVERLAP_OP_BY_PIECES_P.
25448         * doc/tm.texi: Regenerated.
25450 2021-04-29  Richard Biener  <rguenther@suse.de>
25452         PR tree-optimization/100253
25453         * tree-vect-stmts.c (vectorizable_load): Do not assume
25454         element alignment when DR_MISALIGNMENT is -1.
25455         (vectorizable_store): Likewise.
25457 2021-04-29  Jakub Jelinek  <jakub@redhat.com>
25459         PR target/100302
25460         * config/aarch64/aarch64.c (aarch64_add_offset_1_temporaries): Use
25461         absu_hwi instead of abs_hwi.
25463 2021-04-29  Richard Biener  <rguenther@suse.de>
25465         PR middle-end/38474
25466         * tree-ssa-structalias.c (add_graph_edge): Avoid direct
25467         forwarding when indirect forwarding through ESCAPED
25468         alread happens.
25470 2021-04-29  Tom de Vries  <tdevries@suse.de>
25472         PR target/100232
25473         * internal-fn.c (expand_GOMP_SIMT_ENTER_ALLOC)
25474         (expand_GOMP_SIMT_LAST_LANE, expand_GOMP_SIMT_ORDERED_PRED)
25475         (expand_GOMP_SIMT_VOTE_ANY, expand_GOMP_SIMT_XCHG_BFLY)
25476         (expand_GOMP_SIMT_XCHG_IDX): Ensure target is assigned to.
25478 2021-04-29  Richard Biener  <rguenther@suse.de>
25480         PR tree-optimization/99912
25481         * tree-ssa-dse.c (dse_dom_walker::m_need_cfg_cleanup): New.
25482         (dse_dom_walker::todo): Likewise.
25483         (dse_dom_walker::dse_optimize_stmt): Move VDEF check to the
25484         caller.
25485         (dse_dom_walker::before_dom_children): Remove trivially
25486         dead SSA defs and schedule CFG cleanup if we removed all
25487         PHIs in a block.
25488         (pass_dse::execute): Get TODO as computed by the DOM walker
25489         and return it.  Wipe dominator info earlier.
25491 2021-04-29  Richard Biener  <rguenther@suse.de>
25493         PR ipa/100308
25494         * ipa-prop.c (ipcp_modif_dom_walker::before_dom_children):
25495         Track blocks to cleanup EH in new m_need_eh_cleanup.
25496         (ipcp_modif_dom_walker::cleanup_eh): New.
25497         (ipcp_transform_function): Release dominator info before
25498         doing EH cleanup.
25500 2021-04-29  Martin Sebor  <msebor@redhat.com>
25502         PR middle-end/100250
25503         * attribs.c (attr_access::array_as_string): Avoid dereferencing
25504         a pointer when it's null.
25506 2021-04-29  Martin Sebor  <msebor@redhat.com>
25508         * Makefile.in (OBJS): Add ipa-free-lang-data.o.
25509         * ipa-free-lang-data.cc: New file.
25510         * tree.c: Move pass free_lang_data to file above.
25511          (build_array_type_1): Declare extern.
25512         * tree.h (build_array_type_1): Declare.
25514 2021-04-28  Jonathan Wright  <jonathan.wright@arm.com>
25516         * config/aarch64/aarch64-simd-builtins.def: Modify comment to
25517         make consistent with updated RTL pattern.
25518         * config/aarch64/aarch64-simd.md (aarch64_<sur>qmovn<mode>):
25519         Implement using ss_truncate and us_truncate rather than
25520         unspecs.
25521         * config/aarch64/iterators.md: Remove redundant unspecs and
25522         iterator: UNSPEC_[SU]QXTN and SUQMOVN respectively.
25524 2021-04-28  Jonathan Wright  <jonathan.wright@arm.com>
25526         * config/aarch64/arm_acle.h (__attribute__): Make intrinsic
25527         attributes consistent with those defined in arm_neon.h.
25529 2021-04-28  Jonathan Wright  <jonathan.wright@arm.com>
25531         * config/aarch64/arm_fp16.h (__attribute__): Make intrinsic
25532         attributes consistent with those defined in arm_neon.h.
25534 2021-04-28  Jonathan Wright  <jonathan.wright@arm.com>
25536         * config/aarch64/aarch64-simd-builtins.def: Add
25537         float_trunc_rodd builtin generator macros.
25538         * config/aarch64/aarch64-simd.md (aarch64_float_trunc_rodd_df):
25539         Define.
25540         (aarch64_float_trunc_rodd_lo_v2sf): Define.
25541         (aarch64_float_trunc_rodd_hi_v4sf_le): Define.
25542         (aarch64_float_trunc_rodd_hi_v4sf_be): Define.
25543         (aarch64_float_trunc_rodd_hi_v4sf): Define.
25544         * config/aarch64/arm_neon.h (vcvtx_f32_f64): Use RTL builtin
25545         instead of inline asm.
25546         (vcvtx_high_f32_f64): Likewise.
25547         (vcvtxd_f32_f64): Likewise.
25548         * config/aarch64/iterators.md: Add FCVTXN unspec.
25550 2021-04-28  Jonathan Wright  <jonathan.wright@arm.com>
25552         * config/aarch64/aarch64-simd-builtins.def: Add tbx1 builtin
25553         generator macros.
25554         * config/aarch64/aarch64-simd.md (aarch64_tbx1<mode>):
25555         Define.
25556         * config/aarch64/arm_neon.h (vqtbx1_s8): USE RTL builtin
25557         instead of inline asm.
25558         (vqtbx1_u8): Likewise.
25559         (vqtbx1_p8): Likewise.
25560         (vqtbx1q_s8): Likewise.
25561         (vqtbx1q_u8): Likewise.
25562         (vqtbx1q_p8): Likewise.
25563         (vtbx2_s8): Likewise.
25564         (vtbx2_u8): Likewise.
25565         (vtbx2_p8): Likewise.
25567 2021-04-28  Jonathan Wright  <jonathan.wright@arm.com>
25569         * config/aarch64/aarch64-simd-builtins.def: Add tbl1 builtin
25570         generator macros.
25571         * config/aarch64/arm_neon.h (vqtbl1_p8): Use RTL builtin
25572         instead of inline asm.
25573         (vqtbl1_s8): Likewise.
25574         (vqtbl1_u8): Likewise.
25575         (vqtbl1q_p8): Likewise.
25576         (vqtbl1q_s8): Likewise.
25577         (vqtbl1q_u8): Likewise.
25578         (vtbl1_s8): Likewise.
25579         (vtbl1_u8): Likewise.
25580         (vtbl1_p8): Likewise.
25581         (vtbl2_s8): Likewise.
25582         (vtbl2_u8): Likewise.
25583         (vtbl2_p8): Likewise.
25585 2021-04-28  Jonathan Wright  <jonathan.wright@arm.com>
25587         * config/aarch64/aarch64-simd-builtins.def: Add polynomial
25588         ssri_n buitin generator macro.
25589         * config/aarch64/arm_neon.h (vsri_n_p8): Use RTL builtin
25590         instead of inline asm.
25591         (vsri_n_p16): Likewise.
25592         (vsri_n_p64): Likewise.
25593         (vsriq_n_p8): Likewise.
25594         (vsriq_n_p16): Likewise.
25595         (vsriq_n_p64): Likewise.
25597 2021-04-28  Jonathan Wright  <jonathan.wright@arm.com>
25599         * config/aarch64/aarch64-simd-builtins.def: Use VALLP mode
25600         iterator for polynomial ssli_n builtin generator macro.
25601         * config/aarch64/arm_neon.h (vsli_n_p8): Use RTL builtin
25602         instead of inline asm.
25603         (vsli_n_p16): Likewise.
25604         (vsliq_n_p8): Likewise.
25605         (vsliq_n_p16): Likewise.
25606         * config/aarch64/iterators.md: Define VALLP mode iterator.
25608 2021-04-28  Jonathan Wright  <jonathan.wright@arm.com>
25610         * config/aarch64/aarch64-simd-builtins.def: Use VDQV_L
25611         iterator to generate [su]adalp RTL builtins.
25612         * config/aarch64/aarch64-simd.md: Use VDQV_L iterator in
25613         [su]adalp RTL pattern.
25614         * config/aarch64/arm_neon.h (vpadal_s32): Use RTL builtin
25615         instead of inline asm.
25616         (vpadal_u32): Likewise.
25618 2021-04-28  Jonathan Wright  <jonathan.wright@arm.com>
25620         * config/aarch64/aarch64-simd-builtins.def: Add [su]addlp
25621         builtin generator macros.
25622         * config/aarch64/aarch64-simd.md (aarch64_<su>addlp<mode>):
25623         Define.
25624         * config/aarch64/arm_neon.h (vpaddl_s8): Use RTL builtin
25625         instead of inline asm.
25626         (vpaddl_s16): Likewise.
25627         (vpaddl_s32): Likewise.
25628         (vpaddl_u8): Likewise.
25629         (vpaddl_u16): Likewise.
25630         (vpaddl_u32): Likewise.
25631         (vpaddlq_s8): Likewise.
25632         (vpaddlq_s16): Likewise.
25633         (vpaddlq_s32): Likewise.
25634         (vpaddlq_u8): Likewise.
25635         (vpaddlq_u16): Likewise.
25636         (vpaddlq_u32): Liwewise.
25637         * config/aarch64/iterators.md: Define [SU]ADDLP unspecs with
25638         appropriate attributes.
25640 2021-04-28  Jonathan Wright  <jonathan.wright@arm.com>
25642         * config/aarch64/aarch64-simd-builtins.def: Use VDQ_I iterator
25643         for aarch64_addp<mode> builtin macro generator.
25644         * config/aarch64/aarch64-simd.md: Use VDQ_I iterator in
25645         aarch64_addp<mode> RTL pattern.
25646         * config/aarch64/arm_neon.h (vpaddq_s8): Use RTL builtin
25647         instead of inline asm.
25648         (vpaddq_s16): Likewise.
25649         (vpaddq_s32): Likewise.
25650         (vpaddq_s64): Likewise.
25651         (vpaddq_u8): Likewise.
25652         (vpaddq_u16): Likewise.
25653         (vpaddq_u32): Likewise.
25654         (vpaddq_u64): Likewise.
25656 2021-04-28  Jonathan Wright  <jonathan.wright@arm.com>
25658         * config/aarch64/aarch64-simd-builtins.def: Add sq[r]dmulh_n
25659         builtin generator macros.
25660         * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_n<mode>):
25661         Define.
25662         * config/aarch64/arm_neon.h (vqdmulh_n_s16): Use RTL builtin
25663         instead of inline asm.
25664         (vqdmulh_n_s32): Likewise.
25665         (vqdmulhq_n_s16): Likewise.
25666         (vqdmulhq_n_s32): Likewise.
25667         (vqrdmulh_n_s16): Likewise.
25668         (vqrdmulh_n_s32): Likewise.
25669         (vqrdmulhq_n_s16): Likewise.
25670         (vqrdmulhq_n_s32): Likewise.
25672 2021-04-28  Tobias Burnus  <tobias@codesourcery.com>
25674         * doc/install.texi (--enable-offload-defaulted): Document.
25676 2021-04-28  Senthil Kumar Selvaraj  <saaadhu@gcc.gnu.org>
25678         * config/avr/avr-dimode.md: Turn existing patterns into
25679         define_insn_and_split style patterns where the splitter
25680         adds a clobber of the condition code register.  Drop "cc"
25681         attribute.  Add new patterns to match output of
25682         the splitters.
25683         * config/avr/avr-fixed.md: Likewise.
25684         * config/avr/avr.c (cc_reg_rtx): New.
25685         (avr_parallel_insn_from_insns): Adjust insn count
25686         for removal of set of cc0.
25687         (avr_is_casesi_sequence): Likewise.
25688         (avr_casei_sequence_check_operands): Likewise.
25689         (avr_optimize_casesi): Likewise. Also insert
25690         new insns after jump_insn.
25691         (avr_pass_casesi::avr_rest_of_handle_casesi): Adjust
25692         for removal of set of cc0.
25693         (avr_init_expanders): Initialize cc_reg_rtx.
25694         (avr_regno_reg_class): Handle REG_CC.
25695         (cond_string): Remove usage of CC_OVERFLOW_UNUSABLE.
25696         (avr_notice_update_cc): Remove function.
25697         (ret_cond_branch): Remove usage of CC_OVERFLOW_UNUSABLE.
25698         (compare_condition): Adjust for PARALLEL with
25699         REG_CC clobber.
25700         (out_shift_with_cnt): Likewise.
25701         (ashlhi3_out): Likewise.
25702         (ashrhi3_out): Likewise.
25703         (lshrhi3_out): Likewise.
25704         (avr_class_max_nregs): Return single reg for REG_CC.
25705         (avr_compare_pattern): Check for REG_CC instead
25706         of cc0_rtx.
25707         (avr_reorg_remove_redundant_compare): Likewise.
25708         (avr_reorg):Adjust for PARALLEL with REG_CC clobber.
25709         (avr_hard_regno_nregs): Return single reg for REG_CC.
25710         (avr_hard_regno_mode_ok): Allow only CCmode for REG_CC.
25711         (avr_md_asm_adjust): Clobber REG_CC.
25712         (TARGET_HARD_REGNO_NREGS): Define.
25713         (TARGET_CLASS_MAX_NREGS): Define.
25714         (TARGET_MD_ASM_ADJUST): Define.
25715         * config/avr/avr.h (FIRST_PSEUDO_REGISTER): Adjust
25716         for REG_CC.
25717         (enum reg_class): Add CC_REG class.
25718         (NOTICE_UPDATE_CC): Remove.
25719         (CC_OVERFLOW_UNUSABLE): Remove.
25720         (CC_NO_CARRY): Remove.
25721         * config/avr/avr.md: Turn existing patterns into
25722         define_insn_and_split style patterns where the splitter
25723         adds a clobber of the condition code register.  Drop "cc"
25724         attribute.  Add new patterns to match output of
25725         the splitters.
25726         (sez): Remove unused pattern.
25728 2021-04-28  Richard Earnshaw  <rearnsha@arm.com>
25730         PR target/100311
25731         * config/arm/arm.c (arm_hard_regno_mode_ok): Only allow VPR to be
25732         used in HImode.
25734 2021-04-28  Richard Sandiford  <richard.sandiford@arm.com>
25736         PR target/100305
25737         * config/aarch64/constraints.md (Utq): Require the address to
25738         be valid for both the element mode and for V2DImode.
25740 2021-04-28  Jakub Jelinek  <jakub@redhat.com>
25741             Tobias Burnus  <tobias@codesourcery.com>
25743         * configure.ac (OFFLOAD_DEFAULTED): AC_DEFINE if offload-defaulted.
25744         * gcc.c (process_command): New variable.
25745         (driver::maybe_putenv_OFFLOAD_TARGETS): If OFFLOAD_DEFAULTED,
25746         set it if -foffload is defaulted.
25747         * lto-wrapper.c (OFFLOAD_TARGET_DEFAULT_ENV): Define.
25748         (compile_offload_image): If OFFLOAD_DEFAULTED and
25749         OFFLOAD_TARGET_DEFAULT is in the environment, don't fail
25750         if corresponding mkoffload can't be found.
25751         (compile_images_for_offload_targets): Likewise.  Free and clear
25752         offload_names if no valid offload is found.
25753         * config.in: Regenerate.
25754         * configure: Regenerate.
25756 2021-04-28  Richard Biener  <rguenther@suse.de>
25758         PR tree-optimization/100292
25759         * tree-vect-generic.c (expand_vector_condition): Do not fold
25760         the comparisons.
25762 2021-04-27  David Edelsohn  <dje.gcc@gmail.com>
25764         * config/rs6000/aix.h (SUBTARGET_DRIVER_SELF_SPECS): New.
25765         * config/rs6000/aix64.opt (m64): New.
25766         (m32): New.
25768 2021-04-27  Maciej W. Rozycki  <macro@orcam.me.uk>
25770         * config/vax/vax.c (print_operand_address, vax_address_cost_1)
25771         (index_term_p): Handle ASHIFT too.
25773 2021-04-27  Maciej W. Rozycki  <macro@orcam.me.uk>
25775         * config/vax/builtins.md (jbb<ccss>i<mode>): Remove operand #3.
25776         (sync_lock_test_and_set<mode>): Adjust accordingly.
25777         (sync_lock_release<mode>): Likewise.
25779 2021-04-27  Maciej W. Rozycki  <macro@orcam.me.uk>
25781         * config/vax/vax-protos.h (adjacent_operands_p): Remove
25782         prototype.
25783         * config/vax/vax.c (adjacent_operands_p): Remove.
25785 2021-04-27  Maciej W. Rozycki  <macro@linux-mips.org>
25787         * ifcvt.c (dead_or_predicable) [!IFCVT_MODIFY_TESTS]: Fall
25788         through to the non-conditional execution case if getting the
25789         condition for conditional execution has failed.
25791 2021-04-27  Richard Sandiford  <richard.sandiford@arm.com>
25793         PR middle-end/100284
25794         * gimple.c (gimple_could_trap_p_1): Remove VEC_COND_EXPR test.
25795         * tree-eh.c (operation_could_trap_p): Handle VEC_COND_EXPR rather
25796         than asserting on it.
25798 2021-04-27  David Edelsohn  <dje.gcc@gmail.com>
25800         * config/rs6000/rs6000.c (rs6000_aix_precompute_tls_p): Protect
25801         with TARGET_AIX_OS.
25803 2021-04-27  David Edelsohn  <dje.gcc@gmail.com>
25805         PR target/94177
25806         * calls.c (precompute_register_parameters): Additionally test
25807         targetm.precompute_tls_p to pre-compute argument.
25808         * config/rs6000/aix.h (TARGET_PRECOMPUTE_TLS_P): Define.
25809         * config/rs6000/rs6000.c (rs6000_aix_precompute_tls_p): New.
25810         * target.def (precompute_tls_p): New.
25811         * doc/tm.texi.in (TARGET_PRECOMPUTE_TLS_P): Add hook documentation.
25812         * doc/tm.texi: Regenerated.
25814 2021-04-27  Jakub Jelinek  <jakub@redhat.com>
25816         PR target/100200
25817         * config/aarch64/aarch64.c (aarch64_print_operand): Cast -UINTVAL
25818         back to HOST_WIDE_INT.
25820 2021-04-27  Bernd Edlinger  <bernd.edlinger@hotmail.de>
25822         PR target/100106
25823         * simplify-rtx.c (simplify_context::simplify_subreg): Check the
25824         memory alignment for the outer mode.
25826 2021-04-27  H.J. Lu  <hjl.tools@gmail.com>
25828         PR middle-end/90773
25829         * expr.c (op_by_pieces_d::get_usable_mode): New member function.
25830         (op_by_pieces_d::run): Cange a while loop to a do-while loop.
25832 2021-04-27  Alex Coplan  <alex.coplan@arm.com>
25834         PR target/99977
25835         * config/arm/arm.c (arm_split_compare_and_swap): Fix up codegen
25836         with negative immediates: ensure we expand cbranchsi4_scratch
25837         correctly and ensure we satisfy its constraints.
25838         * config/arm/sync.md
25839         (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Don't
25840         attempt to tie two output operands together with constraints;
25841         collapse two alternatives.
25842         (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise.
25843         * config/arm/thumb1.md (cbranchsi4_neg_late): New.
25845 2021-04-27  Jakub Jelinek  <jakub@redhat.com>
25847         PR target/100200
25848         * config/aarch64/predicates.md (aarch64_sub_immediate,
25849         aarch64_plus_immediate): Use -UINTVAL instead of -INTVAL.
25850         * config/aarch64/aarch64.md (casesi, rotl<mode>3): Likewise.
25851         * config/aarch64/aarch64.c (aarch64_print_operand,
25852         aarch64_split_atomic_op, aarch64_expand_subvti): Likewise.
25854 2021-04-27  Jakub Jelinek  <jakub@redhat.com>
25856         PR tree-optimization/100239
25857         * tree-vect-generic.c (lower_vec_perm): Don't accept constant
25858         permutations with all indices from the first zero element as vec_shl.
25860 2021-04-27  Jakub Jelinek  <jakub@redhat.com>
25862         PR rtl-optimization/100254
25863         * cfgcleanup.c (outgoing_edges_match): Check REG_EH_REGION on
25864         last1 and last2 insns rather than BB_END (bb1) and BB_END (bb2) insns.
25866 2021-04-27  Richard Biener  <rguenther@suse.de>
25868         PR tree-optimization/99912
25869         * passes.def: Add comment about new TODO_remove_unused_locals.
25870         * tree-stdarg.c (pass_data_stdarg): Run TODO_remove_unused_locals
25871         at start.
25873 2021-04-27  Richard Biener  <rguenther@suse.de>
25875         PR tree-optimization/99912
25876         * passes.def (pass_all_optimizations): Add pass_dse before
25877         the first pass_dce, move the first pass_dse before the
25878         pass_dce following pass_pre.
25880 2021-04-27  Jakub Jelinek  <jakub@redhat.com>
25882         PR tree-optimization/95527
25883         * generic-match-head.c: Include tm.h.
25884         * gimple-match-head.c: Include tm.h.
25885         * match.pd (CLZ == INTEGER_CST): Don't use
25886         #ifdef CLZ_DEFINED_VALUE_AT_ZERO, only test CLZ_DEFINED_VALUE_AT_ZERO
25887         if clz == CFN_CLZ.  Add missing val declaration.
25888         (CTZ cmp CST): New simplifications.
25890 2021-04-27  Jakub Jelinek  <jakub@redhat.com>
25892         PR tree-optimization/96696
25893         * expr.c (expand_expr_divmod): New function.
25894         (expand_expr_real_2) <case TRUNC_DIV_EXPR>: Use it for truncations and
25895         divisions.  Formatting fixes.
25896         <case MULT_EXPR>: Optimize x / y * y as x - x % y if the latter is
25897         cheaper.
25899 2021-04-27  Martin Jambor  <mjambor@suse.cz>
25901         PR ipa/99951
25902         * ipa-param-manipulation.c (ipa_param_adjustments::modify_call):
25903         If removing a call statement LHS SSA name, release it.
25905 2021-04-27  Richard Earnshaw  <rearnsha@arm.com>
25907         PR target/100236
25908         * config/arm/arm.c (THUMB2_WORK_REGS): Check PIC_OFFSET_TABLE_REGNUM
25909         is valid before including it in the mask.
25911 2021-04-27  Richard Sandiford  <richard.sandiford@arm.com>
25913         PR target/100270
25914         * config/aarch64/aarch64.c (aarch64_comp_type_attributes): Handle
25915         SVE attributes.
25917 2021-04-27  Richard Biener  <rguenther@suse.de>
25919         PR tree-optimization/100051
25920         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Add
25921         disambiguator based on access size vs. decl size.
25923 2021-04-27  Richard Biener  <rguenther@suse.de>
25925         PR tree-optimization/100278
25926         * tree-ssa-pre.c (compute_avail): Give up when we cannot
25927         adjust TBAA beacuse of mismatching bases.
25929 2021-04-27  Jakub Jelinek  <jakub@redhat.com>
25931         PR target/99405
25932         * config/i386/i386.md (*<insn><mode>3_mask, *<insn><mode>3_mask_1):
25933         For any_rotate define_insn_split and following splitters, use
25934         SWI iterator instead of SWI48.
25936 2021-04-27  Richard Biener  <rguenther@suse.de>
25938         PR tree-optimization/99776
25939         * match.pd (bit_field_ref (ctor)): Relax element extract
25940         type compatibility checks.
25942 2021-04-27  Cui,Lili  <lili.cui@intel.com>
25944         * common/config/i386/i386-common.c (processor_names):
25945         Sync processor_names with processor_type.
25946         * config/i386/i386-options.c (processor_cost_table):
25947         Sync processor_cost_table with processor_type.
25949 2021-04-26  Aldy Hernandez  <aldyh@redhat.com>
25951         * value-range.cc (irange::irange_set_1bit_anti_range): Add assert.
25952         (irange::set): Call irange_set_1bit_anti_range for handling all
25953         1-bit ranges.  Fall through on ~[MIN,MAX].
25955 2021-04-26  Aldy Hernandez  <aldyh@redhat.com>
25957         * value-range.cc (irange::legacy_num_pairs): Remove.
25958         (irange::invert): Change gcc_assert to gcc_checking_assert.
25959         * value-range.h (irange::num_pairs): Adjust for a cached
25960         num_pairs().  Also, rename all gcc_assert's to
25961         gcc_checking_assert's.
25963 2021-04-26  Aldy Hernandez  <aldyh@redhat.com>
25965         * value-range.cc (irange::operator=): Set m_kind.
25966         (irange::copy_to_legacy): Handle varying and undefined sources
25967         as a legacy copy since they can be easily copied.
25968         (irange::irange_set): Set m_kind.
25969         (irange::irange_set_anti_range): Same.
25970         (irange::set): Rename normalize_min_max to normalize_kind.
25971         (irange::verify_range): Adjust for multi-ranges having the
25972         m_kind field set.
25973         (irange::irange_union): Set m_kind.
25974         (irange::irange_intersect): Same.
25975         (irange::invert): Same.
25976         * value-range.h (irange::kind): Always return m_kind.
25977         (irange::varying_p): Rename to...
25978         (irange::varying_comptaible_p): ...this.
25979         (irange::undefined_p): Only look at m_kind.
25980         (irange::irange): Always set VR_UNDEFINED if applicable.
25981         (irange::set_undefined): Always set VR_UNDEFINED.
25982         (irange::set_varying): Always set m_kind to VR_VARYING.
25983         (irange::normalize_min_max): Rename to...
25984         (irange::normalize_kind): ...this.
25986 2021-04-26  Aldy Hernandez  <aldyh@redhat.com>
25988         * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::set_ssa_range_info):
25989         Adjust for constant_p including varying_p.
25990         * tree-vrp.c (vrp_prop::finalize): Same.
25991         (determine_value_range): Same.
25992         * vr-values.c (vr_values::range_of_expr): Same.
25993         * value-range.cc (irange::symbolic_p): Do not check varying_p.
25994         (irange::constant_p): Same.
25996 2021-04-26  Aldy Hernandez  <aldyh@redhat.com>
25998         * value-range.cc (irange::legacy_lower_bound): Replace
25999           !undefined_p check with num_ranges > 0.
26000         (irange::legacy_upper_bound): Same.
26001         * value-range.h (irange::type): Same.
26002         (irange::lower_bound): Same.
26003         (irange::upper_bound): Same.
26005 2021-04-26  Richard Biener  <rguenther@suse.de>
26007         PR tree-optimization/99956
26008         * gimple-loop-interchange.cc (compute_access_stride):
26009         Try instantiating the access in a shallower loop nest
26010         if instantiating failed.
26011         (compute_access_strides): Pass adjustable loop_nest
26012         to compute_access_stride.
26014 2021-04-26  Christophe Lyon  <christophe.lyon@linaro.org>
26016         * doc/sourcebuild.texi (arm_cmse_hw): Document.
26018 2021-04-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26020         * config/aarch64/iterators.md (vwcore): Handle V4BF, V8BF.
26022 2021-04-26  Thomas Schwinge  <thomas@codesourcery.com>
26023             Nathan Sidwell  <nathan@codesourcery.com>
26024             Tom de Vries  <vries@codesourcery.com>
26025             Julian Brown  <julian@codesourcery.com>
26026             Kwok Cheung Yeung  <kcy@codesourcery.com>
26028         * omp-offload.c (oacc_validate_dims): Implement
26029         '-Wopenacc-parallelism'.
26030         * doc/invoke.texi (-Wopenacc-parallelism): Document.
26032 2021-04-26  Richard Biener  <rguenther@suse.de>
26034         * tree-cfg.h (gimplify_build1): Remove.
26035         (gimplify_build2): Likewise.
26036         (gimplify_build3): Likewise.
26037         * tree-cfg.c (gimplify_build1): Move to tree-vect-generic.c.
26038         (gimplify_build2): Likewise.
26039         (gimplify_build3): Likewise.
26040         * tree-vect-generic.c (gimplify_build1): Move from tree-cfg.c.
26041         Modernize.
26042         (gimplify_build2): Likewise.
26043         (gimplify_build3): Likewise.
26044         (tree_vec_extract): Use resimplify with following SSA edges.
26045         (expand_vector_parallel): Avoid passing NULL size/bitpos
26046         to tree_vec_extract.
26047         * expr.c (store_constructor): Deal with zero-element CTORs.
26048         * match.pd (bit_field_ref <vector CTOR>): Make sure to
26049         produce vector constants when possible.
26051 2021-04-26  Richard Biener  <rguenther@suse.de>
26053         * tree-complex.c: Include gimple-fold.h.
26054         (expand_complex_addition): Use gimple_build.
26055         (expand_complex_multiplication_components): Likewise.
26056         (expand_complex_multiplication): Likewise.
26057         (expand_complex_div_straight): Likewise.
26058         (expand_complex_div_wide): Likewise.
26059         (expand_complex_division): Likewise.
26060         (expand_complex_conjugate): Likewise.
26061         (expand_complex_comparison): Likewise.
26063 2021-04-26  Richard Biener  <rguenther@suse.de>
26065         * tree-ssa-phiopt.c (two_value_replacement): Remove use
26066         of legacy gimplify_buildN API.
26068 2021-04-26  Richard Biener  <rguenther@suse.de>
26070         PR tree-optimization/99473
26071         * tree-ssa-phiopt.c (cond_store_replacement): Handle all
26072         stores.
26074 2021-04-26  Richard Biener  <rguenther@suse.de>
26076         * config/rs6000/rs6000-call.c (rs6000_gimple_fold_builtin):
26077         Use replace_call_with_value.
26079 2021-04-26  Richard Biener  <rguenther@suse.de>
26081         * tree-ssa-propagate.h (valid_gimple_rhs_p): Remove.
26082         (update_gimple_call): Likewise.
26083         (update_call_from_tree): Likewise.
26084         * tree-ssa-propagate.c (valid_gimple_rhs_p): Remove.
26085         (valid_gimple_call_p): Likewise.
26086         (move_ssa_defining_stmt_for_defs): Likewise.
26087         (finish_update_gimple_call): Likewise.
26088         (update_gimple_call): Likewise.
26089         (update_call_from_tree): Likewise.
26090         (propagate_tree_value_into_stmt): Use replace_call_with_value.
26091         * gimple-fold.h (update_gimple_call): Declare.
26092         * gimple-fold.c (valid_gimple_rhs_p): Move here from
26093         tree-ssa-propagate.c.
26094         (update_gimple_call): Likewise.
26095         (valid_gimple_call_p): Likewise.
26096         (finish_update_gimple_call): Likewise, and simplify.
26097         (gimplify_and_update_call_from_tree): Implement
26098         update_call_from_tree functionality, avoid excessive
26099         push/pop_gimplify_context.
26100         (gimple_fold_builtin): Use only gimplify_and_update_call_from_tree.
26101         (gimple_fold_call): Likewise.
26102         * gimple-ssa-sprintf.c (try_substitute_return_value): Likewise.
26103         * tree-ssa-ccp.c (ccp_folder::fold_stmt): Likewise.
26104         (pass_fold_builtins::execute): Likewise.
26105         (optimize_stack_restore): Use replace_call_with_value.
26106         * tree-cfg.c (fold_loop_internal_call): Likewise.
26107         * tree-ssa-dce.c (maybe_optimize_arith_overflow): Use
26108         only gimplify_and_update_call_from_tree.
26109         * tree-ssa-strlen.c (handle_builtin_strlen): Likewise.
26110         (handle_builtin_strchr): Likewise.
26111         * tsan.c: Include gimple-fold.h instead of tree-ssa-propagate.h.
26113 2021-04-26  Jakub Jelinek  <jakub@redhat.com>
26115         PR debug/100255
26116         * vmsdbgout.c (ASM_OUTPUT_DEBUG_STRING, vmsdbgout_begin_block,
26117         vmsdbgout_end_block, lookup_filename, vmsdbgout_source_line): Remove
26118         register keywords.
26120 2021-04-25  liuhongt  <hongtao.liu@intel.com>
26122         PR target/98911
26123         * config/i386/i386-builtin.def (BDESC): Change the icode of
26124         the following builtins to CODE_FOR_nothing.
26125         * config/i386/i386.c (ix86_gimple_fold_builtin): Fold
26126         IX86_BUILTIN_PCMPEQB128, IX86_BUILTIN_PCMPEQW128,
26127         IX86_BUILTIN_PCMPEQD128, IX86_BUILTIN_PCMPEQQ,
26128         IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
26129         IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
26130         IX86_BUILTIN_PCMPGTB128, IX86_BUILTIN_PCMPGTW128,
26131         IX86_BUILTIN_PCMPGTD128, IX86_BUILTIN_PCMPGTQ,
26132         IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
26133         IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256.
26134         * config/i386/sse.md (avx2_eq<mode>3): Deleted.
26135         (sse2_eq<mode>3): Ditto.
26136         (sse4_1_eqv2di3): Ditto.
26137         (sse2_gt<mode>3): Rename to ..
26138         (*sse2_gt<mode>3): .. this.
26140 2021-04-24  Iain Sandoe  <iain@sandoe.co.uk>
26142         Revert:
26143         2021-04-24  Iain Sandoe  <iain@sandoe.co.uk>
26145         PR target/100152
26146         * config/darwin.c (darwin_binds_local_p): Assume that any
26147         public symbol might be interposed for PIC code. Update function
26148         header comment to reflect current Darwin capability.
26150 2021-04-24  Iain Sandoe  <iain@sandoe.co.uk>
26152         PR target/100152
26153         * config/darwin.c (darwin_binds_local_p): Assume that any
26154         public symbol might be interposed for PIC code. Update function
26155         header comment to reflect current Darwin capability.
26157 2021-04-24  Richard Sandiford  <richard.sandiford@arm.com>
26159         * doc/sourcebuild.texi: Document no-opts and any-opts target
26160         selectors.
26162 2021-04-23  YiFei Zhu  <zhuyifei1999@gmail.com>
26164         * config/bpf/bpf.h (ASM_OUTPUT_ALIGNED_BSS): Use .type and .lcomm.
26166 2021-04-23  YiFei Zhu  <zhuyifei1999@gmail.com>
26168         * config/bpf/bpf.h (FUNCTION_BOUNDARY): Set to 64.
26170 2021-04-23  Uroš Bizjak  <ubizjak@gmail.com>
26172         PR target/100041
26173         * config/i386/i386-options.c (ix86_option_override_internal):
26174         Error out when -m96bit-long-double is used with 64bit targets.
26175         * config/i386/i386.md (*pushxf_rounded): Remove pattern.
26177 2021-04-23  Martin Liska  <mliska@suse.cz>
26179         * lto-wrapper.c: Remove FIXME about usage of
26180         hardware_concurrency. The function is not on par with
26181         what we have now.
26183 2021-04-23  Uroš Bizjak  <ubizjak@gmail.com>
26185         PR target/100182
26186         * config/i386/sync.md (FILD_ATOMIC/FIST_ATOMIC FP load peephole2):
26187         Copy operand 3 to operand 4.  Use sse_reg_operand
26188         as operand 3 predicate.
26189         (FILD_ATOMIC/FIST_ATOMIC FP load peephole2 with mem blockage): Ditto.
26190         (LDX_ATOMIC/STX_ATOMIC FP load peephole2): Ditto.
26191         (LDX_ATOMIC/LDX_ATOMIC FP load peephole2 with mem blockage): Ditto.
26192         (FILD_ATOMIC/FIST_ATOMIC FP store peephole2):
26193         Copy operand 1 to operand 0.
26194         (FILD_ATOMIC/FIST_ATOMIC FP store peephole2 with mem blockage): Ditto.
26195         (LDX_ATOMIC/STX_ATOMIC FP store peephole2): Ditto.
26196         (LDX_ATOMIC/LDX_ATOMIC FP store peephole2 with mem blockage): Ditto.
26198 2021-04-23  Alex Coplan  <alex.coplan@arm.com>
26200         PR rtl-optimization/100230
26201         * early-remat.c (early_remat::sort_candidates): Use delete[]
26202         instead of delete for array allocated with new[].
26204 2021-04-23  Richard Biener  <rguenther@suse.de>
26206         * genmatch.c (lower_cond): Remove VEC_COND_EXPR special-casing.
26207         (capture_info::capture_info): Likewise.
26208         (capture_info::walk_match): Likewise.
26209         (expr::gen_transform): Likewise.
26210         (dt_simplify::gen_1): Likewise.
26211         * gimple-match-head.c (maybe_resimplify_conditional_op):
26212         Remove VEC_COND_EXPR special-casing.
26213         (gimple_simplify): Likewise.
26214         * gimple.c (gimple_could_trap_p_1): Adjust.
26215         * tree-ssa-pre.c (compute_avail): Allow VEC_COND_EXPR
26216         to participate in PRE.
26218 2021-04-23  Richard Biener  <rguenther@suse.de>
26220         * cfganal.c (connect_infinite_loops_to_exit): First call
26221         add_noreturn_fake_exit_edges.
26222         * ipa-sra.c (process_scan_results): Do not call the now redundant
26223         add_noreturn_fake_exit_edges.
26224         * predict.c (tree_estimate_probability): Likewise.
26225         (rebuild_frequencies): Likewise.
26226         * store-motion.c (one_store_motion_pass): Likewise.
26228 2021-04-23  Richard Biener  <rguenther@suse.de>
26230         PR tree-optimization/100222
26231         * predict.c (pass_profile::execute): Remove redundant call to
26232         mark_irreducible_loops.
26233         (report_predictor_hitrates): Likewise.
26235 2021-04-23  Richard Biener  <rguenther@suse.de>
26237         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
26238         valid_gimple_rhs_p by instead gimplifying to one.
26240 2021-04-23  Richard Biener  <rguenther@suse.de>
26242         PR tree-optimization/99971
26243         * tree-vect-data-refs.c (vect_slp_analyze_node_dependences):
26244         Always use TBAA for loads.
26246 2021-04-23  liuhongt  <hongtao.liu@intel.com>
26248         PR target/100093
26249         * config/i386/i386-options.c (ix86_option_override_internal):
26250         Clear MASK_AVX256_SPLIT_UNALIGNED_LOAD/STORE in x_target_flags
26251         when X86_TUNE_AVX256_UNALIGNED_LOAD/STORE_OPTIMAL is enabled
26252         by target attribute.
26254 2021-04-23  David Edelsohn  <dje.gcc@gmail.com>
26256         * config/rs6000/aix71.h (PREFERRED_DEBUGGING_TYPE): Change to
26257         DWARF2_DEBUG.
26258         * config/rs6000/aix72.h (PREFERRED_DEBUGGING_TYPE): Same.
26260 2021-04-22  David Edelsohn  <dje.gcc@gmail.com>
26262         * config.gcc (powerpc-ibm-aix6.*): Remove.
26263         * config/rs6000/aix61.h: Delete.
26265 2021-04-22  Martin Liska  <mliska@suse.cz>
26267         PR testsuite/100159
26268         PR testsuite/100192
26269         * builtins.c (expand_builtin): Fix typos and missing comments.
26270         * dwarf2out.c (gen_subprogram_die): Likewise.
26271         (gen_struct_or_union_type_die): Likewise.
26273 2021-04-22  Uroš Bizjak  <ubizjak@gmail.com>
26275         PR target/100119
26276         * config/i386/i386-expand.c (ix86_expand_convert_uns_sidf_sse):
26277         Remove the sign with FE_DOWNWARD, where x - x = -0.0.
26279 2021-04-21  Iain Sandoe  <iain@sandoe.co.uk>
26281         * config/i386/darwin.h (TARGET_64BIT): Remove definition
26282         based on TARGET_ISA_64BIT.
26283         (TARGET_64BIT_P): Remove definition based on
26284         TARGET_ISA_64BIT_P().
26286 2021-04-21  Martin Liska  <mliska@suse.cz>
26288         Revert:
26289         2021-04-21  Martin Liska  <mliska@suse.cz>
26291         * lto-wrapper.c (cpuset_popcount): Remove.
26292         (init_num_threads): Remove and use hardware_concurrency.
26294 2021-04-21  Martin Liska  <mliska@suse.cz>
26296         PR jit/98615
26297         * main.c (main): Call toplev::finalize in CHECKING_P mode.
26298         * ipa-modref.c (ipa_modref_c_finalize): summaries are NULL
26299         when incremental LTO linking happens.
26301 2021-04-21  Martin Liska  <mliska@suse.cz>
26303         * lto-wrapper.c (run_gcc): When -flto=jobserver is used, but the
26304         makeserver cannot be detected, then use -flto=N fallback.
26306 2021-04-21  Richard Sandiford  <richard.sandiford@arm.com>
26308         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): When cross-compiling,
26309         default to yes for aarch64-linux-gnu.
26310         * configure: Regenerate.
26312 2021-04-21  Martin Liska  <mliska@suse.cz>
26314         * lto-wrapper.c (cpuset_popcount): Remove.
26315         (init_num_threads): Remove and use hardware_concurrency.
26317 2021-04-21  Martin Liska  <mliska@suse.cz>
26319         * config/i386/i386.c: Remove superfluous || TARGET_MACHO
26320         which remains to be '(... || 0)' and clang complains about it.
26321         * dwarf2out.c (AT_vms_delta): Declare conditionally.
26322         (add_AT_vms_delta): Likewise.
26323         * tree.c (fld_simplified_type): Use rather more common pattern
26324         for disabling of something (#if 0).
26325         (get_tree_code_name): Likewise.
26326         (verify_type_variant): Likewise.
26328 2021-04-21  Martin Liska  <mliska@suse.cz>
26330         * config/i386/i386-expand.c (decide_alignment): Use newly named
26331         macro TARGET_CPU_P.
26332         * config/i386/i386.c (ix86_decompose_address): Likewise.
26333         (ix86_address_cost): Likewise.
26334         (ix86_lea_outperforms): Likewise.
26335         (ix86_avoid_lea_for_addr): Likewise.
26336         (ix86_add_stmt_cost): Likewise.
26337         * config/i386/i386.h (TARGET_*): Remove.
26338         (TARGET_CPU_P): New macro.
26339         * config/i386/i386.md: Use newly named macro TARGET_CPU_P.
26340         * config/i386/x86-tune-sched-atom.c (do_reorder_for_imul): Likewise.
26341         (swap_top_of_ready_list): Likewise.
26342         (ix86_atom_sched_reorder): Likewise.
26343         * config/i386/x86-tune-sched-bd.c (ix86_bd_has_dispatch): Likewise.
26344         * config/i386/x86-tune-sched.c (ix86_adjust_cost): Likewise.
26346 2021-04-21  Martin Liska  <mliska@suse.cz>
26348         * config/i386/i386-options.c (TARGET_EXPLICIT_NO_SAHF_P):
26349         Define.
26350         (SET_TARGET_NO_SAHF): Likewise.
26351         (TARGET_EXPLICIT_PREFETCH_SSE_P): Likewise.
26352         (SET_TARGET_PREFETCH_SSE): Likewise.
26353         (TARGET_EXPLICIT_NO_TUNE_P): Likewise.
26354         (SET_TARGET_NO_TUNE): Likewise.
26355         (TARGET_EXPLICIT_NO_80387_P): Likewise.
26356         (SET_TARGET_NO_80387): Likewise.
26357         (DEF_PTA): New.
26358         * config/i386/i386.h (TARGET_*): Remove.
26359         * opth-gen.awk: Generate new used macros.
26361 2021-04-21  Martin Liska  <mliska@suse.cz>
26363         * config/i386/i386.h (PTA_*): Remove.
26364         (enum pta_flag): New.
26365         (DEF_PTA): Generate PTA_* values from i386-isa.def.
26366         * config/i386/i386-isa.def: New file.
26368 2021-04-21  Alex Coplan  <alex.coplan@arm.com>
26370         PR target/99988
26371         * config/aarch64/aarch64-bti-insert.c (aarch64_bti_j_insn_p): New.
26372         (rest_of_insert_bti): Avoid inserting duplicate bti j insns for
26373         jump table targets.
26375 2021-04-21  H.J. Lu  <hjl.tools@gmail.com>
26377         * config.gcc: Install mwaitintrin.h for i[34567]86-*-* and
26378         x86_64-*-* targets.
26379         * common/config/i386/i386-common.c (OPTION_MASK_ISA2_MWAIT_SET):
26380         New.
26381         (OPTION_MASK_ISA2_MWAIT_UNSET): Likewise.
26382         (ix86_handle_option): Handle -mmwait.
26383         * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
26384         Replace OPTION_MASK_ISA_SSE3 with OPTION_MASK_ISA2_MWAIT on
26385         __builtin_ia32_monitor and __builtin_ia32_mwait.
26386         * config/i386/i386-options.c (isa2_opts): Add -mmwait.
26387         (ix86_valid_target_attribute_inner_p): Likewise.
26388         (ix86_option_override_internal): Enable mwait/monitor
26389         instructions for -msse3.
26390         * config/i386/i386.h (TARGET_MWAIT): New.
26391         (TARGET_MWAIT_P): Likewise.
26392         * config/i386/i386.opt: Add -mmwait.
26393         * config/i386/mwaitintrin.h: New file.
26394         * config/i386/pmmintrin.h: Include <mwaitintrin.h>.
26395         * config/i386/sse.md (sse3_mwait): Replace TARGET_SSE3 with
26396         TARGET_MWAIT.
26397         (@sse3_monitor_<mode>): Likewise.
26398         * config/i386/x86gprintrin.h: Include <mwaitintrin.h>.
26399         * doc/extend.texi: Document mwait target attribute.
26400         * doc/invoke.texi: Document -mmwait.
26402 2021-04-21  Martin Liska  <mliska@suse.cz>
26404         * config/i386/i386-options.c (DEF_ENUM): Remove it.
26405         * config/i386/i386-opts.h (DEF_ENUM): Likewise.
26406         * config/i386/stringop.def (DEF_ENUM): Likewise.
26408 2021-04-21  Martin Liska  <mliska@suse.cz>
26410         * tree-cfg.c (gimple_verify_flow_info): Use qD instead
26411         of print_generic_expr.
26413 2021-04-21  Jakub Jelinek  <jakub@redhat.com>
26415         PR rtl-optimization/100148
26416         * cprop.c (constprop_register): Use next_nondebug_insn instead of
26417         NEXT_INSN.
26419 2021-04-21  Martin Liska  <mliska@suse.cz>
26421         PR ipa/98815
26422         * cgraphunit.c (cgraph_node::analyze): Remove duplicate
26423         free_dominance_info calls.
26425 2021-04-21  Richard Biener  <rguenther@suse.de>
26427         * gimple-fold.c (maybe_fold_reference): Remove is_lhs
26428         parameter (and assume it to be false).
26429         (fold_gimple_assign): Adjust, remove all callers of
26430         maybe_fold_reference calling it with is_lhs true.
26431         (gimple_fold_call): Likewise.
26432         (fold_stmt_1): Likewise.
26434 2021-04-21  Richard Biener  <rguenther@suse.de>
26436         * fold-const.c (pedantic_non_lvalue_loc): Remove.
26437         (fold_binary_loc): Adjust.
26438         (fold_ternary_loc): Likewise.
26440 2021-04-21  Richard Sandiford  <richard.sandiford@arm.com>
26442         PR middle-end/100130
26443         * varasm.c (get_block_for_decl): Make sure that any use of the
26444         retain attribute matches the section's retain flag.
26445         (switch_to_section): Check for retain mismatches even when
26446         changing sections, but do not warn if the given decl is the
26447         section's named.decl.
26448         (output_object_block): Pass the first decl in the block (if any)
26449         to switch_to_section.
26451 2021-04-20  H.J. Lu  <hjl.tools@gmail.com>
26453         * config/i386/i386-c.c (ix86_target_macros_internal): Define
26454         __CRC32__ for -mcrc32.
26455         * config/i386/i386-options.c (ix86_option_override_internal):
26456         Enable crc32 instruction for -msse4.2.
26457         * config/i386/i386.md (sse4_2_crc32<mode>): Remove TARGET_SSE4_2
26458         check.
26459         (sse4_2_crc32di): Likewise.
26460         * config/i386/ia32intrin.h: Use crc32 target option for CRC32
26461         intrinsics.
26463 2021-04-20  Segher Boessenkool  <segher@kernel.crashing.org>
26465         PR target/100108
26466         * config/rs6000/rs6000.c (rs6000_machine_from_flags): Do not consider
26467         OPTION_MASK_ISEL.
26469 2021-04-20  Martin Liska  <mliska@suse.cz>
26471         * doc/invoke.texi: Fix typo.
26472         * params.opt: Likewise.
26474 2021-04-20  Martin Liska  <mliska@suse.cz>
26476         * doc/invoke.texi: Document new param.
26478 2021-04-19  Andrew MacLeod  <amacleod@redhat.com>
26480         PR tree-optimization/100081
26481         * gimple-range-cache.h (ranger_cache): Inherit from gori_compute
26482         rather than gori_compute_cache.
26483         * gimple-range-gori.cc (is_gimple_logical_p): Move to top of file.
26484         (range_def_chain::m_logical_depth): New member.
26485         (range_def_chain::range_def_chain): Initialize m_logical_depth.
26486         (range_def_chain::get_def_chain): Don't build defchains through more
26487         than LOGICAL_LIMIT logical expressions.
26488         * params.opt (param_ranger_logical_depth): New.
26490 2021-04-19  Richard Earnshaw  <rearnsha@arm.com>
26492         PR target/100067
26493         * config/arm/arm.c (arm_configure_build_target): Do not strip
26494         extended FPU/SIMD feature bits from the target ISA when -mfpu
26495         is specified (partial revert of r11-8168).
26497 2021-04-19  Thomas Schwinge  <thomas@codesourcery.com>
26499         * params.opt (-param=openacc-kernels=): Add.
26500         * omp-oacc-kernels-decompose.cc
26501         (pass_omp_oacc_kernels_decompose::gate): Use it.
26502         * doc/invoke.texi (-fopenacc-kernels=@var{mode}): Move...
26503         (--param): ... here, 'openacc-kernels'.
26505 2021-04-19  Martin Liska  <mliska@suse.cz>
26507         PR c/100143
26508         * gengtype.c (finish_root_table): Align function arguments
26509         in between declaration and definition.
26511 2021-04-19  Eric Botcazou  <ebotcazou@adacore.com>
26513         * config/i386/winnt.c (i386_pe_seh_cold_init): Properly deal with
26514         frames larger than the SEH maximum frame size.
26516 2021-04-18  Segher Boessenkool  <segher@kernel.crashing.org>
26518         PR rtl-optimization/99927
26519         * combine.c (distribute_notes) [REG_UNUSED]: If the register already
26520         is dead, just drop it.
26522 2021-04-17  Iain Buclaw  <ibuclaw@gdcproject.org>
26524         PR d/99914
26525         * config/i386/winnt-d.c (TARGET_D_TEMPLATES_ALWAYS_COMDAT): Define.
26526         * doc/tm.texi: Regenerate.
26527         * doc/tm.texi.in (D language and ABI): Add @hook for
26528         TARGET_D_TEMPLATES_ALWAYS_COMDAT.
26530 2021-04-17  Iain Buclaw  <ibuclaw@gdcproject.org>
26532         * config/darwin-d.c (darwin_d_handle_target_object_format): New
26533         function.
26534         (darwin_d_register_target_info): New function.
26535         (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
26536         * config/dragonfly-d.c (dragonfly_d_handle_target_object_format): New
26537         function.
26538         (dragonfly_d_register_target_info): New function.
26539         (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
26540         * config/freebsd-d.c (freebsd_d_handle_target_object_format): New
26541         function.
26542         (freebsd_d_register_target_info): New function.
26543         (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
26544         * config/glibc-d.c (glibc_d_handle_target_object_format): New
26545         function.
26546         (glibc_d_register_target_info): New function.
26547         (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
26548         * config/i386/i386-d.c (ix86_d_handle_target_object_format): New
26549         function.
26550         (ix86_d_register_target_info): Add ix86_d_handle_target_object_format
26551         as handler for objectFormat key.
26552         * config/i386/winnt-d.c (winnt_d_handle_target_object_format): New
26553         function.
26554         (winnt_d_register_target_info): New function.
26555         (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
26556         * config/netbsd-d.c (netbsd_d_handle_target_object_format): New
26557         function.
26558         (netbsd_d_register_target_info): New function.
26559         (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
26560         * config/openbsd-d.c (openbsd_d_handle_target_object_format): New
26561         function.
26562         (openbsd_d_register_target_info): New function.
26563         (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
26564         * config/pa/pa-d.c (pa_d_handle_target_object_format): New function.
26565         (pa_d_register_target_info): Add pa_d_handle_target_object_format as
26566         handler for objectFormat key.
26567         * config/rs6000/rs6000-d.c (rs6000_d_handle_target_object_format): New
26568         function.
26569         (rs6000_d_register_target_info): Add
26570         rs6000_d_handle_target_object_format as handler for objectFormat key.
26571         * config/sol2-d.c (solaris_d_handle_target_object_format): New
26572         function.
26573         (solaris_d_register_target_info): New function.
26574         (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
26576 2021-04-16  Jakub Jelinek  <jakub@redhat.com>
26578         PR target/91710
26579         * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Change
26580         abi_break argument from bool * to unsigned *, store there the pre-GCC 9
26581         alignment.
26582         (aarch64_layout_arg, aarch64_gimplify_va_arg_expr): Adjust callers.
26583         (aarch64_function_arg_regno_p): Likewise.  Only emit -Wpsabi note if
26584         the old and new alignment after applying MIN/MAX to it is different.
26586 2021-04-16  Tamar Christina  <tamar.christina@arm.com>
26588         PR target/100048
26589         * config/aarch64/aarch64-sve.md (@aarch64_sve_trn1_conv<mode>): New.
26590         * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_trn): Use new
26591         TRN optab.
26592         * config/aarch64/iterators.md (UNSPEC_TRN1_CONV): New.
26594 2021-04-16  Bill Schmidt  <wschmidt@linux.ibm.com>
26596         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Revise
26597         this section and its subsections.
26599 2021-04-16  Jakub Jelinek  <jakub@redhat.com>
26601         PR target/100075
26602         * config/aarch64/aarch64.md (*neg_asr_si2_extr, *extrsi5_insn_di): New
26603         define_insn patterns.
26605 2021-04-16  Richard Sandiford  <richard.sandiford@arm.com>
26607         PR rtl-optimization/98689
26608         * reg-notes.def (UNTYPED_CALL): New note.
26609         * combine.c (distribute_notes): Handle it.
26610         * emit-rtl.c (try_split): Likewise.
26611         * rtlanal.c (rtx_properties::try_to_add_insn): Likewise.  Assume
26612         that calls with the note implicitly set all return value registers.
26613         * builtins.c (expand_builtin_apply): Add a REG_UNTYPED_CALL
26614         to untyped_calls.
26616 2021-04-16  Richard Sandiford  <richard.sandiford@arm.com>
26618         PR rtl-optimization/99596
26619         * rtlanal.c (rtx_properties::try_to_add_insn): Don't add global
26620         register accesses for const calls.  Assume that pure functions
26621         can only read from global registers.  Ignore cases in which
26622         the stack pointer has been marked global.
26624 2021-04-16  Jakub Jelinek  <jakub@redhat.com>
26626         PR target/99767
26627         * tree-vect-loop.c (vect_transform_loop): Don't remove just
26628         dead scalar .MASK_LOAD calls, but also dead .COND_* calls - replace
26629         them by their last argument.
26631 2021-04-15  Martin Liska  <mliska@suse.cz>
26633         * doc/invoke.texi: Other params don't use it, remove it.
26635 2021-04-15  Richard Biener  <rguenther@suse.de>
26637         * gimple-builder.h: Add deprecation note.
26639 2021-04-15  Richard Sandiford  <richard.sandiford@arm.com>
26641         PR c++/98852
26642         * attribs.h (restrict_type_identity_attributes_to): Declare.
26643         * attribs.c (restrict_type_identity_attributes_to): New function.
26645 2021-04-15  Richard Sandiford  <richard.sandiford@arm.com>
26647         PR c/98852
26648         * attribs.h (affects_type_identity_attributes): Declare.
26649         * attribs.c (remove_attributes_matching): New function.
26650         (affects_type_identity_attributes): Likewise.
26652 2021-04-15  Jakub Jelinek  <jakub@redhat.com>
26654         PR target/100056
26655         * config/aarch64/aarch64.md (*<LOGICAL:optab>_<SHIFT:optab><mode>3):
26656         Add combine splitters for *<LOGICAL:optab>_ashl<mode>3 with
26657         ZERO_EXTEND, SIGN_EXTEND or AND.
26659 2021-04-14  Richard Sandiford  <richard.sandiford@arm.com>
26661         PR rtl-optimization/99929
26662         * rtl.h (same_vector_encodings_p): New function.
26663         * cse.c (exp_equiv_p): Check that CONST_VECTORs have the same encoding.
26664         * cselib.c (rtx_equal_for_cselib_1): Likewise.
26665         * jump.c (rtx_renumbered_equal_p): Likewise.
26666         * lra-constraints.c (operands_match_p): Likewise.
26667         * reload.c (operands_match_p): Likewise.
26668         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Likewise.
26670 2021-04-14  Richard Sandiford  <richard.sandiford@arm.com>
26672         * print-rtl.c (rtx_writer::print_rtx_operand_codes_E_and_V): Print
26673         more information about variable-length CONST_VECTORs.
26675 2021-04-14  Vladimir N. Makarov  <vmakarov@redhat.com>
26677         PR rtl-optimization/100066
26678         * lra-constraints.c (split_reg): Check paradoxical_subreg_p for
26679         ordered modes when choosing splitting mode for hard reg.
26681 2021-04-14  Richard Sandiford  <richard.sandiford@arm.com>
26683         PR target/99246
26684         * config/aarch64/aarch64.c (aarch64_expand_sve_const_vector_sel):
26685         New function.
26686         (aarch64_expand_sve_const_vector): Use it for nelts_per_pattern==2.
26688 2021-04-14  Andreas Krebbel  <krebbel@linux.ibm.com>
26690         * config/s390/s390-builtins.def (O_M5, O_M12, ...): Add new macros
26691         for mask operand types.
26692         (s390_vec_permi_s64, s390_vec_permi_b64, s390_vec_permi_u64)
26693         (s390_vec_permi_dbl, s390_vpdi): Use the M5 type for the immediate
26694         operand.
26695         (s390_vec_msum_u128, s390_vmslg): Use the M12 type for the
26696         immediate operand.
26697         * config/s390/s390.c (s390_const_operand_ok): Check the new
26698         operand types and generate a list of valid values.
26700 2021-04-14  Iain Buclaw  <ibuclaw@gdcproject.org>
26702         * doc/tm.texi: Regenerate.
26703         * doc/tm.texi.in (D language and ABI): Add @hook for
26704         TARGET_D_REGISTER_OS_TARGET_INFO.
26706 2021-04-14  Iain Buclaw  <ibuclaw@gdcproject.org>
26708         * config/aarch64/aarch64-d.c (aarch64_d_handle_target_float_abi): New
26709         function.
26710         (aarch64_d_register_target_info): New function.
26711         * config/aarch64/aarch64-protos.h (aarch64_d_register_target_info):
26712         Declare.
26713         * config/aarch64/aarch64.h (TARGET_D_REGISTER_CPU_TARGET_INFO):
26714         Define.
26715         * config/arm/arm-d.c (arm_d_handle_target_float_abi): New function.
26716         (arm_d_register_target_info): New function.
26717         * config/arm/arm-protos.h (arm_d_register_target_info): Declare.
26718         * config/arm/arm.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
26719         * config/i386/i386-d.c (ix86_d_handle_target_float_abi): New function.
26720         (ix86_d_register_target_info): New function.
26721         * config/i386/i386-protos.h (ix86_d_register_target_info): Declare.
26722         * config/i386/i386.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
26723         * config/mips/mips-d.c (mips_d_handle_target_float_abi): New function.
26724         (mips_d_register_target_info): New function.
26725         * config/mips/mips-protos.h (mips_d_register_target_info): Declare.
26726         * config/mips/mips.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
26727         * config/pa/pa-d.c (pa_d_handle_target_float_abi): New function.
26728         (pa_d_register_target_info): New function.
26729         * config/pa/pa-protos.h (pa_d_register_target_info): Declare.
26730         * config/pa/pa.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
26731         * config/riscv/riscv-d.c (riscv_d_handle_target_float_abi): New
26732         function.
26733         (riscv_d_register_target_info): New function.
26734         * config/riscv/riscv-protos.h (riscv_d_register_target_info): Declare.
26735         * config/riscv/riscv.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
26736         * config/rs6000/rs6000-d.c (rs6000_d_handle_target_float_abi): New
26737         function.
26738         (rs6000_d_register_target_info): New function.
26739         * config/rs6000/rs6000-protos.h (rs6000_d_register_target_info):
26740         Declare.
26741         * config/rs6000/rs6000.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
26742         * config/s390/s390-d.c (s390_d_handle_target_float_abi): New function.
26743         (s390_d_register_target_info): New function.
26744         * config/s390/s390-protos.h (s390_d_register_target_info): Declare.
26745         * config/s390/s390.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
26746         * config/sparc/sparc-d.c (sparc_d_handle_target_float_abi): New
26747         function.
26748         (sparc_d_register_target_info): New function.
26749         * config/sparc/sparc-protos.h (sparc_d_register_target_info): Declare.
26750         * config/sparc/sparc.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
26751         * doc/tm.texi: Regenerate.
26752         * doc/tm.texi.in (D language and ABI): Add @hook for
26753         TARGET_D_REGISTER_CPU_TARGET_INFO.
26755 2021-04-14  Iain Buclaw  <ibuclaw@gdcproject.org>
26757         * config/i386/i386-d.c (ix86_d_has_stdcall_convention): New function.
26758         * config/i386/i386-protos.h (ix86_d_has_stdcall_convention): Declare.
26759         * config/i386/i386.h (TARGET_D_HAS_STDCALL_CONVENTION): Define.
26760         * doc/tm.texi: Regenerate.
26761         * doc/tm.texi.in (D language and ABI): Add @hook for
26762         TARGET_D_HAS_STDCALL_CONVENTION.
26764 2021-04-14  Richard Biener  <rguenther@suse.de>
26766         * tree-cfg.c (verify_gimple_assign_ternary): Verify that
26767         VEC_COND_EXPRs have a gimple_val condition.
26768         * tree-ssa-propagate.c (valid_gimple_rhs_p): VEC_COND_EXPR
26769         can no longer have a GENERIC condition.
26771 2021-04-14  Richard Earnshaw  <rearnsha@arm.com>
26773         PR target/100067
26774         * config/arm/arm.c (arm_configure_build_target): Strip isa_all_fpbits
26775         from the isa_delta when -mfpu has been used.
26776         (arm_options_perform_arch_sanity_checks): It's the architecture that
26777         lacks an FPU not the processor.
26779 2021-04-13  Richard Biener  <rguenther@suse.de>
26781         PR tree-optimization/100053
26782         * tree-ssa-sccvn.c (vn_nary_op_get_predicated_value): Do
26783         not use optimistic dominance queries for backedges to validate
26784         predicated values.
26785         (dominated_by_p_w_unex): Add parameter to ignore executable
26786         state on backedges.
26787         (rpo_elim::eliminate_avail): Adjust.
26789 2021-04-13  Jakub Jelinek  <jakub@redhat.com>
26791         PR target/100028
26792         * config/aarch64/aarch64.md (*aarch64_bfxil<mode>_extr,
26793         *aarch64_bfxilsi_extrdi): New define_insn patterns.
26795 2021-04-13  Jakub Jelinek  <jakub@redhat.com>
26797         PR target/99648
26798         * simplify-rtx.c (simplify_immed_subreg): For MODE_COMPOSITE_P
26799         outermode, return NULL if the result doesn't encode back to the
26800         original byte sequence.
26801         (simplify_gen_subreg): Don't create SUBREGs from constants to
26802         MODE_COMPOSITE_P outermode.
26804 2021-04-12  Jakub Jelinek  <jakub@redhat.com>
26806         PR rtl-optimization/99905
26807         * combine.c (expand_compound_operation): If pos + len > modewidth,
26808         perform the right shift by pos in inner_mode and then convert to mode,
26809         instead of trying to simplify a shift of rtx with inner_mode by pos
26810         as if it was a shift in mode.
26812 2021-04-12  Jakub Jelinek  <jakub@redhat.com>
26814         PR debug/99830
26815         * combine.c (simplify_and_const_int_1): Don't optimize varop
26816         away if it has side-effects.
26818 2021-04-12  Martin Liska  <mliska@suse.cz>
26820         * doc/extend.texi: Escape @smallexample content.
26822 2021-04-12  Stefan Schulze Frielinghaus  <stefansf@linux.ibm.com>
26824         * config/s390/s390.md ("*movdi_31", "*movdi_64"): Add
26825           alternative in order to load a DFP zero.
26827 2021-04-12  Martin Liska  <mliska@suse.cz>
26829         * doc/extend.texi: Be more precise in documentation
26830         of symver attribute.
26832 2021-04-12  Martin Liska  <mliska@suse.cz>
26834         PR sanitizer/99877
26835         * gimplify.c (gimplify_expr): Right now, we unpoison all
26836         variables before a goto <dest>. We should not do it if we are
26837         in a omp context.
26839 2021-04-12  Cui,Lili  <lili.cui@intel.com>
26841         * common/config/i386/cpuinfo.h (get_intel_cpu): Handle
26842         rocketlake.
26843         * common/config/i386/i386-common.c (processor_names): Add
26844         rocketlake.
26845         (processor_alias_table): Add rocketlake.
26846         * common/config/i386/i386-cpuinfo.h (processor_subtypes): Add
26847         INTEL_COREI7_ROCKETLAKE.
26848         * config.gcc: Add -march=rocketlake.
26849         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
26850         rocketlake.
26851         * config/i386/i386-options.c (m_ROCKETLAKE)  : Define.
26852         (processor_cost_table): Add rocketlake cost.
26853         * config/i386/i386.h (ix86_size_cost) : Define
26854         TARGET_ROCKETLAKE.
26855         (processor_type) : Add PROCESSOR_ROCKETLAKE.
26856         (PTA_ROCKETLAKE): Ditto.
26857         * doc/extend.texi: Add rocketlake.
26858         * doc/invoke.texi: Add rocketlake.
26860 2021-04-12  Cui,Lili  <lili.cui@intel.com>
26862         * config/i386/i386.h (PTA_ALDERLAKE): Change alderlake ISA list.
26863         * config/i386/i386-options.c (m_CORE_AVX2): Add m_ALDERLAKE.
26864         * common/config/i386/cpuinfo.h (get_intel_cpu): Add AlderLake model.
26865         * doc/invoke.texi: Change alderlake ISA list.
26867 2021-04-11  Hafiz Abid Qadeer  <abidh@codesourcery.com>
26869         PR middle-end/98088
26870         * omp-expand.c (expand_oacc_collapse_init): Update condition in
26871         a gcc_assert.
26873 2021-04-10  H.J. Lu  <hjl.tools@gmail.com>
26875         PR target/99744
26876         * config/i386/serializeintrin.h (_serialize): Defined as macro.
26878 2021-04-10  Jakub Jelinek  <jakub@redhat.com>
26880         PR lto/99849
26881         * expr.c (expand_expr_addr_expr_1): Test is_global_var rather than
26882         just TREE_STATIC on COMPOUND_LITERAL_EXPR_DECLs.
26884 2021-04-10  Jakub Jelinek  <jakub@redhat.com>
26886         PR middle-end/99989
26887         * gimple-ssa-warn-alloca.c
26888         (alloca_type_and_limit::alloca_type_and_limit): Initialize limit to
26889         0 with integer precision unconditionally.
26891 2021-04-10  Jakub Jelinek  <jakub@redhat.com>
26893         PR rtl-optimization/98601
26894         * rtlanal.c (rtx_addr_can_trap_p_1): Allow in assert unknown size
26895         not just for BLKmode, but also for VOIDmode.  For STRICT_ALIGNMENT
26896         unaligned_mems handle VOIDmode like BLKmode.
26898 2021-04-10  Jan Hubicka  <hubicka@ucw.cz>
26900         PR lto/99857
26901         * tree.c (free_lang_data_in_decl): Do not release body of
26902         declare_variant_alt.
26904 2021-04-09  Richard Sandiford  <richard.sandiford@arm.com>
26906         * config/aarch64/aarch64.c (aarch64_option_restore): If the
26907         architecture was specified explicitly and the tuning wasn't,
26908         tune for the architecture rather than the configured default CPU.
26910 2021-04-09  Richard Sandiford  <richard.sandiford@arm.com>
26912         * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use X30
26913         as the temporary register.
26915 2021-04-09  Martin Liska  <mliska@suse.cz>
26917         * doc/extend.texi: Move non-target attributes on the top level.
26919 2021-04-09  Martin Liska  <mliska@suse.cz>
26921         * doc/invoke.texi: Document minimum and maximum value of the
26922         argument for both supported compression algorithms.
26924 2021-04-08  David Edelsohn  <dje.gcc@gmail.com>
26926         * config/rs6000/rs6000.c (rs6000_xcoff_select_section): Select
26927         TLS BSS before TLS data.
26928         * config/rs6000/xcoff.h (ASM_OUTPUT_TLS_COMMON): Use .comm.
26930 2021-04-08  Richard Sandiford  <richard.sandiford@arm.com>
26932         * doc/sourcebuild.texi (stdint_types_mbig_endian): Document.
26934 2021-04-08  Richard Sandiford  <richard.sandiford@arm.com>
26936         * match.pd: Extend vec_cond folds to handle shifts.
26938 2021-04-08  Maciej W. Rozycki  <macro@orcam.me.uk>
26940         * config/vax/vax.md: Fix comment for `*bit<mode>' pattern's
26941         peephole.
26943 2021-04-08  Alex Coplan  <alex.coplan@arm.com>
26945         PR target/99647
26946         * config/arm/iterators.md (MVE_vecs): New.
26947         (V_elem): Also handle V2DF.
26948         * config/arm/mve.md (*mve_mov<mode>): Rename to ...
26949         (*mve_vdup<mode>): ... this. Remove second alternative since
26950         vec_duplicate of const_int is not canonical RTL, and we don't
26951         want to match symbol_refs.
26952         (*mve_vec_duplicate<mode>): Delete (pattern is redundant).
26954 2021-04-08  Xionghu Luo  <luoxhu@linux.ibm.com>
26956         * fold-const.c (fold_single_bit_test): Fix typo.
26957         * print-rtl.c (print_rtx_insn_vec): Call print_rtl_single
26958         instead.
26960 2021-04-07  Richard Sandiford  <richard.sandiford@arm.com>
26962         PR tree-optimization/97513
26963         * tree-vect-slp.c (vect_add_slp_permutation): New function,
26964         split out from...
26965         (vectorizable_slp_permutation): ...here.  Detect cases in which
26966         all VEC_PERM_EXPRs are guaranteed to have the same stepped
26967         permute vector and only generate one permute vector for that case.
26968         Extend that case to handle variable-length vectors.
26970 2021-04-07  Richard Sandiford  <richard.sandiford@arm.com>
26972         PR tree-optimization/99873
26973         * tree-vect-slp.c (vect_slp_prefer_store_lanes_p): New function.
26974         (vect_build_slp_instance): Don't split store groups that could
26975         use IFN_STORE_LANES.
26977 2021-04-07  Jakub Jelinek  <jakub@redhat.com>
26979         PR target/99872
26980         * varasm.c (output_constant_pool_contents): Don't strip name encoding
26981         from XSTR (desc->sym, 0) or from label before passing those to
26982         ASM_OUTPUT_DEF.
26984 2021-04-07  Richard Biener  <rguenther@suse.de>
26986         PR tree-optimization/99954
26987         * tree-loop-distribution.c: Include tree-affine.h.
26988         (generate_memcpy_builtin): Try using tree-affine to prove
26989         non-overlap.
26990         (loop_distribution::classify_builtin_ldst): Always classify
26991         as PKIND_MEMMOVE.
26993 2021-04-07  Richard Biener  <rguenther@suse.de>
26995         PR tree-optimization/99947
26996         * tree-vect-loop.c (vectorizable_induction): Pre-allocate
26997         steps vector to avoid pushing elements from the reallocated
26998         vector.
27000 2021-04-07  Richard Biener  <rguenther@suse.de>
27002         * tree-ssa-sccvn.h (print_vn_reference_ops): Declare.
27003         * tree-ssa-pre.c (print_pre_expr): Factor out VN reference operand
27004         printing...
27005         * tree-ssa-sccvn.c (print_vn_reference_ops): ... into this new
27006         function.
27007         (debug_vn_reference_ops): New.
27009 2021-04-07  Bin Cheng  <bin.cheng@linux.alibaba.com>
27011         PR tree-optimization/98736
27012         * tree-loop-distribution.c
27013         * (loop_distribution::bb_top_order_init):
27014         Compute RPO with programing order preserved by calling function
27015         rev_post_order_and_mark_dfs_back_seme.
27017 2021-04-06  Vladimir N. Makarov  <vmakarov@redhat.com>
27019         PR target/99781
27020         * lra-constraints.c (split_reg): Don't check paradoxical_subreg_p.
27021         * lra-lives.c (clear_sparseset_regnos, regnos_in_sparseset_p): New
27022         functions.
27023         (process_bb_lives): Don't update biggest mode of hard reg for
27024         implicit in multi-register group.  Use the new functions for
27025         updating dead_set and unused_set by register notes.
27027 2021-04-06  Xianmiao Qu  <xianmiao_qu@c-sky.com>
27029         * config/csky/csky_pipeline_ck802.md : Use insn reservation name
27030         instead of *.
27032 2021-04-06  H.J. Lu  <hjl.tools@gmail.com>
27034         * config/i386/x86-tune-costs.h (skylake_memcpy): Updated.
27035         (skylake_memset): Likewise.
27036         (skylake_cost): Change CLEAR_RATIO to 17.
27037         * config/i386/x86-tune.def (X86_TUNE_PREFER_KNOWN_REP_MOVSB_STOSB):
27038         Replace m_CANNONLAKE, m_ICELAKE_CLIENT, m_ICELAKE_SERVER,
27039         m_TIGERLAKE and m_SAPPHIRERAPIDS with m_SKYLAKE and m_CORE_AVX512.
27041 2021-04-06  Richard Biener  <rguenther@suse.de>
27043         PR tree-optimization/99880
27044         * tree-vect-loop.c (maybe_set_vectorized_backedge_value): Only
27045         set vectorized defs of relevant PHIs.
27047 2021-04-06  Richard Biener  <rguenther@suse.de>
27049         PR tree-optimization/99924
27050         * tree-vect-slp.c (vect_bb_partition_graph_r): Do not mark
27051         nodes w/o scalar stmts as visited.
27053 2021-04-06  Alex Coplan  <alex.coplan@arm.com>
27055         PR target/99748
27056         * config/arm/arm.c (arm_libcall_uses_aapcs_base): Also use base
27057         PCS for [su]fix_optab.
27059 2021-04-03  Iain Sandoe  <iain@sandoe.co.uk>
27061         * config/darwin.c (machopic_legitimize_pic_address): Check
27062         that the current pic register is one of the hard reg set
27063         before setting liveness.
27065 2021-04-03  Iain Sandoe  <iain@sandoe.co.uk>
27067         * config/darwin.c (machopic_legitimize_pic_address): Fix
27068         whitespace, remove unused code.
27070 2021-04-03  Jakub Jelinek  <jakub@redhat.com>
27072         PR tree-optimization/99882
27073         * gimple-ssa-store-merging.c (bswap_view_convert): Handle val with
27074         pointer type.
27076 2021-04-03  Jakub Jelinek  <jakub@redhat.com>
27078         PR rtl-optimization/99863
27079         * dse.c (replace_read): Drop regs_live argument.  Instead of
27080         regs_live, use store_insn->fixed_regs_live if non-NULL,
27081         otherwise punt if insns sequence clobbers or sets any hard
27082         registers.
27084 2021-04-03  Jakub Jelinek  <jakub@redhat.com>
27086         PR testsuite/98125
27087         * targhooks.h (default_print_patchable_function_entry_1): Declare.
27088         * targhooks.c (default_print_patchable_function_entry_1): New function,
27089         copied from default_print_patchable_function_entry with an added flags
27090         argument.
27091         (default_print_patchable_function_entry): Rewritten into a small
27092         wrapper around default_print_patchable_function_entry_1.
27093         * config/rs6000/rs6000.c (TARGET_ASM_PRINT_PATCHABLE_FUNCTION_ENTRY):
27094         Redefine.
27095         (rs6000_print_patchable_function_entry): New function.
27097 2021-04-02  Eric Botcazou  <ebotcazou@adacore.com>
27099         * doc/invoke.texi (fdelete-dead-exceptions): Minor tweak.
27101 2021-04-01  Jason Merrill  <jason@redhat.com>
27103         PR c++/98481
27104         * common.opt: Document v15 and v16.
27106 2021-04-01  Richard Biener  <rguenther@suse.de>
27108         PR tree-optimization/99863
27109         * gimplify.c (gimplify_init_constructor): Recompute vector
27110         constructor flags.
27112 2021-04-01  Jakub Jelinek  <jakub@redhat.com>
27114         * doc/extend.texi (symver attribute): Fix up syntax errors
27115         in the examples.
27117 2021-04-01  Jakub Jelinek  <jakub@redhat.com>
27119         PR tree-optimization/96573
27120         * gimple-ssa-store-merging.c (init_symbolic_number): Handle
27121         also pointer types.
27123 2021-04-01  Richard Biener  <rguenther@suse.de>
27125         PR tree-optimization/99856
27126         * tree-vect-patterns.c (vect_recog_over_widening_pattern): Promote
27127         precision to vector element precision.
27129 2021-04-01  Martin Jambor  <mjambor@suse.cz>
27131         PR tree-optimization/97009
27132         * tree-sra.c (access_or_its_child_written): New function.
27133         (propagate_subaccesses_from_rhs): Use it instead of a simple grp_write
27134         test.
27136 2021-03-31  Jan Hubicka  <hubicka@ucw.cz>
27138         PR ipa/98265
27139         * cif-code.def (USES_COMDAT_LOCAL): Make CIF_FINAL_NORMAL.
27141 2021-03-31  Pat Haugen  <pthaugen@linux.ibm.com>
27143         PR target/99133
27144         * config/rs6000/altivec.md (xxspltiw_v4si, xxspltiw_v4sf_inst,
27145         xxspltidp_v2df_inst, xxsplti32dx_v4si_inst, xxsplti32dx_v4sf_inst,
27146         xxblend_<mode>, xxpermx_inst, xxeval): Mark prefixed.
27147         * config/rs6000/mma.md (mma_<vvi4i4i8>, mma_<avvi4i4i8>,
27148         mma_<vvi4i4i2>, mma_<avvi4i4i2>, mma_<vvi4i4>, mma_<avvi4i4>,
27149         mma_<pvi4i2>, mma_<apvi4i2>, mma_<vvi4i4i4>, mma_<avvi4i4i4>):
27150         Likewise.
27151         * config/rs6000/rs6000.c (rs6000_final_prescan_insn): Adjust test.
27152         * config/rs6000/rs6000.md (define_attr "maybe_prefixed"): New.
27153         (define_attr "prefixed"): Update initializer.
27155 2021-03-31  Jakub Jelinek  <jakub@redhat.com>
27157         PR debug/99490
27158         * dwarf2out.c (debug_ranges_dwo_section): New variable.
27159         (DW_RANGES_IDX_SKELETON): Define.
27160         (struct dw_ranges): Add begin_entry and end_entry members.
27161         (DEBUG_DWO_RNGLISTS_SECTION): Define.
27162         (add_ranges_num): Adjust r initializer for addition of *_entry
27163         members.
27164         (add_ranges_by_labels): For -gsplit-dwarf and force_direct,
27165         set idx to DW_RANGES_IDX_SKELETON.
27166         (use_distinct_base_address_for_range): New function.
27167         (index_rnglists): Don't set r->idx if it is equal to
27168         DW_RANGES_IDX_SKELETON.  Initialize r->begin_entry and
27169         r->end_entry for -gsplit-dwarf if those will be needed by
27170         output_rnglists.
27171         (output_rnglists): Add DWO argument.  If true, switch to
27172         debug_ranges_dwo_section rather than debug_ranges_section.
27173         Adjust l1/l2 label indexes.  Only output the offset table when
27174         dwo is true and don't include in there the skeleton range
27175         entry if present.  For -gsplit-dwarf, skip ranges that belong
27176         to the other rnglists section.  Change return type from void
27177         to bool and return true if there are any range entries for
27178         the other section.  For dwarf_split_debug_info use
27179         DW_RLE_startx_endx, DW_RLE_startx_length and DW_RLE_base_addressx
27180         entries instead of DW_RLE_start_end, DW_RLE_start_length and
27181         DW_RLE_base_address.  Use use_distinct_base_address_for_range.
27182         (init_sections_and_labels): Initialize debug_ranges_dwo_section
27183         if -gsplit-dwarf and DWARF >= 5.  Adjust ranges_section_label
27184         and range_base_label indexes.
27185         (dwarf2out_finish): Call index_rnglists earlier before finalizing
27186         .debug_addr.  Never emit DW_AT_rnglists_base attribute.  For
27187         -gsplit-dwarf and DWARF >= 5 call output_rnglists up to twice
27188         with different dwo arguments.
27189         (dwarf2out_c_finalize): Clear debug_ranges_dwo_section.
27191 2021-03-31  Richard Sandiford  <richard.sandiford@arm.com>
27193         PR tree-optimization/98268
27194         * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Call
27195         recompute_tree_invariant_for_addr_expr after successfully
27196         folding a TARGET_MEM_REF that occurs inside an ADDR_EXPR.
27198 2021-03-31  Richard Sandiford  <richard.sandiford@arm.com>
27200         PR tree-optimization/99726
27201         * tree-data-ref.c (create_intersect_range_checks_index): Bail
27202         out if there is more than one access function SCEV for the loop
27203         being versioned.
27205 2021-03-31  Richard Sandiford  <richard.sandiford@arm.com>
27207         PR rtl-optimization/97141
27208         PR rtl-optimization/98726
27209         * emit-rtl.c (valid_for_const_vector_p): Return true for
27210         CONST_POLY_INT_P.
27211         * rtx-vector-builder.h (rtx_vector_builder::step): Return a
27212         poly_wide_int instead of a wide_int.
27213         (rtx_vector_builder::apply_set): Take a poly_wide_int instead
27214         of a wide_int.
27215         * rtx-vector-builder.c (rtx_vector_builder::apply_set): Likewise.
27216         * config/aarch64/aarch64.c (aarch64_legitimate_constant_p): Return
27217         false for CONST_VECTORs that cannot be forced to memory.
27218         * config/aarch64/aarch64-simd.md (mov<mode>): If a CONST_VECTOR
27219         is too complex to force to memory, build it up from individual
27220         elements instead.
27222 2021-03-31  Jan Hubicka  <jh@suse.cz>
27224         PR lto/99447
27225         * cgraph.c (cgraph_node::release_body): Fix overactive check.
27227 2021-03-31  Christophe Lyon  <christophe.lyon@linaro.org>
27229         PR target/99786
27230         * config/arm/vec-common.md (mul<mode>3): Disable on iwMMXT, expect
27231         for V4HI and V2SI.
27233 2021-03-31  H.J. Lu  <hjl.tools@gmail.com>
27235         * config/i386/i386-expand.c (expand_set_or_cpymem_via_rep):
27236         For TARGET_PREFER_KNOWN_REP_MOVSB_STOSB, don't convert QImode
27237         to SImode.
27238         (decide_alg): For TARGET_PREFER_KNOWN_REP_MOVSB_STOSB, use
27239         "rep movsb/stosb" only for known sizes.
27240         * config/i386/i386-options.c (processor_cost_table): Use Ice
27241         Lake cost for Cannon Lake, Ice Lake, Tiger Lake, Sapphire
27242         Rapids and Alder Lake.
27243         * config/i386/i386.h (TARGET_PREFER_KNOWN_REP_MOVSB_STOSB): New.
27244         * config/i386/x86-tune-costs.h (icelake_memcpy): New.
27245         (icelake_memset): Likewise.
27246         (icelake_cost): Likewise.
27247         * config/i386/x86-tune.def (X86_TUNE_PREFER_KNOWN_REP_MOVSB_STOSB):
27248         New.
27250 2021-03-31  Richard Sandiford  <richard.sandiford@arm.com>
27252         PR target/98119
27253         * config/aarch64/aarch64.c
27254         (aarch64_vectorize_preferred_vector_alignment): Query the size
27255         of the provided SVE vector; do not assume that all SVE vectors
27256         have the same size.
27258 2021-03-31  Jan Hubicka  <jh@suse.cz>
27260         PR lto/99447
27261         * cgraph.c (cgraph_node::release_body): Remove all callers and
27262         references.
27263         * cgraphclones.c (cgraph_node::materialize_clone): Do not do it here.
27264         * cgraphunit.c (cgraph_node::expand): And here.
27266 2021-03-31  Martin Liska  <mliska@suse.cz>
27268         * ipa-modref.c (analyze_ssa_name_flags): Fix coding style
27269         and one negated condition.
27271 2021-03-31  Jakub Jelinek  <jakub@redhat.com>
27272             Richard Sandiford  <richard.sandiford@arm.com>
27274         PR target/99813
27275         * config/aarch64/aarch64.md (*add<mode>3_poly_1): Swap Uai and Uav
27276         constraints on operands[2] and similarly 0 and rk constraints
27277         on operands[1] corresponding to that.
27279 2021-03-31  Jakub Jelinek  <jakub@redhat.com>
27281         PR bootstrap/98860
27282         * configure.ac (HAVE_LD_BROKEN_PE_DWARF5): New AC_DEFINE if PECOFF
27283         linker doesn't support DWARF sections new in DWARF5.
27284         * config/i386/i386-options.c (ix86_option_override_internal): Default
27285         to dwarf_version 4 if HAVE_LD_BROKEN_PE_DWARF5 for TARGET_PECOFF
27286         targets.
27287         * config.in: Regenerated.
27288         * configure: Regenerated.
27290 2021-03-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27292         PR target/99820
27293         * config/aarch64/aarch64.c (aarch64_analyze_loop_vinfo): Check for
27294         available issue_info before using it.
27296 2021-03-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27298         PR target/99822
27299         * config/aarch64/aarch64.md (sub<mode>3_compare1_imm): Do not allow zero
27300         in operand 1.
27302 2021-03-30  Xionghu Luo  <luoxhu@linux.ibm.com>
27304         PR target/99718
27305         * config/rs6000/altivec.md (altivec_lvsl_reg): Change to ...
27306         (altivec_lvsl_reg_<mode>): ... this.
27307         (altivec_lvsr_reg): Change to ...
27308         (altivec_lvsr_reg_<mode>): ... this.
27309         * config/rs6000/predicates.md (vec_set_index_operand): New.
27310         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
27311         Enable 32bit variable vec_insert for all TARGET_VSX.
27312         * config/rs6000/rs6000.c (rs6000_expand_vector_set_var_p9):
27313         Enable 32bit variable vec_insert for p9 and above.
27314         (rs6000_expand_vector_set_var_p8): Rename to ...
27315         (rs6000_expand_vector_set_var_p7): ... this.
27316         (rs6000_expand_vector_set): Use TARGET_VSX and adjust assert
27317         position.
27318         * config/rs6000/vector.md (vec_set<mode>): Use vec_set_index_operand.
27319         * config/rs6000/vsx.md (xl_len_r): Use gen_altivec_lvsl_reg_di and
27320         gen_altivec_lvsr_reg_di.
27322 2021-03-30  H.J. Lu  <hjl.tools@gmail.com>
27324         PR target/99744
27325         * config/i386/ia32intrin.h (__rdtsc): Defined as macro.
27326         (__rdtscp): Likewise.
27328 2021-03-30  Tamar Christina  <tamar.christina@arm.com>
27330         PR tree-optimization/99825
27331         * tree-vect-slp-patterns.c (vect_check_evenodd_blend):
27332         Reject non-mult 2 lanes.
27334 2021-03-30  Richard Earnshaw  <rearnsha@arm.com>
27336         PR target/99773
27337         * config/arm/arm.c (arm_file_start): Fix emission of
27338         Tag_ABI_VFP_args attribute.
27340 2021-03-30  Richard Biener  <rguenther@suse.de>
27342         PR tree-optimization/99824
27343         * stor-layout.c (set_min_and_max_values_for_integral_type):
27344         Assert the precision is within the bounds of
27345         WIDE_INT_MAX_PRECISION.
27346         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use
27347         the outermost component ref only to lower the access size
27348         and initialize that from the access type.
27350 2021-03-30  Richard Sandiford  <richard.sandiford@arm.com>
27352         PR target/98136
27353         * config/aarch64/aarch64.md (mov<mode>): Pass multi-instruction
27354         CONST_INTs to aarch64_expand_mov_immediate when called after RA.
27356 2021-03-30  Mihailo Stojanovic  <mihailo.stojanovic@typhoon-hil.com>
27358         * config/aarch64/aarch64.md
27359         (<optab>_trunc<fcvt_target><GPI:mode>2): Set the "arch"
27360         attribute to disambiguate between SIMD and FP variants of the
27361         instruction.
27363 2021-03-29  Jan Hubicka  <hubicka@ucw.cz>
27365         * ipa-modref.c (merge_call_lhs_flags): Correct handling of deref.
27366         (analyze_ssa_name_flags): Fix typo in comment.
27368 2021-03-29  Alex Coplan  <alex.coplan@arm.com>
27370         PR target/99216
27371         * config/aarch64/aarch64-sve-builtins.cc
27372         (function_builder::add_function): Add placeholder_p argument, use
27373         placeholder decls if this is set.
27374         (function_builder::add_unique_function): Instead of conditionally adding
27375         direct overloads, unconditionally add either a direct overload or a
27376         placeholder.
27377         (function_builder::add_overloaded_function): Set placeholder_p if we're
27378         using C++ overloads. Use the obstack for string storage instead
27379         of relying on the tree nodes.
27380         (function_builder::add_overloaded_functions): Don't return early for
27381         m_direct_overloads: we need to add placeholders.
27382         * config/aarch64/aarch64-sve-builtins.h
27383         (function_builder::add_function): Add placeholder_p argument.
27385 2021-03-29  Richard Biener  <rguenther@suse.de>
27387         PR tree-optimization/99807
27388         * tree-vect-slp.c (vect_slp_analyze_node_operations_1): Move
27389         assert below VEC_PERM handling.
27391 2021-03-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27393         PR target/99037
27394         * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): Use
27395         aarch64_simd_or_scalar_imm_zero to match zeroes.  Remove pattern
27396         matching const_int 0.
27397         (move_lo_quad_internal_be_<mode>): Likewise.
27398         (move_lo_quad_<mode>): Update for the above.
27399         * config/aarch64/iterators.md (VQ_2E): Delete.
27401 2021-03-29  Jakub Jelinek  <jakub@redhat.com>
27403         PR tree-optimization/99777
27404         * fold-const.c (extract_muldiv_1): For conversions, punt on casts from
27405         types other than scalar integral types.
27407 2021-03-28  David Edelsohn  <dje.gcc@gmail.com>
27409         * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Do not add
27410         XCOFF TLS reloc decorations.
27412 2021-03-28  Gerald Pfeifer  <gerald@pfeifer.com>
27414         * doc/analyzer.texi (Analyzer Internals): Update link to
27415         "A Memory Model for Static Analysis of C Programs".
27417 2021-03-26  David Edelsohn  <dje.gcc@gmail.com>
27419         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Call function.
27420         * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align):
27421         Declare.
27422         * config/rs6000/rs6000.c (rs6000_special_adjust_field_align): New.
27423         (rs6000_special_round_type_align): Recursively check innermost first
27424         field.
27426 2021-03-26  Jakub Jelinek  <jakub@redhat.com>
27428         PR debug/99334
27429         * dwarf2out.h (struct dw_fde_node): Add rule18 member.
27430         * dwarf2cfi.c (dwarf2out_frame_debug_expr): When handling (set hfp sp)
27431         assignment with drap_reg active, queue reg save for hfp with offset 0
27432         and flush queued reg saves.  When handling a push with rule18,
27433         defer queueing reg save for hfp and just assert the offset is 0.
27434         (scan_trace): Assert that fde->rule18 is false.
27436 2021-03-26  Vladimir Makarov  <vmakarov@redhat.com>
27438         PR target/99766
27439         * ira-costs.c (record_reg_classes): Put case with
27440         CT_RELAXED_MEMORY adjacent to one with CT_MEMORY.
27441         * ira.c (ira_setup_alts): Ditto.
27442         * lra-constraints.c (process_alt_operands): Ditto.
27443         * recog.c (asm_operand_ok): Ditto.
27444         * reload.c (find_reloads): Ditto.
27446 2021-03-26  Richard Sandiford  <richard.sandiford@arm.com>
27448         * config/aarch64/aarch64-protos.h
27449         (cpu_addrcost_table::post_modify_ld3_st3): New member variable.
27450         (cpu_addrcost_table::post_modify_ld4_st4): Likewise.
27451         * config/aarch64/aarch64.c (generic_addrcost_table): Update
27452         accordingly, using the same costs as for post_modify.
27453         (exynosm1_addrcost_table, xgene1_addrcost_table): Likewise.
27454         (thunderx2t99_addrcost_table, thunderx3t110_addrcost_table):
27455         (tsv110_addrcost_table, qdf24xx_addrcost_table): Likewise.
27456         (a64fx_addrcost_table): Likewise.
27457         (neoversev1_addrcost_table): New.
27458         (neoversev1_tunings): Use neoversev1_addrcost_table.
27459         (aarch64_address_cost): Use the new post_modify costs for CImode
27460         and XImode.
27462 2021-03-26  Richard Sandiford  <richard.sandiford@arm.com>
27464         * config/aarch64/aarch64.opt
27465         (-param=aarch64-loop-vect-issue-rate-niters=): New parameter.
27466         * doc/invoke.texi: Document it.
27467         * config/aarch64/aarch64-protos.h (aarch64_base_vec_issue_info)
27468         (aarch64_scalar_vec_issue_info, aarch64_simd_vec_issue_info)
27469         (aarch64_advsimd_vec_issue_info, aarch64_sve_vec_issue_info)
27470         (aarch64_vec_issue_info): New structures.
27471         (cpu_vector_cost): Write comments above the variables rather
27472         than to the side.
27473         (cpu_vector_cost::issue_info): New member variable.
27474         * config/aarch64/aarch64.c: Include gimple-pretty-print.h
27475         and tree-ssa-loop-niter.h.
27476         (generic_vector_cost, a64fx_vector_cost, qdf24xx_vector_cost)
27477         (thunderx_vector_cost, tsv110_vector_cost, cortexa57_vector_cost)
27478         (exynosm1_vector_cost, xgene1_vector_cost, thunderx2t99_vector_cost)
27479         (thunderx3t110_vector_cost): Initialize issue_info to null.
27480         (neoversev1_scalar_issue_info, neoversev1_advsimd_issue_info)
27481         (neoversev1_sve_issue_info, neoversev1_vec_issue_info): New structures.
27482         (neoversev1_vector_cost): Use them.
27483         (aarch64_vec_op_count, aarch64_sve_op_count): New structures.
27484         (aarch64_vector_costs::saw_sve_only_op): New member variable.
27485         (aarch64_vector_costs::num_vector_iterations): Likewise.
27486         (aarch64_vector_costs::scalar_ops): Likewise.
27487         (aarch64_vector_costs::advsimd_ops): Likewise.
27488         (aarch64_vector_costs::sve_ops): Likewise.
27489         (aarch64_vector_costs::seen_loads): Likewise.
27490         (aarch64_simd_vec_costs_for_flags): New function.
27491         (aarch64_analyze_loop_vinfo): Initialize num_vector_iterations.
27492         Count the number of predicate operations required by SVE WHILE
27493         instructions.
27494         (aarch64_comparison_type, aarch64_multiply_add_p): New functions.
27495         (aarch64_sve_only_stmt_p, aarch64_in_loop_reduction_latency): Likewise.
27496         (aarch64_count_ops): Likewise.
27497         (aarch64_add_stmt_cost): Record whether see an SVE operation
27498         that cannot currently be implementing using Advanced SIMD.
27499         Record issue information about the scalar, Advanced SIMD
27500         and (where relevant) SVE versions of a loop.
27501         (aarch64_vec_op_count::dump): New function.
27502         (aarch64_sve_op_count::dump): Likewise.
27503         (aarch64_estimate_min_cycles_per_iter): Likewise.
27504         (aarch64_adjust_body_cost): If issue information is available,
27505         try to compare the issue rates of the various loop implementations
27506         and increase or decrease the vector body cost accordingly.
27508 2021-03-26  Richard Sandiford  <richard.sandiford@arm.com>
27510         * config/aarch64/aarch64.c (aarch64_detect_vector_stmt_subtype):
27511         Assume a zero cost for induction phis.
27513 2021-03-26  Richard Sandiford  <richard.sandiford@arm.com>
27515         * config/aarch64/aarch64.c (aarch64_embedded_comparison_type): New
27516         function.
27517         (aarch64_adjust_stmt_cost): Add the costs of embedded scalar and
27518         vector comparisons.
27520 2021-03-26  Richard Sandiford  <richard.sandiford@arm.com>
27522         * config/aarch64/aarch64.c (aarch64_detect_scalar_stmt_subtype):
27523         New function.
27524         (aarch64_add_stmt_cost): Call it.
27526 2021-03-26  Richard Sandiford  <richard.sandiford@arm.com>
27528         * config/aarch64/aarch64-tuning-flags.def (matched_vector_throughput):
27529         New tuning parameter.
27530         * config/aarch64/aarch64.c (neoversev1_tunings): Use it.
27531         (aarch64_estimated_sve_vq): New function.
27532         (aarch64_vector_costs::analyzed_vinfo): New member variable.
27533         (aarch64_vector_costs::is_loop): Likewise.
27534         (aarch64_vector_costs::unrolled_advsimd_niters): Likewise.
27535         (aarch64_vector_costs::unrolled_advsimd_stmts): Likewise.
27536         (aarch64_record_potential_advsimd_unrolling): New function.
27537         (aarch64_analyze_loop_vinfo, aarch64_analyze_bb_vinfo): Likewise.
27538         (aarch64_add_stmt_cost): Call aarch64_analyze_loop_vinfo or
27539         aarch64_analyze_bb_vinfo on the first use of a costs structure.
27540         Detect whether we're vectorizing a loop for SVE that might be
27541         completely unrolled if it used Advanced SIMD instead.
27542         (aarch64_adjust_body_cost_for_latency): New function.
27543         (aarch64_finish_cost): Call it.
27545 2021-03-26  Richard Sandiford  <richard.sandiford@arm.com>
27547         * config/aarch64/aarch64.c (aarch64_vector_costs): New structure.
27548         (aarch64_init_cost): New function.
27549         (aarch64_add_stmt_cost): Use aarch64_vector_costs instead of
27550         the default unsigned[3].
27551         (aarch64_finish_cost, aarch64_destroy_cost_data): New functions.
27552         (TARGET_VECTORIZE_INIT_COST): Override.
27553         (TARGET_VECTORIZE_FINISH_COST): Likewise.
27554         (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
27556 2021-03-26  Richard Sandiford  <richard.sandiford@arm.com>
27558         * config/aarch64/aarch64.c (neoversev1_advsimd_vector_cost)
27559         (neoversev1_sve_vector_cost): New cost structures.
27560         (neoversev1_vector_cost): Likewise.
27561         (neoversev1_tunings): Use them.  Enable use_new_vector_costs.
27563 2021-03-26  Richard Sandiford  <richard.sandiford@arm.com>
27565         * config/aarch64/aarch64-protos.h
27566         (sve_vec_cost::scatter_store_elt_cost): New member variable.
27567         * config/aarch64/aarch64.c (generic_sve_vector_cost): Update
27568         accordingly, taking the cost from the cost of a scalar_store.
27569         (a64fx_sve_vector_cost): Likewise.
27570         (aarch64_detect_vector_stmt_subtype): Detect scatter stores.
27572 2021-03-26  Richard Sandiford  <richard.sandiford@arm.com>
27574         * config/aarch64/aarch64-protos.h
27575         (simd_vec_cost::store_elt_extra_cost): New member variable.
27576         * config/aarch64/aarch64.c (generic_advsimd_vector_cost): Update
27577         accordingly, using the vec_to_scalar cost for the new field.
27578         (generic_sve_vector_cost, a64fx_advsimd_vector_cost): Likewise.
27579         (a64fx_sve_vector_cost, qdf24xx_advsimd_vector_cost): Likewise.
27580         (thunderx_advsimd_vector_cost, tsv110_advsimd_vector_cost): Likewise.
27581         (cortexa57_advsimd_vector_cost, exynosm1_advsimd_vector_cost)
27582         (xgene1_advsimd_vector_cost, thunderx2t99_advsimd_vector_cost)
27583         (thunderx3t110_advsimd_vector_cost): Likewise.
27584         (aarch64_detect_vector_stmt_subtype): Detect single-element stores.
27586 2021-03-26  Richard Sandiford  <richard.sandiford@arm.com>
27588         * config/aarch64/aarch64-protos.h (simd_vec_cost::ld2_st2_permute_cost)
27589         (simd_vec_cost::ld3_st3_permute_cost): New member variables.
27590         (simd_vec_cost::ld4_st4_permute_cost): Likewise.
27591         * config/aarch64/aarch64.c (generic_advsimd_vector_cost): Update
27592         accordingly, using zero for the new costs.
27593         (generic_sve_vector_cost, a64fx_advsimd_vector_cost): Likewise.
27594         (a64fx_sve_vector_cost, qdf24xx_advsimd_vector_cost): Likewise.
27595         (thunderx_advsimd_vector_cost, tsv110_advsimd_vector_cost): Likewise.
27596         (cortexa57_advsimd_vector_cost, exynosm1_advsimd_vector_cost)
27597         (xgene1_advsimd_vector_cost, thunderx2t99_advsimd_vector_cost)
27598         (thunderx3t110_advsimd_vector_cost): Likewise.
27599         (aarch64_ld234_st234_vectors): New function.
27600         (aarch64_adjust_stmt_cost): Likewise.
27601         (aarch64_add_stmt_cost): Call aarch64_adjust_stmt_cost if using
27602         the new vector costs.
27604 2021-03-26  Richard Sandiford  <richard.sandiford@arm.com>
27606         * config/aarch64/aarch64-protos.h (sve_vec_cost): Turn into a
27607         derived class of simd_vec_cost.  Add information about CLAST[AB]
27608         and FADDA instructions.
27609         * config/aarch64/aarch64.c (generic_sve_vector_cost): Update
27610         accordingly, using the vec_to_scalar costs for the new fields.
27611         (a64fx_sve_vector_cost): Likewise.
27612         (aarch64_reduc_type): New function.
27613         (aarch64_sve_in_loop_reduction_latency): Likewise.
27614         (aarch64_detect_vector_stmt_subtype): Take a vinfo parameter.
27615         Use aarch64_sve_in_loop_reduction_latency to handle SVE reductions
27616         that occur in the loop body.
27617         (aarch64_add_stmt_cost): Update call accordingly.
27619 2021-03-26  Richard Sandiford  <richard.sandiford@arm.com>
27621         * config/aarch64/aarch64-tuning-flags.def (use_new_vector_costs):
27622         New tuning flag.
27623         * config/aarch64/aarch64-protos.h (simd_vec_cost): Put comments
27624         above the fields rather than to the right.
27625         (simd_vec_cost::reduc_i8_cost): New member variable.
27626         (simd_vec_cost::reduc_i16_cost): Likewise.
27627         (simd_vec_cost::reduc_i32_cost): Likewise.
27628         (simd_vec_cost::reduc_i64_cost): Likewise.
27629         (simd_vec_cost::reduc_f16_cost): Likewise.
27630         (simd_vec_cost::reduc_f32_cost): Likewise.
27631         (simd_vec_cost::reduc_f64_cost): Likewise.
27632         * config/aarch64/aarch64.c (generic_advsimd_vector_cost): Update
27633         accordingly, using the vec_to_scalar_cost for the new fields.
27634         (generic_sve_vector_cost, a64fx_advsimd_vector_cost): Likewise.
27635         (a64fx_sve_vector_cost, qdf24xx_advsimd_vector_cost): Likewise.
27636         (thunderx_advsimd_vector_cost, tsv110_advsimd_vector_cost): Likewise.
27637         (cortexa57_advsimd_vector_cost, exynosm1_advsimd_vector_cost)
27638         (xgene1_advsimd_vector_cost, thunderx2t99_advsimd_vector_cost)
27639         (thunderx3t110_advsimd_vector_cost): Likewise.
27640         (aarch64_use_new_vector_costs_p): New function.
27641         (aarch64_simd_vec_costs): New function, split out from...
27642         (aarch64_builtin_vectorization_cost): ...here.
27643         (aarch64_is_reduction): New function.
27644         (aarch64_detect_vector_stmt_subtype): Likewise.
27645         (aarch64_add_stmt_cost): Call aarch64_detect_vector_stmt_subtype if
27646         using the new vector costs.
27648 2021-03-26  Iain Buclaw  <ibuclaw@gdcproject.org>
27650         PR ipa/99466
27651         * tree-emutls.c (get_emutls_init_templ_addr): Mark initializer of weak
27652         TLS declarations as public.
27654 2021-03-26  Iain Buclaw  <ibuclaw@gdcproject.org>
27656         * config/aarch64/aarch64-d.c (IN_TARGET_CODE): Define.
27657         * config/arm/arm-d.c (IN_TARGET_CODE): Likewise.
27658         * config/i386/i386-d.c (IN_TARGET_CODE): Likewise.
27659         * config/mips/mips-d.c (IN_TARGET_CODE): Likewise.
27660         * config/pa/pa-d.c (IN_TARGET_CODE): Likewise.
27661         * config/riscv/riscv-d.c (IN_TARGET_CODE): Likewise.
27662         * config/rs6000/rs6000-d.c (IN_TARGET_CODE): Likewise.
27663         * config/s390/s390-d.c (IN_TARGET_CODE): Likewise.
27664         * config/sparc/sparc-d.c (IN_TARGET_CODE): Likewise.
27666 2021-03-26  Iain Buclaw  <ibuclaw@gdcproject.org>
27668         PR d/91595
27669         * config.gcc (*-*-cygwin*): Add winnt-d.o
27670         (*-*-mingw*): Likewise.
27671         * config/i386/cygwin.h (EXTRA_TARGET_D_OS_VERSIONS): New macro.
27672         * config/i386/mingw32.h (EXTRA_TARGET_D_OS_VERSIONS): Likewise.
27673         * config/i386/t-cygming: Add winnt-d.o.
27674         * config/i386/winnt-d.c: New file.
27676 2021-03-26  Iain Buclaw  <ibuclaw@gdcproject.org>
27678         * config/freebsd-d.c: Include memmodel.h.
27680 2021-03-26  Iain Buclaw  <ibuclaw@gdcproject.org>
27682         PR d/99691
27683         * config.gcc (*-*-openbsd*): Add openbsd-d.o.
27684         * config/t-openbsd: Add openbsd-d.o.
27685         * config/openbsd-d.c: New file.
27687 2021-03-25  Stam Markianos-Wright  <stam.markianos-wright@arm.com>
27689         PR tree-optimization/96974
27690         * tree-vect-stmts.c (vect_get_vector_types_for_stmt): Replace assert
27691         with graceful exit.
27693 2021-03-25  H.J. Lu  <hjl.tools@gmail.com>
27695         Revert:
27696         2021-03-25  H.J. Lu  <hjl.tools@gmail.com>
27698         PR target/98209
27699         PR target/99744
27700         * config/i386/i386.c (ix86_can_inline_p): Don't check ISA for
27701         always_inline in system headers.
27703 2021-03-25  Kewen Lin  <linkw@linux.ibm.com>
27705         * tree-vect-loop.c (vect_model_reduction_cost): Init inside_cost.
27707 2021-03-25  Jakub Jelinek  <jakub@redhat.com>
27709         PR c++/99565
27710         * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF_SAME_FIELD.
27711         * fold-const.c (operand_compare::operand_equal_p): Don't compare
27712         field offsets if OEP_ADDRESS_OF_SAME_FIELD.
27714 2021-03-25  H.J. Lu  <hjl.tools@gmail.com>
27716         PR target/98209
27717         PR target/99744
27718         * config/i386/i386.c (ix86_can_inline_p): Don't check ISA for
27719         always_inline in system headers.
27721 2021-03-25  Richard Biener  <rguenther@suse.de>
27723         PR tree-optimization/99746
27724         * tree-vect-slp-patterns.c (complex_pattern::build): Do not mark
27725         the scalar stmt as patterned.  Instead set up required things
27726         manually.
27728 2021-03-25  Xionghu Luo  <luoxhu@linux.ibm.com>
27730         * config/rs6000/rs6000.c (power8_costs): Change l2 cache
27731         from 256 to 512.
27733 2021-03-24  Martin Liska  <mliska@suse.cz>
27735         PR target/99753
27736         * common/config/i386/i386-common.c (ARRAY_SIZE): Fix off-by-one
27737         error.
27738         * config/i386/i386-options.c (ix86_option_override_internal):
27739         Add run-time assert.
27741 2021-03-24  Martin Jambor  <mjambor@suse.cz>
27743         PR ipa/99122
27744         * ipa-cp.c (initialize_node_lattices): Mark as bottom all
27745         parameters with unknown type.
27746         (ipacp_value_safe_for_type): New function.
27747         (propagate_vals_across_arith_jfunc): Verify that the constant type
27748         can be used for a type of the formal parameter.
27749         (propagate_vals_across_ancestor): Likewise.
27750         (propagate_scalar_across_jump_function): Likewise.  Pass the type
27751         also to propagate_vals_across_ancestor.
27753 2021-03-24  Christophe Lyon  <christophe.lyon@linaro.org>
27755         PR target/99727
27756         * config/arm/mve.md (movmisalign<mode>_mve_store): Use Ux
27757         constraint.
27758         (movmisalign<mode>_mve_load): Likewise.
27760 2021-03-24  Jakub Jelinek  <jakub@redhat.com>
27762         PR target/99724
27763         * config/arm/vec-common.md (one_cmpl<mode>2, neg<mode>2,
27764         movmisalign<mode>): Disable expanders for TARGET_REALLY_IWMMXT.
27766 2021-03-24  Alexandre Oliva  <oliva@adacore.com>
27768         * doc/sourcebuild.texi (sysconf): New effective target.
27770 2021-03-24  Alexandre Oliva  <oliva@adacore.com>
27772         * config/i386/predicates.md (reg_or_const_vec_operand): New.
27773         * config/i386/sse.md (ssse3_pshufbv8qi3): Add an expander for
27774         the now *-prefixed insn_and_split, turn the splitter const vec
27775         into an input for the insn, making it an ignored immediate for
27776         non-split cases, and loaded into the scratch register
27777         otherwise.
27779 2021-03-23  Vladimir N. Makarov  <vmakarov@redhat.com>
27781         PR target/99581
27782         * config/aarch64/constraints.md (Utq, UOb, UOh, UOw, UOd, UOty):
27783         Use define_relaxed_memory_constraint for them.
27785 2021-03-23  Iain Sandoe  <iain@sandoe.co.uk>
27787         PR target/99733
27788         * config/host-darwin.c (darwin_gt_pch_use_address): Add a
27789         colon to the diagnostic message.
27791 2021-03-23  Ilya Leoshkevich  <iii@linux.ibm.com>
27793         * fwprop.c (fwprop_propagation::fwprop_propagation): Look at
27794         set_info's uses.
27795         (try_fwprop_subst_note): Use set_info instead of insn_info.
27796         (try_fwprop_subst_pattern): Likewise.
27797         (try_fwprop_subst_notes): Likewise.
27798         (try_fwprop_subst): Likewise.
27799         (forward_propagate_subreg): Likewise.
27800         (forward_propagate_and_simplify): Likewise.
27801         (forward_propagate_into): Likewise.
27802         * rtl-ssa/accesses.h (set_info::single_nondebug_use) New
27803         method.
27804         (set_info::single_nondebug_insn_use): Likewise.
27805         (set_info::single_phi_use): Likewise.
27806         * rtl-ssa/member-fns.inl (set_info::single_nondebug_use) New
27807         method.
27808         (set_info::single_nondebug_insn_use): Likewise.
27809         (set_info::single_phi_use): Likewise.
27811 2021-03-23  Christophe Lyon  <christophe.lyon@linaro.org>
27813         * doc/sourcebuild.texi (arm_dsp_ok, arm_dsp): Document.
27815 2021-03-23  Jakub Jelinek  <jakub@redhat.com>
27817         PR target/99540
27818         * config/aarch64/aarch64.c (aarch64_add_offset): Tell
27819         expand_mult to perform an unsigned rather than a signed
27820         multiplication.
27822 2021-03-23  H.J. Lu  <hjl.tools@gmail.com>
27824         PR target/99704
27825         * config/i386/cpuid.h (__cpuid): Add __volatile__.
27826         (__cpuid_count): Likewise.
27828 2021-03-23  Richard Biener  <rguenther@suse.de>
27830         PR tree-optimization/99721
27831         * tree-vect-slp.c (vect_slp_analyze_node_operations):
27832         Make sure we can schedule the node.
27834 2021-03-23  Marcus Comstedt  <marcus@mc.pp.se>
27836         * config/riscv/riscv.c (riscv_subword): Take endianness into
27837         account when calculating the byte offset.
27839 2021-03-23  Marcus Comstedt  <marcus@mc.pp.se>
27841         * config/riscv/predicates.md (subreg_lowpart_operator): New predicate
27842         * config/riscv/riscv.md (*addsi3_extended2, *subsi3_extended2)
27843         (*negsi2_extended2, *mulsi3_extended2, *<optab>si3_mask)
27844         (*<optab>si3_mask_1, *<optab>di3_mask, *<optab>di3_mask_1)
27845         (*<optab>si3_extend_mask, *<optab>si3_extend_mask_1): Use
27846         new predicate "subreg_lowpart_operator"
27848 2021-03-23  Marcus Comstedt  <marcus@mc.pp.se>
27850         * config/riscv/riscv.c (riscv_swap_instruction): New function
27851         to byteswap an SImode rtx containing an instruction.
27852         (riscv_trampoline_init): Byteswap the generated instructions
27853         when needed.
27855 2021-03-23  Marcus Comstedt  <marcus@mc.pp.se>
27857         * common/config/riscv/riscv-common.c
27858         (TARGET_DEFAULT_TARGET_FLAGS): Set default endianness.
27859         * config.gcc (riscv32be-*, riscv64be-*): Set
27860         TARGET_BIG_ENDIAN_DEFAULT to 1.
27861         * config/riscv/elf.h (LINK_SPEC): Change -melf* value
27862         depending on default endianness.
27863         * config/riscv/freebsd.h (LINK_SPEC): Likewise.
27864         * config/riscv/linux.h (LINK_SPEC): Likewise.
27865         * config/riscv/riscv.c (TARGET_DEFAULT_TARGET_FLAGS): Set
27866         default endianness.
27867         * config/riscv/riscv.h (DEFAULT_ENDIAN_SPEC): New macro.
27869 2021-03-23  Marcus Comstedt  <marcus@mc.pp.se>
27871         * config/riscv/elf.h (LINK_SPEC): Pass linker endianness flag.
27872         * config/riscv/freebsd.h (LINK_SPEC): Likewise.
27873         * config/riscv/linux.h (LINK_SPEC): Likewise.
27874         * config/riscv/riscv.h (ASM_SPEC): Pass -mbig-endian and
27875         -mlittle-endian.
27876         (BYTES_BIG_ENDIAN): Handle big endian.
27877         (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
27878         * config/riscv/riscv.opt (-mbig-endian, -mlittle-endian): New
27879         options.
27880         * doc/invoke.texi (-mbig-endian, -mlittle-endian): Document.
27882 2021-03-23  Stefan Schulze Frielinghaus  <stefansf@linux.ibm.com>
27884         * regcprop.c (find_oldest_value_reg): Ask target whether
27885           different mode is fine for replacement register.
27887 2021-03-23  Aldy Hernandez  <aldyh@redhat.com>
27889         PR tree-optimization/99296
27890         * value-range.cc (irange::irange_set_1bit_anti_range): New.
27891         (irange::irange_set_anti_range): Call irange_set_1bit_anti_range
27892         * value-range.h (irange::irange_set_1bit_anti_range): New.
27894 2021-03-22  Vladimir N. Makarov  <vmakarov@redhat.com>
27896         PR target/99581
27897         * config/aarch64/constraints.md (UtQ): Use
27898         define_relaxed_memory_constraint for it.
27899         * doc/md.texi (define_relaxed_memory_constraint): Describe it.
27900         * genoutput.c (main): Process DEFINE_RELAXED_MEMORY_CONSTRAINT.
27901         * genpreds.c (constraint_data): Add bitfield is_relaxed_memory.
27902         (have_relaxed_memory_constraints): New static var.
27903         (relaxed_memory_start, relaxed_memory_end): Ditto.
27904         (add_constraint): Add arg is_relaxed_memory.  Check name for
27905         relaxed memory.  Set up is_relaxed_memory in constraint_data and
27906         have_relaxed_memory_constraints.  Adjust calls.
27907         (choose_enum_order): Process relaxed memory.
27908         (write_tm_preds_h): Ditto.
27909         (main): Process DEFINE_RELAXED_MEMORY_CONSTRAINT.
27910         * gensupport.c (process_rtx): Process DEFINE_RELAXED_MEMORY_CONSTRAINT.
27911         * ira-costs.c (record_reg_classes): Process CT_RELAXED_MEMORY.
27912         * ira-lives.c (single_reg_class): Use
27913         insn_extra_relaxed_memory_constraint.
27914         * ira.c (ira_setup_alts): CT_RELAXED_MEMORY.
27915         * lra-constraints.c (valid_address_p): Use
27916         insn_extra_relaxed_memory_constraint instead of other memory
27917         constraints.
27918         (process_alt_operands): Process CT_RELAXED_MEMORY.
27919         (curr_insn_transform): Use insn_extra_relaxed_memory_constraint.
27920         * recog.c (asm_operand_ok, preprocess_constraints): Process
27921         CT_RELAXED_MEMORY.
27922         * reload.c (find_reloads): Ditto.
27923         * rtl.def (DEFINE_RELAXED_MEMORY_CONSTRAINT): New.
27924         * stmt.c (parse_input_constraint): Use
27925         insn_extra_relaxed_memory_constraint.
27927 2021-03-22  Segher Boessenkool  <segher@kernel.crashing.org>
27929         PR target/97926
27930         * ubsan.c (ubsan_instrument_float_cast): Don't test for unordered if
27931         there are no NaNs.
27933 2021-03-22  Alex Coplan  <alex.coplan@arm.com>
27935         PR target/97252
27936         * config/arm/arm-protos.h (neon_make_constant): Add generate
27937         argument to guard emitting insns, default to true.
27938         * config/arm/arm.c (arm_legitimate_constant_p_1): Reject
27939         CONST_VECTORs which neon_make_constant can't handle.
27940         (neon_vdup_constant): Add generate argument, avoid emitting
27941         insns if it's not set.
27942         (neon_make_constant): Plumb new generate argument through.
27943         * config/arm/constraints.md (Ui): New. Use it...
27944         * config/arm/mve.md (*mve_mov<mode>): ... here.
27945         * config/arm/vec-common.md (movv8hf): Use neon_make_constant to
27946         synthesize constants.
27948 2021-03-22  Richard Biener  <rguenther@suse.de>
27950         * debug.h: Add deprecation warning.
27952 2021-03-22  Richard Biener  <rguenther@suse.de>
27954         PR tree-optimization/99694
27955         * tree-ssa-sccvn.c (visit_phi): Ignore edges with the
27956         PHI result.
27958 2021-03-22  Kito Cheng  <kito.cheng@sifive.com>
27960         PR target/99702
27961         * config/riscv/riscv.c (riscv_expand_block_move): Get RTL value
27962         after type checking.
27964 2021-03-22  Jakub Jelinek  <jakub@redhat.com>
27966         PR debug/99562
27967         PR debug/66728
27968         * dwarf2out.c (get_full_len): Use get_precision rather than
27969         min_precision.
27970         (add_const_value_attribute): Make sure add_AT_wide argument has
27971         precision prec rather than some very wide one.
27973 2021-03-22  Kewen Lin  <linkw@linux.ibm.com>
27975         * config/rs6000/rs6000.md (*rotldi3_insert_sf,
27976         *mov<SFDF:mode><SFDF2:mode>cc_p9, floatsi<mode>2_lfiwax,
27977         floatsi<mode>2_lfiwax_mem, floatunssi<mode>2_lfiwzx,
27978         floatunssi<mode>2_lfiwzx_mem, *floatsidf2_internal,
27979         *floatunssidf2_internal, fix_trunc<mode>si2_stfiwx,
27980         fix_trunc<mode>si2_internal, fixuns_trunc<mode>si2_stfiwx,
27981         *round32<mode>2_fprs, *roundu32<mode>2_fprs,
27982         *fix_trunc<mode>si2_internal): Fix empty split condition.
27983         * config/rs6000/vsx.md (*vsx_le_undo_permute_<mode>,
27984         vsx_reduc_<VEC_reduc_name>_v2df, vsx_reduc_<VEC_reduc_name>_v4sf,
27985         *vsx_reduc_<VEC_reduc_name>_v2df_scalar,
27986         *vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Likewise.
27988 2021-03-22  Xionghu Luo  <luoxhu@linux.ibm.com>
27990         PR target/98914
27991         * config/rs6000/rs6000.c (rs6000_expand_vector_set_var_p9):
27992         Convert idx to DImode.
27993         (rs6000_expand_vector_set_var_p8): Likewise.
27995 2021-03-21  Jakub Jelinek  <jakub@redhat.com>
27997         PR debug/99388
27998         * dwarf2out.c (insert_float): Change return type from void to
27999         unsigned, handle GET_MODE_SIZE (mode) == 2 and return element size.
28000         (mem_loc_descriptor, loc_descriptor, add_const_value_attribute):
28001         Adjust callers.
28003 2021-03-20  H.J. Lu  <hjl.tools@gmail.com>
28005         PR target/99679
28006         * config/i386/i386.c (construct_container): Check cfun != NULL
28007         before accessing silent_p.
28009 2021-03-20  Ahamed Husni  <ahamedhusni73@gmail.com>
28011         * asan.c: Fix typos in comments.
28013 2021-03-20  Vladimir N. Makarov  <vmakarov@redhat.com>
28015         PR rtl-optimization/99680
28016         * lra-constraints.c (skip_contraint_modifiers): Rename to skip_constraint_modifiers.
28017         (process_address_1): Check empty constraint before using
28018         CONSTRAINT_LEN.
28020 2021-03-19  Pat Haugen  <pthaugen@linux.ibm.com>
28022         * config/rs6000/rs6000.c (power10_cost): New.
28023         (rs6000_option_override_internal): Set Power10 costs.
28024         (rs6000_issue_rate): Set Power10 issue rate.
28025         * config/rs6000/power10.md: Rewrite for Power10.
28027 2021-03-19  Vladimir N. Makarov  <vmakarov@redhat.com>
28029         PR target/99663
28030         * lra-constraints.c (process_address_1): Don't use unknown
28031         constraint for address constraint.
28033 2021-03-19  Iain Sandoe  <iain@sandoe.co.uk>
28035         PR target/99661
28036         * config.gcc (powerpc-*-darwin8): Delete the reference to
28037         the now removed darwin8.h.
28039 2021-03-19  Olivier Hainque  <hainque@adacore.com>
28041         PR target/99660
28042         * config/vxworksae.h (VX_CPU_PREFIX): Define.
28044 2021-03-19  John David Anglin  <danglin@gcc.gnu.org>
28046         * config/pa/pa.c (import_milli): Use memcpy instead of strncpy.
28048 2021-03-19  Tamar Christina  <tamar.christina@arm.com>
28050         PR tree-optimization/99656
28051         * tree-vect-slp-patterns.c (linear_loads_p,
28052         complex_add_pattern::matches, is_eq_or_top,
28053         vect_validate_multiplication, complex_mul_pattern::matches,
28054         complex_fms_pattern::matches): Remove complex_perm_kinds_t.
28055         * tree-vectorizer.h: (complex_load_perm_t): Removed.
28056         (slp_tree_to_load_perm_map_t): Use complex_perm_kinds_t instead of
28057         complex_load_perm_t.
28059 2021-03-19  H.J. Lu  <hjl.tools@gmail.com>
28061         PR target/99652
28062         * config/i386/i386-options.c (ix86_init_machine_status): Set
28063         silent_p to true.
28064         * config/i386/i386.c (init_cumulative_args): Set silent_p to
28065         false.
28066         (construct_container): Return early for return and argument
28067         errors if silent_p is true.
28068         * config/i386/i386.h (machine_function): Add silent_p.
28070 2021-03-19  Jakub Jelinek  <jakub@redhat.com>
28072         PR target/99593
28073         * config/arm/constraints.md (Ds): New constraint.
28074         * config/arm/vec-common.md (mve_vshlq_<supf><mode>): Use w,Ds
28075         constraint instead of w,Dm.
28077 2021-03-19  Andrew Stubbs  <ams@codesourcery.com>
28079         * config/gcn/gcn.c (gcn_parse_amdgpu_hsa_kernel_attribute): Fix quotes
28080         in error message.
28082 2021-03-19  Eric Botcazou  <ebotcazou@adacore.com>
28084         PR middle-end/99641
28085         * fold-const.c (native_encode_initializer) <CONSTRUCTOR>: For an
28086         array type, do the computation of the current position in sizetype.
28088 2021-03-18  Vladimir N. Makarov  <vmakarov@redhat.com>
28090         PR target/99422
28091         * lra-constraints.c (process_address_1): Use lookup_constraint
28092         only for a single constraint.
28094 2021-03-18  Martin Sebor  <msebor@redhat.com>
28096         PR middle-end/99502
28097         * gimple-array-bounds.cc (inbounds_vbase_memaccess_p): Rename...
28098         (inbounds_memaccess_p): ...to this.  Check the ending offset of
28099         the accessed member.
28101 2021-03-18  Andrew Stubbs  <ams@codesourcery.com>
28103         * config/gcn/gcn.c (gcn_parse_amdgpu_hsa_kernel_attribute): Add %< and
28104           %> quote markers to error messages.
28105         (gcn_goacc_validate_dims): Likewise.
28106         (gcn_conditional_register_usage): Remove exclaimation mark from error
28107         message.
28108         (gcn_vectorize_vec_perm_const): Ensure perm is fully uninitialized.
28110 2021-03-18  Jan Hubicka  <hubicka@ucw.cz>
28112         * config/i386/x86-tune-costs.h (struct processor_costs): Fix costs of
28113         integer divides1.
28115 2021-03-18  Sinan Lin  <sinan@isrc.iscas.ac.cn>
28116             Kito Cheng  <kito.cheng@sifive.com>
28118         * config/riscv/riscv.c (riscv_block_move_straight): Change type
28119         to unsigned HOST_WIDE_INT for parameter and local variable with
28120         HOST_WIDE_INT type.
28121         (riscv_adjust_block_mem): Ditto.
28122         (riscv_block_move_loop): Ditto.
28123         (riscv_expand_block_move): Ditto.
28125 2021-03-18  Nick Clifton  <nickc@redhat.com>
28127         * config/v850/v850.c (construct_restore_jr): Increase static
28128          buffer size.
28129         (construct_save_jarl): Likewise.
28130         * config/v850/v850.h (DWARF2_DEBUGGING_INFO): Define.
28132 2021-03-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28134         * config/aarch64/aarch64.c (aarch64_adjust_generic_arch_tuning): Define.
28135         (aarch64_override_options_internal): Use it.
28136         (generic_tunings): Add AARCH64_EXTRA_TUNE_CSE_SVE_VL_CONSTANTS to
28137         tune_flags.
28139 2021-03-17  Sandra Loosemore  <sandra@codesourcery.com>
28141         * config/nios2/nios2.c (nios2_custom_check_insns): Clean up
28142         error message format issues.
28143         (nios2_option_override): Likewise.
28144         (nios2_expand_fpu_builtin): Likewise.
28145         (nios2_init_custom_builtins): Adjust to avoid bogus strncpy
28146         truncation warning.
28147         (nios2_expand_custom_builtin): More error message format fixes.
28148         (nios2_expand_rdwrctl_builtin): Likewise.
28149         (nios2_expand_rdprs_builtin): Likewise.
28150         (nios2_expand_eni_builtin): Likewise.
28151         (nios2_expand_builtin): Likewise.
28152         (nios2_register_custom_code): Likewise.
28153         (nios2_valid_target_attribute_rec): Likewise.
28154         (nios2_add_insn_asm): Fix uninitialized variable warning.
28156 2021-03-17  Jan Hubicka  <jh@suse.cz>
28158         * config/i386/x86-tune-costs.h (struct processor_costs): Update costs
28159         of gather to match reality.
28160         * config/i386/x86-tune.def (X86_TUNE_USE_GATHER): Enable for znver3.
28162 2021-03-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28164         * config/aarch64/aarch64-builtins.c (aarch64_expand_rng_builtin): Use EQ
28165         to compare against CC_REG rather than NE.
28167 2021-03-17  H.J. Lu  <hjl.tools@gmail.com>
28169         PR target/99504
28170         * config/i386/i386.c (ix86_force_load_from_GOT_p): Support
28171         inline assembly statements.
28172         (ix86_print_operand): Update 'P' handling for -fno-plt.
28174 2021-03-17  Tamar Christina  <tamar.christina@arm.com>
28176         PR target/99542
28177         * config/aarch64/aarch64.c
28178         (aarch64_simd_clone_compute_vecsize_and_simdlen): Remove unused var.
28180 2021-03-16  Segher Boessenkool  <segher@kernel.crashing.org>
28182         PR target/98092
28183         * config/rs6000/predicates.md (branch_comparison_operator): Allow
28184         ordered and unordered for CCFPmode, if flag_finite_math_only.
28186 2021-03-16  Jakub Jelinek  <jakub@redhat.com>
28188         PR target/99600
28189         * config/i386/i386-expand.c (ix86_split_lea_for_addr): Emit a MULT
28190         rather than ASHIFT.
28191         * config/i386/i386.md (mult by 1248 into ashift): New splitter.
28193 2021-03-16  Martin Liska  <mliska@suse.cz>
28195         PR target/99592
28196         * optc-save-gen.awk: Add flag_ipa_ra to exceptions for
28197         cl_optimization_compare function.
28199 2021-03-16  Ilya Leoshkevich  <iii@linux.ibm.com>
28201         * config/s390/s390.c (f_constraint_p): Treat "fv" constraints
28202         as "v".
28204 2021-03-16  Jakub Jelinek  <jakub@redhat.com>
28206         PR target/99563
28207         * config/i386/i386.h (struct machine_function): Add
28208         has_explicit_vzeroupper bitfield.
28209         * config/i386/i386-expand.c (ix86_expand_builtin): Set
28210         cfun->machine->has_explicit_vzeroupper when expanding
28211         IX86_BUILTIN_VZEROUPPER.
28212         * config/i386/i386-features.c (rest_of_handle_insert_vzeroupper):
28213         Do the mode switching only when TARGET_VZEROUPPER, expensive
28214         optimizations turned on and not optimizing for size.
28215         (pass_insert_vzeroupper::gate): Enable even when
28216         cfun->machine->has_explicit_vzeroupper is set.
28218 2021-03-16  Jakub Jelinek  <jakub@redhat.com>
28220         PR target/99542
28221         * config/aarch64/aarch64.c
28222         (aarch64_simd_clone_compute_vecsize_and_simdlen): If not a function
28223         definition, walk TYPE_ARG_TYPES list if non-NULL for argument types
28224         instead of DECL_ARGUMENTS.  Ignore types for uniform arguments.
28226 2021-03-15  Richard Biener  <rguenther@suse.de>
28228         PR tree-optimization/98834
28229         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle missing
28230         subsetting by truncating the access size.
28232 2021-03-15  Jan Hubicka  <hubicka@ucw.cz>
28234         * config/i386/i386-options.c (processor_cost_table): Add znver3_cost.
28235         * config/i386/x86-tune-costs.h (znver3_cost): New gobal variable; copy
28236         of znver2_cost.
28238 2021-03-15  Martin Liska  <mliska@suse.cz>
28240         * spellcheck.c: Add missing comma in initialization.
28242 2021-03-14  Uroš Bizjak  <ubizjak@gmail.com>
28244         * config/i386/sse.md (*vec_extract<mode>): Merge alternative 0 with
28245         alternative 2 and alternative 1 with alternative 3 using
28246         YW register constraint.
28247         (*vec_extract<PEXTR_MODE12:mode>_zext): Merge alternatives
28248         using YW register constraint.
28249         (*vec_extractv16qi_zext): Ditto.
28250         (*vec_extractv4si): Merge alternatives 4 and 5
28251         using Yw register constraint.
28252         (*ssse3_palignr<mode>_perm): Use Yw instead of v for alternative 3.
28254 2021-03-13  Martin Sebor  <msebor@redhat.com>
28256         PR tree-optimization/99489
28257         * builtins.c (gimple_call_alloc_size): Fail gracefully when argument
28258         is not a call statement.
28260 2021-03-13  Jakub Jelinek  <jakub@redhat.com>
28262         PR tree-optimization/99544
28263         * match.pd (X + (X << C) -> X * (1 + (1 << C))): Don't simplify
28264         if for vector types multiplication can't be done in type's mode.
28266 2021-03-12  Eric Botcazou  <ebotcazou@adacore.com>
28268         PR target/99422
28269         * config/sparc/constraints.md (w): Rename to...
28270         (W): ... this and ditch previous implementation.
28271         * config/sparc/sparc.md (*movdi_insn_sp64): Replace W with m.
28272         (*movdf_insn_sp64): Likewise.
28273         (*mov<VM64:mode>_insn_sp64): Likewise.
28274         * config/sparc/sync.md (*atomic_compare_and_swap<mode>_1): Replace
28275         w with W.
28276         (atomic_compare_and_swap_leon3_1): Likewise.
28277         (*atomic_compare_and_swapdi_v8plus): Likewise.
28278         * config/sparc/sparc.c (memory_ok_for_ldd): Remove useless test on
28279         architecture and add missing address validity check during LRA.
28281 2021-03-12  Tobias Burnus  <tobias@codesourcery.com>
28283         PR fortran/98858
28284         * gimplify.c (omp_add_variable): Handle NULL_TREE as size
28285         occuring for assumed-size arrays in use_device_{ptr,addr}.
28287 2021-03-12  Jakub Jelinek  <jakub@redhat.com>
28289         PR target/99321
28290         * config/i386/constraints.md (YW): New internal constraint.
28291         * config/i386/sse.md (v_Yw): Add V4TI, V2TI, V1TI and TI cases.
28292         (*<sse2_avx2>_<insn><mode>3<mask_name>,
28293         *<sse2_avx2>_uavg<mode>3<mask_name>, *abs<mode>2,
28294         *<s>mul<mode>3_highpart<mask_name>): Use <v_Yw> instead of v in
28295         constraints.
28296         (<sse2_avx2>_psadbw): Use YW instead of v in constraints.
28297         (*avx2_pmaddwd, *sse2_pmaddwd, *<code>v8hi3, *<code>v16qi3,
28298         avx2_pmaddubsw256, ssse3_pmaddubsw128): Merge last two alternatives
28299         into one, use Yw instead of former x,v.
28300         (ashr<mode>3, <insn><mode>3): Use <v_Yw> instead of x in constraints of
28301         the last alternative.
28302         (<sse2_avx2>_packsswb<mask_name>, <sse2_avx2>_packssdw<mask_name>,
28303         <sse2_avx2>_packuswb<mask_name>, <sse4_1_avx2>_packusdw<mask_name>,
28304         *<ssse3_avx2>_pmulhrsw<mode>3<mask_name>, <ssse3_avx2>_palignr<mode>,
28305         <ssse3_avx2>_pshufb<mode>3<mask_name>): Merge last two alternatives
28306         into one, use <v_Yw> instead of former x,v.
28307         (avx2_interleave_highv32qi<mask_name>,
28308         vec_interleave_highv16qi<mask_name>): Use Yw instead of v in
28309         constraints.  Add && <mask_avx512bw_condition> to condition.
28310         (avx2_interleave_lowv32qi<mask_name>,
28311         vec_interleave_lowv16qi<mask_name>,
28312         avx2_interleave_highv16hi<mask_name>,
28313         vec_interleave_highv8hi<mask_name>,
28314         avx2_interleave_lowv16hi<mask_name>, vec_interleave_lowv8hi<mask_name>,
28315         avx2_pshuflw_1<mask_name>, sse2_pshuflw_1<mask_name>,
28316         avx2_pshufhw_1<mask_name>, sse2_pshufhw_1<mask_name>,
28317         avx2_<code>v16qiv16hi2<mask_name>, sse4_1_<code>v8qiv8hi2<mask_name>,
28318         *sse4_1_<code>v8qiv8hi2<mask_name>_1, <sse2_avx2>_<insn><mode>3): Use
28319         Yw instead of v in constraints.
28320         * config/i386/mmx.md (Yv_Yw): New define_mode_attr.
28321         (*mmx_<insn><mode>3, mmx_ashr<mode>3, mmx_<insn><mode>3): Use <Yv_Yw>
28322         instead of Yv in constraints.
28323         (*mmx_<insn><mode>3, *mmx_mulv4hi3, *mmx_smulv4hi3_highpart,
28324         *mmx_umulv4hi3_highpart, *mmx_pmaddwd, *mmx_<code>v4hi3,
28325         *mmx_<code>v8qi3, mmx_pack<s_trunsuffix>swb, mmx_packssdw,
28326         mmx_punpckhbw, mmx_punpcklbw, mmx_punpckhwd, mmx_punpcklwd,
28327         *mmx_uavgv8qi3, *mmx_uavgv4hi3, mmx_psadbw): Use Yw instead of Yv in
28328         constraints.
28329         (*mmx_pinsrw, *mmx_pinsrb, *mmx_pextrw, *mmx_pextrw_zext, *mmx_pextrb,
28330         *mmx_pextrb_zext): Use YW instead of Yv in constraints.
28331         (*mmx_eq<mode>3, mmx_gt<mode>3): Use x instead of Yv in constraints.
28332         (mmx_andnot<mode>3, *mmx_<code><mode>3): Split last alternative into
28333         two, one with just x, another isa avx512vl with v.
28335 2021-03-12  Martin Liska  <mliska@suse.cz>
28337         * doc/invoke.texi: Add missing param documentation.
28339 2021-03-11  David Malcolm  <dmalcolm@redhat.com>
28341         PR analyzer/96374
28342         * Makefile.in (ANALYZER_OBJS): Add analyzer/feasible-graph.o and
28343         analyzer/trimmed-graph.o.
28344         * doc/analyzer.texi (Analyzer Paths): Rewrite description of
28345         feasibility checking to reflect new implementation.
28346         * doc/invoke.texi (-fdump-analyzer-feasibility): Document new
28347         option.
28348         * shortest-paths.h (shortest_paths::get_shortest_distance): New.
28350 2021-03-11  David Malcolm  <dmalcolm@redhat.com>
28352         * digraph.cc (selftest::test_shortest_paths): Update
28353         shortest_paths init for new param.  Add test of
28354         SPS_TO_GIVEN_TARGET.
28355         * shortest-paths.h (enum shortest_path_sense): New.
28356         (shortest_paths::shortest_paths): Add "sense" param.
28357         Update for renamings.  Generalize to use "sense" param.
28358         (shortest_paths::get_shortest_path): Rename param.
28359         (shortest_paths::m_sense): New field.
28360         (shortest_paths::m_prev): Rename...
28361         (shortest_paths::m_best_edge): ...to this.
28362         (shortest_paths::get_shortest_path): Update for renamings.
28363         Conditionalize flipping of path on sense of traversal.
28365 2021-03-11  David Malcolm  <dmalcolm@redhat.com>
28367         * digraph.cc (selftest::test_shortest_paths): Add test coverage
28368         for paths from B and C.
28369         * shortest-paths.h (shortest_paths::shortest_paths): Handle
28370         unreachable nodes, rather than asserting.
28372 2021-03-11  David Edelsohn  <dje.gcc@gmail.com>
28374         PR target/99094
28375         * config/rs6000/rs6000.c (rs6000_xcoff_file_start): Don't create
28376         xcoff_tbss_section_name.
28377         * config/rs6000/xcoff.h (ASM_OUTPUT_TLS_COMMON): Use .lcomm.
28378         * xcoffout.c (xcoff_tbss_section_name): Delete.
28379         * xcoffout.h (xcoff_tbss_section_name): Delete.
28381 2021-03-11  Richard Biener  <rguenther@suse.de>
28383         PR tree-optimization/99523
28384         * tree-cfg.c (dump_function_to_file): Dump SSA names
28385         w/o identifier to the decls section as well, not only those
28386         without a VAR_DECL.
28388 2021-03-11  Jakub Jelinek  <jakub@redhat.com>
28390         PR ipa/99517
28391         * ipa-icf-gimple.c (func_checker::compare_gimple_call): For internal
28392         function calls with lhs fail if the lhs don't have compatible types.
28394 2021-03-11  Hans-Peter Nilsson  <hp@axis.com>
28396         * config/cris/cris.h (HARD_FRAME_POINTER_REGNUM): Define.
28397         Change FRAME_POINTER_REGNUM to correspond to a new faked
28398         register faked_fp, part of GENNONACR_REGS like faked_ap.
28399         (CRIS_FAKED_REGS_CONTENTS): New helper macro.
28400         (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS, CALL_USED_REGISTERS):
28401         (REG_ALLOC_ORDER, REG_CLASS_CONTENTS, REGNO_OK_FOR_BASE_P)
28402         (ELIMINABLE_REGS, REGISTER_NAMES): Adjust accordingly.
28403         * config/cris/cris.md (CRIS_FP_REGNUM): Renumber to new faked
28404         register.
28405         (CRIS_REAL_FP_REGNUM): New constant.
28406         * config/cris/cris.c (cris_reg_saved_in_regsave_area): Check
28407         for HARD_FRAME_POINTER_REGNUM instead of FRAME_POINTER_REGNUM.
28408         (cris_initial_elimination_offset): Handle elimination changes
28409         to HARD_FRAME_POINTER_REGNUM instead of FRAME_POINTER_REGNUM
28410         and add one from FRAME_POINTER_REGNUM to
28411         HARD_FRAME_POINTER_REGNUM.
28412         (cris_expand_prologue, cris_expand_epilogue): Emit code for
28413         hard_frame_pointer_rtx instead of frame_pointer_rtx.
28415 2021-03-10  David Edelsohn  <dje.gcc@gmail.com>
28417         PR target/99492
28418         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Add check for DCmode.
28419         * config/rs6000/rs6000.c (rs6000_special_round_type_align): Same.
28421 2021-03-10  Vladimir N. Makarov  <vmakarov@redhat.com>
28423         PR target/99422
28424         * lra-constraints.c (process_address_1): Don't check unknown
28425         constraint, use X for empty constraint.
28427 2021-03-10  Alex Coplan  <alex.coplan@arm.com>
28429         * config/aarch64/aarch64.c (aarch64_vfp_is_call_or_return_candidate):
28430         Fix typo in comment describing "is_ha" argument.
28432 2021-03-10  John David Anglin  <danglin@gcc.gnu.org>
28434         * doc/sourcebuild.texi: Document LRA target selector.
28436 2021-03-10  David Malcolm  <dmalcolm@redhat.com>
28438         * doc/ux.texi: Add subsection contrasting interactive versus
28439         batch usage of GCC.
28441 2021-03-10  Joel Hutton  <joel.hutton@arm.com>
28443         PR target/99102
28444         * tree-vect-stmts.c (vectorizable_store): Fix scatter store mask
28445         check condition.
28446         (vectorizable_load): Fix gather load mask check condition.
28448 2021-03-10  Richard Biener  <rguenther@suse.de>
28450         PR tree-optimization/99510
28451         * tree.c (check_aligned_type): Check that the candidate
28452         has TYPE_USER_ALIGN set instead of matching with the
28453         original type.
28455 2021-03-10  Eric Botcazou  <ebotcazou@adacore.com>
28457         * config/sparc/sparc.c (sparc_regmode_natural_size): Return 4 for
28458         float and vector integer modes only if the mode is not larger.
28460 2021-03-10  Hans-Peter Nilsson  <hp@axis.com>
28462         * config/cris/cris.h (DWARF_FRAME_REGISTERS): Define.
28464 2021-03-09  Vladimir N. Makarov  <vmakarov@redhat.com>
28466         * ira.c (ira_setup_alts, ira_get_dup_out_num): Process digital
28467         constraints > 9.
28468         * ira-lives.c (single_reg_class): Ditto.
28470 2021-03-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
28472         * config.gcc (aarch64-*-rtems*): Include general rtems.h after
28473         the architecture-specific rtems.h.
28474         (aarch64-*-rtems*): Likewise.
28475         (arm*-*-rtems*): Likewise.
28476         (epiphany-*-rtems*): Likewise.
28477         (riscv*-*-rtems*): Likewise.
28479 2021-03-09  Jakub Jelinek  <jakub@redhat.com>
28481         PR tree-optimization/99305
28482         * tree-ssa-phiopt.c (conditional_replacement): Test integer_pow2p
28483         before integer_all_onesp instead of vice versa.
28485 2021-03-09  Richard Earnshaw  <rearnsha@arm.com>
28487         * common/config/arm/arm-common.c (arm_config_default): Change type
28488         of 'i' to unsigned.
28490 2021-03-09  Vladimir N. Makarov  <vmakarov@redhat.com>
28492         PR target/99454
28493         * lra-constraints.c (process_address_1): Process constraint 'g'
28494         separately and digital constraints containing more one digit.
28496 2021-03-09  Nick Clifton  <nickc@redhat.com>
28498         * config/rx/rx.h (DBX_DEBUGGING_INFO): Define.
28499         (DWARF"_DEBUGGING_INFO): Define.
28501 2021-03-09  Eric Botcazou  <ebotcazou@adacore.com>
28503         PR c++/90448
28504         * calls.c (initialize_argument_information): When the argument
28505         is passed by reference, do not make a copy in a thunk only if
28506         the argument is already in memory.  Remove redundant test for
28507         the case of callee copy.
28509 2021-03-09  Vladimir N. Makarov  <vmakarov@redhat.com>
28511         PR target/99454
28512         * lra-constraints.c (process_address_1): Process 0..9 constraints
28513         in process_address_1.
28515 2021-03-09  Andreas Krebbel  <krebbel@linux.ibm.com>
28517         * config/s390/s390.c (struct s390_processor processor_table):
28518         Binutils name string must not be empty.
28520 2021-03-09  Claudiu Zissulescu  <claziss@synopsys.com>
28522         * config/arc/arc.c (arc_attr_type): Remove function.
28524 2021-03-09  Martin Liska  <mliska@suse.cz>
28526         PR target/99464
28527         * config/i386/i386-options.c (ix86_option_override_internal):
28528         Set isa_flags for OPTS argument and not for the global
28529         global_options.
28531 2021-03-09  Aaron Sawdey  <acsawdey@linux.ibm.com>
28533         * config/rs6000/predicates.md (ds_form_mem_operand): Check
28534         in correct code.
28536 2021-03-09  Aaron Sawdey  <acsawdey@linux.ibm.com>
28538         PR target/99070
28539         * config/rs6000/predicates.md (ds_form_mem_operand) New
28540         predicate.
28541         * config/rs6000/genfusion.pl (gen_ld_cmpi_p10) Use
28542         ds_form_mem_operand in ld/lwa patterns.
28543         * config/rs6000/fusion.md: Regenerate file.
28545 2021-03-08  Martin Sebor  <msebor@redhat.com>
28547         PR middle-end/98266
28548         * gimple-array-bounds.cc (inbounds_vbase_memaccess_p): New function.
28549         (array_bounds_checker::check_array_bounds): Call it.
28551 2021-03-08  Martin Sebor  <msebor@redhat.com>
28553         PR middle-end/97631
28554         * tree-ssa-strlen.c (maybe_warn_overflow): Test rawmem.
28555         (handle_builtin_stxncpy_strncat): Rename locals.  Determine
28556         destination size from allocation calls.  Issue a more appropriate
28557         kind of warning.
28558         (handle_builtin_memcpy): Pass true as rawmem to maybe_warn_overflow.
28559         (handle_builtin_memset): Same.
28561 2021-03-08  Peter Bergner  <bergner@linux.ibm.com>
28563         PR target/98959
28564         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_permute): Add an assert
28565         to ensure we do not have an Altivec style address.
28566         * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>): Disable if passed
28567         an Altivec style address.
28568         (*vsx_le_perm_store_<mode>): Likewise.
28569         (splitters after *vsx_le_perm_store_<mode>): Likewise.
28570         (vsx_load_<mode>): Disable special expander if passed an Altivec
28571         style address.
28572         (vsx_store_<mode>): Likewise.
28574 2021-03-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28576         PR target/99437
28577         * config/aarch64/predicates.md (aarch64_simd_shift_imm_vec_qi): Define.
28578         (aarch64_simd_shift_imm_vec_hi): Likewise.
28579         (aarch64_simd_shift_imm_vec_si): Likewise.
28580         (aarch64_simd_shift_imm_vec_di): Likewise.
28581         * config/aarch64/aarch64-simd.md (aarch64_shrn<mode>_insn_le): Use
28582         predicate from above.
28583         (aarch64_shrn<mode>_insn_be): Likewise.
28584         (aarch64_rshrn<mode>_insn_le): Likewise.
28585         (aarch64_rshrn<mode>_insn_be): Likewise.
28586         (aarch64_shrn2<mode>_insn_le): Likewise.
28587         (aarch64_shrn2<mode>_insn_be): Likewise.
28588         (aarch64_rshrn2<mode>_insn_le): Likewise.
28589         (aarch64_rshrn2<mode>_insn_be): Likewise.
28591 2021-03-08  Vladimir N. Makarov  <vmakarov@redhat.com>
28593         PR target/99422
28594         * lra-constraints.c (skip_contraint_modifiers): New function.
28595         (process_address_1): Use it before lookup_constraint call.
28597 2021-03-08  Martin Liska  <mliska@suse.cz>
28599         PR target/99463
28600         * config/i386/i386-options.c (ix86_option_override_internal):
28601         Enable UINTR and HRESET for -march that supports it.
28603 2021-03-08  Ilya Leoshkevich  <iii@linux.ibm.com>
28605         * config/s390/s390.c (f_constraint_p): New function.
28606         (s390_md_asm_adjust): Implement TARGET_MD_ASM_ADJUST.
28607         (TARGET_MD_ASM_ADJUST): Likewise.
28609 2021-03-08  Tobias Burnus  <tobias@codesourcery.com>
28611         PR fortran/97927
28612         * tree-nested.c (convert_local_reference_stmt): Avoid calling
28613         lookup_field_for_decl for Fortran module (= namespace context).
28615 2021-03-08  Andreas Krebbel  <krebbel@linux.ibm.com>
28617         * config/s390/s390.c (s390_expand_vec_compare): Implement <0
28618         comparison with arithmetic right shift.
28619         (s390_expand_vcond): No need for a force_reg anymore.
28620         s390_vec_compare will do it.
28621         * config/s390/vector.md ("vec_cmp<mode><tointvec>"): Accept also
28622         immediate operands.
28624 2021-03-07  Jakub Jelinek  <jakub@redhat.com>
28626         PR target/99321
28627         * config/i386/constraints.md (Yw): Use SSE_REGS if TARGET_SSE
28628         but TARGET_AVX512BW or TARGET_AVX512VL is not set.  Adjust description
28629         and comment.
28630         * config/i386/sse.md (v_Yw): New define_mode_attr.
28631         (*<insn><mode>3, *mul<mode>3<mask_name>, *avx2_<code><mode>3,
28632         *sse4_1_<code><mode>3<mask_name>): Use <v_Yw> instead of v
28633         in constraints.
28634         * config/i386/mmx.md (mmx_pshufw_1, *vec_dupv4hi): Use Yw instead of
28635         xYw in constraints.
28637 2021-03-06  Julian Brown  <julian@codesourcery.com>
28639         * tree-pretty-print.c (dump_generic_node): Emit non-generic
28640         address space info for aggregates.
28642 2021-03-06  Hans-Peter Nilsson  <hp@axis.com>
28644         * config/cris/cris.h (MAX_FIXED_MODE_SIZE): Don't define.
28646 2021-03-05  Jakub Jelinek  <jakub@redhat.com>
28648         PR middle-end/99322
28649         * tree-cfg.c (bb_to_omp_idx): New variable.
28650         (execute_build_cfg): Release the bb_to_omp_idx vector after
28651         cleanup_tree_cfg returns.
28652         (handle_abnormal_edges): Remove bb_to_omp_idx argument, adjust
28653         for bb_to_omp_idx being a vec<int> instead of pointer to array
28654         of ints.
28655         (make_edges): Remove bb_to_omp_idx local variable, don't pass
28656         it to handle_abnormal_edges, adjust for bb_to_omp_idx being a
28657         vec<int> instead of pointer to array of ints and don't free/release
28658         it at the end.
28659         (remove_bb): When removing a bb and placing forced label somewhere
28660         else, ensure it is put into the same OpenMP region during cfg
28661         pass if possible or to entry successor as fallback.  Unregister
28662         bb from bb_to_omp_idx.
28664 2021-03-05  Vladimir N. Makarov  <vmakarov@redhat.com>
28666         PR target/99378
28667         * lra-constraints.c (process_address_1): Skip decomposing address
28668         for asm insn operand with unknown constraint.
28670 2021-03-05  Martin Jambor  <mjambor@suse.cz>
28672         PR ipa/98078
28673         * cgraph.c (cgraph_edge::set_call_stmt): Do not update all
28674         corresponding speculative edges if we are about to resolve
28675         sepculation.  Make edge direct (and so resolve speculations) before
28676         removing it from call_site_hash.
28677         (cgraph_edge::make_direct): Relax the initial assert to allow calling
28678         the function on speculative direct edges.
28680 2021-03-05  Eric Botcazou  <ebotcazou@adacore.com>
28682         PR rtl-optimization/99376
28683         * rtlanal.c (nonzero_bits1) <arithmetic operators>: If the number
28684         of low-order zero bits is too large, set the result to 0 directly.
28686 2021-03-04  Jakub Jelinek  <jakub@redhat.com>
28688         PR middle-end/93235
28689         * expmed.c (store_bit_field_using_insv): Return false of xop0 is a
28690         SUBREG and a SUBREG to op_mode can't be created.
28692 2021-03-04  Alex Coplan  <alex.coplan@arm.com>
28694         PR target/99381
28695         * config/aarch64/aarch64-sve-builtins.cc
28696         (function_resolver::require_vector_type): Handle error_mark_node.
28698 2021-03-04  Ilya Leoshkevich  <iii@linux.ibm.com>
28700         * cfgexpand.c (expand_asm_loc): Pass new parameter.
28701         (expand_asm_stmt): Likewise.
28702         * config/arm/aarch-common-protos.h (arm_md_asm_adjust): Add new
28703         parameter.
28704         * config/arm/aarch-common.c (arm_md_asm_adjust): Likewise.
28705         * config/arm/arm.c (thumb1_md_asm_adjust): Likewise.
28706         * config/cris/cris.c (cris_md_asm_adjust): Likewise.
28707         * config/i386/i386.c (ix86_md_asm_adjust): Likewise.
28708         * config/mn10300/mn10300.c (mn10300_md_asm_adjust): Likewise.
28709         * config/nds32/nds32.c (nds32_md_asm_adjust): Likewise.
28710         * config/pdp11/pdp11.c (pdp11_md_asm_adjust): Likewise.
28711         * config/rs6000/rs6000.c (rs6000_md_asm_adjust): Likewise.
28712         * config/vax/vax.c (vax_md_asm_adjust): Likewise.
28713         * config/visium/visium.c (visium_md_asm_adjust): Likewise.
28714         * doc/tm.texi (md_asm_adjust): Likewise.
28715         * target.def (md_asm_adjust): Likewise.
28717 2021-03-04  Richard Biener  <rguenther@suse.de>
28719         PR middle-end/97855
28720         * tree-pretty-print.c: Poison pp_printf.
28721         (dump_decl_name): Avoid use of pp_printf.
28722         (dump_block_node): Likewise.
28723         (dump_generic_node): Likewise.
28725 2021-03-04  Martin Sebor  <msebor@redhat.com>
28727         PR middle-end/96963
28728         PR middle-end/94655
28729         * builtins.c (handle_array_ref): New helper.
28730         (handle_mem_ref): New helper.
28731         (compute_objsize_r): Factor out ARRAY_REF and MEM_REF handling
28732         into new helper functions.  Correct a workaround for vectorized
28733         assignments.
28735 2021-03-03  Pat Haugen  <pthaugen@linux.ibm.com>
28737         * config/rs6000/dfp.md (extendddtd2, trunctddd2, *cmp<mode>_internal1,
28738         floatditd2, ftrunc<mode>2, fix<mode>di2, dfp_ddedpd_<mode>,
28739         dfp_denbcd_<mode>, dfp_dxex_<mode>, dfp_diex_<mode>,
28740         *dfp_sgnfcnc_<mode>, dfp_dscli_<mode>, dfp_dscri_<mode>): Update size
28741         attribute for Power10.
28742         * config/rs6000/mma.md (*movoo): Likewise.
28743         * config/rs6000/rs6000.md (define_attr "size"): Add 256.
28744         (define_mode_attr bits): Add DD/TD modes.
28745         * config/rs6000/sync.md (load_quadpti, store_quadpti, load_lockedpti,
28746         store_conditionalpti): Update size attribute for Power10.
28748 2021-03-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28750         PR bootstrap/92002
28751         * config/sparc/t-sparc (tree-ssanames.o-warn): Don't error for
28752         -Wuninitialized, -Wmaybe-uninitialized.
28753         (wide-int.o-warn): Likewise.
28755 2021-03-03  Richard Earnshaw  <rearnsha@arm.com>
28757         * common/config/arm/arm-common.c: Include configargs.h.
28758         (arm_config_default): New function.
28759         (arm_target_mode): Renamed from arm_target_thumb_only.  Handle
28760         processors that do not support Thumb.  Take into account the
28761         --with-mode configuration setting for selecting the default.
28762         * config/arm/arm.h (OPTION_DEFAULT_SPECS): Remove entry for 'mode'.
28763         (TARGET_MODE_SPEC_FUNCTIONS): Update for function name change.
28765 2021-03-03  Martin Liska  <mliska@suse.cz>
28767         PR gcov-profile/97461
28768         * gcov-io.h (GCOV_PREALLOCATED_KVP): Remove.
28770 2021-03-03  Eric Botcazou  <ebotcazou@adacore.com>
28772         PR target/99234
28773         * config/i386/i386.c (ix86_compute_frame_layout): For a SEH target,
28774         point back the hard frame pointer to its default location when the
28775         frame is larger than SEH_MAX_FRAME_SIZE.
28777 2021-03-03  Jakub Jelinek  <jakub@redhat.com>
28779         PR target/99321
28780         * config/i386/predicates.md (logic_operator): New define_predicate.
28781         * config/i386/i386.md (mov + mem using comm arith peephole2):
28782         Punt if operands[1] is EXT_REX_SSE_REGNO_P, AVX512BW is not enabled
28783         and the inner mode is [QH]Imode.
28785 2021-03-03  Jakub Jelinek  <jakub@redhat.com>
28787         PR debug/99090
28788         * dwarf2out.c (dw_loc_list_struct): Add end_entry member.
28789         (new_loc_list): Clear end_entry.
28790         (output_loc_list): Only use DW_LLE_startx_length for -gsplit-dwarf
28791         if HAVE_AS_LEB128, otherwise use DW_LLE_startx_endx.  Fix comment
28792         typo.
28793         (index_location_lists): For dwarf_version >= 5 without HAVE_AS_LEB128,
28794         initialize also end_entry.
28796 2021-03-03  Jakub Jelinek  <jakub@redhat.com>
28798         PR target/99085
28799         * cfgrtl.c (fixup_partitions): When changing some bbs from hot to cold
28800         partitions, if in non-layout mode after reorder_blocks also move
28801         affected blocks to ensure a single partition transition.
28803 2021-03-03  Jason Merrill  <jason@redhat.com>
28805         PR c++/96078
28806         * cgraphunit.c (process_function_and_variable_attributes): Don't
28807         warn about flatten on an alias if the target also has it.
28808         * cgraph.h (symtab_node::get_alias_target_tree): New.
28810 2021-03-02  David Edelsohn  <dje.gcc@gmail.com>
28812         * config/rs6000/rs6000.md (tls_get_tpointer_internal): Prepend
28813         period to symbol name.
28814         (tls_get_addr_internal<mode>): Same.
28816 2021-03-02  David Malcolm  <dmalcolm@redhat.com>
28818         PR c/99323
28819         * diagnostic-show-locus.c
28820         (selftest::test_one_liner_many_fixits_2): Fix accidental usage of
28821         column 0.
28823 2021-03-02  Martin Sebor  <msebor@redhat.com>
28825         PR middle-end/99276
28826         * builtins.c (warn_for_access): Remove stray warning text.
28828 2021-03-02  Martin Sebor  <msebor@redhat.com>
28830         PR middle-end/99295
28831         * doc/extend.texi (attribute malloc): Reword and clarify nonaliasing
28832         property.
28834 2021-03-02  Jakub Jelinek  <jakub@redhat.com>
28836         PR debug/99319
28837         * dwarf2out.c (output_macinfo_op): Use DW_MACRO_*_str* even with
28838         -gdwarf-5 -gstrict-dwarf.  For -gsplit-dwarf -gdwarf-5 use
28839         DW_MACRO_*_strx instead of DW_MACRO_*_strp.  Handle
28840         DW_MACRO_define_strx and DW_MACRO_undef_strx.
28841         (save_macinfo_strings): Use DW_MACRO_*_str* even with
28842         -gdwarf-5 -gstrict-dwarf.  Handle DW_MACRO_define_strx and
28843         DW_MACRO_undef_strx.
28845 2021-03-02  Andreas Krebbel  <krebbel@linux.ibm.com>
28847         * config/s390/s390-builtin-types.def (BT_FN_V4SF_V8HI_UINT): New
28848         builtin signature.
28849         (BT_FN_V8HI_V8HI_UINT): Likewise.
28850         (BT_FN_V8HI_V4SF_V4SF_UINT): Likewise.
28851         * config/s390/s390-builtins.def (B_NNPA): New macro definition.
28852         (s390_vclfnhs, s390_vclfnls, s390_vcrnfs, s390_vcfn, s390_vcnf):
28853         New builtin definitions.
28854         * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Bump
28855         vector extension version.
28856         * config/s390/s390.c (s390_expand_builtin): Check if builtins are
28857         available with current -march level.
28858         * config/s390/s390.md (UNSPEC_NNPA_VCLFNHS_V8HI)
28859         (UNSPEC_NNPA_VCLFNLS_V8HI, UNSPEC_NNPA_VCRNFS_V8HI)
28860         (UNSPEC_NNPA_VCFN_V8HI, UNSPEC_NNPA_VCNF_V8HI): New constants.
28861         * config/s390/vecintrin.h (vec_extend_to_fp32_hi): New macro.
28862         (vec_extend_to_fp32_lo): Likewise.
28863         (vec_round_from_fp32): Likewise.
28864         (vec_convert_to_fp16): Likewise.
28865         (vec_convert_from_fp16): Likewise.
28866         * config/s390/vx-builtins.md (vclfnhs_v8hi): New insn pattern.
28867         (vclfnls_v8hi): Likewise.
28868         (vcrnfs_v8hi): Likewise.
28869         (vcfn_v8hi): Likewise.
28870         (vcnf_v8hi): Likewise.
28872 2021-03-02  Andreas Krebbel  <krebbel@linux.ibm.com>
28874         * common/config/s390/s390-common.c (processor_flags_table): New entry.
28875         * config.gcc: Enable arch14 for --with-arch and --with-tune.
28876         * config/s390/driver-native.c (s390_host_detect_local_cpu): Pick
28877         arch14 for unknown CPU models.
28878         * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH14.
28879         * config/s390/s390.c (s390_issue_rate): Add case for PROCESSOR_ARCH14.
28880         (s390_get_sched_attrmask): Likewise.
28881         (s390_get_unit_mask): Likewise.
28882         * config/s390/s390.h (enum processor_flags): Add PF_NNPA and PF_ARCH14.
28883         (TARGET_CPU_ARCH14, TARGET_CPU_ARCH14_P, TARGET_CPU_NNPA)
28884         (TARGET_CPU_NNPA_P, TARGET_ARCH14, TARGET_ARCH14_P, TARGET_NNPA)
28885         (TARGET_NNPA_P): New macro definitions.
28886         * config/s390/s390.md ("cpu_facility", "enabled"): Add arch14 and nnpa.
28887         * config/s390/s390.opt: Add PROCESSOR_ARCH14.
28889 2021-03-02  Jakub Jelinek  <jakub@redhat.com>
28891         PR middle-end/95757
28892         * tree-vrp.c (register_edge_assert_for): Remove superfluous ()s around
28893         condition.  Call register_edge_assert_for_1 for == 0, != 0, == 1 and
28894         != 1 comparisons if name is lhs of a comparison.
28896 2021-03-01  Iain Sandoe  <iain@sandoe.co.uk>
28898         PR target/44107
28899         PR target/48097
28900         * config/darwin-protos.h (darwin_should_restore_cfa_state): New.
28901         * config/darwin.c (darwin_should_restore_cfa_state): New.
28902         * config/darwin.h (TARGET_ASM_SHOULD_RESTORE_CFA_STATE): New.
28903         * doc/tm.texi: Regenerated.
28904         * doc/tm.texi.in: Document TARGET_ASM_SHOULD_RESTORE_CFA_STATE.
28905         * dwarf2cfi.c (connect_traces): If the target requests, restore
28906         the CFA expression after a DW_CFA_restore.
28907         * target.def (TARGET_ASM_SHOULD_RESTORE_CFA_STATE): New hook.
28909 2021-03-01  Martin Liska  <mliska@suse.cz>
28911         PR target/99313
28912         * optc-save-gen.awk: Add 4 more exceptions.
28914 2021-03-01  Nathan Sidwell  <nathan@acm.org>
28916         PR c++/99294
28917         * tree.h (TYPE_ALIGN_RAW): New accessor.
28918         (TYPE_ALIGN): Use it.
28920 2021-03-01  Jan Hubicka  <jh@suse.cz>
28922         PR ipa/98338
28923         * ipa-fnsummary.c (compute_fn_summary): Fix sanity check.
28925 2021-03-01  Eric Botcazou  <ebotcazou@adacore.com>
28927         PR target/99234
28928         * config/i386/i386.c (ix86_compute_frame_layout): For a SEH target,
28929         point the hard frame pointer to the SSE register save area instead
28930         of the general register save area.  Perform only minimal adjustment
28931         for small frames if it is initially not correctly aligned.
28932         (ix86_expand_prologue): Remove early saves for a SEH target.
28933         * config/i386/winnt.c (struct seh_frame_state): Document constraint.
28935 2021-02-28  Jakub Jelinek  <jakub@redhat.com>
28937         PR c/99304
28938         * ipa.c (symbol_table::remove_unreachable_nodes): Fix a comment
28939         typo - referneced -> referenced.
28940         * tree.c (component_ref_size): Fix comment typo -
28941         refernce -> reference.
28942         * tree-ssa-alias.c (access_path_may_continue_p): Fix comment typo -
28943         traling -> trailing.
28944         (aliasing_component_refs_p): Fix comment typos -
28945         refernce -> reference and refernece -> reference and
28946         traling -> trailing.
28947         (nonoverlapping_refs_since_match_p): Fix comment typo -
28948         referneces -> references.
28949         * doc/invoke.texi (--param modref-max-bases): Fix a typo -
28950         referneces -> references.
28952 2021-02-27  Iain Sandoe  <iain@sandoe.co.uk>
28954         * config/host-darwin.c (darwin_gt_pch_use_address): Modify
28955         diagnostic message to avoid use of a contraction and format
28956         warning.
28958 2021-02-27  Jakub Jelinek  <jakub@redhat.com>
28960         PR other/99288
28961         * gcse.c (gcse_or_cprop_is_too_expensive): Use %wu instead of
28962         HOST_WIDE_INT_PRINT_UNSIGNED in warning format string.
28963         * ipa-devirt.c (ipa_odr_read_section): Use %wd instead of
28964         HOST_WIDE_INT_PRINT_DEC in inform format string.  Fix comment
28965         typos.
28967 2021-02-26  Richard Biener  <rguenther@suse.de>
28969         PR middle-end/99281
28970         * expr.c (store_field): For calls with return-slot optimization
28971         and addressable return type expand the store directly.
28973 2021-02-26  Richard Biener  <rguenther@suse.de>
28975         PR c/99275
28976         * builtins.c (warn_string_no_nul): Fix diagnostic formatting.
28978 2021-02-26  Peter Bergner  <bergner@linux.ibm.com>
28980         PR target/99279
28981         * config/rs6000/rs6000-call.c (rs6000_init_builtins): Replace assert
28982         with an "if" test.
28984 2021-02-26  Aaron Sawdey  <acsawdey@linux.ibm.com>
28986         * config.gcc: Add rs6000-pcrel-opt.o.
28987         * config/rs6000/rs6000-pcrel-opt.c: New file.
28988         * config/rs6000/pcrel-opt.md: New file.
28989         * config/rs6000/predicates.md: Add d_form_memory predicate.
28990         * config/rs6000/rs6000-cpus.def: Add OPTION_MASK_PCREL_OPT.
28991         * config/rs6000/rs6000-passes.def: Add pass_pcrel_opt.
28992         * config/rs6000/rs6000-protos.h: Add reg_to_non_prefixed(),
28993         pcrel_opt_valid_mem_p(), output_pcrel_opt_reloc(),
28994         and make_pass_pcrel_opt().
28995         * config/rs6000/rs6000.c (reg_to_non_prefixed): Make global.
28996         (rs6000_option_override_internal): Add pcrel-opt.
28997         (rs6000_delegitimize_address): Support pcrel-opt.
28998         (rs6000_opt_masks): Add pcrel-opt.
28999         (pcrel_opt_valid_mem_p): New function.
29000         (reg_to_non_prefixed): Make global.
29001         (rs6000_asm_output_opcode): Reset prepend_p_to_next_insn.
29002         (output_pcrel_opt_reloc): New function.
29003         * config/rs6000/rs6000.md (loads_extern_addr): New attr.
29004         (pcrel_extern_addr): Set loads_extern_addr.
29005         Add include for pcrel-opt.md.
29006         * config/rs6000/rs6000.opt: Add -mpcrel-opt.
29007         * config/rs6000/t-rs6000: Add rules for pcrel-opt.c and
29008         pcrel-opt.md.
29010 2021-02-26  YunQiang Su  <yunqiang.su@cipunited.com>
29012         PR target/98996
29013         * config/mips/mips.c (mips_expand_ext_as_unaligned_load):
29014         If TARGET_64BIT and dest is SUBREG, we check the width, if it
29015         equal to SImode, we use SImode operation, just like what we are
29016         doing for REG one.
29018 2021-02-26  Marek Polacek  <polacek@redhat.com>
29020         * builtins.c (warn_for_access): Fix typos.
29022 2021-02-25  Iain Sandoe  <iain@sandoe.co.uk>
29024         * config/aarch64/aarch64.md (<optab>_rol<mode>3): Add a '#'
29025         mark in front of the immediate quantity.
29026         (<optab>_rolsi3_uxtw): Likewise.
29028 2021-02-25  Richard Earnshaw  <rearnsha@arm.com>
29030         PR target/99271
29031         * config/arm/thumb2.md (nonsecure_call_reg_thumb2_fpcxt): New pattern.
29032         (nonsecure_call_value_reg_thumb2_fpcxt): Likewise.
29033         (nonsecure_call_reg_thumb2): Restrict to using r4 for the callee
29034         address and disable when the FPCXT is not available.
29035         (nonsecure_call_value_reg_thumb2): Likewise.
29037 2021-02-25  Nathan Sidwell  <nathan@acm.org>
29039         PR c++/99166
29040         * doc/invoke.texi (flang-info-module-cmi): Renamed option.
29042 2021-02-25  Tamar Christina  <tamar.christina@arm.com>
29044         * tree-vect-slp.c (optimize_load_redistribution_1): Abort on NULL nodes.
29046 2021-02-25  Richard Biener  <rguenther@suse.de>
29048         PR tree-optimization/99253
29049         * tree-vect-loop.c (check_reduction_path): First compute
29050         code, then verify out-of-loop uses.
29052 2021-02-25  Jakub Jelinek  <jakub@redhat.com>
29054         PR target/95798
29055         * match.pd ((T)(A) + CST -> (T)(A + CST)): Add :s to convert.
29057 2021-02-25  Jakub Jelinek  <jakub@redhat.com>
29059         PR tree-optimization/80635
29060         * tree-vrp.c (vrp_simplify_cond_using_ranges): Also handle
29061         VIEW_CONVERT_EXPR if modes are the same, innerop is integral and
29062         has mode precision.
29064 2021-02-25  Richard Biener  <rguenther@suse.de>
29066         * tree-vect-slp.c (optimize_load_redistribution_1): Delay
29067         load_map population.
29068         (vect_match_slp_patterns_2): Revert part of last change.
29069         (vect_analyze_slp): Do not interleave optimize_load_redistribution
29070         with pattern detection but do it afterwards.  Dump the
29071         whole SLP graph after pattern recognition and load
29072         redistribution optimization finished.
29074 2021-02-24  Jakub Jelinek  <jakub@redhat.com>
29076         PR fortran/99226
29077         * omp-low.c (struct omp_context): Add teams_nested_p and
29078         nonteams_nested_p members.
29079         (scan_omp_target): Diagnose teams nested inside of target with other
29080         directives strictly nested inside of the same target.
29081         (check_omp_nesting_restrictions): Set ctx->teams_nested_p or
29082         ctx->nonteams_nested_p as needed.
29084 2021-02-24  Vladimir N. Makarov  <vmakarov@redhat.com>
29086         PR inline-asm/99123
29087         * lra-constraints.c (uses_hard_regs_p): Don't use decompose_mem_address.
29089 2021-02-24  Hans-Peter Nilsson  <hp@axis.com>
29091         * config/cris/cris.c (cris_expand_prologue): Set
29092         current_function_static_stack_size, if flag_stack_usage_info.
29094 2021-02-24  Pat Haugen  <pthaugen@linux.ibm.com>
29096         * config/rs6000/rs6000.c (next_insn_prefixed_p): Rename.
29097         (rs6000_final_prescan_insn): Adjust.
29098         (rs6000_asm_output_opcode): Likewise.
29100 2021-02-24  Martin Sebor  <msebor@redhat.com>
29102         PR middle-end/97172
29103         * attribs.c (attr_access::free_lang_data): Clear attribute arg spec
29104         from function arguments.
29106 2021-02-24  Tamar Christina  <tamar.christina@arm.com>
29108         PR tree-optimization/99220
29109         * tree-vect-slp.c (optimize_load_redistribution_1): Remove
29110         node from cache when it's about to be deleted.
29112 2021-02-24  Jakub Jelinek  <jakub@redhat.com>
29114         PR tree-optimization/99225
29115         * fold-const.c (fold_binary_loc) <case NE_EXPR>: In (x & (1 << y)) != 0
29116         to ((x >> y) & 1) != 0 simplifications use build_one_cst instead of
29117         build_int_cst (..., 1).  Formatting fixes.
29119 2021-02-24  Tamar Christina  <tamar.christina@arm.com>
29121         PR tree-optimization/99149
29122         * tree-vect-slp-patterns.c (vect_detect_pair_op): Don't recreate the
29123         buffer.
29124         (vect_slp_reset_pattern): Remove.
29125         (complex_fma_pattern::matches): Remove call to vect_slp_reset_pattern.
29126         (complex_mul_pattern::build, complex_fma_pattern::build,
29127         complex_fms_pattern::build): Fix ref counts.
29128         * tree-vect-slp.c (vect_free_slp_tree): Undo SLP only pattern relevancy
29129         when node is being deleted.
29130         (vect_match_slp_patterns_2): Correct result of cache hit on patterns.
29131         (vect_schedule_slp): Invalidate SLP_TREE_REPRESENTATIVE of removed
29132         stores.
29133         * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize value.
29135 2021-02-24  Matthias Klose  <doko@ubuntu.com>
29137         Revert:
29138         2020-12-07  Matthias Klose  <doko@ubuntu.com>
29140         * genextract.c (print_header): Undefine ENABLE_RTL_CHECKING
29141         and ENABLE_RTL_FLAG_CHECKING.
29143 2021-02-24  Richard Biener  <rguenther@suse.de>
29145         PR c/99224
29146         * builtins.c (fold_builtin_next_arg): Avoid NULL arg.
29148 2021-02-23  Peter Bergner  <bergner@linux.ibm.com>
29150         * config/rs6000/mma.md (mma_assemble_pair): Rename from this...
29151         (vsx_assemble_pair): ...to this.
29152         (*mma_assemble_pair): Rename from this...
29153         (*vsx_assemble_pair): ...to this.
29154         (mma_disassemble_pair): Rename from this...
29155         (vsx_disassemble_pair): ...to this.
29156         (*mma_disassemble_pair): Rename from this...
29157         (*vsx_disassemble_pair): ...to this.
29158         * config/rs6000/rs6000-builtin.def (BU_MMA_V2, BU_MMA_V3,
29159         BU_COMPAT): New macros.
29160         (mma_assemble_pair): Rename from this...
29161         (vsx_assemble_pair): ...to this.
29162         (mma_disassemble_pair): Rename from this...
29163         (vsx_disassemble_pair): ...to this.
29164         (mma_assemble_pair): New compatibility built-in.
29165         (mma_disassemble_pair): Likewise.
29166         * config/rs6000/rs6000-call.c (struct builtin_compatibility): New.
29167         (RS6000_BUILTIN_COMPAT): Define.
29168         (bdesc_compat): New.
29169         (mma_expand_builtin): Use VSX_BUILTIN_DISASSEMBLE_PAIR_INTERNAL.
29170         (rs6000_gimple_fold_mma_builtin): Use MMA_BUILTIN_DISASSEMBLE_PAIR
29171         and VSX_BUILTIN_ASSEMBLE_PAIR.
29172         (rs6000_init_builtins): Register compatibility built-ins.
29173         (mma_init_builtins): Use VSX_BUILTIN_ASSEMBLE_PAIR,
29174         VSX_BUILTIN_ASSEMBLE_PAIR_INTERNAL, VSX_BUILTIN_DISASSEMBLE_PAIR and
29175         VSX_BUILTIN_DISASSEMBLE_PAIR_INTERNAL.
29176         * doc/extend.texi (__builtin_mma_assemble_pair): Rename from this...
29177         (__builtin_vsx_assemble_pair): ...to this.
29178         (__builtin_mma_disassemble_pair): Rename from this...
29179         (__builtin_vsx_disassemble_pair): ...to this.
29181 2021-02-23  Martin Liska  <mliska@suse.cz>
29183         PR sanitizer/99168
29184         * ipa-icf.c (sem_variable::merge): Do not merge 2 variables
29185         with different alignment. That leads to an invalid red zone
29186         size allocated in runtime.
29188 2021-02-23  Jakub Jelinek  <jakub@redhat.com>
29190         PR tree-optimization/99204
29191         * fold-const.c (fold_read_from_constant_string): Check that
29192         tree_fits_uhwi_p (index) rather than just that index is INTEGER_CST.
29194 2021-02-23  Segher Boessenkool  <segher@kernel.crashing.org>
29195             Kewen Lin  <linkw@gcc.gnu.org>
29197         * config/rs6000/rs6000.md (*rotl<mode>3_insert_3): Renamed to...
29198         (rotl<mode>3_insert_3): ...this.
29199         (plus_ior_xor): New code_iterator.
29200         (define_split for GPR rl*imi): New splitter.
29201         * config/rs6000/vsx.md (vsx_init_v4si): Use gen_rotldi3_insert_3
29202         for integer merging.
29204 2021-02-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29206         * config/aarch64/aarch64-tuning-flags.def (cse_sve_vl_constants):
29207         Define.
29208         * config/aarch64/aarch64.md (add<mode>3): Force CONST_POLY_INT immediates
29209         into a register when the above is enabled.
29210         * config/aarch64/aarch64.c (neoversev1_tunings):
29211         AARCH64_EXTRA_TUNE_CSE_SVE_VL_CONSTANTS.
29212         (aarch64_rtx_costs): Use AARCH64_EXTRA_TUNE_CSE_SVE_VL_CONSTANTS.
29214 2021-02-22  Hans-Peter Nilsson  <hp@axis.com>
29216         * config/cris/cris.c (cris_print_operand) <'T'>: Change
29217         valid operand from is now an addi mult-value to shift-value.
29218         * config/cris/cris.md (*addi): Change expression of scaled
29219         operand from mult to ashift.
29220         * config/cris/cris.md (*addi_reload): New insn_and_split.
29222 2021-02-22  John David Anglin  <danglin@gcc.gnu.org>
29224         PR target/85074
29225         * config/pa/pa.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define as
29226         hook_bool_const_tree_hwi_hwi_const_tree_true.
29227         (pa_asm_output_mi_thunk): Add support for nonzero vcall_offset.
29229 2021-02-22  Andre Vieira  <andre.simoesdiasvieira@arm.com>
29231         PR rtl-optimization/98791
29232         * ira-conflicts.c (process_regs_for_copy): Don't create allocno copies
29233         for unordered modes.
29235 2021-02-22  Martin Liska  <mliska@suse.cz>
29237         * tree-inline.c (inline_forbidden_p): Set
29238         inline_forbidden_reason.
29240 2021-02-22  Richard Biener  <rguenther@suse.de>
29242         * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Dump
29243         costed subgraph.
29245 2021-02-22  Richard Biener  <rguenther@suse.de>
29247         PR tree-optimization/99165
29248         * gimple-ssa-store-merging.c (pass_store_merging::process_store):
29249         Accumulate changed to ret.
29251 2021-02-21  Uros Bizjak  <ubizjak@gmail.com>
29253         Revert:
29254         2020-12-09  Uroš Bizjak  <ubizjak@gmail.com>
29256         * config/i386/i386.h (REG_ALLOC_ORDER): Remove
29258 2021-02-20  Ilya Leoshkevich  <iii@linux.ibm.com>
29260         PR target/99134
29261         * config/s390/vector.md (trunctf<DFP_ALL:mode>2_vr): New
29262         pattern.
29263         (trunctf<DFP_ALL:mode>2): Likewise.
29264         (trunctdtf2_vr): Likewise.
29265         (trunctdtf2): Likewise.
29266         (extend<DFP_ALL:mode>tf2_vr): Likewise.
29267         (extend<DFP_ALL:mode>tf2): Likewise.
29268         (extendtftd2_vr): Likewise.
29269         (extendtftd2): Likewise.
29271 2021-02-20  Ilya Leoshkevich  <iii@linux.ibm.com>
29273         * config/s390/vector.md (*fprx2_to_tf): Rename to fprx2_to_tf,
29274         add memory alternative.
29275         (tf_to_fprx2): New pattern.
29277 2021-02-19  Martin Sebor  <msebor@redhat.com>
29279         PR c/97172
29280         * attribs.c (init_attr_rdwr_indices): Guard vblist use.
29281         (attr_access::free_lang_data): Remove a spurious test.
29283 2021-02-19  Nathan Sidwell  <nathan@acm.org>
29285         * doc/invoke.texi (flang-info-module-read): Document.
29287 2021-02-19  Martin Liska  <mliska@suse.cz>
29289         PR translation/99167
29290         * params.opt: Fix typo.
29292 2021-02-19  Richard Biener  <rguenther@suse.de>
29294         PR middle-end/99122
29295         * tree-inline.c (inline_forbidden_p): Do not inline functions
29296         with VLA arguments or return value.
29298 2021-02-19  Jakub Jelinek  <jakub@redhat.com>
29300         PR target/98998
29301         * config/arm/arm.md (*stack_protect_combined_set_insn,
29302         *stack_protect_combined_test_insn): If force_const_mem result
29303         is not valid general operand, force its address into the destination
29304         register first.
29306 2021-02-19  Jakub Jelinek  <jakub@redhat.com>
29308         PR ipa/99034
29309         * tree-cfg.c (gimple_merge_blocks): If bb a starts with eh landing
29310         pad or non-local label, put FORCED_LABELs from bb b after that label
29311         rather than before it.
29313 2021-02-19  Andre Vieira  <andre.simoesdiasvieira@arm.com>
29315         PR target/98657
29316         * config/aarch64/aarch64-sve.md (<ASHIFT:optab><mode>3): Use
29317         expand_vector_broadcast' to emit the vec_duplicate operand.
29319 2021-02-18  Vladimir N. Makarov  <vmakarov@redhat.com>
29321         PR rtl-optimization/96264
29322         * lra-remat.c (reg_overlap_for_remat_p): Check also output insn
29323         hard regs.
29325 2021-02-18  H.J. Lu  <hjl.tools@gmail.com>
29327         PR target/99113
29328         * varasm.c (get_section): Replace SUPPORTS_SHF_GNU_RETAIN with
29329         looking up the retain attribute.
29330         (resolve_unique_section): Likewise.
29331         (get_variable_section): Likewise.
29332         (switch_to_section): Likewise.  Warn when a symbol without the
29333         retain attribute and a symbol with the retain attribute are
29334         placed in the section with the same name, instead of the used
29335         attribute.
29336         * doc/extend.texi: Document the "retain" attribute.
29338 2021-02-18  Nathan Sidwell  <nathan@acm.org>
29340         PR c++/99023
29341         * doc/invoke.texi (flang-info-include-translate): Document header
29342         lookup behaviour.
29344 2021-02-18  Richard Biener  <rguenther@suse.de>
29346         PR middle-end/99122
29347         * ipa-fnsummary.c (analyze_function_body): Set
29348         CIF_FUNCTION_NOT_INLINABLE for VLA parameter calls.
29349         * tree-inline.c (insert_init_debug_bind): Pass NULL for
29350         error_mark_node values.
29351         (force_value_to_type): Do not build V_C_Es for WITH_SIZE_EXPR
29352         values.
29353         (setup_one_parameter): Delay force_value_to_type until when
29354         it's needed.
29356 2021-02-18  Hans-Peter Nilsson  <hp@axis.com>
29358         PR tree-optimization/99142
29359         * match.pd (clz cmp 0): Gate replacement on single_use of clz result.
29361 2021-02-18  Jakub Jelinek  <jakub@redhat.com>
29363         * wide-int-bitmask.h (wide_int_bitmask::wide_int_bitmask (),
29364         wide_int_bitmask::wide_int_bitmask (uint64_t),
29365         wide_int_bitmask::wide_int_bitmask (uint64_t, uint64_t),
29366         wide_int_bitmask::operator ~ () const,
29367         wide_int_bitmask::operator | (wide_int_bitmask) const,
29368         wide_int_bitmask::operator & (wide_int_bitmask) const): Use constexpr
29369         instead of inline.
29370         * config/i386/i386.h (PTA_3DNOW, PTA_3DNOW_A, PTA_64BIT, PTA_ABM,
29371         PTA_AES, PTA_AVX, PTA_BMI, PTA_CX16, PTA_F16C, PTA_FMA, PTA_FMA4,
29372         PTA_FSGSBASE, PTA_LWP, PTA_LZCNT, PTA_MMX, PTA_MOVBE, PTA_NO_SAHF,
29373         PTA_PCLMUL, PTA_POPCNT, PTA_PREFETCH_SSE, PTA_RDRND, PTA_SSE, PTA_SSE2,
29374         PTA_SSE3, PTA_SSE4_1, PTA_SSE4_2, PTA_SSE4A, PTA_SSSE3, PTA_TBM,
29375         PTA_XOP, PTA_AVX2, PTA_BMI2, PTA_RTM, PTA_HLE, PTA_PRFCHW, PTA_RDSEED,
29376         PTA_ADX, PTA_FXSR, PTA_XSAVE, PTA_XSAVEOPT, PTA_AVX512F, PTA_AVX512ER,
29377         PTA_AVX512PF, PTA_AVX512CD, PTA_NO_TUNE, PTA_SHA, PTA_PREFETCHWT1,
29378         PTA_CLFLUSHOPT, PTA_XSAVEC, PTA_XSAVES, PTA_AVX512DQ, PTA_AVX512BW,
29379         PTA_AVX512VL, PTA_AVX512IFMA, PTA_AVX512VBMI, PTA_CLWB, PTA_MWAITX,
29380         PTA_CLZERO, PTA_NO_80387, PTA_PKU, PTA_AVX5124VNNIW, PTA_AVX5124FMAPS,
29381         PTA_AVX512VPOPCNTDQ, PTA_SGX, PTA_AVX512VNNI, PTA_GFNI, PTA_VAES,
29382         PTA_AVX512VBMI2, PTA_VPCLMULQDQ, PTA_AVX512BITALG, PTA_RDPID,
29383         PTA_PCONFIG, PTA_WBNOINVD, PTA_AVX512VP2INTERSECT, PTA_PTWRITE,
29384         PTA_AVX512BF16, PTA_WAITPKG, PTA_MOVDIRI, PTA_MOVDIR64B, PTA_ENQCMD,
29385         PTA_CLDEMOTE, PTA_SERIALIZE, PTA_TSXLDTRK, PTA_AMX_TILE, PTA_AMX_INT8,
29386         PTA_AMX_BF16, PTA_UINTR, PTA_HRESET, PTA_KL, PTA_WIDEKL, PTA_AVXVNNI,
29387         PTA_X86_64_BASELINE, PTA_X86_64_V2, PTA_X86_64_V3, PTA_X86_64_V4,
29388         PTA_CORE2, PTA_NEHALEM, PTA_WESTMERE, PTA_SANDYBRIDGE, PTA_IVYBRIDGE,
29389         PTA_HASWELL, PTA_BROADWELL, PTA_SKYLAKE, PTA_SKYLAKE_AVX512,
29390         PTA_CASCADELAKE, PTA_COOPERLAKE, PTA_CANNONLAKE, PTA_ICELAKE_CLIENT,
29391         PTA_ICELAKE_SERVER, PTA_TIGERLAKE, PTA_SAPPHIRERAPIDS, PTA_ALDERLAKE,
29392         PTA_KNL, PTA_BONNELL, PTA_SILVERMONT, PTA_GOLDMONT, PTA_GOLDMONT_PLUS,
29393         PTA_TREMONT, PTA_KNM): Use constexpr instead of const.
29395 2021-02-18  Jakub Jelinek  <jakub@redhat.com>
29397         PR middle-end/99109
29398         * gimple-array-bounds.cc (build_zero_elt_array_type): Rename to ...
29399         (build_printable_array_type): ... this.  Add nelts argument.  For
29400         overaligned eltype, use TYPE_MAIN_VARIANT (eltype) instead.  If
29401         nelts, call build_array_type_nelts.
29402         (array_bounds_checker::check_mem_ref): Use build_printable_array_type
29403         instead of build_zero_elt_array_type and build_array_type_nelts.
29405 2021-02-18  Jakub Jelinek  <jakub@redhat.com>
29407         PR target/99104
29408         * config/i386/i386.c (distance_non_agu_define): Don't call
29409         extract_insn_cached here.
29410         (ix86_lea_outperforms): Save and restore recog_data around call
29411         to distance_non_agu_define and distance_agu_use.
29412         (ix86_ok_to_clobber_flags): Remove.
29413         (ix86_avoid_lea_for_add): Don't call ix86_ok_to_clobber_flags.
29414         (ix86_avoid_lea_for_addr): Likewise.  Adjust function comment.
29415         * config/i386/i386.md (*lea<mode>): Change from define_insn_and_split
29416         into define_insn.  Move the splitting to define_peephole2 and
29417         check there using peep2_regno_dead_p if FLAGS_REG is dead.
29419 2021-02-17  Julian Brown  <julian@codesourcery.com>
29421         * gimplify.c (gimplify_scan_omp_clauses): Handle ATTACH_DETACH
29422         for non-decls.
29424 2021-02-17  Xi Ruoyao  <xry111@mengyan1223.wang>
29426         PR target/98491
29427         * config/mips/mips.c (mips_symbol_insns): Do not use
29428         MSA_SUPPORTED_MODE_P if mode is MAX_MACHINE_MODE.
29430 2021-02-16  Vladimir N. Makarov  <vmakarov@redhat.com>
29432         PR inline-asm/98096
29433         * stmt.c (resolve_operand_name_1): Take inout operands into account
29434         for access to labels by names.
29435         * doc/extend.texi: Describe counting operands for accessing labels.
29437 2021-02-16  Richard Biener  <rguenther@suse.de>
29439         PR tree-optimization/38474
29440         * tree-ssa-structalias.c (variable_info::address_taken): New.
29441         (new_var_info): Initialize address_taken.
29442         (process_constraint): Set address_taken.
29443         (solve_constraints): Use the new address_taken flag rather
29444         than is_reg_var for sorting variables.
29445         (dump_constraint): Dump the variable number if the name
29446         is just NULL.
29448 2021-02-16  Jakub Jelinek  <jakub@redhat.com>
29450         PR target/99100
29451         * tree-vect-stmts.c (vectorizable_simd_clone_call): For num_calls != 1
29452         multiply by 4096 and for inbranch by 8192.
29453         * config/i386/i386.c (ix86_simd_clone_usable): For TARGET_AVX512F,
29454         return 3, 2 or 1 for mangle letters 'b', 'c' or 'd'.
29456 2021-02-15  Maya Rashish  <coypu@sdf.org>
29458         * config/aarch64/aarch64.c (aarch64_init_builtins):
29459         Call SUBTARGET_INIT_BUILTINS.
29461 2021-02-15  Peter Bergner  <bergner@linux.ibm.com>
29463         PR rtl-optimization/98872
29464         * init-regs.c (initialize_uninitialized_regs): Skip initialization
29465         if CONST0_RTX is NULL.
29467 2021-02-15  Richard Sandiford  <richard.sandiford@arm.com>
29469         PR rtl-optimization/98863
29470         * rtl-ssa/functions.h (function_info::bb_live_out_info): Delete.
29471         (function_info::build_info): Turn into a declaration, moving the
29472         definition to internals.h.
29473         (function_info::bb_walker): Declare.
29474         (function_info::create_reg_use): Likewise.
29475         (function_info::calculate_potential_phi_regs): Take a build_info
29476         parameter.
29477         (function_info::place_phis, function_info::create_ebbs): Declare.
29478         (function_info::calculate_ebb_live_in_for_debug): Likewise.
29479         (function_info::populate_backedge_phis): Delete.
29480         (function_info::start_block, function_info::end_block): Declare.
29481         (function_info::populate_phi_inputs): Delete.
29482         (function_info::m_potential_phi_regs): Move information to build_info.
29483         * rtl-ssa/internals.h: New file.
29484         (function_info::bb_phi_info): New class.
29485         (function_info::build_info): Moved from functions.h.
29486         Add a constructor and destructor.
29487         (function_info::build_info::ebb_use): Delete.
29488         (function_info::build_info::ebb_def): Likewise.
29489         (function_info::build_info::bb_live_out): Likewise.
29490         (function_info::build_info::tmp_ebb_live_in_for_debug): New variable.
29491         (function_info::build_info::potential_phi_regs): Likewise.
29492         (function_info::build_info::potential_phi_regs_for_debug): Likewise.
29493         (function_info::build_info::ebb_def_regs): Likewise.
29494         (function_info::build_info::bb_phis): Likewise.
29495         (function_info::build_info::bb_mem_live_out): Likewise.
29496         (function_info::build_info::bb_to_rpo): Likewise.
29497         (function_info::build_info::def_stack): Likewise.
29498         (function_info::build_info::old_def_stack_limit): Likewise.
29499         * rtl-ssa/internals.inl (function_info::build_info::record_reg_def):
29500         Remove the regno argument.  Push the previous definition onto the
29501         definition stack where necessary.
29502         * rtl-ssa/accesses.cc: Include internals.h.
29503         * rtl-ssa/changes.cc: Likewise.
29504         * rtl-ssa/blocks.cc: Likewise.
29505         (function_info::build_info::build_info): Define.
29506         (function_info::build_info::~build_info): Likewise.
29507         (function_info::bb_walker): New class.
29508         (function_info::bb_walker::bb_walker): Define.
29509         (function_info::add_live_out_use): Convert a logarithmic-complexity
29510         test into a linear one.  Allow the same definition to be passed
29511         multiple times.
29512         (function_info::calculate_potential_phi_regs): Moved from
29513         functions.cc.  Take a build_info parameter and store the
29514         information there instead.
29515         (function_info::place_phis): New function.
29516         (function_info::add_entry_block_defs): Update call to record_reg_def.
29517         (function_info::calculate_ebb_live_in_for_debug): New function.
29518         (function_info::add_phi_nodes): Use bb_phis to decide which
29519         registers need phi nodes and initialize ebb_def_regs accordingly.
29520         Do not add degenerate phis here.
29521         (function_info::add_artificial_accesses): Use create_reg_use.
29522         Assert that all definitions are listed in the DF LR sets.
29523         Update call to record_reg_def.
29524         (function_info::record_block_live_out): Record live-out register
29525         values in the phis of successor blocks.  Use the live-out set
29526         when processing the last block in an EBB, instead of always
29527         using the live-in sets of successor blocks.  AND the live sets
29528         with the set of registers that have been defined in the EBB,
29529         rather than with all potential phi registers.  Cope correctly
29530         with branches back to the start of the current EBB.
29531         (function_info::start_block): New function.
29532         (function_info::end_block): Likewise.
29533         (function_info::populate_phi_inputs): Likewise.
29534         (function_info::create_ebbs): Likewise.
29535         (function_info::process_all_blocks): Rewrite into a multi-phase
29536         process.
29537         * rtl-ssa/functions.cc: Include internals.h.
29538         (function_info::calculate_potential_phi_regs): Move to blocks.cc.
29539         (function_info::init_function_data): Remove caller.
29540         * rtl-ssa/insns.cc: Include internals.h
29541         (function_info::create_reg_use): New function.  Lazily any
29542         degenerate phis needed by the linear RPO view.
29543         (function_info::record_use): Use create_reg_use.  When processing
29544         debug uses, use potential_phi_regs and test it before checking
29545         whether the register is live on entry to the current EBB.  Lazily
29546         calculate ebb_live_in_for_debug.
29547         (function_info::record_call_clobbers): Update call to record_reg_def.
29548         (function_info::record_def): Likewise.
29550 2021-02-15  Martin Liska  <mliska@suse.cz>
29552         * toplev.c (init_asm_output): Free output of
29553         gen_command_line_string function.
29554         (process_options): Likewise.
29556 2021-02-15  Martin Liska  <mliska@suse.cz>
29558         * params.opt: Add 2 missing Param keywords.
29560 2021-02-15  Eric Botcazou  <ebotcazou@adacore.com>
29562         * df-core.c (df_worklist_dataflow_doublequeue): Use proper cast.
29564 2021-02-15  Jakub Jelinek  <jakub@redhat.com>
29566         PR tree-optimization/99079
29567         * match.pd (A % (pow2pcst << N) -> A & ((pow2pcst << N) - 1)): Remove
29568         useless tree_nop_conversion_p (type, TREE_TYPE (@3)) check.  Instead
29569         require both type and TREE_TYPE (@1) to be integral types and either
29570         type having smaller or equal precision, or TREE_TYPE (@1) being
29571         unsigned type, or type being signed type.  If TREE_TYPE (@1)
29572         doesn't have wrapping overflow, perform the subtraction of one in
29573         unsigned type.
29575 2021-02-14  Jan Hubicka  <hubicka@ucw.cz>
29576             Richard Biener  <rguether@suse.de>
29578         PR ipa/97346
29579         * ipa-reference.c (ipa_init): Only conditinally initialize
29580         reference_vars_to_consider.
29581         (propagate): Conditionally deninitialize reference_vars_to_consider.
29582         (ipa_reference_write_optimization_summary): Sanity check that
29583         reference_vars_to_consider is not allocated.
29585 2021-02-13  Levy Hsu  <admin@levyhsu.com>
29587         PR target/97417
29588         * config/riscv/riscv-shorten-memrefs.c (pass_shorten_memrefs): Add
29589         extend parameter to get_si_mem_base_reg declaration.
29590         (get_si_mem_base_reg): Add extend parameter.  Set it.
29591         (analyze): Pass extend arg to get_si_mem_base_reg.
29592         (transform): Likewise.  Use it when rewriting mems.
29593         * config/riscv/riscv.c (riscv_legitimize_move): Check for subword
29594         loads and emit sign/zero extending load followed by subreg move.
29596 2021-02-13  Jim Wilson  <jimw@sifive.com>
29598         PR target/97417
29599         * config/riscv/riscv.c (riscv_compressed_lw_address_p): Drop early
29600         exit when !reload_completed.  Only perform check for compressed reg
29601         if reload_completed.
29602         (riscv_rtx_costs): In MEM case, when optimizing for size and
29603         shorten memrefs, if not compressible, then increase cost.
29605 2021-02-13  Jakub Jelinek  <jakub@redhat.com>
29607         PR rtl-optimization/98439
29608         * recog.c (pass_split_before_regstack::gate): Enable even when
29609         pass_split_before_sched2 is enabled if -fselective-scheduling2 is
29610         on.
29612 2021-02-13  Jakub Jelinek  <jakub@redhat.com>
29614         PR target/96166
29615         * config/i386/mmx.md (*mmx_pshufd_1): Add a combine splitter for
29616         swap of V2SImode elements in memory into DImode memory rotate by 32.
29618 2021-02-12  Martin Sebor  <msebor@redhat.com>
29620         * tree-pretty-print.c (print_generic_expr_to_str): Update comment.
29622 2021-02-12  Richard Sandiford  <richard.sandiford@arm.com>
29624         * rtl-ssa/accesses.cc (function_info::make_use_available): Use
29625         m_temp_obstack rather than m_obstack to allocate the temporary use.
29627 2021-02-12  Richard Sandiford  <richard.sandiford@arm.com>
29629         * df-problems.c (df_lr_bb_local_compute): Treat partial definitions
29630         as read-modify operations.
29632 2021-02-12  Richard Biener  <rguenther@suse.de>
29634         PR middle-end/38474
29635         * ipa-fnsummary.c (unmodified_parm_1): Only walk when
29636         fbi->aa_walk_budget is bigger than zero.  Update
29637         fbi->aa_walk_budget.
29638         (param_change_prob): Likewise.
29639         * ipa-prop.c (detect_type_change_from_memory_writes):
29640         Properly account walk_aliased_vdefs.
29641         (parm_preserved_before_stmt_p): Canonicalize updates.
29642         (parm_ref_data_preserved_p): Likewise.
29643         (parm_ref_data_pass_through_p): Likewise.
29644         (determine_known_aggregate_parts): Account own alias queries.
29646 2021-02-12  Martin Liska  <mliska@suse.cz>
29648         * opts-common.c (decode_cmdline_option): Release werror_arg.
29649         * opts.c (gen_producer_string): Release output of
29650         gen_command_line_string.
29652 2021-02-12  Richard Biener  <rguenther@suse.de>
29654         PR tree-optimization/38474
29655         * params.opt (-param=max-store-chains-to-track=): New param.
29656         (-param=max-stores-to-track=): Likewise.
29657         * doc/invoke.texi (max-store-chains-to-track): Document.
29658         (max-stores-to-track): Likewise.
29659         * gimple-ssa-store-merging.c (pass_store_merging::m_n_chains):
29660         New.
29661         (pass_store_merging::m_n_stores): Likewise.
29662         (pass_store_merging::terminate_and_process_chain): Update
29663         m_n_stores and m_n_chains.
29664         (pass_store_merging::process_store): Likewise.   Terminate
29665         oldest chains if the number of stores or chains get too large.
29666         (imm_store_chain_info::terminate_and_process_chain): Dump
29667         chain length.
29669 2021-02-11  Eric Botcazou  <ebotcazou@adacore.com>
29671         * config/i386/winnt.c (i386_pe_seh_unwind_emit): When switching to
29672         the cold section, emit a nop before the directive if the previous
29673         active instruction can throw.
29675 2021-02-11  Peter Bergner  <bergner@linux.ibm.com>
29677         PR target/99041
29678         * config/rs6000/predicates.md (mma_assemble_input_operand): Restrict
29679         memory addresses that are legal for quad word accesses.
29681 2021-02-11  Andrea Corallo  <andrea.corallo@arm.com>
29683         PR target/98931
29684         * config/arm/thumb2.md (*doloop_end_internal): Generate
29685         alternative sequence to handle long range branches.
29687 2021-02-11  Joel Hutton  <joel.hutton@arm.com>
29689         PR tree-optimization/98772
29690         * optabs-tree.c (supportable_half_widening_operation): New function
29691         to check for supportable V8QI->V8HI widening patterns.
29692         * optabs-tree.h (supportable_half_widening_operation): New function.
29693         * tree-vect-stmts.c (vect_create_half_widening_stmts): New function
29694         to create promotion stmts for V8QI->V8HI widening patterns.
29695         (vectorizable_conversion): Add case for V8QI->V8HI.
29697 2021-02-11  Richard Biener  <rguenther@suse.de>
29699         * sparseset.h (SPARSESET_ELT_BITS): Remove.
29700         (SPARSESET_ELT_TYPE): Use unsigned int.
29701         * fwprop.c: Do not include sparseset.h.
29703 2021-02-10  Jakub Jelinek  <jakub@redhat.com>
29705         PR c++/99035
29706         * varasm.c (declare_weak): For -fsyntax-only, allow even
29707         TREE_ASM_WRITTEN function decls.
29709 2021-02-10  Jakub Jelinek  <jakub@redhat.com>
29711         PR target/99025
29712         * config/i386/sse.md (fix<fixunssuffix>_truncv2sfv2di2,
29713         <insn>v8qiv8hi2, <insn>v8qiv8si2, <insn>v4qiv4si2, <insn>v4hiv4si2,
29714         <insn>v8qiv8di2, <insn>v4qiv4di2, <insn>v2qiv2di2, <insn>v4hiv4di2,
29715         <insn>v2hiv2di2, <insn>v2siv2di2): Force operands[1] into REG before
29716         calling simplify_gen_subreg on it.
29718 2021-02-10  Martin Liska  <mliska@suse.cz>
29720         * config/nvptx/nvptx.c (nvptx_option_override): Use
29721         flag_patchable_function_entry instead of the removed
29722         function_entry_patch_area_size.
29724 2021-02-10  Martin Liska  <mliska@suse.cz>
29726         PR tree-optimization/99002
29727         PR tree-optimization/99026
29728         * gimple-if-to-switch.cc (if_chain::is_beneficial): Fix memory
29729         leak when adjacent cases are merged.
29730         * tree-switch-conversion.c (switch_decision_tree::analyze_switch_statement): Use
29731         release_clusters.
29732         (make_pass_lower_switch): Remove trailing whitespace.
29733         * tree-switch-conversion.h (release_clusters): New.
29735 2021-02-10  Richard Biener  <rguenther@suse.de>
29737         PR rtl-optimization/99054
29738         * cfgrtl.c (rtl-optimization/99054): Return an auto_vec.
29739         (fixup_partitions): Adjust.
29740         (rtl_verify_edges): Likewise.
29742 2021-02-10  Jakub Jelinek  <jakub@redhat.com>
29744         PR middle-end/99007
29745         * gimplify.c (gimplify_scan_omp_clauses): For MEM_REF on reductions,
29746         temporarily disable gimplify_ctxp->into_ssa around gimplify_expr
29747         calls.
29749 2021-02-10  Richard Biener  <rguenther@suse.de>
29751         PR ipa/99029
29752         * ipa-pure-const.c (propagate_malloc): Use an auto_vec<>
29753         for callees.
29755 2021-02-10  Richard Biener  <rguenther@suse.de>
29757         PR tree-optimization/99024
29758         * tree-vect-loop.c (_loop_vec_info::~_loop_vec_info): Only
29759         clear loop->aux if it is associated with the destroyed loop_vinfo.
29761 2021-02-10  Martin Liska  <mliska@suse.cz>
29763         PR tree-optimization/99002
29764         * gimple-if-to-switch.cc (find_conditions): Fix memory leak
29765         in the function.
29767 2021-02-10  Martin Liska  <mliska@suse.cz>
29769         PR ipa/99003
29770         * ipa-icf.c (sem_item::add_reference): Fix memory leak when
29771         a reference exists.
29773 2021-02-10  Jakub Jelinek  <jakub@redhat.com>
29775         PR debug/98755
29776         * dwarf2out.c (prune_unused_types_walk): Mark DW_TAG_variable DIEs
29777         at class scope for DWARF5+.
29779 2021-02-09  Eric Botcazou  <ebotcazou@adacore.com>
29781         PR rtl-optimization/96015
29782         * reorg.c (skip_consecutive_labels): Minor comment tweaks.
29783         (relax_delay_slots): When deleting a jump to the next active
29784         instruction over a barrier, first delete the barrier if the
29785         jump is the only way to reach the target label.
29787 2021-02-09  Andre Vieira  <andre.simoesdiasvieira@arm.com>
29789         * config/aarch64/aarch64-cost-tables.h: Add entries for vect.mul.
29790         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Use vect.mul for
29791         vector multiplies and vect.alu for SSRA.
29792         * config/arm/aarch-common-protos.h (struct vector_cost_table): Define
29793         vect.mul cost field.
29794         * config/arm/aarch-cost-tables.h: Add entries for vect.mul.
29795         * config/arm/arm.c: Likewise.
29797 2021-02-09  Richard Biener  <rguenther@suse.de>
29799         PR tree-optimization/98863
29800         * tree-ssa-sccvn.h (vn_avail::next_undo): Add.
29801         * tree-ssa-sccvn.c (last_pushed_avail): New global.
29802         (rpo_elim::eliminate_push_avail): Chain pushed avails.
29803         (unwind_state::avail_top): Add.
29804         (do_unwind): Rewrite unwinding of avail entries.
29805         (do_rpo_vn): Initialize last_pushed_avail and
29806         avail_top of the undo state.
29808 2021-02-09  Jakub Jelinek  <jakub@redhat.com>
29810         PR middle-end/99004
29811         * calls.c (maybe_warn_rdwr_sizes): Change s0 and s1 type from
29812         const char * to char * and free those pointers after use.
29814 2021-02-09  Richard Biener  <rguenther@suse.de>
29816         PR tree-optimization/99017
29817         * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Allow
29818         zero vector cost entries.
29820 2021-02-08  Andre Vieira  <andre.simoesdiasvieira@arm.com>
29822         PR middle-end/98974
29823         * tree-vect-stmts.c (vectorizable_condition): Remove shadow vec_num
29824         parameter in vectorizable_condition.
29826 2021-02-08  Richard Biener  <rguenther@suse.de>
29828         PR lto/96591
29829         * tree.c (walk_tree_1): Walk VECTOR_CST elements.
29831 2021-02-08  Martin Liska  <mliska@suse.cz>
29833         PR lto/98971
29834         * cfgexpand.c (pass_expand::execute): Parse per-function option
29835         flag_patchable_function_entry and use it.
29836         * common.opt: Remove function_entry_patch_area_size and
29837         function_entry_patch_area_start global variables.
29838         * opts.c (parse_and_check_patch_area): New function.
29839         (common_handle_option): Use it.
29840         * opts.h (parse_and_check_patch_area): New function.
29841         * toplev.c (process_options): Parse and use
29842         function_entry_patch_area_size.
29844 2021-02-08  Martin Sebor  <msebor@redhat.com>
29846         * doc/extend.texi (attribute malloc): Correct typos.
29848 2021-02-05  Nathan Sidwell  <nathan@acm.org>
29850         PR driver/98943
29851         * gcc.c (driver::maybe_run_linker): Check for input file
29852         accessibility if not linking.
29854 2021-02-05  Richard Biener  <rguenther@suse.de>
29856         PR tree-optimization/98855
29857         * tree-vectorizer.h (add_stmt_cost): New overload.
29858         * tree-vect-slp.c (li_cost_vec_cmp): New.
29859         (vect_bb_slp_scalar_cost): Cost individual loop regions
29860         separately.  Account for the scalar instance root stmt.
29862 2021-02-05  Tom de Vries  <tdevries@suse.de>
29864         PR debug/98656
29865         * tree-switch-conversion.c (jump_table_cluster::emit): Add loc
29866         argument.
29867         (bit_test_cluster::emit): Reuse location_t for newly created
29868         gswitch statement.
29869         (switch_decision_tree::try_switch_expansion): Preserve
29870         location_t.
29871         * tree-switch-conversion.h: Change function signatures.
29873 2021-02-05  Jakub Jelinek  <jakub@redhat.com>
29875         PR target/98957
29876         * config/i386/i386-options.c (m_NONE, m_ALL): Define.
29877         * config/i386/x86-tune.def (X86_TUNE_BRANCH_PREDICTION_HINTS,
29878         X86_TUNE_PROMOTE_QI_REGS): Use m_NONE instead of 0U.
29879         (X86_TUNE_QIMODE_MATH): Use m_ALL instead of ~0U.
29881 2021-02-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29883         * config/aarch64/aarch64-simd-builtins.def (get_high): Define builtin.
29884         * config/aarch64/aarch64-simd.md (aarch64_get_high<mode>): Define.
29885         * config/aarch64/arm_neon.h (__GET_HIGH): Delete.
29886         (vget_high_f16): Reimplement using new builtin.
29887         (vget_high_f32): Likewise.
29888         (vget_high_f64): Likewise.
29889         (vget_high_p8): Likewise.
29890         (vget_high_p16): Likewise.
29891         (vget_high_p64): Likewise.
29892         (vget_high_s8): Likewise.
29893         (vget_high_s16): Likewise.
29894         (vget_high_s32): Likewise.
29895         (vget_high_s64): Likewise.
29896         (vget_high_u8): Likewise.
29897         (vget_high_u16): Likewise.
29898         (vget_high_u32): Likewise.
29899         (vget_high_u64): Likewise.
29901 2021-02-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29903         * config/aarch64/aarch64-simd-builtins.def (get_low): Define builtin.
29904         * config/aarch64/aarch64-simd.md (aarch64_get_low<mode>): Define.
29905         * config/aarch64/arm_neon.h (__GET_LOW): Delete.
29906         (vget_low_f16): Reimplement using new builtin.
29907         (vget_low_f32): Likewise.
29908         (vget_low_f64): Likewise.
29909         (vget_low_p8): Likewise.
29910         (vget_low_p16): Likewise.
29911         (vget_low_p64): Likewise.
29912         (vget_low_s8): Likewise.
29913         (vget_low_s16): Likewise.
29914         (vget_low_s32): Likewise.
29915         (vget_low_s64): Likewise.
29916         (vget_low_u8): Likewise.
29917         (vget_low_u16): Likewise.
29918         (vget_low_u32): Likewise.
29919         (vget_low_u64): Likewise.
29921 2021-02-05  Kito Cheng  <kito.cheng@sifive.com>
29923         * gcc.c (print_multilib_info): Check all required argument is provided
29924         by default arg.
29926 2021-02-05  liuhongt  <hongtao.liu@intel.com>
29928         PR target/98537
29929         * config/i386/i386-expand.c (ix86_expand_sse_cmp): Don't
29930         generate integer mask comparison for 128/256-bits vector when
29931         op_true/op_false is NULL_RTX or CONSTM1_RTX/CONST0_RTX. Also
29932         delete redundant !maskcmp condition.
29933         (ix86_expand_int_vec_cmp): Ditto but no redundant deletion
29934         here.
29935         (ix86_expand_sse_movcc): Delete definition of maskcmp, add the
29936         condition directly to if (maskcmp), add extra check for
29937         cmpmode, it should be MODE_INT.
29938         (ix86_expand_fp_vec_cmp): Pass NULL to ix86_expand_sse_cmp's
29939         parameters op_true/op_false.
29940         (ix86_use_mask_cmp_p): New.
29942 2021-02-05  liuhongt  <hongtao.liu@intel.com>
29944         PR target/98172
29945         * config/i386/x86-tune.def (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL):
29946         Remove m_GENERIC from ~list.
29947         (X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): Ditto.
29949 2021-02-04  David Malcolm  <dmalcolm@redhat.com>
29951         PR c/97932
29952         * diagnostic-show-locus.c (compatible_locations_p): Require
29953         locations in the same macro map to be either both from the
29954         macro definition, or both from the macro arguments.
29956 2021-02-04  Jonathan Wright  <jonathan.wright@arm.com>
29958         * config/aarch64/aarch64-simd-builtins.def: Add
29959         [su]mull_hi_lane[q] builtin generator macros.
29960         * config/aarch64/aarch64-simd.md
29961         (aarch64_<su>mull_hi_lane<mode>_insn): Define.
29962         (aarch64_<su>mull_hi_lane<mode>): Define.
29963         (aarch64_<su>mull_hi_laneq<mode>_insn): Define.
29964         (aarch64_<su>mull_hi_laneq<mode>): Define.
29965         * config/aarch64/arm_neon.h (vmull_high_lane_s16): Use RTL
29966         builtin instead of inline asm.
29967         (vmull_high_lane_s32): Likewise.
29968         (vmull_high_lane_u16): Likewise.
29969         (vmull_high_lane_u32): Likewise.
29970         (vmull_high_laneq_s16): Likewise.
29971         (vmull_high_laneq_s32): Likewise.
29972         (vmull_high_laneq_u16): Likewise.
29973         (vmull_high_laneq_u32): Liekwise.
29975 2021-02-04  Jonathan Wright  <jonathan.wright@arm.com>
29977         * config/aarch64/aarch64-simd-builtins.def: Add [su]mull_hi_n
29978         builtin generator macros.
29979         * config/aarch64/aarch64-simd.md
29980         (aarch64_<su>mull_hi_n<mode>_insn): Define.
29981         (aarch64_<su>mull_hi_n<mode>): Define.
29982         * config/aarch64/arm_neon.h (vmull_high_n_s16): Use RTL builtin
29983         instead of inline asm.
29984         (vmull_high_n_s32): Likewise.
29985         (vmull_high_n_u16): Likewise.
29986         (vmull_high_n_u32): Likewise.
29988 2021-02-04  Richard Biener  <rguenther@suse.de>
29990         PR tree-optimization/98855
29991         * tree-vect-loop.c (vectorizable_phi): Do not cost
29992         single-argument PHIs.
29993         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Likewise.
29994         * tree-vect-stmts.c (vectorizable_bswap): Also perform
29995         costing for SLP operation.
29997 2021-02-04  Martin Liska  <mliska@suse.cz>
29999         * doc/extend.texi: Mention -mprefer-vector-width in target
30000         attributes.
30002 2021-02-03  Martin Sebor  <msebor@redhat.com>
30004         PR tree-optimization/98937
30005         * tree-ssa-strlen.c (strlen_dom_walker::~strlen_dom_walker): Define.
30006         Flush pointer_query cache.
30008 2021-02-03  Aaron Sawdey  <acsawdey@linux.ibm.com>
30010         * config/rs6000/genfusion.pl (gen_2logical): Add missing
30011         fixes based on patch review.
30012         * config/rs6000/fusion.md: Regenerate file.
30014 2021-02-03  Aaron Sawdey  <acsawdey@linux.ibm.com>
30016         * config/rs6000/t-rs6000: Comment out auto generation of
30017         fusion.md for now.
30019 2021-02-03  Andrew Stubbs  <ams@codesourcery.com>
30021         * config/gcn/gcn-opts.h (enum processor_type): Add PROCESSOR_GFX908.
30022         * config/gcn/gcn.c (gcn_omp_device_kind_arch_isa): Add gfx908.
30023         (output_file_start): Add gfx908.
30024         * config/gcn/gcn.opt (gpu_type): Add gfx908.
30025         * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add march=gfx908.
30026         (MULTILIB_DIRNAMES): Add gfx908.
30027         * config/gcn/mkoffload.c (EF_AMDGPU_MACH_AMDGCN_GFX908): New define.
30028         (main): Recognize gfx908.
30029         * config/gcn/t-omp-device: Add gfx908.
30031 2021-02-03  Jonathan Wright  <jonathan.wright@arm.com>
30033         * config/aarch64/aarch64-simd-builtins.def: Add
30034         [su]mlsl_hi_lane[q] builtin macro generators.
30035         * config/aarch64/aarch64-simd.md
30036         (aarch64_<su>mlsl_hi_lane<mode>_insn): Define.
30037         (aarch64_<su>mlsl_hi_lane<mode>): Define.
30038         (aarch64_<su>mlsl_hi_laneq<mode>_insn): Define.
30039         (aarch64_<su>mlsl_hi_laneq<mode>): Define.
30040         * config/aarch64/arm_neon.h (vmlsl_high_lane_s16): Use RTL
30041         builtin instead of inline asm.
30042         (vmlsl_high_lane_s32): Likewise.
30043         (vmlsl_high_lane_u16): Likewise.
30044         (vmlsl_high_lane_u32): Likewise.
30045         (vmlsl_high_laneq_s16): Likewise.
30046         (vmlsl_high_laneq_s32): Likewise.
30047         (vmlsl_high_laneq_u16): Likewise.
30048         (vmlsl_high_laneq_u32): Likewise.
30049         (vmlal_high_laneq_u32): Likewise.
30051 2021-02-03  Jonathan Wright  <jonathan.wright@arm.com>
30053         * config/aarch64/aarch64-simd-builtins.def: Add
30054         [su]mlal_hi_lane[q] builtin generator macros.
30055         * config/aarch64/aarch64-simd.md
30056         (aarch64_<su>mlal_hi_lane<mode>_insn): Define.
30057         (aarch64_<su>mlal_hi_lane<mode>): Define.
30058         (aarch64_<su>mlal_hi_laneq<mode>_insn): Define.
30059         (aarch64_<su>mlal_hi_laneq<mode>): Define.
30060         * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Use RTL
30061         builtin instead of inline asm.
30062         (vmlal_high_lane_s32): Likewise.
30063         (vmlal_high_lane_u16): Likewise.
30064         (vmlal_high_lane_u32): Likewise.
30065         (vmlal_high_laneq_s16): Likewise.
30066         (vmlal_high_laneq_s32): Likewise.
30067         (vmlal_high_laneq_u16): Likewise.
30068         (vmlal_high_laneq_u32): Likewise.
30070 2021-02-03  Jonathan Wright  <jonathan.wright@arm.com>
30072         * config/aarch64/aarch64-simd-builtins.def: Add [su]mlsl_hi_n
30073         builtin generator macros.
30074         * config/aarch64/aarch64-simd.md (aarch64_<su>mlsl_hi_n<mode>_insn):
30075         Define.
30076         (aarch64_<su>mlsl_hi_n<mode>): Define.
30077         * config/aarch64/arm_neon.h (vmlsl_high_n_s16): Use RTL builtin
30078         instead of inline asm.
30079         (vmlsl_high_n_s32): Likewise.
30080         (vmlsl_high_n_u16): Likewise.
30081         (vmlsl_high_n_u32): Likewise.
30083 2021-02-03  Jonathan Wright  <jonathan.wright@arm.com>
30085         * config/aarch64/aarch64-simd-builtins.def: Add [su]mlal_hi_n
30086         builtin generator macros.
30087         * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_hi_n<mode>_insn):
30088         Define.
30089         (aarch64_<su>mlal_hi_n<mode>): Define.
30090         * config/aarch64/arm_neon.h (vmlal_high_n_s16): Use RTL builtin
30091         instead of inline asm.
30092         (vmlal_high_n_s32): Likewise.
30093         (vmlal_high_n_u16): Likewise.
30094         (vmlal_high_n_u32): Likewise.
30096 2021-02-03  Jonathan Wright  <jonathan.wright@arm.com>
30098         * config/aarch64/aarch64-simd-builtins.def: Add RTL builtin
30099         generator macros.
30100         * config/aarch64/aarch64-simd.md (*aarch64_<su>mlal_hi<mode>):
30101         Rename to...
30102         (aarch64_<su>mlal_hi<mode>_insn): This.
30103         (aarch64_<su>mlal_hi<mode>): Define.
30104         * config/aarch64/arm_neon.h (vmlal_high_s8): Use RTL builtin
30105         instead of inline asm.
30106         (vmlal_high_s16): Likewise.
30107         (vmlal_high_s32): Likewise.
30108         (vmlal_high_u8): Likewise.
30109         (vmlal_high_u16): Likewise.
30110         (vmlal_high_u32): Likewise.
30112 2021-02-03  Ilya Leoshkevich  <iii@linux.ibm.com>
30114         * lra-spills.c (remove_pseudos): Call lra_update_insn_recog_data()
30115         after calling alter_subreg() on a (mem).
30117 2021-02-03  Martin Liska  <mliska@suse.cz>
30119         PR lto/98912
30120         * lto-streamer-out.c (produce_lto_section): Fill up missing
30121         padding.
30122         * lto-streamer.h (struct lto_section): Add _padding field.
30124 2021-02-03  Richard Biener  <rguenther@suse.de>
30126         * lto-streamer.c (lto_get_section_name): Free temporary
30127         buffer.
30128         * tree-loop-distribution.c
30129         (loop_distribution::merge_dep_scc_partitions): Free edge data.
30131 2021-02-03  Jakub Jelinek  <jakub@redhat.com>
30133         PR middle-end/97487
30134         * ifcvt.c (noce_can_force_operand): New function.
30135         (noce_emit_move_insn): Use it.
30136         (noce_try_sign_mask): Likewise.  Formatting fix.
30138 2021-02-03  Jakub Jelinek  <jakub@redhat.com>
30140         PR middle-end/97971
30141         * lra-constraints.c (process_alt_operands): For inline asm, don't call
30142         fatal_insn, but instead return false.
30144 2021-02-03  Jakub Jelinek  <jakub@redhat.com>
30146         PR tree-optimization/98287
30147         * config/i386/mmx.md (<insn><mode>3): For shifts don't enable expander
30148         for V1DImode.
30150 2021-02-03  Tamar Christina  <tamar.christina@arm.com>
30152         PR tree-optimization/98928
30153         * tree-vect-loop.c (vect_analyze_loop_2): Change
30154         STMT_VINFO_SLP_VECT_ONLY to STMT_VINFO_SLP_VECT_ONLY_PATTERN.
30155         * tree-vect-slp-patterns.c (complex_pattern::build): Likewise.
30156         * tree-vectorizer.h (STMT_VINFO_SLP_VECT_ONLY_PATTERN): New.
30157         (class _stmt_vec_info): Add slp_vect_pattern_only_p.
30159 2021-02-02  Richard Biener  <rguenther@suse.de>
30161         * gimple-loop-interchange.cc (prepare_data_references):
30162         Release vectors.
30163         * gimple-loop-jam.c (tree_loop_unroll_and_jam): Likewise.
30164         * tree-ssa-loop-im.c (hoist_memory_references): Likewise.
30165         * tree-vect-stmts.c (vectorizable_condition): Do not
30166         allocate vectors.
30167         (vectorizable_comparison): Likewise.
30169 2021-02-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30171         * config/aarch64/aarch64-simd-builtins.def (ursqrte): Define builtin.
30172         * config/aarch64/aarch64-simd.md (aarch64_ursqrte<mode>): New pattern.
30173         * config/aarch64/arm_neon.h (vrsqrte_u32): Reimplement using builtin.
30174         (vrsqrteq_u32): Likewise.
30176 2021-02-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30178         * config/aarch64/aarch64-simd-builtins.def (sqxtun2): Define builtin.
30179         * config/aarch64/aarch64-simd.md (aarch64_sqxtun2<mode>_le): Define.
30180         (aarch64_sqxtun2<mode>_be): Likewise.
30181         (aarch64_sqxtun2<mode>): Likewise.
30182         * config/aarch64/arm_neon.h (vqmovun_high_s16): Reimplement using builtin.
30183         (vqmovun_high_s32): Likewise.
30184         (vqmovun_high_s64): Likewise.
30185         * config/aarch64/iterators.md (UNSPEC_SQXTUN2): Define.
30187 2021-02-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30189         * config/aarch64/aarch64-simd-builtins.def (bfdot_lane, bfdot_laneq): Use
30190         AUTO_FP flags.
30191         (bfmlalb_lane, bfmlalt_lane, bfmlalb_lane_q, bfmlalt_lane_q): Use FP flags.
30193 2021-02-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30195         * config/aarch64/aarch64-simd-builtins.def (fcmla_lane0, fcmla_lane90,
30196         fcmla_lane180, fcmla_lane270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
30197         fcmlaq_lane270, scvtf, ucvtf, fcvtzs, fcvtzu, scvtfsi, scvtfdi, ucvtfsi,
30198         ucvtfdi, fcvtzshf, fcvtzuhf, fmlal_lane_low, fmlsl_lane_low,
30199         fmlal_laneq_low, fmlsl_laneq_low, fmlalq_lane_low, fmlslq_lane_low,
30200         fmlalq_laneq_low, fmlslq_laneq_low, fmlal_lane_high, fmlsl_lane_high,
30201         fmlal_laneq_high, fmlsl_laneq_high, fmlalq_lane_high, fmlslq_lane_high,
30202         fmlalq_laneq_high, fmlslq_laneq_high): Use FP flags.
30204 2021-02-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30206         * config/aarch64/aarch64-builtins.c (FLAG_LOAD): Define.
30207         * config/aarch64/aarch64-simd-builtins.def (ld1x2, ld2, ld3, ld4, ld2r,
30208         ld3r, ld4r, ld1, ld1x3, ld1x4): Use LOAD flags.
30210 2021-02-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30212         * config/aarch64/aarch64-simd-builtins.def (combine, zip1, zip2,
30213         uzp1, uzp2, trn1, trn2, simd_bsl): Use AUTO_FP flags.
30215 2021-02-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30217         * config/aarch64/aarch64-simd-builtins.def (clrsb, clz, ctz, popcount,
30218         vec_smult_lane_, vec_smlal_lane_, vec_smult_laneq_, vec_smlal_laneq_,
30219         vec_umult_lane_, vec_umlal_lane_, vec_umult_laneq_, vec_umlal_laneq_,
30220         ashl, sshl, ushl, srshl, urshl, sdot_lane, udot_lane, sdot_laneq,
30221         udot_laneq, usdot_lane, usdot_laneq, sudot_lane, sudot_laneq, ashr,
30222         ashr_simd, lshr, lshr_simd, srshr_n, urshr_n, ssra_n, usra_n, srsra_n,
30223         ursra_n, sshll_n, ushll_n, sshll2_n, ushll2_n, ssri_n, usri_n, ssli_n,
30224         ssli_n, usli_n, bswap, rbit, simd_bsl, eor3q, rax1q, xarq, bcaxq): Use
30225         NONE builtin flags.
30227 2021-02-02  Jakub Jelinek  <jakub@redhat.com>
30229         PR tree-optimization/98848
30230         * tree-vect-patterns.c (vect_recog_over_widening_pattern): Punt if
30231         STMT_VINFO_DEF_TYPE (last_stmt_info) is vect_reduction_def.
30233 2021-02-02  Kito Cheng  <kito.cheng@sifive.com>
30235         PR target/98743
30236         * expr.c: Check mode before calling store_expr.
30238 2021-02-02  Christophe Lyon  <christophe.lyon@linaro.org>
30240         * config/arm/iterators.md (supf): Remove VORNQ_S and VORNQ_U.
30241         (VORNQ): Remove.
30242         * config/arm/mve.md (mve_vornq_s<mode>): New entry for vorn
30243         instruction using expression ior.
30244         (mve_vornq_u<mode>): New expander.
30245         (mve_vornq_f<mode>): Use ior code instead of unspec.
30246         * config/arm/unspecs.md (VORNQ_S, VORNQ_U, VORNQ_F): Remove.
30248 2021-02-02  Alexandre Oliva  <oliva@adacore.com>
30250         * tree-nested.c (convert_nonlocal_reference_op): Move
30251         current_function_decl restore after re-gimplification.
30252         (convert_local_reference_op): Likewise.
30254 2021-02-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30256         * config/aarch64/aarch64-simd-builtins.def (rshrn, rshrn2):
30257         Define builtins.
30258         * config/aarch64/aarch64-simd.md (aarch64_rshrn<mode>_insn_le):
30259         Define.
30260         (aarch64_rshrn<mode>_insn_be): Likewise.
30261         (aarch64_rshrn<mode>): Likewise.
30262         (aarch64_rshrn2<mode>_insn_le): Likewise.
30263         (aarch64_rshrn2<mode>_insn_be): Likewise.
30264         (aarch64_rshrn2<mode>): Likewise.
30265         * config/aarch64/aarch64.md (unspec): Add UNSPEC_RSHRN.
30266         * config/aarch64/arm_neon.h (vrshrn_high_n_s16): Reimplement
30267         using builtin.
30268         (vrshrn_high_n_s32): Likewise.
30269         (vrshrn_high_n_s64): Likewise.
30270         (vrshrn_high_n_u16): Likewise.
30271         (vrshrn_high_n_u32): Likewise.
30272         (vrshrn_high_n_u64): Likewise.
30273         (vrshrn_n_s16): Likewise.
30274         (vrshrn_n_s32): Likewise.
30275         (vrshrn_n_s64): Likewise.
30276         (vrshrn_n_u16): Likewise.
30277         (vrshrn_n_u32): Likewise.
30278         (vrshrn_n_u64): Likewise.
30280 2021-02-01  Sergei Trofimovich  <siarheit@google.com>
30282         PR tree-optimization/98499
30283         * ipa-modref.c (analyze_ssa_name_flags): treat RVO
30284         conservatively and assume all possible side-effects.
30286 2021-02-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30288         * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi,
30289         vec_unpacku_hi_): Define builtins.
30290         * config/aarch64/arm_neon.h (vmovl_high_s8): Reimplement using
30291         builtin.
30292         (vmovl_high_s16): Likewise.
30293         (vmovl_high_s32): Likewise.
30294         (vmovl_high_u8): Likewise.
30295         (vmovl_high_u16): Likewise.
30296         (vmovl_high_u32): Likewise.
30298 2021-02-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30300         * config/aarch64/aarch64-simd-builtins.def (sabdl, uabdl):
30301         Define builtins.
30302         * config/aarch64/aarch64-simd.md (aarch64_<sur>abdl<mode>): New
30303         pattern.
30304         * config/aarch64/aarch64.md (unspec): Define UNSPEC_SABDL,
30305         UNSPEC_UABDL.
30306         * config/aarch64/arm_neon.h (vabdl_s8): Reimplemet using
30307         builtin.
30308         (vabdl_s16): Likewise.
30309         (vabdl_s32): Likewise.
30310         (vabdl_u8): Likewise.
30311         (vabdl_u16): Likewise.
30312         (vabdl_u32): Likewise.
30313         * config/aarch64/iterators.md (ABDL): New int iterator.
30314         (sur): Handle UNSPEC_SABDL, UNSPEC_UABDL.
30316 2021-02-01  Martin Sebor  <msebor@redhat.com>
30318         * tree.h (BLOCK_VARS): Add comment.
30319         (BLOCK_SUBBLOCKS): Same.
30320         (BLOCK_SUPERCONTEXT): Same.
30321         (BLOCK_ABSTRACT_ORIGIN): Same.
30322         (inlined_function_outer_scope_p): Same.
30324 2021-02-01  Martin Sebor  <msebor@redhat.com>
30326         PR middle-end/97172
30327         * attribs.c (attr_access::free_lang_data): Define new function.
30328         * attribs.h (attr_access::free_lang_data): Declare new function.
30330 2021-02-01  Richard Biener  <rguenther@suse.de>
30332         * vec.h (auto_vec::auto_vec): Add memory stat parameters
30333         and pass them on.
30334         * bitmap.h (auto_bitmap::auto_bitmap): Likewise.
30336 2021-02-01  Tamar Christina  <tamar.christina@arm.com>
30338         * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_n<mode>,
30339         aarch64_<su>mlsl<mode>, aarch64_<su>mlsl_n<mode>): Flip mult operands.
30341 2021-02-01  Richard Biener  <rguenther@suse.de>
30343         PR rtl-optimization/98863
30344         * config/i386/i386-features.c (convert_scalars_to_vector):
30345         Set DF_RD_PRUNE_DEAD_DEFS.
30347 2021-01-31  Eric Botcazou  <ebotcazou@adacore.com>
30349         * system.h (SIZE_MAX): Define if not already defined.
30351 2021-01-30  Aaron Sawdey  <acsawdey@linux.ibm.com>
30353         * config/rs6000/genfusion.pl (gen_2logical): New function to
30354         generate patterns for logical-logical fusion.
30355         * config/rs6000/fusion.md: Regenerated patterns.
30356         * config/rs6000/rs6000-cpus.def: Add
30357         OPTION_MASK_P10_FUSION_2LOGICAL.
30358         * config/rs6000/rs6000.c (rs6000_option_override_internal):
30359         Enable logical-logical fusion for p10.
30360         * config/rs6000/rs6000.opt: Add -mpower10-fusion-2logical.
30362 2021-01-30  David Edelsohn  <dje.gcc@gmail.com>
30364         * config/rs6000/rs6000.opt: Add periods to new AIX options.
30366 2021-01-30  David Edelsohn  <dje.gcc@gmail.com>
30368         * config/rs6000/rs6000.opt (mabi=vec-extabi): New.
30369         (mabi=vec-default): New.
30370         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
30371         __EXTABI__ for AIX Vector extended ABI.
30372         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print AIX Vector
30373         extabi info.
30374         (conditional_register_usage): If AIX vec_extabi enabled, vs20-vs31
30375         are non-volatile.
30376         * doc/invoke.texi (PowerPC mabi): Add AIX vec-extabi and vec-default.
30378 2021-01-30  Jakub Jelinek  <jakub@redhat.com>
30380         * config/i386/i386-features.c (remove_partial_avx_dependency): Clear
30381         DF_DEFER_INSN_RESCAN after calling df_process_deferred_rescans.
30383 2021-01-29  Vladimir N. Makarov  <vmakarov@redhat.com>
30385         PR target/97701
30386         * lra-constraints.c (in_class_p): Don't narrow class only for REG
30387         or MEM.
30389 2021-01-29  Will Schmidt  <will_schmidt@vnet.ibm.com>
30391         * config/rs6000/rs6000-call.c (rs6000_expand_binup_builtin): Add
30392         clauses for CODE_FOR_vsx_xvcvuxddp_scale and
30393         CODE_FOR_vsx_xvcvsxddp_scale to the parameter checking code.
30395 2021-01-29  Andrew MacLeod  <amacleod@redhat.com>
30397         PR tree-optimization/98866
30398         * gimple-range-gori.h (gori_compute:set_range_invariant): New.
30399         * gimple-range-gori.cc (gori_map::set_range_invariant): New.
30400         (gori_map::m_maybe_invariant): Rename from all_outgoing.
30401         (gori_map::gori_map): Rename all_outgoing to m_maybe_invariant.
30402         (gori_map::is_export_p): Ditto.
30403         (gori_map::calculate_gori): Ditto.
30404         (gori_compute::set_range_invariant): New.
30405         * gimple-range.cc (gimple_ranger::range_of_stmt): Set range
30406         invariant for pointers evaluating to [1, +INF].
30408 2021-01-29  Richard Biener  <rguenther@suse.de>
30410         PR rtl-optimization/98863
30411         * config/i386/i386-features.c (remove_partial_avx_dependency):
30412         Do not perform DF analysis.
30413         (pass_data_remove_partial_avx_dependency): Remove
30414         TODO_df_finish.
30416 2021-01-29  Jonathan Wright  <jonathan.wright@arm.com>
30418         * config/aarch64/aarch64-simd-builtins.def: Add [su]mull_n
30419         builtin generator macros.
30420         * config/aarch64/aarch64-simd.md (aarch64_<su>mull_n<mode>):
30421         Define.
30422         * config/aarch64/arm_neon.h (vmull_n_s16): Use RTL builtin
30423         instead of inline asm.
30424         (vmull_n_s32): Likewise.
30425         (vmull_n_u16): Likewise.
30426         (vmull_n_u32): Likewise.
30428 2021-01-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30430         * config/aarch64/aarch64-simd-builtins.def (sabdl2, uabdl2):
30431         Define builtins.
30432         * config/aarch64/aarch64-simd.md (aarch64_<sur>abdl2<mode>_3):
30433         Rename to...
30434         (aarch64_<sur>abdl2<mode>): ... This.
30435         (<sur>sadv16qi): Adjust use of above.
30436         * config/aarch64/arm_neon.h (vabdl_high_s8): Reimplement using
30437         builtin.
30438         (vabdl_high_s16): Likewise.
30439         (vabdl_high_s32): Likewise.
30440         (vabdl_high_u8): Likewise.
30441         (vabdl_high_u16): Likewise.
30442         (vabdl_high_u32): Likewise.
30444 2021-01-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30446         * config/aarch64/aarch64-simd-builtins.def (sabal2): Define
30447         builtin.
30448         (uabal2): Likewise.
30449         * config/aarch64/aarch64-simd.md (aarch64_<sur>abal2<mode>): New
30450         pattern.
30451         * config/aarch64/aarch64.md (unspec): Add UNSPEC_SABAL2 and
30452         UNSPEC_UABAL2.
30453         * config/aarch64/arm_neon.h (vabal_high_s8): Reimplement using
30454         builtin.
30455         (vabal_high_s16): Likewise.
30456         (vabal_high_s32): Likewise.
30457         (vabal_high_u8): Likewise.
30458         (vabal_high_u16): Likewise.
30459         (vabal_high_u32): Likewise.
30460         * config/aarch64/iterators.md (ABAL2): New mode iterator.
30461         (sur): Handle UNSPEC_SABAL2, UNSPEC_UABAL2.
30463 2021-01-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30465         * config/aarch64/aarch64-simd-builtins.def (sabal): Define
30466         builtin.
30467         (uabal): Likewise.
30468         * config/aarch64/aarch64-simd.md (aarch64_<sur>abal<mode>_4):
30469         Rename to...
30470         (aarch64_<sur>abal<mode>): ... This
30471         (<sur>sadv16qi): Adust use of the above.
30472         * config/aarch64/arm_neon.h (vabal_s8): Reimplement using
30473         builtin.
30474         (vabal_s16): Likewise.
30475         (vabal_s32): Likewise.
30476         (vabal_u8): Likewise.
30477         (vabal_u16): Likewise.
30478         (vabal_u32): Likewise.
30480 2021-01-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30482         * config/aarch64/aarch64-simd-builtins.def (saddlv, uaddlv):
30483         Define builtins.
30484         * config/aarch64/aarch64-simd.md (aarch64_<su>addlv<mode>):
30485         Define.
30486         * config/aarch64/arm_neon.h (vaddlv_s8): Reimplement using
30487         builtin.
30488         (vaddlv_s16): Likewise.
30489         (vaddlv_u8): Likewise.
30490         (vaddlv_u16): Likewise.
30491         (vaddlvq_s8): Likewise.
30492         (vaddlvq_s16): Likewise.
30493         (vaddlvq_s32): Likewise.
30494         (vaddlvq_u8): Likewise.
30495         (vaddlvq_u16): Likewise.
30496         (vaddlvq_u32): Likewise.
30497         (vaddlv_s32): Likewise.
30498         (vaddlv_u32): Likewise.
30499         * config/aarch64/iterators.md (VDQV_L): New mode iterator.
30500         (unspec): Add UNSPEC_SADDLV, UNSPEC_UADDLV.
30501         (Vwstype): New mode attribute.
30502         (Vwsuf): Likewise.
30503         (VWIDE_S): Likewise.
30504         (USADDLV): New int iterator.
30505         (su): Handle UNSPEC_SADDLV, UNSPEC_UADDLV.
30507 2021-01-29  Jonathan Wright  <jonathan.wright@arm.com>
30509         * config/aarch64/aarch64-simd-builtins.def: Add [su]mlsl_lane[q]
30510         builtin generator macros.
30511         * config/aarch64/aarch64-simd.md (aarch64_vec_<su>mlsl_lane<Qlane>):
30512         Define.
30513         * config/aarch64/arm_neon.h (vmlsl_lane_s16): Use RTL builtin
30514         instead of inline asm.
30515         (vmlsl_lane_s32): Likewise.
30516         (vmlsl_lane_u16): Likewise.
30517         (vmlsl_lane_u32): Likewise.
30518         (vmlsl_laneq_s16): Likewise.
30519         (vmlsl_laneq_s32): Likewise.
30520         (vmlsl_laneq_u16): Likewise.
30521         (vmlsl_laneq_u32): Likewise.
30523 2021-01-29  Richard Biener  <rguenther@suse.de>
30525         * doc/invoke.texi (--param max-gcse-memory): Document unit
30526         of size.
30527         * gcse.c (gcse_or_cprop_is_too_expensive): Adjust.
30528         * params.opt (--param max-gcse-memory): Adjust default and
30529         document unit of size.
30531 2021-01-29  Richard Biener  <rguenther@suse.de>
30533         PR rtl-optimization/98863
30534         * gcse.c (gcse_or_cprop_is_too_expensive): Use unsigned
30535         HOST_WIDE_INT for the memory estimate.
30537 2021-01-29  Bin Cheng  <bin.cheng@linux.alibaba.com>
30538             Richard Biener  <rguenther@suse.de>
30540         PR tree-optimization/97627
30541         * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions):
30542         Do not analyze fake edges.
30544 2021-01-29  Richard Biener  <rguenther@suse.de>
30546         PR rtl-optimization/98144
30547         * df.h (df_mir_bb_info): Add con_visited member.
30548         * df-problems.c (df_mir_alloc): Initialize con_visited,
30549         do not fully populate IN and OUT.
30550         (df_mir_reset): Likewise.
30551         (df_mir_confluence_0): Set con_visited.
30552         (df_mir_confluence_n): Properly handle implicitely
30553         fully populated IN and OUT as designated by con_visited
30554         and update con_visited accordingly.
30556 2021-01-29  Jakub Jelinek  <jakub@redhat.com>
30558         PR target/98849
30559         * config/arm/vec-common.md (mve_vshlq_<supf><mode>,
30560         vashl<mode>3, vashr<mode>3, vlshr<mode>3): Add
30561         && !TARGET_REALLY_IWMMXT to conditions.
30563 2021-01-29  Jakub Jelinek  <jakub@redhat.com>
30565         PR debug/98331
30566         * cfgbuild.c (find_bb_boundaries): Reset debug_insn when seeing
30567         a BARRIER.
30569 2021-01-28  Marek Polacek  <polacek@redhat.com>
30571         PR c++/94775
30572         * stor-layout.c (finalize_type_size): If we reset TYPE_USER_ALIGN in
30573         the main variant, maybe reset it in its variants too.
30574         * tree.c (check_base_type): Return true only if TYPE_USER_ALIGN match.
30575         (check_aligned_type): Check if TYPE_USER_ALIGN match.
30577 2021-01-28  Christophe Lyon  <christophe.lyon@linaro.org>
30579         PR target/98730
30580         * config/arm/arm.c (arm_rtx_costs_internal): Adjust cost of vector
30581         of constant zero for comparisons.
30583 2021-01-28  Michael Meissner  <meissner@linux.ibm.com>
30585         * config/rs6000/rs6000.c (rs6000_mangle_decl_assembler_name): Add
30586         support for mapping built-in function names for long double
30587         built-in functions if long double is IEEE 128-bit.
30589 2021-01-28  Jonathan Wright  <jonathan.wright@arm.com>
30591         * config/aarch64/aarch64-simd-builtins.def: Add [su]mlsl_n
30592         builtin generator macros.
30593         * config/aarch64/aarch64-simd.md (aarch64_<su>mlsl_n<mode>):
30594         Define.
30595         * config/aarch64/arm_neon.h (vmlsl_n_s16): Use RTL builtin
30596         instead of inline asm.
30597         (vmlsl_n_s32): Likewise.
30598         (vmlsl_n_u16): Likewise.
30599         (vmlsl_n_u32): Likewise.
30601 2021-01-28  Jonathan Wright  <jonathan.wright@arm.com>
30603         * config/aarch64/aarch64-simd-builtins.def: Add [su]mlal_n
30604         builtin generator macros.
30605         * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_n<mode>):
30606         Define.
30607         * config/aarch64/arm_neon.h (vmlal_n_s16): Use RTL builtin
30608         instead of inline asm.
30609         (vmlal_n_s32): Likewise.
30610         (vmlal_n_u16): Likewise.
30611         (vmlal_n_u32): Likewise.
30613 2021-01-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30615         * config/aarch64/aarch64-simd-builtins.def (shrn2): Define
30616         builtin.
30617         * config/aarch64/aarch64-simd.md (aarch64_shrn2<mode>_insn_le):
30618         Define.
30619         (aarch64_shrn2<mode>_insn_be): Likewise.
30620         (aarch64_shrn2<mode>): Likewise.
30621         * config/aarch64/arm_neon.h (vshrn_high_n_s16): Reimlplement
30622         using builtins.
30623         (vshrn_high_n_s32): Likewise.
30624         (vshrn_high_n_s64): Likewise.
30625         (vshrn_high_n_u16): Likewise.
30626         (vshrn_high_n_u32): Likewise.
30627         (vshrn_high_n_u64): Likewise.
30629 2021-01-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30631         * config/aarch64/aarch64-simd-builtins.def (shrn): Define
30632         builtin.
30633         * config/aarch64/aarch64-simd.md (aarch64_shrn<mode>_insn_le):
30634         Define.
30635         (aarch64_shrn<mode>_insn_be): Likewise.
30636         (aarch64_shrn<mode>): Likewise.
30637         * config/aarch64/arm_neon.h (vshrn_n_s16): Reimplement using
30638         builtins.
30639         (vshrn_n_s32): Likewise.
30640         (vshrn_n_s64): Likewise.
30641         (vshrn_n_u16): Likewise.
30642         (vshrn_n_u32): Likewise.
30643         (vshrn_n_u64): Likewise.
30644         * config/aarch64/iterators.md (vn_mode): New mode attribute.
30646 2021-01-28  Richard Biener  <rguenther@suse.de>
30648         PR rtl-optimization/80960
30649         * dse.c (check_mem_read_rtx): Call get_addr on the
30650         offsetted address.
30652 2021-01-28  Xionghu Luo  <luoxhu@linux.ibm.com>
30653             David Edelsohn  <dje.gcc@gmail.com>
30655         PR target/98799
30656         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
30657         Don't generate VIEW_CONVERT_EXPR for fcode ALTIVEC_BUILTIN_VEC_INSERT
30658         when -m32.
30659         * config/rs6000/rs6000-protos.h (rs6000_expand_vector_set_var):
30660         Delete.
30661         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Remove the
30662         wrapper call rs6000_expand_vector_set_var for cleanup.  Call
30663         rs6000_expand_vector_set_var_p9 and rs6000_expand_vector_set_var_p8
30664         directly.
30665         (rs6000_expand_vector_set_var): Delete.
30666         (rs6000_expand_vector_set_var_p9): Make static.
30667         (rs6000_expand_vector_set_var_p8): Make static.
30669 2021-01-28  Xing GUO  <higuoxing@gmail.com>
30671         * common/config/riscv/riscv-common.c
30672         (riscv_subset_list::parsing_subset_version): Fix -march option parsing
30673         when `p` extension exists.
30675 2021-01-27  Vladimir N. Makarov  <vmakarov@redhat.com>
30677         PR rtl-optimization/97684
30678         * ira.c (ira): Call ira_set_pseudo_classes before
30679         update_equiv_regs when it is necessary.
30681 2021-01-27  Jakub Jelinek  <jakub@redhat.com>
30683         PR target/98853
30684         * config/aarch64/aarch64.md (*aarch64_bfxilsi_uxtw): Use
30685         %w0, %w1 and %2 instead of %0, %1 and %2.
30687 2021-01-27  Aaron Sawdey  <acsawdey@linux.ibm.com>
30689         * config/rs6000/genfusion.pl: New script to generate
30690         define_insn_and_split patterns so combine can arrange fused
30691         instructions next to each other.
30692         * config/rs6000/fusion.md: New file, generated fused instruction
30693         patterns for combine.
30694         * config/rs6000/predicates.md (const_m1_to_1_operand): New predicate.
30695         (non_update_memory_operand): New predicate.
30696         * config/rs6000/rs6000-cpus.def: Add OPTION_MASK_P10_FUSION and
30697         OPTION_MASK_P10_FUSION_LD_CMPI to ISA_3_1_MASKS_SERVER and
30698         POWERPC_MASKS.
30699         * config/rs6000/rs6000-protos.h (address_is_non_pfx_d_or_x): Add
30700         prototype.
30701         * config/rs6000/rs6000.c (rs6000_option_override_internal):
30702         Automatically set OPTION_MASK_P10_FUSION and
30703         OPTION_MASK_P10_FUSION_LD_CMPI if target is power10.
30704         (rs600_opt_masks): Allow -mpower10-fusion
30705         in function attributes.
30706         (address_is_non_pfx_d_or_x): New function.
30707         * config/rs6000/rs6000.h: Add MASK_P10_FUSION.
30708         * config/rs6000/rs6000.md: Include fusion.md.
30709         * config/rs6000/rs6000.opt: Add -mpower10-fusion
30710         and -mpower10-fusion-ld-cmpi.
30711         * config/rs6000/t-rs6000: Add dependencies involving fusion.md.
30713 2021-01-27  Jonathan Wright  <jonathan.wright@arm.com>
30715         * config/aarch64/aarch64-simd-builtins.def: Add [su]mlal
30716         builtin generator macros.
30717         * config/aarch64/aarch64-simd.md (*aarch64_<su>mlal<mode>):
30718         Rename to...
30719         (aarch64_<su>mlal<mode>): This.
30720         * config/aarch64/arm_neon.h (vmlal_s8): Use RTL builtin
30721         instead of inline asm.
30722         (vmlal_s16): Likewise.
30723         (vmlal_s32): Likewise.
30724         (vmlal_u8): Likewise.
30725         (vmlal_u16): Likewise.
30726         (vmlal_u32): Likewise.
30728 2021-01-27  Richard Biener  <rguenther@suse.de>
30730         PR tree-optimization/98854
30731         * tree-vect-slp.c (vect_build_slp_tree_2): Also build
30732         PHIs from scalars when the number of CTORs matches the
30733         number of children.
30735 2021-01-27  Jonathan Wright  <jonathan.wright@arm.com>
30737         * config/aarch64/aarch64-simd-builtins.def: Add mls_n builtin
30738         generator macro.
30739         * config/aarch64/aarch64-simd.md (*aarch64_mls_elt_merge<mode>):
30740         Rename to...
30741         (aarch64_mls_n<mode>): This.
30742         * config/aarch64/arm_neon.h (vmls_n_s16): Use RTL builtin
30743         instead of asm.
30744         (vmls_n_s32): Likewise.
30745         (vmls_n_u16): Likewise.
30746         (vmls_n_u32): Likewise.
30747         (vmlsq_n_s16): Likewise.
30748         (vmlsq_n_s32): Likewise.
30749         (vmlsq_n_u16): Likewise.
30750         (vmlsq_n_u32): Likewise.
30752 2021-01-27  Jonathan Wright  <jonathan.wright@arm.com>
30754         * config/aarch64/aarch64-simd-builtins.def: Add mls builtin
30755         generator macro.
30756         * config/aarch64/arm_neon.h (vmls_s8): Use RTL builtin rather
30757         than asm.
30758         (vmls_s16): Likewise.
30759         (vmls_s32): Likewise.
30760         (vmls_u8): Likewise.
30761         (vmls_u16): Likewise.
30762         (vmls_u32): Likewise.
30763         (vmlsq_s8): Likewise.
30764         (vmlsq_s16): Likewise.
30765         (vmlsq_s32): Likewise.
30766         (vmlsq_u8): Likewise.
30767         (vmlsq_u16): Likewise.
30768         (vmlsq_u32): Likewise.
30770 2021-01-27  Jonathan Wright  <jonathan.wright@arm.com>
30772         * config/aarch64/aarch64-simd-builtins.def: Add mla_n builtin
30773         generator macro.
30774         * config/aarch64/aarch64-simd.md (*aarch64_mla_elt_merge<mode>):
30775         Rename to...
30776         (aarch64_mla_n<mode>): This.
30777         * config/aarch64/arm_neon.h (vmla_n_s16): Use RTL builtin
30778         instead of asm.
30779         (vmla_n_s32): Likewise.
30780         (vmla_n_u16): Likewise.
30781         (vmla_n_u32): Likewise.
30782         (vmlaq_n_s16): Likewise.
30783         (vmlaq_n_s32): Likewise.
30784         (vmlaq_n_u16): Likewise.
30785         (vmlaq_n_u32): Likewise.
30787 2021-01-27  liuhongt  <hongtao.liu@intel.com>
30789         PR target/98833
30790         * config/i386/sse.md (sse2_gt<mode>3): Drop !TARGET_XOP in condition.
30791         (*sse2_eq<mode>3): Ditto.
30793 2021-01-27  Jakub Jelinek  <jakub@redhat.com>
30795         * tree-pass.h (PROP_trees): Rename to ...
30796         (PROP_gimple): ... this.
30797         * cfgexpand.c (pass_data_expand): Replace PROP_trees with PROP_gimple.
30798         * passes.c (execute_function_dump, execute_function_todo,
30799         execute_one_ipa_transform_pass, execute_one_pass): Likewise.
30800         * varpool.c (ctor_for_folding): Likewise.
30802 2021-01-27  Jakub Jelinek  <jakub@redhat.com>
30804         PR tree-optimization/97260
30805         * varpool.c: Include tree-pass.h.
30806         (ctor_for_folding): In GENERIC return DECL_INITIAL for TREE_READONLY
30807         non-TREE_SIDE_EFFECTS automatic variables.
30809 2021-01-26  Paul Fee  <paul.f.fee@gmail.com>
30811         * doc/cpp.texi (__cplusplus): Document value for -std=c++23
30812         or -std=gnu++23.
30813         * doc/invoke.texi: Document -std=c++23 and -std=gnu++23.
30814         * dwarf2out.c (highest_c_language): Recognise C++20 and C++23.
30815         (gen_compile_unit_die): Recognise C++23.
30817 2021-01-26  Jakub Jelinek  <jakub@redhat.com>
30819         PR bootstrap/98839
30820         * dwarf2asm.c (dw2_assemble_integer): Cast DWARF2_ADDR_SIZE to int
30821         in comparison.
30823 2021-01-26  Jakub Jelinek  <jakub@redhat.com>
30825         PR target/98681
30826         * config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
30827         Use UINTVAL (shft_amnt) and UINTVAL (mask) instead of INTVAL (shft_amnt)
30828         and INTVAL (mask).  Add && INTVAL (mask) > 0 condition.
30830 2021-01-26  Richard Biener  <rguenther@suse.de>
30832         * gimple-pretty-print.c (dump_binary_rhs): Handle
30833         VEC_WIDEN_{PLUS,MINUS}_{LO,HI}_EXPR.
30835 2021-01-26  Richard Biener  <rguenther@suse.de>
30837         PR middle-end/98726
30838         * tree.h (vector_cst_int_elt): Remove.
30839         * tree.c (vector_cst_int_elt): Use poly_wide_int for computations,
30840         make static.
30842 2021-01-26  Andrew Stubbs  <ams@codesourcery.com>
30844         * config/gcn/gcn.c (gcn_expand_reduc_scalar): Use move instructions
30845         for V64DFmode min/max reductions.
30847 2021-01-26  Jakub Jelinek  <jakub@redhat.com>
30849         * dwarf2asm.c (dw2_assemble_integer): Handle size twice as large
30850         as DWARF2_ADDR_SIZE if x is not a scalar int by emitting it as
30851         two halves, one with x and the other with const0_rtx, ordered
30852         depending on endianity.
30854 2021-01-26  Alexandre Oliva  <oliva@adacore.com>
30856         * gimplify.c (gimplify_decl_expr): Skip asan marking calls for
30857         temporaries not seen in binding block, and not about to be
30858         added as gimple variables.
30860 2021-01-25  Martin Sebor  <msebor@redhat.com>
30862         PR c++/98646
30863         * tree-ssa-ccp.c (pass_post_ipa_warn::execute): Adjust warning text.
30865 2021-01-25  Martin Liska  <mliska@suse.cz>
30867         * value-prof.c (get_nth_most_common_value): Use %s instead
30868         of %qs string.
30870 2021-01-25  Jakub Jelinek  <jakub@redhat.com>
30872         PR debug/98811
30873         * configure.ac (HAVE_AS_GDWARF_5_DEBUG_FLAG): Only define if
30874         readelf -wi is able to read the emitted .debug_info back.
30875         * configure: Regenerated.
30877 2021-01-25  Martin Liska  <mliska@suse.cz>
30879         PR gcov-profile/98739
30880         * common.opt: Add missing sign symbol.
30881         * value-prof.c (get_nth_most_common_value): Restore handling
30882         of PROFILE_REPRODUCIBILITY_PARALLEL_RUNS and
30883         PROFILE_REPRODUCIBILITY_MULTITHREADED.
30885 2021-01-25  Richard Biener  <rguenther@suse.de>
30887         PR middle-end/98807
30888         * tree.c (vector_element_bits): Always use precision of
30889         the element type for boolean vectors.
30891 2021-01-25  Sebastian Huber  <sebastian.huber@embedded-brains.de>
30893         * config/rtems.h (STARTFILE_SPEC): Remove qnolinkcmds.
30894         (ENDFILE_SPEC): Evaluate qnolinkcmds.
30896 2021-01-25  Sebastian Huber  <sebastian.huber@embedded-brains.de>
30898         * config/rtems.h (STARTFILE_SPEC): Remove nostdlib and
30899         nostartfiles handling since this is already done by
30900         LINK_COMMAND_SPEC.  Evaluate qnolinkcmds.
30901         (ENDFILE_SPEC): Remove nostdlib and nostartfiles handling since this
30902         is already done by LINK_COMMAND_SPEC.
30903         (LIB_SPECS): Remove nostdlib and nodefaultlibs handling since
30904         this is already done by LINK_COMMAND_SPEC.  Remove qnolinkcmds
30905         evaluation.
30907 2021-01-25  Jakub Jelinek  <jakub@redhat.com>
30909         PR testsuite/98771
30910         * fold-const-call.c (host_size_t_cst_p): Renamed to ...
30911         (size_t_cst_p): ... this.  Check and store unsigned HOST_WIDE_INT
30912         value rather than host size_t.
30913         (fold_const_call): Change type of s2 from size_t to
30914         unsigned HOST_WIDE_INT.  Use size_t_cst_p instead of
30915         host_size_t_cst_p.  For strncmp calls, pass MIN (s2, SIZE_MAX)
30916         instead of s2 as last argument.
30918 2021-01-25  Tamar Christina  <tamar.christina@arm.com>
30920         * config/arm/iterators.md (rotsplit1, rotsplit2, conj_op, fcmac1,
30921         VCMLA_OP, VCMUL_OP): New.
30922         * config/arm/mve.md (mve_vcmlaq<mve_rot><mode>): Support vec_dup 0.
30923         * config/arm/neon.md (cmul<conj_op><mode>3): New.
30924         * config/arm/unspecs.md (UNSPEC_VCMLA_CONJ, UNSPEC_VCMLA180_CONJ,
30925         UNSPEC_VCMUL_CONJ): New.
30926         * config/arm/vec-common.md (cmul<conj_op><mode>3, arm_vcmla<rot><mode>,
30927         cml<fcmac1><conj_op><mode>4): New.
30929 2021-01-23  Jakub Jelinek  <jakub@redhat.com>
30931         PR testsuite/97301
30932         * config/rs6000/mmintrin.h (__m64): Add __may_alias__ attribute.
30934 2021-01-22  Jonathan Wright  <jonathan.wright@arm.com>
30936         * config/aarch64/aarch64-simd-builtins.def: Add mla builtin
30937         generator macro.
30938         * config/aarch64/arm_neon.h (vmla_s8): Use RTL builtin rather
30939         than asm.
30940         (vmla_s16): Likewise.
30941         (vmla_s32): Likewise.
30942         (vmla_u8): Likewise.
30943         (vmla_u16): Likewise.
30944         (vmla_u32): Likewise.
30945         (vmlaq_s8): Likewise.
30946         (vmlaq_s16): Likewise.
30947         (vmlaq_s32): Likewise.
30948         (vmlaq_u8): Likewise.
30949         (vmlaq_u16): Likewise.
30950         (vmlaq_u32): Likewise.
30952 2021-01-22  David Malcolm  <dmalcolm@redhat.com>
30954         * doc/invoke.texi (GCC_EXTRA_DIAGNOSTIC_OUTPUT): Add @findex
30955         directive.
30957 2021-01-22  Jakub Jelinek  <jakub@redhat.com>
30959         PR debug/98796
30960         * dwarf2out.c (output_file_names): For -gdwarf-5, if there are no
30961         filenames to emit, still emit the required 0 index directory and
30962         filename entries that match DW_AT_comp_dir and DW_AT_name of the
30963         compilation unit.
30965 2021-01-22  Marek Polacek  <polacek@redhat.com>
30967         PR c++/98545
30968         * doc/invoke.texi: Update C++ ABI Version 15 description.
30970 2021-01-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30972         PR tree-optimization/98766
30973         * tree-ssa-math-opts.c (convert_mult_to_fma): Use maybe_le when
30974         comparing against type size with param_avoid_fma_max_bits.
30976 2021-01-22  Richard Biener  <rguenther@suse.de>
30978         PR middle-end/98793
30979         * tree.c (vector_element_bits): Key single-bit bool vector on
30980         integer mode rather than not vector mode.
30982 2021-01-22  Xionghu Luo  <luoxhu@linux.ibm.com>
30984         PR target/98093
30985         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
30986         Generate ARRAY_REF(VIEW_CONVERT_EXPR) for P8 and later
30987         platforms.
30988         * config/rs6000/rs6000.c (rs6000_expand_vector_set_var): Update
30989         to call different path for P8 and P9.
30990         (rs6000_expand_vector_set_var_p9): New function.
30991         (rs6000_expand_vector_set_var_p8): New function.
30993 2021-01-22  Xionghu Luo  <luoxhu@linux.ibm.com>
30995         PR target/79251
30996         PR target/98065
30997         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
30998         Ajdust variable index vec_insert from address dereference to
30999         ARRAY_REF(VIEW_CONVERT_EXPR) tree expression.
31000         * config/rs6000/rs6000-protos.h (rs6000_expand_vector_set_var):
31001         New declaration.
31002         * config/rs6000/rs6000.c (rs6000_expand_vector_set_var): New function.
31004 2021-01-22  Martin Liska  <mliska@suse.cz>
31006         PR gcov-profile/98739
31007         * profile.c (compute_value_histograms): Drop time profile for
31008         -fprofile-reproducible=multithreaded.
31010 2021-01-22  Nathan Sidwell  <nathan@acm.org>
31012         * gcc.c (process_command): Don't check OPT_SPECIAL_input_file
31013         existence here.
31015 2021-01-22  Richard Biener  <rguenther@suse.de>
31017         PR middle-end/98773
31018         * tree-data-ref.c (initalize_matrix_A): Revert previous
31019         change, retaining failing on HOST_WIDE_INT_MIN CHREC_RIGHT.
31021 2021-01-22  Jakub Jelinek  <jakub@redhat.com>
31023         PR tree-optimization/90248
31024         * match.pd (X cmp 0.0 ? 1.0 : -1.0 -> copysign(1, +-X),
31025         X cmp 0.0 ? -1.0 : +1.0 -> copysign(1, -+X)): Remove
31026         simplifications.
31027         (X * (X cmp 0.0 ? 1.0 : -1.0) -> +-abs(X),
31028         X * (X cmp 0.0 ? -1.0 : 1.0) -> +-abs(X)): New simplifications.
31030 2021-01-22  Jakub Jelinek  <jakub@redhat.com>
31032         PR tree-optimization/98255
31033         * tree-dfa.c (get_ref_base_and_extent): For ARRAY_REFs, sign
31034         extend index - low_bound from sizetype's precision rather than index
31035         precision.
31036         (get_addr_base_and_unit_offset_1): Likewise.
31037         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Likewise.
31038         * gimple-fold.c (fold_const_aggregate_ref_1): Likewise.
31040 2021-01-22  Richard Biener  <rguenther@suse.de>
31042         PR tree-optimization/98786
31043         * tree-ssa-phiopt.c (factor_out_conditional_conversion): Avoid
31044         adding new uses of abnormals.  Verify we deal with a conditional
31045         conversion.
31047 2021-01-22  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
31049         PR target/98636
31050         * optc-save-gen.awk: Add arm_fp16_format to checked_options.
31052 2021-01-22  liuhongt  <hongtao.liu@intel.com>
31054         PR target/96891
31055         PR target/98348
31056         * config/i386/sse.md (VI_128_256): New mode iterator.
31057         (*avx_cmp<mode>3_1, *avx_cmp<mode>3_2, *avx_cmp<mode>3_3,
31058          *avx_cmp<mode>3_4, *avx2_eq<mode>3, *avx2_pcmp<mode>3_1,
31059          *avx2_pcmp<mode>3_2, *avx2_gt<mode>3): New
31060         define_insn_and_split to lower avx512 vector comparison to avx
31061         version when dest is vector.
31062         (*<avx512>_cmp<mode>3,*<avx512>_cmp<mode>3,*<avx512>_ucmp<mode>3):
31063         define_insn_and_split for negating the comparison result.
31064         * config/i386/predicates.md (float_vector_all_ones_operand):
31065         New predicate.
31066         * config/i386/i386-expand.c (ix86_expand_sse_movcc): Use
31067         general NOT operator without UNSPEC_MASKOP.
31069 2021-01-21  Vladimir N. Makarov  <vmakarov@redhat.com>
31071         PR rtl-optimization/98777
31072         * lra-int.h (lra_pmode_pseudo): New extern.
31073         * lra.c (lra_pmode_pseudo): New global.
31074         (lra): Set it up.
31075         * lra-eliminations.c (eliminate_regs_in_insn): Use it.
31077 2021-01-21  Ilya Leoshkevich  <iii@linux.ibm.com>
31079         * fwprop.c (fwprop_propagation::classify_result): Allow
31080         (subreg (mem)) simplifications.
31082 2021-01-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31084         * config/aarch64/aarch64-simd.md (aarch64_sqdml<SBINQOPS:as>l<mode>):
31085         Split into...
31086         (aarch64_sqdmlal<mode>): ... This...
31087         (aarch64_sqdmlsl<mode>): ... And this.
31088         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>): Split into...
31089         (aarch64_sqdmlal_lane<mode>): ... This...
31090         (aarch64_sqdmlsl_lane<mode>): ... And this.
31091         (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>): Split into...
31092         (aarch64_sqdmlsl_laneq<mode>): ... This...
31093         (aarch64_sqdmlal_laneq<mode>):  ... And this.
31094         (aarch64_sqdml<SBINQOPS:as>l_n<mode>): Split into...
31095         (aarch64_sqdmlsl_n<mode>): ... This...
31096         (aarch64_sqdmlal_n<mode>): ... And this.
31097         (aarch64_sqdml<SBINQOPS:as>l2<mode>_internal): Split into...
31098         (aarch64_sqdmlal2<mode>_internal): ... This...
31099         (aarch64_sqdmlsl2<mode>_internal): ... And this.
31101 2021-01-21  Christophe Lyon  <christophe.lyon@linaro.org>
31103         * config/arm/arm_mve.h (__arm_vcmpneq_s8): Fix return type.
31105 2021-01-21  Andrea Corallo  <andrea.corallo@arm.com>
31107         PR target/96372
31108         * doc/sourcebuild.texi (arm_thumb2_no_arm_v8_1_lob): Document.
31110 2021-01-21  liuhongt  <hongtao.liu@intel.com>
31112         PR rtl-optimization/98694
31113         * regcprop.c (copy_value): If SRC had been assigned a mode
31114         narrower than the copy, we can't link DEST into the chain even
31115         they have same hard_regno_nregs(i.e. HImode/SImode in i386
31116         backend).
31118 2021-01-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31120         * config/aarch64/aarch64-simd.md (aarch64_get_lane<mode>):
31121         Convert to define_insn_and_split.  Split into simple move when moving
31122         bottom element.
31124 2021-01-20  Segher Boessenkool  <segher@kernel.crashing.org>
31126         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Change assert.
31127         Adjust comment.  Simplify code.
31129 2021-01-20  Jakub Jelinek  <jakub@redhat.com>
31131         PR debug/98765
31132         * dwarf2out.c (reset_indirect_string): Also reset indirect strings
31133         with DW_FORM_line_strp form.
31134         (prune_unused_types_update_strings): Don't add into debug_str_hash
31135         indirect strings with DW_FORM_line_strp form.
31136         (adjust_name_comp_dir): New function.
31137         (dwarf2out_finish): Call it on CU DIEs after resetting
31138         debug_line_str_hash.
31140 2021-01-20  Vladimir N. Makarov  <vmakarov@redhat.com>
31142         PR rtl-optimization/98722
31143         * lra-eliminations.c (eliminate_regs_in_insn): Check that target
31144         has no 3-op add insn to transform insns containing two pluses.
31146 2021-01-20  Richard Biener  <rguenther@suse.de>
31148         * hwint.h (add_hwi): New function.
31149         (mul_hwi): Likewise.
31150         * tree-data-ref.c (initialize_matrix_A): Properly translate
31151         tree constants and avoid HOST_WIDE_INT_MIN.
31152         (lambda_matrix_row_add): Avoid undefined integer overflow
31153         and return true on such overflow.
31154         (lambda_matrix_right_hermite): Handle overflow from
31155         lambda_matrix_row_add gracefully.  Simplify previous fix.
31156         (analyze_subscript_affine_affine): Likewise.
31158 2021-01-20  Eugene Rozenfeld  <erozen@microsoft.com>
31160         PR tree-optimization/96674
31161         * match.pd: New patterns: x < y || y == XXX_MIN --> x <= y - 1
31162         x >= y && y != XXX_MIN --> x > y - 1
31164 2021-01-20  Richard Sandiford  <richard.sandiford@arm.com>
31166         PR tree-optimization/98535
31167         * tree-vect-slp.c (duplicate_and_interleave): Use quick_grow_cleared.
31168         If the high and low permutes are the same, remove the high permutes
31169         from the working set and only continue with the low ones.
31171 2021-01-20  Jakub Jelinek  <jakub@redhat.com>
31173         PR tree-optimization/98721
31174         * builtins.c (access_ref::inform_access): Don't assume
31175         SSA_NAME_IDENTIFIER must be non-NULL.  Print messages about
31176         object whenever allocfn is NULL, rather than only when DECL_P
31177         is true.  Use %qE instead of %qD for that.  Formatting fixes.
31179 2021-01-20  Richard Biener  <rguenther@suse.de>
31181         PR tree-optimization/98758
31182         * tree-data-ref.c (int_divides_p): Use lambda_int arguments.
31183         (lambda_matrix_right_hermite): Avoid undefinedness with
31184         signed integer abs and multiplication.
31185         (analyze_subscript_affine_affine): Use lambda_int.
31187 2021-01-20  David Malcolm  <dmalcolm@redhat.com>
31189         PR debug/98751
31190         * dwarf2out.c (output_line_info): Rename static variable
31191         "generation", moving it out of the function to...
31192         (output_line_info_generation): New.
31193         (init_sections_and_labels): Likewise, renaming the variable to...
31194         (init_sections_and_labels_generation): New.
31195         (dwarf2out_c_finalize): Reset the new variables.
31197 2021-01-19  Martin Sebor  <msebor@redhat.com>
31199         PR middle-end/98664
31200         * tree-ssa-live.c (remove_unused_scope_block_p): Keep scopes for
31201         all functions, even if they're not declared artificial or inline.
31202         * tree.c (tree_inlined_location): Use macro expansion location
31203         only if scope traversal fails to expose one.
31205 2021-01-19  Richard Sandiford  <richard.sandiford@arm.com>
31207         PR rtl-optimization/92294
31208         * alias.c (compare_base_symbol_refs): Take an extra parameter
31209         and add the distance between two symbols to it.  Enshrine in
31210         comments that -1 means "either 0 or 1, but we can't tell
31211         which at compile time".
31212         (memrefs_conflict_p): Update call accordingly.
31213         (rtx_equal_for_memref_p): Likewise.  Take the distance between symbols
31214         into account.
31216 2021-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31218         * config/aarch64/aarch64-simd-builtins.def (sqshl, uqshl,
31219         sqrshl, uqrshl, sqadd, uqadd, sqsub, uqsub, suqadd, usqadd, sqmovn,
31220         uqmovn, sqxtn2, uqxtn2, sqabs, sqneg, sqdmlal, sqdmlsl, sqdmlal_lane,
31221         sqdmlsl_lane, sqdmlal_laneq, sqdmlsl_laneq, sqdmlal_n, sqdmlsl_n,
31222         sqdmlal2, sqdmlsl2, sqdmlal2_lane, sqdmlsl2_lane, sqdmlal2_laneq,
31223         sqdmlsl2_laneq, sqdmlal2_n, sqdmlsl2_n, sqdmull, sqdmull_lane,
31224         sqdmull_laneq, sqdmull_n, sqdmull2, sqdmull2_lane, sqdmull2_laneq,
31225         sqdmull2_n, sqdmulh, sqrdmulh, sqdmulh_lane, sqdmulh_laneq,
31226         sqrdmulh_lane, sqrdmulh_laneq, sqshrun_n, sqrshrun_n, sqshrn_n,
31227         uqshrn_n, sqrshrn_n, uqrshrn_n, sqshlu_n, sqshl_n, uqshl_n, sqrdmlah,
31228         sqrdmlsh, sqrdmlah_lane, sqrdmlsh_lane, sqrdmlah_laneq, sqrdmlsh_laneq,
31229         sqmovun): Use NONE flags.
31231 2021-01-19  Richard Biener  <rguenther@suse.de>
31233         PR ipa/98330
31234         * ipa-modref.c (analyze_stmt): Only record a summary for a
31235         direct call.
31237 2021-01-19  Richard Biener  <rguenther@suse.de>
31239         PR middle-end/98638
31240         * tree-ssanames.c (fini_ssanames): Zero SSA_NAME_DEF_STMT.
31242 2021-01-19  Daniel Hellstrom  <daniel@gaisler.com>
31244         * config/sparc/rtemself.h (TARGET_OS_CPP_BUILTINS): Add
31245         built-in define __FIX_LEON3FT_TN0018.
31247 2021-01-19  Richard Biener  <rguenther@suse.de>
31249         PR ipa/97673
31250         * tree-inline.c (tree_function_versioning): Set input_location
31251         to UNKNOWN_LOCATION throughout the function.
31253 2021-01-19  Tobias Burnus  <tobias@codesourcery.com>
31255         PR fortran/98476
31256         * omp-low.c (lower_omp_target): Handle nonpointer is_device_ptr.
31258 2021-01-19  Martin Jambor  <mjambor@suse.cz>
31260         PR ipa/98690
31261         * ipa-sra.c (ssa_name_only_returned_p): New parameter fun.  Check
31262         whether non-call exceptions allow removal of a statement.
31263         (isra_analyze_call): Pass the appropriate function to
31264         ssa_name_only_returned_p.
31266 2021-01-19  Geng Qi  <gengqi@linux.alibaba.com>
31268         * config/riscv/arch-canonicalize (longext_sort): New function for
31269          sorting 'multi-letter'.
31270         * config/riscv/multilib-generator: Adjusting the loop of 'alt' in
31271         'alts'. The 'arch' may not be the first of 'alts'.
31272         (_expand_combination): Add underline for the 'ext' without '*'.
31273         This is because, a single-letter extension can always be treated well
31274         with a '_' prefix, but it cannot be separated out if it is appended
31275         to a multi-letter.
31277 2021-01-18  Vladimir N. Makarov  <vmakarov@redhat.com>
31279         PR target/97847
31280         * ira.c (ira): Skip abnormal critical edge splitting.
31282 2021-01-18  Jakub Jelinek  <jakub@redhat.com>
31284         PR tree-optimization/98727
31285         * tree-ssa-math-opts.c (match_arith_overflow): Fix up computation of
31286         second .MUL_OVERFLOW operand for signed multiplication with overflow
31287         checking if the second operand of multiplication is not constant.
31289 2021-01-18  David Edelsohn  <dje.gcc@gmail.com>
31291         * doc/invoke.texi (-gdwarf): TPF defaults to version 2 and AIX
31292         defaults to version 4.
31294 2021-01-18  David Malcolm  <dmalcolm@redhat.com>
31296         * attribs.h (fndecl_dealloc_argno): New decl.
31297         * builtins.c (call_dealloc_argno): Split out second half of
31298         function into...
31299         (fndecl_dealloc_argno): New.
31300         * doc/extend.texi (Common Function Attributes): Document the
31301         interaction between the analyzer and the malloc attribute.
31302         * doc/invoke.texi (Static Analyzer Options): Likewise.
31304 2021-01-17  David Edelsohn  <dje.gcc@gmail.com>
31306         * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Override
31307         dwarf_version to 4.
31308         * config/rs6000/aix72.h (SUBTARGET_OVERRIDE_OPTIONS): Same.
31310 2021-01-17  Martin Jambor  <mjambor@suse.cz>
31312         PR ipa/98222
31313         * cgraph.c (clone_of_p): Check also former_clone_of as we climb
31314         the clone tree.
31316 2021-01-17  Mark Wielaard  <mark@klomp.org>
31318         * common.opt (gdwarf-): Init(5).
31319         * doc/invoke.texi (-gdwarf): Document default to 5.
31321 2021-01-16  Kwok Cheung Yeung  <kcy@codesourcery.com>
31323         * builtin-types.def
31324         (BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT): Rename
31325         to...
31326         (BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT_PTR):
31327         ...this.  Add extra argument.
31328         * gimplify.c (omp_default_clause): Ensure that event handle is
31329         firstprivate in a task region.
31330         (gimplify_scan_omp_clauses): Handle OMP_CLAUSE_DETACH.
31331         (gimplify_adjust_omp_clauses): Likewise.
31332         * omp-builtins.def (BUILT_IN_GOMP_TASK): Change function type to
31333         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT_PTR.
31334         * omp-expand.c (expand_task_call): Add GOMP_TASK_FLAG_DETACH to flags
31335         if detach clause specified.  Add detach argument when generating
31336         call to GOMP_task.
31337         * omp-low.c (scan_sharing_clauses): Setup data environment for detach
31338         clause.
31339         (finish_taskreg_scan): Move field for variable containing the event
31340         handle to the front of the struct.
31341         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DETACH.  Fix
31342         ordering.
31343         * tree-nested.c (convert_nonlocal_omp_clauses): Handle
31344         OMP_CLAUSE_DETACH clause.
31345         (convert_local_omp_clauses): Handle OMP_CLAUSE_DETACH clause.
31346         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_DETACH.
31347         * tree.c (omp_clause_num_ops): Add entry for OMP_CLAUSE_DETACH.
31348         Fix ordering.
31349         (omp_clause_code_name): Add entry for OMP_CLAUSE_DETACH.  Fix
31350         ordering.
31351         (walk_tree_1): Handle OMP_CLAUSE_DETACH.
31353 2021-01-16  Sebastian Huber  <sebastian.huber@embedded-brains.de>
31355         * config/nios2/t-rtems: Reset all MULTILIB_* variables.  Shorten
31356         multilib directory names.  Use MULTILIB_REQUIRED instead of
31357         MULTILIB_EXCEPTIONS.  Add -mhw-mul -mhw-mulx -mhw-div
31358         -mcustom-fpu-cfg=fph2 multilib.
31360 2021-01-16  Sebastian Huber  <sebastian.huber@embedded-brains.de>
31362         * config/nios2/nios2.c (NIOS2_FPU_CONFIG_NUM): Adjust value.
31363         (nios2_init_fpu_configs): Provide register values for new
31364         -mcustom-fpu-cfg=fph2 option variant.
31365         * doc/invoke.texi (-mcustom-fpu-cfg=fph2): Document new option
31366         variant.
31368 2021-01-16  Sebastian Huber  <sebastian.huber@embedded-brains.de>
31370         * config/nios2/nios2.c (nios2_custom_check_insns): Remove
31371         custom instruction warnings.
31373 2021-01-16  Jakub Jelinek  <jakub@redhat.com>
31375         PR tree-optimization/96669
31376         * match.pd ((CST << x) & 1 -> x == 0): New simplification.
31378 2021-01-16  Jakub Jelinek  <jakub@redhat.com>
31380         PR tree-optimization/96271
31381         * passes.def: Pass false argument to first two pass_cd_dce
31382         instances and true to last instance.  Add comment that
31383         last instance rewrites no longer addressed locals.
31384         * tree-ssa-dce.c (pass_cd_dce): Add update_address_taken_p member and
31385         initialize it.
31386         (pass_cd_dce::set_pass_param): New method.
31387         (pass_cd_dce::execute): Return TODO_update_address_taken from
31388         last cd_dce instance.
31390 2021-01-15  Carl Love  <cel@us.ibm.com>
31392         * config/rs6000/altivec.h (vec_mulh, vec_div, vec_dive, vec_mod):
31393         New defines.
31394         * config/rs6000/altivec.md (VIlong): Move define to file vsx.md.
31395         * config/rs6000/rs6000-builtin.def (DIVES_V4SI, DIVES_V2DI,
31396         DIVEU_V4SI, DIVEU_V2DI, DIVS_V4SI, DIVS_V2DI, DIVU_V4SI,
31397         DIVU_V2DI, MODS_V2DI, MODS_V4SI, MODU_V2DI, MODU_V4SI,
31398         MULHS_V2DI, MULHS_V4SI, MULHU_V2DI, MULHU_V4SI, MULLD_V2DI):
31399         Add builtin define.
31400         (MULH, DIVE, MOD):  Add new BU_P10_OVERLOAD_2 definitions.
31401         * config/rs6000/rs6000-call.c (VSX_BUILTIN_VEC_DIV,
31402         VSX_BUILTIN_VEC_DIVE, P10_BUILTIN_VEC_MOD, P10_BUILTIN_VEC_MULH):
31403         New overloaded definitions.
31404         (builtin_function_type) [P10V_BUILTIN_DIVEU_V4SI,
31405         P10V_BUILTIN_DIVEU_V2DI, P10V_BUILTIN_DIVU_V4SI,
31406         P10V_BUILTIN_DIVU_V2DI, P10V_BUILTIN_MODU_V2DI,
31407         P10V_BUILTIN_MODU_V4SI, P10V_BUILTIN_MULHU_V2DI,
31408         P10V_BUILTIN_MULHU_V4SI]: Add case
31409         statement for builtins.
31410         * config/rs6000/rs6000.md (bits): Add new attribute sizes V4SI, V2DI.
31411         * config/rs6000/vsx.md (VIlong): Moved from config/rs6000/altivec.md.
31412         (UNSPEC_VDIVES, UNSPEC_VDIVEU): New unspec definitions.
31413         (vsx_mul_v2di): Add if TARGET_POWER10 statement.
31414         (vsx_udiv_v2di): Add if TARGET_POWER10 statement.
31415         (dives_<mode>, diveu_<mode>, div<mode>3, uvdiv<mode>3,
31416         mods_<mode>, modu_<mode>, mulhs_<mode>, mulhu_<mode>, mulv2di3):
31417         Add define_insn, mode is VIlong.
31418         * doc/extend.texi (vec_mulh, vec_mul, vec_div, vec_dive, vec_mod):
31419         Add builtin descriptions.
31421 2021-01-15  Eric Botcazou  <ebotcazou@adacore.com>
31423         * final.c (final_start_function_1): Reset force_source_line.
31425 2021-01-15  Jakub Jelinek  <jakub@redhat.com>
31427         PR tree-optimization/96669
31428         * match.pd (((1 << A) & 1) != 0 -> A == 0,
31429         ((1 << A) & 1) == 0 -> A != 0): Generalize for 1s replaced by
31430         possibly different power of two constants and to right shift too.
31432 2021-01-15  Jakub Jelinek  <jakub@redhat.com>
31434         PR tree-optimization/96681
31435         * match.pd ((x < 0) ^ (y < 0) to (x ^ y) < 0): New simplification.
31436         ((x >= 0) ^ (y >= 0) to (x ^ y) < 0): Likewise.
31437         ((x < 0) ^ (y >= 0) to (x ^ y) >= 0): Likewise.
31438         ((x >= 0) ^ (y < 0) to (x ^ y) >= 0): Likewise.
31440 2021-01-15  Alexandre Oliva  <oliva@adacore.com>
31442         * opts.c (gen_command_line_string): Exclude -dumpbase-ext.
31444 2021-01-15  Tamar Christina  <tamar.christina@arm.com>
31446         * config/aarch64/aarch64-simd.md (cml<fcmac1><conj_op><mode>4,
31447         cmul<conj_op><mode>3): New.
31448         * config/aarch64/iterators.md (UNSPEC_FCMUL,
31449         UNSPEC_FCMUL180, UNSPEC_FCMLA_CONJ, UNSPEC_FCMLA180_CONJ,
31450         UNSPEC_CMLA_CONJ, UNSPEC_CMLA180_CONJ, UNSPEC_CMUL, UNSPEC_CMUL180,
31451         FCMLA_OP, FCMUL_OP, conj_op, rotsplit1, rotsplit2, fcmac1, sve_rot1,
31452         sve_rot2, SVE2_INT_CMLA_OP, SVE2_INT_CMUL_OP, SVE2_INT_CADD_OP): New.
31453         (rot): Add UNSPEC_FCMUL, UNSPEC_FCMUL180.
31454         (rot_op): Renamed to conj_op.
31455         * config/aarch64/aarch64-sve.md (cml<fcmac1><conj_op><mode>4,
31456         cmul<conj_op><mode>3): New.
31457         * config/aarch64/aarch64-sve2.md (cml<fcmac1><conj_op><mode>4,
31458         cmul<conj_op><mode>3): New.
31460 2021-01-15  David Malcolm  <dmalcolm@redhat.com>
31462         PR bootstrap/98696
31463         * diagnostic.c
31464         (selftest::test_print_parseable_fixits_bytes_vs_display_columns):
31465         Escape the tempfile name when constructing the expected output.
31467 2021-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31469         * config/aarch64/aarch64-simd.md (*aarch64_<su>mlsl_hi<mode>):
31470         Rename to...
31471         (aarch64_<su>mlsl_hi<mode>): ... This.
31472         (aarch64_<su>mlsl_hi<mode>): Define.
31473         (*aarch64_<su>mlsl<mode): Rename to...
31474         (aarch64_<su>mlsl<mode): ... This.
31475         * config/aarch64/aarch64-simd-builtins.def (smlsl, umlsl,
31476         smlsl_hi, umlsl_hi): Define builtins.
31477         * config/aarch64/arm_neon.h (vmlsl_high_s8, vmlsl_high_s16,
31478         vmlsl_high_s32, vmlsl_high_u8, vmlsl_high_u16, vmlsl_high_u32,
31479         vmlsl_s8, vmlsl_s16, vmlsl_s32, vmlsl_u8,
31480         vmlsl_u16, vmlsl_u32): Reimplement with builtins.
31482 2021-01-15  Uroš Bizjak  <ubizjak@gmail.com>
31484         * config/i386/i386-c.c (ix86_target_macros):
31485         Use cpp_define_formatted for __SIZEOF_FLOAT80__ definition.
31487 2021-01-15  Richard Sandiford  <richard.sandiford@arm.com>
31489         PR target/88836
31490         * config.gcc (aarch64*-*-*): Add aarch64-cc-fusion.o to extra_objs.
31491         * Makefile.in (RTL_SSA_H): New variable.
31492         * config/aarch64/t-aarch64 (aarch64-cc-fusion.o): New rule.
31493         * config/aarch64/aarch64-protos.h (make_pass_cc_fusion): Declare.
31494         * config/aarch64/aarch64-passes.def: Add pass_cc_fusion after
31495         pass_combine.
31496         * config/aarch64/aarch64-cc-fusion.cc: New file.
31498 2021-01-15  Richard Sandiford  <richard.sandiford@arm.com>
31500         * recog.h (insn_change_watermark::~insn_change_watermark): Avoid
31501         calling cancel_changes for changes that no longer exist.
31503 2021-01-15  Richard Sandiford  <richard.sandiford@arm.com>
31505         * rtl-ssa/functions.h (function_info::ref_defs): Rename to...
31506         (function_info::reg_defs): ...this.
31507         * rtl-ssa/member-fns.inl (function_info::ref_defs): Rename to...
31508         (function_info::reg_defs): ...this.
31510 2021-01-15  Christophe Lyon  <christophe.lyon@linaro.org>
31512         PR target/71233
31513         * config/arm/arm_neon.h (vceqz_p64, vceqq_p64, vceqzq_p64): New.
31515 2021-01-15  Christophe Lyon  <christophe.lyon@linaro.org>
31517         Revert:
31518         2021-01-15  Christophe Lyon  <christophe.lyon@linaro.org>
31520         PR target/71233
31521         * config/arm/arm_neon.h (vceqz_p64, vceqq_p64, vceqzq_p64): New.
31523 2021-01-15  Richard Biener  <rguenther@suse.de>
31525         PR tree-optimization/96376
31526         * tree-vect-stmts.c (get_load_store_type): Disregard alignment
31527         for VMAT_INVARIANT.
31529 2021-01-15  Martin Liska  <mliska@suse.cz>
31531         * doc/install.texi: Document that some tests need pytest module.
31532         * doc/sourcebuild.texi: Likewise.
31534 2021-01-15  Christophe Lyon  <christophe.lyon@linaro.org>
31536         PR target/71233
31537         * config/arm/arm_neon.h (vceqz_p64, vceqq_p64, vceqzq_p64): New.
31539 2021-01-15  Christophe Lyon  <christophe.lyon@linaro.org>
31541         * config/arm/mve.md (mve_vshrq_n_s<mode>_imm): New entry.
31542         (mve_vshrq_n_u<mode>_imm): Likewise.
31543         * config/arm/neon.md (vashr<mode>3, vlshr<mode>3): Move to ...
31544         * config/arm/vec-common.md: ... here.
31546 2021-01-15  Christophe Lyon  <christophe.lyon@linaro.org>
31548         * config/arm/mve.md (mve_vshlq_<supf><mode>): Move to
31549         vec-commond.md.
31550         * config/arm/neon.md (vashl<mode>3): Delete.
31551         * config/arm/vec-common.md (mve_vshlq_<supf><mode>): New.
31552         (vasl<mode>3): New expander.
31554 2021-01-15  Richard Biener  <rguenther@suse.de>
31556         PR tree-optimization/98685
31557         * tree-vect-slp.c (vect_schedule_slp_node): Refactor handling
31558         of vector extern defs.
31560 2021-01-14  David Malcolm  <dmalcolm@redhat.com>
31562         PR jit/98586
31563         * diagnostic.c (diagnostic_kind_text): Break out this array
31564         from...
31565         (diagnostic_build_prefix): ...here.
31566         (fancy_abort): Detect when diagnostic_initialize has not yet been
31567         called and fall back to a minimal implementation of printing the
31568         ICE, rather than segfaulting in internal_error.
31570 2021-01-14  David Malcolm  <dmalcolm@redhat.com>
31572         * diagnostic.c (diagnostic_initialize): Eliminate
31573         parseable_fixits_p in favor of initializing extra_output_kind from
31574         GCC_EXTRA_DIAGNOSTIC_OUTPUT.
31575         (convert_column_unit): New function, split out from...
31576         (diagnostic_converted_column): ...this.
31577         (print_parseable_fixits): Add "column_unit" and "tabstop" params.
31578         Use them to call convert_column_unit on the column values.
31579         (diagnostic_report_diagnostic): Eliminate conditional on
31580         parseable_fixits_p in favor of a switch statement on
31581         extra_output_kind, passing the appropriate values to the new
31582         params of print_parseable_fixits.
31583         (selftest::test_print_parseable_fixits_none): Update for new
31584         params of print_parseable_fixits.
31585         (selftest::test_print_parseable_fixits_insert): Likewise.
31586         (selftest::test_print_parseable_fixits_remove): Likewise.
31587         (selftest::test_print_parseable_fixits_replace): Likewise.
31588         (selftest::test_print_parseable_fixits_bytes_vs_display_columns):
31589         New.
31590         (selftest::diagnostic_c_tests): Call it.
31591         * diagnostic.h (enum diagnostics_extra_output_kind): New.
31592         (diagnostic_context::parseable_fixits_p): Delete field in favor
31593         of...
31594         (diagnostic_context::extra_output_kind): ...this new field.
31595         * doc/invoke.texi (Environment Variables): Add
31596         GCC_EXTRA_DIAGNOSTIC_OUTPUT.
31597         * opts.c (common_handle_option): Update handling of
31598         OPT_fdiagnostics_parseable_fixits for change to diagnostic_context
31599         fields.
31601 2021-01-14  Tamar Christina  <tamar.christina@arm.com>
31603         * tree-vect-slp-patterns.c (class complex_operations_pattern,
31604         complex_operations_pattern::matches,
31605         complex_operations_pattern::recognize,
31606         complex_operations_pattern::build): New.
31607         (slp_patterns): Use it.
31609 2021-01-14  Tamar Christina  <tamar.christina@arm.com>
31611         * internal-fn.def (COMPLEX_FMS, COMPLEX_FMS_CONJ): New.
31612         * optabs.def (cmls_optab, cmls_conj_optab): New.
31613         * doc/md.texi: Document them.
31614         * tree-vect-slp-patterns.c (class complex_fms_pattern,
31615         complex_fms_pattern::matches, complex_fms_pattern::recognize,
31616         complex_fms_pattern::build): New.
31618 2021-01-14  Tamar Christina  <tamar.christina@arm.com>
31620         * internal-fn.def (COMPLEX_FMA, COMPLEX_FMA_CONJ): New.
31621         * optabs.def (cmla_optab, cmla_conj_optab): New.
31622         * doc/md.texi: Document them.
31623         * tree-vect-slp-patterns.c (vect_match_call_p,
31624         class complex_fma_pattern, vect_slp_reset_pattern,
31625         complex_fma_pattern::matches, complex_fma_pattern::recognize,
31626         complex_fma_pattern::build): New.
31628 2021-01-14  Tamar Christina  <tamar.christina@arm.com>
31630         * internal-fn.def (COMPLEX_MUL, COMPLEX_MUL_CONJ): New.
31631         * optabs.def (cmul_optab, cmul_conj_optab): New.
31632         * doc/md.texi: Document them.
31633         * tree-vect-slp-patterns.c (vect_match_call_complex_mla,
31634         vect_normalize_conj_loc, is_eq_or_top, vect_validate_multiplication,
31635         vect_build_combine_node, class complex_mul_pattern,
31636         complex_mul_pattern::matches, complex_mul_pattern::recognize,
31637         complex_mul_pattern::build): New.
31639 2021-01-14  Tamar Christina  <tamar.christina@arm.com>
31641         * tree-vect-slp.c (optimize_load_redistribution_1): New.
31642         (optimize_load_redistribution, vect_is_slp_load_node): New.
31643         (vect_match_slp_patterns): Use it.
31645 2021-01-14  Tamar Christina  <tamar.christina@arm.com>
31647         * tree-vect-slp-patterns.c (complex_add_pattern::build):
31648         Elide nodes.
31650 2021-01-14  Thomas Schwinge  <thomas@codesourcery.com>
31652         * config/gcn/mkoffload.c (main): Create an offload image only in
31653         64-bit configurations.
31655 2021-01-14  H.J. Lu  <hjl.tools@gmail.com>
31657         PR target/98667
31658         * config/i386/i386-options.c (ix86_option_override_internal):
31659         Issue an error for -fcf-protection with CF_BRANCH when compiling
31660         for 32-bit non-TARGET_CMOV targets.
31662 2021-01-14  Uroš Bizjak  <ubizjak@gmail.com>
31664         PR target/98671
31665         * config/i386/i386-options.c (ix86_valid_target_attribute_inner_p):
31666         Remove declaration and initialization of shadow variable "ret".
31667         (ix86_option_override_internal): Remove delcaration of
31668         shadow variable "i".  Redeclare shadowed variable to unsigned.
31669         * common/config/i386/i386-common.c (pta_size): Redeclare to unsigned.
31670         * config/i386/i386-builtins.c (get_builtin_code_for_version):
31671         Update for redeclaration.
31672         * config/i386/i386.h (pta_size): Ditto.
31674 2021-01-14  Richard Biener  <rguenther@suse.de>
31676         PR tree-optimization/98674
31677         * tree-data-ref.c (base_supports_access_fn_components_p): New.
31678         (initialize_data_dependence_relation): For two bases without
31679         possible access fns resort to type size equality when determining
31680         shape compatibility.
31682 2021-01-14  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
31684         PR target/66791
31685         * config/arm/arm_neon.h: Replace calls to __builtin_vcge* by
31686         <=, >= operators in vcle and vcge intrinsics respectively.
31687         * config/arm/arm_neon_builtins.def: Remove entry for
31688         vcge and vcgeu.
31690 2021-01-14  Uroš Bizjak  <ubizjak@gmail.com>
31692         PR target/98671
31693         * config/i386/i386-options.c (ix86_function_specific_save):
31694         Remove redundant assignment to opts->x_ix86_branch_cost.
31695         * config/i386/i386.c (ix86_prefetch_sse):
31696         Rename from x86_prefetch_sse.  Update all uses.
31697         * config/i386/i386.h: Update for rename.
31698         * config/i386/i386-options.h: Ditto.
31700 2021-01-14  Jakub Jelinek  <jakub@redhat.com>
31702         PR target/98670
31703         * config/i386/sse.md (*sse4_1_zero_extendv8qiv8hi2_3,
31704         *sse4_1_zero_extendv4hiv4si2_3, *sse4_1_zero_extendv2siv2di2_3):
31705         Use Bm instead of m for non-avx.  Add isa attribute.
31707 2021-01-14  Jakub Jelinek  <jakub@redhat.com>
31709         PR tree-optimization/96688
31710         * match.pd (~(X >> Y) -> ~X >> Y): New simplification if
31711         ~X can be simplified.
31713 2021-01-14  Richard Sandiford  <richard.sandiford@arm.com>
31715         * tree-vect-stmts.c (vect_model_load_cost): Account for unused
31716         IFN_LOAD_LANES results.
31718 2021-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31720         * config/aarch64/aarch64-simd.md (aarch64_<su>xtl<mode>):
31721         Define.
31722         (aarch64_xtn<mode>): Likewise.
31723         * config/aarch64/aarch64-simd-builtins.def (sxtl, uxtl, xtn):
31724         Define
31725         builtins.
31726         * config/aarch64/arm_neon.h (vmovl_s8): Reimplement using
31727         builtin.
31728         (vmovl_s16): Likewise.
31729         (vmovl_s32): Likewise.
31730         (vmovl_u8): Likewise.
31731         (vmovl_u16): Likewise.
31732         (vmovl_u32): Likewise.
31733         (vmovn_s16): Likewise.
31734         (vmovn_s32): Likewise.
31735         (vmovn_s64): Likewise.
31736         (vmovn_u16): Likewise.
31737         (vmovn_u32): Likewise.
31738         (vmovn_u64): Likewise.
31740 2021-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31742         * config/aarch64/aarch64-simd.md (aarch64_<su>qxtn2<mode>_le):
31743         Define.
31744         (aarch64_<su>qxtn2<mode>_be): Likewise.
31745         (aarch64_<su>qxtn2<mode>): Likewise.
31746         * config/aarch64/aarch64-simd-builtins.def (sqxtn2, uqxtn2):
31747         Define builtins.
31748         * config/aarch64/iterators.md (SAT_TRUNC): Define code_iterator.
31749         (su): Handle ss_truncate and us_truncate.
31750         * config/aarch64/arm_neon.h (vqmovn_high_s16): Reimplement using
31751         builtin.
31752         (vqmovn_high_s32): Likewise.
31753         (vqmovn_high_s64): Likewise.
31754         (vqmovn_high_u16): Likewise.
31755         (vqmovn_high_u32): Likewise.
31756         (vqmovn_high_u64): Likewise.
31758 2021-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31760         * config/aarch64/aarch64-simd.md (aarch64_xtn2<mode>_le):
31761         Define.
31762         (aarch64_xtn2<mode>_be): Likewise.
31763         (aarch64_xtn2<mode>): Likewise.
31764         * config/aarch64/aarch64-simd-builtins.def (xtn2): Define
31765         builtins.
31766         * config/aarch64/arm_neon.h (vmovn_high_s16): Reimplement using
31767         builtins.
31768         (vmovn_high_s32): Likewise.
31769         (vmovn_high_s64): Likewise.
31770         (vmovn_high_u16): Likewise.
31771         (vmovn_high_u32): Likewise.
31772         (vmovn_high_u64): Likewise.
31774 2021-01-13  Stafford Horne  <shorne@gmail.com>
31776         * config/or1k/or1k.h (ASM_PREFERRED_EH_DATA_FORMAT): New macro.
31778 2021-01-13  Stafford Horne  <shorne@gmail.com>
31780         * config/or1k/linux.h (TARGET_ASM_FILE_END): Define macro.
31782 2021-01-13  Stafford Horne  <shorne@gmail.com>
31784         * config/or1k/or1k.h (TARGET_CPU_CPP_BUILTINS): Add builtin
31785           define for __or1k_hard_float__.
31787 2021-01-13  Stafford Horne  <shorne@gmail.com>
31789         * config/or1k/or1k.h (NO_PROFILE_COUNTERS): Define as 1.
31790         (PROFILE_HOOK): Define to call _mcount.
31791         (FUNCTION_PROFILER): Change from abort to no-op.
31793 2021-01-13  Jakub Jelinek  <jakub@redhat.com>
31795         PR tree-optimization/96691
31796         * match.pd ((~X | C) ^ D -> (X | C) ^ (~D ^ C),
31797         (~X & C) ^ D -> (X & C) ^ (D ^ C)): New simplifications if
31798         (~D ^ C) or (D ^ C) can be simplified.
31800 2021-01-13  Richard Biener  <rguenther@suse.de>
31802         PR tree-optimization/92645
31803         * match.pd (BIT_FIELD_REF to conversion): Delay canonicalization
31804         until after vector lowering.
31806 2021-01-13  Richard Sandiford  <richard.sandiford@arm.com>
31808         * config/aarch64/aarch64-sve.md (fnma<mode>4): Extend from SVE_FULL_I
31809         to SVE_I.
31810         (@aarch64_pred_fnma<mode>, cond_fnma<mode>, *cond_fnma<mode>_2)
31811         (*cond_fnma<mode>_4, *cond_fnma<mode>_any): Likewise.
31813 2021-01-13  Richard Sandiford  <richard.sandiford@arm.com>
31815         * config/aarch64/aarch64-sve.md (fma<mode>4): Extend from SVE_FULL_I
31816         to SVE_I.
31817         (@aarch64_pred_fma<mode>, cond_fma<mode>, *cond_fma<mode>_2)
31818         (*cond_fma<mode>_4, *cond_fma<mode>_any): Likewise.
31820 2021-01-13  Richard Biener  <rguenther@suse.de>
31822         PR tree-optimization/92645
31823         * tree-vect-slp.c (vect_build_slp_tree_1): Relax supported
31824         BIT_FIELD_REF argument.
31825         (vect_build_slp_tree_2): Record the desired vector type
31826         on the external vector def.
31827         (vectorizable_slp_permutation): Handle required punning
31828         of existing vector defs.
31830 2021-01-13  Richard Sandiford  <richard.sandiford@arm.com>
31832         * rtl-ssa/accesses.h (def_lookup): Fix order of comparison results.
31834 2021-01-13  Richard Sandiford  <richard.sandiford@arm.com>
31836         * config/sh/sh.md (movsf_ie): Remove operands[2] test.
31838 2021-01-13  Samuel Thibault  <samuel.thibault@ens-lyon.org>
31840         * config.gcc [$target == *-*-gnu*]: Enable
31841         'default_gnu_indirect_function'.
31843 2021-01-13  Jakub Jelinek  <jakub@redhat.com>
31845         PR target/95905
31846         * optabs.c (expand_vec_perm_const): Don't force v0 and v1 into
31847         registers before calling targetm.vectorize.vec_perm_const, only after
31848         that.
31849         * config/i386/i386-expand.c (ix86_vectorize_vec_perm_const): Handle
31850         two argument permutation when one operand is zero vector and only
31851         after that force operands into registers.
31852         * config/i386/sse.md (*avx2_zero_extendv16qiv16hi2_1): New
31853         define_insn_and_split pattern.
31854         (*avx512bw_zero_extendv32qiv32hi2_1): Likewise.
31855         (*avx512f_zero_extendv16hiv16si2_1): Likewise.
31856         (*avx2_zero_extendv8hiv8si2_1): Likewise.
31857         (*avx512f_zero_extendv8siv8di2_1): Likewise.
31858         (*avx2_zero_extendv4siv4di2_1): Likewise.
31859         * config/mips/mips.c (mips_vectorize_vec_perm_const): Force operands
31860         into registers.
31861         * config/arm/arm.c (arm_vectorize_vec_perm_const): Likewise.
31862         * config/sparc/sparc.c (sparc_vectorize_vec_perm_const): Likewise.
31863         * config/ia64/ia64.c (ia64_vectorize_vec_perm_const): Likewise.
31864         * config/aarch64/aarch64.c (aarch64_vectorize_vec_perm_const): Likewise.
31865         * config/rs6000/rs6000.c (rs6000_vectorize_vec_perm_const): Likewise.
31866         * config/gcn/gcn.c (gcn_vectorize_vec_perm_const): Likewise.  Use std::swap.
31868 2021-01-13  Martin Liska  <mliska@suse.cz>
31870         PR tree-optimization/98455
31871         * gimple-if-to-switch.cc (condition_info::record_phi_mapping):
31872         Record also virtual PHIs.
31873         (pass_if_to_switch::execute): Return TODO_cleanup_cfg only
31874         conditionally.
31876 2021-01-13  Jonathan Wakely  <jwakely@redhat.com>
31878         * doc/invoke.texi (C++ Modules): Fix typos.
31880 2021-01-13  Richard Biener  <rguenther@suse.de>
31882         PR tree-optimization/98640
31883         * tree-ssa-sccvn.c (visit_nary_op): Do not try to
31884         handle plus or minus from a truncated operand to be
31885         sign-extended.
31887 2021-01-13  Jakub Jelinek  <jakub@redhat.com>
31889         PR target/96938
31890         * config/i386/i386.md (*btr<mode>_1, *btr<mode>_2): New
31891         define_insn_and_split patterns.
31892         (splitter after *btr<mode>_2): New splitter.
31894 2021-01-13  Martin Liska  <mliska@suse.cz>
31896         PR ipa/98652
31897         * cgraphunit.c (analyze_functions): Remove dead code.
31899 2021-01-13  Qian Jianhua  <qianjh@cn.fujitsu.com>
31901         * config/aarch64/aarch64-cost-tables.h (a64fx_extra_costs): New.
31902         * config/aarch64/aarch64.c (a64fx_addrcost_table): New.
31903         (a64fx_regmove_cost, a64fx_vector_cost): New.
31904         (a64fx_tunings): Use the new added cost tables.
31906 2021-01-13  Jakub Jelinek  <jakub@redhat.com>
31908         PR target/95905
31909         * config/i386/predicates.md (pmovzx_parallel): New predicate.
31910         * config/i386/sse.md (*sse4_1_zero_extendv8qiv8hi2_3): New
31911         define_insn_and_split pattern.
31912         (*sse4_1_zero_extendv4hiv4si2_3): Likewise.
31913         (*sse4_1_zero_extendv2siv2di2_3): Likewise.
31915 2021-01-13  Julian Brown  <julian@codesourcery.com>
31917         * config/gcn/gcn.c (gcn_conditional_register_usage): Remove dead code
31918         to fix v0 register.
31920 2021-01-13  Julian Brown  <julian@codesourcery.com>
31922         * config/gcn/gcn.c (gcn_md_reorg): Fix case where EXEC reg is live
31923         on entry to a BB.
31925 2021-01-13  Julian Brown  <julian@codesourcery.com>
31927         * config/gcn/gcn-valu.md (recip<mode>2<exec>, recip<mode>2): Use unspec
31928         for reciprocal-approximation instructions.
31929         (div<mode>3): Use fused multiply-accumulate operations for reciprocal
31930         refinement and division result.
31931         * config/gcn/gcn.md (UNSPEC_RCP): New unspec constant.
31933 2021-01-13  Julian Brown  <julian@codesourcery.com>
31935         * config/gcn/gcn-valu.md (subdf): Rename to...
31936         (subdf3): This.
31938 2021-01-12  Martin Liska  <mliska@suse.cz>
31940         * gcov.c (source_info::debug): Fix printf format for 32-bit hosts.
31942 2021-01-12  Andrea Corallo  <andrea.corallo@arm.com>
31944         * function-abi.h: Fix typo.
31946 2021-01-12  Christophe Lyon  <christophe.lyon@linaro.org>
31948         PR target/97875
31949         PR target/97875
31950         * config/arm/arm.h (ARM_HAVE_NEON_V8QI_LDST): New macro.
31951         (ARM_HAVE_NEON_V16QI_LDST, ARM_HAVE_NEON_V4HI_LDST): Likewise.
31952         (ARM_HAVE_NEON_V8HI_LDST, ARM_HAVE_NEON_V2SI_LDST): Likewise.
31953         (ARM_HAVE_NEON_V4SI_LDST, ARM_HAVE_NEON_V4HF_LDST): Likewise.
31954         (ARM_HAVE_NEON_V8HF_LDST, ARM_HAVE_NEON_V4BF_LDST): Likewise.
31955         (ARM_HAVE_NEON_V8BF_LDST, ARM_HAVE_NEON_V2SF_LDST): Likewise.
31956         (ARM_HAVE_NEON_V4SF_LDST, ARM_HAVE_NEON_DI_LDST): Likewise.
31957         (ARM_HAVE_NEON_V2DI_LDST): Likewise.
31958         (ARM_HAVE_V8QI_LDST, ARM_HAVE_V16QI_LDST): Likewise.
31959         (ARM_HAVE_V4HI_LDST, ARM_HAVE_V8HI_LDST): Likewise.
31960         (ARM_HAVE_V2SI_LDST, ARM_HAVE_V4SI_LDST, ARM_HAVE_V4HF_LDST): Likewise.
31961         (ARM_HAVE_V8HF_LDST, ARM_HAVE_V4BF_LDST, ARM_HAVE_V8BF_LDST): Likewise.
31962         (ARM_HAVE_V2SF_LDST, ARM_HAVE_V4SF_LDST, ARM_HAVE_DI_LDST): Likewise.
31963         (ARM_HAVE_V2DI_LDST): Likewise.
31964         * config/arm/mve.md (*movmisalign<mode>_mve_store): New pattern.
31965         (*movmisalign<mode>_mve_load): New pattern.
31966         * config/arm/neon.md (movmisalign<mode>): Move to ...
31967         * config/arm/vec-common.md: ... here.
31969 2021-01-12  Vladimir N. Makarov  <vmakarov@redhat.com>
31971         PR target/97969
31972         * lra-eliminations.c (eliminate_regs_in_insn): Add transformation
31973         of pattern 'plus (plus (hard reg, const), pseudo)'.
31975 2021-01-12  Richard Biener  <rguenther@suse.de>
31977         PR tree-optimization/98550
31978         * tree-vect-slp.c (vect_record_max_nunits): Check whether
31979         the group size is a multiple of the vector element count.
31980         (vect_build_slp_tree_1): When we need to fail because
31981         the vector type choosen causes unrolling do so lazily
31982         without affecting matches only at the end to guide group splitting.
31984 2021-01-12  Martin Liska  <mliska@suse.cz>
31986         PR c++/97284
31987         * optc-save-gen.awk: Compare also n_target_save vars with
31988         strcmp.
31990 2021-01-12  Martin Liska  <mliska@suse.cz>
31992         * gcov.c (source_info::debug): New.
31993         (print_usage): Add --debug (-D) option.
31994         (process_args): Likewise.
31995         (generate_results): Call src->debug after
31996         accumulate_line_counts.
31997         (read_graph_file): Properly assign id for EXIT_BLOCK.
31998         * profile.c (branch_prob): Dump function body before it is
31999         instrumented.
32001 2021-01-12  Jakub Jelinek  <jakub@redhat.com>
32003         PR tree-optimization/98629
32004         * tree-ssa-math-opts.c (arith_overflow_check_p): Don't update use_stmt
32005         unless returning non-zero.
32007 2021-01-12  Jakub Jelinek  <jakub@redhat.com>
32009         PR tree-optimization/95731
32010         * tree-ssa-reassoc.c (optimize_range_tests_cmp_bitwise): Also optimize
32011         x < 0 && y < 0 && z < 0 into (x | y | z) < 0 for signed x, y, z.
32012         (optimize_range_tests): Call optimize_range_tests_cmp_bitwise
32013         only after optimize_range_tests_var_bound.
32015 2021-01-12  Jakub Jelinek  <jakub@redhat.com>
32017         * configure.ac: Ensure c/Make-lang.in comes first in @all_lang_makefrags@.
32018         * configure: Regenerated.
32020 2021-01-12  liuhongt  <hongtao.liu@intel.com>
32022         PR target/98612
32023         * config/i386/i386-builtins.h (BUILTIN_DESC_SWAP_OPERANDS):
32024         Deleted.
32025         * config/i386/i386-expand.c (ix86_expand_sse_comi): Delete
32026         dead code.
32028 2021-01-12  Alexandre Oliva  <oliva@adacore.com>
32030         * ssa-iterators.h (end_imm_use_stmt_traverse): Forward
32031         declare.
32032         (auto_end_imm_use_stmt_traverse): New struct.
32033         (FOR_EACH_IMM_USE_STMT): Use it.
32034         (BREAK_FROM_IMM_USE_STMT, RETURN_FROM_IMM_USE_STMT): Remove,
32035         along with uses...
32036         * gimple-ssa-strength-reduction.c: ... here, ...
32037         * graphite-scop-detection.c: ... here, ...
32038         * ipa-modref.c, ipa-pure-const.c, ipa-sra.c: ... here, ...
32039         * tree-predcom.c, tree-ssa-ccp.c: ... here, ...
32040         * tree-ssa-dce.c, tree-ssa-dse.c: ... here, ...
32041         * tree-ssa-loop-ivopts.c, tree-ssa-math-opts.c: ... here, ...
32042         * tree-ssa-phiprop.c, tree-ssa.c: ... here, ...
32043         * tree-vect-slp.c: ... and here, ...
32044         * doc/tree-ssa.texi: ... and the example here.
32046 2021-01-11  Richard Sandiford  <richard.sandiford@arm.com>
32048         * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3): Extend from
32049         SVE_FULL_I to SVE_I.  Generate an UNSPEC_PRED_X.
32050         (*sdiv_pow2<mode>3): New pattern.
32051         (@cond_<sve_int_op><mode>): Extend from SVE_FULL_I to SVE_I.
32052         Wrap the ASRD in an UNSPEC_PRED_X.
32053         (*cond_<sve_int_op><mode>_2): Likewise.  Replace the UNSPEC_PRED_X
32054         predicate with a constant PTRUE, if it isn't already.
32055         (*cond_<sve_int_op><mode>_z): Replace with...
32056         (*cond_<sve_int_op><mode>_any): ...this new pattern.
32058 2021-01-11  Richard Sandiford  <richard.sandiford@arm.com>
32060         * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2): Extend from
32061         SVE_FULL_I to SVE_I.
32062         (*cond_bic<mode>_any): Likewise.
32064 2021-01-11  Richard Sandiford  <richard.sandiford@arm.com>
32066         * config/aarch64/aarch64-sve.md (<su>mul<mode>3_highpart)
32067         (@aarch64_pred_<MUL_HIGHPART:optab><mode>): Extend from SVE_FULL_I
32068         to SVE_I.
32070 2021-01-11  Richard Sandiford  <richard.sandiford@arm.com>
32072         * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): Extend from
32073         SVE_FULL_I to SVE_I.
32074         (*aarch64_cond_<su>abd<mode>_2): Likewise.
32075         (*aarch64_cond_<su>abd<mode>_any): Likewise.
32076         (@aarch64_pred_<su>abd<mode>): Likewise.  Use UNSPEC_PRED_X
32077         for the max and min but not for the minus.
32078         (*aarch64_cond_<su>abd<mode>_3): New pattern.
32080 2021-01-11  Richard Sandiford  <richard.sandiford@arm.com>
32082         * config/aarch64/iterators.md (SVE_24I): New iterator.
32083         * config/aarch64/aarch64-sve.md (*aarch64_adr<mode>_shift): Extend from
32084         SVE_FULL_SDI to SVE_24I.  Use containers rather than elements.
32086 2021-01-11  Richard Sandiford  <richard.sandiford@arm.com>
32088         * config/aarch64/aarch64-sve.md (@cond_<SVE_INT_BINARY:optab><mode>)
32089         (*cond_<SVE_INT_BINARY:optab><mode>_2): Extend from SVE_FULL_I
32090         to SVE_I.
32091         (*cond_<SVE_INT_BINARY:optab><mode>_3): Likewise.
32092         (*cond_<SVE_INT_BINARY:optab><mode>_any): Likewise.
32093         (*cond_<SVE_INT_BINARY:optab><mode>_2_const): Likewise.
32094         (*cond_<SVE_INT_BINARY:optab><mode>_any_const): Likewise.
32096 2021-01-11  Richard Sandiford  <richard.sandiford@arm.com>
32098         * config/aarch64/aarch64-sve.md (<SVE_INT_BINARY_IMM:optab><mode>3)
32099         (@aarch64_pred_<SVE_INT_BINARY_IMM:optab><mode>)
32100         (*post_ra_<SVE_INT_BINARY_IMM:optab><mode>3): Extend from SVE_FULL_I
32101         to SVE_I.
32103 2021-01-11  Richard Sandiford  <richard.sandiford@arm.com>
32105         * config/aarch64/aarch64-sve.md (<ASHIFT:optab><mode>3)
32106         (v<ASHIFT:optab><mode>3, @aarch64_pred_<optab><mode>)
32107         (*post_ra_v<ASHIFT:optab><mode>3): Extend from SVE_FULL_I to SVE_I.
32109 2021-01-11  Martin Liska  <mliska@suse.cz>
32111         PR jit/98615
32112         * symtab-clones.h (clone_info::release): Release
32113         symtab::m_clones with ggc_delete as it's a GGC memory.
32115 2021-01-11  Matthias Klose  <doko@ubuntu.com>
32117         * Makefile.in (LINK_PROGRESS): Show the link target.
32119 2021-01-11  Richard Biener  <rguenther@suse.de>
32121         PR tree-optimization/91403
32122         * tree-vect-data-refs.c (vect_analyze_group_access_1): Cap
32123         single-element interleaving group size at 4096 elements.
32125 2021-01-11  Richard Biener  <rguenther@suse.de>
32127         PR tree-optimization/98526
32128         * tree-vect-loop.c (vect_model_reduction_cost): Remove costing
32129         of the actual reduction op for the regular case.
32130         (vectorizable_reduction): Cost the stmts
32131         vect_transform_reduction produces here.
32133 2021-01-11  Andreas Krebbel  <krebbel@linux.ibm.com>
32135         * tree-ssa-forwprop.c (simplify_vector_constructor): For
32136         big-endian, use UNPACK[_FLOAT]_HI.
32138 2021-01-11  Tamar Christina  <tamar.christina@arm.com>
32140         * tree-vect-slp-patterns.c (class complex_pattern,
32141         class complex_add_pattern): Add parameters to matches.
32142         (complex_add_pattern::build): Free memory.
32143         (complex_add_pattern::matches): Move validation end of match.
32144         (complex_add_pattern::recognize): Likewise.
32146 2021-01-11  Tamar Christina  <tamar.christina@arm.com>
32148         * tree-vect-slp-patterns.c (linear_loads_p): Fix externals.
32150 2021-01-11  Tamar Christina  <tamar.christina@arm.com>
32152         * tree-vect-slp-patterns.c (is_linear_load_p): Fix ambiguity.
32154 2021-01-11  Jakub Jelinek  <jakub@redhat.com>
32156         PR tree-optimization/95867
32157         * tree-ssa-math-opts.h: New header.
32158         * tree-ssa-math-opts.c: Include tree-ssa-math-opts.h.
32159         (powi_as_mults): No longer static.  Use build_one_cst instead of
32160         build_real.  Formatting fix.
32161         * tree-ssa-reassoc.c: Include tree-ssa-math-opts.h.
32162         (attempt_builtin_powi): Handle multiplication reassociation without
32163         powi_fndecl using powi_as_mults.
32164         (reassociate_bb): For integral types don't require
32165         -funsafe-math-optimizations to call attempt_builtin_powi.
32167 2021-01-11  Jakub Jelinek  <jakub@redhat.com>
32169         PR tree-optimization/95852
32170         * tree-ssa-math-opts.c (maybe_optimize_guarding_check): Change
32171         mul_stmts parameter type to vec<gimple *> &.  Before cond_stmt
32172         allow in the bb any of the stmts in that vector, div_stmt and
32173         up to 3 cast stmts.
32174         (arith_cast_equal_p): New function.
32175         (arith_overflow_check_p): Add cast_stmt argument, handle signed
32176         multiply overflow checks.
32177         (match_arith_overflow): Adjust caller.  Handle signed multiply
32178         overflow checks.
32180 2021-01-11  Jakub Jelinek  <jakub@redhat.com>
32182         PR tree-optimization/95852
32183         * tree-ssa-math-opts.c (maybe_optimize_guarding_check): New function.
32184         (uaddsub_overflow_check_p): Renamed to ...
32185         (arith_overflow_check_p): ... this.  Handle also multiplication
32186         with overflow check.
32187         (match_uaddsub_overflow): Renamed to ...
32188         (match_arith_overflow): ... this.  Add cfg_changed argument.  Handle
32189         also multiplication with overflow check.  Adjust function comment.
32190         (math_opts_dom_walker::after_dom_children): Adjust callers.  Call
32191         match_arith_overflow also for MULT_EXPR.
32193 2021-01-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32195         * config/aarch64/arm_neon.h (vmovl_s8): Reimplement using
32196         __builtin_convertvector.
32197         (vmovl_s16): Likewise.
32198         (vmovl_s32): Likewise.
32199         (vmovl_u8): Likewise.
32200         (vmovl_u16): Likewise.
32201         (vmovl_u32): Likewise.
32202         (vmovn_s16): Likewise.
32203         (vmovn_s32): Likewise.
32204         (vmovn_s64): Likewise.
32205         (vmovn_u16): Likewise.
32206         (vmovn_u32): Likewise.
32207         (vmovn_u64): Likewise.
32209 2021-01-11  Martin Liska  <mliska@suse.cz>
32211         * gimple-if-to-switch.cc (struct condition_info): Use auto_var.
32212         (if_chain::is_beneficial): Delete clusters
32213         (find_conditions): Make second argument of conditions_in_bbs a
32214         pointer so that we control over it's lifetime.
32215         (pass_if_to_switch::execute): Delete them.
32217 2021-01-11  Kewen Lin  <linkw@linux.ibm.com>
32219         * ira.c (move_unallocated_pseudos): Check other_reg and skip if
32220         it isn't set.
32222 2021-01-09  Maciej W. Rozycki  <macro@linux-mips.org>
32224         * config/vax/vax.md (cc): Remove mode attribute.
32225         (subst_<cc>, subst_f<cc>): Rename to...
32226         (subst_<mode>, subst_f<VAXccnz:mode>): ... these respectively.
32227         (*cbranch<VAXint:mode>4_<VAXcc:mode>): Update for `cc' removal.
32228         (*cbranch<VAXfp:mode>4_<VAXccnz:mode>): Likewise.
32229         (*branch_<mode>, *branch_<mode>_reversed): Likewise.
32231 2021-01-09  Maciej W. Rozycki  <macro@linux-mips.org>
32233         * config/vax/vax.md (subst_f<cc>): Add mode to operands and
32234         `const_double_zero'.
32236 2021-01-09  Maciej W. Rozycki  <macro@linux-mips.org>
32238         * config/pdp11/pdp11.md (PDPfp): New mode iterator.
32239         (fcc_cc, fcc_ccnz): Use it.  Add mode to `const_double_zero' and
32240         operands.
32242 2021-01-09  Maciej W. Rozycki  <macro@linux-mips.org>
32244         * genemit.c (gen_exp) <CONST_DOUBLE>: Handle `const_double_zero'
32245         rtx.
32246         * read-rtl.c (rtx_reader::read_rtx_code): Handle machine mode
32247         with `const_double_zero'.
32248         * doc/rtl.texi (Constant Expression Types): Document it.
32250 2021-01-09  Jakub Jelinek  <jakub@redhat.com>
32252         PR c++/98556
32253         * tree-cfg.c (verify_gimple_assign_binary): Allow lhs of
32254         POINTER_DIFF_EXPR to be any integral type.
32256 2021-01-09  Jakub Jelinek  <jakub@redhat.com>
32258         PR rtl-optimization/98603
32259         * function.c (instantiate_virtual_regs_in_insn): For asm goto
32260         with impossible constraints, drop all SETs, CLOBBERs, drop PARALLEL
32261         if any, set ASM_OPERANDS mode to VOIDmode and change
32262         ASM_OPERANDS_OUTPUT_CONSTRAINT and ASM_OPERANDS_OUTPUT_IDX.
32264 2021-01-09  Alexandre Oliva  <oliva@gnu.org>
32266         PR debug/97714
32267         * final.c (notice_source_line): Narrow down the condition to
32268         skip a line-0 marker.
32270 2021-01-08  Sergei Trofimovich  <siarheit@google.com>
32272         * ipa-modref.c (merge_call_side_effects): Fix
32273         linebreak split by reordering two print calls.
32275 2021-01-08  Ilya Leoshkevich  <iii@linux.ibm.com>
32277         * config/s390/vector.md (*tf_to_fprx2_0): Rename from
32278         "*mov_tf_to_fprx2_0" for consistency, fix constraint.
32279         (*tf_to_fprx2_1): Rename from "*mov_tf_to_fprx2_1" for
32280         consistency, fix constraint.
32282 2021-01-08  Ilya Leoshkevich  <iii@linux.ibm.com>
32284         * config/s390/s390-c.c (s390_def_or_undef_macro): Accept
32285         callables instead of mask values.
32286         (struct target_flag_set_p): New predicate.
32287         (s390_cpu_cpp_builtins_internal): Define or undefine
32288         __LONG_DOUBLE_VX__ macro.
32290 2021-01-08  H.J. Lu  <hjl.tools@gmail.com>
32292         PR target/98482
32293         * config/i386/i386.c (x86_function_profiler): Use R10 and R11
32294         to call mcount in large model with PIC for NO_PROFILE_COUNTERS
32295         targets.
32297 2021-01-08  Richard Biener  <rguenther@suse.de>
32299         * tree-ssa-sccvn.c (pass_fre::execute): Reset the SCEV hash table.
32301 2021-01-08  Richard Biener  <rguenther@suse.de>
32303         * tree-vect-slp.c (scalar_stmts_to_slp_tree_map_t): Fix.
32304         (vect_build_slp_tree): On cache hit release the matched
32305         scalar stmts vector.
32306         * tree-vect-stmts.c (vectorizable_store): Properly free
32307         vec_oprnds before possibly gathering them again.
32309 2021-01-08  Richard Biener  <rguenther@suse.de>
32311         PR tree-optimization/98544
32312         * tree-vect-slp.c (vect_optimize_slp): Always materialize
32313         permutes at a permute node.
32315 2021-01-08  H.J. Lu  <hjl.tools@gmail.com>
32317         PR target/98482
32318         * config/i386/i386.c (x86_function_profiler): Use R10 to call
32319         mcount in large model.  Sorry for large model with PIC.
32321 2021-01-08  Jakub Jelinek  <jakub@redhat.com>
32323         PR target/98585
32324         * config/i386/i386.opt (ix86_cmodel, ix86_incoming_stack_boundary_arg,
32325         ix86_pmode, ix86_preferred_stack_boundary_arg, ix86_regparm,
32326         ix86_veclibabi_type): Remove x_ prefix, use TargetVariable instead of
32327         TargetSave and initialize for variables with enum types.
32328         (mfentry, mstack-protector-guard-reg=, mstack-protector-guard-offset=,
32329         mstack-protector-guard-symbol=): Add Save.
32330         * config/i386/i386-options.c (ix86_function_specific_save,
32331         ix86_function_specific_restore): Don't save or restore x_ix86_cmodel,
32332         x_ix86_incoming_stack_boundary_arg, x_ix86_pmode,
32333         x_ix86_preferred_stack_boundary_arg, x_ix86_regparm,
32334         x_ix86_veclibabi_type.
32336 2021-01-08  Richard Sandiford  <richard.sandiford@arm.com>
32338         * config/aarch64/aarch64-sve.md (*cnot<mode>): Extend from
32339         SVE_FULL_I to SVE_I.
32340         (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
32342 2021-01-08  Richard Sandiford  <richard.sandiford@arm.com>
32344         * config/aarch64/aarch64-sve.md (*cond_uxt<mode>_2): Extend from
32345         SVE_FULL_I to SVE_I.
32346         (*cond_uxt<mode>_any): Likewise.
32348 2021-01-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32350         * config/aarch64/iterators.md (Vwhalf): New iterator.
32351         * config/aarch64/aarch64-simd.md (aarch64_<sur>adalp<mode>_3):
32352         Rename to...
32353         (aarch64_<sur>adalp<mode>): ... This.  Make more
32354         builtin-friendly.
32355         (<sur>sadv16qi): Adjust callsite of the above.
32356         * config/aarch64/aarch64-simd-builtins.def (sadalp, uadalp): New
32357         builtins.
32358         * config/aarch64/arm_neon.h (vpadal_s8): Reimplement using
32359         builtins.
32360         (vpadal_s16): Likewise.
32361         (vpadal_u8): Likewise.
32362         (vpadal_u16): Likewise.
32363         (vpadalq_s8): Likewise.
32364         (vpadalq_s16): Likewise.
32365         (vpadalq_s32): Likewise.
32366         (vpadalq_u8): Likewise.
32367         (vpadalq_u16): Likewise.
32368         (vpadalq_u32): Likewise.
32370 2021-01-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32372         * config/aarch64/aarch64-simd.md (aarch64_<su>abd<mode>_3):
32373         Rename to...
32374         (aarch64_<su>abd<mode>): ... This.
32375         (<sur>sadv16qi): Adjust callsite of the above.
32376         * config/aarch64/aarch64-simd-builtins.def (sabd, uabd): Define
32377         builtins.
32378         * config/aarch64/arm_neon.h (vabd_s8): Reimplement using
32379         builtin.
32380         (vabd_s16): Likewise.
32381         (vabd_s32): Likewise.
32382         (vabd_u8): Likewise.
32383         (vabd_u16): Likewise.
32384         (vabd_u32): Likewise.
32385         (vabdq_s8): Likewise.
32386         (vabdq_s16): Likewise.
32387         (vabdq_s32): Likewise.
32388         (vabdq_u8): Likewise.
32389         (vabdq_u16): Likewise.
32390         (vabdq_u32): Likewise.
32392 2021-01-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32394         * config/aarch64/aarch64-simd-builtins.def (saba, uaba): Define
32395         builtins.
32396         * config/aarch64/arm_neon.h (vaba_s8): Implement using builtin.
32397         (vaba_s16): Likewise.
32398         (vaba_s32): Likewise.
32399         (vaba_u8): Likewise.
32400         (vaba_u16): Likewise.
32401         (vaba_u32): Likewise.
32402         (vabaq_s8): Likewise.
32403         (vabaq_s16): Likewise.
32404         (vabaq_s32): Likewise.
32405         (vabaq_u8): Likewise.
32406         (vabaq_u16): Likewise.
32407         (vabaq_u32): Likewise.
32409 2021-01-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32411         * config/aarch64/aarch64-simd.md (aba<mode>_3): Rename to...
32412         (aarch64_<su>aba<mode>): ... This.  Handle uaba as well.
32413         Change RTL pattern to match.
32415 2021-01-08  Kito Cheng  <kito.cheng@sifive.com>
32417         * common/config/riscv/riscv-common.c (riscv_current_subset_list): New.
32418         * config/riscv/riscv-c.c (riscv-subset.h): New.
32419         (INCLUDE_STRING): Define.
32420         (riscv_cpu_cpp_builtins): Add new style architecture extension
32421         test macros.
32422         * config/riscv/riscv-subset.h (riscv_subset_list::begin): New.
32423         (riscv_subset_list::end): New.
32424         (riscv_current_subset_list): New.
32426 2021-01-08  Kito Cheng  <kito.cheng@sifive.com>
32428         * common/config/riscv/riscv-common.c (RISCV_DONT_CARE_VERSION):
32429         Move to riscv-subset.h.
32430         (struct riscv_subset_t): Ditto.
32431         (class riscv_subset_list): Ditto.
32432         * config/riscv/riscv-subset.h (RISCV_DONT_CARE_VERSION): Move
32433         from riscv-common.c.
32434         (struct riscv_subset_t): Ditto.
32435         (class riscv_subset_list): Ditto.
32436         * config/riscv/t-riscv ($(common_out_file)): Add file
32437         dependency.
32439 2021-01-07  Jakub Jelinek  <jakub@redhat.com>
32441         PR target/98567
32442         * config/i386/i386.md (*bmi_blsi_<mode>_cmp, *bmi_blsi_<mode>_ccno):
32443         New define_insn patterns.
32445 2021-01-07  Richard Sandiford  <richard.sandiford@arm.com>
32447         * config/aarch64/aarch64-sve.md (@cond_<SVE_INT_UNARY:optab><mode>)
32448         (*cond_<SVE_INT_UNARY:optab><mode>_2): Extend from SVE_FULL_I to SVE_I.
32449         (*cond_<SVE_INT_UNARY:optab><mode>_any): Likewise.
32451 2021-01-07  Richard Sandiford  <richard.sandiford@arm.com>
32453         PR tree-optimization/98560
32454         * internal-fn.def (IFN_VCONDU, IFN_VCONDEQ): Use type vec_cond.
32455         * internal-fn.c (vec_cond_mask_direct): Get the data mode from
32456         argument 1.
32457         (vec_cond_direct): Likewise argument 2.
32458         (vec_condu_direct, vec_condeq_direct): Delete.
32459         (expand_vect_cond_optab_fn): Rename to...
32460         (expand_vec_cond_optab_fn): ...this, replacing old macro.
32461         (expand_vec_condu_optab_fn, expand_vec_condeq_optab_fn): Delete.
32462         (expand_vect_cond_mask_optab_fn): Rename to...
32463         (expand_vec_cond_mask_optab_fn): ...this, replacing old macro.
32464         (direct_vec_cond_mask_optab_supported_p): Treat the optab as a
32465         convert optab.
32466         (direct_vec_cond_optab_supported_p): Likewise.
32467         (direct_vec_condu_optab_supported_p): Delete.
32468         (direct_vec_condeq_optab_supported_p): Delete.
32469         * gimple-isel.cc: Include internal-fn.h.
32470         (gimple_expand_vec_cond_expr): Check that IFN_VCONDEQ is supported
32471         before using it.
32473 2021-01-07  Richard Sandiford  <richard.sandiford@arm.com>
32475         PR tree-optimization/98560
32476         * gimple-isel.cc (gimple_expand_vec_cond_expr): If we fail to use
32477         IFN_VCOND{,U,EQ}, fall back on IFN_VCOND_MASK.
32479 2021-01-07  Uroš Bizjak  <ubizjak@gmail.com>
32481         * config/i386/i386.md (insn): Merge from plusminus_insn, shift_insn,
32482         rotate_insn and optab code attributes.
32483         Update all uses to merged code attribute.
32484         * config/i386/sse.md: Update all uses to merged code attribute.
32485         * config/i386/mmx.md: Update all uses to merged code attribute.
32487 2021-01-07  Jakub Jelinek  <jakub@redhat.com>
32489         PR tree-optimization/98568
32490         * gimple-ssa-store-merging.c (bswap_view_convert): New function.
32491         (bswap_replace): Use it.
32493 2021-01-06  Vladimir N. Makarov  <vmakarov@redhat.com>
32495         PR rtl-optimization/97978
32496         * lra-int.h (lra_hard_reg_split_p): New external.
32497         * lra.c (lra_hard_reg_split_p): New global.
32498         (lra): Set up lra_hard_reg_split_p after splitting a hard reg.
32499         * lra-assigns.c (lra_assign): Don't check allocation correctness
32500         after hard reg splitting.
32502 2021-01-06  Martin Sebor  <msebor@redhat.com>
32504         PR c++/98305
32505         * builtins.c (new_delete_mismatch_p): New overload.
32506         (new_delete_mismatch_p (tree, tree)): Call it.
32508 2021-01-06  Alexandre Oliva  <oliva@adacore.com>
32510         * Makefile.in (T_GLIMITS_H): New.
32511         (stmp-int-hdrs): Depend on it, use it.
32512         * config/t-vxworks (T_GLIMITS_H): Override it.
32513         (vxw-glimits.h): New.
32515 2021-01-06  Richard Biener  <rguenther@suse.de>
32517         PR tree-optimization/98513
32518         * value-range.cc (intersect_ranges): Compare the upper bounds
32519         for the expected relation.
32521 2021-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
32523         Revert:
32524         2020-12-28  Gerald Pfeifer  <gerald@pfeifer.com>
32526         * doc/standards.texi (HSAIL): Remove section.
32528 2021-01-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
32530         * configure: Re-generate.
32532 2021-01-05  Jakub Jelinek  <jakub@redhat.com>
32534         * doc/invoke.texi (-std=c++20): Adjust for the publication of
32535         ISO 14882:2020 standard.
32536         * doc/standards.texi: Likewise.
32538 2021-01-05  Jakub Jelinek  <jakub@redhat.com>
32540         PR tree-optimization/94802
32541         * expr.h (maybe_optimize_sub_cmp_0): Declare.
32542         * expr.c: Include tree-pretty-print.h and flags.h.
32543         (maybe_optimize_sub_cmp_0): New function.
32544         (do_store_flag): Use it.
32545         * cfgexpand.c (expand_gimple_cond): Likewise.
32547 2021-01-05  Richard Sandiford  <richard.sandiford@arm.com>
32549         * mux-utils.h (pointer_mux::m_ptr): Tweak description of contents.
32550         * rtlanal.c (simple_regno_set): Tweak description to clarify the
32551         RMW condition.
32553 2021-01-05  Richard Biener  <rguenther@suse.de>
32555         PR tree-optimization/98516
32556         * tree-vect-slp.c (vect_optimize_slp): Permute the incoming
32557         lanes when materializing on a VEC_PERM node.
32558         (vectorizable_slp_permutation): Dump the permute properly.
32560 2021-01-05  Richard Biener  <rguenther@suse.de>
32562         * tree-vect-slp.c (vect_slp_region): Move debug counter
32563         to cover individual subgraphs.
32565 2021-01-05  Richard Biener  <rguenther@suse.de>
32567         PR tree-optimization/98428
32568         * tree-vect-slp.c (vect_build_slp_tree_1): Properly reject
32569         vector lane extracts for loop vectorization.
32571 2021-01-05  Jakub Jelinek  <jakub@redhat.com>
32573         PR tree-optimization/98514
32574         * tree-ssa-reassoc.c (bb_rank): Change type from long * to
32575         int64_t *.
32576         (operand_rank): Change type from hash_map<tree, long> to
32577         hash_map<tree, int64_t>.
32578         (phi_rank): Change return type from long to int64_t.
32579         (loop_carried_phi): Change block_rank variable type from long to
32580         int64_t.
32581         (propagate_rank): Change return type, rank parameter type and
32582         op_rank variable type from long to int64_t.
32583         (find_operand_rank): Change return type from long to int64_t
32584         and change slot variable type from long * to int64_t *.
32585         (insert_operand_rank): Change rank parameter type from long to
32586         int64_t.
32587         (get_rank): Change return type and rank variable type from long to
32588         int64_t.  Use PRId64 instead of ld to print the rank.
32589         (init_reassoc): Change rank variable type from long to int64_t
32590         and adjust correspondingly bb_rank and operand_rank initialization.
32592 2021-01-05  Jakub Jelinek  <jakub@redhat.com>
32594         PR tree-optimization/96928
32595         * tree-ssa-phiopt.c (xor_replacement): New function.
32596         (tree_ssa_phiopt_worker): Call it.
32598 2021-01-05  Jakub Jelinek  <jakub@redhat.com>
32600         PR tree-optimization/96930
32601         * match.pd ((A / (1 << B)) -> (A >> B)): If A is extended
32602         from narrower value which has the same type as 1 << B, perform
32603         the right shift on the narrower value followed by extension.
32605 2021-01-05  Jakub Jelinek  <jakub@redhat.com>
32607         PR tree-optimization/96239
32608         * gimple-ssa-store-merging.c (maybe_optimize_vector_constructor): New
32609         function.
32610         (get_status_for_store_merging): Don't return BB_INVALID for blocks
32611         with potential bswap optimizable CONSTRUCTORs.
32612         (pass_store_merging::execute): Optimize vector CONSTRUCTORs with bswap
32613         if possible.
32615 2021-01-05  Richard Biener  <rguenther@suse.de>
32617         PR tree-optimization/98381
32618         * tree.c (vector_element_bits): Properly compute bool vector
32619         element size.
32620         * tree-vect-loop.c (vectorizable_live_operation): Properly
32621         compute the last lane bit offset.
32623 2021-01-05  Uroš Bizjak  <ubizjak@gmail.com>
32625         PR target/98522
32626         * config/i386/sse.md (sse_cvtps2pi): Redefine as define_insn_and_split.
32627         Clear the top 64 bytes of the input XMM register.
32628         (sse_cvttps2pi): Ditto.
32630 2021-01-05  Uroš Bizjak  <ubizjak@gmail.com>
32632         PR target/98521
32633         * config/i386/xopintrin.h (_mm256_cmov_si256): New.
32635 2021-01-05  H.J. Lu  <hjl.tools@gmail.com>
32637         PR target/98495
32638         * config/i386/xmmintrin.h (_mm_extract_pi16): Cast to unsigned
32639         short first.
32641 2021-01-05  Claudiu Zissulescu  <claziss@synopsys.com>
32643         * config/arc/arc.md (maddsidi4_split): Use ACC_REG_FIRST.
32644         (umaddsidi4_split): Likewise.
32646 2021-01-05  liuhongt  <hongtao.liu@intel.com>
32648         PR target/98461
32649         * config/i386/sse.md (*sse2_pmovskb_zexthisi): New
32650         define_insn_and_split for zero_extend of subreg HI of pmovskb
32651         result.
32652         (*sse2_pmovskb_zexthisi): Add new combine splitters for
32653         zero_extend of not of subreg HI of pmovskb result.
32655 2021-01-05  Richard Sandiford  <richard.sandiford@arm.com>
32657         PR target/97269
32658         * explow.c (convert_memory_address_addr_space_1): Handle UNSPECs
32659         nested in CONSTs.
32660         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Use
32661         convert_memory_address to convert symbolic immediates to ptr_mode
32662         before forcing them to memory.
32664 2021-01-05  Richard Sandiford  <richard.sandiford@arm.com>
32666         PR rtl-optimization/97144
32667         * recog.c (constrain_operands): Initialize matching_operand
32668         for each alternative, rather than only doing it once.
32670 2021-01-05  Richard Sandiford  <richard.sandiford@arm.com>
32672         PR rtl-optimization/98403
32673         * rtl-ssa/changes.cc (function_info::finalize_new_accesses): Explain
32674         why we don't remove call clobbers.
32675         (function_info::apply_changes_to_insn): Don't attempt to add
32676         call clobbers here.
32678 2021-01-05  Richard Sandiford  <richard.sandiford@arm.com>
32680         PR tree-optimization/98371
32681         * tree-vect-loop.c (vect_reanalyze_as_main_loop): New function.
32682         (vect_analyze_loop): If an epilogue loop appears to be cheaper
32683         than the main loop, re-analyze it as a main loop before adopting
32684         it as a main loop.
32686 2021-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32688         PR c++/98316
32689         * configure.ac (NETLIBS): Determine using AX_LIB_SOCKET_NSL.
32690         * aclocal.m4, configure: Regenerate.
32691         * Makefile.in (NETLIBS): Define.
32692         (BACKEND): Remove $(CODYLIB).
32694 2021-01-05  Jakub Jelinek  <jakub@redhat.com>
32696         PR rtl-optimization/98334
32697         * simplify-rtx.c (simplify_context::simplify_binary_operation_1):
32698         Optimize (X - 1) * Y + Y to X * Y or (X + 1) * Y - Y to X * Y.
32700 2021-01-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
32702         * tree-inline.c (expand_call_inline): Restore input_location.
32703         Return result from recursive call.
32705 2021-01-04  Richard Sandiford  <richard.sandiford@arm.com>
32707         PR tree-optimization/95401
32708         * config/aarch64/aarch64-sve-builtins.cc
32709         (gimple_folder::load_store_cookie): Use bits rather than bytes
32710         for the alignment argument to IFN_MASK_LOAD and IFN_MASK_STORE.
32711         * gimple-fold.c (gimple_fold_mask_load_store_mem_ref): Likewise.
32712         * tree-vect-stmts.c (vectorizable_store): Likewise.
32713         (vectorizable_load): Likewise.
32715 2021-01-04  Richard Biener  <rguenther@suse.de>
32717         PR tree-optimization/98308
32718         * tree-vect-stmts.c (vectorizable_load): Set invariant mask
32719         SLP vectype.
32721 2021-01-04  Jakub Jelinek  <jakub@redhat.com>
32723         PR tree-optimization/95771
32724         * tree-ssa-loop-niter.c (number_of_iterations_popcount): Handle types
32725         with precision smaller than int's precision and types with precision
32726         twice as large as long long.  Formatting fixes.
32728 2021-01-04  Richard Biener  <rguenther@suse.de>
32730         PR tree-optimization/98464
32731         * tree-ssa-sccvn.c (vn_valueize_for_srt): Rename from ...
32732         (vn_valueize_wrapper): ... this.  Temporarily adjust vn_context_bb.
32733         (process_bb): Adjust.
32735 2021-01-04  Matthew Malcomson  <matthew.malcomson@arm.com>
32737         PR other/98437
32738         * doc/invoke.texi (-fsanitize=address): Fix wording describing
32739         clash with -fsanitize=hwaddress.
32741 2021-01-04  Richard Biener  <rguenther@suse.de>
32743         PR tree-optimization/98282
32744         * tree-ssa-sccvn.c (vn_get_stmt_kind): Classify tcc_reference on
32745         invariants as VN_NARY.
32747 2021-01-04  Richard Sandiford  <richard.sandiford@arm.com>
32749         PR target/89057
32750         * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Accept
32751         aarch64_simd_reg_or_zero for operand 2.  Use the combinez patterns
32752         to handle zero operands.
32754 2021-01-04  Richard Sandiford  <richard.sandiford@arm.com>
32756         * config/aarch64/aarch64.c (offset_6bit_signed_scaled_p): New function.
32757         (offset_6bit_unsigned_scaled_p): Fix typo in comment.
32758         (aarch64_sve_prefetch_operand_p): Accept MUL VLs in the range
32759         [-32, 31].
32761 2021-01-04  Richard Biener  <rguenther@suse.de>
32763         PR tree-optimization/98393
32764         * tree-vect-slp.c (vect_build_slp_tree): Properly zero matches
32765         when hitting the limit.
32767 2021-01-04  Richard Biener  <rguenther@suse.de>
32769         PR tree-optimization/98291
32770         * tree-vect-loop.c (vectorizable_reduction): Bypass
32771         associativity check for SLP reductions with VF 1.
32773 2021-01-04  Jakub Jelinek  <jakub@redhat.com>
32775         PR tree-optimization/96782
32776         * match.pd (x == ~x -> false, x != ~x -> true): New simplifications.
32778 2021-01-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
32780         * collect-utils.c (collect_execute): Check dumppfx.
32781         * collect2.c (maybe_run_lto_and_relink, do_link): Pass atsuffix
32782         to collect_execute.
32783         (do_link): Add new parameter atsuffix.
32784         (main): Handle -dumpdir option.  Skip one argument for
32785         -o, -isystem and -B options.
32786         * gcc.c (make_at_file): New helper function.
32787         (close_at_file): Use it.
32789 2021-01-02  Iain Sandoe  <iain@sandoe.co.uk>
32791         * config/darwin.h (MIN_LD64_NO_COAL_SECTS): Adjust.
32792         Amend handling for LD64_VERSION fallback defaults.
32794 2021-01-02  Iain Sandoe  <iain@sandoe.co.uk>
32796         * config.gcc: Compute default version information
32797         from the configured target.  Likewise defaults for
32798         ld64.
32799         * config/darwin10.h: Removed.
32800         * config/darwin12.h: Removed.
32801         * config/darwin9.h: Removed.
32802         * config/rs6000/darwin8.h: Removed.
32804 2021-01-02  Iain Sandoe  <iain@sandoe.co.uk>
32806         * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Delete.
32808 2021-01-02  Iain Sandoe  <iain@sandoe.co.uk>
32810         * config/darwin9.h (STACK_CHECK_STATIC_BUILTIN): Move from here..
32811         * config/darwin.h (STACK_CHECK_STATIC_BUILTIN): .. to here.
32813 2021-01-02  Iain Sandoe  <iain@sandoe.co.uk>
32815         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move from
32816         here...
32817         * config/darwin.h (LINK_GCC_C_SEQUENCE_SPEC): ... to here.
32819 2021-01-02  Iain Sandoe  <iain@sandoe.co.uk>
32821         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move the spec
32822         for the Darwin10 unwinder stub from here ...
32823         * config/darwin.h (LINK_COMMAND_SPEC_A): ... to here.
32825 2021-01-02  Iain Sandoe  <iain@sandoe.co.uk>
32827         * config/darwin.h (DSYMUTIL_SPEC): Default to DWARF
32828         (ASM_DEBUG_SPEC):Only define if the assembler supports
32829         stabs.
32830         (PREFERRED_DEBUGGING_TYPE): Default to DWARF.
32831         (DARWIN_PREFER_DWARF): Define.
32832         * config/darwin9.h (PREFERRED_DEBUGGING_TYPE): Remove.
32833         (DARWIN_PREFER_DWARF): Likewise
32834         (DSYMUTIL_SPEC): Likewise.
32835         (COLLECT_RUN_DSYMUTIL): Likewise.
32836         (ASM_DEBUG_SPEC): Likewise.
32837         (ASM_DEBUG_OPTION_SPEC): Likewise.
32839 2021-01-02  Jan Hubicka  <jh@suse.cz>
32841         * cfg.c (free_block): ggc_free bb.
32843 2021-01-01  Jakub Jelinek  <jakub@redhat.com>
32845         * gcc.c (process_command): Update copyright notice dates.
32846         * gcov-dump.c (print_version): Ditto.
32847         * gcov.c (print_version): Ditto.
32848         * gcov-tool.c (print_version): Ditto.
32849         * gengtype.c (create_file): Ditto.
32850         * doc/cpp.texi: Bump @copying's copyright year.
32851         * doc/cppinternals.texi: Ditto.
32852         * doc/gcc.texi: Ditto.
32853         * doc/gccint.texi: Ditto.
32854         * doc/gcov.texi: Ditto.
32855         * doc/install.texi: Ditto.
32856         * doc/invoke.texi: Ditto.
32858 2021-01-01  Jakub Jelinek  <jakub@redhat.com>
32860         * ChangeLog-2020: Rotate ChangeLog.  New file.
32863 Copyright (C) 2021 Free Software Foundation, Inc.
32865 Copying and distribution of this file, with or without modification,
32866 are permitted in any medium without royalty provided the copyright
32867 notice and this notice are preserved.