1 2021-10-30 Tobias Burnus <tobias@codesourcery.com>
4 * omp-low.c (omp_runtime_api_call): Use DECL_ASSEMBLER_NAME to get
5 internal Fortran name; new permit_num_teams arg to permit
6 omp_get_num_teams and omp_get_team_num.
7 (scan_omp_1_stmt): Update call to it, add missing call for
8 reverse offload, and check for strictly nested API calls in teams.
10 2021-10-30 Jakub Jelinek <jakub@redhat.com>
12 * gimplify.c (gimplify_omp_for): Diagnose threadprivate iterators.
14 2021-10-29 David Malcolm <dmalcolm@redhat.com>
16 * selftest.c (assert_streq): Add newlines when emitting non-equal
19 2021-10-29 David Malcolm <dmalcolm@redhat.com>
21 * Makefile.in: Fix syntax for reference to LIBDEPS in
24 2021-10-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
26 * doc/install.texi: Bump required minimum DejaGnu version.
28 2021-10-29 Aldy Hernandez <aldyh@redhat.com>
29 Andrew MacLeod <amacleod@redhat.com>
31 * value-relation.cc (path_oracle::killing_def): Add a
32 self-equivalence so we don't look to the root oracle.
34 2021-10-29 Aldy Hernandez <aldyh@redhat.com>
36 * passes.def: Replace the pass_thread_jumps before VRP* with
37 pass_thread_jumps_full. Remove all pass_vrp_threader instances.
38 * tree-ssa-threadbackward.c (pass_data_thread_jumps_full):
39 Remove hyphen from "thread-full" name.
41 2021-10-29 Andrew MacLeod <amacleod@redhat.com>
43 PR tree-optimization/102983
44 * gimple-range-cache.h (propagate_updated_value): Make public.
45 * gimple-range.cc (gimple_ranger::range_of_stmt): Propagate exports
46 when processing gcond stmts.
48 2021-10-29 Jan Hubicka <hubicka@ucw.cz>
50 * gimple.c (gimple_call_retslot_flags): New function.
51 * gimple.h (gimple_call_retslot_flags): Declare.
52 * ipa-modref.c: Include tree-cfg.h.
53 (struct escape_entry): Turn parm_index to signed.
54 (modref_summary_lto::modref_summary_lto): Add retslot_flags.
55 (modref_summary::modref_summary): Initialize retslot_flags.
56 (struct modref_summary_lto): Likewise.
57 (modref_summary::useful_p): Check retslot_flags.
58 (modref_summary_lto::useful_p): Likewise.
59 (modref_summary::dump): Dump retslot_flags.
60 (modref_summary_lto::dump): Likewise.
61 (struct escape_point): Add hidden_args enum.
62 (analyze_ssa_name_flags): Ignore return slot return;
63 use gimple_call_retslot_flags.
64 (record_escape_points): Break out from ...
65 (analyze_parms): ... here; handle retslot_flags.
66 (modref_summaries::duplicate): Duplicate retslot_flags.
67 (modref_summaries_lto::duplicate): Likewise.
68 (modref_write_escape_summary): Stream parm_index as signed.
69 (modref_read_escape_summary): Likewise.
70 (modref_write): Stream retslot_flags.
71 (read_section): Likewise.
72 (struct escape_map): Fix typo in comment.
73 (update_escape_summary_1): Fix whitespace.
74 (ipa_merge_modref_summary_after_inlining): Drop retslot_flags.
75 (modref_merge_call_site_flags): Merge retslot_flags.
76 * ipa-modref.h (struct modref_summary): Add retslot_flags.
77 * tree-ssa-structalias.c (handle_rhs_call): Handle retslot_flags.
79 2021-10-29 Tamar Christina <tamar.christina@arm.com>
81 PR tree-optimization/102977
82 * tree-vect-slp-patterns.c (vect_match_call_p): Remove.
83 (vect_detect_pair_op): Add crosslane check.
84 (vect_match_call_complex_mla): Remove.
85 (class complex_mul_pattern): Update comment.
86 (complex_mul_pattern::matches): Update detection.
87 (class complex_fma_pattern): Remove.
88 (complex_fma_pattern::matches): Remove.
89 (complex_fma_pattern::recognize): Remove.
90 (complex_fma_pattern::build): Remove.
91 (class complex_fms_pattern): Update comment.
92 (complex_fms_pattern::matches): Remove.
93 (complex_operations_pattern::recognize): Remove complex_fma_pattern
95 2021-10-29 Jakub Jelinek <jakub@redhat.com>
97 * gimple-fold.c (gimple_fold_builtin_memset): Copy over location from
100 2021-10-29 Xionghu Luo <luoxhu@linux.ibm.com>
103 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Add
104 patterns match and emit for VSX xxpermdi.
106 2021-10-29 liuhongt <hongtao.liu@intel.com>
109 * config/i386/i386-builtin-types.def (V8HF_FTYPE_V8HF): New
111 (V16HF_FTYPE_V16HF): Ditto.
112 (V32HF_FTYPE_V32HF): Ditto.
113 (V8HF_FTYPE_V8HF_ROUND): Ditto.
114 (V16HF_FTYPE_V16HF_ROUND): Ditto.
115 (V32HF_FTYPE_V32HF_ROUND): Ditto.
116 * config/i386/i386-builtin.def ( IX86_BUILTIN_FLOORPH,
117 IX86_BUILTIN_CEILPH, IX86_BUILTIN_TRUNCPH,
118 IX86_BUILTIN_FLOORPH256, IX86_BUILTIN_CEILPH256,
119 IX86_BUILTIN_TRUNCPH256, IX86_BUILTIN_FLOORPH512,
120 IX86_BUILTIN_CEILPH512, IX86_BUILTIN_TRUNCPH512): New builtin.
121 * config/i386/i386-builtins.c
122 (ix86_builtin_vectorized_function): Enable vectorization for
123 HFmode FLOOR/CEIL/TRUNC operation.
124 * config/i386/i386-expand.c (ix86_expand_args_builtin): Handle
126 * config/i386/sse.md (rint<mode>2, nearbyint<mode>2): Extend
129 2021-10-28 Aldy Hernandez <aldyh@redhat.com>
130 Andrew MacLeod <amacleod@redhat.com>
132 * value-relation.cc (path_oracle::killing_def): Walk the
133 equivalency list and remove SSA from any equivalencies.
135 2021-10-28 Stafford Horne <shorne@gmail.com>
137 * config/or1k/or1k.h (PROFILE_HOOK): Add return address argument
140 2021-10-28 Jakub Jelinek <jakub@redhat.com>
142 PR tree-optimization/102951
143 * fold-const.h (address_compare): Declare.
144 * fold-const.c (address_compare): New function.
145 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Use
146 address_compare helper.
147 (minmax cmp (convert1?@2 addr@0) (convert2?@3 addr@1)): New
150 2021-10-28 Andrew MacLeod <amacleod@redhat.com>
152 * vr-values.c (simplify_using_ranges::fold_cond): Change fold message.
154 2021-10-28 Andrew MacLeod <amacleod@redhat.com>
156 PR tree-optimization/102940
157 * tree-vrp.c (execute_ranger_vrp): Reset scev.
159 2021-10-28 Richard Purdie <richard.purdie@linuxfoundation.org>
161 * config/nios2/linux.h (MUSL_DYNAMIC_LINKER): Add musl linker
163 2021-10-28 Richard Purdie <richard.purdie@linuxfoundation.org>
165 * configure: Regenerate.
166 * configure.ac: Use CPPFLAGS_FOR_BUILD for GMPINC
168 2021-10-28 Eric Botcazou <ebotcazou@adacore.com>
170 * doc/invoke.texi (%X): Remove obsolete reference to -Wl.
172 2021-10-28 Richard Biener <rguenther@suse.de>
175 * fold-const.c (fold_convert_const): Avoid int to float
176 constant folding with -frounding-math and inexact result.
177 * simplify-rtx.c (simplify_const_unary_operation): Likewise
178 for both float and unsigned_float.
180 2021-10-28 Aldy Hernandez <aldyh@redhat.com>
182 * tree-ssa-threadbackward.c
183 (back_threader::find_taken_edge_switch): Use find_case_label_range
184 instead of find_taken_edge.
186 2021-10-28 Aldy Hernandez <aldyh@redhat.com>
188 * tree-ssa-threadbackward.c (class back_threader_registry):
189 Inherit from back_jt_path_registry.
190 (back_threader_registry::thread_through_all_blocks): Remove.
191 (back_threader_registry::register_path): Remove
192 m_lowlevel_registry prefix.
194 2021-10-28 Richard Biener <rguenther@suse.de>
197 * fold-const.c (fold_convert_const_real_from_real): Honor
198 -frounding-math if the conversion is not exact.
199 * simplify-rtx.c (simplify_const_unary_operation): Do not
200 simplify FLOAT_TRUNCATE with sign dependent rounding.
202 2021-10-28 Richard Biener <rguenther@suse.de>
204 PR tree-optimization/102949
205 * tree-vect-stmts.c (ensure_base_align): Look at the
206 dr_info of a group leader and assert we are looking at
207 one with analyzed alignment.
209 2021-10-28 Kewen Lin <linkw@linux.ibm.com>
212 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Consider
213 V1T1 mode for unaligned load and store.
215 2021-10-28 Kito Cheng <kito.cheng@sifive.com>
217 * config/riscv/riscv.md (zero_extendsidi2_internal): Allow ZBB
220 2021-10-28 Kito Cheng <kito.cheng@sifive.com>
222 * config/riscv/arch-canonicalize (CANONICAL_ORDER): Add `i` to
225 2021-10-28 Alexandre Oliva <oliva@adacore.com>
227 * common.opt (fharden-compares): New.
228 (fharden-conditional-branches): New.
229 * doc/invoke.texi: Document new options.
230 * gimple-harden-conditionals.cc: New.
231 * Makefile.in (OBJS): Build it.
232 * passes.def: Add new passes.
233 * tree-pass.h (make_pass_harden_compares): Declare.
234 (make_pass_harden_conditional_branches): Declare.
236 2021-10-28 Xionghu Luo <luoxhu@linux.ibm.com>
239 * config/rs6000/altivec.md: Add vsx register constraints.
240 * config/rs6000/vsx.md (vsx_xxsel<mode>): Delete.
241 (vsx_xxsel<mode>2): Likewise.
242 (vsx_xxsel<mode>3): Likewise.
243 (vsx_xxsel<mode>4): Likewise.
245 2021-10-28 Xionghu Luo <luoxhu@linux.ibm.com>
248 * config/rs6000/altivec.md (*altivec_vsel<mode>): Change to ...
249 (altivec_vsel<mode>): ... this and update define.
250 (*altivec_vsel<mode>_uns): Delete.
251 (altivec_vsel<mode>2): New define_insn.
252 (altivec_vsel<mode>3): Likewise.
253 (altivec_vsel<mode>4): Likewise.
254 * config/rs6000/rs6000-call.c (altivec_expand_vec_sel_builtin): New.
255 (altivec_expand_builtin): Call altivec_expand_vec_sel_builtin to expand
257 * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Use bit-wise
258 selection instead of per element.
259 * config/rs6000/vector.md:
260 * config/rs6000/vsx.md (*vsx_xxsel<mode>): Change to ...
261 (vsx_xxsel<mode>): ... this and update define.
262 (*vsx_xxsel<mode>_uns): Delete.
263 (vsx_xxsel<mode>2): New define_insn.
264 (vsx_xxsel<mode>3): Likewise.
265 (vsx_xxsel<mode>4): Likewise.
267 2021-10-28 Hongyu Wang <hongyu.wang@intel.com>
269 * config/i386/i386.c (use_rsqrt_p): Add mode parameter, enable
270 HFmode rsqrt without TARGET_SSE_MATH.
271 (ix86_optab_supported_p): Refactor rint, adjust floor, ceil,
272 btrunc condition to be restricted by -ftrapping-math, adjust
273 use_rsqrt_p function call.
274 * config/i386/i386.md (rcphf2): New define_insn.
275 (rsqrthf2): Likewise.
276 * config/i386/sse.md (div<mode>3): Change VF2H to VF2.
277 (div<mode>3): New expander for HF mode.
278 (rsqrt<mode>2): Likewise.
279 (*avx512fp16_vmrcpv8hf2): New define_insn for rpad pass.
280 (*avx512fp16_vmrsqrtv8hf2): Likewise.
282 2021-10-27 Saagar Jha <saagar@saagarjha.com>
284 * config.gcc: Adjust for Darwin21.
285 * config/darwin-c.c (macosx_version_as_macro): Likewise.
286 * config/darwin-driver.c (validate_macosx_version_min):
288 (darwin_find_version_from_kernel): Likewise.
290 2021-10-27 Aldy Hernandez <aldyh@redhat.com>
292 * gimple-range-path.cc
293 (path_range_query::range_defined_in_block): Call killing_def.
295 2021-10-27 Aldy Hernandez <aldyh@redhat.com>
297 * gimple-range-fold.cc (fold_using_range::range_of_range_op): Dump
298 operands as well as relation.
299 * gimple-range-path.cc
300 (path_range_query::compute_ranges_in_block): Compute PHI relations
301 first. Compute outgoing relations at the end.
302 (path_range_query::compute_ranges): Remove call to compute_relations.
303 (path_range_query::compute_relations): Remove.
304 (path_range_query::maybe_register_phi_relation): New.
305 (path_range_query::compute_phi_relations): Abstract out
306 registering one PHI relation to...
307 (path_range_query::compute_outgoing_relations): ...here.
308 * gimple-range-path.h (class path_range_query): Remove
310 Add maybe_register_phi_relation.
312 2021-10-27 Aldy Hernandez <aldyh@redhat.com>
313 Andrew MacLeod <amacleod@redhat.com>
315 * value-relation.cc (path_oracle::killing_def): Kill second
318 2021-10-27 Martin Jambor <mjambor@suse.cz>
320 * ipa-cp.c (good_cloning_opportunity_p): Decide whether to use
321 profile feedback depending on their local availability.
323 2021-10-27 Martin Jambor <mjambor@suse.cz>
325 * params.opt (param_ipa_cp_profile_count_base): New parameter.
326 * doc/invoke.texi (Optimize Options): Add entry for
327 ipa-cp-profile-count-base.
328 * ipa-cp.c (max_count): Replace with base_count, replace all
329 occurrences too, unless otherwise stated.
330 (ipcp_cloning_candidate_p): identify mostly-directly called
331 functions based on their counts, not max_count.
332 (compare_edge_profile_counts): New function.
333 (ipcp_propagate_stage): Instead of setting max_count, find the
334 appropriate edge count in a sorted vector of counts of eligible
335 edges and make it the base_count.
337 2021-10-27 Martin Jambor <mjambor@suse.cz>
339 * ipa-cp.c (struct caller_statistics): New fields rec_count_sum,
340 n_nonrec_calls and itself, document all fields.
341 (init_caller_stats): Initialize the above new fields.
342 (gather_caller_stats): Gather self-recursive counts and calls number.
343 (get_info_about_necessary_edges): Gather counts of self-recursive and
344 other edges bringing in the requested value separately.
345 (dump_profile_updates): Rework to dump info about a single node only.
346 (lenient_count_portion_handling): New function.
347 (struct gather_other_count_struct): New type.
348 (gather_count_of_non_rec_edges): New function.
349 (struct desc_incoming_count_struct): New type.
350 (analyze_clone_icoming_counts): New function.
351 (adjust_clone_incoming_counts): Likewise.
352 (update_counts_for_self_gen_clones): Likewise.
353 (update_profiling_info): Rewritten.
354 (update_specialized_profile): Adjust call to dump_profile_updates.
355 (create_specialized_node): Do not update profiling info.
356 (decide_about_value): New parameter self_gen_clones, either push new
357 clones into it or updat their profile counts. For self-recursively
358 generated values, use a portion of the node count instead of count
359 from self-recursive edges to estimate goodness.
360 (decide_whether_version_node): Gather clones for self-generated values
361 in a new vector, update their profiles at once at the end.
363 2021-10-27 Richard Biener <rguenther@suse.de>
365 * tree-vectorizer.c (vect_transform_loops): New function,
367 (try_vectorize_loop_1): ... here. Simplify as epilogues
368 are now fully handled in the split part.
370 2021-10-27 Jakub Jelinek <jakub@redhat.com>
372 * omp-expand.c (expand_omp_for_init_counts): Handle non-rectangular
373 iterators with pointer types.
374 (expand_omp_for_init_vars, extract_omp_for_update_vars): Likewise.
376 2021-10-26 Martin Sebor <msebor@redhat.com>
378 PR tree-optimization/102238
379 PR tree-optimization/102919
380 * gimple-ssa-sprintf.c (get_string_length): Add an argument.
381 (array_elt_at_offset): Move to pointer-query.
382 (set_aggregate_size_and_offset): New function.
383 (field_at_offset): Move to pointer-query.
384 (get_origin_and_offset): Rename...
385 (get_origin_and_offset_r): this. Add an argument. Make aggregate
386 handling more robust.
387 (get_origin_and_offset): New.
388 (alias_offset): Add an argument.
389 (format_string): Use subobject size determined by get_origin_and_offset.
390 * pointer-query.cc (field_at_offset): Move from gimple-ssa-sprintf.c.
391 Improve/correct handling of aggregates.
392 (array_elt_at_offset): Same.
393 * pointer-query.h (field_at_offset): Declare.
394 (array_elt_at_offset): Declare.
396 2021-10-26 Martin Sebor <msebor@redhat.com>
398 * builtins.c (check_strncat_sizes): Pass access_data ctor additional
400 (expand_builtin_memcmp): Move code to gimple-ssa-warn-access.cc.
401 (expand_builtin_fork_or_exec): Same.
402 * gimple-array-bounds.cc (array_bounds_checker::check_mem_ref): Pass
403 compute_objsize additional arguments.
404 (inbounds_memaccess_p): Same.
405 (array_bounds_checker::check_array_bounds): Add an assert. Stash
406 statement in a member.
407 (check_array_bounds_dom_walker::before_dom_children): Same.
408 * gimple-array-bounds.h (array_bounds_checker::m_stmt): New member.
409 * gimple-ssa-sprintf.c (get_destination_size): Add an argument.
410 (handle_printf_call): Pass a new argument.
411 * gimple-ssa-warn-access.cc (get_size_range): Add an argument.
412 (check_access): Add an argument and pass it along to callees.
413 (check_read_access): Make a member function.
414 (pass_waccess::check_strcat): Pass access_data ctor additional
416 (pass_waccess::check_strncat): Same.
417 (pass_waccess::check_stxcpy): Same.
418 (pass_waccess::check_stxncpy): Same.
419 (pass_waccess::check_strncmp): Same.
420 (pass_waccess::check_read_access): Same.
421 (pass_waccess::check_builtin): Same.
422 (pass_waccess::maybe_check_access_sizes): Same.
423 (pass_waccess::maybe_check_dealloc_call): Same.
424 * gimple-ssa-warn-access.h (check_read_access): Declare a new
426 * pointer-query.cc (compute_objsize_r): Add an argument.
427 (gimple_call_return_array): Same.
428 (gimple_call_alloc_size): Same.
429 (access_ref::access_ref): Same.
430 (access_ref::get_ref): Same.
431 (pointer_query::get_ref): Same.
432 (handle_min_max_size): Pass an arguments to callees.
433 (handle_array_ref): Add an argument.
434 (handle_mem_ref): Same.
435 (compute_objsize): Same.
436 * pointer-query.h (struct access_ref): Adjust signatures.
437 (struct access_data): Same.
438 (gimple_call_alloc_size): Add an argument.
439 (gimple_parm_array_size): Same.
440 (compute_objsize): Same.
441 * tree-ssa-strlen.c (strlen_pass::adjust_last_stmt): Pass an additional
442 argument to compute_objsize.
443 (strlen_pass::maybe_warn_overflow): Same.
444 (maybe_diag_stxncpy_trunc): Same.
446 2021-10-26 Martin Sebor <msebor@redhat.com>
449 * gimple-ssa-warn-access.cc (pass_waccess::check_atomic_builtin): New.
450 (pass_waccess::check_atomic_builtin): Call it.
452 2021-10-26 Vladimir N. Makarov <vmakarov@redhat.com>
454 PR rtl-optimization/102842
455 * lra-constraints.c (match_reload): Ignore out in checking values
457 (curr_insn_transform): Collect outputs before doing reloads of operands.
459 2021-10-26 Paul A. Clarke <pc@us.ibm.com>
462 * config/rs6000/x86intrin.h: Move some included headers to new
463 headers. Include new immintrin.h instead of those headers.
464 * config/rs6000/immintrin.h: New.
465 * config/rs6000/x86gprintrin.h: New.
466 * config.gcc (powerpc*-*-*): Add new headers to extra_headers.
468 2021-10-26 Richard Biener <rguenther@suse.de>
470 * tree-vectorizer.h (vect_create_addr_base_for_vector_ref):
471 Remove byte_offset parameter.
472 (vect_create_data_ref_ptr): Likewise.
473 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
475 (vect_create_data_ref_ptr): Likewise.
476 * tree-vect-stmts.c (vectorizable_store): Adjust.
477 (vectorizable_load): Likewise.
479 2021-10-26 Richard Biener <rguenther@suse.de>
481 PR tree-optimization/96109
482 * tree-vectorizer.h (dr_misalignment): Add optional offset
484 * tree-vect-data-refs.c (dr_misalignment): Likewise. Remove
485 offset applied for negative stride accesses.
486 (vect_enhance_data_refs_alignment): Compute negative stride
487 access offset and pass it to dr_misalignment.
488 * tree-vect-stmts.c (get_negative_load_store_type): Pass
489 negative offset to dr_misalignment.
490 (get_group_load_store_type): Likewise.
491 (get_load_store_type): Likewise.
492 (vectorizable_store): Remove asserts about alignment.
493 (vectorizable_load): Likewise.
495 2021-10-26 Kewen Lin <linkw@linux.ibm.com>
497 PR tree-optimization/102897
498 * tree-ssa-forwprop.c (simplify_permutation): Remove a wrong assertion.
500 2021-10-26 Richard Biener <rguenther@suse.de>
502 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
503 Take offset in bytes.
504 (vect_create_data_ref_ptr): Likewise.
505 * tree-vect-loop-manip.c (get_misalign_in_elems): Multiply
506 offset by element size.
507 (vect_create_cond_for_align_checks): Likewise.
508 * tree-vect-stmts.c (get_negative_load_store_type): Likewise.
509 (vectorizable_load): Remove duplicate leftover from merge
512 2021-10-26 Roger Sayle <roger@nextmovesoftware.com>
514 * config/i386/i386-expand.c (ix86_expand_v1ti_shift): New helper
515 function to expand V1TI mode logical shifts by integer constants.
516 (ix86_expand_v1ti_rotate): New helper function to expand V1TI
517 mode rotations by integer constants.
518 * config/i386/i386-protos.h (ix86_expand_v1ti_shift,
519 ix86_expand_v1ti_rotate): Prototype new functions here.
520 * config/i386/sse.md (ashlv1ti3, lshrv1ti3, rotlv1ti3, rotrv1ti3):
521 New TARGET_SSE2 expanders to implement V1TI shifts and rotations.
523 2021-10-26 Aldy Hernandez <aldyh@redhat.com>
525 * tree-ssa-threadbackward.c (back_threader::maybe_register_path):
526 Avoid threading circular paths.
528 2021-10-26 Aldy Hernandez <aldyh@redhat.com>
530 * tree-ssa-threadbackward.c (back_threader::resolve_phi):
531 Attempt to resolve all incoming paths to a PHI.
532 (back_threader::resolve_def): Always return true for PHIs.
534 2021-10-26 Aldy Hernandez <aldyh@redhat.com>
536 * tree-ssa-threadbackward.c (back_threader::find_paths_to_names):
537 Always try to resolve path without looking back.
538 * tree-ssa-threadupdate.c (dump_jump_thread): Indidicate whether
541 2021-10-26 Kewen Lin <linkw@linux.ibm.com>
543 PR tree-optimization/102789
544 * tree-vect-loop-manip.c (vect_update_inits_of_drs): Do not
545 update inits of simd_lane_access.
547 2021-10-25 Andrew MacLeod <amacleod@redhat.com>
549 * tree-vrp.c (vrp_simplify_cond_using_ranges): Add return type and
551 (simplify_casted_conds): Move to vrp_folder class.
552 (execute_vrp): Call via vrp_folder now.
553 * vr-values.c (simplify_cond_using_ranges_1): Call simplify_casted_cond.
554 (simplify_using_ranges::simplify_casted_cond): Relocate from tree-vrp.c.
555 * vr-values.h (simplify_casted_cond): Add prototype.
557 2021-10-25 Andrew MacLeod <amacleod@redhat.com>
559 * tree-vrp.c (rvrp_folder::fold_stmt): If simplification fails, try
562 2021-10-25 Paul A. Clarke <pc@us.ibm.com>
564 * config/rs6000/smmintrin.h (_mm_testz_si128): Add "extern" to
566 (_mm_testc_si128): Likewise.
567 (_mm_testnzc_si128): Likewise.
568 (_mm_blend_ps): Likewise.
569 (_mm_blendv_ps): Likewise.
570 (_mm_blend_pd): Likewise.
571 (_mm_blendv_pd): Likewise.
572 (_mm_ceil_pd): Likewise.
573 (_mm_ceil_sd): Likewise.
574 (_mm_ceil_ps): Likewise.
575 (_mm_ceil_ss): Likewise.
576 (_mm_floor_pd): Likewise.
577 (_mm_floor_sd): Likewise.
578 (_mm_floor_ps): Likewise.
579 (_mm_floor_ss): Likewise.
580 (_mm_minpos_epu16): Likewise.
581 (_mm_mul_epi32): Likewise.
582 (_mm_cvtepi8_epi16): Likewise.
583 (_mm_packus_epi32): Likewise.
584 (_mm_cmpgt_epi64): Likewise.
586 2021-10-25 Roger Sayle <roger@nextmovesoftware.com>
588 * simplify-rtx.c (simplify_binary_operation_1) [SS_ASHIFT]: Simplify
589 shifts of the mode's smin_value and smax_value when the bit count
590 operand doesn't have side-effects.
591 [US_ASHIFT]: Likewise, simplify shifts of the mode's umax_value
592 when the bit count operand doesn't have side-effects.
593 (simplify_const_binary_operation) [SS_ASHIFT, US_ASHIFT]: Perform
594 compile-time evaluation of saturating left shifts with constant
597 2021-10-25 Andrew MacLeod <amacleod@redhat.com>
599 * gimple-range.cc (gimple_ranger::export_global_ranges): Remove check
602 2021-10-25 Andrew MacLeod <amacleod@redhat.com>
604 * flag-types.h (enum ranger_debug): Adjust values.
605 * params.opt (ranger_debug): Ditto.
607 2021-10-25 Martin Jambor <mjambor@suse.cz>
609 PR tree-optimization/102886
610 * tree-sra.c (totally_scalarize_subtree): Fix the out of
613 2021-10-25 Andrew Pinski <apinski@marvell.com>
615 * tree-ssa-dce.c (simple_dce_from_worklist):
616 Check stmt_unremovable_because_of_non_call_eh_p also
617 before removing the statement.
619 2021-10-25 Richard Biener <rguenther@suse.de>
621 PR tree-optimization/102905
622 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
623 Use vect_supportable_dr_alignment again to determine whether
624 an access is supported when not aligned.
626 2021-10-25 Kito Cheng <kito.cheng@sifive.com>
628 * config/riscv/riscv.c (riscv_rtx_costs): Handle cost model
631 2021-10-25 Jim Wilson <jimw@sifive.com>
632 Kito Cheng <kito.cheng@sifive.com>
633 Jia-Wei Chen <jiawei@iscas.ac.cn>
634 Shi-Hua Liao <shihua@iscas.ac.cn>
636 * config/riscv/bitmanip.md (shiftm1): New.
637 (*bset<mode>): Ditto.
638 (*bset<mode>_mask): Ditto.
639 (*bset<mode>_1): Ditto.
640 (*bset<mode>_1_mask): Ditto.
641 (*bseti<mode>): Ditto.
642 (*bclr<mode>): Ditto.
643 (*bclri<mode>): Ditto.
644 (*binv<mode>): Ditto.
645 (*binvi<mode>): Ditto.
646 (*bext<mode>): Ditto.
648 * config/riscv/predicates.md (splittable_const_int_operand):
650 (single_bit_mask_operand): New.
651 (not_single_bit_mask_operand): Ditto.
652 (const31_operand): Ditto.
653 (const63_operand): Ditto.
654 * config/riscv/riscv.c (riscv_build_integer_1): Handle bseti.
655 (riscv_output_move): Ditto.
656 (riscv_print_operand): Handle new operand type: T and S.
657 * config/riscv/riscv.h (SINGLE_BIT_MASK_OPERAND): New.
659 2021-10-25 Jim Wilson <jimw@sifive.com>
661 * config/riscv/riscv.c (riscv_build_integer_1): Build integer
664 2021-10-25 Kito Cheng <kito.cheng@sifive.com>
666 * config/riscv/riscv.c (riscv_extend_cost): Handle cost model
668 (riscv_rtx_costs): Ditto.
670 2021-10-25 Jim Wilson <jimw@sifive.com>
671 Kito Cheng <kito.cheng@sifive.com>
672 Jia-Wei Chen <jiawei@iscas.ac.cn>
674 * config/riscv/bitmanip.md (bitmanip_bitwise): New.
675 (bitmanip_minmax): New.
677 (bitmanip_optab): New.
678 (bitmanip_insn): New.
679 (*<optab>_not<mode>): New.
680 (*xor_not<mode>): New.
681 (<bitmanip_optab>si2): New.
682 (*<bitmanip_optab>disi2): New.
683 (<bitmanip_optab>di2): New.
684 (*zero_extendhi<GPR:mode>2_bitmanip): New.
685 (*extend<SHORT:mode><SUPERQI:mode>2_zbb): New.
686 (*zero_extendhi<GPR:mode>2_zbb): New.
694 (<bitmanip_optab><mode>3): New.
695 * config/riscv/riscv.md (type): Add rotate.
696 (zero_extendhi<GPR:mode>2): Change to define_expand pattern.
697 (*zero_extendhi<GPR:mode>2): New.
698 (extend<SHORT:mode><SUPERQI:mode>2): Change to define_expand pattern.
699 (*extend<SHORT:mode><SUPERQI:mode>2): New.
701 2021-10-25 Kito Cheng <kito.cheng@sifive.com>
703 * config/riscv/riscv.c (riscv_extend_cost): Handle cost model
705 (riscv_rtx_costs): Ditto.
707 2021-10-25 Jim Wilson <jimw@sifive.com>
708 Kito Cheng <kito.cheng@sifive.com>
709 Jia-Wei Chen <jiawei@iscas.ac.cn>
711 * config/riscv/bitmanip.md (*zero_extendsidi2_bitmanip): New.
716 (riscv_rtx_costs): Ditto.
717 * config/riscv/riscv.md: Include bitmanip.md
718 (type): Add bitmanip bype.
719 (zero_extendsidi2): Change to define_expand pattern.
720 (*zero_extendsidi2_internal): New.
721 (zero_extendsidi2_shifted): Disable for ZBA.
723 2021-10-25 Kito Cheng <kito.cheng@sifive.com>
725 * common/config/riscv/riscv-common.c (riscv_ext_version_table):
726 Add zba, zbb, zbc and zbs.
727 (riscv_ext_flag_table): Ditto.
728 * config/riscv/riscv-opts.h (MASK_ZBA): New.
736 * config/riscv/riscv.opt (riscv_zb_subext): New.
738 2021-10-25 liuhongt <hongtao.liu@intel.com>
741 * match.pd: Simplify (_Float16) sqrtf((float) a) to .SQRT(a)
742 when direct_internal_fn_supported_p, similar for sqrt/sqrtl.
744 2021-10-25 Richard Biener <rguenther@suse.de>
746 PR tree-optimization/102920
747 * tree-ssa-sccvn.h (expressions_equal_p): Add argument
748 controlling VN_TOP matching behavior.
749 * tree-ssa-sccvn.c (expressions_equal_p): Likewise.
750 (vn_phi_eq): Do not optimistically match VN_TOP.
752 2021-10-25 konglin1 <lingling.kong@intel.com>
754 * config/i386/sse.md (fma_<mode>_fadd_fmul): Add new
755 define_insn_and_split.
756 (fma_<mode>_fadd_fcmul):Likewise
757 (fma_<complexopname>_<mode>_fma_zero):Likewise
759 2021-10-24 John David Anglin <danglin@gcc.gnu.org>
761 * config/pa/pa-d.c (pa_d_handle_target_float_abi): Don't check
762 TARGET_DISABLE_FPREGS.
763 * config/pa/pa.c (fix_range): Use MASK_SOFT_FLOAT instead of
765 (hppa_rtx_costs): Don't check TARGET_DISABLE_FPREGS. Adjust
766 cost of hardware integer multiplication.
767 (pa_conditional_register_usage): Don't check TARGET_DISABLE_FPREGS.
768 * config/pa/pa.h (INT14_OK_STRICT): Likewise.
769 * config/pa/pa.md: Don't check TARGET_DISABLE_FPREGS. Check
770 TARGET_SOFT_FLOAT in patterns that use xmpyu instruction.
771 * config/pa/pa.opt (mdisable-fpregs): Change target mask to
772 SOFT_FLOAT. Revise comment.
773 (msoft-float): New option.
775 2021-10-24 John David Anglin <danglin@gcc.gnu.org>
777 * config/pa/pa.md: Don't use 'G' constraint in integer move patterns.
779 2021-10-24 Gerald Pfeifer <gerald@pfeifer.com>
781 * doc/install.texi (Specific): Remove obsolete details
782 around GNU/Linux on Itanium.
783 (Specific): Remove reference to Windows for Itanium.
785 2021-10-23 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
787 * config/i386/x86-tune-sched-bd.c (dispatch_group): Commentary
790 2021-10-23 Jan Hubicka <hubicka@ucw.cz>
792 * tree-ssa-structalias.c (compute_points_to_sets): Cleanup.
794 2021-10-23 Roger Sayle <roger@nextmovesoftware.com>
796 * config/i386/sse.md (<any_logic>v1ti3): New define_insn to
797 implement V1TImode AND, IOR and XOR on TARGET_SSE2 (and above).
798 (one_cmplv1ti2): New define expand.
800 2021-10-22 Eric Gallager <egallager@gcc.gnu.org>
803 * Makefile.in: Handle dvidir and install-dvi target.
804 * configure: Regenerate.
805 * configure.ac: Add install-dvi to target_list.
807 2021-10-22 Gerald Pfeifer <gerald@pfeifer.com>
809 * doc/install.texi (Binaries): Convert mingw-w64.org to https.
812 2021-10-22 Richard Biener <rguenther@suse.de>
814 PR tree-optimization/102893
815 * tree-ssa-dce.c (find_obviously_necessary_stmts): Fix the
816 test for an exit edge.
818 2021-10-22 Aldy Hernandez <aldyh@redhat.com>
819 Andrew MacLeod <amacleod@redhat.com>
821 * gimple-range-path.cc (path_range_query::compute_phi_relations):
822 Kill any global relations we may know before registering a new
824 * value-relation.cc (path_oracle::killing_def): New.
825 * value-relation.h (path_oracle::killing_def): New.
827 2021-10-22 Richard Biener <rguenther@suse.de>
830 * tree-ssa-sccvn.c (vn_phi_insert): For undefined SSA args
832 (vn_phi_lookup): Likewise.
834 2021-10-21 H.J. Lu <hjl.tools@gmail.com>
837 * doc/invoke.texi: Document -fcf-protection requires i686 or
840 2021-10-21 Eric Botcazou <ebotcazou@adacore.com>
843 * cfgexpand.c (expand_gimple_basic_block): Robustify latest change.
845 2021-10-21 Jonathan Wright <jonathan.wright@arm.com>
847 * config/aarch64/arm_neon.h (__STRUCTN): Delete function
848 macro and all invocations.
850 2021-10-21 Andrew MacLeod <amacleod@redhat.com>
852 * doc/invoke.texi (ranger-debug): Document.
853 * flag-types.h (enum ranger_debug): New.
854 (enum evrp_mode): Remove debug values.
855 * gimple-range-cache.cc (DEBUG_RANGE_CACHE): Use new debug flag.
856 * gimple-range-gori.cc (gori_compute::gori_compute): Ditto.
857 * gimple-range.cc (gimple_ranger::gimple_ranger): Ditto.
858 * gimple-ssa-evrp.c (hybrid_folder::choose_value): Ditto.
859 (execute_early_vrp): Use evrp-mode directly.
860 * params.opt (enum evrp_mode): Remove debug values.
862 (ranger-logical-depth): Relocate to be in alphabetical order.
864 2021-10-21 Andrew MacLeod <amacleod@redhat.com>
866 * doc/invoke.texi: (vrp1-mode, vrp2-mode): Document.
867 * flag-types.h: (enum vrp_mode): New.
868 * params.opt: (vrp1-mode, vrp2-mode): New.
869 * tree-vrp.c (vrp_pass_num): New.
870 (pass_vrp::pass_vrp): Set pass number.
871 (pass_vrp::execute): Choose which VRP mode to execute.
873 2021-10-21 Andrew MacLeod <amacleod@redhat.com>
875 * gimple-ssa-evrp.c (class rvrp_folder): Move to tree-vrp.c.
876 (execute_early_vrp): For ranger only mode, invoke ranger_vrp.
877 * tree-vrp.c (class rvrp_folder): Relocate here.
878 (execute_ranger_vrp): New.
879 * tree-vrp.h (execute_ranger_vrp): Export.
881 2021-10-21 Martin Liska <mliska@suse.cz>
885 * opts.c (finish_options): Process flag_var_tracking* options
886 here as they can be adjusted by optimize attribute.
887 Process also flag_syntax_only and flag_gtoggle.
888 * toplev.c (process_options): Remove it here.
889 * common.opt: Make debug_nonbind_markers_p as PerFunction
890 attribute as it depends on optimization level.
892 2021-10-21 Martin Jambor <mjambor@suse.cz>
894 PR tree-optimization/102505
895 * tree-sra.c (totally_scalarize_subtree): Check that the
896 encountered field fits within the acces we would like to put it
899 2021-10-21 Aldy Hernandez <aldyh@redhat.com>
901 * tree-ssa-threadbackward.c
902 (back_threader::maybe_register_path): Remove circular paths check.
904 2021-10-21 Richard Biener <rguenther@suse.de>
906 * toplev.c (process_options): Move the initial debug_hooks
908 (toplev::main): ... before the call of the post_options
911 2021-10-21 Richard Biener <rguenther@suse.de>
913 PR tree-optimization/102847
914 * tree-vect-stmts.c (vect_model_load_cost): Add the scalar
915 load cost in the prologue for VMAT_INVARIANT.
917 2021-10-21 Richard Biener <rguenther@suse.de>
919 PR tree-optimization/102847
920 * tree-vect-stmts.c (vect_model_load_cost): Explicitely
921 handle VMAT_INVARIANT as a splat in the prologue.
923 2021-10-21 Hongyu Wang <hongyu.wang@intel.com>
926 * config/i386/i386.c (ix86_get_ssemov): Adjust HFmode vector
927 move to use the same logic as HImode.
929 2021-10-21 Richard Biener <rguenther@suse.de>
931 * tree-vect-slp.c (vect_build_slp_tree_1): Remove
932 superfluous gimple_call_nothrow_p check.
934 2021-10-21 Andrew Pinski <apinski@marvell.com>
936 * tree-cfg.c (maybe_remove_writeonly_store): Add dce_ssa_names argument.
937 Mark the ssa-name of the rhs as one to be removed.
938 (execute_fixup_cfg): Update call to maybe_remove_writeonly_store.
939 Call simple_dce_from_worklist at the end to a simple dce.
941 2021-10-21 Andrew Pinski <apinski@marvell.com>
943 * tree-cfg.c (maybe_remove_writeonly_store): New function
944 factored out from ...
945 (execute_fixup_cfg): Here. Call maybe_remove_writeonly_store.
947 2021-10-21 Andrew Pinski <apinski@marvell.com>
949 * tree-cfg.c (execute_fixup_cfg): Remove comment
950 about standalone pass.
952 2021-10-21 Andrew Pinski <apinski@marvell.com>
954 * tree-cfg.c (execute_fixup_cfg): Output when the statement
955 is removed when it is a write only var.
957 2021-10-21 Aldy Hernandez <aldyh@redhat.com>
959 * tree-ssa-threadbackward.c (back_threader::maybe_register_path):
960 Avoid threading circular paths.
962 2021-10-20 Alex Coplan <alex.coplan@arm.com>
964 * calls.c (initialize_argument_information): Remove some dead
965 code, remove handling for function_arg returning const_int.
966 * doc/tm.texi: Delete documentation for unused target hooks.
967 * doc/tm.texi.in: Likewise.
968 * target.def (load_bounds_for_arg): Delete.
969 (store_bounds_for_arg): Delete.
970 (load_returned_bounds): Delete.
971 (store_returned_bounds): Delete.
972 * targhooks.c (default_load_bounds_for_arg): Delete.
973 (default_store_bounds_for_arg): Delete.
974 (default_load_returned_bounds): Delete.
975 (default_store_returned_bounds): Delete.
976 * targhooks.h (default_load_bounds_for_arg): Delete.
977 (default_store_bounds_for_arg): Delete.
978 (default_load_returned_bounds): Delete.
979 (default_store_returned_bounds): Delete.
981 2021-10-20 Jonathan Wakely <jwakely@redhat.com>
983 * doc/extend.texi (Basic Asm): Clarify that asm is not an
985 * doc/invoke.texi (-fno-asm): Fix description for C++.
987 2021-10-20 Jonathan Wakely <jwakely@redhat.com>
989 * doc/install.texi: Remove link to old.html
991 2021-10-20 Tamar Christina <tamar.christina@arm.com>
993 * config/aarch64/aarch64-simd.md (*aarch64_cmtst_same_<mode>): New.
995 2021-10-20 Tamar Christina <tamar.christina@arm.com>
997 * config/aarch64/aarch64-simd.md (*aarch64_narrow_trunc<mode>): New.
999 2021-10-20 Tamar Christina <tamar.christina@arm.com>
1001 * config/aarch64/aarch64-simd.md (aarch64_simd_ashr<mode>): Add case cmp
1003 * config/aarch64/constraints.md (D1): New.
1005 2021-10-20 Tamar Christina <tamar.christina@arm.com>
1007 * config/aarch64/aarch64-simd.md
1008 (*aarch64_<srn_op>topbits_shuffle<mode>_le): New.
1009 (*aarch64_topbits_shuffle<mode>_le): New.
1010 (*aarch64_<srn_op>topbits_shuffle<mode>_be): New.
1011 (*aarch64_topbits_shuffle<mode>_be): New.
1012 * config/aarch64/predicates.md
1013 (aarch64_simd_shift_imm_vec_exact_top): New.
1015 2021-10-20 Tamar Christina <tamar.christina@arm.com>
1017 * config/aarch64/aarch64-simd.md (*aarch64_<srn_op>shrn<mode>_vect,
1018 *aarch64_<srn_op>shrn<mode>2_vect_le,
1019 *aarch64_<srn_op>shrn<mode>2_vect_be): New.
1020 * config/aarch64/iterators.md (srn_op): New.
1022 2021-10-20 Chung-Lin Tang <cltang@codesourcery.com>
1024 * omp-low.c (omp_copy_decl_2): For !ctx, use record_vars to add new copy
1026 (scan_sharing_clauses): Place copy of OMP_CLAUSE_IN_REDUCTION decl in
1027 ctx->outer instead of ctx.
1029 2021-10-20 Martin Liska <mliska@suse.cz>
1032 2021-10-19 Martin Liska <mliska@suse.cz>
1035 * config/i386/i386-options.c (ix86_valid_target_attribute_inner_p): Strip whitespaces.
1036 * system.h (strip_whilespaces): New function.
1038 2021-10-20 Martin Liska <mliska@suse.cz>
1041 2021-10-19 Martin Liska <mliska@suse.cz>
1044 * config/aarch64/aarch64.c (aarch64_process_one_target_attr):
1047 2021-10-20 Wilco Dijkstra <wdijkstr@arm.com>
1049 * config/aarch64/aarch64.c (aarch64_case_values_threshold):
1050 Change to 8 with -Os, 11 otherwise.
1052 2021-10-20 Wilco Dijkstra <wdijkstr@arm.com>
1054 * config/aarch64/aarch64.c (neoversev1_tunings):
1055 Enable AARCH64_EXTRA_TUNE_CHEAP_SHIFT_EXTEND.
1056 (neoversen2_tunings): Likewise.
1058 2021-10-20 Wilco Dijkstra <wdijkstr@arm.com>
1061 * config/aarch64/aarch64.md (frint_pattern): Update comment.
1062 * config/aarch64/aarch64-simd-builtins.def: Change frintn to roundeven.
1063 * config/aarch64/arm_fp16.h: Change frintn to roundeven.
1064 * config/aarch64/arm_neon.h: Likewise.
1065 * config/aarch64/iterators.md (frint_pattern): Use roundeven for FRINTN.
1067 2021-10-20 Martin Liska <mliska@suse.cz>
1069 * config/arm/arm.c (arm_unwind_emit_sequence): Do not declare
1070 already declared global variable.
1071 (arm_unwind_emit_set): Use out_file as function argument.
1072 (arm_unwind_emit): Likewise.
1073 * config/darwin.c (machopic_output_data_section_indirection): Likewise.
1074 (machopic_output_stub_indirection): Likewise.
1075 (machopic_output_indirection): Likewise.
1076 (machopic_finish): Likewise.
1077 * config/i386/i386.c (ix86_asm_output_function_label): Likewise.
1078 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
1079 * config/ia64/ia64.c (process_epilogue): Likewise.
1080 (process_cfa_adjust_cfa): Likewise.
1081 (process_cfa_register): Likewise.
1082 (process_cfa_offset): Likewise.
1083 (ia64_asm_unwind_emit): Likewise.
1084 * config/s390/s390.c (s390_asm_output_function_label): Likewise.
1086 2021-10-20 Andre Simoes Dias Vieira <andre.simoesdiasvieira@arm.com>
1088 * config/aarch64/aarch64-builtins.c
1089 (aarch64_general_gimple_fold_builtin):
1090 lower vld1 and vst1 variants of the neon builtins
1091 * config/aarch64/aarch64-protos.h:
1092 (aarch64_general_gimple_fold_builtin): Add gsi parameter.
1093 * config/aarch64/aarch64.c (aarch64_general_gimple_fold_builtin):
1096 2021-10-20 Andre Simoes Dias Vieira <andre.simoesdiasvieira@arm.com>
1098 * match.pd: Generate IFN_TRUNC.
1100 2021-10-20 Richard Biener <rguenther@suse.de>
1102 PR tree-optimization/102853
1103 * tree-data-ref.c (split_constant_offset_1): Bail out
1104 immediately if the expression traps on overflow.
1106 2021-10-20 Aldy Hernandez <aldyh@redhat.com>
1108 * tree-ssa-threadbackward.c (back_threader::~back_threader): Remove.
1110 2021-10-20 Aldy Hernandez <aldyh@redhat.com>
1112 * tree-ssa-threadupdate.c (back_jt_path_registry::adjust_paths_after_duplication):
1113 Remove superflous debugging message.
1114 (back_jt_path_registry::duplicate_thread_path): Same.
1116 2021-10-20 Aldy Hernandez <aldyh@redhat.com>
1118 * tree-ssa-threadbackward.c (back_threader_registry::back_threader_registry):
1120 (back_threader_registry::register_path): Remove m_threaded_paths.
1122 2021-10-20 Aldy Hernandez <aldyh@redhat.com>
1124 PR tree-optimization/102814
1125 * doc/invoke.texi: Document --param=max-fsm-thread-length.
1126 * params.opt: Add --param=max-fsm-thread-length.
1127 * tree-ssa-threadbackward.c
1128 (back_threader_profitability::profitable_path_p): Fail on paths
1129 longer than max-fsm-thread-length.
1131 2021-10-20 Eric Botcazou <ebotcazou@adacore.com>
1133 PR middle-end/102764
1134 * cfgexpand.c (expand_gimple_basic_block): Disregard a final debug
1135 statement to reset the current location for the outgoing edges.
1137 2021-10-20 Aldy Hernandez <aldyh@redhat.com>
1138 Richard Biener <rguenther@suse.de>
1140 * tree-ssa-threadupdate.c (cancel_thread): Dump threading reason
1141 on the same line as the threading cancellation.
1142 (jt_path_registry::cancel_invalid_paths): Avoid rotating loops.
1143 Avoid threading through loop headers where the path remains in the
1146 2021-10-20 Siddhesh Poyarekar <siddhesh@gotplt.org>
1148 * tree-object-size.c (unknown): Make into a function. Adjust
1150 (unknown_object_size): Simplify implementation.
1152 2021-10-20 Hongtao Liu <hongtao.liu@intel.com>
1153 Kewen Lin <linkw@linux.ibm.com>
1155 * doc/sourcebuild.texi (Effective-Target Keywords): Document
1156 vect_slp_v2qi_store, vect_slp_v4qi_store, vect_slp_v8qi_store,
1157 vect_slp_v16qi_store, vect_slp_v2hi_store,
1158 vect_slp_v4hi_store, vect_slp_v2si_store, vect_slp_v4si_store.
1160 2021-10-19 Jonathan Wakely <jwakely@redhat.com>
1162 * doc/extend.texi (Basic PowerPC Built-in Functions): Fix typo.
1164 2021-10-19 Paul A. Clarke <pc@us.ibm.com>
1168 * config/rs6000/emmintrin.h: Guard POWER8 intrinsics.
1169 * config/rs6000/pmmintrin.h: Same.
1170 * config/rs6000/smmintrin.h: Same.
1171 * config/rs6000/tmmintrin.h: Same.
1173 2021-10-19 Paul A. Clarke <pc@us.ibm.com>
1175 * config.gcc (extra_headers): Add nmmintrin.h.
1177 2021-10-19 Richard Biener <rguenther@suse.de>
1179 * tree-vectorizer.h (vect_supportable_dr_alignment): Add
1180 misalignment parameter.
1181 * tree-vect-data-refs.c (vect_get_peeling_costs_all_drs):
1182 Do not change DR_MISALIGNMENT in place, instead pass the
1183 adjusted misalignment to vect_supportable_dr_alignment.
1184 (vect_peeling_supportable): Likewise.
1185 (vect_peeling_hash_get_lowest_cost): Adjust.
1186 (vect_enhance_data_refs_alignment): Likewise.
1187 (vect_vfa_access_size): Likewise.
1188 (vect_supportable_dr_alignment): Add misalignment
1189 parameter and simplify.
1190 * tree-vect-stmts.c (get_negative_load_store_type): Adjust.
1191 (get_group_load_store_type): Likewise.
1192 (get_load_store_type): Likewise.
1194 2021-10-19 Clément Chigot <clement.chigot@atos.net>
1196 * config/rs6000/rs6000.c (rs6000_xcoff_file_end): Move
1197 __tls_get_addr reference to .text csect.
1199 2021-10-19 Martin Liska <mliska@suse.cz>
1202 * config/aarch64/aarch64.c (aarch64_process_one_target_attr):
1205 2021-10-19 Richard Biener <rguenther@suse.de>
1207 * tree-vectorizer.h (vect_get_store_cost): Adjust signature.
1208 (vect_get_load_cost): Likewise.
1209 * tree-vect-data-refs.c (vect_get_data_access_cost): Get
1210 alignment support scheme and misalignment as arguments
1212 (vect_get_peeling_costs_all_drs): Compute that info here
1213 and note that we shouldn't need to.
1214 * tree-vect-stmts.c (vect_model_store_cost): Get
1215 alignment support scheme and misalignment as arguments.
1216 (vect_get_store_cost): Likewise.
1217 (vect_model_load_cost): Likewise.
1218 (vect_get_load_cost): Likewise.
1219 (vectorizable_store): Pass down alignment support scheme
1220 and misalignment to costing.
1221 (vectorizable_load): Likewise.
1223 2021-10-19 Richard Biener <rguenther@suse.de>
1225 * tree-vect-stmts.c (get_negative_load_store_type): Add
1226 offset output parameter and initialize it.
1227 (get_group_load_store_type): Likewise.
1228 (get_load_store_type): Likewise.
1229 (vectorizable_store): Use offset as computed by
1230 get_load_store_type.
1231 (vectorizable_load): Likewise.
1233 2021-10-19 Richard Biener <rguenther@suse.de>
1235 PR tree-optimization/102827
1236 * tree-if-conv.c (predicate_statements): Add pe parameter
1237 and use that edge to insert invariant stmts on.
1238 (combine_blocks): Pass through pe.
1239 (tree_if_conversion): Compute the edge to insert invariant
1240 stmts on and pass it along.
1242 2021-10-19 Roger Sayle <roger@nextmovesoftware.com>
1245 * config/bfin/bfin.md (addsubv2hi3, subaddv2hi3, ssaddsubv2hi3,
1246 sssubaddv2hi3): Swap the order of operators in vec_concat.
1248 2021-10-19 Xionghu Luo <luoxhu@linux.ibm.com>
1250 * config/rs6000/altivec.md (*altivec_vmrghb_internal): Delete.
1251 (altivec_vmrghb_direct): New.
1252 (*altivec_vmrghh_internal): Delete.
1253 (altivec_vmrghh_direct): New.
1254 (*altivec_vmrghw_internal): Delete.
1255 (altivec_vmrghw_direct_<mode>): New.
1256 (altivec_vmrghw_direct): Delete.
1257 (*altivec_vmrglb_internal): Delete.
1258 (altivec_vmrglb_direct): New.
1259 (*altivec_vmrglh_internal): Delete.
1260 (altivec_vmrglh_direct): New.
1261 (*altivec_vmrglw_internal): Delete.
1262 (altivec_vmrglw_direct_<mode>): New.
1263 (altivec_vmrglw_direct): Delete.
1264 * config/rs6000/rs6000-p8swap.c (rtx_is_swappable_p): Adjust.
1265 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const):
1267 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust.
1268 (vsx_xxmrglw_<mode>): Adjust.
1270 2021-10-19 Aldy Hernandez <aldyh@redhat.com>
1272 * passes.def: Change threading comment before pass_ccp pass.
1274 2021-10-19 Haochen Gui <guihaoc@gcc.gnu.org>
1276 * config/rs6000/rs6000-call.c (altivec_expand_lxvr_builtin):
1277 Modify the expansion for sign extension. All extensions are done
1278 within VSX registers.
1280 2021-10-19 Richard Biener <rguenther@suse.de>
1282 * tree-vect-stmts.c (get_group_load_store_type): Add
1283 misalignment output parameter and initialize it.
1284 (get_group_load_store_type): Likewise.
1285 (vectorizable_store): Remove now redundant queries.
1286 (vectorizable_load): Likewise.
1288 2021-10-19 Richard Biener <rguenther@suse.de>
1290 * tree-vectorizer.h (vect_supportable_dr_alignment): Remove
1291 check_aligned argument.
1292 * tree-vect-data-refs.c (vect_supportable_dr_alignment):
1294 (vect_peeling_hash_insert): Add supportable_if_not_aligned
1295 argument and do not call vect_supportable_dr_alignment here.
1296 (vect_peeling_supportable): Adjust.
1297 (vect_enhance_data_refs_alignment): Compute whether the
1298 access is supported with different alignment here and
1299 pass that down to vect_peeling_hash_insert.
1300 (vect_vfa_access_size): Adjust.
1301 * tree-vect-stmts.c (vect_get_store_cost): Likewise.
1302 (vect_get_load_cost): Likewise.
1303 (get_negative_load_store_type): Likewise.
1304 (get_group_load_store_type): Likewise.
1305 (get_load_store_type): Likewise.
1307 2021-10-19 Martin Liska <mliska@suse.cz>
1310 * config/i386/i386-options.c (ix86_valid_target_attribute_inner_p): Strip whitespaces.
1311 * system.h (strip_whilespaces): New function.
1313 2021-10-19 dianhong xu <dianhong.xu@intel.com>
1315 * config/i386/avx512fp16intrin.h:
1316 (_mm512_set1_pch): New intrinsic.
1317 * config/i386/avx512fp16vlintrin.h:
1318 (_mm256_set1_pch): New intrinsic.
1319 (_mm_set1_pch): Ditto.
1321 2021-10-18 Andrew MacLeod <amacleod@redhat.com>
1323 PR tree-optimization/102796
1324 * gimple-range.cc (gimple_ranger::range_on_edge): Process EH edges
1325 normally. Return get_tree_range for non gimple_range_ssa_p names.
1326 (gimple_ranger::range_of_stmt): Use get_tree_range for non
1327 gimple_range_ssa_p names.
1329 2021-10-18 Uroš Bizjak <ubizjak@gmail.com>
1332 * config/i386/i386.c (ix86_print_operand_address):
1333 Error out for non-address_operand asm operands.
1335 2021-10-18 Richard Biener <rguenther@suse.de>
1337 * tree-vect-data-refs.c (vect_peeling_hash_insert): Do
1338 not auto-convert dr_alignment_support to bool.
1339 (vect_peeling_supportable): Likewise.
1340 (vect_enhance_data_refs_alignment): Likewise.
1341 (vect_supportable_dr_alignment): Commonize read/write case.
1342 * tree-vect-stmts.c (vect_get_store_cost): Use
1343 dr_alignment_support, not int, for the vect_supportable_dr_alignment
1345 (vect_get_load_cost): Likewise.
1347 2021-10-18 Siddhesh Poyarekar <siddhesh@gotplt.org>
1349 * tree-object-size.c (object_sizes_execute): Consolidate LHS
1350 null check and do it early.
1352 2021-10-18 Richard Biener <rguenther@suse.de>
1354 * tree-vect-stmts.c (vectorizable_store): Use the
1355 computed alignment scheme instead of querying
1358 2021-10-18 Richard Biener <rguenther@suse.de>
1360 * tree-vect-stmts.c (vectorizable_store): Do not recompute
1361 alignment scheme already determined by get_load_store_type.
1363 2021-10-18 Aldy Hernandez <aldyh@redhat.com>
1365 * tree-ssa-threadbackward.c (class pass_thread_jumps_full):
1366 Clone corresponding pass.
1368 2021-10-18 Roger Sayle <roger@nextmovesoftware.com>
1370 * combine.c (recog_for_combine): For an unrecognized move/set of
1371 a constant, try force_const_mem to place it in the constant pool.
1372 * cse.c (constant_pool_entries_cost, constant_pool_entries_regcost):
1373 Delete global variables (that are no longer assigned a cost value).
1374 (cse_insn): Simplify logic for deciding whether to place a folded
1375 constant in the constant pool using force_const_mem.
1376 (cse_main): Remove zero initialization of constant_pool_entries_cost
1377 and constant_pool_entries_regcost.
1378 * config/i386/i386.c (ix86_rtx_costs): Make memory accesses
1379 fractionally more expensive, when optimizing for speed.
1381 2021-10-18 Martin Liska <mliska@suse.cz>
1383 PR gcov-profile/102746
1384 PR gcov-profile/102747
1385 * gcov.c (main): Return return_code.
1386 (output_gcov_file): Mark return_code when error happens.
1387 (generate_results): Likewise.
1388 (read_graph_file): Likewise.
1389 (read_count_file): Likewise.
1391 2021-10-18 Roger Sayle <roger@nextmovesoftware.com>
1393 * config/bfin/bfin.md (define_constants): Remove UNSPEC_ONES.
1394 (define_insn "ones"): Replace UNSPEC_ONES with a truncate of
1395 a popcount, allowing compile-time evaluation/simplification.
1396 (popcountsi2, popcounthi2): New expanders using a "ones" insn.
1398 2021-10-18 Richard Biener <rguenther@suse.de>
1400 PR tree-optimization/102788
1401 * tree-vect-patterns.c (vect_init_pattern_stmt): Allow
1403 (vect_pattern_recog_1): Likewise.
1404 (vect_recog_bool_pattern): Continue matching the pattern
1405 even if we do not have a vector type for a conversion
1408 2021-10-18 Roger Sayle <roger@nextmovesoftware.com>
1410 * simplify-rtx.c (simplify_const_unary_operation) [SS_NEG, SS_ABS]:
1411 Evalute SS_NEG and SS_ABS of a constant argument.
1413 2021-10-18 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
1416 * gimple-match-head.c (try_conditional_simplification): Add case for single operand.
1417 * internal-fn.def: Add entry for COND_NEG internal function.
1418 * internal-fn.c (FOR_EACH_CODE_MAPPING): Add entry for
1419 NEGATE_EXPR, COND_NEG mapping.
1420 * optabs.def: Add entry for cond_neg_optab.
1421 * match.pd (UNCOND_UNARY, COND_UNARY): New operator lists.
1422 (vec_cond COND (foo A) B) -> (IFN_COND_FOO COND A B): New pattern.
1423 (vec_cond COND B (foo A)) -> (IFN_COND_FOO ~COND A B): Likewise.
1425 2021-10-18 Aldy Hernandez <aldyh@redhat.com>
1427 * tree-ssa-strlen.c (class strlen_pass): Rename from
1429 (handle_builtin_stxncpy_strncat): Move to strlen_pass.
1430 (handle_assign): Same.
1431 (adjust_last_stmt): Same.
1432 (maybe_warn_overflow): Same.
1433 (handle_builtin_strlen): Same.
1434 (handle_builtin_strchr): Same.
1435 (handle_builtin_strcpy): Same.
1436 (handle_builtin_strncat): Same.
1437 (handle_builtin_stxncpy_strncat): Same.
1438 (handle_builtin_memcpy): Same.
1439 (handle_builtin_strcat): Same.
1440 (handle_alloc_call): Same.
1441 (handle_builtin_memset): Same.
1442 (handle_builtin_memcmp): Same.
1443 (get_len_or_size): Same.
1444 (strxcmp_eqz_result): Same.
1445 (handle_builtin_string_cmp): Same.
1446 (handle_pointer_plus): Same.
1447 (count_nonzero_bytes_addr): Same.
1448 (count_nonzero_bytes): Same.
1449 (handle_store): Same.
1450 (strlen_check_and_optimize_call): Same.
1451 (handle_integral_assign): Same.
1452 (check_and_optimize_stmt): Same.
1453 (printf_strlen_execute): Rename strlen_dom_walker to strlen_pass.
1455 2021-10-18 Richard Biener <rguenther@suse.de>
1457 PR tree-optimization/102798
1458 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
1459 Only copy points-to info to newly generated SSA names.
1461 2021-10-18 Martin Liska <mliska@suse.cz>
1463 * dbgcnt.c (dbg_cnt_process_opt): Remove unused but set variable.
1464 * gcov.c (get_cycles_count): Likewise.
1465 * lto-compress.c (lto_compression_zlib): Likewise.
1466 (lto_uncompression_zlib): Likewise.
1467 * targhooks.c (default_pch_valid_p): Likewise.
1469 2021-10-17 Aldy Hernandez <aldyh@redhat.com>
1471 * tree-pass.h (make_pass_thread_jumps_full): New.
1472 * tree-ssa-threadbackward.c (pass_thread_jumps::gate): Inline.
1473 (try_thread_blocks): Add resolve and speed arguments.
1474 (pass_thread_jumps::execute): Inline.
1475 (do_early_thread_jumps): New.
1476 (do_thread_jumps): New.
1477 (make_pass_thread_jumps): Move.
1478 (pass_early_thread_jumps::gate): Inline.
1479 (pass_early_thread_jumps::execute): Inline.
1480 (class pass_thread_jumps_full): New.
1482 2021-10-16 Piotr Kubaj <pkubaj@FreeBSD.org>
1484 * configure.ac: Treat powerpc64*-*-freebsd* the same as
1485 powerpc64-*-freebsd*.
1486 * configure: Regenerate.
1488 2021-10-16 H.J. Lu <hjl.tools@gmail.com>
1490 * value-query.cc (get_ssa_name_ptr_info_nonnull): Change
1491 set_ptr_nonull to set_ptr_nonnull in comments.
1493 2021-10-16 Jan Hubicka <hubicka@ucw.cz>
1495 PR tree-optimization/102720
1496 * tree-ssa-structalias.c (compute_points_to_sets): Fix producing
1497 of call used and clobbered sets.
1499 2021-10-15 Iain Sandoe <iain@sandoe.co.uk>
1501 * config/darwin.h (LINK_COMMAND_SPEC_A): Update 'r' handling to
1502 skip gomp and itm when r or nodefaultlibs is given.
1503 (DSYMUTIL_SPEC): Do not call dsymutil for '-r' link lines.
1504 Update ordering of exclusions, remove duplicate 'v' addition
1505 (collect2 will add this from the main command line).
1507 2021-10-15 Iain Sandoe <iain@sandoe.co.uk>
1509 * config/darwin-driver.c (darwin_driver_init): Revise comments, handle
1510 filelist and framework options in specs instead of code.
1511 * config/darwin.h (SUBTARGET_DRIVER_SELF_SPECS): Update to handle link
1512 specs that are really driver ones.
1513 (DARWIN_CC1_SPEC): Likewise.
1514 (CPP_SPEC): Likewise.
1515 (SYSROOT_SPEC): Append space.
1516 (LINK_SYSROOT_SPEC): Remove most driver link specs.
1517 (STANDARD_STARTFILE_PREFIX_2): Update link-related specs.
1518 (STARTFILE_SPEC): Likewise.
1519 (ASM_MMACOSX_VERSION_MIN_SPEC): Fix line wrap.
1520 (ASM_SPEC): Update driver-related specs.
1521 (ASM_FINAL_SPEC): Likewise.
1522 * config/darwin.opt: Remove now unused option aliases.
1523 * config/i386/darwin.h (EXTRA_ASM_OPTS): Ensure space after opt.
1524 (ASM_SPEC): Update driver-related specs.
1526 2021-10-15 Roger Sayle <roger@nextmovesoftware.com>
1528 * config/i386/i386.c (ix86_hardreg_mov_ok): For vector modes,
1529 allow standard_sse_constant_p immediate constants.
1531 2021-10-15 Iain Sandoe <iain@sandoe.co.uk>
1533 * config.gcc: Add tm-dwarf2.h to tm_d-file.
1535 2021-10-15 Andrew MacLeod <amacleod@redhat.com>
1537 * gimple-range-fold.h (gimple_range_ssa_p): Don't process names
1538 that occur in abnormal phis.
1539 * gimple-range.cc (gimple_ranger::range_on_edge): Return false for
1540 abnormal and EH edges.
1541 * gimple-ssa-evrp.c (rvrp_folder::value_of_expr): Ditto.
1542 (rvrp_folder::value_on_edge): Ditto.
1543 (rvrp_folder::value_of_stmt): Ditto.
1544 (hybrid_folder::value_of_expr): Ditto for ranger queries.
1545 (hybrid_folder::value_on_edge): Ditto.
1546 (hybrid_folder::value_of_stmt): Ditto.
1547 * value-query.cc (gimple_range_global): Always return a range if
1548 the type is supported.
1550 2021-10-15 John David Anglin <danglin@gcc.gnu.org>
1552 * config/pa/pa.md: Consistently use "rG" constraint for copy
1553 instruction in move patterns.
1555 2021-10-15 Andrew Stubbs <ams@codesourcery.com>
1557 * config/gcn/gcn-hsa.h (S_FIJI): Set unconditionally.
1560 * config/gcn/gcn.c: Hard code SRAM ECC settings for old architectures.
1561 * config/gcn/mkoffload.c (ELFABIVERSION_AMDGPU_HSA): Rename to ...
1562 (ELFABIVERSION_AMDGPU_HSA_V3): ... this.
1563 (ELFABIVERSION_AMDGPU_HSA_V4): New.
1564 (SET_SRAM_ECC_UNSUPPORTED): New.
1565 (copy_early_debug_info): Create elf flags to match the other objects.
1566 (main): Just let the attribute flags pass through.
1568 2021-10-15 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
1570 * tree-loop-distribution.c (reduction_var_overflows_first):
1571 Pass the type of reduction_var as first argument as it is also
1572 done for the load type.
1573 (loop_distribution::transform_reduction_loop): Add missing
1574 TREE_TYPE while determining precission of reduction_var.
1576 2021-10-15 Richard Biener <rguenther@suse.de>
1578 * defaults.h (PREFERRED_DEBUGGING_TYPE): Choose DWARF2_DEBUG
1580 * toplev.c (process_options): Warn when STABS debugging is
1581 enabled but not the preferred format.
1582 * config/pa/som.h (PREFERRED_DEBUGGING_TYPE): Define to
1584 * config/pdp11/pdp11.h (PREFERRED_DEBUGGING_TYPE): Likewise.
1586 2021-10-15 Richard Biener <rguenther@suse.de>
1589 * tree-inline.c (copy_bb): Avoid underflowing nargs.
1591 2021-10-15 Hongyu Wang <hongyu.wang@intel.com>
1593 * config/i386/i386-expand.c (ix86_expand_vec_perm): Convert
1594 HFmode input operand to HImode.
1595 (ix86_vectorize_vec_perm_const): Likewise.
1596 * config/i386/sse.md (*avx512bw_permvar_truncv16siv16hi_1_hf):
1598 (*avx512f_permvar_truncv8siv8hi_1_hf):
1601 2021-10-15 Richard Biener <rguenther@suse.de>
1603 PR middle-end/102682
1604 * expmed.c (store_bit_field_1): Ensure a LHS subreg would
1605 not create a paradoxical subreg.
1607 2021-10-15 Hongyu Wang <hongyu.wang@intel.com>
1609 * config/i386/i386-expand.c (ix86_expand_vector_init):
1610 For half_vector concat for HFmode, handle them like HImode.
1612 2021-10-14 Aldy Hernandez <aldyh@redhat.com>
1614 * tree-ssa-threadbackward.c (class back_threader): Add m_resolve.
1615 (back_threader::back_threader): Same.
1616 (back_threader::resolve_phi): Try to solve without looking back if
1618 (back_threader::find_paths_to_names): Same.
1619 (try_thread_blocks): Pass resolve argument to back threader.
1620 (pass_early_thread_jumps::execute): Same.
1622 2021-10-14 Aldy Hernandez <aldyh@redhat.com>
1624 * doc/invoke.texi: Remove max-fsm-thread-length,
1625 max-fsm-thread-paths, and fsm-maximum-phi-arguments.
1627 * tree-ssa-threadbackward.c (back_threader::back_threader): Remove
1629 (back_threader_registry::back_threader_registry): Same.
1630 (back_threader_profitability::profitable_path_p): Remove
1631 param_max_fsm_thread-length.
1632 (back_threader_registry::register_path): Remove
1633 m_max_allowable_paths.
1635 2021-10-14 Aldy Hernandez <aldyh@redhat.com>
1637 * tree-ssa-threadbackward.c (class back_threader): Make m_imports
1639 (back_threader::~back_threader): Do not release m_path.
1641 2021-10-14 Andrew MacLeod <amacleod@redhat.com>
1643 PR tree-optimization/102738
1644 * vr-values.c (simplify_using_ranges::simplify): Handle RSHIFT_EXPR.
1646 2021-10-14 Kwok Cheung Yeung <kcy@codesourcery.com>
1648 * omp-general.c (omp_check_context_selector): Move from c-omp.c.
1649 (omp_mark_declare_variant): Move from c-omp.c.
1650 (omp_context_name_list_prop): Update for Fortran strings.
1651 * omp-general.h (omp_check_context_selector): New prototype.
1652 (omp_mark_declare_variant): New prototype.
1654 2021-10-14 Richard Sandiford <richard.sandiford@arm.com>
1656 * config/rs6000/rs6000.c (rs6000_density_test): Move early
1657 exit test further up the function.
1659 2021-10-14 Richard Sandiford <richard.sandiford@arm.com>
1661 * config/arm/arm.c (arm_add_stmt_cost): Delete.
1662 (TARGET_VECTORIZE_ADD_STMT_COST): Delete.
1664 2021-10-14 Martin Jambor <mjambor@suse.cz>
1666 * doc/invoke.texi (Optimize Options): Add entry for
1667 ipa-cp-recursive-freq-factor.
1669 2021-10-14 Tamar Christina <tamar.christina@arm.com>
1671 * match.pd: New rule.
1673 2021-10-14 Jan Hubicka <hubicka@ucw.cz>
1676 * ipa-modref-tree.h (modref_access_node::update2):
1677 Also check that parm_offset is unchanged.
1678 (modref_ref_node::insert_access): Fix updating of
1681 2021-10-14 Aldy Hernandez <aldyh@redhat.com>
1683 * tree-ssa-threadbackward.c (back_threader::resolve_phi): Add
1686 2021-10-14 Richard Biener <rguenther@suse.de>
1688 PR tree-optimization/102659
1689 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Also
1690 rewrite pointer typed undefined overflow operations.
1691 (predicate_statements): Likewise. Make sure to emit invariant
1692 conversions in the preheader.
1693 * tree-vectorizer.c (vect_loop_vectorized_call): Look through
1694 non-empty preheaders.
1695 * tree-data-ref.c (dr_analyze_indices): Strip useless
1696 conversions to the MEM_REF base type.
1698 2021-10-14 Martin Liska <mliska@suse.cz>
1700 * common.opt: Stop using AUTODETECT_VALUE
1701 and use EnabledBy where possible.
1702 * opts.c: Enable OPT_fvar_tracking with optimize >= 1.
1703 * toplev.c (AUTODETECT_VALUE): Remove macro.
1704 (process_options): Simplify by using EnabledBy and
1705 OPT_fvar_tracking. Use OPTION_SET_P macro instead of
1708 2021-10-14 Jonathan Wright <jonathan.wright@arm.com>
1710 * config/aarch64/arm_neon.h (vld1_s8_x3): Use signed type for
1712 (vld1_s32_x3): Likewise.
1714 2021-10-14 Aldy Hernandez <aldyh@redhat.com>
1716 PR tree-optimization/102736
1717 PR tree-optimization/102736
1718 * gimple-range-path.cc (path_range_query::range_on_path_entry):
1719 Assert that the requested range is defined outside the path.
1720 (path_range_query::ssa_range_in_phi): Do not call
1721 range_on_path_entry for SSA names that are defined within the
1724 2021-10-14 Iain Sandoe <iain@sandoe.co.uk>
1726 * config/darwin-driver.c (darwin_find_version_from_kernel):
1727 Quote internal identifiers and avoid contractions in
1729 (darwin_default_min_version): Likewise.
1730 (darwin_driver_init): Likewise.
1732 2021-10-14 Martin Jambor <mjambor@suse.cz>
1734 * params.opt (ipa-cp-recursive-freq-factor): New.
1735 * ipa-cp.c (ipcp_value): Switch to inline initialization. New members
1736 scc_no, self_recursion_generated_level, same_scc and
1737 self_recursion_generated_p.
1738 (ipcp_lattice::add_value): Replaced parameter unlimited with
1739 same_lat_gen_level, usit it determine limit of values and store it to
1741 (ipcp_lattice<valtype>::print): Dump the new fileds.
1742 (allocate_and_init_ipcp_value): Take same_lat_gen_level as a new
1743 parameter and store it to the new value.
1744 (self_recursively_generated_p): Removed.
1745 (propagate_vals_across_arith_jfunc): Use self_recursion_generated_p
1746 instead of self_recursively_generated_p, store self generation level
1748 (value_topo_info<valtype>::add_val): Set scc_no.
1749 (value_topo_info<valtype>::propagate_effects): Multiply frequencies of
1750 recursively feeding values and self generated values by appropriate
1753 2021-10-14 Richard Sandiford <richard.sandiford@arm.com>
1755 * config/aarch64/aarch64.c (aarch64_add_stmt_cost): Remove
1756 redundant test for flag_vect_cost_model.
1758 2021-10-14 Aldy Hernandez <aldyh@redhat.com>
1760 * bitmap.c (debug): New overloaded function for auto_bitmaps.
1761 * bitmap.h (debug): Same.
1763 2021-10-14 Hongyu Wang <hongyu.wang@intel.com>
1765 * config/i386/avx512fp16intrin.h (_mm512_mask_fcmadd_pch):
1766 Adjust builtin call.
1767 (_mm512_mask3_fcmadd_pch): Likewise.
1768 (_mm512_mask_fmadd_pch): Likewise
1769 (_mm512_mask3_fmadd_pch): Likewise
1770 (_mm512_mask_fcmadd_round_pch): Likewise
1771 (_mm512_mask3_fcmadd_round_pch): Likewise
1772 (_mm512_mask_fmadd_round_pch): Likewise
1773 (_mm512_mask3_fmadd_round_pch): Likewise
1774 (_mm_mask_fcmadd_sch): Likewise
1775 (_mm_mask3_fcmadd_sch): Likewise
1776 (_mm_mask_fmadd_sch): Likewise
1777 (_mm_mask3_fmadd_sch): Likewise
1778 (_mm_mask_fcmadd_round_sch): Likewise
1779 (_mm_mask3_fcmadd_round_sch): Likewise
1780 (_mm_mask_fmadd_round_sch): Likewise
1781 (_mm_mask3_fmadd_round_sch): Likewise
1782 (_mm_fcmadd_round_sch): Likewise
1783 * config/i386/avx512fp16vlintrin.h (_mm_mask_fmadd_pch):
1784 Adjust builtin call.
1785 (_mm_mask3_fmadd_pch): Likewise
1786 (_mm256_mask_fmadd_pch): Likewise
1787 (_mm256_mask3_fmadd_pch): Likewise
1788 (_mm_mask_fcmadd_pch): Likewise
1789 (_mm_mask3_fcmadd_pch): Likewise
1790 (_mm256_mask_fcmadd_pch): Likewise
1791 (_mm256_mask3_fcmadd_pch): Likewise
1792 * config/i386/i386-builtin.def: Add mask3 builtin for complex
1793 fma, and adjust mask_builtin to corresponding expander.
1794 * config/i386/i386-expand.c (ix86_expand_round_builtin):
1795 Skip eraseing embedded rounding for expanders that emits
1797 * config/i386/sse.md (complexmove): New mode_attr.
1798 (<avx512>_fmaddc_<mode>_mask1<round_expand_name>): New expander.
1799 (<avx512>_fcmaddc_<mode>_mask1<round_expand_name>): Likewise.
1800 (avx512fp16_fmaddcsh_v8hf_mask1<round_expand_name>): Likewise.
1801 (avx512fp16_fcmaddcsh_v8hf_mask1<round_expand_name>): Likewise.
1802 (avx512fp16_fcmaddcsh_v8hf_mask3<round_expand_name>): Likewise.
1803 (avx512fp16_fmaddcsh_v8hf_mask3<round_expand_name>): Likewise.
1804 * config/i386/subst.md (round_embedded_complex): New subst.
1806 2021-10-14 John David Anglin <danglin@gcc.gnu.org>
1808 * config/pa/pa.md (cbranchsf4): Disable if TARGET_SOFT_FLOAT.
1809 (cbranchdf4): Likewise.
1810 Add missing move patterns for TARGET_SOFT_FLOAT.
1812 2021-10-13 Roger Sayle <roger@nextmovesoftware.com>
1814 * config/i386/i386-expand.c (ix86_expand_vector_move): Use a
1815 pseudo intermediate when moving a SUBREG into a hard register,
1816 by checking ix86_hardreg_mov_ok.
1817 (ix86_expand_vector_extract): Store zero-extended SImode
1818 intermediate in a pseudo, then set target using a SUBREG_PROMOTED
1820 * config/i386/sse.md (mov<VMOVE>_internal): Prevent CSE creating
1821 complex (SUBREG) sets of (vector) hard registers before reload, by
1822 checking ix86_hardreg_mov_ok.
1824 2021-10-13 Indu Bhagat <indu.bhagat@oracle.com>
1826 * ctfc.h (enum ctf_dtu_d_union_enum): Remove redundant comma.
1828 2021-10-13 Indu Bhagat <indu.bhagat@oracle.com>
1830 * dwarf2ctf.c (gen_ctf_array_type): Fix typo in comment.
1832 2021-10-13 Martin Sebor <msebor@redhat.com>
1834 PR middle-end/102630
1835 * pointer-query.cc (compute_objsize_r): Handle named address spaces.
1837 2021-10-13 Iain Sandoe <iain@sandoe.co.uk>
1839 * collect2.c (is_lto_object_file): Release simple-object
1840 resources, close files.
1842 2021-10-13 Andre Vieira <andre.simoesdiasvieira@arm.com>
1844 * config/arm/arm.c (thumb2_legitimate_address_p): Use VALID_MVE_MODE
1845 when checking mve addressing modes.
1846 (mve_vector_mem_operand): Fix the way we handle pre, post and offset
1848 (arm_print_operand): Fix printing of POST_ and PRE_MODIFY.
1849 * config/arm/mve.md: Use mve_memory_operand predicate everywhere where
1850 there is a single Ux constraint.
1852 2021-10-13 John David Anglin <danglin@gcc.gnu.org>
1854 * config/pa/pa.md (muldi3): Add support for inlining 64-bit
1855 multiplication on 32-bit PA 1.1 and 2.0 targets.
1857 2021-10-13 Martin Liska <mliska@suse.cz>
1859 PR gcov-profile/90364
1860 * coverage.c (build_info): Emit checksum to the global variable.
1861 (build_info_type): Add new field for checksum.
1862 (coverage_obj_finish): Pass object_checksum.
1863 (coverage_init): Use 0 as checksum for .gcno files.
1864 * gcov-dump.c (dump_gcov_file): Dump also new checksum field.
1865 * gcov.c (read_graph_file): Read also checksum.
1866 * doc/invoke.texi: Document the behaviour change.
1868 2021-10-13 Richard Biener <rguenther@suse.de>
1870 * gimple-iterator.h (gsi_iterator_update): Add GSI_LAST_NEW_STMT,
1871 start at integer value 2.
1872 * gimple-iterator.c (gsi_insert_seq_nodes_before): Update
1873 the iterator for GSI_LAST_NEW_STMT.
1874 (gsi_insert_seq_nodes_after): Likewise.
1875 * tree-if-conv.c (predicate_statements): Use GSI_LAST_NEW_STMT.
1876 * tree-ssa.c (execute_update_addresses_taken): Correct bogus
1877 arguments to gsi_replace.
1879 2021-10-13 Martin Liska <mliska@suse.cz>
1882 * common.opt: Use EnabledBy instead of detection in
1883 finish_options and process_options.
1884 * opts.c (finish_options): Remove handling of
1885 x_flag_unroll_all_loops.
1886 * toplev.c (process_options): Likewise for flag_web and
1887 flag_rename_registers.
1889 2021-10-13 Richard Biener <rguenther@suse.de>
1891 PR tree-optimization/102659
1892 * tree-if-conv.c (need_to_rewrite_undefined): New flag.
1893 (if_convertible_gimple_assign_stmt_p): Mark the loop for
1894 rewrite when stmts with undefined behavior on integer
1896 (combine_blocks): Predicate also when we need to rewrite stmts.
1897 (predicate_statements): Rewrite affected stmts to something
1898 with well-defined behavior on overflow.
1899 (tree_if_conversion): Initialize need_to_rewrite_undefined.
1901 2021-10-13 Richard Biener <rguenther@suse.de>
1904 * ipa-sra.c (ptr_parm_has_nonarg_uses): Fix volatileness
1907 2021-10-13 Jose E. Marchesi <jose.marchesi@oracle.com>
1909 * dwarf2ctf.c: Fix typo in comment.
1911 2021-10-12 Bill Schmidt <wschmidt@linux.ibm.com>
1914 * config/rs6000/altivec.h (vec_cpsgn): Swap operand order.
1915 * config/rs6000/rs6000-overload.def (VEC_COPYSIGN): Use SKIP to
1916 avoid generating an automatic #define of vec_cpsgn. Use the
1917 correct built-in for V4SFmode that doesn't depend on VSX.
1919 2021-10-12 Uroš Bizjak <ubizjak@gmail.com>
1923 * config/i386/i386.md (*add<mode>_1_slp): Rewrite as
1924 define_insn_and_split pattern. Add alternative 1 and split it
1925 post reload to insert operand 1 into the low part of operand 0.
1926 (*sub<mode>_1_slp): Ditto.
1927 (*and<mode>_1_slp): Ditto.
1928 (*<any_or:code><mode>_1_slp): Ditto.
1929 (*ashl<mode>3_1_slp): Ditto.
1930 (*<any_shiftrt:insn><mode>3_1_slp): Ditto.
1931 (*<any_rotate:insn><mode>3_1_slp): Ditto.
1932 (*neg<mode>_1_slp): New insn_and_split pattern.
1933 (*one_cmpl<mode>_1_slp): Ditto.
1935 2021-10-12 David Edelsohn <dje.gcc@gmail.com>
1937 * doc/install.texi: Update MinGW and mingw-64 Binaries
1940 2021-10-12 Daniel Le Duc Khoi Nguyen <greenrecyclebin@gmail.com>
1942 * doc/extend.texi (Common Variable Attributes): Fix typos in
1943 alloc_size documentation.
1945 2021-10-12 Richard Biener <rguenther@suse.de>
1947 PR tree-optimization/102696
1948 * tree-vect-slp.c (vect_build_slp_tree_2): Properly mark
1949 the tree fatally failed when we reject a BIT_FIELD_REF.
1951 2021-10-12 Richard Biener <rguenther@suse.de>
1953 PR tree-optimization/102572
1954 * tree-vect-stmts.c (vect_build_gather_load_calls): When
1955 gathering the vectorized defs for the mask pass in the
1956 desired mask vector type so invariants will be handled
1959 2021-10-12 Tamar Christina <tamar.christina@arm.com>
1961 * config/aarch64/aarch64-sve.md (*fcm<cmp_op><mode>_bic_combine,
1962 *fcm<cmp_op><mode>_nor_combine, *fcmuo<mode>_bic_combine,
1963 *fcmuo<mode>_nor_combine): New.
1965 2021-10-12 Eric Botcazou <ebotcazou@adacore.com>
1968 * config/sparc/sparc-modes.def (OI): New integer mode.
1970 2021-10-12 Jakub Jelinek <jakub@redhat.com>
1972 * gimple-fold.h (clear_padding_type_may_have_padding_p): Declare.
1973 * gimple-fold.c (clear_padding_type_may_have_padding_p): No longer
1976 2021-10-12 Jakub Jelinek <jakub@redhat.com>
1978 * tree-vectorizer.h (loop_cost_model): New function.
1979 (unlimited_cost_model): Use it.
1980 * tree-vect-loop.c (vect_analyze_loop_costing): Use loop_cost_model
1981 call instead of flag_vect_cost_model.
1982 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
1983 (vect_prune_runtime_alias_test_list): Likewise. Also use it instead
1984 of flag_simd_cost_model.
1986 2021-10-12 liuhongt <hongtao.liu@intel.com>
1989 * config/i386/i386-expand.c (emit_reduc_half): Handle
1991 * config/i386/mmx.md (reduc_<code>_scal_v4qi): New expander.
1992 (reduc_plus_scal_v4qi): Ditto.
1994 2021-10-12 Paul A. Clarke <pc@us.ibm.com>
1996 * config/rs6000/smmintrin.h (_mm_cmpeq_epi64, _mm_cmpgt_epi64,
1997 _mm_mullo_epi32, _mm_mul_epi32, _mm_packus_epi32): New.
1998 * config/rs6000/nmmintrin.h: Copy from i386, tweak to suit.
2000 2021-10-12 Paul A. Clarke <pc@us.ibm.com>
2002 * config/rs6000/smmintrin.h (_mm_cvtepi8_epi16, _mm_cvtepi8_epi32,
2003 _mm_cvtepi8_epi64, _mm_cvtepi16_epi32, _mm_cvtepi16_epi64,
2004 _mm_cvtepi32_epi64, _mm_cvtepu8_epi16, _mm_cvtepu8_epi32,
2005 _mm_cvtepu8_epi64, _mm_cvtepu16_epi32, _mm_cvtepu16_epi64,
2006 _mm_cvtepu32_epi64): New.
2008 2021-10-12 Paul A. Clarke <pc@us.ibm.com>
2010 * config/rs6000/smmintrin.h (_mm_test_all_zeros,
2011 _mm_test_all_ones, _mm_test_mix_ones_zeros): Rewrite as macro.
2013 2021-10-12 Paul A. Clarke <pc@us.ibm.com>
2015 * config/rs6000/smmintrin.h (_mm_min_epi8, _mm_min_epu16,
2016 _mm_min_epi32, _mm_min_epu32, _mm_max_epi8, _mm_max_epu16,
2017 _mm_max_epi32, _mm_max_epu32): New.
2019 2021-10-11 Jan Hubicka <hubicka@ucw.cz>
2021 * ipa-modref-tree.h (struct modref_access_node): Revert
2023 (struct modref_ref_node): Likewise.
2025 2021-10-11 Jan Hubicka <hubicka@ucw.cz>
2027 * ipa-modref-tree.h (modref_tree::global_access_p): New member
2030 (implicint_const_eaf_flags,implicit_pure_eaf_flags,
2031 ignore_stores_eaf_flags): Move to ipa-modref.h
2032 (remove_useless_eaf_flags): Remove early exit on NOCLOBBER.
2033 (modref_summary::global_memory_read_p): New member function.
2034 (modref_summary::global_memory_written_p): New member function.
2035 * ipa-modref.h (modref_summary::global_memory_read_p,
2036 modref_summary::global_memory_written_p): Declare.
2037 (implicint_const_eaf_flags,implicit_pure_eaf_flags,
2038 ignore_stores_eaf_flags): move here.
2039 * tree-ssa-structalias.c: Include ipa-modref-tree.h, ipa-modref.h
2041 (handle_rhs_call): Rewrite.
2042 (handle_call_arg): New function.
2043 (determine_global_memory_access): New function.
2044 (handle_const_call): Remove
2045 (handle_pure_call): Remove
2046 (find_func_aliases_for_call): Update use of handle_rhs_call.
2047 (compute_points_to_sets): Handle global memory acccesses
2050 2021-10-11 Diane Meirowitz <diane.meirowitz@oracle.com>
2052 * doc/invoke.texi: Add link to UndefinedBehaviorSanitizer
2053 documentation, mention UBSAN_OPTIONS, similar to what is done
2054 for AddressSanitizer.
2056 2021-10-11 Richard Biener <rguenther@suse.de>
2058 PR middle-end/102683
2059 * internal-fn.c (expand_DEFERRED_INIT): Check for mode
2060 availability before building an integer type for storage
2063 2021-10-11 Richard Biener <rguenther@suse.de>
2065 PR middle-end/101480
2066 * gimple.c (gimple_call_fnspec): Do not mark operator new/delete
2069 2021-10-11 Martin Liska <mliska@suse.cz>
2071 * common.opt: Remove Init(2) for some options.
2072 * toplev.c (process_options): Do not use AUTODETECT_VALUE, but
2073 use rather OPTION_SET_P.
2075 2021-10-11 Martin Liska <mliska@suse.cz>
2077 * common.opt: Remove usage of IRA_REGION_AUTODETECT.
2078 * flag-types.h (enum ira_region): Likewise.
2079 * toplev.c (process_options): Use OPTION_SET_P instead of
2080 IRA_REGION_AUTODETECT.
2082 2021-10-11 Jakub Jelinek <jakub@redhat.com>
2084 * omp-low.c (omp_runtime_api_call): Handle omp_get_max_teams,
2085 omp_[sg]et_teams_thread_limit and omp_set_num_teams.
2087 2021-10-11 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
2089 * config/s390/s390-protos.h (s390_rawmemchr): Add prototype.
2090 * config/s390/s390.c (s390_rawmemchr): New function.
2091 * config/s390/s390.md (rawmemchr<SINT:mode>): New expander.
2092 * config/s390/vector.md (@vec_vfees<mode>): Basically a copy of
2093 the pattern vfees<mode> from vx-builtins.md.
2094 * config/s390/vx-builtins.md (*vfees<mode>): Remove.
2096 2021-10-11 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
2098 * builtins.c (get_memory_rtx): Change to external linkage.
2099 * builtins.h (get_memory_rtx): Add function prototype.
2100 * doc/md.texi (rawmemchr<mode>): Document.
2101 * internal-fn.c (expand_RAWMEMCHR): Define.
2102 * internal-fn.def (RAWMEMCHR): Add.
2103 * optabs.def (rawmemchr_optab): Add.
2104 * tree-loop-distribution.c (find_single_drs): Change return code
2105 behaviour by also returning true if no single store was found
2107 (loop_distribution::classify_partition): Respect the new return
2108 code behaviour of function find_single_drs.
2109 (loop_distribution::execute): Call new function
2110 transform_reduction_loop in order to replace rawmemchr or strlen
2111 like loops by calls into builtins.
2112 (generate_reduction_builtin_1): New function.
2113 (generate_rawmemchr_builtin): New function.
2114 (generate_strlen_builtin_1): New function.
2115 (generate_strlen_builtin): New function.
2116 (generate_strlen_builtin_using_rawmemchr): New function.
2117 (reduction_var_overflows_first): New function.
2118 (determine_reduction_stmt_1): New function.
2119 (determine_reduction_stmt): New function.
2120 (loop_distribution::transform_reduction_loop): New function.
2122 2021-10-11 Martin Liska <mliska@suse.cz>
2124 * tree.c (cl_option_hasher::hash): Use cl_optimization_hash
2125 and remove legacy hashing code.
2127 2021-10-11 Kito Cheng <kito.cheng@sifive.com>
2130 * builtins.c (maybe_emit_call_builtin___clear_cache): Allow
2131 CONST_INT for BEGIN and END, and use gcc_assert rather than
2134 2021-10-10 Jakub Jelinek <jakub@redhat.com>
2137 * var-tracking.c (add_stores): For cselib_sp_derived_value_p values
2138 use MO_VAL_SET if loc is not sp.
2140 2021-10-10 Andrew Pinski <apinski@marvell.com>
2142 PR tree-optimization/102622
2143 * match.pd: Swap the order of a?pow2cst:0 and a?-1:0 transformations.
2144 Swap the order of a?0:pow2cst and a?0:-1 transformations.
2146 2021-10-09 liuhongt <hongtao.liu@intel.com>
2149 * config/i386/i386-expand.c (ix86_valid_mask_cmp_mode): Handle
2151 (ix86_use_mask_cmp_p): Ditto.
2152 (ix86_expand_sse_movcc): Ditto.
2153 * config/i386/i386.md (setcc_hf_mask): New define_insn.
2154 (movhf_mask): Ditto.
2155 (UNSPEC_MOVCC_MASK): New unspec.
2156 * config/i386/sse.md (UNSPEC_PCMP): Move to i386.md.
2158 2021-10-08 Vladimir N. Makarov <vmakarov@redhat.com>
2160 PR rtl-optimization/102627
2161 * lra-constraints.c (split_reg): Use at least natural mode of hard reg.
2163 2021-10-08 Aldy Hernandez <aldyh@redhat.com>
2165 * gimple-range-cache.cc (non_null_ref::non_null_deref_p): Grow
2168 2021-10-08 Aldy Hernandez <aldyh@redhat.com>
2170 * value-range.cc (irange::debug): New.
2171 * value-range.h (irange::debug): New.
2173 2021-10-08 Richard Sandiford <richard.sandiford@arm.com>
2175 PR tree-optimization/102385
2176 * predict.h (change_edge_frequency): Declare.
2177 * predict.c (change_edge_frequency): New function.
2178 * tree-ssa-loop-manip.h (tree_transform_and_unroll_loop): Remove
2180 (tree_unroll_loop): Likewise.
2181 * gimple-loop-jam.c (tree_loop_unroll_and_jam): Update accordingly.
2182 * tree-predcom.c (pcom_worker::tree_predictive_commoning_loop):
2184 * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Likewise.
2185 * tree-ssa-loop-manip.c (tree_unroll_loop): Likewise.
2186 (tree_transform_and_unroll_loop): Likewise. Use single_dom_exit
2187 to retrieve the exit edges. Make all the old profile update code
2188 conditional on !single_loop_p -- the case it was written for --
2189 and use a different approach for the single-loop case.
2191 2021-10-08 Martin Liska <mliska@suse.cz>
2193 * config/alpha/alpha.c (alpha_option_override): Use new macro
2195 * config/arc/arc.c (arc_override_options): Likewise.
2196 * config/arm/arm.c (arm_option_override): Likewise.
2197 * config/bfin/bfin.c (bfin_load_pic_reg): Likewise.
2198 * config/c6x/c6x.c (c6x_option_override): Likewise.
2199 * config/csky/csky.c: Likewise.
2200 * config/darwin.c (darwin_override_options): Likewise.
2201 * config/frv/frv.c (frv_option_override): Likewise.
2202 * config/i386/djgpp.h: Likewise.
2203 * config/i386/i386.c (ix86_stack_protect_guard): Likewise.
2204 (ix86_max_noce_ifcvt_seq_cost): Likewise.
2205 * config/ia64/ia64.c (ia64_option_override): Likewise.
2206 (ia64_override_options_after_change): Likewise.
2207 * config/m32c/m32c.c (m32c_option_override): Likewise.
2208 * config/m32r/m32r.c (m32r_init): Likewise.
2209 * config/m68k/m68k.c (m68k_option_override): Likewise.
2210 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
2211 * config/mips/mips.c (mips_option_override): Likewise.
2212 * config/nios2/nios2.c (nios2_option_override): Likewise.
2213 * config/nvptx/nvptx.c (nvptx_option_override): Likewise.
2214 * config/pa/pa.c (pa_option_override): Likewise.
2215 * config/riscv/riscv.c (riscv_option_override): Likewise.
2216 * config/rs6000/aix71.h: Likewise.
2217 * config/rs6000/aix72.h: Likewise.
2218 * config/rs6000/aix73.h: Likewise.
2219 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Likewise.
2220 (rs6000_override_options_after_change): Likewise.
2221 (rs6000_linux64_override_options): Likewise.
2222 (glibc_supports_ieee_128bit): Likewise.
2223 (rs6000_option_override_internal): Likewise.
2224 (rs6000_file_start): Likewise.
2225 (rs6000_darwin_file_start): Likewise.
2226 * config/rs6000/rtems.h: Likewise.
2227 * config/rs6000/sysv4.h: Likewise.
2228 * config/rs6000/vxworks.h (SUB3TARGET_OVERRIDE_OPTIONS): Likewise.
2229 * config/s390/s390.c (s390_option_override): Likewise.
2230 * config/sh/linux.h: Likewise.
2231 * config/sh/netbsd-elf.h (while): Likewise.
2232 * config/sh/sh.c (sh_option_override): Likewise.
2233 * config/sol2.c (solaris_override_options): Likewise.
2234 * config/sparc/sparc.c (sparc_option_override): Likewise.
2235 * config/tilegx/tilegx.c (tilegx_option_override): Likewise.
2236 * config/visium/visium.c (visium_option_override): Likewise.
2237 * config/vxworks.c (vxworks_override_options): Likewise.
2238 * lto-opts.c (lto_write_options): Likewise.
2239 * omp-expand.c (expand_omp_simd): Likewise.
2240 * omp-general.c (omp_max_vf): Likewise.
2241 * omp-offload.c (oacc_xform_loop): Likewise.
2242 * opts.h (OPTION_SET_P): Likewise.
2243 * targhooks.c (default_max_noce_ifcvt_seq_cost): Likewise.
2244 * toplev.c (process_options): Likewise.
2245 * tree-predcom.c: Likewise.
2246 * tree-sra.c (analyze_all_variable_accesses): Likewise.
2248 2021-10-08 liuhongt <hongtao.liu@intel.com>
2251 * config/i386/i386.c (ix86_optab_supported_p):
2252 Return true for HFmode.
2253 * match.pd: Simplify (_Float16) ceil ((double) x) to
2254 __builtin_ceilf16 (a) when a is _Float16 type and
2255 direct_internal_fn_supported_p.
2257 2021-10-08 liuhongt <hongtao.liu@intel.com>
2260 * config/i386/i386-expand.c (emit_reduc_half): Hanlde V4HImode.
2261 * config/i386/mmx.md (reduc_plus_scal_v4hi): New.
2262 (reduc_<code>_scal_v4hi): New.
2264 2021-10-08 liuhongt <hongtao.liu@intel.com>
2266 * common.opt (ftree-vectorize): Add Var(flag_tree_vectorize).
2267 * doc/invoke.texi (Options That Control Optimization): Update
2269 * opts.c (default_options_table): Enable auto-vectorization at
2270 O2 with very-cheap cost model.
2271 (finish_options): Use cheap cost model for
2272 explicit -ftree{,-loop}-vectorize.
2274 2021-10-07 Indu Bhagat <indu.bhagat@oracle.com>
2276 * ctfc.c (ctfc_delete_container): Free hash table contents.
2278 2021-10-07 Indu Bhagat <indu.bhagat@oracle.com>
2280 * toplev.c (process_options): Do not warn for GNU GIMPLE.
2282 2021-10-07 Siddhesh Poyarekar <siddhesh@gotplt.org>
2284 * tree-object-size.c (addr_object_size,
2285 compute_builtin_object_size): Drop PDECL and POFF arguments.
2286 (addr_object_size): Adjust calls.
2287 * tree-object-size.h (compute_builtin_object_size): Drop PDECL
2290 2021-10-07 Roger Sayle <roger@nextmovesoftware.com>
2292 * rtl.def (SMUL_HIGHPART, UMUL_HIGHPART): New RTX codes for
2293 representing signed and unsigned high-part multiplication resp.
2294 * simplify-rtx.c (simplify_binary_operation_1) [SMUL_HIGHPART,
2295 UMUL_HIGHPART]: Simplify high-part multiplications by zero.
2296 [SS_PLUS, US_PLUS, SS_MINUS, US_MINUS, SS_MULT, US_MULT,
2297 SS_DIV, US_DIV]: Similar simplifications for saturating
2299 (simplify_const_binary_operation) [SS_PLUS, US_PLUS, SS_MINUS,
2300 US_MINUS, SS_MULT, US_MULT, SMUL_HIGHPART, UMUL_HIGHPART]:
2301 Implement compile-time evaluation for constant operands.
2302 * dwarf2out.c (mem_loc_descriptor): Skip SMUL_HIGHPART and
2304 * doc/rtl.texi (smul_highpart, umul_highpart): Document RTX codes.
2305 * doc/md.texi (smul@var{m}3_highpart, umul@var{m3}_highpart):
2306 Mention the new smul_highpart and umul_highpart RTX codes.
2307 * doc/invoke.texi: Silence @xref "compilation" warnings.
2309 2021-10-07 Martin Jambor <mjambor@suse.cz>
2312 * ipa-prop.c (ipa_edge_args_sum_t::duplicate): Also handle the
2313 case when the source reference description corresponds to a
2314 referance taken in a function src->caller is inlined to.
2316 2021-10-07 Jan Hubicka <hubicka@ucw.cz>
2319 * ipa-modref-tree.h (modref_access_node::contains_p): Handle offsets
2321 (modref_access_node::try_merge_with): Add sanity check that there
2322 are no redundant entries in the list.
2324 2021-10-07 Richard Biener <rguenther@suse.de>
2326 PR tree-optimization/102608
2327 * tree-ssa-sccvn.c (visit_stmt): Drop .DEFERRED_INIT to
2330 2021-10-07 Martin Liska <mliska@suse.cz>
2332 * toplev.c (toplev::main): Make
2333 save_opt_decoded_options a pointer type
2334 * toplev.h: Likewise.
2336 2021-10-07 Andrew Stubbs <ams@codesourcery.com>
2338 * config/gcn/gcn-valu.md (gather<mode>_insn_2offsets<exec>): Apply
2339 HAVE_GCN_ASM_GLOBAL_LOAD_FIXED.
2340 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
2342 2021-10-07 Andrew Stubbs <ams@codesourcery.com>
2344 * config/gcn/gcn-hsa.h (SRAMOPT): Include the whole option string.
2345 Adjust for new -msram-ecc=any behaviour.
2346 (ASM_SPEC): Adjust -mxnack and -msram-ecc usage.
2347 * config/gcn/gcn.c (output_file_start): Implement -msram-ecc=any.
2348 * config/gcn/mkoffload.c (EF_AMDGPU_XNACK): Rename to ...
2349 (EF_AMDGPU_XNACK_V3): ... this.
2350 (EF_AMDGPU_SRAM_ECC): Rename to ...
2351 (EF_AMDGPU_SRAM_ECC_V3): ... this.
2352 (EF_AMDGPU_FEATURE_XNACK_V4): New.
2353 (EF_AMDGPU_FEATURE_XNACK_UNSUPPORTED_V4): New.
2354 (EF_AMDGPU_FEATURE_XNACK_ANY_V4): New.
2355 (EF_AMDGPU_FEATURE_XNACK_OFF_V4): New.
2356 (EF_AMDGPU_FEATURE_XNACK_ON_V4): New.
2357 (EF_AMDGPU_FEATURE_SRAMECC_V4): New.
2358 (EF_AMDGPU_FEATURE_SRAMECC_UNSUPPORTED_V4): New.
2359 (EF_AMDGPU_FEATURE_SRAMECC_ANY_V4): New.
2360 (EF_AMDGPU_FEATURE_SRAMECC_OFF_V4): New.
2361 (EF_AMDGPU_FEATURE_SRAMECC_ON_V4): New.
2362 (SET_XNACK_ON): New.
2363 (SET_XNACK_OFF): New.
2365 (SET_SRAM_ECC_ON): New.
2366 (SET_SRAM_ECC_ANY): New.
2367 (SET_SRAM_ECC_OFF): New.
2368 (TEST_SRAM_ECC_ANY): New.
2369 (TEST_SRAM_ECC_ON): New.
2370 (main): Implement HSACOv4 and -msram-ecc=any.
2372 2021-10-07 Andrew Stubbs <ams@codesourcery.com>
2374 * config.in: Regenerate.
2375 * config/gcn/gcn-hsa.h (X_FIJI): New macro.
2379 (A_FIJI): Rename to ...
2381 (A_900): Rename to ...
2383 (A_906): Rename to ...
2385 (A_908): Rename to ...
2387 (SRAMOPT): New macro.
2388 (ASM_SPEC): Adjust xnack option usage.
2389 * config/gcn/gcn.c (output_file_start): Adjust amdgcn_target usage.
2390 * configure: Regenerate.
2391 * configure.ac: Detect LLVM assembler dialect.
2393 2021-10-07 Richard Biener <rguenther@suse.de>
2395 * tree-pretty-print.c (dump_generic_node): Do not elide
2396 printing '&' when dumping with -gimple.
2398 2021-10-06 Andrew MacLeod <amacleod@redhat.com>
2400 * gimple-range-cache.cc (non_null_ref::adjust_range): Call new
2402 * gimple-range-fold.cc (adjust_pointer_diff_expr): Ditto.
2403 (adjust_imagpart_expr): Ditto.
2404 * value-range.cc (irange::irange_intersect): Call new routine if
2405 RHS is a single pair.
2406 (irange::intersect): New wide_int version.
2407 * value-range.h (class irange): New prototype.
2409 2021-10-06 Andrew MacLeod <amacleod@redhat.com>
2411 * gimple-range-edge.cc (gimple_outgoing_range::gimple_outgoing_range):
2412 Add parameter to limit size when recognizing switches.
2413 (gimple_outgoing_range::edge_range_p): Check size limit.
2414 * gimple-range-edge.h (gimple_outgoing_range): Add size field.
2415 * gimple-range-gori.cc (gori_map::calculate_gori): Ignore switches
2416 that exceed the size limit.
2417 (gori_compute::gori_compute): Add initializer.
2418 * params.opt (evrp-switch-limit): New.
2419 * doc/invoke.texi: Update docs.
2421 2021-10-06 Andrew MacLeod <amacleod@redhat.com>
2423 * value-range.h (irange::set_varying): Use TYPE_MIN_VALUE and
2424 TYPE_MAX_VALUE instead of creating new trees when possible.
2426 2021-10-06 Andrew MacLeod <amacleod@redhat.com>
2428 * gimple-range-cache.cc (non_null_ref::adjust_range): Check for
2429 zero and non-zero more efficently.
2431 2021-10-06 Richard Biener <rguenther@suse.de>
2434 * dumpfile.h (TDF_GIMPLE_VAL): New.
2435 (dump_flag): Re-order and adjust TDF_* flags. Make
2436 the enum uint32_t. Use std::underlying_type in the
2438 (optgroup_flag): Likewise for the operator overloads.
2439 * tree-pretty-print.c (dump_generic_node): Wrap ADDR_EXPR
2440 in _Literal if TDF_GIMPLE_VAL.
2441 * gimple-pretty-print.c (dump_gimple_assign): Add
2442 TDF_GIMPLE_VAL to flags when dumping operands where only
2443 is_gimple_val are allowed.
2444 (dump_gimple_cond): Likewise.
2446 2021-10-06 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
2448 * gimple-isel.cc (gimple_expand_vec_cond_expr): Remove redundant if
2451 2021-10-05 qing zhao <qing.zhao@oracle.com>
2453 PR middle-end/102359
2454 * gimplify.c (gimplify_decl_expr): Not add initialization for an
2455 auto variable when it has been initialized by frontend.
2457 2021-10-05 Aldy Hernandez <aldyh@redhat.com>
2459 * tree-ssa-threadupdate.c (jt_path_registry::cancel_invalid_paths):
2462 2021-10-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
2464 * common/config/avr/avr-common.c (avr_handle_option): Mark
2465 argument as ATTRIBUTE_UNUSED.
2467 2021-10-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
2469 * config/lm32/uclinux-elf.h (LINK_GCC_C_SEQUENCE_SPEC):
2470 Undefine before redefinition.
2472 2021-10-05 Richard Biener <rguenther@suse.de>
2474 * toplev.c (no_backend): Remove global var.
2475 (process_options): Pass in no_backend, move post_options
2476 langhook call to toplev::main.
2477 (do_compile): Pass in no_backend, move process_options call
2479 (toplev::run_self_tests): Check no_backend at the caller.
2480 (toplev::main): Call post_options and process_options
2481 split out from do_compile, do self-tests only if
2482 no_backend is initialized.
2484 2021-10-05 Richard Biener <rguenther@suse.de>
2486 * tree-cfg.c (dump_function_to_file): Dump the UID of the
2487 function as part of the name when requested.
2488 * tree-pretty-print.c (dump_function_name): Dump the UID when
2489 requested and the langhook produced the actual name.
2491 2021-10-05 Richard Biener <rguenther@suse.de>
2493 PR middle-end/102587
2494 PR middle-end/102285
2495 * internal-fn.c (expand_DEFERRED_INIT): Fall back to
2496 zero-initialization as last resort, use the constant
2497 size as given by the DEFERRED_INIT argument to build
2500 2021-10-04 Marek Polacek <polacek@redhat.com>
2503 * doc/invoke.texi: Document -Warray-compare.
2505 2021-10-04 Richard Biener <rguenther@suse.de>
2507 * gimplify.c (is_var_need_auto_init): DECL_HARD_REGISTER
2508 variables are not to be initialized.
2510 2021-10-04 Richard Biener <rguenther@suse.de>
2512 * expr.h (non_mem_decl_p): Declare.
2513 (mem_ref_refers_to_non_mem_p): Likewise.
2514 * expr.c (non_mem_decl_p): Export.
2515 (mem_ref_refers_to_non_mem_p): Likewise.
2516 * internal-fn.c (expand_DEFERRED_INIT): Do not expand the LHS
2517 but check the base with mem_ref_refers_to_non_mem_p
2520 2021-10-04 Richard Biener <rguenther@suse.de>
2522 PR tree-optimization/102570
2523 * tree-ssa-sccvn.h (vn_reference_op_struct): Document
2524 we are using clique for the internal function code.
2525 * tree-ssa-sccvn.c (vn_reference_op_eq): Compare the
2526 internal function code.
2527 (print_vn_reference_ops): Print the internal function code.
2528 (vn_reference_op_compute_hash): Hash it.
2529 (copy_reference_ops_from_call): Record it.
2530 (visit_stmt): Remove the restriction around internal function
2532 (fully_constant_vn_reference_p): Use fold_const_call and handle
2534 (vn_reference_eq): Compare call return types.
2535 * tree-ssa-pre.c (create_expression_by_pieces): Handle
2536 generating calls to internal functions.
2537 (compute_avail): Remove the restriction around internal function
2540 2021-10-04 Aldy Hernandez <aldyh@redhat.com>
2542 PR tree-optimization/102560
2543 * gimple-ssa-warn-alloca.c (alloca_call_type): Remove static
2544 marker for invalid_range.
2546 2021-10-04 Richard Biener <rguenther@suse.de>
2548 PR middle-end/102587
2549 * internal-fn.c (expand_DEFERRED_INIT): Guard register
2550 initialization path an avoid initializing VLA registers
2553 2021-10-04 Eric Botcazou <ebotcazou@adacore.com>
2555 * config/rs6000/vxworks.h (TARGET_INIT_LIBFUNCS): Delete.
2557 2021-10-03 Martin Liska <mliska@suse.cz>
2559 * toplev.c (toplev::main): Check opt_index if it is a part
2562 2021-10-02 Aldy Hernandez <aldyh@redhat.com>
2564 PR tree-optimization/102563
2565 * range-op.cc (operator_lshift::op1_range): Do not clobber
2568 2021-10-02 Martin Liska <mliska@suse.cz>
2570 * toplev.c (toplev::main): save_decoded_options[0] is program
2571 name and so it should be skipped.
2573 2021-10-01 Aldy Hernandez <aldyh@redhat.com>
2575 PR tree-optimization/102546
2576 * range-op.cc (operator_lshift::op1_range): Teach range-ops that
2577 X << Y is non-zero implies X is also non-zero.
2579 2021-10-01 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
2581 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New
2583 * config/aarch64/aarch64-tune.md: Regenerate.
2584 * doc/invoke.texi: Update docs.
2586 2021-10-01 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
2588 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New
2590 * config/aarch64/aarch64-tune.md: Regenerate.
2591 * doc/invoke.texi: Update docs.
2593 2021-10-01 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
2595 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New
2597 * config/aarch64/aarch64-tune.md: Regenerate.
2598 * doc/invoke.texi: Update docs.
2600 2021-10-01 Martin Sebor <msebor@redhat.com>
2603 * doc/invoke.texi (-Waddress): Update.
2604 * gengtype.c (write_types): Avoid -Waddress.
2605 * poly-int.h (POLY_SET_COEFF): Avoid using null.
2607 2021-10-01 John David Anglin <danglin@gcc.gnu.org>
2610 * config/pa/pa.c (pa_option_override): Default to dwarf version 4
2613 2021-10-01 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
2615 * config/aarch64/aarch64.h (AARCH64_FL_V9): Update value.
2617 2021-10-01 Aldy Hernandez <aldyh@redhat.com>
2619 * gimple-range-path.cc (path_range_query::compute_ranges): Use
2621 * gimple-range-path.h (class path_range_query): Remove shadowed
2623 (path_range_query::get_path_oracle): New.
2625 2021-10-01 Jakub Jelinek <jakub@redhat.com>
2626 Richard Biener <rguenther@suse.de>
2629 * doc/invoke.texi (-fsanitize=integer-divide-by-zero): Remove
2630 INT_MIN / -1 division detection from here ...
2631 (-fsanitize=signed-integer-overflow): ... and add it here.
2633 2021-10-01 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
2635 * config/aarch64/aarch64-arches.def (AARCH64_ARCH): Added
2637 * config/aarch64/aarch64.h (AARCH64_FL_V9): New.
2638 (AARCH64_FL_FOR_ARCH9): New flags for Armv9-A.
2639 (AARCH64_ISA_V9): New ISA flag.
2640 * doc/invoke.texi: Update docs.
2642 2021-10-01 Martin Liska <mliska@suse.cz>
2644 * toplev.c (toplev::main): Save decoded optimization options.
2645 * toplev.h (save_opt_decoded_options): New.
2646 * doc/extend.texi: Be more clear about optimize and target
2649 2021-10-01 Eric Botcazou <ebotcazou@adacore.com>
2651 * explow.c: Include langhooks.h.
2652 (set_stack_check_libfunc): Build a proper function type.
2654 2021-10-01 Eric Botcazou <ebotcazou@adacore.com>
2657 * config/i386/i386.c (legitimate_pic_address_disp_p): For PE-COFF do
2658 not return true for external weak function symbols in medium model.
2660 2021-10-01 Jakub Jelinek <jakub@redhat.com>
2662 * tree.h (OMP_CLAUSE_ORDER_REPRODUCIBLE): Define.
2663 * tree-pretty-print.c (dump_omp_clause) <case OMP_CLAUSE_ORDER>: Print
2664 reproducible: for OMP_CLAUSE_ORDER_REPRODUCIBLE.
2665 * omp-general.c (omp_extract_for_data): If OMP_CLAUSE_ORDER is seen
2666 without OMP_CLAUSE_ORDER_UNCONSTRAINED, overwrite sched_kind to
2667 OMP_CLAUSE_SCHEDULE_STATIC.
2669 2021-10-01 Richard Biener <rguenther@suse.de>
2671 PR middle-end/102518
2672 * tree-inline.c (setup_one_parameter): Avoid substituting
2673 an invariant into contexts where a GIMPLE register is not valid.
2675 2021-09-30 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
2677 * config/arm/arm-cpus.in: Add Cortex-R52+ CPU.
2678 * config/arm/arm-tables.opt: Regenerate.
2679 * config/arm/arm-tune.md: Regenerate.
2680 * doc/invoke.texi: Update docs.
2682 2021-09-30 Uroš Bizjak <ubizjak@gmail.com>
2685 * config/i386/i386.md
2686 (sign_extend:WIDE (any_logic:NARROW (memory, immediate)) splitters):
2689 2021-09-30 Tobias Burnus <tobias@codesourcery.com>
2691 * omp-low.c (omp_runtime_api_call): Add omp_aligned_{,c}alloc and
2692 omp_{c,re}alloc, fix omp_alloc/omp_free.
2694 2021-09-30 Martin Liska <mliska@suse.cz>
2696 * defaults.h (ASM_OUTPUT_ASCII): Do not hide global variable
2697 asm_out_file and stream directly to MYFILE.
2699 2021-09-30 Richard Biener <rguenther@suse.de>
2701 * tree-vect-data-refs.c (vect_update_misalignment_for_peel):
2702 Restore and fix condition under which we apply npeel to
2703 the DRs misalignment value.
2705 2021-09-30 Richard Biener <rguenther@suse.de>
2707 * tree-vect-data-refs.c (vect_update_misalignment_for_peel):
2708 Fix npeel check for variable amount of peeling.
2710 2021-09-30 Aldy Hernandez <aldyh@redhat.com>
2712 * lto-wrapper.c (run_gcc): Plug snprintf overflow.
2714 2021-09-30 Aldy Hernandez <aldyh@redhat.com>
2716 * gimple-range.cc (gimple_ranger::debug): New.
2717 * gimple-range.h (class gimple_ranger): Add debug.
2719 2021-09-30 Aldy Hernandez <aldyh@redhat.com>
2721 PR middle-end/102519
2722 * tree-vrp.c (hybrid_threader::~hybrid_threader): Free m_query.
2724 2021-09-29 Indu Bhagat <indu.bhagat@oracle.com>
2727 * btfout.c (GTY): Add GTY (()) albeit for cosmetic only purpose.
2728 (btf_finalize): Empty the hash_map btf_var_ids.
2730 2021-09-29 Aldy Hernandez <aldyh@redhat.com>
2732 * tree-vrp.c (thread_through_all_blocks): Return bool.
2733 (execute_vrp_threader): Return TODO_* flags.
2734 (pass_data_vrp_threader): Set todo_flags_finish to 0.
2736 2021-09-29 Aldy Hernandez <aldyh@redhat.com>
2738 * timevar.def (TV_TREE_VRP_THREADER): New.
2739 * tree-vrp.c: Use TV_TREE_VRP_THREADER for VRP threader pass.
2741 2021-09-29 David Faust <david.faust@oracle.com>
2743 * config.gcc (bpf-*-*): Do not overwrite extra_headers.
2745 2021-09-29 Jonathan Wright <jonathan.wright@arm.com>
2747 * config/aarch64/aarch64-builtins.c (TYPES_BINOP_PPU): Define
2748 new type qualifier enum.
2749 (TYPES_TERNOP_SSSU): Likewise.
2750 (TYPES_TERNOP_PPPU): Likewise.
2751 * config/aarch64/aarch64-simd-builtins.def: Define PPU, SSU,
2752 PPPU and SSSU builtin generator macros for qtbl1 and qtbx1
2754 * config/aarch64/arm_neon.h (vqtbl1_p8): Use type-qualified
2755 builtin and remove casts.
2756 (vqtbl1_s8): Likewise.
2757 (vqtbl1q_p8): Likewise.
2758 (vqtbl1q_s8): Likewise.
2759 (vqtbx1_s8): Likewise.
2760 (vqtbx1_p8): Likewise.
2761 (vqtbx1q_s8): Likewise.
2762 (vqtbx1q_p8): Likewise.
2763 (vtbl1_p8): Likewise.
2764 (vtbl2_p8): Likewise.
2765 (vtbx2_p8): Likewise.
2767 2021-09-29 Richard Biener <rguenther@suse.de>
2769 * tree-vect-data-refs.c (vect_dr_misalign_for_aligned_access):
2771 (vect_update_misalignment_for_peel): Use it to update
2772 misaligned to the value necessary for an aligned access.
2773 (vect_get_peeling_costs_all_drs): Likewise.
2774 (vect_enhance_data_refs_alignment): Likewise.
2776 2021-09-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2778 * config/aarch64/aarch64.c (aarch64_expand_cpymem): Count number of
2779 emitted operations and adjust heuristic for code size.
2781 2021-09-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2783 * config/aarch64/aarch64.c (aarch64_expand_setmem): Count number of
2784 emitted operations and adjust heuristic for code size.
2786 2021-09-29 Jakub Jelinek <jakub@redhat.com>
2788 PR middle-end/102504
2789 * gimplify.c (gimplify_scan_omp_clauses): Use omp_check_private even
2790 in OMP_SCOPE clauses, not just on worksharing construct clauses.
2792 2021-09-28 Geng Qi <gengqi@linux.alibaba.com>
2794 * config/riscv/riscv.md (mulv<mode>4): Call gen_smul<mode>3_highpart.
2795 (<u>mulditi3): Call <su>muldi3_highpart.
2796 (<u>muldi3_highpart): Rename to <su>muldi3_highpart.
2797 (<u>mulsidi3): Call <su>mulsi3_highpart.
2798 (<u>mulsi3_highpart): Rename to <su>mulsi3_highpart.
2800 2021-09-28 Iain Sandoe <iain@sandoe.co.uk>
2802 * config/darwin.h (DSYMUTIL_SPEC): Recognize D sources.
2804 2021-09-28 Iain Sandoe <iain@sandoe.co.uk>
2806 * config/rs6000/darwin.h (FIXED_R13): Add for PPC64.
2807 (FIRST_SAVED_GP_REGNO): Save from R13 even when it is one
2810 2021-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2812 * config/aarch64/aarch64.h (AARCH64_FL_LS64): Define
2813 (AARCH64_FL_V8_7): Likewise.
2814 (AARCH64_FL_FOR_ARCH8_7): Likewise.
2815 * config/aarch64/aarch64-arches.def (armv8.7-a): Define.
2816 * config/aarch64/aarch64-option-extensions.def (ls64): Define.
2817 * doc/invoke.texi: Document the above.
2819 2021-09-28 Aldy Hernandez <aldyh@redhat.com>
2821 * dbgcnt.c (dbg_cnt_counter): New.
2822 * dbgcnt.h (dbg_cnt_counter): New.
2823 * dumpfile.c (dump_options): Add entry for TDF_THREADING.
2824 * dumpfile.h (enum dump_flag): Add TDF_THREADING.
2825 * gimple-range-path.cc (DEBUG_SOLVER): Use TDF_THREADING.
2826 * tree-ssa-threadupdate.c (dump_jump_thread_path): Dump out
2829 2021-09-28 Aldy Hernandez <aldyh@redhat.com>
2831 * cfgcleanup.c (pass_jump::execute): Check
2832 flag_expensive_optimizations.
2833 (pass_jump_after_combine::gate): Same.
2834 * doc/invoke.texi (-fthread-jumps): Enable for -O1.
2835 * opts.c (default_options_table): Enable -fthread-jumps at -O1.
2836 * tree-ssa-threadupdate.c
2837 (fwd_jt_path_registry::remove_jump_threads_including): Bail unless
2840 2021-09-28 Ilya Leoshkevich <iii@linux.ibm.com>
2842 * tree-ssa-reassoc.c (biased_names): New global.
2843 (propagate_bias_p): New function.
2844 (loop_carried_phi): Remove.
2845 (propagate_rank): Propagate bias along single uses.
2846 (get_rank): Update biased_names when needed.
2848 2021-09-28 Ilya Leoshkevich <iii@linux.ibm.com>
2850 * passes.def (pass_reassoc): Rename parameter to early_p.
2851 * tree-ssa-reassoc.c (reassoc_bias_loop_carried_phi_ranks_p):
2853 (phi_rank): Don't bias loop-carried phi ranks
2854 before vectorization pass.
2855 (execute_reassoc): Add bias_loop_carried_phi_ranks_p parameter.
2856 (pass_reassoc::pass_reassoc): Add bias_loop_carried_phi_ranks_p
2858 (pass_reassoc::set_param): Set bias_loop_carried_phi_ranks_p
2860 (pass_reassoc::execute): Pass bias_loop_carried_phi_ranks_p to
2862 (pass_reassoc::bias_loop_carried_phi_ranks_p): New member.
2864 2021-09-28 Jakub Jelinek <jakub@redhat.com>
2867 * config/i386/i386.c (standard_80387_constant_p): Don't recognize
2868 special 80387 instruction XFmode constants if flag_rounding_math.
2870 2021-09-28 Richard Biener <rguenther@suse.de>
2872 PR tree-optimization/100112
2873 * tree-ssa-sccvn.c (visit_reference_op_load): Record the
2874 referece into the hashtable twice in case last_vuse is
2875 different from the original vuse on the stmt.
2877 2021-09-28 Jakub Jelinek <jakub@redhat.com>
2879 PR middle-end/102492
2880 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't call the
2881 omp_finish_clause langhook on implicitly added OMP_CLAUSE_PRIVATE
2882 clauses on SIMD constructs.
2884 2021-09-28 Aldy Hernandez <aldyh@redhat.com>
2886 PR tree-optimization/102511
2887 * gimple-range-path.cc (path_range_query::range_on_path_entry):
2888 Return VARYING when nothing found.
2890 2021-09-28 Hongyu Wang <hongyu.wang@intel.com>
2893 * config/i386/i386.h (VALID_AVX512FP16_REG_MODE): Add
2895 (VALID_SSE2_REG_VHF_MODE): Add V4HFmode and V2HFmode.
2896 (VALID_MMX_REG_MODE): Add V4HFmode.
2897 (SSE_REG_MODE_P): Replace VALID_AVX512FP16_REG_MODE with
2898 vector mode condition.
2899 * config/i386/i386.c (classify_argument): Parse V4HF/V2HF
2901 (function_arg_32): Add V4HFmode.
2902 (function_arg_advance_32): Likewise.
2903 * config/i386/i386.md (mode): Add V4HF/V2HF.
2904 (MODE_SIZE): Likewise.
2905 * config/i386/mmx.md (MMXMODE): Add V4HF mode.
2906 (V_32): Add V2HF mode.
2907 (VHF_32_64): New mode iterator.
2908 (*mov<mode>_internal): Adjust sse alternatives to support
2910 (*mov<mode>_internal): Adjust sse alternatives to support
2912 (<insn><mode>3): New define_insn for add/sub/mul/div.
2914 2021-09-28 Aldy Hernandez <aldyh@redhat.com>
2916 * tree-ssa-threadbackward.c (pass_thread_jumps::gate): Check
2918 (pass_early_thread_jumps::gate): Same.
2919 * tree-ssa-threadedge.c (jump_threader::thread_outgoing_edges):
2920 Return if !flag_thread_jumps.
2921 * tree-ssa-threadupdate.c
2922 (jt_path_registry::register_jump_thread): Assert that
2923 flag_thread_jumps is true.
2925 2021-09-28 liuhongt <hongtao.liu@intel.com>
2928 (simplify_context::simplify_binary_operation_1): Relax
2929 condition of simplifying (vec_concat:M (vec_select op0
2930 index0)(vec_select op1 index1)) to allow different modes
2931 between op0 and M, but have same inner mode.
2933 2021-09-28 liuhongt <hongtao.liu@intel.com>
2935 * config/i386/i386-expand.c (emit_reduc_half): Handle
2936 V8HF/V16HF/V32HFmode.
2937 * config/i386/sse.md (REDUC_SSE_PLUS_MODE): Add V8HF.
2938 (REDUC_SSE_SMINMAX_MODE): Ditto.
2939 (REDUC_PLUS_MODE): Add V16HF and V32HF.
2940 (REDUC_SMINMAX_MODE): Ditto.
2942 2021-09-27 Aldy Hernandez <aldyh@redhat.com>
2944 * gimple-range-path.cc
2945 (path_range_query::precompute_ranges_in_block): Rename to...
2946 (path_range_query::compute_ranges_in_block): ...this.
2947 (path_range_query::precompute_ranges): Rename to...
2948 (path_range_query::compute_ranges): ...this.
2949 (path_range_query::precompute_relations): Rename to...
2950 (path_range_query::compute_relations): ...this.
2951 (path_range_query::precompute_phi_relations): Rename to...
2952 (path_range_query::compute_phi_relations): ...this.
2953 * gimple-range-path.h: Rename precompute* to compute*.
2954 * tree-ssa-threadbackward.c
2955 (back_threader::find_taken_edge_switch): Same.
2956 (back_threader::find_taken_edge_cond): Same.
2957 * tree-ssa-threadedge.c
2958 (hybrid_jt_simplifier::compute_ranges_from_state): Same.
2959 (hybrid_jt_state::register_equivs_stmt): Inline...
2960 * tree-ssa-threadedge.h: ...here.
2962 2021-09-27 Aldy Hernandez <aldyh@redhat.com>
2964 * tree-vrp.c (lhs_of_dominating_assert): Remove.
2965 (class vrp_jt_state): Remove.
2966 (class vrp_jt_simplifier): Remove.
2967 (vrp_jt_simplifier::simplify): Remove.
2968 (class vrp_jump_threader): Remove.
2969 (vrp_jump_threader::vrp_jump_threader): Remove.
2970 (vrp_jump_threader::~vrp_jump_threader): Remove.
2971 (vrp_jump_threader::before_dom_children): Remove.
2972 (vrp_jump_threader::after_dom_children): Remove.
2974 2021-09-27 Aldy Hernandez <aldyh@redhat.com>
2976 * passes.def (pass_vrp_threader): New.
2977 * tree-pass.h (make_pass_vrp_threader): Add make_pass_vrp_threader.
2978 * tree-ssa-threadedge.c (hybrid_jt_state::register_equivs_stmt): New.
2979 (hybrid_jt_simplifier::hybrid_jt_simplifier): New.
2980 (hybrid_jt_simplifier::simplify): New.
2981 (hybrid_jt_simplifier::compute_ranges_from_state): New.
2982 * tree-ssa-threadedge.h (class hybrid_jt_state): New.
2983 (class hybrid_jt_simplifier): New.
2984 * tree-vrp.c (execute_vrp): Remove ASSERT_EXPR based jump
2986 (class hybrid_threader): New.
2987 (hybrid_threader::hybrid_threader): New.
2988 (hybrid_threader::~hybrid_threader): New.
2989 (hybrid_threader::before_dom_children): New.
2990 (hybrid_threader::after_dom_children): New.
2991 (execute_vrp_threader): New.
2992 (class pass_vrp_threader): New.
2993 (make_pass_vrp_threader): New.
2995 2021-09-27 Martin Liska <mliska@suse.cz>
2997 * output.h (enum section_flag): New.
2998 (SECTION_FORGET): Remove.
2999 (SECTION_ENTSIZE): Make it (1UL << 8) - 1.
3000 (SECTION_STYLE_MASK): Define it based on other enum
3002 * varasm.c (switch_to_section): Remove unused handling of
3005 2021-09-27 Martin Liska <mliska@suse.cz>
3007 * common.opt: Add new variable flag_default_complex_method.
3008 * opts.c (finish_options): Handle flags related to
3009 x_flag_complex_method.
3010 * toplev.c (process_options): Remove option handling related
3011 to flag_complex_method.
3013 2021-09-27 Richard Biener <rguenther@suse.de>
3015 PR middle-end/102450
3016 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid using
3017 type_for_size, instead use int_mode_for_size.
3019 2021-09-27 Andrew Pinski <apinski@marvell.com>
3022 * gimplify.c (gimplify_save_expr): Return early
3023 if the type of val is error_mark_node.
3025 2021-09-27 Aldy Hernandez <aldyh@redhat.com>
3027 * tree-ssanames.c (ssa_name_has_boolean_range): Use
3030 2021-09-27 Aldy Hernandez <aldyh@redhat.com>
3032 * gimple-ssa-evrp-analyze.h (class evrp_range_analyzer): Remove
3033 vrp_visit_cond_stmt.
3034 * tree-ssa-dom.c (cprop_operand): Convert to range_query API.
3035 (cprop_into_stmt): Same.
3036 (dom_opt_dom_walker::optimize_stmt): Same.
3038 2021-09-27 Richard Biener <rguenther@suse.de>
3040 PR tree-optimization/97351
3041 PR tree-optimization/97352
3042 PR tree-optimization/82426
3043 * tree-vectorizer.h (dr_misalignment): Add vector type
3045 (aligned_access_p): Likewise.
3046 (known_alignment_for_access_p): Likewise.
3047 (vect_supportable_dr_alignment): Likewise.
3048 (vect_known_alignment_in_bytes): Likewise. Refactor.
3049 (DR_MISALIGNMENT): Remove.
3050 (vect_update_shared_vectype): Likewise.
3051 * tree-vect-data-refs.c (dr_misalignment): Refactor, handle
3052 a vector type with larger alignment requirement and apply
3053 the negative step adjustment here.
3054 (vect_calculate_target_alignment): Remove.
3055 (vect_compute_data_ref_alignment): Get explicit vector type
3056 argument, do not apply a negative step alignment adjustment
3058 (vect_slp_analyze_node_alignment): Re-analyze alignment
3059 when we re-visit the DR with a bigger desired alignment but
3060 keep more precise results from smaller alignments.
3061 * tree-vect-slp.c (vect_update_shared_vectype): Remove.
3062 (vect_slp_analyze_node_operations_1): Do not update the
3063 shared vector type on stmts.
3064 * tree-vect-stmts.c (vect_analyze_stmt): Push/pop the
3065 vector type of an SLP node to the representative stmt-info.
3066 (vect_transform_stmt): Likewise.
3068 2021-09-27 liuhongt <hongtao.liu@intel.com>
3071 2021-09-09 liuhongt <hongtao.liu@intel.com>
3074 * config/i386/sse.md (reduc_plus_scal_<mode>): Split to ..
3075 (reduc_plus_scal_v4sf): .. this, New define_expand.
3076 (reduc_plus_scal_v2df): .. and this, New define_expand.
3078 2021-09-26 liuhongt <hongtao.liu@intel.com>
3080 * doc/extend.texi (Half-Precision): Remove storage only
3081 description for _Float16 w/o avx512fp16.
3083 2021-09-25 Dimitar Dimitrov <dimitar@dinux.eu>
3085 * config/pru/constraints.md (Rrio): New constraint.
3086 * config/pru/predicates.md (regio_operand): New predicate.
3087 * config/pru/pru-pragma.c (pru_register_pragmas): Register
3088 the __regio_symbol address space.
3089 * config/pru/pru-protos.h (pru_symref2ioregno): Declaration.
3090 * config/pru/pru.c (pru_symref2ioregno): New helper function.
3091 (pru_legitimate_address_p): Remove.
3092 (pru_addr_space_legitimate_address_p): Use the address space
3094 (pru_nongeneric_pointer_addrspace): New helper function.
3095 (pru_insert_attributes): New function to validate __regio_symbol
3097 (TARGET_INSERT_ATTRIBUTES): New macro.
3098 (TARGET_LEGITIMATE_ADDRESS_P): Remove.
3099 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): New macro.
3100 * config/pru/pru.h (enum reg_class): Add REGIO_REGS class.
3101 * config/pru/pru.md (*regio_readsi): New pattern to read I/O
3103 (*regio_nozext_writesi): New pattern to write to I/O registers.
3104 (*regio_zext_write_r30<EQS0:mode>): Ditto.
3105 * doc/extend.texi: Document the new PRU Named Address Space.
3107 2021-09-24 Patrick Palka <ppalka@redhat.com>
3111 * real.c (encode_ieee_double): Avoid unwanted sign extension.
3112 (encode_ieee_quad): Likewise.
3114 2021-09-24 Vladimir Makarov <vmakarov@redhat.com>
3116 PR rtl-optimization/102147
3117 * ira-build.c (ira_conflict_vector_profitable_p): Make
3118 profitability calculation independent of host compiler pointer and
3121 2021-09-24 Aldy Hernandez <aldyh@redhat.com>
3123 * gimple-range-path.cc (path_range_query::path_range_query):
3124 Move debugging header...
3125 (path_range_query::precompute_ranges): ...here.
3126 (path_range_query::internal_range_of_expr): Do not call
3127 range_on_path_entry if NAME is defined in the current block.
3129 2021-09-24 Richard Biener <rguenther@suse.de>
3131 * cfghooks.c (verify_flow_info): Verify unallocated BB and
3132 edge flags are not set.
3134 2021-09-24 Aldy Hernandez <aldyh@redhat.com>
3136 * tree-ssa-threadupdate.c (jt_path_registry::cancel_invalid_paths):
3138 (jt_path_registry::register_jump_thread): Call
3139 cancel_invalid_paths.
3140 * tree-ssa-threadupdate.h (class jt_path_registry): Add
3141 cancel_invalid_paths.
3143 2021-09-24 Feng Xue <fxue@os.amperecomputing.com>
3145 PR tree-optimization/102400
3146 * tree-ssa-sccvn.c (vn_reference_insert_pieces): Initialize
3147 result_vdef to zero value.
3149 2021-09-24 Feng Xue <fxue@os.amperecomputing.com>
3151 PR tree-optimization/102451
3152 * tree-ssa-dse.c (delete_dead_or_redundant_call): Record bb of stmt
3155 2021-09-24 Hongyu Wang <hongyu.wang@intel.com>
3157 * config/i386/sse.md (cond_<insn><mode>): Extend to support
3159 (cond_mul<mode>): Likewise.
3160 (cond_div<mode>): Likewise.
3161 (cond_<code><mode>): Likewise.
3162 (cond_fma<mode>): Likewise.
3163 (cond_fms<mode>): Likewise.
3164 (cond_fnma<mode>): Likewise.
3165 (cond_fnms<mode>): Likewise.
3167 2021-09-23 Andrew MacLeod <amacleod@redhat.com>
3169 PR tree-optimization/102463
3170 * gimple-range-fold.cc (fold_using_range::relation_fold_and_or): If
3171 there is no range-ops handler, don't look for a relation.
3173 2021-09-23 Andrew MacLeod <amacleod@redhat.com>
3175 * gimple-range-cache.cc (ranger_cache::ranger_cache): Take
3176 non-executable_edge flag as parameter.
3177 * gimple-range-cache.h (ranger_cache): Adjust prototype.
3178 * gimple-range-gori.cc (gori_compute::gori_compute): Take
3179 non-executable_edge flag as parameter.
3180 (gori_compute::outgoing_edge_range_p): Check new flag.
3181 * gimple-range-gori.h (gori_compute): Adjust prototype.
3182 * gimple-range.cc (gimple_ranger::gimple_ranger): Create new flag.
3183 (gimple_ranger::range_on_edge): Check new flag.
3184 * gimple-range.h (gimple_ranger::non_executable_edge_flag): New.
3185 * gimple-ssa-evrp.c (rvrp_folder): Pass ranger flag to simplifer.
3186 (hybrid_folder::hybrid_folder): Set ranger non-executable flag value.
3187 (hybrid_folder::fold_stmt): Set flag value in the simplifer.
3188 * vr-values.c (simplify_using_ranges::set_and_propagate_unexecutable):
3189 Use not_executable flag if provided inmstead of EDGE_EXECUTABLE.
3190 (simplify_using_ranges::simplify_switch_using_ranges): Clear
3191 EDGE_EXECUTABLE like it originally did.
3192 (simplify_using_ranges::cleanup_edges_and_switches): Clear any
3193 NON_EXECUTABLE flags.
3194 (simplify_using_ranges::simplify_using_ranges): Adjust.
3195 * vr-values.h (class simplify_using_ranges): Adjust.
3196 (simplify_using_ranges::set_range_query): Add non-executable flag param.
3198 2021-09-23 Bill Schmidt <wschmidt@linux.ibm.com>
3201 * config/rs6000/rs6000-call.c (rs6000_aggregate_candidate): Detect
3202 zero-width bit fields and return indicator.
3203 (rs6000_discover_homogeneous_aggregate): Diagnose when the
3204 presence of a zero-width bit field changes parameter passing in
3207 2021-09-23 Aldy Hernandez <aldyh@redhat.com>
3209 * gimple-range-fold.cc (fold_using_range::range_of_phi):
3210 Remove dominator check.
3212 2021-09-23 Aldy Hernandez <aldyh@redhat.com>
3214 * gimple-range-path.cc (path_range_query::precompute_relations):
3215 Hoist edge calculations before using EDGE_SUCC.
3217 2021-09-23 Jonathan Wakely <jwakely@redhat.com>
3219 * configure.ac: Fix --with-multilib-list description.
3220 * configure: Regenerate.
3222 2021-09-23 Richard Biener <rguenther@suse.de>
3224 PR tree-optimization/102448
3225 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info):
3226 Clear alignment info copied from DR_PTR_INFO.
3228 2021-09-23 Hongyu Wang <hongyu.wang@intel.com>
3230 * config/i386/i386-expand.c (ix86_use_mask_cmp_p): Enable
3232 * config/i386/sse.md (sseintvecmodelower): Add HF vector modes.
3233 (<avx512>_store<mode>_mask): Extend to support HF vector modes.
3234 (vec_cmp<mode><avx512fmaskmodelower>): Likewise.
3235 (vcond_mask_<mode><avx512fmaskmodelower>): Likewise.
3236 (vcond<mode><mode>): New expander.
3237 (vcond<mode><sseintvecmodelower>): Likewise.
3238 (vcond<sseintvecmodelower><mode>): Likewise.
3239 (vcondu<mode><sseintvecmodelower>): Likewise.
3241 2021-09-23 Hongyu Wang <hongyu.wang@intel.com>
3243 * config/i386/sse.md (extend<ssePHmodelower><mode>2):
3245 (extendv4hf<mode>2): Likewise.
3246 (extendv2hfv2df2): Likewise.
3247 (trunc<mode><ssePHmodelower>2): Likewise.
3248 (avx512fp16_vcvt<castmode>2ph_<mode>): Rename to ...
3249 (trunc<mode>v4hf2): ... this, and drop constraints.
3250 (avx512fp16_vcvtpd2ph_v2df): Rename to ...
3251 (truncv2dfv2hf2): ... this, and likewise.
3253 2021-09-23 Hongyu Wang <hongyu.wang@intel.com>
3255 * config/i386/sse.md (float<floatunssuffix><mode><ssePHmodelower>2):
3257 (avx512fp16_vcvt<floatsuffix><sseintconvert>2ph_<mode>):
3259 (float<floatunssuffix><mode>v4hf2): ... this, and drop constraints.
3260 (avx512fp16_vcvt<floatsuffix>qq2ph_v2di): Rename to ...
3261 (float<floatunssuffix>v2div2hf2): ... this, and likewise.
3263 2021-09-23 Hongyu Wang <hongyu.wang@intel.com>
3265 * config/i386/i386.md (fix<fixunssuffix>_trunchf<mode>2): New expander.
3266 (fixuns_trunchfhi2): Likewise.
3267 (*fixuns_trunchfsi2zext): New define_insn.
3268 * config/i386/sse.md (ssePHmodelower): New mode_attr.
3269 (fix<fixunssuffix>_trunc<ssePHmodelower><mode>2):
3270 New expander for same element vector fix_truncate.
3271 (fix<fixunssuffix>_trunc<ssePHmodelower><mode>2):
3272 Likewise for V4HF to V4SI/V4DI fix_truncate.
3273 (fix<fixunssuffix>_truncv2hfv2di2):
3274 Likeise for V2HF to V2DI fix_truncate.
3276 2021-09-23 Hongyu Wang <hongyu.wang@intel.com>
3278 * config/i386/i386.md (<code>hf3): New expander.
3280 2021-09-23 liuhongt <hongtao.liu@intel.com>
3282 * config/i386/sse.md (FMAMODEM): extend to handle FP16.
3283 (VFH_SF_AVX512VL): Extend to handle HFmode.
3284 (VF_SF_AVX512VL): Deleted.
3286 2021-09-23 liuhongt <hongtao.liu@intel.com>
3288 * config/i386/i386.md (rinthf2): New expander.
3289 (nearbyinthf2): New expander.
3291 2021-09-23 Aldy Hernandez <aldyh@redhat.com>
3293 * tree-ssa-dom.c (class dom_jump_threader_simplifier): Rename...
3294 (class dom_jt_state): ...this and provide virtual overrides.
3295 (dom_jt_state::register_equiv): New.
3296 (class dom_jt_simplifier): Rename from
3297 dom_jump_threader_simplifier.
3298 (dom_jump_threader_simplifier::simplify): Rename...
3299 (dom_jt_simplifier::simplify): ...to this.
3300 (pass_dominator::execute): Use dom_jt_simplifier and
3302 * tree-ssa-threadedge.c (jump_threader::jump_threader):
3304 (jt_state::register_equivs_stmt): Abstract out...
3305 (jump_threader::record_temporary_equivalences_from_stmts_at_dest):
3307 (jump_threader::thread_around_empty_blocks): Update state.
3308 (jump_threader::thread_through_normal_block): Same.
3309 (jt_state::jt_state): Remove.
3310 (jt_state::push): Remove pass specific bits. Keep block vector
3312 (jt_state::append_path): New.
3313 (jt_state::pop): Remove pass specific bits.
3314 (jt_state::register_equiv): Same.
3315 (jt_state::record_ranges_from_stmt): Same.
3316 (jt_state::register_equivs_on_edge): Same. Rename...
3317 (jt_state::register_equivs_edge): ...to this.
3318 (jt_state::dump): New.
3319 (jt_state::debug): New.
3320 (jump_threader_simplifier::simplify): Remove.
3321 (jt_state::get_path): New.
3322 * tree-ssa-threadedge.h (class jt_simplifier): Make into a base
3323 class. Expose common functionality as virtual methods.
3324 (class jump_threader_simplifier): Same. Rename...
3325 (class jt_simplifier): ...to this.
3326 * tree-vrp.c (class vrp_jump_threader_simplifier): Rename...
3327 (class vrp_jt_simplifier): ...to this. Provide pass specific
3329 (class vrp_jt_state): New.
3330 (vrp_jump_threader_simplifier::simplify): Rename...
3331 (vrp_jt_simplifier::simplify): ...to this. Inline code from
3332 what used to be the base class.
3333 (vrp_jump_threader::vrp_jump_threader): Use vrp_jt_state and
3336 2021-09-22 Tobias Burnus <tobias@codesourcery.com>
3339 * doc/invoke.texi (-Wno-missing-include-dirs.): Document Fortran
3342 2021-09-22 Roger Sayle <roger@nextmovesoftware.com>
3343 Richard Biener <rguenther@suse.de>
3345 * match.pd (negation simplifications): Implement some negation
3346 folding transformations from fold-const.c's fold_negate_expr.
3347 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Add a SIMPLIFY
3348 argument, to control whether the op should be simplified prior
3349 to looking up/assigning a value number.
3350 (vn_nary_build_or_lookup): Update call to vn_nary_build_or_lookup_1.
3351 (vn_nary_simplify): Likewise.
3352 (visit_nary_op): Likewise, but when constructing a NEGATE_EXPR
3353 now call vn_nary_build_or_lookup_1 disabling simplification.
3355 2021-09-22 Jiufu Guo <guojiufu@linux.ibm.com>
3357 PR tree-optimization/102087
3358 * tree-ssa-loop-niter.c (number_of_iterations_until_wrap):
3359 Update bound/cmp/control for niter.
3361 2021-09-22 Aldy Hernandez <aldyh@redhat.com>
3363 * gimple-range-fold.cc (fold_using_range::range_of_range_op):
3364 Move check for non-empty BB here.
3365 (fur_source::register_outgoing_edges): ...from here.
3367 2021-09-22 Aldy Hernandez <aldyh@redhat.com>
3369 * gimple-range-path.cc (path_range_query::internal_range_of_expr):
3370 Remove call to improve_range_with_equivs.
3371 (path_range_query::improve_range_with_equivs): Remove
3372 * gimple-range-path.h: Remove improve_range_with_equivs.
3374 2021-09-22 dianhong xu <dianhong.xu@intel.com>
3376 * config/i386/avx512fp16intrin.h:
3377 (_mm512_mask_blend_ph): New intrinsic.
3378 (_mm512_permutex2var_ph): Ditto.
3379 (_mm512_permutexvar_ph): Ditto.
3380 * config/i386/avx512fp16vlintrin.h:
3381 (_mm256_mask_blend_ph): New intrinsic.
3382 (_mm256_permutex2var_ph): Ditto.
3383 (_mm256_permutexvar_ph): Ditto.
3384 (_mm_mask_blend_ph): Ditto.
3385 (_mm_permutex2var_ph): Ditto.
3386 (_mm_permutexvar_ph): Ditto.
3388 2021-09-22 dianhong xu <dianhong.xu@intel.com>
3390 * config/i386/avx512fp16intrin.h: Add new intrinsics.
3391 (_mm512_conj_pch): New intrinsic.
3392 (_mm512_mask_conj_pch): Ditto.
3393 (_mm512_maskz_conj_pch): Ditto.
3394 * config/i386/avx512fp16vlintrin.h: Add new intrinsics.
3395 (_mm256_conj_pch): New intrinsic.
3396 (_mm256_mask_conj_pch): Ditto.
3397 (_mm256_maskz_conj_pch): Ditto.
3398 (_mm_conj_pch): Ditto.
3399 (_mm_mask_conj_pch): Ditto.
3400 (_mm_maskz_conj_pch): Ditto.
3402 2021-09-22 dianhong xu <dianhong.xu@intel.com>
3404 * config/i386/avx512fp16intrin.h (_MM512_REDUCE_OP): New macro
3405 (_mm512_reduce_add_ph): New intrinsic.
3406 (_mm512_reduce_mul_ph): Ditto.
3407 (_mm512_reduce_min_ph): Ditto.
3408 (_mm512_reduce_max_ph): Ditto.
3409 * config/i386/avx512fp16vlintrin.h
3410 (_MM256_REDUCE_OP/_MM_REDUCE_OP): New macro.
3411 (_mm256_reduce_add_ph): New intrinsic.
3412 (_mm256_reduce_mul_ph): Ditto.
3413 (_mm256_reduce_min_ph): Ditto.
3414 (_mm256_reduce_max_ph): Ditto.
3415 (_mm_reduce_add_ph): Ditto.
3416 (_mm_reduce_mul_ph): Ditto.
3417 (_mm_reduce_min_ph): Ditto.
3418 (_mm_reduce_max_ph): Ditto.
3420 2021-09-22 dianhong xu <dianhong.xu@intel.com>
3422 * config/i386/avx512fp16intrin.h (__m512h_u, __m256h_u,
3423 __m128h_u): New typedef.
3424 (_mm512_load_ph): New intrinsic.
3425 (_mm256_load_ph): Ditto.
3426 (_mm_load_ph): Ditto.
3427 (_mm512_loadu_ph): Ditto.
3428 (_mm256_loadu_ph): Ditto.
3429 (_mm_loadu_ph): Ditto.
3430 (_mm512_store_ph): Ditto.
3431 (_mm256_store_ph): Ditto.
3432 (_mm_store_ph): Ditto.
3433 (_mm512_storeu_ph): Ditto.
3434 (_mm256_storeu_ph): Ditto.
3435 (_mm_storeu_ph): Ditto.
3436 (_mm512_abs_ph): Ditto.
3437 * config/i386/avx512fp16vlintrin.h
3438 (_mm_abs_ph): Ditto.
3439 (_mm256_abs_ph): Ditto.
3441 2021-09-22 Andreas Krebbel <krebbel@linux.ibm.com>
3443 * config/s390/tpf.md (prologue_tpf, epilogue_tpf): Add cc clobber.
3445 2021-09-22 Andreas Krebbel <krebbel@linux.ibm.com>
3448 * config/s390/s390.c (s390_expand_insv): Emit a normal move if it
3449 is actually a full copy of the source operand into the target.
3450 Don't emit a strict low part move if source and target mode match.
3452 2021-09-22 Jakub Jelinek <jakub@redhat.com>
3454 PR middle-end/102415
3455 * omp-expand.c (expand_omp_single): If region->exit is NULL,
3456 assert region->entry is GIMPLE_OMP_SCOPE region and return.
3458 2021-09-22 Jakub Jelinek <jakub@redhat.com>
3460 * tree.h (OMP_CLAUSE_ALLOCATE_ALIGN): Define.
3461 * tree.c (omp_clause_num_ops): Change number of OMP_CLAUSE_ALLOCATE
3462 arguments from 2 to 3.
3463 * tree-pretty-print.c (dump_omp_clause): Print allocator() around
3464 allocate clause allocator and print align if present.
3465 * omp-low.c (scan_sharing_clauses): Force allocate_map entry even
3466 for omp_default_mem_alloc if align modifier is present. If align
3467 modifier is present, use TREE_LIST to encode both allocator and
3469 (lower_private_allocate, lower_rec_input_clauses, create_task_copyfn):
3470 Handle align modifier on allocator clause if present.
3472 2021-09-22 liuhongt <hongtao.liu@intel.com>
3474 * config/i386/i386.md (define_attr "isa"): Add
3476 (define_attr "enabled"): Correspond fma_or_avx512vl to
3477 TARGET_FMA || TARGET_AVX512VL.
3478 * config/i386/mmx.md (fmav2sf4): Extend to AVX512 fma.
3483 2021-09-22 liuhongt <hongtao.liu@intel.com>
3485 * config/i386/i386.md (cstorehf3): New define_expand.
3487 2021-09-22 liuhongt <hongtao.liu@intel.com>
3489 * config/i386/i386.md (<rounding_insn>hf2): New expander.
3490 (sse4_1_round<mode>2): Extend from MODEF to MODEFH.
3491 * config/i386/sse.md (*sse4_1_round<ssescalarmodesuffix>):
3492 Extend from VF_128 to VFH_128.
3494 2021-09-22 liuhongt <hongtao.liu@intel.com>
3496 * config/i386/i386-features.c (i386-features.c): Handle
3498 * config/i386/i386.md (sqrthf2): New expander.
3499 (*sqrthf2): New define_insn.
3500 * config/i386/sse.md
3501 (*<sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>):
3504 2021-09-22 liuhongt <hongtao.liu@intel.com>
3506 * config/i386/avx512fp16intrin.h (_mm_mask_fcmadd_sch):
3508 (_mm_mask3_fcmadd_sch): Likewise.
3509 (_mm_maskz_fcmadd_sch): Likewise.
3510 (_mm_fcmadd_sch): Likewise.
3511 (_mm_mask_fmadd_sch): Likewise.
3512 (_mm_mask3_fmadd_sch): Likewise.
3513 (_mm_maskz_fmadd_sch): Likewise.
3514 (_mm_fmadd_sch): Likewise.
3515 (_mm_mask_fcmadd_round_sch): Likewise.
3516 (_mm_mask3_fcmadd_round_sch): Likewise.
3517 (_mm_maskz_fcmadd_round_sch): Likewise.
3518 (_mm_fcmadd_round_sch): Likewise.
3519 (_mm_mask_fmadd_round_sch): Likewise.
3520 (_mm_mask3_fmadd_round_sch): Likewise.
3521 (_mm_maskz_fmadd_round_sch): Likewise.
3522 (_mm_fmadd_round_sch): Likewise.
3523 (_mm_fcmul_sch): Likewise.
3524 (_mm_mask_fcmul_sch): Likewise.
3525 (_mm_maskz_fcmul_sch): Likewise.
3526 (_mm_fmul_sch): Likewise.
3527 (_mm_mask_fmul_sch): Likewise.
3528 (_mm_maskz_fmul_sch): Likewise.
3529 (_mm_fcmul_round_sch): Likewise.
3530 (_mm_mask_fcmul_round_sch): Likewise.
3531 (_mm_maskz_fcmul_round_sch): Likewise.
3532 (_mm_fmul_round_sch): Likewise.
3533 (_mm_mask_fmul_round_sch): Likewise.
3534 (_mm_maskz_fmul_round_sch): Likewise.
3535 * config/i386/i386-builtin.def: Add corresponding new builtins.
3536 * config/i386/sse.md
3537 (avx512fp16_fmaddcsh_v8hf_maskz<round_expand_name>): New expander.
3538 (avx512fp16_fcmaddcsh_v8hf_maskz<round_expand_name>): Ditto.
3539 (avx512fp16_fma_<complexopname>sh_v8hf<mask_scalarcz_name><round_scalarcz_name>):
3541 (avx512fp16_<complexopname>sh_v8hf_mask<round_name>): Ditto.
3542 (avx512fp16_<complexopname>sh_v8hf<mask_scalarc_name><round_scalarcz_name>):
3544 * config/i386/subst.md (mask_scalarcz_name): New.
3545 (mask_scalarc_name): Ditto.
3546 (mask_scalarc_operand3): Ditto.
3547 (mask_scalarcz_operand4): Ditto.
3548 (round_scalarcz_name): Ditto.
3549 (round_scalarc_mask_operand3): Ditto.
3550 (round_scalarcz_mask_operand4): Ditto.
3551 (round_scalarc_mask_op3): Ditto.
3552 (round_scalarcz_mask_op4): Ditto.
3553 (round_scalarcz_constraint): Ditto.
3554 (round_scalarcz_nimm_predicate): Ditto.
3555 (mask_scalarcz): Ditto.
3556 (mask_scalarc): Ditto.
3557 (round_scalarcz): Ditto.
3559 2021-09-22 liuhongt <hongtao.liu@intel.com>
3561 * config/i386/avx512fp16intrin.h (_mm512_fcmadd_pch):
3563 (_mm512_mask_fcmadd_pch): Likewise.
3564 (_mm512_mask3_fcmadd_pch): Likewise.
3565 (_mm512_maskz_fcmadd_pch): Likewise.
3566 (_mm512_fmadd_pch): Likewise.
3567 (_mm512_mask_fmadd_pch): Likewise.
3568 (_mm512_mask3_fmadd_pch): Likewise.
3569 (_mm512_maskz_fmadd_pch): Likewise.
3570 (_mm512_fcmadd_round_pch): Likewise.
3571 (_mm512_mask_fcmadd_round_pch): Likewise.
3572 (_mm512_mask3_fcmadd_round_pch): Likewise.
3573 (_mm512_maskz_fcmadd_round_pch): Likewise.
3574 (_mm512_fmadd_round_pch): Likewise.
3575 (_mm512_mask_fmadd_round_pch): Likewise.
3576 (_mm512_mask3_fmadd_round_pch): Likewise.
3577 (_mm512_maskz_fmadd_round_pch): Likewise.
3578 (_mm512_fcmul_pch): Likewise.
3579 (_mm512_mask_fcmul_pch): Likewise.
3580 (_mm512_maskz_fcmul_pch): Likewise.
3581 (_mm512_fmul_pch): Likewise.
3582 (_mm512_mask_fmul_pch): Likewise.
3583 (_mm512_maskz_fmul_pch): Likewise.
3584 (_mm512_fcmul_round_pch): Likewise.
3585 (_mm512_mask_fcmul_round_pch): Likewise.
3586 (_mm512_maskz_fcmul_round_pch): Likewise.
3587 (_mm512_fmul_round_pch): Likewise.
3588 (_mm512_mask_fmul_round_pch): Likewise.
3589 (_mm512_maskz_fmul_round_pch): Likewise.
3590 * config/i386/avx512fp16vlintrin.h (_mm_fmadd_pch):
3592 (_mm_mask_fmadd_pch): Likewise.
3593 (_mm_mask3_fmadd_pch): Likewise.
3594 (_mm_maskz_fmadd_pch): Likewise.
3595 (_mm256_fmadd_pch): Likewise.
3596 (_mm256_mask_fmadd_pch): Likewise.
3597 (_mm256_mask3_fmadd_pch): Likewise.
3598 (_mm256_maskz_fmadd_pch): Likewise.
3599 (_mm_fcmadd_pch): Likewise.
3600 (_mm_mask_fcmadd_pch): Likewise.
3601 (_mm_mask3_fcmadd_pch): Likewise.
3602 (_mm_maskz_fcmadd_pch): Likewise.
3603 (_mm256_fcmadd_pch): Likewise.
3604 (_mm256_mask_fcmadd_pch): Likewise.
3605 (_mm256_mask3_fcmadd_pch): Likewise.
3606 (_mm256_maskz_fcmadd_pch): Likewise.
3607 (_mm_fmul_pch): Likewise.
3608 (_mm_mask_fmul_pch): Likewise.
3609 (_mm_maskz_fmul_pch): Likewise.
3610 (_mm256_fmul_pch): Likewise.
3611 (_mm256_mask_fmul_pch): Likewise.
3612 (_mm256_maskz_fmul_pch): Likewise.
3613 (_mm_fcmul_pch): Likewise.
3614 (_mm_mask_fcmul_pch): Likewise.
3615 (_mm_maskz_fcmul_pch): Likewise.
3616 (_mm256_fcmul_pch): Likewise.
3617 (_mm256_mask_fcmul_pch): Likewise.
3618 (_mm256_maskz_fcmul_pch): Likewise.
3619 * config/i386/i386-builtin-types.def (V8HF_FTYPE_V8HF_V8HF_V8HF,
3620 V8HF_FTYPE_V16HF_V16HF_V16HF, V16HF_FTYPE_V16HF_V16HF_V16HF_UQI,
3621 V32HF_FTYPE_V32HF_V32HF_V32HF_INT,
3622 V32HF_FTYPE_V32HF_V32HF_V32HF_UHI_INT): Add new builtin types.
3623 * config/i386/i386-builtin.def: Add new builtins.
3624 * config/i386/i386-expand.c: Handle new builtin types.
3625 * config/i386/subst.md (SUBST_CV): New.
3626 (maskc_name): Ditto.
3627 (maskc_operand3): Ditto.
3629 (sdc_maskz_name): Ditto.
3630 (sdc_mask_op4): Ditto.
3631 (sdc_mask_op5): Ditto.
3632 (sdc_mask_mode512bit_condition): Ditto.
3634 (round_maskc_operand3): Ditto.
3635 (round_sdc_mask_operand4): Ditto.
3636 (round_maskc_op3): Ditto.
3637 (round_sdc_mask_op4): Ditto.
3638 (round_saeonly_sdc_mask_operand5): Ditto.
3639 * config/i386/sse.md (unspec): Add complex fma unspecs.
3640 (avx512fmaskcmode): New.
3641 (UNSPEC_COMPLEX_F_C_MA): Ditto.
3642 (UNSPEC_COMPLEX_F_C_MUL): Ditto.
3643 (complexopname): Ditto.
3644 (<avx512>_fmaddc_<mode>_maskz<round_expand_name>): New expander.
3645 (<avx512>_fcmaddc_<mode>_maskz<round_expand_name>): Ditto.
3646 (fma_<complexopname>_<mode><sdc_maskz_name><round_name>): New
3648 (<avx512>_<complexopname>_<mode>_mask<round_name>): Ditto.
3649 (<avx512>_<complexopname>_<mode><maskc_name><round_name>): Ditto.
3651 2021-09-22 Kewen Lin <linkw@linux.ibm.com>
3653 * config/rs6000/rs6000.opt (rs6000-density-pct-threshold,
3654 rs6000-density-size-threshold, rs6000-density-penalty,
3655 rs6000-density-load-pct-threshold,
3656 rs6000-density-load-num-threshold): New parameter.
3657 * config/rs6000/rs6000.c (rs6000_density_test): Adjust with
3658 corresponding parameters.
3660 2021-09-21 Aldy Hernandez <aldyh@redhat.com>
3662 * gimple-range-path.cc (path_range_query::defined_outside_path):
3664 (path_range_query::range_on_path_entry): New.
3665 (path_range_query::internal_range_of_expr): Resolve unknowns
3667 (path_range_query::improve_range_with_equivs): New.
3668 (path_range_query::ssa_range_in_phi): Resolve unknowns with
3670 * gimple-range-path.h (class path_range_query): Add
3671 defined_outside_path, range_on_path_entry, and
3672 improve_range_with_equivs.
3674 2021-09-21 Aldy Hernandez <aldyh@redhat.com>
3676 * gimple-range-path.cc (path_range_query::add_to_imports): New.
3677 (path_range_query::add_copies_to_imports): New.
3678 (path_range_query::precompute_ranges): Call
3679 add_copies_to_imports.
3680 * gimple-range-path.h (class path_range_query): Add prototypes
3681 for add_copies_to_imports and add_to_imports.
3683 2021-09-21 Aldy Hernandez <aldyh@redhat.com>
3685 * gimple-range-path.cc (path_range_query::range_defined_in_block):
3686 Remove useless code.
3688 2021-09-21 Aldy Hernandez <aldyh@redhat.com>
3690 * gimple-range-fold.h (class fur_source): Make oracle protected.
3691 * gimple-range-path.cc (path_range_query::path_range_query): Add
3692 resolve argument. Initialize oracle.
3693 (path_range_query::~path_range_query): Delete oracle.
3694 (path_range_query::range_of_stmt): Adapt to use relations.
3695 (path_range_query::precompute_ranges): Pre-compute relations.
3696 (class jt_fur_source): New
3697 (jt_fur_source::jt_fur_source): New.
3698 (jt_fur_source::register_relation): New.
3699 (jt_fur_source::query_relation): New.
3700 (path_range_query::precompute_relations): New.
3701 (path_range_query::precompute_phi_relations): New.
3702 * gimple-range-path.h (path_range_query): Add resolve argument.
3703 Add oracle, precompute_relations, precompute_phi_relations.
3704 * tree-ssa-threadbackward.c (back_threader::back_threader): Pass
3705 resolve argument to solver.
3707 2021-09-21 Aldy Hernandez <aldyh@redhat.com>
3709 * gimple-range-fold.cc (fold_using_range::range_of_range_op):
3710 Rename postfold_gcond_edges to register_outgoing_edges and
3712 (fold_using_range::postfold_gcond_edges): Rename...
3713 (fur_source::register_outgoing_edges): ...to this.
3714 * gimple-range-fold.h (postfold_gcond_edges): Rename to
3715 register_outgoing_edges and move to fur_source.
3717 2021-09-21 Aldy Hernandez <aldyh@redhat.com>
3719 * gimple-range-fold.cc (fold_using_range::range_of_phi): Check
3720 dom_info_available_p.
3722 2021-09-21 Aldy Hernandez <aldyh@redhat.com>
3724 * gimple-range-cache.cc (non_null_ref::non_null_ref): Use create
3725 and quick_grow_cleared instead of safe_grow_cleared.
3727 2021-09-21 Thomas Schwinge <thomas@codesourcery.com>
3730 * omp-oacc-neuter-broadcast.cc (oacc_do_neutering): Evaluate
3733 2021-09-21 Richard Earnshaw <rearnsha@arm.com>
3735 * configure.ac: Detect when the assembler supports new-style
3736 architecture extensions.
3737 * common/config/arm/arm-common.c (arm_rewrite_mcpu): Return
3738 the full CPU string if the assembler can grok it.
3739 (arm_rewrite_march): Likewise but for the architecture.
3740 * config.in: Regenerate.
3741 * configure: Regenerate.
3743 2021-09-21 Richard Biener <rguenther@suse.de>
3745 PR tree-optimization/102421
3746 * tree-vect-loop.c (vect_dissolve_slp_only_groups): Copy and
3747 adjust alignment info.
3749 2021-09-21 Kewen Lin <linkw@linux.ibm.com>
3751 * ipa-fnsummary.c (ipa_fn_summary_write): Remove inconsistent
3752 bitfield stream out.
3754 2021-09-20 Andrew MacLeod <amacleod@redhat.com>
3756 * gimple-range-fold.cc (fold_using_range::range_of_phi): Ignore
3757 undefined edges, apply an equivalence if appropriate.
3758 * gimple-range-gori.cc (gori_compute::outgoing_edge_range_p): Return
3759 UNDEFINED if EDGE_EXECUTABLE is not set.
3760 * gimple-range.cc (gimple_ranger::gimple_ranger): Set all edges
3761 as EXECUTABLE upon startup.
3762 (gimple_ranger::range_on_edge): Return UNDEFINED for edges without
3763 EDGE_EXECUTABLE set.
3764 * vr-values.c (set_and_propagate_unexecutable): New.
3765 (simplify_using_ranges::fold_cond): Call set_and_propagate.
3766 (simplify_using_ranges::simplify_switch_using_ranges): Ditto.
3767 * vr-values.h: Add prototype.
3769 2021-09-20 Andrew MacLeod <amacleod@redhat.com>
3771 * value-relation.cc (equiv_oracle::register_initial_def): New.
3772 (equiv_oracle::register_relation): Call register_initial_def.
3773 (equiv_oracle::add_equiv_to_block): New. Split register_relation.
3774 (relation_oracle::register_stmt): Check def block of PHI arguments.
3775 * value-relation.h (equiv_oracle): Add new prototypes.
3777 2021-09-20 Matthias Kretz <m.kretz@gsi.de>
3779 * cppbuiltin.c (define_builtin_macros_for_compilation_flags):
3780 Define __RECIPROCAL_MATH__, __NO_SIGNED_ZEROS__,
3781 __NO_TRAPPING_MATH__, __ASSOCIATIVE_MATH__, and
3782 __ROUNDING_MATH__ according to their corresponding flags.
3783 * doc/cpp.texi: Document __RECIPROCAL_MATH__,
3784 __NO_SIGNED_ZEROS__, __NO_TRAPPING_MATH__, __ASSOCIATIVE_MATH__,
3785 and __ROUNDING_MATH__.
3787 2021-09-20 Richard Biener <rguenther@suse.de>
3789 * tree-vect-stmts.c (vectorizable_load): Use the vectype
3792 2021-09-20 Richard Biener <rguenther@suse.de>
3794 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info):
3795 Do not compute alignment of the vectorized access here.
3797 2021-09-20 Richard Biener <rguenther@suse.de>
3799 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
3800 Store -1 for runtime alias peeling iterations.
3802 2021-09-20 Richard Biener <rguenther@suse.de>
3804 * config.gcc: Obsolete hppa[12]*-*-hpux10* and hppa[12]*-*-hpux11*.
3806 2021-09-20 Thomas Schwinge <thomas@codesourcery.com>
3808 * input.c (string_concat_db::record_string_concatenation)
3809 (string_concat_db::get_string_concatenation): Skip for
3810 'RESERVED_LOCATION_P'.
3812 2021-09-20 Richard Biener <rguenther@suse.de>
3814 PR tree-optimization/65206
3815 * tree-data-ref.h (struct data_reference): Add alt_indices,
3817 * tree-data-ref.c (free_data_ref): Release alt_indices.
3818 (dr_analyze_indices): Work on struct indices and get DR_REF as tree.
3819 (create_data_ref): Adjust.
3820 (initialize_data_dependence_relation): Split into head
3821 and tail. When the base objects fail to match up try
3822 again with pointer-based analysis of indices.
3823 * tree-vectorizer.c (vec_info_shared::check_datarefs): Do
3824 not compare the lazily computed alternate set of indices.
3826 2021-09-20 Iain Sandoe <iain@sandoe.co.uk>
3828 * gcc.c: Test for execute OK when we find the
3829 programs for assembler linker and dsymutil and those
3830 were specified at configure-time.
3832 2021-09-19 Martin Sebor <msebor@redhat.com>
3834 PR middle-end/102403
3835 * gimple-predicate-analysis.cc (predicate::init_from_control_deps):
3836 Correct a function pre/postcondition.
3838 2021-09-19 Martin Sebor <msebor@redhat.com>
3840 PR middle-end/102243
3841 * tree-ssa-strlen.c (get_range): Handle null cfun.
3843 2021-09-19 Iain Sandoe <iain@sandoe.co.uk>
3845 * config/darwin.h (LINK_COMMAND_SPEC_A): Use Darwin10
3846 unwinder shim as a convenience library.
3848 2021-09-19 Andrew Pinski <apinski@marvell.com>
3850 * doc/install.texi: Add note about
3851 binutils 2.35 is required for LTO usage.
3853 2021-09-19 Aldy Hernandez <aldyh@redhat.com>
3855 * tree-ssa-threadbackward.c
3856 (back_threader_registry::register_path): Use push_edge.
3857 * tree-ssa-threadedge.c
3858 (jump_threader::thread_around_empty_blocks): Same.
3859 (jump_threader::thread_through_normal_block): Same.
3860 (jump_threader::thread_across_edge): Same. Also, use auto_bitmap.
3862 * tree-ssa-threadupdate.c
3863 (jt_path_registry::allocate_thread_edge): Remove.
3864 (jt_path_registry::push_edge): New.
3865 (dump_jump_thread_path): Make static.
3866 * tree-ssa-threadupdate.h (allocate_thread_edge): Remove.
3869 2021-09-19 Aldy Hernandez <aldyh@redhat.com>
3871 * gimple-range-path.cc (path_range_query::path_range_query): Add
3873 (path_range_query::dump): Remove extern declaration of dump_ranger.
3874 * gimple-range-trace.cc (dump_ranger): Add DEBUG_FUNCTION marker.
3875 * gimple-range-trace.h (dump_ranger): Add prototype.
3877 2021-09-19 John Ericson <git@JohnEricson.me>
3879 * gcc.c (find_a_program): New function, factored out of...
3880 (find_a_file): Here.
3881 (execute): Use find_a_program when looking for programs rather
3884 2021-09-19 Matwey V. Kornilov <matwey.kornilov@gmail.com>
3886 * config/avr/avr-mcus.def: Add atmega324pb.
3887 * doc/avr-mmcu.texi: Corresponding changes.
3889 2021-09-19 Roger Sayle <roger@nextmovesoftware.com>
3892 * match.pd (cmp @0 REAL_CST@1): When @0 is also REAL_CST, apply
3893 the same transformations as to @1. For comparisons against NaN,
3894 don't check HONOR_SNANS but confirm that neither operand is a
3897 2021-09-19 Benjamin Peterson <benjamin@locrian.net>
3899 * attribs.c (make_unique_name): Delete.
3900 * attribs.h (make_unique_name): Delete.
3902 2021-09-19 Andrew Pinski <apinski@marvell.com>
3904 * lra-constraints.c (check_and_process_move): Assert
3905 that dclass and sclass are greater than or equal to NO_REGS.
3907 2021-09-18 Jakub Jelinek <jakub@redhat.com>
3909 * tree.h (OMP_CLAUSE_ORDER_UNCONSTRAINED): Define.
3910 * tree-pretty-print.c (dump_omp_clause): Print unconstrained:
3911 for OMP_CLAUSE_ORDER_UNCONSTRAINED.
3913 2021-09-18 liuhongt <hongtao.liu@intel.com>
3915 * config/i386/i386-features.c (remove_partial_avx_dependency):
3916 Restrict TARGET_USE_VECTOR_FP_CONVERTS and
3917 TARGET_USE_VECTOR_CONVERTS to conversion instructions only.
3919 2021-09-18 Jakub Jelinek <jakub@redhat.com>
3921 * gimplify.c (omp_default_clause): For C/C++ default({,first}private),
3922 if file/namespace scope variable doesn't have predetermined sharing,
3923 treat it as if there was default(none).
3925 2021-09-18 liuhongt <hongtao.liu@intel.com>
3927 * config/i386/avx512fp16intrin.h (_mm_fmadd_sh):
3929 (_mm_mask_fmadd_sh): Likewise.
3930 (_mm_mask3_fmadd_sh): Likewise.
3931 (_mm_maskz_fmadd_sh): Likewise.
3932 (_mm_fmadd_round_sh): Likewise.
3933 (_mm_mask_fmadd_round_sh): Likewise.
3934 (_mm_mask3_fmadd_round_sh): Likewise.
3935 (_mm_maskz_fmadd_round_sh): Likewise.
3936 (_mm_fnmadd_sh): Likewise.
3937 (_mm_mask_fnmadd_sh): Likewise.
3938 (_mm_mask3_fnmadd_sh): Likewise.
3939 (_mm_maskz_fnmadd_sh): Likewise.
3940 (_mm_fnmadd_round_sh): Likewise.
3941 (_mm_mask_fnmadd_round_sh): Likewise.
3942 (_mm_mask3_fnmadd_round_sh): Likewise.
3943 (_mm_maskz_fnmadd_round_sh): Likewise.
3944 (_mm_fmsub_sh): Likewise.
3945 (_mm_mask_fmsub_sh): Likewise.
3946 (_mm_mask3_fmsub_sh): Likewise.
3947 (_mm_maskz_fmsub_sh): Likewise.
3948 (_mm_fmsub_round_sh): Likewise.
3949 (_mm_mask_fmsub_round_sh): Likewise.
3950 (_mm_mask3_fmsub_round_sh): Likewise.
3951 (_mm_maskz_fmsub_round_sh): Likewise.
3952 (_mm_fnmsub_sh): Likewise.
3953 (_mm_mask_fnmsub_sh): Likewise.
3954 (_mm_mask3_fnmsub_sh): Likewise.
3955 (_mm_maskz_fnmsub_sh): Likewise.
3956 (_mm_fnmsub_round_sh): Likewise.
3957 (_mm_mask_fnmsub_round_sh): Likewise.
3958 (_mm_mask3_fnmsub_round_sh): Likewise.
3959 (_mm_maskz_fnmsub_round_sh): Likewise.
3960 * config/i386/i386-builtin-types.def
3961 (V8HF_FTYPE_V8HF_V8HF_V8HF_UQI_INT): New builtin type.
3962 * config/i386/i386-builtin.def: Add new builtins.
3963 * config/i386/i386-expand.c: Handle new builtin type.
3964 * config/i386/sse.md (fmai_vmfmadd_<mode><round_name>):
3965 Ajdust to support FP16.
3966 (fmai_vmfmsub_<mode><round_name>): Ditto.
3967 (fmai_vmfnmadd_<mode><round_name>): Ditto.
3968 (fmai_vmfnmsub_<mode><round_name>): Ditto.
3969 (*fmai_fmadd_<mode>): Ditto.
3970 (*fmai_fmsub_<mode>): Ditto.
3971 (*fmai_fnmadd_<mode><round_name>): Ditto.
3972 (*fmai_fnmsub_<mode><round_name>): Ditto.
3973 (avx512f_vmfmadd_<mode>_mask<round_name>): Ditto.
3974 (avx512f_vmfmadd_<mode>_mask3<round_name>): Ditto.
3975 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): Ditto.
3976 (avx512f_vmfmadd_<mode>_maskz_1<round_name>): Ditto.
3977 (*avx512f_vmfmsub_<mode>_mask<round_name>): Ditto.
3978 (avx512f_vmfmsub_<mode>_mask3<round_name>): Ditto.
3979 (*avx512f_vmfmsub_<mode>_maskz_1<round_name>): Ditto.
3980 (*avx512f_vmfnmsub_<mode>_mask<round_name>): Ditto.
3981 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): Ditto.
3982 (*avx512f_vmfnmsub_<mode>_mask<round_name>): Ditto.
3983 (*avx512f_vmfnmadd_<mode>_mask<round_name>): Renamed to ...
3984 (avx512f_vmfnmadd_<mode>_mask<round_name>) ... this, and
3985 adjust to support FP16.
3986 (avx512f_vmfnmadd_<mode>_mask3<round_name>): Ditto.
3987 (avx512f_vmfnmadd_<mode>_maskz_1<round_name>): Ditto.
3988 (avx512f_vmfnmadd_<mode>_maskz<round_expand_name>): New
3991 2021-09-18 H.J. Lu <hjl.tools@gmail.com>
3993 * config/i386/sse.md (avx512fmaskmodelower): Extend to support
3995 (maskload<mode><avx512fmaskmodelower>): Ditto.
3996 (maskstore<mode><avx512fmaskmodelower>): Ditto.
3998 2021-09-18 H.J. Lu <hjl.tools@gmail.com>
4000 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
4002 (ix86_expand_copysign): Ditto.
4003 (ix86_expand_xorsign): Ditto.
4004 * config/i386/i386.c (ix86_build_const_vector): Handle HF vector
4006 (ix86_build_signbit_mask): Ditto.
4007 (ix86_can_change_mode_class): Ditto.
4008 * config/i386/i386.md
4009 (SSEMODEF): Add HFmode.
4010 (ssevecmodef): Ditto.
4011 (<code>hf2): New define_expand.
4012 (*<code>hf2_1): New define_insn_and_split.
4013 (copysign<mode>): Extend to support HFmode under AVX512FP16.
4014 (xorsign<mode>): Ditto.
4015 * config/i386/sse.md (VFB): New mode iterator.
4016 (VFB_128_256): Ditto.
4018 (sseintvecmode2): Support HF vector mode.
4019 (<code><mode>2): Use new mode iterator.
4020 (*<code><mode>2): Ditto.
4021 (copysign<mode>3): Ditto.
4022 (xorsign<mode>3): Ditto.
4023 (<code><mode>3<mask_name>): Ditto.
4024 (<code><mode>3<mask_name>): Ditto.
4025 (<sse>_andnot<mode>3<mask_name>): Adjust for HF vector mode.
4026 (<sse>_andnot<mode>3<mask_name>): Ditto.
4027 (*<code><mode>3<mask_name>): Ditto.
4028 (*<code><mode>3<mask_name>): Ditto.
4030 2021-09-18 liuhongt <hongtao.liu@intel.com>
4032 * config/i386/avx512fp16intrin.h (_mm512_mask_fmadd_ph):
4034 (_mm512_mask3_fmadd_ph): Likewise.
4035 (_mm512_maskz_fmadd_ph): Likewise.
4036 (_mm512_fmadd_round_ph): Likewise.
4037 (_mm512_mask_fmadd_round_ph): Likewise.
4038 (_mm512_mask3_fmadd_round_ph): Likewise.
4039 (_mm512_maskz_fmadd_round_ph): Likewise.
4040 (_mm512_fnmadd_ph): Likewise.
4041 (_mm512_mask_fnmadd_ph): Likewise.
4042 (_mm512_mask3_fnmadd_ph): Likewise.
4043 (_mm512_maskz_fnmadd_ph): Likewise.
4044 (_mm512_fnmadd_round_ph): Likewise.
4045 (_mm512_mask_fnmadd_round_ph): Likewise.
4046 (_mm512_mask3_fnmadd_round_ph): Likewise.
4047 (_mm512_maskz_fnmadd_round_ph): Likewise.
4048 (_mm512_fmsub_ph): Likewise.
4049 (_mm512_mask_fmsub_ph): Likewise.
4050 (_mm512_mask3_fmsub_ph): Likewise.
4051 (_mm512_maskz_fmsub_ph): Likewise.
4052 (_mm512_fmsub_round_ph): Likewise.
4053 (_mm512_mask_fmsub_round_ph): Likewise.
4054 (_mm512_mask3_fmsub_round_ph): Likewise.
4055 (_mm512_maskz_fmsub_round_ph): Likewise.
4056 (_mm512_fnmsub_ph): Likewise.
4057 (_mm512_mask_fnmsub_ph): Likewise.
4058 (_mm512_mask3_fnmsub_ph): Likewise.
4059 (_mm512_maskz_fnmsub_ph): Likewise.
4060 (_mm512_fnmsub_round_ph): Likewise.
4061 (_mm512_mask_fnmsub_round_ph): Likewise.
4062 (_mm512_mask3_fnmsub_round_ph): Likewise.
4063 (_mm512_maskz_fnmsub_round_ph): Likewise.
4064 * config/i386/avx512fp16vlintrin.h (_mm256_fmadd_ph):
4066 (_mm256_mask_fmadd_ph): Likewise.
4067 (_mm256_mask3_fmadd_ph): Likewise.
4068 (_mm256_maskz_fmadd_ph): Likewise.
4069 (_mm_fmadd_ph): Likewise.
4070 (_mm_mask_fmadd_ph): Likewise.
4071 (_mm_mask3_fmadd_ph): Likewise.
4072 (_mm_maskz_fmadd_ph): Likewise.
4073 (_mm256_fnmadd_ph): Likewise.
4074 (_mm256_mask_fnmadd_ph): Likewise.
4075 (_mm256_mask3_fnmadd_ph): Likewise.
4076 (_mm256_maskz_fnmadd_ph): Likewise.
4077 (_mm_fnmadd_ph): Likewise.
4078 (_mm_mask_fnmadd_ph): Likewise.
4079 (_mm_mask3_fnmadd_ph): Likewise.
4080 (_mm_maskz_fnmadd_ph): Likewise.
4081 (_mm256_fmsub_ph): Likewise.
4082 (_mm256_mask_fmsub_ph): Likewise.
4083 (_mm256_mask3_fmsub_ph): Likewise.
4084 (_mm256_maskz_fmsub_ph): Likewise.
4085 (_mm_fmsub_ph): Likewise.
4086 (_mm_mask_fmsub_ph): Likewise.
4087 (_mm_mask3_fmsub_ph): Likewise.
4088 (_mm_maskz_fmsub_ph): Likewise.
4089 (_mm256_fnmsub_ph): Likewise.
4090 (_mm256_mask_fnmsub_ph): Likewise.
4091 (_mm256_mask3_fnmsub_ph): Likewise.
4092 (_mm256_maskz_fnmsub_ph): Likewise.
4093 (_mm_fnmsub_ph): Likewise.
4094 (_mm_mask_fnmsub_ph): Likewise.
4095 (_mm_mask3_fnmsub_ph): Likewise.
4096 (_mm_maskz_fnmsub_ph): Likewise.
4097 * config/i386/i386-builtin.def: Add corresponding new builtins.
4098 * config/i386/sse.md
4099 (<avx512>_fmadd_<mode>_maskz<round_expand_name>): Adjust to
4100 support HF vector modes.
4101 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
4103 (*<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name>_bcst_1): Ditto.
4104 (*<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name>_bcst_2): Ditto.
4105 (*<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name>_bcst_3): Ditto.
4106 (<avx512>_fmadd_<mode>_mask<round_name>): Ditto.
4107 (<avx512>_fmadd_<mode>_mask3<round_name>): Ditto.
4108 (<avx512>_fmsub_<mode>_maskz<round_expand_name>): Ditto.
4109 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>):
4111 (*<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name>_bcst_1): Ditto.
4112 (*<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name>_bcst_2): Ditto.
4113 (*<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name>_bcst_3): Ditto.
4114 (<avx512>_fmsub_<mode>_mask<round_name>): Ditto.
4115 (<avx512>_fmsub_<mode>_mask3<round_name>): Ditto.
4116 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>):
4118 (*<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name>_bcst_1): Ditto.
4119 (*<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name>_bcst_2): Ditto.
4120 (*<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name>_bcst_3): Ditto.
4121 (<avx512>_fnmadd_<mode>_mask<round_name>): Ditto.
4122 (<avx512>_fnmadd_<mode>_mask3<round_name>): Ditto.
4123 (<avx512>_fnmsub_<mode>_maskz<round_expand_name>): Ditto.
4124 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>):
4126 (*<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name>_bcst_1): Ditto.
4127 (*<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name>_bcst_2): Ditto.
4128 (*<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name>_bcst_3): Ditto.
4129 (<avx512>_fnmsub_<mode>_mask<round_name>): Ditto.
4130 (<avx512>_fnmsub_<mode>_mask3<round_name>): Ditto.
4132 2021-09-18 liuhongt <hongtao.liu@intel.com>
4134 * config/i386/avx512fp16intrin.h (_mm512_fmaddsub_ph):
4136 (_mm512_mask_fmaddsub_ph): Likewise.
4137 (_mm512_mask3_fmaddsub_ph): Likewise.
4138 (_mm512_maskz_fmaddsub_ph): Likewise.
4139 (_mm512_fmaddsub_round_ph): Likewise.
4140 (_mm512_mask_fmaddsub_round_ph): Likewise.
4141 (_mm512_mask3_fmaddsub_round_ph): Likewise.
4142 (_mm512_maskz_fmaddsub_round_ph): Likewise.
4143 (_mm512_mask_fmsubadd_ph): Likewise.
4144 (_mm512_mask3_fmsubadd_ph): Likewise.
4145 (_mm512_maskz_fmsubadd_ph): Likewise.
4146 (_mm512_fmsubadd_round_ph): Likewise.
4147 (_mm512_mask_fmsubadd_round_ph): Likewise.
4148 (_mm512_mask3_fmsubadd_round_ph): Likewise.
4149 (_mm512_maskz_fmsubadd_round_ph): Likewise.
4150 * config/i386/avx512fp16vlintrin.h (_mm256_fmaddsub_ph):
4152 (_mm256_mask_fmaddsub_ph): Likewise.
4153 (_mm256_mask3_fmaddsub_ph): Likewise.
4154 (_mm256_maskz_fmaddsub_ph): Likewise.
4155 (_mm_fmaddsub_ph): Likewise.
4156 (_mm_mask_fmaddsub_ph): Likewise.
4157 (_mm_mask3_fmaddsub_ph): Likewise.
4158 (_mm_maskz_fmaddsub_ph): Likewise.
4159 (_mm256_fmsubadd_ph): Likewise.
4160 (_mm256_mask_fmsubadd_ph): Likewise.
4161 (_mm256_mask3_fmsubadd_ph): Likewise.
4162 (_mm256_maskz_fmsubadd_ph): Likewise.
4163 (_mm_fmsubadd_ph): Likewise.
4164 (_mm_mask_fmsubadd_ph): Likewise.
4165 (_mm_mask3_fmsubadd_ph): Likewise.
4166 (_mm_maskz_fmsubadd_ph): Likewise.
4167 * config/i386/i386-builtin.def: Add corresponding new builtins.
4168 * config/i386/sse.md (VFH_SF_AVX512VL): New mode iterator.
4169 * (<avx512>_fmsubadd_<mode>_maskz<round_expand_name>): New expander.
4170 * (<avx512>_fmaddsub_<mode>_maskz<round_expand_name>): Use
4172 * (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
4174 * (<avx512>_fmaddsub_<mode>_mask<round_name>): Ditto.
4175 * (<avx512>_fmaddsub_<mode>_mask3<round_name>): Ditto.
4176 * (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
4178 * (<avx512>_fmsubadd_<mode>_mask<round_name>): Ditto.
4179 * (<avx512>_fmsubadd_<mode>_mask3<round_name>): Ditto.
4181 2021-09-18 liuhongt <hongtao.liu@intel.com>
4184 * config/i386/i386.c (ix86_print_operand): Handle
4185 V8HF/V16HF/V32HFmode.
4186 * config/i386/i386.h (VALID_BCST_MODE_P): Add HFmode.
4187 * config/i386/sse.md (avx512bcst): Remove.
4189 2021-09-17 Martin Sebor <msebor@redhat.com>
4191 * Makefile.in (OBJS): Add gimple-predicate-analysis.o.
4192 * tree-ssa-uninit.c (max_phi_args): Move to gimple-predicate-analysis.
4193 (MASK_SET_BIT, MASK_TEST_BIT, MASK_EMPTY): Same.
4194 (check_defs): Add comment.
4195 (can_skip_redundant_opnd): Update comment.
4196 (compute_uninit_opnds_pos): Adjust to namespace change.
4197 (find_pdom): Move to gimple-predicate-analysis.cc.
4199 (struct uninit_undef_val_t): New.
4200 (is_non_loop_exit_postdominating): Move to gimple-predicate-analysis.cc.
4201 (find_control_equiv_block): Same.
4202 (MAX_NUM_CHAINS, MAX_CHAIN_LEN, MAX_POSTDOM_CHECK): Same.
4203 (MAX_SWITCH_CASES): Same.
4204 (compute_control_dep_chain): Same.
4205 (find_uninit_use): Use predicate analyzer.
4206 (struct pred_info): Move to gimple-predicate-analysis.
4207 (convert_control_dep_chain_into_preds): Same.
4208 (find_predicates): Same.
4209 (collect_phi_def_edges): Same.
4210 (warn_uninitialized_phi): Use predicate analyzer.
4211 (find_def_preds): Move to gimple-predicate-analysis.
4212 (dump_pred_info): Same.
4213 (dump_pred_chain): Same.
4214 (dump_predicates): Same.
4215 (destroy_predicate_vecs): Remove.
4216 (execute_late_warn_uninitialized): New.
4217 (get_cmp_code): Move to gimple-predicate-analysis.
4218 (is_value_included_in): Same.
4219 (value_sat_pred_p): Same.
4220 (find_matching_predicate_in_rest_chains): Same.
4221 (is_use_properly_guarded): Same.
4222 (prune_uninit_phi_opnds): Same.
4223 (find_var_cmp_const): Same.
4224 (use_pred_not_overlap_with_undef_path_pred): Same.
4225 (pred_equal_p): Same.
4226 (is_neq_relop_p): Same.
4227 (is_neq_zero_form_p): Same.
4228 (pred_expr_equal_p): Same.
4229 (is_pred_expr_subset_of): Same.
4230 (is_pred_chain_subset_of): Same.
4231 (is_included_in): Same.
4232 (is_superset_of): Same.
4234 (simplify_pred): Same.
4235 (simplify_preds_2): Same.
4236 (simplify_preds_3): Same.
4237 (simplify_preds_4): Same.
4238 (simplify_preds): Same.
4240 (push_to_worklist): Same.
4241 (get_pred_info_from_cmp): Same.
4242 (is_degenerated_phi): Same.
4243 (normalize_one_pred_1): Same.
4244 (normalize_one_pred): Same.
4245 (normalize_one_pred_chain): Same.
4246 (normalize_preds): Same.
4247 (can_one_predicate_be_invalidated_p): Same.
4248 (can_chain_union_be_invalidated_p): Same.
4249 (uninit_uses_cannot_happen): Same.
4250 (pass_late_warn_uninitialized::execute): Define.
4251 * gimple-predicate-analysis.cc: New file.
4252 * gimple-predicate-analysis.h: New file.
4254 2021-09-17 Julian Brown <julian@codesourcery.com>
4256 * config/gcn/gcn.c (gimple.h): Include.
4257 (gcn_fork_join): Emit barrier for worker-level joins.
4258 * omp-oacc-neuter-broadcast.cc (find_local_vars_to_propagate): Add
4259 writes_gang_private bitmap parameter. Set bit for blocks
4260 containing gang-private variable writes.
4261 (worker_single_simple): Don't emit barrier after predicated block.
4262 (worker_single_copy): Don't emit barrier if we're not broadcasting
4263 anything and the block contains no gang-private writes.
4264 (neuter_worker_single): Don't predicate blocks that only contain
4265 NOPs or internal marker functions. Pass has_gang_private_write
4266 argument to worker_single_copy.
4267 (oacc_do_neutering): Add writes_gang_private bitmap handling.
4269 2021-09-17 Julian Brown <julian@codesourcery.com>
4271 * config/gcn/gcn-protos.h
4272 (gcn_goacc_create_worker_broadcast_record): Update prototype.
4273 * config/gcn/gcn-tree.c (gcn_goacc_get_worker_red_decl): Use
4274 preallocated block of LDS memory. Do not cache/share decls for
4275 reduction temporaries between invocations.
4276 (gcn_goacc_reduction_teardown): Unshare VAR on second use.
4277 (gcn_goacc_create_worker_broadcast_record): Add OFFSET parameter
4278 and return temporary LDS space at that offset. Return pointer in
4280 * config/gcn/gcn.c (acc_lds_size, gang_private_hwm, lds_allocs):
4282 (ACC_LDS_SIZE): Define as acc_lds_size.
4283 (gcn_init_machine_status): Don't initialise lds_allocated,
4284 lds_allocs, reduc_decls fields of machine function struct.
4285 (gcn_option_override): Handle default size for gang-private
4286 variables and -mgang-private-size option.
4287 (gcn_expand_prologue): Use LDS_SIZE instead of LDS_SIZE-1 when
4288 initialising M0_REG.
4289 (gcn_shared_mem_layout): New function.
4290 (gcn_print_lds_decl): Update comment. Use global lds_allocs map and
4291 gang_private_hwm variable.
4292 (TARGET_GOACC_SHARED_MEM_LAYOUT): Define target hook.
4293 * config/gcn/gcn.h (machine_function): Remove lds_allocated,
4294 lds_allocs, reduc_decls. Add reduction_base, reduction_limit.
4295 * config/gcn/gcn.opt (gang_private_size_opt): New global.
4296 (mgang-private-size=): New option.
4297 * doc/tm.texi.in (TARGET_GOACC_SHARED_MEM_LAYOUT): Place
4299 * doc/tm.texi: Regenerate.
4300 * omp-oacc-neuter-broadcast.cc (targhooks.h, diagnostic-core.h):
4302 (build_sender_ref): Handle sender_decl being pointer.
4303 (worker_single_copy): Add PLACEMENT and ISOLATE_BROADCASTS
4304 parameters. Pass placement argument to
4305 create_worker_broadcast_record hook invocations. Handle
4306 sender_decl being pointer and isolate_broadcasts inserting extra
4308 (blk_offset_map_t): Add typedef.
4309 (neuter_worker_single): Add BLK_OFFSET_MAP parameter. Pass
4310 preallocated range to worker_single_copy call.
4311 (dfs_broadcast_reachable_1): New function.
4312 (idx_decl_pair_t, used_range_vec_t): New typedefs.
4313 (sort_size_descending): New function.
4314 (addr_range): New class.
4315 (splay_tree_compare_addr_range, splay_tree_free_key)
4316 (first_fit_range, merge_ranges_1, merge_ranges): New functions.
4317 (execute_omp_oacc_neuter_broadcast): Rename to...
4318 (oacc_do_neutering): ... this. Add BOUNDS_LO, BOUNDS_HI
4319 parameters. Arrange layout of shared memory for broadcast
4321 (execute_omp_oacc_neuter_broadcast): New function.
4322 (pass_omp_oacc_neuter_broadcast::gate): Remove num_workers==1
4323 handling from here. Enable pass for all OpenACC routines in order
4324 to call shared memory-layout hook.
4325 * target.def (create_worker_broadcast_record): Add OFFSET
4327 (shared_mem_layout): New hook.
4329 2021-09-17 Julian Brown <julian@codesourcery.com>
4330 Thomas Schwinge <thomas@codesourcery.com>
4332 * omp-oacc-neuter-broadcast.cc
4333 (pass_omp_oacc_neuter_broadcast::gate): Disable if num_workers is
4335 (execute_omp_oacc_neuter_broadcast): Adjust.
4337 2021-09-17 Andrew MacLeod <amacleod@redhat.com>
4339 * value-relation.cc (class equiv_chain): Move to header file.
4340 (path_oracle::path_oracle): New.
4341 (path_oracle::~path_oracle): New.
4342 (path_oracle::register_relation): New.
4343 (path_oracle::query_relation): New.
4344 (path_oracle::reset_path): New.
4345 (path_oracle::dump): New.
4346 * value-relation.h (class equiv_chain): Move to here.
4347 (class path_oracle): New.
4349 2021-09-17 Andrew MacLeod <amacleod@redhat.com>
4351 * gimple-range-cache.cc (ranger_cache::ranger_cache): Create a DOM
4353 * gimple-range-fold.cc (fur_depend::register_relation): Use
4354 register_stmt/edge routines.
4355 * value-relation.cc (equiv_chain::find): Relocate from equiv_oracle.
4356 (equiv_oracle::equiv_oracle): Create self equivalence cache.
4357 (equiv_oracle::~equiv_oracle): Release same.
4358 (equiv_oracle::equiv_set): Return entry from self equiv cache if there
4359 are no equivalences.
4360 (equiv_oracle::find_equiv_block): Move list find to equiv_chain.
4361 (equiv_oracle::register_relation): Rename from register_equiv.
4362 (relation_chain_head::find_relation): Relocate from dom_oracle.
4363 (relation_oracle::register_stmt): New.
4364 (relation_oracle::register_edge): New.
4365 (dom_oracle::*): Rename from relation_oracle.
4366 (dom_oracle::register_relation): Adjust to call equiv_oracle.
4367 (dom_oracle::set_one_relation): Split from register_relation.
4368 (dom_oracle::register_transitives): Consolidate 2 methods.
4369 (dom_oracle::find_relation_block): Move core to relation_chain.
4370 (dom_oracle::query_relation): Rename from find_relation_dom and adjust.
4371 * value-relation.h (class relation_oracle): New pure virtual base.
4372 (class equiv_oracle): Inherit from relation_oracle and adjust.
4373 (class dom_oracle): Rename from old relation_oracle and adjust.
4375 2021-09-17 Martin Sebor <msebor@redhat.com>
4377 PR middle-end/102200
4378 * pointer-query.cc (access_ref::inform_access): Handle MIN/MAX_EXPR.
4379 (handle_min_max_size): Change argument. Store original SSA_NAME for
4380 operands to potentially distinct (sub)objects.
4381 (compute_objsize_r): Adjust call to the above.
4383 2021-09-17 Bill Schmidt <wschmidt@linux.ibm.com>
4385 * config/rs6000/rs6000.c (rs6000-builtins.h): New include.
4386 (rs6000_new_builtin_vectorized_function): New function.
4387 (rs6000_new_builtin_md_vectorized_function): Likewise.
4388 (rs6000_builtin_vectorized_function): Call
4389 rs6000_new_builtin_vectorized_function.
4390 (rs6000_builtin_md_vectorized_function): Call
4391 rs6000_new_builtin_md_vectorized_function.
4393 2021-09-17 Bill Schmidt <wschmidt@linux.ibm.com>
4395 * config/rs6000/rs6000-builtin-new.def (ASSEMBLE_ACC): Add mmaint flag.
4396 (ASSEMBLE_PAIR): Likewise.
4397 (BUILD_ACC): Likewise.
4398 (DISASSEMBLE_ACC): Likewise.
4399 (DISASSEMBLE_PAIR): Likewise.
4400 (PMXVBF16GER2): Likewise.
4401 (PMXVBF16GER2NN): Likewise.
4402 (PMXVBF16GER2NP): Likewise.
4403 (PMXVBF16GER2PN): Likewise.
4404 (PMXVBF16GER2PP): Likewise.
4405 (PMXVF16GER2): Likewise.
4406 (PMXVF16GER2NN): Likewise.
4407 (PMXVF16GER2NP): Likewise.
4408 (PMXVF16GER2PN): Likewise.
4409 (PMXVF16GER2PP): Likewise.
4410 (PMXVF32GER): Likewise.
4411 (PMXVF32GERNN): Likewise.
4412 (PMXVF32GERNP): Likewise.
4413 (PMXVF32GERPN): Likewise.
4414 (PMXVF32GERPP): Likewise.
4415 (PMXVF64GER): Likewise.
4416 (PMXVF64GERNN): Likewise.
4417 (PMXVF64GERNP): Likewise.
4418 (PMXVF64GERPN): Likewise.
4419 (PMXVF64GERPP): Likewise.
4420 (PMXVI16GER2): Likewise.
4421 (PMXVI16GER2PP): Likewise.
4422 (PMXVI16GER2S): Likewise.
4423 (PMXVI16GER2SPP): Likewise.
4424 (PMXVI4GER8): Likewise.
4425 (PMXVI4GER8PP): Likewise.
4426 (PMXVI8GER4): Likewise.
4427 (PMXVI8GER4PP): Likewise.
4428 (PMXVI8GER4SPP): Likewise.
4429 (XVBF16GER2): Likewise.
4430 (XVBF16GER2NN): Likewise.
4431 (XVBF16GER2NP): Likewise.
4432 (XVBF16GER2PN): Likewise.
4433 (XVBF16GER2PP): Likewise.
4434 (XVF16GER2): Likewise.
4435 (XVF16GER2NN): Likewise.
4436 (XVF16GER2NP): Likewise.
4437 (XVF16GER2PN): Likewise.
4438 (XVF16GER2PP): Likewise.
4439 (XVF32GER): Likewise.
4440 (XVF32GERNN): Likewise.
4441 (XVF32GERNP): Likewise.
4442 (XVF32GERPN): Likewise.
4443 (XVF32GERPP): Likewise.
4444 (XVF64GER): Likewise.
4445 (XVF64GERNN): Likewise.
4446 (XVF64GERNP): Likewise.
4447 (XVF64GERPN): Likewise.
4448 (XVF64GERPP): Likewise.
4449 (XVI16GER2): Likewise.
4450 (XVI16GER2PP): Likewise.
4451 (XVI16GER2S): Likewise.
4452 (XVI16GER2SPP): Likewise.
4453 (XVI4GER8): Likewise.
4454 (XVI4GER8PP): Likewise.
4455 (XVI8GER4): Likewise.
4456 (XVI8GER4PP): Likewise.
4457 (XVI8GER4SPP): Likewise.
4458 (XXMFACC): Likewise.
4459 (XXMTACC): Likewise.
4460 (XXSETACCZ): Likewise.
4461 (ASSEMBLE_PAIR_V): Likewise.
4462 (BUILD_PAIR): Likewise.
4463 (DISASSEMBLE_PAIR_V): Likewise.
4466 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_new_mma_builtin):
4467 Handle RS6000_BIF_LXVP and RS6000_BIF_STXVP.
4468 * config/rs6000/rs6000-gen-builtins.c (attrinfo): Add ismmaint.
4469 (parse_bif_attrs): Handle ismmaint.
4470 (write_decls): Add bif_mmaint_bit and bif_is_mmaint.
4471 (write_bif_static_init): Handle ismmaint.
4473 2021-09-17 Bill Schmidt <wschmidt@linux.ibm.com>
4475 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_new_builtin): New
4477 (rs6000_gimple_fold_builtin): Call rs6000_gimple_fold_new_builtin.
4478 (rs6000_new_builtin_valid_without_lhs): New function.
4479 (rs6000_gimple_fold_new_mma_builtin): Likewise.
4480 (rs6000_gimple_fold_new_builtin): Likewise.
4482 2021-09-17 Thomas Schwinge <thomas@codesourcery.com>
4484 * hash-table.h (hash_table<Descriptor, Lazy, Allocator>::expand):
4485 Destruct stale Value objects.
4486 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor_expand):
4489 2021-09-17 Roger Sayle <roger@nextmovesoftware.com>
4492 * match.pd (shift optimizations): Disable recent sign-changing
4493 optimization for shifts by zero, these will be folded later.
4495 2021-09-17 Bill Schmidt <wschmidt@linux.ibm.com>
4497 * config/rs6000/rs6000-builtin-new.def (__builtin_mffsl): Move from
4498 [power9] to [always].
4500 2021-09-17 Richard Biener <rguenther@suse.de>
4502 * tree-vect-stmts.c (vectorizable_load): Do not frob
4505 2021-09-17 H.J. Lu <hjl.tools@gmail.com>
4507 * config/i386/i386-features.c (remove_partial_avx_dependency):
4508 Also check TARGET_SSE_PARTIAL_REG_FP_CONVERTS_DEPENDENCY and
4509 and TARGET_SSE_PARTIAL_REG_CONVERTS_DEPENDENCY before generating
4511 * config/i386/i386.h (TARGET_SSE_PARTIAL_REG_FP_CONVERTS_DEPENDENCY):
4513 (TARGET_SSE_PARTIAL_REG_CONVERTS_DEPENDENCY): Likewise.
4514 * config/i386/i386.md (SSE FP to FP splitters): Replace
4515 TARGET_SSE_PARTIAL_REG_DEPENDENCY with
4516 TARGET_SSE_PARTIAL_REG_FP_CONVERTS_DEPENDENCY.
4517 (SSE INT to FP splitter): Replace TARGET_SSE_PARTIAL_REG_DEPENDENCY
4518 with TARGET_SSE_PARTIAL_REG_CONVERTS_DEPENDENCY.
4519 * config/i386/x86-tune.def
4520 (X86_TUNE_SSE_PARTIAL_REG_FP_CONVERTS_DEPENDENCY): New.
4521 (X86_TUNE_SSE_PARTIAL_REG_CONVERTS_DEPENDENCY): Likewise.
4523 2021-09-17 H.J. Lu <hjl.tools@gmail.com>
4526 * config/i386/i386-features.c (remove_partial_avx_dependency):
4527 Check TARGET_USE_VECTOR_FP_CONVERTS and TARGET_USE_VECTOR_CONVERTS
4528 before generating vxorps.
4530 2021-09-17 H.J. Lu <hjl.tools@gmail.com>
4532 * config/i386/i386-options.c (processor_cost_table): Use
4533 tremont_cost for Tremont.
4534 * config/i386/x86-tune-costs.h (tremont_memcpy): New.
4535 (tremont_memset): Likewise.
4536 (tremont_cost): Likewise.
4537 * config/i386/x86-tune.def (X86_TUNE_PREFER_KNOWN_REP_MOVSB_STOSB):
4540 2021-09-17 H.J. Lu <hjl.tools@gmail.com>
4542 * common/config/i386/i386-common.c: Use Haswell scheduling model
4544 * config/i386/i386.c (ix86_sched_init_global): Prepare for Tremont
4546 * config/i386/x86-tune-sched.c (ix86_issue_rate): Change Tremont
4548 (ix86_adjust_cost): Handle Tremont.
4549 * config/i386/x86-tune.def (X86_TUNE_SSE_PARTIAL_REG_DEPENDENCY):
4551 (X86_TUNE_USE_LEAVE): Likewise.
4552 (X86_TUNE_PUSH_MEMORY): Likewise.
4553 (X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Likewise.
4554 (X86_TUNE_USE_CLTD): Likewise.
4555 (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI): Likewise.
4556 (X86_TUNE_AVOID_MFENCE): Likewise.
4557 (X86_TUNE_SSE_TYPELESS_STORES): Likewise.
4558 (X86_TUNE_SSE_LOAD0_BY_PXOR): Likewise.
4559 (X86_TUNE_ACCUMULATE_OUTGOING_ARGS): Disable for Tremont.
4560 (X86_TUNE_FOUR_JUMP_LIMIT): Likewise.
4561 (X86_TUNE_OPT_AGU): Likewise.
4562 (X86_TUNE_AVOID_LEA_FOR_ADDR): Likewise.
4563 (X86_TUNE_AVOID_MEM_OPND_FOR_CMOVE): Likewise.
4564 (X86_TUNE_EXPAND_ABS): Likewise.
4565 (X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS): Likewise.
4566 (X86_TUNE_SLOW_PSHUFB): Likewise.
4568 2021-09-17 Eric Botcazou <ebotcazou@adacore.com>
4570 PR rtl-optimization/102306
4571 * combine.c (try_combine): Abort the combination if we are about to
4572 duplicate volatile references.
4574 2021-09-17 liuhongt <hongtao.liu@intel.com>
4576 * config/i386/avx512fp16intrin.h (_mm_undefined_ph):
4578 (_mm256_undefined_ph): Likewise.
4579 (_mm512_undefined_ph): Likewise.
4580 (_mm_cvtsh_h): Likewise.
4581 (_mm256_cvtsh_h): Likewise.
4582 (_mm512_cvtsh_h): Likewise.
4583 (_mm512_castph_ps): Likewise.
4584 (_mm512_castph_pd): Likewise.
4585 (_mm512_castph_si512): Likewise.
4586 (_mm512_castph512_ph128): Likewise.
4587 (_mm512_castph512_ph256): Likewise.
4588 (_mm512_castph128_ph512): Likewise.
4589 (_mm512_castph256_ph512): Likewise.
4590 (_mm512_zextph128_ph512): Likewise.
4591 (_mm512_zextph256_ph512): Likewise.
4592 (_mm512_castps_ph): Likewise.
4593 (_mm512_castpd_ph): Likewise.
4594 (_mm512_castsi512_ph): Likewise.
4595 * config/i386/avx512fp16vlintrin.h (_mm_castph_ps):
4597 (_mm256_castph_ps): Likewise.
4598 (_mm_castph_pd): Likewise.
4599 (_mm256_castph_pd): Likewise.
4600 (_mm_castph_si128): Likewise.
4601 (_mm256_castph_si256): Likewise.
4602 (_mm_castps_ph): Likewise.
4603 (_mm256_castps_ph): Likewise.
4604 (_mm_castpd_ph): Likewise.
4605 (_mm256_castpd_ph): Likewise.
4606 (_mm_castsi128_ph): Likewise.
4607 (_mm256_castsi256_ph): Likewise.
4608 (_mm256_castph256_ph128): Likewise.
4609 (_mm256_castph128_ph256): Likewise.
4610 (_mm256_zextph128_ph256): Likewise.
4612 2021-09-17 liuhongt <hongtao.liu@intel.com>
4614 * config/i386/avx512fp16intrin.h (_mm_cvtsh_ss):
4616 (_mm_mask_cvtsh_ss): Likewise.
4617 (_mm_maskz_cvtsh_ss): Likewise.
4618 (_mm_cvtsh_sd): Likewise.
4619 (_mm_mask_cvtsh_sd): Likewise.
4620 (_mm_maskz_cvtsh_sd): Likewise.
4621 (_mm_cvt_roundsh_ss): Likewise.
4622 (_mm_mask_cvt_roundsh_ss): Likewise.
4623 (_mm_maskz_cvt_roundsh_ss): Likewise.
4624 (_mm_cvt_roundsh_sd): Likewise.
4625 (_mm_mask_cvt_roundsh_sd): Likewise.
4626 (_mm_maskz_cvt_roundsh_sd): Likewise.
4627 (_mm_cvtss_sh): Likewise.
4628 (_mm_mask_cvtss_sh): Likewise.
4629 (_mm_maskz_cvtss_sh): Likewise.
4630 (_mm_cvtsd_sh): Likewise.
4631 (_mm_mask_cvtsd_sh): Likewise.
4632 (_mm_maskz_cvtsd_sh): Likewise.
4633 (_mm_cvt_roundss_sh): Likewise.
4634 (_mm_mask_cvt_roundss_sh): Likewise.
4635 (_mm_maskz_cvt_roundss_sh): Likewise.
4636 (_mm_cvt_roundsd_sh): Likewise.
4637 (_mm_mask_cvt_roundsd_sh): Likewise.
4638 (_mm_maskz_cvt_roundsd_sh): Likewise.
4639 * config/i386/i386-builtin-types.def
4640 (V8HF_FTYPE_V2DF_V8HF_V8HF_UQI_INT,
4641 V8HF_FTYPE_V4SF_V8HF_V8HF_UQI_INT,
4642 V2DF_FTYPE_V8HF_V2DF_V2DF_UQI_INT,
4643 V4SF_FTYPE_V8HF_V4SF_V4SF_UQI_INT): Add new builtin types.
4644 * config/i386/i386-builtin.def: Add corrresponding new builtins.
4645 * config/i386/i386-expand.c: Handle new builtin types.
4646 * config/i386/sse.md (VF48_128): New mode iterator.
4647 (avx512fp16_vcvtsh2<ssescalarmodesuffix><mask_scalar_name><round_saeonly_scalar_name>):
4649 (avx512fp16_vcvt<ssescalarmodesuffix>2sh<mask_scalar_name><round_scalar_name>):
4652 2021-09-17 liuhongt <hongtao.liu@intel.com>
4654 * config/i386/avx512fp16intrin.h (_mm512_cvtph_pd):
4656 (_mm512_mask_cvtph_pd): Likewise.
4657 (_mm512_maskz_cvtph_pd): Likewise.
4658 (_mm512_cvt_roundph_pd): Likewise.
4659 (_mm512_mask_cvt_roundph_pd): Likewise.
4660 (_mm512_maskz_cvt_roundph_pd): Likewise.
4661 (_mm512_cvtxph_ps): Likewise.
4662 (_mm512_mask_cvtxph_ps): Likewise.
4663 (_mm512_maskz_cvtxph_ps): Likewise.
4664 (_mm512_cvtx_roundph_ps): Likewise.
4665 (_mm512_mask_cvtx_roundph_ps): Likewise.
4666 (_mm512_maskz_cvtx_roundph_ps): Likewise.
4667 (_mm512_cvtxps_ph): Likewise.
4668 (_mm512_mask_cvtxps_ph): Likewise.
4669 (_mm512_maskz_cvtxps_ph): Likewise.
4670 (_mm512_cvtx_roundps_ph): Likewise.
4671 (_mm512_mask_cvtx_roundps_ph): Likewise.
4672 (_mm512_maskz_cvtx_roundps_ph): Likewise.
4673 (_mm512_cvtpd_ph): Likewise.
4674 (_mm512_mask_cvtpd_ph): Likewise.
4675 (_mm512_maskz_cvtpd_ph): Likewise.
4676 (_mm512_cvt_roundpd_ph): Likewise.
4677 (_mm512_mask_cvt_roundpd_ph): Likewise.
4678 (_mm512_maskz_cvt_roundpd_ph): Likewise.
4679 * config/i386/avx512fp16vlintrin.h (_mm_cvtph_pd):
4681 (_mm_mask_cvtph_pd): Likewise.
4682 (_mm_maskz_cvtph_pd): Likewise.
4683 (_mm256_cvtph_pd): Likewise.
4684 (_mm256_mask_cvtph_pd): Likewise.
4685 (_mm256_maskz_cvtph_pd): Likewise.
4686 (_mm_cvtxph_ps): Likewise.
4687 (_mm_mask_cvtxph_ps): Likewise.
4688 (_mm_maskz_cvtxph_ps): Likewise.
4689 (_mm256_cvtxph_ps): Likewise.
4690 (_mm256_mask_cvtxph_ps): Likewise.
4691 (_mm256_maskz_cvtxph_ps): Likewise.
4692 (_mm_cvtxps_ph): Likewise.
4693 (_mm_mask_cvtxps_ph): Likewise.
4694 (_mm_maskz_cvtxps_ph): Likewise.
4695 (_mm256_cvtxps_ph): Likewise.
4696 (_mm256_mask_cvtxps_ph): Likewise.
4697 (_mm256_maskz_cvtxps_ph): Likewise.
4698 (_mm_cvtpd_ph): Likewise.
4699 (_mm_mask_cvtpd_ph): Likewise.
4700 (_mm_maskz_cvtpd_ph): Likewise.
4701 (_mm256_cvtpd_ph): Likewise.
4702 (_mm256_mask_cvtpd_ph): Likewise.
4703 (_mm256_maskz_cvtpd_ph): Likewise.
4704 * config/i386/i386-builtin.def: Add corresponding new builtins.
4705 * config/i386/i386-builtin-types.def: Add corresponding builtin types.
4706 * config/i386/i386-expand.c: Handle new builtin types.
4707 * config/i386/sse.md
4708 (VF4_128_8_256): New.
4709 (VF48H_AVX512VL): Ditto.
4710 (ssePHmode): Add HF vector modes.
4711 (castmode): Add new convertable modes.
4714 (avx512fp16_vcvt<castmode>2ph_<mode><mask_name><round_name>): Ditto.
4715 (avx512fp16_vcvt<castmode>2ph_<mode>): Ditto.
4716 (*avx512fp16_vcvt<castmode>2ph_<mode>): Ditto.
4717 (avx512fp16_vcvt<castmode>2ph_<mode>_mask): Ditto.
4718 (*avx512fp16_vcvt<castmode>2ph_<mode>_mask): Ditto.
4719 (*avx512fp16_vcvt<castmode>2ph_<mode>_mask_1): Ditto.
4720 (avx512fp16_float_extend_ph<mode>2<mask_name><round_saeonly_name>):
4722 (avx512fp16_float_extend_ph<mode>2<mask_name>): Ditto.
4723 (*avx512fp16_float_extend_ph<mode>2_load<mask_name>): Ditto.
4724 (avx512fp16_float_extend_phv2df2<mask_name>): Ditto.
4725 (*avx512fp16_float_extend_phv2df2_load<mask_name>): Ditto.
4727 2021-09-17 liuhongt <hongtao.liu@intel.com>
4729 * config/i386/avx512fp16intrin.h (_mm_cvttsh_i32):
4731 (_mm_cvttsh_u32): Likewise.
4732 (_mm_cvtt_roundsh_i32): Likewise.
4733 (_mm_cvtt_roundsh_u32): Likewise.
4734 (_mm_cvttsh_i64): Likewise.
4735 (_mm_cvttsh_u64): Likewise.
4736 (_mm_cvtt_roundsh_i64): Likewise.
4737 (_mm_cvtt_roundsh_u64): Likewise.
4738 * config/i386/i386-builtin.def: Add corresponding new builtins.
4739 * config/i386/sse.md
4740 (avx512fp16_fix<fixunssuffix>_trunc<mode>2<round_saeonly_name>):
4743 2021-09-17 liuhongt <hongtao.liu@intel.com>
4745 * config/i386/avx512fp16intrin.h (_mm512_cvttph_epi32):
4747 (_mm512_mask_cvttph_epi32): Likewise.
4748 (_mm512_maskz_cvttph_epi32): Likewise.
4749 (_mm512_cvtt_roundph_epi32): Likewise.
4750 (_mm512_mask_cvtt_roundph_epi32): Likewise.
4751 (_mm512_maskz_cvtt_roundph_epi32): Likewise.
4752 (_mm512_cvttph_epu32): Likewise.
4753 (_mm512_mask_cvttph_epu32): Likewise.
4754 (_mm512_maskz_cvttph_epu32): Likewise.
4755 (_mm512_cvtt_roundph_epu32): Likewise.
4756 (_mm512_mask_cvtt_roundph_epu32): Likewise.
4757 (_mm512_maskz_cvtt_roundph_epu32): Likewise.
4758 (_mm512_cvttph_epi64): Likewise.
4759 (_mm512_mask_cvttph_epi64): Likewise.
4760 (_mm512_maskz_cvttph_epi64): Likewise.
4761 (_mm512_cvtt_roundph_epi64): Likewise.
4762 (_mm512_mask_cvtt_roundph_epi64): Likewise.
4763 (_mm512_maskz_cvtt_roundph_epi64): Likewise.
4764 (_mm512_cvttph_epu64): Likewise.
4765 (_mm512_mask_cvttph_epu64): Likewise.
4766 (_mm512_maskz_cvttph_epu64): Likewise.
4767 (_mm512_cvtt_roundph_epu64): Likewise.
4768 (_mm512_mask_cvtt_roundph_epu64): Likewise.
4769 (_mm512_maskz_cvtt_roundph_epu64): Likewise.
4770 (_mm512_cvttph_epi16): Likewise.
4771 (_mm512_mask_cvttph_epi16): Likewise.
4772 (_mm512_maskz_cvttph_epi16): Likewise.
4773 (_mm512_cvtt_roundph_epi16): Likewise.
4774 (_mm512_mask_cvtt_roundph_epi16): Likewise.
4775 (_mm512_maskz_cvtt_roundph_epi16): Likewise.
4776 (_mm512_cvttph_epu16): Likewise.
4777 (_mm512_mask_cvttph_epu16): Likewise.
4778 (_mm512_maskz_cvttph_epu16): Likewise.
4779 (_mm512_cvtt_roundph_epu16): Likewise.
4780 (_mm512_mask_cvtt_roundph_epu16): Likewise.
4781 (_mm512_maskz_cvtt_roundph_epu16): Likewise.
4782 * config/i386/avx512fp16vlintrin.h (_mm_cvttph_epi32):
4784 (_mm_mask_cvttph_epi32): Likewise.
4785 (_mm_maskz_cvttph_epi32): Likewise.
4786 (_mm256_cvttph_epi32): Likewise.
4787 (_mm256_mask_cvttph_epi32): Likewise.
4788 (_mm256_maskz_cvttph_epi32): Likewise.
4789 (_mm_cvttph_epu32): Likewise.
4790 (_mm_mask_cvttph_epu32): Likewise.
4791 (_mm_maskz_cvttph_epu32): Likewise.
4792 (_mm256_cvttph_epu32): Likewise.
4793 (_mm256_mask_cvttph_epu32): Likewise.
4794 (_mm256_maskz_cvttph_epu32): Likewise.
4795 (_mm_cvttph_epi64): Likewise.
4796 (_mm_mask_cvttph_epi64): Likewise.
4797 (_mm_maskz_cvttph_epi64): Likewise.
4798 (_mm256_cvttph_epi64): Likewise.
4799 (_mm256_mask_cvttph_epi64): Likewise.
4800 (_mm256_maskz_cvttph_epi64): Likewise.
4801 (_mm_cvttph_epu64): Likewise.
4802 (_mm_mask_cvttph_epu64): Likewise.
4803 (_mm_maskz_cvttph_epu64): Likewise.
4804 (_mm256_cvttph_epu64): Likewise.
4805 (_mm256_mask_cvttph_epu64): Likewise.
4806 (_mm256_maskz_cvttph_epu64): Likewise.
4807 (_mm_cvttph_epi16): Likewise.
4808 (_mm_mask_cvttph_epi16): Likewise.
4809 (_mm_maskz_cvttph_epi16): Likewise.
4810 (_mm256_cvttph_epi16): Likewise.
4811 (_mm256_mask_cvttph_epi16): Likewise.
4812 (_mm256_maskz_cvttph_epi16): Likewise.
4813 (_mm_cvttph_epu16): Likewise.
4814 (_mm_mask_cvttph_epu16): Likewise.
4815 (_mm_maskz_cvttph_epu16): Likewise.
4816 (_mm256_cvttph_epu16): Likewise.
4817 (_mm256_mask_cvttph_epu16): Likewise.
4818 (_mm256_maskz_cvttph_epu16): Likewise.
4819 * config/i386/i386-builtin.def: Add new builtins.
4820 * config/i386/sse.md
4821 (avx512fp16_fix<fixunssuffix>_trunc<mode>2<mask_name><round_saeonly_name>):
4823 (avx512fp16_fix<fixunssuffix>_trunc<mode>2<mask_name>): Ditto.
4824 (*avx512fp16_fix<fixunssuffix>_trunc<mode>2_load<mask_name>): Ditto.
4825 (avx512fp16_fix<fixunssuffix>_truncv2di2<mask_name>): Ditto.
4826 (avx512fp16_fix<fixunssuffix>_truncv2di2_load<mask_name>): Ditto.
4828 2021-09-17 liuhongt <hongtao.liu@intel.com>
4830 * config/i386/avx512fp16intrin.h (_mm_cvtsh_i32): New intrinsic.
4831 (_mm_cvtsh_u32): Likewise.
4832 (_mm_cvt_roundsh_i32): Likewise.
4833 (_mm_cvt_roundsh_u32): Likewise.
4834 (_mm_cvtsh_i64): Likewise.
4835 (_mm_cvtsh_u64): Likewise.
4836 (_mm_cvt_roundsh_i64): Likewise.
4837 (_mm_cvt_roundsh_u64): Likewise.
4838 (_mm_cvti32_sh): Likewise.
4839 (_mm_cvtu32_sh): Likewise.
4840 (_mm_cvt_roundi32_sh): Likewise.
4841 (_mm_cvt_roundu32_sh): Likewise.
4842 (_mm_cvti64_sh): Likewise.
4843 (_mm_cvtu64_sh): Likewise.
4844 (_mm_cvt_roundi64_sh): Likewise.
4845 (_mm_cvt_roundu64_sh): Likewise.
4846 * config/i386/i386-builtin-types.def: Add corresponding builtin types.
4847 * config/i386/i386-builtin.def: Add corresponding new builtins.
4848 * config/i386/i386-expand.c (ix86_expand_round_builtin):
4849 Handle new builtin types.
4850 * config/i386/sse.md
4851 (avx512fp16_vcvtsh2<sseintconvertsignprefix>si<rex64namesuffix><round_name>):
4853 (avx512fp16_vcvtsh2<sseintconvertsignprefix>si<rex64namesuffix>_2): Likewise.
4854 (avx512fp16_vcvt<floatsuffix>si2sh<rex64namesuffix><round_name>): Likewise.
4856 2021-09-16 Bill Schmidt <wschmidt@linux.ibm.com>
4858 * config/rs6000/rs6000-c.c (rs6000-builtins.h): New include.
4859 (altivec_resolve_new_overloaded_builtin): New forward decl.
4860 (rs6000_new_builtin_type_compatible): New function.
4861 (altivec_resolve_overloaded_builtin): Call
4862 altivec_resolve_new_overloaded_builtin.
4863 (altivec_build_new_resolved_builtin): New function.
4864 (altivec_resolve_new_overloaded_builtin): Likewise.
4865 * config/rs6000/rs6000-call.c (rs6000_new_builtin_is_supported):
4867 * config/rs6000/rs6000-gen-builtins.c (write_decls): Remove _p from
4868 name of rs6000_new_builtin_is_supported.
4870 2021-09-16 Uroš Bizjak <ubizjak@gmail.com>
4872 * config/i386/i386-protos.h (ix86_decompose_address):
4873 Change return type to bool.
4874 * config/i386/i386.c (ix86_decompose_address): Ditto.
4876 2021-09-16 Tobias Burnus <tobias@codesourcery.com>
4879 * config/rs6000/t-rs6000 (build/rs6000-gen-builtins.o, build/rbtree.o):
4880 Added 'build/' to target, use build/%.o rule.
4881 (build/rs6000-gen-builtins$(build_exeext)): Add 'build/' and
4882 '$(build_exeext)' to target and 'build/' for the *.o files.
4883 (rs6000-builtins.c): Update for those changes; run rs6000-gen-builtins
4886 2021-09-16 Martin Jambor <mjambor@suse.cz>
4888 * cgraph.c (cgraph_node::dump): Do not check caller count sums if
4889 the body has been removed. Remove trailing whitespace.
4891 2021-09-16 Richard Biener <rguenther@suse.de>
4893 PR middle-end/102360
4894 * internal-fn.c (expand_DEFERRED_INIT): Make pattern-init
4895 of non-memory more robust.
4897 2021-09-16 Daniel Cederman <cederman@gaisler.com>
4899 * config/sparc/sparc-opts.h (enum sparc_processor_type): Add LEON5
4900 * config/sparc/sparc.c (struct processor_costs): Add LEON5 costs
4901 (leon5_adjust_cost): Increase cost of store with data dependency
4902 on ALU instruction and FPU anti-dependencies.
4903 (sparc_option_override): Add LEON5 costs
4904 (sparc_adjust_cost): Add LEON5 cost adjustments
4905 * config/sparc/sparc.h: Add LEON5
4906 * config/sparc/sparc.md: Include LEON5 scheduling information
4907 * config/sparc/sparc.opt: Add LEON5
4908 * doc/invoke.texi: Add LEON5
4909 * config/sparc/leon5.md: New file.
4911 2021-09-16 Daniel Cederman <cederman@gaisler.com>
4913 * config/sparc/sparc.md (stack_protect_set32): Add NOP to prevent
4914 sensitive sequence for B2BST errata workaround.
4916 2021-09-16 Daniel Cederman <cederman@gaisler.com>
4918 * config/sparc/sparc.c (sparc_do_work_around_errata): Do not begin
4919 functions with atomic instruction in the UT700 errata workaround.
4921 2021-09-16 Daniel Cederman <cederman@gaisler.com>
4923 * config/sparc/sparc.c (next_active_non_empty_insn): New function
4924 that returns next active non empty assembly instruction.
4925 (sparc_do_work_around_errata): Use new function.
4927 2021-09-16 Daniel Cederman <cederman@gaisler.com>
4929 * config/sparc/sparc.c (store_insn_p): Add predicate for store
4931 (load_insn_p): Add predicate for load attributes.
4932 (sparc_do_work_around_errata): Use new predicates.
4934 2021-09-16 Andreas Larsson <andreas@gaisler.com>
4936 * config/sparc/sparc.c (dump_target_flag_bits): Print bit names for
4939 2021-09-16 Martin Liska <mliska@suse.cz>
4941 * config/mips/netbsd.h: Fix typo in name of a macro.
4943 2021-09-16 liuhongt <hongtao.liu@intel.com>
4945 PR middle-end/102080
4946 * match.pd: Check mask type when doing cond_op related gimple
4948 * tree.c (is_truth_type_for): New function.
4949 * tree.h (is_truth_type_for): New declaration.
4951 2021-09-16 liuhongt <hongtao.liu@intel.com>
4953 * config/i386/avx512fp16intrin.h (_mm512_cvtepi32_ph): New
4955 (_mm512_mask_cvtepi32_ph): Likewise.
4956 (_mm512_maskz_cvtepi32_ph): Likewise.
4957 (_mm512_cvt_roundepi32_ph): Likewise.
4958 (_mm512_mask_cvt_roundepi32_ph): Likewise.
4959 (_mm512_maskz_cvt_roundepi32_ph): Likewise.
4960 (_mm512_cvtepu32_ph): Likewise.
4961 (_mm512_mask_cvtepu32_ph): Likewise.
4962 (_mm512_maskz_cvtepu32_ph): Likewise.
4963 (_mm512_cvt_roundepu32_ph): Likewise.
4964 (_mm512_mask_cvt_roundepu32_ph): Likewise.
4965 (_mm512_maskz_cvt_roundepu32_ph): Likewise.
4966 (_mm512_cvtepi64_ph): Likewise.
4967 (_mm512_mask_cvtepi64_ph): Likewise.
4968 (_mm512_maskz_cvtepi64_ph): Likewise.
4969 (_mm512_cvt_roundepi64_ph): Likewise.
4970 (_mm512_mask_cvt_roundepi64_ph): Likewise.
4971 (_mm512_maskz_cvt_roundepi64_ph): Likewise.
4972 (_mm512_cvtepu64_ph): Likewise.
4973 (_mm512_mask_cvtepu64_ph): Likewise.
4974 (_mm512_maskz_cvtepu64_ph): Likewise.
4975 (_mm512_cvt_roundepu64_ph): Likewise.
4976 (_mm512_mask_cvt_roundepu64_ph): Likewise.
4977 (_mm512_maskz_cvt_roundepu64_ph): Likewise.
4978 (_mm512_cvtepi16_ph): Likewise.
4979 (_mm512_mask_cvtepi16_ph): Likewise.
4980 (_mm512_maskz_cvtepi16_ph): Likewise.
4981 (_mm512_cvt_roundepi16_ph): Likewise.
4982 (_mm512_mask_cvt_roundepi16_ph): Likewise.
4983 (_mm512_maskz_cvt_roundepi16_ph): Likewise.
4984 (_mm512_cvtepu16_ph): Likewise.
4985 (_mm512_mask_cvtepu16_ph): Likewise.
4986 (_mm512_maskz_cvtepu16_ph): Likewise.
4987 (_mm512_cvt_roundepu16_ph): Likewise.
4988 (_mm512_mask_cvt_roundepu16_ph): Likewise.
4989 (_mm512_maskz_cvt_roundepu16_ph): Likewise.
4990 * config/i386/avx512fp16vlintrin.h (_mm_cvtepi32_ph): New
4992 (_mm_mask_cvtepi32_ph): Likewise.
4993 (_mm_maskz_cvtepi32_ph): Likewise.
4994 (_mm256_cvtepi32_ph): Likewise.
4995 (_mm256_mask_cvtepi32_ph): Likewise.
4996 (_mm256_maskz_cvtepi32_ph): Likewise.
4997 (_mm_cvtepu32_ph): Likewise.
4998 (_mm_mask_cvtepu32_ph): Likewise.
4999 (_mm_maskz_cvtepu32_ph): Likewise.
5000 (_mm256_cvtepu32_ph): Likewise.
5001 (_mm256_mask_cvtepu32_ph): Likewise.
5002 (_mm256_maskz_cvtepu32_ph): Likewise.
5003 (_mm_cvtepi64_ph): Likewise.
5004 (_mm_mask_cvtepi64_ph): Likewise.
5005 (_mm_maskz_cvtepi64_ph): Likewise.
5006 (_mm256_cvtepi64_ph): Likewise.
5007 (_mm256_mask_cvtepi64_ph): Likewise.
5008 (_mm256_maskz_cvtepi64_ph): Likewise.
5009 (_mm_cvtepu64_ph): Likewise.
5010 (_mm_mask_cvtepu64_ph): Likewise.
5011 (_mm_maskz_cvtepu64_ph): Likewise.
5012 (_mm256_cvtepu64_ph): Likewise.
5013 (_mm256_mask_cvtepu64_ph): Likewise.
5014 (_mm256_maskz_cvtepu64_ph): Likewise.
5015 (_mm_cvtepi16_ph): Likewise.
5016 (_mm_mask_cvtepi16_ph): Likewise.
5017 (_mm_maskz_cvtepi16_ph): Likewise.
5018 (_mm256_cvtepi16_ph): Likewise.
5019 (_mm256_mask_cvtepi16_ph): Likewise.
5020 (_mm256_maskz_cvtepi16_ph): Likewise.
5021 (_mm_cvtepu16_ph): Likewise.
5022 (_mm_mask_cvtepu16_ph): Likewise.
5023 (_mm_maskz_cvtepu16_ph): Likewise.
5024 (_mm256_cvtepu16_ph): Likewise.
5025 (_mm256_mask_cvtepu16_ph): Likewise.
5026 (_mm256_maskz_cvtepu16_ph): Likewise.
5027 * config/i386/i386-builtin-types.def: Add corresponding builtin types.
5028 * config/i386/i386-builtin.def: Add corresponding new builtins.
5029 * config/i386/i386-expand.c
5030 (ix86_expand_args_builtin): Handle new builtin types.
5031 (ix86_expand_round_builtin): Ditto.
5032 * config/i386/i386-modes.def: Declare V2HF and V6HF.
5033 * config/i386/sse.md (VI2H_AVX512VL): New.
5035 (sseintvecmode): Add HF vector modes.
5036 (avx512fp16_vcvt<floatsuffix><sseintconvert>2ph_<mode><mask_name><round_name>):
5038 (avx512fp16_vcvt<floatsuffix><sseintconvert>2ph_<mode>): Ditto.
5039 (*avx512fp16_vcvt<floatsuffix><sseintconvert>2ph_<mode>): Ditto.
5040 (avx512fp16_vcvt<floatsuffix><sseintconvert>2ph_<mode>_mask): Ditto.
5041 (*avx512fp16_vcvt<floatsuffix><sseintconvert>2ph_<mode>_mask): Ditto.
5042 (*avx512fp16_vcvt<floatsuffix><sseintconvert>2ph_<mode>_mask_1): Ditto.
5043 (avx512fp16_vcvt<floatsuffix>qq2ph_v2di): Ditto.
5044 (*avx512fp16_vcvt<floatsuffix>qq2ph_v2di): Ditto.
5045 (avx512fp16_vcvt<floatsuffix>qq2ph_v2di_mask): Ditto.
5046 (*avx512fp16_vcvt<floatsuffix>qq2ph_v2di_mask): Ditto.
5047 (*avx512fp16_vcvt<floatsuffix>qq2ph_v2di_mask_1): Ditto.
5048 * config/i386/subst.md (round_qq2phsuff): New subst_attr.
5050 2021-09-16 liuhongt <hongtao.liu@intel.com>
5052 * config/i386/avx512fp16intrin.h (_mm512_cvtph_epi32):
5054 (_mm512_mask_cvtph_epi32): Likewise.
5055 (_mm512_maskz_cvtph_epi32): Likewise.
5056 (_mm512_cvt_roundph_epi32): Likewise.
5057 (_mm512_mask_cvt_roundph_epi32): Likewise.
5058 (_mm512_maskz_cvt_roundph_epi32): Likewise.
5059 (_mm512_cvtph_epu32): Likewise.
5060 (_mm512_mask_cvtph_epu32): Likewise.
5061 (_mm512_maskz_cvtph_epu32): Likewise.
5062 (_mm512_cvt_roundph_epu32): Likewise.
5063 (_mm512_mask_cvt_roundph_epu32): Likewise.
5064 (_mm512_maskz_cvt_roundph_epu32): Likewise.
5065 (_mm512_cvtph_epi64): Likewise.
5066 (_mm512_mask_cvtph_epi64): Likewise.
5067 (_mm512_maskz_cvtph_epi64): Likewise.
5068 (_mm512_cvt_roundph_epi64): Likewise.
5069 (_mm512_mask_cvt_roundph_epi64): Likewise.
5070 (_mm512_maskz_cvt_roundph_epi64): Likewise.
5071 (_mm512_cvtph_epu64): Likewise.
5072 (_mm512_mask_cvtph_epu64): Likewise.
5073 (_mm512_maskz_cvtph_epu64): Likewise.
5074 (_mm512_cvt_roundph_epu64): Likewise.
5075 (_mm512_mask_cvt_roundph_epu64): Likewise.
5076 (_mm512_maskz_cvt_roundph_epu64): Likewise.
5077 (_mm512_cvtph_epi16): Likewise.
5078 (_mm512_mask_cvtph_epi16): Likewise.
5079 (_mm512_maskz_cvtph_epi16): Likewise.
5080 (_mm512_cvt_roundph_epi16): Likewise.
5081 (_mm512_mask_cvt_roundph_epi16): Likewise.
5082 (_mm512_maskz_cvt_roundph_epi16): Likewise.
5083 (_mm512_cvtph_epu16): Likewise.
5084 (_mm512_mask_cvtph_epu16): Likewise.
5085 (_mm512_maskz_cvtph_epu16): Likewise.
5086 (_mm512_cvt_roundph_epu16): Likewise.
5087 (_mm512_mask_cvt_roundph_epu16): Likewise.
5088 (_mm512_maskz_cvt_roundph_epu16): Likewise.
5089 * config/i386/avx512fp16vlintrin.h (_mm_cvtph_epi32):
5091 (_mm_mask_cvtph_epi32): Likewise.
5092 (_mm_maskz_cvtph_epi32): Likewise.
5093 (_mm256_cvtph_epi32): Likewise.
5094 (_mm256_mask_cvtph_epi32): Likewise.
5095 (_mm256_maskz_cvtph_epi32): Likewise.
5096 (_mm_cvtph_epu32): Likewise.
5097 (_mm_mask_cvtph_epu32): Likewise.
5098 (_mm_maskz_cvtph_epu32): Likewise.
5099 (_mm256_cvtph_epu32): Likewise.
5100 (_mm256_mask_cvtph_epu32): Likewise.
5101 (_mm256_maskz_cvtph_epu32): Likewise.
5102 (_mm_cvtph_epi64): Likewise.
5103 (_mm_mask_cvtph_epi64): Likewise.
5104 (_mm_maskz_cvtph_epi64): Likewise.
5105 (_mm256_cvtph_epi64): Likewise.
5106 (_mm256_mask_cvtph_epi64): Likewise.
5107 (_mm256_maskz_cvtph_epi64): Likewise.
5108 (_mm_cvtph_epu64): Likewise.
5109 (_mm_mask_cvtph_epu64): Likewise.
5110 (_mm_maskz_cvtph_epu64): Likewise.
5111 (_mm256_cvtph_epu64): Likewise.
5112 (_mm256_mask_cvtph_epu64): Likewise.
5113 (_mm256_maskz_cvtph_epu64): Likewise.
5114 (_mm_cvtph_epi16): Likewise.
5115 (_mm_mask_cvtph_epi16): Likewise.
5116 (_mm_maskz_cvtph_epi16): Likewise.
5117 (_mm256_cvtph_epi16): Likewise.
5118 (_mm256_mask_cvtph_epi16): Likewise.
5119 (_mm256_maskz_cvtph_epi16): Likewise.
5120 (_mm_cvtph_epu16): Likewise.
5121 (_mm_mask_cvtph_epu16): Likewise.
5122 (_mm_maskz_cvtph_epu16): Likewise.
5123 (_mm256_cvtph_epu16): Likewise.
5124 (_mm256_mask_cvtph_epu16): Likewise.
5125 (_mm256_maskz_cvtph_epu16): Likewise.
5126 * config/i386/i386-builtin-types.def: Add new builtin types.
5127 * config/i386/i386-builtin.def: Add new builtins.
5128 * config/i386/i386-expand.c
5129 (ix86_expand_args_builtin): Handle new builtin types.
5130 (ix86_expand_round_builtin): Ditto.
5131 * config/i386/sse.md (sseintconvert): New.
5133 (UNSPEC_US_FIX_NOTRUNC): Ditto.
5134 (sseintconvertsignprefix): Ditto.
5135 (avx512fp16_vcvtph2<sseintconvertsignprefix><sseintconvert>_<mode><mask_name><round_name>):
5138 2021-09-16 liuhongt <hongtao.liu@intel.com>
5140 * config/i386/avx512fp16intrin.h: (_mm_cvtsi16_si128):
5142 (_mm_cvtsi128_si16): Likewise.
5143 (_mm_mask_load_sh): Likewise.
5144 (_mm_maskz_load_sh): Likewise.
5145 (_mm_mask_store_sh): Likewise.
5146 (_mm_move_sh): Likewise.
5147 (_mm_mask_move_sh): Likewise.
5148 (_mm_maskz_move_sh): Likewise.
5149 * config/i386/i386-builtin-types.def: Add corresponding builtin types.
5150 * config/i386/i386-builtin.def: Add corresponding new builtins.
5151 * config/i386/i386-expand.c
5152 (ix86_expand_special_args_builtin): Handle new builtin types.
5153 (ix86_expand_vector_init_one_nonzero): Adjust for FP16 target.
5154 * config/i386/sse.md (VI2F): New mode iterator.
5155 (vec_set<mode>_0): Use new mode iterator.
5156 (avx512f_mov<ssescalarmodelower>_mask): Adjust for HF vector mode.
5157 (avx512f_store<mode>_mask): Ditto.
5159 2021-09-16 Kewen Lin <linkw@linux.ibm.com>
5161 * config/rs6000/rs6000.opt (-mtoc-fusion): Remove.
5163 2021-09-15 David Edelsohn <dje.gcc@gmail.com>
5165 * config/rs6000/rs6000.c (rs6000_xcoff_encode_section_info):
5166 Proceed if no symbol summary or the symbol alias flag is false.
5168 2021-09-15 Jakub Jelinek <jakub@redhat.com>
5172 * varasm.c (output_constructor_regular_field): Instead of assertion
5173 that array_size_for_constructor result is equal to size of
5174 TREE_TYPE (local->val) in bytes, assert that the type size is greater
5175 or equal to array_size_for_constructor result and use type size as
5178 2021-09-15 Martin Liska <mliska@suse.cz>
5181 * config/i386/vxworks.h: Use new macro TARGET_CPU_P.
5183 2021-09-15 Martin Liska <mliska@suse.cz>
5186 * config/rs6000/rs6000.c (rs6000_xcoff_encode_section_info):
5187 Check that we have a symbol summary for a symbol.
5189 2021-09-15 Richard Biener <rguenther@suse.de>
5192 * config/rs6000/lynx.h: Remove undef of PREFERRED_DEBUGGING_TYPE
5193 to inherit from elfos.h
5195 2021-09-15 liuhongt <hongtao.liu@intel.com>
5198 * config/i386/i386-expand.c
5199 (ix86_expand_vector_init_interleave): Use puncklwd to pack 2
5201 (ix86_expand_vector_set): Use blendw instead of pinsrw.
5202 * config/i386/i386.c (ix86_can_change_mode_class): Adjust for
5203 AVX512FP16 which supports 16bit vector load.
5204 * config/i386/sse.md (avx512bw_interleave_highv32hi<mask_name>):
5206 (avx512bw_interleave_high<mode><mask_name>): .. this, and
5207 extend to V32HFmode.
5208 (avx2_interleave_highv16hi<mask_name>): Rename to ..
5209 (avx2_interleave_high<mode><mask_name>): .. this, and extend
5211 (vec_interleave_highv8hi<mask_name>): Rename to ..
5212 (vec_interleave_high<mode><mask_name>): .. this, and extend to V8HFmode.
5213 (<mask_codefor>avx512bw_interleave_lowv32hi<mask_name>):
5215 (<mask_codefor>avx512bw_interleave_low<mode><mask_name>):
5216 this, and extend to V32HFmode.
5217 (avx2_interleave_lowv16hi<mask_name>): Rename to ..
5218 (avx2_interleave_low<mode><mask_name>): .. this, and extend to V16HFmode.
5219 (vec_interleave_lowv8hi<mask_name>): Rename to ..
5220 (vec_interleave_low<mode><mask_name>): .. this, and extend to V8HFmode.
5221 (sse4_1_pblendw): Rename to ..
5222 (sse4_1_pblend<blendsuf>): .. this, and extend to V8HFmode.
5223 (avx2_pblendph): New define_expand.
5224 (<sse2p4_1>_pinsr<ssemodesuffix>): Refactor, use
5225 sseintmodesuffix instead of ssemodesuffix.
5226 (blendsuf): New mode attr.
5228 2021-09-15 Richard Biener <rguenther@suse.de>
5230 * tree-vectorizer.h (dr_misalignment): Move out of line.
5231 (dr_target_alignment): New.
5232 (DR_TARGET_ALIGNMENT): Wrap dr_target_alignment.
5233 (set_dr_target_alignment): New.
5234 (SET_DR_TARGET_ALIGNMENT): Wrap set_dr_target_alignment.
5235 * tree-vect-data-refs.c (dr_misalignment): Compute and
5236 return the group members misalignment.
5237 (vect_compute_data_ref_alignment): Use SET_DR_TARGET_ALIGNMENT.
5238 (vect_analyze_data_refs_alignment): Compute alignment only
5239 for the first element of a DR group.
5240 (vect_slp_analyze_node_alignment): Likewise.
5242 2021-09-15 Hongyu Wang <hongyu.wang@intel.com>
5244 * config/i386/avx512fp16intrin.h: Adjust all builtin calls.
5245 * config/i386/avx512fp16vlintrin.h: Likewise.
5246 * config/i386/i386-builtin.def: Adjust builtin name and
5247 enumeration to match AVX512F style.
5249 2021-09-15 Richard Biener <rguenther@suse.de>
5251 PR tree-optimization/102318
5252 * tree-vect-loop.c (vect_transform_cycle_phi): Revert
5253 previous change and do the mode conversion separately from
5254 the sign conversion.
5256 2021-09-15 Hongtao Liu <hongtao.liu@intel.com>
5257 Peter Cordes <peter@cordes.ca>
5260 * config/i386/sse.md (extract_suf): Add V8SF/V8SI/V4DF/V4DI.
5261 (*vec_extract<mode><ssescalarmodelower>_valign): Output
5262 vextract{i,f}{32x4,64x2} instruction when byte_offset % 16 ==
5265 2021-09-15 Richard Biener <rguenther@suse.de>
5267 * config.gcc: Remove vax-*-openbsd* configuration.
5269 2021-09-15 Richard Biener <rguenther@suse.de>
5271 * config.gcc: Remove m68k-openbsd.
5273 2021-09-15 Max Filippov <jcmvbkbc@gmail.com>
5276 * config/xtensa/t-xtensa (TM_H): Add include/xtensa-config.h.
5278 2021-09-14 Peter Bergner <bergner@linux.ibm.com>
5280 * config/rs6000/mma.md (unspec): Delete UNSPEC_MMA_XXSETACCZ.
5281 (unspecv): Add UNSPECV_MMA_XXSETACCZ.
5282 (*mma_xxsetaccz): Delete.
5283 (mma_xxsetaccz): Change to define_insn. Remove operand 1.
5284 Use UNSPECV_MMA_XXSETACCZ. Update comment.
5285 * config/rs6000/rs6000.c (rs6000_rtx_costs): Use UNSPECV_MMA_XXSETACCZ.
5287 2021-09-14 Iain Sandoe <iain@sandoe.co.uk>
5289 * Makefile.in: Remove variables related to applying no-PIE
5290 to the exes on $build.
5291 * configure: Regenerate.
5292 * configure.ac: Remove configuration related to applying
5293 no-PIE to the exes on $build.
5295 2021-09-14 Claudiu Zissulescu <claziss@synopsys.com>
5297 * config/arc/arc.md (doloop_end): Add missing mode.
5298 (loop_end): Likewise.
5300 2021-09-14 Jakub Jelinek <jakub@redhat.com>
5302 * gimplify.c (goa_stabilize_expr): Add depth argument, propagate
5303 it to recursive calls, for depth above 7 just gimplify or return.
5304 Perform a test even for MODIFY_EXPR, ADDR_EXPR, COMPOUND_EXPR with
5305 __builtin_clear_padding and TARGET_EXPR.
5306 (gimplify_omp_atomic): Adjust goa_stabilize_expr callers.
5308 2021-09-14 liuhongt <hongtao.liu@intel.com>
5310 * config/i386/avx512fp16intrin.h (_mm_fpclass_sh_mask):
5312 (_mm_mask_fpclass_sh_mask): Likewise.
5313 (_mm512_mask_fpclass_ph_mask): Likewise.
5314 (_mm512_fpclass_ph_mask): Likewise.
5315 (_mm_getexp_sh): Likewise.
5316 (_mm_mask_getexp_sh): Likewise.
5317 (_mm_maskz_getexp_sh): Likewise.
5318 (_mm512_getexp_ph): Likewise.
5319 (_mm512_mask_getexp_ph): Likewise.
5320 (_mm512_maskz_getexp_ph): Likewise.
5321 (_mm_getexp_round_sh): Likewise.
5322 (_mm_mask_getexp_round_sh): Likewise.
5323 (_mm_maskz_getexp_round_sh): Likewise.
5324 (_mm512_getexp_round_ph): Likewise.
5325 (_mm512_mask_getexp_round_ph): Likewise.
5326 (_mm512_maskz_getexp_round_ph): Likewise.
5327 (_mm_getmant_sh): Likewise.
5328 (_mm_mask_getmant_sh): Likewise.
5329 (_mm_maskz_getmant_sh): Likewise.
5330 (_mm512_getmant_ph): Likewise.
5331 (_mm512_mask_getmant_ph): Likewise.
5332 (_mm512_maskz_getmant_ph): Likewise.
5333 (_mm_getmant_round_sh): Likewise.
5334 (_mm_mask_getmant_round_sh): Likewise.
5335 (_mm_maskz_getmant_round_sh): Likewise.
5336 (_mm512_getmant_round_ph): Likewise.
5337 (_mm512_mask_getmant_round_ph): Likewise.
5338 (_mm512_maskz_getmant_round_ph): Likewise.
5339 * config/i386/avx512fp16vlintrin.h (_mm_mask_fpclass_ph_mask):
5341 (_mm_fpclass_ph_mask): Likewise.
5342 (_mm256_mask_fpclass_ph_mask): Likewise.
5343 (_mm256_fpclass_ph_mask): Likewise.
5344 (_mm256_getexp_ph): Likewise.
5345 (_mm256_mask_getexp_ph): Likewise.
5346 (_mm256_maskz_getexp_ph): Likewise.
5347 (_mm_getexp_ph): Likewise.
5348 (_mm_mask_getexp_ph): Likewise.
5349 (_mm_maskz_getexp_ph): Likewise.
5350 (_mm256_getmant_ph): Likewise.
5351 (_mm256_mask_getmant_ph): Likewise.
5352 (_mm256_maskz_getmant_ph): Likewise.
5353 (_mm_getmant_ph): Likewise.
5354 (_mm_mask_getmant_ph): Likewise.
5355 (_mm_maskz_getmant_ph): Likewise.
5356 * config/i386/i386-builtin-types.def: Add corresponding builtin types.
5357 * config/i386/i386-builtin.def: Add corresponding new builtins.
5358 * config/i386/i386-expand.c
5359 (ix86_expand_args_builtin): Handle new builtin types.
5360 (ix86_expand_round_builtin): Ditto.
5361 * config/i386/sse.md (vecmemsuffix): Add HF vector modes.
5362 (<avx512>_getexp<mode><mask_name><round_saeonly_name>): Adjust
5363 to support HF vector modes.
5364 (avx512f_sgetexp<mode><mask_scalar_name><round_saeonly_scalar_name):
5366 (avx512dq_fpclass<mode><mask_scalar_merge_name>): Ditto.
5367 (avx512dq_vmfpclass<mode><mask_scalar_merge_name>): Ditto.
5368 (<avx512>_getmant<mode><mask_name><round_saeonly_name>): Ditto.
5369 (avx512f_vgetmant<mode><mask_scalar_name><round_saeonly_scalar_name>):
5372 2021-09-14 liuhongt <hongtao.liu@intel.com>
5374 * config/i386/avx512fp16intrin.h (_mm512_reduce_ph):
5376 (_mm512_mask_reduce_ph): Likewise.
5377 (_mm512_maskz_reduce_ph): Likewise.
5378 (_mm512_reduce_round_ph): Likewise.
5379 (_mm512_mask_reduce_round_ph): Likewise.
5380 (_mm512_maskz_reduce_round_ph): Likewise.
5381 (_mm_reduce_sh): Likewise.
5382 (_mm_mask_reduce_sh): Likewise.
5383 (_mm_maskz_reduce_sh): Likewise.
5384 (_mm_reduce_round_sh): Likewise.
5385 (_mm_mask_reduce_round_sh): Likewise.
5386 (_mm_maskz_reduce_round_sh): Likewise.
5387 (_mm512_roundscale_ph): Likewise.
5388 (_mm512_mask_roundscale_ph): Likewise.
5389 (_mm512_maskz_roundscale_ph): Likewise.
5390 (_mm512_roundscale_round_ph): Likewise.
5391 (_mm512_mask_roundscale_round_ph): Likewise.
5392 (_mm512_maskz_roundscale_round_ph): Likewise.
5393 (_mm_roundscale_sh): Likewise.
5394 (_mm_mask_roundscale_sh): Likewise.
5395 (_mm_maskz_roundscale_sh): Likewise.
5396 (_mm_roundscale_round_sh): Likewise.
5397 (_mm_mask_roundscale_round_sh): Likewise.
5398 (_mm_maskz_roundscale_round_sh): Likewise.
5399 * config/i386/avx512fp16vlintrin.h: (_mm_reduce_ph):
5401 (_mm_mask_reduce_ph): Likewise.
5402 (_mm_maskz_reduce_ph): Likewise.
5403 (_mm256_reduce_ph): Likewise.
5404 (_mm256_mask_reduce_ph): Likewise.
5405 (_mm256_maskz_reduce_ph): Likewise.
5406 (_mm_roundscale_ph): Likewise.
5407 (_mm_mask_roundscale_ph): Likewise.
5408 (_mm_maskz_roundscale_ph): Likewise.
5409 (_mm256_roundscale_ph): Likewise.
5410 (_mm256_mask_roundscale_ph): Likewise.
5411 (_mm256_maskz_roundscale_ph): Likewise.
5412 * config/i386/i386-builtin-types.def: Add corresponding builtin types.
5413 * config/i386/i386-builtin.def: Add corresponding new builtins.
5414 * config/i386/i386-expand.c
5415 (ix86_expand_args_builtin): Handle new builtin types.
5416 (ix86_expand_round_builtin): Ditto.
5417 * config/i386/sse.md (<mask_codefor>reducep<mode><mask_name>):
5419 (<mask_codefor>reducep<mode><mask_name><round_saeonly_name>):
5420 ... this, and adjust for round operands.
5421 (reduces<mode><mask_scalar_name>): Likewise, with ...
5422 (reduces<mode><mask_scalar_name><round_saeonly_scalar_name):
5424 (<avx512>_rndscale<mode><mask_name><round_saeonly_name>):
5425 Adjust for HF vector modes.
5426 (avx512f_rndscale<mode><mask_scalar_name><round_saeonly_scalar_name>):
5428 (*avx512f_rndscale<mode><round_saeonly_name>): Ditto.
5430 2021-09-14 liuhongt <hongtao.liu@intel.com>
5432 * config/i386/avx512fp16intrin.h: (_mm512_rcp_ph):
5434 (_mm512_mask_rcp_ph): Likewise.
5435 (_mm512_maskz_rcp_ph): Likewise.
5436 (_mm_rcp_sh): Likewise.
5437 (_mm_mask_rcp_sh): Likewise.
5438 (_mm_maskz_rcp_sh): Likewise.
5439 (_mm512_scalef_ph): Likewise.
5440 (_mm512_mask_scalef_ph): Likewise.
5441 (_mm512_maskz_scalef_ph): Likewise.
5442 (_mm512_scalef_round_ph): Likewise.
5443 (_mm512_mask_scalef_round_ph): Likewise.
5444 (_mm512_maskz_scalef_round_ph): Likewise.
5445 (_mm_scalef_sh): Likewise.
5446 (_mm_mask_scalef_sh): Likewise.
5447 (_mm_maskz_scalef_sh): Likewise.
5448 (_mm_scalef_round_sh): Likewise.
5449 (_mm_mask_scalef_round_sh): Likewise.
5450 (_mm_maskz_scalef_round_sh): Likewise.
5451 * config/i386/avx512fp16vlintrin.h (_mm_rcp_ph):
5453 (_mm256_rcp_ph): Likewise.
5454 (_mm_mask_rcp_ph): Likewise.
5455 (_mm256_mask_rcp_ph): Likewise.
5456 (_mm_maskz_rcp_ph): Likewise.
5457 (_mm256_maskz_rcp_ph): Likewise.
5458 (_mm_scalef_ph): Likewise.
5459 (_mm256_scalef_ph): Likewise.
5460 (_mm_mask_scalef_ph): Likewise.
5461 (_mm256_mask_scalef_ph): Likewise.
5462 (_mm_maskz_scalef_ph): Likewise.
5463 (_mm256_maskz_scalef_ph): Likewise.
5464 * config/i386/i386-builtin.def: Add new builtins.
5465 * config/i386/sse.md (VFH_AVX512VL): New.
5466 (avx512fp16_rcp<mode>2<mask_name>): Ditto.
5467 (avx512fp16_vmrcpv8hf2<mask_scalar_name>): Ditto.
5468 (avx512f_vmscalef<mode><mask_scalar_name><round_scalar_name>):
5469 Adjust to support HF vector modes.
5470 (<avx512>_scalef<mode><mask_name><round_name>): Ditto.
5472 2021-09-14 liuhongt <hongtao.liu@intel.com>
5474 * config/i386/avx512fp16intrin.h: (_mm512_sqrt_ph):
5476 (_mm512_mask_sqrt_ph): Likewise.
5477 (_mm512_maskz_sqrt_ph): Likewise.
5478 (_mm512_sqrt_round_ph): Likewise.
5479 (_mm512_mask_sqrt_round_ph): Likewise.
5480 (_mm512_maskz_sqrt_round_ph): Likewise.
5481 (_mm512_rsqrt_ph): Likewise.
5482 (_mm512_mask_rsqrt_ph): Likewise.
5483 (_mm512_maskz_rsqrt_ph): Likewise.
5484 (_mm_rsqrt_sh): Likewise.
5485 (_mm_mask_rsqrt_sh): Likewise.
5486 (_mm_maskz_rsqrt_sh): Likewise.
5487 (_mm_sqrt_sh): Likewise.
5488 (_mm_mask_sqrt_sh): Likewise.
5489 (_mm_maskz_sqrt_sh): Likewise.
5490 (_mm_sqrt_round_sh): Likewise.
5491 (_mm_mask_sqrt_round_sh): Likewise.
5492 (_mm_maskz_sqrt_round_sh): Likewise.
5493 * config/i386/avx512fp16vlintrin.h (_mm_sqrt_ph): New intrinsic.
5494 (_mm256_sqrt_ph): Likewise.
5495 (_mm_mask_sqrt_ph): Likewise.
5496 (_mm256_mask_sqrt_ph): Likewise.
5497 (_mm_maskz_sqrt_ph): Likewise.
5498 (_mm256_maskz_sqrt_ph): Likewise.
5499 (_mm_rsqrt_ph): Likewise.
5500 (_mm256_rsqrt_ph): Likewise.
5501 (_mm_mask_rsqrt_ph): Likewise.
5502 (_mm256_mask_rsqrt_ph): Likewise.
5503 (_mm_maskz_rsqrt_ph): Likewise.
5504 (_mm256_maskz_rsqrt_ph): Likewise.
5505 * config/i386/i386-builtin-types.def: Add corresponding builtin types.
5506 * config/i386/i386-builtin.def: Add corresponding new builtins.
5507 * config/i386/i386-expand.c
5508 (ix86_expand_args_builtin): Handle new builtins.
5509 (ix86_expand_round_builtin): Ditto.
5510 * config/i386/sse.md (VF_AVX512FP16VL): New.
5511 (sqrt<mode>2): Adjust for HF vector modes.
5512 (<sse>_sqrt<mode>2<mask_name><round_name>): Likewise.
5513 (<sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>):
5515 (<sse>_rsqrt<mode>2<mask_name>): New.
5516 (avx512fp16_vmrsqrtv8hf2<mask_scalar_name>): Likewise.
5518 2021-09-13 Thomas Schwinge <thomas@codesourcery.com>
5521 * diagnostic-spec.c (warning_suppressed_at, copy_warning): Handle
5522 'RESERVED_LOCATION_P' locations.
5523 * warning-control.cc (get_nowarn_spec, suppress_warning)
5524 (copy_warning): Likewise.
5526 2021-09-13 Thomas Schwinge <thomas@codesourcery.com>
5528 * diagnostic-spec.h (typedef xint_hash_t): Use 'location_t' instead of...
5529 (typedef key_type_t): ... this. Remove.
5530 (nowarn_map): Document.
5531 * diagnostic-spec.c (nowarn_map): Likewise.
5532 * warning-control.cc (convert_to_key): Evolve functions into...
5533 (get_location): ... these. Adjust all users.
5535 2021-09-13 Thomas Schwinge <thomas@codesourcery.com>
5537 * warning-control.cc (copy_warning): Remove 'nowarn_map' setup.
5539 2021-09-13 Jason Merrill <jason@redhat.com>
5541 * params.opt: Add destructive-interference-size and
5542 constructive-interference-size.
5543 * doc/invoke.texi: Document them.
5544 * config/aarch64/aarch64.c (aarch64_override_options_internal):
5546 * config/arm/arm.c (arm_option_override): Set them.
5547 * config/i386/i386-options.c (ix86_option_override_internal):
5550 2021-09-13 Martin Liska <mliska@suse.cz>
5551 H.J. Lu <hjl.tools@gmail.com>
5554 * common/config/i386/cpuinfo.h (cpu_indicator_init): Add support
5555 for x86-64 micro levels for __builtin_cpu_supports.
5556 * common/config/i386/i386-cpuinfo.h (enum feature_priority):
5557 Add priorities for the micro-arch levels.
5558 (enum processor_features): Add new features.
5559 * common/config/i386/i386-isas.h: Add micro-arch features.
5560 * config/i386/i386-builtins.c (get_builtin_code_for_version):
5561 Support the micro-arch levels by callsing
5562 __builtin_cpu_supports.
5563 * doc/extend.texi: Document that the levels are support by
5564 __builtin_cpu_supports.
5566 2021-09-13 Andrew Pinski <apinski@marvell.com>
5569 * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin_lane_check):
5571 (aarch64_general_fold_builtin): Handle AARCH64_SIMD_BUILTIN_LANE_CHECK.
5572 (aarch64_general_gimple_fold_builtin): Likewise.
5574 2021-09-13 Andrew Pinski <apinski@marvell.com>
5576 * config.gcc: Add m32r-*-linux* and m32rle-*-linux*
5577 to the Unsupported targets list.
5578 Remove support for m32r-*-linux* and m32rle-*-linux*.
5579 * config/m32r/linux.h: Removed.
5580 * config/m32r/t-linux: Removed.
5582 2021-09-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5585 * config/aarch64/aarch64.c (aarch64_classify_address): Don't allow
5586 register index for SVE predicate modes.
5588 2021-09-13 Aldy Hernandez <aldyh@redhat.com>
5590 * tree-ssa-threadbackward.c
5591 (back_threader_profitability::profitable_path_p): Remove FSM
5593 (back_threader_registry::register_path): Same.
5594 * tree-ssa-threadedge.c
5595 (jump_threader::simplify_control_stmt_condition): Same.
5596 * tree-ssa-threadupdate.c (jt_path_registry::jt_path_registry):
5597 Add backedge_threads argument.
5598 (fwd_jt_path_registry::fwd_jt_path_registry): Pass
5599 backedge_threads argument.
5600 (back_jt_path_registry::back_jt_path_registry): Same.
5601 (dump_jump_thread_path): Adjust for FSM removal.
5602 (back_jt_path_registry::rewire_first_differing_edge): Same.
5603 (back_jt_path_registry::adjust_paths_after_duplication): Same.
5604 (back_jt_path_registry::update_cfg): Same.
5605 (jt_path_registry::register_jump_thread): Same.
5606 * tree-ssa-threadupdate.h (enum jump_thread_edge_type): Remove
5608 (class back_jt_path_registry): Add backedge_threads to
5611 2021-09-13 Martin Liska <mliska@suse.cz>
5614 * asan.h (sanitize_coverage_p): Handle when fn == NULL.
5616 2021-09-13 H.J. Lu <hjl.tools@gmail.com>
5619 * config/i386/i386.h (TARGET_AVX256_MOVE_BY_PIECES): New.
5620 (TARGET_AVX256_STORE_BY_PIECES): Likewise.
5621 (MOVE_MAX): Check TARGET_AVX256_MOVE_BY_PIECES and
5622 TARGET_AVX256_STORE_BY_PIECES instead of
5623 TARGET_AVX256_SPLIT_UNALIGNED_LOAD and
5624 TARGET_AVX256_SPLIT_UNALIGNED_STORE.
5625 (STORE_MAX_PIECES): Check TARGET_AVX256_STORE_BY_PIECES instead
5626 of TARGET_AVX256_SPLIT_UNALIGNED_STORE.
5627 * config/i386/x86-tune.def (X86_TUNE_AVX256_MOVE_BY_PIECES): New.
5628 (X86_TUNE_AVX256_STORE_BY_PIECES): Likewise.
5630 2021-09-13 liuhongt <hongtao.liu@intel.com>
5633 * expmed.c (extract_bit_field_using_extv): Use
5634 gen_lowpart_if_possible instead of gen_lowpart to avoid ICE.
5636 2021-09-13 Aldy Hernandez <aldyh@redhat.com>
5638 * Makefile.in (OBJS): Add value-pointer-equiv.o.
5639 * gimple-ssa-evrp.c (class ssa_equiv_stack): Move to
5640 value-pointer-equiv.*.
5641 (ssa_equiv_stack::ssa_equiv_stack): Same.
5642 (ssa_equiv_stack::enter): Same.
5643 (ssa_equiv_stack::leave): Same.
5644 (ssa_equiv_stack::push_replacement): Same.
5645 (ssa_equiv_stack::get_replacement): Same.
5646 (is_pointer_ssa): Same.
5647 (class pointer_equiv_analyzer): Same.
5648 (pointer_equiv_analyzer::pointer_equiv_analyzer): Same.
5649 (pointer_equiv_analyzer::~pointer_equiv_analyzer): Same.
5650 (pointer_equiv_analyzer::set_global_equiv): Same.
5651 (pointer_equiv_analyzer::set_cond_equiv): Same.
5652 (pointer_equiv_analyzer::get_equiv): Same.
5653 (pointer_equiv_analyzer::enter): Same.
5654 (pointer_equiv_analyzer::leave): Same.
5655 (pointer_equiv_analyzer::get_equiv_expr): Same.
5656 (pta_valueize): Same.
5657 (pointer_equiv_analyzer::visit_stmt): Same.
5658 (pointer_equiv_analyzer::visit_edge): Same.
5659 (hybrid_folder::value_of_expr): Same.
5660 (hybrid_folder::value_on_edge): Same.
5661 * value-pointer-equiv.cc: New file.
5662 * value-pointer-equiv.h: New file.
5664 2021-09-13 Richard Earnshaw <rearnsha@arm.com>
5667 * gimple-fold.c (gimple_fold_builtin_memory_op): Allow folding
5668 memcpy if the size is not more than MOVE_MAX * MOVE_RATIO.
5670 2021-09-13 Richard Earnshaw <rearnsha@arm.com>
5673 * config/arm/arm.md (movmisaligndi): New define_expand.
5674 * config/arm/vec-common.md (movmisalign<mode>): Iterate over VDQ mode.
5676 2021-09-13 Richard Earnshaw <rearnsha@arm.com>
5679 * emit-rtl.c (gen_highpart): Use adjust_address to handle
5680 MEM rather than calling simplify_gen_subreg.
5682 2021-09-13 Jan-Benedict Glaw <jbglaw@Å‚ug-owl.de>
5684 * config/alpha/vms.h (INIT_CUMULATIVE_ARGS): Wrap multi-statment
5685 define into a block.
5687 2021-09-13 Richard Biener <rguenther@suse.de>
5689 * config/darwin.h (DARWIN_PREFER_DWARF): Do not define.
5690 * config/i386/darwin.h (PREFERRED_DEBUGGING_TYPE): Do not
5691 change based on DARWIN_PREFER_DWARF not being defined.
5693 2021-09-13 Richard Biener <rguenther@suse.de>
5695 * config/i386/lynx.h: Remove undef of PREFERRED_DEBUGGING_TYPE
5696 to inherit from elfos.h
5698 2021-09-13 Richard Biener <rguenther@suse.de>
5700 * config.gcc: Add cr16-*-* to the list of obsoleted targets.
5702 2021-09-13 Richard Biener <rguenther@suse.de>
5704 * config/avr/elf.h (PREFERRED_DEBUGGING_TYPE): Remove
5705 override, pick up DWARF2_DEBUG define from elfos.h
5707 2021-09-13 Richard Biener <rguenther@suse.de>
5709 * config/rx/rx.h (PREFERRED_DEBUGGING_TYPE): Always define to
5712 2021-09-13 Richard Biener <rguenther@suse.de>
5714 * config/alpha/vms.h (PREFERRED_DEBUGGING_TYPE): Define to
5717 2021-09-13 Richard Biener <rguenther@suse.de>
5719 * config/i386/cygming.h: Always default to DWARF2 debugging.
5720 Do not define DBX_DEBUGGING_INFO, that's done via dbxcoff.h
5722 * doc/install.texi: Document binutils 2.16 as minimum
5723 requirement for mingw.
5725 2021-09-13 Kewen Lin <linkw@linux.ibm.com>
5727 * config/rs6000/rs6000.c (struct rs6000_cost_data): New members
5728 nstmts, nloads and extra_ctor_cost.
5729 (rs6000_density_test): Add load density related heuristics. Do
5730 extra costing on vector construction statements if need.
5731 (rs6000_init_cost): Init new members.
5732 (rs6000_update_target_cost_per_stmt): New function.
5733 (rs6000_add_stmt_cost): Factor vect_nonmem hunk out to function
5734 rs6000_update_target_cost_per_stmt and call it.
5736 2021-09-13 Kewen Lin <linkw@linux.ibm.com>
5738 * config/rs6000/rs6000.c (struct rs6000_cost_data): Remove typedef.
5739 (rs6000_init_cost): Adjust.
5741 2021-09-13 liuhongt <hongtao.liu@intel.com>
5743 * config/i386/i386.md: (UNSPEC_COPYSIGN): Remove.
5744 (UNSPEC_XORSIGN): Ditto.
5746 2021-09-12 Roger Sayle <roger@nextmovesoftware.com>
5748 * expr.c (convert_move): Preserve SUBREG_PROMOTED_VAR_P when
5749 creating a (wider) partial subreg from a SUBREG_PROMOTED_VAR_P
5752 2021-09-11 Aldy Hernandez <aldyh@redhat.com>
5754 * tree-ssa-threadbackward.c (class back_threader_registry): Use
5755 back_jt_path_registry.
5756 * tree-ssa-threadedge.c (jump_threader::jump_threader): Use
5757 fwd_jt_path_registry.
5758 * tree-ssa-threadedge.h (class jump_threader): Same..
5759 * tree-ssa-threadupdate.c
5760 (jump_thread_path_registry::jump_thread_path_registry): Rename...
5761 (jt_path_registry::jt_path_registry): ...to this.
5762 (jump_thread_path_registry::~jump_thread_path_registry): Rename...
5763 (jt_path_registry::~jt_path_registry): ...this.
5764 (fwd_jt_path_registry::fwd_jt_path_registry): New.
5765 (fwd_jt_path_registry::~fwd_jt_path_registry): New.
5766 (jump_thread_path_registry::allocate_thread_edge): Rename...
5767 (jt_path_registry::allocate_thread_edge): ...to this.
5768 (jump_thread_path_registry::allocate_thread_path): Rename...
5769 (jt_path_registry::allocate_thread_path): ...to this.
5770 (jump_thread_path_registry::lookup_redirection_data): Rename...
5771 (fwd_jt_path_registry::lookup_redirection_data): ...to this.
5772 (jump_thread_path_registry::thread_block_1): Rename...
5773 (fwd_jt_path_registry::thread_block_1): ...to this.
5774 (jump_thread_path_registry::thread_block): Rename...
5775 (fwd_jt_path_registry::thread_block): ...to this.
5776 (jt_path_registry::thread_through_loop_header): Rename...
5777 (fwd_jt_path_registry::thread_through_loop_header): ...to this.
5778 (jump_thread_path_registry::mark_threaded_blocks): Rename...
5779 (fwd_jt_path_registry::mark_threaded_blocks): ...to this.
5780 (jump_thread_path_registry::debug_path): Rename...
5781 (jt_path_registry::debug_path): ...to this.
5782 (jump_thread_path_registry::dump): Rename...
5783 (jt_path_registry::debug): ...to this.
5784 (jump_thread_path_registry::rewire_first_differing_edge): Rename...
5785 (back_jt_path_registry::rewire_first_differing_edge): ...to this.
5786 (jump_thread_path_registry::adjust_paths_after_duplication): Rename...
5787 (back_jt_path_registry::adjust_paths_after_duplication): ...to this.
5788 (jump_thread_path_registry::duplicate_thread_path): Rename...
5789 (back_jt_path_registry::duplicate_thread_path): ...to this. Also,
5790 drop ill-formed candidates.
5791 (jump_thread_path_registry::remove_jump_threads_including): Rename...
5792 (fwd_jt_path_registry::remove_jump_threads_including): ...to this.
5793 (jt_path_registry::thread_through_all_blocks): New.
5794 (back_jt_path_registry::update_cfg): New.
5795 (fwd_jt_path_registry::update_cfg): New.
5796 (jump_thread_path_registry::register_jump_thread): Rename...
5797 (jt_path_registry::register_jump_thread): ...to this.
5798 * tree-ssa-threadupdate.h (class jump_thread_path_registry):
5800 (class jt_path_registry): ...here.
5801 (class fwd_jt_path_registry): New.
5802 (class back_jt_path_registry): New.
5804 2021-09-10 liuhongt <hongtao.liu@intel.com>
5807 2021-09-01 liuhongt <hongtao.liu@intel.com>
5809 * emit-rtl.c (validate_subreg): Get rid of all float-int
5812 2021-09-10 Jakub Jelinek <jakub@redhat.com>
5814 * tree-core.h (enum omp_memory_order): Add OMP_MEMORY_ORDER_MASK,
5815 OMP_FAIL_MEMORY_ORDER_UNSPECIFIED, OMP_FAIL_MEMORY_ORDER_RELAXED,
5816 OMP_FAIL_MEMORY_ORDER_ACQUIRE, OMP_FAIL_MEMORY_ORDER_RELEASE,
5817 OMP_FAIL_MEMORY_ORDER_ACQ_REL, OMP_FAIL_MEMORY_ORDER_SEQ_CST and
5818 OMP_FAIL_MEMORY_ORDER_MASK enumerators.
5819 (OMP_FAIL_MEMORY_ORDER_SHIFT): Define.
5820 * gimple-pretty-print.c (dump_gimple_omp_atomic_load,
5821 dump_gimple_omp_atomic_store): Print [weak] for weak atomic
5823 * gimple.h (enum gf_mask): Change GF_OMP_ATOMIC_MEMORY_ORDER
5824 to 6-bit mask, adjust GF_OMP_ATOMIC_NEED_VALUE value and add
5826 (gimple_omp_atomic_weak_p, gimple_omp_atomic_set_weak): New inline
5828 * tree.h (OMP_ATOMIC_WEAK): Define.
5829 * tree-pretty-print.c (dump_omp_atomic_memory_order): Adjust for
5830 fail memory order being encoded in the same enum and also print
5831 fail clause if present.
5832 (dump_generic_node): Print weak clause if OMP_ATOMIC_WEAK.
5833 * gimplify.c (goa_stabilize_expr): Add target_expr and rhs arguments,
5834 handle pre_p == NULL case as a test mode that only returns value
5835 but doesn't change gimplify nor change anything otherwise, adjust
5836 recursive calls, add MODIFY_EXPR, ADDR_EXPR, COND_EXPR, TARGET_EXPR
5837 and CALL_EXPR handling, adjust COMPOUND_EXPR handling for
5838 __builtin_clear_padding calls, for !rhs gimplify as lvalue rather
5840 (gimplify_omp_atomic): Adjust goa_stabilize_expr caller. Handle
5841 COND_EXPR rhs. Set weak flag on gimple load/store for
5843 * omp-expand.c (omp_memory_order_to_fail_memmodel): New function.
5844 (omp_memory_order_to_memmodel): Adjust for fail clause encoded
5846 (expand_omp_atomic_cas): New function.
5847 (expand_omp_atomic_pipeline): Use omp_memory_order_to_fail_memmodel
5849 (expand_omp_atomic): Attempt to optimize atomic compare and exchange
5850 using expand_omp_atomic_cas.
5852 2021-09-10 Aldy Hernandez <aldyh@redhat.com>
5853 Michael Matz <matz@suse.de>
5855 * tree-pass.h (PROP_loop_opts_done): New.
5856 * gimple-range-path.cc (path_range_query::internal_range_of_expr):
5857 Intersect with global range.
5858 * tree-ssa-loop.c (tree_ssa_loop_done): Set PROP_loop_opts_done.
5859 * tree-ssa-threadbackward.c
5860 (back_threader_profitability::profitable_path_p): Disable
5861 threading through latches until after loop optimizations have run.
5863 2021-09-10 David Faust <david.faust@oracle.com>
5865 * doc/invoke.texi: Document BPF -mcpu, -mjmpext, -mjmp32 and -malu32
5868 2021-09-10 David Faust <david.faust@oracle.com>
5870 * config/bpf/bpf-opts.h (bpf_isa_version): New enum.
5871 * config/bpf/bpf-protos.h (bpf_expand_cbranch): New.
5872 * config/bpf/bpf.c (bpf_option_override): Handle -mcpu option.
5873 (bpf_expand_cbranch): New function.
5874 * config/bpf/bpf.md (AM mode iterator): Conditionalize support for SI
5876 (zero_extendsidi2): Only use mov32 instruction if it is available.
5877 (SIM mode iterator): Conditionalize support for SI mode.
5878 (JM mode iterator): New.
5879 (cbranchdi4): Update name, use new JM iterator. Use bpf_expand_cbranch.
5880 (*branch_on_di): Update name, use new JM iterator.
5881 * config/bpf/bpf.opt: (mjmpext): New option.
5885 (bpf_isa): New enum.
5887 2021-09-10 David Faust <david.faust@oracle.com>
5889 * config/bpf/bpf.md (zero_extendhidi2): Add new output template
5890 for register-to-register extensions.
5891 (zero_extendqidi2): Likewise.
5893 2021-09-10 Richard Biener <rguenther@suse.de>
5895 PR middle-end/102273
5896 * internal-fn.c (expand_DEFERRED_INIT): Always expand non-SSA vars.
5898 2021-09-10 Richard Biener <rguenther@suse.de>
5900 PR middle-end/102269
5901 * gimplify.c (is_var_need_auto_init): Empty types do not need
5904 2021-09-10 Richard Biener <rguenther@suse.de>
5906 * configure.ac (--with-stabs): Remove.
5907 * configure: Regenerate.
5908 * doc/install.texi: Remove --with-stabs documentation.
5910 2021-09-10 liuhongt <hongtao.liu@intel.com>
5912 * config/i386/avx512fp16intrin.h: (_mm512_cmp_ph_mask):
5914 (_mm512_mask_cmp_ph_mask): Likewise.
5915 (_mm512_cmp_round_ph_mask): Likewise.
5916 (_mm512_mask_cmp_round_ph_mask): Likewise.
5917 (_mm_cmp_sh_mask): Likewise.
5918 (_mm_mask_cmp_sh_mask): Likewise.
5919 (_mm_cmp_round_sh_mask): Likewise.
5920 (_mm_mask_cmp_round_sh_mask): Likewise.
5921 (_mm_comieq_sh): Likewise.
5922 (_mm_comilt_sh): Likewise.
5923 (_mm_comile_sh): Likewise.
5924 (_mm_comigt_sh): Likewise.
5925 (_mm_comige_sh): Likewise.
5926 (_mm_comineq_sh): Likewise.
5927 (_mm_ucomieq_sh): Likewise.
5928 (_mm_ucomilt_sh): Likewise.
5929 (_mm_ucomile_sh): Likewise.
5930 (_mm_ucomigt_sh): Likewise.
5931 (_mm_ucomige_sh): Likewise.
5932 (_mm_ucomineq_sh): Likewise.
5933 (_mm_comi_round_sh): Likewise.
5934 (_mm_comi_sh): Likewise.
5935 * config/i386/avx512fp16vlintrin.h (_mm_cmp_ph_mask): New intrinsic.
5936 (_mm_mask_cmp_ph_mask): Likewise.
5937 (_mm256_cmp_ph_mask): Likewise.
5938 (_mm256_mask_cmp_ph_mask): Likewise.
5939 * config/i386/i386-builtin-types.def: Add corresponding builtin types.
5940 * config/i386/i386-builtin.def: Add corresponding new builtins.
5941 * config/i386/i386-expand.c
5942 (ix86_expand_args_builtin): Handle new builtin types.
5943 (ix86_expand_round_builtin): Ditto.
5944 * config/i386/i386.md (ssevecmode): Add HF mode.
5945 (MODEFH): New mode iterator.
5946 * config/i386/sse.md
5947 (V48H_AVX512VL): New mode iterator to support HF vector modes.
5948 Ajdust corresponding description.
5949 (ssecmpintprefix): New.
5950 (VI12_AVX512VL): Adjust to support HF vector modes.
5951 (cmp_imm_predicate): Likewise.
5952 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
5954 (avx512f_vmcmp<mode>3<round_saeonly_name>): Likewise.
5955 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Likewise.
5956 (<sse>_<unord>comi<round_saeonly_name>): Likewise.
5958 2021-09-10 liuhongt <hongtao.liu@intel.com>
5960 * config/i386/avx512fp16intrin.h: (_mm512_max_ph): New intrinsic.
5961 (_mm512_mask_max_ph): Likewise.
5962 (_mm512_maskz_max_ph): Likewise.
5963 (_mm512_min_ph): Likewise.
5964 (_mm512_mask_min_ph): Likewise.
5965 (_mm512_maskz_min_ph): Likewise.
5966 (_mm512_max_round_ph): Likewise.
5967 (_mm512_mask_max_round_ph): Likewise.
5968 (_mm512_maskz_max_round_ph): Likewise.
5969 (_mm512_min_round_ph): Likewise.
5970 (_mm512_mask_min_round_ph): Likewise.
5971 (_mm512_maskz_min_round_ph): Likewise.
5972 (_mm_max_sh): Likewise.
5973 (_mm_mask_max_sh): Likewise.
5974 (_mm_maskz_max_sh): Likewise.
5975 (_mm_min_sh): Likewise.
5976 (_mm_mask_min_sh): Likewise.
5977 (_mm_maskz_min_sh): Likewise.
5978 (_mm_max_round_sh): Likewise.
5979 (_mm_mask_max_round_sh): Likewise.
5980 (_mm_maskz_max_round_sh): Likewise.
5981 (_mm_min_round_sh): Likewise.
5982 (_mm_mask_min_round_sh): Likewise.
5983 (_mm_maskz_min_round_sh): Likewise.
5984 * config/i386/avx512fp16vlintrin.h (_mm_max_ph): New intrinsic.
5985 (_mm256_max_ph): Likewise.
5986 (_mm_mask_max_ph): Likewise.
5987 (_mm256_mask_max_ph): Likewise.
5988 (_mm_maskz_max_ph): Likewise.
5989 (_mm256_maskz_max_ph): Likewise.
5990 (_mm_min_ph): Likewise.
5991 (_mm256_min_ph): Likewise.
5992 (_mm_mask_min_ph): Likewise.
5993 (_mm256_mask_min_ph): Likewise.
5994 (_mm_maskz_min_ph): Likewise.
5995 (_mm256_maskz_min_ph): Likewise.
5996 * config/i386/i386-builtin-types.def: Add corresponding builtin types.
5997 * config/i386/i386-builtin.def: Add corresponding new builtins.
5998 * config/i386/i386-expand.c
5999 (ix86_expand_args_builtin): Handle new builtin types.
6000 * config/i386/sse.md
6001 (<code><mode>3<mask_name><round_saeonly_name>): Adjust to
6002 support HF vector modes.
6003 (*<code><mode>3<mask_name><round_saeonly_name>): Likewise.
6004 (ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>):
6006 (<sse>_vm<code><mode>3<mask_scalar_name><round_saeonly_scalar_name>):
6008 * config/i386/subst.md (round_saeonly_mode512bit_condition):
6009 Adjust for HF vector modes.
6011 2021-09-10 Liu, Hongtao <hongtao.liu@intel.com>
6013 * config/i386/avx512fp16intrin.h (_mm_add_sh): New intrinsic.
6014 (_mm_mask_add_sh): Likewise.
6015 (_mm_maskz_add_sh): Likewise.
6016 (_mm_sub_sh): Likewise.
6017 (_mm_mask_sub_sh): Likewise.
6018 (_mm_maskz_sub_sh): Likewise.
6019 (_mm_mul_sh): Likewise.
6020 (_mm_mask_mul_sh): Likewise.
6021 (_mm_maskz_mul_sh): Likewise.
6022 (_mm_div_sh): Likewise.
6023 (_mm_mask_div_sh): Likewise.
6024 (_mm_maskz_div_sh): Likewise.
6025 (_mm_add_round_sh): Likewise.
6026 (_mm_mask_add_round_sh): Likewise.
6027 (_mm_maskz_add_round_sh): Likewise.
6028 (_mm_sub_round_sh): Likewise.
6029 (_mm_mask_sub_round_sh): Likewise.
6030 (_mm_maskz_sub_round_sh): Likewise.
6031 (_mm_mul_round_sh): Likewise.
6032 (_mm_mask_mul_round_sh): Likewise.
6033 (_mm_maskz_mul_round_sh): Likewise.
6034 (_mm_div_round_sh): Likewise.
6035 (_mm_mask_div_round_sh): Likewise.
6036 (_mm_maskz_div_round_sh): Likewise.
6037 * config/i386/i386-builtin-types.def: Add corresponding builtin types.
6038 * config/i386/i386-builtin.def: Add corresponding new builtins.
6039 * config/i386/i386-expand.c
6040 (ix86_expand_round_builtin): Handle new builtins.
6041 * config/i386/sse.md (VF_128): Change description.
6042 (<sse>_vm<plusminus_insn><mode>3<mask_scalar_name><round_scalar_name>):
6043 Adjust to support HF vector modes.
6044 (<sse>_vm<multdiv_mnemonic><mode>3<mask_scalar_name><round_scalar_name>):
6047 2021-09-10 H.J. Lu <hjl.tools@gmail.com>
6049 * config/i386/i386-expand.c
6050 (ix86_avx256_split_vector_move_misalign): Handle V16HF mode.
6051 * config/i386/i386.c
6052 (ix86_preferred_simd_mode): Handle HF mode.
6053 * config/i386/sse.md (V_256H): New mode iterator.
6054 (avx_vextractf128<mode>): Use it.
6055 (VEC_INIT_MODE): Align vector HFmode condition to vector
6056 HImodes since there're no real HF instruction used.
6057 (VEC_INIT_HALF_MODE): Ditto.
6059 (VIHF_AVX512BW): Ditto.
6060 (*vec_extracthf): Ditto.
6061 (VEC_EXTRACT_MODE): Ditto.
6063 2021-09-10 Richard Biener <rguenther@suse.de>
6066 * config/dbx.h: Remove.
6067 * config/dbxcoff.h: Do not define PREFERRED_DEBUGGING_TYPE.
6068 * config/lynx.h: Likewise.
6070 2021-09-10 liuhongt <hongtao.liu@intel.com>
6072 * config/i386/i386-expand.c (ix86_expand_copysign): Expand
6073 right into ANDNOT + AND + IOR, using paradoxical subregs.
6074 (ix86_split_copysign_const): Remove.
6075 (ix86_split_copysign_var): Ditto.
6076 * config/i386/i386-protos.h (ix86_split_copysign_const): Dotto.
6077 (ix86_split_copysign_var): Ditto.
6078 * config/i386/i386.md (@copysign<mode>3_const): Ditto.
6079 (@copysign<mode>3_var): Ditto.
6081 2021-09-09 qing zhao <qing.zhao@oracle.com>
6083 * builtins.c (expand_builtin_memset): Make external visible.
6084 * builtins.h (expand_builtin_memset): Declare extern.
6085 * common.opt (ftrivial-auto-var-init=): New option.
6086 * doc/extend.texi: Document the uninitialized attribute.
6087 * doc/invoke.texi: Document -ftrivial-auto-var-init.
6088 * flag-types.h (enum auto_init_type): New enumerated type
6090 * gimple-fold.c (clear_padding_type): Add one new parameter.
6091 (clear_padding_union): Likewise.
6092 (clear_padding_emit_loop): Likewise.
6093 (clear_type_padding_in_mask): Likewise.
6094 (gimple_fold_builtin_clear_padding): Handle this new parameter.
6095 * gimplify.c (gimple_add_init_for_auto_var): New function.
6096 (gimple_add_padding_init_for_auto_var): New function.
6097 (is_var_need_auto_init): New function.
6098 (gimplify_decl_expr): Add initialization to automatic variables per
6100 (gimplify_call_expr): Add one new parameter for call to
6101 __builtin_clear_padding.
6102 (gimplify_init_constructor): Add padding initialization in the end.
6103 * internal-fn.c (INIT_PATTERN_VALUE): New macro.
6104 (expand_DEFERRED_INIT): New function.
6105 * internal-fn.def (DEFERRED_INIT): New internal function.
6106 * tree-cfg.c (verify_gimple_call): Verify calls to .DEFERRED_INIT.
6107 * tree-sra.c (generate_subtree_deferred_init): New function.
6108 (scan_function): Avoid setting cannot_scalarize_away_bitmap for
6109 calls to .DEFERRED_INIT.
6110 (sra_modify_deferred_init): New function.
6111 (sra_modify_function_body): Handle calls to DEFERRED_INIT specially.
6112 * tree-ssa-structalias.c (find_func_aliases_for_call): Likewise.
6113 * tree-ssa-uninit.c (warn_uninit): Handle calls to DEFERRED_INIT
6115 (check_defs): Likewise.
6116 (warn_uninitialized_vars): Likewise.
6117 * tree-ssa.c (ssa_undefined_value_p): Likewise.
6118 * tree.c (build_common_builtin_nodes): Build tree node for
6119 BUILT_IN_CLEAR_PADDING when needed.
6121 2021-09-09 Richard Biener <rguenther@suse.de>
6123 * tree-ssa-loop-im.c (fill_always_executed_in_1): Walk
6126 2021-09-09 Richard Biener <rguenther@suse.de>
6128 * tree-ssa-loop-im.c (fill_always_executed_in_1): Integrate
6129 DOM walk from get_loop_body_in_dom_order using a worklist
6132 2021-09-09 liuhongt <hongtao.liu@intel.com>
6134 * config.gcc: Add avx512fp16vlintrin.h.
6135 * config/i386/avx512fp16intrin.h: (_mm512_add_ph): New intrinsic.
6136 (_mm512_mask_add_ph): Likewise.
6137 (_mm512_maskz_add_ph): Likewise.
6138 (_mm512_sub_ph): Likewise.
6139 (_mm512_mask_sub_ph): Likewise.
6140 (_mm512_maskz_sub_ph): Likewise.
6141 (_mm512_mul_ph): Likewise.
6142 (_mm512_mask_mul_ph): Likewise.
6143 (_mm512_maskz_mul_ph): Likewise.
6144 (_mm512_div_ph): Likewise.
6145 (_mm512_mask_div_ph): Likewise.
6146 (_mm512_maskz_div_ph): Likewise.
6147 (_mm512_add_round_ph): Likewise.
6148 (_mm512_mask_add_round_ph): Likewise.
6149 (_mm512_maskz_add_round_ph): Likewise.
6150 (_mm512_sub_round_ph): Likewise.
6151 (_mm512_mask_sub_round_ph): Likewise.
6152 (_mm512_maskz_sub_round_ph): Likewise.
6153 (_mm512_mul_round_ph): Likewise.
6154 (_mm512_mask_mul_round_ph): Likewise.
6155 (_mm512_maskz_mul_round_ph): Likewise.
6156 (_mm512_div_round_ph): Likewise.
6157 (_mm512_mask_div_round_ph): Likewise.
6158 (_mm512_maskz_div_round_ph): Likewise.
6159 * config/i386/avx512fp16vlintrin.h: New header.
6160 * config/i386/i386-builtin-types.def (V16HF, V8HF, V32HF):
6161 Add new builtin types.
6162 * config/i386/i386-builtin.def: Add corresponding builtins.
6163 * config/i386/i386-expand.c
6164 (ix86_expand_args_builtin): Handle new builtin types.
6165 (ix86_expand_round_builtin): Likewise.
6166 * config/i386/immintrin.h: Include avx512fp16vlintrin.h
6167 * config/i386/sse.md (VFH): New mode_iterator.
6169 (avx512fmaskmode): Add HF vector modes.
6170 (avx512fmaskhalfmode): Likewise.
6171 (<plusminus_insn><mode>3<mask_name><round_name>): Adjust to for
6173 (*<plusminus_insn><mode>3<mask_name><round_name>): Likewise.
6174 (mul<mode>3<mask_name><round_name>): Likewise.
6175 (*mul<mode>3<mask_name><round_name>): Likewise.
6176 (div<mode>3): Likewise.
6177 (<sse>_div<mode>3<mask_name><round_name>): Likewise.
6178 * config/i386/subst.md (SUBST_V): Add HF vector modes.
6179 (SUBST_A): Likewise.
6180 (round_mode512bit_condition): Adjust for V32HFmode.
6182 2021-09-09 liuhongt <hongtao.liu@intel.com>
6185 * config/i386/sse.md (reduc_plus_scal_<mode>): Split to ..
6186 (reduc_plus_scal_v4sf): .. this, New define_expand.
6187 (reduc_plus_scal_v2df): .. and this, New define_expand.
6189 2021-09-09 liuhongt <hongtao.liu@intel.com>
6192 * config/i386/sse.md (*vec_extract<mode><ssescalarmodelower>_valign):
6195 2021-09-08 Jonathan Wakely <jwakely@redhat.com>
6198 * doc/trouble.texi (Copy Assignment): Fix description of
6199 behaviour and fix code in example.
6201 2021-09-08 Segher Boessenkool <segher@kernel.crashing.org>
6204 * config/rs6000/rs6000-logue.c (rs6000_emit_epilogue): For ELFv2 use
6205 r11 instead of r12 for restoring CR.
6207 2021-09-08 Jakub Jelinek <jakub@redhat.com>
6208 liuhongt <hongtao.liu@intel.com>
6211 * config/i386/i386.md (@xorsign<mode>3_1): Remove.
6212 * config/i386/i386-expand.c (ix86_expand_xorsign): Expand right away
6213 into AND with mask and XOR, using paradoxical subregs.
6214 (ix86_split_xorsign): Remove.
6215 * config/i386/i386-protos.h (ix86_split_xorsign): Remove.
6217 2021-09-08 Di Zhao <dizhao@os.amperecomputing.com>
6219 * tree-ssa-sccvn.c (vn_nary_op_insert_into): fix result compare
6221 2021-09-08 Jakub Jelinek <jakub@redhat.com>
6224 * config/i386/i386.md (xorsign<mode>3): If operands[1] is equal to
6225 operands[2], emit abs<mode>2 instead.
6226 (@xorsign<mode>3_1): Add early-clobbers for output operand, enable
6227 first alternative even for avx, add another alternative with
6228 =&Yv <- 0, Yv, Yvm constraints.
6229 * config/i386/i386-expand.c (ix86_split_xorsign): If op0 is equal
6230 to op1, emit vpandn instead.
6232 2021-09-08 liuhongt <hongtao.liu@intel.com>
6234 * config/i386/avx512fp16intrin.h (_mm_set_ph): New intrinsic.
6235 (_mm256_set_ph): Likewise.
6236 (_mm512_set_ph): Likewise.
6237 (_mm_setr_ph): Likewise.
6238 (_mm256_setr_ph): Likewise.
6239 (_mm512_setr_ph): Likewise.
6240 (_mm_set1_ph): Likewise.
6241 (_mm256_set1_ph): Likewise.
6242 (_mm512_set1_ph): Likewise.
6243 (_mm_setzero_ph): Likewise.
6244 (_mm256_setzero_ph): Likewise.
6245 (_mm512_setzero_ph): Likewise.
6246 (_mm_set_sh): Likewise.
6247 (_mm_load_sh): Likewise.
6248 (_mm_store_sh): Likewise.
6249 * config/i386/i386-builtin-types.def (V8HF): New type.
6250 (DEF_FUNCTION_TYPE (V8HF, V8HI)): New builtin function type
6251 * config/i386/i386-expand.c (ix86_expand_vector_init_duplicate):
6252 Support vector HFmodes.
6253 (ix86_expand_vector_init_one_nonzero): Likewise.
6254 (ix86_expand_vector_init_one_var): Likewise.
6255 (ix86_expand_vector_init_interleave): Likewise.
6256 (ix86_expand_vector_init_general): Likewise.
6257 (ix86_expand_vector_set): Likewise.
6258 (ix86_expand_vector_extract): Likewise.
6259 (ix86_expand_vector_init_concat): Likewise.
6260 (ix86_expand_sse_movcc): Handle vector HFmodes.
6261 (ix86_expand_vector_set_var): Ditto.
6262 * config/i386/i386-modes.def: Add HF vector modes in comment.
6263 * config/i386/i386.c (classify_argument): Add HF vector modes.
6264 (ix86_hard_regno_mode_ok): Allow HF vector modes for AVX512FP16.
6265 (ix86_vector_mode_supported_p): Likewise.
6266 (ix86_set_reg_reg_cost): Handle vector HFmode.
6267 (ix86_get_ssemov): Handle vector HFmode.
6268 (function_arg_advance_64): Pass unamed V16HFmode and V32HFmode
6270 (function_arg_advance_32): Pass V8HF/V16HF/V32HF by sse reg for 32bit
6272 (function_arg_advance_32): Ditto.
6273 * config/i386/i386.h (VALID_AVX512FP16_REG_MODE): New.
6274 (VALID_AVX256_REG_OR_OI_MODE): Rename to ..
6275 (VALID_AVX256_REG_OR_OI_VHF_MODE): .. this, and add V16HF.
6276 (VALID_SSE2_REG_VHF_MODE): New.
6277 (VALID_AVX512VL_128_REG_MODE): Add V8HF and TImode.
6278 (SSE_REG_MODE_P): Add vector HFmode.
6279 * config/i386/i386.md (mode): Add HF vector modes.
6280 (MODE_SIZE): Likewise.
6281 (ssemodesuffix): Add ph suffix for HF vector modes.
6282 * config/i386/sse.md (VFH_128): New mode iterator.
6283 (VMOVE): Adjust for HF vector modes.
6285 (V_256_512): Likewise.
6287 (avx512fmaskmode): Likewise.
6288 (shuffletype): Likewise.
6289 (sseinsnmode): Likewise.
6290 (ssedoublevecmode): Likewise.
6291 (ssehalfvecmode): Likewise.
6292 (ssehalfvecmodelower): Likewise.
6293 (ssePScmode): Likewise.
6294 (ssescalarmode): Likewise.
6295 (ssescalarmodelower): Likewise.
6296 (sseintprefix): Likewise.
6298 (bcstscalarsuff): Likewise.
6299 (xtg_mode): Likewise.
6300 (VI12HF_AVX512VL): New mode_iterator.
6301 (VF_AVX512FP16): Likewise.
6303 (VIHF_256): Likewise.
6304 (VIHF_AVX512BW): Likewise.
6305 (V16_256): Likewise.
6306 (V32_512): Likewise.
6307 (sseintmodesuffix): New mode_attr.
6308 (sse): Add scalar and vector HFmodes.
6309 (ssescalarmode): Add vector HFmode mapping.
6310 (ssescalarmodesuffix): Add sh suffix for HFmode.
6311 (*<sse>_vm<insn><mode>3): Use VFH_128.
6312 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
6313 (*ieee_<ieee_maxmin><mode>3): Likewise.
6314 (<avx512>_blendm<mode>): New define_insn.
6315 (vec_setv8hf): New define_expand.
6316 (vec_set<mode>_0): New define_insn for HF vector set.
6317 (*avx512fp16_movsh): Likewise.
6318 (avx512fp16_movsh): Likewise.
6319 (vec_extract_lo_v32hi): Rename to ...
6320 (vec_extract_lo_<mode>): ... this, and adjust to allow HF
6322 (vec_extract_hi_v32hi): Likewise.
6323 (vec_extract_hi_<mode>): Likewise.
6324 (vec_extract_lo_v16hi): Likewise.
6325 (vec_extract_lo_<mode>): Likewise.
6326 (vec_extract_hi_v16hi): Likewise.
6327 (vec_extract_hi_<mode>): Likewise.
6328 (vec_set_hi_v16hi): Likewise.
6329 (vec_set_hi_<mode>): Likewise.
6330 (vec_set_lo_v16hi): Likewise.
6331 (vec_set_lo_<mode>): Likewise.
6332 (*vec_extract<mode>_0): New define_insn_and_split for HF
6334 (*vec_extracthf): New define_insn.
6335 (VEC_EXTRACT_MODE): Add HF vector modes.
6336 (PINSR_MODE): Add V8HF.
6337 (sse2p4_1): Likewise.
6338 (pinsr_evex_isa): Likewise.
6339 (<sse2p4_1>_pinsr<ssemodesuffix>): Adjust to support
6340 insert for V8HFmode.
6341 (pbroadcast_evex_isa): Add HF vector modes.
6342 (AVX2_VEC_DUP_MODE): Likewise.
6343 (VEC_INIT_MODE): Likewise.
6344 (VEC_INIT_HALF_MODE): Likewise.
6345 (avx2_pbroadcast<mode>): Adjust to support HF vector mode
6347 (avx2_pbroadcast<mode>_1): Likewise.
6348 (<avx512>_vec_dup<mode>_1): Likewise.
6349 (<avx512>_vec_dup<mode><mask_name>): Likewise.
6350 (<mask_codefor><avx512>_vec_dup_gpr<mode><mask_name>):
6353 2021-09-08 Guo, Xuepeng <xuepeng.guo@intel.com>
6354 H.J. Lu <hongjiu.lu@intel.com>
6355 Liu Hongtao <hongtao.liu@intel.com>
6356 Wang Hongyu <hongyu.wang@intel.com>
6357 Xu Dianhong <dianhong.xu@intel.com>
6359 * common/config/i386/cpuinfo.h (get_available_features):
6360 Detect FEATURE_AVX512FP16.
6361 * common/config/i386/i386-common.c
6362 (OPTION_MASK_ISA_AVX512FP16_SET,
6363 OPTION_MASK_ISA_AVX512FP16_UNSET,
6364 OPTION_MASK_ISA2_AVX512FP16_SET,
6365 OPTION_MASK_ISA2_AVX512FP16_UNSET): New.
6366 (OPTION_MASK_ISA2_AVX512BW_UNSET,
6367 OPTION_MASK_ISA2_AVX512BF16_UNSET): Add AVX512FP16.
6368 (ix86_handle_option): Handle -mavx512fp16.
6369 * common/config/i386/i386-cpuinfo.h (enum processor_features):
6370 Add FEATURE_AVX512FP16.
6371 * common/config/i386/i386-isas.h: Add entry for AVX512FP16.
6372 * config.gcc: Add avx512fp16intrin.h.
6373 * config/i386/avx512fp16intrin.h: New intrinsic header.
6374 * config/i386/cpuid.h: Add bit_AVX512FP16.
6375 * config/i386/i386-builtin-types.def: (FLOAT16): New primitive type.
6376 * config/i386/i386-builtins.c: Support _Float16 type for i386
6378 (ix86_register_float16_builtin_type): New function.
6379 (ix86_float16_type_node): New.
6380 * config/i386/i386-c.c (ix86_target_macros_internal): Define
6382 * config/i386/i386-expand.c (ix86_expand_branch): Support
6384 (ix86_prepare_fp_compare_args): Adjust TARGET_SSE_MATH &&
6385 SSE_FLOAT_MODE_P to SSE_FLOAT_MODE_SSEMATH_OR_HF_P.
6386 (ix86_expand_fp_movcc): Ditto.
6387 * config/i386/i386-isa.def: Add PTA define for AVX512FP16.
6388 * config/i386/i386-options.c (isa2_opts): Add -mavx512fp16.
6389 (ix86_valid_target_attribute_inner_p): Add avx512fp16 attribute.
6390 * config/i386/i386.c (ix86_get_ssemov): Use
6391 vmovdqu16/vmovw/vmovsh for HFmode/HImode scalar or vector.
6392 (ix86_get_excess_precision): Use
6393 FLT_EVAL_METHOD_PROMOTE_TO_FLOAT16 when TARGET_AVX512FP16
6395 (sse_store_index): Use SFmode cost for HFmode cost.
6396 (inline_memory_move_cost): Add HFmode, and perfer SSE cost over
6397 GPR cost for HFmode.
6398 (ix86_hard_regno_mode_ok): Allow HImode in sse register.
6399 (ix86_mangle_type): Add manlging for _Float16 type.
6400 (inline_secondary_memory_needed): No memory is needed for
6401 16bit movement between gpr and sse reg under
6403 (ix86_multiplication_cost): Adjust TARGET_SSE_MATH &&
6404 SSE_FLOAT_MODE_P to SSE_FLOAT_MODE_SSEMATH_OR_HF_P.
6405 (ix86_division_cost): Ditto.
6406 (ix86_rtx_costs): Ditto.
6407 (ix86_add_stmt_cost): Ditto.
6408 (ix86_optab_supported_p): Ditto.
6409 * config/i386/i386.h (VALID_AVX512F_SCALAR_MODE): Add HFmode.
6410 (SSE_FLOAT_MODE_SSEMATH_OR_HF_P): Add HFmode.
6411 (PTA_SAPPHIRERAPIDS): Add PTA_AVX512FP16.
6412 * config/i386/i386.md (mode): Add HFmode.
6413 (MODE_SIZE): Add HFmode.
6414 (isa): Add avx512fp16.
6415 (enabled): Handle avx512fp16.
6416 (ssemodesuffix): Add sh suffix for HFmode.
6417 (comm): Add mult, div.
6418 (plusminusmultdiv): New code iterator.
6419 (insn): Add mult, div.
6420 (*movhf_internal): Adjust for avx512fp16 instruction.
6421 (*movhi_internal): Ditto.
6422 (*cmpi<unord>hf): New define_insn for HFmode.
6423 (*ieee_s<ieee_maxmin>hf3): Likewise.
6424 (extendhf<mode>2): Likewise.
6425 (trunc<mode>hf2): Likewise.
6426 (float<floatunssuffix><mode>hf2): Likewise.
6427 (*<insn>hf): Likewise.
6428 (cbranchhf4): New expander.
6429 (movhfcc): Likewise.
6430 (<insn>hf3): Likewise.
6433 * config/i386/i386.opt: Add mavx512fp16.
6434 * config/i386/immintrin.h: Include avx512fp16intrin.h.
6435 * doc/invoke.texi: Add mavx512fp16.
6436 * doc/extend.texi: Add avx512fp16 Usage Notes.
6438 2021-09-08 liuhongt <hongtao.liu@intel.com>
6440 * common.opt: Support -fexcess-precision=16.
6441 * config/aarch64/aarch64.c (aarch64_excess_precision): Return
6442 FLT_EVAL_METHOD_PROMOTE_TO_FLOAT16 when
6443 EXCESS_PRECISION_TYPE_FLOAT16.
6444 * config/arm/arm.c (arm_excess_precision): Ditto.
6445 * config/i386/i386.c (ix86_get_excess_precision): Ditto.
6446 * config/m68k/m68k.c (m68k_excess_precision): Issue an error
6447 when EXCESS_PRECISION_TYPE_FLOAT16.
6448 * config/s390/s390.c (s390_excess_precision): Ditto.
6449 * coretypes.h (enum excess_precision_type): Add
6450 EXCESS_PRECISION_TYPE_FLOAT16.
6451 * doc/tm.texi (TARGET_C_EXCESS_PRECISION): Update documents.
6452 * doc/tm.texi.in (TARGET_C_EXCESS_PRECISION): Ditto.
6453 * doc/extend.texi (Half-Precision): Document
6454 -fexcess-precision=16.
6455 * flag-types.h (enum excess_precision): Add
6456 EXCESS_PRECISION_FLOAT16.
6457 * target.def (excess_precision): Update document.
6458 * tree.c (excess_precision_type): Set excess_precision_type to
6459 EXCESS_PRECISION_FLOAT16 when -fexcess-precision=16.
6461 2021-09-08 liuhongt <hongtao.liu@intel.com>
6463 * doc/extend.texi: (@node Floating Types): Adjust the wording.
6464 (@node Half-Precision): Ditto.
6466 2021-09-07 Takayuki 'January June' Suwa <jjsuwa_sys3175@yahoo.co.jp>
6469 * config/xtensa/xtensa.c (xtensa_emit_move_sequence): Add
6470 'CONST_INT_P (src)' to the condition of the block that tries to
6471 eliminate literal when loading integer contant.
6473 2021-09-07 David Faust <david.faust@oracle.com>
6475 * doc/extend.texi (BPF Type Attributes) New node.
6476 Document new preserve_access_index attribute.
6477 Document new preserve_access_index builtin.
6478 * doc/invoke.texi: Document -mco-re and -mno-co-re options.
6480 2021-09-07 David Faust <david.faust@oracle.com>
6482 * config/bpf/bpf.c: Adjust includes.
6483 (bpf_handle_preserve_access_index_attribute): New function.
6484 (bpf_attribute_table): Use it here.
6485 (bpf_builtins): Add BPF_BUILTIN_PRESERVE_ACCESS_INDEX.
6486 (bpf_option_override): Handle "-mco-re" option.
6487 (bpf_asm_init_sections): New.
6488 (TARGET_ASM_INIT_SECTIONS): Redefine.
6489 (bpf_file_end): New.
6490 (TARGET_ASM_FILE_END): Redefine.
6491 (bpf_init_builtins): Add "__builtin_preserve_access_index".
6492 (bpf_core_compute, bpf_core_get_index): New.
6493 (is_attr_preserve_access): New.
6494 (bpf_expand_builtin): Handle new builtins.
6495 (bpf_core_newdecl, bpf_core_is_maybe_aggregate_access): New.
6496 (bpf_core_walk): New.
6497 (bpf_resolve_overloaded_builtin): New.
6498 (TARGET_RESOLVE_OVERLOADED_BUILTIN): Redefine.
6500 (pass_bpf_core_attr): New RTL pass.
6501 * config/bpf/bpf-passes.def: New file.
6502 * config/bpf/bpf-protos.h (make_pass_bpf_core_attr): New.
6503 * config/bpf/coreout.c: New file.
6504 * config/bpf/coreout.h: Likewise.
6505 * config/bpf/t-bpf (TM_H): Add $(srcdir)/config/bpf/coreout.h.
6506 (coreout.o): New rule.
6507 (PASSES_EXTRA): Add $(srcdir)/config/bpf/bpf-passes.def.
6508 * config.gcc (bpf): Add coreout.h to extra_headers.
6509 Add coreout.o to extra_objs.
6510 Add $(srcdir)/config/bpf/coreout.c to target_gtfiles.
6512 2021-09-07 David Faust <david.faust@oracle.com>
6514 * btfout.c (get_btf_id): Function is no longer static.
6515 * ctfc.h: Expose it here.
6517 2021-09-07 David Faust <david.faust@oracle.com>
6519 * ctfc.c (ctf_lookup_tree_type): New function.
6522 2021-09-07 David Faust <david.faust@oracle.com>
6524 * ctfc.c (ctf_dtd_lookup): Function is no longer static.
6525 * ctfc.h: Analogous change.
6527 2021-09-07 David Faust <david.faust@oracle.com>
6529 * dwarf2out.c (lookup_type_die): Function is no longer static.
6530 * dwarf2out.h: Expose it here.
6532 2021-09-07 Indu Bhagat <indu.bhagat@oracle.com>
6534 * dwarf2ctf.c (ctf_debug_finalize): Make it static.
6535 (ctf_debug_early_finish): New definition.
6536 (ctf_debug_finish): Likewise.
6537 * dwarf2ctf.h (ctf_debug_finalize): Remove declaration.
6538 (ctf_debug_early_finish): New declaration.
6539 (ctf_debug_finish): Likewise.
6540 * dwarf2out.c (dwarf2out_finish): Invoke ctf_debug_finish.
6541 (dwarf2out_early_finish): Invoke ctf_debug_early_finish.
6543 2021-09-07 Indu Bhagat <indu.bhagat@oracle.com>
6545 * config/bpf/bpf.c (bpf_option_override): For BPF backend, disable LTO
6546 support when compiling for CO-RE.
6547 * config/bpf/bpf.opt: Add new command line option -mco-re.
6549 2021-09-07 Indu Bhagat <indu.bhagat@oracle.com>
6551 * flag-types.h (enum debug_info_type): Add new enum
6552 DINFO_TYPE_BTF_WITH_CORE.
6553 (BTF_WITH_CORE_DEBUG): New bitmask.
6554 * flags.h (btf_with_core_debuginfo_p): New declaration.
6555 * opts.c (btf_with_core_debuginfo_p): New definition.
6557 2021-09-07 Jason Merrill <jason@redhat.com>
6559 * tree.h (error_operand_p): Change to inline function.
6561 2021-09-07 Aldy Hernandez <aldyh@redhat.com>
6563 * tree-ssa-threadedge.c (forwarder_block_p): Rename to...
6564 (empty_block_with_phis_p): ...this.
6565 (potentially_threadable_block): Same.
6566 (jump_threader::thread_through_normal_block): Same.
6568 2021-09-07 Eric Botcazou <ebotcazou@adacore.com>
6571 * dwarf2out.c (mark_base_types): New overloaded function.
6572 (dwarf2out_early_finish): Invoke it on the COMDAT type list as well
6573 as the compilation unit, and call move_marked_base_types afterward.
6575 2021-09-07 H.J. Lu <hjl.tools@gmail.com>
6578 * config/i386/i386-expand.c (ix86_expand_convert_uns_sisf_sse):
6580 (ix86_expand_vector_convert_uns_vsivsf): Likewise.
6582 2021-09-07 Richard Biener <rguenther@suse.de>
6584 PR tree-optimization/102226
6585 * tree-vect-loop.c (vect_transform_cycle_phi): Record
6586 the converted value for the epilogue PHI use.
6588 2021-09-07 Martin Liska <mliska@suse.cz>
6590 PR gcov-profile/80223
6591 * ipa-inline.c (can_inline_edge_p): Similarly to sanitizer
6592 options, do not inline when no_profile_instrument_function
6593 attributes are different in early inliner. It's fine to inline
6594 it after PGO instrumentation.
6596 2021-09-07 Richard Biener <rguenther@suse.de>
6598 PR tree-optimization/101555
6599 * tree-ssa-pre.c (translate_vuse_through_block): Do not
6600 perform an alias walk to determine the validity of the
6601 mem at the start of the block which is already guaranteed
6602 by means of prune_clobbered_mems.
6603 (phi_translate_1): Pass edge to translate_vuse_through_block.
6605 2021-09-07 Xionghu Luo <luoxhu@linux.ibm.com>
6608 * config/rs6000/rs6000.md (fmod<mode>3): New define_expand.
6609 (remainder<mode>3): Likewise.
6611 2021-09-07 YunQiang Su <yunqiang.su@cipunited.com>
6613 * config/mips/mips.c (mips_file_start): add .module for
6616 2021-09-06 Roger Sayle <roger@nextmovesoftware.com>
6618 * wide-int.cc (wi::clz): Reorder tests to ensure the result
6619 is zero for all negative values.
6621 2021-09-06 Tobias Burnus <tobias@codesourcery.com>
6623 * doc/invoke.texi (-foffload-options): Fix @opindex.
6625 2021-09-06 H.J. Lu <hjl.tools@gmail.com>
6628 * config/i386/i386-expand.c (ix86_split_xorsign): Use operands[2].
6629 * config/i386/i386.md (@xorsign<mode>3_1): Add non-destructive
6630 source alternative for AVX.
6632 2021-09-06 liuhongt <hongtao.liu@intel.com>
6634 PR middle-end/102182
6635 * optabs.c (expand_fix): Add from1 to avoid from being
6638 2021-09-06 Eric Botcazou <ebotcazou@adacore.com>
6640 * dwarf2out.c (modified_type_die): Deal with all array types earlier
6641 and use local variable consistently throughout the function.
6643 2021-09-06 Jakub Jelinek <jakub@redhat.com>
6645 PR tree-optimization/102207
6646 * match.pd: Don't demote operands of IFN_{ADD,SUB,MUL}_OVERFLOW if they
6647 were promoted from signed to wider unsigned type.
6649 2021-09-06 Andrew Pinski <apinski@marvell.com>
6651 PR tree-optimization/63184
6652 * match.pd: Add simplification of pointer_diff of two pointer_plus
6653 with addr_expr in the first operand of each pointer_plus.
6654 Add simplificatoin of ne/eq of two pointer_plus with addr_expr
6655 in the first operand of each pointer_plus.
6657 2021-09-06 Richard Biener <rguenther@suse.de>
6659 PR tree-optimization/102176
6660 * tree-vect-slp.c (vect_slp_gather_vectorized_scalar_stmts):
6662 (vect_bb_slp_scalar_cost): Use the computed set of
6663 vectorized scalar stmts instead of relying on the out-of-date
6664 and not accurate PURE_SLP_STMT.
6665 (vect_bb_vectorization_profitable_p): Compute the set
6666 of vectorized scalar stmts.
6668 2021-09-05 Aldy Hernandez <aldyh@redhat.com>
6670 * gimple-range-path.cc (path_range_query::range_of_stmt): Remove
6671 GIMPLE_COND special casing.
6672 (path_range_query::range_defined_in_block): Use range_of_stmt
6673 instead of calling fold_range directly.
6675 2021-09-05 Aldy Hernandez <aldyh@redhat.com>
6677 * gimple-range-path.cc (path_range_query::range_of_expr): Set
6678 m_undefined_path when appropriate.
6679 (path_range_query::internal_range_of_expr): Copy from range_of_expr.
6680 (path_range_query::unreachable_path_p): New.
6681 (path_range_query::precompute_ranges): Set m_undefined_path.
6682 * gimple-range-path.h (path_range_query::unreachable_path_p): New.
6683 (path_range_query::internal_range_of_expr): New.
6684 * tree-ssa-threadbackward.c (back_threader::find_taken_edge_cond):
6685 Use unreachable_path_p.
6687 2021-09-05 Aldy Hernandez <aldyh@redhat.com>
6689 * tree-ssa-threadbackward.c (back_threader::maybe_register_path):
6690 Remove argument and call find_taken_edge.
6691 (back_threader::resolve_phi): Do not calculate taken edge before
6692 calling maybe_register_path.
6693 (back_threader::find_paths_to_names): Same.
6695 2021-09-05 Jeff Law <jlaw@localhost.localdomain>
6697 * config/h8300/h8300.md (QHSI2 mode iterator): New mode iterator.
6698 * config/h8300/testcompare.md (store_c): Update name, use new
6700 (store_neg_c, store_shifted_c): New patterns.
6702 2021-09-03 Segher Boessenkool <segher@kernel.crashing.org>
6705 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): On ELFv2 use r11
6706 instead of r12 for CR save, in all cases.
6708 2021-09-03 Andrew Pinski <apinski@marvell.com>
6710 * config/aarch64/aarch64-sve-builtins.cc (register_vector_type):
6711 Handle error_mark_node as the type of the type_decl.
6713 2021-09-03 Andrew Pinski <apinski@marvell.com>
6715 * config/aarch64/aarch64-builtins.c (struct aarch64_simd_type_info):
6717 (aarch64_simd_types): Likewise.
6718 (aarch64_simd_intOI_type_node): Likewise.
6719 (aarch64_simd_intCI_type_node): Likewise.
6720 (aarch64_simd_intXI_type_node): Likewise.
6721 * config/aarch64/aarch64.h (aarch64_fp16_type_node): Likewise.
6722 (aarch64_fp16_ptr_type_node): Likewise.
6723 (aarch64_bf16_type_node): Likewise.
6724 (aarch64_bf16_ptr_type_node): Likewise.
6726 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
6728 * range-op.cc (operator_minus::op1_op2_relation_effect): Abstract
6730 (minus_op1_op2_relation_effect): ...here.
6731 (class operator_pointer_diff): New.
6732 (operator_pointer_diff::op1_op2_relation_effect): Call
6733 minus_op1_op2_relation_effect.
6734 (integral_table::integral_table): Add entry for POINTER_DIFF_EXPR.
6736 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
6738 * tree-ssa-threadbackward.c (back_threader::thread_through_all_blocks):
6739 Add may_peel_loop_headers.
6740 (back_threader_registry::thread_through_all_blocks): Same.
6741 (try_thread_blocks): Pass may_peel_loop_headers argument.
6742 (pass_early_thread_jumps::execute): Same.
6744 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
6746 * tree-ssa-threadedge.c (has_phis_p): New.
6747 (forwarder_block_p): New.
6748 (potentially_threadable_block): Call forwarder_block_p.
6749 (jump_threader::thread_around_empty_blocks): Call has_phis_p.
6750 (jump_threader::thread_through_normal_block): Call
6753 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
6755 * tree-ssa-threadbackward.c (back_threader::dump): New.
6756 (back_threader::debug): New.
6757 (back_threader_profitability::profitable_path_p): Dump blocks
6758 even if we are bailing early.
6760 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
6762 * tree-ssa-threadupdate.c (cancel_thread): New.
6763 (jump_thread_path_registry::thread_block_1): Use cancel_thread.
6764 (jump_thread_path_registry::mark_threaded_blocks): Same.
6765 (jump_thread_path_registry::register_jump_thread): Same.
6767 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
6769 * tree-ssa-threadedge.c (jt_state::push): Only call methods for
6770 which objects are available.
6771 (jt_state::pop): Same.
6772 (jt_state::register_equiv): Same.
6773 (jt_state::register_equivs_on_edge): Same.
6775 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
6777 * tree-ssa-threadedge.c (jump_threader::thread_across_edge):
6778 Move pop until after a thread is registered.
6780 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
6782 * tree-ssa-threadupdate.c (debug): New.
6784 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
6786 * gimple-range-trace.cc (push_dump_file::push_dump_file): New.
6787 (push_dump_file::~push_dump_file): New.
6788 (dump_ranger): Change dump_file temporarily while dumping
6790 * gimple-range-trace.h (class push_dump_file): New.
6792 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
6794 * gimple-range-trace.cc (debug_seed_ranger): Remove static.
6795 (dump_ranger): Dump function name.
6797 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
6799 * gimple-range-path.cc (path_range_query::range_defined_in_block):
6800 Adjust for non-null.
6801 (path_range_query::adjust_for_non_null_uses): New.
6802 (path_range_query::precompute_ranges): Call
6803 adjust_for_non_null_uses.
6804 * gimple-range-path.h: Add m_non_null and
6805 adjust_for_non_null_uses.
6807 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
6809 * gimple-range-path.cc (path_range_query::dump): Dump path
6811 (path_range_query::precompute_ranges): Dump entire path.
6813 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
6815 * value-relation.cc (relation_oracle::debug): New.
6816 * value-relation.h (relation_oracle::debug): New.
6818 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
6820 * tree-ssa-loop-ch.c: Remove unnecessary include file.
6822 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
6824 * gimple-range-fold.cc (fold_using_range::postfold_gcond_edges):
6825 Skip statements with no defining BB.
6826 * gimple-range-path.cc (path_range_query::range_defined_in_block):
6827 Do not get confused by statements with no defining BB.
6829 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
6831 * gimple-range-fold.cc (adjust_imagpart_expr): Move from
6832 gimple_range_adjustment. Add support for constants.
6833 (adjust_realpart_expr): New.
6834 (gimple_range_adjustment): Move IMAGPART_EXPR code to
6835 adjust_imagpart_expr.
6836 * range-op.cc (integral_table::integral_table): Add entry for
6839 2021-09-03 Jakub Jelinek <jakub@redhat.com>
6841 * omp-expand.c (expand_omp_atomic_pipeline): Use
6842 IFN_ATOMIC_COMPARE_EXCHANGE instead of
6843 BUILT_IN_SYNC_VAL_COMPARE_AND_SWAP_? so that memory order
6846 2021-09-03 Jakub Jelinek <jakub@redhat.com>
6849 * tree.h (DECL_FIELD_ABI_IGNORED): Changed into rvalue only macro
6850 that is false if DECL_BIT_FIELD.
6851 (SET_DECL_FIELD_ABI_IGNORED, DECL_FIELD_CXX_ZERO_WIDTH_BIT_FIELD,
6852 SET_DECL_FIELD_CXX_ZERO_WIDTH_BIT_FIELD): Define.
6853 * tree-streamer-out.c (pack_ts_decl_common_value_fields): For
6854 DECL_BIT_FIELD stream DECL_FIELD_CXX_ZERO_WIDTH_BIT_FIELD instead
6855 of DECL_FIELD_ABI_IGNORED.
6856 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
6857 SET_DECL_FIELD_ABI_IGNORED instead of writing to
6858 DECL_FIELD_ABI_IGNORED and for DECL_BIT_FIELD use
6859 SET_DECL_FIELD_CXX_ZERO_WIDTH_BIT_FIELD instead.
6860 * lto-streamer-out.c (hash_tree): For DECL_BIT_FIELD hash
6861 DECL_FIELD_CXX_ZERO_WIDTH_BIT_FIELD instead of DECL_FIELD_ABI_IGNORED.
6863 2021-09-03 liuhongt <hongtao.liu@intel.com>
6866 * config/i386/amxbf16intrin.h : Remove macro check for __AMX_BF16__.
6867 * config/i386/amxint8intrin.h : Remove macro check for __AMX_INT8__.
6868 * config/i386/amxtileintrin.h : Remove macro check for __AMX_TILE__.
6870 2021-09-02 Martin Sebor <msebor@redhat.com>
6872 PR tree-optimization/17506
6874 * tree-ssa-uninit.c (warn_uninit): Remove conditional guarding note.
6876 2021-09-02 Richard Biener <rguenther@suse.de>
6878 * tree-ssa-loop-im.c (fill_always_executed_in_1): Refine
6879 fix for PR78185 and continue processing when leaving
6882 2021-09-02 Jakub Jelinek <jakub@redhat.com>
6884 PR tree-optimization/99591
6885 * match.pd: Demote operands of IFN_{ADD,SUB,MUL}_OVERFLOW if they
6888 2021-09-02 Richard Biener <rguenther@suse.de>
6891 2021-09-02 Richard Biener <rguenther@suse.de>
6893 PR tree-optimization/102155
6894 * tree-ssa-loop-im.c (fill_always_executed_in_1): Iterate
6895 over a part of the RPO array and do not recurse here.
6896 Dump blocks marked as always executed.
6897 (fill_always_executed_in): Walk over the RPO array and
6898 process loops whose header we run into.
6899 (loop_invariant_motion_in_fun): Compute the first RPO
6900 using rev_post_order_and_mark_dfs_back_seme in iteration
6901 order and pass that to fill_always_executed_in.
6903 2021-09-02 liuhongt <hongtao.liu@intel.com>
6905 * config/i386/i386-modes.def (FLOAT_MODE): Define ieee HFmode.
6906 * config/i386/i386.c (enum x86_64_reg_class): Add
6908 (merge_classes): Handle X86_64_SSEHF_CLASS.
6909 (examine_argument): Ditto.
6910 (construct_container): Ditto.
6911 (classify_argument): Ditto, and set HFmode/HCmode to
6913 (function_value_32): Return _FLoat16/Complex Float16 by
6915 (function_value_64): Return _Float16/Complex Float16 by SSE
6917 (ix86_print_operand): Handle CONST_DOUBLE HFmode.
6918 (ix86_secondary_reload): Require gpr as intermediate register
6919 to store _Float16 from sse register when sse4 is not
6921 (ix86_libgcc_floating_mode_supported_p): Enable _FLoat16 under
6923 (ix86_scalar_mode_supported_p): Ditto.
6924 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Defined.
6925 * config/i386/i386.h (VALID_SSE2_REG_MODE): Add HFmode.
6926 (VALID_INT_MODE_P): Add HFmode and HCmode.
6927 * config/i386/i386.md (*pushhf_rex64): New define_insn.
6929 (*movhf_internal): Ditto.
6930 * doc/extend.texi (Half-Precision Floating Point): Documemt
6933 2021-09-02 Richard Biener <rguenther@suse.de>
6935 PR tree-optimization/102155
6936 * tree-ssa-loop-im.c (fill_always_executed_in_1): Iterate
6937 over a part of the RPO array and do not recurse here.
6938 Dump blocks marked as always executed.
6939 (fill_always_executed_in): Walk over the RPO array and
6940 process loops whose header we run into.
6941 (loop_invariant_motion_in_fun): Compute the first RPO
6942 using rev_post_order_and_mark_dfs_back_seme in iteration
6943 order and pass that to fill_always_executed_in.
6945 2021-09-02 YunQiang Su <syq@debian.org>
6948 2021-08-31 YunQiang Su <yunqiang.su@cipunited.com>
6950 * config/mips/mips.c (mips_module_isa_name): New.
6951 mips_file_start: add .module mipsREV to all asm output
6953 2021-09-01 Jeff Law <jlaw@localhost.localdomain>
6955 PR tree-optimization/102152
6956 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Reduce a vector
6957 comparison to a scalar comparison before calling
6958 update_stmt_if_modified.
6960 2021-09-01 Andrew Pinski <apinski@marvell.com>
6963 * config/aarch64/aarch64.c (aarch64_expand_setmem):
6964 Check STRICT_ALIGNMENT before creating an overlapping
6967 2021-09-01 Martin Sebor <msebor@redhat.com>
6969 * gimple-ssa-warn-access.cc (get_size_range): Add argument.
6970 (check_access): Pass additional argument.
6971 (check_memop_access): Remove template and make a member function.
6972 (maybe_check_dealloc_call): Make a pass_waccess member function.
6973 (class pass_waccess): Add, rename, and remove members.
6974 (pass_waccess::pass_waccess): Adjust to name change.
6975 (pass_waccess::~pass_waccess): Same.
6976 (check_alloca): Make a member function.
6977 (check_alloc_size_call): Same.
6978 (check_strcat): Same.
6979 (check_strncat): Same.
6980 (check_stxcpy): Same.
6981 (check_stxncpy): Same.
6982 (check_strncmp): Same.
6983 (maybe_warn_rdwr_sizes): Rename...
6984 (pass_waccess::maybe_check_access_sizes): ...to this.
6985 (pass_waccess::check_call): Adjust to name changes.
6986 (pass_waccess::maybe_check_dealloc_call): Make a pass_waccess member
6988 (pass_waccess::execute): Adjust to name changes.
6989 * gimple-ssa-warn-access.h (check_memop_access): Remove.
6990 * pointer-query.cc (access_ref::phi): Handle null pointer.
6991 (access_ref::inform_access): Same.
6992 (pointer_query::put_ref): Modify a cached value, not a copy of it.
6993 (pointer_query::dump): New function.
6994 (compute_objsize_r): Avoid overwriting access_ref::bndrng. Cache
6996 * pointer-query.h (pointer_query::dump): Declare.
6997 * tree-ssa-strlen.c (get_range): Simplify. Use function query.
6998 (dump_strlen_info): Use function query.
6999 (printf_strlen_execute): Factor code out into pointer_query::put_ref.
7001 2021-09-01 Thomas Schwinge <thomas@codesourcery.com>
7003 * tree.c (walk_tree_1) <OMP_CLAUSE>: Simplify.
7005 2021-09-01 Iain Sandoe <iain@sandoe.co.uk>
7007 * doc/extend.texi: Document unavailable attribute.
7008 * print-tree.c (print_node): Handle unavailable attribute.
7009 * tree-core.h (struct tree_base): Add a bit to carry unavailability.
7010 * tree.c (error_unavailable_use): New.
7011 * tree.h (TREE_UNAVAILABLE): New.
7012 (error_unavailable_use): New.
7014 2021-09-01 Jakub Jelinek <jakub@redhat.com>
7016 PR tree-optimization/102124
7017 * tree-vect-patterns.c (vect_recog_widen_op_pattern): For ORIG_CODE
7018 MINUS_EXPR, if itype is unsigned with smaller precision than type,
7019 add an extra cast to signed variant of itype to ensure sign-extension.
7021 2021-09-01 Martin Liska <mliska@suse.cz>
7023 * graph.c (draw_cfg_node_succ_edges): Do not color fallthru
7024 edges and rather use colors for TRUE and FALSE edges.
7026 2021-09-01 Richard Biener <rguenther@suse.de>
7028 PR tree-optimization/93491
7029 * tree-ssa-pre.c (compute_avail): Set BB_MAY_NOTRETURN
7030 after processing the stmt itself. Do not consider
7031 pure functions possibly not returning. Properly avoid
7032 adding possibly trapping calls to EXP_GEN when there's
7033 a preceeding possibly not returning call.
7034 * tree-ssa-sccvn.c (vn_reference_may_trap): Conservatively
7037 2021-09-01 Richard Biener <rguenther@suse.de>
7039 PR tree-optimization/102139
7040 * tree-vectorizer.h (vec_base_alignments): Adjust hash-map
7041 type to record a std::pair of the stmt-info and the innermost
7043 (dr_vec_info::group): New member.
7044 * tree-vect-data-refs.c (vect_record_base_alignment): Adjust.
7045 (vect_compute_data_ref_alignment): Verify the recorded
7046 base alignment can be used.
7047 (data_ref_pair): Remove.
7048 (dr_group_sort_cmp): Adjust.
7049 (vect_analyze_data_ref_accesses): Store the group-ID in the
7050 dr_vec_info and operate on a vector of dr_vec_infos.
7052 2021-09-01 YunQiang Su <yunqiang.su@cipunited.com>
7054 * read-md.c (md_reader::handle_enum): support value assignation.
7055 * doc/md.texi: record define_c_enum value assignation support.
7057 2021-09-01 Jakub Jelinek <jakub@redhat.com>
7059 PR tree-optimization/102141
7060 * gimple-ssa-store-merging.c (bswap_view_convert): Add BEFORE
7061 argument. If false, emit stmts after gsi instead of before, and
7063 (bswap_replace): Adjust callers. When converting output of bswap,
7064 emit VIEW_CONVERT prepratation stmts after a copy of gsi instead
7067 2021-09-01 liuhongt <hongtao.liu@intel.com>
7069 * emit-rtl.c (validate_subreg): Get rid of all float-int
7072 2021-09-01 liuhongt <hongtao.liu@intel.com>
7075 2021-08-30 liuhongt <hongtao.liu@intel.com>
7077 * expmed.c (extract_bit_field_1): Make sure we're playing with
7078 integral modes before call extract_integral_bit_field.
7079 (extract_integral_bit_field): Add a parameter of type
7080 scalar_int_mode which corresponds to of tmode.
7081 And call extract_and_convert_fixed_bit_field instead of
7082 extract_fixed_bit_field and convert_extracted_bit_field.
7083 (extract_and_convert_fixed_bit_field): New function, it's a
7084 combination of extract_fixed_bit_field and
7085 convert_extracted_bit_field.
7087 2021-08-31 Thomas Schwinge <thomas@codesourcery.com>
7089 * tree.c (walk_tree_1) <OMP_CLAUSE_TILE>: Handle three operands.
7091 2021-08-31 Thomas Schwinge <thomas@codesourcery.com>
7093 * omp-general.h (omp_is_reference): Rename to...
7094 (omp_privatize_by_reference): ... this. Adjust all users...
7095 * omp-general.c: ... here, ...
7096 * gimplify.c: ... here, ...
7097 * omp-expand.c: ... here, ...
7098 * omp-low.c: ... here.
7100 2021-08-31 Martin Sebor <msebor@redhat.com>
7102 * gimple-ssa-warn-access.cc (maybe_warn_alloc_args_overflow): Test
7103 pointer element for equality to zero, not that of the cotaining
7106 2021-08-31 Martin Sebor <msebor@redhat.com>
7108 * gcc-rich-location.h (gcc_rich_location): Make ctor explicit.
7110 2021-08-31 Martin Sebor <msebor@redhat.com>
7112 * function.h (function): Add comments.
7113 (get_range_query): Same. Add attribute returns nonnull.
7115 2021-08-31 Roger Sayle <roger@nextmovesoftware.com>
7117 * expr.c (convert_modes): Don't use subreg_promoted_mode on a
7118 SUBREG if it can't be guaranteed to a SUBREG_PROMOTED_VAR_P set.
7119 Instead use the standard (safer) is_a <scalar_int_mode> idiom.
7121 2021-08-31 Jeff Law <jlaw@localhost.localdomain>
7123 * config.gcc (cris-*-elf, cris-*-none): Remove dbxelf.h from
7125 (m32r-*-elf, m32rle-*-elf, m32r-*-linux): Likewise.
7126 (mn10300-*-*, am33_2.0-*-linux*): Likewise.
7127 (xtensa*-*-elf, xtensa*-*-linux, xtensa*-*-uclinux): Likewise.
7128 (m32c-*-elf*, m32c-*-rtems*): Likewise.
7129 * config/cris/cris.h (DBX_NO_XREFS): Remove.
7130 (DBX_CONTIN_LENGTH, DBX_CONTIN_CHAR): Likewise.
7131 * config/m32r/m32r.h (DBXOUT_SOURCE_LINE): Likewise.
7132 (DBX_DEBUGGING_INFO, DBX_CONTIN_LENGTH): Likewise.
7133 * config/mn10300/mn10300.h (DEFAULT_GDB_EXTENSIONS): Likewise.
7134 * config/mn10300/linux.h (DBX_REGISTER_NAMES): Likewise.
7136 2021-08-31 Marcel Vollweiler <marcel@codesourcery.com>
7138 * gimplify.c (gimplify_scan_omp_clauses): Error handling. 'ancestor' only
7139 allowed on target constructs and only with particular other clauses.
7140 * omp-expand.c (expand_omp_target): Output of 'sorry, not supported' if
7142 * omp-low.c (check_omp_nesting_restrictions): Error handling. No nested OpenMP
7143 structs when 'ancestor' is used.
7144 (scan_omp_1_stmt): No usage of OpenMP runtime routines in a target region when
7146 * tree-pretty-print.c (dump_omp_clause): Append 'ancestor'.
7147 * tree.h (OMP_CLAUSE_DEVICE_ANCESTOR): Define macro.
7149 2021-08-31 Roger Sayle <roger@nextmovesoftware.com>
7151 * expr.c (convert_modes): Preserve SUBREG_PROMOTED_VAR_P when
7152 creating a (wider) partial subreg from a SUBREG_PROMOTED_VAR_P
7154 * simplify-rtx.c (simplify_unary_operation_1) [SIGN_EXTEND]:
7155 Likewise, preserve SUBREG_PROMOTED_VAR_P when creating a (wider)
7156 partial subreg from a SUBREG_PROMOTED_VAR_P subreg. Generate
7157 SIGN_EXTEND of the SUBREG_REG when a subreg would be paradoxical.
7158 [ZERO_EXTEND]: Likewise, preserve SUBREG_PROMOTED_VAR_P when
7159 creating a (wider) partial subreg from a SUBREG_PROMOTED_VAR_P
7160 subreg. Generate ZERO_EXTEND of the SUBREG_REG when a subreg
7161 would be paradoxical.
7163 2021-08-31 Roger Sayle <roger@nextmovesoftware.com>
7165 * combine.c (combine_simplify_rtx): Avoid converting an explicit
7166 TRUNCATE into a lowpart SUBREG on !TRULY_NOOP_TRUNCATION targets.
7167 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
7169 2021-08-31 Richard Biener <rguenther@suse.de>
7171 PR tree-optimization/102142
7172 * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Fix
7173 condition under which to unset the visited flag.
7175 2021-08-31 Richard Biener <rguenther@suse.de>
7177 PR middle-end/102129
7178 * tree-ssa-ter.c (find_replaceable_in_bb): Do not move
7179 possibly trapping expressions across calls.
7181 2021-08-31 Jakub Jelinek <jakub@redhat.com>
7183 PR tree-optimization/102134
7184 * tree-ssa-ccp.c (bit_value_binop) <case RSHIFT_EXPR>: If sgn is
7185 UNSIGNED and r1val | r1mask has MSB set, ensure lzcount doesn't
7188 2021-08-31 Andrew Pinski <apinski@marvell.com>
7191 * collect-utils.c (setup_signals): New declaration.
7192 * collect-utils.h (setup_signals): New function.
7193 * collect2.c (handler): Delete.
7194 (main): Instead of manually setting up the signals,
7195 just call setup_signals.
7196 * lto-wrapper.c (main): Likewise.
7198 2021-08-31 Andrew Pinski <apinski@marvell.com>
7201 * config/i386/i386-protos.h (x86_output_aligned_bss):
7202 Change align argument to unsigned type.
7203 (x86_elf_aligned_decl_common): Likewise.
7204 * config/i386/i386.c (x86_elf_aligned_decl_common): Likewise.
7205 (x86_output_aligned_bss): Likewise.
7207 2021-08-31 YunQiang Su <yunqiang.su@cipunited.com>
7209 * config/mips/mips.c (mips_module_isa_name): New.
7210 mips_file_start: add .module mipsREV to all asm output
7212 2021-08-31 YunQiang Su <yunqiang.su@cipunited.com>
7214 * config/mips/mips.h (struct mips_cpu_info): define enum mips_isa;
7215 use enum instead of int for 'isa' member.
7216 * config.gcc, config/mips/mips.c, config/mips/mips-cpus.def,
7217 config/mips/netbsd.h: replace hardcoded numbers with enum.
7219 2021-08-31 liuhongt <hongtao.liu@intel.com>
7221 * config/i386/sse.md (*<avx512>_ucmp<mode>3_1): Change from
7222 define_split to define_insn_and_split.
7223 (*avx2_eq<mode>3): Removed.
7224 (<avx512>_eq<mode>3<mask_scalar_merge_name>): Adjust pattern
7225 (<avx512>_eq<mode>3<mask_scalar_merge_name>_1): Rename to ..
7226 (*<avx512>_eq<mode>3<mask_scalar_merge_name>_1): .. this, and
7228 (*avx2_gt<mode>3): Removed.
7229 (<avx512>_gt<mode>3<mask_scalar_merge_name>): Change from
7230 define_insn to define_expand, and adjust pattern.
7231 (UNSPEC_MASKED_EQ, UNSPEC_MASKED_GT): Removed.
7233 2021-08-30 David Malcolm <dmalcolm@redhat.com>
7236 * Makefile.in (ANALYZER_OBJS): Add analyzer/call-info.o.
7238 2021-08-30 Jason Merrill <jason@redhat.com>
7240 * doc/invoke.texi: Document -Wmissing-requires.
7242 2021-08-30 Bill Schmidt <wschmidt@linux.ibm.com>
7244 * config/rs6000/rs6000-call.c (rs6000_init_builtins): Remove
7245 TARGET_EXTRA_BUILTINS guard.
7247 2021-08-30 Bill Schmidt <wschmidt@linux.ibm.com>
7249 * config/rs6000/rs6000-call.c (rs6000_init_builtins): Change
7250 initialization of V2DI_type_node and unsigned_V2DI_type_node.
7252 2021-08-30 Bill Schmidt <wschmidt@linux.ibm.com>
7254 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Use the new
7255 decl when new_builtins_are_live.
7256 * config/rs6000/rs6000-builtin-new.def (__builtin_cfstring): New
7259 2021-08-30 Pat Haugen <pthaugen@linux.ibm.com>
7261 * config/rs6000/rs6000-cpus.def (ISA_3_1_MASKS_SERVER): Add
7262 OPTION_MASK_P10_FUSION_2STORE.
7263 (POWERPC_MASKS): Likewise.
7264 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
7265 store fusion for Power10.
7266 (is_fusable_store): New.
7267 (power10_sched_reorder): Likewise.
7268 (rs6000_sched_reorder): Do Power10 specific reordering.
7269 (rs6000_sched_reorder2): Likewise.
7270 * config/rs6000/rs6000.opt: Add new option.
7272 2021-08-30 Richard Biener <rguenther@suse.de>
7274 PR tree-optimization/102128
7275 * tree-vect-slp.c (vect_bb_vectorization_profitable_p):
7276 Move scanning for if-converted scalar code to the caller
7277 and instead delay clearing the visited flag for profitable
7279 (vect_slp_region): Cost all subgraphs before scheduling.
7280 For if-converted BB vectorization scan for scalar COND_EXPRs
7281 and do not vectorize if any found and the cost model is
7284 2021-08-30 Richard Biener <rguenther@suse.de>
7286 * common.opt (fexceptions): Mark
7287 EnabledBy(fnon-call-exceptions).
7288 * doc/invoke.texi (fnon-call-exceptions): Document this
7289 enables -fexceptions.
7291 2021-08-30 Sebastian Huber <sebastian.huber@embedded-brains.de>
7293 * tsystem.h (abort): Define abort() if inhibit_libc is defined and it
7294 is not already defined.
7296 2021-08-30 liuhongt <hongtao.liu@intel.com>
7298 * expmed.c (extract_bit_field_1): Make sure we're playing with
7299 integral modes before call extract_integral_bit_field.
7300 (extract_integral_bit_field): Add a parameter of type
7301 scalar_int_mode which corresponds to of tmode.
7302 And call extract_and_convert_fixed_bit_field instead of
7303 extract_fixed_bit_field and convert_extracted_bit_field.
7304 (extract_and_convert_fixed_bit_field): New function, it's a
7305 combination of extract_fixed_bit_field and
7306 convert_extracted_bit_field.
7308 2021-08-29 Iain Sandoe <iain@sandoe.co.uk>
7310 * config/darwin.c (darwin_libc_has_function): Do not run
7311 the checks for x86 or modern Darwin. Make sure that there
7312 is a value set for darwin_macosx_version_min before testing.
7314 2021-08-29 Iain Sandoe <iain@sandoe.co.uk>
7316 * config/i386/darwin.h (CLEAR_INSN_CACHE): New.
7318 2021-08-28 Jan Hubicka <hubicka@ucw.cz>
7320 * ipa-modref-tree.h (modref_access_node::merge): Break out
7321 logic combining offsets and logic merging ranges to ...
7322 (modref_access_node::combined_offsets): ... here
7323 (modref_access_node::update2): ... here
7324 (modref_access_node::closer_pair_p): New member function.
7325 (modref_access_node::forced_merge): New member function.
7326 (modre_ref_node::insert): Do merging when table is full.
7328 2021-08-28 YunQiang Su <yunqiang.su@cipunited.com>
7331 * config.gcc: MIPS: use N64 ABI by default if the triple end
7332 with -gnuabi64, which is used by Debian since 2013.
7334 2021-08-28 Alexandre Oliva <oliva@adacore.com>
7336 * ipa-modref.c (analyze_function): Skip debug stmts.
7337 * tree-inline.c (estimate_num_insn): Consider builtins even
7338 without a cgraph_node.
7340 2021-08-27 Jeff Law <jlaw@localhost.localdomain>
7342 * config/h8300/bitfield.md (cstore<mode>4): Remove expander.
7343 * config/h8300/h8300.c (h8300_expand_branch): Remove function.
7344 * config/h8300/h8300-protos.h (h8300_expadn_branch): Remove prototype.
7345 * config/h8300/h8300.md (eqne): New code iterator.
7346 (geultu, geultu_to_c): Similarly.
7347 * config/h8300/testcompare.md (cstore<mode>4): Dummy expander.
7348 (store_c_<mode>, store_c_i_<mode>): New define_insn_and_splits
7349 (cmp<mode>_c): New pattern
7351 2021-08-27 Jeff Law <jlaw@localhost.localdomain>
7353 * tree-ssa-dom.c (reduce_vector_comparison_to_scalar_comparison): New
7355 (dom_opt_dom_walker::optimize_stmt): Use it.
7357 2021-08-27 Iain Sandoe <iain@sandoe.co.uk>
7359 * config/darwin.c (finalize_ctors): Add a section-start linker-
7361 (finalize_dtors): Likewise.
7362 * config/darwin.h (MIN_LD64_INIT_TERM_START_LABELS): New.
7364 2021-08-27 Bill Schmidt <wschmidt@linux.ibm.com>
7366 * config/rs6000/rs6000-call.c (rs6000-builtins.h): New #include.
7367 (rs6000_init_builtins): Call rs6000_init_generated_builtins. Skip the
7368 old initialization logic when new builtins are enabled.
7369 * config/rs6000/rs6000-gen-builtins.c (write_decls): Rename
7370 rs6000_autoinit_builtins to rs6000_init_generated_builtins.
7371 (write_init_file): Likewise.
7373 2021-08-27 Iain Sandoe <iain@sandoe.co.uk>
7375 * configure.ac (darwin2[[0-9]]* | darwin19*): Alter use of
7376 gcc_GAS_CHECK_FEATURE to remove an extraneous parameter.
7377 (amdgcn-* | gcn-*) Likewise.
7379 2021-08-27 Anthony Sharp <anthonysharp15@gmail.com>
7381 * symbol-summary.h: Added missing template keyword.
7383 2021-08-27 Richard Biener <rguenther@suse.de>
7385 PR tree-optimization/45178
7386 * tree-ssa-dce.c (find_obviously_necessary_stmts): For
7387 infinite loops without exit do not mark control dependent
7388 edges of the latch necessary.
7390 2021-08-27 konglin1 <lingling.kong@intel.com>
7393 * config/i386/sse.md: (<avx512>scattersi<mode>): Add mask operand to
7395 (<avx512>scattersi<mode>): Likewise.
7396 (*avx512f_scattersi<VI48F:mode>): Merge mask operand to set_dest.
7397 (*avx512f_scatterdi<VI48F:mode>): Likewise
7399 2021-08-27 Kewen Lin <linkw@linux.ibm.com>
7401 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function): Add
7402 support for built-in functions MISC_BUILTIN_DIVWE, MISC_BUILTIN_DIVWEU,
7403 MISC_BUILTIN_DIVDE, MISC_BUILTIN_DIVDEU, P10_BUILTIN_CFUGED,
7404 P10_BUILTIN_CNTLZDM, P10_BUILTIN_CNTTZDM, P10_BUILTIN_PDEPD and
7405 P10_BUILTIN_PEXTD on Power10.
7407 2021-08-27 Kewen Lin <linkw@linux.ibm.com>
7409 * config/rs6000/rs6000-call.c (builtin_function_type): Add unsigned
7410 signedness for some Power10 bifs.
7412 2021-08-27 David Edelsohn <dje.gcc@gmail.com>
7415 * config/rs6000/rs6000.c (rs6000_adjust_field_align): Use
7416 computed alignment if the entire struct has attribute packed.
7418 2021-08-27 liuhongt <hongtao.liu@intel.com>
7422 * config/i386/i386.c (ix86_gimple_fold_builtin): Fold
7423 IX86_BUILTIN_SHUFPD512, IX86_BUILTIN_SHUFPS512,
7424 IX86_BUILTIN_SHUFPD256, IX86_BUILTIN_SHUFPS,
7425 IX86_BUILTIN_SHUFPS256.
7426 (ix86_masked_all_ones): New function.
7428 2021-08-26 Uroš Bizjak <ubizjak@gmail.com>
7430 * config/i386/i386.md (*btr<mode>_1): Call force_reg unconditionally.
7431 (conditional moves with memory inputs splitters): Ditto.
7432 * config/i386/sse.md (one_cmpl<mode>2): Simplify.
7434 2021-08-26 Jan Hubicka <hubicka@ucw.cz>
7436 * ipa-modref-tree.h (modref_access_node::try_merge_with): Restart
7437 search after merging.
7439 2021-08-26 Bill Schmidt <wschmidt@linux.ibm.com>
7441 * config/rs6000/rs6000-overload.def: Add remaining overloads.
7443 2021-08-26 Bill Schmidt <wschmidt@linux.ibm.com>
7445 * config/rs6000/rs6000-builtin-new.def: Add cell stanza.
7447 2021-08-26 Bill Schmidt <wschmidt@linux.ibm.com>
7449 * config/rs6000/rs6000-builtin-new.def: Add ieee128-hw, dfp,
7450 crypto, and htm stanzas.
7452 2021-08-26 Bill Schmidt <wschmidt@linux.ibm.com>
7454 * config/rs6000/rs6000-builtin-new.def: Add mma stanza.
7456 2021-08-26 Martin Sebor <msebor@redhat.com>
7458 * tree-ssa-uninit.c (warn_uninit): Refactor and simplify.
7459 (warn_uninit_phi_uses): Remove argument from calls to warn_uninit.
7460 (warn_uninitialized_vars): Same. Reduce visibility of locals.
7461 (warn_uninitialized_phi): Same.
7463 2021-08-26 Roger Sayle <roger@nextmovesoftware.com>
7465 * tree-ssa-ccp.c (get_individual_bits): Helper function to
7466 extract the individual bits from a widest_int constant (mask).
7467 (gray_code_bit_flips): New read-only table for effiently
7468 enumerating permutations/combinations of bits.
7469 (bit_value_binop) [LROTATE_EXPR, RROTATE_EXPR]: Handle rotates
7470 by unknown counts that are guaranteed less than the target
7471 precision and four or fewer unknown bits by enumeration.
7472 [LSHIFT_EXPR, RSHIFT_EXPR]: Likewise, also handle shifts by
7473 enumeration under the same conditions. Handle remaining
7474 shifts as a mask based upon the minimum possible shift value.
7476 2021-08-26 Roger Sayle <roger@nextmovesoftware.com>
7477 Richard Biener <rguenther@suse.de>
7479 * match.pd (shift transformations): Remove a redundant
7480 !POINTER_TYPE_P check.
7482 2021-08-26 Uroš Bizjak <ubizjak@gmail.com>
7485 * config/i386/i386.md (cmove reg-reg move elimination peephole2s):
7486 Set all_regs to true in the call to replace_rtx.
7488 2021-08-26 Jan Hubicka <hubicka@ucw.cz>
7490 * ipa-modref-tree.c (test_insert_search_collapse): Update test.
7491 * ipa-modref-tree.h (modref_base_node::insert): Be smarter when
7492 hiting --param modref-max-refs limit.
7493 (modref_tree:insert_base): Be smarter when hitting
7494 --param modref-max-bases limit. Add new parameter REF.
7495 (modref_tree:insert): Update.
7496 (modref_tree:merge): Update.
7497 * ipa-modref.c (read_modref_records): Update.
7499 2021-08-26 Jan Hubicka <hubicka@ucw.cz>
7501 * params.opt: (modref-max-adjustments): Add full stop.
7503 2021-08-26 Jan Hubicka <hubicka@ucw.cz>
7505 * ipa-modref-tree.h (modref_ref_node::verify): New member
7507 (modref_ref_node::insert): Use it.
7508 (modref_ref_node::try_mere_with): Fix off by one error.
7510 2021-08-26 Martin Liska <mliska@suse.cz>
7511 Stefan Kneifel <stefan.kneifel@bluewin.ch>
7513 * cgraph.h (create_version_clone_with_body): Add new parameter.
7514 * cgraphclones.c: Likewise.
7515 * multiple_target.c (create_dispatcher_calls): Do not use
7517 (create_target_clone): Likewise here.
7519 2021-08-26 Jonathan Yong <10walls@gmail.com>
7521 * doc/extend.texi: Add note about reserved priorities
7522 to the constructor attribute.
7524 2021-08-25 Martin Sebor <msebor@redhat.com>
7526 * gimple-range-cache.cc (ssa_global_cache::dump): Avoid printing
7527 range table header alone.
7528 * gimple-range.cc (gimple_ranger::export_global_ranges): Same.
7530 2021-08-25 Jan Hubicka <hubicka@ucw.cz>
7532 * doc/invoke.texi: Document --param modref-max-adjustments.
7533 * ipa-modref-tree.c (test_insert_search_collapse): Update.
7534 (test_merge): Update.
7535 * ipa-modref-tree.h (struct modref_access_node): Add adjustments;
7536 (modref_access_node::operator==): Fix handling of access ranges.
7537 (modref_access_node::contains): Constify parameter; handle also
7538 mismatched parm offsets.
7539 (modref_access_node::update): New function.
7540 (modref_access_node::merge): New function.
7541 (unspecified_modref_access_node): Update constructor.
7542 (modref_ref_node::insert_access): Add record_adjustments parameter;
7544 (modref_ref_node::try_merge_with): New private function.
7545 (modref_tree::insert): New record_adjustments parameter.
7546 (modref_tree::merge): New record_adjustments parameter.
7547 (modref_tree::copy_from): Update.
7548 * ipa-modref.c (dump_access): Dump adjustments field.
7549 (get_access): Update constructor.
7550 (record_access): Update call of insert.
7551 (record_access_lto): Update call of insert.
7552 (merge_call_side_effects): Add record_adjustments parameter.
7553 (get_access_for_fnspec): Update.
7554 (process_fnspec): Update.
7555 (analyze_call): Update.
7556 (analyze_function): Update.
7557 (read_modref_records): Update.
7558 (ipa_merge_modref_summary_after_inlining): Update.
7559 (propagate_unknown_call): Update.
7560 (modref_propagate_in_scc): Update.
7561 * params.opt (param-max-modref-adjustments=): New.
7563 2021-08-25 Michael Meissner <meissner@linux.ibm.com>
7565 * config/rs6000/vsx.md (UNSPEC_XXSPLTIDP): Rename from
7567 (xxspltiw_v4si): Use vecperm type attribute.
7568 (xxspltiw_v4si_inst): Use vecperm type attribute.
7569 (xxspltiw_v4sf_inst): Likewise.
7570 (xxspltidp_v2df): Use vecperm type attribute. Use
7571 UNSPEC_XXSPLTIDP instead of UNSPEC_XXSPLTID.
7572 (xxspltidp_v2df_inst): Likewise.
7573 (xxsplti32dx_v4si): Use vecperm type attribute.
7574 (xxsplti32dx_v4si_inst): Likewise.
7575 (xxsplti32dx_v4sf_inst): Likewise.
7576 (xxblend_<mode>): Likewise.
7577 (xxpermx): Likewise.
7578 (xxpermx_inst): Likewise.
7581 2021-08-25 Lewis Hyatt <lhyatt@gmail.com>
7584 * coretypes.h (typedef diagnostic_input_charset_callback): Declare.
7585 * diagnostic.c (diagnostic_initialize_input_context): New function.
7586 * diagnostic.h (diagnostic_initialize_input_context): Declare.
7587 * input.c (default_charset_callback): New function.
7588 (file_cache::initialize_input_context): New function.
7589 (file_cache_slot::create): Added ability to convert the input
7590 according to the input context.
7591 (file_cache::file_cache): Initialize the new input context.
7592 (class file_cache_slot): Added new m_alloc_offset member.
7593 (file_cache_slot::file_cache_slot): Initialize the new member.
7594 (file_cache_slot::~file_cache_slot): Handle potentially offset buffer.
7595 (file_cache_slot::maybe_grow): Likewise.
7596 (file_cache_slot::needs_read_p): Handle NULL fp, which is now possible.
7597 (file_cache_slot::get_next_line): Likewise.
7598 * input.h (class file_cache): Added input context member.
7600 2021-08-25 Richard Biener <rguenther@suse.de>
7602 PR tree-optimization/102046
7603 * tree-vect-slp.c (vect_build_slp_tree_2): Conservatively
7604 update ->any_pattern when swapping operands.
7606 2021-08-25 Hongyu Wang <hongyu.wang@intel.com>
7609 * config/i386/i386.c (ix86_live_on_entry): Adjust comment.
7610 (ix86_decompose_address): Remove retval check for ASHIFT,
7611 allow non-canonical zero extend if AND mask covers ASHIFT
7613 (ix86_legitimate_address_p): Adjust condition for decompose.
7614 (ix86_rtx_costs): Adjust cost for lea with non-canonical
7616 Co-Authored by: Uros Bizjak <ubizjak@gmail.com>
7618 2021-08-25 Jiufu Guo <guojiufu@linux.ibm.com>
7620 PR tree-optimization/101145
7621 * tree-ssa-loop-niter.c (number_of_iterations_until_wrap):
7623 (number_of_iterations_lt): Invoke above function.
7624 (adjust_cond_for_loop_until_wrap):
7625 Merge to number_of_iterations_until_wrap.
7626 (number_of_iterations_cond): Update invokes for
7627 adjust_cond_for_loop_until_wrap and number_of_iterations_lt.
7629 2021-08-25 konglin1 <lingling.kong@intel.com>
7632 * config/i386/avx512dqintrin.h (_mm512_fpclass_ps_mask): Fix
7634 (_mm512_mask_fpclass_ps_mask): Ditto.
7636 2021-08-25 Kewen Lin <linkw@linux.ibm.com>
7638 * config/rs6000/altivec.md (vec_unpacku_hi_v16qi): Remove.
7639 (vec_unpacku_hi_v8hi): Likewise.
7640 (vec_unpacku_lo_v16qi): Likewise.
7641 (vec_unpacku_lo_v8hi): Likewise.
7642 (vec_unpacku_hi_<VP_small_lc>): New define_expand.
7643 (vec_unpacku_lo_<VP_small_lc>): Likewise.
7645 2021-08-24 David Edelsohn <dje.gcc@gmail.com>
7647 * config/rs6000/aix.h (SYSTEM_IMPLICIT_EXTERN_C): Delete.
7648 * config/rs6000/aix71.h (SYSTEM_IMPLICIT_EXTERN_C): Define.
7649 * config/rs6000/aix72.h (SYSTEM_IMPLICIT_EXTERN_C): Define.
7650 * config/rs6000/aix73.h (TARGET_AIX_VERSION): Increase to 73.
7652 2021-08-24 Roger Sayle <roger@nextmovesoftware.com>
7654 PR middle-end/102031
7655 * simplify-rtx.c (simplify_truncation): When comparing precisions
7656 use "subreg_prec" variable, not "subreg_mode".
7658 2021-08-24 Bill Schmidt <wschmidt@linux.ibm.com>
7660 * config/rs6000/rs6000-builtin-new.def: Add power10 and power10-64
7663 2021-08-24 Bill Schmidt <wschmidt@linux.ibm.com>
7665 * config/rs6000/rs6000-call.c (rs6000_init_builtins): Initialize
7666 various pointer type nodes.
7667 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add enum
7668 values for various pointer types.
7669 (ptr_V16QI_type_node): New macro.
7670 (ptr_V1TI_type_node): New macro.
7671 (ptr_V2DI_type_node): New macro.
7672 (ptr_V2DF_type_node): New macro.
7673 (ptr_V4SI_type_node): New macro.
7674 (ptr_V4SF_type_node): New macro.
7675 (ptr_V8HI_type_node): New macro.
7676 (ptr_unsigned_V16QI_type_node): New macro.
7677 (ptr_unsigned_V1TI_type_node): New macro.
7678 (ptr_unsigned_V8HI_type_node): New macro.
7679 (ptr_unsigned_V4SI_type_node): New macro.
7680 (ptr_unsigned_V2DI_type_node): New macro.
7681 (ptr_bool_V16QI_type_node): New macro.
7682 (ptr_bool_V8HI_type_node): New macro.
7683 (ptr_bool_V4SI_type_node): New macro.
7684 (ptr_bool_V2DI_type_node): New macro.
7685 (ptr_bool_V1TI_type_node): New macro.
7686 (ptr_pixel_type_node): New macro.
7687 (ptr_intQI_type_node): New macro.
7688 (ptr_uintQI_type_node): New macro.
7689 (ptr_intHI_type_node): New macro.
7690 (ptr_uintHI_type_node): New macro.
7691 (ptr_intSI_type_node): New macro.
7692 (ptr_uintSI_type_node): New macro.
7693 (ptr_intDI_type_node): New macro.
7694 (ptr_uintDI_type_node): New macro.
7695 (ptr_intTI_type_node): New macro.
7696 (ptr_uintTI_type_node): New macro.
7697 (ptr_long_integer_type_node): New macro.
7698 (ptr_long_unsigned_type_node): New macro.
7699 (ptr_float_type_node): New macro.
7700 (ptr_double_type_node): New macro.
7701 (ptr_long_double_type_node): New macro.
7702 (ptr_dfloat64_type_node): New macro.
7703 (ptr_dfloat128_type_node): New macro.
7704 (ptr_ieee128_type_node): New macro.
7705 (ptr_ibm128_type_node): New macro.
7706 (ptr_vector_pair_type_node): New macro.
7707 (ptr_vector_quad_type_node): New macro.
7708 (ptr_long_long_integer_type_node): New macro.
7709 (ptr_long_long_unsigned_type_node): New macro.
7711 2021-08-24 Bill Schmidt <wschmidt@linux.ibm.com>
7713 * config/rs6000/rs6000-builtin-new.def: Add power9-vector, power9,
7714 and power9-64 stanzas.
7716 2021-08-24 Roger Sayle <roger@nextmovesoftware.com>
7717 Tom de Vries <tdevries@suse.de>
7719 * config.gcc (nvptx-*-*): Define {c,c++}_target_objs.
7720 * config/nvptx/nvptx-protos.h (nvptx_cpu_cpp_builtins): Prototype.
7721 * config/nvptx/nvptx.h (TARGET_CPU_CPP_BUILTINS): Implement with
7722 a call to the new nvptx_cpu_cpp_builtins function in nvptx-c.c.
7723 * config/nvptx/t-nvptx (nvptx-c.o): New rule.
7724 * config/nvptx/nvptx-c.c: New source file.
7725 (nvptx_cpu_cpp_builtins): Move implementation here.
7727 2021-08-24 Martin Sebor <msebor@redhat.com>
7729 PR middle-end/101600
7730 PR middle-end/101977
7731 * gimple-ssa-warn-access.cc (maybe_warn_for_bound): Tighten up
7732 the phrasing of a warning.
7733 (check_access): Use the remaining size after subtracting any offset
7734 rather than the whole object size.
7735 * pointer-query.cc (access_ref::get_ref): Clear BASE0 flag if it's
7736 clear for any nonnull PHI argument.
7737 (compute_objsize): Clear argument.
7739 2021-08-24 Bill Schmidt <wschmidt@linux.ibm.com>
7741 * config/rs6000/rs6000-builtin-new.def: Add power8-vector stanza.
7743 2021-08-24 Bill Schmidt <wschmidt@linux.ibm.com>
7745 * config/rs6000/rs6000-builtin-new.def: Add power7 and power7-64
7748 2021-08-24 Andrew MacLeod <amacleod@redhat.com>
7750 * value-relation.cc (rr_transitive_table): New.
7751 (relation_transitive): New.
7752 (value_relation::swap): Remove.
7753 (value_relation::apply_transitive): New.
7754 (relation_oracle::relation_oracle): Allocate a new tmp bitmap.
7755 (relation_oracle::register_relation): Call register_transitives.
7756 (relation_oracle::register_transitives): New.
7757 * value-relation.h (relation_oracle): Add new temporary bitmap and
7760 2021-08-24 H.J. Lu <hjl.tools@gmail.com>
7763 * config/i386/i386-expand.c (ix86_expand_vector_move): Broadcast
7764 from integer to a pseudo vector register.
7766 2021-08-24 Richard Biener <rguenther@suse.de>
7768 PR tree-optimization/100089
7769 * tree-vectorizer.h (vect_slp_bb): Rename to ...
7770 (vect_slp_if_converted_bb): ... this and get the original
7771 loop as new argument.
7772 * tree-vectorizer.c (try_vectorize_loop_1): Revert previous fix,
7773 pass original loop to vect_slp_if_converted_bb.
7774 * tree-vect-slp.c (vect_bb_vectorization_profitable_p):
7775 If orig_loop was passed scan the not vectorized stmts
7776 for COND_EXPRs and force not profitable if found.
7777 (vect_slp_region): Pass down all SLP instances to costing
7778 if orig_loop was specified.
7779 (vect_slp_bbs): Pass through orig_loop.
7780 (vect_slp_bb): Rename to ...
7781 (vect_slp_if_converted_bb): ... this and get the original
7782 loop as new argument.
7783 (vect_slp_function): Adjust.
7785 2021-08-24 Richard Earnshaw <rearnsha@arm.com>
7788 * config/arm/arm.md (attribute arch): Add fix_vlldm.
7789 (arch_enabled): Use it.
7790 * config/arm/vfp.md (lazy_store_multiple_insn): Add alternative to
7791 use when erratum mitigation is needed.
7793 2021-08-24 Richard Earnshaw <rearnsha@arm.com>
7796 * config/arm/arm.opt (mfix-cmse-cve-2021-35465): New option.
7797 * doc/invoke.texi (Arm Options): Document it.
7798 * config/arm/arm-cpus.in (quirk_vlldm): New feature bit.
7799 (ALL_QUIRKS): Add quirk_vlldm.
7800 (cortex-m33): Add quirk_vlldm.
7801 (cortex-m35p, cortex-m55): Likewise.
7802 * config/arm/arm.c (arm_option_override): Enable fix_vlldm if
7803 targetting an affected CPU and not explicitly controlled on
7806 2021-08-24 Richard Earnshaw <rearnsha@arm.com>
7808 * config/arm/vfp.md (lazy_store_multiple_insn): Rewrite as valid RTL.
7809 (lazy_load_multiple_insn): Likewise.
7811 2021-08-24 liuhongt <hongtao.liu@intel.com>
7814 * config/i386/sse.md (<avx512>_vternlog<mode><sd_maskz_name>):
7815 Enable avx512 embedded broadcast.
7816 (*<avx512>_vternlog<mode>_all): Ditto.
7817 (<avx512>_vternlog<mode>_mask): Ditto.
7819 2021-08-24 liuhongt <hongtao.liu@intel.com>
7822 * config/i386/i386.c (ix86_rtx_costs): Define cost for
7824 * config/i386/i386.h (STRIP_UNARY): New macro.
7825 * config/i386/predicates.md (reg_or_notreg_operand): New
7827 * config/i386/sse.md (*<avx512>_vternlog<mode>_all): New define_insn.
7828 (*<avx512>_vternlog<mode>_1): New pre_reload
7829 define_insn_and_split.
7830 (*<avx512>_vternlog<mode>_2): Ditto.
7831 (*<avx512>_vternlog<mode>_3): Ditto.
7832 (any_logic1,any_logic2): New code iterator.
7833 (logic_op): New code attribute.
7834 (ternlogsuffix): Extend to VNxDF and VNxSF.
7836 2021-08-24 Richard Biener <rguenther@suse.de>
7838 * doc/invoke.texi (vect-inner-loop-cost-factor): Adjust.
7839 * params.opt (--param vect-inner-loop-cost-factor): Adjust
7841 * tree-vect-loop.c (vect_analyze_loop_form): Initialize
7842 inner_loop_cost_factor to the minimum of the estimated number
7843 of iterations of the inner loop and vect-inner-loop-cost-factor.
7845 2021-08-24 Roger Sayle <roger@nextmovesoftware.com>
7846 Richard Biener <rguenther@suse.de>
7848 * config/i386/i386-features.c (compute_convert_gain): Provide
7849 more accurate values for CONST_INT, when optimizing for size.
7850 * config/i386/i386.c (COSTS_N_BYTES): Move definition from here...
7851 * config/i386/i386.h (COSTS_N_BYTES): to here.
7853 2021-08-24 Roger Sayle <roger@nextmovesoftware.com>
7854 Jakub Jelinek <jakub@redhat.com>
7856 PR middle-end/102029
7857 * match.pd (shift transformations): Add an additional check for
7858 !POINTER_TYPE_P in the recently added left shift transformation.
7860 2021-08-24 liuhongt <hongtao.liu@intel.com>
7862 PR tree-optimization/100089
7863 * tree-vectorizer.c (try_vectorize_loop_1): Disable slp in
7864 loop vectorizer when cost model is very-cheap.
7866 2021-08-23 Bill Schmidt <wschmidt@linux.ibm.com>
7868 * config/rs6000/rs6000-gen-builtins.c (parse_bif_entry): Don't call
7869 asprintf, which is not available on AIX.
7871 2021-08-23 Bill Schmidt <wschmidt@linux.ibm.com>
7873 * config.gcc (target_gtfiles): Add ./rs6000-builtins.h.
7874 * config/rs6000/t-rs6000 (EXTRA_GTYPE_DEPS): Set.
7876 2021-08-23 Bill Schmidt <wschmidt@linux.ibm.com>
7878 * config.gcc (powerpc*-*-*): Add rs6000-builtins.o to extra_objs.
7879 * config/rs6000/rs6000-gen-builtins.c (main): Close init_file
7881 * config/rs6000/t-rs6000 (rs6000-gen-builtins.o): New target.
7882 (rbtree.o): Likewise.
7883 (rs6000-gen-builtins): Likewise.
7884 (rs6000-builtins.c): Likewise.
7885 (rs6000-builtins.h): Likewise.
7886 (rs6000.o): Add dependency.
7887 (EXTRA_HEADERS): Add rs6000-vecdefines.h.
7888 (rs6000-vecdefines.h): New target.
7889 (rs6000-builtins.o): Likewise.
7890 (rs6000-call.o): Add rs6000-builtins.h as a dependency.
7891 (rs6000-c.o): Likewise.
7893 2021-08-23 Bill Schmidt <wschmidt@linux.ibm.com>
7896 * config/rs6000/rs6000-gen-builtins.c (consume_whitespace):
7897 Diagnose buffer overrun.
7898 (safe_inc_pos): Fix overrun detection.
7899 (match_identifier): Diagnose buffer overrun.
7900 (match_integer): Likewise.
7901 (match_to_right_bracket): Likewise.
7903 2021-08-23 Jan Hubicka <hubicka@ucw.cz>
7905 * ipa-modref-tree.h (modref_access_node::range_info_useful_p):
7906 Improve range compare.
7907 (modref_access_node::contains): New member function.
7908 (modref_access_node::search): Remove.
7909 (modref_access_node::insert): Be smarter about subaccesses.
7911 2021-08-23 Thomas Schwinge <thomas@codesourcery.com>
7913 * config/i386/i386-options.c (ix86_omp_device_kind_arch_isa)
7914 <omp_device_arch> [ACCEL_COMPILER]: Match "intel_mic".
7915 * config/i386/t-omp-device (omp-device-properties-i386) <arch>:
7918 2021-08-23 Jeff Law <jlaw@localhost.localdomain>
7920 * config/h8300/h8300-protos.h (h8300_expand_epilogue): Add new
7922 * config/h8300/jumpcall.md (call, call_value): Restrict to
7923 !SIBLING_CALL_P cases.
7924 (subcall, sibcall_value): New patterns & expanders.
7925 * config/h8300/proepi.md (epilogue): Pass new argument to
7926 h8300_expand_epilogue.
7927 (sibcall_epilogue): New expander.
7928 * config/h8300/h8300.c (h8300_expand_epilogue): Handle sibcall
7930 (h8300_ok_for_sibcall_p): New function.
7931 (TARGET_FUNCTION_OK_FOR_SIBCALL): define.
7933 2021-08-23 Roger Sayle <roger@nextmovesoftware.com>
7935 * simplify-rtx.c (simplify_unary_operation_1): [TRUNCATE]:
7936 Handle case where the operand is already the desired mode.
7938 2021-08-23 Richard Biener <rguenther@suse.de>
7941 * tree-ssa-structalias.c (ipa_pta_execute): Check in_other_partition
7942 in addition to has_gimple_body.
7944 2021-08-23 Jan Hubicka <hubicka@ucw.cz>
7946 PR middle-end/101949
7947 * ipa-modref.c (analyze_ssa_name_flags): Fix merging of
7950 2021-08-23 Martin Liska <mliska@suse.cz>
7952 * doc/invoke.texi: Put the option out of -mxl-mode-app-model
7955 2021-08-23 Richard Biener <rguenther@suse.de>
7957 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
7958 Properly scale the inner loop cost only once.
7960 2021-08-23 Roger Sayle <roger@nextmovesoftware.com>
7962 * tree-ssa-ccp.c (bit_value_binop) [TRUNC_MOD_EXPR, TRUNC_DIV_EXPR]:
7963 Provide bounds for unsigned (and signed with non-negative operands)
7964 division and modulus.
7966 2021-08-23 Roger Sayle <roger@nextmovesoftware.com>
7968 * simplify-rtx.c (simplify_truncation): Generalize simplification
7969 of (truncate:A (subreg:B X)).
7970 (simplify_unary_operation_1) [FLOAT_TRUNCATE, FLOAT_EXTEND,
7971 SIGN_EXTEND, ZERO_EXTEND]: Handle cases where the operand
7972 already has the desired machine mode.
7973 (test_scalar_int_ops): Add tests that useless extensions and
7974 truncations are optimized away.
7975 (test_scalar_int_ext_ops): New self-test function to confirm
7976 that truncations of extensions are correctly simplified.
7977 (test_scalar_int_ext_ops2): New self-test function to check
7978 truncations of truncations, extensions of extensions, and
7979 truncations of extensions.
7980 (test_scalar_ops): Call the above two functions with a
7981 representative sampling of integer machine modes.
7983 2021-08-23 Roger Sayle <roger@nextmovesoftware.com>
7985 * match.pd (shift transformations): Change the sign of an
7986 LSHIFT_EXPR if it reduces the number of explicit conversions.
7988 2021-08-23 Jakub Jelinek <jakub@redhat.com>
7990 PR tree-optimization/86723
7991 * gimple-ssa-store-merging.c (find_bswap_or_nop_finalize): Add
7992 cast64_to_32 argument, set *cast64_to_32 to false, unless n is
7993 non-memory permutation of 64-bit src which only has bytes of
7994 0 or [5..8] and n->range is 4.
7995 (find_bswap_or_nop): Add cast64_to_32 and mask arguments, adjust
7996 find_bswap_or_nop_finalize caller, support bswap with some bytes
7997 zeroed, as long as at least two bytes are not zeroed.
7998 (bswap_replace): Add mask argument and handle masking of bswap
8000 (maybe_optimize_vector_constructor): Adjust find_bswap_or_nop
8001 caller, punt if cast64_to_32 or mask is not all ones.
8002 (pass_optimize_bswap::execute): Adjust find_bswap_or_nop_finalize
8003 caller, for now punt if cast64_to_32.
8005 2021-08-23 Richard Biener <rguenther@suse.de>
8007 PR tree-optimization/79334
8008 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record
8009 a type also for COMPONENT_REFs.
8010 (vn_reference_may_trap): Check ARRAY_REF with constant index
8011 against the array domain.
8013 2021-08-23 liuhongt <hongtao.liu@intel.com>
8016 * config/i386/sse.md (*avx512f_pshufb_truncv8hiv8qi_1): Add
8017 TARGET_AVX512BW to condition.
8019 2021-08-23 Jakub Jelinek <jakub@redhat.com>
8022 * dwarf2out.c (gen_variable_die): Add DW_AT_location for global
8023 register variables already during early_dwarf if possible.
8025 2021-08-23 Christophe Lyon <christophe.lyon@foss.st.com>
8027 * config/arm/arm_mve.h: Fix __arm_vctp16q return type.
8029 2021-08-23 Christophe Lyon <christophe.lyon@foss.st.com>
8032 * config/arm/arm.opt: Fix typo.
8033 * config/arm/t-rmprofile: Fix typo.
8035 2021-08-23 Jakub Jelinek <jakub@redhat.com>
8037 * tree.h (OMP_CLAUSE_GRAINSIZE_STRICT): Define.
8038 (OMP_CLAUSE_NUM_TASKS_STRICT): Define.
8039 * tree-pretty-print.c (dump_omp_clause) <case OMP_CLAUSE_GRAINSIZE,
8040 case OMP_CLAUSE_NUM_TASKS>: Print strict: modifier.
8041 * omp-expand.c (expand_task_call): Use GOMP_TASK_FLAG_STRICT in iflags
8042 if either grainsize or num_tasks clause has the strict modifier.
8044 2021-08-23 Martin Liska <mliska@suse.cz>
8046 * dbgcnt.def (DEBUG_COUNTER): New counter.
8047 * gimple.c (gimple_call_arg_flags): Use it in IPA PTA.
8049 2021-08-23 Jan Hubicka <hubicka@ucw.cz>
8051 * ipa-modref.c (analyze_ssa_name_flags): Improve handling of return slot.
8053 2021-08-23 Xi Ruoyao <xry111@mengyan1223.wang>
8056 * config/mips/mips-protos.h (mips_msa_output_shift_immediate):
8058 * config/mips/mips.c (mips_msa_output_shift_immediate): New
8060 * config/mips/mips-msa.md (vashl<mode>3, vashr<mode>3,
8061 vlshr<mode>3): Call it.
8063 2021-08-22 Jan Hubicka <hubicka@ucw.cz>
8064 Martin Liska <mliska@suse.cz>
8066 PR middle-end/101949
8067 * ipa-modref.c (analyze_ssa_name_flags): Indirect call implies
8070 2021-08-21 Dragan Mladjenovic <OT_Dragan.Mladjenovic@mediatek.com>
8072 * config/mips/mips.c (mips_function_rodata_section,
8073 TARGET_ASM_FUNCTION_RODATA_SECTION): Removed.
8075 2021-08-21 John David Anglin <danglin@gcc.gnu.org>
8077 * config/pa/pa.c (pa_asm_output_aligned_common): Remove warning.
8079 2021-08-20 Serge Belyshev <belyshev@depni.sinp.msu.ru>
8081 * configure.ac (thread-local storage support): Remove tls_first_major
8082 and tls_first_minor. Use "$conftest_s" to check support.
8083 * configure: Regenerate.
8085 2021-08-20 Serge Belyshev <belyshev@depni.sinp.msu.ru>
8087 * configure.ac: Fixup formatting.
8089 2021-08-20 Serge Belyshev <belyshev@depni.sinp.msu.ru>
8091 * acinclude.m4 (gcc_GAS_CHECK_FEATURE): Remove third argument and ...
8092 * configure.ac: ... update all callers.
8094 2021-08-20 Serge Belyshev <belyshev@depni.sinp.msu.ru>
8097 * acinclude.m4 (_gcc_COMPUTE_GAS_VERSION, _gcc_GAS_VERSION_GTE_IFELSE)
8098 (gcc_GAS_VERSION_GTE_IFELSE): Remove.
8099 (gcc_GAS_CHECK_FEATURE): Do not handle in-tree case specially.
8100 * configure.ac: Remove gcc_cv_gas_major_version, gcc_cv_gas_minor_version.
8101 Remove remaining checks for in-tree assembler.
8102 * configure: Regenerate.
8104 2021-08-20 Jeff Law <jlaw@localhost.localdomain>
8106 * config/h8300/h8300.c (shift_alg_hi): Improve arithmetic shift right
8107 by 15 bits for H8/300H and H8/S. Improve logical shifts by 12
8109 (shift_alg_si): Improve arithmetic right shift by 28-30 bits for
8110 H8/300H. Improve arithmetic shift right by 15 bits for H8/S.
8111 Improve logical shifts by 27 bits for H8/S.
8112 (get_shift_alg): Corresponding changes.
8113 (h8300_option_override): Revert to loops for -Os when profitable.
8115 2021-08-20 Richard Biener <rguenther@suse.de>
8117 * tree-vect-data-refs.c (dr_group_sort_cmp): Do not compare
8119 (vect_analyze_data_ref_accesses): Likewise. Assign the BB
8120 index as group_id when dataref_groups were not computed.
8121 * tree-vect-slp.c (vect_slp_bbs): Bump current_group when
8122 we advace to the next BB.
8124 2021-08-20 Jakub Jelinek <jakub@redhat.com>
8126 * omp-builtins.def (BUILT_IN_GOMP_WARNING, BUILT_IN_GOMP_ERROR): New
8129 2021-08-20 Martin Liska <mliska@suse.cz>
8131 PR gcov-profile/89961
8132 * gcov.c (make_gcov_file_name): Rewrite using std::string.
8133 (mangle_name): Simplify, do not used the second argument.
8134 (strip_extention): New function.
8135 (get_md5sum): Likewise.
8136 (get_gcov_intermediate_filename): Handle properly -p and -x
8138 (output_gcov_file): Use string type.
8139 (generate_results): Likewise.
8140 (md5sum_to_hex): Remove.
8142 2021-08-20 Michael Meissner <meissner@linux.ibm.com>
8144 * config/rs6000/altivec.md (UNSPEC_XXEVAL): Move to vsx.md.
8145 (UNSPEC_XXSPLTIW): Move to vsx.md.
8146 (UNSPEC_XXSPLTID): Move to vsx.md.
8147 (UNSPEC_XXSPLTI32DX): Move to vsx.md.
8148 (UNSPEC_XXBLEND): Move to vsx.md.
8149 (UNSPEC_XXPERMX): Move to vsx.md.
8150 (VM3): Move to vsx.md.
8151 (VM3_char): Move to vsx.md.
8152 (xxspltiw_v4si): Move to vsx.md.
8153 (xxspltiw_v4sf): Move to vsx.md.
8154 (xxspltiw_v4sf_inst): Move to vsx.md.
8155 (xxspltidp_v2df): Move to vsx.md.
8156 (xxspltidp_v2df_inst): Move to vsx.md.
8157 (xxsplti32dx_v4si_inst): Move to vsx.md.
8158 (xxsplti32dx_v4sf): Move to vsx.md.
8159 (xxsplti32dx_v4sf_inst): Move to vsx.md.
8160 (xxblend_<mode>): Move to vsx.md.
8161 (xxpermx): Move to vsx.md.
8162 (xxpermx_inst): Move to vsx.md.
8163 * config/rs6000/vsx.md (UNSPEC_XXEVAL): Move from altivec.md.
8164 (UNSPEC_XXSPLTIW): Move from altivec.md.
8165 (UNSPEC_XXSPLTID): Move from altivec.md.
8166 (UNSPEC_XXSPLTI32DX): Move from altivec.md.
8167 (UNSPEC_XXBLEND): Move from altivec.md.
8168 (UNSPEC_XXPERMX): Move from altivec.md.
8169 (VM3): Move from altivec.md.
8170 (VM3_char): Move from altivec.md.
8171 (xxspltiw_v4si): Move from altivec.md.
8172 (xxspltiw_v4sf): Move from altivec.md.
8173 (xxspltiw_v4sf_inst): Move from altivec.md.
8174 (xxspltidp_v2df): Move from altivec.md.
8175 (xxspltidp_v2df_inst): Move from altivec.md.
8176 (xxsplti32dx_v4si_inst): Move from altivec.md.
8177 (xxsplti32dx_v4sf): Move from altivec.md.
8178 (xxsplti32dx_v4sf_inst): Move from altivec.md.
8179 (xxblend_<mode>): Move from altivec.md.
8180 (xxpermx): Move from altivec.md.
8181 (xxpermx_inst): Move from altivec.md.
8183 2021-08-19 Roger Sayle <roger@nextmovesoftware.com>
8185 * tree-vect-generic.c (expand_vector_operations_1): Use either
8186 gimplify_build1 or gimplify_build2 instead of gimple_build_assign
8187 when constructing scalar splat expressions.
8189 2021-08-19 Peter Bergner <bergner@linux.ibm.com>
8192 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_mma_builtin): Cast
8193 pointer to __vector_pair *.
8195 2021-08-19 Martin Sebor <msebor@redhat.com>
8197 * gimple-range.cc: Add comments.
8198 * gimple-range.h: Same.
8200 2021-08-19 Martin Sebor <msebor@redhat.com>
8202 PR middle-end/101984
8203 * gimple-ssa-warn-access.cc (pass_waccess::execute): Also call
8206 2021-08-19 Jeff Law <jlaw@localhost.localdomain>
8208 * config.gcc (h8300-*-elf*): Do not include dbxelf.h.
8209 (h8300-*-linux*, v850-*-rtems*, v850*-elf*): Likewise.
8210 * config/v850/v850.h (DEFAULT_GDB_EXTENSIONS): Remove.
8212 2021-08-19 Jakub Jelinek <jakub@redhat.com>
8214 PR middle-end/101950
8215 * optabs.c (expand_clrsb_using_clz): New function.
8216 (expand_unop): Use it as another clrsb expansion fallback.
8218 2021-08-19 liuhongt <hongtao.liu@intel.com>
8221 2021-07-28 liuhongt <hongtao.liu@intel.com>
8224 * config/i386/i386.h (processor_costs): Add new member
8226 * config/i386/x86-tune-costs.h (ix86_size_cost, i386_cost,
8227 i486_cost, pentium_cost, lakemont_cost, pentiumpro_cost,
8228 geode_cost, k6_cost, athlon_cost, k8_cost, amdfam10_cost,
8229 bdver_cost, znver1_cost, znver2_cost, znver3_cost,
8230 btver1_cost, btver2_cost, btver3_cost, pentium4_cost,
8231 nocona_cost, atom_cost, atom_cost, slm_cost, intel_cost,
8232 generic_cost, core_cost): Initialize integer_to_sse same value
8234 (skylake_cost): Initialize integer_to_sse twice as much as sse_op.
8235 * config/i386/i386.c (ix86_builtin_vectorization_cost):
8236 Use integer_to_sse instead of sse_op to calculate the cost of
8239 2021-08-18 Iain Sandoe <iain@sandoe.co.uk>
8241 * config.gcc: Include rpath.opt for Darwin.
8242 * config/darwin.h (DRIVER_SELF_SPECS): Handle -rpath.
8244 2021-08-18 Thomas Schwinge <thomas@codesourcery.com>
8247 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor_expand):
8250 2021-08-18 Jonathan Wright <jonathan.wright@arm.com>
8252 * config/aarch64/arm_neon.h (vld3_lane_f64): Use float RTL
8253 pattern and type cast.
8254 (vld4_lane_f32): Use float RTL pattern.
8255 (vld4q_lane_f64): Use float type cast.
8257 2021-08-18 Jan Hubicka <hubicka@ucw.cz>
8259 * tree-ssa-uninit.c (maybe_warn_pass_by_reference): Check also
8262 2021-08-18 Thomas Schwinge <thomas@codesourcery.com>
8264 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): Extend.
8265 (test_map_of_type_with_ctor_and_dtor_expand): Add function.
8266 (hash_map_tests_c_tests): Call it.
8268 2021-08-18 Thomas Schwinge <thomas@codesourcery.com>
8270 * ggc.h (enum ggc_collect): New.
8271 (ggc_collect): Use it.
8272 * ggc-page.c: Adjust.
8273 * ggc-common.c: Likewise.
8274 * ggc-tests.c: Likewise.
8275 * read-rtl-function.c: Likewise.
8276 * selftest-run-tests.c: Likewise.
8277 * doc/gty.texi (Invoking the garbage collector): Likewise.
8279 2021-08-18 liuhongt <hongtao.liu@intel.com>
8282 * config/i386/i386.h (TARGET_V2DF_REDUCTION_PREFER_HADDPD):
8284 * config/i386/sse.md (*sse3_haddv2df3_low): Add
8285 TARGET_V2DF_REDUCTION_PREFER_HADDPD.
8286 (*sse3_hsubv2df3_low): Ditto.
8287 * config/i386/x86-tune.def
8288 (X86_TUNE_V2DF_REDUCTION_PREFER_HADDPD): New tune.
8290 2021-08-17 Andrew MacLeod <amacleod@redhat.com>
8292 * gimple-range-gori.cc (gori_compute::gori_compute): Enable tracing.
8293 (gori_compute::compute_operand_range): Add tracing.
8294 (gori_compute::logical_combine): Ditto.
8295 (gori_compute::compute_logical_operands): Ditto.
8296 (gori_compute::compute_operand1_range): Ditto.
8297 (gori_compute::compute_operand2_range): Ditto.
8298 (gori_compute::outgoing_edge_range_p): Ditto.
8299 * gimple-range-gori.h (class gori_compute): Add range_tracer.
8301 2021-08-17 Andrew MacLeod <amacleod@redhat.com>
8303 * flag-types.h (enum evrp_mode): Adjust evrp-mode values.
8304 * gimple-range-cache.cc (DEBUG_RANGE_CACHE): Relocate from.
8305 * gimple-range-trace.h (DEBUG_RANGE_CACHE): Here.
8306 * params.opt (--param=evrp-mode): Adjust options.
8308 2021-08-17 Andrew MacLeod <amacleod@redhat.com>
8310 * Makefile.in (OBJS): Add gimple-range-trace.o.
8311 * gimple-range-cache.h (enable_new_values): Remove unused prototype.
8312 * gimple-range-fold.cc: Adjust headers.
8313 * gimple-range-trace.cc: New.
8314 * gimple-range-trace.h: New.
8315 * gimple-range.cc (gimple_ranger::gimple_ranger): Enable tracer.
8316 (gimple_ranger::range_of_expr): Add tracing.
8317 (gimple_ranger::range_on_entry): Ditto.
8318 (gimple_ranger::range_on_exit): Ditto.
8319 (gimple_ranger::range_on_edge): Ditto.
8320 (gimple_ranger::fold_range_internal): Ditto.
8321 (gimple_ranger::dump_bb): Do not calculate edge range twice.
8322 (trace_ranger::*): Remove.
8323 (enable_ranger): Never create a trace_ranger.
8324 (debug_seed_ranger): Move to gimple-range-trace.cc.
8325 (dump_ranger): Ditto.
8326 (debug_ranger): Ditto.
8327 * gimple-range.h: Include gimple-range-trace.h.
8328 (range_on_entry, range_on_exit): No longer virtual.
8329 (class trace_ranger): Remove.
8330 (DEBUG_RANGE_CACHE): Move to gimple-range-trace.h.
8332 2021-08-17 Martin Sebor <msebor@redhat.com>
8334 PR middle-end/101854
8335 * builtins.c (expand_builtin_alloca): Move warning code to check_alloca
8336 in gimple-ssa-warn-access.cc.
8337 * calls.c (alloc_max_size): Move code to check_alloca.
8338 (get_size_range): Move to pointer-query.cc.
8339 (maybe_warn_alloc_args_overflow): Move to gimple-ssa-warn-access.cc.
8340 (get_attr_nonstring_decl): Move to tree.c.
8341 (fntype_argno_type): Move to gimple-ssa-warn-access.cc.
8342 (append_attrname): Same.
8343 (maybe_warn_rdwr_sizes): Same.
8344 (initialize_argument_information): Move code to
8345 gimple-ssa-warn-access.cc.
8346 * calls.h (maybe_warn_alloc_args_overflow): Move to
8347 gimple-ssa-warn-access.h.
8348 (get_attr_nonstring_decl): Move to tree.h.
8349 (maybe_warn_nonstring_arg): Move to gimple-ssa-warn-access.h.
8350 (enum size_range_flags): Move to pointer-query.h.
8351 (get_size_range): Same.
8352 * gimple-ssa-warn-access.cc (has_location): Remove unused overload
8353 to avoid Clang -Wunused-function.
8354 (get_size_range): Declare static.
8355 (maybe_emit_free_warning): Rename...
8356 (maybe_check_dealloc_call): ...to this for consistency.
8357 (class pass_waccess): Add members.
8358 (pass_waccess::~pass_waccess): Defined.
8359 (alloc_max_size): Move here from calls.c.
8360 (maybe_warn_alloc_args_overflow): Same.
8361 (check_alloca): New function.
8362 (check_alloc_size_call): New function.
8363 (check_strncat): Handle another warning flag.
8364 (pass_waccess::check_builtin): Handle alloca.
8365 (fntype_argno_type): Move here from calls.c.
8366 (append_attrname): Same.
8367 (maybe_warn_rdwr_sizes): Same.
8368 (pass_waccess::check_call): Define.
8369 (check_nonstring_args): New function.
8370 (pass_waccess::check): Call new member functions.
8371 (pass_waccess::execute): Enable ranger.
8372 * gimple-ssa-warn-access.h (get_size_range): Move here from calls.h.
8373 (maybe_warn_nonstring_arg): Same.
8374 * gimple-ssa-warn-restrict.c: Remove #include.
8375 * pointer-query.cc (get_size_range): Move here from calls.c.
8376 * pointer-query.h (enum size_range_flags): Same.
8377 (get_size_range): Same.
8378 * tree.c (get_attr_nonstring_decl): Move here from calls.c.
8379 * tree.h (get_attr_nonstring_decl): Move here from calls.h.
8381 2021-08-17 Thomas Schwinge <thomas@codesourcery.com>
8383 * ggc.h (ggc_collect): Add 'force_collect' parameter.
8384 * ggc-page.c (ggc_collect): Use that one instead of global
8385 'ggc_force_collect'. Adjust all users.
8386 * doc/gty.texi (Invoking the garbage collector): Update.
8387 * ggc-internal.h (ggc_force_collect): Remove.
8388 * ggc-common.c (ggc_force_collect): Likewise.
8389 * selftest.h (forcibly_ggc_collect): Remove.
8390 * ggc-tests.c (selftest::forcibly_ggc_collect): Likewise.
8391 * read-rtl-function.c (test_loading_labels): Adjust.
8392 * selftest-run-tests.c (run_tests): Likewise.
8394 2021-08-17 Iain Sandoe <iain@sandoe.co.uk>
8396 * config/darwin.c (darwin_file_end): Reset and reclaim the
8397 section names table at the end of compile.
8399 2021-08-17 Iain Sandoe <iain@sandoe.co.uk>
8402 * config.in: Regenerate.
8403 * config/i386/darwin.h (EXTRA_ASM_OPTS): New
8404 (ASM_SPEC): Pass options to disable branch shortening where
8406 * configure: Regenerate.
8407 * configure.ac: Detect versions of 'as' that support the
8408 optimisation which has the bug.
8410 2021-08-17 Richard Biener <rguenther@suse.de>
8412 * optabs-query.c (supports_vec_gather_load_p): Also check
8414 (supports_vec_scatter_store_p): Likewise.
8415 * tree-vect-data-refs.c (vect_gather_scatter_fn_p): Fall
8416 back to masked variants if non-masked are not supported.
8417 * tree-vect-patterns.c (vect_recog_gather_scatter_pattern):
8418 When we need to use masked gather/scatter but do not have
8419 a mask set up a constant true one.
8420 * tree-vect-stmts.c (vect_check_scalar_mask): Also allow
8423 2021-08-17 Roger Sayle <roger@nextmovesoftware.com>
8425 * tree-ssa-ccp.c (bit_value_binop) [MINUS_EXPR]: Use same
8426 algorithm as PLUS_EXPR to improve subtraction bit bounds.
8427 [POINTER_DIFF_EXPR]: Treat as synonymous with MINUS_EXPR.
8429 2021-08-17 Roger Sayle <roger@nextmovesoftware.com>
8431 * tree-ssa-ccp.c (bit_value_mult_const): New helper function to
8432 calculate the mask-value pair result of a multiplication by an
8434 (bit_value_binop) [MULT_EXPR]: Call it from here for
8435 multiplications by (sparse) non-negative constants.
8437 2021-08-17 Christophe Lyon <christophe.lyon@foss.st.com>
8440 * config.gcc (gcc_cv_initfini_array): Leave undefined for
8441 uclinuxfdpiceabi targets.
8443 2021-08-17 Alexandre Oliva <oliva@adacore.com>
8445 * tree-inline.c (maybe_move_debug_stmts_to_successors): Don't
8446 reverse debug stmts.
8448 2021-08-17 Alexandre Oliva <oliva@adacore.com>
8450 * tree-cfg.c (dump_function_to_file): Use fun, not cfun.
8452 2021-08-17 Jonathan Wright <jonathan.wright@arm.com>
8454 * config/aarch64/arm_neon.h (__LD4_LANE_FUNC): Delete.
8455 (__LD4Q_LANE_FUNC): Likewise.
8456 (vld4_lane_u8): Define without macro.
8457 (vld4_lane_u16): Likewise.
8458 (vld4_lane_u32): Likewise.
8459 (vld4_lane_u64): Likewise.
8460 (vld4_lane_s8): Likewise.
8461 (vld4_lane_s16): Likewise.
8462 (vld4_lane_s32): Likewise.
8463 (vld4_lane_s64): Likewise.
8464 (vld4_lane_f16): Likewise.
8465 (vld4_lane_f32): Likewise.
8466 (vld4_lane_f64): Likewise.
8467 (vld4_lane_p8): Likewise.
8468 (vld4_lane_p16): Likewise.
8469 (vld4_lane_p64): Likewise.
8470 (vld4q_lane_u8): Likewise.
8471 (vld4q_lane_u16): Likewise.
8472 (vld4q_lane_u32): Likewise.
8473 (vld4q_lane_u64): Likewise.
8474 (vld4q_lane_s8): Likewise.
8475 (vld4q_lane_s16): Likewise.
8476 (vld4q_lane_s32): Likewise.
8477 (vld4q_lane_s64): Likewise.
8478 (vld4q_lane_f16): Likewise.
8479 (vld4q_lane_f32): Likewise.
8480 (vld4q_lane_f64): Likewise.
8481 (vld4q_lane_p8): Likewise.
8482 (vld4q_lane_p16): Likewise.
8483 (vld4q_lane_p64): Likewise.
8484 (vld4_lane_bf16): Likewise.
8485 (vld4q_lane_bf16): Likewise.
8487 2021-08-17 Jonathan Wright <jonathan.wright@arm.com>
8489 * config/aarch64/arm_neon.h (__LD3_LANE_FUNC): Delete.
8490 (__LD3Q_LANE_FUNC): Delete.
8491 (vld3_lane_u8): Define without macro.
8492 (vld3_lane_u16): Likewise.
8493 (vld3_lane_u32): Likewise.
8494 (vld3_lane_u64): Likewise.
8495 (vld3_lane_s8): Likewise.
8496 (vld3_lane_s16): Likewise.
8497 (vld3_lane_s32): Likewise.
8498 (vld3_lane_s64): Likewise.
8499 (vld3_lane_f16): Likewise.
8500 (vld3_lane_f32): Likewise.
8501 (vld3_lane_f64): Likewise.
8502 (vld3_lane_p8): Likewise.
8503 (vld3_lane_p16): Likewise.
8504 (vld3_lane_p64): Likewise.
8505 (vld3q_lane_u8): Likewise.
8506 (vld3q_lane_u16): Likewise.
8507 (vld3q_lane_u32): Likewise.
8508 (vld3q_lane_u64): Likewise.
8509 (vld3q_lane_s8): Likewise.
8510 (vld3q_lane_s16): Likewise.
8511 (vld3q_lane_s32): Likewise.
8512 (vld3q_lane_s64): Likewise.
8513 (vld3q_lane_f16): Likewise.
8514 (vld3q_lane_f32): Likewise.
8515 (vld3q_lane_f64): Likewise.
8516 (vld3q_lane_p8): Likewise.
8517 (vld3q_lane_p16): Likewise.
8518 (vld3q_lane_p64): Likewise.
8519 (vld3_lane_bf16): Likewise.
8520 (vld3q_lane_bf16): Likewise.
8522 2021-08-17 Jonathan Wright <jonathan.wright@arm.com>
8524 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Delete.
8525 (__LD2Q_LANE_FUNC): Likewise.
8526 (vld2_lane_u8): Define without macro.
8527 (vld2_lane_u16): Likewise.
8528 (vld2_lane_u32): Likewise.
8529 (vld2_lane_u64): Likewise.
8530 (vld2_lane_s8): Likewise.
8531 (vld2_lane_s16): Likewise.
8532 (vld2_lane_s32): Likewise.
8533 (vld2_lane_s64): Likewise.
8534 (vld2_lane_f16): Likewise.
8535 (vld2_lane_f32): Likewise.
8536 (vld2_lane_f64): Likewise.
8537 (vld2_lane_p8): Likewise.
8538 (vld2_lane_p16): Likewise.
8539 (vld2_lane_p64): Likewise.
8540 (vld2q_lane_u8): Likewise.
8541 (vld2q_lane_u16): Likewise.
8542 (vld2q_lane_u32): Likewise.
8543 (vld2q_lane_u64): Likewise.
8544 (vld2q_lane_s8): Likewise.
8545 (vld2q_lane_s16): Likewise.
8546 (vld2q_lane_s32): Likewise.
8547 (vld2q_lane_s64): Likewise.
8548 (vld2q_lane_f16): Likewise.
8549 (vld2q_lane_f32): Likewise.
8550 (vld2q_lane_f64): Likewise.
8551 (vld2q_lane_p8): Likewise.
8552 (vld2q_lane_p16): Likewise.
8553 (vld2q_lane_p64): Likewise.
8554 (vld2_lane_bf16): Likewise.
8555 (vld2q_lane_bf16): Likewise.
8557 2021-08-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
8559 * haifa-sched.c (advance_one_cycle): Output more context-synchronization
8562 2021-08-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
8564 * haifa-sched.c (enum rfs_decision, rfs_str): Add RFS_AUTOPREF.
8565 (rank_for_schedule): Use it.
8567 2021-08-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
8569 PR rtl-optimization/91598
8570 * haifa-sched.c (autopref_rank_for_schedule): Prioritize "irrelevant"
8571 insns after memory reads and before memory writes.
8573 2021-08-17 Alistair_Lee <alistair.lee@arm.com>
8575 * rtl.h (CONST_VECTOR_P): New macro.
8576 * config/aarch64/aarch64.c (aarch64_get_sve_pred_bits): Use RTL
8577 code testing macros.
8578 (aarch64_ptrue_all_mode): Likewise.
8579 (aarch64_expand_mov_immediate): Likewise.
8580 (aarch64_const_vec_all_in_range_p): Likewise.
8581 (aarch64_rtx_costs): Likewise.
8582 (aarch64_legitimate_constant_p): Likewise.
8583 (aarch64_simd_valid_immediate): Likewise.
8584 (aarch64_simd_make_constant): Likewise.
8585 (aarch64_convert_mult_to_shift): Likewise.
8586 (aarch64_expand_sve_vec_perm): Likewise.
8587 (aarch64_vec_fpconst_pow_of_2): Likewise.
8589 2021-08-17 Andrew MacLeod <amacleod@redhat.com>
8591 PR tree-optimization/101938
8592 * range-op.cc (operator_abs::op1_range): Special case
8593 -TYPE_MIN_VALUE for flag_wrapv.
8595 2021-08-17 Kewen Lin <linkw@linux.ibm.com>
8597 * tree-vect-slp.c (vectorizable_bb_reduc_epilogue): Add the cost for
8600 2021-08-17 Jakub Jelinek <jakub@redhat.com>
8602 * tree.def (OMP_SCOPE): New tree code.
8603 * tree.h (OMP_SCOPE_BODY, OMP_SCOPE_CLAUSES): Define.
8604 * tree-nested.c (convert_nonlocal_reference_stmt,
8605 convert_local_reference_stmt, convert_gimple_call): Handle
8607 * tree-pretty-print.c (dump_generic_node): Handle OMP_SCOPE.
8608 * gimple.def (GIMPLE_OMP_SCOPE): New gimple code.
8609 * gimple.c (gimple_build_omp_scope): New function.
8610 (gimple_copy): Handle GIMPLE_OMP_SCOPE.
8611 * gimple.h (gimple_build_omp_scope): Declare.
8612 (gimple_has_substatements): Handle GIMPLE_OMP_SCOPE.
8613 (gimple_omp_scope_clauses, gimple_omp_scope_clauses_ptr,
8614 gimple_omp_scope_set_clauses): New inline functions.
8615 (CASE_GIMPLE_OMP): Add GIMPLE_OMP_SCOPE.
8616 * gimple-pretty-print.c (dump_gimple_omp_scope): New function.
8617 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCOPE.
8618 * gimple-walk.c (walk_gimple_stmt): Likewise.
8619 * gimple-low.c (lower_stmt): Likewise.
8620 * gimplify.c (is_gimple_stmt): Handle OMP_MASTER.
8621 (gimplify_scan_omp_clauses): For task reductions, handle OMP_SCOPE
8622 like ORT_WORKSHARE constructs. Adjust diagnostics for %<scope%>
8623 allowing task reductions. Reject inscan reductions on scope.
8624 (omp_find_stores_stmt): Handle GIMPLE_OMP_SCOPE.
8625 (gimplify_omp_workshare, gimplify_expr): Handle OMP_SCOPE.
8626 * tree-inline.c (remap_gimple_stmt): Handle GIMPLE_OMP_SCOPE.
8627 (estimate_num_insns): Likewise.
8628 * omp-low.c (build_outer_var_ref): Look through GIMPLE_OMP_SCOPE
8629 contexts if var isn't privatized there.
8630 (check_omp_nesting_restrictions): Handle GIMPLE_OMP_SCOPE.
8631 (scan_omp_1_stmt): Likewise.
8632 (maybe_add_implicit_barrier_cancel): Look through outer
8634 (lower_omp_scope): New function.
8635 (lower_omp_task_reductions): Handle OMP_SCOPE.
8636 (lower_omp_1): Handle GIMPLE_OMP_SCOPE.
8637 (diagnose_sb_1, diagnose_sb_2): Likewise.
8638 * omp-expand.c (expand_omp_single): Support also GIMPLE_OMP_SCOPE.
8639 (expand_omp): Handle GIMPLE_OMP_SCOPE.
8640 (omp_make_gimple_edges): Likewise.
8641 * omp-builtins.def (BUILT_IN_GOMP_SCOPE_START): New built-in.
8643 2021-08-17 Richard Biener <rguenther@suse.de>
8645 PR tree-optimization/101925
8646 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Set
8647 reverse on COMPONENT_REF and ARRAY_REF according to
8648 what reverse_storage_order_for_component_p does.
8649 (vn_reference_eq): Compare reversed on reference ops.
8650 (reverse_storage_order_for_component_p): New overload.
8651 (vn_reference_lookup_3): Check reverse_storage_order_for_component_p
8652 on the reference looked up.
8654 2021-08-17 Jeff Law <jlaw@localhost.localdomain>
8656 * config/h8300/h8300.c (shift_alg_si): Avoid loops for most SImode
8658 (h8300_option_override): Use loops on H8/S more often when optimizing
8660 (get_shift_alg): Handle new "special" cases on H8/S. Simplify
8661 accordingly. Handle various arithmetic right shifts with special
8662 sequences that we couldn't handle before.
8664 2021-08-16 Jeff Law <jlaw@localhost.localdomain>
8666 * config.gcc (rl78-*-elf*): Do not include dbxelf.h.
8668 2021-08-16 Sebastian Huber <sebastian.huber@embedded-brains.de>
8670 * config/sparc/rtemself.h (SPARC_GCOV_TYPE_SIZE): Define.
8671 * config/sparc/sparc.c (sparc_gcov_type_size): New.
8672 (TARGET_GCOV_TYPE_SIZE): Redefine if SPARC_GCOV_TYPE_SIZE is defined.
8673 * coverage.c (get_gcov_type): Use targetm.gcov_type_size().
8674 * doc/tm.texi (TARGET_GCOV_TYPE_SIZE): Add hook under "Misc".
8675 * doc/tm.texi.in: Regenerate.
8676 * target.def (gcov_type_size): New target hook.
8677 * targhooks.c (default_gcov_type_size): New.
8678 * targhooks.h (default_gcov_type_size): Declare.
8679 * tree-profile.c (gimple_gen_edge_profiler): Use precision of
8681 (gimple_gen_time_profiler): Likewise.
8683 2021-08-16 Eric Botcazou <ebotcazou@gcc.gnu.org>
8685 * dwarf2out.c (add_scalar_info): Deal with DW_AT_data_bit_offset.
8687 2021-08-16 Tobias Burnus <tobias@codesourcery.com>
8689 PR middle-end/101931
8690 * omp-low.c (omp_runtime_api_call): Update for routines
8691 added in the meanwhile.
8693 2021-08-16 Martin Liska <mliska@suse.cz>
8695 PR tree-optimization/100393
8696 * tree-switch-conversion.c (group_cluster::dump): Use
8697 get_comparison_count.
8698 (jump_table_cluster::find_jump_tables): Pre-compute number of
8699 comparisons and then decrement it. Cache also max_ratio.
8700 (jump_table_cluster::can_be_handled): Change signature.
8701 * tree-switch-conversion.h (get_comparison_count): New.
8703 2021-08-16 Eric Botcazou <ebotcazou@gcc.gnu.org>
8705 * dwarf2out.c (add_data_member_location_attribute): Use GNAT
8706 encodings only when -fgnat-encodings=all is specified.
8707 (add_bound_info): Likewise.
8708 (add_byte_size_attribute): Likewise.
8709 (gen_member_die): Likewise.
8711 2021-08-16 Thomas Schwinge <thomas@codesourcery.com>
8713 * omp-oacc-neuter-broadcast.cc
8714 (execute_omp_oacc_neuter_broadcast): Plug 'par' memory leak.
8716 2021-08-16 Thomas Schwinge <thomas@codesourcery.com>
8718 * omp-oacc-neuter-broadcast.cc
8719 (execute_omp_oacc_neuter_broadcast): Clarify memory management for
8722 2021-08-16 Thomas Schwinge <thomas@codesourcery.com>
8724 * omp-oacc-neuter-broadcast.cc (field_map): Move variable into...
8725 (execute_omp_oacc_neuter_broadcast): ... here.
8726 (install_var_field, build_receiver_ref, build_sender_ref): Take
8727 'field_map_t *' parameter. Adjust all users.
8728 (worker_single_copy, neuter_worker_single): Take a
8729 'record_field_map_t *' parameter. Adjust all users.
8731 2021-08-16 liuhongt <hongtao.liu@intel.com>
8734 * config/i386/i386.md (ldexp<mode>3): Force operands[1] to
8737 2021-08-16 Martin Liska <mliska@suse.cz>
8740 * multiple_target.c (create_dispatcher_calls): Make default
8741 function local only if it is a definition.
8743 2021-08-16 Martin Liska <mliska@suse.cz>
8746 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Do not
8747 consider equal SSA_NAMEs when one is a param.
8749 2021-08-16 liuhongt <hongtao.liu@intel.com>
8752 * config/i386/i386-expand.c (ix86_expand_vec_perm_vpermt2):
8753 Support vpermi2b for V32QI/V16QImode.
8754 (ix86_extract_perm_from_pool_constant): New function.
8755 (ix86_expand_vec_one_operand_perm_avx512): Support
8756 vpermw/vpermb under TARGET_AVX512BW/TARGET_AVX512VBMI.
8757 (expand_vec_perm_1): Adjust comments for upper.
8758 * config/i386/i386-protos.h (ix86_extract_perm_from_pool_constant):
8760 * config/i386/predicates.md (permvar_truncate_operand): New predicate.
8761 (pshufb_truncv4siv4hi_operand): Ditto.
8762 (pshufb_truncv8hiv8qi_operand): Ditto.
8763 * config/i386/sse.md (*avx512bw_permvar_truncv16siv16hi_1):
8764 New pre_reload define_insn_and_split.
8765 (*avx512f_permvar_truncv8siv8hi_1): Ditto.
8766 (*avx512f_vpermvar_truncv8div8si_1): Ditto.
8767 (*avx512f_permvar_truncv32hiv32qi_1): Ditto.
8768 (*avx512f_permvar_truncv16hiv16qi_1): Ditto.
8769 (*avx512f_permvar_truncv4div4si_1): Ditto.
8770 (*avx512f_pshufb_truncv8hiv8qi_1): Ditto.
8771 (*avx512f_pshufb_truncv4siv4hi_1): Ditto.
8772 (*avx512f_pshufd_truncv2div2si_1): Ditto.
8774 2021-08-16 Kito Cheng <kito.cheng@sifive.com>
8776 * config/riscv/multilib-generator: Support code model option for
8778 * doc/install.texi: Add document of new option for
8779 --with-multilib-generator.
8781 2021-08-15 Clément Chigot <clement.chigot@atos.net>
8783 * config/rs6000/rs6000.c (xcoff_tls_exec_model_detected): New.
8784 (rs6000_legitimize_tls_address_aix): Use it.
8785 (rs6000_xcoff_file_end): Add ".ref __tls_get_addr" when
8786 xcoff_tls_exec_model_detected is true.
8788 2021-08-15 Jeff Law <jlaw@localhost.localdomain>
8790 * config/h8300/h8300.c (shift_alg_si): Retune H8/300H shifts
8791 to allow a bit more code growth, saving many dozens of cycles.
8792 (h8300_option_override): Adjus shift_alg_si if optimizing for
8794 (get_shift_alg): Use special + inline shifts for residuals
8797 2021-08-14 Stafford Horne <shorne@gmail.com>
8800 * config/or1k/or1k-opts.h: New file.
8801 * config/or1k/or1k.c (or1k_legitimize_address_1, print_reloc):
8802 Support generating gotha relocations if -mcmodel=large is
8804 * config/or1k/or1k.h (TARGET_CMODEL_SMALL, TARGET_CMODEL_LARGE):
8806 * config/or1k/or1k.opt (mcmodel=): New option.
8807 * doc/invoke.texi (OpenRISC Options): Document mcmodel.
8809 2021-08-14 Martin Sebor <msebor@redhat.com>
8811 PR middle-end/101791
8812 * gimple-ssa-warn-access.cc (new_delete_mismatch_p): Use new argument
8813 to valid_new_delete_pair_p.
8814 * tree.c (valid_new_delete_pair_p): Add argument.
8815 * tree.h (valid_new_delete_pair_p): Same.
8817 2021-08-14 Jakub Jelinek <jakub@redhat.com>
8820 * config/i386/i386-expand.c (expand_vec_perm_broadcast_1)
8821 <case E_V64QImode>: For this mode assert
8822 !TARGET_AVX512BW || d->perm[0] rather than !TARGET_AVX2 || d->perm[0].
8824 2021-08-13 Michael Meissner <meissner@linux.ibm.com>
8827 * config/rs6000/altivec.md (xxeval): Use register_predicate
8828 instead of altivec_register_predicate.
8830 2021-08-13 Martin Sebor <msebor@redhat.com>
8832 PR middle-end/101734
8833 * tree-ssa-uninit.c (maybe_warn_read_write_only): New function.
8834 (maybe_warn_operand): Call it.
8836 2021-08-13 Martin Liska <mliska@suse.cz>
8839 * attribs.c (decl_attributes): Make naked functions "noipa"
8842 2021-08-13 Martin Liska <mliska@suse.cz>
8845 * symtab.c (symtab_node::noninterposable_alias): Do not create
8846 local aliases for target_clone functions as the clonning pass
8849 2021-08-13 Martin Liska <mliska@suse.cz>
8851 * opts.c (LIVE_PATCHING_OPTION): Define.
8852 (control_options_for_live_patching): Use it in error messages.
8854 2021-08-13 Jan Hubicka <hubicka@ucw.cz>
8856 * ipa-modref.c (dump_eaf_flags): Dump EAF_NOREAD.
8857 (implicit_const_eaf_flags, implicit_pure_eaf_flags,
8858 ignore_stores_eaf_flags): New constants.
8859 (remove_useless_eaf_flags): New function.
8860 (eaf_flags_useful_p): Use it.
8861 (deref_flags): Add EAF_NOT_RETURNED if flag is unused;
8863 (modref_lattice::init): Add EAF_NOREAD.
8864 (modref_lattice::add_escape_point): Do not reacord escape point if
8866 (modref_lattice::merge): EAF_NOESCAPE implies EAF_NODIRECTESCAPE;
8867 use remove_useless_eaf_flags.
8868 (modref_lattice::merge_deref): Use ignore_stores_eaf_flags.
8869 (modref_lattice::merge_direct_load): Add EAF_NOREAD
8870 (analyze_ssa_name_flags): Fix handling EAF_NOT_RETURNED
8871 (analyze_parms): Use remove_useless_eaf_flags.
8872 (ipa_merge_modref_summary_after_inlining): Use ignore_stores_eaf_flags.
8873 (modref_merge_call_site_flags): Add caller and ecf_flags parameter;
8874 use remove_useless_eaf_flags.
8875 (modref_propagate_flags_in_scc): Update.
8876 * ipa-modref.h: Turn eaf_flags_t back to char.
8877 * tree-core.h (EAF_NOT_RETURNED): Fix.
8878 (EAF_NOREAD): New constant
8879 * tree-ssa-alias.c: (ref_maybe_used_by_call_p_1): Check for
8881 * tree-ssa-structalias.c (handle_rhs_call): Handle new flags.
8882 (handle_pure_call): Likewise.
8884 2021-08-12 Jakub Jelinek <jakub@redhat.com>
8886 * tree.def (OMP_MASKED): New tree code.
8887 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_FILTER.
8888 * tree.h (OMP_MASKED_BODY, OMP_MASKED_CLAUSES, OMP_MASKED_COMBINED,
8889 OMP_CLAUSE_FILTER_EXPR): Define.
8890 * tree.c (omp_clause_num_ops): Add OMP_CLAUSE_FILTER entry.
8891 (omp_clause_code_name): Likewise.
8892 (walk_tree_1): Handle OMP_CLAUSE_FILTER.
8893 * tree-nested.c (convert_nonlocal_omp_clauses,
8894 convert_local_omp_clauses): Handle OMP_CLAUSE_FILTER.
8895 (convert_nonlocal_reference_stmt, convert_local_reference_stmt,
8896 convert_gimple_call): Handle GIMPLE_OMP_MASTER.
8897 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_FILTER.
8898 (dump_generic_node): Handle OMP_MASTER.
8899 * gimple.def (GIMPLE_OMP_MASKED): New gimple code.
8900 * gimple.c (gimple_build_omp_masked): New function.
8901 (gimple_copy): Handle GIMPLE_OMP_MASKED.
8902 * gimple.h (gimple_build_omp_masked): Declare.
8903 (gimple_has_substatements): Handle GIMPLE_OMP_MASKED.
8904 (gimple_omp_masked_clauses, gimple_omp_masked_clauses_ptr,
8905 gimple_omp_masked_set_clauses): New inline functions.
8906 (CASE_GIMPLE_OMP): Add GIMPLE_OMP_MASKED.
8907 * gimple-pretty-print.c (dump_gimple_omp_masked): New function.
8908 (pp_gimple_stmt_1): Handle GIMPLE_OMP_MASKED.
8909 * gimple-walk.c (walk_gimple_stmt): Likewise.
8910 * gimple-low.c (lower_stmt): Likewise.
8911 * gimplify.c (is_gimple_stmt): Handle OMP_MASTER.
8912 (gimplify_scan_omp_clauses): Handle OMP_CLAUSE_FILTER. For clauses
8913 that take one expression rather than decl or constant, force
8914 gimplification of that into a SSA_NAME or temporary unless min
8916 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_FILTER.
8917 (gimplify_expr): Handle OMP_MASKED.
8918 * tree-inline.c (remap_gimple_stmt): Handle GIMPLE_OMP_MASKED.
8919 (estimate_num_insns): Likewise.
8920 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_FILTER.
8921 (check_omp_nesting_restrictions): Handle GIMPLE_OMP_MASKED. Adjust
8922 diagnostics for existence of masked construct.
8923 (scan_omp_1_stmt, lower_omp_master, lower_omp_1, diagnose_sb_1,
8924 diagnose_sb_2): Handle GIMPLE_OMP_MASKED.
8925 * omp-expand.c (expand_omp_synch, expand_omp, omp_make_gimple_edges):
8928 2021-08-12 Uroš Bizjak <ubizjak@gmail.com>
8931 * config/i386/i386.md (avx512f_scalef<mode>2): New insn pattern.
8932 (ldexp<mode>3): Use avx512f_scalef<mode>2.
8933 (UNSPEC_SCALEF): Move from ...
8934 * config/i386/sse.md (UNSPEC_SCALEF): ... here.
8936 2021-08-12 Jan Hubicka <hubicka@ucw.cz>
8938 * ipa-split.c (consider_split): Fix condition testing void functions.
8940 2021-08-12 Aldy Hernandez <aldyh@redhat.com>
8942 * doc/invoke.texi: Remove docs for threader-mode param.
8943 * flag-types.h (enum threader_mode): Remove.
8944 * params.opt: Remove threader-mode param.
8945 * tree-ssa-threadbackward.c (class back_threader): Remove
8946 path_is_unreachable_p.
8947 Make find_paths private.
8948 Add maybe_thread and thread_through_all_blocks.
8949 Remove reference marker for m_registry.
8950 Remove reference marker for m_profit.
8951 (back_threader::back_threader): Adjust for registry and profit not
8953 (dump_path): Move down.
8955 (class thread_jumps): Remove.
8956 (class back_threader_registry): Remove m_all_paths.
8958 (thread_jumps::thread_through_all_blocks): Move to back_threader
8960 (fsm_find_thread_path): Remove
8961 (back_threader::maybe_thread): New.
8962 (back_threader::thread_through_all_blocks): Move from
8964 (back_threader_registry::back_threader_registry): Remove
8966 (back_threader_registry::~back_threader_registry): Remove.
8967 (thread_jumps::find_taken_edge): Remove.
8968 (thread_jumps::check_subpath_and_update_thread_path): Remove.
8969 (thread_jumps::maybe_register_path): Remove.
8970 (thread_jumps::handle_phi): Remove.
8971 (handle_assignment_p): Remove.
8972 (thread_jumps::handle_assignment): Remove.
8973 (thread_jumps::fsm_find_control_statement_thread_paths): Remove.
8974 (thread_jumps::find_jump_threads_backwards): Remove.
8975 (thread_jumps::find_jump_threads_backwards_with_ranger): Remove.
8976 (try_thread_blocks): Rename find_jump_threads_backwards to
8978 (pass_early_thread_jumps::execute): Same.
8980 2021-08-12 Tobias Burnus <tobias@codesourcery.com>
8982 * tree-core.h (omp_clause_proc_bind_kind): Add
8983 OMP_CLAUSE_PROC_BIND_PRIMARY.
8984 * tree-pretty-print.c (dump_omp_clause): Add TODO comment to
8985 change 'master' to 'primary' in proc_bind for OpenMP 5.1.
8987 2021-08-12 Claudiu Zissulescu <claziss@synopsys.com>
8989 * common/config/arc/arc-common.c (arc_option_init_struct): Remove
8990 fno-common reference.
8991 * config/arc/arc.c (arc_override_options): Remove overriding of
8994 2021-08-12 Jakub Jelinek <jakub@redhat.com>
8997 * config/i386/i386-expand.c (ix86_expand_vec_one_operand_perm_avx512):
8998 If d->testing_p, return true after performing checks instead of
8999 actually expanding the insn.
9000 (expand_vec_perm_broadcast_1): Handle V32HImode - assert
9001 !TARGET_AVX512BW and return false.
9003 2021-08-12 Eric Botcazou <ebotcazou@gcc.gnu.org>
9005 * configure.ac (PE linker --disable-dynamicbase support): New check.
9006 * configure: Regenerate.
9007 * config.in: Likewise.
9008 * config/i386/mingw32.h (LINK_SPEC_DISABLE_DYNAMICBASE): New define.
9009 (LINK_SPEC): Use it.
9010 * config/i386/mingw-w64.h (LINK_SPEC_DISABLE_DYNAMICBASE): Likewise.
9011 (LINK_SPEC): Likewise.
9013 2021-08-12 liuhongt <hongtao.liu@intel.com>
9016 * config/i386/sse.md (*avx2_zero_extendv16qiv16hi2_2): New
9017 post_reload define_insn_and_split.
9018 (*avx512bw_zero_extendv32qiv32hi2_2): Ditto.
9019 (*sse4_1_zero_extendv8qiv8hi2_4): Ditto.
9020 (*avx512f_zero_extendv16hiv16si2_2): Ditto.
9021 (*avx2_zero_extendv8hiv8si2_2): Ditto.
9022 (*sse4_1_zero_extendv4hiv4si2_4): Ditto.
9023 (*avx512f_zero_extendv8siv8di2_2): Ditto.
9024 (*avx2_zero_extendv4siv4di2_2): Ditto.
9025 (*sse4_1_zero_extendv2siv2di2_4): Ditto.
9026 (VI248_256, VI248_512, VI148_512, VI148_256, VI148_128): New
9029 2021-08-11 Bill Schmidt <wschmidt@linux.ibm.com>
9031 * config/rs6000/rs6000-builtin-new.def: Add always, power5, and
9034 2021-08-11 Bill Schmidt <wschmidt@linux.ibm.com>
9036 * config/rs6000/rs6000-builtin-new.def: Add vsx stanza.
9038 2021-08-11 Bill Schmidt <wschmidt@linux.ibm.com>
9040 * config/rs6000/rs6000-builtin-new.def: Finish altivec stanza.
9041 * config/rs6000/rs6000-call.c (rs6000_init_builtins): Move
9042 initialization of pcvoid_type_node here...
9043 (altivec_init_builtins): ...from here.
9044 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add
9045 RS6000_BTI_const_ptr_void.
9046 (pcvoid_type_node): New macro.
9048 2021-08-11 Richard Biener <rguenther@suse.de>
9051 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not decompose
9052 hard-register accesses.
9054 2021-08-11 Richard Biener <rguenther@suse.de>
9056 * tree-ssa-operands.c (operands_scanner::get_expr_operands):
9057 Do not look at COMPONENT_REF FIELD_DECLs TREE_THIS_VOLATILE
9058 to determine has_volatile_ops.
9060 2021-08-11 Eric Botcazou <ebotcazou@gcc.gnu.org>
9062 * cfgexpand.c (expand_used_vars): Reuse attribs local variable.
9064 2021-08-11 Jan Hubicka <hubicka@ucw.cz>
9065 Alexandre Oliva <oliva@adacore.com>
9067 * ipa-modref.c (modref_lattice::dump): Fix escape_point's min_flags
9069 (modref_lattice::merge_deref): Fix handling of indirect scape points.
9070 (update_escape_summary_1): Likewise.
9071 (update_escape_summary): Likewise.
9072 (ipa_merge_modref_summary_after_inlining): Likewise.
9074 2021-08-11 Richard Biener <rguenther@suse.de>
9076 PR middle-end/101858
9077 * fold-const.c (fold_binary_loc): Guard simplification
9078 of X < (cast) (1 << Y) to integer types.
9080 2021-08-11 Richard Biener <rguenther@suse.de>
9082 PR tree-optimization/101861
9083 * tree-vect-stmts.c (vectorizable_load): Fix error in
9084 previous change with regard to gather vectorization.
9086 2021-08-11 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
9089 * config/arm/arm_neon.h (vdup_n_s8): Replace call to builtin
9091 (vdup_n_s16): Likewise.
9092 (vdup_n_s32): Likewise.
9093 (vdup_n_s64): Likewise.
9094 (vdup_n_u8): Likewise.
9095 (vdup_n_u16): Likewise.
9096 (vdup_n_u32): Likewise.
9097 (vdup_n_u64): Likewise.
9098 (vdup_n_p8): Likewise.
9099 (vdup_n_p16): Likewise.
9100 (vdup_n_p64): Likewise.
9101 (vdup_n_f16): Likewise.
9102 (vdup_n_f32): Likewise.
9103 (vdupq_n_s8): Likewise.
9104 (vdupq_n_s16): Likewise.
9105 (vdupq_n_s32): Likewise.
9106 (vdupq_n_s64): Likewise.
9107 (vdupq_n_u8): Likewise.
9108 (vdupq_n_u16): Likewise.
9109 (vdupq_n_u32): Likewise.
9110 (vdupq_n_u64): Likewise.
9111 (vdupq_n_p8): Likewise.
9112 (vdupq_n_p16): Likewise.
9113 (vdupq_n_p64): Likewise.
9114 (vdupq_n_f16): Likewise.
9115 (vdupq_n_f32): Likewise.
9116 (vmov_n_s8): Replace call to builtin with call to corresponding
9118 (vmov_n_s16): Likewise.
9119 (vmov_n_s32): Likewise.
9120 (vmov_n_s64): Likewise.
9121 (vmov_n_u8): Likewise.
9122 (vmov_n_u16): Likewise.
9123 (vmov_n_u32): Likewise.
9124 (vmov_n_u64): Likewise.
9125 (vmov_n_p8): Likewise.
9126 (vmov_n_p16): Likewise.
9127 (vmov_n_f16): Likewise.
9128 (vmov_n_f32): Likewise.
9129 (vmovq_n_s8): Likewise.
9130 (vmovq_n_s16): Likewise.
9131 (vmovq_n_s32): Likewise.
9132 (vmovq_n_s64): Likewise.
9133 (vmovq_n_u8): Likewise.
9134 (vmovq_n_u16): Likewise.
9135 (vmovq_n_u32): Likewise.
9136 (vmovq_n_u64): Likewise.
9137 (vmovq_n_p8): Likewise.
9138 (vmovq_n_p16): Likewise.
9139 (vmovq_n_f16): Likewise.
9140 (vmovq_n_f32): Likewise.
9141 * config/arm/arm_neon_builtins.def: Remove entries for vdup_n.
9143 2021-08-11 liuhongt <hongtao.liu@intel.com>
9146 * config/i386/i386.md (ldexp<mode>3): Extend to vscalefs[sd]
9147 when TARGET_AVX512F and TARGET_SSE_MATH.
9149 2021-08-10 Jakub Jelinek <jakub@redhat.com>
9152 * config/i386/i386-expand.c (expand_vec_perm_even_odd): Return false
9153 for V32HImode if !TARGET_AVX512BW.
9154 (ix86_vectorize_vec_perm_const) <case E_V32HImode, case E_V64QImode>:
9155 If !TARGET_AVX512BW and TARGET_AVX512F and d.testing_p, don't fail
9156 early, but actually check the permutation.
9158 2021-08-10 Richard Biener <rguenther@suse.de>
9160 PR tree-optimization/101809
9161 * tree-vect-stmts.c (get_load_store_type): Allow emulated
9162 gathers with offset vector nunits being a constant multiple
9163 of the data vector nunits.
9164 (vect_get_gather_scatter_ops): Use the appropriate nunits
9165 for the offset vector defs.
9166 (vectorizable_store): Adjust call to
9167 vect_get_gather_scatter_ops.
9168 (vectorizable_load): Likewise. Handle the case of less
9169 offset vectors than data vectors.
9171 2021-08-10 Jakub Jelinek <jakub@redhat.com>
9174 * config/i386/sse.md (*avx512f_shuf_<shuffletype>64x2_1<mask_name>_1,
9175 *avx512f_shuf_<shuffletype>32x4_1<mask_name>_1): New define_insn
9178 2021-08-10 Richard Biener <rguenther@suse.de>
9180 PR tree-optimization/101801
9181 PR tree-optimization/101819
9182 * tree-vectorizer.h (vect_emulated_vector_p): Declare.
9183 * tree-vect-loop.c (vect_emulated_vector_p): New function.
9184 (vectorizable_reduction): Re-instantiate a check for emulated
9186 * tree-vect-stmts.c (vectorizable_shift): Likewise.
9187 (vectorizable_operation): Likewise. Cost emulated vector
9188 operations according to the scalar sequence synthesized by
9191 2021-08-10 Richard Biener <rguenther@suse.de>
9193 PR middle-end/101824
9194 * tree-nested.c (get_frame_field): Mark the COMPONENT_REF as
9195 volatile in case the variable was.
9197 2021-08-10 H.J. Lu <hjl.tools@gmail.com>
9200 * config/i386/constraints.md (BC): Document for integer SSE
9201 constant all bits set operand.
9202 (BF): New constraint for const floating-point all bits set
9204 * config/i386/i386.c (standard_sse_constant_p): Likewise.
9205 (standard_sse_constant_opcode): Likewise.
9206 * config/i386/sse.md (sseconstm1): New mode attribute.
9207 (mov<mode>_internal): Replace BC with <sseconstm1>.
9209 2021-08-10 liuhongt <hongtao.liu@intel.com>
9211 * config/i386/sse.md (cond_<insn><mode>): New expander.
9212 (VI248_AVX512VLBW): New mode iterator.
9213 * config/i386/predicates.md
9214 (nonimmediate_or_const_vec_dup_operand): New predicate.
9216 2021-08-09 Andrew MacLeod <amacleod@redhat.com>
9218 PR tree-optimization/101741
9219 * gimple-range-fold.cc (fold_using_range::range_of_builtin_call): Check
9220 type of parameter for toupper/tolower.
9222 2021-08-09 Martin Jambor <mjambor@suse.cz>
9225 * ipa-prop.c (propagate_controlled_uses): Removed a spurious space.
9227 2021-08-09 Pat Haugen <pthaugen@linux.ibm.com>
9229 * config/rs6000/rs6000.c (is_load_insn1): Verify destination is a
9231 (is_store_insn1): Verify source is a register.
9233 2021-08-09 Uroš Bizjak <ubizjak@gmail.com>
9236 * config/i386/mmx.md (<any_logic:code>v2sf3):
9237 Rename from *mmx_<any_logic:code>v2sf3
9239 2021-08-09 Thomas Schwinge <thomas@codesourcery.com>
9241 * config/nvptx/nvptx.c: Cross-reference parts adapted in
9242 'gcc/omp-oacc-neuter-broadcast.cc'.
9243 * omp-low.c: Likewise.
9244 * omp-oacc-neuter-broadcast.cc: Cross-reference parts adapted from
9247 2021-08-09 Julian Brown <julian@codesourcery.com>
9248 Kwok Cheung Yeung <kcy@codesourcery.com>
9249 Thomas Schwinge <thomas@codesourcery.com>
9251 * config/gcn/gcn.c (gcn_init_builtins): Override decls for
9252 BUILT_IN_GOACC_SINGLE_START, BUILT_IN_GOACC_SINGLE_COPY_START,
9253 BUILT_IN_GOACC_SINGLE_COPY_END and BUILT_IN_GOACC_BARRIER.
9254 (gcn_goacc_validate_dims): Turn on worker partitioning unconditionally.
9255 (gcn_fork_join): Update comment.
9256 * config/gcn/gcn.opt (flag_worker_partitioning): Remove.
9257 (macc_experimental_workers): Remove unused option.
9259 2021-08-09 Julian Brown <julian@codesourcery.com>
9260 Nathan Sidwell <nathan@codesourcery.com> (via 'gcc/config/nvptx/nvptx.c' master)
9261 Kwok Cheung Yeung <kcy@codesourcery.com>
9262 Thomas Schwinge <thomas@codesourcery.com>
9264 * Makefile.in (OBJS): Add omp-oacc-neuter-broadcast.o.
9265 * doc/tm.texi.in (TARGET_GOACC_CREATE_WORKER_BROADCAST_RECORD):
9266 Add documentation hook.
9267 * doc/tm.texi: Regenerate.
9268 * omp-oacc-neuter-broadcast.cc: New file.
9269 * omp-builtins.def (BUILT_IN_GOACC_BARRIER)
9270 (BUILT_IN_GOACC_SINGLE_START, BUILT_IN_GOACC_SINGLE_COPY_START)
9271 (BUILT_IN_GOACC_SINGLE_COPY_END): New builtins.
9272 * passes.def (pass_omp_oacc_neuter_broadcast): Add pass.
9273 * target.def (goacc.create_worker_broadcast_record): Add target
9275 * tree-pass.h (make_pass_omp_oacc_neuter_broadcast): Add
9277 * config/gcn/gcn-protos.h (gcn_goacc_adjust_propagation_record):
9278 Rename prototype to...
9279 (gcn_goacc_create_worker_broadcast_record): ... this.
9280 * config/gcn/gcn-tree.c (gcn_goacc_adjust_propagation_record): Rename
9282 (gcn_goacc_create_worker_broadcast_record): ... this.
9283 * config/gcn/gcn.c (TARGET_GOACC_ADJUST_PROPAGATION_RECORD):
9285 (TARGET_GOACC_CREATE_WORKER_BROADCAST_RECORD): ... this.
9287 2021-08-09 Tejas Belagod <tejas.belagod@arm.com>
9290 * config/aarch64/aarch64-simd.md (vlshr<mode>3, vashr<mode>3): Use
9293 2021-08-09 Thomas Schwinge <thomas@codesourcery.com>
9295 * Makefile.in (GTFILES): Remove '$(srcdir)/omp-offload.c'.
9297 2021-08-09 Thomas Schwinge <thomas@codesourcery.com>
9299 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOMP_BUILTIN): Don't
9300 consider '-foffload-abi'.
9301 * common.opt (-foffload-abi): Remove 'Var', 'Init'.
9302 * opts.c (common_handle_option) <-foffload-abi> [ACCEL_COMPILER]:
9305 2021-08-09 Thomas Schwinge <thomas@codesourcery.com>
9307 * optc-gen.awk: Sanity check that 'Init' doesn't appear without
9310 2021-08-09 Thomas Schwinge <thomas@codesourcery.com>
9312 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE): Remove.
9314 2021-08-09 Thomas Schwinge <thomas@codesourcery.com>
9316 * doc/gty.texi (Files): Update.
9318 2021-08-09 Thomas Schwinge <thomas@codesourcery.com>
9320 * doc/gty.texi (Files): Fix GTY header file example.
9322 2021-08-09 Roger Sayle <roger@nextmovesoftware.com>
9324 * tree-ssa-ccp.c (value_mask_to_min_max): Helper function to
9325 determine the upper and lower bounds from a mask-value pair.
9326 (bit_value_unop) [ABS_EXPR, ABSU_EXPR]: Add support for
9327 absolute value and unsigned absolute value expressions.
9328 (bit_value_binop): Initialize *VAL's precision.
9329 [LT_EXPR, LE_EXPR]: Use value_mask_to_min_max to determine
9330 upper and lower bounds of operands. Add LE_EXPR/GE_EXPR
9331 support when the operands are unknown but potentially equal.
9332 [MIN_EXPR, MAX_EXPR]: Support minimum/maximum expressions.
9334 2021-08-09 Bin Cheng <bin.cheng@linux.alibaba.com>
9336 * config/aarch64/aarch64.md
9337 (*extend<SHORT:mode><GPI:mode>2_aarch64): Use %<GPI:w>0.
9339 2021-08-08 Sergei Trofimovich <siarheit@google.com>
9341 * lra-constraints.c: Fix s/otput/output/ typo.
9343 2021-08-06 Martin Sebor <msebor@redhat.com>
9345 * builtins.c (expand_builtin_memchr): Move to gimple-ssa-warn-access.cc.
9346 (expand_builtin_strcat): Same.
9347 (expand_builtin_stpncpy): Same.
9348 (expand_builtin_strncat): Same.
9349 (check_read_access): Same.
9350 (check_memop_access): Same.
9351 (expand_builtin_strlen): Move checks to gimple-ssa-warn-access.cc.
9352 (expand_builtin_strnlen): Same.
9353 (expand_builtin_memcpy): Same.
9354 (expand_builtin_memmove): Same.
9355 (expand_builtin_mempcpy): Same.
9356 (expand_builtin_strcpy): Same.
9357 (expand_builtin_strcpy_args): Same.
9358 (expand_builtin_stpcpy_1): Same.
9359 (expand_builtin_strncpy): Same.
9360 (expand_builtin_memset): Same.
9361 (expand_builtin_bzero): Same.
9362 (expand_builtin_strcmp): Same.
9363 (expand_builtin_strncmp): Same.
9364 (expand_builtin): Remove handlers.
9365 (fold_builtin_strlen): Add a comment.
9366 * builtins.h (check_access): Move to gimple-ssa-warn-access.cc.
9367 * calls.c (maybe_warn_nonstring_arg): Same.
9368 * diagnostic-spec.c (nowarn_spec_t::nowarn_spec_t): Add warning option.
9369 * gimple-fold.c (gimple_fold_builtin_strcpy): Pass argument to callee.
9370 (gimple_fold_builtin_stpcpy): Same.
9371 * gimple-ssa-warn-access.cc (has_location): New function.
9372 (get_location): Same.
9373 (get_callee_fndecl): Same.
9376 (warn_string_no_nul): Define.
9377 (unterminated_array): Same.
9378 (check_nul_terminated_array): Same.
9379 (maybe_warn_nonstring_arg): Same.
9380 (maybe_warn_for_bound): Same.
9381 (warn_for_access): Same.
9382 (check_access): Same.
9383 (check_memop_access): Same.
9384 (check_read_access): Same.
9385 (warn_dealloc_offset): Use helper functions.
9386 (maybe_emit_free_warning): Same.
9387 (class pass_waccess): Add members.
9388 (check_strcat): New function.
9389 (check_strncat): New function.
9390 (check_stxcpy): New function.
9391 (check_stxncpy): New function.
9392 (check_strncmp): New function.
9393 (pass_waccess::check_builtin): New function.
9394 (pass_waccess::check): Call it.
9395 * gimple-ssa-warn-access.h (warn_string_no_nul): Move here from
9397 (maybe_warn_for_bound): Same.
9398 (check_access): Same.
9399 (check_memop_access): Same.
9400 (check_read_access): Same.
9401 * pointer-query.h (struct access_data): Define a ctor overload.
9403 2021-08-06 Richard Biener <rguenther@suse.de>
9405 PR tree-optimization/101801
9406 * tree-vectorizer.h (vect_worthwhile_without_simd_p): Rename...
9407 (vect_can_vectorize_without_simd_p): ... to this.
9408 * tree-vect-loop.c (vect_worthwhile_without_simd_p): Rename...
9409 (vect_can_vectorize_without_simd_p): ... to this and fold
9410 in vect_min_worthwhile_factor.
9411 (vect_min_worthwhile_factor): Remove.
9412 (vectorizable_reduction): Adjust and remove the cost part.
9413 * tree-vect-stmts.c (vectorizable_shift): Likewise.
9414 (vectorizable_operation): Likewise.
9416 2021-08-06 Uroš Bizjak <ubizjak@gmail.com>
9419 * config/i386/i386.md (cmove reg-to-reg move elimination peephole2s):
9420 Add general_gr_operand predicate to operand 3.
9422 2021-08-06 Roger Sayle <roger@nextmovesoftware.com>
9424 * tree-ssa-phiopt.c (cond_removal_in_builtin_zero_pattern): Use
9425 CFN_BUILT_IN_CLRSB* instead of BUILT_IN_CLRSB* for consistency.
9427 2021-08-06 Tamar Christina <tamar.christina@arm.com>
9429 * config/aarch64/aarch64-sve-builtins.cc (register_svpattern,
9430 register_svprfop): Pass vec<> by pointer.
9431 * langhooks-def.h (lhd_simulate_enum_decl): Likewise.
9432 * langhooks.c (lhd_simulate_enum_decl): Likewise.
9433 * langhooks.h (struct lang_hooks_for_types): Likewise.
9435 2021-08-06 Jonathan Wright <jonathan.wright@arm.com>
9437 * config/aarch64/arm_neon.h (vst1_bf16_x2): Use
9438 __builtin_memcpy instead of constructing an additional
9439 __builtin_aarch64_simd_oi one vector at a time.
9440 (vst1q_bf16_x2): Likewise.
9441 (vst1_bf16_x3): Use __builtin_memcpy instead of constructing
9442 an additional __builtin_aarch64_simd_ci one vector at a time.
9443 (vst1q_bf16_x3): Likewise.
9444 (vst1_bf16_x4): Use __builtin_memcpy instead of a union.
9445 (vst1q_bf16_x4): Likewise.
9446 (vst2_bf16): Use __builtin_memcpy instead of constructing an
9447 additional __builtin_aarch64_simd_oi one vector at a time.
9448 (vst2q_bf16): Likewise.
9449 (vst3_bf16): Use __builtin_memcpy instead of constructing an
9450 additional __builtin_aarch64_simd_ci mode one vector at a
9452 (vst3q_bf16): Likewise.
9453 (vst4_bf16): Use __builtin_memcpy instead of constructing an
9454 additional __builtin_aarch64_simd_xi one vector at a time.
9455 (vst4q_bf16): Likewise.
9457 2021-08-06 Jonathan Wright <jonathan.wright@arm.com>
9459 * config/aarch64/arm_neon.h (__ST2_LANE_FUNC): Delete.
9460 (__ST2Q_LANE_FUNC): Delete.
9461 (vst2_lane_f16): Use __builtin_memcpy to copy vector
9462 structure instead of constructing __builtin_aarch64_simd_oi
9463 one vector at a time.
9464 (vst2_lane_f32): Likewise.
9465 (vst2_lane_f64): Likewise.
9466 (vst2_lane_p8): Likewise.
9467 (vst2_lane_p16): Likewise.
9468 (vst2_lane_p64): Likewise.
9469 (vst2_lane_s8): Likewise.
9470 (vst2_lane_s16): Likewise.
9471 (vst2_lane_s32): Likewise.
9472 (vst2_lane_s64): Likewise.
9473 (vst2_lane_u8): Likewise.
9474 (vst2_lane_u16): Likewise.
9475 (vst2_lane_u32): Likewise.
9476 (vst2_lane_u64): Likewise.
9477 (vst2_lane_bf16): Likewise.
9478 (vst2q_lane_f16): Use __builtin_memcpy to copy vector
9479 structure instead of using a union.
9480 (vst2q_lane_f32): Likewise.
9481 (vst2q_lane_f64): Likewise.
9482 (vst2q_lane_p8): Likewise.
9483 (vst2q_lane_p16): Likewise.
9484 (vst2q_lane_p64): Likewise.
9485 (vst2q_lane_s8): Likewise.
9486 (vst2q_lane_s16): Likewise.
9487 (vst2q_lane_s32): Likewise.
9488 (vst2q_lane_s64): Likewise.
9489 (vst2q_lane_u8): Likewise.
9490 (vst2q_lane_u16): Likewise.
9491 (vst2q_lane_u32): Likewise.
9492 (vst2q_lane_u64): Likewise.
9493 (vst2q_lane_bf16): Likewise.
9495 2021-08-06 Jonathan Wright <jonathan.wright@arm.com>
9497 * config/aarch64/arm_neon.h (__ST3_LANE_FUNC): Delete.
9498 (__ST3Q_LANE_FUNC): Delete.
9499 (vst3_lane_f16): Use __builtin_memcpy to copy vector
9500 structure instead of constructing __builtin_aarch64_simd_ci
9501 one vector at a time.
9502 (vst3_lane_f32): Likewise.
9503 (vst3_lane_f64): Likewise.
9504 (vst3_lane_p8): Likewise.
9505 (vst3_lane_p16): Likewise.
9506 (vst3_lane_p64): Likewise.
9507 (vst3_lane_s8): Likewise.
9508 (vst3_lane_s16): Likewise.
9509 (vst3_lane_s32): Likewise.
9510 (vst3_lane_s64): Likewise.
9511 (vst3_lane_u8): Likewise.
9512 (vst3_lane_u16): Likewise.
9513 (vst3_lane_u32): Likewise.
9514 (vst3_lane_u64): Likewise.
9515 (vst3_lane_bf16): Likewise.
9516 (vst3q_lane_f16): Use __builtin_memcpy to copy vector
9517 structure instead of using a union.
9518 (vst3q_lane_f32): Likewise.
9519 (vst3q_lane_f64): Likewise.
9520 (vst3q_lane_p8): Likewise.
9521 (vst3q_lane_p16): Likewise.
9522 (vst3q_lane_p64): Likewise.
9523 (vst3q_lane_s8): Likewise.
9524 (vst3q_lane_s16): Likewise.
9525 (vst3q_lane_s32): Likewise.
9526 (vst3q_lane_s64): Likewise.
9527 (vst3q_lane_u8): Likewise.
9528 (vst3q_lane_u16): Likewise.
9529 (vst3q_lane_u32): Likewise.
9530 (vst3q_lane_u64): Likewise.
9531 (vst3q_lane_bf16): Likewise.
9533 2021-08-06 Jonathan Wright <jonathan.wright@arm.com>
9535 * config/aarch64/arm_neon.h (__ST4_LANE_FUNC): Delete.
9536 (__ST4Q_LANE_FUNC): Delete.
9537 (vst4_lane_f16): Use __builtin_memcpy to copy vector
9538 structure instead of constructing __builtin_aarch64_simd_xi
9539 one vector at a time.
9540 (vst4_lane_f32): Likewise.
9541 (vst4_lane_f64): Likewise.
9542 (vst4_lane_p8): Likewise.
9543 (vst4_lane_p16): Likewise.
9544 (vst4_lane_p64): Likewise.
9545 (vst4_lane_s8): Likewise.
9546 (vst4_lane_s16): Likewise.
9547 (vst4_lane_s32): Likewise.
9548 (vst4_lane_s64): Likewise.
9549 (vst4_lane_u8): Likewise.
9550 (vst4_lane_u16): Likewise.
9551 (vst4_lane_u32): Likewise.
9552 (vst4_lane_u64): Likewise.
9553 (vst4_lane_bf16): Likewise.
9554 (vst4q_lane_f16): Use __builtin_memcpy to copy vector
9555 structure instead of using a union.
9556 (vst4q_lane_f32): Likewise.
9557 (vst4q_lane_f64): Likewise.
9558 (vst4q_lane_p8): Likewise.
9559 (vst4q_lane_p16): Likewise.
9560 (vst4q_lane_p64): Likewise.
9561 (vst4q_lane_s8): Likewise.
9562 (vst4q_lane_s16): Likewise.
9563 (vst4q_lane_s32): Likewise.
9564 (vst4q_lane_s64): Likewise.
9565 (vst4q_lane_u8): Likewise.
9566 (vst4q_lane_u16): Likewise.
9567 (vst4q_lane_u32): Likewise.
9568 (vst4q_lane_u64): Likewise.
9569 (vst4q_lane_bf16): Likewise.
9571 2021-08-06 Martin Liska <mliska@suse.cz>
9573 * config/rs6000/rs6000.c (rs6000_option_override_internal): When
9574 a target option is restored, it can have
9575 rs6000_long_double_type_size set to FLOAT_PRECISION_TFmode
9576 and error should not be emitted.
9578 2021-08-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
9580 * gcov-io.h (gcov_write): Declare.
9581 * gcov-io.c (gcov_write): New.
9582 (gcov_write_counter): Remove.
9583 (gcov_write_tag_length): Likewise.
9584 (gcov_write_summary): Replace gcov_write_tag_length() with calls to
9585 gcov_write_unsigned().
9586 * doc/invoke.texi (fprofile-info-section): Mention
9587 __gcov_info_to_gdca().
9589 2021-08-06 Martin Sebor <msebor@redhat.com>
9591 * dominance.c (prune_bbs_to_update_dominators): Adjust by-value vec
9592 arguments to by-reference.
9593 (iterate_fix_dominators): Same.
9594 * dominance.h (iterate_fix_dominators): Same.
9595 * ipa-prop.h: Call auto_vec::to_vec_legacy.
9596 * tree-data-ref.c (dump_data_dependence_relation): Adjust by-value vec
9597 arguments to by-reference.
9598 (debug_data_dependence_relation): Same.
9599 (dump_data_dependence_relations): Same.
9600 * tree-data-ref.h (debug_data_dependence_relation): Same.
9601 (dump_data_dependence_relations): Same.
9602 * tree-predcom.c (dump_chains): Same.
9603 (initialize_root_vars_lm): Same.
9604 (determine_unroll_factor): Same.
9605 (replace_phis_by_defined_names): Same.
9606 (insert_init_seqs): Same.
9607 (pcom_worker::tree_predictive_commoning_loop): Call
9608 auto_vec::to_vec_legacy.
9609 * tree-ssa-pre.c (insert_into_preds_of_block): Adjust by-value vec
9610 arguments to by-reference.
9611 * tree-ssa-threadbackward.c (populate_worklist): Same.
9612 (back_threader::resolve_def): Same.
9613 * tree-vect-data-refs.c (vect_check_nonzero_value): Same.
9614 (vect_enhance_data_refs_alignment): Same.
9615 (vect_check_lower_bound): Same.
9616 (vect_prune_runtime_alias_test_list): Same.
9617 (vect_permute_store_chain): Same.
9618 * tree-vect-slp-patterns.c (vect_normalize_conj_loc): Same.
9619 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Same.
9620 * tree-vectorizer.h (vect_permute_store_chain): Same.
9621 * vec.c (test_init): New function.
9622 (vec_c_tests): Call new function.
9623 * vec.h (vec): Declare ctors, dtor, and assignment.
9624 (auto_vec::vec_to_legacy): New function.
9625 (vec::copy): Adjust initialization.
9627 2021-08-05 H.J. Lu <hjl.tools@gmail.com>
9630 * config/i386/i386.c (ix86_can_inline_p): Ignore MASK_80387 if
9631 callee only uses GPRs.
9632 * config/i386/ia32intrin.h: Revert commit 5463cee2770.
9633 * config/i386/serializeintrin.h: Revert commit 71958f740f1.
9634 * config/i386/x86gprintrin.h: Add
9635 #pragma GCC target("general-regs-only") and #pragma GCC pop_options
9636 to disable non-GPR ISAs.
9638 2021-08-05 Richard Sandiford <richard.sandiford@arm.com>
9640 PR middle-end/101787
9641 * doc/md.texi (cond_ashl, cond_ashr, cond_lshr): Document.
9643 2021-08-05 Richard Sandiford <richard.sandiford@arm.com>
9645 * tree-vectorizer.h (vect_is_store_elt_extraction, vect_is_reduction)
9646 (vect_reduc_type, vect_embedded_comparison_type, vect_comparison_type)
9647 (vect_is_extending_load, vect_is_integer_truncation): New functions,
9648 moved from aarch64.c but given different names.
9649 * config/aarch64/aarch64.c (aarch64_is_store_elt_extraction)
9650 (aarch64_is_reduction, aarch64_reduc_type)
9651 (aarch64_embedded_comparison_type, aarch64_comparison_type)
9652 (aarch64_extending_load_p, aarch64_integer_truncation_p): Delete
9653 in favor of the above. Update callers accordingly.
9655 2021-08-05 Richard Earnshaw <rearnsha@arm.com>
9658 * config/arm/arm-cpus.in (generic-armv7-a): Add quirk to suppress
9659 writing .cpu directive in asm output.
9660 * config/arm/arm.c (arm_identify_fpu_from_isa): New variable.
9661 (arm_last_printed_arch_string): Delete.
9662 (arm_last-printed_fpu_string): Delete.
9663 (arm_configure_build_target): If use of floating-point/SIMD is
9664 disabled, remove all fp/simd related features from the target ISA.
9665 (last_arm_targ_options): New variable.
9666 (arm_print_asm_arch_directives): Add new parameters. Change order
9667 of emitted directives and handle all cases here.
9668 (arm_file_start): Always call arm_print_asm_arch_directives, move
9669 all generation of .arch/.arch_extension here.
9670 (arm_file_end): Call arm_print_asm_arch.
9671 (arm_declare_function_name): Call arm_print_asm_arch_directives
9672 instead of printing .arch/.fpu directives directly.
9674 2021-08-05 Richard Earnshaw <rearnsha@arm.com>
9676 * config/arm/arm.c (arm_configure_build_target): Don't call
9677 arm_option_reconfigure_globals.
9678 (arm_option_restore): Call arm_option_reconfigure_globals after
9679 reconfiguring the target.
9680 * config/arm/arm-c.c (arm_pragma_target_parse): Likewise.
9682 2021-08-05 Richard Earnshaw <rearnsha@arm.com>
9684 * config/arm/arm.c (arm_configure_build_target): Ensure the target's
9685 arch_name is always set.
9687 2021-08-05 Jonathan Wright <jonathan.wright@arm.com>
9689 * config/aarch64/aarch64.c: Traverse RTL tree to prevent cost
9690 of vec_select high-half from being added into Neon subtract
9693 2021-08-05 Jonathan Wright <jonathan.wright@arm.com>
9695 * config/aarch64/aarch64.c: Traverse RTL tree to prevent cost
9696 of vec_select high-half from being added into Neon add cost.
9698 2021-08-05 Kewen Lin <linkw@linux.ibm.com>
9700 * cfgloop.h (loops_list::loops_list): Add one optional argument
9701 root and adjust accordingly, update loop tree walking and factor
9703 * cfgloop.c (loops_list::walk_loop_tree): ... this. New function.
9705 2021-08-05 Eric Botcazou <ebotcazou@gcc.gnu.org>
9707 PR tree-optimization/101626
9708 * tree-sra.c (propagate_subaccesses_from_rhs): Do not set the
9709 reverse scalar storage order on a pointer or vector component.
9711 2021-08-05 liuhongt <hongtao.liu@intel.com>
9713 * config/i386/sse.md (cond_<code><mode>): New expander.
9715 2021-08-05 liuhongt <hongtao.liu@intel.com>
9717 * config/i386/sse.md (cond_<code><mode>): New expander.
9719 2021-08-05 liuhongt <hongtao.liu@intel.com>
9721 * config/i386/sse.md (cond_<code><mode>): New expander.
9723 2021-08-04 David Malcolm <dmalcolm@redhat.com>
9726 * Makefile.in (ANALYZER_OBJS): Add analyzer/region-model-asm.o.
9728 2021-08-04 H.J. Lu <hjl.tools@gmail.com>
9731 * config/i386/i386.h (STORE_MAX_PIECES): Allow 16/32/64 bytes
9732 only if TARGET_INTER_UNIT_MOVES_TO_VEC is true.
9734 2021-08-04 H.J. Lu <hjl.tools@gmail.com>
9737 * config/i386/i386-expand.c (ix86_expand_vector_move): Call
9738 ix86_gen_scratch_sse_rtx to get a scratch SSE register to copy
9739 data with SSE register from one memory location to another.
9741 2021-08-04 Andreas Krebbel <krebbel@linux.ibm.com>
9743 * config/s390/s390.c (expand_perm_with_vpdi): New function.
9744 (vectorize_vec_perm_const_1): Call expand_perm_with_vpdi.
9745 * config/s390/vector.md (*vpdi1<mode>, @vpdi1<mode>): Enable a
9746 parameterized expander.
9747 (*vpdi4<mode>, @vpdi4<mode>): Likewise.
9749 2021-08-04 Andreas Krebbel <krebbel@linux.ibm.com>
9751 * config/s390/s390.c (MAX_VECT_LEN): Define macro.
9752 (struct expand_vec_perm_d): Define struct.
9753 (expand_perm_with_merge): New function.
9754 (vectorize_vec_perm_const_1): New function.
9755 (s390_vectorize_vec_perm_const): New function.
9756 (TARGET_VECTORIZE_VEC_PERM_CONST): Define target macro.
9758 2021-08-04 Andreas Krebbel <krebbel@linux.ibm.com>
9760 * config/s390/vector.md (V_HW_64): Remove mode iterator.
9761 (*vec_load_pair<mode>): Use V_HW_2 instead of V_HW_64.
9762 * config/s390/vx-builtins.md
9763 (vec_scatter_element<V_HW_2:mode>_SI): Use V_HW_2 instead of
9766 2021-08-04 Andreas Krebbel <krebbel@linux.ibm.com>
9768 * config/s390/s390.md (UNSPEC_VEC_PERMI): Remove constant
9770 * config/s390/vector.md (*vpdi1<mode>, *vpdi4<mode>): New pattern
9772 * config/s390/vx-builtins.md (*vec_permi<mode>): Emit generic rtx
9773 instead of an unspec.
9775 2021-08-04 Andreas Krebbel <krebbel@linux.ibm.com>
9777 * config/s390/s390-modes.def: Add more vector modes to support
9778 concatenation of two vectors.
9779 * config/s390/s390-protos.h (s390_expand_merge_perm_const): Add
9781 (s390_expand_merge): Likewise.
9782 * config/s390/s390.c (s390_expand_merge_perm_const): New function.
9783 (s390_expand_merge): New function.
9784 * config/s390/s390.md (UNSPEC_VEC_MERGEH, UNSPEC_VEC_MERGEL):
9785 Remove constant definitions.
9786 * config/s390/vector.md (V_HW_2): Add mode iterators.
9787 (VI_HW_4, V_HW_4): Rename VI_HW_4 to V_HW_4.
9788 (vec_2x_nelts, vec_2x_wide): New mode attributes.
9789 (*vmrhb, *vmrlb, *vmrhh, *vmrlh, *vmrhf, *vmrlf, *vmrhg, *vmrlg):
9790 New pattern definitions.
9791 (vec_widen_umult_lo_<mode>, vec_widen_umult_hi_<mode>)
9792 (vec_widen_smult_lo_<mode>, vec_widen_smult_hi_<mode>)
9793 (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf, vec_unpacks_lo_v2df)
9794 (vec_unpacks_hi_v2df): Adjust expanders to emit non-unspec RTX for
9796 * config/s390/vx-builtins.md (V_HW_4): Remove mode iterator. Now
9798 (vec_mergeh<mode>, vec_mergel<mode>): Use s390_expand_merge to
9799 emit vec merge pattern.
9801 2021-08-04 Jonathan Wright <jonathan.wright@arm.com>
9803 * config/aarch64/aarch64.c (aarch64_strip_extend_vec_half):
9805 (aarch64_rtx_mult_cost): Traverse RTL tree to prevent cost of
9806 vec_select high-half from being added into Neon multiply
9808 * rtlanal.c (vec_series_highpart_p): Define.
9809 * rtlanal.h (vec_series_highpart_p): Declare.
9811 2021-08-04 Jonathan Wright <jonathan.wright@arm.com>
9813 * config/aarch64/aarch64.c (aarch64_strip_duplicate_vec_elt):
9815 (aarch64_rtx_mult_cost): Traverse RTL tree to prevent
9816 vec_select cost from being added into Neon multiply cost.
9818 2021-08-04 Richard Sandiford <richard.sandiford@arm.com>
9820 * tree-vect-loop.c (vect_better_loop_vinfo_p): Detect cases in
9821 which old_loop_vinfo is an epilogue loop that handles a constant
9822 number of iterations.
9824 2021-08-04 Richard Sandiford <richard.sandiford@arm.com>
9826 * tree-vect-loop.c (vect_analyze_loop): Print a dump message
9827 when a reanalyzed loop fails to be cheaper than the current
9830 2021-08-04 Richard Sandiford <richard.sandiford@arm.com>
9832 * config/aarch64/aarch64.c: Fix a typo.
9834 2021-08-04 Vincent Lefèvre <vincent-gcc@vinc17.net>
9836 PR gcov-profile/101773
9837 * gcov-io.c (gcov_close): Check return code of a fclose.
9839 2021-08-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
9842 * dwarf2out.c (dwarf2out_assembly_start): Emit a dummy
9843 .file statement when needed.
9845 2021-08-04 Richard Biener <rguenther@suse.de>
9847 * tree-vect-data-refs.c (vect_check_gather_scatter):
9848 Include widening conversions only when the result is
9849 still handed by native gather or the current offset
9850 size not already matches the data size.
9851 Also succeed analysis in case there's no native support,
9852 noted by a IFN_LAST ifn and a NULL decl.
9853 (vect_analyze_data_refs): Always consider gathers.
9854 * tree-vect-patterns.c (vect_recog_gather_scatter_pattern):
9855 Test for no IFN gather rather than decl gather.
9856 * tree-vect-stmts.c (vect_model_load_cost): Pass in the
9857 gather-scatter info and cost emulated gathers accordingly.
9858 (vect_truncate_gather_scatter_offset): Properly test for
9860 (vect_use_strided_gather_scatters_p): Likewise.
9861 (get_load_store_type): Handle emulated gathers and its
9863 (vectorizable_load): Likewise. Emulate them by extracting
9864 scalar offsets, doing scalar loads and a vector construct.
9866 2021-08-04 H.J. Lu <hjl.tools@gmail.com>
9869 * expr.c (op_by_pieces_d::op_by_pieces_d): Add a max_pieces
9870 argument to set m_max_size.
9871 (move_by_pieces_d): Pass MOVE_MAX_PIECES to op_by_pieces_d.
9872 (store_by_pieces_d): Pass STORE_MAX_PIECES to op_by_pieces_d.
9873 (compare_by_pieces_d): Pass COMPARE_MAX_PIECES to op_by_pieces_d.
9875 2021-08-04 Roger Sayle <roger@nextmovesoftware.com>
9876 Marc Glisse <marc.glisse@inria.fr>
9878 * match.pd (bit_ior, bit_xor): Canonicalize (X*C1)|(X*C2) and
9879 (X*C1)^(X*C2) as X*(C1+C2), and related variants, using
9880 tree_nonzero_bits to ensure that operands are bit-wise disjoint.
9882 2021-08-04 Richard Biener <rguenther@suse.de>
9884 * tree-ssa-forwprop.c (pass_forwprop::execute): Split
9885 out code to decompose vector loads ...
9886 (optimize_vector_load): ... here. Generalize it to
9887 handle intermediate widening and TARGET_MEM_REF loads
9888 and apply it to loads with a supported vector mode as well.
9890 2021-08-04 Richard Biener <rguenther@suse.de>
9892 PR tree-optimization/101756
9893 * tree-vect-slp.c (vectorizable_bb_reduc_epilogue): Make sure
9894 the result of the reduction epilogue is compatible to the original
9897 2021-08-04 liuhongt <hongtao.liu@intel.com>
9900 * config/i386/i386.md (peephole2): Refine predicate from
9901 register_operand to general_reg_operand.
9903 2021-08-04 Aldy Hernandez <aldyh@redhat.com>
9905 * gimple-range-path.h (path_range_query::dump): Mark override.
9907 2021-08-04 Richard Biener <rguenther@suse.de>
9909 PR tree-optimization/101769
9910 * tree-tailcall.c (eliminate_tail_call): Add the created loop
9911 for the first recursion and return it via the new output parameter.
9912 (optimize_tail_call): Pass through new output param.
9913 (tree_optimize_tail_calls_1): After creating all latches,
9914 add the created loop to the loop tree. Do not mark loops for fixup.
9916 2021-08-04 Martin Liska <mliska@suse.cz>
9918 * doc/invoke.texi: Document threader-mode param.
9920 2021-08-04 liuhongt <hongtao.liu@intel.com>
9922 * config/i386/sse.md (cond_fma<mode>): New expander.
9923 (cond_fms<mode>): Ditto.
9924 (cond_fnma<mode>): Ditto.
9925 (cond_fnms<mode>): Ditto.
9927 2021-08-03 Segher Boessenkool <segher@kernel.crashing.org>
9929 * config/rs6000/vsx.md (*vsx_le_perm_store_<mode>): Use && instead of &.
9931 2021-08-03 Segher Boessenkool <segher@kernel.crashing.org>
9933 * config/rs6000/constraints.md: Remove "e" from the list of available
9934 constraint characters.
9936 2021-08-03 Eugene Rozenfeld <erozen@microsoft.com>
9938 PR gcov-profile/71672
9939 * auto-profile.c (afdo_indirect_call): Fix setup of the historgram value for indirect calls.
9941 2021-08-03 Paul A. Clarke <pc@us.ibm.com>
9943 * config/rs6000/smmintrin.h (_mm_minpos_epu16): New.
9945 2021-08-03 H.J. Lu <hjl.tools@gmail.com>
9947 * config/i386/i386.c (ix86_gen_scratch_sse_rtx): In 64-bit mode,
9948 try XMM31 to avoid vzeroupper.
9950 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
9952 * doc/invoke.texi: Document -mtune=neoverse-512tvb and
9953 -mcpu=neoverse-512tvb.
9954 * config/aarch64/aarch64-cores.def (neoverse-512tvb): New entry.
9955 * config/aarch64/aarch64-tune.md: Regenerate.
9956 * config/aarch64/aarch64.c (neoverse512tvb_sve_vector_cost)
9957 (neoverse512tvb_sve_issue_info, neoverse512tvb_vec_issue_info)
9958 (neoverse512tvb_vector_cost, neoverse512tvb_tunings): New structures.
9959 (aarch64_adjust_body_cost_sve): Handle -mtune=neoverse-512tvb.
9960 (aarch64_adjust_body_cost): Likewise.
9962 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
9964 * config/aarch64/aarch64.c (aarch64_add_stmt_cost): Only
9965 record issue information for operations that occur in the
9968 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
9970 * config/aarch64/aarch64.c (aarch64_multiply_add_p): Add a vec_flags
9971 parameter. Detect cases in which an Advanced SIMD MLA would almost
9972 certainly require a MOV.
9973 (aarch64_count_ops): Update accordingly.
9975 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
9977 * config/aarch64/aarch64.c (aarch64_is_store_elt_extraction): New
9978 function, split out from...
9979 (aarch64_detect_vector_stmt_subtype): ...here.
9980 (aarch64_add_stmt_cost): Treat extracting element 0 as free.
9982 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
9984 * config/aarch64/aarch64-protos.h (sve_vec_cost):
9985 Add gather_load_x32_cost and gather_load_x64_cost.
9986 * config/aarch64/aarch64.c (generic_sve_vector_cost)
9987 (a64fx_sve_vector_cost, neoversev1_sve_vector_cost): Update
9988 accordingly, using the values given by the scalar_load * number
9989 of elements calculation that we used previously.
9990 (aarch64_detect_vector_stmt_subtype): Use the new fields.
9992 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
9994 * config/aarch64/aarch64.c (aarch64_adjust_body_cost_sve): New
9995 function, split out from...
9996 (aarch64_adjust_body_cost): ...here.
9998 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
10000 * config/aarch64/fractional-cost.h: New file.
10001 * config/aarch64/aarch64.c: Include <algorithm> (indirectly)
10002 and cost_fraction.h.
10003 (vec_cost_fraction): New typedef.
10004 (aarch64_detect_scalar_stmt_subtype): Use it for statement costs.
10005 (aarch64_detect_vector_stmt_subtype): Likewise.
10006 (aarch64_sve_adjust_stmt_cost, aarch64_adjust_stmt_cost): Likewise.
10007 (aarch64_estimate_min_cycles_per_iter): Use vec_cost_fraction
10009 (aarch64_adjust_body_cost): Likewise.
10010 (aarch64_test_cost_fraction): New function.
10011 (aarch64_run_selftests): Call it.
10013 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
10015 * config/aarch64/aarch64-protos.h (tune_params::sve_width): Turn
10017 * config/aarch64/aarch64.c (aarch64_cmp_autovec_modes): Update
10019 (aarch64_estimated_poly_value): Likewise. Use the least significant
10020 set bit for the minimum and likely values. Use the most significant
10021 set bit for the maximum value.
10023 2021-08-03 liuhongt <hongtao.liu@intel.com>
10025 * config/i386/sse.md (cond_<insn><mode>): New expander.
10026 (cond_mul<mode>): Ditto.
10028 2021-08-03 Kewen Lin <linkw@linux.ibm.com>
10030 * tree-cfg.c (move_sese_region_to_fn): Fix typos on dloop.
10032 2021-08-03 liuhongt <hongtao.liu@intel.com>
10034 * config/i386/sse.md (cond_<insn><mode>):New expander.
10035 (cond_mul<mode>): Ditto.
10036 (cond_div<mode>): Ditto.
10038 2021-08-02 H.J. Lu <hjl.tools@gmail.com>
10040 * config/i386/i386.c (ix86_finalize_stack_frame_flags): Also
10041 check stack_realign_needed for stack realignment.
10042 (ix86_legitimate_constant_p): Always allow CONST_WIDE_INT smaller
10043 than the largest integer supported by vector register.
10044 * config/i386/i386.h (MAX_MOVE_MAX): New. Set to 64.
10045 (MOVE_MAX): Set to bytes of the largest integer supported by
10047 (STORE_MAX_PIECES): New.
10049 2021-08-02 H.J. Lu <hjl.tools@gmail.com>
10051 * config/i386/i386-expand.c (ix86_expand_vector_move): Call
10052 ix86_gen_scratch_sse_rtx to get a scratch SSE register to copy
10053 data from one memory location to another.
10055 2021-08-02 H.J. Lu <hjl.tools@gmail.com>
10057 PR middle-end/90773
10058 * config/i386/i386.c (TARGET_GEN_MEMSET_SCRATCH_RTX): New.
10060 2021-08-02 Aldy Hernandez <aldyh@redhat.com>
10062 PR tree-optimization/101724
10063 * params.opt: Remove --param=threader-iterative.
10064 * tree-ssa-threadbackward.c (pass_thread_jumps::execute): Remove
10067 2021-08-02 Tom de Vries <tdevries@suse.de>
10069 PR middle-end/101665
10070 * doc/extend.texi (nonnull attribute): Improve documentation.
10072 2021-08-02 Andrew Pinski <apinski@marvell.com>
10074 PR rtl-optimization/101683
10075 * rtlanal.c (may_trap_p_1): Handle UNSIGNED_FIX.
10077 2021-08-02 Roger Sayle <roger@nextmovesoftware.com>
10079 * tree-ssa-phiopt.c (cond_removal_in_builtin_zero_pattern):
10080 Renamed from cond_removal_in_popcount_clz_ctz_pattern.
10081 Add support for BSWAP, FFS, PARITY and CLRSB builtins.
10082 (tree_ssa_phiop_worker): Update call to function above.
10084 2021-08-01 H.J. Lu <hjl.tools@gmail.com>
10087 * config/i386/i386.md (bsr_rex64_1_zext): New.
10088 (combine splitter for constant - clzll): Replace gen_bsr_rex64_1
10089 with gen_bsr_rex64_1_zext.
10091 2021-07-31 Jakub Jelinek <jakub@redhat.com>
10094 * config/i386/i386.md (bsr_rex64_1, bsr_1, bsr_zext_1): New
10095 define_insn patterns.
10096 (*bsr_rex64_2, *bsr_2): New define_insn_and_split patterns.
10097 Add combine splitters for constant - clz.
10098 (clz<mode>2): Use a temporary pseudo for bsr result.
10100 2021-07-30 Paul A. Clarke <pc@us.ibm.com>
10102 * config/rs6000/smmintrin.h (_mm_floor_pd, _mm_floor_ps,
10103 _mm_floor_sd, _mm_floor_ss): New.
10105 2021-07-30 Paul A. Clarke <pc@us.ibm.com>
10107 * config/rs6000/smmintrin.h (_mm_ceil_pd, _mm_ceil_ps,
10108 _mm_ceil_sd, _mm_ceil_ss): New.
10110 2021-07-30 Paul A. Clarke <pc@us.ibm.com>
10112 * config/rs6000/smmintrin.h (_mm_blend_pd, _mm_blendv_pd,
10113 _mm_blend_ps, _mm_blendv_ps): New.
10115 2021-07-30 Roger Sayle <roger@nextmovesoftware.com>
10116 Uroš Bizjak <ubizjak@gmail.com>
10118 * config/i386/i386.md (*dec_cmov<mode>): New define_insn_and_split
10119 to generate a conditional move using the carry flag after sub $1.
10120 (peephole2): Eliminate a register-to-register move by inverting
10121 the condition of a conditional move.
10123 2021-07-30 Hans-Peter Nilsson <hp@bitrange.com>
10125 * config/mmix/mmix.md ("call", "call_value", "*call_real")
10126 ("*call_value_real"): Don't generate rtx mentioning the generic
10127 operands 1 and 2 to "call", and similarly for "call_value".
10128 * config/mmix/mmix.c (mmix_print_operand_punct_valid_p)
10129 (mmix_print_operand): Use '!' instead of 'p'.
10131 2021-07-30 Hans-Peter Nilsson <hp@bitrange.com>
10133 * doc/md.texi (call): Correct information about operand 2.
10134 * config/mmix/mmix.md ("call", "call_value"): Remove fixed FIXMEs.
10136 2021-07-30 Andrew MacLeod <amacleod@redhat.com>
10138 * range-op.cc (operator_trunc_mod::wi_fold): Fold constants.
10140 2021-07-30 Andrew MacLeod <amacleod@redhat.com>
10142 * range-op.cc (operator_div::wi_fold): Return UNDEFINED for [0, 0] divisor.
10144 2021-07-30 Andrew MacLeod <amacleod@redhat.com>
10146 * gimple-range-cache.cc (*::set_bb_range): Change const basic_block to
10147 const_basic_block..
10148 (*::get_bb_range): Ditto.
10149 (*::bb_range_p): Ditto.
10150 * gimple-range-cache.h: Change prototypes.
10152 2021-07-30 H.J. Lu <hjl.tools@gmail.com>
10154 PR middle-end/90773
10155 * builtins.c (builtin_memcpy_read_str): Change the mode argument
10156 from scalar_int_mode to fixed_size_mode.
10157 (builtin_strncpy_read_str): Likewise.
10158 (gen_memset_value_from_prev): New function.
10159 (builtin_memset_read_str): Change the mode argument from
10160 scalar_int_mode to fixed_size_mode. Use gen_memset_value_from_prev
10161 and support CONST_VECTOR.
10162 (builtin_memset_gen_str): Likewise.
10163 (try_store_by_multiple_pieces): Use by_pieces_constfn to declare
10165 * builtins.h (builtin_strncpy_read_str): Replace scalar_int_mode
10166 with fixed_size_mode.
10167 (builtin_memset_read_str): Likewise.
10168 * expr.c (widest_int_mode_for_size): Renamed to ...
10169 (widest_fixed_size_mode_for_size): Add a bool argument to
10170 indicate if QI vector mode can be used.
10171 (by_pieces_ninsns): Call widest_fixed_size_mode_for_size
10172 instead of widest_int_mode_for_size.
10173 (pieces_addr::adjust): Change the mode argument from
10174 scalar_int_mode to fixed_size_mode.
10175 (op_by_pieces_d): Make m_len read-only. Add a bool member,
10176 m_qi_vector_mode, to indicate that QI vector mode can be used.
10177 (op_by_pieces_d::op_by_pieces_d): Add a bool argument to
10178 initialize m_qi_vector_mode. Call widest_fixed_size_mode_for_size
10179 instead of widest_int_mode_for_size.
10180 (op_by_pieces_d::get_usable_mode): Change the mode argument from
10181 scalar_int_mode to fixed_size_mode. Call
10182 widest_fixed_size_mode_for_size instead of
10183 widest_int_mode_for_size.
10184 (op_by_pieces_d::smallest_fixed_size_mode_for_size): New member
10185 function to return the smallest integer or QI vector mode.
10186 (op_by_pieces_d::run): Call widest_fixed_size_mode_for_size
10187 instead of widest_int_mode_for_size. Call
10188 smallest_fixed_size_mode_for_size instead of
10189 smallest_int_mode_for_size.
10190 (store_by_pieces_d::store_by_pieces_d): Add a bool argument to
10191 indicate that QI vector mode can be used and pass it to
10192 op_by_pieces_d::op_by_pieces_d.
10193 (can_store_by_pieces): Call widest_fixed_size_mode_for_size
10194 instead of widest_int_mode_for_size. Pass memsetp to
10195 widest_fixed_size_mode_for_size to support QI vector mode.
10196 Allow all CONST_VECTORs for memset if vec_duplicate is supported.
10197 (store_by_pieces): Pass memsetp to
10198 store_by_pieces_d::store_by_pieces_d.
10199 (clear_by_pieces_1): Removed.
10200 (clear_by_pieces): Replace clear_by_pieces_1 with
10201 builtin_memset_read_str and pass true to store_by_pieces_d to
10202 support vector mode broadcast.
10203 (string_cst_read_str): Change the mode argument from
10204 scalar_int_mode to fixed_size_mode.
10205 * expr.h (by_pieces_constfn): Change scalar_int_mode to
10207 (by_pieces_prev): Likewise.
10208 * rtl.h (lowpart_subreg_regno): New.
10209 * rtlanal.c (lowpart_subreg_regno): New. A wrapper around
10210 simplify_subreg_regno.
10211 * target.def (gen_memset_scratch_rtx): New hook.
10212 * doc/tm.texi.in: Add TARGET_GEN_MEMSET_SCRATCH_RTX.
10213 * doc/tm.texi: Regenerated.
10215 2021-07-30 Xi Ruoyao <xry111@mengyan1223.wang>
10218 * config/mips/mips.c (mips_atomic_assign_expand_fenv): Use
10219 TARGET_EXPR instead of MODIFY_EXPR.
10221 2021-07-30 Xi Ruoyao <xry111@mengyan1223.wang>
10224 * config/mips/mips-protos.h (mips_expand_vec_cmp_expr): Declare.
10225 * config/mips/mips.c (mips_expand_vec_cmp_expr): New function.
10226 * config/mips/mips-msa.md (vec_cmp<MSA:mode><mode_i>): New
10228 (vec_cmpu<IMSA:mode><mode_i>): New expander.
10230 2021-07-30 H.J. Lu <hjl.tools@gmail.com>
10233 * config/i386/i386-options.c (ix86_option_override_internal):
10234 Don't enable LZCNT/POPCNT if they have been disabled explicitly.
10236 2021-07-30 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
10239 * config/arm/arm_neon.h (vld1_p64): Replace call to builtin by
10240 explicitly dereferencing __a.
10241 (vld1_s64): Likewise.
10242 (vld1_u64): Likewise.
10243 * config/arm/arm_neon_builtins.def (vld1): Remove entry for di
10244 and change to VAR13.
10246 2021-07-30 Aldy Hernandez <aldyh@redhat.com>
10248 * gimple-loop-versioning.cc (lv_dom_walker::lv_dom_walker): Remove
10249 use of m_range_analyzer.
10250 (loop_versioning::lv_dom_walker::before_dom_children): Same.
10251 (loop_versioning::lv_dom_walker::after_dom_children): Remove.
10252 (loop_versioning::prune_loop_conditions): Replace vr_values use
10253 with range_query interface.
10254 (pass_loop_versioning::execute): Use ranger.
10256 2021-07-30 Xi Ruoyao <xry111@mengyan1223.wang>
10259 * ipa-devirt.c (ipa_odr_read_section): Compare the precision of
10260 enum values, and emit a warning if they mismatch.
10262 2021-07-30 Kewen Lin <linkw@linux.ibm.com>
10264 * cfgloop.h (as_const): New function.
10265 (class loop_iterator): Rename to ...
10266 (class loops_list): ... this.
10267 (loop_iterator::next): Rename to ...
10268 (loops_list::Iter::fill_curr_loop): ... this and adjust.
10269 (loop_iterator::loop_iterator): Rename to ...
10270 (loops_list::loops_list): ... this and adjust.
10271 (loops_list::Iter): New class.
10272 (loops_list::iterator): New type.
10273 (loops_list::const_iterator): New type.
10274 (loops_list::begin): New function.
10275 (loops_list::end): Likewise.
10276 (loops_list::begin const): Likewise.
10277 (loops_list::end const): Likewise.
10278 (FOR_EACH_LOOP): Remove.
10279 (FOR_EACH_LOOP_FN): Remove.
10280 * cfgloop.c (flow_loops_dump): Adjust FOR_EACH_LOOP* with range-based
10281 for loop with loops_list instance.
10282 (sort_sibling_loops): Likewise.
10283 (disambiguate_loops_with_multiple_latches): Likewise.
10284 (verify_loop_structure): Likewise.
10285 * cfgloopmanip.c (create_preheaders): Likewise.
10286 (force_single_succ_latches): Likewise.
10287 * config/aarch64/falkor-tag-collision-avoidance.c
10288 (execute_tag_collision_avoidance): Likewise.
10289 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Likewise.
10290 * config/s390/s390.c (s390_adjust_loops): Likewise.
10291 * doc/loop.texi: Likewise.
10292 * gimple-loop-interchange.cc (pass_linterchange::execute): Likewise.
10293 * gimple-loop-jam.c (tree_loop_unroll_and_jam): Likewise.
10294 * gimple-loop-versioning.cc (loop_versioning::analyze_blocks): Likewise.
10295 (loop_versioning::make_versioning_decisions): Likewise.
10296 * gimple-ssa-split-paths.c (split_paths): Likewise.
10297 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl): Likewise.
10298 * graphite.c (canonicalize_loop_form): Likewise.
10299 (graphite_transform_loops): Likewise.
10300 * ipa-fnsummary.c (analyze_function_body): Likewise.
10301 * ipa-pure-const.c (analyze_function): Likewise.
10302 * loop-doloop.c (doloop_optimize_loops): Likewise.
10303 * loop-init.c (loop_optimizer_finalize): Likewise.
10304 (fix_loop_structure): Likewise.
10305 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
10306 (move_loop_invariants): Likewise.
10307 * loop-unroll.c (decide_unrolling): Likewise.
10308 (unroll_loops): Likewise.
10309 * modulo-sched.c (sms_schedule): Likewise.
10310 * predict.c (predict_loops): Likewise.
10311 (pass_profile::execute): Likewise.
10312 * profile.c (branch_prob): Likewise.
10313 * sel-sched-ir.c (sel_finish_pipelining): Likewise.
10314 (sel_find_rgns): Likewise.
10315 * tree-cfg.c (replace_loop_annotate): Likewise.
10316 (replace_uses_by): Likewise.
10317 (move_sese_region_to_fn): Likewise.
10318 * tree-if-conv.c (pass_if_conversion::execute): Likewise.
10319 * tree-loop-distribution.c (loop_distribution::execute): Likewise.
10320 * tree-parloops.c (parallelize_loops): Likewise.
10321 * tree-predcom.c (tree_predictive_commoning): Likewise.
10322 * tree-scalar-evolution.c (scev_initialize): Likewise.
10323 (scev_reset): Likewise.
10324 * tree-ssa-dce.c (find_obviously_necessary_stmts): Likewise.
10325 * tree-ssa-live.c (remove_unused_locals): Likewise.
10326 * tree-ssa-loop-ch.c (ch_base::copy_headers): Likewise.
10327 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
10328 (tree_ssa_lim_initialize): Likewise.
10329 * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Likewise.
10330 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize): Likewise.
10331 * tree-ssa-loop-manip.c (get_loops_exits): Likewise.
10332 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations): Likewise.
10333 (free_numbers_of_iterations_estimates): Likewise.
10334 * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
10335 * tree-ssa-loop-split.c (tree_ssa_split_loops): Likewise.
10336 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Likewise.
10337 * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
10338 (pass_scev_cprop::execute): Likewise.
10339 * tree-ssa-propagate.c (clean_up_loop_closed_phi): Likewise.
10340 * tree-ssa-sccvn.c (do_rpo_vn): Likewise.
10341 * tree-ssa-threadupdate.c
10342 (jump_thread_path_registry::thread_through_all_blocks): Likewise.
10343 * tree-vectorizer.c (vectorize_loops): Likewise.
10344 * tree-vrp.c (vrp_asserts::find_assert_locations): Likewise.
10346 2021-07-29 Hans-Peter Nilsson <hp@bitrange.com>
10348 * config/mmix/mmix.c (mmix_function_arg_1): Avoid
10349 generating a VOIDmode register for e.g the
10350 function_arg_info::end_marker.
10352 2021-07-29 Jeff Law <jeffreyalaw@gmail.com>
10354 * config/h8300/h8300-modes.def: Add CCZ, CCV and CCC, drop CCZNV.
10355 * config/h8300/h8300.md (H8cc mode iterator): Add CCZ.
10356 (cc mode_attr): Similarly.
10357 (ccz subst_attr): Similarly.
10358 * config/h8300/jumpcall.md: Add new patterns for branch-on-bit.
10359 * config/h8300/testcompare.md: Remove various cc0 based patterns
10360 that had been commented out. Add pattern to set CCZ from a bit
10363 2021-07-29 Thomas Schwinge <thomas@codesourcery.com>
10364 Julian Brown <julian@codesourcery.com>
10365 Kwok Cheung Yeung <kcy@codesourcery.com>
10367 * omp-offload.c (oacc_loop_xform_head_tail, oacc_loop_process):
10368 'update_stmt' after modification.
10369 (pass_oacc_loop_designation): New function, extracted out of...
10370 (pass_oacc_device_lower): ... this.
10371 (pass_data_oacc_loop_designation, pass_oacc_loop_designation)
10372 (make_pass_oacc_loop_designation): New
10373 * passes.def: Add it.
10374 * tree-parloops.c (create_parallel_loop): Adjust.
10375 * tree-pass.h (make_pass_oacc_loop_designation): New.
10377 2021-07-29 Aldy Hernandez <aldyh@redhat.com>
10379 * flag-types.h (enum threader_mode): New.
10380 * params.opt: Add entry for --param=threader-mode.
10381 * tree-ssa-threadbackward.c (THREADER_ITERATIVE_MODE): New.
10382 (class back_threader): New.
10383 (back_threader::back_threader): New.
10384 (back_threader::~back_threader): New.
10385 (back_threader::maybe_register_path): New.
10386 (back_threader::find_taken_edge): New.
10387 (back_threader::find_taken_edge_switch): New.
10388 (back_threader::find_taken_edge_cond): New.
10389 (back_threader::resolve_def): New.
10390 (back_threader::resolve_phi): New.
10391 (back_threader::find_paths_to_names): New.
10392 (back_threader::find_paths): New.
10395 (thread_jumps::find_jump_threads_backwards): Call ranger threader.
10396 (thread_jumps::find_jump_threads_backwards_with_ranger): New.
10397 (pass_thread_jumps::execute): Abstract out code...
10398 (try_thread_blocks): ...here.
10399 * tree-ssa-threadedge.c (jump_threader::thread_outgoing_edges):
10400 Abstract out threading candidate code to...
10401 (single_succ_to_potentially_threadable_block): ...here.
10402 * tree-ssa-threadedge.h (single_succ_to_potentially_threadable_block):
10404 * tree-ssa-threadupdate.c (register_jump_thread): Return boolean.
10405 * tree-ssa-threadupdate.h (class jump_thread_path_registry):
10406 Return bool from register_jump_thread.
10408 2021-07-29 Andreas Krebbel <krebbel@linux.ibm.com>
10410 * target.def: in0 and in1 do not need to be registers.
10411 * doc/tm.texi: Regenerate.
10413 2021-07-29 liuhongt <hongtao.liu@intel.com>
10416 * config/i386/i386.c (ix86_widen_mult_cost): New function.
10417 (ix86_add_stmt_cost): Use ix86_widen_mult_cost for
10420 2021-07-29 Jiufu Guo <guojiufu@linux.ibm.com>
10423 * config/rs6000/rs6000.c (TARGET_PREFERRED_DOLOOP_MODE): New hook.
10424 (rs6000_preferred_doloop_mode): New hook.
10425 * doc/tm.texi: Regenerate.
10426 * doc/tm.texi.in: Add hook preferred_doloop_mode.
10427 * target.def (preferred_doloop_mode): New hook.
10428 * targhooks.c (default_preferred_doloop_mode): New hook.
10429 * targhooks.h (default_preferred_doloop_mode): New hook.
10430 * tree-ssa-loop-ivopts.c (compute_doloop_base_on_mode): New function.
10431 (add_iv_candidate_for_doloop): Call targetm.preferred_doloop_mode
10432 and compute_doloop_base_on_mode.
10434 2021-07-28 Martin Sebor <msebor@redhat.com>
10436 PR middle-end/101494
10437 * tree-ssa-uninit.c (maybe_warn_operand): Correct object offset
10438 and size computation.
10440 2021-07-28 Martin Sebor <msebor@redhat.com>
10442 PR middle-end/101601
10443 * gimple-array-bounds.cc (array_bounds_checker::check_mem_ref): Remove
10445 Handle pointers to functions.
10447 2021-07-28 Martin Sebor <msebor@redhat.com>
10449 * Makefile.in (OBJS): Add gimple-ssa-warn-access.o and pointer-query.o.
10450 * attribs.h (fndecl_dealloc_argno): Move fndecl_dealloc_argno to tree.h.
10451 * builtins.c (compute_objsize_r): Move to pointer-query.cc.
10452 (access_ref::access_ref): Same.
10453 (access_ref::phi): Same.
10454 (access_ref::get_ref): Same.
10455 (access_ref::size_remaining): Same.
10456 (access_ref::offset_in_range): Same.
10457 (access_ref::add_offset): Same.
10458 (access_ref::inform_access): Same.
10459 (ssa_name_limit_t::visit_phi): Same.
10460 (ssa_name_limit_t::leave_phi): Same.
10461 (ssa_name_limit_t::next): Same.
10462 (ssa_name_limit_t::next_phi): Same.
10463 (ssa_name_limit_t::~ssa_name_limit_t): Same.
10464 (pointer_query::pointer_query): Same.
10465 (pointer_query::get_ref): Same.
10466 (pointer_query::put_ref): Same.
10467 (pointer_query::flush_cache): Same.
10468 (warn_string_no_nul): Move to gimple-ssa-warn-access.cc.
10469 (check_nul_terminated_array): Same.
10470 (unterminated_array): Same.
10471 (maybe_warn_for_bound): Same.
10472 (check_read_access): Same.
10473 (warn_for_access): Same.
10474 (get_size_range): Same.
10475 (check_access): Same.
10476 (gimple_call_alloc_size): Move to tree.c.
10477 (gimple_parm_array_size): Move to pointer-query.cc.
10478 (get_offset_range): Same.
10479 (gimple_call_return_array): Same.
10480 (handle_min_max_size): Same.
10481 (handle_array_ref): Same.
10482 (handle_mem_ref): Same.
10483 (compute_objsize): Same.
10484 (gimple_call_alloc_p): Move to gimple-ssa-warn-access.cc.
10485 (call_dealloc_argno): Same.
10486 (fndecl_dealloc_argno): Same.
10487 (new_delete_mismatch_p): Same.
10488 (matching_alloc_calls_p): Same.
10489 (warn_dealloc_offset): Same.
10490 (maybe_emit_free_warning): Same.
10491 * builtins.h (check_nul_terminated_array): Move to
10492 gimple-ssa-warn-access.h.
10493 (check_nul_terminated_array): Same.
10494 (warn_string_no_nul): Same.
10495 (unterminated_array): Same.
10496 (class ssa_name_limit_t): Same.
10497 (class pointer_query): Same.
10498 (struct access_ref): Same.
10499 (class range_query): Same.
10500 (struct access_data): Same.
10501 (gimple_call_alloc_size): Same.
10502 (gimple_parm_array_size): Same.
10503 (compute_objsize): Same.
10504 (class access_data): Same.
10505 (maybe_emit_free_warning): Same.
10506 * calls.c (initialize_argument_information): Remove call to
10507 maybe_emit_free_warning.
10508 * gimple-array-bounds.cc: Include new header..
10509 * gimple-fold.c: Same.
10510 * gimple-ssa-sprintf.c: Same.
10511 * gimple-ssa-warn-restrict.c: Same.
10512 * passes.def: Add pass_warn_access.
10513 * tree-pass.h (make_pass_warn_access): Declare.
10514 * tree-ssa-strlen.c: Include new headers.
10515 * tree.c (fndecl_dealloc_argno): Move here from builtins.c.
10516 * tree.h (fndecl_dealloc_argno): Move here from attribs.h.
10517 * gimple-ssa-warn-access.cc: New file.
10518 * gimple-ssa-warn-access.h: New file.
10519 * pointer-query.cc: New file.
10520 * pointer-query.h: New file.
10522 2021-07-28 Jakub Jelinek <jakub@redhat.com>
10524 PR middle-end/101624
10525 * ubsan.c (maybe_instrument_pointer_overflow,
10526 instrument_object_size): Only test DECL_REGISTER on VAR_DECLs,
10527 PARM_DECLs or RESULT_DECLs.
10528 * sanopt.c (maybe_optimize_ubsan_ptr_ifn): Likewise.
10530 2021-07-28 Jakub Jelinek <jakub@redhat.com>
10532 PR middle-end/101642
10533 * match.pd (bswap16 (x) == bswap16 (y)): Cast both operands
10534 to type of bswap16 for comparison.
10535 (bswap16 (x) == cst): Cast bswap16 operand to type of cst.
10537 2021-07-28 Richard Biener <rguenther@suse.de>
10539 PR tree-optimization/101615
10540 * tree-vect-slp.c (vect_optimize_slp): Materialize permutes
10541 at CTOR SLP graph entries.
10543 2021-07-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10545 * config/aarch64/aarch64.md (*extend<SHORT:mode><GPI:mode>2_aarch64):
10546 Add "r,w" alternative.
10548 2021-07-28 H.J. Lu <hjl.tools@gmail.com>
10551 * config/i386/i386.c (ix86_avx_u128_mode_needed): Don't set
10552 AVX_U128_DIRTY when all bits are zero.
10554 2021-07-28 Richard Biener <rguenther@suse.de>
10556 PR tree-optimization/101615
10557 * tree-vect-slp.c (vect_optimize_slp): Pre-existing vector
10558 external nodes cannot be permuted so make them perm_out 0.
10560 2021-07-28 Andrew Stubbs <ams@codesourcery.com>
10563 * config.in: Regenerate.
10564 * config/gcn/gcn-hsa.h (A_FIJI): New define.
10565 (A_900): New define.
10566 (A_906): New define.
10567 (A_908): New define.
10568 (ASM_SPEC): Use A_FIJI, A_900, A_906 and A_908.
10569 * config/gcn/gcn.c (output_file_start): Adjust attributes according
10570 to the assembler capabilities.
10571 * config/gcn/mkoffload.c (main): Likewise.
10572 * configure: Regenerate.
10573 * configure.ac: Add tests for LLVM assembler attribute features.
10575 2021-07-28 Andrew MacLeod <amacleod@redhat.com>
10577 * gimple-range-gori.cc (gori_compute::outgoing_edge_range_p): Check for
10578 cond_false and cond_true on branches.
10580 2021-07-28 Bin Cheng <bin.cheng@linux.alibaba.com>
10582 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): use
10585 2021-07-28 Bin Cheng <bin.cheng@linux.alibaba.com>
10587 * alias.c (init_alias_analysis): Don't skip prologue/epilogue.
10589 2021-07-28 Jakub Jelinek <jakub@redhat.com>
10592 * config/i386/sse.md (vashr<mode>3): Split into vashrv8di3 expander
10593 and vashrv4di3 expander, where the latter requires just TARGET_AVX2
10594 and has special !TARGET_AVX512VL expansion.
10595 (vashrv2di3<mask_name>): Rename to ...
10596 (vashrv2di3): ... this. Change condition to TARGET_XOP || TARGET_AVX2
10597 and add special !TARGET_XOP && !TARGET_AVX512VL expansion.
10599 2021-07-28 Martin Uecker <muecker@gwdg.de>
10601 * calls.c (maybe_warn_rdwr_sizes): Correct argument
10602 numbers in warning that were switched.
10604 2021-07-28 Kewen Lin <linkw@linux.ibm.com>
10606 PR tree-optimization/101596
10607 * tree-vect-patterns.c (vect_recog_mulhs_pattern): Fix wrong check
10608 by using new_type's precision instead.
10610 2021-07-28 liuhongt <hongtao.liu@intel.com>
10613 * config/i386/i386.h (processor_costs): Add new member
10615 * config/i386/x86-tune-costs.h (ix86_size_cost, i386_cost,
10616 i486_cost, pentium_cost, lakemont_cost, pentiumpro_cost,
10617 geode_cost, k6_cost, athlon_cost, k8_cost, amdfam10_cost,
10618 bdver_cost, znver1_cost, znver2_cost, znver3_cost,
10619 btver1_cost, btver2_cost, btver3_cost, pentium4_cost,
10620 nocona_cost, atom_cost, atom_cost, slm_cost, intel_cost,
10621 generic_cost, core_cost): Initialize integer_to_sse same value
10623 (skylake_cost): Initialize integer_to_sse twice as much as sse_op.
10624 * config/i386/i386.c (ix86_builtin_vectorization_cost):
10625 Use integer_to_sse instead of sse_op to calculate the cost of
10628 2021-07-27 Bill Schmidt <wschmidt@linux.ibm.com>
10630 * config/rs6000/rs6000-gen-builtins.c (write_ovld_static_init): New
10632 (write_init_file): Call write_ovld_static_init.
10634 2021-07-27 Bill Schmidt <wschmidt@linux.ibm.com>
10636 * config/rs6000/rs6000-gen-builtins.c (write_bif_static_init): New
10638 (write_init_file): Call write_bif_static_init.
10640 2021-07-27 Bill Schmidt <wschmidt@linux.ibm.com>
10642 * config/rs6000/rs6000-gen-builtins.c (typemap): New struct.
10643 (TYPE_MAP_SIZE): New macro.
10644 (type_map): New initialized variable.
10645 (typemap_cmp): New function.
10646 (write_type_node): Likewise.
10647 (write_fntype_init): Implement.
10649 2021-07-27 Martin Sebor <msebor@redhat.com>
10651 PR tree-optimization/101584
10652 * tree-ssa-uninit.c (builtin_call_nomodifying_p): New function.
10653 (check_defs): Call it.
10655 2021-07-27 Aldy Hernandez <aldyh@redhat.com>
10657 * tree-ssa-dom.c (dom_jump_threader_simplifier):
10658 Put avail_exprs_stack in the class, instead of passing it to
10659 jump_threader_simplifier.
10660 (dom_jump_threader_simplifier::simplify): Add state argument.
10661 (dom_opt_dom_walker): Add state.
10662 (pass_dominator::execute): Pass state to threader.
10663 (dom_opt_dom_walker::before_dom_children): Use state.
10664 * tree-ssa-threadedge.c (jump_threader::jump_threader): Replace
10665 arguments by state.
10666 (jump_threader::record_temporary_equivalences_from_phis):
10667 Register equivalences through the state variable.
10668 (jump_threader::record_temporary_equivalences_from_stmts_at_dest):
10669 Record ranges in a statement through the state variable.
10670 (jump_threader::simplify_control_stmt_condition): Pass state to
10672 (jump_threader::simplify_control_stmt_condition_1): Same.
10673 (jump_threader::thread_around_empty_blocks): Remove obsolete
10675 (jump_threader::thread_through_normal_block): Record equivalences
10676 on edge through the state variable.
10677 (jump_threader::thread_across_edge): Abstract state pushing.
10678 (jt_state::jt_state): New.
10679 (jt_state::push): New.
10680 (jt_state::pop): New.
10681 (jt_state::register_equiv): New.
10682 (jt_state::record_ranges_from_stmt): New.
10683 (jt_state::register_equivs_on_edge): New.
10684 (jump_threader_simplifier::jump_threader_simplifier): Move from
10686 (jump_threader_simplifier::simplify): Add state argument.
10687 * tree-ssa-threadedge.h (class jt_state): New.
10688 (class jump_threader): Add state to constructor.
10689 (class jump_threader_simplifier): Add state to simplify. Remove
10690 avail_exprs_stack from class.
10691 * tree-vrp.c (vrp_jump_threader_simplifier::simplify): Add state
10693 (vrp_jump_threader::vrp_jump_threader): Add state.
10694 (vrp_jump_threader::~vrp_jump_threader): Cleanup state.
10696 2021-07-27 Aldy Hernandez <aldyh@redhat.com>
10698 * Makefile.in (OBJS): Add gimple-range-path.o.
10699 * gimple-range-path.cc: New file.
10700 * gimple-range-path.h: New file.
10702 2021-07-27 Jonathan Wright <jonathan.wright@arm.com>
10704 * config/aarch64/aarch64-simd.md: Push sign/zero-extension
10705 inside vec_duplicate for all patterns.
10706 * simplify-rtx.c (simplify_context::simplify_unary_operation_1):
10707 Push sign/zero-extension inside vec_duplicate.
10709 2021-07-27 Richard Biener <rguenther@suse.de>
10711 PR tree-optimization/101573
10712 * tree-ssa-uninit.c (warn_uninit_phi_uses): New function
10713 looking at uninitialized PHI arg defs in some constrained cases.
10714 (warn_uninitialized_vars): Call it.
10715 (execute_early_warn_uninitialized): Calculate dominators.
10717 2021-07-27 Richard Biener <rguenther@suse.de>
10719 PR tree-optimization/39821
10720 * tree-vect-stmts.c (vect_model_promotion_demotion_cost): Use
10721 vector_stmt for widening arithmetic.
10722 (vectorizable_conversion): Adjust.
10724 2021-07-27 Martin Jambor <mjambor@suse.cz>
10726 * cgraph.h (ipa_replace_map): New field force_load_ref.
10727 * ipa-prop.h (ipa_param_descriptor): Reduce precision of move_cost,
10728 aded new flag load_dereferenced, adjusted comments.
10729 (ipa_get_param_dereferenced): New function.
10730 (ipa_set_param_dereferenced): Likewise.
10731 * cgraphclones.c (cgraph_node::create_virtual_clone): Follow it.
10732 * ipa-cp.c: Include gimple.h.
10733 (ipcp_discover_new_direct_edges): Take into account dereferenced flag.
10734 (get_replacement_map): New parameter force_load_ref, set the
10735 appropriate flag in ipa_replace_map if set.
10736 (struct symbol_and_index_together): New type.
10737 (adjust_refs_in_act_callers): New function.
10738 (adjust_references_in_caller): Likewise.
10739 (create_specialized_node): When appropriate, call
10740 adjust_references_in_caller and force only load references.
10741 * ipa-prop.c (load_from_dereferenced_name): New function.
10742 (ipa_analyze_controlled_uses): Also detect loads from a
10743 dereference, harden testing of call statements.
10744 (ipa_write_node_info): Stream the dereferenced flag.
10745 (ipa_read_node_info): Likewise.
10746 (ipa_set_jf_constant): Also create refdesc when jump function
10747 references a variable.
10748 (cgraph_node_for_jfunc): Rename to symtab_node_for_jfunc, work
10749 also on references of variables and return a symtab_node. Adjust
10751 (propagate_controlled_uses): Also remove references to VAR_DECLs.
10753 2021-07-27 Jakub Jelinek <jakub@redhat.com>
10755 PR middle-end/101586
10756 * gimple-fold.c (clear_padding_type): Ignore FIELD_DECLs with byte
10757 positions above or equal to sz except for diagnostics of flexible
10760 2021-07-26 Andrew MacLeod <amacleod@redhat.com>
10762 PR tree-optimization/78888
10763 * gimple-range-fold.cc (get_letter_range): New.
10764 (fold_using_range::range_of_builtin_call): Call get_letter_range.
10766 2021-07-26 Andrew MacLeod <amacleod@redhat.com>
10768 PR tree-optimization/78888
10769 * gimple-range-fold.cc (fold_using_range::range_of_builtin_call): Add cases
10770 for CFN_BUILT_IN_TOUPPER and CFN_BUILT_IN_TOLOWER.
10772 2021-07-26 Roger Sayle <roger@nextmovesoftware.com>
10773 Marc Glisse <marc.glisse@inria.fr>
10775 * match.pd (rotate): Simplify equality/inequality of rotations.
10776 (bswap): Simplify equality/inequality tests of byte swapping.
10778 2021-07-26 Aldy Hernandez <aldyh@redhat.com>
10780 * range-op.cc (operator_bitwise_xor::op1_op2_relation_effect):
10783 2021-07-26 Aldy Hernandez <aldyh@redhat.com>
10785 * range-op.cc (operator_lshift::fold_range): Pass rel to
10786 base class fold_range.
10787 (operator_rshift::fold_range): Same.
10789 2021-07-26 Ashimida <ashimida@linux.alibaba.com>
10792 * toplev.h (min_align_loops_log): Remove declaration.
10793 (min_align_jumps_log, min_align_labels_log): Likewise.
10794 (min_align_functions_log): Likewise.
10796 2021-07-26 Aldy Hernandez <aldyh@redhat.com>
10798 * tree-vrp.c (vrp_simplify_cond_using_ranges): Rename vr_values
10800 (execute_vrp): Abstract out simplification of conditionals...
10801 (simplify_casted_conds): ...here.
10803 2021-07-26 Aldy Hernandez <aldyh@redhat.com>
10805 * gimple-array-bounds.cc (array_bounds_checker::get_value_range):
10806 Add gimple argument.
10807 (array_bounds_checker::check_array_ref): Same.
10808 (array_bounds_checker::check_addr_expr): Same.
10809 (array_bounds_checker::check_array_bounds): Pass statement to
10810 check_array_bounds and check_addr_expr.
10811 * gimple-array-bounds.h (check_array_bounds): Add gimple argument.
10812 (check_addr_expr): Same.
10813 (get_value_range): Same.
10815 2021-07-26 Tamar Christina <tamar.christina@arm.com>
10817 * config/aarch64/aarch64-simd-builtins.def (sdot, udot): Rename to..
10818 (sdot_prod, udot_prod): ... This.
10819 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>): Merged
10821 (<sur>dot_prod<vsi2qi>): ... this.
10822 (aarch64_<sur>dot_lane<vsi2qi>, aarch64_<sur>dot_laneq<vsi2qi>):
10823 Change operands order.
10824 (<sur>sadv16qi): Use new operands order.
10825 * config/aarch64/arm_neon.h (vdot_u32, vdotq_u32, vdot_s32,
10826 vdotq_s32): Use new RTL ordering.
10828 2021-07-26 Tamar Christina <tamar.christina@arm.com>
10830 * config/aarch64/aarch64-builtins.c (TYPES_TERNOP_SUSS,
10831 aarch64_types_ternop_suss_qualifiers): New.
10832 * config/aarch64/aarch64-simd-builtins.def (usdot_prod): Use it.
10833 * config/aarch64/aarch64-simd.md (usdot_prod<vsi2qi>): Re-organize RTL.
10834 * config/aarch64/arm_neon.h (vusdot_s32, vusdotq_s32): Use it.
10836 2021-07-23 Jakub Jelinek <jakub@redhat.com>
10838 PR rtl-optimization/101562
10839 * expmed.c (store_integral_bit_field): Only use movstrict_optab
10840 if the operand isn't paradoxical.
10842 2021-07-23 Aldy Hernandez <aldyh@redhat.com>
10844 * gimple-array-bounds.h (class array_bounds_checker): Change
10845 ranges type to range_query.
10847 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
10849 * config/aarch64/arm_neon.h (vst1_s64_x2): Use
10850 __builtin_memcpy instead of constructing
10851 __builtin_aarch64_simd_oi one vector at a time.
10852 (vst1_u64_x2): Likewise.
10853 (vst1_f64_x2): Likewise.
10854 (vst1_s8_x2): Likewise.
10855 (vst1_p8_x2): Likewise.
10856 (vst1_s16_x2): Likewise.
10857 (vst1_p16_x2): Likewise.
10858 (vst1_s32_x2): Likewise.
10859 (vst1_u8_x2): Likewise.
10860 (vst1_u16_x2): Likewise.
10861 (vst1_u32_x2): Likewise.
10862 (vst1_f16_x2): Likewise.
10863 (vst1_f32_x2): Likewise.
10864 (vst1_p64_x2): Likewise.
10865 (vst1q_s8_x2): Likewise.
10866 (vst1q_p8_x2): Likewise.
10867 (vst1q_s16_x2): Likewise.
10868 (vst1q_p16_x2): Likewise.
10869 (vst1q_s32_x2): Likewise.
10870 (vst1q_s64_x2): Likewise.
10871 (vst1q_u8_x2): Likewise.
10872 (vst1q_u16_x2): Likewise.
10873 (vst1q_u32_x2): Likewise.
10874 (vst1q_u64_x2): Likewise.
10875 (vst1q_f16_x2): Likewise.
10876 (vst1q_f32_x2): Likewise.
10877 (vst1q_f64_x2): Likewise.
10878 (vst1q_p64_x2): Likewise.
10880 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
10882 * config/aarch64/arm_neon.h (vst1_s64_x3): Use
10883 __builtin_memcpy instead of constructing
10884 __builtin_aarch64_simd_ci one vector at a time.
10885 (vst1_u64_x3): Likewise.
10886 (vst1_f64_x3): Likewise.
10887 (vst1_s8_x3): Likewise.
10888 (vst1_p8_x3): Likewise.
10889 (vst1_s16_x3): Likewise.
10890 (vst1_p16_x3): Likewise.
10891 (vst1_s32_x3): Likewise.
10892 (vst1_u8_x3): Likewise.
10893 (vst1_u16_x3): Likewise.
10894 (vst1_u32_x3): Likewise.
10895 (vst1_f16_x3): Likewise.
10896 (vst1_f32_x3): Likewise.
10897 (vst1_p64_x3): Likewise.
10898 (vst1q_s8_x3): Likewise.
10899 (vst1q_p8_x3): Likewise.
10900 (vst1q_s16_x3): Likewise.
10901 (vst1q_p16_x3): Likewise.
10902 (vst1q_s32_x3): Likewise.
10903 (vst1q_s64_x3): Likewise.
10904 (vst1q_u8_x3): Likewise.
10905 (vst1q_u16_x3): Likewise.
10906 (vst1q_u32_x3): Likewise.
10907 (vst1q_u64_x3): Likewise.
10908 (vst1q_f16_x3): Likewise.
10909 (vst1q_f32_x3): Likewise.
10910 (vst1q_f64_x3): Likewise.
10911 (vst1q_p64_x3): Likewise.
10913 2021-07-23 H.J. Lu <hjl.tools@gmail.com>
10916 * config/i386/i386.c (ix86_gen_scratch_sse_rtx): Don't return
10917 hard register when LRA is in progress.
10919 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
10921 * config/aarch64/arm_neon.h (vst1_s8_x4): Use
10922 __builtin_memcpy instead of using a union.
10923 (vst1q_s8_x4): Likewise.
10924 (vst1_s16_x4): Likewise.
10925 (vst1q_s16_x4): Likewise.
10926 (vst1_s32_x4): Likewise.
10927 (vst1q_s32_x4): Likewise.
10928 (vst1_u8_x4): Likewise.
10929 (vst1q_u8_x4): Likewise.
10930 (vst1_u16_x4): Likewise.
10931 (vst1q_u16_x4): Likewise.
10932 (vst1_u32_x4): Likewise.
10933 (vst1q_u32_x4): Likewise.
10934 (vst1_f16_x4): Likewise.
10935 (vst1q_f16_x4): Likewise.
10936 (vst1_f32_x4): Likewise.
10937 (vst1q_f32_x4): Likewise.
10938 (vst1_p8_x4): Likewise.
10939 (vst1q_p8_x4): Likewise.
10940 (vst1_p16_x4): Likewise.
10941 (vst1q_p16_x4): Likewise.
10942 (vst1_s64_x4): Likewise.
10943 (vst1_u64_x4): Likewise.
10944 (vst1_p64_x4): Likewise.
10945 (vst1q_s64_x4): Likewise.
10946 (vst1q_u64_x4): Likewise.
10947 (vst1q_p64_x4): Likewise.
10948 (vst1_f64_x4): Likewise.
10949 (vst1q_f64_x4): Likewise.
10951 2021-07-23 Jonathan Wrightt <jonathan.wright@arm.com>
10953 * config/aarch64/arm_neon.h (vst2_s64): Use __builtin_memcpy
10954 instead of constructing __builtin_aarch64_simd_oi one vector
10956 (vst2_u64): Likewise.
10957 (vst2_f64): Likewise.
10958 (vst2_s8): Likewise.
10959 (vst2_p8): Likewise.
10960 (vst2_s16): Likewise.
10961 (vst2_p16): Likewise.
10962 (vst2_s32): Likewise.
10963 (vst2_u8): Likewise.
10964 (vst2_u16): Likewise.
10965 (vst2_u32): Likewise.
10966 (vst2_f16): Likewise.
10967 (vst2_f32): Likewise.
10968 (vst2_p64): Likewise.
10969 (vst2q_s8): Likewise.
10970 (vst2q_p8): Likewise.
10971 (vst2q_s16): Likewise.
10972 (vst2q_p16): Likewise.
10973 (vst2q_s32): Likewise.
10974 (vst2q_s64): Likewise.
10975 (vst2q_u8): Likewise.
10976 (vst2q_u16): Likewise.
10977 (vst2q_u32): Likewise.
10978 (vst2q_u64): Likewise.
10979 (vst2q_f16): Likewise.
10980 (vst2q_f32): Likewise.
10981 (vst2q_f64): Likewise.
10982 (vst2q_p64): Likewise.
10984 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
10986 * config/aarch64/arm_neon.h (vst3_s64): Use __builtin_memcpy
10987 instead of constructing __builtin_aarch64_simd_ci one vector
10989 (vst3_u64): Likewise.
10990 (vst3_f64): Likewise.
10991 (vst3_s8): Likewise.
10992 (vst3_p8): Likewise.
10993 (vst3_s16): Likewise.
10994 (vst3_p16): Likewise.
10995 (vst3_s32): Likewise.
10996 (vst3_u8): Likewise.
10997 (vst3_u16): Likewise.
10998 (vst3_u32): Likewise.
10999 (vst3_f16): Likewise.
11000 (vst3_f32): Likewise.
11001 (vst3_p64): Likewise.
11002 (vst3q_s8): Likewise.
11003 (vst3q_p8): Likewise.
11004 (vst3q_s16): Likewise.
11005 (vst3q_p16): Likewise.
11006 (vst3q_s32): Likewise.
11007 (vst3q_s64): Likewise.
11008 (vst3q_u8): Likewise.
11009 (vst3q_u16): Likewise.
11010 (vst3q_u32): Likewise.
11011 (vst3q_u64): Likewise.
11012 (vst3q_f16): Likewise.
11013 (vst3q_f32): Likewise.
11014 (vst3q_f64): Likewise.
11015 (vst3q_p64): Likewise.
11017 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
11019 * config/aarch64/arm_neon.h (vst4_s64): Use __builtin_memcpy
11020 instead of constructing __builtin_aarch64_simd_xi one vector
11022 (vst4_u64): Likewise.
11023 (vst4_f64): Likewise.
11024 (vst4_s8): Likewise.
11025 (vst4_p8): Likewise.
11026 (vst4_s16): Likewise.
11027 (vst4_p16): Likewise.
11028 (vst4_s32): Likewise.
11029 (vst4_u8): Likewise.
11030 (vst4_u16): Likewise.
11031 (vst4_u32): Likewise.
11032 (vst4_f16): Likewise.
11033 (vst4_f32): Likewise.
11034 (vst4_p64): Likewise.
11035 (vst4q_s8): Likewise.
11036 (vst4q_p8): Likewise.
11037 (vst4q_s16): Likewise.
11038 (vst4q_p16): Likewise.
11039 (vst4q_s32): Likewise.
11040 (vst4q_s64): Likewise.
11041 (vst4q_u8): Likewise.
11042 (vst4q_u16): Likewise.
11043 (vst4q_u32): Likewise.
11044 (vst4q_u64): Likewise.
11045 (vst4q_f16): Likewise.
11046 (vst4q_f32): Likewise.
11047 (vst4q_f64): Likewise.
11048 (vst4q_p64): Likewise.
11050 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
11052 * config/aarch64/arm_neon.h (vtbx4_s8): Use __builtin_memcpy
11053 instead of constructing __builtin_aarch64_simd_oi one vector
11055 (vtbx4_u8): Likewise.
11056 (vtbx4_p8): Likewise.
11058 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
11060 * config/aarch64/arm_neon.h (vtbl3_s8): Use __builtin_memcpy
11061 instead of constructing __builtin_aarch64_simd_oi one vector
11063 (vtbl3_u8): Likewise.
11064 (vtbl3_p8): Likewise.
11065 (vtbl4_s8): Likewise.
11066 (vtbl4_u8): Likewise.
11067 (vtbl4_p8): Likewise.
11069 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
11071 * config/aarch64/arm_neon.h (vqtbx2_s8): Use __builtin_memcpy
11072 instead of constructing __builtin_aarch64_simd_oi one vector
11074 (vqtbx2_u8): Likewise.
11075 (vqtbx2_p8): Likewise.
11076 (vqtbx2q_s8): Likewise.
11077 (vqtbx2q_u8): Likewise.
11078 (vqtbx2q_p8): Likewise.
11079 (vqtbx3_s8): Use __builtin_memcpy instead of constructing
11080 __builtin_aarch64_simd_ci one vector at a time.
11081 (vqtbx3_u8): Likewise.
11082 (vqtbx3_p8): Likewise.
11083 (vqtbx3q_s8): Likewise.
11084 (vqtbx3q_u8): Likewise.
11085 (vqtbx3q_p8): Likewise.
11086 (vqtbx4_s8): Use __builtin_memcpy instead of constructing
11087 __builtin_aarch64_simd_xi one vector at a time.
11088 (vqtbx4_u8): Likewise.
11089 (vqtbx4_p8): Likewise.
11090 (vqtbx4q_s8): Likewise.
11091 (vqtbx4q_u8): Likewise.
11092 (vqtbx4q_p8): Likewise.
11094 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
11096 * config/aarch64/arm_neon.h (vqtbl2_s8): Use __builtin_memcpy
11097 instead of constructing __builtin_aarch64_simd_oi one vector
11099 (vqtbl2_u8): Likewise.
11100 (vqtbl2_p8): Likewise.
11101 (vqtbl2q_s8): Likewise.
11102 (vqtbl2q_u8): Likewise.
11103 (vqtbl2q_p8): Likewise.
11104 (vqtbl3_s8): Use __builtin_memcpy instead of constructing
11105 __builtin_aarch64_simd_ci one vector at a time.
11106 (vqtbl3_u8): Likewise.
11107 (vqtbl3_p8): Likewise.
11108 (vqtbl3q_s8): Likewise.
11109 (vqtbl3q_u8): Likewise.
11110 (vqtbl3q_p8): Likewise.
11111 (vqtbl4_s8): Use __builtin_memcpy instead of constructing
11112 __builtin_aarch64_simd_xi one vector at a time.
11113 (vqtbl4_u8): Likewise.
11114 (vqtbl4_p8): Likewise.
11115 (vqtbl4q_s8): Likewise.
11116 (vqtbl4q_u8): Likewise.
11117 (vqtbl4q_p8): Likewise.
11119 2021-07-23 Haochen Gui <guihaoc@gcc.gnu.org>
11122 * config/rs6000/rs6000.md (cstore<mode>4): Fix wrong fall through.
11124 2021-07-22 Andrew Pinski <apinski@marvell.com>
11126 PR tree-optimization/10153
11127 * tree-tailcall.c (create_tailcall_accumulator):
11128 Don't call fold_convert as the type should be correct already.
11129 (tree_optimize_tail_calls_1): Use build_{one,zero}_cst instead
11130 of integer_{one,zero}_node for the call of create_tailcall_accumulator.
11132 2021-07-22 Aldy Hernandez <aldyh@redhat.com>
11134 * gimple-range-cache.cc (non_null_ref::adjust_range): Replace
11135 varying_p check for null/non-null check.
11137 2021-07-22 Andrew MacLeod <amacleod@redhat.com>
11139 PR tree-optimization/101511
11140 * value-relation.cc (relation_oracle::query_relation): Check if ssa1
11141 is in ssa2's equiv set, and don't trap if so.
11143 2021-07-22 Andrew MacLeod <amacleod@redhat.com>
11145 PR tree-optimization/101497
11146 * gimple-range-fold.cc (fold_using_range::range_of_cond_expr): Check
11149 2021-07-22 Andrew MacLeod <amacleod@redhat.com>
11151 PR tree-optimization/101496
11152 * vr-values.c (simplify_using_ranges::fold_cond): Call range_of_stmt
11153 first, then vrp_visit_cond_Stmt.
11155 2021-07-22 liuhongt <hongtao.liu@intel.com>
11157 * config/i386/i386-expand.c
11158 (ix86_broadcast_from_integer_constant): Rename to ..
11159 (ix86_broadcast_from_constant): .. this, and extend it to
11161 (ix86_expand_vector_move): Extend to float mode.
11162 * config/i386/i386-features.c
11163 (replace_constant_pool_with_broadcast): Remove.
11164 (remove_partial_avx_dependency_gate): Ditto.
11165 (constant_pool_broadcast): Ditto.
11166 (class pass_constant_pool_broadcast): Ditto.
11167 (make_pass_constant_pool_broadcast): Ditto.
11168 (remove_partial_avx_dependency): Adjust gate.
11169 * config/i386/i386-passes.def: Remove pass_constant_pool_broadcast.
11170 * config/i386/i386-protos.h
11171 (make_pass_constant_pool_broadcast): Remove.
11173 2021-07-22 liuhongt <hongtao.liu@intel.com>
11175 * config/i386/constraints.md (Wb): New constraint.
11177 * config/i386/i386.md (*ashlhi3_1): Extend to avx512 mask
11179 (*ashlqi3_1): Ditto.
11180 (*<insn><mode>3_1): Split to ..
11181 (*ashr<mode>3_1): this, ...
11182 (*lshr<mode>3_1): and this, also extend this pattern to avx512
11184 (*<insn><mode>3_1): Split to ..
11185 (*ashr<mode>3_1): this, ...
11186 (*lshrqi3_1): and this, also extend this pattern to avx512
11188 (*lshrhi3_1): And this, also extend this pattern to avx512
11190 * config/i386/sse.md (k<code><mode>): New define_split after
11191 it to convert generic shift pattern to mask shift ones.
11193 2021-07-21 Thomas Schwinge <thomas@codesourcery.com>
11194 Joseph Myers <joseph@codesourcery.com>
11195 Cesar Philippidis <cesar@codesourcery.com>
11197 * tree-core.h (omp_clause_code): Add 'OMP_CLAUSE_NOHOST'.
11198 * tree.c (omp_clause_num_ops, omp_clause_code_name, walk_tree_1):
11200 * tree-pretty-print.c (dump_omp_clause): Likewise.
11201 * omp-general.c (oacc_verify_routine_clauses): Likewise.
11202 * gimplify.c (gimplify_scan_omp_clauses)
11203 (gimplify_adjust_omp_clauses): Likewise.
11204 * tree-nested.c (convert_nonlocal_omp_clauses)
11205 (convert_local_omp_clauses): Likewise.
11206 * omp-low.c (scan_sharing_clauses): Likewise.
11207 * omp-offload.c (execute_oacc_device_lower): Update.
11209 2021-07-21 Martin Sebor <msebor@redhat.com>
11211 * tree-ssa-alias.c (walk_aliased_vdefs_1): Fix typos in a comment.
11213 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
11215 * config/rs6000/rs6000-gen-builtins.c (write_init_bif_table):
11218 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
11220 * config/rs6000/rs6000-gen-builtins.c (write_fntype): New
11222 (write_fntype_init): New stub function.
11223 (write_init_bif_table): Likewise.
11224 (write_init_ovld_table): New function.
11225 (write_init_file): Implement.
11227 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
11229 * config/rs6000/rs6000-gen-builtins.c
11230 (write_autogenerated_header): New function.
11231 (write_decls): Likewise.
11232 (write_extern_fntype): New callback function.
11233 (write_header_file): Implement.
11235 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
11237 * config/rs6000/rs6000-gen-builtins.c (write_defines_file):
11240 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
11242 * config/rs6000/rs6000-gen-builtins.c (complete_vector_type): New
11244 (complete_base_type): Likewise.
11245 (construct_fntype_id): Likewise.
11246 (parse_bif_entry): Call contruct_fntype_id.
11247 (parse_ovld_entry): Likewise.
11249 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
11251 * config/rs6000/rs6000-gen-builtins.c (ovld_stanza): New struct.
11252 (MAXOVLDSTANZAS): New macro.
11253 (ovld_stanzas): New variable.
11254 (curr_ovld_stanza): Likewise.
11255 (MAXOVLDS): New macro.
11256 (ovlddata): New struct.
11257 (ovlds): New variable.
11258 (curr_ovld): Likewise.
11259 (max_ovld_args): Likewise.
11260 (parse_ovld_entry): New function.
11261 (parse_ovld_stanza): Likewise.
11262 (parse_ovld): Implement.
11264 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
11266 * config/rs6000/rs6000-gen-builtins.c (parse_bif_attrs):
11269 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
11271 * config/rs6000/rs6000-gen-builtins.c (parse_args): New function.
11272 (parse_prototype): Implement.
11274 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
11276 * config/rs6000/rs6000-gen-builtins.c (bif_stanza): New enum.
11277 (curr_bif_stanza): New variable.
11278 (stanza_entry): New struct.
11279 (stanza_map): New initialized variable.
11280 (enable_string): Likewise.
11281 (fnkinds): New enum.
11282 (typelist): New struct.
11283 (attrinfo): Likewise.
11284 (MAXRESTROPNDS): New macro.
11285 (prototype): New struct.
11286 (MAXBIFS): New macro.
11287 (bifdata): New struct.
11288 (bifs): New variable.
11289 (curr_bif): Likewise.
11290 (bif_order): Likewise.
11291 (bif_index): Likewise.
11292 (fatal): New function.
11293 (stanza_name_to_stanza): Likewise.
11294 (parse_bif_attrs): New stub function.
11295 (parse_prototype): Likewise.
11296 (parse_bif_entry): New function.
11297 (parse_bif_stanza): Likewise.
11298 (parse_bif): Implement.
11299 (set_bif_order): New function.
11300 (create_bif_order): Implement.
11302 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
11304 * config/rs6000/rs6000-gen-builtins.c (rbtree.h): New #include.
11305 (num_bifs): New variable.
11306 (num_ovld_stanzas): Likewise.
11307 (num_ovlds): Likewise.
11308 (parse_codes): New enum.
11309 (bif_rbt): New variable.
11310 (ovld_rbt): Likewise.
11311 (fntype_rbt): Likewise.
11312 (bifo_rbt): Likewise.
11313 (parse_bif): New stub function.
11314 (create_bif_order): Likewise.
11315 (parse_ovld): Likewise.
11316 (write_header_file): Likewise.
11317 (write_init_file): Likewise.
11318 (write_defines_file): Likewise.
11319 (delete_output_files): New function.
11322 2021-07-21 H.J. Lu <hjl.tools@gmail.com>
11325 * config/i386/i386-builtin.def: Remove OPTION_MASK_ISA_SSE4_2
11326 from CRC32 _builtin functions.
11328 2021-07-21 Sebastian Huber <sebastian.huber@embedded-brains.de>
11330 * coverage.c (build_gcov_info_var_registration): Mark the object placed
11331 in the linker set as referenced so that it does not get optimized away.
11333 2021-07-21 Kito Cheng <kito.cheng@sifive.com>
11336 2021-07-20 Kito Cheng <kito.cheng@sifive.com>
11338 * config.gcc (riscv*-*-*): Detect which python is available.
11340 2021-07-21 Jakub Jelinek <jakub@redhat.com>
11342 PR middle-end/101535
11343 * gimplify.c (omp_check_private): Properly skip ORT_TARGET_DATA
11344 contexts in which decl isn't privatized and for ORT_TARGET return
11345 false if decl is mapped.
11347 2021-07-21 Richard Sandiford <richard.sandiford@arm.com>
11349 * gimple-loop-jam.c: Include tree-ssa-sccvn.h.
11350 (tree_loop_unroll_and_jam): Run value-numbering on a loop that
11351 has been successfully unrolled.
11353 2021-07-21 Richard Sandiford <richard.sandiford@arm.com>
11355 * tree-ssa-loop-manip.c (determine_exit_conditions): Return a null
11356 exit condition if no tail loop is needed, and if the original exit
11357 condition should therefore be kept as-is.
11358 (tree_transform_and_unroll_loop): Handle that case here too.
11360 2021-07-21 Kewen Lin <linkw@linux.ibm.com>
11362 * tree-data-ref.c (free_dependence_relations): Adjust to pass vec
11364 (free_data_refs): Likewise.
11365 * tree-data-ref.h (free_dependence_relations): Likewise.
11366 (free_data_refs): Likewise.
11367 * tree-predcom.c (struct chain): Use auto_vec instead of vec for
11369 (struct component): Likewise.
11370 (pcom_worker::pcom_worker): Adjust for auto_vec and renaming changes.
11371 (pcom_worker::~pcom_worker): Likewise.
11372 (pcom_worker::release_chain): Adjust as auto_vec changes.
11373 (pcom_worker::loop): Rename to ...
11374 (pcom_worker::m_loop): ... this.
11375 (pcom_worker::datarefs): Rename to ...
11376 (pcom_worker::m_datarefs): ... this. Use auto_vec instead of vec.
11377 (pcom_worker::dependences): Rename to ...
11378 (pcom_worker::m_dependences): ... this. Use auto_vec instead of vec.
11379 (pcom_worker::chains): Rename to ...
11380 (pcom_worker::m_chains): ... this. Use auto_vec instead of vec.
11381 (pcom_worker::looparound_phis): Rename to ...
11382 (pcom_worker::m_looparound_phis): ... this. Use auto_vec instead of
11384 (pcom_worker::cache): Rename to ...
11385 (pcom_worker::m_cache): ... this. Use auto_vec instead of vec.
11386 (pcom_worker::release_chain): Adjust for auto_vec changes.
11387 (pcom_worker::release_chains): Adjust for auto_vec and renaming
11389 (release_component): Remove.
11390 (release_components): Adjust for release_component removal.
11391 (component_of): Adjust to use vec.
11392 (merge_comps): Likewise.
11393 (pcom_worker::aff_combination_dr_offset): Adjust for renaming changes.
11394 (pcom_worker::determine_offset): Likewise.
11395 (class comp_ptrs): Remove.
11396 (pcom_worker::split_data_refs_to_components): Adjust for renaming
11397 changes, for comp_ptrs removal with auto_vec.
11398 (pcom_worker::suitable_component_p): Adjust for renaming changes.
11399 (pcom_worker::filter_suitable_components): Adjust for release_component
11401 (pcom_worker::valid_initializer_p): Adjust for renaming changes.
11402 (pcom_worker::find_looparound_phi): Likewise.
11403 (pcom_worker::add_looparound_copies): Likewise.
11404 (pcom_worker::determine_roots_comp): Likewise.
11405 (pcom_worker::single_nonlooparound_use): Likewise.
11406 (pcom_worker::execute_pred_commoning_chain): Likewise.
11407 (pcom_worker::execute_pred_commoning): Likewise.
11408 (pcom_worker::try_combine_chains): Likewise.
11409 (pcom_worker::prepare_initializers_chain): Likewise.
11410 (pcom_worker::prepare_initializers): Likewise.
11411 (pcom_worker::prepare_finalizers_chain): Likewise.
11412 (pcom_worker::prepare_finalizers): Likewise.
11413 (pcom_worker::tree_predictive_commoning_loop): Likewise.
11415 2021-07-20 Martin Sebor <msebor@redhat.com>
11417 PR middle-end/101397
11418 * builtins.c (gimple_call_return_array): Add argument. Correct
11419 offsets for memchr, mempcpy, stpcpy, and stpncpy.
11420 (compute_objsize_r): Adjust offset computation for argument returning
11423 2021-07-20 Martin Sebor <msebor@redhat.com>
11425 PR middle-end/101300
11426 * tree-ssa-uninit.c (check_defs): Handle UBSAN built-ins.
11428 2021-07-20 Jeff Law <jlaw@localhost.localdomain>
11430 * function.c (assign_parm_setup_block): Use adjust_address instead
11431 of change_address to preserve MEM_EXPR and friends.
11433 2021-07-20 Martin Sebor <msebor@redhat.com>
11435 * cfgloop.h (single_likely_exit): Adjust by-value argument to
11436 by-const-reference.
11437 * cfgloopanal.c (single_likely_exit): Same.
11438 * cgraph.h (struct cgraph_node): Same.
11439 * cgraphclones.c (cgraph_node::create_virtual_clone): Same.
11440 * genautomata.c (merge_states): Same.
11441 * genextract.c (VEC_char_to_string): Same.
11442 * genmatch.c (dt_node::gen_kids_1): Same.
11443 (walk_captures): Adjust by-value argument to by-reference.
11444 * gimple-ssa-store-merging.c (check_no_overlap): Adjust by-value argument
11445 to by-const-reference.
11446 * gimple.c (gimple_build_call_vec): Same.
11447 (gimple_build_call_internal_vec): Same.
11448 (gimple_build_switch): Same.
11449 (sort_case_labels): Same.
11450 (preprocess_case_label_vec_for_gimple): Adjust by-value argument to
11452 * gimple.h (gimple_build_call_vec): Adjust by-value argument to
11453 by-const-reference.
11454 (gimple_build_call_internal_vec): Same.
11455 (gimple_build_switch): Same.
11456 (sort_case_labels): Same.
11457 (preprocess_case_label_vec_for_gimple): Adjust by-value argument to
11459 * haifa-sched.c (calc_priorities): Adjust by-value argument to
11460 by-const-reference.
11461 (sched_init_luids): Same.
11462 (haifa_init_h_i_d): Same.
11463 * ipa-cp.c (ipa_get_indirect_edge_target_1): Same.
11464 (adjust_callers_for_value_intersection): Adjust by-value argument to
11466 (find_more_scalar_values_for_callers_subset): Adjust by-value argument to
11467 by-const-reference.
11468 (find_more_contexts_for_caller_subset): Same.
11469 (find_aggregate_values_for_callers_subset): Same.
11470 (copy_useful_known_contexts): Same.
11471 * ipa-fnsummary.c (remap_edge_summaries): Same.
11472 (remap_freqcounting_predicate): Same.
11473 * ipa-inline.c (add_new_edges_to_heap): Adjust by-value argument to
11475 * ipa-predicate.c (predicate::remap_after_inlining): Adjust by-value argument
11476 to by-const-reference.
11477 * ipa-predicate.h (predicate::remap_after_inlining): Same.
11478 * ipa-prop.c (ipa_find_agg_cst_for_param): Same.
11479 * ipa-prop.h (ipa_find_agg_cst_for_param): Same.
11480 * ira-build.c (ira_loop_tree_body_rev_postorder): Same.
11481 * read-rtl.c (add_overload_instance): Same.
11482 * rtl.h (native_decode_rtx): Same.
11483 (native_decode_vector_rtx): Same.
11484 * sched-int.h (sched_init_luids): Same.
11485 (haifa_init_h_i_d): Same.
11486 * simplify-rtx.c (native_decode_vector_rtx): Same.
11487 (native_decode_rtx): Same.
11488 * tree-call-cdce.c (gen_shrink_wrap_conditions): Same.
11489 (shrink_wrap_one_built_in_call_with_conds): Same.
11490 (shrink_wrap_conditional_dead_built_in_calls): Same.
11491 * tree-data-ref.c (create_runtime_alias_checks): Same.
11492 (compute_all_dependences): Same.
11493 * tree-data-ref.h (compute_all_dependences): Same.
11494 (create_runtime_alias_checks): Same.
11495 (index_in_loop_nest): Same.
11496 * tree-if-conv.c (mask_exists): Same.
11497 * tree-loop-distribution.c (class loop_distribution): Same.
11498 (loop_distribution::create_rdg_vertices): Same.
11499 (dump_rdg_partitions): Same.
11500 (debug_rdg_partitions): Same.
11501 (partition_contains_all_rw): Same.
11502 (loop_distribution::distribute_loop): Same.
11503 * tree-parloops.c (oacc_entry_exit_ok_1): Same.
11504 (oacc_entry_exit_single_gang): Same.
11505 * tree-ssa-loop-im.c (hoist_memory_references): Same.
11506 (loop_suitable_for_sm): Same.
11507 * tree-ssa-loop-niter.c (bound_index): Same.
11508 * tree-ssa-reassoc.c (update_ops): Same.
11509 (swap_ops_for_binary_stmt): Same.
11510 (rewrite_expr_tree): Same.
11511 (rewrite_expr_tree_parallel): Same.
11512 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Same.
11513 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Same.
11514 * tree-ssa-structalias.c (process_all_all_constraints): Same.
11515 (make_constraints_to): Same.
11516 (handle_lhs_call): Same.
11517 (find_func_aliases_for_builtin_call): Same.
11518 (sort_fieldstack): Same.
11519 (check_for_overlaps): Same.
11520 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks): Same.
11521 (vect_create_cond_for_unequal_addrs): Same.
11522 (vect_create_cond_for_lower_bounds): Same.
11523 (vect_create_cond_for_alias_checks): Same.
11524 * tree-vect-slp-patterns.c (vect_validate_multiplication): Same.
11525 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
11526 (vect_make_slp_decision): Same.
11527 (vect_slp_bbs): Same.
11528 (duplicate_and_interleave): Same.
11529 (vect_transform_slp_perm_load): Same.
11530 (vect_schedule_slp): Same.
11531 * tree-vectorizer.h (vect_transform_slp_perm_load): Same.
11532 (vect_schedule_slp): Same.
11533 (duplicate_and_interleave): Same.
11534 * tree.c (build_vector_from_ctor): Same.
11535 (build_vector): Same.
11536 (check_vector_cst): Same.
11537 (check_vector_cst_duplicate): Same.
11538 (check_vector_cst_fill): Same.
11539 (check_vector_cst_stepped): Same.
11540 * tree.h (build_vector_from_ctor): Same.
11542 2021-07-20 Jakub Jelinek <jakub@redhat.com>
11545 * config/rs6000/rs6000-protos.h (easy_altivec_constant): Change return
11546 type from bool to int.
11547 * config/rs6000/rs6000.c (vspltis_constant): Fix up handling the
11548 EASY_VECTOR_MSB case if either step or copies is not 1.
11549 (vspltis_shifted): Fix comment typo.
11550 (easy_altivec_constant): Change return type from bool to int, instead
11551 of returning true return byte size of the element mode that should be
11552 used to synthetize the constant.
11553 * config/rs6000/predicates.md (easy_vector_constant_msb): Require
11554 that vspltis_shifted is 0, handle the case where easy_altivec_constant
11555 assumes using different vector mode from CONST_VECTOR's mode.
11556 * config/rs6000/altivec.md (easy_vector_constant_msb splitter): Use
11557 easy_altivec_constant to determine mode in which -1 >> -1 should be
11558 performed, use rs6000_expand_vector_init instead of gen_vec_initv4sisi.
11560 2021-07-20 Richard Biener <rguenther@suse.de>
11563 * dwarf2out.h (dwarf_file_data): Add key member.
11564 * dwarf2out.c (dwarf_file_hasher::equal): Compare key.
11565 (dwarf_file_hasher::hash): Hash key.
11566 (lookup_filename): Remap the filename and store it in the
11567 filename member of dwarf_file_data when creating a new
11569 (file_name_acquire): Do not remap the filename again.
11570 (maybe_emit_file): Likewise.
11572 2021-07-20 Jonathan Wright <jonathan.wright@arm.com>
11574 * config/aarch64/aarch64-simd-builtins.def: Use two variant
11575 generators for all TBL/TBX intrinsics and rename to
11576 consistent forms: qtbl[1234] or qtbx[1234].
11577 * config/aarch64/aarch64-simd.md (aarch64_tbl1<mode>):
11579 (aarch64_qtbl1<mode>): This.
11580 (aarch64_tbx1<mode>): Rename to...
11581 (aarch64_qtbx1<mode>): This.
11582 (aarch64_tbl2v16qi): Delete.
11583 (aarch64_tbl3<mode>): Rename to...
11584 (aarch64_qtbl2<mode>): This.
11585 (aarch64_tbx4<mode>): Rename to...
11586 (aarch64_qtbx2<mode>): This.
11587 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Use
11588 renamed qtbl1 and qtbl2 RTL patterns.
11589 * config/aarch64/arm_neon.h (vqtbl1_p8): Use renamed qtbl1
11591 (vqtbl1_s8): Likewise.
11592 (vqtbl1_u8): Likewise.
11593 (vqtbl1q_p8): Likewise.
11594 (vqtbl1q_s8): Likewise.
11595 (vqtbl1q_u8): Likewise.
11596 (vqtbx1_s8): Use renamed qtbx1 RTL pattern.
11597 (vqtbx1_u8): Likewise.
11598 (vqtbx1_p8): Likewise.
11599 (vqtbx1q_s8): Likewise.
11600 (vqtbx1q_u8): Likewise.
11601 (vqtbx1q_p8): Likewise.
11602 (vtbl1_s8): Use renamed qtbl1 RTL pattern.
11603 (vtbl1_u8): Likewise.
11604 (vtbl1_p8): Likewise.
11605 (vtbl2_s8): Likewise
11606 (vtbl2_u8): Likewise.
11607 (vtbl2_p8): Likewise.
11608 (vtbl3_s8): Use renamed qtbl2 RTL pattern.
11609 (vtbl3_u8): Likewise.
11610 (vtbl3_p8): Likewise.
11611 (vtbl4_s8): Likewise.
11612 (vtbl4_u8): Likewise.
11613 (vtbl4_p8): Likewise.
11614 (vtbx2_s8): Use renamed qtbx2 RTL pattern.
11615 (vtbx2_u8): Likewise.
11616 (vtbx2_p8): Likewise.
11617 (vqtbl2_s8): Use renamed qtbl2 RTL pattern.
11618 (vqtbl2_u8): Likewise.
11619 (vqtbl2_p8): Likewise.
11620 (vqtbl2q_s8): Likewise.
11621 (vqtbl2q_u8): Likewise.
11622 (vqtbl2q_p8): Likewise.
11623 (vqtbx2_s8): Use renamed qtbx2 RTL pattern.
11624 (vqtbx2_u8): Likewise.
11625 (vqtbx2_p8): Likewise.
11626 (vqtbx2q_s8): Likewise.
11627 (vqtbx2q_u8): Likewise.
11628 (vqtbx2q_p8): Likewise.
11629 (vtbx4_s8): Likewise.
11630 (vtbx4_u8): Likewise.
11631 (vtbx4_p8): Likewise.
11633 2021-07-20 Uroš Bizjak <ubizjak@gmail.com>
11636 * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
11638 (define_peephole2 atomic_loaddi_fpu): Ditto.
11640 2021-07-20 Kito Cheng <kito.cheng@sifive.com>
11642 * config.gcc (riscv*-*-*): Detect which python is available.
11644 2021-07-20 Kewen Lin <linkw@linux.ibm.com>
11646 * config/rs6000/vsx.md (mulhs_<mode>): Rename to...
11647 (smul<mode>3_highpart): ... this.
11648 (mulhu_<mode>): Rename to...
11649 (umul<mode>3_highpart): ... this.
11650 * config/rs6000/rs6000-builtin.def (MULHS_V2DI, MULHS_V4SI,
11651 MULHU_V2DI, MULHU_V4SI): Adjust.
11653 2021-07-20 Kewen Lin <linkw@linux.ibm.com>
11655 PR tree-optimization/100696
11656 * internal-fn.c (first_commutative_argument): Add info for IFN_MULH.
11657 * internal-fn.def (IFN_MULH): New internal function.
11658 * tree-vect-patterns.c (vect_recog_mulhs_pattern): Add support to
11659 recog normal multiply highpart as IFN_MULH.
11660 * config/i386/i386.c (ix86_add_stmt_cost): Adjust for combined
11663 2021-07-19 Indu Bhagat <indu.bhagat@oracle.com>
11665 * config/elfos.h (CTF_DEBUGGING_INFO): New definition.
11666 (BTF_DEBUGGING_INFO): Likewise.
11667 * doc/tm.texi.in: Document the new macros.
11668 * doc/tm.texi: Regenerated.
11669 * toplev.c: Guard initialization of debug hooks.
11671 2021-07-19 Indu Bhagat <indu.bhagat@oracle.com>
11673 * flags.h (ctf_debuginfo_p): New function declaration.
11674 * opts.c (ctf_debuginfo_p): New function definition.
11676 2021-07-19 Andrew Stubbs <ams@codesourcery.com>
11679 * config/gcn/gcn-hsa.h (DRIVER_SELF_SPECS): New.
11680 (ASM_SPEC): Set -mattr for xnack and sram-ecc.
11681 * config/gcn/gcn-opts.h (enum sram_ecc_type): New.
11682 * config/gcn/gcn-valu.md: Add a warning comment.
11683 * config/gcn/gcn.c (gcn_option_override): Add "sorry" for -mxnack.
11684 (output_file_start): Add xnack and sram-ecc state to ".amdgcn_target".
11685 * config/gcn/gcn.md: Add a warning comment.
11686 * config/gcn/gcn.opt: Add -mxnack and -msram-ecc.
11687 * config/gcn/mkoffload.c (EF_AMDGPU_MACH_AMDGCN_GFX908): Remove
11689 (EF_AMDGPU_XNACK): New.
11690 (EF_AMDGPU_SRAM_ECC): New.
11692 (copy_early_debug_info): Use elf_flags.
11693 (main): Handle -mxnack and -msram-ecc options.
11694 * doc/invoke.texi: Document -mxnack and -msram-ecc.
11696 2021-07-19 Andrew Pinski <apinski@marvell.com>
11699 * config/aarch64/aarch64.md (csneg3_uxtw_insn): Rename to ...
11700 (*cs<neg_not_cs>3_uxtw_insn4): and extend to NEG_NOT.
11702 2021-07-19 Richard Biener <rguenther@suse.de>
11704 PR tree-optimization/101505
11705 * tree-vect-patterns.c (vect_determine_precisions): Walk
11706 PHIs also for loop vectorization.
11708 2021-07-19 Richard Biener <rguenther@suse.de>
11710 * gimple.h (gimple_expr_type): Remove.
11711 * doc/gimple.texi: Remove gimple_expr_type documentation.
11713 2021-07-19 Richard Biener <rguenther@suse.de>
11715 * tree-ssa-sccvn.c (vn_reference_eq): Handle NULL vr->type.
11716 (ao_ref_init_from_vn_reference): Likewise.
11717 (fully_constant_reference): Likewise.
11718 (vn_reference_lookup_call): Do not set vr->type to random
11720 * tree-ssa-pre.c (compute_avail): Do not try to PRE calls
11722 * tree-vect-generic.c (expand_vector_piecewise): Pass in
11723 whether we expanded parallel.
11724 (expand_vector_parallel): Adjust.
11725 (expand_vector_addition): Likewise.
11726 (expand_vector_comparison): Likewise.
11727 (expand_vector_operation): Likewise.
11728 (expand_vector_scalar_condition): Likewise.
11729 (expand_vector_conversion): Likewise.
11731 2021-07-19 Richard Biener <rguenther@suse.de>
11733 * tree-vrp.c (register_edge_assert_for_2): Use the
11735 (vrp_folder::fold_predicate_in): Likewise.
11736 * vr-values.c (gimple_assign_nonzero_p): Likewise.
11737 (vr_values::extract_range_from_comparison): Likewise.
11738 (vr_values::extract_range_from_ubsan_builtin): Use the
11739 type of the first operand.
11740 (vr_values::extract_range_basic): Push down type
11741 computation, use the appropriate LHS.
11742 (vr_values::extract_range_from_assignment): Use the
11745 2021-07-18 H.J. Lu <hjl.tools@gmail.com>
11748 * common/config/i386/i386-common.c (ix86_handle_option): For
11749 -mgeneral-regs-only, enable the GPR only instructions which are
11750 enabled implicitly by SSE ISAs unless they have been disabled
11753 2021-07-18 H.J. Lu <hjl.tools@gmail.com>
11756 * config/i386/i386.c (ix86_check_avx_upper_stores): Moved before
11757 ix86_avx_u128_mode_needed.
11758 (ix86_avx_u128_mode_needed): Return AVX_U128_DIRTY if callee
11759 returns AVX register.
11761 2021-07-17 Jan Hubicka <hubicka@ucw.cz>
11763 * tree-ssa-structalias.c (handle_rhs_call): Support EAF_NOT_RETURNED.
11764 (handle_const_call): Liekise
11765 (handle_pure_call): Liekise
11767 2021-07-17 Andrew MacLeod <amacleod@redhat.com>
11769 PR tree-optimization/96542
11770 * range-op.cc (range_operator::wi_fold_in_parts): New.
11771 (range_operator::fold_range): Call wi_fold_in_parts.
11772 (operator_lshift::wi_fold): Fix broken lshift by [0,0].
11773 * range-op.h (wi_fold_in_parts): Add prototype.
11775 2021-07-16 David Malcolm <dmalcolm@redhat.com>
11777 * doc/analyzer.texi: Add __analyzer_dump_state.
11779 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
11781 * config/rs6000/rbtree.c: New file.
11782 * config/rs6000/rbtree.h: New file.
11784 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
11786 * config/rs6000/rs6000-gen-builtins.c (restriction): New enum.
11787 (typeinfo): Add restr field.
11788 (match_bracketed_pair): New function.
11789 (match_const_restriction): Implement.
11791 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
11793 * config/rs6000/rs6000-gen-builtins.c (match_basetype): Implement.
11795 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
11797 * config/rs6000/rs6000-gen-builtins.c (void_status): New enum.
11798 (basetype): Likewise.
11799 (typeinfo): Likewise.
11800 (handle_pointer): New function.
11801 (match_basetype): New stub function.
11802 (match_const_restriction): Likewise.
11803 (match_type): New function.
11805 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
11807 * config/rs6000/rs6000-gen-builtins.c (consume_whitespace): New
11809 (advance_line): Likewise.
11810 (safe_inc_pos): Likewise.
11811 (match_identifier): Likewise.
11812 (match_integer): Likewise.
11813 (match_to_right_bracket): Likewise.
11815 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
11817 * config/rs6000/rs6000-gen-builtins.c (bif_file): New variable.
11818 (ovld_file): Likewise.
11819 (header_file): Likewise.
11820 (init_file): Likewise.
11821 (defines_file): Likewise.
11822 (pgm_path): Likewise.
11823 (bif_path): Likewise.
11824 (ovld_path): Likewise.
11825 (header_path): Likewise.
11826 (init_path): Likewise.
11827 (defines_path): Likewise.
11828 (LINELEN): New macro.
11829 (linebuf): New variable.
11833 (bif_diag): New function.
11834 (ovld_diag): Likewise.
11836 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
11838 * config/rs6000/rs6000-builtin-new.def: New.
11839 * config/rs6000/rs6000-overload.def: New.
11841 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
11843 * config/rs6000/rs6000-gen-builtins.c: New.
11845 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
11847 * Makefile.in (EXTRA_GTYPE_DEPS): New variable.
11848 (s-gtype): Depend on EXTRA_GTYPE_DEPS.
11849 * gengtype-state.c (state_writer::write_state_file_list): Add a
11850 parameter to the fileslist expression for the number of build
11852 (read_state_files_list): Detect build headers and strip the
11853 initial "./" or ".\" from their names.
11854 * gengtype.c (build_headers): New global variable.
11855 (num_build_headers): Likewise.
11856 (open_base_files): Emit #include for each build header.
11857 (main): Detect and count build headers.
11858 * gengtype.h (build_headers): New extern variable.
11859 (num_build_headers): Likewise.
11861 2021-07-16 Richard Biener <rguenther@suse.de>
11863 * gimple-ssa-store-merging.c (verify_symbolic_number_p): Use
11864 the type of the LHS.
11865 (find_bswap_or_nop_1): Likewise.
11866 (find_bswap_or_nop): Likewise.
11867 * tree-vectorizer.h (vect_get_smallest_scalar_type): Adjust
11869 * tree-vect-data-refs.c (vect_get_smallest_scalar_type):
11870 Remove unused parameters, pass in the scalar type. Fix
11871 internal store function handling.
11872 * tree-vect-stmts.c (vect_analyze_stmt): Remove assert.
11873 (vect_get_vector_types_for_stmt): Move down check for
11874 existing vector stmt after we've determined a scalar type.
11875 Pass down the used scalar type to vect_get_smallest_scalar_type.
11876 * tree-vect-generic.c (expand_vector_condition): Use
11877 the type of the LHS.
11878 (expand_vector_scalar_condition): Likewise.
11879 (expand_vector_operations_1): Likewise.
11880 * tree-vect-patterns.c (vect_widened_op_tree): Likewise.
11881 (vect_recog_dot_prod_pattern): Likewise.
11882 (vect_recog_sad_pattern): Likewise.
11883 (vect_recog_widen_op_pattern): Likewise.
11884 (vect_recog_widen_sum_pattern): Likewise.
11885 (vect_recog_mixed_size_cond_pattern): Likewise.
11887 2021-07-16 Jan Hubicka <hubicka@ucw.cz>
11889 * ipa-modref.c (struct escape_entry): Use eaf_fleags_t.
11890 (dump_eaf_flags): Dump EAF_NOT_RETURNED
11891 (eaf_flags_useful_p): Use eaf_fleags_t; handle const functions
11892 and EAF_NOT_RETURNED.
11893 (modref_summary::useful_p): Likewise.
11894 (modref_summary_lto::useful_p): Likewise.
11895 (struct) modref_summary_lto: Use eaf_fleags_t.
11896 (deref_flags): Handle EAF_NOT_RETURNED.
11897 (struct escape_point): Use min_flags.
11898 (modref_lattice::init): Add EAF_NOT_RETURNED.
11899 (merge_call_lhs_flags): Ignore EAF_NOT_RETURNED functions
11900 (analyze_ssa_name_flags): Clear EAF_NOT_RETURNED on return;
11902 (analyze_parms): Also analyze const functions; update conition on
11904 (modref_write): Update streaming.
11905 (read_section): Update streaming.
11906 (remap_arg_flags): Use eaf_flags_t.
11907 (modref_merge_call_site_flags): Hanlde EAF_NOT_RETURNED.
11908 * ipa-modref.h: (eaf_flags_t): New typedef.
11909 (struct modref_summary): Use eaf_flags_t.
11910 * tree-core.h (EAF_NOT_RETURNED): New constant.
11912 2021-07-16 Richard Biener <rguenther@suse.de>
11914 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Use
11915 the type of the LHS.
11916 (gimple_assign_nonnegative_warnv_p): Likewise.
11917 (gimple_call_nonnegative_warnv_p): Likewise. Return false
11918 if the call has no LHS.
11919 * gimple.c (gimple_could_trap_p_1): Use the type of the LHS.
11920 * tree-eh.c (stmt_could_throw_1_p): Likewise.
11921 * tree-inline.c (insert_init_stmt): Likewise.
11922 * tree-ssa-loop-niter.c (get_val_for): Likewise.
11923 * tree-outof-ssa.c (ssa_is_replaceable_p): Use the type of
11925 * tree-ssa-sccvn.c (init_vn_nary_op_from_stmt): Take a
11926 gassign *. Use the type of the lhs.
11927 (vn_nary_op_lookup_stmt): Adjust.
11928 (vn_nary_op_insert_stmt): Likewise.
11930 2021-07-16 Ilya Leoshkevich <iii@linux.ibm.com>
11932 * config/s390/predicates.md (bras_sym_operand): Accept all
11933 functions in 64-bit mode, use UNSPEC_PLT31.
11934 (larl_operand): Use UNSPEC_PLT31.
11935 * config/s390/s390.c (s390_loadrelative_operand_p): Likewise.
11936 (legitimize_pic_address): Likewise.
11937 (s390_emit_tls_call_insn): Mark __tls_get_offset as function,
11939 (s390_delegitimize_address): Use UNSPEC_PLT31.
11940 (s390_output_addr_const_extra): Likewise.
11941 (print_operand): Add @PLT to TLS calls, handle %K.
11942 (s390_function_profiler): Mark __fentry__/_mcount as function,
11943 use %K, use UNSPEC_PLT31.
11944 (s390_output_mi_thunk): Use only UNSPEC_GOT, use %K.
11945 (s390_emit_call): Use UNSPEC_PLT31.
11946 (s390_emit_tpf_eh_return): Mark __tpf_eh_return as function.
11947 * config/s390/s390.md (UNSPEC_PLT31): Rename from UNSPEC_PLT.
11948 (*movdi_64): Use %K.
11949 (reload_base_64): Likewise.
11950 (*sibcall_brc): Likewise.
11951 (*sibcall_brcl): Likewise.
11952 (*sibcall_value_brc): Likewise.
11953 (*sibcall_value_brcl): Likewise.
11955 (*brasl): Likewise.
11956 (*bras_r): Likewise.
11957 (*brasl_r): Likewise.
11958 (*bras_tls): Likewise.
11959 (*brasl_tls): Likewise.
11960 (main_base_64): Likewise.
11961 (reload_base_64): Likewise.
11962 (@split_stack_call<mode>): Likewise.
11964 2021-07-16 Richard Biener <rguenther@suse.de>
11966 PR tree-optimization/101467
11967 * tree-vect-stmts.c (vect_gen_while): Properly guard
11968 make_temp_ssa_name usage.
11970 2021-07-16 Cooper Qu <cooper.qu@linux.alibaba.com>
11972 * config.gcc: Don't use forked print-sysroot-suffix.sh and
11973 t-sysroot-suffix for C-SKY.
11974 * config/csky/print-sysroot-suffix.sh: Delete.
11975 * config/csky/t-csky-linux: Delete.
11976 * config/csky/t-sysroot-suffix: Define MULTILIB_DIRNAMES
11977 instead of CSKY_MULTILIB_DIRNAMES.
11979 2021-07-16 Richard Biener <rguenther@suse.de>
11981 * tree-vect-loop.c (vect_transform_cycle_phi): Correct sign
11982 conversion issues with the partial reduction of the reused
11983 vector accumulator.
11985 2021-07-16 Richard Biener <rguenther@suse.de>
11987 * config/i386/i386-options.c (ix86_option_override_internal): Set
11988 param_vect_partial_vector_usage to zero if not set.
11990 2021-07-15 Uroš Bizjak <ubizjak@gmail.com>
11993 * config/i386/i386.h (VALID_SSE_REG_MODE): Add TDmode.
11994 (VALID_INT_MODE_P): Add SDmode and DDmode.
11995 Add TDmode for TARGET_64BIT.
11996 (VALID_DFP_MODE_P): Remove.
11997 * config/i386/i386.c (ix86_hard_regno_mode_ok):
11998 Do not use VALID_DFP_MODE_P.
12000 2021-07-15 Andrew MacLeod <amacleod@redhat.com>
12002 * gimple-range-fold.cc (adjust_pointer_diff_expr): Use
12004 (fold_using_range::fold_stmt): Ditto.
12005 (fold_using_range::range_of_range_op): Ditto.
12006 (fold_using_range::range_of_phi): Ditto.
12007 (fold_using_range::range_of_call): Ditto.
12008 (fold_using_range::range_of_builtin_ubsan_call): Ditto.
12009 (fold_using_range::range_of_builtin_call): Ditto.
12010 (fold_using_range::range_of_cond_expr): Ditto.
12011 * gimple-range-fold.h (gimple_range_type): New.
12013 2021-07-15 Martin Sebor <msebor@redhat.com>
12015 PR middle-end/97027
12016 * tree-ssa-strlen.c (handle_assign): New function.
12017 (maybe_warn_overflow): Add argument.
12018 (nonzero_bytes_for_type): New function.
12019 (count_nonzero_bytes): Handle more tree types. Call
12020 nonzero_bytes_for_tye.
12021 (count_nonzero_bytes): Handle types.
12022 (handle_store): Handle stores from function calls.
12023 (strlen_check_and_optimize_call): Move code to handle_assign. Call
12024 it for assignments from function calls.
12026 2021-07-15 David Malcolm <dmalcolm@redhat.com>
12031 * doc/invoke.texi: Add -Wanalyzer-use-of-uninitialized-value.
12033 2021-07-15 David Malcolm <dmalcolm@redhat.com>
12035 * doc/invoke.texi (-fdump-analyzer-exploded-paths): New.
12037 2021-07-15 Martin Sebor <msebor@redhat.com>
12041 * fold-const.c (operand_compare::operand_equal_p): Handle OEP_DECL_NAME.
12042 (operand_compare::verify_hash_value): Same.
12043 * tree-core.h (OEP_DECL_NAME): New.
12045 2021-07-15 Martin Jambor <mjambor@suse.cz>
12047 * profile-count.h (profile_count::value): Change the return type to
12049 * gimple-pretty-print.c (dump_gimple_bb_header): Adjust print
12051 * tree-cfg.c (dump_function_to_file): Likewise.
12053 2021-07-15 Bill Schmidt <wschmidt@linux.ibm.com>
12056 * config/rs6000/rs6000-p8swap.c (has_part_mult): New.
12057 (rs6000_analyze_swaps): Insns containing a subreg of a mult are
12060 2021-07-15 Richard Biener <rguenther@suse.de>
12062 * tree-vectorizer.h (vect_gen_while): Match up with
12063 vect_gen_while_not.
12064 * tree-vect-stmts.c (vect_gen_while): Adjust API to that
12065 of vect_gen_while_not.
12066 (vect_gen_while_not): Adjust.
12067 * tree-vect-loop-manip.c (vect_set_loop_controls_directly): Likewise.
12069 2021-07-15 Aldy Hernandez <aldyh@redhat.com>
12071 * gimple-range-cache.cc (non_null_ref::adjust_range): New.
12072 (ranger_cache::range_of_def): Call adjust_range.
12073 (ranger_cache::entry_range): Same.
12074 * gimple-range-cache.h (non_null_ref::adjust_range): New.
12075 * gimple-range.cc (gimple_ranger::range_of_expr): Call
12077 (gimple_ranger::range_on_entry): Same.
12079 2021-07-15 Tamar Christina <tamar.christina@arm.com>
12082 2021-07-14 Tamar Christina <tamar.christina@arm.com>
12084 * config/arm/neon.md (<sup>dot_prod<vsi2qi>): Drop statements.
12086 2021-07-15 Tamar Christina <tamar.christina@arm.com>
12089 2021-07-14 Tamar Christina <tamar.christina@arm.com>
12091 * config/aarch64/aarch64-simd-builtins.def (udot, sdot): Rename to...
12092 (sdot_prod, udot_prod): ...These.
12093 * config/aarch64/aarch64-simd.md (<sur>dot_prod<vsi2qi>): Remove.
12094 (aarch64_<sur>dot<vsi2qi>): Rename to...
12095 (<sur>dot_prod<vsi2qi>): ...This.
12096 * config/aarch64/arm_neon.h (vdot_u32, vdotq_u32, vdot_s32, vdotq_s32):
12099 2021-07-15 Jakub Jelinek <jakub@redhat.com>
12101 PR middle-end/101437
12102 * gimplify.c (gimplify_expr): Throw away volatile reads from empty
12103 types even if they have non-BLKmode TYPE_MODE.
12105 2021-07-15 Richard Biener <rguenther@suse.de>
12108 * gcc.c (process_command): Process -gtoggle like process_options
12109 would after parsing options.
12111 2021-07-15 Trevor Saunders <tbsaunde@tbsaunde.org>
12113 * cfgexpand.c (expand_asm_loc): Adjust.
12114 (expand_asm_stmt): Likewise.
12115 * config/arm/aarch-common-protos.h (arm_md_asm_adjust): Likewise.
12116 * config/arm/aarch-common.c (arm_md_asm_adjust): Likewise.
12117 * config/arm/arm.c (thumb1_md_asm_adjust): Likewise.
12118 * config/avr/avr.c (avr_md_asm_adjust): Likewise.
12119 * config/cris/cris.c (cris_md_asm_adjust): Likewise.
12120 * config/i386/i386.c (ix86_md_asm_adjust): Likewise.
12121 * config/mn10300/mn10300.c (mn10300_md_asm_adjust): Likewise.
12122 * config/nds32/nds32.c (nds32_md_asm_adjust): Likewise.
12123 * config/pdp11/pdp11.c (pdp11_md_asm_adjust): Likewise.
12124 * config/rs6000/rs6000.c (rs6000_md_asm_adjust): Likewise.
12125 * config/s390/s390.c (s390_md_asm_adjust): Likewise.
12126 * config/vax/vax.c (vax_md_asm_adjust): Likewise.
12127 * config/visium/visium.c (visium_md_asm_adjust): Likewise.
12128 * doc/tm.texi: Regenerate.
12129 * target.def: Add location argument to md_asm_adjust.
12131 2021-07-15 Trevor Saunders <tbsaunde@tbsaunde.org>
12133 * tree-diagnostic.c (diagnostic_report_current_function): Use the
12134 diagnostic's location, not input_location.
12136 2021-07-15 Trevor Saunders <tbsaunde@tbsaunde.org>
12138 * cfgexpand.c (tree_conflicts_with_clobbers_p): Pass location to
12140 (expand_asm_stmt): Likewise.
12142 2021-07-14 Peter Bergner <bergner@linux.ibm.com>
12144 * config/rs6000/rs6000.c (adjacent_mem_locations): Return the lower
12145 addressed memory rtx, if any.
12146 (rs6000_split_multireg_move): Fix code formatting.
12147 Handle MMA build built-ins with operands in adjacent memory locations.
12149 2021-07-14 Peter Bergner <bergner@linux.ibm.com>
12151 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Move to later
12154 2021-07-14 Jason Merrill <jason@redhat.com>
12156 * sel-sched-ir.h (get_all_loop_exits): Use auto_vec.
12158 2021-07-14 Jason Merrill <jason@redhat.com>
12160 * doc/invoke.texi: -fdelete-dead-exceptions is on by default for
12163 2021-07-14 Tamar Christina <tamar.christina@arm.com>
12165 * tree-vect-patterns.c (vect_recog_dot_prod_pattern):
12166 Remove erroneous line.
12168 2021-07-14 Andrew MacLeod <amacleod@redhat.com>
12170 * params.opt (param_evrp_mode): Change default.
12172 2021-07-14 Tamar Christina <tamar.christina@arm.com>
12174 * config/aarch64/aarch64-simd-builtins.def (udot, sdot): Rename to...
12175 (sdot_prod, udot_prod): ...These.
12176 * config/aarch64/aarch64-simd.md (<sur>dot_prod<vsi2qi>): Remove.
12177 (aarch64_<sur>dot<vsi2qi>): Rename to...
12178 (<sur>dot_prod<vsi2qi>): ...This.
12179 * config/aarch64/arm_neon.h (vdot_u32, vdotq_u32, vdot_s32, vdotq_s32):
12182 2021-07-14 Tamar Christina <tamar.christina@arm.com>
12184 * config/arm/neon.md (<sup>dot_prod<vsi2qi>): Drop statements.
12186 2021-07-14 Tamar Christina <tamar.christina@arm.com>
12188 * doc/sourcebuild.texi (arm_v8_2a_i8mm_neon_hw): Document.
12190 2021-07-14 Tamar Christina <tamar.christina@arm.com>
12192 * config/arm/neon.md (usdot_prod<vsi2qi>): New.
12194 2021-07-14 Tamar Christina <tamar.christina@arm.com>
12196 * config/aarch64/aarch64-simd.md (aarch64_usdot<vsi2qi>): Rename to...
12197 (usdot_prod<vsi2qi>): ... This.
12198 * config/aarch64/aarch64-simd-builtins.def (usdot): Rename to...
12199 (usdot_prod): ...This.
12200 * config/aarch64/arm_neon.h (vusdot_s32, vusdotq_s32): Likewise.
12201 * config/aarch64/aarch64-sve.md (@aarch64_<sur>dot_prod<vsi2qi>):
12203 (@<sur>dot_prod<vsi2qi>): ...This.
12204 * config/aarch64/aarch64-sve-builtins-base.cc
12205 (svusdot_impl::expand): Use it.
12207 2021-07-14 Tamar Christina <tamar.christina@arm.com>
12209 * optabs.def (usdot_prod_optab): New.
12210 * doc/md.texi: Document it and clarify other dot prod optabs.
12211 * optabs-tree.h (enum optab_subtype): Add optab_vector_mixed_sign.
12212 * optabs-tree.c (optab_for_tree_code): Support usdot_prod_optab.
12213 * optabs.c (expand_widen_pattern_expr): Likewise.
12214 * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
12215 * tree-vect-loop.c (vectorizable_reduction): Query dot-product kind.
12216 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Take optional
12218 (vect_widened_op_tree): Optionally ignore
12220 (vect_recog_dot_prod_pattern): Support usdot_prod_optab.
12222 2021-07-14 H.J. Lu <hjl.tools@gmail.com>
12225 * config/i386/driver-i386.c (host_detect_local_cpu): Check
12226 "arch [32|64]" and "tune [32|64]" for 32-bit and 64-bit codegen.
12227 Enable UINTR only for 64-bit codegen.
12228 * config/i386/i386-options.c
12229 (ix86_option_override_internal::DEF_PTA): Skip PTA_UINTR if not
12231 * config/i386/i386.h (ARCH_ARG): New.
12232 (CC1_CPU_SPEC): Pass "[arch|tune] 32" for 32-bit codegen and
12233 "[arch|tune] 64" for 64-bit codegen.
12235 2021-07-14 Richard Biener <rguenther@suse.de>
12237 PR tree-optimization/101445
12238 * tree-vect-stmts.c (vectorizable_load): Do the gap adjustment
12239 of the IV in the correct direction for negative stride
12242 2021-07-14 Jakub Jelinek <jakub@redhat.com>
12245 * godump.c (godump_str_hash): New type.
12246 (godump_container::pot_dummy_types): Use string_hash instead of
12247 ptr_hash in the hash_set.
12249 2021-07-14 Richard Biener <rguenther@suse.de>
12251 * tree-vect-loop.c (vect_find_reusable_accumulator): Handle
12252 vector types where the old vector type has a multiple of
12253 the new vector type elements.
12254 (vect_create_partial_epilog): New function, split out from...
12255 (vect_create_epilog_for_reduction): ... here.
12256 (vect_transform_cycle_phi): Reduce the re-used accumulator
12257 to the new vector type.
12259 2021-07-14 Alexandre Oliva <oliva@adacore.com>
12261 * tree-ssa-alias.c (attr_fnspec::verify): Fix index in
12262 non-'t'-sized arg check.
12264 2021-07-14 Alexandre Oliva <oliva@adacore.com>
12266 * tree-cfg.c (cleanup_dead_labels_eh): Update
12267 post_landing_pad label upon change of landing pad block's
12269 (cleanup_dead_labels): Check that a removed label is not that
12272 2021-07-13 Jonathan Wright <jonathan.wright@arm.com>
12274 * combine.c (combine_simplify_rtx): Add vec_select -> subreg
12276 * config/aarch64/aarch64.md (*zero_extend<SHORT:mode><GPI:mode>2_aarch64):
12277 Add Neon to general purpose register case for zero-extend
12279 * config/arm/vfp.md (*arm_movsi_vfp): Remove "*" from *t -> r
12280 case to prevent some cases opting to go through memory.
12281 * cse.c (fold_rtx): Add vec_select -> subreg simplification.
12282 * rtl.c (rtvec_series_p): Define predicate to determine
12283 whether a vector contains a linear series of integers.
12284 * rtl.h (rtvec_series_p): Define.
12285 * rtlanal.c (vec_series_lowpart_p): Define predicate to
12286 determine if a vector selection is equivalent to the low part
12288 * rtlanal.h (vec_series_lowpart_p): Define.
12289 * simplify-rtx.c (simplify_context::simplify_binary_operation_1):
12290 Add vec_select -> subreg simplification.
12292 2021-07-13 Paul A. Clarke <pc@us.ibm.com>
12294 * config/rs6000/smmintrin.h (_mm_testz_si128, _mm_testc_si128,
12295 _mm_testnzc_si128, _mm_test_all_ones, _mm_test_all_zeros,
12296 _mm_test_mix_ones_zeros): New.
12298 2021-07-13 Roger Sayle <roger@nextmovesoftware.com>
12299 Richard Biener <rguenther@suse.de>
12301 * gimple.c (gimple_could_trap_p_1): Make S argument a
12302 "const gimple*". Preserve constness in call to
12303 gimple_asm_volatile_p.
12304 (gimple_could_trap_p): Make S argument a "const gimple*".
12305 * gimple.h (gimple_could_trap_p_1, gimple_could_trap_p):
12306 Update function prototypes.
12308 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
12310 * tree-vectorizer.h (vect_reusable_accumulator): New structure.
12311 (_loop_vec_info::main_loop_edge): New field.
12312 (_loop_vec_info::skip_main_loop_edge): Likewise.
12313 (_loop_vec_info::skip_this_loop_edge): Likewise.
12314 (_loop_vec_info::reusable_accumulators): Likewise.
12315 (_stmt_vec_info::reduc_scalar_results): Likewise.
12316 (_stmt_vec_info::reused_accumulator): Likewise.
12317 (vect_get_main_loop_result): Declare.
12318 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
12319 reduc_scalar_inputs.
12320 (vec_info::free_stmt_vec_info): Free reduc_scalar_inputs.
12321 * tree-vect-loop-manip.c (vect_get_main_loop_result): New function.
12322 (vect_do_peeling): Fill an epilogue loop's main_loop_edge,
12323 skip_main_loop_edge and skip_this_loop_edge fields.
12324 * tree-vect-loop.c (INCLUDE_ALGORITHM): Define.
12325 (vect_emit_reduction_init_stmts): New function.
12326 (get_initial_def_for_reduction): Use it.
12327 (get_initial_defs_for_reduction): Likewise. Change the vinfo
12328 parameter to a loop_vec_info.
12329 (vect_create_epilog_for_reduction): Store the scalar results
12330 in the reduc_info. If an epilogue loop is reusing an accumulator
12331 from the main loop, and if the epilogue loop can also be skipped,
12332 try to place the reduction code in the join block. Record
12333 accumulators that could potentially be reused by epilogue loops.
12334 (vect_transform_cycle_phi): When vectorizing epilogue loops,
12335 try to reuse accumulators from the main loop. Record the initial
12336 value in reduc_info for non-SLP reductions too.
12338 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
12340 * tree-vect-loop.c (get_initial_def_for_reduction): Remove
12341 adjustment handling. Take the neutral value as an argument,
12342 in place of the code argument.
12343 (vect_transform_cycle_phi): Update accordingly. Handle the
12344 initial values of cond reductions separately from code reductions.
12345 Choose the adjustment here rather than in
12346 get_initial_def_for_reduction. Sink the splat of vec_initial_def.
12348 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
12350 * tree-vect-loop.c (neutral_op_for_slp_reduction): Replace with...
12351 (neutral_op_for_reduction): ...this, providing a more general
12353 (vect_create_epilog_for_reduction): Update accordingly.
12354 (vectorizable_reduction): Likewise.
12355 (vect_transform_cycle_phi): Likewise.
12357 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
12359 * tree-vect-loop.c (get_initial_def_for_reduction): Take the
12360 reduc_info instead of the original stmt_vec_info.
12361 (vect_transform_cycle_phi): Update accordingly.
12363 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
12365 * tree-vect-loop.c (get_initial_defs_for_reduction): Take the
12366 reduc_info as an additional parameter.
12367 (vect_transform_cycle_phi): Update accordingly.
12369 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
12371 * tree-vectorizer.h: Include tree-ssa-operands.h.
12372 (vect_phi_initial_value): New function.
12373 * tree-vect-loop.c (neutral_op_for_slp_reduction): Use it.
12374 (get_initial_defs_for_reduction, info_for_reduction): Likewise.
12375 (vect_create_epilog_for_reduction, vectorizable_reduction): Likewise.
12376 (vect_transform_cycle_phi, vectorizable_induction): Likewise.
12378 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
12380 * tree-vect-loop.c (vect_create_epilog_for_reduction): Convert
12381 the phi results to vectype after creating them. Remove later
12382 conversion code that thus becomes redundant.
12384 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
12386 * tree-vect-loop.c (vect_create_epilog_for_reduction): Replace
12387 the new_phis vector with a reduc_inputs vector. Combine handling
12388 of reduction chains and ncopies > 1.
12390 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
12392 * tree-vect-loop.c (vect_create_epilog_for_reduction): Truncate
12393 scalar_results to group_size elements after reducing down from
12394 N*group_size elements. Construct an array_slice of the live-out
12395 stmts and assert that there is one stmt per scalar result.
12397 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
12399 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
12400 nested_in_vect_loop and use double_reduc everywhere. Remove dead
12401 assignment to "loop".
12403 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
12405 * internal-fn.c (vectorized_internal_fn_supported_p): Handle
12406 vector types first. For scalar types, consider both the preferred
12407 vector mode and the alternative vector modes.
12408 * optabs-query.c (can_vec_mask_load_store_p): Use the same
12409 structure as above, in particular using related_vector_mode
12410 for modes provided by autovectorize_vector_modes.
12412 2021-07-13 Jakub Jelinek <jakub@redhat.com>
12413 Richard Biener <rguenther@suse.de>
12415 PR tree-optimization/101419
12416 * tree-pass.h (PROP_objsz): Define.
12417 (make_pass_early_object_sizes): Declare.
12418 * passes.def (pass_all_early_optimizations): Rename pass_object_sizes
12419 there to pass_early_object_sizes, drop parameter.
12420 (pass_all_optimizations): Move pass_object_sizes right after pass_ccp,
12421 drop parameter, move pass_post_ipa_warn right after that.
12422 * tree-object-size.c (pass_object_sizes::execute): Rename to...
12423 (object_sizes_execute): ... this. Add insert_min_max_p argument.
12424 (pass_data_object_sizes): Move after object_sizes_execute.
12425 (pass_object_sizes): Likewise. In execute method call
12426 object_sizes_execute, drop set_pass_param method and insert_min_max_p
12427 non-static data member and its initializer in the ctor.
12428 (pass_data_early_object_sizes, pass_early_object_sizes,
12429 make_pass_early_object_sizes): New.
12430 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use
12431 (cfun->curr_properties & PROP_objsz) instead of cfun->after_inlining.
12433 2021-07-13 Kito Cheng <kito.cheng@sifive.com>
12436 * config/riscv/constraints.md ("S"): Update description and remove
12438 * doc/md.texi (Machine Constraints): Document the 'S' constraints
12441 2021-07-13 Richard Biener <rguenther@suse.de>
12444 2021-07-12 Richard Biener <rguenther@suse.de>
12446 * tree-vect-slp.c (vect_slp_region): Show the number of
12447 SLP graph entries in the optimization message.
12449 2021-07-13 Michael Meissner <meissner@linux.ibm.com>
12451 * config/rs6000/altivec.md (xxspltiw_v4sf): Change local variable
12453 * config/rs6000/rs6000-protos.h (rs6000_const_f32_to_i32): Change
12454 return type to long.
12455 * config/rs6000/rs6000.c (rs6000_const_f32_to_i32): Change return
12458 2021-07-12 Andrew MacLeod <amacleod@redhat.com>
12460 * gimple-range-fold.cc (fold_using_range::range_of_builtin_ubsan_call):
12461 Query relation between the 2 operands and use it.
12463 2021-07-12 Sergei Trofimovich <siarheit@google.com>
12465 * doc/cfg.texi: Fix s/ei_safe_safe/ei_safe_edge/ typo.
12467 2021-07-12 Uroš Bizjak <ubizjak@gmail.com>
12470 * config/i386/predicates.md (vec_setm_sse41_operand):
12471 Rename from vec_setm_operand.
12472 (vec_setm_avx2_operand): New predicate.
12473 * config/i386/sse.md (vec_set<V_128:mode>): Use V_128 mode iterator.
12474 Use vec_setm_sse41_operand as operand 2 predicate.
12475 (vec_set<V_256_512:mode): New expander.
12476 * config/i386/mmx.md (vec_setv2hi): Use vec_setm_sse41_operand
12477 as operand 2 predicate.
12479 2021-07-12 Andrew MacLeod <amacleod@redhat.com>
12481 PR tree-optimization/101335
12482 * range-op.cc (operator_cast::lhs_op1_relation): Delete.
12484 2021-07-12 Andrew Pinski <apinski@marvell.com>
12486 * tree-ssa-phiopt.c (match_simplify_replacement): Move
12487 insert of the sequence before the movement of the
12488 statement. Check if to see if the statement is used
12489 outside of the original phi to see if we should move it.
12491 2021-07-12 Richard Biener <rguenther@suse.de>
12493 * dump-context.h (debug_dump_context::debug_dump_context):
12494 Add FILE * parameter defaulted to stderr.
12495 * dumpfile.c (debug_dump_context::debug_dump_context): Adjust.
12496 * tree-vect-slp.c (dot_slp_tree): New functions.
12498 2021-07-12 Richard Biener <rguenther@suse.de>
12500 PR tree-optimization/101373
12501 * tree-ssa-pre.c (prune_clobbered_mems): Also prune trapping
12502 references when the BB may not return.
12503 (compute_avail): Pass in the function we're working on and
12504 replace cfun references with it. Externally throwing
12505 const calls also possibly terminate the function.
12506 (pass_pre::execute): Pass down the function we're working on.
12507 * gcse.c (compute_hash_table_work): Externally throwing
12508 const/pure calls also need record_last_mem_set_info.
12509 * postreload-gcse.c (record_opr_changes): Looping or externally
12510 throwing const/pure calls also need record_last_mem_set_info.
12512 2021-07-12 Uroš Bizjak <ubizjak@gmail.com>
12514 * recog.c (memory_address_addr_space_p): Change the type to bool.
12515 Return true/false instead of 1/0.
12516 (offsettable_memref_p): Ditto.
12517 (offsettable_nonstrict_memref_p): Ditto.
12518 (offsettable_address_addr_space_p): Ditto.
12519 Change the type of addressp indirect function to bool.
12520 * recog.h (memory_address_addr_space_p): Change the type to bool.
12521 (strict_memory_address_addr_space_p): Ditto.
12522 (offsettable_memref_p): Ditto.
12523 (offsettable_nonstrict_memref_p): Ditto.
12524 (offsettable_address_addr_space_p): Ditto.
12525 * reload.c (maybe_memory_address_addr_space_p): Ditto.
12526 (strict_memory_address_addr_space_p): Change the type to bool.
12527 Return true/false instead of 1/0.
12528 (maybe_memory_address_addr_space_p): Change the type to bool.
12530 2021-07-12 Richard Biener <rguenther@suse.de>
12532 * tree-vect-slp.c (vect_slp_region): Show the number of
12533 SLP graph entries in the optimization message.
12535 2021-07-12 Richard Biener <rguenther@suse.de>
12537 PR tree-optimization/101394
12538 * tree-ssa-pre.c (do_pre_regular_insertion): Avoid inserting
12539 copies from abnormals for a full redundancy.
12541 2021-07-12 Richard Biener <rguenther@suse.de>
12543 PR middle-end/101423
12544 * gimple.c (gimple_could_trap_p_1): Internal function calls
12546 * tree-eh.c (tree_could_trap_p): Likewise.
12548 2021-07-12 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
12551 * config/arm/arm_neon.h (vmul_n_u32): Replace call to builtin with
12553 (vmulq_n_u32): Likewise.
12554 (vmul_n_f32): Gate __a * __b on __FAST_MATH__.
12555 (vmulq_n_f32): Likewise.
12556 (vmul_n_f16): Likewise.
12557 (vmulq_n_f16): Likewise.
12559 2021-07-12 Martin Liska <mliska@suse.cz>
12561 PR sanitizer/101425
12562 * gcc.c (check_offload_target_name): Call
12563 candidates_list_and_hint only if we have a candidate.
12565 2021-07-12 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
12568 * config/arm/neon.md (vec_init): Move to ...
12569 * config/arm/vec-common.md (vec_init): ... here.
12570 Change the pattern's mode to VDQX and gate it on VALID_MVE_MODE.
12572 2021-07-12 Roger Sayle <roger@nextmovesoftware.com>
12574 PR tree-optimization/101403
12575 * match.pd ((T)bswap(X)>>C): Correctly handle cases where
12576 signedness of the shift is not the same as the signedness of
12577 the type extension.
12579 2021-07-09 Roger Sayle <roger@nextmovesoftware.com>
12580 Uroš Bizjak <ubizjak@gmail.com>
12582 * config/i386/i386.md (*divmodsi4_const): Optimize SImode
12583 divmod of a constant numerator with new define_insn_and_split.
12585 2021-07-09 Iain Sandoe <iain@sandoe.co.uk>
12588 * config/i386/i386-expand.c (ix86_expand_call): If a call is
12589 to a non-local-binding, or local but to a public symbol, then
12590 assume that it might be indirected via the lazy symbol binder.
12591 Mark R10 and R10 as clobbered in that case.
12593 2021-07-09 Eric Botcazou <ebotcazou@adacore.com>
12596 * gcc.c (ASM_DEBUG_DWARF_OPTION): Set again to --gdwarf2 in
12597 the case where HAVE_AS_WORKING_DWARF_N_FLAG is not defined
12598 and HAVE_LD_BROKEN_PE_DWARF5 is defined.
12600 2021-07-09 Uroš Bizjak <ubizjak@gmail.com>
12602 * config/i386/i386.md (*udivmodsi4_pow2_zext_1): Limit the
12603 log2 range of operands[3] to [1,31].
12604 (*udivmodsi4_pow2_zext_2): Ditto. Correct insn RTX pattern.
12606 2021-07-09 Sergei Trofimovich <siarheit@google.com>
12608 * doc/md.texi: Don't split @smallexample in multiple @groups.
12610 2021-07-09 Sergei Trofimovich <siarheit@google.com>
12612 * doc/md.texi: Add missing 'see' word.
12614 2021-07-09 Andrew Pinski <apinski@marvell.com>
12616 * tree-ssa-phiopt.c (phiopt_early_allow): Change arguments
12617 to take sequence and gimple_match_op. Accept the case where
12618 op is a SSA_NAME and one statement in the sequence.
12619 Also allow constants.
12620 (gimple_simplify_phiopt): Always pass a sequence to resimplify.
12621 Update call to phiopt_early_allow. Discard the sequence if not
12624 2021-07-09 Xi Ruoyao <xry111@mengyan1223.wang>
12629 * config/mips/mips.c (mips_const_insns): Use MSA_SUPPORTED_MODE_P
12630 instead of ISA_HAS_MSA.
12631 (mips_expand_vec_unpack): Likewise.
12632 (mips_expand_vector_init): Likewise.
12634 2021-07-09 Kewen Lin <linkw@linux.ibm.com>
12636 * config/rs6000/vsx.md (mods_<mode>): Rename to...
12637 (mod<mode>3): ... this.
12638 (modu_<mode>): Rename to...
12639 (umod<mode>3): ... this.
12640 * config/rs6000/rs6000-builtin.def (MODS_V2DI, MODS_V4SI, MODU_V2DI,
12641 MODU_V4SI): Adjust.
12643 2021-07-08 Jeff Law <jeffreyalaw@gmail.com>
12645 * config/h8300/shiftrotate.md (variable shifts): Expose condition
12646 code handling for the test before the loop.
12648 2021-07-08 Martin Jambor <mjambor@suse.cz>
12651 * ipa-sra.c (class isra_call_summary): New member
12652 m_before_any_store, initialize it in the constructor.
12653 (isra_call_summary::dump): Dump the new field.
12654 (ipa_sra_call_summaries::duplicate): Copy it.
12655 (process_scan_results): Set it.
12656 (isra_write_edge_summary): Stream it.
12657 (isra_read_edge_summary): Likewise.
12658 (param_splitting_across_edge): Only override
12659 safe_to_import_accesses if m_before_any_store is set.
12661 2021-07-08 Martin Sebor <msebor@redhat.com>
12663 PR bootstrap/101374
12664 * gimple-array-bounds.cc (array_bounds_checker::check_mem_ref):
12665 Use Object Size Type 0 instead of 1.
12667 2021-07-08 Richard Sandiford <richard.sandiford@arm.com>
12669 * tree-vect-loop.c (vectorizable_reduction): Remove always-true
12672 2021-07-08 Richard Sandiford <richard.sandiford@arm.com>
12674 * match.pd: Simplify an extend-operate-truncate sequence involving
12677 2021-07-08 Roger Sayle <roger@nextmovesoftware.com>
12678 Richard Biener <rguenther@suse.de>
12680 PR tree-optimization/40210
12681 * match.pd (bswap optimizations): Simplify (bswap(x)>>C1)&C2 as
12682 (x>>C3)&C2 when possible. Simplify bswap(x)>>C1 as ((T)x)>>C2
12683 when possible. Simplify bswap(x)&C1 as (x>>C2)&C1 when 0<=C1<=255.
12685 2021-07-08 Uroš Bizjak <ubizjak@gmail.com>
12688 * config/i386/i386-expand.c (ix86_expand_sse_unpack):
12690 * config/i386/mmx.md (V_32): New mode iterator.
12691 (mov<V_32:mode>): Use V_32 mode iterator.
12692 (*mov<V_32:mode>_internal): Ditto.
12693 (*push<V_32:mode>2_rex64): Ditto.
12694 (*push<V_32:mode>2): Ditto.
12695 (movmisalign<V_32:mode>): Ditto.
12696 (mmx_<any_shiftrt:insn>v1si3): New insn pattern.
12697 (sse4_1_<any_extend:code>v2qiv2hi2): Ditto.
12698 (vec_unpacks_lo_v4qi): New expander.
12699 (vec_unpacks_hi_v4qi): Ditto.
12700 (vec_unpacku_lo_v4qi): Ditto.
12701 (vec_unpacku_hi_v4qi): Ditto.
12702 * config/i386/i386.h (VALID_SSE2_REG_MODE): Add V1SImode.
12703 (VALID_INT_MODE_P): Ditto.
12705 2021-07-08 Michael Meissner <meissner@linux.ibm.com>
12708 * config/rs6000/rs6000.md (udivti3): New insn.
12709 (divti3): New insn.
12710 (umodti3): New insn.
12711 (modti3): New insn.
12713 2021-07-07 Martin Sebor <msebor@redhat.com>
12715 PR tree-optimization/100137
12716 PR tree-optimization/99121
12717 PR tree-optimization/97027
12718 * builtins.c (access_ref::access_ref): Also set offmax.
12719 (access_ref::offset_in_range): Define new function.
12720 (access_ref::add_offset): Set offmax.
12721 (access_ref::inform_access): Handle access_none.
12722 (handle_mem_ref): Clear ostype.
12723 (compute_objsize_r): Handle ASSERT_EXPR.
12724 * builtins.h (struct access_ref): Add offmax member.
12725 * gimple-array-bounds.cc (array_bounds_checker::check_mem_ref): Use
12726 compute_objsize() and simplify.
12728 2021-07-07 Peter Bergner <bergner@linux.ibm.com>
12730 * config/rs6000/rs6000-call.c (mma_init_builtins): Use VSX_BUILTIN_LXVP
12731 and VSX_BUILTIN_STXVP.
12733 2021-07-07 Martin Sebor <msebor@redhat.com>
12736 * config/aarch64/aarch64.c (aarch64_simd_lane_bounds): Remove
12737 a stray %K from error_at() missed in r12-2088.
12739 2021-07-07 Richard Biener <rguenther@suse.de>
12741 PR tree-optimization/99728
12742 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Record
12744 (mem_refs_may_alias_p): Add assert we handled aggregate
12746 (sm_seq_valid_bb): Give up when running into aggregate copies.
12747 (ref_indep_loop_p): Handle aggregate copies as never
12748 being invariant themselves but allow other refs to be
12749 disambiguated against them.
12750 (can_sm_ref_p): Do not try to apply store-motion to aggregate
12753 2021-07-06 Indu Bhagat <indu.bhagat@oracle.com>
12756 * dwarf2ctf.c (ctf_get_AT_data_member_location): Multiply by 8 to get
12759 2021-07-06 Martin Sebor <msebor@redhat.com>
12761 * gimple-pretty-print.c (percent_G_format): Remove.
12762 * tree-diagnostic.c (default_tree_printer): Remove calls.
12763 * tree-pretty-print.c (percent_K_format): Remove.
12764 * tree-pretty-print.h (percent_K_format): Remove.
12766 2021-07-06 Martin Sebor <msebor@redhat.com>
12768 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
12769 Remove %K and use error_at.
12770 (aarch64_expand_fcmla_builtin): Same.
12771 (aarch64_expand_builtin_tme): Same.
12772 (aarch64_expand_builtin_memtag): Same.
12773 * config/arm/arm-builtins.c (arm_expand_acle_builtin): Same.
12774 (arm_expand_builtin): Same.
12775 * config/arm/arm.c (bounds_check): Same.
12777 2021-07-06 Martin Sebor <msebor@redhat.com>
12779 * builtins.c (warn_string_no_nul): Remove %G.
12780 (maybe_warn_for_bound): Same.
12781 (warn_for_access): Same.
12782 (check_access): Same.
12783 (check_strncat_sizes): Same.
12784 (expand_builtin_strncat): Same.
12785 (expand_builtin_strncmp): Same.
12786 (expand_builtin): Same.
12787 (expand_builtin_object_size): Same.
12788 (warn_dealloc_offset): Same.
12789 (maybe_emit_free_warning): Same.
12790 * calls.c (maybe_warn_alloc_args_overflow): Same.
12791 (maybe_warn_nonstring_arg): Same.
12792 (maybe_warn_rdwr_sizes): Same.
12793 * expr.c (expand_expr_real_1): Remove %K.
12794 * gimple-fold.c (gimple_fold_builtin_strncpy): Remove %G.
12795 (gimple_fold_builtin_strncat): Same.
12796 * gimple-ssa-sprintf.c (format_directive): Same.
12797 (handle_printf_call): Same.
12798 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Same.
12799 * gimple-ssa-warn-restrict.c (maybe_diag_overlap): Same.
12800 (maybe_diag_access_bounds): Same. Call gimple_location.
12801 (check_bounds_or_overlap): Same.
12802 * trans-mem.c (ipa_tm_scan_irr_block): Remove %K. Simplify.
12803 * tree-ssa-ccp.c (pass_post_ipa_warn::execute): Remove %G.
12804 * tree-ssa-strlen.c (maybe_warn_overflow): Same.
12805 (maybe_diag_stxncpy_trunc): Same.
12806 (handle_builtin_stxncpy_strncat): Same.
12807 (maybe_warn_pointless_strcmp): Same.
12808 * tree-ssa-uninit.c (maybe_warn_operand): Same.
12810 2021-07-06 Uroš Bizjak <ubizjak@gmail.com>
12813 * config/i386/predicates.md (vec_setm_operand): Enable
12814 register_operand for TARGET_SSE4_1.
12815 * config/i386/mmx.md (vec_setv2hi): Use vec_setm_operand
12816 as operand 2 predicate. Call ix86_expand_vector_set_var
12817 for non-constant index operand.
12818 (vec_setv4qi): Use vec_setm_mmx_operand as operand 2 predicate.
12819 Call ix86_expand_vector_set_var for non-constant index operand.
12821 2021-07-06 Jeff Law <jeffreyalaw@gmail.com>
12823 * config/h8300/jumpcall.md (*branch): When possible, generate
12824 the comparison in CCZN mode.
12825 * config/h8300/predicates.md (simple_memory_operand): Reject all
12826 auto-increment addressing modes.
12828 2021-07-06 Iain Sandoe <iain@sandoe.co.uk>
12830 PR bootstrap/100246
12831 * config/i386/i386.h (struct stringop_algs): Define a CTOR for
12834 2021-07-06 Richard Biener <rguenther@suse.de>
12836 * doc/md.texi (vec_fmaddsub<mode>4): Document.
12837 (vec_fmsubadd<mode>4): Likewise.
12838 * optabs.def (vec_fmaddsub$a4): Add.
12839 (vec_fmsubadd$a4): Likewise.
12840 * internal-fn.def (IFN_VEC_FMADDSUB): Add.
12841 (IFN_VEC_FMSUBADD): Likewise.
12842 * tree-vect-slp-patterns.c (addsub_pattern::recognize):
12843 Refactor to handle IFN_VEC_FMADDSUB and IFN_VEC_FMSUBADD.
12844 (addsub_pattern::build): Likewise.
12845 * tree-vect-slp.c (vect_optimize_slp): CFN_VEC_FMADDSUB
12846 and CFN_VEC_FMSUBADD are not transparent for permutes.
12847 * config/i386/sse.md (vec_fmaddsub<mode>4): New expander.
12848 (vec_fmsubadd<mode>4): Likewise.
12850 2021-07-06 Richard Biener <rguenther@suse.de>
12852 * doc/invoke.texi (fmove-loop-stores): Document.
12853 * common.opt (fmove-loop-stores): New option.
12854 * opts.c (default_options_table): Enable -fmove-loop-stores
12855 at -O1 but not -Og.
12856 * tree-ssa-loop-im.c (pass_lim::execute): Pass
12857 flag_move_loop_stores instead of true to
12858 loop_invariant_motion_in_fun.
12860 2021-07-06 Iain Sandoe <iain@sandoe.co.uk>
12862 * doc/install.texi: Document --with-dsymutil.
12864 2021-07-06 Andrew Pinski <apinski@marvell.com>
12866 PR tree-optimization/101256
12867 * dbgcnt.def (phiopt_edge_range): New counter.
12868 * tree-ssa-phiopt.c (replace_phi_edge_with_variable):
12869 Check to make sure the new name is defined in the same
12870 bb as the conditional before duplicating range info.
12871 Also add debug counter.
12873 2021-07-06 Kewen Lin <linkw@linux.ibm.com>
12875 PR rtl-optimization/100328
12876 * config/i386/i386-options.c (ix86_option_override_internal):
12877 Set param_ira_consider_dup_in_all_alts to 0.
12879 2021-07-06 Kewen Lin <linkw@linux.ibm.com>
12881 PR rtl-optimization/100328
12882 * doc/invoke.texi (ira-consider-dup-in-all-alts): Document new
12884 * ira.c (ira_get_dup_out_num): Adjust as parameter
12885 param_ira_consider_dup_in_all_alts.
12886 * params.opt (ira-consider-dup-in-all-alts): New.
12887 * ira-conflicts.c (process_regs_for_copy): Add one parameter
12888 single_input_op_has_cstr_p.
12889 (get_freq_for_shuffle_copy): New function.
12890 (add_insn_allocno_copies): Adjust as single_input_op_has_cstr_p.
12891 * ira-int.h (ira_get_dup_out_num): Add one bool parameter.
12893 2021-07-05 Jeff Law <jeffreyalaw@gmail.com>
12895 * config/h8300/shiftrotate.md (shift-by-variable patterns): Update to
12896 generate condition code aware RTL directly.
12898 2021-07-05 Andrew Pinski <apinski@marvell.com>
12900 PR tree-optimization/101039
12901 * match.pd (A CMP 0 ? A : -A): New patterns.
12902 * tree-ssa-phiopt.c (abs_replacement): Delete function.
12903 (tree_ssa_phiopt_worker): Don't call abs_replacement.
12904 Update comment about abs_replacement.
12906 2021-07-05 Andrew Pinski <apinski@marvell.com>
12908 * tree-ssa-phiopt.c (gimple_simplify_phiopt):
12909 If "A ? B : C" fails to simplify, try "(!A) ? C : B".
12911 2021-07-05 Andrew Pinski <apinski@marvell.com>
12913 * tree-ssa-phiopt.c (match_simplify_replacement):
12914 Add early_p argument. Call gimple_simplify_phiopt
12915 instead of gimple_simplify.
12916 (tree_ssa_phiopt_worker): Update call to
12917 match_simplify_replacement and allow unconditionally.
12918 (phiopt_early_allow): New function.
12919 (gimple_simplify_phiopt): New function.
12921 2021-07-05 Andrew Pinski <apinski@marvell.com>
12923 PR middle-end/101237
12924 * fold-const.c (negate_expr_p): Remove call to element_mode
12925 and TREE_MODE/TREE_TYPE when calling HONOR_SIGNED_ZEROS,
12926 HONOR_SIGN_DEPENDENT_ROUNDING, and HONOR_SNANS.
12927 (fold_negate_expr_1): Likewise.
12928 (const_unop): Likewise.
12929 (fold_cond_expr_with_comparison): Likewise.
12930 (fold_binary_loc): Likewise.
12931 (fold_ternary_loc): Likewise.
12932 (tree_call_nonnegative_warnv_p): Likewise.
12933 * match.pd (-(A + B) -> (-B) - A): Likewise.
12935 2021-07-05 Iain Sandoe <iain@sandoe.co.uk>
12937 * configure.ac: Handle --with-dsymutil in the same way as we
12938 do for the assembler and linker. (DEFAULT_DSYMUTIL): New.
12939 Extract the type and version for the dsymutil configured or
12940 found by the default searches.
12941 * config.in: Regenerated.
12942 * configure: Regenerated.
12943 * collect2.c (do_dsymutil): Handle locating dsymutil in the
12944 same way as for the assembler and linker.
12945 * config/darwin.h (DSYMUTIL): Delete.
12946 * gcc.c: Report a configured dsymutil correctly.
12947 * exec-tool.in: Allow for dsymutil.
12949 2021-07-05 Uroš Bizjak <ubizjak@gmail.com>
12951 * config/i386/i386-expand.c (ix86_split_mmx_punpck):
12952 Handle V4QI and V2HI modes.
12953 (expand_vec_perm_blend): Allow 4-byte vector modes with TARGET_SSE4_1.
12954 Handle V4QI mode. Emit mmx_pblendvb32 for 4-byte modes.
12955 (expand_vec_perm_pshufb): Rewrite to use switch statemets.
12956 Handle 4-byte dual operands with TARGET_XOP and single operands
12957 with TARGET_SSSE3. Emit mmx_ppermv32 for TARGET_XOP and
12958 mmx_pshufbv4qi3 for TARGET_SSSE3.
12959 (expand_vec_perm_pblendv): Allow 4-byte vector modes with TARGET_SSE4_1.
12960 (expand_vec_perm_interleave2): Allow 4-byte vector modes.
12961 (expand_vec_perm_pshufb2): Allow 4-byte vector modes with TARGET_SSSE3.
12962 (expand_vec_perm_even_odd_1): Handle V4QI mode.
12963 (expand_vec_perm_broadcast_1): Handle V4QI mode.
12964 (ix86_vectorize_vec_perm_const): Handle V4QI mode.
12965 * config/i386/mmx.md (mmx_ppermv32): New insn pattern.
12966 (mmx_pshufbv4qi3): Ditto.
12967 (*mmx_pblendw32): Ditto.
12968 (*mmx_pblendw64): Rename from *mmx_pblendw.
12969 (mmx_punpckhbw_low): New insn_and_split pattern.
12970 (mmx_punpcklbw_low): Ditto.
12972 2021-07-05 Richard Biener <rguenther@suse.de>
12974 * tree-vect-loop-manip.c (vect_loop_versioning): Do not
12975 set LOOP_C_INFINITE on the vectorized loop.
12977 2021-07-05 Richard Biener <rguenther@suse.de>
12979 PR middle-end/101291
12980 * cfgloopmanip.c (loop_version): Set the loop copy of the
12981 versioned loop to the new loop.
12983 2021-07-04 Iain Sandoe <iain@sandoe.co.uk>
12986 * config.gcc: Ensure that Darwin biarch definitions are
12987 added before i386.h.
12988 * config/i386/darwin.h (TARGET_64BIT): Remove.
12989 (PR80556_WORKAROUND): New.
12990 (REAL_LIBGCC_SPEC): Amend to use PR80556_WORKAROUND.
12991 (DARWIN_SUBARCH_SPEC): New.
12992 * config/i386/darwin32-biarch.h (TARGET_64BIT_DEFAULT,
12993 TARGET_BI_ARCH, PR80556_WORKAROUND): New.
12994 (REAL_LIBGCC_SPEC): Remove.
12995 * config/i386/darwin64-biarch.h (TARGET_64BIT_DEFAULT,
12996 TARGET_BI_ARCH, PR80556_WORKAROUND): New.
12997 (REAL_LIBGCC_SPEC): Remove.
12999 2021-07-03 H.J. Lu <hjl.tools@gmail.com>
13001 PR middle-end/101294
13002 * expr.c (store_constructor): Don't use vec_duplicate on vector.
13004 2021-07-02 Martin Sebor <msebor@redhat.com>
13006 PR middle-end/98871
13007 PR middle-end/98512
13008 * diagnostic.c (get_any_inlining_info): New.
13009 (update_effective_level_from_pragmas): Handle inlining context.
13010 (diagnostic_enabled): Same.
13011 (diagnostic_report_diagnostic): Same.
13012 * diagnostic.h (struct diagnostic_info): Add ctor.
13013 (struct diagnostic_context): Add new member.
13014 * tree-diagnostic.c (set_inlining_locations): New.
13015 (tree_diagnostics_defaults): Set new callback pointer.
13017 2021-07-02 Peter Bergner <bergner@linux.ibm.com>
13019 * config/rs6000/rs6000-builtin.def (BU_MMA_PAIR_LD, BU_MMA_PAIR_ST):
13021 (__builtin_vsx_lxvp, __builtin_vsx_stxvp): New built-ins.
13022 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_mma_builtin): Expand
13023 lxvp and stxvp built-ins.
13024 (mma_init_builtins): Handle lxvp and stxvp built-ins.
13025 (builtin_function_type): Likewise.
13026 * doc/extend.texi (__builtin_vsx_lxvp, __builtin_mma_stxvp): Document.
13028 2021-07-02 Jeff Law <jeffreyalaw@gmail.com>
13030 * config/h8300/h8300-protos.h (compute_a_shift_cc): Accept
13031 additional argument for the code.
13032 * config/h8300/h8300.c (compute_a_shift_cc): Accept additional
13033 argument for the code. Just return if the ZN bits are useful or
13034 not rather than the old style CC_* enums.
13035 * config/h8300/shiftrotate.md (shiftqi_noscratch): Move before
13036 more generic shiftqi patterns.
13037 (shifthi_noscratch, shiftsi_noscratch): Similarly.
13038 (shiftqi_noscratch_set_flags): New pattern.
13039 (shifthi_noscratch_set_flags, shiftsi_noscratch_set_flags): Likewise.
13041 2021-07-02 Andrew MacLeod <amacleod@redhat.com>
13043 PR tree-optimization/101223
13044 * range-op.cc (build_lt): Add -1 for signed values.
13045 (built_gt): Subtract -1 for signed values.
13047 2021-07-02 David Faust <david.faust@oracle.com>
13049 * btfout.c (get_btf_kind): Support BTF_KIND_FLOAT.
13050 (btf_asm_type): Likewise.
13052 2021-07-02 Jeff Law <jeffreyalaw@gmail.com>
13054 * config/h8300/h8300-protos.h (output_a_shift): Make first argument
13055 an array of rtx rather than a pointer to rtx. Add code argument.
13056 (compute_a_shift_length): Similarly.
13057 * config/h8300/h8300.c (h8300_shift_costs): Adjust now that the
13058 shift itself isn't an operand. Create dummy operand[0] to carry
13059 a mode and pass a suitable rtx code to compute_a_shift_length.
13060 (get_shift_alg): Adjust operand number of clobber in output templates.
13061 (output_a_shift): Make first argument an array of rtx rather than
13062 a pointer to rtx. Add code argument for the type of shift.
13063 Adjust now that the shift itself is no longer an operand.
13064 (compute_a_shift_length): Similarly.
13065 * config/h8300/shiftrotate.md (shiftqi, shifthi, shiftsi): Use an
13066 iterator rather than nshift_operator.
13067 (shiftqi_noscratch, shifthi_noscratch, shiftsi_noscratch): Likewise.
13068 (shiftqi_clobber_flags): Adjust to API changes in output_a_shift
13069 and compute_a_shift_length.
13070 (shiftqi_noscratch_clobber_flags): Likewise.
13071 (shifthi_noscratch_clobber_flags): Likewise.
13072 (shiftsi_noscratch_clobber_flags): Likewise.
13074 2021-07-02 Iain Sandoe <iain@sandoe.co.uk>
13077 * config/darwin.h (DSYMUTIL_SPEC): Do not try to run
13078 dsymutil for BTF/CTF.
13080 2021-07-02 Iain Sandoe <iain@sandoe.co.uk>
13083 * config/darwin.h (CTF_INFO_SECTION_NAME): Update the
13084 segment to include BTF.
13085 (BTF_INFO_SECTION_NAME): New.
13087 2021-07-02 Jeff Law <jeffreyalaw@gmail.com>
13089 * config/m32r/m32r-protos.h (call_operand): Adjust return type.
13090 (small_data_operand, memreg_operand, small_insn_p): Likewise.
13091 * config/m32r/m32r.c (call_operand): Adjust return type.
13092 (small_data_operand, memreg_operand): Likewise.
13094 2021-07-02 Jeff Law <jeffreyalaw@gmail.com>
13096 * config/frv/frv-protos.h (integer_register_operand): Adjust return
13098 (frv_load_operand, gpr_or_fpr_operand, gpr_no_subreg_operand): Likewise.
13099 (fpr_or_int6_operand, gpr_or_int_operand); Likewise.
13100 (gpr_or_int12_operand, gpr_or_int10_operand); Likewise.
13101 (move_source_operand, move_destination_operand): Likewise.
13102 (condexec_source_operand, condexec_dest_operand): Likewise.
13103 (lr_operand, gpr_or_memory_operand, fpr_or_memory_operand): Likewise.
13104 (reg_or_0_operand, fcc_operand, icc_operand, cc_operand): Likewise.
13105 (fcr_operand, icr_operand, cr_operand, call_operand): Likewise.
13106 (fpr_operand, even_reg_operand, odd_reg_operand): Likewise.
13107 (even_gpr_operand, odd_gpr_operand, quad_fpr_operand): Likewise.
13108 (even_fpr_operand, odd_fpr_operand): Likewise.
13109 (dbl_memory_one_insn_operand, dbl_memory_two_insn_operand): Likewise.
13110 (int12_operand, int6_operand, int5_operand, uint5_operand): Likewise.
13111 (uint4_operand, uint1_operand, int_2word_operand): Likewise
13112 (upper_int16_operand, uint16_operand, symbolic_operand): Likewise.
13113 (relational_operator, float_relational_operator): Likewise.
13114 (ccr_eqne_operator, minmax_operator): Likewise.
13115 (condexec_si_binary_operator, condexec_si_media_operator): Likewise.
13116 (condexec_si_divide_operator, condexec_si_unary_operator): Likewise.
13117 (condexec_sf_conv_operator, condexec_sf_add_operator): Likewise.
13118 (intop_compare_operator, acc_operand, even_acc_operand): Likewise.
13119 (quad_acc_operand, accg_operand): Likewise.
13121 2021-07-02 Jeff Law <jeffreyalaw@gmail.com>
13123 * config/stormy16/stormy16-protos.h (xstormy16_below_100_symbol): Change
13124 return type to a bool.
13125 (nonimmediate_nonstack_operand): Likewise.
13126 (xstormy16_splittable_below100_operand): Likewise.
13127 * config/stormy16/stormy16.c (xstormy16_below_100_symbol): Fix
13129 (xstormy16_splittable_below100_operand): Likewise.
13131 2021-07-02 Richard Biener <rguenther@suse.de>
13133 PR tree-optimization/101293
13134 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Compare MEM_REF bases
13135 with combined offsets.
13136 (gather_mem_refs_stmt): Hash MEM_REFs as if their offset were
13137 combined with the rest of the offset.
13139 2021-07-02 Eric Botcazou <ebotcazou@adacore.com>
13141 * config/i386/i386.c (asm_preferred_eh_data_format): Always use the
13142 PIC encodings for PE-COFF targets.
13144 2021-07-02 Jakub Jelinek <jakub@redhat.com>
13147 * config/i386/i386-expand.c (ix86_broadcast_from_integer_constant):
13148 Return nullptr for TImode inner mode.
13150 2021-07-02 Richard Biener <rguenther@suse.de>
13152 PR tree-optimization/101280
13153 PR tree-optimization/101173
13154 * gimple-loop-interchange.cc
13155 (tree_loop_interchange::valid_data_dependences): Properly
13156 guard all dependence checks with DDR_REVERSED_P or its
13159 2021-07-02 Hongyu Wang <hongyu.wang@intel.com>
13161 * config/i386/i386-expand.c (ix86_expand_builtin):
13162 Add branch to clear odata when ZF is set for asedecenc_expand
13163 and wideaesdecenc_expand.
13165 2021-07-02 Eugene Rozenfeld <erozen@microsoft.com>
13167 * config/i386/gcc-auto-profile: regenerate
13169 2021-07-02 liuhongt <hongtao.liu@intel.com>
13171 * config/i386/sse.md (trunc<mode><pmov_dst_4>2): Refined to ..
13172 (trunc<mode><pmov_dst_4_lower>2): this.
13174 2021-07-01 David Malcolm <dmalcolm@redhat.com>
13176 * diagnostic.h (diagnostic_context::m_file_cache): New field.
13177 * input.c (class fcache): Rename to...
13178 (class file_cache_slot): ...this, making most members private and
13179 prefixing fields with "m_".
13180 (file_cache_slot::get_file_path): New accessor.
13181 (file_cache_slot::get_use_count): New accessor.
13182 (file_cache_slot::missing_trailing_newline_p): New accessor.
13183 (file_cache_slot::inc_use_count): New.
13184 (fcache_buffer_size): Move to...
13185 (file_cache_slot::buffer_size): ...here.
13186 (fcache_line_record_size): Move to...
13187 (file_cache_slot::line_record_size): ...here.
13188 (fcache_tab): Delete, in favor of global_dc->m_file_cache.
13189 (fcache_tab_size): Move to file_cache::num_file_slots.
13190 (diagnostic_file_cache_init): Update for move of fcache_tab
13191 to global_dc->m_file_cache.
13192 (diagnostic_file_cache_fini): Likewise.
13193 (lookup_file_in_cache_tab): Convert to...
13194 (file_cache::lookup_file): ...this.
13195 (diagnostics_file_cache_forcibly_evict_file): Update for move of
13196 fcache_tab to global_dc->m_file_cache, moving most of
13197 implementation to...
13198 (file_cache::forcibly_evict_file): ...this new function and...
13199 (file_cache_slot::evict): ...this new function.
13200 (evicted_cache_tab_entry): Convert to...
13201 (file_cache::evicted_cache_tab_entry): ...this.
13202 (add_file_to_cache_tab): Convert to...
13203 (file_cache::add_file): ...this, moving bulk of implementation
13205 (file_cache_slot::create): ..this new function.
13206 (file_cache::file_cache): New.
13207 (file_cache::~file_cache): New.
13208 (lookup_or_add_file_to_cache_tab): Convert to...
13209 (file_cache::lookup_or_add_file): ..this new function.
13210 (fcache::fcache): Rename to...
13211 (file_cache_slot::file_cache_slot): ...this, adding "m_" prefixes
13213 (fcache::~fcache): Rename to...
13214 (file_cache_slot::~file_cache_slot): ...this, adding "m_" prefixes
13216 (needs_read): Convert to...
13217 (file_cache_slot::needs_read_p): ...this.
13218 (needs_grow): Convert to...
13219 (file_cache_slot::needs_grow_p): ...this.
13220 (maybe_grow): Convert to...
13221 (file_cache_slot::maybe_grow): ...this.
13222 (read_data): Convert to...
13223 (file_cache_slot::read_data): ...this.
13224 (maybe_read_data): Convert to...
13225 (file_cache_slot::maybe_read_data): ...this.
13226 (get_next_line): Convert to...
13227 (file_cache_slot::get_next_line): ...this.
13228 (goto_next_line): Convert to...
13229 (file_cache_slot::goto_next_line): ...this.
13230 (read_line_num): Convert to...
13231 (file_cache_slot::read_line_num): ...this.
13232 (location_get_source_line): Update for moving of globals to
13233 global_dc->m_file_cache.
13234 (location_missing_trailing_newline): Likewise.
13235 * input.h (class file_cache_slot): New forward decl.
13236 (class file_cache): New.
13238 2021-07-01 Michael Meissner <meissner@linux.ibm.com>
13240 * config/rs6000/rs6000.c (rs6000_maybe_emit_fp_cmove): Add IEEE
13241 128-bit floating point conditional move support.
13242 (have_compare_and_set_mask): Add IEEE 128-bit floating point
13244 * config/rs6000/rs6000.md (mov<mode>cc, IEEE128 iterator): New insn.
13245 (mov<mode>cc_p10, IEEE128 iterator): New insn.
13246 (mov<mode>cc_invert_p10, IEEE128 iterator): New insn.
13247 (fpmask<mode>, IEEE128 iterator): New insn.
13248 (xxsel<mode>, IEEE128 iterator): New insn.
13250 2021-07-01 Iain Sandoe <iain@sandoe.co.uk>
13253 * config/darwin.h (CTF_INFO_SECTION_NAME): New.
13255 2021-07-01 H.J. Lu <hjl.tools@gmail.com>
13257 * config/i386/i386-expand.c (ix86_expand_vector_init_duplicate):
13259 * config/i386/i386-protos.h (ix86_expand_vector_init_duplicate):
13261 * config/i386/sse.md (INT_BROADCAST_MODE): New mode iterator.
13262 (vec_duplicate<mode>): New expander.
13264 2021-07-01 H.J. Lu <hjl.tools@gmail.com>
13267 * config/i386/i386-expand.c (ix86_expand_vector_init_duplicate):
13269 (ix86_byte_broadcast): New function.
13270 (ix86_convert_const_wide_int_to_broadcast): Likewise.
13271 (ix86_expand_move): Convert CONST_WIDE_INT to broadcast if mode
13272 size is 16 bytes or bigger.
13273 (ix86_broadcast_from_integer_constant): New function.
13274 (ix86_expand_vector_move): Convert CONST_WIDE_INT and CONST_VECTOR
13275 to broadcast if mode size is 16 bytes or bigger.
13276 * config/i386/i386-protos.h (ix86_gen_scratch_sse_rtx): New
13278 * config/i386/i386.c (ix86_gen_scratch_sse_rtx): New function.
13280 2021-07-01 Uroš Bizjak <ubizjak@gmail.com>
13282 * config/i386/predicates.md (ix86_endbr_immediate_operand):
13283 Return true/false instead of 1/0.
13284 (movq_parallel): Ditto.
13286 2021-07-01 Uroš Bizjak <ubizjak@gmail.com>
13288 * recog.c (general_operand): Return true/false instead of 1/0.
13289 (register_operand): Ditto.
13290 (immediate_operand): Ditto.
13291 (const_int_operand): Ditto.
13292 (const_scalar_int_operand): Ditto.
13293 (const_double_operand): Ditto.
13294 (push_operand): Ditto.
13295 (pop_operand): Ditto.
13296 (memory_operand): Ditto.
13297 (indirect_operand): Ditto.
13299 2021-07-01 Uroš Bizjak <ubizjak@gmail.com>
13301 * genpreds.c (write_predicate_subfunction):
13302 Change the type of written subfunction to bool.
13303 (write_one_predicate_function):
13304 Change the type of written function to bool.
13305 (write_tm_preds_h): Ditto.
13306 * recog.h (*insn_operand_predicate_fn): Change the type to bool.
13307 * recog.c (general_operand): Change the type to bool.
13308 (address_operand): Ditto.
13309 (register_operand): Ditto.
13310 (pmode_register_operand): Ditto.
13311 (scratch_operand): Ditto.
13312 (immediate_operand): Ditto.
13313 (const_int_operand): Ditto.
13314 (const_scalar_int_operand): Ditto.
13315 (const_double_operand): Ditto.
13316 (nonimmediate_operand): Ditto.
13317 (nonmemory_operand): Ditto.
13318 (push_operand): Ditto.
13319 (pop_operand): Ditto.
13320 (memory_operand): Ditto.
13321 (indirect_operand): Ditto.
13322 (ordered_comparison_operator): Ditto.
13323 (comparison_operator): Ditto.
13324 * config/i386/i386-expand.c (ix86_expand_sse_cmp):
13325 Change the type of indirect predicate function to bool.
13326 * config/rs6000/rs6000.c (easy_vector_constant):
13327 Change the type to bool.
13328 * config/mips/mips-protos.h (m16_based_address_p):
13329 Change the type of operand 3 to bool.
13331 2021-07-01 Richard Biener <rguenther@suse.de>
13333 PR tree-optimization/101280
13334 PR tree-optimization/101173
13335 * gimple-loop-interchange.cc
13336 (tree_loop_interchange::valid_data_dependences): Revert
13337 previous change and instead correctly handle DDR_REVERSED_P
13340 2021-07-01 Richard Biener <rguenther@suse.de>
13342 PR tree-optimization/101278
13343 * tree-ssa-dse.c (dse_classify_store): First check for
13344 uses, then ignore stmt for chaining purposes.
13346 2021-07-01 Richard Biener <rguenther@suse.de>
13348 PR tree-optimization/100778
13349 * tree-vect-slp.c (vect_schedule_slp_node): Do not place trapping
13350 vectorized ops ahead of their scalar BB.
13352 2021-07-01 Uroš Bizjak <ubizjak@gmail.com>
13355 * config/i386/i386.md (*nabs<dwi>2_doubleword):
13356 New insn_and_split pattern.
13357 (*nabs<dwi>2_1): Ditto.
13358 * config/i386/i386-features.c
13359 (general_scalar_chain::compute_convert_gain):
13360 Handle (NEG (ABS (...))) RTX. Rewrite src code
13361 scanner as switch statement.
13362 (general_scalar_chain::convert_insn):
13363 Handle (NEG (ABS (...))) RTX.
13364 (general_scalar_to_vector_candidate_p):
13365 Detect (NEG (ABS (...))) RTX. Reorder case statements
13366 for (AND (NOT (...) ...)) fallthrough.
13368 2021-07-01 Richard Biener <rguenther@suse.de>
13370 PR tree-optimization/101178
13371 * tree-vect-slp.c (slpg_vertex::materialize): Remove.
13372 (slpg::perm_in): Add.
13373 (slpg::get_perm_in): Remove.
13374 (slpg::get_perm_materialized): Add.
13375 (vect_optimize_slp): Handle VEC_PERM nodes more optimally
13376 during permute propagation and materialization.
13378 2021-07-01 Jakub Jelinek <jakub@redhat.com>
13381 * dwarf2out.c (loc_list_from_tree_1): Handle COMPOUND_LITERAL_EXPR.
13383 2021-07-01 Jakub Jelinek <jakub@redhat.com>
13385 PR middle-end/94366
13386 * omp-low.c (lower_rec_input_clauses): Rename is_fp_and_or to
13387 is_truth_op, set it for TRUTH_*IF_EXPR regardless of new_var's type,
13388 use boolean_type_node instead of integer_type_node as NE_EXPR type.
13389 (lower_reduction_clauses): Likewise.
13391 2021-06-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
13393 * config/gcn/gcn.c: Include dwarf2.h.
13394 (gcn_addr_space_debug): New function.
13395 (TARGET_ADDR_SPACE_DEBUG): New hook.
13397 2021-06-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
13399 * common/config/gcn/gcn-common.c
13400 (gcn_option_optimization_table): Change OPT_fomit_frame_pointer to -O3.
13401 * config/gcn/gcn.c (gcn_expand_prologue): Prefer the frame pointer
13403 (gcn_expand_prologue): Prefer the frame pointer when emitting CFI.
13404 (gcn_frame_pointer_rqd): New function.
13405 (TARGET_FRAME_POINTER_REQUIRED): New hook.
13407 2021-06-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
13409 * config/gcn/gcn.c (move_callee_saved_registers): Emit CFI notes for
13410 prologue register saves.
13411 (gcn_debug_unwind_info): Use UI_DWARF2.
13412 (gcn_dwarf_register_number): Map DWARF_LINK_REGISTER to DWARF PC.
13413 (gcn_dwarf_register_span): DWARF_LINK_REGISTER doesn't span.
13414 * config/gcn/gcn.h: (DWARF_FRAME_RETURN_COLUMN): New define.
13415 (DWARF_LINK_REGISTER): New define.
13416 (FIRST_PSEUDO_REGISTER): Increment.
13417 (FIXED_REGISTERS): Add entry for DWARF_LINK_REGISTER.
13418 (CALL_USED_REGISTERS): Likewise.
13419 (REGISTER_NAMES): Likewise.
13421 2021-06-30 Richard Biener <rguenther@suse.de>
13423 PR tree-optimization/101267
13424 * tree-vect-stmts.c (vect_check_scalar_mask): Adjust
13425 API and use SLP compatible interface of vect_is_simple_use.
13426 Reject not vectorized SLP defs for callers that do not support
13428 (vect_check_store_rhs): Handle masked stores and pass down
13429 the appropriate operator index.
13430 (vectorizable_call): Adjust.
13431 (vectorizable_store): Likewise.
13432 (vectorizable_load): Likewise. Handle SLP pecularity of
13434 (vect_is_simple_use): Remove special-casing of masked stores.
13436 2021-06-30 Tobias Burnus <tobias@codesourcery.com>
13438 * common.opt (foffload): Remove help as Driver only.
13439 * gcc.c (display_help): Add -foffload.
13441 2021-06-30 Tobias Burnus <tobias@codesourcery.com>
13443 * gcc.c (close_at_file, execute): Replace alloca by XALLOCAVEC.
13444 (check_offload_target_name): Fix splitting OFFLOAD_TARGETS into
13445 a candidate list; better inform no offload target is configured
13446 and fix hint extraction when passed target is not '\0' at [len].
13447 * common.opt (foffload): Add tailing '.'.
13448 (foffload-options): Likewise; fix flag name in the help string.
13450 2021-06-30 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
13453 * config/arm/arm_neon.h: Move vabs intrinsics before vcage_f32.
13454 (vcage_f32): Gate comparison on __FAST_MATH__.
13455 (vcageq_f32): Likewise.
13456 (vcale_f32): Likewise.
13457 (vcaleq_f32): Likewise.
13458 (vcagt_f32): Likewise.
13459 (vcagtq_f32): Likewise.
13460 (vcalt_f32): Likewise.
13461 (vcaltq_f32): Likewise.
13462 (vcage_f16): Likewise.
13463 (vcageq_f16): Likewise.
13464 (vcale_f16): Likewise.
13465 (vcaleq_f16): Likewise.
13466 (vcagt_f16): Likewise.
13467 (vcagtq_f16): Likewise.
13468 (vcalt_f16): Likewise.
13469 (vcaltq_f16): Likewise.
13471 2021-06-30 Richard Biener <rguenther@suse.de>
13473 PR tree-optimization/101264
13474 * tree-vect-slp.c (vect_optimize_slp): Propagate the
13475 computed perm_in to all "any" permute successors
13476 we cannot de-duplicate immediately.
13478 2021-06-30 liuhongt <hongtao.liu@intel.com>
13481 * config/i386/sse.md
13482 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>):
13484 (avx512f_sfixupimm<mode><maskz_scalar_name><round_saeonly_name>):
13486 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>"): Refined.
13487 * config/i386/subst.md (maskz_scalar): New define_subst.
13488 (maskz_scalar_name): New subst_attr.
13489 (maskz_scalar_op5): Ditto.
13490 (round_saeonly_maskz_scalar_op5): Ditto.
13491 (round_saeonly_maskz_scalar_operand5): Ditto.
13493 2021-06-30 David Edelsohn <dje.gcc@gmail.com>
13495 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags):
13496 Increase code CSECT alignment to at least 32 bytes.
13497 * config/rs6000/xcoff.h (TEXT_SECTION_ASM_OP): Add 32 byte
13498 alignment designation.
13500 2021-06-29 Sergei Trofimovich <siarheit@google.com>
13502 * doc/generic.texi: Fix s/net yet/not yet/ typo.
13504 2021-06-29 Andrew MacLeod <amacleod@redhat.com>
13506 PR tree-optimization/101254
13507 * range-op.cc (operator_minus::op1_op2_relation_effect): Check for
13508 wrapping/non-wrapping when setting the result range.
13510 2021-06-29 Andrew MacLeod <amacleod@redhat.com>
13512 * value-query.cc (gimple_range_global): Allow phis.
13514 2021-06-29 Andrew MacLeod <amacleod@redhat.com>
13516 * vr-values.c (vr_values::vrp_stmt_computes_nonzero): Use stmt.
13517 (simplify_using_ranges::op_with_boolean_value_range_p): Add a
13518 statement for location context.
13519 (check_for_binary_op_overflow): Ditto.
13520 (simplify_using_ranges::get_vr_for_comparison): Ditto.
13521 (simplify_using_ranges::compare_name_with_value): Ditto.
13522 (simplify_using_ranges::compare_names): Ditto.
13523 (vrp_evaluate_conditional_warnv_with_ops_using_ranges): Ditto.
13524 (simplify_using_ranges::simplify_truth_ops_using_ranges): Ditto.
13525 (simplify_using_ranges::simplify_min_or_max_using_ranges): Ditto.
13526 (simplify_using_ranges::simplify_internal_call_using_ranges): Ditto.
13527 (simplify_using_ranges::two_valued_val_range_p): Ditto.
13528 (simplify_using_ranges::simplify): Ditto.
13529 * vr-values.h: Adjust prototypes.
13531 2021-06-29 Uroš Bizjak <ubizjak@gmail.com>
13534 * config/i386/mmx.md (vec_addsubv2sf3): New insn pattern.
13536 2021-06-29 Julian Brown <julian@codesourcery.com>
13538 * config/gcn/gcn.c (gcn_init_libfuncs): New function.
13539 (TARGET_INIT_LIBFUNCS): Define target hook using above function.
13540 * config/gcn/gcn.h (UNITS_PER_WORD): Define to 8 for IN_LIBGCC2, 4
13542 (LIBGCC2_UNITS_PER_WORD, BITS_PER_WORD): Remove definitions.
13543 (MAX_FIXED_MODE_SIZE): Change to 128.
13545 2021-06-29 Julian Brown <julian@codesourcery.com>
13547 * config/gcn/gcn.md (UNSPEC_FLBIT_INT): New unspec constant.
13548 (s_mnemonic): Add clrsb.
13549 (gcn_flbit<mode>_int): Add insn pattern for SImode/DImode.
13550 (clrsb<mode>2): Add expander for SImode/DImode.
13552 2021-06-29 Julian Brown <julian@codesourcery.com>
13554 * config/gcn/gcn.md (<su>mulsidi3, <su>mulsidi3_reg, <su>mulsidi3_imm,
13555 muldi3): Add patterns.
13557 2021-06-29 Julian Brown <julian@codesourcery.com>
13559 * config/gcn/gcn.md (<su>mulsi3_highpart): Change to expander.
13560 (<su>mulsi3_highpart_reg, <su>mulsi3_highpart_imm): New patterns.
13562 2021-06-29 Julian Brown <julian@codesourcery.com>
13564 * config/gcn/gcn.md (mulsi3): Make s_mulk_i32 variant clobber SCC.
13566 2021-06-29 Joseph Myers <joseph@codesourcery.com>
13568 * btfout.c, ctfout.c: Include "memmodel.h".
13570 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
13572 * gcc.c (check_offload_target_name): Cast len argument to
13573 %q.*s to 'int'; avoid -Wstringop-truncation warning.
13575 2021-06-29 Richard Biener <rguenther@suse.de>
13577 * tree-vect-slp.c (vect_optimize_slp): Forward propagate
13578 to "any" permute nodes and relax "any" permute proapgation
13579 during iterative backward propagation.
13581 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
13584 * common.opt (-foffload=): Update description.
13585 (-foffload-options=): New.
13586 * doc/invoke.texi (C Language Options): Document
13587 -foffload and -foffload-options.
13588 * gcc.c (check_offload_target_name): New, split off from
13589 handle_foffload_option.
13590 (check_foffload_target_names): New.
13591 (handle_foffload_option): Handle -foffload=default.
13592 (driver_handle_option): Update for -foffload-options.
13593 * lto-opts.c (lto_write_options): Use -foffload-options
13594 instead of -foffload.
13595 * lto-wrapper.c (merge_and_complain, append_offload_options):
13597 * opts.c (common_handle_option): Likewise.
13599 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
13601 * doc/invoke.texi (C Language Options): Sort options
13602 alphabetically in optlist and also the description itself.
13603 Remove leftover -fallow-single-precision from and add missing
13604 -fgnu-tm to the optlist.
13606 2021-06-29 Richard Biener <rguenther@suse.de>
13608 * tree-vect-slp.c (slpg_vertex::visited): Remove.
13609 (vect_slp_perms_eq): Handle -1 permutes.
13610 (vect_optimize_slp): Rewrite permute propagation.
13612 2021-06-29 Jakub Jelinek <jakub@redhat.com>
13615 * match.pd ((intptr_t)x eq/ne CST to x eq/ne (typeof x) CST): Don't
13616 perform the optimization in GENERIC when sanitizing and x has a
13619 2021-06-29 Richard Biener <rguenther@suse.de>
13621 PR tree-optimization/101242
13622 * tree-vect-slp.c (vect_slp_build_vertices): Force-add
13623 PHIs with not represented initial values as leafs.
13625 2021-06-29 Jan-Benedict Glaw <jbglaw@getslash.de>
13627 * config/pdp11/pdp11.h (ASM_OUTPUT_SKIP): Fix signedness warning.
13628 * config/pdp11/pdp11.c (pdp11_asm_print_operand_punct_valid_p): Remove
13629 "register" keyword.
13630 (pdp11_initial_elimination_offset) Remove unused variable.
13631 (pdp11_cmp_length) Ditto.
13632 (pdp11_insn_cost): Ditto, and fix signedness warning.
13634 2021-06-29 David Edelsohn <dje.gcc@gmail.com>
13636 * btfout.c: Include tm_p.h.
13639 2021-06-28 Indu Bhagat <indu.bhagat@oracle.com>
13641 * config/bpf/bpf.c (bpf_expand_prologue): Do not mark insns as
13643 (bpf_expand_epilogue): Likewise.
13644 * config/bpf/bpf.h (DWARF2_FRAME_INFO): Define to 0.
13645 Do not define DBX_DEBUGGING_INFO.
13647 2021-06-28 Indu Bhagat <indu.bhagat@oracle.com>
13649 * doc/invoke.texi: Document the CTF and BTF debug info options.
13651 2021-06-28 Indu Bhagat <indu.bhagat@oracle.com>
13652 David Faust <david.faust@oracle.com>
13653 Jose E. Marchesi <jose.marchesi@oracle.com>
13654 Weimin Pan <weimin.pan@oracle.com>
13656 * Makefile.in: Add ctfc.*, ctfout.c and btfout.c files to
13657 GTFILES. Add new object files.
13658 * common.opt: Add CTF and BTF debug info options.
13659 * btfout.c: New file.
13660 * ctfc.c: Likewise.
13661 * ctfc.h: Likewise.
13662 * ctfout.c: Likewise.
13663 * dwarf2ctf.c: Likewise.
13664 * dwarf2ctf.h: Likewise.
13665 * dwarf2cfi.c (dwarf2out_do_frame): Acknowledge CTF_DEBUG and
13667 * dwarf2out.c (dwarf2out_source_line): Likewise.
13668 (dwarf2out_finish): Skip emitting DWARF if CTF or BTF are to
13670 (debug_format_do_cu): New function.
13671 (dwarf2out_early_finish): Traverse DIEs and emit CTF/BTF for
13673 Include dwarf2ctf.c.
13674 * final.c (dwarf2_debug_info_emitted_p): Acknowledge DWARF-based debug
13676 * flag-types.h (enum debug_info_type): Add CTF_DEBUG and BTF_DEBUG.
13677 (CTF_DEBUG): New bitmask.
13678 (BTF_DEBUG): Likewise.
13679 (enum ctf_debug_info_levels): New enum.
13680 * gengtype.c (open_base_files): Handle ctfc.h.
13681 (main): Handle uint32_t type.
13682 * flags.h (btf_debuginfo_p): New definition.
13683 (dwarf_based_debuginfo_p): Likewise.
13684 * opts.c (debug_type_names): Add entries for CTF and BTF.
13685 (btf_debuginfo_p): New function.
13686 (dwarf_based_debuginfo_p): Likewise.
13687 (common_handle_option): Handle -gctfN and -gbtf options.
13688 (set_debug_level): Set CTF_DEBUG, BTF_DEBUG whenever appropriate.
13689 * toplev.c (process_options): Inform the user and ignore -gctfLEVEL if
13692 2021-06-28 Jose E. Marchesi <jose.marchesi@oracle.com>
13694 * dwarf2out.c (AT_class): Function is no longer static.
13695 (AT_int): Likewise.
13696 (AT_unsigned): Likewise.
13697 (AT_loc): Likewise.
13698 (get_AT): Likewise.
13699 (get_AT_string): Likewise.
13700 (get_AT_flag): Likewise.
13701 (get_AT_unsigned): Likewise.
13702 (get_AT_ref): Likewise.
13703 (new_die_raw): Likewise.
13704 (lookup_decl_die): Likewise.
13705 (base_type_die): Likewise.
13706 (add_name_attribute): Likewise.
13707 (add_AT_int): Likewise.
13708 (add_AT_unsigned): Likewise.
13709 (add_AT_loc): Likewise.
13710 (dw_get_die_tag): New function.
13711 (dw_get_die_child): Likewise.
13712 (dw_get_die_sib): Likewise.
13713 (struct dwarf_file_data): Move from here to dwarf2out.h
13714 (struct dw_attr_struct): Likewise.
13715 * dwarf2out.h: Analogous changes.
13717 2021-06-28 Martin Jambor <mjambor@suse.cz>
13720 * ipa-param-manipulation.h (class ipa_param_body_adjustments): New
13721 members m_dead_stmts and m_dead_ssas.
13722 * ipa-param-manipulation.c
13723 (ipa_param_body_adjustments::mark_dead_statements): New function.
13724 (ipa_param_body_adjustments::common_initialization): Call it on
13725 all removed but not split parameters.
13726 (ipa_param_body_adjustments::ipa_param_body_adjustments): Initialize
13728 (ipa_param_body_adjustments::modify_call_stmt): Remove arguments that
13730 * tree-inline.c (remap_gimple_stmt): Do not copy dead statements, reset
13731 dead debug statements.
13732 (copy_phis_for_bb): Do not copy dead PHI nodes.
13734 2021-06-28 Martin Jambor <mjambor@suse.cz>
13737 * symtab-clones.h (clone_info): Removed member param_adjustments.
13738 * ipa-param-manipulation.h: Adjust initial comment to reflect how we
13739 deal with pass-through splits now.
13740 (ipa_param_performed_split): Removed.
13741 (ipa_param_adjustments::modify_call): Adjusted parameters.
13742 (class ipa_param_body_adjustments): Adjusted parameters of
13743 register_replacement, modify_gimple_stmt and modify_call_stmt.
13744 (ipa_verify_edge_has_no_modifications): Declare.
13745 (ipa_edge_modifications_finalize): Declare.
13746 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Remove
13747 performed_splits processing, pas only edge to padjs->modify_call,
13748 check that call arguments were not modified if they should not have
13750 * cgraphclones.c (cgraph_node::create_clone): Do not copy performed
13752 * ipa-param-manipulation.c (struct pass_through_split_map): New type.
13753 (ipa_edge_modification_info): Likewise.
13754 (ipa_edge_modification_sum): Likewise.
13755 (ipa_edge_modifications): New edge summary.
13756 (ipa_verify_edge_has_no_modifications): New function.
13757 (transitive_split_p): Removed.
13758 (transitive_split_map): Likewise.
13759 (init_transitive_splits): Likewise.
13760 (ipa_param_adjustments::modify_call): Adjusted to use the new edge
13761 summary instead of performed_splits.
13762 (ipa_param_body_adjustments::register_replacement): Drop dummy
13763 parameter, set base_index of the created ipa_param_body_replacement.
13764 (phi_arg_will_live_p): New function.
13765 (ipa_param_body_adjustments::common_initialization): Do not create
13766 IPA_SRA dummy decls.
13767 (simple_tree_swap_info): Removed.
13768 (remap_split_decl_to_dummy): Likewise.
13769 (record_argument_state_1): New function.
13770 (record_argument_state): Likewise.
13771 (ipa_param_body_adjustments::modify_call_stmt): New parameter
13772 orig_stmt. Do not work with dummy decls, save necessary info about
13773 changes to ipa_edge_modifications.
13774 (ipa_param_body_adjustments::modify_gimple_stmt): New parameter
13775 orig_stmt, pass it to modify_call_stmt.
13776 (ipa_param_body_adjustments::modify_cfun_body): Adjust call to
13777 modify_gimple_stmt.
13778 (ipa_edge_modifications_finalize): New function.
13779 * tree-inline.c (remap_gimple_stmt): Pass original statement to
13780 modify_gimple_stmt.
13781 (copy_phis_for_bb): Do not copy dead PHI nodes.
13782 (expand_call_inline): Do not remap performed_splits.
13783 (update_clone_info): Likewise.
13784 * toplev.c: Include ipa-param-manipulation.h.
13785 (toplev::finalize): Call ipa_edge_modifications_finalize.
13787 2021-06-28 Andrew Pinski <apinski@marvell.com>
13789 * tree-ssa-phiopt.c (replace_phi_edge_with_variable): Duplicate range
13790 info if we're the only things setting the target PHI.
13791 (value_replacement): Don't duplicate range here.
13792 (minmax_replacement): Likewise.
13794 2021-06-28 Richard Biener <rguenther@suse.de>
13796 PR tree-optimization/101229
13797 * gimple-walk.c (gimple_walk_op): Handle PHIs.
13799 2021-06-28 Martin Liska <mliska@suse.cz>
13801 * config/v850/v850.c (construct_dispose_instruction): Allocate
13803 (construct_prepare_instruction): Likewise.
13805 2021-06-28 Martin Liska <mliska@suse.cz>
13807 * config/v850/v850.c (v850_option_override): Build default
13809 (v850_can_inline_p): New. Allow MASK_PROLOG_FUNCTION to be
13810 ignored for inlining.
13811 (TARGET_CAN_INLINE_P): New.
13813 2021-06-28 Richard Biener <rguenther@suse.de>
13815 PR tree-optimization/101207
13816 * tree-vect-slp.c (vect_optimize_slp): Do BB reduction
13817 permute eliding for load permutations properly.
13819 2021-06-28 Richard Biener <rguenther@suse.de>
13821 PR tree-optimization/101173
13822 * gimple-loop-interchange.cc
13823 (tree_loop_interchange::valid_data_dependences): Disallow outer
13824 loop dependence distance of zero.
13826 2021-06-28 liuhongt <hongtao.liu@intel.com>
13829 * config/i386/sse.md (*avx_cmp<mode>3_lt): New
13830 define_insn_and_split.
13831 (*avx_cmp<mode>3_ltint): Ditto.
13832 (*avx2_pcmp<mode>3_3): Ditto.
13833 (*avx2_pcmp<mode>3_4): Ditto.
13834 (*avx2_pcmp<mode>3_5): Ditto.
13836 2021-06-28 liuhongt <hongtao.liu@intel.com>
13838 * config/i386/i386-builtin.def (IX86_BUILTIN_BLENDVPD256,
13839 IX86_BUILTIN_BLENDVPS256, IX86_BUILTIN_PBLENDVB256,
13840 IX86_BUILTIN_BLENDVPD, IX86_BUILTIN_BLENDVPS,
13841 IX86_BUILTIN_PBLENDVB128): Replace icode with
13843 * config/i386/i386.c (ix86_gimple_fold_builtin): Fold blendv
13845 * config/i386/sse.md (*<sse4_1_avx2>_pblendvb_lt_subreg_not):
13846 New pre_reload splitter.
13848 2021-06-27 Andrew Pinski <apinski@marvell.com>
13850 PR middle-end/101230
13851 * fold-const.c (fold_ternary_loc): Check
13852 the return value of invert_tree_comparison.
13854 2021-06-27 David Edelsohn <dje.gcc@gmail.com>
13856 * config.gcc: Add SPDX License Identifier.
13857 (powerpc-ibm-aix789): Default to aix73.h.
13858 (powerpc-ibm-aix7.2.*.*): New stanza.
13859 * config/rs6000/aix72.h: Add SPDX License Identifier.
13860 * config/rs6000/aix73.h: New file.
13862 2021-06-26 Jason Merrill <jason@redhat.com>
13864 * except.c: #include "dwarf2.h" instead of "dwarf2out.h".
13866 2021-06-26 Andrew Pinski <apinski@marvell.com>
13868 * genmatch.c (lower_cond): Copy for_subst_vec
13869 for the simplify also.
13870 (lower): Swap the order for lower_for and lower_cond.
13872 2021-06-26 Andrew Pinski <apinski@marvell.com>
13874 * tree-ssa-phiopt.c (match_simplify_replacement): Reset
13875 flow senatitive info on the moved ssa set.
13877 2021-06-26 Andrew Pinski <apinski@marvell.com>
13879 * fold-const.c (fold_cond_expr_with_comparison):
13880 Exand arg0 into comp_code, arg00, and arg01.
13881 (fold_ternary_loc): Use invert_tree_comparison
13882 instead of fold_invert_truthvalue for the case
13883 where we have A CMP B ? C : A.
13885 2021-06-25 Martin Sebor <msebor@redhat.com>
13887 PR middle-end/101216
13888 * calls.c (maybe_warn_rdwr_sizes): Use the no_warning constant.
13890 2021-06-25 Jeff Law <jeffreyalaw@gmail.com>
13892 * config/h8300/h8300.c (select_cc_mode): Handle ASHIFTRT and LSHIFTRT.
13894 2021-06-25 Richard Biener <rguenther@suse.de>
13896 PR tree-optimization/101202
13897 * tree-vect-slp.c (vect_optimize_slp): Explicitely handle
13900 2021-06-25 Richard Biener <rguenther@suse.de>
13902 * tree-vect-slp-patterns.c (addsub_pattern::build): Copy
13903 STMT_VINFO_REDUC_DEF from the original representative.
13905 2021-06-25 Martin Sebor <msebor@redhat.com>
13907 * builtins.c (warn_string_no_nul): Replace uses of TREE_NO_WARNING,
13908 gimple_no_warning_p and gimple_set_no_warning with
13909 warning_suppressed_p, and suppress_warning.
13911 (maybe_warn_for_bound): Same.
13912 (warn_for_access): Same.
13913 (check_access): Same.
13914 (expand_builtin_strncmp): Same.
13915 (fold_builtin_varargs): Same.
13916 * calls.c (maybe_warn_nonstring_arg): Same.
13917 (maybe_warn_rdwr_sizes): Same.
13918 * cfgexpand.c (expand_call_stmt): Same.
13919 * cgraphunit.c (check_global_declaration): Same.
13920 * fold-const.c (fold_undefer_overflow_warnings): Same.
13921 (fold_truth_not_expr): Same.
13922 (fold_unary_loc): Same.
13923 (fold_checksum_tree): Same.
13924 * gimple-array-bounds.cc (array_bounds_checker::check_array_ref): Same.
13925 (array_bounds_checker::check_mem_ref): Same.
13926 (array_bounds_checker::check_addr_expr): Same.
13927 (array_bounds_checker::check_array_bounds): Same.
13928 * gimple-expr.c (copy_var_decl): Same.
13929 * gimple-fold.c (gimple_fold_builtin_strcpy): Same.
13930 (gimple_fold_builtin_strncat): Same.
13931 (gimple_fold_builtin_stxcpy_chk): Same.
13932 (gimple_fold_builtin_stpcpy): Same.
13933 (gimple_fold_builtin_sprintf): Same.
13934 (fold_stmt_1): Same.
13935 * gimple-ssa-isolate-paths.c (diag_returned_locals): Same.
13936 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
13937 * gimple-ssa-sprintf.c (handle_printf_call): Same.
13938 * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_store): Same.
13939 * gimple-ssa-warn-restrict.c (maybe_diag_overlap): Same.
13940 * gimple-ssa-warn-restrict.h: Adjust declarations.
13941 (maybe_diag_access_bounds): Replace uses of TREE_NO_WARNING,
13942 gimple_no_warning_p and gimple_set_no_warning with
13943 warning_suppressed_p, and suppress_warning.
13944 (check_call): Same.
13945 (check_bounds_or_overlap): Same.
13946 * gimple.c (gimple_build_call_from_tree): Same.
13947 * gimplify.c (gimplify_return_expr): Same.
13948 (gimplify_cond_expr): Same.
13949 (gimplify_modify_expr_complex_part): Same.
13950 (gimplify_modify_expr): Same.
13951 (gimple_push_cleanup): Same.
13952 (gimplify_expr): Same.
13953 * omp-expand.c (expand_omp_for_generic): Same.
13954 (expand_omp_taskloop_for_outer): Same.
13955 * omp-low.c (lower_rec_input_clauses): Same.
13956 (lower_lastprivate_clauses): Same.
13957 (lower_send_clauses): Same.
13958 (lower_omp_target): Same.
13959 * tree-cfg.c (pass_warn_function_return::execute): Same.
13960 * tree-complex.c (create_one_component_var): Same.
13961 * tree-inline.c (remap_gimple_op_r): Same.
13962 (copy_tree_body_r): Same.
13963 (declare_return_variable): Same.
13964 (expand_call_inline): Same.
13965 * tree-nested.c (lookup_field_for_decl): Same.
13966 * tree-sra.c (create_access_replacement): Same.
13967 (generate_subtree_copies): Same.
13968 * tree-ssa-ccp.c (pass_post_ipa_warn::execute): Same.
13969 * tree-ssa-forwprop.c (combine_cond_expr_cond): Same.
13970 * tree-ssa-loop-ch.c (ch_base::copy_headers): Same.
13971 * tree-ssa-loop-im.c (execute_sm): Same.
13972 * tree-ssa-phiopt.c (cond_store_replacement): Same.
13973 * tree-ssa-strlen.c (maybe_warn_overflow): Same.
13974 (handle_builtin_strcpy): Same.
13975 (maybe_diag_stxncpy_trunc): Same.
13976 (handle_builtin_stxncpy_strncat): Same.
13977 (handle_builtin_strcat): Same.
13978 * tree-ssa-uninit.c (get_no_uninit_warning): Same.
13979 (set_no_uninit_warning): Same.
13980 (uninit_undefined_value_p): Same.
13981 (warn_uninit): Same.
13982 (maybe_warn_operand): Same.
13983 * tree-vrp.c (compare_values_warnv): Same.
13984 * vr-values.c (vr_values::extract_range_for_var_from_comparison_expr): Same.
13985 (test_for_singularity): Same.
13986 * gimple.h (warning_suppressed_p): New function.
13987 (suppress_warning): Same.
13988 (copy_no_warning): Same.
13989 (gimple_set_block): Call gimple_set_location.
13990 (gimple_set_location): Call copy_warning.
13992 2021-06-25 Martin Sebor <msebor@redhat.com>
13994 * tree.h (warning_suppressed_at, copy_warning,
13995 warning_suppressed_p, suppress_warning): New functions.
13997 2021-06-25 Martin Sebor <msebor@redhat.com>
13999 * Makefile.in (OBJS-libcommon): Add diagnostic-spec.o.
14000 * gengtype.c (open_base_files): Add diagnostic-spec.h.
14001 * diagnostic-spec.c: New file.
14002 * diagnostic-spec.h: New file.
14003 * tree.h (no_warning, all_warnings, suppress_warning_at): New
14005 * warning-control.cc: New file.
14007 2021-06-25 liuhongt <hongtao.liu@intel.com>
14010 * config/i386/i386.c (x86_order_regs_for_local_alloc):
14013 2021-06-24 Andrew MacLeod <amacleod@redhat.com>
14015 PR tree-optimization/101189
14016 * gimple-range-fold.cc (fold_using_range::range_of_range_op): Pass
14017 LHS range of condition to postfold routine.
14018 (fold_using_range::postfold_gcond_edges): Only process the TRUE or
14019 FALSE edge if the LHS range supports it being taken.
14020 * gimple-range-fold.h (postfold_gcond_edges): Add range parameter.
14022 2021-06-24 Andrew MacLeod <amacleod@redhat.com>
14024 * value-relation.cc (equiv_oracle::dump): Do not dump NULL blocks.
14025 (relation_oracle::find_relation_block): Check correct bitmap.
14026 (relation_oracle::dump): Do not dump NULL blocks.
14028 2021-06-24 Andrew MacLeod <amacleod@redhat.com>
14030 * gimple-range-cache.cc (ranger_cache::propagate_cache): Call
14031 range_on_edge instead of manually calculating.
14033 2021-06-24 Andrew MacLeod <amacleod@redhat.com>
14035 * range-op.cc: Fix comment.
14037 2021-06-24 Uroš Bizjak <ubizjak@gmail.com>
14040 * config/i386/i386-expand.c (ix86_expand_sse_unpack):
14041 Handle V8QI and V4HI modes.
14042 * config/i386/mmx.md (sse4_1_<any_extend:code>v4qiv4hi2):
14044 (sse4_1_<any_extend:code>v4qiv4hi2): Ditto.
14045 (mmxpackmode): New mode attribute.
14046 (vec_pack_trunc_<mmxpackmode:mode>): New expander.
14047 (mmxunpackmode): New mode attribute.
14048 (vec_unpacks_lo_<mmxunpackmode:mode>): New expander.
14049 (vec_unpacks_hi_<mmxunpackmode:mode>): Ditto.
14050 (vec_unpacku_lo_<mmxunpackmode:mode>): Ditto.
14051 (vec_unpacku_hi_<mmxunpackmode:mode>): Ditto.
14052 * config/i386/i386.md (extsuffix): Move from ...
14053 * config/i386/sse.md: ... here.
14055 2021-06-24 Eric Botcazou <ebotcazou@adacore.com>
14057 * dwarf2out.c (dwarf2out_assembly_start): Emit .file 0 marker here..
14058 (dwarf2out_finish): ...instead of here.
14060 2021-06-24 Eric Botcazou <ebotcazou@adacore.com>
14062 * configure.ac (--gdwarf-5 option): Use objdump instead of readelf.
14063 (working --gdwarf-4/--gdwarf-5 for all sources): Likewise.
14064 (--gdwarf-4 not refusing generated .debug_line): Adjust for Windows.
14065 * configure: Regenerate.
14067 2021-06-24 Richard Biener <rguenther@suse.de>
14069 * config/i386/sse.md (vec_addsubv4df3, vec_addsubv2df3,
14070 vec_addsubv8sf3, vec_addsubv4sf3): Merge into ...
14071 (vec_addsub<mode>3): ... using a new addsub_cst mode attribute.
14073 2021-06-24 Richard Biener <rguenther@suse.de>
14075 * config/i386/sse.md (avx_addsubv4df3): Rename to
14077 (avx_addsubv8sf3): Rename to vec_addsubv8sf3.
14078 (sse3_addsubv2df3): Rename to vec_addsubv2df3.
14079 (sse3_addsubv4sf3): Rename to vec_addsubv4sf3.
14080 * config/i386/i386-builtin.def: Adjust.
14081 * internal-fn.def (VEC_ADDSUB): New internal optab fn.
14082 * optabs.def (vec_addsub_optab): New optab.
14083 * tree-vect-slp-patterns.c (class addsub_pattern): New.
14084 (slp_patterns): Add addsub_pattern.
14085 * tree-vect-slp.c (vect_optimize_slp): Disable propagation
14086 across CFN_VEC_ADDSUB.
14087 * tree-vectorizer.h (vect_pattern::vect_pattern): Make
14089 * doc/md.texi (vec_addsub<mode>3): Document.
14091 2021-06-24 Jakub Jelinek <jakub@redhat.com>
14093 PR middle-end/101170
14094 * df-scan.c (df_ref_record): For paradoxical big-endian SUBREGs
14095 where regno + subreg_regno_offset wraps around use 0 as starting
14098 2021-06-24 Jakub Jelinek <jakub@redhat.com>
14100 PR middle-end/101172
14101 * stor-layout.c (finish_bitfield_representative): If nextf has
14102 error_mark_node type, set repr type to error_mark_node too.
14104 2021-06-24 Ilya Leoshkevich <iii@linux.ibm.com>
14106 * config/s390/s390.c (s390_function_profiler): Ignore labelno
14108 * config/s390/s390.h (NO_PROFILE_COUNTERS): Define.
14110 2021-06-24 Richard Biener <rguenther@suse.de>
14112 * tree-vect-slp.c (vect_optimize_slp): Do not propagate
14113 across operations that have different semantics on different
14116 2021-06-24 Jakub Jelinek <jakub@redhat.com>
14118 * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): Document meaning for OpenMP.
14119 * gimplify.c (gimplify_scan_omp_clauses): For OpenMP map clauses
14120 with OMP_CLAUSE_MAP_IN_REDUCTION flag partially defer gimplification
14121 of non-decl OMP_CLAUSE_DECL. For OMP_CLAUSE_IN_REDUCTION on
14122 OMP_TARGET user outer_ctx instead of ctx for placeholders and
14123 initializer/combiner gimplification.
14124 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_MAP_IN_REDUCTION
14125 on target constructs.
14126 (lower_rec_input_clauses): Likewise.
14127 (lower_omp_target): Likewise.
14128 * omp-expand.c (expand_omp_target): Temporarily ignore nowait clause
14129 on target if in_reduction is present.
14131 2021-06-24 Kewen Lin <linkw@linux.ibm.com>
14133 * tree-predcom.c (class pcom_worker): New class.
14134 (release_chain): Renamed to...
14135 (pcom_worker::release_chain): ...this.
14136 (release_chains): Renamed to...
14137 (pcom_worker::release_chains): ...this.
14138 (aff_combination_dr_offset): Renamed to...
14139 (pcom_worker::aff_combination_dr_offset): ...this.
14140 (determine_offset): Renamed to...
14141 (pcom_worker::determine_offset): ...this.
14142 (class comp_ptrs): New class.
14143 (split_data_refs_to_components): Renamed to...
14144 (pcom_worker::split_data_refs_to_components): ...this,
14145 and update with class comp_ptrs.
14146 (suitable_component_p): Renamed to...
14147 (pcom_worker::suitable_component_p): ...this.
14148 (filter_suitable_components): Renamed to...
14149 (pcom_worker::filter_suitable_components): ...this.
14150 (valid_initializer_p): Renamed to...
14151 (pcom_worker::valid_initializer_p): ...this.
14152 (find_looparound_phi): Renamed to...
14153 (pcom_worker::find_looparound_phi): ...this.
14154 (add_looparound_copies): Renamed to...
14155 (pcom_worker::add_looparound_copies): ...this.
14156 (determine_roots_comp): Renamed to...
14157 (pcom_worker::determine_roots_comp): ...this.
14158 (determine_roots): Renamed to...
14159 (pcom_worker::determine_roots): ...this.
14160 (single_nonlooparound_use): Renamed to...
14161 (pcom_worker::single_nonlooparound_use): ...this.
14162 (remove_stmt): Renamed to...
14163 (pcom_worker::remove_stmt): ...this.
14164 (execute_pred_commoning_chain): Renamed to...
14165 (pcom_worker::execute_pred_commoning_chain): ...this.
14166 (execute_pred_commoning): Renamed to...
14167 (pcom_worker::execute_pred_commoning): ...this.
14168 (struct epcc_data): New member worker.
14169 (execute_pred_commoning_cbck): Call execute_pred_commoning
14170 with pcom_worker pointer.
14171 (find_use_stmt): Renamed to...
14172 (pcom_worker::find_use_stmt): ...this.
14173 (find_associative_operation_root): Renamed to...
14174 (pcom_worker::find_associative_operation_root): ...this.
14175 (find_common_use_stmt): Renamed to...
14176 (pcom_worker::find_common_use_stmt): ...this.
14177 (combinable_refs_p): Renamed to...
14178 (pcom_worker::combinable_refs_p): ...this.
14179 (reassociate_to_the_same_stmt): Renamed to...
14180 (pcom_worker::reassociate_to_the_same_stmt): ...this.
14181 (stmt_combining_refs): Renamed to...
14182 (pcom_worker::stmt_combining_refs): ...this.
14183 (combine_chains): Renamed to...
14184 (pcom_worker::combine_chains): ...this.
14185 (try_combine_chains): Renamed to...
14186 (pcom_worker::try_combine_chains): ...this.
14187 (prepare_initializers_chain): Renamed to...
14188 (pcom_worker::prepare_initializers_chain): ...this.
14189 (prepare_initializers): Renamed to...
14190 (pcom_worker::prepare_initializers): ...this.
14191 (prepare_finalizers_chain): Renamed to...
14192 (pcom_worker::prepare_finalizers_chain): ...this.
14193 (prepare_finalizers): Renamed to...
14194 (pcom_worker::prepare_finalizers): ...this.
14195 (tree_predictive_commoning_loop): Renamed to...
14196 (pcom_worker::tree_predictive_commoning_loop): ...this, adjust
14197 some calls and remove some cleanup code.
14198 (tree_predictive_commoning): Adjusted to use pcom_worker instance.
14199 (static variable looparound_phis): Remove.
14200 (static variable name_expansions): Remove.
14202 2021-06-24 Richard Biener <rguenther@suse.de>
14204 * tree-vect-slp.c (slpg_vertex): New struct.
14205 (vect_slp_build_vertices): Adjust.
14206 (vect_optimize_slp): Likewise. Maintain an outgoing permute
14207 and a materialized one.
14209 2021-06-24 Richard Biener <rguenther@suse.de>
14211 PR tree-optimization/101105
14212 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
14213 Only ignore steps when they are equal or scalar order is preserved.
14215 2021-06-24 liuhongt <hongtao.liu@intel.com>
14218 * config/i386/i386-expand.c (ix86_expand_vec_interleave):
14219 Adjust comments for ix86_expand_vecop_qihi2.
14220 (ix86_expand_vecmul_qihi): Renamed to ..
14221 (ix86_expand_vecop_qihi2): Adjust function prototype to
14222 support shift operation, add static to definition.
14223 (ix86_expand_vec_shift_qihi_constant): Add static to definition.
14224 (ix86_expand_vecop_qihi): Call ix86_expand_vecop_qihi2 and
14225 ix86_expand_vec_shift_qihi_constant.
14226 * config/i386/i386-protos.h (ix86_expand_vecmul_qihi): Deleted.
14227 (ix86_expand_vec_shift_qihi_constant): Deleted.
14228 * config/i386/sse.md (VI12_256_512_AVX512VL): New mode
14230 (mulv8qi3): Call ix86_expand_vecop_qihi directly, add
14231 condition TARGET_64BIT.
14232 (mul<mode>3): Ditto.
14233 (<insn><mode>3): Ditto.
14234 (vlshr<mode>3): Extend to support avx512 vlshr.
14235 (v<insn><mode>3): New expander for
14237 (v<insn>v8qi3): Ditto.
14238 (vashrv8hi3<mask_name>): Renamed to ..
14239 (vashr<mode>3): And extend to support V16QImode for avx512.
14240 (vashrv16qi3): Deleted.
14241 (vashrv2di3<mask_name>): Extend expander to support avx512
14244 2021-06-23 Dimitar Dimitrov <dimitar@dinux.eu>
14246 * doc/lto.texi (Design Overview): Update that slim objects are
14249 2021-06-23 Aaron Sawdey <acsawdey@linux.ibm.com>
14251 * config/rs6000/rs6000-cpus.def: Take OPTION_MASK_PCREL_OPT out
14252 of OTHER_POWER10_MASKS so it will not be enabled by default.
14254 2021-06-23 Richard Biener <rguenther@suse.de>
14255 Martin Jambor <mjambor@suse.cz>
14257 * tree-inline.c (setup_one_parameter): Set TREE_READONLY of the
14258 param replacement unconditionally. Adjust comment.
14260 2021-06-23 Andrew MacLeod <amacleod@redhat.com>
14262 * Makefile.in (OBJS): Add gimple-range-fold.o
14263 * gimple-range-fold.cc: New.
14264 * gimple-range-fold.h: New.
14265 * gimple-range-gori.cc (gimple_range_calc_op1): Move to here.
14266 (gimple_range_calc_op2): Ditto.
14267 * gimple-range-gori.h: Move prototypes to here.
14268 * gimple-range.cc: Adjust include files.
14269 (fur_source:fur_source): Relocate to gimple-range-fold.cc.
14270 (fur_source::get_operand): Ditto.
14271 (fur_source::get_phi_operand): Ditto.
14272 (fur_source::query_relation): Ditto.
14273 (fur_source::register_relation): Ditto.
14274 (class fur_edge): Ditto.
14275 (fur_edge::fur_edge): Ditto.
14276 (fur_edge::get_operand): Ditto.
14277 (fur_edge::get_phi_operand): Ditto.
14278 (fur_stmt::fur_stmt): Ditto.
14279 (fur_stmt::get_operand): Ditto.
14280 (fur_stmt::get_phi_operand): Ditto.
14281 (fur_stmt::query_relation): Ditto.
14282 (class fur_depend): Relocate to gimple-range-fold.h.
14283 (fur_depend::fur_depend): Relocate to gimple-range-fold.cc.
14284 (fur_depend::register_relation): Ditto.
14285 (fur_depend::register_relation): Ditto.
14286 (class fur_list): Ditto.
14287 (fur_list::fur_list): Ditto.
14288 (fur_list::get_operand): Ditto.
14289 (fur_list::get_phi_operand): Ditto.
14290 (fold_range): Ditto.
14291 (adjust_pointer_diff_expr): Ditto.
14292 (gimple_range_adjustment): Ditto.
14293 (gimple_range_base_of_assignment): Ditto.
14294 (gimple_range_operand1): Ditto.
14295 (gimple_range_operand2): Ditto.
14296 (gimple_range_calc_op1): Relocate to gimple-range-gori.cc.
14297 (gimple_range_calc_op2): Ditto.
14298 (fold_using_range::fold_stmt): Relocate to gimple-range-fold.cc.
14299 (fold_using_range::range_of_range_op): Ditto.
14300 (fold_using_range::range_of_address): Ditto.
14301 (fold_using_range::range_of_phi): Ditto.
14302 (fold_using_range::range_of_call): Ditto.
14303 (fold_using_range::range_of_builtin_ubsan_call): Ditto.
14304 (fold_using_range::range_of_builtin_call): Ditto.
14305 (fold_using_range::range_of_cond_expr): Ditto.
14306 (fold_using_range::range_of_ssa_name_with_loop_info): Ditto.
14307 (fold_using_range::relation_fold_and_or): Ditto.
14308 (fold_using_range::postfold_gcond_edges): Ditto.
14309 * gimple-range.h: Add gimple-range-fold.h to include files. Change
14310 GIMPLE_RANGE_STMT_H to GIMPLE_RANGE_H.
14311 (gimple_range_handler): Relocate to gimple-range-fold.h.
14312 (gimple_range_ssa_p): Ditto.
14313 (range_compatible_p): Ditto.
14314 (class fur_source): Ditto.
14315 (class fur_stmt): Ditto.
14316 (class fold_using_range): Ditto.
14317 (gimple_range_calc_op1): Relocate to gimple-range-gori.h
14318 (gimple_range_calc_op2): Ditto.
14320 2021-06-23 Andrew MacLeod <amacleod@redhat.com>
14322 PR tree-optimization/101148
14323 PR tree-optimization/101014
14324 * gimple-range-cache.cc (ranger_cache::ranger_cache): Adjust.
14325 (ranger_cache::~ranger_cache): Adjust.
14326 (ranger_cache::block_range): Check if propagation disallowed.
14327 (ranger_cache::propagate_cache): Disallow propagation if new value
14328 can't be stored properly.
14329 * gimple-range-cache.h (ranger_cache::m_propfail): New member.
14331 2021-06-23 Andrew MacLeod <amacleod@redhat.com>
14333 * gimple-range-cache.cc (class ssa_block_ranges): Adjust prototype.
14334 (sbr_vector::set_bb_range): Return true.
14335 (class sbr_sparse_bitmap): Adjust.
14336 (sbr_sparse_bitmap::set_bb_range): Return value.
14337 (block_range_cache::set_bb_range): Return value.
14338 (ranger_cache::propagate_cache): Use return value to print msg.
14339 * gimple-range-cache.h (class block_range_cache): Adjust.
14341 2021-06-23 Andrew MacLeod <amacleod@redhat.com>
14343 * gimple-range.cc (dump_bb): Use range_on_edge from the cache.
14345 2021-06-23 Jeff Law <jeffreyalaw@gmail.com>
14347 * config/h8300/logical.md (<code><mode>3<ccnz>): Use <cczn>
14348 so this pattern can be used for test/compare removal. Pass
14349 current insn to compute_logical_op_length and output_logical_op.
14350 * config/h8300/h8300.c (compute_logical_op_cc): Remove.
14351 (h8300_and_costs): Add argument to compute_logical_op_length.
14352 (output_logical_op): Add new argument. Use it to determine if the
14353 condition codes are used and adjust the output accordingly.
14354 (compute_logical_op_length): Add new argument and update length
14355 computations when condition codes are used.
14356 * config/h8300/h8300-protos.h (compute_logical_op_length): Update
14358 (output_logical_op): Likewise.
14360 2021-06-23 Uroš Bizjak <ubizjak@gmail.com>
14363 * config/i386/i386-expand.c (expand_vec_perm_pshufb):
14364 Handle 64bit modes for TARGET_XOP. Use indirect gen_* functions.
14365 * config/i386/mmx.md (mmx_ppermv64): New insn pattern.
14366 * config/i386/i386.md (unspec): Move UNSPEC_XOP_PERMUTE from ...
14367 * config/i386/sse.md (unspec): ... here.
14369 2021-06-23 Martin Liska <mliska@suse.cz>
14372 * optc-save-gen.awk: Put back arm_fp16_format to
14375 2021-06-23 Uroš Bizjak <ubizjak@gmail.com>
14378 * config/i386/i386.md (bsr_rex64): Add zero-flag setting RTX.
14381 (clz<mode>2): Update RTX pattern for additions.
14383 2021-06-23 Jakub Jelinek <jakub@redhat.com>
14385 PR middle-end/101167
14386 * omp-low.c (lower_omp_regimplify_p): Regimplify also PARM_DECLs
14387 and RESULT_DECLs that have DECL_HAS_VALUE_EXPR_P set.
14389 2021-06-22 Sergei Trofimovich <siarheit@google.com>
14391 * doc/rtl.texi: drop unbalanced parenthesis.
14393 2021-06-22 Richard Biener <rguenther@suse.de>
14395 PR middle-end/101156
14396 * gimplify.c (gimplify_expr): Remove premature incorrect
14399 2021-06-22 Jakub Jelinek <jakub@redhat.com>
14401 PR tree-optimization/101159
14402 * tree-vect-patterns.c (vect_recog_popcount_pattern): Fix some
14405 2021-06-22 Jakub Jelinek <jakub@redhat.com>
14407 PR middle-end/101160
14408 * function.c (assign_parms): For decl_result with TYPE_EMPTY_P type
14409 clear crtl->return_rtx instead of keeping it referencing a pseudo.
14411 2021-06-22 Jakub Jelinek <jakub@redhat.com>
14412 Andrew Pinski <apinski@marvell.com>
14414 PR tree-optimization/101162
14415 * fold-const.c (range_check_type): Handle OFFSET_TYPE like pointer
14418 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
14420 * range-op.cc (range_relational_tests): New.
14421 (range_op_tests): Call range_relational_tests.
14423 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
14425 * range-op.cc (operator_cast::lhs_op1_relation): New.
14426 (operator_identity::lhs_op1_relation): Mew.
14428 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
14430 * range-op.cc (operator_minus::op1_op2_relation_effect): New.
14432 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
14434 * range-op.cc (operator_plus::lhs_op1_relation): New.
14435 (operator_plus::lhs_op2_relation): New.
14437 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
14439 * gimple-range-cache.cc (ranger_cache::ranger_cache): Create a
14440 relation_oracle if dominators exist.
14441 (ranger_cache::~ranger_cache): Dispose of oracle.
14442 (ranger_cache::dump_bb): Dump oracle.
14443 * gimple-range.cc (fur_source::fur_source): New.
14444 (fur_source::get_operand): Use mmeber query.
14445 (fur_source::get_phi_operand): Use member_query.
14446 (fur_source::query_relation): New.
14447 (fur_source::register_dependency): Delete.
14448 (fur_source::register_relation): New.
14449 (fur_edge::fur_edge): Adjust.
14450 (fur_edge::get_phi_operand): Fix comment.
14451 (fur_edge::query): Delete.
14452 (fur_stmt::fur_stmt): Adjust.
14453 (fur_stmt::query): Delete.
14454 (fur_depend::fur_depend): Adjust.
14455 (fur_depend::register_relation): New.
14456 (fur_depend::register_relation): New.
14457 (fur_list::fur_list): Adjust.
14458 (fur_list::get_operand): Use member query.
14459 (fold_using_range::range_of_range_op): Process and query relations.
14460 (fold_using_range::range_of_address): Adjust dependency call.
14461 (fold_using_range::range_of_phi): Ditto.
14462 (gimple_ranger::gimple_ranger): New. Use ranger_ache oracle.
14463 (fold_using_range::relation_fold_and_or): New.
14464 (fold_using_range::postfold_gcond_edges): New.
14465 * gimple-range.h (class gimple_ranger): Adjust.
14466 (class fur_source): Adjust members.
14467 (class fur_stmt): Ditto.
14468 (class fold_using_range): Ditto.
14470 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
14472 * range-op.cc (range_operator::wi_fold): Apply relation effect.
14473 (range_operator::fold_range): Adjust and apply relation effect.
14474 (*::fold_range): Add relation parameters.
14475 (*::op1_range): Ditto.
14476 (*::op2_range): Ditto.
14477 (range_operator::lhs_op1_relation): New.
14478 (range_operator::lhs_op2_relation): New.
14479 (range_operator::op1_op2_relation): New.
14480 (range_operator::op1_op2_relation_effect): New.
14481 (relop_early_resolve): New.
14482 (operator_equal::op1_op2_relation): New.
14483 (operator_equal::fold_range): Call relop_early_resolve.
14484 (operator_not_equal::op1_op2_relation): New.
14485 (operator_not_equal::fold_range): Call relop_early_resolve.
14486 (operator_lt::op1_op2_relation): New.
14487 (operator_lt::fold_range): Call relop_early_resolve.
14488 (operator_le::op1_op2_relation): New.
14489 (operator_le::fold_range): Call relop_early_resolve.
14490 (operator_gt::op1_op2_relation): New.
14491 (operator_gt::fold_range): Call relop_early_resolve.
14492 (operator_ge::op1_op2_relation): New.
14493 (operator_ge::fold_range): Call relop_early_resolve.
14494 * range-op.h (class range_operator): Adjust parameters and methods.
14496 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
14498 * Makefile.in (OBJS): Add value-relation.o.
14499 * gimple-range.h: Adjust include files.
14500 * tree-data-ref.c: Adjust include file order.
14501 * value-query.cc (range_query::get_value_range): Default to no oracle.
14502 (range_query::query_relation): New.
14503 (range_query::query_relation): New.
14504 * value-query.h (class range_query): Adjust.
14505 * value-relation.cc: New.
14506 * value-relation.h: New.
14508 2021-06-22 Richard Biener <rguenther@suse.de>
14510 PR tree-optimization/101151
14511 * tree-ssa-sink.c (statement_sink_location): Expand irreducible
14514 2021-06-22 Jojo R <rjiejie@linux.alibaba.com>
14516 * config/riscv/riscv.c (thead_c906_tune_info): New.
14517 (riscv_tune_info_table): Use new tune.
14519 2021-06-22 Richard Biener <rguenther@suse.de>
14521 PR tree-optimization/101158
14522 * tree-vect-slp.c (vect_build_slp_tree_1): Move same operand
14523 checking after checking for matching operation.
14525 2021-06-22 Richard Biener <rguenther@suse.de>
14527 PR tree-optimization/101159
14528 * tree-vect-patterns.c (vect_recog_popcount_pattern): Add
14529 missing NULL vectype check.
14531 2021-06-22 Richard Biener <rguenther@suse.de>
14533 PR tree-optimization/101154
14534 * tree-vect-slp.c (vect_build_slp_tree_2): Fix out-of-bound access.
14536 2021-06-22 Jakub Jelinek <jakub@redhat.com>
14539 * config/i386/i386-protos.h (ix86_last_zero_store_uid): Declare.
14540 * config/i386/i386-expand.c (ix86_last_zero_store_uid): New variable.
14541 * config/i386/i386.c (ix86_expand_prologue): Clear it.
14542 * config/i386/i386.md (peephole2s for 1/2/4 stores of const0_rtx):
14543 Remove "" from match_operand. Emit new insns using emit_move_insn and
14544 set ix86_last_zero_store_uid to INSN_UID of the last store.
14545 Add peephole2s for 1/2/4 stores of const0_rtx following previous
14548 2021-06-22 Martin Liska <mliska@suse.cz>
14550 * auto-profile.c (AUTO_PROFILE_VERSION): Bump as string format
14553 2021-06-22 Martin Liska <mliska@suse.cz>
14555 * gcov-io.h: Remove padding entries.
14557 2021-06-22 liuhongt <hongtao.liu@intel.com>
14559 PR tree-optimization/97770
14560 * tree-vect-patterns.c (vect_recog_popcount_pattern):
14562 (vect_recog_func vect_vect_recog_func_ptrs): Add new pattern.
14564 2021-06-22 liuhongt <hongtao.liu@intel.com>
14567 * config/i386/i386-builtin.def (BDESC): Adjust builtin name.
14568 * config/i386/sse.md (<avx512>_expand<mode>_mask): Rename to ..
14569 (expand<mode>_mask): this ..
14570 (*expand<mode>_mask): New pre_reload splitter to transform
14571 v{,p}expand* to vmov* when mask is zero, all ones, or has all
14572 ones in it's lower part, otherwise still generate
14575 2021-06-22 liuhongt <hongtao.liu@intel.com>
14578 * config/i386/i386-expand.c
14579 (ix86_expand_special_args_builtin): Keep constm1_operand only
14580 if it satisfies insn's operand predicate.
14582 2021-06-21 Jason Merrill <jason@redhat.com>
14585 * df-scan.c (df_ref_record): Check that regno < endregno.
14586 * function.c (assign_parms, expand_function_end): Do nothing with a
14587 TYPE_EMPTY_P result.
14589 2021-06-21 Richard Biener <rguenther@suse.de>
14591 PR tree-optimization/101120
14592 * tree-vect-data-refs.c (bump_vector_ptr): Fold the
14594 * tree-vect-slp.c (vect_transform_slp_perm_load): Add
14595 DR chain DCE capability.
14596 * tree-vectorizer.h (vect_transform_slp_perm_load): Adjust.
14597 * tree-vect-stmts.c (vectorizable_load): Remove unused
14598 loads in the DR chain for SLP.
14600 2021-06-21 Jakub Jelinek <jakub@redhat.com>
14602 PR inline-asm/100785
14603 * gimplify.c (gimplify_asm_expr): Don't diagnose errors if
14604 output or input operands were already error_mark_node.
14605 * cfgexpand.c (expand_asm_stmt): If errors are emitted,
14606 remove all inputs, outputs and clobbers from the asm and
14607 set template to "".
14609 2021-06-21 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
14611 * config/arm/arm_neon.h (vceq_s8): Replace builtin with __a == __b.
14612 (vceq_s16): Likewise.
14613 (vceq_s32): Likewise.
14614 (vceq_u8): Likewise.
14615 (vceq_u16): Likewise.
14616 (vceq_u32): Likewise.
14617 (vceq_p8): Likewise.
14618 (vceqq_s8): Likewise.
14619 (vceqq_s16): Likewise.
14620 (vceqq_s32): Likewise.
14621 (vceqq_u8): Likewise.
14622 (vceqq_u16): Likewise.
14623 (vceqq_u32): Likewise.
14624 (vceqq_p8): Likewise.
14625 (vceq_f32): Gate __a == __b on __FAST_MATH__.
14626 (vceqq_f32): Likewise.
14627 (vceq_f16): Likewise.
14628 (vceqq_f16): Likewise.
14630 2021-06-21 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
14633 * config/arm/iterators.md (NEON_VACMP): Remove.
14634 * config/arm/neon.md (neon_vca<cmp_op><mode>): Use GLTE instead of GTGE
14636 (neon_vca<cmp_op><mode>_insn): Likewise.
14637 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Use NEON_VAGLTE instead of
14640 2021-06-21 Richard Biener <rguenther@suse.de>
14642 PR tree-optimization/101121
14643 * tree-vect-slp.c (vect_build_slp_tree_2): To not fail fatally
14644 when we just lack a stmt with the desired op when doing permutation.
14645 (vect_build_slp_tree): When caching a failed SLP build attempt
14646 assert that at least one lane is marked as not matching.
14648 2021-06-21 liuhongt <hongtao.liu@intel.com>
14651 * config/i386/i386.md: (*anddi_1): Disparage slightly the mask
14652 register alternative.
14653 (*and<mode>_1): Ditto.
14655 (*andn<mode>_1): Ditto.
14656 (*<code><mode>_1): Ditto.
14657 (*<code>qi_1): Ditto.
14658 (*one_cmpl<mode>2_1): Ditto.
14659 (*one_cmplsi2_1_zext): Ditto.
14660 (*one_cmplqi2_1): Ditto.
14661 * config/i386/i386.c (x86_order_regs_for_local_alloc): Change
14662 the order of mask registers to be before general registers.
14664 2021-06-21 Roger Sayle <roger@nextmovesoftware.com>
14667 * config/i386/i386.md: New define_peephole2s to shrink writing
14668 1, 2 or 4 consecutive zeros to memory when optimizing for size.
14670 2021-06-18 Jeff Law <jeffreyalaw@gmail.com>
14672 * config/h8300/h8300.c (h8300_select_cc_mode): Handle SYMBOL_REF.
14673 * config/h8300/logical.md (<code><mode>3 logcial expander): Generate
14674 more efficient code when the source can be trivially simplified.
14676 2021-06-18 Andrew MacLeod <amacleod@redhat.com>
14678 * gimple-range-cache.cc (ranger_cache::range_of_def): Calculate
14679 a range if global is not available.
14680 (ranger_cache::entry_range): Fallback to range_of_def.
14681 * gimple-range-cache.h (range_of_def): Adjust prototype.
14683 2021-06-18 Andrew MacLeod <amacleod@redhat.com>
14685 PR tree-optimization/101014
14686 * gimple-range-cache.cc (ranger_cache::ranger_cache): Remove poor
14688 (ranger_cache::~ranger_cache): Ditto.
14689 (ranger_cache::enable_new_values): Delete.
14690 (ranger_cache::push_poor_value): Delete.
14691 (ranger_cache::range_of_def): Remove poor value processing.
14692 (ranger_cache::entry_range): Ditto.
14693 (ranger_cache::fill_block_cache): Ditto.
14694 * gimple-range-cache.h (class ranger_cache): Remove poor value members.
14695 * gimple-range.cc (gimple_ranger::range_of_expr): Remove call.
14696 * gimple-range.h (class gimple_ranger): Adjust.
14698 2021-06-18 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
14701 * common/config/arm/arm-common.c (arm_canon_arch_option_1): New function
14702 derived from arm_canon_arch.
14703 (arm_canon_arch_option): Call it.
14704 (arm_canon_arch_multilib_option): New function.
14705 * config/arm/arm-cpus.in (IGNORE_FOR_MULTILIB): New fgroup.
14706 * config/arm/arm.h (arm_canon_arch_multilib_option): New prototype.
14707 (CANON_ARCH_MULTILIB_SPEC_FUNCTION): New macro.
14708 (MULTILIB_ARCH_CANONICAL_SPECS): New macro.
14709 (DRIVER_SELF_SPECS): Add MULTILIB_ARCH_CANONICAL_SPECS.
14710 * config/arm/arm.opt (mlibarch): New option.
14711 * config/arm/t-rmprofile (MULTILIB_MATCHES): For armv8*-m, replace use
14712 of march on RHS with mlibarch.
14714 2021-06-18 Marcel Vollweiler <marcel@codesourcery.com>
14716 * config.in: Regenerate.
14717 * config/gcn/gcn.c (print_operand_address): Fix for global_load assembler
14719 * configure: Regenerate.
14720 * configure.ac: Fix for global_load assembler functions.
14722 2021-06-18 Richard Biener <rguenther@suse.de>
14724 PR tree-optimization/101112
14725 * tree-vect-slp.c (vect_slp_linearize_chain): Fix condition
14726 to lookup a pattern stmt def.
14728 2021-06-18 Jakub Jelinek <jakub@redhat.com>
14730 PR middle-end/101062
14731 * stor-layout.c (finish_bitfield_layout): Don't add bitfield
14732 representatives in QUAL_UNION_TYPE.
14734 2021-06-18 Andrew Pinski <apinski@marvell.com>
14736 * tree-ssa-phiopt.c (replace_phi_edge_with_variable):
14737 Add counting of how many times it is done.
14738 (factor_out_conditional_conversion): Likewise.
14739 (match_simplify_replacement): Likewise.
14740 (value_replacement): Likewise.
14741 (spaceship_replacement): Likewise.
14742 (cond_store_replacement): Likewise.
14743 (cond_if_else_store_replacement_1): Likewise.
14744 (hoist_adjacent_loads): Likewise.
14746 2021-06-18 Andrew Pinski <apinski@marvell.com>
14748 * tree-cfg.c (verify_gimple_assign_unary): Reject point and offset
14749 types on NEGATE_EXPR, ABS_EXPR, BIT_NOT_EXPR, PAREN_EXPR and CNONJ_EXPR.
14750 (verify_gimple_assign_binary): Reject point and offset types on
14751 MULT_EXPR, MULT_HIGHPART_EXPR, TRUNC_DIV_EXPR, CEIL_DIV_EXPR,
14752 FLOOR_DIV_EXPR, ROUND_DIV_EXPR, TRUNC_MOD_EXPR, CEIL_MOD_EXPR,
14753 FLOOR_MOD_EXPR, ROUND_MOD_EXPR, RDIV_EXPR, and EXACT_DIV_EXPR.
14755 2021-06-18 Michael Meissner <meissner@linux.ibm.com>
14757 * config/rs6000/rs6000.c (rs6000_emit_minmax): Add support for ISA
14758 3.1 IEEE 128-bit floating point xsmaxcqp/xsmincqp instructions.
14759 * config/rs6000/rs6000.md (s<minmax><mode>3, IEEE128 iterator):
14762 2021-06-17 Aaron Sawdey <acsawdey@linux.ibm.com>
14764 * config/rs6000/genfusion.pl (gen_logical_addsubf): Add
14765 earlyclobber to alts 0/1.
14766 (gen_addadd): Add earlyclobber to alts 0/1.
14767 * config/rs6000/fusion.md: Regenerate file.
14769 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
14771 * cfgloopanal.c (get_loop_hot_path): Make path an auto_vec.
14773 2021-06-17 Andrew MacLeod <amacleod@redhat.com>
14775 * gimple-range-cache.cc: Comment cleanups.
14776 * gimple-range-gori.cc: Comment cleanups.
14777 * gimple-range.cc: Comment/spacing cleanups
14778 * value-range.h: Comment cleanups.
14780 2021-06-17 H.J. Lu <hjl.tools@gmail.com>
14783 * calls.c (expand_call): Replace PUSH_ARGS with
14784 targetm.calls.push_argument (0).
14785 (emit_library_call_value_1): Likewise.
14786 * defaults.h (PUSH_ARGS): Removed.
14787 (PUSH_ARGS_REVERSED): Replace PUSH_ARGS with
14788 targetm.calls.push_argument (0).
14789 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
14790 (emit_push_insn): Pass the number bytes to push to
14791 targetm.calls.push_argument and pass 0 if ARGS_ADDR is 0.
14792 * hooks.c (hook_bool_uint_true): New.
14793 * hooks.h (hook_bool_uint_true): Likewise.
14794 * rtlanal.c (nonzero_bits1): Replace PUSH_ARGS with
14795 targetm.calls.push_argument (0).
14796 * target.def (push_argument): Add a targetm.calls hook.
14797 * targhooks.c (default_push_argument): New.
14798 * targhooks.h (default_push_argument): Likewise.
14799 * config/bpf/bpf.h (PUSH_ARGS): Removed.
14800 * config/cr16/cr16.c (TARGET_PUSH_ARGUMENT): New.
14801 * config/cr16/cr16.h (PUSH_ARGS): Removed.
14802 * config/i386/i386.c (ix86_push_argument): New.
14803 (TARGET_PUSH_ARGUMENT): Likewise.
14804 * config/i386/i386.h (PUSH_ARGS): Removed.
14805 * config/m32c/m32c.c (TARGET_PUSH_ARGUMENT): New.
14806 * config/m32c/m32c.h (PUSH_ARGS): Removed.
14807 * config/nios2/nios2.h (PUSH_ARGS): Likewise.
14808 * config/pru/pru.h (PUSH_ARGS): Likewise.
14809 * doc/tm.texi.in: Remove PUSH_ARGS documentation. Add
14810 TARGET_PUSH_ARGUMENT hook.
14811 * doc/tm.texi: Regenerated.
14813 2021-06-17 Uroš Bizjak <ubizjak@gmail.com>
14816 * config/i386/i386-expand.c (expand_vector_set_var):
14817 Handle V2FS mode remapping. Pass TARGET_MMX_WITH_SSE to
14818 ix86_expand_vector_init_duplicate.
14819 (ix86_expand_vector_init_duplicate): Emit insv_1 for
14820 QImode for !TARGET_PARTIAL_REG_STALL.
14821 * config/i386/predicates.md (vec_setm_mmx_operand): New predicate.
14822 * config/i386/mmx.md (vec_setv2sf): Use vec_setm_mmx_operand
14823 as operand 2 predicate. Call ix86_expand_vector_set_var
14824 for non-constant index operand.
14825 (vec_setv2si): Ditto.
14826 (vec_setv4hi): Ditto.
14827 (vec_setv8qi): ditto.
14829 2021-06-17 Aldy Hernandez <aldyh@redhat.com>
14831 PR tree-optimization/100790
14832 * gimple-range.cc (range_of_builtin_call): Cleanup clz and ctz
14835 2021-06-17 Martin Liska <mliska@suse.cz>
14837 * doc/invoke.texi: Use consistently -O1 instead of -O.
14839 2021-06-17 Martin Liska <mliska@suse.cz>
14841 * gcov-io.h: Update documentation entry about string format.
14843 2021-06-17 Marius Hillenbrand <mhillen@linux.ibm.com>
14846 * config/s390/vecintrin.h (vec_doublee): Fix to use
14847 __builtin_s390_vflls.
14848 (vec_floate): Fix to use __builtin_s390_vflrd.
14850 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
14852 * dominance.c (get_dominated_to_depth): Return auto_vec<basic_block>.
14853 * dominance.h (get_dominated_to_depth): Likewise.
14854 (get_all_dominated_blocks): Likewise.
14855 * cfgcleanup.c (delete_unreachable_blocks): Adjust.
14856 * gcse.c (hoist_code): Likewise.
14857 * tree-cfg.c (remove_edge_and_dominated_blocks): Likewise.
14858 * tree-parloops.c (oacc_entry_exit_ok): Likewise.
14859 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
14860 * tree-ssa-phiprop.c (pass_phiprop::execute): Likewise.
14862 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
14864 * dominance.c (get_dominated_by_region): Return auto_vec<basic_block>.
14865 * dominance.h (get_dominated_by_region): Likewise.
14866 * tree-cfg.c (gimple_duplicate_sese_region): Adjust.
14867 (gimple_duplicate_sese_tail): Likewise.
14868 (move_sese_region_to_fn): Likewise.
14870 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
14872 * dominance.c (get_dominated_by): Return auto_vec<basic_block>.
14873 * dominance.h (get_dominated_by): Likewise.
14874 * auto-profile.c (afdo_find_equiv_class): Adjust.
14875 * cfgloopmanip.c (duplicate_loop_to_header_edge): Likewise.
14876 * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
14877 * tree-cfg.c (test_linear_chain): Likewise.
14878 (test_diamond): Likewise.
14880 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
14882 * cfgloop.h (get_loop_hot_path): Return auto_vec<basic_block>.
14883 * cfgloopanal.c (get_loop_hot_path): Likewise.
14884 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise.
14886 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
14888 * cgraph.c (cgraph_node::collect_callers): Return
14889 auto_vec<cgraph_edge *>.
14890 * cgraph.h (cgraph_node::collect_callers): Likewise.
14891 * ipa-cp.c (create_specialized_node): Adjust.
14892 (decide_about_value): Likewise.
14893 (decide_whether_version_node): Likewise.
14894 * ipa-sra.c (process_isra_node_results): Likewise.
14896 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
14898 * vec.h (vl_ptr>::using_auto_storage): Handle null m_vec.
14899 (auto_vec<T, 0>::auto_vec): Define move constructor, and delete copy
14901 (auto_vec<T, 0>::operator=): Define move assignment and delete copy
14904 2021-06-17 Aldy Hernandez <aldyh@redhat.com>
14906 * gimple-range.cc (debug_seed_ranger): New.
14907 (dump_ranger): New.
14908 (debug_ranger): New.
14910 2021-06-17 Richard Biener <rguenther@suse.de>
14912 PR tree-optimization/54400
14913 * tree-vectorizer.h (enum slp_instance_kind): Add
14914 slp_inst_kind_bb_reduc.
14915 (reduction_fn_for_scalar_code): Declare.
14916 * tree-vect-data-refs.c (vect_slp_analyze_instance_dependence):
14917 Check SLP_INSTANCE_KIND instead of looking at the
14919 (vect_slp_analyze_instance_alignment): Likewise.
14920 * tree-vect-loop.c (reduction_fn_for_scalar_code): Export.
14921 * tree-vect-slp.c (vect_slp_linearize_chain): Split out
14922 chain linearization from vect_build_slp_tree_2 and generalize
14923 for the use of BB reduction vectorization.
14924 (vect_build_slp_tree_2): Adjust accordingly.
14925 (vect_optimize_slp): Elide permutes at the root of BB reduction
14927 (vectorizable_bb_reduc_epilogue): New function.
14928 (vect_slp_prune_covered_roots): Likewise.
14929 (vect_slp_analyze_operations): Use them.
14930 (vect_slp_check_for_constructors): Recognize associatable
14931 chains for BB reduction vectorization.
14932 (vectorize_slp_instance_root_stmt): Generate code for the
14933 BB reduction epilogue.
14935 2021-06-17 Andrew MacLeod <amacleod@redhat.com>
14937 * gimple-range-gori.cc (gori_compute::has_edge_range_p): Check with
14939 (gori_compute::may_recompute_p): New.
14940 (gori_compute::outgoing_edge_range_p): Perform recomputations.
14941 * gimple-range-gori.h (class gori_compute): Add prototype.
14943 2021-06-17 Andrew MacLeod <amacleod@redhat.com>
14945 * gimple-range-cache.cc (ranger_cache::range_on_edge): Always return
14946 true when a range can be calculated.
14947 * gimple-range.cc (gimple_ranger::dump_bb): Check has_edge_range_p.
14949 2021-06-16 Martin Sebor <msebor@redhat.com>
14951 * doc/invoke.texi (-Wmismatched-dealloc, -Wmismatched-new-delete):
14952 Correct documented defaults.
14954 2021-06-16 Andrew MacLeod <amacleod@redhat.com>
14956 * gimple-range-cache.cc (ranger_cache::ranger_cache): Initialize
14957 m_new_value_p directly.
14959 2021-06-16 Uroš Bizjak <ubizjak@gmail.com>
14962 * config/i386/i386-expand.c (expand_vec_perm_2perm_pblendv):
14963 Handle 64bit modes for TARGET_SSE4_1.
14964 (expand_vec_perm_pshufb2): Handle 64bit modes for TARGET_SSSE3.
14965 (expand_vec_perm_even_odd_pack): Handle V4HI mode.
14966 (expand_vec_perm_even_odd_1) <case E_V4HImode>: Expand via
14967 expand_vec_perm_pshufb2 for TARGET_SSSE3 and via
14968 expand_vec_perm_even_odd_pack for TARGET_SSE4_1.
14969 * config/i386/mmx.md (mmx_packusdw): New insn pattern.
14971 2021-06-16 Jonathan Wright <jonathan.wright@arm.com>
14973 * config/aarch64/aarch64-simd.md (aarch64_<sur><addsub>hn<mode>):
14974 Change to an expander that emits the correct instruction
14975 depending on endianness.
14976 (aarch64_<sur><addsub>hn<mode>_insn_le): Define.
14977 (aarch64_<sur><addsub>hn<mode>_insn_be): Define.
14979 2021-06-16 Jonathan Wright <jonathan.wright@arm.com>
14981 * config/aarch64/aarch64-simd-builtins.def: Split generator
14982 for aarch64_<su>qmovn builtins into scalar and vector
14984 * config/aarch64/aarch64-simd.md (aarch64_<su>qmovn<mode>_insn_le):
14986 (aarch64_<su>qmovn<mode>_insn_be): Define.
14987 (aarch64_<su>qmovn<mode>): Split into scalar and vector
14988 variants. Change vector variant to an expander that emits the
14989 correct instruction depending on endianness.
14991 2021-06-16 Jonathan Wright <jonathan.wright@arm.com>
14993 * config/aarch64/aarch64-simd-builtins.def: Split generator
14994 for aarch64_sqmovun builtins into scalar and vector variants.
14995 * config/aarch64/aarch64-simd.md (aarch64_sqmovun<mode>):
14996 Split into scalar and vector variants. Change vector variant
14997 to an expander that emits the correct instruction depending
14999 (aarch64_sqmovun<mode>_insn_le): Define.
15000 (aarch64_sqmovun<mode>_insn_be): Define.
15002 2021-06-16 Jonathan Wright <jonathan.wright@arm.com>
15004 * config/aarch64/aarch64-simd.md (aarch64_xtn<mode>_insn_le):
15005 Define - modeling zero-high-half semantics.
15006 (aarch64_xtn<mode>): Change to an expander that emits the
15007 appropriate instruction depending on endianness.
15008 (aarch64_xtn<mode>_insn_be): Define - modeling zero-high-half
15010 (aarch64_xtn2<mode>_le): Rename to...
15011 (aarch64_xtn2<mode>_insn_le): This.
15012 (aarch64_xtn2<mode>_be): Rename to...
15013 (aarch64_xtn2<mode>_insn_be): This.
15014 (vec_pack_trunc_<mode>): Emit truncation instruction instead
15016 * config/aarch64/iterators.md (Vnarrowd): Add Vnarrowd mode
15017 attribute iterator.
15019 2021-06-16 Martin Jambor <mjambor@suse.cz>
15021 PR tree-optimization/100453
15022 * tree-sra.c (create_access): Disqualify any const candidates
15023 which are written to.
15024 (sra_modify_expr): Do not store sub-replacements back to a const base.
15025 (handle_unscalarized_data_in_subtree): Likewise.
15026 (sra_modify_assign): Likewise. Earlier, use TREE_READONLy test
15027 instead of constant_decl_p.
15029 2021-06-16 Jakub Jelinek <jakub@redhat.com>
15031 PR middle-end/101062
15032 * stor-layout.c (finish_bitfield_representative): For fields in unions
15033 assume nextf is always NULL.
15034 (finish_bitfield_layout): Compute bit field representatives also in
15035 unions, but handle it as if each bitfield was the only field in the
15038 2021-06-16 Richard Biener <rguenther@suse.de>
15040 PR tree-optimization/101088
15041 * tree-ssa-loop-im.c (sm_seq_valid_bb): Only look for
15042 supported refs on edges. Do not assert same ref but
15043 different kind stores are unsuported but mark them so.
15044 (hoist_memory_references): Only look for supported refs
15047 2021-06-16 Roger Sayle <roger@nextmovesoftware.com>
15049 PR rtl-optimization/46235
15050 * config/i386/i386.md: New define_split for bt followed by cmov.
15051 (*bt<mode>_setcqi): New define_insn_and_split for bt followed by setc.
15052 (*bt<mode>_setncqi): New define_insn_and_split for bt then setnc.
15053 (*bt<mode>_setnc<mode>): New define_insn_and_split for bt followed
15054 by setnc with zero extension.
15056 2021-06-16 Richard Biener <rguenther@suse.de>
15058 PR tree-optimization/101083
15059 * tree-vect-slp.c (vect_slp_build_two_operator_nodes): Get
15060 vectype as argument.
15061 (vect_build_slp_tree_2): Adjust.
15063 2021-06-15 Martin Sebor <msebor@redhat.com>
15065 PR middle-end/100876
15066 * builtins.c: (gimple_call_return_array): Account for size_t
15067 mangling as either unsigned int or unsigned long
15069 2021-06-15 Jeff Law <jeffreyalaw@gmail.com>
15071 * compare-elim.c (try_eliminate_compare): Run DCE to clean things
15072 up before eliminating comparisons.
15074 2021-06-15 Aldy Hernandez <aldyh@redhat.com>
15076 * range-op.cc (operator_bitwise_or::wi_fold): Make sure
15077 nonzero|X is nonzero.
15078 (range_op_bitwise_and_tests): Add tests for above.
15080 2021-06-15 Carl Love <cel@us.ibm.com>
15083 * config/rs6000/rs6000-builtin.def (VCMPEQUT): Fix the ICODE for the
15085 (VRLQ, VSLQ, VSRQ, VSRAQ): Remove unused BU_P10_OVERLOAD_2
15088 2021-06-15 Tobias Burnus <tobias@codesourcery.com>
15091 * gimplify.c (enum gimplify_defaultmap_kind): Add GDMK_SCALAR_TARGET.
15092 (struct gimplify_omp_ctx): Extend defaultmap array by one.
15093 (new_omp_context): Init defaultmap[GDMK_SCALAR_TARGET].
15094 (omp_notice_variable): Update type classification for Fortran.
15095 (gimplify_scan_omp_clauses): Update calls for new argument; handle
15096 GDMK_SCALAR_TARGET; for Fortran, GDMK_POINTER avoid GOVD_MAP_0LEN_ARRAY.
15097 * langhooks-def.h (lhd_omp_scalar_p): Add 'ptr_ok' argument.
15098 * langhooks.c (lhd_omp_scalar_p): Likewise.
15099 (LANG_HOOKS_OMP_ALLOCATABLE_P, LANG_HOOKS_OMP_SCALAR_TARGET_P): New.
15100 (LANG_HOOKS_DECLS): Add them.
15101 * langhooks.h (struct lang_hooks_for_decls): Add new hooks, update
15102 omp_scalar_p pointer type to include the new bool argument.
15104 2021-06-15 David Malcolm <dmalcolm@redhat.com>
15106 * doc/analyzer.texi
15107 (Special Functions for Debugging the Analyzer): Add
15108 __analyzer_dump_capacity.
15110 2021-06-15 Jakub Jelinek <jakub@redhat.com>
15113 * expr.c (expand_expr_real_2) <case VEC_PACK_FIX_TRUNC_EXPR,
15114 case VEC_PACK_TRUNC_EXPR>: Clear subtarget when changing mode.
15116 2021-06-15 Richard Biener <rguenther@suse.de>
15118 * cfgloopanal.c (mark_irreducible_loops): Use a dominance
15119 check to identify loop latches.
15120 * cfgloop.c (verify_loop_structure): Likewise.
15121 * loop-init.c (apply_loop_flags): Allow marked irreducible
15122 regions even with multiple latches.
15123 * predict.c (rebuild_frequencies): Simplify.
15125 2021-06-15 Richard Biener <rguenther@suse.de>
15127 * tree-ssa-threadupdate.c
15128 (jump_thread_path_registry::mark_threaded_blocks): Assert we
15129 have marked irreducible regions.
15131 2021-06-14 Martin Sebor <msebor@redhat.com>
15134 * builtins.c (gimple_call_return_array): Check for attribute fn spec.
15135 Handle calls to placement new.
15136 (ndecl_dealloc_argno): Avoid placement delete.
15138 2021-06-14 Peter Bergner <bergner@linux.ibm.com>
15141 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_mma_builtin): Use
15142 create_tmp_reg_or_ssa_name().
15144 2021-06-14 Andrew MacLeod <amacleod@redhat.com>
15146 * gimple-range-cache.cc (ranger_cache::ranger_cache): Adjust.
15147 (ranger_cache::enable_new_values): Set to specified value and
15148 return the old value.
15149 (ranger_cache::disable_new_values): Delete.
15150 (ranger_cache::fill_block_cache): Disable non 1st order derived
15152 * gimple-range-cache.h (ranger_cache): Adjust prototypes.
15153 * gimple-range.cc (gimple_ranger::range_of_expr): Adjust.
15155 2021-06-14 Uroš Bizjak <ubizjak@gmail.com>
15158 * config/i386/i386-expand.c (ix86_vectorize_vec_perm_const):
15159 Return true early when testing with V2HImode.
15160 * config/i386/mmx.md (*punpckwd): Split to sse2_pshuflw_1.
15162 2021-06-14 Christophe Lyon <christophe.lyon@linaro.org>
15164 * config/arm/mve.md (mve_vec_unpack<US>_lo_<mode>): New pattern.
15165 (mve_vec_unpack<US>_hi_<mode>): New pattern.
15166 (@mve_vec_pack_trunc_lo_<mode>): New pattern.
15167 (mve_vmovntq_<supf><mode>): Prefix with '@'.
15168 * config/arm/neon.md (vec_unpack<US>_hi_<mode>): Move to
15170 (vec_unpack<US>_lo_<mode>): Likewise.
15171 (vec_pack_trunc_<mode>): Rename to
15172 neon_quad_vec_pack_trunc_<mode>.
15173 * config/arm/vec-common.md (vec_unpack<US>_hi_<mode>): New
15175 (vec_unpack<US>_lo_<mode>): New.
15176 (vec_pack_trunc_<mode>): New.
15178 2021-06-14 Richard Biener <rguenther@suse.de>
15180 PR tree-optimization/100934
15181 * tree-ssa-dom.c (pass_dominator::execute): Properly
15182 mark irreducible regions.
15184 2021-06-14 Martin Liska <mliska@suse.cz>
15186 * doc/invoke.texi: Put r{...} on the same line as @item.
15188 2021-06-14 Martin Liska <mliska@suse.cz>
15190 * doc/invoke.texi: Add missing newline.
15192 2021-06-14 Martin Liska <mliska@suse.cz>
15194 * doc/invoke.texi: Remove '+' charasters.
15196 2021-06-14 Claudiu Zissulescu <claziss@synopsys.com>
15198 * config.gcc (arc): Add support for with_cpu option.
15199 * config/arc/arc.h (OPTION_DEFAULT_SPECS): Add fpu.
15201 2021-06-14 Richard Biener <rguenther@suse.de>
15203 PR tree-optimization/101031
15204 * tree-ssa-strlen.c (maybe_invalidate): Increment max_size
15205 instead of size when accounting for a possibly string
15208 2021-06-14 Martin Liska <mliska@suse.cz>
15210 * gimple-ssa-evrp.c (pointer_equiv_analyzer::~pointer_equiv_analyzer): Use delete[].
15212 2021-06-14 Aldy Hernandez <aldyh@redhat.com>
15214 * value-query.cc (gimple_range_global): Call get_range_global
15215 if called after inlining.
15217 2021-06-13 Uroš Bizjak <ubizjak@gmail.com>
15220 * config/i386/i386-expand.c (expand_vec_perm_pshufb):
15221 Emit constant permutation insn directly from here.
15223 2021-06-13 Trevor Saunders <tbsaunde@tbsaunde.org>
15225 * attribs.c (find_attribute_namespace): Iterate over vec<> with
15227 * auto-profile.c (afdo_find_equiv_class): Likewise.
15228 * gcc.c (do_specs_vec): Likewise.
15229 (do_spec_1): Likewise.
15230 (driver::set_up_specs): Likewise.
15231 * gimple-loop-jam.c (any_access_function_variant_p): Likewise.
15232 * gimple-ssa-store-merging.c (compatible_load_p): Likewise.
15233 (imm_store_chain_info::try_coalesce_bswap): Likewise.
15234 (imm_store_chain_info::coalesce_immediate_stores): Likewise.
15235 (get_location_for_stmts): Likewise.
15236 * graphite-poly.c (print_iteration_domains): Likewise.
15237 (free_poly_bb): Likewise.
15238 (remove_gbbs_in_scop): Likewise.
15239 (free_scop): Likewise.
15240 (dump_gbb_cases): Likewise.
15241 (dump_gbb_conditions): Likewise.
15242 (print_pdrs): Likewise.
15243 (print_scop): Likewise.
15244 * ifcvt.c (cond_move_process_if_block): Likewise.
15245 * lower-subreg.c (decompose_multiword_subregs): Likewise.
15246 * regcprop.c (pass_cprop_hardreg::execute): Likewise.
15247 * sanopt.c (sanitize_rewrite_addressable_params): Likewise.
15248 * sel-sched-dump.c (dump_insn_vector): Likewise.
15249 * store-motion.c (store_ops_ok): Likewise.
15250 (store_killed_in_insn): Likewise.
15251 * timevar.c (timer::named_items::print): Likewise.
15252 * tree-cfgcleanup.c (cleanup_control_flow_pre): Likewise.
15253 (cleanup_tree_cfg_noloop): Likewise.
15254 * tree-data-ref.c (dump_data_references): Likewise.
15255 (print_dir_vectors): Likewise.
15256 (print_dist_vectors): Likewise.
15257 (dump_data_dependence_relations): Likewise.
15258 (dump_dist_dir_vectors): Likewise.
15259 (dump_ddrs): Likewise.
15260 (create_runtime_alias_checks): Likewise.
15261 (free_subscripts): Likewise.
15262 (save_dist_v): Likewise.
15263 (save_dir_v): Likewise.
15264 (invariant_access_functions): Likewise.
15265 (same_access_functions): Likewise.
15266 (access_functions_are_affine_or_constant_p): Likewise.
15267 (find_data_references_in_stmt): Likewise.
15268 (graphite_find_data_references_in_stmt): Likewise.
15269 (free_dependence_relations): Likewise.
15270 (free_data_refs): Likewise.
15271 * tree-inline.c (copy_debug_stmts): Likewise.
15272 * tree-into-ssa.c (dump_currdefs): Likewise.
15273 (rewrite_update_phi_arguments): Likewise.
15274 * tree-ssa-propagate.c (clean_up_loop_closed_phi): Likewise.
15275 * tree-vect-data-refs.c (vect_analyze_possibly_independent_ddr):
15277 (vect_slp_analyze_node_dependences): Likewise.
15278 (vect_slp_analyze_instance_dependence): Likewise.
15279 (vect_record_base_alignments): Likewise.
15280 (vect_get_peeling_costs_all_drs): Likewise.
15281 (vect_peeling_supportable): Likewise.
15282 * tree-vectorizer.c (vec_info::~vec_info): Likewise.
15283 (vec_info::free_stmt_vec_infos): Likewise.
15285 2021-06-13 Jeff Law <jeffreyalaw@gmail.com>
15287 * config/h8300/logical.md (<code>qi3_1<cczn>): New pattern.
15288 (andqi3_1<cczn>): Removed.
15289 (<ors>qi3_1): Do not split for IOR/XOR a single bit.
15290 (H8/SX bit logicals): Split out from other patterns.
15291 * config/h8300/multiply.md (mulqihi3_const<cczn>): Renamed from
15292 mulqihi3_const_clobber_flags.
15293 (mulqihi3<cczn>, mulhisi3_const<cczn>, mulhisi3<cczn>): Similarly
15295 2021-06-13 H.J. Lu <hjl.tools@gmail.com>
15298 * config/i386/i386.c (ix86_expand_prologue): Set red_zone_used
15299 to true if red zone is used.
15300 (ix86_output_indirect_jmp): Replace ix86_red_zone_size with
15301 ix86_red_zone_used.
15302 * config/i386/i386.h (machine_function): Add red_zone_used.
15303 (ix86_red_zone_size): Removed.
15304 (ix86_red_zone_used): New.
15305 * config/i386/i386.md (peephole2 patterns): Replace
15306 ix86_red_zone_size with ix86_red_zone_used.
15308 2021-06-12 Jason Merrill <jason@redhat.com>
15310 * doc/extend.texi (unused variable attribute): Applies to
15311 structure fields as well.
15313 2021-06-12 Eugene Rozenfeld <erozen@microsoft.com>
15315 * auto-profile.c (read_profile): fix a typo in an error string
15317 2021-06-11 Thomas Schwinge <thomas@codesourcery.com>
15319 * tree-pretty-print.h (dump_omp_clauses): Add 'bool = true'
15321 * tree-pretty-print.c (dump_omp_clauses): Update.
15322 (dump_generic_node) <OMP_CLAUSE>: Use it.
15324 2021-06-11 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
15327 * config/arm/arm_mve.h (__arm_vld1q): Change __ARM_mve_coerce(p0,
15328 int8_t const *) to __ARM_mve_coerce1(p0, int8_t *) in the argument for
15329 the polymorphic variants matching code.
15330 (__arm_vld1q_z): Likewise.
15331 (__arm_vld2q): Likewise.
15332 (__arm_vld4q): Likewise.
15333 (__arm_vldrbq_gather_offset): Likewise.
15334 (__arm_vldrbq_gather_offset_z): Likewise.
15336 2021-06-11 Roger Sayle <roger@nextmovesoftware.com>
15338 PR tree-optimization/96392
15339 * fold-const.h (tree_expr_maybe_real_minus_zero_p): Fix prototype.
15341 2021-06-11 Roger Sayle <roger@nextmovesoftware.com>
15343 PR tree-optimization/96392
15344 * fold-const.c (fold_real_zero_addition_p): Take both arguments
15345 of the addition or subtraction, not just the zero. Use this
15346 other argument in tests for signaling NaNs and signed zeros.
15347 (tree_expr_maybe_real_minus_zero_p): New predicate.
15348 * fold-const.h (fold_real_zero_addition_p): Update prototype.
15349 (tree_expr_maybe_real_minus_zero_p): New function prototype.
15350 * match.pd: Update calls to fold_real_zero_addition_p.
15351 Replace HONOR_NANS with tree_expr_maybe_nan_p.
15352 Replace HONOR_SIGNED_ZEROS with tree_expr_maybe_real_minus_zero_p.
15353 Replace HONOR_SNANS with tree_expr_maybe_signaling_nan_p.
15354 * tree-ssa-reassoc.c (eliminate_using_constants): Update
15355 call to fold_real_zero_addition_p.
15357 2021-06-11 Richard Biener <rguenther@suse.de>
15359 PR tree-optimization/101025
15360 * tree-ssa-loop-im.c (sm_seq_valid_bb): Make sure to process
15361 all refs that require dependence checking.
15363 2021-06-11 Richard Biener <rguenther@suse.de>
15365 PR tree-optimization/101028
15366 * tree-vect-slp.c (vect_build_slp_tree_2): When SLP
15367 reassoc discovery fails fatally, mark appropriate lanes
15370 2021-06-11 Richard Biener <rguenther@suse.de>
15372 PR tree-optimization/101026
15373 * tree-vect-slp.c (vect_build_slp_tree_2): Make sure we
15374 have a representative for the associated chain nodes.
15376 2021-06-11 Jakub Jelinek <jakub@redhat.com>
15378 PR rtl-optimization/101008
15379 * simplify-rtx.c (relational_result): New function.
15380 (simplify_logical_relational_operation,
15381 simplify_relational_operation): Use it.
15383 2021-06-11 Jakub Jelinek <jakub@redhat.com>
15386 * config/i386/sse.md (*vec_concat<mode>_0_1): Require TARGET_SSE2.
15388 2021-06-11 Uroš Bizjak <ubizjak@gmail.com>
15391 * config/i386/i386-expand.c (expand_vec_perm_pshufb): Return
15392 false if the permutation can be implemented with constant
15393 permutation instruction in wider mode.
15394 (canonicalize_vector_int_perm): Move above expand_vec_perm_pshufb.
15395 Handle V8QImode and V4HImode.
15397 2021-06-11 Martin Liska <mliska@suse.cz>
15399 PR gcov-profile/100788
15400 * common.opt: Add new option.
15401 * coverage.c (coverage_begin_function): Emit warning instead on
15402 the internal compiler error.
15403 * doc/invoke.texi: Document the option.
15404 * toplev.c (process_options): Enable it by default.
15406 2021-06-11 Richard Biener <rguenther@suse.de>
15408 PR middle-end/101009
15409 * tree-data-ref.c (build_classic_dist_vector_1): Make sure
15410 to set *init_b to true when we encounter a constant equal
15412 (compute_affine_dependence): Also dump the actual DR_REF.
15414 2021-06-10 Aldy Hernandez <aldyh@redhat.com>
15416 PR tree-optimization/100984
15417 * gimple-ssa-evrp.c (ssa_equiv_stack): Use auto_vec for
15418 replacements table.
15419 (ssa_equiv_stack::~ssa_equiv_stack): Remove.
15421 2021-06-11 Kewen Lin <linkw@linux.ibm.com>
15423 * config/rs6000/rs6000.md
15424 (floatsi<SFDF:mode>2_lfiwax_<QHI:mode>_mem_zext): New
15425 define_insn_and_split.
15427 2021-06-11 Richard Biener <rguenther@suse.de>
15429 * tree-vect-slp.c (vect_build_slp_tree_2): Use stablesort
15430 to sort operands of the associative chain.
15432 2021-06-11 Richard Biener <rguenther@suse.de>
15434 * system.h (gcc_stablesort_r): Declare.
15435 * sort.cc (gcc_sort_r): Support stable sort.
15436 (gcc_stablesort_r): Define.
15437 * vec.h (vec<>::stablesort): Add.
15439 2021-06-10 Uroš Bizjak <ubizjak@gmail.com>
15442 * config/i386/i386-expand.c (ix86_split_mmx_punpck):
15443 Handle V2SF mode. Emit SHUFPS to fixup unpack-high for V2SF mode.
15444 (expand_vec_perm_blend): Handle 64bit modes for TARGET_SSE4_1.
15445 (expand_vec_perm_pshufb): Handle 64bit modes for TARGET_SSSE3.
15446 (expand_vec_perm_pblendv): Handle 64bit modes for TARGET_SSE4_1.
15447 (expand_vec_perm_interleave2): Handle 64bit modes.
15448 (expand_vec_perm_even_odd_pack): Handle V8QI mode.
15449 (expand_vec_perm_even_odd_1): Ditto.
15450 (ix86_vectorize_vec_perm_const): Ditto.
15451 * config/i386/i386.md (UNSPEC_PSHUFB): Move from ...
15452 * config/i386/sse.md: ... here.
15453 * config/i386/mmx.md (*vec_interleave_lowv2sf):
15454 New insn_and_split pattern.
15455 (*vec_interleave_highv2sf): Ditto.
15456 (mmx_pshufbv8qi3): New insn pattern.
15457 (*mmx_pblendw): Ditto.
15459 2021-06-10 Peter Bergner <bergner@linux.ibm.com>
15461 * config/rs6000/rs6000-builtin.def (build_pair): New built-in.
15462 (build_acc): Likewise.
15463 * config/rs6000/rs6000-call.c (mma_expand_builtin): Swap assemble
15464 source operands in little-endian mode.
15465 (rs6000_gimple_fold_mma_builtin): Handle VSX_BUILTIN_BUILD_PAIR.
15466 (mma_init_builtins): Likewise.
15467 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Handle endianness
15468 ordering for the MMA assemble and build source operands.
15469 * doc/extend.texi (__builtin_vsx_build_acc, __builtin_mma_build_pair):
15471 (__builtin_mma_assemble_acc, __builtin_mma_assemble_pair): Remove
15474 2021-06-10 Jeff Law <jeffreyalaw@gmail.com>
15476 * config/h8300/h8300.c (select_cc_mode): Handle MEM. Use
15478 * config/h8300/extensions.md: Replace _clobber_flags patterns
15481 2021-06-10 Robin Dapp <rdapp@linux.ibm.com>
15483 * config/s390/vector.md (vcond_mask_<mode><mode>): Change to
15484 (vcond_mask_<mode><tointvec>): this.
15486 2021-06-10 Andrew Stubbs <ams@codesourcery.com>
15487 Thomas Schwinge <thomas@codesourcery.com>
15489 * omp-builtins.def (BUILT_IN_GOACC_ENTER_EXIT_DATA): Split into...
15490 (BUILT_IN_GOACC_ENTER_DATA, BUILT_IN_GOACC_EXIT_DATA): ... these.
15491 * gimple.h (enum gf_mask): Split
15492 'GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA' into
15493 'GF_OMP_TARGET_KIND_OACC_ENTER_DATA' and
15494 'GF_OMP_TARGET_KIND_OACC_EXIT_DATA'.
15495 (is_gimple_omp_oacc): Update.
15496 * gimple-pretty-print.c (dump_gimple_omp_target): Likewise.
15497 * gimplify.c (gimplify_omp_target_update): Likewise.
15498 * omp-expand.c (expand_omp_target, build_omp_regions_1)
15499 (omp_make_gimple_edges): Likewise.
15500 * omp-low.c (check_omp_nesting_restrictions, lower_omp_target):
15503 2021-06-10 Aldy Hernandez <aldyh@redhat.com>
15505 * value-query.cc (value_query::value_on_edge): Rename name to
15507 (range_query::range_on_edge): Same.
15508 (range_query::value_of_expr): Same.
15509 (range_query::value_on_edge): Same.
15510 * value-query.h (class value_query): Same.
15511 (class range_query): Same.
15513 2021-06-10 Richard Biener <rguenther@suse.de>
15515 PR tree-optimization/101003
15516 * tree-vect-slp.c (vect_build_slp_tree_2): Appropriately
15517 use the pattern stmt defs when linearizing a chain.
15519 2021-06-10 Jakub Jelinek <jakub@redhat.com>
15522 * ifcvt.c (noce_get_alt_condition, noce_try_abs): Use
15523 prev_nonnote_nondebug_insn instead of prev_nonnote_insn.
15525 2021-06-10 Clement Chigot <clement.chigot@atos.net>
15527 * config/rs6000/aix71.h (ASM_CPU_SPEC): Add Power10 directive.
15528 * config/rs6000/aix72.h (ASM_CPU_SPEC): Likewise.
15530 2021-06-09 Andrew Pinski <apinski@marvell.com>
15532 PR tree-optimization/100925
15533 * match.pd (a ? CST1 : CST2): Limit transformations
15534 that would produce a negative to integeral types only.
15535 Change !POINTER_TYPE_P to INTEGRAL_TYPE_P also.
15537 2021-06-09 Jeff Law <jeffreyalaw@gmail.com>
15540 2021-06-09 Jeff Law <jeffreyalaw@gmail.com>
15542 * doc/tm.texi: Correctly update.
15544 2021-06-09 Jeff Law <jeffreyalaw@gmail.com>
15546 * doc/tm.texi: Correctly update.
15548 2021-06-09 H.J. Lu <hjl.tools@gmail.com>
15551 * doc/tm.texi.in (Trampolines): Add a missing blank line.
15553 2021-06-09 Paul Eggert <eggert@cs.ucla.edu>
15556 * doc/invoke.texi (Code Gen Options); Document that -fno-trampolines
15557 and -ftrampolines work only with Ada.
15558 * doc/tm.texi.in (Trampolines): Likewise.
15559 * doc/tm.texi: Regenerated.
15561 2021-06-09 Carl Love <cel@us.ibm.com>
15563 * config/rs6000/altivec.h (vec_signextll, vec_signexti, vec_signextq):
15564 Add define for new builtins.
15565 * config/rs6000/altivec.md(altivec_vreveti2): Add define_expand.
15566 * config/rs6000/rs6000-builtin.def (VSIGNEXTI, VSIGNEXTLL): Add
15567 overloaded builtin definitions.
15568 (VSIGNEXTSB2W, VSIGNEXTSH2W, VSIGNEXTSB2D, VSIGNEXTSH2D,VSIGNEXTSW2D,
15569 VSIGNEXTSD2Q): Add builtin expansions.
15570 (SIGNEXT): Add P10 overload definition.
15571 * config/rs6000/rs6000-call.c (P9V_BUILTIN_VEC_VSIGNEXTI, P9V_BUILTIN_VEC_VSIGNEXTLL,
15572 P10_BUILTIN_VEC_SIGNEXT): Add overloaded argument definitions.
15573 * config/rs6000/vsx.md (vsx_sign_extend_v2di_v1ti): Add define_insn.
15574 (vsignextend_v2di_v1ti, vsignextend_qi_<mode>, vsignextend_hi_<mode>,
15575 vsignextend_si_v2di)[VIlong]: Add define_expand.
15576 Make define_insn vsx_sign_extend_si_v2di visible.
15577 * doc/extend.texi: Add documentation for the vec_signexti,
15578 vec_signextll builtins and vec_signextq.
15580 2021-06-09 Carl Love <cel@us.ibm.com>
15582 * config/rs6000/rs6000.c (__fixkfti, __fixunskfti, __floattikf,
15583 __floatuntikf): Names changed to __fixkfti_sw, __fixunskfti_sw,
15584 __floattikf_sw, __floatuntikf_sw respectively.
15585 * config/rs6000/rs6000.md (floatti<mode>2, floatunsti<mode>2,
15586 fix_trunc<mode>ti2, fixuns_trunc<mode>ti2): Add
15587 define_insn for mode IEEE 128.
15589 2021-06-09 Carl Love <cel@us.ibm.com>
15591 * config/rs6000/altivec.md (altivec_vslq, altivec_vsrq):
15592 Rename to altivec_vslq_<mode>, altivec_vsrq_<mode>, mode VEC_TI.
15593 * config/rs6000/vector.md (VEC_TI): Was named VSX_TI in vsx.md.
15594 (vashlv1ti3): Change to vashl<mode>3, mode VEC_TI.
15595 (vlshrv1ti3): Change to vlshr<mode>3, mode VEC_TI.
15596 * config/rs6000/vsx.md (VSX_TI): Remove define_mode_iterator. Update
15597 uses of VSX_TI to VEC_TI.
15599 2021-06-09 Carl Love <cel@us.ibm.com>
15601 * config/rs6000/dfp.md (floattitd2, fixtdti2): New define_insns.
15603 2021-06-09 Carl Love <cel@us.ibm.com>
15605 * config/rs6000/altivec.h (vec_dive, vec_mod): Add define for new
15607 * config/rs6000/altivec.md (UNSPEC_VMULEUD, UNSPEC_VMULESD,
15608 UNSPEC_VMULOUD, UNSPEC_VMULOSD): New unspecs.
15609 (altivec_eqv1ti, altivec_gtv1ti, altivec_gtuv1ti, altivec_vmuleud,
15610 altivec_vmuloud, altivec_vmulesd, altivec_vmulosd, altivec_vrlq,
15611 altivec_vrlqmi, altivec_vrlqmi_inst, altivec_vrlqnm,
15612 altivec_vrlqnm_inst, altivec_vslq, altivec_vsrq, altivec_vsraq,
15613 altivec_vcmpequt_p, altivec_vcmpgtst_p, altivec_vcmpgtut_p): New
15615 (vec_widen_umult_even_v2di, vec_widen_smult_even_v2di,
15616 vec_widen_umult_odd_v2di, vec_widen_smult_odd_v2di, altivec_vrlqmi,
15617 altivec_vrlqnm): New define_expands.
15618 * config/rs6000/rs6000-builtin.def (VCMPEQUT_P, VCMPGTST_P,
15619 VCMPGTUT_P): Add macro expansions.
15620 (BU_P10V_AV_P): Add builtin predicate definition.
15621 (VCMPGTUT, VCMPGTST, VCMPEQUT, CMPNET, CMPGE_1TI,
15622 CMPGE_U1TI, CMPLE_1TI, CMPLE_U1TI, VNOR_V1TI_UNS, VNOR_V1TI, VCMPNET_P,
15623 VCMPAET_P, VMULEUD, VMULESD, VMULOUD, VMULOSD, VRLQ,
15624 VSLQ, VSRQ, VSRAQ, VRLQNM, DIV_V1TI, UDIV_V1TI, DIVES_V1TI, DIVEU_V1TI,
15625 MODS_V1TI, MODU_V1TI, VRLQMI): New macro expansions.
15626 (VRLQ, VSLQ, VSRQ, VSRAQ, DIVE, MOD): New overload expansions.
15627 * config/rs6000/rs6000-call.c (P10_BUILTIN_VCMPEQUT,
15628 P10V_BUILTIN_CMPGE_1TI, P10V_BUILTIN_CMPGE_U1TI,
15629 P10V_BUILTIN_VCMPGTUT, P10V_BUILTIN_VCMPGTST,
15630 P10V_BUILTIN_CMPLE_1TI, P10V_BUILTIN_VCMPLE_U1TI,
15631 P10V_BUILTIN_DIV_V1TI, P10V_BUILTIN_UDIV_V1TI,
15632 P10V_BUILTIN_VMULESD, P10V_BUILTIN_VMULEUD,
15633 P10V_BUILTIN_VMULOSD, P10V_BUILTIN_VMULOUD,
15634 P10V_BUILTIN_VNOR_V1TI, P10V_BUILTIN_VNOR_V1TI_UNS,
15635 P10V_BUILTIN_VRLQ, P10V_BUILTIN_VRLQMI,
15636 P10V_BUILTIN_VRLQNM, P10V_BUILTIN_VSLQ,
15637 P10V_BUILTIN_VSRQ, P10V_BUILTIN_VSRAQ,
15638 P10V_BUILTIN_VCMPGTUT_P, P10V_BUILTIN_VCMPGTST_P,
15639 P10V_BUILTIN_VCMPEQUT_P, P10V_BUILTIN_VCMPGTUT_P,
15640 P10V_BUILTIN_VCMPGTST_P, P10V_BUILTIN_CMPNET,
15641 P10V_BUILTIN_VCMPNET_P, P10V_BUILTIN_VCMPAET_P,
15642 P10V_BUILTIN_DIVES_V1TI, P10V_BUILTIN_MODS_V1TI,
15643 P10V_BUILTIN_MODU_V1TI):
15644 New overloaded definitions.
15645 (rs6000_gimple_fold_builtin) [P10V_BUILTIN_VCMPEQUT,
15646 P10V_BUILTIN_CMPNET, P10V_BUILTIN_CMPGE_1TI,
15647 P10V_BUILTIN_CMPGE_U1TI, P10V_BUILTIN_VCMPGTUT,
15648 P10V_BUILTIN_VCMPGTST, P10V_BUILTIN_CMPLE_1TI,
15649 P10V_BUILTIN_CMPLE_U1TI]: New case statements.
15650 (rs6000_init_builtins) [bool_V1TI_type_node, int_ftype_int_v1ti_v1ti]:
15652 (altivec_init_builtins): New E_V1TImode case statement.
15653 (builtin_function_type)[P10_BUILTIN_128BIT_VMULEUD,
15654 P10_BUILTIN_128BIT_VMULOUD, P10_BUILTIN_128BIT_DIVEU_V1TI,
15655 P10_BUILTIN_128BIT_MODU_V1TI, P10_BUILTIN_CMPGE_U1TI,
15656 P10_BUILTIN_VCMPGTUT, P10_BUILTIN_VCMPEQUT]: New case statements.
15657 * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute) [E_TImode,
15658 E_V1TImode]: New case statements.
15659 * config/rs6000/rs6000.h (rs6000_builtin_type_index): New enum
15660 value RS6000_BTI_bool_V1TI.
15661 * config/rs6000/vector.md (vector_gtv1ti,vector_nltv1ti,
15662 vector_gtuv1ti, vector_nltuv1ti, vector_ngtv1ti, vector_ngtuv1ti,
15663 vector_eq_v1ti_p, vector_ne_v1ti_p, vector_ae_v1ti_p,
15664 vector_gt_v1ti_p, vector_gtu_v1ti_p, vrotlv1ti3, vashlv1ti3,
15665 vlshrv1ti3, vashrv1ti3): New define_expands.
15666 * config/rs6000/vsx.md (UNSPEC_VSX_DIVSQ, UNSPEC_VSX_DIVUQ,
15667 UNSPEC_VSX_DIVESQ, UNSPEC_VSX_DIVEUQ, UNSPEC_VSX_MODSQ,
15668 UNSPEC_VSX_MODUQ): New unspecs.
15669 (mulv2di3, vsx_div_v1ti, vsx_udiv_v1ti, vsx_dives_v1ti,
15670 vsx_diveu_v1ti, vsx_mods_v1ti, vsx_modu_v1ti, xxswapd_v1ti): New
15672 (vcmpnet): New define_expand.
15673 * doc/extend.texi: Add documentation for the new builtins vec_rl,
15674 vec_rlmi, vec_rlnm, vec_sl, vec_sr, vec_sra, vec_mule, vec_mulo,
15675 vec_div, vec_dive, vec_mod, vec_cmpeq, vec_cmpne, vec_cmpgt, vec_cmplt,
15676 vec_cmpge, vec_cmple, vec_all_eq, vec_all_ne, vec_all_gt, vec_all_lt,
15677 vec_all_ge, vec_all_le, vec_any_eq, vec_any_ne, vec_any_gt, vec_any_lt,
15678 vec_any_ge, vec_any_le.
15680 2021-06-09 Carl Love <cel@us.ibm.com>
15682 * config/rs6000/altivec.md (altivec_vrl<VI_char>mi): Fix
15683 bug in argument generation.
15685 2021-06-09 Christophe Lyon <christophe.lyon@linaro.org>
15687 * config/arm/iterators.md (<supf>): Remove VCLZQ_U, VCLZQ_S.
15689 * config/arm/mve.md (mve_vclzq_<supf><mode>): Add '@' prefix,
15690 remove <supf> iterator.
15691 (mve_vclzq_u<mode>): New.
15692 * config/arm/neon.md (clz<mode>2): Rename to neon_vclz<mode>.
15693 (neon_vclz<mode): Move to ...
15694 * config/arm/unspecs.md (VCLZQ_U, VCLZQ_S): Remove.
15695 * config/arm/vec-common.md: ... here. Add support for MVE.
15697 2021-06-09 Christophe Lyon <christophe.lyon@linaro.org>
15699 * config/arm/mve.md (mve_vhaddq_<supf><mode>): Prefix with '@'.
15700 (@mve_vrhaddq_<supf><mode): Likewise.
15701 * config/arm/neon.md (neon_v<r>hadd<sup><mode>): Likewise.
15702 * config/arm/vec-common.md (avg<mode>3_floor, uavg<mode>3_floor)
15703 (avg<mode>3_ceil", uavg<mode>3_ceil): New patterns.
15705 2021-06-09 imba-tjd <109224573@qq.com>
15707 * doc/invoke.texi: Fix typo.
15709 2021-06-09 Roger Sayle <roger@nextmovesoftware.com>
15711 PR middle-end/53267
15712 * fold-const-call.c (fold_const_call_sss) [CASE_CFN_FMOD]:
15713 Support evaluation of fmod/fmodf/fmodl at compile-time.
15715 2021-06-09 Richard Biener <rguenther@suse.de>
15717 PR tree-optimization/100981
15718 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
15719 gimple_get_lhs to also handle calls.
15720 * tree-vect-slp-patterns.c (complex_pattern::build): Transfer
15723 2021-06-09 Richard Biener <rguenther@suse.de>
15725 PR tree-optimization/97832
15726 * tree-vectorizer.h (_slp_tree::failed): New.
15727 * tree-vect-slp.c (_slp_tree::_slp_tree): Initialize
15729 (_slp_tree::~_slp_tree): Free failed.
15730 (vect_build_slp_tree): Retain failed nodes and record
15731 matches in them, copying that back out when running
15732 into a cached fail. Dump start and end of discovery.
15733 (dt_sort_cmp): New.
15734 (vect_build_slp_tree_2): Handle associatable chains
15735 together doing more aggressive operand swapping.
15737 2021-06-09 H.J. Lu <hjl.tools@gmail.com>
15740 * config.gcc (gcc_cv_initfini_array): Set to yes for Linux and
15742 * doc/install.texi: Require glibc 2.1 and binutils 2.12 for
15743 Linux and GNU targets.
15745 2021-06-09 Richard Biener <rguenther@suse.de>
15747 * tree-vect-stmts.c (vect_is_simple_use): Always get dt
15750 2021-06-09 Claudiu Zissulescu <claziss@synopsys.com>
15752 * config/arc/arc.md (loop_end): Change it to
15753 define_insn_and_split.
15755 2021-06-09 Claudiu Zissulescu <claziss@synopsys.com>
15757 * config/arc/arc.md (maddhisi4): Use VMAC2H instruction.
15758 (machi): New pattern.
15759 (umaddhisi4): Use VMAC2HU instruction.
15760 (umachi): New pattern.
15762 2021-06-09 Claudiu Zissulescu <claziss@synopsys.com>
15764 * config/arc/arc-protos.h (arc_split_move_p): New prototype.
15765 * config/arc/arc.c (arc_split_move_p): New function.
15766 (arc_split_move): Clean up.
15767 * config/arc/arc.md (movdi_insn): Clean up, use arc_split_move_p.
15768 (movdf_insn): Likewise.
15769 * config/arc/simdext.md (mov<VWH>_insn): Likewise.
15771 2021-06-09 Uroš Bizjak <ubizjak@gmail.com>
15774 * config/i386/i386.c (print_operand_address_as): Rename "no_rip"
15775 argument to "raw". Do not emit segment overrides when "raw" is true.
15777 2021-06-09 Martin Liska <mliska@suse.cz>
15779 * doc/gcov.texi: Create a proper JSON files.
15780 * doc/invoke.texi: Remove dots in order to make it a valid
15783 2021-06-09 Xionghu Luo <luoxhu@linux.ibm.com>
15785 * config/rs6000/rs6000-p8swap.c (pattern_is_rotate64): New.
15786 (insn_is_load_p): Use pattern_is_rotate64.
15787 (insn_is_swap_p): Likewise.
15788 (quad_aligned_load_p): Likewise.
15789 (const_load_sequence_p): Likewise.
15790 (replace_swapped_aligned_load): Likewise.
15791 (recombine_lvx_pattern): Likewise.
15792 (recombine_stvx_pattern): Likewise.
15794 2021-06-09 Andrew MacLeod <amacleod@redhat.com>
15796 * gimple-range-gori.cc (gori_compute::outgoing_edge_range_p): Use a
15797 fur_stmt source record.
15798 * gimple-range.cc (fur_source::get_operand): Generic range query.
15799 (fur_source::get_phi_operand): New.
15800 (fur_source::register_dependency): New.
15801 (fur_source::query): New.
15802 (class fur_edge): New. Edge source for operands.
15803 (fur_edge::fur_edge): New.
15804 (fur_edge::get_operand): New.
15805 (fur_edge::get_phi_operand): New.
15806 (fur_edge::query): New.
15807 (fur_stmt::fur_stmt): New.
15808 (fur_stmt::get_operand): New.
15809 (fur_stmt::get_phi_operand): New.
15810 (fur_stmt::query): New.
15811 (class fur_depend): New. Statement source and process dependencies.
15812 (fur_depend::fur_depend): New.
15813 (fur_depend::register_dependency): New.
15814 (class fur_list): New. List source for operands.
15815 (fur_list::fur_list): New.
15816 (fur_list::get_operand): New.
15817 (fur_list::get_phi_operand): New.
15818 (fold_range): New. Instantiate appropriate fur_source class and fold.
15819 (fold_using_range::range_of_range_op): Use new API.
15820 (fold_using_range::range_of_address): Ditto.
15821 (fold_using_range::range_of_phi): Ditto.
15822 (imple_ranger::fold_range_internal): Use fur_depend class.
15823 (fold_using_range::range_of_ssa_name_with_loop_info): Use new API.
15824 * gimple-range.h (class fur_source): Now a base class.
15825 (class fur_stmt): New.
15826 (fold_range): New prototypes.
15827 (fur_source::fur_source): Delete.
15829 2021-06-08 Andrew Pinski <apinski@marvell.com>
15831 PR tree-optimization/25290
15832 * tree-ssa-phiopt.c (xor_replacement): Delete.
15833 (tree_ssa_phiopt_worker): Delete use of xor_replacement.
15834 (match_simplify_replacement): Allow one cheap preparation
15835 statement that can be moved to before the if.
15837 2021-06-08 Pat Haugen <pthaugen@linux.ibm.com>
15839 * config/rs6000/power10.md (power10-fused-load, power10-fused-store,
15840 power10-fused_alu, power10-fused-vec, power10-fused-branch): New.
15842 2021-06-08 Jeff Law <jeffreyalaw@gmail.com>
15844 * config/h8300/logical.md (andqi3_1): Move BCLR case into define_insn_and_split.
15845 Create length attribute on define_insn_and_split. Only split for cases which we
15847 (andqi3_1<cczn>): Renamed from andqi3_1_clobber_flags. Only handle AND here and
15848 fix length computation.
15849 (b<code><mode>msx): Combine QImode and HImode H8/SX patterns using iterator.
15851 2021-06-08 Richard Biener <rguenther@suse.de>
15853 PR tree-optimization/100923
15854 * tree-ssa-sccvn.c (valueize_refs_1): Take a pointer to
15855 the operand vector to be valueized.
15856 (valueize_refs): Likewise.
15857 (valueize_shared_reference_ops_from_ref): Adjust.
15858 (valueize_shared_reference_ops_from_call): Likewise.
15859 (vn_reference_lookup_3): Likewise.
15860 (vn_reference_lookup_pieces): Likewise. Re-valueize
15861 with honoring availability when we are about to create
15862 the ao_ref and valueized before.
15863 (vn_reference_lookup): Likewise.
15864 (vn_reference_insert_pieces): Adjust.
15866 2021-06-08 Richard Biener <rguenther@suse.de>
15868 * tree-vectorizer.h (_slp_instance::root_stmt): Change to...
15869 (_slp_instance::root_stmts): ... a vector.
15870 (SLP_INSTANCE_ROOT_STMT): Rename to ...
15871 (SLP_INSTANCE_ROOT_STMTS): ... this.
15872 (slp_root::root): Change to...
15873 (slp_root::roots): ... a vector.
15874 (slp_root::slp_root): Adjust.
15875 * tree-vect-slp.c (_slp_instance::location): Adjust.
15876 (vect_free_slp_instance): Release the root stmt vector.
15877 (vect_build_slp_instance): Adjust.
15878 (vect_analyze_slp): Likewise.
15879 (_bb_vec_info::~_bb_vec_info): Likewise.
15880 (vect_slp_analyze_operations): Likewise.
15881 (vect_bb_vectorization_profitable_p): Likewise. Adjust
15882 costs for the root stmt.
15883 (vect_slp_check_for_constructors): Gather all BIT_INSERT_EXPRs
15885 (vect_slp_analyze_bb_1): Simplify by marking all root stmts
15887 (vectorize_slp_instance_root_stmt): Adjust.
15888 (vect_schedule_slp): Likewise.
15890 2021-06-08 Aldy Hernandez <aldyh@redhat.com>
15892 * gimple-ssa-evrp.c (class ssa_equiv_stack): New.
15893 (ssa_equiv_stack::ssa_equiv_stack): New.
15894 (ssa_equiv_stack::~ssa_equiv_stack): New.
15895 (ssa_equiv_stack::enter): New.
15896 (ssa_equiv_stack::leave): New.
15897 (ssa_equiv_stack::push_replacement): New.
15898 (ssa_equiv_stack::get_replacement): New.
15899 (is_pointer_ssa): New.
15900 (class pointer_equiv_analyzer): New.
15901 (pointer_equiv_analyzer::pointer_equiv_analyzer): New.
15902 (pointer_equiv_analyzer::~pointer_equiv_analyzer): New.
15903 (pointer_equiv_analyzer::set_global_equiv): New.
15904 (pointer_equiv_analyzer::set_cond_equiv): New.
15905 (pointer_equiv_analyzer::get_equiv): New.
15906 (pointer_equiv_analyzer::enter): New.
15907 (pointer_equiv_analyzer::leave): New.
15908 (pointer_equiv_analyzer::get_equiv_expr): New.
15909 (pta_valueize): New.
15910 (pointer_equiv_analyzer::visit_stmt): New.
15911 (pointer_equiv_analyzer::visit_edge): New.
15912 (hybrid_folder::value_of_expr): Call PTA.
15913 (hybrid_folder::value_on_edge): Same.
15914 (hybrid_folder::pre_fold_bb): New.
15915 (hybrid_folder::post_fold_bb): New.
15916 (hybrid_folder::pre_fold_stmt): New.
15917 (rvrp_folder::pre_fold_bb): New.
15918 (rvrp_folder::post_fold_bb): New.
15919 (rvrp_folder::pre_fold_stmt): New.
15920 (rvrp_folder::value_of_expr): Call PTA.
15921 (rvrp_folder::value_on_edge): Same.
15923 2021-06-08 Jakub Jelinek <jakub@redhat.com>
15926 * tree-inline.c (copy_tree_body_r): For OMP_CLAUSE_DEPEND don't
15927 check TREE_CODE if OMP_CLAUSE_DECL is NULL.
15929 2021-06-08 Richard Biener <rguenther@suse.de>
15931 PR middle-end/100951
15932 * tree-vect-generic.c (expand_vector_piecewise): Build a
15933 VECTOR_CST if all elements are constant.
15934 (expand_vector_condition): Likewise.
15935 (lower_vec_perm): Likewise.
15936 (expand_vector_conversion): Likewise.
15938 2021-06-08 Martin Liska <mliska@suse.cz>
15940 * doc/invoke.texi: Document new param evrp-sparse-threshold.
15942 2021-06-08 Martin Liska <mliska@suse.cz>
15944 * genautomata.c (create_automata): Fix typo.
15946 2021-06-08 Kewen Lin <linkw@linux.ibm.com>
15948 PR tree-optimization/100794
15949 * tree-predcom.c (tree_predictive_commoning_loop): Add parameter
15950 allow_unroll_p and only allow unrolling when it's true.
15951 (tree_predictive_commoning): Add parameter allow_unroll_p and
15953 (run_tree_predictive_commoning): Likewise.
15954 (pass_predcom::gate): Check flag_tree_loop_vectorize and
15955 global_options_set.x_flag_predictive_commoning.
15956 (pass_predcom::execute): Adjust for allow_unroll_p.
15958 2021-06-08 Kewen Lin <linkw@linux.ibm.com>
15960 * tree-predcom.c (execute_pred_commoning): Remove update_ssa call.
15961 (tree_predictive_commoning_loop): Factor some cleanup stuffs into
15962 lambda function cleanup, remove scev_reset call, and adjust return
15964 (tree_predictive_commoning): Adjust for different changed values,
15965 only set flag TODO_update_ssa_only_virtuals if changed.
15966 (pass_data pass_data_predcom): Remove TODO_update_ssa_only_virtuals
15967 from todo_flags_finish.
15969 2021-06-07 Andrew MacLeod <amacleod@redhat.com>
15971 * gimple-range-cache.cc (class sbr_sparse_bitmap): New.
15972 (sbr_sparse_bitmap::sbr_sparse_bitmap): New.
15973 (sbr_sparse_bitmap::bitmap_set_quad): New.
15974 (sbr_sparse_bitmap::bitmap_get_quad): New.
15975 (sbr_sparse_bitmap::set_bb_range): New.
15976 (sbr_sparse_bitmap::get_bb_range): New.
15977 (sbr_sparse_bitmap::bb_range_p): New.
15978 (block_range_cache::block_range_cache): initialize bitmap obstack.
15979 (block_range_cache::~block_range_cache): Destruct obstack.
15980 (block_range_cache::set_bb_range): Decide when to utilze the
15981 sparse on entry cache.
15982 * gimple-range-cache.h (block_range_cache): Add bitmap obstack.
15983 * params.opt (-param=evrp-sparse-threshold): New.
15985 2021-06-07 Andrew MacLeod <amacleod@redhat.com>
15987 * bitmap.c (bitmap_set_aligned_chunk): New.
15988 (bitmap_get_aligned_chunk): New.
15989 (test_aligned_chunk): New.
15990 (bitmap_c_tests): Call test_aligned_chunk.
15991 * bitmap.h (bitmap_set_aligned_chunk, bitmap_get_aligned_chunk): New.
15993 2021-06-07 Uroš Bizjak <ubizjak@gmail.com>
15996 * config/i386/i386-expand.c (ix86_expand_vector_init_duplicate):
15998 (ix86_expand_vector_init_one_nonzero): Ditto.
15999 (ix86_expand_vector_init_one_var): Ditto.
16000 (ix86_expand_vector_init_general): Ditto.
16001 * config/i386/mmx.md (vec_initv4qiqi): New expander.
16003 2021-06-07 Jeff Law <jeffreyalaw@gmail.com>
16005 * config/h8300/movepush.md: Change most _clobber_flags
16006 patterns to instead use <cczn> subst.
16007 (movsi_cczn): New pattern with usable CC cases split out.
16008 (movsi_h8sx_cczn): Likewise.
16010 2021-06-07 Martin Liska <mliska@suse.cz>
16012 * common/common-target.def: Split long lines and replace them
16014 * target.def: Likewise.
16015 * doc/tm.texi: Re-generated.
16017 2021-06-07 Jakub Jelinek <jakub@redhat.com>
16020 * fold-const.c (fold_read_from_vector): Return NULL if trying to
16021 read from a CONSTRUCTOR with vector type elements.
16023 2021-06-07 Jakub Jelinek <jakub@redhat.com>
16025 PR middle-end/100898
16026 * tree-inline.c (copy_bb): Only use gimple_call_arg_ptr if memcpy
16027 should copy any arguments. Don't call gimple_call_num_args
16028 on id->call_stmt or call_stmt more than once.
16030 2021-06-07 liuhongt <hongtao.liu@intel.com>
16033 * config/i386/sse.md (*sse4_1_zero_extendv8qiv8hi2_3): Refine
16035 (<insn>v4siv4di2): Delete constraints for define_expand.
16037 2021-06-07 liuhongt <hongtao.liu@intel.com>
16040 * config/i386/i386-expand.c (ix86_expand_builtin): Remove
16041 assignment of cfun->machine->has_explicit_vzeroupper.
16042 * config/i386/i386-features.c
16043 (ix86_add_reg_usage_to_vzerouppers): Delete.
16044 (ix86_add_reg_usage_to_vzeroupper): Ditto.
16045 (rest_of_handle_insert_vzeroupper): Remove
16046 ix86_add_reg_usage_to_vzerouppers, add df_analyze at the end
16048 (gate): Remove cfun->machine->has_explicit_vzeroupper.
16049 * config/i386/i386-protos.h (ix86_expand_avx_vzeroupper):
16051 * config/i386/i386.c (ix86_insn_callee_abi): New function.
16052 (ix86_initialize_callee_abi): Ditto.
16053 (ix86_expand_avx_vzeroupper): Ditto.
16054 (ix86_hard_regno_call_part_clobbered): Adjust for vzeroupper
16056 (TARGET_INSN_CALLEE_ABI): Define as ix86_insn_callee_abi.
16057 (ix86_emit_mode_set): Call ix86_expand_avx_vzeroupper
16059 * config/i386/i386.h (struct GTY(()) machine_function): Delete
16060 has_explicit_vzeroupper.
16061 * config/i386/i386.md (enum unspec): New member
16063 (ABI_DEFAULT,ABI_VZEROUPPER,ABI_UNKNOWN): New
16064 define_constants for insn callee abi index.
16065 * config/i386/predicates.md (vzeroupper_pattern): Adjust.
16066 * config/i386/sse.md (UNSPECV_VZEROUPPER): Deleted.
16067 (avx_vzeroupper): Call ix86_expand_avx_vzeroupper.
16068 (*avx_vzeroupper): Rename to ..
16069 (avx_vzeroupper_callee_abi): .. this, and adjust pattern as
16070 call_insn which has a special vzeroupper ABI.
16071 (*avx_vzeroupper_1): Deleted.
16073 2021-06-07 liuhongt <hongtao.liu@intel.com>
16076 * df-scan.c (df_get_call_refs): When call_insn is a fake call,
16077 it won't use stack pointer reg.
16078 * final.c (leaf_function_p): When call_insn is a fake call, it
16079 won't affect caller as a leaf function.
16080 * reg-stack.c (callee_clobbers_any_stack_reg): New.
16081 (subst_stack_regs): When call_insn doesn't clobber any stack
16082 reg, don't clear the arguments.
16083 * rtl.c (shallow_copy_rtx): Don't clear flag used when orig is
16085 * shrink-wrap.c (requires_stack_frame_p): No need for stack
16086 frame for a fake call.
16087 * rtl.h (FAKE_CALL_P): New macro.
16089 2021-06-06 Eric Botcazou <ebotcazou@adacore.com>
16091 * config/sparc/sparc-protos.h (order_regs_for_local_alloc): Rename
16093 (sparc_order_regs_for_local_alloc): ...this.
16094 (sparc_leaf_reg_remap): Declare.
16095 * config/sparc/sparc.h (ADJUST_REG_ALLOC_ORDER): Adjust.
16096 (LEAF_REG_REMAP): Reimplement as call to sparc_leaf_reg_remap.
16097 * config/sparc/sparc.c (leaf_reg_remap): Delete.
16098 (order_regs_for_local_alloc): Rename to...
16099 (sparc_order_regs_for_local_alloc): ...this.
16100 (sparc_leaf_reg_remap): New function.
16101 (sparc_conditional_register_usage): Do not modify leaf_reg_remap.
16103 2021-06-06 David Edelsohn <dje.gcc@gmail.com>
16105 * config/rs6000/rs6000.c (rs6000_xcoff_asm_output_aligned_decl_common):
16106 Use assemble_name to output BSS section name.
16108 2021-06-06 Uroš Bizjak <ubizjak@gmail.com>
16110 * config/i386/constraints.md (Bs):
16111 Remove boolean operators from match_test RTX.
16114 (M): Use "mode" variable instead of GET_MODE (op) in match_test RTX.
16117 2021-06-06 Martin Liska <mliska@suse.cz>
16119 * doc/extend.texi: Add missing @headitem.
16120 * doc/invoke.texi: Likewise.
16121 * doc/objc.texi: Likewise.
16123 2021-06-06 Martin Liska <mliska@suse.cz>
16125 * genhooks.c (emit_findices): Remove unused function.
16126 (emit_documentation): Do not call emit_findices
16127 and do not search for @Fcode directives.
16129 2021-06-06 Martin Liska <mliska@suse.cz>
16131 * doc/invoke.texi: Remove extra character.
16133 2021-06-05 Kewen Lin <linkw@linux.ibm.com>
16135 * config/sh/sh.md (doloop_end_split): Fix empty split condition.
16137 2021-06-05 Kewen Lin <linkw@linux.ibm.com>
16139 * config/sparc/sparc.md (*snedi<W:mode>_zero_vis3,
16140 *neg_snedi<W:mode>_zero_subxc, *plus_snedi<W:mode>_zero,
16141 *plus_plus_snedi<W:mode>_zero, *minus_snedi<W:mode>_zero,
16142 *minus_minus_snedi<W:mode>_zero): Fix empty split condition.
16144 2021-06-05 Kewen Lin <linkw@linux.ibm.com>
16146 * config/or1k/or1k.md (*movdi): Fix empty split condition.
16148 2021-06-05 Kewen Lin <linkw@linux.ibm.com>
16150 * config/mips/mips.md (<anonymous>, bswapsi2, bswapdi2): Fix empty
16153 2021-06-05 Kewen Lin <linkw@linux.ibm.com>
16155 * config/m68k/m68k.md (*zero_extend_inc, *zero_extend_dec,
16156 *zero_extendsidi2): Fix empty split condition.
16158 2021-06-05 Jeff Law <jeffreyalaw@gmail.com>
16160 * config/h8300/addsub.md: Fix split condition in define_insn_and_split
16162 * config/h8300/bitfield.md: Likewise.
16163 * config/h8300/combiner.md: Likewise.
16164 * config/h8300/divmod.md: Likewise.
16165 * config/h8300/extensions.md: Likewise.
16166 * config/h8300/jumpcall.md: Likewise.
16167 * config/h8300/movepush.md: Likewise.
16168 * config/h8300/multiply.md: Likewise.
16169 * config/h8300/other.md: Likewise.
16170 * config/h8300/shiftrotate.md: Likewise.
16171 * config/h8300/logical.md: Likewise. Fix split pattern to use
16172 code iterator that somehow slipped through.
16174 2021-06-04 Tobias Burnus <tobias@codesourcery.com>
16176 PR middle-end/100905
16177 * tree-nested.c (convert_nonlocal_omp_clauses,
16178 convert_local_omp_clauses): Handle OMP_CLAUSE_BIND.
16180 2021-06-04 Martin Sebor <msebor@redhat.com>
16182 PR middle-end/100732
16183 * gimple-fold.c (gimple_fold_builtin_sprintf): Avoid folding calls
16184 with either source or destination argument of invalid type.
16185 * tree-ssa-uninit.c (maybe_warn_pass_by_reference): Avoid checking
16186 calls with arguments of invalid type.
16188 2021-06-04 Martin Sebor <msebor@redhat.com>
16190 * attribs.c (init_attr_rdwr_indices): Use VLA bounds in the expected
16192 (attr_access::vla_bounds): Also handle VLA bounds.
16194 2021-06-04 Uroš Bizjak <ubizjak@gmail.com>
16196 * config/i386/predicates.md (GOT_memory_operand):
16197 Implement using match_code RTXes.
16198 (GOT32_symbol_operand): Ditto.
16200 2021-06-04 Uroš Bizjak <ubizjak@gmail.com>
16203 * config/i386/i386-expand.c (ix86_expand_vector_init_duplicate):
16205 (ix86_expand_vector_init_general): Ditto.
16206 Use SImode instead of word_mode for logic operations
16207 when GET_MODE_SIZE (mode) < UNITS_PER_WORD.
16208 (expand_vec_perm_even_odd_1): Assert that V2HI mode should be
16209 implemented by expand_vec_perm_1.
16210 (expand_vec_perm_broadcast_1): Assert that V2HI and V4HI modes
16211 should be implemented using standard shuffle patterns.
16212 (ix86_vectorize_vec_perm_const): Handle V2HImode. Add V4HI and
16213 V2HI modes to modes, implementable with shuffle for one operand.
16214 * config/i386/mmx.md (*punpckwd): New insn_and_split pattern.
16215 (*pshufw_1): New insn pattern.
16216 (*vec_dupv2hi): Ditto.
16217 (vec_initv2hihi): New expander.
16219 2021-06-04 Kewen Lin <linkw@linux.ibm.com>
16221 * config/arm/vfp.md (no_literal_pool_df_immediate,
16222 no_literal_pool_sf_immediate): Fix empty split condition.
16224 2021-06-04 Kewen Lin <linkw@linux.ibm.com>
16226 * config/i386/i386.md (*load_tp_x32_zext, *add_tp_x32_zext,
16227 *tls_dynamic_gnu2_combine_32): Fix empty split condition.
16228 * config/i386/sse.md (*<sse2_avx2>_pmovmskb_lt,
16229 *<sse2_avx2>_pmovmskb_zext_lt, *sse2_pmovmskb_ext_lt,
16230 *<sse4_1_avx2>_pblendvb_lt): Likewise.
16232 2021-06-04 Jakub Jelinek <jakub@redhat.com>
16235 * config/i386/i386-expand.c (ix86_expand_vector_init): Handle
16236 concatenation from half-sized modes with TImode elements.
16238 2021-06-04 Claudiu Zissulescu <claziss@synopsys.com>
16240 * config/arc/arc.c (arc_override_options): Disable millicode
16241 thunks when RF16 is on.
16243 2021-06-04 Haochen Gui <guihaoc@gcc.gnu.org>
16245 * config/rs6000/rs6000.h (PROMOTE_MODE): Remove.
16247 2021-06-04 Haochen Gui <guihaoc@gcc.gnu.org>
16249 * config/rs6000/rs6000-call.c (rs6000_promote_function_mode):
16250 Replace PROMOTE_MODE marco with its content.
16252 2021-06-03 Kewen Lin <linkw@linux.ibm.com>
16254 * config/cris/cris.md (*addi_reload): Fix empty split condition.
16256 2021-06-03 Jim Wilson <jimw@sifive.com>
16258 * config.gcc (riscv*-*-*): If --with-riscv-attribute not used,
16259 turn it on for all riscv targets.
16261 2021-06-03 Uroš Bizjak <ubizjak@gmail.com>
16264 * config/i386/i386-expand.c (ix86_expand_vector_set):
16265 Handle V2HI and V4QI modes.
16266 (ix86_expand_vector_extract): Ditto.
16267 * config/i386/mmx.md (*pinsrw): New insn pattern.
16270 (*pextrw_zext): Ditto.
16272 (*pextrb_zext): Ditto.
16273 (vec_setv2hi): New expander.
16274 (vec_extractv2hihi): Ditto.
16275 (vec_setv4qi): Ditto.
16276 (vec_extractv4qiqi): Ditto.
16277 (vec_setv8qi): Enable only for TARGET_SSE4_1.
16278 (vec_extractv8qiqi): Ditto.
16280 2021-06-03 Aaron Sawdey <acsawdey@linux.ibm.com>
16282 * config/rs6000/genfusion.pl (gen_logical_addsubf): Fix input
16283 order to subf instruction.
16284 * config/rs6000/fusion.md: Regenerate.
16286 2021-06-03 Aldy Hernandez <aldyh@redhat.com>
16288 * calls.c (get_size_range): Use range_of_expr instead of
16289 determine_value_range.
16290 * tree-affine.c (expr_to_aff_combination): Same.
16291 * tree-data-ref.c (split_constant_offset): Same.
16292 * tree-vrp.c (determine_value_range_1): Remove.
16293 (determine_value_range): Remove.
16294 * tree-vrp.h (determine_value_range): Remove.
16296 2021-06-03 Aldy Hernandez <aldyh@redhat.com>
16298 * function-tests.c (test_ranges): Call gimple_range_tests.
16299 * gimple-range-cache.cc (ranger_cache::range_of_expr): Pass stmt
16301 * gimple-range.cc (fur_source::get_operand): Do not call
16302 get_tree_range or gimple_range_global.
16304 (get_tree_range): Move to value-query.cc.
16305 Call get_arith_expr_range.
16306 (gimple_ranger::range_of_expr): Add argument to get_tree_range.
16307 Include gimple-range-tests.cc.
16308 * gimple-range.h (fold_range): Add argument.
16309 (get_tree_range): Remove.
16310 * selftest.h (gimple_range_tests): New.
16311 * value-query.cc (global_range_query::range_of_expr): Add
16313 (range_query::get_tree_range): Move from gimple-range.cc.
16314 * value-query.h (class range_query): Add get_tree_range and
16315 get_arith_expr_range. Make fur_source a friend.
16316 * vr-values.c (vr_values::range_of_expr): Pass stmt to
16318 * gimple-range-tests.cc: New file.
16320 2021-06-03 Aldy Hernandez <aldyh@redhat.com>
16322 * gimple-range.cc (gimple_ranger::export_global_ranges): Call
16323 update_global_range.
16324 * value-query.cc (update_global_range): New.
16325 * value-query.h (update_global_range): New.
16327 2021-06-03 David Malcolm <dmalcolm@redhat.com>
16329 * diagnostic-show-locus.c (diagnostic_show_locus): Don't reject
16330 printing the same location twice if there are fix-it hints,
16331 multiple locations, or a label.
16333 2021-06-03 Andre Vieira <andre.simoesdiasvieira@arm.com>
16335 * tree-vect-loop.c (vect_transform_loop): Use main loop's various'
16336 thresholds to narrow the upper bound on epilogue iterations.
16338 2021-06-03 Christophe Lyon <christophe.lyon@linaro.org>
16340 * config/arm/mve.md (mve_vabsq_f<mode>): Use 'abs' instead of unspec.
16341 (mve_vabsq_s<mode>): Likewise.
16342 * config/arm/neon.md (abs<mode>2): Rename to neon_abs<mode>2.
16343 * config/arm/unspecs.md (VABSQ_F, VABSQ_S): Delete.
16344 * config/arm/vec-common.md (neg<mode>2): Rename to
16345 <absneg_str><mode>2.
16347 2021-06-03 Claudiu Zissulescu <claziss@synopsys.com>
16349 * common/config/arc/arc-common.c (arc_option_optimization_table):
16350 Remove malign-call.
16351 * config/arc/arc.c (arc_unalign_branch_p): Remove unused function.
16352 * config/arc/arc.h (TARGET_MIXED_CODE): Remove macro.
16353 (INDEX_REG_CLASS): Only refer to GENERAL_REGS.
16354 * config/arc/arc.md (abssi2_mixed): Remove pattern.
16355 * config/arc/arc.opt (munalign-prob-threshold): Mark it obsolete.
16356 (malign-call): Likewise.
16357 (mmixed-code): Likewise.
16358 * doc/invoke.texi (ARC): Update doc.
16360 2021-06-03 Martin Liska <mliska@suse.cz>
16362 * common.opt: Use proper Enum values.
16363 * opts.c (COVERAGE_SANITIZER_OPT): Remove.
16364 (parse_sanitizer_options): Handle only sanitizer_opts.
16365 (common_handle_option): Just assign value.
16367 2021-06-03 Eric Botcazou <ebotcazou@adacore.com>
16370 * tree-inline.c (inline_forbidden_p): Remove test on return type.
16372 2021-06-03 Eric Botcazou <ebotcazou@adacore.com>
16374 * dwarf2out.c (loc_list_from_tree_1) <FUNCTION_DECL>: Also generate
16375 DW_OP_GNU_variable_value referencing an existing DIE at file scope.
16376 (type_byte_size): Inline into...
16377 (add_byte_size_attribute): ...this and call add_scalar_info.
16379 2021-06-03 Eric Botcazou <ebotcazou@adacore.com>
16381 * dwarf2out.c (mem_loc_descriptor) <UDIV>: Fix typo.
16382 (typed_binop_from_tree): New function.
16383 (loc_list_from_tree_1) <EXACT_DIV_EXPR>: For an unsigned type,
16384 turn a divide by a power of 2 into a shift.
16385 <CEIL_DIV_EXPR>: For an unsigned type, use a signed divide if the
16386 size of the mode is lower than DWARF2_ADDR_SIZE; otherwise, do a
16387 typed divide by calling typed_binop_from_tree.
16389 2021-06-03 Eric Botcazou <ebotcazou@adacore.com>
16391 * dwarf2out.c (scompare_loc_descriptor): Fix head comment.
16392 (is_handled_procedure_type): Likewise.
16393 (struct loc_descr_context): Add strict_signedness field.
16394 (resolve_args_picking_1): Deal with DW_OP_[GNU_]deref_type,
16395 DW_OP_[GNU_]convert and DW_OP_[GNU_]reinterpret.
16396 (resolve_args_picking): Minor tweak.
16397 (function_to_dwarf_procedure): Initialize strict_signedness field.
16398 (type_byte_size): Likewise.
16399 (field_byte_offset): Likewise.
16400 (gen_descr_array_type_die): Likewise.
16401 (gen_variant_part): Likewise.
16402 (loc_list_from_tree_1) <CALL_EXPR>: Tidy up and set strict_signedness
16403 to true when a context is present before evaluating the arguments.
16404 <COND_EXPR>: Do not generate a useless comparison with zero.
16405 When dereferencing an address, if strict_signedness is true and the
16406 type is small and signed, use DW_OP_deref_type to do the dereference
16407 and then DW_OP_convert to convert back to the generic type.
16409 2021-06-03 Jakub Jelinek <jakub@redhat.com>
16412 * tree-inline.c (copy_tree_body_r): Handle iterators on
16413 OMP_CLAUSE_AFFINITY or OMP_CLAUSE_DEPEND.
16415 2021-06-03 Kewen Lin <linkw@linux.ibm.com>
16417 * config/arc/arc.md (*bbit_di): Remove.
16419 2021-06-02 Christoph Muellner <cmuellner@gcc.gnu.org>
16421 PR rtl-optimization/100264
16422 * ree.c (get_sub_rtx): Ignore SET expressions without register
16423 destinations and remove assertion, as it is not valid anymore
16424 with this new behaviour.
16425 (merge_def_and_ext): Eliminate destination check for register
16426 as such SET expressions can't occur anymore.
16427 (combine_reaching_defs): Likewise.
16429 2021-06-02 Jakub Jelinek <jakub@redhat.com>
16432 * config/xtensa/xtensa.h (LEAF_REG_REMAP): Cast REGNO to int to avoid
16433 -Wtype-limits warnings.
16434 (DWARF_FRAME_REGISTER): Rewrite into ternary operator with addition
16435 in operands to avoid -Wsign-compare warnings.
16437 2021-06-02 Pat Haugen <pthaugen@linux.ibm.com>
16439 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Use
16442 2021-06-02 Vineet Gupta <vgupta@synopsys.com>
16444 * config/arc/arc.h (TARGET_CPU_DEFAULT): Change to hs38_linux.
16446 2021-06-02 Ilya Leoshkevich <iii@linux.ibm.com>
16448 * config/s390/s390.md(*ashrdi3_31<setcc><cconly>): Use a single
16450 * config/s390/subst.md(cconly_subst): Use a single constraint
16451 in (match_scratch).
16453 2021-06-02 Martin Liska <mliska@suse.cz>
16455 * ipa-icf.h: Use auto_vec for memory_access_types.
16457 2021-06-02 Jeff Law <jeffreyalaw@gmail.com>
16459 * config/h8300/h8300-protos.h (compute_a_shift_length): Drop unused
16460 argument from prototype.
16461 (output_logical_op): Add rtx_code argument.
16462 (compute_logical_op_length): Likewise.
16463 * config/h8300/h8300.c (h8300_and_costs): Pass additional argument
16464 to compute_a_shift_length.
16465 (output_logical_op); New argument with the rtx code rather than
16466 extracting it from an operand. Handle QImode too.
16467 (compute_logical_op_length): Similary.
16468 (compute_a_shift_length): Drop unused argument.
16469 * config/h8300/h8300.md (logicals): New code iterator.
16470 * config/h8300/logical.md (<code><mode>3 expander): Combine
16471 the "and" expander with the "ior"/"xor" expander.
16472 (bclr<mode>msx): Combine the QI/HI mode patterns.
16473 (<logical><mode>3 insns): Use code iterator rather than match_operator.
16474 Handle QImode as well. Update call to output_logical_op and
16475 compute_logical_op_length to pass in rtx_code
16476 Fix split condition on all define_insn_and_split patterns.
16477 (one_cmpl<mode>2<cczn>): Use <cczn> to support both clobbering
16478 the flags and setting ZN via existing define_subst.
16479 * config/h8300/shiftrotate.md: Drop unused argument from
16480 calls to compute_a_shift_length.
16481 Signed-off-by: Jeff Law <jeffreyalaw@gmail.com>
16483 2021-06-01 Andrew Pinski <apinski@marvell.com>
16485 PR tree-optimization/25290
16486 * tree-ssa-phiopt.c (match_simplify_replacement):
16488 (tree_ssa_phiopt_worker): Use match_simplify_replacement.
16489 (two_value_replacement): Change the comment about
16490 conditional_replacement.
16491 (conditional_replacement): Delete.
16493 2021-06-01 Andrew Pinski <apinski@marvell.com>
16495 PR tree-optimization/95481
16496 * tree-tailcall.c (find_tail_calls): Handle empty typed
16499 2021-06-01 Andrew Pinski <apinski@marvell.com>
16501 * gimplify.c (zero_sized_field_decl): Delete
16502 (zero_sized_type): Delete
16503 (gimplify_init_ctor_eval): Use is_empty_type instead
16504 of zero_sized_field_decl.
16505 (gimplify_modify_expr): Use is_empty_type instead of
16508 2021-06-01 Jason Merrill <jason@redhat.com>
16511 * tree.h (CALL_FROM_NEW_OR_DELETE_P): Adjust comment.
16513 2021-06-01 Jason Merrill <jason@redhat.com>
16516 * diagnostic.h (warning_enabled_at): Declare.
16517 * diagnostic.c (diagnostic_enabled): Factor out from...
16518 (diagnostic_report_diagnostic): ...here.
16519 (warning_enabled_at): New.
16521 2021-06-01 Aldy Hernandez <aldyh@redhat.com>
16523 * gimple-ssa-evrp.c: Enable exporting of global ranges.
16525 2021-06-01 Martin Liska <mliska@suse.cz>
16528 * doc/invoke.texi: Mention that -fgcse-after-reload
16529 is enabled with -O3.
16531 2021-06-01 liuhongt <hongtao.liu@intel.com>
16533 PR tree-optimization/98365
16534 * tree-if-conv.c (strip_nop_cond_scalar_reduction): New function.
16535 (is_cond_scalar_reduction): Handle nop_expr in cond scalar reduction.
16536 (convert_scalar_cond_reduction): Ditto.
16537 (predicate_scalar_phi): Ditto.
16539 2021-06-01 Andrew MacLeod <amacleod@redhat.com>
16541 PR tree-optimization/100781
16542 * gimple-range-cache.cc (ranger_cache::ranger_cache): Enable new
16543 value calculation by default.
16544 (ranger_cache::enable_new_values): New.
16545 (ranger_cache::disable_new_values): New.
16546 (ranger_cache::push_poor_value): Check if new values are allowed.
16547 * gimple-range-cache.h (class ranger_cache): New member/methods.
16548 * gimple-range.cc (gimple_ranger::range_of_expr): Check for debug
16549 statement, and disable/renable new value calculation.
16551 2021-06-01 Andrew MacLeod <amacleod@redhat.com>
16553 * gimple-range-cache.cc (ranger_cache::ssa_range_in_bb): Delete.
16554 (ranger_cache::range_of_def): New.
16555 (ranger_cache::entry_range): New.
16556 (ranger_cache::exit_range): New.
16557 (ranger_cache::range_of_expr): Adjust.
16558 (ranger_cache::range_on_edge): Adjust.
16559 (ranger_cache::propagate_cache): Call exit_range directly.
16560 * gimple-range-cache.h (class ranger_cache): Adjust.
16562 2021-06-01 Andrew MacLeod <amacleod@redhat.com>
16564 * gimple-range-cache.cc (ranger_cache::ranger_cache): Adjust for
16565 gori_compute being a member rather than base class.
16566 dervied call to member call.
16567 (ranger_cache::dump): No longer dump gori_map.
16568 (ranger_cache::dump_bb): New.
16569 (ranger_cache::get_non_stale_global_range): Adjust for gori_compute
16570 being a member rather than base class.
16571 (ranger_cache::set_global_range): Ditto.
16572 (ranger_cache::ssa_range_in_bb): Ditto.
16573 (ranger_cache::range_of_expr): New.
16574 (ranger_cache::range_on_edge): New.
16575 (ranger_cache::block_range): Adjust for gori_computes. Debug changes.
16576 (ranger_cache::propagate_cache): Adjust debugging output.
16577 (ranger_cache::fill_block_cache): Adjust for gori_computes. Debug
16579 * gimple-range-cache.h (class ranger_cache): Make gori_compute a
16580 member, and inherit from range_query instead.
16581 (ranger_cache::dump_bb): New. split from dump.
16582 * gimple-range-gori.cc (gori_compute::ssa_range_in_bb): Delete.
16583 (gori_compute::expr_range_at_stmt): Delete.
16584 (gori_compute::compute_name_range_op): Delete.
16585 (gori_compute::compute_operand_range_switch): Add fur_source.
16586 (gori_compute::compute_operand_range): Add fur_source param, inline
16587 old compute_name_range_op and optimize_logical_operands.
16588 (struct tf_range): Delete.
16589 (gori_compute::logical_combine): Adjust
16590 (gori_compute::optimize_logical_operands): Delete.
16591 (gori_compute::compute_logical_operands_in_chain): Delete.
16592 (gori_compute::compute_logical_operands): Adjust.
16593 (gori_compute::compute_operand1_range): Adjust to fur_source.
16594 (gori_compute::compute_operand2_range): Ditto.
16595 (gori_compute::compute_operand1_and_operand2_range): Ditto.
16596 (gori_compute::outgoing_edge_range_p): Add range_query parameter,
16597 and adjust to fur_source.
16598 * gimple-range-gori.h (class gori_compute): Simplify and adjust to
16599 range_query and fur_source.
16600 * gimple-range.cc (gimple_ranger::range_on_edge): Query range_on_edge
16601 from the ranger_cache..
16602 (gimple_ranger::fold_range_internal): Adjust to base class change of
16604 (gimple_ranger::dump_bb): Adjust dump.
16605 * gimple-range.h (gimple_ranger):export gori computes object.
16607 2021-06-01 Andrew MacLeod <amacleod@redhat.com>
16609 PR tree-optimization/100774
16610 * gimple-range-cache.cc (ranger_cache::get_non_stale_global_range):
16611 Constant values are also not stale.
16612 (ranger_cache::set_global_range): Range invariant values should also
16613 have the correct timestamp.
16615 2021-05-31 Martin Liska <mliska@suse.cz>
16617 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
16618 Unpack FUNCTION_DECL_DECL_TYPE.
16619 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
16620 Stream FUNCTION_DECL_DECL_TYPE instead of
16621 DECL_IS_OPERATOR_NEW_P.
16622 * tree.h (set_function_decl_type): Use FUNCTION_DECL_DECL_TYPE
16624 (DECL_IS_OPERATOR_NEW_P): Likewise.
16625 (DECL_IS_OPERATOR_DELETE_P): Likewise.
16626 (DECL_LAMBDA_FUNCTION_P): Likewise.
16628 2021-05-31 Richard Biener <rguenther@suse.de>
16631 * internal-fn.c (expand_SHUFFLEVECTOR): Define.
16632 * internal-fn.def (SHUFFLEVECTOR): New.
16633 * internal-fn.h (expand_SHUFFLEVECTOR): Declare.
16634 * doc/extend.texi: Document __builtin_shufflevector.
16636 2021-05-31 Peter Bergner <bergner@linux.ibm.com>
16639 * config/rs6000/predicates.md(mma_assemble_input_operand): Allow
16640 indexed form addresses.
16642 2021-05-29 Jeff Law <jlaw@tachyum.com>
16644 * config/h8300/h8300.c (h8300_emit_stack_adjustment): Drop unused
16645 parameter. Call callers fixed.
16647 (output_plussi): Add FALLTHRU markers.
16648 (h8300_shift_needs_scratch_p): Add gcc_unreachable marker.
16650 2021-05-29 Jakub Jelinek <jakub@redhat.com>
16652 PR middle-end/99928
16653 * gimplify.c (gimplify_scan_omp_clauses): For taskloop simd
16654 combined with parallel, make sure to add shared clause to
16655 parallel for explicit linear clause.
16657 2021-05-29 Aldy Hernandez <aldyh@redhat.com>
16659 PR tree-optimization/100787
16660 * gimple-ssa-evrp.c: Disable exporting of global ranges.
16662 2021-05-28 Jason Merrill <jason@redhat.com>
16664 * tree-iterator.h (struct tree_stmt_iterator): Add operator++,
16665 operator--, operator*, operator==, and operator!=.
16666 (class tsi_range): New.
16668 2021-05-28 Richard Biener <rguenther@suse.de>
16670 PR tree-optimization/100778
16671 * tree-vect-slp.c (vect_build_slp_tree_1): Prevent possibly
16672 trapping ops in different BBs.
16674 2021-05-28 Richard Biener <rguenther@suse.de>
16677 * tree-inline.c (copy_bb): When processing __builtin_va_arg_pack
16678 copy fntype from original call.
16680 2021-05-28 Martin Liska <mliska@suse.cz>
16682 PR gcov-profile/100751
16683 * doc/gcov.texi: Revert partially a hunk that was wrong.
16685 2021-05-28 Cooper Qu <cooper.qu@linux.alibaba.com>
16687 * config/csky/csky-linux-elf.h (HAVE_sync_compare_and_swapqi):
16689 (HAVE_sync_compare_and_swaphi): Likewise.
16690 (HAVE_sync_compare_and_swapsi): Likewise.
16692 2021-05-28 Jakub Jelinek <jakub@redhat.com>
16694 PR middle-end/99928
16695 * tree.h (OMP_CLAUSE_MAP_IMPLICIT): Define.
16697 2021-05-28 Tobias Burnus <tobias@codesourcery.com>
16699 * gimplify.c (gimplify_omp_affinity): New.
16700 (gimplify_scan_omp_clauses): Call it; remove affinity clause afterwards.
16701 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_AFFINITY.
16702 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_AFFINITY.
16703 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add clause.
16704 (walk_tree_1): Handle OMP_CLAUSE_AFFINITY.
16706 2021-05-28 Joern Rennecke <joern.rennecke@riscy-ip.com>
16707 Richard Biener <rguenther@suse.de>
16709 * match.pd <popcount & / + pattern matching>:
16710 When generating popcount directly fails, try doing it in two halves.
16712 2021-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
16714 * Makefile.in (generated_files): Add gimple-match.c and
16717 2021-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
16719 * gensupport.c (alter_predicate_for_insn): Handle MATCH_DUP.
16721 2021-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
16723 * gensupport.c (alter_constraints): Add MATCH_SCRATCH case.
16725 2021-05-28 Kewen Lin <linkw@linux.ibm.com>
16727 PR tree-optimization/99398
16728 * tree-ssa-forwprop.c (simplify_permutation): Optimize some cases
16729 where the fed operands are CTOR/CST and propagated through
16730 VIEW_CONVERT_EXPR. Call vec_perm_indices::new_shrunk_vector.
16731 * vec-perm-indices.c (vec_perm_indices::new_shrunk_vector): New
16733 * vec-perm-indices.h (vec_perm_indices::new_shrunk_vector): New
16736 2021-05-27 Uroš Bizjak <ubizjak@gmail.com>
16738 * config/i386/mmx.md (addv2sf3): Do not call
16739 ix86_fixup_binary_operands_no_copy.
16742 (<smaxmin:code>v2sf3): Ditto.
16743 (<plusminus:insn><MMXMODEI:mode>3): Ditto.
16744 (<plusminus:insn><VI_32:mode>3): Remove expander.
16745 (<plusminus:insn><VI_32:mode>3): Rename from
16746 "*<plusminus:insn><VI_32:mode>3".
16747 (mulv4hi): Do not call ix86_fixup_binary_operands_no_copy.
16748 (mulv2hi3): Remove expander.
16749 (mulv2hi3): Rename from *mulv2hi3.
16750 (<s>mulv2hi3_highpart): Remove expander.
16751 (<s>mulv2hi3_highpart): Rename from *<s>mulv2hi3_highpart.
16752 (<smaxmin:code><MMXMODE14:mode>3): Rename from
16753 "*mmx_<smaxmin:code><MMXMODE14:mode>3".
16754 (<smaxmin:code><SMAXMIN_MMXMODEI:mode>3): Remove expander.
16755 (SMAXMIN_MMXMODEI): Remove mode iterator.
16756 (<smaxmin:code>v4hi3): New expander.
16757 (<smaxmin:code>v4qi3): Rename from *<smaxmin:code>v4qi3.
16758 (<smaxmin:code>v2hi3): Rename from *<smaxmin:code>v2hi3.
16759 (<smaxmin:code><SMAXMIN_VI_32:mode>3): Remove expander.
16760 (SMAXMIN_VI_32): Remove mode iterator.
16761 (<umaxmin:code><MMXMODE24:mode>3): Rename from
16762 "*mmx_<umaxmin:code><MMXMODE24:mode>3".
16763 (<umaxmin:code><UMAXMIN_MMXMODEI:mode>3): Remove expander.
16764 (UMAXMIN_MMXMODEI): Remove mode iterator.
16765 (<umaxmin:code>v8qi3): New expander.
16766 (<umaxmin:code>v4qi3): Rename from *<umaxmin:code>v4qi3.
16767 (<umaxmin:code>v2hi3): Rename from *<umaxmin:code>v2hi3.
16768 (<umaxmin:code><SMAXMIN_VI_32:mode>3): Remove expander.
16769 (UMAXMIN_VI_32): Remove mode iterator.
16770 (<any_shift:insn>v2hi3): Remove expander.
16771 (<any_shift:insn>v2hi3): Rename from *<any_shift:insn>v2hi3.
16772 (<any_logic:code><MMXMODEI:mode>3): Do not call
16773 ix86_fixup_binary_operands_no_copy.
16774 (<any_logic:code><VI_32:mode>3): Remove expander.
16775 (<any_logic:code><VI_32:mode>3): Rename from
16776 "*<any_logic:code><VI_32:mode>3".
16777 (uavg<mode>3_ceil): Do not call ix86_fixup_binary_operands_no_copy.
16778 * config/i386/sse.md (div<VF2:mode>3): Do not call
16779 ix86_fixup_binary_operands_no_copy.
16780 (div<VF1:mode>3): Ditto.
16781 (<maxmin:code><VI8_AVX2_AVX512F:mode>3): Ditto.
16782 (smulhrsv4hi3): Ditto.
16783 (smulhrsv2hi3): Ditto.
16785 2021-05-27 Martin Sebor <msebor@redhat.com>
16787 * ggc.h (gt_ggc_mx): Add overloads for all integers.
16789 * hash-map.h (class hash_map): Add pch_nx_helper overloads for all
16791 (hash_map::operator==): New function.
16793 2021-05-27 Uroš Bizjak <ubizjak@gmail.com>
16796 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
16797 For TARGET_XOP bypass SSE comparisons for all supported vector modes.
16798 * config/i386/mmx.md (*xop_maskcmp<MMXMODEI:mode>3): New insn pattern.
16799 (*xop_maskcmp<VI_32:mode>3): Ditto.
16800 (*xop_maskcmp_uns<MMXMODEI:mode>3): Ditto.
16801 (*xop_maskcmp_uns<VI_32:mode>3): Ditto.
16803 2021-05-27 Richard Earnshaw <rearnsha@arm.com>
16806 * config/arm/arm.c (arm_configure_build_target): Remove parameter
16807 opts_set, directly check opts parameters for being non-null.
16808 (arm_option_restore): Update call to arm_configure_build_target.
16809 (arm_option_override): Likewise.
16810 (arm_can_inline_p): Likewise.
16811 (arm_valid_target_attribute_tree): Likewise.
16812 * config/arm/arm-c.c (arm_pragma_target_parse): Likewise.
16813 * config/arm/arm-protos.h (arm_configure_build_target): Adjust
16816 2021-05-27 Aldy Hernandez <aldyh@redhat.com>
16818 * vr-values.c (simplify_conversion_using_ranges): Use
16819 get_range_query instead of get_global_range_query.
16821 2021-05-27 Aldy Hernandez <aldyh@redhat.com>
16823 * gimple-range.cc (get_range_global): Move to value-query.cc.
16824 (gimple_range_global): Same.
16825 (get_global_range_query): Same.
16826 (global_range_query::range_of_expr): Same.
16827 * gimple-range.h (class global_range_query): Move to
16829 (gimple_range_global): Same.
16830 * tree-ssanames.c (get_range_info): Move to value-query.cc.
16831 (get_ptr_nonnull): Same.
16832 * tree-ssanames.h (get_range_info): Remove.
16833 (get_ptr_nonnull): Remove.
16834 * value-query.cc (get_ssa_name_range_info): Move from
16836 (get_ssa_name_ptr_info_nonnull): Same.
16837 (get_range_global): Move from gimple-range.cc.
16838 (gimple_range_global): Same.
16839 (get_global_range_query): Same.
16840 (global_range_query::range_of_expr): Same.
16841 * value-query.h (class global_range_query): Move from
16843 (gimple_range_global): Same.
16845 2021-05-27 Uroš Bizjak <ubizjak@gmail.com>
16848 * config/i386/mmx.md (uavgv4qi3_ceil): New insn pattern.
16849 (uavgv2hi3_ceil): Ditto.
16851 2021-05-26 Eric Botcazou <ebotcazou@adacore.com>
16854 * doc/extend.texi (scalar_storage_order): Rephrase slightly.
16856 2021-05-26 Aldy Hernandez <aldyh@redhat.com>
16858 * tree-ssanames.c (get_range_info): Merge both copies of
16859 get_range_info into one that works with irange.
16860 * tree-ssanames.h (get_range_info): Remove version that works on
16863 2021-05-26 Aldy Hernandez <aldyh@redhat.com>
16865 * builtins.c (check_nul_terminated_array): Convert to get_range_query.
16866 (expand_builtin_strnlen): Same.
16867 (determine_block_size): Same.
16868 * fold-const.c (expr_not_equal_to): Same.
16869 * gimple-fold.c (size_must_be_zero_p): Same.
16870 * gimple-match-head.c: Include gimple-range.h.
16871 * gimple-pretty-print.c (dump_ssaname_info): Convert to get_range_query.
16872 * gimple-ssa-warn-restrict.c
16873 (builtin_memref::extend_offset_range): Same.
16874 * graphite-sese-to-poly.c (add_param_constraints): Same.
16875 * internal-fn.c (get_min_precision): Same.
16876 * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Same.
16877 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
16879 * tree-data-ref.c (split_constant_offset): Same.
16880 (dr_step_indicator): Same.
16881 * tree-dfa.c (get_ref_base_and_extent): Same.
16882 * tree-scalar-evolution.c (iv_can_overflow_p): Same.
16883 * tree-ssa-loop-niter.c (refine_value_range_using_guard): Same.
16884 (determine_value_range): Same.
16885 (record_nonwrapping_iv): Same.
16886 (infer_loop_bounds_from_signedness): Same.
16887 (scev_var_range_cant_overflow): Same.
16888 * tree-ssa-phiopt.c (two_value_replacement): Same.
16889 * tree-ssa-pre.c (insert_into_preds_of_block): Same.
16890 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Same.
16891 * tree-ssa-strlen.c (handle_builtin_stxncpy_strncat): Same.
16893 (dump_strlen_info): Same.
16894 (set_strlen_range): Same.
16895 (maybe_diag_stxncpy_trunc): Same.
16896 (get_len_or_size): Same.
16897 (handle_integral_assign): Same.
16898 * tree-ssa-structalias.c (find_what_p_points_to): Same.
16899 * tree-ssa-uninit.c (find_var_cmp_const): Same.
16900 * tree-switch-conversion.c (bit_test_cluster::emit): Same.
16901 * tree-vect-patterns.c (vect_get_range_info): Same.
16902 (vect_recog_divmod_pattern): Same.
16903 * tree-vrp.c (intersect_range_with_nonzero_bits): Same.
16904 (register_edge_assert_for_2): Same.
16905 (determine_value_range_1): Same.
16906 * tree.c (get_range_pos_neg): Same.
16907 * vr-values.c (vr_values::get_lattice_entry): Same.
16908 (vr_values::update_value_range): Same.
16909 (simplify_conversion_using_ranges): Same.
16911 2021-05-26 Aldy Hernandez <aldyh@redhat.com>
16913 * gimple-ssa-warn-alloca.c (alloca_call_type): Use
16914 get_range_query instead of query argument.
16915 (pass_walloca::execute): Enable and disable global ranger.
16917 2021-05-26 Aldy Hernandez <aldyh@redhat.com>
16919 * gimple-ssa-evrp.c (rvrp_folder::rvrp_folder): Call
16921 (rvrp_folder::~rvrp_folder): Call disable_ranger.
16922 (hybrid_folder::hybrid_folder): Call enable_ranger.
16923 (hybrid_folder::~hybrid_folder): Call disable_ranger.
16925 2021-05-26 Aldy Hernandez <aldyh@redhat.com>
16927 * function.c (allocate_struct_function): Set cfun->x_range_query.
16928 * function.h (struct function): Declare x_range_query.
16929 (get_range_query): New.
16930 (get_global_range_query): New.
16931 * gimple-range-cache.cc (ssa_global_cache::ssa_global_cache):
16932 Remove call to safe_grow_cleared.
16933 * gimple-range.cc (get_range_global): New.
16934 (gimple_range_global): Move from gimple-range.h.
16935 (get_global_range_query): New.
16936 (global_range_query::range_of_expr): New.
16937 (enable_ranger): New.
16938 (disable_ranger): New.
16939 * gimple-range.h (gimple_range_global): Move to gimple-range.cc.
16940 (class global_range_query): New.
16941 (enable_ranger): New.
16942 (disable_ranger): New.
16943 * gimple-ssa-evrp.c (evrp_folder::~evrp_folder): Rename
16944 dump_all_value_ranges to dump.
16945 * tree-vrp.c (vrp_prop::finalize): Same.
16946 * value-query.cc (range_query::dump): New.
16947 * value-query.h (range_query::dump): New.
16948 * vr-values.c (vr_values::dump_all_value_ranges): Rename to...
16949 (vr_values::dump): ...this.
16950 * vr-values.h (class vr_values): Rename dump_all_value_ranges to
16951 dump and make virtual.
16953 2021-05-26 Uroš Bizjak <ubizjak@gmail.com>
16955 * config/i386/i386.c (ix86_autovectorize_vector_modes):
16956 Add V4QImode and V16QImode for TARGET_SSE2.
16957 * doc/sourcebuild.texi (Vector-specific attributes):
16958 Add vect64 and vect32 description.
16960 2021-05-26 Bernd Edlinger <bernd.edlinger@hotmail.de>
16962 * gimple-range-gori.cc (range_def_chain::register_dependency):
16963 Resize m_def_chain when needed.
16965 2021-05-26 Christophe Lyon <christophe.lyon@linaro.org>
16967 * config/arm/mve.md (mve_vaddvq_<supf><mode>): Prefix with '@'.
16968 * config/arm/neon.md (reduc_plus_scal_<mode>): Move to ..
16969 * config/arm/vec-common.md: .. here. Add support for MVE.
16971 2021-05-26 Jakub Jelinek <jakub@redhat.com>
16973 * config/epiphany/epiphany.c (epiphany_print_operand_address): Remove
16975 * config/microblaze/microblaze.c (microblaze_legitimize_address,
16977 microblaze_option_override, print_operand): Likewise.
16978 * config/microblaze/microblaze.md (call_internal_plt,
16979 call_value_intern_plt, call_value_intern): Likewise.
16980 * config/arm/aout.h (ASM_OUTPUT_ALIGN): Likewise.
16981 * config/iq2000/iq2000.md (call_internal1, call_value_internal1,
16982 call_value_multiple_internal1): Likewise.
16983 * config/bfin/bfin.c (symbolic_reference_mentioned_p): Likewise.
16985 2021-05-26 Jan-Benedict Glaw <jbglaw@lug-owl.de>
16987 * config/arc/arc.c (arc_address_cost, arc_print_operand_address,
16988 arc_ccfsm_advance, symbolic_reference_mentioned_p,
16989 arc_raw_symbolic_reference_mentioned_p): Remove register
16992 2021-05-26 Jakub Jelinek <jakub@redhat.com>
16995 * omp-low.c: Include omp-offload.h.
16996 (create_omp_child_function): If current_function_decl has
16997 "omp declare target" attribute and is_gimple_omp_offloaded,
16998 remove that attribute from the copy of attribute list and
16999 add "omp target entrypoint" attribute instead.
17000 (lower_omp_target): Mark .omp_data_sizes.* and .omp_data_kinds.*
17001 variables for offloading if in omp_maybe_offloaded_ctx.
17002 * omp-offload.c (pass_omp_target_link::execute): Nullify second
17003 argument to GOMP_target_data_ext in offloaded code.
17005 2021-05-26 Geng Qi <gengqi@linux.alibaba.com>
17007 * config/csky/csky.c (csky_can_change_mode_class): Delete.
17008 For csky, HF/SF mode use the low bits of VREGS.
17010 2021-05-26 Eric Botcazou <ebotcazou@adacore.com>
17012 * gimplify.c (gimplify_decl_expr): Do not clear TREE_READONLY on a
17013 DECL which is a reference for OMP.
17015 2021-05-26 Martin Liska <mliska@suse.cz>
17017 PR gcov-profile/100751
17018 * doc/gcov.texi: Document that __gcov_dump can be called just
17019 once and that __gcov_reset resets run-time counters.
17021 2021-05-26 Martin Liska <mliska@suse.cz>
17023 * doc/install.texi: Port relevant part from install-old.texi
17024 and re-generate list of CPUs and systems.
17026 2021-05-26 Martin Liska <mliska@suse.cz>
17028 * Makefile.in: Remove it.
17029 * doc/include/fdl.texi: Update next/previous chapters.
17030 * doc/install.texi: Likewise.
17031 * doc/install-old.texi: Removed.
17033 2021-05-26 Geng Qi <gengqi@linux.alibaba.com>
17035 * config/csky/csky.c (ck810_legitimate_index_p): Support
17036 "base + index" with DF mode.
17037 * config/csky/constraints.md ("Y"): New constraint for memory operands
17038 without index register.
17039 * config/csky/csky_insn_fpuv2.md (fpuv3_movdf): Use "Y" instead of "m"
17040 when mov between memory and general registers, and lower their priority.
17041 * config/csky/csky_insn_fpuv3.md (fpuv2_movdf): Likewise.
17043 2021-05-26 Geng Qi <gengqi@linux.alibaba.com>
17045 * config/csky/csky.c (TARGET_PROMOTE_PROTOTYPES): Delete.
17047 2021-05-26 Geng Qi <gengqi@linux.alibaba.com>
17049 * config/csky/csky.md (untyped_call): Emit clobber for return
17050 registers to mark them used.
17052 2021-05-26 Geng Qi <gengqi@linux.alibaba.com>
17054 * config/csky/csky.md (cskyv2_sextend_ldbs): New.
17056 2021-05-26 Andrew Pinski <apinski@marvell.com>
17058 * match.pd (x < 0 ? ~y : y): New patterns.
17060 2021-05-26 Andrew Pinski <apinski@marvell.com>
17062 * match.pd (A?CST1:CST2): Add simplifcations for A?0:+-1, A?+-1:0,
17063 A?POW2:0 and A?0:POW2.
17065 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
17067 * gimple-range-gori.cc (class logical_stmt_cache): Delete
17068 (logical_stmt_cache::logical_stmt_cache ): Delete.
17069 (logical_stmt_cache::~logical_stmt_cache): Delete.
17070 (logical_stmt_cache::cache_entry::dump): Delete.
17071 (logical_stmt_cache::get_range): Delete.
17072 (logical_stmt_cache::cached_name ): Delete.
17073 (logical_stmt_cache::same_cached_name): Delete.
17074 (logical_stmt_cache::cacheable_p): Delete.
17075 (logical_stmt_cache::slot_diagnostics ): Delete.
17076 (logical_stmt_cache::dump): Delete.
17077 (gori_compute_cache::gori_compute_cache): Delete.
17078 (gori_compute_cache::~gori_compute_cache): Delete.
17079 (gori_compute_cache::compute_operand_range): Delete.
17080 (gori_compute_cache::cache_stmt): Delete.
17081 * gimple-range-gori.h (gori_compute::compute_operand_range): Remove
17083 (class gori_compute_cache): Delete.
17085 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
17087 * gimple-range.cc (fold_using_range::range_of_range_op): Use m_gori
17089 (fold_using_range::range_of_address): Adjust.
17090 (fold_using_range::range_of_phi): Adjust.
17091 * gimple-range.h (class fur_source): Adjust.
17092 (fur_source::fur_source): Adjust.
17094 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
17096 * gimple-range-gori.cc (gori_compute::expr_range_at_stmt): Rename
17097 from expr_range_in_bb and adjust.
17098 (gori_compute::compute_name_range_op): Adjust.
17099 (gori_compute::optimize_logical_operands): Adjust.
17100 (gori_compute::compute_logical_operands_in_chain): Adjust.
17101 (gori_compute::compute_operand1_range): Adjust.
17102 (gori_compute::compute_operand2_range): Adjust.
17103 (ori_compute_cache::cache_stmt): Adjust.
17104 * gimple-range-gori.h (gori_compute): Rename prototype.
17106 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
17108 * gimple-range.cc (gimple_ranger::range_of_expr): Non-null should be
17109 checked only after range_of_stmt, not range_on_entry.
17110 (gimple_ranger::range_on_entry): Check for non-null in any
17111 predecessor block, if it is not already non-null.
17112 (gimple_ranger::range_on_exit): DOnt check for non-null after
17113 range on entry call.
17114 (gimple_ranger::dump_bb): New. Split from dump.
17115 (gimple_ranger::dump): Adjust.
17116 * gimple-range.h (class gimple_ranger): Adjust.
17118 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
17120 * gimple-range-cache.cc (struct range_timestamp): Delete.
17121 (class temporal_cache): Adjust.
17122 (temporal_cache::get_timestamp): Delete.
17123 (temporal_cache::set_dependency): Delete.
17124 (temporal_cache::temporal_value): Adjust.
17125 (temporal_cache::current_p): Take dependencies as params.
17126 (temporal_cache::set_timestamp): Adjust.
17127 (temporal_cache::set_always_current): Adjust.
17128 (ranger_cache::get_non_stale_global_range): Adjust.
17129 (ranger_cache::register_dependency): Delete.
17130 * gimple-range-cache.h (class range_cache): Adjust.
17132 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
17134 * gimple-range-gori.cc (range_def_chain::range_def_chain): init
17136 (range_def_chain::~range_def_chain): Dispose of obstack rather than
17137 each individual bitmap.
17138 (range_def_chain::set_import): New.
17139 (range_def_chain::get_imports): New.
17140 (range_def_chain::chain_import_p): New.
17141 (range_def_chain::register_dependency): Rename from build_def_chain
17143 (range_def_chain::def_chain_in_bitmap_p): New.
17144 (range_def_chain::add_def_chain_to_bitmap): New.
17145 (range_def_chain::has_def_chain): Just check first depenedence.
17146 (range_def_chain::get_def_chain): Process imports, use generic
17147 register_dependency routine.
17148 (range_def_chain::dump): New.
17149 (gori_map::gori_map): Allocate import list.
17150 (gori_map::~gori_map): Release imports.
17151 (gori_map::exports): Check for past allocated block size.
17152 (gori_map::imports): New.
17153 (gori_map::def_chain_in_export_p): Delete.
17154 (gori_map::is_import_p): New.
17155 (gori_map::maybe_add_gori): Handle imports.
17156 (gori_map::dump): Adjust output, add imports.
17157 (gori_compute::has_edge_range_p): Remove def_chain_in_export call.
17158 (gori_export_iterator::gori_export_iterator): New.
17159 (gori_export_iterator::next): New.
17160 (gori_export_iterator::get_name): New.
17161 * gimple-range-gori.h (range_def_chain): Add imports and direct
17162 dependecies via struct rdc.
17163 (range_def_chain::depend1): New.
17164 (range_def_chain::depend2): New.
17165 (class gori_map): Adjust.
17166 (FOR_EACH_GORI_IMPORT_NAME): New.
17167 (FOR_EACH_GORI_EXPORT_NAME): New.
17168 (class gori_export_iterator): New.
17170 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
17172 * gimple-range-cache.cc (ranger_cache::ranger_cache): Move initial
17173 export cache filling to here.
17174 * gimple-range-gori.cc (gori_compute::gori_compute) : From Here.
17176 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
17178 * gimple-range-gori.cc (range_def_chain): Move to gimple-range-gori.h.
17179 (gori_map): Move to gimple-range-gori.h.
17180 (gori_compute::gori_compute): Adjust.
17181 (gori_compute::~gori_compute): Delete.
17182 (gori_compute::compute_operand_range_switch): Adjust.
17183 (gori_compute::compute_operand_range): Adjust.
17184 (gori_compute::compute_logical_operands): Adjust.
17185 (gori_compute::has_edge_range_p ): Adjust.
17186 (gori_compute::set_range_invariant): Delete.
17187 (gori_compute::dump): Adjust.
17188 (gori_compute::outgoing_edge_range_p): Adjust.
17189 * gimple-range-gori.h (class range_def_chain): Relocate here.
17190 (class gori_map): Relocate here.
17191 (class gori_compute): Inherit from gori_map, and adjust.
17193 2021-05-25 Aldy Hernandez <aldyh@redhat.com>
17195 * value-range.cc (range_tests_legacy): Use
17196 build_nonstandard_integer_type instead of int and short.
17198 2021-05-25 Eric Botcazou <ebotcazou@adacore.com>
17200 * gimplify.c (gimplify_decl_expr): Clear TREE_READONLY on the DECL
17201 when really creating an initialization statement for it.
17203 2021-05-25 Eric Botcazou <ebotcazou@adacore.com>
17205 * tree-inline.c (setup_one_parameter): Fix thinko in new condition.
17207 2021-05-25 Kito Cheng <kito.cheng@sifive.com>
17209 * config/riscv/riscv.h (ASM_SPEC): Pass -mno-relax.
17211 2021-05-25 Martin Liska <mliska@suse.cz>
17213 PR tree-optimization/92860
17215 * optc-save-gen.awk: Remove exceptions.
17217 2021-05-25 Martin Liska <mliska@suse.cz>
17219 * asan.h (sanitize_coverage_p): New function.
17220 * doc/extend.texi: Document it.
17221 * fold-const.c (fold_range_test): Use sanitize_flags_p
17222 instead of flag_sanitize_coverage.
17223 (fold_truth_andor): Likewise.
17224 * sancov.c: Likewise.
17225 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
17226 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Handle
17227 -fsanitize-coverage when inlining.
17229 2021-05-25 Cooper Qu <cooper.qu@linux.alibaba.com>
17231 * config/csky/csky-modes.def : Fix copyright.
17233 2021-05-25 Cooper Qu <cooper.qu@linux.alibaba.com>
17235 * config/csky/csky-modes.def : Amend copyright.
17236 * config/csky/csky_insn_fpuv2.md : Likewise.
17237 * config/csky/csky_insn_fpuv3.md : Likewise.
17239 2021-05-25 Richard Biener <rguenther@suse.de>
17241 PR middle-end/100727
17242 * calls.c (initialize_argument_information): Explicitely test
17243 for WITH_SIZE_EXPR.
17244 * gimple-expr.c (mark_addressable): Skip outer WITH_SIZE_EXPR.
17246 2021-05-25 Geng Qi <gengqi@linux.alibaba.com>
17248 * config/csky/csky.h (FRAME_POINTER_REGNUM): Use
17249 HARD_FRAME_POINTER_REGNUM and FRAME_POINTER_REGNUM instead of
17250 the signle definition. The signle definition may not work well
17251 at simplify_subreg_regno().
17252 (HARD_FRAME_POINTER_REGNUM): New.
17253 (ELIMINABLE_REGS): Add for HARD_FRAME_POINTER_REGNUM.
17254 * config/csky/csky.c (get_csky_live_regs, csky_can_eliminate,
17255 csky_initial_elimination_offset, csky_expand_prologue,
17256 csky_expand_epilogue): Add for HARD_FRAME_POINTER_REGNUM.
17258 2021-05-25 Geng Qi <gengqi@linux.alibaba.com>
17260 * config/csky/csky.c (csky_option_override):
17261 Init csky_arch_isa_features[] in advance, so TARGET_DSP
17262 and TARGET_DIV can be set well.
17264 2021-05-25 Geng Qi <gengqi@linux.alibaba.com>
17266 * config/csky/constraints.md ("l", "h"): Delete.
17267 * config/csky/csky.h (reg_class, REG_CLASS_NAMES,
17268 REG_CLASS_CONTENTS): Delete LO_REGS and HI_REGS.
17269 * config/csky/csky.c (regno_reg_classm,
17270 csky_secondary_reload, csky_register_move_cost):
17271 Use HILO_REGS instead of LO_REGS and HI_REGS.
17273 2021-05-25 Geng Qi <gengqi@linux.alibaba.com>
17275 * config/csky/constraints.md ("W"): New constriant for mem operand
17276 with base reg, index register.
17277 ("Q"): Renamed and modified "csky_valid_fpuv2_mem_operand" to
17278 "csky_valid_mem_constraint_operand" to deal with both "Q" and "W"
17280 ("Dv"): New constraint for const double value that can be used at
17282 * config/csky/csky-modes.def (HFmode): New mode.
17283 * config/csky/csky-protos.h (csky_valid_fpuv2_mem_operand): Rename
17284 to "csky_valid_mem_constraint_operand" and support new constraint
17286 (csky_get_movedouble_length): New.
17287 (fpuv3_output_move): New.
17288 (fpuv3_const_double): New.
17289 * config/csky/csky.c (csky_option_override): New arch CK860 with fpv3.
17290 (decompose_csky_address): Refine.
17291 (csky_print_operand): New "CONST_DOUBLE" operand.
17292 (csky_output_move): Support fpv3 instructions.
17293 (csky_get_movedouble_length): New.
17294 (fpuv3_output_move): New.
17295 (fpuv3_const_double): New.
17296 (csky_emit_compare): Cover float comparsion.
17297 (csky_emit_compare_float): Refine.
17298 (csky_vaild_fpuv2_mem_operand): Rename to
17299 "csky_valid_mem_constraint_operand" and support new constraint "W".
17300 (ck860_rtx_costs): New.
17301 (csky_rtx_costs): Add the cost calculation of CK860.
17302 (regno_reg_class): New vregs for fpuv3.
17303 (csky_dbx_regno): Likewise.
17304 (csky_cpu_cpp_builtins): New builtin macro for fpuv3.
17305 (csky_conditional_register_usage): Suporrot fpuv3.
17306 (csky_dwarf_register_span): Suporrot fpuv3.
17307 (csky_init_builtins, csky_mangle_type): Support "__fp16" type.
17308 (ck810_legitimate_index_p): Support fp16.
17309 * config/csky/csky.h (TARGET_TLS): ADD CK860.
17310 (CSKY_VREG_P, CSKY_VREG_LO_P, CSKY_VREG_HI_P): Support fpuv3.
17311 (TARGET_SINGLE_FPU): Support fpuv3.
17312 (TARGET_SUPPORT_FPV3): New.
17313 (FIRST_PSEUDO_REGISTER): Change to 202 to hold the new fpuv3 registers.
17314 (FIXED_REGISTERS, CALL_REALLY_USED_REGISTERS, REGISTER_NAMES,
17315 REG_CLASS_CONTENTS): Support fpuv3.
17316 * config/csky/csky.md (movsf): Move to cksy_insn_fpu.md and refine.
17317 (csky_movsf_fpv2): Likewise.
17318 (ck801_movsf): Likewise.
17319 (csky_movsf): Likewise.
17321 (csky_movdf_fpv2): Likewise.
17322 (ck801_movdf): Likewise.
17323 (csky_movdf): Likewise.
17324 (movsicc): Refine. Use "comparison_operatior" instead of
17325 "ordered_comparison_operatior".
17326 (addsicc): Likewise.
17327 (CSKY_FIRST_VFP3_REGNUM, CSKY_LAST_VFP3_REGNUM): New constant.
17328 (call_value_internal_vh): New.
17329 * config/csky/csky_cores.def (CK860): New arch and cpu.
17334 * config/csky/csky_insn_fpu.md: Refactor. Separate all float patterns
17335 into emit-patterns and match-patterns, remain the emit-patterns here,
17336 and move the match-patterns to csky_insn_fpuv2.md or
17337 csky_insn_fpuv3.md.
17338 * config/csky/csky_insn_fpuv2.md: New file for fpuv2 instructions.
17339 * config/csky/csky_insn_fpuv3.md: New file and new patterns for fpuv3
17341 * config/csky/csky_isa.def (fcr): New.
17346 (CK860): New definition for ck860.
17347 * config/csky/csky_tables.opt (ck860): New processors ck860,
17348 ck860f. And new arch ck860.
17353 * config/csky/predicates.md (csky_float_comparsion_operator): Delete
17354 "geu", "gtu", "leu", "ltu", which will never appear at float comparison.
17355 * config/csky/t-csky-elf: Support 860.
17356 * config/csky/t-csky-linux: Likewise.
17357 * doc/md.texi: Add "Q" and "W" constraints for C-SKY.
17359 2021-05-24 Aaron Sawdey <acsawdey@linux.ibm.com>
17361 * config/rs6000/genfusion.pl (gen_logical_addsubf): Refactor to
17362 add generation of logical-add and add-logical fusion pairs.
17363 * config/rs6000/rs6000-cpus.def: Add new fusion to ISA 3.1 mask
17365 * config/rs6000/rs6000.c (rs6000_option_override_internal): Turn on
17366 logical-add and add-logical fusion by default.
17367 * config/rs6000/rs6000.opt: Add -mpower10-fusion-logical-add and
17368 -mpower10-fusion-add-logical options.
17369 * config/rs6000/fusion.md: Regenerate file.
17371 2021-05-24 Aldy Hernandez <aldyh@redhat.com>
17373 * value-range.cc (irange::legacy_equal_p): Check type when
17374 comparing VR_VARYING types.
17375 (range_tests_legacy): Test comparing VARYING ranges of different
17378 2021-05-24 Wilco Dijkstra <wdijkstr@arm.com>
17380 * config/aarch64/aarch64.c (neoversen1_tunings):
17381 Enable AARCH64_EXTRA_TUNE_CHEAP_SHIFT_EXTEND.
17383 2021-05-24 Wilco Dijkstra <wdijkstr@arm.com>
17385 * config/aarch64/aarch64.c (aarch64_classify_symbol): Use GOT for
17386 extern weak symbols. Limit symbol offsets for non-GOT symbols with
17389 2021-05-24 Christophe Lyon <christophe.lyon@linaro.org>
17391 * config/arm/neon.md (vec_load_lanesxi<mode>)
17392 (vec_store_lanexoi<mode>): Move ...
17393 * config/arm/vec-common.md: here.
17395 2021-05-24 Christophe Lyon <christophe.lyon@linaro.org>
17397 * config/arm/neon.md (vec_load_lanesoi<mode>)
17398 (vec_store_lanesoi<mode>): Move ...
17399 * config/arm/vec-common.md: here.
17401 2021-05-24 liuhongt <hongtao.liu@intel.com>
17404 * config/i386/i386.c (ix86_gimple_fold_builtin): Replacing
17405 stmt with GIMPLE_NOP when lhs doesn't exist.
17407 2021-05-23 Uroš Bizjak <ubizjak@gmail.com>
17410 * config/i386/mmx.md (*push<VI_32:mode>2_rex64):
17411 New instruction pattern.
17412 (*push<VI_32:mode>2): Ditto.
17413 (push splitter for SSE registers): New splitter.
17415 2021-05-23 Andrew Pinski <apinski@marvell.com>
17417 * match.pd ((A & C) != 0 ? D : 0): Limit to non pointer types.
17419 2021-05-22 Aaron Sawdey <acsawdey@linux.ibm.com>
17421 * config/rs6000/genfusion.pl (gen_addadd): Fix incorrect attr types.
17422 * config/rs6000/fusion.md: Regenerate file.
17424 2021-05-21 Aaron Sawdey <acsawdey@linux.ibm.com>
17426 * config/rs6000/genfusion.pl (gen_addadd): New function.
17427 * config/rs6000/fusion.md: Regenerate file.
17428 * config/rs6000/rs6000-cpus.def: Add
17429 OPTION_MASK_P10_FUSION_2ADD to masks.
17430 * config/rs6000/rs6000.c (rs6000_option_override_internal):
17431 Handle default value of OPTION_MASK_P10_FUSION_2ADD.
17432 * config/rs6000/rs6000.opt: Add -mpower10-fusion-2add.
17434 2021-05-21 Jakub Jelinek <jakub@redhat.com>
17436 PR middle-end/99928
17437 * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT_TARGET): Define.
17438 * gimplify.c (enum gimplify_omp_var_data): Fix up
17439 GOVD_MAP_HAS_ATTACHMENTS value, add GOVD_FIRSTPRIVATE_IMPLICIT.
17440 (omp_lastprivate_for_combined_outer_constructs): If combined target
17441 has GOVD_FIRSTPRIVATE_IMPLICIT set for the decl, change it to
17442 GOVD_MAP | GOVD_SEEN.
17443 (gimplify_scan_omp_clauses): Set GOVD_FIRSTPRIVATE_IMPLICIT for
17444 firstprivate clauses with OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT.
17445 (gimplify_adjust_omp_clauses): For firstprivate clauses with
17446 OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT either clear that bit and
17447 OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT_TARGET too, or remove it and
17448 let it be replaced by implicit map clause.
17450 2021-05-21 Jakub Jelinek <jakub@redhat.com>
17452 PR middle-end/99928
17453 * gimplify.c (omp_lastprivate_for_combined_outer_constructs): New
17455 (gimplify_scan_omp_clauses) <case OMP_CLAUSE_LASTPRIVATE>: Use it.
17456 (gimplify_omp_for): Likewise.
17458 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
17460 PR middle-end/90115
17461 * omp-low.c (oacc_privatization_candidate_p): Reject 'static',
17462 'external' in blocks.
17464 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
17466 PR middle-end/90115
17467 * flag-types.h (enum openacc_privatization): New.
17468 * params.opt (-param=openacc-privatization): New.
17469 * doc/invoke.texi (openacc-privatization): Document it.
17470 * omp-general.h (get_openacc_privatization_dump_flags): New
17472 * omp-low.c (oacc_privatization_candidate_p): Add diagnostics.
17473 * omp-offload.c (execute_oacc_device_lower)
17474 <IFN_UNIQUE_OACC_PRIVATE>: Re-work diagnostics.
17475 * target.def (goacc.adjust_private_decl): Add 'location_t'
17477 * doc/tm.texi: Regenerate.
17478 * config/gcn/gcn-protos.h (gcn_goacc_adjust_private_decl): Adjust.
17479 * config/gcn/gcn-tree.c (gcn_goacc_adjust_private_decl): Likewise.
17480 * config/nvptx/nvptx.c (nvptx_goacc_adjust_private_decl):
17481 Likewise. Preserve it for...
17482 (nvptx_goacc_expand_var_decl): ... use here.
17484 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
17486 * doc/sourcebuild.texi (Other attributes): Document '__OPTIMIZE__'
17489 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
17491 PR middle-end/90115
17492 * omp-low.c (oacc_privatization_candidate_p): New function.
17493 (oacc_privatization_scan_clause_chain)
17494 (oacc_privatization_scan_decl_chain): Use it. Also
17495 'gcc_checking_assert' that we're not seeing duplicates.
17497 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
17499 PR middle-end/90115
17500 * omp-offload.c (execute_oacc_device_lower): Skip processing if no
17503 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
17505 PR middle-end/90115
17506 * omp-offload.c (execute_oacc_device_lower): Explain.
17508 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
17510 PR middle-end/90115
17511 * omp-offload.c (execute_oacc_device_lower)
17512 <IFN_UNIQUE_OACC_PRIVATE>: Diagnose and handle for 'level == -1'
17514 * internal-fn.c (expand_UNIQUE): Don't expect
17515 'IFN_UNIQUE_OACC_PRIVATE'.
17517 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
17519 PR middle-end/90115
17520 * omp-low.c (lower_omp_for): Don't evaluate OpenMP 'for' clauses.
17522 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
17524 PR middle-end/90115
17525 * config/nvptx/nvptx.c (nvptx_goacc_adjust_private_decl)
17526 (nvptx_goacc_expand_var_decl): Tighten.
17528 2021-05-21 Julian Brown <julian@codesourcery.com>
17529 Chung-Lin Tang <cltang@codesourcery.com>
17530 Thomas Schwinge <thomas@codesourcery.com>
17532 PR middle-end/90115
17533 * doc/tm.texi.in (TARGET_GOACC_EXPAND_VAR_DECL)
17534 (TARGET_GOACC_ADJUST_PRIVATE_DECL): Add documentation hooks.
17535 * doc/tm.texi: Regenerate.
17536 * expr.c (expand_expr_real_1): Expand decls using the
17537 expand_var_decl OpenACC hook if defined.
17538 * internal-fn.c (expand_UNIQUE): Handle IFN_UNIQUE_OACC_PRIVATE.
17539 * internal-fn.h (IFN_UNIQUE_CODES): Add OACC_PRIVATE.
17540 * omp-low.c (omp_context): Add oacc_privatization_candidates
17542 (lower_oacc_reductions): Add PRIVATE_MARKER parameter. Insert
17544 (lower_oacc_head_tail): Add PRIVATE_MARKER parameter. Modify
17545 private marker's gimple call arguments, and pass it to
17546 lower_oacc_reductions.
17547 (oacc_privatization_scan_clause_chain)
17548 (oacc_privatization_scan_decl_chain, lower_oacc_private_marker):
17550 (lower_omp_for, lower_omp_target, lower_omp_1): Use these.
17551 * omp-offload.c (convert.h): Include.
17552 (oacc_loop_xform_head_tail): Treat private-variable markers like
17553 fork/join when transforming head/tail sequences.
17554 (struct var_decl_rewrite_info): Add struct.
17555 (oacc_rewrite_var_decl, is_sync_builtin_call): New functions.
17556 (execute_oacc_device_lower): Support rewriting gang-private
17557 variables using target hook, and fix up addr_expr and var_decl
17559 * target.def (adjust_private_decl, expand_var_decl): New hooks.
17560 * config/gcn/gcn-protos.h (gcn_goacc_adjust_gangprivate_decl):
17562 (gcn_goacc_adjust_private_decl): ...this.
17563 * config/gcn/gcn-tree.c (gcn_goacc_adjust_gangprivate_decl):
17565 (gcn_goacc_adjust_private_decl): ...this. Add LEVEL parameter.
17566 * config/gcn/gcn.c (TARGET_GOACC_ADJUST_GANGPRIVATE_DECL): Rename
17567 definition using gcn_goacc_adjust_gangprivate_decl...
17568 (TARGET_GOACC_ADJUST_PRIVATE_DECL): ...to this, using
17569 gcn_goacc_adjust_private_decl.
17570 * config/nvptx/nvptx.c (tree-pretty-print.h): Include.
17571 (gang_private_shared_size): New global variable.
17572 (gang_private_shared_align): Likewise.
17573 (gang_private_shared_sym): Likewise.
17574 (gang_private_shared_hmap): Likewise.
17575 (nvptx_option_override): Initialize these.
17576 (nvptx_file_end): Output gang_private_shared_sym.
17577 (nvptx_goacc_adjust_private_decl, nvptx_goacc_expand_var_decl):
17579 (nvptx_set_current_function): Clear gang_private_shared_hmap.
17580 (TARGET_GOACC_ADJUST_PRIVATE_DECL): Define hook.
17581 (TARGET_GOACC_EXPAND_VAR_DECL): Likewise.
17583 2021-05-21 H.J. Lu <hjl.tools@gmail.com>
17585 * config/i386/i386-modes.def (MAX_BITSIZE_MODE_ANY_INT): Removed.
17587 2021-05-21 Richard Biener <rguenther@suse.de>
17588 H.J. Lu <hjl.tools@gmail.com>
17590 PR middle-end/90773
17591 * expr.c (expand_constructor): Elide expand_constructor if
17592 move by pieces is preferred.
17594 2021-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17596 * config/aarch64/aarch64-builtins.c (aarch64_call_properties):
17597 Take a flag and mode value as arguments.
17598 (aarch64_modifies_global_state_p): Likewise.
17599 (aarch64_reads_global_state_p): Likewise.
17600 (aarch64_could_trap_p): Likewise.
17601 (aarch64_get_attributes): Likewise.
17602 (aarch64_init_simd_builtins): Adjust callsite of above.
17603 (aarch64_init_fcmla_laneq_builtins): Use aarch64_get_attributes to get
17604 function attributes to apply to builtins.
17605 (aarch64_init_crc32_builtins): Likewise.
17606 (aarch64_init_builtin_rsqrt): Likewise.
17608 2021-05-21 Aaron Sawdey <acsawdey@linux.ibm.com>
17610 * config/rs6000/rs6000.md (define_attr "type"): Add types for fusion.
17611 * config/rs6000/genfusion.pl (gen_ld_cmpi_p10): Use new fusion types.
17612 (gen_2logical): Use new fusion types.
17613 * config/rs6000/fusion.md: Regenerate.
17615 2021-05-21 Uroš Bizjak <ubizjak@gmail.com>
17618 * config/i386/i386-expand.c (ix86_expand_sse_movcc):
17619 Handle V4QI and V2HI modes.
17620 (ix86_expand_sse_movcc): Ditto.
17621 * config/i386/mmx.md (*<sat_plusminus:insn><VI_32:mode>3):
17622 New instruction pattern.
17623 (*eq<VI_32:mode>3): Ditto.
17624 (*gt<VI_32:mode>3): Ditto.
17625 (*xop_pcmov_<VI_32:mode>): Ditto.
17626 (mmx_pblendvb32): Ditto.
17627 (mmx_pblendvb64): Rename from mmx_pblendvb.
17628 (vec_cmp<VI_32:mode><VI_32:mode>): New expander.
17629 (vec_cmpu<VI_32:mode><VI_32:mode>): Ditto.
17630 (vcond<VI_32:mode><VI_32:mode>): Ditto.
17631 (vcondu<VI_32:mode><VI_32:mode>): Ditto.
17632 (vcond_mask_<VI_32:mode><VI_32:mode>): Ditto.
17634 2021-05-21 Jakub Jelinek <jakub@redhat.com>
17636 PR tree-optimization/94589
17637 * tree-ssa-phiopt.c (spaceship_replacement): For integral rhs1 and
17638 rhs2, treat x <= 4 equivalently to x < 5 etc. In cmp1 and cmp2 (if
17639 not the same as cmp3) treat <= the same as < and >= the same as >.
17640 Don't require that cond2_phi_edge is true edge, instead take
17641 false/true edges into account based on cmp1/cmp2 comparison kinds.
17643 2021-05-21 Uroš Bizjak <ubizjak@gmail.com>
17646 * config/i386/mmx.md (SMAXMIN_MMXMODEI): New mode iterator.
17647 (<smaxmin:code><SMAXMIN_MMXMODEI:mode>3): Macroize expander
17648 from <smaxmin:code>v4hi3> and <smaxmin:code><MMXMODE14:mode>3
17649 using SMAXMIN_MMXMODEI mode iterator.
17650 (*<smaxmin:code>v4qi3): New insn pattern.
17651 (*<smaxmin:code>v2hi3): Ditto.
17652 (SMAXMIN_VI_32): New mode iterator.
17653 (<smaxmin:code><SMAXMIN_VI_32>mode3): New expander.
17654 (UMAXMIN_MMXMODEI): New mode iterator.
17655 (<umaxmin:code><UMAXMIN_MMXMODEI:mode>3): Macroize expander
17656 from <umaxmin:code>v8qi3> and <umaxmin:code><MMXMODE24:mode>3
17657 using UMAXMIN_MMXMODEI mode iterator.
17658 (*<umaxmin:code>v4qi3): New insn pattern.
17659 (*<umaxmin:code>v2hi3): Ditto.
17660 (UMAXMIN_VI_32): New mode iterator.
17661 (<umaxmin:code><UMAXMIN_VI_32>mode3): New expander.
17662 (abs<VI_32:mode>2): New insn pattern.
17663 (ssse3_abs<MMXMODEI:mode>2, abs<MMXMODEI:mode>2): Move from ...
17664 * config/i386/sse.md: ... here.
17666 2021-05-20 Clement Chigot <clement.chigot@atos.net>
17667 David Edelsohn <dje.gcc@gmail.com>
17669 * collect2.c (scan_prog_file): Issue non-fatal warning for
17672 2021-05-20 Jonathan Wakely <jwakely@redhat.com>
17674 * doc/invoke.texi (-Wno-c++11-extensions)
17675 (-Wno-c++14-extensions, -Wno-c++17-extensions)
17676 (-Wno-c++20-extensions, -Wno-c++23-extensions): Document
17679 2021-05-20 Indu Bhagat <indu.bhagat@oracle.com>
17681 * config/c6x/c6x.c (c6x_output_file_unwind): Use dwarf_debuginfo_p.
17682 * config/darwin.c (darwin_override_options): Likewise.
17683 * config/i386/cygming.h (DBX_REGISTER_NUMBER): Likewise.
17684 * config/i386/darwin.h (DBX_REGISTER_NUMBER): Likewise.
17685 (DWARF2_FRAME_REG_OUT): Likewise.
17686 * config/mips/mips.c (mips_output_filename): Likewise.
17687 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name):
17689 (rs6000_dbx_register_number): Likewise.
17690 * dbxout.c: Include flags.h.
17691 * dwarf2cfi.c (cfi_label_required_p): Likewise.
17692 (dwarf2out_do_frame): Likewise.
17693 * except.c: Include flags.h.
17694 * final.c (dwarf2_debug_info_emitted_p): Likewise.
17695 (final_scan_insn_1): Likewise.
17696 * flags.h (dwarf_debuginfo_p): New function declaration.
17697 * opts.c (dwarf_debuginfo_p): New function definition.
17698 * targhooks.c (default_debug_unwind_info): Use dwarf_debuginfo_p.
17699 * toplev.c (process_options): Likewise.
17701 2021-05-20 Indu Bhagat <indu.bhagat@oracle.com>
17703 * common.opt: Change type to support bitmasks.
17704 * flag-types.h (enum debug_info_type): Rename enumerator constants.
17705 (NO_DEBUG): New bitmask.
17706 (DBX_DEBUG): Likewise.
17707 (DWARF2_DEBUG): Likewise.
17708 (XCOFF_DEBUG): Likewise.
17709 (VMS_DEBUG): Likewise.
17710 (VMS_AND_DWARF2_DEBUG): Likewise.
17711 * flags.h (debug_set_to_format): New function declaration.
17712 (debug_set_count): Likewise.
17713 (debug_set_names): Likewise.
17714 * opts.c (debug_type_masks): Array of bitmasks for debug formats.
17715 (debug_set_to_format): New function definition.
17716 (debug_set_count): Likewise.
17717 (debug_set_names): Likewise.
17718 (set_debug_level): Update access to debug_type_names.
17719 * toplev.c: Likewise.
17721 2021-05-20 Martin Sebor <msebor@redhat.com>
17723 PR middle-end/100684
17724 * tree-ssa-ccp.c (pass_post_ipa_warn::execute): Handle C++ lambda.
17726 2021-05-20 Uroš Bizjak <ubizjak@gmail.com>
17729 * config/i386/i386.md (isa): Remove x64_bmi.
17730 (enabled): Remove x64_bmi.
17731 * config/i386/mmx.md (mmx_andnot<MMXMODEI:mode>3):
17732 Remove general register alternative.
17733 (*andnot<VI_32:mode>3): Ditto.
17734 (*mmx_<any_logic:code><MMXMODEI:mode>3): Ditto.
17735 (*<any_logic:code><VI_32:mode>3): Ditto.
17737 2021-05-20 Kewen Lin <linkw@linux.ibm.com>
17739 * config/arm/arm.c: Include head files tree-vectorizer.h and
17742 2021-05-20 Uroš Bizjak <ubizjak@gmail.com>
17745 * config/i386/mmx.md (Yv_Yw): Revert adding V4QI and V2HI modes.
17746 (*<plusminus:insn><VI_32:mode>3): Use Yw instad of <Yv_Yw> constrint.
17747 (<s>mulv4hi3_highpart): New expander.
17748 (*<s>mulv2hi3_highpart): New insn pattern.
17749 (<s>mulv2hi3_higpart): New expander.
17750 (*<any_shift:insn>v2hi3): New insn pattern.
17751 (<any_shift:insn>v2hi3): New expander.
17752 * config/i386/sse.md (smulhrsv2hi3): New expander.
17753 (*smulhrsv2hi3): New insn pattern.
17755 2021-05-20 Kewen Lin <linkw@linux.ibm.com>
17757 * doc/invoke.texi (vect-inner-loop-cost-factor): Document new
17759 * params.opt (vect-inner-loop-cost-factor): New.
17760 * targhooks.c (default_add_stmt_cost): Replace hardcoded factor
17761 50 with LOOP_VINFO_INNER_LOOP_COST_FACTOR, include head file
17762 tree-vectorizer.h and its required ones.
17763 * config/aarch64/aarch64.c (aarch64_add_stmt_cost): Replace
17764 hardcoded factor 50 with LOOP_VINFO_INNER_LOOP_COST_FACTOR.
17765 * config/arm/arm.c (arm_add_stmt_cost): Likewise.
17766 * config/i386/i386.c (ix86_add_stmt_cost): Likewise.
17767 * config/rs6000/rs6000.c (rs6000_add_stmt_cost): Likewise.
17768 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
17770 (_loop_vec_info::_loop_vec_info): Init inner_loop_cost_factor.
17771 * tree-vectorizer.h (_loop_vec_info): Add inner_loop_cost_factor.
17772 (LOOP_VINFO_INNER_LOOP_COST_FACTOR): New macro.
17774 2021-05-20 Christophe Lyon <christophe.lyon@linaro.org>
17775 Torbjörn Svensson <torbjorn.svensson@st.com>
17778 * doc/cpp.texi (Common Predefined Macros): Document __FILE_NAME__.
17780 2021-05-20 Jakub Jelinek <jakub@redhat.com>
17782 PR middle-end/99928
17783 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_LINEAR>: For
17784 explicit linear clause when combined with target, make it map(tofrom:)
17785 instead of no clause or firstprivate.
17787 2021-05-20 Jakub Jelinek <jakub@redhat.com>
17789 PR tree-optimization/94589
17790 * match.pd ((X & Y) == X -> (X & ~Y) == 0): Simplify even in presence
17791 of integral conversions.
17793 2021-05-19 Andrew MacLeod <amacleod@redhat.com>
17795 * gimple-range.cc (fur_source::get_operand): New.
17796 (gimple_range_fold): Delete.
17797 (fold_using_range::fold_stmt): Move from gimple_ranger::calc_stmt.
17798 (fold_using_range::range_of_range_op): Move from gimple_ranger.
17799 (fold_using_range::range_of_address): Ditto.
17800 (fold_using_range::range_of_phi): Ditto.
17801 (fold_using_range::range_of_call): Ditto.
17802 (fold_using_range::range_of_builtin_ubsan_call): Move from
17803 range_of_builtin_ubsan_call.
17804 (fold_using_range::range_of_builtin_call): Move from
17805 range_of_builtin_call.
17806 (gimple_ranger::range_of_builtin_call): Delete.
17807 (fold_using_range::range_of_cond_expr): Move from gimple_ranger.
17808 (gimple_ranger::fold_range_internal): New.
17809 (gimple_ranger::range_of_stmt): Use new fold_using_range API.
17810 (fold_using_range::range_of_ssa_name_with_loop_info): Move from
17811 gimple_ranger. Improve ranges of SSA_NAMES when possible.
17812 * gimple-range.h (gimple_ranger): Remove various range_of routines.
17813 (class fur_source): New.
17814 (class fold_using_range): New.
17815 (fur_source::fur_source): New.
17817 * vr-values.c (vr_values::extract_range_basic): Use fold_using_range
17818 instead of range_of_builtin_call.
17820 2021-05-19 Jonathan Wakely <jwakely@redhat.com>
17822 * doc/cpp.texi (Common Predefined Macros): Update documentation
17823 for the __GXX_EXPERIMENTAL_CXX0X__ macro.
17825 2021-05-19 Alex Coplan <alex.coplan@arm.com>
17828 * config/arm/arm.md (nonsecure_call_internal): Always ensure
17829 callee's address is in a register.
17831 2021-05-19 Geng Qi <gengqi@linux.alibaba.com>
17833 * common/config/riscv/riscv-common.c
17834 (riscv_subset_list::parsing_subset_version): Properly parse the letter
17836 (riscv_subset_list::parse_std_ext,
17837 riscv_subset_list::parse_multiletter_ext): To handle errors generated
17838 in riscv_subset_list::parsing_subset_version.
17840 2021-05-19 Jonathan Wright <jonathan.wright@arm.com>
17842 * config/aarch64/aarch64-simd.md: Use "neon_move_narrow_q"
17843 type attribute in patterns generating XTN(2).
17845 2021-05-19 Jonathan Wright <jonathan.wright@arm.com>
17847 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_pack_trunc_<mode>):
17848 Remove as duplicate of...
17849 (aarch64_xtn<mode>): This.
17850 (aarch64_xtn2<mode>_le): Move position in file.
17851 (aarch64_xtn2<mode>_be): Move position in file.
17852 (aarch64_xtn2<mode>): Move position in file.
17853 (vec_pack_trunc_<mode>): Define as an expander.
17855 2021-05-19 Jonathan Wright <jonathan.wright@arm.com>
17857 * config/aarch64/aarch64-simd-builtins.def: Split builtin
17858 generation for aarch64_<sur>q<r>shr<u>n_n<mode> pattern into
17859 separate scalar and vector generators.
17860 * config/aarch64/aarch64-simd.md
17861 (aarch64_<sur>q<r>shr<u>n_n<mode>): Define as an expander and
17863 (aarch64_<sur>q<r>shr<u>n_n<mode>_insn_le): This and...
17864 (aarch64_<sur>q<r>shr<u>n_n<mode>_insn_be): This.
17865 * config/aarch64/iterators.md: Define SD_HSDI iterator.
17867 2021-05-19 Jonathn Wright <jonathan.wright@arm.com>
17869 * config/aarch64/aarch64-simd.md: Use UNSPEC_SQXTUN instead
17871 * config/aarch64/iterators.md: Remove UNSPEC_SQXTUN2.
17873 2021-05-19 Jonathan Wright <jonathan.wright@arm.com>
17875 * config/aarch64/aarch64-simd.md (aarch64_<sur>q<r>shr<u>n2_n<mode>):
17876 Implement as an expand emitting a big/little endian
17877 instruction pattern.
17878 (aarch64_<sur>q<r>shr<u>n2_n<mode>_insn_le): Define.
17879 (aarch64_<sur>q<r>shr<u>n2_n<mode>_insn_be): Define.
17881 2021-05-19 Jonathan Wright <jonathan.wright@arm.com>
17883 * config/aarch64/aarch64-simd.md (aarch64_<sur><addsub>hn2<mode>):
17884 Implement as an expand emitting a big/little endian
17885 instruction pattern.
17886 (aarch64_<sur><addsub>hn2<mode>_insn_le): Define.
17887 (aarch64_<sur><addsub>hn2<mode>_insn_be): Define.
17888 * config/aarch64/iterators.md: Remove UNSPEC_[R]ADDHN2 and
17889 UNSPEC_[R]SUBHN2 unspecs and ADDSUBHN2 iterator.
17891 2021-05-19 Richard Biener <rguenther@suse.de>
17893 PR middle-end/100672
17894 * fold-const.c (fold_negate_expr_1): Use element_precision.
17895 (negate_expr_p): Likewise.
17897 2021-05-19 Andre Vieira <andre.simoesdiasvieira@arm.com>
17899 * config/aarch64/iterators.md (SVE_PRED_LOAD): New iterator.
17900 (pred_load): New int attribute.
17901 * config/aarch64/aarch64-sve.md
17902 (aarch64_load_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>): Use
17903 SVE_PRED_LOAD enum iterator and corresponding pred_load attribute.
17904 * config/aarch64/aarch64-sve-builtins-base.cc (expand): Update call to
17905 code_for_aarch64_load.
17907 2021-05-19 Richard Biener <rguenther@suse.de>
17909 * cfgexpand.c (discover_nonconstant_array_refs_r): Make
17910 sure TARGET_MEM_REF bases are expanded as memory.
17911 * tree-ssa-operands.c (operands_scanner::get_tmr_operands):
17912 Do not mark TARGET_MEM_REF bases addressable.
17913 * tree-ssa.c (non_rewritable_mem_ref_base): Handle
17914 TARGET_MEM_REF bases as never rewritable.
17915 * gimple-walk.c (walk_stmt_load_store_addr_ops): Do not
17916 walk TARGET_MEM_REF bases as address-takens.
17917 * tree-ssa-dce.c (ref_may_be_aliased): Handle TARGET_MEM_REF.
17919 2021-05-19 Richard Biener <rguenther@suse.de>
17921 * builtins.c (get_object_alignment_1): Strip outer
17923 * tree-dfa.c (get_ref_base_and_extent): Handle outer
17924 WITH_SIZE_EXPR for size processing and process the
17926 * tree-ssa-alias.c (ao_ref_base_alias_set): Strip
17927 outer WITH_SIZE_EXPR.
17928 (ao_ref_base_alias_ptr_type): Likewise.
17929 (refs_may_alias_p_2): Allow WITH_SIZE_EXPR in ref->ref
17930 and handle that accordingly, stripping it for the
17931 core alias workers.
17932 * tree.c (get_base_address): Handle WITH_SIZE_EXPR by
17933 looking through it instead of returning NULL.
17935 2021-05-19 Jakub Jelinek <jakub@redhat.com>
17937 PR middle-end/100576
17938 * builtins.c (check_read_access): Convert bound to size_type_node if
17941 2021-05-19 Richard Biener <rguenther@suse.de>
17943 * tree-cfg.c (verify_types_in_gimple_min_lval): Inline...
17944 (verify_types_in_gimple_reference): ... here. Sanitize.
17945 (verify_gimple_call): Verify references in LHS and arguments.
17946 (verify_gimple_assign_single): Reject WITH_SIZE_EXPR.
17948 2021-05-19 Uroš Bizjak <ubizjak@gmail.com>
17950 * config/i386/i386.h (VALID_INT_MODE_P):
17951 Add V8QI, V4HI and V2SI modes for TARGET_64BIT.
17952 * config/i386/i386.md (isa): Add x64_bmi.
17953 (enabled): Handle x64_bmi.
17954 * config/i386/mmx.md (mmx_andnot<MMXMODEI:mode>3):
17955 Add alternative using 64bit general registers.
17956 (*mmx_<any_logic:code><MMXMODEI:mode>3): Ditto.
17958 2021-05-19 Jakub Jelinek <jakub@redhat.com>
17960 PR middle-end/99928
17961 * tree.h (OMP_MASTER_COMBINED): Define.
17962 * gimplify.c (gimplify_scan_omp_clauses): Rewrite lastprivate
17963 handling for outer combined/composite constructs to a loop.
17964 Handle lastprivate on combined target.
17965 (gimplify_expr): Formatting fix.
17967 2021-05-19 Xionghu Luo <luoxhu@linux.ibm.com>
17969 * passes.def: Add sink_code pass before store_merging.
17970 * tree-ssa-sink.c (pass_sink_code:clone): New.
17972 2021-05-18 Bill Schmidt <wschmidt@linux.ibm.com>
17974 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Remove call to
17975 rs6000_special_adjust_field_align_p.
17976 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
17977 * config/rs6000/rs6000-call.c (rs6000_function_arg_boundary):
17978 Remove ABI warning.
17979 (rs6000_function_arg): Likewise.
17980 * config/rs6000/rs6000-protos.h
17981 (rs6000_special_adjust_field_align_p): Remove prototype.
17982 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
17984 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Remove call to
17985 rs6000_special_adjust_field_align_p.
17987 2021-05-18 Uroš Bizjak <ubizjak@gmail.com>
17990 * config/i386/i386.h (VALID_SSE2_REG_MODE):
17991 Add V4QI and V2HI modes.
17992 (VALID_INT_MODE_P): Ditto.
17993 * config/i386/mmx.md (VI_32): New mode iterator.
17994 (mmxvecsize): Handle V4QI and V2HI.
17996 (mov<VI_32:mode>): New expander.
17997 (*mov<mode>_internal): New insn pattern.
17998 (movmisalign<VI_32:mode>): New expander.
17999 (neg<VI_32:mode>): New expander.
18000 (<plusminus:insn><VI_32:mode>3): New expander.
18001 (*<plusminus:insn><VI_32:mode>3): New insn pattern.
18002 (mulv2hi3): New expander.
18003 (*mulv2hi3): New insn pattern.
18004 (one_cmpl<VI_32:mode>2): New expander.
18005 (*andnot<VI_32:mode>3): New insn pattern.
18006 (<any_logic:code><VI_32:mode>3): New expander.
18007 (*<any_logic:code><VI_32:mode>3): New insn pattern.
18009 2021-05-18 Uroš Bizjak <ubizjak@gmail.com>
18011 * config/i386/sse.md (<any_extend:insn>v4qiv4di2):
18012 Fix a mode mismatch with operand 1.
18014 2021-05-18 Uroš Bizjak <ubizjak@gmail.com>
18017 * config/i386/i386-expand.c (split_double_mode): Return
18018 temporary register when simplify_gen_subreg fails with
18019 the high half od the paradoxical subreg.
18021 2021-05-18 Richard Biener <rguenther@suse.de>
18023 * cfgexpand.c (expand_one_var): Pass in forced_stack_var
18024 and honor it when expanding.
18025 (expand_used_vars_for_block): Pass through forced_stack_var.
18026 (expand_used_vars): Likewise.
18027 (discover_nonconstant_array_refs_r): Set bits in
18028 forced_stack_vars instead of marking vars TREE_ADDRESSABLE.
18029 (avoid_type_punning_on_regs): Likewise.
18030 (discover_nonconstant_array_refs): Likewise.
18031 (pass_expand::execute): Create and pass down forced_stack_var
18032 bitmap. For parameters and returns temporarily set
18033 TREE_ADDRESSABLE when expand_function_start.
18035 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
18037 * doc/sourcebuild.texi: Document 'dg-note'.
18039 2021-05-18 Tobias Burnus <tobias@codesourcery.com>
18042 * configure: Regenerate.
18043 * configure.ac (BUILD_CFLAG, BUILD_CXXFLAGS): Add $(CFLAGS-$@).
18045 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
18047 * gimple.h (is_gimple_omp_oacc): Tighten.
18048 * omp-low.c (check_omp_nesting_restrictions): Adjust.
18050 2021-05-18 Richard Biener <rguenther@suse.de>
18052 * tree-ssa-operands.c (mark_address_taken): Simplify.
18054 2021-05-18 Martin Liska <mliska@suse.cz>
18056 * config/gcn/mkoffload.c (STR): Redefine.
18057 * config/i386/intelmic-mkoffload.c (STR): Likewise.
18058 * config/nvptx/mkoffload.c (STR): Likewise.
18060 2021-05-18 Martin Liska <mliska@suse.cz>
18062 * common/config/aarch64/aarch64-common.c (aarch64_parse_extension):
18063 Use startswith function instead of strncmp.
18064 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
18065 * common/config/riscv/riscv-common.c (riscv_subset_list::parse): Likewise.
18066 * config/aarch64/aarch64-sve-builtins-shapes.cc (parse_type): Likewise.
18067 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Likewise.
18068 * config/alpha/alpha.c (alpha_elf_section_type_flags): Likewise.
18069 * config/arm/aarch-common.c (arm_md_asm_adjust): Likewise.
18070 * config/arm/arm.c (arm_file_start): Likewise.
18071 (arm_valid_target_attribute_rec): Likewise.
18072 (thumb1_md_asm_adjust): Likewise.
18073 * config/arm/driver-arm.c (host_detect_local_cpu): Likewise.
18074 * config/avr/avr.c (STR_PREFIX_P): Likewise.
18075 (avr_set_current_function): Likewise.
18076 (avr_handle_addr_attribute): Likewise.
18077 (avr_asm_output_aligned_decl_common): Likewise.
18078 (avr_asm_named_section): Likewise.
18079 (avr_section_type_flags): Likewise.
18080 (avr_asm_select_section): Likewise.
18081 * config/c6x/c6x.c (c6x_in_small_data_p): Likewise.
18082 (c6x_section_type_flags): Likewise.
18083 * config/darwin-c.c (darwin_cfstring_ref_p): Likewise.
18084 (darwin_objc_declare_unresolved_class_reference): Likewise.
18085 (darwin_objc_declare_class_definition): Likewise.
18086 * config/darwin.c (indirect_data): Likewise.
18087 (darwin_encode_section_info): Likewise.
18088 (darwin_objc2_section): Likewise.
18089 (darwin_objc1_section): Likewise.
18090 (machopic_select_section): Likewise.
18091 (darwin_globalize_label): Likewise.
18092 (darwin_label_is_anonymous_local_objc_name): Likewise.
18093 (darwin_asm_named_section): Likewise.
18094 (darwin_asm_output_dwarf_offset): Likewise.
18095 * config/frv/frv.c (frv_string_begins_with): Likewise.
18096 (frv_in_small_data_p): Likewise.
18097 * config/gcn/mkoffload.c (STR): Likewise.
18099 * config/i386/i386-builtins.c (get_builtin_code_for_version): Likewise.
18100 * config/i386/i386-options.c (ix86_option_override_internal): Likewise.
18101 * config/i386/i386.c (x86_64_elf_section_type_flags): Likewise.
18102 (ix86_md_asm_adjust): Likewise.
18103 * config/i386/intelmic-mkoffload.c (STR): Likewise.
18104 * config/i386/winnt.c (i386_pe_asm_named_section): Likewise.
18105 (i386_pe_file_end): Likewise.
18106 * config/ia64/ia64.c (ia64_in_small_data_p): Likewise.
18107 (ia64_section_type_flags): Likewise.
18108 * config/mips/driver-native.c (host_detect_local_cpu): Likewise.
18109 * config/mips/mips.c (mips_handle_interrupt_attr): Likewise.
18110 (mips16_stub_function_p): Likewise.
18111 (mips_function_rodata_section): Likewise.
18112 * config/msp430/msp430.c (msp430_mcu_name): Likewise.
18113 (msp430_function_section): Likewise.
18114 (msp430_section_type_flags): Likewise.
18115 (msp430_expand_helper): Likewise.
18116 * config/nios2/nios2.c (nios2_small_section_name_p): Likewise.
18117 (nios2_valid_target_attribute_rec): Likewise.
18118 * config/nvptx/mkoffload.c (process): Likewise.
18120 * config/pa/som.h: Likewise.
18121 * config/pdp11/pdp11.c (pdp11_output_ident): Likewise.
18122 * config/riscv/riscv.c (riscv_elf_select_rtx_section): Likewise.
18123 * config/rs6000/rs6000.c (VTABLE_NAME_P): Likewise.
18124 (rs6000_inner_target_options): Likewise.
18125 * config/s390/driver-native.c (s390_host_detect_local_cpu): Likewise.
18126 * config/sparc/driver-sparc.c (host_detect_local_cpu): Likewise.
18127 * config/vax/vax.c (vax_output_int_move): Likewise.
18128 * config/vms/vms-ld.c (startswith): Likewise.
18129 (process_args): Likewise.
18131 * config/vms/vms.c: Likewise.
18133 2021-05-18 Jakub Jelinek <jakub@redhat.com>
18135 PR rtl-optimization/100590
18136 * regcprop.c (copyprop_hardreg_forward_1): Only DCE dead sets if
18137 they are NONJUMP_INSN_P.
18139 2021-05-18 Jakub Jelinek <jakub@redhat.com>
18142 * function.c (push_dummy_function): Set DECL_ARTIFICIAL and
18143 DECL_ASSEMBLER_NAME on the fn_decl.
18145 2021-05-18 Jakub Jelinek <jakub@redhat.com>
18147 PR tree-optimization/94589
18148 * tree-ssa-phiopt.c (spaceship_replacement): Pattern match
18149 phi result used in (res & ~1) == 0 comparison as res >= 0 as
18150 res == 2 would be UB with -ffinite-math-only.
18152 2021-05-18 Martin Liska <mliska@suse.cz>
18154 * Makefile.in: genversion.o should depend on DATESTAMP.
18156 2021-05-18 Claudiu Zissulescu <claziss@synopsys.com>
18158 * config/arc/simdext.md (negv2si2): Remove round bracket.
18160 2021-05-18 Andreas Krebbel <krebbel@linux.ibm.com>
18162 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Define
18163 _Bool as macro expanding to _Bool.
18165 2021-05-18 Andreas Krebbel <krebbel@linux.ibm.com>
18168 * tree.c (build_reference_type_for_mode)
18169 (build_pointer_type_for_mode): Pick pointer mode if MODE argument
18171 (build_reference_type, build_pointer_type): Invoke
18172 build_*_type_for_mode with VOIDmode.
18174 2021-05-17 Andrew MacLeod <amacleod@redhat.com>
18176 PR tree-optimization/100512
18177 * gimple-range-cache.cc (ranger_cache::set_global_range): Mark const
18178 and non-zero pointer ranges as invariant.
18179 * gimple-range.cc (gimple_ranger::range_of_stmt): Remove pointer
18180 processing from here.
18182 2021-05-17 Tom de Vries <tdevries@suse.de>
18185 * config/nvptx/nvptx-protos.h (nvptx_output_atomic_insn): Declare
18186 * config/nvptx/nvptx.c (nvptx_output_barrier)
18187 (nvptx_output_atomic_insn): New function.
18188 (nvptx_print_operand): Add support for 'B'.
18189 * config/nvptx/nvptx.md: Use nvptx_output_atomic_insn for atomic
18192 2021-05-17 Aldy Hernandez <aldyh@redhat.com>
18194 PR tree-optimization/100349
18195 * vr-values.c (bounds_of_var_in_loop): Bail if scev returns
18198 2021-05-17 Tamar Christina <tamar.christina@arm.com>
18200 * config/aarch64/driver-aarch64.c (DEFAULT_ARCH): New.
18201 (host_detect_local_cpu): Use it.
18203 2021-05-17 Martin Liska <mliska@suse.cz>
18205 * doc/invoke.texi: Add 2 missing dots.
18207 2021-05-17 Marius Hillenbrand <mhillen@linux.ibm.com>
18209 PR bootstrap/100552
18210 * configure.ac: Replace pattern substitution with call to sed.
18211 * configure: Regenerate.
18213 2021-05-17 Richard Biener <rguenther@suse.de>
18215 PR middle-end/100582
18216 * tree.c (array_at_struct_end_p): Get to the base of the
18217 reference before looking for the underlying decl.
18219 2021-05-17 Joern Rennecke <joern.rennecke@embecosm.com>
18221 * genoutput.c (validate_insn_alternatives) Make "wrong number of
18222 alternatives" message more specific, and remove assumption on where
18225 2021-05-17 Christophe Lyon <christophe.lyon@linaro.org>
18227 * config/arm/iterators.md (V16): New iterator.
18228 (VH_cvtto): New iterator.
18229 (v_cmp_result): Added V4HF and V8HF support.
18230 * config/arm/vec-common.md (vec_cmp<mode><v_cmp_result>): Use VDQWH.
18231 (vcond<mode><mode>): Likewise.
18232 (vcond_mask_<mode><v_cmp_result>): Likewise.
18233 (vcond<VH_cvtto><mode>): New expander.
18235 2021-05-17 Christophe Lyon <christophe.lyon@linaro.org>
18237 * config/arm/arm-protos.h (arm_expand_vector_compare): Update
18239 * config/arm/arm.c (arm_expand_vector_compare): Add support for
18241 (arm_expand_vcond): Likewise.
18242 * config/arm/iterators.md (supf): Remove VCMPNEQ_S, VCMPEQQ_S,
18243 VCMPEQQ_N_S, VCMPNEQ_N_S.
18244 (VCMPNEQ, VCMPEQQ, VCMPEQQ_N, VCMPNEQ_N): Remove.
18245 * config/arm/mve.md (@mve_vcmp<mve_cmp_op>q_<mode>): Add '@' prefix.
18246 (@mve_vcmp<mve_cmp_op>q_f<mode>): Likewise.
18247 (@mve_vcmp<mve_cmp_op>q_n_f<mode>): Likewise.
18248 (@mve_vpselq_<supf><mode>): Likewise.
18249 (@mve_vpselq_f<mode>"): Likewise.
18250 * config/arm/neon.md (vec_cmp<mode><v_cmp_result): Enable for MVE
18251 and move to vec-common.md.
18252 (vec_cmpu<mode><mode>): Likewise.
18253 (vcond<mode><mode>): Likewise.
18254 (vcond<V_cvtto><mode>): Likewise.
18255 (vcondu<mode><v_cmp_result>): Likewise.
18256 (vcond_mask_<mode><v_cmp_result>): Likewise.
18257 * config/arm/unspecs.md (VCMPNEQ_U, VCMPNEQ_S, VCMPEQQ_S)
18258 (VCMPEQQ_N_S, VCMPNEQ_N_S, VCMPEQQ_U, CMPEQQ_N_U, VCMPNEQ_N_U)
18259 (VCMPGEQ_N_S, VCMPGEQ_S, VCMPGTQ_N_S, VCMPGTQ_S, VCMPLEQ_N_S)
18260 (VCMPLEQ_S, VCMPLTQ_N_S, VCMPLTQ_S, VCMPCSQ_N_U, VCMPCSQ_U)
18261 (VCMPHIQ_N_U, VCMPHIQ_U): Remove.
18262 * config/arm/vec-common.md (vec_cmp<mode><v_cmp_result): Moved
18264 (vec_cmpu<mode><mode>): Likewise.
18265 (vcond<mode><mode>): Likewise.
18266 (vcond<V_cvtto><mode>): Likewise.
18267 (vcondu<mode><v_cmp_result>): Likewise.
18268 (vcond_mask_<mode><v_cmp_result>): Likewise. Added unsafe math
18271 2021-05-17 liuhongt <hongtao.liu@intel.com>
18274 * config/i386/i386.c (ix86_gimple_fold_builtin): Use
18275 gsi_insert_seq_before instead.
18277 2021-05-17 Christophe Lyon <christophe.lyon@linaro.org>
18279 * doc/sourcebuild.texi (arm_qbit_ok): Rename into...
18280 (arm_sat_ok): ...this.
18282 2021-05-17 Martin Liska <mliska@suse.cz>
18284 * lto-wrapper.c (merge_flto_options): Factor out a new function.
18285 (merge_and_complain): Use it.
18286 (run_gcc): Merge also linker command line -flto=foo argument
18289 2021-05-16 Christophe Lyon <christophe.lyon@linaro.org>
18291 * config/arm/arm.h (CPP_SPEC): Remove error message about
18292 -mlittle-endian/-mbig-endian conflict.
18294 2021-05-15 Bill Schmidt <wschmidt@linux.ibm.com>
18296 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
18297 __ROP_PROTECT__ if -mrop-protect is selected.
18299 2021-05-15 Bill Schmidt <wschmidt@linux.ibm.com>
18301 * config/rs6000/rs6000-internal.h (rs6000_stack): Add
18302 rop_hash_save_offset and rop_hash_size.
18303 * config/rs6000/rs6000-logue.c (rs6000_stack_info): Compute
18304 rop_hash_size and rop_hash_save_offset.
18305 (debug_stack_info): Dump rop_hash_save_offset and rop_hash_size.
18306 (rs6000_emit_prologue): Emit hashst[p] in prologue.
18307 (rs6000_emit_epilogue): Emit hashchk[p] in epilogue.
18308 * config/rs6000/rs6000.md (unspec): Add UNSPEC_HASHST and
18310 (hashst): New define_insn.
18311 (hashchk): Likewise.
18313 2021-05-15 Bill Schmidt <wschmidt@linux.ibm.com>
18315 * config/rs6000/rs6000.c (rs6000_option_override_internal):
18316 Disable shrink wrap when inserting ROP-protect instructions.
18317 * config/rs6000/rs6000.opt (mrop-protect): New option.
18318 (mprivileged): Likewise.
18319 * doc/invoke.texi: Document mrop-protect and mprivileged.
18321 2021-05-15 Hans-Peter Nilsson <hp@axis.com>
18323 * reorg.c (fill_slots_from_thread): Reinstate code typoed out in
18326 2021-05-15 Martin Jambor <mjambor@suse.cz>
18329 2021-05-13 Martin Jambor <mjambor@suse.cz>
18331 PR tree-optimization/100453
18332 * tree-sra.c (sra_modify_assign): All const base accesses do not
18333 need refreshing, not just those from decl_pool.
18334 (sra_modify_assign): Do not refresh into a const base decl.
18336 2021-05-15 Jakub Jelinek <jakub@redhat.com>
18338 PR rtl-optimization/100342
18339 * regcprop.c (copy_value): When copying a source reg in a wider
18340 mode than it has recorded for the value, adjust recorded destination
18341 mode too or punt if !REG_CAN_CHANGE_MODE_P.
18343 2021-05-14 Jason Merrill <jason@redhat.com>
18345 * intl.h: Add comments.
18347 2021-05-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18349 * config/aarch64/aarch64-simd.md
18350 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Split into...
18351 (aarch64_sqdmlsl2_lane<mode>_internal): ... This...
18352 (aarch64_sqdmlal2_lane<mode>_internal): ... And this.
18353 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Split into ...
18354 (aarch64_sqdmlsl2_laneq<mode>_internal): ... This...
18355 (aarch64_sqdmlal2_laneq<mode>_internal): ... And this.
18356 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Split into...
18357 (aarch64_sqdmlsl2_n<mode>_internal): ... This...
18358 (aarch64_sqdmlal2_n<mode>_internal): ... And this.
18360 2021-05-14 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
18363 * config/arm/arm_neon.h (vtst_s8): Replace call to vtst builtin with it's
18364 boolean logic equivalent.
18365 (vtst_s16): Likewise.
18366 (vtst_s32): Likewise.
18367 (vtst_u8): Likewise.
18368 (vtst_u16): Likewise.
18369 (vtst_u32): Likewise.
18370 (vtst_p8): Likewise.
18371 (vtst_p16): Likewise.
18372 (vtstq_s8): Likewise.
18373 (vtstq_s16): Likewise.
18374 (vtstq_s32): Likewise.
18375 (vtstq_u8): Likewise.
18376 (vtstq_u16): Likewise.
18377 (vtstq_u32): Likewise.
18378 (vtstq_p8): Likewise.
18379 (vtstq_p16): Likewise.
18380 * config/arm/arm_neon_builtins.def: Remove entry for vtst.
18381 * config/arm/neon.md (neon_vtst<mode>): Remove pattern.
18383 2021-05-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18385 * config/aarch64/aarch64-simd.md (aarch64_sqdmlal2<mode>): Merge into...
18386 (aarch64_sqdml<SBINQOPS:as>l2<mode>): ... This.
18387 (aarch64_sqdmlsl2<mode>): Delete.
18388 (aarch64_sqdmlal2_lane<mode>): Merge this...
18389 (aarch64_sqdmlsl2_lane<mode>): ... And this...
18390 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>): ... Into this.
18391 (aarch64_sqdmlal2_laneq<mode>): Merge this...
18392 (aarch64_sqdmlsl2_laneq<mode>): ... And this...
18393 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>): ... Into this.
18394 (aarch64_sqdmlal2_n<mode>): Merge this...
18395 (aarch64_sqdmlsl2_n<mode>): ... And this...
18396 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>): ... Into this.
18398 2021-05-13 Martin Sebor <msebor@redhat.com>
18400 PR middle-end/100574
18401 * builtins.c (access_ref::get_ref): Improve detection of PHIs with
18402 all null arguments.
18404 2021-05-13 Martin Sebor <msebor@redhat.com>
18406 PR tree-optimization/93100
18407 PR middle-end/98583
18408 * tree-ssa-uninit.c (check_defs): Exclude intrinsic functions that
18409 don't modify referenced objects.
18411 2021-05-13 Martin Jambor <mjambor@suse.cz>
18413 PR tree-optimization/100453
18414 * tree-sra.c (sra_modify_assign): All const base accesses do not
18415 need refreshing, not just those from decl_pool.
18416 (sra_modify_assign): Do not refresh into a const base decl.
18418 2021-05-13 Martin Liska <mliska@suse.cz>
18420 * tree-ssa-dom.c: Remove m_simplifier.
18422 2021-05-13 Richard Earnshaw <rearnsha@arm.com>
18425 * config/arm/arm.c (arm_canonicalize_comparison): Correctly
18426 canonicalize DImode inequality comparisons against the
18427 maximum integral value.
18429 2021-05-13 Jakub Jelinek <jakub@redhat.com>
18431 PR tree-optimization/98856
18432 * config/i386/i386.c (ix86_shift_rotate_cost): Add CODE argument.
18433 Expect V2DI and V4DI arithmetic right shifts to be emulated.
18434 (ix86_rtx_costs, ix86_add_stmt_cost): Adjust ix86_shift_rotate_cost
18436 * config/i386/i386-expand.c (expand_vec_perm_2perm_interleave,
18437 expand_vec_perm_2perm_pblendv): New functions.
18438 (ix86_expand_vec_perm_const_1): Use them.
18439 * config/i386/sse.md (ashr<mode>3<mask_name>): Rename to ...
18440 (<mask_codefor>ashr<mode>3<mask_name>): ... this.
18441 (ashr<mode>3): New define_expand with VI248_AVX512BW iterator.
18442 (ashrv4di3): New define_expand.
18443 (ashrv2di3): Change condition to TARGET_SSE2, handle !TARGET_XOP
18444 and !TARGET_AVX512VL expansion.
18446 2021-05-13 Uroš Bizjak <ubizjak@gmail.com>
18449 * config/i386/i386-expand.c (ix86_expand_sse_movcc): Force mode
18450 sizes < 16 to a register when constructing vpcmov pattern.
18451 * config/i386/mmx.md (*xop_pcmov_<mode>): Use MMXMODE124 mode.
18453 2021-05-13 Martin Liska <mliska@suse.cz>
18455 * gcov-io.c (gcov_write_block): Remove.
18456 (gcov_write_words): Likewise.
18457 (gcov_read_words): Re-implement using gcov_read_bytes.
18458 (gcov_allocate): Remove.
18459 (GCOV_BLOCK_SIZE): Likewise.
18460 (struct gcov_var): Remove most of the fields.
18461 (gcov_position): Implement with ftell.
18462 (gcov_rewrite): Remove setting of start and offset fields.
18463 (from_file): Re-format.
18464 (gcov_open): Remove setbuf call. It should not be needed.
18465 (gcov_close): Remove internal buffer handling.
18466 (gcov_magic): Use __builtin_bswap32.
18467 (gcov_write_counter): Use directly gcov_write_unsigned.
18468 (gcov_write_string): Use direct fwrite and do not round
18470 (gcov_seek): Use directly fseek.
18471 (gcov_write_tag): Use gcov_write_unsigned directly.
18472 (gcov_write_length): Likewise.
18473 (gcov_write_tag_length): Likewise.
18474 (gcov_read_bytes): Use directly fread.
18475 (gcov_read_unsigned): Use gcov_read_words.
18476 (gcov_read_counter): Likewise.
18477 (gcov_read_string): Use gcov_read_bytes.
18478 * gcov-io.h (GCOV_WORD_SIZE): Adjust to reflect
18479 that size is not in bytes, but words (4B).
18480 (GCOV_TAG_FUNCTION_LENGTH): Likewise.
18481 (GCOV_TAG_ARCS_LENGTH): Likewise.
18482 (GCOV_TAG_ARCS_NUM): Likewise.
18483 (GCOV_TAG_COUNTER_LENGTH): Likewise.
18484 (GCOV_TAG_COUNTER_NUM): Likewise.
18485 (GCOV_TAG_SUMMARY_LENGTH): Likewise.
18487 2021-05-13 liuhongt <hongtao.liu@intel.com>
18490 * config/i386/sse.md (ssedoublevecmode): Add attribute for
18491 V64QI/V32HI/V16SI/V4DI.
18492 (ssehalfvecmode): Add attribute for V2DI/V2DF.
18493 (*vec_concatv4si_0): Extend to VI124_128.
18494 (*vec_concat<mode>_0): New pre-reload splitter.
18495 * config/i386/predicates.md (movq_parallel): New predicate.
18497 2021-05-13 Alexandre Oliva <oliva@adacore.com>
18499 * targhooks.c (default_zero_call_used_regs): Retry using
18500 successfully-zeroed registers as sources.
18502 2021-05-12 Tobias Burnus <tobias@codesourcery.com>
18504 * omp-low.c (finish_taskreg_scan): Use the proper detach decl.
18506 2021-05-12 Aldy Hernandez <aldyh@redhat.com>
18509 * gimple-range.cc (range_of_builtin_call): Skip out on
18510 processing __builtin_clz when varying.
18512 2021-05-12 Tom de Vries <tdevries@suse.de>
18515 * config/nvptx/nvptx-opts.h (enum ptx_version): New enum.
18516 * config/nvptx/nvptx.c (nvptx_file_start): Print .version according
18517 to ptx_version_option.
18518 * config/nvptx/nvptx.h (TARGET_PTX_6_3): Define.
18519 * config/nvptx/nvptx.md (define_insn "nvptx_shuffle<mode>")
18520 (define_insn "nvptx_vote_ballot"): Use sync variant for
18522 * config/nvptx/nvptx.opt (ptx_version): Add enum.
18523 (mptx): Add option.
18524 * doc/invoke.texi (Nvidia PTX Options): Add mptx item.
18526 2021-05-12 Richard Biener <rguenther@suse.de>
18528 PR tree-optimization/100566
18529 * tree-ssa-sccvn.c (dominated_by_p_w_unex): Properly handle
18530 allow_back for all edge queries.
18532 2021-05-12 liuhongt <hongtao.liu@intel.com>
18535 * config/i386/sse.md (<sse4_1_avx2>_pblendvb): Add
18536 splitters for pblendvb of NOT mask register.
18538 2021-05-12 Richard Biener <rguenther@suse.de>
18540 PR tree-optimization/100519
18541 * tree-ssa-reassoc.c (can_associate_p): Split into...
18542 (can_associate_op_p): ... this
18543 (can_associate_type_p): ... and this.
18544 (is_reassociable_op): Call can_associate_op_p.
18545 (break_up_subtract_bb): Call the appropriate predicates.
18546 (reassociate_bb): Likewise.
18548 2021-05-12 Martin Liska <mliska@suse.cz>
18550 * lto-wrapper.c (merge_and_complain): Merge -flto=arg options.
18551 (run_gcc): Use -flto argument detection for merged
18554 2021-05-12 Martin Liska <mliska@suse.cz>
18556 * lto-wrapper.c (print_lto_docs_link): New function.
18557 (run_gcc): Print warning about missing job server detection
18558 after we know NR of partitions. Do the same for -flto{,=1}.
18559 * opts.c (get_option_html_page): Support -flto option.
18561 2021-05-12 Martin Liska <mliska@suse.cz>
18563 * lto-wrapper.c (get_options_from_collect_gcc_options): Change
18565 (append_option): Remove.
18566 (find_option): Rework to use the vector type.
18567 (remove_option): Remove.
18568 (merge_and_complain): Use vectors for cl_decoded_option data
18570 (append_compiler_options): Likewise.
18571 (append_diag_options): Likewise.
18572 (append_linker_options): Likewise.
18573 (append_offload_options): Likewise.
18574 (compile_offload_image): Likewise.
18575 (compile_images_for_offload_targets): Likewise.
18576 (find_and_merge_options): Likewise.
18577 (run_gcc): Likewise.
18579 2021-05-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
18582 * dwarf2out.c (dwarf2out_finish): Set
18583 have_multiple_function_sections with multi-range text_section.
18585 2021-05-12 Martin Liska <mliska@suse.cz>
18587 PR bootstrap/100560
18588 * Makefile.in: Remove version.h from linker command line.
18590 2021-05-12 Richard Biener <rguenther@suse.de>
18592 PR middle-end/100547
18593 * rtl.h (rtvec_alloc): Make argument size_t.
18594 * rtl.c (rtvec_alloc): Verify the count is less than INT_MAX.
18596 2021-05-12 Jakub Jelinek <jakub@redhat.com>
18598 PR middle-end/100508
18599 * cfgexpand.c (expand_debug_expr): For DEBUG_EXPR_DECL with vector
18600 type, don't reuse DECL_RTL if it has different mode, instead force
18601 creation of a new DEBUG_EXPR.
18603 2021-05-12 Jakub Jelinek <jakub@redhat.com>
18604 Marc Glisse <marc.glisse@inria.fr>
18606 PR tree-optimization/94589
18607 * match.pd ((X & Y) == X -> (X & ~Y) == 0,
18608 (X | Y) == Y -> (X & ~Y) == 0): New GIMPLE simplifications.
18610 2021-05-12 Uroš Bizjak <ubizjak@gmail.com>
18613 * config/i386/i386-expand.c (ix86_expand_sse_movcc): Handle V2SF mode.
18614 * config/i386/mmx.md (MMXMODE124): New mode iterator.
18616 (mmxintvecmode): New mode attribute.
18617 (mmxintvecmodelower): Ditto.
18618 (*mmx_maskcmpv2sf3_comm): New insn pattern.
18619 (*mmx_maskcmpv2sf3): Ditto.
18620 (vec_cmpv2sfv2si): New expander.
18621 (vcond<V2FI:mode>v2si): Ditto.
18622 (mmx_vlendvps): New insn pattern.
18623 (vcond<MMXMODE124:mode><MMXMODEI:mode>): Also handle V2SFmode.
18624 (vcondu<MMXMODE124:mode><MMXMODEI:mode>): Ditto.
18625 (vcond_mask_<mode><mmxintvecmodelower>): Ditto.
18627 2021-05-11 Martin Sebor <msebor@redhat.com>
18629 PR middle-end/21433
18630 * expr.c (expand_expr_real_1): Replace unreachable code with an assert.
18632 2021-05-11 Richard Biener <rguenther@suse.de>
18634 * gimple-fold.c (gimple_fold_call): Do not call
18635 maybe_fold_reference on call arguments or the static chain.
18636 (fold_stmt_1): Do not call maybe_fold_reference on GIMPLE_ASM
18639 2021-05-11 Martin Liska <mliska@suse.cz>
18641 * builtins.def (DEF_HSAIL_BUILTIN): Remove.
18642 (DEF_HSAIL_ATOMIC_BUILTIN): Likewise.
18643 (DEF_HSAIL_SAT_BUILTIN): Likewise.
18644 (DEF_HSAIL_INTR_BUILTIN): Likewise.
18645 (DEF_HSAIL_CVT_ZEROI_SAT_BUILTIN): Likewise.
18646 * doc/frontends.texi: Remove BRIG.
18647 * doc/install.texi: Likewise.
18648 * doc/invoke.texi: Likewise.
18649 * doc/standards.texi: Likewise.
18650 * brig-builtins.def: Removed.
18651 * brig/ChangeLog: Removed.
18652 * brig/Make-lang.in: Removed.
18653 * brig/brig-builtins.h: Removed.
18654 * brig/brig-c.h: Removed.
18655 * brig/brig-lang.c: Removed.
18656 * brig/brigfrontend/brig-arg-block-handler.cc: Removed.
18657 * brig/brigfrontend/brig-atomic-inst-handler.cc: Removed.
18658 * brig/brigfrontend/brig-basic-inst-handler.cc: Removed.
18659 * brig/brigfrontend/brig-branch-inst-handler.cc: Removed.
18660 * brig/brigfrontend/brig-cmp-inst-handler.cc: Removed.
18661 * brig/brigfrontend/brig-code-entry-handler.cc: Removed.
18662 * brig/brigfrontend/brig-code-entry-handler.h: Removed.
18663 * brig/brigfrontend/brig-comment-handler.cc: Removed.
18664 * brig/brigfrontend/brig-control-handler.cc: Removed.
18665 * brig/brigfrontend/brig-copy-move-inst-handler.cc: Removed.
18666 * brig/brigfrontend/brig-cvt-inst-handler.cc: Removed.
18667 * brig/brigfrontend/brig-fbarrier-handler.cc: Removed.
18668 * brig/brigfrontend/brig-function-handler.cc: Removed.
18669 * brig/brigfrontend/brig-function.cc: Removed.
18670 * brig/brigfrontend/brig-function.h: Removed.
18671 * brig/brigfrontend/brig-inst-mod-handler.cc: Removed.
18672 * brig/brigfrontend/brig-label-handler.cc: Removed.
18673 * brig/brigfrontend/brig-lane-inst-handler.cc: Removed.
18674 * brig/brigfrontend/brig-machine.c: Removed.
18675 * brig/brigfrontend/brig-machine.h: Removed.
18676 * brig/brigfrontend/brig-mem-inst-handler.cc: Removed.
18677 * brig/brigfrontend/brig-module-handler.cc: Removed.
18678 * brig/brigfrontend/brig-queue-inst-handler.cc: Removed.
18679 * brig/brigfrontend/brig-seg-inst-handler.cc: Removed.
18680 * brig/brigfrontend/brig-signal-inst-handler.cc: Removed.
18681 * brig/brigfrontend/brig-to-generic.cc: Removed.
18682 * brig/brigfrontend/brig-to-generic.h: Removed.
18683 * brig/brigfrontend/brig-util.cc: Removed.
18684 * brig/brigfrontend/brig-util.h: Removed.
18685 * brig/brigfrontend/brig-variable-handler.cc: Removed.
18686 * brig/brigfrontend/hsa-brig-format.h: Removed.
18687 * brig/brigfrontend/phsa.h: Removed.
18688 * brig/brigspec.c: Removed.
18689 * brig/config-lang.in: Removed.
18690 * brig/gccbrig.texi: Removed.
18691 * brig/lang-specs.h: Removed.
18692 * brig/lang.opt: Removed.
18694 2021-05-11 Richard Biener <rguenther@suse.de>
18697 * ipa-param-manipulation.c
18698 (ipa_param_body_adjustments::modify_call_stmt): Avoid
18699 altering SSA_NAME_DEF_STMT by adjusting the calls LHS
18700 via gimple_call_lhs_ptr.
18702 2021-05-11 Alex Coplan <alex.coplan@arm.com>
18705 * config/arm/arm.c (cmse_nonsecure_call_inline_register_clear):
18706 Avoid emitting CFA adjusts on the sp if we have the fp.
18708 2021-05-11 Richard Sandiford <richard.sandiford@arm.com>
18710 * config/aarch64/iterators.md (VMUL_CHANGE_NLANES): Delete.
18711 (VMULD): New iterator.
18712 (VCOND): Handle V4HF and V8HF.
18713 (VCONQ): Fix entry for V2SF.
18714 * config/aarch64/aarch64-simd.md (mul_lane<mode>3): Use VMULD
18715 instead of VMUL. Use a 64-bit vector mode for the indexed operand.
18716 (*aarch64_mul3_elt_<vswap_width_name><mode>): Merge with...
18717 (mul_laneq<mode>3): ...this define_insn. Use VMUL instead of VDQSF.
18718 Use a 128-bit vector mode for the indexed operand. Use stype for
18719 the scheduling type.
18721 2021-05-11 Richard Biener <rguenther@suse.de>
18723 * gimple-fold.c (maybe_fold_reference): Only return
18724 is_gimple_min_invariant values.
18726 2021-05-11 Richard Biener <rguenther@suse.de>
18728 PR middle-end/100509
18729 * gimple-fold.c (fold_gimple_assign): Only call
18730 get_symbol_constant_value on register type symbols.
18732 2021-05-11 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
18733 Joe Ramsay <joe.ramsay@arm.com>
18736 * config/arm/arm_mve.h (__arm_vstrwq_scatter_offset): Fix wrong arguments.
18737 (__arm_vcmpneq): Remove duplicate definition.
18738 (__arm_vstrwq_scatter_offset_p): Likewise.
18739 (__arm_vmaxq_x): Likewise.
18740 (__arm_vmlsdavaq): Likewise.
18741 (__arm_vmlsdavaxq): Likewise.
18742 (__arm_vmlsdavq_p): Likewise.
18743 (__arm_vmlsdavxq_p): Likewise.
18744 (__arm_vrmlaldavhaq): Likewise.
18745 (__arm_vstrbq_p): Likewise.
18746 (__arm_vstrbq_scatter_offset): Likewise.
18747 (__arm_vstrbq_scatter_offset_p): Likewise.
18748 (__arm_vstrdq_scatter_offset): Likewise.
18749 (__arm_vstrdq_scatter_offset_p): Likewise.
18750 (__arm_vstrdq_scatter_shifted_offset): Likewise.
18751 (__arm_vstrdq_scatter_shifted_offset_p): Likewise.
18753 2021-05-11 Jakub Jelinek <jakub@redhat.com>
18755 PR middle-end/100471
18756 * omp-low.c (lower_omp_task_reductions): For OMP_TASKLOOP, if data
18757 is 0, bypass the reduction loop including
18758 GOMP_taskgroup_reduction_unregister call.
18760 2021-05-11 Kewen Lin <linkw@linux.ibm.com>
18762 * config/rs6000/rs6000.c (struct rs6000_cost_data): New member
18763 costing_for_scalar.
18764 (rs6000_density_test): Early return if costing_for_scalar is true.
18765 (rs6000_init_cost): Init costing_for_scalar of rs6000_cost_data.
18767 2021-05-11 Kewen Lin <linkw@linux.ibm.com>
18769 * doc/tm.texi: Regenerated.
18770 * target.def (init_cost): Add new parameter costing_for_scalar.
18771 * targhooks.c (default_init_cost): Adjust for new parameter.
18772 * targhooks.h (default_init_cost): Likewise.
18773 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Likewise.
18774 (vect_compute_single_scalar_iteration_cost): Likewise.
18775 (vect_analyze_loop_2): Likewise.
18776 * tree-vect-slp.c (_bb_vec_info::_bb_vec_info): Likewise.
18777 (vect_bb_vectorization_profitable_p): Likewise.
18778 * tree-vectorizer.h (init_cost): Likewise.
18779 * config/aarch64/aarch64.c (aarch64_init_cost): Likewise.
18780 * config/i386/i386.c (ix86_init_cost): Likewise.
18781 * config/rs6000/rs6000.c (rs6000_init_cost): Likewise.
18783 2021-05-11 Kewen Lin <linkw@linux.ibm.com>
18785 * config/rs6000/rs6000.c (rs6000_vect_nonmem): Renamed to
18786 vect_nonmem and moved into...
18787 (struct rs6000_cost_data): ...here.
18788 (rs6000_init_cost): Use vect_nonmem of cost_data instead.
18789 (rs6000_add_stmt_cost): Likewise.
18790 (rs6000_finish_cost): Likewise.
18792 2021-05-10 Eric Botcazou <ebotcazou@adacore.com>
18794 * range-op.cc (get_bool_state): Adjust head comment.
18795 (operator_not_equal::op1_range): Fix comment.
18796 (operator_bitwise_xor::op1_range): Remove call to gcc_unreachable.
18798 2021-05-10 Martin Sebor <msebor@redhat.com>
18800 PR middle-end/100425
18801 PR middle-end/100510
18802 * gimple-ssa-warn-alloca.c (pass_walloca::firast_time_p): Rename...
18803 (pass_walloca::xlimit_certain_p): ...to this.
18804 (pass_walloca::gate): Execute for any kind of handled warning.
18805 (pass_walloca::execute): Avoid issuing "maybe" and "unbounded"
18806 warnings when xlimit_certain_p is set.
18808 2021-05-10 Pat Haugen <pthaugen@linux.ibm.com>
18810 * config/rs6000/rs6000.c (rs6000_ira_change_pseudo_allocno_class):
18811 Return ALTIVEC_REGS if that is best_class.
18812 (rs6000_compute_pressure_classes): Add ALTIVEC_REGS.
18814 2021-05-10 Christophe Lyon <christophe.lyon@linaro.org>
18816 * config/arm/arm.h (CPP_SPEC): Remove error message about
18819 2021-05-10 Martin Jambor <mjambor@suse.cz>
18821 * ipa-prop.h (IPA_NODE_REF): Removed.
18822 (IPA_NODE_REF_GET_CREATE): Likewise.
18823 (IPA_EDGE_REF): Likewise.
18824 (IPA_EDGE_REF_GET_CREATE): Likewise.
18825 (IS_VALID_JUMP_FUNC_INDEX): Likewise.
18826 * ipa-cp.c (print_all_lattices): Replaced IPA_NODE_REF with a direct
18827 use of ipa_node_params_sum.
18828 (ipcp_versionable_function_p): Likewise.
18829 (push_node_to_stack): Likewise.
18830 (pop_node_from_stack): Likewise.
18831 (set_single_call_flag): Replaced two IPA_NODE_REF with one single
18832 direct use of ipa_node_params_sum.
18833 (initialize_node_lattices): Replaced IPA_NODE_REF with a direct use of
18834 ipa_node_params_sum.
18835 (ipa_context_from_jfunc): Replaced IPA_EDGE_REF with a direct use of
18837 (ipcp_verify_propagated_values): Replaced IPA_NODE_REF with a direct
18838 use of ipa_node_params_sum.
18839 (self_recursively_generated_p): Likewise.
18840 (propagate_scalar_across_jump_function): Likewise.
18841 (propagate_context_across_jump_function): Replaced IPA_EDGE_REF with a
18842 direct use of ipa_edge_args_sum, moved the lookup after the early
18843 exit. Replaced IPA_NODE_REF with a direct use of ipa_node_params_sum.
18844 (propagate_bits_across_jump_function): Replaced IPA_NODE_REF with
18845 direct uses of ipa_node_params_sum.
18846 (propagate_vr_across_jump_function): Likewise.
18847 (propagate_aggregate_lattice): Likewise.
18848 (propagate_aggs_across_jump_function): Likewise.
18849 (propagate_constants_across_call): Likewise, also replaced
18850 IPA_EDGE_REF with a direct use of ipa_edge_args_sum.
18851 (good_cloning_opportunity_p): Replaced IPA_NODE_REF with a direct use
18852 of ipa_node_params_sum.
18853 (estimate_local_effects): Likewise.
18854 (add_all_node_vals_to_toposort): Likewise.
18855 (propagate_constants_topo): Likewise.
18856 (ipcp_propagate_stage): Likewise.
18857 (ipcp_discover_new_direct_edges): Likewise.
18858 (calls_same_node_or_its_all_contexts_clone_p): Likewise.
18859 (cgraph_edge_brings_value_p): Likewise (in both overloaded functions).
18860 (get_info_about_necessary_edges): Likewise.
18861 (want_remove_some_param_p): Likewise.
18862 (create_specialized_node): Likewise.
18863 (self_recursive_pass_through_p): Likewise.
18864 (self_recursive_agg_pass_through_p): Likewise.
18865 (find_more_scalar_values_for_callers_subset): Likewise and also
18866 replaced IPA_EDGE_REF with direct uses of ipa_edge_args_sum, in one
18867 case replacing two of those with a single query.
18868 (find_more_contexts_for_caller_subset): Likewise for the
18869 ipa_polymorphic_call_context overload.
18870 (intersect_aggregates_with_edge): Replaced IPA_EDGE_REF with a direct
18871 use of ipa_edge_args_sum. Replaced IPA_NODE_REF with direct uses of
18872 ipa_node_params_sum.
18873 (find_aggregate_values_for_callers_subset): Likewise, also reusing
18874 results of ipa_edge_args_sum->get.
18875 (cgraph_edge_brings_all_scalars_for_node): Replaced IPA_NODE_REF with
18876 direct uses of ipa_node_params_sum, replaced IPA_EDGE_REF with a
18877 direct use of ipa_edge_args_sum.
18878 (cgraph_edge_brings_all_agg_vals_for_node): Likewise, moved node
18879 summary query after the early exit and reused the result later.
18880 (decide_about_value): Replaced IPA_NODE_REF with a direct use of
18881 ipa_node_params_sum.
18882 (decide_whether_version_node): Likewise. Removed re-querying for
18883 summaries after cloning.
18884 (spread_undeadness): Replaced IPA_NODE_REF with a direct use of
18885 ipa_node_params_sum.
18886 (has_undead_caller_from_outside_scc_p): Likewise, reusing results of
18888 (identify_dead_nodes): Likewise.
18889 (ipcp_store_bits_results): Replaced IPA_NODE_REF with direct uses of
18890 ipa_node_params_sum.
18891 (ipcp_store_vr_results): Likewise.
18892 * ipa-fnsummary.c (evaluate_properties_for_edge): Likewise.
18893 (ipa_fn_summary_t::duplicate): Likewise.
18894 (analyze_function_body): Likewise.
18895 (estimate_calls_size_and_time): Likewise.
18896 (ipa_cached_call_context::duplicate_from): Likewise.
18897 (ipa_call_context::equal_to): Likewise.
18898 (remap_edge_params): Likewise.
18899 (ipa_merge_fn_summary_after_inlining): Likewise.
18900 (inline_read_section): Likewise.
18901 * ipa-icf.c (sem_function::param_used_p): Likewise.
18902 * ipa-modref.c (compute_parm_map): Likewise.
18903 (compute_parm_map): Replaced IPA_EDGE_REF with a direct use of
18905 (get_access_for_fnspec): Replaced IPA_NODE_REF with a direct use of
18906 ipa_node_params_sum and replaced IPA_EDGE_REF with a direct use of
18908 * ipa-profile.c (check_argument_count): Likewise.
18909 * ipa-prop.c (ipa_alloc_node_params): Replaced IPA_NODE_REF_GET_CREATE
18910 with a direct use of ipa_node_params_sum.
18911 (ipa_initialize_node_params): Likewise.
18912 (ipa_print_node_jump_functions_for_edge): Replaced IPA_EDGE_REF with a
18913 direct use of ipa_edge_args_sum and reused the query result.
18914 (ipa_compute_jump_functions_for_edge): Replaced IPA_NODE_REF with a
18915 direct use of ipa_node_params_sum and replaced IPA_EDGE_REF with a
18916 direct use of ipa_edge_args_sum.
18917 (ipa_note_param_call): Replaced IPA_NODE_REF with a direct use of
18918 ipa_node_params_sum and reused the result of the query.
18919 (ipa_analyze_node): Likewise.
18920 (ipa_analyze_controlled_uses): Replaced IPA_NODE_REF with a direct use
18921 of ipa_node_params_sum.
18922 (update_jump_functions_after_inlining): Replaced IPA_EDGE_REF with
18923 direct uses of ipa_edge_args_sum.
18924 (update_indirect_edges_after_inlining): Replaced IPA_NODE_REF with
18925 direct uses of ipa_node_params_sum and replaced IPA_EDGE_REF with a
18926 direct use of ipa_edge_args_sum. Removed superficial re-querying the
18928 (propagate_controlled_uses): Replaced IPA_NODE_REF with direct uses of
18929 ipa_node_params_sum and replaced IPA_EDGE_REF with a direct use of
18931 (ipa_propagate_indirect_call_infos): Replaced IPA_EDGE_REF with a
18932 direct use of ipa_edge_args_sum.
18933 (ipa_edge_args_sum_t::duplicate): Replaced IPA_NODE_REF with a direct
18934 use of ipa_node_params_sum.
18935 (ipa_print_node_params): Likewise.
18936 (ipa_write_node_info): Likewise and also replaced IPA_EDGE_REF with
18937 direct uses of ipa_edge_args_sum.
18938 (ipa_read_edge_info): Replaced IPA_EDGE_REF with a direct use of
18940 (ipa_read_node_info): Replaced IPA_NODE_REF with a direct use of
18941 ipa_node_params_sum.
18942 (ipa_prop_write_jump_functions): Likewise. Move variable node to the
18943 scopes where it is used.
18945 2021-05-10 Uroš Bizjak <ubizjak@gmail.com>
18947 * config/i386/i386-expand.c (ix86_expand_sse_movcc)
18948 <case E_V2SImode>: Force op_true to register.
18950 2021-05-10 Christophe Lyon <christophe.lyon@linaro.org>
18952 * config/arm/iterators.md (MVE_FP_COMPARISONS): New.
18953 * config/arm/mve.md (mve_vcmp<mve_cmp_op>q_f<mode>)
18954 (mve_vcmp<mve_cmp_op>q_n_f<mode>): New, merge all vcmp_*f*
18956 (mve_vcmpeqq_f<mode>, mve_vcmpeqq_n_f<mode>, mve_vcmpgeq_f<mode>)
18957 (mve_vcmpgeq_n_f<mode>, mve_vcmpgtq_f<mode>)
18958 (mve_vcmpgtq_n_f<mode>, mve_vcmpleq_f<mode>)
18959 (mve_vcmpleq_n_f<mode>, mve_vcmpltq_f<mode>)
18960 (mve_vcmpltq_n_f<mode>, mve_vcmpneq_f<mode>)
18961 (mve_vcmpneq_n_f<mode>): Remove.
18962 * config/arm/unspecs.md (VCMPEQQ_F, VCMPEQQ_N_F, VCMPGEQ_F)
18963 (VCMPGEQ_N_F, VCMPGTQ_F, VCMPGTQ_N_F, VCMPLEQ_F, VCMPLEQ_N_F)
18964 (VCMPLTQ_F, VCMPLTQ_N_F, VCMPNEQ_F, VCMPNEQ_N_F): Remove.
18966 2021-05-10 Christophe Lyon <christophe.lyon@linaro.org>
18968 * config/arm/iterators.md (MVE_COMPARISONS): New.
18970 (mve_cmp_type): New.
18971 * config/arm/mve.md (mve_vcmp<mve_cmp_op>q_<mode>): New, merge all
18973 (mve_vcmpneq_<mode>, mve_vcmpcsq_n_<mode>, mve_vcmpcsq_<mode>)
18974 (mve_vcmpeqq_n_<mode>, mve_vcmpeqq_<mode>, mve_vcmpgeq_n_<mode>)
18975 (mve_vcmpgeq_<mode>, mve_vcmpgtq_n_<mode>, mve_vcmpgtq_<mode>)
18976 (mve_vcmphiq_n_<mode>, mve_vcmphiq_<mode>, mve_vcmpleq_n_<mode>)
18977 (mve_vcmpleq_<mode>, mve_vcmpltq_n_<mode>, mve_vcmpltq_<mode>)
18978 (mve_vcmpneq_n_<mode>, mve_vcmpltq_n_<mode>, mve_vcmpltq_<mode>)
18979 (mve_vcmpneq_n_<mode>): Remove.
18981 2021-05-10 Christophe Lyon <christophe.lyon@linaro.org>
18983 * config/arm/arm_mve.h (__arm_vcmp*): Remove 's' suffix.
18984 * config/arm/arm_mve_builtins.def (vcmp*): Remove 's' suffix.
18985 * config/arm/mve.md (mve_vcmp*): Remove 's' suffix in pattern
18988 2021-05-10 Christophe Lyon <christophe.lyon@linaro.org>
18990 * config/arm/arm_mve_builtins.def (vcmpneq_u): Remove.
18991 (vcmpneq_n_u): Likewise.
18992 (vcmpeqq_u,): Likewise.
18993 (vcmpeqq_n_u): Likewise.
18994 * config/arm/iterators.md (supf): Remove VCMPNEQ_U, VCMPEQQ_U,
18995 VCMPEQQ_N_U and VCMPNEQ_N_U.
18996 * config/arm/mve.md (mve_vcmpneq): Remove <supf> iteration.
18997 (mve_vcmpeqq_n): Likewise.
18998 (mve_vcmpeqq): Likewise.
18999 (mve_vcmpneq_n): Likewise.
19001 2021-05-10 Christophe Lyon <christophe.lyon@linaro.org>
19003 * config/arm/arm_mve.h (__arm_vcmpeq*u*, __arm_vcmpne*u*): Call
19004 the 's' version of the builtin.
19006 2021-05-10 Richard Biener <rguenther@suse.de>
19008 PR tree-optimization/100492
19009 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
19010 Find nothing when the loop contains an irreducible region.
19012 2021-05-10 Richard Biener <rguenther@suse.de>
19014 PR middle-end/100464
19016 * gimple-fold.c (canonicalize_constructor_val): Do not set
19019 2021-05-10 Richard Biener <rguenther@suse.de>
19021 PR tree-optimization/100434
19022 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
19024 (dse_optimize_stmt): Handle call LHS by dropping the
19025 LHS or the whole call if it doesn't have other
19027 (pass_dse::execute): Adjust.
19029 2021-05-10 Martin Liska <mliska@suse.cz>
19031 * Makefile.in: Add missing genversion rule.
19033 2021-05-10 Alex Coplan <alex.coplan@arm.com>
19036 * config/arm/mve.md (*mve_mov<mode>): Simplify output code. Use
19037 vldrw.u32 and vstrw.32 for V2D[IF]mode loads and stores.
19039 2021-05-10 Martin Liska <mliska@suse.cz>
19041 * builtins.c (is_builtin_name): Use startswith
19042 function instead of strncmp.
19043 * collect2.c (main): Likewise.
19044 (has_lto_section): Likewise.
19045 (scan_libraries): Likewise.
19046 * coverage.c (coverage_checksum_string): Likewise.
19047 (coverage_init): Likewise.
19048 * dwarf2out.c (is_cxx): Likewise.
19049 (gen_compile_unit_die): Likewise.
19050 * gcc-ar.c (main): Likewise.
19051 * gcc.c (init_spec): Likewise.
19052 (read_specs): Likewise.
19053 (execute): Likewise.
19054 (check_live_switch): Likewise.
19055 * genattrtab.c (write_attr_case): Likewise.
19056 (IS_ATTR_GROUP): Likewise.
19057 * gencfn-macros.c (main): Likewise.
19058 * gengtype.c (type_for_name): Likewise.
19059 (gen_rtx_next): Likewise.
19060 (get_file_langdir): Likewise.
19061 (write_local): Likewise.
19062 * genmatch.c (get_operator): Likewise.
19063 (get_operand_type): Likewise.
19064 (expr::gen_transform): Likewise.
19065 * genoutput.c (validate_optab_operands): Likewise.
19066 * incpath.c (add_sysroot_to_chain): Likewise.
19067 * langhooks.c (lang_GNU_C): Likewise.
19068 (lang_GNU_CXX): Likewise.
19069 (lang_GNU_Fortran): Likewise.
19070 (lang_GNU_OBJC): Likewise.
19071 * lto-wrapper.c (run_gcc): Likewise.
19072 * omp-general.c (omp_max_simt_vf): Likewise.
19073 * omp-low.c (omp_runtime_api_call): Likewise.
19074 * opts-common.c (parse_options_from_collect_gcc_options): Likewise.
19075 * read-rtl-function.c (function_reader::read_rtx_operand_r): Likewise.
19076 * real.c (real_from_string): Likewise.
19077 * selftest.c (assert_str_startswith): Likewise.
19078 * timevar.c (timer::validate_phases): Likewise.
19079 * tree.c (get_file_function_name): Likewise.
19080 * ubsan.c (ubsan_use_new_style_p): Likewise.
19081 * varasm.c (default_function_rodata_section): Likewise.
19082 (incorporeal_function_p): Likewise.
19083 (default_section_type_flags): Likewise.
19084 * system.h (startswith): Define startswith.
19086 2021-05-10 Martin Liska <mliska@suse.cz>
19088 * bitmap.h (class auto_bitmap): Remove
19089 __cplusplus >= 201103.
19090 * config/aarch64/aarch64.c: Likewise.
19091 * gimple-ssa-store-merging.c (store_immediate_info::store_immediate_info):
19093 * sbitmap.h: Likewise.
19095 2021-05-10 Martin Liska <mliska@suse.cz>
19097 * Makefile.in: Rename gcov-iov to genversion and depend
19098 on version.h (instead of gcov-iov.h).
19099 * gcov-io.h: Include version.h instread of gcov-iov.h.
19100 * gengtype-state.c (read_state_version): Likewise.
19101 * gcov-iov.c: Moved to...
19102 * genversion.c: ...here.
19103 * lto-streamer.h (LTO_major_version): Define it with
19105 * version.c: Removed.
19106 * version.h: Removed.
19108 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
19110 * config/arc/arc.md (UNSPEC_ARC_DMPYWH): Define.
19111 * config/arc/simdext.md (VCT): Add predicates for iterator
19114 (voptab): Likewise.
19115 (vec_widen_<V_US>mult_hi_v4hi): Change pattern predicate.
19116 (<voptab>v2si3): New patterns.
19118 (reduc_plus_scal_v4hi): Likewise.
19119 (reduc_plus_scal_v2si): Likewise.
19120 (vec_duplicatev2si): Likewise.
19121 (vec_duplicatev4hi): Likewise.
19123 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
19125 * config/arc/simdext.md: Format and cleanup file.
19127 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
19129 * config/arc/simdext.md (movmisalignv2hi): Allow misaligned access
19130 only when munaligned-access option is on.
19131 (movmisalign<mode>): Likewise.
19133 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
19135 * common/config/arc/arc-common.c (arc_handle_option): Remove dot
19137 * config/arc/arc.c (arc_reorg): Remove underscore from string.
19139 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
19141 * config/arc/arc.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
19142 (CTZ_DEFINED_VALUE_AT_ZERO): Likewise.
19143 * config/arc/arc.md (clrsbsi2): Cleanup pattern.
19144 (norm_f): Likewise.
19147 (clzsi2): Use fls instruction when available.
19148 (arc_clzsi2): Likewise.
19150 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
19152 * config/arc/arc.h (ADDITIONAL_REGISTER_NAMES): Add r26 and r27.
19154 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
19156 * doc/extend.texi (__builtin_arc_sr): Swap arguments.
19158 2021-05-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
19160 PR middle-end/100467
19161 * toplev.c (compile_file): Call insn_locations_init before
19162 targetm.asm_out.code_end.
19164 2021-05-07 Andrew Stubbs <ams@codesourcery.com>
19167 2021-05-07 Andrew Stubbs <ams@codesourcery.com>
19169 * config/gcn/gcn.c (gcn_scalar_mode_supported_p): Disable TImode.
19171 2021-05-07 Jakub Jelinek <jakub@redhat.com>
19172 Andrew Stubbs <amd@codesourcery.com>
19175 * builtins.c (try_store_by_multiple_pieces): Use force_operand for
19176 emit_move_insn operands.
19178 2021-05-07 Eric Botcazou <ebotcazou@adacore.com>
19180 * cfgexpand.c (expand_gimple_basic_block): Do not inherit a current
19181 location for the outgoing edges of an empty block.
19182 * dwarf2out.c (add_subscript_info): Retrieve the bounds and index
19183 type by means of the get_array_descr_info langhook, if it is set and
19184 returns true. Remove obsolete code dealing with unnamed subtypes.
19186 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
19188 * gimple-range-cache.cc (ssa_block_ranges): Virtualize.
19189 (sbr_vector): Renamed from ssa_block_cache.
19190 (sbr_vector::sbr_vector): Allocate from obstack abd initialize.
19191 (ssa_block_ranges::~ssa_block_ranges): Remove.
19192 (sbr_vector::set_bb_range): Use varying and undefined cached values.
19193 (ssa_block_ranges::set_bb_varying): Remove.
19194 (sbr_vector::get_bb_range): Adjust assert.
19195 (sbr_vector::bb_range_p): Adjust assert.
19196 (~block_range_cache): No freeing loop required.
19197 (block_range_cache::get_block_ranges): Remove.
19198 (block_range_cache::set_bb_range): Inline get_block_ranges.
19199 (block_range_cache::set_bb_varying): Remove.
19200 * gimple-range-cache.h (set_bb_varying): Remove prototype.
19201 * value-range.h (irange_allocator::get_memory): New.
19203 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
19205 * gimple-range-cache.cc (non_null_ref::non_null_deref_p): Search
19206 dominator tree is available and requested.
19207 (ranger_cache::ssa_range_in_bb): Don't search dom tree here.
19208 (ranger_cache::fill_block_cache): Don't search dom tree here either.
19209 * gimple-range-cache.h (non_null_deref_p): Add dom_search param.
19211 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
19213 * gimple-range.cc (gimple_ranger::range_on_exit): Handle block with
19214 only PHI nodes better.
19216 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
19218 * gimple-range-edge.h (gimple_outgoing_range): Rename from
19220 (gcond_edge_range): Export prototype.
19221 * gimple-range-edge.cc (gcond_edge_range): New.
19222 (gimple_outgoing_range::edge_range_p): Use gcond_edge_range.
19223 * gimple-range-gori.h (gori_compute): Use gimple_outgoing_range.
19225 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
19227 * gimple-range-edge.cc (outgoing_range::calc_switch_ranges): Compute
19228 default range into a temp and allocate only what is needed.
19230 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
19232 * range-op.cc (operator_trunc_mod::wi_fold): x % 0 is UNDEFINED.
19234 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
19236 * gimple-range.h (gimple_range_global): Pick up parameter initial
19237 values, and use-before defined locals are UNDEFINED.
19239 2021-05-07 Eric Botcazou <ebotcazou@adacore.com>
19241 * doc/extend.texi (scalar_storage_order): Mention effect on pointer
19243 * tree.h (reverse_storage_order_for_component_p): Return false if
19244 the type is a pointer.
19246 2021-05-07 Andrew Stubbs <ams@codesourcery.com>
19248 * config/gcn/gcn.c (gcn_scalar_mode_supported_p): Disable TImode.
19250 2021-05-07 Uroš Bizjak <ubizjak@gmail.com>
19253 * config/i386/i386-expand.c (ix86_expand_sse_movcc):
19254 Handle V8QI, V4HI and V2SI modes.
19255 * config/i386/mmx.md (mmx_pblendvb): New insn pattern.
19256 * config/i386/sse.md (unspec): Move UNSPEC_BLENDV ...
19257 * config/i386/i386.md (unspec): ... here.
19259 2021-05-07 Tobias Burnus <tobias@codesourcery.com>
19260 Tom de Vries <tdevries@suse.de>
19262 * omp-low.c (lower_rec_simd_input_clauses): Set max_vf = 1 if
19263 a truth_value_p reduction variable is nonintegral.
19265 2021-05-07 Uroš Bizjak <ubizjak@gmail.com>
19268 * config/i386/i386-expand.c (ix86_use_mask_cmp_p):
19269 Return false for mode sizes < 16.
19271 2021-05-07 Jakub Jelinek <jakub@redhat.com>
19274 * config/i386/mmx.md (*xop_pcmov_<mode>): New define_insn.
19276 2021-05-06 Martin Jambor <mjambor@suse.cz>
19278 * ipa-sra.c (ipa_sra_dump_all_summaries): Dump edge summaries even
19279 when there is no function summary.
19280 (ipa_sra_summarize_function): produce edge summaries even when
19283 2021-05-06 Tom Tromey <tom@tromey.com>
19285 * godump.c (string_hash_eq): Remove.
19286 (go_finish): Use htab_eq_string.
19288 2021-05-06 Tom Tromey <tom@tromey.com>
19290 * gengtype-state.c (read_state): Use htab_eq_string.
19291 (string_eq): Remove.
19293 2021-05-06 Tom Tromey <tom@tromey.com>
19295 * gensupport.c (htab_eq_string): Remove.
19297 2021-05-06 Bernd Edlinger <bernd.edlinger@hotmail.de>
19300 * debug.h (gcc_debug_hooks): Add set_ignored_loc function pointer.
19301 * dwarf2out.h (dw_fde_node::ignored_debug): New data item.
19302 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Add dummy
19303 set_ignored_loc callbacks.
19304 * debug.c (do_nothing_debug_hooks): Likewise.
19305 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
19306 * dwarf2out.c (text_section_used, cold_text_section_used): Remove.
19307 (in_text_section_p, last_text_label, last_cold_label,
19308 switch_text_ranges, switch_cold_ranges): New data items.
19309 (dwarf2out_note_section_used): Remove.
19310 (dwarf2out_begin_prologue): Set fde->ignored_debug and
19312 (mark_ignored_debug_section): New helper function.
19313 (dwarf2out_end_epilogue, dwarf2out_switch_text_section): Call
19314 mark_ignored_debug_section.
19315 (dwarf2_debug_hooks): Use dwarf2out_set_ignored_loc.
19316 (dwarf2_lineno_debug_hooks): Use dummy for set_ignored_loc.
19317 (size_of_aranges): Adjust formula for multi-part text ranges size.
19318 (output_aranges): Output multi-part text ranges.
19319 (dwarf2out_set_ignored_loc): New callback function.
19320 (dwarf2out_finish): Output multi-part text ranges.
19321 (dwarf2out_c_finalize): Clear new data items.
19322 * final.c (final_start_function_1): Call set_ignored_loc callback.
19323 (final_scan_insn_1): Likewise.
19324 * ggc-page.c (gt_ggc_mx): New helper function.
19325 * stringpool.c (gt_pch_nx): Likewise.
19327 2021-05-06 Richard Biener <rguenther@suse.de>
19329 * timevar.def (TV_TREE_INSERT_PHI_NODES): Remove.
19330 (TV_TREE_SSA_REWRITE_BLOCKS): Likewise.
19331 (TV_TREE_INTO_SSA): New.
19332 * tree-into-ssa.c (insert_phi_nodes): Do not account separately.
19333 (rewrite_blocks): Likewise.
19334 (pass_data_build_ssa): Account to TV_TREE_INTO_SSA.
19336 2021-05-06 Jakub Jelinek <jakub@redhat.com>
19338 * tree-ssa-phiopt.c (value_replacement, minmax_replacement,
19339 abs_replacement, xor_replacement,
19340 cond_removal_in_popcount_clz_ctz_pattern,
19341 replace_phi_edge_with_variable): Change type of phi argument from
19342 gimple * to gphi *.
19344 2021-05-06 Richard Biener <rguenther@suse.de>
19346 * tree-ssa-loop-split.c (split_loop): Delay updating SSA form.
19347 Output an opt-info message.
19348 (do_split_loop_on_cond): Likewise.
19349 (tree_ssa_split_loops): Update SSA form here.
19351 2021-05-06 Richard Biener <rguenther@suse.de>
19353 * tree-inline.c (tree_function_versioning): Fix DECL_BY_REFERENCE
19354 return variable removal.
19356 2021-05-06 Marius Hillenbrand <mhillen@linux.ibm.com>
19358 * config/s390/s390-builtins.def (O_M5, O1_M5, ...): Remove unused macros.
19359 (s390_vec_permi_s64, s390_vec_permi_b64, s390_vec_permi_u64)
19360 (s390_vec_permi_dbl, s390_vpdi): Use the O3_U2 type for the immediate
19362 * config/s390/s390.c (s390_const_operand_ok): Remove unused
19365 2021-05-06 Jakub Jelinek <jakub@redhat.com>
19367 PR tree-optimization/94589
19368 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Call
19369 spaceship_replacement.
19370 (cond_only_block_p, spaceship_replacement): New functions.
19372 2021-05-06 Richard Biener <rguenther@suse.de>
19375 * tree-emutls.c (gen_emutls_addr): Pass in whether we're
19376 dealing with a debug use and only query existing addresses
19378 (lower_emutls_1): Avoid splitting out addresses for debug
19379 stmts, reset the debug stmt when we fail to find existing
19381 (lower_emutls_phi_arg): Set wi.stmt.
19383 2021-05-06 Christoph Muellner <cmuellner@gcc.gnu.org>
19386 * config/riscv/riscv.c (riscv_block_move_loop): Use cbranch helper.
19387 * config/riscv/riscv.md (cbranch<mode>4): Generate helpers.
19388 (stack_protect_test): Use cbranch helper.
19390 2021-05-05 Eric Botcazou <ebotcazou@adacore.com>
19393 * config/i386/i386.c (ix86_compute_frame_layout): For a SEH target,
19394 always return the establisher frame for __builtin_frame_address (0).
19396 2021-05-05 Ivan Sorokin <vanyacpp@gmail.com>
19399 * config/i386/i386-builtins.c (ix86_cpu_model_type_node): New.
19400 (ix86_cpu_model_var): Likewise.
19401 (ix86_cpu_features2_type_node): Likewise.
19402 (ix86_cpu_features2_var): Likewise.
19403 (fold_builtin_cpu): Cache __cpu_model and __cpu_features2 with
19406 2021-05-05 Martin Sebor <msebor@redhat.com>
19408 * passes.def (pass_warn_printf): Run after SSA.
19410 2021-05-05 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
19412 * config/arm/neon.md (neon_vtst_combine<mode>): New pattern.
19413 * config/arm/predicates.md (minus_one_operand): New predicate.
19415 2021-05-05 Jeff Law <jlaw@tachyum.com>
19417 * config/avr/avr.md: Remove references to CC_STATUS_INIT.
19419 2021-05-05 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
19421 PR rtl-optimization/100263
19422 * postreload.c (move2add_valid_value_p): Ensure register can
19425 2021-05-05 Eric Botcazou <ebotcazou@adacore.com>
19427 PR rtl-optimization/100411
19428 * cfgcleanup.c (try_crossjump_to_edge): Also skip end of prologue
19429 and beginning of function markers.
19431 2021-05-05 Jeff Law <jlaw@tachyum.com>
19433 * config/cr16/cr16.h (NOTICE_UPDATE_CC): Remove.
19434 * config/cr16/cr16.c (notice_update_cc): Remove.
19435 * config/cr16/cr16-protos.h (notice_update_cc): Remove.
19437 2021-05-05 Uroš Bizjak <ubizjak@gmail.com>
19440 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
19441 Handle V8QI, V4HI and V2SI modes.
19442 * config/i386/i386.c (ix86_build_const_vector): Handle V2SImode.
19443 (ix86_build_signbit_mask): Ditto.
19444 * config/i386/mmx.md (MMXMODE14): New mode iterator.
19445 (<smaxmin:code><MMXMODE14:mode>3): New expander.
19446 (*mmx_<smaxmin:code><MMXMODE14:mode>3): New insn pattern.
19447 (<umaxmin:code><MMXMODE24:mode>3): New expander.
19448 (*mmx_<umaxmin:code><MMXMODE24:mode>3): New insn pattern.
19449 (vec_cmp<MMXMODEI:mode><MMXMODEI:mode>): New expander.
19450 (vec_cmpu<MMXMODEI:mode><MMXMODEI:mode>): Ditto.
19451 (vcond<MMXMODEI:mode><MMXMODEI:mode>): Ditto.
19452 (vcondu<MMXMODEI:mode><MMXMODEI:mode>): Ditto.
19453 (vcond_mask_<MMXMODEI:mode><MMXMODEI:mode>): Ditto.
19455 2021-05-05 Eric Botcazou <ebotcazou@adacore.com>
19457 * dwarf2out.c (loc_list_from_tree_1) <DECL>: During early DWARF, do
19458 not expand the VALUE_EXPR of variables put in the non-local frame.
19459 * gimplify.c (gimplify_type_sizes) <RECORD_TYPE>: If the type is not
19460 to be ignored for debug info, ensure its variable offsets are not.
19462 2021-05-05 Richard Biener <rguenther@suse.de>
19464 PR tree-optimization/79333
19465 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt):
19466 Fold stmt following SSA edges.
19468 2021-05-05 Richard Biener <rguenther@suse.de>
19470 PR middle-end/100394
19471 * calls.c (expand_call): Preserve possibly throwing calls.
19472 * cfgexpand.c (expand_call_stmt): When a call can throw signal
19473 RTL expansion there are side-effects.
19474 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Simplify,
19475 mark all possibly throwing stmts necessary unless we can elide
19477 * tree-ssa-dse.c (pass_dse::execute): Preserve exceptions unless
19478 -fdelete-dead-exceptions.
19479 * tree.h (DECL_PURE_P): Add note about exceptions.
19481 2021-05-05 Alexandre Oliva <oliva@adacore.com>
19483 * config/i386/vxworks.h (DBX_REGISTER_NUMBER): Make it
19486 2021-05-04 David Edelsohn <dje.gcc@gmail.com>
19488 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
19489 get_fnname_from_decl for name of thunk.
19490 * config/rs6000/rs6000.c (rs6000_declare_alias): Use assemble_name
19491 and ASM_OUTPUT_LABEL.
19492 (rs6000_xcoff_declare_function_name): Use assemble_name and
19494 (rs6000_xcoff_declare_object_name): Use ASM_OUTPUT_LABEL.
19495 (rs6000_xcoff_encode_section_info): Don't add mapping class
19496 for aliases. Always add [DS] mapping class to primary
19498 (rs6000_asm_weaken_decl): Don't explicitly add [DS].
19500 2021-05-04 Martin Sebor <msebor@redhat.com>
19502 PR middle-end/100307
19503 * builtins.c (compute_objsize_r): Clear base0 for pointers.
19505 2021-05-04 Jeff Law <jlaw@tachyum.com>
19507 * config/bfin/bfin.h (NOTICE_UPDATE_CC): Remove.
19509 2021-05-04 Segher Boessenkool <segher@kernel.crashing.org>
19511 * caller-save.c: Remove CC0.
19512 * cfgcleanup.c: Remove CC0.
19513 * cfgrtl.c: Remove CC0.
19514 * combine.c: Remove CC0.
19515 * compare-elim.c: Remove CC0.
19516 * conditions.h: Remove CC0.
19517 * config/h8300/h8300.h: Remove CC0.
19518 * config/h8300/h8300-protos.h: Remove CC0.
19519 * config/h8300/peepholes.md: Remove CC0.
19520 * config/i386/x86-tune-sched.c: Remove CC0.
19521 * config/m68k/m68k.c: Remove CC0.
19522 * config/rl78/rl78.c: Remove CC0.
19523 * config/sparc/sparc.c: Remove CC0.
19524 * config/xtensa/xtensa.c: Remove CC0.
19525 (gen_conditional_move): Use pc_rtx instead of cc0_rtx in a piece of
19526 RTL where that is used as a placeholder only.
19527 * cprop.c: Remove CC0.
19528 * cse.c: Remove CC0.
19529 * cselib.c: Remove CC0.
19530 * df-problems.c: Remove CC0.
19531 * df-scan.c: Remove CC0.
19532 * doc/md.texi: Remove CC0. Adjust an example.
19533 * doc/rtl.texi: Remove CC0. Adjust an example.
19534 * doc/tm.texi: Regenerate.
19535 * doc/tm.texi.in: Remove CC0.
19536 * emit-rtl.c: Remove CC0.
19537 * final.c: Remove CC0.
19538 * fwprop.c: Remove CC0.
19539 * gcse-common.c: Remove CC0.
19540 * gcse.c: Remove CC0.
19541 * genattrtab.c: Remove CC0.
19542 * genconfig.c: Remove CC0.
19543 * genemit.c: Remove CC0.
19544 * genextract.c: Remove CC0.
19545 * gengenrtl.c: Remove CC0.
19546 * genrecog.c: Remove CC0.
19547 * haifa-sched.c: Remove CC0.
19548 * ifcvt.c: Remove CC0.
19549 * ira-costs.c: Remove CC0.
19550 * ira.c: Remove CC0.
19551 * jump.c: Remove CC0.
19552 * loop-invariant.c: Remove CC0.
19553 * lra-constraints.c: Remove CC0.
19554 * lra-eliminations.c: Remove CC0.
19555 * optabs.c: Remove CC0.
19556 * postreload-gcse.c: Remove CC0.
19557 * postreload.c: Remove CC0.
19558 * print-rtl.c: Remove CC0.
19559 * read-rtl-function.c: Remove CC0.
19560 * reg-notes.def: Remove CC0.
19561 * reg-stack.c: Remove CC0.
19562 * reginfo.c: Remove CC0.
19563 * regrename.c: Remove CC0.
19564 * reload.c: Remove CC0.
19565 * reload1.c: Remove CC0.
19566 * reorg.c: Remove CC0.
19567 * resource.c: Remove CC0.
19568 * rtl.c: Remove CC0.
19569 * rtl.def: Remove CC0.
19570 * rtl.h: Remove CC0.
19571 * rtlanal.c: Remove CC0.
19572 * sched-deps.c: Remove CC0.
19573 * sched-rgn.c: Remove CC0.
19574 * shrink-wrap.c: Remove CC0.
19575 * simplify-rtx.c: Remove CC0.
19576 * system.h: Remove CC0. Poison NOTICE_UPDATE_CC, CC_STATUS_MDEP_INIT,
19577 CC_STATUS_MDEP, and CC_STATUS.
19578 * target.def: Remove CC0.
19579 * valtrack.c: Remove CC0.
19580 * var-tracking.c: Remove CC0.
19582 2021-05-04 Richard Biener <rguenther@suse.de>
19584 PR tree-optimization/100414
19585 * tree-ssa-phiopt.c (get_non_trapping): Do not compute dominance
19587 (tree_ssa_phiopt_worker): But unconditionally here.
19589 2021-05-04 Tobias Burnus <tobias@codesourcery.com>
19591 * omp-low.c (lower_rec_input_clauses, lower_reduction_clauses): Handle
19592 && and || with floating-point and complex arguments.
19594 2021-05-04 Eric Botcazou <ebotcazou@adacore.com>
19596 * tree-inline.c (insert_debug_decl_map): Delete.
19597 (copy_debug_stmt): Minor tweak.
19598 (setup_one_parameter): Do not use a variable if the value is either
19599 a read-only DECL or a non-addressable local variable in the caller.
19600 In this case, insert the debug-only variable in the map manually.
19601 (expand_call_inline): Do not generate a CLOBBER for these values.
19602 * tree-inline.h (debug_map): Minor tweak.
19604 2021-05-04 Eric Botcazou <ebotcazou@adacore.com>
19606 * builtins.c (builtin_with_linkage_p): Return true for stp[n]cpy.
19607 * symtab.c (symtab_node::output_to_lto_symbol_table_p): Tidy up.
19609 2021-05-04 Richard Biener <rguenther@suse.de>
19611 PR tree-optimization/100329
19612 * tree-ssa-reassoc.c (can_reassociate_p): Do not reassociate
19614 (insert_stmt_after): Assert we're not running into asm goto.
19616 2021-05-04 Richard Biener <rguenther@suse.de>
19618 PR tree-optimization/100398
19619 * tree-ssa-dse.c (pass_dse::execute): Preserve control
19622 2021-05-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
19624 * builtins.c (try_store_by_multiple_pieces): Fix constfun's prototype.
19626 2021-05-04 Alexandre Oliva <oliva@adacore.com>
19628 * builtins.c (try_store_by_multiple_pieces): New.
19629 (expand_builtin_memset_args): Use it. If target_char_cast
19630 fails, proceed as for non-constant val. Pass len's ctz to...
19631 * expr.c (clear_storage_hints): ... this. Try store by
19632 multiple pieces after setmem.
19633 (clear_storage): Adjust.
19634 * expr.h (clear_storage_hints): Likewise.
19635 (try_store_by_multiple_pieces): Declare.
19636 * passes.def: Replace the last copy_prop with ccp.
19638 2021-05-03 Tom de Vries <tdevries@suse.de>
19641 * omp-low.c (lower_rec_input_clauses): Disable SIMT for user-defined
19644 2021-05-03 Richard Biener <rguenther@suse.de>
19646 * tree-ssa-dse.c (dse_classify_store): Track two PHI defs.
19648 2021-05-03 Richard Biener <rguenther@suse.de>
19650 * tree-ssa-dse.c: Do not include domwalk.h but cfganal.h.
19651 (dse_dom_walker): Remove.
19652 (dse_dom_walker::dse_optimize_stmt): Rename...
19653 (dse_optimize_stmt): ... to this, pass in live_bytes sbitmap.
19654 (dse_dom_walker::before_dom_children): Inline ...
19655 (pass_dse::execute): ... here. Perform a reverse program
19658 2021-05-03 H.J. Lu <hjl.tools@gmail.com>
19661 * configure: Regenerated.
19663 2021-05-03 Ilya Leoshkevich <iii@linux.ibm.com>
19666 * config/s390/s390.c (s390_hard_fp_reg_p): New function.
19667 (s390_md_asm_adjust): Handle hard registers.
19669 2021-05-03 Jakub Jelinek <jakub@redhat.com>
19671 PR tree-optimization/100382
19672 * tree-ssa-dse.c: Include tree-eh.h.
19673 (dse_dom_walker::before_dom_children): Don't remove stmts if
19674 stmt_unremovable_because_of_non_call_eh_p is true.
19676 2021-05-02 David Edelsohn <dje.gcc@gmail.com>
19678 * varasm.c (compute_reloc_for_var): Split out from...
19679 (get_variable_section): Use it.
19680 * output.h (compute_reloc_for_var): Declare.
19681 * config/rs6000/rs6000-protos.h
19682 (rs6000_xcoff_asm_output_aligned_decl_common): Change alignment to
19684 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address_aix):
19685 Don't append storage mapping class to symbol.
19686 (rs6000_xcoff_asm_named_section): Add BS and UL mapping classes.
19687 Don't convert TLS BSS to common.
19688 (rs6000_xcoff_unique_section): Don't fall back to select_secton.
19689 (rs6000_xcoff_section_type_flags): Add SECTION_BSS if DECL is
19691 (rs6000_xcoff_asm_globalize_decl_name): Don't strip storage
19693 (rs6000_xcoff_asm_output_aligned_decl_common): Align is unsigned int.
19694 If align is 0 from TLS class, use the same rules as varasm.c
19695 If not common, switch to BSS section manually.
19696 If common, emit appropriate comm or lcomm directive.
19697 (rs6000_xcoff_encode_section_info): Add logic to append all
19698 storage mapping classes.
19699 (rs6000_asm_weaken_decl): Adjust for qualname symbols.
19700 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
19701 rs6000_xcoff_asm_output_aligned_decl_common.
19702 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
19703 rs6000_xcoff_asm_output_aligned_decl_common.
19704 (ASM_OUTPUT_TLS_COMMON): Use
19705 rs6000_xcoff_asm_output_aligned_decl_common.
19707 2021-05-02 Jakub Jelinek <jakub@redhat.com>
19710 * config/nvptx/nvptx.c (nvptx_sese_pseudo): Use nullptr instead of 0
19711 as first argument of pseudo_node_t constructors.
19713 2021-05-02 Jakub Jelinek <jakub@redhat.com>
19716 * config/i386/t-i386 (TM_H): Add $(srcdir)/config/i386/i386-isa.def.
19718 2021-05-01 Aldy Hernandez <aldyh@redhat.com>
19720 * value-range.cc (DEFINE_INT_RANGE_GC_STUBS): Remove.
19721 (gt_pch_nx (int_range<1> *&)): New.
19722 (gt_ggc_mx (int_range<1> *&)): New.
19723 * value-range.h (class irange): Add GTY support for
19726 2021-05-01 Geng Qi <gengqi@linux.alibaba.com>
19728 * doc/options.texi (Negative): Change either or to both and.
19730 2021-04-30 Jonathan Wright <jonathan.wright@arm.com>
19732 * config/aarch64/aarch64-simd-builtins.def: Add
19733 float_ml[as][q]_laneq builtin generator macros.
19734 * config/aarch64/aarch64-simd.md (mul_laneq<mode>3): Define.
19735 (aarch64_float_mla_laneq<mode>): Define.
19736 (aarch64_float_mls_laneq<mode>): Define.
19737 * config/aarch64/arm_neon.h (vmla_laneq_f32): Use RTL builtin
19738 instead of GCC vector extensions.
19739 (vmlaq_laneq_f32): Likewise.
19740 (vmls_laneq_f32): Likewise.
19741 (vmlsq_laneq_f32): Likewise.
19743 2021-04-30 Jonathan Wright <jonathan.wright@arm.com>
19745 * config/aarch64/aarch64-simd-builtins.def: Add
19746 float_ml[as]_lane builtin generator macros.
19747 * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt<mode>):
19749 (mul_lane<mode>3): This, and re-order arguments.
19750 (aarch64_float_mla_lane<mode>): Define.
19751 (aarch64_float_mls_lane<mode>): Define.
19752 * config/aarch64/arm_neon.h (vmla_lane_f32): Use RTL builtin
19753 instead of GCC vector extensions.
19754 (vmlaq_lane_f32): Likewise.
19755 (vmls_lane_f32): Likewise.
19756 (vmlsq_lane_f32): Likewise.
19758 2021-04-30 Jonathan Wright <jonathan.wright@arm.com>
19760 * config/aarch64/aarch64-simd-builtins.def: Add float_ml[as]
19761 builtin generator macros.
19762 * config/aarch64/aarch64-simd.md (aarch64_float_mla<mode>):
19764 (aarch64_float_mls<mode>): Define.
19765 * config/aarch64/arm_neon.h (vmla_f32): Use RTL builtin
19766 instead of relying on GCC vector extensions.
19767 (vmla_f64): Likewise.
19768 (vmlaq_f32): Likewise.
19769 (vmlaq_f64): Likewise.
19770 (vmls_f32): Likewise.
19771 (vmls_f64): Likewise.
19772 (vmlsq_f32): Likewise.
19773 (vmlsq_f64): Likewise.
19774 * config/aarch64/iterators.md: Define VDQF_DF mode iterator.
19776 2021-04-30 Jonathan Wright <jonathan.wright@arm.com>
19778 * config/aarch64/aarch64-simd-builtins.def: Add
19779 float_ml[as]_n_builtin generator macros.
19780 * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_from_dup<mode>):
19782 (mul_n<mode>3): This, and re-order arguments.
19783 (aarch64_float_mla_n<mode>): Define.
19784 (aarch64_float_mls_n<mode>): Define.
19785 * config/aarch64/arm_neon.h (vmla_n_f32): Use RTL builtin
19786 instead of inline asm.
19787 (vmlaq_n_f32): Likewise.
19788 (vmls_n_f32): Likewise.
19789 (vmlsq_n_f32): Likewise.
19791 2021-04-30 Jonathan Wright <joanthan.wright@arm.com>
19793 * config/aarch64/aarch64-simd-builtins.def: Add pmull[2]
19794 builtin generator macros.
19795 * config/aarch64/aarch64-simd.md (aarch64_pmullv8qi): Define.
19796 (aarch64_pmull_hiv16qi_insn): Define.
19797 (aarch64_pmull_hiv16qi): Define.
19798 * config/aarch64/arm_neon.h (vmull_high_p8): Use RTL builtin
19799 instead of inline asm.
19800 (vmull_p8): Likewise.
19802 2021-04-30 Senthil Kumar Selvaraj <saaadhu@gcc.gnu.org>
19804 * config/avr/avr.md: Adjust peepholes to match and
19805 generate parallels with clobber of REG_CC.
19806 (mov<mode>_insn): Rename to mov<mode>_insn_split.
19807 (*mov<mode>_insn): Rename to mov<mode>_insn.
19809 2021-04-30 David Edelsohn <dje.gcc@gmail.com>
19811 * varasm.c (use_blocks_for_decl_p): Don't use section anchors
19812 for VAR_DECLs if -fdata-sections enabled.
19814 2021-04-30 Michael Meissner <meissner@linux.ibm.com>
19816 PR bootstrap/100327
19817 * config/rs6000/rs6000.c
19818 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Define.
19819 (rs6000_libgcc_floating_mode_supported_p): New target hook.
19821 2021-04-30 Aldy Hernandez <aldyh@redhat.com>
19823 * tree-ssa-threadbackward.c (class thread_jumps): Split out code
19825 (class back_threader_registry): ...to here...
19826 (class back_threader_profitability): ...and here...
19827 (thread_jumps::thread_through_all_blocks): Remove argument.
19828 (back_threader_registry::back_threader_registry): New.
19829 (back_threader_registry::~back_threader_registry): New.
19830 (back_threader_registry::thread_through_all_blocks): New.
19831 (thread_jumps::profitable_jump_thread_path): Move from here...
19832 (back_threader_profitability::profitable_path_p): ...to here.
19833 (thread_jumps::find_taken_edge): New.
19834 (thread_jumps::convert_and_register_current_path): Move...
19835 (back_threader_registry::register_path): ...to here.
19836 (thread_jumps::register_jump_thread_path_if_profitable): Move...
19837 (thread_jumps::maybe_register_path): ...to here.
19838 (thread_jumps::handle_phi): Call find_taken_edge and
19839 maybe_register_path.
19840 (thread_jumps::handle_assignment): Same.
19841 (thread_jumps::fsm_find_control_statement_thread_paths): Remove
19842 tree argument to handle_phi and handle_assignment.
19843 (thread_jumps::find_jump_threads_backwards): Set m_name. Remove
19844 set of m_speed_p and m_max_threaded_paths.
19845 (pass_thread_jumps::execute): Remove second argument from
19846 find_jump_threads_backwards.
19847 (pass_early_thread_jumps::execute): Same.
19849 2021-04-30 Aldy Hernandez <aldyh@redhat.com>
19851 * tree-ssa-dom.c (class dom_jump_threader_simplifier): New.
19852 (class dom_opt_dom_walker): Initialize some class variables.
19853 (pass_dominator::execute): Pass evrp_range_analyzer and
19854 dom_jump_threader_simplifier to dom_opt_dom_walker.
19855 Adjust for some functions moving into classes.
19856 (simplify_stmt_for_jump_threading): Adjust and move to...
19857 (jump_threader_simplifier::simplify): ...here.
19858 (dom_opt_dom_walker::before_dom_children): Adjust for
19859 m_evrp_range_analyzer.
19860 (dom_opt_dom_walker::after_dom_children): Remove x_vr_values hack.
19861 (test_for_singularity): Place in dom_opt_dom_walker class.
19862 (dom_opt_dom_walker::optimize_stmt): The argument
19863 evrp_range_analyzer is now a class field.
19864 * tree-ssa-threadbackward.c (class thread_jumps): Add m_registry.
19865 (thread_jumps::thread_through_all_blocks): New.
19866 (thread_jumps::convert_and_register_current_path): Use m_registry.
19867 (pass_thread_jumps::execute): Adjust for thread_through_all_blocks
19868 being in the threader class.
19869 (pass_early_thread_jumps::execute): Same.
19870 * tree-ssa-threadedge.c (threadedge_initialize_values): Move...
19871 (jump_threader::jump_threader): ...here.
19872 (threadedge_finalize_values): Move...
19873 (jump_threader::~jump_threader): ...here.
19874 (jump_threader::remove_jump_threads_including): New.
19875 (jump_threader::thread_through_all_blocks): New.
19876 (record_temporary_equivalences_from_phis): Move...
19877 (jump_threader::record_temporary_equivalences_from_phis): ...here.
19878 (record_temporary_equivalences_from_stmts_at_dest): Move...
19879 (jump_threader::record_temporary_equivalences_from_stmts_at_dest):
19881 (simplify_control_stmt_condition_1): Move to jump_threader class.
19882 (simplify_control_stmt_condition): Move...
19883 (jump_threader::simplify_control_stmt_condition): ...here.
19884 (thread_around_empty_blocks): Move...
19885 (jump_threader::thread_around_empty_blocks): ...here.
19886 (thread_through_normal_block): Move...
19887 (jump_threader::thread_through_normal_block): ...here.
19888 (thread_across_edge): Move...
19889 (jump_threader::thread_across_edge): ...here.
19890 (thread_outgoing_edges): Move...
19891 (jump_threader::thread_outgoing_edges): ...here.
19892 * tree-ssa-threadedge.h: Move externally facing functings...
19893 (class jump_threader): ...here...
19894 (class jump_threader_simplifier): ...and here.
19895 * tree-ssa-threadupdate.c (struct redirection_data): Remove comment.
19896 (jump_thread_path_allocator::jump_thread_path_allocator): New.
19897 (jump_thread_path_allocator::~jump_thread_path_allocator): New.
19898 (jump_thread_path_allocator::allocate_thread_edge): New.
19899 (jump_thread_path_allocator::allocate_thread_path): New.
19900 (jump_thread_path_registry::jump_thread_path_registry): New.
19901 (jump_thread_path_registry::~jump_thread_path_registry): New.
19902 (jump_thread_path_registry::allocate_thread_edge): New.
19903 (jump_thread_path_registry::allocate_thread_path): New.
19904 (dump_jump_thread_path): Make extern.
19905 (debug (const vec<jump_thread_edge *> &path)): New.
19906 (struct removed_edges): Move to tree-ssa-threadupdate.h.
19907 (struct thread_stats_d): Remove.
19908 (remove_ctrl_stmt_and_useless_edges): Make static.
19909 (lookup_redirection_data): Move...
19910 (jump_thread_path_registry::lookup_redirection_data): ...here.
19911 (ssa_redirect_edges): Make static.
19912 (thread_block_1): Move...
19913 (jump_thread_path_registry::thread_block_1): ...here.
19914 (thread_block): Move...
19915 (jump_thread_path_registry::thread_block): ...here.
19916 (thread_through_loop_header): Move...
19917 (jump_thread_path_registry::thread_through_loop_header): ...here.
19918 (mark_threaded_blocks): Move...
19919 (jump_thread_path_registry::mark_threaded_blocks): ...here.
19920 (debug_path): Move...
19921 (jump_thread_path_registry::debug_path): ...here.
19922 (debug_all_paths): Move...
19923 (jump_thread_path_registry::dump): ..here.
19924 (rewire_first_differing_edge): Move...
19925 (jump_thread_path_registry::rewire_first_differing_edge): ...here.
19926 (adjust_paths_after_duplication): Move...
19927 (jump_thread_path_registry::adjust_paths_after_duplication): ...here.
19928 (duplicate_thread_path): Move...
19929 (jump_thread_path_registry::duplicate_thread_path): ..here.
19930 (remove_jump_threads_including): Move...
19931 (jump_thread_path_registry::remove_jump_threads_including): ...here.
19932 (thread_through_all_blocks): Move to...
19933 (jump_thread_path_registry::thread_through_all_blocks): ...here.
19934 (delete_jump_thread_path): Remove.
19935 (register_jump_thread): Move...
19936 (jump_thread_path_registry::register_jump_thread): ...here.
19937 * tree-ssa-threadupdate.h: Move externally facing functions...
19938 (class jump_thread_path_allocator): ...here...
19939 (class jump_thread_path_registry): ...and here.
19940 (thread_through_all_blocks): Remove.
19941 (struct removed_edges): New.
19942 (register_jump_thread): Remove.
19943 (remove_jump_threads_including): Remove.
19944 (delete_jump_thread_path): Remove.
19945 (remove_ctrl_stmt_and_useless_edges): Remove.
19946 (free_dom_edge_info): New prototype.
19947 * tree-vrp.c: Remove x_vr_values hack.
19948 (class vrp_jump_threader_simplifier): New.
19949 (vrp_jump_threader_simplifier::simplify): New.
19950 (vrp_jump_threader::vrp_jump_threader): Adjust method signature.
19951 Remove m_dummy_cond.
19952 Instantiate m_simplifier and m_threader.
19953 (vrp_jump_threader::thread_through_all_blocks): New.
19954 (vrp_jump_threader::simplify_stmt): Remove.
19955 (vrp_jump_threader::after_dom_children): Do not set m_dummy_cond.
19956 Remove x_vr_values hack.
19957 (execute_vrp): Adjust for thread_through_all_blocks being in a
19960 2021-04-30 Christophe Lyon <christophe.lyon@linaro.org>
19962 * genflags.c (gen_insn): Print failed expansion string.
19964 2021-04-30 H.J. Lu <hjl.tools@gmail.com>
19966 * expr.c (alignment_for_piecewise_move): Call mode_for_size
19967 without limit to MAX_FIXED_MODE_SIZE.
19969 2021-04-30 H.J. Lu <hjl.tools@gmail.com>
19971 PR middle-end/90773
19972 * builtins.c (builtin_memset_gen_str): Don't use return from
19973 simplify_gen_subreg.
19975 2021-04-30 Uroš Bizjak <ubizjak@gmail.com>
19978 * config/i386/i386.md (*add<mode>3_carry_0r): New insn pattern.
19979 (*addsi3_carry_zext_0r): Ditto.
19980 (*sub<mode>3_carry_0): Ditto.
19981 (*subsi3_carry_zext_0r): Ditto.
19982 * config/i386/predicates.md (ix86_carry_flag_unset_operator):
19984 * config/i386/i386.c (ix86_rtx_costs) <case PLUS, case MINUS>:
19985 Also consider ix86_carry_flag_unset_operator to calculate
19986 the cost of adc/sbb insn.
19988 2021-04-30 Roman Zhuykov <zhroma@ispras.ru>
19990 PR rtl-optimization/100225
19991 PR rtl-optimization/84878
19992 * modulo-sched.c (sms_schedule): Use note_stores to skip loops
19993 where we have an instruction which touches (writes) any hard
19994 register from df->regular_block_artificial_uses set.
19995 Allow not-single-set instruction only right before basic block
19998 2021-04-30 Geng Qi <gengqi@linux.alibaba.com>
20000 * config/riscv/riscv.opt (march=,mabi=): Negative itself.
20002 2021-04-30 LevyHsu <admin@levyhsu.com>
20004 * config/riscv/riscv.c (riscv_min_arithmetic_precision): New.
20005 * config/riscv/riscv.h (TARGET_MIN_ARITHMETIC_PRECISION): New.
20006 * config/riscv/riscv.md (addv<mode>4, uaddv<mode>4): New.
20007 (subv<mode>4, usubv<mode>4, mulv<mode>4, umulv<mode>4): New.
20009 2021-04-29 Alexandre Oliva <oliva@adacore.com>
20011 * config.gcc: Merged x86 and x86_64 cpu_type-setting cases.
20013 2021-04-29 Alexandre Oliva <oliva@adacore.com>
20015 * config/i386/i386.h (ASM_OUTPUT_MAX_SKIP_PAD): Rename to...
20016 (ASM_OUTPUT_MAX_SKIP_ALIGN): ... this. Enclose in do/while(0).
20017 * config/i386/i386.c: Adjust.
20018 * config/i386/i386.md: Adjust.
20019 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Drop.
20020 * config/i386/dragonfly.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
20021 * config/i386/freebsd.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
20022 * config/i386/gas.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
20023 * config/i386/gnu-user.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
20024 * config/i386/iamcu.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
20025 * config/i386/lynx.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
20026 * config/i386/netbsd-elf.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
20027 * config/i386/openbsdelf.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
20028 * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
20029 (ASM_OUTPUT_MAX_SKIP_PAD): Likewise.
20031 2021-04-29 Uroš Bizjak <ubizjak@gmail.com>
20033 * config/i386/i386-expand.c (ix86_expand_int_compare):
20034 Swap operands of GTU and LEU comparison to emit carry flag comparison.
20035 * config/i386/i386.md (*add<mode>3_carry_0): Change insn
20036 predicate to allow more combine opportunities with memory operands.
20037 (*sub<mode>3_carry_0): Ditto.
20039 2021-04-29 Richard Sandiford <richard.sandiford@arm.com>
20041 PR rtl-optimization/100303
20042 * rtl-ssa/accesses.cc (function_info::make_use_available): Take a
20043 boolean that indicates whether the use will only be used in
20044 debug instructions. Treat it in the same way that existing
20045 cross-EBB debug references would be handled if so.
20046 (function_info::make_uses_available): Likewise.
20047 * rtl-ssa/functions.h (function_info::make_uses_available): Update
20048 prototype accordingly.
20049 (function_info::make_uses_available): Likewise.
20050 * fwprop.c (try_fwprop_subst): Update call accordingly.
20052 2021-04-29 Jeff Law <jlaw@tachyum.com>
20054 * config/nios2/nios2-protos.h (nios2_fpu_insn_enabled): Move outside
20057 2021-04-29 Uroš Bizjak <ubizjak@gmail.com>
20058 Richard Biener <rguenther@suse.de>
20061 * config/i386/i386-builtin.def (IX86_BUILTIN_MASKLOADPD)
20062 (IX86_BUILTIN_MASKLOADPS, IX86_BUILTIN_MASKLOADPD256)
20063 (IX86_BUILTIN_MASKLOADPS256, IX86_BUILTIN_MASKLOADD)
20064 (IX86_BUILTIN_MASKLOADQ, IX86_BUILTIN_MASKLOADD256)
20065 (IX86_BUILTIN_MASKLOADQ256): Move from SPECIAL_ARGS
20066 to PURE_ARGS category.
20067 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
20068 Handle PURE_ARGS category.
20069 * config/i386/i386-expand.c (ix86_expand_builtin): Ditto.
20071 2021-04-29 Eric Botcazou <ebotcazou@adacore.com>
20073 * configure.ac: Check for the presence of sys/locking.h header and
20074 for whether _LK_LOCK is supported by _locking.
20075 * configure: Regenerate.
20076 * config.in: Likewise.
20077 * gcov-io.h: Define GCOV_LOCKED_WITH_LOCKING if HOST_HAS_LK_LOCK.
20078 * gcov-io.c (gcov_open): Add support for GCOV_LOCKED_WITH_LOCKING.
20079 * system.h: Include <sys/locking.h> if HAVE_SYS_LOCKING_H.
20081 2021-04-29 Uroš Bizjak <ubizjak@gmail.com>
20083 * config/i386/predicates.md (fcmov_comparison_operator):
20084 Do not check for trivial FP comparison operator.
20085 <case GEU, case LTU>: Allow CCGZmode.
20086 <case GTU, case LEU>: Do not allow CCCmode.
20087 (ix86_comparison_operator) <case GTU, case LEU>: Allow only CCmode.
20088 (ix86_carry_flag_operator): Match only LTU and UNLT code.
20089 Do not check for trivial FP comparison operator. Allow CCGZmode.
20091 2021-04-29 Tom de Vries <tdevries@suse.de>
20093 * omp-expand.c (expand_omp_simd): Add step_orig, and replace uses of
20094 fd->loop.step by either step or orig_step.
20096 2021-04-29 Eric Botcazou <ebotcazou@adacore.com>
20098 * config/sparc/sparc.c (gen_load_pcrel_sym): Delete.
20099 (load_got_register): Do the PIC dance here.
20100 (sparc_legitimize_tls_address): Simplify.
20101 (sparc_emit_probe_stack_range): Likewise.
20102 (sparc32_initialize_trampoline): Likewise.
20103 (sparc64_initialize_trampoline): Likewise.
20104 * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Add @ marker.
20105 (probe_stack_range<P:mode>): Likewise.
20106 (flush<P:mode>): Likewise.
20107 (tgd_hi22<P:mode>): Likewise.
20108 (tgd_lo10<P:mode>): Likewise.
20109 (tgd_add<P:mode>): Likewise.
20110 (tgd_call<P:mode>): Likewise.
20111 (tldm_hi22<P:mode>): Likewise.
20112 (tldm_lo10<P:mode>): Likewise.
20113 (tldm_add<P:mode>): Likewise.
20114 (tldm_call<P:mode>): Likewise.
20115 (tldo_hix22<P:mode>): Likewise.
20116 (tldo_lox10<P:mode>): Likewise.
20117 (tldo_add<P:mode>): Likewise.
20118 (tie_hi22<P:mode>): Likewise.
20119 (tie_lo10<P:mode>): Likewise.
20120 (tie_add<P:mode>): Likewise.
20121 (tle_hix22<P:mode>): Likewise.
20122 (tle_lox10<P:mode>): Likewise.
20123 (stack_protect_setsi): Rename to...
20124 (stack_protect_set32): ...this.
20125 (stack_protect_setdi): Rename to...
20126 (stack_protect_set64): ...this.
20127 (stack_protect_set): Adjust calls to above.
20128 (stack_protect_testsi): Rename to...
20129 (stack_protect_test32): ...this.
20130 (stack_protect_testdi): Rename to...
20131 (stack_protect_test64): ...this.
20132 (stack_protect_test): Adjust calls to above.
20134 2021-04-29 H.J. Lu <hjl.tools@gmail.com>
20136 PR middle-end/90773
20137 * builtins.c (builtin_memcpy_read_str): Add a dummy argument.
20138 (builtin_strncpy_read_str): Likewise.
20139 (builtin_memset_read_str): Add an argument for the previous RTL
20140 information and generate the new RTL from the previous RTL info.
20141 (builtin_memset_gen_str): Likewise.
20142 * builtins.h (builtin_strncpy_read_str): Update the prototype.
20143 (builtin_memset_read_str): Likewise.
20144 * expr.c (by_pieces_ninsns): If targetm.overlap_op_by_pieces_p()
20145 returns true, round up size and alignment to the widest integer
20146 mode for maximum size.
20147 (pieces_addr::adjust): Add a pointer to by_pieces_prev argument
20148 and pass it to m_constfn.
20149 (op_by_pieces_d): Add m_push and m_overlap_op_by_pieces.
20150 (op_by_pieces_d::op_by_pieces_d): Add a bool argument to
20151 initialize m_push. Initialize m_overlap_op_by_pieces with
20152 targetm.overlap_op_by_pieces_p ().
20153 (op_by_pieces_d::run): Pass the previous RTL information to
20154 pieces_addr::adjust and generate overlapping operations if
20155 m_overlap_op_by_pieces is true.
20157 (move_by_pieces_d::move_by_pieces_d): Updated for op_by_pieces_d
20159 (store_by_pieces_d::store_by_pieces_d): Updated for op_by_pieces_d
20161 (can_store_by_pieces): Use by_pieces_constfn on constfun.
20162 (store_by_pieces): Use by_pieces_constfn on constfun. Updated
20163 for op_by_pieces_d change.
20164 (clear_by_pieces_1): Add a dummy argument.
20165 (clear_by_pieces): Updated for op_by_pieces_d change.
20166 (compare_by_pieces_d::compare_by_pieces_d): Likewise.
20167 (string_cst_read_str): Add a dummy argument.
20168 * expr.h (by_pieces_constfn): Add a dummy argument.
20169 (by_pieces_prev): New.
20170 * target.def (overlap_op_by_pieces_p): New target hook.
20171 * config/i386/i386.c (TARGET_OVERLAP_OP_BY_PIECES_P): New.
20172 * doc/tm.texi.in: Add TARGET_OVERLAP_OP_BY_PIECES_P.
20173 * doc/tm.texi: Regenerated.
20175 2021-04-29 Richard Biener <rguenther@suse.de>
20177 PR tree-optimization/100253
20178 * tree-vect-stmts.c (vectorizable_load): Do not assume
20179 element alignment when DR_MISALIGNMENT is -1.
20180 (vectorizable_store): Likewise.
20182 2021-04-29 Jakub Jelinek <jakub@redhat.com>
20185 * config/aarch64/aarch64.c (aarch64_add_offset_1_temporaries): Use
20186 absu_hwi instead of abs_hwi.
20188 2021-04-29 Richard Biener <rguenther@suse.de>
20190 PR middle-end/38474
20191 * tree-ssa-structalias.c (add_graph_edge): Avoid direct
20192 forwarding when indirect forwarding through ESCAPED
20195 2021-04-29 Tom de Vries <tdevries@suse.de>
20198 * internal-fn.c (expand_GOMP_SIMT_ENTER_ALLOC)
20199 (expand_GOMP_SIMT_LAST_LANE, expand_GOMP_SIMT_ORDERED_PRED)
20200 (expand_GOMP_SIMT_VOTE_ANY, expand_GOMP_SIMT_XCHG_BFLY)
20201 (expand_GOMP_SIMT_XCHG_IDX): Ensure target is assigned to.
20203 2021-04-29 Richard Biener <rguenther@suse.de>
20205 PR tree-optimization/99912
20206 * tree-ssa-dse.c (dse_dom_walker::m_need_cfg_cleanup): New.
20207 (dse_dom_walker::todo): Likewise.
20208 (dse_dom_walker::dse_optimize_stmt): Move VDEF check to the
20210 (dse_dom_walker::before_dom_children): Remove trivially
20211 dead SSA defs and schedule CFG cleanup if we removed all
20213 (pass_dse::execute): Get TODO as computed by the DOM walker
20214 and return it. Wipe dominator info earlier.
20216 2021-04-29 Richard Biener <rguenther@suse.de>
20219 * ipa-prop.c (ipcp_modif_dom_walker::before_dom_children):
20220 Track blocks to cleanup EH in new m_need_eh_cleanup.
20221 (ipcp_modif_dom_walker::cleanup_eh): New.
20222 (ipcp_transform_function): Release dominator info before
20225 2021-04-29 Martin Sebor <msebor@redhat.com>
20227 PR middle-end/100250
20228 * attribs.c (attr_access::array_as_string): Avoid dereferencing
20229 a pointer when it's null.
20231 2021-04-29 Martin Sebor <msebor@redhat.com>
20233 * Makefile.in (OBJS): Add ipa-free-lang-data.o.
20234 * ipa-free-lang-data.cc: New file.
20235 * tree.c: Move pass free_lang_data to file above.
20236 (build_array_type_1): Declare extern.
20237 * tree.h (build_array_type_1): Declare.
20239 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
20241 * config/aarch64/aarch64-simd-builtins.def: Modify comment to
20242 make consistent with updated RTL pattern.
20243 * config/aarch64/aarch64-simd.md (aarch64_<sur>qmovn<mode>):
20244 Implement using ss_truncate and us_truncate rather than
20246 * config/aarch64/iterators.md: Remove redundant unspecs and
20247 iterator: UNSPEC_[SU]QXTN and SUQMOVN respectively.
20249 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
20251 * config/aarch64/arm_acle.h (__attribute__): Make intrinsic
20252 attributes consistent with those defined in arm_neon.h.
20254 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
20256 * config/aarch64/arm_fp16.h (__attribute__): Make intrinsic
20257 attributes consistent with those defined in arm_neon.h.
20259 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
20261 * config/aarch64/aarch64-simd-builtins.def: Add
20262 float_trunc_rodd builtin generator macros.
20263 * config/aarch64/aarch64-simd.md (aarch64_float_trunc_rodd_df):
20265 (aarch64_float_trunc_rodd_lo_v2sf): Define.
20266 (aarch64_float_trunc_rodd_hi_v4sf_le): Define.
20267 (aarch64_float_trunc_rodd_hi_v4sf_be): Define.
20268 (aarch64_float_trunc_rodd_hi_v4sf): Define.
20269 * config/aarch64/arm_neon.h (vcvtx_f32_f64): Use RTL builtin
20270 instead of inline asm.
20271 (vcvtx_high_f32_f64): Likewise.
20272 (vcvtxd_f32_f64): Likewise.
20273 * config/aarch64/iterators.md: Add FCVTXN unspec.
20275 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
20277 * config/aarch64/aarch64-simd-builtins.def: Add tbx1 builtin
20279 * config/aarch64/aarch64-simd.md (aarch64_tbx1<mode>):
20281 * config/aarch64/arm_neon.h (vqtbx1_s8): USE RTL builtin
20282 instead of inline asm.
20283 (vqtbx1_u8): Likewise.
20284 (vqtbx1_p8): Likewise.
20285 (vqtbx1q_s8): Likewise.
20286 (vqtbx1q_u8): Likewise.
20287 (vqtbx1q_p8): Likewise.
20288 (vtbx2_s8): Likewise.
20289 (vtbx2_u8): Likewise.
20290 (vtbx2_p8): Likewise.
20292 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
20294 * config/aarch64/aarch64-simd-builtins.def: Add tbl1 builtin
20296 * config/aarch64/arm_neon.h (vqtbl1_p8): Use RTL builtin
20297 instead of inline asm.
20298 (vqtbl1_s8): Likewise.
20299 (vqtbl1_u8): Likewise.
20300 (vqtbl1q_p8): Likewise.
20301 (vqtbl1q_s8): Likewise.
20302 (vqtbl1q_u8): Likewise.
20303 (vtbl1_s8): Likewise.
20304 (vtbl1_u8): Likewise.
20305 (vtbl1_p8): Likewise.
20306 (vtbl2_s8): Likewise.
20307 (vtbl2_u8): Likewise.
20308 (vtbl2_p8): Likewise.
20310 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
20312 * config/aarch64/aarch64-simd-builtins.def: Add polynomial
20313 ssri_n buitin generator macro.
20314 * config/aarch64/arm_neon.h (vsri_n_p8): Use RTL builtin
20315 instead of inline asm.
20316 (vsri_n_p16): Likewise.
20317 (vsri_n_p64): Likewise.
20318 (vsriq_n_p8): Likewise.
20319 (vsriq_n_p16): Likewise.
20320 (vsriq_n_p64): Likewise.
20322 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
20324 * config/aarch64/aarch64-simd-builtins.def: Use VALLP mode
20325 iterator for polynomial ssli_n builtin generator macro.
20326 * config/aarch64/arm_neon.h (vsli_n_p8): Use RTL builtin
20327 instead of inline asm.
20328 (vsli_n_p16): Likewise.
20329 (vsliq_n_p8): Likewise.
20330 (vsliq_n_p16): Likewise.
20331 * config/aarch64/iterators.md: Define VALLP mode iterator.
20333 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
20335 * config/aarch64/aarch64-simd-builtins.def: Use VDQV_L
20336 iterator to generate [su]adalp RTL builtins.
20337 * config/aarch64/aarch64-simd.md: Use VDQV_L iterator in
20338 [su]adalp RTL pattern.
20339 * config/aarch64/arm_neon.h (vpadal_s32): Use RTL builtin
20340 instead of inline asm.
20341 (vpadal_u32): Likewise.
20343 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
20345 * config/aarch64/aarch64-simd-builtins.def: Add [su]addlp
20346 builtin generator macros.
20347 * config/aarch64/aarch64-simd.md (aarch64_<su>addlp<mode>):
20349 * config/aarch64/arm_neon.h (vpaddl_s8): Use RTL builtin
20350 instead of inline asm.
20351 (vpaddl_s16): Likewise.
20352 (vpaddl_s32): Likewise.
20353 (vpaddl_u8): Likewise.
20354 (vpaddl_u16): Likewise.
20355 (vpaddl_u32): Likewise.
20356 (vpaddlq_s8): Likewise.
20357 (vpaddlq_s16): Likewise.
20358 (vpaddlq_s32): Likewise.
20359 (vpaddlq_u8): Likewise.
20360 (vpaddlq_u16): Likewise.
20361 (vpaddlq_u32): Liwewise.
20362 * config/aarch64/iterators.md: Define [SU]ADDLP unspecs with
20363 appropriate attributes.
20365 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
20367 * config/aarch64/aarch64-simd-builtins.def: Use VDQ_I iterator
20368 for aarch64_addp<mode> builtin macro generator.
20369 * config/aarch64/aarch64-simd.md: Use VDQ_I iterator in
20370 aarch64_addp<mode> RTL pattern.
20371 * config/aarch64/arm_neon.h (vpaddq_s8): Use RTL builtin
20372 instead of inline asm.
20373 (vpaddq_s16): Likewise.
20374 (vpaddq_s32): Likewise.
20375 (vpaddq_s64): Likewise.
20376 (vpaddq_u8): Likewise.
20377 (vpaddq_u16): Likewise.
20378 (vpaddq_u32): Likewise.
20379 (vpaddq_u64): Likewise.
20381 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
20383 * config/aarch64/aarch64-simd-builtins.def: Add sq[r]dmulh_n
20384 builtin generator macros.
20385 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_n<mode>):
20387 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Use RTL builtin
20388 instead of inline asm.
20389 (vqdmulh_n_s32): Likewise.
20390 (vqdmulhq_n_s16): Likewise.
20391 (vqdmulhq_n_s32): Likewise.
20392 (vqrdmulh_n_s16): Likewise.
20393 (vqrdmulh_n_s32): Likewise.
20394 (vqrdmulhq_n_s16): Likewise.
20395 (vqrdmulhq_n_s32): Likewise.
20397 2021-04-28 Tobias Burnus <tobias@codesourcery.com>
20399 * doc/install.texi (--enable-offload-defaulted): Document.
20401 2021-04-28 Senthil Kumar Selvaraj <saaadhu@gcc.gnu.org>
20403 * config/avr/avr-dimode.md: Turn existing patterns into
20404 define_insn_and_split style patterns where the splitter
20405 adds a clobber of the condition code register. Drop "cc"
20406 attribute. Add new patterns to match output of
20408 * config/avr/avr-fixed.md: Likewise.
20409 * config/avr/avr.c (cc_reg_rtx): New.
20410 (avr_parallel_insn_from_insns): Adjust insn count
20411 for removal of set of cc0.
20412 (avr_is_casesi_sequence): Likewise.
20413 (avr_casei_sequence_check_operands): Likewise.
20414 (avr_optimize_casesi): Likewise. Also insert
20415 new insns after jump_insn.
20416 (avr_pass_casesi::avr_rest_of_handle_casesi): Adjust
20417 for removal of set of cc0.
20418 (avr_init_expanders): Initialize cc_reg_rtx.
20419 (avr_regno_reg_class): Handle REG_CC.
20420 (cond_string): Remove usage of CC_OVERFLOW_UNUSABLE.
20421 (avr_notice_update_cc): Remove function.
20422 (ret_cond_branch): Remove usage of CC_OVERFLOW_UNUSABLE.
20423 (compare_condition): Adjust for PARALLEL with
20425 (out_shift_with_cnt): Likewise.
20426 (ashlhi3_out): Likewise.
20427 (ashrhi3_out): Likewise.
20428 (lshrhi3_out): Likewise.
20429 (avr_class_max_nregs): Return single reg for REG_CC.
20430 (avr_compare_pattern): Check for REG_CC instead
20432 (avr_reorg_remove_redundant_compare): Likewise.
20433 (avr_reorg):Adjust for PARALLEL with REG_CC clobber.
20434 (avr_hard_regno_nregs): Return single reg for REG_CC.
20435 (avr_hard_regno_mode_ok): Allow only CCmode for REG_CC.
20436 (avr_md_asm_adjust): Clobber REG_CC.
20437 (TARGET_HARD_REGNO_NREGS): Define.
20438 (TARGET_CLASS_MAX_NREGS): Define.
20439 (TARGET_MD_ASM_ADJUST): Define.
20440 * config/avr/avr.h (FIRST_PSEUDO_REGISTER): Adjust
20442 (enum reg_class): Add CC_REG class.
20443 (NOTICE_UPDATE_CC): Remove.
20444 (CC_OVERFLOW_UNUSABLE): Remove.
20445 (CC_NO_CARRY): Remove.
20446 * config/avr/avr.md: Turn existing patterns into
20447 define_insn_and_split style patterns where the splitter
20448 adds a clobber of the condition code register. Drop "cc"
20449 attribute. Add new patterns to match output of
20451 (sez): Remove unused pattern.
20453 2021-04-28 Richard Earnshaw <rearnsha@arm.com>
20456 * config/arm/arm.c (arm_hard_regno_mode_ok): Only allow VPR to be
20459 2021-04-28 Richard Sandiford <richard.sandiford@arm.com>
20462 * config/aarch64/constraints.md (Utq): Require the address to
20463 be valid for both the element mode and for V2DImode.
20465 2021-04-28 Jakub Jelinek <jakub@redhat.com>
20466 Tobias Burnus <tobias@codesourcery.com>
20468 * configure.ac (OFFLOAD_DEFAULTED): AC_DEFINE if offload-defaulted.
20469 * gcc.c (process_command): New variable.
20470 (driver::maybe_putenv_OFFLOAD_TARGETS): If OFFLOAD_DEFAULTED,
20471 set it if -foffload is defaulted.
20472 * lto-wrapper.c (OFFLOAD_TARGET_DEFAULT_ENV): Define.
20473 (compile_offload_image): If OFFLOAD_DEFAULTED and
20474 OFFLOAD_TARGET_DEFAULT is in the environment, don't fail
20475 if corresponding mkoffload can't be found.
20476 (compile_images_for_offload_targets): Likewise. Free and clear
20477 offload_names if no valid offload is found.
20478 * config.in: Regenerate.
20479 * configure: Regenerate.
20481 2021-04-28 Richard Biener <rguenther@suse.de>
20483 PR tree-optimization/100292
20484 * tree-vect-generic.c (expand_vector_condition): Do not fold
20487 2021-04-27 David Edelsohn <dje.gcc@gmail.com>
20489 * config/rs6000/aix.h (SUBTARGET_DRIVER_SELF_SPECS): New.
20490 * config/rs6000/aix64.opt (m64): New.
20493 2021-04-27 Maciej W. Rozycki <macro@orcam.me.uk>
20495 * config/vax/vax.c (print_operand_address, vax_address_cost_1)
20496 (index_term_p): Handle ASHIFT too.
20498 2021-04-27 Maciej W. Rozycki <macro@orcam.me.uk>
20500 * config/vax/builtins.md (jbb<ccss>i<mode>): Remove operand #3.
20501 (sync_lock_test_and_set<mode>): Adjust accordingly.
20502 (sync_lock_release<mode>): Likewise.
20504 2021-04-27 Maciej W. Rozycki <macro@orcam.me.uk>
20506 * config/vax/vax-protos.h (adjacent_operands_p): Remove
20508 * config/vax/vax.c (adjacent_operands_p): Remove.
20510 2021-04-27 Maciej W. Rozycki <macro@linux-mips.org>
20512 * ifcvt.c (dead_or_predicable) [!IFCVT_MODIFY_TESTS]: Fall
20513 through to the non-conditional execution case if getting the
20514 condition for conditional execution has failed.
20516 2021-04-27 Richard Sandiford <richard.sandiford@arm.com>
20518 PR middle-end/100284
20519 * gimple.c (gimple_could_trap_p_1): Remove VEC_COND_EXPR test.
20520 * tree-eh.c (operation_could_trap_p): Handle VEC_COND_EXPR rather
20521 than asserting on it.
20523 2021-04-27 David Edelsohn <dje.gcc@gmail.com>
20525 * config/rs6000/rs6000.c (rs6000_aix_precompute_tls_p): Protect
20526 with TARGET_AIX_OS.
20528 2021-04-27 David Edelsohn <dje.gcc@gmail.com>
20531 * calls.c (precompute_register_parameters): Additionally test
20532 targetm.precompute_tls_p to pre-compute argument.
20533 * config/rs6000/aix.h (TARGET_PRECOMPUTE_TLS_P): Define.
20534 * config/rs6000/rs6000.c (rs6000_aix_precompute_tls_p): New.
20535 * target.def (precompute_tls_p): New.
20536 * doc/tm.texi.in (TARGET_PRECOMPUTE_TLS_P): Add hook documentation.
20537 * doc/tm.texi: Regenerated.
20539 2021-04-27 Jakub Jelinek <jakub@redhat.com>
20542 * config/aarch64/aarch64.c (aarch64_print_operand): Cast -UINTVAL
20543 back to HOST_WIDE_INT.
20545 2021-04-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
20548 * simplify-rtx.c (simplify_context::simplify_subreg): Check the
20549 memory alignment for the outer mode.
20551 2021-04-27 H.J. Lu <hjl.tools@gmail.com>
20553 PR middle-end/90773
20554 * expr.c (op_by_pieces_d::get_usable_mode): New member function.
20555 (op_by_pieces_d::run): Cange a while loop to a do-while loop.
20557 2021-04-27 Alex Coplan <alex.coplan@arm.com>
20560 * config/arm/arm.c (arm_split_compare_and_swap): Fix up codegen
20561 with negative immediates: ensure we expand cbranchsi4_scratch
20562 correctly and ensure we satisfy its constraints.
20563 * config/arm/sync.md
20564 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Don't
20565 attempt to tie two output operands together with constraints;
20566 collapse two alternatives.
20567 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise.
20568 * config/arm/thumb1.md (cbranchsi4_neg_late): New.
20570 2021-04-27 Jakub Jelinek <jakub@redhat.com>
20573 * config/aarch64/predicates.md (aarch64_sub_immediate,
20574 aarch64_plus_immediate): Use -UINTVAL instead of -INTVAL.
20575 * config/aarch64/aarch64.md (casesi, rotl<mode>3): Likewise.
20576 * config/aarch64/aarch64.c (aarch64_print_operand,
20577 aarch64_split_atomic_op, aarch64_expand_subvti): Likewise.
20579 2021-04-27 Jakub Jelinek <jakub@redhat.com>
20581 PR tree-optimization/100239
20582 * tree-vect-generic.c (lower_vec_perm): Don't accept constant
20583 permutations with all indices from the first zero element as vec_shl.
20585 2021-04-27 Jakub Jelinek <jakub@redhat.com>
20587 PR rtl-optimization/100254
20588 * cfgcleanup.c (outgoing_edges_match): Check REG_EH_REGION on
20589 last1 and last2 insns rather than BB_END (bb1) and BB_END (bb2) insns.
20591 2021-04-27 Richard Biener <rguenther@suse.de>
20593 PR tree-optimization/99912
20594 * passes.def: Add comment about new TODO_remove_unused_locals.
20595 * tree-stdarg.c (pass_data_stdarg): Run TODO_remove_unused_locals
20598 2021-04-27 Richard Biener <rguenther@suse.de>
20600 PR tree-optimization/99912
20601 * passes.def (pass_all_optimizations): Add pass_dse before
20602 the first pass_dce, move the first pass_dse before the
20603 pass_dce following pass_pre.
20605 2021-04-27 Jakub Jelinek <jakub@redhat.com>
20607 PR tree-optimization/95527
20608 * generic-match-head.c: Include tm.h.
20609 * gimple-match-head.c: Include tm.h.
20610 * match.pd (CLZ == INTEGER_CST): Don't use
20611 #ifdef CLZ_DEFINED_VALUE_AT_ZERO, only test CLZ_DEFINED_VALUE_AT_ZERO
20612 if clz == CFN_CLZ. Add missing val declaration.
20613 (CTZ cmp CST): New simplifications.
20615 2021-04-27 Jakub Jelinek <jakub@redhat.com>
20617 PR tree-optimization/96696
20618 * expr.c (expand_expr_divmod): New function.
20619 (expand_expr_real_2) <case TRUNC_DIV_EXPR>: Use it for truncations and
20620 divisions. Formatting fixes.
20621 <case MULT_EXPR>: Optimize x / y * y as x - x % y if the latter is
20624 2021-04-27 Martin Jambor <mjambor@suse.cz>
20627 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call):
20628 If removing a call statement LHS SSA name, release it.
20630 2021-04-27 Richard Earnshaw <rearnsha@arm.com>
20633 * config/arm/arm.c (THUMB2_WORK_REGS): Check PIC_OFFSET_TABLE_REGNUM
20634 is valid before including it in the mask.
20636 2021-04-27 Richard Sandiford <richard.sandiford@arm.com>
20639 * config/aarch64/aarch64.c (aarch64_comp_type_attributes): Handle
20642 2021-04-27 Richard Biener <rguenther@suse.de>
20644 PR tree-optimization/100051
20645 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Add
20646 disambiguator based on access size vs. decl size.
20648 2021-04-27 Richard Biener <rguenther@suse.de>
20650 PR tree-optimization/100278
20651 * tree-ssa-pre.c (compute_avail): Give up when we cannot
20652 adjust TBAA beacuse of mismatching bases.
20654 2021-04-27 Jakub Jelinek <jakub@redhat.com>
20657 * config/i386/i386.md (*<insn><mode>3_mask, *<insn><mode>3_mask_1):
20658 For any_rotate define_insn_split and following splitters, use
20659 SWI iterator instead of SWI48.
20661 2021-04-27 Richard Biener <rguenther@suse.de>
20663 PR tree-optimization/99776
20664 * match.pd (bit_field_ref (ctor)): Relax element extract
20665 type compatibility checks.
20667 2021-04-27 Cui,Lili <lili.cui@intel.com>
20669 * common/config/i386/i386-common.c (processor_names):
20670 Sync processor_names with processor_type.
20671 * config/i386/i386-options.c (processor_cost_table):
20672 Sync processor_cost_table with processor_type.
20674 2021-04-26 Aldy Hernandez <aldyh@redhat.com>
20676 * value-range.cc (irange::irange_set_1bit_anti_range): Add assert.
20677 (irange::set): Call irange_set_1bit_anti_range for handling all
20678 1-bit ranges. Fall through on ~[MIN,MAX].
20680 2021-04-26 Aldy Hernandez <aldyh@redhat.com>
20682 * value-range.cc (irange::legacy_num_pairs): Remove.
20683 (irange::invert): Change gcc_assert to gcc_checking_assert.
20684 * value-range.h (irange::num_pairs): Adjust for a cached
20685 num_pairs(). Also, rename all gcc_assert's to
20686 gcc_checking_assert's.
20688 2021-04-26 Aldy Hernandez <aldyh@redhat.com>
20690 * value-range.cc (irange::operator=): Set m_kind.
20691 (irange::copy_to_legacy): Handle varying and undefined sources
20692 as a legacy copy since they can be easily copied.
20693 (irange::irange_set): Set m_kind.
20694 (irange::irange_set_anti_range): Same.
20695 (irange::set): Rename normalize_min_max to normalize_kind.
20696 (irange::verify_range): Adjust for multi-ranges having the
20698 (irange::irange_union): Set m_kind.
20699 (irange::irange_intersect): Same.
20700 (irange::invert): Same.
20701 * value-range.h (irange::kind): Always return m_kind.
20702 (irange::varying_p): Rename to...
20703 (irange::varying_comptaible_p): ...this.
20704 (irange::undefined_p): Only look at m_kind.
20705 (irange::irange): Always set VR_UNDEFINED if applicable.
20706 (irange::set_undefined): Always set VR_UNDEFINED.
20707 (irange::set_varying): Always set m_kind to VR_VARYING.
20708 (irange::normalize_min_max): Rename to...
20709 (irange::normalize_kind): ...this.
20711 2021-04-26 Aldy Hernandez <aldyh@redhat.com>
20713 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::set_ssa_range_info):
20714 Adjust for constant_p including varying_p.
20715 * tree-vrp.c (vrp_prop::finalize): Same.
20716 (determine_value_range): Same.
20717 * vr-values.c (vr_values::range_of_expr): Same.
20718 * value-range.cc (irange::symbolic_p): Do not check varying_p.
20719 (irange::constant_p): Same.
20721 2021-04-26 Aldy Hernandez <aldyh@redhat.com>
20723 * value-range.cc (irange::legacy_lower_bound): Replace
20724 !undefined_p check with num_ranges > 0.
20725 (irange::legacy_upper_bound): Same.
20726 * value-range.h (irange::type): Same.
20727 (irange::lower_bound): Same.
20728 (irange::upper_bound): Same.
20730 2021-04-26 Richard Biener <rguenther@suse.de>
20732 PR tree-optimization/99956
20733 * gimple-loop-interchange.cc (compute_access_stride):
20734 Try instantiating the access in a shallower loop nest
20735 if instantiating failed.
20736 (compute_access_strides): Pass adjustable loop_nest
20737 to compute_access_stride.
20739 2021-04-26 Christophe Lyon <christophe.lyon@linaro.org>
20741 * doc/sourcebuild.texi (arm_cmse_hw): Document.
20743 2021-04-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20745 * config/aarch64/iterators.md (vwcore): Handle V4BF, V8BF.
20747 2021-04-26 Thomas Schwinge <thomas@codesourcery.com>
20748 Nathan Sidwell <nathan@codesourcery.com>
20749 Tom de Vries <vries@codesourcery.com>
20750 Julian Brown <julian@codesourcery.com>
20751 Kwok Cheung Yeung <kcy@codesourcery.com>
20753 * omp-offload.c (oacc_validate_dims): Implement
20754 '-Wopenacc-parallelism'.
20755 * doc/invoke.texi (-Wopenacc-parallelism): Document.
20757 2021-04-26 Richard Biener <rguenther@suse.de>
20759 * tree-cfg.h (gimplify_build1): Remove.
20760 (gimplify_build2): Likewise.
20761 (gimplify_build3): Likewise.
20762 * tree-cfg.c (gimplify_build1): Move to tree-vect-generic.c.
20763 (gimplify_build2): Likewise.
20764 (gimplify_build3): Likewise.
20765 * tree-vect-generic.c (gimplify_build1): Move from tree-cfg.c.
20767 (gimplify_build2): Likewise.
20768 (gimplify_build3): Likewise.
20769 (tree_vec_extract): Use resimplify with following SSA edges.
20770 (expand_vector_parallel): Avoid passing NULL size/bitpos
20771 to tree_vec_extract.
20772 * expr.c (store_constructor): Deal with zero-element CTORs.
20773 * match.pd (bit_field_ref <vector CTOR>): Make sure to
20774 produce vector constants when possible.
20776 2021-04-26 Richard Biener <rguenther@suse.de>
20778 * tree-complex.c: Include gimple-fold.h.
20779 (expand_complex_addition): Use gimple_build.
20780 (expand_complex_multiplication_components): Likewise.
20781 (expand_complex_multiplication): Likewise.
20782 (expand_complex_div_straight): Likewise.
20783 (expand_complex_div_wide): Likewise.
20784 (expand_complex_division): Likewise.
20785 (expand_complex_conjugate): Likewise.
20786 (expand_complex_comparison): Likewise.
20788 2021-04-26 Richard Biener <rguenther@suse.de>
20790 * tree-ssa-phiopt.c (two_value_replacement): Remove use
20791 of legacy gimplify_buildN API.
20793 2021-04-26 Richard Biener <rguenther@suse.de>
20795 PR tree-optimization/99473
20796 * tree-ssa-phiopt.c (cond_store_replacement): Handle all
20799 2021-04-26 Richard Biener <rguenther@suse.de>
20801 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_builtin):
20802 Use replace_call_with_value.
20804 2021-04-26 Richard Biener <rguenther@suse.de>
20806 * tree-ssa-propagate.h (valid_gimple_rhs_p): Remove.
20807 (update_gimple_call): Likewise.
20808 (update_call_from_tree): Likewise.
20809 * tree-ssa-propagate.c (valid_gimple_rhs_p): Remove.
20810 (valid_gimple_call_p): Likewise.
20811 (move_ssa_defining_stmt_for_defs): Likewise.
20812 (finish_update_gimple_call): Likewise.
20813 (update_gimple_call): Likewise.
20814 (update_call_from_tree): Likewise.
20815 (propagate_tree_value_into_stmt): Use replace_call_with_value.
20816 * gimple-fold.h (update_gimple_call): Declare.
20817 * gimple-fold.c (valid_gimple_rhs_p): Move here from
20818 tree-ssa-propagate.c.
20819 (update_gimple_call): Likewise.
20820 (valid_gimple_call_p): Likewise.
20821 (finish_update_gimple_call): Likewise, and simplify.
20822 (gimplify_and_update_call_from_tree): Implement
20823 update_call_from_tree functionality, avoid excessive
20824 push/pop_gimplify_context.
20825 (gimple_fold_builtin): Use only gimplify_and_update_call_from_tree.
20826 (gimple_fold_call): Likewise.
20827 * gimple-ssa-sprintf.c (try_substitute_return_value): Likewise.
20828 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Likewise.
20829 (pass_fold_builtins::execute): Likewise.
20830 (optimize_stack_restore): Use replace_call_with_value.
20831 * tree-cfg.c (fold_loop_internal_call): Likewise.
20832 * tree-ssa-dce.c (maybe_optimize_arith_overflow): Use
20833 only gimplify_and_update_call_from_tree.
20834 * tree-ssa-strlen.c (handle_builtin_strlen): Likewise.
20835 (handle_builtin_strchr): Likewise.
20836 * tsan.c: Include gimple-fold.h instead of tree-ssa-propagate.h.
20838 2021-04-26 Jakub Jelinek <jakub@redhat.com>
20841 * vmsdbgout.c (ASM_OUTPUT_DEBUG_STRING, vmsdbgout_begin_block,
20842 vmsdbgout_end_block, lookup_filename, vmsdbgout_source_line): Remove
20845 2021-04-25 liuhongt <hongtao.liu@intel.com>
20848 * config/i386/i386-builtin.def (BDESC): Change the icode of
20849 the following builtins to CODE_FOR_nothing.
20850 * config/i386/i386.c (ix86_gimple_fold_builtin): Fold
20851 IX86_BUILTIN_PCMPEQB128, IX86_BUILTIN_PCMPEQW128,
20852 IX86_BUILTIN_PCMPEQD128, IX86_BUILTIN_PCMPEQQ,
20853 IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
20854 IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
20855 IX86_BUILTIN_PCMPGTB128, IX86_BUILTIN_PCMPGTW128,
20856 IX86_BUILTIN_PCMPGTD128, IX86_BUILTIN_PCMPGTQ,
20857 IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
20858 IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256.
20859 * config/i386/sse.md (avx2_eq<mode>3): Deleted.
20860 (sse2_eq<mode>3): Ditto.
20861 (sse4_1_eqv2di3): Ditto.
20862 (sse2_gt<mode>3): Rename to ..
20863 (*sse2_gt<mode>3): .. this.
20865 2021-04-24 Iain Sandoe <iain@sandoe.co.uk>
20868 2021-04-24 Iain Sandoe <iain@sandoe.co.uk>
20871 * config/darwin.c (darwin_binds_local_p): Assume that any
20872 public symbol might be interposed for PIC code. Update function
20873 header comment to reflect current Darwin capability.
20875 2021-04-24 Iain Sandoe <iain@sandoe.co.uk>
20878 * config/darwin.c (darwin_binds_local_p): Assume that any
20879 public symbol might be interposed for PIC code. Update function
20880 header comment to reflect current Darwin capability.
20882 2021-04-24 Richard Sandiford <richard.sandiford@arm.com>
20884 * doc/sourcebuild.texi: Document no-opts and any-opts target
20887 2021-04-23 YiFei Zhu <zhuyifei1999@gmail.com>
20889 * config/bpf/bpf.h (ASM_OUTPUT_ALIGNED_BSS): Use .type and .lcomm.
20891 2021-04-23 YiFei Zhu <zhuyifei1999@gmail.com>
20893 * config/bpf/bpf.h (FUNCTION_BOUNDARY): Set to 64.
20895 2021-04-23 Uroš Bizjak <ubizjak@gmail.com>
20898 * config/i386/i386-options.c (ix86_option_override_internal):
20899 Error out when -m96bit-long-double is used with 64bit targets.
20900 * config/i386/i386.md (*pushxf_rounded): Remove pattern.
20902 2021-04-23 Martin Liska <mliska@suse.cz>
20904 * lto-wrapper.c: Remove FIXME about usage of
20905 hardware_concurrency. The function is not on par with
20908 2021-04-23 Uroš Bizjak <ubizjak@gmail.com>
20911 * config/i386/sync.md (FILD_ATOMIC/FIST_ATOMIC FP load peephole2):
20912 Copy operand 3 to operand 4. Use sse_reg_operand
20913 as operand 3 predicate.
20914 (FILD_ATOMIC/FIST_ATOMIC FP load peephole2 with mem blockage): Ditto.
20915 (LDX_ATOMIC/STX_ATOMIC FP load peephole2): Ditto.
20916 (LDX_ATOMIC/LDX_ATOMIC FP load peephole2 with mem blockage): Ditto.
20917 (FILD_ATOMIC/FIST_ATOMIC FP store peephole2):
20918 Copy operand 1 to operand 0.
20919 (FILD_ATOMIC/FIST_ATOMIC FP store peephole2 with mem blockage): Ditto.
20920 (LDX_ATOMIC/STX_ATOMIC FP store peephole2): Ditto.
20921 (LDX_ATOMIC/LDX_ATOMIC FP store peephole2 with mem blockage): Ditto.
20923 2021-04-23 Alex Coplan <alex.coplan@arm.com>
20925 PR rtl-optimization/100230
20926 * early-remat.c (early_remat::sort_candidates): Use delete[]
20927 instead of delete for array allocated with new[].
20929 2021-04-23 Richard Biener <rguenther@suse.de>
20931 * genmatch.c (lower_cond): Remove VEC_COND_EXPR special-casing.
20932 (capture_info::capture_info): Likewise.
20933 (capture_info::walk_match): Likewise.
20934 (expr::gen_transform): Likewise.
20935 (dt_simplify::gen_1): Likewise.
20936 * gimple-match-head.c (maybe_resimplify_conditional_op):
20937 Remove VEC_COND_EXPR special-casing.
20938 (gimple_simplify): Likewise.
20939 * gimple.c (gimple_could_trap_p_1): Adjust.
20940 * tree-ssa-pre.c (compute_avail): Allow VEC_COND_EXPR
20941 to participate in PRE.
20943 2021-04-23 Richard Biener <rguenther@suse.de>
20945 * cfganal.c (connect_infinite_loops_to_exit): First call
20946 add_noreturn_fake_exit_edges.
20947 * ipa-sra.c (process_scan_results): Do not call the now redundant
20948 add_noreturn_fake_exit_edges.
20949 * predict.c (tree_estimate_probability): Likewise.
20950 (rebuild_frequencies): Likewise.
20951 * store-motion.c (one_store_motion_pass): Likewise.
20953 2021-04-23 Richard Biener <rguenther@suse.de>
20955 PR tree-optimization/100222
20956 * predict.c (pass_profile::execute): Remove redundant call to
20957 mark_irreducible_loops.
20958 (report_predictor_hitrates): Likewise.
20960 2021-04-23 Richard Biener <rguenther@suse.de>
20962 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
20963 valid_gimple_rhs_p by instead gimplifying to one.
20965 2021-04-23 Richard Biener <rguenther@suse.de>
20967 PR tree-optimization/99971
20968 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences):
20969 Always use TBAA for loads.
20971 2021-04-23 liuhongt <hongtao.liu@intel.com>
20974 * config/i386/i386-options.c (ix86_option_override_internal):
20975 Clear MASK_AVX256_SPLIT_UNALIGNED_LOAD/STORE in x_target_flags
20976 when X86_TUNE_AVX256_UNALIGNED_LOAD/STORE_OPTIMAL is enabled
20977 by target attribute.
20979 2021-04-23 David Edelsohn <dje.gcc@gmail.com>
20981 * config/rs6000/aix71.h (PREFERRED_DEBUGGING_TYPE): Change to
20983 * config/rs6000/aix72.h (PREFERRED_DEBUGGING_TYPE): Same.
20985 2021-04-22 David Edelsohn <dje.gcc@gmail.com>
20987 * config.gcc (powerpc-ibm-aix6.*): Remove.
20988 * config/rs6000/aix61.h: Delete.
20990 2021-04-22 Martin Liska <mliska@suse.cz>
20992 PR testsuite/100159
20993 PR testsuite/100192
20994 * builtins.c (expand_builtin): Fix typos and missing comments.
20995 * dwarf2out.c (gen_subprogram_die): Likewise.
20996 (gen_struct_or_union_type_die): Likewise.
20998 2021-04-22 Uroš Bizjak <ubizjak@gmail.com>
21001 * config/i386/i386-expand.c (ix86_expand_convert_uns_sidf_sse):
21002 Remove the sign with FE_DOWNWARD, where x - x = -0.0.
21004 2021-04-21 Iain Sandoe <iain@sandoe.co.uk>
21006 * config/i386/darwin.h (TARGET_64BIT): Remove definition
21007 based on TARGET_ISA_64BIT.
21008 (TARGET_64BIT_P): Remove definition based on
21009 TARGET_ISA_64BIT_P().
21011 2021-04-21 Martin Liska <mliska@suse.cz>
21014 2021-04-21 Martin Liska <mliska@suse.cz>
21016 * lto-wrapper.c (cpuset_popcount): Remove.
21017 (init_num_threads): Remove and use hardware_concurrency.
21019 2021-04-21 Martin Liska <mliska@suse.cz>
21022 * main.c (main): Call toplev::finalize in CHECKING_P mode.
21023 * ipa-modref.c (ipa_modref_c_finalize): summaries are NULL
21024 when incremental LTO linking happens.
21026 2021-04-21 Martin Liska <mliska@suse.cz>
21028 * lto-wrapper.c (run_gcc): When -flto=jobserver is used, but the
21029 makeserver cannot be detected, then use -flto=N fallback.
21031 2021-04-21 Richard Sandiford <richard.sandiford@arm.com>
21033 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): When cross-compiling,
21034 default to yes for aarch64-linux-gnu.
21035 * configure: Regenerate.
21037 2021-04-21 Martin Liska <mliska@suse.cz>
21039 * lto-wrapper.c (cpuset_popcount): Remove.
21040 (init_num_threads): Remove and use hardware_concurrency.
21042 2021-04-21 Martin Liska <mliska@suse.cz>
21044 * config/i386/i386.c: Remove superfluous || TARGET_MACHO
21045 which remains to be '(... || 0)' and clang complains about it.
21046 * dwarf2out.c (AT_vms_delta): Declare conditionally.
21047 (add_AT_vms_delta): Likewise.
21048 * tree.c (fld_simplified_type): Use rather more common pattern
21049 for disabling of something (#if 0).
21050 (get_tree_code_name): Likewise.
21051 (verify_type_variant): Likewise.
21053 2021-04-21 Martin Liska <mliska@suse.cz>
21055 * config/i386/i386-expand.c (decide_alignment): Use newly named
21056 macro TARGET_CPU_P.
21057 * config/i386/i386.c (ix86_decompose_address): Likewise.
21058 (ix86_address_cost): Likewise.
21059 (ix86_lea_outperforms): Likewise.
21060 (ix86_avoid_lea_for_addr): Likewise.
21061 (ix86_add_stmt_cost): Likewise.
21062 * config/i386/i386.h (TARGET_*): Remove.
21063 (TARGET_CPU_P): New macro.
21064 * config/i386/i386.md: Use newly named macro TARGET_CPU_P.
21065 * config/i386/x86-tune-sched-atom.c (do_reorder_for_imul): Likewise.
21066 (swap_top_of_ready_list): Likewise.
21067 (ix86_atom_sched_reorder): Likewise.
21068 * config/i386/x86-tune-sched-bd.c (ix86_bd_has_dispatch): Likewise.
21069 * config/i386/x86-tune-sched.c (ix86_adjust_cost): Likewise.
21071 2021-04-21 Martin Liska <mliska@suse.cz>
21073 * config/i386/i386-options.c (TARGET_EXPLICIT_NO_SAHF_P):
21075 (SET_TARGET_NO_SAHF): Likewise.
21076 (TARGET_EXPLICIT_PREFETCH_SSE_P): Likewise.
21077 (SET_TARGET_PREFETCH_SSE): Likewise.
21078 (TARGET_EXPLICIT_NO_TUNE_P): Likewise.
21079 (SET_TARGET_NO_TUNE): Likewise.
21080 (TARGET_EXPLICIT_NO_80387_P): Likewise.
21081 (SET_TARGET_NO_80387): Likewise.
21083 * config/i386/i386.h (TARGET_*): Remove.
21084 * opth-gen.awk: Generate new used macros.
21086 2021-04-21 Martin Liska <mliska@suse.cz>
21088 * config/i386/i386.h (PTA_*): Remove.
21089 (enum pta_flag): New.
21090 (DEF_PTA): Generate PTA_* values from i386-isa.def.
21091 * config/i386/i386-isa.def: New file.
21093 2021-04-21 Alex Coplan <alex.coplan@arm.com>
21096 * config/aarch64/aarch64-bti-insert.c (aarch64_bti_j_insn_p): New.
21097 (rest_of_insert_bti): Avoid inserting duplicate bti j insns for
21098 jump table targets.
21100 2021-04-21 H.J. Lu <hjl.tools@gmail.com>
21102 * config.gcc: Install mwaitintrin.h for i[34567]86-*-* and
21103 x86_64-*-* targets.
21104 * common/config/i386/i386-common.c (OPTION_MASK_ISA2_MWAIT_SET):
21106 (OPTION_MASK_ISA2_MWAIT_UNSET): Likewise.
21107 (ix86_handle_option): Handle -mmwait.
21108 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
21109 Replace OPTION_MASK_ISA_SSE3 with OPTION_MASK_ISA2_MWAIT on
21110 __builtin_ia32_monitor and __builtin_ia32_mwait.
21111 * config/i386/i386-options.c (isa2_opts): Add -mmwait.
21112 (ix86_valid_target_attribute_inner_p): Likewise.
21113 (ix86_option_override_internal): Enable mwait/monitor
21114 instructions for -msse3.
21115 * config/i386/i386.h (TARGET_MWAIT): New.
21116 (TARGET_MWAIT_P): Likewise.
21117 * config/i386/i386.opt: Add -mmwait.
21118 * config/i386/mwaitintrin.h: New file.
21119 * config/i386/pmmintrin.h: Include <mwaitintrin.h>.
21120 * config/i386/sse.md (sse3_mwait): Replace TARGET_SSE3 with
21122 (@sse3_monitor_<mode>): Likewise.
21123 * config/i386/x86gprintrin.h: Include <mwaitintrin.h>.
21124 * doc/extend.texi: Document mwait target attribute.
21125 * doc/invoke.texi: Document -mmwait.
21127 2021-04-21 Martin Liska <mliska@suse.cz>
21129 * config/i386/i386-options.c (DEF_ENUM): Remove it.
21130 * config/i386/i386-opts.h (DEF_ENUM): Likewise.
21131 * config/i386/stringop.def (DEF_ENUM): Likewise.
21133 2021-04-21 Martin Liska <mliska@suse.cz>
21135 * tree-cfg.c (gimple_verify_flow_info): Use qD instead
21136 of print_generic_expr.
21138 2021-04-21 Jakub Jelinek <jakub@redhat.com>
21140 PR rtl-optimization/100148
21141 * cprop.c (constprop_register): Use next_nondebug_insn instead of
21144 2021-04-21 Martin Liska <mliska@suse.cz>
21147 * cgraphunit.c (cgraph_node::analyze): Remove duplicate
21148 free_dominance_info calls.
21150 2021-04-21 Richard Biener <rguenther@suse.de>
21152 * gimple-fold.c (maybe_fold_reference): Remove is_lhs
21153 parameter (and assume it to be false).
21154 (fold_gimple_assign): Adjust, remove all callers of
21155 maybe_fold_reference calling it with is_lhs true.
21156 (gimple_fold_call): Likewise.
21157 (fold_stmt_1): Likewise.
21159 2021-04-21 Richard Biener <rguenther@suse.de>
21161 * fold-const.c (pedantic_non_lvalue_loc): Remove.
21162 (fold_binary_loc): Adjust.
21163 (fold_ternary_loc): Likewise.
21165 2021-04-21 Richard Sandiford <richard.sandiford@arm.com>
21167 PR middle-end/100130
21168 * varasm.c (get_block_for_decl): Make sure that any use of the
21169 retain attribute matches the section's retain flag.
21170 (switch_to_section): Check for retain mismatches even when
21171 changing sections, but do not warn if the given decl is the
21172 section's named.decl.
21173 (output_object_block): Pass the first decl in the block (if any)
21174 to switch_to_section.
21176 2021-04-20 H.J. Lu <hjl.tools@gmail.com>
21178 * config/i386/i386-c.c (ix86_target_macros_internal): Define
21179 __CRC32__ for -mcrc32.
21180 * config/i386/i386-options.c (ix86_option_override_internal):
21181 Enable crc32 instruction for -msse4.2.
21182 * config/i386/i386.md (sse4_2_crc32<mode>): Remove TARGET_SSE4_2
21184 (sse4_2_crc32di): Likewise.
21185 * config/i386/ia32intrin.h: Use crc32 target option for CRC32
21188 2021-04-20 Segher Boessenkool <segher@kernel.crashing.org>
21191 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Do not consider
21194 2021-04-20 Martin Liska <mliska@suse.cz>
21196 * doc/invoke.texi: Fix typo.
21197 * params.opt: Likewise.
21199 2021-04-20 Martin Liska <mliska@suse.cz>
21201 * doc/invoke.texi: Document new param.
21203 2021-04-19 Andrew MacLeod <amacleod@redhat.com>
21205 PR tree-optimization/100081
21206 * gimple-range-cache.h (ranger_cache): Inherit from gori_compute
21207 rather than gori_compute_cache.
21208 * gimple-range-gori.cc (is_gimple_logical_p): Move to top of file.
21209 (range_def_chain::m_logical_depth): New member.
21210 (range_def_chain::range_def_chain): Initialize m_logical_depth.
21211 (range_def_chain::get_def_chain): Don't build defchains through more
21212 than LOGICAL_LIMIT logical expressions.
21213 * params.opt (param_ranger_logical_depth): New.
21215 2021-04-19 Richard Earnshaw <rearnsha@arm.com>
21218 * config/arm/arm.c (arm_configure_build_target): Do not strip
21219 extended FPU/SIMD feature bits from the target ISA when -mfpu
21220 is specified (partial revert of r11-8168).
21222 2021-04-19 Thomas Schwinge <thomas@codesourcery.com>
21224 * params.opt (-param=openacc-kernels=): Add.
21225 * omp-oacc-kernels-decompose.cc
21226 (pass_omp_oacc_kernels_decompose::gate): Use it.
21227 * doc/invoke.texi (-fopenacc-kernels=@var{mode}): Move...
21228 (--param): ... here, 'openacc-kernels'.
21230 2021-04-19 Martin Liska <mliska@suse.cz>
21233 * gengtype.c (finish_root_table): Align function arguments
21234 in between declaration and definition.
21236 2021-04-19 Eric Botcazou <ebotcazou@adacore.com>
21238 * config/i386/winnt.c (i386_pe_seh_cold_init): Properly deal with
21239 frames larger than the SEH maximum frame size.
21241 2021-04-18 Segher Boessenkool <segher@kernel.crashing.org>
21243 PR rtl-optimization/99927
21244 * combine.c (distribute_notes) [REG_UNUSED]: If the register already
21245 is dead, just drop it.
21247 2021-04-17 Iain Buclaw <ibuclaw@gdcproject.org>
21250 * config/i386/winnt-d.c (TARGET_D_TEMPLATES_ALWAYS_COMDAT): Define.
21251 * doc/tm.texi: Regenerate.
21252 * doc/tm.texi.in (D language and ABI): Add @hook for
21253 TARGET_D_TEMPLATES_ALWAYS_COMDAT.
21255 2021-04-17 Iain Buclaw <ibuclaw@gdcproject.org>
21257 * config/darwin-d.c (darwin_d_handle_target_object_format): New
21259 (darwin_d_register_target_info): New function.
21260 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
21261 * config/dragonfly-d.c (dragonfly_d_handle_target_object_format): New
21263 (dragonfly_d_register_target_info): New function.
21264 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
21265 * config/freebsd-d.c (freebsd_d_handle_target_object_format): New
21267 (freebsd_d_register_target_info): New function.
21268 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
21269 * config/glibc-d.c (glibc_d_handle_target_object_format): New
21271 (glibc_d_register_target_info): New function.
21272 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
21273 * config/i386/i386-d.c (ix86_d_handle_target_object_format): New
21275 (ix86_d_register_target_info): Add ix86_d_handle_target_object_format
21276 as handler for objectFormat key.
21277 * config/i386/winnt-d.c (winnt_d_handle_target_object_format): New
21279 (winnt_d_register_target_info): New function.
21280 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
21281 * config/netbsd-d.c (netbsd_d_handle_target_object_format): New
21283 (netbsd_d_register_target_info): New function.
21284 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
21285 * config/openbsd-d.c (openbsd_d_handle_target_object_format): New
21287 (openbsd_d_register_target_info): New function.
21288 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
21289 * config/pa/pa-d.c (pa_d_handle_target_object_format): New function.
21290 (pa_d_register_target_info): Add pa_d_handle_target_object_format as
21291 handler for objectFormat key.
21292 * config/rs6000/rs6000-d.c (rs6000_d_handle_target_object_format): New
21294 (rs6000_d_register_target_info): Add
21295 rs6000_d_handle_target_object_format as handler for objectFormat key.
21296 * config/sol2-d.c (solaris_d_handle_target_object_format): New
21298 (solaris_d_register_target_info): New function.
21299 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
21301 2021-04-16 Jakub Jelinek <jakub@redhat.com>
21304 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Change
21305 abi_break argument from bool * to unsigned *, store there the pre-GCC 9
21307 (aarch64_layout_arg, aarch64_gimplify_va_arg_expr): Adjust callers.
21308 (aarch64_function_arg_regno_p): Likewise. Only emit -Wpsabi note if
21309 the old and new alignment after applying MIN/MAX to it is different.
21311 2021-04-16 Tamar Christina <tamar.christina@arm.com>
21314 * config/aarch64/aarch64-sve.md (@aarch64_sve_trn1_conv<mode>): New.
21315 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_trn): Use new
21317 * config/aarch64/iterators.md (UNSPEC_TRN1_CONV): New.
21319 2021-04-16 Bill Schmidt <wschmidt@linux.ibm.com>
21321 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Revise
21322 this section and its subsections.
21324 2021-04-16 Jakub Jelinek <jakub@redhat.com>
21327 * config/aarch64/aarch64.md (*neg_asr_si2_extr, *extrsi5_insn_di): New
21328 define_insn patterns.
21330 2021-04-16 Richard Sandiford <richard.sandiford@arm.com>
21332 PR rtl-optimization/98689
21333 * reg-notes.def (UNTYPED_CALL): New note.
21334 * combine.c (distribute_notes): Handle it.
21335 * emit-rtl.c (try_split): Likewise.
21336 * rtlanal.c (rtx_properties::try_to_add_insn): Likewise. Assume
21337 that calls with the note implicitly set all return value registers.
21338 * builtins.c (expand_builtin_apply): Add a REG_UNTYPED_CALL
21341 2021-04-16 Richard Sandiford <richard.sandiford@arm.com>
21343 PR rtl-optimization/99596
21344 * rtlanal.c (rtx_properties::try_to_add_insn): Don't add global
21345 register accesses for const calls. Assume that pure functions
21346 can only read from global registers. Ignore cases in which
21347 the stack pointer has been marked global.
21349 2021-04-16 Jakub Jelinek <jakub@redhat.com>
21352 * tree-vect-loop.c (vect_transform_loop): Don't remove just
21353 dead scalar .MASK_LOAD calls, but also dead .COND_* calls - replace
21354 them by their last argument.
21356 2021-04-15 Martin Liska <mliska@suse.cz>
21358 * doc/invoke.texi: Other params don't use it, remove it.
21360 2021-04-15 Richard Biener <rguenther@suse.de>
21362 * gimple-builder.h: Add deprecation note.
21364 2021-04-15 Richard Sandiford <richard.sandiford@arm.com>
21367 * attribs.h (restrict_type_identity_attributes_to): Declare.
21368 * attribs.c (restrict_type_identity_attributes_to): New function.
21370 2021-04-15 Richard Sandiford <richard.sandiford@arm.com>
21373 * attribs.h (affects_type_identity_attributes): Declare.
21374 * attribs.c (remove_attributes_matching): New function.
21375 (affects_type_identity_attributes): Likewise.
21377 2021-04-15 Jakub Jelinek <jakub@redhat.com>
21380 * config/aarch64/aarch64.md (*<LOGICAL:optab>_<SHIFT:optab><mode>3):
21381 Add combine splitters for *<LOGICAL:optab>_ashl<mode>3 with
21382 ZERO_EXTEND, SIGN_EXTEND or AND.
21384 2021-04-14 Richard Sandiford <richard.sandiford@arm.com>
21386 PR rtl-optimization/99929
21387 * rtl.h (same_vector_encodings_p): New function.
21388 * cse.c (exp_equiv_p): Check that CONST_VECTORs have the same encoding.
21389 * cselib.c (rtx_equal_for_cselib_1): Likewise.
21390 * jump.c (rtx_renumbered_equal_p): Likewise.
21391 * lra-constraints.c (operands_match_p): Likewise.
21392 * reload.c (operands_match_p): Likewise.
21393 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Likewise.
21395 2021-04-14 Richard Sandiford <richard.sandiford@arm.com>
21397 * print-rtl.c (rtx_writer::print_rtx_operand_codes_E_and_V): Print
21398 more information about variable-length CONST_VECTORs.
21400 2021-04-14 Vladimir N. Makarov <vmakarov@redhat.com>
21402 PR rtl-optimization/100066
21403 * lra-constraints.c (split_reg): Check paradoxical_subreg_p for
21404 ordered modes when choosing splitting mode for hard reg.
21406 2021-04-14 Richard Sandiford <richard.sandiford@arm.com>
21409 * config/aarch64/aarch64.c (aarch64_expand_sve_const_vector_sel):
21411 (aarch64_expand_sve_const_vector): Use it for nelts_per_pattern==2.
21413 2021-04-14 Andreas Krebbel <krebbel@linux.ibm.com>
21415 * config/s390/s390-builtins.def (O_M5, O_M12, ...): Add new macros
21416 for mask operand types.
21417 (s390_vec_permi_s64, s390_vec_permi_b64, s390_vec_permi_u64)
21418 (s390_vec_permi_dbl, s390_vpdi): Use the M5 type for the immediate
21420 (s390_vec_msum_u128, s390_vmslg): Use the M12 type for the
21422 * config/s390/s390.c (s390_const_operand_ok): Check the new
21423 operand types and generate a list of valid values.
21425 2021-04-14 Iain Buclaw <ibuclaw@gdcproject.org>
21427 * doc/tm.texi: Regenerate.
21428 * doc/tm.texi.in (D language and ABI): Add @hook for
21429 TARGET_D_REGISTER_OS_TARGET_INFO.
21431 2021-04-14 Iain Buclaw <ibuclaw@gdcproject.org>
21433 * config/aarch64/aarch64-d.c (aarch64_d_handle_target_float_abi): New
21435 (aarch64_d_register_target_info): New function.
21436 * config/aarch64/aarch64-protos.h (aarch64_d_register_target_info):
21438 * config/aarch64/aarch64.h (TARGET_D_REGISTER_CPU_TARGET_INFO):
21440 * config/arm/arm-d.c (arm_d_handle_target_float_abi): New function.
21441 (arm_d_register_target_info): New function.
21442 * config/arm/arm-protos.h (arm_d_register_target_info): Declare.
21443 * config/arm/arm.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
21444 * config/i386/i386-d.c (ix86_d_handle_target_float_abi): New function.
21445 (ix86_d_register_target_info): New function.
21446 * config/i386/i386-protos.h (ix86_d_register_target_info): Declare.
21447 * config/i386/i386.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
21448 * config/mips/mips-d.c (mips_d_handle_target_float_abi): New function.
21449 (mips_d_register_target_info): New function.
21450 * config/mips/mips-protos.h (mips_d_register_target_info): Declare.
21451 * config/mips/mips.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
21452 * config/pa/pa-d.c (pa_d_handle_target_float_abi): New function.
21453 (pa_d_register_target_info): New function.
21454 * config/pa/pa-protos.h (pa_d_register_target_info): Declare.
21455 * config/pa/pa.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
21456 * config/riscv/riscv-d.c (riscv_d_handle_target_float_abi): New
21458 (riscv_d_register_target_info): New function.
21459 * config/riscv/riscv-protos.h (riscv_d_register_target_info): Declare.
21460 * config/riscv/riscv.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
21461 * config/rs6000/rs6000-d.c (rs6000_d_handle_target_float_abi): New
21463 (rs6000_d_register_target_info): New function.
21464 * config/rs6000/rs6000-protos.h (rs6000_d_register_target_info):
21466 * config/rs6000/rs6000.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
21467 * config/s390/s390-d.c (s390_d_handle_target_float_abi): New function.
21468 (s390_d_register_target_info): New function.
21469 * config/s390/s390-protos.h (s390_d_register_target_info): Declare.
21470 * config/s390/s390.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
21471 * config/sparc/sparc-d.c (sparc_d_handle_target_float_abi): New
21473 (sparc_d_register_target_info): New function.
21474 * config/sparc/sparc-protos.h (sparc_d_register_target_info): Declare.
21475 * config/sparc/sparc.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
21476 * doc/tm.texi: Regenerate.
21477 * doc/tm.texi.in (D language and ABI): Add @hook for
21478 TARGET_D_REGISTER_CPU_TARGET_INFO.
21480 2021-04-14 Iain Buclaw <ibuclaw@gdcproject.org>
21482 * config/i386/i386-d.c (ix86_d_has_stdcall_convention): New function.
21483 * config/i386/i386-protos.h (ix86_d_has_stdcall_convention): Declare.
21484 * config/i386/i386.h (TARGET_D_HAS_STDCALL_CONVENTION): Define.
21485 * doc/tm.texi: Regenerate.
21486 * doc/tm.texi.in (D language and ABI): Add @hook for
21487 TARGET_D_HAS_STDCALL_CONVENTION.
21489 2021-04-14 Richard Biener <rguenther@suse.de>
21491 * tree-cfg.c (verify_gimple_assign_ternary): Verify that
21492 VEC_COND_EXPRs have a gimple_val condition.
21493 * tree-ssa-propagate.c (valid_gimple_rhs_p): VEC_COND_EXPR
21494 can no longer have a GENERIC condition.
21496 2021-04-14 Richard Earnshaw <rearnsha@arm.com>
21499 * config/arm/arm.c (arm_configure_build_target): Strip isa_all_fpbits
21500 from the isa_delta when -mfpu has been used.
21501 (arm_options_perform_arch_sanity_checks): It's the architecture that
21502 lacks an FPU not the processor.
21504 2021-04-13 Richard Biener <rguenther@suse.de>
21506 PR tree-optimization/100053
21507 * tree-ssa-sccvn.c (vn_nary_op_get_predicated_value): Do
21508 not use optimistic dominance queries for backedges to validate
21510 (dominated_by_p_w_unex): Add parameter to ignore executable
21511 state on backedges.
21512 (rpo_elim::eliminate_avail): Adjust.
21514 2021-04-13 Jakub Jelinek <jakub@redhat.com>
21517 * config/aarch64/aarch64.md (*aarch64_bfxil<mode>_extr,
21518 *aarch64_bfxilsi_extrdi): New define_insn patterns.
21520 2021-04-13 Jakub Jelinek <jakub@redhat.com>
21523 * simplify-rtx.c (simplify_immed_subreg): For MODE_COMPOSITE_P
21524 outermode, return NULL if the result doesn't encode back to the
21525 original byte sequence.
21526 (simplify_gen_subreg): Don't create SUBREGs from constants to
21527 MODE_COMPOSITE_P outermode.
21529 2021-04-12 Jakub Jelinek <jakub@redhat.com>
21531 PR rtl-optimization/99905
21532 * combine.c (expand_compound_operation): If pos + len > modewidth,
21533 perform the right shift by pos in inner_mode and then convert to mode,
21534 instead of trying to simplify a shift of rtx with inner_mode by pos
21535 as if it was a shift in mode.
21537 2021-04-12 Jakub Jelinek <jakub@redhat.com>
21540 * combine.c (simplify_and_const_int_1): Don't optimize varop
21541 away if it has side-effects.
21543 2021-04-12 Martin Liska <mliska@suse.cz>
21545 * doc/extend.texi: Escape @smallexample content.
21547 2021-04-12 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
21549 * config/s390/s390.md ("*movdi_31", "*movdi_64"): Add
21550 alternative in order to load a DFP zero.
21552 2021-04-12 Martin Liska <mliska@suse.cz>
21554 * doc/extend.texi: Be more precise in documentation
21555 of symver attribute.
21557 2021-04-12 Martin Liska <mliska@suse.cz>
21560 * gimplify.c (gimplify_expr): Right now, we unpoison all
21561 variables before a goto <dest>. We should not do it if we are
21564 2021-04-12 Cui,Lili <lili.cui@intel.com>
21566 * common/config/i386/cpuinfo.h (get_intel_cpu): Handle
21568 * common/config/i386/i386-common.c (processor_names): Add
21570 (processor_alias_table): Add rocketlake.
21571 * common/config/i386/i386-cpuinfo.h (processor_subtypes): Add
21572 INTEL_COREI7_ROCKETLAKE.
21573 * config.gcc: Add -march=rocketlake.
21574 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
21576 * config/i386/i386-options.c (m_ROCKETLAKE) : Define.
21577 (processor_cost_table): Add rocketlake cost.
21578 * config/i386/i386.h (ix86_size_cost) : Define
21580 (processor_type) : Add PROCESSOR_ROCKETLAKE.
21581 (PTA_ROCKETLAKE): Ditto.
21582 * doc/extend.texi: Add rocketlake.
21583 * doc/invoke.texi: Add rocketlake.
21585 2021-04-12 Cui,Lili <lili.cui@intel.com>
21587 * config/i386/i386.h (PTA_ALDERLAKE): Change alderlake ISA list.
21588 * config/i386/i386-options.c (m_CORE_AVX2): Add m_ALDERLAKE.
21589 * common/config/i386/cpuinfo.h (get_intel_cpu): Add AlderLake model.
21590 * doc/invoke.texi: Change alderlake ISA list.
21592 2021-04-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
21594 PR middle-end/98088
21595 * omp-expand.c (expand_oacc_collapse_init): Update condition in
21598 2021-04-10 H.J. Lu <hjl.tools@gmail.com>
21601 * config/i386/serializeintrin.h (_serialize): Defined as macro.
21603 2021-04-10 Jakub Jelinek <jakub@redhat.com>
21606 * expr.c (expand_expr_addr_expr_1): Test is_global_var rather than
21607 just TREE_STATIC on COMPOUND_LITERAL_EXPR_DECLs.
21609 2021-04-10 Jakub Jelinek <jakub@redhat.com>
21611 PR middle-end/99989
21612 * gimple-ssa-warn-alloca.c
21613 (alloca_type_and_limit::alloca_type_and_limit): Initialize limit to
21614 0 with integer precision unconditionally.
21616 2021-04-10 Jakub Jelinek <jakub@redhat.com>
21618 PR rtl-optimization/98601
21619 * rtlanal.c (rtx_addr_can_trap_p_1): Allow in assert unknown size
21620 not just for BLKmode, but also for VOIDmode. For STRICT_ALIGNMENT
21621 unaligned_mems handle VOIDmode like BLKmode.
21623 2021-04-10 Jan Hubicka <hubicka@ucw.cz>
21626 * tree.c (free_lang_data_in_decl): Do not release body of
21627 declare_variant_alt.
21629 2021-04-09 Richard Sandiford <richard.sandiford@arm.com>
21631 * config/aarch64/aarch64.c (aarch64_option_restore): If the
21632 architecture was specified explicitly and the tuning wasn't,
21633 tune for the architecture rather than the configured default CPU.
21635 2021-04-09 Richard Sandiford <richard.sandiford@arm.com>
21637 * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use X30
21638 as the temporary register.
21640 2021-04-09 Martin Liska <mliska@suse.cz>
21642 * doc/extend.texi: Move non-target attributes on the top level.
21644 2021-04-09 Martin Liska <mliska@suse.cz>
21646 * doc/invoke.texi: Document minimum and maximum value of the
21647 argument for both supported compression algorithms.
21649 2021-04-08 David Edelsohn <dje.gcc@gmail.com>
21651 * config/rs6000/rs6000.c (rs6000_xcoff_select_section): Select
21652 TLS BSS before TLS data.
21653 * config/rs6000/xcoff.h (ASM_OUTPUT_TLS_COMMON): Use .comm.
21655 2021-04-08 Richard Sandiford <richard.sandiford@arm.com>
21657 * doc/sourcebuild.texi (stdint_types_mbig_endian): Document.
21659 2021-04-08 Richard Sandiford <richard.sandiford@arm.com>
21661 * match.pd: Extend vec_cond folds to handle shifts.
21663 2021-04-08 Maciej W. Rozycki <macro@orcam.me.uk>
21665 * config/vax/vax.md: Fix comment for `*bit<mode>' pattern's
21668 2021-04-08 Alex Coplan <alex.coplan@arm.com>
21671 * config/arm/iterators.md (MVE_vecs): New.
21672 (V_elem): Also handle V2DF.
21673 * config/arm/mve.md (*mve_mov<mode>): Rename to ...
21674 (*mve_vdup<mode>): ... this. Remove second alternative since
21675 vec_duplicate of const_int is not canonical RTL, and we don't
21676 want to match symbol_refs.
21677 (*mve_vec_duplicate<mode>): Delete (pattern is redundant).
21679 2021-04-08 Xionghu Luo <luoxhu@linux.ibm.com>
21681 * fold-const.c (fold_single_bit_test): Fix typo.
21682 * print-rtl.c (print_rtx_insn_vec): Call print_rtl_single
21685 2021-04-07 Richard Sandiford <richard.sandiford@arm.com>
21687 PR tree-optimization/97513
21688 * tree-vect-slp.c (vect_add_slp_permutation): New function,
21690 (vectorizable_slp_permutation): ...here. Detect cases in which
21691 all VEC_PERM_EXPRs are guaranteed to have the same stepped
21692 permute vector and only generate one permute vector for that case.
21693 Extend that case to handle variable-length vectors.
21695 2021-04-07 Richard Sandiford <richard.sandiford@arm.com>
21697 PR tree-optimization/99873
21698 * tree-vect-slp.c (vect_slp_prefer_store_lanes_p): New function.
21699 (vect_build_slp_instance): Don't split store groups that could
21700 use IFN_STORE_LANES.
21702 2021-04-07 Jakub Jelinek <jakub@redhat.com>
21705 * varasm.c (output_constant_pool_contents): Don't strip name encoding
21706 from XSTR (desc->sym, 0) or from label before passing those to
21709 2021-04-07 Richard Biener <rguenther@suse.de>
21711 PR tree-optimization/99954
21712 * tree-loop-distribution.c: Include tree-affine.h.
21713 (generate_memcpy_builtin): Try using tree-affine to prove
21715 (loop_distribution::classify_builtin_ldst): Always classify
21718 2021-04-07 Richard Biener <rguenther@suse.de>
21720 PR tree-optimization/99947
21721 * tree-vect-loop.c (vectorizable_induction): Pre-allocate
21722 steps vector to avoid pushing elements from the reallocated
21725 2021-04-07 Richard Biener <rguenther@suse.de>
21727 * tree-ssa-sccvn.h (print_vn_reference_ops): Declare.
21728 * tree-ssa-pre.c (print_pre_expr): Factor out VN reference operand
21730 * tree-ssa-sccvn.c (print_vn_reference_ops): ... into this new
21732 (debug_vn_reference_ops): New.
21734 2021-04-07 Bin Cheng <bin.cheng@linux.alibaba.com>
21736 PR tree-optimization/98736
21737 * tree-loop-distribution.c
21738 * (loop_distribution::bb_top_order_init):
21739 Compute RPO with programing order preserved by calling function
21740 rev_post_order_and_mark_dfs_back_seme.
21742 2021-04-06 Vladimir N. Makarov <vmakarov@redhat.com>
21745 * lra-constraints.c (split_reg): Don't check paradoxical_subreg_p.
21746 * lra-lives.c (clear_sparseset_regnos, regnos_in_sparseset_p): New
21748 (process_bb_lives): Don't update biggest mode of hard reg for
21749 implicit in multi-register group. Use the new functions for
21750 updating dead_set and unused_set by register notes.
21752 2021-04-06 Xianmiao Qu <xianmiao_qu@c-sky.com>
21754 * config/csky/csky_pipeline_ck802.md : Use insn reservation name
21757 2021-04-06 H.J. Lu <hjl.tools@gmail.com>
21759 * config/i386/x86-tune-costs.h (skylake_memcpy): Updated.
21760 (skylake_memset): Likewise.
21761 (skylake_cost): Change CLEAR_RATIO to 17.
21762 * config/i386/x86-tune.def (X86_TUNE_PREFER_KNOWN_REP_MOVSB_STOSB):
21763 Replace m_CANNONLAKE, m_ICELAKE_CLIENT, m_ICELAKE_SERVER,
21764 m_TIGERLAKE and m_SAPPHIRERAPIDS with m_SKYLAKE and m_CORE_AVX512.
21766 2021-04-06 Richard Biener <rguenther@suse.de>
21768 PR tree-optimization/99880
21769 * tree-vect-loop.c (maybe_set_vectorized_backedge_value): Only
21770 set vectorized defs of relevant PHIs.
21772 2021-04-06 Richard Biener <rguenther@suse.de>
21774 PR tree-optimization/99924
21775 * tree-vect-slp.c (vect_bb_partition_graph_r): Do not mark
21776 nodes w/o scalar stmts as visited.
21778 2021-04-06 Alex Coplan <alex.coplan@arm.com>
21781 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Also use base
21782 PCS for [su]fix_optab.
21784 2021-04-03 Iain Sandoe <iain@sandoe.co.uk>
21786 * config/darwin.c (machopic_legitimize_pic_address): Check
21787 that the current pic register is one of the hard reg set
21788 before setting liveness.
21790 2021-04-03 Iain Sandoe <iain@sandoe.co.uk>
21792 * config/darwin.c (machopic_legitimize_pic_address): Fix
21793 whitespace, remove unused code.
21795 2021-04-03 Jakub Jelinek <jakub@redhat.com>
21797 PR tree-optimization/99882
21798 * gimple-ssa-store-merging.c (bswap_view_convert): Handle val with
21801 2021-04-03 Jakub Jelinek <jakub@redhat.com>
21803 PR rtl-optimization/99863
21804 * dse.c (replace_read): Drop regs_live argument. Instead of
21805 regs_live, use store_insn->fixed_regs_live if non-NULL,
21806 otherwise punt if insns sequence clobbers or sets any hard
21809 2021-04-03 Jakub Jelinek <jakub@redhat.com>
21812 * targhooks.h (default_print_patchable_function_entry_1): Declare.
21813 * targhooks.c (default_print_patchable_function_entry_1): New function,
21814 copied from default_print_patchable_function_entry with an added flags
21816 (default_print_patchable_function_entry): Rewritten into a small
21817 wrapper around default_print_patchable_function_entry_1.
21818 * config/rs6000/rs6000.c (TARGET_ASM_PRINT_PATCHABLE_FUNCTION_ENTRY):
21820 (rs6000_print_patchable_function_entry): New function.
21822 2021-04-02 Eric Botcazou <ebotcazou@adacore.com>
21824 * doc/invoke.texi (fdelete-dead-exceptions): Minor tweak.
21826 2021-04-01 Jason Merrill <jason@redhat.com>
21829 * common.opt: Document v15 and v16.
21831 2021-04-01 Richard Biener <rguenther@suse.de>
21833 PR tree-optimization/99863
21834 * gimplify.c (gimplify_init_constructor): Recompute vector
21837 2021-04-01 Jakub Jelinek <jakub@redhat.com>
21839 * doc/extend.texi (symver attribute): Fix up syntax errors
21842 2021-04-01 Jakub Jelinek <jakub@redhat.com>
21844 PR tree-optimization/96573
21845 * gimple-ssa-store-merging.c (init_symbolic_number): Handle
21846 also pointer types.
21848 2021-04-01 Richard Biener <rguenther@suse.de>
21850 PR tree-optimization/99856
21851 * tree-vect-patterns.c (vect_recog_over_widening_pattern): Promote
21852 precision to vector element precision.
21854 2021-04-01 Martin Jambor <mjambor@suse.cz>
21856 PR tree-optimization/97009
21857 * tree-sra.c (access_or_its_child_written): New function.
21858 (propagate_subaccesses_from_rhs): Use it instead of a simple grp_write
21861 2021-03-31 Jan Hubicka <hubicka@ucw.cz>
21864 * cif-code.def (USES_COMDAT_LOCAL): Make CIF_FINAL_NORMAL.
21866 2021-03-31 Pat Haugen <pthaugen@linux.ibm.com>
21869 * config/rs6000/altivec.md (xxspltiw_v4si, xxspltiw_v4sf_inst,
21870 xxspltidp_v2df_inst, xxsplti32dx_v4si_inst, xxsplti32dx_v4sf_inst,
21871 xxblend_<mode>, xxpermx_inst, xxeval): Mark prefixed.
21872 * config/rs6000/mma.md (mma_<vvi4i4i8>, mma_<avvi4i4i8>,
21873 mma_<vvi4i4i2>, mma_<avvi4i4i2>, mma_<vvi4i4>, mma_<avvi4i4>,
21874 mma_<pvi4i2>, mma_<apvi4i2>, mma_<vvi4i4i4>, mma_<avvi4i4i4>):
21876 * config/rs6000/rs6000.c (rs6000_final_prescan_insn): Adjust test.
21877 * config/rs6000/rs6000.md (define_attr "maybe_prefixed"): New.
21878 (define_attr "prefixed"): Update initializer.
21880 2021-03-31 Jakub Jelinek <jakub@redhat.com>
21883 * dwarf2out.c (debug_ranges_dwo_section): New variable.
21884 (DW_RANGES_IDX_SKELETON): Define.
21885 (struct dw_ranges): Add begin_entry and end_entry members.
21886 (DEBUG_DWO_RNGLISTS_SECTION): Define.
21887 (add_ranges_num): Adjust r initializer for addition of *_entry
21889 (add_ranges_by_labels): For -gsplit-dwarf and force_direct,
21890 set idx to DW_RANGES_IDX_SKELETON.
21891 (use_distinct_base_address_for_range): New function.
21892 (index_rnglists): Don't set r->idx if it is equal to
21893 DW_RANGES_IDX_SKELETON. Initialize r->begin_entry and
21894 r->end_entry for -gsplit-dwarf if those will be needed by
21896 (output_rnglists): Add DWO argument. If true, switch to
21897 debug_ranges_dwo_section rather than debug_ranges_section.
21898 Adjust l1/l2 label indexes. Only output the offset table when
21899 dwo is true and don't include in there the skeleton range
21900 entry if present. For -gsplit-dwarf, skip ranges that belong
21901 to the other rnglists section. Change return type from void
21902 to bool and return true if there are any range entries for
21903 the other section. For dwarf_split_debug_info use
21904 DW_RLE_startx_endx, DW_RLE_startx_length and DW_RLE_base_addressx
21905 entries instead of DW_RLE_start_end, DW_RLE_start_length and
21906 DW_RLE_base_address. Use use_distinct_base_address_for_range.
21907 (init_sections_and_labels): Initialize debug_ranges_dwo_section
21908 if -gsplit-dwarf and DWARF >= 5. Adjust ranges_section_label
21909 and range_base_label indexes.
21910 (dwarf2out_finish): Call index_rnglists earlier before finalizing
21911 .debug_addr. Never emit DW_AT_rnglists_base attribute. For
21912 -gsplit-dwarf and DWARF >= 5 call output_rnglists up to twice
21913 with different dwo arguments.
21914 (dwarf2out_c_finalize): Clear debug_ranges_dwo_section.
21916 2021-03-31 Richard Sandiford <richard.sandiford@arm.com>
21918 PR tree-optimization/98268
21919 * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Call
21920 recompute_tree_invariant_for_addr_expr after successfully
21921 folding a TARGET_MEM_REF that occurs inside an ADDR_EXPR.
21923 2021-03-31 Richard Sandiford <richard.sandiford@arm.com>
21925 PR tree-optimization/99726
21926 * tree-data-ref.c (create_intersect_range_checks_index): Bail
21927 out if there is more than one access function SCEV for the loop
21930 2021-03-31 Richard Sandiford <richard.sandiford@arm.com>
21932 PR rtl-optimization/97141
21933 PR rtl-optimization/98726
21934 * emit-rtl.c (valid_for_const_vector_p): Return true for
21936 * rtx-vector-builder.h (rtx_vector_builder::step): Return a
21937 poly_wide_int instead of a wide_int.
21938 (rtx_vector_builder::apply_set): Take a poly_wide_int instead
21940 * rtx-vector-builder.c (rtx_vector_builder::apply_set): Likewise.
21941 * config/aarch64/aarch64.c (aarch64_legitimate_constant_p): Return
21942 false for CONST_VECTORs that cannot be forced to memory.
21943 * config/aarch64/aarch64-simd.md (mov<mode>): If a CONST_VECTOR
21944 is too complex to force to memory, build it up from individual
21947 2021-03-31 Jan Hubicka <jh@suse.cz>
21950 * cgraph.c (cgraph_node::release_body): Fix overactive check.
21952 2021-03-31 Christophe Lyon <christophe.lyon@linaro.org>
21955 * config/arm/vec-common.md (mul<mode>3): Disable on iwMMXT, expect
21958 2021-03-31 H.J. Lu <hjl.tools@gmail.com>
21960 * config/i386/i386-expand.c (expand_set_or_cpymem_via_rep):
21961 For TARGET_PREFER_KNOWN_REP_MOVSB_STOSB, don't convert QImode
21963 (decide_alg): For TARGET_PREFER_KNOWN_REP_MOVSB_STOSB, use
21964 "rep movsb/stosb" only for known sizes.
21965 * config/i386/i386-options.c (processor_cost_table): Use Ice
21966 Lake cost for Cannon Lake, Ice Lake, Tiger Lake, Sapphire
21967 Rapids and Alder Lake.
21968 * config/i386/i386.h (TARGET_PREFER_KNOWN_REP_MOVSB_STOSB): New.
21969 * config/i386/x86-tune-costs.h (icelake_memcpy): New.
21970 (icelake_memset): Likewise.
21971 (icelake_cost): Likewise.
21972 * config/i386/x86-tune.def (X86_TUNE_PREFER_KNOWN_REP_MOVSB_STOSB):
21975 2021-03-31 Richard Sandiford <richard.sandiford@arm.com>
21978 * config/aarch64/aarch64.c
21979 (aarch64_vectorize_preferred_vector_alignment): Query the size
21980 of the provided SVE vector; do not assume that all SVE vectors
21981 have the same size.
21983 2021-03-31 Jan Hubicka <jh@suse.cz>
21986 * cgraph.c (cgraph_node::release_body): Remove all callers and
21988 * cgraphclones.c (cgraph_node::materialize_clone): Do not do it here.
21989 * cgraphunit.c (cgraph_node::expand): And here.
21991 2021-03-31 Martin Liska <mliska@suse.cz>
21993 * ipa-modref.c (analyze_ssa_name_flags): Fix coding style
21994 and one negated condition.
21996 2021-03-31 Jakub Jelinek <jakub@redhat.com>
21997 Richard Sandiford <richard.sandiford@arm.com>
22000 * config/aarch64/aarch64.md (*add<mode>3_poly_1): Swap Uai and Uav
22001 constraints on operands[2] and similarly 0 and rk constraints
22002 on operands[1] corresponding to that.
22004 2021-03-31 Jakub Jelinek <jakub@redhat.com>
22007 * configure.ac (HAVE_LD_BROKEN_PE_DWARF5): New AC_DEFINE if PECOFF
22008 linker doesn't support DWARF sections new in DWARF5.
22009 * config/i386/i386-options.c (ix86_option_override_internal): Default
22010 to dwarf_version 4 if HAVE_LD_BROKEN_PE_DWARF5 for TARGET_PECOFF
22012 * config.in: Regenerated.
22013 * configure: Regenerated.
22015 2021-03-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22018 * config/aarch64/aarch64.c (aarch64_analyze_loop_vinfo): Check for
22019 available issue_info before using it.
22021 2021-03-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22024 * config/aarch64/aarch64.md (sub<mode>3_compare1_imm): Do not allow zero
22027 2021-03-30 Xionghu Luo <luoxhu@linux.ibm.com>
22030 * config/rs6000/altivec.md (altivec_lvsl_reg): Change to ...
22031 (altivec_lvsl_reg_<mode>): ... this.
22032 (altivec_lvsr_reg): Change to ...
22033 (altivec_lvsr_reg_<mode>): ... this.
22034 * config/rs6000/predicates.md (vec_set_index_operand): New.
22035 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
22036 Enable 32bit variable vec_insert for all TARGET_VSX.
22037 * config/rs6000/rs6000.c (rs6000_expand_vector_set_var_p9):
22038 Enable 32bit variable vec_insert for p9 and above.
22039 (rs6000_expand_vector_set_var_p8): Rename to ...
22040 (rs6000_expand_vector_set_var_p7): ... this.
22041 (rs6000_expand_vector_set): Use TARGET_VSX and adjust assert
22043 * config/rs6000/vector.md (vec_set<mode>): Use vec_set_index_operand.
22044 * config/rs6000/vsx.md (xl_len_r): Use gen_altivec_lvsl_reg_di and
22045 gen_altivec_lvsr_reg_di.
22047 2021-03-30 H.J. Lu <hjl.tools@gmail.com>
22050 * config/i386/ia32intrin.h (__rdtsc): Defined as macro.
22051 (__rdtscp): Likewise.
22053 2021-03-30 Tamar Christina <tamar.christina@arm.com>
22055 PR tree-optimization/99825
22056 * tree-vect-slp-patterns.c (vect_check_evenodd_blend):
22057 Reject non-mult 2 lanes.
22059 2021-03-30 Richard Earnshaw <rearnsha@arm.com>
22062 * config/arm/arm.c (arm_file_start): Fix emission of
22063 Tag_ABI_VFP_args attribute.
22065 2021-03-30 Richard Biener <rguenther@suse.de>
22067 PR tree-optimization/99824
22068 * stor-layout.c (set_min_and_max_values_for_integral_type):
22069 Assert the precision is within the bounds of
22070 WIDE_INT_MAX_PRECISION.
22071 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use
22072 the outermost component ref only to lower the access size
22073 and initialize that from the access type.
22075 2021-03-30 Richard Sandiford <richard.sandiford@arm.com>
22078 * config/aarch64/aarch64.md (mov<mode>): Pass multi-instruction
22079 CONST_INTs to aarch64_expand_mov_immediate when called after RA.
22081 2021-03-30 Mihailo Stojanovic <mihailo.stojanovic@typhoon-hil.com>
22083 * config/aarch64/aarch64.md
22084 (<optab>_trunc<fcvt_target><GPI:mode>2): Set the "arch"
22085 attribute to disambiguate between SIMD and FP variants of the
22088 2021-03-29 Jan Hubicka <hubicka@ucw.cz>
22090 * ipa-modref.c (merge_call_lhs_flags): Correct handling of deref.
22091 (analyze_ssa_name_flags): Fix typo in comment.
22093 2021-03-29 Alex Coplan <alex.coplan@arm.com>
22096 * config/aarch64/aarch64-sve-builtins.cc
22097 (function_builder::add_function): Add placeholder_p argument, use
22098 placeholder decls if this is set.
22099 (function_builder::add_unique_function): Instead of conditionally adding
22100 direct overloads, unconditionally add either a direct overload or a
22102 (function_builder::add_overloaded_function): Set placeholder_p if we're
22103 using C++ overloads. Use the obstack for string storage instead
22104 of relying on the tree nodes.
22105 (function_builder::add_overloaded_functions): Don't return early for
22106 m_direct_overloads: we need to add placeholders.
22107 * config/aarch64/aarch64-sve-builtins.h
22108 (function_builder::add_function): Add placeholder_p argument.
22110 2021-03-29 Richard Biener <rguenther@suse.de>
22112 PR tree-optimization/99807
22113 * tree-vect-slp.c (vect_slp_analyze_node_operations_1): Move
22114 assert below VEC_PERM handling.
22116 2021-03-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22119 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): Use
22120 aarch64_simd_or_scalar_imm_zero to match zeroes. Remove pattern
22121 matching const_int 0.
22122 (move_lo_quad_internal_be_<mode>): Likewise.
22123 (move_lo_quad_<mode>): Update for the above.
22124 * config/aarch64/iterators.md (VQ_2E): Delete.
22126 2021-03-29 Jakub Jelinek <jakub@redhat.com>
22128 PR tree-optimization/99777
22129 * fold-const.c (extract_muldiv_1): For conversions, punt on casts from
22130 types other than scalar integral types.
22132 2021-03-28 David Edelsohn <dje.gcc@gmail.com>
22134 * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Do not add
22135 XCOFF TLS reloc decorations.
22137 2021-03-28 Gerald Pfeifer <gerald@pfeifer.com>
22139 * doc/analyzer.texi (Analyzer Internals): Update link to
22140 "A Memory Model for Static Analysis of C Programs".
22142 2021-03-26 David Edelsohn <dje.gcc@gmail.com>
22144 * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Call function.
22145 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align):
22147 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align): New.
22148 (rs6000_special_round_type_align): Recursively check innermost first
22151 2021-03-26 Jakub Jelinek <jakub@redhat.com>
22154 * dwarf2out.h (struct dw_fde_node): Add rule18 member.
22155 * dwarf2cfi.c (dwarf2out_frame_debug_expr): When handling (set hfp sp)
22156 assignment with drap_reg active, queue reg save for hfp with offset 0
22157 and flush queued reg saves. When handling a push with rule18,
22158 defer queueing reg save for hfp and just assert the offset is 0.
22159 (scan_trace): Assert that fde->rule18 is false.
22161 2021-03-26 Vladimir Makarov <vmakarov@redhat.com>
22164 * ira-costs.c (record_reg_classes): Put case with
22165 CT_RELAXED_MEMORY adjacent to one with CT_MEMORY.
22166 * ira.c (ira_setup_alts): Ditto.
22167 * lra-constraints.c (process_alt_operands): Ditto.
22168 * recog.c (asm_operand_ok): Ditto.
22169 * reload.c (find_reloads): Ditto.
22171 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
22173 * config/aarch64/aarch64-protos.h
22174 (cpu_addrcost_table::post_modify_ld3_st3): New member variable.
22175 (cpu_addrcost_table::post_modify_ld4_st4): Likewise.
22176 * config/aarch64/aarch64.c (generic_addrcost_table): Update
22177 accordingly, using the same costs as for post_modify.
22178 (exynosm1_addrcost_table, xgene1_addrcost_table): Likewise.
22179 (thunderx2t99_addrcost_table, thunderx3t110_addrcost_table):
22180 (tsv110_addrcost_table, qdf24xx_addrcost_table): Likewise.
22181 (a64fx_addrcost_table): Likewise.
22182 (neoversev1_addrcost_table): New.
22183 (neoversev1_tunings): Use neoversev1_addrcost_table.
22184 (aarch64_address_cost): Use the new post_modify costs for CImode
22187 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
22189 * config/aarch64/aarch64.opt
22190 (-param=aarch64-loop-vect-issue-rate-niters=): New parameter.
22191 * doc/invoke.texi: Document it.
22192 * config/aarch64/aarch64-protos.h (aarch64_base_vec_issue_info)
22193 (aarch64_scalar_vec_issue_info, aarch64_simd_vec_issue_info)
22194 (aarch64_advsimd_vec_issue_info, aarch64_sve_vec_issue_info)
22195 (aarch64_vec_issue_info): New structures.
22196 (cpu_vector_cost): Write comments above the variables rather
22198 (cpu_vector_cost::issue_info): New member variable.
22199 * config/aarch64/aarch64.c: Include gimple-pretty-print.h
22200 and tree-ssa-loop-niter.h.
22201 (generic_vector_cost, a64fx_vector_cost, qdf24xx_vector_cost)
22202 (thunderx_vector_cost, tsv110_vector_cost, cortexa57_vector_cost)
22203 (exynosm1_vector_cost, xgene1_vector_cost, thunderx2t99_vector_cost)
22204 (thunderx3t110_vector_cost): Initialize issue_info to null.
22205 (neoversev1_scalar_issue_info, neoversev1_advsimd_issue_info)
22206 (neoversev1_sve_issue_info, neoversev1_vec_issue_info): New structures.
22207 (neoversev1_vector_cost): Use them.
22208 (aarch64_vec_op_count, aarch64_sve_op_count): New structures.
22209 (aarch64_vector_costs::saw_sve_only_op): New member variable.
22210 (aarch64_vector_costs::num_vector_iterations): Likewise.
22211 (aarch64_vector_costs::scalar_ops): Likewise.
22212 (aarch64_vector_costs::advsimd_ops): Likewise.
22213 (aarch64_vector_costs::sve_ops): Likewise.
22214 (aarch64_vector_costs::seen_loads): Likewise.
22215 (aarch64_simd_vec_costs_for_flags): New function.
22216 (aarch64_analyze_loop_vinfo): Initialize num_vector_iterations.
22217 Count the number of predicate operations required by SVE WHILE
22219 (aarch64_comparison_type, aarch64_multiply_add_p): New functions.
22220 (aarch64_sve_only_stmt_p, aarch64_in_loop_reduction_latency): Likewise.
22221 (aarch64_count_ops): Likewise.
22222 (aarch64_add_stmt_cost): Record whether see an SVE operation
22223 that cannot currently be implementing using Advanced SIMD.
22224 Record issue information about the scalar, Advanced SIMD
22225 and (where relevant) SVE versions of a loop.
22226 (aarch64_vec_op_count::dump): New function.
22227 (aarch64_sve_op_count::dump): Likewise.
22228 (aarch64_estimate_min_cycles_per_iter): Likewise.
22229 (aarch64_adjust_body_cost): If issue information is available,
22230 try to compare the issue rates of the various loop implementations
22231 and increase or decrease the vector body cost accordingly.
22233 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
22235 * config/aarch64/aarch64.c (aarch64_detect_vector_stmt_subtype):
22236 Assume a zero cost for induction phis.
22238 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
22240 * config/aarch64/aarch64.c (aarch64_embedded_comparison_type): New
22242 (aarch64_adjust_stmt_cost): Add the costs of embedded scalar and
22243 vector comparisons.
22245 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
22247 * config/aarch64/aarch64.c (aarch64_detect_scalar_stmt_subtype):
22249 (aarch64_add_stmt_cost): Call it.
22251 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
22253 * config/aarch64/aarch64-tuning-flags.def (matched_vector_throughput):
22254 New tuning parameter.
22255 * config/aarch64/aarch64.c (neoversev1_tunings): Use it.
22256 (aarch64_estimated_sve_vq): New function.
22257 (aarch64_vector_costs::analyzed_vinfo): New member variable.
22258 (aarch64_vector_costs::is_loop): Likewise.
22259 (aarch64_vector_costs::unrolled_advsimd_niters): Likewise.
22260 (aarch64_vector_costs::unrolled_advsimd_stmts): Likewise.
22261 (aarch64_record_potential_advsimd_unrolling): New function.
22262 (aarch64_analyze_loop_vinfo, aarch64_analyze_bb_vinfo): Likewise.
22263 (aarch64_add_stmt_cost): Call aarch64_analyze_loop_vinfo or
22264 aarch64_analyze_bb_vinfo on the first use of a costs structure.
22265 Detect whether we're vectorizing a loop for SVE that might be
22266 completely unrolled if it used Advanced SIMD instead.
22267 (aarch64_adjust_body_cost_for_latency): New function.
22268 (aarch64_finish_cost): Call it.
22270 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
22272 * config/aarch64/aarch64.c (aarch64_vector_costs): New structure.
22273 (aarch64_init_cost): New function.
22274 (aarch64_add_stmt_cost): Use aarch64_vector_costs instead of
22275 the default unsigned[3].
22276 (aarch64_finish_cost, aarch64_destroy_cost_data): New functions.
22277 (TARGET_VECTORIZE_INIT_COST): Override.
22278 (TARGET_VECTORIZE_FINISH_COST): Likewise.
22279 (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
22281 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
22283 * config/aarch64/aarch64.c (neoversev1_advsimd_vector_cost)
22284 (neoversev1_sve_vector_cost): New cost structures.
22285 (neoversev1_vector_cost): Likewise.
22286 (neoversev1_tunings): Use them. Enable use_new_vector_costs.
22288 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
22290 * config/aarch64/aarch64-protos.h
22291 (sve_vec_cost::scatter_store_elt_cost): New member variable.
22292 * config/aarch64/aarch64.c (generic_sve_vector_cost): Update
22293 accordingly, taking the cost from the cost of a scalar_store.
22294 (a64fx_sve_vector_cost): Likewise.
22295 (aarch64_detect_vector_stmt_subtype): Detect scatter stores.
22297 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
22299 * config/aarch64/aarch64-protos.h
22300 (simd_vec_cost::store_elt_extra_cost): New member variable.
22301 * config/aarch64/aarch64.c (generic_advsimd_vector_cost): Update
22302 accordingly, using the vec_to_scalar cost for the new field.
22303 (generic_sve_vector_cost, a64fx_advsimd_vector_cost): Likewise.
22304 (a64fx_sve_vector_cost, qdf24xx_advsimd_vector_cost): Likewise.
22305 (thunderx_advsimd_vector_cost, tsv110_advsimd_vector_cost): Likewise.
22306 (cortexa57_advsimd_vector_cost, exynosm1_advsimd_vector_cost)
22307 (xgene1_advsimd_vector_cost, thunderx2t99_advsimd_vector_cost)
22308 (thunderx3t110_advsimd_vector_cost): Likewise.
22309 (aarch64_detect_vector_stmt_subtype): Detect single-element stores.
22311 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
22313 * config/aarch64/aarch64-protos.h (simd_vec_cost::ld2_st2_permute_cost)
22314 (simd_vec_cost::ld3_st3_permute_cost): New member variables.
22315 (simd_vec_cost::ld4_st4_permute_cost): Likewise.
22316 * config/aarch64/aarch64.c (generic_advsimd_vector_cost): Update
22317 accordingly, using zero for the new costs.
22318 (generic_sve_vector_cost, a64fx_advsimd_vector_cost): Likewise.
22319 (a64fx_sve_vector_cost, qdf24xx_advsimd_vector_cost): Likewise.
22320 (thunderx_advsimd_vector_cost, tsv110_advsimd_vector_cost): Likewise.
22321 (cortexa57_advsimd_vector_cost, exynosm1_advsimd_vector_cost)
22322 (xgene1_advsimd_vector_cost, thunderx2t99_advsimd_vector_cost)
22323 (thunderx3t110_advsimd_vector_cost): Likewise.
22324 (aarch64_ld234_st234_vectors): New function.
22325 (aarch64_adjust_stmt_cost): Likewise.
22326 (aarch64_add_stmt_cost): Call aarch64_adjust_stmt_cost if using
22327 the new vector costs.
22329 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
22331 * config/aarch64/aarch64-protos.h (sve_vec_cost): Turn into a
22332 derived class of simd_vec_cost. Add information about CLAST[AB]
22333 and FADDA instructions.
22334 * config/aarch64/aarch64.c (generic_sve_vector_cost): Update
22335 accordingly, using the vec_to_scalar costs for the new fields.
22336 (a64fx_sve_vector_cost): Likewise.
22337 (aarch64_reduc_type): New function.
22338 (aarch64_sve_in_loop_reduction_latency): Likewise.
22339 (aarch64_detect_vector_stmt_subtype): Take a vinfo parameter.
22340 Use aarch64_sve_in_loop_reduction_latency to handle SVE reductions
22341 that occur in the loop body.
22342 (aarch64_add_stmt_cost): Update call accordingly.
22344 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
22346 * config/aarch64/aarch64-tuning-flags.def (use_new_vector_costs):
22348 * config/aarch64/aarch64-protos.h (simd_vec_cost): Put comments
22349 above the fields rather than to the right.
22350 (simd_vec_cost::reduc_i8_cost): New member variable.
22351 (simd_vec_cost::reduc_i16_cost): Likewise.
22352 (simd_vec_cost::reduc_i32_cost): Likewise.
22353 (simd_vec_cost::reduc_i64_cost): Likewise.
22354 (simd_vec_cost::reduc_f16_cost): Likewise.
22355 (simd_vec_cost::reduc_f32_cost): Likewise.
22356 (simd_vec_cost::reduc_f64_cost): Likewise.
22357 * config/aarch64/aarch64.c (generic_advsimd_vector_cost): Update
22358 accordingly, using the vec_to_scalar_cost for the new fields.
22359 (generic_sve_vector_cost, a64fx_advsimd_vector_cost): Likewise.
22360 (a64fx_sve_vector_cost, qdf24xx_advsimd_vector_cost): Likewise.
22361 (thunderx_advsimd_vector_cost, tsv110_advsimd_vector_cost): Likewise.
22362 (cortexa57_advsimd_vector_cost, exynosm1_advsimd_vector_cost)
22363 (xgene1_advsimd_vector_cost, thunderx2t99_advsimd_vector_cost)
22364 (thunderx3t110_advsimd_vector_cost): Likewise.
22365 (aarch64_use_new_vector_costs_p): New function.
22366 (aarch64_simd_vec_costs): New function, split out from...
22367 (aarch64_builtin_vectorization_cost): ...here.
22368 (aarch64_is_reduction): New function.
22369 (aarch64_detect_vector_stmt_subtype): Likewise.
22370 (aarch64_add_stmt_cost): Call aarch64_detect_vector_stmt_subtype if
22371 using the new vector costs.
22373 2021-03-26 Iain Buclaw <ibuclaw@gdcproject.org>
22376 * tree-emutls.c (get_emutls_init_templ_addr): Mark initializer of weak
22377 TLS declarations as public.
22379 2021-03-26 Iain Buclaw <ibuclaw@gdcproject.org>
22381 * config/aarch64/aarch64-d.c (IN_TARGET_CODE): Define.
22382 * config/arm/arm-d.c (IN_TARGET_CODE): Likewise.
22383 * config/i386/i386-d.c (IN_TARGET_CODE): Likewise.
22384 * config/mips/mips-d.c (IN_TARGET_CODE): Likewise.
22385 * config/pa/pa-d.c (IN_TARGET_CODE): Likewise.
22386 * config/riscv/riscv-d.c (IN_TARGET_CODE): Likewise.
22387 * config/rs6000/rs6000-d.c (IN_TARGET_CODE): Likewise.
22388 * config/s390/s390-d.c (IN_TARGET_CODE): Likewise.
22389 * config/sparc/sparc-d.c (IN_TARGET_CODE): Likewise.
22391 2021-03-26 Iain Buclaw <ibuclaw@gdcproject.org>
22394 * config.gcc (*-*-cygwin*): Add winnt-d.o
22395 (*-*-mingw*): Likewise.
22396 * config/i386/cygwin.h (EXTRA_TARGET_D_OS_VERSIONS): New macro.
22397 * config/i386/mingw32.h (EXTRA_TARGET_D_OS_VERSIONS): Likewise.
22398 * config/i386/t-cygming: Add winnt-d.o.
22399 * config/i386/winnt-d.c: New file.
22401 2021-03-26 Iain Buclaw <ibuclaw@gdcproject.org>
22403 * config/freebsd-d.c: Include memmodel.h.
22405 2021-03-26 Iain Buclaw <ibuclaw@gdcproject.org>
22408 * config.gcc (*-*-openbsd*): Add openbsd-d.o.
22409 * config/t-openbsd: Add openbsd-d.o.
22410 * config/openbsd-d.c: New file.
22412 2021-03-25 Stam Markianos-Wright <stam.markianos-wright@arm.com>
22414 PR tree-optimization/96974
22415 * tree-vect-stmts.c (vect_get_vector_types_for_stmt): Replace assert
22416 with graceful exit.
22418 2021-03-25 H.J. Lu <hjl.tools@gmail.com>
22421 2021-03-25 H.J. Lu <hjl.tools@gmail.com>
22425 * config/i386/i386.c (ix86_can_inline_p): Don't check ISA for
22426 always_inline in system headers.
22428 2021-03-25 Kewen Lin <linkw@linux.ibm.com>
22430 * tree-vect-loop.c (vect_model_reduction_cost): Init inside_cost.
22432 2021-03-25 Jakub Jelinek <jakub@redhat.com>
22435 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF_SAME_FIELD.
22436 * fold-const.c (operand_compare::operand_equal_p): Don't compare
22437 field offsets if OEP_ADDRESS_OF_SAME_FIELD.
22439 2021-03-25 H.J. Lu <hjl.tools@gmail.com>
22443 * config/i386/i386.c (ix86_can_inline_p): Don't check ISA for
22444 always_inline in system headers.
22446 2021-03-25 Richard Biener <rguenther@suse.de>
22448 PR tree-optimization/99746
22449 * tree-vect-slp-patterns.c (complex_pattern::build): Do not mark
22450 the scalar stmt as patterned. Instead set up required things
22453 2021-03-25 Xionghu Luo <luoxhu@linux.ibm.com>
22455 * config/rs6000/rs6000.c (power8_costs): Change l2 cache
22458 2021-03-24 Martin Liska <mliska@suse.cz>
22461 * common/config/i386/i386-common.c (ARRAY_SIZE): Fix off-by-one
22463 * config/i386/i386-options.c (ix86_option_override_internal):
22464 Add run-time assert.
22466 2021-03-24 Martin Jambor <mjambor@suse.cz>
22469 * ipa-cp.c (initialize_node_lattices): Mark as bottom all
22470 parameters with unknown type.
22471 (ipacp_value_safe_for_type): New function.
22472 (propagate_vals_across_arith_jfunc): Verify that the constant type
22473 can be used for a type of the formal parameter.
22474 (propagate_vals_across_ancestor): Likewise.
22475 (propagate_scalar_across_jump_function): Likewise. Pass the type
22476 also to propagate_vals_across_ancestor.
22478 2021-03-24 Christophe Lyon <christophe.lyon@linaro.org>
22481 * config/arm/mve.md (movmisalign<mode>_mve_store): Use Ux
22483 (movmisalign<mode>_mve_load): Likewise.
22485 2021-03-24 Jakub Jelinek <jakub@redhat.com>
22488 * config/arm/vec-common.md (one_cmpl<mode>2, neg<mode>2,
22489 movmisalign<mode>): Disable expanders for TARGET_REALLY_IWMMXT.
22491 2021-03-24 Alexandre Oliva <oliva@adacore.com>
22493 * doc/sourcebuild.texi (sysconf): New effective target.
22495 2021-03-24 Alexandre Oliva <oliva@adacore.com>
22497 * config/i386/predicates.md (reg_or_const_vec_operand): New.
22498 * config/i386/sse.md (ssse3_pshufbv8qi3): Add an expander for
22499 the now *-prefixed insn_and_split, turn the splitter const vec
22500 into an input for the insn, making it an ignored immediate for
22501 non-split cases, and loaded into the scratch register
22504 2021-03-23 Vladimir N. Makarov <vmakarov@redhat.com>
22507 * config/aarch64/constraints.md (Utq, UOb, UOh, UOw, UOd, UOty):
22508 Use define_relaxed_memory_constraint for them.
22510 2021-03-23 Iain Sandoe <iain@sandoe.co.uk>
22513 * config/host-darwin.c (darwin_gt_pch_use_address): Add a
22514 colon to the diagnostic message.
22516 2021-03-23 Ilya Leoshkevich <iii@linux.ibm.com>
22518 * fwprop.c (fwprop_propagation::fwprop_propagation): Look at
22520 (try_fwprop_subst_note): Use set_info instead of insn_info.
22521 (try_fwprop_subst_pattern): Likewise.
22522 (try_fwprop_subst_notes): Likewise.
22523 (try_fwprop_subst): Likewise.
22524 (forward_propagate_subreg): Likewise.
22525 (forward_propagate_and_simplify): Likewise.
22526 (forward_propagate_into): Likewise.
22527 * rtl-ssa/accesses.h (set_info::single_nondebug_use) New
22529 (set_info::single_nondebug_insn_use): Likewise.
22530 (set_info::single_phi_use): Likewise.
22531 * rtl-ssa/member-fns.inl (set_info::single_nondebug_use) New
22533 (set_info::single_nondebug_insn_use): Likewise.
22534 (set_info::single_phi_use): Likewise.
22536 2021-03-23 Christophe Lyon <christophe.lyon@linaro.org>
22538 * doc/sourcebuild.texi (arm_dsp_ok, arm_dsp): Document.
22540 2021-03-23 Jakub Jelinek <jakub@redhat.com>
22543 * config/aarch64/aarch64.c (aarch64_add_offset): Tell
22544 expand_mult to perform an unsigned rather than a signed
22547 2021-03-23 H.J. Lu <hjl.tools@gmail.com>
22550 * config/i386/cpuid.h (__cpuid): Add __volatile__.
22551 (__cpuid_count): Likewise.
22553 2021-03-23 Richard Biener <rguenther@suse.de>
22555 PR tree-optimization/99721
22556 * tree-vect-slp.c (vect_slp_analyze_node_operations):
22557 Make sure we can schedule the node.
22559 2021-03-23 Marcus Comstedt <marcus@mc.pp.se>
22561 * config/riscv/riscv.c (riscv_subword): Take endianness into
22562 account when calculating the byte offset.
22564 2021-03-23 Marcus Comstedt <marcus@mc.pp.se>
22566 * config/riscv/predicates.md (subreg_lowpart_operator): New predicate
22567 * config/riscv/riscv.md (*addsi3_extended2, *subsi3_extended2)
22568 (*negsi2_extended2, *mulsi3_extended2, *<optab>si3_mask)
22569 (*<optab>si3_mask_1, *<optab>di3_mask, *<optab>di3_mask_1)
22570 (*<optab>si3_extend_mask, *<optab>si3_extend_mask_1): Use
22571 new predicate "subreg_lowpart_operator"
22573 2021-03-23 Marcus Comstedt <marcus@mc.pp.se>
22575 * config/riscv/riscv.c (riscv_swap_instruction): New function
22576 to byteswap an SImode rtx containing an instruction.
22577 (riscv_trampoline_init): Byteswap the generated instructions
22580 2021-03-23 Marcus Comstedt <marcus@mc.pp.se>
22582 * common/config/riscv/riscv-common.c
22583 (TARGET_DEFAULT_TARGET_FLAGS): Set default endianness.
22584 * config.gcc (riscv32be-*, riscv64be-*): Set
22585 TARGET_BIG_ENDIAN_DEFAULT to 1.
22586 * config/riscv/elf.h (LINK_SPEC): Change -melf* value
22587 depending on default endianness.
22588 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
22589 * config/riscv/linux.h (LINK_SPEC): Likewise.
22590 * config/riscv/riscv.c (TARGET_DEFAULT_TARGET_FLAGS): Set
22591 default endianness.
22592 * config/riscv/riscv.h (DEFAULT_ENDIAN_SPEC): New macro.
22594 2021-03-23 Marcus Comstedt <marcus@mc.pp.se>
22596 * config/riscv/elf.h (LINK_SPEC): Pass linker endianness flag.
22597 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
22598 * config/riscv/linux.h (LINK_SPEC): Likewise.
22599 * config/riscv/riscv.h (ASM_SPEC): Pass -mbig-endian and
22601 (BYTES_BIG_ENDIAN): Handle big endian.
22602 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
22603 * config/riscv/riscv.opt (-mbig-endian, -mlittle-endian): New
22605 * doc/invoke.texi (-mbig-endian, -mlittle-endian): Document.
22607 2021-03-23 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
22609 * regcprop.c (find_oldest_value_reg): Ask target whether
22610 different mode is fine for replacement register.
22612 2021-03-23 Aldy Hernandez <aldyh@redhat.com>
22614 PR tree-optimization/99296
22615 * value-range.cc (irange::irange_set_1bit_anti_range): New.
22616 (irange::irange_set_anti_range): Call irange_set_1bit_anti_range
22617 * value-range.h (irange::irange_set_1bit_anti_range): New.
22619 2021-03-22 Vladimir N. Makarov <vmakarov@redhat.com>
22622 * config/aarch64/constraints.md (UtQ): Use
22623 define_relaxed_memory_constraint for it.
22624 * doc/md.texi (define_relaxed_memory_constraint): Describe it.
22625 * genoutput.c (main): Process DEFINE_RELAXED_MEMORY_CONSTRAINT.
22626 * genpreds.c (constraint_data): Add bitfield is_relaxed_memory.
22627 (have_relaxed_memory_constraints): New static var.
22628 (relaxed_memory_start, relaxed_memory_end): Ditto.
22629 (add_constraint): Add arg is_relaxed_memory. Check name for
22630 relaxed memory. Set up is_relaxed_memory in constraint_data and
22631 have_relaxed_memory_constraints. Adjust calls.
22632 (choose_enum_order): Process relaxed memory.
22633 (write_tm_preds_h): Ditto.
22634 (main): Process DEFINE_RELAXED_MEMORY_CONSTRAINT.
22635 * gensupport.c (process_rtx): Process DEFINE_RELAXED_MEMORY_CONSTRAINT.
22636 * ira-costs.c (record_reg_classes): Process CT_RELAXED_MEMORY.
22637 * ira-lives.c (single_reg_class): Use
22638 insn_extra_relaxed_memory_constraint.
22639 * ira.c (ira_setup_alts): CT_RELAXED_MEMORY.
22640 * lra-constraints.c (valid_address_p): Use
22641 insn_extra_relaxed_memory_constraint instead of other memory
22643 (process_alt_operands): Process CT_RELAXED_MEMORY.
22644 (curr_insn_transform): Use insn_extra_relaxed_memory_constraint.
22645 * recog.c (asm_operand_ok, preprocess_constraints): Process
22647 * reload.c (find_reloads): Ditto.
22648 * rtl.def (DEFINE_RELAXED_MEMORY_CONSTRAINT): New.
22649 * stmt.c (parse_input_constraint): Use
22650 insn_extra_relaxed_memory_constraint.
22652 2021-03-22 Segher Boessenkool <segher@kernel.crashing.org>
22655 * ubsan.c (ubsan_instrument_float_cast): Don't test for unordered if
22658 2021-03-22 Alex Coplan <alex.coplan@arm.com>
22661 * config/arm/arm-protos.h (neon_make_constant): Add generate
22662 argument to guard emitting insns, default to true.
22663 * config/arm/arm.c (arm_legitimate_constant_p_1): Reject
22664 CONST_VECTORs which neon_make_constant can't handle.
22665 (neon_vdup_constant): Add generate argument, avoid emitting
22666 insns if it's not set.
22667 (neon_make_constant): Plumb new generate argument through.
22668 * config/arm/constraints.md (Ui): New. Use it...
22669 * config/arm/mve.md (*mve_mov<mode>): ... here.
22670 * config/arm/vec-common.md (movv8hf): Use neon_make_constant to
22671 synthesize constants.
22673 2021-03-22 Richard Biener <rguenther@suse.de>
22675 * debug.h: Add deprecation warning.
22677 2021-03-22 Richard Biener <rguenther@suse.de>
22679 PR tree-optimization/99694
22680 * tree-ssa-sccvn.c (visit_phi): Ignore edges with the
22683 2021-03-22 Kito Cheng <kito.cheng@sifive.com>
22686 * config/riscv/riscv.c (riscv_expand_block_move): Get RTL value
22687 after type checking.
22689 2021-03-22 Jakub Jelinek <jakub@redhat.com>
22693 * dwarf2out.c (get_full_len): Use get_precision rather than
22695 (add_const_value_attribute): Make sure add_AT_wide argument has
22696 precision prec rather than some very wide one.
22698 2021-03-22 Kewen Lin <linkw@linux.ibm.com>
22700 * config/rs6000/rs6000.md (*rotldi3_insert_sf,
22701 *mov<SFDF:mode><SFDF2:mode>cc_p9, floatsi<mode>2_lfiwax,
22702 floatsi<mode>2_lfiwax_mem, floatunssi<mode>2_lfiwzx,
22703 floatunssi<mode>2_lfiwzx_mem, *floatsidf2_internal,
22704 *floatunssidf2_internal, fix_trunc<mode>si2_stfiwx,
22705 fix_trunc<mode>si2_internal, fixuns_trunc<mode>si2_stfiwx,
22706 *round32<mode>2_fprs, *roundu32<mode>2_fprs,
22707 *fix_trunc<mode>si2_internal): Fix empty split condition.
22708 * config/rs6000/vsx.md (*vsx_le_undo_permute_<mode>,
22709 vsx_reduc_<VEC_reduc_name>_v2df, vsx_reduc_<VEC_reduc_name>_v4sf,
22710 *vsx_reduc_<VEC_reduc_name>_v2df_scalar,
22711 *vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Likewise.
22713 2021-03-22 Xionghu Luo <luoxhu@linux.ibm.com>
22716 * config/rs6000/rs6000.c (rs6000_expand_vector_set_var_p9):
22717 Convert idx to DImode.
22718 (rs6000_expand_vector_set_var_p8): Likewise.
22720 2021-03-21 Jakub Jelinek <jakub@redhat.com>
22723 * dwarf2out.c (insert_float): Change return type from void to
22724 unsigned, handle GET_MODE_SIZE (mode) == 2 and return element size.
22725 (mem_loc_descriptor, loc_descriptor, add_const_value_attribute):
22728 2021-03-20 H.J. Lu <hjl.tools@gmail.com>
22731 * config/i386/i386.c (construct_container): Check cfun != NULL
22732 before accessing silent_p.
22734 2021-03-20 Ahamed Husni <ahamedhusni73@gmail.com>
22736 * asan.c: Fix typos in comments.
22738 2021-03-20 Vladimir N. Makarov <vmakarov@redhat.com>
22740 PR rtl-optimization/99680
22741 * lra-constraints.c (skip_contraint_modifiers): Rename to skip_constraint_modifiers.
22742 (process_address_1): Check empty constraint before using
22745 2021-03-19 Pat Haugen <pthaugen@linux.ibm.com>
22747 * config/rs6000/rs6000.c (power10_cost): New.
22748 (rs6000_option_override_internal): Set Power10 costs.
22749 (rs6000_issue_rate): Set Power10 issue rate.
22750 * config/rs6000/power10.md: Rewrite for Power10.
22752 2021-03-19 Vladimir N. Makarov <vmakarov@redhat.com>
22755 * lra-constraints.c (process_address_1): Don't use unknown
22756 constraint for address constraint.
22758 2021-03-19 Iain Sandoe <iain@sandoe.co.uk>
22761 * config.gcc (powerpc-*-darwin8): Delete the reference to
22762 the now removed darwin8.h.
22764 2021-03-19 Olivier Hainque <hainque@adacore.com>
22767 * config/vxworksae.h (VX_CPU_PREFIX): Define.
22769 2021-03-19 John David Anglin <danglin@gcc.gnu.org>
22771 * config/pa/pa.c (import_milli): Use memcpy instead of strncpy.
22773 2021-03-19 Tamar Christina <tamar.christina@arm.com>
22775 PR tree-optimization/99656
22776 * tree-vect-slp-patterns.c (linear_loads_p,
22777 complex_add_pattern::matches, is_eq_or_top,
22778 vect_validate_multiplication, complex_mul_pattern::matches,
22779 complex_fms_pattern::matches): Remove complex_perm_kinds_t.
22780 * tree-vectorizer.h: (complex_load_perm_t): Removed.
22781 (slp_tree_to_load_perm_map_t): Use complex_perm_kinds_t instead of
22782 complex_load_perm_t.
22784 2021-03-19 H.J. Lu <hjl.tools@gmail.com>
22787 * config/i386/i386-options.c (ix86_init_machine_status): Set
22789 * config/i386/i386.c (init_cumulative_args): Set silent_p to
22791 (construct_container): Return early for return and argument
22792 errors if silent_p is true.
22793 * config/i386/i386.h (machine_function): Add silent_p.
22795 2021-03-19 Jakub Jelinek <jakub@redhat.com>
22798 * config/arm/constraints.md (Ds): New constraint.
22799 * config/arm/vec-common.md (mve_vshlq_<supf><mode>): Use w,Ds
22800 constraint instead of w,Dm.
22802 2021-03-19 Andrew Stubbs <ams@codesourcery.com>
22804 * config/gcn/gcn.c (gcn_parse_amdgpu_hsa_kernel_attribute): Fix quotes
22807 2021-03-19 Eric Botcazou <ebotcazou@adacore.com>
22809 PR middle-end/99641
22810 * fold-const.c (native_encode_initializer) <CONSTRUCTOR>: For an
22811 array type, do the computation of the current position in sizetype.
22813 2021-03-18 Vladimir N. Makarov <vmakarov@redhat.com>
22816 * lra-constraints.c (process_address_1): Use lookup_constraint
22817 only for a single constraint.
22819 2021-03-18 Martin Sebor <msebor@redhat.com>
22821 PR middle-end/99502
22822 * gimple-array-bounds.cc (inbounds_vbase_memaccess_p): Rename...
22823 (inbounds_memaccess_p): ...to this. Check the ending offset of
22824 the accessed member.
22826 2021-03-18 Andrew Stubbs <ams@codesourcery.com>
22828 * config/gcn/gcn.c (gcn_parse_amdgpu_hsa_kernel_attribute): Add %< and
22829 %> quote markers to error messages.
22830 (gcn_goacc_validate_dims): Likewise.
22831 (gcn_conditional_register_usage): Remove exclaimation mark from error
22833 (gcn_vectorize_vec_perm_const): Ensure perm is fully uninitialized.
22835 2021-03-18 Jan Hubicka <hubicka@ucw.cz>
22837 * config/i386/x86-tune-costs.h (struct processor_costs): Fix costs of
22840 2021-03-18 Sinan Lin <sinan@isrc.iscas.ac.cn>
22841 Kito Cheng <kito.cheng@sifive.com>
22843 * config/riscv/riscv.c (riscv_block_move_straight): Change type
22844 to unsigned HOST_WIDE_INT for parameter and local variable with
22845 HOST_WIDE_INT type.
22846 (riscv_adjust_block_mem): Ditto.
22847 (riscv_block_move_loop): Ditto.
22848 (riscv_expand_block_move): Ditto.
22850 2021-03-18 Nick Clifton <nickc@redhat.com>
22852 * config/v850/v850.c (construct_restore_jr): Increase static
22854 (construct_save_jarl): Likewise.
22855 * config/v850/v850.h (DWARF2_DEBUGGING_INFO): Define.
22857 2021-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22859 * config/aarch64/aarch64.c (aarch64_adjust_generic_arch_tuning): Define.
22860 (aarch64_override_options_internal): Use it.
22861 (generic_tunings): Add AARCH64_EXTRA_TUNE_CSE_SVE_VL_CONSTANTS to
22864 2021-03-17 Sandra Loosemore <sandra@codesourcery.com>
22866 * config/nios2/nios2.c (nios2_custom_check_insns): Clean up
22867 error message format issues.
22868 (nios2_option_override): Likewise.
22869 (nios2_expand_fpu_builtin): Likewise.
22870 (nios2_init_custom_builtins): Adjust to avoid bogus strncpy
22871 truncation warning.
22872 (nios2_expand_custom_builtin): More error message format fixes.
22873 (nios2_expand_rdwrctl_builtin): Likewise.
22874 (nios2_expand_rdprs_builtin): Likewise.
22875 (nios2_expand_eni_builtin): Likewise.
22876 (nios2_expand_builtin): Likewise.
22877 (nios2_register_custom_code): Likewise.
22878 (nios2_valid_target_attribute_rec): Likewise.
22879 (nios2_add_insn_asm): Fix uninitialized variable warning.
22881 2021-03-17 Jan Hubicka <jh@suse.cz>
22883 * config/i386/x86-tune-costs.h (struct processor_costs): Update costs
22884 of gather to match reality.
22885 * config/i386/x86-tune.def (X86_TUNE_USE_GATHER): Enable for znver3.
22887 2021-03-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22889 * config/aarch64/aarch64-builtins.c (aarch64_expand_rng_builtin): Use EQ
22890 to compare against CC_REG rather than NE.
22892 2021-03-17 H.J. Lu <hjl.tools@gmail.com>
22895 * config/i386/i386.c (ix86_force_load_from_GOT_p): Support
22896 inline assembly statements.
22897 (ix86_print_operand): Update 'P' handling for -fno-plt.
22899 2021-03-17 Tamar Christina <tamar.christina@arm.com>
22902 * config/aarch64/aarch64.c
22903 (aarch64_simd_clone_compute_vecsize_and_simdlen): Remove unused var.
22905 2021-03-16 Segher Boessenkool <segher@kernel.crashing.org>
22908 * config/rs6000/predicates.md (branch_comparison_operator): Allow
22909 ordered and unordered for CCFPmode, if flag_finite_math_only.
22911 2021-03-16 Jakub Jelinek <jakub@redhat.com>
22914 * config/i386/i386-expand.c (ix86_split_lea_for_addr): Emit a MULT
22915 rather than ASHIFT.
22916 * config/i386/i386.md (mult by 1248 into ashift): New splitter.
22918 2021-03-16 Martin Liska <mliska@suse.cz>
22921 * optc-save-gen.awk: Add flag_ipa_ra to exceptions for
22922 cl_optimization_compare function.
22924 2021-03-16 Ilya Leoshkevich <iii@linux.ibm.com>
22926 * config/s390/s390.c (f_constraint_p): Treat "fv" constraints
22929 2021-03-16 Jakub Jelinek <jakub@redhat.com>
22932 * config/i386/i386.h (struct machine_function): Add
22933 has_explicit_vzeroupper bitfield.
22934 * config/i386/i386-expand.c (ix86_expand_builtin): Set
22935 cfun->machine->has_explicit_vzeroupper when expanding
22936 IX86_BUILTIN_VZEROUPPER.
22937 * config/i386/i386-features.c (rest_of_handle_insert_vzeroupper):
22938 Do the mode switching only when TARGET_VZEROUPPER, expensive
22939 optimizations turned on and not optimizing for size.
22940 (pass_insert_vzeroupper::gate): Enable even when
22941 cfun->machine->has_explicit_vzeroupper is set.
22943 2021-03-16 Jakub Jelinek <jakub@redhat.com>
22946 * config/aarch64/aarch64.c
22947 (aarch64_simd_clone_compute_vecsize_and_simdlen): If not a function
22948 definition, walk TYPE_ARG_TYPES list if non-NULL for argument types
22949 instead of DECL_ARGUMENTS. Ignore types for uniform arguments.
22951 2021-03-15 Richard Biener <rguenther@suse.de>
22953 PR tree-optimization/98834
22954 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle missing
22955 subsetting by truncating the access size.
22957 2021-03-15 Jan Hubicka <hubicka@ucw.cz>
22959 * config/i386/i386-options.c (processor_cost_table): Add znver3_cost.
22960 * config/i386/x86-tune-costs.h (znver3_cost): New gobal variable; copy
22963 2021-03-15 Martin Liska <mliska@suse.cz>
22965 * spellcheck.c: Add missing comma in initialization.
22967 2021-03-14 Uroš Bizjak <ubizjak@gmail.com>
22969 * config/i386/sse.md (*vec_extract<mode>): Merge alternative 0 with
22970 alternative 2 and alternative 1 with alternative 3 using
22971 YW register constraint.
22972 (*vec_extract<PEXTR_MODE12:mode>_zext): Merge alternatives
22973 using YW register constraint.
22974 (*vec_extractv16qi_zext): Ditto.
22975 (*vec_extractv4si): Merge alternatives 4 and 5
22976 using Yw register constraint.
22977 (*ssse3_palignr<mode>_perm): Use Yw instead of v for alternative 3.
22979 2021-03-13 Martin Sebor <msebor@redhat.com>
22981 PR tree-optimization/99489
22982 * builtins.c (gimple_call_alloc_size): Fail gracefully when argument
22983 is not a call statement.
22985 2021-03-13 Jakub Jelinek <jakub@redhat.com>
22987 PR tree-optimization/99544
22988 * match.pd (X + (X << C) -> X * (1 + (1 << C))): Don't simplify
22989 if for vector types multiplication can't be done in type's mode.
22991 2021-03-12 Eric Botcazou <ebotcazou@adacore.com>
22994 * config/sparc/constraints.md (w): Rename to...
22995 (W): ... this and ditch previous implementation.
22996 * config/sparc/sparc.md (*movdi_insn_sp64): Replace W with m.
22997 (*movdf_insn_sp64): Likewise.
22998 (*mov<VM64:mode>_insn_sp64): Likewise.
22999 * config/sparc/sync.md (*atomic_compare_and_swap<mode>_1): Replace
23001 (atomic_compare_and_swap_leon3_1): Likewise.
23002 (*atomic_compare_and_swapdi_v8plus): Likewise.
23003 * config/sparc/sparc.c (memory_ok_for_ldd): Remove useless test on
23004 architecture and add missing address validity check during LRA.
23006 2021-03-12 Tobias Burnus <tobias@codesourcery.com>
23009 * gimplify.c (omp_add_variable): Handle NULL_TREE as size
23010 occuring for assumed-size arrays in use_device_{ptr,addr}.
23012 2021-03-12 Jakub Jelinek <jakub@redhat.com>
23015 * config/i386/constraints.md (YW): New internal constraint.
23016 * config/i386/sse.md (v_Yw): Add V4TI, V2TI, V1TI and TI cases.
23017 (*<sse2_avx2>_<insn><mode>3<mask_name>,
23018 *<sse2_avx2>_uavg<mode>3<mask_name>, *abs<mode>2,
23019 *<s>mul<mode>3_highpart<mask_name>): Use <v_Yw> instead of v in
23021 (<sse2_avx2>_psadbw): Use YW instead of v in constraints.
23022 (*avx2_pmaddwd, *sse2_pmaddwd, *<code>v8hi3, *<code>v16qi3,
23023 avx2_pmaddubsw256, ssse3_pmaddubsw128): Merge last two alternatives
23024 into one, use Yw instead of former x,v.
23025 (ashr<mode>3, <insn><mode>3): Use <v_Yw> instead of x in constraints of
23026 the last alternative.
23027 (<sse2_avx2>_packsswb<mask_name>, <sse2_avx2>_packssdw<mask_name>,
23028 <sse2_avx2>_packuswb<mask_name>, <sse4_1_avx2>_packusdw<mask_name>,
23029 *<ssse3_avx2>_pmulhrsw<mode>3<mask_name>, <ssse3_avx2>_palignr<mode>,
23030 <ssse3_avx2>_pshufb<mode>3<mask_name>): Merge last two alternatives
23031 into one, use <v_Yw> instead of former x,v.
23032 (avx2_interleave_highv32qi<mask_name>,
23033 vec_interleave_highv16qi<mask_name>): Use Yw instead of v in
23034 constraints. Add && <mask_avx512bw_condition> to condition.
23035 (avx2_interleave_lowv32qi<mask_name>,
23036 vec_interleave_lowv16qi<mask_name>,
23037 avx2_interleave_highv16hi<mask_name>,
23038 vec_interleave_highv8hi<mask_name>,
23039 avx2_interleave_lowv16hi<mask_name>, vec_interleave_lowv8hi<mask_name>,
23040 avx2_pshuflw_1<mask_name>, sse2_pshuflw_1<mask_name>,
23041 avx2_pshufhw_1<mask_name>, sse2_pshufhw_1<mask_name>,
23042 avx2_<code>v16qiv16hi2<mask_name>, sse4_1_<code>v8qiv8hi2<mask_name>,
23043 *sse4_1_<code>v8qiv8hi2<mask_name>_1, <sse2_avx2>_<insn><mode>3): Use
23044 Yw instead of v in constraints.
23045 * config/i386/mmx.md (Yv_Yw): New define_mode_attr.
23046 (*mmx_<insn><mode>3, mmx_ashr<mode>3, mmx_<insn><mode>3): Use <Yv_Yw>
23047 instead of Yv in constraints.
23048 (*mmx_<insn><mode>3, *mmx_mulv4hi3, *mmx_smulv4hi3_highpart,
23049 *mmx_umulv4hi3_highpart, *mmx_pmaddwd, *mmx_<code>v4hi3,
23050 *mmx_<code>v8qi3, mmx_pack<s_trunsuffix>swb, mmx_packssdw,
23051 mmx_punpckhbw, mmx_punpcklbw, mmx_punpckhwd, mmx_punpcklwd,
23052 *mmx_uavgv8qi3, *mmx_uavgv4hi3, mmx_psadbw): Use Yw instead of Yv in
23054 (*mmx_pinsrw, *mmx_pinsrb, *mmx_pextrw, *mmx_pextrw_zext, *mmx_pextrb,
23055 *mmx_pextrb_zext): Use YW instead of Yv in constraints.
23056 (*mmx_eq<mode>3, mmx_gt<mode>3): Use x instead of Yv in constraints.
23057 (mmx_andnot<mode>3, *mmx_<code><mode>3): Split last alternative into
23058 two, one with just x, another isa avx512vl with v.
23060 2021-03-12 Martin Liska <mliska@suse.cz>
23062 * doc/invoke.texi: Add missing param documentation.
23064 2021-03-11 David Malcolm <dmalcolm@redhat.com>
23067 * Makefile.in (ANALYZER_OBJS): Add analyzer/feasible-graph.o and
23068 analyzer/trimmed-graph.o.
23069 * doc/analyzer.texi (Analyzer Paths): Rewrite description of
23070 feasibility checking to reflect new implementation.
23071 * doc/invoke.texi (-fdump-analyzer-feasibility): Document new
23073 * shortest-paths.h (shortest_paths::get_shortest_distance): New.
23075 2021-03-11 David Malcolm <dmalcolm@redhat.com>
23077 * digraph.cc (selftest::test_shortest_paths): Update
23078 shortest_paths init for new param. Add test of
23079 SPS_TO_GIVEN_TARGET.
23080 * shortest-paths.h (enum shortest_path_sense): New.
23081 (shortest_paths::shortest_paths): Add "sense" param.
23082 Update for renamings. Generalize to use "sense" param.
23083 (shortest_paths::get_shortest_path): Rename param.
23084 (shortest_paths::m_sense): New field.
23085 (shortest_paths::m_prev): Rename...
23086 (shortest_paths::m_best_edge): ...to this.
23087 (shortest_paths::get_shortest_path): Update for renamings.
23088 Conditionalize flipping of path on sense of traversal.
23090 2021-03-11 David Malcolm <dmalcolm@redhat.com>
23092 * digraph.cc (selftest::test_shortest_paths): Add test coverage
23093 for paths from B and C.
23094 * shortest-paths.h (shortest_paths::shortest_paths): Handle
23095 unreachable nodes, rather than asserting.
23097 2021-03-11 David Edelsohn <dje.gcc@gmail.com>
23100 * config/rs6000/rs6000.c (rs6000_xcoff_file_start): Don't create
23101 xcoff_tbss_section_name.
23102 * config/rs6000/xcoff.h (ASM_OUTPUT_TLS_COMMON): Use .lcomm.
23103 * xcoffout.c (xcoff_tbss_section_name): Delete.
23104 * xcoffout.h (xcoff_tbss_section_name): Delete.
23106 2021-03-11 Richard Biener <rguenther@suse.de>
23108 PR tree-optimization/99523
23109 * tree-cfg.c (dump_function_to_file): Dump SSA names
23110 w/o identifier to the decls section as well, not only those
23111 without a VAR_DECL.
23113 2021-03-11 Jakub Jelinek <jakub@redhat.com>
23116 * ipa-icf-gimple.c (func_checker::compare_gimple_call): For internal
23117 function calls with lhs fail if the lhs don't have compatible types.
23119 2021-03-11 Hans-Peter Nilsson <hp@axis.com>
23121 * config/cris/cris.h (HARD_FRAME_POINTER_REGNUM): Define.
23122 Change FRAME_POINTER_REGNUM to correspond to a new faked
23123 register faked_fp, part of GENNONACR_REGS like faked_ap.
23124 (CRIS_FAKED_REGS_CONTENTS): New helper macro.
23125 (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS, CALL_USED_REGISTERS):
23126 (REG_ALLOC_ORDER, REG_CLASS_CONTENTS, REGNO_OK_FOR_BASE_P)
23127 (ELIMINABLE_REGS, REGISTER_NAMES): Adjust accordingly.
23128 * config/cris/cris.md (CRIS_FP_REGNUM): Renumber to new faked
23130 (CRIS_REAL_FP_REGNUM): New constant.
23131 * config/cris/cris.c (cris_reg_saved_in_regsave_area): Check
23132 for HARD_FRAME_POINTER_REGNUM instead of FRAME_POINTER_REGNUM.
23133 (cris_initial_elimination_offset): Handle elimination changes
23134 to HARD_FRAME_POINTER_REGNUM instead of FRAME_POINTER_REGNUM
23135 and add one from FRAME_POINTER_REGNUM to
23136 HARD_FRAME_POINTER_REGNUM.
23137 (cris_expand_prologue, cris_expand_epilogue): Emit code for
23138 hard_frame_pointer_rtx instead of frame_pointer_rtx.
23140 2021-03-10 David Edelsohn <dje.gcc@gmail.com>
23143 * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Add check for DCmode.
23144 * config/rs6000/rs6000.c (rs6000_special_round_type_align): Same.
23146 2021-03-10 Vladimir N. Makarov <vmakarov@redhat.com>
23149 * lra-constraints.c (process_address_1): Don't check unknown
23150 constraint, use X for empty constraint.
23152 2021-03-10 Alex Coplan <alex.coplan@arm.com>
23154 * config/aarch64/aarch64.c (aarch64_vfp_is_call_or_return_candidate):
23155 Fix typo in comment describing "is_ha" argument.
23157 2021-03-10 John David Anglin <danglin@gcc.gnu.org>
23159 * doc/sourcebuild.texi: Document LRA target selector.
23161 2021-03-10 David Malcolm <dmalcolm@redhat.com>
23163 * doc/ux.texi: Add subsection contrasting interactive versus
23164 batch usage of GCC.
23166 2021-03-10 Joel Hutton <joel.hutton@arm.com>
23169 * tree-vect-stmts.c (vectorizable_store): Fix scatter store mask
23171 (vectorizable_load): Fix gather load mask check condition.
23173 2021-03-10 Richard Biener <rguenther@suse.de>
23175 PR tree-optimization/99510
23176 * tree.c (check_aligned_type): Check that the candidate
23177 has TYPE_USER_ALIGN set instead of matching with the
23180 2021-03-10 Eric Botcazou <ebotcazou@adacore.com>
23182 * config/sparc/sparc.c (sparc_regmode_natural_size): Return 4 for
23183 float and vector integer modes only if the mode is not larger.
23185 2021-03-10 Hans-Peter Nilsson <hp@axis.com>
23187 * config/cris/cris.h (DWARF_FRAME_REGISTERS): Define.
23189 2021-03-09 Vladimir N. Makarov <vmakarov@redhat.com>
23191 * ira.c (ira_setup_alts, ira_get_dup_out_num): Process digital
23193 * ira-lives.c (single_reg_class): Ditto.
23195 2021-03-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
23197 * config.gcc (aarch64-*-rtems*): Include general rtems.h after
23198 the architecture-specific rtems.h.
23199 (aarch64-*-rtems*): Likewise.
23200 (arm*-*-rtems*): Likewise.
23201 (epiphany-*-rtems*): Likewise.
23202 (riscv*-*-rtems*): Likewise.
23204 2021-03-09 Jakub Jelinek <jakub@redhat.com>
23206 PR tree-optimization/99305
23207 * tree-ssa-phiopt.c (conditional_replacement): Test integer_pow2p
23208 before integer_all_onesp instead of vice versa.
23210 2021-03-09 Richard Earnshaw <rearnsha@arm.com>
23212 * common/config/arm/arm-common.c (arm_config_default): Change type
23213 of 'i' to unsigned.
23215 2021-03-09 Vladimir N. Makarov <vmakarov@redhat.com>
23218 * lra-constraints.c (process_address_1): Process constraint 'g'
23219 separately and digital constraints containing more one digit.
23221 2021-03-09 Nick Clifton <nickc@redhat.com>
23223 * config/rx/rx.h (DBX_DEBUGGING_INFO): Define.
23224 (DWARF"_DEBUGGING_INFO): Define.
23226 2021-03-09 Eric Botcazou <ebotcazou@adacore.com>
23229 * calls.c (initialize_argument_information): When the argument
23230 is passed by reference, do not make a copy in a thunk only if
23231 the argument is already in memory. Remove redundant test for
23232 the case of callee copy.
23234 2021-03-09 Vladimir N. Makarov <vmakarov@redhat.com>
23237 * lra-constraints.c (process_address_1): Process 0..9 constraints
23238 in process_address_1.
23240 2021-03-09 Andreas Krebbel <krebbel@linux.ibm.com>
23242 * config/s390/s390.c (struct s390_processor processor_table):
23243 Binutils name string must not be empty.
23245 2021-03-09 Claudiu Zissulescu <claziss@synopsys.com>
23247 * config/arc/arc.c (arc_attr_type): Remove function.
23249 2021-03-09 Martin Liska <mliska@suse.cz>
23252 * config/i386/i386-options.c (ix86_option_override_internal):
23253 Set isa_flags for OPTS argument and not for the global
23256 2021-03-09 Aaron Sawdey <acsawdey@linux.ibm.com>
23258 * config/rs6000/predicates.md (ds_form_mem_operand): Check
23261 2021-03-09 Aaron Sawdey <acsawdey@linux.ibm.com>
23264 * config/rs6000/predicates.md (ds_form_mem_operand) New
23266 * config/rs6000/genfusion.pl (gen_ld_cmpi_p10) Use
23267 ds_form_mem_operand in ld/lwa patterns.
23268 * config/rs6000/fusion.md: Regenerate file.
23270 2021-03-08 Martin Sebor <msebor@redhat.com>
23272 PR middle-end/98266
23273 * gimple-array-bounds.cc (inbounds_vbase_memaccess_p): New function.
23274 (array_bounds_checker::check_array_bounds): Call it.
23276 2021-03-08 Martin Sebor <msebor@redhat.com>
23278 PR middle-end/97631
23279 * tree-ssa-strlen.c (maybe_warn_overflow): Test rawmem.
23280 (handle_builtin_stxncpy_strncat): Rename locals. Determine
23281 destination size from allocation calls. Issue a more appropriate
23283 (handle_builtin_memcpy): Pass true as rawmem to maybe_warn_overflow.
23284 (handle_builtin_memset): Same.
23286 2021-03-08 Peter Bergner <bergner@linux.ibm.com>
23289 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_permute): Add an assert
23290 to ensure we do not have an Altivec style address.
23291 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>): Disable if passed
23292 an Altivec style address.
23293 (*vsx_le_perm_store_<mode>): Likewise.
23294 (splitters after *vsx_le_perm_store_<mode>): Likewise.
23295 (vsx_load_<mode>): Disable special expander if passed an Altivec
23297 (vsx_store_<mode>): Likewise.
23299 2021-03-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23302 * config/aarch64/predicates.md (aarch64_simd_shift_imm_vec_qi): Define.
23303 (aarch64_simd_shift_imm_vec_hi): Likewise.
23304 (aarch64_simd_shift_imm_vec_si): Likewise.
23305 (aarch64_simd_shift_imm_vec_di): Likewise.
23306 * config/aarch64/aarch64-simd.md (aarch64_shrn<mode>_insn_le): Use
23307 predicate from above.
23308 (aarch64_shrn<mode>_insn_be): Likewise.
23309 (aarch64_rshrn<mode>_insn_le): Likewise.
23310 (aarch64_rshrn<mode>_insn_be): Likewise.
23311 (aarch64_shrn2<mode>_insn_le): Likewise.
23312 (aarch64_shrn2<mode>_insn_be): Likewise.
23313 (aarch64_rshrn2<mode>_insn_le): Likewise.
23314 (aarch64_rshrn2<mode>_insn_be): Likewise.
23316 2021-03-08 Vladimir N. Makarov <vmakarov@redhat.com>
23319 * lra-constraints.c (skip_contraint_modifiers): New function.
23320 (process_address_1): Use it before lookup_constraint call.
23322 2021-03-08 Martin Liska <mliska@suse.cz>
23325 * config/i386/i386-options.c (ix86_option_override_internal):
23326 Enable UINTR and HRESET for -march that supports it.
23328 2021-03-08 Ilya Leoshkevich <iii@linux.ibm.com>
23330 * config/s390/s390.c (f_constraint_p): New function.
23331 (s390_md_asm_adjust): Implement TARGET_MD_ASM_ADJUST.
23332 (TARGET_MD_ASM_ADJUST): Likewise.
23334 2021-03-08 Tobias Burnus <tobias@codesourcery.com>
23337 * tree-nested.c (convert_local_reference_stmt): Avoid calling
23338 lookup_field_for_decl for Fortran module (= namespace context).
23340 2021-03-08 Andreas Krebbel <krebbel@linux.ibm.com>
23342 * config/s390/s390.c (s390_expand_vec_compare): Implement <0
23343 comparison with arithmetic right shift.
23344 (s390_expand_vcond): No need for a force_reg anymore.
23345 s390_vec_compare will do it.
23346 * config/s390/vector.md ("vec_cmp<mode><tointvec>"): Accept also
23347 immediate operands.
23349 2021-03-07 Jakub Jelinek <jakub@redhat.com>
23352 * config/i386/constraints.md (Yw): Use SSE_REGS if TARGET_SSE
23353 but TARGET_AVX512BW or TARGET_AVX512VL is not set. Adjust description
23355 * config/i386/sse.md (v_Yw): New define_mode_attr.
23356 (*<insn><mode>3, *mul<mode>3<mask_name>, *avx2_<code><mode>3,
23357 *sse4_1_<code><mode>3<mask_name>): Use <v_Yw> instead of v
23359 * config/i386/mmx.md (mmx_pshufw_1, *vec_dupv4hi): Use Yw instead of
23360 xYw in constraints.
23362 2021-03-06 Julian Brown <julian@codesourcery.com>
23364 * tree-pretty-print.c (dump_generic_node): Emit non-generic
23365 address space info for aggregates.
23367 2021-03-06 Hans-Peter Nilsson <hp@axis.com>
23369 * config/cris/cris.h (MAX_FIXED_MODE_SIZE): Don't define.
23371 2021-03-05 Jakub Jelinek <jakub@redhat.com>
23373 PR middle-end/99322
23374 * tree-cfg.c (bb_to_omp_idx): New variable.
23375 (execute_build_cfg): Release the bb_to_omp_idx vector after
23376 cleanup_tree_cfg returns.
23377 (handle_abnormal_edges): Remove bb_to_omp_idx argument, adjust
23378 for bb_to_omp_idx being a vec<int> instead of pointer to array
23380 (make_edges): Remove bb_to_omp_idx local variable, don't pass
23381 it to handle_abnormal_edges, adjust for bb_to_omp_idx being a
23382 vec<int> instead of pointer to array of ints and don't free/release
23384 (remove_bb): When removing a bb and placing forced label somewhere
23385 else, ensure it is put into the same OpenMP region during cfg
23386 pass if possible or to entry successor as fallback. Unregister
23387 bb from bb_to_omp_idx.
23389 2021-03-05 Vladimir N. Makarov <vmakarov@redhat.com>
23392 * lra-constraints.c (process_address_1): Skip decomposing address
23393 for asm insn operand with unknown constraint.
23395 2021-03-05 Martin Jambor <mjambor@suse.cz>
23398 * cgraph.c (cgraph_edge::set_call_stmt): Do not update all
23399 corresponding speculative edges if we are about to resolve
23400 sepculation. Make edge direct (and so resolve speculations) before
23401 removing it from call_site_hash.
23402 (cgraph_edge::make_direct): Relax the initial assert to allow calling
23403 the function on speculative direct edges.
23405 2021-03-05 Eric Botcazou <ebotcazou@adacore.com>
23407 PR rtl-optimization/99376
23408 * rtlanal.c (nonzero_bits1) <arithmetic operators>: If the number
23409 of low-order zero bits is too large, set the result to 0 directly.
23411 2021-03-04 Jakub Jelinek <jakub@redhat.com>
23413 PR middle-end/93235
23414 * expmed.c (store_bit_field_using_insv): Return false of xop0 is a
23415 SUBREG and a SUBREG to op_mode can't be created.
23417 2021-03-04 Alex Coplan <alex.coplan@arm.com>
23420 * config/aarch64/aarch64-sve-builtins.cc
23421 (function_resolver::require_vector_type): Handle error_mark_node.
23423 2021-03-04 Ilya Leoshkevich <iii@linux.ibm.com>
23425 * cfgexpand.c (expand_asm_loc): Pass new parameter.
23426 (expand_asm_stmt): Likewise.
23427 * config/arm/aarch-common-protos.h (arm_md_asm_adjust): Add new
23429 * config/arm/aarch-common.c (arm_md_asm_adjust): Likewise.
23430 * config/arm/arm.c (thumb1_md_asm_adjust): Likewise.
23431 * config/cris/cris.c (cris_md_asm_adjust): Likewise.
23432 * config/i386/i386.c (ix86_md_asm_adjust): Likewise.
23433 * config/mn10300/mn10300.c (mn10300_md_asm_adjust): Likewise.
23434 * config/nds32/nds32.c (nds32_md_asm_adjust): Likewise.
23435 * config/pdp11/pdp11.c (pdp11_md_asm_adjust): Likewise.
23436 * config/rs6000/rs6000.c (rs6000_md_asm_adjust): Likewise.
23437 * config/vax/vax.c (vax_md_asm_adjust): Likewise.
23438 * config/visium/visium.c (visium_md_asm_adjust): Likewise.
23439 * doc/tm.texi (md_asm_adjust): Likewise.
23440 * target.def (md_asm_adjust): Likewise.
23442 2021-03-04 Richard Biener <rguenther@suse.de>
23444 PR middle-end/97855
23445 * tree-pretty-print.c: Poison pp_printf.
23446 (dump_decl_name): Avoid use of pp_printf.
23447 (dump_block_node): Likewise.
23448 (dump_generic_node): Likewise.
23450 2021-03-04 Martin Sebor <msebor@redhat.com>
23452 PR middle-end/96963
23453 PR middle-end/94655
23454 * builtins.c (handle_array_ref): New helper.
23455 (handle_mem_ref): New helper.
23456 (compute_objsize_r): Factor out ARRAY_REF and MEM_REF handling
23457 into new helper functions. Correct a workaround for vectorized
23460 2021-03-03 Pat Haugen <pthaugen@linux.ibm.com>
23462 * config/rs6000/dfp.md (extendddtd2, trunctddd2, *cmp<mode>_internal1,
23463 floatditd2, ftrunc<mode>2, fix<mode>di2, dfp_ddedpd_<mode>,
23464 dfp_denbcd_<mode>, dfp_dxex_<mode>, dfp_diex_<mode>,
23465 *dfp_sgnfcnc_<mode>, dfp_dscli_<mode>, dfp_dscri_<mode>): Update size
23466 attribute for Power10.
23467 * config/rs6000/mma.md (*movoo): Likewise.
23468 * config/rs6000/rs6000.md (define_attr "size"): Add 256.
23469 (define_mode_attr bits): Add DD/TD modes.
23470 * config/rs6000/sync.md (load_quadpti, store_quadpti, load_lockedpti,
23471 store_conditionalpti): Update size attribute for Power10.
23473 2021-03-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23476 * config/sparc/t-sparc (tree-ssanames.o-warn): Don't error for
23477 -Wuninitialized, -Wmaybe-uninitialized.
23478 (wide-int.o-warn): Likewise.
23480 2021-03-03 Richard Earnshaw <rearnsha@arm.com>
23482 * common/config/arm/arm-common.c: Include configargs.h.
23483 (arm_config_default): New function.
23484 (arm_target_mode): Renamed from arm_target_thumb_only. Handle
23485 processors that do not support Thumb. Take into account the
23486 --with-mode configuration setting for selecting the default.
23487 * config/arm/arm.h (OPTION_DEFAULT_SPECS): Remove entry for 'mode'.
23488 (TARGET_MODE_SPEC_FUNCTIONS): Update for function name change.
23490 2021-03-03 Martin Liska <mliska@suse.cz>
23492 PR gcov-profile/97461
23493 * gcov-io.h (GCOV_PREALLOCATED_KVP): Remove.
23495 2021-03-03 Eric Botcazou <ebotcazou@adacore.com>
23498 * config/i386/i386.c (ix86_compute_frame_layout): For a SEH target,
23499 point back the hard frame pointer to its default location when the
23500 frame is larger than SEH_MAX_FRAME_SIZE.
23502 2021-03-03 Jakub Jelinek <jakub@redhat.com>
23505 * config/i386/predicates.md (logic_operator): New define_predicate.
23506 * config/i386/i386.md (mov + mem using comm arith peephole2):
23507 Punt if operands[1] is EXT_REX_SSE_REGNO_P, AVX512BW is not enabled
23508 and the inner mode is [QH]Imode.
23510 2021-03-03 Jakub Jelinek <jakub@redhat.com>
23513 * dwarf2out.c (dw_loc_list_struct): Add end_entry member.
23514 (new_loc_list): Clear end_entry.
23515 (output_loc_list): Only use DW_LLE_startx_length for -gsplit-dwarf
23516 if HAVE_AS_LEB128, otherwise use DW_LLE_startx_endx. Fix comment
23518 (index_location_lists): For dwarf_version >= 5 without HAVE_AS_LEB128,
23519 initialize also end_entry.
23521 2021-03-03 Jakub Jelinek <jakub@redhat.com>
23524 * cfgrtl.c (fixup_partitions): When changing some bbs from hot to cold
23525 partitions, if in non-layout mode after reorder_blocks also move
23526 affected blocks to ensure a single partition transition.
23528 2021-03-03 Jason Merrill <jason@redhat.com>
23531 * cgraphunit.c (process_function_and_variable_attributes): Don't
23532 warn about flatten on an alias if the target also has it.
23533 * cgraph.h (symtab_node::get_alias_target_tree): New.
23535 2021-03-02 David Edelsohn <dje.gcc@gmail.com>
23537 * config/rs6000/rs6000.md (tls_get_tpointer_internal): Prepend
23538 period to symbol name.
23539 (tls_get_addr_internal<mode>): Same.
23541 2021-03-02 David Malcolm <dmalcolm@redhat.com>
23544 * diagnostic-show-locus.c
23545 (selftest::test_one_liner_many_fixits_2): Fix accidental usage of
23548 2021-03-02 Martin Sebor <msebor@redhat.com>
23550 PR middle-end/99276
23551 * builtins.c (warn_for_access): Remove stray warning text.
23553 2021-03-02 Martin Sebor <msebor@redhat.com>
23555 PR middle-end/99295
23556 * doc/extend.texi (attribute malloc): Reword and clarify nonaliasing
23559 2021-03-02 Jakub Jelinek <jakub@redhat.com>
23562 * dwarf2out.c (output_macinfo_op): Use DW_MACRO_*_str* even with
23563 -gdwarf-5 -gstrict-dwarf. For -gsplit-dwarf -gdwarf-5 use
23564 DW_MACRO_*_strx instead of DW_MACRO_*_strp. Handle
23565 DW_MACRO_define_strx and DW_MACRO_undef_strx.
23566 (save_macinfo_strings): Use DW_MACRO_*_str* even with
23567 -gdwarf-5 -gstrict-dwarf. Handle DW_MACRO_define_strx and
23568 DW_MACRO_undef_strx.
23570 2021-03-02 Andreas Krebbel <krebbel@linux.ibm.com>
23572 * config/s390/s390-builtin-types.def (BT_FN_V4SF_V8HI_UINT): New
23574 (BT_FN_V8HI_V8HI_UINT): Likewise.
23575 (BT_FN_V8HI_V4SF_V4SF_UINT): Likewise.
23576 * config/s390/s390-builtins.def (B_NNPA): New macro definition.
23577 (s390_vclfnhs, s390_vclfnls, s390_vcrnfs, s390_vcfn, s390_vcnf):
23578 New builtin definitions.
23579 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Bump
23580 vector extension version.
23581 * config/s390/s390.c (s390_expand_builtin): Check if builtins are
23582 available with current -march level.
23583 * config/s390/s390.md (UNSPEC_NNPA_VCLFNHS_V8HI)
23584 (UNSPEC_NNPA_VCLFNLS_V8HI, UNSPEC_NNPA_VCRNFS_V8HI)
23585 (UNSPEC_NNPA_VCFN_V8HI, UNSPEC_NNPA_VCNF_V8HI): New constants.
23586 * config/s390/vecintrin.h (vec_extend_to_fp32_hi): New macro.
23587 (vec_extend_to_fp32_lo): Likewise.
23588 (vec_round_from_fp32): Likewise.
23589 (vec_convert_to_fp16): Likewise.
23590 (vec_convert_from_fp16): Likewise.
23591 * config/s390/vx-builtins.md (vclfnhs_v8hi): New insn pattern.
23592 (vclfnls_v8hi): Likewise.
23593 (vcrnfs_v8hi): Likewise.
23594 (vcfn_v8hi): Likewise.
23595 (vcnf_v8hi): Likewise.
23597 2021-03-02 Andreas Krebbel <krebbel@linux.ibm.com>
23599 * common/config/s390/s390-common.c (processor_flags_table): New entry.
23600 * config.gcc: Enable arch14 for --with-arch and --with-tune.
23601 * config/s390/driver-native.c (s390_host_detect_local_cpu): Pick
23602 arch14 for unknown CPU models.
23603 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH14.
23604 * config/s390/s390.c (s390_issue_rate): Add case for PROCESSOR_ARCH14.
23605 (s390_get_sched_attrmask): Likewise.
23606 (s390_get_unit_mask): Likewise.
23607 * config/s390/s390.h (enum processor_flags): Add PF_NNPA and PF_ARCH14.
23608 (TARGET_CPU_ARCH14, TARGET_CPU_ARCH14_P, TARGET_CPU_NNPA)
23609 (TARGET_CPU_NNPA_P, TARGET_ARCH14, TARGET_ARCH14_P, TARGET_NNPA)
23610 (TARGET_NNPA_P): New macro definitions.
23611 * config/s390/s390.md ("cpu_facility", "enabled"): Add arch14 and nnpa.
23612 * config/s390/s390.opt: Add PROCESSOR_ARCH14.
23614 2021-03-02 Jakub Jelinek <jakub@redhat.com>
23616 PR middle-end/95757
23617 * tree-vrp.c (register_edge_assert_for): Remove superfluous ()s around
23618 condition. Call register_edge_assert_for_1 for == 0, != 0, == 1 and
23619 != 1 comparisons if name is lhs of a comparison.
23621 2021-03-01 Iain Sandoe <iain@sandoe.co.uk>
23625 * config/darwin-protos.h (darwin_should_restore_cfa_state): New.
23626 * config/darwin.c (darwin_should_restore_cfa_state): New.
23627 * config/darwin.h (TARGET_ASM_SHOULD_RESTORE_CFA_STATE): New.
23628 * doc/tm.texi: Regenerated.
23629 * doc/tm.texi.in: Document TARGET_ASM_SHOULD_RESTORE_CFA_STATE.
23630 * dwarf2cfi.c (connect_traces): If the target requests, restore
23631 the CFA expression after a DW_CFA_restore.
23632 * target.def (TARGET_ASM_SHOULD_RESTORE_CFA_STATE): New hook.
23634 2021-03-01 Martin Liska <mliska@suse.cz>
23637 * optc-save-gen.awk: Add 4 more exceptions.
23639 2021-03-01 Nathan Sidwell <nathan@acm.org>
23642 * tree.h (TYPE_ALIGN_RAW): New accessor.
23643 (TYPE_ALIGN): Use it.
23645 2021-03-01 Jan Hubicka <jh@suse.cz>
23648 * ipa-fnsummary.c (compute_fn_summary): Fix sanity check.
23650 2021-03-01 Eric Botcazou <ebotcazou@adacore.com>
23653 * config/i386/i386.c (ix86_compute_frame_layout): For a SEH target,
23654 point the hard frame pointer to the SSE register save area instead
23655 of the general register save area. Perform only minimal adjustment
23656 for small frames if it is initially not correctly aligned.
23657 (ix86_expand_prologue): Remove early saves for a SEH target.
23658 * config/i386/winnt.c (struct seh_frame_state): Document constraint.
23660 2021-02-28 Jakub Jelinek <jakub@redhat.com>
23663 * ipa.c (symbol_table::remove_unreachable_nodes): Fix a comment
23664 typo - referneced -> referenced.
23665 * tree.c (component_ref_size): Fix comment typo -
23666 refernce -> reference.
23667 * tree-ssa-alias.c (access_path_may_continue_p): Fix comment typo -
23668 traling -> trailing.
23669 (aliasing_component_refs_p): Fix comment typos -
23670 refernce -> reference and refernece -> reference and
23671 traling -> trailing.
23672 (nonoverlapping_refs_since_match_p): Fix comment typo -
23673 referneces -> references.
23674 * doc/invoke.texi (--param modref-max-bases): Fix a typo -
23675 referneces -> references.
23677 2021-02-27 Iain Sandoe <iain@sandoe.co.uk>
23679 * config/host-darwin.c (darwin_gt_pch_use_address): Modify
23680 diagnostic message to avoid use of a contraction and format
23683 2021-02-27 Jakub Jelinek <jakub@redhat.com>
23686 * gcse.c (gcse_or_cprop_is_too_expensive): Use %wu instead of
23687 HOST_WIDE_INT_PRINT_UNSIGNED in warning format string.
23688 * ipa-devirt.c (ipa_odr_read_section): Use %wd instead of
23689 HOST_WIDE_INT_PRINT_DEC in inform format string. Fix comment
23692 2021-02-26 Richard Biener <rguenther@suse.de>
23694 PR middle-end/99281
23695 * expr.c (store_field): For calls with return-slot optimization
23696 and addressable return type expand the store directly.
23698 2021-02-26 Richard Biener <rguenther@suse.de>
23701 * builtins.c (warn_string_no_nul): Fix diagnostic formatting.
23703 2021-02-26 Peter Bergner <bergner@linux.ibm.com>
23706 * config/rs6000/rs6000-call.c (rs6000_init_builtins): Replace assert
23709 2021-02-26 Aaron Sawdey <acsawdey@linux.ibm.com>
23711 * config.gcc: Add rs6000-pcrel-opt.o.
23712 * config/rs6000/rs6000-pcrel-opt.c: New file.
23713 * config/rs6000/pcrel-opt.md: New file.
23714 * config/rs6000/predicates.md: Add d_form_memory predicate.
23715 * config/rs6000/rs6000-cpus.def: Add OPTION_MASK_PCREL_OPT.
23716 * config/rs6000/rs6000-passes.def: Add pass_pcrel_opt.
23717 * config/rs6000/rs6000-protos.h: Add reg_to_non_prefixed(),
23718 pcrel_opt_valid_mem_p(), output_pcrel_opt_reloc(),
23719 and make_pass_pcrel_opt().
23720 * config/rs6000/rs6000.c (reg_to_non_prefixed): Make global.
23721 (rs6000_option_override_internal): Add pcrel-opt.
23722 (rs6000_delegitimize_address): Support pcrel-opt.
23723 (rs6000_opt_masks): Add pcrel-opt.
23724 (pcrel_opt_valid_mem_p): New function.
23725 (reg_to_non_prefixed): Make global.
23726 (rs6000_asm_output_opcode): Reset prepend_p_to_next_insn.
23727 (output_pcrel_opt_reloc): New function.
23728 * config/rs6000/rs6000.md (loads_extern_addr): New attr.
23729 (pcrel_extern_addr): Set loads_extern_addr.
23730 Add include for pcrel-opt.md.
23731 * config/rs6000/rs6000.opt: Add -mpcrel-opt.
23732 * config/rs6000/t-rs6000: Add rules for pcrel-opt.c and
23735 2021-02-26 YunQiang Su <yunqiang.su@cipunited.com>
23738 * config/mips/mips.c (mips_expand_ext_as_unaligned_load):
23739 If TARGET_64BIT and dest is SUBREG, we check the width, if it
23740 equal to SImode, we use SImode operation, just like what we are
23743 2021-02-26 Marek Polacek <polacek@redhat.com>
23745 * builtins.c (warn_for_access): Fix typos.
23747 2021-02-25 Iain Sandoe <iain@sandoe.co.uk>
23749 * config/aarch64/aarch64.md (<optab>_rol<mode>3): Add a '#'
23750 mark in front of the immediate quantity.
23751 (<optab>_rolsi3_uxtw): Likewise.
23753 2021-02-25 Richard Earnshaw <rearnsha@arm.com>
23756 * config/arm/thumb2.md (nonsecure_call_reg_thumb2_fpcxt): New pattern.
23757 (nonsecure_call_value_reg_thumb2_fpcxt): Likewise.
23758 (nonsecure_call_reg_thumb2): Restrict to using r4 for the callee
23759 address and disable when the FPCXT is not available.
23760 (nonsecure_call_value_reg_thumb2): Likewise.
23762 2021-02-25 Nathan Sidwell <nathan@acm.org>
23765 * doc/invoke.texi (flang-info-module-cmi): Renamed option.
23767 2021-02-25 Tamar Christina <tamar.christina@arm.com>
23769 * tree-vect-slp.c (optimize_load_redistribution_1): Abort on NULL nodes.
23771 2021-02-25 Richard Biener <rguenther@suse.de>
23773 PR tree-optimization/99253
23774 * tree-vect-loop.c (check_reduction_path): First compute
23775 code, then verify out-of-loop uses.
23777 2021-02-25 Jakub Jelinek <jakub@redhat.com>
23780 * match.pd ((T)(A) + CST -> (T)(A + CST)): Add :s to convert.
23782 2021-02-25 Jakub Jelinek <jakub@redhat.com>
23784 PR tree-optimization/80635
23785 * tree-vrp.c (vrp_simplify_cond_using_ranges): Also handle
23786 VIEW_CONVERT_EXPR if modes are the same, innerop is integral and
23787 has mode precision.
23789 2021-02-25 Richard Biener <rguenther@suse.de>
23791 * tree-vect-slp.c (optimize_load_redistribution_1): Delay
23792 load_map population.
23793 (vect_match_slp_patterns_2): Revert part of last change.
23794 (vect_analyze_slp): Do not interleave optimize_load_redistribution
23795 with pattern detection but do it afterwards. Dump the
23796 whole SLP graph after pattern recognition and load
23797 redistribution optimization finished.
23799 2021-02-24 Jakub Jelinek <jakub@redhat.com>
23802 * omp-low.c (struct omp_context): Add teams_nested_p and
23803 nonteams_nested_p members.
23804 (scan_omp_target): Diagnose teams nested inside of target with other
23805 directives strictly nested inside of the same target.
23806 (check_omp_nesting_restrictions): Set ctx->teams_nested_p or
23807 ctx->nonteams_nested_p as needed.
23809 2021-02-24 Vladimir N. Makarov <vmakarov@redhat.com>
23811 PR inline-asm/99123
23812 * lra-constraints.c (uses_hard_regs_p): Don't use decompose_mem_address.
23814 2021-02-24 Hans-Peter Nilsson <hp@axis.com>
23816 * config/cris/cris.c (cris_expand_prologue): Set
23817 current_function_static_stack_size, if flag_stack_usage_info.
23819 2021-02-24 Pat Haugen <pthaugen@linux.ibm.com>
23821 * config/rs6000/rs6000.c (next_insn_prefixed_p): Rename.
23822 (rs6000_final_prescan_insn): Adjust.
23823 (rs6000_asm_output_opcode): Likewise.
23825 2021-02-24 Martin Sebor <msebor@redhat.com>
23827 PR middle-end/97172
23828 * attribs.c (attr_access::free_lang_data): Clear attribute arg spec
23829 from function arguments.
23831 2021-02-24 Tamar Christina <tamar.christina@arm.com>
23833 PR tree-optimization/99220
23834 * tree-vect-slp.c (optimize_load_redistribution_1): Remove
23835 node from cache when it's about to be deleted.
23837 2021-02-24 Jakub Jelinek <jakub@redhat.com>
23839 PR tree-optimization/99225
23840 * fold-const.c (fold_binary_loc) <case NE_EXPR>: In (x & (1 << y)) != 0
23841 to ((x >> y) & 1) != 0 simplifications use build_one_cst instead of
23842 build_int_cst (..., 1). Formatting fixes.
23844 2021-02-24 Tamar Christina <tamar.christina@arm.com>
23846 PR tree-optimization/99149
23847 * tree-vect-slp-patterns.c (vect_detect_pair_op): Don't recreate the
23849 (vect_slp_reset_pattern): Remove.
23850 (complex_fma_pattern::matches): Remove call to vect_slp_reset_pattern.
23851 (complex_mul_pattern::build, complex_fma_pattern::build,
23852 complex_fms_pattern::build): Fix ref counts.
23853 * tree-vect-slp.c (vect_free_slp_tree): Undo SLP only pattern relevancy
23854 when node is being deleted.
23855 (vect_match_slp_patterns_2): Correct result of cache hit on patterns.
23856 (vect_schedule_slp): Invalidate SLP_TREE_REPRESENTATIVE of removed
23858 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize value.
23860 2021-02-24 Matthias Klose <doko@ubuntu.com>
23863 2020-12-07 Matthias Klose <doko@ubuntu.com>
23865 * genextract.c (print_header): Undefine ENABLE_RTL_CHECKING
23866 and ENABLE_RTL_FLAG_CHECKING.
23868 2021-02-24 Richard Biener <rguenther@suse.de>
23871 * builtins.c (fold_builtin_next_arg): Avoid NULL arg.
23873 2021-02-23 Peter Bergner <bergner@linux.ibm.com>
23875 * config/rs6000/mma.md (mma_assemble_pair): Rename from this...
23876 (vsx_assemble_pair): ...to this.
23877 (*mma_assemble_pair): Rename from this...
23878 (*vsx_assemble_pair): ...to this.
23879 (mma_disassemble_pair): Rename from this...
23880 (vsx_disassemble_pair): ...to this.
23881 (*mma_disassemble_pair): Rename from this...
23882 (*vsx_disassemble_pair): ...to this.
23883 * config/rs6000/rs6000-builtin.def (BU_MMA_V2, BU_MMA_V3,
23884 BU_COMPAT): New macros.
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_assemble_pair): New compatibility built-in.
23890 (mma_disassemble_pair): Likewise.
23891 * config/rs6000/rs6000-call.c (struct builtin_compatibility): New.
23892 (RS6000_BUILTIN_COMPAT): Define.
23893 (bdesc_compat): New.
23894 (mma_expand_builtin): Use VSX_BUILTIN_DISASSEMBLE_PAIR_INTERNAL.
23895 (rs6000_gimple_fold_mma_builtin): Use MMA_BUILTIN_DISASSEMBLE_PAIR
23896 and VSX_BUILTIN_ASSEMBLE_PAIR.
23897 (rs6000_init_builtins): Register compatibility built-ins.
23898 (mma_init_builtins): Use VSX_BUILTIN_ASSEMBLE_PAIR,
23899 VSX_BUILTIN_ASSEMBLE_PAIR_INTERNAL, VSX_BUILTIN_DISASSEMBLE_PAIR and
23900 VSX_BUILTIN_DISASSEMBLE_PAIR_INTERNAL.
23901 * doc/extend.texi (__builtin_mma_assemble_pair): Rename from this...
23902 (__builtin_vsx_assemble_pair): ...to this.
23903 (__builtin_mma_disassemble_pair): Rename from this...
23904 (__builtin_vsx_disassemble_pair): ...to this.
23906 2021-02-23 Martin Liska <mliska@suse.cz>
23909 * ipa-icf.c (sem_variable::merge): Do not merge 2 variables
23910 with different alignment. That leads to an invalid red zone
23911 size allocated in runtime.
23913 2021-02-23 Jakub Jelinek <jakub@redhat.com>
23915 PR tree-optimization/99204
23916 * fold-const.c (fold_read_from_constant_string): Check that
23917 tree_fits_uhwi_p (index) rather than just that index is INTEGER_CST.
23919 2021-02-23 Segher Boessenkool <segher@kernel.crashing.org>
23920 Kewen Lin <linkw@gcc.gnu.org>
23922 * config/rs6000/rs6000.md (*rotl<mode>3_insert_3): Renamed to...
23923 (rotl<mode>3_insert_3): ...this.
23924 (plus_ior_xor): New code_iterator.
23925 (define_split for GPR rl*imi): New splitter.
23926 * config/rs6000/vsx.md (vsx_init_v4si): Use gen_rotldi3_insert_3
23927 for integer merging.
23929 2021-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23931 * config/aarch64/aarch64-tuning-flags.def (cse_sve_vl_constants):
23933 * config/aarch64/aarch64.md (add<mode>3): Force CONST_POLY_INT immediates
23934 into a register when the above is enabled.
23935 * config/aarch64/aarch64.c (neoversev1_tunings):
23936 AARCH64_EXTRA_TUNE_CSE_SVE_VL_CONSTANTS.
23937 (aarch64_rtx_costs): Use AARCH64_EXTRA_TUNE_CSE_SVE_VL_CONSTANTS.
23939 2021-02-22 Hans-Peter Nilsson <hp@axis.com>
23941 * config/cris/cris.c (cris_print_operand) <'T'>: Change
23942 valid operand from is now an addi mult-value to shift-value.
23943 * config/cris/cris.md (*addi): Change expression of scaled
23944 operand from mult to ashift.
23945 * config/cris/cris.md (*addi_reload): New insn_and_split.
23947 2021-02-22 John David Anglin <danglin@gcc.gnu.org>
23950 * config/pa/pa.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define as
23951 hook_bool_const_tree_hwi_hwi_const_tree_true.
23952 (pa_asm_output_mi_thunk): Add support for nonzero vcall_offset.
23954 2021-02-22 Andre Vieira <andre.simoesdiasvieira@arm.com>
23956 PR rtl-optimization/98791
23957 * ira-conflicts.c (process_regs_for_copy): Don't create allocno copies
23958 for unordered modes.
23960 2021-02-22 Martin Liska <mliska@suse.cz>
23962 * tree-inline.c (inline_forbidden_p): Set
23963 inline_forbidden_reason.
23965 2021-02-22 Richard Biener <rguenther@suse.de>
23967 * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Dump
23970 2021-02-22 Richard Biener <rguenther@suse.de>
23972 PR tree-optimization/99165
23973 * gimple-ssa-store-merging.c (pass_store_merging::process_store):
23974 Accumulate changed to ret.
23976 2021-02-21 Uros Bizjak <ubizjak@gmail.com>
23979 2020-12-09 Uroš Bizjak <ubizjak@gmail.com>
23981 * config/i386/i386.h (REG_ALLOC_ORDER): Remove
23983 2021-02-20 Ilya Leoshkevich <iii@linux.ibm.com>
23986 * config/s390/vector.md (trunctf<DFP_ALL:mode>2_vr): New
23988 (trunctf<DFP_ALL:mode>2): Likewise.
23989 (trunctdtf2_vr): Likewise.
23990 (trunctdtf2): Likewise.
23991 (extend<DFP_ALL:mode>tf2_vr): Likewise.
23992 (extend<DFP_ALL:mode>tf2): Likewise.
23993 (extendtftd2_vr): Likewise.
23994 (extendtftd2): Likewise.
23996 2021-02-20 Ilya Leoshkevich <iii@linux.ibm.com>
23998 * config/s390/vector.md (*fprx2_to_tf): Rename to fprx2_to_tf,
23999 add memory alternative.
24000 (tf_to_fprx2): New pattern.
24002 2021-02-19 Martin Sebor <msebor@redhat.com>
24005 * attribs.c (init_attr_rdwr_indices): Guard vblist use.
24006 (attr_access::free_lang_data): Remove a spurious test.
24008 2021-02-19 Nathan Sidwell <nathan@acm.org>
24010 * doc/invoke.texi (flang-info-module-read): Document.
24012 2021-02-19 Martin Liska <mliska@suse.cz>
24014 PR translation/99167
24015 * params.opt: Fix typo.
24017 2021-02-19 Richard Biener <rguenther@suse.de>
24019 PR middle-end/99122
24020 * tree-inline.c (inline_forbidden_p): Do not inline functions
24021 with VLA arguments or return value.
24023 2021-02-19 Jakub Jelinek <jakub@redhat.com>
24026 * config/arm/arm.md (*stack_protect_combined_set_insn,
24027 *stack_protect_combined_test_insn): If force_const_mem result
24028 is not valid general operand, force its address into the destination
24031 2021-02-19 Jakub Jelinek <jakub@redhat.com>
24034 * tree-cfg.c (gimple_merge_blocks): If bb a starts with eh landing
24035 pad or non-local label, put FORCED_LABELs from bb b after that label
24036 rather than before it.
24038 2021-02-19 Andre Vieira <andre.simoesdiasvieira@arm.com>
24041 * config/aarch64/aarch64-sve.md (<ASHIFT:optab><mode>3): Use
24042 expand_vector_broadcast' to emit the vec_duplicate operand.
24044 2021-02-18 Vladimir N. Makarov <vmakarov@redhat.com>
24046 PR rtl-optimization/96264
24047 * lra-remat.c (reg_overlap_for_remat_p): Check also output insn
24050 2021-02-18 H.J. Lu <hjl.tools@gmail.com>
24053 * varasm.c (get_section): Replace SUPPORTS_SHF_GNU_RETAIN with
24054 looking up the retain attribute.
24055 (resolve_unique_section): Likewise.
24056 (get_variable_section): Likewise.
24057 (switch_to_section): Likewise. Warn when a symbol without the
24058 retain attribute and a symbol with the retain attribute are
24059 placed in the section with the same name, instead of the used
24061 * doc/extend.texi: Document the "retain" attribute.
24063 2021-02-18 Nathan Sidwell <nathan@acm.org>
24066 * doc/invoke.texi (flang-info-include-translate): Document header
24069 2021-02-18 Richard Biener <rguenther@suse.de>
24071 PR middle-end/99122
24072 * ipa-fnsummary.c (analyze_function_body): Set
24073 CIF_FUNCTION_NOT_INLINABLE for VLA parameter calls.
24074 * tree-inline.c (insert_init_debug_bind): Pass NULL for
24075 error_mark_node values.
24076 (force_value_to_type): Do not build V_C_Es for WITH_SIZE_EXPR
24078 (setup_one_parameter): Delay force_value_to_type until when
24081 2021-02-18 Hans-Peter Nilsson <hp@axis.com>
24083 PR tree-optimization/99142
24084 * match.pd (clz cmp 0): Gate replacement on single_use of clz result.
24086 2021-02-18 Jakub Jelinek <jakub@redhat.com>
24088 * wide-int-bitmask.h (wide_int_bitmask::wide_int_bitmask (),
24089 wide_int_bitmask::wide_int_bitmask (uint64_t),
24090 wide_int_bitmask::wide_int_bitmask (uint64_t, uint64_t),
24091 wide_int_bitmask::operator ~ () const,
24092 wide_int_bitmask::operator | (wide_int_bitmask) const,
24093 wide_int_bitmask::operator & (wide_int_bitmask) const): Use constexpr
24095 * config/i386/i386.h (PTA_3DNOW, PTA_3DNOW_A, PTA_64BIT, PTA_ABM,
24096 PTA_AES, PTA_AVX, PTA_BMI, PTA_CX16, PTA_F16C, PTA_FMA, PTA_FMA4,
24097 PTA_FSGSBASE, PTA_LWP, PTA_LZCNT, PTA_MMX, PTA_MOVBE, PTA_NO_SAHF,
24098 PTA_PCLMUL, PTA_POPCNT, PTA_PREFETCH_SSE, PTA_RDRND, PTA_SSE, PTA_SSE2,
24099 PTA_SSE3, PTA_SSE4_1, PTA_SSE4_2, PTA_SSE4A, PTA_SSSE3, PTA_TBM,
24100 PTA_XOP, PTA_AVX2, PTA_BMI2, PTA_RTM, PTA_HLE, PTA_PRFCHW, PTA_RDSEED,
24101 PTA_ADX, PTA_FXSR, PTA_XSAVE, PTA_XSAVEOPT, PTA_AVX512F, PTA_AVX512ER,
24102 PTA_AVX512PF, PTA_AVX512CD, PTA_NO_TUNE, PTA_SHA, PTA_PREFETCHWT1,
24103 PTA_CLFLUSHOPT, PTA_XSAVEC, PTA_XSAVES, PTA_AVX512DQ, PTA_AVX512BW,
24104 PTA_AVX512VL, PTA_AVX512IFMA, PTA_AVX512VBMI, PTA_CLWB, PTA_MWAITX,
24105 PTA_CLZERO, PTA_NO_80387, PTA_PKU, PTA_AVX5124VNNIW, PTA_AVX5124FMAPS,
24106 PTA_AVX512VPOPCNTDQ, PTA_SGX, PTA_AVX512VNNI, PTA_GFNI, PTA_VAES,
24107 PTA_AVX512VBMI2, PTA_VPCLMULQDQ, PTA_AVX512BITALG, PTA_RDPID,
24108 PTA_PCONFIG, PTA_WBNOINVD, PTA_AVX512VP2INTERSECT, PTA_PTWRITE,
24109 PTA_AVX512BF16, PTA_WAITPKG, PTA_MOVDIRI, PTA_MOVDIR64B, PTA_ENQCMD,
24110 PTA_CLDEMOTE, PTA_SERIALIZE, PTA_TSXLDTRK, PTA_AMX_TILE, PTA_AMX_INT8,
24111 PTA_AMX_BF16, PTA_UINTR, PTA_HRESET, PTA_KL, PTA_WIDEKL, PTA_AVXVNNI,
24112 PTA_X86_64_BASELINE, PTA_X86_64_V2, PTA_X86_64_V3, PTA_X86_64_V4,
24113 PTA_CORE2, PTA_NEHALEM, PTA_WESTMERE, PTA_SANDYBRIDGE, PTA_IVYBRIDGE,
24114 PTA_HASWELL, PTA_BROADWELL, PTA_SKYLAKE, PTA_SKYLAKE_AVX512,
24115 PTA_CASCADELAKE, PTA_COOPERLAKE, PTA_CANNONLAKE, PTA_ICELAKE_CLIENT,
24116 PTA_ICELAKE_SERVER, PTA_TIGERLAKE, PTA_SAPPHIRERAPIDS, PTA_ALDERLAKE,
24117 PTA_KNL, PTA_BONNELL, PTA_SILVERMONT, PTA_GOLDMONT, PTA_GOLDMONT_PLUS,
24118 PTA_TREMONT, PTA_KNM): Use constexpr instead of const.
24120 2021-02-18 Jakub Jelinek <jakub@redhat.com>
24122 PR middle-end/99109
24123 * gimple-array-bounds.cc (build_zero_elt_array_type): Rename to ...
24124 (build_printable_array_type): ... this. Add nelts argument. For
24125 overaligned eltype, use TYPE_MAIN_VARIANT (eltype) instead. If
24126 nelts, call build_array_type_nelts.
24127 (array_bounds_checker::check_mem_ref): Use build_printable_array_type
24128 instead of build_zero_elt_array_type and build_array_type_nelts.
24130 2021-02-18 Jakub Jelinek <jakub@redhat.com>
24133 * config/i386/i386.c (distance_non_agu_define): Don't call
24134 extract_insn_cached here.
24135 (ix86_lea_outperforms): Save and restore recog_data around call
24136 to distance_non_agu_define and distance_agu_use.
24137 (ix86_ok_to_clobber_flags): Remove.
24138 (ix86_avoid_lea_for_add): Don't call ix86_ok_to_clobber_flags.
24139 (ix86_avoid_lea_for_addr): Likewise. Adjust function comment.
24140 * config/i386/i386.md (*lea<mode>): Change from define_insn_and_split
24141 into define_insn. Move the splitting to define_peephole2 and
24142 check there using peep2_regno_dead_p if FLAGS_REG is dead.
24144 2021-02-17 Julian Brown <julian@codesourcery.com>
24146 * gimplify.c (gimplify_scan_omp_clauses): Handle ATTACH_DETACH
24149 2021-02-17 Xi Ruoyao <xry111@mengyan1223.wang>
24152 * config/mips/mips.c (mips_symbol_insns): Do not use
24153 MSA_SUPPORTED_MODE_P if mode is MAX_MACHINE_MODE.
24155 2021-02-16 Vladimir N. Makarov <vmakarov@redhat.com>
24157 PR inline-asm/98096
24158 * stmt.c (resolve_operand_name_1): Take inout operands into account
24159 for access to labels by names.
24160 * doc/extend.texi: Describe counting operands for accessing labels.
24162 2021-02-16 Richard Biener <rguenther@suse.de>
24164 PR tree-optimization/38474
24165 * tree-ssa-structalias.c (variable_info::address_taken): New.
24166 (new_var_info): Initialize address_taken.
24167 (process_constraint): Set address_taken.
24168 (solve_constraints): Use the new address_taken flag rather
24169 than is_reg_var for sorting variables.
24170 (dump_constraint): Dump the variable number if the name
24173 2021-02-16 Jakub Jelinek <jakub@redhat.com>
24176 * tree-vect-stmts.c (vectorizable_simd_clone_call): For num_calls != 1
24177 multiply by 4096 and for inbranch by 8192.
24178 * config/i386/i386.c (ix86_simd_clone_usable): For TARGET_AVX512F,
24179 return 3, 2 or 1 for mangle letters 'b', 'c' or 'd'.
24181 2021-02-15 Maya Rashish <coypu@sdf.org>
24183 * config/aarch64/aarch64.c (aarch64_init_builtins):
24184 Call SUBTARGET_INIT_BUILTINS.
24186 2021-02-15 Peter Bergner <bergner@linux.ibm.com>
24188 PR rtl-optimization/98872
24189 * init-regs.c (initialize_uninitialized_regs): Skip initialization
24190 if CONST0_RTX is NULL.
24192 2021-02-15 Richard Sandiford <richard.sandiford@arm.com>
24194 PR rtl-optimization/98863
24195 * rtl-ssa/functions.h (function_info::bb_live_out_info): Delete.
24196 (function_info::build_info): Turn into a declaration, moving the
24197 definition to internals.h.
24198 (function_info::bb_walker): Declare.
24199 (function_info::create_reg_use): Likewise.
24200 (function_info::calculate_potential_phi_regs): Take a build_info
24202 (function_info::place_phis, function_info::create_ebbs): Declare.
24203 (function_info::calculate_ebb_live_in_for_debug): Likewise.
24204 (function_info::populate_backedge_phis): Delete.
24205 (function_info::start_block, function_info::end_block): Declare.
24206 (function_info::populate_phi_inputs): Delete.
24207 (function_info::m_potential_phi_regs): Move information to build_info.
24208 * rtl-ssa/internals.h: New file.
24209 (function_info::bb_phi_info): New class.
24210 (function_info::build_info): Moved from functions.h.
24211 Add a constructor and destructor.
24212 (function_info::build_info::ebb_use): Delete.
24213 (function_info::build_info::ebb_def): Likewise.
24214 (function_info::build_info::bb_live_out): Likewise.
24215 (function_info::build_info::tmp_ebb_live_in_for_debug): New variable.
24216 (function_info::build_info::potential_phi_regs): Likewise.
24217 (function_info::build_info::potential_phi_regs_for_debug): Likewise.
24218 (function_info::build_info::ebb_def_regs): Likewise.
24219 (function_info::build_info::bb_phis): Likewise.
24220 (function_info::build_info::bb_mem_live_out): Likewise.
24221 (function_info::build_info::bb_to_rpo): Likewise.
24222 (function_info::build_info::def_stack): Likewise.
24223 (function_info::build_info::old_def_stack_limit): Likewise.
24224 * rtl-ssa/internals.inl (function_info::build_info::record_reg_def):
24225 Remove the regno argument. Push the previous definition onto the
24226 definition stack where necessary.
24227 * rtl-ssa/accesses.cc: Include internals.h.
24228 * rtl-ssa/changes.cc: Likewise.
24229 * rtl-ssa/blocks.cc: Likewise.
24230 (function_info::build_info::build_info): Define.
24231 (function_info::build_info::~build_info): Likewise.
24232 (function_info::bb_walker): New class.
24233 (function_info::bb_walker::bb_walker): Define.
24234 (function_info::add_live_out_use): Convert a logarithmic-complexity
24235 test into a linear one. Allow the same definition to be passed
24237 (function_info::calculate_potential_phi_regs): Moved from
24238 functions.cc. Take a build_info parameter and store the
24239 information there instead.
24240 (function_info::place_phis): New function.
24241 (function_info::add_entry_block_defs): Update call to record_reg_def.
24242 (function_info::calculate_ebb_live_in_for_debug): New function.
24243 (function_info::add_phi_nodes): Use bb_phis to decide which
24244 registers need phi nodes and initialize ebb_def_regs accordingly.
24245 Do not add degenerate phis here.
24246 (function_info::add_artificial_accesses): Use create_reg_use.
24247 Assert that all definitions are listed in the DF LR sets.
24248 Update call to record_reg_def.
24249 (function_info::record_block_live_out): Record live-out register
24250 values in the phis of successor blocks. Use the live-out set
24251 when processing the last block in an EBB, instead of always
24252 using the live-in sets of successor blocks. AND the live sets
24253 with the set of registers that have been defined in the EBB,
24254 rather than with all potential phi registers. Cope correctly
24255 with branches back to the start of the current EBB.
24256 (function_info::start_block): New function.
24257 (function_info::end_block): Likewise.
24258 (function_info::populate_phi_inputs): Likewise.
24259 (function_info::create_ebbs): Likewise.
24260 (function_info::process_all_blocks): Rewrite into a multi-phase
24262 * rtl-ssa/functions.cc: Include internals.h.
24263 (function_info::calculate_potential_phi_regs): Move to blocks.cc.
24264 (function_info::init_function_data): Remove caller.
24265 * rtl-ssa/insns.cc: Include internals.h
24266 (function_info::create_reg_use): New function. Lazily any
24267 degenerate phis needed by the linear RPO view.
24268 (function_info::record_use): Use create_reg_use. When processing
24269 debug uses, use potential_phi_regs and test it before checking
24270 whether the register is live on entry to the current EBB. Lazily
24271 calculate ebb_live_in_for_debug.
24272 (function_info::record_call_clobbers): Update call to record_reg_def.
24273 (function_info::record_def): Likewise.
24275 2021-02-15 Martin Liska <mliska@suse.cz>
24277 * toplev.c (init_asm_output): Free output of
24278 gen_command_line_string function.
24279 (process_options): Likewise.
24281 2021-02-15 Martin Liska <mliska@suse.cz>
24283 * params.opt: Add 2 missing Param keywords.
24285 2021-02-15 Eric Botcazou <ebotcazou@adacore.com>
24287 * df-core.c (df_worklist_dataflow_doublequeue): Use proper cast.
24289 2021-02-15 Jakub Jelinek <jakub@redhat.com>
24291 PR tree-optimization/99079
24292 * match.pd (A % (pow2pcst << N) -> A & ((pow2pcst << N) - 1)): Remove
24293 useless tree_nop_conversion_p (type, TREE_TYPE (@3)) check. Instead
24294 require both type and TREE_TYPE (@1) to be integral types and either
24295 type having smaller or equal precision, or TREE_TYPE (@1) being
24296 unsigned type, or type being signed type. If TREE_TYPE (@1)
24297 doesn't have wrapping overflow, perform the subtraction of one in
24300 2021-02-14 Jan Hubicka <hubicka@ucw.cz>
24301 Richard Biener <rguether@suse.de>
24304 * ipa-reference.c (ipa_init): Only conditinally initialize
24305 reference_vars_to_consider.
24306 (propagate): Conditionally deninitialize reference_vars_to_consider.
24307 (ipa_reference_write_optimization_summary): Sanity check that
24308 reference_vars_to_consider is not allocated.
24310 2021-02-13 Levy Hsu <admin@levyhsu.com>
24313 * config/riscv/riscv-shorten-memrefs.c (pass_shorten_memrefs): Add
24314 extend parameter to get_si_mem_base_reg declaration.
24315 (get_si_mem_base_reg): Add extend parameter. Set it.
24316 (analyze): Pass extend arg to get_si_mem_base_reg.
24317 (transform): Likewise. Use it when rewriting mems.
24318 * config/riscv/riscv.c (riscv_legitimize_move): Check for subword
24319 loads and emit sign/zero extending load followed by subreg move.
24321 2021-02-13 Jim Wilson <jimw@sifive.com>
24324 * config/riscv/riscv.c (riscv_compressed_lw_address_p): Drop early
24325 exit when !reload_completed. Only perform check for compressed reg
24326 if reload_completed.
24327 (riscv_rtx_costs): In MEM case, when optimizing for size and
24328 shorten memrefs, if not compressible, then increase cost.
24330 2021-02-13 Jakub Jelinek <jakub@redhat.com>
24332 PR rtl-optimization/98439
24333 * recog.c (pass_split_before_regstack::gate): Enable even when
24334 pass_split_before_sched2 is enabled if -fselective-scheduling2 is
24337 2021-02-13 Jakub Jelinek <jakub@redhat.com>
24340 * config/i386/mmx.md (*mmx_pshufd_1): Add a combine splitter for
24341 swap of V2SImode elements in memory into DImode memory rotate by 32.
24343 2021-02-12 Martin Sebor <msebor@redhat.com>
24345 * tree-pretty-print.c (print_generic_expr_to_str): Update comment.
24347 2021-02-12 Richard Sandiford <richard.sandiford@arm.com>
24349 * rtl-ssa/accesses.cc (function_info::make_use_available): Use
24350 m_temp_obstack rather than m_obstack to allocate the temporary use.
24352 2021-02-12 Richard Sandiford <richard.sandiford@arm.com>
24354 * df-problems.c (df_lr_bb_local_compute): Treat partial definitions
24355 as read-modify operations.
24357 2021-02-12 Richard Biener <rguenther@suse.de>
24359 PR middle-end/38474
24360 * ipa-fnsummary.c (unmodified_parm_1): Only walk when
24361 fbi->aa_walk_budget is bigger than zero. Update
24362 fbi->aa_walk_budget.
24363 (param_change_prob): Likewise.
24364 * ipa-prop.c (detect_type_change_from_memory_writes):
24365 Properly account walk_aliased_vdefs.
24366 (parm_preserved_before_stmt_p): Canonicalize updates.
24367 (parm_ref_data_preserved_p): Likewise.
24368 (parm_ref_data_pass_through_p): Likewise.
24369 (determine_known_aggregate_parts): Account own alias queries.
24371 2021-02-12 Martin Liska <mliska@suse.cz>
24373 * opts-common.c (decode_cmdline_option): Release werror_arg.
24374 * opts.c (gen_producer_string): Release output of
24375 gen_command_line_string.
24377 2021-02-12 Richard Biener <rguenther@suse.de>
24379 PR tree-optimization/38474
24380 * params.opt (-param=max-store-chains-to-track=): New param.
24381 (-param=max-stores-to-track=): Likewise.
24382 * doc/invoke.texi (max-store-chains-to-track): Document.
24383 (max-stores-to-track): Likewise.
24384 * gimple-ssa-store-merging.c (pass_store_merging::m_n_chains):
24386 (pass_store_merging::m_n_stores): Likewise.
24387 (pass_store_merging::terminate_and_process_chain): Update
24388 m_n_stores and m_n_chains.
24389 (pass_store_merging::process_store): Likewise. Terminate
24390 oldest chains if the number of stores or chains get too large.
24391 (imm_store_chain_info::terminate_and_process_chain): Dump
24394 2021-02-11 Eric Botcazou <ebotcazou@adacore.com>
24396 * config/i386/winnt.c (i386_pe_seh_unwind_emit): When switching to
24397 the cold section, emit a nop before the directive if the previous
24398 active instruction can throw.
24400 2021-02-11 Peter Bergner <bergner@linux.ibm.com>
24403 * config/rs6000/predicates.md (mma_assemble_input_operand): Restrict
24404 memory addresses that are legal for quad word accesses.
24406 2021-02-11 Andrea Corallo <andrea.corallo@arm.com>
24409 * config/arm/thumb2.md (*doloop_end_internal): Generate
24410 alternative sequence to handle long range branches.
24412 2021-02-11 Joel Hutton <joel.hutton@arm.com>
24414 PR tree-optimization/98772
24415 * optabs-tree.c (supportable_half_widening_operation): New function
24416 to check for supportable V8QI->V8HI widening patterns.
24417 * optabs-tree.h (supportable_half_widening_operation): New function.
24418 * tree-vect-stmts.c (vect_create_half_widening_stmts): New function
24419 to create promotion stmts for V8QI->V8HI widening patterns.
24420 (vectorizable_conversion): Add case for V8QI->V8HI.
24422 2021-02-11 Richard Biener <rguenther@suse.de>
24424 * sparseset.h (SPARSESET_ELT_BITS): Remove.
24425 (SPARSESET_ELT_TYPE): Use unsigned int.
24426 * fwprop.c: Do not include sparseset.h.
24428 2021-02-10 Jakub Jelinek <jakub@redhat.com>
24431 * varasm.c (declare_weak): For -fsyntax-only, allow even
24432 TREE_ASM_WRITTEN function decls.
24434 2021-02-10 Jakub Jelinek <jakub@redhat.com>
24437 * config/i386/sse.md (fix<fixunssuffix>_truncv2sfv2di2,
24438 <insn>v8qiv8hi2, <insn>v8qiv8si2, <insn>v4qiv4si2, <insn>v4hiv4si2,
24439 <insn>v8qiv8di2, <insn>v4qiv4di2, <insn>v2qiv2di2, <insn>v4hiv4di2,
24440 <insn>v2hiv2di2, <insn>v2siv2di2): Force operands[1] into REG before
24441 calling simplify_gen_subreg on it.
24443 2021-02-10 Martin Liska <mliska@suse.cz>
24445 * config/nvptx/nvptx.c (nvptx_option_override): Use
24446 flag_patchable_function_entry instead of the removed
24447 function_entry_patch_area_size.
24449 2021-02-10 Martin Liska <mliska@suse.cz>
24451 PR tree-optimization/99002
24452 PR tree-optimization/99026
24453 * gimple-if-to-switch.cc (if_chain::is_beneficial): Fix memory
24454 leak when adjacent cases are merged.
24455 * tree-switch-conversion.c (switch_decision_tree::analyze_switch_statement): Use
24457 (make_pass_lower_switch): Remove trailing whitespace.
24458 * tree-switch-conversion.h (release_clusters): New.
24460 2021-02-10 Richard Biener <rguenther@suse.de>
24462 PR rtl-optimization/99054
24463 * cfgrtl.c (rtl-optimization/99054): Return an auto_vec.
24464 (fixup_partitions): Adjust.
24465 (rtl_verify_edges): Likewise.
24467 2021-02-10 Jakub Jelinek <jakub@redhat.com>
24469 PR middle-end/99007
24470 * gimplify.c (gimplify_scan_omp_clauses): For MEM_REF on reductions,
24471 temporarily disable gimplify_ctxp->into_ssa around gimplify_expr
24474 2021-02-10 Richard Biener <rguenther@suse.de>
24477 * ipa-pure-const.c (propagate_malloc): Use an auto_vec<>
24480 2021-02-10 Richard Biener <rguenther@suse.de>
24482 PR tree-optimization/99024
24483 * tree-vect-loop.c (_loop_vec_info::~_loop_vec_info): Only
24484 clear loop->aux if it is associated with the destroyed loop_vinfo.
24486 2021-02-10 Martin Liska <mliska@suse.cz>
24488 PR tree-optimization/99002
24489 * gimple-if-to-switch.cc (find_conditions): Fix memory leak
24492 2021-02-10 Martin Liska <mliska@suse.cz>
24495 * ipa-icf.c (sem_item::add_reference): Fix memory leak when
24496 a reference exists.
24498 2021-02-10 Jakub Jelinek <jakub@redhat.com>
24501 * dwarf2out.c (prune_unused_types_walk): Mark DW_TAG_variable DIEs
24502 at class scope for DWARF5+.
24504 2021-02-09 Eric Botcazou <ebotcazou@adacore.com>
24506 PR rtl-optimization/96015
24507 * reorg.c (skip_consecutive_labels): Minor comment tweaks.
24508 (relax_delay_slots): When deleting a jump to the next active
24509 instruction over a barrier, first delete the barrier if the
24510 jump is the only way to reach the target label.
24512 2021-02-09 Andre Vieira <andre.simoesdiasvieira@arm.com>
24514 * config/aarch64/aarch64-cost-tables.h: Add entries for vect.mul.
24515 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Use vect.mul for
24516 vector multiplies and vect.alu for SSRA.
24517 * config/arm/aarch-common-protos.h (struct vector_cost_table): Define
24518 vect.mul cost field.
24519 * config/arm/aarch-cost-tables.h: Add entries for vect.mul.
24520 * config/arm/arm.c: Likewise.
24522 2021-02-09 Richard Biener <rguenther@suse.de>
24524 PR tree-optimization/98863
24525 * tree-ssa-sccvn.h (vn_avail::next_undo): Add.
24526 * tree-ssa-sccvn.c (last_pushed_avail): New global.
24527 (rpo_elim::eliminate_push_avail): Chain pushed avails.
24528 (unwind_state::avail_top): Add.
24529 (do_unwind): Rewrite unwinding of avail entries.
24530 (do_rpo_vn): Initialize last_pushed_avail and
24531 avail_top of the undo state.
24533 2021-02-09 Jakub Jelinek <jakub@redhat.com>
24535 PR middle-end/99004
24536 * calls.c (maybe_warn_rdwr_sizes): Change s0 and s1 type from
24537 const char * to char * and free those pointers after use.
24539 2021-02-09 Richard Biener <rguenther@suse.de>
24541 PR tree-optimization/99017
24542 * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Allow
24543 zero vector cost entries.
24545 2021-02-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
24547 PR middle-end/98974
24548 * tree-vect-stmts.c (vectorizable_condition): Remove shadow vec_num
24549 parameter in vectorizable_condition.
24551 2021-02-08 Richard Biener <rguenther@suse.de>
24554 * tree.c (walk_tree_1): Walk VECTOR_CST elements.
24556 2021-02-08 Martin Liska <mliska@suse.cz>
24559 * cfgexpand.c (pass_expand::execute): Parse per-function option
24560 flag_patchable_function_entry and use it.
24561 * common.opt: Remove function_entry_patch_area_size and
24562 function_entry_patch_area_start global variables.
24563 * opts.c (parse_and_check_patch_area): New function.
24564 (common_handle_option): Use it.
24565 * opts.h (parse_and_check_patch_area): New function.
24566 * toplev.c (process_options): Parse and use
24567 function_entry_patch_area_size.
24569 2021-02-08 Martin Sebor <msebor@redhat.com>
24571 * doc/extend.texi (attribute malloc): Correct typos.
24573 2021-02-05 Nathan Sidwell <nathan@acm.org>
24576 * gcc.c (driver::maybe_run_linker): Check for input file
24577 accessibility if not linking.
24579 2021-02-05 Richard Biener <rguenther@suse.de>
24581 PR tree-optimization/98855
24582 * tree-vectorizer.h (add_stmt_cost): New overload.
24583 * tree-vect-slp.c (li_cost_vec_cmp): New.
24584 (vect_bb_slp_scalar_cost): Cost individual loop regions
24585 separately. Account for the scalar instance root stmt.
24587 2021-02-05 Tom de Vries <tdevries@suse.de>
24590 * tree-switch-conversion.c (jump_table_cluster::emit): Add loc
24592 (bit_test_cluster::emit): Reuse location_t for newly created
24594 (switch_decision_tree::try_switch_expansion): Preserve
24596 * tree-switch-conversion.h: Change function signatures.
24598 2021-02-05 Jakub Jelinek <jakub@redhat.com>
24601 * config/i386/i386-options.c (m_NONE, m_ALL): Define.
24602 * config/i386/x86-tune.def (X86_TUNE_BRANCH_PREDICTION_HINTS,
24603 X86_TUNE_PROMOTE_QI_REGS): Use m_NONE instead of 0U.
24604 (X86_TUNE_QIMODE_MATH): Use m_ALL instead of ~0U.
24606 2021-02-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24608 * config/aarch64/aarch64-simd-builtins.def (get_high): Define builtin.
24609 * config/aarch64/aarch64-simd.md (aarch64_get_high<mode>): Define.
24610 * config/aarch64/arm_neon.h (__GET_HIGH): Delete.
24611 (vget_high_f16): Reimplement using new builtin.
24612 (vget_high_f32): Likewise.
24613 (vget_high_f64): Likewise.
24614 (vget_high_p8): Likewise.
24615 (vget_high_p16): Likewise.
24616 (vget_high_p64): Likewise.
24617 (vget_high_s8): Likewise.
24618 (vget_high_s16): Likewise.
24619 (vget_high_s32): Likewise.
24620 (vget_high_s64): Likewise.
24621 (vget_high_u8): Likewise.
24622 (vget_high_u16): Likewise.
24623 (vget_high_u32): Likewise.
24624 (vget_high_u64): Likewise.
24626 2021-02-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24628 * config/aarch64/aarch64-simd-builtins.def (get_low): Define builtin.
24629 * config/aarch64/aarch64-simd.md (aarch64_get_low<mode>): Define.
24630 * config/aarch64/arm_neon.h (__GET_LOW): Delete.
24631 (vget_low_f16): Reimplement using new builtin.
24632 (vget_low_f32): Likewise.
24633 (vget_low_f64): Likewise.
24634 (vget_low_p8): Likewise.
24635 (vget_low_p16): Likewise.
24636 (vget_low_p64): Likewise.
24637 (vget_low_s8): Likewise.
24638 (vget_low_s16): Likewise.
24639 (vget_low_s32): Likewise.
24640 (vget_low_s64): Likewise.
24641 (vget_low_u8): Likewise.
24642 (vget_low_u16): Likewise.
24643 (vget_low_u32): Likewise.
24644 (vget_low_u64): Likewise.
24646 2021-02-05 Kito Cheng <kito.cheng@sifive.com>
24648 * gcc.c (print_multilib_info): Check all required argument is provided
24651 2021-02-05 liuhongt <hongtao.liu@intel.com>
24654 * config/i386/i386-expand.c (ix86_expand_sse_cmp): Don't
24655 generate integer mask comparison for 128/256-bits vector when
24656 op_true/op_false is NULL_RTX or CONSTM1_RTX/CONST0_RTX. Also
24657 delete redundant !maskcmp condition.
24658 (ix86_expand_int_vec_cmp): Ditto but no redundant deletion
24660 (ix86_expand_sse_movcc): Delete definition of maskcmp, add the
24661 condition directly to if (maskcmp), add extra check for
24662 cmpmode, it should be MODE_INT.
24663 (ix86_expand_fp_vec_cmp): Pass NULL to ix86_expand_sse_cmp's
24664 parameters op_true/op_false.
24665 (ix86_use_mask_cmp_p): New.
24667 2021-02-05 liuhongt <hongtao.liu@intel.com>
24670 * config/i386/x86-tune.def (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL):
24671 Remove m_GENERIC from ~list.
24672 (X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): Ditto.
24674 2021-02-04 David Malcolm <dmalcolm@redhat.com>
24677 * diagnostic-show-locus.c (compatible_locations_p): Require
24678 locations in the same macro map to be either both from the
24679 macro definition, or both from the macro arguments.
24681 2021-02-04 Jonathan Wright <jonathan.wright@arm.com>
24683 * config/aarch64/aarch64-simd-builtins.def: Add
24684 [su]mull_hi_lane[q] builtin generator macros.
24685 * config/aarch64/aarch64-simd.md
24686 (aarch64_<su>mull_hi_lane<mode>_insn): Define.
24687 (aarch64_<su>mull_hi_lane<mode>): Define.
24688 (aarch64_<su>mull_hi_laneq<mode>_insn): Define.
24689 (aarch64_<su>mull_hi_laneq<mode>): Define.
24690 * config/aarch64/arm_neon.h (vmull_high_lane_s16): Use RTL
24691 builtin instead of inline asm.
24692 (vmull_high_lane_s32): Likewise.
24693 (vmull_high_lane_u16): Likewise.
24694 (vmull_high_lane_u32): Likewise.
24695 (vmull_high_laneq_s16): Likewise.
24696 (vmull_high_laneq_s32): Likewise.
24697 (vmull_high_laneq_u16): Likewise.
24698 (vmull_high_laneq_u32): Liekwise.
24700 2021-02-04 Jonathan Wright <jonathan.wright@arm.com>
24702 * config/aarch64/aarch64-simd-builtins.def: Add [su]mull_hi_n
24703 builtin generator macros.
24704 * config/aarch64/aarch64-simd.md
24705 (aarch64_<su>mull_hi_n<mode>_insn): Define.
24706 (aarch64_<su>mull_hi_n<mode>): Define.
24707 * config/aarch64/arm_neon.h (vmull_high_n_s16): Use RTL builtin
24708 instead of inline asm.
24709 (vmull_high_n_s32): Likewise.
24710 (vmull_high_n_u16): Likewise.
24711 (vmull_high_n_u32): Likewise.
24713 2021-02-04 Richard Biener <rguenther@suse.de>
24715 PR tree-optimization/98855
24716 * tree-vect-loop.c (vectorizable_phi): Do not cost
24717 single-argument PHIs.
24718 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Likewise.
24719 * tree-vect-stmts.c (vectorizable_bswap): Also perform
24720 costing for SLP operation.
24722 2021-02-04 Martin Liska <mliska@suse.cz>
24724 * doc/extend.texi: Mention -mprefer-vector-width in target
24727 2021-02-03 Martin Sebor <msebor@redhat.com>
24729 PR tree-optimization/98937
24730 * tree-ssa-strlen.c (strlen_dom_walker::~strlen_dom_walker): Define.
24731 Flush pointer_query cache.
24733 2021-02-03 Aaron Sawdey <acsawdey@linux.ibm.com>
24735 * config/rs6000/genfusion.pl (gen_2logical): Add missing
24736 fixes based on patch review.
24737 * config/rs6000/fusion.md: Regenerate file.
24739 2021-02-03 Aaron Sawdey <acsawdey@linux.ibm.com>
24741 * config/rs6000/t-rs6000: Comment out auto generation of
24744 2021-02-03 Andrew Stubbs <ams@codesourcery.com>
24746 * config/gcn/gcn-opts.h (enum processor_type): Add PROCESSOR_GFX908.
24747 * config/gcn/gcn.c (gcn_omp_device_kind_arch_isa): Add gfx908.
24748 (output_file_start): Add gfx908.
24749 * config/gcn/gcn.opt (gpu_type): Add gfx908.
24750 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add march=gfx908.
24751 (MULTILIB_DIRNAMES): Add gfx908.
24752 * config/gcn/mkoffload.c (EF_AMDGPU_MACH_AMDGCN_GFX908): New define.
24753 (main): Recognize gfx908.
24754 * config/gcn/t-omp-device: Add gfx908.
24756 2021-02-03 Jonathan Wright <jonathan.wright@arm.com>
24758 * config/aarch64/aarch64-simd-builtins.def: Add
24759 [su]mlsl_hi_lane[q] builtin macro generators.
24760 * config/aarch64/aarch64-simd.md
24761 (aarch64_<su>mlsl_hi_lane<mode>_insn): Define.
24762 (aarch64_<su>mlsl_hi_lane<mode>): Define.
24763 (aarch64_<su>mlsl_hi_laneq<mode>_insn): Define.
24764 (aarch64_<su>mlsl_hi_laneq<mode>): Define.
24765 * config/aarch64/arm_neon.h (vmlsl_high_lane_s16): Use RTL
24766 builtin instead of inline asm.
24767 (vmlsl_high_lane_s32): Likewise.
24768 (vmlsl_high_lane_u16): Likewise.
24769 (vmlsl_high_lane_u32): Likewise.
24770 (vmlsl_high_laneq_s16): Likewise.
24771 (vmlsl_high_laneq_s32): Likewise.
24772 (vmlsl_high_laneq_u16): Likewise.
24773 (vmlsl_high_laneq_u32): Likewise.
24774 (vmlal_high_laneq_u32): Likewise.
24776 2021-02-03 Jonathan Wright <jonathan.wright@arm.com>
24778 * config/aarch64/aarch64-simd-builtins.def: Add
24779 [su]mlal_hi_lane[q] builtin generator macros.
24780 * config/aarch64/aarch64-simd.md
24781 (aarch64_<su>mlal_hi_lane<mode>_insn): Define.
24782 (aarch64_<su>mlal_hi_lane<mode>): Define.
24783 (aarch64_<su>mlal_hi_laneq<mode>_insn): Define.
24784 (aarch64_<su>mlal_hi_laneq<mode>): Define.
24785 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Use RTL
24786 builtin instead of inline asm.
24787 (vmlal_high_lane_s32): Likewise.
24788 (vmlal_high_lane_u16): Likewise.
24789 (vmlal_high_lane_u32): Likewise.
24790 (vmlal_high_laneq_s16): Likewise.
24791 (vmlal_high_laneq_s32): Likewise.
24792 (vmlal_high_laneq_u16): Likewise.
24793 (vmlal_high_laneq_u32): Likewise.
24795 2021-02-03 Jonathan Wright <jonathan.wright@arm.com>
24797 * config/aarch64/aarch64-simd-builtins.def: Add [su]mlsl_hi_n
24798 builtin generator macros.
24799 * config/aarch64/aarch64-simd.md (aarch64_<su>mlsl_hi_n<mode>_insn):
24801 (aarch64_<su>mlsl_hi_n<mode>): Define.
24802 * config/aarch64/arm_neon.h (vmlsl_high_n_s16): Use RTL builtin
24803 instead of inline asm.
24804 (vmlsl_high_n_s32): Likewise.
24805 (vmlsl_high_n_u16): Likewise.
24806 (vmlsl_high_n_u32): Likewise.
24808 2021-02-03 Jonathan Wright <jonathan.wright@arm.com>
24810 * config/aarch64/aarch64-simd-builtins.def: Add [su]mlal_hi_n
24811 builtin generator macros.
24812 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_hi_n<mode>_insn):
24814 (aarch64_<su>mlal_hi_n<mode>): Define.
24815 * config/aarch64/arm_neon.h (vmlal_high_n_s16): Use RTL builtin
24816 instead of inline asm.
24817 (vmlal_high_n_s32): Likewise.
24818 (vmlal_high_n_u16): Likewise.
24819 (vmlal_high_n_u32): Likewise.
24821 2021-02-03 Jonathan Wright <jonathan.wright@arm.com>
24823 * config/aarch64/aarch64-simd-builtins.def: Add RTL builtin
24825 * config/aarch64/aarch64-simd.md (*aarch64_<su>mlal_hi<mode>):
24827 (aarch64_<su>mlal_hi<mode>_insn): This.
24828 (aarch64_<su>mlal_hi<mode>): Define.
24829 * config/aarch64/arm_neon.h (vmlal_high_s8): Use RTL builtin
24830 instead of inline asm.
24831 (vmlal_high_s16): Likewise.
24832 (vmlal_high_s32): Likewise.
24833 (vmlal_high_u8): Likewise.
24834 (vmlal_high_u16): Likewise.
24835 (vmlal_high_u32): Likewise.
24837 2021-02-03 Ilya Leoshkevich <iii@linux.ibm.com>
24839 * lra-spills.c (remove_pseudos): Call lra_update_insn_recog_data()
24840 after calling alter_subreg() on a (mem).
24842 2021-02-03 Martin Liska <mliska@suse.cz>
24845 * lto-streamer-out.c (produce_lto_section): Fill up missing
24847 * lto-streamer.h (struct lto_section): Add _padding field.
24849 2021-02-03 Richard Biener <rguenther@suse.de>
24851 * lto-streamer.c (lto_get_section_name): Free temporary
24853 * tree-loop-distribution.c
24854 (loop_distribution::merge_dep_scc_partitions): Free edge data.
24856 2021-02-03 Jakub Jelinek <jakub@redhat.com>
24858 PR middle-end/97487
24859 * ifcvt.c (noce_can_force_operand): New function.
24860 (noce_emit_move_insn): Use it.
24861 (noce_try_sign_mask): Likewise. Formatting fix.
24863 2021-02-03 Jakub Jelinek <jakub@redhat.com>
24865 PR middle-end/97971
24866 * lra-constraints.c (process_alt_operands): For inline asm, don't call
24867 fatal_insn, but instead return false.
24869 2021-02-03 Jakub Jelinek <jakub@redhat.com>
24871 PR tree-optimization/98287
24872 * config/i386/mmx.md (<insn><mode>3): For shifts don't enable expander
24875 2021-02-03 Tamar Christina <tamar.christina@arm.com>
24877 PR tree-optimization/98928
24878 * tree-vect-loop.c (vect_analyze_loop_2): Change
24879 STMT_VINFO_SLP_VECT_ONLY to STMT_VINFO_SLP_VECT_ONLY_PATTERN.
24880 * tree-vect-slp-patterns.c (complex_pattern::build): Likewise.
24881 * tree-vectorizer.h (STMT_VINFO_SLP_VECT_ONLY_PATTERN): New.
24882 (class _stmt_vec_info): Add slp_vect_pattern_only_p.
24884 2021-02-02 Richard Biener <rguenther@suse.de>
24886 * gimple-loop-interchange.cc (prepare_data_references):
24888 * gimple-loop-jam.c (tree_loop_unroll_and_jam): Likewise.
24889 * tree-ssa-loop-im.c (hoist_memory_references): Likewise.
24890 * tree-vect-stmts.c (vectorizable_condition): Do not
24892 (vectorizable_comparison): Likewise.
24894 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24896 * config/aarch64/aarch64-simd-builtins.def (ursqrte): Define builtin.
24897 * config/aarch64/aarch64-simd.md (aarch64_ursqrte<mode>): New pattern.
24898 * config/aarch64/arm_neon.h (vrsqrte_u32): Reimplement using builtin.
24899 (vrsqrteq_u32): Likewise.
24901 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24903 * config/aarch64/aarch64-simd-builtins.def (sqxtun2): Define builtin.
24904 * config/aarch64/aarch64-simd.md (aarch64_sqxtun2<mode>_le): Define.
24905 (aarch64_sqxtun2<mode>_be): Likewise.
24906 (aarch64_sqxtun2<mode>): Likewise.
24907 * config/aarch64/arm_neon.h (vqmovun_high_s16): Reimplement using builtin.
24908 (vqmovun_high_s32): Likewise.
24909 (vqmovun_high_s64): Likewise.
24910 * config/aarch64/iterators.md (UNSPEC_SQXTUN2): Define.
24912 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24914 * config/aarch64/aarch64-simd-builtins.def (bfdot_lane, bfdot_laneq): Use
24916 (bfmlalb_lane, bfmlalt_lane, bfmlalb_lane_q, bfmlalt_lane_q): Use FP flags.
24918 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24920 * config/aarch64/aarch64-simd-builtins.def (fcmla_lane0, fcmla_lane90,
24921 fcmla_lane180, fcmla_lane270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
24922 fcmlaq_lane270, scvtf, ucvtf, fcvtzs, fcvtzu, scvtfsi, scvtfdi, ucvtfsi,
24923 ucvtfdi, fcvtzshf, fcvtzuhf, fmlal_lane_low, fmlsl_lane_low,
24924 fmlal_laneq_low, fmlsl_laneq_low, fmlalq_lane_low, fmlslq_lane_low,
24925 fmlalq_laneq_low, fmlslq_laneq_low, fmlal_lane_high, fmlsl_lane_high,
24926 fmlal_laneq_high, fmlsl_laneq_high, fmlalq_lane_high, fmlslq_lane_high,
24927 fmlalq_laneq_high, fmlslq_laneq_high): Use FP flags.
24929 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24931 * config/aarch64/aarch64-builtins.c (FLAG_LOAD): Define.
24932 * config/aarch64/aarch64-simd-builtins.def (ld1x2, ld2, ld3, ld4, ld2r,
24933 ld3r, ld4r, ld1, ld1x3, ld1x4): Use LOAD flags.
24935 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24937 * config/aarch64/aarch64-simd-builtins.def (combine, zip1, zip2,
24938 uzp1, uzp2, trn1, trn2, simd_bsl): Use AUTO_FP flags.
24940 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24942 * config/aarch64/aarch64-simd-builtins.def (clrsb, clz, ctz, popcount,
24943 vec_smult_lane_, vec_smlal_lane_, vec_smult_laneq_, vec_smlal_laneq_,
24944 vec_umult_lane_, vec_umlal_lane_, vec_umult_laneq_, vec_umlal_laneq_,
24945 ashl, sshl, ushl, srshl, urshl, sdot_lane, udot_lane, sdot_laneq,
24946 udot_laneq, usdot_lane, usdot_laneq, sudot_lane, sudot_laneq, ashr,
24947 ashr_simd, lshr, lshr_simd, srshr_n, urshr_n, ssra_n, usra_n, srsra_n,
24948 ursra_n, sshll_n, ushll_n, sshll2_n, ushll2_n, ssri_n, usri_n, ssli_n,
24949 ssli_n, usli_n, bswap, rbit, simd_bsl, eor3q, rax1q, xarq, bcaxq): Use
24950 NONE builtin flags.
24952 2021-02-02 Jakub Jelinek <jakub@redhat.com>
24954 PR tree-optimization/98848
24955 * tree-vect-patterns.c (vect_recog_over_widening_pattern): Punt if
24956 STMT_VINFO_DEF_TYPE (last_stmt_info) is vect_reduction_def.
24958 2021-02-02 Kito Cheng <kito.cheng@sifive.com>
24961 * expr.c: Check mode before calling store_expr.
24963 2021-02-02 Christophe Lyon <christophe.lyon@linaro.org>
24965 * config/arm/iterators.md (supf): Remove VORNQ_S and VORNQ_U.
24967 * config/arm/mve.md (mve_vornq_s<mode>): New entry for vorn
24968 instruction using expression ior.
24969 (mve_vornq_u<mode>): New expander.
24970 (mve_vornq_f<mode>): Use ior code instead of unspec.
24971 * config/arm/unspecs.md (VORNQ_S, VORNQ_U, VORNQ_F): Remove.
24973 2021-02-02 Alexandre Oliva <oliva@adacore.com>
24975 * tree-nested.c (convert_nonlocal_reference_op): Move
24976 current_function_decl restore after re-gimplification.
24977 (convert_local_reference_op): Likewise.
24979 2021-02-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24981 * config/aarch64/aarch64-simd-builtins.def (rshrn, rshrn2):
24983 * config/aarch64/aarch64-simd.md (aarch64_rshrn<mode>_insn_le):
24985 (aarch64_rshrn<mode>_insn_be): Likewise.
24986 (aarch64_rshrn<mode>): Likewise.
24987 (aarch64_rshrn2<mode>_insn_le): Likewise.
24988 (aarch64_rshrn2<mode>_insn_be): Likewise.
24989 (aarch64_rshrn2<mode>): Likewise.
24990 * config/aarch64/aarch64.md (unspec): Add UNSPEC_RSHRN.
24991 * config/aarch64/arm_neon.h (vrshrn_high_n_s16): Reimplement
24993 (vrshrn_high_n_s32): Likewise.
24994 (vrshrn_high_n_s64): Likewise.
24995 (vrshrn_high_n_u16): Likewise.
24996 (vrshrn_high_n_u32): Likewise.
24997 (vrshrn_high_n_u64): Likewise.
24998 (vrshrn_n_s16): Likewise.
24999 (vrshrn_n_s32): Likewise.
25000 (vrshrn_n_s64): Likewise.
25001 (vrshrn_n_u16): Likewise.
25002 (vrshrn_n_u32): Likewise.
25003 (vrshrn_n_u64): Likewise.
25005 2021-02-01 Sergei Trofimovich <siarheit@google.com>
25007 PR tree-optimization/98499
25008 * ipa-modref.c (analyze_ssa_name_flags): treat RVO
25009 conservatively and assume all possible side-effects.
25011 2021-02-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25013 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi,
25014 vec_unpacku_hi_): Define builtins.
25015 * config/aarch64/arm_neon.h (vmovl_high_s8): Reimplement using
25017 (vmovl_high_s16): Likewise.
25018 (vmovl_high_s32): Likewise.
25019 (vmovl_high_u8): Likewise.
25020 (vmovl_high_u16): Likewise.
25021 (vmovl_high_u32): Likewise.
25023 2021-02-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25025 * config/aarch64/aarch64-simd-builtins.def (sabdl, uabdl):
25027 * config/aarch64/aarch64-simd.md (aarch64_<sur>abdl<mode>): New
25029 * config/aarch64/aarch64.md (unspec): Define UNSPEC_SABDL,
25031 * config/aarch64/arm_neon.h (vabdl_s8): Reimplemet using
25033 (vabdl_s16): Likewise.
25034 (vabdl_s32): Likewise.
25035 (vabdl_u8): Likewise.
25036 (vabdl_u16): Likewise.
25037 (vabdl_u32): Likewise.
25038 * config/aarch64/iterators.md (ABDL): New int iterator.
25039 (sur): Handle UNSPEC_SABDL, UNSPEC_UABDL.
25041 2021-02-01 Martin Sebor <msebor@redhat.com>
25043 * tree.h (BLOCK_VARS): Add comment.
25044 (BLOCK_SUBBLOCKS): Same.
25045 (BLOCK_SUPERCONTEXT): Same.
25046 (BLOCK_ABSTRACT_ORIGIN): Same.
25047 (inlined_function_outer_scope_p): Same.
25049 2021-02-01 Martin Sebor <msebor@redhat.com>
25051 PR middle-end/97172
25052 * attribs.c (attr_access::free_lang_data): Define new function.
25053 * attribs.h (attr_access::free_lang_data): Declare new function.
25055 2021-02-01 Richard Biener <rguenther@suse.de>
25057 * vec.h (auto_vec::auto_vec): Add memory stat parameters
25059 * bitmap.h (auto_bitmap::auto_bitmap): Likewise.
25061 2021-02-01 Tamar Christina <tamar.christina@arm.com>
25063 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_n<mode>,
25064 aarch64_<su>mlsl<mode>, aarch64_<su>mlsl_n<mode>): Flip mult operands.
25066 2021-02-01 Richard Biener <rguenther@suse.de>
25068 PR rtl-optimization/98863
25069 * config/i386/i386-features.c (convert_scalars_to_vector):
25070 Set DF_RD_PRUNE_DEAD_DEFS.
25072 2021-01-31 Eric Botcazou <ebotcazou@adacore.com>
25074 * system.h (SIZE_MAX): Define if not already defined.
25076 2021-01-30 Aaron Sawdey <acsawdey@linux.ibm.com>
25078 * config/rs6000/genfusion.pl (gen_2logical): New function to
25079 generate patterns for logical-logical fusion.
25080 * config/rs6000/fusion.md: Regenerated patterns.
25081 * config/rs6000/rs6000-cpus.def: Add
25082 OPTION_MASK_P10_FUSION_2LOGICAL.
25083 * config/rs6000/rs6000.c (rs6000_option_override_internal):
25084 Enable logical-logical fusion for p10.
25085 * config/rs6000/rs6000.opt: Add -mpower10-fusion-2logical.
25087 2021-01-30 David Edelsohn <dje.gcc@gmail.com>
25089 * config/rs6000/rs6000.opt: Add periods to new AIX options.
25091 2021-01-30 David Edelsohn <dje.gcc@gmail.com>
25093 * config/rs6000/rs6000.opt (mabi=vec-extabi): New.
25094 (mabi=vec-default): New.
25095 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
25096 __EXTABI__ for AIX Vector extended ABI.
25097 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print AIX Vector
25099 (conditional_register_usage): If AIX vec_extabi enabled, vs20-vs31
25101 * doc/invoke.texi (PowerPC mabi): Add AIX vec-extabi and vec-default.
25103 2021-01-30 Jakub Jelinek <jakub@redhat.com>
25105 * config/i386/i386-features.c (remove_partial_avx_dependency): Clear
25106 DF_DEFER_INSN_RESCAN after calling df_process_deferred_rescans.
25108 2021-01-29 Vladimir N. Makarov <vmakarov@redhat.com>
25111 * lra-constraints.c (in_class_p): Don't narrow class only for REG
25114 2021-01-29 Will Schmidt <will_schmidt@vnet.ibm.com>
25116 * config/rs6000/rs6000-call.c (rs6000_expand_binup_builtin): Add
25117 clauses for CODE_FOR_vsx_xvcvuxddp_scale and
25118 CODE_FOR_vsx_xvcvsxddp_scale to the parameter checking code.
25120 2021-01-29 Andrew MacLeod <amacleod@redhat.com>
25122 PR tree-optimization/98866
25123 * gimple-range-gori.h (gori_compute:set_range_invariant): New.
25124 * gimple-range-gori.cc (gori_map::set_range_invariant): New.
25125 (gori_map::m_maybe_invariant): Rename from all_outgoing.
25126 (gori_map::gori_map): Rename all_outgoing to m_maybe_invariant.
25127 (gori_map::is_export_p): Ditto.
25128 (gori_map::calculate_gori): Ditto.
25129 (gori_compute::set_range_invariant): New.
25130 * gimple-range.cc (gimple_ranger::range_of_stmt): Set range
25131 invariant for pointers evaluating to [1, +INF].
25133 2021-01-29 Richard Biener <rguenther@suse.de>
25135 PR rtl-optimization/98863
25136 * config/i386/i386-features.c (remove_partial_avx_dependency):
25137 Do not perform DF analysis.
25138 (pass_data_remove_partial_avx_dependency): Remove
25141 2021-01-29 Jonathan Wright <jonathan.wright@arm.com>
25143 * config/aarch64/aarch64-simd-builtins.def: Add [su]mull_n
25144 builtin generator macros.
25145 * config/aarch64/aarch64-simd.md (aarch64_<su>mull_n<mode>):
25147 * config/aarch64/arm_neon.h (vmull_n_s16): Use RTL builtin
25148 instead of inline asm.
25149 (vmull_n_s32): Likewise.
25150 (vmull_n_u16): Likewise.
25151 (vmull_n_u32): Likewise.
25153 2021-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25155 * config/aarch64/aarch64-simd-builtins.def (sabdl2, uabdl2):
25157 * config/aarch64/aarch64-simd.md (aarch64_<sur>abdl2<mode>_3):
25159 (aarch64_<sur>abdl2<mode>): ... This.
25160 (<sur>sadv16qi): Adjust use of above.
25161 * config/aarch64/arm_neon.h (vabdl_high_s8): Reimplement using
25163 (vabdl_high_s16): Likewise.
25164 (vabdl_high_s32): Likewise.
25165 (vabdl_high_u8): Likewise.
25166 (vabdl_high_u16): Likewise.
25167 (vabdl_high_u32): Likewise.
25169 2021-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25171 * config/aarch64/aarch64-simd-builtins.def (sabal2): Define
25173 (uabal2): Likewise.
25174 * config/aarch64/aarch64-simd.md (aarch64_<sur>abal2<mode>): New
25176 * config/aarch64/aarch64.md (unspec): Add UNSPEC_SABAL2 and
25178 * config/aarch64/arm_neon.h (vabal_high_s8): Reimplement using
25180 (vabal_high_s16): Likewise.
25181 (vabal_high_s32): Likewise.
25182 (vabal_high_u8): Likewise.
25183 (vabal_high_u16): Likewise.
25184 (vabal_high_u32): Likewise.
25185 * config/aarch64/iterators.md (ABAL2): New mode iterator.
25186 (sur): Handle UNSPEC_SABAL2, UNSPEC_UABAL2.
25188 2021-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25190 * config/aarch64/aarch64-simd-builtins.def (sabal): Define
25193 * config/aarch64/aarch64-simd.md (aarch64_<sur>abal<mode>_4):
25195 (aarch64_<sur>abal<mode>): ... This
25196 (<sur>sadv16qi): Adust use of the above.
25197 * config/aarch64/arm_neon.h (vabal_s8): Reimplement using
25199 (vabal_s16): Likewise.
25200 (vabal_s32): Likewise.
25201 (vabal_u8): Likewise.
25202 (vabal_u16): Likewise.
25203 (vabal_u32): Likewise.
25205 2021-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25207 * config/aarch64/aarch64-simd-builtins.def (saddlv, uaddlv):
25209 * config/aarch64/aarch64-simd.md (aarch64_<su>addlv<mode>):
25211 * config/aarch64/arm_neon.h (vaddlv_s8): Reimplement using
25213 (vaddlv_s16): Likewise.
25214 (vaddlv_u8): Likewise.
25215 (vaddlv_u16): Likewise.
25216 (vaddlvq_s8): Likewise.
25217 (vaddlvq_s16): Likewise.
25218 (vaddlvq_s32): Likewise.
25219 (vaddlvq_u8): Likewise.
25220 (vaddlvq_u16): Likewise.
25221 (vaddlvq_u32): Likewise.
25222 (vaddlv_s32): Likewise.
25223 (vaddlv_u32): Likewise.
25224 * config/aarch64/iterators.md (VDQV_L): New mode iterator.
25225 (unspec): Add UNSPEC_SADDLV, UNSPEC_UADDLV.
25226 (Vwstype): New mode attribute.
25228 (VWIDE_S): Likewise.
25229 (USADDLV): New int iterator.
25230 (su): Handle UNSPEC_SADDLV, UNSPEC_UADDLV.
25232 2021-01-29 Jonathan Wright <jonathan.wright@arm.com>
25234 * config/aarch64/aarch64-simd-builtins.def: Add [su]mlsl_lane[q]
25235 builtin generator macros.
25236 * config/aarch64/aarch64-simd.md (aarch64_vec_<su>mlsl_lane<Qlane>):
25238 * config/aarch64/arm_neon.h (vmlsl_lane_s16): Use RTL builtin
25239 instead of inline asm.
25240 (vmlsl_lane_s32): Likewise.
25241 (vmlsl_lane_u16): Likewise.
25242 (vmlsl_lane_u32): Likewise.
25243 (vmlsl_laneq_s16): Likewise.
25244 (vmlsl_laneq_s32): Likewise.
25245 (vmlsl_laneq_u16): Likewise.
25246 (vmlsl_laneq_u32): Likewise.
25248 2021-01-29 Richard Biener <rguenther@suse.de>
25250 * doc/invoke.texi (--param max-gcse-memory): Document unit
25252 * gcse.c (gcse_or_cprop_is_too_expensive): Adjust.
25253 * params.opt (--param max-gcse-memory): Adjust default and
25254 document unit of size.
25256 2021-01-29 Richard Biener <rguenther@suse.de>
25258 PR rtl-optimization/98863
25259 * gcse.c (gcse_or_cprop_is_too_expensive): Use unsigned
25260 HOST_WIDE_INT for the memory estimate.
25262 2021-01-29 Bin Cheng <bin.cheng@linux.alibaba.com>
25263 Richard Biener <rguenther@suse.de>
25265 PR tree-optimization/97627
25266 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions):
25267 Do not analyze fake edges.
25269 2021-01-29 Richard Biener <rguenther@suse.de>
25271 PR rtl-optimization/98144
25272 * df.h (df_mir_bb_info): Add con_visited member.
25273 * df-problems.c (df_mir_alloc): Initialize con_visited,
25274 do not fully populate IN and OUT.
25275 (df_mir_reset): Likewise.
25276 (df_mir_confluence_0): Set con_visited.
25277 (df_mir_confluence_n): Properly handle implicitely
25278 fully populated IN and OUT as designated by con_visited
25279 and update con_visited accordingly.
25281 2021-01-29 Jakub Jelinek <jakub@redhat.com>
25284 * config/arm/vec-common.md (mve_vshlq_<supf><mode>,
25285 vashl<mode>3, vashr<mode>3, vlshr<mode>3): Add
25286 && !TARGET_REALLY_IWMMXT to conditions.
25288 2021-01-29 Jakub Jelinek <jakub@redhat.com>
25291 * cfgbuild.c (find_bb_boundaries): Reset debug_insn when seeing
25294 2021-01-28 Marek Polacek <polacek@redhat.com>
25297 * stor-layout.c (finalize_type_size): If we reset TYPE_USER_ALIGN in
25298 the main variant, maybe reset it in its variants too.
25299 * tree.c (check_base_type): Return true only if TYPE_USER_ALIGN match.
25300 (check_aligned_type): Check if TYPE_USER_ALIGN match.
25302 2021-01-28 Christophe Lyon <christophe.lyon@linaro.org>
25305 * config/arm/arm.c (arm_rtx_costs_internal): Adjust cost of vector
25306 of constant zero for comparisons.
25308 2021-01-28 Michael Meissner <meissner@linux.ibm.com>
25310 * config/rs6000/rs6000.c (rs6000_mangle_decl_assembler_name): Add
25311 support for mapping built-in function names for long double
25312 built-in functions if long double is IEEE 128-bit.
25314 2021-01-28 Jonathan Wright <jonathan.wright@arm.com>
25316 * config/aarch64/aarch64-simd-builtins.def: Add [su]mlsl_n
25317 builtin generator macros.
25318 * config/aarch64/aarch64-simd.md (aarch64_<su>mlsl_n<mode>):
25320 * config/aarch64/arm_neon.h (vmlsl_n_s16): Use RTL builtin
25321 instead of inline asm.
25322 (vmlsl_n_s32): Likewise.
25323 (vmlsl_n_u16): Likewise.
25324 (vmlsl_n_u32): Likewise.
25326 2021-01-28 Jonathan Wright <jonathan.wright@arm.com>
25328 * config/aarch64/aarch64-simd-builtins.def: Add [su]mlal_n
25329 builtin generator macros.
25330 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_n<mode>):
25332 * config/aarch64/arm_neon.h (vmlal_n_s16): Use RTL builtin
25333 instead of inline asm.
25334 (vmlal_n_s32): Likewise.
25335 (vmlal_n_u16): Likewise.
25336 (vmlal_n_u32): Likewise.
25338 2021-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25340 * config/aarch64/aarch64-simd-builtins.def (shrn2): Define
25342 * config/aarch64/aarch64-simd.md (aarch64_shrn2<mode>_insn_le):
25344 (aarch64_shrn2<mode>_insn_be): Likewise.
25345 (aarch64_shrn2<mode>): Likewise.
25346 * config/aarch64/arm_neon.h (vshrn_high_n_s16): Reimlplement
25348 (vshrn_high_n_s32): Likewise.
25349 (vshrn_high_n_s64): Likewise.
25350 (vshrn_high_n_u16): Likewise.
25351 (vshrn_high_n_u32): Likewise.
25352 (vshrn_high_n_u64): Likewise.
25354 2021-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25356 * config/aarch64/aarch64-simd-builtins.def (shrn): Define
25358 * config/aarch64/aarch64-simd.md (aarch64_shrn<mode>_insn_le):
25360 (aarch64_shrn<mode>_insn_be): Likewise.
25361 (aarch64_shrn<mode>): Likewise.
25362 * config/aarch64/arm_neon.h (vshrn_n_s16): Reimplement using
25364 (vshrn_n_s32): Likewise.
25365 (vshrn_n_s64): Likewise.
25366 (vshrn_n_u16): Likewise.
25367 (vshrn_n_u32): Likewise.
25368 (vshrn_n_u64): Likewise.
25369 * config/aarch64/iterators.md (vn_mode): New mode attribute.
25371 2021-01-28 Richard Biener <rguenther@suse.de>
25373 PR rtl-optimization/80960
25374 * dse.c (check_mem_read_rtx): Call get_addr on the
25377 2021-01-28 Xionghu Luo <luoxhu@linux.ibm.com>
25378 David Edelsohn <dje.gcc@gmail.com>
25381 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
25382 Don't generate VIEW_CONVERT_EXPR for fcode ALTIVEC_BUILTIN_VEC_INSERT
25384 * config/rs6000/rs6000-protos.h (rs6000_expand_vector_set_var):
25386 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Remove the
25387 wrapper call rs6000_expand_vector_set_var for cleanup. Call
25388 rs6000_expand_vector_set_var_p9 and rs6000_expand_vector_set_var_p8
25390 (rs6000_expand_vector_set_var): Delete.
25391 (rs6000_expand_vector_set_var_p9): Make static.
25392 (rs6000_expand_vector_set_var_p8): Make static.
25394 2021-01-28 Xing GUO <higuoxing@gmail.com>
25396 * common/config/riscv/riscv-common.c
25397 (riscv_subset_list::parsing_subset_version): Fix -march option parsing
25398 when `p` extension exists.
25400 2021-01-27 Vladimir N. Makarov <vmakarov@redhat.com>
25402 PR rtl-optimization/97684
25403 * ira.c (ira): Call ira_set_pseudo_classes before
25404 update_equiv_regs when it is necessary.
25406 2021-01-27 Jakub Jelinek <jakub@redhat.com>
25409 * config/aarch64/aarch64.md (*aarch64_bfxilsi_uxtw): Use
25410 %w0, %w1 and %2 instead of %0, %1 and %2.
25412 2021-01-27 Aaron Sawdey <acsawdey@linux.ibm.com>
25414 * config/rs6000/genfusion.pl: New script to generate
25415 define_insn_and_split patterns so combine can arrange fused
25416 instructions next to each other.
25417 * config/rs6000/fusion.md: New file, generated fused instruction
25418 patterns for combine.
25419 * config/rs6000/predicates.md (const_m1_to_1_operand): New predicate.
25420 (non_update_memory_operand): New predicate.
25421 * config/rs6000/rs6000-cpus.def: Add OPTION_MASK_P10_FUSION and
25422 OPTION_MASK_P10_FUSION_LD_CMPI to ISA_3_1_MASKS_SERVER and
25424 * config/rs6000/rs6000-protos.h (address_is_non_pfx_d_or_x): Add
25426 * config/rs6000/rs6000.c (rs6000_option_override_internal):
25427 Automatically set OPTION_MASK_P10_FUSION and
25428 OPTION_MASK_P10_FUSION_LD_CMPI if target is power10.
25429 (rs600_opt_masks): Allow -mpower10-fusion
25430 in function attributes.
25431 (address_is_non_pfx_d_or_x): New function.
25432 * config/rs6000/rs6000.h: Add MASK_P10_FUSION.
25433 * config/rs6000/rs6000.md: Include fusion.md.
25434 * config/rs6000/rs6000.opt: Add -mpower10-fusion
25435 and -mpower10-fusion-ld-cmpi.
25436 * config/rs6000/t-rs6000: Add dependencies involving fusion.md.
25438 2021-01-27 Jonathan Wright <jonathan.wright@arm.com>
25440 * config/aarch64/aarch64-simd-builtins.def: Add [su]mlal
25441 builtin generator macros.
25442 * config/aarch64/aarch64-simd.md (*aarch64_<su>mlal<mode>):
25444 (aarch64_<su>mlal<mode>): This.
25445 * config/aarch64/arm_neon.h (vmlal_s8): Use RTL builtin
25446 instead of inline asm.
25447 (vmlal_s16): Likewise.
25448 (vmlal_s32): Likewise.
25449 (vmlal_u8): Likewise.
25450 (vmlal_u16): Likewise.
25451 (vmlal_u32): Likewise.
25453 2021-01-27 Richard Biener <rguenther@suse.de>
25455 PR tree-optimization/98854
25456 * tree-vect-slp.c (vect_build_slp_tree_2): Also build
25457 PHIs from scalars when the number of CTORs matches the
25458 number of children.
25460 2021-01-27 Jonathan Wright <jonathan.wright@arm.com>
25462 * config/aarch64/aarch64-simd-builtins.def: Add mls_n builtin
25464 * config/aarch64/aarch64-simd.md (*aarch64_mls_elt_merge<mode>):
25466 (aarch64_mls_n<mode>): This.
25467 * config/aarch64/arm_neon.h (vmls_n_s16): Use RTL builtin
25469 (vmls_n_s32): Likewise.
25470 (vmls_n_u16): Likewise.
25471 (vmls_n_u32): Likewise.
25472 (vmlsq_n_s16): Likewise.
25473 (vmlsq_n_s32): Likewise.
25474 (vmlsq_n_u16): Likewise.
25475 (vmlsq_n_u32): Likewise.
25477 2021-01-27 Jonathan Wright <jonathan.wright@arm.com>
25479 * config/aarch64/aarch64-simd-builtins.def: Add mls builtin
25481 * config/aarch64/arm_neon.h (vmls_s8): Use RTL builtin rather
25483 (vmls_s16): Likewise.
25484 (vmls_s32): Likewise.
25485 (vmls_u8): Likewise.
25486 (vmls_u16): Likewise.
25487 (vmls_u32): Likewise.
25488 (vmlsq_s8): Likewise.
25489 (vmlsq_s16): Likewise.
25490 (vmlsq_s32): Likewise.
25491 (vmlsq_u8): Likewise.
25492 (vmlsq_u16): Likewise.
25493 (vmlsq_u32): Likewise.
25495 2021-01-27 Jonathan Wright <jonathan.wright@arm.com>
25497 * config/aarch64/aarch64-simd-builtins.def: Add mla_n builtin
25499 * config/aarch64/aarch64-simd.md (*aarch64_mla_elt_merge<mode>):
25501 (aarch64_mla_n<mode>): This.
25502 * config/aarch64/arm_neon.h (vmla_n_s16): Use RTL builtin
25504 (vmla_n_s32): Likewise.
25505 (vmla_n_u16): Likewise.
25506 (vmla_n_u32): Likewise.
25507 (vmlaq_n_s16): Likewise.
25508 (vmlaq_n_s32): Likewise.
25509 (vmlaq_n_u16): Likewise.
25510 (vmlaq_n_u32): Likewise.
25512 2021-01-27 liuhongt <hongtao.liu@intel.com>
25515 * config/i386/sse.md (sse2_gt<mode>3): Drop !TARGET_XOP in condition.
25516 (*sse2_eq<mode>3): Ditto.
25518 2021-01-27 Jakub Jelinek <jakub@redhat.com>
25520 * tree-pass.h (PROP_trees): Rename to ...
25521 (PROP_gimple): ... this.
25522 * cfgexpand.c (pass_data_expand): Replace PROP_trees with PROP_gimple.
25523 * passes.c (execute_function_dump, execute_function_todo,
25524 execute_one_ipa_transform_pass, execute_one_pass): Likewise.
25525 * varpool.c (ctor_for_folding): Likewise.
25527 2021-01-27 Jakub Jelinek <jakub@redhat.com>
25529 PR tree-optimization/97260
25530 * varpool.c: Include tree-pass.h.
25531 (ctor_for_folding): In GENERIC return DECL_INITIAL for TREE_READONLY
25532 non-TREE_SIDE_EFFECTS automatic variables.
25534 2021-01-26 Paul Fee <paul.f.fee@gmail.com>
25536 * doc/cpp.texi (__cplusplus): Document value for -std=c++23
25538 * doc/invoke.texi: Document -std=c++23 and -std=gnu++23.
25539 * dwarf2out.c (highest_c_language): Recognise C++20 and C++23.
25540 (gen_compile_unit_die): Recognise C++23.
25542 2021-01-26 Jakub Jelinek <jakub@redhat.com>
25545 * dwarf2asm.c (dw2_assemble_integer): Cast DWARF2_ADDR_SIZE to int
25548 2021-01-26 Jakub Jelinek <jakub@redhat.com>
25551 * config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
25552 Use UINTVAL (shft_amnt) and UINTVAL (mask) instead of INTVAL (shft_amnt)
25553 and INTVAL (mask). Add && INTVAL (mask) > 0 condition.
25555 2021-01-26 Richard Biener <rguenther@suse.de>
25557 * gimple-pretty-print.c (dump_binary_rhs): Handle
25558 VEC_WIDEN_{PLUS,MINUS}_{LO,HI}_EXPR.
25560 2021-01-26 Richard Biener <rguenther@suse.de>
25562 PR middle-end/98726
25563 * tree.h (vector_cst_int_elt): Remove.
25564 * tree.c (vector_cst_int_elt): Use poly_wide_int for computations,
25567 2021-01-26 Andrew Stubbs <ams@codesourcery.com>
25569 * config/gcn/gcn.c (gcn_expand_reduc_scalar): Use move instructions
25570 for V64DFmode min/max reductions.
25572 2021-01-26 Jakub Jelinek <jakub@redhat.com>
25574 * dwarf2asm.c (dw2_assemble_integer): Handle size twice as large
25575 as DWARF2_ADDR_SIZE if x is not a scalar int by emitting it as
25576 two halves, one with x and the other with const0_rtx, ordered
25577 depending on endianity.
25579 2021-01-26 Alexandre Oliva <oliva@adacore.com>
25581 * gimplify.c (gimplify_decl_expr): Skip asan marking calls for
25582 temporaries not seen in binding block, and not about to be
25583 added as gimple variables.
25585 2021-01-25 Martin Sebor <msebor@redhat.com>
25588 * tree-ssa-ccp.c (pass_post_ipa_warn::execute): Adjust warning text.
25590 2021-01-25 Martin Liska <mliska@suse.cz>
25592 * value-prof.c (get_nth_most_common_value): Use %s instead
25595 2021-01-25 Jakub Jelinek <jakub@redhat.com>
25598 * configure.ac (HAVE_AS_GDWARF_5_DEBUG_FLAG): Only define if
25599 readelf -wi is able to read the emitted .debug_info back.
25600 * configure: Regenerated.
25602 2021-01-25 Martin Liska <mliska@suse.cz>
25604 PR gcov-profile/98739
25605 * common.opt: Add missing sign symbol.
25606 * value-prof.c (get_nth_most_common_value): Restore handling
25607 of PROFILE_REPRODUCIBILITY_PARALLEL_RUNS and
25608 PROFILE_REPRODUCIBILITY_MULTITHREADED.
25610 2021-01-25 Richard Biener <rguenther@suse.de>
25612 PR middle-end/98807
25613 * tree.c (vector_element_bits): Always use precision of
25614 the element type for boolean vectors.
25616 2021-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
25618 * config/rtems.h (STARTFILE_SPEC): Remove qnolinkcmds.
25619 (ENDFILE_SPEC): Evaluate qnolinkcmds.
25621 2021-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
25623 * config/rtems.h (STARTFILE_SPEC): Remove nostdlib and
25624 nostartfiles handling since this is already done by
25625 LINK_COMMAND_SPEC. Evaluate qnolinkcmds.
25626 (ENDFILE_SPEC): Remove nostdlib and nostartfiles handling since this
25627 is already done by LINK_COMMAND_SPEC.
25628 (LIB_SPECS): Remove nostdlib and nodefaultlibs handling since
25629 this is already done by LINK_COMMAND_SPEC. Remove qnolinkcmds
25632 2021-01-25 Jakub Jelinek <jakub@redhat.com>
25635 * fold-const-call.c (host_size_t_cst_p): Renamed to ...
25636 (size_t_cst_p): ... this. Check and store unsigned HOST_WIDE_INT
25637 value rather than host size_t.
25638 (fold_const_call): Change type of s2 from size_t to
25639 unsigned HOST_WIDE_INT. Use size_t_cst_p instead of
25640 host_size_t_cst_p. For strncmp calls, pass MIN (s2, SIZE_MAX)
25641 instead of s2 as last argument.
25643 2021-01-25 Tamar Christina <tamar.christina@arm.com>
25645 * config/arm/iterators.md (rotsplit1, rotsplit2, conj_op, fcmac1,
25646 VCMLA_OP, VCMUL_OP): New.
25647 * config/arm/mve.md (mve_vcmlaq<mve_rot><mode>): Support vec_dup 0.
25648 * config/arm/neon.md (cmul<conj_op><mode>3): New.
25649 * config/arm/unspecs.md (UNSPEC_VCMLA_CONJ, UNSPEC_VCMLA180_CONJ,
25650 UNSPEC_VCMUL_CONJ): New.
25651 * config/arm/vec-common.md (cmul<conj_op><mode>3, arm_vcmla<rot><mode>,
25652 cml<fcmac1><conj_op><mode>4): New.
25654 2021-01-23 Jakub Jelinek <jakub@redhat.com>
25657 * config/rs6000/mmintrin.h (__m64): Add __may_alias__ attribute.
25659 2021-01-22 Jonathan Wright <jonathan.wright@arm.com>
25661 * config/aarch64/aarch64-simd-builtins.def: Add mla builtin
25663 * config/aarch64/arm_neon.h (vmla_s8): Use RTL builtin rather
25665 (vmla_s16): Likewise.
25666 (vmla_s32): Likewise.
25667 (vmla_u8): Likewise.
25668 (vmla_u16): Likewise.
25669 (vmla_u32): Likewise.
25670 (vmlaq_s8): Likewise.
25671 (vmlaq_s16): Likewise.
25672 (vmlaq_s32): Likewise.
25673 (vmlaq_u8): Likewise.
25674 (vmlaq_u16): Likewise.
25675 (vmlaq_u32): Likewise.
25677 2021-01-22 David Malcolm <dmalcolm@redhat.com>
25679 * doc/invoke.texi (GCC_EXTRA_DIAGNOSTIC_OUTPUT): Add @findex
25682 2021-01-22 Jakub Jelinek <jakub@redhat.com>
25685 * dwarf2out.c (output_file_names): For -gdwarf-5, if there are no
25686 filenames to emit, still emit the required 0 index directory and
25687 filename entries that match DW_AT_comp_dir and DW_AT_name of the
25690 2021-01-22 Marek Polacek <polacek@redhat.com>
25693 * doc/invoke.texi: Update C++ ABI Version 15 description.
25695 2021-01-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25697 PR tree-optimization/98766
25698 * tree-ssa-math-opts.c (convert_mult_to_fma): Use maybe_le when
25699 comparing against type size with param_avoid_fma_max_bits.
25701 2021-01-22 Richard Biener <rguenther@suse.de>
25703 PR middle-end/98793
25704 * tree.c (vector_element_bits): Key single-bit bool vector on
25705 integer mode rather than not vector mode.
25707 2021-01-22 Xionghu Luo <luoxhu@linux.ibm.com>
25710 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
25711 Generate ARRAY_REF(VIEW_CONVERT_EXPR) for P8 and later
25713 * config/rs6000/rs6000.c (rs6000_expand_vector_set_var): Update
25714 to call different path for P8 and P9.
25715 (rs6000_expand_vector_set_var_p9): New function.
25716 (rs6000_expand_vector_set_var_p8): New function.
25718 2021-01-22 Xionghu Luo <luoxhu@linux.ibm.com>
25722 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
25723 Ajdust variable index vec_insert from address dereference to
25724 ARRAY_REF(VIEW_CONVERT_EXPR) tree expression.
25725 * config/rs6000/rs6000-protos.h (rs6000_expand_vector_set_var):
25727 * config/rs6000/rs6000.c (rs6000_expand_vector_set_var): New function.
25729 2021-01-22 Martin Liska <mliska@suse.cz>
25731 PR gcov-profile/98739
25732 * profile.c (compute_value_histograms): Drop time profile for
25733 -fprofile-reproducible=multithreaded.
25735 2021-01-22 Nathan Sidwell <nathan@acm.org>
25737 * gcc.c (process_command): Don't check OPT_SPECIAL_input_file
25740 2021-01-22 Richard Biener <rguenther@suse.de>
25742 PR middle-end/98773
25743 * tree-data-ref.c (initalize_matrix_A): Revert previous
25744 change, retaining failing on HOST_WIDE_INT_MIN CHREC_RIGHT.
25746 2021-01-22 Jakub Jelinek <jakub@redhat.com>
25748 PR tree-optimization/90248
25749 * match.pd (X cmp 0.0 ? 1.0 : -1.0 -> copysign(1, +-X),
25750 X cmp 0.0 ? -1.0 : +1.0 -> copysign(1, -+X)): Remove
25752 (X * (X cmp 0.0 ? 1.0 : -1.0) -> +-abs(X),
25753 X * (X cmp 0.0 ? -1.0 : 1.0) -> +-abs(X)): New simplifications.
25755 2021-01-22 Jakub Jelinek <jakub@redhat.com>
25757 PR tree-optimization/98255
25758 * tree-dfa.c (get_ref_base_and_extent): For ARRAY_REFs, sign
25759 extend index - low_bound from sizetype's precision rather than index
25761 (get_addr_base_and_unit_offset_1): Likewise.
25762 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Likewise.
25763 * gimple-fold.c (fold_const_aggregate_ref_1): Likewise.
25765 2021-01-22 Richard Biener <rguenther@suse.de>
25767 PR tree-optimization/98786
25768 * tree-ssa-phiopt.c (factor_out_conditional_conversion): Avoid
25769 adding new uses of abnormals. Verify we deal with a conditional
25772 2021-01-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
25775 * optc-save-gen.awk: Add arm_fp16_format to checked_options.
25777 2021-01-22 liuhongt <hongtao.liu@intel.com>
25781 * config/i386/sse.md (VI_128_256): New mode iterator.
25782 (*avx_cmp<mode>3_1, *avx_cmp<mode>3_2, *avx_cmp<mode>3_3,
25783 *avx_cmp<mode>3_4, *avx2_eq<mode>3, *avx2_pcmp<mode>3_1,
25784 *avx2_pcmp<mode>3_2, *avx2_gt<mode>3): New
25785 define_insn_and_split to lower avx512 vector comparison to avx
25786 version when dest is vector.
25787 (*<avx512>_cmp<mode>3,*<avx512>_cmp<mode>3,*<avx512>_ucmp<mode>3):
25788 define_insn_and_split for negating the comparison result.
25789 * config/i386/predicates.md (float_vector_all_ones_operand):
25791 * config/i386/i386-expand.c (ix86_expand_sse_movcc): Use
25792 general NOT operator without UNSPEC_MASKOP.
25794 2021-01-21 Vladimir N. Makarov <vmakarov@redhat.com>
25796 PR rtl-optimization/98777
25797 * lra-int.h (lra_pmode_pseudo): New extern.
25798 * lra.c (lra_pmode_pseudo): New global.
25800 * lra-eliminations.c (eliminate_regs_in_insn): Use it.
25802 2021-01-21 Ilya Leoshkevich <iii@linux.ibm.com>
25804 * fwprop.c (fwprop_propagation::classify_result): Allow
25805 (subreg (mem)) simplifications.
25807 2021-01-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25809 * config/aarch64/aarch64-simd.md (aarch64_sqdml<SBINQOPS:as>l<mode>):
25811 (aarch64_sqdmlal<mode>): ... This...
25812 (aarch64_sqdmlsl<mode>): ... And this.
25813 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>): Split into...
25814 (aarch64_sqdmlal_lane<mode>): ... This...
25815 (aarch64_sqdmlsl_lane<mode>): ... And this.
25816 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>): Split into...
25817 (aarch64_sqdmlsl_laneq<mode>): ... This...
25818 (aarch64_sqdmlal_laneq<mode>): ... And this.
25819 (aarch64_sqdml<SBINQOPS:as>l_n<mode>): Split into...
25820 (aarch64_sqdmlsl_n<mode>): ... This...
25821 (aarch64_sqdmlal_n<mode>): ... And this.
25822 (aarch64_sqdml<SBINQOPS:as>l2<mode>_internal): Split into...
25823 (aarch64_sqdmlal2<mode>_internal): ... This...
25824 (aarch64_sqdmlsl2<mode>_internal): ... And this.
25826 2021-01-21 Christophe Lyon <christophe.lyon@linaro.org>
25828 * config/arm/arm_mve.h (__arm_vcmpneq_s8): Fix return type.
25830 2021-01-21 Andrea Corallo <andrea.corallo@arm.com>
25833 * doc/sourcebuild.texi (arm_thumb2_no_arm_v8_1_lob): Document.
25835 2021-01-21 liuhongt <hongtao.liu@intel.com>
25837 PR rtl-optimization/98694
25838 * regcprop.c (copy_value): If SRC had been assigned a mode
25839 narrower than the copy, we can't link DEST into the chain even
25840 they have same hard_regno_nregs(i.e. HImode/SImode in i386
25843 2021-01-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25845 * config/aarch64/aarch64-simd.md (aarch64_get_lane<mode>):
25846 Convert to define_insn_and_split. Split into simple move when moving
25849 2021-01-20 Segher Boessenkool <segher@kernel.crashing.org>
25851 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Change assert.
25852 Adjust comment. Simplify code.
25854 2021-01-20 Jakub Jelinek <jakub@redhat.com>
25857 * dwarf2out.c (reset_indirect_string): Also reset indirect strings
25858 with DW_FORM_line_strp form.
25859 (prune_unused_types_update_strings): Don't add into debug_str_hash
25860 indirect strings with DW_FORM_line_strp form.
25861 (adjust_name_comp_dir): New function.
25862 (dwarf2out_finish): Call it on CU DIEs after resetting
25863 debug_line_str_hash.
25865 2021-01-20 Vladimir N. Makarov <vmakarov@redhat.com>
25867 PR rtl-optimization/98722
25868 * lra-eliminations.c (eliminate_regs_in_insn): Check that target
25869 has no 3-op add insn to transform insns containing two pluses.
25871 2021-01-20 Richard Biener <rguenther@suse.de>
25873 * hwint.h (add_hwi): New function.
25874 (mul_hwi): Likewise.
25875 * tree-data-ref.c (initialize_matrix_A): Properly translate
25876 tree constants and avoid HOST_WIDE_INT_MIN.
25877 (lambda_matrix_row_add): Avoid undefined integer overflow
25878 and return true on such overflow.
25879 (lambda_matrix_right_hermite): Handle overflow from
25880 lambda_matrix_row_add gracefully. Simplify previous fix.
25881 (analyze_subscript_affine_affine): Likewise.
25883 2021-01-20 Eugene Rozenfeld <erozen@microsoft.com>
25885 PR tree-optimization/96674
25886 * match.pd: New patterns: x < y || y == XXX_MIN --> x <= y - 1
25887 x >= y && y != XXX_MIN --> x > y - 1
25889 2021-01-20 Richard Sandiford <richard.sandiford@arm.com>
25891 PR tree-optimization/98535
25892 * tree-vect-slp.c (duplicate_and_interleave): Use quick_grow_cleared.
25893 If the high and low permutes are the same, remove the high permutes
25894 from the working set and only continue with the low ones.
25896 2021-01-20 Jakub Jelinek <jakub@redhat.com>
25898 PR tree-optimization/98721
25899 * builtins.c (access_ref::inform_access): Don't assume
25900 SSA_NAME_IDENTIFIER must be non-NULL. Print messages about
25901 object whenever allocfn is NULL, rather than only when DECL_P
25902 is true. Use %qE instead of %qD for that. Formatting fixes.
25904 2021-01-20 Richard Biener <rguenther@suse.de>
25906 PR tree-optimization/98758
25907 * tree-data-ref.c (int_divides_p): Use lambda_int arguments.
25908 (lambda_matrix_right_hermite): Avoid undefinedness with
25909 signed integer abs and multiplication.
25910 (analyze_subscript_affine_affine): Use lambda_int.
25912 2021-01-20 David Malcolm <dmalcolm@redhat.com>
25915 * dwarf2out.c (output_line_info): Rename static variable
25916 "generation", moving it out of the function to...
25917 (output_line_info_generation): New.
25918 (init_sections_and_labels): Likewise, renaming the variable to...
25919 (init_sections_and_labels_generation): New.
25920 (dwarf2out_c_finalize): Reset the new variables.
25922 2021-01-19 Martin Sebor <msebor@redhat.com>
25924 PR middle-end/98664
25925 * tree-ssa-live.c (remove_unused_scope_block_p): Keep scopes for
25926 all functions, even if they're not declared artificial or inline.
25927 * tree.c (tree_inlined_location): Use macro expansion location
25928 only if scope traversal fails to expose one.
25930 2021-01-19 Richard Sandiford <richard.sandiford@arm.com>
25932 PR rtl-optimization/92294
25933 * alias.c (compare_base_symbol_refs): Take an extra parameter
25934 and add the distance between two symbols to it. Enshrine in
25935 comments that -1 means "either 0 or 1, but we can't tell
25936 which at compile time".
25937 (memrefs_conflict_p): Update call accordingly.
25938 (rtx_equal_for_memref_p): Likewise. Take the distance between symbols
25941 2021-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25943 * config/aarch64/aarch64-simd-builtins.def (sqshl, uqshl,
25944 sqrshl, uqrshl, sqadd, uqadd, sqsub, uqsub, suqadd, usqadd, sqmovn,
25945 uqmovn, sqxtn2, uqxtn2, sqabs, sqneg, sqdmlal, sqdmlsl, sqdmlal_lane,
25946 sqdmlsl_lane, sqdmlal_laneq, sqdmlsl_laneq, sqdmlal_n, sqdmlsl_n,
25947 sqdmlal2, sqdmlsl2, sqdmlal2_lane, sqdmlsl2_lane, sqdmlal2_laneq,
25948 sqdmlsl2_laneq, sqdmlal2_n, sqdmlsl2_n, sqdmull, sqdmull_lane,
25949 sqdmull_laneq, sqdmull_n, sqdmull2, sqdmull2_lane, sqdmull2_laneq,
25950 sqdmull2_n, sqdmulh, sqrdmulh, sqdmulh_lane, sqdmulh_laneq,
25951 sqrdmulh_lane, sqrdmulh_laneq, sqshrun_n, sqrshrun_n, sqshrn_n,
25952 uqshrn_n, sqrshrn_n, uqrshrn_n, sqshlu_n, sqshl_n, uqshl_n, sqrdmlah,
25953 sqrdmlsh, sqrdmlah_lane, sqrdmlsh_lane, sqrdmlah_laneq, sqrdmlsh_laneq,
25954 sqmovun): Use NONE flags.
25956 2021-01-19 Richard Biener <rguenther@suse.de>
25959 * ipa-modref.c (analyze_stmt): Only record a summary for a
25962 2021-01-19 Richard Biener <rguenther@suse.de>
25964 PR middle-end/98638
25965 * tree-ssanames.c (fini_ssanames): Zero SSA_NAME_DEF_STMT.
25967 2021-01-19 Daniel Hellstrom <daniel@gaisler.com>
25969 * config/sparc/rtemself.h (TARGET_OS_CPP_BUILTINS): Add
25970 built-in define __FIX_LEON3FT_TN0018.
25972 2021-01-19 Richard Biener <rguenther@suse.de>
25975 * tree-inline.c (tree_function_versioning): Set input_location
25976 to UNKNOWN_LOCATION throughout the function.
25978 2021-01-19 Tobias Burnus <tobias@codesourcery.com>
25981 * omp-low.c (lower_omp_target): Handle nonpointer is_device_ptr.
25983 2021-01-19 Martin Jambor <mjambor@suse.cz>
25986 * ipa-sra.c (ssa_name_only_returned_p): New parameter fun. Check
25987 whether non-call exceptions allow removal of a statement.
25988 (isra_analyze_call): Pass the appropriate function to
25989 ssa_name_only_returned_p.
25991 2021-01-19 Geng Qi <gengqi@linux.alibaba.com>
25993 * config/riscv/arch-canonicalize (longext_sort): New function for
25994 sorting 'multi-letter'.
25995 * config/riscv/multilib-generator: Adjusting the loop of 'alt' in
25996 'alts'. The 'arch' may not be the first of 'alts'.
25997 (_expand_combination): Add underline for the 'ext' without '*'.
25998 This is because, a single-letter extension can always be treated well
25999 with a '_' prefix, but it cannot be separated out if it is appended
26002 2021-01-18 Vladimir N. Makarov <vmakarov@redhat.com>
26005 * ira.c (ira): Skip abnormal critical edge splitting.
26007 2021-01-18 Jakub Jelinek <jakub@redhat.com>
26009 PR tree-optimization/98727
26010 * tree-ssa-math-opts.c (match_arith_overflow): Fix up computation of
26011 second .MUL_OVERFLOW operand for signed multiplication with overflow
26012 checking if the second operand of multiplication is not constant.
26014 2021-01-18 David Edelsohn <dje.gcc@gmail.com>
26016 * doc/invoke.texi (-gdwarf): TPF defaults to version 2 and AIX
26017 defaults to version 4.
26019 2021-01-18 David Malcolm <dmalcolm@redhat.com>
26021 * attribs.h (fndecl_dealloc_argno): New decl.
26022 * builtins.c (call_dealloc_argno): Split out second half of
26024 (fndecl_dealloc_argno): New.
26025 * doc/extend.texi (Common Function Attributes): Document the
26026 interaction between the analyzer and the malloc attribute.
26027 * doc/invoke.texi (Static Analyzer Options): Likewise.
26029 2021-01-17 David Edelsohn <dje.gcc@gmail.com>
26031 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Override
26032 dwarf_version to 4.
26033 * config/rs6000/aix72.h (SUBTARGET_OVERRIDE_OPTIONS): Same.
26035 2021-01-17 Martin Jambor <mjambor@suse.cz>
26038 * cgraph.c (clone_of_p): Check also former_clone_of as we climb
26041 2021-01-17 Mark Wielaard <mark@klomp.org>
26043 * common.opt (gdwarf-): Init(5).
26044 * doc/invoke.texi (-gdwarf): Document default to 5.
26046 2021-01-16 Kwok Cheung Yeung <kcy@codesourcery.com>
26048 * builtin-types.def
26049 (BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT): Rename
26051 (BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT_PTR):
26052 ...this. Add extra argument.
26053 * gimplify.c (omp_default_clause): Ensure that event handle is
26054 firstprivate in a task region.
26055 (gimplify_scan_omp_clauses): Handle OMP_CLAUSE_DETACH.
26056 (gimplify_adjust_omp_clauses): Likewise.
26057 * omp-builtins.def (BUILT_IN_GOMP_TASK): Change function type to
26058 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT_PTR.
26059 * omp-expand.c (expand_task_call): Add GOMP_TASK_FLAG_DETACH to flags
26060 if detach clause specified. Add detach argument when generating
26062 * omp-low.c (scan_sharing_clauses): Setup data environment for detach
26064 (finish_taskreg_scan): Move field for variable containing the event
26065 handle to the front of the struct.
26066 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DETACH. Fix
26068 * tree-nested.c (convert_nonlocal_omp_clauses): Handle
26069 OMP_CLAUSE_DETACH clause.
26070 (convert_local_omp_clauses): Handle OMP_CLAUSE_DETACH clause.
26071 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_DETACH.
26072 * tree.c (omp_clause_num_ops): Add entry for OMP_CLAUSE_DETACH.
26074 (omp_clause_code_name): Add entry for OMP_CLAUSE_DETACH. Fix
26076 (walk_tree_1): Handle OMP_CLAUSE_DETACH.
26078 2021-01-16 Sebastian Huber <sebastian.huber@embedded-brains.de>
26080 * config/nios2/t-rtems: Reset all MULTILIB_* variables. Shorten
26081 multilib directory names. Use MULTILIB_REQUIRED instead of
26082 MULTILIB_EXCEPTIONS. Add -mhw-mul -mhw-mulx -mhw-div
26083 -mcustom-fpu-cfg=fph2 multilib.
26085 2021-01-16 Sebastian Huber <sebastian.huber@embedded-brains.de>
26087 * config/nios2/nios2.c (NIOS2_FPU_CONFIG_NUM): Adjust value.
26088 (nios2_init_fpu_configs): Provide register values for new
26089 -mcustom-fpu-cfg=fph2 option variant.
26090 * doc/invoke.texi (-mcustom-fpu-cfg=fph2): Document new option
26093 2021-01-16 Sebastian Huber <sebastian.huber@embedded-brains.de>
26095 * config/nios2/nios2.c (nios2_custom_check_insns): Remove
26096 custom instruction warnings.
26098 2021-01-16 Jakub Jelinek <jakub@redhat.com>
26100 PR tree-optimization/96669
26101 * match.pd ((CST << x) & 1 -> x == 0): New simplification.
26103 2021-01-16 Jakub Jelinek <jakub@redhat.com>
26105 PR tree-optimization/96271
26106 * passes.def: Pass false argument to first two pass_cd_dce
26107 instances and true to last instance. Add comment that
26108 last instance rewrites no longer addressed locals.
26109 * tree-ssa-dce.c (pass_cd_dce): Add update_address_taken_p member and
26111 (pass_cd_dce::set_pass_param): New method.
26112 (pass_cd_dce::execute): Return TODO_update_address_taken from
26113 last cd_dce instance.
26115 2021-01-15 Carl Love <cel@us.ibm.com>
26117 * config/rs6000/altivec.h (vec_mulh, vec_div, vec_dive, vec_mod):
26119 * config/rs6000/altivec.md (VIlong): Move define to file vsx.md.
26120 * config/rs6000/rs6000-builtin.def (DIVES_V4SI, DIVES_V2DI,
26121 DIVEU_V4SI, DIVEU_V2DI, DIVS_V4SI, DIVS_V2DI, DIVU_V4SI,
26122 DIVU_V2DI, MODS_V2DI, MODS_V4SI, MODU_V2DI, MODU_V4SI,
26123 MULHS_V2DI, MULHS_V4SI, MULHU_V2DI, MULHU_V4SI, MULLD_V2DI):
26124 Add builtin define.
26125 (MULH, DIVE, MOD): Add new BU_P10_OVERLOAD_2 definitions.
26126 * config/rs6000/rs6000-call.c (VSX_BUILTIN_VEC_DIV,
26127 VSX_BUILTIN_VEC_DIVE, P10_BUILTIN_VEC_MOD, P10_BUILTIN_VEC_MULH):
26128 New overloaded definitions.
26129 (builtin_function_type) [P10V_BUILTIN_DIVEU_V4SI,
26130 P10V_BUILTIN_DIVEU_V2DI, P10V_BUILTIN_DIVU_V4SI,
26131 P10V_BUILTIN_DIVU_V2DI, P10V_BUILTIN_MODU_V2DI,
26132 P10V_BUILTIN_MODU_V4SI, P10V_BUILTIN_MULHU_V2DI,
26133 P10V_BUILTIN_MULHU_V4SI]: Add case
26134 statement for builtins.
26135 * config/rs6000/rs6000.md (bits): Add new attribute sizes V4SI, V2DI.
26136 * config/rs6000/vsx.md (VIlong): Moved from config/rs6000/altivec.md.
26137 (UNSPEC_VDIVES, UNSPEC_VDIVEU): New unspec definitions.
26138 (vsx_mul_v2di): Add if TARGET_POWER10 statement.
26139 (vsx_udiv_v2di): Add if TARGET_POWER10 statement.
26140 (dives_<mode>, diveu_<mode>, div<mode>3, uvdiv<mode>3,
26141 mods_<mode>, modu_<mode>, mulhs_<mode>, mulhu_<mode>, mulv2di3):
26142 Add define_insn, mode is VIlong.
26143 * doc/extend.texi (vec_mulh, vec_mul, vec_div, vec_dive, vec_mod):
26144 Add builtin descriptions.
26146 2021-01-15 Eric Botcazou <ebotcazou@adacore.com>
26148 * final.c (final_start_function_1): Reset force_source_line.
26150 2021-01-15 Jakub Jelinek <jakub@redhat.com>
26152 PR tree-optimization/96669
26153 * match.pd (((1 << A) & 1) != 0 -> A == 0,
26154 ((1 << A) & 1) == 0 -> A != 0): Generalize for 1s replaced by
26155 possibly different power of two constants and to right shift too.
26157 2021-01-15 Jakub Jelinek <jakub@redhat.com>
26159 PR tree-optimization/96681
26160 * match.pd ((x < 0) ^ (y < 0) to (x ^ y) < 0): New simplification.
26161 ((x >= 0) ^ (y >= 0) to (x ^ y) < 0): Likewise.
26162 ((x < 0) ^ (y >= 0) to (x ^ y) >= 0): Likewise.
26163 ((x >= 0) ^ (y < 0) to (x ^ y) >= 0): Likewise.
26165 2021-01-15 Alexandre Oliva <oliva@adacore.com>
26167 * opts.c (gen_command_line_string): Exclude -dumpbase-ext.
26169 2021-01-15 Tamar Christina <tamar.christina@arm.com>
26171 * config/aarch64/aarch64-simd.md (cml<fcmac1><conj_op><mode>4,
26172 cmul<conj_op><mode>3): New.
26173 * config/aarch64/iterators.md (UNSPEC_FCMUL,
26174 UNSPEC_FCMUL180, UNSPEC_FCMLA_CONJ, UNSPEC_FCMLA180_CONJ,
26175 UNSPEC_CMLA_CONJ, UNSPEC_CMLA180_CONJ, UNSPEC_CMUL, UNSPEC_CMUL180,
26176 FCMLA_OP, FCMUL_OP, conj_op, rotsplit1, rotsplit2, fcmac1, sve_rot1,
26177 sve_rot2, SVE2_INT_CMLA_OP, SVE2_INT_CMUL_OP, SVE2_INT_CADD_OP): New.
26178 (rot): Add UNSPEC_FCMUL, UNSPEC_FCMUL180.
26179 (rot_op): Renamed to conj_op.
26180 * config/aarch64/aarch64-sve.md (cml<fcmac1><conj_op><mode>4,
26181 cmul<conj_op><mode>3): New.
26182 * config/aarch64/aarch64-sve2.md (cml<fcmac1><conj_op><mode>4,
26183 cmul<conj_op><mode>3): New.
26185 2021-01-15 David Malcolm <dmalcolm@redhat.com>
26189 (selftest::test_print_parseable_fixits_bytes_vs_display_columns):
26190 Escape the tempfile name when constructing the expected output.
26192 2021-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26194 * config/aarch64/aarch64-simd.md (*aarch64_<su>mlsl_hi<mode>):
26196 (aarch64_<su>mlsl_hi<mode>): ... This.
26197 (aarch64_<su>mlsl_hi<mode>): Define.
26198 (*aarch64_<su>mlsl<mode): Rename to...
26199 (aarch64_<su>mlsl<mode): ... This.
26200 * config/aarch64/aarch64-simd-builtins.def (smlsl, umlsl,
26201 smlsl_hi, umlsl_hi): Define builtins.
26202 * config/aarch64/arm_neon.h (vmlsl_high_s8, vmlsl_high_s16,
26203 vmlsl_high_s32, vmlsl_high_u8, vmlsl_high_u16, vmlsl_high_u32,
26204 vmlsl_s8, vmlsl_s16, vmlsl_s32, vmlsl_u8,
26205 vmlsl_u16, vmlsl_u32): Reimplement with builtins.
26207 2021-01-15 Uroš Bizjak <ubizjak@gmail.com>
26209 * config/i386/i386-c.c (ix86_target_macros):
26210 Use cpp_define_formatted for __SIZEOF_FLOAT80__ definition.
26212 2021-01-15 Richard Sandiford <richard.sandiford@arm.com>
26215 * config.gcc (aarch64*-*-*): Add aarch64-cc-fusion.o to extra_objs.
26216 * Makefile.in (RTL_SSA_H): New variable.
26217 * config/aarch64/t-aarch64 (aarch64-cc-fusion.o): New rule.
26218 * config/aarch64/aarch64-protos.h (make_pass_cc_fusion): Declare.
26219 * config/aarch64/aarch64-passes.def: Add pass_cc_fusion after
26221 * config/aarch64/aarch64-cc-fusion.cc: New file.
26223 2021-01-15 Richard Sandiford <richard.sandiford@arm.com>
26225 * recog.h (insn_change_watermark::~insn_change_watermark): Avoid
26226 calling cancel_changes for changes that no longer exist.
26228 2021-01-15 Richard Sandiford <richard.sandiford@arm.com>
26230 * rtl-ssa/functions.h (function_info::ref_defs): Rename to...
26231 (function_info::reg_defs): ...this.
26232 * rtl-ssa/member-fns.inl (function_info::ref_defs): Rename to...
26233 (function_info::reg_defs): ...this.
26235 2021-01-15 Christophe Lyon <christophe.lyon@linaro.org>
26238 * config/arm/arm_neon.h (vceqz_p64, vceqq_p64, vceqzq_p64): New.
26240 2021-01-15 Christophe Lyon <christophe.lyon@linaro.org>
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 Richard Biener <rguenther@suse.de>
26250 PR tree-optimization/96376
26251 * tree-vect-stmts.c (get_load_store_type): Disregard alignment
26252 for VMAT_INVARIANT.
26254 2021-01-15 Martin Liska <mliska@suse.cz>
26256 * doc/install.texi: Document that some tests need pytest module.
26257 * doc/sourcebuild.texi: Likewise.
26259 2021-01-15 Christophe Lyon <christophe.lyon@linaro.org>
26262 * config/arm/arm_neon.h (vceqz_p64, vceqq_p64, vceqzq_p64): New.
26264 2021-01-15 Christophe Lyon <christophe.lyon@linaro.org>
26266 * config/arm/mve.md (mve_vshrq_n_s<mode>_imm): New entry.
26267 (mve_vshrq_n_u<mode>_imm): Likewise.
26268 * config/arm/neon.md (vashr<mode>3, vlshr<mode>3): Move to ...
26269 * config/arm/vec-common.md: ... here.
26271 2021-01-15 Christophe Lyon <christophe.lyon@linaro.org>
26273 * config/arm/mve.md (mve_vshlq_<supf><mode>): Move to
26275 * config/arm/neon.md (vashl<mode>3): Delete.
26276 * config/arm/vec-common.md (mve_vshlq_<supf><mode>): New.
26277 (vasl<mode>3): New expander.
26279 2021-01-15 Richard Biener <rguenther@suse.de>
26281 PR tree-optimization/98685
26282 * tree-vect-slp.c (vect_schedule_slp_node): Refactor handling
26283 of vector extern defs.
26285 2021-01-14 David Malcolm <dmalcolm@redhat.com>
26288 * diagnostic.c (diagnostic_kind_text): Break out this array
26290 (diagnostic_build_prefix): ...here.
26291 (fancy_abort): Detect when diagnostic_initialize has not yet been
26292 called and fall back to a minimal implementation of printing the
26293 ICE, rather than segfaulting in internal_error.
26295 2021-01-14 David Malcolm <dmalcolm@redhat.com>
26297 * diagnostic.c (diagnostic_initialize): Eliminate
26298 parseable_fixits_p in favor of initializing extra_output_kind from
26299 GCC_EXTRA_DIAGNOSTIC_OUTPUT.
26300 (convert_column_unit): New function, split out from...
26301 (diagnostic_converted_column): ...this.
26302 (print_parseable_fixits): Add "column_unit" and "tabstop" params.
26303 Use them to call convert_column_unit on the column values.
26304 (diagnostic_report_diagnostic): Eliminate conditional on
26305 parseable_fixits_p in favor of a switch statement on
26306 extra_output_kind, passing the appropriate values to the new
26307 params of print_parseable_fixits.
26308 (selftest::test_print_parseable_fixits_none): Update for new
26309 params of print_parseable_fixits.
26310 (selftest::test_print_parseable_fixits_insert): Likewise.
26311 (selftest::test_print_parseable_fixits_remove): Likewise.
26312 (selftest::test_print_parseable_fixits_replace): Likewise.
26313 (selftest::test_print_parseable_fixits_bytes_vs_display_columns):
26315 (selftest::diagnostic_c_tests): Call it.
26316 * diagnostic.h (enum diagnostics_extra_output_kind): New.
26317 (diagnostic_context::parseable_fixits_p): Delete field in favor
26319 (diagnostic_context::extra_output_kind): ...this new field.
26320 * doc/invoke.texi (Environment Variables): Add
26321 GCC_EXTRA_DIAGNOSTIC_OUTPUT.
26322 * opts.c (common_handle_option): Update handling of
26323 OPT_fdiagnostics_parseable_fixits for change to diagnostic_context
26326 2021-01-14 Tamar Christina <tamar.christina@arm.com>
26328 * tree-vect-slp-patterns.c (class complex_operations_pattern,
26329 complex_operations_pattern::matches,
26330 complex_operations_pattern::recognize,
26331 complex_operations_pattern::build): New.
26332 (slp_patterns): Use it.
26334 2021-01-14 Tamar Christina <tamar.christina@arm.com>
26336 * internal-fn.def (COMPLEX_FMS, COMPLEX_FMS_CONJ): New.
26337 * optabs.def (cmls_optab, cmls_conj_optab): New.
26338 * doc/md.texi: Document them.
26339 * tree-vect-slp-patterns.c (class complex_fms_pattern,
26340 complex_fms_pattern::matches, complex_fms_pattern::recognize,
26341 complex_fms_pattern::build): New.
26343 2021-01-14 Tamar Christina <tamar.christina@arm.com>
26345 * internal-fn.def (COMPLEX_FMA, COMPLEX_FMA_CONJ): New.
26346 * optabs.def (cmla_optab, cmla_conj_optab): New.
26347 * doc/md.texi: Document them.
26348 * tree-vect-slp-patterns.c (vect_match_call_p,
26349 class complex_fma_pattern, vect_slp_reset_pattern,
26350 complex_fma_pattern::matches, complex_fma_pattern::recognize,
26351 complex_fma_pattern::build): New.
26353 2021-01-14 Tamar Christina <tamar.christina@arm.com>
26355 * internal-fn.def (COMPLEX_MUL, COMPLEX_MUL_CONJ): New.
26356 * optabs.def (cmul_optab, cmul_conj_optab): New.
26357 * doc/md.texi: Document them.
26358 * tree-vect-slp-patterns.c (vect_match_call_complex_mla,
26359 vect_normalize_conj_loc, is_eq_or_top, vect_validate_multiplication,
26360 vect_build_combine_node, class complex_mul_pattern,
26361 complex_mul_pattern::matches, complex_mul_pattern::recognize,
26362 complex_mul_pattern::build): New.
26364 2021-01-14 Tamar Christina <tamar.christina@arm.com>
26366 * tree-vect-slp.c (optimize_load_redistribution_1): New.
26367 (optimize_load_redistribution, vect_is_slp_load_node): New.
26368 (vect_match_slp_patterns): Use it.
26370 2021-01-14 Tamar Christina <tamar.christina@arm.com>
26372 * tree-vect-slp-patterns.c (complex_add_pattern::build):
26375 2021-01-14 Thomas Schwinge <thomas@codesourcery.com>
26377 * config/gcn/mkoffload.c (main): Create an offload image only in
26378 64-bit configurations.
26380 2021-01-14 H.J. Lu <hjl.tools@gmail.com>
26383 * config/i386/i386-options.c (ix86_option_override_internal):
26384 Issue an error for -fcf-protection with CF_BRANCH when compiling
26385 for 32-bit non-TARGET_CMOV targets.
26387 2021-01-14 Uroš Bizjak <ubizjak@gmail.com>
26390 * config/i386/i386-options.c (ix86_valid_target_attribute_inner_p):
26391 Remove declaration and initialization of shadow variable "ret".
26392 (ix86_option_override_internal): Remove delcaration of
26393 shadow variable "i". Redeclare shadowed variable to unsigned.
26394 * common/config/i386/i386-common.c (pta_size): Redeclare to unsigned.
26395 * config/i386/i386-builtins.c (get_builtin_code_for_version):
26396 Update for redeclaration.
26397 * config/i386/i386.h (pta_size): Ditto.
26399 2021-01-14 Richard Biener <rguenther@suse.de>
26401 PR tree-optimization/98674
26402 * tree-data-ref.c (base_supports_access_fn_components_p): New.
26403 (initialize_data_dependence_relation): For two bases without
26404 possible access fns resort to type size equality when determining
26405 shape compatibility.
26407 2021-01-14 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
26410 * config/arm/arm_neon.h: Replace calls to __builtin_vcge* by
26411 <=, >= operators in vcle and vcge intrinsics respectively.
26412 * config/arm/arm_neon_builtins.def: Remove entry for
26415 2021-01-14 Uroš Bizjak <ubizjak@gmail.com>
26418 * config/i386/i386-options.c (ix86_function_specific_save):
26419 Remove redundant assignment to opts->x_ix86_branch_cost.
26420 * config/i386/i386.c (ix86_prefetch_sse):
26421 Rename from x86_prefetch_sse. Update all uses.
26422 * config/i386/i386.h: Update for rename.
26423 * config/i386/i386-options.h: Ditto.
26425 2021-01-14 Jakub Jelinek <jakub@redhat.com>
26428 * config/i386/sse.md (*sse4_1_zero_extendv8qiv8hi2_3,
26429 *sse4_1_zero_extendv4hiv4si2_3, *sse4_1_zero_extendv2siv2di2_3):
26430 Use Bm instead of m for non-avx. Add isa attribute.
26432 2021-01-14 Jakub Jelinek <jakub@redhat.com>
26434 PR tree-optimization/96688
26435 * match.pd (~(X >> Y) -> ~X >> Y): New simplification if
26436 ~X can be simplified.
26438 2021-01-14 Richard Sandiford <richard.sandiford@arm.com>
26440 * tree-vect-stmts.c (vect_model_load_cost): Account for unused
26441 IFN_LOAD_LANES results.
26443 2021-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26445 * config/aarch64/aarch64-simd.md (aarch64_<su>xtl<mode>):
26447 (aarch64_xtn<mode>): Likewise.
26448 * config/aarch64/aarch64-simd-builtins.def (sxtl, uxtl, xtn):
26451 * config/aarch64/arm_neon.h (vmovl_s8): Reimplement using
26453 (vmovl_s16): Likewise.
26454 (vmovl_s32): Likewise.
26455 (vmovl_u8): Likewise.
26456 (vmovl_u16): Likewise.
26457 (vmovl_u32): Likewise.
26458 (vmovn_s16): Likewise.
26459 (vmovn_s32): Likewise.
26460 (vmovn_s64): Likewise.
26461 (vmovn_u16): Likewise.
26462 (vmovn_u32): Likewise.
26463 (vmovn_u64): Likewise.
26465 2021-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26467 * config/aarch64/aarch64-simd.md (aarch64_<su>qxtn2<mode>_le):
26469 (aarch64_<su>qxtn2<mode>_be): Likewise.
26470 (aarch64_<su>qxtn2<mode>): Likewise.
26471 * config/aarch64/aarch64-simd-builtins.def (sqxtn2, uqxtn2):
26473 * config/aarch64/iterators.md (SAT_TRUNC): Define code_iterator.
26474 (su): Handle ss_truncate and us_truncate.
26475 * config/aarch64/arm_neon.h (vqmovn_high_s16): Reimplement using
26477 (vqmovn_high_s32): Likewise.
26478 (vqmovn_high_s64): Likewise.
26479 (vqmovn_high_u16): Likewise.
26480 (vqmovn_high_u32): Likewise.
26481 (vqmovn_high_u64): Likewise.
26483 2021-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26485 * config/aarch64/aarch64-simd.md (aarch64_xtn2<mode>_le):
26487 (aarch64_xtn2<mode>_be): Likewise.
26488 (aarch64_xtn2<mode>): Likewise.
26489 * config/aarch64/aarch64-simd-builtins.def (xtn2): Define
26491 * config/aarch64/arm_neon.h (vmovn_high_s16): Reimplement using
26493 (vmovn_high_s32): Likewise.
26494 (vmovn_high_s64): Likewise.
26495 (vmovn_high_u16): Likewise.
26496 (vmovn_high_u32): Likewise.
26497 (vmovn_high_u64): Likewise.
26499 2021-01-13 Stafford Horne <shorne@gmail.com>
26501 * config/or1k/or1k.h (ASM_PREFERRED_EH_DATA_FORMAT): New macro.
26503 2021-01-13 Stafford Horne <shorne@gmail.com>
26505 * config/or1k/linux.h (TARGET_ASM_FILE_END): Define macro.
26507 2021-01-13 Stafford Horne <shorne@gmail.com>
26509 * config/or1k/or1k.h (TARGET_CPU_CPP_BUILTINS): Add builtin
26510 define for __or1k_hard_float__.
26512 2021-01-13 Stafford Horne <shorne@gmail.com>
26514 * config/or1k/or1k.h (NO_PROFILE_COUNTERS): Define as 1.
26515 (PROFILE_HOOK): Define to call _mcount.
26516 (FUNCTION_PROFILER): Change from abort to no-op.
26518 2021-01-13 Jakub Jelinek <jakub@redhat.com>
26520 PR tree-optimization/96691
26521 * match.pd ((~X | C) ^ D -> (X | C) ^ (~D ^ C),
26522 (~X & C) ^ D -> (X & C) ^ (D ^ C)): New simplifications if
26523 (~D ^ C) or (D ^ C) can be simplified.
26525 2021-01-13 Richard Biener <rguenther@suse.de>
26527 PR tree-optimization/92645
26528 * match.pd (BIT_FIELD_REF to conversion): Delay canonicalization
26529 until after vector lowering.
26531 2021-01-13 Richard Sandiford <richard.sandiford@arm.com>
26533 * config/aarch64/aarch64-sve.md (fnma<mode>4): Extend from SVE_FULL_I
26535 (@aarch64_pred_fnma<mode>, cond_fnma<mode>, *cond_fnma<mode>_2)
26536 (*cond_fnma<mode>_4, *cond_fnma<mode>_any): Likewise.
26538 2021-01-13 Richard Sandiford <richard.sandiford@arm.com>
26540 * config/aarch64/aarch64-sve.md (fma<mode>4): Extend from SVE_FULL_I
26542 (@aarch64_pred_fma<mode>, cond_fma<mode>, *cond_fma<mode>_2)
26543 (*cond_fma<mode>_4, *cond_fma<mode>_any): Likewise.
26545 2021-01-13 Richard Biener <rguenther@suse.de>
26547 PR tree-optimization/92645
26548 * tree-vect-slp.c (vect_build_slp_tree_1): Relax supported
26549 BIT_FIELD_REF argument.
26550 (vect_build_slp_tree_2): Record the desired vector type
26551 on the external vector def.
26552 (vectorizable_slp_permutation): Handle required punning
26553 of existing vector defs.
26555 2021-01-13 Richard Sandiford <richard.sandiford@arm.com>
26557 * rtl-ssa/accesses.h (def_lookup): Fix order of comparison results.
26559 2021-01-13 Richard Sandiford <richard.sandiford@arm.com>
26561 * config/sh/sh.md (movsf_ie): Remove operands[2] test.
26563 2021-01-13 Samuel Thibault <samuel.thibault@ens-lyon.org>
26565 * config.gcc [$target == *-*-gnu*]: Enable
26566 'default_gnu_indirect_function'.
26568 2021-01-13 Jakub Jelinek <jakub@redhat.com>
26571 * optabs.c (expand_vec_perm_const): Don't force v0 and v1 into
26572 registers before calling targetm.vectorize.vec_perm_const, only after
26574 * config/i386/i386-expand.c (ix86_vectorize_vec_perm_const): Handle
26575 two argument permutation when one operand is zero vector and only
26576 after that force operands into registers.
26577 * config/i386/sse.md (*avx2_zero_extendv16qiv16hi2_1): New
26578 define_insn_and_split pattern.
26579 (*avx512bw_zero_extendv32qiv32hi2_1): Likewise.
26580 (*avx512f_zero_extendv16hiv16si2_1): Likewise.
26581 (*avx2_zero_extendv8hiv8si2_1): Likewise.
26582 (*avx512f_zero_extendv8siv8di2_1): Likewise.
26583 (*avx2_zero_extendv4siv4di2_1): Likewise.
26584 * config/mips/mips.c (mips_vectorize_vec_perm_const): Force operands
26586 * config/arm/arm.c (arm_vectorize_vec_perm_const): Likewise.
26587 * config/sparc/sparc.c (sparc_vectorize_vec_perm_const): Likewise.
26588 * config/ia64/ia64.c (ia64_vectorize_vec_perm_const): Likewise.
26589 * config/aarch64/aarch64.c (aarch64_vectorize_vec_perm_const): Likewise.
26590 * config/rs6000/rs6000.c (rs6000_vectorize_vec_perm_const): Likewise.
26591 * config/gcn/gcn.c (gcn_vectorize_vec_perm_const): Likewise. Use std::swap.
26593 2021-01-13 Martin Liska <mliska@suse.cz>
26595 PR tree-optimization/98455
26596 * gimple-if-to-switch.cc (condition_info::record_phi_mapping):
26597 Record also virtual PHIs.
26598 (pass_if_to_switch::execute): Return TODO_cleanup_cfg only
26601 2021-01-13 Jonathan Wakely <jwakely@redhat.com>
26603 * doc/invoke.texi (C++ Modules): Fix typos.
26605 2021-01-13 Richard Biener <rguenther@suse.de>
26607 PR tree-optimization/98640
26608 * tree-ssa-sccvn.c (visit_nary_op): Do not try to
26609 handle plus or minus from a truncated operand to be
26612 2021-01-13 Jakub Jelinek <jakub@redhat.com>
26615 * config/i386/i386.md (*btr<mode>_1, *btr<mode>_2): New
26616 define_insn_and_split patterns.
26617 (splitter after *btr<mode>_2): New splitter.
26619 2021-01-13 Martin Liska <mliska@suse.cz>
26622 * cgraphunit.c (analyze_functions): Remove dead code.
26624 2021-01-13 Qian Jianhua <qianjh@cn.fujitsu.com>
26626 * config/aarch64/aarch64-cost-tables.h (a64fx_extra_costs): New.
26627 * config/aarch64/aarch64.c (a64fx_addrcost_table): New.
26628 (a64fx_regmove_cost, a64fx_vector_cost): New.
26629 (a64fx_tunings): Use the new added cost tables.
26631 2021-01-13 Jakub Jelinek <jakub@redhat.com>
26634 * config/i386/predicates.md (pmovzx_parallel): New predicate.
26635 * config/i386/sse.md (*sse4_1_zero_extendv8qiv8hi2_3): New
26636 define_insn_and_split pattern.
26637 (*sse4_1_zero_extendv4hiv4si2_3): Likewise.
26638 (*sse4_1_zero_extendv2siv2di2_3): Likewise.
26640 2021-01-13 Julian Brown <julian@codesourcery.com>
26642 * config/gcn/gcn.c (gcn_conditional_register_usage): Remove dead code
26643 to fix v0 register.
26645 2021-01-13 Julian Brown <julian@codesourcery.com>
26647 * config/gcn/gcn.c (gcn_md_reorg): Fix case where EXEC reg is live
26650 2021-01-13 Julian Brown <julian@codesourcery.com>
26652 * config/gcn/gcn-valu.md (recip<mode>2<exec>, recip<mode>2): Use unspec
26653 for reciprocal-approximation instructions.
26654 (div<mode>3): Use fused multiply-accumulate operations for reciprocal
26655 refinement and division result.
26656 * config/gcn/gcn.md (UNSPEC_RCP): New unspec constant.
26658 2021-01-13 Julian Brown <julian@codesourcery.com>
26660 * config/gcn/gcn-valu.md (subdf): Rename to...
26663 2021-01-12 Martin Liska <mliska@suse.cz>
26665 * gcov.c (source_info::debug): Fix printf format for 32-bit hosts.
26667 2021-01-12 Andrea Corallo <andrea.corallo@arm.com>
26669 * function-abi.h: Fix typo.
26671 2021-01-12 Christophe Lyon <christophe.lyon@linaro.org>
26675 * config/arm/arm.h (ARM_HAVE_NEON_V8QI_LDST): New macro.
26676 (ARM_HAVE_NEON_V16QI_LDST, ARM_HAVE_NEON_V4HI_LDST): Likewise.
26677 (ARM_HAVE_NEON_V8HI_LDST, ARM_HAVE_NEON_V2SI_LDST): Likewise.
26678 (ARM_HAVE_NEON_V4SI_LDST, ARM_HAVE_NEON_V4HF_LDST): Likewise.
26679 (ARM_HAVE_NEON_V8HF_LDST, ARM_HAVE_NEON_V4BF_LDST): Likewise.
26680 (ARM_HAVE_NEON_V8BF_LDST, ARM_HAVE_NEON_V2SF_LDST): Likewise.
26681 (ARM_HAVE_NEON_V4SF_LDST, ARM_HAVE_NEON_DI_LDST): Likewise.
26682 (ARM_HAVE_NEON_V2DI_LDST): Likewise.
26683 (ARM_HAVE_V8QI_LDST, ARM_HAVE_V16QI_LDST): Likewise.
26684 (ARM_HAVE_V4HI_LDST, ARM_HAVE_V8HI_LDST): Likewise.
26685 (ARM_HAVE_V2SI_LDST, ARM_HAVE_V4SI_LDST, ARM_HAVE_V4HF_LDST): Likewise.
26686 (ARM_HAVE_V8HF_LDST, ARM_HAVE_V4BF_LDST, ARM_HAVE_V8BF_LDST): Likewise.
26687 (ARM_HAVE_V2SF_LDST, ARM_HAVE_V4SF_LDST, ARM_HAVE_DI_LDST): Likewise.
26688 (ARM_HAVE_V2DI_LDST): Likewise.
26689 * config/arm/mve.md (*movmisalign<mode>_mve_store): New pattern.
26690 (*movmisalign<mode>_mve_load): New pattern.
26691 * config/arm/neon.md (movmisalign<mode>): Move to ...
26692 * config/arm/vec-common.md: ... here.
26694 2021-01-12 Vladimir N. Makarov <vmakarov@redhat.com>
26697 * lra-eliminations.c (eliminate_regs_in_insn): Add transformation
26698 of pattern 'plus (plus (hard reg, const), pseudo)'.
26700 2021-01-12 Richard Biener <rguenther@suse.de>
26702 PR tree-optimization/98550
26703 * tree-vect-slp.c (vect_record_max_nunits): Check whether
26704 the group size is a multiple of the vector element count.
26705 (vect_build_slp_tree_1): When we need to fail because
26706 the vector type choosen causes unrolling do so lazily
26707 without affecting matches only at the end to guide group splitting.
26709 2021-01-12 Martin Liska <mliska@suse.cz>
26712 * optc-save-gen.awk: Compare also n_target_save vars with
26715 2021-01-12 Martin Liska <mliska@suse.cz>
26717 * gcov.c (source_info::debug): New.
26718 (print_usage): Add --debug (-D) option.
26719 (process_args): Likewise.
26720 (generate_results): Call src->debug after
26721 accumulate_line_counts.
26722 (read_graph_file): Properly assign id for EXIT_BLOCK.
26723 * profile.c (branch_prob): Dump function body before it is
26726 2021-01-12 Jakub Jelinek <jakub@redhat.com>
26728 PR tree-optimization/98629
26729 * tree-ssa-math-opts.c (arith_overflow_check_p): Don't update use_stmt
26730 unless returning non-zero.
26732 2021-01-12 Jakub Jelinek <jakub@redhat.com>
26734 PR tree-optimization/95731
26735 * tree-ssa-reassoc.c (optimize_range_tests_cmp_bitwise): Also optimize
26736 x < 0 && y < 0 && z < 0 into (x | y | z) < 0 for signed x, y, z.
26737 (optimize_range_tests): Call optimize_range_tests_cmp_bitwise
26738 only after optimize_range_tests_var_bound.
26740 2021-01-12 Jakub Jelinek <jakub@redhat.com>
26742 * configure.ac: Ensure c/Make-lang.in comes first in @all_lang_makefrags@.
26743 * configure: Regenerated.
26745 2021-01-12 liuhongt <hongtao.liu@intel.com>
26748 * config/i386/i386-builtins.h (BUILTIN_DESC_SWAP_OPERANDS):
26750 * config/i386/i386-expand.c (ix86_expand_sse_comi): Delete
26753 2021-01-12 Alexandre Oliva <oliva@adacore.com>
26755 * ssa-iterators.h (end_imm_use_stmt_traverse): Forward
26757 (auto_end_imm_use_stmt_traverse): New struct.
26758 (FOR_EACH_IMM_USE_STMT): Use it.
26759 (BREAK_FROM_IMM_USE_STMT, RETURN_FROM_IMM_USE_STMT): Remove,
26761 * gimple-ssa-strength-reduction.c: ... here, ...
26762 * graphite-scop-detection.c: ... here, ...
26763 * ipa-modref.c, ipa-pure-const.c, ipa-sra.c: ... here, ...
26764 * tree-predcom.c, tree-ssa-ccp.c: ... here, ...
26765 * tree-ssa-dce.c, tree-ssa-dse.c: ... here, ...
26766 * tree-ssa-loop-ivopts.c, tree-ssa-math-opts.c: ... here, ...
26767 * tree-ssa-phiprop.c, tree-ssa.c: ... here, ...
26768 * tree-vect-slp.c: ... and here, ...
26769 * doc/tree-ssa.texi: ... and the example here.
26771 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
26773 * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3): Extend from
26774 SVE_FULL_I to SVE_I. Generate an UNSPEC_PRED_X.
26775 (*sdiv_pow2<mode>3): New pattern.
26776 (@cond_<sve_int_op><mode>): Extend from SVE_FULL_I to SVE_I.
26777 Wrap the ASRD in an UNSPEC_PRED_X.
26778 (*cond_<sve_int_op><mode>_2): Likewise. Replace the UNSPEC_PRED_X
26779 predicate with a constant PTRUE, if it isn't already.
26780 (*cond_<sve_int_op><mode>_z): Replace with...
26781 (*cond_<sve_int_op><mode>_any): ...this new pattern.
26783 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
26785 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2): Extend from
26786 SVE_FULL_I to SVE_I.
26787 (*cond_bic<mode>_any): Likewise.
26789 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
26791 * config/aarch64/aarch64-sve.md (<su>mul<mode>3_highpart)
26792 (@aarch64_pred_<MUL_HIGHPART:optab><mode>): Extend from SVE_FULL_I
26795 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
26797 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): Extend from
26798 SVE_FULL_I to SVE_I.
26799 (*aarch64_cond_<su>abd<mode>_2): Likewise.
26800 (*aarch64_cond_<su>abd<mode>_any): Likewise.
26801 (@aarch64_pred_<su>abd<mode>): Likewise. Use UNSPEC_PRED_X
26802 for the max and min but not for the minus.
26803 (*aarch64_cond_<su>abd<mode>_3): New pattern.
26805 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
26807 * config/aarch64/iterators.md (SVE_24I): New iterator.
26808 * config/aarch64/aarch64-sve.md (*aarch64_adr<mode>_shift): Extend from
26809 SVE_FULL_SDI to SVE_24I. Use containers rather than elements.
26811 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
26813 * config/aarch64/aarch64-sve.md (@cond_<SVE_INT_BINARY:optab><mode>)
26814 (*cond_<SVE_INT_BINARY:optab><mode>_2): Extend from SVE_FULL_I
26816 (*cond_<SVE_INT_BINARY:optab><mode>_3): Likewise.
26817 (*cond_<SVE_INT_BINARY:optab><mode>_any): Likewise.
26818 (*cond_<SVE_INT_BINARY:optab><mode>_2_const): Likewise.
26819 (*cond_<SVE_INT_BINARY:optab><mode>_any_const): Likewise.
26821 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
26823 * config/aarch64/aarch64-sve.md (<SVE_INT_BINARY_IMM:optab><mode>3)
26824 (@aarch64_pred_<SVE_INT_BINARY_IMM:optab><mode>)
26825 (*post_ra_<SVE_INT_BINARY_IMM:optab><mode>3): Extend from SVE_FULL_I
26828 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
26830 * config/aarch64/aarch64-sve.md (<ASHIFT:optab><mode>3)
26831 (v<ASHIFT:optab><mode>3, @aarch64_pred_<optab><mode>)
26832 (*post_ra_v<ASHIFT:optab><mode>3): Extend from SVE_FULL_I to SVE_I.
26834 2021-01-11 Martin Liska <mliska@suse.cz>
26837 * symtab-clones.h (clone_info::release): Release
26838 symtab::m_clones with ggc_delete as it's a GGC memory.
26840 2021-01-11 Matthias Klose <doko@ubuntu.com>
26842 * Makefile.in (LINK_PROGRESS): Show the link target.
26844 2021-01-11 Richard Biener <rguenther@suse.de>
26846 PR tree-optimization/91403
26847 * tree-vect-data-refs.c (vect_analyze_group_access_1): Cap
26848 single-element interleaving group size at 4096 elements.
26850 2021-01-11 Richard Biener <rguenther@suse.de>
26852 PR tree-optimization/98526
26853 * tree-vect-loop.c (vect_model_reduction_cost): Remove costing
26854 of the actual reduction op for the regular case.
26855 (vectorizable_reduction): Cost the stmts
26856 vect_transform_reduction produces here.
26858 2021-01-11 Andreas Krebbel <krebbel@linux.ibm.com>
26860 * tree-ssa-forwprop.c (simplify_vector_constructor): For
26861 big-endian, use UNPACK[_FLOAT]_HI.
26863 2021-01-11 Tamar Christina <tamar.christina@arm.com>
26865 * tree-vect-slp-patterns.c (class complex_pattern,
26866 class complex_add_pattern): Add parameters to matches.
26867 (complex_add_pattern::build): Free memory.
26868 (complex_add_pattern::matches): Move validation end of match.
26869 (complex_add_pattern::recognize): Likewise.
26871 2021-01-11 Tamar Christina <tamar.christina@arm.com>
26873 * tree-vect-slp-patterns.c (linear_loads_p): Fix externals.
26875 2021-01-11 Tamar Christina <tamar.christina@arm.com>
26877 * tree-vect-slp-patterns.c (is_linear_load_p): Fix ambiguity.
26879 2021-01-11 Jakub Jelinek <jakub@redhat.com>
26881 PR tree-optimization/95867
26882 * tree-ssa-math-opts.h: New header.
26883 * tree-ssa-math-opts.c: Include tree-ssa-math-opts.h.
26884 (powi_as_mults): No longer static. Use build_one_cst instead of
26885 build_real. Formatting fix.
26886 * tree-ssa-reassoc.c: Include tree-ssa-math-opts.h.
26887 (attempt_builtin_powi): Handle multiplication reassociation without
26888 powi_fndecl using powi_as_mults.
26889 (reassociate_bb): For integral types don't require
26890 -funsafe-math-optimizations to call attempt_builtin_powi.
26892 2021-01-11 Jakub Jelinek <jakub@redhat.com>
26894 PR tree-optimization/95852
26895 * tree-ssa-math-opts.c (maybe_optimize_guarding_check): Change
26896 mul_stmts parameter type to vec<gimple *> &. Before cond_stmt
26897 allow in the bb any of the stmts in that vector, div_stmt and
26898 up to 3 cast stmts.
26899 (arith_cast_equal_p): New function.
26900 (arith_overflow_check_p): Add cast_stmt argument, handle signed
26901 multiply overflow checks.
26902 (match_arith_overflow): Adjust caller. Handle signed multiply
26905 2021-01-11 Jakub Jelinek <jakub@redhat.com>
26907 PR tree-optimization/95852
26908 * tree-ssa-math-opts.c (maybe_optimize_guarding_check): New function.
26909 (uaddsub_overflow_check_p): Renamed to ...
26910 (arith_overflow_check_p): ... this. Handle also multiplication
26911 with overflow check.
26912 (match_uaddsub_overflow): Renamed to ...
26913 (match_arith_overflow): ... this. Add cfg_changed argument. Handle
26914 also multiplication with overflow check. Adjust function comment.
26915 (math_opts_dom_walker::after_dom_children): Adjust callers. Call
26916 match_arith_overflow also for MULT_EXPR.
26918 2021-01-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26920 * config/aarch64/arm_neon.h (vmovl_s8): Reimplement using
26921 __builtin_convertvector.
26922 (vmovl_s16): Likewise.
26923 (vmovl_s32): Likewise.
26924 (vmovl_u8): Likewise.
26925 (vmovl_u16): Likewise.
26926 (vmovl_u32): Likewise.
26927 (vmovn_s16): Likewise.
26928 (vmovn_s32): Likewise.
26929 (vmovn_s64): Likewise.
26930 (vmovn_u16): Likewise.
26931 (vmovn_u32): Likewise.
26932 (vmovn_u64): Likewise.
26934 2021-01-11 Martin Liska <mliska@suse.cz>
26936 * gimple-if-to-switch.cc (struct condition_info): Use auto_var.
26937 (if_chain::is_beneficial): Delete clusters
26938 (find_conditions): Make second argument of conditions_in_bbs a
26939 pointer so that we control over it's lifetime.
26940 (pass_if_to_switch::execute): Delete them.
26942 2021-01-11 Kewen Lin <linkw@linux.ibm.com>
26944 * ira.c (move_unallocated_pseudos): Check other_reg and skip if
26947 2021-01-09 Maciej W. Rozycki <macro@linux-mips.org>
26949 * config/vax/vax.md (cc): Remove mode attribute.
26950 (subst_<cc>, subst_f<cc>): Rename to...
26951 (subst_<mode>, subst_f<VAXccnz:mode>): ... these respectively.
26952 (*cbranch<VAXint:mode>4_<VAXcc:mode>): Update for `cc' removal.
26953 (*cbranch<VAXfp:mode>4_<VAXccnz:mode>): Likewise.
26954 (*branch_<mode>, *branch_<mode>_reversed): Likewise.
26956 2021-01-09 Maciej W. Rozycki <macro@linux-mips.org>
26958 * config/vax/vax.md (subst_f<cc>): Add mode to operands and
26959 `const_double_zero'.
26961 2021-01-09 Maciej W. Rozycki <macro@linux-mips.org>
26963 * config/pdp11/pdp11.md (PDPfp): New mode iterator.
26964 (fcc_cc, fcc_ccnz): Use it. Add mode to `const_double_zero' and
26967 2021-01-09 Maciej W. Rozycki <macro@linux-mips.org>
26969 * genemit.c (gen_exp) <CONST_DOUBLE>: Handle `const_double_zero'
26971 * read-rtl.c (rtx_reader::read_rtx_code): Handle machine mode
26972 with `const_double_zero'.
26973 * doc/rtl.texi (Constant Expression Types): Document it.
26975 2021-01-09 Jakub Jelinek <jakub@redhat.com>
26978 * tree-cfg.c (verify_gimple_assign_binary): Allow lhs of
26979 POINTER_DIFF_EXPR to be any integral type.
26981 2021-01-09 Jakub Jelinek <jakub@redhat.com>
26983 PR rtl-optimization/98603
26984 * function.c (instantiate_virtual_regs_in_insn): For asm goto
26985 with impossible constraints, drop all SETs, CLOBBERs, drop PARALLEL
26986 if any, set ASM_OPERANDS mode to VOIDmode and change
26987 ASM_OPERANDS_OUTPUT_CONSTRAINT and ASM_OPERANDS_OUTPUT_IDX.
26989 2021-01-09 Alexandre Oliva <oliva@gnu.org>
26992 * final.c (notice_source_line): Narrow down the condition to
26993 skip a line-0 marker.
26995 2021-01-08 Sergei Trofimovich <siarheit@google.com>
26997 * ipa-modref.c (merge_call_side_effects): Fix
26998 linebreak split by reordering two print calls.
27000 2021-01-08 Ilya Leoshkevich <iii@linux.ibm.com>
27002 * config/s390/vector.md (*tf_to_fprx2_0): Rename from
27003 "*mov_tf_to_fprx2_0" for consistency, fix constraint.
27004 (*tf_to_fprx2_1): Rename from "*mov_tf_to_fprx2_1" for
27005 consistency, fix constraint.
27007 2021-01-08 Ilya Leoshkevich <iii@linux.ibm.com>
27009 * config/s390/s390-c.c (s390_def_or_undef_macro): Accept
27010 callables instead of mask values.
27011 (struct target_flag_set_p): New predicate.
27012 (s390_cpu_cpp_builtins_internal): Define or undefine
27013 __LONG_DOUBLE_VX__ macro.
27015 2021-01-08 H.J. Lu <hjl.tools@gmail.com>
27018 * config/i386/i386.c (x86_function_profiler): Use R10 and R11
27019 to call mcount in large model with PIC for NO_PROFILE_COUNTERS
27022 2021-01-08 Richard Biener <rguenther@suse.de>
27024 * tree-ssa-sccvn.c (pass_fre::execute): Reset the SCEV hash table.
27026 2021-01-08 Richard Biener <rguenther@suse.de>
27028 * tree-vect-slp.c (scalar_stmts_to_slp_tree_map_t): Fix.
27029 (vect_build_slp_tree): On cache hit release the matched
27030 scalar stmts vector.
27031 * tree-vect-stmts.c (vectorizable_store): Properly free
27032 vec_oprnds before possibly gathering them again.
27034 2021-01-08 Richard Biener <rguenther@suse.de>
27036 PR tree-optimization/98544
27037 * tree-vect-slp.c (vect_optimize_slp): Always materialize
27038 permutes at a permute node.
27040 2021-01-08 H.J. Lu <hjl.tools@gmail.com>
27043 * config/i386/i386.c (x86_function_profiler): Use R10 to call
27044 mcount in large model. Sorry for large model with PIC.
27046 2021-01-08 Jakub Jelinek <jakub@redhat.com>
27049 * config/i386/i386.opt (ix86_cmodel, ix86_incoming_stack_boundary_arg,
27050 ix86_pmode, ix86_preferred_stack_boundary_arg, ix86_regparm,
27051 ix86_veclibabi_type): Remove x_ prefix, use TargetVariable instead of
27052 TargetSave and initialize for variables with enum types.
27053 (mfentry, mstack-protector-guard-reg=, mstack-protector-guard-offset=,
27054 mstack-protector-guard-symbol=): Add Save.
27055 * config/i386/i386-options.c (ix86_function_specific_save,
27056 ix86_function_specific_restore): Don't save or restore x_ix86_cmodel,
27057 x_ix86_incoming_stack_boundary_arg, x_ix86_pmode,
27058 x_ix86_preferred_stack_boundary_arg, x_ix86_regparm,
27059 x_ix86_veclibabi_type.
27061 2021-01-08 Richard Sandiford <richard.sandiford@arm.com>
27063 * config/aarch64/aarch64-sve.md (*cnot<mode>): Extend from
27064 SVE_FULL_I to SVE_I.
27065 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
27067 2021-01-08 Richard Sandiford <richard.sandiford@arm.com>
27069 * config/aarch64/aarch64-sve.md (*cond_uxt<mode>_2): Extend from
27070 SVE_FULL_I to SVE_I.
27071 (*cond_uxt<mode>_any): Likewise.
27073 2021-01-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27075 * config/aarch64/iterators.md (Vwhalf): New iterator.
27076 * config/aarch64/aarch64-simd.md (aarch64_<sur>adalp<mode>_3):
27078 (aarch64_<sur>adalp<mode>): ... This. Make more
27080 (<sur>sadv16qi): Adjust callsite of the above.
27081 * config/aarch64/aarch64-simd-builtins.def (sadalp, uadalp): New
27083 * config/aarch64/arm_neon.h (vpadal_s8): Reimplement using
27085 (vpadal_s16): Likewise.
27086 (vpadal_u8): Likewise.
27087 (vpadal_u16): Likewise.
27088 (vpadalq_s8): Likewise.
27089 (vpadalq_s16): Likewise.
27090 (vpadalq_s32): Likewise.
27091 (vpadalq_u8): Likewise.
27092 (vpadalq_u16): Likewise.
27093 (vpadalq_u32): Likewise.
27095 2021-01-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27097 * config/aarch64/aarch64-simd.md (aarch64_<su>abd<mode>_3):
27099 (aarch64_<su>abd<mode>): ... This.
27100 (<sur>sadv16qi): Adjust callsite of the above.
27101 * config/aarch64/aarch64-simd-builtins.def (sabd, uabd): Define
27103 * config/aarch64/arm_neon.h (vabd_s8): Reimplement using
27105 (vabd_s16): Likewise.
27106 (vabd_s32): Likewise.
27107 (vabd_u8): Likewise.
27108 (vabd_u16): Likewise.
27109 (vabd_u32): Likewise.
27110 (vabdq_s8): Likewise.
27111 (vabdq_s16): Likewise.
27112 (vabdq_s32): Likewise.
27113 (vabdq_u8): Likewise.
27114 (vabdq_u16): Likewise.
27115 (vabdq_u32): Likewise.
27117 2021-01-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27119 * config/aarch64/aarch64-simd-builtins.def (saba, uaba): Define
27121 * config/aarch64/arm_neon.h (vaba_s8): Implement using builtin.
27122 (vaba_s16): Likewise.
27123 (vaba_s32): Likewise.
27124 (vaba_u8): Likewise.
27125 (vaba_u16): Likewise.
27126 (vaba_u32): Likewise.
27127 (vabaq_s8): Likewise.
27128 (vabaq_s16): Likewise.
27129 (vabaq_s32): Likewise.
27130 (vabaq_u8): Likewise.
27131 (vabaq_u16): Likewise.
27132 (vabaq_u32): Likewise.
27134 2021-01-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27136 * config/aarch64/aarch64-simd.md (aba<mode>_3): Rename to...
27137 (aarch64_<su>aba<mode>): ... This. Handle uaba as well.
27138 Change RTL pattern to match.
27140 2021-01-08 Kito Cheng <kito.cheng@sifive.com>
27142 * common/config/riscv/riscv-common.c (riscv_current_subset_list): New.
27143 * config/riscv/riscv-c.c (riscv-subset.h): New.
27144 (INCLUDE_STRING): Define.
27145 (riscv_cpu_cpp_builtins): Add new style architecture extension
27147 * config/riscv/riscv-subset.h (riscv_subset_list::begin): New.
27148 (riscv_subset_list::end): New.
27149 (riscv_current_subset_list): New.
27151 2021-01-08 Kito Cheng <kito.cheng@sifive.com>
27153 * common/config/riscv/riscv-common.c (RISCV_DONT_CARE_VERSION):
27154 Move to riscv-subset.h.
27155 (struct riscv_subset_t): Ditto.
27156 (class riscv_subset_list): Ditto.
27157 * config/riscv/riscv-subset.h (RISCV_DONT_CARE_VERSION): Move
27158 from riscv-common.c.
27159 (struct riscv_subset_t): Ditto.
27160 (class riscv_subset_list): Ditto.
27161 * config/riscv/t-riscv ($(common_out_file)): Add file
27164 2021-01-07 Jakub Jelinek <jakub@redhat.com>
27167 * config/i386/i386.md (*bmi_blsi_<mode>_cmp, *bmi_blsi_<mode>_ccno):
27168 New define_insn patterns.
27170 2021-01-07 Richard Sandiford <richard.sandiford@arm.com>
27172 * config/aarch64/aarch64-sve.md (@cond_<SVE_INT_UNARY:optab><mode>)
27173 (*cond_<SVE_INT_UNARY:optab><mode>_2): Extend from SVE_FULL_I to SVE_I.
27174 (*cond_<SVE_INT_UNARY:optab><mode>_any): Likewise.
27176 2021-01-07 Richard Sandiford <richard.sandiford@arm.com>
27178 PR tree-optimization/98560
27179 * internal-fn.def (IFN_VCONDU, IFN_VCONDEQ): Use type vec_cond.
27180 * internal-fn.c (vec_cond_mask_direct): Get the data mode from
27182 (vec_cond_direct): Likewise argument 2.
27183 (vec_condu_direct, vec_condeq_direct): Delete.
27184 (expand_vect_cond_optab_fn): Rename to...
27185 (expand_vec_cond_optab_fn): ...this, replacing old macro.
27186 (expand_vec_condu_optab_fn, expand_vec_condeq_optab_fn): Delete.
27187 (expand_vect_cond_mask_optab_fn): Rename to...
27188 (expand_vec_cond_mask_optab_fn): ...this, replacing old macro.
27189 (direct_vec_cond_mask_optab_supported_p): Treat the optab as a
27191 (direct_vec_cond_optab_supported_p): Likewise.
27192 (direct_vec_condu_optab_supported_p): Delete.
27193 (direct_vec_condeq_optab_supported_p): Delete.
27194 * gimple-isel.cc: Include internal-fn.h.
27195 (gimple_expand_vec_cond_expr): Check that IFN_VCONDEQ is supported
27198 2021-01-07 Richard Sandiford <richard.sandiford@arm.com>
27200 PR tree-optimization/98560
27201 * gimple-isel.cc (gimple_expand_vec_cond_expr): If we fail to use
27202 IFN_VCOND{,U,EQ}, fall back on IFN_VCOND_MASK.
27204 2021-01-07 Uroš Bizjak <ubizjak@gmail.com>
27206 * config/i386/i386.md (insn): Merge from plusminus_insn, shift_insn,
27207 rotate_insn and optab code attributes.
27208 Update all uses to merged code attribute.
27209 * config/i386/sse.md: Update all uses to merged code attribute.
27210 * config/i386/mmx.md: Update all uses to merged code attribute.
27212 2021-01-07 Jakub Jelinek <jakub@redhat.com>
27214 PR tree-optimization/98568
27215 * gimple-ssa-store-merging.c (bswap_view_convert): New function.
27216 (bswap_replace): Use it.
27218 2021-01-06 Vladimir N. Makarov <vmakarov@redhat.com>
27220 PR rtl-optimization/97978
27221 * lra-int.h (lra_hard_reg_split_p): New external.
27222 * lra.c (lra_hard_reg_split_p): New global.
27223 (lra): Set up lra_hard_reg_split_p after splitting a hard reg.
27224 * lra-assigns.c (lra_assign): Don't check allocation correctness
27225 after hard reg splitting.
27227 2021-01-06 Martin Sebor <msebor@redhat.com>
27230 * builtins.c (new_delete_mismatch_p): New overload.
27231 (new_delete_mismatch_p (tree, tree)): Call it.
27233 2021-01-06 Alexandre Oliva <oliva@adacore.com>
27235 * Makefile.in (T_GLIMITS_H): New.
27236 (stmp-int-hdrs): Depend on it, use it.
27237 * config/t-vxworks (T_GLIMITS_H): Override it.
27238 (vxw-glimits.h): New.
27240 2021-01-06 Richard Biener <rguenther@suse.de>
27242 PR tree-optimization/98513
27243 * value-range.cc (intersect_ranges): Compare the upper bounds
27244 for the expected relation.
27246 2021-01-06 Gerald Pfeifer <gerald@pfeifer.com>
27249 2020-12-28 Gerald Pfeifer <gerald@pfeifer.com>
27251 * doc/standards.texi (HSAIL): Remove section.
27253 2021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
27255 * configure: Re-generate.
27257 2021-01-05 Jakub Jelinek <jakub@redhat.com>
27259 * doc/invoke.texi (-std=c++20): Adjust for the publication of
27260 ISO 14882:2020 standard.
27261 * doc/standards.texi: Likewise.
27263 2021-01-05 Jakub Jelinek <jakub@redhat.com>
27265 PR tree-optimization/94802
27266 * expr.h (maybe_optimize_sub_cmp_0): Declare.
27267 * expr.c: Include tree-pretty-print.h and flags.h.
27268 (maybe_optimize_sub_cmp_0): New function.
27269 (do_store_flag): Use it.
27270 * cfgexpand.c (expand_gimple_cond): Likewise.
27272 2021-01-05 Richard Sandiford <richard.sandiford@arm.com>
27274 * mux-utils.h (pointer_mux::m_ptr): Tweak description of contents.
27275 * rtlanal.c (simple_regno_set): Tweak description to clarify the
27278 2021-01-05 Richard Biener <rguenther@suse.de>
27280 PR tree-optimization/98516
27281 * tree-vect-slp.c (vect_optimize_slp): Permute the incoming
27282 lanes when materializing on a VEC_PERM node.
27283 (vectorizable_slp_permutation): Dump the permute properly.
27285 2021-01-05 Richard Biener <rguenther@suse.de>
27287 * tree-vect-slp.c (vect_slp_region): Move debug counter
27288 to cover individual subgraphs.
27290 2021-01-05 Richard Biener <rguenther@suse.de>
27292 PR tree-optimization/98428
27293 * tree-vect-slp.c (vect_build_slp_tree_1): Properly reject
27294 vector lane extracts for loop vectorization.
27296 2021-01-05 Jakub Jelinek <jakub@redhat.com>
27298 PR tree-optimization/98514
27299 * tree-ssa-reassoc.c (bb_rank): Change type from long * to
27301 (operand_rank): Change type from hash_map<tree, long> to
27302 hash_map<tree, int64_t>.
27303 (phi_rank): Change return type from long to int64_t.
27304 (loop_carried_phi): Change block_rank variable type from long to
27306 (propagate_rank): Change return type, rank parameter type and
27307 op_rank variable type from long to int64_t.
27308 (find_operand_rank): Change return type from long to int64_t
27309 and change slot variable type from long * to int64_t *.
27310 (insert_operand_rank): Change rank parameter type from long to
27312 (get_rank): Change return type and rank variable type from long to
27313 int64_t. Use PRId64 instead of ld to print the rank.
27314 (init_reassoc): Change rank variable type from long to int64_t
27315 and adjust correspondingly bb_rank and operand_rank initialization.
27317 2021-01-05 Jakub Jelinek <jakub@redhat.com>
27319 PR tree-optimization/96928
27320 * tree-ssa-phiopt.c (xor_replacement): New function.
27321 (tree_ssa_phiopt_worker): Call it.
27323 2021-01-05 Jakub Jelinek <jakub@redhat.com>
27325 PR tree-optimization/96930
27326 * match.pd ((A / (1 << B)) -> (A >> B)): If A is extended
27327 from narrower value which has the same type as 1 << B, perform
27328 the right shift on the narrower value followed by extension.
27330 2021-01-05 Jakub Jelinek <jakub@redhat.com>
27332 PR tree-optimization/96239
27333 * gimple-ssa-store-merging.c (maybe_optimize_vector_constructor): New
27335 (get_status_for_store_merging): Don't return BB_INVALID for blocks
27336 with potential bswap optimizable CONSTRUCTORs.
27337 (pass_store_merging::execute): Optimize vector CONSTRUCTORs with bswap
27340 2021-01-05 Richard Biener <rguenther@suse.de>
27342 PR tree-optimization/98381
27343 * tree.c (vector_element_bits): Properly compute bool vector
27345 * tree-vect-loop.c (vectorizable_live_operation): Properly
27346 compute the last lane bit offset.
27348 2021-01-05 Uroš Bizjak <ubizjak@gmail.com>
27351 * config/i386/sse.md (sse_cvtps2pi): Redefine as define_insn_and_split.
27352 Clear the top 64 bytes of the input XMM register.
27353 (sse_cvttps2pi): Ditto.
27355 2021-01-05 Uroš Bizjak <ubizjak@gmail.com>
27358 * config/i386/xopintrin.h (_mm256_cmov_si256): New.
27360 2021-01-05 H.J. Lu <hjl.tools@gmail.com>
27363 * config/i386/xmmintrin.h (_mm_extract_pi16): Cast to unsigned
27366 2021-01-05 Claudiu Zissulescu <claziss@synopsys.com>
27368 * config/arc/arc.md (maddsidi4_split): Use ACC_REG_FIRST.
27369 (umaddsidi4_split): Likewise.
27371 2021-01-05 liuhongt <hongtao.liu@intel.com>
27374 * config/i386/sse.md (*sse2_pmovskb_zexthisi): New
27375 define_insn_and_split for zero_extend of subreg HI of pmovskb
27377 (*sse2_pmovskb_zexthisi): Add new combine splitters for
27378 zero_extend of not of subreg HI of pmovskb result.
27380 2021-01-05 Richard Sandiford <richard.sandiford@arm.com>
27383 * explow.c (convert_memory_address_addr_space_1): Handle UNSPECs
27385 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Use
27386 convert_memory_address to convert symbolic immediates to ptr_mode
27387 before forcing them to memory.
27389 2021-01-05 Richard Sandiford <richard.sandiford@arm.com>
27391 PR rtl-optimization/97144
27392 * recog.c (constrain_operands): Initialize matching_operand
27393 for each alternative, rather than only doing it once.
27395 2021-01-05 Richard Sandiford <richard.sandiford@arm.com>
27397 PR rtl-optimization/98403
27398 * rtl-ssa/changes.cc (function_info::finalize_new_accesses): Explain
27399 why we don't remove call clobbers.
27400 (function_info::apply_changes_to_insn): Don't attempt to add
27401 call clobbers here.
27403 2021-01-05 Richard Sandiford <richard.sandiford@arm.com>
27405 PR tree-optimization/98371
27406 * tree-vect-loop.c (vect_reanalyze_as_main_loop): New function.
27407 (vect_analyze_loop): If an epilogue loop appears to be cheaper
27408 than the main loop, re-analyze it as a main loop before adopting
27411 2021-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27414 * configure.ac (NETLIBS): Determine using AX_LIB_SOCKET_NSL.
27415 * aclocal.m4, configure: Regenerate.
27416 * Makefile.in (NETLIBS): Define.
27417 (BACKEND): Remove $(CODYLIB).
27419 2021-01-05 Jakub Jelinek <jakub@redhat.com>
27421 PR rtl-optimization/98334
27422 * simplify-rtx.c (simplify_context::simplify_binary_operation_1):
27423 Optimize (X - 1) * Y + Y to X * Y or (X + 1) * Y - Y to X * Y.
27425 2021-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
27427 * tree-inline.c (expand_call_inline): Restore input_location.
27428 Return result from recursive call.
27430 2021-01-04 Richard Sandiford <richard.sandiford@arm.com>
27432 PR tree-optimization/95401
27433 * config/aarch64/aarch64-sve-builtins.cc
27434 (gimple_folder::load_store_cookie): Use bits rather than bytes
27435 for the alignment argument to IFN_MASK_LOAD and IFN_MASK_STORE.
27436 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref): Likewise.
27437 * tree-vect-stmts.c (vectorizable_store): Likewise.
27438 (vectorizable_load): Likewise.
27440 2021-01-04 Richard Biener <rguenther@suse.de>
27442 PR tree-optimization/98308
27443 * tree-vect-stmts.c (vectorizable_load): Set invariant mask
27446 2021-01-04 Jakub Jelinek <jakub@redhat.com>
27448 PR tree-optimization/95771
27449 * tree-ssa-loop-niter.c (number_of_iterations_popcount): Handle types
27450 with precision smaller than int's precision and types with precision
27451 twice as large as long long. Formatting fixes.
27453 2021-01-04 Richard Biener <rguenther@suse.de>
27455 PR tree-optimization/98464
27456 * tree-ssa-sccvn.c (vn_valueize_for_srt): Rename from ...
27457 (vn_valueize_wrapper): ... this. Temporarily adjust vn_context_bb.
27458 (process_bb): Adjust.
27460 2021-01-04 Matthew Malcomson <matthew.malcomson@arm.com>
27463 * doc/invoke.texi (-fsanitize=address): Fix wording describing
27464 clash with -fsanitize=hwaddress.
27466 2021-01-04 Richard Biener <rguenther@suse.de>
27468 PR tree-optimization/98282
27469 * tree-ssa-sccvn.c (vn_get_stmt_kind): Classify tcc_reference on
27470 invariants as VN_NARY.
27472 2021-01-04 Richard Sandiford <richard.sandiford@arm.com>
27475 * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Accept
27476 aarch64_simd_reg_or_zero for operand 2. Use the combinez patterns
27477 to handle zero operands.
27479 2021-01-04 Richard Sandiford <richard.sandiford@arm.com>
27481 * config/aarch64/aarch64.c (offset_6bit_signed_scaled_p): New function.
27482 (offset_6bit_unsigned_scaled_p): Fix typo in comment.
27483 (aarch64_sve_prefetch_operand_p): Accept MUL VLs in the range
27486 2021-01-04 Richard Biener <rguenther@suse.de>
27488 PR tree-optimization/98393
27489 * tree-vect-slp.c (vect_build_slp_tree): Properly zero matches
27490 when hitting the limit.
27492 2021-01-04 Richard Biener <rguenther@suse.de>
27494 PR tree-optimization/98291
27495 * tree-vect-loop.c (vectorizable_reduction): Bypass
27496 associativity check for SLP reductions with VF 1.
27498 2021-01-04 Jakub Jelinek <jakub@redhat.com>
27500 PR tree-optimization/96782
27501 * match.pd (x == ~x -> false, x != ~x -> true): New simplifications.
27503 2021-01-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
27505 * collect-utils.c (collect_execute): Check dumppfx.
27506 * collect2.c (maybe_run_lto_and_relink, do_link): Pass atsuffix
27507 to collect_execute.
27508 (do_link): Add new parameter atsuffix.
27509 (main): Handle -dumpdir option. Skip one argument for
27510 -o, -isystem and -B options.
27511 * gcc.c (make_at_file): New helper function.
27512 (close_at_file): Use it.
27514 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
27516 * config/darwin.h (MIN_LD64_NO_COAL_SECTS): Adjust.
27517 Amend handling for LD64_VERSION fallback defaults.
27519 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
27521 * config.gcc: Compute default version information
27522 from the configured target. Likewise defaults for
27524 * config/darwin10.h: Removed.
27525 * config/darwin12.h: Removed.
27526 * config/darwin9.h: Removed.
27527 * config/rs6000/darwin8.h: Removed.
27529 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
27531 * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Delete.
27533 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
27535 * config/darwin9.h (STACK_CHECK_STATIC_BUILTIN): Move from here..
27536 * config/darwin.h (STACK_CHECK_STATIC_BUILTIN): .. to here.
27538 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
27540 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move from
27542 * config/darwin.h (LINK_GCC_C_SEQUENCE_SPEC): ... to here.
27544 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
27546 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move the spec
27547 for the Darwin10 unwinder stub from here ...
27548 * config/darwin.h (LINK_COMMAND_SPEC_A): ... to here.
27550 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
27552 * config/darwin.h (DSYMUTIL_SPEC): Default to DWARF
27553 (ASM_DEBUG_SPEC):Only define if the assembler supports
27555 (PREFERRED_DEBUGGING_TYPE): Default to DWARF.
27556 (DARWIN_PREFER_DWARF): Define.
27557 * config/darwin9.h (PREFERRED_DEBUGGING_TYPE): Remove.
27558 (DARWIN_PREFER_DWARF): Likewise
27559 (DSYMUTIL_SPEC): Likewise.
27560 (COLLECT_RUN_DSYMUTIL): Likewise.
27561 (ASM_DEBUG_SPEC): Likewise.
27562 (ASM_DEBUG_OPTION_SPEC): Likewise.
27564 2021-01-02 Jan Hubicka <jh@suse.cz>
27566 * cfg.c (free_block): ggc_free bb.
27568 2021-01-01 Jakub Jelinek <jakub@redhat.com>
27570 * gcc.c (process_command): Update copyright notice dates.
27571 * gcov-dump.c (print_version): Ditto.
27572 * gcov.c (print_version): Ditto.
27573 * gcov-tool.c (print_version): Ditto.
27574 * gengtype.c (create_file): Ditto.
27575 * doc/cpp.texi: Bump @copying's copyright year.
27576 * doc/cppinternals.texi: Ditto.
27577 * doc/gcc.texi: Ditto.
27578 * doc/gccint.texi: Ditto.
27579 * doc/gcov.texi: Ditto.
27580 * doc/install.texi: Ditto.
27581 * doc/invoke.texi: Ditto.
27583 2021-01-01 Jakub Jelinek <jakub@redhat.com>
27585 * ChangeLog-2020: Rotate ChangeLog. New file.
27588 Copyright (C) 2021 Free Software Foundation, Inc.
27590 Copying and distribution of this file, with or without modification,
27591 are permitted in any medium without royalty provided the copyright
27592 notice and this notice are preserved.