1 2021-10-31 Jan Hubicka <hubicka@ucw.cz>
3 * ipa-fnsummary.c: Include tree-dfa.h.
4 (points_to_local_or_readonly_memory_p): Return true on return
6 * ipa-modref.c (analyze_ssa_name_flags): Fix handling of copy
9 2021-10-30 Tobias Burnus <tobias@codesourcery.com>
12 * omp-low.c (omp_runtime_api_call): Use DECL_ASSEMBLER_NAME to get
13 internal Fortran name; new permit_num_teams arg to permit
14 omp_get_num_teams and omp_get_team_num.
15 (scan_omp_1_stmt): Update call to it, add missing call for
16 reverse offload, and check for strictly nested API calls in teams.
18 2021-10-30 Jakub Jelinek <jakub@redhat.com>
20 * gimplify.c (gimplify_omp_for): Diagnose threadprivate iterators.
22 2021-10-29 David Malcolm <dmalcolm@redhat.com>
24 * selftest.c (assert_streq): Add newlines when emitting non-equal
27 2021-10-29 David Malcolm <dmalcolm@redhat.com>
29 * Makefile.in: Fix syntax for reference to LIBDEPS in
32 2021-10-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
34 * doc/install.texi: Bump required minimum DejaGnu version.
36 2021-10-29 Aldy Hernandez <aldyh@redhat.com>
37 Andrew MacLeod <amacleod@redhat.com>
39 * value-relation.cc (path_oracle::killing_def): Add a
40 self-equivalence so we don't look to the root oracle.
42 2021-10-29 Aldy Hernandez <aldyh@redhat.com>
44 * passes.def: Replace the pass_thread_jumps before VRP* with
45 pass_thread_jumps_full. Remove all pass_vrp_threader instances.
46 * tree-ssa-threadbackward.c (pass_data_thread_jumps_full):
47 Remove hyphen from "thread-full" name.
49 2021-10-29 Andrew MacLeod <amacleod@redhat.com>
51 PR tree-optimization/102983
52 * gimple-range-cache.h (propagate_updated_value): Make public.
53 * gimple-range.cc (gimple_ranger::range_of_stmt): Propagate exports
54 when processing gcond stmts.
56 2021-10-29 Jan Hubicka <hubicka@ucw.cz>
58 * gimple.c (gimple_call_retslot_flags): New function.
59 * gimple.h (gimple_call_retslot_flags): Declare.
60 * ipa-modref.c: Include tree-cfg.h.
61 (struct escape_entry): Turn parm_index to signed.
62 (modref_summary_lto::modref_summary_lto): Add retslot_flags.
63 (modref_summary::modref_summary): Initialize retslot_flags.
64 (struct modref_summary_lto): Likewise.
65 (modref_summary::useful_p): Check retslot_flags.
66 (modref_summary_lto::useful_p): Likewise.
67 (modref_summary::dump): Dump retslot_flags.
68 (modref_summary_lto::dump): Likewise.
69 (struct escape_point): Add hidden_args enum.
70 (analyze_ssa_name_flags): Ignore return slot return;
71 use gimple_call_retslot_flags.
72 (record_escape_points): Break out from ...
73 (analyze_parms): ... here; handle retslot_flags.
74 (modref_summaries::duplicate): Duplicate retslot_flags.
75 (modref_summaries_lto::duplicate): Likewise.
76 (modref_write_escape_summary): Stream parm_index as signed.
77 (modref_read_escape_summary): Likewise.
78 (modref_write): Stream retslot_flags.
79 (read_section): Likewise.
80 (struct escape_map): Fix typo in comment.
81 (update_escape_summary_1): Fix whitespace.
82 (ipa_merge_modref_summary_after_inlining): Drop retslot_flags.
83 (modref_merge_call_site_flags): Merge retslot_flags.
84 * ipa-modref.h (struct modref_summary): Add retslot_flags.
85 * tree-ssa-structalias.c (handle_rhs_call): Handle retslot_flags.
87 2021-10-29 Tamar Christina <tamar.christina@arm.com>
89 PR tree-optimization/102977
90 * tree-vect-slp-patterns.c (vect_match_call_p): Remove.
91 (vect_detect_pair_op): Add crosslane check.
92 (vect_match_call_complex_mla): Remove.
93 (class complex_mul_pattern): Update comment.
94 (complex_mul_pattern::matches): Update detection.
95 (class complex_fma_pattern): Remove.
96 (complex_fma_pattern::matches): Remove.
97 (complex_fma_pattern::recognize): Remove.
98 (complex_fma_pattern::build): Remove.
99 (class complex_fms_pattern): Update comment.
100 (complex_fms_pattern::matches): Remove.
101 (complex_operations_pattern::recognize): Remove complex_fma_pattern
103 2021-10-29 Jakub Jelinek <jakub@redhat.com>
105 * gimple-fold.c (gimple_fold_builtin_memset): Copy over location from
108 2021-10-29 Xionghu Luo <luoxhu@linux.ibm.com>
111 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Add
112 patterns match and emit for VSX xxpermdi.
114 2021-10-29 liuhongt <hongtao.liu@intel.com>
117 * config/i386/i386-builtin-types.def (V8HF_FTYPE_V8HF): New
119 (V16HF_FTYPE_V16HF): Ditto.
120 (V32HF_FTYPE_V32HF): Ditto.
121 (V8HF_FTYPE_V8HF_ROUND): Ditto.
122 (V16HF_FTYPE_V16HF_ROUND): Ditto.
123 (V32HF_FTYPE_V32HF_ROUND): Ditto.
124 * config/i386/i386-builtin.def ( IX86_BUILTIN_FLOORPH,
125 IX86_BUILTIN_CEILPH, IX86_BUILTIN_TRUNCPH,
126 IX86_BUILTIN_FLOORPH256, IX86_BUILTIN_CEILPH256,
127 IX86_BUILTIN_TRUNCPH256, IX86_BUILTIN_FLOORPH512,
128 IX86_BUILTIN_CEILPH512, IX86_BUILTIN_TRUNCPH512): New builtin.
129 * config/i386/i386-builtins.c
130 (ix86_builtin_vectorized_function): Enable vectorization for
131 HFmode FLOOR/CEIL/TRUNC operation.
132 * config/i386/i386-expand.c (ix86_expand_args_builtin): Handle
134 * config/i386/sse.md (rint<mode>2, nearbyint<mode>2): Extend
137 2021-10-28 Aldy Hernandez <aldyh@redhat.com>
138 Andrew MacLeod <amacleod@redhat.com>
140 * value-relation.cc (path_oracle::killing_def): Walk the
141 equivalency list and remove SSA from any equivalencies.
143 2021-10-28 Stafford Horne <shorne@gmail.com>
145 * config/or1k/or1k.h (PROFILE_HOOK): Add return address argument
148 2021-10-28 Jakub Jelinek <jakub@redhat.com>
150 PR tree-optimization/102951
151 * fold-const.h (address_compare): Declare.
152 * fold-const.c (address_compare): New function.
153 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Use
154 address_compare helper.
155 (minmax cmp (convert1?@2 addr@0) (convert2?@3 addr@1)): New
158 2021-10-28 Andrew MacLeod <amacleod@redhat.com>
160 * vr-values.c (simplify_using_ranges::fold_cond): Change fold message.
162 2021-10-28 Andrew MacLeod <amacleod@redhat.com>
164 PR tree-optimization/102940
165 * tree-vrp.c (execute_ranger_vrp): Reset scev.
167 2021-10-28 Richard Purdie <richard.purdie@linuxfoundation.org>
169 * config/nios2/linux.h (MUSL_DYNAMIC_LINKER): Add musl linker
171 2021-10-28 Richard Purdie <richard.purdie@linuxfoundation.org>
173 * configure: Regenerate.
174 * configure.ac: Use CPPFLAGS_FOR_BUILD for GMPINC
176 2021-10-28 Eric Botcazou <ebotcazou@adacore.com>
178 * doc/invoke.texi (%X): Remove obsolete reference to -Wl.
180 2021-10-28 Richard Biener <rguenther@suse.de>
183 * fold-const.c (fold_convert_const): Avoid int to float
184 constant folding with -frounding-math and inexact result.
185 * simplify-rtx.c (simplify_const_unary_operation): Likewise
186 for both float and unsigned_float.
188 2021-10-28 Aldy Hernandez <aldyh@redhat.com>
190 * tree-ssa-threadbackward.c
191 (back_threader::find_taken_edge_switch): Use find_case_label_range
192 instead of find_taken_edge.
194 2021-10-28 Aldy Hernandez <aldyh@redhat.com>
196 * tree-ssa-threadbackward.c (class back_threader_registry):
197 Inherit from back_jt_path_registry.
198 (back_threader_registry::thread_through_all_blocks): Remove.
199 (back_threader_registry::register_path): Remove
200 m_lowlevel_registry prefix.
202 2021-10-28 Richard Biener <rguenther@suse.de>
205 * fold-const.c (fold_convert_const_real_from_real): Honor
206 -frounding-math if the conversion is not exact.
207 * simplify-rtx.c (simplify_const_unary_operation): Do not
208 simplify FLOAT_TRUNCATE with sign dependent rounding.
210 2021-10-28 Richard Biener <rguenther@suse.de>
212 PR tree-optimization/102949
213 * tree-vect-stmts.c (ensure_base_align): Look at the
214 dr_info of a group leader and assert we are looking at
215 one with analyzed alignment.
217 2021-10-28 Kewen Lin <linkw@linux.ibm.com>
220 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Consider
221 V1T1 mode for unaligned load and store.
223 2021-10-28 Kito Cheng <kito.cheng@sifive.com>
225 * config/riscv/riscv.md (zero_extendsidi2_internal): Allow ZBB
228 2021-10-28 Kito Cheng <kito.cheng@sifive.com>
230 * config/riscv/arch-canonicalize (CANONICAL_ORDER): Add `i` to
233 2021-10-28 Alexandre Oliva <oliva@adacore.com>
235 * common.opt (fharden-compares): New.
236 (fharden-conditional-branches): New.
237 * doc/invoke.texi: Document new options.
238 * gimple-harden-conditionals.cc: New.
239 * Makefile.in (OBJS): Build it.
240 * passes.def: Add new passes.
241 * tree-pass.h (make_pass_harden_compares): Declare.
242 (make_pass_harden_conditional_branches): Declare.
244 2021-10-28 Xionghu Luo <luoxhu@linux.ibm.com>
247 * config/rs6000/altivec.md: Add vsx register constraints.
248 * config/rs6000/vsx.md (vsx_xxsel<mode>): Delete.
249 (vsx_xxsel<mode>2): Likewise.
250 (vsx_xxsel<mode>3): Likewise.
251 (vsx_xxsel<mode>4): Likewise.
253 2021-10-28 Xionghu Luo <luoxhu@linux.ibm.com>
256 * config/rs6000/altivec.md (*altivec_vsel<mode>): Change to ...
257 (altivec_vsel<mode>): ... this and update define.
258 (*altivec_vsel<mode>_uns): Delete.
259 (altivec_vsel<mode>2): New define_insn.
260 (altivec_vsel<mode>3): Likewise.
261 (altivec_vsel<mode>4): Likewise.
262 * config/rs6000/rs6000-call.c (altivec_expand_vec_sel_builtin): New.
263 (altivec_expand_builtin): Call altivec_expand_vec_sel_builtin to expand
265 * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Use bit-wise
266 selection instead of per element.
267 * config/rs6000/vector.md:
268 * config/rs6000/vsx.md (*vsx_xxsel<mode>): Change to ...
269 (vsx_xxsel<mode>): ... this and update define.
270 (*vsx_xxsel<mode>_uns): Delete.
271 (vsx_xxsel<mode>2): New define_insn.
272 (vsx_xxsel<mode>3): Likewise.
273 (vsx_xxsel<mode>4): Likewise.
275 2021-10-28 Hongyu Wang <hongyu.wang@intel.com>
277 * config/i386/i386.c (use_rsqrt_p): Add mode parameter, enable
278 HFmode rsqrt without TARGET_SSE_MATH.
279 (ix86_optab_supported_p): Refactor rint, adjust floor, ceil,
280 btrunc condition to be restricted by -ftrapping-math, adjust
281 use_rsqrt_p function call.
282 * config/i386/i386.md (rcphf2): New define_insn.
283 (rsqrthf2): Likewise.
284 * config/i386/sse.md (div<mode>3): Change VF2H to VF2.
285 (div<mode>3): New expander for HF mode.
286 (rsqrt<mode>2): Likewise.
287 (*avx512fp16_vmrcpv8hf2): New define_insn for rpad pass.
288 (*avx512fp16_vmrsqrtv8hf2): Likewise.
290 2021-10-27 Saagar Jha <saagar@saagarjha.com>
292 * config.gcc: Adjust for Darwin21.
293 * config/darwin-c.c (macosx_version_as_macro): Likewise.
294 * config/darwin-driver.c (validate_macosx_version_min):
296 (darwin_find_version_from_kernel): Likewise.
298 2021-10-27 Aldy Hernandez <aldyh@redhat.com>
300 * gimple-range-path.cc
301 (path_range_query::range_defined_in_block): Call killing_def.
303 2021-10-27 Aldy Hernandez <aldyh@redhat.com>
305 * gimple-range-fold.cc (fold_using_range::range_of_range_op): Dump
306 operands as well as relation.
307 * gimple-range-path.cc
308 (path_range_query::compute_ranges_in_block): Compute PHI relations
309 first. Compute outgoing relations at the end.
310 (path_range_query::compute_ranges): Remove call to compute_relations.
311 (path_range_query::compute_relations): Remove.
312 (path_range_query::maybe_register_phi_relation): New.
313 (path_range_query::compute_phi_relations): Abstract out
314 registering one PHI relation to...
315 (path_range_query::compute_outgoing_relations): ...here.
316 * gimple-range-path.h (class path_range_query): Remove
318 Add maybe_register_phi_relation.
320 2021-10-27 Aldy Hernandez <aldyh@redhat.com>
321 Andrew MacLeod <amacleod@redhat.com>
323 * value-relation.cc (path_oracle::killing_def): Kill second
326 2021-10-27 Martin Jambor <mjambor@suse.cz>
328 * ipa-cp.c (good_cloning_opportunity_p): Decide whether to use
329 profile feedback depending on their local availability.
331 2021-10-27 Martin Jambor <mjambor@suse.cz>
333 * params.opt (param_ipa_cp_profile_count_base): New parameter.
334 * doc/invoke.texi (Optimize Options): Add entry for
335 ipa-cp-profile-count-base.
336 * ipa-cp.c (max_count): Replace with base_count, replace all
337 occurrences too, unless otherwise stated.
338 (ipcp_cloning_candidate_p): identify mostly-directly called
339 functions based on their counts, not max_count.
340 (compare_edge_profile_counts): New function.
341 (ipcp_propagate_stage): Instead of setting max_count, find the
342 appropriate edge count in a sorted vector of counts of eligible
343 edges and make it the base_count.
345 2021-10-27 Martin Jambor <mjambor@suse.cz>
347 * ipa-cp.c (struct caller_statistics): New fields rec_count_sum,
348 n_nonrec_calls and itself, document all fields.
349 (init_caller_stats): Initialize the above new fields.
350 (gather_caller_stats): Gather self-recursive counts and calls number.
351 (get_info_about_necessary_edges): Gather counts of self-recursive and
352 other edges bringing in the requested value separately.
353 (dump_profile_updates): Rework to dump info about a single node only.
354 (lenient_count_portion_handling): New function.
355 (struct gather_other_count_struct): New type.
356 (gather_count_of_non_rec_edges): New function.
357 (struct desc_incoming_count_struct): New type.
358 (analyze_clone_icoming_counts): New function.
359 (adjust_clone_incoming_counts): Likewise.
360 (update_counts_for_self_gen_clones): Likewise.
361 (update_profiling_info): Rewritten.
362 (update_specialized_profile): Adjust call to dump_profile_updates.
363 (create_specialized_node): Do not update profiling info.
364 (decide_about_value): New parameter self_gen_clones, either push new
365 clones into it or updat their profile counts. For self-recursively
366 generated values, use a portion of the node count instead of count
367 from self-recursive edges to estimate goodness.
368 (decide_whether_version_node): Gather clones for self-generated values
369 in a new vector, update their profiles at once at the end.
371 2021-10-27 Richard Biener <rguenther@suse.de>
373 * tree-vectorizer.c (vect_transform_loops): New function,
375 (try_vectorize_loop_1): ... here. Simplify as epilogues
376 are now fully handled in the split part.
378 2021-10-27 Jakub Jelinek <jakub@redhat.com>
380 * omp-expand.c (expand_omp_for_init_counts): Handle non-rectangular
381 iterators with pointer types.
382 (expand_omp_for_init_vars, extract_omp_for_update_vars): Likewise.
384 2021-10-26 Martin Sebor <msebor@redhat.com>
386 PR tree-optimization/102238
387 PR tree-optimization/102919
388 * gimple-ssa-sprintf.c (get_string_length): Add an argument.
389 (array_elt_at_offset): Move to pointer-query.
390 (set_aggregate_size_and_offset): New function.
391 (field_at_offset): Move to pointer-query.
392 (get_origin_and_offset): Rename...
393 (get_origin_and_offset_r): this. Add an argument. Make aggregate
394 handling more robust.
395 (get_origin_and_offset): New.
396 (alias_offset): Add an argument.
397 (format_string): Use subobject size determined by get_origin_and_offset.
398 * pointer-query.cc (field_at_offset): Move from gimple-ssa-sprintf.c.
399 Improve/correct handling of aggregates.
400 (array_elt_at_offset): Same.
401 * pointer-query.h (field_at_offset): Declare.
402 (array_elt_at_offset): Declare.
404 2021-10-26 Martin Sebor <msebor@redhat.com>
406 * builtins.c (check_strncat_sizes): Pass access_data ctor additional
408 (expand_builtin_memcmp): Move code to gimple-ssa-warn-access.cc.
409 (expand_builtin_fork_or_exec): Same.
410 * gimple-array-bounds.cc (array_bounds_checker::check_mem_ref): Pass
411 compute_objsize additional arguments.
412 (inbounds_memaccess_p): Same.
413 (array_bounds_checker::check_array_bounds): Add an assert. Stash
414 statement in a member.
415 (check_array_bounds_dom_walker::before_dom_children): Same.
416 * gimple-array-bounds.h (array_bounds_checker::m_stmt): New member.
417 * gimple-ssa-sprintf.c (get_destination_size): Add an argument.
418 (handle_printf_call): Pass a new argument.
419 * gimple-ssa-warn-access.cc (get_size_range): Add an argument.
420 (check_access): Add an argument and pass it along to callees.
421 (check_read_access): Make a member function.
422 (pass_waccess::check_strcat): Pass access_data ctor additional
424 (pass_waccess::check_strncat): Same.
425 (pass_waccess::check_stxcpy): Same.
426 (pass_waccess::check_stxncpy): Same.
427 (pass_waccess::check_strncmp): Same.
428 (pass_waccess::check_read_access): Same.
429 (pass_waccess::check_builtin): Same.
430 (pass_waccess::maybe_check_access_sizes): Same.
431 (pass_waccess::maybe_check_dealloc_call): Same.
432 * gimple-ssa-warn-access.h (check_read_access): Declare a new
434 * pointer-query.cc (compute_objsize_r): Add an argument.
435 (gimple_call_return_array): Same.
436 (gimple_call_alloc_size): Same.
437 (access_ref::access_ref): Same.
438 (access_ref::get_ref): Same.
439 (pointer_query::get_ref): Same.
440 (handle_min_max_size): Pass an arguments to callees.
441 (handle_array_ref): Add an argument.
442 (handle_mem_ref): Same.
443 (compute_objsize): Same.
444 * pointer-query.h (struct access_ref): Adjust signatures.
445 (struct access_data): Same.
446 (gimple_call_alloc_size): Add an argument.
447 (gimple_parm_array_size): Same.
448 (compute_objsize): Same.
449 * tree-ssa-strlen.c (strlen_pass::adjust_last_stmt): Pass an additional
450 argument to compute_objsize.
451 (strlen_pass::maybe_warn_overflow): Same.
452 (maybe_diag_stxncpy_trunc): Same.
454 2021-10-26 Martin Sebor <msebor@redhat.com>
457 * gimple-ssa-warn-access.cc (pass_waccess::check_atomic_builtin): New.
458 (pass_waccess::check_atomic_builtin): Call it.
460 2021-10-26 Vladimir N. Makarov <vmakarov@redhat.com>
462 PR rtl-optimization/102842
463 * lra-constraints.c (match_reload): Ignore out in checking values
465 (curr_insn_transform): Collect outputs before doing reloads of operands.
467 2021-10-26 Paul A. Clarke <pc@us.ibm.com>
470 * config/rs6000/x86intrin.h: Move some included headers to new
471 headers. Include new immintrin.h instead of those headers.
472 * config/rs6000/immintrin.h: New.
473 * config/rs6000/x86gprintrin.h: New.
474 * config.gcc (powerpc*-*-*): Add new headers to extra_headers.
476 2021-10-26 Richard Biener <rguenther@suse.de>
478 * tree-vectorizer.h (vect_create_addr_base_for_vector_ref):
479 Remove byte_offset parameter.
480 (vect_create_data_ref_ptr): Likewise.
481 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
483 (vect_create_data_ref_ptr): Likewise.
484 * tree-vect-stmts.c (vectorizable_store): Adjust.
485 (vectorizable_load): Likewise.
487 2021-10-26 Richard Biener <rguenther@suse.de>
489 PR tree-optimization/96109
490 * tree-vectorizer.h (dr_misalignment): Add optional offset
492 * tree-vect-data-refs.c (dr_misalignment): Likewise. Remove
493 offset applied for negative stride accesses.
494 (vect_enhance_data_refs_alignment): Compute negative stride
495 access offset and pass it to dr_misalignment.
496 * tree-vect-stmts.c (get_negative_load_store_type): Pass
497 negative offset to dr_misalignment.
498 (get_group_load_store_type): Likewise.
499 (get_load_store_type): Likewise.
500 (vectorizable_store): Remove asserts about alignment.
501 (vectorizable_load): Likewise.
503 2021-10-26 Kewen Lin <linkw@linux.ibm.com>
505 PR tree-optimization/102897
506 * tree-ssa-forwprop.c (simplify_permutation): Remove a wrong assertion.
508 2021-10-26 Richard Biener <rguenther@suse.de>
510 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
511 Take offset in bytes.
512 (vect_create_data_ref_ptr): Likewise.
513 * tree-vect-loop-manip.c (get_misalign_in_elems): Multiply
514 offset by element size.
515 (vect_create_cond_for_align_checks): Likewise.
516 * tree-vect-stmts.c (get_negative_load_store_type): Likewise.
517 (vectorizable_load): Remove duplicate leftover from merge
520 2021-10-26 Roger Sayle <roger@nextmovesoftware.com>
522 * config/i386/i386-expand.c (ix86_expand_v1ti_shift): New helper
523 function to expand V1TI mode logical shifts by integer constants.
524 (ix86_expand_v1ti_rotate): New helper function to expand V1TI
525 mode rotations by integer constants.
526 * config/i386/i386-protos.h (ix86_expand_v1ti_shift,
527 ix86_expand_v1ti_rotate): Prototype new functions here.
528 * config/i386/sse.md (ashlv1ti3, lshrv1ti3, rotlv1ti3, rotrv1ti3):
529 New TARGET_SSE2 expanders to implement V1TI shifts and rotations.
531 2021-10-26 Aldy Hernandez <aldyh@redhat.com>
533 * tree-ssa-threadbackward.c (back_threader::maybe_register_path):
534 Avoid threading circular paths.
536 2021-10-26 Aldy Hernandez <aldyh@redhat.com>
538 * tree-ssa-threadbackward.c (back_threader::resolve_phi):
539 Attempt to resolve all incoming paths to a PHI.
540 (back_threader::resolve_def): Always return true for PHIs.
542 2021-10-26 Aldy Hernandez <aldyh@redhat.com>
544 * tree-ssa-threadbackward.c (back_threader::find_paths_to_names):
545 Always try to resolve path without looking back.
546 * tree-ssa-threadupdate.c (dump_jump_thread): Indidicate whether
549 2021-10-26 Kewen Lin <linkw@linux.ibm.com>
551 PR tree-optimization/102789
552 * tree-vect-loop-manip.c (vect_update_inits_of_drs): Do not
553 update inits of simd_lane_access.
555 2021-10-25 Andrew MacLeod <amacleod@redhat.com>
557 * tree-vrp.c (vrp_simplify_cond_using_ranges): Add return type and
559 (simplify_casted_conds): Move to vrp_folder class.
560 (execute_vrp): Call via vrp_folder now.
561 * vr-values.c (simplify_cond_using_ranges_1): Call simplify_casted_cond.
562 (simplify_using_ranges::simplify_casted_cond): Relocate from tree-vrp.c.
563 * vr-values.h (simplify_casted_cond): Add prototype.
565 2021-10-25 Andrew MacLeod <amacleod@redhat.com>
567 * tree-vrp.c (rvrp_folder::fold_stmt): If simplification fails, try
570 2021-10-25 Paul A. Clarke <pc@us.ibm.com>
572 * config/rs6000/smmintrin.h (_mm_testz_si128): Add "extern" to
574 (_mm_testc_si128): Likewise.
575 (_mm_testnzc_si128): Likewise.
576 (_mm_blend_ps): Likewise.
577 (_mm_blendv_ps): Likewise.
578 (_mm_blend_pd): Likewise.
579 (_mm_blendv_pd): Likewise.
580 (_mm_ceil_pd): Likewise.
581 (_mm_ceil_sd): Likewise.
582 (_mm_ceil_ps): Likewise.
583 (_mm_ceil_ss): Likewise.
584 (_mm_floor_pd): Likewise.
585 (_mm_floor_sd): Likewise.
586 (_mm_floor_ps): Likewise.
587 (_mm_floor_ss): Likewise.
588 (_mm_minpos_epu16): Likewise.
589 (_mm_mul_epi32): Likewise.
590 (_mm_cvtepi8_epi16): Likewise.
591 (_mm_packus_epi32): Likewise.
592 (_mm_cmpgt_epi64): Likewise.
594 2021-10-25 Roger Sayle <roger@nextmovesoftware.com>
596 * simplify-rtx.c (simplify_binary_operation_1) [SS_ASHIFT]: Simplify
597 shifts of the mode's smin_value and smax_value when the bit count
598 operand doesn't have side-effects.
599 [US_ASHIFT]: Likewise, simplify shifts of the mode's umax_value
600 when the bit count operand doesn't have side-effects.
601 (simplify_const_binary_operation) [SS_ASHIFT, US_ASHIFT]: Perform
602 compile-time evaluation of saturating left shifts with constant
605 2021-10-25 Andrew MacLeod <amacleod@redhat.com>
607 * gimple-range.cc (gimple_ranger::export_global_ranges): Remove check
610 2021-10-25 Andrew MacLeod <amacleod@redhat.com>
612 * flag-types.h (enum ranger_debug): Adjust values.
613 * params.opt (ranger_debug): Ditto.
615 2021-10-25 Martin Jambor <mjambor@suse.cz>
617 PR tree-optimization/102886
618 * tree-sra.c (totally_scalarize_subtree): Fix the out of
621 2021-10-25 Andrew Pinski <apinski@marvell.com>
623 * tree-ssa-dce.c (simple_dce_from_worklist):
624 Check stmt_unremovable_because_of_non_call_eh_p also
625 before removing the statement.
627 2021-10-25 Richard Biener <rguenther@suse.de>
629 PR tree-optimization/102905
630 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
631 Use vect_supportable_dr_alignment again to determine whether
632 an access is supported when not aligned.
634 2021-10-25 Kito Cheng <kito.cheng@sifive.com>
636 * config/riscv/riscv.c (riscv_rtx_costs): Handle cost model
639 2021-10-25 Jim Wilson <jimw@sifive.com>
640 Kito Cheng <kito.cheng@sifive.com>
641 Jia-Wei Chen <jiawei@iscas.ac.cn>
642 Shi-Hua Liao <shihua@iscas.ac.cn>
644 * config/riscv/bitmanip.md (shiftm1): New.
645 (*bset<mode>): Ditto.
646 (*bset<mode>_mask): Ditto.
647 (*bset<mode>_1): Ditto.
648 (*bset<mode>_1_mask): Ditto.
649 (*bseti<mode>): Ditto.
650 (*bclr<mode>): Ditto.
651 (*bclri<mode>): Ditto.
652 (*binv<mode>): Ditto.
653 (*binvi<mode>): Ditto.
654 (*bext<mode>): Ditto.
656 * config/riscv/predicates.md (splittable_const_int_operand):
658 (single_bit_mask_operand): New.
659 (not_single_bit_mask_operand): Ditto.
660 (const31_operand): Ditto.
661 (const63_operand): Ditto.
662 * config/riscv/riscv.c (riscv_build_integer_1): Handle bseti.
663 (riscv_output_move): Ditto.
664 (riscv_print_operand): Handle new operand type: T and S.
665 * config/riscv/riscv.h (SINGLE_BIT_MASK_OPERAND): New.
667 2021-10-25 Jim Wilson <jimw@sifive.com>
669 * config/riscv/riscv.c (riscv_build_integer_1): Build integer
672 2021-10-25 Kito Cheng <kito.cheng@sifive.com>
674 * config/riscv/riscv.c (riscv_extend_cost): Handle cost model
676 (riscv_rtx_costs): Ditto.
678 2021-10-25 Jim Wilson <jimw@sifive.com>
679 Kito Cheng <kito.cheng@sifive.com>
680 Jia-Wei Chen <jiawei@iscas.ac.cn>
682 * config/riscv/bitmanip.md (bitmanip_bitwise): New.
683 (bitmanip_minmax): New.
685 (bitmanip_optab): New.
686 (bitmanip_insn): New.
687 (*<optab>_not<mode>): New.
688 (*xor_not<mode>): New.
689 (<bitmanip_optab>si2): New.
690 (*<bitmanip_optab>disi2): New.
691 (<bitmanip_optab>di2): New.
692 (*zero_extendhi<GPR:mode>2_bitmanip): New.
693 (*extend<SHORT:mode><SUPERQI:mode>2_zbb): New.
694 (*zero_extendhi<GPR:mode>2_zbb): New.
702 (<bitmanip_optab><mode>3): New.
703 * config/riscv/riscv.md (type): Add rotate.
704 (zero_extendhi<GPR:mode>2): Change to define_expand pattern.
705 (*zero_extendhi<GPR:mode>2): New.
706 (extend<SHORT:mode><SUPERQI:mode>2): Change to define_expand pattern.
707 (*extend<SHORT:mode><SUPERQI:mode>2): New.
709 2021-10-25 Kito Cheng <kito.cheng@sifive.com>
711 * config/riscv/riscv.c (riscv_extend_cost): Handle cost model
713 (riscv_rtx_costs): Ditto.
715 2021-10-25 Jim Wilson <jimw@sifive.com>
716 Kito Cheng <kito.cheng@sifive.com>
717 Jia-Wei Chen <jiawei@iscas.ac.cn>
719 * config/riscv/bitmanip.md (*zero_extendsidi2_bitmanip): New.
724 (riscv_rtx_costs): Ditto.
725 * config/riscv/riscv.md: Include bitmanip.md
726 (type): Add bitmanip bype.
727 (zero_extendsidi2): Change to define_expand pattern.
728 (*zero_extendsidi2_internal): New.
729 (zero_extendsidi2_shifted): Disable for ZBA.
731 2021-10-25 Kito Cheng <kito.cheng@sifive.com>
733 * common/config/riscv/riscv-common.c (riscv_ext_version_table):
734 Add zba, zbb, zbc and zbs.
735 (riscv_ext_flag_table): Ditto.
736 * config/riscv/riscv-opts.h (MASK_ZBA): New.
744 * config/riscv/riscv.opt (riscv_zb_subext): New.
746 2021-10-25 liuhongt <hongtao.liu@intel.com>
749 * match.pd: Simplify (_Float16) sqrtf((float) a) to .SQRT(a)
750 when direct_internal_fn_supported_p, similar for sqrt/sqrtl.
752 2021-10-25 Richard Biener <rguenther@suse.de>
754 PR tree-optimization/102920
755 * tree-ssa-sccvn.h (expressions_equal_p): Add argument
756 controlling VN_TOP matching behavior.
757 * tree-ssa-sccvn.c (expressions_equal_p): Likewise.
758 (vn_phi_eq): Do not optimistically match VN_TOP.
760 2021-10-25 konglin1 <lingling.kong@intel.com>
762 * config/i386/sse.md (fma_<mode>_fadd_fmul): Add new
763 define_insn_and_split.
764 (fma_<mode>_fadd_fcmul):Likewise
765 (fma_<complexopname>_<mode>_fma_zero):Likewise
767 2021-10-24 John David Anglin <danglin@gcc.gnu.org>
769 * config/pa/pa-d.c (pa_d_handle_target_float_abi): Don't check
770 TARGET_DISABLE_FPREGS.
771 * config/pa/pa.c (fix_range): Use MASK_SOFT_FLOAT instead of
773 (hppa_rtx_costs): Don't check TARGET_DISABLE_FPREGS. Adjust
774 cost of hardware integer multiplication.
775 (pa_conditional_register_usage): Don't check TARGET_DISABLE_FPREGS.
776 * config/pa/pa.h (INT14_OK_STRICT): Likewise.
777 * config/pa/pa.md: Don't check TARGET_DISABLE_FPREGS. Check
778 TARGET_SOFT_FLOAT in patterns that use xmpyu instruction.
779 * config/pa/pa.opt (mdisable-fpregs): Change target mask to
780 SOFT_FLOAT. Revise comment.
781 (msoft-float): New option.
783 2021-10-24 John David Anglin <danglin@gcc.gnu.org>
785 * config/pa/pa.md: Don't use 'G' constraint in integer move patterns.
787 2021-10-24 Gerald Pfeifer <gerald@pfeifer.com>
789 * doc/install.texi (Specific): Remove obsolete details
790 around GNU/Linux on Itanium.
791 (Specific): Remove reference to Windows for Itanium.
793 2021-10-23 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
795 * config/i386/x86-tune-sched-bd.c (dispatch_group): Commentary
798 2021-10-23 Jan Hubicka <hubicka@ucw.cz>
800 * tree-ssa-structalias.c (compute_points_to_sets): Cleanup.
802 2021-10-23 Roger Sayle <roger@nextmovesoftware.com>
804 * config/i386/sse.md (<any_logic>v1ti3): New define_insn to
805 implement V1TImode AND, IOR and XOR on TARGET_SSE2 (and above).
806 (one_cmplv1ti2): New define expand.
808 2021-10-22 Eric Gallager <egallager@gcc.gnu.org>
811 * Makefile.in: Handle dvidir and install-dvi target.
812 * configure: Regenerate.
813 * configure.ac: Add install-dvi to target_list.
815 2021-10-22 Gerald Pfeifer <gerald@pfeifer.com>
817 * doc/install.texi (Binaries): Convert mingw-w64.org to https.
820 2021-10-22 Richard Biener <rguenther@suse.de>
822 PR tree-optimization/102893
823 * tree-ssa-dce.c (find_obviously_necessary_stmts): Fix the
824 test for an exit edge.
826 2021-10-22 Aldy Hernandez <aldyh@redhat.com>
827 Andrew MacLeod <amacleod@redhat.com>
829 * gimple-range-path.cc (path_range_query::compute_phi_relations):
830 Kill any global relations we may know before registering a new
832 * value-relation.cc (path_oracle::killing_def): New.
833 * value-relation.h (path_oracle::killing_def): New.
835 2021-10-22 Richard Biener <rguenther@suse.de>
838 * tree-ssa-sccvn.c (vn_phi_insert): For undefined SSA args
840 (vn_phi_lookup): Likewise.
842 2021-10-21 H.J. Lu <hjl.tools@gmail.com>
845 * doc/invoke.texi: Document -fcf-protection requires i686 or
848 2021-10-21 Eric Botcazou <ebotcazou@adacore.com>
851 * cfgexpand.c (expand_gimple_basic_block): Robustify latest change.
853 2021-10-21 Jonathan Wright <jonathan.wright@arm.com>
855 * config/aarch64/arm_neon.h (__STRUCTN): Delete function
856 macro and all invocations.
858 2021-10-21 Andrew MacLeod <amacleod@redhat.com>
860 * doc/invoke.texi (ranger-debug): Document.
861 * flag-types.h (enum ranger_debug): New.
862 (enum evrp_mode): Remove debug values.
863 * gimple-range-cache.cc (DEBUG_RANGE_CACHE): Use new debug flag.
864 * gimple-range-gori.cc (gori_compute::gori_compute): Ditto.
865 * gimple-range.cc (gimple_ranger::gimple_ranger): Ditto.
866 * gimple-ssa-evrp.c (hybrid_folder::choose_value): Ditto.
867 (execute_early_vrp): Use evrp-mode directly.
868 * params.opt (enum evrp_mode): Remove debug values.
870 (ranger-logical-depth): Relocate to be in alphabetical order.
872 2021-10-21 Andrew MacLeod <amacleod@redhat.com>
874 * doc/invoke.texi: (vrp1-mode, vrp2-mode): Document.
875 * flag-types.h: (enum vrp_mode): New.
876 * params.opt: (vrp1-mode, vrp2-mode): New.
877 * tree-vrp.c (vrp_pass_num): New.
878 (pass_vrp::pass_vrp): Set pass number.
879 (pass_vrp::execute): Choose which VRP mode to execute.
881 2021-10-21 Andrew MacLeod <amacleod@redhat.com>
883 * gimple-ssa-evrp.c (class rvrp_folder): Move to tree-vrp.c.
884 (execute_early_vrp): For ranger only mode, invoke ranger_vrp.
885 * tree-vrp.c (class rvrp_folder): Relocate here.
886 (execute_ranger_vrp): New.
887 * tree-vrp.h (execute_ranger_vrp): Export.
889 2021-10-21 Martin Liska <mliska@suse.cz>
893 * opts.c (finish_options): Process flag_var_tracking* options
894 here as they can be adjusted by optimize attribute.
895 Process also flag_syntax_only and flag_gtoggle.
896 * toplev.c (process_options): Remove it here.
897 * common.opt: Make debug_nonbind_markers_p as PerFunction
898 attribute as it depends on optimization level.
900 2021-10-21 Martin Jambor <mjambor@suse.cz>
902 PR tree-optimization/102505
903 * tree-sra.c (totally_scalarize_subtree): Check that the
904 encountered field fits within the acces we would like to put it
907 2021-10-21 Aldy Hernandez <aldyh@redhat.com>
909 * tree-ssa-threadbackward.c
910 (back_threader::maybe_register_path): Remove circular paths check.
912 2021-10-21 Richard Biener <rguenther@suse.de>
914 * toplev.c (process_options): Move the initial debug_hooks
916 (toplev::main): ... before the call of the post_options
919 2021-10-21 Richard Biener <rguenther@suse.de>
921 PR tree-optimization/102847
922 * tree-vect-stmts.c (vect_model_load_cost): Add the scalar
923 load cost in the prologue for VMAT_INVARIANT.
925 2021-10-21 Richard Biener <rguenther@suse.de>
927 PR tree-optimization/102847
928 * tree-vect-stmts.c (vect_model_load_cost): Explicitely
929 handle VMAT_INVARIANT as a splat in the prologue.
931 2021-10-21 Hongyu Wang <hongyu.wang@intel.com>
934 * config/i386/i386.c (ix86_get_ssemov): Adjust HFmode vector
935 move to use the same logic as HImode.
937 2021-10-21 Richard Biener <rguenther@suse.de>
939 * tree-vect-slp.c (vect_build_slp_tree_1): Remove
940 superfluous gimple_call_nothrow_p check.
942 2021-10-21 Andrew Pinski <apinski@marvell.com>
944 * tree-cfg.c (maybe_remove_writeonly_store): Add dce_ssa_names argument.
945 Mark the ssa-name of the rhs as one to be removed.
946 (execute_fixup_cfg): Update call to maybe_remove_writeonly_store.
947 Call simple_dce_from_worklist at the end to a simple dce.
949 2021-10-21 Andrew Pinski <apinski@marvell.com>
951 * tree-cfg.c (maybe_remove_writeonly_store): New function
952 factored out from ...
953 (execute_fixup_cfg): Here. Call maybe_remove_writeonly_store.
955 2021-10-21 Andrew Pinski <apinski@marvell.com>
957 * tree-cfg.c (execute_fixup_cfg): Remove comment
958 about standalone pass.
960 2021-10-21 Andrew Pinski <apinski@marvell.com>
962 * tree-cfg.c (execute_fixup_cfg): Output when the statement
963 is removed when it is a write only var.
965 2021-10-21 Aldy Hernandez <aldyh@redhat.com>
967 * tree-ssa-threadbackward.c (back_threader::maybe_register_path):
968 Avoid threading circular paths.
970 2021-10-20 Alex Coplan <alex.coplan@arm.com>
972 * calls.c (initialize_argument_information): Remove some dead
973 code, remove handling for function_arg returning const_int.
974 * doc/tm.texi: Delete documentation for unused target hooks.
975 * doc/tm.texi.in: Likewise.
976 * target.def (load_bounds_for_arg): Delete.
977 (store_bounds_for_arg): Delete.
978 (load_returned_bounds): Delete.
979 (store_returned_bounds): Delete.
980 * targhooks.c (default_load_bounds_for_arg): Delete.
981 (default_store_bounds_for_arg): Delete.
982 (default_load_returned_bounds): Delete.
983 (default_store_returned_bounds): Delete.
984 * targhooks.h (default_load_bounds_for_arg): Delete.
985 (default_store_bounds_for_arg): Delete.
986 (default_load_returned_bounds): Delete.
987 (default_store_returned_bounds): Delete.
989 2021-10-20 Jonathan Wakely <jwakely@redhat.com>
991 * doc/extend.texi (Basic Asm): Clarify that asm is not an
993 * doc/invoke.texi (-fno-asm): Fix description for C++.
995 2021-10-20 Jonathan Wakely <jwakely@redhat.com>
997 * doc/install.texi: Remove link to old.html
999 2021-10-20 Tamar Christina <tamar.christina@arm.com>
1001 * config/aarch64/aarch64-simd.md (*aarch64_cmtst_same_<mode>): New.
1003 2021-10-20 Tamar Christina <tamar.christina@arm.com>
1005 * config/aarch64/aarch64-simd.md (*aarch64_narrow_trunc<mode>): New.
1007 2021-10-20 Tamar Christina <tamar.christina@arm.com>
1009 * config/aarch64/aarch64-simd.md (aarch64_simd_ashr<mode>): Add case cmp
1011 * config/aarch64/constraints.md (D1): New.
1013 2021-10-20 Tamar Christina <tamar.christina@arm.com>
1015 * config/aarch64/aarch64-simd.md
1016 (*aarch64_<srn_op>topbits_shuffle<mode>_le): New.
1017 (*aarch64_topbits_shuffle<mode>_le): New.
1018 (*aarch64_<srn_op>topbits_shuffle<mode>_be): New.
1019 (*aarch64_topbits_shuffle<mode>_be): New.
1020 * config/aarch64/predicates.md
1021 (aarch64_simd_shift_imm_vec_exact_top): New.
1023 2021-10-20 Tamar Christina <tamar.christina@arm.com>
1025 * config/aarch64/aarch64-simd.md (*aarch64_<srn_op>shrn<mode>_vect,
1026 *aarch64_<srn_op>shrn<mode>2_vect_le,
1027 *aarch64_<srn_op>shrn<mode>2_vect_be): New.
1028 * config/aarch64/iterators.md (srn_op): New.
1030 2021-10-20 Chung-Lin Tang <cltang@codesourcery.com>
1032 * omp-low.c (omp_copy_decl_2): For !ctx, use record_vars to add new copy
1034 (scan_sharing_clauses): Place copy of OMP_CLAUSE_IN_REDUCTION decl in
1035 ctx->outer instead of ctx.
1037 2021-10-20 Martin Liska <mliska@suse.cz>
1040 2021-10-19 Martin Liska <mliska@suse.cz>
1043 * config/i386/i386-options.c (ix86_valid_target_attribute_inner_p): Strip whitespaces.
1044 * system.h (strip_whilespaces): New function.
1046 2021-10-20 Martin Liska <mliska@suse.cz>
1049 2021-10-19 Martin Liska <mliska@suse.cz>
1052 * config/aarch64/aarch64.c (aarch64_process_one_target_attr):
1055 2021-10-20 Wilco Dijkstra <wdijkstr@arm.com>
1057 * config/aarch64/aarch64.c (aarch64_case_values_threshold):
1058 Change to 8 with -Os, 11 otherwise.
1060 2021-10-20 Wilco Dijkstra <wdijkstr@arm.com>
1062 * config/aarch64/aarch64.c (neoversev1_tunings):
1063 Enable AARCH64_EXTRA_TUNE_CHEAP_SHIFT_EXTEND.
1064 (neoversen2_tunings): Likewise.
1066 2021-10-20 Wilco Dijkstra <wdijkstr@arm.com>
1069 * config/aarch64/aarch64.md (frint_pattern): Update comment.
1070 * config/aarch64/aarch64-simd-builtins.def: Change frintn to roundeven.
1071 * config/aarch64/arm_fp16.h: Change frintn to roundeven.
1072 * config/aarch64/arm_neon.h: Likewise.
1073 * config/aarch64/iterators.md (frint_pattern): Use roundeven for FRINTN.
1075 2021-10-20 Martin Liska <mliska@suse.cz>
1077 * config/arm/arm.c (arm_unwind_emit_sequence): Do not declare
1078 already declared global variable.
1079 (arm_unwind_emit_set): Use out_file as function argument.
1080 (arm_unwind_emit): Likewise.
1081 * config/darwin.c (machopic_output_data_section_indirection): Likewise.
1082 (machopic_output_stub_indirection): Likewise.
1083 (machopic_output_indirection): Likewise.
1084 (machopic_finish): Likewise.
1085 * config/i386/i386.c (ix86_asm_output_function_label): Likewise.
1086 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
1087 * config/ia64/ia64.c (process_epilogue): Likewise.
1088 (process_cfa_adjust_cfa): Likewise.
1089 (process_cfa_register): Likewise.
1090 (process_cfa_offset): Likewise.
1091 (ia64_asm_unwind_emit): Likewise.
1092 * config/s390/s390.c (s390_asm_output_function_label): Likewise.
1094 2021-10-20 Andre Simoes Dias Vieira <andre.simoesdiasvieira@arm.com>
1096 * config/aarch64/aarch64-builtins.c
1097 (aarch64_general_gimple_fold_builtin):
1098 lower vld1 and vst1 variants of the neon builtins
1099 * config/aarch64/aarch64-protos.h:
1100 (aarch64_general_gimple_fold_builtin): Add gsi parameter.
1101 * config/aarch64/aarch64.c (aarch64_general_gimple_fold_builtin):
1104 2021-10-20 Andre Simoes Dias Vieira <andre.simoesdiasvieira@arm.com>
1106 * match.pd: Generate IFN_TRUNC.
1108 2021-10-20 Richard Biener <rguenther@suse.de>
1110 PR tree-optimization/102853
1111 * tree-data-ref.c (split_constant_offset_1): Bail out
1112 immediately if the expression traps on overflow.
1114 2021-10-20 Aldy Hernandez <aldyh@redhat.com>
1116 * tree-ssa-threadbackward.c (back_threader::~back_threader): Remove.
1118 2021-10-20 Aldy Hernandez <aldyh@redhat.com>
1120 * tree-ssa-threadupdate.c (back_jt_path_registry::adjust_paths_after_duplication):
1121 Remove superflous debugging message.
1122 (back_jt_path_registry::duplicate_thread_path): Same.
1124 2021-10-20 Aldy Hernandez <aldyh@redhat.com>
1126 * tree-ssa-threadbackward.c (back_threader_registry::back_threader_registry):
1128 (back_threader_registry::register_path): Remove m_threaded_paths.
1130 2021-10-20 Aldy Hernandez <aldyh@redhat.com>
1132 PR tree-optimization/102814
1133 * doc/invoke.texi: Document --param=max-fsm-thread-length.
1134 * params.opt: Add --param=max-fsm-thread-length.
1135 * tree-ssa-threadbackward.c
1136 (back_threader_profitability::profitable_path_p): Fail on paths
1137 longer than max-fsm-thread-length.
1139 2021-10-20 Eric Botcazou <ebotcazou@adacore.com>
1141 PR middle-end/102764
1142 * cfgexpand.c (expand_gimple_basic_block): Disregard a final debug
1143 statement to reset the current location for the outgoing edges.
1145 2021-10-20 Aldy Hernandez <aldyh@redhat.com>
1146 Richard Biener <rguenther@suse.de>
1148 * tree-ssa-threadupdate.c (cancel_thread): Dump threading reason
1149 on the same line as the threading cancellation.
1150 (jt_path_registry::cancel_invalid_paths): Avoid rotating loops.
1151 Avoid threading through loop headers where the path remains in the
1154 2021-10-20 Siddhesh Poyarekar <siddhesh@gotplt.org>
1156 * tree-object-size.c (unknown): Make into a function. Adjust
1158 (unknown_object_size): Simplify implementation.
1160 2021-10-20 Hongtao Liu <hongtao.liu@intel.com>
1161 Kewen Lin <linkw@linux.ibm.com>
1163 * doc/sourcebuild.texi (Effective-Target Keywords): Document
1164 vect_slp_v2qi_store, vect_slp_v4qi_store, vect_slp_v8qi_store,
1165 vect_slp_v16qi_store, vect_slp_v2hi_store,
1166 vect_slp_v4hi_store, vect_slp_v2si_store, vect_slp_v4si_store.
1168 2021-10-19 Jonathan Wakely <jwakely@redhat.com>
1170 * doc/extend.texi (Basic PowerPC Built-in Functions): Fix typo.
1172 2021-10-19 Paul A. Clarke <pc@us.ibm.com>
1176 * config/rs6000/emmintrin.h: Guard POWER8 intrinsics.
1177 * config/rs6000/pmmintrin.h: Same.
1178 * config/rs6000/smmintrin.h: Same.
1179 * config/rs6000/tmmintrin.h: Same.
1181 2021-10-19 Paul A. Clarke <pc@us.ibm.com>
1183 * config.gcc (extra_headers): Add nmmintrin.h.
1185 2021-10-19 Richard Biener <rguenther@suse.de>
1187 * tree-vectorizer.h (vect_supportable_dr_alignment): Add
1188 misalignment parameter.
1189 * tree-vect-data-refs.c (vect_get_peeling_costs_all_drs):
1190 Do not change DR_MISALIGNMENT in place, instead pass the
1191 adjusted misalignment to vect_supportable_dr_alignment.
1192 (vect_peeling_supportable): Likewise.
1193 (vect_peeling_hash_get_lowest_cost): Adjust.
1194 (vect_enhance_data_refs_alignment): Likewise.
1195 (vect_vfa_access_size): Likewise.
1196 (vect_supportable_dr_alignment): Add misalignment
1197 parameter and simplify.
1198 * tree-vect-stmts.c (get_negative_load_store_type): Adjust.
1199 (get_group_load_store_type): Likewise.
1200 (get_load_store_type): Likewise.
1202 2021-10-19 Clément Chigot <clement.chigot@atos.net>
1204 * config/rs6000/rs6000.c (rs6000_xcoff_file_end): Move
1205 __tls_get_addr reference to .text csect.
1207 2021-10-19 Martin Liska <mliska@suse.cz>
1210 * config/aarch64/aarch64.c (aarch64_process_one_target_attr):
1213 2021-10-19 Richard Biener <rguenther@suse.de>
1215 * tree-vectorizer.h (vect_get_store_cost): Adjust signature.
1216 (vect_get_load_cost): Likewise.
1217 * tree-vect-data-refs.c (vect_get_data_access_cost): Get
1218 alignment support scheme and misalignment as arguments
1220 (vect_get_peeling_costs_all_drs): Compute that info here
1221 and note that we shouldn't need to.
1222 * tree-vect-stmts.c (vect_model_store_cost): Get
1223 alignment support scheme and misalignment as arguments.
1224 (vect_get_store_cost): Likewise.
1225 (vect_model_load_cost): Likewise.
1226 (vect_get_load_cost): Likewise.
1227 (vectorizable_store): Pass down alignment support scheme
1228 and misalignment to costing.
1229 (vectorizable_load): Likewise.
1231 2021-10-19 Richard Biener <rguenther@suse.de>
1233 * tree-vect-stmts.c (get_negative_load_store_type): Add
1234 offset output parameter and initialize it.
1235 (get_group_load_store_type): Likewise.
1236 (get_load_store_type): Likewise.
1237 (vectorizable_store): Use offset as computed by
1238 get_load_store_type.
1239 (vectorizable_load): Likewise.
1241 2021-10-19 Richard Biener <rguenther@suse.de>
1243 PR tree-optimization/102827
1244 * tree-if-conv.c (predicate_statements): Add pe parameter
1245 and use that edge to insert invariant stmts on.
1246 (combine_blocks): Pass through pe.
1247 (tree_if_conversion): Compute the edge to insert invariant
1248 stmts on and pass it along.
1250 2021-10-19 Roger Sayle <roger@nextmovesoftware.com>
1253 * config/bfin/bfin.md (addsubv2hi3, subaddv2hi3, ssaddsubv2hi3,
1254 sssubaddv2hi3): Swap the order of operators in vec_concat.
1256 2021-10-19 Xionghu Luo <luoxhu@linux.ibm.com>
1258 * config/rs6000/altivec.md (*altivec_vmrghb_internal): Delete.
1259 (altivec_vmrghb_direct): New.
1260 (*altivec_vmrghh_internal): Delete.
1261 (altivec_vmrghh_direct): New.
1262 (*altivec_vmrghw_internal): Delete.
1263 (altivec_vmrghw_direct_<mode>): New.
1264 (altivec_vmrghw_direct): Delete.
1265 (*altivec_vmrglb_internal): Delete.
1266 (altivec_vmrglb_direct): New.
1267 (*altivec_vmrglh_internal): Delete.
1268 (altivec_vmrglh_direct): New.
1269 (*altivec_vmrglw_internal): Delete.
1270 (altivec_vmrglw_direct_<mode>): New.
1271 (altivec_vmrglw_direct): Delete.
1272 * config/rs6000/rs6000-p8swap.c (rtx_is_swappable_p): Adjust.
1273 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const):
1275 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust.
1276 (vsx_xxmrglw_<mode>): Adjust.
1278 2021-10-19 Aldy Hernandez <aldyh@redhat.com>
1280 * passes.def: Change threading comment before pass_ccp pass.
1282 2021-10-19 Haochen Gui <guihaoc@gcc.gnu.org>
1284 * config/rs6000/rs6000-call.c (altivec_expand_lxvr_builtin):
1285 Modify the expansion for sign extension. All extensions are done
1286 within VSX registers.
1288 2021-10-19 Richard Biener <rguenther@suse.de>
1290 * tree-vect-stmts.c (get_group_load_store_type): Add
1291 misalignment output parameter and initialize it.
1292 (get_group_load_store_type): Likewise.
1293 (vectorizable_store): Remove now redundant queries.
1294 (vectorizable_load): Likewise.
1296 2021-10-19 Richard Biener <rguenther@suse.de>
1298 * tree-vectorizer.h (vect_supportable_dr_alignment): Remove
1299 check_aligned argument.
1300 * tree-vect-data-refs.c (vect_supportable_dr_alignment):
1302 (vect_peeling_hash_insert): Add supportable_if_not_aligned
1303 argument and do not call vect_supportable_dr_alignment here.
1304 (vect_peeling_supportable): Adjust.
1305 (vect_enhance_data_refs_alignment): Compute whether the
1306 access is supported with different alignment here and
1307 pass that down to vect_peeling_hash_insert.
1308 (vect_vfa_access_size): Adjust.
1309 * tree-vect-stmts.c (vect_get_store_cost): Likewise.
1310 (vect_get_load_cost): Likewise.
1311 (get_negative_load_store_type): Likewise.
1312 (get_group_load_store_type): Likewise.
1313 (get_load_store_type): Likewise.
1315 2021-10-19 Martin Liska <mliska@suse.cz>
1318 * config/i386/i386-options.c (ix86_valid_target_attribute_inner_p): Strip whitespaces.
1319 * system.h (strip_whilespaces): New function.
1321 2021-10-19 dianhong xu <dianhong.xu@intel.com>
1323 * config/i386/avx512fp16intrin.h:
1324 (_mm512_set1_pch): New intrinsic.
1325 * config/i386/avx512fp16vlintrin.h:
1326 (_mm256_set1_pch): New intrinsic.
1327 (_mm_set1_pch): Ditto.
1329 2021-10-18 Andrew MacLeod <amacleod@redhat.com>
1331 PR tree-optimization/102796
1332 * gimple-range.cc (gimple_ranger::range_on_edge): Process EH edges
1333 normally. Return get_tree_range for non gimple_range_ssa_p names.
1334 (gimple_ranger::range_of_stmt): Use get_tree_range for non
1335 gimple_range_ssa_p names.
1337 2021-10-18 Uroš Bizjak <ubizjak@gmail.com>
1340 * config/i386/i386.c (ix86_print_operand_address):
1341 Error out for non-address_operand asm operands.
1343 2021-10-18 Richard Biener <rguenther@suse.de>
1345 * tree-vect-data-refs.c (vect_peeling_hash_insert): Do
1346 not auto-convert dr_alignment_support to bool.
1347 (vect_peeling_supportable): Likewise.
1348 (vect_enhance_data_refs_alignment): Likewise.
1349 (vect_supportable_dr_alignment): Commonize read/write case.
1350 * tree-vect-stmts.c (vect_get_store_cost): Use
1351 dr_alignment_support, not int, for the vect_supportable_dr_alignment
1353 (vect_get_load_cost): Likewise.
1355 2021-10-18 Siddhesh Poyarekar <siddhesh@gotplt.org>
1357 * tree-object-size.c (object_sizes_execute): Consolidate LHS
1358 null check and do it early.
1360 2021-10-18 Richard Biener <rguenther@suse.de>
1362 * tree-vect-stmts.c (vectorizable_store): Use the
1363 computed alignment scheme instead of querying
1366 2021-10-18 Richard Biener <rguenther@suse.de>
1368 * tree-vect-stmts.c (vectorizable_store): Do not recompute
1369 alignment scheme already determined by get_load_store_type.
1371 2021-10-18 Aldy Hernandez <aldyh@redhat.com>
1373 * tree-ssa-threadbackward.c (class pass_thread_jumps_full):
1374 Clone corresponding pass.
1376 2021-10-18 Roger Sayle <roger@nextmovesoftware.com>
1378 * combine.c (recog_for_combine): For an unrecognized move/set of
1379 a constant, try force_const_mem to place it in the constant pool.
1380 * cse.c (constant_pool_entries_cost, constant_pool_entries_regcost):
1381 Delete global variables (that are no longer assigned a cost value).
1382 (cse_insn): Simplify logic for deciding whether to place a folded
1383 constant in the constant pool using force_const_mem.
1384 (cse_main): Remove zero initialization of constant_pool_entries_cost
1385 and constant_pool_entries_regcost.
1386 * config/i386/i386.c (ix86_rtx_costs): Make memory accesses
1387 fractionally more expensive, when optimizing for speed.
1389 2021-10-18 Martin Liska <mliska@suse.cz>
1391 PR gcov-profile/102746
1392 PR gcov-profile/102747
1393 * gcov.c (main): Return return_code.
1394 (output_gcov_file): Mark return_code when error happens.
1395 (generate_results): Likewise.
1396 (read_graph_file): Likewise.
1397 (read_count_file): Likewise.
1399 2021-10-18 Roger Sayle <roger@nextmovesoftware.com>
1401 * config/bfin/bfin.md (define_constants): Remove UNSPEC_ONES.
1402 (define_insn "ones"): Replace UNSPEC_ONES with a truncate of
1403 a popcount, allowing compile-time evaluation/simplification.
1404 (popcountsi2, popcounthi2): New expanders using a "ones" insn.
1406 2021-10-18 Richard Biener <rguenther@suse.de>
1408 PR tree-optimization/102788
1409 * tree-vect-patterns.c (vect_init_pattern_stmt): Allow
1411 (vect_pattern_recog_1): Likewise.
1412 (vect_recog_bool_pattern): Continue matching the pattern
1413 even if we do not have a vector type for a conversion
1416 2021-10-18 Roger Sayle <roger@nextmovesoftware.com>
1418 * simplify-rtx.c (simplify_const_unary_operation) [SS_NEG, SS_ABS]:
1419 Evalute SS_NEG and SS_ABS of a constant argument.
1421 2021-10-18 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
1424 * gimple-match-head.c (try_conditional_simplification): Add case for single operand.
1425 * internal-fn.def: Add entry for COND_NEG internal function.
1426 * internal-fn.c (FOR_EACH_CODE_MAPPING): Add entry for
1427 NEGATE_EXPR, COND_NEG mapping.
1428 * optabs.def: Add entry for cond_neg_optab.
1429 * match.pd (UNCOND_UNARY, COND_UNARY): New operator lists.
1430 (vec_cond COND (foo A) B) -> (IFN_COND_FOO COND A B): New pattern.
1431 (vec_cond COND B (foo A)) -> (IFN_COND_FOO ~COND A B): Likewise.
1433 2021-10-18 Aldy Hernandez <aldyh@redhat.com>
1435 * tree-ssa-strlen.c (class strlen_pass): Rename from
1437 (handle_builtin_stxncpy_strncat): Move to strlen_pass.
1438 (handle_assign): Same.
1439 (adjust_last_stmt): Same.
1440 (maybe_warn_overflow): Same.
1441 (handle_builtin_strlen): Same.
1442 (handle_builtin_strchr): Same.
1443 (handle_builtin_strcpy): Same.
1444 (handle_builtin_strncat): Same.
1445 (handle_builtin_stxncpy_strncat): Same.
1446 (handle_builtin_memcpy): Same.
1447 (handle_builtin_strcat): Same.
1448 (handle_alloc_call): Same.
1449 (handle_builtin_memset): Same.
1450 (handle_builtin_memcmp): Same.
1451 (get_len_or_size): Same.
1452 (strxcmp_eqz_result): Same.
1453 (handle_builtin_string_cmp): Same.
1454 (handle_pointer_plus): Same.
1455 (count_nonzero_bytes_addr): Same.
1456 (count_nonzero_bytes): Same.
1457 (handle_store): Same.
1458 (strlen_check_and_optimize_call): Same.
1459 (handle_integral_assign): Same.
1460 (check_and_optimize_stmt): Same.
1461 (printf_strlen_execute): Rename strlen_dom_walker to strlen_pass.
1463 2021-10-18 Richard Biener <rguenther@suse.de>
1465 PR tree-optimization/102798
1466 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
1467 Only copy points-to info to newly generated SSA names.
1469 2021-10-18 Martin Liska <mliska@suse.cz>
1471 * dbgcnt.c (dbg_cnt_process_opt): Remove unused but set variable.
1472 * gcov.c (get_cycles_count): Likewise.
1473 * lto-compress.c (lto_compression_zlib): Likewise.
1474 (lto_uncompression_zlib): Likewise.
1475 * targhooks.c (default_pch_valid_p): Likewise.
1477 2021-10-17 Aldy Hernandez <aldyh@redhat.com>
1479 * tree-pass.h (make_pass_thread_jumps_full): New.
1480 * tree-ssa-threadbackward.c (pass_thread_jumps::gate): Inline.
1481 (try_thread_blocks): Add resolve and speed arguments.
1482 (pass_thread_jumps::execute): Inline.
1483 (do_early_thread_jumps): New.
1484 (do_thread_jumps): New.
1485 (make_pass_thread_jumps): Move.
1486 (pass_early_thread_jumps::gate): Inline.
1487 (pass_early_thread_jumps::execute): Inline.
1488 (class pass_thread_jumps_full): New.
1490 2021-10-16 Piotr Kubaj <pkubaj@FreeBSD.org>
1492 * configure.ac: Treat powerpc64*-*-freebsd* the same as
1493 powerpc64-*-freebsd*.
1494 * configure: Regenerate.
1496 2021-10-16 H.J. Lu <hjl.tools@gmail.com>
1498 * value-query.cc (get_ssa_name_ptr_info_nonnull): Change
1499 set_ptr_nonull to set_ptr_nonnull in comments.
1501 2021-10-16 Jan Hubicka <hubicka@ucw.cz>
1503 PR tree-optimization/102720
1504 * tree-ssa-structalias.c (compute_points_to_sets): Fix producing
1505 of call used and clobbered sets.
1507 2021-10-15 Iain Sandoe <iain@sandoe.co.uk>
1509 * config/darwin.h (LINK_COMMAND_SPEC_A): Update 'r' handling to
1510 skip gomp and itm when r or nodefaultlibs is given.
1511 (DSYMUTIL_SPEC): Do not call dsymutil for '-r' link lines.
1512 Update ordering of exclusions, remove duplicate 'v' addition
1513 (collect2 will add this from the main command line).
1515 2021-10-15 Iain Sandoe <iain@sandoe.co.uk>
1517 * config/darwin-driver.c (darwin_driver_init): Revise comments, handle
1518 filelist and framework options in specs instead of code.
1519 * config/darwin.h (SUBTARGET_DRIVER_SELF_SPECS): Update to handle link
1520 specs that are really driver ones.
1521 (DARWIN_CC1_SPEC): Likewise.
1522 (CPP_SPEC): Likewise.
1523 (SYSROOT_SPEC): Append space.
1524 (LINK_SYSROOT_SPEC): Remove most driver link specs.
1525 (STANDARD_STARTFILE_PREFIX_2): Update link-related specs.
1526 (STARTFILE_SPEC): Likewise.
1527 (ASM_MMACOSX_VERSION_MIN_SPEC): Fix line wrap.
1528 (ASM_SPEC): Update driver-related specs.
1529 (ASM_FINAL_SPEC): Likewise.
1530 * config/darwin.opt: Remove now unused option aliases.
1531 * config/i386/darwin.h (EXTRA_ASM_OPTS): Ensure space after opt.
1532 (ASM_SPEC): Update driver-related specs.
1534 2021-10-15 Roger Sayle <roger@nextmovesoftware.com>
1536 * config/i386/i386.c (ix86_hardreg_mov_ok): For vector modes,
1537 allow standard_sse_constant_p immediate constants.
1539 2021-10-15 Iain Sandoe <iain@sandoe.co.uk>
1541 * config.gcc: Add tm-dwarf2.h to tm_d-file.
1543 2021-10-15 Andrew MacLeod <amacleod@redhat.com>
1545 * gimple-range-fold.h (gimple_range_ssa_p): Don't process names
1546 that occur in abnormal phis.
1547 * gimple-range.cc (gimple_ranger::range_on_edge): Return false for
1548 abnormal and EH edges.
1549 * gimple-ssa-evrp.c (rvrp_folder::value_of_expr): Ditto.
1550 (rvrp_folder::value_on_edge): Ditto.
1551 (rvrp_folder::value_of_stmt): Ditto.
1552 (hybrid_folder::value_of_expr): Ditto for ranger queries.
1553 (hybrid_folder::value_on_edge): Ditto.
1554 (hybrid_folder::value_of_stmt): Ditto.
1555 * value-query.cc (gimple_range_global): Always return a range if
1556 the type is supported.
1558 2021-10-15 John David Anglin <danglin@gcc.gnu.org>
1560 * config/pa/pa.md: Consistently use "rG" constraint for copy
1561 instruction in move patterns.
1563 2021-10-15 Andrew Stubbs <ams@codesourcery.com>
1565 * config/gcn/gcn-hsa.h (S_FIJI): Set unconditionally.
1568 * config/gcn/gcn.c: Hard code SRAM ECC settings for old architectures.
1569 * config/gcn/mkoffload.c (ELFABIVERSION_AMDGPU_HSA): Rename to ...
1570 (ELFABIVERSION_AMDGPU_HSA_V3): ... this.
1571 (ELFABIVERSION_AMDGPU_HSA_V4): New.
1572 (SET_SRAM_ECC_UNSUPPORTED): New.
1573 (copy_early_debug_info): Create elf flags to match the other objects.
1574 (main): Just let the attribute flags pass through.
1576 2021-10-15 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
1578 * tree-loop-distribution.c (reduction_var_overflows_first):
1579 Pass the type of reduction_var as first argument as it is also
1580 done for the load type.
1581 (loop_distribution::transform_reduction_loop): Add missing
1582 TREE_TYPE while determining precission of reduction_var.
1584 2021-10-15 Richard Biener <rguenther@suse.de>
1586 * defaults.h (PREFERRED_DEBUGGING_TYPE): Choose DWARF2_DEBUG
1588 * toplev.c (process_options): Warn when STABS debugging is
1589 enabled but not the preferred format.
1590 * config/pa/som.h (PREFERRED_DEBUGGING_TYPE): Define to
1592 * config/pdp11/pdp11.h (PREFERRED_DEBUGGING_TYPE): Likewise.
1594 2021-10-15 Richard Biener <rguenther@suse.de>
1597 * tree-inline.c (copy_bb): Avoid underflowing nargs.
1599 2021-10-15 Hongyu Wang <hongyu.wang@intel.com>
1601 * config/i386/i386-expand.c (ix86_expand_vec_perm): Convert
1602 HFmode input operand to HImode.
1603 (ix86_vectorize_vec_perm_const): Likewise.
1604 * config/i386/sse.md (*avx512bw_permvar_truncv16siv16hi_1_hf):
1606 (*avx512f_permvar_truncv8siv8hi_1_hf):
1609 2021-10-15 Richard Biener <rguenther@suse.de>
1611 PR middle-end/102682
1612 * expmed.c (store_bit_field_1): Ensure a LHS subreg would
1613 not create a paradoxical subreg.
1615 2021-10-15 Hongyu Wang <hongyu.wang@intel.com>
1617 * config/i386/i386-expand.c (ix86_expand_vector_init):
1618 For half_vector concat for HFmode, handle them like HImode.
1620 2021-10-14 Aldy Hernandez <aldyh@redhat.com>
1622 * tree-ssa-threadbackward.c (class back_threader): Add m_resolve.
1623 (back_threader::back_threader): Same.
1624 (back_threader::resolve_phi): Try to solve without looking back if
1626 (back_threader::find_paths_to_names): Same.
1627 (try_thread_blocks): Pass resolve argument to back threader.
1628 (pass_early_thread_jumps::execute): Same.
1630 2021-10-14 Aldy Hernandez <aldyh@redhat.com>
1632 * doc/invoke.texi: Remove max-fsm-thread-length,
1633 max-fsm-thread-paths, and fsm-maximum-phi-arguments.
1635 * tree-ssa-threadbackward.c (back_threader::back_threader): Remove
1637 (back_threader_registry::back_threader_registry): Same.
1638 (back_threader_profitability::profitable_path_p): Remove
1639 param_max_fsm_thread-length.
1640 (back_threader_registry::register_path): Remove
1641 m_max_allowable_paths.
1643 2021-10-14 Aldy Hernandez <aldyh@redhat.com>
1645 * tree-ssa-threadbackward.c (class back_threader): Make m_imports
1647 (back_threader::~back_threader): Do not release m_path.
1649 2021-10-14 Andrew MacLeod <amacleod@redhat.com>
1651 PR tree-optimization/102738
1652 * vr-values.c (simplify_using_ranges::simplify): Handle RSHIFT_EXPR.
1654 2021-10-14 Kwok Cheung Yeung <kcy@codesourcery.com>
1656 * omp-general.c (omp_check_context_selector): Move from c-omp.c.
1657 (omp_mark_declare_variant): Move from c-omp.c.
1658 (omp_context_name_list_prop): Update for Fortran strings.
1659 * omp-general.h (omp_check_context_selector): New prototype.
1660 (omp_mark_declare_variant): New prototype.
1662 2021-10-14 Richard Sandiford <richard.sandiford@arm.com>
1664 * config/rs6000/rs6000.c (rs6000_density_test): Move early
1665 exit test further up the function.
1667 2021-10-14 Richard Sandiford <richard.sandiford@arm.com>
1669 * config/arm/arm.c (arm_add_stmt_cost): Delete.
1670 (TARGET_VECTORIZE_ADD_STMT_COST): Delete.
1672 2021-10-14 Martin Jambor <mjambor@suse.cz>
1674 * doc/invoke.texi (Optimize Options): Add entry for
1675 ipa-cp-recursive-freq-factor.
1677 2021-10-14 Tamar Christina <tamar.christina@arm.com>
1679 * match.pd: New rule.
1681 2021-10-14 Jan Hubicka <hubicka@ucw.cz>
1684 * ipa-modref-tree.h (modref_access_node::update2):
1685 Also check that parm_offset is unchanged.
1686 (modref_ref_node::insert_access): Fix updating of
1689 2021-10-14 Aldy Hernandez <aldyh@redhat.com>
1691 * tree-ssa-threadbackward.c (back_threader::resolve_phi): Add
1694 2021-10-14 Richard Biener <rguenther@suse.de>
1696 PR tree-optimization/102659
1697 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Also
1698 rewrite pointer typed undefined overflow operations.
1699 (predicate_statements): Likewise. Make sure to emit invariant
1700 conversions in the preheader.
1701 * tree-vectorizer.c (vect_loop_vectorized_call): Look through
1702 non-empty preheaders.
1703 * tree-data-ref.c (dr_analyze_indices): Strip useless
1704 conversions to the MEM_REF base type.
1706 2021-10-14 Martin Liska <mliska@suse.cz>
1708 * common.opt: Stop using AUTODETECT_VALUE
1709 and use EnabledBy where possible.
1710 * opts.c: Enable OPT_fvar_tracking with optimize >= 1.
1711 * toplev.c (AUTODETECT_VALUE): Remove macro.
1712 (process_options): Simplify by using EnabledBy and
1713 OPT_fvar_tracking. Use OPTION_SET_P macro instead of
1716 2021-10-14 Jonathan Wright <jonathan.wright@arm.com>
1718 * config/aarch64/arm_neon.h (vld1_s8_x3): Use signed type for
1720 (vld1_s32_x3): Likewise.
1722 2021-10-14 Aldy Hernandez <aldyh@redhat.com>
1724 PR tree-optimization/102736
1725 PR tree-optimization/102736
1726 * gimple-range-path.cc (path_range_query::range_on_path_entry):
1727 Assert that the requested range is defined outside the path.
1728 (path_range_query::ssa_range_in_phi): Do not call
1729 range_on_path_entry for SSA names that are defined within the
1732 2021-10-14 Iain Sandoe <iain@sandoe.co.uk>
1734 * config/darwin-driver.c (darwin_find_version_from_kernel):
1735 Quote internal identifiers and avoid contractions in
1737 (darwin_default_min_version): Likewise.
1738 (darwin_driver_init): Likewise.
1740 2021-10-14 Martin Jambor <mjambor@suse.cz>
1742 * params.opt (ipa-cp-recursive-freq-factor): New.
1743 * ipa-cp.c (ipcp_value): Switch to inline initialization. New members
1744 scc_no, self_recursion_generated_level, same_scc and
1745 self_recursion_generated_p.
1746 (ipcp_lattice::add_value): Replaced parameter unlimited with
1747 same_lat_gen_level, usit it determine limit of values and store it to
1749 (ipcp_lattice<valtype>::print): Dump the new fileds.
1750 (allocate_and_init_ipcp_value): Take same_lat_gen_level as a new
1751 parameter and store it to the new value.
1752 (self_recursively_generated_p): Removed.
1753 (propagate_vals_across_arith_jfunc): Use self_recursion_generated_p
1754 instead of self_recursively_generated_p, store self generation level
1756 (value_topo_info<valtype>::add_val): Set scc_no.
1757 (value_topo_info<valtype>::propagate_effects): Multiply frequencies of
1758 recursively feeding values and self generated values by appropriate
1761 2021-10-14 Richard Sandiford <richard.sandiford@arm.com>
1763 * config/aarch64/aarch64.c (aarch64_add_stmt_cost): Remove
1764 redundant test for flag_vect_cost_model.
1766 2021-10-14 Aldy Hernandez <aldyh@redhat.com>
1768 * bitmap.c (debug): New overloaded function for auto_bitmaps.
1769 * bitmap.h (debug): Same.
1771 2021-10-14 Hongyu Wang <hongyu.wang@intel.com>
1773 * config/i386/avx512fp16intrin.h (_mm512_mask_fcmadd_pch):
1774 Adjust builtin call.
1775 (_mm512_mask3_fcmadd_pch): Likewise.
1776 (_mm512_mask_fmadd_pch): Likewise
1777 (_mm512_mask3_fmadd_pch): Likewise
1778 (_mm512_mask_fcmadd_round_pch): Likewise
1779 (_mm512_mask3_fcmadd_round_pch): Likewise
1780 (_mm512_mask_fmadd_round_pch): Likewise
1781 (_mm512_mask3_fmadd_round_pch): Likewise
1782 (_mm_mask_fcmadd_sch): Likewise
1783 (_mm_mask3_fcmadd_sch): Likewise
1784 (_mm_mask_fmadd_sch): Likewise
1785 (_mm_mask3_fmadd_sch): Likewise
1786 (_mm_mask_fcmadd_round_sch): Likewise
1787 (_mm_mask3_fcmadd_round_sch): Likewise
1788 (_mm_mask_fmadd_round_sch): Likewise
1789 (_mm_mask3_fmadd_round_sch): Likewise
1790 (_mm_fcmadd_round_sch): Likewise
1791 * config/i386/avx512fp16vlintrin.h (_mm_mask_fmadd_pch):
1792 Adjust builtin call.
1793 (_mm_mask3_fmadd_pch): Likewise
1794 (_mm256_mask_fmadd_pch): Likewise
1795 (_mm256_mask3_fmadd_pch): Likewise
1796 (_mm_mask_fcmadd_pch): Likewise
1797 (_mm_mask3_fcmadd_pch): Likewise
1798 (_mm256_mask_fcmadd_pch): Likewise
1799 (_mm256_mask3_fcmadd_pch): Likewise
1800 * config/i386/i386-builtin.def: Add mask3 builtin for complex
1801 fma, and adjust mask_builtin to corresponding expander.
1802 * config/i386/i386-expand.c (ix86_expand_round_builtin):
1803 Skip eraseing embedded rounding for expanders that emits
1805 * config/i386/sse.md (complexmove): New mode_attr.
1806 (<avx512>_fmaddc_<mode>_mask1<round_expand_name>): New expander.
1807 (<avx512>_fcmaddc_<mode>_mask1<round_expand_name>): Likewise.
1808 (avx512fp16_fmaddcsh_v8hf_mask1<round_expand_name>): Likewise.
1809 (avx512fp16_fcmaddcsh_v8hf_mask1<round_expand_name>): Likewise.
1810 (avx512fp16_fcmaddcsh_v8hf_mask3<round_expand_name>): Likewise.
1811 (avx512fp16_fmaddcsh_v8hf_mask3<round_expand_name>): Likewise.
1812 * config/i386/subst.md (round_embedded_complex): New subst.
1814 2021-10-14 John David Anglin <danglin@gcc.gnu.org>
1816 * config/pa/pa.md (cbranchsf4): Disable if TARGET_SOFT_FLOAT.
1817 (cbranchdf4): Likewise.
1818 Add missing move patterns for TARGET_SOFT_FLOAT.
1820 2021-10-13 Roger Sayle <roger@nextmovesoftware.com>
1822 * config/i386/i386-expand.c (ix86_expand_vector_move): Use a
1823 pseudo intermediate when moving a SUBREG into a hard register,
1824 by checking ix86_hardreg_mov_ok.
1825 (ix86_expand_vector_extract): Store zero-extended SImode
1826 intermediate in a pseudo, then set target using a SUBREG_PROMOTED
1828 * config/i386/sse.md (mov<VMOVE>_internal): Prevent CSE creating
1829 complex (SUBREG) sets of (vector) hard registers before reload, by
1830 checking ix86_hardreg_mov_ok.
1832 2021-10-13 Indu Bhagat <indu.bhagat@oracle.com>
1834 * ctfc.h (enum ctf_dtu_d_union_enum): Remove redundant comma.
1836 2021-10-13 Indu Bhagat <indu.bhagat@oracle.com>
1838 * dwarf2ctf.c (gen_ctf_array_type): Fix typo in comment.
1840 2021-10-13 Martin Sebor <msebor@redhat.com>
1842 PR middle-end/102630
1843 * pointer-query.cc (compute_objsize_r): Handle named address spaces.
1845 2021-10-13 Iain Sandoe <iain@sandoe.co.uk>
1847 * collect2.c (is_lto_object_file): Release simple-object
1848 resources, close files.
1850 2021-10-13 Andre Vieira <andre.simoesdiasvieira@arm.com>
1852 * config/arm/arm.c (thumb2_legitimate_address_p): Use VALID_MVE_MODE
1853 when checking mve addressing modes.
1854 (mve_vector_mem_operand): Fix the way we handle pre, post and offset
1856 (arm_print_operand): Fix printing of POST_ and PRE_MODIFY.
1857 * config/arm/mve.md: Use mve_memory_operand predicate everywhere where
1858 there is a single Ux constraint.
1860 2021-10-13 John David Anglin <danglin@gcc.gnu.org>
1862 * config/pa/pa.md (muldi3): Add support for inlining 64-bit
1863 multiplication on 32-bit PA 1.1 and 2.0 targets.
1865 2021-10-13 Martin Liska <mliska@suse.cz>
1867 PR gcov-profile/90364
1868 * coverage.c (build_info): Emit checksum to the global variable.
1869 (build_info_type): Add new field for checksum.
1870 (coverage_obj_finish): Pass object_checksum.
1871 (coverage_init): Use 0 as checksum for .gcno files.
1872 * gcov-dump.c (dump_gcov_file): Dump also new checksum field.
1873 * gcov.c (read_graph_file): Read also checksum.
1874 * doc/invoke.texi: Document the behaviour change.
1876 2021-10-13 Richard Biener <rguenther@suse.de>
1878 * gimple-iterator.h (gsi_iterator_update): Add GSI_LAST_NEW_STMT,
1879 start at integer value 2.
1880 * gimple-iterator.c (gsi_insert_seq_nodes_before): Update
1881 the iterator for GSI_LAST_NEW_STMT.
1882 (gsi_insert_seq_nodes_after): Likewise.
1883 * tree-if-conv.c (predicate_statements): Use GSI_LAST_NEW_STMT.
1884 * tree-ssa.c (execute_update_addresses_taken): Correct bogus
1885 arguments to gsi_replace.
1887 2021-10-13 Martin Liska <mliska@suse.cz>
1890 * common.opt: Use EnabledBy instead of detection in
1891 finish_options and process_options.
1892 * opts.c (finish_options): Remove handling of
1893 x_flag_unroll_all_loops.
1894 * toplev.c (process_options): Likewise for flag_web and
1895 flag_rename_registers.
1897 2021-10-13 Richard Biener <rguenther@suse.de>
1899 PR tree-optimization/102659
1900 * tree-if-conv.c (need_to_rewrite_undefined): New flag.
1901 (if_convertible_gimple_assign_stmt_p): Mark the loop for
1902 rewrite when stmts with undefined behavior on integer
1904 (combine_blocks): Predicate also when we need to rewrite stmts.
1905 (predicate_statements): Rewrite affected stmts to something
1906 with well-defined behavior on overflow.
1907 (tree_if_conversion): Initialize need_to_rewrite_undefined.
1909 2021-10-13 Richard Biener <rguenther@suse.de>
1912 * ipa-sra.c (ptr_parm_has_nonarg_uses): Fix volatileness
1915 2021-10-13 Jose E. Marchesi <jose.marchesi@oracle.com>
1917 * dwarf2ctf.c: Fix typo in comment.
1919 2021-10-12 Bill Schmidt <wschmidt@linux.ibm.com>
1922 * config/rs6000/altivec.h (vec_cpsgn): Swap operand order.
1923 * config/rs6000/rs6000-overload.def (VEC_COPYSIGN): Use SKIP to
1924 avoid generating an automatic #define of vec_cpsgn. Use the
1925 correct built-in for V4SFmode that doesn't depend on VSX.
1927 2021-10-12 Uroš Bizjak <ubizjak@gmail.com>
1931 * config/i386/i386.md (*add<mode>_1_slp): Rewrite as
1932 define_insn_and_split pattern. Add alternative 1 and split it
1933 post reload to insert operand 1 into the low part of operand 0.
1934 (*sub<mode>_1_slp): Ditto.
1935 (*and<mode>_1_slp): Ditto.
1936 (*<any_or:code><mode>_1_slp): Ditto.
1937 (*ashl<mode>3_1_slp): Ditto.
1938 (*<any_shiftrt:insn><mode>3_1_slp): Ditto.
1939 (*<any_rotate:insn><mode>3_1_slp): Ditto.
1940 (*neg<mode>_1_slp): New insn_and_split pattern.
1941 (*one_cmpl<mode>_1_slp): Ditto.
1943 2021-10-12 David Edelsohn <dje.gcc@gmail.com>
1945 * doc/install.texi: Update MinGW and mingw-64 Binaries
1948 2021-10-12 Daniel Le Duc Khoi Nguyen <greenrecyclebin@gmail.com>
1950 * doc/extend.texi (Common Variable Attributes): Fix typos in
1951 alloc_size documentation.
1953 2021-10-12 Richard Biener <rguenther@suse.de>
1955 PR tree-optimization/102696
1956 * tree-vect-slp.c (vect_build_slp_tree_2): Properly mark
1957 the tree fatally failed when we reject a BIT_FIELD_REF.
1959 2021-10-12 Richard Biener <rguenther@suse.de>
1961 PR tree-optimization/102572
1962 * tree-vect-stmts.c (vect_build_gather_load_calls): When
1963 gathering the vectorized defs for the mask pass in the
1964 desired mask vector type so invariants will be handled
1967 2021-10-12 Tamar Christina <tamar.christina@arm.com>
1969 * config/aarch64/aarch64-sve.md (*fcm<cmp_op><mode>_bic_combine,
1970 *fcm<cmp_op><mode>_nor_combine, *fcmuo<mode>_bic_combine,
1971 *fcmuo<mode>_nor_combine): New.
1973 2021-10-12 Eric Botcazou <ebotcazou@adacore.com>
1976 * config/sparc/sparc-modes.def (OI): New integer mode.
1978 2021-10-12 Jakub Jelinek <jakub@redhat.com>
1980 * gimple-fold.h (clear_padding_type_may_have_padding_p): Declare.
1981 * gimple-fold.c (clear_padding_type_may_have_padding_p): No longer
1984 2021-10-12 Jakub Jelinek <jakub@redhat.com>
1986 * tree-vectorizer.h (loop_cost_model): New function.
1987 (unlimited_cost_model): Use it.
1988 * tree-vect-loop.c (vect_analyze_loop_costing): Use loop_cost_model
1989 call instead of flag_vect_cost_model.
1990 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
1991 (vect_prune_runtime_alias_test_list): Likewise. Also use it instead
1992 of flag_simd_cost_model.
1994 2021-10-12 liuhongt <hongtao.liu@intel.com>
1997 * config/i386/i386-expand.c (emit_reduc_half): Handle
1999 * config/i386/mmx.md (reduc_<code>_scal_v4qi): New expander.
2000 (reduc_plus_scal_v4qi): Ditto.
2002 2021-10-12 Paul A. Clarke <pc@us.ibm.com>
2004 * config/rs6000/smmintrin.h (_mm_cmpeq_epi64, _mm_cmpgt_epi64,
2005 _mm_mullo_epi32, _mm_mul_epi32, _mm_packus_epi32): New.
2006 * config/rs6000/nmmintrin.h: Copy from i386, tweak to suit.
2008 2021-10-12 Paul A. Clarke <pc@us.ibm.com>
2010 * config/rs6000/smmintrin.h (_mm_cvtepi8_epi16, _mm_cvtepi8_epi32,
2011 _mm_cvtepi8_epi64, _mm_cvtepi16_epi32, _mm_cvtepi16_epi64,
2012 _mm_cvtepi32_epi64, _mm_cvtepu8_epi16, _mm_cvtepu8_epi32,
2013 _mm_cvtepu8_epi64, _mm_cvtepu16_epi32, _mm_cvtepu16_epi64,
2014 _mm_cvtepu32_epi64): New.
2016 2021-10-12 Paul A. Clarke <pc@us.ibm.com>
2018 * config/rs6000/smmintrin.h (_mm_test_all_zeros,
2019 _mm_test_all_ones, _mm_test_mix_ones_zeros): Rewrite as macro.
2021 2021-10-12 Paul A. Clarke <pc@us.ibm.com>
2023 * config/rs6000/smmintrin.h (_mm_min_epi8, _mm_min_epu16,
2024 _mm_min_epi32, _mm_min_epu32, _mm_max_epi8, _mm_max_epu16,
2025 _mm_max_epi32, _mm_max_epu32): New.
2027 2021-10-11 Jan Hubicka <hubicka@ucw.cz>
2029 * ipa-modref-tree.h (struct modref_access_node): Revert
2031 (struct modref_ref_node): Likewise.
2033 2021-10-11 Jan Hubicka <hubicka@ucw.cz>
2035 * ipa-modref-tree.h (modref_tree::global_access_p): New member
2038 (implicint_const_eaf_flags,implicit_pure_eaf_flags,
2039 ignore_stores_eaf_flags): Move to ipa-modref.h
2040 (remove_useless_eaf_flags): Remove early exit on NOCLOBBER.
2041 (modref_summary::global_memory_read_p): New member function.
2042 (modref_summary::global_memory_written_p): New member function.
2043 * ipa-modref.h (modref_summary::global_memory_read_p,
2044 modref_summary::global_memory_written_p): Declare.
2045 (implicint_const_eaf_flags,implicit_pure_eaf_flags,
2046 ignore_stores_eaf_flags): move here.
2047 * tree-ssa-structalias.c: Include ipa-modref-tree.h, ipa-modref.h
2049 (handle_rhs_call): Rewrite.
2050 (handle_call_arg): New function.
2051 (determine_global_memory_access): New function.
2052 (handle_const_call): Remove
2053 (handle_pure_call): Remove
2054 (find_func_aliases_for_call): Update use of handle_rhs_call.
2055 (compute_points_to_sets): Handle global memory acccesses
2058 2021-10-11 Diane Meirowitz <diane.meirowitz@oracle.com>
2060 * doc/invoke.texi: Add link to UndefinedBehaviorSanitizer
2061 documentation, mention UBSAN_OPTIONS, similar to what is done
2062 for AddressSanitizer.
2064 2021-10-11 Richard Biener <rguenther@suse.de>
2066 PR middle-end/102683
2067 * internal-fn.c (expand_DEFERRED_INIT): Check for mode
2068 availability before building an integer type for storage
2071 2021-10-11 Richard Biener <rguenther@suse.de>
2073 PR middle-end/101480
2074 * gimple.c (gimple_call_fnspec): Do not mark operator new/delete
2077 2021-10-11 Martin Liska <mliska@suse.cz>
2079 * common.opt: Remove Init(2) for some options.
2080 * toplev.c (process_options): Do not use AUTODETECT_VALUE, but
2081 use rather OPTION_SET_P.
2083 2021-10-11 Martin Liska <mliska@suse.cz>
2085 * common.opt: Remove usage of IRA_REGION_AUTODETECT.
2086 * flag-types.h (enum ira_region): Likewise.
2087 * toplev.c (process_options): Use OPTION_SET_P instead of
2088 IRA_REGION_AUTODETECT.
2090 2021-10-11 Jakub Jelinek <jakub@redhat.com>
2092 * omp-low.c (omp_runtime_api_call): Handle omp_get_max_teams,
2093 omp_[sg]et_teams_thread_limit and omp_set_num_teams.
2095 2021-10-11 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
2097 * config/s390/s390-protos.h (s390_rawmemchr): Add prototype.
2098 * config/s390/s390.c (s390_rawmemchr): New function.
2099 * config/s390/s390.md (rawmemchr<SINT:mode>): New expander.
2100 * config/s390/vector.md (@vec_vfees<mode>): Basically a copy of
2101 the pattern vfees<mode> from vx-builtins.md.
2102 * config/s390/vx-builtins.md (*vfees<mode>): Remove.
2104 2021-10-11 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
2106 * builtins.c (get_memory_rtx): Change to external linkage.
2107 * builtins.h (get_memory_rtx): Add function prototype.
2108 * doc/md.texi (rawmemchr<mode>): Document.
2109 * internal-fn.c (expand_RAWMEMCHR): Define.
2110 * internal-fn.def (RAWMEMCHR): Add.
2111 * optabs.def (rawmemchr_optab): Add.
2112 * tree-loop-distribution.c (find_single_drs): Change return code
2113 behaviour by also returning true if no single store was found
2115 (loop_distribution::classify_partition): Respect the new return
2116 code behaviour of function find_single_drs.
2117 (loop_distribution::execute): Call new function
2118 transform_reduction_loop in order to replace rawmemchr or strlen
2119 like loops by calls into builtins.
2120 (generate_reduction_builtin_1): New function.
2121 (generate_rawmemchr_builtin): New function.
2122 (generate_strlen_builtin_1): New function.
2123 (generate_strlen_builtin): New function.
2124 (generate_strlen_builtin_using_rawmemchr): New function.
2125 (reduction_var_overflows_first): New function.
2126 (determine_reduction_stmt_1): New function.
2127 (determine_reduction_stmt): New function.
2128 (loop_distribution::transform_reduction_loop): New function.
2130 2021-10-11 Martin Liska <mliska@suse.cz>
2132 * tree.c (cl_option_hasher::hash): Use cl_optimization_hash
2133 and remove legacy hashing code.
2135 2021-10-11 Kito Cheng <kito.cheng@sifive.com>
2138 * builtins.c (maybe_emit_call_builtin___clear_cache): Allow
2139 CONST_INT for BEGIN and END, and use gcc_assert rather than
2142 2021-10-10 Jakub Jelinek <jakub@redhat.com>
2145 * var-tracking.c (add_stores): For cselib_sp_derived_value_p values
2146 use MO_VAL_SET if loc is not sp.
2148 2021-10-10 Andrew Pinski <apinski@marvell.com>
2150 PR tree-optimization/102622
2151 * match.pd: Swap the order of a?pow2cst:0 and a?-1:0 transformations.
2152 Swap the order of a?0:pow2cst and a?0:-1 transformations.
2154 2021-10-09 liuhongt <hongtao.liu@intel.com>
2157 * config/i386/i386-expand.c (ix86_valid_mask_cmp_mode): Handle
2159 (ix86_use_mask_cmp_p): Ditto.
2160 (ix86_expand_sse_movcc): Ditto.
2161 * config/i386/i386.md (setcc_hf_mask): New define_insn.
2162 (movhf_mask): Ditto.
2163 (UNSPEC_MOVCC_MASK): New unspec.
2164 * config/i386/sse.md (UNSPEC_PCMP): Move to i386.md.
2166 2021-10-08 Vladimir N. Makarov <vmakarov@redhat.com>
2168 PR rtl-optimization/102627
2169 * lra-constraints.c (split_reg): Use at least natural mode of hard reg.
2171 2021-10-08 Aldy Hernandez <aldyh@redhat.com>
2173 * gimple-range-cache.cc (non_null_ref::non_null_deref_p): Grow
2176 2021-10-08 Aldy Hernandez <aldyh@redhat.com>
2178 * value-range.cc (irange::debug): New.
2179 * value-range.h (irange::debug): New.
2181 2021-10-08 Richard Sandiford <richard.sandiford@arm.com>
2183 PR tree-optimization/102385
2184 * predict.h (change_edge_frequency): Declare.
2185 * predict.c (change_edge_frequency): New function.
2186 * tree-ssa-loop-manip.h (tree_transform_and_unroll_loop): Remove
2188 (tree_unroll_loop): Likewise.
2189 * gimple-loop-jam.c (tree_loop_unroll_and_jam): Update accordingly.
2190 * tree-predcom.c (pcom_worker::tree_predictive_commoning_loop):
2192 * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Likewise.
2193 * tree-ssa-loop-manip.c (tree_unroll_loop): Likewise.
2194 (tree_transform_and_unroll_loop): Likewise. Use single_dom_exit
2195 to retrieve the exit edges. Make all the old profile update code
2196 conditional on !single_loop_p -- the case it was written for --
2197 and use a different approach for the single-loop case.
2199 2021-10-08 Martin Liska <mliska@suse.cz>
2201 * config/alpha/alpha.c (alpha_option_override): Use new macro
2203 * config/arc/arc.c (arc_override_options): Likewise.
2204 * config/arm/arm.c (arm_option_override): Likewise.
2205 * config/bfin/bfin.c (bfin_load_pic_reg): Likewise.
2206 * config/c6x/c6x.c (c6x_option_override): Likewise.
2207 * config/csky/csky.c: Likewise.
2208 * config/darwin.c (darwin_override_options): Likewise.
2209 * config/frv/frv.c (frv_option_override): Likewise.
2210 * config/i386/djgpp.h: Likewise.
2211 * config/i386/i386.c (ix86_stack_protect_guard): Likewise.
2212 (ix86_max_noce_ifcvt_seq_cost): Likewise.
2213 * config/ia64/ia64.c (ia64_option_override): Likewise.
2214 (ia64_override_options_after_change): Likewise.
2215 * config/m32c/m32c.c (m32c_option_override): Likewise.
2216 * config/m32r/m32r.c (m32r_init): Likewise.
2217 * config/m68k/m68k.c (m68k_option_override): Likewise.
2218 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
2219 * config/mips/mips.c (mips_option_override): Likewise.
2220 * config/nios2/nios2.c (nios2_option_override): Likewise.
2221 * config/nvptx/nvptx.c (nvptx_option_override): Likewise.
2222 * config/pa/pa.c (pa_option_override): Likewise.
2223 * config/riscv/riscv.c (riscv_option_override): Likewise.
2224 * config/rs6000/aix71.h: Likewise.
2225 * config/rs6000/aix72.h: Likewise.
2226 * config/rs6000/aix73.h: Likewise.
2227 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Likewise.
2228 (rs6000_override_options_after_change): Likewise.
2229 (rs6000_linux64_override_options): Likewise.
2230 (glibc_supports_ieee_128bit): Likewise.
2231 (rs6000_option_override_internal): Likewise.
2232 (rs6000_file_start): Likewise.
2233 (rs6000_darwin_file_start): Likewise.
2234 * config/rs6000/rtems.h: Likewise.
2235 * config/rs6000/sysv4.h: Likewise.
2236 * config/rs6000/vxworks.h (SUB3TARGET_OVERRIDE_OPTIONS): Likewise.
2237 * config/s390/s390.c (s390_option_override): Likewise.
2238 * config/sh/linux.h: Likewise.
2239 * config/sh/netbsd-elf.h (while): Likewise.
2240 * config/sh/sh.c (sh_option_override): Likewise.
2241 * config/sol2.c (solaris_override_options): Likewise.
2242 * config/sparc/sparc.c (sparc_option_override): Likewise.
2243 * config/tilegx/tilegx.c (tilegx_option_override): Likewise.
2244 * config/visium/visium.c (visium_option_override): Likewise.
2245 * config/vxworks.c (vxworks_override_options): Likewise.
2246 * lto-opts.c (lto_write_options): Likewise.
2247 * omp-expand.c (expand_omp_simd): Likewise.
2248 * omp-general.c (omp_max_vf): Likewise.
2249 * omp-offload.c (oacc_xform_loop): Likewise.
2250 * opts.h (OPTION_SET_P): Likewise.
2251 * targhooks.c (default_max_noce_ifcvt_seq_cost): Likewise.
2252 * toplev.c (process_options): Likewise.
2253 * tree-predcom.c: Likewise.
2254 * tree-sra.c (analyze_all_variable_accesses): Likewise.
2256 2021-10-08 liuhongt <hongtao.liu@intel.com>
2259 * config/i386/i386.c (ix86_optab_supported_p):
2260 Return true for HFmode.
2261 * match.pd: Simplify (_Float16) ceil ((double) x) to
2262 __builtin_ceilf16 (a) when a is _Float16 type and
2263 direct_internal_fn_supported_p.
2265 2021-10-08 liuhongt <hongtao.liu@intel.com>
2268 * config/i386/i386-expand.c (emit_reduc_half): Hanlde V4HImode.
2269 * config/i386/mmx.md (reduc_plus_scal_v4hi): New.
2270 (reduc_<code>_scal_v4hi): New.
2272 2021-10-08 liuhongt <hongtao.liu@intel.com>
2274 * common.opt (ftree-vectorize): Add Var(flag_tree_vectorize).
2275 * doc/invoke.texi (Options That Control Optimization): Update
2277 * opts.c (default_options_table): Enable auto-vectorization at
2278 O2 with very-cheap cost model.
2279 (finish_options): Use cheap cost model for
2280 explicit -ftree{,-loop}-vectorize.
2282 2021-10-07 Indu Bhagat <indu.bhagat@oracle.com>
2284 * ctfc.c (ctfc_delete_container): Free hash table contents.
2286 2021-10-07 Indu Bhagat <indu.bhagat@oracle.com>
2288 * toplev.c (process_options): Do not warn for GNU GIMPLE.
2290 2021-10-07 Siddhesh Poyarekar <siddhesh@gotplt.org>
2292 * tree-object-size.c (addr_object_size,
2293 compute_builtin_object_size): Drop PDECL and POFF arguments.
2294 (addr_object_size): Adjust calls.
2295 * tree-object-size.h (compute_builtin_object_size): Drop PDECL
2298 2021-10-07 Roger Sayle <roger@nextmovesoftware.com>
2300 * rtl.def (SMUL_HIGHPART, UMUL_HIGHPART): New RTX codes for
2301 representing signed and unsigned high-part multiplication resp.
2302 * simplify-rtx.c (simplify_binary_operation_1) [SMUL_HIGHPART,
2303 UMUL_HIGHPART]: Simplify high-part multiplications by zero.
2304 [SS_PLUS, US_PLUS, SS_MINUS, US_MINUS, SS_MULT, US_MULT,
2305 SS_DIV, US_DIV]: Similar simplifications for saturating
2307 (simplify_const_binary_operation) [SS_PLUS, US_PLUS, SS_MINUS,
2308 US_MINUS, SS_MULT, US_MULT, SMUL_HIGHPART, UMUL_HIGHPART]:
2309 Implement compile-time evaluation for constant operands.
2310 * dwarf2out.c (mem_loc_descriptor): Skip SMUL_HIGHPART and
2312 * doc/rtl.texi (smul_highpart, umul_highpart): Document RTX codes.
2313 * doc/md.texi (smul@var{m}3_highpart, umul@var{m3}_highpart):
2314 Mention the new smul_highpart and umul_highpart RTX codes.
2315 * doc/invoke.texi: Silence @xref "compilation" warnings.
2317 2021-10-07 Martin Jambor <mjambor@suse.cz>
2320 * ipa-prop.c (ipa_edge_args_sum_t::duplicate): Also handle the
2321 case when the source reference description corresponds to a
2322 referance taken in a function src->caller is inlined to.
2324 2021-10-07 Jan Hubicka <hubicka@ucw.cz>
2327 * ipa-modref-tree.h (modref_access_node::contains_p): Handle offsets
2329 (modref_access_node::try_merge_with): Add sanity check that there
2330 are no redundant entries in the list.
2332 2021-10-07 Richard Biener <rguenther@suse.de>
2334 PR tree-optimization/102608
2335 * tree-ssa-sccvn.c (visit_stmt): Drop .DEFERRED_INIT to
2338 2021-10-07 Martin Liska <mliska@suse.cz>
2340 * toplev.c (toplev::main): Make
2341 save_opt_decoded_options a pointer type
2342 * toplev.h: Likewise.
2344 2021-10-07 Andrew Stubbs <ams@codesourcery.com>
2346 * config/gcn/gcn-valu.md (gather<mode>_insn_2offsets<exec>): Apply
2347 HAVE_GCN_ASM_GLOBAL_LOAD_FIXED.
2348 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
2350 2021-10-07 Andrew Stubbs <ams@codesourcery.com>
2352 * config/gcn/gcn-hsa.h (SRAMOPT): Include the whole option string.
2353 Adjust for new -msram-ecc=any behaviour.
2354 (ASM_SPEC): Adjust -mxnack and -msram-ecc usage.
2355 * config/gcn/gcn.c (output_file_start): Implement -msram-ecc=any.
2356 * config/gcn/mkoffload.c (EF_AMDGPU_XNACK): Rename to ...
2357 (EF_AMDGPU_XNACK_V3): ... this.
2358 (EF_AMDGPU_SRAM_ECC): Rename to ...
2359 (EF_AMDGPU_SRAM_ECC_V3): ... this.
2360 (EF_AMDGPU_FEATURE_XNACK_V4): New.
2361 (EF_AMDGPU_FEATURE_XNACK_UNSUPPORTED_V4): New.
2362 (EF_AMDGPU_FEATURE_XNACK_ANY_V4): New.
2363 (EF_AMDGPU_FEATURE_XNACK_OFF_V4): New.
2364 (EF_AMDGPU_FEATURE_XNACK_ON_V4): New.
2365 (EF_AMDGPU_FEATURE_SRAMECC_V4): New.
2366 (EF_AMDGPU_FEATURE_SRAMECC_UNSUPPORTED_V4): New.
2367 (EF_AMDGPU_FEATURE_SRAMECC_ANY_V4): New.
2368 (EF_AMDGPU_FEATURE_SRAMECC_OFF_V4): New.
2369 (EF_AMDGPU_FEATURE_SRAMECC_ON_V4): New.
2370 (SET_XNACK_ON): New.
2371 (SET_XNACK_OFF): New.
2373 (SET_SRAM_ECC_ON): New.
2374 (SET_SRAM_ECC_ANY): New.
2375 (SET_SRAM_ECC_OFF): New.
2376 (TEST_SRAM_ECC_ANY): New.
2377 (TEST_SRAM_ECC_ON): New.
2378 (main): Implement HSACOv4 and -msram-ecc=any.
2380 2021-10-07 Andrew Stubbs <ams@codesourcery.com>
2382 * config.in: Regenerate.
2383 * config/gcn/gcn-hsa.h (X_FIJI): New macro.
2387 (A_FIJI): Rename to ...
2389 (A_900): Rename to ...
2391 (A_906): Rename to ...
2393 (A_908): Rename to ...
2395 (SRAMOPT): New macro.
2396 (ASM_SPEC): Adjust xnack option usage.
2397 * config/gcn/gcn.c (output_file_start): Adjust amdgcn_target usage.
2398 * configure: Regenerate.
2399 * configure.ac: Detect LLVM assembler dialect.
2401 2021-10-07 Richard Biener <rguenther@suse.de>
2403 * tree-pretty-print.c (dump_generic_node): Do not elide
2404 printing '&' when dumping with -gimple.
2406 2021-10-06 Andrew MacLeod <amacleod@redhat.com>
2408 * gimple-range-cache.cc (non_null_ref::adjust_range): Call new
2410 * gimple-range-fold.cc (adjust_pointer_diff_expr): Ditto.
2411 (adjust_imagpart_expr): Ditto.
2412 * value-range.cc (irange::irange_intersect): Call new routine if
2413 RHS is a single pair.
2414 (irange::intersect): New wide_int version.
2415 * value-range.h (class irange): New prototype.
2417 2021-10-06 Andrew MacLeod <amacleod@redhat.com>
2419 * gimple-range-edge.cc (gimple_outgoing_range::gimple_outgoing_range):
2420 Add parameter to limit size when recognizing switches.
2421 (gimple_outgoing_range::edge_range_p): Check size limit.
2422 * gimple-range-edge.h (gimple_outgoing_range): Add size field.
2423 * gimple-range-gori.cc (gori_map::calculate_gori): Ignore switches
2424 that exceed the size limit.
2425 (gori_compute::gori_compute): Add initializer.
2426 * params.opt (evrp-switch-limit): New.
2427 * doc/invoke.texi: Update docs.
2429 2021-10-06 Andrew MacLeod <amacleod@redhat.com>
2431 * value-range.h (irange::set_varying): Use TYPE_MIN_VALUE and
2432 TYPE_MAX_VALUE instead of creating new trees when possible.
2434 2021-10-06 Andrew MacLeod <amacleod@redhat.com>
2436 * gimple-range-cache.cc (non_null_ref::adjust_range): Check for
2437 zero and non-zero more efficently.
2439 2021-10-06 Richard Biener <rguenther@suse.de>
2442 * dumpfile.h (TDF_GIMPLE_VAL): New.
2443 (dump_flag): Re-order and adjust TDF_* flags. Make
2444 the enum uint32_t. Use std::underlying_type in the
2446 (optgroup_flag): Likewise for the operator overloads.
2447 * tree-pretty-print.c (dump_generic_node): Wrap ADDR_EXPR
2448 in _Literal if TDF_GIMPLE_VAL.
2449 * gimple-pretty-print.c (dump_gimple_assign): Add
2450 TDF_GIMPLE_VAL to flags when dumping operands where only
2451 is_gimple_val are allowed.
2452 (dump_gimple_cond): Likewise.
2454 2021-10-06 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
2456 * gimple-isel.cc (gimple_expand_vec_cond_expr): Remove redundant if
2459 2021-10-05 qing zhao <qing.zhao@oracle.com>
2461 PR middle-end/102359
2462 * gimplify.c (gimplify_decl_expr): Not add initialization for an
2463 auto variable when it has been initialized by frontend.
2465 2021-10-05 Aldy Hernandez <aldyh@redhat.com>
2467 * tree-ssa-threadupdate.c (jt_path_registry::cancel_invalid_paths):
2470 2021-10-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
2472 * common/config/avr/avr-common.c (avr_handle_option): Mark
2473 argument as ATTRIBUTE_UNUSED.
2475 2021-10-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
2477 * config/lm32/uclinux-elf.h (LINK_GCC_C_SEQUENCE_SPEC):
2478 Undefine before redefinition.
2480 2021-10-05 Richard Biener <rguenther@suse.de>
2482 * toplev.c (no_backend): Remove global var.
2483 (process_options): Pass in no_backend, move post_options
2484 langhook call to toplev::main.
2485 (do_compile): Pass in no_backend, move process_options call
2487 (toplev::run_self_tests): Check no_backend at the caller.
2488 (toplev::main): Call post_options and process_options
2489 split out from do_compile, do self-tests only if
2490 no_backend is initialized.
2492 2021-10-05 Richard Biener <rguenther@suse.de>
2494 * tree-cfg.c (dump_function_to_file): Dump the UID of the
2495 function as part of the name when requested.
2496 * tree-pretty-print.c (dump_function_name): Dump the UID when
2497 requested and the langhook produced the actual name.
2499 2021-10-05 Richard Biener <rguenther@suse.de>
2501 PR middle-end/102587
2502 PR middle-end/102285
2503 * internal-fn.c (expand_DEFERRED_INIT): Fall back to
2504 zero-initialization as last resort, use the constant
2505 size as given by the DEFERRED_INIT argument to build
2508 2021-10-04 Marek Polacek <polacek@redhat.com>
2511 * doc/invoke.texi: Document -Warray-compare.
2513 2021-10-04 Richard Biener <rguenther@suse.de>
2515 * gimplify.c (is_var_need_auto_init): DECL_HARD_REGISTER
2516 variables are not to be initialized.
2518 2021-10-04 Richard Biener <rguenther@suse.de>
2520 * expr.h (non_mem_decl_p): Declare.
2521 (mem_ref_refers_to_non_mem_p): Likewise.
2522 * expr.c (non_mem_decl_p): Export.
2523 (mem_ref_refers_to_non_mem_p): Likewise.
2524 * internal-fn.c (expand_DEFERRED_INIT): Do not expand the LHS
2525 but check the base with mem_ref_refers_to_non_mem_p
2528 2021-10-04 Richard Biener <rguenther@suse.de>
2530 PR tree-optimization/102570
2531 * tree-ssa-sccvn.h (vn_reference_op_struct): Document
2532 we are using clique for the internal function code.
2533 * tree-ssa-sccvn.c (vn_reference_op_eq): Compare the
2534 internal function code.
2535 (print_vn_reference_ops): Print the internal function code.
2536 (vn_reference_op_compute_hash): Hash it.
2537 (copy_reference_ops_from_call): Record it.
2538 (visit_stmt): Remove the restriction around internal function
2540 (fully_constant_vn_reference_p): Use fold_const_call and handle
2542 (vn_reference_eq): Compare call return types.
2543 * tree-ssa-pre.c (create_expression_by_pieces): Handle
2544 generating calls to internal functions.
2545 (compute_avail): Remove the restriction around internal function
2548 2021-10-04 Aldy Hernandez <aldyh@redhat.com>
2550 PR tree-optimization/102560
2551 * gimple-ssa-warn-alloca.c (alloca_call_type): Remove static
2552 marker for invalid_range.
2554 2021-10-04 Richard Biener <rguenther@suse.de>
2556 PR middle-end/102587
2557 * internal-fn.c (expand_DEFERRED_INIT): Guard register
2558 initialization path an avoid initializing VLA registers
2561 2021-10-04 Eric Botcazou <ebotcazou@adacore.com>
2563 * config/rs6000/vxworks.h (TARGET_INIT_LIBFUNCS): Delete.
2565 2021-10-03 Martin Liska <mliska@suse.cz>
2567 * toplev.c (toplev::main): Check opt_index if it is a part
2570 2021-10-02 Aldy Hernandez <aldyh@redhat.com>
2572 PR tree-optimization/102563
2573 * range-op.cc (operator_lshift::op1_range): Do not clobber
2576 2021-10-02 Martin Liska <mliska@suse.cz>
2578 * toplev.c (toplev::main): save_decoded_options[0] is program
2579 name and so it should be skipped.
2581 2021-10-01 Aldy Hernandez <aldyh@redhat.com>
2583 PR tree-optimization/102546
2584 * range-op.cc (operator_lshift::op1_range): Teach range-ops that
2585 X << Y is non-zero implies X is also non-zero.
2587 2021-10-01 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
2589 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New
2591 * config/aarch64/aarch64-tune.md: Regenerate.
2592 * doc/invoke.texi: Update docs.
2594 2021-10-01 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
2596 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New
2598 * config/aarch64/aarch64-tune.md: Regenerate.
2599 * doc/invoke.texi: Update docs.
2601 2021-10-01 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
2603 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New
2605 * config/aarch64/aarch64-tune.md: Regenerate.
2606 * doc/invoke.texi: Update docs.
2608 2021-10-01 Martin Sebor <msebor@redhat.com>
2611 * doc/invoke.texi (-Waddress): Update.
2612 * gengtype.c (write_types): Avoid -Waddress.
2613 * poly-int.h (POLY_SET_COEFF): Avoid using null.
2615 2021-10-01 John David Anglin <danglin@gcc.gnu.org>
2618 * config/pa/pa.c (pa_option_override): Default to dwarf version 4
2621 2021-10-01 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
2623 * config/aarch64/aarch64.h (AARCH64_FL_V9): Update value.
2625 2021-10-01 Aldy Hernandez <aldyh@redhat.com>
2627 * gimple-range-path.cc (path_range_query::compute_ranges): Use
2629 * gimple-range-path.h (class path_range_query): Remove shadowed
2631 (path_range_query::get_path_oracle): New.
2633 2021-10-01 Jakub Jelinek <jakub@redhat.com>
2634 Richard Biener <rguenther@suse.de>
2637 * doc/invoke.texi (-fsanitize=integer-divide-by-zero): Remove
2638 INT_MIN / -1 division detection from here ...
2639 (-fsanitize=signed-integer-overflow): ... and add it here.
2641 2021-10-01 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
2643 * config/aarch64/aarch64-arches.def (AARCH64_ARCH): Added
2645 * config/aarch64/aarch64.h (AARCH64_FL_V9): New.
2646 (AARCH64_FL_FOR_ARCH9): New flags for Armv9-A.
2647 (AARCH64_ISA_V9): New ISA flag.
2648 * doc/invoke.texi: Update docs.
2650 2021-10-01 Martin Liska <mliska@suse.cz>
2652 * toplev.c (toplev::main): Save decoded optimization options.
2653 * toplev.h (save_opt_decoded_options): New.
2654 * doc/extend.texi: Be more clear about optimize and target
2657 2021-10-01 Eric Botcazou <ebotcazou@adacore.com>
2659 * explow.c: Include langhooks.h.
2660 (set_stack_check_libfunc): Build a proper function type.
2662 2021-10-01 Eric Botcazou <ebotcazou@adacore.com>
2665 * config/i386/i386.c (legitimate_pic_address_disp_p): For PE-COFF do
2666 not return true for external weak function symbols in medium model.
2668 2021-10-01 Jakub Jelinek <jakub@redhat.com>
2670 * tree.h (OMP_CLAUSE_ORDER_REPRODUCIBLE): Define.
2671 * tree-pretty-print.c (dump_omp_clause) <case OMP_CLAUSE_ORDER>: Print
2672 reproducible: for OMP_CLAUSE_ORDER_REPRODUCIBLE.
2673 * omp-general.c (omp_extract_for_data): If OMP_CLAUSE_ORDER is seen
2674 without OMP_CLAUSE_ORDER_UNCONSTRAINED, overwrite sched_kind to
2675 OMP_CLAUSE_SCHEDULE_STATIC.
2677 2021-10-01 Richard Biener <rguenther@suse.de>
2679 PR middle-end/102518
2680 * tree-inline.c (setup_one_parameter): Avoid substituting
2681 an invariant into contexts where a GIMPLE register is not valid.
2683 2021-09-30 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
2685 * config/arm/arm-cpus.in: Add Cortex-R52+ CPU.
2686 * config/arm/arm-tables.opt: Regenerate.
2687 * config/arm/arm-tune.md: Regenerate.
2688 * doc/invoke.texi: Update docs.
2690 2021-09-30 Uroš Bizjak <ubizjak@gmail.com>
2693 * config/i386/i386.md
2694 (sign_extend:WIDE (any_logic:NARROW (memory, immediate)) splitters):
2697 2021-09-30 Tobias Burnus <tobias@codesourcery.com>
2699 * omp-low.c (omp_runtime_api_call): Add omp_aligned_{,c}alloc and
2700 omp_{c,re}alloc, fix omp_alloc/omp_free.
2702 2021-09-30 Martin Liska <mliska@suse.cz>
2704 * defaults.h (ASM_OUTPUT_ASCII): Do not hide global variable
2705 asm_out_file and stream directly to MYFILE.
2707 2021-09-30 Richard Biener <rguenther@suse.de>
2709 * tree-vect-data-refs.c (vect_update_misalignment_for_peel):
2710 Restore and fix condition under which we apply npeel to
2711 the DRs misalignment value.
2713 2021-09-30 Richard Biener <rguenther@suse.de>
2715 * tree-vect-data-refs.c (vect_update_misalignment_for_peel):
2716 Fix npeel check for variable amount of peeling.
2718 2021-09-30 Aldy Hernandez <aldyh@redhat.com>
2720 * lto-wrapper.c (run_gcc): Plug snprintf overflow.
2722 2021-09-30 Aldy Hernandez <aldyh@redhat.com>
2724 * gimple-range.cc (gimple_ranger::debug): New.
2725 * gimple-range.h (class gimple_ranger): Add debug.
2727 2021-09-30 Aldy Hernandez <aldyh@redhat.com>
2729 PR middle-end/102519
2730 * tree-vrp.c (hybrid_threader::~hybrid_threader): Free m_query.
2732 2021-09-29 Indu Bhagat <indu.bhagat@oracle.com>
2735 * btfout.c (GTY): Add GTY (()) albeit for cosmetic only purpose.
2736 (btf_finalize): Empty the hash_map btf_var_ids.
2738 2021-09-29 Aldy Hernandez <aldyh@redhat.com>
2740 * tree-vrp.c (thread_through_all_blocks): Return bool.
2741 (execute_vrp_threader): Return TODO_* flags.
2742 (pass_data_vrp_threader): Set todo_flags_finish to 0.
2744 2021-09-29 Aldy Hernandez <aldyh@redhat.com>
2746 * timevar.def (TV_TREE_VRP_THREADER): New.
2747 * tree-vrp.c: Use TV_TREE_VRP_THREADER for VRP threader pass.
2749 2021-09-29 David Faust <david.faust@oracle.com>
2751 * config.gcc (bpf-*-*): Do not overwrite extra_headers.
2753 2021-09-29 Jonathan Wright <jonathan.wright@arm.com>
2755 * config/aarch64/aarch64-builtins.c (TYPES_BINOP_PPU): Define
2756 new type qualifier enum.
2757 (TYPES_TERNOP_SSSU): Likewise.
2758 (TYPES_TERNOP_PPPU): Likewise.
2759 * config/aarch64/aarch64-simd-builtins.def: Define PPU, SSU,
2760 PPPU and SSSU builtin generator macros for qtbl1 and qtbx1
2762 * config/aarch64/arm_neon.h (vqtbl1_p8): Use type-qualified
2763 builtin and remove casts.
2764 (vqtbl1_s8): Likewise.
2765 (vqtbl1q_p8): Likewise.
2766 (vqtbl1q_s8): Likewise.
2767 (vqtbx1_s8): Likewise.
2768 (vqtbx1_p8): Likewise.
2769 (vqtbx1q_s8): Likewise.
2770 (vqtbx1q_p8): Likewise.
2771 (vtbl1_p8): Likewise.
2772 (vtbl2_p8): Likewise.
2773 (vtbx2_p8): Likewise.
2775 2021-09-29 Richard Biener <rguenther@suse.de>
2777 * tree-vect-data-refs.c (vect_dr_misalign_for_aligned_access):
2779 (vect_update_misalignment_for_peel): Use it to update
2780 misaligned to the value necessary for an aligned access.
2781 (vect_get_peeling_costs_all_drs): Likewise.
2782 (vect_enhance_data_refs_alignment): Likewise.
2784 2021-09-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2786 * config/aarch64/aarch64.c (aarch64_expand_cpymem): Count number of
2787 emitted operations and adjust heuristic for code size.
2789 2021-09-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2791 * config/aarch64/aarch64.c (aarch64_expand_setmem): Count number of
2792 emitted operations and adjust heuristic for code size.
2794 2021-09-29 Jakub Jelinek <jakub@redhat.com>
2796 PR middle-end/102504
2797 * gimplify.c (gimplify_scan_omp_clauses): Use omp_check_private even
2798 in OMP_SCOPE clauses, not just on worksharing construct clauses.
2800 2021-09-28 Geng Qi <gengqi@linux.alibaba.com>
2802 * config/riscv/riscv.md (mulv<mode>4): Call gen_smul<mode>3_highpart.
2803 (<u>mulditi3): Call <su>muldi3_highpart.
2804 (<u>muldi3_highpart): Rename to <su>muldi3_highpart.
2805 (<u>mulsidi3): Call <su>mulsi3_highpart.
2806 (<u>mulsi3_highpart): Rename to <su>mulsi3_highpart.
2808 2021-09-28 Iain Sandoe <iain@sandoe.co.uk>
2810 * config/darwin.h (DSYMUTIL_SPEC): Recognize D sources.
2812 2021-09-28 Iain Sandoe <iain@sandoe.co.uk>
2814 * config/rs6000/darwin.h (FIXED_R13): Add for PPC64.
2815 (FIRST_SAVED_GP_REGNO): Save from R13 even when it is one
2818 2021-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2820 * config/aarch64/aarch64.h (AARCH64_FL_LS64): Define
2821 (AARCH64_FL_V8_7): Likewise.
2822 (AARCH64_FL_FOR_ARCH8_7): Likewise.
2823 * config/aarch64/aarch64-arches.def (armv8.7-a): Define.
2824 * config/aarch64/aarch64-option-extensions.def (ls64): Define.
2825 * doc/invoke.texi: Document the above.
2827 2021-09-28 Aldy Hernandez <aldyh@redhat.com>
2829 * dbgcnt.c (dbg_cnt_counter): New.
2830 * dbgcnt.h (dbg_cnt_counter): New.
2831 * dumpfile.c (dump_options): Add entry for TDF_THREADING.
2832 * dumpfile.h (enum dump_flag): Add TDF_THREADING.
2833 * gimple-range-path.cc (DEBUG_SOLVER): Use TDF_THREADING.
2834 * tree-ssa-threadupdate.c (dump_jump_thread_path): Dump out
2837 2021-09-28 Aldy Hernandez <aldyh@redhat.com>
2839 * cfgcleanup.c (pass_jump::execute): Check
2840 flag_expensive_optimizations.
2841 (pass_jump_after_combine::gate): Same.
2842 * doc/invoke.texi (-fthread-jumps): Enable for -O1.
2843 * opts.c (default_options_table): Enable -fthread-jumps at -O1.
2844 * tree-ssa-threadupdate.c
2845 (fwd_jt_path_registry::remove_jump_threads_including): Bail unless
2848 2021-09-28 Ilya Leoshkevich <iii@linux.ibm.com>
2850 * tree-ssa-reassoc.c (biased_names): New global.
2851 (propagate_bias_p): New function.
2852 (loop_carried_phi): Remove.
2853 (propagate_rank): Propagate bias along single uses.
2854 (get_rank): Update biased_names when needed.
2856 2021-09-28 Ilya Leoshkevich <iii@linux.ibm.com>
2858 * passes.def (pass_reassoc): Rename parameter to early_p.
2859 * tree-ssa-reassoc.c (reassoc_bias_loop_carried_phi_ranks_p):
2861 (phi_rank): Don't bias loop-carried phi ranks
2862 before vectorization pass.
2863 (execute_reassoc): Add bias_loop_carried_phi_ranks_p parameter.
2864 (pass_reassoc::pass_reassoc): Add bias_loop_carried_phi_ranks_p
2866 (pass_reassoc::set_param): Set bias_loop_carried_phi_ranks_p
2868 (pass_reassoc::execute): Pass bias_loop_carried_phi_ranks_p to
2870 (pass_reassoc::bias_loop_carried_phi_ranks_p): New member.
2872 2021-09-28 Jakub Jelinek <jakub@redhat.com>
2875 * config/i386/i386.c (standard_80387_constant_p): Don't recognize
2876 special 80387 instruction XFmode constants if flag_rounding_math.
2878 2021-09-28 Richard Biener <rguenther@suse.de>
2880 PR tree-optimization/100112
2881 * tree-ssa-sccvn.c (visit_reference_op_load): Record the
2882 referece into the hashtable twice in case last_vuse is
2883 different from the original vuse on the stmt.
2885 2021-09-28 Jakub Jelinek <jakub@redhat.com>
2887 PR middle-end/102492
2888 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't call the
2889 omp_finish_clause langhook on implicitly added OMP_CLAUSE_PRIVATE
2890 clauses on SIMD constructs.
2892 2021-09-28 Aldy Hernandez <aldyh@redhat.com>
2894 PR tree-optimization/102511
2895 * gimple-range-path.cc (path_range_query::range_on_path_entry):
2896 Return VARYING when nothing found.
2898 2021-09-28 Hongyu Wang <hongyu.wang@intel.com>
2901 * config/i386/i386.h (VALID_AVX512FP16_REG_MODE): Add
2903 (VALID_SSE2_REG_VHF_MODE): Add V4HFmode and V2HFmode.
2904 (VALID_MMX_REG_MODE): Add V4HFmode.
2905 (SSE_REG_MODE_P): Replace VALID_AVX512FP16_REG_MODE with
2906 vector mode condition.
2907 * config/i386/i386.c (classify_argument): Parse V4HF/V2HF
2909 (function_arg_32): Add V4HFmode.
2910 (function_arg_advance_32): Likewise.
2911 * config/i386/i386.md (mode): Add V4HF/V2HF.
2912 (MODE_SIZE): Likewise.
2913 * config/i386/mmx.md (MMXMODE): Add V4HF mode.
2914 (V_32): Add V2HF mode.
2915 (VHF_32_64): New mode iterator.
2916 (*mov<mode>_internal): Adjust sse alternatives to support
2918 (*mov<mode>_internal): Adjust sse alternatives to support
2920 (<insn><mode>3): New define_insn for add/sub/mul/div.
2922 2021-09-28 Aldy Hernandez <aldyh@redhat.com>
2924 * tree-ssa-threadbackward.c (pass_thread_jumps::gate): Check
2926 (pass_early_thread_jumps::gate): Same.
2927 * tree-ssa-threadedge.c (jump_threader::thread_outgoing_edges):
2928 Return if !flag_thread_jumps.
2929 * tree-ssa-threadupdate.c
2930 (jt_path_registry::register_jump_thread): Assert that
2931 flag_thread_jumps is true.
2933 2021-09-28 liuhongt <hongtao.liu@intel.com>
2936 (simplify_context::simplify_binary_operation_1): Relax
2937 condition of simplifying (vec_concat:M (vec_select op0
2938 index0)(vec_select op1 index1)) to allow different modes
2939 between op0 and M, but have same inner mode.
2941 2021-09-28 liuhongt <hongtao.liu@intel.com>
2943 * config/i386/i386-expand.c (emit_reduc_half): Handle
2944 V8HF/V16HF/V32HFmode.
2945 * config/i386/sse.md (REDUC_SSE_PLUS_MODE): Add V8HF.
2946 (REDUC_SSE_SMINMAX_MODE): Ditto.
2947 (REDUC_PLUS_MODE): Add V16HF and V32HF.
2948 (REDUC_SMINMAX_MODE): Ditto.
2950 2021-09-27 Aldy Hernandez <aldyh@redhat.com>
2952 * gimple-range-path.cc
2953 (path_range_query::precompute_ranges_in_block): Rename to...
2954 (path_range_query::compute_ranges_in_block): ...this.
2955 (path_range_query::precompute_ranges): Rename to...
2956 (path_range_query::compute_ranges): ...this.
2957 (path_range_query::precompute_relations): Rename to...
2958 (path_range_query::compute_relations): ...this.
2959 (path_range_query::precompute_phi_relations): Rename to...
2960 (path_range_query::compute_phi_relations): ...this.
2961 * gimple-range-path.h: Rename precompute* to compute*.
2962 * tree-ssa-threadbackward.c
2963 (back_threader::find_taken_edge_switch): Same.
2964 (back_threader::find_taken_edge_cond): Same.
2965 * tree-ssa-threadedge.c
2966 (hybrid_jt_simplifier::compute_ranges_from_state): Same.
2967 (hybrid_jt_state::register_equivs_stmt): Inline...
2968 * tree-ssa-threadedge.h: ...here.
2970 2021-09-27 Aldy Hernandez <aldyh@redhat.com>
2972 * tree-vrp.c (lhs_of_dominating_assert): Remove.
2973 (class vrp_jt_state): Remove.
2974 (class vrp_jt_simplifier): Remove.
2975 (vrp_jt_simplifier::simplify): Remove.
2976 (class vrp_jump_threader): Remove.
2977 (vrp_jump_threader::vrp_jump_threader): Remove.
2978 (vrp_jump_threader::~vrp_jump_threader): Remove.
2979 (vrp_jump_threader::before_dom_children): Remove.
2980 (vrp_jump_threader::after_dom_children): Remove.
2982 2021-09-27 Aldy Hernandez <aldyh@redhat.com>
2984 * passes.def (pass_vrp_threader): New.
2985 * tree-pass.h (make_pass_vrp_threader): Add make_pass_vrp_threader.
2986 * tree-ssa-threadedge.c (hybrid_jt_state::register_equivs_stmt): New.
2987 (hybrid_jt_simplifier::hybrid_jt_simplifier): New.
2988 (hybrid_jt_simplifier::simplify): New.
2989 (hybrid_jt_simplifier::compute_ranges_from_state): New.
2990 * tree-ssa-threadedge.h (class hybrid_jt_state): New.
2991 (class hybrid_jt_simplifier): New.
2992 * tree-vrp.c (execute_vrp): Remove ASSERT_EXPR based jump
2994 (class hybrid_threader): New.
2995 (hybrid_threader::hybrid_threader): New.
2996 (hybrid_threader::~hybrid_threader): New.
2997 (hybrid_threader::before_dom_children): New.
2998 (hybrid_threader::after_dom_children): New.
2999 (execute_vrp_threader): New.
3000 (class pass_vrp_threader): New.
3001 (make_pass_vrp_threader): New.
3003 2021-09-27 Martin Liska <mliska@suse.cz>
3005 * output.h (enum section_flag): New.
3006 (SECTION_FORGET): Remove.
3007 (SECTION_ENTSIZE): Make it (1UL << 8) - 1.
3008 (SECTION_STYLE_MASK): Define it based on other enum
3010 * varasm.c (switch_to_section): Remove unused handling of
3013 2021-09-27 Martin Liska <mliska@suse.cz>
3015 * common.opt: Add new variable flag_default_complex_method.
3016 * opts.c (finish_options): Handle flags related to
3017 x_flag_complex_method.
3018 * toplev.c (process_options): Remove option handling related
3019 to flag_complex_method.
3021 2021-09-27 Richard Biener <rguenther@suse.de>
3023 PR middle-end/102450
3024 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid using
3025 type_for_size, instead use int_mode_for_size.
3027 2021-09-27 Andrew Pinski <apinski@marvell.com>
3030 * gimplify.c (gimplify_save_expr): Return early
3031 if the type of val is error_mark_node.
3033 2021-09-27 Aldy Hernandez <aldyh@redhat.com>
3035 * tree-ssanames.c (ssa_name_has_boolean_range): Use
3038 2021-09-27 Aldy Hernandez <aldyh@redhat.com>
3040 * gimple-ssa-evrp-analyze.h (class evrp_range_analyzer): Remove
3041 vrp_visit_cond_stmt.
3042 * tree-ssa-dom.c (cprop_operand): Convert to range_query API.
3043 (cprop_into_stmt): Same.
3044 (dom_opt_dom_walker::optimize_stmt): Same.
3046 2021-09-27 Richard Biener <rguenther@suse.de>
3048 PR tree-optimization/97351
3049 PR tree-optimization/97352
3050 PR tree-optimization/82426
3051 * tree-vectorizer.h (dr_misalignment): Add vector type
3053 (aligned_access_p): Likewise.
3054 (known_alignment_for_access_p): Likewise.
3055 (vect_supportable_dr_alignment): Likewise.
3056 (vect_known_alignment_in_bytes): Likewise. Refactor.
3057 (DR_MISALIGNMENT): Remove.
3058 (vect_update_shared_vectype): Likewise.
3059 * tree-vect-data-refs.c (dr_misalignment): Refactor, handle
3060 a vector type with larger alignment requirement and apply
3061 the negative step adjustment here.
3062 (vect_calculate_target_alignment): Remove.
3063 (vect_compute_data_ref_alignment): Get explicit vector type
3064 argument, do not apply a negative step alignment adjustment
3066 (vect_slp_analyze_node_alignment): Re-analyze alignment
3067 when we re-visit the DR with a bigger desired alignment but
3068 keep more precise results from smaller alignments.
3069 * tree-vect-slp.c (vect_update_shared_vectype): Remove.
3070 (vect_slp_analyze_node_operations_1): Do not update the
3071 shared vector type on stmts.
3072 * tree-vect-stmts.c (vect_analyze_stmt): Push/pop the
3073 vector type of an SLP node to the representative stmt-info.
3074 (vect_transform_stmt): Likewise.
3076 2021-09-27 liuhongt <hongtao.liu@intel.com>
3079 2021-09-09 liuhongt <hongtao.liu@intel.com>
3082 * config/i386/sse.md (reduc_plus_scal_<mode>): Split to ..
3083 (reduc_plus_scal_v4sf): .. this, New define_expand.
3084 (reduc_plus_scal_v2df): .. and this, New define_expand.
3086 2021-09-26 liuhongt <hongtao.liu@intel.com>
3088 * doc/extend.texi (Half-Precision): Remove storage only
3089 description for _Float16 w/o avx512fp16.
3091 2021-09-25 Dimitar Dimitrov <dimitar@dinux.eu>
3093 * config/pru/constraints.md (Rrio): New constraint.
3094 * config/pru/predicates.md (regio_operand): New predicate.
3095 * config/pru/pru-pragma.c (pru_register_pragmas): Register
3096 the __regio_symbol address space.
3097 * config/pru/pru-protos.h (pru_symref2ioregno): Declaration.
3098 * config/pru/pru.c (pru_symref2ioregno): New helper function.
3099 (pru_legitimate_address_p): Remove.
3100 (pru_addr_space_legitimate_address_p): Use the address space
3102 (pru_nongeneric_pointer_addrspace): New helper function.
3103 (pru_insert_attributes): New function to validate __regio_symbol
3105 (TARGET_INSERT_ATTRIBUTES): New macro.
3106 (TARGET_LEGITIMATE_ADDRESS_P): Remove.
3107 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): New macro.
3108 * config/pru/pru.h (enum reg_class): Add REGIO_REGS class.
3109 * config/pru/pru.md (*regio_readsi): New pattern to read I/O
3111 (*regio_nozext_writesi): New pattern to write to I/O registers.
3112 (*regio_zext_write_r30<EQS0:mode>): Ditto.
3113 * doc/extend.texi: Document the new PRU Named Address Space.
3115 2021-09-24 Patrick Palka <ppalka@redhat.com>
3119 * real.c (encode_ieee_double): Avoid unwanted sign extension.
3120 (encode_ieee_quad): Likewise.
3122 2021-09-24 Vladimir Makarov <vmakarov@redhat.com>
3124 PR rtl-optimization/102147
3125 * ira-build.c (ira_conflict_vector_profitable_p): Make
3126 profitability calculation independent of host compiler pointer and
3129 2021-09-24 Aldy Hernandez <aldyh@redhat.com>
3131 * gimple-range-path.cc (path_range_query::path_range_query):
3132 Move debugging header...
3133 (path_range_query::precompute_ranges): ...here.
3134 (path_range_query::internal_range_of_expr): Do not call
3135 range_on_path_entry if NAME is defined in the current block.
3137 2021-09-24 Richard Biener <rguenther@suse.de>
3139 * cfghooks.c (verify_flow_info): Verify unallocated BB and
3140 edge flags are not set.
3142 2021-09-24 Aldy Hernandez <aldyh@redhat.com>
3144 * tree-ssa-threadupdate.c (jt_path_registry::cancel_invalid_paths):
3146 (jt_path_registry::register_jump_thread): Call
3147 cancel_invalid_paths.
3148 * tree-ssa-threadupdate.h (class jt_path_registry): Add
3149 cancel_invalid_paths.
3151 2021-09-24 Feng Xue <fxue@os.amperecomputing.com>
3153 PR tree-optimization/102400
3154 * tree-ssa-sccvn.c (vn_reference_insert_pieces): Initialize
3155 result_vdef to zero value.
3157 2021-09-24 Feng Xue <fxue@os.amperecomputing.com>
3159 PR tree-optimization/102451
3160 * tree-ssa-dse.c (delete_dead_or_redundant_call): Record bb of stmt
3163 2021-09-24 Hongyu Wang <hongyu.wang@intel.com>
3165 * config/i386/sse.md (cond_<insn><mode>): Extend to support
3167 (cond_mul<mode>): Likewise.
3168 (cond_div<mode>): Likewise.
3169 (cond_<code><mode>): Likewise.
3170 (cond_fma<mode>): Likewise.
3171 (cond_fms<mode>): Likewise.
3172 (cond_fnma<mode>): Likewise.
3173 (cond_fnms<mode>): Likewise.
3175 2021-09-23 Andrew MacLeod <amacleod@redhat.com>
3177 PR tree-optimization/102463
3178 * gimple-range-fold.cc (fold_using_range::relation_fold_and_or): If
3179 there is no range-ops handler, don't look for a relation.
3181 2021-09-23 Andrew MacLeod <amacleod@redhat.com>
3183 * gimple-range-cache.cc (ranger_cache::ranger_cache): Take
3184 non-executable_edge flag as parameter.
3185 * gimple-range-cache.h (ranger_cache): Adjust prototype.
3186 * gimple-range-gori.cc (gori_compute::gori_compute): Take
3187 non-executable_edge flag as parameter.
3188 (gori_compute::outgoing_edge_range_p): Check new flag.
3189 * gimple-range-gori.h (gori_compute): Adjust prototype.
3190 * gimple-range.cc (gimple_ranger::gimple_ranger): Create new flag.
3191 (gimple_ranger::range_on_edge): Check new flag.
3192 * gimple-range.h (gimple_ranger::non_executable_edge_flag): New.
3193 * gimple-ssa-evrp.c (rvrp_folder): Pass ranger flag to simplifer.
3194 (hybrid_folder::hybrid_folder): Set ranger non-executable flag value.
3195 (hybrid_folder::fold_stmt): Set flag value in the simplifer.
3196 * vr-values.c (simplify_using_ranges::set_and_propagate_unexecutable):
3197 Use not_executable flag if provided inmstead of EDGE_EXECUTABLE.
3198 (simplify_using_ranges::simplify_switch_using_ranges): Clear
3199 EDGE_EXECUTABLE like it originally did.
3200 (simplify_using_ranges::cleanup_edges_and_switches): Clear any
3201 NON_EXECUTABLE flags.
3202 (simplify_using_ranges::simplify_using_ranges): Adjust.
3203 * vr-values.h (class simplify_using_ranges): Adjust.
3204 (simplify_using_ranges::set_range_query): Add non-executable flag param.
3206 2021-09-23 Bill Schmidt <wschmidt@linux.ibm.com>
3209 * config/rs6000/rs6000-call.c (rs6000_aggregate_candidate): Detect
3210 zero-width bit fields and return indicator.
3211 (rs6000_discover_homogeneous_aggregate): Diagnose when the
3212 presence of a zero-width bit field changes parameter passing in
3215 2021-09-23 Aldy Hernandez <aldyh@redhat.com>
3217 * gimple-range-fold.cc (fold_using_range::range_of_phi):
3218 Remove dominator check.
3220 2021-09-23 Aldy Hernandez <aldyh@redhat.com>
3222 * gimple-range-path.cc (path_range_query::precompute_relations):
3223 Hoist edge calculations before using EDGE_SUCC.
3225 2021-09-23 Jonathan Wakely <jwakely@redhat.com>
3227 * configure.ac: Fix --with-multilib-list description.
3228 * configure: Regenerate.
3230 2021-09-23 Richard Biener <rguenther@suse.de>
3232 PR tree-optimization/102448
3233 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info):
3234 Clear alignment info copied from DR_PTR_INFO.
3236 2021-09-23 Hongyu Wang <hongyu.wang@intel.com>
3238 * config/i386/i386-expand.c (ix86_use_mask_cmp_p): Enable
3240 * config/i386/sse.md (sseintvecmodelower): Add HF vector modes.
3241 (<avx512>_store<mode>_mask): Extend to support HF vector modes.
3242 (vec_cmp<mode><avx512fmaskmodelower>): Likewise.
3243 (vcond_mask_<mode><avx512fmaskmodelower>): Likewise.
3244 (vcond<mode><mode>): New expander.
3245 (vcond<mode><sseintvecmodelower>): Likewise.
3246 (vcond<sseintvecmodelower><mode>): Likewise.
3247 (vcondu<mode><sseintvecmodelower>): Likewise.
3249 2021-09-23 Hongyu Wang <hongyu.wang@intel.com>
3251 * config/i386/sse.md (extend<ssePHmodelower><mode>2):
3253 (extendv4hf<mode>2): Likewise.
3254 (extendv2hfv2df2): Likewise.
3255 (trunc<mode><ssePHmodelower>2): Likewise.
3256 (avx512fp16_vcvt<castmode>2ph_<mode>): Rename to ...
3257 (trunc<mode>v4hf2): ... this, and drop constraints.
3258 (avx512fp16_vcvtpd2ph_v2df): Rename to ...
3259 (truncv2dfv2hf2): ... this, and likewise.
3261 2021-09-23 Hongyu Wang <hongyu.wang@intel.com>
3263 * config/i386/sse.md (float<floatunssuffix><mode><ssePHmodelower>2):
3265 (avx512fp16_vcvt<floatsuffix><sseintconvert>2ph_<mode>):
3267 (float<floatunssuffix><mode>v4hf2): ... this, and drop constraints.
3268 (avx512fp16_vcvt<floatsuffix>qq2ph_v2di): Rename to ...
3269 (float<floatunssuffix>v2div2hf2): ... this, and likewise.
3271 2021-09-23 Hongyu Wang <hongyu.wang@intel.com>
3273 * config/i386/i386.md (fix<fixunssuffix>_trunchf<mode>2): New expander.
3274 (fixuns_trunchfhi2): Likewise.
3275 (*fixuns_trunchfsi2zext): New define_insn.
3276 * config/i386/sse.md (ssePHmodelower): New mode_attr.
3277 (fix<fixunssuffix>_trunc<ssePHmodelower><mode>2):
3278 New expander for same element vector fix_truncate.
3279 (fix<fixunssuffix>_trunc<ssePHmodelower><mode>2):
3280 Likewise for V4HF to V4SI/V4DI fix_truncate.
3281 (fix<fixunssuffix>_truncv2hfv2di2):
3282 Likeise for V2HF to V2DI fix_truncate.
3284 2021-09-23 Hongyu Wang <hongyu.wang@intel.com>
3286 * config/i386/i386.md (<code>hf3): New expander.
3288 2021-09-23 liuhongt <hongtao.liu@intel.com>
3290 * config/i386/sse.md (FMAMODEM): extend to handle FP16.
3291 (VFH_SF_AVX512VL): Extend to handle HFmode.
3292 (VF_SF_AVX512VL): Deleted.
3294 2021-09-23 liuhongt <hongtao.liu@intel.com>
3296 * config/i386/i386.md (rinthf2): New expander.
3297 (nearbyinthf2): New expander.
3299 2021-09-23 Aldy Hernandez <aldyh@redhat.com>
3301 * tree-ssa-dom.c (class dom_jump_threader_simplifier): Rename...
3302 (class dom_jt_state): ...this and provide virtual overrides.
3303 (dom_jt_state::register_equiv): New.
3304 (class dom_jt_simplifier): Rename from
3305 dom_jump_threader_simplifier.
3306 (dom_jump_threader_simplifier::simplify): Rename...
3307 (dom_jt_simplifier::simplify): ...to this.
3308 (pass_dominator::execute): Use dom_jt_simplifier and
3310 * tree-ssa-threadedge.c (jump_threader::jump_threader):
3312 (jt_state::register_equivs_stmt): Abstract out...
3313 (jump_threader::record_temporary_equivalences_from_stmts_at_dest):
3315 (jump_threader::thread_around_empty_blocks): Update state.
3316 (jump_threader::thread_through_normal_block): Same.
3317 (jt_state::jt_state): Remove.
3318 (jt_state::push): Remove pass specific bits. Keep block vector
3320 (jt_state::append_path): New.
3321 (jt_state::pop): Remove pass specific bits.
3322 (jt_state::register_equiv): Same.
3323 (jt_state::record_ranges_from_stmt): Same.
3324 (jt_state::register_equivs_on_edge): Same. Rename...
3325 (jt_state::register_equivs_edge): ...to this.
3326 (jt_state::dump): New.
3327 (jt_state::debug): New.
3328 (jump_threader_simplifier::simplify): Remove.
3329 (jt_state::get_path): New.
3330 * tree-ssa-threadedge.h (class jt_simplifier): Make into a base
3331 class. Expose common functionality as virtual methods.
3332 (class jump_threader_simplifier): Same. Rename...
3333 (class jt_simplifier): ...to this.
3334 * tree-vrp.c (class vrp_jump_threader_simplifier): Rename...
3335 (class vrp_jt_simplifier): ...to this. Provide pass specific
3337 (class vrp_jt_state): New.
3338 (vrp_jump_threader_simplifier::simplify): Rename...
3339 (vrp_jt_simplifier::simplify): ...to this. Inline code from
3340 what used to be the base class.
3341 (vrp_jump_threader::vrp_jump_threader): Use vrp_jt_state and
3344 2021-09-22 Tobias Burnus <tobias@codesourcery.com>
3347 * doc/invoke.texi (-Wno-missing-include-dirs.): Document Fortran
3350 2021-09-22 Roger Sayle <roger@nextmovesoftware.com>
3351 Richard Biener <rguenther@suse.de>
3353 * match.pd (negation simplifications): Implement some negation
3354 folding transformations from fold-const.c's fold_negate_expr.
3355 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Add a SIMPLIFY
3356 argument, to control whether the op should be simplified prior
3357 to looking up/assigning a value number.
3358 (vn_nary_build_or_lookup): Update call to vn_nary_build_or_lookup_1.
3359 (vn_nary_simplify): Likewise.
3360 (visit_nary_op): Likewise, but when constructing a NEGATE_EXPR
3361 now call vn_nary_build_or_lookup_1 disabling simplification.
3363 2021-09-22 Jiufu Guo <guojiufu@linux.ibm.com>
3365 PR tree-optimization/102087
3366 * tree-ssa-loop-niter.c (number_of_iterations_until_wrap):
3367 Update bound/cmp/control for niter.
3369 2021-09-22 Aldy Hernandez <aldyh@redhat.com>
3371 * gimple-range-fold.cc (fold_using_range::range_of_range_op):
3372 Move check for non-empty BB here.
3373 (fur_source::register_outgoing_edges): ...from here.
3375 2021-09-22 Aldy Hernandez <aldyh@redhat.com>
3377 * gimple-range-path.cc (path_range_query::internal_range_of_expr):
3378 Remove call to improve_range_with_equivs.
3379 (path_range_query::improve_range_with_equivs): Remove
3380 * gimple-range-path.h: Remove improve_range_with_equivs.
3382 2021-09-22 dianhong xu <dianhong.xu@intel.com>
3384 * config/i386/avx512fp16intrin.h:
3385 (_mm512_mask_blend_ph): New intrinsic.
3386 (_mm512_permutex2var_ph): Ditto.
3387 (_mm512_permutexvar_ph): Ditto.
3388 * config/i386/avx512fp16vlintrin.h:
3389 (_mm256_mask_blend_ph): New intrinsic.
3390 (_mm256_permutex2var_ph): Ditto.
3391 (_mm256_permutexvar_ph): Ditto.
3392 (_mm_mask_blend_ph): Ditto.
3393 (_mm_permutex2var_ph): Ditto.
3394 (_mm_permutexvar_ph): Ditto.
3396 2021-09-22 dianhong xu <dianhong.xu@intel.com>
3398 * config/i386/avx512fp16intrin.h: Add new intrinsics.
3399 (_mm512_conj_pch): New intrinsic.
3400 (_mm512_mask_conj_pch): Ditto.
3401 (_mm512_maskz_conj_pch): Ditto.
3402 * config/i386/avx512fp16vlintrin.h: Add new intrinsics.
3403 (_mm256_conj_pch): New intrinsic.
3404 (_mm256_mask_conj_pch): Ditto.
3405 (_mm256_maskz_conj_pch): Ditto.
3406 (_mm_conj_pch): Ditto.
3407 (_mm_mask_conj_pch): Ditto.
3408 (_mm_maskz_conj_pch): Ditto.
3410 2021-09-22 dianhong xu <dianhong.xu@intel.com>
3412 * config/i386/avx512fp16intrin.h (_MM512_REDUCE_OP): New macro
3413 (_mm512_reduce_add_ph): New intrinsic.
3414 (_mm512_reduce_mul_ph): Ditto.
3415 (_mm512_reduce_min_ph): Ditto.
3416 (_mm512_reduce_max_ph): Ditto.
3417 * config/i386/avx512fp16vlintrin.h
3418 (_MM256_REDUCE_OP/_MM_REDUCE_OP): New macro.
3419 (_mm256_reduce_add_ph): New intrinsic.
3420 (_mm256_reduce_mul_ph): Ditto.
3421 (_mm256_reduce_min_ph): Ditto.
3422 (_mm256_reduce_max_ph): Ditto.
3423 (_mm_reduce_add_ph): Ditto.
3424 (_mm_reduce_mul_ph): Ditto.
3425 (_mm_reduce_min_ph): Ditto.
3426 (_mm_reduce_max_ph): Ditto.
3428 2021-09-22 dianhong xu <dianhong.xu@intel.com>
3430 * config/i386/avx512fp16intrin.h (__m512h_u, __m256h_u,
3431 __m128h_u): New typedef.
3432 (_mm512_load_ph): New intrinsic.
3433 (_mm256_load_ph): Ditto.
3434 (_mm_load_ph): Ditto.
3435 (_mm512_loadu_ph): Ditto.
3436 (_mm256_loadu_ph): Ditto.
3437 (_mm_loadu_ph): Ditto.
3438 (_mm512_store_ph): Ditto.
3439 (_mm256_store_ph): Ditto.
3440 (_mm_store_ph): Ditto.
3441 (_mm512_storeu_ph): Ditto.
3442 (_mm256_storeu_ph): Ditto.
3443 (_mm_storeu_ph): Ditto.
3444 (_mm512_abs_ph): Ditto.
3445 * config/i386/avx512fp16vlintrin.h
3446 (_mm_abs_ph): Ditto.
3447 (_mm256_abs_ph): Ditto.
3449 2021-09-22 Andreas Krebbel <krebbel@linux.ibm.com>
3451 * config/s390/tpf.md (prologue_tpf, epilogue_tpf): Add cc clobber.
3453 2021-09-22 Andreas Krebbel <krebbel@linux.ibm.com>
3456 * config/s390/s390.c (s390_expand_insv): Emit a normal move if it
3457 is actually a full copy of the source operand into the target.
3458 Don't emit a strict low part move if source and target mode match.
3460 2021-09-22 Jakub Jelinek <jakub@redhat.com>
3462 PR middle-end/102415
3463 * omp-expand.c (expand_omp_single): If region->exit is NULL,
3464 assert region->entry is GIMPLE_OMP_SCOPE region and return.
3466 2021-09-22 Jakub Jelinek <jakub@redhat.com>
3468 * tree.h (OMP_CLAUSE_ALLOCATE_ALIGN): Define.
3469 * tree.c (omp_clause_num_ops): Change number of OMP_CLAUSE_ALLOCATE
3470 arguments from 2 to 3.
3471 * tree-pretty-print.c (dump_omp_clause): Print allocator() around
3472 allocate clause allocator and print align if present.
3473 * omp-low.c (scan_sharing_clauses): Force allocate_map entry even
3474 for omp_default_mem_alloc if align modifier is present. If align
3475 modifier is present, use TREE_LIST to encode both allocator and
3477 (lower_private_allocate, lower_rec_input_clauses, create_task_copyfn):
3478 Handle align modifier on allocator clause if present.
3480 2021-09-22 liuhongt <hongtao.liu@intel.com>
3482 * config/i386/i386.md (define_attr "isa"): Add
3484 (define_attr "enabled"): Correspond fma_or_avx512vl to
3485 TARGET_FMA || TARGET_AVX512VL.
3486 * config/i386/mmx.md (fmav2sf4): Extend to AVX512 fma.
3491 2021-09-22 liuhongt <hongtao.liu@intel.com>
3493 * config/i386/i386.md (cstorehf3): New define_expand.
3495 2021-09-22 liuhongt <hongtao.liu@intel.com>
3497 * config/i386/i386.md (<rounding_insn>hf2): New expander.
3498 (sse4_1_round<mode>2): Extend from MODEF to MODEFH.
3499 * config/i386/sse.md (*sse4_1_round<ssescalarmodesuffix>):
3500 Extend from VF_128 to VFH_128.
3502 2021-09-22 liuhongt <hongtao.liu@intel.com>
3504 * config/i386/i386-features.c (i386-features.c): Handle
3506 * config/i386/i386.md (sqrthf2): New expander.
3507 (*sqrthf2): New define_insn.
3508 * config/i386/sse.md
3509 (*<sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>):
3512 2021-09-22 liuhongt <hongtao.liu@intel.com>
3514 * config/i386/avx512fp16intrin.h (_mm_mask_fcmadd_sch):
3516 (_mm_mask3_fcmadd_sch): Likewise.
3517 (_mm_maskz_fcmadd_sch): Likewise.
3518 (_mm_fcmadd_sch): Likewise.
3519 (_mm_mask_fmadd_sch): Likewise.
3520 (_mm_mask3_fmadd_sch): Likewise.
3521 (_mm_maskz_fmadd_sch): Likewise.
3522 (_mm_fmadd_sch): Likewise.
3523 (_mm_mask_fcmadd_round_sch): Likewise.
3524 (_mm_mask3_fcmadd_round_sch): Likewise.
3525 (_mm_maskz_fcmadd_round_sch): Likewise.
3526 (_mm_fcmadd_round_sch): Likewise.
3527 (_mm_mask_fmadd_round_sch): Likewise.
3528 (_mm_mask3_fmadd_round_sch): Likewise.
3529 (_mm_maskz_fmadd_round_sch): Likewise.
3530 (_mm_fmadd_round_sch): Likewise.
3531 (_mm_fcmul_sch): Likewise.
3532 (_mm_mask_fcmul_sch): Likewise.
3533 (_mm_maskz_fcmul_sch): Likewise.
3534 (_mm_fmul_sch): Likewise.
3535 (_mm_mask_fmul_sch): Likewise.
3536 (_mm_maskz_fmul_sch): Likewise.
3537 (_mm_fcmul_round_sch): Likewise.
3538 (_mm_mask_fcmul_round_sch): Likewise.
3539 (_mm_maskz_fcmul_round_sch): Likewise.
3540 (_mm_fmul_round_sch): Likewise.
3541 (_mm_mask_fmul_round_sch): Likewise.
3542 (_mm_maskz_fmul_round_sch): Likewise.
3543 * config/i386/i386-builtin.def: Add corresponding new builtins.
3544 * config/i386/sse.md
3545 (avx512fp16_fmaddcsh_v8hf_maskz<round_expand_name>): New expander.
3546 (avx512fp16_fcmaddcsh_v8hf_maskz<round_expand_name>): Ditto.
3547 (avx512fp16_fma_<complexopname>sh_v8hf<mask_scalarcz_name><round_scalarcz_name>):
3549 (avx512fp16_<complexopname>sh_v8hf_mask<round_name>): Ditto.
3550 (avx512fp16_<complexopname>sh_v8hf<mask_scalarc_name><round_scalarcz_name>):
3552 * config/i386/subst.md (mask_scalarcz_name): New.
3553 (mask_scalarc_name): Ditto.
3554 (mask_scalarc_operand3): Ditto.
3555 (mask_scalarcz_operand4): Ditto.
3556 (round_scalarcz_name): Ditto.
3557 (round_scalarc_mask_operand3): Ditto.
3558 (round_scalarcz_mask_operand4): Ditto.
3559 (round_scalarc_mask_op3): Ditto.
3560 (round_scalarcz_mask_op4): Ditto.
3561 (round_scalarcz_constraint): Ditto.
3562 (round_scalarcz_nimm_predicate): Ditto.
3563 (mask_scalarcz): Ditto.
3564 (mask_scalarc): Ditto.
3565 (round_scalarcz): Ditto.
3567 2021-09-22 liuhongt <hongtao.liu@intel.com>
3569 * config/i386/avx512fp16intrin.h (_mm512_fcmadd_pch):
3571 (_mm512_mask_fcmadd_pch): Likewise.
3572 (_mm512_mask3_fcmadd_pch): Likewise.
3573 (_mm512_maskz_fcmadd_pch): Likewise.
3574 (_mm512_fmadd_pch): Likewise.
3575 (_mm512_mask_fmadd_pch): Likewise.
3576 (_mm512_mask3_fmadd_pch): Likewise.
3577 (_mm512_maskz_fmadd_pch): Likewise.
3578 (_mm512_fcmadd_round_pch): Likewise.
3579 (_mm512_mask_fcmadd_round_pch): Likewise.
3580 (_mm512_mask3_fcmadd_round_pch): Likewise.
3581 (_mm512_maskz_fcmadd_round_pch): Likewise.
3582 (_mm512_fmadd_round_pch): Likewise.
3583 (_mm512_mask_fmadd_round_pch): Likewise.
3584 (_mm512_mask3_fmadd_round_pch): Likewise.
3585 (_mm512_maskz_fmadd_round_pch): Likewise.
3586 (_mm512_fcmul_pch): Likewise.
3587 (_mm512_mask_fcmul_pch): Likewise.
3588 (_mm512_maskz_fcmul_pch): Likewise.
3589 (_mm512_fmul_pch): Likewise.
3590 (_mm512_mask_fmul_pch): Likewise.
3591 (_mm512_maskz_fmul_pch): Likewise.
3592 (_mm512_fcmul_round_pch): Likewise.
3593 (_mm512_mask_fcmul_round_pch): Likewise.
3594 (_mm512_maskz_fcmul_round_pch): Likewise.
3595 (_mm512_fmul_round_pch): Likewise.
3596 (_mm512_mask_fmul_round_pch): Likewise.
3597 (_mm512_maskz_fmul_round_pch): Likewise.
3598 * config/i386/avx512fp16vlintrin.h (_mm_fmadd_pch):
3600 (_mm_mask_fmadd_pch): Likewise.
3601 (_mm_mask3_fmadd_pch): Likewise.
3602 (_mm_maskz_fmadd_pch): Likewise.
3603 (_mm256_fmadd_pch): Likewise.
3604 (_mm256_mask_fmadd_pch): Likewise.
3605 (_mm256_mask3_fmadd_pch): Likewise.
3606 (_mm256_maskz_fmadd_pch): Likewise.
3607 (_mm_fcmadd_pch): Likewise.
3608 (_mm_mask_fcmadd_pch): Likewise.
3609 (_mm_mask3_fcmadd_pch): Likewise.
3610 (_mm_maskz_fcmadd_pch): Likewise.
3611 (_mm256_fcmadd_pch): Likewise.
3612 (_mm256_mask_fcmadd_pch): Likewise.
3613 (_mm256_mask3_fcmadd_pch): Likewise.
3614 (_mm256_maskz_fcmadd_pch): Likewise.
3615 (_mm_fmul_pch): Likewise.
3616 (_mm_mask_fmul_pch): Likewise.
3617 (_mm_maskz_fmul_pch): Likewise.
3618 (_mm256_fmul_pch): Likewise.
3619 (_mm256_mask_fmul_pch): Likewise.
3620 (_mm256_maskz_fmul_pch): Likewise.
3621 (_mm_fcmul_pch): Likewise.
3622 (_mm_mask_fcmul_pch): Likewise.
3623 (_mm_maskz_fcmul_pch): Likewise.
3624 (_mm256_fcmul_pch): Likewise.
3625 (_mm256_mask_fcmul_pch): Likewise.
3626 (_mm256_maskz_fcmul_pch): Likewise.
3627 * config/i386/i386-builtin-types.def (V8HF_FTYPE_V8HF_V8HF_V8HF,
3628 V8HF_FTYPE_V16HF_V16HF_V16HF, V16HF_FTYPE_V16HF_V16HF_V16HF_UQI,
3629 V32HF_FTYPE_V32HF_V32HF_V32HF_INT,
3630 V32HF_FTYPE_V32HF_V32HF_V32HF_UHI_INT): Add new builtin types.
3631 * config/i386/i386-builtin.def: Add new builtins.
3632 * config/i386/i386-expand.c: Handle new builtin types.
3633 * config/i386/subst.md (SUBST_CV): New.
3634 (maskc_name): Ditto.
3635 (maskc_operand3): Ditto.
3637 (sdc_maskz_name): Ditto.
3638 (sdc_mask_op4): Ditto.
3639 (sdc_mask_op5): Ditto.
3640 (sdc_mask_mode512bit_condition): Ditto.
3642 (round_maskc_operand3): Ditto.
3643 (round_sdc_mask_operand4): Ditto.
3644 (round_maskc_op3): Ditto.
3645 (round_sdc_mask_op4): Ditto.
3646 (round_saeonly_sdc_mask_operand5): Ditto.
3647 * config/i386/sse.md (unspec): Add complex fma unspecs.
3648 (avx512fmaskcmode): New.
3649 (UNSPEC_COMPLEX_F_C_MA): Ditto.
3650 (UNSPEC_COMPLEX_F_C_MUL): Ditto.
3651 (complexopname): Ditto.
3652 (<avx512>_fmaddc_<mode>_maskz<round_expand_name>): New expander.
3653 (<avx512>_fcmaddc_<mode>_maskz<round_expand_name>): Ditto.
3654 (fma_<complexopname>_<mode><sdc_maskz_name><round_name>): New
3656 (<avx512>_<complexopname>_<mode>_mask<round_name>): Ditto.
3657 (<avx512>_<complexopname>_<mode><maskc_name><round_name>): Ditto.
3659 2021-09-22 Kewen Lin <linkw@linux.ibm.com>
3661 * config/rs6000/rs6000.opt (rs6000-density-pct-threshold,
3662 rs6000-density-size-threshold, rs6000-density-penalty,
3663 rs6000-density-load-pct-threshold,
3664 rs6000-density-load-num-threshold): New parameter.
3665 * config/rs6000/rs6000.c (rs6000_density_test): Adjust with
3666 corresponding parameters.
3668 2021-09-21 Aldy Hernandez <aldyh@redhat.com>
3670 * gimple-range-path.cc (path_range_query::defined_outside_path):
3672 (path_range_query::range_on_path_entry): New.
3673 (path_range_query::internal_range_of_expr): Resolve unknowns
3675 (path_range_query::improve_range_with_equivs): New.
3676 (path_range_query::ssa_range_in_phi): Resolve unknowns with
3678 * gimple-range-path.h (class path_range_query): Add
3679 defined_outside_path, range_on_path_entry, and
3680 improve_range_with_equivs.
3682 2021-09-21 Aldy Hernandez <aldyh@redhat.com>
3684 * gimple-range-path.cc (path_range_query::add_to_imports): New.
3685 (path_range_query::add_copies_to_imports): New.
3686 (path_range_query::precompute_ranges): Call
3687 add_copies_to_imports.
3688 * gimple-range-path.h (class path_range_query): Add prototypes
3689 for add_copies_to_imports and add_to_imports.
3691 2021-09-21 Aldy Hernandez <aldyh@redhat.com>
3693 * gimple-range-path.cc (path_range_query::range_defined_in_block):
3694 Remove useless code.
3696 2021-09-21 Aldy Hernandez <aldyh@redhat.com>
3698 * gimple-range-fold.h (class fur_source): Make oracle protected.
3699 * gimple-range-path.cc (path_range_query::path_range_query): Add
3700 resolve argument. Initialize oracle.
3701 (path_range_query::~path_range_query): Delete oracle.
3702 (path_range_query::range_of_stmt): Adapt to use relations.
3703 (path_range_query::precompute_ranges): Pre-compute relations.
3704 (class jt_fur_source): New
3705 (jt_fur_source::jt_fur_source): New.
3706 (jt_fur_source::register_relation): New.
3707 (jt_fur_source::query_relation): New.
3708 (path_range_query::precompute_relations): New.
3709 (path_range_query::precompute_phi_relations): New.
3710 * gimple-range-path.h (path_range_query): Add resolve argument.
3711 Add oracle, precompute_relations, precompute_phi_relations.
3712 * tree-ssa-threadbackward.c (back_threader::back_threader): Pass
3713 resolve argument to solver.
3715 2021-09-21 Aldy Hernandez <aldyh@redhat.com>
3717 * gimple-range-fold.cc (fold_using_range::range_of_range_op):
3718 Rename postfold_gcond_edges to register_outgoing_edges and
3720 (fold_using_range::postfold_gcond_edges): Rename...
3721 (fur_source::register_outgoing_edges): ...to this.
3722 * gimple-range-fold.h (postfold_gcond_edges): Rename to
3723 register_outgoing_edges and move to fur_source.
3725 2021-09-21 Aldy Hernandez <aldyh@redhat.com>
3727 * gimple-range-fold.cc (fold_using_range::range_of_phi): Check
3728 dom_info_available_p.
3730 2021-09-21 Aldy Hernandez <aldyh@redhat.com>
3732 * gimple-range-cache.cc (non_null_ref::non_null_ref): Use create
3733 and quick_grow_cleared instead of safe_grow_cleared.
3735 2021-09-21 Thomas Schwinge <thomas@codesourcery.com>
3738 * omp-oacc-neuter-broadcast.cc (oacc_do_neutering): Evaluate
3741 2021-09-21 Richard Earnshaw <rearnsha@arm.com>
3743 * configure.ac: Detect when the assembler supports new-style
3744 architecture extensions.
3745 * common/config/arm/arm-common.c (arm_rewrite_mcpu): Return
3746 the full CPU string if the assembler can grok it.
3747 (arm_rewrite_march): Likewise but for the architecture.
3748 * config.in: Regenerate.
3749 * configure: Regenerate.
3751 2021-09-21 Richard Biener <rguenther@suse.de>
3753 PR tree-optimization/102421
3754 * tree-vect-loop.c (vect_dissolve_slp_only_groups): Copy and
3755 adjust alignment info.
3757 2021-09-21 Kewen Lin <linkw@linux.ibm.com>
3759 * ipa-fnsummary.c (ipa_fn_summary_write): Remove inconsistent
3760 bitfield stream out.
3762 2021-09-20 Andrew MacLeod <amacleod@redhat.com>
3764 * gimple-range-fold.cc (fold_using_range::range_of_phi): Ignore
3765 undefined edges, apply an equivalence if appropriate.
3766 * gimple-range-gori.cc (gori_compute::outgoing_edge_range_p): Return
3767 UNDEFINED if EDGE_EXECUTABLE is not set.
3768 * gimple-range.cc (gimple_ranger::gimple_ranger): Set all edges
3769 as EXECUTABLE upon startup.
3770 (gimple_ranger::range_on_edge): Return UNDEFINED for edges without
3771 EDGE_EXECUTABLE set.
3772 * vr-values.c (set_and_propagate_unexecutable): New.
3773 (simplify_using_ranges::fold_cond): Call set_and_propagate.
3774 (simplify_using_ranges::simplify_switch_using_ranges): Ditto.
3775 * vr-values.h: Add prototype.
3777 2021-09-20 Andrew MacLeod <amacleod@redhat.com>
3779 * value-relation.cc (equiv_oracle::register_initial_def): New.
3780 (equiv_oracle::register_relation): Call register_initial_def.
3781 (equiv_oracle::add_equiv_to_block): New. Split register_relation.
3782 (relation_oracle::register_stmt): Check def block of PHI arguments.
3783 * value-relation.h (equiv_oracle): Add new prototypes.
3785 2021-09-20 Matthias Kretz <m.kretz@gsi.de>
3787 * cppbuiltin.c (define_builtin_macros_for_compilation_flags):
3788 Define __RECIPROCAL_MATH__, __NO_SIGNED_ZEROS__,
3789 __NO_TRAPPING_MATH__, __ASSOCIATIVE_MATH__, and
3790 __ROUNDING_MATH__ according to their corresponding flags.
3791 * doc/cpp.texi: Document __RECIPROCAL_MATH__,
3792 __NO_SIGNED_ZEROS__, __NO_TRAPPING_MATH__, __ASSOCIATIVE_MATH__,
3793 and __ROUNDING_MATH__.
3795 2021-09-20 Richard Biener <rguenther@suse.de>
3797 * tree-vect-stmts.c (vectorizable_load): Use the vectype
3800 2021-09-20 Richard Biener <rguenther@suse.de>
3802 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info):
3803 Do not compute alignment of the vectorized access here.
3805 2021-09-20 Richard Biener <rguenther@suse.de>
3807 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
3808 Store -1 for runtime alias peeling iterations.
3810 2021-09-20 Richard Biener <rguenther@suse.de>
3812 * config.gcc: Obsolete hppa[12]*-*-hpux10* and hppa[12]*-*-hpux11*.
3814 2021-09-20 Thomas Schwinge <thomas@codesourcery.com>
3816 * input.c (string_concat_db::record_string_concatenation)
3817 (string_concat_db::get_string_concatenation): Skip for
3818 'RESERVED_LOCATION_P'.
3820 2021-09-20 Richard Biener <rguenther@suse.de>
3822 PR tree-optimization/65206
3823 * tree-data-ref.h (struct data_reference): Add alt_indices,
3825 * tree-data-ref.c (free_data_ref): Release alt_indices.
3826 (dr_analyze_indices): Work on struct indices and get DR_REF as tree.
3827 (create_data_ref): Adjust.
3828 (initialize_data_dependence_relation): Split into head
3829 and tail. When the base objects fail to match up try
3830 again with pointer-based analysis of indices.
3831 * tree-vectorizer.c (vec_info_shared::check_datarefs): Do
3832 not compare the lazily computed alternate set of indices.
3834 2021-09-20 Iain Sandoe <iain@sandoe.co.uk>
3836 * gcc.c: Test for execute OK when we find the
3837 programs for assembler linker and dsymutil and those
3838 were specified at configure-time.
3840 2021-09-19 Martin Sebor <msebor@redhat.com>
3842 PR middle-end/102403
3843 * gimple-predicate-analysis.cc (predicate::init_from_control_deps):
3844 Correct a function pre/postcondition.
3846 2021-09-19 Martin Sebor <msebor@redhat.com>
3848 PR middle-end/102243
3849 * tree-ssa-strlen.c (get_range): Handle null cfun.
3851 2021-09-19 Iain Sandoe <iain@sandoe.co.uk>
3853 * config/darwin.h (LINK_COMMAND_SPEC_A): Use Darwin10
3854 unwinder shim as a convenience library.
3856 2021-09-19 Andrew Pinski <apinski@marvell.com>
3858 * doc/install.texi: Add note about
3859 binutils 2.35 is required for LTO usage.
3861 2021-09-19 Aldy Hernandez <aldyh@redhat.com>
3863 * tree-ssa-threadbackward.c
3864 (back_threader_registry::register_path): Use push_edge.
3865 * tree-ssa-threadedge.c
3866 (jump_threader::thread_around_empty_blocks): Same.
3867 (jump_threader::thread_through_normal_block): Same.
3868 (jump_threader::thread_across_edge): Same. Also, use auto_bitmap.
3870 * tree-ssa-threadupdate.c
3871 (jt_path_registry::allocate_thread_edge): Remove.
3872 (jt_path_registry::push_edge): New.
3873 (dump_jump_thread_path): Make static.
3874 * tree-ssa-threadupdate.h (allocate_thread_edge): Remove.
3877 2021-09-19 Aldy Hernandez <aldyh@redhat.com>
3879 * gimple-range-path.cc (path_range_query::path_range_query): Add
3881 (path_range_query::dump): Remove extern declaration of dump_ranger.
3882 * gimple-range-trace.cc (dump_ranger): Add DEBUG_FUNCTION marker.
3883 * gimple-range-trace.h (dump_ranger): Add prototype.
3885 2021-09-19 John Ericson <git@JohnEricson.me>
3887 * gcc.c (find_a_program): New function, factored out of...
3888 (find_a_file): Here.
3889 (execute): Use find_a_program when looking for programs rather
3892 2021-09-19 Matwey V. Kornilov <matwey.kornilov@gmail.com>
3894 * config/avr/avr-mcus.def: Add atmega324pb.
3895 * doc/avr-mmcu.texi: Corresponding changes.
3897 2021-09-19 Roger Sayle <roger@nextmovesoftware.com>
3900 * match.pd (cmp @0 REAL_CST@1): When @0 is also REAL_CST, apply
3901 the same transformations as to @1. For comparisons against NaN,
3902 don't check HONOR_SNANS but confirm that neither operand is a
3905 2021-09-19 Benjamin Peterson <benjamin@locrian.net>
3907 * attribs.c (make_unique_name): Delete.
3908 * attribs.h (make_unique_name): Delete.
3910 2021-09-19 Andrew Pinski <apinski@marvell.com>
3912 * lra-constraints.c (check_and_process_move): Assert
3913 that dclass and sclass are greater than or equal to NO_REGS.
3915 2021-09-18 Jakub Jelinek <jakub@redhat.com>
3917 * tree.h (OMP_CLAUSE_ORDER_UNCONSTRAINED): Define.
3918 * tree-pretty-print.c (dump_omp_clause): Print unconstrained:
3919 for OMP_CLAUSE_ORDER_UNCONSTRAINED.
3921 2021-09-18 liuhongt <hongtao.liu@intel.com>
3923 * config/i386/i386-features.c (remove_partial_avx_dependency):
3924 Restrict TARGET_USE_VECTOR_FP_CONVERTS and
3925 TARGET_USE_VECTOR_CONVERTS to conversion instructions only.
3927 2021-09-18 Jakub Jelinek <jakub@redhat.com>
3929 * gimplify.c (omp_default_clause): For C/C++ default({,first}private),
3930 if file/namespace scope variable doesn't have predetermined sharing,
3931 treat it as if there was default(none).
3933 2021-09-18 liuhongt <hongtao.liu@intel.com>
3935 * config/i386/avx512fp16intrin.h (_mm_fmadd_sh):
3937 (_mm_mask_fmadd_sh): Likewise.
3938 (_mm_mask3_fmadd_sh): Likewise.
3939 (_mm_maskz_fmadd_sh): Likewise.
3940 (_mm_fmadd_round_sh): Likewise.
3941 (_mm_mask_fmadd_round_sh): Likewise.
3942 (_mm_mask3_fmadd_round_sh): Likewise.
3943 (_mm_maskz_fmadd_round_sh): Likewise.
3944 (_mm_fnmadd_sh): Likewise.
3945 (_mm_mask_fnmadd_sh): Likewise.
3946 (_mm_mask3_fnmadd_sh): Likewise.
3947 (_mm_maskz_fnmadd_sh): Likewise.
3948 (_mm_fnmadd_round_sh): Likewise.
3949 (_mm_mask_fnmadd_round_sh): Likewise.
3950 (_mm_mask3_fnmadd_round_sh): Likewise.
3951 (_mm_maskz_fnmadd_round_sh): Likewise.
3952 (_mm_fmsub_sh): Likewise.
3953 (_mm_mask_fmsub_sh): Likewise.
3954 (_mm_mask3_fmsub_sh): Likewise.
3955 (_mm_maskz_fmsub_sh): Likewise.
3956 (_mm_fmsub_round_sh): Likewise.
3957 (_mm_mask_fmsub_round_sh): Likewise.
3958 (_mm_mask3_fmsub_round_sh): Likewise.
3959 (_mm_maskz_fmsub_round_sh): Likewise.
3960 (_mm_fnmsub_sh): Likewise.
3961 (_mm_mask_fnmsub_sh): Likewise.
3962 (_mm_mask3_fnmsub_sh): Likewise.
3963 (_mm_maskz_fnmsub_sh): Likewise.
3964 (_mm_fnmsub_round_sh): Likewise.
3965 (_mm_mask_fnmsub_round_sh): Likewise.
3966 (_mm_mask3_fnmsub_round_sh): Likewise.
3967 (_mm_maskz_fnmsub_round_sh): Likewise.
3968 * config/i386/i386-builtin-types.def
3969 (V8HF_FTYPE_V8HF_V8HF_V8HF_UQI_INT): New builtin type.
3970 * config/i386/i386-builtin.def: Add new builtins.
3971 * config/i386/i386-expand.c: Handle new builtin type.
3972 * config/i386/sse.md (fmai_vmfmadd_<mode><round_name>):
3973 Ajdust to support FP16.
3974 (fmai_vmfmsub_<mode><round_name>): Ditto.
3975 (fmai_vmfnmadd_<mode><round_name>): Ditto.
3976 (fmai_vmfnmsub_<mode><round_name>): Ditto.
3977 (*fmai_fmadd_<mode>): Ditto.
3978 (*fmai_fmsub_<mode>): Ditto.
3979 (*fmai_fnmadd_<mode><round_name>): Ditto.
3980 (*fmai_fnmsub_<mode><round_name>): Ditto.
3981 (avx512f_vmfmadd_<mode>_mask<round_name>): Ditto.
3982 (avx512f_vmfmadd_<mode>_mask3<round_name>): Ditto.
3983 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): Ditto.
3984 (avx512f_vmfmadd_<mode>_maskz_1<round_name>): Ditto.
3985 (*avx512f_vmfmsub_<mode>_mask<round_name>): Ditto.
3986 (avx512f_vmfmsub_<mode>_mask3<round_name>): Ditto.
3987 (*avx512f_vmfmsub_<mode>_maskz_1<round_name>): Ditto.
3988 (*avx512f_vmfnmsub_<mode>_mask<round_name>): Ditto.
3989 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): Ditto.
3990 (*avx512f_vmfnmsub_<mode>_mask<round_name>): Ditto.
3991 (*avx512f_vmfnmadd_<mode>_mask<round_name>): Renamed to ...
3992 (avx512f_vmfnmadd_<mode>_mask<round_name>) ... this, and
3993 adjust to support FP16.
3994 (avx512f_vmfnmadd_<mode>_mask3<round_name>): Ditto.
3995 (avx512f_vmfnmadd_<mode>_maskz_1<round_name>): Ditto.
3996 (avx512f_vmfnmadd_<mode>_maskz<round_expand_name>): New
3999 2021-09-18 H.J. Lu <hjl.tools@gmail.com>
4001 * config/i386/sse.md (avx512fmaskmodelower): Extend to support
4003 (maskload<mode><avx512fmaskmodelower>): Ditto.
4004 (maskstore<mode><avx512fmaskmodelower>): Ditto.
4006 2021-09-18 H.J. Lu <hjl.tools@gmail.com>
4008 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
4010 (ix86_expand_copysign): Ditto.
4011 (ix86_expand_xorsign): Ditto.
4012 * config/i386/i386.c (ix86_build_const_vector): Handle HF vector
4014 (ix86_build_signbit_mask): Ditto.
4015 (ix86_can_change_mode_class): Ditto.
4016 * config/i386/i386.md
4017 (SSEMODEF): Add HFmode.
4018 (ssevecmodef): Ditto.
4019 (<code>hf2): New define_expand.
4020 (*<code>hf2_1): New define_insn_and_split.
4021 (copysign<mode>): Extend to support HFmode under AVX512FP16.
4022 (xorsign<mode>): Ditto.
4023 * config/i386/sse.md (VFB): New mode iterator.
4024 (VFB_128_256): Ditto.
4026 (sseintvecmode2): Support HF vector mode.
4027 (<code><mode>2): Use new mode iterator.
4028 (*<code><mode>2): Ditto.
4029 (copysign<mode>3): Ditto.
4030 (xorsign<mode>3): Ditto.
4031 (<code><mode>3<mask_name>): Ditto.
4032 (<code><mode>3<mask_name>): Ditto.
4033 (<sse>_andnot<mode>3<mask_name>): Adjust for HF vector mode.
4034 (<sse>_andnot<mode>3<mask_name>): Ditto.
4035 (*<code><mode>3<mask_name>): Ditto.
4036 (*<code><mode>3<mask_name>): Ditto.
4038 2021-09-18 liuhongt <hongtao.liu@intel.com>
4040 * config/i386/avx512fp16intrin.h (_mm512_mask_fmadd_ph):
4042 (_mm512_mask3_fmadd_ph): Likewise.
4043 (_mm512_maskz_fmadd_ph): Likewise.
4044 (_mm512_fmadd_round_ph): Likewise.
4045 (_mm512_mask_fmadd_round_ph): Likewise.
4046 (_mm512_mask3_fmadd_round_ph): Likewise.
4047 (_mm512_maskz_fmadd_round_ph): Likewise.
4048 (_mm512_fnmadd_ph): Likewise.
4049 (_mm512_mask_fnmadd_ph): Likewise.
4050 (_mm512_mask3_fnmadd_ph): Likewise.
4051 (_mm512_maskz_fnmadd_ph): Likewise.
4052 (_mm512_fnmadd_round_ph): Likewise.
4053 (_mm512_mask_fnmadd_round_ph): Likewise.
4054 (_mm512_mask3_fnmadd_round_ph): Likewise.
4055 (_mm512_maskz_fnmadd_round_ph): Likewise.
4056 (_mm512_fmsub_ph): Likewise.
4057 (_mm512_mask_fmsub_ph): Likewise.
4058 (_mm512_mask3_fmsub_ph): Likewise.
4059 (_mm512_maskz_fmsub_ph): Likewise.
4060 (_mm512_fmsub_round_ph): Likewise.
4061 (_mm512_mask_fmsub_round_ph): Likewise.
4062 (_mm512_mask3_fmsub_round_ph): Likewise.
4063 (_mm512_maskz_fmsub_round_ph): Likewise.
4064 (_mm512_fnmsub_ph): Likewise.
4065 (_mm512_mask_fnmsub_ph): Likewise.
4066 (_mm512_mask3_fnmsub_ph): Likewise.
4067 (_mm512_maskz_fnmsub_ph): Likewise.
4068 (_mm512_fnmsub_round_ph): Likewise.
4069 (_mm512_mask_fnmsub_round_ph): Likewise.
4070 (_mm512_mask3_fnmsub_round_ph): Likewise.
4071 (_mm512_maskz_fnmsub_round_ph): Likewise.
4072 * config/i386/avx512fp16vlintrin.h (_mm256_fmadd_ph):
4074 (_mm256_mask_fmadd_ph): Likewise.
4075 (_mm256_mask3_fmadd_ph): Likewise.
4076 (_mm256_maskz_fmadd_ph): Likewise.
4077 (_mm_fmadd_ph): Likewise.
4078 (_mm_mask_fmadd_ph): Likewise.
4079 (_mm_mask3_fmadd_ph): Likewise.
4080 (_mm_maskz_fmadd_ph): Likewise.
4081 (_mm256_fnmadd_ph): Likewise.
4082 (_mm256_mask_fnmadd_ph): Likewise.
4083 (_mm256_mask3_fnmadd_ph): Likewise.
4084 (_mm256_maskz_fnmadd_ph): Likewise.
4085 (_mm_fnmadd_ph): Likewise.
4086 (_mm_mask_fnmadd_ph): Likewise.
4087 (_mm_mask3_fnmadd_ph): Likewise.
4088 (_mm_maskz_fnmadd_ph): Likewise.
4089 (_mm256_fmsub_ph): Likewise.
4090 (_mm256_mask_fmsub_ph): Likewise.
4091 (_mm256_mask3_fmsub_ph): Likewise.
4092 (_mm256_maskz_fmsub_ph): Likewise.
4093 (_mm_fmsub_ph): Likewise.
4094 (_mm_mask_fmsub_ph): Likewise.
4095 (_mm_mask3_fmsub_ph): Likewise.
4096 (_mm_maskz_fmsub_ph): Likewise.
4097 (_mm256_fnmsub_ph): Likewise.
4098 (_mm256_mask_fnmsub_ph): Likewise.
4099 (_mm256_mask3_fnmsub_ph): Likewise.
4100 (_mm256_maskz_fnmsub_ph): Likewise.
4101 (_mm_fnmsub_ph): Likewise.
4102 (_mm_mask_fnmsub_ph): Likewise.
4103 (_mm_mask3_fnmsub_ph): Likewise.
4104 (_mm_maskz_fnmsub_ph): Likewise.
4105 * config/i386/i386-builtin.def: Add corresponding new builtins.
4106 * config/i386/sse.md
4107 (<avx512>_fmadd_<mode>_maskz<round_expand_name>): Adjust to
4108 support HF vector modes.
4109 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
4111 (*<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name>_bcst_1): Ditto.
4112 (*<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name>_bcst_2): Ditto.
4113 (*<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name>_bcst_3): Ditto.
4114 (<avx512>_fmadd_<mode>_mask<round_name>): Ditto.
4115 (<avx512>_fmadd_<mode>_mask3<round_name>): Ditto.
4116 (<avx512>_fmsub_<mode>_maskz<round_expand_name>): Ditto.
4117 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>):
4119 (*<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name>_bcst_1): Ditto.
4120 (*<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name>_bcst_2): Ditto.
4121 (*<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name>_bcst_3): Ditto.
4122 (<avx512>_fmsub_<mode>_mask<round_name>): Ditto.
4123 (<avx512>_fmsub_<mode>_mask3<round_name>): Ditto.
4124 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>):
4126 (*<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name>_bcst_1): Ditto.
4127 (*<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name>_bcst_2): Ditto.
4128 (*<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name>_bcst_3): Ditto.
4129 (<avx512>_fnmadd_<mode>_mask<round_name>): Ditto.
4130 (<avx512>_fnmadd_<mode>_mask3<round_name>): Ditto.
4131 (<avx512>_fnmsub_<mode>_maskz<round_expand_name>): Ditto.
4132 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>):
4134 (*<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name>_bcst_1): Ditto.
4135 (*<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name>_bcst_2): Ditto.
4136 (*<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name>_bcst_3): Ditto.
4137 (<avx512>_fnmsub_<mode>_mask<round_name>): Ditto.
4138 (<avx512>_fnmsub_<mode>_mask3<round_name>): Ditto.
4140 2021-09-18 liuhongt <hongtao.liu@intel.com>
4142 * config/i386/avx512fp16intrin.h (_mm512_fmaddsub_ph):
4144 (_mm512_mask_fmaddsub_ph): Likewise.
4145 (_mm512_mask3_fmaddsub_ph): Likewise.
4146 (_mm512_maskz_fmaddsub_ph): Likewise.
4147 (_mm512_fmaddsub_round_ph): Likewise.
4148 (_mm512_mask_fmaddsub_round_ph): Likewise.
4149 (_mm512_mask3_fmaddsub_round_ph): Likewise.
4150 (_mm512_maskz_fmaddsub_round_ph): Likewise.
4151 (_mm512_mask_fmsubadd_ph): Likewise.
4152 (_mm512_mask3_fmsubadd_ph): Likewise.
4153 (_mm512_maskz_fmsubadd_ph): Likewise.
4154 (_mm512_fmsubadd_round_ph): Likewise.
4155 (_mm512_mask_fmsubadd_round_ph): Likewise.
4156 (_mm512_mask3_fmsubadd_round_ph): Likewise.
4157 (_mm512_maskz_fmsubadd_round_ph): Likewise.
4158 * config/i386/avx512fp16vlintrin.h (_mm256_fmaddsub_ph):
4160 (_mm256_mask_fmaddsub_ph): Likewise.
4161 (_mm256_mask3_fmaddsub_ph): Likewise.
4162 (_mm256_maskz_fmaddsub_ph): Likewise.
4163 (_mm_fmaddsub_ph): Likewise.
4164 (_mm_mask_fmaddsub_ph): Likewise.
4165 (_mm_mask3_fmaddsub_ph): Likewise.
4166 (_mm_maskz_fmaddsub_ph): Likewise.
4167 (_mm256_fmsubadd_ph): Likewise.
4168 (_mm256_mask_fmsubadd_ph): Likewise.
4169 (_mm256_mask3_fmsubadd_ph): Likewise.
4170 (_mm256_maskz_fmsubadd_ph): Likewise.
4171 (_mm_fmsubadd_ph): Likewise.
4172 (_mm_mask_fmsubadd_ph): Likewise.
4173 (_mm_mask3_fmsubadd_ph): Likewise.
4174 (_mm_maskz_fmsubadd_ph): Likewise.
4175 * config/i386/i386-builtin.def: Add corresponding new builtins.
4176 * config/i386/sse.md (VFH_SF_AVX512VL): New mode iterator.
4177 * (<avx512>_fmsubadd_<mode>_maskz<round_expand_name>): New expander.
4178 * (<avx512>_fmaddsub_<mode>_maskz<round_expand_name>): Use
4180 * (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
4182 * (<avx512>_fmaddsub_<mode>_mask<round_name>): Ditto.
4183 * (<avx512>_fmaddsub_<mode>_mask3<round_name>): Ditto.
4184 * (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
4186 * (<avx512>_fmsubadd_<mode>_mask<round_name>): Ditto.
4187 * (<avx512>_fmsubadd_<mode>_mask3<round_name>): Ditto.
4189 2021-09-18 liuhongt <hongtao.liu@intel.com>
4192 * config/i386/i386.c (ix86_print_operand): Handle
4193 V8HF/V16HF/V32HFmode.
4194 * config/i386/i386.h (VALID_BCST_MODE_P): Add HFmode.
4195 * config/i386/sse.md (avx512bcst): Remove.
4197 2021-09-17 Martin Sebor <msebor@redhat.com>
4199 * Makefile.in (OBJS): Add gimple-predicate-analysis.o.
4200 * tree-ssa-uninit.c (max_phi_args): Move to gimple-predicate-analysis.
4201 (MASK_SET_BIT, MASK_TEST_BIT, MASK_EMPTY): Same.
4202 (check_defs): Add comment.
4203 (can_skip_redundant_opnd): Update comment.
4204 (compute_uninit_opnds_pos): Adjust to namespace change.
4205 (find_pdom): Move to gimple-predicate-analysis.cc.
4207 (struct uninit_undef_val_t): New.
4208 (is_non_loop_exit_postdominating): Move to gimple-predicate-analysis.cc.
4209 (find_control_equiv_block): Same.
4210 (MAX_NUM_CHAINS, MAX_CHAIN_LEN, MAX_POSTDOM_CHECK): Same.
4211 (MAX_SWITCH_CASES): Same.
4212 (compute_control_dep_chain): Same.
4213 (find_uninit_use): Use predicate analyzer.
4214 (struct pred_info): Move to gimple-predicate-analysis.
4215 (convert_control_dep_chain_into_preds): Same.
4216 (find_predicates): Same.
4217 (collect_phi_def_edges): Same.
4218 (warn_uninitialized_phi): Use predicate analyzer.
4219 (find_def_preds): Move to gimple-predicate-analysis.
4220 (dump_pred_info): Same.
4221 (dump_pred_chain): Same.
4222 (dump_predicates): Same.
4223 (destroy_predicate_vecs): Remove.
4224 (execute_late_warn_uninitialized): New.
4225 (get_cmp_code): Move to gimple-predicate-analysis.
4226 (is_value_included_in): Same.
4227 (value_sat_pred_p): Same.
4228 (find_matching_predicate_in_rest_chains): Same.
4229 (is_use_properly_guarded): Same.
4230 (prune_uninit_phi_opnds): Same.
4231 (find_var_cmp_const): Same.
4232 (use_pred_not_overlap_with_undef_path_pred): Same.
4233 (pred_equal_p): Same.
4234 (is_neq_relop_p): Same.
4235 (is_neq_zero_form_p): Same.
4236 (pred_expr_equal_p): Same.
4237 (is_pred_expr_subset_of): Same.
4238 (is_pred_chain_subset_of): Same.
4239 (is_included_in): Same.
4240 (is_superset_of): Same.
4242 (simplify_pred): Same.
4243 (simplify_preds_2): Same.
4244 (simplify_preds_3): Same.
4245 (simplify_preds_4): Same.
4246 (simplify_preds): Same.
4248 (push_to_worklist): Same.
4249 (get_pred_info_from_cmp): Same.
4250 (is_degenerated_phi): Same.
4251 (normalize_one_pred_1): Same.
4252 (normalize_one_pred): Same.
4253 (normalize_one_pred_chain): Same.
4254 (normalize_preds): Same.
4255 (can_one_predicate_be_invalidated_p): Same.
4256 (can_chain_union_be_invalidated_p): Same.
4257 (uninit_uses_cannot_happen): Same.
4258 (pass_late_warn_uninitialized::execute): Define.
4259 * gimple-predicate-analysis.cc: New file.
4260 * gimple-predicate-analysis.h: New file.
4262 2021-09-17 Julian Brown <julian@codesourcery.com>
4264 * config/gcn/gcn.c (gimple.h): Include.
4265 (gcn_fork_join): Emit barrier for worker-level joins.
4266 * omp-oacc-neuter-broadcast.cc (find_local_vars_to_propagate): Add
4267 writes_gang_private bitmap parameter. Set bit for blocks
4268 containing gang-private variable writes.
4269 (worker_single_simple): Don't emit barrier after predicated block.
4270 (worker_single_copy): Don't emit barrier if we're not broadcasting
4271 anything and the block contains no gang-private writes.
4272 (neuter_worker_single): Don't predicate blocks that only contain
4273 NOPs or internal marker functions. Pass has_gang_private_write
4274 argument to worker_single_copy.
4275 (oacc_do_neutering): Add writes_gang_private bitmap handling.
4277 2021-09-17 Julian Brown <julian@codesourcery.com>
4279 * config/gcn/gcn-protos.h
4280 (gcn_goacc_create_worker_broadcast_record): Update prototype.
4281 * config/gcn/gcn-tree.c (gcn_goacc_get_worker_red_decl): Use
4282 preallocated block of LDS memory. Do not cache/share decls for
4283 reduction temporaries between invocations.
4284 (gcn_goacc_reduction_teardown): Unshare VAR on second use.
4285 (gcn_goacc_create_worker_broadcast_record): Add OFFSET parameter
4286 and return temporary LDS space at that offset. Return pointer in
4288 * config/gcn/gcn.c (acc_lds_size, gang_private_hwm, lds_allocs):
4290 (ACC_LDS_SIZE): Define as acc_lds_size.
4291 (gcn_init_machine_status): Don't initialise lds_allocated,
4292 lds_allocs, reduc_decls fields of machine function struct.
4293 (gcn_option_override): Handle default size for gang-private
4294 variables and -mgang-private-size option.
4295 (gcn_expand_prologue): Use LDS_SIZE instead of LDS_SIZE-1 when
4296 initialising M0_REG.
4297 (gcn_shared_mem_layout): New function.
4298 (gcn_print_lds_decl): Update comment. Use global lds_allocs map and
4299 gang_private_hwm variable.
4300 (TARGET_GOACC_SHARED_MEM_LAYOUT): Define target hook.
4301 * config/gcn/gcn.h (machine_function): Remove lds_allocated,
4302 lds_allocs, reduc_decls. Add reduction_base, reduction_limit.
4303 * config/gcn/gcn.opt (gang_private_size_opt): New global.
4304 (mgang-private-size=): New option.
4305 * doc/tm.texi.in (TARGET_GOACC_SHARED_MEM_LAYOUT): Place
4307 * doc/tm.texi: Regenerate.
4308 * omp-oacc-neuter-broadcast.cc (targhooks.h, diagnostic-core.h):
4310 (build_sender_ref): Handle sender_decl being pointer.
4311 (worker_single_copy): Add PLACEMENT and ISOLATE_BROADCASTS
4312 parameters. Pass placement argument to
4313 create_worker_broadcast_record hook invocations. Handle
4314 sender_decl being pointer and isolate_broadcasts inserting extra
4316 (blk_offset_map_t): Add typedef.
4317 (neuter_worker_single): Add BLK_OFFSET_MAP parameter. Pass
4318 preallocated range to worker_single_copy call.
4319 (dfs_broadcast_reachable_1): New function.
4320 (idx_decl_pair_t, used_range_vec_t): New typedefs.
4321 (sort_size_descending): New function.
4322 (addr_range): New class.
4323 (splay_tree_compare_addr_range, splay_tree_free_key)
4324 (first_fit_range, merge_ranges_1, merge_ranges): New functions.
4325 (execute_omp_oacc_neuter_broadcast): Rename to...
4326 (oacc_do_neutering): ... this. Add BOUNDS_LO, BOUNDS_HI
4327 parameters. Arrange layout of shared memory for broadcast
4329 (execute_omp_oacc_neuter_broadcast): New function.
4330 (pass_omp_oacc_neuter_broadcast::gate): Remove num_workers==1
4331 handling from here. Enable pass for all OpenACC routines in order
4332 to call shared memory-layout hook.
4333 * target.def (create_worker_broadcast_record): Add OFFSET
4335 (shared_mem_layout): New hook.
4337 2021-09-17 Julian Brown <julian@codesourcery.com>
4338 Thomas Schwinge <thomas@codesourcery.com>
4340 * omp-oacc-neuter-broadcast.cc
4341 (pass_omp_oacc_neuter_broadcast::gate): Disable if num_workers is
4343 (execute_omp_oacc_neuter_broadcast): Adjust.
4345 2021-09-17 Andrew MacLeod <amacleod@redhat.com>
4347 * value-relation.cc (class equiv_chain): Move to header file.
4348 (path_oracle::path_oracle): New.
4349 (path_oracle::~path_oracle): New.
4350 (path_oracle::register_relation): New.
4351 (path_oracle::query_relation): New.
4352 (path_oracle::reset_path): New.
4353 (path_oracle::dump): New.
4354 * value-relation.h (class equiv_chain): Move to here.
4355 (class path_oracle): New.
4357 2021-09-17 Andrew MacLeod <amacleod@redhat.com>
4359 * gimple-range-cache.cc (ranger_cache::ranger_cache): Create a DOM
4361 * gimple-range-fold.cc (fur_depend::register_relation): Use
4362 register_stmt/edge routines.
4363 * value-relation.cc (equiv_chain::find): Relocate from equiv_oracle.
4364 (equiv_oracle::equiv_oracle): Create self equivalence cache.
4365 (equiv_oracle::~equiv_oracle): Release same.
4366 (equiv_oracle::equiv_set): Return entry from self equiv cache if there
4367 are no equivalences.
4368 (equiv_oracle::find_equiv_block): Move list find to equiv_chain.
4369 (equiv_oracle::register_relation): Rename from register_equiv.
4370 (relation_chain_head::find_relation): Relocate from dom_oracle.
4371 (relation_oracle::register_stmt): New.
4372 (relation_oracle::register_edge): New.
4373 (dom_oracle::*): Rename from relation_oracle.
4374 (dom_oracle::register_relation): Adjust to call equiv_oracle.
4375 (dom_oracle::set_one_relation): Split from register_relation.
4376 (dom_oracle::register_transitives): Consolidate 2 methods.
4377 (dom_oracle::find_relation_block): Move core to relation_chain.
4378 (dom_oracle::query_relation): Rename from find_relation_dom and adjust.
4379 * value-relation.h (class relation_oracle): New pure virtual base.
4380 (class equiv_oracle): Inherit from relation_oracle and adjust.
4381 (class dom_oracle): Rename from old relation_oracle and adjust.
4383 2021-09-17 Martin Sebor <msebor@redhat.com>
4385 PR middle-end/102200
4386 * pointer-query.cc (access_ref::inform_access): Handle MIN/MAX_EXPR.
4387 (handle_min_max_size): Change argument. Store original SSA_NAME for
4388 operands to potentially distinct (sub)objects.
4389 (compute_objsize_r): Adjust call to the above.
4391 2021-09-17 Bill Schmidt <wschmidt@linux.ibm.com>
4393 * config/rs6000/rs6000.c (rs6000-builtins.h): New include.
4394 (rs6000_new_builtin_vectorized_function): New function.
4395 (rs6000_new_builtin_md_vectorized_function): Likewise.
4396 (rs6000_builtin_vectorized_function): Call
4397 rs6000_new_builtin_vectorized_function.
4398 (rs6000_builtin_md_vectorized_function): Call
4399 rs6000_new_builtin_md_vectorized_function.
4401 2021-09-17 Bill Schmidt <wschmidt@linux.ibm.com>
4403 * config/rs6000/rs6000-builtin-new.def (ASSEMBLE_ACC): Add mmaint flag.
4404 (ASSEMBLE_PAIR): Likewise.
4405 (BUILD_ACC): Likewise.
4406 (DISASSEMBLE_ACC): Likewise.
4407 (DISASSEMBLE_PAIR): Likewise.
4408 (PMXVBF16GER2): Likewise.
4409 (PMXVBF16GER2NN): Likewise.
4410 (PMXVBF16GER2NP): Likewise.
4411 (PMXVBF16GER2PN): Likewise.
4412 (PMXVBF16GER2PP): Likewise.
4413 (PMXVF16GER2): Likewise.
4414 (PMXVF16GER2NN): Likewise.
4415 (PMXVF16GER2NP): Likewise.
4416 (PMXVF16GER2PN): Likewise.
4417 (PMXVF16GER2PP): Likewise.
4418 (PMXVF32GER): Likewise.
4419 (PMXVF32GERNN): Likewise.
4420 (PMXVF32GERNP): Likewise.
4421 (PMXVF32GERPN): Likewise.
4422 (PMXVF32GERPP): Likewise.
4423 (PMXVF64GER): Likewise.
4424 (PMXVF64GERNN): Likewise.
4425 (PMXVF64GERNP): Likewise.
4426 (PMXVF64GERPN): Likewise.
4427 (PMXVF64GERPP): Likewise.
4428 (PMXVI16GER2): Likewise.
4429 (PMXVI16GER2PP): Likewise.
4430 (PMXVI16GER2S): Likewise.
4431 (PMXVI16GER2SPP): Likewise.
4432 (PMXVI4GER8): Likewise.
4433 (PMXVI4GER8PP): Likewise.
4434 (PMXVI8GER4): Likewise.
4435 (PMXVI8GER4PP): Likewise.
4436 (PMXVI8GER4SPP): Likewise.
4437 (XVBF16GER2): Likewise.
4438 (XVBF16GER2NN): Likewise.
4439 (XVBF16GER2NP): Likewise.
4440 (XVBF16GER2PN): Likewise.
4441 (XVBF16GER2PP): Likewise.
4442 (XVF16GER2): Likewise.
4443 (XVF16GER2NN): Likewise.
4444 (XVF16GER2NP): Likewise.
4445 (XVF16GER2PN): Likewise.
4446 (XVF16GER2PP): Likewise.
4447 (XVF32GER): Likewise.
4448 (XVF32GERNN): Likewise.
4449 (XVF32GERNP): Likewise.
4450 (XVF32GERPN): Likewise.
4451 (XVF32GERPP): Likewise.
4452 (XVF64GER): Likewise.
4453 (XVF64GERNN): Likewise.
4454 (XVF64GERNP): Likewise.
4455 (XVF64GERPN): Likewise.
4456 (XVF64GERPP): Likewise.
4457 (XVI16GER2): Likewise.
4458 (XVI16GER2PP): Likewise.
4459 (XVI16GER2S): Likewise.
4460 (XVI16GER2SPP): Likewise.
4461 (XVI4GER8): Likewise.
4462 (XVI4GER8PP): Likewise.
4463 (XVI8GER4): Likewise.
4464 (XVI8GER4PP): Likewise.
4465 (XVI8GER4SPP): Likewise.
4466 (XXMFACC): Likewise.
4467 (XXMTACC): Likewise.
4468 (XXSETACCZ): Likewise.
4469 (ASSEMBLE_PAIR_V): Likewise.
4470 (BUILD_PAIR): Likewise.
4471 (DISASSEMBLE_PAIR_V): Likewise.
4474 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_new_mma_builtin):
4475 Handle RS6000_BIF_LXVP and RS6000_BIF_STXVP.
4476 * config/rs6000/rs6000-gen-builtins.c (attrinfo): Add ismmaint.
4477 (parse_bif_attrs): Handle ismmaint.
4478 (write_decls): Add bif_mmaint_bit and bif_is_mmaint.
4479 (write_bif_static_init): Handle ismmaint.
4481 2021-09-17 Bill Schmidt <wschmidt@linux.ibm.com>
4483 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_new_builtin): New
4485 (rs6000_gimple_fold_builtin): Call rs6000_gimple_fold_new_builtin.
4486 (rs6000_new_builtin_valid_without_lhs): New function.
4487 (rs6000_gimple_fold_new_mma_builtin): Likewise.
4488 (rs6000_gimple_fold_new_builtin): Likewise.
4490 2021-09-17 Thomas Schwinge <thomas@codesourcery.com>
4492 * hash-table.h (hash_table<Descriptor, Lazy, Allocator>::expand):
4493 Destruct stale Value objects.
4494 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor_expand):
4497 2021-09-17 Roger Sayle <roger@nextmovesoftware.com>
4500 * match.pd (shift optimizations): Disable recent sign-changing
4501 optimization for shifts by zero, these will be folded later.
4503 2021-09-17 Bill Schmidt <wschmidt@linux.ibm.com>
4505 * config/rs6000/rs6000-builtin-new.def (__builtin_mffsl): Move from
4506 [power9] to [always].
4508 2021-09-17 Richard Biener <rguenther@suse.de>
4510 * tree-vect-stmts.c (vectorizable_load): Do not frob
4513 2021-09-17 H.J. Lu <hjl.tools@gmail.com>
4515 * config/i386/i386-features.c (remove_partial_avx_dependency):
4516 Also check TARGET_SSE_PARTIAL_REG_FP_CONVERTS_DEPENDENCY and
4517 and TARGET_SSE_PARTIAL_REG_CONVERTS_DEPENDENCY before generating
4519 * config/i386/i386.h (TARGET_SSE_PARTIAL_REG_FP_CONVERTS_DEPENDENCY):
4521 (TARGET_SSE_PARTIAL_REG_CONVERTS_DEPENDENCY): Likewise.
4522 * config/i386/i386.md (SSE FP to FP splitters): Replace
4523 TARGET_SSE_PARTIAL_REG_DEPENDENCY with
4524 TARGET_SSE_PARTIAL_REG_FP_CONVERTS_DEPENDENCY.
4525 (SSE INT to FP splitter): Replace TARGET_SSE_PARTIAL_REG_DEPENDENCY
4526 with TARGET_SSE_PARTIAL_REG_CONVERTS_DEPENDENCY.
4527 * config/i386/x86-tune.def
4528 (X86_TUNE_SSE_PARTIAL_REG_FP_CONVERTS_DEPENDENCY): New.
4529 (X86_TUNE_SSE_PARTIAL_REG_CONVERTS_DEPENDENCY): Likewise.
4531 2021-09-17 H.J. Lu <hjl.tools@gmail.com>
4534 * config/i386/i386-features.c (remove_partial_avx_dependency):
4535 Check TARGET_USE_VECTOR_FP_CONVERTS and TARGET_USE_VECTOR_CONVERTS
4536 before generating vxorps.
4538 2021-09-17 H.J. Lu <hjl.tools@gmail.com>
4540 * config/i386/i386-options.c (processor_cost_table): Use
4541 tremont_cost for Tremont.
4542 * config/i386/x86-tune-costs.h (tremont_memcpy): New.
4543 (tremont_memset): Likewise.
4544 (tremont_cost): Likewise.
4545 * config/i386/x86-tune.def (X86_TUNE_PREFER_KNOWN_REP_MOVSB_STOSB):
4548 2021-09-17 H.J. Lu <hjl.tools@gmail.com>
4550 * common/config/i386/i386-common.c: Use Haswell scheduling model
4552 * config/i386/i386.c (ix86_sched_init_global): Prepare for Tremont
4554 * config/i386/x86-tune-sched.c (ix86_issue_rate): Change Tremont
4556 (ix86_adjust_cost): Handle Tremont.
4557 * config/i386/x86-tune.def (X86_TUNE_SSE_PARTIAL_REG_DEPENDENCY):
4559 (X86_TUNE_USE_LEAVE): Likewise.
4560 (X86_TUNE_PUSH_MEMORY): Likewise.
4561 (X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Likewise.
4562 (X86_TUNE_USE_CLTD): Likewise.
4563 (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI): Likewise.
4564 (X86_TUNE_AVOID_MFENCE): Likewise.
4565 (X86_TUNE_SSE_TYPELESS_STORES): Likewise.
4566 (X86_TUNE_SSE_LOAD0_BY_PXOR): Likewise.
4567 (X86_TUNE_ACCUMULATE_OUTGOING_ARGS): Disable for Tremont.
4568 (X86_TUNE_FOUR_JUMP_LIMIT): Likewise.
4569 (X86_TUNE_OPT_AGU): Likewise.
4570 (X86_TUNE_AVOID_LEA_FOR_ADDR): Likewise.
4571 (X86_TUNE_AVOID_MEM_OPND_FOR_CMOVE): Likewise.
4572 (X86_TUNE_EXPAND_ABS): Likewise.
4573 (X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS): Likewise.
4574 (X86_TUNE_SLOW_PSHUFB): Likewise.
4576 2021-09-17 Eric Botcazou <ebotcazou@adacore.com>
4578 PR rtl-optimization/102306
4579 * combine.c (try_combine): Abort the combination if we are about to
4580 duplicate volatile references.
4582 2021-09-17 liuhongt <hongtao.liu@intel.com>
4584 * config/i386/avx512fp16intrin.h (_mm_undefined_ph):
4586 (_mm256_undefined_ph): Likewise.
4587 (_mm512_undefined_ph): Likewise.
4588 (_mm_cvtsh_h): Likewise.
4589 (_mm256_cvtsh_h): Likewise.
4590 (_mm512_cvtsh_h): Likewise.
4591 (_mm512_castph_ps): Likewise.
4592 (_mm512_castph_pd): Likewise.
4593 (_mm512_castph_si512): Likewise.
4594 (_mm512_castph512_ph128): Likewise.
4595 (_mm512_castph512_ph256): Likewise.
4596 (_mm512_castph128_ph512): Likewise.
4597 (_mm512_castph256_ph512): Likewise.
4598 (_mm512_zextph128_ph512): Likewise.
4599 (_mm512_zextph256_ph512): Likewise.
4600 (_mm512_castps_ph): Likewise.
4601 (_mm512_castpd_ph): Likewise.
4602 (_mm512_castsi512_ph): Likewise.
4603 * config/i386/avx512fp16vlintrin.h (_mm_castph_ps):
4605 (_mm256_castph_ps): Likewise.
4606 (_mm_castph_pd): Likewise.
4607 (_mm256_castph_pd): Likewise.
4608 (_mm_castph_si128): Likewise.
4609 (_mm256_castph_si256): Likewise.
4610 (_mm_castps_ph): Likewise.
4611 (_mm256_castps_ph): Likewise.
4612 (_mm_castpd_ph): Likewise.
4613 (_mm256_castpd_ph): Likewise.
4614 (_mm_castsi128_ph): Likewise.
4615 (_mm256_castsi256_ph): Likewise.
4616 (_mm256_castph256_ph128): Likewise.
4617 (_mm256_castph128_ph256): Likewise.
4618 (_mm256_zextph128_ph256): Likewise.
4620 2021-09-17 liuhongt <hongtao.liu@intel.com>
4622 * config/i386/avx512fp16intrin.h (_mm_cvtsh_ss):
4624 (_mm_mask_cvtsh_ss): Likewise.
4625 (_mm_maskz_cvtsh_ss): Likewise.
4626 (_mm_cvtsh_sd): Likewise.
4627 (_mm_mask_cvtsh_sd): Likewise.
4628 (_mm_maskz_cvtsh_sd): Likewise.
4629 (_mm_cvt_roundsh_ss): Likewise.
4630 (_mm_mask_cvt_roundsh_ss): Likewise.
4631 (_mm_maskz_cvt_roundsh_ss): Likewise.
4632 (_mm_cvt_roundsh_sd): Likewise.
4633 (_mm_mask_cvt_roundsh_sd): Likewise.
4634 (_mm_maskz_cvt_roundsh_sd): Likewise.
4635 (_mm_cvtss_sh): Likewise.
4636 (_mm_mask_cvtss_sh): Likewise.
4637 (_mm_maskz_cvtss_sh): Likewise.
4638 (_mm_cvtsd_sh): Likewise.
4639 (_mm_mask_cvtsd_sh): Likewise.
4640 (_mm_maskz_cvtsd_sh): Likewise.
4641 (_mm_cvt_roundss_sh): Likewise.
4642 (_mm_mask_cvt_roundss_sh): Likewise.
4643 (_mm_maskz_cvt_roundss_sh): Likewise.
4644 (_mm_cvt_roundsd_sh): Likewise.
4645 (_mm_mask_cvt_roundsd_sh): Likewise.
4646 (_mm_maskz_cvt_roundsd_sh): Likewise.
4647 * config/i386/i386-builtin-types.def
4648 (V8HF_FTYPE_V2DF_V8HF_V8HF_UQI_INT,
4649 V8HF_FTYPE_V4SF_V8HF_V8HF_UQI_INT,
4650 V2DF_FTYPE_V8HF_V2DF_V2DF_UQI_INT,
4651 V4SF_FTYPE_V8HF_V4SF_V4SF_UQI_INT): Add new builtin types.
4652 * config/i386/i386-builtin.def: Add corrresponding new builtins.
4653 * config/i386/i386-expand.c: Handle new builtin types.
4654 * config/i386/sse.md (VF48_128): New mode iterator.
4655 (avx512fp16_vcvtsh2<ssescalarmodesuffix><mask_scalar_name><round_saeonly_scalar_name>):
4657 (avx512fp16_vcvt<ssescalarmodesuffix>2sh<mask_scalar_name><round_scalar_name>):
4660 2021-09-17 liuhongt <hongtao.liu@intel.com>
4662 * config/i386/avx512fp16intrin.h (_mm512_cvtph_pd):
4664 (_mm512_mask_cvtph_pd): Likewise.
4665 (_mm512_maskz_cvtph_pd): Likewise.
4666 (_mm512_cvt_roundph_pd): Likewise.
4667 (_mm512_mask_cvt_roundph_pd): Likewise.
4668 (_mm512_maskz_cvt_roundph_pd): Likewise.
4669 (_mm512_cvtxph_ps): Likewise.
4670 (_mm512_mask_cvtxph_ps): Likewise.
4671 (_mm512_maskz_cvtxph_ps): Likewise.
4672 (_mm512_cvtx_roundph_ps): Likewise.
4673 (_mm512_mask_cvtx_roundph_ps): Likewise.
4674 (_mm512_maskz_cvtx_roundph_ps): Likewise.
4675 (_mm512_cvtxps_ph): Likewise.
4676 (_mm512_mask_cvtxps_ph): Likewise.
4677 (_mm512_maskz_cvtxps_ph): Likewise.
4678 (_mm512_cvtx_roundps_ph): Likewise.
4679 (_mm512_mask_cvtx_roundps_ph): Likewise.
4680 (_mm512_maskz_cvtx_roundps_ph): Likewise.
4681 (_mm512_cvtpd_ph): Likewise.
4682 (_mm512_mask_cvtpd_ph): Likewise.
4683 (_mm512_maskz_cvtpd_ph): Likewise.
4684 (_mm512_cvt_roundpd_ph): Likewise.
4685 (_mm512_mask_cvt_roundpd_ph): Likewise.
4686 (_mm512_maskz_cvt_roundpd_ph): Likewise.
4687 * config/i386/avx512fp16vlintrin.h (_mm_cvtph_pd):
4689 (_mm_mask_cvtph_pd): Likewise.
4690 (_mm_maskz_cvtph_pd): Likewise.
4691 (_mm256_cvtph_pd): Likewise.
4692 (_mm256_mask_cvtph_pd): Likewise.
4693 (_mm256_maskz_cvtph_pd): Likewise.
4694 (_mm_cvtxph_ps): Likewise.
4695 (_mm_mask_cvtxph_ps): Likewise.
4696 (_mm_maskz_cvtxph_ps): Likewise.
4697 (_mm256_cvtxph_ps): Likewise.
4698 (_mm256_mask_cvtxph_ps): Likewise.
4699 (_mm256_maskz_cvtxph_ps): Likewise.
4700 (_mm_cvtxps_ph): Likewise.
4701 (_mm_mask_cvtxps_ph): Likewise.
4702 (_mm_maskz_cvtxps_ph): Likewise.
4703 (_mm256_cvtxps_ph): Likewise.
4704 (_mm256_mask_cvtxps_ph): Likewise.
4705 (_mm256_maskz_cvtxps_ph): Likewise.
4706 (_mm_cvtpd_ph): Likewise.
4707 (_mm_mask_cvtpd_ph): Likewise.
4708 (_mm_maskz_cvtpd_ph): Likewise.
4709 (_mm256_cvtpd_ph): Likewise.
4710 (_mm256_mask_cvtpd_ph): Likewise.
4711 (_mm256_maskz_cvtpd_ph): Likewise.
4712 * config/i386/i386-builtin.def: Add corresponding new builtins.
4713 * config/i386/i386-builtin-types.def: Add corresponding builtin types.
4714 * config/i386/i386-expand.c: Handle new builtin types.
4715 * config/i386/sse.md
4716 (VF4_128_8_256): New.
4717 (VF48H_AVX512VL): Ditto.
4718 (ssePHmode): Add HF vector modes.
4719 (castmode): Add new convertable modes.
4722 (avx512fp16_vcvt<castmode>2ph_<mode><mask_name><round_name>): Ditto.
4723 (avx512fp16_vcvt<castmode>2ph_<mode>): Ditto.
4724 (*avx512fp16_vcvt<castmode>2ph_<mode>): Ditto.
4725 (avx512fp16_vcvt<castmode>2ph_<mode>_mask): Ditto.
4726 (*avx512fp16_vcvt<castmode>2ph_<mode>_mask): Ditto.
4727 (*avx512fp16_vcvt<castmode>2ph_<mode>_mask_1): Ditto.
4728 (avx512fp16_float_extend_ph<mode>2<mask_name><round_saeonly_name>):
4730 (avx512fp16_float_extend_ph<mode>2<mask_name>): Ditto.
4731 (*avx512fp16_float_extend_ph<mode>2_load<mask_name>): Ditto.
4732 (avx512fp16_float_extend_phv2df2<mask_name>): Ditto.
4733 (*avx512fp16_float_extend_phv2df2_load<mask_name>): Ditto.
4735 2021-09-17 liuhongt <hongtao.liu@intel.com>
4737 * config/i386/avx512fp16intrin.h (_mm_cvttsh_i32):
4739 (_mm_cvttsh_u32): Likewise.
4740 (_mm_cvtt_roundsh_i32): Likewise.
4741 (_mm_cvtt_roundsh_u32): Likewise.
4742 (_mm_cvttsh_i64): Likewise.
4743 (_mm_cvttsh_u64): Likewise.
4744 (_mm_cvtt_roundsh_i64): Likewise.
4745 (_mm_cvtt_roundsh_u64): Likewise.
4746 * config/i386/i386-builtin.def: Add corresponding new builtins.
4747 * config/i386/sse.md
4748 (avx512fp16_fix<fixunssuffix>_trunc<mode>2<round_saeonly_name>):
4751 2021-09-17 liuhongt <hongtao.liu@intel.com>
4753 * config/i386/avx512fp16intrin.h (_mm512_cvttph_epi32):
4755 (_mm512_mask_cvttph_epi32): Likewise.
4756 (_mm512_maskz_cvttph_epi32): Likewise.
4757 (_mm512_cvtt_roundph_epi32): Likewise.
4758 (_mm512_mask_cvtt_roundph_epi32): Likewise.
4759 (_mm512_maskz_cvtt_roundph_epi32): Likewise.
4760 (_mm512_cvttph_epu32): Likewise.
4761 (_mm512_mask_cvttph_epu32): Likewise.
4762 (_mm512_maskz_cvttph_epu32): Likewise.
4763 (_mm512_cvtt_roundph_epu32): Likewise.
4764 (_mm512_mask_cvtt_roundph_epu32): Likewise.
4765 (_mm512_maskz_cvtt_roundph_epu32): Likewise.
4766 (_mm512_cvttph_epi64): Likewise.
4767 (_mm512_mask_cvttph_epi64): Likewise.
4768 (_mm512_maskz_cvttph_epi64): Likewise.
4769 (_mm512_cvtt_roundph_epi64): Likewise.
4770 (_mm512_mask_cvtt_roundph_epi64): Likewise.
4771 (_mm512_maskz_cvtt_roundph_epi64): Likewise.
4772 (_mm512_cvttph_epu64): Likewise.
4773 (_mm512_mask_cvttph_epu64): Likewise.
4774 (_mm512_maskz_cvttph_epu64): Likewise.
4775 (_mm512_cvtt_roundph_epu64): Likewise.
4776 (_mm512_mask_cvtt_roundph_epu64): Likewise.
4777 (_mm512_maskz_cvtt_roundph_epu64): Likewise.
4778 (_mm512_cvttph_epi16): Likewise.
4779 (_mm512_mask_cvttph_epi16): Likewise.
4780 (_mm512_maskz_cvttph_epi16): Likewise.
4781 (_mm512_cvtt_roundph_epi16): Likewise.
4782 (_mm512_mask_cvtt_roundph_epi16): Likewise.
4783 (_mm512_maskz_cvtt_roundph_epi16): Likewise.
4784 (_mm512_cvttph_epu16): Likewise.
4785 (_mm512_mask_cvttph_epu16): Likewise.
4786 (_mm512_maskz_cvttph_epu16): Likewise.
4787 (_mm512_cvtt_roundph_epu16): Likewise.
4788 (_mm512_mask_cvtt_roundph_epu16): Likewise.
4789 (_mm512_maskz_cvtt_roundph_epu16): Likewise.
4790 * config/i386/avx512fp16vlintrin.h (_mm_cvttph_epi32):
4792 (_mm_mask_cvttph_epi32): Likewise.
4793 (_mm_maskz_cvttph_epi32): Likewise.
4794 (_mm256_cvttph_epi32): Likewise.
4795 (_mm256_mask_cvttph_epi32): Likewise.
4796 (_mm256_maskz_cvttph_epi32): Likewise.
4797 (_mm_cvttph_epu32): Likewise.
4798 (_mm_mask_cvttph_epu32): Likewise.
4799 (_mm_maskz_cvttph_epu32): Likewise.
4800 (_mm256_cvttph_epu32): Likewise.
4801 (_mm256_mask_cvttph_epu32): Likewise.
4802 (_mm256_maskz_cvttph_epu32): Likewise.
4803 (_mm_cvttph_epi64): Likewise.
4804 (_mm_mask_cvttph_epi64): Likewise.
4805 (_mm_maskz_cvttph_epi64): Likewise.
4806 (_mm256_cvttph_epi64): Likewise.
4807 (_mm256_mask_cvttph_epi64): Likewise.
4808 (_mm256_maskz_cvttph_epi64): Likewise.
4809 (_mm_cvttph_epu64): Likewise.
4810 (_mm_mask_cvttph_epu64): Likewise.
4811 (_mm_maskz_cvttph_epu64): Likewise.
4812 (_mm256_cvttph_epu64): Likewise.
4813 (_mm256_mask_cvttph_epu64): Likewise.
4814 (_mm256_maskz_cvttph_epu64): Likewise.
4815 (_mm_cvttph_epi16): Likewise.
4816 (_mm_mask_cvttph_epi16): Likewise.
4817 (_mm_maskz_cvttph_epi16): Likewise.
4818 (_mm256_cvttph_epi16): Likewise.
4819 (_mm256_mask_cvttph_epi16): Likewise.
4820 (_mm256_maskz_cvttph_epi16): Likewise.
4821 (_mm_cvttph_epu16): Likewise.
4822 (_mm_mask_cvttph_epu16): Likewise.
4823 (_mm_maskz_cvttph_epu16): Likewise.
4824 (_mm256_cvttph_epu16): Likewise.
4825 (_mm256_mask_cvttph_epu16): Likewise.
4826 (_mm256_maskz_cvttph_epu16): Likewise.
4827 * config/i386/i386-builtin.def: Add new builtins.
4828 * config/i386/sse.md
4829 (avx512fp16_fix<fixunssuffix>_trunc<mode>2<mask_name><round_saeonly_name>):
4831 (avx512fp16_fix<fixunssuffix>_trunc<mode>2<mask_name>): Ditto.
4832 (*avx512fp16_fix<fixunssuffix>_trunc<mode>2_load<mask_name>): Ditto.
4833 (avx512fp16_fix<fixunssuffix>_truncv2di2<mask_name>): Ditto.
4834 (avx512fp16_fix<fixunssuffix>_truncv2di2_load<mask_name>): Ditto.
4836 2021-09-17 liuhongt <hongtao.liu@intel.com>
4838 * config/i386/avx512fp16intrin.h (_mm_cvtsh_i32): New intrinsic.
4839 (_mm_cvtsh_u32): Likewise.
4840 (_mm_cvt_roundsh_i32): Likewise.
4841 (_mm_cvt_roundsh_u32): Likewise.
4842 (_mm_cvtsh_i64): Likewise.
4843 (_mm_cvtsh_u64): Likewise.
4844 (_mm_cvt_roundsh_i64): Likewise.
4845 (_mm_cvt_roundsh_u64): Likewise.
4846 (_mm_cvti32_sh): Likewise.
4847 (_mm_cvtu32_sh): Likewise.
4848 (_mm_cvt_roundi32_sh): Likewise.
4849 (_mm_cvt_roundu32_sh): Likewise.
4850 (_mm_cvti64_sh): Likewise.
4851 (_mm_cvtu64_sh): Likewise.
4852 (_mm_cvt_roundi64_sh): Likewise.
4853 (_mm_cvt_roundu64_sh): Likewise.
4854 * config/i386/i386-builtin-types.def: Add corresponding builtin types.
4855 * config/i386/i386-builtin.def: Add corresponding new builtins.
4856 * config/i386/i386-expand.c (ix86_expand_round_builtin):
4857 Handle new builtin types.
4858 * config/i386/sse.md
4859 (avx512fp16_vcvtsh2<sseintconvertsignprefix>si<rex64namesuffix><round_name>):
4861 (avx512fp16_vcvtsh2<sseintconvertsignprefix>si<rex64namesuffix>_2): Likewise.
4862 (avx512fp16_vcvt<floatsuffix>si2sh<rex64namesuffix><round_name>): Likewise.
4864 2021-09-16 Bill Schmidt <wschmidt@linux.ibm.com>
4866 * config/rs6000/rs6000-c.c (rs6000-builtins.h): New include.
4867 (altivec_resolve_new_overloaded_builtin): New forward decl.
4868 (rs6000_new_builtin_type_compatible): New function.
4869 (altivec_resolve_overloaded_builtin): Call
4870 altivec_resolve_new_overloaded_builtin.
4871 (altivec_build_new_resolved_builtin): New function.
4872 (altivec_resolve_new_overloaded_builtin): Likewise.
4873 * config/rs6000/rs6000-call.c (rs6000_new_builtin_is_supported):
4875 * config/rs6000/rs6000-gen-builtins.c (write_decls): Remove _p from
4876 name of rs6000_new_builtin_is_supported.
4878 2021-09-16 Uroš Bizjak <ubizjak@gmail.com>
4880 * config/i386/i386-protos.h (ix86_decompose_address):
4881 Change return type to bool.
4882 * config/i386/i386.c (ix86_decompose_address): Ditto.
4884 2021-09-16 Tobias Burnus <tobias@codesourcery.com>
4887 * config/rs6000/t-rs6000 (build/rs6000-gen-builtins.o, build/rbtree.o):
4888 Added 'build/' to target, use build/%.o rule.
4889 (build/rs6000-gen-builtins$(build_exeext)): Add 'build/' and
4890 '$(build_exeext)' to target and 'build/' for the *.o files.
4891 (rs6000-builtins.c): Update for those changes; run rs6000-gen-builtins
4894 2021-09-16 Martin Jambor <mjambor@suse.cz>
4896 * cgraph.c (cgraph_node::dump): Do not check caller count sums if
4897 the body has been removed. Remove trailing whitespace.
4899 2021-09-16 Richard Biener <rguenther@suse.de>
4901 PR middle-end/102360
4902 * internal-fn.c (expand_DEFERRED_INIT): Make pattern-init
4903 of non-memory more robust.
4905 2021-09-16 Daniel Cederman <cederman@gaisler.com>
4907 * config/sparc/sparc-opts.h (enum sparc_processor_type): Add LEON5
4908 * config/sparc/sparc.c (struct processor_costs): Add LEON5 costs
4909 (leon5_adjust_cost): Increase cost of store with data dependency
4910 on ALU instruction and FPU anti-dependencies.
4911 (sparc_option_override): Add LEON5 costs
4912 (sparc_adjust_cost): Add LEON5 cost adjustments
4913 * config/sparc/sparc.h: Add LEON5
4914 * config/sparc/sparc.md: Include LEON5 scheduling information
4915 * config/sparc/sparc.opt: Add LEON5
4916 * doc/invoke.texi: Add LEON5
4917 * config/sparc/leon5.md: New file.
4919 2021-09-16 Daniel Cederman <cederman@gaisler.com>
4921 * config/sparc/sparc.md (stack_protect_set32): Add NOP to prevent
4922 sensitive sequence for B2BST errata workaround.
4924 2021-09-16 Daniel Cederman <cederman@gaisler.com>
4926 * config/sparc/sparc.c (sparc_do_work_around_errata): Do not begin
4927 functions with atomic instruction in the UT700 errata workaround.
4929 2021-09-16 Daniel Cederman <cederman@gaisler.com>
4931 * config/sparc/sparc.c (next_active_non_empty_insn): New function
4932 that returns next active non empty assembly instruction.
4933 (sparc_do_work_around_errata): Use new function.
4935 2021-09-16 Daniel Cederman <cederman@gaisler.com>
4937 * config/sparc/sparc.c (store_insn_p): Add predicate for store
4939 (load_insn_p): Add predicate for load attributes.
4940 (sparc_do_work_around_errata): Use new predicates.
4942 2021-09-16 Andreas Larsson <andreas@gaisler.com>
4944 * config/sparc/sparc.c (dump_target_flag_bits): Print bit names for
4947 2021-09-16 Martin Liska <mliska@suse.cz>
4949 * config/mips/netbsd.h: Fix typo in name of a macro.
4951 2021-09-16 liuhongt <hongtao.liu@intel.com>
4953 PR middle-end/102080
4954 * match.pd: Check mask type when doing cond_op related gimple
4956 * tree.c (is_truth_type_for): New function.
4957 * tree.h (is_truth_type_for): New declaration.
4959 2021-09-16 liuhongt <hongtao.liu@intel.com>
4961 * config/i386/avx512fp16intrin.h (_mm512_cvtepi32_ph): New
4963 (_mm512_mask_cvtepi32_ph): Likewise.
4964 (_mm512_maskz_cvtepi32_ph): Likewise.
4965 (_mm512_cvt_roundepi32_ph): Likewise.
4966 (_mm512_mask_cvt_roundepi32_ph): Likewise.
4967 (_mm512_maskz_cvt_roundepi32_ph): Likewise.
4968 (_mm512_cvtepu32_ph): Likewise.
4969 (_mm512_mask_cvtepu32_ph): Likewise.
4970 (_mm512_maskz_cvtepu32_ph): Likewise.
4971 (_mm512_cvt_roundepu32_ph): Likewise.
4972 (_mm512_mask_cvt_roundepu32_ph): Likewise.
4973 (_mm512_maskz_cvt_roundepu32_ph): Likewise.
4974 (_mm512_cvtepi64_ph): Likewise.
4975 (_mm512_mask_cvtepi64_ph): Likewise.
4976 (_mm512_maskz_cvtepi64_ph): Likewise.
4977 (_mm512_cvt_roundepi64_ph): Likewise.
4978 (_mm512_mask_cvt_roundepi64_ph): Likewise.
4979 (_mm512_maskz_cvt_roundepi64_ph): Likewise.
4980 (_mm512_cvtepu64_ph): Likewise.
4981 (_mm512_mask_cvtepu64_ph): Likewise.
4982 (_mm512_maskz_cvtepu64_ph): Likewise.
4983 (_mm512_cvt_roundepu64_ph): Likewise.
4984 (_mm512_mask_cvt_roundepu64_ph): Likewise.
4985 (_mm512_maskz_cvt_roundepu64_ph): Likewise.
4986 (_mm512_cvtepi16_ph): Likewise.
4987 (_mm512_mask_cvtepi16_ph): Likewise.
4988 (_mm512_maskz_cvtepi16_ph): Likewise.
4989 (_mm512_cvt_roundepi16_ph): Likewise.
4990 (_mm512_mask_cvt_roundepi16_ph): Likewise.
4991 (_mm512_maskz_cvt_roundepi16_ph): Likewise.
4992 (_mm512_cvtepu16_ph): Likewise.
4993 (_mm512_mask_cvtepu16_ph): Likewise.
4994 (_mm512_maskz_cvtepu16_ph): Likewise.
4995 (_mm512_cvt_roundepu16_ph): Likewise.
4996 (_mm512_mask_cvt_roundepu16_ph): Likewise.
4997 (_mm512_maskz_cvt_roundepu16_ph): Likewise.
4998 * config/i386/avx512fp16vlintrin.h (_mm_cvtepi32_ph): New
5000 (_mm_mask_cvtepi32_ph): Likewise.
5001 (_mm_maskz_cvtepi32_ph): Likewise.
5002 (_mm256_cvtepi32_ph): Likewise.
5003 (_mm256_mask_cvtepi32_ph): Likewise.
5004 (_mm256_maskz_cvtepi32_ph): Likewise.
5005 (_mm_cvtepu32_ph): Likewise.
5006 (_mm_mask_cvtepu32_ph): Likewise.
5007 (_mm_maskz_cvtepu32_ph): Likewise.
5008 (_mm256_cvtepu32_ph): Likewise.
5009 (_mm256_mask_cvtepu32_ph): Likewise.
5010 (_mm256_maskz_cvtepu32_ph): Likewise.
5011 (_mm_cvtepi64_ph): Likewise.
5012 (_mm_mask_cvtepi64_ph): Likewise.
5013 (_mm_maskz_cvtepi64_ph): Likewise.
5014 (_mm256_cvtepi64_ph): Likewise.
5015 (_mm256_mask_cvtepi64_ph): Likewise.
5016 (_mm256_maskz_cvtepi64_ph): Likewise.
5017 (_mm_cvtepu64_ph): Likewise.
5018 (_mm_mask_cvtepu64_ph): Likewise.
5019 (_mm_maskz_cvtepu64_ph): Likewise.
5020 (_mm256_cvtepu64_ph): Likewise.
5021 (_mm256_mask_cvtepu64_ph): Likewise.
5022 (_mm256_maskz_cvtepu64_ph): Likewise.
5023 (_mm_cvtepi16_ph): Likewise.
5024 (_mm_mask_cvtepi16_ph): Likewise.
5025 (_mm_maskz_cvtepi16_ph): Likewise.
5026 (_mm256_cvtepi16_ph): Likewise.
5027 (_mm256_mask_cvtepi16_ph): Likewise.
5028 (_mm256_maskz_cvtepi16_ph): Likewise.
5029 (_mm_cvtepu16_ph): Likewise.
5030 (_mm_mask_cvtepu16_ph): Likewise.
5031 (_mm_maskz_cvtepu16_ph): Likewise.
5032 (_mm256_cvtepu16_ph): Likewise.
5033 (_mm256_mask_cvtepu16_ph): Likewise.
5034 (_mm256_maskz_cvtepu16_ph): Likewise.
5035 * config/i386/i386-builtin-types.def: Add corresponding builtin types.
5036 * config/i386/i386-builtin.def: Add corresponding new builtins.
5037 * config/i386/i386-expand.c
5038 (ix86_expand_args_builtin): Handle new builtin types.
5039 (ix86_expand_round_builtin): Ditto.
5040 * config/i386/i386-modes.def: Declare V2HF and V6HF.
5041 * config/i386/sse.md (VI2H_AVX512VL): New.
5043 (sseintvecmode): Add HF vector modes.
5044 (avx512fp16_vcvt<floatsuffix><sseintconvert>2ph_<mode><mask_name><round_name>):
5046 (avx512fp16_vcvt<floatsuffix><sseintconvert>2ph_<mode>): Ditto.
5047 (*avx512fp16_vcvt<floatsuffix><sseintconvert>2ph_<mode>): Ditto.
5048 (avx512fp16_vcvt<floatsuffix><sseintconvert>2ph_<mode>_mask): Ditto.
5049 (*avx512fp16_vcvt<floatsuffix><sseintconvert>2ph_<mode>_mask): Ditto.
5050 (*avx512fp16_vcvt<floatsuffix><sseintconvert>2ph_<mode>_mask_1): Ditto.
5051 (avx512fp16_vcvt<floatsuffix>qq2ph_v2di): Ditto.
5052 (*avx512fp16_vcvt<floatsuffix>qq2ph_v2di): Ditto.
5053 (avx512fp16_vcvt<floatsuffix>qq2ph_v2di_mask): Ditto.
5054 (*avx512fp16_vcvt<floatsuffix>qq2ph_v2di_mask): Ditto.
5055 (*avx512fp16_vcvt<floatsuffix>qq2ph_v2di_mask_1): Ditto.
5056 * config/i386/subst.md (round_qq2phsuff): New subst_attr.
5058 2021-09-16 liuhongt <hongtao.liu@intel.com>
5060 * config/i386/avx512fp16intrin.h (_mm512_cvtph_epi32):
5062 (_mm512_mask_cvtph_epi32): Likewise.
5063 (_mm512_maskz_cvtph_epi32): Likewise.
5064 (_mm512_cvt_roundph_epi32): Likewise.
5065 (_mm512_mask_cvt_roundph_epi32): Likewise.
5066 (_mm512_maskz_cvt_roundph_epi32): Likewise.
5067 (_mm512_cvtph_epu32): Likewise.
5068 (_mm512_mask_cvtph_epu32): Likewise.
5069 (_mm512_maskz_cvtph_epu32): Likewise.
5070 (_mm512_cvt_roundph_epu32): Likewise.
5071 (_mm512_mask_cvt_roundph_epu32): Likewise.
5072 (_mm512_maskz_cvt_roundph_epu32): Likewise.
5073 (_mm512_cvtph_epi64): Likewise.
5074 (_mm512_mask_cvtph_epi64): Likewise.
5075 (_mm512_maskz_cvtph_epi64): Likewise.
5076 (_mm512_cvt_roundph_epi64): Likewise.
5077 (_mm512_mask_cvt_roundph_epi64): Likewise.
5078 (_mm512_maskz_cvt_roundph_epi64): Likewise.
5079 (_mm512_cvtph_epu64): Likewise.
5080 (_mm512_mask_cvtph_epu64): Likewise.
5081 (_mm512_maskz_cvtph_epu64): Likewise.
5082 (_mm512_cvt_roundph_epu64): Likewise.
5083 (_mm512_mask_cvt_roundph_epu64): Likewise.
5084 (_mm512_maskz_cvt_roundph_epu64): Likewise.
5085 (_mm512_cvtph_epi16): Likewise.
5086 (_mm512_mask_cvtph_epi16): Likewise.
5087 (_mm512_maskz_cvtph_epi16): Likewise.
5088 (_mm512_cvt_roundph_epi16): Likewise.
5089 (_mm512_mask_cvt_roundph_epi16): Likewise.
5090 (_mm512_maskz_cvt_roundph_epi16): Likewise.
5091 (_mm512_cvtph_epu16): Likewise.
5092 (_mm512_mask_cvtph_epu16): Likewise.
5093 (_mm512_maskz_cvtph_epu16): Likewise.
5094 (_mm512_cvt_roundph_epu16): Likewise.
5095 (_mm512_mask_cvt_roundph_epu16): Likewise.
5096 (_mm512_maskz_cvt_roundph_epu16): Likewise.
5097 * config/i386/avx512fp16vlintrin.h (_mm_cvtph_epi32):
5099 (_mm_mask_cvtph_epi32): Likewise.
5100 (_mm_maskz_cvtph_epi32): Likewise.
5101 (_mm256_cvtph_epi32): Likewise.
5102 (_mm256_mask_cvtph_epi32): Likewise.
5103 (_mm256_maskz_cvtph_epi32): Likewise.
5104 (_mm_cvtph_epu32): Likewise.
5105 (_mm_mask_cvtph_epu32): Likewise.
5106 (_mm_maskz_cvtph_epu32): Likewise.
5107 (_mm256_cvtph_epu32): Likewise.
5108 (_mm256_mask_cvtph_epu32): Likewise.
5109 (_mm256_maskz_cvtph_epu32): Likewise.
5110 (_mm_cvtph_epi64): Likewise.
5111 (_mm_mask_cvtph_epi64): Likewise.
5112 (_mm_maskz_cvtph_epi64): Likewise.
5113 (_mm256_cvtph_epi64): Likewise.
5114 (_mm256_mask_cvtph_epi64): Likewise.
5115 (_mm256_maskz_cvtph_epi64): Likewise.
5116 (_mm_cvtph_epu64): Likewise.
5117 (_mm_mask_cvtph_epu64): Likewise.
5118 (_mm_maskz_cvtph_epu64): Likewise.
5119 (_mm256_cvtph_epu64): Likewise.
5120 (_mm256_mask_cvtph_epu64): Likewise.
5121 (_mm256_maskz_cvtph_epu64): Likewise.
5122 (_mm_cvtph_epi16): Likewise.
5123 (_mm_mask_cvtph_epi16): Likewise.
5124 (_mm_maskz_cvtph_epi16): Likewise.
5125 (_mm256_cvtph_epi16): Likewise.
5126 (_mm256_mask_cvtph_epi16): Likewise.
5127 (_mm256_maskz_cvtph_epi16): Likewise.
5128 (_mm_cvtph_epu16): Likewise.
5129 (_mm_mask_cvtph_epu16): Likewise.
5130 (_mm_maskz_cvtph_epu16): Likewise.
5131 (_mm256_cvtph_epu16): Likewise.
5132 (_mm256_mask_cvtph_epu16): Likewise.
5133 (_mm256_maskz_cvtph_epu16): Likewise.
5134 * config/i386/i386-builtin-types.def: Add new builtin types.
5135 * config/i386/i386-builtin.def: Add new builtins.
5136 * config/i386/i386-expand.c
5137 (ix86_expand_args_builtin): Handle new builtin types.
5138 (ix86_expand_round_builtin): Ditto.
5139 * config/i386/sse.md (sseintconvert): New.
5141 (UNSPEC_US_FIX_NOTRUNC): Ditto.
5142 (sseintconvertsignprefix): Ditto.
5143 (avx512fp16_vcvtph2<sseintconvertsignprefix><sseintconvert>_<mode><mask_name><round_name>):
5146 2021-09-16 liuhongt <hongtao.liu@intel.com>
5148 * config/i386/avx512fp16intrin.h: (_mm_cvtsi16_si128):
5150 (_mm_cvtsi128_si16): Likewise.
5151 (_mm_mask_load_sh): Likewise.
5152 (_mm_maskz_load_sh): Likewise.
5153 (_mm_mask_store_sh): Likewise.
5154 (_mm_move_sh): Likewise.
5155 (_mm_mask_move_sh): Likewise.
5156 (_mm_maskz_move_sh): Likewise.
5157 * config/i386/i386-builtin-types.def: Add corresponding builtin types.
5158 * config/i386/i386-builtin.def: Add corresponding new builtins.
5159 * config/i386/i386-expand.c
5160 (ix86_expand_special_args_builtin): Handle new builtin types.
5161 (ix86_expand_vector_init_one_nonzero): Adjust for FP16 target.
5162 * config/i386/sse.md (VI2F): New mode iterator.
5163 (vec_set<mode>_0): Use new mode iterator.
5164 (avx512f_mov<ssescalarmodelower>_mask): Adjust for HF vector mode.
5165 (avx512f_store<mode>_mask): Ditto.
5167 2021-09-16 Kewen Lin <linkw@linux.ibm.com>
5169 * config/rs6000/rs6000.opt (-mtoc-fusion): Remove.
5171 2021-09-15 David Edelsohn <dje.gcc@gmail.com>
5173 * config/rs6000/rs6000.c (rs6000_xcoff_encode_section_info):
5174 Proceed if no symbol summary or the symbol alias flag is false.
5176 2021-09-15 Jakub Jelinek <jakub@redhat.com>
5180 * varasm.c (output_constructor_regular_field): Instead of assertion
5181 that array_size_for_constructor result is equal to size of
5182 TREE_TYPE (local->val) in bytes, assert that the type size is greater
5183 or equal to array_size_for_constructor result and use type size as
5186 2021-09-15 Martin Liska <mliska@suse.cz>
5189 * config/i386/vxworks.h: Use new macro TARGET_CPU_P.
5191 2021-09-15 Martin Liska <mliska@suse.cz>
5194 * config/rs6000/rs6000.c (rs6000_xcoff_encode_section_info):
5195 Check that we have a symbol summary for a symbol.
5197 2021-09-15 Richard Biener <rguenther@suse.de>
5200 * config/rs6000/lynx.h: Remove undef of PREFERRED_DEBUGGING_TYPE
5201 to inherit from elfos.h
5203 2021-09-15 liuhongt <hongtao.liu@intel.com>
5206 * config/i386/i386-expand.c
5207 (ix86_expand_vector_init_interleave): Use puncklwd to pack 2
5209 (ix86_expand_vector_set): Use blendw instead of pinsrw.
5210 * config/i386/i386.c (ix86_can_change_mode_class): Adjust for
5211 AVX512FP16 which supports 16bit vector load.
5212 * config/i386/sse.md (avx512bw_interleave_highv32hi<mask_name>):
5214 (avx512bw_interleave_high<mode><mask_name>): .. this, and
5215 extend to V32HFmode.
5216 (avx2_interleave_highv16hi<mask_name>): Rename to ..
5217 (avx2_interleave_high<mode><mask_name>): .. this, and extend
5219 (vec_interleave_highv8hi<mask_name>): Rename to ..
5220 (vec_interleave_high<mode><mask_name>): .. this, and extend to V8HFmode.
5221 (<mask_codefor>avx512bw_interleave_lowv32hi<mask_name>):
5223 (<mask_codefor>avx512bw_interleave_low<mode><mask_name>):
5224 this, and extend to V32HFmode.
5225 (avx2_interleave_lowv16hi<mask_name>): Rename to ..
5226 (avx2_interleave_low<mode><mask_name>): .. this, and extend to V16HFmode.
5227 (vec_interleave_lowv8hi<mask_name>): Rename to ..
5228 (vec_interleave_low<mode><mask_name>): .. this, and extend to V8HFmode.
5229 (sse4_1_pblendw): Rename to ..
5230 (sse4_1_pblend<blendsuf>): .. this, and extend to V8HFmode.
5231 (avx2_pblendph): New define_expand.
5232 (<sse2p4_1>_pinsr<ssemodesuffix>): Refactor, use
5233 sseintmodesuffix instead of ssemodesuffix.
5234 (blendsuf): New mode attr.
5236 2021-09-15 Richard Biener <rguenther@suse.de>
5238 * tree-vectorizer.h (dr_misalignment): Move out of line.
5239 (dr_target_alignment): New.
5240 (DR_TARGET_ALIGNMENT): Wrap dr_target_alignment.
5241 (set_dr_target_alignment): New.
5242 (SET_DR_TARGET_ALIGNMENT): Wrap set_dr_target_alignment.
5243 * tree-vect-data-refs.c (dr_misalignment): Compute and
5244 return the group members misalignment.
5245 (vect_compute_data_ref_alignment): Use SET_DR_TARGET_ALIGNMENT.
5246 (vect_analyze_data_refs_alignment): Compute alignment only
5247 for the first element of a DR group.
5248 (vect_slp_analyze_node_alignment): Likewise.
5250 2021-09-15 Hongyu Wang <hongyu.wang@intel.com>
5252 * config/i386/avx512fp16intrin.h: Adjust all builtin calls.
5253 * config/i386/avx512fp16vlintrin.h: Likewise.
5254 * config/i386/i386-builtin.def: Adjust builtin name and
5255 enumeration to match AVX512F style.
5257 2021-09-15 Richard Biener <rguenther@suse.de>
5259 PR tree-optimization/102318
5260 * tree-vect-loop.c (vect_transform_cycle_phi): Revert
5261 previous change and do the mode conversion separately from
5262 the sign conversion.
5264 2021-09-15 Hongtao Liu <hongtao.liu@intel.com>
5265 Peter Cordes <peter@cordes.ca>
5268 * config/i386/sse.md (extract_suf): Add V8SF/V8SI/V4DF/V4DI.
5269 (*vec_extract<mode><ssescalarmodelower>_valign): Output
5270 vextract{i,f}{32x4,64x2} instruction when byte_offset % 16 ==
5273 2021-09-15 Richard Biener <rguenther@suse.de>
5275 * config.gcc: Remove vax-*-openbsd* configuration.
5277 2021-09-15 Richard Biener <rguenther@suse.de>
5279 * config.gcc: Remove m68k-openbsd.
5281 2021-09-15 Max Filippov <jcmvbkbc@gmail.com>
5284 * config/xtensa/t-xtensa (TM_H): Add include/xtensa-config.h.
5286 2021-09-14 Peter Bergner <bergner@linux.ibm.com>
5288 * config/rs6000/mma.md (unspec): Delete UNSPEC_MMA_XXSETACCZ.
5289 (unspecv): Add UNSPECV_MMA_XXSETACCZ.
5290 (*mma_xxsetaccz): Delete.
5291 (mma_xxsetaccz): Change to define_insn. Remove operand 1.
5292 Use UNSPECV_MMA_XXSETACCZ. Update comment.
5293 * config/rs6000/rs6000.c (rs6000_rtx_costs): Use UNSPECV_MMA_XXSETACCZ.
5295 2021-09-14 Iain Sandoe <iain@sandoe.co.uk>
5297 * Makefile.in: Remove variables related to applying no-PIE
5298 to the exes on $build.
5299 * configure: Regenerate.
5300 * configure.ac: Remove configuration related to applying
5301 no-PIE to the exes on $build.
5303 2021-09-14 Claudiu Zissulescu <claziss@synopsys.com>
5305 * config/arc/arc.md (doloop_end): Add missing mode.
5306 (loop_end): Likewise.
5308 2021-09-14 Jakub Jelinek <jakub@redhat.com>
5310 * gimplify.c (goa_stabilize_expr): Add depth argument, propagate
5311 it to recursive calls, for depth above 7 just gimplify or return.
5312 Perform a test even for MODIFY_EXPR, ADDR_EXPR, COMPOUND_EXPR with
5313 __builtin_clear_padding and TARGET_EXPR.
5314 (gimplify_omp_atomic): Adjust goa_stabilize_expr callers.
5316 2021-09-14 liuhongt <hongtao.liu@intel.com>
5318 * config/i386/avx512fp16intrin.h (_mm_fpclass_sh_mask):
5320 (_mm_mask_fpclass_sh_mask): Likewise.
5321 (_mm512_mask_fpclass_ph_mask): Likewise.
5322 (_mm512_fpclass_ph_mask): Likewise.
5323 (_mm_getexp_sh): Likewise.
5324 (_mm_mask_getexp_sh): Likewise.
5325 (_mm_maskz_getexp_sh): Likewise.
5326 (_mm512_getexp_ph): Likewise.
5327 (_mm512_mask_getexp_ph): Likewise.
5328 (_mm512_maskz_getexp_ph): Likewise.
5329 (_mm_getexp_round_sh): Likewise.
5330 (_mm_mask_getexp_round_sh): Likewise.
5331 (_mm_maskz_getexp_round_sh): Likewise.
5332 (_mm512_getexp_round_ph): Likewise.
5333 (_mm512_mask_getexp_round_ph): Likewise.
5334 (_mm512_maskz_getexp_round_ph): Likewise.
5335 (_mm_getmant_sh): Likewise.
5336 (_mm_mask_getmant_sh): Likewise.
5337 (_mm_maskz_getmant_sh): Likewise.
5338 (_mm512_getmant_ph): Likewise.
5339 (_mm512_mask_getmant_ph): Likewise.
5340 (_mm512_maskz_getmant_ph): Likewise.
5341 (_mm_getmant_round_sh): Likewise.
5342 (_mm_mask_getmant_round_sh): Likewise.
5343 (_mm_maskz_getmant_round_sh): Likewise.
5344 (_mm512_getmant_round_ph): Likewise.
5345 (_mm512_mask_getmant_round_ph): Likewise.
5346 (_mm512_maskz_getmant_round_ph): Likewise.
5347 * config/i386/avx512fp16vlintrin.h (_mm_mask_fpclass_ph_mask):
5349 (_mm_fpclass_ph_mask): Likewise.
5350 (_mm256_mask_fpclass_ph_mask): Likewise.
5351 (_mm256_fpclass_ph_mask): Likewise.
5352 (_mm256_getexp_ph): Likewise.
5353 (_mm256_mask_getexp_ph): Likewise.
5354 (_mm256_maskz_getexp_ph): Likewise.
5355 (_mm_getexp_ph): Likewise.
5356 (_mm_mask_getexp_ph): Likewise.
5357 (_mm_maskz_getexp_ph): Likewise.
5358 (_mm256_getmant_ph): Likewise.
5359 (_mm256_mask_getmant_ph): Likewise.
5360 (_mm256_maskz_getmant_ph): Likewise.
5361 (_mm_getmant_ph): Likewise.
5362 (_mm_mask_getmant_ph): Likewise.
5363 (_mm_maskz_getmant_ph): Likewise.
5364 * config/i386/i386-builtin-types.def: Add corresponding builtin types.
5365 * config/i386/i386-builtin.def: Add corresponding new builtins.
5366 * config/i386/i386-expand.c
5367 (ix86_expand_args_builtin): Handle new builtin types.
5368 (ix86_expand_round_builtin): Ditto.
5369 * config/i386/sse.md (vecmemsuffix): Add HF vector modes.
5370 (<avx512>_getexp<mode><mask_name><round_saeonly_name>): Adjust
5371 to support HF vector modes.
5372 (avx512f_sgetexp<mode><mask_scalar_name><round_saeonly_scalar_name):
5374 (avx512dq_fpclass<mode><mask_scalar_merge_name>): Ditto.
5375 (avx512dq_vmfpclass<mode><mask_scalar_merge_name>): Ditto.
5376 (<avx512>_getmant<mode><mask_name><round_saeonly_name>): Ditto.
5377 (avx512f_vgetmant<mode><mask_scalar_name><round_saeonly_scalar_name>):
5380 2021-09-14 liuhongt <hongtao.liu@intel.com>
5382 * config/i386/avx512fp16intrin.h (_mm512_reduce_ph):
5384 (_mm512_mask_reduce_ph): Likewise.
5385 (_mm512_maskz_reduce_ph): Likewise.
5386 (_mm512_reduce_round_ph): Likewise.
5387 (_mm512_mask_reduce_round_ph): Likewise.
5388 (_mm512_maskz_reduce_round_ph): Likewise.
5389 (_mm_reduce_sh): Likewise.
5390 (_mm_mask_reduce_sh): Likewise.
5391 (_mm_maskz_reduce_sh): Likewise.
5392 (_mm_reduce_round_sh): Likewise.
5393 (_mm_mask_reduce_round_sh): Likewise.
5394 (_mm_maskz_reduce_round_sh): Likewise.
5395 (_mm512_roundscale_ph): Likewise.
5396 (_mm512_mask_roundscale_ph): Likewise.
5397 (_mm512_maskz_roundscale_ph): Likewise.
5398 (_mm512_roundscale_round_ph): Likewise.
5399 (_mm512_mask_roundscale_round_ph): Likewise.
5400 (_mm512_maskz_roundscale_round_ph): Likewise.
5401 (_mm_roundscale_sh): Likewise.
5402 (_mm_mask_roundscale_sh): Likewise.
5403 (_mm_maskz_roundscale_sh): Likewise.
5404 (_mm_roundscale_round_sh): Likewise.
5405 (_mm_mask_roundscale_round_sh): Likewise.
5406 (_mm_maskz_roundscale_round_sh): Likewise.
5407 * config/i386/avx512fp16vlintrin.h: (_mm_reduce_ph):
5409 (_mm_mask_reduce_ph): Likewise.
5410 (_mm_maskz_reduce_ph): Likewise.
5411 (_mm256_reduce_ph): Likewise.
5412 (_mm256_mask_reduce_ph): Likewise.
5413 (_mm256_maskz_reduce_ph): Likewise.
5414 (_mm_roundscale_ph): Likewise.
5415 (_mm_mask_roundscale_ph): Likewise.
5416 (_mm_maskz_roundscale_ph): Likewise.
5417 (_mm256_roundscale_ph): Likewise.
5418 (_mm256_mask_roundscale_ph): Likewise.
5419 (_mm256_maskz_roundscale_ph): Likewise.
5420 * config/i386/i386-builtin-types.def: Add corresponding builtin types.
5421 * config/i386/i386-builtin.def: Add corresponding new builtins.
5422 * config/i386/i386-expand.c
5423 (ix86_expand_args_builtin): Handle new builtin types.
5424 (ix86_expand_round_builtin): Ditto.
5425 * config/i386/sse.md (<mask_codefor>reducep<mode><mask_name>):
5427 (<mask_codefor>reducep<mode><mask_name><round_saeonly_name>):
5428 ... this, and adjust for round operands.
5429 (reduces<mode><mask_scalar_name>): Likewise, with ...
5430 (reduces<mode><mask_scalar_name><round_saeonly_scalar_name):
5432 (<avx512>_rndscale<mode><mask_name><round_saeonly_name>):
5433 Adjust for HF vector modes.
5434 (avx512f_rndscale<mode><mask_scalar_name><round_saeonly_scalar_name>):
5436 (*avx512f_rndscale<mode><round_saeonly_name>): Ditto.
5438 2021-09-14 liuhongt <hongtao.liu@intel.com>
5440 * config/i386/avx512fp16intrin.h: (_mm512_rcp_ph):
5442 (_mm512_mask_rcp_ph): Likewise.
5443 (_mm512_maskz_rcp_ph): Likewise.
5444 (_mm_rcp_sh): Likewise.
5445 (_mm_mask_rcp_sh): Likewise.
5446 (_mm_maskz_rcp_sh): Likewise.
5447 (_mm512_scalef_ph): Likewise.
5448 (_mm512_mask_scalef_ph): Likewise.
5449 (_mm512_maskz_scalef_ph): Likewise.
5450 (_mm512_scalef_round_ph): Likewise.
5451 (_mm512_mask_scalef_round_ph): Likewise.
5452 (_mm512_maskz_scalef_round_ph): Likewise.
5453 (_mm_scalef_sh): Likewise.
5454 (_mm_mask_scalef_sh): Likewise.
5455 (_mm_maskz_scalef_sh): Likewise.
5456 (_mm_scalef_round_sh): Likewise.
5457 (_mm_mask_scalef_round_sh): Likewise.
5458 (_mm_maskz_scalef_round_sh): Likewise.
5459 * config/i386/avx512fp16vlintrin.h (_mm_rcp_ph):
5461 (_mm256_rcp_ph): Likewise.
5462 (_mm_mask_rcp_ph): Likewise.
5463 (_mm256_mask_rcp_ph): Likewise.
5464 (_mm_maskz_rcp_ph): Likewise.
5465 (_mm256_maskz_rcp_ph): Likewise.
5466 (_mm_scalef_ph): Likewise.
5467 (_mm256_scalef_ph): Likewise.
5468 (_mm_mask_scalef_ph): Likewise.
5469 (_mm256_mask_scalef_ph): Likewise.
5470 (_mm_maskz_scalef_ph): Likewise.
5471 (_mm256_maskz_scalef_ph): Likewise.
5472 * config/i386/i386-builtin.def: Add new builtins.
5473 * config/i386/sse.md (VFH_AVX512VL): New.
5474 (avx512fp16_rcp<mode>2<mask_name>): Ditto.
5475 (avx512fp16_vmrcpv8hf2<mask_scalar_name>): Ditto.
5476 (avx512f_vmscalef<mode><mask_scalar_name><round_scalar_name>):
5477 Adjust to support HF vector modes.
5478 (<avx512>_scalef<mode><mask_name><round_name>): Ditto.
5480 2021-09-14 liuhongt <hongtao.liu@intel.com>
5482 * config/i386/avx512fp16intrin.h: (_mm512_sqrt_ph):
5484 (_mm512_mask_sqrt_ph): Likewise.
5485 (_mm512_maskz_sqrt_ph): Likewise.
5486 (_mm512_sqrt_round_ph): Likewise.
5487 (_mm512_mask_sqrt_round_ph): Likewise.
5488 (_mm512_maskz_sqrt_round_ph): Likewise.
5489 (_mm512_rsqrt_ph): Likewise.
5490 (_mm512_mask_rsqrt_ph): Likewise.
5491 (_mm512_maskz_rsqrt_ph): Likewise.
5492 (_mm_rsqrt_sh): Likewise.
5493 (_mm_mask_rsqrt_sh): Likewise.
5494 (_mm_maskz_rsqrt_sh): Likewise.
5495 (_mm_sqrt_sh): Likewise.
5496 (_mm_mask_sqrt_sh): Likewise.
5497 (_mm_maskz_sqrt_sh): Likewise.
5498 (_mm_sqrt_round_sh): Likewise.
5499 (_mm_mask_sqrt_round_sh): Likewise.
5500 (_mm_maskz_sqrt_round_sh): Likewise.
5501 * config/i386/avx512fp16vlintrin.h (_mm_sqrt_ph): New intrinsic.
5502 (_mm256_sqrt_ph): Likewise.
5503 (_mm_mask_sqrt_ph): Likewise.
5504 (_mm256_mask_sqrt_ph): Likewise.
5505 (_mm_maskz_sqrt_ph): Likewise.
5506 (_mm256_maskz_sqrt_ph): Likewise.
5507 (_mm_rsqrt_ph): Likewise.
5508 (_mm256_rsqrt_ph): Likewise.
5509 (_mm_mask_rsqrt_ph): Likewise.
5510 (_mm256_mask_rsqrt_ph): Likewise.
5511 (_mm_maskz_rsqrt_ph): Likewise.
5512 (_mm256_maskz_rsqrt_ph): Likewise.
5513 * config/i386/i386-builtin-types.def: Add corresponding builtin types.
5514 * config/i386/i386-builtin.def: Add corresponding new builtins.
5515 * config/i386/i386-expand.c
5516 (ix86_expand_args_builtin): Handle new builtins.
5517 (ix86_expand_round_builtin): Ditto.
5518 * config/i386/sse.md (VF_AVX512FP16VL): New.
5519 (sqrt<mode>2): Adjust for HF vector modes.
5520 (<sse>_sqrt<mode>2<mask_name><round_name>): Likewise.
5521 (<sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>):
5523 (<sse>_rsqrt<mode>2<mask_name>): New.
5524 (avx512fp16_vmrsqrtv8hf2<mask_scalar_name>): Likewise.
5526 2021-09-13 Thomas Schwinge <thomas@codesourcery.com>
5529 * diagnostic-spec.c (warning_suppressed_at, copy_warning): Handle
5530 'RESERVED_LOCATION_P' locations.
5531 * warning-control.cc (get_nowarn_spec, suppress_warning)
5532 (copy_warning): Likewise.
5534 2021-09-13 Thomas Schwinge <thomas@codesourcery.com>
5536 * diagnostic-spec.h (typedef xint_hash_t): Use 'location_t' instead of...
5537 (typedef key_type_t): ... this. Remove.
5538 (nowarn_map): Document.
5539 * diagnostic-spec.c (nowarn_map): Likewise.
5540 * warning-control.cc (convert_to_key): Evolve functions into...
5541 (get_location): ... these. Adjust all users.
5543 2021-09-13 Thomas Schwinge <thomas@codesourcery.com>
5545 * warning-control.cc (copy_warning): Remove 'nowarn_map' setup.
5547 2021-09-13 Jason Merrill <jason@redhat.com>
5549 * params.opt: Add destructive-interference-size and
5550 constructive-interference-size.
5551 * doc/invoke.texi: Document them.
5552 * config/aarch64/aarch64.c (aarch64_override_options_internal):
5554 * config/arm/arm.c (arm_option_override): Set them.
5555 * config/i386/i386-options.c (ix86_option_override_internal):
5558 2021-09-13 Martin Liska <mliska@suse.cz>
5559 H.J. Lu <hjl.tools@gmail.com>
5562 * common/config/i386/cpuinfo.h (cpu_indicator_init): Add support
5563 for x86-64 micro levels for __builtin_cpu_supports.
5564 * common/config/i386/i386-cpuinfo.h (enum feature_priority):
5565 Add priorities for the micro-arch levels.
5566 (enum processor_features): Add new features.
5567 * common/config/i386/i386-isas.h: Add micro-arch features.
5568 * config/i386/i386-builtins.c (get_builtin_code_for_version):
5569 Support the micro-arch levels by callsing
5570 __builtin_cpu_supports.
5571 * doc/extend.texi: Document that the levels are support by
5572 __builtin_cpu_supports.
5574 2021-09-13 Andrew Pinski <apinski@marvell.com>
5577 * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin_lane_check):
5579 (aarch64_general_fold_builtin): Handle AARCH64_SIMD_BUILTIN_LANE_CHECK.
5580 (aarch64_general_gimple_fold_builtin): Likewise.
5582 2021-09-13 Andrew Pinski <apinski@marvell.com>
5584 * config.gcc: Add m32r-*-linux* and m32rle-*-linux*
5585 to the Unsupported targets list.
5586 Remove support for m32r-*-linux* and m32rle-*-linux*.
5587 * config/m32r/linux.h: Removed.
5588 * config/m32r/t-linux: Removed.
5590 2021-09-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5593 * config/aarch64/aarch64.c (aarch64_classify_address): Don't allow
5594 register index for SVE predicate modes.
5596 2021-09-13 Aldy Hernandez <aldyh@redhat.com>
5598 * tree-ssa-threadbackward.c
5599 (back_threader_profitability::profitable_path_p): Remove FSM
5601 (back_threader_registry::register_path): Same.
5602 * tree-ssa-threadedge.c
5603 (jump_threader::simplify_control_stmt_condition): Same.
5604 * tree-ssa-threadupdate.c (jt_path_registry::jt_path_registry):
5605 Add backedge_threads argument.
5606 (fwd_jt_path_registry::fwd_jt_path_registry): Pass
5607 backedge_threads argument.
5608 (back_jt_path_registry::back_jt_path_registry): Same.
5609 (dump_jump_thread_path): Adjust for FSM removal.
5610 (back_jt_path_registry::rewire_first_differing_edge): Same.
5611 (back_jt_path_registry::adjust_paths_after_duplication): Same.
5612 (back_jt_path_registry::update_cfg): Same.
5613 (jt_path_registry::register_jump_thread): Same.
5614 * tree-ssa-threadupdate.h (enum jump_thread_edge_type): Remove
5616 (class back_jt_path_registry): Add backedge_threads to
5619 2021-09-13 Martin Liska <mliska@suse.cz>
5622 * asan.h (sanitize_coverage_p): Handle when fn == NULL.
5624 2021-09-13 H.J. Lu <hjl.tools@gmail.com>
5627 * config/i386/i386.h (TARGET_AVX256_MOVE_BY_PIECES): New.
5628 (TARGET_AVX256_STORE_BY_PIECES): Likewise.
5629 (MOVE_MAX): Check TARGET_AVX256_MOVE_BY_PIECES and
5630 TARGET_AVX256_STORE_BY_PIECES instead of
5631 TARGET_AVX256_SPLIT_UNALIGNED_LOAD and
5632 TARGET_AVX256_SPLIT_UNALIGNED_STORE.
5633 (STORE_MAX_PIECES): Check TARGET_AVX256_STORE_BY_PIECES instead
5634 of TARGET_AVX256_SPLIT_UNALIGNED_STORE.
5635 * config/i386/x86-tune.def (X86_TUNE_AVX256_MOVE_BY_PIECES): New.
5636 (X86_TUNE_AVX256_STORE_BY_PIECES): Likewise.
5638 2021-09-13 liuhongt <hongtao.liu@intel.com>
5641 * expmed.c (extract_bit_field_using_extv): Use
5642 gen_lowpart_if_possible instead of gen_lowpart to avoid ICE.
5644 2021-09-13 Aldy Hernandez <aldyh@redhat.com>
5646 * Makefile.in (OBJS): Add value-pointer-equiv.o.
5647 * gimple-ssa-evrp.c (class ssa_equiv_stack): Move to
5648 value-pointer-equiv.*.
5649 (ssa_equiv_stack::ssa_equiv_stack): Same.
5650 (ssa_equiv_stack::enter): Same.
5651 (ssa_equiv_stack::leave): Same.
5652 (ssa_equiv_stack::push_replacement): Same.
5653 (ssa_equiv_stack::get_replacement): Same.
5654 (is_pointer_ssa): Same.
5655 (class pointer_equiv_analyzer): Same.
5656 (pointer_equiv_analyzer::pointer_equiv_analyzer): Same.
5657 (pointer_equiv_analyzer::~pointer_equiv_analyzer): Same.
5658 (pointer_equiv_analyzer::set_global_equiv): Same.
5659 (pointer_equiv_analyzer::set_cond_equiv): Same.
5660 (pointer_equiv_analyzer::get_equiv): Same.
5661 (pointer_equiv_analyzer::enter): Same.
5662 (pointer_equiv_analyzer::leave): Same.
5663 (pointer_equiv_analyzer::get_equiv_expr): Same.
5664 (pta_valueize): Same.
5665 (pointer_equiv_analyzer::visit_stmt): Same.
5666 (pointer_equiv_analyzer::visit_edge): Same.
5667 (hybrid_folder::value_of_expr): Same.
5668 (hybrid_folder::value_on_edge): Same.
5669 * value-pointer-equiv.cc: New file.
5670 * value-pointer-equiv.h: New file.
5672 2021-09-13 Richard Earnshaw <rearnsha@arm.com>
5675 * gimple-fold.c (gimple_fold_builtin_memory_op): Allow folding
5676 memcpy if the size is not more than MOVE_MAX * MOVE_RATIO.
5678 2021-09-13 Richard Earnshaw <rearnsha@arm.com>
5681 * config/arm/arm.md (movmisaligndi): New define_expand.
5682 * config/arm/vec-common.md (movmisalign<mode>): Iterate over VDQ mode.
5684 2021-09-13 Richard Earnshaw <rearnsha@arm.com>
5687 * emit-rtl.c (gen_highpart): Use adjust_address to handle
5688 MEM rather than calling simplify_gen_subreg.
5690 2021-09-13 Jan-Benedict Glaw <jbglaw@ług-owl.de>
5692 * config/alpha/vms.h (INIT_CUMULATIVE_ARGS): Wrap multi-statment
5693 define into a block.
5695 2021-09-13 Richard Biener <rguenther@suse.de>
5697 * config/darwin.h (DARWIN_PREFER_DWARF): Do not define.
5698 * config/i386/darwin.h (PREFERRED_DEBUGGING_TYPE): Do not
5699 change based on DARWIN_PREFER_DWARF not being defined.
5701 2021-09-13 Richard Biener <rguenther@suse.de>
5703 * config/i386/lynx.h: Remove undef of PREFERRED_DEBUGGING_TYPE
5704 to inherit from elfos.h
5706 2021-09-13 Richard Biener <rguenther@suse.de>
5708 * config.gcc: Add cr16-*-* to the list of obsoleted targets.
5710 2021-09-13 Richard Biener <rguenther@suse.de>
5712 * config/avr/elf.h (PREFERRED_DEBUGGING_TYPE): Remove
5713 override, pick up DWARF2_DEBUG define from elfos.h
5715 2021-09-13 Richard Biener <rguenther@suse.de>
5717 * config/rx/rx.h (PREFERRED_DEBUGGING_TYPE): Always define to
5720 2021-09-13 Richard Biener <rguenther@suse.de>
5722 * config/alpha/vms.h (PREFERRED_DEBUGGING_TYPE): Define to
5725 2021-09-13 Richard Biener <rguenther@suse.de>
5727 * config/i386/cygming.h: Always default to DWARF2 debugging.
5728 Do not define DBX_DEBUGGING_INFO, that's done via dbxcoff.h
5730 * doc/install.texi: Document binutils 2.16 as minimum
5731 requirement for mingw.
5733 2021-09-13 Kewen Lin <linkw@linux.ibm.com>
5735 * config/rs6000/rs6000.c (struct rs6000_cost_data): New members
5736 nstmts, nloads and extra_ctor_cost.
5737 (rs6000_density_test): Add load density related heuristics. Do
5738 extra costing on vector construction statements if need.
5739 (rs6000_init_cost): Init new members.
5740 (rs6000_update_target_cost_per_stmt): New function.
5741 (rs6000_add_stmt_cost): Factor vect_nonmem hunk out to function
5742 rs6000_update_target_cost_per_stmt and call it.
5744 2021-09-13 Kewen Lin <linkw@linux.ibm.com>
5746 * config/rs6000/rs6000.c (struct rs6000_cost_data): Remove typedef.
5747 (rs6000_init_cost): Adjust.
5749 2021-09-13 liuhongt <hongtao.liu@intel.com>
5751 * config/i386/i386.md: (UNSPEC_COPYSIGN): Remove.
5752 (UNSPEC_XORSIGN): Ditto.
5754 2021-09-12 Roger Sayle <roger@nextmovesoftware.com>
5756 * expr.c (convert_move): Preserve SUBREG_PROMOTED_VAR_P when
5757 creating a (wider) partial subreg from a SUBREG_PROMOTED_VAR_P
5760 2021-09-11 Aldy Hernandez <aldyh@redhat.com>
5762 * tree-ssa-threadbackward.c (class back_threader_registry): Use
5763 back_jt_path_registry.
5764 * tree-ssa-threadedge.c (jump_threader::jump_threader): Use
5765 fwd_jt_path_registry.
5766 * tree-ssa-threadedge.h (class jump_threader): Same..
5767 * tree-ssa-threadupdate.c
5768 (jump_thread_path_registry::jump_thread_path_registry): Rename...
5769 (jt_path_registry::jt_path_registry): ...to this.
5770 (jump_thread_path_registry::~jump_thread_path_registry): Rename...
5771 (jt_path_registry::~jt_path_registry): ...this.
5772 (fwd_jt_path_registry::fwd_jt_path_registry): New.
5773 (fwd_jt_path_registry::~fwd_jt_path_registry): New.
5774 (jump_thread_path_registry::allocate_thread_edge): Rename...
5775 (jt_path_registry::allocate_thread_edge): ...to this.
5776 (jump_thread_path_registry::allocate_thread_path): Rename...
5777 (jt_path_registry::allocate_thread_path): ...to this.
5778 (jump_thread_path_registry::lookup_redirection_data): Rename...
5779 (fwd_jt_path_registry::lookup_redirection_data): ...to this.
5780 (jump_thread_path_registry::thread_block_1): Rename...
5781 (fwd_jt_path_registry::thread_block_1): ...to this.
5782 (jump_thread_path_registry::thread_block): Rename...
5783 (fwd_jt_path_registry::thread_block): ...to this.
5784 (jt_path_registry::thread_through_loop_header): Rename...
5785 (fwd_jt_path_registry::thread_through_loop_header): ...to this.
5786 (jump_thread_path_registry::mark_threaded_blocks): Rename...
5787 (fwd_jt_path_registry::mark_threaded_blocks): ...to this.
5788 (jump_thread_path_registry::debug_path): Rename...
5789 (jt_path_registry::debug_path): ...to this.
5790 (jump_thread_path_registry::dump): Rename...
5791 (jt_path_registry::debug): ...to this.
5792 (jump_thread_path_registry::rewire_first_differing_edge): Rename...
5793 (back_jt_path_registry::rewire_first_differing_edge): ...to this.
5794 (jump_thread_path_registry::adjust_paths_after_duplication): Rename...
5795 (back_jt_path_registry::adjust_paths_after_duplication): ...to this.
5796 (jump_thread_path_registry::duplicate_thread_path): Rename...
5797 (back_jt_path_registry::duplicate_thread_path): ...to this. Also,
5798 drop ill-formed candidates.
5799 (jump_thread_path_registry::remove_jump_threads_including): Rename...
5800 (fwd_jt_path_registry::remove_jump_threads_including): ...to this.
5801 (jt_path_registry::thread_through_all_blocks): New.
5802 (back_jt_path_registry::update_cfg): New.
5803 (fwd_jt_path_registry::update_cfg): New.
5804 (jump_thread_path_registry::register_jump_thread): Rename...
5805 (jt_path_registry::register_jump_thread): ...to this.
5806 * tree-ssa-threadupdate.h (class jump_thread_path_registry):
5808 (class jt_path_registry): ...here.
5809 (class fwd_jt_path_registry): New.
5810 (class back_jt_path_registry): New.
5812 2021-09-10 liuhongt <hongtao.liu@intel.com>
5815 2021-09-01 liuhongt <hongtao.liu@intel.com>
5817 * emit-rtl.c (validate_subreg): Get rid of all float-int
5820 2021-09-10 Jakub Jelinek <jakub@redhat.com>
5822 * tree-core.h (enum omp_memory_order): Add OMP_MEMORY_ORDER_MASK,
5823 OMP_FAIL_MEMORY_ORDER_UNSPECIFIED, OMP_FAIL_MEMORY_ORDER_RELAXED,
5824 OMP_FAIL_MEMORY_ORDER_ACQUIRE, OMP_FAIL_MEMORY_ORDER_RELEASE,
5825 OMP_FAIL_MEMORY_ORDER_ACQ_REL, OMP_FAIL_MEMORY_ORDER_SEQ_CST and
5826 OMP_FAIL_MEMORY_ORDER_MASK enumerators.
5827 (OMP_FAIL_MEMORY_ORDER_SHIFT): Define.
5828 * gimple-pretty-print.c (dump_gimple_omp_atomic_load,
5829 dump_gimple_omp_atomic_store): Print [weak] for weak atomic
5831 * gimple.h (enum gf_mask): Change GF_OMP_ATOMIC_MEMORY_ORDER
5832 to 6-bit mask, adjust GF_OMP_ATOMIC_NEED_VALUE value and add
5834 (gimple_omp_atomic_weak_p, gimple_omp_atomic_set_weak): New inline
5836 * tree.h (OMP_ATOMIC_WEAK): Define.
5837 * tree-pretty-print.c (dump_omp_atomic_memory_order): Adjust for
5838 fail memory order being encoded in the same enum and also print
5839 fail clause if present.
5840 (dump_generic_node): Print weak clause if OMP_ATOMIC_WEAK.
5841 * gimplify.c (goa_stabilize_expr): Add target_expr and rhs arguments,
5842 handle pre_p == NULL case as a test mode that only returns value
5843 but doesn't change gimplify nor change anything otherwise, adjust
5844 recursive calls, add MODIFY_EXPR, ADDR_EXPR, COND_EXPR, TARGET_EXPR
5845 and CALL_EXPR handling, adjust COMPOUND_EXPR handling for
5846 __builtin_clear_padding calls, for !rhs gimplify as lvalue rather
5848 (gimplify_omp_atomic): Adjust goa_stabilize_expr caller. Handle
5849 COND_EXPR rhs. Set weak flag on gimple load/store for
5851 * omp-expand.c (omp_memory_order_to_fail_memmodel): New function.
5852 (omp_memory_order_to_memmodel): Adjust for fail clause encoded
5854 (expand_omp_atomic_cas): New function.
5855 (expand_omp_atomic_pipeline): Use omp_memory_order_to_fail_memmodel
5857 (expand_omp_atomic): Attempt to optimize atomic compare and exchange
5858 using expand_omp_atomic_cas.
5860 2021-09-10 Aldy Hernandez <aldyh@redhat.com>
5861 Michael Matz <matz@suse.de>
5863 * tree-pass.h (PROP_loop_opts_done): New.
5864 * gimple-range-path.cc (path_range_query::internal_range_of_expr):
5865 Intersect with global range.
5866 * tree-ssa-loop.c (tree_ssa_loop_done): Set PROP_loop_opts_done.
5867 * tree-ssa-threadbackward.c
5868 (back_threader_profitability::profitable_path_p): Disable
5869 threading through latches until after loop optimizations have run.
5871 2021-09-10 David Faust <david.faust@oracle.com>
5873 * doc/invoke.texi: Document BPF -mcpu, -mjmpext, -mjmp32 and -malu32
5876 2021-09-10 David Faust <david.faust@oracle.com>
5878 * config/bpf/bpf-opts.h (bpf_isa_version): New enum.
5879 * config/bpf/bpf-protos.h (bpf_expand_cbranch): New.
5880 * config/bpf/bpf.c (bpf_option_override): Handle -mcpu option.
5881 (bpf_expand_cbranch): New function.
5882 * config/bpf/bpf.md (AM mode iterator): Conditionalize support for SI
5884 (zero_extendsidi2): Only use mov32 instruction if it is available.
5885 (SIM mode iterator): Conditionalize support for SI mode.
5886 (JM mode iterator): New.
5887 (cbranchdi4): Update name, use new JM iterator. Use bpf_expand_cbranch.
5888 (*branch_on_di): Update name, use new JM iterator.
5889 * config/bpf/bpf.opt: (mjmpext): New option.
5893 (bpf_isa): New enum.
5895 2021-09-10 David Faust <david.faust@oracle.com>
5897 * config/bpf/bpf.md (zero_extendhidi2): Add new output template
5898 for register-to-register extensions.
5899 (zero_extendqidi2): Likewise.
5901 2021-09-10 Richard Biener <rguenther@suse.de>
5903 PR middle-end/102273
5904 * internal-fn.c (expand_DEFERRED_INIT): Always expand non-SSA vars.
5906 2021-09-10 Richard Biener <rguenther@suse.de>
5908 PR middle-end/102269
5909 * gimplify.c (is_var_need_auto_init): Empty types do not need
5912 2021-09-10 Richard Biener <rguenther@suse.de>
5914 * configure.ac (--with-stabs): Remove.
5915 * configure: Regenerate.
5916 * doc/install.texi: Remove --with-stabs documentation.
5918 2021-09-10 liuhongt <hongtao.liu@intel.com>
5920 * config/i386/avx512fp16intrin.h: (_mm512_cmp_ph_mask):
5922 (_mm512_mask_cmp_ph_mask): Likewise.
5923 (_mm512_cmp_round_ph_mask): Likewise.
5924 (_mm512_mask_cmp_round_ph_mask): Likewise.
5925 (_mm_cmp_sh_mask): Likewise.
5926 (_mm_mask_cmp_sh_mask): Likewise.
5927 (_mm_cmp_round_sh_mask): Likewise.
5928 (_mm_mask_cmp_round_sh_mask): Likewise.
5929 (_mm_comieq_sh): Likewise.
5930 (_mm_comilt_sh): Likewise.
5931 (_mm_comile_sh): Likewise.
5932 (_mm_comigt_sh): Likewise.
5933 (_mm_comige_sh): Likewise.
5934 (_mm_comineq_sh): Likewise.
5935 (_mm_ucomieq_sh): Likewise.
5936 (_mm_ucomilt_sh): Likewise.
5937 (_mm_ucomile_sh): Likewise.
5938 (_mm_ucomigt_sh): Likewise.
5939 (_mm_ucomige_sh): Likewise.
5940 (_mm_ucomineq_sh): Likewise.
5941 (_mm_comi_round_sh): Likewise.
5942 (_mm_comi_sh): Likewise.
5943 * config/i386/avx512fp16vlintrin.h (_mm_cmp_ph_mask): New intrinsic.
5944 (_mm_mask_cmp_ph_mask): Likewise.
5945 (_mm256_cmp_ph_mask): Likewise.
5946 (_mm256_mask_cmp_ph_mask): Likewise.
5947 * config/i386/i386-builtin-types.def: Add corresponding builtin types.
5948 * config/i386/i386-builtin.def: Add corresponding new builtins.
5949 * config/i386/i386-expand.c
5950 (ix86_expand_args_builtin): Handle new builtin types.
5951 (ix86_expand_round_builtin): Ditto.
5952 * config/i386/i386.md (ssevecmode): Add HF mode.
5953 (MODEFH): New mode iterator.
5954 * config/i386/sse.md
5955 (V48H_AVX512VL): New mode iterator to support HF vector modes.
5956 Ajdust corresponding description.
5957 (ssecmpintprefix): New.
5958 (VI12_AVX512VL): Adjust to support HF vector modes.
5959 (cmp_imm_predicate): Likewise.
5960 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
5962 (avx512f_vmcmp<mode>3<round_saeonly_name>): Likewise.
5963 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Likewise.
5964 (<sse>_<unord>comi<round_saeonly_name>): Likewise.
5966 2021-09-10 liuhongt <hongtao.liu@intel.com>
5968 * config/i386/avx512fp16intrin.h: (_mm512_max_ph): New intrinsic.
5969 (_mm512_mask_max_ph): Likewise.
5970 (_mm512_maskz_max_ph): Likewise.
5971 (_mm512_min_ph): Likewise.
5972 (_mm512_mask_min_ph): Likewise.
5973 (_mm512_maskz_min_ph): Likewise.
5974 (_mm512_max_round_ph): Likewise.
5975 (_mm512_mask_max_round_ph): Likewise.
5976 (_mm512_maskz_max_round_ph): Likewise.
5977 (_mm512_min_round_ph): Likewise.
5978 (_mm512_mask_min_round_ph): Likewise.
5979 (_mm512_maskz_min_round_ph): Likewise.
5980 (_mm_max_sh): Likewise.
5981 (_mm_mask_max_sh): Likewise.
5982 (_mm_maskz_max_sh): Likewise.
5983 (_mm_min_sh): Likewise.
5984 (_mm_mask_min_sh): Likewise.
5985 (_mm_maskz_min_sh): Likewise.
5986 (_mm_max_round_sh): Likewise.
5987 (_mm_mask_max_round_sh): Likewise.
5988 (_mm_maskz_max_round_sh): Likewise.
5989 (_mm_min_round_sh): Likewise.
5990 (_mm_mask_min_round_sh): Likewise.
5991 (_mm_maskz_min_round_sh): Likewise.
5992 * config/i386/avx512fp16vlintrin.h (_mm_max_ph): New intrinsic.
5993 (_mm256_max_ph): Likewise.
5994 (_mm_mask_max_ph): Likewise.
5995 (_mm256_mask_max_ph): Likewise.
5996 (_mm_maskz_max_ph): Likewise.
5997 (_mm256_maskz_max_ph): Likewise.
5998 (_mm_min_ph): Likewise.
5999 (_mm256_min_ph): Likewise.
6000 (_mm_mask_min_ph): Likewise.
6001 (_mm256_mask_min_ph): Likewise.
6002 (_mm_maskz_min_ph): Likewise.
6003 (_mm256_maskz_min_ph): Likewise.
6004 * config/i386/i386-builtin-types.def: Add corresponding builtin types.
6005 * config/i386/i386-builtin.def: Add corresponding new builtins.
6006 * config/i386/i386-expand.c
6007 (ix86_expand_args_builtin): Handle new builtin types.
6008 * config/i386/sse.md
6009 (<code><mode>3<mask_name><round_saeonly_name>): Adjust to
6010 support HF vector modes.
6011 (*<code><mode>3<mask_name><round_saeonly_name>): Likewise.
6012 (ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>):
6014 (<sse>_vm<code><mode>3<mask_scalar_name><round_saeonly_scalar_name>):
6016 * config/i386/subst.md (round_saeonly_mode512bit_condition):
6017 Adjust for HF vector modes.
6019 2021-09-10 Liu, Hongtao <hongtao.liu@intel.com>
6021 * config/i386/avx512fp16intrin.h (_mm_add_sh): New intrinsic.
6022 (_mm_mask_add_sh): Likewise.
6023 (_mm_maskz_add_sh): Likewise.
6024 (_mm_sub_sh): Likewise.
6025 (_mm_mask_sub_sh): Likewise.
6026 (_mm_maskz_sub_sh): Likewise.
6027 (_mm_mul_sh): Likewise.
6028 (_mm_mask_mul_sh): Likewise.
6029 (_mm_maskz_mul_sh): Likewise.
6030 (_mm_div_sh): Likewise.
6031 (_mm_mask_div_sh): Likewise.
6032 (_mm_maskz_div_sh): Likewise.
6033 (_mm_add_round_sh): Likewise.
6034 (_mm_mask_add_round_sh): Likewise.
6035 (_mm_maskz_add_round_sh): Likewise.
6036 (_mm_sub_round_sh): Likewise.
6037 (_mm_mask_sub_round_sh): Likewise.
6038 (_mm_maskz_sub_round_sh): Likewise.
6039 (_mm_mul_round_sh): Likewise.
6040 (_mm_mask_mul_round_sh): Likewise.
6041 (_mm_maskz_mul_round_sh): Likewise.
6042 (_mm_div_round_sh): Likewise.
6043 (_mm_mask_div_round_sh): Likewise.
6044 (_mm_maskz_div_round_sh): Likewise.
6045 * config/i386/i386-builtin-types.def: Add corresponding builtin types.
6046 * config/i386/i386-builtin.def: Add corresponding new builtins.
6047 * config/i386/i386-expand.c
6048 (ix86_expand_round_builtin): Handle new builtins.
6049 * config/i386/sse.md (VF_128): Change description.
6050 (<sse>_vm<plusminus_insn><mode>3<mask_scalar_name><round_scalar_name>):
6051 Adjust to support HF vector modes.
6052 (<sse>_vm<multdiv_mnemonic><mode>3<mask_scalar_name><round_scalar_name>):
6055 2021-09-10 H.J. Lu <hjl.tools@gmail.com>
6057 * config/i386/i386-expand.c
6058 (ix86_avx256_split_vector_move_misalign): Handle V16HF mode.
6059 * config/i386/i386.c
6060 (ix86_preferred_simd_mode): Handle HF mode.
6061 * config/i386/sse.md (V_256H): New mode iterator.
6062 (avx_vextractf128<mode>): Use it.
6063 (VEC_INIT_MODE): Align vector HFmode condition to vector
6064 HImodes since there're no real HF instruction used.
6065 (VEC_INIT_HALF_MODE): Ditto.
6067 (VIHF_AVX512BW): Ditto.
6068 (*vec_extracthf): Ditto.
6069 (VEC_EXTRACT_MODE): Ditto.
6071 2021-09-10 Richard Biener <rguenther@suse.de>
6074 * config/dbx.h: Remove.
6075 * config/dbxcoff.h: Do not define PREFERRED_DEBUGGING_TYPE.
6076 * config/lynx.h: Likewise.
6078 2021-09-10 liuhongt <hongtao.liu@intel.com>
6080 * config/i386/i386-expand.c (ix86_expand_copysign): Expand
6081 right into ANDNOT + AND + IOR, using paradoxical subregs.
6082 (ix86_split_copysign_const): Remove.
6083 (ix86_split_copysign_var): Ditto.
6084 * config/i386/i386-protos.h (ix86_split_copysign_const): Dotto.
6085 (ix86_split_copysign_var): Ditto.
6086 * config/i386/i386.md (@copysign<mode>3_const): Ditto.
6087 (@copysign<mode>3_var): Ditto.
6089 2021-09-09 qing zhao <qing.zhao@oracle.com>
6091 * builtins.c (expand_builtin_memset): Make external visible.
6092 * builtins.h (expand_builtin_memset): Declare extern.
6093 * common.opt (ftrivial-auto-var-init=): New option.
6094 * doc/extend.texi: Document the uninitialized attribute.
6095 * doc/invoke.texi: Document -ftrivial-auto-var-init.
6096 * flag-types.h (enum auto_init_type): New enumerated type
6098 * gimple-fold.c (clear_padding_type): Add one new parameter.
6099 (clear_padding_union): Likewise.
6100 (clear_padding_emit_loop): Likewise.
6101 (clear_type_padding_in_mask): Likewise.
6102 (gimple_fold_builtin_clear_padding): Handle this new parameter.
6103 * gimplify.c (gimple_add_init_for_auto_var): New function.
6104 (gimple_add_padding_init_for_auto_var): New function.
6105 (is_var_need_auto_init): New function.
6106 (gimplify_decl_expr): Add initialization to automatic variables per
6108 (gimplify_call_expr): Add one new parameter for call to
6109 __builtin_clear_padding.
6110 (gimplify_init_constructor): Add padding initialization in the end.
6111 * internal-fn.c (INIT_PATTERN_VALUE): New macro.
6112 (expand_DEFERRED_INIT): New function.
6113 * internal-fn.def (DEFERRED_INIT): New internal function.
6114 * tree-cfg.c (verify_gimple_call): Verify calls to .DEFERRED_INIT.
6115 * tree-sra.c (generate_subtree_deferred_init): New function.
6116 (scan_function): Avoid setting cannot_scalarize_away_bitmap for
6117 calls to .DEFERRED_INIT.
6118 (sra_modify_deferred_init): New function.
6119 (sra_modify_function_body): Handle calls to DEFERRED_INIT specially.
6120 * tree-ssa-structalias.c (find_func_aliases_for_call): Likewise.
6121 * tree-ssa-uninit.c (warn_uninit): Handle calls to DEFERRED_INIT
6123 (check_defs): Likewise.
6124 (warn_uninitialized_vars): Likewise.
6125 * tree-ssa.c (ssa_undefined_value_p): Likewise.
6126 * tree.c (build_common_builtin_nodes): Build tree node for
6127 BUILT_IN_CLEAR_PADDING when needed.
6129 2021-09-09 Richard Biener <rguenther@suse.de>
6131 * tree-ssa-loop-im.c (fill_always_executed_in_1): Walk
6134 2021-09-09 Richard Biener <rguenther@suse.de>
6136 * tree-ssa-loop-im.c (fill_always_executed_in_1): Integrate
6137 DOM walk from get_loop_body_in_dom_order using a worklist
6140 2021-09-09 liuhongt <hongtao.liu@intel.com>
6142 * config.gcc: Add avx512fp16vlintrin.h.
6143 * config/i386/avx512fp16intrin.h: (_mm512_add_ph): New intrinsic.
6144 (_mm512_mask_add_ph): Likewise.
6145 (_mm512_maskz_add_ph): Likewise.
6146 (_mm512_sub_ph): Likewise.
6147 (_mm512_mask_sub_ph): Likewise.
6148 (_mm512_maskz_sub_ph): Likewise.
6149 (_mm512_mul_ph): Likewise.
6150 (_mm512_mask_mul_ph): Likewise.
6151 (_mm512_maskz_mul_ph): Likewise.
6152 (_mm512_div_ph): Likewise.
6153 (_mm512_mask_div_ph): Likewise.
6154 (_mm512_maskz_div_ph): Likewise.
6155 (_mm512_add_round_ph): Likewise.
6156 (_mm512_mask_add_round_ph): Likewise.
6157 (_mm512_maskz_add_round_ph): Likewise.
6158 (_mm512_sub_round_ph): Likewise.
6159 (_mm512_mask_sub_round_ph): Likewise.
6160 (_mm512_maskz_sub_round_ph): Likewise.
6161 (_mm512_mul_round_ph): Likewise.
6162 (_mm512_mask_mul_round_ph): Likewise.
6163 (_mm512_maskz_mul_round_ph): Likewise.
6164 (_mm512_div_round_ph): Likewise.
6165 (_mm512_mask_div_round_ph): Likewise.
6166 (_mm512_maskz_div_round_ph): Likewise.
6167 * config/i386/avx512fp16vlintrin.h: New header.
6168 * config/i386/i386-builtin-types.def (V16HF, V8HF, V32HF):
6169 Add new builtin types.
6170 * config/i386/i386-builtin.def: Add corresponding builtins.
6171 * config/i386/i386-expand.c
6172 (ix86_expand_args_builtin): Handle new builtin types.
6173 (ix86_expand_round_builtin): Likewise.
6174 * config/i386/immintrin.h: Include avx512fp16vlintrin.h
6175 * config/i386/sse.md (VFH): New mode_iterator.
6177 (avx512fmaskmode): Add HF vector modes.
6178 (avx512fmaskhalfmode): Likewise.
6179 (<plusminus_insn><mode>3<mask_name><round_name>): Adjust to for
6181 (*<plusminus_insn><mode>3<mask_name><round_name>): Likewise.
6182 (mul<mode>3<mask_name><round_name>): Likewise.
6183 (*mul<mode>3<mask_name><round_name>): Likewise.
6184 (div<mode>3): Likewise.
6185 (<sse>_div<mode>3<mask_name><round_name>): Likewise.
6186 * config/i386/subst.md (SUBST_V): Add HF vector modes.
6187 (SUBST_A): Likewise.
6188 (round_mode512bit_condition): Adjust for V32HFmode.
6190 2021-09-09 liuhongt <hongtao.liu@intel.com>
6193 * config/i386/sse.md (reduc_plus_scal_<mode>): Split to ..
6194 (reduc_plus_scal_v4sf): .. this, New define_expand.
6195 (reduc_plus_scal_v2df): .. and this, New define_expand.
6197 2021-09-09 liuhongt <hongtao.liu@intel.com>
6200 * config/i386/sse.md (*vec_extract<mode><ssescalarmodelower>_valign):
6203 2021-09-08 Jonathan Wakely <jwakely@redhat.com>
6206 * doc/trouble.texi (Copy Assignment): Fix description of
6207 behaviour and fix code in example.
6209 2021-09-08 Segher Boessenkool <segher@kernel.crashing.org>
6212 * config/rs6000/rs6000-logue.c (rs6000_emit_epilogue): For ELFv2 use
6213 r11 instead of r12 for restoring CR.
6215 2021-09-08 Jakub Jelinek <jakub@redhat.com>
6216 liuhongt <hongtao.liu@intel.com>
6219 * config/i386/i386.md (@xorsign<mode>3_1): Remove.
6220 * config/i386/i386-expand.c (ix86_expand_xorsign): Expand right away
6221 into AND with mask and XOR, using paradoxical subregs.
6222 (ix86_split_xorsign): Remove.
6223 * config/i386/i386-protos.h (ix86_split_xorsign): Remove.
6225 2021-09-08 Di Zhao <dizhao@os.amperecomputing.com>
6227 * tree-ssa-sccvn.c (vn_nary_op_insert_into): fix result compare
6229 2021-09-08 Jakub Jelinek <jakub@redhat.com>
6232 * config/i386/i386.md (xorsign<mode>3): If operands[1] is equal to
6233 operands[2], emit abs<mode>2 instead.
6234 (@xorsign<mode>3_1): Add early-clobbers for output operand, enable
6235 first alternative even for avx, add another alternative with
6236 =&Yv <- 0, Yv, Yvm constraints.
6237 * config/i386/i386-expand.c (ix86_split_xorsign): If op0 is equal
6238 to op1, emit vpandn instead.
6240 2021-09-08 liuhongt <hongtao.liu@intel.com>
6242 * config/i386/avx512fp16intrin.h (_mm_set_ph): New intrinsic.
6243 (_mm256_set_ph): Likewise.
6244 (_mm512_set_ph): Likewise.
6245 (_mm_setr_ph): Likewise.
6246 (_mm256_setr_ph): Likewise.
6247 (_mm512_setr_ph): Likewise.
6248 (_mm_set1_ph): Likewise.
6249 (_mm256_set1_ph): Likewise.
6250 (_mm512_set1_ph): Likewise.
6251 (_mm_setzero_ph): Likewise.
6252 (_mm256_setzero_ph): Likewise.
6253 (_mm512_setzero_ph): Likewise.
6254 (_mm_set_sh): Likewise.
6255 (_mm_load_sh): Likewise.
6256 (_mm_store_sh): Likewise.
6257 * config/i386/i386-builtin-types.def (V8HF): New type.
6258 (DEF_FUNCTION_TYPE (V8HF, V8HI)): New builtin function type
6259 * config/i386/i386-expand.c (ix86_expand_vector_init_duplicate):
6260 Support vector HFmodes.
6261 (ix86_expand_vector_init_one_nonzero): Likewise.
6262 (ix86_expand_vector_init_one_var): Likewise.
6263 (ix86_expand_vector_init_interleave): Likewise.
6264 (ix86_expand_vector_init_general): Likewise.
6265 (ix86_expand_vector_set): Likewise.
6266 (ix86_expand_vector_extract): Likewise.
6267 (ix86_expand_vector_init_concat): Likewise.
6268 (ix86_expand_sse_movcc): Handle vector HFmodes.
6269 (ix86_expand_vector_set_var): Ditto.
6270 * config/i386/i386-modes.def: Add HF vector modes in comment.
6271 * config/i386/i386.c (classify_argument): Add HF vector modes.
6272 (ix86_hard_regno_mode_ok): Allow HF vector modes for AVX512FP16.
6273 (ix86_vector_mode_supported_p): Likewise.
6274 (ix86_set_reg_reg_cost): Handle vector HFmode.
6275 (ix86_get_ssemov): Handle vector HFmode.
6276 (function_arg_advance_64): Pass unamed V16HFmode and V32HFmode
6278 (function_arg_advance_32): Pass V8HF/V16HF/V32HF by sse reg for 32bit
6280 (function_arg_advance_32): Ditto.
6281 * config/i386/i386.h (VALID_AVX512FP16_REG_MODE): New.
6282 (VALID_AVX256_REG_OR_OI_MODE): Rename to ..
6283 (VALID_AVX256_REG_OR_OI_VHF_MODE): .. this, and add V16HF.
6284 (VALID_SSE2_REG_VHF_MODE): New.
6285 (VALID_AVX512VL_128_REG_MODE): Add V8HF and TImode.
6286 (SSE_REG_MODE_P): Add vector HFmode.
6287 * config/i386/i386.md (mode): Add HF vector modes.
6288 (MODE_SIZE): Likewise.
6289 (ssemodesuffix): Add ph suffix for HF vector modes.
6290 * config/i386/sse.md (VFH_128): New mode iterator.
6291 (VMOVE): Adjust for HF vector modes.
6293 (V_256_512): Likewise.
6295 (avx512fmaskmode): Likewise.
6296 (shuffletype): Likewise.
6297 (sseinsnmode): Likewise.
6298 (ssedoublevecmode): Likewise.
6299 (ssehalfvecmode): Likewise.
6300 (ssehalfvecmodelower): Likewise.
6301 (ssePScmode): Likewise.
6302 (ssescalarmode): Likewise.
6303 (ssescalarmodelower): Likewise.
6304 (sseintprefix): Likewise.
6306 (bcstscalarsuff): Likewise.
6307 (xtg_mode): Likewise.
6308 (VI12HF_AVX512VL): New mode_iterator.
6309 (VF_AVX512FP16): Likewise.
6311 (VIHF_256): Likewise.
6312 (VIHF_AVX512BW): Likewise.
6313 (V16_256): Likewise.
6314 (V32_512): Likewise.
6315 (sseintmodesuffix): New mode_attr.
6316 (sse): Add scalar and vector HFmodes.
6317 (ssescalarmode): Add vector HFmode mapping.
6318 (ssescalarmodesuffix): Add sh suffix for HFmode.
6319 (*<sse>_vm<insn><mode>3): Use VFH_128.
6320 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
6321 (*ieee_<ieee_maxmin><mode>3): Likewise.
6322 (<avx512>_blendm<mode>): New define_insn.
6323 (vec_setv8hf): New define_expand.
6324 (vec_set<mode>_0): New define_insn for HF vector set.
6325 (*avx512fp16_movsh): Likewise.
6326 (avx512fp16_movsh): Likewise.
6327 (vec_extract_lo_v32hi): Rename to ...
6328 (vec_extract_lo_<mode>): ... this, and adjust to allow HF
6330 (vec_extract_hi_v32hi): Likewise.
6331 (vec_extract_hi_<mode>): Likewise.
6332 (vec_extract_lo_v16hi): Likewise.
6333 (vec_extract_lo_<mode>): Likewise.
6334 (vec_extract_hi_v16hi): Likewise.
6335 (vec_extract_hi_<mode>): Likewise.
6336 (vec_set_hi_v16hi): Likewise.
6337 (vec_set_hi_<mode>): Likewise.
6338 (vec_set_lo_v16hi): Likewise.
6339 (vec_set_lo_<mode>): Likewise.
6340 (*vec_extract<mode>_0): New define_insn_and_split for HF
6342 (*vec_extracthf): New define_insn.
6343 (VEC_EXTRACT_MODE): Add HF vector modes.
6344 (PINSR_MODE): Add V8HF.
6345 (sse2p4_1): Likewise.
6346 (pinsr_evex_isa): Likewise.
6347 (<sse2p4_1>_pinsr<ssemodesuffix>): Adjust to support
6348 insert for V8HFmode.
6349 (pbroadcast_evex_isa): Add HF vector modes.
6350 (AVX2_VEC_DUP_MODE): Likewise.
6351 (VEC_INIT_MODE): Likewise.
6352 (VEC_INIT_HALF_MODE): Likewise.
6353 (avx2_pbroadcast<mode>): Adjust to support HF vector mode
6355 (avx2_pbroadcast<mode>_1): Likewise.
6356 (<avx512>_vec_dup<mode>_1): Likewise.
6357 (<avx512>_vec_dup<mode><mask_name>): Likewise.
6358 (<mask_codefor><avx512>_vec_dup_gpr<mode><mask_name>):
6361 2021-09-08 Guo, Xuepeng <xuepeng.guo@intel.com>
6362 H.J. Lu <hongjiu.lu@intel.com>
6363 Liu Hongtao <hongtao.liu@intel.com>
6364 Wang Hongyu <hongyu.wang@intel.com>
6365 Xu Dianhong <dianhong.xu@intel.com>
6367 * common/config/i386/cpuinfo.h (get_available_features):
6368 Detect FEATURE_AVX512FP16.
6369 * common/config/i386/i386-common.c
6370 (OPTION_MASK_ISA_AVX512FP16_SET,
6371 OPTION_MASK_ISA_AVX512FP16_UNSET,
6372 OPTION_MASK_ISA2_AVX512FP16_SET,
6373 OPTION_MASK_ISA2_AVX512FP16_UNSET): New.
6374 (OPTION_MASK_ISA2_AVX512BW_UNSET,
6375 OPTION_MASK_ISA2_AVX512BF16_UNSET): Add AVX512FP16.
6376 (ix86_handle_option): Handle -mavx512fp16.
6377 * common/config/i386/i386-cpuinfo.h (enum processor_features):
6378 Add FEATURE_AVX512FP16.
6379 * common/config/i386/i386-isas.h: Add entry for AVX512FP16.
6380 * config.gcc: Add avx512fp16intrin.h.
6381 * config/i386/avx512fp16intrin.h: New intrinsic header.
6382 * config/i386/cpuid.h: Add bit_AVX512FP16.
6383 * config/i386/i386-builtin-types.def: (FLOAT16): New primitive type.
6384 * config/i386/i386-builtins.c: Support _Float16 type for i386
6386 (ix86_register_float16_builtin_type): New function.
6387 (ix86_float16_type_node): New.
6388 * config/i386/i386-c.c (ix86_target_macros_internal): Define
6390 * config/i386/i386-expand.c (ix86_expand_branch): Support
6392 (ix86_prepare_fp_compare_args): Adjust TARGET_SSE_MATH &&
6393 SSE_FLOAT_MODE_P to SSE_FLOAT_MODE_SSEMATH_OR_HF_P.
6394 (ix86_expand_fp_movcc): Ditto.
6395 * config/i386/i386-isa.def: Add PTA define for AVX512FP16.
6396 * config/i386/i386-options.c (isa2_opts): Add -mavx512fp16.
6397 (ix86_valid_target_attribute_inner_p): Add avx512fp16 attribute.
6398 * config/i386/i386.c (ix86_get_ssemov): Use
6399 vmovdqu16/vmovw/vmovsh for HFmode/HImode scalar or vector.
6400 (ix86_get_excess_precision): Use
6401 FLT_EVAL_METHOD_PROMOTE_TO_FLOAT16 when TARGET_AVX512FP16
6403 (sse_store_index): Use SFmode cost for HFmode cost.
6404 (inline_memory_move_cost): Add HFmode, and perfer SSE cost over
6405 GPR cost for HFmode.
6406 (ix86_hard_regno_mode_ok): Allow HImode in sse register.
6407 (ix86_mangle_type): Add manlging for _Float16 type.
6408 (inline_secondary_memory_needed): No memory is needed for
6409 16bit movement between gpr and sse reg under
6411 (ix86_multiplication_cost): Adjust TARGET_SSE_MATH &&
6412 SSE_FLOAT_MODE_P to SSE_FLOAT_MODE_SSEMATH_OR_HF_P.
6413 (ix86_division_cost): Ditto.
6414 (ix86_rtx_costs): Ditto.
6415 (ix86_add_stmt_cost): Ditto.
6416 (ix86_optab_supported_p): Ditto.
6417 * config/i386/i386.h (VALID_AVX512F_SCALAR_MODE): Add HFmode.
6418 (SSE_FLOAT_MODE_SSEMATH_OR_HF_P): Add HFmode.
6419 (PTA_SAPPHIRERAPIDS): Add PTA_AVX512FP16.
6420 * config/i386/i386.md (mode): Add HFmode.
6421 (MODE_SIZE): Add HFmode.
6422 (isa): Add avx512fp16.
6423 (enabled): Handle avx512fp16.
6424 (ssemodesuffix): Add sh suffix for HFmode.
6425 (comm): Add mult, div.
6426 (plusminusmultdiv): New code iterator.
6427 (insn): Add mult, div.
6428 (*movhf_internal): Adjust for avx512fp16 instruction.
6429 (*movhi_internal): Ditto.
6430 (*cmpi<unord>hf): New define_insn for HFmode.
6431 (*ieee_s<ieee_maxmin>hf3): Likewise.
6432 (extendhf<mode>2): Likewise.
6433 (trunc<mode>hf2): Likewise.
6434 (float<floatunssuffix><mode>hf2): Likewise.
6435 (*<insn>hf): Likewise.
6436 (cbranchhf4): New expander.
6437 (movhfcc): Likewise.
6438 (<insn>hf3): Likewise.
6441 * config/i386/i386.opt: Add mavx512fp16.
6442 * config/i386/immintrin.h: Include avx512fp16intrin.h.
6443 * doc/invoke.texi: Add mavx512fp16.
6444 * doc/extend.texi: Add avx512fp16 Usage Notes.
6446 2021-09-08 liuhongt <hongtao.liu@intel.com>
6448 * common.opt: Support -fexcess-precision=16.
6449 * config/aarch64/aarch64.c (aarch64_excess_precision): Return
6450 FLT_EVAL_METHOD_PROMOTE_TO_FLOAT16 when
6451 EXCESS_PRECISION_TYPE_FLOAT16.
6452 * config/arm/arm.c (arm_excess_precision): Ditto.
6453 * config/i386/i386.c (ix86_get_excess_precision): Ditto.
6454 * config/m68k/m68k.c (m68k_excess_precision): Issue an error
6455 when EXCESS_PRECISION_TYPE_FLOAT16.
6456 * config/s390/s390.c (s390_excess_precision): Ditto.
6457 * coretypes.h (enum excess_precision_type): Add
6458 EXCESS_PRECISION_TYPE_FLOAT16.
6459 * doc/tm.texi (TARGET_C_EXCESS_PRECISION): Update documents.
6460 * doc/tm.texi.in (TARGET_C_EXCESS_PRECISION): Ditto.
6461 * doc/extend.texi (Half-Precision): Document
6462 -fexcess-precision=16.
6463 * flag-types.h (enum excess_precision): Add
6464 EXCESS_PRECISION_FLOAT16.
6465 * target.def (excess_precision): Update document.
6466 * tree.c (excess_precision_type): Set excess_precision_type to
6467 EXCESS_PRECISION_FLOAT16 when -fexcess-precision=16.
6469 2021-09-08 liuhongt <hongtao.liu@intel.com>
6471 * doc/extend.texi: (@node Floating Types): Adjust the wording.
6472 (@node Half-Precision): Ditto.
6474 2021-09-07 Takayuki 'January June' Suwa <jjsuwa_sys3175@yahoo.co.jp>
6477 * config/xtensa/xtensa.c (xtensa_emit_move_sequence): Add
6478 'CONST_INT_P (src)' to the condition of the block that tries to
6479 eliminate literal when loading integer contant.
6481 2021-09-07 David Faust <david.faust@oracle.com>
6483 * doc/extend.texi (BPF Type Attributes) New node.
6484 Document new preserve_access_index attribute.
6485 Document new preserve_access_index builtin.
6486 * doc/invoke.texi: Document -mco-re and -mno-co-re options.
6488 2021-09-07 David Faust <david.faust@oracle.com>
6490 * config/bpf/bpf.c: Adjust includes.
6491 (bpf_handle_preserve_access_index_attribute): New function.
6492 (bpf_attribute_table): Use it here.
6493 (bpf_builtins): Add BPF_BUILTIN_PRESERVE_ACCESS_INDEX.
6494 (bpf_option_override): Handle "-mco-re" option.
6495 (bpf_asm_init_sections): New.
6496 (TARGET_ASM_INIT_SECTIONS): Redefine.
6497 (bpf_file_end): New.
6498 (TARGET_ASM_FILE_END): Redefine.
6499 (bpf_init_builtins): Add "__builtin_preserve_access_index".
6500 (bpf_core_compute, bpf_core_get_index): New.
6501 (is_attr_preserve_access): New.
6502 (bpf_expand_builtin): Handle new builtins.
6503 (bpf_core_newdecl, bpf_core_is_maybe_aggregate_access): New.
6504 (bpf_core_walk): New.
6505 (bpf_resolve_overloaded_builtin): New.
6506 (TARGET_RESOLVE_OVERLOADED_BUILTIN): Redefine.
6508 (pass_bpf_core_attr): New RTL pass.
6509 * config/bpf/bpf-passes.def: New file.
6510 * config/bpf/bpf-protos.h (make_pass_bpf_core_attr): New.
6511 * config/bpf/coreout.c: New file.
6512 * config/bpf/coreout.h: Likewise.
6513 * config/bpf/t-bpf (TM_H): Add $(srcdir)/config/bpf/coreout.h.
6514 (coreout.o): New rule.
6515 (PASSES_EXTRA): Add $(srcdir)/config/bpf/bpf-passes.def.
6516 * config.gcc (bpf): Add coreout.h to extra_headers.
6517 Add coreout.o to extra_objs.
6518 Add $(srcdir)/config/bpf/coreout.c to target_gtfiles.
6520 2021-09-07 David Faust <david.faust@oracle.com>
6522 * btfout.c (get_btf_id): Function is no longer static.
6523 * ctfc.h: Expose it here.
6525 2021-09-07 David Faust <david.faust@oracle.com>
6527 * ctfc.c (ctf_lookup_tree_type): New function.
6530 2021-09-07 David Faust <david.faust@oracle.com>
6532 * ctfc.c (ctf_dtd_lookup): Function is no longer static.
6533 * ctfc.h: Analogous change.
6535 2021-09-07 David Faust <david.faust@oracle.com>
6537 * dwarf2out.c (lookup_type_die): Function is no longer static.
6538 * dwarf2out.h: Expose it here.
6540 2021-09-07 Indu Bhagat <indu.bhagat@oracle.com>
6542 * dwarf2ctf.c (ctf_debug_finalize): Make it static.
6543 (ctf_debug_early_finish): New definition.
6544 (ctf_debug_finish): Likewise.
6545 * dwarf2ctf.h (ctf_debug_finalize): Remove declaration.
6546 (ctf_debug_early_finish): New declaration.
6547 (ctf_debug_finish): Likewise.
6548 * dwarf2out.c (dwarf2out_finish): Invoke ctf_debug_finish.
6549 (dwarf2out_early_finish): Invoke ctf_debug_early_finish.
6551 2021-09-07 Indu Bhagat <indu.bhagat@oracle.com>
6553 * config/bpf/bpf.c (bpf_option_override): For BPF backend, disable LTO
6554 support when compiling for CO-RE.
6555 * config/bpf/bpf.opt: Add new command line option -mco-re.
6557 2021-09-07 Indu Bhagat <indu.bhagat@oracle.com>
6559 * flag-types.h (enum debug_info_type): Add new enum
6560 DINFO_TYPE_BTF_WITH_CORE.
6561 (BTF_WITH_CORE_DEBUG): New bitmask.
6562 * flags.h (btf_with_core_debuginfo_p): New declaration.
6563 * opts.c (btf_with_core_debuginfo_p): New definition.
6565 2021-09-07 Jason Merrill <jason@redhat.com>
6567 * tree.h (error_operand_p): Change to inline function.
6569 2021-09-07 Aldy Hernandez <aldyh@redhat.com>
6571 * tree-ssa-threadedge.c (forwarder_block_p): Rename to...
6572 (empty_block_with_phis_p): ...this.
6573 (potentially_threadable_block): Same.
6574 (jump_threader::thread_through_normal_block): Same.
6576 2021-09-07 Eric Botcazou <ebotcazou@adacore.com>
6579 * dwarf2out.c (mark_base_types): New overloaded function.
6580 (dwarf2out_early_finish): Invoke it on the COMDAT type list as well
6581 as the compilation unit, and call move_marked_base_types afterward.
6583 2021-09-07 H.J. Lu <hjl.tools@gmail.com>
6586 * config/i386/i386-expand.c (ix86_expand_convert_uns_sisf_sse):
6588 (ix86_expand_vector_convert_uns_vsivsf): Likewise.
6590 2021-09-07 Richard Biener <rguenther@suse.de>
6592 PR tree-optimization/102226
6593 * tree-vect-loop.c (vect_transform_cycle_phi): Record
6594 the converted value for the epilogue PHI use.
6596 2021-09-07 Martin Liska <mliska@suse.cz>
6598 PR gcov-profile/80223
6599 * ipa-inline.c (can_inline_edge_p): Similarly to sanitizer
6600 options, do not inline when no_profile_instrument_function
6601 attributes are different in early inliner. It's fine to inline
6602 it after PGO instrumentation.
6604 2021-09-07 Richard Biener <rguenther@suse.de>
6606 PR tree-optimization/101555
6607 * tree-ssa-pre.c (translate_vuse_through_block): Do not
6608 perform an alias walk to determine the validity of the
6609 mem at the start of the block which is already guaranteed
6610 by means of prune_clobbered_mems.
6611 (phi_translate_1): Pass edge to translate_vuse_through_block.
6613 2021-09-07 Xionghu Luo <luoxhu@linux.ibm.com>
6616 * config/rs6000/rs6000.md (fmod<mode>3): New define_expand.
6617 (remainder<mode>3): Likewise.
6619 2021-09-07 YunQiang Su <yunqiang.su@cipunited.com>
6621 * config/mips/mips.c (mips_file_start): add .module for
6624 2021-09-06 Roger Sayle <roger@nextmovesoftware.com>
6626 * wide-int.cc (wi::clz): Reorder tests to ensure the result
6627 is zero for all negative values.
6629 2021-09-06 Tobias Burnus <tobias@codesourcery.com>
6631 * doc/invoke.texi (-foffload-options): Fix @opindex.
6633 2021-09-06 H.J. Lu <hjl.tools@gmail.com>
6636 * config/i386/i386-expand.c (ix86_split_xorsign): Use operands[2].
6637 * config/i386/i386.md (@xorsign<mode>3_1): Add non-destructive
6638 source alternative for AVX.
6640 2021-09-06 liuhongt <hongtao.liu@intel.com>
6642 PR middle-end/102182
6643 * optabs.c (expand_fix): Add from1 to avoid from being
6646 2021-09-06 Eric Botcazou <ebotcazou@adacore.com>
6648 * dwarf2out.c (modified_type_die): Deal with all array types earlier
6649 and use local variable consistently throughout the function.
6651 2021-09-06 Jakub Jelinek <jakub@redhat.com>
6653 PR tree-optimization/102207
6654 * match.pd: Don't demote operands of IFN_{ADD,SUB,MUL}_OVERFLOW if they
6655 were promoted from signed to wider unsigned type.
6657 2021-09-06 Andrew Pinski <apinski@marvell.com>
6659 PR tree-optimization/63184
6660 * match.pd: Add simplification of pointer_diff of two pointer_plus
6661 with addr_expr in the first operand of each pointer_plus.
6662 Add simplificatoin of ne/eq of two pointer_plus with addr_expr
6663 in the first operand of each pointer_plus.
6665 2021-09-06 Richard Biener <rguenther@suse.de>
6667 PR tree-optimization/102176
6668 * tree-vect-slp.c (vect_slp_gather_vectorized_scalar_stmts):
6670 (vect_bb_slp_scalar_cost): Use the computed set of
6671 vectorized scalar stmts instead of relying on the out-of-date
6672 and not accurate PURE_SLP_STMT.
6673 (vect_bb_vectorization_profitable_p): Compute the set
6674 of vectorized scalar stmts.
6676 2021-09-05 Aldy Hernandez <aldyh@redhat.com>
6678 * gimple-range-path.cc (path_range_query::range_of_stmt): Remove
6679 GIMPLE_COND special casing.
6680 (path_range_query::range_defined_in_block): Use range_of_stmt
6681 instead of calling fold_range directly.
6683 2021-09-05 Aldy Hernandez <aldyh@redhat.com>
6685 * gimple-range-path.cc (path_range_query::range_of_expr): Set
6686 m_undefined_path when appropriate.
6687 (path_range_query::internal_range_of_expr): Copy from range_of_expr.
6688 (path_range_query::unreachable_path_p): New.
6689 (path_range_query::precompute_ranges): Set m_undefined_path.
6690 * gimple-range-path.h (path_range_query::unreachable_path_p): New.
6691 (path_range_query::internal_range_of_expr): New.
6692 * tree-ssa-threadbackward.c (back_threader::find_taken_edge_cond):
6693 Use unreachable_path_p.
6695 2021-09-05 Aldy Hernandez <aldyh@redhat.com>
6697 * tree-ssa-threadbackward.c (back_threader::maybe_register_path):
6698 Remove argument and call find_taken_edge.
6699 (back_threader::resolve_phi): Do not calculate taken edge before
6700 calling maybe_register_path.
6701 (back_threader::find_paths_to_names): Same.
6703 2021-09-05 Jeff Law <jlaw@localhost.localdomain>
6705 * config/h8300/h8300.md (QHSI2 mode iterator): New mode iterator.
6706 * config/h8300/testcompare.md (store_c): Update name, use new
6708 (store_neg_c, store_shifted_c): New patterns.
6710 2021-09-03 Segher Boessenkool <segher@kernel.crashing.org>
6713 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): On ELFv2 use r11
6714 instead of r12 for CR save, in all cases.
6716 2021-09-03 Andrew Pinski <apinski@marvell.com>
6718 * config/aarch64/aarch64-sve-builtins.cc (register_vector_type):
6719 Handle error_mark_node as the type of the type_decl.
6721 2021-09-03 Andrew Pinski <apinski@marvell.com>
6723 * config/aarch64/aarch64-builtins.c (struct aarch64_simd_type_info):
6725 (aarch64_simd_types): Likewise.
6726 (aarch64_simd_intOI_type_node): Likewise.
6727 (aarch64_simd_intCI_type_node): Likewise.
6728 (aarch64_simd_intXI_type_node): Likewise.
6729 * config/aarch64/aarch64.h (aarch64_fp16_type_node): Likewise.
6730 (aarch64_fp16_ptr_type_node): Likewise.
6731 (aarch64_bf16_type_node): Likewise.
6732 (aarch64_bf16_ptr_type_node): Likewise.
6734 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
6736 * range-op.cc (operator_minus::op1_op2_relation_effect): Abstract
6738 (minus_op1_op2_relation_effect): ...here.
6739 (class operator_pointer_diff): New.
6740 (operator_pointer_diff::op1_op2_relation_effect): Call
6741 minus_op1_op2_relation_effect.
6742 (integral_table::integral_table): Add entry for POINTER_DIFF_EXPR.
6744 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
6746 * tree-ssa-threadbackward.c (back_threader::thread_through_all_blocks):
6747 Add may_peel_loop_headers.
6748 (back_threader_registry::thread_through_all_blocks): Same.
6749 (try_thread_blocks): Pass may_peel_loop_headers argument.
6750 (pass_early_thread_jumps::execute): Same.
6752 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
6754 * tree-ssa-threadedge.c (has_phis_p): New.
6755 (forwarder_block_p): New.
6756 (potentially_threadable_block): Call forwarder_block_p.
6757 (jump_threader::thread_around_empty_blocks): Call has_phis_p.
6758 (jump_threader::thread_through_normal_block): Call
6761 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
6763 * tree-ssa-threadbackward.c (back_threader::dump): New.
6764 (back_threader::debug): New.
6765 (back_threader_profitability::profitable_path_p): Dump blocks
6766 even if we are bailing early.
6768 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
6770 * tree-ssa-threadupdate.c (cancel_thread): New.
6771 (jump_thread_path_registry::thread_block_1): Use cancel_thread.
6772 (jump_thread_path_registry::mark_threaded_blocks): Same.
6773 (jump_thread_path_registry::register_jump_thread): Same.
6775 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
6777 * tree-ssa-threadedge.c (jt_state::push): Only call methods for
6778 which objects are available.
6779 (jt_state::pop): Same.
6780 (jt_state::register_equiv): Same.
6781 (jt_state::register_equivs_on_edge): Same.
6783 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
6785 * tree-ssa-threadedge.c (jump_threader::thread_across_edge):
6786 Move pop until after a thread is registered.
6788 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
6790 * tree-ssa-threadupdate.c (debug): New.
6792 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
6794 * gimple-range-trace.cc (push_dump_file::push_dump_file): New.
6795 (push_dump_file::~push_dump_file): New.
6796 (dump_ranger): Change dump_file temporarily while dumping
6798 * gimple-range-trace.h (class push_dump_file): New.
6800 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
6802 * gimple-range-trace.cc (debug_seed_ranger): Remove static.
6803 (dump_ranger): Dump function name.
6805 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
6807 * gimple-range-path.cc (path_range_query::range_defined_in_block):
6808 Adjust for non-null.
6809 (path_range_query::adjust_for_non_null_uses): New.
6810 (path_range_query::precompute_ranges): Call
6811 adjust_for_non_null_uses.
6812 * gimple-range-path.h: Add m_non_null and
6813 adjust_for_non_null_uses.
6815 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
6817 * gimple-range-path.cc (path_range_query::dump): Dump path
6819 (path_range_query::precompute_ranges): Dump entire path.
6821 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
6823 * value-relation.cc (relation_oracle::debug): New.
6824 * value-relation.h (relation_oracle::debug): New.
6826 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
6828 * tree-ssa-loop-ch.c: Remove unnecessary include file.
6830 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
6832 * gimple-range-fold.cc (fold_using_range::postfold_gcond_edges):
6833 Skip statements with no defining BB.
6834 * gimple-range-path.cc (path_range_query::range_defined_in_block):
6835 Do not get confused by statements with no defining BB.
6837 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
6839 * gimple-range-fold.cc (adjust_imagpart_expr): Move from
6840 gimple_range_adjustment. Add support for constants.
6841 (adjust_realpart_expr): New.
6842 (gimple_range_adjustment): Move IMAGPART_EXPR code to
6843 adjust_imagpart_expr.
6844 * range-op.cc (integral_table::integral_table): Add entry for
6847 2021-09-03 Jakub Jelinek <jakub@redhat.com>
6849 * omp-expand.c (expand_omp_atomic_pipeline): Use
6850 IFN_ATOMIC_COMPARE_EXCHANGE instead of
6851 BUILT_IN_SYNC_VAL_COMPARE_AND_SWAP_? so that memory order
6854 2021-09-03 Jakub Jelinek <jakub@redhat.com>
6857 * tree.h (DECL_FIELD_ABI_IGNORED): Changed into rvalue only macro
6858 that is false if DECL_BIT_FIELD.
6859 (SET_DECL_FIELD_ABI_IGNORED, DECL_FIELD_CXX_ZERO_WIDTH_BIT_FIELD,
6860 SET_DECL_FIELD_CXX_ZERO_WIDTH_BIT_FIELD): Define.
6861 * tree-streamer-out.c (pack_ts_decl_common_value_fields): For
6862 DECL_BIT_FIELD stream DECL_FIELD_CXX_ZERO_WIDTH_BIT_FIELD instead
6863 of DECL_FIELD_ABI_IGNORED.
6864 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
6865 SET_DECL_FIELD_ABI_IGNORED instead of writing to
6866 DECL_FIELD_ABI_IGNORED and for DECL_BIT_FIELD use
6867 SET_DECL_FIELD_CXX_ZERO_WIDTH_BIT_FIELD instead.
6868 * lto-streamer-out.c (hash_tree): For DECL_BIT_FIELD hash
6869 DECL_FIELD_CXX_ZERO_WIDTH_BIT_FIELD instead of DECL_FIELD_ABI_IGNORED.
6871 2021-09-03 liuhongt <hongtao.liu@intel.com>
6874 * config/i386/amxbf16intrin.h : Remove macro check for __AMX_BF16__.
6875 * config/i386/amxint8intrin.h : Remove macro check for __AMX_INT8__.
6876 * config/i386/amxtileintrin.h : Remove macro check for __AMX_TILE__.
6878 2021-09-02 Martin Sebor <msebor@redhat.com>
6880 PR tree-optimization/17506
6882 * tree-ssa-uninit.c (warn_uninit): Remove conditional guarding note.
6884 2021-09-02 Richard Biener <rguenther@suse.de>
6886 * tree-ssa-loop-im.c (fill_always_executed_in_1): Refine
6887 fix for PR78185 and continue processing when leaving
6890 2021-09-02 Jakub Jelinek <jakub@redhat.com>
6892 PR tree-optimization/99591
6893 * match.pd: Demote operands of IFN_{ADD,SUB,MUL}_OVERFLOW if they
6896 2021-09-02 Richard Biener <rguenther@suse.de>
6899 2021-09-02 Richard Biener <rguenther@suse.de>
6901 PR tree-optimization/102155
6902 * tree-ssa-loop-im.c (fill_always_executed_in_1): Iterate
6903 over a part of the RPO array and do not recurse here.
6904 Dump blocks marked as always executed.
6905 (fill_always_executed_in): Walk over the RPO array and
6906 process loops whose header we run into.
6907 (loop_invariant_motion_in_fun): Compute the first RPO
6908 using rev_post_order_and_mark_dfs_back_seme in iteration
6909 order and pass that to fill_always_executed_in.
6911 2021-09-02 liuhongt <hongtao.liu@intel.com>
6913 * config/i386/i386-modes.def (FLOAT_MODE): Define ieee HFmode.
6914 * config/i386/i386.c (enum x86_64_reg_class): Add
6916 (merge_classes): Handle X86_64_SSEHF_CLASS.
6917 (examine_argument): Ditto.
6918 (construct_container): Ditto.
6919 (classify_argument): Ditto, and set HFmode/HCmode to
6921 (function_value_32): Return _FLoat16/Complex Float16 by
6923 (function_value_64): Return _Float16/Complex Float16 by SSE
6925 (ix86_print_operand): Handle CONST_DOUBLE HFmode.
6926 (ix86_secondary_reload): Require gpr as intermediate register
6927 to store _Float16 from sse register when sse4 is not
6929 (ix86_libgcc_floating_mode_supported_p): Enable _FLoat16 under
6931 (ix86_scalar_mode_supported_p): Ditto.
6932 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Defined.
6933 * config/i386/i386.h (VALID_SSE2_REG_MODE): Add HFmode.
6934 (VALID_INT_MODE_P): Add HFmode and HCmode.
6935 * config/i386/i386.md (*pushhf_rex64): New define_insn.
6937 (*movhf_internal): Ditto.
6938 * doc/extend.texi (Half-Precision Floating Point): Documemt
6941 2021-09-02 Richard Biener <rguenther@suse.de>
6943 PR tree-optimization/102155
6944 * tree-ssa-loop-im.c (fill_always_executed_in_1): Iterate
6945 over a part of the RPO array and do not recurse here.
6946 Dump blocks marked as always executed.
6947 (fill_always_executed_in): Walk over the RPO array and
6948 process loops whose header we run into.
6949 (loop_invariant_motion_in_fun): Compute the first RPO
6950 using rev_post_order_and_mark_dfs_back_seme in iteration
6951 order and pass that to fill_always_executed_in.
6953 2021-09-02 YunQiang Su <syq@debian.org>
6956 2021-08-31 YunQiang Su <yunqiang.su@cipunited.com>
6958 * config/mips/mips.c (mips_module_isa_name): New.
6959 mips_file_start: add .module mipsREV to all asm output
6961 2021-09-01 Jeff Law <jlaw@localhost.localdomain>
6963 PR tree-optimization/102152
6964 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Reduce a vector
6965 comparison to a scalar comparison before calling
6966 update_stmt_if_modified.
6968 2021-09-01 Andrew Pinski <apinski@marvell.com>
6971 * config/aarch64/aarch64.c (aarch64_expand_setmem):
6972 Check STRICT_ALIGNMENT before creating an overlapping
6975 2021-09-01 Martin Sebor <msebor@redhat.com>
6977 * gimple-ssa-warn-access.cc (get_size_range): Add argument.
6978 (check_access): Pass additional argument.
6979 (check_memop_access): Remove template and make a member function.
6980 (maybe_check_dealloc_call): Make a pass_waccess member function.
6981 (class pass_waccess): Add, rename, and remove members.
6982 (pass_waccess::pass_waccess): Adjust to name change.
6983 (pass_waccess::~pass_waccess): Same.
6984 (check_alloca): Make a member function.
6985 (check_alloc_size_call): Same.
6986 (check_strcat): Same.
6987 (check_strncat): Same.
6988 (check_stxcpy): Same.
6989 (check_stxncpy): Same.
6990 (check_strncmp): Same.
6991 (maybe_warn_rdwr_sizes): Rename...
6992 (pass_waccess::maybe_check_access_sizes): ...to this.
6993 (pass_waccess::check_call): Adjust to name changes.
6994 (pass_waccess::maybe_check_dealloc_call): Make a pass_waccess member
6996 (pass_waccess::execute): Adjust to name changes.
6997 * gimple-ssa-warn-access.h (check_memop_access): Remove.
6998 * pointer-query.cc (access_ref::phi): Handle null pointer.
6999 (access_ref::inform_access): Same.
7000 (pointer_query::put_ref): Modify a cached value, not a copy of it.
7001 (pointer_query::dump): New function.
7002 (compute_objsize_r): Avoid overwriting access_ref::bndrng. Cache
7004 * pointer-query.h (pointer_query::dump): Declare.
7005 * tree-ssa-strlen.c (get_range): Simplify. Use function query.
7006 (dump_strlen_info): Use function query.
7007 (printf_strlen_execute): Factor code out into pointer_query::put_ref.
7009 2021-09-01 Thomas Schwinge <thomas@codesourcery.com>
7011 * tree.c (walk_tree_1) <OMP_CLAUSE>: Simplify.
7013 2021-09-01 Iain Sandoe <iain@sandoe.co.uk>
7015 * doc/extend.texi: Document unavailable attribute.
7016 * print-tree.c (print_node): Handle unavailable attribute.
7017 * tree-core.h (struct tree_base): Add a bit to carry unavailability.
7018 * tree.c (error_unavailable_use): New.
7019 * tree.h (TREE_UNAVAILABLE): New.
7020 (error_unavailable_use): New.
7022 2021-09-01 Jakub Jelinek <jakub@redhat.com>
7024 PR tree-optimization/102124
7025 * tree-vect-patterns.c (vect_recog_widen_op_pattern): For ORIG_CODE
7026 MINUS_EXPR, if itype is unsigned with smaller precision than type,
7027 add an extra cast to signed variant of itype to ensure sign-extension.
7029 2021-09-01 Martin Liska <mliska@suse.cz>
7031 * graph.c (draw_cfg_node_succ_edges): Do not color fallthru
7032 edges and rather use colors for TRUE and FALSE edges.
7034 2021-09-01 Richard Biener <rguenther@suse.de>
7036 PR tree-optimization/93491
7037 * tree-ssa-pre.c (compute_avail): Set BB_MAY_NOTRETURN
7038 after processing the stmt itself. Do not consider
7039 pure functions possibly not returning. Properly avoid
7040 adding possibly trapping calls to EXP_GEN when there's
7041 a preceeding possibly not returning call.
7042 * tree-ssa-sccvn.c (vn_reference_may_trap): Conservatively
7045 2021-09-01 Richard Biener <rguenther@suse.de>
7047 PR tree-optimization/102139
7048 * tree-vectorizer.h (vec_base_alignments): Adjust hash-map
7049 type to record a std::pair of the stmt-info and the innermost
7051 (dr_vec_info::group): New member.
7052 * tree-vect-data-refs.c (vect_record_base_alignment): Adjust.
7053 (vect_compute_data_ref_alignment): Verify the recorded
7054 base alignment can be used.
7055 (data_ref_pair): Remove.
7056 (dr_group_sort_cmp): Adjust.
7057 (vect_analyze_data_ref_accesses): Store the group-ID in the
7058 dr_vec_info and operate on a vector of dr_vec_infos.
7060 2021-09-01 YunQiang Su <yunqiang.su@cipunited.com>
7062 * read-md.c (md_reader::handle_enum): support value assignation.
7063 * doc/md.texi: record define_c_enum value assignation support.
7065 2021-09-01 Jakub Jelinek <jakub@redhat.com>
7067 PR tree-optimization/102141
7068 * gimple-ssa-store-merging.c (bswap_view_convert): Add BEFORE
7069 argument. If false, emit stmts after gsi instead of before, and
7071 (bswap_replace): Adjust callers. When converting output of bswap,
7072 emit VIEW_CONVERT prepratation stmts after a copy of gsi instead
7075 2021-09-01 liuhongt <hongtao.liu@intel.com>
7077 * emit-rtl.c (validate_subreg): Get rid of all float-int
7080 2021-09-01 liuhongt <hongtao.liu@intel.com>
7083 2021-08-30 liuhongt <hongtao.liu@intel.com>
7085 * expmed.c (extract_bit_field_1): Make sure we're playing with
7086 integral modes before call extract_integral_bit_field.
7087 (extract_integral_bit_field): Add a parameter of type
7088 scalar_int_mode which corresponds to of tmode.
7089 And call extract_and_convert_fixed_bit_field instead of
7090 extract_fixed_bit_field and convert_extracted_bit_field.
7091 (extract_and_convert_fixed_bit_field): New function, it's a
7092 combination of extract_fixed_bit_field and
7093 convert_extracted_bit_field.
7095 2021-08-31 Thomas Schwinge <thomas@codesourcery.com>
7097 * tree.c (walk_tree_1) <OMP_CLAUSE_TILE>: Handle three operands.
7099 2021-08-31 Thomas Schwinge <thomas@codesourcery.com>
7101 * omp-general.h (omp_is_reference): Rename to...
7102 (omp_privatize_by_reference): ... this. Adjust all users...
7103 * omp-general.c: ... here, ...
7104 * gimplify.c: ... here, ...
7105 * omp-expand.c: ... here, ...
7106 * omp-low.c: ... here.
7108 2021-08-31 Martin Sebor <msebor@redhat.com>
7110 * gimple-ssa-warn-access.cc (maybe_warn_alloc_args_overflow): Test
7111 pointer element for equality to zero, not that of the cotaining
7114 2021-08-31 Martin Sebor <msebor@redhat.com>
7116 * gcc-rich-location.h (gcc_rich_location): Make ctor explicit.
7118 2021-08-31 Martin Sebor <msebor@redhat.com>
7120 * function.h (function): Add comments.
7121 (get_range_query): Same. Add attribute returns nonnull.
7123 2021-08-31 Roger Sayle <roger@nextmovesoftware.com>
7125 * expr.c (convert_modes): Don't use subreg_promoted_mode on a
7126 SUBREG if it can't be guaranteed to a SUBREG_PROMOTED_VAR_P set.
7127 Instead use the standard (safer) is_a <scalar_int_mode> idiom.
7129 2021-08-31 Jeff Law <jlaw@localhost.localdomain>
7131 * config.gcc (cris-*-elf, cris-*-none): Remove dbxelf.h from
7133 (m32r-*-elf, m32rle-*-elf, m32r-*-linux): Likewise.
7134 (mn10300-*-*, am33_2.0-*-linux*): Likewise.
7135 (xtensa*-*-elf, xtensa*-*-linux, xtensa*-*-uclinux): Likewise.
7136 (m32c-*-elf*, m32c-*-rtems*): Likewise.
7137 * config/cris/cris.h (DBX_NO_XREFS): Remove.
7138 (DBX_CONTIN_LENGTH, DBX_CONTIN_CHAR): Likewise.
7139 * config/m32r/m32r.h (DBXOUT_SOURCE_LINE): Likewise.
7140 (DBX_DEBUGGING_INFO, DBX_CONTIN_LENGTH): Likewise.
7141 * config/mn10300/mn10300.h (DEFAULT_GDB_EXTENSIONS): Likewise.
7142 * config/mn10300/linux.h (DBX_REGISTER_NAMES): Likewise.
7144 2021-08-31 Marcel Vollweiler <marcel@codesourcery.com>
7146 * gimplify.c (gimplify_scan_omp_clauses): Error handling. 'ancestor' only
7147 allowed on target constructs and only with particular other clauses.
7148 * omp-expand.c (expand_omp_target): Output of 'sorry, not supported' if
7150 * omp-low.c (check_omp_nesting_restrictions): Error handling. No nested OpenMP
7151 structs when 'ancestor' is used.
7152 (scan_omp_1_stmt): No usage of OpenMP runtime routines in a target region when
7154 * tree-pretty-print.c (dump_omp_clause): Append 'ancestor'.
7155 * tree.h (OMP_CLAUSE_DEVICE_ANCESTOR): Define macro.
7157 2021-08-31 Roger Sayle <roger@nextmovesoftware.com>
7159 * expr.c (convert_modes): Preserve SUBREG_PROMOTED_VAR_P when
7160 creating a (wider) partial subreg from a SUBREG_PROMOTED_VAR_P
7162 * simplify-rtx.c (simplify_unary_operation_1) [SIGN_EXTEND]:
7163 Likewise, preserve SUBREG_PROMOTED_VAR_P when creating a (wider)
7164 partial subreg from a SUBREG_PROMOTED_VAR_P subreg. Generate
7165 SIGN_EXTEND of the SUBREG_REG when a subreg would be paradoxical.
7166 [ZERO_EXTEND]: Likewise, preserve SUBREG_PROMOTED_VAR_P when
7167 creating a (wider) partial subreg from a SUBREG_PROMOTED_VAR_P
7168 subreg. Generate ZERO_EXTEND of the SUBREG_REG when a subreg
7169 would be paradoxical.
7171 2021-08-31 Roger Sayle <roger@nextmovesoftware.com>
7173 * combine.c (combine_simplify_rtx): Avoid converting an explicit
7174 TRUNCATE into a lowpart SUBREG on !TRULY_NOOP_TRUNCATION targets.
7175 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
7177 2021-08-31 Richard Biener <rguenther@suse.de>
7179 PR tree-optimization/102142
7180 * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Fix
7181 condition under which to unset the visited flag.
7183 2021-08-31 Richard Biener <rguenther@suse.de>
7185 PR middle-end/102129
7186 * tree-ssa-ter.c (find_replaceable_in_bb): Do not move
7187 possibly trapping expressions across calls.
7189 2021-08-31 Jakub Jelinek <jakub@redhat.com>
7191 PR tree-optimization/102134
7192 * tree-ssa-ccp.c (bit_value_binop) <case RSHIFT_EXPR>: If sgn is
7193 UNSIGNED and r1val | r1mask has MSB set, ensure lzcount doesn't
7196 2021-08-31 Andrew Pinski <apinski@marvell.com>
7199 * collect-utils.c (setup_signals): New declaration.
7200 * collect-utils.h (setup_signals): New function.
7201 * collect2.c (handler): Delete.
7202 (main): Instead of manually setting up the signals,
7203 just call setup_signals.
7204 * lto-wrapper.c (main): Likewise.
7206 2021-08-31 Andrew Pinski <apinski@marvell.com>
7209 * config/i386/i386-protos.h (x86_output_aligned_bss):
7210 Change align argument to unsigned type.
7211 (x86_elf_aligned_decl_common): Likewise.
7212 * config/i386/i386.c (x86_elf_aligned_decl_common): Likewise.
7213 (x86_output_aligned_bss): Likewise.
7215 2021-08-31 YunQiang Su <yunqiang.su@cipunited.com>
7217 * config/mips/mips.c (mips_module_isa_name): New.
7218 mips_file_start: add .module mipsREV to all asm output
7220 2021-08-31 YunQiang Su <yunqiang.su@cipunited.com>
7222 * config/mips/mips.h (struct mips_cpu_info): define enum mips_isa;
7223 use enum instead of int for 'isa' member.
7224 * config.gcc, config/mips/mips.c, config/mips/mips-cpus.def,
7225 config/mips/netbsd.h: replace hardcoded numbers with enum.
7227 2021-08-31 liuhongt <hongtao.liu@intel.com>
7229 * config/i386/sse.md (*<avx512>_ucmp<mode>3_1): Change from
7230 define_split to define_insn_and_split.
7231 (*avx2_eq<mode>3): Removed.
7232 (<avx512>_eq<mode>3<mask_scalar_merge_name>): Adjust pattern
7233 (<avx512>_eq<mode>3<mask_scalar_merge_name>_1): Rename to ..
7234 (*<avx512>_eq<mode>3<mask_scalar_merge_name>_1): .. this, and
7236 (*avx2_gt<mode>3): Removed.
7237 (<avx512>_gt<mode>3<mask_scalar_merge_name>): Change from
7238 define_insn to define_expand, and adjust pattern.
7239 (UNSPEC_MASKED_EQ, UNSPEC_MASKED_GT): Removed.
7241 2021-08-30 David Malcolm <dmalcolm@redhat.com>
7244 * Makefile.in (ANALYZER_OBJS): Add analyzer/call-info.o.
7246 2021-08-30 Jason Merrill <jason@redhat.com>
7248 * doc/invoke.texi: Document -Wmissing-requires.
7250 2021-08-30 Bill Schmidt <wschmidt@linux.ibm.com>
7252 * config/rs6000/rs6000-call.c (rs6000_init_builtins): Remove
7253 TARGET_EXTRA_BUILTINS guard.
7255 2021-08-30 Bill Schmidt <wschmidt@linux.ibm.com>
7257 * config/rs6000/rs6000-call.c (rs6000_init_builtins): Change
7258 initialization of V2DI_type_node and unsigned_V2DI_type_node.
7260 2021-08-30 Bill Schmidt <wschmidt@linux.ibm.com>
7262 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Use the new
7263 decl when new_builtins_are_live.
7264 * config/rs6000/rs6000-builtin-new.def (__builtin_cfstring): New
7267 2021-08-30 Pat Haugen <pthaugen@linux.ibm.com>
7269 * config/rs6000/rs6000-cpus.def (ISA_3_1_MASKS_SERVER): Add
7270 OPTION_MASK_P10_FUSION_2STORE.
7271 (POWERPC_MASKS): Likewise.
7272 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
7273 store fusion for Power10.
7274 (is_fusable_store): New.
7275 (power10_sched_reorder): Likewise.
7276 (rs6000_sched_reorder): Do Power10 specific reordering.
7277 (rs6000_sched_reorder2): Likewise.
7278 * config/rs6000/rs6000.opt: Add new option.
7280 2021-08-30 Richard Biener <rguenther@suse.de>
7282 PR tree-optimization/102128
7283 * tree-vect-slp.c (vect_bb_vectorization_profitable_p):
7284 Move scanning for if-converted scalar code to the caller
7285 and instead delay clearing the visited flag for profitable
7287 (vect_slp_region): Cost all subgraphs before scheduling.
7288 For if-converted BB vectorization scan for scalar COND_EXPRs
7289 and do not vectorize if any found and the cost model is
7292 2021-08-30 Richard Biener <rguenther@suse.de>
7294 * common.opt (fexceptions): Mark
7295 EnabledBy(fnon-call-exceptions).
7296 * doc/invoke.texi (fnon-call-exceptions): Document this
7297 enables -fexceptions.
7299 2021-08-30 Sebastian Huber <sebastian.huber@embedded-brains.de>
7301 * tsystem.h (abort): Define abort() if inhibit_libc is defined and it
7302 is not already defined.
7304 2021-08-30 liuhongt <hongtao.liu@intel.com>
7306 * expmed.c (extract_bit_field_1): Make sure we're playing with
7307 integral modes before call extract_integral_bit_field.
7308 (extract_integral_bit_field): Add a parameter of type
7309 scalar_int_mode which corresponds to of tmode.
7310 And call extract_and_convert_fixed_bit_field instead of
7311 extract_fixed_bit_field and convert_extracted_bit_field.
7312 (extract_and_convert_fixed_bit_field): New function, it's a
7313 combination of extract_fixed_bit_field and
7314 convert_extracted_bit_field.
7316 2021-08-29 Iain Sandoe <iain@sandoe.co.uk>
7318 * config/darwin.c (darwin_libc_has_function): Do not run
7319 the checks for x86 or modern Darwin. Make sure that there
7320 is a value set for darwin_macosx_version_min before testing.
7322 2021-08-29 Iain Sandoe <iain@sandoe.co.uk>
7324 * config/i386/darwin.h (CLEAR_INSN_CACHE): New.
7326 2021-08-28 Jan Hubicka <hubicka@ucw.cz>
7328 * ipa-modref-tree.h (modref_access_node::merge): Break out
7329 logic combining offsets and logic merging ranges to ...
7330 (modref_access_node::combined_offsets): ... here
7331 (modref_access_node::update2): ... here
7332 (modref_access_node::closer_pair_p): New member function.
7333 (modref_access_node::forced_merge): New member function.
7334 (modre_ref_node::insert): Do merging when table is full.
7336 2021-08-28 YunQiang Su <yunqiang.su@cipunited.com>
7339 * config.gcc: MIPS: use N64 ABI by default if the triple end
7340 with -gnuabi64, which is used by Debian since 2013.
7342 2021-08-28 Alexandre Oliva <oliva@adacore.com>
7344 * ipa-modref.c (analyze_function): Skip debug stmts.
7345 * tree-inline.c (estimate_num_insn): Consider builtins even
7346 without a cgraph_node.
7348 2021-08-27 Jeff Law <jlaw@localhost.localdomain>
7350 * config/h8300/bitfield.md (cstore<mode>4): Remove expander.
7351 * config/h8300/h8300.c (h8300_expand_branch): Remove function.
7352 * config/h8300/h8300-protos.h (h8300_expadn_branch): Remove prototype.
7353 * config/h8300/h8300.md (eqne): New code iterator.
7354 (geultu, geultu_to_c): Similarly.
7355 * config/h8300/testcompare.md (cstore<mode>4): Dummy expander.
7356 (store_c_<mode>, store_c_i_<mode>): New define_insn_and_splits
7357 (cmp<mode>_c): New pattern
7359 2021-08-27 Jeff Law <jlaw@localhost.localdomain>
7361 * tree-ssa-dom.c (reduce_vector_comparison_to_scalar_comparison): New
7363 (dom_opt_dom_walker::optimize_stmt): Use it.
7365 2021-08-27 Iain Sandoe <iain@sandoe.co.uk>
7367 * config/darwin.c (finalize_ctors): Add a section-start linker-
7369 (finalize_dtors): Likewise.
7370 * config/darwin.h (MIN_LD64_INIT_TERM_START_LABELS): New.
7372 2021-08-27 Bill Schmidt <wschmidt@linux.ibm.com>
7374 * config/rs6000/rs6000-call.c (rs6000-builtins.h): New #include.
7375 (rs6000_init_builtins): Call rs6000_init_generated_builtins. Skip the
7376 old initialization logic when new builtins are enabled.
7377 * config/rs6000/rs6000-gen-builtins.c (write_decls): Rename
7378 rs6000_autoinit_builtins to rs6000_init_generated_builtins.
7379 (write_init_file): Likewise.
7381 2021-08-27 Iain Sandoe <iain@sandoe.co.uk>
7383 * configure.ac (darwin2[[0-9]]* | darwin19*): Alter use of
7384 gcc_GAS_CHECK_FEATURE to remove an extraneous parameter.
7385 (amdgcn-* | gcn-*) Likewise.
7387 2021-08-27 Anthony Sharp <anthonysharp15@gmail.com>
7389 * symbol-summary.h: Added missing template keyword.
7391 2021-08-27 Richard Biener <rguenther@suse.de>
7393 PR tree-optimization/45178
7394 * tree-ssa-dce.c (find_obviously_necessary_stmts): For
7395 infinite loops without exit do not mark control dependent
7396 edges of the latch necessary.
7398 2021-08-27 konglin1 <lingling.kong@intel.com>
7401 * config/i386/sse.md: (<avx512>scattersi<mode>): Add mask operand to
7403 (<avx512>scattersi<mode>): Likewise.
7404 (*avx512f_scattersi<VI48F:mode>): Merge mask operand to set_dest.
7405 (*avx512f_scatterdi<VI48F:mode>): Likewise
7407 2021-08-27 Kewen Lin <linkw@linux.ibm.com>
7409 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function): Add
7410 support for built-in functions MISC_BUILTIN_DIVWE, MISC_BUILTIN_DIVWEU,
7411 MISC_BUILTIN_DIVDE, MISC_BUILTIN_DIVDEU, P10_BUILTIN_CFUGED,
7412 P10_BUILTIN_CNTLZDM, P10_BUILTIN_CNTTZDM, P10_BUILTIN_PDEPD and
7413 P10_BUILTIN_PEXTD on Power10.
7415 2021-08-27 Kewen Lin <linkw@linux.ibm.com>
7417 * config/rs6000/rs6000-call.c (builtin_function_type): Add unsigned
7418 signedness for some Power10 bifs.
7420 2021-08-27 David Edelsohn <dje.gcc@gmail.com>
7423 * config/rs6000/rs6000.c (rs6000_adjust_field_align): Use
7424 computed alignment if the entire struct has attribute packed.
7426 2021-08-27 liuhongt <hongtao.liu@intel.com>
7430 * config/i386/i386.c (ix86_gimple_fold_builtin): Fold
7431 IX86_BUILTIN_SHUFPD512, IX86_BUILTIN_SHUFPS512,
7432 IX86_BUILTIN_SHUFPD256, IX86_BUILTIN_SHUFPS,
7433 IX86_BUILTIN_SHUFPS256.
7434 (ix86_masked_all_ones): New function.
7436 2021-08-26 Uroš Bizjak <ubizjak@gmail.com>
7438 * config/i386/i386.md (*btr<mode>_1): Call force_reg unconditionally.
7439 (conditional moves with memory inputs splitters): Ditto.
7440 * config/i386/sse.md (one_cmpl<mode>2): Simplify.
7442 2021-08-26 Jan Hubicka <hubicka@ucw.cz>
7444 * ipa-modref-tree.h (modref_access_node::try_merge_with): Restart
7445 search after merging.
7447 2021-08-26 Bill Schmidt <wschmidt@linux.ibm.com>
7449 * config/rs6000/rs6000-overload.def: Add remaining overloads.
7451 2021-08-26 Bill Schmidt <wschmidt@linux.ibm.com>
7453 * config/rs6000/rs6000-builtin-new.def: Add cell stanza.
7455 2021-08-26 Bill Schmidt <wschmidt@linux.ibm.com>
7457 * config/rs6000/rs6000-builtin-new.def: Add ieee128-hw, dfp,
7458 crypto, and htm stanzas.
7460 2021-08-26 Bill Schmidt <wschmidt@linux.ibm.com>
7462 * config/rs6000/rs6000-builtin-new.def: Add mma stanza.
7464 2021-08-26 Martin Sebor <msebor@redhat.com>
7466 * tree-ssa-uninit.c (warn_uninit): Refactor and simplify.
7467 (warn_uninit_phi_uses): Remove argument from calls to warn_uninit.
7468 (warn_uninitialized_vars): Same. Reduce visibility of locals.
7469 (warn_uninitialized_phi): Same.
7471 2021-08-26 Roger Sayle <roger@nextmovesoftware.com>
7473 * tree-ssa-ccp.c (get_individual_bits): Helper function to
7474 extract the individual bits from a widest_int constant (mask).
7475 (gray_code_bit_flips): New read-only table for effiently
7476 enumerating permutations/combinations of bits.
7477 (bit_value_binop) [LROTATE_EXPR, RROTATE_EXPR]: Handle rotates
7478 by unknown counts that are guaranteed less than the target
7479 precision and four or fewer unknown bits by enumeration.
7480 [LSHIFT_EXPR, RSHIFT_EXPR]: Likewise, also handle shifts by
7481 enumeration under the same conditions. Handle remaining
7482 shifts as a mask based upon the minimum possible shift value.
7484 2021-08-26 Roger Sayle <roger@nextmovesoftware.com>
7485 Richard Biener <rguenther@suse.de>
7487 * match.pd (shift transformations): Remove a redundant
7488 !POINTER_TYPE_P check.
7490 2021-08-26 Uroš Bizjak <ubizjak@gmail.com>
7493 * config/i386/i386.md (cmove reg-reg move elimination peephole2s):
7494 Set all_regs to true in the call to replace_rtx.
7496 2021-08-26 Jan Hubicka <hubicka@ucw.cz>
7498 * ipa-modref-tree.c (test_insert_search_collapse): Update test.
7499 * ipa-modref-tree.h (modref_base_node::insert): Be smarter when
7500 hiting --param modref-max-refs limit.
7501 (modref_tree:insert_base): Be smarter when hitting
7502 --param modref-max-bases limit. Add new parameter REF.
7503 (modref_tree:insert): Update.
7504 (modref_tree:merge): Update.
7505 * ipa-modref.c (read_modref_records): Update.
7507 2021-08-26 Jan Hubicka <hubicka@ucw.cz>
7509 * params.opt: (modref-max-adjustments): Add full stop.
7511 2021-08-26 Jan Hubicka <hubicka@ucw.cz>
7513 * ipa-modref-tree.h (modref_ref_node::verify): New member
7515 (modref_ref_node::insert): Use it.
7516 (modref_ref_node::try_mere_with): Fix off by one error.
7518 2021-08-26 Martin Liska <mliska@suse.cz>
7519 Stefan Kneifel <stefan.kneifel@bluewin.ch>
7521 * cgraph.h (create_version_clone_with_body): Add new parameter.
7522 * cgraphclones.c: Likewise.
7523 * multiple_target.c (create_dispatcher_calls): Do not use
7525 (create_target_clone): Likewise here.
7527 2021-08-26 Jonathan Yong <10walls@gmail.com>
7529 * doc/extend.texi: Add note about reserved priorities
7530 to the constructor attribute.
7532 2021-08-25 Martin Sebor <msebor@redhat.com>
7534 * gimple-range-cache.cc (ssa_global_cache::dump): Avoid printing
7535 range table header alone.
7536 * gimple-range.cc (gimple_ranger::export_global_ranges): Same.
7538 2021-08-25 Jan Hubicka <hubicka@ucw.cz>
7540 * doc/invoke.texi: Document --param modref-max-adjustments.
7541 * ipa-modref-tree.c (test_insert_search_collapse): Update.
7542 (test_merge): Update.
7543 * ipa-modref-tree.h (struct modref_access_node): Add adjustments;
7544 (modref_access_node::operator==): Fix handling of access ranges.
7545 (modref_access_node::contains): Constify parameter; handle also
7546 mismatched parm offsets.
7547 (modref_access_node::update): New function.
7548 (modref_access_node::merge): New function.
7549 (unspecified_modref_access_node): Update constructor.
7550 (modref_ref_node::insert_access): Add record_adjustments parameter;
7552 (modref_ref_node::try_merge_with): New private function.
7553 (modref_tree::insert): New record_adjustments parameter.
7554 (modref_tree::merge): New record_adjustments parameter.
7555 (modref_tree::copy_from): Update.
7556 * ipa-modref.c (dump_access): Dump adjustments field.
7557 (get_access): Update constructor.
7558 (record_access): Update call of insert.
7559 (record_access_lto): Update call of insert.
7560 (merge_call_side_effects): Add record_adjustments parameter.
7561 (get_access_for_fnspec): Update.
7562 (process_fnspec): Update.
7563 (analyze_call): Update.
7564 (analyze_function): Update.
7565 (read_modref_records): Update.
7566 (ipa_merge_modref_summary_after_inlining): Update.
7567 (propagate_unknown_call): Update.
7568 (modref_propagate_in_scc): Update.
7569 * params.opt (param-max-modref-adjustments=): New.
7571 2021-08-25 Michael Meissner <meissner@linux.ibm.com>
7573 * config/rs6000/vsx.md (UNSPEC_XXSPLTIDP): Rename from
7575 (xxspltiw_v4si): Use vecperm type attribute.
7576 (xxspltiw_v4si_inst): Use vecperm type attribute.
7577 (xxspltiw_v4sf_inst): Likewise.
7578 (xxspltidp_v2df): Use vecperm type attribute. Use
7579 UNSPEC_XXSPLTIDP instead of UNSPEC_XXSPLTID.
7580 (xxspltidp_v2df_inst): Likewise.
7581 (xxsplti32dx_v4si): Use vecperm type attribute.
7582 (xxsplti32dx_v4si_inst): Likewise.
7583 (xxsplti32dx_v4sf_inst): Likewise.
7584 (xxblend_<mode>): Likewise.
7585 (xxpermx): Likewise.
7586 (xxpermx_inst): Likewise.
7589 2021-08-25 Lewis Hyatt <lhyatt@gmail.com>
7592 * coretypes.h (typedef diagnostic_input_charset_callback): Declare.
7593 * diagnostic.c (diagnostic_initialize_input_context): New function.
7594 * diagnostic.h (diagnostic_initialize_input_context): Declare.
7595 * input.c (default_charset_callback): New function.
7596 (file_cache::initialize_input_context): New function.
7597 (file_cache_slot::create): Added ability to convert the input
7598 according to the input context.
7599 (file_cache::file_cache): Initialize the new input context.
7600 (class file_cache_slot): Added new m_alloc_offset member.
7601 (file_cache_slot::file_cache_slot): Initialize the new member.
7602 (file_cache_slot::~file_cache_slot): Handle potentially offset buffer.
7603 (file_cache_slot::maybe_grow): Likewise.
7604 (file_cache_slot::needs_read_p): Handle NULL fp, which is now possible.
7605 (file_cache_slot::get_next_line): Likewise.
7606 * input.h (class file_cache): Added input context member.
7608 2021-08-25 Richard Biener <rguenther@suse.de>
7610 PR tree-optimization/102046
7611 * tree-vect-slp.c (vect_build_slp_tree_2): Conservatively
7612 update ->any_pattern when swapping operands.
7614 2021-08-25 Hongyu Wang <hongyu.wang@intel.com>
7617 * config/i386/i386.c (ix86_live_on_entry): Adjust comment.
7618 (ix86_decompose_address): Remove retval check for ASHIFT,
7619 allow non-canonical zero extend if AND mask covers ASHIFT
7621 (ix86_legitimate_address_p): Adjust condition for decompose.
7622 (ix86_rtx_costs): Adjust cost for lea with non-canonical
7624 Co-Authored by: Uros Bizjak <ubizjak@gmail.com>
7626 2021-08-25 Jiufu Guo <guojiufu@linux.ibm.com>
7628 PR tree-optimization/101145
7629 * tree-ssa-loop-niter.c (number_of_iterations_until_wrap):
7631 (number_of_iterations_lt): Invoke above function.
7632 (adjust_cond_for_loop_until_wrap):
7633 Merge to number_of_iterations_until_wrap.
7634 (number_of_iterations_cond): Update invokes for
7635 adjust_cond_for_loop_until_wrap and number_of_iterations_lt.
7637 2021-08-25 konglin1 <lingling.kong@intel.com>
7640 * config/i386/avx512dqintrin.h (_mm512_fpclass_ps_mask): Fix
7642 (_mm512_mask_fpclass_ps_mask): Ditto.
7644 2021-08-25 Kewen Lin <linkw@linux.ibm.com>
7646 * config/rs6000/altivec.md (vec_unpacku_hi_v16qi): Remove.
7647 (vec_unpacku_hi_v8hi): Likewise.
7648 (vec_unpacku_lo_v16qi): Likewise.
7649 (vec_unpacku_lo_v8hi): Likewise.
7650 (vec_unpacku_hi_<VP_small_lc>): New define_expand.
7651 (vec_unpacku_lo_<VP_small_lc>): Likewise.
7653 2021-08-24 David Edelsohn <dje.gcc@gmail.com>
7655 * config/rs6000/aix.h (SYSTEM_IMPLICIT_EXTERN_C): Delete.
7656 * config/rs6000/aix71.h (SYSTEM_IMPLICIT_EXTERN_C): Define.
7657 * config/rs6000/aix72.h (SYSTEM_IMPLICIT_EXTERN_C): Define.
7658 * config/rs6000/aix73.h (TARGET_AIX_VERSION): Increase to 73.
7660 2021-08-24 Roger Sayle <roger@nextmovesoftware.com>
7662 PR middle-end/102031
7663 * simplify-rtx.c (simplify_truncation): When comparing precisions
7664 use "subreg_prec" variable, not "subreg_mode".
7666 2021-08-24 Bill Schmidt <wschmidt@linux.ibm.com>
7668 * config/rs6000/rs6000-builtin-new.def: Add power10 and power10-64
7671 2021-08-24 Bill Schmidt <wschmidt@linux.ibm.com>
7673 * config/rs6000/rs6000-call.c (rs6000_init_builtins): Initialize
7674 various pointer type nodes.
7675 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add enum
7676 values for various pointer types.
7677 (ptr_V16QI_type_node): New macro.
7678 (ptr_V1TI_type_node): New macro.
7679 (ptr_V2DI_type_node): New macro.
7680 (ptr_V2DF_type_node): New macro.
7681 (ptr_V4SI_type_node): New macro.
7682 (ptr_V4SF_type_node): New macro.
7683 (ptr_V8HI_type_node): New macro.
7684 (ptr_unsigned_V16QI_type_node): New macro.
7685 (ptr_unsigned_V1TI_type_node): New macro.
7686 (ptr_unsigned_V8HI_type_node): New macro.
7687 (ptr_unsigned_V4SI_type_node): New macro.
7688 (ptr_unsigned_V2DI_type_node): New macro.
7689 (ptr_bool_V16QI_type_node): New macro.
7690 (ptr_bool_V8HI_type_node): New macro.
7691 (ptr_bool_V4SI_type_node): New macro.
7692 (ptr_bool_V2DI_type_node): New macro.
7693 (ptr_bool_V1TI_type_node): New macro.
7694 (ptr_pixel_type_node): New macro.
7695 (ptr_intQI_type_node): New macro.
7696 (ptr_uintQI_type_node): New macro.
7697 (ptr_intHI_type_node): New macro.
7698 (ptr_uintHI_type_node): New macro.
7699 (ptr_intSI_type_node): New macro.
7700 (ptr_uintSI_type_node): New macro.
7701 (ptr_intDI_type_node): New macro.
7702 (ptr_uintDI_type_node): New macro.
7703 (ptr_intTI_type_node): New macro.
7704 (ptr_uintTI_type_node): New macro.
7705 (ptr_long_integer_type_node): New macro.
7706 (ptr_long_unsigned_type_node): New macro.
7707 (ptr_float_type_node): New macro.
7708 (ptr_double_type_node): New macro.
7709 (ptr_long_double_type_node): New macro.
7710 (ptr_dfloat64_type_node): New macro.
7711 (ptr_dfloat128_type_node): New macro.
7712 (ptr_ieee128_type_node): New macro.
7713 (ptr_ibm128_type_node): New macro.
7714 (ptr_vector_pair_type_node): New macro.
7715 (ptr_vector_quad_type_node): New macro.
7716 (ptr_long_long_integer_type_node): New macro.
7717 (ptr_long_long_unsigned_type_node): New macro.
7719 2021-08-24 Bill Schmidt <wschmidt@linux.ibm.com>
7721 * config/rs6000/rs6000-builtin-new.def: Add power9-vector, power9,
7722 and power9-64 stanzas.
7724 2021-08-24 Roger Sayle <roger@nextmovesoftware.com>
7725 Tom de Vries <tdevries@suse.de>
7727 * config.gcc (nvptx-*-*): Define {c,c++}_target_objs.
7728 * config/nvptx/nvptx-protos.h (nvptx_cpu_cpp_builtins): Prototype.
7729 * config/nvptx/nvptx.h (TARGET_CPU_CPP_BUILTINS): Implement with
7730 a call to the new nvptx_cpu_cpp_builtins function in nvptx-c.c.
7731 * config/nvptx/t-nvptx (nvptx-c.o): New rule.
7732 * config/nvptx/nvptx-c.c: New source file.
7733 (nvptx_cpu_cpp_builtins): Move implementation here.
7735 2021-08-24 Martin Sebor <msebor@redhat.com>
7737 PR middle-end/101600
7738 PR middle-end/101977
7739 * gimple-ssa-warn-access.cc (maybe_warn_for_bound): Tighten up
7740 the phrasing of a warning.
7741 (check_access): Use the remaining size after subtracting any offset
7742 rather than the whole object size.
7743 * pointer-query.cc (access_ref::get_ref): Clear BASE0 flag if it's
7744 clear for any nonnull PHI argument.
7745 (compute_objsize): Clear argument.
7747 2021-08-24 Bill Schmidt <wschmidt@linux.ibm.com>
7749 * config/rs6000/rs6000-builtin-new.def: Add power8-vector stanza.
7751 2021-08-24 Bill Schmidt <wschmidt@linux.ibm.com>
7753 * config/rs6000/rs6000-builtin-new.def: Add power7 and power7-64
7756 2021-08-24 Andrew MacLeod <amacleod@redhat.com>
7758 * value-relation.cc (rr_transitive_table): New.
7759 (relation_transitive): New.
7760 (value_relation::swap): Remove.
7761 (value_relation::apply_transitive): New.
7762 (relation_oracle::relation_oracle): Allocate a new tmp bitmap.
7763 (relation_oracle::register_relation): Call register_transitives.
7764 (relation_oracle::register_transitives): New.
7765 * value-relation.h (relation_oracle): Add new temporary bitmap and
7768 2021-08-24 H.J. Lu <hjl.tools@gmail.com>
7771 * config/i386/i386-expand.c (ix86_expand_vector_move): Broadcast
7772 from integer to a pseudo vector register.
7774 2021-08-24 Richard Biener <rguenther@suse.de>
7776 PR tree-optimization/100089
7777 * tree-vectorizer.h (vect_slp_bb): Rename to ...
7778 (vect_slp_if_converted_bb): ... this and get the original
7779 loop as new argument.
7780 * tree-vectorizer.c (try_vectorize_loop_1): Revert previous fix,
7781 pass original loop to vect_slp_if_converted_bb.
7782 * tree-vect-slp.c (vect_bb_vectorization_profitable_p):
7783 If orig_loop was passed scan the not vectorized stmts
7784 for COND_EXPRs and force not profitable if found.
7785 (vect_slp_region): Pass down all SLP instances to costing
7786 if orig_loop was specified.
7787 (vect_slp_bbs): Pass through orig_loop.
7788 (vect_slp_bb): Rename to ...
7789 (vect_slp_if_converted_bb): ... this and get the original
7790 loop as new argument.
7791 (vect_slp_function): Adjust.
7793 2021-08-24 Richard Earnshaw <rearnsha@arm.com>
7796 * config/arm/arm.md (attribute arch): Add fix_vlldm.
7797 (arch_enabled): Use it.
7798 * config/arm/vfp.md (lazy_store_multiple_insn): Add alternative to
7799 use when erratum mitigation is needed.
7801 2021-08-24 Richard Earnshaw <rearnsha@arm.com>
7804 * config/arm/arm.opt (mfix-cmse-cve-2021-35465): New option.
7805 * doc/invoke.texi (Arm Options): Document it.
7806 * config/arm/arm-cpus.in (quirk_vlldm): New feature bit.
7807 (ALL_QUIRKS): Add quirk_vlldm.
7808 (cortex-m33): Add quirk_vlldm.
7809 (cortex-m35p, cortex-m55): Likewise.
7810 * config/arm/arm.c (arm_option_override): Enable fix_vlldm if
7811 targetting an affected CPU and not explicitly controlled on
7814 2021-08-24 Richard Earnshaw <rearnsha@arm.com>
7816 * config/arm/vfp.md (lazy_store_multiple_insn): Rewrite as valid RTL.
7817 (lazy_load_multiple_insn): Likewise.
7819 2021-08-24 liuhongt <hongtao.liu@intel.com>
7822 * config/i386/sse.md (<avx512>_vternlog<mode><sd_maskz_name>):
7823 Enable avx512 embedded broadcast.
7824 (*<avx512>_vternlog<mode>_all): Ditto.
7825 (<avx512>_vternlog<mode>_mask): Ditto.
7827 2021-08-24 liuhongt <hongtao.liu@intel.com>
7830 * config/i386/i386.c (ix86_rtx_costs): Define cost for
7832 * config/i386/i386.h (STRIP_UNARY): New macro.
7833 * config/i386/predicates.md (reg_or_notreg_operand): New
7835 * config/i386/sse.md (*<avx512>_vternlog<mode>_all): New define_insn.
7836 (*<avx512>_vternlog<mode>_1): New pre_reload
7837 define_insn_and_split.
7838 (*<avx512>_vternlog<mode>_2): Ditto.
7839 (*<avx512>_vternlog<mode>_3): Ditto.
7840 (any_logic1,any_logic2): New code iterator.
7841 (logic_op): New code attribute.
7842 (ternlogsuffix): Extend to VNxDF and VNxSF.
7844 2021-08-24 Richard Biener <rguenther@suse.de>
7846 * doc/invoke.texi (vect-inner-loop-cost-factor): Adjust.
7847 * params.opt (--param vect-inner-loop-cost-factor): Adjust
7849 * tree-vect-loop.c (vect_analyze_loop_form): Initialize
7850 inner_loop_cost_factor to the minimum of the estimated number
7851 of iterations of the inner loop and vect-inner-loop-cost-factor.
7853 2021-08-24 Roger Sayle <roger@nextmovesoftware.com>
7854 Richard Biener <rguenther@suse.de>
7856 * config/i386/i386-features.c (compute_convert_gain): Provide
7857 more accurate values for CONST_INT, when optimizing for size.
7858 * config/i386/i386.c (COSTS_N_BYTES): Move definition from here...
7859 * config/i386/i386.h (COSTS_N_BYTES): to here.
7861 2021-08-24 Roger Sayle <roger@nextmovesoftware.com>
7862 Jakub Jelinek <jakub@redhat.com>
7864 PR middle-end/102029
7865 * match.pd (shift transformations): Add an additional check for
7866 !POINTER_TYPE_P in the recently added left shift transformation.
7868 2021-08-24 liuhongt <hongtao.liu@intel.com>
7870 PR tree-optimization/100089
7871 * tree-vectorizer.c (try_vectorize_loop_1): Disable slp in
7872 loop vectorizer when cost model is very-cheap.
7874 2021-08-23 Bill Schmidt <wschmidt@linux.ibm.com>
7876 * config/rs6000/rs6000-gen-builtins.c (parse_bif_entry): Don't call
7877 asprintf, which is not available on AIX.
7879 2021-08-23 Bill Schmidt <wschmidt@linux.ibm.com>
7881 * config.gcc (target_gtfiles): Add ./rs6000-builtins.h.
7882 * config/rs6000/t-rs6000 (EXTRA_GTYPE_DEPS): Set.
7884 2021-08-23 Bill Schmidt <wschmidt@linux.ibm.com>
7886 * config.gcc (powerpc*-*-*): Add rs6000-builtins.o to extra_objs.
7887 * config/rs6000/rs6000-gen-builtins.c (main): Close init_file
7889 * config/rs6000/t-rs6000 (rs6000-gen-builtins.o): New target.
7890 (rbtree.o): Likewise.
7891 (rs6000-gen-builtins): Likewise.
7892 (rs6000-builtins.c): Likewise.
7893 (rs6000-builtins.h): Likewise.
7894 (rs6000.o): Add dependency.
7895 (EXTRA_HEADERS): Add rs6000-vecdefines.h.
7896 (rs6000-vecdefines.h): New target.
7897 (rs6000-builtins.o): Likewise.
7898 (rs6000-call.o): Add rs6000-builtins.h as a dependency.
7899 (rs6000-c.o): Likewise.
7901 2021-08-23 Bill Schmidt <wschmidt@linux.ibm.com>
7904 * config/rs6000/rs6000-gen-builtins.c (consume_whitespace):
7905 Diagnose buffer overrun.
7906 (safe_inc_pos): Fix overrun detection.
7907 (match_identifier): Diagnose buffer overrun.
7908 (match_integer): Likewise.
7909 (match_to_right_bracket): Likewise.
7911 2021-08-23 Jan Hubicka <hubicka@ucw.cz>
7913 * ipa-modref-tree.h (modref_access_node::range_info_useful_p):
7914 Improve range compare.
7915 (modref_access_node::contains): New member function.
7916 (modref_access_node::search): Remove.
7917 (modref_access_node::insert): Be smarter about subaccesses.
7919 2021-08-23 Thomas Schwinge <thomas@codesourcery.com>
7921 * config/i386/i386-options.c (ix86_omp_device_kind_arch_isa)
7922 <omp_device_arch> [ACCEL_COMPILER]: Match "intel_mic".
7923 * config/i386/t-omp-device (omp-device-properties-i386) <arch>:
7926 2021-08-23 Jeff Law <jlaw@localhost.localdomain>
7928 * config/h8300/h8300-protos.h (h8300_expand_epilogue): Add new
7930 * config/h8300/jumpcall.md (call, call_value): Restrict to
7931 !SIBLING_CALL_P cases.
7932 (subcall, sibcall_value): New patterns & expanders.
7933 * config/h8300/proepi.md (epilogue): Pass new argument to
7934 h8300_expand_epilogue.
7935 (sibcall_epilogue): New expander.
7936 * config/h8300/h8300.c (h8300_expand_epilogue): Handle sibcall
7938 (h8300_ok_for_sibcall_p): New function.
7939 (TARGET_FUNCTION_OK_FOR_SIBCALL): define.
7941 2021-08-23 Roger Sayle <roger@nextmovesoftware.com>
7943 * simplify-rtx.c (simplify_unary_operation_1): [TRUNCATE]:
7944 Handle case where the operand is already the desired mode.
7946 2021-08-23 Richard Biener <rguenther@suse.de>
7949 * tree-ssa-structalias.c (ipa_pta_execute): Check in_other_partition
7950 in addition to has_gimple_body.
7952 2021-08-23 Jan Hubicka <hubicka@ucw.cz>
7954 PR middle-end/101949
7955 * ipa-modref.c (analyze_ssa_name_flags): Fix merging of
7958 2021-08-23 Martin Liska <mliska@suse.cz>
7960 * doc/invoke.texi: Put the option out of -mxl-mode-app-model
7963 2021-08-23 Richard Biener <rguenther@suse.de>
7965 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
7966 Properly scale the inner loop cost only once.
7968 2021-08-23 Roger Sayle <roger@nextmovesoftware.com>
7970 * tree-ssa-ccp.c (bit_value_binop) [TRUNC_MOD_EXPR, TRUNC_DIV_EXPR]:
7971 Provide bounds for unsigned (and signed with non-negative operands)
7972 division and modulus.
7974 2021-08-23 Roger Sayle <roger@nextmovesoftware.com>
7976 * simplify-rtx.c (simplify_truncation): Generalize simplification
7977 of (truncate:A (subreg:B X)).
7978 (simplify_unary_operation_1) [FLOAT_TRUNCATE, FLOAT_EXTEND,
7979 SIGN_EXTEND, ZERO_EXTEND]: Handle cases where the operand
7980 already has the desired machine mode.
7981 (test_scalar_int_ops): Add tests that useless extensions and
7982 truncations are optimized away.
7983 (test_scalar_int_ext_ops): New self-test function to confirm
7984 that truncations of extensions are correctly simplified.
7985 (test_scalar_int_ext_ops2): New self-test function to check
7986 truncations of truncations, extensions of extensions, and
7987 truncations of extensions.
7988 (test_scalar_ops): Call the above two functions with a
7989 representative sampling of integer machine modes.
7991 2021-08-23 Roger Sayle <roger@nextmovesoftware.com>
7993 * match.pd (shift transformations): Change the sign of an
7994 LSHIFT_EXPR if it reduces the number of explicit conversions.
7996 2021-08-23 Jakub Jelinek <jakub@redhat.com>
7998 PR tree-optimization/86723
7999 * gimple-ssa-store-merging.c (find_bswap_or_nop_finalize): Add
8000 cast64_to_32 argument, set *cast64_to_32 to false, unless n is
8001 non-memory permutation of 64-bit src which only has bytes of
8002 0 or [5..8] and n->range is 4.
8003 (find_bswap_or_nop): Add cast64_to_32 and mask arguments, adjust
8004 find_bswap_or_nop_finalize caller, support bswap with some bytes
8005 zeroed, as long as at least two bytes are not zeroed.
8006 (bswap_replace): Add mask argument and handle masking of bswap
8008 (maybe_optimize_vector_constructor): Adjust find_bswap_or_nop
8009 caller, punt if cast64_to_32 or mask is not all ones.
8010 (pass_optimize_bswap::execute): Adjust find_bswap_or_nop_finalize
8011 caller, for now punt if cast64_to_32.
8013 2021-08-23 Richard Biener <rguenther@suse.de>
8015 PR tree-optimization/79334
8016 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record
8017 a type also for COMPONENT_REFs.
8018 (vn_reference_may_trap): Check ARRAY_REF with constant index
8019 against the array domain.
8021 2021-08-23 liuhongt <hongtao.liu@intel.com>
8024 * config/i386/sse.md (*avx512f_pshufb_truncv8hiv8qi_1): Add
8025 TARGET_AVX512BW to condition.
8027 2021-08-23 Jakub Jelinek <jakub@redhat.com>
8030 * dwarf2out.c (gen_variable_die): Add DW_AT_location for global
8031 register variables already during early_dwarf if possible.
8033 2021-08-23 Christophe Lyon <christophe.lyon@foss.st.com>
8035 * config/arm/arm_mve.h: Fix __arm_vctp16q return type.
8037 2021-08-23 Christophe Lyon <christophe.lyon@foss.st.com>
8040 * config/arm/arm.opt: Fix typo.
8041 * config/arm/t-rmprofile: Fix typo.
8043 2021-08-23 Jakub Jelinek <jakub@redhat.com>
8045 * tree.h (OMP_CLAUSE_GRAINSIZE_STRICT): Define.
8046 (OMP_CLAUSE_NUM_TASKS_STRICT): Define.
8047 * tree-pretty-print.c (dump_omp_clause) <case OMP_CLAUSE_GRAINSIZE,
8048 case OMP_CLAUSE_NUM_TASKS>: Print strict: modifier.
8049 * omp-expand.c (expand_task_call): Use GOMP_TASK_FLAG_STRICT in iflags
8050 if either grainsize or num_tasks clause has the strict modifier.
8052 2021-08-23 Martin Liska <mliska@suse.cz>
8054 * dbgcnt.def (DEBUG_COUNTER): New counter.
8055 * gimple.c (gimple_call_arg_flags): Use it in IPA PTA.
8057 2021-08-23 Jan Hubicka <hubicka@ucw.cz>
8059 * ipa-modref.c (analyze_ssa_name_flags): Improve handling of return slot.
8061 2021-08-23 Xi Ruoyao <xry111@mengyan1223.wang>
8064 * config/mips/mips-protos.h (mips_msa_output_shift_immediate):
8066 * config/mips/mips.c (mips_msa_output_shift_immediate): New
8068 * config/mips/mips-msa.md (vashl<mode>3, vashr<mode>3,
8069 vlshr<mode>3): Call it.
8071 2021-08-22 Jan Hubicka <hubicka@ucw.cz>
8072 Martin Liska <mliska@suse.cz>
8074 PR middle-end/101949
8075 * ipa-modref.c (analyze_ssa_name_flags): Indirect call implies
8078 2021-08-21 Dragan Mladjenovic <OT_Dragan.Mladjenovic@mediatek.com>
8080 * config/mips/mips.c (mips_function_rodata_section,
8081 TARGET_ASM_FUNCTION_RODATA_SECTION): Removed.
8083 2021-08-21 John David Anglin <danglin@gcc.gnu.org>
8085 * config/pa/pa.c (pa_asm_output_aligned_common): Remove warning.
8087 2021-08-20 Serge Belyshev <belyshev@depni.sinp.msu.ru>
8089 * configure.ac (thread-local storage support): Remove tls_first_major
8090 and tls_first_minor. Use "$conftest_s" to check support.
8091 * configure: Regenerate.
8093 2021-08-20 Serge Belyshev <belyshev@depni.sinp.msu.ru>
8095 * configure.ac: Fixup formatting.
8097 2021-08-20 Serge Belyshev <belyshev@depni.sinp.msu.ru>
8099 * acinclude.m4 (gcc_GAS_CHECK_FEATURE): Remove third argument and ...
8100 * configure.ac: ... update all callers.
8102 2021-08-20 Serge Belyshev <belyshev@depni.sinp.msu.ru>
8105 * acinclude.m4 (_gcc_COMPUTE_GAS_VERSION, _gcc_GAS_VERSION_GTE_IFELSE)
8106 (gcc_GAS_VERSION_GTE_IFELSE): Remove.
8107 (gcc_GAS_CHECK_FEATURE): Do not handle in-tree case specially.
8108 * configure.ac: Remove gcc_cv_gas_major_version, gcc_cv_gas_minor_version.
8109 Remove remaining checks for in-tree assembler.
8110 * configure: Regenerate.
8112 2021-08-20 Jeff Law <jlaw@localhost.localdomain>
8114 * config/h8300/h8300.c (shift_alg_hi): Improve arithmetic shift right
8115 by 15 bits for H8/300H and H8/S. Improve logical shifts by 12
8117 (shift_alg_si): Improve arithmetic right shift by 28-30 bits for
8118 H8/300H. Improve arithmetic shift right by 15 bits for H8/S.
8119 Improve logical shifts by 27 bits for H8/S.
8120 (get_shift_alg): Corresponding changes.
8121 (h8300_option_override): Revert to loops for -Os when profitable.
8123 2021-08-20 Richard Biener <rguenther@suse.de>
8125 * tree-vect-data-refs.c (dr_group_sort_cmp): Do not compare
8127 (vect_analyze_data_ref_accesses): Likewise. Assign the BB
8128 index as group_id when dataref_groups were not computed.
8129 * tree-vect-slp.c (vect_slp_bbs): Bump current_group when
8130 we advace to the next BB.
8132 2021-08-20 Jakub Jelinek <jakub@redhat.com>
8134 * omp-builtins.def (BUILT_IN_GOMP_WARNING, BUILT_IN_GOMP_ERROR): New
8137 2021-08-20 Martin Liska <mliska@suse.cz>
8139 PR gcov-profile/89961
8140 * gcov.c (make_gcov_file_name): Rewrite using std::string.
8141 (mangle_name): Simplify, do not used the second argument.
8142 (strip_extention): New function.
8143 (get_md5sum): Likewise.
8144 (get_gcov_intermediate_filename): Handle properly -p and -x
8146 (output_gcov_file): Use string type.
8147 (generate_results): Likewise.
8148 (md5sum_to_hex): Remove.
8150 2021-08-20 Michael Meissner <meissner@linux.ibm.com>
8152 * config/rs6000/altivec.md (UNSPEC_XXEVAL): Move to vsx.md.
8153 (UNSPEC_XXSPLTIW): Move to vsx.md.
8154 (UNSPEC_XXSPLTID): Move to vsx.md.
8155 (UNSPEC_XXSPLTI32DX): Move to vsx.md.
8156 (UNSPEC_XXBLEND): Move to vsx.md.
8157 (UNSPEC_XXPERMX): Move to vsx.md.
8158 (VM3): Move to vsx.md.
8159 (VM3_char): Move to vsx.md.
8160 (xxspltiw_v4si): Move to vsx.md.
8161 (xxspltiw_v4sf): Move to vsx.md.
8162 (xxspltiw_v4sf_inst): Move to vsx.md.
8163 (xxspltidp_v2df): Move to vsx.md.
8164 (xxspltidp_v2df_inst): Move to vsx.md.
8165 (xxsplti32dx_v4si_inst): Move to vsx.md.
8166 (xxsplti32dx_v4sf): Move to vsx.md.
8167 (xxsplti32dx_v4sf_inst): Move to vsx.md.
8168 (xxblend_<mode>): Move to vsx.md.
8169 (xxpermx): Move to vsx.md.
8170 (xxpermx_inst): Move to vsx.md.
8171 * config/rs6000/vsx.md (UNSPEC_XXEVAL): Move from altivec.md.
8172 (UNSPEC_XXSPLTIW): Move from altivec.md.
8173 (UNSPEC_XXSPLTID): Move from altivec.md.
8174 (UNSPEC_XXSPLTI32DX): Move from altivec.md.
8175 (UNSPEC_XXBLEND): Move from altivec.md.
8176 (UNSPEC_XXPERMX): Move from altivec.md.
8177 (VM3): Move from altivec.md.
8178 (VM3_char): Move from altivec.md.
8179 (xxspltiw_v4si): Move from altivec.md.
8180 (xxspltiw_v4sf): Move from altivec.md.
8181 (xxspltiw_v4sf_inst): Move from altivec.md.
8182 (xxspltidp_v2df): Move from altivec.md.
8183 (xxspltidp_v2df_inst): Move from altivec.md.
8184 (xxsplti32dx_v4si_inst): Move from altivec.md.
8185 (xxsplti32dx_v4sf): Move from altivec.md.
8186 (xxsplti32dx_v4sf_inst): Move from altivec.md.
8187 (xxblend_<mode>): Move from altivec.md.
8188 (xxpermx): Move from altivec.md.
8189 (xxpermx_inst): Move from altivec.md.
8191 2021-08-19 Roger Sayle <roger@nextmovesoftware.com>
8193 * tree-vect-generic.c (expand_vector_operations_1): Use either
8194 gimplify_build1 or gimplify_build2 instead of gimple_build_assign
8195 when constructing scalar splat expressions.
8197 2021-08-19 Peter Bergner <bergner@linux.ibm.com>
8200 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_mma_builtin): Cast
8201 pointer to __vector_pair *.
8203 2021-08-19 Martin Sebor <msebor@redhat.com>
8205 * gimple-range.cc: Add comments.
8206 * gimple-range.h: Same.
8208 2021-08-19 Martin Sebor <msebor@redhat.com>
8210 PR middle-end/101984
8211 * gimple-ssa-warn-access.cc (pass_waccess::execute): Also call
8214 2021-08-19 Jeff Law <jlaw@localhost.localdomain>
8216 * config.gcc (h8300-*-elf*): Do not include dbxelf.h.
8217 (h8300-*-linux*, v850-*-rtems*, v850*-elf*): Likewise.
8218 * config/v850/v850.h (DEFAULT_GDB_EXTENSIONS): Remove.
8220 2021-08-19 Jakub Jelinek <jakub@redhat.com>
8222 PR middle-end/101950
8223 * optabs.c (expand_clrsb_using_clz): New function.
8224 (expand_unop): Use it as another clrsb expansion fallback.
8226 2021-08-19 liuhongt <hongtao.liu@intel.com>
8229 2021-07-28 liuhongt <hongtao.liu@intel.com>
8232 * config/i386/i386.h (processor_costs): Add new member
8234 * config/i386/x86-tune-costs.h (ix86_size_cost, i386_cost,
8235 i486_cost, pentium_cost, lakemont_cost, pentiumpro_cost,
8236 geode_cost, k6_cost, athlon_cost, k8_cost, amdfam10_cost,
8237 bdver_cost, znver1_cost, znver2_cost, znver3_cost,
8238 btver1_cost, btver2_cost, btver3_cost, pentium4_cost,
8239 nocona_cost, atom_cost, atom_cost, slm_cost, intel_cost,
8240 generic_cost, core_cost): Initialize integer_to_sse same value
8242 (skylake_cost): Initialize integer_to_sse twice as much as sse_op.
8243 * config/i386/i386.c (ix86_builtin_vectorization_cost):
8244 Use integer_to_sse instead of sse_op to calculate the cost of
8247 2021-08-18 Iain Sandoe <iain@sandoe.co.uk>
8249 * config.gcc: Include rpath.opt for Darwin.
8250 * config/darwin.h (DRIVER_SELF_SPECS): Handle -rpath.
8252 2021-08-18 Thomas Schwinge <thomas@codesourcery.com>
8255 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor_expand):
8258 2021-08-18 Jonathan Wright <jonathan.wright@arm.com>
8260 * config/aarch64/arm_neon.h (vld3_lane_f64): Use float RTL
8261 pattern and type cast.
8262 (vld4_lane_f32): Use float RTL pattern.
8263 (vld4q_lane_f64): Use float type cast.
8265 2021-08-18 Jan Hubicka <hubicka@ucw.cz>
8267 * tree-ssa-uninit.c (maybe_warn_pass_by_reference): Check also
8270 2021-08-18 Thomas Schwinge <thomas@codesourcery.com>
8272 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): Extend.
8273 (test_map_of_type_with_ctor_and_dtor_expand): Add function.
8274 (hash_map_tests_c_tests): Call it.
8276 2021-08-18 Thomas Schwinge <thomas@codesourcery.com>
8278 * ggc.h (enum ggc_collect): New.
8279 (ggc_collect): Use it.
8280 * ggc-page.c: Adjust.
8281 * ggc-common.c: Likewise.
8282 * ggc-tests.c: Likewise.
8283 * read-rtl-function.c: Likewise.
8284 * selftest-run-tests.c: Likewise.
8285 * doc/gty.texi (Invoking the garbage collector): Likewise.
8287 2021-08-18 liuhongt <hongtao.liu@intel.com>
8290 * config/i386/i386.h (TARGET_V2DF_REDUCTION_PREFER_HADDPD):
8292 * config/i386/sse.md (*sse3_haddv2df3_low): Add
8293 TARGET_V2DF_REDUCTION_PREFER_HADDPD.
8294 (*sse3_hsubv2df3_low): Ditto.
8295 * config/i386/x86-tune.def
8296 (X86_TUNE_V2DF_REDUCTION_PREFER_HADDPD): New tune.
8298 2021-08-17 Andrew MacLeod <amacleod@redhat.com>
8300 * gimple-range-gori.cc (gori_compute::gori_compute): Enable tracing.
8301 (gori_compute::compute_operand_range): Add tracing.
8302 (gori_compute::logical_combine): Ditto.
8303 (gori_compute::compute_logical_operands): Ditto.
8304 (gori_compute::compute_operand1_range): Ditto.
8305 (gori_compute::compute_operand2_range): Ditto.
8306 (gori_compute::outgoing_edge_range_p): Ditto.
8307 * gimple-range-gori.h (class gori_compute): Add range_tracer.
8309 2021-08-17 Andrew MacLeod <amacleod@redhat.com>
8311 * flag-types.h (enum evrp_mode): Adjust evrp-mode values.
8312 * gimple-range-cache.cc (DEBUG_RANGE_CACHE): Relocate from.
8313 * gimple-range-trace.h (DEBUG_RANGE_CACHE): Here.
8314 * params.opt (--param=evrp-mode): Adjust options.
8316 2021-08-17 Andrew MacLeod <amacleod@redhat.com>
8318 * Makefile.in (OBJS): Add gimple-range-trace.o.
8319 * gimple-range-cache.h (enable_new_values): Remove unused prototype.
8320 * gimple-range-fold.cc: Adjust headers.
8321 * gimple-range-trace.cc: New.
8322 * gimple-range-trace.h: New.
8323 * gimple-range.cc (gimple_ranger::gimple_ranger): Enable tracer.
8324 (gimple_ranger::range_of_expr): Add tracing.
8325 (gimple_ranger::range_on_entry): Ditto.
8326 (gimple_ranger::range_on_exit): Ditto.
8327 (gimple_ranger::range_on_edge): Ditto.
8328 (gimple_ranger::fold_range_internal): Ditto.
8329 (gimple_ranger::dump_bb): Do not calculate edge range twice.
8330 (trace_ranger::*): Remove.
8331 (enable_ranger): Never create a trace_ranger.
8332 (debug_seed_ranger): Move to gimple-range-trace.cc.
8333 (dump_ranger): Ditto.
8334 (debug_ranger): Ditto.
8335 * gimple-range.h: Include gimple-range-trace.h.
8336 (range_on_entry, range_on_exit): No longer virtual.
8337 (class trace_ranger): Remove.
8338 (DEBUG_RANGE_CACHE): Move to gimple-range-trace.h.
8340 2021-08-17 Martin Sebor <msebor@redhat.com>
8342 PR middle-end/101854
8343 * builtins.c (expand_builtin_alloca): Move warning code to check_alloca
8344 in gimple-ssa-warn-access.cc.
8345 * calls.c (alloc_max_size): Move code to check_alloca.
8346 (get_size_range): Move to pointer-query.cc.
8347 (maybe_warn_alloc_args_overflow): Move to gimple-ssa-warn-access.cc.
8348 (get_attr_nonstring_decl): Move to tree.c.
8349 (fntype_argno_type): Move to gimple-ssa-warn-access.cc.
8350 (append_attrname): Same.
8351 (maybe_warn_rdwr_sizes): Same.
8352 (initialize_argument_information): Move code to
8353 gimple-ssa-warn-access.cc.
8354 * calls.h (maybe_warn_alloc_args_overflow): Move to
8355 gimple-ssa-warn-access.h.
8356 (get_attr_nonstring_decl): Move to tree.h.
8357 (maybe_warn_nonstring_arg): Move to gimple-ssa-warn-access.h.
8358 (enum size_range_flags): Move to pointer-query.h.
8359 (get_size_range): Same.
8360 * gimple-ssa-warn-access.cc (has_location): Remove unused overload
8361 to avoid Clang -Wunused-function.
8362 (get_size_range): Declare static.
8363 (maybe_emit_free_warning): Rename...
8364 (maybe_check_dealloc_call): ...to this for consistency.
8365 (class pass_waccess): Add members.
8366 (pass_waccess::~pass_waccess): Defined.
8367 (alloc_max_size): Move here from calls.c.
8368 (maybe_warn_alloc_args_overflow): Same.
8369 (check_alloca): New function.
8370 (check_alloc_size_call): New function.
8371 (check_strncat): Handle another warning flag.
8372 (pass_waccess::check_builtin): Handle alloca.
8373 (fntype_argno_type): Move here from calls.c.
8374 (append_attrname): Same.
8375 (maybe_warn_rdwr_sizes): Same.
8376 (pass_waccess::check_call): Define.
8377 (check_nonstring_args): New function.
8378 (pass_waccess::check): Call new member functions.
8379 (pass_waccess::execute): Enable ranger.
8380 * gimple-ssa-warn-access.h (get_size_range): Move here from calls.h.
8381 (maybe_warn_nonstring_arg): Same.
8382 * gimple-ssa-warn-restrict.c: Remove #include.
8383 * pointer-query.cc (get_size_range): Move here from calls.c.
8384 * pointer-query.h (enum size_range_flags): Same.
8385 (get_size_range): Same.
8386 * tree.c (get_attr_nonstring_decl): Move here from calls.c.
8387 * tree.h (get_attr_nonstring_decl): Move here from calls.h.
8389 2021-08-17 Thomas Schwinge <thomas@codesourcery.com>
8391 * ggc.h (ggc_collect): Add 'force_collect' parameter.
8392 * ggc-page.c (ggc_collect): Use that one instead of global
8393 'ggc_force_collect'. Adjust all users.
8394 * doc/gty.texi (Invoking the garbage collector): Update.
8395 * ggc-internal.h (ggc_force_collect): Remove.
8396 * ggc-common.c (ggc_force_collect): Likewise.
8397 * selftest.h (forcibly_ggc_collect): Remove.
8398 * ggc-tests.c (selftest::forcibly_ggc_collect): Likewise.
8399 * read-rtl-function.c (test_loading_labels): Adjust.
8400 * selftest-run-tests.c (run_tests): Likewise.
8402 2021-08-17 Iain Sandoe <iain@sandoe.co.uk>
8404 * config/darwin.c (darwin_file_end): Reset and reclaim the
8405 section names table at the end of compile.
8407 2021-08-17 Iain Sandoe <iain@sandoe.co.uk>
8410 * config.in: Regenerate.
8411 * config/i386/darwin.h (EXTRA_ASM_OPTS): New
8412 (ASM_SPEC): Pass options to disable branch shortening where
8414 * configure: Regenerate.
8415 * configure.ac: Detect versions of 'as' that support the
8416 optimisation which has the bug.
8418 2021-08-17 Richard Biener <rguenther@suse.de>
8420 * optabs-query.c (supports_vec_gather_load_p): Also check
8422 (supports_vec_scatter_store_p): Likewise.
8423 * tree-vect-data-refs.c (vect_gather_scatter_fn_p): Fall
8424 back to masked variants if non-masked are not supported.
8425 * tree-vect-patterns.c (vect_recog_gather_scatter_pattern):
8426 When we need to use masked gather/scatter but do not have
8427 a mask set up a constant true one.
8428 * tree-vect-stmts.c (vect_check_scalar_mask): Also allow
8431 2021-08-17 Roger Sayle <roger@nextmovesoftware.com>
8433 * tree-ssa-ccp.c (bit_value_binop) [MINUS_EXPR]: Use same
8434 algorithm as PLUS_EXPR to improve subtraction bit bounds.
8435 [POINTER_DIFF_EXPR]: Treat as synonymous with MINUS_EXPR.
8437 2021-08-17 Roger Sayle <roger@nextmovesoftware.com>
8439 * tree-ssa-ccp.c (bit_value_mult_const): New helper function to
8440 calculate the mask-value pair result of a multiplication by an
8442 (bit_value_binop) [MULT_EXPR]: Call it from here for
8443 multiplications by (sparse) non-negative constants.
8445 2021-08-17 Christophe Lyon <christophe.lyon@foss.st.com>
8448 * config.gcc (gcc_cv_initfini_array): Leave undefined for
8449 uclinuxfdpiceabi targets.
8451 2021-08-17 Alexandre Oliva <oliva@adacore.com>
8453 * tree-inline.c (maybe_move_debug_stmts_to_successors): Don't
8454 reverse debug stmts.
8456 2021-08-17 Alexandre Oliva <oliva@adacore.com>
8458 * tree-cfg.c (dump_function_to_file): Use fun, not cfun.
8460 2021-08-17 Jonathan Wright <jonathan.wright@arm.com>
8462 * config/aarch64/arm_neon.h (__LD4_LANE_FUNC): Delete.
8463 (__LD4Q_LANE_FUNC): Likewise.
8464 (vld4_lane_u8): Define without macro.
8465 (vld4_lane_u16): Likewise.
8466 (vld4_lane_u32): Likewise.
8467 (vld4_lane_u64): Likewise.
8468 (vld4_lane_s8): Likewise.
8469 (vld4_lane_s16): Likewise.
8470 (vld4_lane_s32): Likewise.
8471 (vld4_lane_s64): Likewise.
8472 (vld4_lane_f16): Likewise.
8473 (vld4_lane_f32): Likewise.
8474 (vld4_lane_f64): Likewise.
8475 (vld4_lane_p8): Likewise.
8476 (vld4_lane_p16): Likewise.
8477 (vld4_lane_p64): Likewise.
8478 (vld4q_lane_u8): Likewise.
8479 (vld4q_lane_u16): Likewise.
8480 (vld4q_lane_u32): Likewise.
8481 (vld4q_lane_u64): Likewise.
8482 (vld4q_lane_s8): Likewise.
8483 (vld4q_lane_s16): Likewise.
8484 (vld4q_lane_s32): Likewise.
8485 (vld4q_lane_s64): Likewise.
8486 (vld4q_lane_f16): Likewise.
8487 (vld4q_lane_f32): Likewise.
8488 (vld4q_lane_f64): Likewise.
8489 (vld4q_lane_p8): Likewise.
8490 (vld4q_lane_p16): Likewise.
8491 (vld4q_lane_p64): Likewise.
8492 (vld4_lane_bf16): Likewise.
8493 (vld4q_lane_bf16): Likewise.
8495 2021-08-17 Jonathan Wright <jonathan.wright@arm.com>
8497 * config/aarch64/arm_neon.h (__LD3_LANE_FUNC): Delete.
8498 (__LD3Q_LANE_FUNC): Delete.
8499 (vld3_lane_u8): Define without macro.
8500 (vld3_lane_u16): Likewise.
8501 (vld3_lane_u32): Likewise.
8502 (vld3_lane_u64): Likewise.
8503 (vld3_lane_s8): Likewise.
8504 (vld3_lane_s16): Likewise.
8505 (vld3_lane_s32): Likewise.
8506 (vld3_lane_s64): Likewise.
8507 (vld3_lane_f16): Likewise.
8508 (vld3_lane_f32): Likewise.
8509 (vld3_lane_f64): Likewise.
8510 (vld3_lane_p8): Likewise.
8511 (vld3_lane_p16): Likewise.
8512 (vld3_lane_p64): Likewise.
8513 (vld3q_lane_u8): Likewise.
8514 (vld3q_lane_u16): Likewise.
8515 (vld3q_lane_u32): Likewise.
8516 (vld3q_lane_u64): Likewise.
8517 (vld3q_lane_s8): Likewise.
8518 (vld3q_lane_s16): Likewise.
8519 (vld3q_lane_s32): Likewise.
8520 (vld3q_lane_s64): Likewise.
8521 (vld3q_lane_f16): Likewise.
8522 (vld3q_lane_f32): Likewise.
8523 (vld3q_lane_f64): Likewise.
8524 (vld3q_lane_p8): Likewise.
8525 (vld3q_lane_p16): Likewise.
8526 (vld3q_lane_p64): Likewise.
8527 (vld3_lane_bf16): Likewise.
8528 (vld3q_lane_bf16): Likewise.
8530 2021-08-17 Jonathan Wright <jonathan.wright@arm.com>
8532 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Delete.
8533 (__LD2Q_LANE_FUNC): Likewise.
8534 (vld2_lane_u8): Define without macro.
8535 (vld2_lane_u16): Likewise.
8536 (vld2_lane_u32): Likewise.
8537 (vld2_lane_u64): Likewise.
8538 (vld2_lane_s8): Likewise.
8539 (vld2_lane_s16): Likewise.
8540 (vld2_lane_s32): Likewise.
8541 (vld2_lane_s64): Likewise.
8542 (vld2_lane_f16): Likewise.
8543 (vld2_lane_f32): Likewise.
8544 (vld2_lane_f64): Likewise.
8545 (vld2_lane_p8): Likewise.
8546 (vld2_lane_p16): Likewise.
8547 (vld2_lane_p64): Likewise.
8548 (vld2q_lane_u8): Likewise.
8549 (vld2q_lane_u16): Likewise.
8550 (vld2q_lane_u32): Likewise.
8551 (vld2q_lane_u64): Likewise.
8552 (vld2q_lane_s8): Likewise.
8553 (vld2q_lane_s16): Likewise.
8554 (vld2q_lane_s32): Likewise.
8555 (vld2q_lane_s64): Likewise.
8556 (vld2q_lane_f16): Likewise.
8557 (vld2q_lane_f32): Likewise.
8558 (vld2q_lane_f64): Likewise.
8559 (vld2q_lane_p8): Likewise.
8560 (vld2q_lane_p16): Likewise.
8561 (vld2q_lane_p64): Likewise.
8562 (vld2_lane_bf16): Likewise.
8563 (vld2q_lane_bf16): Likewise.
8565 2021-08-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
8567 * haifa-sched.c (advance_one_cycle): Output more context-synchronization
8570 2021-08-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
8572 * haifa-sched.c (enum rfs_decision, rfs_str): Add RFS_AUTOPREF.
8573 (rank_for_schedule): Use it.
8575 2021-08-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
8577 PR rtl-optimization/91598
8578 * haifa-sched.c (autopref_rank_for_schedule): Prioritize "irrelevant"
8579 insns after memory reads and before memory writes.
8581 2021-08-17 Alistair_Lee <alistair.lee@arm.com>
8583 * rtl.h (CONST_VECTOR_P): New macro.
8584 * config/aarch64/aarch64.c (aarch64_get_sve_pred_bits): Use RTL
8585 code testing macros.
8586 (aarch64_ptrue_all_mode): Likewise.
8587 (aarch64_expand_mov_immediate): Likewise.
8588 (aarch64_const_vec_all_in_range_p): Likewise.
8589 (aarch64_rtx_costs): Likewise.
8590 (aarch64_legitimate_constant_p): Likewise.
8591 (aarch64_simd_valid_immediate): Likewise.
8592 (aarch64_simd_make_constant): Likewise.
8593 (aarch64_convert_mult_to_shift): Likewise.
8594 (aarch64_expand_sve_vec_perm): Likewise.
8595 (aarch64_vec_fpconst_pow_of_2): Likewise.
8597 2021-08-17 Andrew MacLeod <amacleod@redhat.com>
8599 PR tree-optimization/101938
8600 * range-op.cc (operator_abs::op1_range): Special case
8601 -TYPE_MIN_VALUE for flag_wrapv.
8603 2021-08-17 Kewen Lin <linkw@linux.ibm.com>
8605 * tree-vect-slp.c (vectorizable_bb_reduc_epilogue): Add the cost for
8608 2021-08-17 Jakub Jelinek <jakub@redhat.com>
8610 * tree.def (OMP_SCOPE): New tree code.
8611 * tree.h (OMP_SCOPE_BODY, OMP_SCOPE_CLAUSES): Define.
8612 * tree-nested.c (convert_nonlocal_reference_stmt,
8613 convert_local_reference_stmt, convert_gimple_call): Handle
8615 * tree-pretty-print.c (dump_generic_node): Handle OMP_SCOPE.
8616 * gimple.def (GIMPLE_OMP_SCOPE): New gimple code.
8617 * gimple.c (gimple_build_omp_scope): New function.
8618 (gimple_copy): Handle GIMPLE_OMP_SCOPE.
8619 * gimple.h (gimple_build_omp_scope): Declare.
8620 (gimple_has_substatements): Handle GIMPLE_OMP_SCOPE.
8621 (gimple_omp_scope_clauses, gimple_omp_scope_clauses_ptr,
8622 gimple_omp_scope_set_clauses): New inline functions.
8623 (CASE_GIMPLE_OMP): Add GIMPLE_OMP_SCOPE.
8624 * gimple-pretty-print.c (dump_gimple_omp_scope): New function.
8625 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCOPE.
8626 * gimple-walk.c (walk_gimple_stmt): Likewise.
8627 * gimple-low.c (lower_stmt): Likewise.
8628 * gimplify.c (is_gimple_stmt): Handle OMP_MASTER.
8629 (gimplify_scan_omp_clauses): For task reductions, handle OMP_SCOPE
8630 like ORT_WORKSHARE constructs. Adjust diagnostics for %<scope%>
8631 allowing task reductions. Reject inscan reductions on scope.
8632 (omp_find_stores_stmt): Handle GIMPLE_OMP_SCOPE.
8633 (gimplify_omp_workshare, gimplify_expr): Handle OMP_SCOPE.
8634 * tree-inline.c (remap_gimple_stmt): Handle GIMPLE_OMP_SCOPE.
8635 (estimate_num_insns): Likewise.
8636 * omp-low.c (build_outer_var_ref): Look through GIMPLE_OMP_SCOPE
8637 contexts if var isn't privatized there.
8638 (check_omp_nesting_restrictions): Handle GIMPLE_OMP_SCOPE.
8639 (scan_omp_1_stmt): Likewise.
8640 (maybe_add_implicit_barrier_cancel): Look through outer
8642 (lower_omp_scope): New function.
8643 (lower_omp_task_reductions): Handle OMP_SCOPE.
8644 (lower_omp_1): Handle GIMPLE_OMP_SCOPE.
8645 (diagnose_sb_1, diagnose_sb_2): Likewise.
8646 * omp-expand.c (expand_omp_single): Support also GIMPLE_OMP_SCOPE.
8647 (expand_omp): Handle GIMPLE_OMP_SCOPE.
8648 (omp_make_gimple_edges): Likewise.
8649 * omp-builtins.def (BUILT_IN_GOMP_SCOPE_START): New built-in.
8651 2021-08-17 Richard Biener <rguenther@suse.de>
8653 PR tree-optimization/101925
8654 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Set
8655 reverse on COMPONENT_REF and ARRAY_REF according to
8656 what reverse_storage_order_for_component_p does.
8657 (vn_reference_eq): Compare reversed on reference ops.
8658 (reverse_storage_order_for_component_p): New overload.
8659 (vn_reference_lookup_3): Check reverse_storage_order_for_component_p
8660 on the reference looked up.
8662 2021-08-17 Jeff Law <jlaw@localhost.localdomain>
8664 * config/h8300/h8300.c (shift_alg_si): Avoid loops for most SImode
8666 (h8300_option_override): Use loops on H8/S more often when optimizing
8668 (get_shift_alg): Handle new "special" cases on H8/S. Simplify
8669 accordingly. Handle various arithmetic right shifts with special
8670 sequences that we couldn't handle before.
8672 2021-08-16 Jeff Law <jlaw@localhost.localdomain>
8674 * config.gcc (rl78-*-elf*): Do not include dbxelf.h.
8676 2021-08-16 Sebastian Huber <sebastian.huber@embedded-brains.de>
8678 * config/sparc/rtemself.h (SPARC_GCOV_TYPE_SIZE): Define.
8679 * config/sparc/sparc.c (sparc_gcov_type_size): New.
8680 (TARGET_GCOV_TYPE_SIZE): Redefine if SPARC_GCOV_TYPE_SIZE is defined.
8681 * coverage.c (get_gcov_type): Use targetm.gcov_type_size().
8682 * doc/tm.texi (TARGET_GCOV_TYPE_SIZE): Add hook under "Misc".
8683 * doc/tm.texi.in: Regenerate.
8684 * target.def (gcov_type_size): New target hook.
8685 * targhooks.c (default_gcov_type_size): New.
8686 * targhooks.h (default_gcov_type_size): Declare.
8687 * tree-profile.c (gimple_gen_edge_profiler): Use precision of
8689 (gimple_gen_time_profiler): Likewise.
8691 2021-08-16 Eric Botcazou <ebotcazou@gcc.gnu.org>
8693 * dwarf2out.c (add_scalar_info): Deal with DW_AT_data_bit_offset.
8695 2021-08-16 Tobias Burnus <tobias@codesourcery.com>
8697 PR middle-end/101931
8698 * omp-low.c (omp_runtime_api_call): Update for routines
8699 added in the meanwhile.
8701 2021-08-16 Martin Liska <mliska@suse.cz>
8703 PR tree-optimization/100393
8704 * tree-switch-conversion.c (group_cluster::dump): Use
8705 get_comparison_count.
8706 (jump_table_cluster::find_jump_tables): Pre-compute number of
8707 comparisons and then decrement it. Cache also max_ratio.
8708 (jump_table_cluster::can_be_handled): Change signature.
8709 * tree-switch-conversion.h (get_comparison_count): New.
8711 2021-08-16 Eric Botcazou <ebotcazou@gcc.gnu.org>
8713 * dwarf2out.c (add_data_member_location_attribute): Use GNAT
8714 encodings only when -fgnat-encodings=all is specified.
8715 (add_bound_info): Likewise.
8716 (add_byte_size_attribute): Likewise.
8717 (gen_member_die): Likewise.
8719 2021-08-16 Thomas Schwinge <thomas@codesourcery.com>
8721 * omp-oacc-neuter-broadcast.cc
8722 (execute_omp_oacc_neuter_broadcast): Plug 'par' memory leak.
8724 2021-08-16 Thomas Schwinge <thomas@codesourcery.com>
8726 * omp-oacc-neuter-broadcast.cc
8727 (execute_omp_oacc_neuter_broadcast): Clarify memory management for
8730 2021-08-16 Thomas Schwinge <thomas@codesourcery.com>
8732 * omp-oacc-neuter-broadcast.cc (field_map): Move variable into...
8733 (execute_omp_oacc_neuter_broadcast): ... here.
8734 (install_var_field, build_receiver_ref, build_sender_ref): Take
8735 'field_map_t *' parameter. Adjust all users.
8736 (worker_single_copy, neuter_worker_single): Take a
8737 'record_field_map_t *' parameter. Adjust all users.
8739 2021-08-16 liuhongt <hongtao.liu@intel.com>
8742 * config/i386/i386.md (ldexp<mode>3): Force operands[1] to
8745 2021-08-16 Martin Liska <mliska@suse.cz>
8748 * multiple_target.c (create_dispatcher_calls): Make default
8749 function local only if it is a definition.
8751 2021-08-16 Martin Liska <mliska@suse.cz>
8754 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Do not
8755 consider equal SSA_NAMEs when one is a param.
8757 2021-08-16 liuhongt <hongtao.liu@intel.com>
8760 * config/i386/i386-expand.c (ix86_expand_vec_perm_vpermt2):
8761 Support vpermi2b for V32QI/V16QImode.
8762 (ix86_extract_perm_from_pool_constant): New function.
8763 (ix86_expand_vec_one_operand_perm_avx512): Support
8764 vpermw/vpermb under TARGET_AVX512BW/TARGET_AVX512VBMI.
8765 (expand_vec_perm_1): Adjust comments for upper.
8766 * config/i386/i386-protos.h (ix86_extract_perm_from_pool_constant):
8768 * config/i386/predicates.md (permvar_truncate_operand): New predicate.
8769 (pshufb_truncv4siv4hi_operand): Ditto.
8770 (pshufb_truncv8hiv8qi_operand): Ditto.
8771 * config/i386/sse.md (*avx512bw_permvar_truncv16siv16hi_1):
8772 New pre_reload define_insn_and_split.
8773 (*avx512f_permvar_truncv8siv8hi_1): Ditto.
8774 (*avx512f_vpermvar_truncv8div8si_1): Ditto.
8775 (*avx512f_permvar_truncv32hiv32qi_1): Ditto.
8776 (*avx512f_permvar_truncv16hiv16qi_1): Ditto.
8777 (*avx512f_permvar_truncv4div4si_1): Ditto.
8778 (*avx512f_pshufb_truncv8hiv8qi_1): Ditto.
8779 (*avx512f_pshufb_truncv4siv4hi_1): Ditto.
8780 (*avx512f_pshufd_truncv2div2si_1): Ditto.
8782 2021-08-16 Kito Cheng <kito.cheng@sifive.com>
8784 * config/riscv/multilib-generator: Support code model option for
8786 * doc/install.texi: Add document of new option for
8787 --with-multilib-generator.
8789 2021-08-15 Clément Chigot <clement.chigot@atos.net>
8791 * config/rs6000/rs6000.c (xcoff_tls_exec_model_detected): New.
8792 (rs6000_legitimize_tls_address_aix): Use it.
8793 (rs6000_xcoff_file_end): Add ".ref __tls_get_addr" when
8794 xcoff_tls_exec_model_detected is true.
8796 2021-08-15 Jeff Law <jlaw@localhost.localdomain>
8798 * config/h8300/h8300.c (shift_alg_si): Retune H8/300H shifts
8799 to allow a bit more code growth, saving many dozens of cycles.
8800 (h8300_option_override): Adjus shift_alg_si if optimizing for
8802 (get_shift_alg): Use special + inline shifts for residuals
8805 2021-08-14 Stafford Horne <shorne@gmail.com>
8808 * config/or1k/or1k-opts.h: New file.
8809 * config/or1k/or1k.c (or1k_legitimize_address_1, print_reloc):
8810 Support generating gotha relocations if -mcmodel=large is
8812 * config/or1k/or1k.h (TARGET_CMODEL_SMALL, TARGET_CMODEL_LARGE):
8814 * config/or1k/or1k.opt (mcmodel=): New option.
8815 * doc/invoke.texi (OpenRISC Options): Document mcmodel.
8817 2021-08-14 Martin Sebor <msebor@redhat.com>
8819 PR middle-end/101791
8820 * gimple-ssa-warn-access.cc (new_delete_mismatch_p): Use new argument
8821 to valid_new_delete_pair_p.
8822 * tree.c (valid_new_delete_pair_p): Add argument.
8823 * tree.h (valid_new_delete_pair_p): Same.
8825 2021-08-14 Jakub Jelinek <jakub@redhat.com>
8828 * config/i386/i386-expand.c (expand_vec_perm_broadcast_1)
8829 <case E_V64QImode>: For this mode assert
8830 !TARGET_AVX512BW || d->perm[0] rather than !TARGET_AVX2 || d->perm[0].
8832 2021-08-13 Michael Meissner <meissner@linux.ibm.com>
8835 * config/rs6000/altivec.md (xxeval): Use register_predicate
8836 instead of altivec_register_predicate.
8838 2021-08-13 Martin Sebor <msebor@redhat.com>
8840 PR middle-end/101734
8841 * tree-ssa-uninit.c (maybe_warn_read_write_only): New function.
8842 (maybe_warn_operand): Call it.
8844 2021-08-13 Martin Liska <mliska@suse.cz>
8847 * attribs.c (decl_attributes): Make naked functions "noipa"
8850 2021-08-13 Martin Liska <mliska@suse.cz>
8853 * symtab.c (symtab_node::noninterposable_alias): Do not create
8854 local aliases for target_clone functions as the clonning pass
8857 2021-08-13 Martin Liska <mliska@suse.cz>
8859 * opts.c (LIVE_PATCHING_OPTION): Define.
8860 (control_options_for_live_patching): Use it in error messages.
8862 2021-08-13 Jan Hubicka <hubicka@ucw.cz>
8864 * ipa-modref.c (dump_eaf_flags): Dump EAF_NOREAD.
8865 (implicit_const_eaf_flags, implicit_pure_eaf_flags,
8866 ignore_stores_eaf_flags): New constants.
8867 (remove_useless_eaf_flags): New function.
8868 (eaf_flags_useful_p): Use it.
8869 (deref_flags): Add EAF_NOT_RETURNED if flag is unused;
8871 (modref_lattice::init): Add EAF_NOREAD.
8872 (modref_lattice::add_escape_point): Do not reacord escape point if
8874 (modref_lattice::merge): EAF_NOESCAPE implies EAF_NODIRECTESCAPE;
8875 use remove_useless_eaf_flags.
8876 (modref_lattice::merge_deref): Use ignore_stores_eaf_flags.
8877 (modref_lattice::merge_direct_load): Add EAF_NOREAD
8878 (analyze_ssa_name_flags): Fix handling EAF_NOT_RETURNED
8879 (analyze_parms): Use remove_useless_eaf_flags.
8880 (ipa_merge_modref_summary_after_inlining): Use ignore_stores_eaf_flags.
8881 (modref_merge_call_site_flags): Add caller and ecf_flags parameter;
8882 use remove_useless_eaf_flags.
8883 (modref_propagate_flags_in_scc): Update.
8884 * ipa-modref.h: Turn eaf_flags_t back to char.
8885 * tree-core.h (EAF_NOT_RETURNED): Fix.
8886 (EAF_NOREAD): New constant
8887 * tree-ssa-alias.c: (ref_maybe_used_by_call_p_1): Check for
8889 * tree-ssa-structalias.c (handle_rhs_call): Handle new flags.
8890 (handle_pure_call): Likewise.
8892 2021-08-12 Jakub Jelinek <jakub@redhat.com>
8894 * tree.def (OMP_MASKED): New tree code.
8895 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_FILTER.
8896 * tree.h (OMP_MASKED_BODY, OMP_MASKED_CLAUSES, OMP_MASKED_COMBINED,
8897 OMP_CLAUSE_FILTER_EXPR): Define.
8898 * tree.c (omp_clause_num_ops): Add OMP_CLAUSE_FILTER entry.
8899 (omp_clause_code_name): Likewise.
8900 (walk_tree_1): Handle OMP_CLAUSE_FILTER.
8901 * tree-nested.c (convert_nonlocal_omp_clauses,
8902 convert_local_omp_clauses): Handle OMP_CLAUSE_FILTER.
8903 (convert_nonlocal_reference_stmt, convert_local_reference_stmt,
8904 convert_gimple_call): Handle GIMPLE_OMP_MASTER.
8905 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_FILTER.
8906 (dump_generic_node): Handle OMP_MASTER.
8907 * gimple.def (GIMPLE_OMP_MASKED): New gimple code.
8908 * gimple.c (gimple_build_omp_masked): New function.
8909 (gimple_copy): Handle GIMPLE_OMP_MASKED.
8910 * gimple.h (gimple_build_omp_masked): Declare.
8911 (gimple_has_substatements): Handle GIMPLE_OMP_MASKED.
8912 (gimple_omp_masked_clauses, gimple_omp_masked_clauses_ptr,
8913 gimple_omp_masked_set_clauses): New inline functions.
8914 (CASE_GIMPLE_OMP): Add GIMPLE_OMP_MASKED.
8915 * gimple-pretty-print.c (dump_gimple_omp_masked): New function.
8916 (pp_gimple_stmt_1): Handle GIMPLE_OMP_MASKED.
8917 * gimple-walk.c (walk_gimple_stmt): Likewise.
8918 * gimple-low.c (lower_stmt): Likewise.
8919 * gimplify.c (is_gimple_stmt): Handle OMP_MASTER.
8920 (gimplify_scan_omp_clauses): Handle OMP_CLAUSE_FILTER. For clauses
8921 that take one expression rather than decl or constant, force
8922 gimplification of that into a SSA_NAME or temporary unless min
8924 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_FILTER.
8925 (gimplify_expr): Handle OMP_MASKED.
8926 * tree-inline.c (remap_gimple_stmt): Handle GIMPLE_OMP_MASKED.
8927 (estimate_num_insns): Likewise.
8928 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_FILTER.
8929 (check_omp_nesting_restrictions): Handle GIMPLE_OMP_MASKED. Adjust
8930 diagnostics for existence of masked construct.
8931 (scan_omp_1_stmt, lower_omp_master, lower_omp_1, diagnose_sb_1,
8932 diagnose_sb_2): Handle GIMPLE_OMP_MASKED.
8933 * omp-expand.c (expand_omp_synch, expand_omp, omp_make_gimple_edges):
8936 2021-08-12 Uroš Bizjak <ubizjak@gmail.com>
8939 * config/i386/i386.md (avx512f_scalef<mode>2): New insn pattern.
8940 (ldexp<mode>3): Use avx512f_scalef<mode>2.
8941 (UNSPEC_SCALEF): Move from ...
8942 * config/i386/sse.md (UNSPEC_SCALEF): ... here.
8944 2021-08-12 Jan Hubicka <hubicka@ucw.cz>
8946 * ipa-split.c (consider_split): Fix condition testing void functions.
8948 2021-08-12 Aldy Hernandez <aldyh@redhat.com>
8950 * doc/invoke.texi: Remove docs for threader-mode param.
8951 * flag-types.h (enum threader_mode): Remove.
8952 * params.opt: Remove threader-mode param.
8953 * tree-ssa-threadbackward.c (class back_threader): Remove
8954 path_is_unreachable_p.
8955 Make find_paths private.
8956 Add maybe_thread and thread_through_all_blocks.
8957 Remove reference marker for m_registry.
8958 Remove reference marker for m_profit.
8959 (back_threader::back_threader): Adjust for registry and profit not
8961 (dump_path): Move down.
8963 (class thread_jumps): Remove.
8964 (class back_threader_registry): Remove m_all_paths.
8966 (thread_jumps::thread_through_all_blocks): Move to back_threader
8968 (fsm_find_thread_path): Remove
8969 (back_threader::maybe_thread): New.
8970 (back_threader::thread_through_all_blocks): Move from
8972 (back_threader_registry::back_threader_registry): Remove
8974 (back_threader_registry::~back_threader_registry): Remove.
8975 (thread_jumps::find_taken_edge): Remove.
8976 (thread_jumps::check_subpath_and_update_thread_path): Remove.
8977 (thread_jumps::maybe_register_path): Remove.
8978 (thread_jumps::handle_phi): Remove.
8979 (handle_assignment_p): Remove.
8980 (thread_jumps::handle_assignment): Remove.
8981 (thread_jumps::fsm_find_control_statement_thread_paths): Remove.
8982 (thread_jumps::find_jump_threads_backwards): Remove.
8983 (thread_jumps::find_jump_threads_backwards_with_ranger): Remove.
8984 (try_thread_blocks): Rename find_jump_threads_backwards to
8986 (pass_early_thread_jumps::execute): Same.
8988 2021-08-12 Tobias Burnus <tobias@codesourcery.com>
8990 * tree-core.h (omp_clause_proc_bind_kind): Add
8991 OMP_CLAUSE_PROC_BIND_PRIMARY.
8992 * tree-pretty-print.c (dump_omp_clause): Add TODO comment to
8993 change 'master' to 'primary' in proc_bind for OpenMP 5.1.
8995 2021-08-12 Claudiu Zissulescu <claziss@synopsys.com>
8997 * common/config/arc/arc-common.c (arc_option_init_struct): Remove
8998 fno-common reference.
8999 * config/arc/arc.c (arc_override_options): Remove overriding of
9002 2021-08-12 Jakub Jelinek <jakub@redhat.com>
9005 * config/i386/i386-expand.c (ix86_expand_vec_one_operand_perm_avx512):
9006 If d->testing_p, return true after performing checks instead of
9007 actually expanding the insn.
9008 (expand_vec_perm_broadcast_1): Handle V32HImode - assert
9009 !TARGET_AVX512BW and return false.
9011 2021-08-12 Eric Botcazou <ebotcazou@gcc.gnu.org>
9013 * configure.ac (PE linker --disable-dynamicbase support): New check.
9014 * configure: Regenerate.
9015 * config.in: Likewise.
9016 * config/i386/mingw32.h (LINK_SPEC_DISABLE_DYNAMICBASE): New define.
9017 (LINK_SPEC): Use it.
9018 * config/i386/mingw-w64.h (LINK_SPEC_DISABLE_DYNAMICBASE): Likewise.
9019 (LINK_SPEC): Likewise.
9021 2021-08-12 liuhongt <hongtao.liu@intel.com>
9024 * config/i386/sse.md (*avx2_zero_extendv16qiv16hi2_2): New
9025 post_reload define_insn_and_split.
9026 (*avx512bw_zero_extendv32qiv32hi2_2): Ditto.
9027 (*sse4_1_zero_extendv8qiv8hi2_4): Ditto.
9028 (*avx512f_zero_extendv16hiv16si2_2): Ditto.
9029 (*avx2_zero_extendv8hiv8si2_2): Ditto.
9030 (*sse4_1_zero_extendv4hiv4si2_4): Ditto.
9031 (*avx512f_zero_extendv8siv8di2_2): Ditto.
9032 (*avx2_zero_extendv4siv4di2_2): Ditto.
9033 (*sse4_1_zero_extendv2siv2di2_4): Ditto.
9034 (VI248_256, VI248_512, VI148_512, VI148_256, VI148_128): New
9037 2021-08-11 Bill Schmidt <wschmidt@linux.ibm.com>
9039 * config/rs6000/rs6000-builtin-new.def: Add always, power5, and
9042 2021-08-11 Bill Schmidt <wschmidt@linux.ibm.com>
9044 * config/rs6000/rs6000-builtin-new.def: Add vsx stanza.
9046 2021-08-11 Bill Schmidt <wschmidt@linux.ibm.com>
9048 * config/rs6000/rs6000-builtin-new.def: Finish altivec stanza.
9049 * config/rs6000/rs6000-call.c (rs6000_init_builtins): Move
9050 initialization of pcvoid_type_node here...
9051 (altivec_init_builtins): ...from here.
9052 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add
9053 RS6000_BTI_const_ptr_void.
9054 (pcvoid_type_node): New macro.
9056 2021-08-11 Richard Biener <rguenther@suse.de>
9059 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not decompose
9060 hard-register accesses.
9062 2021-08-11 Richard Biener <rguenther@suse.de>
9064 * tree-ssa-operands.c (operands_scanner::get_expr_operands):
9065 Do not look at COMPONENT_REF FIELD_DECLs TREE_THIS_VOLATILE
9066 to determine has_volatile_ops.
9068 2021-08-11 Eric Botcazou <ebotcazou@gcc.gnu.org>
9070 * cfgexpand.c (expand_used_vars): Reuse attribs local variable.
9072 2021-08-11 Jan Hubicka <hubicka@ucw.cz>
9073 Alexandre Oliva <oliva@adacore.com>
9075 * ipa-modref.c (modref_lattice::dump): Fix escape_point's min_flags
9077 (modref_lattice::merge_deref): Fix handling of indirect scape points.
9078 (update_escape_summary_1): Likewise.
9079 (update_escape_summary): Likewise.
9080 (ipa_merge_modref_summary_after_inlining): Likewise.
9082 2021-08-11 Richard Biener <rguenther@suse.de>
9084 PR middle-end/101858
9085 * fold-const.c (fold_binary_loc): Guard simplification
9086 of X < (cast) (1 << Y) to integer types.
9088 2021-08-11 Richard Biener <rguenther@suse.de>
9090 PR tree-optimization/101861
9091 * tree-vect-stmts.c (vectorizable_load): Fix error in
9092 previous change with regard to gather vectorization.
9094 2021-08-11 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
9097 * config/arm/arm_neon.h (vdup_n_s8): Replace call to builtin
9099 (vdup_n_s16): Likewise.
9100 (vdup_n_s32): Likewise.
9101 (vdup_n_s64): Likewise.
9102 (vdup_n_u8): Likewise.
9103 (vdup_n_u16): Likewise.
9104 (vdup_n_u32): Likewise.
9105 (vdup_n_u64): Likewise.
9106 (vdup_n_p8): Likewise.
9107 (vdup_n_p16): Likewise.
9108 (vdup_n_p64): Likewise.
9109 (vdup_n_f16): Likewise.
9110 (vdup_n_f32): Likewise.
9111 (vdupq_n_s8): Likewise.
9112 (vdupq_n_s16): Likewise.
9113 (vdupq_n_s32): Likewise.
9114 (vdupq_n_s64): Likewise.
9115 (vdupq_n_u8): Likewise.
9116 (vdupq_n_u16): Likewise.
9117 (vdupq_n_u32): Likewise.
9118 (vdupq_n_u64): Likewise.
9119 (vdupq_n_p8): Likewise.
9120 (vdupq_n_p16): Likewise.
9121 (vdupq_n_p64): Likewise.
9122 (vdupq_n_f16): Likewise.
9123 (vdupq_n_f32): Likewise.
9124 (vmov_n_s8): Replace call to builtin with call to corresponding
9126 (vmov_n_s16): Likewise.
9127 (vmov_n_s32): Likewise.
9128 (vmov_n_s64): Likewise.
9129 (vmov_n_u8): Likewise.
9130 (vmov_n_u16): Likewise.
9131 (vmov_n_u32): Likewise.
9132 (vmov_n_u64): Likewise.
9133 (vmov_n_p8): Likewise.
9134 (vmov_n_p16): Likewise.
9135 (vmov_n_f16): Likewise.
9136 (vmov_n_f32): Likewise.
9137 (vmovq_n_s8): Likewise.
9138 (vmovq_n_s16): Likewise.
9139 (vmovq_n_s32): Likewise.
9140 (vmovq_n_s64): Likewise.
9141 (vmovq_n_u8): Likewise.
9142 (vmovq_n_u16): Likewise.
9143 (vmovq_n_u32): Likewise.
9144 (vmovq_n_u64): Likewise.
9145 (vmovq_n_p8): Likewise.
9146 (vmovq_n_p16): Likewise.
9147 (vmovq_n_f16): Likewise.
9148 (vmovq_n_f32): Likewise.
9149 * config/arm/arm_neon_builtins.def: Remove entries for vdup_n.
9151 2021-08-11 liuhongt <hongtao.liu@intel.com>
9154 * config/i386/i386.md (ldexp<mode>3): Extend to vscalefs[sd]
9155 when TARGET_AVX512F and TARGET_SSE_MATH.
9157 2021-08-10 Jakub Jelinek <jakub@redhat.com>
9160 * config/i386/i386-expand.c (expand_vec_perm_even_odd): Return false
9161 for V32HImode if !TARGET_AVX512BW.
9162 (ix86_vectorize_vec_perm_const) <case E_V32HImode, case E_V64QImode>:
9163 If !TARGET_AVX512BW and TARGET_AVX512F and d.testing_p, don't fail
9164 early, but actually check the permutation.
9166 2021-08-10 Richard Biener <rguenther@suse.de>
9168 PR tree-optimization/101809
9169 * tree-vect-stmts.c (get_load_store_type): Allow emulated
9170 gathers with offset vector nunits being a constant multiple
9171 of the data vector nunits.
9172 (vect_get_gather_scatter_ops): Use the appropriate nunits
9173 for the offset vector defs.
9174 (vectorizable_store): Adjust call to
9175 vect_get_gather_scatter_ops.
9176 (vectorizable_load): Likewise. Handle the case of less
9177 offset vectors than data vectors.
9179 2021-08-10 Jakub Jelinek <jakub@redhat.com>
9182 * config/i386/sse.md (*avx512f_shuf_<shuffletype>64x2_1<mask_name>_1,
9183 *avx512f_shuf_<shuffletype>32x4_1<mask_name>_1): New define_insn
9186 2021-08-10 Richard Biener <rguenther@suse.de>
9188 PR tree-optimization/101801
9189 PR tree-optimization/101819
9190 * tree-vectorizer.h (vect_emulated_vector_p): Declare.
9191 * tree-vect-loop.c (vect_emulated_vector_p): New function.
9192 (vectorizable_reduction): Re-instantiate a check for emulated
9194 * tree-vect-stmts.c (vectorizable_shift): Likewise.
9195 (vectorizable_operation): Likewise. Cost emulated vector
9196 operations according to the scalar sequence synthesized by
9199 2021-08-10 Richard Biener <rguenther@suse.de>
9201 PR middle-end/101824
9202 * tree-nested.c (get_frame_field): Mark the COMPONENT_REF as
9203 volatile in case the variable was.
9205 2021-08-10 H.J. Lu <hjl.tools@gmail.com>
9208 * config/i386/constraints.md (BC): Document for integer SSE
9209 constant all bits set operand.
9210 (BF): New constraint for const floating-point all bits set
9212 * config/i386/i386.c (standard_sse_constant_p): Likewise.
9213 (standard_sse_constant_opcode): Likewise.
9214 * config/i386/sse.md (sseconstm1): New mode attribute.
9215 (mov<mode>_internal): Replace BC with <sseconstm1>.
9217 2021-08-10 liuhongt <hongtao.liu@intel.com>
9219 * config/i386/sse.md (cond_<insn><mode>): New expander.
9220 (VI248_AVX512VLBW): New mode iterator.
9221 * config/i386/predicates.md
9222 (nonimmediate_or_const_vec_dup_operand): New predicate.
9224 2021-08-09 Andrew MacLeod <amacleod@redhat.com>
9226 PR tree-optimization/101741
9227 * gimple-range-fold.cc (fold_using_range::range_of_builtin_call): Check
9228 type of parameter for toupper/tolower.
9230 2021-08-09 Martin Jambor <mjambor@suse.cz>
9233 * ipa-prop.c (propagate_controlled_uses): Removed a spurious space.
9235 2021-08-09 Pat Haugen <pthaugen@linux.ibm.com>
9237 * config/rs6000/rs6000.c (is_load_insn1): Verify destination is a
9239 (is_store_insn1): Verify source is a register.
9241 2021-08-09 Uroš Bizjak <ubizjak@gmail.com>
9244 * config/i386/mmx.md (<any_logic:code>v2sf3):
9245 Rename from *mmx_<any_logic:code>v2sf3
9247 2021-08-09 Thomas Schwinge <thomas@codesourcery.com>
9249 * config/nvptx/nvptx.c: Cross-reference parts adapted in
9250 'gcc/omp-oacc-neuter-broadcast.cc'.
9251 * omp-low.c: Likewise.
9252 * omp-oacc-neuter-broadcast.cc: Cross-reference parts adapted from
9255 2021-08-09 Julian Brown <julian@codesourcery.com>
9256 Kwok Cheung Yeung <kcy@codesourcery.com>
9257 Thomas Schwinge <thomas@codesourcery.com>
9259 * config/gcn/gcn.c (gcn_init_builtins): Override decls for
9260 BUILT_IN_GOACC_SINGLE_START, BUILT_IN_GOACC_SINGLE_COPY_START,
9261 BUILT_IN_GOACC_SINGLE_COPY_END and BUILT_IN_GOACC_BARRIER.
9262 (gcn_goacc_validate_dims): Turn on worker partitioning unconditionally.
9263 (gcn_fork_join): Update comment.
9264 * config/gcn/gcn.opt (flag_worker_partitioning): Remove.
9265 (macc_experimental_workers): Remove unused option.
9267 2021-08-09 Julian Brown <julian@codesourcery.com>
9268 Nathan Sidwell <nathan@codesourcery.com> (via 'gcc/config/nvptx/nvptx.c' master)
9269 Kwok Cheung Yeung <kcy@codesourcery.com>
9270 Thomas Schwinge <thomas@codesourcery.com>
9272 * Makefile.in (OBJS): Add omp-oacc-neuter-broadcast.o.
9273 * doc/tm.texi.in (TARGET_GOACC_CREATE_WORKER_BROADCAST_RECORD):
9274 Add documentation hook.
9275 * doc/tm.texi: Regenerate.
9276 * omp-oacc-neuter-broadcast.cc: New file.
9277 * omp-builtins.def (BUILT_IN_GOACC_BARRIER)
9278 (BUILT_IN_GOACC_SINGLE_START, BUILT_IN_GOACC_SINGLE_COPY_START)
9279 (BUILT_IN_GOACC_SINGLE_COPY_END): New builtins.
9280 * passes.def (pass_omp_oacc_neuter_broadcast): Add pass.
9281 * target.def (goacc.create_worker_broadcast_record): Add target
9283 * tree-pass.h (make_pass_omp_oacc_neuter_broadcast): Add
9285 * config/gcn/gcn-protos.h (gcn_goacc_adjust_propagation_record):
9286 Rename prototype to...
9287 (gcn_goacc_create_worker_broadcast_record): ... this.
9288 * config/gcn/gcn-tree.c (gcn_goacc_adjust_propagation_record): Rename
9290 (gcn_goacc_create_worker_broadcast_record): ... this.
9291 * config/gcn/gcn.c (TARGET_GOACC_ADJUST_PROPAGATION_RECORD):
9293 (TARGET_GOACC_CREATE_WORKER_BROADCAST_RECORD): ... this.
9295 2021-08-09 Tejas Belagod <tejas.belagod@arm.com>
9298 * config/aarch64/aarch64-simd.md (vlshr<mode>3, vashr<mode>3): Use
9301 2021-08-09 Thomas Schwinge <thomas@codesourcery.com>
9303 * Makefile.in (GTFILES): Remove '$(srcdir)/omp-offload.c'.
9305 2021-08-09 Thomas Schwinge <thomas@codesourcery.com>
9307 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOMP_BUILTIN): Don't
9308 consider '-foffload-abi'.
9309 * common.opt (-foffload-abi): Remove 'Var', 'Init'.
9310 * opts.c (common_handle_option) <-foffload-abi> [ACCEL_COMPILER]:
9313 2021-08-09 Thomas Schwinge <thomas@codesourcery.com>
9315 * optc-gen.awk: Sanity check that 'Init' doesn't appear without
9318 2021-08-09 Thomas Schwinge <thomas@codesourcery.com>
9320 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE): Remove.
9322 2021-08-09 Thomas Schwinge <thomas@codesourcery.com>
9324 * doc/gty.texi (Files): Update.
9326 2021-08-09 Thomas Schwinge <thomas@codesourcery.com>
9328 * doc/gty.texi (Files): Fix GTY header file example.
9330 2021-08-09 Roger Sayle <roger@nextmovesoftware.com>
9332 * tree-ssa-ccp.c (value_mask_to_min_max): Helper function to
9333 determine the upper and lower bounds from a mask-value pair.
9334 (bit_value_unop) [ABS_EXPR, ABSU_EXPR]: Add support for
9335 absolute value and unsigned absolute value expressions.
9336 (bit_value_binop): Initialize *VAL's precision.
9337 [LT_EXPR, LE_EXPR]: Use value_mask_to_min_max to determine
9338 upper and lower bounds of operands. Add LE_EXPR/GE_EXPR
9339 support when the operands are unknown but potentially equal.
9340 [MIN_EXPR, MAX_EXPR]: Support minimum/maximum expressions.
9342 2021-08-09 Bin Cheng <bin.cheng@linux.alibaba.com>
9344 * config/aarch64/aarch64.md
9345 (*extend<SHORT:mode><GPI:mode>2_aarch64): Use %<GPI:w>0.
9347 2021-08-08 Sergei Trofimovich <siarheit@google.com>
9349 * lra-constraints.c: Fix s/otput/output/ typo.
9351 2021-08-06 Martin Sebor <msebor@redhat.com>
9353 * builtins.c (expand_builtin_memchr): Move to gimple-ssa-warn-access.cc.
9354 (expand_builtin_strcat): Same.
9355 (expand_builtin_stpncpy): Same.
9356 (expand_builtin_strncat): Same.
9357 (check_read_access): Same.
9358 (check_memop_access): Same.
9359 (expand_builtin_strlen): Move checks to gimple-ssa-warn-access.cc.
9360 (expand_builtin_strnlen): Same.
9361 (expand_builtin_memcpy): Same.
9362 (expand_builtin_memmove): Same.
9363 (expand_builtin_mempcpy): Same.
9364 (expand_builtin_strcpy): Same.
9365 (expand_builtin_strcpy_args): Same.
9366 (expand_builtin_stpcpy_1): Same.
9367 (expand_builtin_strncpy): Same.
9368 (expand_builtin_memset): Same.
9369 (expand_builtin_bzero): Same.
9370 (expand_builtin_strcmp): Same.
9371 (expand_builtin_strncmp): Same.
9372 (expand_builtin): Remove handlers.
9373 (fold_builtin_strlen): Add a comment.
9374 * builtins.h (check_access): Move to gimple-ssa-warn-access.cc.
9375 * calls.c (maybe_warn_nonstring_arg): Same.
9376 * diagnostic-spec.c (nowarn_spec_t::nowarn_spec_t): Add warning option.
9377 * gimple-fold.c (gimple_fold_builtin_strcpy): Pass argument to callee.
9378 (gimple_fold_builtin_stpcpy): Same.
9379 * gimple-ssa-warn-access.cc (has_location): New function.
9380 (get_location): Same.
9381 (get_callee_fndecl): Same.
9384 (warn_string_no_nul): Define.
9385 (unterminated_array): Same.
9386 (check_nul_terminated_array): Same.
9387 (maybe_warn_nonstring_arg): Same.
9388 (maybe_warn_for_bound): Same.
9389 (warn_for_access): Same.
9390 (check_access): Same.
9391 (check_memop_access): Same.
9392 (check_read_access): Same.
9393 (warn_dealloc_offset): Use helper functions.
9394 (maybe_emit_free_warning): Same.
9395 (class pass_waccess): Add members.
9396 (check_strcat): New function.
9397 (check_strncat): New function.
9398 (check_stxcpy): New function.
9399 (check_stxncpy): New function.
9400 (check_strncmp): New function.
9401 (pass_waccess::check_builtin): New function.
9402 (pass_waccess::check): Call it.
9403 * gimple-ssa-warn-access.h (warn_string_no_nul): Move here from
9405 (maybe_warn_for_bound): Same.
9406 (check_access): Same.
9407 (check_memop_access): Same.
9408 (check_read_access): Same.
9409 * pointer-query.h (struct access_data): Define a ctor overload.
9411 2021-08-06 Richard Biener <rguenther@suse.de>
9413 PR tree-optimization/101801
9414 * tree-vectorizer.h (vect_worthwhile_without_simd_p): Rename...
9415 (vect_can_vectorize_without_simd_p): ... to this.
9416 * tree-vect-loop.c (vect_worthwhile_without_simd_p): Rename...
9417 (vect_can_vectorize_without_simd_p): ... to this and fold
9418 in vect_min_worthwhile_factor.
9419 (vect_min_worthwhile_factor): Remove.
9420 (vectorizable_reduction): Adjust and remove the cost part.
9421 * tree-vect-stmts.c (vectorizable_shift): Likewise.
9422 (vectorizable_operation): Likewise.
9424 2021-08-06 Uroš Bizjak <ubizjak@gmail.com>
9427 * config/i386/i386.md (cmove reg-to-reg move elimination peephole2s):
9428 Add general_gr_operand predicate to operand 3.
9430 2021-08-06 Roger Sayle <roger@nextmovesoftware.com>
9432 * tree-ssa-phiopt.c (cond_removal_in_builtin_zero_pattern): Use
9433 CFN_BUILT_IN_CLRSB* instead of BUILT_IN_CLRSB* for consistency.
9435 2021-08-06 Tamar Christina <tamar.christina@arm.com>
9437 * config/aarch64/aarch64-sve-builtins.cc (register_svpattern,
9438 register_svprfop): Pass vec<> by pointer.
9439 * langhooks-def.h (lhd_simulate_enum_decl): Likewise.
9440 * langhooks.c (lhd_simulate_enum_decl): Likewise.
9441 * langhooks.h (struct lang_hooks_for_types): Likewise.
9443 2021-08-06 Jonathan Wright <jonathan.wright@arm.com>
9445 * config/aarch64/arm_neon.h (vst1_bf16_x2): Use
9446 __builtin_memcpy instead of constructing an additional
9447 __builtin_aarch64_simd_oi one vector at a time.
9448 (vst1q_bf16_x2): Likewise.
9449 (vst1_bf16_x3): Use __builtin_memcpy instead of constructing
9450 an additional __builtin_aarch64_simd_ci one vector at a time.
9451 (vst1q_bf16_x3): Likewise.
9452 (vst1_bf16_x4): Use __builtin_memcpy instead of a union.
9453 (vst1q_bf16_x4): Likewise.
9454 (vst2_bf16): Use __builtin_memcpy instead of constructing an
9455 additional __builtin_aarch64_simd_oi one vector at a time.
9456 (vst2q_bf16): Likewise.
9457 (vst3_bf16): Use __builtin_memcpy instead of constructing an
9458 additional __builtin_aarch64_simd_ci mode one vector at a
9460 (vst3q_bf16): Likewise.
9461 (vst4_bf16): Use __builtin_memcpy instead of constructing an
9462 additional __builtin_aarch64_simd_xi one vector at a time.
9463 (vst4q_bf16): Likewise.
9465 2021-08-06 Jonathan Wright <jonathan.wright@arm.com>
9467 * config/aarch64/arm_neon.h (__ST2_LANE_FUNC): Delete.
9468 (__ST2Q_LANE_FUNC): Delete.
9469 (vst2_lane_f16): Use __builtin_memcpy to copy vector
9470 structure instead of constructing __builtin_aarch64_simd_oi
9471 one vector at a time.
9472 (vst2_lane_f32): Likewise.
9473 (vst2_lane_f64): Likewise.
9474 (vst2_lane_p8): Likewise.
9475 (vst2_lane_p16): Likewise.
9476 (vst2_lane_p64): Likewise.
9477 (vst2_lane_s8): Likewise.
9478 (vst2_lane_s16): Likewise.
9479 (vst2_lane_s32): Likewise.
9480 (vst2_lane_s64): Likewise.
9481 (vst2_lane_u8): Likewise.
9482 (vst2_lane_u16): Likewise.
9483 (vst2_lane_u32): Likewise.
9484 (vst2_lane_u64): Likewise.
9485 (vst2_lane_bf16): Likewise.
9486 (vst2q_lane_f16): Use __builtin_memcpy to copy vector
9487 structure instead of using a union.
9488 (vst2q_lane_f32): Likewise.
9489 (vst2q_lane_f64): Likewise.
9490 (vst2q_lane_p8): Likewise.
9491 (vst2q_lane_p16): Likewise.
9492 (vst2q_lane_p64): Likewise.
9493 (vst2q_lane_s8): Likewise.
9494 (vst2q_lane_s16): Likewise.
9495 (vst2q_lane_s32): Likewise.
9496 (vst2q_lane_s64): Likewise.
9497 (vst2q_lane_u8): Likewise.
9498 (vst2q_lane_u16): Likewise.
9499 (vst2q_lane_u32): Likewise.
9500 (vst2q_lane_u64): Likewise.
9501 (vst2q_lane_bf16): Likewise.
9503 2021-08-06 Jonathan Wright <jonathan.wright@arm.com>
9505 * config/aarch64/arm_neon.h (__ST3_LANE_FUNC): Delete.
9506 (__ST3Q_LANE_FUNC): Delete.
9507 (vst3_lane_f16): Use __builtin_memcpy to copy vector
9508 structure instead of constructing __builtin_aarch64_simd_ci
9509 one vector at a time.
9510 (vst3_lane_f32): Likewise.
9511 (vst3_lane_f64): Likewise.
9512 (vst3_lane_p8): Likewise.
9513 (vst3_lane_p16): Likewise.
9514 (vst3_lane_p64): Likewise.
9515 (vst3_lane_s8): Likewise.
9516 (vst3_lane_s16): Likewise.
9517 (vst3_lane_s32): Likewise.
9518 (vst3_lane_s64): Likewise.
9519 (vst3_lane_u8): Likewise.
9520 (vst3_lane_u16): Likewise.
9521 (vst3_lane_u32): Likewise.
9522 (vst3_lane_u64): Likewise.
9523 (vst3_lane_bf16): Likewise.
9524 (vst3q_lane_f16): Use __builtin_memcpy to copy vector
9525 structure instead of using a union.
9526 (vst3q_lane_f32): Likewise.
9527 (vst3q_lane_f64): Likewise.
9528 (vst3q_lane_p8): Likewise.
9529 (vst3q_lane_p16): Likewise.
9530 (vst3q_lane_p64): Likewise.
9531 (vst3q_lane_s8): Likewise.
9532 (vst3q_lane_s16): Likewise.
9533 (vst3q_lane_s32): Likewise.
9534 (vst3q_lane_s64): Likewise.
9535 (vst3q_lane_u8): Likewise.
9536 (vst3q_lane_u16): Likewise.
9537 (vst3q_lane_u32): Likewise.
9538 (vst3q_lane_u64): Likewise.
9539 (vst3q_lane_bf16): Likewise.
9541 2021-08-06 Jonathan Wright <jonathan.wright@arm.com>
9543 * config/aarch64/arm_neon.h (__ST4_LANE_FUNC): Delete.
9544 (__ST4Q_LANE_FUNC): Delete.
9545 (vst4_lane_f16): Use __builtin_memcpy to copy vector
9546 structure instead of constructing __builtin_aarch64_simd_xi
9547 one vector at a time.
9548 (vst4_lane_f32): Likewise.
9549 (vst4_lane_f64): Likewise.
9550 (vst4_lane_p8): Likewise.
9551 (vst4_lane_p16): Likewise.
9552 (vst4_lane_p64): Likewise.
9553 (vst4_lane_s8): Likewise.
9554 (vst4_lane_s16): Likewise.
9555 (vst4_lane_s32): Likewise.
9556 (vst4_lane_s64): Likewise.
9557 (vst4_lane_u8): Likewise.
9558 (vst4_lane_u16): Likewise.
9559 (vst4_lane_u32): Likewise.
9560 (vst4_lane_u64): Likewise.
9561 (vst4_lane_bf16): Likewise.
9562 (vst4q_lane_f16): Use __builtin_memcpy to copy vector
9563 structure instead of using a union.
9564 (vst4q_lane_f32): Likewise.
9565 (vst4q_lane_f64): Likewise.
9566 (vst4q_lane_p8): Likewise.
9567 (vst4q_lane_p16): Likewise.
9568 (vst4q_lane_p64): Likewise.
9569 (vst4q_lane_s8): Likewise.
9570 (vst4q_lane_s16): Likewise.
9571 (vst4q_lane_s32): Likewise.
9572 (vst4q_lane_s64): Likewise.
9573 (vst4q_lane_u8): Likewise.
9574 (vst4q_lane_u16): Likewise.
9575 (vst4q_lane_u32): Likewise.
9576 (vst4q_lane_u64): Likewise.
9577 (vst4q_lane_bf16): Likewise.
9579 2021-08-06 Martin Liska <mliska@suse.cz>
9581 * config/rs6000/rs6000.c (rs6000_option_override_internal): When
9582 a target option is restored, it can have
9583 rs6000_long_double_type_size set to FLOAT_PRECISION_TFmode
9584 and error should not be emitted.
9586 2021-08-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
9588 * gcov-io.h (gcov_write): Declare.
9589 * gcov-io.c (gcov_write): New.
9590 (gcov_write_counter): Remove.
9591 (gcov_write_tag_length): Likewise.
9592 (gcov_write_summary): Replace gcov_write_tag_length() with calls to
9593 gcov_write_unsigned().
9594 * doc/invoke.texi (fprofile-info-section): Mention
9595 __gcov_info_to_gdca().
9597 2021-08-06 Martin Sebor <msebor@redhat.com>
9599 * dominance.c (prune_bbs_to_update_dominators): Adjust by-value vec
9600 arguments to by-reference.
9601 (iterate_fix_dominators): Same.
9602 * dominance.h (iterate_fix_dominators): Same.
9603 * ipa-prop.h: Call auto_vec::to_vec_legacy.
9604 * tree-data-ref.c (dump_data_dependence_relation): Adjust by-value vec
9605 arguments to by-reference.
9606 (debug_data_dependence_relation): Same.
9607 (dump_data_dependence_relations): Same.
9608 * tree-data-ref.h (debug_data_dependence_relation): Same.
9609 (dump_data_dependence_relations): Same.
9610 * tree-predcom.c (dump_chains): Same.
9611 (initialize_root_vars_lm): Same.
9612 (determine_unroll_factor): Same.
9613 (replace_phis_by_defined_names): Same.
9614 (insert_init_seqs): Same.
9615 (pcom_worker::tree_predictive_commoning_loop): Call
9616 auto_vec::to_vec_legacy.
9617 * tree-ssa-pre.c (insert_into_preds_of_block): Adjust by-value vec
9618 arguments to by-reference.
9619 * tree-ssa-threadbackward.c (populate_worklist): Same.
9620 (back_threader::resolve_def): Same.
9621 * tree-vect-data-refs.c (vect_check_nonzero_value): Same.
9622 (vect_enhance_data_refs_alignment): Same.
9623 (vect_check_lower_bound): Same.
9624 (vect_prune_runtime_alias_test_list): Same.
9625 (vect_permute_store_chain): Same.
9626 * tree-vect-slp-patterns.c (vect_normalize_conj_loc): Same.
9627 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Same.
9628 * tree-vectorizer.h (vect_permute_store_chain): Same.
9629 * vec.c (test_init): New function.
9630 (vec_c_tests): Call new function.
9631 * vec.h (vec): Declare ctors, dtor, and assignment.
9632 (auto_vec::vec_to_legacy): New function.
9633 (vec::copy): Adjust initialization.
9635 2021-08-05 H.J. Lu <hjl.tools@gmail.com>
9638 * config/i386/i386.c (ix86_can_inline_p): Ignore MASK_80387 if
9639 callee only uses GPRs.
9640 * config/i386/ia32intrin.h: Revert commit 5463cee2770.
9641 * config/i386/serializeintrin.h: Revert commit 71958f740f1.
9642 * config/i386/x86gprintrin.h: Add
9643 #pragma GCC target("general-regs-only") and #pragma GCC pop_options
9644 to disable non-GPR ISAs.
9646 2021-08-05 Richard Sandiford <richard.sandiford@arm.com>
9648 PR middle-end/101787
9649 * doc/md.texi (cond_ashl, cond_ashr, cond_lshr): Document.
9651 2021-08-05 Richard Sandiford <richard.sandiford@arm.com>
9653 * tree-vectorizer.h (vect_is_store_elt_extraction, vect_is_reduction)
9654 (vect_reduc_type, vect_embedded_comparison_type, vect_comparison_type)
9655 (vect_is_extending_load, vect_is_integer_truncation): New functions,
9656 moved from aarch64.c but given different names.
9657 * config/aarch64/aarch64.c (aarch64_is_store_elt_extraction)
9658 (aarch64_is_reduction, aarch64_reduc_type)
9659 (aarch64_embedded_comparison_type, aarch64_comparison_type)
9660 (aarch64_extending_load_p, aarch64_integer_truncation_p): Delete
9661 in favor of the above. Update callers accordingly.
9663 2021-08-05 Richard Earnshaw <rearnsha@arm.com>
9666 * config/arm/arm-cpus.in (generic-armv7-a): Add quirk to suppress
9667 writing .cpu directive in asm output.
9668 * config/arm/arm.c (arm_identify_fpu_from_isa): New variable.
9669 (arm_last_printed_arch_string): Delete.
9670 (arm_last-printed_fpu_string): Delete.
9671 (arm_configure_build_target): If use of floating-point/SIMD is
9672 disabled, remove all fp/simd related features from the target ISA.
9673 (last_arm_targ_options): New variable.
9674 (arm_print_asm_arch_directives): Add new parameters. Change order
9675 of emitted directives and handle all cases here.
9676 (arm_file_start): Always call arm_print_asm_arch_directives, move
9677 all generation of .arch/.arch_extension here.
9678 (arm_file_end): Call arm_print_asm_arch.
9679 (arm_declare_function_name): Call arm_print_asm_arch_directives
9680 instead of printing .arch/.fpu directives directly.
9682 2021-08-05 Richard Earnshaw <rearnsha@arm.com>
9684 * config/arm/arm.c (arm_configure_build_target): Don't call
9685 arm_option_reconfigure_globals.
9686 (arm_option_restore): Call arm_option_reconfigure_globals after
9687 reconfiguring the target.
9688 * config/arm/arm-c.c (arm_pragma_target_parse): Likewise.
9690 2021-08-05 Richard Earnshaw <rearnsha@arm.com>
9692 * config/arm/arm.c (arm_configure_build_target): Ensure the target's
9693 arch_name is always set.
9695 2021-08-05 Jonathan Wright <jonathan.wright@arm.com>
9697 * config/aarch64/aarch64.c: Traverse RTL tree to prevent cost
9698 of vec_select high-half from being added into Neon subtract
9701 2021-08-05 Jonathan Wright <jonathan.wright@arm.com>
9703 * config/aarch64/aarch64.c: Traverse RTL tree to prevent cost
9704 of vec_select high-half from being added into Neon add cost.
9706 2021-08-05 Kewen Lin <linkw@linux.ibm.com>
9708 * cfgloop.h (loops_list::loops_list): Add one optional argument
9709 root and adjust accordingly, update loop tree walking and factor
9711 * cfgloop.c (loops_list::walk_loop_tree): ... this. New function.
9713 2021-08-05 Eric Botcazou <ebotcazou@gcc.gnu.org>
9715 PR tree-optimization/101626
9716 * tree-sra.c (propagate_subaccesses_from_rhs): Do not set the
9717 reverse scalar storage order on a pointer or vector component.
9719 2021-08-05 liuhongt <hongtao.liu@intel.com>
9721 * config/i386/sse.md (cond_<code><mode>): New expander.
9723 2021-08-05 liuhongt <hongtao.liu@intel.com>
9725 * config/i386/sse.md (cond_<code><mode>): New expander.
9727 2021-08-05 liuhongt <hongtao.liu@intel.com>
9729 * config/i386/sse.md (cond_<code><mode>): New expander.
9731 2021-08-04 David Malcolm <dmalcolm@redhat.com>
9734 * Makefile.in (ANALYZER_OBJS): Add analyzer/region-model-asm.o.
9736 2021-08-04 H.J. Lu <hjl.tools@gmail.com>
9739 * config/i386/i386.h (STORE_MAX_PIECES): Allow 16/32/64 bytes
9740 only if TARGET_INTER_UNIT_MOVES_TO_VEC is true.
9742 2021-08-04 H.J. Lu <hjl.tools@gmail.com>
9745 * config/i386/i386-expand.c (ix86_expand_vector_move): Call
9746 ix86_gen_scratch_sse_rtx to get a scratch SSE register to copy
9747 data with SSE register from one memory location to another.
9749 2021-08-04 Andreas Krebbel <krebbel@linux.ibm.com>
9751 * config/s390/s390.c (expand_perm_with_vpdi): New function.
9752 (vectorize_vec_perm_const_1): Call expand_perm_with_vpdi.
9753 * config/s390/vector.md (*vpdi1<mode>, @vpdi1<mode>): Enable a
9754 parameterized expander.
9755 (*vpdi4<mode>, @vpdi4<mode>): Likewise.
9757 2021-08-04 Andreas Krebbel <krebbel@linux.ibm.com>
9759 * config/s390/s390.c (MAX_VECT_LEN): Define macro.
9760 (struct expand_vec_perm_d): Define struct.
9761 (expand_perm_with_merge): New function.
9762 (vectorize_vec_perm_const_1): New function.
9763 (s390_vectorize_vec_perm_const): New function.
9764 (TARGET_VECTORIZE_VEC_PERM_CONST): Define target macro.
9766 2021-08-04 Andreas Krebbel <krebbel@linux.ibm.com>
9768 * config/s390/vector.md (V_HW_64): Remove mode iterator.
9769 (*vec_load_pair<mode>): Use V_HW_2 instead of V_HW_64.
9770 * config/s390/vx-builtins.md
9771 (vec_scatter_element<V_HW_2:mode>_SI): Use V_HW_2 instead of
9774 2021-08-04 Andreas Krebbel <krebbel@linux.ibm.com>
9776 * config/s390/s390.md (UNSPEC_VEC_PERMI): Remove constant
9778 * config/s390/vector.md (*vpdi1<mode>, *vpdi4<mode>): New pattern
9780 * config/s390/vx-builtins.md (*vec_permi<mode>): Emit generic rtx
9781 instead of an unspec.
9783 2021-08-04 Andreas Krebbel <krebbel@linux.ibm.com>
9785 * config/s390/s390-modes.def: Add more vector modes to support
9786 concatenation of two vectors.
9787 * config/s390/s390-protos.h (s390_expand_merge_perm_const): Add
9789 (s390_expand_merge): Likewise.
9790 * config/s390/s390.c (s390_expand_merge_perm_const): New function.
9791 (s390_expand_merge): New function.
9792 * config/s390/s390.md (UNSPEC_VEC_MERGEH, UNSPEC_VEC_MERGEL):
9793 Remove constant definitions.
9794 * config/s390/vector.md (V_HW_2): Add mode iterators.
9795 (VI_HW_4, V_HW_4): Rename VI_HW_4 to V_HW_4.
9796 (vec_2x_nelts, vec_2x_wide): New mode attributes.
9797 (*vmrhb, *vmrlb, *vmrhh, *vmrlh, *vmrhf, *vmrlf, *vmrhg, *vmrlg):
9798 New pattern definitions.
9799 (vec_widen_umult_lo_<mode>, vec_widen_umult_hi_<mode>)
9800 (vec_widen_smult_lo_<mode>, vec_widen_smult_hi_<mode>)
9801 (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf, vec_unpacks_lo_v2df)
9802 (vec_unpacks_hi_v2df): Adjust expanders to emit non-unspec RTX for
9804 * config/s390/vx-builtins.md (V_HW_4): Remove mode iterator. Now
9806 (vec_mergeh<mode>, vec_mergel<mode>): Use s390_expand_merge to
9807 emit vec merge pattern.
9809 2021-08-04 Jonathan Wright <jonathan.wright@arm.com>
9811 * config/aarch64/aarch64.c (aarch64_strip_extend_vec_half):
9813 (aarch64_rtx_mult_cost): Traverse RTL tree to prevent cost of
9814 vec_select high-half from being added into Neon multiply
9816 * rtlanal.c (vec_series_highpart_p): Define.
9817 * rtlanal.h (vec_series_highpart_p): Declare.
9819 2021-08-04 Jonathan Wright <jonathan.wright@arm.com>
9821 * config/aarch64/aarch64.c (aarch64_strip_duplicate_vec_elt):
9823 (aarch64_rtx_mult_cost): Traverse RTL tree to prevent
9824 vec_select cost from being added into Neon multiply cost.
9826 2021-08-04 Richard Sandiford <richard.sandiford@arm.com>
9828 * tree-vect-loop.c (vect_better_loop_vinfo_p): Detect cases in
9829 which old_loop_vinfo is an epilogue loop that handles a constant
9830 number of iterations.
9832 2021-08-04 Richard Sandiford <richard.sandiford@arm.com>
9834 * tree-vect-loop.c (vect_analyze_loop): Print a dump message
9835 when a reanalyzed loop fails to be cheaper than the current
9838 2021-08-04 Richard Sandiford <richard.sandiford@arm.com>
9840 * config/aarch64/aarch64.c: Fix a typo.
9842 2021-08-04 Vincent Lefèvre <vincent-gcc@vinc17.net>
9844 PR gcov-profile/101773
9845 * gcov-io.c (gcov_close): Check return code of a fclose.
9847 2021-08-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
9850 * dwarf2out.c (dwarf2out_assembly_start): Emit a dummy
9851 .file statement when needed.
9853 2021-08-04 Richard Biener <rguenther@suse.de>
9855 * tree-vect-data-refs.c (vect_check_gather_scatter):
9856 Include widening conversions only when the result is
9857 still handed by native gather or the current offset
9858 size not already matches the data size.
9859 Also succeed analysis in case there's no native support,
9860 noted by a IFN_LAST ifn and a NULL decl.
9861 (vect_analyze_data_refs): Always consider gathers.
9862 * tree-vect-patterns.c (vect_recog_gather_scatter_pattern):
9863 Test for no IFN gather rather than decl gather.
9864 * tree-vect-stmts.c (vect_model_load_cost): Pass in the
9865 gather-scatter info and cost emulated gathers accordingly.
9866 (vect_truncate_gather_scatter_offset): Properly test for
9868 (vect_use_strided_gather_scatters_p): Likewise.
9869 (get_load_store_type): Handle emulated gathers and its
9871 (vectorizable_load): Likewise. Emulate them by extracting
9872 scalar offsets, doing scalar loads and a vector construct.
9874 2021-08-04 H.J. Lu <hjl.tools@gmail.com>
9877 * expr.c (op_by_pieces_d::op_by_pieces_d): Add a max_pieces
9878 argument to set m_max_size.
9879 (move_by_pieces_d): Pass MOVE_MAX_PIECES to op_by_pieces_d.
9880 (store_by_pieces_d): Pass STORE_MAX_PIECES to op_by_pieces_d.
9881 (compare_by_pieces_d): Pass COMPARE_MAX_PIECES to op_by_pieces_d.
9883 2021-08-04 Roger Sayle <roger@nextmovesoftware.com>
9884 Marc Glisse <marc.glisse@inria.fr>
9886 * match.pd (bit_ior, bit_xor): Canonicalize (X*C1)|(X*C2) and
9887 (X*C1)^(X*C2) as X*(C1+C2), and related variants, using
9888 tree_nonzero_bits to ensure that operands are bit-wise disjoint.
9890 2021-08-04 Richard Biener <rguenther@suse.de>
9892 * tree-ssa-forwprop.c (pass_forwprop::execute): Split
9893 out code to decompose vector loads ...
9894 (optimize_vector_load): ... here. Generalize it to
9895 handle intermediate widening and TARGET_MEM_REF loads
9896 and apply it to loads with a supported vector mode as well.
9898 2021-08-04 Richard Biener <rguenther@suse.de>
9900 PR tree-optimization/101756
9901 * tree-vect-slp.c (vectorizable_bb_reduc_epilogue): Make sure
9902 the result of the reduction epilogue is compatible to the original
9905 2021-08-04 liuhongt <hongtao.liu@intel.com>
9908 * config/i386/i386.md (peephole2): Refine predicate from
9909 register_operand to general_reg_operand.
9911 2021-08-04 Aldy Hernandez <aldyh@redhat.com>
9913 * gimple-range-path.h (path_range_query::dump): Mark override.
9915 2021-08-04 Richard Biener <rguenther@suse.de>
9917 PR tree-optimization/101769
9918 * tree-tailcall.c (eliminate_tail_call): Add the created loop
9919 for the first recursion and return it via the new output parameter.
9920 (optimize_tail_call): Pass through new output param.
9921 (tree_optimize_tail_calls_1): After creating all latches,
9922 add the created loop to the loop tree. Do not mark loops for fixup.
9924 2021-08-04 Martin Liska <mliska@suse.cz>
9926 * doc/invoke.texi: Document threader-mode param.
9928 2021-08-04 liuhongt <hongtao.liu@intel.com>
9930 * config/i386/sse.md (cond_fma<mode>): New expander.
9931 (cond_fms<mode>): Ditto.
9932 (cond_fnma<mode>): Ditto.
9933 (cond_fnms<mode>): Ditto.
9935 2021-08-03 Segher Boessenkool <segher@kernel.crashing.org>
9937 * config/rs6000/vsx.md (*vsx_le_perm_store_<mode>): Use && instead of &.
9939 2021-08-03 Segher Boessenkool <segher@kernel.crashing.org>
9941 * config/rs6000/constraints.md: Remove "e" from the list of available
9942 constraint characters.
9944 2021-08-03 Eugene Rozenfeld <erozen@microsoft.com>
9946 PR gcov-profile/71672
9947 * auto-profile.c (afdo_indirect_call): Fix setup of the historgram value for indirect calls.
9949 2021-08-03 Paul A. Clarke <pc@us.ibm.com>
9951 * config/rs6000/smmintrin.h (_mm_minpos_epu16): New.
9953 2021-08-03 H.J. Lu <hjl.tools@gmail.com>
9955 * config/i386/i386.c (ix86_gen_scratch_sse_rtx): In 64-bit mode,
9956 try XMM31 to avoid vzeroupper.
9958 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
9960 * doc/invoke.texi: Document -mtune=neoverse-512tvb and
9961 -mcpu=neoverse-512tvb.
9962 * config/aarch64/aarch64-cores.def (neoverse-512tvb): New entry.
9963 * config/aarch64/aarch64-tune.md: Regenerate.
9964 * config/aarch64/aarch64.c (neoverse512tvb_sve_vector_cost)
9965 (neoverse512tvb_sve_issue_info, neoverse512tvb_vec_issue_info)
9966 (neoverse512tvb_vector_cost, neoverse512tvb_tunings): New structures.
9967 (aarch64_adjust_body_cost_sve): Handle -mtune=neoverse-512tvb.
9968 (aarch64_adjust_body_cost): Likewise.
9970 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
9972 * config/aarch64/aarch64.c (aarch64_add_stmt_cost): Only
9973 record issue information for operations that occur in the
9976 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
9978 * config/aarch64/aarch64.c (aarch64_multiply_add_p): Add a vec_flags
9979 parameter. Detect cases in which an Advanced SIMD MLA would almost
9980 certainly require a MOV.
9981 (aarch64_count_ops): Update accordingly.
9983 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
9985 * config/aarch64/aarch64.c (aarch64_is_store_elt_extraction): New
9986 function, split out from...
9987 (aarch64_detect_vector_stmt_subtype): ...here.
9988 (aarch64_add_stmt_cost): Treat extracting element 0 as free.
9990 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
9992 * config/aarch64/aarch64-protos.h (sve_vec_cost):
9993 Add gather_load_x32_cost and gather_load_x64_cost.
9994 * config/aarch64/aarch64.c (generic_sve_vector_cost)
9995 (a64fx_sve_vector_cost, neoversev1_sve_vector_cost): Update
9996 accordingly, using the values given by the scalar_load * number
9997 of elements calculation that we used previously.
9998 (aarch64_detect_vector_stmt_subtype): Use the new fields.
10000 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
10002 * config/aarch64/aarch64.c (aarch64_adjust_body_cost_sve): New
10003 function, split out from...
10004 (aarch64_adjust_body_cost): ...here.
10006 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
10008 * config/aarch64/fractional-cost.h: New file.
10009 * config/aarch64/aarch64.c: Include <algorithm> (indirectly)
10010 and cost_fraction.h.
10011 (vec_cost_fraction): New typedef.
10012 (aarch64_detect_scalar_stmt_subtype): Use it for statement costs.
10013 (aarch64_detect_vector_stmt_subtype): Likewise.
10014 (aarch64_sve_adjust_stmt_cost, aarch64_adjust_stmt_cost): Likewise.
10015 (aarch64_estimate_min_cycles_per_iter): Use vec_cost_fraction
10017 (aarch64_adjust_body_cost): Likewise.
10018 (aarch64_test_cost_fraction): New function.
10019 (aarch64_run_selftests): Call it.
10021 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
10023 * config/aarch64/aarch64-protos.h (tune_params::sve_width): Turn
10025 * config/aarch64/aarch64.c (aarch64_cmp_autovec_modes): Update
10027 (aarch64_estimated_poly_value): Likewise. Use the least significant
10028 set bit for the minimum and likely values. Use the most significant
10029 set bit for the maximum value.
10031 2021-08-03 liuhongt <hongtao.liu@intel.com>
10033 * config/i386/sse.md (cond_<insn><mode>): New expander.
10034 (cond_mul<mode>): Ditto.
10036 2021-08-03 Kewen Lin <linkw@linux.ibm.com>
10038 * tree-cfg.c (move_sese_region_to_fn): Fix typos on dloop.
10040 2021-08-03 liuhongt <hongtao.liu@intel.com>
10042 * config/i386/sse.md (cond_<insn><mode>):New expander.
10043 (cond_mul<mode>): Ditto.
10044 (cond_div<mode>): Ditto.
10046 2021-08-02 H.J. Lu <hjl.tools@gmail.com>
10048 * config/i386/i386.c (ix86_finalize_stack_frame_flags): Also
10049 check stack_realign_needed for stack realignment.
10050 (ix86_legitimate_constant_p): Always allow CONST_WIDE_INT smaller
10051 than the largest integer supported by vector register.
10052 * config/i386/i386.h (MAX_MOVE_MAX): New. Set to 64.
10053 (MOVE_MAX): Set to bytes of the largest integer supported by
10055 (STORE_MAX_PIECES): New.
10057 2021-08-02 H.J. Lu <hjl.tools@gmail.com>
10059 * config/i386/i386-expand.c (ix86_expand_vector_move): Call
10060 ix86_gen_scratch_sse_rtx to get a scratch SSE register to copy
10061 data from one memory location to another.
10063 2021-08-02 H.J. Lu <hjl.tools@gmail.com>
10065 PR middle-end/90773
10066 * config/i386/i386.c (TARGET_GEN_MEMSET_SCRATCH_RTX): New.
10068 2021-08-02 Aldy Hernandez <aldyh@redhat.com>
10070 PR tree-optimization/101724
10071 * params.opt: Remove --param=threader-iterative.
10072 * tree-ssa-threadbackward.c (pass_thread_jumps::execute): Remove
10075 2021-08-02 Tom de Vries <tdevries@suse.de>
10077 PR middle-end/101665
10078 * doc/extend.texi (nonnull attribute): Improve documentation.
10080 2021-08-02 Andrew Pinski <apinski@marvell.com>
10082 PR rtl-optimization/101683
10083 * rtlanal.c (may_trap_p_1): Handle UNSIGNED_FIX.
10085 2021-08-02 Roger Sayle <roger@nextmovesoftware.com>
10087 * tree-ssa-phiopt.c (cond_removal_in_builtin_zero_pattern):
10088 Renamed from cond_removal_in_popcount_clz_ctz_pattern.
10089 Add support for BSWAP, FFS, PARITY and CLRSB builtins.
10090 (tree_ssa_phiop_worker): Update call to function above.
10092 2021-08-01 H.J. Lu <hjl.tools@gmail.com>
10095 * config/i386/i386.md (bsr_rex64_1_zext): New.
10096 (combine splitter for constant - clzll): Replace gen_bsr_rex64_1
10097 with gen_bsr_rex64_1_zext.
10099 2021-07-31 Jakub Jelinek <jakub@redhat.com>
10102 * config/i386/i386.md (bsr_rex64_1, bsr_1, bsr_zext_1): New
10103 define_insn patterns.
10104 (*bsr_rex64_2, *bsr_2): New define_insn_and_split patterns.
10105 Add combine splitters for constant - clz.
10106 (clz<mode>2): Use a temporary pseudo for bsr result.
10108 2021-07-30 Paul A. Clarke <pc@us.ibm.com>
10110 * config/rs6000/smmintrin.h (_mm_floor_pd, _mm_floor_ps,
10111 _mm_floor_sd, _mm_floor_ss): New.
10113 2021-07-30 Paul A. Clarke <pc@us.ibm.com>
10115 * config/rs6000/smmintrin.h (_mm_ceil_pd, _mm_ceil_ps,
10116 _mm_ceil_sd, _mm_ceil_ss): New.
10118 2021-07-30 Paul A. Clarke <pc@us.ibm.com>
10120 * config/rs6000/smmintrin.h (_mm_blend_pd, _mm_blendv_pd,
10121 _mm_blend_ps, _mm_blendv_ps): New.
10123 2021-07-30 Roger Sayle <roger@nextmovesoftware.com>
10124 Uroš Bizjak <ubizjak@gmail.com>
10126 * config/i386/i386.md (*dec_cmov<mode>): New define_insn_and_split
10127 to generate a conditional move using the carry flag after sub $1.
10128 (peephole2): Eliminate a register-to-register move by inverting
10129 the condition of a conditional move.
10131 2021-07-30 Hans-Peter Nilsson <hp@bitrange.com>
10133 * config/mmix/mmix.md ("call", "call_value", "*call_real")
10134 ("*call_value_real"): Don't generate rtx mentioning the generic
10135 operands 1 and 2 to "call", and similarly for "call_value".
10136 * config/mmix/mmix.c (mmix_print_operand_punct_valid_p)
10137 (mmix_print_operand): Use '!' instead of 'p'.
10139 2021-07-30 Hans-Peter Nilsson <hp@bitrange.com>
10141 * doc/md.texi (call): Correct information about operand 2.
10142 * config/mmix/mmix.md ("call", "call_value"): Remove fixed FIXMEs.
10144 2021-07-30 Andrew MacLeod <amacleod@redhat.com>
10146 * range-op.cc (operator_trunc_mod::wi_fold): Fold constants.
10148 2021-07-30 Andrew MacLeod <amacleod@redhat.com>
10150 * range-op.cc (operator_div::wi_fold): Return UNDEFINED for [0, 0] divisor.
10152 2021-07-30 Andrew MacLeod <amacleod@redhat.com>
10154 * gimple-range-cache.cc (*::set_bb_range): Change const basic_block to
10155 const_basic_block..
10156 (*::get_bb_range): Ditto.
10157 (*::bb_range_p): Ditto.
10158 * gimple-range-cache.h: Change prototypes.
10160 2021-07-30 H.J. Lu <hjl.tools@gmail.com>
10162 PR middle-end/90773
10163 * builtins.c (builtin_memcpy_read_str): Change the mode argument
10164 from scalar_int_mode to fixed_size_mode.
10165 (builtin_strncpy_read_str): Likewise.
10166 (gen_memset_value_from_prev): New function.
10167 (builtin_memset_read_str): Change the mode argument from
10168 scalar_int_mode to fixed_size_mode. Use gen_memset_value_from_prev
10169 and support CONST_VECTOR.
10170 (builtin_memset_gen_str): Likewise.
10171 (try_store_by_multiple_pieces): Use by_pieces_constfn to declare
10173 * builtins.h (builtin_strncpy_read_str): Replace scalar_int_mode
10174 with fixed_size_mode.
10175 (builtin_memset_read_str): Likewise.
10176 * expr.c (widest_int_mode_for_size): Renamed to ...
10177 (widest_fixed_size_mode_for_size): Add a bool argument to
10178 indicate if QI vector mode can be used.
10179 (by_pieces_ninsns): Call widest_fixed_size_mode_for_size
10180 instead of widest_int_mode_for_size.
10181 (pieces_addr::adjust): Change the mode argument from
10182 scalar_int_mode to fixed_size_mode.
10183 (op_by_pieces_d): Make m_len read-only. Add a bool member,
10184 m_qi_vector_mode, to indicate that QI vector mode can be used.
10185 (op_by_pieces_d::op_by_pieces_d): Add a bool argument to
10186 initialize m_qi_vector_mode. Call widest_fixed_size_mode_for_size
10187 instead of widest_int_mode_for_size.
10188 (op_by_pieces_d::get_usable_mode): Change the mode argument from
10189 scalar_int_mode to fixed_size_mode. Call
10190 widest_fixed_size_mode_for_size instead of
10191 widest_int_mode_for_size.
10192 (op_by_pieces_d::smallest_fixed_size_mode_for_size): New member
10193 function to return the smallest integer or QI vector mode.
10194 (op_by_pieces_d::run): Call widest_fixed_size_mode_for_size
10195 instead of widest_int_mode_for_size. Call
10196 smallest_fixed_size_mode_for_size instead of
10197 smallest_int_mode_for_size.
10198 (store_by_pieces_d::store_by_pieces_d): Add a bool argument to
10199 indicate that QI vector mode can be used and pass it to
10200 op_by_pieces_d::op_by_pieces_d.
10201 (can_store_by_pieces): Call widest_fixed_size_mode_for_size
10202 instead of widest_int_mode_for_size. Pass memsetp to
10203 widest_fixed_size_mode_for_size to support QI vector mode.
10204 Allow all CONST_VECTORs for memset if vec_duplicate is supported.
10205 (store_by_pieces): Pass memsetp to
10206 store_by_pieces_d::store_by_pieces_d.
10207 (clear_by_pieces_1): Removed.
10208 (clear_by_pieces): Replace clear_by_pieces_1 with
10209 builtin_memset_read_str and pass true to store_by_pieces_d to
10210 support vector mode broadcast.
10211 (string_cst_read_str): Change the mode argument from
10212 scalar_int_mode to fixed_size_mode.
10213 * expr.h (by_pieces_constfn): Change scalar_int_mode to
10215 (by_pieces_prev): Likewise.
10216 * rtl.h (lowpart_subreg_regno): New.
10217 * rtlanal.c (lowpart_subreg_regno): New. A wrapper around
10218 simplify_subreg_regno.
10219 * target.def (gen_memset_scratch_rtx): New hook.
10220 * doc/tm.texi.in: Add TARGET_GEN_MEMSET_SCRATCH_RTX.
10221 * doc/tm.texi: Regenerated.
10223 2021-07-30 Xi Ruoyao <xry111@mengyan1223.wang>
10226 * config/mips/mips.c (mips_atomic_assign_expand_fenv): Use
10227 TARGET_EXPR instead of MODIFY_EXPR.
10229 2021-07-30 Xi Ruoyao <xry111@mengyan1223.wang>
10232 * config/mips/mips-protos.h (mips_expand_vec_cmp_expr): Declare.
10233 * config/mips/mips.c (mips_expand_vec_cmp_expr): New function.
10234 * config/mips/mips-msa.md (vec_cmp<MSA:mode><mode_i>): New
10236 (vec_cmpu<IMSA:mode><mode_i>): New expander.
10238 2021-07-30 H.J. Lu <hjl.tools@gmail.com>
10241 * config/i386/i386-options.c (ix86_option_override_internal):
10242 Don't enable LZCNT/POPCNT if they have been disabled explicitly.
10244 2021-07-30 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
10247 * config/arm/arm_neon.h (vld1_p64): Replace call to builtin by
10248 explicitly dereferencing __a.
10249 (vld1_s64): Likewise.
10250 (vld1_u64): Likewise.
10251 * config/arm/arm_neon_builtins.def (vld1): Remove entry for di
10252 and change to VAR13.
10254 2021-07-30 Aldy Hernandez <aldyh@redhat.com>
10256 * gimple-loop-versioning.cc (lv_dom_walker::lv_dom_walker): Remove
10257 use of m_range_analyzer.
10258 (loop_versioning::lv_dom_walker::before_dom_children): Same.
10259 (loop_versioning::lv_dom_walker::after_dom_children): Remove.
10260 (loop_versioning::prune_loop_conditions): Replace vr_values use
10261 with range_query interface.
10262 (pass_loop_versioning::execute): Use ranger.
10264 2021-07-30 Xi Ruoyao <xry111@mengyan1223.wang>
10267 * ipa-devirt.c (ipa_odr_read_section): Compare the precision of
10268 enum values, and emit a warning if they mismatch.
10270 2021-07-30 Kewen Lin <linkw@linux.ibm.com>
10272 * cfgloop.h (as_const): New function.
10273 (class loop_iterator): Rename to ...
10274 (class loops_list): ... this.
10275 (loop_iterator::next): Rename to ...
10276 (loops_list::Iter::fill_curr_loop): ... this and adjust.
10277 (loop_iterator::loop_iterator): Rename to ...
10278 (loops_list::loops_list): ... this and adjust.
10279 (loops_list::Iter): New class.
10280 (loops_list::iterator): New type.
10281 (loops_list::const_iterator): New type.
10282 (loops_list::begin): New function.
10283 (loops_list::end): Likewise.
10284 (loops_list::begin const): Likewise.
10285 (loops_list::end const): Likewise.
10286 (FOR_EACH_LOOP): Remove.
10287 (FOR_EACH_LOOP_FN): Remove.
10288 * cfgloop.c (flow_loops_dump): Adjust FOR_EACH_LOOP* with range-based
10289 for loop with loops_list instance.
10290 (sort_sibling_loops): Likewise.
10291 (disambiguate_loops_with_multiple_latches): Likewise.
10292 (verify_loop_structure): Likewise.
10293 * cfgloopmanip.c (create_preheaders): Likewise.
10294 (force_single_succ_latches): Likewise.
10295 * config/aarch64/falkor-tag-collision-avoidance.c
10296 (execute_tag_collision_avoidance): Likewise.
10297 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Likewise.
10298 * config/s390/s390.c (s390_adjust_loops): Likewise.
10299 * doc/loop.texi: Likewise.
10300 * gimple-loop-interchange.cc (pass_linterchange::execute): Likewise.
10301 * gimple-loop-jam.c (tree_loop_unroll_and_jam): Likewise.
10302 * gimple-loop-versioning.cc (loop_versioning::analyze_blocks): Likewise.
10303 (loop_versioning::make_versioning_decisions): Likewise.
10304 * gimple-ssa-split-paths.c (split_paths): Likewise.
10305 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl): Likewise.
10306 * graphite.c (canonicalize_loop_form): Likewise.
10307 (graphite_transform_loops): Likewise.
10308 * ipa-fnsummary.c (analyze_function_body): Likewise.
10309 * ipa-pure-const.c (analyze_function): Likewise.
10310 * loop-doloop.c (doloop_optimize_loops): Likewise.
10311 * loop-init.c (loop_optimizer_finalize): Likewise.
10312 (fix_loop_structure): Likewise.
10313 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
10314 (move_loop_invariants): Likewise.
10315 * loop-unroll.c (decide_unrolling): Likewise.
10316 (unroll_loops): Likewise.
10317 * modulo-sched.c (sms_schedule): Likewise.
10318 * predict.c (predict_loops): Likewise.
10319 (pass_profile::execute): Likewise.
10320 * profile.c (branch_prob): Likewise.
10321 * sel-sched-ir.c (sel_finish_pipelining): Likewise.
10322 (sel_find_rgns): Likewise.
10323 * tree-cfg.c (replace_loop_annotate): Likewise.
10324 (replace_uses_by): Likewise.
10325 (move_sese_region_to_fn): Likewise.
10326 * tree-if-conv.c (pass_if_conversion::execute): Likewise.
10327 * tree-loop-distribution.c (loop_distribution::execute): Likewise.
10328 * tree-parloops.c (parallelize_loops): Likewise.
10329 * tree-predcom.c (tree_predictive_commoning): Likewise.
10330 * tree-scalar-evolution.c (scev_initialize): Likewise.
10331 (scev_reset): Likewise.
10332 * tree-ssa-dce.c (find_obviously_necessary_stmts): Likewise.
10333 * tree-ssa-live.c (remove_unused_locals): Likewise.
10334 * tree-ssa-loop-ch.c (ch_base::copy_headers): Likewise.
10335 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
10336 (tree_ssa_lim_initialize): Likewise.
10337 * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Likewise.
10338 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize): Likewise.
10339 * tree-ssa-loop-manip.c (get_loops_exits): Likewise.
10340 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations): Likewise.
10341 (free_numbers_of_iterations_estimates): Likewise.
10342 * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
10343 * tree-ssa-loop-split.c (tree_ssa_split_loops): Likewise.
10344 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Likewise.
10345 * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
10346 (pass_scev_cprop::execute): Likewise.
10347 * tree-ssa-propagate.c (clean_up_loop_closed_phi): Likewise.
10348 * tree-ssa-sccvn.c (do_rpo_vn): Likewise.
10349 * tree-ssa-threadupdate.c
10350 (jump_thread_path_registry::thread_through_all_blocks): Likewise.
10351 * tree-vectorizer.c (vectorize_loops): Likewise.
10352 * tree-vrp.c (vrp_asserts::find_assert_locations): Likewise.
10354 2021-07-29 Hans-Peter Nilsson <hp@bitrange.com>
10356 * config/mmix/mmix.c (mmix_function_arg_1): Avoid
10357 generating a VOIDmode register for e.g the
10358 function_arg_info::end_marker.
10360 2021-07-29 Jeff Law <jeffreyalaw@gmail.com>
10362 * config/h8300/h8300-modes.def: Add CCZ, CCV and CCC, drop CCZNV.
10363 * config/h8300/h8300.md (H8cc mode iterator): Add CCZ.
10364 (cc mode_attr): Similarly.
10365 (ccz subst_attr): Similarly.
10366 * config/h8300/jumpcall.md: Add new patterns for branch-on-bit.
10367 * config/h8300/testcompare.md: Remove various cc0 based patterns
10368 that had been commented out. Add pattern to set CCZ from a bit
10371 2021-07-29 Thomas Schwinge <thomas@codesourcery.com>
10372 Julian Brown <julian@codesourcery.com>
10373 Kwok Cheung Yeung <kcy@codesourcery.com>
10375 * omp-offload.c (oacc_loop_xform_head_tail, oacc_loop_process):
10376 'update_stmt' after modification.
10377 (pass_oacc_loop_designation): New function, extracted out of...
10378 (pass_oacc_device_lower): ... this.
10379 (pass_data_oacc_loop_designation, pass_oacc_loop_designation)
10380 (make_pass_oacc_loop_designation): New
10381 * passes.def: Add it.
10382 * tree-parloops.c (create_parallel_loop): Adjust.
10383 * tree-pass.h (make_pass_oacc_loop_designation): New.
10385 2021-07-29 Aldy Hernandez <aldyh@redhat.com>
10387 * flag-types.h (enum threader_mode): New.
10388 * params.opt: Add entry for --param=threader-mode.
10389 * tree-ssa-threadbackward.c (THREADER_ITERATIVE_MODE): New.
10390 (class back_threader): New.
10391 (back_threader::back_threader): New.
10392 (back_threader::~back_threader): New.
10393 (back_threader::maybe_register_path): New.
10394 (back_threader::find_taken_edge): New.
10395 (back_threader::find_taken_edge_switch): New.
10396 (back_threader::find_taken_edge_cond): New.
10397 (back_threader::resolve_def): New.
10398 (back_threader::resolve_phi): New.
10399 (back_threader::find_paths_to_names): New.
10400 (back_threader::find_paths): New.
10403 (thread_jumps::find_jump_threads_backwards): Call ranger threader.
10404 (thread_jumps::find_jump_threads_backwards_with_ranger): New.
10405 (pass_thread_jumps::execute): Abstract out code...
10406 (try_thread_blocks): ...here.
10407 * tree-ssa-threadedge.c (jump_threader::thread_outgoing_edges):
10408 Abstract out threading candidate code to...
10409 (single_succ_to_potentially_threadable_block): ...here.
10410 * tree-ssa-threadedge.h (single_succ_to_potentially_threadable_block):
10412 * tree-ssa-threadupdate.c (register_jump_thread): Return boolean.
10413 * tree-ssa-threadupdate.h (class jump_thread_path_registry):
10414 Return bool from register_jump_thread.
10416 2021-07-29 Andreas Krebbel <krebbel@linux.ibm.com>
10418 * target.def: in0 and in1 do not need to be registers.
10419 * doc/tm.texi: Regenerate.
10421 2021-07-29 liuhongt <hongtao.liu@intel.com>
10424 * config/i386/i386.c (ix86_widen_mult_cost): New function.
10425 (ix86_add_stmt_cost): Use ix86_widen_mult_cost for
10428 2021-07-29 Jiufu Guo <guojiufu@linux.ibm.com>
10431 * config/rs6000/rs6000.c (TARGET_PREFERRED_DOLOOP_MODE): New hook.
10432 (rs6000_preferred_doloop_mode): New hook.
10433 * doc/tm.texi: Regenerate.
10434 * doc/tm.texi.in: Add hook preferred_doloop_mode.
10435 * target.def (preferred_doloop_mode): New hook.
10436 * targhooks.c (default_preferred_doloop_mode): New hook.
10437 * targhooks.h (default_preferred_doloop_mode): New hook.
10438 * tree-ssa-loop-ivopts.c (compute_doloop_base_on_mode): New function.
10439 (add_iv_candidate_for_doloop): Call targetm.preferred_doloop_mode
10440 and compute_doloop_base_on_mode.
10442 2021-07-28 Martin Sebor <msebor@redhat.com>
10444 PR middle-end/101494
10445 * tree-ssa-uninit.c (maybe_warn_operand): Correct object offset
10446 and size computation.
10448 2021-07-28 Martin Sebor <msebor@redhat.com>
10450 PR middle-end/101601
10451 * gimple-array-bounds.cc (array_bounds_checker::check_mem_ref): Remove
10453 Handle pointers to functions.
10455 2021-07-28 Martin Sebor <msebor@redhat.com>
10457 * Makefile.in (OBJS): Add gimple-ssa-warn-access.o and pointer-query.o.
10458 * attribs.h (fndecl_dealloc_argno): Move fndecl_dealloc_argno to tree.h.
10459 * builtins.c (compute_objsize_r): Move to pointer-query.cc.
10460 (access_ref::access_ref): Same.
10461 (access_ref::phi): Same.
10462 (access_ref::get_ref): Same.
10463 (access_ref::size_remaining): Same.
10464 (access_ref::offset_in_range): Same.
10465 (access_ref::add_offset): Same.
10466 (access_ref::inform_access): Same.
10467 (ssa_name_limit_t::visit_phi): Same.
10468 (ssa_name_limit_t::leave_phi): Same.
10469 (ssa_name_limit_t::next): Same.
10470 (ssa_name_limit_t::next_phi): Same.
10471 (ssa_name_limit_t::~ssa_name_limit_t): Same.
10472 (pointer_query::pointer_query): Same.
10473 (pointer_query::get_ref): Same.
10474 (pointer_query::put_ref): Same.
10475 (pointer_query::flush_cache): Same.
10476 (warn_string_no_nul): Move to gimple-ssa-warn-access.cc.
10477 (check_nul_terminated_array): Same.
10478 (unterminated_array): Same.
10479 (maybe_warn_for_bound): Same.
10480 (check_read_access): Same.
10481 (warn_for_access): Same.
10482 (get_size_range): Same.
10483 (check_access): Same.
10484 (gimple_call_alloc_size): Move to tree.c.
10485 (gimple_parm_array_size): Move to pointer-query.cc.
10486 (get_offset_range): Same.
10487 (gimple_call_return_array): Same.
10488 (handle_min_max_size): Same.
10489 (handle_array_ref): Same.
10490 (handle_mem_ref): Same.
10491 (compute_objsize): Same.
10492 (gimple_call_alloc_p): Move to gimple-ssa-warn-access.cc.
10493 (call_dealloc_argno): Same.
10494 (fndecl_dealloc_argno): Same.
10495 (new_delete_mismatch_p): Same.
10496 (matching_alloc_calls_p): Same.
10497 (warn_dealloc_offset): Same.
10498 (maybe_emit_free_warning): Same.
10499 * builtins.h (check_nul_terminated_array): Move to
10500 gimple-ssa-warn-access.h.
10501 (check_nul_terminated_array): Same.
10502 (warn_string_no_nul): Same.
10503 (unterminated_array): Same.
10504 (class ssa_name_limit_t): Same.
10505 (class pointer_query): Same.
10506 (struct access_ref): Same.
10507 (class range_query): Same.
10508 (struct access_data): Same.
10509 (gimple_call_alloc_size): Same.
10510 (gimple_parm_array_size): Same.
10511 (compute_objsize): Same.
10512 (class access_data): Same.
10513 (maybe_emit_free_warning): Same.
10514 * calls.c (initialize_argument_information): Remove call to
10515 maybe_emit_free_warning.
10516 * gimple-array-bounds.cc: Include new header..
10517 * gimple-fold.c: Same.
10518 * gimple-ssa-sprintf.c: Same.
10519 * gimple-ssa-warn-restrict.c: Same.
10520 * passes.def: Add pass_warn_access.
10521 * tree-pass.h (make_pass_warn_access): Declare.
10522 * tree-ssa-strlen.c: Include new headers.
10523 * tree.c (fndecl_dealloc_argno): Move here from builtins.c.
10524 * tree.h (fndecl_dealloc_argno): Move here from attribs.h.
10525 * gimple-ssa-warn-access.cc: New file.
10526 * gimple-ssa-warn-access.h: New file.
10527 * pointer-query.cc: New file.
10528 * pointer-query.h: New file.
10530 2021-07-28 Jakub Jelinek <jakub@redhat.com>
10532 PR middle-end/101624
10533 * ubsan.c (maybe_instrument_pointer_overflow,
10534 instrument_object_size): Only test DECL_REGISTER on VAR_DECLs,
10535 PARM_DECLs or RESULT_DECLs.
10536 * sanopt.c (maybe_optimize_ubsan_ptr_ifn): Likewise.
10538 2021-07-28 Jakub Jelinek <jakub@redhat.com>
10540 PR middle-end/101642
10541 * match.pd (bswap16 (x) == bswap16 (y)): Cast both operands
10542 to type of bswap16 for comparison.
10543 (bswap16 (x) == cst): Cast bswap16 operand to type of cst.
10545 2021-07-28 Richard Biener <rguenther@suse.de>
10547 PR tree-optimization/101615
10548 * tree-vect-slp.c (vect_optimize_slp): Materialize permutes
10549 at CTOR SLP graph entries.
10551 2021-07-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10553 * config/aarch64/aarch64.md (*extend<SHORT:mode><GPI:mode>2_aarch64):
10554 Add "r,w" alternative.
10556 2021-07-28 H.J. Lu <hjl.tools@gmail.com>
10559 * config/i386/i386.c (ix86_avx_u128_mode_needed): Don't set
10560 AVX_U128_DIRTY when all bits are zero.
10562 2021-07-28 Richard Biener <rguenther@suse.de>
10564 PR tree-optimization/101615
10565 * tree-vect-slp.c (vect_optimize_slp): Pre-existing vector
10566 external nodes cannot be permuted so make them perm_out 0.
10568 2021-07-28 Andrew Stubbs <ams@codesourcery.com>
10571 * config.in: Regenerate.
10572 * config/gcn/gcn-hsa.h (A_FIJI): New define.
10573 (A_900): New define.
10574 (A_906): New define.
10575 (A_908): New define.
10576 (ASM_SPEC): Use A_FIJI, A_900, A_906 and A_908.
10577 * config/gcn/gcn.c (output_file_start): Adjust attributes according
10578 to the assembler capabilities.
10579 * config/gcn/mkoffload.c (main): Likewise.
10580 * configure: Regenerate.
10581 * configure.ac: Add tests for LLVM assembler attribute features.
10583 2021-07-28 Andrew MacLeod <amacleod@redhat.com>
10585 * gimple-range-gori.cc (gori_compute::outgoing_edge_range_p): Check for
10586 cond_false and cond_true on branches.
10588 2021-07-28 Bin Cheng <bin.cheng@linux.alibaba.com>
10590 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): use
10593 2021-07-28 Bin Cheng <bin.cheng@linux.alibaba.com>
10595 * alias.c (init_alias_analysis): Don't skip prologue/epilogue.
10597 2021-07-28 Jakub Jelinek <jakub@redhat.com>
10600 * config/i386/sse.md (vashr<mode>3): Split into vashrv8di3 expander
10601 and vashrv4di3 expander, where the latter requires just TARGET_AVX2
10602 and has special !TARGET_AVX512VL expansion.
10603 (vashrv2di3<mask_name>): Rename to ...
10604 (vashrv2di3): ... this. Change condition to TARGET_XOP || TARGET_AVX2
10605 and add special !TARGET_XOP && !TARGET_AVX512VL expansion.
10607 2021-07-28 Martin Uecker <muecker@gwdg.de>
10609 * calls.c (maybe_warn_rdwr_sizes): Correct argument
10610 numbers in warning that were switched.
10612 2021-07-28 Kewen Lin <linkw@linux.ibm.com>
10614 PR tree-optimization/101596
10615 * tree-vect-patterns.c (vect_recog_mulhs_pattern): Fix wrong check
10616 by using new_type's precision instead.
10618 2021-07-28 liuhongt <hongtao.liu@intel.com>
10621 * config/i386/i386.h (processor_costs): Add new member
10623 * config/i386/x86-tune-costs.h (ix86_size_cost, i386_cost,
10624 i486_cost, pentium_cost, lakemont_cost, pentiumpro_cost,
10625 geode_cost, k6_cost, athlon_cost, k8_cost, amdfam10_cost,
10626 bdver_cost, znver1_cost, znver2_cost, znver3_cost,
10627 btver1_cost, btver2_cost, btver3_cost, pentium4_cost,
10628 nocona_cost, atom_cost, atom_cost, slm_cost, intel_cost,
10629 generic_cost, core_cost): Initialize integer_to_sse same value
10631 (skylake_cost): Initialize integer_to_sse twice as much as sse_op.
10632 * config/i386/i386.c (ix86_builtin_vectorization_cost):
10633 Use integer_to_sse instead of sse_op to calculate the cost of
10636 2021-07-27 Bill Schmidt <wschmidt@linux.ibm.com>
10638 * config/rs6000/rs6000-gen-builtins.c (write_ovld_static_init): New
10640 (write_init_file): Call write_ovld_static_init.
10642 2021-07-27 Bill Schmidt <wschmidt@linux.ibm.com>
10644 * config/rs6000/rs6000-gen-builtins.c (write_bif_static_init): New
10646 (write_init_file): Call write_bif_static_init.
10648 2021-07-27 Bill Schmidt <wschmidt@linux.ibm.com>
10650 * config/rs6000/rs6000-gen-builtins.c (typemap): New struct.
10651 (TYPE_MAP_SIZE): New macro.
10652 (type_map): New initialized variable.
10653 (typemap_cmp): New function.
10654 (write_type_node): Likewise.
10655 (write_fntype_init): Implement.
10657 2021-07-27 Martin Sebor <msebor@redhat.com>
10659 PR tree-optimization/101584
10660 * tree-ssa-uninit.c (builtin_call_nomodifying_p): New function.
10661 (check_defs): Call it.
10663 2021-07-27 Aldy Hernandez <aldyh@redhat.com>
10665 * tree-ssa-dom.c (dom_jump_threader_simplifier):
10666 Put avail_exprs_stack in the class, instead of passing it to
10667 jump_threader_simplifier.
10668 (dom_jump_threader_simplifier::simplify): Add state argument.
10669 (dom_opt_dom_walker): Add state.
10670 (pass_dominator::execute): Pass state to threader.
10671 (dom_opt_dom_walker::before_dom_children): Use state.
10672 * tree-ssa-threadedge.c (jump_threader::jump_threader): Replace
10673 arguments by state.
10674 (jump_threader::record_temporary_equivalences_from_phis):
10675 Register equivalences through the state variable.
10676 (jump_threader::record_temporary_equivalences_from_stmts_at_dest):
10677 Record ranges in a statement through the state variable.
10678 (jump_threader::simplify_control_stmt_condition): Pass state to
10680 (jump_threader::simplify_control_stmt_condition_1): Same.
10681 (jump_threader::thread_around_empty_blocks): Remove obsolete
10683 (jump_threader::thread_through_normal_block): Record equivalences
10684 on edge through the state variable.
10685 (jump_threader::thread_across_edge): Abstract state pushing.
10686 (jt_state::jt_state): New.
10687 (jt_state::push): New.
10688 (jt_state::pop): New.
10689 (jt_state::register_equiv): New.
10690 (jt_state::record_ranges_from_stmt): New.
10691 (jt_state::register_equivs_on_edge): New.
10692 (jump_threader_simplifier::jump_threader_simplifier): Move from
10694 (jump_threader_simplifier::simplify): Add state argument.
10695 * tree-ssa-threadedge.h (class jt_state): New.
10696 (class jump_threader): Add state to constructor.
10697 (class jump_threader_simplifier): Add state to simplify. Remove
10698 avail_exprs_stack from class.
10699 * tree-vrp.c (vrp_jump_threader_simplifier::simplify): Add state
10701 (vrp_jump_threader::vrp_jump_threader): Add state.
10702 (vrp_jump_threader::~vrp_jump_threader): Cleanup state.
10704 2021-07-27 Aldy Hernandez <aldyh@redhat.com>
10706 * Makefile.in (OBJS): Add gimple-range-path.o.
10707 * gimple-range-path.cc: New file.
10708 * gimple-range-path.h: New file.
10710 2021-07-27 Jonathan Wright <jonathan.wright@arm.com>
10712 * config/aarch64/aarch64-simd.md: Push sign/zero-extension
10713 inside vec_duplicate for all patterns.
10714 * simplify-rtx.c (simplify_context::simplify_unary_operation_1):
10715 Push sign/zero-extension inside vec_duplicate.
10717 2021-07-27 Richard Biener <rguenther@suse.de>
10719 PR tree-optimization/101573
10720 * tree-ssa-uninit.c (warn_uninit_phi_uses): New function
10721 looking at uninitialized PHI arg defs in some constrained cases.
10722 (warn_uninitialized_vars): Call it.
10723 (execute_early_warn_uninitialized): Calculate dominators.
10725 2021-07-27 Richard Biener <rguenther@suse.de>
10727 PR tree-optimization/39821
10728 * tree-vect-stmts.c (vect_model_promotion_demotion_cost): Use
10729 vector_stmt for widening arithmetic.
10730 (vectorizable_conversion): Adjust.
10732 2021-07-27 Martin Jambor <mjambor@suse.cz>
10734 * cgraph.h (ipa_replace_map): New field force_load_ref.
10735 * ipa-prop.h (ipa_param_descriptor): Reduce precision of move_cost,
10736 aded new flag load_dereferenced, adjusted comments.
10737 (ipa_get_param_dereferenced): New function.
10738 (ipa_set_param_dereferenced): Likewise.
10739 * cgraphclones.c (cgraph_node::create_virtual_clone): Follow it.
10740 * ipa-cp.c: Include gimple.h.
10741 (ipcp_discover_new_direct_edges): Take into account dereferenced flag.
10742 (get_replacement_map): New parameter force_load_ref, set the
10743 appropriate flag in ipa_replace_map if set.
10744 (struct symbol_and_index_together): New type.
10745 (adjust_refs_in_act_callers): New function.
10746 (adjust_references_in_caller): Likewise.
10747 (create_specialized_node): When appropriate, call
10748 adjust_references_in_caller and force only load references.
10749 * ipa-prop.c (load_from_dereferenced_name): New function.
10750 (ipa_analyze_controlled_uses): Also detect loads from a
10751 dereference, harden testing of call statements.
10752 (ipa_write_node_info): Stream the dereferenced flag.
10753 (ipa_read_node_info): Likewise.
10754 (ipa_set_jf_constant): Also create refdesc when jump function
10755 references a variable.
10756 (cgraph_node_for_jfunc): Rename to symtab_node_for_jfunc, work
10757 also on references of variables and return a symtab_node. Adjust
10759 (propagate_controlled_uses): Also remove references to VAR_DECLs.
10761 2021-07-27 Jakub Jelinek <jakub@redhat.com>
10763 PR middle-end/101586
10764 * gimple-fold.c (clear_padding_type): Ignore FIELD_DECLs with byte
10765 positions above or equal to sz except for diagnostics of flexible
10768 2021-07-26 Andrew MacLeod <amacleod@redhat.com>
10770 PR tree-optimization/78888
10771 * gimple-range-fold.cc (get_letter_range): New.
10772 (fold_using_range::range_of_builtin_call): Call get_letter_range.
10774 2021-07-26 Andrew MacLeod <amacleod@redhat.com>
10776 PR tree-optimization/78888
10777 * gimple-range-fold.cc (fold_using_range::range_of_builtin_call): Add cases
10778 for CFN_BUILT_IN_TOUPPER and CFN_BUILT_IN_TOLOWER.
10780 2021-07-26 Roger Sayle <roger@nextmovesoftware.com>
10781 Marc Glisse <marc.glisse@inria.fr>
10783 * match.pd (rotate): Simplify equality/inequality of rotations.
10784 (bswap): Simplify equality/inequality tests of byte swapping.
10786 2021-07-26 Aldy Hernandez <aldyh@redhat.com>
10788 * range-op.cc (operator_bitwise_xor::op1_op2_relation_effect):
10791 2021-07-26 Aldy Hernandez <aldyh@redhat.com>
10793 * range-op.cc (operator_lshift::fold_range): Pass rel to
10794 base class fold_range.
10795 (operator_rshift::fold_range): Same.
10797 2021-07-26 Ashimida <ashimida@linux.alibaba.com>
10800 * toplev.h (min_align_loops_log): Remove declaration.
10801 (min_align_jumps_log, min_align_labels_log): Likewise.
10802 (min_align_functions_log): Likewise.
10804 2021-07-26 Aldy Hernandez <aldyh@redhat.com>
10806 * tree-vrp.c (vrp_simplify_cond_using_ranges): Rename vr_values
10808 (execute_vrp): Abstract out simplification of conditionals...
10809 (simplify_casted_conds): ...here.
10811 2021-07-26 Aldy Hernandez <aldyh@redhat.com>
10813 * gimple-array-bounds.cc (array_bounds_checker::get_value_range):
10814 Add gimple argument.
10815 (array_bounds_checker::check_array_ref): Same.
10816 (array_bounds_checker::check_addr_expr): Same.
10817 (array_bounds_checker::check_array_bounds): Pass statement to
10818 check_array_bounds and check_addr_expr.
10819 * gimple-array-bounds.h (check_array_bounds): Add gimple argument.
10820 (check_addr_expr): Same.
10821 (get_value_range): Same.
10823 2021-07-26 Tamar Christina <tamar.christina@arm.com>
10825 * config/aarch64/aarch64-simd-builtins.def (sdot, udot): Rename to..
10826 (sdot_prod, udot_prod): ... This.
10827 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>): Merged
10829 (<sur>dot_prod<vsi2qi>): ... this.
10830 (aarch64_<sur>dot_lane<vsi2qi>, aarch64_<sur>dot_laneq<vsi2qi>):
10831 Change operands order.
10832 (<sur>sadv16qi): Use new operands order.
10833 * config/aarch64/arm_neon.h (vdot_u32, vdotq_u32, vdot_s32,
10834 vdotq_s32): Use new RTL ordering.
10836 2021-07-26 Tamar Christina <tamar.christina@arm.com>
10838 * config/aarch64/aarch64-builtins.c (TYPES_TERNOP_SUSS,
10839 aarch64_types_ternop_suss_qualifiers): New.
10840 * config/aarch64/aarch64-simd-builtins.def (usdot_prod): Use it.
10841 * config/aarch64/aarch64-simd.md (usdot_prod<vsi2qi>): Re-organize RTL.
10842 * config/aarch64/arm_neon.h (vusdot_s32, vusdotq_s32): Use it.
10844 2021-07-23 Jakub Jelinek <jakub@redhat.com>
10846 PR rtl-optimization/101562
10847 * expmed.c (store_integral_bit_field): Only use movstrict_optab
10848 if the operand isn't paradoxical.
10850 2021-07-23 Aldy Hernandez <aldyh@redhat.com>
10852 * gimple-array-bounds.h (class array_bounds_checker): Change
10853 ranges type to range_query.
10855 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
10857 * config/aarch64/arm_neon.h (vst1_s64_x2): Use
10858 __builtin_memcpy instead of constructing
10859 __builtin_aarch64_simd_oi one vector at a time.
10860 (vst1_u64_x2): Likewise.
10861 (vst1_f64_x2): Likewise.
10862 (vst1_s8_x2): Likewise.
10863 (vst1_p8_x2): Likewise.
10864 (vst1_s16_x2): Likewise.
10865 (vst1_p16_x2): Likewise.
10866 (vst1_s32_x2): Likewise.
10867 (vst1_u8_x2): Likewise.
10868 (vst1_u16_x2): Likewise.
10869 (vst1_u32_x2): Likewise.
10870 (vst1_f16_x2): Likewise.
10871 (vst1_f32_x2): Likewise.
10872 (vst1_p64_x2): Likewise.
10873 (vst1q_s8_x2): Likewise.
10874 (vst1q_p8_x2): Likewise.
10875 (vst1q_s16_x2): Likewise.
10876 (vst1q_p16_x2): Likewise.
10877 (vst1q_s32_x2): Likewise.
10878 (vst1q_s64_x2): Likewise.
10879 (vst1q_u8_x2): Likewise.
10880 (vst1q_u16_x2): Likewise.
10881 (vst1q_u32_x2): Likewise.
10882 (vst1q_u64_x2): Likewise.
10883 (vst1q_f16_x2): Likewise.
10884 (vst1q_f32_x2): Likewise.
10885 (vst1q_f64_x2): Likewise.
10886 (vst1q_p64_x2): Likewise.
10888 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
10890 * config/aarch64/arm_neon.h (vst1_s64_x3): Use
10891 __builtin_memcpy instead of constructing
10892 __builtin_aarch64_simd_ci one vector at a time.
10893 (vst1_u64_x3): Likewise.
10894 (vst1_f64_x3): Likewise.
10895 (vst1_s8_x3): Likewise.
10896 (vst1_p8_x3): Likewise.
10897 (vst1_s16_x3): Likewise.
10898 (vst1_p16_x3): Likewise.
10899 (vst1_s32_x3): Likewise.
10900 (vst1_u8_x3): Likewise.
10901 (vst1_u16_x3): Likewise.
10902 (vst1_u32_x3): Likewise.
10903 (vst1_f16_x3): Likewise.
10904 (vst1_f32_x3): Likewise.
10905 (vst1_p64_x3): Likewise.
10906 (vst1q_s8_x3): Likewise.
10907 (vst1q_p8_x3): Likewise.
10908 (vst1q_s16_x3): Likewise.
10909 (vst1q_p16_x3): Likewise.
10910 (vst1q_s32_x3): Likewise.
10911 (vst1q_s64_x3): Likewise.
10912 (vst1q_u8_x3): Likewise.
10913 (vst1q_u16_x3): Likewise.
10914 (vst1q_u32_x3): Likewise.
10915 (vst1q_u64_x3): Likewise.
10916 (vst1q_f16_x3): Likewise.
10917 (vst1q_f32_x3): Likewise.
10918 (vst1q_f64_x3): Likewise.
10919 (vst1q_p64_x3): Likewise.
10921 2021-07-23 H.J. Lu <hjl.tools@gmail.com>
10924 * config/i386/i386.c (ix86_gen_scratch_sse_rtx): Don't return
10925 hard register when LRA is in progress.
10927 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
10929 * config/aarch64/arm_neon.h (vst1_s8_x4): Use
10930 __builtin_memcpy instead of using a union.
10931 (vst1q_s8_x4): Likewise.
10932 (vst1_s16_x4): Likewise.
10933 (vst1q_s16_x4): Likewise.
10934 (vst1_s32_x4): Likewise.
10935 (vst1q_s32_x4): Likewise.
10936 (vst1_u8_x4): Likewise.
10937 (vst1q_u8_x4): Likewise.
10938 (vst1_u16_x4): Likewise.
10939 (vst1q_u16_x4): Likewise.
10940 (vst1_u32_x4): Likewise.
10941 (vst1q_u32_x4): Likewise.
10942 (vst1_f16_x4): Likewise.
10943 (vst1q_f16_x4): Likewise.
10944 (vst1_f32_x4): Likewise.
10945 (vst1q_f32_x4): Likewise.
10946 (vst1_p8_x4): Likewise.
10947 (vst1q_p8_x4): Likewise.
10948 (vst1_p16_x4): Likewise.
10949 (vst1q_p16_x4): Likewise.
10950 (vst1_s64_x4): Likewise.
10951 (vst1_u64_x4): Likewise.
10952 (vst1_p64_x4): Likewise.
10953 (vst1q_s64_x4): Likewise.
10954 (vst1q_u64_x4): Likewise.
10955 (vst1q_p64_x4): Likewise.
10956 (vst1_f64_x4): Likewise.
10957 (vst1q_f64_x4): Likewise.
10959 2021-07-23 Jonathan Wrightt <jonathan.wright@arm.com>
10961 * config/aarch64/arm_neon.h (vst2_s64): Use __builtin_memcpy
10962 instead of constructing __builtin_aarch64_simd_oi one vector
10964 (vst2_u64): Likewise.
10965 (vst2_f64): Likewise.
10966 (vst2_s8): Likewise.
10967 (vst2_p8): Likewise.
10968 (vst2_s16): Likewise.
10969 (vst2_p16): Likewise.
10970 (vst2_s32): Likewise.
10971 (vst2_u8): Likewise.
10972 (vst2_u16): Likewise.
10973 (vst2_u32): Likewise.
10974 (vst2_f16): Likewise.
10975 (vst2_f32): Likewise.
10976 (vst2_p64): Likewise.
10977 (vst2q_s8): Likewise.
10978 (vst2q_p8): Likewise.
10979 (vst2q_s16): Likewise.
10980 (vst2q_p16): Likewise.
10981 (vst2q_s32): Likewise.
10982 (vst2q_s64): Likewise.
10983 (vst2q_u8): Likewise.
10984 (vst2q_u16): Likewise.
10985 (vst2q_u32): Likewise.
10986 (vst2q_u64): Likewise.
10987 (vst2q_f16): Likewise.
10988 (vst2q_f32): Likewise.
10989 (vst2q_f64): Likewise.
10990 (vst2q_p64): Likewise.
10992 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
10994 * config/aarch64/arm_neon.h (vst3_s64): Use __builtin_memcpy
10995 instead of constructing __builtin_aarch64_simd_ci one vector
10997 (vst3_u64): Likewise.
10998 (vst3_f64): Likewise.
10999 (vst3_s8): Likewise.
11000 (vst3_p8): Likewise.
11001 (vst3_s16): Likewise.
11002 (vst3_p16): Likewise.
11003 (vst3_s32): Likewise.
11004 (vst3_u8): Likewise.
11005 (vst3_u16): Likewise.
11006 (vst3_u32): Likewise.
11007 (vst3_f16): Likewise.
11008 (vst3_f32): Likewise.
11009 (vst3_p64): Likewise.
11010 (vst3q_s8): Likewise.
11011 (vst3q_p8): Likewise.
11012 (vst3q_s16): Likewise.
11013 (vst3q_p16): Likewise.
11014 (vst3q_s32): Likewise.
11015 (vst3q_s64): Likewise.
11016 (vst3q_u8): Likewise.
11017 (vst3q_u16): Likewise.
11018 (vst3q_u32): Likewise.
11019 (vst3q_u64): Likewise.
11020 (vst3q_f16): Likewise.
11021 (vst3q_f32): Likewise.
11022 (vst3q_f64): Likewise.
11023 (vst3q_p64): Likewise.
11025 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
11027 * config/aarch64/arm_neon.h (vst4_s64): Use __builtin_memcpy
11028 instead of constructing __builtin_aarch64_simd_xi one vector
11030 (vst4_u64): Likewise.
11031 (vst4_f64): Likewise.
11032 (vst4_s8): Likewise.
11033 (vst4_p8): Likewise.
11034 (vst4_s16): Likewise.
11035 (vst4_p16): Likewise.
11036 (vst4_s32): Likewise.
11037 (vst4_u8): Likewise.
11038 (vst4_u16): Likewise.
11039 (vst4_u32): Likewise.
11040 (vst4_f16): Likewise.
11041 (vst4_f32): Likewise.
11042 (vst4_p64): Likewise.
11043 (vst4q_s8): Likewise.
11044 (vst4q_p8): Likewise.
11045 (vst4q_s16): Likewise.
11046 (vst4q_p16): Likewise.
11047 (vst4q_s32): Likewise.
11048 (vst4q_s64): Likewise.
11049 (vst4q_u8): Likewise.
11050 (vst4q_u16): Likewise.
11051 (vst4q_u32): Likewise.
11052 (vst4q_u64): Likewise.
11053 (vst4q_f16): Likewise.
11054 (vst4q_f32): Likewise.
11055 (vst4q_f64): Likewise.
11056 (vst4q_p64): Likewise.
11058 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
11060 * config/aarch64/arm_neon.h (vtbx4_s8): Use __builtin_memcpy
11061 instead of constructing __builtin_aarch64_simd_oi one vector
11063 (vtbx4_u8): Likewise.
11064 (vtbx4_p8): Likewise.
11066 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
11068 * config/aarch64/arm_neon.h (vtbl3_s8): Use __builtin_memcpy
11069 instead of constructing __builtin_aarch64_simd_oi one vector
11071 (vtbl3_u8): Likewise.
11072 (vtbl3_p8): Likewise.
11073 (vtbl4_s8): Likewise.
11074 (vtbl4_u8): Likewise.
11075 (vtbl4_p8): Likewise.
11077 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
11079 * config/aarch64/arm_neon.h (vqtbx2_s8): Use __builtin_memcpy
11080 instead of constructing __builtin_aarch64_simd_oi one vector
11082 (vqtbx2_u8): Likewise.
11083 (vqtbx2_p8): Likewise.
11084 (vqtbx2q_s8): Likewise.
11085 (vqtbx2q_u8): Likewise.
11086 (vqtbx2q_p8): Likewise.
11087 (vqtbx3_s8): Use __builtin_memcpy instead of constructing
11088 __builtin_aarch64_simd_ci one vector at a time.
11089 (vqtbx3_u8): Likewise.
11090 (vqtbx3_p8): Likewise.
11091 (vqtbx3q_s8): Likewise.
11092 (vqtbx3q_u8): Likewise.
11093 (vqtbx3q_p8): Likewise.
11094 (vqtbx4_s8): Use __builtin_memcpy instead of constructing
11095 __builtin_aarch64_simd_xi one vector at a time.
11096 (vqtbx4_u8): Likewise.
11097 (vqtbx4_p8): Likewise.
11098 (vqtbx4q_s8): Likewise.
11099 (vqtbx4q_u8): Likewise.
11100 (vqtbx4q_p8): Likewise.
11102 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
11104 * config/aarch64/arm_neon.h (vqtbl2_s8): Use __builtin_memcpy
11105 instead of constructing __builtin_aarch64_simd_oi one vector
11107 (vqtbl2_u8): Likewise.
11108 (vqtbl2_p8): Likewise.
11109 (vqtbl2q_s8): Likewise.
11110 (vqtbl2q_u8): Likewise.
11111 (vqtbl2q_p8): Likewise.
11112 (vqtbl3_s8): Use __builtin_memcpy instead of constructing
11113 __builtin_aarch64_simd_ci one vector at a time.
11114 (vqtbl3_u8): Likewise.
11115 (vqtbl3_p8): Likewise.
11116 (vqtbl3q_s8): Likewise.
11117 (vqtbl3q_u8): Likewise.
11118 (vqtbl3q_p8): Likewise.
11119 (vqtbl4_s8): Use __builtin_memcpy instead of constructing
11120 __builtin_aarch64_simd_xi one vector at a time.
11121 (vqtbl4_u8): Likewise.
11122 (vqtbl4_p8): Likewise.
11123 (vqtbl4q_s8): Likewise.
11124 (vqtbl4q_u8): Likewise.
11125 (vqtbl4q_p8): Likewise.
11127 2021-07-23 Haochen Gui <guihaoc@gcc.gnu.org>
11130 * config/rs6000/rs6000.md (cstore<mode>4): Fix wrong fall through.
11132 2021-07-22 Andrew Pinski <apinski@marvell.com>
11134 PR tree-optimization/10153
11135 * tree-tailcall.c (create_tailcall_accumulator):
11136 Don't call fold_convert as the type should be correct already.
11137 (tree_optimize_tail_calls_1): Use build_{one,zero}_cst instead
11138 of integer_{one,zero}_node for the call of create_tailcall_accumulator.
11140 2021-07-22 Aldy Hernandez <aldyh@redhat.com>
11142 * gimple-range-cache.cc (non_null_ref::adjust_range): Replace
11143 varying_p check for null/non-null check.
11145 2021-07-22 Andrew MacLeod <amacleod@redhat.com>
11147 PR tree-optimization/101511
11148 * value-relation.cc (relation_oracle::query_relation): Check if ssa1
11149 is in ssa2's equiv set, and don't trap if so.
11151 2021-07-22 Andrew MacLeod <amacleod@redhat.com>
11153 PR tree-optimization/101497
11154 * gimple-range-fold.cc (fold_using_range::range_of_cond_expr): Check
11157 2021-07-22 Andrew MacLeod <amacleod@redhat.com>
11159 PR tree-optimization/101496
11160 * vr-values.c (simplify_using_ranges::fold_cond): Call range_of_stmt
11161 first, then vrp_visit_cond_Stmt.
11163 2021-07-22 liuhongt <hongtao.liu@intel.com>
11165 * config/i386/i386-expand.c
11166 (ix86_broadcast_from_integer_constant): Rename to ..
11167 (ix86_broadcast_from_constant): .. this, and extend it to
11169 (ix86_expand_vector_move): Extend to float mode.
11170 * config/i386/i386-features.c
11171 (replace_constant_pool_with_broadcast): Remove.
11172 (remove_partial_avx_dependency_gate): Ditto.
11173 (constant_pool_broadcast): Ditto.
11174 (class pass_constant_pool_broadcast): Ditto.
11175 (make_pass_constant_pool_broadcast): Ditto.
11176 (remove_partial_avx_dependency): Adjust gate.
11177 * config/i386/i386-passes.def: Remove pass_constant_pool_broadcast.
11178 * config/i386/i386-protos.h
11179 (make_pass_constant_pool_broadcast): Remove.
11181 2021-07-22 liuhongt <hongtao.liu@intel.com>
11183 * config/i386/constraints.md (Wb): New constraint.
11185 * config/i386/i386.md (*ashlhi3_1): Extend to avx512 mask
11187 (*ashlqi3_1): Ditto.
11188 (*<insn><mode>3_1): Split to ..
11189 (*ashr<mode>3_1): this, ...
11190 (*lshr<mode>3_1): and this, also extend this pattern to avx512
11192 (*<insn><mode>3_1): Split to ..
11193 (*ashr<mode>3_1): this, ...
11194 (*lshrqi3_1): and this, also extend this pattern to avx512
11196 (*lshrhi3_1): And this, also extend this pattern to avx512
11198 * config/i386/sse.md (k<code><mode>): New define_split after
11199 it to convert generic shift pattern to mask shift ones.
11201 2021-07-21 Thomas Schwinge <thomas@codesourcery.com>
11202 Joseph Myers <joseph@codesourcery.com>
11203 Cesar Philippidis <cesar@codesourcery.com>
11205 * tree-core.h (omp_clause_code): Add 'OMP_CLAUSE_NOHOST'.
11206 * tree.c (omp_clause_num_ops, omp_clause_code_name, walk_tree_1):
11208 * tree-pretty-print.c (dump_omp_clause): Likewise.
11209 * omp-general.c (oacc_verify_routine_clauses): Likewise.
11210 * gimplify.c (gimplify_scan_omp_clauses)
11211 (gimplify_adjust_omp_clauses): Likewise.
11212 * tree-nested.c (convert_nonlocal_omp_clauses)
11213 (convert_local_omp_clauses): Likewise.
11214 * omp-low.c (scan_sharing_clauses): Likewise.
11215 * omp-offload.c (execute_oacc_device_lower): Update.
11217 2021-07-21 Martin Sebor <msebor@redhat.com>
11219 * tree-ssa-alias.c (walk_aliased_vdefs_1): Fix typos in a comment.
11221 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
11223 * config/rs6000/rs6000-gen-builtins.c (write_init_bif_table):
11226 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
11228 * config/rs6000/rs6000-gen-builtins.c (write_fntype): New
11230 (write_fntype_init): New stub function.
11231 (write_init_bif_table): Likewise.
11232 (write_init_ovld_table): New function.
11233 (write_init_file): Implement.
11235 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
11237 * config/rs6000/rs6000-gen-builtins.c
11238 (write_autogenerated_header): New function.
11239 (write_decls): Likewise.
11240 (write_extern_fntype): New callback function.
11241 (write_header_file): Implement.
11243 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
11245 * config/rs6000/rs6000-gen-builtins.c (write_defines_file):
11248 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
11250 * config/rs6000/rs6000-gen-builtins.c (complete_vector_type): New
11252 (complete_base_type): Likewise.
11253 (construct_fntype_id): Likewise.
11254 (parse_bif_entry): Call contruct_fntype_id.
11255 (parse_ovld_entry): Likewise.
11257 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
11259 * config/rs6000/rs6000-gen-builtins.c (ovld_stanza): New struct.
11260 (MAXOVLDSTANZAS): New macro.
11261 (ovld_stanzas): New variable.
11262 (curr_ovld_stanza): Likewise.
11263 (MAXOVLDS): New macro.
11264 (ovlddata): New struct.
11265 (ovlds): New variable.
11266 (curr_ovld): Likewise.
11267 (max_ovld_args): Likewise.
11268 (parse_ovld_entry): New function.
11269 (parse_ovld_stanza): Likewise.
11270 (parse_ovld): Implement.
11272 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
11274 * config/rs6000/rs6000-gen-builtins.c (parse_bif_attrs):
11277 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
11279 * config/rs6000/rs6000-gen-builtins.c (parse_args): New function.
11280 (parse_prototype): Implement.
11282 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
11284 * config/rs6000/rs6000-gen-builtins.c (bif_stanza): New enum.
11285 (curr_bif_stanza): New variable.
11286 (stanza_entry): New struct.
11287 (stanza_map): New initialized variable.
11288 (enable_string): Likewise.
11289 (fnkinds): New enum.
11290 (typelist): New struct.
11291 (attrinfo): Likewise.
11292 (MAXRESTROPNDS): New macro.
11293 (prototype): New struct.
11294 (MAXBIFS): New macro.
11295 (bifdata): New struct.
11296 (bifs): New variable.
11297 (curr_bif): Likewise.
11298 (bif_order): Likewise.
11299 (bif_index): Likewise.
11300 (fatal): New function.
11301 (stanza_name_to_stanza): Likewise.
11302 (parse_bif_attrs): New stub function.
11303 (parse_prototype): Likewise.
11304 (parse_bif_entry): New function.
11305 (parse_bif_stanza): Likewise.
11306 (parse_bif): Implement.
11307 (set_bif_order): New function.
11308 (create_bif_order): Implement.
11310 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
11312 * config/rs6000/rs6000-gen-builtins.c (rbtree.h): New #include.
11313 (num_bifs): New variable.
11314 (num_ovld_stanzas): Likewise.
11315 (num_ovlds): Likewise.
11316 (parse_codes): New enum.
11317 (bif_rbt): New variable.
11318 (ovld_rbt): Likewise.
11319 (fntype_rbt): Likewise.
11320 (bifo_rbt): Likewise.
11321 (parse_bif): New stub function.
11322 (create_bif_order): Likewise.
11323 (parse_ovld): Likewise.
11324 (write_header_file): Likewise.
11325 (write_init_file): Likewise.
11326 (write_defines_file): Likewise.
11327 (delete_output_files): New function.
11330 2021-07-21 H.J. Lu <hjl.tools@gmail.com>
11333 * config/i386/i386-builtin.def: Remove OPTION_MASK_ISA_SSE4_2
11334 from CRC32 _builtin functions.
11336 2021-07-21 Sebastian Huber <sebastian.huber@embedded-brains.de>
11338 * coverage.c (build_gcov_info_var_registration): Mark the object placed
11339 in the linker set as referenced so that it does not get optimized away.
11341 2021-07-21 Kito Cheng <kito.cheng@sifive.com>
11344 2021-07-20 Kito Cheng <kito.cheng@sifive.com>
11346 * config.gcc (riscv*-*-*): Detect which python is available.
11348 2021-07-21 Jakub Jelinek <jakub@redhat.com>
11350 PR middle-end/101535
11351 * gimplify.c (omp_check_private): Properly skip ORT_TARGET_DATA
11352 contexts in which decl isn't privatized and for ORT_TARGET return
11353 false if decl is mapped.
11355 2021-07-21 Richard Sandiford <richard.sandiford@arm.com>
11357 * gimple-loop-jam.c: Include tree-ssa-sccvn.h.
11358 (tree_loop_unroll_and_jam): Run value-numbering on a loop that
11359 has been successfully unrolled.
11361 2021-07-21 Richard Sandiford <richard.sandiford@arm.com>
11363 * tree-ssa-loop-manip.c (determine_exit_conditions): Return a null
11364 exit condition if no tail loop is needed, and if the original exit
11365 condition should therefore be kept as-is.
11366 (tree_transform_and_unroll_loop): Handle that case here too.
11368 2021-07-21 Kewen Lin <linkw@linux.ibm.com>
11370 * tree-data-ref.c (free_dependence_relations): Adjust to pass vec
11372 (free_data_refs): Likewise.
11373 * tree-data-ref.h (free_dependence_relations): Likewise.
11374 (free_data_refs): Likewise.
11375 * tree-predcom.c (struct chain): Use auto_vec instead of vec for
11377 (struct component): Likewise.
11378 (pcom_worker::pcom_worker): Adjust for auto_vec and renaming changes.
11379 (pcom_worker::~pcom_worker): Likewise.
11380 (pcom_worker::release_chain): Adjust as auto_vec changes.
11381 (pcom_worker::loop): Rename to ...
11382 (pcom_worker::m_loop): ... this.
11383 (pcom_worker::datarefs): Rename to ...
11384 (pcom_worker::m_datarefs): ... this. Use auto_vec instead of vec.
11385 (pcom_worker::dependences): Rename to ...
11386 (pcom_worker::m_dependences): ... this. Use auto_vec instead of vec.
11387 (pcom_worker::chains): Rename to ...
11388 (pcom_worker::m_chains): ... this. Use auto_vec instead of vec.
11389 (pcom_worker::looparound_phis): Rename to ...
11390 (pcom_worker::m_looparound_phis): ... this. Use auto_vec instead of
11392 (pcom_worker::cache): Rename to ...
11393 (pcom_worker::m_cache): ... this. Use auto_vec instead of vec.
11394 (pcom_worker::release_chain): Adjust for auto_vec changes.
11395 (pcom_worker::release_chains): Adjust for auto_vec and renaming
11397 (release_component): Remove.
11398 (release_components): Adjust for release_component removal.
11399 (component_of): Adjust to use vec.
11400 (merge_comps): Likewise.
11401 (pcom_worker::aff_combination_dr_offset): Adjust for renaming changes.
11402 (pcom_worker::determine_offset): Likewise.
11403 (class comp_ptrs): Remove.
11404 (pcom_worker::split_data_refs_to_components): Adjust for renaming
11405 changes, for comp_ptrs removal with auto_vec.
11406 (pcom_worker::suitable_component_p): Adjust for renaming changes.
11407 (pcom_worker::filter_suitable_components): Adjust for release_component
11409 (pcom_worker::valid_initializer_p): Adjust for renaming changes.
11410 (pcom_worker::find_looparound_phi): Likewise.
11411 (pcom_worker::add_looparound_copies): Likewise.
11412 (pcom_worker::determine_roots_comp): Likewise.
11413 (pcom_worker::single_nonlooparound_use): Likewise.
11414 (pcom_worker::execute_pred_commoning_chain): Likewise.
11415 (pcom_worker::execute_pred_commoning): Likewise.
11416 (pcom_worker::try_combine_chains): Likewise.
11417 (pcom_worker::prepare_initializers_chain): Likewise.
11418 (pcom_worker::prepare_initializers): Likewise.
11419 (pcom_worker::prepare_finalizers_chain): Likewise.
11420 (pcom_worker::prepare_finalizers): Likewise.
11421 (pcom_worker::tree_predictive_commoning_loop): Likewise.
11423 2021-07-20 Martin Sebor <msebor@redhat.com>
11425 PR middle-end/101397
11426 * builtins.c (gimple_call_return_array): Add argument. Correct
11427 offsets for memchr, mempcpy, stpcpy, and stpncpy.
11428 (compute_objsize_r): Adjust offset computation for argument returning
11431 2021-07-20 Martin Sebor <msebor@redhat.com>
11433 PR middle-end/101300
11434 * tree-ssa-uninit.c (check_defs): Handle UBSAN built-ins.
11436 2021-07-20 Jeff Law <jlaw@localhost.localdomain>
11438 * function.c (assign_parm_setup_block): Use adjust_address instead
11439 of change_address to preserve MEM_EXPR and friends.
11441 2021-07-20 Martin Sebor <msebor@redhat.com>
11443 * cfgloop.h (single_likely_exit): Adjust by-value argument to
11444 by-const-reference.
11445 * cfgloopanal.c (single_likely_exit): Same.
11446 * cgraph.h (struct cgraph_node): Same.
11447 * cgraphclones.c (cgraph_node::create_virtual_clone): Same.
11448 * genautomata.c (merge_states): Same.
11449 * genextract.c (VEC_char_to_string): Same.
11450 * genmatch.c (dt_node::gen_kids_1): Same.
11451 (walk_captures): Adjust by-value argument to by-reference.
11452 * gimple-ssa-store-merging.c (check_no_overlap): Adjust by-value argument
11453 to by-const-reference.
11454 * gimple.c (gimple_build_call_vec): Same.
11455 (gimple_build_call_internal_vec): Same.
11456 (gimple_build_switch): Same.
11457 (sort_case_labels): Same.
11458 (preprocess_case_label_vec_for_gimple): Adjust by-value argument to
11460 * gimple.h (gimple_build_call_vec): Adjust by-value argument to
11461 by-const-reference.
11462 (gimple_build_call_internal_vec): Same.
11463 (gimple_build_switch): Same.
11464 (sort_case_labels): Same.
11465 (preprocess_case_label_vec_for_gimple): Adjust by-value argument to
11467 * haifa-sched.c (calc_priorities): Adjust by-value argument to
11468 by-const-reference.
11469 (sched_init_luids): Same.
11470 (haifa_init_h_i_d): Same.
11471 * ipa-cp.c (ipa_get_indirect_edge_target_1): Same.
11472 (adjust_callers_for_value_intersection): Adjust by-value argument to
11474 (find_more_scalar_values_for_callers_subset): Adjust by-value argument to
11475 by-const-reference.
11476 (find_more_contexts_for_caller_subset): Same.
11477 (find_aggregate_values_for_callers_subset): Same.
11478 (copy_useful_known_contexts): Same.
11479 * ipa-fnsummary.c (remap_edge_summaries): Same.
11480 (remap_freqcounting_predicate): Same.
11481 * ipa-inline.c (add_new_edges_to_heap): Adjust by-value argument to
11483 * ipa-predicate.c (predicate::remap_after_inlining): Adjust by-value argument
11484 to by-const-reference.
11485 * ipa-predicate.h (predicate::remap_after_inlining): Same.
11486 * ipa-prop.c (ipa_find_agg_cst_for_param): Same.
11487 * ipa-prop.h (ipa_find_agg_cst_for_param): Same.
11488 * ira-build.c (ira_loop_tree_body_rev_postorder): Same.
11489 * read-rtl.c (add_overload_instance): Same.
11490 * rtl.h (native_decode_rtx): Same.
11491 (native_decode_vector_rtx): Same.
11492 * sched-int.h (sched_init_luids): Same.
11493 (haifa_init_h_i_d): Same.
11494 * simplify-rtx.c (native_decode_vector_rtx): Same.
11495 (native_decode_rtx): Same.
11496 * tree-call-cdce.c (gen_shrink_wrap_conditions): Same.
11497 (shrink_wrap_one_built_in_call_with_conds): Same.
11498 (shrink_wrap_conditional_dead_built_in_calls): Same.
11499 * tree-data-ref.c (create_runtime_alias_checks): Same.
11500 (compute_all_dependences): Same.
11501 * tree-data-ref.h (compute_all_dependences): Same.
11502 (create_runtime_alias_checks): Same.
11503 (index_in_loop_nest): Same.
11504 * tree-if-conv.c (mask_exists): Same.
11505 * tree-loop-distribution.c (class loop_distribution): Same.
11506 (loop_distribution::create_rdg_vertices): Same.
11507 (dump_rdg_partitions): Same.
11508 (debug_rdg_partitions): Same.
11509 (partition_contains_all_rw): Same.
11510 (loop_distribution::distribute_loop): Same.
11511 * tree-parloops.c (oacc_entry_exit_ok_1): Same.
11512 (oacc_entry_exit_single_gang): Same.
11513 * tree-ssa-loop-im.c (hoist_memory_references): Same.
11514 (loop_suitable_for_sm): Same.
11515 * tree-ssa-loop-niter.c (bound_index): Same.
11516 * tree-ssa-reassoc.c (update_ops): Same.
11517 (swap_ops_for_binary_stmt): Same.
11518 (rewrite_expr_tree): Same.
11519 (rewrite_expr_tree_parallel): Same.
11520 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Same.
11521 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Same.
11522 * tree-ssa-structalias.c (process_all_all_constraints): Same.
11523 (make_constraints_to): Same.
11524 (handle_lhs_call): Same.
11525 (find_func_aliases_for_builtin_call): Same.
11526 (sort_fieldstack): Same.
11527 (check_for_overlaps): Same.
11528 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks): Same.
11529 (vect_create_cond_for_unequal_addrs): Same.
11530 (vect_create_cond_for_lower_bounds): Same.
11531 (vect_create_cond_for_alias_checks): Same.
11532 * tree-vect-slp-patterns.c (vect_validate_multiplication): Same.
11533 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
11534 (vect_make_slp_decision): Same.
11535 (vect_slp_bbs): Same.
11536 (duplicate_and_interleave): Same.
11537 (vect_transform_slp_perm_load): Same.
11538 (vect_schedule_slp): Same.
11539 * tree-vectorizer.h (vect_transform_slp_perm_load): Same.
11540 (vect_schedule_slp): Same.
11541 (duplicate_and_interleave): Same.
11542 * tree.c (build_vector_from_ctor): Same.
11543 (build_vector): Same.
11544 (check_vector_cst): Same.
11545 (check_vector_cst_duplicate): Same.
11546 (check_vector_cst_fill): Same.
11547 (check_vector_cst_stepped): Same.
11548 * tree.h (build_vector_from_ctor): Same.
11550 2021-07-20 Jakub Jelinek <jakub@redhat.com>
11553 * config/rs6000/rs6000-protos.h (easy_altivec_constant): Change return
11554 type from bool to int.
11555 * config/rs6000/rs6000.c (vspltis_constant): Fix up handling the
11556 EASY_VECTOR_MSB case if either step or copies is not 1.
11557 (vspltis_shifted): Fix comment typo.
11558 (easy_altivec_constant): Change return type from bool to int, instead
11559 of returning true return byte size of the element mode that should be
11560 used to synthetize the constant.
11561 * config/rs6000/predicates.md (easy_vector_constant_msb): Require
11562 that vspltis_shifted is 0, handle the case where easy_altivec_constant
11563 assumes using different vector mode from CONST_VECTOR's mode.
11564 * config/rs6000/altivec.md (easy_vector_constant_msb splitter): Use
11565 easy_altivec_constant to determine mode in which -1 >> -1 should be
11566 performed, use rs6000_expand_vector_init instead of gen_vec_initv4sisi.
11568 2021-07-20 Richard Biener <rguenther@suse.de>
11571 * dwarf2out.h (dwarf_file_data): Add key member.
11572 * dwarf2out.c (dwarf_file_hasher::equal): Compare key.
11573 (dwarf_file_hasher::hash): Hash key.
11574 (lookup_filename): Remap the filename and store it in the
11575 filename member of dwarf_file_data when creating a new
11577 (file_name_acquire): Do not remap the filename again.
11578 (maybe_emit_file): Likewise.
11580 2021-07-20 Jonathan Wright <jonathan.wright@arm.com>
11582 * config/aarch64/aarch64-simd-builtins.def: Use two variant
11583 generators for all TBL/TBX intrinsics and rename to
11584 consistent forms: qtbl[1234] or qtbx[1234].
11585 * config/aarch64/aarch64-simd.md (aarch64_tbl1<mode>):
11587 (aarch64_qtbl1<mode>): This.
11588 (aarch64_tbx1<mode>): Rename to...
11589 (aarch64_qtbx1<mode>): This.
11590 (aarch64_tbl2v16qi): Delete.
11591 (aarch64_tbl3<mode>): Rename to...
11592 (aarch64_qtbl2<mode>): This.
11593 (aarch64_tbx4<mode>): Rename to...
11594 (aarch64_qtbx2<mode>): This.
11595 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Use
11596 renamed qtbl1 and qtbl2 RTL patterns.
11597 * config/aarch64/arm_neon.h (vqtbl1_p8): Use renamed qtbl1
11599 (vqtbl1_s8): Likewise.
11600 (vqtbl1_u8): Likewise.
11601 (vqtbl1q_p8): Likewise.
11602 (vqtbl1q_s8): Likewise.
11603 (vqtbl1q_u8): Likewise.
11604 (vqtbx1_s8): Use renamed qtbx1 RTL pattern.
11605 (vqtbx1_u8): Likewise.
11606 (vqtbx1_p8): Likewise.
11607 (vqtbx1q_s8): Likewise.
11608 (vqtbx1q_u8): Likewise.
11609 (vqtbx1q_p8): Likewise.
11610 (vtbl1_s8): Use renamed qtbl1 RTL pattern.
11611 (vtbl1_u8): Likewise.
11612 (vtbl1_p8): Likewise.
11613 (vtbl2_s8): Likewise
11614 (vtbl2_u8): Likewise.
11615 (vtbl2_p8): Likewise.
11616 (vtbl3_s8): Use renamed qtbl2 RTL pattern.
11617 (vtbl3_u8): Likewise.
11618 (vtbl3_p8): Likewise.
11619 (vtbl4_s8): Likewise.
11620 (vtbl4_u8): Likewise.
11621 (vtbl4_p8): Likewise.
11622 (vtbx2_s8): Use renamed qtbx2 RTL pattern.
11623 (vtbx2_u8): Likewise.
11624 (vtbx2_p8): Likewise.
11625 (vqtbl2_s8): Use renamed qtbl2 RTL pattern.
11626 (vqtbl2_u8): Likewise.
11627 (vqtbl2_p8): Likewise.
11628 (vqtbl2q_s8): Likewise.
11629 (vqtbl2q_u8): Likewise.
11630 (vqtbl2q_p8): Likewise.
11631 (vqtbx2_s8): Use renamed qtbx2 RTL pattern.
11632 (vqtbx2_u8): Likewise.
11633 (vqtbx2_p8): Likewise.
11634 (vqtbx2q_s8): Likewise.
11635 (vqtbx2q_u8): Likewise.
11636 (vqtbx2q_p8): Likewise.
11637 (vtbx4_s8): Likewise.
11638 (vtbx4_u8): Likewise.
11639 (vtbx4_p8): Likewise.
11641 2021-07-20 Uroš Bizjak <ubizjak@gmail.com>
11644 * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
11646 (define_peephole2 atomic_loaddi_fpu): Ditto.
11648 2021-07-20 Kito Cheng <kito.cheng@sifive.com>
11650 * config.gcc (riscv*-*-*): Detect which python is available.
11652 2021-07-20 Kewen Lin <linkw@linux.ibm.com>
11654 * config/rs6000/vsx.md (mulhs_<mode>): Rename to...
11655 (smul<mode>3_highpart): ... this.
11656 (mulhu_<mode>): Rename to...
11657 (umul<mode>3_highpart): ... this.
11658 * config/rs6000/rs6000-builtin.def (MULHS_V2DI, MULHS_V4SI,
11659 MULHU_V2DI, MULHU_V4SI): Adjust.
11661 2021-07-20 Kewen Lin <linkw@linux.ibm.com>
11663 PR tree-optimization/100696
11664 * internal-fn.c (first_commutative_argument): Add info for IFN_MULH.
11665 * internal-fn.def (IFN_MULH): New internal function.
11666 * tree-vect-patterns.c (vect_recog_mulhs_pattern): Add support to
11667 recog normal multiply highpart as IFN_MULH.
11668 * config/i386/i386.c (ix86_add_stmt_cost): Adjust for combined
11671 2021-07-19 Indu Bhagat <indu.bhagat@oracle.com>
11673 * config/elfos.h (CTF_DEBUGGING_INFO): New definition.
11674 (BTF_DEBUGGING_INFO): Likewise.
11675 * doc/tm.texi.in: Document the new macros.
11676 * doc/tm.texi: Regenerated.
11677 * toplev.c: Guard initialization of debug hooks.
11679 2021-07-19 Indu Bhagat <indu.bhagat@oracle.com>
11681 * flags.h (ctf_debuginfo_p): New function declaration.
11682 * opts.c (ctf_debuginfo_p): New function definition.
11684 2021-07-19 Andrew Stubbs <ams@codesourcery.com>
11687 * config/gcn/gcn-hsa.h (DRIVER_SELF_SPECS): New.
11688 (ASM_SPEC): Set -mattr for xnack and sram-ecc.
11689 * config/gcn/gcn-opts.h (enum sram_ecc_type): New.
11690 * config/gcn/gcn-valu.md: Add a warning comment.
11691 * config/gcn/gcn.c (gcn_option_override): Add "sorry" for -mxnack.
11692 (output_file_start): Add xnack and sram-ecc state to ".amdgcn_target".
11693 * config/gcn/gcn.md: Add a warning comment.
11694 * config/gcn/gcn.opt: Add -mxnack and -msram-ecc.
11695 * config/gcn/mkoffload.c (EF_AMDGPU_MACH_AMDGCN_GFX908): Remove
11697 (EF_AMDGPU_XNACK): New.
11698 (EF_AMDGPU_SRAM_ECC): New.
11700 (copy_early_debug_info): Use elf_flags.
11701 (main): Handle -mxnack and -msram-ecc options.
11702 * doc/invoke.texi: Document -mxnack and -msram-ecc.
11704 2021-07-19 Andrew Pinski <apinski@marvell.com>
11707 * config/aarch64/aarch64.md (csneg3_uxtw_insn): Rename to ...
11708 (*cs<neg_not_cs>3_uxtw_insn4): and extend to NEG_NOT.
11710 2021-07-19 Richard Biener <rguenther@suse.de>
11712 PR tree-optimization/101505
11713 * tree-vect-patterns.c (vect_determine_precisions): Walk
11714 PHIs also for loop vectorization.
11716 2021-07-19 Richard Biener <rguenther@suse.de>
11718 * gimple.h (gimple_expr_type): Remove.
11719 * doc/gimple.texi: Remove gimple_expr_type documentation.
11721 2021-07-19 Richard Biener <rguenther@suse.de>
11723 * tree-ssa-sccvn.c (vn_reference_eq): Handle NULL vr->type.
11724 (ao_ref_init_from_vn_reference): Likewise.
11725 (fully_constant_reference): Likewise.
11726 (vn_reference_lookup_call): Do not set vr->type to random
11728 * tree-ssa-pre.c (compute_avail): Do not try to PRE calls
11730 * tree-vect-generic.c (expand_vector_piecewise): Pass in
11731 whether we expanded parallel.
11732 (expand_vector_parallel): Adjust.
11733 (expand_vector_addition): Likewise.
11734 (expand_vector_comparison): Likewise.
11735 (expand_vector_operation): Likewise.
11736 (expand_vector_scalar_condition): Likewise.
11737 (expand_vector_conversion): Likewise.
11739 2021-07-19 Richard Biener <rguenther@suse.de>
11741 * tree-vrp.c (register_edge_assert_for_2): Use the
11743 (vrp_folder::fold_predicate_in): Likewise.
11744 * vr-values.c (gimple_assign_nonzero_p): Likewise.
11745 (vr_values::extract_range_from_comparison): Likewise.
11746 (vr_values::extract_range_from_ubsan_builtin): Use the
11747 type of the first operand.
11748 (vr_values::extract_range_basic): Push down type
11749 computation, use the appropriate LHS.
11750 (vr_values::extract_range_from_assignment): Use the
11753 2021-07-18 H.J. Lu <hjl.tools@gmail.com>
11756 * common/config/i386/i386-common.c (ix86_handle_option): For
11757 -mgeneral-regs-only, enable the GPR only instructions which are
11758 enabled implicitly by SSE ISAs unless they have been disabled
11761 2021-07-18 H.J. Lu <hjl.tools@gmail.com>
11764 * config/i386/i386.c (ix86_check_avx_upper_stores): Moved before
11765 ix86_avx_u128_mode_needed.
11766 (ix86_avx_u128_mode_needed): Return AVX_U128_DIRTY if callee
11767 returns AVX register.
11769 2021-07-17 Jan Hubicka <hubicka@ucw.cz>
11771 * tree-ssa-structalias.c (handle_rhs_call): Support EAF_NOT_RETURNED.
11772 (handle_const_call): Liekise
11773 (handle_pure_call): Liekise
11775 2021-07-17 Andrew MacLeod <amacleod@redhat.com>
11777 PR tree-optimization/96542
11778 * range-op.cc (range_operator::wi_fold_in_parts): New.
11779 (range_operator::fold_range): Call wi_fold_in_parts.
11780 (operator_lshift::wi_fold): Fix broken lshift by [0,0].
11781 * range-op.h (wi_fold_in_parts): Add prototype.
11783 2021-07-16 David Malcolm <dmalcolm@redhat.com>
11785 * doc/analyzer.texi: Add __analyzer_dump_state.
11787 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
11789 * config/rs6000/rbtree.c: New file.
11790 * config/rs6000/rbtree.h: New file.
11792 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
11794 * config/rs6000/rs6000-gen-builtins.c (restriction): New enum.
11795 (typeinfo): Add restr field.
11796 (match_bracketed_pair): New function.
11797 (match_const_restriction): Implement.
11799 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
11801 * config/rs6000/rs6000-gen-builtins.c (match_basetype): Implement.
11803 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
11805 * config/rs6000/rs6000-gen-builtins.c (void_status): New enum.
11806 (basetype): Likewise.
11807 (typeinfo): Likewise.
11808 (handle_pointer): New function.
11809 (match_basetype): New stub function.
11810 (match_const_restriction): Likewise.
11811 (match_type): New function.
11813 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
11815 * config/rs6000/rs6000-gen-builtins.c (consume_whitespace): New
11817 (advance_line): Likewise.
11818 (safe_inc_pos): Likewise.
11819 (match_identifier): Likewise.
11820 (match_integer): Likewise.
11821 (match_to_right_bracket): Likewise.
11823 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
11825 * config/rs6000/rs6000-gen-builtins.c (bif_file): New variable.
11826 (ovld_file): Likewise.
11827 (header_file): Likewise.
11828 (init_file): Likewise.
11829 (defines_file): Likewise.
11830 (pgm_path): Likewise.
11831 (bif_path): Likewise.
11832 (ovld_path): Likewise.
11833 (header_path): Likewise.
11834 (init_path): Likewise.
11835 (defines_path): Likewise.
11836 (LINELEN): New macro.
11837 (linebuf): New variable.
11841 (bif_diag): New function.
11842 (ovld_diag): Likewise.
11844 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
11846 * config/rs6000/rs6000-builtin-new.def: New.
11847 * config/rs6000/rs6000-overload.def: New.
11849 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
11851 * config/rs6000/rs6000-gen-builtins.c: New.
11853 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
11855 * Makefile.in (EXTRA_GTYPE_DEPS): New variable.
11856 (s-gtype): Depend on EXTRA_GTYPE_DEPS.
11857 * gengtype-state.c (state_writer::write_state_file_list): Add a
11858 parameter to the fileslist expression for the number of build
11860 (read_state_files_list): Detect build headers and strip the
11861 initial "./" or ".\" from their names.
11862 * gengtype.c (build_headers): New global variable.
11863 (num_build_headers): Likewise.
11864 (open_base_files): Emit #include for each build header.
11865 (main): Detect and count build headers.
11866 * gengtype.h (build_headers): New extern variable.
11867 (num_build_headers): Likewise.
11869 2021-07-16 Richard Biener <rguenther@suse.de>
11871 * gimple-ssa-store-merging.c (verify_symbolic_number_p): Use
11872 the type of the LHS.
11873 (find_bswap_or_nop_1): Likewise.
11874 (find_bswap_or_nop): Likewise.
11875 * tree-vectorizer.h (vect_get_smallest_scalar_type): Adjust
11877 * tree-vect-data-refs.c (vect_get_smallest_scalar_type):
11878 Remove unused parameters, pass in the scalar type. Fix
11879 internal store function handling.
11880 * tree-vect-stmts.c (vect_analyze_stmt): Remove assert.
11881 (vect_get_vector_types_for_stmt): Move down check for
11882 existing vector stmt after we've determined a scalar type.
11883 Pass down the used scalar type to vect_get_smallest_scalar_type.
11884 * tree-vect-generic.c (expand_vector_condition): Use
11885 the type of the LHS.
11886 (expand_vector_scalar_condition): Likewise.
11887 (expand_vector_operations_1): Likewise.
11888 * tree-vect-patterns.c (vect_widened_op_tree): Likewise.
11889 (vect_recog_dot_prod_pattern): Likewise.
11890 (vect_recog_sad_pattern): Likewise.
11891 (vect_recog_widen_op_pattern): Likewise.
11892 (vect_recog_widen_sum_pattern): Likewise.
11893 (vect_recog_mixed_size_cond_pattern): Likewise.
11895 2021-07-16 Jan Hubicka <hubicka@ucw.cz>
11897 * ipa-modref.c (struct escape_entry): Use eaf_fleags_t.
11898 (dump_eaf_flags): Dump EAF_NOT_RETURNED
11899 (eaf_flags_useful_p): Use eaf_fleags_t; handle const functions
11900 and EAF_NOT_RETURNED.
11901 (modref_summary::useful_p): Likewise.
11902 (modref_summary_lto::useful_p): Likewise.
11903 (struct) modref_summary_lto: Use eaf_fleags_t.
11904 (deref_flags): Handle EAF_NOT_RETURNED.
11905 (struct escape_point): Use min_flags.
11906 (modref_lattice::init): Add EAF_NOT_RETURNED.
11907 (merge_call_lhs_flags): Ignore EAF_NOT_RETURNED functions
11908 (analyze_ssa_name_flags): Clear EAF_NOT_RETURNED on return;
11910 (analyze_parms): Also analyze const functions; update conition on
11912 (modref_write): Update streaming.
11913 (read_section): Update streaming.
11914 (remap_arg_flags): Use eaf_flags_t.
11915 (modref_merge_call_site_flags): Hanlde EAF_NOT_RETURNED.
11916 * ipa-modref.h: (eaf_flags_t): New typedef.
11917 (struct modref_summary): Use eaf_flags_t.
11918 * tree-core.h (EAF_NOT_RETURNED): New constant.
11920 2021-07-16 Richard Biener <rguenther@suse.de>
11922 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Use
11923 the type of the LHS.
11924 (gimple_assign_nonnegative_warnv_p): Likewise.
11925 (gimple_call_nonnegative_warnv_p): Likewise. Return false
11926 if the call has no LHS.
11927 * gimple.c (gimple_could_trap_p_1): Use the type of the LHS.
11928 * tree-eh.c (stmt_could_throw_1_p): Likewise.
11929 * tree-inline.c (insert_init_stmt): Likewise.
11930 * tree-ssa-loop-niter.c (get_val_for): Likewise.
11931 * tree-outof-ssa.c (ssa_is_replaceable_p): Use the type of
11933 * tree-ssa-sccvn.c (init_vn_nary_op_from_stmt): Take a
11934 gassign *. Use the type of the lhs.
11935 (vn_nary_op_lookup_stmt): Adjust.
11936 (vn_nary_op_insert_stmt): Likewise.
11938 2021-07-16 Ilya Leoshkevich <iii@linux.ibm.com>
11940 * config/s390/predicates.md (bras_sym_operand): Accept all
11941 functions in 64-bit mode, use UNSPEC_PLT31.
11942 (larl_operand): Use UNSPEC_PLT31.
11943 * config/s390/s390.c (s390_loadrelative_operand_p): Likewise.
11944 (legitimize_pic_address): Likewise.
11945 (s390_emit_tls_call_insn): Mark __tls_get_offset as function,
11947 (s390_delegitimize_address): Use UNSPEC_PLT31.
11948 (s390_output_addr_const_extra): Likewise.
11949 (print_operand): Add @PLT to TLS calls, handle %K.
11950 (s390_function_profiler): Mark __fentry__/_mcount as function,
11951 use %K, use UNSPEC_PLT31.
11952 (s390_output_mi_thunk): Use only UNSPEC_GOT, use %K.
11953 (s390_emit_call): Use UNSPEC_PLT31.
11954 (s390_emit_tpf_eh_return): Mark __tpf_eh_return as function.
11955 * config/s390/s390.md (UNSPEC_PLT31): Rename from UNSPEC_PLT.
11956 (*movdi_64): Use %K.
11957 (reload_base_64): Likewise.
11958 (*sibcall_brc): Likewise.
11959 (*sibcall_brcl): Likewise.
11960 (*sibcall_value_brc): Likewise.
11961 (*sibcall_value_brcl): Likewise.
11963 (*brasl): Likewise.
11964 (*bras_r): Likewise.
11965 (*brasl_r): Likewise.
11966 (*bras_tls): Likewise.
11967 (*brasl_tls): Likewise.
11968 (main_base_64): Likewise.
11969 (reload_base_64): Likewise.
11970 (@split_stack_call<mode>): Likewise.
11972 2021-07-16 Richard Biener <rguenther@suse.de>
11974 PR tree-optimization/101467
11975 * tree-vect-stmts.c (vect_gen_while): Properly guard
11976 make_temp_ssa_name usage.
11978 2021-07-16 Cooper Qu <cooper.qu@linux.alibaba.com>
11980 * config.gcc: Don't use forked print-sysroot-suffix.sh and
11981 t-sysroot-suffix for C-SKY.
11982 * config/csky/print-sysroot-suffix.sh: Delete.
11983 * config/csky/t-csky-linux: Delete.
11984 * config/csky/t-sysroot-suffix: Define MULTILIB_DIRNAMES
11985 instead of CSKY_MULTILIB_DIRNAMES.
11987 2021-07-16 Richard Biener <rguenther@suse.de>
11989 * tree-vect-loop.c (vect_transform_cycle_phi): Correct sign
11990 conversion issues with the partial reduction of the reused
11991 vector accumulator.
11993 2021-07-16 Richard Biener <rguenther@suse.de>
11995 * config/i386/i386-options.c (ix86_option_override_internal): Set
11996 param_vect_partial_vector_usage to zero if not set.
11998 2021-07-15 Uroš Bizjak <ubizjak@gmail.com>
12001 * config/i386/i386.h (VALID_SSE_REG_MODE): Add TDmode.
12002 (VALID_INT_MODE_P): Add SDmode and DDmode.
12003 Add TDmode for TARGET_64BIT.
12004 (VALID_DFP_MODE_P): Remove.
12005 * config/i386/i386.c (ix86_hard_regno_mode_ok):
12006 Do not use VALID_DFP_MODE_P.
12008 2021-07-15 Andrew MacLeod <amacleod@redhat.com>
12010 * gimple-range-fold.cc (adjust_pointer_diff_expr): Use
12012 (fold_using_range::fold_stmt): Ditto.
12013 (fold_using_range::range_of_range_op): Ditto.
12014 (fold_using_range::range_of_phi): Ditto.
12015 (fold_using_range::range_of_call): Ditto.
12016 (fold_using_range::range_of_builtin_ubsan_call): Ditto.
12017 (fold_using_range::range_of_builtin_call): Ditto.
12018 (fold_using_range::range_of_cond_expr): Ditto.
12019 * gimple-range-fold.h (gimple_range_type): New.
12021 2021-07-15 Martin Sebor <msebor@redhat.com>
12023 PR middle-end/97027
12024 * tree-ssa-strlen.c (handle_assign): New function.
12025 (maybe_warn_overflow): Add argument.
12026 (nonzero_bytes_for_type): New function.
12027 (count_nonzero_bytes): Handle more tree types. Call
12028 nonzero_bytes_for_tye.
12029 (count_nonzero_bytes): Handle types.
12030 (handle_store): Handle stores from function calls.
12031 (strlen_check_and_optimize_call): Move code to handle_assign. Call
12032 it for assignments from function calls.
12034 2021-07-15 David Malcolm <dmalcolm@redhat.com>
12039 * doc/invoke.texi: Add -Wanalyzer-use-of-uninitialized-value.
12041 2021-07-15 David Malcolm <dmalcolm@redhat.com>
12043 * doc/invoke.texi (-fdump-analyzer-exploded-paths): New.
12045 2021-07-15 Martin Sebor <msebor@redhat.com>
12049 * fold-const.c (operand_compare::operand_equal_p): Handle OEP_DECL_NAME.
12050 (operand_compare::verify_hash_value): Same.
12051 * tree-core.h (OEP_DECL_NAME): New.
12053 2021-07-15 Martin Jambor <mjambor@suse.cz>
12055 * profile-count.h (profile_count::value): Change the return type to
12057 * gimple-pretty-print.c (dump_gimple_bb_header): Adjust print
12059 * tree-cfg.c (dump_function_to_file): Likewise.
12061 2021-07-15 Bill Schmidt <wschmidt@linux.ibm.com>
12064 * config/rs6000/rs6000-p8swap.c (has_part_mult): New.
12065 (rs6000_analyze_swaps): Insns containing a subreg of a mult are
12068 2021-07-15 Richard Biener <rguenther@suse.de>
12070 * tree-vectorizer.h (vect_gen_while): Match up with
12071 vect_gen_while_not.
12072 * tree-vect-stmts.c (vect_gen_while): Adjust API to that
12073 of vect_gen_while_not.
12074 (vect_gen_while_not): Adjust.
12075 * tree-vect-loop-manip.c (vect_set_loop_controls_directly): Likewise.
12077 2021-07-15 Aldy Hernandez <aldyh@redhat.com>
12079 * gimple-range-cache.cc (non_null_ref::adjust_range): New.
12080 (ranger_cache::range_of_def): Call adjust_range.
12081 (ranger_cache::entry_range): Same.
12082 * gimple-range-cache.h (non_null_ref::adjust_range): New.
12083 * gimple-range.cc (gimple_ranger::range_of_expr): Call
12085 (gimple_ranger::range_on_entry): Same.
12087 2021-07-15 Tamar Christina <tamar.christina@arm.com>
12090 2021-07-14 Tamar Christina <tamar.christina@arm.com>
12092 * config/arm/neon.md (<sup>dot_prod<vsi2qi>): Drop statements.
12094 2021-07-15 Tamar Christina <tamar.christina@arm.com>
12097 2021-07-14 Tamar Christina <tamar.christina@arm.com>
12099 * config/aarch64/aarch64-simd-builtins.def (udot, sdot): Rename to...
12100 (sdot_prod, udot_prod): ...These.
12101 * config/aarch64/aarch64-simd.md (<sur>dot_prod<vsi2qi>): Remove.
12102 (aarch64_<sur>dot<vsi2qi>): Rename to...
12103 (<sur>dot_prod<vsi2qi>): ...This.
12104 * config/aarch64/arm_neon.h (vdot_u32, vdotq_u32, vdot_s32, vdotq_s32):
12107 2021-07-15 Jakub Jelinek <jakub@redhat.com>
12109 PR middle-end/101437
12110 * gimplify.c (gimplify_expr): Throw away volatile reads from empty
12111 types even if they have non-BLKmode TYPE_MODE.
12113 2021-07-15 Richard Biener <rguenther@suse.de>
12116 * gcc.c (process_command): Process -gtoggle like process_options
12117 would after parsing options.
12119 2021-07-15 Trevor Saunders <tbsaunde@tbsaunde.org>
12121 * cfgexpand.c (expand_asm_loc): Adjust.
12122 (expand_asm_stmt): Likewise.
12123 * config/arm/aarch-common-protos.h (arm_md_asm_adjust): Likewise.
12124 * config/arm/aarch-common.c (arm_md_asm_adjust): Likewise.
12125 * config/arm/arm.c (thumb1_md_asm_adjust): Likewise.
12126 * config/avr/avr.c (avr_md_asm_adjust): Likewise.
12127 * config/cris/cris.c (cris_md_asm_adjust): Likewise.
12128 * config/i386/i386.c (ix86_md_asm_adjust): Likewise.
12129 * config/mn10300/mn10300.c (mn10300_md_asm_adjust): Likewise.
12130 * config/nds32/nds32.c (nds32_md_asm_adjust): Likewise.
12131 * config/pdp11/pdp11.c (pdp11_md_asm_adjust): Likewise.
12132 * config/rs6000/rs6000.c (rs6000_md_asm_adjust): Likewise.
12133 * config/s390/s390.c (s390_md_asm_adjust): Likewise.
12134 * config/vax/vax.c (vax_md_asm_adjust): Likewise.
12135 * config/visium/visium.c (visium_md_asm_adjust): Likewise.
12136 * doc/tm.texi: Regenerate.
12137 * target.def: Add location argument to md_asm_adjust.
12139 2021-07-15 Trevor Saunders <tbsaunde@tbsaunde.org>
12141 * tree-diagnostic.c (diagnostic_report_current_function): Use the
12142 diagnostic's location, not input_location.
12144 2021-07-15 Trevor Saunders <tbsaunde@tbsaunde.org>
12146 * cfgexpand.c (tree_conflicts_with_clobbers_p): Pass location to
12148 (expand_asm_stmt): Likewise.
12150 2021-07-14 Peter Bergner <bergner@linux.ibm.com>
12152 * config/rs6000/rs6000.c (adjacent_mem_locations): Return the lower
12153 addressed memory rtx, if any.
12154 (rs6000_split_multireg_move): Fix code formatting.
12155 Handle MMA build built-ins with operands in adjacent memory locations.
12157 2021-07-14 Peter Bergner <bergner@linux.ibm.com>
12159 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Move to later
12162 2021-07-14 Jason Merrill <jason@redhat.com>
12164 * sel-sched-ir.h (get_all_loop_exits): Use auto_vec.
12166 2021-07-14 Jason Merrill <jason@redhat.com>
12168 * doc/invoke.texi: -fdelete-dead-exceptions is on by default for
12171 2021-07-14 Tamar Christina <tamar.christina@arm.com>
12173 * tree-vect-patterns.c (vect_recog_dot_prod_pattern):
12174 Remove erroneous line.
12176 2021-07-14 Andrew MacLeod <amacleod@redhat.com>
12178 * params.opt (param_evrp_mode): Change default.
12180 2021-07-14 Tamar Christina <tamar.christina@arm.com>
12182 * config/aarch64/aarch64-simd-builtins.def (udot, sdot): Rename to...
12183 (sdot_prod, udot_prod): ...These.
12184 * config/aarch64/aarch64-simd.md (<sur>dot_prod<vsi2qi>): Remove.
12185 (aarch64_<sur>dot<vsi2qi>): Rename to...
12186 (<sur>dot_prod<vsi2qi>): ...This.
12187 * config/aarch64/arm_neon.h (vdot_u32, vdotq_u32, vdot_s32, vdotq_s32):
12190 2021-07-14 Tamar Christina <tamar.christina@arm.com>
12192 * config/arm/neon.md (<sup>dot_prod<vsi2qi>): Drop statements.
12194 2021-07-14 Tamar Christina <tamar.christina@arm.com>
12196 * doc/sourcebuild.texi (arm_v8_2a_i8mm_neon_hw): Document.
12198 2021-07-14 Tamar Christina <tamar.christina@arm.com>
12200 * config/arm/neon.md (usdot_prod<vsi2qi>): New.
12202 2021-07-14 Tamar Christina <tamar.christina@arm.com>
12204 * config/aarch64/aarch64-simd.md (aarch64_usdot<vsi2qi>): Rename to...
12205 (usdot_prod<vsi2qi>): ... This.
12206 * config/aarch64/aarch64-simd-builtins.def (usdot): Rename to...
12207 (usdot_prod): ...This.
12208 * config/aarch64/arm_neon.h (vusdot_s32, vusdotq_s32): Likewise.
12209 * config/aarch64/aarch64-sve.md (@aarch64_<sur>dot_prod<vsi2qi>):
12211 (@<sur>dot_prod<vsi2qi>): ...This.
12212 * config/aarch64/aarch64-sve-builtins-base.cc
12213 (svusdot_impl::expand): Use it.
12215 2021-07-14 Tamar Christina <tamar.christina@arm.com>
12217 * optabs.def (usdot_prod_optab): New.
12218 * doc/md.texi: Document it and clarify other dot prod optabs.
12219 * optabs-tree.h (enum optab_subtype): Add optab_vector_mixed_sign.
12220 * optabs-tree.c (optab_for_tree_code): Support usdot_prod_optab.
12221 * optabs.c (expand_widen_pattern_expr): Likewise.
12222 * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
12223 * tree-vect-loop.c (vectorizable_reduction): Query dot-product kind.
12224 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Take optional
12226 (vect_widened_op_tree): Optionally ignore
12228 (vect_recog_dot_prod_pattern): Support usdot_prod_optab.
12230 2021-07-14 H.J. Lu <hjl.tools@gmail.com>
12233 * config/i386/driver-i386.c (host_detect_local_cpu): Check
12234 "arch [32|64]" and "tune [32|64]" for 32-bit and 64-bit codegen.
12235 Enable UINTR only for 64-bit codegen.
12236 * config/i386/i386-options.c
12237 (ix86_option_override_internal::DEF_PTA): Skip PTA_UINTR if not
12239 * config/i386/i386.h (ARCH_ARG): New.
12240 (CC1_CPU_SPEC): Pass "[arch|tune] 32" for 32-bit codegen and
12241 "[arch|tune] 64" for 64-bit codegen.
12243 2021-07-14 Richard Biener <rguenther@suse.de>
12245 PR tree-optimization/101445
12246 * tree-vect-stmts.c (vectorizable_load): Do the gap adjustment
12247 of the IV in the correct direction for negative stride
12250 2021-07-14 Jakub Jelinek <jakub@redhat.com>
12253 * godump.c (godump_str_hash): New type.
12254 (godump_container::pot_dummy_types): Use string_hash instead of
12255 ptr_hash in the hash_set.
12257 2021-07-14 Richard Biener <rguenther@suse.de>
12259 * tree-vect-loop.c (vect_find_reusable_accumulator): Handle
12260 vector types where the old vector type has a multiple of
12261 the new vector type elements.
12262 (vect_create_partial_epilog): New function, split out from...
12263 (vect_create_epilog_for_reduction): ... here.
12264 (vect_transform_cycle_phi): Reduce the re-used accumulator
12265 to the new vector type.
12267 2021-07-14 Alexandre Oliva <oliva@adacore.com>
12269 * tree-ssa-alias.c (attr_fnspec::verify): Fix index in
12270 non-'t'-sized arg check.
12272 2021-07-14 Alexandre Oliva <oliva@adacore.com>
12274 * tree-cfg.c (cleanup_dead_labels_eh): Update
12275 post_landing_pad label upon change of landing pad block's
12277 (cleanup_dead_labels): Check that a removed label is not that
12280 2021-07-13 Jonathan Wright <jonathan.wright@arm.com>
12282 * combine.c (combine_simplify_rtx): Add vec_select -> subreg
12284 * config/aarch64/aarch64.md (*zero_extend<SHORT:mode><GPI:mode>2_aarch64):
12285 Add Neon to general purpose register case for zero-extend
12287 * config/arm/vfp.md (*arm_movsi_vfp): Remove "*" from *t -> r
12288 case to prevent some cases opting to go through memory.
12289 * cse.c (fold_rtx): Add vec_select -> subreg simplification.
12290 * rtl.c (rtvec_series_p): Define predicate to determine
12291 whether a vector contains a linear series of integers.
12292 * rtl.h (rtvec_series_p): Define.
12293 * rtlanal.c (vec_series_lowpart_p): Define predicate to
12294 determine if a vector selection is equivalent to the low part
12296 * rtlanal.h (vec_series_lowpart_p): Define.
12297 * simplify-rtx.c (simplify_context::simplify_binary_operation_1):
12298 Add vec_select -> subreg simplification.
12300 2021-07-13 Paul A. Clarke <pc@us.ibm.com>
12302 * config/rs6000/smmintrin.h (_mm_testz_si128, _mm_testc_si128,
12303 _mm_testnzc_si128, _mm_test_all_ones, _mm_test_all_zeros,
12304 _mm_test_mix_ones_zeros): New.
12306 2021-07-13 Roger Sayle <roger@nextmovesoftware.com>
12307 Richard Biener <rguenther@suse.de>
12309 * gimple.c (gimple_could_trap_p_1): Make S argument a
12310 "const gimple*". Preserve constness in call to
12311 gimple_asm_volatile_p.
12312 (gimple_could_trap_p): Make S argument a "const gimple*".
12313 * gimple.h (gimple_could_trap_p_1, gimple_could_trap_p):
12314 Update function prototypes.
12316 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
12318 * tree-vectorizer.h (vect_reusable_accumulator): New structure.
12319 (_loop_vec_info::main_loop_edge): New field.
12320 (_loop_vec_info::skip_main_loop_edge): Likewise.
12321 (_loop_vec_info::skip_this_loop_edge): Likewise.
12322 (_loop_vec_info::reusable_accumulators): Likewise.
12323 (_stmt_vec_info::reduc_scalar_results): Likewise.
12324 (_stmt_vec_info::reused_accumulator): Likewise.
12325 (vect_get_main_loop_result): Declare.
12326 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
12327 reduc_scalar_inputs.
12328 (vec_info::free_stmt_vec_info): Free reduc_scalar_inputs.
12329 * tree-vect-loop-manip.c (vect_get_main_loop_result): New function.
12330 (vect_do_peeling): Fill an epilogue loop's main_loop_edge,
12331 skip_main_loop_edge and skip_this_loop_edge fields.
12332 * tree-vect-loop.c (INCLUDE_ALGORITHM): Define.
12333 (vect_emit_reduction_init_stmts): New function.
12334 (get_initial_def_for_reduction): Use it.
12335 (get_initial_defs_for_reduction): Likewise. Change the vinfo
12336 parameter to a loop_vec_info.
12337 (vect_create_epilog_for_reduction): Store the scalar results
12338 in the reduc_info. If an epilogue loop is reusing an accumulator
12339 from the main loop, and if the epilogue loop can also be skipped,
12340 try to place the reduction code in the join block. Record
12341 accumulators that could potentially be reused by epilogue loops.
12342 (vect_transform_cycle_phi): When vectorizing epilogue loops,
12343 try to reuse accumulators from the main loop. Record the initial
12344 value in reduc_info for non-SLP reductions too.
12346 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
12348 * tree-vect-loop.c (get_initial_def_for_reduction): Remove
12349 adjustment handling. Take the neutral value as an argument,
12350 in place of the code argument.
12351 (vect_transform_cycle_phi): Update accordingly. Handle the
12352 initial values of cond reductions separately from code reductions.
12353 Choose the adjustment here rather than in
12354 get_initial_def_for_reduction. Sink the splat of vec_initial_def.
12356 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
12358 * tree-vect-loop.c (neutral_op_for_slp_reduction): Replace with...
12359 (neutral_op_for_reduction): ...this, providing a more general
12361 (vect_create_epilog_for_reduction): Update accordingly.
12362 (vectorizable_reduction): Likewise.
12363 (vect_transform_cycle_phi): Likewise.
12365 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
12367 * tree-vect-loop.c (get_initial_def_for_reduction): Take the
12368 reduc_info instead of the original stmt_vec_info.
12369 (vect_transform_cycle_phi): Update accordingly.
12371 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
12373 * tree-vect-loop.c (get_initial_defs_for_reduction): Take the
12374 reduc_info as an additional parameter.
12375 (vect_transform_cycle_phi): Update accordingly.
12377 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
12379 * tree-vectorizer.h: Include tree-ssa-operands.h.
12380 (vect_phi_initial_value): New function.
12381 * tree-vect-loop.c (neutral_op_for_slp_reduction): Use it.
12382 (get_initial_defs_for_reduction, info_for_reduction): Likewise.
12383 (vect_create_epilog_for_reduction, vectorizable_reduction): Likewise.
12384 (vect_transform_cycle_phi, vectorizable_induction): Likewise.
12386 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
12388 * tree-vect-loop.c (vect_create_epilog_for_reduction): Convert
12389 the phi results to vectype after creating them. Remove later
12390 conversion code that thus becomes redundant.
12392 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
12394 * tree-vect-loop.c (vect_create_epilog_for_reduction): Replace
12395 the new_phis vector with a reduc_inputs vector. Combine handling
12396 of reduction chains and ncopies > 1.
12398 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
12400 * tree-vect-loop.c (vect_create_epilog_for_reduction): Truncate
12401 scalar_results to group_size elements after reducing down from
12402 N*group_size elements. Construct an array_slice of the live-out
12403 stmts and assert that there is one stmt per scalar result.
12405 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
12407 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
12408 nested_in_vect_loop and use double_reduc everywhere. Remove dead
12409 assignment to "loop".
12411 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
12413 * internal-fn.c (vectorized_internal_fn_supported_p): Handle
12414 vector types first. For scalar types, consider both the preferred
12415 vector mode and the alternative vector modes.
12416 * optabs-query.c (can_vec_mask_load_store_p): Use the same
12417 structure as above, in particular using related_vector_mode
12418 for modes provided by autovectorize_vector_modes.
12420 2021-07-13 Jakub Jelinek <jakub@redhat.com>
12421 Richard Biener <rguenther@suse.de>
12423 PR tree-optimization/101419
12424 * tree-pass.h (PROP_objsz): Define.
12425 (make_pass_early_object_sizes): Declare.
12426 * passes.def (pass_all_early_optimizations): Rename pass_object_sizes
12427 there to pass_early_object_sizes, drop parameter.
12428 (pass_all_optimizations): Move pass_object_sizes right after pass_ccp,
12429 drop parameter, move pass_post_ipa_warn right after that.
12430 * tree-object-size.c (pass_object_sizes::execute): Rename to...
12431 (object_sizes_execute): ... this. Add insert_min_max_p argument.
12432 (pass_data_object_sizes): Move after object_sizes_execute.
12433 (pass_object_sizes): Likewise. In execute method call
12434 object_sizes_execute, drop set_pass_param method and insert_min_max_p
12435 non-static data member and its initializer in the ctor.
12436 (pass_data_early_object_sizes, pass_early_object_sizes,
12437 make_pass_early_object_sizes): New.
12438 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use
12439 (cfun->curr_properties & PROP_objsz) instead of cfun->after_inlining.
12441 2021-07-13 Kito Cheng <kito.cheng@sifive.com>
12444 * config/riscv/constraints.md ("S"): Update description and remove
12446 * doc/md.texi (Machine Constraints): Document the 'S' constraints
12449 2021-07-13 Richard Biener <rguenther@suse.de>
12452 2021-07-12 Richard Biener <rguenther@suse.de>
12454 * tree-vect-slp.c (vect_slp_region): Show the number of
12455 SLP graph entries in the optimization message.
12457 2021-07-13 Michael Meissner <meissner@linux.ibm.com>
12459 * config/rs6000/altivec.md (xxspltiw_v4sf): Change local variable
12461 * config/rs6000/rs6000-protos.h (rs6000_const_f32_to_i32): Change
12462 return type to long.
12463 * config/rs6000/rs6000.c (rs6000_const_f32_to_i32): Change return
12466 2021-07-12 Andrew MacLeod <amacleod@redhat.com>
12468 * gimple-range-fold.cc (fold_using_range::range_of_builtin_ubsan_call):
12469 Query relation between the 2 operands and use it.
12471 2021-07-12 Sergei Trofimovich <siarheit@google.com>
12473 * doc/cfg.texi: Fix s/ei_safe_safe/ei_safe_edge/ typo.
12475 2021-07-12 Uroš Bizjak <ubizjak@gmail.com>
12478 * config/i386/predicates.md (vec_setm_sse41_operand):
12479 Rename from vec_setm_operand.
12480 (vec_setm_avx2_operand): New predicate.
12481 * config/i386/sse.md (vec_set<V_128:mode>): Use V_128 mode iterator.
12482 Use vec_setm_sse41_operand as operand 2 predicate.
12483 (vec_set<V_256_512:mode): New expander.
12484 * config/i386/mmx.md (vec_setv2hi): Use vec_setm_sse41_operand
12485 as operand 2 predicate.
12487 2021-07-12 Andrew MacLeod <amacleod@redhat.com>
12489 PR tree-optimization/101335
12490 * range-op.cc (operator_cast::lhs_op1_relation): Delete.
12492 2021-07-12 Andrew Pinski <apinski@marvell.com>
12494 * tree-ssa-phiopt.c (match_simplify_replacement): Move
12495 insert of the sequence before the movement of the
12496 statement. Check if to see if the statement is used
12497 outside of the original phi to see if we should move it.
12499 2021-07-12 Richard Biener <rguenther@suse.de>
12501 * dump-context.h (debug_dump_context::debug_dump_context):
12502 Add FILE * parameter defaulted to stderr.
12503 * dumpfile.c (debug_dump_context::debug_dump_context): Adjust.
12504 * tree-vect-slp.c (dot_slp_tree): New functions.
12506 2021-07-12 Richard Biener <rguenther@suse.de>
12508 PR tree-optimization/101373
12509 * tree-ssa-pre.c (prune_clobbered_mems): Also prune trapping
12510 references when the BB may not return.
12511 (compute_avail): Pass in the function we're working on and
12512 replace cfun references with it. Externally throwing
12513 const calls also possibly terminate the function.
12514 (pass_pre::execute): Pass down the function we're working on.
12515 * gcse.c (compute_hash_table_work): Externally throwing
12516 const/pure calls also need record_last_mem_set_info.
12517 * postreload-gcse.c (record_opr_changes): Looping or externally
12518 throwing const/pure calls also need record_last_mem_set_info.
12520 2021-07-12 Uroš Bizjak <ubizjak@gmail.com>
12522 * recog.c (memory_address_addr_space_p): Change the type to bool.
12523 Return true/false instead of 1/0.
12524 (offsettable_memref_p): Ditto.
12525 (offsettable_nonstrict_memref_p): Ditto.
12526 (offsettable_address_addr_space_p): Ditto.
12527 Change the type of addressp indirect function to bool.
12528 * recog.h (memory_address_addr_space_p): Change the type to bool.
12529 (strict_memory_address_addr_space_p): Ditto.
12530 (offsettable_memref_p): Ditto.
12531 (offsettable_nonstrict_memref_p): Ditto.
12532 (offsettable_address_addr_space_p): Ditto.
12533 * reload.c (maybe_memory_address_addr_space_p): Ditto.
12534 (strict_memory_address_addr_space_p): Change the type to bool.
12535 Return true/false instead of 1/0.
12536 (maybe_memory_address_addr_space_p): Change the type to bool.
12538 2021-07-12 Richard Biener <rguenther@suse.de>
12540 * tree-vect-slp.c (vect_slp_region): Show the number of
12541 SLP graph entries in the optimization message.
12543 2021-07-12 Richard Biener <rguenther@suse.de>
12545 PR tree-optimization/101394
12546 * tree-ssa-pre.c (do_pre_regular_insertion): Avoid inserting
12547 copies from abnormals for a full redundancy.
12549 2021-07-12 Richard Biener <rguenther@suse.de>
12551 PR middle-end/101423
12552 * gimple.c (gimple_could_trap_p_1): Internal function calls
12554 * tree-eh.c (tree_could_trap_p): Likewise.
12556 2021-07-12 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
12559 * config/arm/arm_neon.h (vmul_n_u32): Replace call to builtin with
12561 (vmulq_n_u32): Likewise.
12562 (vmul_n_f32): Gate __a * __b on __FAST_MATH__.
12563 (vmulq_n_f32): Likewise.
12564 (vmul_n_f16): Likewise.
12565 (vmulq_n_f16): Likewise.
12567 2021-07-12 Martin Liska <mliska@suse.cz>
12569 PR sanitizer/101425
12570 * gcc.c (check_offload_target_name): Call
12571 candidates_list_and_hint only if we have a candidate.
12573 2021-07-12 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
12576 * config/arm/neon.md (vec_init): Move to ...
12577 * config/arm/vec-common.md (vec_init): ... here.
12578 Change the pattern's mode to VDQX and gate it on VALID_MVE_MODE.
12580 2021-07-12 Roger Sayle <roger@nextmovesoftware.com>
12582 PR tree-optimization/101403
12583 * match.pd ((T)bswap(X)>>C): Correctly handle cases where
12584 signedness of the shift is not the same as the signedness of
12585 the type extension.
12587 2021-07-09 Roger Sayle <roger@nextmovesoftware.com>
12588 Uroš Bizjak <ubizjak@gmail.com>
12590 * config/i386/i386.md (*divmodsi4_const): Optimize SImode
12591 divmod of a constant numerator with new define_insn_and_split.
12593 2021-07-09 Iain Sandoe <iain@sandoe.co.uk>
12596 * config/i386/i386-expand.c (ix86_expand_call): If a call is
12597 to a non-local-binding, or local but to a public symbol, then
12598 assume that it might be indirected via the lazy symbol binder.
12599 Mark R10 and R10 as clobbered in that case.
12601 2021-07-09 Eric Botcazou <ebotcazou@adacore.com>
12604 * gcc.c (ASM_DEBUG_DWARF_OPTION): Set again to --gdwarf2 in
12605 the case where HAVE_AS_WORKING_DWARF_N_FLAG is not defined
12606 and HAVE_LD_BROKEN_PE_DWARF5 is defined.
12608 2021-07-09 Uroš Bizjak <ubizjak@gmail.com>
12610 * config/i386/i386.md (*udivmodsi4_pow2_zext_1): Limit the
12611 log2 range of operands[3] to [1,31].
12612 (*udivmodsi4_pow2_zext_2): Ditto. Correct insn RTX pattern.
12614 2021-07-09 Sergei Trofimovich <siarheit@google.com>
12616 * doc/md.texi: Don't split @smallexample in multiple @groups.
12618 2021-07-09 Sergei Trofimovich <siarheit@google.com>
12620 * doc/md.texi: Add missing 'see' word.
12622 2021-07-09 Andrew Pinski <apinski@marvell.com>
12624 * tree-ssa-phiopt.c (phiopt_early_allow): Change arguments
12625 to take sequence and gimple_match_op. Accept the case where
12626 op is a SSA_NAME and one statement in the sequence.
12627 Also allow constants.
12628 (gimple_simplify_phiopt): Always pass a sequence to resimplify.
12629 Update call to phiopt_early_allow. Discard the sequence if not
12632 2021-07-09 Xi Ruoyao <xry111@mengyan1223.wang>
12637 * config/mips/mips.c (mips_const_insns): Use MSA_SUPPORTED_MODE_P
12638 instead of ISA_HAS_MSA.
12639 (mips_expand_vec_unpack): Likewise.
12640 (mips_expand_vector_init): Likewise.
12642 2021-07-09 Kewen Lin <linkw@linux.ibm.com>
12644 * config/rs6000/vsx.md (mods_<mode>): Rename to...
12645 (mod<mode>3): ... this.
12646 (modu_<mode>): Rename to...
12647 (umod<mode>3): ... this.
12648 * config/rs6000/rs6000-builtin.def (MODS_V2DI, MODS_V4SI, MODU_V2DI,
12649 MODU_V4SI): Adjust.
12651 2021-07-08 Jeff Law <jeffreyalaw@gmail.com>
12653 * config/h8300/shiftrotate.md (variable shifts): Expose condition
12654 code handling for the test before the loop.
12656 2021-07-08 Martin Jambor <mjambor@suse.cz>
12659 * ipa-sra.c (class isra_call_summary): New member
12660 m_before_any_store, initialize it in the constructor.
12661 (isra_call_summary::dump): Dump the new field.
12662 (ipa_sra_call_summaries::duplicate): Copy it.
12663 (process_scan_results): Set it.
12664 (isra_write_edge_summary): Stream it.
12665 (isra_read_edge_summary): Likewise.
12666 (param_splitting_across_edge): Only override
12667 safe_to_import_accesses if m_before_any_store is set.
12669 2021-07-08 Martin Sebor <msebor@redhat.com>
12671 PR bootstrap/101374
12672 * gimple-array-bounds.cc (array_bounds_checker::check_mem_ref):
12673 Use Object Size Type 0 instead of 1.
12675 2021-07-08 Richard Sandiford <richard.sandiford@arm.com>
12677 * tree-vect-loop.c (vectorizable_reduction): Remove always-true
12680 2021-07-08 Richard Sandiford <richard.sandiford@arm.com>
12682 * match.pd: Simplify an extend-operate-truncate sequence involving
12685 2021-07-08 Roger Sayle <roger@nextmovesoftware.com>
12686 Richard Biener <rguenther@suse.de>
12688 PR tree-optimization/40210
12689 * match.pd (bswap optimizations): Simplify (bswap(x)>>C1)&C2 as
12690 (x>>C3)&C2 when possible. Simplify bswap(x)>>C1 as ((T)x)>>C2
12691 when possible. Simplify bswap(x)&C1 as (x>>C2)&C1 when 0<=C1<=255.
12693 2021-07-08 Uroš Bizjak <ubizjak@gmail.com>
12696 * config/i386/i386-expand.c (ix86_expand_sse_unpack):
12698 * config/i386/mmx.md (V_32): New mode iterator.
12699 (mov<V_32:mode>): Use V_32 mode iterator.
12700 (*mov<V_32:mode>_internal): Ditto.
12701 (*push<V_32:mode>2_rex64): Ditto.
12702 (*push<V_32:mode>2): Ditto.
12703 (movmisalign<V_32:mode>): Ditto.
12704 (mmx_<any_shiftrt:insn>v1si3): New insn pattern.
12705 (sse4_1_<any_extend:code>v2qiv2hi2): Ditto.
12706 (vec_unpacks_lo_v4qi): New expander.
12707 (vec_unpacks_hi_v4qi): Ditto.
12708 (vec_unpacku_lo_v4qi): Ditto.
12709 (vec_unpacku_hi_v4qi): Ditto.
12710 * config/i386/i386.h (VALID_SSE2_REG_MODE): Add V1SImode.
12711 (VALID_INT_MODE_P): Ditto.
12713 2021-07-08 Michael Meissner <meissner@linux.ibm.com>
12716 * config/rs6000/rs6000.md (udivti3): New insn.
12717 (divti3): New insn.
12718 (umodti3): New insn.
12719 (modti3): New insn.
12721 2021-07-07 Martin Sebor <msebor@redhat.com>
12723 PR tree-optimization/100137
12724 PR tree-optimization/99121
12725 PR tree-optimization/97027
12726 * builtins.c (access_ref::access_ref): Also set offmax.
12727 (access_ref::offset_in_range): Define new function.
12728 (access_ref::add_offset): Set offmax.
12729 (access_ref::inform_access): Handle access_none.
12730 (handle_mem_ref): Clear ostype.
12731 (compute_objsize_r): Handle ASSERT_EXPR.
12732 * builtins.h (struct access_ref): Add offmax member.
12733 * gimple-array-bounds.cc (array_bounds_checker::check_mem_ref): Use
12734 compute_objsize() and simplify.
12736 2021-07-07 Peter Bergner <bergner@linux.ibm.com>
12738 * config/rs6000/rs6000-call.c (mma_init_builtins): Use VSX_BUILTIN_LXVP
12739 and VSX_BUILTIN_STXVP.
12741 2021-07-07 Martin Sebor <msebor@redhat.com>
12744 * config/aarch64/aarch64.c (aarch64_simd_lane_bounds): Remove
12745 a stray %K from error_at() missed in r12-2088.
12747 2021-07-07 Richard Biener <rguenther@suse.de>
12749 PR tree-optimization/99728
12750 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Record
12752 (mem_refs_may_alias_p): Add assert we handled aggregate
12754 (sm_seq_valid_bb): Give up when running into aggregate copies.
12755 (ref_indep_loop_p): Handle aggregate copies as never
12756 being invariant themselves but allow other refs to be
12757 disambiguated against them.
12758 (can_sm_ref_p): Do not try to apply store-motion to aggregate
12761 2021-07-06 Indu Bhagat <indu.bhagat@oracle.com>
12764 * dwarf2ctf.c (ctf_get_AT_data_member_location): Multiply by 8 to get
12767 2021-07-06 Martin Sebor <msebor@redhat.com>
12769 * gimple-pretty-print.c (percent_G_format): Remove.
12770 * tree-diagnostic.c (default_tree_printer): Remove calls.
12771 * tree-pretty-print.c (percent_K_format): Remove.
12772 * tree-pretty-print.h (percent_K_format): Remove.
12774 2021-07-06 Martin Sebor <msebor@redhat.com>
12776 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
12777 Remove %K and use error_at.
12778 (aarch64_expand_fcmla_builtin): Same.
12779 (aarch64_expand_builtin_tme): Same.
12780 (aarch64_expand_builtin_memtag): Same.
12781 * config/arm/arm-builtins.c (arm_expand_acle_builtin): Same.
12782 (arm_expand_builtin): Same.
12783 * config/arm/arm.c (bounds_check): Same.
12785 2021-07-06 Martin Sebor <msebor@redhat.com>
12787 * builtins.c (warn_string_no_nul): Remove %G.
12788 (maybe_warn_for_bound): Same.
12789 (warn_for_access): Same.
12790 (check_access): Same.
12791 (check_strncat_sizes): Same.
12792 (expand_builtin_strncat): Same.
12793 (expand_builtin_strncmp): Same.
12794 (expand_builtin): Same.
12795 (expand_builtin_object_size): Same.
12796 (warn_dealloc_offset): Same.
12797 (maybe_emit_free_warning): Same.
12798 * calls.c (maybe_warn_alloc_args_overflow): Same.
12799 (maybe_warn_nonstring_arg): Same.
12800 (maybe_warn_rdwr_sizes): Same.
12801 * expr.c (expand_expr_real_1): Remove %K.
12802 * gimple-fold.c (gimple_fold_builtin_strncpy): Remove %G.
12803 (gimple_fold_builtin_strncat): Same.
12804 * gimple-ssa-sprintf.c (format_directive): Same.
12805 (handle_printf_call): Same.
12806 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Same.
12807 * gimple-ssa-warn-restrict.c (maybe_diag_overlap): Same.
12808 (maybe_diag_access_bounds): Same. Call gimple_location.
12809 (check_bounds_or_overlap): Same.
12810 * trans-mem.c (ipa_tm_scan_irr_block): Remove %K. Simplify.
12811 * tree-ssa-ccp.c (pass_post_ipa_warn::execute): Remove %G.
12812 * tree-ssa-strlen.c (maybe_warn_overflow): Same.
12813 (maybe_diag_stxncpy_trunc): Same.
12814 (handle_builtin_stxncpy_strncat): Same.
12815 (maybe_warn_pointless_strcmp): Same.
12816 * tree-ssa-uninit.c (maybe_warn_operand): Same.
12818 2021-07-06 Uroš Bizjak <ubizjak@gmail.com>
12821 * config/i386/predicates.md (vec_setm_operand): Enable
12822 register_operand for TARGET_SSE4_1.
12823 * config/i386/mmx.md (vec_setv2hi): Use vec_setm_operand
12824 as operand 2 predicate. Call ix86_expand_vector_set_var
12825 for non-constant index operand.
12826 (vec_setv4qi): Use vec_setm_mmx_operand as operand 2 predicate.
12827 Call ix86_expand_vector_set_var for non-constant index operand.
12829 2021-07-06 Jeff Law <jeffreyalaw@gmail.com>
12831 * config/h8300/jumpcall.md (*branch): When possible, generate
12832 the comparison in CCZN mode.
12833 * config/h8300/predicates.md (simple_memory_operand): Reject all
12834 auto-increment addressing modes.
12836 2021-07-06 Iain Sandoe <iain@sandoe.co.uk>
12838 PR bootstrap/100246
12839 * config/i386/i386.h (struct stringop_algs): Define a CTOR for
12842 2021-07-06 Richard Biener <rguenther@suse.de>
12844 * doc/md.texi (vec_fmaddsub<mode>4): Document.
12845 (vec_fmsubadd<mode>4): Likewise.
12846 * optabs.def (vec_fmaddsub$a4): Add.
12847 (vec_fmsubadd$a4): Likewise.
12848 * internal-fn.def (IFN_VEC_FMADDSUB): Add.
12849 (IFN_VEC_FMSUBADD): Likewise.
12850 * tree-vect-slp-patterns.c (addsub_pattern::recognize):
12851 Refactor to handle IFN_VEC_FMADDSUB and IFN_VEC_FMSUBADD.
12852 (addsub_pattern::build): Likewise.
12853 * tree-vect-slp.c (vect_optimize_slp): CFN_VEC_FMADDSUB
12854 and CFN_VEC_FMSUBADD are not transparent for permutes.
12855 * config/i386/sse.md (vec_fmaddsub<mode>4): New expander.
12856 (vec_fmsubadd<mode>4): Likewise.
12858 2021-07-06 Richard Biener <rguenther@suse.de>
12860 * doc/invoke.texi (fmove-loop-stores): Document.
12861 * common.opt (fmove-loop-stores): New option.
12862 * opts.c (default_options_table): Enable -fmove-loop-stores
12863 at -O1 but not -Og.
12864 * tree-ssa-loop-im.c (pass_lim::execute): Pass
12865 flag_move_loop_stores instead of true to
12866 loop_invariant_motion_in_fun.
12868 2021-07-06 Iain Sandoe <iain@sandoe.co.uk>
12870 * doc/install.texi: Document --with-dsymutil.
12872 2021-07-06 Andrew Pinski <apinski@marvell.com>
12874 PR tree-optimization/101256
12875 * dbgcnt.def (phiopt_edge_range): New counter.
12876 * tree-ssa-phiopt.c (replace_phi_edge_with_variable):
12877 Check to make sure the new name is defined in the same
12878 bb as the conditional before duplicating range info.
12879 Also add debug counter.
12881 2021-07-06 Kewen Lin <linkw@linux.ibm.com>
12883 PR rtl-optimization/100328
12884 * config/i386/i386-options.c (ix86_option_override_internal):
12885 Set param_ira_consider_dup_in_all_alts to 0.
12887 2021-07-06 Kewen Lin <linkw@linux.ibm.com>
12889 PR rtl-optimization/100328
12890 * doc/invoke.texi (ira-consider-dup-in-all-alts): Document new
12892 * ira.c (ira_get_dup_out_num): Adjust as parameter
12893 param_ira_consider_dup_in_all_alts.
12894 * params.opt (ira-consider-dup-in-all-alts): New.
12895 * ira-conflicts.c (process_regs_for_copy): Add one parameter
12896 single_input_op_has_cstr_p.
12897 (get_freq_for_shuffle_copy): New function.
12898 (add_insn_allocno_copies): Adjust as single_input_op_has_cstr_p.
12899 * ira-int.h (ira_get_dup_out_num): Add one bool parameter.
12901 2021-07-05 Jeff Law <jeffreyalaw@gmail.com>
12903 * config/h8300/shiftrotate.md (shift-by-variable patterns): Update to
12904 generate condition code aware RTL directly.
12906 2021-07-05 Andrew Pinski <apinski@marvell.com>
12908 PR tree-optimization/101039
12909 * match.pd (A CMP 0 ? A : -A): New patterns.
12910 * tree-ssa-phiopt.c (abs_replacement): Delete function.
12911 (tree_ssa_phiopt_worker): Don't call abs_replacement.
12912 Update comment about abs_replacement.
12914 2021-07-05 Andrew Pinski <apinski@marvell.com>
12916 * tree-ssa-phiopt.c (gimple_simplify_phiopt):
12917 If "A ? B : C" fails to simplify, try "(!A) ? C : B".
12919 2021-07-05 Andrew Pinski <apinski@marvell.com>
12921 * tree-ssa-phiopt.c (match_simplify_replacement):
12922 Add early_p argument. Call gimple_simplify_phiopt
12923 instead of gimple_simplify.
12924 (tree_ssa_phiopt_worker): Update call to
12925 match_simplify_replacement and allow unconditionally.
12926 (phiopt_early_allow): New function.
12927 (gimple_simplify_phiopt): New function.
12929 2021-07-05 Andrew Pinski <apinski@marvell.com>
12931 PR middle-end/101237
12932 * fold-const.c (negate_expr_p): Remove call to element_mode
12933 and TREE_MODE/TREE_TYPE when calling HONOR_SIGNED_ZEROS,
12934 HONOR_SIGN_DEPENDENT_ROUNDING, and HONOR_SNANS.
12935 (fold_negate_expr_1): Likewise.
12936 (const_unop): Likewise.
12937 (fold_cond_expr_with_comparison): Likewise.
12938 (fold_binary_loc): Likewise.
12939 (fold_ternary_loc): Likewise.
12940 (tree_call_nonnegative_warnv_p): Likewise.
12941 * match.pd (-(A + B) -> (-B) - A): Likewise.
12943 2021-07-05 Iain Sandoe <iain@sandoe.co.uk>
12945 * configure.ac: Handle --with-dsymutil in the same way as we
12946 do for the assembler and linker. (DEFAULT_DSYMUTIL): New.
12947 Extract the type and version for the dsymutil configured or
12948 found by the default searches.
12949 * config.in: Regenerated.
12950 * configure: Regenerated.
12951 * collect2.c (do_dsymutil): Handle locating dsymutil in the
12952 same way as for the assembler and linker.
12953 * config/darwin.h (DSYMUTIL): Delete.
12954 * gcc.c: Report a configured dsymutil correctly.
12955 * exec-tool.in: Allow for dsymutil.
12957 2021-07-05 Uroš Bizjak <ubizjak@gmail.com>
12959 * config/i386/i386-expand.c (ix86_split_mmx_punpck):
12960 Handle V4QI and V2HI modes.
12961 (expand_vec_perm_blend): Allow 4-byte vector modes with TARGET_SSE4_1.
12962 Handle V4QI mode. Emit mmx_pblendvb32 for 4-byte modes.
12963 (expand_vec_perm_pshufb): Rewrite to use switch statemets.
12964 Handle 4-byte dual operands with TARGET_XOP and single operands
12965 with TARGET_SSSE3. Emit mmx_ppermv32 for TARGET_XOP and
12966 mmx_pshufbv4qi3 for TARGET_SSSE3.
12967 (expand_vec_perm_pblendv): Allow 4-byte vector modes with TARGET_SSE4_1.
12968 (expand_vec_perm_interleave2): Allow 4-byte vector modes.
12969 (expand_vec_perm_pshufb2): Allow 4-byte vector modes with TARGET_SSSE3.
12970 (expand_vec_perm_even_odd_1): Handle V4QI mode.
12971 (expand_vec_perm_broadcast_1): Handle V4QI mode.
12972 (ix86_vectorize_vec_perm_const): Handle V4QI mode.
12973 * config/i386/mmx.md (mmx_ppermv32): New insn pattern.
12974 (mmx_pshufbv4qi3): Ditto.
12975 (*mmx_pblendw32): Ditto.
12976 (*mmx_pblendw64): Rename from *mmx_pblendw.
12977 (mmx_punpckhbw_low): New insn_and_split pattern.
12978 (mmx_punpcklbw_low): Ditto.
12980 2021-07-05 Richard Biener <rguenther@suse.de>
12982 * tree-vect-loop-manip.c (vect_loop_versioning): Do not
12983 set LOOP_C_INFINITE on the vectorized loop.
12985 2021-07-05 Richard Biener <rguenther@suse.de>
12987 PR middle-end/101291
12988 * cfgloopmanip.c (loop_version): Set the loop copy of the
12989 versioned loop to the new loop.
12991 2021-07-04 Iain Sandoe <iain@sandoe.co.uk>
12994 * config.gcc: Ensure that Darwin biarch definitions are
12995 added before i386.h.
12996 * config/i386/darwin.h (TARGET_64BIT): Remove.
12997 (PR80556_WORKAROUND): New.
12998 (REAL_LIBGCC_SPEC): Amend to use PR80556_WORKAROUND.
12999 (DARWIN_SUBARCH_SPEC): New.
13000 * config/i386/darwin32-biarch.h (TARGET_64BIT_DEFAULT,
13001 TARGET_BI_ARCH, PR80556_WORKAROUND): New.
13002 (REAL_LIBGCC_SPEC): Remove.
13003 * config/i386/darwin64-biarch.h (TARGET_64BIT_DEFAULT,
13004 TARGET_BI_ARCH, PR80556_WORKAROUND): New.
13005 (REAL_LIBGCC_SPEC): Remove.
13007 2021-07-03 H.J. Lu <hjl.tools@gmail.com>
13009 PR middle-end/101294
13010 * expr.c (store_constructor): Don't use vec_duplicate on vector.
13012 2021-07-02 Martin Sebor <msebor@redhat.com>
13014 PR middle-end/98871
13015 PR middle-end/98512
13016 * diagnostic.c (get_any_inlining_info): New.
13017 (update_effective_level_from_pragmas): Handle inlining context.
13018 (diagnostic_enabled): Same.
13019 (diagnostic_report_diagnostic): Same.
13020 * diagnostic.h (struct diagnostic_info): Add ctor.
13021 (struct diagnostic_context): Add new member.
13022 * tree-diagnostic.c (set_inlining_locations): New.
13023 (tree_diagnostics_defaults): Set new callback pointer.
13025 2021-07-02 Peter Bergner <bergner@linux.ibm.com>
13027 * config/rs6000/rs6000-builtin.def (BU_MMA_PAIR_LD, BU_MMA_PAIR_ST):
13029 (__builtin_vsx_lxvp, __builtin_vsx_stxvp): New built-ins.
13030 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_mma_builtin): Expand
13031 lxvp and stxvp built-ins.
13032 (mma_init_builtins): Handle lxvp and stxvp built-ins.
13033 (builtin_function_type): Likewise.
13034 * doc/extend.texi (__builtin_vsx_lxvp, __builtin_mma_stxvp): Document.
13036 2021-07-02 Jeff Law <jeffreyalaw@gmail.com>
13038 * config/h8300/h8300-protos.h (compute_a_shift_cc): Accept
13039 additional argument for the code.
13040 * config/h8300/h8300.c (compute_a_shift_cc): Accept additional
13041 argument for the code. Just return if the ZN bits are useful or
13042 not rather than the old style CC_* enums.
13043 * config/h8300/shiftrotate.md (shiftqi_noscratch): Move before
13044 more generic shiftqi patterns.
13045 (shifthi_noscratch, shiftsi_noscratch): Similarly.
13046 (shiftqi_noscratch_set_flags): New pattern.
13047 (shifthi_noscratch_set_flags, shiftsi_noscratch_set_flags): Likewise.
13049 2021-07-02 Andrew MacLeod <amacleod@redhat.com>
13051 PR tree-optimization/101223
13052 * range-op.cc (build_lt): Add -1 for signed values.
13053 (built_gt): Subtract -1 for signed values.
13055 2021-07-02 David Faust <david.faust@oracle.com>
13057 * btfout.c (get_btf_kind): Support BTF_KIND_FLOAT.
13058 (btf_asm_type): Likewise.
13060 2021-07-02 Jeff Law <jeffreyalaw@gmail.com>
13062 * config/h8300/h8300-protos.h (output_a_shift): Make first argument
13063 an array of rtx rather than a pointer to rtx. Add code argument.
13064 (compute_a_shift_length): Similarly.
13065 * config/h8300/h8300.c (h8300_shift_costs): Adjust now that the
13066 shift itself isn't an operand. Create dummy operand[0] to carry
13067 a mode and pass a suitable rtx code to compute_a_shift_length.
13068 (get_shift_alg): Adjust operand number of clobber in output templates.
13069 (output_a_shift): Make first argument an array of rtx rather than
13070 a pointer to rtx. Add code argument for the type of shift.
13071 Adjust now that the shift itself is no longer an operand.
13072 (compute_a_shift_length): Similarly.
13073 * config/h8300/shiftrotate.md (shiftqi, shifthi, shiftsi): Use an
13074 iterator rather than nshift_operator.
13075 (shiftqi_noscratch, shifthi_noscratch, shiftsi_noscratch): Likewise.
13076 (shiftqi_clobber_flags): Adjust to API changes in output_a_shift
13077 and compute_a_shift_length.
13078 (shiftqi_noscratch_clobber_flags): Likewise.
13079 (shifthi_noscratch_clobber_flags): Likewise.
13080 (shiftsi_noscratch_clobber_flags): Likewise.
13082 2021-07-02 Iain Sandoe <iain@sandoe.co.uk>
13085 * config/darwin.h (DSYMUTIL_SPEC): Do not try to run
13086 dsymutil for BTF/CTF.
13088 2021-07-02 Iain Sandoe <iain@sandoe.co.uk>
13091 * config/darwin.h (CTF_INFO_SECTION_NAME): Update the
13092 segment to include BTF.
13093 (BTF_INFO_SECTION_NAME): New.
13095 2021-07-02 Jeff Law <jeffreyalaw@gmail.com>
13097 * config/m32r/m32r-protos.h (call_operand): Adjust return type.
13098 (small_data_operand, memreg_operand, small_insn_p): Likewise.
13099 * config/m32r/m32r.c (call_operand): Adjust return type.
13100 (small_data_operand, memreg_operand): Likewise.
13102 2021-07-02 Jeff Law <jeffreyalaw@gmail.com>
13104 * config/frv/frv-protos.h (integer_register_operand): Adjust return
13106 (frv_load_operand, gpr_or_fpr_operand, gpr_no_subreg_operand): Likewise.
13107 (fpr_or_int6_operand, gpr_or_int_operand); Likewise.
13108 (gpr_or_int12_operand, gpr_or_int10_operand); Likewise.
13109 (move_source_operand, move_destination_operand): Likewise.
13110 (condexec_source_operand, condexec_dest_operand): Likewise.
13111 (lr_operand, gpr_or_memory_operand, fpr_or_memory_operand): Likewise.
13112 (reg_or_0_operand, fcc_operand, icc_operand, cc_operand): Likewise.
13113 (fcr_operand, icr_operand, cr_operand, call_operand): Likewise.
13114 (fpr_operand, even_reg_operand, odd_reg_operand): Likewise.
13115 (even_gpr_operand, odd_gpr_operand, quad_fpr_operand): Likewise.
13116 (even_fpr_operand, odd_fpr_operand): Likewise.
13117 (dbl_memory_one_insn_operand, dbl_memory_two_insn_operand): Likewise.
13118 (int12_operand, int6_operand, int5_operand, uint5_operand): Likewise.
13119 (uint4_operand, uint1_operand, int_2word_operand): Likewise
13120 (upper_int16_operand, uint16_operand, symbolic_operand): Likewise.
13121 (relational_operator, float_relational_operator): Likewise.
13122 (ccr_eqne_operator, minmax_operator): Likewise.
13123 (condexec_si_binary_operator, condexec_si_media_operator): Likewise.
13124 (condexec_si_divide_operator, condexec_si_unary_operator): Likewise.
13125 (condexec_sf_conv_operator, condexec_sf_add_operator): Likewise.
13126 (intop_compare_operator, acc_operand, even_acc_operand): Likewise.
13127 (quad_acc_operand, accg_operand): Likewise.
13129 2021-07-02 Jeff Law <jeffreyalaw@gmail.com>
13131 * config/stormy16/stormy16-protos.h (xstormy16_below_100_symbol): Change
13132 return type to a bool.
13133 (nonimmediate_nonstack_operand): Likewise.
13134 (xstormy16_splittable_below100_operand): Likewise.
13135 * config/stormy16/stormy16.c (xstormy16_below_100_symbol): Fix
13137 (xstormy16_splittable_below100_operand): Likewise.
13139 2021-07-02 Richard Biener <rguenther@suse.de>
13141 PR tree-optimization/101293
13142 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Compare MEM_REF bases
13143 with combined offsets.
13144 (gather_mem_refs_stmt): Hash MEM_REFs as if their offset were
13145 combined with the rest of the offset.
13147 2021-07-02 Eric Botcazou <ebotcazou@adacore.com>
13149 * config/i386/i386.c (asm_preferred_eh_data_format): Always use the
13150 PIC encodings for PE-COFF targets.
13152 2021-07-02 Jakub Jelinek <jakub@redhat.com>
13155 * config/i386/i386-expand.c (ix86_broadcast_from_integer_constant):
13156 Return nullptr for TImode inner mode.
13158 2021-07-02 Richard Biener <rguenther@suse.de>
13160 PR tree-optimization/101280
13161 PR tree-optimization/101173
13162 * gimple-loop-interchange.cc
13163 (tree_loop_interchange::valid_data_dependences): Properly
13164 guard all dependence checks with DDR_REVERSED_P or its
13167 2021-07-02 Hongyu Wang <hongyu.wang@intel.com>
13169 * config/i386/i386-expand.c (ix86_expand_builtin):
13170 Add branch to clear odata when ZF is set for asedecenc_expand
13171 and wideaesdecenc_expand.
13173 2021-07-02 Eugene Rozenfeld <erozen@microsoft.com>
13175 * config/i386/gcc-auto-profile: regenerate
13177 2021-07-02 liuhongt <hongtao.liu@intel.com>
13179 * config/i386/sse.md (trunc<mode><pmov_dst_4>2): Refined to ..
13180 (trunc<mode><pmov_dst_4_lower>2): this.
13182 2021-07-01 David Malcolm <dmalcolm@redhat.com>
13184 * diagnostic.h (diagnostic_context::m_file_cache): New field.
13185 * input.c (class fcache): Rename to...
13186 (class file_cache_slot): ...this, making most members private and
13187 prefixing fields with "m_".
13188 (file_cache_slot::get_file_path): New accessor.
13189 (file_cache_slot::get_use_count): New accessor.
13190 (file_cache_slot::missing_trailing_newline_p): New accessor.
13191 (file_cache_slot::inc_use_count): New.
13192 (fcache_buffer_size): Move to...
13193 (file_cache_slot::buffer_size): ...here.
13194 (fcache_line_record_size): Move to...
13195 (file_cache_slot::line_record_size): ...here.
13196 (fcache_tab): Delete, in favor of global_dc->m_file_cache.
13197 (fcache_tab_size): Move to file_cache::num_file_slots.
13198 (diagnostic_file_cache_init): Update for move of fcache_tab
13199 to global_dc->m_file_cache.
13200 (diagnostic_file_cache_fini): Likewise.
13201 (lookup_file_in_cache_tab): Convert to...
13202 (file_cache::lookup_file): ...this.
13203 (diagnostics_file_cache_forcibly_evict_file): Update for move of
13204 fcache_tab to global_dc->m_file_cache, moving most of
13205 implementation to...
13206 (file_cache::forcibly_evict_file): ...this new function and...
13207 (file_cache_slot::evict): ...this new function.
13208 (evicted_cache_tab_entry): Convert to...
13209 (file_cache::evicted_cache_tab_entry): ...this.
13210 (add_file_to_cache_tab): Convert to...
13211 (file_cache::add_file): ...this, moving bulk of implementation
13213 (file_cache_slot::create): ..this new function.
13214 (file_cache::file_cache): New.
13215 (file_cache::~file_cache): New.
13216 (lookup_or_add_file_to_cache_tab): Convert to...
13217 (file_cache::lookup_or_add_file): ..this new function.
13218 (fcache::fcache): Rename to...
13219 (file_cache_slot::file_cache_slot): ...this, adding "m_" prefixes
13221 (fcache::~fcache): Rename to...
13222 (file_cache_slot::~file_cache_slot): ...this, adding "m_" prefixes
13224 (needs_read): Convert to...
13225 (file_cache_slot::needs_read_p): ...this.
13226 (needs_grow): Convert to...
13227 (file_cache_slot::needs_grow_p): ...this.
13228 (maybe_grow): Convert to...
13229 (file_cache_slot::maybe_grow): ...this.
13230 (read_data): Convert to...
13231 (file_cache_slot::read_data): ...this.
13232 (maybe_read_data): Convert to...
13233 (file_cache_slot::maybe_read_data): ...this.
13234 (get_next_line): Convert to...
13235 (file_cache_slot::get_next_line): ...this.
13236 (goto_next_line): Convert to...
13237 (file_cache_slot::goto_next_line): ...this.
13238 (read_line_num): Convert to...
13239 (file_cache_slot::read_line_num): ...this.
13240 (location_get_source_line): Update for moving of globals to
13241 global_dc->m_file_cache.
13242 (location_missing_trailing_newline): Likewise.
13243 * input.h (class file_cache_slot): New forward decl.
13244 (class file_cache): New.
13246 2021-07-01 Michael Meissner <meissner@linux.ibm.com>
13248 * config/rs6000/rs6000.c (rs6000_maybe_emit_fp_cmove): Add IEEE
13249 128-bit floating point conditional move support.
13250 (have_compare_and_set_mask): Add IEEE 128-bit floating point
13252 * config/rs6000/rs6000.md (mov<mode>cc, IEEE128 iterator): New insn.
13253 (mov<mode>cc_p10, IEEE128 iterator): New insn.
13254 (mov<mode>cc_invert_p10, IEEE128 iterator): New insn.
13255 (fpmask<mode>, IEEE128 iterator): New insn.
13256 (xxsel<mode>, IEEE128 iterator): New insn.
13258 2021-07-01 Iain Sandoe <iain@sandoe.co.uk>
13261 * config/darwin.h (CTF_INFO_SECTION_NAME): New.
13263 2021-07-01 H.J. Lu <hjl.tools@gmail.com>
13265 * config/i386/i386-expand.c (ix86_expand_vector_init_duplicate):
13267 * config/i386/i386-protos.h (ix86_expand_vector_init_duplicate):
13269 * config/i386/sse.md (INT_BROADCAST_MODE): New mode iterator.
13270 (vec_duplicate<mode>): New expander.
13272 2021-07-01 H.J. Lu <hjl.tools@gmail.com>
13275 * config/i386/i386-expand.c (ix86_expand_vector_init_duplicate):
13277 (ix86_byte_broadcast): New function.
13278 (ix86_convert_const_wide_int_to_broadcast): Likewise.
13279 (ix86_expand_move): Convert CONST_WIDE_INT to broadcast if mode
13280 size is 16 bytes or bigger.
13281 (ix86_broadcast_from_integer_constant): New function.
13282 (ix86_expand_vector_move): Convert CONST_WIDE_INT and CONST_VECTOR
13283 to broadcast if mode size is 16 bytes or bigger.
13284 * config/i386/i386-protos.h (ix86_gen_scratch_sse_rtx): New
13286 * config/i386/i386.c (ix86_gen_scratch_sse_rtx): New function.
13288 2021-07-01 Uroš Bizjak <ubizjak@gmail.com>
13290 * config/i386/predicates.md (ix86_endbr_immediate_operand):
13291 Return true/false instead of 1/0.
13292 (movq_parallel): Ditto.
13294 2021-07-01 Uroš Bizjak <ubizjak@gmail.com>
13296 * recog.c (general_operand): Return true/false instead of 1/0.
13297 (register_operand): Ditto.
13298 (immediate_operand): Ditto.
13299 (const_int_operand): Ditto.
13300 (const_scalar_int_operand): Ditto.
13301 (const_double_operand): Ditto.
13302 (push_operand): Ditto.
13303 (pop_operand): Ditto.
13304 (memory_operand): Ditto.
13305 (indirect_operand): Ditto.
13307 2021-07-01 Uroš Bizjak <ubizjak@gmail.com>
13309 * genpreds.c (write_predicate_subfunction):
13310 Change the type of written subfunction to bool.
13311 (write_one_predicate_function):
13312 Change the type of written function to bool.
13313 (write_tm_preds_h): Ditto.
13314 * recog.h (*insn_operand_predicate_fn): Change the type to bool.
13315 * recog.c (general_operand): Change the type to bool.
13316 (address_operand): Ditto.
13317 (register_operand): Ditto.
13318 (pmode_register_operand): Ditto.
13319 (scratch_operand): Ditto.
13320 (immediate_operand): Ditto.
13321 (const_int_operand): Ditto.
13322 (const_scalar_int_operand): Ditto.
13323 (const_double_operand): Ditto.
13324 (nonimmediate_operand): Ditto.
13325 (nonmemory_operand): Ditto.
13326 (push_operand): Ditto.
13327 (pop_operand): Ditto.
13328 (memory_operand): Ditto.
13329 (indirect_operand): Ditto.
13330 (ordered_comparison_operator): Ditto.
13331 (comparison_operator): Ditto.
13332 * config/i386/i386-expand.c (ix86_expand_sse_cmp):
13333 Change the type of indirect predicate function to bool.
13334 * config/rs6000/rs6000.c (easy_vector_constant):
13335 Change the type to bool.
13336 * config/mips/mips-protos.h (m16_based_address_p):
13337 Change the type of operand 3 to bool.
13339 2021-07-01 Richard Biener <rguenther@suse.de>
13341 PR tree-optimization/101280
13342 PR tree-optimization/101173
13343 * gimple-loop-interchange.cc
13344 (tree_loop_interchange::valid_data_dependences): Revert
13345 previous change and instead correctly handle DDR_REVERSED_P
13348 2021-07-01 Richard Biener <rguenther@suse.de>
13350 PR tree-optimization/101278
13351 * tree-ssa-dse.c (dse_classify_store): First check for
13352 uses, then ignore stmt for chaining purposes.
13354 2021-07-01 Richard Biener <rguenther@suse.de>
13356 PR tree-optimization/100778
13357 * tree-vect-slp.c (vect_schedule_slp_node): Do not place trapping
13358 vectorized ops ahead of their scalar BB.
13360 2021-07-01 Uroš Bizjak <ubizjak@gmail.com>
13363 * config/i386/i386.md (*nabs<dwi>2_doubleword):
13364 New insn_and_split pattern.
13365 (*nabs<dwi>2_1): Ditto.
13366 * config/i386/i386-features.c
13367 (general_scalar_chain::compute_convert_gain):
13368 Handle (NEG (ABS (...))) RTX. Rewrite src code
13369 scanner as switch statement.
13370 (general_scalar_chain::convert_insn):
13371 Handle (NEG (ABS (...))) RTX.
13372 (general_scalar_to_vector_candidate_p):
13373 Detect (NEG (ABS (...))) RTX. Reorder case statements
13374 for (AND (NOT (...) ...)) fallthrough.
13376 2021-07-01 Richard Biener <rguenther@suse.de>
13378 PR tree-optimization/101178
13379 * tree-vect-slp.c (slpg_vertex::materialize): Remove.
13380 (slpg::perm_in): Add.
13381 (slpg::get_perm_in): Remove.
13382 (slpg::get_perm_materialized): Add.
13383 (vect_optimize_slp): Handle VEC_PERM nodes more optimally
13384 during permute propagation and materialization.
13386 2021-07-01 Jakub Jelinek <jakub@redhat.com>
13389 * dwarf2out.c (loc_list_from_tree_1): Handle COMPOUND_LITERAL_EXPR.
13391 2021-07-01 Jakub Jelinek <jakub@redhat.com>
13393 PR middle-end/94366
13394 * omp-low.c (lower_rec_input_clauses): Rename is_fp_and_or to
13395 is_truth_op, set it for TRUTH_*IF_EXPR regardless of new_var's type,
13396 use boolean_type_node instead of integer_type_node as NE_EXPR type.
13397 (lower_reduction_clauses): Likewise.
13399 2021-06-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
13401 * config/gcn/gcn.c: Include dwarf2.h.
13402 (gcn_addr_space_debug): New function.
13403 (TARGET_ADDR_SPACE_DEBUG): New hook.
13405 2021-06-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
13407 * common/config/gcn/gcn-common.c
13408 (gcn_option_optimization_table): Change OPT_fomit_frame_pointer to -O3.
13409 * config/gcn/gcn.c (gcn_expand_prologue): Prefer the frame pointer
13411 (gcn_expand_prologue): Prefer the frame pointer when emitting CFI.
13412 (gcn_frame_pointer_rqd): New function.
13413 (TARGET_FRAME_POINTER_REQUIRED): New hook.
13415 2021-06-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
13417 * config/gcn/gcn.c (move_callee_saved_registers): Emit CFI notes for
13418 prologue register saves.
13419 (gcn_debug_unwind_info): Use UI_DWARF2.
13420 (gcn_dwarf_register_number): Map DWARF_LINK_REGISTER to DWARF PC.
13421 (gcn_dwarf_register_span): DWARF_LINK_REGISTER doesn't span.
13422 * config/gcn/gcn.h: (DWARF_FRAME_RETURN_COLUMN): New define.
13423 (DWARF_LINK_REGISTER): New define.
13424 (FIRST_PSEUDO_REGISTER): Increment.
13425 (FIXED_REGISTERS): Add entry for DWARF_LINK_REGISTER.
13426 (CALL_USED_REGISTERS): Likewise.
13427 (REGISTER_NAMES): Likewise.
13429 2021-06-30 Richard Biener <rguenther@suse.de>
13431 PR tree-optimization/101267
13432 * tree-vect-stmts.c (vect_check_scalar_mask): Adjust
13433 API and use SLP compatible interface of vect_is_simple_use.
13434 Reject not vectorized SLP defs for callers that do not support
13436 (vect_check_store_rhs): Handle masked stores and pass down
13437 the appropriate operator index.
13438 (vectorizable_call): Adjust.
13439 (vectorizable_store): Likewise.
13440 (vectorizable_load): Likewise. Handle SLP pecularity of
13442 (vect_is_simple_use): Remove special-casing of masked stores.
13444 2021-06-30 Tobias Burnus <tobias@codesourcery.com>
13446 * common.opt (foffload): Remove help as Driver only.
13447 * gcc.c (display_help): Add -foffload.
13449 2021-06-30 Tobias Burnus <tobias@codesourcery.com>
13451 * gcc.c (close_at_file, execute): Replace alloca by XALLOCAVEC.
13452 (check_offload_target_name): Fix splitting OFFLOAD_TARGETS into
13453 a candidate list; better inform no offload target is configured
13454 and fix hint extraction when passed target is not '\0' at [len].
13455 * common.opt (foffload): Add tailing '.'.
13456 (foffload-options): Likewise; fix flag name in the help string.
13458 2021-06-30 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
13461 * config/arm/arm_neon.h: Move vabs intrinsics before vcage_f32.
13462 (vcage_f32): Gate comparison on __FAST_MATH__.
13463 (vcageq_f32): Likewise.
13464 (vcale_f32): Likewise.
13465 (vcaleq_f32): Likewise.
13466 (vcagt_f32): Likewise.
13467 (vcagtq_f32): Likewise.
13468 (vcalt_f32): Likewise.
13469 (vcaltq_f32): Likewise.
13470 (vcage_f16): Likewise.
13471 (vcageq_f16): Likewise.
13472 (vcale_f16): Likewise.
13473 (vcaleq_f16): Likewise.
13474 (vcagt_f16): Likewise.
13475 (vcagtq_f16): Likewise.
13476 (vcalt_f16): Likewise.
13477 (vcaltq_f16): Likewise.
13479 2021-06-30 Richard Biener <rguenther@suse.de>
13481 PR tree-optimization/101264
13482 * tree-vect-slp.c (vect_optimize_slp): Propagate the
13483 computed perm_in to all "any" permute successors
13484 we cannot de-duplicate immediately.
13486 2021-06-30 liuhongt <hongtao.liu@intel.com>
13489 * config/i386/sse.md
13490 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>):
13492 (avx512f_sfixupimm<mode><maskz_scalar_name><round_saeonly_name>):
13494 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>"): Refined.
13495 * config/i386/subst.md (maskz_scalar): New define_subst.
13496 (maskz_scalar_name): New subst_attr.
13497 (maskz_scalar_op5): Ditto.
13498 (round_saeonly_maskz_scalar_op5): Ditto.
13499 (round_saeonly_maskz_scalar_operand5): Ditto.
13501 2021-06-30 David Edelsohn <dje.gcc@gmail.com>
13503 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags):
13504 Increase code CSECT alignment to at least 32 bytes.
13505 * config/rs6000/xcoff.h (TEXT_SECTION_ASM_OP): Add 32 byte
13506 alignment designation.
13508 2021-06-29 Sergei Trofimovich <siarheit@google.com>
13510 * doc/generic.texi: Fix s/net yet/not yet/ typo.
13512 2021-06-29 Andrew MacLeod <amacleod@redhat.com>
13514 PR tree-optimization/101254
13515 * range-op.cc (operator_minus::op1_op2_relation_effect): Check for
13516 wrapping/non-wrapping when setting the result range.
13518 2021-06-29 Andrew MacLeod <amacleod@redhat.com>
13520 * value-query.cc (gimple_range_global): Allow phis.
13522 2021-06-29 Andrew MacLeod <amacleod@redhat.com>
13524 * vr-values.c (vr_values::vrp_stmt_computes_nonzero): Use stmt.
13525 (simplify_using_ranges::op_with_boolean_value_range_p): Add a
13526 statement for location context.
13527 (check_for_binary_op_overflow): Ditto.
13528 (simplify_using_ranges::get_vr_for_comparison): Ditto.
13529 (simplify_using_ranges::compare_name_with_value): Ditto.
13530 (simplify_using_ranges::compare_names): Ditto.
13531 (vrp_evaluate_conditional_warnv_with_ops_using_ranges): Ditto.
13532 (simplify_using_ranges::simplify_truth_ops_using_ranges): Ditto.
13533 (simplify_using_ranges::simplify_min_or_max_using_ranges): Ditto.
13534 (simplify_using_ranges::simplify_internal_call_using_ranges): Ditto.
13535 (simplify_using_ranges::two_valued_val_range_p): Ditto.
13536 (simplify_using_ranges::simplify): Ditto.
13537 * vr-values.h: Adjust prototypes.
13539 2021-06-29 Uroš Bizjak <ubizjak@gmail.com>
13542 * config/i386/mmx.md (vec_addsubv2sf3): New insn pattern.
13544 2021-06-29 Julian Brown <julian@codesourcery.com>
13546 * config/gcn/gcn.c (gcn_init_libfuncs): New function.
13547 (TARGET_INIT_LIBFUNCS): Define target hook using above function.
13548 * config/gcn/gcn.h (UNITS_PER_WORD): Define to 8 for IN_LIBGCC2, 4
13550 (LIBGCC2_UNITS_PER_WORD, BITS_PER_WORD): Remove definitions.
13551 (MAX_FIXED_MODE_SIZE): Change to 128.
13553 2021-06-29 Julian Brown <julian@codesourcery.com>
13555 * config/gcn/gcn.md (UNSPEC_FLBIT_INT): New unspec constant.
13556 (s_mnemonic): Add clrsb.
13557 (gcn_flbit<mode>_int): Add insn pattern for SImode/DImode.
13558 (clrsb<mode>2): Add expander for SImode/DImode.
13560 2021-06-29 Julian Brown <julian@codesourcery.com>
13562 * config/gcn/gcn.md (<su>mulsidi3, <su>mulsidi3_reg, <su>mulsidi3_imm,
13563 muldi3): Add patterns.
13565 2021-06-29 Julian Brown <julian@codesourcery.com>
13567 * config/gcn/gcn.md (<su>mulsi3_highpart): Change to expander.
13568 (<su>mulsi3_highpart_reg, <su>mulsi3_highpart_imm): New patterns.
13570 2021-06-29 Julian Brown <julian@codesourcery.com>
13572 * config/gcn/gcn.md (mulsi3): Make s_mulk_i32 variant clobber SCC.
13574 2021-06-29 Joseph Myers <joseph@codesourcery.com>
13576 * btfout.c, ctfout.c: Include "memmodel.h".
13578 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
13580 * gcc.c (check_offload_target_name): Cast len argument to
13581 %q.*s to 'int'; avoid -Wstringop-truncation warning.
13583 2021-06-29 Richard Biener <rguenther@suse.de>
13585 * tree-vect-slp.c (vect_optimize_slp): Forward propagate
13586 to "any" permute nodes and relax "any" permute proapgation
13587 during iterative backward propagation.
13589 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
13592 * common.opt (-foffload=): Update description.
13593 (-foffload-options=): New.
13594 * doc/invoke.texi (C Language Options): Document
13595 -foffload and -foffload-options.
13596 * gcc.c (check_offload_target_name): New, split off from
13597 handle_foffload_option.
13598 (check_foffload_target_names): New.
13599 (handle_foffload_option): Handle -foffload=default.
13600 (driver_handle_option): Update for -foffload-options.
13601 * lto-opts.c (lto_write_options): Use -foffload-options
13602 instead of -foffload.
13603 * lto-wrapper.c (merge_and_complain, append_offload_options):
13605 * opts.c (common_handle_option): Likewise.
13607 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
13609 * doc/invoke.texi (C Language Options): Sort options
13610 alphabetically in optlist and also the description itself.
13611 Remove leftover -fallow-single-precision from and add missing
13612 -fgnu-tm to the optlist.
13614 2021-06-29 Richard Biener <rguenther@suse.de>
13616 * tree-vect-slp.c (slpg_vertex::visited): Remove.
13617 (vect_slp_perms_eq): Handle -1 permutes.
13618 (vect_optimize_slp): Rewrite permute propagation.
13620 2021-06-29 Jakub Jelinek <jakub@redhat.com>
13623 * match.pd ((intptr_t)x eq/ne CST to x eq/ne (typeof x) CST): Don't
13624 perform the optimization in GENERIC when sanitizing and x has a
13627 2021-06-29 Richard Biener <rguenther@suse.de>
13629 PR tree-optimization/101242
13630 * tree-vect-slp.c (vect_slp_build_vertices): Force-add
13631 PHIs with not represented initial values as leafs.
13633 2021-06-29 Jan-Benedict Glaw <jbglaw@getslash.de>
13635 * config/pdp11/pdp11.h (ASM_OUTPUT_SKIP): Fix signedness warning.
13636 * config/pdp11/pdp11.c (pdp11_asm_print_operand_punct_valid_p): Remove
13637 "register" keyword.
13638 (pdp11_initial_elimination_offset) Remove unused variable.
13639 (pdp11_cmp_length) Ditto.
13640 (pdp11_insn_cost): Ditto, and fix signedness warning.
13642 2021-06-29 David Edelsohn <dje.gcc@gmail.com>
13644 * btfout.c: Include tm_p.h.
13647 2021-06-28 Indu Bhagat <indu.bhagat@oracle.com>
13649 * config/bpf/bpf.c (bpf_expand_prologue): Do not mark insns as
13651 (bpf_expand_epilogue): Likewise.
13652 * config/bpf/bpf.h (DWARF2_FRAME_INFO): Define to 0.
13653 Do not define DBX_DEBUGGING_INFO.
13655 2021-06-28 Indu Bhagat <indu.bhagat@oracle.com>
13657 * doc/invoke.texi: Document the CTF and BTF debug info options.
13659 2021-06-28 Indu Bhagat <indu.bhagat@oracle.com>
13660 David Faust <david.faust@oracle.com>
13661 Jose E. Marchesi <jose.marchesi@oracle.com>
13662 Weimin Pan <weimin.pan@oracle.com>
13664 * Makefile.in: Add ctfc.*, ctfout.c and btfout.c files to
13665 GTFILES. Add new object files.
13666 * common.opt: Add CTF and BTF debug info options.
13667 * btfout.c: New file.
13668 * ctfc.c: Likewise.
13669 * ctfc.h: Likewise.
13670 * ctfout.c: Likewise.
13671 * dwarf2ctf.c: Likewise.
13672 * dwarf2ctf.h: Likewise.
13673 * dwarf2cfi.c (dwarf2out_do_frame): Acknowledge CTF_DEBUG and
13675 * dwarf2out.c (dwarf2out_source_line): Likewise.
13676 (dwarf2out_finish): Skip emitting DWARF if CTF or BTF are to
13678 (debug_format_do_cu): New function.
13679 (dwarf2out_early_finish): Traverse DIEs and emit CTF/BTF for
13681 Include dwarf2ctf.c.
13682 * final.c (dwarf2_debug_info_emitted_p): Acknowledge DWARF-based debug
13684 * flag-types.h (enum debug_info_type): Add CTF_DEBUG and BTF_DEBUG.
13685 (CTF_DEBUG): New bitmask.
13686 (BTF_DEBUG): Likewise.
13687 (enum ctf_debug_info_levels): New enum.
13688 * gengtype.c (open_base_files): Handle ctfc.h.
13689 (main): Handle uint32_t type.
13690 * flags.h (btf_debuginfo_p): New definition.
13691 (dwarf_based_debuginfo_p): Likewise.
13692 * opts.c (debug_type_names): Add entries for CTF and BTF.
13693 (btf_debuginfo_p): New function.
13694 (dwarf_based_debuginfo_p): Likewise.
13695 (common_handle_option): Handle -gctfN and -gbtf options.
13696 (set_debug_level): Set CTF_DEBUG, BTF_DEBUG whenever appropriate.
13697 * toplev.c (process_options): Inform the user and ignore -gctfLEVEL if
13700 2021-06-28 Jose E. Marchesi <jose.marchesi@oracle.com>
13702 * dwarf2out.c (AT_class): Function is no longer static.
13703 (AT_int): Likewise.
13704 (AT_unsigned): Likewise.
13705 (AT_loc): Likewise.
13706 (get_AT): Likewise.
13707 (get_AT_string): Likewise.
13708 (get_AT_flag): Likewise.
13709 (get_AT_unsigned): Likewise.
13710 (get_AT_ref): Likewise.
13711 (new_die_raw): Likewise.
13712 (lookup_decl_die): Likewise.
13713 (base_type_die): Likewise.
13714 (add_name_attribute): Likewise.
13715 (add_AT_int): Likewise.
13716 (add_AT_unsigned): Likewise.
13717 (add_AT_loc): Likewise.
13718 (dw_get_die_tag): New function.
13719 (dw_get_die_child): Likewise.
13720 (dw_get_die_sib): Likewise.
13721 (struct dwarf_file_data): Move from here to dwarf2out.h
13722 (struct dw_attr_struct): Likewise.
13723 * dwarf2out.h: Analogous changes.
13725 2021-06-28 Martin Jambor <mjambor@suse.cz>
13728 * ipa-param-manipulation.h (class ipa_param_body_adjustments): New
13729 members m_dead_stmts and m_dead_ssas.
13730 * ipa-param-manipulation.c
13731 (ipa_param_body_adjustments::mark_dead_statements): New function.
13732 (ipa_param_body_adjustments::common_initialization): Call it on
13733 all removed but not split parameters.
13734 (ipa_param_body_adjustments::ipa_param_body_adjustments): Initialize
13736 (ipa_param_body_adjustments::modify_call_stmt): Remove arguments that
13738 * tree-inline.c (remap_gimple_stmt): Do not copy dead statements, reset
13739 dead debug statements.
13740 (copy_phis_for_bb): Do not copy dead PHI nodes.
13742 2021-06-28 Martin Jambor <mjambor@suse.cz>
13745 * symtab-clones.h (clone_info): Removed member param_adjustments.
13746 * ipa-param-manipulation.h: Adjust initial comment to reflect how we
13747 deal with pass-through splits now.
13748 (ipa_param_performed_split): Removed.
13749 (ipa_param_adjustments::modify_call): Adjusted parameters.
13750 (class ipa_param_body_adjustments): Adjusted parameters of
13751 register_replacement, modify_gimple_stmt and modify_call_stmt.
13752 (ipa_verify_edge_has_no_modifications): Declare.
13753 (ipa_edge_modifications_finalize): Declare.
13754 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Remove
13755 performed_splits processing, pas only edge to padjs->modify_call,
13756 check that call arguments were not modified if they should not have
13758 * cgraphclones.c (cgraph_node::create_clone): Do not copy performed
13760 * ipa-param-manipulation.c (struct pass_through_split_map): New type.
13761 (ipa_edge_modification_info): Likewise.
13762 (ipa_edge_modification_sum): Likewise.
13763 (ipa_edge_modifications): New edge summary.
13764 (ipa_verify_edge_has_no_modifications): New function.
13765 (transitive_split_p): Removed.
13766 (transitive_split_map): Likewise.
13767 (init_transitive_splits): Likewise.
13768 (ipa_param_adjustments::modify_call): Adjusted to use the new edge
13769 summary instead of performed_splits.
13770 (ipa_param_body_adjustments::register_replacement): Drop dummy
13771 parameter, set base_index of the created ipa_param_body_replacement.
13772 (phi_arg_will_live_p): New function.
13773 (ipa_param_body_adjustments::common_initialization): Do not create
13774 IPA_SRA dummy decls.
13775 (simple_tree_swap_info): Removed.
13776 (remap_split_decl_to_dummy): Likewise.
13777 (record_argument_state_1): New function.
13778 (record_argument_state): Likewise.
13779 (ipa_param_body_adjustments::modify_call_stmt): New parameter
13780 orig_stmt. Do not work with dummy decls, save necessary info about
13781 changes to ipa_edge_modifications.
13782 (ipa_param_body_adjustments::modify_gimple_stmt): New parameter
13783 orig_stmt, pass it to modify_call_stmt.
13784 (ipa_param_body_adjustments::modify_cfun_body): Adjust call to
13785 modify_gimple_stmt.
13786 (ipa_edge_modifications_finalize): New function.
13787 * tree-inline.c (remap_gimple_stmt): Pass original statement to
13788 modify_gimple_stmt.
13789 (copy_phis_for_bb): Do not copy dead PHI nodes.
13790 (expand_call_inline): Do not remap performed_splits.
13791 (update_clone_info): Likewise.
13792 * toplev.c: Include ipa-param-manipulation.h.
13793 (toplev::finalize): Call ipa_edge_modifications_finalize.
13795 2021-06-28 Andrew Pinski <apinski@marvell.com>
13797 * tree-ssa-phiopt.c (replace_phi_edge_with_variable): Duplicate range
13798 info if we're the only things setting the target PHI.
13799 (value_replacement): Don't duplicate range here.
13800 (minmax_replacement): Likewise.
13802 2021-06-28 Richard Biener <rguenther@suse.de>
13804 PR tree-optimization/101229
13805 * gimple-walk.c (gimple_walk_op): Handle PHIs.
13807 2021-06-28 Martin Liska <mliska@suse.cz>
13809 * config/v850/v850.c (construct_dispose_instruction): Allocate
13811 (construct_prepare_instruction): Likewise.
13813 2021-06-28 Martin Liska <mliska@suse.cz>
13815 * config/v850/v850.c (v850_option_override): Build default
13817 (v850_can_inline_p): New. Allow MASK_PROLOG_FUNCTION to be
13818 ignored for inlining.
13819 (TARGET_CAN_INLINE_P): New.
13821 2021-06-28 Richard Biener <rguenther@suse.de>
13823 PR tree-optimization/101207
13824 * tree-vect-slp.c (vect_optimize_slp): Do BB reduction
13825 permute eliding for load permutations properly.
13827 2021-06-28 Richard Biener <rguenther@suse.de>
13829 PR tree-optimization/101173
13830 * gimple-loop-interchange.cc
13831 (tree_loop_interchange::valid_data_dependences): Disallow outer
13832 loop dependence distance of zero.
13834 2021-06-28 liuhongt <hongtao.liu@intel.com>
13837 * config/i386/sse.md (*avx_cmp<mode>3_lt): New
13838 define_insn_and_split.
13839 (*avx_cmp<mode>3_ltint): Ditto.
13840 (*avx2_pcmp<mode>3_3): Ditto.
13841 (*avx2_pcmp<mode>3_4): Ditto.
13842 (*avx2_pcmp<mode>3_5): Ditto.
13844 2021-06-28 liuhongt <hongtao.liu@intel.com>
13846 * config/i386/i386-builtin.def (IX86_BUILTIN_BLENDVPD256,
13847 IX86_BUILTIN_BLENDVPS256, IX86_BUILTIN_PBLENDVB256,
13848 IX86_BUILTIN_BLENDVPD, IX86_BUILTIN_BLENDVPS,
13849 IX86_BUILTIN_PBLENDVB128): Replace icode with
13851 * config/i386/i386.c (ix86_gimple_fold_builtin): Fold blendv
13853 * config/i386/sse.md (*<sse4_1_avx2>_pblendvb_lt_subreg_not):
13854 New pre_reload splitter.
13856 2021-06-27 Andrew Pinski <apinski@marvell.com>
13858 PR middle-end/101230
13859 * fold-const.c (fold_ternary_loc): Check
13860 the return value of invert_tree_comparison.
13862 2021-06-27 David Edelsohn <dje.gcc@gmail.com>
13864 * config.gcc: Add SPDX License Identifier.
13865 (powerpc-ibm-aix789): Default to aix73.h.
13866 (powerpc-ibm-aix7.2.*.*): New stanza.
13867 * config/rs6000/aix72.h: Add SPDX License Identifier.
13868 * config/rs6000/aix73.h: New file.
13870 2021-06-26 Jason Merrill <jason@redhat.com>
13872 * except.c: #include "dwarf2.h" instead of "dwarf2out.h".
13874 2021-06-26 Andrew Pinski <apinski@marvell.com>
13876 * genmatch.c (lower_cond): Copy for_subst_vec
13877 for the simplify also.
13878 (lower): Swap the order for lower_for and lower_cond.
13880 2021-06-26 Andrew Pinski <apinski@marvell.com>
13882 * tree-ssa-phiopt.c (match_simplify_replacement): Reset
13883 flow senatitive info on the moved ssa set.
13885 2021-06-26 Andrew Pinski <apinski@marvell.com>
13887 * fold-const.c (fold_cond_expr_with_comparison):
13888 Exand arg0 into comp_code, arg00, and arg01.
13889 (fold_ternary_loc): Use invert_tree_comparison
13890 instead of fold_invert_truthvalue for the case
13891 where we have A CMP B ? C : A.
13893 2021-06-25 Martin Sebor <msebor@redhat.com>
13895 PR middle-end/101216
13896 * calls.c (maybe_warn_rdwr_sizes): Use the no_warning constant.
13898 2021-06-25 Jeff Law <jeffreyalaw@gmail.com>
13900 * config/h8300/h8300.c (select_cc_mode): Handle ASHIFTRT and LSHIFTRT.
13902 2021-06-25 Richard Biener <rguenther@suse.de>
13904 PR tree-optimization/101202
13905 * tree-vect-slp.c (vect_optimize_slp): Explicitely handle
13908 2021-06-25 Richard Biener <rguenther@suse.de>
13910 * tree-vect-slp-patterns.c (addsub_pattern::build): Copy
13911 STMT_VINFO_REDUC_DEF from the original representative.
13913 2021-06-25 Martin Sebor <msebor@redhat.com>
13915 * builtins.c (warn_string_no_nul): Replace uses of TREE_NO_WARNING,
13916 gimple_no_warning_p and gimple_set_no_warning with
13917 warning_suppressed_p, and suppress_warning.
13919 (maybe_warn_for_bound): Same.
13920 (warn_for_access): Same.
13921 (check_access): Same.
13922 (expand_builtin_strncmp): Same.
13923 (fold_builtin_varargs): Same.
13924 * calls.c (maybe_warn_nonstring_arg): Same.
13925 (maybe_warn_rdwr_sizes): Same.
13926 * cfgexpand.c (expand_call_stmt): Same.
13927 * cgraphunit.c (check_global_declaration): Same.
13928 * fold-const.c (fold_undefer_overflow_warnings): Same.
13929 (fold_truth_not_expr): Same.
13930 (fold_unary_loc): Same.
13931 (fold_checksum_tree): Same.
13932 * gimple-array-bounds.cc (array_bounds_checker::check_array_ref): Same.
13933 (array_bounds_checker::check_mem_ref): Same.
13934 (array_bounds_checker::check_addr_expr): Same.
13935 (array_bounds_checker::check_array_bounds): Same.
13936 * gimple-expr.c (copy_var_decl): Same.
13937 * gimple-fold.c (gimple_fold_builtin_strcpy): Same.
13938 (gimple_fold_builtin_strncat): Same.
13939 (gimple_fold_builtin_stxcpy_chk): Same.
13940 (gimple_fold_builtin_stpcpy): Same.
13941 (gimple_fold_builtin_sprintf): Same.
13942 (fold_stmt_1): Same.
13943 * gimple-ssa-isolate-paths.c (diag_returned_locals): Same.
13944 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
13945 * gimple-ssa-sprintf.c (handle_printf_call): Same.
13946 * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_store): Same.
13947 * gimple-ssa-warn-restrict.c (maybe_diag_overlap): Same.
13948 * gimple-ssa-warn-restrict.h: Adjust declarations.
13949 (maybe_diag_access_bounds): Replace uses of TREE_NO_WARNING,
13950 gimple_no_warning_p and gimple_set_no_warning with
13951 warning_suppressed_p, and suppress_warning.
13952 (check_call): Same.
13953 (check_bounds_or_overlap): Same.
13954 * gimple.c (gimple_build_call_from_tree): Same.
13955 * gimplify.c (gimplify_return_expr): Same.
13956 (gimplify_cond_expr): Same.
13957 (gimplify_modify_expr_complex_part): Same.
13958 (gimplify_modify_expr): Same.
13959 (gimple_push_cleanup): Same.
13960 (gimplify_expr): Same.
13961 * omp-expand.c (expand_omp_for_generic): Same.
13962 (expand_omp_taskloop_for_outer): Same.
13963 * omp-low.c (lower_rec_input_clauses): Same.
13964 (lower_lastprivate_clauses): Same.
13965 (lower_send_clauses): Same.
13966 (lower_omp_target): Same.
13967 * tree-cfg.c (pass_warn_function_return::execute): Same.
13968 * tree-complex.c (create_one_component_var): Same.
13969 * tree-inline.c (remap_gimple_op_r): Same.
13970 (copy_tree_body_r): Same.
13971 (declare_return_variable): Same.
13972 (expand_call_inline): Same.
13973 * tree-nested.c (lookup_field_for_decl): Same.
13974 * tree-sra.c (create_access_replacement): Same.
13975 (generate_subtree_copies): Same.
13976 * tree-ssa-ccp.c (pass_post_ipa_warn::execute): Same.
13977 * tree-ssa-forwprop.c (combine_cond_expr_cond): Same.
13978 * tree-ssa-loop-ch.c (ch_base::copy_headers): Same.
13979 * tree-ssa-loop-im.c (execute_sm): Same.
13980 * tree-ssa-phiopt.c (cond_store_replacement): Same.
13981 * tree-ssa-strlen.c (maybe_warn_overflow): Same.
13982 (handle_builtin_strcpy): Same.
13983 (maybe_diag_stxncpy_trunc): Same.
13984 (handle_builtin_stxncpy_strncat): Same.
13985 (handle_builtin_strcat): Same.
13986 * tree-ssa-uninit.c (get_no_uninit_warning): Same.
13987 (set_no_uninit_warning): Same.
13988 (uninit_undefined_value_p): Same.
13989 (warn_uninit): Same.
13990 (maybe_warn_operand): Same.
13991 * tree-vrp.c (compare_values_warnv): Same.
13992 * vr-values.c (vr_values::extract_range_for_var_from_comparison_expr): Same.
13993 (test_for_singularity): Same.
13994 * gimple.h (warning_suppressed_p): New function.
13995 (suppress_warning): Same.
13996 (copy_no_warning): Same.
13997 (gimple_set_block): Call gimple_set_location.
13998 (gimple_set_location): Call copy_warning.
14000 2021-06-25 Martin Sebor <msebor@redhat.com>
14002 * tree.h (warning_suppressed_at, copy_warning,
14003 warning_suppressed_p, suppress_warning): New functions.
14005 2021-06-25 Martin Sebor <msebor@redhat.com>
14007 * Makefile.in (OBJS-libcommon): Add diagnostic-spec.o.
14008 * gengtype.c (open_base_files): Add diagnostic-spec.h.
14009 * diagnostic-spec.c: New file.
14010 * diagnostic-spec.h: New file.
14011 * tree.h (no_warning, all_warnings, suppress_warning_at): New
14013 * warning-control.cc: New file.
14015 2021-06-25 liuhongt <hongtao.liu@intel.com>
14018 * config/i386/i386.c (x86_order_regs_for_local_alloc):
14021 2021-06-24 Andrew MacLeod <amacleod@redhat.com>
14023 PR tree-optimization/101189
14024 * gimple-range-fold.cc (fold_using_range::range_of_range_op): Pass
14025 LHS range of condition to postfold routine.
14026 (fold_using_range::postfold_gcond_edges): Only process the TRUE or
14027 FALSE edge if the LHS range supports it being taken.
14028 * gimple-range-fold.h (postfold_gcond_edges): Add range parameter.
14030 2021-06-24 Andrew MacLeod <amacleod@redhat.com>
14032 * value-relation.cc (equiv_oracle::dump): Do not dump NULL blocks.
14033 (relation_oracle::find_relation_block): Check correct bitmap.
14034 (relation_oracle::dump): Do not dump NULL blocks.
14036 2021-06-24 Andrew MacLeod <amacleod@redhat.com>
14038 * gimple-range-cache.cc (ranger_cache::propagate_cache): Call
14039 range_on_edge instead of manually calculating.
14041 2021-06-24 Andrew MacLeod <amacleod@redhat.com>
14043 * range-op.cc: Fix comment.
14045 2021-06-24 Uroš Bizjak <ubizjak@gmail.com>
14048 * config/i386/i386-expand.c (ix86_expand_sse_unpack):
14049 Handle V8QI and V4HI modes.
14050 * config/i386/mmx.md (sse4_1_<any_extend:code>v4qiv4hi2):
14052 (sse4_1_<any_extend:code>v4qiv4hi2): Ditto.
14053 (mmxpackmode): New mode attribute.
14054 (vec_pack_trunc_<mmxpackmode:mode>): New expander.
14055 (mmxunpackmode): New mode attribute.
14056 (vec_unpacks_lo_<mmxunpackmode:mode>): New expander.
14057 (vec_unpacks_hi_<mmxunpackmode:mode>): Ditto.
14058 (vec_unpacku_lo_<mmxunpackmode:mode>): Ditto.
14059 (vec_unpacku_hi_<mmxunpackmode:mode>): Ditto.
14060 * config/i386/i386.md (extsuffix): Move from ...
14061 * config/i386/sse.md: ... here.
14063 2021-06-24 Eric Botcazou <ebotcazou@adacore.com>
14065 * dwarf2out.c (dwarf2out_assembly_start): Emit .file 0 marker here..
14066 (dwarf2out_finish): ...instead of here.
14068 2021-06-24 Eric Botcazou <ebotcazou@adacore.com>
14070 * configure.ac (--gdwarf-5 option): Use objdump instead of readelf.
14071 (working --gdwarf-4/--gdwarf-5 for all sources): Likewise.
14072 (--gdwarf-4 not refusing generated .debug_line): Adjust for Windows.
14073 * configure: Regenerate.
14075 2021-06-24 Richard Biener <rguenther@suse.de>
14077 * config/i386/sse.md (vec_addsubv4df3, vec_addsubv2df3,
14078 vec_addsubv8sf3, vec_addsubv4sf3): Merge into ...
14079 (vec_addsub<mode>3): ... using a new addsub_cst mode attribute.
14081 2021-06-24 Richard Biener <rguenther@suse.de>
14083 * config/i386/sse.md (avx_addsubv4df3): Rename to
14085 (avx_addsubv8sf3): Rename to vec_addsubv8sf3.
14086 (sse3_addsubv2df3): Rename to vec_addsubv2df3.
14087 (sse3_addsubv4sf3): Rename to vec_addsubv4sf3.
14088 * config/i386/i386-builtin.def: Adjust.
14089 * internal-fn.def (VEC_ADDSUB): New internal optab fn.
14090 * optabs.def (vec_addsub_optab): New optab.
14091 * tree-vect-slp-patterns.c (class addsub_pattern): New.
14092 (slp_patterns): Add addsub_pattern.
14093 * tree-vect-slp.c (vect_optimize_slp): Disable propagation
14094 across CFN_VEC_ADDSUB.
14095 * tree-vectorizer.h (vect_pattern::vect_pattern): Make
14097 * doc/md.texi (vec_addsub<mode>3): Document.
14099 2021-06-24 Jakub Jelinek <jakub@redhat.com>
14101 PR middle-end/101170
14102 * df-scan.c (df_ref_record): For paradoxical big-endian SUBREGs
14103 where regno + subreg_regno_offset wraps around use 0 as starting
14106 2021-06-24 Jakub Jelinek <jakub@redhat.com>
14108 PR middle-end/101172
14109 * stor-layout.c (finish_bitfield_representative): If nextf has
14110 error_mark_node type, set repr type to error_mark_node too.
14112 2021-06-24 Ilya Leoshkevich <iii@linux.ibm.com>
14114 * config/s390/s390.c (s390_function_profiler): Ignore labelno
14116 * config/s390/s390.h (NO_PROFILE_COUNTERS): Define.
14118 2021-06-24 Richard Biener <rguenther@suse.de>
14120 * tree-vect-slp.c (vect_optimize_slp): Do not propagate
14121 across operations that have different semantics on different
14124 2021-06-24 Jakub Jelinek <jakub@redhat.com>
14126 * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): Document meaning for OpenMP.
14127 * gimplify.c (gimplify_scan_omp_clauses): For OpenMP map clauses
14128 with OMP_CLAUSE_MAP_IN_REDUCTION flag partially defer gimplification
14129 of non-decl OMP_CLAUSE_DECL. For OMP_CLAUSE_IN_REDUCTION on
14130 OMP_TARGET user outer_ctx instead of ctx for placeholders and
14131 initializer/combiner gimplification.
14132 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_MAP_IN_REDUCTION
14133 on target constructs.
14134 (lower_rec_input_clauses): Likewise.
14135 (lower_omp_target): Likewise.
14136 * omp-expand.c (expand_omp_target): Temporarily ignore nowait clause
14137 on target if in_reduction is present.
14139 2021-06-24 Kewen Lin <linkw@linux.ibm.com>
14141 * tree-predcom.c (class pcom_worker): New class.
14142 (release_chain): Renamed to...
14143 (pcom_worker::release_chain): ...this.
14144 (release_chains): Renamed to...
14145 (pcom_worker::release_chains): ...this.
14146 (aff_combination_dr_offset): Renamed to...
14147 (pcom_worker::aff_combination_dr_offset): ...this.
14148 (determine_offset): Renamed to...
14149 (pcom_worker::determine_offset): ...this.
14150 (class comp_ptrs): New class.
14151 (split_data_refs_to_components): Renamed to...
14152 (pcom_worker::split_data_refs_to_components): ...this,
14153 and update with class comp_ptrs.
14154 (suitable_component_p): Renamed to...
14155 (pcom_worker::suitable_component_p): ...this.
14156 (filter_suitable_components): Renamed to...
14157 (pcom_worker::filter_suitable_components): ...this.
14158 (valid_initializer_p): Renamed to...
14159 (pcom_worker::valid_initializer_p): ...this.
14160 (find_looparound_phi): Renamed to...
14161 (pcom_worker::find_looparound_phi): ...this.
14162 (add_looparound_copies): Renamed to...
14163 (pcom_worker::add_looparound_copies): ...this.
14164 (determine_roots_comp): Renamed to...
14165 (pcom_worker::determine_roots_comp): ...this.
14166 (determine_roots): Renamed to...
14167 (pcom_worker::determine_roots): ...this.
14168 (single_nonlooparound_use): Renamed to...
14169 (pcom_worker::single_nonlooparound_use): ...this.
14170 (remove_stmt): Renamed to...
14171 (pcom_worker::remove_stmt): ...this.
14172 (execute_pred_commoning_chain): Renamed to...
14173 (pcom_worker::execute_pred_commoning_chain): ...this.
14174 (execute_pred_commoning): Renamed to...
14175 (pcom_worker::execute_pred_commoning): ...this.
14176 (struct epcc_data): New member worker.
14177 (execute_pred_commoning_cbck): Call execute_pred_commoning
14178 with pcom_worker pointer.
14179 (find_use_stmt): Renamed to...
14180 (pcom_worker::find_use_stmt): ...this.
14181 (find_associative_operation_root): Renamed to...
14182 (pcom_worker::find_associative_operation_root): ...this.
14183 (find_common_use_stmt): Renamed to...
14184 (pcom_worker::find_common_use_stmt): ...this.
14185 (combinable_refs_p): Renamed to...
14186 (pcom_worker::combinable_refs_p): ...this.
14187 (reassociate_to_the_same_stmt): Renamed to...
14188 (pcom_worker::reassociate_to_the_same_stmt): ...this.
14189 (stmt_combining_refs): Renamed to...
14190 (pcom_worker::stmt_combining_refs): ...this.
14191 (combine_chains): Renamed to...
14192 (pcom_worker::combine_chains): ...this.
14193 (try_combine_chains): Renamed to...
14194 (pcom_worker::try_combine_chains): ...this.
14195 (prepare_initializers_chain): Renamed to...
14196 (pcom_worker::prepare_initializers_chain): ...this.
14197 (prepare_initializers): Renamed to...
14198 (pcom_worker::prepare_initializers): ...this.
14199 (prepare_finalizers_chain): Renamed to...
14200 (pcom_worker::prepare_finalizers_chain): ...this.
14201 (prepare_finalizers): Renamed to...
14202 (pcom_worker::prepare_finalizers): ...this.
14203 (tree_predictive_commoning_loop): Renamed to...
14204 (pcom_worker::tree_predictive_commoning_loop): ...this, adjust
14205 some calls and remove some cleanup code.
14206 (tree_predictive_commoning): Adjusted to use pcom_worker instance.
14207 (static variable looparound_phis): Remove.
14208 (static variable name_expansions): Remove.
14210 2021-06-24 Richard Biener <rguenther@suse.de>
14212 * tree-vect-slp.c (slpg_vertex): New struct.
14213 (vect_slp_build_vertices): Adjust.
14214 (vect_optimize_slp): Likewise. Maintain an outgoing permute
14215 and a materialized one.
14217 2021-06-24 Richard Biener <rguenther@suse.de>
14219 PR tree-optimization/101105
14220 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
14221 Only ignore steps when they are equal or scalar order is preserved.
14223 2021-06-24 liuhongt <hongtao.liu@intel.com>
14226 * config/i386/i386-expand.c (ix86_expand_vec_interleave):
14227 Adjust comments for ix86_expand_vecop_qihi2.
14228 (ix86_expand_vecmul_qihi): Renamed to ..
14229 (ix86_expand_vecop_qihi2): Adjust function prototype to
14230 support shift operation, add static to definition.
14231 (ix86_expand_vec_shift_qihi_constant): Add static to definition.
14232 (ix86_expand_vecop_qihi): Call ix86_expand_vecop_qihi2 and
14233 ix86_expand_vec_shift_qihi_constant.
14234 * config/i386/i386-protos.h (ix86_expand_vecmul_qihi): Deleted.
14235 (ix86_expand_vec_shift_qihi_constant): Deleted.
14236 * config/i386/sse.md (VI12_256_512_AVX512VL): New mode
14238 (mulv8qi3): Call ix86_expand_vecop_qihi directly, add
14239 condition TARGET_64BIT.
14240 (mul<mode>3): Ditto.
14241 (<insn><mode>3): Ditto.
14242 (vlshr<mode>3): Extend to support avx512 vlshr.
14243 (v<insn><mode>3): New expander for
14245 (v<insn>v8qi3): Ditto.
14246 (vashrv8hi3<mask_name>): Renamed to ..
14247 (vashr<mode>3): And extend to support V16QImode for avx512.
14248 (vashrv16qi3): Deleted.
14249 (vashrv2di3<mask_name>): Extend expander to support avx512
14252 2021-06-23 Dimitar Dimitrov <dimitar@dinux.eu>
14254 * doc/lto.texi (Design Overview): Update that slim objects are
14257 2021-06-23 Aaron Sawdey <acsawdey@linux.ibm.com>
14259 * config/rs6000/rs6000-cpus.def: Take OPTION_MASK_PCREL_OPT out
14260 of OTHER_POWER10_MASKS so it will not be enabled by default.
14262 2021-06-23 Richard Biener <rguenther@suse.de>
14263 Martin Jambor <mjambor@suse.cz>
14265 * tree-inline.c (setup_one_parameter): Set TREE_READONLY of the
14266 param replacement unconditionally. Adjust comment.
14268 2021-06-23 Andrew MacLeod <amacleod@redhat.com>
14270 * Makefile.in (OBJS): Add gimple-range-fold.o
14271 * gimple-range-fold.cc: New.
14272 * gimple-range-fold.h: New.
14273 * gimple-range-gori.cc (gimple_range_calc_op1): Move to here.
14274 (gimple_range_calc_op2): Ditto.
14275 * gimple-range-gori.h: Move prototypes to here.
14276 * gimple-range.cc: Adjust include files.
14277 (fur_source:fur_source): Relocate to gimple-range-fold.cc.
14278 (fur_source::get_operand): Ditto.
14279 (fur_source::get_phi_operand): Ditto.
14280 (fur_source::query_relation): Ditto.
14281 (fur_source::register_relation): Ditto.
14282 (class fur_edge): Ditto.
14283 (fur_edge::fur_edge): Ditto.
14284 (fur_edge::get_operand): Ditto.
14285 (fur_edge::get_phi_operand): Ditto.
14286 (fur_stmt::fur_stmt): Ditto.
14287 (fur_stmt::get_operand): Ditto.
14288 (fur_stmt::get_phi_operand): Ditto.
14289 (fur_stmt::query_relation): Ditto.
14290 (class fur_depend): Relocate to gimple-range-fold.h.
14291 (fur_depend::fur_depend): Relocate to gimple-range-fold.cc.
14292 (fur_depend::register_relation): Ditto.
14293 (fur_depend::register_relation): Ditto.
14294 (class fur_list): Ditto.
14295 (fur_list::fur_list): Ditto.
14296 (fur_list::get_operand): Ditto.
14297 (fur_list::get_phi_operand): Ditto.
14298 (fold_range): Ditto.
14299 (adjust_pointer_diff_expr): Ditto.
14300 (gimple_range_adjustment): Ditto.
14301 (gimple_range_base_of_assignment): Ditto.
14302 (gimple_range_operand1): Ditto.
14303 (gimple_range_operand2): Ditto.
14304 (gimple_range_calc_op1): Relocate to gimple-range-gori.cc.
14305 (gimple_range_calc_op2): Ditto.
14306 (fold_using_range::fold_stmt): Relocate to gimple-range-fold.cc.
14307 (fold_using_range::range_of_range_op): Ditto.
14308 (fold_using_range::range_of_address): Ditto.
14309 (fold_using_range::range_of_phi): Ditto.
14310 (fold_using_range::range_of_call): Ditto.
14311 (fold_using_range::range_of_builtin_ubsan_call): Ditto.
14312 (fold_using_range::range_of_builtin_call): Ditto.
14313 (fold_using_range::range_of_cond_expr): Ditto.
14314 (fold_using_range::range_of_ssa_name_with_loop_info): Ditto.
14315 (fold_using_range::relation_fold_and_or): Ditto.
14316 (fold_using_range::postfold_gcond_edges): Ditto.
14317 * gimple-range.h: Add gimple-range-fold.h to include files. Change
14318 GIMPLE_RANGE_STMT_H to GIMPLE_RANGE_H.
14319 (gimple_range_handler): Relocate to gimple-range-fold.h.
14320 (gimple_range_ssa_p): Ditto.
14321 (range_compatible_p): Ditto.
14322 (class fur_source): Ditto.
14323 (class fur_stmt): Ditto.
14324 (class fold_using_range): Ditto.
14325 (gimple_range_calc_op1): Relocate to gimple-range-gori.h
14326 (gimple_range_calc_op2): Ditto.
14328 2021-06-23 Andrew MacLeod <amacleod@redhat.com>
14330 PR tree-optimization/101148
14331 PR tree-optimization/101014
14332 * gimple-range-cache.cc (ranger_cache::ranger_cache): Adjust.
14333 (ranger_cache::~ranger_cache): Adjust.
14334 (ranger_cache::block_range): Check if propagation disallowed.
14335 (ranger_cache::propagate_cache): Disallow propagation if new value
14336 can't be stored properly.
14337 * gimple-range-cache.h (ranger_cache::m_propfail): New member.
14339 2021-06-23 Andrew MacLeod <amacleod@redhat.com>
14341 * gimple-range-cache.cc (class ssa_block_ranges): Adjust prototype.
14342 (sbr_vector::set_bb_range): Return true.
14343 (class sbr_sparse_bitmap): Adjust.
14344 (sbr_sparse_bitmap::set_bb_range): Return value.
14345 (block_range_cache::set_bb_range): Return value.
14346 (ranger_cache::propagate_cache): Use return value to print msg.
14347 * gimple-range-cache.h (class block_range_cache): Adjust.
14349 2021-06-23 Andrew MacLeod <amacleod@redhat.com>
14351 * gimple-range.cc (dump_bb): Use range_on_edge from the cache.
14353 2021-06-23 Jeff Law <jeffreyalaw@gmail.com>
14355 * config/h8300/logical.md (<code><mode>3<ccnz>): Use <cczn>
14356 so this pattern can be used for test/compare removal. Pass
14357 current insn to compute_logical_op_length and output_logical_op.
14358 * config/h8300/h8300.c (compute_logical_op_cc): Remove.
14359 (h8300_and_costs): Add argument to compute_logical_op_length.
14360 (output_logical_op): Add new argument. Use it to determine if the
14361 condition codes are used and adjust the output accordingly.
14362 (compute_logical_op_length): Add new argument and update length
14363 computations when condition codes are used.
14364 * config/h8300/h8300-protos.h (compute_logical_op_length): Update
14366 (output_logical_op): Likewise.
14368 2021-06-23 Uroš Bizjak <ubizjak@gmail.com>
14371 * config/i386/i386-expand.c (expand_vec_perm_pshufb):
14372 Handle 64bit modes for TARGET_XOP. Use indirect gen_* functions.
14373 * config/i386/mmx.md (mmx_ppermv64): New insn pattern.
14374 * config/i386/i386.md (unspec): Move UNSPEC_XOP_PERMUTE from ...
14375 * config/i386/sse.md (unspec): ... here.
14377 2021-06-23 Martin Liska <mliska@suse.cz>
14380 * optc-save-gen.awk: Put back arm_fp16_format to
14383 2021-06-23 Uroš Bizjak <ubizjak@gmail.com>
14386 * config/i386/i386.md (bsr_rex64): Add zero-flag setting RTX.
14389 (clz<mode>2): Update RTX pattern for additions.
14391 2021-06-23 Jakub Jelinek <jakub@redhat.com>
14393 PR middle-end/101167
14394 * omp-low.c (lower_omp_regimplify_p): Regimplify also PARM_DECLs
14395 and RESULT_DECLs that have DECL_HAS_VALUE_EXPR_P set.
14397 2021-06-22 Sergei Trofimovich <siarheit@google.com>
14399 * doc/rtl.texi: drop unbalanced parenthesis.
14401 2021-06-22 Richard Biener <rguenther@suse.de>
14403 PR middle-end/101156
14404 * gimplify.c (gimplify_expr): Remove premature incorrect
14407 2021-06-22 Jakub Jelinek <jakub@redhat.com>
14409 PR tree-optimization/101159
14410 * tree-vect-patterns.c (vect_recog_popcount_pattern): Fix some
14413 2021-06-22 Jakub Jelinek <jakub@redhat.com>
14415 PR middle-end/101160
14416 * function.c (assign_parms): For decl_result with TYPE_EMPTY_P type
14417 clear crtl->return_rtx instead of keeping it referencing a pseudo.
14419 2021-06-22 Jakub Jelinek <jakub@redhat.com>
14420 Andrew Pinski <apinski@marvell.com>
14422 PR tree-optimization/101162
14423 * fold-const.c (range_check_type): Handle OFFSET_TYPE like pointer
14426 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
14428 * range-op.cc (range_relational_tests): New.
14429 (range_op_tests): Call range_relational_tests.
14431 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
14433 * range-op.cc (operator_cast::lhs_op1_relation): New.
14434 (operator_identity::lhs_op1_relation): Mew.
14436 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
14438 * range-op.cc (operator_minus::op1_op2_relation_effect): New.
14440 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
14442 * range-op.cc (operator_plus::lhs_op1_relation): New.
14443 (operator_plus::lhs_op2_relation): New.
14445 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
14447 * gimple-range-cache.cc (ranger_cache::ranger_cache): Create a
14448 relation_oracle if dominators exist.
14449 (ranger_cache::~ranger_cache): Dispose of oracle.
14450 (ranger_cache::dump_bb): Dump oracle.
14451 * gimple-range.cc (fur_source::fur_source): New.
14452 (fur_source::get_operand): Use mmeber query.
14453 (fur_source::get_phi_operand): Use member_query.
14454 (fur_source::query_relation): New.
14455 (fur_source::register_dependency): Delete.
14456 (fur_source::register_relation): New.
14457 (fur_edge::fur_edge): Adjust.
14458 (fur_edge::get_phi_operand): Fix comment.
14459 (fur_edge::query): Delete.
14460 (fur_stmt::fur_stmt): Adjust.
14461 (fur_stmt::query): Delete.
14462 (fur_depend::fur_depend): Adjust.
14463 (fur_depend::register_relation): New.
14464 (fur_depend::register_relation): New.
14465 (fur_list::fur_list): Adjust.
14466 (fur_list::get_operand): Use member query.
14467 (fold_using_range::range_of_range_op): Process and query relations.
14468 (fold_using_range::range_of_address): Adjust dependency call.
14469 (fold_using_range::range_of_phi): Ditto.
14470 (gimple_ranger::gimple_ranger): New. Use ranger_ache oracle.
14471 (fold_using_range::relation_fold_and_or): New.
14472 (fold_using_range::postfold_gcond_edges): New.
14473 * gimple-range.h (class gimple_ranger): Adjust.
14474 (class fur_source): Adjust members.
14475 (class fur_stmt): Ditto.
14476 (class fold_using_range): Ditto.
14478 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
14480 * range-op.cc (range_operator::wi_fold): Apply relation effect.
14481 (range_operator::fold_range): Adjust and apply relation effect.
14482 (*::fold_range): Add relation parameters.
14483 (*::op1_range): Ditto.
14484 (*::op2_range): Ditto.
14485 (range_operator::lhs_op1_relation): New.
14486 (range_operator::lhs_op2_relation): New.
14487 (range_operator::op1_op2_relation): New.
14488 (range_operator::op1_op2_relation_effect): New.
14489 (relop_early_resolve): New.
14490 (operator_equal::op1_op2_relation): New.
14491 (operator_equal::fold_range): Call relop_early_resolve.
14492 (operator_not_equal::op1_op2_relation): New.
14493 (operator_not_equal::fold_range): Call relop_early_resolve.
14494 (operator_lt::op1_op2_relation): New.
14495 (operator_lt::fold_range): Call relop_early_resolve.
14496 (operator_le::op1_op2_relation): New.
14497 (operator_le::fold_range): Call relop_early_resolve.
14498 (operator_gt::op1_op2_relation): New.
14499 (operator_gt::fold_range): Call relop_early_resolve.
14500 (operator_ge::op1_op2_relation): New.
14501 (operator_ge::fold_range): Call relop_early_resolve.
14502 * range-op.h (class range_operator): Adjust parameters and methods.
14504 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
14506 * Makefile.in (OBJS): Add value-relation.o.
14507 * gimple-range.h: Adjust include files.
14508 * tree-data-ref.c: Adjust include file order.
14509 * value-query.cc (range_query::get_value_range): Default to no oracle.
14510 (range_query::query_relation): New.
14511 (range_query::query_relation): New.
14512 * value-query.h (class range_query): Adjust.
14513 * value-relation.cc: New.
14514 * value-relation.h: New.
14516 2021-06-22 Richard Biener <rguenther@suse.de>
14518 PR tree-optimization/101151
14519 * tree-ssa-sink.c (statement_sink_location): Expand irreducible
14522 2021-06-22 Jojo R <rjiejie@linux.alibaba.com>
14524 * config/riscv/riscv.c (thead_c906_tune_info): New.
14525 (riscv_tune_info_table): Use new tune.
14527 2021-06-22 Richard Biener <rguenther@suse.de>
14529 PR tree-optimization/101158
14530 * tree-vect-slp.c (vect_build_slp_tree_1): Move same operand
14531 checking after checking for matching operation.
14533 2021-06-22 Richard Biener <rguenther@suse.de>
14535 PR tree-optimization/101159
14536 * tree-vect-patterns.c (vect_recog_popcount_pattern): Add
14537 missing NULL vectype check.
14539 2021-06-22 Richard Biener <rguenther@suse.de>
14541 PR tree-optimization/101154
14542 * tree-vect-slp.c (vect_build_slp_tree_2): Fix out-of-bound access.
14544 2021-06-22 Jakub Jelinek <jakub@redhat.com>
14547 * config/i386/i386-protos.h (ix86_last_zero_store_uid): Declare.
14548 * config/i386/i386-expand.c (ix86_last_zero_store_uid): New variable.
14549 * config/i386/i386.c (ix86_expand_prologue): Clear it.
14550 * config/i386/i386.md (peephole2s for 1/2/4 stores of const0_rtx):
14551 Remove "" from match_operand. Emit new insns using emit_move_insn and
14552 set ix86_last_zero_store_uid to INSN_UID of the last store.
14553 Add peephole2s for 1/2/4 stores of const0_rtx following previous
14556 2021-06-22 Martin Liska <mliska@suse.cz>
14558 * auto-profile.c (AUTO_PROFILE_VERSION): Bump as string format
14561 2021-06-22 Martin Liska <mliska@suse.cz>
14563 * gcov-io.h: Remove padding entries.
14565 2021-06-22 liuhongt <hongtao.liu@intel.com>
14567 PR tree-optimization/97770
14568 * tree-vect-patterns.c (vect_recog_popcount_pattern):
14570 (vect_recog_func vect_vect_recog_func_ptrs): Add new pattern.
14572 2021-06-22 liuhongt <hongtao.liu@intel.com>
14575 * config/i386/i386-builtin.def (BDESC): Adjust builtin name.
14576 * config/i386/sse.md (<avx512>_expand<mode>_mask): Rename to ..
14577 (expand<mode>_mask): this ..
14578 (*expand<mode>_mask): New pre_reload splitter to transform
14579 v{,p}expand* to vmov* when mask is zero, all ones, or has all
14580 ones in it's lower part, otherwise still generate
14583 2021-06-22 liuhongt <hongtao.liu@intel.com>
14586 * config/i386/i386-expand.c
14587 (ix86_expand_special_args_builtin): Keep constm1_operand only
14588 if it satisfies insn's operand predicate.
14590 2021-06-21 Jason Merrill <jason@redhat.com>
14593 * df-scan.c (df_ref_record): Check that regno < endregno.
14594 * function.c (assign_parms, expand_function_end): Do nothing with a
14595 TYPE_EMPTY_P result.
14597 2021-06-21 Richard Biener <rguenther@suse.de>
14599 PR tree-optimization/101120
14600 * tree-vect-data-refs.c (bump_vector_ptr): Fold the
14602 * tree-vect-slp.c (vect_transform_slp_perm_load): Add
14603 DR chain DCE capability.
14604 * tree-vectorizer.h (vect_transform_slp_perm_load): Adjust.
14605 * tree-vect-stmts.c (vectorizable_load): Remove unused
14606 loads in the DR chain for SLP.
14608 2021-06-21 Jakub Jelinek <jakub@redhat.com>
14610 PR inline-asm/100785
14611 * gimplify.c (gimplify_asm_expr): Don't diagnose errors if
14612 output or input operands were already error_mark_node.
14613 * cfgexpand.c (expand_asm_stmt): If errors are emitted,
14614 remove all inputs, outputs and clobbers from the asm and
14615 set template to "".
14617 2021-06-21 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
14619 * config/arm/arm_neon.h (vceq_s8): Replace builtin with __a == __b.
14620 (vceq_s16): Likewise.
14621 (vceq_s32): Likewise.
14622 (vceq_u8): Likewise.
14623 (vceq_u16): Likewise.
14624 (vceq_u32): Likewise.
14625 (vceq_p8): Likewise.
14626 (vceqq_s8): Likewise.
14627 (vceqq_s16): Likewise.
14628 (vceqq_s32): Likewise.
14629 (vceqq_u8): Likewise.
14630 (vceqq_u16): Likewise.
14631 (vceqq_u32): Likewise.
14632 (vceqq_p8): Likewise.
14633 (vceq_f32): Gate __a == __b on __FAST_MATH__.
14634 (vceqq_f32): Likewise.
14635 (vceq_f16): Likewise.
14636 (vceqq_f16): Likewise.
14638 2021-06-21 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
14641 * config/arm/iterators.md (NEON_VACMP): Remove.
14642 * config/arm/neon.md (neon_vca<cmp_op><mode>): Use GLTE instead of GTGE
14644 (neon_vca<cmp_op><mode>_insn): Likewise.
14645 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Use NEON_VAGLTE instead of
14648 2021-06-21 Richard Biener <rguenther@suse.de>
14650 PR tree-optimization/101121
14651 * tree-vect-slp.c (vect_build_slp_tree_2): To not fail fatally
14652 when we just lack a stmt with the desired op when doing permutation.
14653 (vect_build_slp_tree): When caching a failed SLP build attempt
14654 assert that at least one lane is marked as not matching.
14656 2021-06-21 liuhongt <hongtao.liu@intel.com>
14659 * config/i386/i386.md: (*anddi_1): Disparage slightly the mask
14660 register alternative.
14661 (*and<mode>_1): Ditto.
14663 (*andn<mode>_1): Ditto.
14664 (*<code><mode>_1): Ditto.
14665 (*<code>qi_1): Ditto.
14666 (*one_cmpl<mode>2_1): Ditto.
14667 (*one_cmplsi2_1_zext): Ditto.
14668 (*one_cmplqi2_1): Ditto.
14669 * config/i386/i386.c (x86_order_regs_for_local_alloc): Change
14670 the order of mask registers to be before general registers.
14672 2021-06-21 Roger Sayle <roger@nextmovesoftware.com>
14675 * config/i386/i386.md: New define_peephole2s to shrink writing
14676 1, 2 or 4 consecutive zeros to memory when optimizing for size.
14678 2021-06-18 Jeff Law <jeffreyalaw@gmail.com>
14680 * config/h8300/h8300.c (h8300_select_cc_mode): Handle SYMBOL_REF.
14681 * config/h8300/logical.md (<code><mode>3 logcial expander): Generate
14682 more efficient code when the source can be trivially simplified.
14684 2021-06-18 Andrew MacLeod <amacleod@redhat.com>
14686 * gimple-range-cache.cc (ranger_cache::range_of_def): Calculate
14687 a range if global is not available.
14688 (ranger_cache::entry_range): Fallback to range_of_def.
14689 * gimple-range-cache.h (range_of_def): Adjust prototype.
14691 2021-06-18 Andrew MacLeod <amacleod@redhat.com>
14693 PR tree-optimization/101014
14694 * gimple-range-cache.cc (ranger_cache::ranger_cache): Remove poor
14696 (ranger_cache::~ranger_cache): Ditto.
14697 (ranger_cache::enable_new_values): Delete.
14698 (ranger_cache::push_poor_value): Delete.
14699 (ranger_cache::range_of_def): Remove poor value processing.
14700 (ranger_cache::entry_range): Ditto.
14701 (ranger_cache::fill_block_cache): Ditto.
14702 * gimple-range-cache.h (class ranger_cache): Remove poor value members.
14703 * gimple-range.cc (gimple_ranger::range_of_expr): Remove call.
14704 * gimple-range.h (class gimple_ranger): Adjust.
14706 2021-06-18 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
14709 * common/config/arm/arm-common.c (arm_canon_arch_option_1): New function
14710 derived from arm_canon_arch.
14711 (arm_canon_arch_option): Call it.
14712 (arm_canon_arch_multilib_option): New function.
14713 * config/arm/arm-cpus.in (IGNORE_FOR_MULTILIB): New fgroup.
14714 * config/arm/arm.h (arm_canon_arch_multilib_option): New prototype.
14715 (CANON_ARCH_MULTILIB_SPEC_FUNCTION): New macro.
14716 (MULTILIB_ARCH_CANONICAL_SPECS): New macro.
14717 (DRIVER_SELF_SPECS): Add MULTILIB_ARCH_CANONICAL_SPECS.
14718 * config/arm/arm.opt (mlibarch): New option.
14719 * config/arm/t-rmprofile (MULTILIB_MATCHES): For armv8*-m, replace use
14720 of march on RHS with mlibarch.
14722 2021-06-18 Marcel Vollweiler <marcel@codesourcery.com>
14724 * config.in: Regenerate.
14725 * config/gcn/gcn.c (print_operand_address): Fix for global_load assembler
14727 * configure: Regenerate.
14728 * configure.ac: Fix for global_load assembler functions.
14730 2021-06-18 Richard Biener <rguenther@suse.de>
14732 PR tree-optimization/101112
14733 * tree-vect-slp.c (vect_slp_linearize_chain): Fix condition
14734 to lookup a pattern stmt def.
14736 2021-06-18 Jakub Jelinek <jakub@redhat.com>
14738 PR middle-end/101062
14739 * stor-layout.c (finish_bitfield_layout): Don't add bitfield
14740 representatives in QUAL_UNION_TYPE.
14742 2021-06-18 Andrew Pinski <apinski@marvell.com>
14744 * tree-ssa-phiopt.c (replace_phi_edge_with_variable):
14745 Add counting of how many times it is done.
14746 (factor_out_conditional_conversion): Likewise.
14747 (match_simplify_replacement): Likewise.
14748 (value_replacement): Likewise.
14749 (spaceship_replacement): Likewise.
14750 (cond_store_replacement): Likewise.
14751 (cond_if_else_store_replacement_1): Likewise.
14752 (hoist_adjacent_loads): Likewise.
14754 2021-06-18 Andrew Pinski <apinski@marvell.com>
14756 * tree-cfg.c (verify_gimple_assign_unary): Reject point and offset
14757 types on NEGATE_EXPR, ABS_EXPR, BIT_NOT_EXPR, PAREN_EXPR and CNONJ_EXPR.
14758 (verify_gimple_assign_binary): Reject point and offset types on
14759 MULT_EXPR, MULT_HIGHPART_EXPR, TRUNC_DIV_EXPR, CEIL_DIV_EXPR,
14760 FLOOR_DIV_EXPR, ROUND_DIV_EXPR, TRUNC_MOD_EXPR, CEIL_MOD_EXPR,
14761 FLOOR_MOD_EXPR, ROUND_MOD_EXPR, RDIV_EXPR, and EXACT_DIV_EXPR.
14763 2021-06-18 Michael Meissner <meissner@linux.ibm.com>
14765 * config/rs6000/rs6000.c (rs6000_emit_minmax): Add support for ISA
14766 3.1 IEEE 128-bit floating point xsmaxcqp/xsmincqp instructions.
14767 * config/rs6000/rs6000.md (s<minmax><mode>3, IEEE128 iterator):
14770 2021-06-17 Aaron Sawdey <acsawdey@linux.ibm.com>
14772 * config/rs6000/genfusion.pl (gen_logical_addsubf): Add
14773 earlyclobber to alts 0/1.
14774 (gen_addadd): Add earlyclobber to alts 0/1.
14775 * config/rs6000/fusion.md: Regenerate file.
14777 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
14779 * cfgloopanal.c (get_loop_hot_path): Make path an auto_vec.
14781 2021-06-17 Andrew MacLeod <amacleod@redhat.com>
14783 * gimple-range-cache.cc: Comment cleanups.
14784 * gimple-range-gori.cc: Comment cleanups.
14785 * gimple-range.cc: Comment/spacing cleanups
14786 * value-range.h: Comment cleanups.
14788 2021-06-17 H.J. Lu <hjl.tools@gmail.com>
14791 * calls.c (expand_call): Replace PUSH_ARGS with
14792 targetm.calls.push_argument (0).
14793 (emit_library_call_value_1): Likewise.
14794 * defaults.h (PUSH_ARGS): Removed.
14795 (PUSH_ARGS_REVERSED): Replace PUSH_ARGS with
14796 targetm.calls.push_argument (0).
14797 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
14798 (emit_push_insn): Pass the number bytes to push to
14799 targetm.calls.push_argument and pass 0 if ARGS_ADDR is 0.
14800 * hooks.c (hook_bool_uint_true): New.
14801 * hooks.h (hook_bool_uint_true): Likewise.
14802 * rtlanal.c (nonzero_bits1): Replace PUSH_ARGS with
14803 targetm.calls.push_argument (0).
14804 * target.def (push_argument): Add a targetm.calls hook.
14805 * targhooks.c (default_push_argument): New.
14806 * targhooks.h (default_push_argument): Likewise.
14807 * config/bpf/bpf.h (PUSH_ARGS): Removed.
14808 * config/cr16/cr16.c (TARGET_PUSH_ARGUMENT): New.
14809 * config/cr16/cr16.h (PUSH_ARGS): Removed.
14810 * config/i386/i386.c (ix86_push_argument): New.
14811 (TARGET_PUSH_ARGUMENT): Likewise.
14812 * config/i386/i386.h (PUSH_ARGS): Removed.
14813 * config/m32c/m32c.c (TARGET_PUSH_ARGUMENT): New.
14814 * config/m32c/m32c.h (PUSH_ARGS): Removed.
14815 * config/nios2/nios2.h (PUSH_ARGS): Likewise.
14816 * config/pru/pru.h (PUSH_ARGS): Likewise.
14817 * doc/tm.texi.in: Remove PUSH_ARGS documentation. Add
14818 TARGET_PUSH_ARGUMENT hook.
14819 * doc/tm.texi: Regenerated.
14821 2021-06-17 Uroš Bizjak <ubizjak@gmail.com>
14824 * config/i386/i386-expand.c (expand_vector_set_var):
14825 Handle V2FS mode remapping. Pass TARGET_MMX_WITH_SSE to
14826 ix86_expand_vector_init_duplicate.
14827 (ix86_expand_vector_init_duplicate): Emit insv_1 for
14828 QImode for !TARGET_PARTIAL_REG_STALL.
14829 * config/i386/predicates.md (vec_setm_mmx_operand): New predicate.
14830 * config/i386/mmx.md (vec_setv2sf): Use vec_setm_mmx_operand
14831 as operand 2 predicate. Call ix86_expand_vector_set_var
14832 for non-constant index operand.
14833 (vec_setv2si): Ditto.
14834 (vec_setv4hi): Ditto.
14835 (vec_setv8qi): ditto.
14837 2021-06-17 Aldy Hernandez <aldyh@redhat.com>
14839 PR tree-optimization/100790
14840 * gimple-range.cc (range_of_builtin_call): Cleanup clz and ctz
14843 2021-06-17 Martin Liska <mliska@suse.cz>
14845 * doc/invoke.texi: Use consistently -O1 instead of -O.
14847 2021-06-17 Martin Liska <mliska@suse.cz>
14849 * gcov-io.h: Update documentation entry about string format.
14851 2021-06-17 Marius Hillenbrand <mhillen@linux.ibm.com>
14854 * config/s390/vecintrin.h (vec_doublee): Fix to use
14855 __builtin_s390_vflls.
14856 (vec_floate): Fix to use __builtin_s390_vflrd.
14858 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
14860 * dominance.c (get_dominated_to_depth): Return auto_vec<basic_block>.
14861 * dominance.h (get_dominated_to_depth): Likewise.
14862 (get_all_dominated_blocks): Likewise.
14863 * cfgcleanup.c (delete_unreachable_blocks): Adjust.
14864 * gcse.c (hoist_code): Likewise.
14865 * tree-cfg.c (remove_edge_and_dominated_blocks): Likewise.
14866 * tree-parloops.c (oacc_entry_exit_ok): Likewise.
14867 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
14868 * tree-ssa-phiprop.c (pass_phiprop::execute): Likewise.
14870 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
14872 * dominance.c (get_dominated_by_region): Return auto_vec<basic_block>.
14873 * dominance.h (get_dominated_by_region): Likewise.
14874 * tree-cfg.c (gimple_duplicate_sese_region): Adjust.
14875 (gimple_duplicate_sese_tail): Likewise.
14876 (move_sese_region_to_fn): Likewise.
14878 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
14880 * dominance.c (get_dominated_by): Return auto_vec<basic_block>.
14881 * dominance.h (get_dominated_by): Likewise.
14882 * auto-profile.c (afdo_find_equiv_class): Adjust.
14883 * cfgloopmanip.c (duplicate_loop_to_header_edge): Likewise.
14884 * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
14885 * tree-cfg.c (test_linear_chain): Likewise.
14886 (test_diamond): Likewise.
14888 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
14890 * cfgloop.h (get_loop_hot_path): Return auto_vec<basic_block>.
14891 * cfgloopanal.c (get_loop_hot_path): Likewise.
14892 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise.
14894 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
14896 * cgraph.c (cgraph_node::collect_callers): Return
14897 auto_vec<cgraph_edge *>.
14898 * cgraph.h (cgraph_node::collect_callers): Likewise.
14899 * ipa-cp.c (create_specialized_node): Adjust.
14900 (decide_about_value): Likewise.
14901 (decide_whether_version_node): Likewise.
14902 * ipa-sra.c (process_isra_node_results): Likewise.
14904 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
14906 * vec.h (vl_ptr>::using_auto_storage): Handle null m_vec.
14907 (auto_vec<T, 0>::auto_vec): Define move constructor, and delete copy
14909 (auto_vec<T, 0>::operator=): Define move assignment and delete copy
14912 2021-06-17 Aldy Hernandez <aldyh@redhat.com>
14914 * gimple-range.cc (debug_seed_ranger): New.
14915 (dump_ranger): New.
14916 (debug_ranger): New.
14918 2021-06-17 Richard Biener <rguenther@suse.de>
14920 PR tree-optimization/54400
14921 * tree-vectorizer.h (enum slp_instance_kind): Add
14922 slp_inst_kind_bb_reduc.
14923 (reduction_fn_for_scalar_code): Declare.
14924 * tree-vect-data-refs.c (vect_slp_analyze_instance_dependence):
14925 Check SLP_INSTANCE_KIND instead of looking at the
14927 (vect_slp_analyze_instance_alignment): Likewise.
14928 * tree-vect-loop.c (reduction_fn_for_scalar_code): Export.
14929 * tree-vect-slp.c (vect_slp_linearize_chain): Split out
14930 chain linearization from vect_build_slp_tree_2 and generalize
14931 for the use of BB reduction vectorization.
14932 (vect_build_slp_tree_2): Adjust accordingly.
14933 (vect_optimize_slp): Elide permutes at the root of BB reduction
14935 (vectorizable_bb_reduc_epilogue): New function.
14936 (vect_slp_prune_covered_roots): Likewise.
14937 (vect_slp_analyze_operations): Use them.
14938 (vect_slp_check_for_constructors): Recognize associatable
14939 chains for BB reduction vectorization.
14940 (vectorize_slp_instance_root_stmt): Generate code for the
14941 BB reduction epilogue.
14943 2021-06-17 Andrew MacLeod <amacleod@redhat.com>
14945 * gimple-range-gori.cc (gori_compute::has_edge_range_p): Check with
14947 (gori_compute::may_recompute_p): New.
14948 (gori_compute::outgoing_edge_range_p): Perform recomputations.
14949 * gimple-range-gori.h (class gori_compute): Add prototype.
14951 2021-06-17 Andrew MacLeod <amacleod@redhat.com>
14953 * gimple-range-cache.cc (ranger_cache::range_on_edge): Always return
14954 true when a range can be calculated.
14955 * gimple-range.cc (gimple_ranger::dump_bb): Check has_edge_range_p.
14957 2021-06-16 Martin Sebor <msebor@redhat.com>
14959 * doc/invoke.texi (-Wmismatched-dealloc, -Wmismatched-new-delete):
14960 Correct documented defaults.
14962 2021-06-16 Andrew MacLeod <amacleod@redhat.com>
14964 * gimple-range-cache.cc (ranger_cache::ranger_cache): Initialize
14965 m_new_value_p directly.
14967 2021-06-16 Uroš Bizjak <ubizjak@gmail.com>
14970 * config/i386/i386-expand.c (expand_vec_perm_2perm_pblendv):
14971 Handle 64bit modes for TARGET_SSE4_1.
14972 (expand_vec_perm_pshufb2): Handle 64bit modes for TARGET_SSSE3.
14973 (expand_vec_perm_even_odd_pack): Handle V4HI mode.
14974 (expand_vec_perm_even_odd_1) <case E_V4HImode>: Expand via
14975 expand_vec_perm_pshufb2 for TARGET_SSSE3 and via
14976 expand_vec_perm_even_odd_pack for TARGET_SSE4_1.
14977 * config/i386/mmx.md (mmx_packusdw): New insn pattern.
14979 2021-06-16 Jonathan Wright <jonathan.wright@arm.com>
14981 * config/aarch64/aarch64-simd.md (aarch64_<sur><addsub>hn<mode>):
14982 Change to an expander that emits the correct instruction
14983 depending on endianness.
14984 (aarch64_<sur><addsub>hn<mode>_insn_le): Define.
14985 (aarch64_<sur><addsub>hn<mode>_insn_be): Define.
14987 2021-06-16 Jonathan Wright <jonathan.wright@arm.com>
14989 * config/aarch64/aarch64-simd-builtins.def: Split generator
14990 for aarch64_<su>qmovn builtins into scalar and vector
14992 * config/aarch64/aarch64-simd.md (aarch64_<su>qmovn<mode>_insn_le):
14994 (aarch64_<su>qmovn<mode>_insn_be): Define.
14995 (aarch64_<su>qmovn<mode>): Split into scalar and vector
14996 variants. Change vector variant to an expander that emits the
14997 correct instruction depending on endianness.
14999 2021-06-16 Jonathan Wright <jonathan.wright@arm.com>
15001 * config/aarch64/aarch64-simd-builtins.def: Split generator
15002 for aarch64_sqmovun builtins into scalar and vector variants.
15003 * config/aarch64/aarch64-simd.md (aarch64_sqmovun<mode>):
15004 Split into scalar and vector variants. Change vector variant
15005 to an expander that emits the correct instruction depending
15007 (aarch64_sqmovun<mode>_insn_le): Define.
15008 (aarch64_sqmovun<mode>_insn_be): Define.
15010 2021-06-16 Jonathan Wright <jonathan.wright@arm.com>
15012 * config/aarch64/aarch64-simd.md (aarch64_xtn<mode>_insn_le):
15013 Define - modeling zero-high-half semantics.
15014 (aarch64_xtn<mode>): Change to an expander that emits the
15015 appropriate instruction depending on endianness.
15016 (aarch64_xtn<mode>_insn_be): Define - modeling zero-high-half
15018 (aarch64_xtn2<mode>_le): Rename to...
15019 (aarch64_xtn2<mode>_insn_le): This.
15020 (aarch64_xtn2<mode>_be): Rename to...
15021 (aarch64_xtn2<mode>_insn_be): This.
15022 (vec_pack_trunc_<mode>): Emit truncation instruction instead
15024 * config/aarch64/iterators.md (Vnarrowd): Add Vnarrowd mode
15025 attribute iterator.
15027 2021-06-16 Martin Jambor <mjambor@suse.cz>
15029 PR tree-optimization/100453
15030 * tree-sra.c (create_access): Disqualify any const candidates
15031 which are written to.
15032 (sra_modify_expr): Do not store sub-replacements back to a const base.
15033 (handle_unscalarized_data_in_subtree): Likewise.
15034 (sra_modify_assign): Likewise. Earlier, use TREE_READONLy test
15035 instead of constant_decl_p.
15037 2021-06-16 Jakub Jelinek <jakub@redhat.com>
15039 PR middle-end/101062
15040 * stor-layout.c (finish_bitfield_representative): For fields in unions
15041 assume nextf is always NULL.
15042 (finish_bitfield_layout): Compute bit field representatives also in
15043 unions, but handle it as if each bitfield was the only field in the
15046 2021-06-16 Richard Biener <rguenther@suse.de>
15048 PR tree-optimization/101088
15049 * tree-ssa-loop-im.c (sm_seq_valid_bb): Only look for
15050 supported refs on edges. Do not assert same ref but
15051 different kind stores are unsuported but mark them so.
15052 (hoist_memory_references): Only look for supported refs
15055 2021-06-16 Roger Sayle <roger@nextmovesoftware.com>
15057 PR rtl-optimization/46235
15058 * config/i386/i386.md: New define_split for bt followed by cmov.
15059 (*bt<mode>_setcqi): New define_insn_and_split for bt followed by setc.
15060 (*bt<mode>_setncqi): New define_insn_and_split for bt then setnc.
15061 (*bt<mode>_setnc<mode>): New define_insn_and_split for bt followed
15062 by setnc with zero extension.
15064 2021-06-16 Richard Biener <rguenther@suse.de>
15066 PR tree-optimization/101083
15067 * tree-vect-slp.c (vect_slp_build_two_operator_nodes): Get
15068 vectype as argument.
15069 (vect_build_slp_tree_2): Adjust.
15071 2021-06-15 Martin Sebor <msebor@redhat.com>
15073 PR middle-end/100876
15074 * builtins.c: (gimple_call_return_array): Account for size_t
15075 mangling as either unsigned int or unsigned long
15077 2021-06-15 Jeff Law <jeffreyalaw@gmail.com>
15079 * compare-elim.c (try_eliminate_compare): Run DCE to clean things
15080 up before eliminating comparisons.
15082 2021-06-15 Aldy Hernandez <aldyh@redhat.com>
15084 * range-op.cc (operator_bitwise_or::wi_fold): Make sure
15085 nonzero|X is nonzero.
15086 (range_op_bitwise_and_tests): Add tests for above.
15088 2021-06-15 Carl Love <cel@us.ibm.com>
15091 * config/rs6000/rs6000-builtin.def (VCMPEQUT): Fix the ICODE for the
15093 (VRLQ, VSLQ, VSRQ, VSRAQ): Remove unused BU_P10_OVERLOAD_2
15096 2021-06-15 Tobias Burnus <tobias@codesourcery.com>
15099 * gimplify.c (enum gimplify_defaultmap_kind): Add GDMK_SCALAR_TARGET.
15100 (struct gimplify_omp_ctx): Extend defaultmap array by one.
15101 (new_omp_context): Init defaultmap[GDMK_SCALAR_TARGET].
15102 (omp_notice_variable): Update type classification for Fortran.
15103 (gimplify_scan_omp_clauses): Update calls for new argument; handle
15104 GDMK_SCALAR_TARGET; for Fortran, GDMK_POINTER avoid GOVD_MAP_0LEN_ARRAY.
15105 * langhooks-def.h (lhd_omp_scalar_p): Add 'ptr_ok' argument.
15106 * langhooks.c (lhd_omp_scalar_p): Likewise.
15107 (LANG_HOOKS_OMP_ALLOCATABLE_P, LANG_HOOKS_OMP_SCALAR_TARGET_P): New.
15108 (LANG_HOOKS_DECLS): Add them.
15109 * langhooks.h (struct lang_hooks_for_decls): Add new hooks, update
15110 omp_scalar_p pointer type to include the new bool argument.
15112 2021-06-15 David Malcolm <dmalcolm@redhat.com>
15114 * doc/analyzer.texi
15115 (Special Functions for Debugging the Analyzer): Add
15116 __analyzer_dump_capacity.
15118 2021-06-15 Jakub Jelinek <jakub@redhat.com>
15121 * expr.c (expand_expr_real_2) <case VEC_PACK_FIX_TRUNC_EXPR,
15122 case VEC_PACK_TRUNC_EXPR>: Clear subtarget when changing mode.
15124 2021-06-15 Richard Biener <rguenther@suse.de>
15126 * cfgloopanal.c (mark_irreducible_loops): Use a dominance
15127 check to identify loop latches.
15128 * cfgloop.c (verify_loop_structure): Likewise.
15129 * loop-init.c (apply_loop_flags): Allow marked irreducible
15130 regions even with multiple latches.
15131 * predict.c (rebuild_frequencies): Simplify.
15133 2021-06-15 Richard Biener <rguenther@suse.de>
15135 * tree-ssa-threadupdate.c
15136 (jump_thread_path_registry::mark_threaded_blocks): Assert we
15137 have marked irreducible regions.
15139 2021-06-14 Martin Sebor <msebor@redhat.com>
15142 * builtins.c (gimple_call_return_array): Check for attribute fn spec.
15143 Handle calls to placement new.
15144 (ndecl_dealloc_argno): Avoid placement delete.
15146 2021-06-14 Peter Bergner <bergner@linux.ibm.com>
15149 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_mma_builtin): Use
15150 create_tmp_reg_or_ssa_name().
15152 2021-06-14 Andrew MacLeod <amacleod@redhat.com>
15154 * gimple-range-cache.cc (ranger_cache::ranger_cache): Adjust.
15155 (ranger_cache::enable_new_values): Set to specified value and
15156 return the old value.
15157 (ranger_cache::disable_new_values): Delete.
15158 (ranger_cache::fill_block_cache): Disable non 1st order derived
15160 * gimple-range-cache.h (ranger_cache): Adjust prototypes.
15161 * gimple-range.cc (gimple_ranger::range_of_expr): Adjust.
15163 2021-06-14 Uroš Bizjak <ubizjak@gmail.com>
15166 * config/i386/i386-expand.c (ix86_vectorize_vec_perm_const):
15167 Return true early when testing with V2HImode.
15168 * config/i386/mmx.md (*punpckwd): Split to sse2_pshuflw_1.
15170 2021-06-14 Christophe Lyon <christophe.lyon@linaro.org>
15172 * config/arm/mve.md (mve_vec_unpack<US>_lo_<mode>): New pattern.
15173 (mve_vec_unpack<US>_hi_<mode>): New pattern.
15174 (@mve_vec_pack_trunc_lo_<mode>): New pattern.
15175 (mve_vmovntq_<supf><mode>): Prefix with '@'.
15176 * config/arm/neon.md (vec_unpack<US>_hi_<mode>): Move to
15178 (vec_unpack<US>_lo_<mode>): Likewise.
15179 (vec_pack_trunc_<mode>): Rename to
15180 neon_quad_vec_pack_trunc_<mode>.
15181 * config/arm/vec-common.md (vec_unpack<US>_hi_<mode>): New
15183 (vec_unpack<US>_lo_<mode>): New.
15184 (vec_pack_trunc_<mode>): New.
15186 2021-06-14 Richard Biener <rguenther@suse.de>
15188 PR tree-optimization/100934
15189 * tree-ssa-dom.c (pass_dominator::execute): Properly
15190 mark irreducible regions.
15192 2021-06-14 Martin Liska <mliska@suse.cz>
15194 * doc/invoke.texi: Put r{...} on the same line as @item.
15196 2021-06-14 Martin Liska <mliska@suse.cz>
15198 * doc/invoke.texi: Add missing newline.
15200 2021-06-14 Martin Liska <mliska@suse.cz>
15202 * doc/invoke.texi: Remove '+' charasters.
15204 2021-06-14 Claudiu Zissulescu <claziss@synopsys.com>
15206 * config.gcc (arc): Add support for with_cpu option.
15207 * config/arc/arc.h (OPTION_DEFAULT_SPECS): Add fpu.
15209 2021-06-14 Richard Biener <rguenther@suse.de>
15211 PR tree-optimization/101031
15212 * tree-ssa-strlen.c (maybe_invalidate): Increment max_size
15213 instead of size when accounting for a possibly string
15216 2021-06-14 Martin Liska <mliska@suse.cz>
15218 * gimple-ssa-evrp.c (pointer_equiv_analyzer::~pointer_equiv_analyzer): Use delete[].
15220 2021-06-14 Aldy Hernandez <aldyh@redhat.com>
15222 * value-query.cc (gimple_range_global): Call get_range_global
15223 if called after inlining.
15225 2021-06-13 Uroš Bizjak <ubizjak@gmail.com>
15228 * config/i386/i386-expand.c (expand_vec_perm_pshufb):
15229 Emit constant permutation insn directly from here.
15231 2021-06-13 Trevor Saunders <tbsaunde@tbsaunde.org>
15233 * attribs.c (find_attribute_namespace): Iterate over vec<> with
15235 * auto-profile.c (afdo_find_equiv_class): Likewise.
15236 * gcc.c (do_specs_vec): Likewise.
15237 (do_spec_1): Likewise.
15238 (driver::set_up_specs): Likewise.
15239 * gimple-loop-jam.c (any_access_function_variant_p): Likewise.
15240 * gimple-ssa-store-merging.c (compatible_load_p): Likewise.
15241 (imm_store_chain_info::try_coalesce_bswap): Likewise.
15242 (imm_store_chain_info::coalesce_immediate_stores): Likewise.
15243 (get_location_for_stmts): Likewise.
15244 * graphite-poly.c (print_iteration_domains): Likewise.
15245 (free_poly_bb): Likewise.
15246 (remove_gbbs_in_scop): Likewise.
15247 (free_scop): Likewise.
15248 (dump_gbb_cases): Likewise.
15249 (dump_gbb_conditions): Likewise.
15250 (print_pdrs): Likewise.
15251 (print_scop): Likewise.
15252 * ifcvt.c (cond_move_process_if_block): Likewise.
15253 * lower-subreg.c (decompose_multiword_subregs): Likewise.
15254 * regcprop.c (pass_cprop_hardreg::execute): Likewise.
15255 * sanopt.c (sanitize_rewrite_addressable_params): Likewise.
15256 * sel-sched-dump.c (dump_insn_vector): Likewise.
15257 * store-motion.c (store_ops_ok): Likewise.
15258 (store_killed_in_insn): Likewise.
15259 * timevar.c (timer::named_items::print): Likewise.
15260 * tree-cfgcleanup.c (cleanup_control_flow_pre): Likewise.
15261 (cleanup_tree_cfg_noloop): Likewise.
15262 * tree-data-ref.c (dump_data_references): Likewise.
15263 (print_dir_vectors): Likewise.
15264 (print_dist_vectors): Likewise.
15265 (dump_data_dependence_relations): Likewise.
15266 (dump_dist_dir_vectors): Likewise.
15267 (dump_ddrs): Likewise.
15268 (create_runtime_alias_checks): Likewise.
15269 (free_subscripts): Likewise.
15270 (save_dist_v): Likewise.
15271 (save_dir_v): Likewise.
15272 (invariant_access_functions): Likewise.
15273 (same_access_functions): Likewise.
15274 (access_functions_are_affine_or_constant_p): Likewise.
15275 (find_data_references_in_stmt): Likewise.
15276 (graphite_find_data_references_in_stmt): Likewise.
15277 (free_dependence_relations): Likewise.
15278 (free_data_refs): Likewise.
15279 * tree-inline.c (copy_debug_stmts): Likewise.
15280 * tree-into-ssa.c (dump_currdefs): Likewise.
15281 (rewrite_update_phi_arguments): Likewise.
15282 * tree-ssa-propagate.c (clean_up_loop_closed_phi): Likewise.
15283 * tree-vect-data-refs.c (vect_analyze_possibly_independent_ddr):
15285 (vect_slp_analyze_node_dependences): Likewise.
15286 (vect_slp_analyze_instance_dependence): Likewise.
15287 (vect_record_base_alignments): Likewise.
15288 (vect_get_peeling_costs_all_drs): Likewise.
15289 (vect_peeling_supportable): Likewise.
15290 * tree-vectorizer.c (vec_info::~vec_info): Likewise.
15291 (vec_info::free_stmt_vec_infos): Likewise.
15293 2021-06-13 Jeff Law <jeffreyalaw@gmail.com>
15295 * config/h8300/logical.md (<code>qi3_1<cczn>): New pattern.
15296 (andqi3_1<cczn>): Removed.
15297 (<ors>qi3_1): Do not split for IOR/XOR a single bit.
15298 (H8/SX bit logicals): Split out from other patterns.
15299 * config/h8300/multiply.md (mulqihi3_const<cczn>): Renamed from
15300 mulqihi3_const_clobber_flags.
15301 (mulqihi3<cczn>, mulhisi3_const<cczn>, mulhisi3<cczn>): Similarly
15303 2021-06-13 H.J. Lu <hjl.tools@gmail.com>
15306 * config/i386/i386.c (ix86_expand_prologue): Set red_zone_used
15307 to true if red zone is used.
15308 (ix86_output_indirect_jmp): Replace ix86_red_zone_size with
15309 ix86_red_zone_used.
15310 * config/i386/i386.h (machine_function): Add red_zone_used.
15311 (ix86_red_zone_size): Removed.
15312 (ix86_red_zone_used): New.
15313 * config/i386/i386.md (peephole2 patterns): Replace
15314 ix86_red_zone_size with ix86_red_zone_used.
15316 2021-06-12 Jason Merrill <jason@redhat.com>
15318 * doc/extend.texi (unused variable attribute): Applies to
15319 structure fields as well.
15321 2021-06-12 Eugene Rozenfeld <erozen@microsoft.com>
15323 * auto-profile.c (read_profile): fix a typo in an error string
15325 2021-06-11 Thomas Schwinge <thomas@codesourcery.com>
15327 * tree-pretty-print.h (dump_omp_clauses): Add 'bool = true'
15329 * tree-pretty-print.c (dump_omp_clauses): Update.
15330 (dump_generic_node) <OMP_CLAUSE>: Use it.
15332 2021-06-11 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
15335 * config/arm/arm_mve.h (__arm_vld1q): Change __ARM_mve_coerce(p0,
15336 int8_t const *) to __ARM_mve_coerce1(p0, int8_t *) in the argument for
15337 the polymorphic variants matching code.
15338 (__arm_vld1q_z): Likewise.
15339 (__arm_vld2q): Likewise.
15340 (__arm_vld4q): Likewise.
15341 (__arm_vldrbq_gather_offset): Likewise.
15342 (__arm_vldrbq_gather_offset_z): Likewise.
15344 2021-06-11 Roger Sayle <roger@nextmovesoftware.com>
15346 PR tree-optimization/96392
15347 * fold-const.h (tree_expr_maybe_real_minus_zero_p): Fix prototype.
15349 2021-06-11 Roger Sayle <roger@nextmovesoftware.com>
15351 PR tree-optimization/96392
15352 * fold-const.c (fold_real_zero_addition_p): Take both arguments
15353 of the addition or subtraction, not just the zero. Use this
15354 other argument in tests for signaling NaNs and signed zeros.
15355 (tree_expr_maybe_real_minus_zero_p): New predicate.
15356 * fold-const.h (fold_real_zero_addition_p): Update prototype.
15357 (tree_expr_maybe_real_minus_zero_p): New function prototype.
15358 * match.pd: Update calls to fold_real_zero_addition_p.
15359 Replace HONOR_NANS with tree_expr_maybe_nan_p.
15360 Replace HONOR_SIGNED_ZEROS with tree_expr_maybe_real_minus_zero_p.
15361 Replace HONOR_SNANS with tree_expr_maybe_signaling_nan_p.
15362 * tree-ssa-reassoc.c (eliminate_using_constants): Update
15363 call to fold_real_zero_addition_p.
15365 2021-06-11 Richard Biener <rguenther@suse.de>
15367 PR tree-optimization/101025
15368 * tree-ssa-loop-im.c (sm_seq_valid_bb): Make sure to process
15369 all refs that require dependence checking.
15371 2021-06-11 Richard Biener <rguenther@suse.de>
15373 PR tree-optimization/101028
15374 * tree-vect-slp.c (vect_build_slp_tree_2): When SLP
15375 reassoc discovery fails fatally, mark appropriate lanes
15378 2021-06-11 Richard Biener <rguenther@suse.de>
15380 PR tree-optimization/101026
15381 * tree-vect-slp.c (vect_build_slp_tree_2): Make sure we
15382 have a representative for the associated chain nodes.
15384 2021-06-11 Jakub Jelinek <jakub@redhat.com>
15386 PR rtl-optimization/101008
15387 * simplify-rtx.c (relational_result): New function.
15388 (simplify_logical_relational_operation,
15389 simplify_relational_operation): Use it.
15391 2021-06-11 Jakub Jelinek <jakub@redhat.com>
15394 * config/i386/sse.md (*vec_concat<mode>_0_1): Require TARGET_SSE2.
15396 2021-06-11 Uroš Bizjak <ubizjak@gmail.com>
15399 * config/i386/i386-expand.c (expand_vec_perm_pshufb): Return
15400 false if the permutation can be implemented with constant
15401 permutation instruction in wider mode.
15402 (canonicalize_vector_int_perm): Move above expand_vec_perm_pshufb.
15403 Handle V8QImode and V4HImode.
15405 2021-06-11 Martin Liska <mliska@suse.cz>
15407 PR gcov-profile/100788
15408 * common.opt: Add new option.
15409 * coverage.c (coverage_begin_function): Emit warning instead on
15410 the internal compiler error.
15411 * doc/invoke.texi: Document the option.
15412 * toplev.c (process_options): Enable it by default.
15414 2021-06-11 Richard Biener <rguenther@suse.de>
15416 PR middle-end/101009
15417 * tree-data-ref.c (build_classic_dist_vector_1): Make sure
15418 to set *init_b to true when we encounter a constant equal
15420 (compute_affine_dependence): Also dump the actual DR_REF.
15422 2021-06-10 Aldy Hernandez <aldyh@redhat.com>
15424 PR tree-optimization/100984
15425 * gimple-ssa-evrp.c (ssa_equiv_stack): Use auto_vec for
15426 replacements table.
15427 (ssa_equiv_stack::~ssa_equiv_stack): Remove.
15429 2021-06-11 Kewen Lin <linkw@linux.ibm.com>
15431 * config/rs6000/rs6000.md
15432 (floatsi<SFDF:mode>2_lfiwax_<QHI:mode>_mem_zext): New
15433 define_insn_and_split.
15435 2021-06-11 Richard Biener <rguenther@suse.de>
15437 * tree-vect-slp.c (vect_build_slp_tree_2): Use stablesort
15438 to sort operands of the associative chain.
15440 2021-06-11 Richard Biener <rguenther@suse.de>
15442 * system.h (gcc_stablesort_r): Declare.
15443 * sort.cc (gcc_sort_r): Support stable sort.
15444 (gcc_stablesort_r): Define.
15445 * vec.h (vec<>::stablesort): Add.
15447 2021-06-10 Uroš Bizjak <ubizjak@gmail.com>
15450 * config/i386/i386-expand.c (ix86_split_mmx_punpck):
15451 Handle V2SF mode. Emit SHUFPS to fixup unpack-high for V2SF mode.
15452 (expand_vec_perm_blend): Handle 64bit modes for TARGET_SSE4_1.
15453 (expand_vec_perm_pshufb): Handle 64bit modes for TARGET_SSSE3.
15454 (expand_vec_perm_pblendv): Handle 64bit modes for TARGET_SSE4_1.
15455 (expand_vec_perm_interleave2): Handle 64bit modes.
15456 (expand_vec_perm_even_odd_pack): Handle V8QI mode.
15457 (expand_vec_perm_even_odd_1): Ditto.
15458 (ix86_vectorize_vec_perm_const): Ditto.
15459 * config/i386/i386.md (UNSPEC_PSHUFB): Move from ...
15460 * config/i386/sse.md: ... here.
15461 * config/i386/mmx.md (*vec_interleave_lowv2sf):
15462 New insn_and_split pattern.
15463 (*vec_interleave_highv2sf): Ditto.
15464 (mmx_pshufbv8qi3): New insn pattern.
15465 (*mmx_pblendw): Ditto.
15467 2021-06-10 Peter Bergner <bergner@linux.ibm.com>
15469 * config/rs6000/rs6000-builtin.def (build_pair): New built-in.
15470 (build_acc): Likewise.
15471 * config/rs6000/rs6000-call.c (mma_expand_builtin): Swap assemble
15472 source operands in little-endian mode.
15473 (rs6000_gimple_fold_mma_builtin): Handle VSX_BUILTIN_BUILD_PAIR.
15474 (mma_init_builtins): Likewise.
15475 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Handle endianness
15476 ordering for the MMA assemble and build source operands.
15477 * doc/extend.texi (__builtin_vsx_build_acc, __builtin_mma_build_pair):
15479 (__builtin_mma_assemble_acc, __builtin_mma_assemble_pair): Remove
15482 2021-06-10 Jeff Law <jeffreyalaw@gmail.com>
15484 * config/h8300/h8300.c (select_cc_mode): Handle MEM. Use
15486 * config/h8300/extensions.md: Replace _clobber_flags patterns
15489 2021-06-10 Robin Dapp <rdapp@linux.ibm.com>
15491 * config/s390/vector.md (vcond_mask_<mode><mode>): Change to
15492 (vcond_mask_<mode><tointvec>): this.
15494 2021-06-10 Andrew Stubbs <ams@codesourcery.com>
15495 Thomas Schwinge <thomas@codesourcery.com>
15497 * omp-builtins.def (BUILT_IN_GOACC_ENTER_EXIT_DATA): Split into...
15498 (BUILT_IN_GOACC_ENTER_DATA, BUILT_IN_GOACC_EXIT_DATA): ... these.
15499 * gimple.h (enum gf_mask): Split
15500 'GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA' into
15501 'GF_OMP_TARGET_KIND_OACC_ENTER_DATA' and
15502 'GF_OMP_TARGET_KIND_OACC_EXIT_DATA'.
15503 (is_gimple_omp_oacc): Update.
15504 * gimple-pretty-print.c (dump_gimple_omp_target): Likewise.
15505 * gimplify.c (gimplify_omp_target_update): Likewise.
15506 * omp-expand.c (expand_omp_target, build_omp_regions_1)
15507 (omp_make_gimple_edges): Likewise.
15508 * omp-low.c (check_omp_nesting_restrictions, lower_omp_target):
15511 2021-06-10 Aldy Hernandez <aldyh@redhat.com>
15513 * value-query.cc (value_query::value_on_edge): Rename name to
15515 (range_query::range_on_edge): Same.
15516 (range_query::value_of_expr): Same.
15517 (range_query::value_on_edge): Same.
15518 * value-query.h (class value_query): Same.
15519 (class range_query): Same.
15521 2021-06-10 Richard Biener <rguenther@suse.de>
15523 PR tree-optimization/101003
15524 * tree-vect-slp.c (vect_build_slp_tree_2): Appropriately
15525 use the pattern stmt defs when linearizing a chain.
15527 2021-06-10 Jakub Jelinek <jakub@redhat.com>
15530 * ifcvt.c (noce_get_alt_condition, noce_try_abs): Use
15531 prev_nonnote_nondebug_insn instead of prev_nonnote_insn.
15533 2021-06-10 Clement Chigot <clement.chigot@atos.net>
15535 * config/rs6000/aix71.h (ASM_CPU_SPEC): Add Power10 directive.
15536 * config/rs6000/aix72.h (ASM_CPU_SPEC): Likewise.
15538 2021-06-09 Andrew Pinski <apinski@marvell.com>
15540 PR tree-optimization/100925
15541 * match.pd (a ? CST1 : CST2): Limit transformations
15542 that would produce a negative to integeral types only.
15543 Change !POINTER_TYPE_P to INTEGRAL_TYPE_P also.
15545 2021-06-09 Jeff Law <jeffreyalaw@gmail.com>
15548 2021-06-09 Jeff Law <jeffreyalaw@gmail.com>
15550 * doc/tm.texi: Correctly update.
15552 2021-06-09 Jeff Law <jeffreyalaw@gmail.com>
15554 * doc/tm.texi: Correctly update.
15556 2021-06-09 H.J. Lu <hjl.tools@gmail.com>
15559 * doc/tm.texi.in (Trampolines): Add a missing blank line.
15561 2021-06-09 Paul Eggert <eggert@cs.ucla.edu>
15564 * doc/invoke.texi (Code Gen Options); Document that -fno-trampolines
15565 and -ftrampolines work only with Ada.
15566 * doc/tm.texi.in (Trampolines): Likewise.
15567 * doc/tm.texi: Regenerated.
15569 2021-06-09 Carl Love <cel@us.ibm.com>
15571 * config/rs6000/altivec.h (vec_signextll, vec_signexti, vec_signextq):
15572 Add define for new builtins.
15573 * config/rs6000/altivec.md(altivec_vreveti2): Add define_expand.
15574 * config/rs6000/rs6000-builtin.def (VSIGNEXTI, VSIGNEXTLL): Add
15575 overloaded builtin definitions.
15576 (VSIGNEXTSB2W, VSIGNEXTSH2W, VSIGNEXTSB2D, VSIGNEXTSH2D,VSIGNEXTSW2D,
15577 VSIGNEXTSD2Q): Add builtin expansions.
15578 (SIGNEXT): Add P10 overload definition.
15579 * config/rs6000/rs6000-call.c (P9V_BUILTIN_VEC_VSIGNEXTI, P9V_BUILTIN_VEC_VSIGNEXTLL,
15580 P10_BUILTIN_VEC_SIGNEXT): Add overloaded argument definitions.
15581 * config/rs6000/vsx.md (vsx_sign_extend_v2di_v1ti): Add define_insn.
15582 (vsignextend_v2di_v1ti, vsignextend_qi_<mode>, vsignextend_hi_<mode>,
15583 vsignextend_si_v2di)[VIlong]: Add define_expand.
15584 Make define_insn vsx_sign_extend_si_v2di visible.
15585 * doc/extend.texi: Add documentation for the vec_signexti,
15586 vec_signextll builtins and vec_signextq.
15588 2021-06-09 Carl Love <cel@us.ibm.com>
15590 * config/rs6000/rs6000.c (__fixkfti, __fixunskfti, __floattikf,
15591 __floatuntikf): Names changed to __fixkfti_sw, __fixunskfti_sw,
15592 __floattikf_sw, __floatuntikf_sw respectively.
15593 * config/rs6000/rs6000.md (floatti<mode>2, floatunsti<mode>2,
15594 fix_trunc<mode>ti2, fixuns_trunc<mode>ti2): Add
15595 define_insn for mode IEEE 128.
15597 2021-06-09 Carl Love <cel@us.ibm.com>
15599 * config/rs6000/altivec.md (altivec_vslq, altivec_vsrq):
15600 Rename to altivec_vslq_<mode>, altivec_vsrq_<mode>, mode VEC_TI.
15601 * config/rs6000/vector.md (VEC_TI): Was named VSX_TI in vsx.md.
15602 (vashlv1ti3): Change to vashl<mode>3, mode VEC_TI.
15603 (vlshrv1ti3): Change to vlshr<mode>3, mode VEC_TI.
15604 * config/rs6000/vsx.md (VSX_TI): Remove define_mode_iterator. Update
15605 uses of VSX_TI to VEC_TI.
15607 2021-06-09 Carl Love <cel@us.ibm.com>
15609 * config/rs6000/dfp.md (floattitd2, fixtdti2): New define_insns.
15611 2021-06-09 Carl Love <cel@us.ibm.com>
15613 * config/rs6000/altivec.h (vec_dive, vec_mod): Add define for new
15615 * config/rs6000/altivec.md (UNSPEC_VMULEUD, UNSPEC_VMULESD,
15616 UNSPEC_VMULOUD, UNSPEC_VMULOSD): New unspecs.
15617 (altivec_eqv1ti, altivec_gtv1ti, altivec_gtuv1ti, altivec_vmuleud,
15618 altivec_vmuloud, altivec_vmulesd, altivec_vmulosd, altivec_vrlq,
15619 altivec_vrlqmi, altivec_vrlqmi_inst, altivec_vrlqnm,
15620 altivec_vrlqnm_inst, altivec_vslq, altivec_vsrq, altivec_vsraq,
15621 altivec_vcmpequt_p, altivec_vcmpgtst_p, altivec_vcmpgtut_p): New
15623 (vec_widen_umult_even_v2di, vec_widen_smult_even_v2di,
15624 vec_widen_umult_odd_v2di, vec_widen_smult_odd_v2di, altivec_vrlqmi,
15625 altivec_vrlqnm): New define_expands.
15626 * config/rs6000/rs6000-builtin.def (VCMPEQUT_P, VCMPGTST_P,
15627 VCMPGTUT_P): Add macro expansions.
15628 (BU_P10V_AV_P): Add builtin predicate definition.
15629 (VCMPGTUT, VCMPGTST, VCMPEQUT, CMPNET, CMPGE_1TI,
15630 CMPGE_U1TI, CMPLE_1TI, CMPLE_U1TI, VNOR_V1TI_UNS, VNOR_V1TI, VCMPNET_P,
15631 VCMPAET_P, VMULEUD, VMULESD, VMULOUD, VMULOSD, VRLQ,
15632 VSLQ, VSRQ, VSRAQ, VRLQNM, DIV_V1TI, UDIV_V1TI, DIVES_V1TI, DIVEU_V1TI,
15633 MODS_V1TI, MODU_V1TI, VRLQMI): New macro expansions.
15634 (VRLQ, VSLQ, VSRQ, VSRAQ, DIVE, MOD): New overload expansions.
15635 * config/rs6000/rs6000-call.c (P10_BUILTIN_VCMPEQUT,
15636 P10V_BUILTIN_CMPGE_1TI, P10V_BUILTIN_CMPGE_U1TI,
15637 P10V_BUILTIN_VCMPGTUT, P10V_BUILTIN_VCMPGTST,
15638 P10V_BUILTIN_CMPLE_1TI, P10V_BUILTIN_VCMPLE_U1TI,
15639 P10V_BUILTIN_DIV_V1TI, P10V_BUILTIN_UDIV_V1TI,
15640 P10V_BUILTIN_VMULESD, P10V_BUILTIN_VMULEUD,
15641 P10V_BUILTIN_VMULOSD, P10V_BUILTIN_VMULOUD,
15642 P10V_BUILTIN_VNOR_V1TI, P10V_BUILTIN_VNOR_V1TI_UNS,
15643 P10V_BUILTIN_VRLQ, P10V_BUILTIN_VRLQMI,
15644 P10V_BUILTIN_VRLQNM, P10V_BUILTIN_VSLQ,
15645 P10V_BUILTIN_VSRQ, P10V_BUILTIN_VSRAQ,
15646 P10V_BUILTIN_VCMPGTUT_P, P10V_BUILTIN_VCMPGTST_P,
15647 P10V_BUILTIN_VCMPEQUT_P, P10V_BUILTIN_VCMPGTUT_P,
15648 P10V_BUILTIN_VCMPGTST_P, P10V_BUILTIN_CMPNET,
15649 P10V_BUILTIN_VCMPNET_P, P10V_BUILTIN_VCMPAET_P,
15650 P10V_BUILTIN_DIVES_V1TI, P10V_BUILTIN_MODS_V1TI,
15651 P10V_BUILTIN_MODU_V1TI):
15652 New overloaded definitions.
15653 (rs6000_gimple_fold_builtin) [P10V_BUILTIN_VCMPEQUT,
15654 P10V_BUILTIN_CMPNET, P10V_BUILTIN_CMPGE_1TI,
15655 P10V_BUILTIN_CMPGE_U1TI, P10V_BUILTIN_VCMPGTUT,
15656 P10V_BUILTIN_VCMPGTST, P10V_BUILTIN_CMPLE_1TI,
15657 P10V_BUILTIN_CMPLE_U1TI]: New case statements.
15658 (rs6000_init_builtins) [bool_V1TI_type_node, int_ftype_int_v1ti_v1ti]:
15660 (altivec_init_builtins): New E_V1TImode case statement.
15661 (builtin_function_type)[P10_BUILTIN_128BIT_VMULEUD,
15662 P10_BUILTIN_128BIT_VMULOUD, P10_BUILTIN_128BIT_DIVEU_V1TI,
15663 P10_BUILTIN_128BIT_MODU_V1TI, P10_BUILTIN_CMPGE_U1TI,
15664 P10_BUILTIN_VCMPGTUT, P10_BUILTIN_VCMPEQUT]: New case statements.
15665 * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute) [E_TImode,
15666 E_V1TImode]: New case statements.
15667 * config/rs6000/rs6000.h (rs6000_builtin_type_index): New enum
15668 value RS6000_BTI_bool_V1TI.
15669 * config/rs6000/vector.md (vector_gtv1ti,vector_nltv1ti,
15670 vector_gtuv1ti, vector_nltuv1ti, vector_ngtv1ti, vector_ngtuv1ti,
15671 vector_eq_v1ti_p, vector_ne_v1ti_p, vector_ae_v1ti_p,
15672 vector_gt_v1ti_p, vector_gtu_v1ti_p, vrotlv1ti3, vashlv1ti3,
15673 vlshrv1ti3, vashrv1ti3): New define_expands.
15674 * config/rs6000/vsx.md (UNSPEC_VSX_DIVSQ, UNSPEC_VSX_DIVUQ,
15675 UNSPEC_VSX_DIVESQ, UNSPEC_VSX_DIVEUQ, UNSPEC_VSX_MODSQ,
15676 UNSPEC_VSX_MODUQ): New unspecs.
15677 (mulv2di3, vsx_div_v1ti, vsx_udiv_v1ti, vsx_dives_v1ti,
15678 vsx_diveu_v1ti, vsx_mods_v1ti, vsx_modu_v1ti, xxswapd_v1ti): New
15680 (vcmpnet): New define_expand.
15681 * doc/extend.texi: Add documentation for the new builtins vec_rl,
15682 vec_rlmi, vec_rlnm, vec_sl, vec_sr, vec_sra, vec_mule, vec_mulo,
15683 vec_div, vec_dive, vec_mod, vec_cmpeq, vec_cmpne, vec_cmpgt, vec_cmplt,
15684 vec_cmpge, vec_cmple, vec_all_eq, vec_all_ne, vec_all_gt, vec_all_lt,
15685 vec_all_ge, vec_all_le, vec_any_eq, vec_any_ne, vec_any_gt, vec_any_lt,
15686 vec_any_ge, vec_any_le.
15688 2021-06-09 Carl Love <cel@us.ibm.com>
15690 * config/rs6000/altivec.md (altivec_vrl<VI_char>mi): Fix
15691 bug in argument generation.
15693 2021-06-09 Christophe Lyon <christophe.lyon@linaro.org>
15695 * config/arm/iterators.md (<supf>): Remove VCLZQ_U, VCLZQ_S.
15697 * config/arm/mve.md (mve_vclzq_<supf><mode>): Add '@' prefix,
15698 remove <supf> iterator.
15699 (mve_vclzq_u<mode>): New.
15700 * config/arm/neon.md (clz<mode>2): Rename to neon_vclz<mode>.
15701 (neon_vclz<mode): Move to ...
15702 * config/arm/unspecs.md (VCLZQ_U, VCLZQ_S): Remove.
15703 * config/arm/vec-common.md: ... here. Add support for MVE.
15705 2021-06-09 Christophe Lyon <christophe.lyon@linaro.org>
15707 * config/arm/mve.md (mve_vhaddq_<supf><mode>): Prefix with '@'.
15708 (@mve_vrhaddq_<supf><mode): Likewise.
15709 * config/arm/neon.md (neon_v<r>hadd<sup><mode>): Likewise.
15710 * config/arm/vec-common.md (avg<mode>3_floor, uavg<mode>3_floor)
15711 (avg<mode>3_ceil", uavg<mode>3_ceil): New patterns.
15713 2021-06-09 imba-tjd <109224573@qq.com>
15715 * doc/invoke.texi: Fix typo.
15717 2021-06-09 Roger Sayle <roger@nextmovesoftware.com>
15719 PR middle-end/53267
15720 * fold-const-call.c (fold_const_call_sss) [CASE_CFN_FMOD]:
15721 Support evaluation of fmod/fmodf/fmodl at compile-time.
15723 2021-06-09 Richard Biener <rguenther@suse.de>
15725 PR tree-optimization/100981
15726 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
15727 gimple_get_lhs to also handle calls.
15728 * tree-vect-slp-patterns.c (complex_pattern::build): Transfer
15731 2021-06-09 Richard Biener <rguenther@suse.de>
15733 PR tree-optimization/97832
15734 * tree-vectorizer.h (_slp_tree::failed): New.
15735 * tree-vect-slp.c (_slp_tree::_slp_tree): Initialize
15737 (_slp_tree::~_slp_tree): Free failed.
15738 (vect_build_slp_tree): Retain failed nodes and record
15739 matches in them, copying that back out when running
15740 into a cached fail. Dump start and end of discovery.
15741 (dt_sort_cmp): New.
15742 (vect_build_slp_tree_2): Handle associatable chains
15743 together doing more aggressive operand swapping.
15745 2021-06-09 H.J. Lu <hjl.tools@gmail.com>
15748 * config.gcc (gcc_cv_initfini_array): Set to yes for Linux and
15750 * doc/install.texi: Require glibc 2.1 and binutils 2.12 for
15751 Linux and GNU targets.
15753 2021-06-09 Richard Biener <rguenther@suse.de>
15755 * tree-vect-stmts.c (vect_is_simple_use): Always get dt
15758 2021-06-09 Claudiu Zissulescu <claziss@synopsys.com>
15760 * config/arc/arc.md (loop_end): Change it to
15761 define_insn_and_split.
15763 2021-06-09 Claudiu Zissulescu <claziss@synopsys.com>
15765 * config/arc/arc.md (maddhisi4): Use VMAC2H instruction.
15766 (machi): New pattern.
15767 (umaddhisi4): Use VMAC2HU instruction.
15768 (umachi): New pattern.
15770 2021-06-09 Claudiu Zissulescu <claziss@synopsys.com>
15772 * config/arc/arc-protos.h (arc_split_move_p): New prototype.
15773 * config/arc/arc.c (arc_split_move_p): New function.
15774 (arc_split_move): Clean up.
15775 * config/arc/arc.md (movdi_insn): Clean up, use arc_split_move_p.
15776 (movdf_insn): Likewise.
15777 * config/arc/simdext.md (mov<VWH>_insn): Likewise.
15779 2021-06-09 Uroš Bizjak <ubizjak@gmail.com>
15782 * config/i386/i386.c (print_operand_address_as): Rename "no_rip"
15783 argument to "raw". Do not emit segment overrides when "raw" is true.
15785 2021-06-09 Martin Liska <mliska@suse.cz>
15787 * doc/gcov.texi: Create a proper JSON files.
15788 * doc/invoke.texi: Remove dots in order to make it a valid
15791 2021-06-09 Xionghu Luo <luoxhu@linux.ibm.com>
15793 * config/rs6000/rs6000-p8swap.c (pattern_is_rotate64): New.
15794 (insn_is_load_p): Use pattern_is_rotate64.
15795 (insn_is_swap_p): Likewise.
15796 (quad_aligned_load_p): Likewise.
15797 (const_load_sequence_p): Likewise.
15798 (replace_swapped_aligned_load): Likewise.
15799 (recombine_lvx_pattern): Likewise.
15800 (recombine_stvx_pattern): Likewise.
15802 2021-06-09 Andrew MacLeod <amacleod@redhat.com>
15804 * gimple-range-gori.cc (gori_compute::outgoing_edge_range_p): Use a
15805 fur_stmt source record.
15806 * gimple-range.cc (fur_source::get_operand): Generic range query.
15807 (fur_source::get_phi_operand): New.
15808 (fur_source::register_dependency): New.
15809 (fur_source::query): New.
15810 (class fur_edge): New. Edge source for operands.
15811 (fur_edge::fur_edge): New.
15812 (fur_edge::get_operand): New.
15813 (fur_edge::get_phi_operand): New.
15814 (fur_edge::query): New.
15815 (fur_stmt::fur_stmt): New.
15816 (fur_stmt::get_operand): New.
15817 (fur_stmt::get_phi_operand): New.
15818 (fur_stmt::query): New.
15819 (class fur_depend): New. Statement source and process dependencies.
15820 (fur_depend::fur_depend): New.
15821 (fur_depend::register_dependency): New.
15822 (class fur_list): New. List source for operands.
15823 (fur_list::fur_list): New.
15824 (fur_list::get_operand): New.
15825 (fur_list::get_phi_operand): New.
15826 (fold_range): New. Instantiate appropriate fur_source class and fold.
15827 (fold_using_range::range_of_range_op): Use new API.
15828 (fold_using_range::range_of_address): Ditto.
15829 (fold_using_range::range_of_phi): Ditto.
15830 (imple_ranger::fold_range_internal): Use fur_depend class.
15831 (fold_using_range::range_of_ssa_name_with_loop_info): Use new API.
15832 * gimple-range.h (class fur_source): Now a base class.
15833 (class fur_stmt): New.
15834 (fold_range): New prototypes.
15835 (fur_source::fur_source): Delete.
15837 2021-06-08 Andrew Pinski <apinski@marvell.com>
15839 PR tree-optimization/25290
15840 * tree-ssa-phiopt.c (xor_replacement): Delete.
15841 (tree_ssa_phiopt_worker): Delete use of xor_replacement.
15842 (match_simplify_replacement): Allow one cheap preparation
15843 statement that can be moved to before the if.
15845 2021-06-08 Pat Haugen <pthaugen@linux.ibm.com>
15847 * config/rs6000/power10.md (power10-fused-load, power10-fused-store,
15848 power10-fused_alu, power10-fused-vec, power10-fused-branch): New.
15850 2021-06-08 Jeff Law <jeffreyalaw@gmail.com>
15852 * config/h8300/logical.md (andqi3_1): Move BCLR case into define_insn_and_split.
15853 Create length attribute on define_insn_and_split. Only split for cases which we
15855 (andqi3_1<cczn>): Renamed from andqi3_1_clobber_flags. Only handle AND here and
15856 fix length computation.
15857 (b<code><mode>msx): Combine QImode and HImode H8/SX patterns using iterator.
15859 2021-06-08 Richard Biener <rguenther@suse.de>
15861 PR tree-optimization/100923
15862 * tree-ssa-sccvn.c (valueize_refs_1): Take a pointer to
15863 the operand vector to be valueized.
15864 (valueize_refs): Likewise.
15865 (valueize_shared_reference_ops_from_ref): Adjust.
15866 (valueize_shared_reference_ops_from_call): Likewise.
15867 (vn_reference_lookup_3): Likewise.
15868 (vn_reference_lookup_pieces): Likewise. Re-valueize
15869 with honoring availability when we are about to create
15870 the ao_ref and valueized before.
15871 (vn_reference_lookup): Likewise.
15872 (vn_reference_insert_pieces): Adjust.
15874 2021-06-08 Richard Biener <rguenther@suse.de>
15876 * tree-vectorizer.h (_slp_instance::root_stmt): Change to...
15877 (_slp_instance::root_stmts): ... a vector.
15878 (SLP_INSTANCE_ROOT_STMT): Rename to ...
15879 (SLP_INSTANCE_ROOT_STMTS): ... this.
15880 (slp_root::root): Change to...
15881 (slp_root::roots): ... a vector.
15882 (slp_root::slp_root): Adjust.
15883 * tree-vect-slp.c (_slp_instance::location): Adjust.
15884 (vect_free_slp_instance): Release the root stmt vector.
15885 (vect_build_slp_instance): Adjust.
15886 (vect_analyze_slp): Likewise.
15887 (_bb_vec_info::~_bb_vec_info): Likewise.
15888 (vect_slp_analyze_operations): Likewise.
15889 (vect_bb_vectorization_profitable_p): Likewise. Adjust
15890 costs for the root stmt.
15891 (vect_slp_check_for_constructors): Gather all BIT_INSERT_EXPRs
15893 (vect_slp_analyze_bb_1): Simplify by marking all root stmts
15895 (vectorize_slp_instance_root_stmt): Adjust.
15896 (vect_schedule_slp): Likewise.
15898 2021-06-08 Aldy Hernandez <aldyh@redhat.com>
15900 * gimple-ssa-evrp.c (class ssa_equiv_stack): New.
15901 (ssa_equiv_stack::ssa_equiv_stack): New.
15902 (ssa_equiv_stack::~ssa_equiv_stack): New.
15903 (ssa_equiv_stack::enter): New.
15904 (ssa_equiv_stack::leave): New.
15905 (ssa_equiv_stack::push_replacement): New.
15906 (ssa_equiv_stack::get_replacement): New.
15907 (is_pointer_ssa): New.
15908 (class pointer_equiv_analyzer): New.
15909 (pointer_equiv_analyzer::pointer_equiv_analyzer): New.
15910 (pointer_equiv_analyzer::~pointer_equiv_analyzer): New.
15911 (pointer_equiv_analyzer::set_global_equiv): New.
15912 (pointer_equiv_analyzer::set_cond_equiv): New.
15913 (pointer_equiv_analyzer::get_equiv): New.
15914 (pointer_equiv_analyzer::enter): New.
15915 (pointer_equiv_analyzer::leave): New.
15916 (pointer_equiv_analyzer::get_equiv_expr): New.
15917 (pta_valueize): New.
15918 (pointer_equiv_analyzer::visit_stmt): New.
15919 (pointer_equiv_analyzer::visit_edge): New.
15920 (hybrid_folder::value_of_expr): Call PTA.
15921 (hybrid_folder::value_on_edge): Same.
15922 (hybrid_folder::pre_fold_bb): New.
15923 (hybrid_folder::post_fold_bb): New.
15924 (hybrid_folder::pre_fold_stmt): New.
15925 (rvrp_folder::pre_fold_bb): New.
15926 (rvrp_folder::post_fold_bb): New.
15927 (rvrp_folder::pre_fold_stmt): New.
15928 (rvrp_folder::value_of_expr): Call PTA.
15929 (rvrp_folder::value_on_edge): Same.
15931 2021-06-08 Jakub Jelinek <jakub@redhat.com>
15934 * tree-inline.c (copy_tree_body_r): For OMP_CLAUSE_DEPEND don't
15935 check TREE_CODE if OMP_CLAUSE_DECL is NULL.
15937 2021-06-08 Richard Biener <rguenther@suse.de>
15939 PR middle-end/100951
15940 * tree-vect-generic.c (expand_vector_piecewise): Build a
15941 VECTOR_CST if all elements are constant.
15942 (expand_vector_condition): Likewise.
15943 (lower_vec_perm): Likewise.
15944 (expand_vector_conversion): Likewise.
15946 2021-06-08 Martin Liska <mliska@suse.cz>
15948 * doc/invoke.texi: Document new param evrp-sparse-threshold.
15950 2021-06-08 Martin Liska <mliska@suse.cz>
15952 * genautomata.c (create_automata): Fix typo.
15954 2021-06-08 Kewen Lin <linkw@linux.ibm.com>
15956 PR tree-optimization/100794
15957 * tree-predcom.c (tree_predictive_commoning_loop): Add parameter
15958 allow_unroll_p and only allow unrolling when it's true.
15959 (tree_predictive_commoning): Add parameter allow_unroll_p and
15961 (run_tree_predictive_commoning): Likewise.
15962 (pass_predcom::gate): Check flag_tree_loop_vectorize and
15963 global_options_set.x_flag_predictive_commoning.
15964 (pass_predcom::execute): Adjust for allow_unroll_p.
15966 2021-06-08 Kewen Lin <linkw@linux.ibm.com>
15968 * tree-predcom.c (execute_pred_commoning): Remove update_ssa call.
15969 (tree_predictive_commoning_loop): Factor some cleanup stuffs into
15970 lambda function cleanup, remove scev_reset call, and adjust return
15972 (tree_predictive_commoning): Adjust for different changed values,
15973 only set flag TODO_update_ssa_only_virtuals if changed.
15974 (pass_data pass_data_predcom): Remove TODO_update_ssa_only_virtuals
15975 from todo_flags_finish.
15977 2021-06-07 Andrew MacLeod <amacleod@redhat.com>
15979 * gimple-range-cache.cc (class sbr_sparse_bitmap): New.
15980 (sbr_sparse_bitmap::sbr_sparse_bitmap): New.
15981 (sbr_sparse_bitmap::bitmap_set_quad): New.
15982 (sbr_sparse_bitmap::bitmap_get_quad): New.
15983 (sbr_sparse_bitmap::set_bb_range): New.
15984 (sbr_sparse_bitmap::get_bb_range): New.
15985 (sbr_sparse_bitmap::bb_range_p): New.
15986 (block_range_cache::block_range_cache): initialize bitmap obstack.
15987 (block_range_cache::~block_range_cache): Destruct obstack.
15988 (block_range_cache::set_bb_range): Decide when to utilze the
15989 sparse on entry cache.
15990 * gimple-range-cache.h (block_range_cache): Add bitmap obstack.
15991 * params.opt (-param=evrp-sparse-threshold): New.
15993 2021-06-07 Andrew MacLeod <amacleod@redhat.com>
15995 * bitmap.c (bitmap_set_aligned_chunk): New.
15996 (bitmap_get_aligned_chunk): New.
15997 (test_aligned_chunk): New.
15998 (bitmap_c_tests): Call test_aligned_chunk.
15999 * bitmap.h (bitmap_set_aligned_chunk, bitmap_get_aligned_chunk): New.
16001 2021-06-07 Uroš Bizjak <ubizjak@gmail.com>
16004 * config/i386/i386-expand.c (ix86_expand_vector_init_duplicate):
16006 (ix86_expand_vector_init_one_nonzero): Ditto.
16007 (ix86_expand_vector_init_one_var): Ditto.
16008 (ix86_expand_vector_init_general): Ditto.
16009 * config/i386/mmx.md (vec_initv4qiqi): New expander.
16011 2021-06-07 Jeff Law <jeffreyalaw@gmail.com>
16013 * config/h8300/movepush.md: Change most _clobber_flags
16014 patterns to instead use <cczn> subst.
16015 (movsi_cczn): New pattern with usable CC cases split out.
16016 (movsi_h8sx_cczn): Likewise.
16018 2021-06-07 Martin Liska <mliska@suse.cz>
16020 * common/common-target.def: Split long lines and replace them
16022 * target.def: Likewise.
16023 * doc/tm.texi: Re-generated.
16025 2021-06-07 Jakub Jelinek <jakub@redhat.com>
16028 * fold-const.c (fold_read_from_vector): Return NULL if trying to
16029 read from a CONSTRUCTOR with vector type elements.
16031 2021-06-07 Jakub Jelinek <jakub@redhat.com>
16033 PR middle-end/100898
16034 * tree-inline.c (copy_bb): Only use gimple_call_arg_ptr if memcpy
16035 should copy any arguments. Don't call gimple_call_num_args
16036 on id->call_stmt or call_stmt more than once.
16038 2021-06-07 liuhongt <hongtao.liu@intel.com>
16041 * config/i386/sse.md (*sse4_1_zero_extendv8qiv8hi2_3): Refine
16043 (<insn>v4siv4di2): Delete constraints for define_expand.
16045 2021-06-07 liuhongt <hongtao.liu@intel.com>
16048 * config/i386/i386-expand.c (ix86_expand_builtin): Remove
16049 assignment of cfun->machine->has_explicit_vzeroupper.
16050 * config/i386/i386-features.c
16051 (ix86_add_reg_usage_to_vzerouppers): Delete.
16052 (ix86_add_reg_usage_to_vzeroupper): Ditto.
16053 (rest_of_handle_insert_vzeroupper): Remove
16054 ix86_add_reg_usage_to_vzerouppers, add df_analyze at the end
16056 (gate): Remove cfun->machine->has_explicit_vzeroupper.
16057 * config/i386/i386-protos.h (ix86_expand_avx_vzeroupper):
16059 * config/i386/i386.c (ix86_insn_callee_abi): New function.
16060 (ix86_initialize_callee_abi): Ditto.
16061 (ix86_expand_avx_vzeroupper): Ditto.
16062 (ix86_hard_regno_call_part_clobbered): Adjust for vzeroupper
16064 (TARGET_INSN_CALLEE_ABI): Define as ix86_insn_callee_abi.
16065 (ix86_emit_mode_set): Call ix86_expand_avx_vzeroupper
16067 * config/i386/i386.h (struct GTY(()) machine_function): Delete
16068 has_explicit_vzeroupper.
16069 * config/i386/i386.md (enum unspec): New member
16071 (ABI_DEFAULT,ABI_VZEROUPPER,ABI_UNKNOWN): New
16072 define_constants for insn callee abi index.
16073 * config/i386/predicates.md (vzeroupper_pattern): Adjust.
16074 * config/i386/sse.md (UNSPECV_VZEROUPPER): Deleted.
16075 (avx_vzeroupper): Call ix86_expand_avx_vzeroupper.
16076 (*avx_vzeroupper): Rename to ..
16077 (avx_vzeroupper_callee_abi): .. this, and adjust pattern as
16078 call_insn which has a special vzeroupper ABI.
16079 (*avx_vzeroupper_1): Deleted.
16081 2021-06-07 liuhongt <hongtao.liu@intel.com>
16084 * df-scan.c (df_get_call_refs): When call_insn is a fake call,
16085 it won't use stack pointer reg.
16086 * final.c (leaf_function_p): When call_insn is a fake call, it
16087 won't affect caller as a leaf function.
16088 * reg-stack.c (callee_clobbers_any_stack_reg): New.
16089 (subst_stack_regs): When call_insn doesn't clobber any stack
16090 reg, don't clear the arguments.
16091 * rtl.c (shallow_copy_rtx): Don't clear flag used when orig is
16093 * shrink-wrap.c (requires_stack_frame_p): No need for stack
16094 frame for a fake call.
16095 * rtl.h (FAKE_CALL_P): New macro.
16097 2021-06-06 Eric Botcazou <ebotcazou@adacore.com>
16099 * config/sparc/sparc-protos.h (order_regs_for_local_alloc): Rename
16101 (sparc_order_regs_for_local_alloc): ...this.
16102 (sparc_leaf_reg_remap): Declare.
16103 * config/sparc/sparc.h (ADJUST_REG_ALLOC_ORDER): Adjust.
16104 (LEAF_REG_REMAP): Reimplement as call to sparc_leaf_reg_remap.
16105 * config/sparc/sparc.c (leaf_reg_remap): Delete.
16106 (order_regs_for_local_alloc): Rename to...
16107 (sparc_order_regs_for_local_alloc): ...this.
16108 (sparc_leaf_reg_remap): New function.
16109 (sparc_conditional_register_usage): Do not modify leaf_reg_remap.
16111 2021-06-06 David Edelsohn <dje.gcc@gmail.com>
16113 * config/rs6000/rs6000.c (rs6000_xcoff_asm_output_aligned_decl_common):
16114 Use assemble_name to output BSS section name.
16116 2021-06-06 Uroš Bizjak <ubizjak@gmail.com>
16118 * config/i386/constraints.md (Bs):
16119 Remove boolean operators from match_test RTX.
16122 (M): Use "mode" variable instead of GET_MODE (op) in match_test RTX.
16125 2021-06-06 Martin Liska <mliska@suse.cz>
16127 * doc/extend.texi: Add missing @headitem.
16128 * doc/invoke.texi: Likewise.
16129 * doc/objc.texi: Likewise.
16131 2021-06-06 Martin Liska <mliska@suse.cz>
16133 * genhooks.c (emit_findices): Remove unused function.
16134 (emit_documentation): Do not call emit_findices
16135 and do not search for @Fcode directives.
16137 2021-06-06 Martin Liska <mliska@suse.cz>
16139 * doc/invoke.texi: Remove extra character.
16141 2021-06-05 Kewen Lin <linkw@linux.ibm.com>
16143 * config/sh/sh.md (doloop_end_split): Fix empty split condition.
16145 2021-06-05 Kewen Lin <linkw@linux.ibm.com>
16147 * config/sparc/sparc.md (*snedi<W:mode>_zero_vis3,
16148 *neg_snedi<W:mode>_zero_subxc, *plus_snedi<W:mode>_zero,
16149 *plus_plus_snedi<W:mode>_zero, *minus_snedi<W:mode>_zero,
16150 *minus_minus_snedi<W:mode>_zero): Fix empty split condition.
16152 2021-06-05 Kewen Lin <linkw@linux.ibm.com>
16154 * config/or1k/or1k.md (*movdi): Fix empty split condition.
16156 2021-06-05 Kewen Lin <linkw@linux.ibm.com>
16158 * config/mips/mips.md (<anonymous>, bswapsi2, bswapdi2): Fix empty
16161 2021-06-05 Kewen Lin <linkw@linux.ibm.com>
16163 * config/m68k/m68k.md (*zero_extend_inc, *zero_extend_dec,
16164 *zero_extendsidi2): Fix empty split condition.
16166 2021-06-05 Jeff Law <jeffreyalaw@gmail.com>
16168 * config/h8300/addsub.md: Fix split condition in define_insn_and_split
16170 * config/h8300/bitfield.md: Likewise.
16171 * config/h8300/combiner.md: Likewise.
16172 * config/h8300/divmod.md: Likewise.
16173 * config/h8300/extensions.md: Likewise.
16174 * config/h8300/jumpcall.md: Likewise.
16175 * config/h8300/movepush.md: Likewise.
16176 * config/h8300/multiply.md: Likewise.
16177 * config/h8300/other.md: Likewise.
16178 * config/h8300/shiftrotate.md: Likewise.
16179 * config/h8300/logical.md: Likewise. Fix split pattern to use
16180 code iterator that somehow slipped through.
16182 2021-06-04 Tobias Burnus <tobias@codesourcery.com>
16184 PR middle-end/100905
16185 * tree-nested.c (convert_nonlocal_omp_clauses,
16186 convert_local_omp_clauses): Handle OMP_CLAUSE_BIND.
16188 2021-06-04 Martin Sebor <msebor@redhat.com>
16190 PR middle-end/100732
16191 * gimple-fold.c (gimple_fold_builtin_sprintf): Avoid folding calls
16192 with either source or destination argument of invalid type.
16193 * tree-ssa-uninit.c (maybe_warn_pass_by_reference): Avoid checking
16194 calls with arguments of invalid type.
16196 2021-06-04 Martin Sebor <msebor@redhat.com>
16198 * attribs.c (init_attr_rdwr_indices): Use VLA bounds in the expected
16200 (attr_access::vla_bounds): Also handle VLA bounds.
16202 2021-06-04 Uroš Bizjak <ubizjak@gmail.com>
16204 * config/i386/predicates.md (GOT_memory_operand):
16205 Implement using match_code RTXes.
16206 (GOT32_symbol_operand): Ditto.
16208 2021-06-04 Uroš Bizjak <ubizjak@gmail.com>
16211 * config/i386/i386-expand.c (ix86_expand_vector_init_duplicate):
16213 (ix86_expand_vector_init_general): Ditto.
16214 Use SImode instead of word_mode for logic operations
16215 when GET_MODE_SIZE (mode) < UNITS_PER_WORD.
16216 (expand_vec_perm_even_odd_1): Assert that V2HI mode should be
16217 implemented by expand_vec_perm_1.
16218 (expand_vec_perm_broadcast_1): Assert that V2HI and V4HI modes
16219 should be implemented using standard shuffle patterns.
16220 (ix86_vectorize_vec_perm_const): Handle V2HImode. Add V4HI and
16221 V2HI modes to modes, implementable with shuffle for one operand.
16222 * config/i386/mmx.md (*punpckwd): New insn_and_split pattern.
16223 (*pshufw_1): New insn pattern.
16224 (*vec_dupv2hi): Ditto.
16225 (vec_initv2hihi): New expander.
16227 2021-06-04 Kewen Lin <linkw@linux.ibm.com>
16229 * config/arm/vfp.md (no_literal_pool_df_immediate,
16230 no_literal_pool_sf_immediate): Fix empty split condition.
16232 2021-06-04 Kewen Lin <linkw@linux.ibm.com>
16234 * config/i386/i386.md (*load_tp_x32_zext, *add_tp_x32_zext,
16235 *tls_dynamic_gnu2_combine_32): Fix empty split condition.
16236 * config/i386/sse.md (*<sse2_avx2>_pmovmskb_lt,
16237 *<sse2_avx2>_pmovmskb_zext_lt, *sse2_pmovmskb_ext_lt,
16238 *<sse4_1_avx2>_pblendvb_lt): Likewise.
16240 2021-06-04 Jakub Jelinek <jakub@redhat.com>
16243 * config/i386/i386-expand.c (ix86_expand_vector_init): Handle
16244 concatenation from half-sized modes with TImode elements.
16246 2021-06-04 Claudiu Zissulescu <claziss@synopsys.com>
16248 * config/arc/arc.c (arc_override_options): Disable millicode
16249 thunks when RF16 is on.
16251 2021-06-04 Haochen Gui <guihaoc@gcc.gnu.org>
16253 * config/rs6000/rs6000.h (PROMOTE_MODE): Remove.
16255 2021-06-04 Haochen Gui <guihaoc@gcc.gnu.org>
16257 * config/rs6000/rs6000-call.c (rs6000_promote_function_mode):
16258 Replace PROMOTE_MODE marco with its content.
16260 2021-06-03 Kewen Lin <linkw@linux.ibm.com>
16262 * config/cris/cris.md (*addi_reload): Fix empty split condition.
16264 2021-06-03 Jim Wilson <jimw@sifive.com>
16266 * config.gcc (riscv*-*-*): If --with-riscv-attribute not used,
16267 turn it on for all riscv targets.
16269 2021-06-03 Uroš Bizjak <ubizjak@gmail.com>
16272 * config/i386/i386-expand.c (ix86_expand_vector_set):
16273 Handle V2HI and V4QI modes.
16274 (ix86_expand_vector_extract): Ditto.
16275 * config/i386/mmx.md (*pinsrw): New insn pattern.
16278 (*pextrw_zext): Ditto.
16280 (*pextrb_zext): Ditto.
16281 (vec_setv2hi): New expander.
16282 (vec_extractv2hihi): Ditto.
16283 (vec_setv4qi): Ditto.
16284 (vec_extractv4qiqi): Ditto.
16285 (vec_setv8qi): Enable only for TARGET_SSE4_1.
16286 (vec_extractv8qiqi): Ditto.
16288 2021-06-03 Aaron Sawdey <acsawdey@linux.ibm.com>
16290 * config/rs6000/genfusion.pl (gen_logical_addsubf): Fix input
16291 order to subf instruction.
16292 * config/rs6000/fusion.md: Regenerate.
16294 2021-06-03 Aldy Hernandez <aldyh@redhat.com>
16296 * calls.c (get_size_range): Use range_of_expr instead of
16297 determine_value_range.
16298 * tree-affine.c (expr_to_aff_combination): Same.
16299 * tree-data-ref.c (split_constant_offset): Same.
16300 * tree-vrp.c (determine_value_range_1): Remove.
16301 (determine_value_range): Remove.
16302 * tree-vrp.h (determine_value_range): Remove.
16304 2021-06-03 Aldy Hernandez <aldyh@redhat.com>
16306 * function-tests.c (test_ranges): Call gimple_range_tests.
16307 * gimple-range-cache.cc (ranger_cache::range_of_expr): Pass stmt
16309 * gimple-range.cc (fur_source::get_operand): Do not call
16310 get_tree_range or gimple_range_global.
16312 (get_tree_range): Move to value-query.cc.
16313 Call get_arith_expr_range.
16314 (gimple_ranger::range_of_expr): Add argument to get_tree_range.
16315 Include gimple-range-tests.cc.
16316 * gimple-range.h (fold_range): Add argument.
16317 (get_tree_range): Remove.
16318 * selftest.h (gimple_range_tests): New.
16319 * value-query.cc (global_range_query::range_of_expr): Add
16321 (range_query::get_tree_range): Move from gimple-range.cc.
16322 * value-query.h (class range_query): Add get_tree_range and
16323 get_arith_expr_range. Make fur_source a friend.
16324 * vr-values.c (vr_values::range_of_expr): Pass stmt to
16326 * gimple-range-tests.cc: New file.
16328 2021-06-03 Aldy Hernandez <aldyh@redhat.com>
16330 * gimple-range.cc (gimple_ranger::export_global_ranges): Call
16331 update_global_range.
16332 * value-query.cc (update_global_range): New.
16333 * value-query.h (update_global_range): New.
16335 2021-06-03 David Malcolm <dmalcolm@redhat.com>
16337 * diagnostic-show-locus.c (diagnostic_show_locus): Don't reject
16338 printing the same location twice if there are fix-it hints,
16339 multiple locations, or a label.
16341 2021-06-03 Andre Vieira <andre.simoesdiasvieira@arm.com>
16343 * tree-vect-loop.c (vect_transform_loop): Use main loop's various'
16344 thresholds to narrow the upper bound on epilogue iterations.
16346 2021-06-03 Christophe Lyon <christophe.lyon@linaro.org>
16348 * config/arm/mve.md (mve_vabsq_f<mode>): Use 'abs' instead of unspec.
16349 (mve_vabsq_s<mode>): Likewise.
16350 * config/arm/neon.md (abs<mode>2): Rename to neon_abs<mode>2.
16351 * config/arm/unspecs.md (VABSQ_F, VABSQ_S): Delete.
16352 * config/arm/vec-common.md (neg<mode>2): Rename to
16353 <absneg_str><mode>2.
16355 2021-06-03 Claudiu Zissulescu <claziss@synopsys.com>
16357 * common/config/arc/arc-common.c (arc_option_optimization_table):
16358 Remove malign-call.
16359 * config/arc/arc.c (arc_unalign_branch_p): Remove unused function.
16360 * config/arc/arc.h (TARGET_MIXED_CODE): Remove macro.
16361 (INDEX_REG_CLASS): Only refer to GENERAL_REGS.
16362 * config/arc/arc.md (abssi2_mixed): Remove pattern.
16363 * config/arc/arc.opt (munalign-prob-threshold): Mark it obsolete.
16364 (malign-call): Likewise.
16365 (mmixed-code): Likewise.
16366 * doc/invoke.texi (ARC): Update doc.
16368 2021-06-03 Martin Liska <mliska@suse.cz>
16370 * common.opt: Use proper Enum values.
16371 * opts.c (COVERAGE_SANITIZER_OPT): Remove.
16372 (parse_sanitizer_options): Handle only sanitizer_opts.
16373 (common_handle_option): Just assign value.
16375 2021-06-03 Eric Botcazou <ebotcazou@adacore.com>
16378 * tree-inline.c (inline_forbidden_p): Remove test on return type.
16380 2021-06-03 Eric Botcazou <ebotcazou@adacore.com>
16382 * dwarf2out.c (loc_list_from_tree_1) <FUNCTION_DECL>: Also generate
16383 DW_OP_GNU_variable_value referencing an existing DIE at file scope.
16384 (type_byte_size): Inline into...
16385 (add_byte_size_attribute): ...this and call add_scalar_info.
16387 2021-06-03 Eric Botcazou <ebotcazou@adacore.com>
16389 * dwarf2out.c (mem_loc_descriptor) <UDIV>: Fix typo.
16390 (typed_binop_from_tree): New function.
16391 (loc_list_from_tree_1) <EXACT_DIV_EXPR>: For an unsigned type,
16392 turn a divide by a power of 2 into a shift.
16393 <CEIL_DIV_EXPR>: For an unsigned type, use a signed divide if the
16394 size of the mode is lower than DWARF2_ADDR_SIZE; otherwise, do a
16395 typed divide by calling typed_binop_from_tree.
16397 2021-06-03 Eric Botcazou <ebotcazou@adacore.com>
16399 * dwarf2out.c (scompare_loc_descriptor): Fix head comment.
16400 (is_handled_procedure_type): Likewise.
16401 (struct loc_descr_context): Add strict_signedness field.
16402 (resolve_args_picking_1): Deal with DW_OP_[GNU_]deref_type,
16403 DW_OP_[GNU_]convert and DW_OP_[GNU_]reinterpret.
16404 (resolve_args_picking): Minor tweak.
16405 (function_to_dwarf_procedure): Initialize strict_signedness field.
16406 (type_byte_size): Likewise.
16407 (field_byte_offset): Likewise.
16408 (gen_descr_array_type_die): Likewise.
16409 (gen_variant_part): Likewise.
16410 (loc_list_from_tree_1) <CALL_EXPR>: Tidy up and set strict_signedness
16411 to true when a context is present before evaluating the arguments.
16412 <COND_EXPR>: Do not generate a useless comparison with zero.
16413 When dereferencing an address, if strict_signedness is true and the
16414 type is small and signed, use DW_OP_deref_type to do the dereference
16415 and then DW_OP_convert to convert back to the generic type.
16417 2021-06-03 Jakub Jelinek <jakub@redhat.com>
16420 * tree-inline.c (copy_tree_body_r): Handle iterators on
16421 OMP_CLAUSE_AFFINITY or OMP_CLAUSE_DEPEND.
16423 2021-06-03 Kewen Lin <linkw@linux.ibm.com>
16425 * config/arc/arc.md (*bbit_di): Remove.
16427 2021-06-02 Christoph Muellner <cmuellner@gcc.gnu.org>
16429 PR rtl-optimization/100264
16430 * ree.c (get_sub_rtx): Ignore SET expressions without register
16431 destinations and remove assertion, as it is not valid anymore
16432 with this new behaviour.
16433 (merge_def_and_ext): Eliminate destination check for register
16434 as such SET expressions can't occur anymore.
16435 (combine_reaching_defs): Likewise.
16437 2021-06-02 Jakub Jelinek <jakub@redhat.com>
16440 * config/xtensa/xtensa.h (LEAF_REG_REMAP): Cast REGNO to int to avoid
16441 -Wtype-limits warnings.
16442 (DWARF_FRAME_REGISTER): Rewrite into ternary operator with addition
16443 in operands to avoid -Wsign-compare warnings.
16445 2021-06-02 Pat Haugen <pthaugen@linux.ibm.com>
16447 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Use
16450 2021-06-02 Vineet Gupta <vgupta@synopsys.com>
16452 * config/arc/arc.h (TARGET_CPU_DEFAULT): Change to hs38_linux.
16454 2021-06-02 Ilya Leoshkevich <iii@linux.ibm.com>
16456 * config/s390/s390.md(*ashrdi3_31<setcc><cconly>): Use a single
16458 * config/s390/subst.md(cconly_subst): Use a single constraint
16459 in (match_scratch).
16461 2021-06-02 Martin Liska <mliska@suse.cz>
16463 * ipa-icf.h: Use auto_vec for memory_access_types.
16465 2021-06-02 Jeff Law <jeffreyalaw@gmail.com>
16467 * config/h8300/h8300-protos.h (compute_a_shift_length): Drop unused
16468 argument from prototype.
16469 (output_logical_op): Add rtx_code argument.
16470 (compute_logical_op_length): Likewise.
16471 * config/h8300/h8300.c (h8300_and_costs): Pass additional argument
16472 to compute_a_shift_length.
16473 (output_logical_op); New argument with the rtx code rather than
16474 extracting it from an operand. Handle QImode too.
16475 (compute_logical_op_length): Similary.
16476 (compute_a_shift_length): Drop unused argument.
16477 * config/h8300/h8300.md (logicals): New code iterator.
16478 * config/h8300/logical.md (<code><mode>3 expander): Combine
16479 the "and" expander with the "ior"/"xor" expander.
16480 (bclr<mode>msx): Combine the QI/HI mode patterns.
16481 (<logical><mode>3 insns): Use code iterator rather than match_operator.
16482 Handle QImode as well. Update call to output_logical_op and
16483 compute_logical_op_length to pass in rtx_code
16484 Fix split condition on all define_insn_and_split patterns.
16485 (one_cmpl<mode>2<cczn>): Use <cczn> to support both clobbering
16486 the flags and setting ZN via existing define_subst.
16487 * config/h8300/shiftrotate.md: Drop unused argument from
16488 calls to compute_a_shift_length.
16489 Signed-off-by: Jeff Law <jeffreyalaw@gmail.com>
16491 2021-06-01 Andrew Pinski <apinski@marvell.com>
16493 PR tree-optimization/25290
16494 * tree-ssa-phiopt.c (match_simplify_replacement):
16496 (tree_ssa_phiopt_worker): Use match_simplify_replacement.
16497 (two_value_replacement): Change the comment about
16498 conditional_replacement.
16499 (conditional_replacement): Delete.
16501 2021-06-01 Andrew Pinski <apinski@marvell.com>
16503 PR tree-optimization/95481
16504 * tree-tailcall.c (find_tail_calls): Handle empty typed
16507 2021-06-01 Andrew Pinski <apinski@marvell.com>
16509 * gimplify.c (zero_sized_field_decl): Delete
16510 (zero_sized_type): Delete
16511 (gimplify_init_ctor_eval): Use is_empty_type instead
16512 of zero_sized_field_decl.
16513 (gimplify_modify_expr): Use is_empty_type instead of
16516 2021-06-01 Jason Merrill <jason@redhat.com>
16519 * tree.h (CALL_FROM_NEW_OR_DELETE_P): Adjust comment.
16521 2021-06-01 Jason Merrill <jason@redhat.com>
16524 * diagnostic.h (warning_enabled_at): Declare.
16525 * diagnostic.c (diagnostic_enabled): Factor out from...
16526 (diagnostic_report_diagnostic): ...here.
16527 (warning_enabled_at): New.
16529 2021-06-01 Aldy Hernandez <aldyh@redhat.com>
16531 * gimple-ssa-evrp.c: Enable exporting of global ranges.
16533 2021-06-01 Martin Liska <mliska@suse.cz>
16536 * doc/invoke.texi: Mention that -fgcse-after-reload
16537 is enabled with -O3.
16539 2021-06-01 liuhongt <hongtao.liu@intel.com>
16541 PR tree-optimization/98365
16542 * tree-if-conv.c (strip_nop_cond_scalar_reduction): New function.
16543 (is_cond_scalar_reduction): Handle nop_expr in cond scalar reduction.
16544 (convert_scalar_cond_reduction): Ditto.
16545 (predicate_scalar_phi): Ditto.
16547 2021-06-01 Andrew MacLeod <amacleod@redhat.com>
16549 PR tree-optimization/100781
16550 * gimple-range-cache.cc (ranger_cache::ranger_cache): Enable new
16551 value calculation by default.
16552 (ranger_cache::enable_new_values): New.
16553 (ranger_cache::disable_new_values): New.
16554 (ranger_cache::push_poor_value): Check if new values are allowed.
16555 * gimple-range-cache.h (class ranger_cache): New member/methods.
16556 * gimple-range.cc (gimple_ranger::range_of_expr): Check for debug
16557 statement, and disable/renable new value calculation.
16559 2021-06-01 Andrew MacLeod <amacleod@redhat.com>
16561 * gimple-range-cache.cc (ranger_cache::ssa_range_in_bb): Delete.
16562 (ranger_cache::range_of_def): New.
16563 (ranger_cache::entry_range): New.
16564 (ranger_cache::exit_range): New.
16565 (ranger_cache::range_of_expr): Adjust.
16566 (ranger_cache::range_on_edge): Adjust.
16567 (ranger_cache::propagate_cache): Call exit_range directly.
16568 * gimple-range-cache.h (class ranger_cache): Adjust.
16570 2021-06-01 Andrew MacLeod <amacleod@redhat.com>
16572 * gimple-range-cache.cc (ranger_cache::ranger_cache): Adjust for
16573 gori_compute being a member rather than base class.
16574 dervied call to member call.
16575 (ranger_cache::dump): No longer dump gori_map.
16576 (ranger_cache::dump_bb): New.
16577 (ranger_cache::get_non_stale_global_range): Adjust for gori_compute
16578 being a member rather than base class.
16579 (ranger_cache::set_global_range): Ditto.
16580 (ranger_cache::ssa_range_in_bb): Ditto.
16581 (ranger_cache::range_of_expr): New.
16582 (ranger_cache::range_on_edge): New.
16583 (ranger_cache::block_range): Adjust for gori_computes. Debug changes.
16584 (ranger_cache::propagate_cache): Adjust debugging output.
16585 (ranger_cache::fill_block_cache): Adjust for gori_computes. Debug
16587 * gimple-range-cache.h (class ranger_cache): Make gori_compute a
16588 member, and inherit from range_query instead.
16589 (ranger_cache::dump_bb): New. split from dump.
16590 * gimple-range-gori.cc (gori_compute::ssa_range_in_bb): Delete.
16591 (gori_compute::expr_range_at_stmt): Delete.
16592 (gori_compute::compute_name_range_op): Delete.
16593 (gori_compute::compute_operand_range_switch): Add fur_source.
16594 (gori_compute::compute_operand_range): Add fur_source param, inline
16595 old compute_name_range_op and optimize_logical_operands.
16596 (struct tf_range): Delete.
16597 (gori_compute::logical_combine): Adjust
16598 (gori_compute::optimize_logical_operands): Delete.
16599 (gori_compute::compute_logical_operands_in_chain): Delete.
16600 (gori_compute::compute_logical_operands): Adjust.
16601 (gori_compute::compute_operand1_range): Adjust to fur_source.
16602 (gori_compute::compute_operand2_range): Ditto.
16603 (gori_compute::compute_operand1_and_operand2_range): Ditto.
16604 (gori_compute::outgoing_edge_range_p): Add range_query parameter,
16605 and adjust to fur_source.
16606 * gimple-range-gori.h (class gori_compute): Simplify and adjust to
16607 range_query and fur_source.
16608 * gimple-range.cc (gimple_ranger::range_on_edge): Query range_on_edge
16609 from the ranger_cache..
16610 (gimple_ranger::fold_range_internal): Adjust to base class change of
16612 (gimple_ranger::dump_bb): Adjust dump.
16613 * gimple-range.h (gimple_ranger):export gori computes object.
16615 2021-06-01 Andrew MacLeod <amacleod@redhat.com>
16617 PR tree-optimization/100774
16618 * gimple-range-cache.cc (ranger_cache::get_non_stale_global_range):
16619 Constant values are also not stale.
16620 (ranger_cache::set_global_range): Range invariant values should also
16621 have the correct timestamp.
16623 2021-05-31 Martin Liska <mliska@suse.cz>
16625 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
16626 Unpack FUNCTION_DECL_DECL_TYPE.
16627 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
16628 Stream FUNCTION_DECL_DECL_TYPE instead of
16629 DECL_IS_OPERATOR_NEW_P.
16630 * tree.h (set_function_decl_type): Use FUNCTION_DECL_DECL_TYPE
16632 (DECL_IS_OPERATOR_NEW_P): Likewise.
16633 (DECL_IS_OPERATOR_DELETE_P): Likewise.
16634 (DECL_LAMBDA_FUNCTION_P): Likewise.
16636 2021-05-31 Richard Biener <rguenther@suse.de>
16639 * internal-fn.c (expand_SHUFFLEVECTOR): Define.
16640 * internal-fn.def (SHUFFLEVECTOR): New.
16641 * internal-fn.h (expand_SHUFFLEVECTOR): Declare.
16642 * doc/extend.texi: Document __builtin_shufflevector.
16644 2021-05-31 Peter Bergner <bergner@linux.ibm.com>
16647 * config/rs6000/predicates.md(mma_assemble_input_operand): Allow
16648 indexed form addresses.
16650 2021-05-29 Jeff Law <jlaw@tachyum.com>
16652 * config/h8300/h8300.c (h8300_emit_stack_adjustment): Drop unused
16653 parameter. Call callers fixed.
16655 (output_plussi): Add FALLTHRU markers.
16656 (h8300_shift_needs_scratch_p): Add gcc_unreachable marker.
16658 2021-05-29 Jakub Jelinek <jakub@redhat.com>
16660 PR middle-end/99928
16661 * gimplify.c (gimplify_scan_omp_clauses): For taskloop simd
16662 combined with parallel, make sure to add shared clause to
16663 parallel for explicit linear clause.
16665 2021-05-29 Aldy Hernandez <aldyh@redhat.com>
16667 PR tree-optimization/100787
16668 * gimple-ssa-evrp.c: Disable exporting of global ranges.
16670 2021-05-28 Jason Merrill <jason@redhat.com>
16672 * tree-iterator.h (struct tree_stmt_iterator): Add operator++,
16673 operator--, operator*, operator==, and operator!=.
16674 (class tsi_range): New.
16676 2021-05-28 Richard Biener <rguenther@suse.de>
16678 PR tree-optimization/100778
16679 * tree-vect-slp.c (vect_build_slp_tree_1): Prevent possibly
16680 trapping ops in different BBs.
16682 2021-05-28 Richard Biener <rguenther@suse.de>
16685 * tree-inline.c (copy_bb): When processing __builtin_va_arg_pack
16686 copy fntype from original call.
16688 2021-05-28 Martin Liska <mliska@suse.cz>
16690 PR gcov-profile/100751
16691 * doc/gcov.texi: Revert partially a hunk that was wrong.
16693 2021-05-28 Cooper Qu <cooper.qu@linux.alibaba.com>
16695 * config/csky/csky-linux-elf.h (HAVE_sync_compare_and_swapqi):
16697 (HAVE_sync_compare_and_swaphi): Likewise.
16698 (HAVE_sync_compare_and_swapsi): Likewise.
16700 2021-05-28 Jakub Jelinek <jakub@redhat.com>
16702 PR middle-end/99928
16703 * tree.h (OMP_CLAUSE_MAP_IMPLICIT): Define.
16705 2021-05-28 Tobias Burnus <tobias@codesourcery.com>
16707 * gimplify.c (gimplify_omp_affinity): New.
16708 (gimplify_scan_omp_clauses): Call it; remove affinity clause afterwards.
16709 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_AFFINITY.
16710 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_AFFINITY.
16711 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add clause.
16712 (walk_tree_1): Handle OMP_CLAUSE_AFFINITY.
16714 2021-05-28 Joern Rennecke <joern.rennecke@riscy-ip.com>
16715 Richard Biener <rguenther@suse.de>
16717 * match.pd <popcount & / + pattern matching>:
16718 When generating popcount directly fails, try doing it in two halves.
16720 2021-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
16722 * Makefile.in (generated_files): Add gimple-match.c and
16725 2021-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
16727 * gensupport.c (alter_predicate_for_insn): Handle MATCH_DUP.
16729 2021-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
16731 * gensupport.c (alter_constraints): Add MATCH_SCRATCH case.
16733 2021-05-28 Kewen Lin <linkw@linux.ibm.com>
16735 PR tree-optimization/99398
16736 * tree-ssa-forwprop.c (simplify_permutation): Optimize some cases
16737 where the fed operands are CTOR/CST and propagated through
16738 VIEW_CONVERT_EXPR. Call vec_perm_indices::new_shrunk_vector.
16739 * vec-perm-indices.c (vec_perm_indices::new_shrunk_vector): New
16741 * vec-perm-indices.h (vec_perm_indices::new_shrunk_vector): New
16744 2021-05-27 Uroš Bizjak <ubizjak@gmail.com>
16746 * config/i386/mmx.md (addv2sf3): Do not call
16747 ix86_fixup_binary_operands_no_copy.
16750 (<smaxmin:code>v2sf3): Ditto.
16751 (<plusminus:insn><MMXMODEI:mode>3): Ditto.
16752 (<plusminus:insn><VI_32:mode>3): Remove expander.
16753 (<plusminus:insn><VI_32:mode>3): Rename from
16754 "*<plusminus:insn><VI_32:mode>3".
16755 (mulv4hi): Do not call ix86_fixup_binary_operands_no_copy.
16756 (mulv2hi3): Remove expander.
16757 (mulv2hi3): Rename from *mulv2hi3.
16758 (<s>mulv2hi3_highpart): Remove expander.
16759 (<s>mulv2hi3_highpart): Rename from *<s>mulv2hi3_highpart.
16760 (<smaxmin:code><MMXMODE14:mode>3): Rename from
16761 "*mmx_<smaxmin:code><MMXMODE14:mode>3".
16762 (<smaxmin:code><SMAXMIN_MMXMODEI:mode>3): Remove expander.
16763 (SMAXMIN_MMXMODEI): Remove mode iterator.
16764 (<smaxmin:code>v4hi3): New expander.
16765 (<smaxmin:code>v4qi3): Rename from *<smaxmin:code>v4qi3.
16766 (<smaxmin:code>v2hi3): Rename from *<smaxmin:code>v2hi3.
16767 (<smaxmin:code><SMAXMIN_VI_32:mode>3): Remove expander.
16768 (SMAXMIN_VI_32): Remove mode iterator.
16769 (<umaxmin:code><MMXMODE24:mode>3): Rename from
16770 "*mmx_<umaxmin:code><MMXMODE24:mode>3".
16771 (<umaxmin:code><UMAXMIN_MMXMODEI:mode>3): Remove expander.
16772 (UMAXMIN_MMXMODEI): Remove mode iterator.
16773 (<umaxmin:code>v8qi3): New expander.
16774 (<umaxmin:code>v4qi3): Rename from *<umaxmin:code>v4qi3.
16775 (<umaxmin:code>v2hi3): Rename from *<umaxmin:code>v2hi3.
16776 (<umaxmin:code><SMAXMIN_VI_32:mode>3): Remove expander.
16777 (UMAXMIN_VI_32): Remove mode iterator.
16778 (<any_shift:insn>v2hi3): Remove expander.
16779 (<any_shift:insn>v2hi3): Rename from *<any_shift:insn>v2hi3.
16780 (<any_logic:code><MMXMODEI:mode>3): Do not call
16781 ix86_fixup_binary_operands_no_copy.
16782 (<any_logic:code><VI_32:mode>3): Remove expander.
16783 (<any_logic:code><VI_32:mode>3): Rename from
16784 "*<any_logic:code><VI_32:mode>3".
16785 (uavg<mode>3_ceil): Do not call ix86_fixup_binary_operands_no_copy.
16786 * config/i386/sse.md (div<VF2:mode>3): Do not call
16787 ix86_fixup_binary_operands_no_copy.
16788 (div<VF1:mode>3): Ditto.
16789 (<maxmin:code><VI8_AVX2_AVX512F:mode>3): Ditto.
16790 (smulhrsv4hi3): Ditto.
16791 (smulhrsv2hi3): Ditto.
16793 2021-05-27 Martin Sebor <msebor@redhat.com>
16795 * ggc.h (gt_ggc_mx): Add overloads for all integers.
16797 * hash-map.h (class hash_map): Add pch_nx_helper overloads for all
16799 (hash_map::operator==): New function.
16801 2021-05-27 Uroš Bizjak <ubizjak@gmail.com>
16804 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
16805 For TARGET_XOP bypass SSE comparisons for all supported vector modes.
16806 * config/i386/mmx.md (*xop_maskcmp<MMXMODEI:mode>3): New insn pattern.
16807 (*xop_maskcmp<VI_32:mode>3): Ditto.
16808 (*xop_maskcmp_uns<MMXMODEI:mode>3): Ditto.
16809 (*xop_maskcmp_uns<VI_32:mode>3): Ditto.
16811 2021-05-27 Richard Earnshaw <rearnsha@arm.com>
16814 * config/arm/arm.c (arm_configure_build_target): Remove parameter
16815 opts_set, directly check opts parameters for being non-null.
16816 (arm_option_restore): Update call to arm_configure_build_target.
16817 (arm_option_override): Likewise.
16818 (arm_can_inline_p): Likewise.
16819 (arm_valid_target_attribute_tree): Likewise.
16820 * config/arm/arm-c.c (arm_pragma_target_parse): Likewise.
16821 * config/arm/arm-protos.h (arm_configure_build_target): Adjust
16824 2021-05-27 Aldy Hernandez <aldyh@redhat.com>
16826 * vr-values.c (simplify_conversion_using_ranges): Use
16827 get_range_query instead of get_global_range_query.
16829 2021-05-27 Aldy Hernandez <aldyh@redhat.com>
16831 * gimple-range.cc (get_range_global): Move to value-query.cc.
16832 (gimple_range_global): Same.
16833 (get_global_range_query): Same.
16834 (global_range_query::range_of_expr): Same.
16835 * gimple-range.h (class global_range_query): Move to
16837 (gimple_range_global): Same.
16838 * tree-ssanames.c (get_range_info): Move to value-query.cc.
16839 (get_ptr_nonnull): Same.
16840 * tree-ssanames.h (get_range_info): Remove.
16841 (get_ptr_nonnull): Remove.
16842 * value-query.cc (get_ssa_name_range_info): Move from
16844 (get_ssa_name_ptr_info_nonnull): Same.
16845 (get_range_global): Move from gimple-range.cc.
16846 (gimple_range_global): Same.
16847 (get_global_range_query): Same.
16848 (global_range_query::range_of_expr): Same.
16849 * value-query.h (class global_range_query): Move from
16851 (gimple_range_global): Same.
16853 2021-05-27 Uroš Bizjak <ubizjak@gmail.com>
16856 * config/i386/mmx.md (uavgv4qi3_ceil): New insn pattern.
16857 (uavgv2hi3_ceil): Ditto.
16859 2021-05-26 Eric Botcazou <ebotcazou@adacore.com>
16862 * doc/extend.texi (scalar_storage_order): Rephrase slightly.
16864 2021-05-26 Aldy Hernandez <aldyh@redhat.com>
16866 * tree-ssanames.c (get_range_info): Merge both copies of
16867 get_range_info into one that works with irange.
16868 * tree-ssanames.h (get_range_info): Remove version that works on
16871 2021-05-26 Aldy Hernandez <aldyh@redhat.com>
16873 * builtins.c (check_nul_terminated_array): Convert to get_range_query.
16874 (expand_builtin_strnlen): Same.
16875 (determine_block_size): Same.
16876 * fold-const.c (expr_not_equal_to): Same.
16877 * gimple-fold.c (size_must_be_zero_p): Same.
16878 * gimple-match-head.c: Include gimple-range.h.
16879 * gimple-pretty-print.c (dump_ssaname_info): Convert to get_range_query.
16880 * gimple-ssa-warn-restrict.c
16881 (builtin_memref::extend_offset_range): Same.
16882 * graphite-sese-to-poly.c (add_param_constraints): Same.
16883 * internal-fn.c (get_min_precision): Same.
16884 * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Same.
16885 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
16887 * tree-data-ref.c (split_constant_offset): Same.
16888 (dr_step_indicator): Same.
16889 * tree-dfa.c (get_ref_base_and_extent): Same.
16890 * tree-scalar-evolution.c (iv_can_overflow_p): Same.
16891 * tree-ssa-loop-niter.c (refine_value_range_using_guard): Same.
16892 (determine_value_range): Same.
16893 (record_nonwrapping_iv): Same.
16894 (infer_loop_bounds_from_signedness): Same.
16895 (scev_var_range_cant_overflow): Same.
16896 * tree-ssa-phiopt.c (two_value_replacement): Same.
16897 * tree-ssa-pre.c (insert_into_preds_of_block): Same.
16898 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Same.
16899 * tree-ssa-strlen.c (handle_builtin_stxncpy_strncat): Same.
16901 (dump_strlen_info): Same.
16902 (set_strlen_range): Same.
16903 (maybe_diag_stxncpy_trunc): Same.
16904 (get_len_or_size): Same.
16905 (handle_integral_assign): Same.
16906 * tree-ssa-structalias.c (find_what_p_points_to): Same.
16907 * tree-ssa-uninit.c (find_var_cmp_const): Same.
16908 * tree-switch-conversion.c (bit_test_cluster::emit): Same.
16909 * tree-vect-patterns.c (vect_get_range_info): Same.
16910 (vect_recog_divmod_pattern): Same.
16911 * tree-vrp.c (intersect_range_with_nonzero_bits): Same.
16912 (register_edge_assert_for_2): Same.
16913 (determine_value_range_1): Same.
16914 * tree.c (get_range_pos_neg): Same.
16915 * vr-values.c (vr_values::get_lattice_entry): Same.
16916 (vr_values::update_value_range): Same.
16917 (simplify_conversion_using_ranges): Same.
16919 2021-05-26 Aldy Hernandez <aldyh@redhat.com>
16921 * gimple-ssa-warn-alloca.c (alloca_call_type): Use
16922 get_range_query instead of query argument.
16923 (pass_walloca::execute): Enable and disable global ranger.
16925 2021-05-26 Aldy Hernandez <aldyh@redhat.com>
16927 * gimple-ssa-evrp.c (rvrp_folder::rvrp_folder): Call
16929 (rvrp_folder::~rvrp_folder): Call disable_ranger.
16930 (hybrid_folder::hybrid_folder): Call enable_ranger.
16931 (hybrid_folder::~hybrid_folder): Call disable_ranger.
16933 2021-05-26 Aldy Hernandez <aldyh@redhat.com>
16935 * function.c (allocate_struct_function): Set cfun->x_range_query.
16936 * function.h (struct function): Declare x_range_query.
16937 (get_range_query): New.
16938 (get_global_range_query): New.
16939 * gimple-range-cache.cc (ssa_global_cache::ssa_global_cache):
16940 Remove call to safe_grow_cleared.
16941 * gimple-range.cc (get_range_global): New.
16942 (gimple_range_global): Move from gimple-range.h.
16943 (get_global_range_query): New.
16944 (global_range_query::range_of_expr): New.
16945 (enable_ranger): New.
16946 (disable_ranger): New.
16947 * gimple-range.h (gimple_range_global): Move to gimple-range.cc.
16948 (class global_range_query): New.
16949 (enable_ranger): New.
16950 (disable_ranger): New.
16951 * gimple-ssa-evrp.c (evrp_folder::~evrp_folder): Rename
16952 dump_all_value_ranges to dump.
16953 * tree-vrp.c (vrp_prop::finalize): Same.
16954 * value-query.cc (range_query::dump): New.
16955 * value-query.h (range_query::dump): New.
16956 * vr-values.c (vr_values::dump_all_value_ranges): Rename to...
16957 (vr_values::dump): ...this.
16958 * vr-values.h (class vr_values): Rename dump_all_value_ranges to
16959 dump and make virtual.
16961 2021-05-26 Uroš Bizjak <ubizjak@gmail.com>
16963 * config/i386/i386.c (ix86_autovectorize_vector_modes):
16964 Add V4QImode and V16QImode for TARGET_SSE2.
16965 * doc/sourcebuild.texi (Vector-specific attributes):
16966 Add vect64 and vect32 description.
16968 2021-05-26 Bernd Edlinger <bernd.edlinger@hotmail.de>
16970 * gimple-range-gori.cc (range_def_chain::register_dependency):
16971 Resize m_def_chain when needed.
16973 2021-05-26 Christophe Lyon <christophe.lyon@linaro.org>
16975 * config/arm/mve.md (mve_vaddvq_<supf><mode>): Prefix with '@'.
16976 * config/arm/neon.md (reduc_plus_scal_<mode>): Move to ..
16977 * config/arm/vec-common.md: .. here. Add support for MVE.
16979 2021-05-26 Jakub Jelinek <jakub@redhat.com>
16981 * config/epiphany/epiphany.c (epiphany_print_operand_address): Remove
16983 * config/microblaze/microblaze.c (microblaze_legitimize_address,
16985 microblaze_option_override, print_operand): Likewise.
16986 * config/microblaze/microblaze.md (call_internal_plt,
16987 call_value_intern_plt, call_value_intern): Likewise.
16988 * config/arm/aout.h (ASM_OUTPUT_ALIGN): Likewise.
16989 * config/iq2000/iq2000.md (call_internal1, call_value_internal1,
16990 call_value_multiple_internal1): Likewise.
16991 * config/bfin/bfin.c (symbolic_reference_mentioned_p): Likewise.
16993 2021-05-26 Jan-Benedict Glaw <jbglaw@lug-owl.de>
16995 * config/arc/arc.c (arc_address_cost, arc_print_operand_address,
16996 arc_ccfsm_advance, symbolic_reference_mentioned_p,
16997 arc_raw_symbolic_reference_mentioned_p): Remove register
17000 2021-05-26 Jakub Jelinek <jakub@redhat.com>
17003 * omp-low.c: Include omp-offload.h.
17004 (create_omp_child_function): If current_function_decl has
17005 "omp declare target" attribute and is_gimple_omp_offloaded,
17006 remove that attribute from the copy of attribute list and
17007 add "omp target entrypoint" attribute instead.
17008 (lower_omp_target): Mark .omp_data_sizes.* and .omp_data_kinds.*
17009 variables for offloading if in omp_maybe_offloaded_ctx.
17010 * omp-offload.c (pass_omp_target_link::execute): Nullify second
17011 argument to GOMP_target_data_ext in offloaded code.
17013 2021-05-26 Geng Qi <gengqi@linux.alibaba.com>
17015 * config/csky/csky.c (csky_can_change_mode_class): Delete.
17016 For csky, HF/SF mode use the low bits of VREGS.
17018 2021-05-26 Eric Botcazou <ebotcazou@adacore.com>
17020 * gimplify.c (gimplify_decl_expr): Do not clear TREE_READONLY on a
17021 DECL which is a reference for OMP.
17023 2021-05-26 Martin Liska <mliska@suse.cz>
17025 PR gcov-profile/100751
17026 * doc/gcov.texi: Document that __gcov_dump can be called just
17027 once and that __gcov_reset resets run-time counters.
17029 2021-05-26 Martin Liska <mliska@suse.cz>
17031 * doc/install.texi: Port relevant part from install-old.texi
17032 and re-generate list of CPUs and systems.
17034 2021-05-26 Martin Liska <mliska@suse.cz>
17036 * Makefile.in: Remove it.
17037 * doc/include/fdl.texi: Update next/previous chapters.
17038 * doc/install.texi: Likewise.
17039 * doc/install-old.texi: Removed.
17041 2021-05-26 Geng Qi <gengqi@linux.alibaba.com>
17043 * config/csky/csky.c (ck810_legitimate_index_p): Support
17044 "base + index" with DF mode.
17045 * config/csky/constraints.md ("Y"): New constraint for memory operands
17046 without index register.
17047 * config/csky/csky_insn_fpuv2.md (fpuv3_movdf): Use "Y" instead of "m"
17048 when mov between memory and general registers, and lower their priority.
17049 * config/csky/csky_insn_fpuv3.md (fpuv2_movdf): Likewise.
17051 2021-05-26 Geng Qi <gengqi@linux.alibaba.com>
17053 * config/csky/csky.c (TARGET_PROMOTE_PROTOTYPES): Delete.
17055 2021-05-26 Geng Qi <gengqi@linux.alibaba.com>
17057 * config/csky/csky.md (untyped_call): Emit clobber for return
17058 registers to mark them used.
17060 2021-05-26 Geng Qi <gengqi@linux.alibaba.com>
17062 * config/csky/csky.md (cskyv2_sextend_ldbs): New.
17064 2021-05-26 Andrew Pinski <apinski@marvell.com>
17066 * match.pd (x < 0 ? ~y : y): New patterns.
17068 2021-05-26 Andrew Pinski <apinski@marvell.com>
17070 * match.pd (A?CST1:CST2): Add simplifcations for A?0:+-1, A?+-1:0,
17071 A?POW2:0 and A?0:POW2.
17073 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
17075 * gimple-range-gori.cc (class logical_stmt_cache): Delete
17076 (logical_stmt_cache::logical_stmt_cache ): Delete.
17077 (logical_stmt_cache::~logical_stmt_cache): Delete.
17078 (logical_stmt_cache::cache_entry::dump): Delete.
17079 (logical_stmt_cache::get_range): Delete.
17080 (logical_stmt_cache::cached_name ): Delete.
17081 (logical_stmt_cache::same_cached_name): Delete.
17082 (logical_stmt_cache::cacheable_p): Delete.
17083 (logical_stmt_cache::slot_diagnostics ): Delete.
17084 (logical_stmt_cache::dump): Delete.
17085 (gori_compute_cache::gori_compute_cache): Delete.
17086 (gori_compute_cache::~gori_compute_cache): Delete.
17087 (gori_compute_cache::compute_operand_range): Delete.
17088 (gori_compute_cache::cache_stmt): Delete.
17089 * gimple-range-gori.h (gori_compute::compute_operand_range): Remove
17091 (class gori_compute_cache): Delete.
17093 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
17095 * gimple-range.cc (fold_using_range::range_of_range_op): Use m_gori
17097 (fold_using_range::range_of_address): Adjust.
17098 (fold_using_range::range_of_phi): Adjust.
17099 * gimple-range.h (class fur_source): Adjust.
17100 (fur_source::fur_source): Adjust.
17102 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
17104 * gimple-range-gori.cc (gori_compute::expr_range_at_stmt): Rename
17105 from expr_range_in_bb and adjust.
17106 (gori_compute::compute_name_range_op): Adjust.
17107 (gori_compute::optimize_logical_operands): Adjust.
17108 (gori_compute::compute_logical_operands_in_chain): Adjust.
17109 (gori_compute::compute_operand1_range): Adjust.
17110 (gori_compute::compute_operand2_range): Adjust.
17111 (ori_compute_cache::cache_stmt): Adjust.
17112 * gimple-range-gori.h (gori_compute): Rename prototype.
17114 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
17116 * gimple-range.cc (gimple_ranger::range_of_expr): Non-null should be
17117 checked only after range_of_stmt, not range_on_entry.
17118 (gimple_ranger::range_on_entry): Check for non-null in any
17119 predecessor block, if it is not already non-null.
17120 (gimple_ranger::range_on_exit): DOnt check for non-null after
17121 range on entry call.
17122 (gimple_ranger::dump_bb): New. Split from dump.
17123 (gimple_ranger::dump): Adjust.
17124 * gimple-range.h (class gimple_ranger): Adjust.
17126 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
17128 * gimple-range-cache.cc (struct range_timestamp): Delete.
17129 (class temporal_cache): Adjust.
17130 (temporal_cache::get_timestamp): Delete.
17131 (temporal_cache::set_dependency): Delete.
17132 (temporal_cache::temporal_value): Adjust.
17133 (temporal_cache::current_p): Take dependencies as params.
17134 (temporal_cache::set_timestamp): Adjust.
17135 (temporal_cache::set_always_current): Adjust.
17136 (ranger_cache::get_non_stale_global_range): Adjust.
17137 (ranger_cache::register_dependency): Delete.
17138 * gimple-range-cache.h (class range_cache): Adjust.
17140 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
17142 * gimple-range-gori.cc (range_def_chain::range_def_chain): init
17144 (range_def_chain::~range_def_chain): Dispose of obstack rather than
17145 each individual bitmap.
17146 (range_def_chain::set_import): New.
17147 (range_def_chain::get_imports): New.
17148 (range_def_chain::chain_import_p): New.
17149 (range_def_chain::register_dependency): Rename from build_def_chain
17151 (range_def_chain::def_chain_in_bitmap_p): New.
17152 (range_def_chain::add_def_chain_to_bitmap): New.
17153 (range_def_chain::has_def_chain): Just check first depenedence.
17154 (range_def_chain::get_def_chain): Process imports, use generic
17155 register_dependency routine.
17156 (range_def_chain::dump): New.
17157 (gori_map::gori_map): Allocate import list.
17158 (gori_map::~gori_map): Release imports.
17159 (gori_map::exports): Check for past allocated block size.
17160 (gori_map::imports): New.
17161 (gori_map::def_chain_in_export_p): Delete.
17162 (gori_map::is_import_p): New.
17163 (gori_map::maybe_add_gori): Handle imports.
17164 (gori_map::dump): Adjust output, add imports.
17165 (gori_compute::has_edge_range_p): Remove def_chain_in_export call.
17166 (gori_export_iterator::gori_export_iterator): New.
17167 (gori_export_iterator::next): New.
17168 (gori_export_iterator::get_name): New.
17169 * gimple-range-gori.h (range_def_chain): Add imports and direct
17170 dependecies via struct rdc.
17171 (range_def_chain::depend1): New.
17172 (range_def_chain::depend2): New.
17173 (class gori_map): Adjust.
17174 (FOR_EACH_GORI_IMPORT_NAME): New.
17175 (FOR_EACH_GORI_EXPORT_NAME): New.
17176 (class gori_export_iterator): New.
17178 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
17180 * gimple-range-cache.cc (ranger_cache::ranger_cache): Move initial
17181 export cache filling to here.
17182 * gimple-range-gori.cc (gori_compute::gori_compute) : From Here.
17184 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
17186 * gimple-range-gori.cc (range_def_chain): Move to gimple-range-gori.h.
17187 (gori_map): Move to gimple-range-gori.h.
17188 (gori_compute::gori_compute): Adjust.
17189 (gori_compute::~gori_compute): Delete.
17190 (gori_compute::compute_operand_range_switch): Adjust.
17191 (gori_compute::compute_operand_range): Adjust.
17192 (gori_compute::compute_logical_operands): Adjust.
17193 (gori_compute::has_edge_range_p ): Adjust.
17194 (gori_compute::set_range_invariant): Delete.
17195 (gori_compute::dump): Adjust.
17196 (gori_compute::outgoing_edge_range_p): Adjust.
17197 * gimple-range-gori.h (class range_def_chain): Relocate here.
17198 (class gori_map): Relocate here.
17199 (class gori_compute): Inherit from gori_map, and adjust.
17201 2021-05-25 Aldy Hernandez <aldyh@redhat.com>
17203 * value-range.cc (range_tests_legacy): Use
17204 build_nonstandard_integer_type instead of int and short.
17206 2021-05-25 Eric Botcazou <ebotcazou@adacore.com>
17208 * gimplify.c (gimplify_decl_expr): Clear TREE_READONLY on the DECL
17209 when really creating an initialization statement for it.
17211 2021-05-25 Eric Botcazou <ebotcazou@adacore.com>
17213 * tree-inline.c (setup_one_parameter): Fix thinko in new condition.
17215 2021-05-25 Kito Cheng <kito.cheng@sifive.com>
17217 * config/riscv/riscv.h (ASM_SPEC): Pass -mno-relax.
17219 2021-05-25 Martin Liska <mliska@suse.cz>
17221 PR tree-optimization/92860
17223 * optc-save-gen.awk: Remove exceptions.
17225 2021-05-25 Martin Liska <mliska@suse.cz>
17227 * asan.h (sanitize_coverage_p): New function.
17228 * doc/extend.texi: Document it.
17229 * fold-const.c (fold_range_test): Use sanitize_flags_p
17230 instead of flag_sanitize_coverage.
17231 (fold_truth_andor): Likewise.
17232 * sancov.c: Likewise.
17233 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
17234 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Handle
17235 -fsanitize-coverage when inlining.
17237 2021-05-25 Cooper Qu <cooper.qu@linux.alibaba.com>
17239 * config/csky/csky-modes.def : Fix copyright.
17241 2021-05-25 Cooper Qu <cooper.qu@linux.alibaba.com>
17243 * config/csky/csky-modes.def : Amend copyright.
17244 * config/csky/csky_insn_fpuv2.md : Likewise.
17245 * config/csky/csky_insn_fpuv3.md : Likewise.
17247 2021-05-25 Richard Biener <rguenther@suse.de>
17249 PR middle-end/100727
17250 * calls.c (initialize_argument_information): Explicitely test
17251 for WITH_SIZE_EXPR.
17252 * gimple-expr.c (mark_addressable): Skip outer WITH_SIZE_EXPR.
17254 2021-05-25 Geng Qi <gengqi@linux.alibaba.com>
17256 * config/csky/csky.h (FRAME_POINTER_REGNUM): Use
17257 HARD_FRAME_POINTER_REGNUM and FRAME_POINTER_REGNUM instead of
17258 the signle definition. The signle definition may not work well
17259 at simplify_subreg_regno().
17260 (HARD_FRAME_POINTER_REGNUM): New.
17261 (ELIMINABLE_REGS): Add for HARD_FRAME_POINTER_REGNUM.
17262 * config/csky/csky.c (get_csky_live_regs, csky_can_eliminate,
17263 csky_initial_elimination_offset, csky_expand_prologue,
17264 csky_expand_epilogue): Add for HARD_FRAME_POINTER_REGNUM.
17266 2021-05-25 Geng Qi <gengqi@linux.alibaba.com>
17268 * config/csky/csky.c (csky_option_override):
17269 Init csky_arch_isa_features[] in advance, so TARGET_DSP
17270 and TARGET_DIV can be set well.
17272 2021-05-25 Geng Qi <gengqi@linux.alibaba.com>
17274 * config/csky/constraints.md ("l", "h"): Delete.
17275 * config/csky/csky.h (reg_class, REG_CLASS_NAMES,
17276 REG_CLASS_CONTENTS): Delete LO_REGS and HI_REGS.
17277 * config/csky/csky.c (regno_reg_classm,
17278 csky_secondary_reload, csky_register_move_cost):
17279 Use HILO_REGS instead of LO_REGS and HI_REGS.
17281 2021-05-25 Geng Qi <gengqi@linux.alibaba.com>
17283 * config/csky/constraints.md ("W"): New constriant for mem operand
17284 with base reg, index register.
17285 ("Q"): Renamed and modified "csky_valid_fpuv2_mem_operand" to
17286 "csky_valid_mem_constraint_operand" to deal with both "Q" and "W"
17288 ("Dv"): New constraint for const double value that can be used at
17290 * config/csky/csky-modes.def (HFmode): New mode.
17291 * config/csky/csky-protos.h (csky_valid_fpuv2_mem_operand): Rename
17292 to "csky_valid_mem_constraint_operand" and support new constraint
17294 (csky_get_movedouble_length): New.
17295 (fpuv3_output_move): New.
17296 (fpuv3_const_double): New.
17297 * config/csky/csky.c (csky_option_override): New arch CK860 with fpv3.
17298 (decompose_csky_address): Refine.
17299 (csky_print_operand): New "CONST_DOUBLE" operand.
17300 (csky_output_move): Support fpv3 instructions.
17301 (csky_get_movedouble_length): New.
17302 (fpuv3_output_move): New.
17303 (fpuv3_const_double): New.
17304 (csky_emit_compare): Cover float comparsion.
17305 (csky_emit_compare_float): Refine.
17306 (csky_vaild_fpuv2_mem_operand): Rename to
17307 "csky_valid_mem_constraint_operand" and support new constraint "W".
17308 (ck860_rtx_costs): New.
17309 (csky_rtx_costs): Add the cost calculation of CK860.
17310 (regno_reg_class): New vregs for fpuv3.
17311 (csky_dbx_regno): Likewise.
17312 (csky_cpu_cpp_builtins): New builtin macro for fpuv3.
17313 (csky_conditional_register_usage): Suporrot fpuv3.
17314 (csky_dwarf_register_span): Suporrot fpuv3.
17315 (csky_init_builtins, csky_mangle_type): Support "__fp16" type.
17316 (ck810_legitimate_index_p): Support fp16.
17317 * config/csky/csky.h (TARGET_TLS): ADD CK860.
17318 (CSKY_VREG_P, CSKY_VREG_LO_P, CSKY_VREG_HI_P): Support fpuv3.
17319 (TARGET_SINGLE_FPU): Support fpuv3.
17320 (TARGET_SUPPORT_FPV3): New.
17321 (FIRST_PSEUDO_REGISTER): Change to 202 to hold the new fpuv3 registers.
17322 (FIXED_REGISTERS, CALL_REALLY_USED_REGISTERS, REGISTER_NAMES,
17323 REG_CLASS_CONTENTS): Support fpuv3.
17324 * config/csky/csky.md (movsf): Move to cksy_insn_fpu.md and refine.
17325 (csky_movsf_fpv2): Likewise.
17326 (ck801_movsf): Likewise.
17327 (csky_movsf): Likewise.
17329 (csky_movdf_fpv2): Likewise.
17330 (ck801_movdf): Likewise.
17331 (csky_movdf): Likewise.
17332 (movsicc): Refine. Use "comparison_operatior" instead of
17333 "ordered_comparison_operatior".
17334 (addsicc): Likewise.
17335 (CSKY_FIRST_VFP3_REGNUM, CSKY_LAST_VFP3_REGNUM): New constant.
17336 (call_value_internal_vh): New.
17337 * config/csky/csky_cores.def (CK860): New arch and cpu.
17342 * config/csky/csky_insn_fpu.md: Refactor. Separate all float patterns
17343 into emit-patterns and match-patterns, remain the emit-patterns here,
17344 and move the match-patterns to csky_insn_fpuv2.md or
17345 csky_insn_fpuv3.md.
17346 * config/csky/csky_insn_fpuv2.md: New file for fpuv2 instructions.
17347 * config/csky/csky_insn_fpuv3.md: New file and new patterns for fpuv3
17349 * config/csky/csky_isa.def (fcr): New.
17354 (CK860): New definition for ck860.
17355 * config/csky/csky_tables.opt (ck860): New processors ck860,
17356 ck860f. And new arch ck860.
17361 * config/csky/predicates.md (csky_float_comparsion_operator): Delete
17362 "geu", "gtu", "leu", "ltu", which will never appear at float comparison.
17363 * config/csky/t-csky-elf: Support 860.
17364 * config/csky/t-csky-linux: Likewise.
17365 * doc/md.texi: Add "Q" and "W" constraints for C-SKY.
17367 2021-05-24 Aaron Sawdey <acsawdey@linux.ibm.com>
17369 * config/rs6000/genfusion.pl (gen_logical_addsubf): Refactor to
17370 add generation of logical-add and add-logical fusion pairs.
17371 * config/rs6000/rs6000-cpus.def: Add new fusion to ISA 3.1 mask
17373 * config/rs6000/rs6000.c (rs6000_option_override_internal): Turn on
17374 logical-add and add-logical fusion by default.
17375 * config/rs6000/rs6000.opt: Add -mpower10-fusion-logical-add and
17376 -mpower10-fusion-add-logical options.
17377 * config/rs6000/fusion.md: Regenerate file.
17379 2021-05-24 Aldy Hernandez <aldyh@redhat.com>
17381 * value-range.cc (irange::legacy_equal_p): Check type when
17382 comparing VR_VARYING types.
17383 (range_tests_legacy): Test comparing VARYING ranges of different
17386 2021-05-24 Wilco Dijkstra <wdijkstr@arm.com>
17388 * config/aarch64/aarch64.c (neoversen1_tunings):
17389 Enable AARCH64_EXTRA_TUNE_CHEAP_SHIFT_EXTEND.
17391 2021-05-24 Wilco Dijkstra <wdijkstr@arm.com>
17393 * config/aarch64/aarch64.c (aarch64_classify_symbol): Use GOT for
17394 extern weak symbols. Limit symbol offsets for non-GOT symbols with
17397 2021-05-24 Christophe Lyon <christophe.lyon@linaro.org>
17399 * config/arm/neon.md (vec_load_lanesxi<mode>)
17400 (vec_store_lanexoi<mode>): Move ...
17401 * config/arm/vec-common.md: here.
17403 2021-05-24 Christophe Lyon <christophe.lyon@linaro.org>
17405 * config/arm/neon.md (vec_load_lanesoi<mode>)
17406 (vec_store_lanesoi<mode>): Move ...
17407 * config/arm/vec-common.md: here.
17409 2021-05-24 liuhongt <hongtao.liu@intel.com>
17412 * config/i386/i386.c (ix86_gimple_fold_builtin): Replacing
17413 stmt with GIMPLE_NOP when lhs doesn't exist.
17415 2021-05-23 Uroš Bizjak <ubizjak@gmail.com>
17418 * config/i386/mmx.md (*push<VI_32:mode>2_rex64):
17419 New instruction pattern.
17420 (*push<VI_32:mode>2): Ditto.
17421 (push splitter for SSE registers): New splitter.
17423 2021-05-23 Andrew Pinski <apinski@marvell.com>
17425 * match.pd ((A & C) != 0 ? D : 0): Limit to non pointer types.
17427 2021-05-22 Aaron Sawdey <acsawdey@linux.ibm.com>
17429 * config/rs6000/genfusion.pl (gen_addadd): Fix incorrect attr types.
17430 * config/rs6000/fusion.md: Regenerate file.
17432 2021-05-21 Aaron Sawdey <acsawdey@linux.ibm.com>
17434 * config/rs6000/genfusion.pl (gen_addadd): New function.
17435 * config/rs6000/fusion.md: Regenerate file.
17436 * config/rs6000/rs6000-cpus.def: Add
17437 OPTION_MASK_P10_FUSION_2ADD to masks.
17438 * config/rs6000/rs6000.c (rs6000_option_override_internal):
17439 Handle default value of OPTION_MASK_P10_FUSION_2ADD.
17440 * config/rs6000/rs6000.opt: Add -mpower10-fusion-2add.
17442 2021-05-21 Jakub Jelinek <jakub@redhat.com>
17444 PR middle-end/99928
17445 * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT_TARGET): Define.
17446 * gimplify.c (enum gimplify_omp_var_data): Fix up
17447 GOVD_MAP_HAS_ATTACHMENTS value, add GOVD_FIRSTPRIVATE_IMPLICIT.
17448 (omp_lastprivate_for_combined_outer_constructs): If combined target
17449 has GOVD_FIRSTPRIVATE_IMPLICIT set for the decl, change it to
17450 GOVD_MAP | GOVD_SEEN.
17451 (gimplify_scan_omp_clauses): Set GOVD_FIRSTPRIVATE_IMPLICIT for
17452 firstprivate clauses with OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT.
17453 (gimplify_adjust_omp_clauses): For firstprivate clauses with
17454 OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT either clear that bit and
17455 OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT_TARGET too, or remove it and
17456 let it be replaced by implicit map clause.
17458 2021-05-21 Jakub Jelinek <jakub@redhat.com>
17460 PR middle-end/99928
17461 * gimplify.c (omp_lastprivate_for_combined_outer_constructs): New
17463 (gimplify_scan_omp_clauses) <case OMP_CLAUSE_LASTPRIVATE>: Use it.
17464 (gimplify_omp_for): Likewise.
17466 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
17468 PR middle-end/90115
17469 * omp-low.c (oacc_privatization_candidate_p): Reject 'static',
17470 'external' in blocks.
17472 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
17474 PR middle-end/90115
17475 * flag-types.h (enum openacc_privatization): New.
17476 * params.opt (-param=openacc-privatization): New.
17477 * doc/invoke.texi (openacc-privatization): Document it.
17478 * omp-general.h (get_openacc_privatization_dump_flags): New
17480 * omp-low.c (oacc_privatization_candidate_p): Add diagnostics.
17481 * omp-offload.c (execute_oacc_device_lower)
17482 <IFN_UNIQUE_OACC_PRIVATE>: Re-work diagnostics.
17483 * target.def (goacc.adjust_private_decl): Add 'location_t'
17485 * doc/tm.texi: Regenerate.
17486 * config/gcn/gcn-protos.h (gcn_goacc_adjust_private_decl): Adjust.
17487 * config/gcn/gcn-tree.c (gcn_goacc_adjust_private_decl): Likewise.
17488 * config/nvptx/nvptx.c (nvptx_goacc_adjust_private_decl):
17489 Likewise. Preserve it for...
17490 (nvptx_goacc_expand_var_decl): ... use here.
17492 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
17494 * doc/sourcebuild.texi (Other attributes): Document '__OPTIMIZE__'
17497 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
17499 PR middle-end/90115
17500 * omp-low.c (oacc_privatization_candidate_p): New function.
17501 (oacc_privatization_scan_clause_chain)
17502 (oacc_privatization_scan_decl_chain): Use it. Also
17503 'gcc_checking_assert' that we're not seeing duplicates.
17505 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
17507 PR middle-end/90115
17508 * omp-offload.c (execute_oacc_device_lower): Skip processing if no
17511 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
17513 PR middle-end/90115
17514 * omp-offload.c (execute_oacc_device_lower): Explain.
17516 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
17518 PR middle-end/90115
17519 * omp-offload.c (execute_oacc_device_lower)
17520 <IFN_UNIQUE_OACC_PRIVATE>: Diagnose and handle for 'level == -1'
17522 * internal-fn.c (expand_UNIQUE): Don't expect
17523 'IFN_UNIQUE_OACC_PRIVATE'.
17525 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
17527 PR middle-end/90115
17528 * omp-low.c (lower_omp_for): Don't evaluate OpenMP 'for' clauses.
17530 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
17532 PR middle-end/90115
17533 * config/nvptx/nvptx.c (nvptx_goacc_adjust_private_decl)
17534 (nvptx_goacc_expand_var_decl): Tighten.
17536 2021-05-21 Julian Brown <julian@codesourcery.com>
17537 Chung-Lin Tang <cltang@codesourcery.com>
17538 Thomas Schwinge <thomas@codesourcery.com>
17540 PR middle-end/90115
17541 * doc/tm.texi.in (TARGET_GOACC_EXPAND_VAR_DECL)
17542 (TARGET_GOACC_ADJUST_PRIVATE_DECL): Add documentation hooks.
17543 * doc/tm.texi: Regenerate.
17544 * expr.c (expand_expr_real_1): Expand decls using the
17545 expand_var_decl OpenACC hook if defined.
17546 * internal-fn.c (expand_UNIQUE): Handle IFN_UNIQUE_OACC_PRIVATE.
17547 * internal-fn.h (IFN_UNIQUE_CODES): Add OACC_PRIVATE.
17548 * omp-low.c (omp_context): Add oacc_privatization_candidates
17550 (lower_oacc_reductions): Add PRIVATE_MARKER parameter. Insert
17552 (lower_oacc_head_tail): Add PRIVATE_MARKER parameter. Modify
17553 private marker's gimple call arguments, and pass it to
17554 lower_oacc_reductions.
17555 (oacc_privatization_scan_clause_chain)
17556 (oacc_privatization_scan_decl_chain, lower_oacc_private_marker):
17558 (lower_omp_for, lower_omp_target, lower_omp_1): Use these.
17559 * omp-offload.c (convert.h): Include.
17560 (oacc_loop_xform_head_tail): Treat private-variable markers like
17561 fork/join when transforming head/tail sequences.
17562 (struct var_decl_rewrite_info): Add struct.
17563 (oacc_rewrite_var_decl, is_sync_builtin_call): New functions.
17564 (execute_oacc_device_lower): Support rewriting gang-private
17565 variables using target hook, and fix up addr_expr and var_decl
17567 * target.def (adjust_private_decl, expand_var_decl): New hooks.
17568 * config/gcn/gcn-protos.h (gcn_goacc_adjust_gangprivate_decl):
17570 (gcn_goacc_adjust_private_decl): ...this.
17571 * config/gcn/gcn-tree.c (gcn_goacc_adjust_gangprivate_decl):
17573 (gcn_goacc_adjust_private_decl): ...this. Add LEVEL parameter.
17574 * config/gcn/gcn.c (TARGET_GOACC_ADJUST_GANGPRIVATE_DECL): Rename
17575 definition using gcn_goacc_adjust_gangprivate_decl...
17576 (TARGET_GOACC_ADJUST_PRIVATE_DECL): ...to this, using
17577 gcn_goacc_adjust_private_decl.
17578 * config/nvptx/nvptx.c (tree-pretty-print.h): Include.
17579 (gang_private_shared_size): New global variable.
17580 (gang_private_shared_align): Likewise.
17581 (gang_private_shared_sym): Likewise.
17582 (gang_private_shared_hmap): Likewise.
17583 (nvptx_option_override): Initialize these.
17584 (nvptx_file_end): Output gang_private_shared_sym.
17585 (nvptx_goacc_adjust_private_decl, nvptx_goacc_expand_var_decl):
17587 (nvptx_set_current_function): Clear gang_private_shared_hmap.
17588 (TARGET_GOACC_ADJUST_PRIVATE_DECL): Define hook.
17589 (TARGET_GOACC_EXPAND_VAR_DECL): Likewise.
17591 2021-05-21 H.J. Lu <hjl.tools@gmail.com>
17593 * config/i386/i386-modes.def (MAX_BITSIZE_MODE_ANY_INT): Removed.
17595 2021-05-21 Richard Biener <rguenther@suse.de>
17596 H.J. Lu <hjl.tools@gmail.com>
17598 PR middle-end/90773
17599 * expr.c (expand_constructor): Elide expand_constructor if
17600 move by pieces is preferred.
17602 2021-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17604 * config/aarch64/aarch64-builtins.c (aarch64_call_properties):
17605 Take a flag and mode value as arguments.
17606 (aarch64_modifies_global_state_p): Likewise.
17607 (aarch64_reads_global_state_p): Likewise.
17608 (aarch64_could_trap_p): Likewise.
17609 (aarch64_get_attributes): Likewise.
17610 (aarch64_init_simd_builtins): Adjust callsite of above.
17611 (aarch64_init_fcmla_laneq_builtins): Use aarch64_get_attributes to get
17612 function attributes to apply to builtins.
17613 (aarch64_init_crc32_builtins): Likewise.
17614 (aarch64_init_builtin_rsqrt): Likewise.
17616 2021-05-21 Aaron Sawdey <acsawdey@linux.ibm.com>
17618 * config/rs6000/rs6000.md (define_attr "type"): Add types for fusion.
17619 * config/rs6000/genfusion.pl (gen_ld_cmpi_p10): Use new fusion types.
17620 (gen_2logical): Use new fusion types.
17621 * config/rs6000/fusion.md: Regenerate.
17623 2021-05-21 Uroš Bizjak <ubizjak@gmail.com>
17626 * config/i386/i386-expand.c (ix86_expand_sse_movcc):
17627 Handle V4QI and V2HI modes.
17628 (ix86_expand_sse_movcc): Ditto.
17629 * config/i386/mmx.md (*<sat_plusminus:insn><VI_32:mode>3):
17630 New instruction pattern.
17631 (*eq<VI_32:mode>3): Ditto.
17632 (*gt<VI_32:mode>3): Ditto.
17633 (*xop_pcmov_<VI_32:mode>): Ditto.
17634 (mmx_pblendvb32): Ditto.
17635 (mmx_pblendvb64): Rename from mmx_pblendvb.
17636 (vec_cmp<VI_32:mode><VI_32:mode>): New expander.
17637 (vec_cmpu<VI_32:mode><VI_32:mode>): Ditto.
17638 (vcond<VI_32:mode><VI_32:mode>): Ditto.
17639 (vcondu<VI_32:mode><VI_32:mode>): Ditto.
17640 (vcond_mask_<VI_32:mode><VI_32:mode>): Ditto.
17642 2021-05-21 Jakub Jelinek <jakub@redhat.com>
17644 PR tree-optimization/94589
17645 * tree-ssa-phiopt.c (spaceship_replacement): For integral rhs1 and
17646 rhs2, treat x <= 4 equivalently to x < 5 etc. In cmp1 and cmp2 (if
17647 not the same as cmp3) treat <= the same as < and >= the same as >.
17648 Don't require that cond2_phi_edge is true edge, instead take
17649 false/true edges into account based on cmp1/cmp2 comparison kinds.
17651 2021-05-21 Uroš Bizjak <ubizjak@gmail.com>
17654 * config/i386/mmx.md (SMAXMIN_MMXMODEI): New mode iterator.
17655 (<smaxmin:code><SMAXMIN_MMXMODEI:mode>3): Macroize expander
17656 from <smaxmin:code>v4hi3> and <smaxmin:code><MMXMODE14:mode>3
17657 using SMAXMIN_MMXMODEI mode iterator.
17658 (*<smaxmin:code>v4qi3): New insn pattern.
17659 (*<smaxmin:code>v2hi3): Ditto.
17660 (SMAXMIN_VI_32): New mode iterator.
17661 (<smaxmin:code><SMAXMIN_VI_32>mode3): New expander.
17662 (UMAXMIN_MMXMODEI): New mode iterator.
17663 (<umaxmin:code><UMAXMIN_MMXMODEI:mode>3): Macroize expander
17664 from <umaxmin:code>v8qi3> and <umaxmin:code><MMXMODE24:mode>3
17665 using UMAXMIN_MMXMODEI mode iterator.
17666 (*<umaxmin:code>v4qi3): New insn pattern.
17667 (*<umaxmin:code>v2hi3): Ditto.
17668 (UMAXMIN_VI_32): New mode iterator.
17669 (<umaxmin:code><UMAXMIN_VI_32>mode3): New expander.
17670 (abs<VI_32:mode>2): New insn pattern.
17671 (ssse3_abs<MMXMODEI:mode>2, abs<MMXMODEI:mode>2): Move from ...
17672 * config/i386/sse.md: ... here.
17674 2021-05-20 Clement Chigot <clement.chigot@atos.net>
17675 David Edelsohn <dje.gcc@gmail.com>
17677 * collect2.c (scan_prog_file): Issue non-fatal warning for
17680 2021-05-20 Jonathan Wakely <jwakely@redhat.com>
17682 * doc/invoke.texi (-Wno-c++11-extensions)
17683 (-Wno-c++14-extensions, -Wno-c++17-extensions)
17684 (-Wno-c++20-extensions, -Wno-c++23-extensions): Document
17687 2021-05-20 Indu Bhagat <indu.bhagat@oracle.com>
17689 * config/c6x/c6x.c (c6x_output_file_unwind): Use dwarf_debuginfo_p.
17690 * config/darwin.c (darwin_override_options): Likewise.
17691 * config/i386/cygming.h (DBX_REGISTER_NUMBER): Likewise.
17692 * config/i386/darwin.h (DBX_REGISTER_NUMBER): Likewise.
17693 (DWARF2_FRAME_REG_OUT): Likewise.
17694 * config/mips/mips.c (mips_output_filename): Likewise.
17695 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name):
17697 (rs6000_dbx_register_number): Likewise.
17698 * dbxout.c: Include flags.h.
17699 * dwarf2cfi.c (cfi_label_required_p): Likewise.
17700 (dwarf2out_do_frame): Likewise.
17701 * except.c: Include flags.h.
17702 * final.c (dwarf2_debug_info_emitted_p): Likewise.
17703 (final_scan_insn_1): Likewise.
17704 * flags.h (dwarf_debuginfo_p): New function declaration.
17705 * opts.c (dwarf_debuginfo_p): New function definition.
17706 * targhooks.c (default_debug_unwind_info): Use dwarf_debuginfo_p.
17707 * toplev.c (process_options): Likewise.
17709 2021-05-20 Indu Bhagat <indu.bhagat@oracle.com>
17711 * common.opt: Change type to support bitmasks.
17712 * flag-types.h (enum debug_info_type): Rename enumerator constants.
17713 (NO_DEBUG): New bitmask.
17714 (DBX_DEBUG): Likewise.
17715 (DWARF2_DEBUG): Likewise.
17716 (XCOFF_DEBUG): Likewise.
17717 (VMS_DEBUG): Likewise.
17718 (VMS_AND_DWARF2_DEBUG): Likewise.
17719 * flags.h (debug_set_to_format): New function declaration.
17720 (debug_set_count): Likewise.
17721 (debug_set_names): Likewise.
17722 * opts.c (debug_type_masks): Array of bitmasks for debug formats.
17723 (debug_set_to_format): New function definition.
17724 (debug_set_count): Likewise.
17725 (debug_set_names): Likewise.
17726 (set_debug_level): Update access to debug_type_names.
17727 * toplev.c: Likewise.
17729 2021-05-20 Martin Sebor <msebor@redhat.com>
17731 PR middle-end/100684
17732 * tree-ssa-ccp.c (pass_post_ipa_warn::execute): Handle C++ lambda.
17734 2021-05-20 Uroš Bizjak <ubizjak@gmail.com>
17737 * config/i386/i386.md (isa): Remove x64_bmi.
17738 (enabled): Remove x64_bmi.
17739 * config/i386/mmx.md (mmx_andnot<MMXMODEI:mode>3):
17740 Remove general register alternative.
17741 (*andnot<VI_32:mode>3): Ditto.
17742 (*mmx_<any_logic:code><MMXMODEI:mode>3): Ditto.
17743 (*<any_logic:code><VI_32:mode>3): Ditto.
17745 2021-05-20 Kewen Lin <linkw@linux.ibm.com>
17747 * config/arm/arm.c: Include head files tree-vectorizer.h and
17750 2021-05-20 Uroš Bizjak <ubizjak@gmail.com>
17753 * config/i386/mmx.md (Yv_Yw): Revert adding V4QI and V2HI modes.
17754 (*<plusminus:insn><VI_32:mode>3): Use Yw instad of <Yv_Yw> constrint.
17755 (<s>mulv4hi3_highpart): New expander.
17756 (*<s>mulv2hi3_highpart): New insn pattern.
17757 (<s>mulv2hi3_higpart): New expander.
17758 (*<any_shift:insn>v2hi3): New insn pattern.
17759 (<any_shift:insn>v2hi3): New expander.
17760 * config/i386/sse.md (smulhrsv2hi3): New expander.
17761 (*smulhrsv2hi3): New insn pattern.
17763 2021-05-20 Kewen Lin <linkw@linux.ibm.com>
17765 * doc/invoke.texi (vect-inner-loop-cost-factor): Document new
17767 * params.opt (vect-inner-loop-cost-factor): New.
17768 * targhooks.c (default_add_stmt_cost): Replace hardcoded factor
17769 50 with LOOP_VINFO_INNER_LOOP_COST_FACTOR, include head file
17770 tree-vectorizer.h and its required ones.
17771 * config/aarch64/aarch64.c (aarch64_add_stmt_cost): Replace
17772 hardcoded factor 50 with LOOP_VINFO_INNER_LOOP_COST_FACTOR.
17773 * config/arm/arm.c (arm_add_stmt_cost): Likewise.
17774 * config/i386/i386.c (ix86_add_stmt_cost): Likewise.
17775 * config/rs6000/rs6000.c (rs6000_add_stmt_cost): Likewise.
17776 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
17778 (_loop_vec_info::_loop_vec_info): Init inner_loop_cost_factor.
17779 * tree-vectorizer.h (_loop_vec_info): Add inner_loop_cost_factor.
17780 (LOOP_VINFO_INNER_LOOP_COST_FACTOR): New macro.
17782 2021-05-20 Christophe Lyon <christophe.lyon@linaro.org>
17783 Torbjörn Svensson <torbjorn.svensson@st.com>
17786 * doc/cpp.texi (Common Predefined Macros): Document __FILE_NAME__.
17788 2021-05-20 Jakub Jelinek <jakub@redhat.com>
17790 PR middle-end/99928
17791 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_LINEAR>: For
17792 explicit linear clause when combined with target, make it map(tofrom:)
17793 instead of no clause or firstprivate.
17795 2021-05-20 Jakub Jelinek <jakub@redhat.com>
17797 PR tree-optimization/94589
17798 * match.pd ((X & Y) == X -> (X & ~Y) == 0): Simplify even in presence
17799 of integral conversions.
17801 2021-05-19 Andrew MacLeod <amacleod@redhat.com>
17803 * gimple-range.cc (fur_source::get_operand): New.
17804 (gimple_range_fold): Delete.
17805 (fold_using_range::fold_stmt): Move from gimple_ranger::calc_stmt.
17806 (fold_using_range::range_of_range_op): Move from gimple_ranger.
17807 (fold_using_range::range_of_address): Ditto.
17808 (fold_using_range::range_of_phi): Ditto.
17809 (fold_using_range::range_of_call): Ditto.
17810 (fold_using_range::range_of_builtin_ubsan_call): Move from
17811 range_of_builtin_ubsan_call.
17812 (fold_using_range::range_of_builtin_call): Move from
17813 range_of_builtin_call.
17814 (gimple_ranger::range_of_builtin_call): Delete.
17815 (fold_using_range::range_of_cond_expr): Move from gimple_ranger.
17816 (gimple_ranger::fold_range_internal): New.
17817 (gimple_ranger::range_of_stmt): Use new fold_using_range API.
17818 (fold_using_range::range_of_ssa_name_with_loop_info): Move from
17819 gimple_ranger. Improve ranges of SSA_NAMES when possible.
17820 * gimple-range.h (gimple_ranger): Remove various range_of routines.
17821 (class fur_source): New.
17822 (class fold_using_range): New.
17823 (fur_source::fur_source): New.
17825 * vr-values.c (vr_values::extract_range_basic): Use fold_using_range
17826 instead of range_of_builtin_call.
17828 2021-05-19 Jonathan Wakely <jwakely@redhat.com>
17830 * doc/cpp.texi (Common Predefined Macros): Update documentation
17831 for the __GXX_EXPERIMENTAL_CXX0X__ macro.
17833 2021-05-19 Alex Coplan <alex.coplan@arm.com>
17836 * config/arm/arm.md (nonsecure_call_internal): Always ensure
17837 callee's address is in a register.
17839 2021-05-19 Geng Qi <gengqi@linux.alibaba.com>
17841 * common/config/riscv/riscv-common.c
17842 (riscv_subset_list::parsing_subset_version): Properly parse the letter
17844 (riscv_subset_list::parse_std_ext,
17845 riscv_subset_list::parse_multiletter_ext): To handle errors generated
17846 in riscv_subset_list::parsing_subset_version.
17848 2021-05-19 Jonathan Wright <jonathan.wright@arm.com>
17850 * config/aarch64/aarch64-simd.md: Use "neon_move_narrow_q"
17851 type attribute in patterns generating XTN(2).
17853 2021-05-19 Jonathan Wright <jonathan.wright@arm.com>
17855 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_pack_trunc_<mode>):
17856 Remove as duplicate of...
17857 (aarch64_xtn<mode>): This.
17858 (aarch64_xtn2<mode>_le): Move position in file.
17859 (aarch64_xtn2<mode>_be): Move position in file.
17860 (aarch64_xtn2<mode>): Move position in file.
17861 (vec_pack_trunc_<mode>): Define as an expander.
17863 2021-05-19 Jonathan Wright <jonathan.wright@arm.com>
17865 * config/aarch64/aarch64-simd-builtins.def: Split builtin
17866 generation for aarch64_<sur>q<r>shr<u>n_n<mode> pattern into
17867 separate scalar and vector generators.
17868 * config/aarch64/aarch64-simd.md
17869 (aarch64_<sur>q<r>shr<u>n_n<mode>): Define as an expander and
17871 (aarch64_<sur>q<r>shr<u>n_n<mode>_insn_le): This and...
17872 (aarch64_<sur>q<r>shr<u>n_n<mode>_insn_be): This.
17873 * config/aarch64/iterators.md: Define SD_HSDI iterator.
17875 2021-05-19 Jonathn Wright <jonathan.wright@arm.com>
17877 * config/aarch64/aarch64-simd.md: Use UNSPEC_SQXTUN instead
17879 * config/aarch64/iterators.md: Remove UNSPEC_SQXTUN2.
17881 2021-05-19 Jonathan Wright <jonathan.wright@arm.com>
17883 * config/aarch64/aarch64-simd.md (aarch64_<sur>q<r>shr<u>n2_n<mode>):
17884 Implement as an expand emitting a big/little endian
17885 instruction pattern.
17886 (aarch64_<sur>q<r>shr<u>n2_n<mode>_insn_le): Define.
17887 (aarch64_<sur>q<r>shr<u>n2_n<mode>_insn_be): Define.
17889 2021-05-19 Jonathan Wright <jonathan.wright@arm.com>
17891 * config/aarch64/aarch64-simd.md (aarch64_<sur><addsub>hn2<mode>):
17892 Implement as an expand emitting a big/little endian
17893 instruction pattern.
17894 (aarch64_<sur><addsub>hn2<mode>_insn_le): Define.
17895 (aarch64_<sur><addsub>hn2<mode>_insn_be): Define.
17896 * config/aarch64/iterators.md: Remove UNSPEC_[R]ADDHN2 and
17897 UNSPEC_[R]SUBHN2 unspecs and ADDSUBHN2 iterator.
17899 2021-05-19 Richard Biener <rguenther@suse.de>
17901 PR middle-end/100672
17902 * fold-const.c (fold_negate_expr_1): Use element_precision.
17903 (negate_expr_p): Likewise.
17905 2021-05-19 Andre Vieira <andre.simoesdiasvieira@arm.com>
17907 * config/aarch64/iterators.md (SVE_PRED_LOAD): New iterator.
17908 (pred_load): New int attribute.
17909 * config/aarch64/aarch64-sve.md
17910 (aarch64_load_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>): Use
17911 SVE_PRED_LOAD enum iterator and corresponding pred_load attribute.
17912 * config/aarch64/aarch64-sve-builtins-base.cc (expand): Update call to
17913 code_for_aarch64_load.
17915 2021-05-19 Richard Biener <rguenther@suse.de>
17917 * cfgexpand.c (discover_nonconstant_array_refs_r): Make
17918 sure TARGET_MEM_REF bases are expanded as memory.
17919 * tree-ssa-operands.c (operands_scanner::get_tmr_operands):
17920 Do not mark TARGET_MEM_REF bases addressable.
17921 * tree-ssa.c (non_rewritable_mem_ref_base): Handle
17922 TARGET_MEM_REF bases as never rewritable.
17923 * gimple-walk.c (walk_stmt_load_store_addr_ops): Do not
17924 walk TARGET_MEM_REF bases as address-takens.
17925 * tree-ssa-dce.c (ref_may_be_aliased): Handle TARGET_MEM_REF.
17927 2021-05-19 Richard Biener <rguenther@suse.de>
17929 * builtins.c (get_object_alignment_1): Strip outer
17931 * tree-dfa.c (get_ref_base_and_extent): Handle outer
17932 WITH_SIZE_EXPR for size processing and process the
17934 * tree-ssa-alias.c (ao_ref_base_alias_set): Strip
17935 outer WITH_SIZE_EXPR.
17936 (ao_ref_base_alias_ptr_type): Likewise.
17937 (refs_may_alias_p_2): Allow WITH_SIZE_EXPR in ref->ref
17938 and handle that accordingly, stripping it for the
17939 core alias workers.
17940 * tree.c (get_base_address): Handle WITH_SIZE_EXPR by
17941 looking through it instead of returning NULL.
17943 2021-05-19 Jakub Jelinek <jakub@redhat.com>
17945 PR middle-end/100576
17946 * builtins.c (check_read_access): Convert bound to size_type_node if
17949 2021-05-19 Richard Biener <rguenther@suse.de>
17951 * tree-cfg.c (verify_types_in_gimple_min_lval): Inline...
17952 (verify_types_in_gimple_reference): ... here. Sanitize.
17953 (verify_gimple_call): Verify references in LHS and arguments.
17954 (verify_gimple_assign_single): Reject WITH_SIZE_EXPR.
17956 2021-05-19 Uroš Bizjak <ubizjak@gmail.com>
17958 * config/i386/i386.h (VALID_INT_MODE_P):
17959 Add V8QI, V4HI and V2SI modes for TARGET_64BIT.
17960 * config/i386/i386.md (isa): Add x64_bmi.
17961 (enabled): Handle x64_bmi.
17962 * config/i386/mmx.md (mmx_andnot<MMXMODEI:mode>3):
17963 Add alternative using 64bit general registers.
17964 (*mmx_<any_logic:code><MMXMODEI:mode>3): Ditto.
17966 2021-05-19 Jakub Jelinek <jakub@redhat.com>
17968 PR middle-end/99928
17969 * tree.h (OMP_MASTER_COMBINED): Define.
17970 * gimplify.c (gimplify_scan_omp_clauses): Rewrite lastprivate
17971 handling for outer combined/composite constructs to a loop.
17972 Handle lastprivate on combined target.
17973 (gimplify_expr): Formatting fix.
17975 2021-05-19 Xionghu Luo <luoxhu@linux.ibm.com>
17977 * passes.def: Add sink_code pass before store_merging.
17978 * tree-ssa-sink.c (pass_sink_code:clone): New.
17980 2021-05-18 Bill Schmidt <wschmidt@linux.ibm.com>
17982 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Remove call to
17983 rs6000_special_adjust_field_align_p.
17984 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
17985 * config/rs6000/rs6000-call.c (rs6000_function_arg_boundary):
17986 Remove ABI warning.
17987 (rs6000_function_arg): Likewise.
17988 * config/rs6000/rs6000-protos.h
17989 (rs6000_special_adjust_field_align_p): Remove prototype.
17990 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
17992 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Remove call to
17993 rs6000_special_adjust_field_align_p.
17995 2021-05-18 Uroš Bizjak <ubizjak@gmail.com>
17998 * config/i386/i386.h (VALID_SSE2_REG_MODE):
17999 Add V4QI and V2HI modes.
18000 (VALID_INT_MODE_P): Ditto.
18001 * config/i386/mmx.md (VI_32): New mode iterator.
18002 (mmxvecsize): Handle V4QI and V2HI.
18004 (mov<VI_32:mode>): New expander.
18005 (*mov<mode>_internal): New insn pattern.
18006 (movmisalign<VI_32:mode>): New expander.
18007 (neg<VI_32:mode>): New expander.
18008 (<plusminus:insn><VI_32:mode>3): New expander.
18009 (*<plusminus:insn><VI_32:mode>3): New insn pattern.
18010 (mulv2hi3): New expander.
18011 (*mulv2hi3): New insn pattern.
18012 (one_cmpl<VI_32:mode>2): New expander.
18013 (*andnot<VI_32:mode>3): New insn pattern.
18014 (<any_logic:code><VI_32:mode>3): New expander.
18015 (*<any_logic:code><VI_32:mode>3): New insn pattern.
18017 2021-05-18 Uroš Bizjak <ubizjak@gmail.com>
18019 * config/i386/sse.md (<any_extend:insn>v4qiv4di2):
18020 Fix a mode mismatch with operand 1.
18022 2021-05-18 Uroš Bizjak <ubizjak@gmail.com>
18025 * config/i386/i386-expand.c (split_double_mode): Return
18026 temporary register when simplify_gen_subreg fails with
18027 the high half od the paradoxical subreg.
18029 2021-05-18 Richard Biener <rguenther@suse.de>
18031 * cfgexpand.c (expand_one_var): Pass in forced_stack_var
18032 and honor it when expanding.
18033 (expand_used_vars_for_block): Pass through forced_stack_var.
18034 (expand_used_vars): Likewise.
18035 (discover_nonconstant_array_refs_r): Set bits in
18036 forced_stack_vars instead of marking vars TREE_ADDRESSABLE.
18037 (avoid_type_punning_on_regs): Likewise.
18038 (discover_nonconstant_array_refs): Likewise.
18039 (pass_expand::execute): Create and pass down forced_stack_var
18040 bitmap. For parameters and returns temporarily set
18041 TREE_ADDRESSABLE when expand_function_start.
18043 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
18045 * doc/sourcebuild.texi: Document 'dg-note'.
18047 2021-05-18 Tobias Burnus <tobias@codesourcery.com>
18050 * configure: Regenerate.
18051 * configure.ac (BUILD_CFLAG, BUILD_CXXFLAGS): Add $(CFLAGS-$@).
18053 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
18055 * gimple.h (is_gimple_omp_oacc): Tighten.
18056 * omp-low.c (check_omp_nesting_restrictions): Adjust.
18058 2021-05-18 Richard Biener <rguenther@suse.de>
18060 * tree-ssa-operands.c (mark_address_taken): Simplify.
18062 2021-05-18 Martin Liska <mliska@suse.cz>
18064 * config/gcn/mkoffload.c (STR): Redefine.
18065 * config/i386/intelmic-mkoffload.c (STR): Likewise.
18066 * config/nvptx/mkoffload.c (STR): Likewise.
18068 2021-05-18 Martin Liska <mliska@suse.cz>
18070 * common/config/aarch64/aarch64-common.c (aarch64_parse_extension):
18071 Use startswith function instead of strncmp.
18072 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
18073 * common/config/riscv/riscv-common.c (riscv_subset_list::parse): Likewise.
18074 * config/aarch64/aarch64-sve-builtins-shapes.cc (parse_type): Likewise.
18075 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Likewise.
18076 * config/alpha/alpha.c (alpha_elf_section_type_flags): Likewise.
18077 * config/arm/aarch-common.c (arm_md_asm_adjust): Likewise.
18078 * config/arm/arm.c (arm_file_start): Likewise.
18079 (arm_valid_target_attribute_rec): Likewise.
18080 (thumb1_md_asm_adjust): Likewise.
18081 * config/arm/driver-arm.c (host_detect_local_cpu): Likewise.
18082 * config/avr/avr.c (STR_PREFIX_P): Likewise.
18083 (avr_set_current_function): Likewise.
18084 (avr_handle_addr_attribute): Likewise.
18085 (avr_asm_output_aligned_decl_common): Likewise.
18086 (avr_asm_named_section): Likewise.
18087 (avr_section_type_flags): Likewise.
18088 (avr_asm_select_section): Likewise.
18089 * config/c6x/c6x.c (c6x_in_small_data_p): Likewise.
18090 (c6x_section_type_flags): Likewise.
18091 * config/darwin-c.c (darwin_cfstring_ref_p): Likewise.
18092 (darwin_objc_declare_unresolved_class_reference): Likewise.
18093 (darwin_objc_declare_class_definition): Likewise.
18094 * config/darwin.c (indirect_data): Likewise.
18095 (darwin_encode_section_info): Likewise.
18096 (darwin_objc2_section): Likewise.
18097 (darwin_objc1_section): Likewise.
18098 (machopic_select_section): Likewise.
18099 (darwin_globalize_label): Likewise.
18100 (darwin_label_is_anonymous_local_objc_name): Likewise.
18101 (darwin_asm_named_section): Likewise.
18102 (darwin_asm_output_dwarf_offset): Likewise.
18103 * config/frv/frv.c (frv_string_begins_with): Likewise.
18104 (frv_in_small_data_p): Likewise.
18105 * config/gcn/mkoffload.c (STR): Likewise.
18107 * config/i386/i386-builtins.c (get_builtin_code_for_version): Likewise.
18108 * config/i386/i386-options.c (ix86_option_override_internal): Likewise.
18109 * config/i386/i386.c (x86_64_elf_section_type_flags): Likewise.
18110 (ix86_md_asm_adjust): Likewise.
18111 * config/i386/intelmic-mkoffload.c (STR): Likewise.
18112 * config/i386/winnt.c (i386_pe_asm_named_section): Likewise.
18113 (i386_pe_file_end): Likewise.
18114 * config/ia64/ia64.c (ia64_in_small_data_p): Likewise.
18115 (ia64_section_type_flags): Likewise.
18116 * config/mips/driver-native.c (host_detect_local_cpu): Likewise.
18117 * config/mips/mips.c (mips_handle_interrupt_attr): Likewise.
18118 (mips16_stub_function_p): Likewise.
18119 (mips_function_rodata_section): Likewise.
18120 * config/msp430/msp430.c (msp430_mcu_name): Likewise.
18121 (msp430_function_section): Likewise.
18122 (msp430_section_type_flags): Likewise.
18123 (msp430_expand_helper): Likewise.
18124 * config/nios2/nios2.c (nios2_small_section_name_p): Likewise.
18125 (nios2_valid_target_attribute_rec): Likewise.
18126 * config/nvptx/mkoffload.c (process): Likewise.
18128 * config/pa/som.h: Likewise.
18129 * config/pdp11/pdp11.c (pdp11_output_ident): Likewise.
18130 * config/riscv/riscv.c (riscv_elf_select_rtx_section): Likewise.
18131 * config/rs6000/rs6000.c (VTABLE_NAME_P): Likewise.
18132 (rs6000_inner_target_options): Likewise.
18133 * config/s390/driver-native.c (s390_host_detect_local_cpu): Likewise.
18134 * config/sparc/driver-sparc.c (host_detect_local_cpu): Likewise.
18135 * config/vax/vax.c (vax_output_int_move): Likewise.
18136 * config/vms/vms-ld.c (startswith): Likewise.
18137 (process_args): Likewise.
18139 * config/vms/vms.c: Likewise.
18141 2021-05-18 Jakub Jelinek <jakub@redhat.com>
18143 PR rtl-optimization/100590
18144 * regcprop.c (copyprop_hardreg_forward_1): Only DCE dead sets if
18145 they are NONJUMP_INSN_P.
18147 2021-05-18 Jakub Jelinek <jakub@redhat.com>
18150 * function.c (push_dummy_function): Set DECL_ARTIFICIAL and
18151 DECL_ASSEMBLER_NAME on the fn_decl.
18153 2021-05-18 Jakub Jelinek <jakub@redhat.com>
18155 PR tree-optimization/94589
18156 * tree-ssa-phiopt.c (spaceship_replacement): Pattern match
18157 phi result used in (res & ~1) == 0 comparison as res >= 0 as
18158 res == 2 would be UB with -ffinite-math-only.
18160 2021-05-18 Martin Liska <mliska@suse.cz>
18162 * Makefile.in: genversion.o should depend on DATESTAMP.
18164 2021-05-18 Claudiu Zissulescu <claziss@synopsys.com>
18166 * config/arc/simdext.md (negv2si2): Remove round bracket.
18168 2021-05-18 Andreas Krebbel <krebbel@linux.ibm.com>
18170 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Define
18171 _Bool as macro expanding to _Bool.
18173 2021-05-18 Andreas Krebbel <krebbel@linux.ibm.com>
18176 * tree.c (build_reference_type_for_mode)
18177 (build_pointer_type_for_mode): Pick pointer mode if MODE argument
18179 (build_reference_type, build_pointer_type): Invoke
18180 build_*_type_for_mode with VOIDmode.
18182 2021-05-17 Andrew MacLeod <amacleod@redhat.com>
18184 PR tree-optimization/100512
18185 * gimple-range-cache.cc (ranger_cache::set_global_range): Mark const
18186 and non-zero pointer ranges as invariant.
18187 * gimple-range.cc (gimple_ranger::range_of_stmt): Remove pointer
18188 processing from here.
18190 2021-05-17 Tom de Vries <tdevries@suse.de>
18193 * config/nvptx/nvptx-protos.h (nvptx_output_atomic_insn): Declare
18194 * config/nvptx/nvptx.c (nvptx_output_barrier)
18195 (nvptx_output_atomic_insn): New function.
18196 (nvptx_print_operand): Add support for 'B'.
18197 * config/nvptx/nvptx.md: Use nvptx_output_atomic_insn for atomic
18200 2021-05-17 Aldy Hernandez <aldyh@redhat.com>
18202 PR tree-optimization/100349
18203 * vr-values.c (bounds_of_var_in_loop): Bail if scev returns
18206 2021-05-17 Tamar Christina <tamar.christina@arm.com>
18208 * config/aarch64/driver-aarch64.c (DEFAULT_ARCH): New.
18209 (host_detect_local_cpu): Use it.
18211 2021-05-17 Martin Liska <mliska@suse.cz>
18213 * doc/invoke.texi: Add 2 missing dots.
18215 2021-05-17 Marius Hillenbrand <mhillen@linux.ibm.com>
18217 PR bootstrap/100552
18218 * configure.ac: Replace pattern substitution with call to sed.
18219 * configure: Regenerate.
18221 2021-05-17 Richard Biener <rguenther@suse.de>
18223 PR middle-end/100582
18224 * tree.c (array_at_struct_end_p): Get to the base of the
18225 reference before looking for the underlying decl.
18227 2021-05-17 Joern Rennecke <joern.rennecke@embecosm.com>
18229 * genoutput.c (validate_insn_alternatives) Make "wrong number of
18230 alternatives" message more specific, and remove assumption on where
18233 2021-05-17 Christophe Lyon <christophe.lyon@linaro.org>
18235 * config/arm/iterators.md (V16): New iterator.
18236 (VH_cvtto): New iterator.
18237 (v_cmp_result): Added V4HF and V8HF support.
18238 * config/arm/vec-common.md (vec_cmp<mode><v_cmp_result>): Use VDQWH.
18239 (vcond<mode><mode>): Likewise.
18240 (vcond_mask_<mode><v_cmp_result>): Likewise.
18241 (vcond<VH_cvtto><mode>): New expander.
18243 2021-05-17 Christophe Lyon <christophe.lyon@linaro.org>
18245 * config/arm/arm-protos.h (arm_expand_vector_compare): Update
18247 * config/arm/arm.c (arm_expand_vector_compare): Add support for
18249 (arm_expand_vcond): Likewise.
18250 * config/arm/iterators.md (supf): Remove VCMPNEQ_S, VCMPEQQ_S,
18251 VCMPEQQ_N_S, VCMPNEQ_N_S.
18252 (VCMPNEQ, VCMPEQQ, VCMPEQQ_N, VCMPNEQ_N): Remove.
18253 * config/arm/mve.md (@mve_vcmp<mve_cmp_op>q_<mode>): Add '@' prefix.
18254 (@mve_vcmp<mve_cmp_op>q_f<mode>): Likewise.
18255 (@mve_vcmp<mve_cmp_op>q_n_f<mode>): Likewise.
18256 (@mve_vpselq_<supf><mode>): Likewise.
18257 (@mve_vpselq_f<mode>"): Likewise.
18258 * config/arm/neon.md (vec_cmp<mode><v_cmp_result): Enable for MVE
18259 and move to vec-common.md.
18260 (vec_cmpu<mode><mode>): Likewise.
18261 (vcond<mode><mode>): Likewise.
18262 (vcond<V_cvtto><mode>): Likewise.
18263 (vcondu<mode><v_cmp_result>): Likewise.
18264 (vcond_mask_<mode><v_cmp_result>): Likewise.
18265 * config/arm/unspecs.md (VCMPNEQ_U, VCMPNEQ_S, VCMPEQQ_S)
18266 (VCMPEQQ_N_S, VCMPNEQ_N_S, VCMPEQQ_U, CMPEQQ_N_U, VCMPNEQ_N_U)
18267 (VCMPGEQ_N_S, VCMPGEQ_S, VCMPGTQ_N_S, VCMPGTQ_S, VCMPLEQ_N_S)
18268 (VCMPLEQ_S, VCMPLTQ_N_S, VCMPLTQ_S, VCMPCSQ_N_U, VCMPCSQ_U)
18269 (VCMPHIQ_N_U, VCMPHIQ_U): Remove.
18270 * config/arm/vec-common.md (vec_cmp<mode><v_cmp_result): Moved
18272 (vec_cmpu<mode><mode>): Likewise.
18273 (vcond<mode><mode>): Likewise.
18274 (vcond<V_cvtto><mode>): Likewise.
18275 (vcondu<mode><v_cmp_result>): Likewise.
18276 (vcond_mask_<mode><v_cmp_result>): Likewise. Added unsafe math
18279 2021-05-17 liuhongt <hongtao.liu@intel.com>
18282 * config/i386/i386.c (ix86_gimple_fold_builtin): Use
18283 gsi_insert_seq_before instead.
18285 2021-05-17 Christophe Lyon <christophe.lyon@linaro.org>
18287 * doc/sourcebuild.texi (arm_qbit_ok): Rename into...
18288 (arm_sat_ok): ...this.
18290 2021-05-17 Martin Liska <mliska@suse.cz>
18292 * lto-wrapper.c (merge_flto_options): Factor out a new function.
18293 (merge_and_complain): Use it.
18294 (run_gcc): Merge also linker command line -flto=foo argument
18297 2021-05-16 Christophe Lyon <christophe.lyon@linaro.org>
18299 * config/arm/arm.h (CPP_SPEC): Remove error message about
18300 -mlittle-endian/-mbig-endian conflict.
18302 2021-05-15 Bill Schmidt <wschmidt@linux.ibm.com>
18304 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
18305 __ROP_PROTECT__ if -mrop-protect is selected.
18307 2021-05-15 Bill Schmidt <wschmidt@linux.ibm.com>
18309 * config/rs6000/rs6000-internal.h (rs6000_stack): Add
18310 rop_hash_save_offset and rop_hash_size.
18311 * config/rs6000/rs6000-logue.c (rs6000_stack_info): Compute
18312 rop_hash_size and rop_hash_save_offset.
18313 (debug_stack_info): Dump rop_hash_save_offset and rop_hash_size.
18314 (rs6000_emit_prologue): Emit hashst[p] in prologue.
18315 (rs6000_emit_epilogue): Emit hashchk[p] in epilogue.
18316 * config/rs6000/rs6000.md (unspec): Add UNSPEC_HASHST and
18318 (hashst): New define_insn.
18319 (hashchk): Likewise.
18321 2021-05-15 Bill Schmidt <wschmidt@linux.ibm.com>
18323 * config/rs6000/rs6000.c (rs6000_option_override_internal):
18324 Disable shrink wrap when inserting ROP-protect instructions.
18325 * config/rs6000/rs6000.opt (mrop-protect): New option.
18326 (mprivileged): Likewise.
18327 * doc/invoke.texi: Document mrop-protect and mprivileged.
18329 2021-05-15 Hans-Peter Nilsson <hp@axis.com>
18331 * reorg.c (fill_slots_from_thread): Reinstate code typoed out in
18334 2021-05-15 Martin Jambor <mjambor@suse.cz>
18337 2021-05-13 Martin Jambor <mjambor@suse.cz>
18339 PR tree-optimization/100453
18340 * tree-sra.c (sra_modify_assign): All const base accesses do not
18341 need refreshing, not just those from decl_pool.
18342 (sra_modify_assign): Do not refresh into a const base decl.
18344 2021-05-15 Jakub Jelinek <jakub@redhat.com>
18346 PR rtl-optimization/100342
18347 * regcprop.c (copy_value): When copying a source reg in a wider
18348 mode than it has recorded for the value, adjust recorded destination
18349 mode too or punt if !REG_CAN_CHANGE_MODE_P.
18351 2021-05-14 Jason Merrill <jason@redhat.com>
18353 * intl.h: Add comments.
18355 2021-05-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18357 * config/aarch64/aarch64-simd.md
18358 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Split into...
18359 (aarch64_sqdmlsl2_lane<mode>_internal): ... This...
18360 (aarch64_sqdmlal2_lane<mode>_internal): ... And this.
18361 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Split into ...
18362 (aarch64_sqdmlsl2_laneq<mode>_internal): ... This...
18363 (aarch64_sqdmlal2_laneq<mode>_internal): ... And this.
18364 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Split into...
18365 (aarch64_sqdmlsl2_n<mode>_internal): ... This...
18366 (aarch64_sqdmlal2_n<mode>_internal): ... And this.
18368 2021-05-14 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
18371 * config/arm/arm_neon.h (vtst_s8): Replace call to vtst builtin with it's
18372 boolean logic equivalent.
18373 (vtst_s16): Likewise.
18374 (vtst_s32): Likewise.
18375 (vtst_u8): Likewise.
18376 (vtst_u16): Likewise.
18377 (vtst_u32): Likewise.
18378 (vtst_p8): Likewise.
18379 (vtst_p16): Likewise.
18380 (vtstq_s8): Likewise.
18381 (vtstq_s16): Likewise.
18382 (vtstq_s32): Likewise.
18383 (vtstq_u8): Likewise.
18384 (vtstq_u16): Likewise.
18385 (vtstq_u32): Likewise.
18386 (vtstq_p8): Likewise.
18387 (vtstq_p16): Likewise.
18388 * config/arm/arm_neon_builtins.def: Remove entry for vtst.
18389 * config/arm/neon.md (neon_vtst<mode>): Remove pattern.
18391 2021-05-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18393 * config/aarch64/aarch64-simd.md (aarch64_sqdmlal2<mode>): Merge into...
18394 (aarch64_sqdml<SBINQOPS:as>l2<mode>): ... This.
18395 (aarch64_sqdmlsl2<mode>): Delete.
18396 (aarch64_sqdmlal2_lane<mode>): Merge this...
18397 (aarch64_sqdmlsl2_lane<mode>): ... And this...
18398 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>): ... Into this.
18399 (aarch64_sqdmlal2_laneq<mode>): Merge this...
18400 (aarch64_sqdmlsl2_laneq<mode>): ... And this...
18401 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>): ... Into this.
18402 (aarch64_sqdmlal2_n<mode>): Merge this...
18403 (aarch64_sqdmlsl2_n<mode>): ... And this...
18404 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>): ... Into this.
18406 2021-05-13 Martin Sebor <msebor@redhat.com>
18408 PR middle-end/100574
18409 * builtins.c (access_ref::get_ref): Improve detection of PHIs with
18410 all null arguments.
18412 2021-05-13 Martin Sebor <msebor@redhat.com>
18414 PR tree-optimization/93100
18415 PR middle-end/98583
18416 * tree-ssa-uninit.c (check_defs): Exclude intrinsic functions that
18417 don't modify referenced objects.
18419 2021-05-13 Martin Jambor <mjambor@suse.cz>
18421 PR tree-optimization/100453
18422 * tree-sra.c (sra_modify_assign): All const base accesses do not
18423 need refreshing, not just those from decl_pool.
18424 (sra_modify_assign): Do not refresh into a const base decl.
18426 2021-05-13 Martin Liska <mliska@suse.cz>
18428 * tree-ssa-dom.c: Remove m_simplifier.
18430 2021-05-13 Richard Earnshaw <rearnsha@arm.com>
18433 * config/arm/arm.c (arm_canonicalize_comparison): Correctly
18434 canonicalize DImode inequality comparisons against the
18435 maximum integral value.
18437 2021-05-13 Jakub Jelinek <jakub@redhat.com>
18439 PR tree-optimization/98856
18440 * config/i386/i386.c (ix86_shift_rotate_cost): Add CODE argument.
18441 Expect V2DI and V4DI arithmetic right shifts to be emulated.
18442 (ix86_rtx_costs, ix86_add_stmt_cost): Adjust ix86_shift_rotate_cost
18444 * config/i386/i386-expand.c (expand_vec_perm_2perm_interleave,
18445 expand_vec_perm_2perm_pblendv): New functions.
18446 (ix86_expand_vec_perm_const_1): Use them.
18447 * config/i386/sse.md (ashr<mode>3<mask_name>): Rename to ...
18448 (<mask_codefor>ashr<mode>3<mask_name>): ... this.
18449 (ashr<mode>3): New define_expand with VI248_AVX512BW iterator.
18450 (ashrv4di3): New define_expand.
18451 (ashrv2di3): Change condition to TARGET_SSE2, handle !TARGET_XOP
18452 and !TARGET_AVX512VL expansion.
18454 2021-05-13 Uroš Bizjak <ubizjak@gmail.com>
18457 * config/i386/i386-expand.c (ix86_expand_sse_movcc): Force mode
18458 sizes < 16 to a register when constructing vpcmov pattern.
18459 * config/i386/mmx.md (*xop_pcmov_<mode>): Use MMXMODE124 mode.
18461 2021-05-13 Martin Liska <mliska@suse.cz>
18463 * gcov-io.c (gcov_write_block): Remove.
18464 (gcov_write_words): Likewise.
18465 (gcov_read_words): Re-implement using gcov_read_bytes.
18466 (gcov_allocate): Remove.
18467 (GCOV_BLOCK_SIZE): Likewise.
18468 (struct gcov_var): Remove most of the fields.
18469 (gcov_position): Implement with ftell.
18470 (gcov_rewrite): Remove setting of start and offset fields.
18471 (from_file): Re-format.
18472 (gcov_open): Remove setbuf call. It should not be needed.
18473 (gcov_close): Remove internal buffer handling.
18474 (gcov_magic): Use __builtin_bswap32.
18475 (gcov_write_counter): Use directly gcov_write_unsigned.
18476 (gcov_write_string): Use direct fwrite and do not round
18478 (gcov_seek): Use directly fseek.
18479 (gcov_write_tag): Use gcov_write_unsigned directly.
18480 (gcov_write_length): Likewise.
18481 (gcov_write_tag_length): Likewise.
18482 (gcov_read_bytes): Use directly fread.
18483 (gcov_read_unsigned): Use gcov_read_words.
18484 (gcov_read_counter): Likewise.
18485 (gcov_read_string): Use gcov_read_bytes.
18486 * gcov-io.h (GCOV_WORD_SIZE): Adjust to reflect
18487 that size is not in bytes, but words (4B).
18488 (GCOV_TAG_FUNCTION_LENGTH): Likewise.
18489 (GCOV_TAG_ARCS_LENGTH): Likewise.
18490 (GCOV_TAG_ARCS_NUM): Likewise.
18491 (GCOV_TAG_COUNTER_LENGTH): Likewise.
18492 (GCOV_TAG_COUNTER_NUM): Likewise.
18493 (GCOV_TAG_SUMMARY_LENGTH): Likewise.
18495 2021-05-13 liuhongt <hongtao.liu@intel.com>
18498 * config/i386/sse.md (ssedoublevecmode): Add attribute for
18499 V64QI/V32HI/V16SI/V4DI.
18500 (ssehalfvecmode): Add attribute for V2DI/V2DF.
18501 (*vec_concatv4si_0): Extend to VI124_128.
18502 (*vec_concat<mode>_0): New pre-reload splitter.
18503 * config/i386/predicates.md (movq_parallel): New predicate.
18505 2021-05-13 Alexandre Oliva <oliva@adacore.com>
18507 * targhooks.c (default_zero_call_used_regs): Retry using
18508 successfully-zeroed registers as sources.
18510 2021-05-12 Tobias Burnus <tobias@codesourcery.com>
18512 * omp-low.c (finish_taskreg_scan): Use the proper detach decl.
18514 2021-05-12 Aldy Hernandez <aldyh@redhat.com>
18517 * gimple-range.cc (range_of_builtin_call): Skip out on
18518 processing __builtin_clz when varying.
18520 2021-05-12 Tom de Vries <tdevries@suse.de>
18523 * config/nvptx/nvptx-opts.h (enum ptx_version): New enum.
18524 * config/nvptx/nvptx.c (nvptx_file_start): Print .version according
18525 to ptx_version_option.
18526 * config/nvptx/nvptx.h (TARGET_PTX_6_3): Define.
18527 * config/nvptx/nvptx.md (define_insn "nvptx_shuffle<mode>")
18528 (define_insn "nvptx_vote_ballot"): Use sync variant for
18530 * config/nvptx/nvptx.opt (ptx_version): Add enum.
18531 (mptx): Add option.
18532 * doc/invoke.texi (Nvidia PTX Options): Add mptx item.
18534 2021-05-12 Richard Biener <rguenther@suse.de>
18536 PR tree-optimization/100566
18537 * tree-ssa-sccvn.c (dominated_by_p_w_unex): Properly handle
18538 allow_back for all edge queries.
18540 2021-05-12 liuhongt <hongtao.liu@intel.com>
18543 * config/i386/sse.md (<sse4_1_avx2>_pblendvb): Add
18544 splitters for pblendvb of NOT mask register.
18546 2021-05-12 Richard Biener <rguenther@suse.de>
18548 PR tree-optimization/100519
18549 * tree-ssa-reassoc.c (can_associate_p): Split into...
18550 (can_associate_op_p): ... this
18551 (can_associate_type_p): ... and this.
18552 (is_reassociable_op): Call can_associate_op_p.
18553 (break_up_subtract_bb): Call the appropriate predicates.
18554 (reassociate_bb): Likewise.
18556 2021-05-12 Martin Liska <mliska@suse.cz>
18558 * lto-wrapper.c (merge_and_complain): Merge -flto=arg options.
18559 (run_gcc): Use -flto argument detection for merged
18562 2021-05-12 Martin Liska <mliska@suse.cz>
18564 * lto-wrapper.c (print_lto_docs_link): New function.
18565 (run_gcc): Print warning about missing job server detection
18566 after we know NR of partitions. Do the same for -flto{,=1}.
18567 * opts.c (get_option_html_page): Support -flto option.
18569 2021-05-12 Martin Liska <mliska@suse.cz>
18571 * lto-wrapper.c (get_options_from_collect_gcc_options): Change
18573 (append_option): Remove.
18574 (find_option): Rework to use the vector type.
18575 (remove_option): Remove.
18576 (merge_and_complain): Use vectors for cl_decoded_option data
18578 (append_compiler_options): Likewise.
18579 (append_diag_options): Likewise.
18580 (append_linker_options): Likewise.
18581 (append_offload_options): Likewise.
18582 (compile_offload_image): Likewise.
18583 (compile_images_for_offload_targets): Likewise.
18584 (find_and_merge_options): Likewise.
18585 (run_gcc): Likewise.
18587 2021-05-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
18590 * dwarf2out.c (dwarf2out_finish): Set
18591 have_multiple_function_sections with multi-range text_section.
18593 2021-05-12 Martin Liska <mliska@suse.cz>
18595 PR bootstrap/100560
18596 * Makefile.in: Remove version.h from linker command line.
18598 2021-05-12 Richard Biener <rguenther@suse.de>
18600 PR middle-end/100547
18601 * rtl.h (rtvec_alloc): Make argument size_t.
18602 * rtl.c (rtvec_alloc): Verify the count is less than INT_MAX.
18604 2021-05-12 Jakub Jelinek <jakub@redhat.com>
18606 PR middle-end/100508
18607 * cfgexpand.c (expand_debug_expr): For DEBUG_EXPR_DECL with vector
18608 type, don't reuse DECL_RTL if it has different mode, instead force
18609 creation of a new DEBUG_EXPR.
18611 2021-05-12 Jakub Jelinek <jakub@redhat.com>
18612 Marc Glisse <marc.glisse@inria.fr>
18614 PR tree-optimization/94589
18615 * match.pd ((X & Y) == X -> (X & ~Y) == 0,
18616 (X | Y) == Y -> (X & ~Y) == 0): New GIMPLE simplifications.
18618 2021-05-12 Uroš Bizjak <ubizjak@gmail.com>
18621 * config/i386/i386-expand.c (ix86_expand_sse_movcc): Handle V2SF mode.
18622 * config/i386/mmx.md (MMXMODE124): New mode iterator.
18624 (mmxintvecmode): New mode attribute.
18625 (mmxintvecmodelower): Ditto.
18626 (*mmx_maskcmpv2sf3_comm): New insn pattern.
18627 (*mmx_maskcmpv2sf3): Ditto.
18628 (vec_cmpv2sfv2si): New expander.
18629 (vcond<V2FI:mode>v2si): Ditto.
18630 (mmx_vlendvps): New insn pattern.
18631 (vcond<MMXMODE124:mode><MMXMODEI:mode>): Also handle V2SFmode.
18632 (vcondu<MMXMODE124:mode><MMXMODEI:mode>): Ditto.
18633 (vcond_mask_<mode><mmxintvecmodelower>): Ditto.
18635 2021-05-11 Martin Sebor <msebor@redhat.com>
18637 PR middle-end/21433
18638 * expr.c (expand_expr_real_1): Replace unreachable code with an assert.
18640 2021-05-11 Richard Biener <rguenther@suse.de>
18642 * gimple-fold.c (gimple_fold_call): Do not call
18643 maybe_fold_reference on call arguments or the static chain.
18644 (fold_stmt_1): Do not call maybe_fold_reference on GIMPLE_ASM
18647 2021-05-11 Martin Liska <mliska@suse.cz>
18649 * builtins.def (DEF_HSAIL_BUILTIN): Remove.
18650 (DEF_HSAIL_ATOMIC_BUILTIN): Likewise.
18651 (DEF_HSAIL_SAT_BUILTIN): Likewise.
18652 (DEF_HSAIL_INTR_BUILTIN): Likewise.
18653 (DEF_HSAIL_CVT_ZEROI_SAT_BUILTIN): Likewise.
18654 * doc/frontends.texi: Remove BRIG.
18655 * doc/install.texi: Likewise.
18656 * doc/invoke.texi: Likewise.
18657 * doc/standards.texi: Likewise.
18658 * brig-builtins.def: Removed.
18659 * brig/ChangeLog: Removed.
18660 * brig/Make-lang.in: Removed.
18661 * brig/brig-builtins.h: Removed.
18662 * brig/brig-c.h: Removed.
18663 * brig/brig-lang.c: Removed.
18664 * brig/brigfrontend/brig-arg-block-handler.cc: Removed.
18665 * brig/brigfrontend/brig-atomic-inst-handler.cc: Removed.
18666 * brig/brigfrontend/brig-basic-inst-handler.cc: Removed.
18667 * brig/brigfrontend/brig-branch-inst-handler.cc: Removed.
18668 * brig/brigfrontend/brig-cmp-inst-handler.cc: Removed.
18669 * brig/brigfrontend/brig-code-entry-handler.cc: Removed.
18670 * brig/brigfrontend/brig-code-entry-handler.h: Removed.
18671 * brig/brigfrontend/brig-comment-handler.cc: Removed.
18672 * brig/brigfrontend/brig-control-handler.cc: Removed.
18673 * brig/brigfrontend/brig-copy-move-inst-handler.cc: Removed.
18674 * brig/brigfrontend/brig-cvt-inst-handler.cc: Removed.
18675 * brig/brigfrontend/brig-fbarrier-handler.cc: Removed.
18676 * brig/brigfrontend/brig-function-handler.cc: Removed.
18677 * brig/brigfrontend/brig-function.cc: Removed.
18678 * brig/brigfrontend/brig-function.h: Removed.
18679 * brig/brigfrontend/brig-inst-mod-handler.cc: Removed.
18680 * brig/brigfrontend/brig-label-handler.cc: Removed.
18681 * brig/brigfrontend/brig-lane-inst-handler.cc: Removed.
18682 * brig/brigfrontend/brig-machine.c: Removed.
18683 * brig/brigfrontend/brig-machine.h: Removed.
18684 * brig/brigfrontend/brig-mem-inst-handler.cc: Removed.
18685 * brig/brigfrontend/brig-module-handler.cc: Removed.
18686 * brig/brigfrontend/brig-queue-inst-handler.cc: Removed.
18687 * brig/brigfrontend/brig-seg-inst-handler.cc: Removed.
18688 * brig/brigfrontend/brig-signal-inst-handler.cc: Removed.
18689 * brig/brigfrontend/brig-to-generic.cc: Removed.
18690 * brig/brigfrontend/brig-to-generic.h: Removed.
18691 * brig/brigfrontend/brig-util.cc: Removed.
18692 * brig/brigfrontend/brig-util.h: Removed.
18693 * brig/brigfrontend/brig-variable-handler.cc: Removed.
18694 * brig/brigfrontend/hsa-brig-format.h: Removed.
18695 * brig/brigfrontend/phsa.h: Removed.
18696 * brig/brigspec.c: Removed.
18697 * brig/config-lang.in: Removed.
18698 * brig/gccbrig.texi: Removed.
18699 * brig/lang-specs.h: Removed.
18700 * brig/lang.opt: Removed.
18702 2021-05-11 Richard Biener <rguenther@suse.de>
18705 * ipa-param-manipulation.c
18706 (ipa_param_body_adjustments::modify_call_stmt): Avoid
18707 altering SSA_NAME_DEF_STMT by adjusting the calls LHS
18708 via gimple_call_lhs_ptr.
18710 2021-05-11 Alex Coplan <alex.coplan@arm.com>
18713 * config/arm/arm.c (cmse_nonsecure_call_inline_register_clear):
18714 Avoid emitting CFA adjusts on the sp if we have the fp.
18716 2021-05-11 Richard Sandiford <richard.sandiford@arm.com>
18718 * config/aarch64/iterators.md (VMUL_CHANGE_NLANES): Delete.
18719 (VMULD): New iterator.
18720 (VCOND): Handle V4HF and V8HF.
18721 (VCONQ): Fix entry for V2SF.
18722 * config/aarch64/aarch64-simd.md (mul_lane<mode>3): Use VMULD
18723 instead of VMUL. Use a 64-bit vector mode for the indexed operand.
18724 (*aarch64_mul3_elt_<vswap_width_name><mode>): Merge with...
18725 (mul_laneq<mode>3): ...this define_insn. Use VMUL instead of VDQSF.
18726 Use a 128-bit vector mode for the indexed operand. Use stype for
18727 the scheduling type.
18729 2021-05-11 Richard Biener <rguenther@suse.de>
18731 * gimple-fold.c (maybe_fold_reference): Only return
18732 is_gimple_min_invariant values.
18734 2021-05-11 Richard Biener <rguenther@suse.de>
18736 PR middle-end/100509
18737 * gimple-fold.c (fold_gimple_assign): Only call
18738 get_symbol_constant_value on register type symbols.
18740 2021-05-11 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
18741 Joe Ramsay <joe.ramsay@arm.com>
18744 * config/arm/arm_mve.h (__arm_vstrwq_scatter_offset): Fix wrong arguments.
18745 (__arm_vcmpneq): Remove duplicate definition.
18746 (__arm_vstrwq_scatter_offset_p): Likewise.
18747 (__arm_vmaxq_x): Likewise.
18748 (__arm_vmlsdavaq): Likewise.
18749 (__arm_vmlsdavaxq): Likewise.
18750 (__arm_vmlsdavq_p): Likewise.
18751 (__arm_vmlsdavxq_p): Likewise.
18752 (__arm_vrmlaldavhaq): Likewise.
18753 (__arm_vstrbq_p): Likewise.
18754 (__arm_vstrbq_scatter_offset): Likewise.
18755 (__arm_vstrbq_scatter_offset_p): Likewise.
18756 (__arm_vstrdq_scatter_offset): Likewise.
18757 (__arm_vstrdq_scatter_offset_p): Likewise.
18758 (__arm_vstrdq_scatter_shifted_offset): Likewise.
18759 (__arm_vstrdq_scatter_shifted_offset_p): Likewise.
18761 2021-05-11 Jakub Jelinek <jakub@redhat.com>
18763 PR middle-end/100471
18764 * omp-low.c (lower_omp_task_reductions): For OMP_TASKLOOP, if data
18765 is 0, bypass the reduction loop including
18766 GOMP_taskgroup_reduction_unregister call.
18768 2021-05-11 Kewen Lin <linkw@linux.ibm.com>
18770 * config/rs6000/rs6000.c (struct rs6000_cost_data): New member
18771 costing_for_scalar.
18772 (rs6000_density_test): Early return if costing_for_scalar is true.
18773 (rs6000_init_cost): Init costing_for_scalar of rs6000_cost_data.
18775 2021-05-11 Kewen Lin <linkw@linux.ibm.com>
18777 * doc/tm.texi: Regenerated.
18778 * target.def (init_cost): Add new parameter costing_for_scalar.
18779 * targhooks.c (default_init_cost): Adjust for new parameter.
18780 * targhooks.h (default_init_cost): Likewise.
18781 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Likewise.
18782 (vect_compute_single_scalar_iteration_cost): Likewise.
18783 (vect_analyze_loop_2): Likewise.
18784 * tree-vect-slp.c (_bb_vec_info::_bb_vec_info): Likewise.
18785 (vect_bb_vectorization_profitable_p): Likewise.
18786 * tree-vectorizer.h (init_cost): Likewise.
18787 * config/aarch64/aarch64.c (aarch64_init_cost): Likewise.
18788 * config/i386/i386.c (ix86_init_cost): Likewise.
18789 * config/rs6000/rs6000.c (rs6000_init_cost): Likewise.
18791 2021-05-11 Kewen Lin <linkw@linux.ibm.com>
18793 * config/rs6000/rs6000.c (rs6000_vect_nonmem): Renamed to
18794 vect_nonmem and moved into...
18795 (struct rs6000_cost_data): ...here.
18796 (rs6000_init_cost): Use vect_nonmem of cost_data instead.
18797 (rs6000_add_stmt_cost): Likewise.
18798 (rs6000_finish_cost): Likewise.
18800 2021-05-10 Eric Botcazou <ebotcazou@adacore.com>
18802 * range-op.cc (get_bool_state): Adjust head comment.
18803 (operator_not_equal::op1_range): Fix comment.
18804 (operator_bitwise_xor::op1_range): Remove call to gcc_unreachable.
18806 2021-05-10 Martin Sebor <msebor@redhat.com>
18808 PR middle-end/100425
18809 PR middle-end/100510
18810 * gimple-ssa-warn-alloca.c (pass_walloca::firast_time_p): Rename...
18811 (pass_walloca::xlimit_certain_p): ...to this.
18812 (pass_walloca::gate): Execute for any kind of handled warning.
18813 (pass_walloca::execute): Avoid issuing "maybe" and "unbounded"
18814 warnings when xlimit_certain_p is set.
18816 2021-05-10 Pat Haugen <pthaugen@linux.ibm.com>
18818 * config/rs6000/rs6000.c (rs6000_ira_change_pseudo_allocno_class):
18819 Return ALTIVEC_REGS if that is best_class.
18820 (rs6000_compute_pressure_classes): Add ALTIVEC_REGS.
18822 2021-05-10 Christophe Lyon <christophe.lyon@linaro.org>
18824 * config/arm/arm.h (CPP_SPEC): Remove error message about
18827 2021-05-10 Martin Jambor <mjambor@suse.cz>
18829 * ipa-prop.h (IPA_NODE_REF): Removed.
18830 (IPA_NODE_REF_GET_CREATE): Likewise.
18831 (IPA_EDGE_REF): Likewise.
18832 (IPA_EDGE_REF_GET_CREATE): Likewise.
18833 (IS_VALID_JUMP_FUNC_INDEX): Likewise.
18834 * ipa-cp.c (print_all_lattices): Replaced IPA_NODE_REF with a direct
18835 use of ipa_node_params_sum.
18836 (ipcp_versionable_function_p): Likewise.
18837 (push_node_to_stack): Likewise.
18838 (pop_node_from_stack): Likewise.
18839 (set_single_call_flag): Replaced two IPA_NODE_REF with one single
18840 direct use of ipa_node_params_sum.
18841 (initialize_node_lattices): Replaced IPA_NODE_REF with a direct use of
18842 ipa_node_params_sum.
18843 (ipa_context_from_jfunc): Replaced IPA_EDGE_REF with a direct use of
18845 (ipcp_verify_propagated_values): Replaced IPA_NODE_REF with a direct
18846 use of ipa_node_params_sum.
18847 (self_recursively_generated_p): Likewise.
18848 (propagate_scalar_across_jump_function): Likewise.
18849 (propagate_context_across_jump_function): Replaced IPA_EDGE_REF with a
18850 direct use of ipa_edge_args_sum, moved the lookup after the early
18851 exit. Replaced IPA_NODE_REF with a direct use of ipa_node_params_sum.
18852 (propagate_bits_across_jump_function): Replaced IPA_NODE_REF with
18853 direct uses of ipa_node_params_sum.
18854 (propagate_vr_across_jump_function): Likewise.
18855 (propagate_aggregate_lattice): Likewise.
18856 (propagate_aggs_across_jump_function): Likewise.
18857 (propagate_constants_across_call): Likewise, also replaced
18858 IPA_EDGE_REF with a direct use of ipa_edge_args_sum.
18859 (good_cloning_opportunity_p): Replaced IPA_NODE_REF with a direct use
18860 of ipa_node_params_sum.
18861 (estimate_local_effects): Likewise.
18862 (add_all_node_vals_to_toposort): Likewise.
18863 (propagate_constants_topo): Likewise.
18864 (ipcp_propagate_stage): Likewise.
18865 (ipcp_discover_new_direct_edges): Likewise.
18866 (calls_same_node_or_its_all_contexts_clone_p): Likewise.
18867 (cgraph_edge_brings_value_p): Likewise (in both overloaded functions).
18868 (get_info_about_necessary_edges): Likewise.
18869 (want_remove_some_param_p): Likewise.
18870 (create_specialized_node): Likewise.
18871 (self_recursive_pass_through_p): Likewise.
18872 (self_recursive_agg_pass_through_p): Likewise.
18873 (find_more_scalar_values_for_callers_subset): Likewise and also
18874 replaced IPA_EDGE_REF with direct uses of ipa_edge_args_sum, in one
18875 case replacing two of those with a single query.
18876 (find_more_contexts_for_caller_subset): Likewise for the
18877 ipa_polymorphic_call_context overload.
18878 (intersect_aggregates_with_edge): Replaced IPA_EDGE_REF with a direct
18879 use of ipa_edge_args_sum. Replaced IPA_NODE_REF with direct uses of
18880 ipa_node_params_sum.
18881 (find_aggregate_values_for_callers_subset): Likewise, also reusing
18882 results of ipa_edge_args_sum->get.
18883 (cgraph_edge_brings_all_scalars_for_node): Replaced IPA_NODE_REF with
18884 direct uses of ipa_node_params_sum, replaced IPA_EDGE_REF with a
18885 direct use of ipa_edge_args_sum.
18886 (cgraph_edge_brings_all_agg_vals_for_node): Likewise, moved node
18887 summary query after the early exit and reused the result later.
18888 (decide_about_value): Replaced IPA_NODE_REF with a direct use of
18889 ipa_node_params_sum.
18890 (decide_whether_version_node): Likewise. Removed re-querying for
18891 summaries after cloning.
18892 (spread_undeadness): Replaced IPA_NODE_REF with a direct use of
18893 ipa_node_params_sum.
18894 (has_undead_caller_from_outside_scc_p): Likewise, reusing results of
18896 (identify_dead_nodes): Likewise.
18897 (ipcp_store_bits_results): Replaced IPA_NODE_REF with direct uses of
18898 ipa_node_params_sum.
18899 (ipcp_store_vr_results): Likewise.
18900 * ipa-fnsummary.c (evaluate_properties_for_edge): Likewise.
18901 (ipa_fn_summary_t::duplicate): Likewise.
18902 (analyze_function_body): Likewise.
18903 (estimate_calls_size_and_time): Likewise.
18904 (ipa_cached_call_context::duplicate_from): Likewise.
18905 (ipa_call_context::equal_to): Likewise.
18906 (remap_edge_params): Likewise.
18907 (ipa_merge_fn_summary_after_inlining): Likewise.
18908 (inline_read_section): Likewise.
18909 * ipa-icf.c (sem_function::param_used_p): Likewise.
18910 * ipa-modref.c (compute_parm_map): Likewise.
18911 (compute_parm_map): Replaced IPA_EDGE_REF with a direct use of
18913 (get_access_for_fnspec): Replaced IPA_NODE_REF with a direct use of
18914 ipa_node_params_sum and replaced IPA_EDGE_REF with a direct use of
18916 * ipa-profile.c (check_argument_count): Likewise.
18917 * ipa-prop.c (ipa_alloc_node_params): Replaced IPA_NODE_REF_GET_CREATE
18918 with a direct use of ipa_node_params_sum.
18919 (ipa_initialize_node_params): Likewise.
18920 (ipa_print_node_jump_functions_for_edge): Replaced IPA_EDGE_REF with a
18921 direct use of ipa_edge_args_sum and reused the query result.
18922 (ipa_compute_jump_functions_for_edge): Replaced IPA_NODE_REF with a
18923 direct use of ipa_node_params_sum and replaced IPA_EDGE_REF with a
18924 direct use of ipa_edge_args_sum.
18925 (ipa_note_param_call): Replaced IPA_NODE_REF with a direct use of
18926 ipa_node_params_sum and reused the result of the query.
18927 (ipa_analyze_node): Likewise.
18928 (ipa_analyze_controlled_uses): Replaced IPA_NODE_REF with a direct use
18929 of ipa_node_params_sum.
18930 (update_jump_functions_after_inlining): Replaced IPA_EDGE_REF with
18931 direct uses of ipa_edge_args_sum.
18932 (update_indirect_edges_after_inlining): Replaced IPA_NODE_REF with
18933 direct uses of ipa_node_params_sum and replaced IPA_EDGE_REF with a
18934 direct use of ipa_edge_args_sum. Removed superficial re-querying the
18936 (propagate_controlled_uses): Replaced IPA_NODE_REF with direct uses of
18937 ipa_node_params_sum and replaced IPA_EDGE_REF with a direct use of
18939 (ipa_propagate_indirect_call_infos): Replaced IPA_EDGE_REF with a
18940 direct use of ipa_edge_args_sum.
18941 (ipa_edge_args_sum_t::duplicate): Replaced IPA_NODE_REF with a direct
18942 use of ipa_node_params_sum.
18943 (ipa_print_node_params): Likewise.
18944 (ipa_write_node_info): Likewise and also replaced IPA_EDGE_REF with
18945 direct uses of ipa_edge_args_sum.
18946 (ipa_read_edge_info): Replaced IPA_EDGE_REF with a direct use of
18948 (ipa_read_node_info): Replaced IPA_NODE_REF with a direct use of
18949 ipa_node_params_sum.
18950 (ipa_prop_write_jump_functions): Likewise. Move variable node to the
18951 scopes where it is used.
18953 2021-05-10 Uroš Bizjak <ubizjak@gmail.com>
18955 * config/i386/i386-expand.c (ix86_expand_sse_movcc)
18956 <case E_V2SImode>: Force op_true to register.
18958 2021-05-10 Christophe Lyon <christophe.lyon@linaro.org>
18960 * config/arm/iterators.md (MVE_FP_COMPARISONS): New.
18961 * config/arm/mve.md (mve_vcmp<mve_cmp_op>q_f<mode>)
18962 (mve_vcmp<mve_cmp_op>q_n_f<mode>): New, merge all vcmp_*f*
18964 (mve_vcmpeqq_f<mode>, mve_vcmpeqq_n_f<mode>, mve_vcmpgeq_f<mode>)
18965 (mve_vcmpgeq_n_f<mode>, mve_vcmpgtq_f<mode>)
18966 (mve_vcmpgtq_n_f<mode>, mve_vcmpleq_f<mode>)
18967 (mve_vcmpleq_n_f<mode>, mve_vcmpltq_f<mode>)
18968 (mve_vcmpltq_n_f<mode>, mve_vcmpneq_f<mode>)
18969 (mve_vcmpneq_n_f<mode>): Remove.
18970 * config/arm/unspecs.md (VCMPEQQ_F, VCMPEQQ_N_F, VCMPGEQ_F)
18971 (VCMPGEQ_N_F, VCMPGTQ_F, VCMPGTQ_N_F, VCMPLEQ_F, VCMPLEQ_N_F)
18972 (VCMPLTQ_F, VCMPLTQ_N_F, VCMPNEQ_F, VCMPNEQ_N_F): Remove.
18974 2021-05-10 Christophe Lyon <christophe.lyon@linaro.org>
18976 * config/arm/iterators.md (MVE_COMPARISONS): New.
18978 (mve_cmp_type): New.
18979 * config/arm/mve.md (mve_vcmp<mve_cmp_op>q_<mode>): New, merge all
18981 (mve_vcmpneq_<mode>, mve_vcmpcsq_n_<mode>, mve_vcmpcsq_<mode>)
18982 (mve_vcmpeqq_n_<mode>, mve_vcmpeqq_<mode>, mve_vcmpgeq_n_<mode>)
18983 (mve_vcmpgeq_<mode>, mve_vcmpgtq_n_<mode>, mve_vcmpgtq_<mode>)
18984 (mve_vcmphiq_n_<mode>, mve_vcmphiq_<mode>, mve_vcmpleq_n_<mode>)
18985 (mve_vcmpleq_<mode>, mve_vcmpltq_n_<mode>, mve_vcmpltq_<mode>)
18986 (mve_vcmpneq_n_<mode>, mve_vcmpltq_n_<mode>, mve_vcmpltq_<mode>)
18987 (mve_vcmpneq_n_<mode>): Remove.
18989 2021-05-10 Christophe Lyon <christophe.lyon@linaro.org>
18991 * config/arm/arm_mve.h (__arm_vcmp*): Remove 's' suffix.
18992 * config/arm/arm_mve_builtins.def (vcmp*): Remove 's' suffix.
18993 * config/arm/mve.md (mve_vcmp*): Remove 's' suffix in pattern
18996 2021-05-10 Christophe Lyon <christophe.lyon@linaro.org>
18998 * config/arm/arm_mve_builtins.def (vcmpneq_u): Remove.
18999 (vcmpneq_n_u): Likewise.
19000 (vcmpeqq_u,): Likewise.
19001 (vcmpeqq_n_u): Likewise.
19002 * config/arm/iterators.md (supf): Remove VCMPNEQ_U, VCMPEQQ_U,
19003 VCMPEQQ_N_U and VCMPNEQ_N_U.
19004 * config/arm/mve.md (mve_vcmpneq): Remove <supf> iteration.
19005 (mve_vcmpeqq_n): Likewise.
19006 (mve_vcmpeqq): Likewise.
19007 (mve_vcmpneq_n): Likewise.
19009 2021-05-10 Christophe Lyon <christophe.lyon@linaro.org>
19011 * config/arm/arm_mve.h (__arm_vcmpeq*u*, __arm_vcmpne*u*): Call
19012 the 's' version of the builtin.
19014 2021-05-10 Richard Biener <rguenther@suse.de>
19016 PR tree-optimization/100492
19017 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
19018 Find nothing when the loop contains an irreducible region.
19020 2021-05-10 Richard Biener <rguenther@suse.de>
19022 PR middle-end/100464
19024 * gimple-fold.c (canonicalize_constructor_val): Do not set
19027 2021-05-10 Richard Biener <rguenther@suse.de>
19029 PR tree-optimization/100434
19030 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
19032 (dse_optimize_stmt): Handle call LHS by dropping the
19033 LHS or the whole call if it doesn't have other
19035 (pass_dse::execute): Adjust.
19037 2021-05-10 Martin Liska <mliska@suse.cz>
19039 * Makefile.in: Add missing genversion rule.
19041 2021-05-10 Alex Coplan <alex.coplan@arm.com>
19044 * config/arm/mve.md (*mve_mov<mode>): Simplify output code. Use
19045 vldrw.u32 and vstrw.32 for V2D[IF]mode loads and stores.
19047 2021-05-10 Martin Liska <mliska@suse.cz>
19049 * builtins.c (is_builtin_name): Use startswith
19050 function instead of strncmp.
19051 * collect2.c (main): Likewise.
19052 (has_lto_section): Likewise.
19053 (scan_libraries): Likewise.
19054 * coverage.c (coverage_checksum_string): Likewise.
19055 (coverage_init): Likewise.
19056 * dwarf2out.c (is_cxx): Likewise.
19057 (gen_compile_unit_die): Likewise.
19058 * gcc-ar.c (main): Likewise.
19059 * gcc.c (init_spec): Likewise.
19060 (read_specs): Likewise.
19061 (execute): Likewise.
19062 (check_live_switch): Likewise.
19063 * genattrtab.c (write_attr_case): Likewise.
19064 (IS_ATTR_GROUP): Likewise.
19065 * gencfn-macros.c (main): Likewise.
19066 * gengtype.c (type_for_name): Likewise.
19067 (gen_rtx_next): Likewise.
19068 (get_file_langdir): Likewise.
19069 (write_local): Likewise.
19070 * genmatch.c (get_operator): Likewise.
19071 (get_operand_type): Likewise.
19072 (expr::gen_transform): Likewise.
19073 * genoutput.c (validate_optab_operands): Likewise.
19074 * incpath.c (add_sysroot_to_chain): Likewise.
19075 * langhooks.c (lang_GNU_C): Likewise.
19076 (lang_GNU_CXX): Likewise.
19077 (lang_GNU_Fortran): Likewise.
19078 (lang_GNU_OBJC): Likewise.
19079 * lto-wrapper.c (run_gcc): Likewise.
19080 * omp-general.c (omp_max_simt_vf): Likewise.
19081 * omp-low.c (omp_runtime_api_call): Likewise.
19082 * opts-common.c (parse_options_from_collect_gcc_options): Likewise.
19083 * read-rtl-function.c (function_reader::read_rtx_operand_r): Likewise.
19084 * real.c (real_from_string): Likewise.
19085 * selftest.c (assert_str_startswith): Likewise.
19086 * timevar.c (timer::validate_phases): Likewise.
19087 * tree.c (get_file_function_name): Likewise.
19088 * ubsan.c (ubsan_use_new_style_p): Likewise.
19089 * varasm.c (default_function_rodata_section): Likewise.
19090 (incorporeal_function_p): Likewise.
19091 (default_section_type_flags): Likewise.
19092 * system.h (startswith): Define startswith.
19094 2021-05-10 Martin Liska <mliska@suse.cz>
19096 * bitmap.h (class auto_bitmap): Remove
19097 __cplusplus >= 201103.
19098 * config/aarch64/aarch64.c: Likewise.
19099 * gimple-ssa-store-merging.c (store_immediate_info::store_immediate_info):
19101 * sbitmap.h: Likewise.
19103 2021-05-10 Martin Liska <mliska@suse.cz>
19105 * Makefile.in: Rename gcov-iov to genversion and depend
19106 on version.h (instead of gcov-iov.h).
19107 * gcov-io.h: Include version.h instread of gcov-iov.h.
19108 * gengtype-state.c (read_state_version): Likewise.
19109 * gcov-iov.c: Moved to...
19110 * genversion.c: ...here.
19111 * lto-streamer.h (LTO_major_version): Define it with
19113 * version.c: Removed.
19114 * version.h: Removed.
19116 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
19118 * config/arc/arc.md (UNSPEC_ARC_DMPYWH): Define.
19119 * config/arc/simdext.md (VCT): Add predicates for iterator
19122 (voptab): Likewise.
19123 (vec_widen_<V_US>mult_hi_v4hi): Change pattern predicate.
19124 (<voptab>v2si3): New patterns.
19126 (reduc_plus_scal_v4hi): Likewise.
19127 (reduc_plus_scal_v2si): Likewise.
19128 (vec_duplicatev2si): Likewise.
19129 (vec_duplicatev4hi): Likewise.
19131 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
19133 * config/arc/simdext.md: Format and cleanup file.
19135 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
19137 * config/arc/simdext.md (movmisalignv2hi): Allow misaligned access
19138 only when munaligned-access option is on.
19139 (movmisalign<mode>): Likewise.
19141 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
19143 * common/config/arc/arc-common.c (arc_handle_option): Remove dot
19145 * config/arc/arc.c (arc_reorg): Remove underscore from string.
19147 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
19149 * config/arc/arc.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
19150 (CTZ_DEFINED_VALUE_AT_ZERO): Likewise.
19151 * config/arc/arc.md (clrsbsi2): Cleanup pattern.
19152 (norm_f): Likewise.
19155 (clzsi2): Use fls instruction when available.
19156 (arc_clzsi2): Likewise.
19158 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
19160 * config/arc/arc.h (ADDITIONAL_REGISTER_NAMES): Add r26 and r27.
19162 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
19164 * doc/extend.texi (__builtin_arc_sr): Swap arguments.
19166 2021-05-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
19168 PR middle-end/100467
19169 * toplev.c (compile_file): Call insn_locations_init before
19170 targetm.asm_out.code_end.
19172 2021-05-07 Andrew Stubbs <ams@codesourcery.com>
19175 2021-05-07 Andrew Stubbs <ams@codesourcery.com>
19177 * config/gcn/gcn.c (gcn_scalar_mode_supported_p): Disable TImode.
19179 2021-05-07 Jakub Jelinek <jakub@redhat.com>
19180 Andrew Stubbs <amd@codesourcery.com>
19183 * builtins.c (try_store_by_multiple_pieces): Use force_operand for
19184 emit_move_insn operands.
19186 2021-05-07 Eric Botcazou <ebotcazou@adacore.com>
19188 * cfgexpand.c (expand_gimple_basic_block): Do not inherit a current
19189 location for the outgoing edges of an empty block.
19190 * dwarf2out.c (add_subscript_info): Retrieve the bounds and index
19191 type by means of the get_array_descr_info langhook, if it is set and
19192 returns true. Remove obsolete code dealing with unnamed subtypes.
19194 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
19196 * gimple-range-cache.cc (ssa_block_ranges): Virtualize.
19197 (sbr_vector): Renamed from ssa_block_cache.
19198 (sbr_vector::sbr_vector): Allocate from obstack abd initialize.
19199 (ssa_block_ranges::~ssa_block_ranges): Remove.
19200 (sbr_vector::set_bb_range): Use varying and undefined cached values.
19201 (ssa_block_ranges::set_bb_varying): Remove.
19202 (sbr_vector::get_bb_range): Adjust assert.
19203 (sbr_vector::bb_range_p): Adjust assert.
19204 (~block_range_cache): No freeing loop required.
19205 (block_range_cache::get_block_ranges): Remove.
19206 (block_range_cache::set_bb_range): Inline get_block_ranges.
19207 (block_range_cache::set_bb_varying): Remove.
19208 * gimple-range-cache.h (set_bb_varying): Remove prototype.
19209 * value-range.h (irange_allocator::get_memory): New.
19211 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
19213 * gimple-range-cache.cc (non_null_ref::non_null_deref_p): Search
19214 dominator tree is available and requested.
19215 (ranger_cache::ssa_range_in_bb): Don't search dom tree here.
19216 (ranger_cache::fill_block_cache): Don't search dom tree here either.
19217 * gimple-range-cache.h (non_null_deref_p): Add dom_search param.
19219 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
19221 * gimple-range.cc (gimple_ranger::range_on_exit): Handle block with
19222 only PHI nodes better.
19224 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
19226 * gimple-range-edge.h (gimple_outgoing_range): Rename from
19228 (gcond_edge_range): Export prototype.
19229 * gimple-range-edge.cc (gcond_edge_range): New.
19230 (gimple_outgoing_range::edge_range_p): Use gcond_edge_range.
19231 * gimple-range-gori.h (gori_compute): Use gimple_outgoing_range.
19233 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
19235 * gimple-range-edge.cc (outgoing_range::calc_switch_ranges): Compute
19236 default range into a temp and allocate only what is needed.
19238 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
19240 * range-op.cc (operator_trunc_mod::wi_fold): x % 0 is UNDEFINED.
19242 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
19244 * gimple-range.h (gimple_range_global): Pick up parameter initial
19245 values, and use-before defined locals are UNDEFINED.
19247 2021-05-07 Eric Botcazou <ebotcazou@adacore.com>
19249 * doc/extend.texi (scalar_storage_order): Mention effect on pointer
19251 * tree.h (reverse_storage_order_for_component_p): Return false if
19252 the type is a pointer.
19254 2021-05-07 Andrew Stubbs <ams@codesourcery.com>
19256 * config/gcn/gcn.c (gcn_scalar_mode_supported_p): Disable TImode.
19258 2021-05-07 Uroš Bizjak <ubizjak@gmail.com>
19261 * config/i386/i386-expand.c (ix86_expand_sse_movcc):
19262 Handle V8QI, V4HI and V2SI modes.
19263 * config/i386/mmx.md (mmx_pblendvb): New insn pattern.
19264 * config/i386/sse.md (unspec): Move UNSPEC_BLENDV ...
19265 * config/i386/i386.md (unspec): ... here.
19267 2021-05-07 Tobias Burnus <tobias@codesourcery.com>
19268 Tom de Vries <tdevries@suse.de>
19270 * omp-low.c (lower_rec_simd_input_clauses): Set max_vf = 1 if
19271 a truth_value_p reduction variable is nonintegral.
19273 2021-05-07 Uroš Bizjak <ubizjak@gmail.com>
19276 * config/i386/i386-expand.c (ix86_use_mask_cmp_p):
19277 Return false for mode sizes < 16.
19279 2021-05-07 Jakub Jelinek <jakub@redhat.com>
19282 * config/i386/mmx.md (*xop_pcmov_<mode>): New define_insn.
19284 2021-05-06 Martin Jambor <mjambor@suse.cz>
19286 * ipa-sra.c (ipa_sra_dump_all_summaries): Dump edge summaries even
19287 when there is no function summary.
19288 (ipa_sra_summarize_function): produce edge summaries even when
19291 2021-05-06 Tom Tromey <tom@tromey.com>
19293 * godump.c (string_hash_eq): Remove.
19294 (go_finish): Use htab_eq_string.
19296 2021-05-06 Tom Tromey <tom@tromey.com>
19298 * gengtype-state.c (read_state): Use htab_eq_string.
19299 (string_eq): Remove.
19301 2021-05-06 Tom Tromey <tom@tromey.com>
19303 * gensupport.c (htab_eq_string): Remove.
19305 2021-05-06 Bernd Edlinger <bernd.edlinger@hotmail.de>
19308 * debug.h (gcc_debug_hooks): Add set_ignored_loc function pointer.
19309 * dwarf2out.h (dw_fde_node::ignored_debug): New data item.
19310 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Add dummy
19311 set_ignored_loc callbacks.
19312 * debug.c (do_nothing_debug_hooks): Likewise.
19313 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
19314 * dwarf2out.c (text_section_used, cold_text_section_used): Remove.
19315 (in_text_section_p, last_text_label, last_cold_label,
19316 switch_text_ranges, switch_cold_ranges): New data items.
19317 (dwarf2out_note_section_used): Remove.
19318 (dwarf2out_begin_prologue): Set fde->ignored_debug and
19320 (mark_ignored_debug_section): New helper function.
19321 (dwarf2out_end_epilogue, dwarf2out_switch_text_section): Call
19322 mark_ignored_debug_section.
19323 (dwarf2_debug_hooks): Use dwarf2out_set_ignored_loc.
19324 (dwarf2_lineno_debug_hooks): Use dummy for set_ignored_loc.
19325 (size_of_aranges): Adjust formula for multi-part text ranges size.
19326 (output_aranges): Output multi-part text ranges.
19327 (dwarf2out_set_ignored_loc): New callback function.
19328 (dwarf2out_finish): Output multi-part text ranges.
19329 (dwarf2out_c_finalize): Clear new data items.
19330 * final.c (final_start_function_1): Call set_ignored_loc callback.
19331 (final_scan_insn_1): Likewise.
19332 * ggc-page.c (gt_ggc_mx): New helper function.
19333 * stringpool.c (gt_pch_nx): Likewise.
19335 2021-05-06 Richard Biener <rguenther@suse.de>
19337 * timevar.def (TV_TREE_INSERT_PHI_NODES): Remove.
19338 (TV_TREE_SSA_REWRITE_BLOCKS): Likewise.
19339 (TV_TREE_INTO_SSA): New.
19340 * tree-into-ssa.c (insert_phi_nodes): Do not account separately.
19341 (rewrite_blocks): Likewise.
19342 (pass_data_build_ssa): Account to TV_TREE_INTO_SSA.
19344 2021-05-06 Jakub Jelinek <jakub@redhat.com>
19346 * tree-ssa-phiopt.c (value_replacement, minmax_replacement,
19347 abs_replacement, xor_replacement,
19348 cond_removal_in_popcount_clz_ctz_pattern,
19349 replace_phi_edge_with_variable): Change type of phi argument from
19350 gimple * to gphi *.
19352 2021-05-06 Richard Biener <rguenther@suse.de>
19354 * tree-ssa-loop-split.c (split_loop): Delay updating SSA form.
19355 Output an opt-info message.
19356 (do_split_loop_on_cond): Likewise.
19357 (tree_ssa_split_loops): Update SSA form here.
19359 2021-05-06 Richard Biener <rguenther@suse.de>
19361 * tree-inline.c (tree_function_versioning): Fix DECL_BY_REFERENCE
19362 return variable removal.
19364 2021-05-06 Marius Hillenbrand <mhillen@linux.ibm.com>
19366 * config/s390/s390-builtins.def (O_M5, O1_M5, ...): Remove unused macros.
19367 (s390_vec_permi_s64, s390_vec_permi_b64, s390_vec_permi_u64)
19368 (s390_vec_permi_dbl, s390_vpdi): Use the O3_U2 type for the immediate
19370 * config/s390/s390.c (s390_const_operand_ok): Remove unused
19373 2021-05-06 Jakub Jelinek <jakub@redhat.com>
19375 PR tree-optimization/94589
19376 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Call
19377 spaceship_replacement.
19378 (cond_only_block_p, spaceship_replacement): New functions.
19380 2021-05-06 Richard Biener <rguenther@suse.de>
19383 * tree-emutls.c (gen_emutls_addr): Pass in whether we're
19384 dealing with a debug use and only query existing addresses
19386 (lower_emutls_1): Avoid splitting out addresses for debug
19387 stmts, reset the debug stmt when we fail to find existing
19389 (lower_emutls_phi_arg): Set wi.stmt.
19391 2021-05-06 Christoph Muellner <cmuellner@gcc.gnu.org>
19394 * config/riscv/riscv.c (riscv_block_move_loop): Use cbranch helper.
19395 * config/riscv/riscv.md (cbranch<mode>4): Generate helpers.
19396 (stack_protect_test): Use cbranch helper.
19398 2021-05-05 Eric Botcazou <ebotcazou@adacore.com>
19401 * config/i386/i386.c (ix86_compute_frame_layout): For a SEH target,
19402 always return the establisher frame for __builtin_frame_address (0).
19404 2021-05-05 Ivan Sorokin <vanyacpp@gmail.com>
19407 * config/i386/i386-builtins.c (ix86_cpu_model_type_node): New.
19408 (ix86_cpu_model_var): Likewise.
19409 (ix86_cpu_features2_type_node): Likewise.
19410 (ix86_cpu_features2_var): Likewise.
19411 (fold_builtin_cpu): Cache __cpu_model and __cpu_features2 with
19414 2021-05-05 Martin Sebor <msebor@redhat.com>
19416 * passes.def (pass_warn_printf): Run after SSA.
19418 2021-05-05 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
19420 * config/arm/neon.md (neon_vtst_combine<mode>): New pattern.
19421 * config/arm/predicates.md (minus_one_operand): New predicate.
19423 2021-05-05 Jeff Law <jlaw@tachyum.com>
19425 * config/avr/avr.md: Remove references to CC_STATUS_INIT.
19427 2021-05-05 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
19429 PR rtl-optimization/100263
19430 * postreload.c (move2add_valid_value_p): Ensure register can
19433 2021-05-05 Eric Botcazou <ebotcazou@adacore.com>
19435 PR rtl-optimization/100411
19436 * cfgcleanup.c (try_crossjump_to_edge): Also skip end of prologue
19437 and beginning of function markers.
19439 2021-05-05 Jeff Law <jlaw@tachyum.com>
19441 * config/cr16/cr16.h (NOTICE_UPDATE_CC): Remove.
19442 * config/cr16/cr16.c (notice_update_cc): Remove.
19443 * config/cr16/cr16-protos.h (notice_update_cc): Remove.
19445 2021-05-05 Uroš Bizjak <ubizjak@gmail.com>
19448 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
19449 Handle V8QI, V4HI and V2SI modes.
19450 * config/i386/i386.c (ix86_build_const_vector): Handle V2SImode.
19451 (ix86_build_signbit_mask): Ditto.
19452 * config/i386/mmx.md (MMXMODE14): New mode iterator.
19453 (<smaxmin:code><MMXMODE14:mode>3): New expander.
19454 (*mmx_<smaxmin:code><MMXMODE14:mode>3): New insn pattern.
19455 (<umaxmin:code><MMXMODE24:mode>3): New expander.
19456 (*mmx_<umaxmin:code><MMXMODE24:mode>3): New insn pattern.
19457 (vec_cmp<MMXMODEI:mode><MMXMODEI:mode>): New expander.
19458 (vec_cmpu<MMXMODEI:mode><MMXMODEI:mode>): Ditto.
19459 (vcond<MMXMODEI:mode><MMXMODEI:mode>): Ditto.
19460 (vcondu<MMXMODEI:mode><MMXMODEI:mode>): Ditto.
19461 (vcond_mask_<MMXMODEI:mode><MMXMODEI:mode>): Ditto.
19463 2021-05-05 Eric Botcazou <ebotcazou@adacore.com>
19465 * dwarf2out.c (loc_list_from_tree_1) <DECL>: During early DWARF, do
19466 not expand the VALUE_EXPR of variables put in the non-local frame.
19467 * gimplify.c (gimplify_type_sizes) <RECORD_TYPE>: If the type is not
19468 to be ignored for debug info, ensure its variable offsets are not.
19470 2021-05-05 Richard Biener <rguenther@suse.de>
19472 PR tree-optimization/79333
19473 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt):
19474 Fold stmt following SSA edges.
19476 2021-05-05 Richard Biener <rguenther@suse.de>
19478 PR middle-end/100394
19479 * calls.c (expand_call): Preserve possibly throwing calls.
19480 * cfgexpand.c (expand_call_stmt): When a call can throw signal
19481 RTL expansion there are side-effects.
19482 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Simplify,
19483 mark all possibly throwing stmts necessary unless we can elide
19485 * tree-ssa-dse.c (pass_dse::execute): Preserve exceptions unless
19486 -fdelete-dead-exceptions.
19487 * tree.h (DECL_PURE_P): Add note about exceptions.
19489 2021-05-05 Alexandre Oliva <oliva@adacore.com>
19491 * config/i386/vxworks.h (DBX_REGISTER_NUMBER): Make it
19494 2021-05-04 David Edelsohn <dje.gcc@gmail.com>
19496 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
19497 get_fnname_from_decl for name of thunk.
19498 * config/rs6000/rs6000.c (rs6000_declare_alias): Use assemble_name
19499 and ASM_OUTPUT_LABEL.
19500 (rs6000_xcoff_declare_function_name): Use assemble_name and
19502 (rs6000_xcoff_declare_object_name): Use ASM_OUTPUT_LABEL.
19503 (rs6000_xcoff_encode_section_info): Don't add mapping class
19504 for aliases. Always add [DS] mapping class to primary
19506 (rs6000_asm_weaken_decl): Don't explicitly add [DS].
19508 2021-05-04 Martin Sebor <msebor@redhat.com>
19510 PR middle-end/100307
19511 * builtins.c (compute_objsize_r): Clear base0 for pointers.
19513 2021-05-04 Jeff Law <jlaw@tachyum.com>
19515 * config/bfin/bfin.h (NOTICE_UPDATE_CC): Remove.
19517 2021-05-04 Segher Boessenkool <segher@kernel.crashing.org>
19519 * caller-save.c: Remove CC0.
19520 * cfgcleanup.c: Remove CC0.
19521 * cfgrtl.c: Remove CC0.
19522 * combine.c: Remove CC0.
19523 * compare-elim.c: Remove CC0.
19524 * conditions.h: Remove CC0.
19525 * config/h8300/h8300.h: Remove CC0.
19526 * config/h8300/h8300-protos.h: Remove CC0.
19527 * config/h8300/peepholes.md: Remove CC0.
19528 * config/i386/x86-tune-sched.c: Remove CC0.
19529 * config/m68k/m68k.c: Remove CC0.
19530 * config/rl78/rl78.c: Remove CC0.
19531 * config/sparc/sparc.c: Remove CC0.
19532 * config/xtensa/xtensa.c: Remove CC0.
19533 (gen_conditional_move): Use pc_rtx instead of cc0_rtx in a piece of
19534 RTL where that is used as a placeholder only.
19535 * cprop.c: Remove CC0.
19536 * cse.c: Remove CC0.
19537 * cselib.c: Remove CC0.
19538 * df-problems.c: Remove CC0.
19539 * df-scan.c: Remove CC0.
19540 * doc/md.texi: Remove CC0. Adjust an example.
19541 * doc/rtl.texi: Remove CC0. Adjust an example.
19542 * doc/tm.texi: Regenerate.
19543 * doc/tm.texi.in: Remove CC0.
19544 * emit-rtl.c: Remove CC0.
19545 * final.c: Remove CC0.
19546 * fwprop.c: Remove CC0.
19547 * gcse-common.c: Remove CC0.
19548 * gcse.c: Remove CC0.
19549 * genattrtab.c: Remove CC0.
19550 * genconfig.c: Remove CC0.
19551 * genemit.c: Remove CC0.
19552 * genextract.c: Remove CC0.
19553 * gengenrtl.c: Remove CC0.
19554 * genrecog.c: Remove CC0.
19555 * haifa-sched.c: Remove CC0.
19556 * ifcvt.c: Remove CC0.
19557 * ira-costs.c: Remove CC0.
19558 * ira.c: Remove CC0.
19559 * jump.c: Remove CC0.
19560 * loop-invariant.c: Remove CC0.
19561 * lra-constraints.c: Remove CC0.
19562 * lra-eliminations.c: Remove CC0.
19563 * optabs.c: Remove CC0.
19564 * postreload-gcse.c: Remove CC0.
19565 * postreload.c: Remove CC0.
19566 * print-rtl.c: Remove CC0.
19567 * read-rtl-function.c: Remove CC0.
19568 * reg-notes.def: Remove CC0.
19569 * reg-stack.c: Remove CC0.
19570 * reginfo.c: Remove CC0.
19571 * regrename.c: Remove CC0.
19572 * reload.c: Remove CC0.
19573 * reload1.c: Remove CC0.
19574 * reorg.c: Remove CC0.
19575 * resource.c: Remove CC0.
19576 * rtl.c: Remove CC0.
19577 * rtl.def: Remove CC0.
19578 * rtl.h: Remove CC0.
19579 * rtlanal.c: Remove CC0.
19580 * sched-deps.c: Remove CC0.
19581 * sched-rgn.c: Remove CC0.
19582 * shrink-wrap.c: Remove CC0.
19583 * simplify-rtx.c: Remove CC0.
19584 * system.h: Remove CC0. Poison NOTICE_UPDATE_CC, CC_STATUS_MDEP_INIT,
19585 CC_STATUS_MDEP, and CC_STATUS.
19586 * target.def: Remove CC0.
19587 * valtrack.c: Remove CC0.
19588 * var-tracking.c: Remove CC0.
19590 2021-05-04 Richard Biener <rguenther@suse.de>
19592 PR tree-optimization/100414
19593 * tree-ssa-phiopt.c (get_non_trapping): Do not compute dominance
19595 (tree_ssa_phiopt_worker): But unconditionally here.
19597 2021-05-04 Tobias Burnus <tobias@codesourcery.com>
19599 * omp-low.c (lower_rec_input_clauses, lower_reduction_clauses): Handle
19600 && and || with floating-point and complex arguments.
19602 2021-05-04 Eric Botcazou <ebotcazou@adacore.com>
19604 * tree-inline.c (insert_debug_decl_map): Delete.
19605 (copy_debug_stmt): Minor tweak.
19606 (setup_one_parameter): Do not use a variable if the value is either
19607 a read-only DECL or a non-addressable local variable in the caller.
19608 In this case, insert the debug-only variable in the map manually.
19609 (expand_call_inline): Do not generate a CLOBBER for these values.
19610 * tree-inline.h (debug_map): Minor tweak.
19612 2021-05-04 Eric Botcazou <ebotcazou@adacore.com>
19614 * builtins.c (builtin_with_linkage_p): Return true for stp[n]cpy.
19615 * symtab.c (symtab_node::output_to_lto_symbol_table_p): Tidy up.
19617 2021-05-04 Richard Biener <rguenther@suse.de>
19619 PR tree-optimization/100329
19620 * tree-ssa-reassoc.c (can_reassociate_p): Do not reassociate
19622 (insert_stmt_after): Assert we're not running into asm goto.
19624 2021-05-04 Richard Biener <rguenther@suse.de>
19626 PR tree-optimization/100398
19627 * tree-ssa-dse.c (pass_dse::execute): Preserve control
19630 2021-05-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
19632 * builtins.c (try_store_by_multiple_pieces): Fix constfun's prototype.
19634 2021-05-04 Alexandre Oliva <oliva@adacore.com>
19636 * builtins.c (try_store_by_multiple_pieces): New.
19637 (expand_builtin_memset_args): Use it. If target_char_cast
19638 fails, proceed as for non-constant val. Pass len's ctz to...
19639 * expr.c (clear_storage_hints): ... this. Try store by
19640 multiple pieces after setmem.
19641 (clear_storage): Adjust.
19642 * expr.h (clear_storage_hints): Likewise.
19643 (try_store_by_multiple_pieces): Declare.
19644 * passes.def: Replace the last copy_prop with ccp.
19646 2021-05-03 Tom de Vries <tdevries@suse.de>
19649 * omp-low.c (lower_rec_input_clauses): Disable SIMT for user-defined
19652 2021-05-03 Richard Biener <rguenther@suse.de>
19654 * tree-ssa-dse.c (dse_classify_store): Track two PHI defs.
19656 2021-05-03 Richard Biener <rguenther@suse.de>
19658 * tree-ssa-dse.c: Do not include domwalk.h but cfganal.h.
19659 (dse_dom_walker): Remove.
19660 (dse_dom_walker::dse_optimize_stmt): Rename...
19661 (dse_optimize_stmt): ... to this, pass in live_bytes sbitmap.
19662 (dse_dom_walker::before_dom_children): Inline ...
19663 (pass_dse::execute): ... here. Perform a reverse program
19666 2021-05-03 H.J. Lu <hjl.tools@gmail.com>
19669 * configure: Regenerated.
19671 2021-05-03 Ilya Leoshkevich <iii@linux.ibm.com>
19674 * config/s390/s390.c (s390_hard_fp_reg_p): New function.
19675 (s390_md_asm_adjust): Handle hard registers.
19677 2021-05-03 Jakub Jelinek <jakub@redhat.com>
19679 PR tree-optimization/100382
19680 * tree-ssa-dse.c: Include tree-eh.h.
19681 (dse_dom_walker::before_dom_children): Don't remove stmts if
19682 stmt_unremovable_because_of_non_call_eh_p is true.
19684 2021-05-02 David Edelsohn <dje.gcc@gmail.com>
19686 * varasm.c (compute_reloc_for_var): Split out from...
19687 (get_variable_section): Use it.
19688 * output.h (compute_reloc_for_var): Declare.
19689 * config/rs6000/rs6000-protos.h
19690 (rs6000_xcoff_asm_output_aligned_decl_common): Change alignment to
19692 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address_aix):
19693 Don't append storage mapping class to symbol.
19694 (rs6000_xcoff_asm_named_section): Add BS and UL mapping classes.
19695 Don't convert TLS BSS to common.
19696 (rs6000_xcoff_unique_section): Don't fall back to select_secton.
19697 (rs6000_xcoff_section_type_flags): Add SECTION_BSS if DECL is
19699 (rs6000_xcoff_asm_globalize_decl_name): Don't strip storage
19701 (rs6000_xcoff_asm_output_aligned_decl_common): Align is unsigned int.
19702 If align is 0 from TLS class, use the same rules as varasm.c
19703 If not common, switch to BSS section manually.
19704 If common, emit appropriate comm or lcomm directive.
19705 (rs6000_xcoff_encode_section_info): Add logic to append all
19706 storage mapping classes.
19707 (rs6000_asm_weaken_decl): Adjust for qualname symbols.
19708 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
19709 rs6000_xcoff_asm_output_aligned_decl_common.
19710 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
19711 rs6000_xcoff_asm_output_aligned_decl_common.
19712 (ASM_OUTPUT_TLS_COMMON): Use
19713 rs6000_xcoff_asm_output_aligned_decl_common.
19715 2021-05-02 Jakub Jelinek <jakub@redhat.com>
19718 * config/nvptx/nvptx.c (nvptx_sese_pseudo): Use nullptr instead of 0
19719 as first argument of pseudo_node_t constructors.
19721 2021-05-02 Jakub Jelinek <jakub@redhat.com>
19724 * config/i386/t-i386 (TM_H): Add $(srcdir)/config/i386/i386-isa.def.
19726 2021-05-01 Aldy Hernandez <aldyh@redhat.com>
19728 * value-range.cc (DEFINE_INT_RANGE_GC_STUBS): Remove.
19729 (gt_pch_nx (int_range<1> *&)): New.
19730 (gt_ggc_mx (int_range<1> *&)): New.
19731 * value-range.h (class irange): Add GTY support for
19734 2021-05-01 Geng Qi <gengqi@linux.alibaba.com>
19736 * doc/options.texi (Negative): Change either or to both and.
19738 2021-04-30 Jonathan Wright <jonathan.wright@arm.com>
19740 * config/aarch64/aarch64-simd-builtins.def: Add
19741 float_ml[as][q]_laneq builtin generator macros.
19742 * config/aarch64/aarch64-simd.md (mul_laneq<mode>3): Define.
19743 (aarch64_float_mla_laneq<mode>): Define.
19744 (aarch64_float_mls_laneq<mode>): Define.
19745 * config/aarch64/arm_neon.h (vmla_laneq_f32): Use RTL builtin
19746 instead of GCC vector extensions.
19747 (vmlaq_laneq_f32): Likewise.
19748 (vmls_laneq_f32): Likewise.
19749 (vmlsq_laneq_f32): Likewise.
19751 2021-04-30 Jonathan Wright <jonathan.wright@arm.com>
19753 * config/aarch64/aarch64-simd-builtins.def: Add
19754 float_ml[as]_lane builtin generator macros.
19755 * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt<mode>):
19757 (mul_lane<mode>3): This, and re-order arguments.
19758 (aarch64_float_mla_lane<mode>): Define.
19759 (aarch64_float_mls_lane<mode>): Define.
19760 * config/aarch64/arm_neon.h (vmla_lane_f32): Use RTL builtin
19761 instead of GCC vector extensions.
19762 (vmlaq_lane_f32): Likewise.
19763 (vmls_lane_f32): Likewise.
19764 (vmlsq_lane_f32): Likewise.
19766 2021-04-30 Jonathan Wright <jonathan.wright@arm.com>
19768 * config/aarch64/aarch64-simd-builtins.def: Add float_ml[as]
19769 builtin generator macros.
19770 * config/aarch64/aarch64-simd.md (aarch64_float_mla<mode>):
19772 (aarch64_float_mls<mode>): Define.
19773 * config/aarch64/arm_neon.h (vmla_f32): Use RTL builtin
19774 instead of relying on GCC vector extensions.
19775 (vmla_f64): Likewise.
19776 (vmlaq_f32): Likewise.
19777 (vmlaq_f64): Likewise.
19778 (vmls_f32): Likewise.
19779 (vmls_f64): Likewise.
19780 (vmlsq_f32): Likewise.
19781 (vmlsq_f64): Likewise.
19782 * config/aarch64/iterators.md: Define VDQF_DF mode iterator.
19784 2021-04-30 Jonathan Wright <jonathan.wright@arm.com>
19786 * config/aarch64/aarch64-simd-builtins.def: Add
19787 float_ml[as]_n_builtin generator macros.
19788 * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_from_dup<mode>):
19790 (mul_n<mode>3): This, and re-order arguments.
19791 (aarch64_float_mla_n<mode>): Define.
19792 (aarch64_float_mls_n<mode>): Define.
19793 * config/aarch64/arm_neon.h (vmla_n_f32): Use RTL builtin
19794 instead of inline asm.
19795 (vmlaq_n_f32): Likewise.
19796 (vmls_n_f32): Likewise.
19797 (vmlsq_n_f32): Likewise.
19799 2021-04-30 Jonathan Wright <joanthan.wright@arm.com>
19801 * config/aarch64/aarch64-simd-builtins.def: Add pmull[2]
19802 builtin generator macros.
19803 * config/aarch64/aarch64-simd.md (aarch64_pmullv8qi): Define.
19804 (aarch64_pmull_hiv16qi_insn): Define.
19805 (aarch64_pmull_hiv16qi): Define.
19806 * config/aarch64/arm_neon.h (vmull_high_p8): Use RTL builtin
19807 instead of inline asm.
19808 (vmull_p8): Likewise.
19810 2021-04-30 Senthil Kumar Selvaraj <saaadhu@gcc.gnu.org>
19812 * config/avr/avr.md: Adjust peepholes to match and
19813 generate parallels with clobber of REG_CC.
19814 (mov<mode>_insn): Rename to mov<mode>_insn_split.
19815 (*mov<mode>_insn): Rename to mov<mode>_insn.
19817 2021-04-30 David Edelsohn <dje.gcc@gmail.com>
19819 * varasm.c (use_blocks_for_decl_p): Don't use section anchors
19820 for VAR_DECLs if -fdata-sections enabled.
19822 2021-04-30 Michael Meissner <meissner@linux.ibm.com>
19824 PR bootstrap/100327
19825 * config/rs6000/rs6000.c
19826 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Define.
19827 (rs6000_libgcc_floating_mode_supported_p): New target hook.
19829 2021-04-30 Aldy Hernandez <aldyh@redhat.com>
19831 * tree-ssa-threadbackward.c (class thread_jumps): Split out code
19833 (class back_threader_registry): ...to here...
19834 (class back_threader_profitability): ...and here...
19835 (thread_jumps::thread_through_all_blocks): Remove argument.
19836 (back_threader_registry::back_threader_registry): New.
19837 (back_threader_registry::~back_threader_registry): New.
19838 (back_threader_registry::thread_through_all_blocks): New.
19839 (thread_jumps::profitable_jump_thread_path): Move from here...
19840 (back_threader_profitability::profitable_path_p): ...to here.
19841 (thread_jumps::find_taken_edge): New.
19842 (thread_jumps::convert_and_register_current_path): Move...
19843 (back_threader_registry::register_path): ...to here.
19844 (thread_jumps::register_jump_thread_path_if_profitable): Move...
19845 (thread_jumps::maybe_register_path): ...to here.
19846 (thread_jumps::handle_phi): Call find_taken_edge and
19847 maybe_register_path.
19848 (thread_jumps::handle_assignment): Same.
19849 (thread_jumps::fsm_find_control_statement_thread_paths): Remove
19850 tree argument to handle_phi and handle_assignment.
19851 (thread_jumps::find_jump_threads_backwards): Set m_name. Remove
19852 set of m_speed_p and m_max_threaded_paths.
19853 (pass_thread_jumps::execute): Remove second argument from
19854 find_jump_threads_backwards.
19855 (pass_early_thread_jumps::execute): Same.
19857 2021-04-30 Aldy Hernandez <aldyh@redhat.com>
19859 * tree-ssa-dom.c (class dom_jump_threader_simplifier): New.
19860 (class dom_opt_dom_walker): Initialize some class variables.
19861 (pass_dominator::execute): Pass evrp_range_analyzer and
19862 dom_jump_threader_simplifier to dom_opt_dom_walker.
19863 Adjust for some functions moving into classes.
19864 (simplify_stmt_for_jump_threading): Adjust and move to...
19865 (jump_threader_simplifier::simplify): ...here.
19866 (dom_opt_dom_walker::before_dom_children): Adjust for
19867 m_evrp_range_analyzer.
19868 (dom_opt_dom_walker::after_dom_children): Remove x_vr_values hack.
19869 (test_for_singularity): Place in dom_opt_dom_walker class.
19870 (dom_opt_dom_walker::optimize_stmt): The argument
19871 evrp_range_analyzer is now a class field.
19872 * tree-ssa-threadbackward.c (class thread_jumps): Add m_registry.
19873 (thread_jumps::thread_through_all_blocks): New.
19874 (thread_jumps::convert_and_register_current_path): Use m_registry.
19875 (pass_thread_jumps::execute): Adjust for thread_through_all_blocks
19876 being in the threader class.
19877 (pass_early_thread_jumps::execute): Same.
19878 * tree-ssa-threadedge.c (threadedge_initialize_values): Move...
19879 (jump_threader::jump_threader): ...here.
19880 (threadedge_finalize_values): Move...
19881 (jump_threader::~jump_threader): ...here.
19882 (jump_threader::remove_jump_threads_including): New.
19883 (jump_threader::thread_through_all_blocks): New.
19884 (record_temporary_equivalences_from_phis): Move...
19885 (jump_threader::record_temporary_equivalences_from_phis): ...here.
19886 (record_temporary_equivalences_from_stmts_at_dest): Move...
19887 (jump_threader::record_temporary_equivalences_from_stmts_at_dest):
19889 (simplify_control_stmt_condition_1): Move to jump_threader class.
19890 (simplify_control_stmt_condition): Move...
19891 (jump_threader::simplify_control_stmt_condition): ...here.
19892 (thread_around_empty_blocks): Move...
19893 (jump_threader::thread_around_empty_blocks): ...here.
19894 (thread_through_normal_block): Move...
19895 (jump_threader::thread_through_normal_block): ...here.
19896 (thread_across_edge): Move...
19897 (jump_threader::thread_across_edge): ...here.
19898 (thread_outgoing_edges): Move...
19899 (jump_threader::thread_outgoing_edges): ...here.
19900 * tree-ssa-threadedge.h: Move externally facing functings...
19901 (class jump_threader): ...here...
19902 (class jump_threader_simplifier): ...and here.
19903 * tree-ssa-threadupdate.c (struct redirection_data): Remove comment.
19904 (jump_thread_path_allocator::jump_thread_path_allocator): New.
19905 (jump_thread_path_allocator::~jump_thread_path_allocator): New.
19906 (jump_thread_path_allocator::allocate_thread_edge): New.
19907 (jump_thread_path_allocator::allocate_thread_path): New.
19908 (jump_thread_path_registry::jump_thread_path_registry): New.
19909 (jump_thread_path_registry::~jump_thread_path_registry): New.
19910 (jump_thread_path_registry::allocate_thread_edge): New.
19911 (jump_thread_path_registry::allocate_thread_path): New.
19912 (dump_jump_thread_path): Make extern.
19913 (debug (const vec<jump_thread_edge *> &path)): New.
19914 (struct removed_edges): Move to tree-ssa-threadupdate.h.
19915 (struct thread_stats_d): Remove.
19916 (remove_ctrl_stmt_and_useless_edges): Make static.
19917 (lookup_redirection_data): Move...
19918 (jump_thread_path_registry::lookup_redirection_data): ...here.
19919 (ssa_redirect_edges): Make static.
19920 (thread_block_1): Move...
19921 (jump_thread_path_registry::thread_block_1): ...here.
19922 (thread_block): Move...
19923 (jump_thread_path_registry::thread_block): ...here.
19924 (thread_through_loop_header): Move...
19925 (jump_thread_path_registry::thread_through_loop_header): ...here.
19926 (mark_threaded_blocks): Move...
19927 (jump_thread_path_registry::mark_threaded_blocks): ...here.
19928 (debug_path): Move...
19929 (jump_thread_path_registry::debug_path): ...here.
19930 (debug_all_paths): Move...
19931 (jump_thread_path_registry::dump): ..here.
19932 (rewire_first_differing_edge): Move...
19933 (jump_thread_path_registry::rewire_first_differing_edge): ...here.
19934 (adjust_paths_after_duplication): Move...
19935 (jump_thread_path_registry::adjust_paths_after_duplication): ...here.
19936 (duplicate_thread_path): Move...
19937 (jump_thread_path_registry::duplicate_thread_path): ..here.
19938 (remove_jump_threads_including): Move...
19939 (jump_thread_path_registry::remove_jump_threads_including): ...here.
19940 (thread_through_all_blocks): Move to...
19941 (jump_thread_path_registry::thread_through_all_blocks): ...here.
19942 (delete_jump_thread_path): Remove.
19943 (register_jump_thread): Move...
19944 (jump_thread_path_registry::register_jump_thread): ...here.
19945 * tree-ssa-threadupdate.h: Move externally facing functions...
19946 (class jump_thread_path_allocator): ...here...
19947 (class jump_thread_path_registry): ...and here.
19948 (thread_through_all_blocks): Remove.
19949 (struct removed_edges): New.
19950 (register_jump_thread): Remove.
19951 (remove_jump_threads_including): Remove.
19952 (delete_jump_thread_path): Remove.
19953 (remove_ctrl_stmt_and_useless_edges): Remove.
19954 (free_dom_edge_info): New prototype.
19955 * tree-vrp.c: Remove x_vr_values hack.
19956 (class vrp_jump_threader_simplifier): New.
19957 (vrp_jump_threader_simplifier::simplify): New.
19958 (vrp_jump_threader::vrp_jump_threader): Adjust method signature.
19959 Remove m_dummy_cond.
19960 Instantiate m_simplifier and m_threader.
19961 (vrp_jump_threader::thread_through_all_blocks): New.
19962 (vrp_jump_threader::simplify_stmt): Remove.
19963 (vrp_jump_threader::after_dom_children): Do not set m_dummy_cond.
19964 Remove x_vr_values hack.
19965 (execute_vrp): Adjust for thread_through_all_blocks being in a
19968 2021-04-30 Christophe Lyon <christophe.lyon@linaro.org>
19970 * genflags.c (gen_insn): Print failed expansion string.
19972 2021-04-30 H.J. Lu <hjl.tools@gmail.com>
19974 * expr.c (alignment_for_piecewise_move): Call mode_for_size
19975 without limit to MAX_FIXED_MODE_SIZE.
19977 2021-04-30 H.J. Lu <hjl.tools@gmail.com>
19979 PR middle-end/90773
19980 * builtins.c (builtin_memset_gen_str): Don't use return from
19981 simplify_gen_subreg.
19983 2021-04-30 Uroš Bizjak <ubizjak@gmail.com>
19986 * config/i386/i386.md (*add<mode>3_carry_0r): New insn pattern.
19987 (*addsi3_carry_zext_0r): Ditto.
19988 (*sub<mode>3_carry_0): Ditto.
19989 (*subsi3_carry_zext_0r): Ditto.
19990 * config/i386/predicates.md (ix86_carry_flag_unset_operator):
19992 * config/i386/i386.c (ix86_rtx_costs) <case PLUS, case MINUS>:
19993 Also consider ix86_carry_flag_unset_operator to calculate
19994 the cost of adc/sbb insn.
19996 2021-04-30 Roman Zhuykov <zhroma@ispras.ru>
19998 PR rtl-optimization/100225
19999 PR rtl-optimization/84878
20000 * modulo-sched.c (sms_schedule): Use note_stores to skip loops
20001 where we have an instruction which touches (writes) any hard
20002 register from df->regular_block_artificial_uses set.
20003 Allow not-single-set instruction only right before basic block
20006 2021-04-30 Geng Qi <gengqi@linux.alibaba.com>
20008 * config/riscv/riscv.opt (march=,mabi=): Negative itself.
20010 2021-04-30 LevyHsu <admin@levyhsu.com>
20012 * config/riscv/riscv.c (riscv_min_arithmetic_precision): New.
20013 * config/riscv/riscv.h (TARGET_MIN_ARITHMETIC_PRECISION): New.
20014 * config/riscv/riscv.md (addv<mode>4, uaddv<mode>4): New.
20015 (subv<mode>4, usubv<mode>4, mulv<mode>4, umulv<mode>4): New.
20017 2021-04-29 Alexandre Oliva <oliva@adacore.com>
20019 * config.gcc: Merged x86 and x86_64 cpu_type-setting cases.
20021 2021-04-29 Alexandre Oliva <oliva@adacore.com>
20023 * config/i386/i386.h (ASM_OUTPUT_MAX_SKIP_PAD): Rename to...
20024 (ASM_OUTPUT_MAX_SKIP_ALIGN): ... this. Enclose in do/while(0).
20025 * config/i386/i386.c: Adjust.
20026 * config/i386/i386.md: Adjust.
20027 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Drop.
20028 * config/i386/dragonfly.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
20029 * config/i386/freebsd.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
20030 * config/i386/gas.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
20031 * config/i386/gnu-user.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
20032 * config/i386/iamcu.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
20033 * config/i386/lynx.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
20034 * config/i386/netbsd-elf.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
20035 * config/i386/openbsdelf.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
20036 * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
20037 (ASM_OUTPUT_MAX_SKIP_PAD): Likewise.
20039 2021-04-29 Uroš Bizjak <ubizjak@gmail.com>
20041 * config/i386/i386-expand.c (ix86_expand_int_compare):
20042 Swap operands of GTU and LEU comparison to emit carry flag comparison.
20043 * config/i386/i386.md (*add<mode>3_carry_0): Change insn
20044 predicate to allow more combine opportunities with memory operands.
20045 (*sub<mode>3_carry_0): Ditto.
20047 2021-04-29 Richard Sandiford <richard.sandiford@arm.com>
20049 PR rtl-optimization/100303
20050 * rtl-ssa/accesses.cc (function_info::make_use_available): Take a
20051 boolean that indicates whether the use will only be used in
20052 debug instructions. Treat it in the same way that existing
20053 cross-EBB debug references would be handled if so.
20054 (function_info::make_uses_available): Likewise.
20055 * rtl-ssa/functions.h (function_info::make_uses_available): Update
20056 prototype accordingly.
20057 (function_info::make_uses_available): Likewise.
20058 * fwprop.c (try_fwprop_subst): Update call accordingly.
20060 2021-04-29 Jeff Law <jlaw@tachyum.com>
20062 * config/nios2/nios2-protos.h (nios2_fpu_insn_enabled): Move outside
20065 2021-04-29 Uroš Bizjak <ubizjak@gmail.com>
20066 Richard Biener <rguenther@suse.de>
20069 * config/i386/i386-builtin.def (IX86_BUILTIN_MASKLOADPD)
20070 (IX86_BUILTIN_MASKLOADPS, IX86_BUILTIN_MASKLOADPD256)
20071 (IX86_BUILTIN_MASKLOADPS256, IX86_BUILTIN_MASKLOADD)
20072 (IX86_BUILTIN_MASKLOADQ, IX86_BUILTIN_MASKLOADD256)
20073 (IX86_BUILTIN_MASKLOADQ256): Move from SPECIAL_ARGS
20074 to PURE_ARGS category.
20075 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
20076 Handle PURE_ARGS category.
20077 * config/i386/i386-expand.c (ix86_expand_builtin): Ditto.
20079 2021-04-29 Eric Botcazou <ebotcazou@adacore.com>
20081 * configure.ac: Check for the presence of sys/locking.h header and
20082 for whether _LK_LOCK is supported by _locking.
20083 * configure: Regenerate.
20084 * config.in: Likewise.
20085 * gcov-io.h: Define GCOV_LOCKED_WITH_LOCKING if HOST_HAS_LK_LOCK.
20086 * gcov-io.c (gcov_open): Add support for GCOV_LOCKED_WITH_LOCKING.
20087 * system.h: Include <sys/locking.h> if HAVE_SYS_LOCKING_H.
20089 2021-04-29 Uroš Bizjak <ubizjak@gmail.com>
20091 * config/i386/predicates.md (fcmov_comparison_operator):
20092 Do not check for trivial FP comparison operator.
20093 <case GEU, case LTU>: Allow CCGZmode.
20094 <case GTU, case LEU>: Do not allow CCCmode.
20095 (ix86_comparison_operator) <case GTU, case LEU>: Allow only CCmode.
20096 (ix86_carry_flag_operator): Match only LTU and UNLT code.
20097 Do not check for trivial FP comparison operator. Allow CCGZmode.
20099 2021-04-29 Tom de Vries <tdevries@suse.de>
20101 * omp-expand.c (expand_omp_simd): Add step_orig, and replace uses of
20102 fd->loop.step by either step or orig_step.
20104 2021-04-29 Eric Botcazou <ebotcazou@adacore.com>
20106 * config/sparc/sparc.c (gen_load_pcrel_sym): Delete.
20107 (load_got_register): Do the PIC dance here.
20108 (sparc_legitimize_tls_address): Simplify.
20109 (sparc_emit_probe_stack_range): Likewise.
20110 (sparc32_initialize_trampoline): Likewise.
20111 (sparc64_initialize_trampoline): Likewise.
20112 * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Add @ marker.
20113 (probe_stack_range<P:mode>): Likewise.
20114 (flush<P:mode>): Likewise.
20115 (tgd_hi22<P:mode>): Likewise.
20116 (tgd_lo10<P:mode>): Likewise.
20117 (tgd_add<P:mode>): Likewise.
20118 (tgd_call<P:mode>): Likewise.
20119 (tldm_hi22<P:mode>): Likewise.
20120 (tldm_lo10<P:mode>): Likewise.
20121 (tldm_add<P:mode>): Likewise.
20122 (tldm_call<P:mode>): Likewise.
20123 (tldo_hix22<P:mode>): Likewise.
20124 (tldo_lox10<P:mode>): Likewise.
20125 (tldo_add<P:mode>): Likewise.
20126 (tie_hi22<P:mode>): Likewise.
20127 (tie_lo10<P:mode>): Likewise.
20128 (tie_add<P:mode>): Likewise.
20129 (tle_hix22<P:mode>): Likewise.
20130 (tle_lox10<P:mode>): Likewise.
20131 (stack_protect_setsi): Rename to...
20132 (stack_protect_set32): ...this.
20133 (stack_protect_setdi): Rename to...
20134 (stack_protect_set64): ...this.
20135 (stack_protect_set): Adjust calls to above.
20136 (stack_protect_testsi): Rename to...
20137 (stack_protect_test32): ...this.
20138 (stack_protect_testdi): Rename to...
20139 (stack_protect_test64): ...this.
20140 (stack_protect_test): Adjust calls to above.
20142 2021-04-29 H.J. Lu <hjl.tools@gmail.com>
20144 PR middle-end/90773
20145 * builtins.c (builtin_memcpy_read_str): Add a dummy argument.
20146 (builtin_strncpy_read_str): Likewise.
20147 (builtin_memset_read_str): Add an argument for the previous RTL
20148 information and generate the new RTL from the previous RTL info.
20149 (builtin_memset_gen_str): Likewise.
20150 * builtins.h (builtin_strncpy_read_str): Update the prototype.
20151 (builtin_memset_read_str): Likewise.
20152 * expr.c (by_pieces_ninsns): If targetm.overlap_op_by_pieces_p()
20153 returns true, round up size and alignment to the widest integer
20154 mode for maximum size.
20155 (pieces_addr::adjust): Add a pointer to by_pieces_prev argument
20156 and pass it to m_constfn.
20157 (op_by_pieces_d): Add m_push and m_overlap_op_by_pieces.
20158 (op_by_pieces_d::op_by_pieces_d): Add a bool argument to
20159 initialize m_push. Initialize m_overlap_op_by_pieces with
20160 targetm.overlap_op_by_pieces_p ().
20161 (op_by_pieces_d::run): Pass the previous RTL information to
20162 pieces_addr::adjust and generate overlapping operations if
20163 m_overlap_op_by_pieces is true.
20165 (move_by_pieces_d::move_by_pieces_d): Updated for op_by_pieces_d
20167 (store_by_pieces_d::store_by_pieces_d): Updated for op_by_pieces_d
20169 (can_store_by_pieces): Use by_pieces_constfn on constfun.
20170 (store_by_pieces): Use by_pieces_constfn on constfun. Updated
20171 for op_by_pieces_d change.
20172 (clear_by_pieces_1): Add a dummy argument.
20173 (clear_by_pieces): Updated for op_by_pieces_d change.
20174 (compare_by_pieces_d::compare_by_pieces_d): Likewise.
20175 (string_cst_read_str): Add a dummy argument.
20176 * expr.h (by_pieces_constfn): Add a dummy argument.
20177 (by_pieces_prev): New.
20178 * target.def (overlap_op_by_pieces_p): New target hook.
20179 * config/i386/i386.c (TARGET_OVERLAP_OP_BY_PIECES_P): New.
20180 * doc/tm.texi.in: Add TARGET_OVERLAP_OP_BY_PIECES_P.
20181 * doc/tm.texi: Regenerated.
20183 2021-04-29 Richard Biener <rguenther@suse.de>
20185 PR tree-optimization/100253
20186 * tree-vect-stmts.c (vectorizable_load): Do not assume
20187 element alignment when DR_MISALIGNMENT is -1.
20188 (vectorizable_store): Likewise.
20190 2021-04-29 Jakub Jelinek <jakub@redhat.com>
20193 * config/aarch64/aarch64.c (aarch64_add_offset_1_temporaries): Use
20194 absu_hwi instead of abs_hwi.
20196 2021-04-29 Richard Biener <rguenther@suse.de>
20198 PR middle-end/38474
20199 * tree-ssa-structalias.c (add_graph_edge): Avoid direct
20200 forwarding when indirect forwarding through ESCAPED
20203 2021-04-29 Tom de Vries <tdevries@suse.de>
20206 * internal-fn.c (expand_GOMP_SIMT_ENTER_ALLOC)
20207 (expand_GOMP_SIMT_LAST_LANE, expand_GOMP_SIMT_ORDERED_PRED)
20208 (expand_GOMP_SIMT_VOTE_ANY, expand_GOMP_SIMT_XCHG_BFLY)
20209 (expand_GOMP_SIMT_XCHG_IDX): Ensure target is assigned to.
20211 2021-04-29 Richard Biener <rguenther@suse.de>
20213 PR tree-optimization/99912
20214 * tree-ssa-dse.c (dse_dom_walker::m_need_cfg_cleanup): New.
20215 (dse_dom_walker::todo): Likewise.
20216 (dse_dom_walker::dse_optimize_stmt): Move VDEF check to the
20218 (dse_dom_walker::before_dom_children): Remove trivially
20219 dead SSA defs and schedule CFG cleanup if we removed all
20221 (pass_dse::execute): Get TODO as computed by the DOM walker
20222 and return it. Wipe dominator info earlier.
20224 2021-04-29 Richard Biener <rguenther@suse.de>
20227 * ipa-prop.c (ipcp_modif_dom_walker::before_dom_children):
20228 Track blocks to cleanup EH in new m_need_eh_cleanup.
20229 (ipcp_modif_dom_walker::cleanup_eh): New.
20230 (ipcp_transform_function): Release dominator info before
20233 2021-04-29 Martin Sebor <msebor@redhat.com>
20235 PR middle-end/100250
20236 * attribs.c (attr_access::array_as_string): Avoid dereferencing
20237 a pointer when it's null.
20239 2021-04-29 Martin Sebor <msebor@redhat.com>
20241 * Makefile.in (OBJS): Add ipa-free-lang-data.o.
20242 * ipa-free-lang-data.cc: New file.
20243 * tree.c: Move pass free_lang_data to file above.
20244 (build_array_type_1): Declare extern.
20245 * tree.h (build_array_type_1): Declare.
20247 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
20249 * config/aarch64/aarch64-simd-builtins.def: Modify comment to
20250 make consistent with updated RTL pattern.
20251 * config/aarch64/aarch64-simd.md (aarch64_<sur>qmovn<mode>):
20252 Implement using ss_truncate and us_truncate rather than
20254 * config/aarch64/iterators.md: Remove redundant unspecs and
20255 iterator: UNSPEC_[SU]QXTN and SUQMOVN respectively.
20257 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
20259 * config/aarch64/arm_acle.h (__attribute__): Make intrinsic
20260 attributes consistent with those defined in arm_neon.h.
20262 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
20264 * config/aarch64/arm_fp16.h (__attribute__): Make intrinsic
20265 attributes consistent with those defined in arm_neon.h.
20267 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
20269 * config/aarch64/aarch64-simd-builtins.def: Add
20270 float_trunc_rodd builtin generator macros.
20271 * config/aarch64/aarch64-simd.md (aarch64_float_trunc_rodd_df):
20273 (aarch64_float_trunc_rodd_lo_v2sf): Define.
20274 (aarch64_float_trunc_rodd_hi_v4sf_le): Define.
20275 (aarch64_float_trunc_rodd_hi_v4sf_be): Define.
20276 (aarch64_float_trunc_rodd_hi_v4sf): Define.
20277 * config/aarch64/arm_neon.h (vcvtx_f32_f64): Use RTL builtin
20278 instead of inline asm.
20279 (vcvtx_high_f32_f64): Likewise.
20280 (vcvtxd_f32_f64): Likewise.
20281 * config/aarch64/iterators.md: Add FCVTXN unspec.
20283 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
20285 * config/aarch64/aarch64-simd-builtins.def: Add tbx1 builtin
20287 * config/aarch64/aarch64-simd.md (aarch64_tbx1<mode>):
20289 * config/aarch64/arm_neon.h (vqtbx1_s8): USE RTL builtin
20290 instead of inline asm.
20291 (vqtbx1_u8): Likewise.
20292 (vqtbx1_p8): Likewise.
20293 (vqtbx1q_s8): Likewise.
20294 (vqtbx1q_u8): Likewise.
20295 (vqtbx1q_p8): Likewise.
20296 (vtbx2_s8): Likewise.
20297 (vtbx2_u8): Likewise.
20298 (vtbx2_p8): Likewise.
20300 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
20302 * config/aarch64/aarch64-simd-builtins.def: Add tbl1 builtin
20304 * config/aarch64/arm_neon.h (vqtbl1_p8): Use RTL builtin
20305 instead of inline asm.
20306 (vqtbl1_s8): Likewise.
20307 (vqtbl1_u8): Likewise.
20308 (vqtbl1q_p8): Likewise.
20309 (vqtbl1q_s8): Likewise.
20310 (vqtbl1q_u8): Likewise.
20311 (vtbl1_s8): Likewise.
20312 (vtbl1_u8): Likewise.
20313 (vtbl1_p8): Likewise.
20314 (vtbl2_s8): Likewise.
20315 (vtbl2_u8): Likewise.
20316 (vtbl2_p8): Likewise.
20318 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
20320 * config/aarch64/aarch64-simd-builtins.def: Add polynomial
20321 ssri_n buitin generator macro.
20322 * config/aarch64/arm_neon.h (vsri_n_p8): Use RTL builtin
20323 instead of inline asm.
20324 (vsri_n_p16): Likewise.
20325 (vsri_n_p64): Likewise.
20326 (vsriq_n_p8): Likewise.
20327 (vsriq_n_p16): Likewise.
20328 (vsriq_n_p64): Likewise.
20330 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
20332 * config/aarch64/aarch64-simd-builtins.def: Use VALLP mode
20333 iterator for polynomial ssli_n builtin generator macro.
20334 * config/aarch64/arm_neon.h (vsli_n_p8): Use RTL builtin
20335 instead of inline asm.
20336 (vsli_n_p16): Likewise.
20337 (vsliq_n_p8): Likewise.
20338 (vsliq_n_p16): Likewise.
20339 * config/aarch64/iterators.md: Define VALLP mode iterator.
20341 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
20343 * config/aarch64/aarch64-simd-builtins.def: Use VDQV_L
20344 iterator to generate [su]adalp RTL builtins.
20345 * config/aarch64/aarch64-simd.md: Use VDQV_L iterator in
20346 [su]adalp RTL pattern.
20347 * config/aarch64/arm_neon.h (vpadal_s32): Use RTL builtin
20348 instead of inline asm.
20349 (vpadal_u32): Likewise.
20351 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
20353 * config/aarch64/aarch64-simd-builtins.def: Add [su]addlp
20354 builtin generator macros.
20355 * config/aarch64/aarch64-simd.md (aarch64_<su>addlp<mode>):
20357 * config/aarch64/arm_neon.h (vpaddl_s8): Use RTL builtin
20358 instead of inline asm.
20359 (vpaddl_s16): Likewise.
20360 (vpaddl_s32): Likewise.
20361 (vpaddl_u8): Likewise.
20362 (vpaddl_u16): Likewise.
20363 (vpaddl_u32): Likewise.
20364 (vpaddlq_s8): Likewise.
20365 (vpaddlq_s16): Likewise.
20366 (vpaddlq_s32): Likewise.
20367 (vpaddlq_u8): Likewise.
20368 (vpaddlq_u16): Likewise.
20369 (vpaddlq_u32): Liwewise.
20370 * config/aarch64/iterators.md: Define [SU]ADDLP unspecs with
20371 appropriate attributes.
20373 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
20375 * config/aarch64/aarch64-simd-builtins.def: Use VDQ_I iterator
20376 for aarch64_addp<mode> builtin macro generator.
20377 * config/aarch64/aarch64-simd.md: Use VDQ_I iterator in
20378 aarch64_addp<mode> RTL pattern.
20379 * config/aarch64/arm_neon.h (vpaddq_s8): Use RTL builtin
20380 instead of inline asm.
20381 (vpaddq_s16): Likewise.
20382 (vpaddq_s32): Likewise.
20383 (vpaddq_s64): Likewise.
20384 (vpaddq_u8): Likewise.
20385 (vpaddq_u16): Likewise.
20386 (vpaddq_u32): Likewise.
20387 (vpaddq_u64): Likewise.
20389 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
20391 * config/aarch64/aarch64-simd-builtins.def: Add sq[r]dmulh_n
20392 builtin generator macros.
20393 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_n<mode>):
20395 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Use RTL builtin
20396 instead of inline asm.
20397 (vqdmulh_n_s32): Likewise.
20398 (vqdmulhq_n_s16): Likewise.
20399 (vqdmulhq_n_s32): Likewise.
20400 (vqrdmulh_n_s16): Likewise.
20401 (vqrdmulh_n_s32): Likewise.
20402 (vqrdmulhq_n_s16): Likewise.
20403 (vqrdmulhq_n_s32): Likewise.
20405 2021-04-28 Tobias Burnus <tobias@codesourcery.com>
20407 * doc/install.texi (--enable-offload-defaulted): Document.
20409 2021-04-28 Senthil Kumar Selvaraj <saaadhu@gcc.gnu.org>
20411 * config/avr/avr-dimode.md: Turn existing patterns into
20412 define_insn_and_split style patterns where the splitter
20413 adds a clobber of the condition code register. Drop "cc"
20414 attribute. Add new patterns to match output of
20416 * config/avr/avr-fixed.md: Likewise.
20417 * config/avr/avr.c (cc_reg_rtx): New.
20418 (avr_parallel_insn_from_insns): Adjust insn count
20419 for removal of set of cc0.
20420 (avr_is_casesi_sequence): Likewise.
20421 (avr_casei_sequence_check_operands): Likewise.
20422 (avr_optimize_casesi): Likewise. Also insert
20423 new insns after jump_insn.
20424 (avr_pass_casesi::avr_rest_of_handle_casesi): Adjust
20425 for removal of set of cc0.
20426 (avr_init_expanders): Initialize cc_reg_rtx.
20427 (avr_regno_reg_class): Handle REG_CC.
20428 (cond_string): Remove usage of CC_OVERFLOW_UNUSABLE.
20429 (avr_notice_update_cc): Remove function.
20430 (ret_cond_branch): Remove usage of CC_OVERFLOW_UNUSABLE.
20431 (compare_condition): Adjust for PARALLEL with
20433 (out_shift_with_cnt): Likewise.
20434 (ashlhi3_out): Likewise.
20435 (ashrhi3_out): Likewise.
20436 (lshrhi3_out): Likewise.
20437 (avr_class_max_nregs): Return single reg for REG_CC.
20438 (avr_compare_pattern): Check for REG_CC instead
20440 (avr_reorg_remove_redundant_compare): Likewise.
20441 (avr_reorg):Adjust for PARALLEL with REG_CC clobber.
20442 (avr_hard_regno_nregs): Return single reg for REG_CC.
20443 (avr_hard_regno_mode_ok): Allow only CCmode for REG_CC.
20444 (avr_md_asm_adjust): Clobber REG_CC.
20445 (TARGET_HARD_REGNO_NREGS): Define.
20446 (TARGET_CLASS_MAX_NREGS): Define.
20447 (TARGET_MD_ASM_ADJUST): Define.
20448 * config/avr/avr.h (FIRST_PSEUDO_REGISTER): Adjust
20450 (enum reg_class): Add CC_REG class.
20451 (NOTICE_UPDATE_CC): Remove.
20452 (CC_OVERFLOW_UNUSABLE): Remove.
20453 (CC_NO_CARRY): Remove.
20454 * config/avr/avr.md: Turn existing patterns into
20455 define_insn_and_split style patterns where the splitter
20456 adds a clobber of the condition code register. Drop "cc"
20457 attribute. Add new patterns to match output of
20459 (sez): Remove unused pattern.
20461 2021-04-28 Richard Earnshaw <rearnsha@arm.com>
20464 * config/arm/arm.c (arm_hard_regno_mode_ok): Only allow VPR to be
20467 2021-04-28 Richard Sandiford <richard.sandiford@arm.com>
20470 * config/aarch64/constraints.md (Utq): Require the address to
20471 be valid for both the element mode and for V2DImode.
20473 2021-04-28 Jakub Jelinek <jakub@redhat.com>
20474 Tobias Burnus <tobias@codesourcery.com>
20476 * configure.ac (OFFLOAD_DEFAULTED): AC_DEFINE if offload-defaulted.
20477 * gcc.c (process_command): New variable.
20478 (driver::maybe_putenv_OFFLOAD_TARGETS): If OFFLOAD_DEFAULTED,
20479 set it if -foffload is defaulted.
20480 * lto-wrapper.c (OFFLOAD_TARGET_DEFAULT_ENV): Define.
20481 (compile_offload_image): If OFFLOAD_DEFAULTED and
20482 OFFLOAD_TARGET_DEFAULT is in the environment, don't fail
20483 if corresponding mkoffload can't be found.
20484 (compile_images_for_offload_targets): Likewise. Free and clear
20485 offload_names if no valid offload is found.
20486 * config.in: Regenerate.
20487 * configure: Regenerate.
20489 2021-04-28 Richard Biener <rguenther@suse.de>
20491 PR tree-optimization/100292
20492 * tree-vect-generic.c (expand_vector_condition): Do not fold
20495 2021-04-27 David Edelsohn <dje.gcc@gmail.com>
20497 * config/rs6000/aix.h (SUBTARGET_DRIVER_SELF_SPECS): New.
20498 * config/rs6000/aix64.opt (m64): New.
20501 2021-04-27 Maciej W. Rozycki <macro@orcam.me.uk>
20503 * config/vax/vax.c (print_operand_address, vax_address_cost_1)
20504 (index_term_p): Handle ASHIFT too.
20506 2021-04-27 Maciej W. Rozycki <macro@orcam.me.uk>
20508 * config/vax/builtins.md (jbb<ccss>i<mode>): Remove operand #3.
20509 (sync_lock_test_and_set<mode>): Adjust accordingly.
20510 (sync_lock_release<mode>): Likewise.
20512 2021-04-27 Maciej W. Rozycki <macro@orcam.me.uk>
20514 * config/vax/vax-protos.h (adjacent_operands_p): Remove
20516 * config/vax/vax.c (adjacent_operands_p): Remove.
20518 2021-04-27 Maciej W. Rozycki <macro@linux-mips.org>
20520 * ifcvt.c (dead_or_predicable) [!IFCVT_MODIFY_TESTS]: Fall
20521 through to the non-conditional execution case if getting the
20522 condition for conditional execution has failed.
20524 2021-04-27 Richard Sandiford <richard.sandiford@arm.com>
20526 PR middle-end/100284
20527 * gimple.c (gimple_could_trap_p_1): Remove VEC_COND_EXPR test.
20528 * tree-eh.c (operation_could_trap_p): Handle VEC_COND_EXPR rather
20529 than asserting on it.
20531 2021-04-27 David Edelsohn <dje.gcc@gmail.com>
20533 * config/rs6000/rs6000.c (rs6000_aix_precompute_tls_p): Protect
20534 with TARGET_AIX_OS.
20536 2021-04-27 David Edelsohn <dje.gcc@gmail.com>
20539 * calls.c (precompute_register_parameters): Additionally test
20540 targetm.precompute_tls_p to pre-compute argument.
20541 * config/rs6000/aix.h (TARGET_PRECOMPUTE_TLS_P): Define.
20542 * config/rs6000/rs6000.c (rs6000_aix_precompute_tls_p): New.
20543 * target.def (precompute_tls_p): New.
20544 * doc/tm.texi.in (TARGET_PRECOMPUTE_TLS_P): Add hook documentation.
20545 * doc/tm.texi: Regenerated.
20547 2021-04-27 Jakub Jelinek <jakub@redhat.com>
20550 * config/aarch64/aarch64.c (aarch64_print_operand): Cast -UINTVAL
20551 back to HOST_WIDE_INT.
20553 2021-04-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
20556 * simplify-rtx.c (simplify_context::simplify_subreg): Check the
20557 memory alignment for the outer mode.
20559 2021-04-27 H.J. Lu <hjl.tools@gmail.com>
20561 PR middle-end/90773
20562 * expr.c (op_by_pieces_d::get_usable_mode): New member function.
20563 (op_by_pieces_d::run): Cange a while loop to a do-while loop.
20565 2021-04-27 Alex Coplan <alex.coplan@arm.com>
20568 * config/arm/arm.c (arm_split_compare_and_swap): Fix up codegen
20569 with negative immediates: ensure we expand cbranchsi4_scratch
20570 correctly and ensure we satisfy its constraints.
20571 * config/arm/sync.md
20572 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Don't
20573 attempt to tie two output operands together with constraints;
20574 collapse two alternatives.
20575 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise.
20576 * config/arm/thumb1.md (cbranchsi4_neg_late): New.
20578 2021-04-27 Jakub Jelinek <jakub@redhat.com>
20581 * config/aarch64/predicates.md (aarch64_sub_immediate,
20582 aarch64_plus_immediate): Use -UINTVAL instead of -INTVAL.
20583 * config/aarch64/aarch64.md (casesi, rotl<mode>3): Likewise.
20584 * config/aarch64/aarch64.c (aarch64_print_operand,
20585 aarch64_split_atomic_op, aarch64_expand_subvti): Likewise.
20587 2021-04-27 Jakub Jelinek <jakub@redhat.com>
20589 PR tree-optimization/100239
20590 * tree-vect-generic.c (lower_vec_perm): Don't accept constant
20591 permutations with all indices from the first zero element as vec_shl.
20593 2021-04-27 Jakub Jelinek <jakub@redhat.com>
20595 PR rtl-optimization/100254
20596 * cfgcleanup.c (outgoing_edges_match): Check REG_EH_REGION on
20597 last1 and last2 insns rather than BB_END (bb1) and BB_END (bb2) insns.
20599 2021-04-27 Richard Biener <rguenther@suse.de>
20601 PR tree-optimization/99912
20602 * passes.def: Add comment about new TODO_remove_unused_locals.
20603 * tree-stdarg.c (pass_data_stdarg): Run TODO_remove_unused_locals
20606 2021-04-27 Richard Biener <rguenther@suse.de>
20608 PR tree-optimization/99912
20609 * passes.def (pass_all_optimizations): Add pass_dse before
20610 the first pass_dce, move the first pass_dse before the
20611 pass_dce following pass_pre.
20613 2021-04-27 Jakub Jelinek <jakub@redhat.com>
20615 PR tree-optimization/95527
20616 * generic-match-head.c: Include tm.h.
20617 * gimple-match-head.c: Include tm.h.
20618 * match.pd (CLZ == INTEGER_CST): Don't use
20619 #ifdef CLZ_DEFINED_VALUE_AT_ZERO, only test CLZ_DEFINED_VALUE_AT_ZERO
20620 if clz == CFN_CLZ. Add missing val declaration.
20621 (CTZ cmp CST): New simplifications.
20623 2021-04-27 Jakub Jelinek <jakub@redhat.com>
20625 PR tree-optimization/96696
20626 * expr.c (expand_expr_divmod): New function.
20627 (expand_expr_real_2) <case TRUNC_DIV_EXPR>: Use it for truncations and
20628 divisions. Formatting fixes.
20629 <case MULT_EXPR>: Optimize x / y * y as x - x % y if the latter is
20632 2021-04-27 Martin Jambor <mjambor@suse.cz>
20635 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call):
20636 If removing a call statement LHS SSA name, release it.
20638 2021-04-27 Richard Earnshaw <rearnsha@arm.com>
20641 * config/arm/arm.c (THUMB2_WORK_REGS): Check PIC_OFFSET_TABLE_REGNUM
20642 is valid before including it in the mask.
20644 2021-04-27 Richard Sandiford <richard.sandiford@arm.com>
20647 * config/aarch64/aarch64.c (aarch64_comp_type_attributes): Handle
20650 2021-04-27 Richard Biener <rguenther@suse.de>
20652 PR tree-optimization/100051
20653 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Add
20654 disambiguator based on access size vs. decl size.
20656 2021-04-27 Richard Biener <rguenther@suse.de>
20658 PR tree-optimization/100278
20659 * tree-ssa-pre.c (compute_avail): Give up when we cannot
20660 adjust TBAA beacuse of mismatching bases.
20662 2021-04-27 Jakub Jelinek <jakub@redhat.com>
20665 * config/i386/i386.md (*<insn><mode>3_mask, *<insn><mode>3_mask_1):
20666 For any_rotate define_insn_split and following splitters, use
20667 SWI iterator instead of SWI48.
20669 2021-04-27 Richard Biener <rguenther@suse.de>
20671 PR tree-optimization/99776
20672 * match.pd (bit_field_ref (ctor)): Relax element extract
20673 type compatibility checks.
20675 2021-04-27 Cui,Lili <lili.cui@intel.com>
20677 * common/config/i386/i386-common.c (processor_names):
20678 Sync processor_names with processor_type.
20679 * config/i386/i386-options.c (processor_cost_table):
20680 Sync processor_cost_table with processor_type.
20682 2021-04-26 Aldy Hernandez <aldyh@redhat.com>
20684 * value-range.cc (irange::irange_set_1bit_anti_range): Add assert.
20685 (irange::set): Call irange_set_1bit_anti_range for handling all
20686 1-bit ranges. Fall through on ~[MIN,MAX].
20688 2021-04-26 Aldy Hernandez <aldyh@redhat.com>
20690 * value-range.cc (irange::legacy_num_pairs): Remove.
20691 (irange::invert): Change gcc_assert to gcc_checking_assert.
20692 * value-range.h (irange::num_pairs): Adjust for a cached
20693 num_pairs(). Also, rename all gcc_assert's to
20694 gcc_checking_assert's.
20696 2021-04-26 Aldy Hernandez <aldyh@redhat.com>
20698 * value-range.cc (irange::operator=): Set m_kind.
20699 (irange::copy_to_legacy): Handle varying and undefined sources
20700 as a legacy copy since they can be easily copied.
20701 (irange::irange_set): Set m_kind.
20702 (irange::irange_set_anti_range): Same.
20703 (irange::set): Rename normalize_min_max to normalize_kind.
20704 (irange::verify_range): Adjust for multi-ranges having the
20706 (irange::irange_union): Set m_kind.
20707 (irange::irange_intersect): Same.
20708 (irange::invert): Same.
20709 * value-range.h (irange::kind): Always return m_kind.
20710 (irange::varying_p): Rename to...
20711 (irange::varying_comptaible_p): ...this.
20712 (irange::undefined_p): Only look at m_kind.
20713 (irange::irange): Always set VR_UNDEFINED if applicable.
20714 (irange::set_undefined): Always set VR_UNDEFINED.
20715 (irange::set_varying): Always set m_kind to VR_VARYING.
20716 (irange::normalize_min_max): Rename to...
20717 (irange::normalize_kind): ...this.
20719 2021-04-26 Aldy Hernandez <aldyh@redhat.com>
20721 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::set_ssa_range_info):
20722 Adjust for constant_p including varying_p.
20723 * tree-vrp.c (vrp_prop::finalize): Same.
20724 (determine_value_range): Same.
20725 * vr-values.c (vr_values::range_of_expr): Same.
20726 * value-range.cc (irange::symbolic_p): Do not check varying_p.
20727 (irange::constant_p): Same.
20729 2021-04-26 Aldy Hernandez <aldyh@redhat.com>
20731 * value-range.cc (irange::legacy_lower_bound): Replace
20732 !undefined_p check with num_ranges > 0.
20733 (irange::legacy_upper_bound): Same.
20734 * value-range.h (irange::type): Same.
20735 (irange::lower_bound): Same.
20736 (irange::upper_bound): Same.
20738 2021-04-26 Richard Biener <rguenther@suse.de>
20740 PR tree-optimization/99956
20741 * gimple-loop-interchange.cc (compute_access_stride):
20742 Try instantiating the access in a shallower loop nest
20743 if instantiating failed.
20744 (compute_access_strides): Pass adjustable loop_nest
20745 to compute_access_stride.
20747 2021-04-26 Christophe Lyon <christophe.lyon@linaro.org>
20749 * doc/sourcebuild.texi (arm_cmse_hw): Document.
20751 2021-04-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20753 * config/aarch64/iterators.md (vwcore): Handle V4BF, V8BF.
20755 2021-04-26 Thomas Schwinge <thomas@codesourcery.com>
20756 Nathan Sidwell <nathan@codesourcery.com>
20757 Tom de Vries <vries@codesourcery.com>
20758 Julian Brown <julian@codesourcery.com>
20759 Kwok Cheung Yeung <kcy@codesourcery.com>
20761 * omp-offload.c (oacc_validate_dims): Implement
20762 '-Wopenacc-parallelism'.
20763 * doc/invoke.texi (-Wopenacc-parallelism): Document.
20765 2021-04-26 Richard Biener <rguenther@suse.de>
20767 * tree-cfg.h (gimplify_build1): Remove.
20768 (gimplify_build2): Likewise.
20769 (gimplify_build3): Likewise.
20770 * tree-cfg.c (gimplify_build1): Move to tree-vect-generic.c.
20771 (gimplify_build2): Likewise.
20772 (gimplify_build3): Likewise.
20773 * tree-vect-generic.c (gimplify_build1): Move from tree-cfg.c.
20775 (gimplify_build2): Likewise.
20776 (gimplify_build3): Likewise.
20777 (tree_vec_extract): Use resimplify with following SSA edges.
20778 (expand_vector_parallel): Avoid passing NULL size/bitpos
20779 to tree_vec_extract.
20780 * expr.c (store_constructor): Deal with zero-element CTORs.
20781 * match.pd (bit_field_ref <vector CTOR>): Make sure to
20782 produce vector constants when possible.
20784 2021-04-26 Richard Biener <rguenther@suse.de>
20786 * tree-complex.c: Include gimple-fold.h.
20787 (expand_complex_addition): Use gimple_build.
20788 (expand_complex_multiplication_components): Likewise.
20789 (expand_complex_multiplication): Likewise.
20790 (expand_complex_div_straight): Likewise.
20791 (expand_complex_div_wide): Likewise.
20792 (expand_complex_division): Likewise.
20793 (expand_complex_conjugate): Likewise.
20794 (expand_complex_comparison): Likewise.
20796 2021-04-26 Richard Biener <rguenther@suse.de>
20798 * tree-ssa-phiopt.c (two_value_replacement): Remove use
20799 of legacy gimplify_buildN API.
20801 2021-04-26 Richard Biener <rguenther@suse.de>
20803 PR tree-optimization/99473
20804 * tree-ssa-phiopt.c (cond_store_replacement): Handle all
20807 2021-04-26 Richard Biener <rguenther@suse.de>
20809 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_builtin):
20810 Use replace_call_with_value.
20812 2021-04-26 Richard Biener <rguenther@suse.de>
20814 * tree-ssa-propagate.h (valid_gimple_rhs_p): Remove.
20815 (update_gimple_call): Likewise.
20816 (update_call_from_tree): Likewise.
20817 * tree-ssa-propagate.c (valid_gimple_rhs_p): Remove.
20818 (valid_gimple_call_p): Likewise.
20819 (move_ssa_defining_stmt_for_defs): Likewise.
20820 (finish_update_gimple_call): Likewise.
20821 (update_gimple_call): Likewise.
20822 (update_call_from_tree): Likewise.
20823 (propagate_tree_value_into_stmt): Use replace_call_with_value.
20824 * gimple-fold.h (update_gimple_call): Declare.
20825 * gimple-fold.c (valid_gimple_rhs_p): Move here from
20826 tree-ssa-propagate.c.
20827 (update_gimple_call): Likewise.
20828 (valid_gimple_call_p): Likewise.
20829 (finish_update_gimple_call): Likewise, and simplify.
20830 (gimplify_and_update_call_from_tree): Implement
20831 update_call_from_tree functionality, avoid excessive
20832 push/pop_gimplify_context.
20833 (gimple_fold_builtin): Use only gimplify_and_update_call_from_tree.
20834 (gimple_fold_call): Likewise.
20835 * gimple-ssa-sprintf.c (try_substitute_return_value): Likewise.
20836 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Likewise.
20837 (pass_fold_builtins::execute): Likewise.
20838 (optimize_stack_restore): Use replace_call_with_value.
20839 * tree-cfg.c (fold_loop_internal_call): Likewise.
20840 * tree-ssa-dce.c (maybe_optimize_arith_overflow): Use
20841 only gimplify_and_update_call_from_tree.
20842 * tree-ssa-strlen.c (handle_builtin_strlen): Likewise.
20843 (handle_builtin_strchr): Likewise.
20844 * tsan.c: Include gimple-fold.h instead of tree-ssa-propagate.h.
20846 2021-04-26 Jakub Jelinek <jakub@redhat.com>
20849 * vmsdbgout.c (ASM_OUTPUT_DEBUG_STRING, vmsdbgout_begin_block,
20850 vmsdbgout_end_block, lookup_filename, vmsdbgout_source_line): Remove
20853 2021-04-25 liuhongt <hongtao.liu@intel.com>
20856 * config/i386/i386-builtin.def (BDESC): Change the icode of
20857 the following builtins to CODE_FOR_nothing.
20858 * config/i386/i386.c (ix86_gimple_fold_builtin): Fold
20859 IX86_BUILTIN_PCMPEQB128, IX86_BUILTIN_PCMPEQW128,
20860 IX86_BUILTIN_PCMPEQD128, IX86_BUILTIN_PCMPEQQ,
20861 IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
20862 IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
20863 IX86_BUILTIN_PCMPGTB128, IX86_BUILTIN_PCMPGTW128,
20864 IX86_BUILTIN_PCMPGTD128, IX86_BUILTIN_PCMPGTQ,
20865 IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
20866 IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256.
20867 * config/i386/sse.md (avx2_eq<mode>3): Deleted.
20868 (sse2_eq<mode>3): Ditto.
20869 (sse4_1_eqv2di3): Ditto.
20870 (sse2_gt<mode>3): Rename to ..
20871 (*sse2_gt<mode>3): .. this.
20873 2021-04-24 Iain Sandoe <iain@sandoe.co.uk>
20876 2021-04-24 Iain Sandoe <iain@sandoe.co.uk>
20879 * config/darwin.c (darwin_binds_local_p): Assume that any
20880 public symbol might be interposed for PIC code. Update function
20881 header comment to reflect current Darwin capability.
20883 2021-04-24 Iain Sandoe <iain@sandoe.co.uk>
20886 * config/darwin.c (darwin_binds_local_p): Assume that any
20887 public symbol might be interposed for PIC code. Update function
20888 header comment to reflect current Darwin capability.
20890 2021-04-24 Richard Sandiford <richard.sandiford@arm.com>
20892 * doc/sourcebuild.texi: Document no-opts and any-opts target
20895 2021-04-23 YiFei Zhu <zhuyifei1999@gmail.com>
20897 * config/bpf/bpf.h (ASM_OUTPUT_ALIGNED_BSS): Use .type and .lcomm.
20899 2021-04-23 YiFei Zhu <zhuyifei1999@gmail.com>
20901 * config/bpf/bpf.h (FUNCTION_BOUNDARY): Set to 64.
20903 2021-04-23 Uroš Bizjak <ubizjak@gmail.com>
20906 * config/i386/i386-options.c (ix86_option_override_internal):
20907 Error out when -m96bit-long-double is used with 64bit targets.
20908 * config/i386/i386.md (*pushxf_rounded): Remove pattern.
20910 2021-04-23 Martin Liska <mliska@suse.cz>
20912 * lto-wrapper.c: Remove FIXME about usage of
20913 hardware_concurrency. The function is not on par with
20916 2021-04-23 Uroš Bizjak <ubizjak@gmail.com>
20919 * config/i386/sync.md (FILD_ATOMIC/FIST_ATOMIC FP load peephole2):
20920 Copy operand 3 to operand 4. Use sse_reg_operand
20921 as operand 3 predicate.
20922 (FILD_ATOMIC/FIST_ATOMIC FP load peephole2 with mem blockage): Ditto.
20923 (LDX_ATOMIC/STX_ATOMIC FP load peephole2): Ditto.
20924 (LDX_ATOMIC/LDX_ATOMIC FP load peephole2 with mem blockage): Ditto.
20925 (FILD_ATOMIC/FIST_ATOMIC FP store peephole2):
20926 Copy operand 1 to operand 0.
20927 (FILD_ATOMIC/FIST_ATOMIC FP store peephole2 with mem blockage): Ditto.
20928 (LDX_ATOMIC/STX_ATOMIC FP store peephole2): Ditto.
20929 (LDX_ATOMIC/LDX_ATOMIC FP store peephole2 with mem blockage): Ditto.
20931 2021-04-23 Alex Coplan <alex.coplan@arm.com>
20933 PR rtl-optimization/100230
20934 * early-remat.c (early_remat::sort_candidates): Use delete[]
20935 instead of delete for array allocated with new[].
20937 2021-04-23 Richard Biener <rguenther@suse.de>
20939 * genmatch.c (lower_cond): Remove VEC_COND_EXPR special-casing.
20940 (capture_info::capture_info): Likewise.
20941 (capture_info::walk_match): Likewise.
20942 (expr::gen_transform): Likewise.
20943 (dt_simplify::gen_1): Likewise.
20944 * gimple-match-head.c (maybe_resimplify_conditional_op):
20945 Remove VEC_COND_EXPR special-casing.
20946 (gimple_simplify): Likewise.
20947 * gimple.c (gimple_could_trap_p_1): Adjust.
20948 * tree-ssa-pre.c (compute_avail): Allow VEC_COND_EXPR
20949 to participate in PRE.
20951 2021-04-23 Richard Biener <rguenther@suse.de>
20953 * cfganal.c (connect_infinite_loops_to_exit): First call
20954 add_noreturn_fake_exit_edges.
20955 * ipa-sra.c (process_scan_results): Do not call the now redundant
20956 add_noreturn_fake_exit_edges.
20957 * predict.c (tree_estimate_probability): Likewise.
20958 (rebuild_frequencies): Likewise.
20959 * store-motion.c (one_store_motion_pass): Likewise.
20961 2021-04-23 Richard Biener <rguenther@suse.de>
20963 PR tree-optimization/100222
20964 * predict.c (pass_profile::execute): Remove redundant call to
20965 mark_irreducible_loops.
20966 (report_predictor_hitrates): Likewise.
20968 2021-04-23 Richard Biener <rguenther@suse.de>
20970 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
20971 valid_gimple_rhs_p by instead gimplifying to one.
20973 2021-04-23 Richard Biener <rguenther@suse.de>
20975 PR tree-optimization/99971
20976 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences):
20977 Always use TBAA for loads.
20979 2021-04-23 liuhongt <hongtao.liu@intel.com>
20982 * config/i386/i386-options.c (ix86_option_override_internal):
20983 Clear MASK_AVX256_SPLIT_UNALIGNED_LOAD/STORE in x_target_flags
20984 when X86_TUNE_AVX256_UNALIGNED_LOAD/STORE_OPTIMAL is enabled
20985 by target attribute.
20987 2021-04-23 David Edelsohn <dje.gcc@gmail.com>
20989 * config/rs6000/aix71.h (PREFERRED_DEBUGGING_TYPE): Change to
20991 * config/rs6000/aix72.h (PREFERRED_DEBUGGING_TYPE): Same.
20993 2021-04-22 David Edelsohn <dje.gcc@gmail.com>
20995 * config.gcc (powerpc-ibm-aix6.*): Remove.
20996 * config/rs6000/aix61.h: Delete.
20998 2021-04-22 Martin Liska <mliska@suse.cz>
21000 PR testsuite/100159
21001 PR testsuite/100192
21002 * builtins.c (expand_builtin): Fix typos and missing comments.
21003 * dwarf2out.c (gen_subprogram_die): Likewise.
21004 (gen_struct_or_union_type_die): Likewise.
21006 2021-04-22 Uroš Bizjak <ubizjak@gmail.com>
21009 * config/i386/i386-expand.c (ix86_expand_convert_uns_sidf_sse):
21010 Remove the sign with FE_DOWNWARD, where x - x = -0.0.
21012 2021-04-21 Iain Sandoe <iain@sandoe.co.uk>
21014 * config/i386/darwin.h (TARGET_64BIT): Remove definition
21015 based on TARGET_ISA_64BIT.
21016 (TARGET_64BIT_P): Remove definition based on
21017 TARGET_ISA_64BIT_P().
21019 2021-04-21 Martin Liska <mliska@suse.cz>
21022 2021-04-21 Martin Liska <mliska@suse.cz>
21024 * lto-wrapper.c (cpuset_popcount): Remove.
21025 (init_num_threads): Remove and use hardware_concurrency.
21027 2021-04-21 Martin Liska <mliska@suse.cz>
21030 * main.c (main): Call toplev::finalize in CHECKING_P mode.
21031 * ipa-modref.c (ipa_modref_c_finalize): summaries are NULL
21032 when incremental LTO linking happens.
21034 2021-04-21 Martin Liska <mliska@suse.cz>
21036 * lto-wrapper.c (run_gcc): When -flto=jobserver is used, but the
21037 makeserver cannot be detected, then use -flto=N fallback.
21039 2021-04-21 Richard Sandiford <richard.sandiford@arm.com>
21041 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): When cross-compiling,
21042 default to yes for aarch64-linux-gnu.
21043 * configure: Regenerate.
21045 2021-04-21 Martin Liska <mliska@suse.cz>
21047 * lto-wrapper.c (cpuset_popcount): Remove.
21048 (init_num_threads): Remove and use hardware_concurrency.
21050 2021-04-21 Martin Liska <mliska@suse.cz>
21052 * config/i386/i386.c: Remove superfluous || TARGET_MACHO
21053 which remains to be '(... || 0)' and clang complains about it.
21054 * dwarf2out.c (AT_vms_delta): Declare conditionally.
21055 (add_AT_vms_delta): Likewise.
21056 * tree.c (fld_simplified_type): Use rather more common pattern
21057 for disabling of something (#if 0).
21058 (get_tree_code_name): Likewise.
21059 (verify_type_variant): Likewise.
21061 2021-04-21 Martin Liska <mliska@suse.cz>
21063 * config/i386/i386-expand.c (decide_alignment): Use newly named
21064 macro TARGET_CPU_P.
21065 * config/i386/i386.c (ix86_decompose_address): Likewise.
21066 (ix86_address_cost): Likewise.
21067 (ix86_lea_outperforms): Likewise.
21068 (ix86_avoid_lea_for_addr): Likewise.
21069 (ix86_add_stmt_cost): Likewise.
21070 * config/i386/i386.h (TARGET_*): Remove.
21071 (TARGET_CPU_P): New macro.
21072 * config/i386/i386.md: Use newly named macro TARGET_CPU_P.
21073 * config/i386/x86-tune-sched-atom.c (do_reorder_for_imul): Likewise.
21074 (swap_top_of_ready_list): Likewise.
21075 (ix86_atom_sched_reorder): Likewise.
21076 * config/i386/x86-tune-sched-bd.c (ix86_bd_has_dispatch): Likewise.
21077 * config/i386/x86-tune-sched.c (ix86_adjust_cost): Likewise.
21079 2021-04-21 Martin Liska <mliska@suse.cz>
21081 * config/i386/i386-options.c (TARGET_EXPLICIT_NO_SAHF_P):
21083 (SET_TARGET_NO_SAHF): Likewise.
21084 (TARGET_EXPLICIT_PREFETCH_SSE_P): Likewise.
21085 (SET_TARGET_PREFETCH_SSE): Likewise.
21086 (TARGET_EXPLICIT_NO_TUNE_P): Likewise.
21087 (SET_TARGET_NO_TUNE): Likewise.
21088 (TARGET_EXPLICIT_NO_80387_P): Likewise.
21089 (SET_TARGET_NO_80387): Likewise.
21091 * config/i386/i386.h (TARGET_*): Remove.
21092 * opth-gen.awk: Generate new used macros.
21094 2021-04-21 Martin Liska <mliska@suse.cz>
21096 * config/i386/i386.h (PTA_*): Remove.
21097 (enum pta_flag): New.
21098 (DEF_PTA): Generate PTA_* values from i386-isa.def.
21099 * config/i386/i386-isa.def: New file.
21101 2021-04-21 Alex Coplan <alex.coplan@arm.com>
21104 * config/aarch64/aarch64-bti-insert.c (aarch64_bti_j_insn_p): New.
21105 (rest_of_insert_bti): Avoid inserting duplicate bti j insns for
21106 jump table targets.
21108 2021-04-21 H.J. Lu <hjl.tools@gmail.com>
21110 * config.gcc: Install mwaitintrin.h for i[34567]86-*-* and
21111 x86_64-*-* targets.
21112 * common/config/i386/i386-common.c (OPTION_MASK_ISA2_MWAIT_SET):
21114 (OPTION_MASK_ISA2_MWAIT_UNSET): Likewise.
21115 (ix86_handle_option): Handle -mmwait.
21116 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
21117 Replace OPTION_MASK_ISA_SSE3 with OPTION_MASK_ISA2_MWAIT on
21118 __builtin_ia32_monitor and __builtin_ia32_mwait.
21119 * config/i386/i386-options.c (isa2_opts): Add -mmwait.
21120 (ix86_valid_target_attribute_inner_p): Likewise.
21121 (ix86_option_override_internal): Enable mwait/monitor
21122 instructions for -msse3.
21123 * config/i386/i386.h (TARGET_MWAIT): New.
21124 (TARGET_MWAIT_P): Likewise.
21125 * config/i386/i386.opt: Add -mmwait.
21126 * config/i386/mwaitintrin.h: New file.
21127 * config/i386/pmmintrin.h: Include <mwaitintrin.h>.
21128 * config/i386/sse.md (sse3_mwait): Replace TARGET_SSE3 with
21130 (@sse3_monitor_<mode>): Likewise.
21131 * config/i386/x86gprintrin.h: Include <mwaitintrin.h>.
21132 * doc/extend.texi: Document mwait target attribute.
21133 * doc/invoke.texi: Document -mmwait.
21135 2021-04-21 Martin Liska <mliska@suse.cz>
21137 * config/i386/i386-options.c (DEF_ENUM): Remove it.
21138 * config/i386/i386-opts.h (DEF_ENUM): Likewise.
21139 * config/i386/stringop.def (DEF_ENUM): Likewise.
21141 2021-04-21 Martin Liska <mliska@suse.cz>
21143 * tree-cfg.c (gimple_verify_flow_info): Use qD instead
21144 of print_generic_expr.
21146 2021-04-21 Jakub Jelinek <jakub@redhat.com>
21148 PR rtl-optimization/100148
21149 * cprop.c (constprop_register): Use next_nondebug_insn instead of
21152 2021-04-21 Martin Liska <mliska@suse.cz>
21155 * cgraphunit.c (cgraph_node::analyze): Remove duplicate
21156 free_dominance_info calls.
21158 2021-04-21 Richard Biener <rguenther@suse.de>
21160 * gimple-fold.c (maybe_fold_reference): Remove is_lhs
21161 parameter (and assume it to be false).
21162 (fold_gimple_assign): Adjust, remove all callers of
21163 maybe_fold_reference calling it with is_lhs true.
21164 (gimple_fold_call): Likewise.
21165 (fold_stmt_1): Likewise.
21167 2021-04-21 Richard Biener <rguenther@suse.de>
21169 * fold-const.c (pedantic_non_lvalue_loc): Remove.
21170 (fold_binary_loc): Adjust.
21171 (fold_ternary_loc): Likewise.
21173 2021-04-21 Richard Sandiford <richard.sandiford@arm.com>
21175 PR middle-end/100130
21176 * varasm.c (get_block_for_decl): Make sure that any use of the
21177 retain attribute matches the section's retain flag.
21178 (switch_to_section): Check for retain mismatches even when
21179 changing sections, but do not warn if the given decl is the
21180 section's named.decl.
21181 (output_object_block): Pass the first decl in the block (if any)
21182 to switch_to_section.
21184 2021-04-20 H.J. Lu <hjl.tools@gmail.com>
21186 * config/i386/i386-c.c (ix86_target_macros_internal): Define
21187 __CRC32__ for -mcrc32.
21188 * config/i386/i386-options.c (ix86_option_override_internal):
21189 Enable crc32 instruction for -msse4.2.
21190 * config/i386/i386.md (sse4_2_crc32<mode>): Remove TARGET_SSE4_2
21192 (sse4_2_crc32di): Likewise.
21193 * config/i386/ia32intrin.h: Use crc32 target option for CRC32
21196 2021-04-20 Segher Boessenkool <segher@kernel.crashing.org>
21199 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Do not consider
21202 2021-04-20 Martin Liska <mliska@suse.cz>
21204 * doc/invoke.texi: Fix typo.
21205 * params.opt: Likewise.
21207 2021-04-20 Martin Liska <mliska@suse.cz>
21209 * doc/invoke.texi: Document new param.
21211 2021-04-19 Andrew MacLeod <amacleod@redhat.com>
21213 PR tree-optimization/100081
21214 * gimple-range-cache.h (ranger_cache): Inherit from gori_compute
21215 rather than gori_compute_cache.
21216 * gimple-range-gori.cc (is_gimple_logical_p): Move to top of file.
21217 (range_def_chain::m_logical_depth): New member.
21218 (range_def_chain::range_def_chain): Initialize m_logical_depth.
21219 (range_def_chain::get_def_chain): Don't build defchains through more
21220 than LOGICAL_LIMIT logical expressions.
21221 * params.opt (param_ranger_logical_depth): New.
21223 2021-04-19 Richard Earnshaw <rearnsha@arm.com>
21226 * config/arm/arm.c (arm_configure_build_target): Do not strip
21227 extended FPU/SIMD feature bits from the target ISA when -mfpu
21228 is specified (partial revert of r11-8168).
21230 2021-04-19 Thomas Schwinge <thomas@codesourcery.com>
21232 * params.opt (-param=openacc-kernels=): Add.
21233 * omp-oacc-kernels-decompose.cc
21234 (pass_omp_oacc_kernels_decompose::gate): Use it.
21235 * doc/invoke.texi (-fopenacc-kernels=@var{mode}): Move...
21236 (--param): ... here, 'openacc-kernels'.
21238 2021-04-19 Martin Liska <mliska@suse.cz>
21241 * gengtype.c (finish_root_table): Align function arguments
21242 in between declaration and definition.
21244 2021-04-19 Eric Botcazou <ebotcazou@adacore.com>
21246 * config/i386/winnt.c (i386_pe_seh_cold_init): Properly deal with
21247 frames larger than the SEH maximum frame size.
21249 2021-04-18 Segher Boessenkool <segher@kernel.crashing.org>
21251 PR rtl-optimization/99927
21252 * combine.c (distribute_notes) [REG_UNUSED]: If the register already
21253 is dead, just drop it.
21255 2021-04-17 Iain Buclaw <ibuclaw@gdcproject.org>
21258 * config/i386/winnt-d.c (TARGET_D_TEMPLATES_ALWAYS_COMDAT): Define.
21259 * doc/tm.texi: Regenerate.
21260 * doc/tm.texi.in (D language and ABI): Add @hook for
21261 TARGET_D_TEMPLATES_ALWAYS_COMDAT.
21263 2021-04-17 Iain Buclaw <ibuclaw@gdcproject.org>
21265 * config/darwin-d.c (darwin_d_handle_target_object_format): New
21267 (darwin_d_register_target_info): New function.
21268 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
21269 * config/dragonfly-d.c (dragonfly_d_handle_target_object_format): New
21271 (dragonfly_d_register_target_info): New function.
21272 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
21273 * config/freebsd-d.c (freebsd_d_handle_target_object_format): New
21275 (freebsd_d_register_target_info): New function.
21276 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
21277 * config/glibc-d.c (glibc_d_handle_target_object_format): New
21279 (glibc_d_register_target_info): New function.
21280 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
21281 * config/i386/i386-d.c (ix86_d_handle_target_object_format): New
21283 (ix86_d_register_target_info): Add ix86_d_handle_target_object_format
21284 as handler for objectFormat key.
21285 * config/i386/winnt-d.c (winnt_d_handle_target_object_format): New
21287 (winnt_d_register_target_info): New function.
21288 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
21289 * config/netbsd-d.c (netbsd_d_handle_target_object_format): New
21291 (netbsd_d_register_target_info): New function.
21292 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
21293 * config/openbsd-d.c (openbsd_d_handle_target_object_format): New
21295 (openbsd_d_register_target_info): New function.
21296 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
21297 * config/pa/pa-d.c (pa_d_handle_target_object_format): New function.
21298 (pa_d_register_target_info): Add pa_d_handle_target_object_format as
21299 handler for objectFormat key.
21300 * config/rs6000/rs6000-d.c (rs6000_d_handle_target_object_format): New
21302 (rs6000_d_register_target_info): Add
21303 rs6000_d_handle_target_object_format as handler for objectFormat key.
21304 * config/sol2-d.c (solaris_d_handle_target_object_format): New
21306 (solaris_d_register_target_info): New function.
21307 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
21309 2021-04-16 Jakub Jelinek <jakub@redhat.com>
21312 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Change
21313 abi_break argument from bool * to unsigned *, store there the pre-GCC 9
21315 (aarch64_layout_arg, aarch64_gimplify_va_arg_expr): Adjust callers.
21316 (aarch64_function_arg_regno_p): Likewise. Only emit -Wpsabi note if
21317 the old and new alignment after applying MIN/MAX to it is different.
21319 2021-04-16 Tamar Christina <tamar.christina@arm.com>
21322 * config/aarch64/aarch64-sve.md (@aarch64_sve_trn1_conv<mode>): New.
21323 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_trn): Use new
21325 * config/aarch64/iterators.md (UNSPEC_TRN1_CONV): New.
21327 2021-04-16 Bill Schmidt <wschmidt@linux.ibm.com>
21329 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Revise
21330 this section and its subsections.
21332 2021-04-16 Jakub Jelinek <jakub@redhat.com>
21335 * config/aarch64/aarch64.md (*neg_asr_si2_extr, *extrsi5_insn_di): New
21336 define_insn patterns.
21338 2021-04-16 Richard Sandiford <richard.sandiford@arm.com>
21340 PR rtl-optimization/98689
21341 * reg-notes.def (UNTYPED_CALL): New note.
21342 * combine.c (distribute_notes): Handle it.
21343 * emit-rtl.c (try_split): Likewise.
21344 * rtlanal.c (rtx_properties::try_to_add_insn): Likewise. Assume
21345 that calls with the note implicitly set all return value registers.
21346 * builtins.c (expand_builtin_apply): Add a REG_UNTYPED_CALL
21349 2021-04-16 Richard Sandiford <richard.sandiford@arm.com>
21351 PR rtl-optimization/99596
21352 * rtlanal.c (rtx_properties::try_to_add_insn): Don't add global
21353 register accesses for const calls. Assume that pure functions
21354 can only read from global registers. Ignore cases in which
21355 the stack pointer has been marked global.
21357 2021-04-16 Jakub Jelinek <jakub@redhat.com>
21360 * tree-vect-loop.c (vect_transform_loop): Don't remove just
21361 dead scalar .MASK_LOAD calls, but also dead .COND_* calls - replace
21362 them by their last argument.
21364 2021-04-15 Martin Liska <mliska@suse.cz>
21366 * doc/invoke.texi: Other params don't use it, remove it.
21368 2021-04-15 Richard Biener <rguenther@suse.de>
21370 * gimple-builder.h: Add deprecation note.
21372 2021-04-15 Richard Sandiford <richard.sandiford@arm.com>
21375 * attribs.h (restrict_type_identity_attributes_to): Declare.
21376 * attribs.c (restrict_type_identity_attributes_to): New function.
21378 2021-04-15 Richard Sandiford <richard.sandiford@arm.com>
21381 * attribs.h (affects_type_identity_attributes): Declare.
21382 * attribs.c (remove_attributes_matching): New function.
21383 (affects_type_identity_attributes): Likewise.
21385 2021-04-15 Jakub Jelinek <jakub@redhat.com>
21388 * config/aarch64/aarch64.md (*<LOGICAL:optab>_<SHIFT:optab><mode>3):
21389 Add combine splitters for *<LOGICAL:optab>_ashl<mode>3 with
21390 ZERO_EXTEND, SIGN_EXTEND or AND.
21392 2021-04-14 Richard Sandiford <richard.sandiford@arm.com>
21394 PR rtl-optimization/99929
21395 * rtl.h (same_vector_encodings_p): New function.
21396 * cse.c (exp_equiv_p): Check that CONST_VECTORs have the same encoding.
21397 * cselib.c (rtx_equal_for_cselib_1): Likewise.
21398 * jump.c (rtx_renumbered_equal_p): Likewise.
21399 * lra-constraints.c (operands_match_p): Likewise.
21400 * reload.c (operands_match_p): Likewise.
21401 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Likewise.
21403 2021-04-14 Richard Sandiford <richard.sandiford@arm.com>
21405 * print-rtl.c (rtx_writer::print_rtx_operand_codes_E_and_V): Print
21406 more information about variable-length CONST_VECTORs.
21408 2021-04-14 Vladimir N. Makarov <vmakarov@redhat.com>
21410 PR rtl-optimization/100066
21411 * lra-constraints.c (split_reg): Check paradoxical_subreg_p for
21412 ordered modes when choosing splitting mode for hard reg.
21414 2021-04-14 Richard Sandiford <richard.sandiford@arm.com>
21417 * config/aarch64/aarch64.c (aarch64_expand_sve_const_vector_sel):
21419 (aarch64_expand_sve_const_vector): Use it for nelts_per_pattern==2.
21421 2021-04-14 Andreas Krebbel <krebbel@linux.ibm.com>
21423 * config/s390/s390-builtins.def (O_M5, O_M12, ...): Add new macros
21424 for mask operand types.
21425 (s390_vec_permi_s64, s390_vec_permi_b64, s390_vec_permi_u64)
21426 (s390_vec_permi_dbl, s390_vpdi): Use the M5 type for the immediate
21428 (s390_vec_msum_u128, s390_vmslg): Use the M12 type for the
21430 * config/s390/s390.c (s390_const_operand_ok): Check the new
21431 operand types and generate a list of valid values.
21433 2021-04-14 Iain Buclaw <ibuclaw@gdcproject.org>
21435 * doc/tm.texi: Regenerate.
21436 * doc/tm.texi.in (D language and ABI): Add @hook for
21437 TARGET_D_REGISTER_OS_TARGET_INFO.
21439 2021-04-14 Iain Buclaw <ibuclaw@gdcproject.org>
21441 * config/aarch64/aarch64-d.c (aarch64_d_handle_target_float_abi): New
21443 (aarch64_d_register_target_info): New function.
21444 * config/aarch64/aarch64-protos.h (aarch64_d_register_target_info):
21446 * config/aarch64/aarch64.h (TARGET_D_REGISTER_CPU_TARGET_INFO):
21448 * config/arm/arm-d.c (arm_d_handle_target_float_abi): New function.
21449 (arm_d_register_target_info): New function.
21450 * config/arm/arm-protos.h (arm_d_register_target_info): Declare.
21451 * config/arm/arm.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
21452 * config/i386/i386-d.c (ix86_d_handle_target_float_abi): New function.
21453 (ix86_d_register_target_info): New function.
21454 * config/i386/i386-protos.h (ix86_d_register_target_info): Declare.
21455 * config/i386/i386.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
21456 * config/mips/mips-d.c (mips_d_handle_target_float_abi): New function.
21457 (mips_d_register_target_info): New function.
21458 * config/mips/mips-protos.h (mips_d_register_target_info): Declare.
21459 * config/mips/mips.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
21460 * config/pa/pa-d.c (pa_d_handle_target_float_abi): New function.
21461 (pa_d_register_target_info): New function.
21462 * config/pa/pa-protos.h (pa_d_register_target_info): Declare.
21463 * config/pa/pa.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
21464 * config/riscv/riscv-d.c (riscv_d_handle_target_float_abi): New
21466 (riscv_d_register_target_info): New function.
21467 * config/riscv/riscv-protos.h (riscv_d_register_target_info): Declare.
21468 * config/riscv/riscv.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
21469 * config/rs6000/rs6000-d.c (rs6000_d_handle_target_float_abi): New
21471 (rs6000_d_register_target_info): New function.
21472 * config/rs6000/rs6000-protos.h (rs6000_d_register_target_info):
21474 * config/rs6000/rs6000.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
21475 * config/s390/s390-d.c (s390_d_handle_target_float_abi): New function.
21476 (s390_d_register_target_info): New function.
21477 * config/s390/s390-protos.h (s390_d_register_target_info): Declare.
21478 * config/s390/s390.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
21479 * config/sparc/sparc-d.c (sparc_d_handle_target_float_abi): New
21481 (sparc_d_register_target_info): New function.
21482 * config/sparc/sparc-protos.h (sparc_d_register_target_info): Declare.
21483 * config/sparc/sparc.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
21484 * doc/tm.texi: Regenerate.
21485 * doc/tm.texi.in (D language and ABI): Add @hook for
21486 TARGET_D_REGISTER_CPU_TARGET_INFO.
21488 2021-04-14 Iain Buclaw <ibuclaw@gdcproject.org>
21490 * config/i386/i386-d.c (ix86_d_has_stdcall_convention): New function.
21491 * config/i386/i386-protos.h (ix86_d_has_stdcall_convention): Declare.
21492 * config/i386/i386.h (TARGET_D_HAS_STDCALL_CONVENTION): Define.
21493 * doc/tm.texi: Regenerate.
21494 * doc/tm.texi.in (D language and ABI): Add @hook for
21495 TARGET_D_HAS_STDCALL_CONVENTION.
21497 2021-04-14 Richard Biener <rguenther@suse.de>
21499 * tree-cfg.c (verify_gimple_assign_ternary): Verify that
21500 VEC_COND_EXPRs have a gimple_val condition.
21501 * tree-ssa-propagate.c (valid_gimple_rhs_p): VEC_COND_EXPR
21502 can no longer have a GENERIC condition.
21504 2021-04-14 Richard Earnshaw <rearnsha@arm.com>
21507 * config/arm/arm.c (arm_configure_build_target): Strip isa_all_fpbits
21508 from the isa_delta when -mfpu has been used.
21509 (arm_options_perform_arch_sanity_checks): It's the architecture that
21510 lacks an FPU not the processor.
21512 2021-04-13 Richard Biener <rguenther@suse.de>
21514 PR tree-optimization/100053
21515 * tree-ssa-sccvn.c (vn_nary_op_get_predicated_value): Do
21516 not use optimistic dominance queries for backedges to validate
21518 (dominated_by_p_w_unex): Add parameter to ignore executable
21519 state on backedges.
21520 (rpo_elim::eliminate_avail): Adjust.
21522 2021-04-13 Jakub Jelinek <jakub@redhat.com>
21525 * config/aarch64/aarch64.md (*aarch64_bfxil<mode>_extr,
21526 *aarch64_bfxilsi_extrdi): New define_insn patterns.
21528 2021-04-13 Jakub Jelinek <jakub@redhat.com>
21531 * simplify-rtx.c (simplify_immed_subreg): For MODE_COMPOSITE_P
21532 outermode, return NULL if the result doesn't encode back to the
21533 original byte sequence.
21534 (simplify_gen_subreg): Don't create SUBREGs from constants to
21535 MODE_COMPOSITE_P outermode.
21537 2021-04-12 Jakub Jelinek <jakub@redhat.com>
21539 PR rtl-optimization/99905
21540 * combine.c (expand_compound_operation): If pos + len > modewidth,
21541 perform the right shift by pos in inner_mode and then convert to mode,
21542 instead of trying to simplify a shift of rtx with inner_mode by pos
21543 as if it was a shift in mode.
21545 2021-04-12 Jakub Jelinek <jakub@redhat.com>
21548 * combine.c (simplify_and_const_int_1): Don't optimize varop
21549 away if it has side-effects.
21551 2021-04-12 Martin Liska <mliska@suse.cz>
21553 * doc/extend.texi: Escape @smallexample content.
21555 2021-04-12 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
21557 * config/s390/s390.md ("*movdi_31", "*movdi_64"): Add
21558 alternative in order to load a DFP zero.
21560 2021-04-12 Martin Liska <mliska@suse.cz>
21562 * doc/extend.texi: Be more precise in documentation
21563 of symver attribute.
21565 2021-04-12 Martin Liska <mliska@suse.cz>
21568 * gimplify.c (gimplify_expr): Right now, we unpoison all
21569 variables before a goto <dest>. We should not do it if we are
21572 2021-04-12 Cui,Lili <lili.cui@intel.com>
21574 * common/config/i386/cpuinfo.h (get_intel_cpu): Handle
21576 * common/config/i386/i386-common.c (processor_names): Add
21578 (processor_alias_table): Add rocketlake.
21579 * common/config/i386/i386-cpuinfo.h (processor_subtypes): Add
21580 INTEL_COREI7_ROCKETLAKE.
21581 * config.gcc: Add -march=rocketlake.
21582 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
21584 * config/i386/i386-options.c (m_ROCKETLAKE) : Define.
21585 (processor_cost_table): Add rocketlake cost.
21586 * config/i386/i386.h (ix86_size_cost) : Define
21588 (processor_type) : Add PROCESSOR_ROCKETLAKE.
21589 (PTA_ROCKETLAKE): Ditto.
21590 * doc/extend.texi: Add rocketlake.
21591 * doc/invoke.texi: Add rocketlake.
21593 2021-04-12 Cui,Lili <lili.cui@intel.com>
21595 * config/i386/i386.h (PTA_ALDERLAKE): Change alderlake ISA list.
21596 * config/i386/i386-options.c (m_CORE_AVX2): Add m_ALDERLAKE.
21597 * common/config/i386/cpuinfo.h (get_intel_cpu): Add AlderLake model.
21598 * doc/invoke.texi: Change alderlake ISA list.
21600 2021-04-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
21602 PR middle-end/98088
21603 * omp-expand.c (expand_oacc_collapse_init): Update condition in
21606 2021-04-10 H.J. Lu <hjl.tools@gmail.com>
21609 * config/i386/serializeintrin.h (_serialize): Defined as macro.
21611 2021-04-10 Jakub Jelinek <jakub@redhat.com>
21614 * expr.c (expand_expr_addr_expr_1): Test is_global_var rather than
21615 just TREE_STATIC on COMPOUND_LITERAL_EXPR_DECLs.
21617 2021-04-10 Jakub Jelinek <jakub@redhat.com>
21619 PR middle-end/99989
21620 * gimple-ssa-warn-alloca.c
21621 (alloca_type_and_limit::alloca_type_and_limit): Initialize limit to
21622 0 with integer precision unconditionally.
21624 2021-04-10 Jakub Jelinek <jakub@redhat.com>
21626 PR rtl-optimization/98601
21627 * rtlanal.c (rtx_addr_can_trap_p_1): Allow in assert unknown size
21628 not just for BLKmode, but also for VOIDmode. For STRICT_ALIGNMENT
21629 unaligned_mems handle VOIDmode like BLKmode.
21631 2021-04-10 Jan Hubicka <hubicka@ucw.cz>
21634 * tree.c (free_lang_data_in_decl): Do not release body of
21635 declare_variant_alt.
21637 2021-04-09 Richard Sandiford <richard.sandiford@arm.com>
21639 * config/aarch64/aarch64.c (aarch64_option_restore): If the
21640 architecture was specified explicitly and the tuning wasn't,
21641 tune for the architecture rather than the configured default CPU.
21643 2021-04-09 Richard Sandiford <richard.sandiford@arm.com>
21645 * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use X30
21646 as the temporary register.
21648 2021-04-09 Martin Liska <mliska@suse.cz>
21650 * doc/extend.texi: Move non-target attributes on the top level.
21652 2021-04-09 Martin Liska <mliska@suse.cz>
21654 * doc/invoke.texi: Document minimum and maximum value of the
21655 argument for both supported compression algorithms.
21657 2021-04-08 David Edelsohn <dje.gcc@gmail.com>
21659 * config/rs6000/rs6000.c (rs6000_xcoff_select_section): Select
21660 TLS BSS before TLS data.
21661 * config/rs6000/xcoff.h (ASM_OUTPUT_TLS_COMMON): Use .comm.
21663 2021-04-08 Richard Sandiford <richard.sandiford@arm.com>
21665 * doc/sourcebuild.texi (stdint_types_mbig_endian): Document.
21667 2021-04-08 Richard Sandiford <richard.sandiford@arm.com>
21669 * match.pd: Extend vec_cond folds to handle shifts.
21671 2021-04-08 Maciej W. Rozycki <macro@orcam.me.uk>
21673 * config/vax/vax.md: Fix comment for `*bit<mode>' pattern's
21676 2021-04-08 Alex Coplan <alex.coplan@arm.com>
21679 * config/arm/iterators.md (MVE_vecs): New.
21680 (V_elem): Also handle V2DF.
21681 * config/arm/mve.md (*mve_mov<mode>): Rename to ...
21682 (*mve_vdup<mode>): ... this. Remove second alternative since
21683 vec_duplicate of const_int is not canonical RTL, and we don't
21684 want to match symbol_refs.
21685 (*mve_vec_duplicate<mode>): Delete (pattern is redundant).
21687 2021-04-08 Xionghu Luo <luoxhu@linux.ibm.com>
21689 * fold-const.c (fold_single_bit_test): Fix typo.
21690 * print-rtl.c (print_rtx_insn_vec): Call print_rtl_single
21693 2021-04-07 Richard Sandiford <richard.sandiford@arm.com>
21695 PR tree-optimization/97513
21696 * tree-vect-slp.c (vect_add_slp_permutation): New function,
21698 (vectorizable_slp_permutation): ...here. Detect cases in which
21699 all VEC_PERM_EXPRs are guaranteed to have the same stepped
21700 permute vector and only generate one permute vector for that case.
21701 Extend that case to handle variable-length vectors.
21703 2021-04-07 Richard Sandiford <richard.sandiford@arm.com>
21705 PR tree-optimization/99873
21706 * tree-vect-slp.c (vect_slp_prefer_store_lanes_p): New function.
21707 (vect_build_slp_instance): Don't split store groups that could
21708 use IFN_STORE_LANES.
21710 2021-04-07 Jakub Jelinek <jakub@redhat.com>
21713 * varasm.c (output_constant_pool_contents): Don't strip name encoding
21714 from XSTR (desc->sym, 0) or from label before passing those to
21717 2021-04-07 Richard Biener <rguenther@suse.de>
21719 PR tree-optimization/99954
21720 * tree-loop-distribution.c: Include tree-affine.h.
21721 (generate_memcpy_builtin): Try using tree-affine to prove
21723 (loop_distribution::classify_builtin_ldst): Always classify
21726 2021-04-07 Richard Biener <rguenther@suse.de>
21728 PR tree-optimization/99947
21729 * tree-vect-loop.c (vectorizable_induction): Pre-allocate
21730 steps vector to avoid pushing elements from the reallocated
21733 2021-04-07 Richard Biener <rguenther@suse.de>
21735 * tree-ssa-sccvn.h (print_vn_reference_ops): Declare.
21736 * tree-ssa-pre.c (print_pre_expr): Factor out VN reference operand
21738 * tree-ssa-sccvn.c (print_vn_reference_ops): ... into this new
21740 (debug_vn_reference_ops): New.
21742 2021-04-07 Bin Cheng <bin.cheng@linux.alibaba.com>
21744 PR tree-optimization/98736
21745 * tree-loop-distribution.c
21746 * (loop_distribution::bb_top_order_init):
21747 Compute RPO with programing order preserved by calling function
21748 rev_post_order_and_mark_dfs_back_seme.
21750 2021-04-06 Vladimir N. Makarov <vmakarov@redhat.com>
21753 * lra-constraints.c (split_reg): Don't check paradoxical_subreg_p.
21754 * lra-lives.c (clear_sparseset_regnos, regnos_in_sparseset_p): New
21756 (process_bb_lives): Don't update biggest mode of hard reg for
21757 implicit in multi-register group. Use the new functions for
21758 updating dead_set and unused_set by register notes.
21760 2021-04-06 Xianmiao Qu <xianmiao_qu@c-sky.com>
21762 * config/csky/csky_pipeline_ck802.md : Use insn reservation name
21765 2021-04-06 H.J. Lu <hjl.tools@gmail.com>
21767 * config/i386/x86-tune-costs.h (skylake_memcpy): Updated.
21768 (skylake_memset): Likewise.
21769 (skylake_cost): Change CLEAR_RATIO to 17.
21770 * config/i386/x86-tune.def (X86_TUNE_PREFER_KNOWN_REP_MOVSB_STOSB):
21771 Replace m_CANNONLAKE, m_ICELAKE_CLIENT, m_ICELAKE_SERVER,
21772 m_TIGERLAKE and m_SAPPHIRERAPIDS with m_SKYLAKE and m_CORE_AVX512.
21774 2021-04-06 Richard Biener <rguenther@suse.de>
21776 PR tree-optimization/99880
21777 * tree-vect-loop.c (maybe_set_vectorized_backedge_value): Only
21778 set vectorized defs of relevant PHIs.
21780 2021-04-06 Richard Biener <rguenther@suse.de>
21782 PR tree-optimization/99924
21783 * tree-vect-slp.c (vect_bb_partition_graph_r): Do not mark
21784 nodes w/o scalar stmts as visited.
21786 2021-04-06 Alex Coplan <alex.coplan@arm.com>
21789 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Also use base
21790 PCS for [su]fix_optab.
21792 2021-04-03 Iain Sandoe <iain@sandoe.co.uk>
21794 * config/darwin.c (machopic_legitimize_pic_address): Check
21795 that the current pic register is one of the hard reg set
21796 before setting liveness.
21798 2021-04-03 Iain Sandoe <iain@sandoe.co.uk>
21800 * config/darwin.c (machopic_legitimize_pic_address): Fix
21801 whitespace, remove unused code.
21803 2021-04-03 Jakub Jelinek <jakub@redhat.com>
21805 PR tree-optimization/99882
21806 * gimple-ssa-store-merging.c (bswap_view_convert): Handle val with
21809 2021-04-03 Jakub Jelinek <jakub@redhat.com>
21811 PR rtl-optimization/99863
21812 * dse.c (replace_read): Drop regs_live argument. Instead of
21813 regs_live, use store_insn->fixed_regs_live if non-NULL,
21814 otherwise punt if insns sequence clobbers or sets any hard
21817 2021-04-03 Jakub Jelinek <jakub@redhat.com>
21820 * targhooks.h (default_print_patchable_function_entry_1): Declare.
21821 * targhooks.c (default_print_patchable_function_entry_1): New function,
21822 copied from default_print_patchable_function_entry with an added flags
21824 (default_print_patchable_function_entry): Rewritten into a small
21825 wrapper around default_print_patchable_function_entry_1.
21826 * config/rs6000/rs6000.c (TARGET_ASM_PRINT_PATCHABLE_FUNCTION_ENTRY):
21828 (rs6000_print_patchable_function_entry): New function.
21830 2021-04-02 Eric Botcazou <ebotcazou@adacore.com>
21832 * doc/invoke.texi (fdelete-dead-exceptions): Minor tweak.
21834 2021-04-01 Jason Merrill <jason@redhat.com>
21837 * common.opt: Document v15 and v16.
21839 2021-04-01 Richard Biener <rguenther@suse.de>
21841 PR tree-optimization/99863
21842 * gimplify.c (gimplify_init_constructor): Recompute vector
21845 2021-04-01 Jakub Jelinek <jakub@redhat.com>
21847 * doc/extend.texi (symver attribute): Fix up syntax errors
21850 2021-04-01 Jakub Jelinek <jakub@redhat.com>
21852 PR tree-optimization/96573
21853 * gimple-ssa-store-merging.c (init_symbolic_number): Handle
21854 also pointer types.
21856 2021-04-01 Richard Biener <rguenther@suse.de>
21858 PR tree-optimization/99856
21859 * tree-vect-patterns.c (vect_recog_over_widening_pattern): Promote
21860 precision to vector element precision.
21862 2021-04-01 Martin Jambor <mjambor@suse.cz>
21864 PR tree-optimization/97009
21865 * tree-sra.c (access_or_its_child_written): New function.
21866 (propagate_subaccesses_from_rhs): Use it instead of a simple grp_write
21869 2021-03-31 Jan Hubicka <hubicka@ucw.cz>
21872 * cif-code.def (USES_COMDAT_LOCAL): Make CIF_FINAL_NORMAL.
21874 2021-03-31 Pat Haugen <pthaugen@linux.ibm.com>
21877 * config/rs6000/altivec.md (xxspltiw_v4si, xxspltiw_v4sf_inst,
21878 xxspltidp_v2df_inst, xxsplti32dx_v4si_inst, xxsplti32dx_v4sf_inst,
21879 xxblend_<mode>, xxpermx_inst, xxeval): Mark prefixed.
21880 * config/rs6000/mma.md (mma_<vvi4i4i8>, mma_<avvi4i4i8>,
21881 mma_<vvi4i4i2>, mma_<avvi4i4i2>, mma_<vvi4i4>, mma_<avvi4i4>,
21882 mma_<pvi4i2>, mma_<apvi4i2>, mma_<vvi4i4i4>, mma_<avvi4i4i4>):
21884 * config/rs6000/rs6000.c (rs6000_final_prescan_insn): Adjust test.
21885 * config/rs6000/rs6000.md (define_attr "maybe_prefixed"): New.
21886 (define_attr "prefixed"): Update initializer.
21888 2021-03-31 Jakub Jelinek <jakub@redhat.com>
21891 * dwarf2out.c (debug_ranges_dwo_section): New variable.
21892 (DW_RANGES_IDX_SKELETON): Define.
21893 (struct dw_ranges): Add begin_entry and end_entry members.
21894 (DEBUG_DWO_RNGLISTS_SECTION): Define.
21895 (add_ranges_num): Adjust r initializer for addition of *_entry
21897 (add_ranges_by_labels): For -gsplit-dwarf and force_direct,
21898 set idx to DW_RANGES_IDX_SKELETON.
21899 (use_distinct_base_address_for_range): New function.
21900 (index_rnglists): Don't set r->idx if it is equal to
21901 DW_RANGES_IDX_SKELETON. Initialize r->begin_entry and
21902 r->end_entry for -gsplit-dwarf if those will be needed by
21904 (output_rnglists): Add DWO argument. If true, switch to
21905 debug_ranges_dwo_section rather than debug_ranges_section.
21906 Adjust l1/l2 label indexes. Only output the offset table when
21907 dwo is true and don't include in there the skeleton range
21908 entry if present. For -gsplit-dwarf, skip ranges that belong
21909 to the other rnglists section. Change return type from void
21910 to bool and return true if there are any range entries for
21911 the other section. For dwarf_split_debug_info use
21912 DW_RLE_startx_endx, DW_RLE_startx_length and DW_RLE_base_addressx
21913 entries instead of DW_RLE_start_end, DW_RLE_start_length and
21914 DW_RLE_base_address. Use use_distinct_base_address_for_range.
21915 (init_sections_and_labels): Initialize debug_ranges_dwo_section
21916 if -gsplit-dwarf and DWARF >= 5. Adjust ranges_section_label
21917 and range_base_label indexes.
21918 (dwarf2out_finish): Call index_rnglists earlier before finalizing
21919 .debug_addr. Never emit DW_AT_rnglists_base attribute. For
21920 -gsplit-dwarf and DWARF >= 5 call output_rnglists up to twice
21921 with different dwo arguments.
21922 (dwarf2out_c_finalize): Clear debug_ranges_dwo_section.
21924 2021-03-31 Richard Sandiford <richard.sandiford@arm.com>
21926 PR tree-optimization/98268
21927 * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Call
21928 recompute_tree_invariant_for_addr_expr after successfully
21929 folding a TARGET_MEM_REF that occurs inside an ADDR_EXPR.
21931 2021-03-31 Richard Sandiford <richard.sandiford@arm.com>
21933 PR tree-optimization/99726
21934 * tree-data-ref.c (create_intersect_range_checks_index): Bail
21935 out if there is more than one access function SCEV for the loop
21938 2021-03-31 Richard Sandiford <richard.sandiford@arm.com>
21940 PR rtl-optimization/97141
21941 PR rtl-optimization/98726
21942 * emit-rtl.c (valid_for_const_vector_p): Return true for
21944 * rtx-vector-builder.h (rtx_vector_builder::step): Return a
21945 poly_wide_int instead of a wide_int.
21946 (rtx_vector_builder::apply_set): Take a poly_wide_int instead
21948 * rtx-vector-builder.c (rtx_vector_builder::apply_set): Likewise.
21949 * config/aarch64/aarch64.c (aarch64_legitimate_constant_p): Return
21950 false for CONST_VECTORs that cannot be forced to memory.
21951 * config/aarch64/aarch64-simd.md (mov<mode>): If a CONST_VECTOR
21952 is too complex to force to memory, build it up from individual
21955 2021-03-31 Jan Hubicka <jh@suse.cz>
21958 * cgraph.c (cgraph_node::release_body): Fix overactive check.
21960 2021-03-31 Christophe Lyon <christophe.lyon@linaro.org>
21963 * config/arm/vec-common.md (mul<mode>3): Disable on iwMMXT, expect
21966 2021-03-31 H.J. Lu <hjl.tools@gmail.com>
21968 * config/i386/i386-expand.c (expand_set_or_cpymem_via_rep):
21969 For TARGET_PREFER_KNOWN_REP_MOVSB_STOSB, don't convert QImode
21971 (decide_alg): For TARGET_PREFER_KNOWN_REP_MOVSB_STOSB, use
21972 "rep movsb/stosb" only for known sizes.
21973 * config/i386/i386-options.c (processor_cost_table): Use Ice
21974 Lake cost for Cannon Lake, Ice Lake, Tiger Lake, Sapphire
21975 Rapids and Alder Lake.
21976 * config/i386/i386.h (TARGET_PREFER_KNOWN_REP_MOVSB_STOSB): New.
21977 * config/i386/x86-tune-costs.h (icelake_memcpy): New.
21978 (icelake_memset): Likewise.
21979 (icelake_cost): Likewise.
21980 * config/i386/x86-tune.def (X86_TUNE_PREFER_KNOWN_REP_MOVSB_STOSB):
21983 2021-03-31 Richard Sandiford <richard.sandiford@arm.com>
21986 * config/aarch64/aarch64.c
21987 (aarch64_vectorize_preferred_vector_alignment): Query the size
21988 of the provided SVE vector; do not assume that all SVE vectors
21989 have the same size.
21991 2021-03-31 Jan Hubicka <jh@suse.cz>
21994 * cgraph.c (cgraph_node::release_body): Remove all callers and
21996 * cgraphclones.c (cgraph_node::materialize_clone): Do not do it here.
21997 * cgraphunit.c (cgraph_node::expand): And here.
21999 2021-03-31 Martin Liska <mliska@suse.cz>
22001 * ipa-modref.c (analyze_ssa_name_flags): Fix coding style
22002 and one negated condition.
22004 2021-03-31 Jakub Jelinek <jakub@redhat.com>
22005 Richard Sandiford <richard.sandiford@arm.com>
22008 * config/aarch64/aarch64.md (*add<mode>3_poly_1): Swap Uai and Uav
22009 constraints on operands[2] and similarly 0 and rk constraints
22010 on operands[1] corresponding to that.
22012 2021-03-31 Jakub Jelinek <jakub@redhat.com>
22015 * configure.ac (HAVE_LD_BROKEN_PE_DWARF5): New AC_DEFINE if PECOFF
22016 linker doesn't support DWARF sections new in DWARF5.
22017 * config/i386/i386-options.c (ix86_option_override_internal): Default
22018 to dwarf_version 4 if HAVE_LD_BROKEN_PE_DWARF5 for TARGET_PECOFF
22020 * config.in: Regenerated.
22021 * configure: Regenerated.
22023 2021-03-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22026 * config/aarch64/aarch64.c (aarch64_analyze_loop_vinfo): Check for
22027 available issue_info before using it.
22029 2021-03-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22032 * config/aarch64/aarch64.md (sub<mode>3_compare1_imm): Do not allow zero
22035 2021-03-30 Xionghu Luo <luoxhu@linux.ibm.com>
22038 * config/rs6000/altivec.md (altivec_lvsl_reg): Change to ...
22039 (altivec_lvsl_reg_<mode>): ... this.
22040 (altivec_lvsr_reg): Change to ...
22041 (altivec_lvsr_reg_<mode>): ... this.
22042 * config/rs6000/predicates.md (vec_set_index_operand): New.
22043 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
22044 Enable 32bit variable vec_insert for all TARGET_VSX.
22045 * config/rs6000/rs6000.c (rs6000_expand_vector_set_var_p9):
22046 Enable 32bit variable vec_insert for p9 and above.
22047 (rs6000_expand_vector_set_var_p8): Rename to ...
22048 (rs6000_expand_vector_set_var_p7): ... this.
22049 (rs6000_expand_vector_set): Use TARGET_VSX and adjust assert
22051 * config/rs6000/vector.md (vec_set<mode>): Use vec_set_index_operand.
22052 * config/rs6000/vsx.md (xl_len_r): Use gen_altivec_lvsl_reg_di and
22053 gen_altivec_lvsr_reg_di.
22055 2021-03-30 H.J. Lu <hjl.tools@gmail.com>
22058 * config/i386/ia32intrin.h (__rdtsc): Defined as macro.
22059 (__rdtscp): Likewise.
22061 2021-03-30 Tamar Christina <tamar.christina@arm.com>
22063 PR tree-optimization/99825
22064 * tree-vect-slp-patterns.c (vect_check_evenodd_blend):
22065 Reject non-mult 2 lanes.
22067 2021-03-30 Richard Earnshaw <rearnsha@arm.com>
22070 * config/arm/arm.c (arm_file_start): Fix emission of
22071 Tag_ABI_VFP_args attribute.
22073 2021-03-30 Richard Biener <rguenther@suse.de>
22075 PR tree-optimization/99824
22076 * stor-layout.c (set_min_and_max_values_for_integral_type):
22077 Assert the precision is within the bounds of
22078 WIDE_INT_MAX_PRECISION.
22079 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use
22080 the outermost component ref only to lower the access size
22081 and initialize that from the access type.
22083 2021-03-30 Richard Sandiford <richard.sandiford@arm.com>
22086 * config/aarch64/aarch64.md (mov<mode>): Pass multi-instruction
22087 CONST_INTs to aarch64_expand_mov_immediate when called after RA.
22089 2021-03-30 Mihailo Stojanovic <mihailo.stojanovic@typhoon-hil.com>
22091 * config/aarch64/aarch64.md
22092 (<optab>_trunc<fcvt_target><GPI:mode>2): Set the "arch"
22093 attribute to disambiguate between SIMD and FP variants of the
22096 2021-03-29 Jan Hubicka <hubicka@ucw.cz>
22098 * ipa-modref.c (merge_call_lhs_flags): Correct handling of deref.
22099 (analyze_ssa_name_flags): Fix typo in comment.
22101 2021-03-29 Alex Coplan <alex.coplan@arm.com>
22104 * config/aarch64/aarch64-sve-builtins.cc
22105 (function_builder::add_function): Add placeholder_p argument, use
22106 placeholder decls if this is set.
22107 (function_builder::add_unique_function): Instead of conditionally adding
22108 direct overloads, unconditionally add either a direct overload or a
22110 (function_builder::add_overloaded_function): Set placeholder_p if we're
22111 using C++ overloads. Use the obstack for string storage instead
22112 of relying on the tree nodes.
22113 (function_builder::add_overloaded_functions): Don't return early for
22114 m_direct_overloads: we need to add placeholders.
22115 * config/aarch64/aarch64-sve-builtins.h
22116 (function_builder::add_function): Add placeholder_p argument.
22118 2021-03-29 Richard Biener <rguenther@suse.de>
22120 PR tree-optimization/99807
22121 * tree-vect-slp.c (vect_slp_analyze_node_operations_1): Move
22122 assert below VEC_PERM handling.
22124 2021-03-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22127 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): Use
22128 aarch64_simd_or_scalar_imm_zero to match zeroes. Remove pattern
22129 matching const_int 0.
22130 (move_lo_quad_internal_be_<mode>): Likewise.
22131 (move_lo_quad_<mode>): Update for the above.
22132 * config/aarch64/iterators.md (VQ_2E): Delete.
22134 2021-03-29 Jakub Jelinek <jakub@redhat.com>
22136 PR tree-optimization/99777
22137 * fold-const.c (extract_muldiv_1): For conversions, punt on casts from
22138 types other than scalar integral types.
22140 2021-03-28 David Edelsohn <dje.gcc@gmail.com>
22142 * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Do not add
22143 XCOFF TLS reloc decorations.
22145 2021-03-28 Gerald Pfeifer <gerald@pfeifer.com>
22147 * doc/analyzer.texi (Analyzer Internals): Update link to
22148 "A Memory Model for Static Analysis of C Programs".
22150 2021-03-26 David Edelsohn <dje.gcc@gmail.com>
22152 * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Call function.
22153 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align):
22155 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align): New.
22156 (rs6000_special_round_type_align): Recursively check innermost first
22159 2021-03-26 Jakub Jelinek <jakub@redhat.com>
22162 * dwarf2out.h (struct dw_fde_node): Add rule18 member.
22163 * dwarf2cfi.c (dwarf2out_frame_debug_expr): When handling (set hfp sp)
22164 assignment with drap_reg active, queue reg save for hfp with offset 0
22165 and flush queued reg saves. When handling a push with rule18,
22166 defer queueing reg save for hfp and just assert the offset is 0.
22167 (scan_trace): Assert that fde->rule18 is false.
22169 2021-03-26 Vladimir Makarov <vmakarov@redhat.com>
22172 * ira-costs.c (record_reg_classes): Put case with
22173 CT_RELAXED_MEMORY adjacent to one with CT_MEMORY.
22174 * ira.c (ira_setup_alts): Ditto.
22175 * lra-constraints.c (process_alt_operands): Ditto.
22176 * recog.c (asm_operand_ok): Ditto.
22177 * reload.c (find_reloads): Ditto.
22179 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
22181 * config/aarch64/aarch64-protos.h
22182 (cpu_addrcost_table::post_modify_ld3_st3): New member variable.
22183 (cpu_addrcost_table::post_modify_ld4_st4): Likewise.
22184 * config/aarch64/aarch64.c (generic_addrcost_table): Update
22185 accordingly, using the same costs as for post_modify.
22186 (exynosm1_addrcost_table, xgene1_addrcost_table): Likewise.
22187 (thunderx2t99_addrcost_table, thunderx3t110_addrcost_table):
22188 (tsv110_addrcost_table, qdf24xx_addrcost_table): Likewise.
22189 (a64fx_addrcost_table): Likewise.
22190 (neoversev1_addrcost_table): New.
22191 (neoversev1_tunings): Use neoversev1_addrcost_table.
22192 (aarch64_address_cost): Use the new post_modify costs for CImode
22195 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
22197 * config/aarch64/aarch64.opt
22198 (-param=aarch64-loop-vect-issue-rate-niters=): New parameter.
22199 * doc/invoke.texi: Document it.
22200 * config/aarch64/aarch64-protos.h (aarch64_base_vec_issue_info)
22201 (aarch64_scalar_vec_issue_info, aarch64_simd_vec_issue_info)
22202 (aarch64_advsimd_vec_issue_info, aarch64_sve_vec_issue_info)
22203 (aarch64_vec_issue_info): New structures.
22204 (cpu_vector_cost): Write comments above the variables rather
22206 (cpu_vector_cost::issue_info): New member variable.
22207 * config/aarch64/aarch64.c: Include gimple-pretty-print.h
22208 and tree-ssa-loop-niter.h.
22209 (generic_vector_cost, a64fx_vector_cost, qdf24xx_vector_cost)
22210 (thunderx_vector_cost, tsv110_vector_cost, cortexa57_vector_cost)
22211 (exynosm1_vector_cost, xgene1_vector_cost, thunderx2t99_vector_cost)
22212 (thunderx3t110_vector_cost): Initialize issue_info to null.
22213 (neoversev1_scalar_issue_info, neoversev1_advsimd_issue_info)
22214 (neoversev1_sve_issue_info, neoversev1_vec_issue_info): New structures.
22215 (neoversev1_vector_cost): Use them.
22216 (aarch64_vec_op_count, aarch64_sve_op_count): New structures.
22217 (aarch64_vector_costs::saw_sve_only_op): New member variable.
22218 (aarch64_vector_costs::num_vector_iterations): Likewise.
22219 (aarch64_vector_costs::scalar_ops): Likewise.
22220 (aarch64_vector_costs::advsimd_ops): Likewise.
22221 (aarch64_vector_costs::sve_ops): Likewise.
22222 (aarch64_vector_costs::seen_loads): Likewise.
22223 (aarch64_simd_vec_costs_for_flags): New function.
22224 (aarch64_analyze_loop_vinfo): Initialize num_vector_iterations.
22225 Count the number of predicate operations required by SVE WHILE
22227 (aarch64_comparison_type, aarch64_multiply_add_p): New functions.
22228 (aarch64_sve_only_stmt_p, aarch64_in_loop_reduction_latency): Likewise.
22229 (aarch64_count_ops): Likewise.
22230 (aarch64_add_stmt_cost): Record whether see an SVE operation
22231 that cannot currently be implementing using Advanced SIMD.
22232 Record issue information about the scalar, Advanced SIMD
22233 and (where relevant) SVE versions of a loop.
22234 (aarch64_vec_op_count::dump): New function.
22235 (aarch64_sve_op_count::dump): Likewise.
22236 (aarch64_estimate_min_cycles_per_iter): Likewise.
22237 (aarch64_adjust_body_cost): If issue information is available,
22238 try to compare the issue rates of the various loop implementations
22239 and increase or decrease the vector body cost accordingly.
22241 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
22243 * config/aarch64/aarch64.c (aarch64_detect_vector_stmt_subtype):
22244 Assume a zero cost for induction phis.
22246 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
22248 * config/aarch64/aarch64.c (aarch64_embedded_comparison_type): New
22250 (aarch64_adjust_stmt_cost): Add the costs of embedded scalar and
22251 vector comparisons.
22253 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
22255 * config/aarch64/aarch64.c (aarch64_detect_scalar_stmt_subtype):
22257 (aarch64_add_stmt_cost): Call it.
22259 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
22261 * config/aarch64/aarch64-tuning-flags.def (matched_vector_throughput):
22262 New tuning parameter.
22263 * config/aarch64/aarch64.c (neoversev1_tunings): Use it.
22264 (aarch64_estimated_sve_vq): New function.
22265 (aarch64_vector_costs::analyzed_vinfo): New member variable.
22266 (aarch64_vector_costs::is_loop): Likewise.
22267 (aarch64_vector_costs::unrolled_advsimd_niters): Likewise.
22268 (aarch64_vector_costs::unrolled_advsimd_stmts): Likewise.
22269 (aarch64_record_potential_advsimd_unrolling): New function.
22270 (aarch64_analyze_loop_vinfo, aarch64_analyze_bb_vinfo): Likewise.
22271 (aarch64_add_stmt_cost): Call aarch64_analyze_loop_vinfo or
22272 aarch64_analyze_bb_vinfo on the first use of a costs structure.
22273 Detect whether we're vectorizing a loop for SVE that might be
22274 completely unrolled if it used Advanced SIMD instead.
22275 (aarch64_adjust_body_cost_for_latency): New function.
22276 (aarch64_finish_cost): Call it.
22278 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
22280 * config/aarch64/aarch64.c (aarch64_vector_costs): New structure.
22281 (aarch64_init_cost): New function.
22282 (aarch64_add_stmt_cost): Use aarch64_vector_costs instead of
22283 the default unsigned[3].
22284 (aarch64_finish_cost, aarch64_destroy_cost_data): New functions.
22285 (TARGET_VECTORIZE_INIT_COST): Override.
22286 (TARGET_VECTORIZE_FINISH_COST): Likewise.
22287 (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
22289 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
22291 * config/aarch64/aarch64.c (neoversev1_advsimd_vector_cost)
22292 (neoversev1_sve_vector_cost): New cost structures.
22293 (neoversev1_vector_cost): Likewise.
22294 (neoversev1_tunings): Use them. Enable use_new_vector_costs.
22296 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
22298 * config/aarch64/aarch64-protos.h
22299 (sve_vec_cost::scatter_store_elt_cost): New member variable.
22300 * config/aarch64/aarch64.c (generic_sve_vector_cost): Update
22301 accordingly, taking the cost from the cost of a scalar_store.
22302 (a64fx_sve_vector_cost): Likewise.
22303 (aarch64_detect_vector_stmt_subtype): Detect scatter stores.
22305 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
22307 * config/aarch64/aarch64-protos.h
22308 (simd_vec_cost::store_elt_extra_cost): New member variable.
22309 * config/aarch64/aarch64.c (generic_advsimd_vector_cost): Update
22310 accordingly, using the vec_to_scalar cost for the new field.
22311 (generic_sve_vector_cost, a64fx_advsimd_vector_cost): Likewise.
22312 (a64fx_sve_vector_cost, qdf24xx_advsimd_vector_cost): Likewise.
22313 (thunderx_advsimd_vector_cost, tsv110_advsimd_vector_cost): Likewise.
22314 (cortexa57_advsimd_vector_cost, exynosm1_advsimd_vector_cost)
22315 (xgene1_advsimd_vector_cost, thunderx2t99_advsimd_vector_cost)
22316 (thunderx3t110_advsimd_vector_cost): Likewise.
22317 (aarch64_detect_vector_stmt_subtype): Detect single-element stores.
22319 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
22321 * config/aarch64/aarch64-protos.h (simd_vec_cost::ld2_st2_permute_cost)
22322 (simd_vec_cost::ld3_st3_permute_cost): New member variables.
22323 (simd_vec_cost::ld4_st4_permute_cost): Likewise.
22324 * config/aarch64/aarch64.c (generic_advsimd_vector_cost): Update
22325 accordingly, using zero for the new costs.
22326 (generic_sve_vector_cost, a64fx_advsimd_vector_cost): Likewise.
22327 (a64fx_sve_vector_cost, qdf24xx_advsimd_vector_cost): Likewise.
22328 (thunderx_advsimd_vector_cost, tsv110_advsimd_vector_cost): Likewise.
22329 (cortexa57_advsimd_vector_cost, exynosm1_advsimd_vector_cost)
22330 (xgene1_advsimd_vector_cost, thunderx2t99_advsimd_vector_cost)
22331 (thunderx3t110_advsimd_vector_cost): Likewise.
22332 (aarch64_ld234_st234_vectors): New function.
22333 (aarch64_adjust_stmt_cost): Likewise.
22334 (aarch64_add_stmt_cost): Call aarch64_adjust_stmt_cost if using
22335 the new vector costs.
22337 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
22339 * config/aarch64/aarch64-protos.h (sve_vec_cost): Turn into a
22340 derived class of simd_vec_cost. Add information about CLAST[AB]
22341 and FADDA instructions.
22342 * config/aarch64/aarch64.c (generic_sve_vector_cost): Update
22343 accordingly, using the vec_to_scalar costs for the new fields.
22344 (a64fx_sve_vector_cost): Likewise.
22345 (aarch64_reduc_type): New function.
22346 (aarch64_sve_in_loop_reduction_latency): Likewise.
22347 (aarch64_detect_vector_stmt_subtype): Take a vinfo parameter.
22348 Use aarch64_sve_in_loop_reduction_latency to handle SVE reductions
22349 that occur in the loop body.
22350 (aarch64_add_stmt_cost): Update call accordingly.
22352 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
22354 * config/aarch64/aarch64-tuning-flags.def (use_new_vector_costs):
22356 * config/aarch64/aarch64-protos.h (simd_vec_cost): Put comments
22357 above the fields rather than to the right.
22358 (simd_vec_cost::reduc_i8_cost): New member variable.
22359 (simd_vec_cost::reduc_i16_cost): Likewise.
22360 (simd_vec_cost::reduc_i32_cost): Likewise.
22361 (simd_vec_cost::reduc_i64_cost): Likewise.
22362 (simd_vec_cost::reduc_f16_cost): Likewise.
22363 (simd_vec_cost::reduc_f32_cost): Likewise.
22364 (simd_vec_cost::reduc_f64_cost): Likewise.
22365 * config/aarch64/aarch64.c (generic_advsimd_vector_cost): Update
22366 accordingly, using the vec_to_scalar_cost for the new fields.
22367 (generic_sve_vector_cost, a64fx_advsimd_vector_cost): Likewise.
22368 (a64fx_sve_vector_cost, qdf24xx_advsimd_vector_cost): Likewise.
22369 (thunderx_advsimd_vector_cost, tsv110_advsimd_vector_cost): Likewise.
22370 (cortexa57_advsimd_vector_cost, exynosm1_advsimd_vector_cost)
22371 (xgene1_advsimd_vector_cost, thunderx2t99_advsimd_vector_cost)
22372 (thunderx3t110_advsimd_vector_cost): Likewise.
22373 (aarch64_use_new_vector_costs_p): New function.
22374 (aarch64_simd_vec_costs): New function, split out from...
22375 (aarch64_builtin_vectorization_cost): ...here.
22376 (aarch64_is_reduction): New function.
22377 (aarch64_detect_vector_stmt_subtype): Likewise.
22378 (aarch64_add_stmt_cost): Call aarch64_detect_vector_stmt_subtype if
22379 using the new vector costs.
22381 2021-03-26 Iain Buclaw <ibuclaw@gdcproject.org>
22384 * tree-emutls.c (get_emutls_init_templ_addr): Mark initializer of weak
22385 TLS declarations as public.
22387 2021-03-26 Iain Buclaw <ibuclaw@gdcproject.org>
22389 * config/aarch64/aarch64-d.c (IN_TARGET_CODE): Define.
22390 * config/arm/arm-d.c (IN_TARGET_CODE): Likewise.
22391 * config/i386/i386-d.c (IN_TARGET_CODE): Likewise.
22392 * config/mips/mips-d.c (IN_TARGET_CODE): Likewise.
22393 * config/pa/pa-d.c (IN_TARGET_CODE): Likewise.
22394 * config/riscv/riscv-d.c (IN_TARGET_CODE): Likewise.
22395 * config/rs6000/rs6000-d.c (IN_TARGET_CODE): Likewise.
22396 * config/s390/s390-d.c (IN_TARGET_CODE): Likewise.
22397 * config/sparc/sparc-d.c (IN_TARGET_CODE): Likewise.
22399 2021-03-26 Iain Buclaw <ibuclaw@gdcproject.org>
22402 * config.gcc (*-*-cygwin*): Add winnt-d.o
22403 (*-*-mingw*): Likewise.
22404 * config/i386/cygwin.h (EXTRA_TARGET_D_OS_VERSIONS): New macro.
22405 * config/i386/mingw32.h (EXTRA_TARGET_D_OS_VERSIONS): Likewise.
22406 * config/i386/t-cygming: Add winnt-d.o.
22407 * config/i386/winnt-d.c: New file.
22409 2021-03-26 Iain Buclaw <ibuclaw@gdcproject.org>
22411 * config/freebsd-d.c: Include memmodel.h.
22413 2021-03-26 Iain Buclaw <ibuclaw@gdcproject.org>
22416 * config.gcc (*-*-openbsd*): Add openbsd-d.o.
22417 * config/t-openbsd: Add openbsd-d.o.
22418 * config/openbsd-d.c: New file.
22420 2021-03-25 Stam Markianos-Wright <stam.markianos-wright@arm.com>
22422 PR tree-optimization/96974
22423 * tree-vect-stmts.c (vect_get_vector_types_for_stmt): Replace assert
22424 with graceful exit.
22426 2021-03-25 H.J. Lu <hjl.tools@gmail.com>
22429 2021-03-25 H.J. Lu <hjl.tools@gmail.com>
22433 * config/i386/i386.c (ix86_can_inline_p): Don't check ISA for
22434 always_inline in system headers.
22436 2021-03-25 Kewen Lin <linkw@linux.ibm.com>
22438 * tree-vect-loop.c (vect_model_reduction_cost): Init inside_cost.
22440 2021-03-25 Jakub Jelinek <jakub@redhat.com>
22443 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF_SAME_FIELD.
22444 * fold-const.c (operand_compare::operand_equal_p): Don't compare
22445 field offsets if OEP_ADDRESS_OF_SAME_FIELD.
22447 2021-03-25 H.J. Lu <hjl.tools@gmail.com>
22451 * config/i386/i386.c (ix86_can_inline_p): Don't check ISA for
22452 always_inline in system headers.
22454 2021-03-25 Richard Biener <rguenther@suse.de>
22456 PR tree-optimization/99746
22457 * tree-vect-slp-patterns.c (complex_pattern::build): Do not mark
22458 the scalar stmt as patterned. Instead set up required things
22461 2021-03-25 Xionghu Luo <luoxhu@linux.ibm.com>
22463 * config/rs6000/rs6000.c (power8_costs): Change l2 cache
22466 2021-03-24 Martin Liska <mliska@suse.cz>
22469 * common/config/i386/i386-common.c (ARRAY_SIZE): Fix off-by-one
22471 * config/i386/i386-options.c (ix86_option_override_internal):
22472 Add run-time assert.
22474 2021-03-24 Martin Jambor <mjambor@suse.cz>
22477 * ipa-cp.c (initialize_node_lattices): Mark as bottom all
22478 parameters with unknown type.
22479 (ipacp_value_safe_for_type): New function.
22480 (propagate_vals_across_arith_jfunc): Verify that the constant type
22481 can be used for a type of the formal parameter.
22482 (propagate_vals_across_ancestor): Likewise.
22483 (propagate_scalar_across_jump_function): Likewise. Pass the type
22484 also to propagate_vals_across_ancestor.
22486 2021-03-24 Christophe Lyon <christophe.lyon@linaro.org>
22489 * config/arm/mve.md (movmisalign<mode>_mve_store): Use Ux
22491 (movmisalign<mode>_mve_load): Likewise.
22493 2021-03-24 Jakub Jelinek <jakub@redhat.com>
22496 * config/arm/vec-common.md (one_cmpl<mode>2, neg<mode>2,
22497 movmisalign<mode>): Disable expanders for TARGET_REALLY_IWMMXT.
22499 2021-03-24 Alexandre Oliva <oliva@adacore.com>
22501 * doc/sourcebuild.texi (sysconf): New effective target.
22503 2021-03-24 Alexandre Oliva <oliva@adacore.com>
22505 * config/i386/predicates.md (reg_or_const_vec_operand): New.
22506 * config/i386/sse.md (ssse3_pshufbv8qi3): Add an expander for
22507 the now *-prefixed insn_and_split, turn the splitter const vec
22508 into an input for the insn, making it an ignored immediate for
22509 non-split cases, and loaded into the scratch register
22512 2021-03-23 Vladimir N. Makarov <vmakarov@redhat.com>
22515 * config/aarch64/constraints.md (Utq, UOb, UOh, UOw, UOd, UOty):
22516 Use define_relaxed_memory_constraint for them.
22518 2021-03-23 Iain Sandoe <iain@sandoe.co.uk>
22521 * config/host-darwin.c (darwin_gt_pch_use_address): Add a
22522 colon to the diagnostic message.
22524 2021-03-23 Ilya Leoshkevich <iii@linux.ibm.com>
22526 * fwprop.c (fwprop_propagation::fwprop_propagation): Look at
22528 (try_fwprop_subst_note): Use set_info instead of insn_info.
22529 (try_fwprop_subst_pattern): Likewise.
22530 (try_fwprop_subst_notes): Likewise.
22531 (try_fwprop_subst): Likewise.
22532 (forward_propagate_subreg): Likewise.
22533 (forward_propagate_and_simplify): Likewise.
22534 (forward_propagate_into): Likewise.
22535 * rtl-ssa/accesses.h (set_info::single_nondebug_use) New
22537 (set_info::single_nondebug_insn_use): Likewise.
22538 (set_info::single_phi_use): Likewise.
22539 * rtl-ssa/member-fns.inl (set_info::single_nondebug_use) New
22541 (set_info::single_nondebug_insn_use): Likewise.
22542 (set_info::single_phi_use): Likewise.
22544 2021-03-23 Christophe Lyon <christophe.lyon@linaro.org>
22546 * doc/sourcebuild.texi (arm_dsp_ok, arm_dsp): Document.
22548 2021-03-23 Jakub Jelinek <jakub@redhat.com>
22551 * config/aarch64/aarch64.c (aarch64_add_offset): Tell
22552 expand_mult to perform an unsigned rather than a signed
22555 2021-03-23 H.J. Lu <hjl.tools@gmail.com>
22558 * config/i386/cpuid.h (__cpuid): Add __volatile__.
22559 (__cpuid_count): Likewise.
22561 2021-03-23 Richard Biener <rguenther@suse.de>
22563 PR tree-optimization/99721
22564 * tree-vect-slp.c (vect_slp_analyze_node_operations):
22565 Make sure we can schedule the node.
22567 2021-03-23 Marcus Comstedt <marcus@mc.pp.se>
22569 * config/riscv/riscv.c (riscv_subword): Take endianness into
22570 account when calculating the byte offset.
22572 2021-03-23 Marcus Comstedt <marcus@mc.pp.se>
22574 * config/riscv/predicates.md (subreg_lowpart_operator): New predicate
22575 * config/riscv/riscv.md (*addsi3_extended2, *subsi3_extended2)
22576 (*negsi2_extended2, *mulsi3_extended2, *<optab>si3_mask)
22577 (*<optab>si3_mask_1, *<optab>di3_mask, *<optab>di3_mask_1)
22578 (*<optab>si3_extend_mask, *<optab>si3_extend_mask_1): Use
22579 new predicate "subreg_lowpart_operator"
22581 2021-03-23 Marcus Comstedt <marcus@mc.pp.se>
22583 * config/riscv/riscv.c (riscv_swap_instruction): New function
22584 to byteswap an SImode rtx containing an instruction.
22585 (riscv_trampoline_init): Byteswap the generated instructions
22588 2021-03-23 Marcus Comstedt <marcus@mc.pp.se>
22590 * common/config/riscv/riscv-common.c
22591 (TARGET_DEFAULT_TARGET_FLAGS): Set default endianness.
22592 * config.gcc (riscv32be-*, riscv64be-*): Set
22593 TARGET_BIG_ENDIAN_DEFAULT to 1.
22594 * config/riscv/elf.h (LINK_SPEC): Change -melf* value
22595 depending on default endianness.
22596 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
22597 * config/riscv/linux.h (LINK_SPEC): Likewise.
22598 * config/riscv/riscv.c (TARGET_DEFAULT_TARGET_FLAGS): Set
22599 default endianness.
22600 * config/riscv/riscv.h (DEFAULT_ENDIAN_SPEC): New macro.
22602 2021-03-23 Marcus Comstedt <marcus@mc.pp.se>
22604 * config/riscv/elf.h (LINK_SPEC): Pass linker endianness flag.
22605 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
22606 * config/riscv/linux.h (LINK_SPEC): Likewise.
22607 * config/riscv/riscv.h (ASM_SPEC): Pass -mbig-endian and
22609 (BYTES_BIG_ENDIAN): Handle big endian.
22610 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
22611 * config/riscv/riscv.opt (-mbig-endian, -mlittle-endian): New
22613 * doc/invoke.texi (-mbig-endian, -mlittle-endian): Document.
22615 2021-03-23 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
22617 * regcprop.c (find_oldest_value_reg): Ask target whether
22618 different mode is fine for replacement register.
22620 2021-03-23 Aldy Hernandez <aldyh@redhat.com>
22622 PR tree-optimization/99296
22623 * value-range.cc (irange::irange_set_1bit_anti_range): New.
22624 (irange::irange_set_anti_range): Call irange_set_1bit_anti_range
22625 * value-range.h (irange::irange_set_1bit_anti_range): New.
22627 2021-03-22 Vladimir N. Makarov <vmakarov@redhat.com>
22630 * config/aarch64/constraints.md (UtQ): Use
22631 define_relaxed_memory_constraint for it.
22632 * doc/md.texi (define_relaxed_memory_constraint): Describe it.
22633 * genoutput.c (main): Process DEFINE_RELAXED_MEMORY_CONSTRAINT.
22634 * genpreds.c (constraint_data): Add bitfield is_relaxed_memory.
22635 (have_relaxed_memory_constraints): New static var.
22636 (relaxed_memory_start, relaxed_memory_end): Ditto.
22637 (add_constraint): Add arg is_relaxed_memory. Check name for
22638 relaxed memory. Set up is_relaxed_memory in constraint_data and
22639 have_relaxed_memory_constraints. Adjust calls.
22640 (choose_enum_order): Process relaxed memory.
22641 (write_tm_preds_h): Ditto.
22642 (main): Process DEFINE_RELAXED_MEMORY_CONSTRAINT.
22643 * gensupport.c (process_rtx): Process DEFINE_RELAXED_MEMORY_CONSTRAINT.
22644 * ira-costs.c (record_reg_classes): Process CT_RELAXED_MEMORY.
22645 * ira-lives.c (single_reg_class): Use
22646 insn_extra_relaxed_memory_constraint.
22647 * ira.c (ira_setup_alts): CT_RELAXED_MEMORY.
22648 * lra-constraints.c (valid_address_p): Use
22649 insn_extra_relaxed_memory_constraint instead of other memory
22651 (process_alt_operands): Process CT_RELAXED_MEMORY.
22652 (curr_insn_transform): Use insn_extra_relaxed_memory_constraint.
22653 * recog.c (asm_operand_ok, preprocess_constraints): Process
22655 * reload.c (find_reloads): Ditto.
22656 * rtl.def (DEFINE_RELAXED_MEMORY_CONSTRAINT): New.
22657 * stmt.c (parse_input_constraint): Use
22658 insn_extra_relaxed_memory_constraint.
22660 2021-03-22 Segher Boessenkool <segher@kernel.crashing.org>
22663 * ubsan.c (ubsan_instrument_float_cast): Don't test for unordered if
22666 2021-03-22 Alex Coplan <alex.coplan@arm.com>
22669 * config/arm/arm-protos.h (neon_make_constant): Add generate
22670 argument to guard emitting insns, default to true.
22671 * config/arm/arm.c (arm_legitimate_constant_p_1): Reject
22672 CONST_VECTORs which neon_make_constant can't handle.
22673 (neon_vdup_constant): Add generate argument, avoid emitting
22674 insns if it's not set.
22675 (neon_make_constant): Plumb new generate argument through.
22676 * config/arm/constraints.md (Ui): New. Use it...
22677 * config/arm/mve.md (*mve_mov<mode>): ... here.
22678 * config/arm/vec-common.md (movv8hf): Use neon_make_constant to
22679 synthesize constants.
22681 2021-03-22 Richard Biener <rguenther@suse.de>
22683 * debug.h: Add deprecation warning.
22685 2021-03-22 Richard Biener <rguenther@suse.de>
22687 PR tree-optimization/99694
22688 * tree-ssa-sccvn.c (visit_phi): Ignore edges with the
22691 2021-03-22 Kito Cheng <kito.cheng@sifive.com>
22694 * config/riscv/riscv.c (riscv_expand_block_move): Get RTL value
22695 after type checking.
22697 2021-03-22 Jakub Jelinek <jakub@redhat.com>
22701 * dwarf2out.c (get_full_len): Use get_precision rather than
22703 (add_const_value_attribute): Make sure add_AT_wide argument has
22704 precision prec rather than some very wide one.
22706 2021-03-22 Kewen Lin <linkw@linux.ibm.com>
22708 * config/rs6000/rs6000.md (*rotldi3_insert_sf,
22709 *mov<SFDF:mode><SFDF2:mode>cc_p9, floatsi<mode>2_lfiwax,
22710 floatsi<mode>2_lfiwax_mem, floatunssi<mode>2_lfiwzx,
22711 floatunssi<mode>2_lfiwzx_mem, *floatsidf2_internal,
22712 *floatunssidf2_internal, fix_trunc<mode>si2_stfiwx,
22713 fix_trunc<mode>si2_internal, fixuns_trunc<mode>si2_stfiwx,
22714 *round32<mode>2_fprs, *roundu32<mode>2_fprs,
22715 *fix_trunc<mode>si2_internal): Fix empty split condition.
22716 * config/rs6000/vsx.md (*vsx_le_undo_permute_<mode>,
22717 vsx_reduc_<VEC_reduc_name>_v2df, vsx_reduc_<VEC_reduc_name>_v4sf,
22718 *vsx_reduc_<VEC_reduc_name>_v2df_scalar,
22719 *vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Likewise.
22721 2021-03-22 Xionghu Luo <luoxhu@linux.ibm.com>
22724 * config/rs6000/rs6000.c (rs6000_expand_vector_set_var_p9):
22725 Convert idx to DImode.
22726 (rs6000_expand_vector_set_var_p8): Likewise.
22728 2021-03-21 Jakub Jelinek <jakub@redhat.com>
22731 * dwarf2out.c (insert_float): Change return type from void to
22732 unsigned, handle GET_MODE_SIZE (mode) == 2 and return element size.
22733 (mem_loc_descriptor, loc_descriptor, add_const_value_attribute):
22736 2021-03-20 H.J. Lu <hjl.tools@gmail.com>
22739 * config/i386/i386.c (construct_container): Check cfun != NULL
22740 before accessing silent_p.
22742 2021-03-20 Ahamed Husni <ahamedhusni73@gmail.com>
22744 * asan.c: Fix typos in comments.
22746 2021-03-20 Vladimir N. Makarov <vmakarov@redhat.com>
22748 PR rtl-optimization/99680
22749 * lra-constraints.c (skip_contraint_modifiers): Rename to skip_constraint_modifiers.
22750 (process_address_1): Check empty constraint before using
22753 2021-03-19 Pat Haugen <pthaugen@linux.ibm.com>
22755 * config/rs6000/rs6000.c (power10_cost): New.
22756 (rs6000_option_override_internal): Set Power10 costs.
22757 (rs6000_issue_rate): Set Power10 issue rate.
22758 * config/rs6000/power10.md: Rewrite for Power10.
22760 2021-03-19 Vladimir N. Makarov <vmakarov@redhat.com>
22763 * lra-constraints.c (process_address_1): Don't use unknown
22764 constraint for address constraint.
22766 2021-03-19 Iain Sandoe <iain@sandoe.co.uk>
22769 * config.gcc (powerpc-*-darwin8): Delete the reference to
22770 the now removed darwin8.h.
22772 2021-03-19 Olivier Hainque <hainque@adacore.com>
22775 * config/vxworksae.h (VX_CPU_PREFIX): Define.
22777 2021-03-19 John David Anglin <danglin@gcc.gnu.org>
22779 * config/pa/pa.c (import_milli): Use memcpy instead of strncpy.
22781 2021-03-19 Tamar Christina <tamar.christina@arm.com>
22783 PR tree-optimization/99656
22784 * tree-vect-slp-patterns.c (linear_loads_p,
22785 complex_add_pattern::matches, is_eq_or_top,
22786 vect_validate_multiplication, complex_mul_pattern::matches,
22787 complex_fms_pattern::matches): Remove complex_perm_kinds_t.
22788 * tree-vectorizer.h: (complex_load_perm_t): Removed.
22789 (slp_tree_to_load_perm_map_t): Use complex_perm_kinds_t instead of
22790 complex_load_perm_t.
22792 2021-03-19 H.J. Lu <hjl.tools@gmail.com>
22795 * config/i386/i386-options.c (ix86_init_machine_status): Set
22797 * config/i386/i386.c (init_cumulative_args): Set silent_p to
22799 (construct_container): Return early for return and argument
22800 errors if silent_p is true.
22801 * config/i386/i386.h (machine_function): Add silent_p.
22803 2021-03-19 Jakub Jelinek <jakub@redhat.com>
22806 * config/arm/constraints.md (Ds): New constraint.
22807 * config/arm/vec-common.md (mve_vshlq_<supf><mode>): Use w,Ds
22808 constraint instead of w,Dm.
22810 2021-03-19 Andrew Stubbs <ams@codesourcery.com>
22812 * config/gcn/gcn.c (gcn_parse_amdgpu_hsa_kernel_attribute): Fix quotes
22815 2021-03-19 Eric Botcazou <ebotcazou@adacore.com>
22817 PR middle-end/99641
22818 * fold-const.c (native_encode_initializer) <CONSTRUCTOR>: For an
22819 array type, do the computation of the current position in sizetype.
22821 2021-03-18 Vladimir N. Makarov <vmakarov@redhat.com>
22824 * lra-constraints.c (process_address_1): Use lookup_constraint
22825 only for a single constraint.
22827 2021-03-18 Martin Sebor <msebor@redhat.com>
22829 PR middle-end/99502
22830 * gimple-array-bounds.cc (inbounds_vbase_memaccess_p): Rename...
22831 (inbounds_memaccess_p): ...to this. Check the ending offset of
22832 the accessed member.
22834 2021-03-18 Andrew Stubbs <ams@codesourcery.com>
22836 * config/gcn/gcn.c (gcn_parse_amdgpu_hsa_kernel_attribute): Add %< and
22837 %> quote markers to error messages.
22838 (gcn_goacc_validate_dims): Likewise.
22839 (gcn_conditional_register_usage): Remove exclaimation mark from error
22841 (gcn_vectorize_vec_perm_const): Ensure perm is fully uninitialized.
22843 2021-03-18 Jan Hubicka <hubicka@ucw.cz>
22845 * config/i386/x86-tune-costs.h (struct processor_costs): Fix costs of
22848 2021-03-18 Sinan Lin <sinan@isrc.iscas.ac.cn>
22849 Kito Cheng <kito.cheng@sifive.com>
22851 * config/riscv/riscv.c (riscv_block_move_straight): Change type
22852 to unsigned HOST_WIDE_INT for parameter and local variable with
22853 HOST_WIDE_INT type.
22854 (riscv_adjust_block_mem): Ditto.
22855 (riscv_block_move_loop): Ditto.
22856 (riscv_expand_block_move): Ditto.
22858 2021-03-18 Nick Clifton <nickc@redhat.com>
22860 * config/v850/v850.c (construct_restore_jr): Increase static
22862 (construct_save_jarl): Likewise.
22863 * config/v850/v850.h (DWARF2_DEBUGGING_INFO): Define.
22865 2021-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22867 * config/aarch64/aarch64.c (aarch64_adjust_generic_arch_tuning): Define.
22868 (aarch64_override_options_internal): Use it.
22869 (generic_tunings): Add AARCH64_EXTRA_TUNE_CSE_SVE_VL_CONSTANTS to
22872 2021-03-17 Sandra Loosemore <sandra@codesourcery.com>
22874 * config/nios2/nios2.c (nios2_custom_check_insns): Clean up
22875 error message format issues.
22876 (nios2_option_override): Likewise.
22877 (nios2_expand_fpu_builtin): Likewise.
22878 (nios2_init_custom_builtins): Adjust to avoid bogus strncpy
22879 truncation warning.
22880 (nios2_expand_custom_builtin): More error message format fixes.
22881 (nios2_expand_rdwrctl_builtin): Likewise.
22882 (nios2_expand_rdprs_builtin): Likewise.
22883 (nios2_expand_eni_builtin): Likewise.
22884 (nios2_expand_builtin): Likewise.
22885 (nios2_register_custom_code): Likewise.
22886 (nios2_valid_target_attribute_rec): Likewise.
22887 (nios2_add_insn_asm): Fix uninitialized variable warning.
22889 2021-03-17 Jan Hubicka <jh@suse.cz>
22891 * config/i386/x86-tune-costs.h (struct processor_costs): Update costs
22892 of gather to match reality.
22893 * config/i386/x86-tune.def (X86_TUNE_USE_GATHER): Enable for znver3.
22895 2021-03-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22897 * config/aarch64/aarch64-builtins.c (aarch64_expand_rng_builtin): Use EQ
22898 to compare against CC_REG rather than NE.
22900 2021-03-17 H.J. Lu <hjl.tools@gmail.com>
22903 * config/i386/i386.c (ix86_force_load_from_GOT_p): Support
22904 inline assembly statements.
22905 (ix86_print_operand): Update 'P' handling for -fno-plt.
22907 2021-03-17 Tamar Christina <tamar.christina@arm.com>
22910 * config/aarch64/aarch64.c
22911 (aarch64_simd_clone_compute_vecsize_and_simdlen): Remove unused var.
22913 2021-03-16 Segher Boessenkool <segher@kernel.crashing.org>
22916 * config/rs6000/predicates.md (branch_comparison_operator): Allow
22917 ordered and unordered for CCFPmode, if flag_finite_math_only.
22919 2021-03-16 Jakub Jelinek <jakub@redhat.com>
22922 * config/i386/i386-expand.c (ix86_split_lea_for_addr): Emit a MULT
22923 rather than ASHIFT.
22924 * config/i386/i386.md (mult by 1248 into ashift): New splitter.
22926 2021-03-16 Martin Liska <mliska@suse.cz>
22929 * optc-save-gen.awk: Add flag_ipa_ra to exceptions for
22930 cl_optimization_compare function.
22932 2021-03-16 Ilya Leoshkevich <iii@linux.ibm.com>
22934 * config/s390/s390.c (f_constraint_p): Treat "fv" constraints
22937 2021-03-16 Jakub Jelinek <jakub@redhat.com>
22940 * config/i386/i386.h (struct machine_function): Add
22941 has_explicit_vzeroupper bitfield.
22942 * config/i386/i386-expand.c (ix86_expand_builtin): Set
22943 cfun->machine->has_explicit_vzeroupper when expanding
22944 IX86_BUILTIN_VZEROUPPER.
22945 * config/i386/i386-features.c (rest_of_handle_insert_vzeroupper):
22946 Do the mode switching only when TARGET_VZEROUPPER, expensive
22947 optimizations turned on and not optimizing for size.
22948 (pass_insert_vzeroupper::gate): Enable even when
22949 cfun->machine->has_explicit_vzeroupper is set.
22951 2021-03-16 Jakub Jelinek <jakub@redhat.com>
22954 * config/aarch64/aarch64.c
22955 (aarch64_simd_clone_compute_vecsize_and_simdlen): If not a function
22956 definition, walk TYPE_ARG_TYPES list if non-NULL for argument types
22957 instead of DECL_ARGUMENTS. Ignore types for uniform arguments.
22959 2021-03-15 Richard Biener <rguenther@suse.de>
22961 PR tree-optimization/98834
22962 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle missing
22963 subsetting by truncating the access size.
22965 2021-03-15 Jan Hubicka <hubicka@ucw.cz>
22967 * config/i386/i386-options.c (processor_cost_table): Add znver3_cost.
22968 * config/i386/x86-tune-costs.h (znver3_cost): New gobal variable; copy
22971 2021-03-15 Martin Liska <mliska@suse.cz>
22973 * spellcheck.c: Add missing comma in initialization.
22975 2021-03-14 Uroš Bizjak <ubizjak@gmail.com>
22977 * config/i386/sse.md (*vec_extract<mode>): Merge alternative 0 with
22978 alternative 2 and alternative 1 with alternative 3 using
22979 YW register constraint.
22980 (*vec_extract<PEXTR_MODE12:mode>_zext): Merge alternatives
22981 using YW register constraint.
22982 (*vec_extractv16qi_zext): Ditto.
22983 (*vec_extractv4si): Merge alternatives 4 and 5
22984 using Yw register constraint.
22985 (*ssse3_palignr<mode>_perm): Use Yw instead of v for alternative 3.
22987 2021-03-13 Martin Sebor <msebor@redhat.com>
22989 PR tree-optimization/99489
22990 * builtins.c (gimple_call_alloc_size): Fail gracefully when argument
22991 is not a call statement.
22993 2021-03-13 Jakub Jelinek <jakub@redhat.com>
22995 PR tree-optimization/99544
22996 * match.pd (X + (X << C) -> X * (1 + (1 << C))): Don't simplify
22997 if for vector types multiplication can't be done in type's mode.
22999 2021-03-12 Eric Botcazou <ebotcazou@adacore.com>
23002 * config/sparc/constraints.md (w): Rename to...
23003 (W): ... this and ditch previous implementation.
23004 * config/sparc/sparc.md (*movdi_insn_sp64): Replace W with m.
23005 (*movdf_insn_sp64): Likewise.
23006 (*mov<VM64:mode>_insn_sp64): Likewise.
23007 * config/sparc/sync.md (*atomic_compare_and_swap<mode>_1): Replace
23009 (atomic_compare_and_swap_leon3_1): Likewise.
23010 (*atomic_compare_and_swapdi_v8plus): Likewise.
23011 * config/sparc/sparc.c (memory_ok_for_ldd): Remove useless test on
23012 architecture and add missing address validity check during LRA.
23014 2021-03-12 Tobias Burnus <tobias@codesourcery.com>
23017 * gimplify.c (omp_add_variable): Handle NULL_TREE as size
23018 occuring for assumed-size arrays in use_device_{ptr,addr}.
23020 2021-03-12 Jakub Jelinek <jakub@redhat.com>
23023 * config/i386/constraints.md (YW): New internal constraint.
23024 * config/i386/sse.md (v_Yw): Add V4TI, V2TI, V1TI and TI cases.
23025 (*<sse2_avx2>_<insn><mode>3<mask_name>,
23026 *<sse2_avx2>_uavg<mode>3<mask_name>, *abs<mode>2,
23027 *<s>mul<mode>3_highpart<mask_name>): Use <v_Yw> instead of v in
23029 (<sse2_avx2>_psadbw): Use YW instead of v in constraints.
23030 (*avx2_pmaddwd, *sse2_pmaddwd, *<code>v8hi3, *<code>v16qi3,
23031 avx2_pmaddubsw256, ssse3_pmaddubsw128): Merge last two alternatives
23032 into one, use Yw instead of former x,v.
23033 (ashr<mode>3, <insn><mode>3): Use <v_Yw> instead of x in constraints of
23034 the last alternative.
23035 (<sse2_avx2>_packsswb<mask_name>, <sse2_avx2>_packssdw<mask_name>,
23036 <sse2_avx2>_packuswb<mask_name>, <sse4_1_avx2>_packusdw<mask_name>,
23037 *<ssse3_avx2>_pmulhrsw<mode>3<mask_name>, <ssse3_avx2>_palignr<mode>,
23038 <ssse3_avx2>_pshufb<mode>3<mask_name>): Merge last two alternatives
23039 into one, use <v_Yw> instead of former x,v.
23040 (avx2_interleave_highv32qi<mask_name>,
23041 vec_interleave_highv16qi<mask_name>): Use Yw instead of v in
23042 constraints. Add && <mask_avx512bw_condition> to condition.
23043 (avx2_interleave_lowv32qi<mask_name>,
23044 vec_interleave_lowv16qi<mask_name>,
23045 avx2_interleave_highv16hi<mask_name>,
23046 vec_interleave_highv8hi<mask_name>,
23047 avx2_interleave_lowv16hi<mask_name>, vec_interleave_lowv8hi<mask_name>,
23048 avx2_pshuflw_1<mask_name>, sse2_pshuflw_1<mask_name>,
23049 avx2_pshufhw_1<mask_name>, sse2_pshufhw_1<mask_name>,
23050 avx2_<code>v16qiv16hi2<mask_name>, sse4_1_<code>v8qiv8hi2<mask_name>,
23051 *sse4_1_<code>v8qiv8hi2<mask_name>_1, <sse2_avx2>_<insn><mode>3): Use
23052 Yw instead of v in constraints.
23053 * config/i386/mmx.md (Yv_Yw): New define_mode_attr.
23054 (*mmx_<insn><mode>3, mmx_ashr<mode>3, mmx_<insn><mode>3): Use <Yv_Yw>
23055 instead of Yv in constraints.
23056 (*mmx_<insn><mode>3, *mmx_mulv4hi3, *mmx_smulv4hi3_highpart,
23057 *mmx_umulv4hi3_highpart, *mmx_pmaddwd, *mmx_<code>v4hi3,
23058 *mmx_<code>v8qi3, mmx_pack<s_trunsuffix>swb, mmx_packssdw,
23059 mmx_punpckhbw, mmx_punpcklbw, mmx_punpckhwd, mmx_punpcklwd,
23060 *mmx_uavgv8qi3, *mmx_uavgv4hi3, mmx_psadbw): Use Yw instead of Yv in
23062 (*mmx_pinsrw, *mmx_pinsrb, *mmx_pextrw, *mmx_pextrw_zext, *mmx_pextrb,
23063 *mmx_pextrb_zext): Use YW instead of Yv in constraints.
23064 (*mmx_eq<mode>3, mmx_gt<mode>3): Use x instead of Yv in constraints.
23065 (mmx_andnot<mode>3, *mmx_<code><mode>3): Split last alternative into
23066 two, one with just x, another isa avx512vl with v.
23068 2021-03-12 Martin Liska <mliska@suse.cz>
23070 * doc/invoke.texi: Add missing param documentation.
23072 2021-03-11 David Malcolm <dmalcolm@redhat.com>
23075 * Makefile.in (ANALYZER_OBJS): Add analyzer/feasible-graph.o and
23076 analyzer/trimmed-graph.o.
23077 * doc/analyzer.texi (Analyzer Paths): Rewrite description of
23078 feasibility checking to reflect new implementation.
23079 * doc/invoke.texi (-fdump-analyzer-feasibility): Document new
23081 * shortest-paths.h (shortest_paths::get_shortest_distance): New.
23083 2021-03-11 David Malcolm <dmalcolm@redhat.com>
23085 * digraph.cc (selftest::test_shortest_paths): Update
23086 shortest_paths init for new param. Add test of
23087 SPS_TO_GIVEN_TARGET.
23088 * shortest-paths.h (enum shortest_path_sense): New.
23089 (shortest_paths::shortest_paths): Add "sense" param.
23090 Update for renamings. Generalize to use "sense" param.
23091 (shortest_paths::get_shortest_path): Rename param.
23092 (shortest_paths::m_sense): New field.
23093 (shortest_paths::m_prev): Rename...
23094 (shortest_paths::m_best_edge): ...to this.
23095 (shortest_paths::get_shortest_path): Update for renamings.
23096 Conditionalize flipping of path on sense of traversal.
23098 2021-03-11 David Malcolm <dmalcolm@redhat.com>
23100 * digraph.cc (selftest::test_shortest_paths): Add test coverage
23101 for paths from B and C.
23102 * shortest-paths.h (shortest_paths::shortest_paths): Handle
23103 unreachable nodes, rather than asserting.
23105 2021-03-11 David Edelsohn <dje.gcc@gmail.com>
23108 * config/rs6000/rs6000.c (rs6000_xcoff_file_start): Don't create
23109 xcoff_tbss_section_name.
23110 * config/rs6000/xcoff.h (ASM_OUTPUT_TLS_COMMON): Use .lcomm.
23111 * xcoffout.c (xcoff_tbss_section_name): Delete.
23112 * xcoffout.h (xcoff_tbss_section_name): Delete.
23114 2021-03-11 Richard Biener <rguenther@suse.de>
23116 PR tree-optimization/99523
23117 * tree-cfg.c (dump_function_to_file): Dump SSA names
23118 w/o identifier to the decls section as well, not only those
23119 without a VAR_DECL.
23121 2021-03-11 Jakub Jelinek <jakub@redhat.com>
23124 * ipa-icf-gimple.c (func_checker::compare_gimple_call): For internal
23125 function calls with lhs fail if the lhs don't have compatible types.
23127 2021-03-11 Hans-Peter Nilsson <hp@axis.com>
23129 * config/cris/cris.h (HARD_FRAME_POINTER_REGNUM): Define.
23130 Change FRAME_POINTER_REGNUM to correspond to a new faked
23131 register faked_fp, part of GENNONACR_REGS like faked_ap.
23132 (CRIS_FAKED_REGS_CONTENTS): New helper macro.
23133 (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS, CALL_USED_REGISTERS):
23134 (REG_ALLOC_ORDER, REG_CLASS_CONTENTS, REGNO_OK_FOR_BASE_P)
23135 (ELIMINABLE_REGS, REGISTER_NAMES): Adjust accordingly.
23136 * config/cris/cris.md (CRIS_FP_REGNUM): Renumber to new faked
23138 (CRIS_REAL_FP_REGNUM): New constant.
23139 * config/cris/cris.c (cris_reg_saved_in_regsave_area): Check
23140 for HARD_FRAME_POINTER_REGNUM instead of FRAME_POINTER_REGNUM.
23141 (cris_initial_elimination_offset): Handle elimination changes
23142 to HARD_FRAME_POINTER_REGNUM instead of FRAME_POINTER_REGNUM
23143 and add one from FRAME_POINTER_REGNUM to
23144 HARD_FRAME_POINTER_REGNUM.
23145 (cris_expand_prologue, cris_expand_epilogue): Emit code for
23146 hard_frame_pointer_rtx instead of frame_pointer_rtx.
23148 2021-03-10 David Edelsohn <dje.gcc@gmail.com>
23151 * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Add check for DCmode.
23152 * config/rs6000/rs6000.c (rs6000_special_round_type_align): Same.
23154 2021-03-10 Vladimir N. Makarov <vmakarov@redhat.com>
23157 * lra-constraints.c (process_address_1): Don't check unknown
23158 constraint, use X for empty constraint.
23160 2021-03-10 Alex Coplan <alex.coplan@arm.com>
23162 * config/aarch64/aarch64.c (aarch64_vfp_is_call_or_return_candidate):
23163 Fix typo in comment describing "is_ha" argument.
23165 2021-03-10 John David Anglin <danglin@gcc.gnu.org>
23167 * doc/sourcebuild.texi: Document LRA target selector.
23169 2021-03-10 David Malcolm <dmalcolm@redhat.com>
23171 * doc/ux.texi: Add subsection contrasting interactive versus
23172 batch usage of GCC.
23174 2021-03-10 Joel Hutton <joel.hutton@arm.com>
23177 * tree-vect-stmts.c (vectorizable_store): Fix scatter store mask
23179 (vectorizable_load): Fix gather load mask check condition.
23181 2021-03-10 Richard Biener <rguenther@suse.de>
23183 PR tree-optimization/99510
23184 * tree.c (check_aligned_type): Check that the candidate
23185 has TYPE_USER_ALIGN set instead of matching with the
23188 2021-03-10 Eric Botcazou <ebotcazou@adacore.com>
23190 * config/sparc/sparc.c (sparc_regmode_natural_size): Return 4 for
23191 float and vector integer modes only if the mode is not larger.
23193 2021-03-10 Hans-Peter Nilsson <hp@axis.com>
23195 * config/cris/cris.h (DWARF_FRAME_REGISTERS): Define.
23197 2021-03-09 Vladimir N. Makarov <vmakarov@redhat.com>
23199 * ira.c (ira_setup_alts, ira_get_dup_out_num): Process digital
23201 * ira-lives.c (single_reg_class): Ditto.
23203 2021-03-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
23205 * config.gcc (aarch64-*-rtems*): Include general rtems.h after
23206 the architecture-specific rtems.h.
23207 (aarch64-*-rtems*): Likewise.
23208 (arm*-*-rtems*): Likewise.
23209 (epiphany-*-rtems*): Likewise.
23210 (riscv*-*-rtems*): Likewise.
23212 2021-03-09 Jakub Jelinek <jakub@redhat.com>
23214 PR tree-optimization/99305
23215 * tree-ssa-phiopt.c (conditional_replacement): Test integer_pow2p
23216 before integer_all_onesp instead of vice versa.
23218 2021-03-09 Richard Earnshaw <rearnsha@arm.com>
23220 * common/config/arm/arm-common.c (arm_config_default): Change type
23221 of 'i' to unsigned.
23223 2021-03-09 Vladimir N. Makarov <vmakarov@redhat.com>
23226 * lra-constraints.c (process_address_1): Process constraint 'g'
23227 separately and digital constraints containing more one digit.
23229 2021-03-09 Nick Clifton <nickc@redhat.com>
23231 * config/rx/rx.h (DBX_DEBUGGING_INFO): Define.
23232 (DWARF"_DEBUGGING_INFO): Define.
23234 2021-03-09 Eric Botcazou <ebotcazou@adacore.com>
23237 * calls.c (initialize_argument_information): When the argument
23238 is passed by reference, do not make a copy in a thunk only if
23239 the argument is already in memory. Remove redundant test for
23240 the case of callee copy.
23242 2021-03-09 Vladimir N. Makarov <vmakarov@redhat.com>
23245 * lra-constraints.c (process_address_1): Process 0..9 constraints
23246 in process_address_1.
23248 2021-03-09 Andreas Krebbel <krebbel@linux.ibm.com>
23250 * config/s390/s390.c (struct s390_processor processor_table):
23251 Binutils name string must not be empty.
23253 2021-03-09 Claudiu Zissulescu <claziss@synopsys.com>
23255 * config/arc/arc.c (arc_attr_type): Remove function.
23257 2021-03-09 Martin Liska <mliska@suse.cz>
23260 * config/i386/i386-options.c (ix86_option_override_internal):
23261 Set isa_flags for OPTS argument and not for the global
23264 2021-03-09 Aaron Sawdey <acsawdey@linux.ibm.com>
23266 * config/rs6000/predicates.md (ds_form_mem_operand): Check
23269 2021-03-09 Aaron Sawdey <acsawdey@linux.ibm.com>
23272 * config/rs6000/predicates.md (ds_form_mem_operand) New
23274 * config/rs6000/genfusion.pl (gen_ld_cmpi_p10) Use
23275 ds_form_mem_operand in ld/lwa patterns.
23276 * config/rs6000/fusion.md: Regenerate file.
23278 2021-03-08 Martin Sebor <msebor@redhat.com>
23280 PR middle-end/98266
23281 * gimple-array-bounds.cc (inbounds_vbase_memaccess_p): New function.
23282 (array_bounds_checker::check_array_bounds): Call it.
23284 2021-03-08 Martin Sebor <msebor@redhat.com>
23286 PR middle-end/97631
23287 * tree-ssa-strlen.c (maybe_warn_overflow): Test rawmem.
23288 (handle_builtin_stxncpy_strncat): Rename locals. Determine
23289 destination size from allocation calls. Issue a more appropriate
23291 (handle_builtin_memcpy): Pass true as rawmem to maybe_warn_overflow.
23292 (handle_builtin_memset): Same.
23294 2021-03-08 Peter Bergner <bergner@linux.ibm.com>
23297 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_permute): Add an assert
23298 to ensure we do not have an Altivec style address.
23299 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>): Disable if passed
23300 an Altivec style address.
23301 (*vsx_le_perm_store_<mode>): Likewise.
23302 (splitters after *vsx_le_perm_store_<mode>): Likewise.
23303 (vsx_load_<mode>): Disable special expander if passed an Altivec
23305 (vsx_store_<mode>): Likewise.
23307 2021-03-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23310 * config/aarch64/predicates.md (aarch64_simd_shift_imm_vec_qi): Define.
23311 (aarch64_simd_shift_imm_vec_hi): Likewise.
23312 (aarch64_simd_shift_imm_vec_si): Likewise.
23313 (aarch64_simd_shift_imm_vec_di): Likewise.
23314 * config/aarch64/aarch64-simd.md (aarch64_shrn<mode>_insn_le): Use
23315 predicate from above.
23316 (aarch64_shrn<mode>_insn_be): Likewise.
23317 (aarch64_rshrn<mode>_insn_le): Likewise.
23318 (aarch64_rshrn<mode>_insn_be): Likewise.
23319 (aarch64_shrn2<mode>_insn_le): Likewise.
23320 (aarch64_shrn2<mode>_insn_be): Likewise.
23321 (aarch64_rshrn2<mode>_insn_le): Likewise.
23322 (aarch64_rshrn2<mode>_insn_be): Likewise.
23324 2021-03-08 Vladimir N. Makarov <vmakarov@redhat.com>
23327 * lra-constraints.c (skip_contraint_modifiers): New function.
23328 (process_address_1): Use it before lookup_constraint call.
23330 2021-03-08 Martin Liska <mliska@suse.cz>
23333 * config/i386/i386-options.c (ix86_option_override_internal):
23334 Enable UINTR and HRESET for -march that supports it.
23336 2021-03-08 Ilya Leoshkevich <iii@linux.ibm.com>
23338 * config/s390/s390.c (f_constraint_p): New function.
23339 (s390_md_asm_adjust): Implement TARGET_MD_ASM_ADJUST.
23340 (TARGET_MD_ASM_ADJUST): Likewise.
23342 2021-03-08 Tobias Burnus <tobias@codesourcery.com>
23345 * tree-nested.c (convert_local_reference_stmt): Avoid calling
23346 lookup_field_for_decl for Fortran module (= namespace context).
23348 2021-03-08 Andreas Krebbel <krebbel@linux.ibm.com>
23350 * config/s390/s390.c (s390_expand_vec_compare): Implement <0
23351 comparison with arithmetic right shift.
23352 (s390_expand_vcond): No need for a force_reg anymore.
23353 s390_vec_compare will do it.
23354 * config/s390/vector.md ("vec_cmp<mode><tointvec>"): Accept also
23355 immediate operands.
23357 2021-03-07 Jakub Jelinek <jakub@redhat.com>
23360 * config/i386/constraints.md (Yw): Use SSE_REGS if TARGET_SSE
23361 but TARGET_AVX512BW or TARGET_AVX512VL is not set. Adjust description
23363 * config/i386/sse.md (v_Yw): New define_mode_attr.
23364 (*<insn><mode>3, *mul<mode>3<mask_name>, *avx2_<code><mode>3,
23365 *sse4_1_<code><mode>3<mask_name>): Use <v_Yw> instead of v
23367 * config/i386/mmx.md (mmx_pshufw_1, *vec_dupv4hi): Use Yw instead of
23368 xYw in constraints.
23370 2021-03-06 Julian Brown <julian@codesourcery.com>
23372 * tree-pretty-print.c (dump_generic_node): Emit non-generic
23373 address space info for aggregates.
23375 2021-03-06 Hans-Peter Nilsson <hp@axis.com>
23377 * config/cris/cris.h (MAX_FIXED_MODE_SIZE): Don't define.
23379 2021-03-05 Jakub Jelinek <jakub@redhat.com>
23381 PR middle-end/99322
23382 * tree-cfg.c (bb_to_omp_idx): New variable.
23383 (execute_build_cfg): Release the bb_to_omp_idx vector after
23384 cleanup_tree_cfg returns.
23385 (handle_abnormal_edges): Remove bb_to_omp_idx argument, adjust
23386 for bb_to_omp_idx being a vec<int> instead of pointer to array
23388 (make_edges): Remove bb_to_omp_idx local variable, don't pass
23389 it to handle_abnormal_edges, adjust for bb_to_omp_idx being a
23390 vec<int> instead of pointer to array of ints and don't free/release
23392 (remove_bb): When removing a bb and placing forced label somewhere
23393 else, ensure it is put into the same OpenMP region during cfg
23394 pass if possible or to entry successor as fallback. Unregister
23395 bb from bb_to_omp_idx.
23397 2021-03-05 Vladimir N. Makarov <vmakarov@redhat.com>
23400 * lra-constraints.c (process_address_1): Skip decomposing address
23401 for asm insn operand with unknown constraint.
23403 2021-03-05 Martin Jambor <mjambor@suse.cz>
23406 * cgraph.c (cgraph_edge::set_call_stmt): Do not update all
23407 corresponding speculative edges if we are about to resolve
23408 sepculation. Make edge direct (and so resolve speculations) before
23409 removing it from call_site_hash.
23410 (cgraph_edge::make_direct): Relax the initial assert to allow calling
23411 the function on speculative direct edges.
23413 2021-03-05 Eric Botcazou <ebotcazou@adacore.com>
23415 PR rtl-optimization/99376
23416 * rtlanal.c (nonzero_bits1) <arithmetic operators>: If the number
23417 of low-order zero bits is too large, set the result to 0 directly.
23419 2021-03-04 Jakub Jelinek <jakub@redhat.com>
23421 PR middle-end/93235
23422 * expmed.c (store_bit_field_using_insv): Return false of xop0 is a
23423 SUBREG and a SUBREG to op_mode can't be created.
23425 2021-03-04 Alex Coplan <alex.coplan@arm.com>
23428 * config/aarch64/aarch64-sve-builtins.cc
23429 (function_resolver::require_vector_type): Handle error_mark_node.
23431 2021-03-04 Ilya Leoshkevich <iii@linux.ibm.com>
23433 * cfgexpand.c (expand_asm_loc): Pass new parameter.
23434 (expand_asm_stmt): Likewise.
23435 * config/arm/aarch-common-protos.h (arm_md_asm_adjust): Add new
23437 * config/arm/aarch-common.c (arm_md_asm_adjust): Likewise.
23438 * config/arm/arm.c (thumb1_md_asm_adjust): Likewise.
23439 * config/cris/cris.c (cris_md_asm_adjust): Likewise.
23440 * config/i386/i386.c (ix86_md_asm_adjust): Likewise.
23441 * config/mn10300/mn10300.c (mn10300_md_asm_adjust): Likewise.
23442 * config/nds32/nds32.c (nds32_md_asm_adjust): Likewise.
23443 * config/pdp11/pdp11.c (pdp11_md_asm_adjust): Likewise.
23444 * config/rs6000/rs6000.c (rs6000_md_asm_adjust): Likewise.
23445 * config/vax/vax.c (vax_md_asm_adjust): Likewise.
23446 * config/visium/visium.c (visium_md_asm_adjust): Likewise.
23447 * doc/tm.texi (md_asm_adjust): Likewise.
23448 * target.def (md_asm_adjust): Likewise.
23450 2021-03-04 Richard Biener <rguenther@suse.de>
23452 PR middle-end/97855
23453 * tree-pretty-print.c: Poison pp_printf.
23454 (dump_decl_name): Avoid use of pp_printf.
23455 (dump_block_node): Likewise.
23456 (dump_generic_node): Likewise.
23458 2021-03-04 Martin Sebor <msebor@redhat.com>
23460 PR middle-end/96963
23461 PR middle-end/94655
23462 * builtins.c (handle_array_ref): New helper.
23463 (handle_mem_ref): New helper.
23464 (compute_objsize_r): Factor out ARRAY_REF and MEM_REF handling
23465 into new helper functions. Correct a workaround for vectorized
23468 2021-03-03 Pat Haugen <pthaugen@linux.ibm.com>
23470 * config/rs6000/dfp.md (extendddtd2, trunctddd2, *cmp<mode>_internal1,
23471 floatditd2, ftrunc<mode>2, fix<mode>di2, dfp_ddedpd_<mode>,
23472 dfp_denbcd_<mode>, dfp_dxex_<mode>, dfp_diex_<mode>,
23473 *dfp_sgnfcnc_<mode>, dfp_dscli_<mode>, dfp_dscri_<mode>): Update size
23474 attribute for Power10.
23475 * config/rs6000/mma.md (*movoo): Likewise.
23476 * config/rs6000/rs6000.md (define_attr "size"): Add 256.
23477 (define_mode_attr bits): Add DD/TD modes.
23478 * config/rs6000/sync.md (load_quadpti, store_quadpti, load_lockedpti,
23479 store_conditionalpti): Update size attribute for Power10.
23481 2021-03-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23484 * config/sparc/t-sparc (tree-ssanames.o-warn): Don't error for
23485 -Wuninitialized, -Wmaybe-uninitialized.
23486 (wide-int.o-warn): Likewise.
23488 2021-03-03 Richard Earnshaw <rearnsha@arm.com>
23490 * common/config/arm/arm-common.c: Include configargs.h.
23491 (arm_config_default): New function.
23492 (arm_target_mode): Renamed from arm_target_thumb_only. Handle
23493 processors that do not support Thumb. Take into account the
23494 --with-mode configuration setting for selecting the default.
23495 * config/arm/arm.h (OPTION_DEFAULT_SPECS): Remove entry for 'mode'.
23496 (TARGET_MODE_SPEC_FUNCTIONS): Update for function name change.
23498 2021-03-03 Martin Liska <mliska@suse.cz>
23500 PR gcov-profile/97461
23501 * gcov-io.h (GCOV_PREALLOCATED_KVP): Remove.
23503 2021-03-03 Eric Botcazou <ebotcazou@adacore.com>
23506 * config/i386/i386.c (ix86_compute_frame_layout): For a SEH target,
23507 point back the hard frame pointer to its default location when the
23508 frame is larger than SEH_MAX_FRAME_SIZE.
23510 2021-03-03 Jakub Jelinek <jakub@redhat.com>
23513 * config/i386/predicates.md (logic_operator): New define_predicate.
23514 * config/i386/i386.md (mov + mem using comm arith peephole2):
23515 Punt if operands[1] is EXT_REX_SSE_REGNO_P, AVX512BW is not enabled
23516 and the inner mode is [QH]Imode.
23518 2021-03-03 Jakub Jelinek <jakub@redhat.com>
23521 * dwarf2out.c (dw_loc_list_struct): Add end_entry member.
23522 (new_loc_list): Clear end_entry.
23523 (output_loc_list): Only use DW_LLE_startx_length for -gsplit-dwarf
23524 if HAVE_AS_LEB128, otherwise use DW_LLE_startx_endx. Fix comment
23526 (index_location_lists): For dwarf_version >= 5 without HAVE_AS_LEB128,
23527 initialize also end_entry.
23529 2021-03-03 Jakub Jelinek <jakub@redhat.com>
23532 * cfgrtl.c (fixup_partitions): When changing some bbs from hot to cold
23533 partitions, if in non-layout mode after reorder_blocks also move
23534 affected blocks to ensure a single partition transition.
23536 2021-03-03 Jason Merrill <jason@redhat.com>
23539 * cgraphunit.c (process_function_and_variable_attributes): Don't
23540 warn about flatten on an alias if the target also has it.
23541 * cgraph.h (symtab_node::get_alias_target_tree): New.
23543 2021-03-02 David Edelsohn <dje.gcc@gmail.com>
23545 * config/rs6000/rs6000.md (tls_get_tpointer_internal): Prepend
23546 period to symbol name.
23547 (tls_get_addr_internal<mode>): Same.
23549 2021-03-02 David Malcolm <dmalcolm@redhat.com>
23552 * diagnostic-show-locus.c
23553 (selftest::test_one_liner_many_fixits_2): Fix accidental usage of
23556 2021-03-02 Martin Sebor <msebor@redhat.com>
23558 PR middle-end/99276
23559 * builtins.c (warn_for_access): Remove stray warning text.
23561 2021-03-02 Martin Sebor <msebor@redhat.com>
23563 PR middle-end/99295
23564 * doc/extend.texi (attribute malloc): Reword and clarify nonaliasing
23567 2021-03-02 Jakub Jelinek <jakub@redhat.com>
23570 * dwarf2out.c (output_macinfo_op): Use DW_MACRO_*_str* even with
23571 -gdwarf-5 -gstrict-dwarf. For -gsplit-dwarf -gdwarf-5 use
23572 DW_MACRO_*_strx instead of DW_MACRO_*_strp. Handle
23573 DW_MACRO_define_strx and DW_MACRO_undef_strx.
23574 (save_macinfo_strings): Use DW_MACRO_*_str* even with
23575 -gdwarf-5 -gstrict-dwarf. Handle DW_MACRO_define_strx and
23576 DW_MACRO_undef_strx.
23578 2021-03-02 Andreas Krebbel <krebbel@linux.ibm.com>
23580 * config/s390/s390-builtin-types.def (BT_FN_V4SF_V8HI_UINT): New
23582 (BT_FN_V8HI_V8HI_UINT): Likewise.
23583 (BT_FN_V8HI_V4SF_V4SF_UINT): Likewise.
23584 * config/s390/s390-builtins.def (B_NNPA): New macro definition.
23585 (s390_vclfnhs, s390_vclfnls, s390_vcrnfs, s390_vcfn, s390_vcnf):
23586 New builtin definitions.
23587 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Bump
23588 vector extension version.
23589 * config/s390/s390.c (s390_expand_builtin): Check if builtins are
23590 available with current -march level.
23591 * config/s390/s390.md (UNSPEC_NNPA_VCLFNHS_V8HI)
23592 (UNSPEC_NNPA_VCLFNLS_V8HI, UNSPEC_NNPA_VCRNFS_V8HI)
23593 (UNSPEC_NNPA_VCFN_V8HI, UNSPEC_NNPA_VCNF_V8HI): New constants.
23594 * config/s390/vecintrin.h (vec_extend_to_fp32_hi): New macro.
23595 (vec_extend_to_fp32_lo): Likewise.
23596 (vec_round_from_fp32): Likewise.
23597 (vec_convert_to_fp16): Likewise.
23598 (vec_convert_from_fp16): Likewise.
23599 * config/s390/vx-builtins.md (vclfnhs_v8hi): New insn pattern.
23600 (vclfnls_v8hi): Likewise.
23601 (vcrnfs_v8hi): Likewise.
23602 (vcfn_v8hi): Likewise.
23603 (vcnf_v8hi): Likewise.
23605 2021-03-02 Andreas Krebbel <krebbel@linux.ibm.com>
23607 * common/config/s390/s390-common.c (processor_flags_table): New entry.
23608 * config.gcc: Enable arch14 for --with-arch and --with-tune.
23609 * config/s390/driver-native.c (s390_host_detect_local_cpu): Pick
23610 arch14 for unknown CPU models.
23611 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH14.
23612 * config/s390/s390.c (s390_issue_rate): Add case for PROCESSOR_ARCH14.
23613 (s390_get_sched_attrmask): Likewise.
23614 (s390_get_unit_mask): Likewise.
23615 * config/s390/s390.h (enum processor_flags): Add PF_NNPA and PF_ARCH14.
23616 (TARGET_CPU_ARCH14, TARGET_CPU_ARCH14_P, TARGET_CPU_NNPA)
23617 (TARGET_CPU_NNPA_P, TARGET_ARCH14, TARGET_ARCH14_P, TARGET_NNPA)
23618 (TARGET_NNPA_P): New macro definitions.
23619 * config/s390/s390.md ("cpu_facility", "enabled"): Add arch14 and nnpa.
23620 * config/s390/s390.opt: Add PROCESSOR_ARCH14.
23622 2021-03-02 Jakub Jelinek <jakub@redhat.com>
23624 PR middle-end/95757
23625 * tree-vrp.c (register_edge_assert_for): Remove superfluous ()s around
23626 condition. Call register_edge_assert_for_1 for == 0, != 0, == 1 and
23627 != 1 comparisons if name is lhs of a comparison.
23629 2021-03-01 Iain Sandoe <iain@sandoe.co.uk>
23633 * config/darwin-protos.h (darwin_should_restore_cfa_state): New.
23634 * config/darwin.c (darwin_should_restore_cfa_state): New.
23635 * config/darwin.h (TARGET_ASM_SHOULD_RESTORE_CFA_STATE): New.
23636 * doc/tm.texi: Regenerated.
23637 * doc/tm.texi.in: Document TARGET_ASM_SHOULD_RESTORE_CFA_STATE.
23638 * dwarf2cfi.c (connect_traces): If the target requests, restore
23639 the CFA expression after a DW_CFA_restore.
23640 * target.def (TARGET_ASM_SHOULD_RESTORE_CFA_STATE): New hook.
23642 2021-03-01 Martin Liska <mliska@suse.cz>
23645 * optc-save-gen.awk: Add 4 more exceptions.
23647 2021-03-01 Nathan Sidwell <nathan@acm.org>
23650 * tree.h (TYPE_ALIGN_RAW): New accessor.
23651 (TYPE_ALIGN): Use it.
23653 2021-03-01 Jan Hubicka <jh@suse.cz>
23656 * ipa-fnsummary.c (compute_fn_summary): Fix sanity check.
23658 2021-03-01 Eric Botcazou <ebotcazou@adacore.com>
23661 * config/i386/i386.c (ix86_compute_frame_layout): For a SEH target,
23662 point the hard frame pointer to the SSE register save area instead
23663 of the general register save area. Perform only minimal adjustment
23664 for small frames if it is initially not correctly aligned.
23665 (ix86_expand_prologue): Remove early saves for a SEH target.
23666 * config/i386/winnt.c (struct seh_frame_state): Document constraint.
23668 2021-02-28 Jakub Jelinek <jakub@redhat.com>
23671 * ipa.c (symbol_table::remove_unreachable_nodes): Fix a comment
23672 typo - referneced -> referenced.
23673 * tree.c (component_ref_size): Fix comment typo -
23674 refernce -> reference.
23675 * tree-ssa-alias.c (access_path_may_continue_p): Fix comment typo -
23676 traling -> trailing.
23677 (aliasing_component_refs_p): Fix comment typos -
23678 refernce -> reference and refernece -> reference and
23679 traling -> trailing.
23680 (nonoverlapping_refs_since_match_p): Fix comment typo -
23681 referneces -> references.
23682 * doc/invoke.texi (--param modref-max-bases): Fix a typo -
23683 referneces -> references.
23685 2021-02-27 Iain Sandoe <iain@sandoe.co.uk>
23687 * config/host-darwin.c (darwin_gt_pch_use_address): Modify
23688 diagnostic message to avoid use of a contraction and format
23691 2021-02-27 Jakub Jelinek <jakub@redhat.com>
23694 * gcse.c (gcse_or_cprop_is_too_expensive): Use %wu instead of
23695 HOST_WIDE_INT_PRINT_UNSIGNED in warning format string.
23696 * ipa-devirt.c (ipa_odr_read_section): Use %wd instead of
23697 HOST_WIDE_INT_PRINT_DEC in inform format string. Fix comment
23700 2021-02-26 Richard Biener <rguenther@suse.de>
23702 PR middle-end/99281
23703 * expr.c (store_field): For calls with return-slot optimization
23704 and addressable return type expand the store directly.
23706 2021-02-26 Richard Biener <rguenther@suse.de>
23709 * builtins.c (warn_string_no_nul): Fix diagnostic formatting.
23711 2021-02-26 Peter Bergner <bergner@linux.ibm.com>
23714 * config/rs6000/rs6000-call.c (rs6000_init_builtins): Replace assert
23717 2021-02-26 Aaron Sawdey <acsawdey@linux.ibm.com>
23719 * config.gcc: Add rs6000-pcrel-opt.o.
23720 * config/rs6000/rs6000-pcrel-opt.c: New file.
23721 * config/rs6000/pcrel-opt.md: New file.
23722 * config/rs6000/predicates.md: Add d_form_memory predicate.
23723 * config/rs6000/rs6000-cpus.def: Add OPTION_MASK_PCREL_OPT.
23724 * config/rs6000/rs6000-passes.def: Add pass_pcrel_opt.
23725 * config/rs6000/rs6000-protos.h: Add reg_to_non_prefixed(),
23726 pcrel_opt_valid_mem_p(), output_pcrel_opt_reloc(),
23727 and make_pass_pcrel_opt().
23728 * config/rs6000/rs6000.c (reg_to_non_prefixed): Make global.
23729 (rs6000_option_override_internal): Add pcrel-opt.
23730 (rs6000_delegitimize_address): Support pcrel-opt.
23731 (rs6000_opt_masks): Add pcrel-opt.
23732 (pcrel_opt_valid_mem_p): New function.
23733 (reg_to_non_prefixed): Make global.
23734 (rs6000_asm_output_opcode): Reset prepend_p_to_next_insn.
23735 (output_pcrel_opt_reloc): New function.
23736 * config/rs6000/rs6000.md (loads_extern_addr): New attr.
23737 (pcrel_extern_addr): Set loads_extern_addr.
23738 Add include for pcrel-opt.md.
23739 * config/rs6000/rs6000.opt: Add -mpcrel-opt.
23740 * config/rs6000/t-rs6000: Add rules for pcrel-opt.c and
23743 2021-02-26 YunQiang Su <yunqiang.su@cipunited.com>
23746 * config/mips/mips.c (mips_expand_ext_as_unaligned_load):
23747 If TARGET_64BIT and dest is SUBREG, we check the width, if it
23748 equal to SImode, we use SImode operation, just like what we are
23751 2021-02-26 Marek Polacek <polacek@redhat.com>
23753 * builtins.c (warn_for_access): Fix typos.
23755 2021-02-25 Iain Sandoe <iain@sandoe.co.uk>
23757 * config/aarch64/aarch64.md (<optab>_rol<mode>3): Add a '#'
23758 mark in front of the immediate quantity.
23759 (<optab>_rolsi3_uxtw): Likewise.
23761 2021-02-25 Richard Earnshaw <rearnsha@arm.com>
23764 * config/arm/thumb2.md (nonsecure_call_reg_thumb2_fpcxt): New pattern.
23765 (nonsecure_call_value_reg_thumb2_fpcxt): Likewise.
23766 (nonsecure_call_reg_thumb2): Restrict to using r4 for the callee
23767 address and disable when the FPCXT is not available.
23768 (nonsecure_call_value_reg_thumb2): Likewise.
23770 2021-02-25 Nathan Sidwell <nathan@acm.org>
23773 * doc/invoke.texi (flang-info-module-cmi): Renamed option.
23775 2021-02-25 Tamar Christina <tamar.christina@arm.com>
23777 * tree-vect-slp.c (optimize_load_redistribution_1): Abort on NULL nodes.
23779 2021-02-25 Richard Biener <rguenther@suse.de>
23781 PR tree-optimization/99253
23782 * tree-vect-loop.c (check_reduction_path): First compute
23783 code, then verify out-of-loop uses.
23785 2021-02-25 Jakub Jelinek <jakub@redhat.com>
23788 * match.pd ((T)(A) + CST -> (T)(A + CST)): Add :s to convert.
23790 2021-02-25 Jakub Jelinek <jakub@redhat.com>
23792 PR tree-optimization/80635
23793 * tree-vrp.c (vrp_simplify_cond_using_ranges): Also handle
23794 VIEW_CONVERT_EXPR if modes are the same, innerop is integral and
23795 has mode precision.
23797 2021-02-25 Richard Biener <rguenther@suse.de>
23799 * tree-vect-slp.c (optimize_load_redistribution_1): Delay
23800 load_map population.
23801 (vect_match_slp_patterns_2): Revert part of last change.
23802 (vect_analyze_slp): Do not interleave optimize_load_redistribution
23803 with pattern detection but do it afterwards. Dump the
23804 whole SLP graph after pattern recognition and load
23805 redistribution optimization finished.
23807 2021-02-24 Jakub Jelinek <jakub@redhat.com>
23810 * omp-low.c (struct omp_context): Add teams_nested_p and
23811 nonteams_nested_p members.
23812 (scan_omp_target): Diagnose teams nested inside of target with other
23813 directives strictly nested inside of the same target.
23814 (check_omp_nesting_restrictions): Set ctx->teams_nested_p or
23815 ctx->nonteams_nested_p as needed.
23817 2021-02-24 Vladimir N. Makarov <vmakarov@redhat.com>
23819 PR inline-asm/99123
23820 * lra-constraints.c (uses_hard_regs_p): Don't use decompose_mem_address.
23822 2021-02-24 Hans-Peter Nilsson <hp@axis.com>
23824 * config/cris/cris.c (cris_expand_prologue): Set
23825 current_function_static_stack_size, if flag_stack_usage_info.
23827 2021-02-24 Pat Haugen <pthaugen@linux.ibm.com>
23829 * config/rs6000/rs6000.c (next_insn_prefixed_p): Rename.
23830 (rs6000_final_prescan_insn): Adjust.
23831 (rs6000_asm_output_opcode): Likewise.
23833 2021-02-24 Martin Sebor <msebor@redhat.com>
23835 PR middle-end/97172
23836 * attribs.c (attr_access::free_lang_data): Clear attribute arg spec
23837 from function arguments.
23839 2021-02-24 Tamar Christina <tamar.christina@arm.com>
23841 PR tree-optimization/99220
23842 * tree-vect-slp.c (optimize_load_redistribution_1): Remove
23843 node from cache when it's about to be deleted.
23845 2021-02-24 Jakub Jelinek <jakub@redhat.com>
23847 PR tree-optimization/99225
23848 * fold-const.c (fold_binary_loc) <case NE_EXPR>: In (x & (1 << y)) != 0
23849 to ((x >> y) & 1) != 0 simplifications use build_one_cst instead of
23850 build_int_cst (..., 1). Formatting fixes.
23852 2021-02-24 Tamar Christina <tamar.christina@arm.com>
23854 PR tree-optimization/99149
23855 * tree-vect-slp-patterns.c (vect_detect_pair_op): Don't recreate the
23857 (vect_slp_reset_pattern): Remove.
23858 (complex_fma_pattern::matches): Remove call to vect_slp_reset_pattern.
23859 (complex_mul_pattern::build, complex_fma_pattern::build,
23860 complex_fms_pattern::build): Fix ref counts.
23861 * tree-vect-slp.c (vect_free_slp_tree): Undo SLP only pattern relevancy
23862 when node is being deleted.
23863 (vect_match_slp_patterns_2): Correct result of cache hit on patterns.
23864 (vect_schedule_slp): Invalidate SLP_TREE_REPRESENTATIVE of removed
23866 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize value.
23868 2021-02-24 Matthias Klose <doko@ubuntu.com>
23871 2020-12-07 Matthias Klose <doko@ubuntu.com>
23873 * genextract.c (print_header): Undefine ENABLE_RTL_CHECKING
23874 and ENABLE_RTL_FLAG_CHECKING.
23876 2021-02-24 Richard Biener <rguenther@suse.de>
23879 * builtins.c (fold_builtin_next_arg): Avoid NULL arg.
23881 2021-02-23 Peter Bergner <bergner@linux.ibm.com>
23883 * config/rs6000/mma.md (mma_assemble_pair): Rename from this...
23884 (vsx_assemble_pair): ...to this.
23885 (*mma_assemble_pair): Rename from this...
23886 (*vsx_assemble_pair): ...to this.
23887 (mma_disassemble_pair): Rename from this...
23888 (vsx_disassemble_pair): ...to this.
23889 (*mma_disassemble_pair): Rename from this...
23890 (*vsx_disassemble_pair): ...to this.
23891 * config/rs6000/rs6000-builtin.def (BU_MMA_V2, BU_MMA_V3,
23892 BU_COMPAT): New macros.
23893 (mma_assemble_pair): Rename from this...
23894 (vsx_assemble_pair): ...to this.
23895 (mma_disassemble_pair): Rename from this...
23896 (vsx_disassemble_pair): ...to this.
23897 (mma_assemble_pair): New compatibility built-in.
23898 (mma_disassemble_pair): Likewise.
23899 * config/rs6000/rs6000-call.c (struct builtin_compatibility): New.
23900 (RS6000_BUILTIN_COMPAT): Define.
23901 (bdesc_compat): New.
23902 (mma_expand_builtin): Use VSX_BUILTIN_DISASSEMBLE_PAIR_INTERNAL.
23903 (rs6000_gimple_fold_mma_builtin): Use MMA_BUILTIN_DISASSEMBLE_PAIR
23904 and VSX_BUILTIN_ASSEMBLE_PAIR.
23905 (rs6000_init_builtins): Register compatibility built-ins.
23906 (mma_init_builtins): Use VSX_BUILTIN_ASSEMBLE_PAIR,
23907 VSX_BUILTIN_ASSEMBLE_PAIR_INTERNAL, VSX_BUILTIN_DISASSEMBLE_PAIR and
23908 VSX_BUILTIN_DISASSEMBLE_PAIR_INTERNAL.
23909 * doc/extend.texi (__builtin_mma_assemble_pair): Rename from this...
23910 (__builtin_vsx_assemble_pair): ...to this.
23911 (__builtin_mma_disassemble_pair): Rename from this...
23912 (__builtin_vsx_disassemble_pair): ...to this.
23914 2021-02-23 Martin Liska <mliska@suse.cz>
23917 * ipa-icf.c (sem_variable::merge): Do not merge 2 variables
23918 with different alignment. That leads to an invalid red zone
23919 size allocated in runtime.
23921 2021-02-23 Jakub Jelinek <jakub@redhat.com>
23923 PR tree-optimization/99204
23924 * fold-const.c (fold_read_from_constant_string): Check that
23925 tree_fits_uhwi_p (index) rather than just that index is INTEGER_CST.
23927 2021-02-23 Segher Boessenkool <segher@kernel.crashing.org>
23928 Kewen Lin <linkw@gcc.gnu.org>
23930 * config/rs6000/rs6000.md (*rotl<mode>3_insert_3): Renamed to...
23931 (rotl<mode>3_insert_3): ...this.
23932 (plus_ior_xor): New code_iterator.
23933 (define_split for GPR rl*imi): New splitter.
23934 * config/rs6000/vsx.md (vsx_init_v4si): Use gen_rotldi3_insert_3
23935 for integer merging.
23937 2021-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23939 * config/aarch64/aarch64-tuning-flags.def (cse_sve_vl_constants):
23941 * config/aarch64/aarch64.md (add<mode>3): Force CONST_POLY_INT immediates
23942 into a register when the above is enabled.
23943 * config/aarch64/aarch64.c (neoversev1_tunings):
23944 AARCH64_EXTRA_TUNE_CSE_SVE_VL_CONSTANTS.
23945 (aarch64_rtx_costs): Use AARCH64_EXTRA_TUNE_CSE_SVE_VL_CONSTANTS.
23947 2021-02-22 Hans-Peter Nilsson <hp@axis.com>
23949 * config/cris/cris.c (cris_print_operand) <'T'>: Change
23950 valid operand from is now an addi mult-value to shift-value.
23951 * config/cris/cris.md (*addi): Change expression of scaled
23952 operand from mult to ashift.
23953 * config/cris/cris.md (*addi_reload): New insn_and_split.
23955 2021-02-22 John David Anglin <danglin@gcc.gnu.org>
23958 * config/pa/pa.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define as
23959 hook_bool_const_tree_hwi_hwi_const_tree_true.
23960 (pa_asm_output_mi_thunk): Add support for nonzero vcall_offset.
23962 2021-02-22 Andre Vieira <andre.simoesdiasvieira@arm.com>
23964 PR rtl-optimization/98791
23965 * ira-conflicts.c (process_regs_for_copy): Don't create allocno copies
23966 for unordered modes.
23968 2021-02-22 Martin Liska <mliska@suse.cz>
23970 * tree-inline.c (inline_forbidden_p): Set
23971 inline_forbidden_reason.
23973 2021-02-22 Richard Biener <rguenther@suse.de>
23975 * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Dump
23978 2021-02-22 Richard Biener <rguenther@suse.de>
23980 PR tree-optimization/99165
23981 * gimple-ssa-store-merging.c (pass_store_merging::process_store):
23982 Accumulate changed to ret.
23984 2021-02-21 Uros Bizjak <ubizjak@gmail.com>
23987 2020-12-09 Uroš Bizjak <ubizjak@gmail.com>
23989 * config/i386/i386.h (REG_ALLOC_ORDER): Remove
23991 2021-02-20 Ilya Leoshkevich <iii@linux.ibm.com>
23994 * config/s390/vector.md (trunctf<DFP_ALL:mode>2_vr): New
23996 (trunctf<DFP_ALL:mode>2): Likewise.
23997 (trunctdtf2_vr): Likewise.
23998 (trunctdtf2): Likewise.
23999 (extend<DFP_ALL:mode>tf2_vr): Likewise.
24000 (extend<DFP_ALL:mode>tf2): Likewise.
24001 (extendtftd2_vr): Likewise.
24002 (extendtftd2): Likewise.
24004 2021-02-20 Ilya Leoshkevich <iii@linux.ibm.com>
24006 * config/s390/vector.md (*fprx2_to_tf): Rename to fprx2_to_tf,
24007 add memory alternative.
24008 (tf_to_fprx2): New pattern.
24010 2021-02-19 Martin Sebor <msebor@redhat.com>
24013 * attribs.c (init_attr_rdwr_indices): Guard vblist use.
24014 (attr_access::free_lang_data): Remove a spurious test.
24016 2021-02-19 Nathan Sidwell <nathan@acm.org>
24018 * doc/invoke.texi (flang-info-module-read): Document.
24020 2021-02-19 Martin Liska <mliska@suse.cz>
24022 PR translation/99167
24023 * params.opt: Fix typo.
24025 2021-02-19 Richard Biener <rguenther@suse.de>
24027 PR middle-end/99122
24028 * tree-inline.c (inline_forbidden_p): Do not inline functions
24029 with VLA arguments or return value.
24031 2021-02-19 Jakub Jelinek <jakub@redhat.com>
24034 * config/arm/arm.md (*stack_protect_combined_set_insn,
24035 *stack_protect_combined_test_insn): If force_const_mem result
24036 is not valid general operand, force its address into the destination
24039 2021-02-19 Jakub Jelinek <jakub@redhat.com>
24042 * tree-cfg.c (gimple_merge_blocks): If bb a starts with eh landing
24043 pad or non-local label, put FORCED_LABELs from bb b after that label
24044 rather than before it.
24046 2021-02-19 Andre Vieira <andre.simoesdiasvieira@arm.com>
24049 * config/aarch64/aarch64-sve.md (<ASHIFT:optab><mode>3): Use
24050 expand_vector_broadcast' to emit the vec_duplicate operand.
24052 2021-02-18 Vladimir N. Makarov <vmakarov@redhat.com>
24054 PR rtl-optimization/96264
24055 * lra-remat.c (reg_overlap_for_remat_p): Check also output insn
24058 2021-02-18 H.J. Lu <hjl.tools@gmail.com>
24061 * varasm.c (get_section): Replace SUPPORTS_SHF_GNU_RETAIN with
24062 looking up the retain attribute.
24063 (resolve_unique_section): Likewise.
24064 (get_variable_section): Likewise.
24065 (switch_to_section): Likewise. Warn when a symbol without the
24066 retain attribute and a symbol with the retain attribute are
24067 placed in the section with the same name, instead of the used
24069 * doc/extend.texi: Document the "retain" attribute.
24071 2021-02-18 Nathan Sidwell <nathan@acm.org>
24074 * doc/invoke.texi (flang-info-include-translate): Document header
24077 2021-02-18 Richard Biener <rguenther@suse.de>
24079 PR middle-end/99122
24080 * ipa-fnsummary.c (analyze_function_body): Set
24081 CIF_FUNCTION_NOT_INLINABLE for VLA parameter calls.
24082 * tree-inline.c (insert_init_debug_bind): Pass NULL for
24083 error_mark_node values.
24084 (force_value_to_type): Do not build V_C_Es for WITH_SIZE_EXPR
24086 (setup_one_parameter): Delay force_value_to_type until when
24089 2021-02-18 Hans-Peter Nilsson <hp@axis.com>
24091 PR tree-optimization/99142
24092 * match.pd (clz cmp 0): Gate replacement on single_use of clz result.
24094 2021-02-18 Jakub Jelinek <jakub@redhat.com>
24096 * wide-int-bitmask.h (wide_int_bitmask::wide_int_bitmask (),
24097 wide_int_bitmask::wide_int_bitmask (uint64_t),
24098 wide_int_bitmask::wide_int_bitmask (uint64_t, uint64_t),
24099 wide_int_bitmask::operator ~ () const,
24100 wide_int_bitmask::operator | (wide_int_bitmask) const,
24101 wide_int_bitmask::operator & (wide_int_bitmask) const): Use constexpr
24103 * config/i386/i386.h (PTA_3DNOW, PTA_3DNOW_A, PTA_64BIT, PTA_ABM,
24104 PTA_AES, PTA_AVX, PTA_BMI, PTA_CX16, PTA_F16C, PTA_FMA, PTA_FMA4,
24105 PTA_FSGSBASE, PTA_LWP, PTA_LZCNT, PTA_MMX, PTA_MOVBE, PTA_NO_SAHF,
24106 PTA_PCLMUL, PTA_POPCNT, PTA_PREFETCH_SSE, PTA_RDRND, PTA_SSE, PTA_SSE2,
24107 PTA_SSE3, PTA_SSE4_1, PTA_SSE4_2, PTA_SSE4A, PTA_SSSE3, PTA_TBM,
24108 PTA_XOP, PTA_AVX2, PTA_BMI2, PTA_RTM, PTA_HLE, PTA_PRFCHW, PTA_RDSEED,
24109 PTA_ADX, PTA_FXSR, PTA_XSAVE, PTA_XSAVEOPT, PTA_AVX512F, PTA_AVX512ER,
24110 PTA_AVX512PF, PTA_AVX512CD, PTA_NO_TUNE, PTA_SHA, PTA_PREFETCHWT1,
24111 PTA_CLFLUSHOPT, PTA_XSAVEC, PTA_XSAVES, PTA_AVX512DQ, PTA_AVX512BW,
24112 PTA_AVX512VL, PTA_AVX512IFMA, PTA_AVX512VBMI, PTA_CLWB, PTA_MWAITX,
24113 PTA_CLZERO, PTA_NO_80387, PTA_PKU, PTA_AVX5124VNNIW, PTA_AVX5124FMAPS,
24114 PTA_AVX512VPOPCNTDQ, PTA_SGX, PTA_AVX512VNNI, PTA_GFNI, PTA_VAES,
24115 PTA_AVX512VBMI2, PTA_VPCLMULQDQ, PTA_AVX512BITALG, PTA_RDPID,
24116 PTA_PCONFIG, PTA_WBNOINVD, PTA_AVX512VP2INTERSECT, PTA_PTWRITE,
24117 PTA_AVX512BF16, PTA_WAITPKG, PTA_MOVDIRI, PTA_MOVDIR64B, PTA_ENQCMD,
24118 PTA_CLDEMOTE, PTA_SERIALIZE, PTA_TSXLDTRK, PTA_AMX_TILE, PTA_AMX_INT8,
24119 PTA_AMX_BF16, PTA_UINTR, PTA_HRESET, PTA_KL, PTA_WIDEKL, PTA_AVXVNNI,
24120 PTA_X86_64_BASELINE, PTA_X86_64_V2, PTA_X86_64_V3, PTA_X86_64_V4,
24121 PTA_CORE2, PTA_NEHALEM, PTA_WESTMERE, PTA_SANDYBRIDGE, PTA_IVYBRIDGE,
24122 PTA_HASWELL, PTA_BROADWELL, PTA_SKYLAKE, PTA_SKYLAKE_AVX512,
24123 PTA_CASCADELAKE, PTA_COOPERLAKE, PTA_CANNONLAKE, PTA_ICELAKE_CLIENT,
24124 PTA_ICELAKE_SERVER, PTA_TIGERLAKE, PTA_SAPPHIRERAPIDS, PTA_ALDERLAKE,
24125 PTA_KNL, PTA_BONNELL, PTA_SILVERMONT, PTA_GOLDMONT, PTA_GOLDMONT_PLUS,
24126 PTA_TREMONT, PTA_KNM): Use constexpr instead of const.
24128 2021-02-18 Jakub Jelinek <jakub@redhat.com>
24130 PR middle-end/99109
24131 * gimple-array-bounds.cc (build_zero_elt_array_type): Rename to ...
24132 (build_printable_array_type): ... this. Add nelts argument. For
24133 overaligned eltype, use TYPE_MAIN_VARIANT (eltype) instead. If
24134 nelts, call build_array_type_nelts.
24135 (array_bounds_checker::check_mem_ref): Use build_printable_array_type
24136 instead of build_zero_elt_array_type and build_array_type_nelts.
24138 2021-02-18 Jakub Jelinek <jakub@redhat.com>
24141 * config/i386/i386.c (distance_non_agu_define): Don't call
24142 extract_insn_cached here.
24143 (ix86_lea_outperforms): Save and restore recog_data around call
24144 to distance_non_agu_define and distance_agu_use.
24145 (ix86_ok_to_clobber_flags): Remove.
24146 (ix86_avoid_lea_for_add): Don't call ix86_ok_to_clobber_flags.
24147 (ix86_avoid_lea_for_addr): Likewise. Adjust function comment.
24148 * config/i386/i386.md (*lea<mode>): Change from define_insn_and_split
24149 into define_insn. Move the splitting to define_peephole2 and
24150 check there using peep2_regno_dead_p if FLAGS_REG is dead.
24152 2021-02-17 Julian Brown <julian@codesourcery.com>
24154 * gimplify.c (gimplify_scan_omp_clauses): Handle ATTACH_DETACH
24157 2021-02-17 Xi Ruoyao <xry111@mengyan1223.wang>
24160 * config/mips/mips.c (mips_symbol_insns): Do not use
24161 MSA_SUPPORTED_MODE_P if mode is MAX_MACHINE_MODE.
24163 2021-02-16 Vladimir N. Makarov <vmakarov@redhat.com>
24165 PR inline-asm/98096
24166 * stmt.c (resolve_operand_name_1): Take inout operands into account
24167 for access to labels by names.
24168 * doc/extend.texi: Describe counting operands for accessing labels.
24170 2021-02-16 Richard Biener <rguenther@suse.de>
24172 PR tree-optimization/38474
24173 * tree-ssa-structalias.c (variable_info::address_taken): New.
24174 (new_var_info): Initialize address_taken.
24175 (process_constraint): Set address_taken.
24176 (solve_constraints): Use the new address_taken flag rather
24177 than is_reg_var for sorting variables.
24178 (dump_constraint): Dump the variable number if the name
24181 2021-02-16 Jakub Jelinek <jakub@redhat.com>
24184 * tree-vect-stmts.c (vectorizable_simd_clone_call): For num_calls != 1
24185 multiply by 4096 and for inbranch by 8192.
24186 * config/i386/i386.c (ix86_simd_clone_usable): For TARGET_AVX512F,
24187 return 3, 2 or 1 for mangle letters 'b', 'c' or 'd'.
24189 2021-02-15 Maya Rashish <coypu@sdf.org>
24191 * config/aarch64/aarch64.c (aarch64_init_builtins):
24192 Call SUBTARGET_INIT_BUILTINS.
24194 2021-02-15 Peter Bergner <bergner@linux.ibm.com>
24196 PR rtl-optimization/98872
24197 * init-regs.c (initialize_uninitialized_regs): Skip initialization
24198 if CONST0_RTX is NULL.
24200 2021-02-15 Richard Sandiford <richard.sandiford@arm.com>
24202 PR rtl-optimization/98863
24203 * rtl-ssa/functions.h (function_info::bb_live_out_info): Delete.
24204 (function_info::build_info): Turn into a declaration, moving the
24205 definition to internals.h.
24206 (function_info::bb_walker): Declare.
24207 (function_info::create_reg_use): Likewise.
24208 (function_info::calculate_potential_phi_regs): Take a build_info
24210 (function_info::place_phis, function_info::create_ebbs): Declare.
24211 (function_info::calculate_ebb_live_in_for_debug): Likewise.
24212 (function_info::populate_backedge_phis): Delete.
24213 (function_info::start_block, function_info::end_block): Declare.
24214 (function_info::populate_phi_inputs): Delete.
24215 (function_info::m_potential_phi_regs): Move information to build_info.
24216 * rtl-ssa/internals.h: New file.
24217 (function_info::bb_phi_info): New class.
24218 (function_info::build_info): Moved from functions.h.
24219 Add a constructor and destructor.
24220 (function_info::build_info::ebb_use): Delete.
24221 (function_info::build_info::ebb_def): Likewise.
24222 (function_info::build_info::bb_live_out): Likewise.
24223 (function_info::build_info::tmp_ebb_live_in_for_debug): New variable.
24224 (function_info::build_info::potential_phi_regs): Likewise.
24225 (function_info::build_info::potential_phi_regs_for_debug): Likewise.
24226 (function_info::build_info::ebb_def_regs): Likewise.
24227 (function_info::build_info::bb_phis): Likewise.
24228 (function_info::build_info::bb_mem_live_out): Likewise.
24229 (function_info::build_info::bb_to_rpo): Likewise.
24230 (function_info::build_info::def_stack): Likewise.
24231 (function_info::build_info::old_def_stack_limit): Likewise.
24232 * rtl-ssa/internals.inl (function_info::build_info::record_reg_def):
24233 Remove the regno argument. Push the previous definition onto the
24234 definition stack where necessary.
24235 * rtl-ssa/accesses.cc: Include internals.h.
24236 * rtl-ssa/changes.cc: Likewise.
24237 * rtl-ssa/blocks.cc: Likewise.
24238 (function_info::build_info::build_info): Define.
24239 (function_info::build_info::~build_info): Likewise.
24240 (function_info::bb_walker): New class.
24241 (function_info::bb_walker::bb_walker): Define.
24242 (function_info::add_live_out_use): Convert a logarithmic-complexity
24243 test into a linear one. Allow the same definition to be passed
24245 (function_info::calculate_potential_phi_regs): Moved from
24246 functions.cc. Take a build_info parameter and store the
24247 information there instead.
24248 (function_info::place_phis): New function.
24249 (function_info::add_entry_block_defs): Update call to record_reg_def.
24250 (function_info::calculate_ebb_live_in_for_debug): New function.
24251 (function_info::add_phi_nodes): Use bb_phis to decide which
24252 registers need phi nodes and initialize ebb_def_regs accordingly.
24253 Do not add degenerate phis here.
24254 (function_info::add_artificial_accesses): Use create_reg_use.
24255 Assert that all definitions are listed in the DF LR sets.
24256 Update call to record_reg_def.
24257 (function_info::record_block_live_out): Record live-out register
24258 values in the phis of successor blocks. Use the live-out set
24259 when processing the last block in an EBB, instead of always
24260 using the live-in sets of successor blocks. AND the live sets
24261 with the set of registers that have been defined in the EBB,
24262 rather than with all potential phi registers. Cope correctly
24263 with branches back to the start of the current EBB.
24264 (function_info::start_block): New function.
24265 (function_info::end_block): Likewise.
24266 (function_info::populate_phi_inputs): Likewise.
24267 (function_info::create_ebbs): Likewise.
24268 (function_info::process_all_blocks): Rewrite into a multi-phase
24270 * rtl-ssa/functions.cc: Include internals.h.
24271 (function_info::calculate_potential_phi_regs): Move to blocks.cc.
24272 (function_info::init_function_data): Remove caller.
24273 * rtl-ssa/insns.cc: Include internals.h
24274 (function_info::create_reg_use): New function. Lazily any
24275 degenerate phis needed by the linear RPO view.
24276 (function_info::record_use): Use create_reg_use. When processing
24277 debug uses, use potential_phi_regs and test it before checking
24278 whether the register is live on entry to the current EBB. Lazily
24279 calculate ebb_live_in_for_debug.
24280 (function_info::record_call_clobbers): Update call to record_reg_def.
24281 (function_info::record_def): Likewise.
24283 2021-02-15 Martin Liska <mliska@suse.cz>
24285 * toplev.c (init_asm_output): Free output of
24286 gen_command_line_string function.
24287 (process_options): Likewise.
24289 2021-02-15 Martin Liska <mliska@suse.cz>
24291 * params.opt: Add 2 missing Param keywords.
24293 2021-02-15 Eric Botcazou <ebotcazou@adacore.com>
24295 * df-core.c (df_worklist_dataflow_doublequeue): Use proper cast.
24297 2021-02-15 Jakub Jelinek <jakub@redhat.com>
24299 PR tree-optimization/99079
24300 * match.pd (A % (pow2pcst << N) -> A & ((pow2pcst << N) - 1)): Remove
24301 useless tree_nop_conversion_p (type, TREE_TYPE (@3)) check. Instead
24302 require both type and TREE_TYPE (@1) to be integral types and either
24303 type having smaller or equal precision, or TREE_TYPE (@1) being
24304 unsigned type, or type being signed type. If TREE_TYPE (@1)
24305 doesn't have wrapping overflow, perform the subtraction of one in
24308 2021-02-14 Jan Hubicka <hubicka@ucw.cz>
24309 Richard Biener <rguether@suse.de>
24312 * ipa-reference.c (ipa_init): Only conditinally initialize
24313 reference_vars_to_consider.
24314 (propagate): Conditionally deninitialize reference_vars_to_consider.
24315 (ipa_reference_write_optimization_summary): Sanity check that
24316 reference_vars_to_consider is not allocated.
24318 2021-02-13 Levy Hsu <admin@levyhsu.com>
24321 * config/riscv/riscv-shorten-memrefs.c (pass_shorten_memrefs): Add
24322 extend parameter to get_si_mem_base_reg declaration.
24323 (get_si_mem_base_reg): Add extend parameter. Set it.
24324 (analyze): Pass extend arg to get_si_mem_base_reg.
24325 (transform): Likewise. Use it when rewriting mems.
24326 * config/riscv/riscv.c (riscv_legitimize_move): Check for subword
24327 loads and emit sign/zero extending load followed by subreg move.
24329 2021-02-13 Jim Wilson <jimw@sifive.com>
24332 * config/riscv/riscv.c (riscv_compressed_lw_address_p): Drop early
24333 exit when !reload_completed. Only perform check for compressed reg
24334 if reload_completed.
24335 (riscv_rtx_costs): In MEM case, when optimizing for size and
24336 shorten memrefs, if not compressible, then increase cost.
24338 2021-02-13 Jakub Jelinek <jakub@redhat.com>
24340 PR rtl-optimization/98439
24341 * recog.c (pass_split_before_regstack::gate): Enable even when
24342 pass_split_before_sched2 is enabled if -fselective-scheduling2 is
24345 2021-02-13 Jakub Jelinek <jakub@redhat.com>
24348 * config/i386/mmx.md (*mmx_pshufd_1): Add a combine splitter for
24349 swap of V2SImode elements in memory into DImode memory rotate by 32.
24351 2021-02-12 Martin Sebor <msebor@redhat.com>
24353 * tree-pretty-print.c (print_generic_expr_to_str): Update comment.
24355 2021-02-12 Richard Sandiford <richard.sandiford@arm.com>
24357 * rtl-ssa/accesses.cc (function_info::make_use_available): Use
24358 m_temp_obstack rather than m_obstack to allocate the temporary use.
24360 2021-02-12 Richard Sandiford <richard.sandiford@arm.com>
24362 * df-problems.c (df_lr_bb_local_compute): Treat partial definitions
24363 as read-modify operations.
24365 2021-02-12 Richard Biener <rguenther@suse.de>
24367 PR middle-end/38474
24368 * ipa-fnsummary.c (unmodified_parm_1): Only walk when
24369 fbi->aa_walk_budget is bigger than zero. Update
24370 fbi->aa_walk_budget.
24371 (param_change_prob): Likewise.
24372 * ipa-prop.c (detect_type_change_from_memory_writes):
24373 Properly account walk_aliased_vdefs.
24374 (parm_preserved_before_stmt_p): Canonicalize updates.
24375 (parm_ref_data_preserved_p): Likewise.
24376 (parm_ref_data_pass_through_p): Likewise.
24377 (determine_known_aggregate_parts): Account own alias queries.
24379 2021-02-12 Martin Liska <mliska@suse.cz>
24381 * opts-common.c (decode_cmdline_option): Release werror_arg.
24382 * opts.c (gen_producer_string): Release output of
24383 gen_command_line_string.
24385 2021-02-12 Richard Biener <rguenther@suse.de>
24387 PR tree-optimization/38474
24388 * params.opt (-param=max-store-chains-to-track=): New param.
24389 (-param=max-stores-to-track=): Likewise.
24390 * doc/invoke.texi (max-store-chains-to-track): Document.
24391 (max-stores-to-track): Likewise.
24392 * gimple-ssa-store-merging.c (pass_store_merging::m_n_chains):
24394 (pass_store_merging::m_n_stores): Likewise.
24395 (pass_store_merging::terminate_and_process_chain): Update
24396 m_n_stores and m_n_chains.
24397 (pass_store_merging::process_store): Likewise. Terminate
24398 oldest chains if the number of stores or chains get too large.
24399 (imm_store_chain_info::terminate_and_process_chain): Dump
24402 2021-02-11 Eric Botcazou <ebotcazou@adacore.com>
24404 * config/i386/winnt.c (i386_pe_seh_unwind_emit): When switching to
24405 the cold section, emit a nop before the directive if the previous
24406 active instruction can throw.
24408 2021-02-11 Peter Bergner <bergner@linux.ibm.com>
24411 * config/rs6000/predicates.md (mma_assemble_input_operand): Restrict
24412 memory addresses that are legal for quad word accesses.
24414 2021-02-11 Andrea Corallo <andrea.corallo@arm.com>
24417 * config/arm/thumb2.md (*doloop_end_internal): Generate
24418 alternative sequence to handle long range branches.
24420 2021-02-11 Joel Hutton <joel.hutton@arm.com>
24422 PR tree-optimization/98772
24423 * optabs-tree.c (supportable_half_widening_operation): New function
24424 to check for supportable V8QI->V8HI widening patterns.
24425 * optabs-tree.h (supportable_half_widening_operation): New function.
24426 * tree-vect-stmts.c (vect_create_half_widening_stmts): New function
24427 to create promotion stmts for V8QI->V8HI widening patterns.
24428 (vectorizable_conversion): Add case for V8QI->V8HI.
24430 2021-02-11 Richard Biener <rguenther@suse.de>
24432 * sparseset.h (SPARSESET_ELT_BITS): Remove.
24433 (SPARSESET_ELT_TYPE): Use unsigned int.
24434 * fwprop.c: Do not include sparseset.h.
24436 2021-02-10 Jakub Jelinek <jakub@redhat.com>
24439 * varasm.c (declare_weak): For -fsyntax-only, allow even
24440 TREE_ASM_WRITTEN function decls.
24442 2021-02-10 Jakub Jelinek <jakub@redhat.com>
24445 * config/i386/sse.md (fix<fixunssuffix>_truncv2sfv2di2,
24446 <insn>v8qiv8hi2, <insn>v8qiv8si2, <insn>v4qiv4si2, <insn>v4hiv4si2,
24447 <insn>v8qiv8di2, <insn>v4qiv4di2, <insn>v2qiv2di2, <insn>v4hiv4di2,
24448 <insn>v2hiv2di2, <insn>v2siv2di2): Force operands[1] into REG before
24449 calling simplify_gen_subreg on it.
24451 2021-02-10 Martin Liska <mliska@suse.cz>
24453 * config/nvptx/nvptx.c (nvptx_option_override): Use
24454 flag_patchable_function_entry instead of the removed
24455 function_entry_patch_area_size.
24457 2021-02-10 Martin Liska <mliska@suse.cz>
24459 PR tree-optimization/99002
24460 PR tree-optimization/99026
24461 * gimple-if-to-switch.cc (if_chain::is_beneficial): Fix memory
24462 leak when adjacent cases are merged.
24463 * tree-switch-conversion.c (switch_decision_tree::analyze_switch_statement): Use
24465 (make_pass_lower_switch): Remove trailing whitespace.
24466 * tree-switch-conversion.h (release_clusters): New.
24468 2021-02-10 Richard Biener <rguenther@suse.de>
24470 PR rtl-optimization/99054
24471 * cfgrtl.c (rtl-optimization/99054): Return an auto_vec.
24472 (fixup_partitions): Adjust.
24473 (rtl_verify_edges): Likewise.
24475 2021-02-10 Jakub Jelinek <jakub@redhat.com>
24477 PR middle-end/99007
24478 * gimplify.c (gimplify_scan_omp_clauses): For MEM_REF on reductions,
24479 temporarily disable gimplify_ctxp->into_ssa around gimplify_expr
24482 2021-02-10 Richard Biener <rguenther@suse.de>
24485 * ipa-pure-const.c (propagate_malloc): Use an auto_vec<>
24488 2021-02-10 Richard Biener <rguenther@suse.de>
24490 PR tree-optimization/99024
24491 * tree-vect-loop.c (_loop_vec_info::~_loop_vec_info): Only
24492 clear loop->aux if it is associated with the destroyed loop_vinfo.
24494 2021-02-10 Martin Liska <mliska@suse.cz>
24496 PR tree-optimization/99002
24497 * gimple-if-to-switch.cc (find_conditions): Fix memory leak
24500 2021-02-10 Martin Liska <mliska@suse.cz>
24503 * ipa-icf.c (sem_item::add_reference): Fix memory leak when
24504 a reference exists.
24506 2021-02-10 Jakub Jelinek <jakub@redhat.com>
24509 * dwarf2out.c (prune_unused_types_walk): Mark DW_TAG_variable DIEs
24510 at class scope for DWARF5+.
24512 2021-02-09 Eric Botcazou <ebotcazou@adacore.com>
24514 PR rtl-optimization/96015
24515 * reorg.c (skip_consecutive_labels): Minor comment tweaks.
24516 (relax_delay_slots): When deleting a jump to the next active
24517 instruction over a barrier, first delete the barrier if the
24518 jump is the only way to reach the target label.
24520 2021-02-09 Andre Vieira <andre.simoesdiasvieira@arm.com>
24522 * config/aarch64/aarch64-cost-tables.h: Add entries for vect.mul.
24523 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Use vect.mul for
24524 vector multiplies and vect.alu for SSRA.
24525 * config/arm/aarch-common-protos.h (struct vector_cost_table): Define
24526 vect.mul cost field.
24527 * config/arm/aarch-cost-tables.h: Add entries for vect.mul.
24528 * config/arm/arm.c: Likewise.
24530 2021-02-09 Richard Biener <rguenther@suse.de>
24532 PR tree-optimization/98863
24533 * tree-ssa-sccvn.h (vn_avail::next_undo): Add.
24534 * tree-ssa-sccvn.c (last_pushed_avail): New global.
24535 (rpo_elim::eliminate_push_avail): Chain pushed avails.
24536 (unwind_state::avail_top): Add.
24537 (do_unwind): Rewrite unwinding of avail entries.
24538 (do_rpo_vn): Initialize last_pushed_avail and
24539 avail_top of the undo state.
24541 2021-02-09 Jakub Jelinek <jakub@redhat.com>
24543 PR middle-end/99004
24544 * calls.c (maybe_warn_rdwr_sizes): Change s0 and s1 type from
24545 const char * to char * and free those pointers after use.
24547 2021-02-09 Richard Biener <rguenther@suse.de>
24549 PR tree-optimization/99017
24550 * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Allow
24551 zero vector cost entries.
24553 2021-02-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
24555 PR middle-end/98974
24556 * tree-vect-stmts.c (vectorizable_condition): Remove shadow vec_num
24557 parameter in vectorizable_condition.
24559 2021-02-08 Richard Biener <rguenther@suse.de>
24562 * tree.c (walk_tree_1): Walk VECTOR_CST elements.
24564 2021-02-08 Martin Liska <mliska@suse.cz>
24567 * cfgexpand.c (pass_expand::execute): Parse per-function option
24568 flag_patchable_function_entry and use it.
24569 * common.opt: Remove function_entry_patch_area_size and
24570 function_entry_patch_area_start global variables.
24571 * opts.c (parse_and_check_patch_area): New function.
24572 (common_handle_option): Use it.
24573 * opts.h (parse_and_check_patch_area): New function.
24574 * toplev.c (process_options): Parse and use
24575 function_entry_patch_area_size.
24577 2021-02-08 Martin Sebor <msebor@redhat.com>
24579 * doc/extend.texi (attribute malloc): Correct typos.
24581 2021-02-05 Nathan Sidwell <nathan@acm.org>
24584 * gcc.c (driver::maybe_run_linker): Check for input file
24585 accessibility if not linking.
24587 2021-02-05 Richard Biener <rguenther@suse.de>
24589 PR tree-optimization/98855
24590 * tree-vectorizer.h (add_stmt_cost): New overload.
24591 * tree-vect-slp.c (li_cost_vec_cmp): New.
24592 (vect_bb_slp_scalar_cost): Cost individual loop regions
24593 separately. Account for the scalar instance root stmt.
24595 2021-02-05 Tom de Vries <tdevries@suse.de>
24598 * tree-switch-conversion.c (jump_table_cluster::emit): Add loc
24600 (bit_test_cluster::emit): Reuse location_t for newly created
24602 (switch_decision_tree::try_switch_expansion): Preserve
24604 * tree-switch-conversion.h: Change function signatures.
24606 2021-02-05 Jakub Jelinek <jakub@redhat.com>
24609 * config/i386/i386-options.c (m_NONE, m_ALL): Define.
24610 * config/i386/x86-tune.def (X86_TUNE_BRANCH_PREDICTION_HINTS,
24611 X86_TUNE_PROMOTE_QI_REGS): Use m_NONE instead of 0U.
24612 (X86_TUNE_QIMODE_MATH): Use m_ALL instead of ~0U.
24614 2021-02-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24616 * config/aarch64/aarch64-simd-builtins.def (get_high): Define builtin.
24617 * config/aarch64/aarch64-simd.md (aarch64_get_high<mode>): Define.
24618 * config/aarch64/arm_neon.h (__GET_HIGH): Delete.
24619 (vget_high_f16): Reimplement using new builtin.
24620 (vget_high_f32): Likewise.
24621 (vget_high_f64): Likewise.
24622 (vget_high_p8): Likewise.
24623 (vget_high_p16): Likewise.
24624 (vget_high_p64): Likewise.
24625 (vget_high_s8): Likewise.
24626 (vget_high_s16): Likewise.
24627 (vget_high_s32): Likewise.
24628 (vget_high_s64): Likewise.
24629 (vget_high_u8): Likewise.
24630 (vget_high_u16): Likewise.
24631 (vget_high_u32): Likewise.
24632 (vget_high_u64): Likewise.
24634 2021-02-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24636 * config/aarch64/aarch64-simd-builtins.def (get_low): Define builtin.
24637 * config/aarch64/aarch64-simd.md (aarch64_get_low<mode>): Define.
24638 * config/aarch64/arm_neon.h (__GET_LOW): Delete.
24639 (vget_low_f16): Reimplement using new builtin.
24640 (vget_low_f32): Likewise.
24641 (vget_low_f64): Likewise.
24642 (vget_low_p8): Likewise.
24643 (vget_low_p16): Likewise.
24644 (vget_low_p64): Likewise.
24645 (vget_low_s8): Likewise.
24646 (vget_low_s16): Likewise.
24647 (vget_low_s32): Likewise.
24648 (vget_low_s64): Likewise.
24649 (vget_low_u8): Likewise.
24650 (vget_low_u16): Likewise.
24651 (vget_low_u32): Likewise.
24652 (vget_low_u64): Likewise.
24654 2021-02-05 Kito Cheng <kito.cheng@sifive.com>
24656 * gcc.c (print_multilib_info): Check all required argument is provided
24659 2021-02-05 liuhongt <hongtao.liu@intel.com>
24662 * config/i386/i386-expand.c (ix86_expand_sse_cmp): Don't
24663 generate integer mask comparison for 128/256-bits vector when
24664 op_true/op_false is NULL_RTX or CONSTM1_RTX/CONST0_RTX. Also
24665 delete redundant !maskcmp condition.
24666 (ix86_expand_int_vec_cmp): Ditto but no redundant deletion
24668 (ix86_expand_sse_movcc): Delete definition of maskcmp, add the
24669 condition directly to if (maskcmp), add extra check for
24670 cmpmode, it should be MODE_INT.
24671 (ix86_expand_fp_vec_cmp): Pass NULL to ix86_expand_sse_cmp's
24672 parameters op_true/op_false.
24673 (ix86_use_mask_cmp_p): New.
24675 2021-02-05 liuhongt <hongtao.liu@intel.com>
24678 * config/i386/x86-tune.def (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL):
24679 Remove m_GENERIC from ~list.
24680 (X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): Ditto.
24682 2021-02-04 David Malcolm <dmalcolm@redhat.com>
24685 * diagnostic-show-locus.c (compatible_locations_p): Require
24686 locations in the same macro map to be either both from the
24687 macro definition, or both from the macro arguments.
24689 2021-02-04 Jonathan Wright <jonathan.wright@arm.com>
24691 * config/aarch64/aarch64-simd-builtins.def: Add
24692 [su]mull_hi_lane[q] builtin generator macros.
24693 * config/aarch64/aarch64-simd.md
24694 (aarch64_<su>mull_hi_lane<mode>_insn): Define.
24695 (aarch64_<su>mull_hi_lane<mode>): Define.
24696 (aarch64_<su>mull_hi_laneq<mode>_insn): Define.
24697 (aarch64_<su>mull_hi_laneq<mode>): Define.
24698 * config/aarch64/arm_neon.h (vmull_high_lane_s16): Use RTL
24699 builtin instead of inline asm.
24700 (vmull_high_lane_s32): Likewise.
24701 (vmull_high_lane_u16): Likewise.
24702 (vmull_high_lane_u32): Likewise.
24703 (vmull_high_laneq_s16): Likewise.
24704 (vmull_high_laneq_s32): Likewise.
24705 (vmull_high_laneq_u16): Likewise.
24706 (vmull_high_laneq_u32): Liekwise.
24708 2021-02-04 Jonathan Wright <jonathan.wright@arm.com>
24710 * config/aarch64/aarch64-simd-builtins.def: Add [su]mull_hi_n
24711 builtin generator macros.
24712 * config/aarch64/aarch64-simd.md
24713 (aarch64_<su>mull_hi_n<mode>_insn): Define.
24714 (aarch64_<su>mull_hi_n<mode>): Define.
24715 * config/aarch64/arm_neon.h (vmull_high_n_s16): Use RTL builtin
24716 instead of inline asm.
24717 (vmull_high_n_s32): Likewise.
24718 (vmull_high_n_u16): Likewise.
24719 (vmull_high_n_u32): Likewise.
24721 2021-02-04 Richard Biener <rguenther@suse.de>
24723 PR tree-optimization/98855
24724 * tree-vect-loop.c (vectorizable_phi): Do not cost
24725 single-argument PHIs.
24726 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Likewise.
24727 * tree-vect-stmts.c (vectorizable_bswap): Also perform
24728 costing for SLP operation.
24730 2021-02-04 Martin Liska <mliska@suse.cz>
24732 * doc/extend.texi: Mention -mprefer-vector-width in target
24735 2021-02-03 Martin Sebor <msebor@redhat.com>
24737 PR tree-optimization/98937
24738 * tree-ssa-strlen.c (strlen_dom_walker::~strlen_dom_walker): Define.
24739 Flush pointer_query cache.
24741 2021-02-03 Aaron Sawdey <acsawdey@linux.ibm.com>
24743 * config/rs6000/genfusion.pl (gen_2logical): Add missing
24744 fixes based on patch review.
24745 * config/rs6000/fusion.md: Regenerate file.
24747 2021-02-03 Aaron Sawdey <acsawdey@linux.ibm.com>
24749 * config/rs6000/t-rs6000: Comment out auto generation of
24752 2021-02-03 Andrew Stubbs <ams@codesourcery.com>
24754 * config/gcn/gcn-opts.h (enum processor_type): Add PROCESSOR_GFX908.
24755 * config/gcn/gcn.c (gcn_omp_device_kind_arch_isa): Add gfx908.
24756 (output_file_start): Add gfx908.
24757 * config/gcn/gcn.opt (gpu_type): Add gfx908.
24758 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add march=gfx908.
24759 (MULTILIB_DIRNAMES): Add gfx908.
24760 * config/gcn/mkoffload.c (EF_AMDGPU_MACH_AMDGCN_GFX908): New define.
24761 (main): Recognize gfx908.
24762 * config/gcn/t-omp-device: Add gfx908.
24764 2021-02-03 Jonathan Wright <jonathan.wright@arm.com>
24766 * config/aarch64/aarch64-simd-builtins.def: Add
24767 [su]mlsl_hi_lane[q] builtin macro generators.
24768 * config/aarch64/aarch64-simd.md
24769 (aarch64_<su>mlsl_hi_lane<mode>_insn): Define.
24770 (aarch64_<su>mlsl_hi_lane<mode>): Define.
24771 (aarch64_<su>mlsl_hi_laneq<mode>_insn): Define.
24772 (aarch64_<su>mlsl_hi_laneq<mode>): Define.
24773 * config/aarch64/arm_neon.h (vmlsl_high_lane_s16): Use RTL
24774 builtin instead of inline asm.
24775 (vmlsl_high_lane_s32): Likewise.
24776 (vmlsl_high_lane_u16): Likewise.
24777 (vmlsl_high_lane_u32): Likewise.
24778 (vmlsl_high_laneq_s16): Likewise.
24779 (vmlsl_high_laneq_s32): Likewise.
24780 (vmlsl_high_laneq_u16): Likewise.
24781 (vmlsl_high_laneq_u32): Likewise.
24782 (vmlal_high_laneq_u32): Likewise.
24784 2021-02-03 Jonathan Wright <jonathan.wright@arm.com>
24786 * config/aarch64/aarch64-simd-builtins.def: Add
24787 [su]mlal_hi_lane[q] builtin generator macros.
24788 * config/aarch64/aarch64-simd.md
24789 (aarch64_<su>mlal_hi_lane<mode>_insn): Define.
24790 (aarch64_<su>mlal_hi_lane<mode>): Define.
24791 (aarch64_<su>mlal_hi_laneq<mode>_insn): Define.
24792 (aarch64_<su>mlal_hi_laneq<mode>): Define.
24793 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Use RTL
24794 builtin instead of inline asm.
24795 (vmlal_high_lane_s32): Likewise.
24796 (vmlal_high_lane_u16): Likewise.
24797 (vmlal_high_lane_u32): Likewise.
24798 (vmlal_high_laneq_s16): Likewise.
24799 (vmlal_high_laneq_s32): Likewise.
24800 (vmlal_high_laneq_u16): Likewise.
24801 (vmlal_high_laneq_u32): Likewise.
24803 2021-02-03 Jonathan Wright <jonathan.wright@arm.com>
24805 * config/aarch64/aarch64-simd-builtins.def: Add [su]mlsl_hi_n
24806 builtin generator macros.
24807 * config/aarch64/aarch64-simd.md (aarch64_<su>mlsl_hi_n<mode>_insn):
24809 (aarch64_<su>mlsl_hi_n<mode>): Define.
24810 * config/aarch64/arm_neon.h (vmlsl_high_n_s16): Use RTL builtin
24811 instead of inline asm.
24812 (vmlsl_high_n_s32): Likewise.
24813 (vmlsl_high_n_u16): Likewise.
24814 (vmlsl_high_n_u32): Likewise.
24816 2021-02-03 Jonathan Wright <jonathan.wright@arm.com>
24818 * config/aarch64/aarch64-simd-builtins.def: Add [su]mlal_hi_n
24819 builtin generator macros.
24820 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_hi_n<mode>_insn):
24822 (aarch64_<su>mlal_hi_n<mode>): Define.
24823 * config/aarch64/arm_neon.h (vmlal_high_n_s16): Use RTL builtin
24824 instead of inline asm.
24825 (vmlal_high_n_s32): Likewise.
24826 (vmlal_high_n_u16): Likewise.
24827 (vmlal_high_n_u32): Likewise.
24829 2021-02-03 Jonathan Wright <jonathan.wright@arm.com>
24831 * config/aarch64/aarch64-simd-builtins.def: Add RTL builtin
24833 * config/aarch64/aarch64-simd.md (*aarch64_<su>mlal_hi<mode>):
24835 (aarch64_<su>mlal_hi<mode>_insn): This.
24836 (aarch64_<su>mlal_hi<mode>): Define.
24837 * config/aarch64/arm_neon.h (vmlal_high_s8): Use RTL builtin
24838 instead of inline asm.
24839 (vmlal_high_s16): Likewise.
24840 (vmlal_high_s32): Likewise.
24841 (vmlal_high_u8): Likewise.
24842 (vmlal_high_u16): Likewise.
24843 (vmlal_high_u32): Likewise.
24845 2021-02-03 Ilya Leoshkevich <iii@linux.ibm.com>
24847 * lra-spills.c (remove_pseudos): Call lra_update_insn_recog_data()
24848 after calling alter_subreg() on a (mem).
24850 2021-02-03 Martin Liska <mliska@suse.cz>
24853 * lto-streamer-out.c (produce_lto_section): Fill up missing
24855 * lto-streamer.h (struct lto_section): Add _padding field.
24857 2021-02-03 Richard Biener <rguenther@suse.de>
24859 * lto-streamer.c (lto_get_section_name): Free temporary
24861 * tree-loop-distribution.c
24862 (loop_distribution::merge_dep_scc_partitions): Free edge data.
24864 2021-02-03 Jakub Jelinek <jakub@redhat.com>
24866 PR middle-end/97487
24867 * ifcvt.c (noce_can_force_operand): New function.
24868 (noce_emit_move_insn): Use it.
24869 (noce_try_sign_mask): Likewise. Formatting fix.
24871 2021-02-03 Jakub Jelinek <jakub@redhat.com>
24873 PR middle-end/97971
24874 * lra-constraints.c (process_alt_operands): For inline asm, don't call
24875 fatal_insn, but instead return false.
24877 2021-02-03 Jakub Jelinek <jakub@redhat.com>
24879 PR tree-optimization/98287
24880 * config/i386/mmx.md (<insn><mode>3): For shifts don't enable expander
24883 2021-02-03 Tamar Christina <tamar.christina@arm.com>
24885 PR tree-optimization/98928
24886 * tree-vect-loop.c (vect_analyze_loop_2): Change
24887 STMT_VINFO_SLP_VECT_ONLY to STMT_VINFO_SLP_VECT_ONLY_PATTERN.
24888 * tree-vect-slp-patterns.c (complex_pattern::build): Likewise.
24889 * tree-vectorizer.h (STMT_VINFO_SLP_VECT_ONLY_PATTERN): New.
24890 (class _stmt_vec_info): Add slp_vect_pattern_only_p.
24892 2021-02-02 Richard Biener <rguenther@suse.de>
24894 * gimple-loop-interchange.cc (prepare_data_references):
24896 * gimple-loop-jam.c (tree_loop_unroll_and_jam): Likewise.
24897 * tree-ssa-loop-im.c (hoist_memory_references): Likewise.
24898 * tree-vect-stmts.c (vectorizable_condition): Do not
24900 (vectorizable_comparison): Likewise.
24902 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24904 * config/aarch64/aarch64-simd-builtins.def (ursqrte): Define builtin.
24905 * config/aarch64/aarch64-simd.md (aarch64_ursqrte<mode>): New pattern.
24906 * config/aarch64/arm_neon.h (vrsqrte_u32): Reimplement using builtin.
24907 (vrsqrteq_u32): Likewise.
24909 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24911 * config/aarch64/aarch64-simd-builtins.def (sqxtun2): Define builtin.
24912 * config/aarch64/aarch64-simd.md (aarch64_sqxtun2<mode>_le): Define.
24913 (aarch64_sqxtun2<mode>_be): Likewise.
24914 (aarch64_sqxtun2<mode>): Likewise.
24915 * config/aarch64/arm_neon.h (vqmovun_high_s16): Reimplement using builtin.
24916 (vqmovun_high_s32): Likewise.
24917 (vqmovun_high_s64): Likewise.
24918 * config/aarch64/iterators.md (UNSPEC_SQXTUN2): Define.
24920 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24922 * config/aarch64/aarch64-simd-builtins.def (bfdot_lane, bfdot_laneq): Use
24924 (bfmlalb_lane, bfmlalt_lane, bfmlalb_lane_q, bfmlalt_lane_q): Use FP flags.
24926 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24928 * config/aarch64/aarch64-simd-builtins.def (fcmla_lane0, fcmla_lane90,
24929 fcmla_lane180, fcmla_lane270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
24930 fcmlaq_lane270, scvtf, ucvtf, fcvtzs, fcvtzu, scvtfsi, scvtfdi, ucvtfsi,
24931 ucvtfdi, fcvtzshf, fcvtzuhf, fmlal_lane_low, fmlsl_lane_low,
24932 fmlal_laneq_low, fmlsl_laneq_low, fmlalq_lane_low, fmlslq_lane_low,
24933 fmlalq_laneq_low, fmlslq_laneq_low, fmlal_lane_high, fmlsl_lane_high,
24934 fmlal_laneq_high, fmlsl_laneq_high, fmlalq_lane_high, fmlslq_lane_high,
24935 fmlalq_laneq_high, fmlslq_laneq_high): Use FP flags.
24937 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24939 * config/aarch64/aarch64-builtins.c (FLAG_LOAD): Define.
24940 * config/aarch64/aarch64-simd-builtins.def (ld1x2, ld2, ld3, ld4, ld2r,
24941 ld3r, ld4r, ld1, ld1x3, ld1x4): Use LOAD flags.
24943 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24945 * config/aarch64/aarch64-simd-builtins.def (combine, zip1, zip2,
24946 uzp1, uzp2, trn1, trn2, simd_bsl): Use AUTO_FP flags.
24948 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24950 * config/aarch64/aarch64-simd-builtins.def (clrsb, clz, ctz, popcount,
24951 vec_smult_lane_, vec_smlal_lane_, vec_smult_laneq_, vec_smlal_laneq_,
24952 vec_umult_lane_, vec_umlal_lane_, vec_umult_laneq_, vec_umlal_laneq_,
24953 ashl, sshl, ushl, srshl, urshl, sdot_lane, udot_lane, sdot_laneq,
24954 udot_laneq, usdot_lane, usdot_laneq, sudot_lane, sudot_laneq, ashr,
24955 ashr_simd, lshr, lshr_simd, srshr_n, urshr_n, ssra_n, usra_n, srsra_n,
24956 ursra_n, sshll_n, ushll_n, sshll2_n, ushll2_n, ssri_n, usri_n, ssli_n,
24957 ssli_n, usli_n, bswap, rbit, simd_bsl, eor3q, rax1q, xarq, bcaxq): Use
24958 NONE builtin flags.
24960 2021-02-02 Jakub Jelinek <jakub@redhat.com>
24962 PR tree-optimization/98848
24963 * tree-vect-patterns.c (vect_recog_over_widening_pattern): Punt if
24964 STMT_VINFO_DEF_TYPE (last_stmt_info) is vect_reduction_def.
24966 2021-02-02 Kito Cheng <kito.cheng@sifive.com>
24969 * expr.c: Check mode before calling store_expr.
24971 2021-02-02 Christophe Lyon <christophe.lyon@linaro.org>
24973 * config/arm/iterators.md (supf): Remove VORNQ_S and VORNQ_U.
24975 * config/arm/mve.md (mve_vornq_s<mode>): New entry for vorn
24976 instruction using expression ior.
24977 (mve_vornq_u<mode>): New expander.
24978 (mve_vornq_f<mode>): Use ior code instead of unspec.
24979 * config/arm/unspecs.md (VORNQ_S, VORNQ_U, VORNQ_F): Remove.
24981 2021-02-02 Alexandre Oliva <oliva@adacore.com>
24983 * tree-nested.c (convert_nonlocal_reference_op): Move
24984 current_function_decl restore after re-gimplification.
24985 (convert_local_reference_op): Likewise.
24987 2021-02-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24989 * config/aarch64/aarch64-simd-builtins.def (rshrn, rshrn2):
24991 * config/aarch64/aarch64-simd.md (aarch64_rshrn<mode>_insn_le):
24993 (aarch64_rshrn<mode>_insn_be): Likewise.
24994 (aarch64_rshrn<mode>): Likewise.
24995 (aarch64_rshrn2<mode>_insn_le): Likewise.
24996 (aarch64_rshrn2<mode>_insn_be): Likewise.
24997 (aarch64_rshrn2<mode>): Likewise.
24998 * config/aarch64/aarch64.md (unspec): Add UNSPEC_RSHRN.
24999 * config/aarch64/arm_neon.h (vrshrn_high_n_s16): Reimplement
25001 (vrshrn_high_n_s32): Likewise.
25002 (vrshrn_high_n_s64): Likewise.
25003 (vrshrn_high_n_u16): Likewise.
25004 (vrshrn_high_n_u32): Likewise.
25005 (vrshrn_high_n_u64): Likewise.
25006 (vrshrn_n_s16): Likewise.
25007 (vrshrn_n_s32): Likewise.
25008 (vrshrn_n_s64): Likewise.
25009 (vrshrn_n_u16): Likewise.
25010 (vrshrn_n_u32): Likewise.
25011 (vrshrn_n_u64): Likewise.
25013 2021-02-01 Sergei Trofimovich <siarheit@google.com>
25015 PR tree-optimization/98499
25016 * ipa-modref.c (analyze_ssa_name_flags): treat RVO
25017 conservatively and assume all possible side-effects.
25019 2021-02-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25021 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi,
25022 vec_unpacku_hi_): Define builtins.
25023 * config/aarch64/arm_neon.h (vmovl_high_s8): Reimplement using
25025 (vmovl_high_s16): Likewise.
25026 (vmovl_high_s32): Likewise.
25027 (vmovl_high_u8): Likewise.
25028 (vmovl_high_u16): Likewise.
25029 (vmovl_high_u32): Likewise.
25031 2021-02-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25033 * config/aarch64/aarch64-simd-builtins.def (sabdl, uabdl):
25035 * config/aarch64/aarch64-simd.md (aarch64_<sur>abdl<mode>): New
25037 * config/aarch64/aarch64.md (unspec): Define UNSPEC_SABDL,
25039 * config/aarch64/arm_neon.h (vabdl_s8): Reimplemet using
25041 (vabdl_s16): Likewise.
25042 (vabdl_s32): Likewise.
25043 (vabdl_u8): Likewise.
25044 (vabdl_u16): Likewise.
25045 (vabdl_u32): Likewise.
25046 * config/aarch64/iterators.md (ABDL): New int iterator.
25047 (sur): Handle UNSPEC_SABDL, UNSPEC_UABDL.
25049 2021-02-01 Martin Sebor <msebor@redhat.com>
25051 * tree.h (BLOCK_VARS): Add comment.
25052 (BLOCK_SUBBLOCKS): Same.
25053 (BLOCK_SUPERCONTEXT): Same.
25054 (BLOCK_ABSTRACT_ORIGIN): Same.
25055 (inlined_function_outer_scope_p): Same.
25057 2021-02-01 Martin Sebor <msebor@redhat.com>
25059 PR middle-end/97172
25060 * attribs.c (attr_access::free_lang_data): Define new function.
25061 * attribs.h (attr_access::free_lang_data): Declare new function.
25063 2021-02-01 Richard Biener <rguenther@suse.de>
25065 * vec.h (auto_vec::auto_vec): Add memory stat parameters
25067 * bitmap.h (auto_bitmap::auto_bitmap): Likewise.
25069 2021-02-01 Tamar Christina <tamar.christina@arm.com>
25071 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_n<mode>,
25072 aarch64_<su>mlsl<mode>, aarch64_<su>mlsl_n<mode>): Flip mult operands.
25074 2021-02-01 Richard Biener <rguenther@suse.de>
25076 PR rtl-optimization/98863
25077 * config/i386/i386-features.c (convert_scalars_to_vector):
25078 Set DF_RD_PRUNE_DEAD_DEFS.
25080 2021-01-31 Eric Botcazou <ebotcazou@adacore.com>
25082 * system.h (SIZE_MAX): Define if not already defined.
25084 2021-01-30 Aaron Sawdey <acsawdey@linux.ibm.com>
25086 * config/rs6000/genfusion.pl (gen_2logical): New function to
25087 generate patterns for logical-logical fusion.
25088 * config/rs6000/fusion.md: Regenerated patterns.
25089 * config/rs6000/rs6000-cpus.def: Add
25090 OPTION_MASK_P10_FUSION_2LOGICAL.
25091 * config/rs6000/rs6000.c (rs6000_option_override_internal):
25092 Enable logical-logical fusion for p10.
25093 * config/rs6000/rs6000.opt: Add -mpower10-fusion-2logical.
25095 2021-01-30 David Edelsohn <dje.gcc@gmail.com>
25097 * config/rs6000/rs6000.opt: Add periods to new AIX options.
25099 2021-01-30 David Edelsohn <dje.gcc@gmail.com>
25101 * config/rs6000/rs6000.opt (mabi=vec-extabi): New.
25102 (mabi=vec-default): New.
25103 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
25104 __EXTABI__ for AIX Vector extended ABI.
25105 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print AIX Vector
25107 (conditional_register_usage): If AIX vec_extabi enabled, vs20-vs31
25109 * doc/invoke.texi (PowerPC mabi): Add AIX vec-extabi and vec-default.
25111 2021-01-30 Jakub Jelinek <jakub@redhat.com>
25113 * config/i386/i386-features.c (remove_partial_avx_dependency): Clear
25114 DF_DEFER_INSN_RESCAN after calling df_process_deferred_rescans.
25116 2021-01-29 Vladimir N. Makarov <vmakarov@redhat.com>
25119 * lra-constraints.c (in_class_p): Don't narrow class only for REG
25122 2021-01-29 Will Schmidt <will_schmidt@vnet.ibm.com>
25124 * config/rs6000/rs6000-call.c (rs6000_expand_binup_builtin): Add
25125 clauses for CODE_FOR_vsx_xvcvuxddp_scale and
25126 CODE_FOR_vsx_xvcvsxddp_scale to the parameter checking code.
25128 2021-01-29 Andrew MacLeod <amacleod@redhat.com>
25130 PR tree-optimization/98866
25131 * gimple-range-gori.h (gori_compute:set_range_invariant): New.
25132 * gimple-range-gori.cc (gori_map::set_range_invariant): New.
25133 (gori_map::m_maybe_invariant): Rename from all_outgoing.
25134 (gori_map::gori_map): Rename all_outgoing to m_maybe_invariant.
25135 (gori_map::is_export_p): Ditto.
25136 (gori_map::calculate_gori): Ditto.
25137 (gori_compute::set_range_invariant): New.
25138 * gimple-range.cc (gimple_ranger::range_of_stmt): Set range
25139 invariant for pointers evaluating to [1, +INF].
25141 2021-01-29 Richard Biener <rguenther@suse.de>
25143 PR rtl-optimization/98863
25144 * config/i386/i386-features.c (remove_partial_avx_dependency):
25145 Do not perform DF analysis.
25146 (pass_data_remove_partial_avx_dependency): Remove
25149 2021-01-29 Jonathan Wright <jonathan.wright@arm.com>
25151 * config/aarch64/aarch64-simd-builtins.def: Add [su]mull_n
25152 builtin generator macros.
25153 * config/aarch64/aarch64-simd.md (aarch64_<su>mull_n<mode>):
25155 * config/aarch64/arm_neon.h (vmull_n_s16): Use RTL builtin
25156 instead of inline asm.
25157 (vmull_n_s32): Likewise.
25158 (vmull_n_u16): Likewise.
25159 (vmull_n_u32): Likewise.
25161 2021-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25163 * config/aarch64/aarch64-simd-builtins.def (sabdl2, uabdl2):
25165 * config/aarch64/aarch64-simd.md (aarch64_<sur>abdl2<mode>_3):
25167 (aarch64_<sur>abdl2<mode>): ... This.
25168 (<sur>sadv16qi): Adjust use of above.
25169 * config/aarch64/arm_neon.h (vabdl_high_s8): Reimplement using
25171 (vabdl_high_s16): Likewise.
25172 (vabdl_high_s32): Likewise.
25173 (vabdl_high_u8): Likewise.
25174 (vabdl_high_u16): Likewise.
25175 (vabdl_high_u32): Likewise.
25177 2021-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25179 * config/aarch64/aarch64-simd-builtins.def (sabal2): Define
25181 (uabal2): Likewise.
25182 * config/aarch64/aarch64-simd.md (aarch64_<sur>abal2<mode>): New
25184 * config/aarch64/aarch64.md (unspec): Add UNSPEC_SABAL2 and
25186 * config/aarch64/arm_neon.h (vabal_high_s8): Reimplement using
25188 (vabal_high_s16): Likewise.
25189 (vabal_high_s32): Likewise.
25190 (vabal_high_u8): Likewise.
25191 (vabal_high_u16): Likewise.
25192 (vabal_high_u32): Likewise.
25193 * config/aarch64/iterators.md (ABAL2): New mode iterator.
25194 (sur): Handle UNSPEC_SABAL2, UNSPEC_UABAL2.
25196 2021-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25198 * config/aarch64/aarch64-simd-builtins.def (sabal): Define
25201 * config/aarch64/aarch64-simd.md (aarch64_<sur>abal<mode>_4):
25203 (aarch64_<sur>abal<mode>): ... This
25204 (<sur>sadv16qi): Adust use of the above.
25205 * config/aarch64/arm_neon.h (vabal_s8): Reimplement using
25207 (vabal_s16): Likewise.
25208 (vabal_s32): Likewise.
25209 (vabal_u8): Likewise.
25210 (vabal_u16): Likewise.
25211 (vabal_u32): Likewise.
25213 2021-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25215 * config/aarch64/aarch64-simd-builtins.def (saddlv, uaddlv):
25217 * config/aarch64/aarch64-simd.md (aarch64_<su>addlv<mode>):
25219 * config/aarch64/arm_neon.h (vaddlv_s8): Reimplement using
25221 (vaddlv_s16): Likewise.
25222 (vaddlv_u8): Likewise.
25223 (vaddlv_u16): Likewise.
25224 (vaddlvq_s8): Likewise.
25225 (vaddlvq_s16): Likewise.
25226 (vaddlvq_s32): Likewise.
25227 (vaddlvq_u8): Likewise.
25228 (vaddlvq_u16): Likewise.
25229 (vaddlvq_u32): Likewise.
25230 (vaddlv_s32): Likewise.
25231 (vaddlv_u32): Likewise.
25232 * config/aarch64/iterators.md (VDQV_L): New mode iterator.
25233 (unspec): Add UNSPEC_SADDLV, UNSPEC_UADDLV.
25234 (Vwstype): New mode attribute.
25236 (VWIDE_S): Likewise.
25237 (USADDLV): New int iterator.
25238 (su): Handle UNSPEC_SADDLV, UNSPEC_UADDLV.
25240 2021-01-29 Jonathan Wright <jonathan.wright@arm.com>
25242 * config/aarch64/aarch64-simd-builtins.def: Add [su]mlsl_lane[q]
25243 builtin generator macros.
25244 * config/aarch64/aarch64-simd.md (aarch64_vec_<su>mlsl_lane<Qlane>):
25246 * config/aarch64/arm_neon.h (vmlsl_lane_s16): Use RTL builtin
25247 instead of inline asm.
25248 (vmlsl_lane_s32): Likewise.
25249 (vmlsl_lane_u16): Likewise.
25250 (vmlsl_lane_u32): Likewise.
25251 (vmlsl_laneq_s16): Likewise.
25252 (vmlsl_laneq_s32): Likewise.
25253 (vmlsl_laneq_u16): Likewise.
25254 (vmlsl_laneq_u32): Likewise.
25256 2021-01-29 Richard Biener <rguenther@suse.de>
25258 * doc/invoke.texi (--param max-gcse-memory): Document unit
25260 * gcse.c (gcse_or_cprop_is_too_expensive): Adjust.
25261 * params.opt (--param max-gcse-memory): Adjust default and
25262 document unit of size.
25264 2021-01-29 Richard Biener <rguenther@suse.de>
25266 PR rtl-optimization/98863
25267 * gcse.c (gcse_or_cprop_is_too_expensive): Use unsigned
25268 HOST_WIDE_INT for the memory estimate.
25270 2021-01-29 Bin Cheng <bin.cheng@linux.alibaba.com>
25271 Richard Biener <rguenther@suse.de>
25273 PR tree-optimization/97627
25274 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions):
25275 Do not analyze fake edges.
25277 2021-01-29 Richard Biener <rguenther@suse.de>
25279 PR rtl-optimization/98144
25280 * df.h (df_mir_bb_info): Add con_visited member.
25281 * df-problems.c (df_mir_alloc): Initialize con_visited,
25282 do not fully populate IN and OUT.
25283 (df_mir_reset): Likewise.
25284 (df_mir_confluence_0): Set con_visited.
25285 (df_mir_confluence_n): Properly handle implicitely
25286 fully populated IN and OUT as designated by con_visited
25287 and update con_visited accordingly.
25289 2021-01-29 Jakub Jelinek <jakub@redhat.com>
25292 * config/arm/vec-common.md (mve_vshlq_<supf><mode>,
25293 vashl<mode>3, vashr<mode>3, vlshr<mode>3): Add
25294 && !TARGET_REALLY_IWMMXT to conditions.
25296 2021-01-29 Jakub Jelinek <jakub@redhat.com>
25299 * cfgbuild.c (find_bb_boundaries): Reset debug_insn when seeing
25302 2021-01-28 Marek Polacek <polacek@redhat.com>
25305 * stor-layout.c (finalize_type_size): If we reset TYPE_USER_ALIGN in
25306 the main variant, maybe reset it in its variants too.
25307 * tree.c (check_base_type): Return true only if TYPE_USER_ALIGN match.
25308 (check_aligned_type): Check if TYPE_USER_ALIGN match.
25310 2021-01-28 Christophe Lyon <christophe.lyon@linaro.org>
25313 * config/arm/arm.c (arm_rtx_costs_internal): Adjust cost of vector
25314 of constant zero for comparisons.
25316 2021-01-28 Michael Meissner <meissner@linux.ibm.com>
25318 * config/rs6000/rs6000.c (rs6000_mangle_decl_assembler_name): Add
25319 support for mapping built-in function names for long double
25320 built-in functions if long double is IEEE 128-bit.
25322 2021-01-28 Jonathan Wright <jonathan.wright@arm.com>
25324 * config/aarch64/aarch64-simd-builtins.def: Add [su]mlsl_n
25325 builtin generator macros.
25326 * config/aarch64/aarch64-simd.md (aarch64_<su>mlsl_n<mode>):
25328 * config/aarch64/arm_neon.h (vmlsl_n_s16): Use RTL builtin
25329 instead of inline asm.
25330 (vmlsl_n_s32): Likewise.
25331 (vmlsl_n_u16): Likewise.
25332 (vmlsl_n_u32): Likewise.
25334 2021-01-28 Jonathan Wright <jonathan.wright@arm.com>
25336 * config/aarch64/aarch64-simd-builtins.def: Add [su]mlal_n
25337 builtin generator macros.
25338 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_n<mode>):
25340 * config/aarch64/arm_neon.h (vmlal_n_s16): Use RTL builtin
25341 instead of inline asm.
25342 (vmlal_n_s32): Likewise.
25343 (vmlal_n_u16): Likewise.
25344 (vmlal_n_u32): Likewise.
25346 2021-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25348 * config/aarch64/aarch64-simd-builtins.def (shrn2): Define
25350 * config/aarch64/aarch64-simd.md (aarch64_shrn2<mode>_insn_le):
25352 (aarch64_shrn2<mode>_insn_be): Likewise.
25353 (aarch64_shrn2<mode>): Likewise.
25354 * config/aarch64/arm_neon.h (vshrn_high_n_s16): Reimlplement
25356 (vshrn_high_n_s32): Likewise.
25357 (vshrn_high_n_s64): Likewise.
25358 (vshrn_high_n_u16): Likewise.
25359 (vshrn_high_n_u32): Likewise.
25360 (vshrn_high_n_u64): Likewise.
25362 2021-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25364 * config/aarch64/aarch64-simd-builtins.def (shrn): Define
25366 * config/aarch64/aarch64-simd.md (aarch64_shrn<mode>_insn_le):
25368 (aarch64_shrn<mode>_insn_be): Likewise.
25369 (aarch64_shrn<mode>): Likewise.
25370 * config/aarch64/arm_neon.h (vshrn_n_s16): Reimplement using
25372 (vshrn_n_s32): Likewise.
25373 (vshrn_n_s64): Likewise.
25374 (vshrn_n_u16): Likewise.
25375 (vshrn_n_u32): Likewise.
25376 (vshrn_n_u64): Likewise.
25377 * config/aarch64/iterators.md (vn_mode): New mode attribute.
25379 2021-01-28 Richard Biener <rguenther@suse.de>
25381 PR rtl-optimization/80960
25382 * dse.c (check_mem_read_rtx): Call get_addr on the
25385 2021-01-28 Xionghu Luo <luoxhu@linux.ibm.com>
25386 David Edelsohn <dje.gcc@gmail.com>
25389 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
25390 Don't generate VIEW_CONVERT_EXPR for fcode ALTIVEC_BUILTIN_VEC_INSERT
25392 * config/rs6000/rs6000-protos.h (rs6000_expand_vector_set_var):
25394 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Remove the
25395 wrapper call rs6000_expand_vector_set_var for cleanup. Call
25396 rs6000_expand_vector_set_var_p9 and rs6000_expand_vector_set_var_p8
25398 (rs6000_expand_vector_set_var): Delete.
25399 (rs6000_expand_vector_set_var_p9): Make static.
25400 (rs6000_expand_vector_set_var_p8): Make static.
25402 2021-01-28 Xing GUO <higuoxing@gmail.com>
25404 * common/config/riscv/riscv-common.c
25405 (riscv_subset_list::parsing_subset_version): Fix -march option parsing
25406 when `p` extension exists.
25408 2021-01-27 Vladimir N. Makarov <vmakarov@redhat.com>
25410 PR rtl-optimization/97684
25411 * ira.c (ira): Call ira_set_pseudo_classes before
25412 update_equiv_regs when it is necessary.
25414 2021-01-27 Jakub Jelinek <jakub@redhat.com>
25417 * config/aarch64/aarch64.md (*aarch64_bfxilsi_uxtw): Use
25418 %w0, %w1 and %2 instead of %0, %1 and %2.
25420 2021-01-27 Aaron Sawdey <acsawdey@linux.ibm.com>
25422 * config/rs6000/genfusion.pl: New script to generate
25423 define_insn_and_split patterns so combine can arrange fused
25424 instructions next to each other.
25425 * config/rs6000/fusion.md: New file, generated fused instruction
25426 patterns for combine.
25427 * config/rs6000/predicates.md (const_m1_to_1_operand): New predicate.
25428 (non_update_memory_operand): New predicate.
25429 * config/rs6000/rs6000-cpus.def: Add OPTION_MASK_P10_FUSION and
25430 OPTION_MASK_P10_FUSION_LD_CMPI to ISA_3_1_MASKS_SERVER and
25432 * config/rs6000/rs6000-protos.h (address_is_non_pfx_d_or_x): Add
25434 * config/rs6000/rs6000.c (rs6000_option_override_internal):
25435 Automatically set OPTION_MASK_P10_FUSION and
25436 OPTION_MASK_P10_FUSION_LD_CMPI if target is power10.
25437 (rs600_opt_masks): Allow -mpower10-fusion
25438 in function attributes.
25439 (address_is_non_pfx_d_or_x): New function.
25440 * config/rs6000/rs6000.h: Add MASK_P10_FUSION.
25441 * config/rs6000/rs6000.md: Include fusion.md.
25442 * config/rs6000/rs6000.opt: Add -mpower10-fusion
25443 and -mpower10-fusion-ld-cmpi.
25444 * config/rs6000/t-rs6000: Add dependencies involving fusion.md.
25446 2021-01-27 Jonathan Wright <jonathan.wright@arm.com>
25448 * config/aarch64/aarch64-simd-builtins.def: Add [su]mlal
25449 builtin generator macros.
25450 * config/aarch64/aarch64-simd.md (*aarch64_<su>mlal<mode>):
25452 (aarch64_<su>mlal<mode>): This.
25453 * config/aarch64/arm_neon.h (vmlal_s8): Use RTL builtin
25454 instead of inline asm.
25455 (vmlal_s16): Likewise.
25456 (vmlal_s32): Likewise.
25457 (vmlal_u8): Likewise.
25458 (vmlal_u16): Likewise.
25459 (vmlal_u32): Likewise.
25461 2021-01-27 Richard Biener <rguenther@suse.de>
25463 PR tree-optimization/98854
25464 * tree-vect-slp.c (vect_build_slp_tree_2): Also build
25465 PHIs from scalars when the number of CTORs matches the
25466 number of children.
25468 2021-01-27 Jonathan Wright <jonathan.wright@arm.com>
25470 * config/aarch64/aarch64-simd-builtins.def: Add mls_n builtin
25472 * config/aarch64/aarch64-simd.md (*aarch64_mls_elt_merge<mode>):
25474 (aarch64_mls_n<mode>): This.
25475 * config/aarch64/arm_neon.h (vmls_n_s16): Use RTL builtin
25477 (vmls_n_s32): Likewise.
25478 (vmls_n_u16): Likewise.
25479 (vmls_n_u32): Likewise.
25480 (vmlsq_n_s16): Likewise.
25481 (vmlsq_n_s32): Likewise.
25482 (vmlsq_n_u16): Likewise.
25483 (vmlsq_n_u32): Likewise.
25485 2021-01-27 Jonathan Wright <jonathan.wright@arm.com>
25487 * config/aarch64/aarch64-simd-builtins.def: Add mls builtin
25489 * config/aarch64/arm_neon.h (vmls_s8): Use RTL builtin rather
25491 (vmls_s16): Likewise.
25492 (vmls_s32): Likewise.
25493 (vmls_u8): Likewise.
25494 (vmls_u16): Likewise.
25495 (vmls_u32): Likewise.
25496 (vmlsq_s8): Likewise.
25497 (vmlsq_s16): Likewise.
25498 (vmlsq_s32): Likewise.
25499 (vmlsq_u8): Likewise.
25500 (vmlsq_u16): Likewise.
25501 (vmlsq_u32): Likewise.
25503 2021-01-27 Jonathan Wright <jonathan.wright@arm.com>
25505 * config/aarch64/aarch64-simd-builtins.def: Add mla_n builtin
25507 * config/aarch64/aarch64-simd.md (*aarch64_mla_elt_merge<mode>):
25509 (aarch64_mla_n<mode>): This.
25510 * config/aarch64/arm_neon.h (vmla_n_s16): Use RTL builtin
25512 (vmla_n_s32): Likewise.
25513 (vmla_n_u16): Likewise.
25514 (vmla_n_u32): Likewise.
25515 (vmlaq_n_s16): Likewise.
25516 (vmlaq_n_s32): Likewise.
25517 (vmlaq_n_u16): Likewise.
25518 (vmlaq_n_u32): Likewise.
25520 2021-01-27 liuhongt <hongtao.liu@intel.com>
25523 * config/i386/sse.md (sse2_gt<mode>3): Drop !TARGET_XOP in condition.
25524 (*sse2_eq<mode>3): Ditto.
25526 2021-01-27 Jakub Jelinek <jakub@redhat.com>
25528 * tree-pass.h (PROP_trees): Rename to ...
25529 (PROP_gimple): ... this.
25530 * cfgexpand.c (pass_data_expand): Replace PROP_trees with PROP_gimple.
25531 * passes.c (execute_function_dump, execute_function_todo,
25532 execute_one_ipa_transform_pass, execute_one_pass): Likewise.
25533 * varpool.c (ctor_for_folding): Likewise.
25535 2021-01-27 Jakub Jelinek <jakub@redhat.com>
25537 PR tree-optimization/97260
25538 * varpool.c: Include tree-pass.h.
25539 (ctor_for_folding): In GENERIC return DECL_INITIAL for TREE_READONLY
25540 non-TREE_SIDE_EFFECTS automatic variables.
25542 2021-01-26 Paul Fee <paul.f.fee@gmail.com>
25544 * doc/cpp.texi (__cplusplus): Document value for -std=c++23
25546 * doc/invoke.texi: Document -std=c++23 and -std=gnu++23.
25547 * dwarf2out.c (highest_c_language): Recognise C++20 and C++23.
25548 (gen_compile_unit_die): Recognise C++23.
25550 2021-01-26 Jakub Jelinek <jakub@redhat.com>
25553 * dwarf2asm.c (dw2_assemble_integer): Cast DWARF2_ADDR_SIZE to int
25556 2021-01-26 Jakub Jelinek <jakub@redhat.com>
25559 * config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
25560 Use UINTVAL (shft_amnt) and UINTVAL (mask) instead of INTVAL (shft_amnt)
25561 and INTVAL (mask). Add && INTVAL (mask) > 0 condition.
25563 2021-01-26 Richard Biener <rguenther@suse.de>
25565 * gimple-pretty-print.c (dump_binary_rhs): Handle
25566 VEC_WIDEN_{PLUS,MINUS}_{LO,HI}_EXPR.
25568 2021-01-26 Richard Biener <rguenther@suse.de>
25570 PR middle-end/98726
25571 * tree.h (vector_cst_int_elt): Remove.
25572 * tree.c (vector_cst_int_elt): Use poly_wide_int for computations,
25575 2021-01-26 Andrew Stubbs <ams@codesourcery.com>
25577 * config/gcn/gcn.c (gcn_expand_reduc_scalar): Use move instructions
25578 for V64DFmode min/max reductions.
25580 2021-01-26 Jakub Jelinek <jakub@redhat.com>
25582 * dwarf2asm.c (dw2_assemble_integer): Handle size twice as large
25583 as DWARF2_ADDR_SIZE if x is not a scalar int by emitting it as
25584 two halves, one with x and the other with const0_rtx, ordered
25585 depending on endianity.
25587 2021-01-26 Alexandre Oliva <oliva@adacore.com>
25589 * gimplify.c (gimplify_decl_expr): Skip asan marking calls for
25590 temporaries not seen in binding block, and not about to be
25591 added as gimple variables.
25593 2021-01-25 Martin Sebor <msebor@redhat.com>
25596 * tree-ssa-ccp.c (pass_post_ipa_warn::execute): Adjust warning text.
25598 2021-01-25 Martin Liska <mliska@suse.cz>
25600 * value-prof.c (get_nth_most_common_value): Use %s instead
25603 2021-01-25 Jakub Jelinek <jakub@redhat.com>
25606 * configure.ac (HAVE_AS_GDWARF_5_DEBUG_FLAG): Only define if
25607 readelf -wi is able to read the emitted .debug_info back.
25608 * configure: Regenerated.
25610 2021-01-25 Martin Liska <mliska@suse.cz>
25612 PR gcov-profile/98739
25613 * common.opt: Add missing sign symbol.
25614 * value-prof.c (get_nth_most_common_value): Restore handling
25615 of PROFILE_REPRODUCIBILITY_PARALLEL_RUNS and
25616 PROFILE_REPRODUCIBILITY_MULTITHREADED.
25618 2021-01-25 Richard Biener <rguenther@suse.de>
25620 PR middle-end/98807
25621 * tree.c (vector_element_bits): Always use precision of
25622 the element type for boolean vectors.
25624 2021-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
25626 * config/rtems.h (STARTFILE_SPEC): Remove qnolinkcmds.
25627 (ENDFILE_SPEC): Evaluate qnolinkcmds.
25629 2021-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
25631 * config/rtems.h (STARTFILE_SPEC): Remove nostdlib and
25632 nostartfiles handling since this is already done by
25633 LINK_COMMAND_SPEC. Evaluate qnolinkcmds.
25634 (ENDFILE_SPEC): Remove nostdlib and nostartfiles handling since this
25635 is already done by LINK_COMMAND_SPEC.
25636 (LIB_SPECS): Remove nostdlib and nodefaultlibs handling since
25637 this is already done by LINK_COMMAND_SPEC. Remove qnolinkcmds
25640 2021-01-25 Jakub Jelinek <jakub@redhat.com>
25643 * fold-const-call.c (host_size_t_cst_p): Renamed to ...
25644 (size_t_cst_p): ... this. Check and store unsigned HOST_WIDE_INT
25645 value rather than host size_t.
25646 (fold_const_call): Change type of s2 from size_t to
25647 unsigned HOST_WIDE_INT. Use size_t_cst_p instead of
25648 host_size_t_cst_p. For strncmp calls, pass MIN (s2, SIZE_MAX)
25649 instead of s2 as last argument.
25651 2021-01-25 Tamar Christina <tamar.christina@arm.com>
25653 * config/arm/iterators.md (rotsplit1, rotsplit2, conj_op, fcmac1,
25654 VCMLA_OP, VCMUL_OP): New.
25655 * config/arm/mve.md (mve_vcmlaq<mve_rot><mode>): Support vec_dup 0.
25656 * config/arm/neon.md (cmul<conj_op><mode>3): New.
25657 * config/arm/unspecs.md (UNSPEC_VCMLA_CONJ, UNSPEC_VCMLA180_CONJ,
25658 UNSPEC_VCMUL_CONJ): New.
25659 * config/arm/vec-common.md (cmul<conj_op><mode>3, arm_vcmla<rot><mode>,
25660 cml<fcmac1><conj_op><mode>4): New.
25662 2021-01-23 Jakub Jelinek <jakub@redhat.com>
25665 * config/rs6000/mmintrin.h (__m64): Add __may_alias__ attribute.
25667 2021-01-22 Jonathan Wright <jonathan.wright@arm.com>
25669 * config/aarch64/aarch64-simd-builtins.def: Add mla builtin
25671 * config/aarch64/arm_neon.h (vmla_s8): Use RTL builtin rather
25673 (vmla_s16): Likewise.
25674 (vmla_s32): Likewise.
25675 (vmla_u8): Likewise.
25676 (vmla_u16): Likewise.
25677 (vmla_u32): Likewise.
25678 (vmlaq_s8): Likewise.
25679 (vmlaq_s16): Likewise.
25680 (vmlaq_s32): Likewise.
25681 (vmlaq_u8): Likewise.
25682 (vmlaq_u16): Likewise.
25683 (vmlaq_u32): Likewise.
25685 2021-01-22 David Malcolm <dmalcolm@redhat.com>
25687 * doc/invoke.texi (GCC_EXTRA_DIAGNOSTIC_OUTPUT): Add @findex
25690 2021-01-22 Jakub Jelinek <jakub@redhat.com>
25693 * dwarf2out.c (output_file_names): For -gdwarf-5, if there are no
25694 filenames to emit, still emit the required 0 index directory and
25695 filename entries that match DW_AT_comp_dir and DW_AT_name of the
25698 2021-01-22 Marek Polacek <polacek@redhat.com>
25701 * doc/invoke.texi: Update C++ ABI Version 15 description.
25703 2021-01-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25705 PR tree-optimization/98766
25706 * tree-ssa-math-opts.c (convert_mult_to_fma): Use maybe_le when
25707 comparing against type size with param_avoid_fma_max_bits.
25709 2021-01-22 Richard Biener <rguenther@suse.de>
25711 PR middle-end/98793
25712 * tree.c (vector_element_bits): Key single-bit bool vector on
25713 integer mode rather than not vector mode.
25715 2021-01-22 Xionghu Luo <luoxhu@linux.ibm.com>
25718 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
25719 Generate ARRAY_REF(VIEW_CONVERT_EXPR) for P8 and later
25721 * config/rs6000/rs6000.c (rs6000_expand_vector_set_var): Update
25722 to call different path for P8 and P9.
25723 (rs6000_expand_vector_set_var_p9): New function.
25724 (rs6000_expand_vector_set_var_p8): New function.
25726 2021-01-22 Xionghu Luo <luoxhu@linux.ibm.com>
25730 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
25731 Ajdust variable index vec_insert from address dereference to
25732 ARRAY_REF(VIEW_CONVERT_EXPR) tree expression.
25733 * config/rs6000/rs6000-protos.h (rs6000_expand_vector_set_var):
25735 * config/rs6000/rs6000.c (rs6000_expand_vector_set_var): New function.
25737 2021-01-22 Martin Liska <mliska@suse.cz>
25739 PR gcov-profile/98739
25740 * profile.c (compute_value_histograms): Drop time profile for
25741 -fprofile-reproducible=multithreaded.
25743 2021-01-22 Nathan Sidwell <nathan@acm.org>
25745 * gcc.c (process_command): Don't check OPT_SPECIAL_input_file
25748 2021-01-22 Richard Biener <rguenther@suse.de>
25750 PR middle-end/98773
25751 * tree-data-ref.c (initalize_matrix_A): Revert previous
25752 change, retaining failing on HOST_WIDE_INT_MIN CHREC_RIGHT.
25754 2021-01-22 Jakub Jelinek <jakub@redhat.com>
25756 PR tree-optimization/90248
25757 * match.pd (X cmp 0.0 ? 1.0 : -1.0 -> copysign(1, +-X),
25758 X cmp 0.0 ? -1.0 : +1.0 -> copysign(1, -+X)): Remove
25760 (X * (X cmp 0.0 ? 1.0 : -1.0) -> +-abs(X),
25761 X * (X cmp 0.0 ? -1.0 : 1.0) -> +-abs(X)): New simplifications.
25763 2021-01-22 Jakub Jelinek <jakub@redhat.com>
25765 PR tree-optimization/98255
25766 * tree-dfa.c (get_ref_base_and_extent): For ARRAY_REFs, sign
25767 extend index - low_bound from sizetype's precision rather than index
25769 (get_addr_base_and_unit_offset_1): Likewise.
25770 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Likewise.
25771 * gimple-fold.c (fold_const_aggregate_ref_1): Likewise.
25773 2021-01-22 Richard Biener <rguenther@suse.de>
25775 PR tree-optimization/98786
25776 * tree-ssa-phiopt.c (factor_out_conditional_conversion): Avoid
25777 adding new uses of abnormals. Verify we deal with a conditional
25780 2021-01-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
25783 * optc-save-gen.awk: Add arm_fp16_format to checked_options.
25785 2021-01-22 liuhongt <hongtao.liu@intel.com>
25789 * config/i386/sse.md (VI_128_256): New mode iterator.
25790 (*avx_cmp<mode>3_1, *avx_cmp<mode>3_2, *avx_cmp<mode>3_3,
25791 *avx_cmp<mode>3_4, *avx2_eq<mode>3, *avx2_pcmp<mode>3_1,
25792 *avx2_pcmp<mode>3_2, *avx2_gt<mode>3): New
25793 define_insn_and_split to lower avx512 vector comparison to avx
25794 version when dest is vector.
25795 (*<avx512>_cmp<mode>3,*<avx512>_cmp<mode>3,*<avx512>_ucmp<mode>3):
25796 define_insn_and_split for negating the comparison result.
25797 * config/i386/predicates.md (float_vector_all_ones_operand):
25799 * config/i386/i386-expand.c (ix86_expand_sse_movcc): Use
25800 general NOT operator without UNSPEC_MASKOP.
25802 2021-01-21 Vladimir N. Makarov <vmakarov@redhat.com>
25804 PR rtl-optimization/98777
25805 * lra-int.h (lra_pmode_pseudo): New extern.
25806 * lra.c (lra_pmode_pseudo): New global.
25808 * lra-eliminations.c (eliminate_regs_in_insn): Use it.
25810 2021-01-21 Ilya Leoshkevich <iii@linux.ibm.com>
25812 * fwprop.c (fwprop_propagation::classify_result): Allow
25813 (subreg (mem)) simplifications.
25815 2021-01-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25817 * config/aarch64/aarch64-simd.md (aarch64_sqdml<SBINQOPS:as>l<mode>):
25819 (aarch64_sqdmlal<mode>): ... This...
25820 (aarch64_sqdmlsl<mode>): ... And this.
25821 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>): Split into...
25822 (aarch64_sqdmlal_lane<mode>): ... This...
25823 (aarch64_sqdmlsl_lane<mode>): ... And this.
25824 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>): Split into...
25825 (aarch64_sqdmlsl_laneq<mode>): ... This...
25826 (aarch64_sqdmlal_laneq<mode>): ... And this.
25827 (aarch64_sqdml<SBINQOPS:as>l_n<mode>): Split into...
25828 (aarch64_sqdmlsl_n<mode>): ... This...
25829 (aarch64_sqdmlal_n<mode>): ... And this.
25830 (aarch64_sqdml<SBINQOPS:as>l2<mode>_internal): Split into...
25831 (aarch64_sqdmlal2<mode>_internal): ... This...
25832 (aarch64_sqdmlsl2<mode>_internal): ... And this.
25834 2021-01-21 Christophe Lyon <christophe.lyon@linaro.org>
25836 * config/arm/arm_mve.h (__arm_vcmpneq_s8): Fix return type.
25838 2021-01-21 Andrea Corallo <andrea.corallo@arm.com>
25841 * doc/sourcebuild.texi (arm_thumb2_no_arm_v8_1_lob): Document.
25843 2021-01-21 liuhongt <hongtao.liu@intel.com>
25845 PR rtl-optimization/98694
25846 * regcprop.c (copy_value): If SRC had been assigned a mode
25847 narrower than the copy, we can't link DEST into the chain even
25848 they have same hard_regno_nregs(i.e. HImode/SImode in i386
25851 2021-01-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25853 * config/aarch64/aarch64-simd.md (aarch64_get_lane<mode>):
25854 Convert to define_insn_and_split. Split into simple move when moving
25857 2021-01-20 Segher Boessenkool <segher@kernel.crashing.org>
25859 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Change assert.
25860 Adjust comment. Simplify code.
25862 2021-01-20 Jakub Jelinek <jakub@redhat.com>
25865 * dwarf2out.c (reset_indirect_string): Also reset indirect strings
25866 with DW_FORM_line_strp form.
25867 (prune_unused_types_update_strings): Don't add into debug_str_hash
25868 indirect strings with DW_FORM_line_strp form.
25869 (adjust_name_comp_dir): New function.
25870 (dwarf2out_finish): Call it on CU DIEs after resetting
25871 debug_line_str_hash.
25873 2021-01-20 Vladimir N. Makarov <vmakarov@redhat.com>
25875 PR rtl-optimization/98722
25876 * lra-eliminations.c (eliminate_regs_in_insn): Check that target
25877 has no 3-op add insn to transform insns containing two pluses.
25879 2021-01-20 Richard Biener <rguenther@suse.de>
25881 * hwint.h (add_hwi): New function.
25882 (mul_hwi): Likewise.
25883 * tree-data-ref.c (initialize_matrix_A): Properly translate
25884 tree constants and avoid HOST_WIDE_INT_MIN.
25885 (lambda_matrix_row_add): Avoid undefined integer overflow
25886 and return true on such overflow.
25887 (lambda_matrix_right_hermite): Handle overflow from
25888 lambda_matrix_row_add gracefully. Simplify previous fix.
25889 (analyze_subscript_affine_affine): Likewise.
25891 2021-01-20 Eugene Rozenfeld <erozen@microsoft.com>
25893 PR tree-optimization/96674
25894 * match.pd: New patterns: x < y || y == XXX_MIN --> x <= y - 1
25895 x >= y && y != XXX_MIN --> x > y - 1
25897 2021-01-20 Richard Sandiford <richard.sandiford@arm.com>
25899 PR tree-optimization/98535
25900 * tree-vect-slp.c (duplicate_and_interleave): Use quick_grow_cleared.
25901 If the high and low permutes are the same, remove the high permutes
25902 from the working set and only continue with the low ones.
25904 2021-01-20 Jakub Jelinek <jakub@redhat.com>
25906 PR tree-optimization/98721
25907 * builtins.c (access_ref::inform_access): Don't assume
25908 SSA_NAME_IDENTIFIER must be non-NULL. Print messages about
25909 object whenever allocfn is NULL, rather than only when DECL_P
25910 is true. Use %qE instead of %qD for that. Formatting fixes.
25912 2021-01-20 Richard Biener <rguenther@suse.de>
25914 PR tree-optimization/98758
25915 * tree-data-ref.c (int_divides_p): Use lambda_int arguments.
25916 (lambda_matrix_right_hermite): Avoid undefinedness with
25917 signed integer abs and multiplication.
25918 (analyze_subscript_affine_affine): Use lambda_int.
25920 2021-01-20 David Malcolm <dmalcolm@redhat.com>
25923 * dwarf2out.c (output_line_info): Rename static variable
25924 "generation", moving it out of the function to...
25925 (output_line_info_generation): New.
25926 (init_sections_and_labels): Likewise, renaming the variable to...
25927 (init_sections_and_labels_generation): New.
25928 (dwarf2out_c_finalize): Reset the new variables.
25930 2021-01-19 Martin Sebor <msebor@redhat.com>
25932 PR middle-end/98664
25933 * tree-ssa-live.c (remove_unused_scope_block_p): Keep scopes for
25934 all functions, even if they're not declared artificial or inline.
25935 * tree.c (tree_inlined_location): Use macro expansion location
25936 only if scope traversal fails to expose one.
25938 2021-01-19 Richard Sandiford <richard.sandiford@arm.com>
25940 PR rtl-optimization/92294
25941 * alias.c (compare_base_symbol_refs): Take an extra parameter
25942 and add the distance between two symbols to it. Enshrine in
25943 comments that -1 means "either 0 or 1, but we can't tell
25944 which at compile time".
25945 (memrefs_conflict_p): Update call accordingly.
25946 (rtx_equal_for_memref_p): Likewise. Take the distance between symbols
25949 2021-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25951 * config/aarch64/aarch64-simd-builtins.def (sqshl, uqshl,
25952 sqrshl, uqrshl, sqadd, uqadd, sqsub, uqsub, suqadd, usqadd, sqmovn,
25953 uqmovn, sqxtn2, uqxtn2, sqabs, sqneg, sqdmlal, sqdmlsl, sqdmlal_lane,
25954 sqdmlsl_lane, sqdmlal_laneq, sqdmlsl_laneq, sqdmlal_n, sqdmlsl_n,
25955 sqdmlal2, sqdmlsl2, sqdmlal2_lane, sqdmlsl2_lane, sqdmlal2_laneq,
25956 sqdmlsl2_laneq, sqdmlal2_n, sqdmlsl2_n, sqdmull, sqdmull_lane,
25957 sqdmull_laneq, sqdmull_n, sqdmull2, sqdmull2_lane, sqdmull2_laneq,
25958 sqdmull2_n, sqdmulh, sqrdmulh, sqdmulh_lane, sqdmulh_laneq,
25959 sqrdmulh_lane, sqrdmulh_laneq, sqshrun_n, sqrshrun_n, sqshrn_n,
25960 uqshrn_n, sqrshrn_n, uqrshrn_n, sqshlu_n, sqshl_n, uqshl_n, sqrdmlah,
25961 sqrdmlsh, sqrdmlah_lane, sqrdmlsh_lane, sqrdmlah_laneq, sqrdmlsh_laneq,
25962 sqmovun): Use NONE flags.
25964 2021-01-19 Richard Biener <rguenther@suse.de>
25967 * ipa-modref.c (analyze_stmt): Only record a summary for a
25970 2021-01-19 Richard Biener <rguenther@suse.de>
25972 PR middle-end/98638
25973 * tree-ssanames.c (fini_ssanames): Zero SSA_NAME_DEF_STMT.
25975 2021-01-19 Daniel Hellstrom <daniel@gaisler.com>
25977 * config/sparc/rtemself.h (TARGET_OS_CPP_BUILTINS): Add
25978 built-in define __FIX_LEON3FT_TN0018.
25980 2021-01-19 Richard Biener <rguenther@suse.de>
25983 * tree-inline.c (tree_function_versioning): Set input_location
25984 to UNKNOWN_LOCATION throughout the function.
25986 2021-01-19 Tobias Burnus <tobias@codesourcery.com>
25989 * omp-low.c (lower_omp_target): Handle nonpointer is_device_ptr.
25991 2021-01-19 Martin Jambor <mjambor@suse.cz>
25994 * ipa-sra.c (ssa_name_only_returned_p): New parameter fun. Check
25995 whether non-call exceptions allow removal of a statement.
25996 (isra_analyze_call): Pass the appropriate function to
25997 ssa_name_only_returned_p.
25999 2021-01-19 Geng Qi <gengqi@linux.alibaba.com>
26001 * config/riscv/arch-canonicalize (longext_sort): New function for
26002 sorting 'multi-letter'.
26003 * config/riscv/multilib-generator: Adjusting the loop of 'alt' in
26004 'alts'. The 'arch' may not be the first of 'alts'.
26005 (_expand_combination): Add underline for the 'ext' without '*'.
26006 This is because, a single-letter extension can always be treated well
26007 with a '_' prefix, but it cannot be separated out if it is appended
26010 2021-01-18 Vladimir N. Makarov <vmakarov@redhat.com>
26013 * ira.c (ira): Skip abnormal critical edge splitting.
26015 2021-01-18 Jakub Jelinek <jakub@redhat.com>
26017 PR tree-optimization/98727
26018 * tree-ssa-math-opts.c (match_arith_overflow): Fix up computation of
26019 second .MUL_OVERFLOW operand for signed multiplication with overflow
26020 checking if the second operand of multiplication is not constant.
26022 2021-01-18 David Edelsohn <dje.gcc@gmail.com>
26024 * doc/invoke.texi (-gdwarf): TPF defaults to version 2 and AIX
26025 defaults to version 4.
26027 2021-01-18 David Malcolm <dmalcolm@redhat.com>
26029 * attribs.h (fndecl_dealloc_argno): New decl.
26030 * builtins.c (call_dealloc_argno): Split out second half of
26032 (fndecl_dealloc_argno): New.
26033 * doc/extend.texi (Common Function Attributes): Document the
26034 interaction between the analyzer and the malloc attribute.
26035 * doc/invoke.texi (Static Analyzer Options): Likewise.
26037 2021-01-17 David Edelsohn <dje.gcc@gmail.com>
26039 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Override
26040 dwarf_version to 4.
26041 * config/rs6000/aix72.h (SUBTARGET_OVERRIDE_OPTIONS): Same.
26043 2021-01-17 Martin Jambor <mjambor@suse.cz>
26046 * cgraph.c (clone_of_p): Check also former_clone_of as we climb
26049 2021-01-17 Mark Wielaard <mark@klomp.org>
26051 * common.opt (gdwarf-): Init(5).
26052 * doc/invoke.texi (-gdwarf): Document default to 5.
26054 2021-01-16 Kwok Cheung Yeung <kcy@codesourcery.com>
26056 * builtin-types.def
26057 (BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT): Rename
26059 (BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT_PTR):
26060 ...this. Add extra argument.
26061 * gimplify.c (omp_default_clause): Ensure that event handle is
26062 firstprivate in a task region.
26063 (gimplify_scan_omp_clauses): Handle OMP_CLAUSE_DETACH.
26064 (gimplify_adjust_omp_clauses): Likewise.
26065 * omp-builtins.def (BUILT_IN_GOMP_TASK): Change function type to
26066 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT_PTR.
26067 * omp-expand.c (expand_task_call): Add GOMP_TASK_FLAG_DETACH to flags
26068 if detach clause specified. Add detach argument when generating
26070 * omp-low.c (scan_sharing_clauses): Setup data environment for detach
26072 (finish_taskreg_scan): Move field for variable containing the event
26073 handle to the front of the struct.
26074 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DETACH. Fix
26076 * tree-nested.c (convert_nonlocal_omp_clauses): Handle
26077 OMP_CLAUSE_DETACH clause.
26078 (convert_local_omp_clauses): Handle OMP_CLAUSE_DETACH clause.
26079 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_DETACH.
26080 * tree.c (omp_clause_num_ops): Add entry for OMP_CLAUSE_DETACH.
26082 (omp_clause_code_name): Add entry for OMP_CLAUSE_DETACH. Fix
26084 (walk_tree_1): Handle OMP_CLAUSE_DETACH.
26086 2021-01-16 Sebastian Huber <sebastian.huber@embedded-brains.de>
26088 * config/nios2/t-rtems: Reset all MULTILIB_* variables. Shorten
26089 multilib directory names. Use MULTILIB_REQUIRED instead of
26090 MULTILIB_EXCEPTIONS. Add -mhw-mul -mhw-mulx -mhw-div
26091 -mcustom-fpu-cfg=fph2 multilib.
26093 2021-01-16 Sebastian Huber <sebastian.huber@embedded-brains.de>
26095 * config/nios2/nios2.c (NIOS2_FPU_CONFIG_NUM): Adjust value.
26096 (nios2_init_fpu_configs): Provide register values for new
26097 -mcustom-fpu-cfg=fph2 option variant.
26098 * doc/invoke.texi (-mcustom-fpu-cfg=fph2): Document new option
26101 2021-01-16 Sebastian Huber <sebastian.huber@embedded-brains.de>
26103 * config/nios2/nios2.c (nios2_custom_check_insns): Remove
26104 custom instruction warnings.
26106 2021-01-16 Jakub Jelinek <jakub@redhat.com>
26108 PR tree-optimization/96669
26109 * match.pd ((CST << x) & 1 -> x == 0): New simplification.
26111 2021-01-16 Jakub Jelinek <jakub@redhat.com>
26113 PR tree-optimization/96271
26114 * passes.def: Pass false argument to first two pass_cd_dce
26115 instances and true to last instance. Add comment that
26116 last instance rewrites no longer addressed locals.
26117 * tree-ssa-dce.c (pass_cd_dce): Add update_address_taken_p member and
26119 (pass_cd_dce::set_pass_param): New method.
26120 (pass_cd_dce::execute): Return TODO_update_address_taken from
26121 last cd_dce instance.
26123 2021-01-15 Carl Love <cel@us.ibm.com>
26125 * config/rs6000/altivec.h (vec_mulh, vec_div, vec_dive, vec_mod):
26127 * config/rs6000/altivec.md (VIlong): Move define to file vsx.md.
26128 * config/rs6000/rs6000-builtin.def (DIVES_V4SI, DIVES_V2DI,
26129 DIVEU_V4SI, DIVEU_V2DI, DIVS_V4SI, DIVS_V2DI, DIVU_V4SI,
26130 DIVU_V2DI, MODS_V2DI, MODS_V4SI, MODU_V2DI, MODU_V4SI,
26131 MULHS_V2DI, MULHS_V4SI, MULHU_V2DI, MULHU_V4SI, MULLD_V2DI):
26132 Add builtin define.
26133 (MULH, DIVE, MOD): Add new BU_P10_OVERLOAD_2 definitions.
26134 * config/rs6000/rs6000-call.c (VSX_BUILTIN_VEC_DIV,
26135 VSX_BUILTIN_VEC_DIVE, P10_BUILTIN_VEC_MOD, P10_BUILTIN_VEC_MULH):
26136 New overloaded definitions.
26137 (builtin_function_type) [P10V_BUILTIN_DIVEU_V4SI,
26138 P10V_BUILTIN_DIVEU_V2DI, P10V_BUILTIN_DIVU_V4SI,
26139 P10V_BUILTIN_DIVU_V2DI, P10V_BUILTIN_MODU_V2DI,
26140 P10V_BUILTIN_MODU_V4SI, P10V_BUILTIN_MULHU_V2DI,
26141 P10V_BUILTIN_MULHU_V4SI]: Add case
26142 statement for builtins.
26143 * config/rs6000/rs6000.md (bits): Add new attribute sizes V4SI, V2DI.
26144 * config/rs6000/vsx.md (VIlong): Moved from config/rs6000/altivec.md.
26145 (UNSPEC_VDIVES, UNSPEC_VDIVEU): New unspec definitions.
26146 (vsx_mul_v2di): Add if TARGET_POWER10 statement.
26147 (vsx_udiv_v2di): Add if TARGET_POWER10 statement.
26148 (dives_<mode>, diveu_<mode>, div<mode>3, uvdiv<mode>3,
26149 mods_<mode>, modu_<mode>, mulhs_<mode>, mulhu_<mode>, mulv2di3):
26150 Add define_insn, mode is VIlong.
26151 * doc/extend.texi (vec_mulh, vec_mul, vec_div, vec_dive, vec_mod):
26152 Add builtin descriptions.
26154 2021-01-15 Eric Botcazou <ebotcazou@adacore.com>
26156 * final.c (final_start_function_1): Reset force_source_line.
26158 2021-01-15 Jakub Jelinek <jakub@redhat.com>
26160 PR tree-optimization/96669
26161 * match.pd (((1 << A) & 1) != 0 -> A == 0,
26162 ((1 << A) & 1) == 0 -> A != 0): Generalize for 1s replaced by
26163 possibly different power of two constants and to right shift too.
26165 2021-01-15 Jakub Jelinek <jakub@redhat.com>
26167 PR tree-optimization/96681
26168 * match.pd ((x < 0) ^ (y < 0) to (x ^ y) < 0): New simplification.
26169 ((x >= 0) ^ (y >= 0) to (x ^ y) < 0): Likewise.
26170 ((x < 0) ^ (y >= 0) to (x ^ y) >= 0): Likewise.
26171 ((x >= 0) ^ (y < 0) to (x ^ y) >= 0): Likewise.
26173 2021-01-15 Alexandre Oliva <oliva@adacore.com>
26175 * opts.c (gen_command_line_string): Exclude -dumpbase-ext.
26177 2021-01-15 Tamar Christina <tamar.christina@arm.com>
26179 * config/aarch64/aarch64-simd.md (cml<fcmac1><conj_op><mode>4,
26180 cmul<conj_op><mode>3): New.
26181 * config/aarch64/iterators.md (UNSPEC_FCMUL,
26182 UNSPEC_FCMUL180, UNSPEC_FCMLA_CONJ, UNSPEC_FCMLA180_CONJ,
26183 UNSPEC_CMLA_CONJ, UNSPEC_CMLA180_CONJ, UNSPEC_CMUL, UNSPEC_CMUL180,
26184 FCMLA_OP, FCMUL_OP, conj_op, rotsplit1, rotsplit2, fcmac1, sve_rot1,
26185 sve_rot2, SVE2_INT_CMLA_OP, SVE2_INT_CMUL_OP, SVE2_INT_CADD_OP): New.
26186 (rot): Add UNSPEC_FCMUL, UNSPEC_FCMUL180.
26187 (rot_op): Renamed to conj_op.
26188 * config/aarch64/aarch64-sve.md (cml<fcmac1><conj_op><mode>4,
26189 cmul<conj_op><mode>3): New.
26190 * config/aarch64/aarch64-sve2.md (cml<fcmac1><conj_op><mode>4,
26191 cmul<conj_op><mode>3): New.
26193 2021-01-15 David Malcolm <dmalcolm@redhat.com>
26197 (selftest::test_print_parseable_fixits_bytes_vs_display_columns):
26198 Escape the tempfile name when constructing the expected output.
26200 2021-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26202 * config/aarch64/aarch64-simd.md (*aarch64_<su>mlsl_hi<mode>):
26204 (aarch64_<su>mlsl_hi<mode>): ... This.
26205 (aarch64_<su>mlsl_hi<mode>): Define.
26206 (*aarch64_<su>mlsl<mode): Rename to...
26207 (aarch64_<su>mlsl<mode): ... This.
26208 * config/aarch64/aarch64-simd-builtins.def (smlsl, umlsl,
26209 smlsl_hi, umlsl_hi): Define builtins.
26210 * config/aarch64/arm_neon.h (vmlsl_high_s8, vmlsl_high_s16,
26211 vmlsl_high_s32, vmlsl_high_u8, vmlsl_high_u16, vmlsl_high_u32,
26212 vmlsl_s8, vmlsl_s16, vmlsl_s32, vmlsl_u8,
26213 vmlsl_u16, vmlsl_u32): Reimplement with builtins.
26215 2021-01-15 Uroš Bizjak <ubizjak@gmail.com>
26217 * config/i386/i386-c.c (ix86_target_macros):
26218 Use cpp_define_formatted for __SIZEOF_FLOAT80__ definition.
26220 2021-01-15 Richard Sandiford <richard.sandiford@arm.com>
26223 * config.gcc (aarch64*-*-*): Add aarch64-cc-fusion.o to extra_objs.
26224 * Makefile.in (RTL_SSA_H): New variable.
26225 * config/aarch64/t-aarch64 (aarch64-cc-fusion.o): New rule.
26226 * config/aarch64/aarch64-protos.h (make_pass_cc_fusion): Declare.
26227 * config/aarch64/aarch64-passes.def: Add pass_cc_fusion after
26229 * config/aarch64/aarch64-cc-fusion.cc: New file.
26231 2021-01-15 Richard Sandiford <richard.sandiford@arm.com>
26233 * recog.h (insn_change_watermark::~insn_change_watermark): Avoid
26234 calling cancel_changes for changes that no longer exist.
26236 2021-01-15 Richard Sandiford <richard.sandiford@arm.com>
26238 * rtl-ssa/functions.h (function_info::ref_defs): Rename to...
26239 (function_info::reg_defs): ...this.
26240 * rtl-ssa/member-fns.inl (function_info::ref_defs): Rename to...
26241 (function_info::reg_defs): ...this.
26243 2021-01-15 Christophe Lyon <christophe.lyon@linaro.org>
26246 * config/arm/arm_neon.h (vceqz_p64, vceqq_p64, vceqzq_p64): New.
26248 2021-01-15 Christophe Lyon <christophe.lyon@linaro.org>
26251 2021-01-15 Christophe Lyon <christophe.lyon@linaro.org>
26254 * config/arm/arm_neon.h (vceqz_p64, vceqq_p64, vceqzq_p64): New.
26256 2021-01-15 Richard Biener <rguenther@suse.de>
26258 PR tree-optimization/96376
26259 * tree-vect-stmts.c (get_load_store_type): Disregard alignment
26260 for VMAT_INVARIANT.
26262 2021-01-15 Martin Liska <mliska@suse.cz>
26264 * doc/install.texi: Document that some tests need pytest module.
26265 * doc/sourcebuild.texi: Likewise.
26267 2021-01-15 Christophe Lyon <christophe.lyon@linaro.org>
26270 * config/arm/arm_neon.h (vceqz_p64, vceqq_p64, vceqzq_p64): New.
26272 2021-01-15 Christophe Lyon <christophe.lyon@linaro.org>
26274 * config/arm/mve.md (mve_vshrq_n_s<mode>_imm): New entry.
26275 (mve_vshrq_n_u<mode>_imm): Likewise.
26276 * config/arm/neon.md (vashr<mode>3, vlshr<mode>3): Move to ...
26277 * config/arm/vec-common.md: ... here.
26279 2021-01-15 Christophe Lyon <christophe.lyon@linaro.org>
26281 * config/arm/mve.md (mve_vshlq_<supf><mode>): Move to
26283 * config/arm/neon.md (vashl<mode>3): Delete.
26284 * config/arm/vec-common.md (mve_vshlq_<supf><mode>): New.
26285 (vasl<mode>3): New expander.
26287 2021-01-15 Richard Biener <rguenther@suse.de>
26289 PR tree-optimization/98685
26290 * tree-vect-slp.c (vect_schedule_slp_node): Refactor handling
26291 of vector extern defs.
26293 2021-01-14 David Malcolm <dmalcolm@redhat.com>
26296 * diagnostic.c (diagnostic_kind_text): Break out this array
26298 (diagnostic_build_prefix): ...here.
26299 (fancy_abort): Detect when diagnostic_initialize has not yet been
26300 called and fall back to a minimal implementation of printing the
26301 ICE, rather than segfaulting in internal_error.
26303 2021-01-14 David Malcolm <dmalcolm@redhat.com>
26305 * diagnostic.c (diagnostic_initialize): Eliminate
26306 parseable_fixits_p in favor of initializing extra_output_kind from
26307 GCC_EXTRA_DIAGNOSTIC_OUTPUT.
26308 (convert_column_unit): New function, split out from...
26309 (diagnostic_converted_column): ...this.
26310 (print_parseable_fixits): Add "column_unit" and "tabstop" params.
26311 Use them to call convert_column_unit on the column values.
26312 (diagnostic_report_diagnostic): Eliminate conditional on
26313 parseable_fixits_p in favor of a switch statement on
26314 extra_output_kind, passing the appropriate values to the new
26315 params of print_parseable_fixits.
26316 (selftest::test_print_parseable_fixits_none): Update for new
26317 params of print_parseable_fixits.
26318 (selftest::test_print_parseable_fixits_insert): Likewise.
26319 (selftest::test_print_parseable_fixits_remove): Likewise.
26320 (selftest::test_print_parseable_fixits_replace): Likewise.
26321 (selftest::test_print_parseable_fixits_bytes_vs_display_columns):
26323 (selftest::diagnostic_c_tests): Call it.
26324 * diagnostic.h (enum diagnostics_extra_output_kind): New.
26325 (diagnostic_context::parseable_fixits_p): Delete field in favor
26327 (diagnostic_context::extra_output_kind): ...this new field.
26328 * doc/invoke.texi (Environment Variables): Add
26329 GCC_EXTRA_DIAGNOSTIC_OUTPUT.
26330 * opts.c (common_handle_option): Update handling of
26331 OPT_fdiagnostics_parseable_fixits for change to diagnostic_context
26334 2021-01-14 Tamar Christina <tamar.christina@arm.com>
26336 * tree-vect-slp-patterns.c (class complex_operations_pattern,
26337 complex_operations_pattern::matches,
26338 complex_operations_pattern::recognize,
26339 complex_operations_pattern::build): New.
26340 (slp_patterns): Use it.
26342 2021-01-14 Tamar Christina <tamar.christina@arm.com>
26344 * internal-fn.def (COMPLEX_FMS, COMPLEX_FMS_CONJ): New.
26345 * optabs.def (cmls_optab, cmls_conj_optab): New.
26346 * doc/md.texi: Document them.
26347 * tree-vect-slp-patterns.c (class complex_fms_pattern,
26348 complex_fms_pattern::matches, complex_fms_pattern::recognize,
26349 complex_fms_pattern::build): New.
26351 2021-01-14 Tamar Christina <tamar.christina@arm.com>
26353 * internal-fn.def (COMPLEX_FMA, COMPLEX_FMA_CONJ): New.
26354 * optabs.def (cmla_optab, cmla_conj_optab): New.
26355 * doc/md.texi: Document them.
26356 * tree-vect-slp-patterns.c (vect_match_call_p,
26357 class complex_fma_pattern, vect_slp_reset_pattern,
26358 complex_fma_pattern::matches, complex_fma_pattern::recognize,
26359 complex_fma_pattern::build): New.
26361 2021-01-14 Tamar Christina <tamar.christina@arm.com>
26363 * internal-fn.def (COMPLEX_MUL, COMPLEX_MUL_CONJ): New.
26364 * optabs.def (cmul_optab, cmul_conj_optab): New.
26365 * doc/md.texi: Document them.
26366 * tree-vect-slp-patterns.c (vect_match_call_complex_mla,
26367 vect_normalize_conj_loc, is_eq_or_top, vect_validate_multiplication,
26368 vect_build_combine_node, class complex_mul_pattern,
26369 complex_mul_pattern::matches, complex_mul_pattern::recognize,
26370 complex_mul_pattern::build): New.
26372 2021-01-14 Tamar Christina <tamar.christina@arm.com>
26374 * tree-vect-slp.c (optimize_load_redistribution_1): New.
26375 (optimize_load_redistribution, vect_is_slp_load_node): New.
26376 (vect_match_slp_patterns): Use it.
26378 2021-01-14 Tamar Christina <tamar.christina@arm.com>
26380 * tree-vect-slp-patterns.c (complex_add_pattern::build):
26383 2021-01-14 Thomas Schwinge <thomas@codesourcery.com>
26385 * config/gcn/mkoffload.c (main): Create an offload image only in
26386 64-bit configurations.
26388 2021-01-14 H.J. Lu <hjl.tools@gmail.com>
26391 * config/i386/i386-options.c (ix86_option_override_internal):
26392 Issue an error for -fcf-protection with CF_BRANCH when compiling
26393 for 32-bit non-TARGET_CMOV targets.
26395 2021-01-14 Uroš Bizjak <ubizjak@gmail.com>
26398 * config/i386/i386-options.c (ix86_valid_target_attribute_inner_p):
26399 Remove declaration and initialization of shadow variable "ret".
26400 (ix86_option_override_internal): Remove delcaration of
26401 shadow variable "i". Redeclare shadowed variable to unsigned.
26402 * common/config/i386/i386-common.c (pta_size): Redeclare to unsigned.
26403 * config/i386/i386-builtins.c (get_builtin_code_for_version):
26404 Update for redeclaration.
26405 * config/i386/i386.h (pta_size): Ditto.
26407 2021-01-14 Richard Biener <rguenther@suse.de>
26409 PR tree-optimization/98674
26410 * tree-data-ref.c (base_supports_access_fn_components_p): New.
26411 (initialize_data_dependence_relation): For two bases without
26412 possible access fns resort to type size equality when determining
26413 shape compatibility.
26415 2021-01-14 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
26418 * config/arm/arm_neon.h: Replace calls to __builtin_vcge* by
26419 <=, >= operators in vcle and vcge intrinsics respectively.
26420 * config/arm/arm_neon_builtins.def: Remove entry for
26423 2021-01-14 Uroš Bizjak <ubizjak@gmail.com>
26426 * config/i386/i386-options.c (ix86_function_specific_save):
26427 Remove redundant assignment to opts->x_ix86_branch_cost.
26428 * config/i386/i386.c (ix86_prefetch_sse):
26429 Rename from x86_prefetch_sse. Update all uses.
26430 * config/i386/i386.h: Update for rename.
26431 * config/i386/i386-options.h: Ditto.
26433 2021-01-14 Jakub Jelinek <jakub@redhat.com>
26436 * config/i386/sse.md (*sse4_1_zero_extendv8qiv8hi2_3,
26437 *sse4_1_zero_extendv4hiv4si2_3, *sse4_1_zero_extendv2siv2di2_3):
26438 Use Bm instead of m for non-avx. Add isa attribute.
26440 2021-01-14 Jakub Jelinek <jakub@redhat.com>
26442 PR tree-optimization/96688
26443 * match.pd (~(X >> Y) -> ~X >> Y): New simplification if
26444 ~X can be simplified.
26446 2021-01-14 Richard Sandiford <richard.sandiford@arm.com>
26448 * tree-vect-stmts.c (vect_model_load_cost): Account for unused
26449 IFN_LOAD_LANES results.
26451 2021-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26453 * config/aarch64/aarch64-simd.md (aarch64_<su>xtl<mode>):
26455 (aarch64_xtn<mode>): Likewise.
26456 * config/aarch64/aarch64-simd-builtins.def (sxtl, uxtl, xtn):
26459 * config/aarch64/arm_neon.h (vmovl_s8): Reimplement using
26461 (vmovl_s16): Likewise.
26462 (vmovl_s32): Likewise.
26463 (vmovl_u8): Likewise.
26464 (vmovl_u16): Likewise.
26465 (vmovl_u32): Likewise.
26466 (vmovn_s16): Likewise.
26467 (vmovn_s32): Likewise.
26468 (vmovn_s64): Likewise.
26469 (vmovn_u16): Likewise.
26470 (vmovn_u32): Likewise.
26471 (vmovn_u64): Likewise.
26473 2021-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26475 * config/aarch64/aarch64-simd.md (aarch64_<su>qxtn2<mode>_le):
26477 (aarch64_<su>qxtn2<mode>_be): Likewise.
26478 (aarch64_<su>qxtn2<mode>): Likewise.
26479 * config/aarch64/aarch64-simd-builtins.def (sqxtn2, uqxtn2):
26481 * config/aarch64/iterators.md (SAT_TRUNC): Define code_iterator.
26482 (su): Handle ss_truncate and us_truncate.
26483 * config/aarch64/arm_neon.h (vqmovn_high_s16): Reimplement using
26485 (vqmovn_high_s32): Likewise.
26486 (vqmovn_high_s64): Likewise.
26487 (vqmovn_high_u16): Likewise.
26488 (vqmovn_high_u32): Likewise.
26489 (vqmovn_high_u64): Likewise.
26491 2021-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26493 * config/aarch64/aarch64-simd.md (aarch64_xtn2<mode>_le):
26495 (aarch64_xtn2<mode>_be): Likewise.
26496 (aarch64_xtn2<mode>): Likewise.
26497 * config/aarch64/aarch64-simd-builtins.def (xtn2): Define
26499 * config/aarch64/arm_neon.h (vmovn_high_s16): Reimplement using
26501 (vmovn_high_s32): Likewise.
26502 (vmovn_high_s64): Likewise.
26503 (vmovn_high_u16): Likewise.
26504 (vmovn_high_u32): Likewise.
26505 (vmovn_high_u64): Likewise.
26507 2021-01-13 Stafford Horne <shorne@gmail.com>
26509 * config/or1k/or1k.h (ASM_PREFERRED_EH_DATA_FORMAT): New macro.
26511 2021-01-13 Stafford Horne <shorne@gmail.com>
26513 * config/or1k/linux.h (TARGET_ASM_FILE_END): Define macro.
26515 2021-01-13 Stafford Horne <shorne@gmail.com>
26517 * config/or1k/or1k.h (TARGET_CPU_CPP_BUILTINS): Add builtin
26518 define for __or1k_hard_float__.
26520 2021-01-13 Stafford Horne <shorne@gmail.com>
26522 * config/or1k/or1k.h (NO_PROFILE_COUNTERS): Define as 1.
26523 (PROFILE_HOOK): Define to call _mcount.
26524 (FUNCTION_PROFILER): Change from abort to no-op.
26526 2021-01-13 Jakub Jelinek <jakub@redhat.com>
26528 PR tree-optimization/96691
26529 * match.pd ((~X | C) ^ D -> (X | C) ^ (~D ^ C),
26530 (~X & C) ^ D -> (X & C) ^ (D ^ C)): New simplifications if
26531 (~D ^ C) or (D ^ C) can be simplified.
26533 2021-01-13 Richard Biener <rguenther@suse.de>
26535 PR tree-optimization/92645
26536 * match.pd (BIT_FIELD_REF to conversion): Delay canonicalization
26537 until after vector lowering.
26539 2021-01-13 Richard Sandiford <richard.sandiford@arm.com>
26541 * config/aarch64/aarch64-sve.md (fnma<mode>4): Extend from SVE_FULL_I
26543 (@aarch64_pred_fnma<mode>, cond_fnma<mode>, *cond_fnma<mode>_2)
26544 (*cond_fnma<mode>_4, *cond_fnma<mode>_any): Likewise.
26546 2021-01-13 Richard Sandiford <richard.sandiford@arm.com>
26548 * config/aarch64/aarch64-sve.md (fma<mode>4): Extend from SVE_FULL_I
26550 (@aarch64_pred_fma<mode>, cond_fma<mode>, *cond_fma<mode>_2)
26551 (*cond_fma<mode>_4, *cond_fma<mode>_any): Likewise.
26553 2021-01-13 Richard Biener <rguenther@suse.de>
26555 PR tree-optimization/92645
26556 * tree-vect-slp.c (vect_build_slp_tree_1): Relax supported
26557 BIT_FIELD_REF argument.
26558 (vect_build_slp_tree_2): Record the desired vector type
26559 on the external vector def.
26560 (vectorizable_slp_permutation): Handle required punning
26561 of existing vector defs.
26563 2021-01-13 Richard Sandiford <richard.sandiford@arm.com>
26565 * rtl-ssa/accesses.h (def_lookup): Fix order of comparison results.
26567 2021-01-13 Richard Sandiford <richard.sandiford@arm.com>
26569 * config/sh/sh.md (movsf_ie): Remove operands[2] test.
26571 2021-01-13 Samuel Thibault <samuel.thibault@ens-lyon.org>
26573 * config.gcc [$target == *-*-gnu*]: Enable
26574 'default_gnu_indirect_function'.
26576 2021-01-13 Jakub Jelinek <jakub@redhat.com>
26579 * optabs.c (expand_vec_perm_const): Don't force v0 and v1 into
26580 registers before calling targetm.vectorize.vec_perm_const, only after
26582 * config/i386/i386-expand.c (ix86_vectorize_vec_perm_const): Handle
26583 two argument permutation when one operand is zero vector and only
26584 after that force operands into registers.
26585 * config/i386/sse.md (*avx2_zero_extendv16qiv16hi2_1): New
26586 define_insn_and_split pattern.
26587 (*avx512bw_zero_extendv32qiv32hi2_1): Likewise.
26588 (*avx512f_zero_extendv16hiv16si2_1): Likewise.
26589 (*avx2_zero_extendv8hiv8si2_1): Likewise.
26590 (*avx512f_zero_extendv8siv8di2_1): Likewise.
26591 (*avx2_zero_extendv4siv4di2_1): Likewise.
26592 * config/mips/mips.c (mips_vectorize_vec_perm_const): Force operands
26594 * config/arm/arm.c (arm_vectorize_vec_perm_const): Likewise.
26595 * config/sparc/sparc.c (sparc_vectorize_vec_perm_const): Likewise.
26596 * config/ia64/ia64.c (ia64_vectorize_vec_perm_const): Likewise.
26597 * config/aarch64/aarch64.c (aarch64_vectorize_vec_perm_const): Likewise.
26598 * config/rs6000/rs6000.c (rs6000_vectorize_vec_perm_const): Likewise.
26599 * config/gcn/gcn.c (gcn_vectorize_vec_perm_const): Likewise. Use std::swap.
26601 2021-01-13 Martin Liska <mliska@suse.cz>
26603 PR tree-optimization/98455
26604 * gimple-if-to-switch.cc (condition_info::record_phi_mapping):
26605 Record also virtual PHIs.
26606 (pass_if_to_switch::execute): Return TODO_cleanup_cfg only
26609 2021-01-13 Jonathan Wakely <jwakely@redhat.com>
26611 * doc/invoke.texi (C++ Modules): Fix typos.
26613 2021-01-13 Richard Biener <rguenther@suse.de>
26615 PR tree-optimization/98640
26616 * tree-ssa-sccvn.c (visit_nary_op): Do not try to
26617 handle plus or minus from a truncated operand to be
26620 2021-01-13 Jakub Jelinek <jakub@redhat.com>
26623 * config/i386/i386.md (*btr<mode>_1, *btr<mode>_2): New
26624 define_insn_and_split patterns.
26625 (splitter after *btr<mode>_2): New splitter.
26627 2021-01-13 Martin Liska <mliska@suse.cz>
26630 * cgraphunit.c (analyze_functions): Remove dead code.
26632 2021-01-13 Qian Jianhua <qianjh@cn.fujitsu.com>
26634 * config/aarch64/aarch64-cost-tables.h (a64fx_extra_costs): New.
26635 * config/aarch64/aarch64.c (a64fx_addrcost_table): New.
26636 (a64fx_regmove_cost, a64fx_vector_cost): New.
26637 (a64fx_tunings): Use the new added cost tables.
26639 2021-01-13 Jakub Jelinek <jakub@redhat.com>
26642 * config/i386/predicates.md (pmovzx_parallel): New predicate.
26643 * config/i386/sse.md (*sse4_1_zero_extendv8qiv8hi2_3): New
26644 define_insn_and_split pattern.
26645 (*sse4_1_zero_extendv4hiv4si2_3): Likewise.
26646 (*sse4_1_zero_extendv2siv2di2_3): Likewise.
26648 2021-01-13 Julian Brown <julian@codesourcery.com>
26650 * config/gcn/gcn.c (gcn_conditional_register_usage): Remove dead code
26651 to fix v0 register.
26653 2021-01-13 Julian Brown <julian@codesourcery.com>
26655 * config/gcn/gcn.c (gcn_md_reorg): Fix case where EXEC reg is live
26658 2021-01-13 Julian Brown <julian@codesourcery.com>
26660 * config/gcn/gcn-valu.md (recip<mode>2<exec>, recip<mode>2): Use unspec
26661 for reciprocal-approximation instructions.
26662 (div<mode>3): Use fused multiply-accumulate operations for reciprocal
26663 refinement and division result.
26664 * config/gcn/gcn.md (UNSPEC_RCP): New unspec constant.
26666 2021-01-13 Julian Brown <julian@codesourcery.com>
26668 * config/gcn/gcn-valu.md (subdf): Rename to...
26671 2021-01-12 Martin Liska <mliska@suse.cz>
26673 * gcov.c (source_info::debug): Fix printf format for 32-bit hosts.
26675 2021-01-12 Andrea Corallo <andrea.corallo@arm.com>
26677 * function-abi.h: Fix typo.
26679 2021-01-12 Christophe Lyon <christophe.lyon@linaro.org>
26683 * config/arm/arm.h (ARM_HAVE_NEON_V8QI_LDST): New macro.
26684 (ARM_HAVE_NEON_V16QI_LDST, ARM_HAVE_NEON_V4HI_LDST): Likewise.
26685 (ARM_HAVE_NEON_V8HI_LDST, ARM_HAVE_NEON_V2SI_LDST): Likewise.
26686 (ARM_HAVE_NEON_V4SI_LDST, ARM_HAVE_NEON_V4HF_LDST): Likewise.
26687 (ARM_HAVE_NEON_V8HF_LDST, ARM_HAVE_NEON_V4BF_LDST): Likewise.
26688 (ARM_HAVE_NEON_V8BF_LDST, ARM_HAVE_NEON_V2SF_LDST): Likewise.
26689 (ARM_HAVE_NEON_V4SF_LDST, ARM_HAVE_NEON_DI_LDST): Likewise.
26690 (ARM_HAVE_NEON_V2DI_LDST): Likewise.
26691 (ARM_HAVE_V8QI_LDST, ARM_HAVE_V16QI_LDST): Likewise.
26692 (ARM_HAVE_V4HI_LDST, ARM_HAVE_V8HI_LDST): Likewise.
26693 (ARM_HAVE_V2SI_LDST, ARM_HAVE_V4SI_LDST, ARM_HAVE_V4HF_LDST): Likewise.
26694 (ARM_HAVE_V8HF_LDST, ARM_HAVE_V4BF_LDST, ARM_HAVE_V8BF_LDST): Likewise.
26695 (ARM_HAVE_V2SF_LDST, ARM_HAVE_V4SF_LDST, ARM_HAVE_DI_LDST): Likewise.
26696 (ARM_HAVE_V2DI_LDST): Likewise.
26697 * config/arm/mve.md (*movmisalign<mode>_mve_store): New pattern.
26698 (*movmisalign<mode>_mve_load): New pattern.
26699 * config/arm/neon.md (movmisalign<mode>): Move to ...
26700 * config/arm/vec-common.md: ... here.
26702 2021-01-12 Vladimir N. Makarov <vmakarov@redhat.com>
26705 * lra-eliminations.c (eliminate_regs_in_insn): Add transformation
26706 of pattern 'plus (plus (hard reg, const), pseudo)'.
26708 2021-01-12 Richard Biener <rguenther@suse.de>
26710 PR tree-optimization/98550
26711 * tree-vect-slp.c (vect_record_max_nunits): Check whether
26712 the group size is a multiple of the vector element count.
26713 (vect_build_slp_tree_1): When we need to fail because
26714 the vector type choosen causes unrolling do so lazily
26715 without affecting matches only at the end to guide group splitting.
26717 2021-01-12 Martin Liska <mliska@suse.cz>
26720 * optc-save-gen.awk: Compare also n_target_save vars with
26723 2021-01-12 Martin Liska <mliska@suse.cz>
26725 * gcov.c (source_info::debug): New.
26726 (print_usage): Add --debug (-D) option.
26727 (process_args): Likewise.
26728 (generate_results): Call src->debug after
26729 accumulate_line_counts.
26730 (read_graph_file): Properly assign id for EXIT_BLOCK.
26731 * profile.c (branch_prob): Dump function body before it is
26734 2021-01-12 Jakub Jelinek <jakub@redhat.com>
26736 PR tree-optimization/98629
26737 * tree-ssa-math-opts.c (arith_overflow_check_p): Don't update use_stmt
26738 unless returning non-zero.
26740 2021-01-12 Jakub Jelinek <jakub@redhat.com>
26742 PR tree-optimization/95731
26743 * tree-ssa-reassoc.c (optimize_range_tests_cmp_bitwise): Also optimize
26744 x < 0 && y < 0 && z < 0 into (x | y | z) < 0 for signed x, y, z.
26745 (optimize_range_tests): Call optimize_range_tests_cmp_bitwise
26746 only after optimize_range_tests_var_bound.
26748 2021-01-12 Jakub Jelinek <jakub@redhat.com>
26750 * configure.ac: Ensure c/Make-lang.in comes first in @all_lang_makefrags@.
26751 * configure: Regenerated.
26753 2021-01-12 liuhongt <hongtao.liu@intel.com>
26756 * config/i386/i386-builtins.h (BUILTIN_DESC_SWAP_OPERANDS):
26758 * config/i386/i386-expand.c (ix86_expand_sse_comi): Delete
26761 2021-01-12 Alexandre Oliva <oliva@adacore.com>
26763 * ssa-iterators.h (end_imm_use_stmt_traverse): Forward
26765 (auto_end_imm_use_stmt_traverse): New struct.
26766 (FOR_EACH_IMM_USE_STMT): Use it.
26767 (BREAK_FROM_IMM_USE_STMT, RETURN_FROM_IMM_USE_STMT): Remove,
26769 * gimple-ssa-strength-reduction.c: ... here, ...
26770 * graphite-scop-detection.c: ... here, ...
26771 * ipa-modref.c, ipa-pure-const.c, ipa-sra.c: ... here, ...
26772 * tree-predcom.c, tree-ssa-ccp.c: ... here, ...
26773 * tree-ssa-dce.c, tree-ssa-dse.c: ... here, ...
26774 * tree-ssa-loop-ivopts.c, tree-ssa-math-opts.c: ... here, ...
26775 * tree-ssa-phiprop.c, tree-ssa.c: ... here, ...
26776 * tree-vect-slp.c: ... and here, ...
26777 * doc/tree-ssa.texi: ... and the example here.
26779 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
26781 * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3): Extend from
26782 SVE_FULL_I to SVE_I. Generate an UNSPEC_PRED_X.
26783 (*sdiv_pow2<mode>3): New pattern.
26784 (@cond_<sve_int_op><mode>): Extend from SVE_FULL_I to SVE_I.
26785 Wrap the ASRD in an UNSPEC_PRED_X.
26786 (*cond_<sve_int_op><mode>_2): Likewise. Replace the UNSPEC_PRED_X
26787 predicate with a constant PTRUE, if it isn't already.
26788 (*cond_<sve_int_op><mode>_z): Replace with...
26789 (*cond_<sve_int_op><mode>_any): ...this new pattern.
26791 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
26793 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2): Extend from
26794 SVE_FULL_I to SVE_I.
26795 (*cond_bic<mode>_any): Likewise.
26797 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
26799 * config/aarch64/aarch64-sve.md (<su>mul<mode>3_highpart)
26800 (@aarch64_pred_<MUL_HIGHPART:optab><mode>): Extend from SVE_FULL_I
26803 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
26805 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): Extend from
26806 SVE_FULL_I to SVE_I.
26807 (*aarch64_cond_<su>abd<mode>_2): Likewise.
26808 (*aarch64_cond_<su>abd<mode>_any): Likewise.
26809 (@aarch64_pred_<su>abd<mode>): Likewise. Use UNSPEC_PRED_X
26810 for the max and min but not for the minus.
26811 (*aarch64_cond_<su>abd<mode>_3): New pattern.
26813 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
26815 * config/aarch64/iterators.md (SVE_24I): New iterator.
26816 * config/aarch64/aarch64-sve.md (*aarch64_adr<mode>_shift): Extend from
26817 SVE_FULL_SDI to SVE_24I. Use containers rather than elements.
26819 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
26821 * config/aarch64/aarch64-sve.md (@cond_<SVE_INT_BINARY:optab><mode>)
26822 (*cond_<SVE_INT_BINARY:optab><mode>_2): Extend from SVE_FULL_I
26824 (*cond_<SVE_INT_BINARY:optab><mode>_3): Likewise.
26825 (*cond_<SVE_INT_BINARY:optab><mode>_any): Likewise.
26826 (*cond_<SVE_INT_BINARY:optab><mode>_2_const): Likewise.
26827 (*cond_<SVE_INT_BINARY:optab><mode>_any_const): Likewise.
26829 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
26831 * config/aarch64/aarch64-sve.md (<SVE_INT_BINARY_IMM:optab><mode>3)
26832 (@aarch64_pred_<SVE_INT_BINARY_IMM:optab><mode>)
26833 (*post_ra_<SVE_INT_BINARY_IMM:optab><mode>3): Extend from SVE_FULL_I
26836 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
26838 * config/aarch64/aarch64-sve.md (<ASHIFT:optab><mode>3)
26839 (v<ASHIFT:optab><mode>3, @aarch64_pred_<optab><mode>)
26840 (*post_ra_v<ASHIFT:optab><mode>3): Extend from SVE_FULL_I to SVE_I.
26842 2021-01-11 Martin Liska <mliska@suse.cz>
26845 * symtab-clones.h (clone_info::release): Release
26846 symtab::m_clones with ggc_delete as it's a GGC memory.
26848 2021-01-11 Matthias Klose <doko@ubuntu.com>
26850 * Makefile.in (LINK_PROGRESS): Show the link target.
26852 2021-01-11 Richard Biener <rguenther@suse.de>
26854 PR tree-optimization/91403
26855 * tree-vect-data-refs.c (vect_analyze_group_access_1): Cap
26856 single-element interleaving group size at 4096 elements.
26858 2021-01-11 Richard Biener <rguenther@suse.de>
26860 PR tree-optimization/98526
26861 * tree-vect-loop.c (vect_model_reduction_cost): Remove costing
26862 of the actual reduction op for the regular case.
26863 (vectorizable_reduction): Cost the stmts
26864 vect_transform_reduction produces here.
26866 2021-01-11 Andreas Krebbel <krebbel@linux.ibm.com>
26868 * tree-ssa-forwprop.c (simplify_vector_constructor): For
26869 big-endian, use UNPACK[_FLOAT]_HI.
26871 2021-01-11 Tamar Christina <tamar.christina@arm.com>
26873 * tree-vect-slp-patterns.c (class complex_pattern,
26874 class complex_add_pattern): Add parameters to matches.
26875 (complex_add_pattern::build): Free memory.
26876 (complex_add_pattern::matches): Move validation end of match.
26877 (complex_add_pattern::recognize): Likewise.
26879 2021-01-11 Tamar Christina <tamar.christina@arm.com>
26881 * tree-vect-slp-patterns.c (linear_loads_p): Fix externals.
26883 2021-01-11 Tamar Christina <tamar.christina@arm.com>
26885 * tree-vect-slp-patterns.c (is_linear_load_p): Fix ambiguity.
26887 2021-01-11 Jakub Jelinek <jakub@redhat.com>
26889 PR tree-optimization/95867
26890 * tree-ssa-math-opts.h: New header.
26891 * tree-ssa-math-opts.c: Include tree-ssa-math-opts.h.
26892 (powi_as_mults): No longer static. Use build_one_cst instead of
26893 build_real. Formatting fix.
26894 * tree-ssa-reassoc.c: Include tree-ssa-math-opts.h.
26895 (attempt_builtin_powi): Handle multiplication reassociation without
26896 powi_fndecl using powi_as_mults.
26897 (reassociate_bb): For integral types don't require
26898 -funsafe-math-optimizations to call attempt_builtin_powi.
26900 2021-01-11 Jakub Jelinek <jakub@redhat.com>
26902 PR tree-optimization/95852
26903 * tree-ssa-math-opts.c (maybe_optimize_guarding_check): Change
26904 mul_stmts parameter type to vec<gimple *> &. Before cond_stmt
26905 allow in the bb any of the stmts in that vector, div_stmt and
26906 up to 3 cast stmts.
26907 (arith_cast_equal_p): New function.
26908 (arith_overflow_check_p): Add cast_stmt argument, handle signed
26909 multiply overflow checks.
26910 (match_arith_overflow): Adjust caller. Handle signed multiply
26913 2021-01-11 Jakub Jelinek <jakub@redhat.com>
26915 PR tree-optimization/95852
26916 * tree-ssa-math-opts.c (maybe_optimize_guarding_check): New function.
26917 (uaddsub_overflow_check_p): Renamed to ...
26918 (arith_overflow_check_p): ... this. Handle also multiplication
26919 with overflow check.
26920 (match_uaddsub_overflow): Renamed to ...
26921 (match_arith_overflow): ... this. Add cfg_changed argument. Handle
26922 also multiplication with overflow check. Adjust function comment.
26923 (math_opts_dom_walker::after_dom_children): Adjust callers. Call
26924 match_arith_overflow also for MULT_EXPR.
26926 2021-01-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26928 * config/aarch64/arm_neon.h (vmovl_s8): Reimplement using
26929 __builtin_convertvector.
26930 (vmovl_s16): Likewise.
26931 (vmovl_s32): Likewise.
26932 (vmovl_u8): Likewise.
26933 (vmovl_u16): Likewise.
26934 (vmovl_u32): Likewise.
26935 (vmovn_s16): Likewise.
26936 (vmovn_s32): Likewise.
26937 (vmovn_s64): Likewise.
26938 (vmovn_u16): Likewise.
26939 (vmovn_u32): Likewise.
26940 (vmovn_u64): Likewise.
26942 2021-01-11 Martin Liska <mliska@suse.cz>
26944 * gimple-if-to-switch.cc (struct condition_info): Use auto_var.
26945 (if_chain::is_beneficial): Delete clusters
26946 (find_conditions): Make second argument of conditions_in_bbs a
26947 pointer so that we control over it's lifetime.
26948 (pass_if_to_switch::execute): Delete them.
26950 2021-01-11 Kewen Lin <linkw@linux.ibm.com>
26952 * ira.c (move_unallocated_pseudos): Check other_reg and skip if
26955 2021-01-09 Maciej W. Rozycki <macro@linux-mips.org>
26957 * config/vax/vax.md (cc): Remove mode attribute.
26958 (subst_<cc>, subst_f<cc>): Rename to...
26959 (subst_<mode>, subst_f<VAXccnz:mode>): ... these respectively.
26960 (*cbranch<VAXint:mode>4_<VAXcc:mode>): Update for `cc' removal.
26961 (*cbranch<VAXfp:mode>4_<VAXccnz:mode>): Likewise.
26962 (*branch_<mode>, *branch_<mode>_reversed): Likewise.
26964 2021-01-09 Maciej W. Rozycki <macro@linux-mips.org>
26966 * config/vax/vax.md (subst_f<cc>): Add mode to operands and
26967 `const_double_zero'.
26969 2021-01-09 Maciej W. Rozycki <macro@linux-mips.org>
26971 * config/pdp11/pdp11.md (PDPfp): New mode iterator.
26972 (fcc_cc, fcc_ccnz): Use it. Add mode to `const_double_zero' and
26975 2021-01-09 Maciej W. Rozycki <macro@linux-mips.org>
26977 * genemit.c (gen_exp) <CONST_DOUBLE>: Handle `const_double_zero'
26979 * read-rtl.c (rtx_reader::read_rtx_code): Handle machine mode
26980 with `const_double_zero'.
26981 * doc/rtl.texi (Constant Expression Types): Document it.
26983 2021-01-09 Jakub Jelinek <jakub@redhat.com>
26986 * tree-cfg.c (verify_gimple_assign_binary): Allow lhs of
26987 POINTER_DIFF_EXPR to be any integral type.
26989 2021-01-09 Jakub Jelinek <jakub@redhat.com>
26991 PR rtl-optimization/98603
26992 * function.c (instantiate_virtual_regs_in_insn): For asm goto
26993 with impossible constraints, drop all SETs, CLOBBERs, drop PARALLEL
26994 if any, set ASM_OPERANDS mode to VOIDmode and change
26995 ASM_OPERANDS_OUTPUT_CONSTRAINT and ASM_OPERANDS_OUTPUT_IDX.
26997 2021-01-09 Alexandre Oliva <oliva@gnu.org>
27000 * final.c (notice_source_line): Narrow down the condition to
27001 skip a line-0 marker.
27003 2021-01-08 Sergei Trofimovich <siarheit@google.com>
27005 * ipa-modref.c (merge_call_side_effects): Fix
27006 linebreak split by reordering two print calls.
27008 2021-01-08 Ilya Leoshkevich <iii@linux.ibm.com>
27010 * config/s390/vector.md (*tf_to_fprx2_0): Rename from
27011 "*mov_tf_to_fprx2_0" for consistency, fix constraint.
27012 (*tf_to_fprx2_1): Rename from "*mov_tf_to_fprx2_1" for
27013 consistency, fix constraint.
27015 2021-01-08 Ilya Leoshkevich <iii@linux.ibm.com>
27017 * config/s390/s390-c.c (s390_def_or_undef_macro): Accept
27018 callables instead of mask values.
27019 (struct target_flag_set_p): New predicate.
27020 (s390_cpu_cpp_builtins_internal): Define or undefine
27021 __LONG_DOUBLE_VX__ macro.
27023 2021-01-08 H.J. Lu <hjl.tools@gmail.com>
27026 * config/i386/i386.c (x86_function_profiler): Use R10 and R11
27027 to call mcount in large model with PIC for NO_PROFILE_COUNTERS
27030 2021-01-08 Richard Biener <rguenther@suse.de>
27032 * tree-ssa-sccvn.c (pass_fre::execute): Reset the SCEV hash table.
27034 2021-01-08 Richard Biener <rguenther@suse.de>
27036 * tree-vect-slp.c (scalar_stmts_to_slp_tree_map_t): Fix.
27037 (vect_build_slp_tree): On cache hit release the matched
27038 scalar stmts vector.
27039 * tree-vect-stmts.c (vectorizable_store): Properly free
27040 vec_oprnds before possibly gathering them again.
27042 2021-01-08 Richard Biener <rguenther@suse.de>
27044 PR tree-optimization/98544
27045 * tree-vect-slp.c (vect_optimize_slp): Always materialize
27046 permutes at a permute node.
27048 2021-01-08 H.J. Lu <hjl.tools@gmail.com>
27051 * config/i386/i386.c (x86_function_profiler): Use R10 to call
27052 mcount in large model. Sorry for large model with PIC.
27054 2021-01-08 Jakub Jelinek <jakub@redhat.com>
27057 * config/i386/i386.opt (ix86_cmodel, ix86_incoming_stack_boundary_arg,
27058 ix86_pmode, ix86_preferred_stack_boundary_arg, ix86_regparm,
27059 ix86_veclibabi_type): Remove x_ prefix, use TargetVariable instead of
27060 TargetSave and initialize for variables with enum types.
27061 (mfentry, mstack-protector-guard-reg=, mstack-protector-guard-offset=,
27062 mstack-protector-guard-symbol=): Add Save.
27063 * config/i386/i386-options.c (ix86_function_specific_save,
27064 ix86_function_specific_restore): Don't save or restore x_ix86_cmodel,
27065 x_ix86_incoming_stack_boundary_arg, x_ix86_pmode,
27066 x_ix86_preferred_stack_boundary_arg, x_ix86_regparm,
27067 x_ix86_veclibabi_type.
27069 2021-01-08 Richard Sandiford <richard.sandiford@arm.com>
27071 * config/aarch64/aarch64-sve.md (*cnot<mode>): Extend from
27072 SVE_FULL_I to SVE_I.
27073 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
27075 2021-01-08 Richard Sandiford <richard.sandiford@arm.com>
27077 * config/aarch64/aarch64-sve.md (*cond_uxt<mode>_2): Extend from
27078 SVE_FULL_I to SVE_I.
27079 (*cond_uxt<mode>_any): Likewise.
27081 2021-01-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27083 * config/aarch64/iterators.md (Vwhalf): New iterator.
27084 * config/aarch64/aarch64-simd.md (aarch64_<sur>adalp<mode>_3):
27086 (aarch64_<sur>adalp<mode>): ... This. Make more
27088 (<sur>sadv16qi): Adjust callsite of the above.
27089 * config/aarch64/aarch64-simd-builtins.def (sadalp, uadalp): New
27091 * config/aarch64/arm_neon.h (vpadal_s8): Reimplement using
27093 (vpadal_s16): Likewise.
27094 (vpadal_u8): Likewise.
27095 (vpadal_u16): Likewise.
27096 (vpadalq_s8): Likewise.
27097 (vpadalq_s16): Likewise.
27098 (vpadalq_s32): Likewise.
27099 (vpadalq_u8): Likewise.
27100 (vpadalq_u16): Likewise.
27101 (vpadalq_u32): Likewise.
27103 2021-01-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27105 * config/aarch64/aarch64-simd.md (aarch64_<su>abd<mode>_3):
27107 (aarch64_<su>abd<mode>): ... This.
27108 (<sur>sadv16qi): Adjust callsite of the above.
27109 * config/aarch64/aarch64-simd-builtins.def (sabd, uabd): Define
27111 * config/aarch64/arm_neon.h (vabd_s8): Reimplement using
27113 (vabd_s16): Likewise.
27114 (vabd_s32): Likewise.
27115 (vabd_u8): Likewise.
27116 (vabd_u16): Likewise.
27117 (vabd_u32): Likewise.
27118 (vabdq_s8): Likewise.
27119 (vabdq_s16): Likewise.
27120 (vabdq_s32): Likewise.
27121 (vabdq_u8): Likewise.
27122 (vabdq_u16): Likewise.
27123 (vabdq_u32): Likewise.
27125 2021-01-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27127 * config/aarch64/aarch64-simd-builtins.def (saba, uaba): Define
27129 * config/aarch64/arm_neon.h (vaba_s8): Implement using builtin.
27130 (vaba_s16): Likewise.
27131 (vaba_s32): Likewise.
27132 (vaba_u8): Likewise.
27133 (vaba_u16): Likewise.
27134 (vaba_u32): Likewise.
27135 (vabaq_s8): Likewise.
27136 (vabaq_s16): Likewise.
27137 (vabaq_s32): Likewise.
27138 (vabaq_u8): Likewise.
27139 (vabaq_u16): Likewise.
27140 (vabaq_u32): Likewise.
27142 2021-01-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27144 * config/aarch64/aarch64-simd.md (aba<mode>_3): Rename to...
27145 (aarch64_<su>aba<mode>): ... This. Handle uaba as well.
27146 Change RTL pattern to match.
27148 2021-01-08 Kito Cheng <kito.cheng@sifive.com>
27150 * common/config/riscv/riscv-common.c (riscv_current_subset_list): New.
27151 * config/riscv/riscv-c.c (riscv-subset.h): New.
27152 (INCLUDE_STRING): Define.
27153 (riscv_cpu_cpp_builtins): Add new style architecture extension
27155 * config/riscv/riscv-subset.h (riscv_subset_list::begin): New.
27156 (riscv_subset_list::end): New.
27157 (riscv_current_subset_list): New.
27159 2021-01-08 Kito Cheng <kito.cheng@sifive.com>
27161 * common/config/riscv/riscv-common.c (RISCV_DONT_CARE_VERSION):
27162 Move to riscv-subset.h.
27163 (struct riscv_subset_t): Ditto.
27164 (class riscv_subset_list): Ditto.
27165 * config/riscv/riscv-subset.h (RISCV_DONT_CARE_VERSION): Move
27166 from riscv-common.c.
27167 (struct riscv_subset_t): Ditto.
27168 (class riscv_subset_list): Ditto.
27169 * config/riscv/t-riscv ($(common_out_file)): Add file
27172 2021-01-07 Jakub Jelinek <jakub@redhat.com>
27175 * config/i386/i386.md (*bmi_blsi_<mode>_cmp, *bmi_blsi_<mode>_ccno):
27176 New define_insn patterns.
27178 2021-01-07 Richard Sandiford <richard.sandiford@arm.com>
27180 * config/aarch64/aarch64-sve.md (@cond_<SVE_INT_UNARY:optab><mode>)
27181 (*cond_<SVE_INT_UNARY:optab><mode>_2): Extend from SVE_FULL_I to SVE_I.
27182 (*cond_<SVE_INT_UNARY:optab><mode>_any): Likewise.
27184 2021-01-07 Richard Sandiford <richard.sandiford@arm.com>
27186 PR tree-optimization/98560
27187 * internal-fn.def (IFN_VCONDU, IFN_VCONDEQ): Use type vec_cond.
27188 * internal-fn.c (vec_cond_mask_direct): Get the data mode from
27190 (vec_cond_direct): Likewise argument 2.
27191 (vec_condu_direct, vec_condeq_direct): Delete.
27192 (expand_vect_cond_optab_fn): Rename to...
27193 (expand_vec_cond_optab_fn): ...this, replacing old macro.
27194 (expand_vec_condu_optab_fn, expand_vec_condeq_optab_fn): Delete.
27195 (expand_vect_cond_mask_optab_fn): Rename to...
27196 (expand_vec_cond_mask_optab_fn): ...this, replacing old macro.
27197 (direct_vec_cond_mask_optab_supported_p): Treat the optab as a
27199 (direct_vec_cond_optab_supported_p): Likewise.
27200 (direct_vec_condu_optab_supported_p): Delete.
27201 (direct_vec_condeq_optab_supported_p): Delete.
27202 * gimple-isel.cc: Include internal-fn.h.
27203 (gimple_expand_vec_cond_expr): Check that IFN_VCONDEQ is supported
27206 2021-01-07 Richard Sandiford <richard.sandiford@arm.com>
27208 PR tree-optimization/98560
27209 * gimple-isel.cc (gimple_expand_vec_cond_expr): If we fail to use
27210 IFN_VCOND{,U,EQ}, fall back on IFN_VCOND_MASK.
27212 2021-01-07 Uroš Bizjak <ubizjak@gmail.com>
27214 * config/i386/i386.md (insn): Merge from plusminus_insn, shift_insn,
27215 rotate_insn and optab code attributes.
27216 Update all uses to merged code attribute.
27217 * config/i386/sse.md: Update all uses to merged code attribute.
27218 * config/i386/mmx.md: Update all uses to merged code attribute.
27220 2021-01-07 Jakub Jelinek <jakub@redhat.com>
27222 PR tree-optimization/98568
27223 * gimple-ssa-store-merging.c (bswap_view_convert): New function.
27224 (bswap_replace): Use it.
27226 2021-01-06 Vladimir N. Makarov <vmakarov@redhat.com>
27228 PR rtl-optimization/97978
27229 * lra-int.h (lra_hard_reg_split_p): New external.
27230 * lra.c (lra_hard_reg_split_p): New global.
27231 (lra): Set up lra_hard_reg_split_p after splitting a hard reg.
27232 * lra-assigns.c (lra_assign): Don't check allocation correctness
27233 after hard reg splitting.
27235 2021-01-06 Martin Sebor <msebor@redhat.com>
27238 * builtins.c (new_delete_mismatch_p): New overload.
27239 (new_delete_mismatch_p (tree, tree)): Call it.
27241 2021-01-06 Alexandre Oliva <oliva@adacore.com>
27243 * Makefile.in (T_GLIMITS_H): New.
27244 (stmp-int-hdrs): Depend on it, use it.
27245 * config/t-vxworks (T_GLIMITS_H): Override it.
27246 (vxw-glimits.h): New.
27248 2021-01-06 Richard Biener <rguenther@suse.de>
27250 PR tree-optimization/98513
27251 * value-range.cc (intersect_ranges): Compare the upper bounds
27252 for the expected relation.
27254 2021-01-06 Gerald Pfeifer <gerald@pfeifer.com>
27257 2020-12-28 Gerald Pfeifer <gerald@pfeifer.com>
27259 * doc/standards.texi (HSAIL): Remove section.
27261 2021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
27263 * configure: Re-generate.
27265 2021-01-05 Jakub Jelinek <jakub@redhat.com>
27267 * doc/invoke.texi (-std=c++20): Adjust for the publication of
27268 ISO 14882:2020 standard.
27269 * doc/standards.texi: Likewise.
27271 2021-01-05 Jakub Jelinek <jakub@redhat.com>
27273 PR tree-optimization/94802
27274 * expr.h (maybe_optimize_sub_cmp_0): Declare.
27275 * expr.c: Include tree-pretty-print.h and flags.h.
27276 (maybe_optimize_sub_cmp_0): New function.
27277 (do_store_flag): Use it.
27278 * cfgexpand.c (expand_gimple_cond): Likewise.
27280 2021-01-05 Richard Sandiford <richard.sandiford@arm.com>
27282 * mux-utils.h (pointer_mux::m_ptr): Tweak description of contents.
27283 * rtlanal.c (simple_regno_set): Tweak description to clarify the
27286 2021-01-05 Richard Biener <rguenther@suse.de>
27288 PR tree-optimization/98516
27289 * tree-vect-slp.c (vect_optimize_slp): Permute the incoming
27290 lanes when materializing on a VEC_PERM node.
27291 (vectorizable_slp_permutation): Dump the permute properly.
27293 2021-01-05 Richard Biener <rguenther@suse.de>
27295 * tree-vect-slp.c (vect_slp_region): Move debug counter
27296 to cover individual subgraphs.
27298 2021-01-05 Richard Biener <rguenther@suse.de>
27300 PR tree-optimization/98428
27301 * tree-vect-slp.c (vect_build_slp_tree_1): Properly reject
27302 vector lane extracts for loop vectorization.
27304 2021-01-05 Jakub Jelinek <jakub@redhat.com>
27306 PR tree-optimization/98514
27307 * tree-ssa-reassoc.c (bb_rank): Change type from long * to
27309 (operand_rank): Change type from hash_map<tree, long> to
27310 hash_map<tree, int64_t>.
27311 (phi_rank): Change return type from long to int64_t.
27312 (loop_carried_phi): Change block_rank variable type from long to
27314 (propagate_rank): Change return type, rank parameter type and
27315 op_rank variable type from long to int64_t.
27316 (find_operand_rank): Change return type from long to int64_t
27317 and change slot variable type from long * to int64_t *.
27318 (insert_operand_rank): Change rank parameter type from long to
27320 (get_rank): Change return type and rank variable type from long to
27321 int64_t. Use PRId64 instead of ld to print the rank.
27322 (init_reassoc): Change rank variable type from long to int64_t
27323 and adjust correspondingly bb_rank and operand_rank initialization.
27325 2021-01-05 Jakub Jelinek <jakub@redhat.com>
27327 PR tree-optimization/96928
27328 * tree-ssa-phiopt.c (xor_replacement): New function.
27329 (tree_ssa_phiopt_worker): Call it.
27331 2021-01-05 Jakub Jelinek <jakub@redhat.com>
27333 PR tree-optimization/96930
27334 * match.pd ((A / (1 << B)) -> (A >> B)): If A is extended
27335 from narrower value which has the same type as 1 << B, perform
27336 the right shift on the narrower value followed by extension.
27338 2021-01-05 Jakub Jelinek <jakub@redhat.com>
27340 PR tree-optimization/96239
27341 * gimple-ssa-store-merging.c (maybe_optimize_vector_constructor): New
27343 (get_status_for_store_merging): Don't return BB_INVALID for blocks
27344 with potential bswap optimizable CONSTRUCTORs.
27345 (pass_store_merging::execute): Optimize vector CONSTRUCTORs with bswap
27348 2021-01-05 Richard Biener <rguenther@suse.de>
27350 PR tree-optimization/98381
27351 * tree.c (vector_element_bits): Properly compute bool vector
27353 * tree-vect-loop.c (vectorizable_live_operation): Properly
27354 compute the last lane bit offset.
27356 2021-01-05 Uroš Bizjak <ubizjak@gmail.com>
27359 * config/i386/sse.md (sse_cvtps2pi): Redefine as define_insn_and_split.
27360 Clear the top 64 bytes of the input XMM register.
27361 (sse_cvttps2pi): Ditto.
27363 2021-01-05 Uroš Bizjak <ubizjak@gmail.com>
27366 * config/i386/xopintrin.h (_mm256_cmov_si256): New.
27368 2021-01-05 H.J. Lu <hjl.tools@gmail.com>
27371 * config/i386/xmmintrin.h (_mm_extract_pi16): Cast to unsigned
27374 2021-01-05 Claudiu Zissulescu <claziss@synopsys.com>
27376 * config/arc/arc.md (maddsidi4_split): Use ACC_REG_FIRST.
27377 (umaddsidi4_split): Likewise.
27379 2021-01-05 liuhongt <hongtao.liu@intel.com>
27382 * config/i386/sse.md (*sse2_pmovskb_zexthisi): New
27383 define_insn_and_split for zero_extend of subreg HI of pmovskb
27385 (*sse2_pmovskb_zexthisi): Add new combine splitters for
27386 zero_extend of not of subreg HI of pmovskb result.
27388 2021-01-05 Richard Sandiford <richard.sandiford@arm.com>
27391 * explow.c (convert_memory_address_addr_space_1): Handle UNSPECs
27393 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Use
27394 convert_memory_address to convert symbolic immediates to ptr_mode
27395 before forcing them to memory.
27397 2021-01-05 Richard Sandiford <richard.sandiford@arm.com>
27399 PR rtl-optimization/97144
27400 * recog.c (constrain_operands): Initialize matching_operand
27401 for each alternative, rather than only doing it once.
27403 2021-01-05 Richard Sandiford <richard.sandiford@arm.com>
27405 PR rtl-optimization/98403
27406 * rtl-ssa/changes.cc (function_info::finalize_new_accesses): Explain
27407 why we don't remove call clobbers.
27408 (function_info::apply_changes_to_insn): Don't attempt to add
27409 call clobbers here.
27411 2021-01-05 Richard Sandiford <richard.sandiford@arm.com>
27413 PR tree-optimization/98371
27414 * tree-vect-loop.c (vect_reanalyze_as_main_loop): New function.
27415 (vect_analyze_loop): If an epilogue loop appears to be cheaper
27416 than the main loop, re-analyze it as a main loop before adopting
27419 2021-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27422 * configure.ac (NETLIBS): Determine using AX_LIB_SOCKET_NSL.
27423 * aclocal.m4, configure: Regenerate.
27424 * Makefile.in (NETLIBS): Define.
27425 (BACKEND): Remove $(CODYLIB).
27427 2021-01-05 Jakub Jelinek <jakub@redhat.com>
27429 PR rtl-optimization/98334
27430 * simplify-rtx.c (simplify_context::simplify_binary_operation_1):
27431 Optimize (X - 1) * Y + Y to X * Y or (X + 1) * Y - Y to X * Y.
27433 2021-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
27435 * tree-inline.c (expand_call_inline): Restore input_location.
27436 Return result from recursive call.
27438 2021-01-04 Richard Sandiford <richard.sandiford@arm.com>
27440 PR tree-optimization/95401
27441 * config/aarch64/aarch64-sve-builtins.cc
27442 (gimple_folder::load_store_cookie): Use bits rather than bytes
27443 for the alignment argument to IFN_MASK_LOAD and IFN_MASK_STORE.
27444 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref): Likewise.
27445 * tree-vect-stmts.c (vectorizable_store): Likewise.
27446 (vectorizable_load): Likewise.
27448 2021-01-04 Richard Biener <rguenther@suse.de>
27450 PR tree-optimization/98308
27451 * tree-vect-stmts.c (vectorizable_load): Set invariant mask
27454 2021-01-04 Jakub Jelinek <jakub@redhat.com>
27456 PR tree-optimization/95771
27457 * tree-ssa-loop-niter.c (number_of_iterations_popcount): Handle types
27458 with precision smaller than int's precision and types with precision
27459 twice as large as long long. Formatting fixes.
27461 2021-01-04 Richard Biener <rguenther@suse.de>
27463 PR tree-optimization/98464
27464 * tree-ssa-sccvn.c (vn_valueize_for_srt): Rename from ...
27465 (vn_valueize_wrapper): ... this. Temporarily adjust vn_context_bb.
27466 (process_bb): Adjust.
27468 2021-01-04 Matthew Malcomson <matthew.malcomson@arm.com>
27471 * doc/invoke.texi (-fsanitize=address): Fix wording describing
27472 clash with -fsanitize=hwaddress.
27474 2021-01-04 Richard Biener <rguenther@suse.de>
27476 PR tree-optimization/98282
27477 * tree-ssa-sccvn.c (vn_get_stmt_kind): Classify tcc_reference on
27478 invariants as VN_NARY.
27480 2021-01-04 Richard Sandiford <richard.sandiford@arm.com>
27483 * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Accept
27484 aarch64_simd_reg_or_zero for operand 2. Use the combinez patterns
27485 to handle zero operands.
27487 2021-01-04 Richard Sandiford <richard.sandiford@arm.com>
27489 * config/aarch64/aarch64.c (offset_6bit_signed_scaled_p): New function.
27490 (offset_6bit_unsigned_scaled_p): Fix typo in comment.
27491 (aarch64_sve_prefetch_operand_p): Accept MUL VLs in the range
27494 2021-01-04 Richard Biener <rguenther@suse.de>
27496 PR tree-optimization/98393
27497 * tree-vect-slp.c (vect_build_slp_tree): Properly zero matches
27498 when hitting the limit.
27500 2021-01-04 Richard Biener <rguenther@suse.de>
27502 PR tree-optimization/98291
27503 * tree-vect-loop.c (vectorizable_reduction): Bypass
27504 associativity check for SLP reductions with VF 1.
27506 2021-01-04 Jakub Jelinek <jakub@redhat.com>
27508 PR tree-optimization/96782
27509 * match.pd (x == ~x -> false, x != ~x -> true): New simplifications.
27511 2021-01-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
27513 * collect-utils.c (collect_execute): Check dumppfx.
27514 * collect2.c (maybe_run_lto_and_relink, do_link): Pass atsuffix
27515 to collect_execute.
27516 (do_link): Add new parameter atsuffix.
27517 (main): Handle -dumpdir option. Skip one argument for
27518 -o, -isystem and -B options.
27519 * gcc.c (make_at_file): New helper function.
27520 (close_at_file): Use it.
27522 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
27524 * config/darwin.h (MIN_LD64_NO_COAL_SECTS): Adjust.
27525 Amend handling for LD64_VERSION fallback defaults.
27527 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
27529 * config.gcc: Compute default version information
27530 from the configured target. Likewise defaults for
27532 * config/darwin10.h: Removed.
27533 * config/darwin12.h: Removed.
27534 * config/darwin9.h: Removed.
27535 * config/rs6000/darwin8.h: Removed.
27537 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
27539 * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Delete.
27541 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
27543 * config/darwin9.h (STACK_CHECK_STATIC_BUILTIN): Move from here..
27544 * config/darwin.h (STACK_CHECK_STATIC_BUILTIN): .. to here.
27546 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
27548 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move from
27550 * config/darwin.h (LINK_GCC_C_SEQUENCE_SPEC): ... to here.
27552 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
27554 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move the spec
27555 for the Darwin10 unwinder stub from here ...
27556 * config/darwin.h (LINK_COMMAND_SPEC_A): ... to here.
27558 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
27560 * config/darwin.h (DSYMUTIL_SPEC): Default to DWARF
27561 (ASM_DEBUG_SPEC):Only define if the assembler supports
27563 (PREFERRED_DEBUGGING_TYPE): Default to DWARF.
27564 (DARWIN_PREFER_DWARF): Define.
27565 * config/darwin9.h (PREFERRED_DEBUGGING_TYPE): Remove.
27566 (DARWIN_PREFER_DWARF): Likewise
27567 (DSYMUTIL_SPEC): Likewise.
27568 (COLLECT_RUN_DSYMUTIL): Likewise.
27569 (ASM_DEBUG_SPEC): Likewise.
27570 (ASM_DEBUG_OPTION_SPEC): Likewise.
27572 2021-01-02 Jan Hubicka <jh@suse.cz>
27574 * cfg.c (free_block): ggc_free bb.
27576 2021-01-01 Jakub Jelinek <jakub@redhat.com>
27578 * gcc.c (process_command): Update copyright notice dates.
27579 * gcov-dump.c (print_version): Ditto.
27580 * gcov.c (print_version): Ditto.
27581 * gcov-tool.c (print_version): Ditto.
27582 * gengtype.c (create_file): Ditto.
27583 * doc/cpp.texi: Bump @copying's copyright year.
27584 * doc/cppinternals.texi: Ditto.
27585 * doc/gcc.texi: Ditto.
27586 * doc/gccint.texi: Ditto.
27587 * doc/gcov.texi: Ditto.
27588 * doc/install.texi: Ditto.
27589 * doc/invoke.texi: Ditto.
27591 2021-01-01 Jakub Jelinek <jakub@redhat.com>
27593 * ChangeLog-2020: Rotate ChangeLog. New file.
27596 Copyright (C) 2021 Free Software Foundation, Inc.
27598 Copying and distribution of this file, with or without modification,
27599 are permitted in any medium without royalty provided the copyright
27600 notice and this notice are preserved.