1 2021-12-13 Vladimir N. Makarov <vmakarov@redhat.com>
4 * ira-costs.c (record_operand_costs): Do not take pseudo class
5 calculated on the 1st iteration into account when processing move
6 involving the pseudo and a hard register.
8 2021-12-13 Roger Sayle <roger@nextmovesoftware.com>
10 * config/i386/i386.md (define_split any_or:SWI248 -> orb %?h):
11 Optimize the case where the integer constant operand is zero.
13 2021-12-13 Doug Rupp <rupp@adacore.com>
14 Olivier Hainque <hainque@adacore.com>
16 * config/vxworks.h (VXWORKS_LINK_OS_SPEC): New spec.
17 (VXWORKS_BASE_LINK_SPEC): New spec, using the former.
18 (VXWORKS_EXTRA_LINK_SPEC): New spec for old and new VxWorks.
19 (VXWORKS_LINK_SPEC): Combo of BASE and EXTRA specs.
20 * config/rs6000/vxworks.h (VXWORKS_LINK_OS_SPEC): Empty.
21 (LINK_OS_EXTRA_SPEC32): Use VXWORKS_LINK_SPEC.
22 (LINK_OS_EXTRA_SPEC64): Likewise.
24 2021-12-13 Fred Konrad <konrad@adacore.com>
25 Olivier Hainque <hainque@adacore.com>
27 * config/vxworks.h (VXWORKS_BASE_LIBS_RTP): Guard -lc_internal
28 on !shared+!non-static and document.
29 (VXWORKS_LIB_SPEC): Remove the bits intended to drag the
30 init/fini functions from libc_internal in the shared lib case.
31 (VX_CRTBEGIN_SPEC/VX_CRTEND_SPEC): Use vxcrtstuff objects also in
32 configurations with shared lib and INITFINI_ARRAY support.
34 2021-12-13 Fred Konrad <konrad@adacore.com>
35 Olivier Hainque <hainque@adacore.com>
37 * config/vx-common.h: Define REAL_LIBGCC_SPEC since the
38 '-non-static' option is not standard.
39 * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Implement the LIBGCC_SPEC
40 since REAL_LIBGCC_SPEC is used now.
41 (STARTFILE_PREFIX_SPEC): Use the PIC VSB when building shared libraries
42 or non-static binaries.
44 2021-12-13 Jan Hubicka <hubicka@ucw.cz>
46 * common.opt: Add -fipa-strict-aliasing.
47 * doc/invoke.texi: Document -fipa-strict-aliasing.
48 * ipa-modref.c (modref_access_analysis::record_access): Honor
49 -fipa-strict-aliasing.
50 (modref_access_analysis::record_access_lto): Likewise.
52 2021-12-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
54 * config/aarch64/aarch64-arches.def (armv8.8-a): Define.
55 * config/aarch64/aarch64.h (AARCH64_FL_V8_8): Define.
56 (AARCH64_FL_FOR_ARCH8_8): Define.
57 * doc/invoke.texi: Document -march=armv8.8-a.
59 2021-12-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
61 * config/aarch64/aarch64.c (aarch64_expand_setmem_mops): Define.
62 (aarch64_expand_setmem): Adjust for TARGET_MOPS.
63 * config/aarch64/aarch64.h (CLEAR_RATIO): Adjust for TARGET_MOPS.
64 (SET_RATIO): Likewise.
65 * config/aarch64/aarch64.md ("unspec"): Add UNSPEC_SETMEM.
66 (aarch64_setmemdi): Define.
67 (setmemdi): Adjust for TARGET_MOPS.
68 * config/aarch64/aarch64.opt (aarch64-mops-memset-size-threshold):
71 2021-12-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
73 * config/aarch64/aarch64.md (aarch64_movmemdi): Define.
75 (unspec): Add UNSPEC_MOVMEM.
76 * config/aarch64/aarch64.opt (aarch64-mops-memmove-size-threshold):
79 2021-12-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
81 * config/aarch64/aarch64-option-extensions.def (mops): Define.
82 * config/aarch64/aarch64.c (aarch64_expand_cpymem_mops): Define.
83 (aarch64_expand_cpymem): Define.
84 * config/aarch64/aarch64.h (AARCH64_FL_MOPS): Define.
85 (AARCH64_ISA_MOPS): Define.
86 (TARGET_MOPS): Define.
87 (MOVE_RATIO): Adjust for TARGET_MOPS.
88 * config/aarch64/aarch64.md ("unspec"): Add UNSPEC_CPYMEM.
89 (aarch64_cpymemdi): New pattern.
90 (cpymemdi): Adjust for TARGET_MOPS.
91 * config/aarch64/aarch64.opt (aarch64-mops-memcpy-size-threshol):
93 * doc/invoke.texi (AArch64 Options): Document +mops.
95 2021-12-13 Martin Liska <mliska@suse.cz>
98 * ipa-inline.c (can_inline_edge_p): Move logic checking
99 no_profile_instrument_function logic to ...
100 (can_early_inline_edge_p): ... here.
102 2021-12-13 Olivier Hainque <hainque@adacore.com>
104 * config/vxworks/_yvals.h: #include yvals.h also if
107 2021-12-13 Olivier Hainque <hainque@adacore.com>
109 * config/vxworks.h (VXWORKS_OS_CPP_BUILTINS): Define
112 2021-12-13 Olivier Hainque <hainque@adacore.com>
114 * config/t-vxworks: Clear NATIVE_SYSTEM_HEADER_DIR.
115 * config/vxworks.h (SYSROOT_HEADERS_SUFFIX_SPEC): Define, for
116 VxWorks 7 and earlier.
117 (VXWORKS_ADDITIONAL_CPP_SPEC): Simplify accordingly.
118 (STARTFILE_PREFIX_SPEC): Adjust accordingly.
119 * config/rs6000/vxworks.h (STARTFILE_PREFIX_SPEC): Adjust.
121 2021-12-13 Martin Liska <mliska@suse.cz>
123 * doc/extend.texi: Use @item for the first @itemx entry.
125 2021-12-13 Jakub Jelinek <jakub@redhat.com>
127 * machmode.h (gt_pch_nx): Use gt_pointer_operator as type of second
128 argument instead of equivalent void (*) (void *, void *, void *).
129 * poly-int.h (gt_pch_nx): Likewise.
130 * wide-int.h (gt_pch_nx): Likewise.
131 * config/aarch64/aarch64-sve-builtins.cc (gt_pch_nx): Likewise.
133 2021-12-13 Jan Hubicka <hubicka@ucw.cz>
136 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Do not ICE
137 on ternary expression.
139 2021-12-13 Kewen Lin <linkw@linux.ibm.com>
142 * attribs.c (decl_attributes): Check if target options change and
143 create one node if so.
145 2021-12-12 Jonathan Wakely <jwakely@redhat.com>
147 * Makefile.in: Remove unique-ptr-tests.o.
148 * selftest-run-tests.c (selftest::run_tests): Remove
149 unique_ptr_tests_cc_tests.
150 * selftest.h (unique_ptr_tests_cc_tests): Remove.
151 * system.h: Check INCLUDE_MEMORY instead of INCLUDE_UNIQUE_PTR
152 and include <memory> instead of "unique-ptr.h".
153 * unique-ptr-tests.cc: Removed.
155 2021-12-12 Roger Sayle <roger@nextmovesoftware.com>
157 * config/nvptx/nvptx-opts.h (ptx_isa): Add PTX_ISA_SM53 ISA level
159 * config/nvptx/nvptx.opt: Add sm_53 to -misa.
160 * config/nvptx/nvptx-modes.def: Add support for HFmode.
161 * config/nvptx/nvptx.h (TARGET_SM53):
162 New helper macro to conditionalize functionality on target ISA.
163 * config/nvptx/nvptx-c.c (nvptx_cpu_cpp_builtins): Add __PTX_SM__
164 support for the new ISA levels.
165 * config/nvptx/nvptx.c (nvtx_ptx_type_from_mode): Support new HFmode
166 with the ".f16" suffix/qualifier.
167 (nvptx_file_start): Add support for TARGET_SM53.
168 (nvptx_omp_device_kind_arch_isa): Add support for TARGET_SM53
169 and tweak TARGET_SM35.
170 (nvptx_scalar_mode_supported_p): Target hook with conditional
171 HFmode support on TARGET_SM53 and higher.
172 (nvptx_libgcc_floating_mode_supported_p): Likewise.
173 (TARGET_SCALAR_MODE_SUPPORTED_P): Use nvptx_scalar_mode_supported_p.
174 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Likewise, use new hook.
175 * config/nvptx/nvptx.md (*movhf_insn): New define_insn.
176 (movhf): New define_expand for HFmode moves.
177 (addhf3, subhf3, mulhf, extendhf<mode>2, trunc<mode>hf2): New
178 instructions conditional on TARGET_SM53 (i.e. -misa=sm_53).
180 2021-12-12 Jan Hubicka <hubicka@ucw.cz>
183 * ipa-modref.c (modref_access_analysis::analyze): Terminate BB
184 analysis on NULL memory access.
185 * ipa-pure-const.c (analyze_function): Likewise.
187 2021-12-11 Jan Hubicka <hubicka@ucw.cz>
189 * ipa-profile.c (ipa_profile): Do not update hot bb threshold.
191 2021-12-11 Jan Hubicka <hubicka@ucw.cz>
193 * ipa-modref.c (get_modref_function_summary): Use ultimate_alias_target.
194 (ignore_edge): Likewise.
195 (compute_parm_map): Likewise.
196 (modref_propagate_in_scc): Likewise.
197 (modref_propagate_flags_in_scc): Likewise.
199 2021-12-10 Jason Merrill <jason@redhat.com>
201 * symtab.c (symtab_node::equal_address_to): Fix comment typo.
203 2021-12-10 Doug Rupp <rupp@adacore.com>
205 * config/vxworks.h (LINK_SPEC): Remove %(link_target).
206 Change %{v:-v} to %{v:-V}.
208 2021-12-10 Olivier Hainque <hainque@adacore.com>
210 * config/t-vxworks: Remove assignment to STMP_FIXINC.
212 2021-12-10 Martin Liska <mliska@suse.cz>
214 * params.opt: Add missing dot.
216 2021-12-10 Roger Sayle <roger@nextmovesoftware.com>
219 * ipa-modref-tree.h (useful_for_kill_p): Zero width accesses aren't
220 useful for kill tracking.
222 2021-12-10 Andrew Stubbs <ams@codesourcery.com>
224 * config/gcn/mkoffload.c (process_asm): Process the variable table
225 completely differently.
226 (process_obj): Encode the varaible data differently.
228 2021-12-10 Joel Hutton <joel.hutton@arm.com>
230 PR tree-optimization/103523
231 * tree-vect-loop.c (vectorizable_induction): Check for
232 PLUS_EXPR/MINUS_EXPR support.
234 2021-12-10 Cui,Lili <lili.cui@intel.com>
236 * config/i386/i386.c (ix86_vector_costs::add_stmt_cost): Remove Tremont.
238 2021-12-09 Jan Hubicka <hubicka@ucw.cz>
240 * doc/invoke.texi (max-inline-functions-called-once-loop-depth,
241 max-inline-functions-called-once-insns): New parameters.
242 * ipa-inline.c (check_callers): Handle
243 param_inline_functions_called_once_loop_depth and
244 param_inline_functions_called_once_insns.
245 (edge_badness): Fix linebreaks.
246 * params.opt (param=max-inline-functions-called-once-loop-depth,
247 param=max-inline-functions-called-once-insn): New params.
249 2021-12-09 Martin Sebor <msebor@redhat.com>
251 PR tree-optimization/103215
252 * pointer-query.cc (access_ref::merge_ref): Extend the offset and
253 size of the merged object instead of using the larger.
255 2021-12-09 Martin Sebor <msebor@redhat.com>
258 * doc/extend.texi (attribute access): Adjust.
259 * gimple-ssa-warn-access.cc (pass_waccess::maybe_check_access_sizes):
260 Treat access mode none on a void* argument as expecting as few as
263 2021-12-09 Jakub Jelinek <jakub@redhat.com>
266 * config/aarch64/aarch64-sve-builtins.cc (gt_pch_nx): Change type of
267 second argument from function with 2 pointer arguments to function
268 with 3 pointer arguments.
270 2021-12-09 Olivier Hainque <hainque@adacore.com>
272 * config/aarch64/aarch64-vxworks.h (TARGET_OS_CPP_BUILTINS):
273 Use VX_CPU_PREFIX in CPU definitions.
275 2021-12-09 Martin Sebor <msebor@redhat.com>
277 * pointer-query.cc (access_ref::dump): Define new function
278 (pointer_query::dump): Call it.
279 * pointer-query.h (access_ref::dump): Declare new function.
281 2021-12-09 Martin Sebor <msebor@redhat.com>
283 * pointer-query.cc (compute_objsize_r): Add an argument.
284 (gimple_call_return_array): Pass a new argument to compute_objsize_r.
285 (access_ref::merge_ref): Same.
286 (access_ref::inform_access): Add an argument and use it.
287 (access_data::access_data): Initialize new member.
288 (handle_min_max_size): Pass a new argument to compute_objsize_r.
289 (handle_decl): New function.
290 (handle_array_ref): Pass a new argument to compute_objsize_r.
291 Avoid incrementing deref.
292 (set_component_ref_size): New function.
293 (handle_component_ref): New function.
294 (handle_mem_ref): Pass a new argument to compute_objsize_r.
295 Only increment deref after successfully computing object size.
296 (handle_ssa_name): New function.
297 (compute_objsize_r): Move code into helpers and call them.
298 (compute_objsize): Pass a new argument to compute_objsize_r.
299 * pointer-query.h (access_ref::inform_access): Add an argument.
300 (access_data::ostype): New member.
302 2021-12-09 Martin Sebor <msebor@redhat.com>
304 * pointer-query.cc (access_ref::merge_ref): Define new function.
305 (access_ref::get_ref): Move code into merge_ref and call it.
306 * pointer-query.h (access_ref::merge_ref): Declare new function.
308 2021-12-09 Martin Sebor <msebor@redhat.com>
310 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Pass
311 GIMPLE statement to compute_objsize.
312 * pointer-query.cc (compute_objsize): Add a statement argument.
313 * pointer-query.h (compute_objsize): Define a new overload.
315 2021-12-09 Martin Sebor <msebor@redhat.com>
317 * gimple-ssa-warn-access.cc (check_access): Adjust to member name
319 (pass_waccess::check_strncmp): Same.
320 * pointer-query.cc (access_ref::access_ref): Remove arguments.
322 (access_data::access_data): Define new ctors.
323 (access_data::set_bound): Define new member function.
324 (compute_objsize_r): Remove unnecessary code.
325 * pointer-query.h (struct access_ref): Remove ctor arguments.
326 (struct access_data): Declare ctor overloads.
327 (access_data::dst_bndrng): New member.
328 (access_data::src_bndrng): New member.
330 2021-12-09 Martin Sebor <msebor@redhat.com>
333 * pointer-query.cc (gimple_call_return_array): Call compute_objsize_r.
335 2021-12-09 Olivier Hainque <hainque@adacore.com>
336 Rasmus Villemoes <rv@rasmusvillemoes.dk>
338 * Makefile.in (T_STDINT_GCC_H): New variable, path to
339 stdint-gcc.h that a target configuration may override when
340 use_gcc_stdint is "provide".
341 (stmp-int-hdrs): Depend on it and copy that for
343 * config.gcc (vxworks): Revert to use_gcc_stdint=provide.
344 * config/t-vxworks (T_STDINT_GCC_H): Define, as vxw-stdint-gcc.h.
345 (vxw-stdint-gcc.h): New target, produced from the original
347 (vxw-glimits.h): Use an automatic variable to designate the
348 first and only prerequisite.
349 * config/vxworks/stdint.h: Remove.
351 2021-12-09 Iain Sandoe <iain@sandoe.co.uk>
354 * config/host-darwin.c (SAFE_ALLOC_SIZE): Remove.
355 (darwin_gt_pch_get_address): Rework for relocatable PCH.
356 (darwin_gt_pch_use_address): Likewise.
358 2021-12-09 Jakub Jelinek <jakub@redhat.com>
361 * config/host-darwin.c (darwin_gt_pch_use_address): When reading
362 manually the file into mapped area, update mapped_addr as
363 an automatic variable rather than addr which is a reference parameter.
364 * config/host-hpux.c (hpux_gt_pch_use_address): When reading
365 manually the file into mapped area, update addr as
366 an automatic variable rather than base which is a reference parameter.
368 2021-12-09 Jakub Jelinek <jakub@redhat.com>
371 * coretypes.h (gt_pointer_operator): Use 3 pointer arguments instead
373 * gengtype.c (struct walk_type_data): Add in_nested_ptr argument.
374 (walk_type): Temporarily set d->in_nested_ptr around nested_ptr
376 (write_types_local_user_process_field): Pass a new middle pointer
377 to gt_pointer_operator op calls, if d->in_nested_ptr pass there
378 address of d->prev_val[2], otherwise NULL.
379 (write_types_local_process_field): Likewise.
380 * ggc-common.c (relocate_ptrs): Add real_ptr_p argument. If equal
381 to ptr_p, do nothing, otherwise if NULL remember ptr_p's
382 or if non-NULL real_ptr_p's corresponding new address in
384 (reloc_addrs_vec): New variable.
385 (compare_ptr, read_uleb128, write_uleb128): New functions.
386 (gt_pch_save): When iterating over objects through relocate_ptrs,
387 save current i into state.ptrs_i. Sort reloc_addrs_vec and emit
388 it as uleb128 of differences between pointer addresses into the
390 (gt_pch_restore): Allow restoring of PCH to a different address
391 than the preferred one, in that case adjust global pointers by bias
392 and also adjust by bias addresses read from the relocation table
393 as uleb128 differences. Otherwise fseek over it. Perform
394 gt_pch_restore_stringpool only after adjusting callbacks and for
395 callback adjustments also take into account the bias.
396 (default_gt_pch_use_address): Change type of first argument from
398 (mmap_gt_pch_use_address): Likewise.
399 * ggc-tests.c (gt_pch_nx): Pass NULL as new middle argument to op.
400 * hash-map.h (hash_map::pch_nx_helper): Likewise.
401 (gt_pch_nx): Likewise.
402 * hash-set.h (gt_pch_nx): Likewise.
403 * hash-table.h (gt_pch_nx): Likewise.
404 * hash-traits.h (ggc_remove::pch_nx): Likewise.
405 * hosthooks-def.h (default_gt_pch_use_address): Change type of first
406 argument from void * to void *&.
407 (mmap_gt_pch_use_address): Likewise.
408 * hosthooks.h (struct host_hooks): Change type of first argument of
409 gt_pch_use_address hook from void * to void *&.
410 * machmode.h (gt_pch_nx): Expect a callback with 3 pointers instead of
411 two in the middle argument.
412 * poly-int.h (gt_pch_nx): Likewise.
413 * stringpool.c (gt_pch_nx): Pass NULL as new middle argument to op.
414 * tree-cfg.c (gt_pch_nx): Likewise, except for LOCATION_BLOCK pass
415 the same &(block) twice.
416 * value-range.h (gt_pch_nx): Pass NULL as new middle argument to op.
417 * vec.h (gt_pch_nx): Likewise.
418 * wide-int.h (gt_pch_nx): Likewise.
419 * config/host-darwin.c (darwin_gt_pch_use_address): Change type of
420 first argument from void * to void *&.
421 * config/host-darwin.h (darwin_gt_pch_use_address): Likewise.
422 * config/host-hpux.c (hpux_gt_pch_use_address): Likewise.
423 * config/host-linux.c (linux_gt_pch_use_address): Likewise. If
424 it couldn't succeed to mmap at the preferred location, set base
425 to the actual one. Update addr in the manual reading loop instead of
427 * config/host-netbsd.c (netbsd_gt_pch_use_address): Change type of
428 first argument from void * to void *&.
429 * config/host-openbsd.c (openbsd_gt_pch_use_address): Likewise.
430 * config/host-solaris.c (sol_gt_pch_use_address): Likewise.
431 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address): Likewise.
432 * config/rs6000/rs6000-gen-builtins.c (write_init_file): Pass NULL
433 as new middle argument to op in the generated code.
434 * doc/gty.texi: Adjust samples for the addition of middle pointer
435 to gt_pointer_operator callback.
437 2021-12-09 Alexandre Oliva <oliva@adacore.com>
440 * reg-stack.c (convert_regs_1): Move any_malformed_asm
442 (reg_to_stack): ... here.
444 2021-12-09 Alexandre Oliva <oliva@adacore.com>
447 * expr.c (emit_move_multi_word): Skip clobber during lra.
449 2021-12-09 Alexandre Oliva <oliva@adacore.com>
451 PR tree-optimization/103024
453 * gimple-harden-conditionals.cc (non_eh_succ_edge): New.
454 (pass_harden_compares::execute): Accept 1-bit integral types,
455 and cope with throwing compares.
457 2021-12-08 Iain Sandoe <iain@sandoe.co.uk>
459 * config/darwin.h (DARWIN_PIE_SPEC): Add -no_pie when
460 linking mdynamic-no-pic code on macOS > 10.7.
462 2021-12-08 Dimitar Dimitrov <dimitar@dinux.eu>
464 * config/pru/pru.c (pru_section_type_flags): New function.
465 (TARGET_SECTION_TYPE_FLAGS): Wire it.
467 2021-12-08 David Faust <david.faust@oracle.com>
469 * config/bpf/bpf.c (handle_attr_preserve): Avoid calling
470 is_gimple_assign with a NULL pointer.
472 2021-12-08 Martin Liska <mliska@suse.cz>
474 * profile-count.c (profile_count::dump): Add function
475 that can dump to a provided buffer.
476 (profile_probability::dump): Likewise.
477 * profile-count.h: Likewise.
478 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop):
479 Use dump_printf_loc infrastructure.
480 (tree_unswitch_outer_loop): Likewise.
481 (find_loop_guard): Likewise.
482 (hoist_guard): Likewise.
484 2021-12-08 Chung-Lin Tang <cltang@codesourcery.com>
486 * gimplify.c (extract_base_bit_offset): Add 'tree *offsetp' parameter,
487 accomodate case where 'offset' return of get_inner_reference is
489 (is_or_contains_p): Further robustify conditions.
490 (omp_target_reorder_clauses): In alloc/to/from sorting phase, also
491 move following GOMP_MAP_ALWAYS_POINTER maps along. Add new sorting
492 phase where we make sure pointers with an attach/detach map are ordered
494 (gimplify_scan_omp_clauses): Add modifications to avoid creating
495 GOMP_MAP_STRUCT and associated alloc map for attach/detach maps.
497 2021-12-08 Roger Sayle <roger@nextmovesoftware.com>
499 * config/nvptx/nvptx.md (*extend_trunc_<mode>2_qi,
500 *extend_trunc_<mode>2_hi, *extend_trunc_di2_si): New insns.
501 Use cvt to perform sign-extension of truncation in one step.
503 2021-12-08 Chung-Lin Tang <cltang@codesourcery.com>
506 * gimplify.c ("tree-hash-traits.h"): Add include.
507 (gimplify_scan_omp_clauses): Change struct_map_to_clause to type
508 hash_map<tree_operand, tree> *. Adjust struct map handling to handle
509 cases of *A and A->B expressions. Under !DECL_P case of
510 GOMP_CLAUSE_MAP handling, add STRIP_NOPS for indir_p case, add to
511 struct_deref_set for map(*ptr_to_struct) cases. Add MEM_REF case when
512 handling component_ref_p case. Add unshare_expr and gimplification
513 when created GOMP_MAP_STRUCT is not a DECL. Add code to add
514 firstprivate pointer for *pointer-to-struct case.
515 (gimplify_adjust_omp_clauses): Move GOMP_MAP_STRUCT removal code for
516 exit data directives code to earlier position.
517 * omp-low.c (lower_omp_target):
518 Handle GOMP_MAP_ATTACH_ZERO_LENGTH_ARRAY_SECTION, and
519 GOMP_MAP_POINTER_TO_ZERO_LENGTH_ARRAY_SECTION map kinds.
520 * tree-pretty-print.c (dump_omp_clause): Likewise.
522 2021-12-08 Andrew Stubbs <ams@codesourcery.com>
523 Hafiz Abid Qadeer <abidh@codesourcery.com>
525 * dwarf2cfi.c (dw_stack_pointer_regnum): Change type to struct cfa_reg.
526 (dw_frame_pointer_regnum): Likewise.
527 (new_cfi_row): Use set_by_dwreg.
528 (get_cfa_from_loc_descr): Use set_by_dwreg. Support register spans.
529 handle DW_OP_bregx with DW_OP_breg{0-31}. Support DW_OP_lit*,
530 DW_OP_const*, DW_OP_minus, DW_OP_shl and DW_OP_plus.
531 (lookup_cfa_1): Use set_by_dwreg.
532 (def_cfa_0): Update for cfa_reg and support register spans.
533 (reg_save): Change sreg parameter to struct cfa_reg. Support register
535 (dwf_cfa_reg): New function.
536 (dwarf2out_flush_queued_reg_saves): Use dwf_cfa_reg instead of
538 (dwarf2out_frame_debug_def_cfa): Likewise.
539 (dwarf2out_frame_debug_adjust_cfa): Likewise.
540 (dwarf2out_frame_debug_cfa_offset): Likewise. Update reg_save usage.
541 (dwarf2out_frame_debug_cfa_register): Likewise.
542 (dwarf2out_frame_debug_expr): Likewise.
543 (create_pseudo_cfg): Use set_by_dwreg.
544 (initial_return_save): Use set_by_dwreg and dwf_cfa_reg,
545 (create_cie_data): Use dwf_cfa_reg.
546 (execute_dwarf2_frame): Use dwf_cfa_reg.
547 (dump_cfi_row): Use set_by_dwreg.
548 * dwarf2out.c (build_span_loc, build_breg_loc): New function.
549 (build_cfa_loc): Support register spans.
550 (build_cfa_aligned_loc): Update cfa_reg usage.
551 (convert_cfa_to_fb_loc_list): Use set_by_dwreg.
552 * dwarf2out.h (struct cfa_reg): New type.
553 (struct dw_cfa_location): Use struct cfa_reg.
554 (build_span_loc): New prototype.
556 2021-12-08 Haochen Jiang <haochen.jiang@intel.com>
560 (*<sse4_1>_blendv<ssefltmodesuffix><avxsizesuffix>_not_ltint):
561 Add new define_insn_and_split.
563 2021-12-08 Alexandre Oliva <oliva@adacore.com>
566 * gimple-harden-conditionals.cc (detach_value): Use memory if
567 general regs won't do.
569 2021-12-07 Martin Liska <mliska@suse.cz>
572 * config/s390/s390.c (s390_valid_target_attribute_inner_p):
573 Use new enum CLVC_INTEGER.
574 * opt-functions.awk: Use new CLVC_INTEGER.
575 * opts-common.c (set_option): Likewise.
576 (option_enabled): Return -1,0,1 for CLVC_INTEGER.
577 (get_option_state): Use new CLVC_INTEGER.
578 (control_warning_option): Likewise.
579 * opts.h (enum cl_var_type): Likewise.
581 2021-12-07 H.J. Lu <hjl.tools@gmail.com>
584 * config/i386/i386.c (ix86_call_use_plt_p): Check FUNCTION_DECL
585 before calling cgraph_node::get.
587 2021-12-07 Richard Biener <rguenther@suse.de>
589 PR tree-optimization/103596
590 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt):
591 Note we are not propagating into a PHI argument to may_propagate_copy.
592 * tree-ssa-propagate.h (may_propagate_copy): Add
593 argument specifying whether we propagate into a PHI arg.
594 * tree-ssa-propagate.c (may_propagate_copy): Likewise.
595 When not doing so we can replace an abnormal with
597 (may_propagate_into_stmt): Update may_propagate_copy calls.
598 (replace_exp_1): Move propagation checking code to
599 propagate_value and rename to ...
600 (replace_exp): ... this and elide previous wrapper.
601 (propagate_value): Perform checking with adjusted
602 may_propagate_copy call and dispatch to replace_exp.
604 2021-12-07 Matthias Kretz <m.kretz@gsi.de>
606 * hash-map.h (hash_map::traverse): Let both overloads behave the
608 * predict.c (assert_is_empty): Return true, thus not changing
611 2021-12-07 YunQiang Su <yunqiang.su@cipunited.com>
613 * config/mips/mips.h (ISA_HAS_UNALIGNED_ACCESS, STRICT_ALIGNMENT):
614 R6 can unaligned access.
615 * config/mips/mips.md (movmisalign<mode>): Likewise.
616 * config/mips/mips.opt: add -m(no-)unaligned-access
617 * doc/invoke.texi: Likewise.
619 2021-12-07 Eugene Rozenfeld <erozen@microsoft.com>
621 * auto-profile.c (afdo_propagate_edge): Improve count propagation algorithm.
623 2021-12-06 Paul A. Clarke <pc@us.ibm.com>
626 * config/rs6000/xmmintrin.h (_mm_movemask_ps): Replace "vector" with
629 2021-12-06 Jose E. Marchesi <jose.marchesi@oracle.com>
631 * config/bpf/bpf.c (bpf_handle_preserve_access_index_attribute):
632 Mark arguments `args' and flags' as unused.
633 (bpf_core_newdecl): Remove unused local `newdecl'.
634 (bpf_core_newdecl): Remove unused argument `loc'.
635 (ctfc_debuginfo_early_finish_p): Remove unused function.
636 (TARGET_CTFC_DEBUGINFO_EARLY_FINISH_P): Remove definition.
637 (bpf_core_walk): Do not pass a location to bpf_core_newdecl.
639 2021-12-06 Richard Sandiford <richard.sandiford@arm.com>
641 * gimple-range-edge.cc (gimple_outgoing_range::edge_range_p): Add
642 a shortcut for blocks with single successors.
643 * gimple-range-gori.cc (gori_map::calculate_gori): Likewise.
645 2021-12-06 Richard Sandiford <richard.sandiford@arm.com>
647 * value-range.cc (irange::irange_union): Use quick_push rather
648 than safe_push. Use widest_int rather than wide_int. Avoid
649 assigning wi::to_* results to wide*_int temporaries.
651 2021-12-06 Andrew MacLeod <amacleod@redhat.com>
653 * gimple-range-cache.cc (ranger_cache::fill_block_cache): Check for
654 a range from dominators before filling the cache.
655 (ranger_cache::range_from_dom): New.
656 * gimple-range-cache.h (ranger_cache::range_from_dom): Add prototype.
658 2021-12-06 Andrew MacLeod <amacleod@redhat.com>
660 * gimple-range-gori.h (class gori_compute):: Add prototypes.
661 * gimple-range-gori.cc (gori_compute::has_edge_range_p): Add alternate
662 API for basic block. Call for edge alterantive.
663 (gori_compute::may_recompute_p): Ditto.
665 2021-12-06 Richard Biener <rguenther@suse.de>
667 PR tree-optimization/103581
668 * tree-vect-stmts.c (vect_build_gather_load_calls): Properly
669 guard all the AVX512 mask cases.
671 2021-12-06 Richard Biener <rguenther@suse.de>
673 PR tree-optimization/103544
674 * tree-vect-slp.c (vect_analyze_slp): Only add a SLP reduction
675 opportunity if the stmt in question is the reduction root.
676 (dot_slp_tree): Add missing check for NULL child.
678 2021-12-06 Jakub Jelinek <jakub@redhat.com>
681 * config/avr/avr.c (avr_output_data_section_asm_op,
682 avr_output_bss_section_asm_op): Change argument type from const void *
685 2021-12-06 Tamar Christina <tamar.christina@arm.com>
687 PR rtl-optimization/103404
688 * cse.c (find_sets_in_insn): Don't select elements out of a V1 mode
691 2021-12-06 Hongtao Liu <Hongtao.liu@intel.com>
692 Uroš Bizjak <ubizjak@gmail.com>
695 * config/i386/i386.c (ix86_preferred_reload_class): Allow
696 integer regs when moves between register units are cheap.
697 * config/i386/i386.h (INT_SSE_CLASS_P): New.
699 2021-12-05 David Edelsohn <dje.gcc@gmail.com>
701 * config/rs6000/rs6000-call.c (rs6000_init_builtins): Move
702 AIX math builtin initialization before new_builtins_are_live.
704 2021-12-04 Jakub Jelinek <jakub@redhat.com>
706 * config/i386/x86-tune.def (X86_TUNE_PARTIAL_REG_DEPENDENCY): Fix
707 comment typo, Preffer -> prefer.
708 * ipa-modref-tree.c (modref_access_node::closer_pair_p): Likewise.
710 2021-12-04 Alexandre Oliva <oliva@adacore.com>
712 PR rtl-optimization/103028
713 * ifcvt.c (find_cond_trap): Validate new insns more strictly
716 2021-12-03 Martin Liska <mliska@suse.cz>
717 Peter Bergner <bergner@linux.ibm.com>
720 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move the
721 disabling of shrink-wrapping when using -mrop-protect from here...
722 (rs6000_override_options_after_change): ...to here.
724 2021-12-03 H.J. Lu <hjl.tools@gmail.com>
727 * config/i386/i386-expand.c (ix86_expand_builtin): Pass PVW_NONE
728 and PVW_NONE to ix86_target_string.
729 * config/i386/i386-options.c (ix86_target_string): Add arguments
730 for move_max and store_max.
731 (ix86_target_string::add_vector_width): New lambda.
732 (ix86_debug_options): Pass ix86_move_max and ix86_store_max to
734 (ix86_function_specific_print): Pass ptr->x_ix86_move_max and
735 ptr->x_ix86_store_max to ix86_target_string.
736 (ix86_valid_target_attribute_tree): Handle x_ix86_move_max and
738 (ix86_option_override_internal): Set the default x_ix86_move_max
739 and x_ix86_store_max.
740 * config/i386/i386-options.h (ix86_target_string): Add
741 prefer_vector_width and prefer_vector_width.
742 * config/i386/i386.h (TARGET_AVX256_MOVE_BY_PIECES): Removed.
743 (TARGET_AVX256_STORE_BY_PIECES): Likewise.
744 (MOVE_MAX): Use 64 if ix86_move_max or ix86_store_max ==
745 PVW_AVX512. Use 32 if ix86_move_max or ix86_store_max >=
747 (STORE_MAX_PIECES): Use 64 if ix86_store_max == PVW_AVX512.
748 Use 32 if ix86_store_max >= PVW_AVX256.
749 * config/i386/i386.opt: Add -mmove-max=bits and -mstore-max=bits.
750 * config/i386/x86-tune.def (X86_TUNE_AVX512_MOVE_BY_PIECES): New.
751 (X86_TUNE_AVX512_STORE_BY_PIECES): Likewise.
752 * doc/invoke.texi: Document -mmove-max=bits and -mstore-max=bits.
754 2021-12-03 Bill Schmidt <wschmidt@linux.ibm.com>
756 * config/rs6000/rs6000.c (rs6000_builtin_reciprocal): Fix builtin
759 2021-12-03 SiYu Wu <siyu@isrc.iscas.ac.cn>
761 * common/config/riscv/riscv-common.c (riscv_implied_info):
762 Add K-ext related entry.
763 (riscv_supported_std_ext): Add 'k'.
764 * config/riscv/arch-canonicalize (CANONICAL_ORDER): Add 'k'.
765 (IMPLIED_EXT): Add K-ext related entry.
767 2021-12-03 SiYu Wu <siyu@isrc.iscas.ac.cn>
769 * common/config/riscv/riscv-common.c (riscv_ext_version_table):
771 * config/riscv/riscv-opts.h (MASK_ZBKB): New.
781 (TARGET_ZBKB): Ditto.
782 (TARGET_ZBKC): Ditto.
783 (TARGET_ZBKX): Ditto.
784 (TARGET_ZKNE): Ditto.
785 (TARGET_ZKND): Ditto.
786 (TARGET_ZKNH): Ditto.
788 (TARGET_ZKSED): Ditto.
789 (TARGET_ZKSH): Ditto.
791 * config/riscv/riscv.opt (riscv_zk_subext): New.
793 2021-12-03 Tamar Christina <tamar.christina@arm.com>
795 * tree-vect-stmts.c (prepare_load_store_mask): Rename to...
796 (prepare_vec_mask): ...This and record operations that have already been
798 (vectorizable_call): Use it.
799 (vectorizable_operation): Likewise.
800 (vectorizable_store): Likewise.
801 (vectorizable_load): Likewise.
802 * tree-vectorizer.h (class _loop_vec_info): Add vec_cond_masked_set.
803 (vec_cond_masked_set_type, tree_cond_mask_hash): New.
805 2021-12-03 H.J. Lu <hjl.tools@gmail.com>
809 * target.def (ifunc_ref_local_ok): Add a target hook.
810 * varasm.c (default_binds_local_p_3): Force indirect function
811 resolver non-local only if targetm.ifunc_ref_local_ok returns
813 * config/i386/i386-expand.c (ix86_expand_call): Call
814 ix86_call_use_plt_p to check if PLT should be used.
815 * config/i386/i386-protos.h (ix86_call_use_plt_p): New.
816 * config/i386/i386.c (output_pic_addr_const): Call
817 ix86_call_use_plt_p to check if "@PLT" is needed.
818 (ix86_call_use_plt_p): New.
819 (TARGET_IFUNC_REF_LOCAL_OK): New.
820 * doc/tm.texi.in: Add TARGET_IFUNC_REF_LOCAL_OK.
821 * doc/tm.texi: Regenerated.
823 2021-12-03 Jakub Jelinek <jakub@redhat.com>
825 * attribs.h (simple_cst_list_equal): Declare.
826 * attribs.c (simple_cst_list_equal): No longer static.
827 * config/i386/i386-options.c (target_attribute_cache): New variable.
828 (ix86_valid_target_attribute_p): Cache DECL_FUNCTION_SPECIFIC_TARGET
829 and DECL_FUNCTION_SPECIFIC_OPTIMIZATION based on args.
831 2021-12-03 Jakub Jelinek <jakub@redhat.com>
834 * ggc.h (gt_pch_note_callback): Declare.
835 * gengtype.h (enum typekind): Add TYPE_CALLBACK.
836 (callback_type): Declare.
837 * gengtype.c (dbgprint_count_type_at): Handle TYPE_CALLBACK.
838 (callback_type): New variable.
839 (process_gc_options): Add CALLBACK argument, handle callback
841 (set_gc_used_type): Adjust process_gc_options caller, if callback,
842 set type to &callback_type.
843 (output_mangled_typename): Handle TYPE_CALLBACK.
844 (walk_type): Likewise. Handle callback option.
845 (write_types_process_field): Handle TYPE_CALLBACK.
846 (write_types_local_user_process_field): Likewise.
847 (write_types_local_process_field): Likewise.
848 (write_root): Likewise.
849 (dump_typekind): Likewise.
850 (dump_type): Likewise.
851 * gengtype-state.c (type_lineloc): Handle TYPE_CALLBACK.
852 (state_writer::write_state_callback_type): New method.
853 (state_writer::write_state_type): Handle TYPE_CALLBACK.
854 (read_state_callback_type): New function.
855 (read_state_type): Handle TYPE_CALLBACK.
856 * ggc-common.c (callback_vec): New variable.
857 (gt_pch_note_callback): New function.
858 (gt_pch_save): Stream out gt_pch_save function address and relocation
860 (gt_pch_restore): Stream in saved gt_pch_save function address and
861 relocation table and apply relocations if needed.
862 * doc/gty.texi (callback): Document new GTY option.
863 * varasm.c (get_unnamed_section): Change callback argument's type and
864 last argument's type from const void * to const char *.
865 (output_section_asm_op): Change argument's type from const void *
866 to const char *, remove unnecessary cast.
867 * tree-core.h (struct tree_translation_unit_decl): Drop GTY((skip))
868 from language member.
869 * output.h (unnamed_section_callback): Change argument type from
870 const void * to const char *.
871 (struct unnamed_section): Use GTY((callback)) instead of GTY((skip))
872 for callback member. Change data member type from const void *
874 (struct noswitch_section): Use GTY((callback)) instead of GTY((skip))
876 (get_unnamed_section): Change callback argument's type and
877 last argument's type from const void * to const char *.
878 (output_section_asm_op): Change argument's type from const void *
880 * config/avr/avr.c (avr_output_progmem_section_asm_op): Likewise.
881 Remove unneeded cast.
882 * config/darwin.c (output_objc_section_asm_op): Change argument's type
883 from const void * to const char *.
884 * config/pa/pa.c (som_output_text_section_asm_op): Likewise.
885 (som_output_comdat_data_section_asm_op): Likewise.
886 * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
888 (rs6000_xcoff_output_readonly_section_asm_op): Likewise. Instead
889 of dereferencing directive hardcode variable names and decide based on
890 whether directive is NULL or not.
891 (rs6000_xcoff_output_readwrite_section_asm_op): Change argument's type
892 from const void * to const char *.
893 (rs6000_xcoff_output_tls_section_asm_op): Likewise. Instead
894 of dereferencing directive hardcode variable names and decide based on
895 whether directive is NULL or not.
896 (rs6000_xcoff_output_toc_section_asm_op): Change argument's type
897 from const void * to const char *.
898 (rs6000_xcoff_asm_init_sections): Adjust get_unnamed_section callers.
900 2021-12-03 Richard Purdie <richard.purdie@linuxfoundation.org>
902 * Makefile.in: Fix "argument list too long" from install-plugins.
904 2021-12-03 Matt Jacobson <mhjacobson@me.com>
906 * config.gcc: For the AVR target, populate TM_MULTILIB_CONFIG.
907 * config/avr/genmultilib.awk: Add ability to filter generated multilib
909 * config/avr/t-avr: Pass TM_MULTILIB_CONFIG to genmultilib.awk.
910 * configure.ac: Update help string for --with-multilib-list.
911 * configure: Regenerate.
913 2021-12-02 Ilya Lipnitskiy <ilya.lipnitskiy@gmail.com>
915 * configure: Regenerate.
916 * configure.ac: Define TARGET_LIBC_GNUSTACK on musl.
918 2021-12-02 Iain Sandoe <iain@sandoe.co.uk>
921 * config/host-darwin.c (TRY_EMPTY_VM_SPACE,
922 SAFE_ALLOC_SIZE): New.
923 (darwin_gt_pch_get_address): Rewrite to use nominated
924 memory segments rather than part of the compiler __DATA
926 (darwin_gt_pch_use_address): Likewise.
928 2021-12-02 Gerald Pfeifer <gerald@pfeifer.com>
930 * doc/install.texi (*-*-freebsd*): Remove references to
931 FreeBSD 1 and FreeBSD 2.
933 2021-12-02 Vladimir N. Makarov <vmakarov@redhat.com>
935 PR rtl-optimization/103437
936 * ira-color.c (setup_allocno_priorities): Switch off backup code
937 for overflow if compiler has __builtin_smul_overflow. Use <
938 for comparison with -INT_MAX.
940 2021-12-02 Bill Schmidt <wschmidt@linux.ibm.com>
942 * config/rs6000/altivec.h: Delete a number of #defines that are now
943 superfluous. Alphabetize. Include rs6000-vecdefines.h. Include some
945 * config/rs6000/rs6000-builtin-new.def (CMPB): Flag as no32bit.
946 (BPERMD): Flag as 32bit (needing special handling for 32-bit).
947 (UNPACK_TD): Return unsigned long long instead of unsigned long.
948 (GET_TEXASR): Return unsigned long instead of unsigned long long.
949 (GET_TEXASRU): Likewise.
950 (GET_TFHAR): Likewise.
951 (GET_TFIAR): Likewise.
952 (SET_TEXASR): Pass unsigned long instead of unsigned long long.
953 (SET_TEXASRU): Likewise.
954 (SET_TFHAR): Likewise.
955 (SET_TFIAR): Likewise.
956 (TABORTDC): Likewise.
957 (TABORTDCI): Likewise.
958 * config/rs6000/rs6000-call.c (rs6000_expand_new_builtin): Fix error
959 handling for no32bit. Add 32bit handling for RS6000_BIF_BPERMD.
960 * config/rs6000/rs6000-gen-builtins.c (write_init_file): Initialize
961 new_builtins_are_live to 1.
963 2021-12-02 Vladimir N. Makarov <vmakarov@redhat.com>
965 PR rtl-optimization/103437
966 * ira-color.c (setup_allocno_priorities): Use long long
967 multiplication as backup for overflow processing.
969 2021-12-02 Tamar Christina <tamar.christina@arm.com>
971 * config/aarch64/aarch64-protos.h (aarch64_gen_shareable_zero): New.
972 * config/aarch64/aarch64-simd.md (aarch64_rshrn<mode>,
973 aarch64_rshrn2<mode>): Generate rounding half-ing add when appropriate.
974 * config/aarch64/aarch64.c (aarch64_gen_shareable_zero): New.
976 2021-12-02 Vladimir N. Makarov <vmakarov@redhat.com>
978 PR rtl-optimization/103437
979 * ira-color.c (setup_allocno_priorities): Process multiplication
982 2021-12-02 Martin Liska <mliska@suse.cz>
984 PR gcov-profile/96092
985 * common.opt: New option.
986 * coverage.c (coverage_begin_function): Emit filename with
987 remap_profile_filename.
988 * doc/invoke.texi: Document the new option.
989 * file-prefix-map.c (add_profile_prefix_map): New.
990 (remap_profile_filename): Likewise.
991 * file-prefix-map.h (add_profile_prefix_map): Likewise.
992 (remap_profile_filename): Likewise.
993 * lto-opts.c (lto_write_options): Handle
994 OPT_fprofile_prefix_map_.
995 * opts-global.c (handle_common_deferred_options): Likewise.
996 * opts.c (common_handle_option): Likewise.
997 (gen_command_line_string): Likewise.
998 * profile.c (output_location): Emit filename with
999 remap_profile_filename.
1001 2021-12-02 Richard Biener <rguenther@suse.de>
1003 PR middle-end/103271
1004 * internal-fn.c (expand_DEFERRED_INIT): When the base
1005 of the LHS is a decl with matching constant size use
1006 that as the initialization target instead of an
1007 eventual VLA typed one.
1009 2021-12-02 Richard Biener <rguenther@suse.de>
1011 PR tree-optimization/103527
1012 * tree-vect-stmts.c (vect_build_gather_load_calls): Always
1013 use a truth type for building the vector mask.
1015 2021-12-02 Rasmus Villemoes <rasmus.villemoes@prevas.dk>
1017 * config/vxworks.h (LTO_PLUGIN_SPEC): Adapt to corrected
1018 spelling of -linker-output-auto-nolto-rel.
1020 2021-12-01 Uroš Bizjak <ubizjak@gmail.com>
1023 * config/i386/sse.md (VI2F): Remove mode iterator.
1024 (VI2F_256_512): New mode iterator.
1025 (vec_set<V8_128:mode>_0): New insn pattern.
1026 (vec_set<VI2F_256_512:mode>_0>): Rename from vec_set<VI2F:mode>mode.
1027 Use VI2F_256_512 mode iterator instead of VI2F.
1028 (*axv512fp16_movsh): Remove.
1029 (<sse2p4_1>_pinsr<ssemodesuffix>): Add (x,x,x) AVX2 alternative.
1030 Do not disable V8HF mode insn on AVX2 targets.
1031 (pinsrw -> pbroadcast + pblendw peephole2): New peephole.
1032 (pinsrw -> pbroadcast + pblendw splitter): New post-reload splitter.
1033 * config/i386/i386.md (extendhfsf): Call gen_vec_setv8hf_0.
1034 * config/i386/i386-expand.c (ix86_expand_vector_set)
1035 <case E_V8HFmode>: Use vec_merge path for TARGET_AVX2.
1037 2021-12-01 Roger Sayle <roger@nextmovesoftware.com>
1038 Richard Biener <rguenther@suse.de>
1040 * tree-ssa-loop-niter.c (number_of_iterations_until_wrap):
1041 Check if simplify_using_initial_conditions allows us to
1042 simplify the expression for may_be_zero.
1043 * match.pd (X != C ? -X : -C -> -X): New transform.
1044 (X != C ? ~X : ~C -> ~X): Likewise.
1045 ((X+1) > Y ? -X : 1 -> X >= Y ? -X : 1): Likewise.
1047 2021-12-01 Peter Bergner <bergner@linux.ibm.com>
1049 PR middle-end/103127
1050 * gimplify.c (is_var_need_auto_init): Handle opaque types.
1052 2021-12-01 Iain Buclaw <ibuclaw@gdcproject.org>
1054 * common.opt (static-libphobos): Add option.
1055 * config/darwin.h (LINK_SPEC): Substitute -lgphobos with libgphobos.a
1056 when linking statically.
1057 * gcc.c (driver_handle_option): Set -static-libphobos as always valid.
1059 2021-12-01 Jason Merrill <jason@redhat.com>
1062 * fold-const.c (maybe_nonzero_address): Use get_create or get
1063 depending on folding_initializer.
1064 (fold_binary_initializer_loc): New.
1065 * fold-const.h (fold_binary_initializer_loc): Declare.
1066 * varasm.c (mark_weak): Don't use the decl location.
1067 * doc/invoke.texi: Document -fconstexpr-fp-except.
1069 2021-12-01 Bill Schmidt <wschmidt@linux.ibm.com>
1072 * config/rs6000/rs6000-c.c (rs6000-builtins.h): Stop including.
1073 (rs6000-internal.h): Include.
1074 (altivec_resolve_new_overloaded_builtin): Move call to
1075 rs6000_invalid_new_builtin here from rs6000_new_builtin_decl.
1076 * config/rs6000/rs6000-call.c (rs6000-builtins.h): Stop including.
1077 (rs6000_invalid_new_builtin): Remove static qualifier.
1078 (rs6000_new_builtin_decl): Remove test for supported builtin.
1079 * config/rs6000/rs6000-internal.h (rs6000-builtins.h): Include.
1080 (rs6000_invalid_new_builtin): Declare.
1081 * config/rs6000/rs6000.c (rs6000-builtins.h): Don't include.
1083 2021-12-01 Aldy Hernandez <aldyh@redhat.com>
1085 PR tree-optimization/103409
1086 * gimple-range-path.cc (path_range_query::compute_ranges_in_phis):
1087 Do all the work with just one ssa_global_cache.
1088 * gimple-range-path.h: Remove m_tmp_phi_cache.
1090 2021-12-01 Richard Sandiford <richard.sandiford@arm.com>
1092 PR tree-optimization/103517
1093 * tree-vect-slp.c (vect_build_slp_tree_1): When allowing two
1094 different component references, check the codes of both them,
1095 rather than just the first.
1097 2021-12-01 Andrew MacLeod <amacleod@redhat.com>
1099 PR tree-optimization/103464
1100 * gimple-range.cc (gimple_ranger::prefill_name): Process phis also.
1101 (gimple_ranger::prefill_stmt_dependencies): Ditto.
1103 2021-12-01 Iain Buclaw <ibuclaw@gdcproject.org>
1105 * doc/install.texi (Prerequisites): Add note that D front end now
1106 requires GDC installed in order to bootstrap.
1107 (Building): Add D compiler section, referencing prerequisites.
1109 2021-12-01 Jakub Jelinek <jakub@redhat.com>
1111 * config/i386/x86-tune.def (X86_TUNE_SCHEDULE,
1112 X86_TUNE_SSE_PARTIAL_REG_FP_CONVERTS_DEPENDENCY,
1113 X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Formatting fixes.
1114 (X86_TUNE_USE_GATHER): Put m_GENERIC last for consistency.
1116 2021-12-01 Jakub Jelinek <jakub@redhat.com>
1118 PR rtl-optimization/102356
1119 * rtl.h (simplify_context): Add assoc_count member and
1120 max_assoc_count static member.
1121 * simplify-rtx.c (simplify_associative_operation): Don't reassociate
1122 more than max_assoc_count times within one outermost simplify_* call.
1123 * dwarf2out.c (mem_loc_descriptor): Optimize binary operation
1124 with both operands the same using DW_OP_dup.
1126 2021-12-01 Tamar Christina <tamar.christina@arm.com>
1128 * match.pd: Move below pattern that rewrites to EQ, NE.
1129 * tree.c (bitmask_inv_cst_vector_p): Correct do .. while indentation.
1131 2021-12-01 Siddhesh Poyarekar <siddhesh@gotplt.org>
1132 Martin Liška <mliska@suse.cz>
1134 PR tree-optimization/103456
1135 * tree-object-size.c (merge_object_sizes): Update osi->changed
1136 only if object_sizes_set succeeded.
1138 2021-11-30 liuhongt <hongtao.liu@intel.com>
1142 * config/i386/i386.md (*x86_64_shld_1): Set_attr
1143 length_immediate to 1.
1144 (*x86_shld_1): Ditto.
1145 (*x86_64_shrd_1): Ditto.
1146 (*x86_shrd_1): Ditto.
1148 2021-11-30 Bill Schmidt <wschmidt@linux.ibm.com>
1150 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
1152 (altivec_resolve_new_overloaded_builtin): Likewise.
1154 2021-11-30 Martin Jambor <mjambor@suse.cz>
1157 * ipa-sra.c (scan_function): Also check ECF_LOOPING_CONST_OR_PURE flag.
1159 2021-11-30 Richard Sandiford <richard.sandiford@arm.com>
1161 PR tree-optimization/103494
1162 * tree-vect-stmts.c (vect_get_gather_scatter_ops): Remove ncopies
1163 argument and calculate ncopies from gs_info->offset_vectype
1165 (vectorizable_store, vectorizable_load): Update accordingly.
1167 2021-11-30 Iain Buclaw <ibuclaw@gdcproject.org>
1169 * Makefile.in (GDC): New variable.
1170 (GDCFLAGS): New variable.
1171 * configure: Regenerate.
1172 * configure.ac: Add call to ACX_PROG_GDC. Substitute GDCFLAGS.
1174 2021-11-30 Martin Liska <mliska@suse.cz>
1175 Martin Jambor <mjambor@suse.cz>
1178 * ipa-param-manipulation.c
1179 (ipa_param_body_adjustments::prepare_debug_expressions): Be
1180 careful about hash_map reallocating itself. Simpify a return
1181 which always returns true.
1183 2021-11-30 Andrew MacLeod <amacleod@redhat.com>
1185 PR tree-optimization/103440
1186 * gimple-range-fold.cc (fold_using_range::range_of_phi): Continue
1187 normal param processing for equiv params.
1189 2021-11-30 Richard Biener <rguenther@suse.de>
1191 * config/i386/i386.c (ix86_shift_rotate_cost): Remove
1193 * tree-chrec.c (evolution_function_is_invariant_rec_p):
1195 * tree-if-conv.c (if_convertible_stmt_p): Likewise.
1196 * tree-ssa-pre.c (fully_constant_expression): Likewise.
1197 * tree-vrp.c (operand_less_p): Likewise.
1198 * reload.c (reg_overlap_mentioned_for_reload_p): Remove
1199 unreachable gcc_unreachable ().
1200 * sel-sched-ir.h (bb_next_bb): Likewise.
1201 * varasm.c (compare_constant): Likewise.
1203 2021-11-30 Richard Biener <rguenther@suse.de>
1205 PR tree-optimization/103489
1206 * tree-vect-loop.c (vectorizable_phi): Verify argument
1207 vector type compatibility to mitigate bool pattern recog
1210 2021-11-30 Thomas Schwinge <thomas@codesourcery.com>
1212 * omp-offload.c (oacc_loop_auto_partitions): Remove erroneous
1213 "Orphan reductions cannot have gang partitioning" handling.
1215 2021-11-30 Thomas Schwinge <thomas@codesourcery.com>
1217 * omp-offload.c (oacc_loop_process): Implement "gang reduction on
1218 an orphan loop" checking.
1220 2021-11-30 Cesar Philippidis <cesar@codesourcery.com>
1221 Thomas Schwinge <thomas@codesourcery.com>
1223 * omp-general.h (enum oacc_loop_flags): Add OLF_REDUCTION enum.
1224 * omp-low.c (lower_oacc_head_mark): Use it to mark OpenACC
1226 * omp-offload.c (oacc_loop_auto_partitions): Don't assign gang
1227 level parallelism to orphan reductions.
1229 2021-11-30 Aldy Hernandez <aldyh@redhat.com>
1231 PR tree-optimization/103451
1232 * range-op.cc (operator_div::wi_fold): Remove
1233 can_throw_non_call_exceptions special case.
1234 * tree-ssa-sink.c (sink_code_in_bb): Same.
1236 2021-11-30 Richard Sandiford <richard.sandiford@arm.com>
1238 * tree-vect-slp.c (arg1_arg4_map): New variable.
1239 (vect_get_operand_map): Handle IFN_MASK_GATHER_LOAD.
1240 (vect_build_slp_tree_1): Likewise.
1241 (vect_build_slp_tree_2): Likewise.
1242 * tree-vect-stmts.c (vectorizable_load): Expect the mask to be
1243 the last SLP child node rather than the first.
1245 2021-11-30 Richard Sandiford <richard.sandiford@arm.com>
1247 * tree-if-conv.c: Include tree-eh.h.
1248 (predicate_statements): Remove pe argument. Don't hoist
1250 (combine_blocks): Remove pe argument.
1251 (ifcvt_available_on_edge_p, ifcvt_can_hoist): New functions.
1252 (ifcvt_hoist_invariants): Likewise.
1253 (tree_if_conversion): Update call to combine_blocks. Call
1254 ifcvt_hoist_invariants after VN.
1256 2021-11-30 Richard Sandiford <richard.sandiford@arm.com>
1258 PR tree-optimization/102467
1259 * doc/sourcebuild.texi (vect_gather_load_ifn): Document.
1260 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
1261 Commonize safelen handling. Punt for anything involving
1262 gathers and scatters unless safelen says otherwise.
1263 * tree-vect-slp.c (arg1_map): New variable.
1264 (vect_get_operand_map): Handle IFN_GATHER_LOAD.
1265 (vect_build_slp_tree_1): Likewise.
1266 (vect_build_slp_tree_2): Likewise.
1267 (compatible_calls_p): If vect_get_operand_map returns nonnull,
1268 check that any skipped arguments are equal.
1269 (vect_slp_analyze_node_operations_1): Tighten reduction check.
1270 * tree-vect-stmts.c (check_load_store_for_partial_vectors): Take
1271 an ncopies argument.
1272 (vect_get_gather_scatter_ops): Take slp_node and ncopies arguments.
1274 (vectorizable_store, vectorizable_load): Adjust accordingly.
1276 2021-11-30 Richard Sandiford <richard.sandiford@arm.com>
1278 * gimple.h (gimple_num_args, gimple_arg, gimple_arg_ptr): New
1280 * tree-vect-slp.c (cond_expr_maps, arg2_map): New variables.
1281 (vect_get_operand_map): New function.
1282 (vect_get_and_check_slp_defs): Fix outdated comment.
1283 Use vect_get_operand_map and new gimple argument accessors.
1284 (vect_build_slp_tree_2): Likewise.
1286 2021-11-30 Richard Sandiford <richard.sandiford@arm.com>
1288 * tree-vect-slp.c (vect_build_slp_tree_1): Use code_helper
1289 to record the operations performed by statements, only using
1290 CALL_EXPR for things that don't map to built-in or internal
1291 functions. For shifts, require all shift amounts to be equal
1292 if optab_vector is not supported but optab_scalar is.
1294 2021-11-30 Richard Sandiford <richard.sandiford@arm.com>
1296 * tree-vect-data-refs.c (vect_check_gather_scatter): Continue
1297 processing conversions if the current offset is a pointer.
1299 2021-11-30 Richard Sandiford <richard.sandiford@arm.com>
1301 * tree-vectorizer.h (vect_is_reduction): Use STMT_VINFO_REDUC_IDX.
1303 2021-11-30 Richard Sandiford <richard.sandiford@arm.com>
1305 * genopinit.c (main): Turn supports_vec_gather_load and
1306 supports_vec_scatter_store into signed char arrays and remove
1307 supports_vec_gather_load_cached and supports_vec_scatter_store_cached.
1308 * optabs-query.c (supports_vec_convert_optab_p): Add a mode parameter.
1309 If the mode is not VOIDmode, test only for that mode.
1310 (supports_vec_gather_load_p): Likewise.
1311 (supports_vec_scatter_store_p): Likewise.
1312 * optabs-query.h (supports_vec_gather_load_p): Likewise.
1313 (supports_vec_scatter_store_p): Likewise.
1314 * tree-vect-data-refs.c (vect_check_gather_scatter): Pass the
1315 vector mode to supports_vec_gather_load_p and
1316 supports_vec_scatter_store_p.
1318 2021-11-30 Richard Sandiford <richard.sandiford@arm.com>
1320 * internal-fn.c (commutative_binary_fn_p): Handle IFN_ADD_OVERFLOW
1321 and IFN_MUL_OVERFLOW.
1323 2021-11-30 Richard Sandiford <richard.sandiford@arm.com>
1325 * internal-fn.c (commutative_binary_fn_p): Handle IFN_UBSAN_CHECK_ADD
1326 and IFN_UBSAN_CHECK_MUL.
1328 2021-11-30 Richard Sandiford <richard.sandiford@arm.com>
1330 * internal-fn.c (commutative_binary_fn_p): Handle IFN_COMPLEX_MUL.
1332 2021-11-30 Richard Sandiford <richard.sandiford@arm.com>
1334 * gimple-fold.c: Include internal-fn.h.
1335 (fold_stmt_1): If a function maps to an internal one, use
1336 first_commutative_argument to canonicalize the order of
1337 commutative arguments.
1338 * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3)
1339 (gimple_resimplify4, gimple_resimplify5): Extend commutativity
1340 checks to functions.
1342 2021-11-30 Richard Sandiford <richard.sandiford@arm.com>
1344 * doc/md.texi (reduc_fmin_scal_@var{m}): Document.
1345 (reduc_fmax_scal_@var{m}): Likewise.
1346 * optabs.def (reduc_fmax_scal_optab): New optab.
1347 (reduc_fmin_scal_optab): Likewise
1348 * internal-fn.def (REDUC_FMAX, REDUC_FMIN): New functions.
1349 * tree-vect-loop.c (reduction_fn_for_scalar_code): Handle
1350 CASE_CFN_FMAX and CASE_CFN_FMIN.
1351 (neutral_op_for_reduction): Likewise.
1352 (needs_fold_left_reduction_p): Likewise.
1353 * config/aarch64/iterators.md (FMAXMINV): New iterator.
1354 (fmaxmin): Handle UNSPEC_FMAXNMV and UNSPEC_FMINNMV.
1355 * config/aarch64/aarch64-simd.md (reduc_<optab>_scal_<mode>): Fix
1357 (reduc_<fmaxmin>_scal_<mode>): New pattern.
1358 * config/aarch64/aarch64-sve.md (reduc_<fmaxmin>_scal_<mode>):
1361 2021-11-30 Richard Sandiford <richard.sandiford@arm.com>
1363 * builtins.h (associated_internal_fn): Declare overload that
1364 takes a (combined_cfn, return type) pair.
1365 * builtins.c (associated_internal_fn): Split new overload out
1366 of original fndecl version. Also provide an overload that takes
1367 a (combined_cfn, return type) pair.
1368 * internal-fn.h (commutative_binary_fn_p): Declare.
1369 (commutative_ternary_fn_p): Likewise.
1370 (associative_binary_fn_p): Likewise.
1371 * internal-fn.c (commutative_binary_fn_p, commutative_ternary_fn_p):
1372 New functions, split out from...
1373 (first_commutative_argument): ...here.
1374 (associative_binary_fn_p): New function.
1375 * gimple-match.h (code_helper): Add a constructor that takes
1377 (commutative_binary_op_p): Declare.
1378 (commutative_ternary_op_p): Likewise.
1379 (first_commutative_argument): Likewise.
1380 (associative_binary_op_p): Likewise.
1381 (canonicalize_code): Likewise.
1382 (directly_supported_p): Likewise.
1383 (get_conditional_internal_fn): Likewise.
1384 (gimple_build): New overloads that takes a code_helper.
1385 * gimple-fold.c (gimple_build): Likewise.
1386 * gimple-match-head.c (commutative_binary_op_p): New function.
1387 (commutative_ternary_op_p): Likewise.
1388 (first_commutative_argument): Likewise.
1389 (associative_binary_op_p): Likewise.
1390 (canonicalize_code): Likewise.
1391 (directly_supported_p): Likewise.
1392 (get_conditional_internal_fn): Likewise.
1393 * tree-vectorizer.h: Include gimple-match.h.
1394 (neutral_op_for_reduction): Take a code_helper instead of a tree_code.
1395 (needs_fold_left_reduction_p): Likewise.
1396 (reduction_fn_for_scalar_code): Likewise.
1397 (vect_can_vectorize_without_simd_p): Declare a nNew overload that takes
1399 * tree-vect-loop.c: Include case-cfn-macros.h.
1400 (fold_left_reduction_fn): Take a code_helper instead of a tree_code.
1401 (reduction_fn_for_scalar_code): Likewise.
1402 (neutral_op_for_reduction): Likewise.
1403 (needs_fold_left_reduction_p): Likewise.
1404 (use_mask_by_cond_expr_p): Likewise.
1405 (build_vect_cond_expr): Likewise.
1406 (vect_create_partial_epilog): Likewise. Use gimple_build rather
1407 than gimple_build_assign.
1408 (check_reduction_path): Handle calls and operate on code_helpers
1409 rather than tree_codes.
1410 (vect_is_simple_reduction): Likewise.
1411 (vect_model_reduction_cost): Likewise.
1412 (vect_find_reusable_accumulator): Likewise.
1413 (vect_create_epilog_for_reduction): Likewise.
1414 (vect_transform_cycle_phi): Likewise.
1415 (vectorizable_reduction): Likewise. Make more use of
1417 (vect_transform_reduction): Use gimple_extract_op but expect
1418 a tree_code for now.
1419 (vect_can_vectorize_without_simd_p): New overload that takes
1421 * tree-vect-stmts.c (vectorizable_call): Handle reductions in
1423 * tree-vect-patterns.c (vect_mark_pattern_stmts): Use
1424 gimple_extract_op when updating STMT_VINFO_REDUC_IDX.
1426 2021-11-30 Richard Sandiford <richard.sandiford@arm.com>
1428 * gimple-match.h (code_helper): Provide == and != overloads.
1429 (code_helper::operator tree_code): Make explicit.
1430 (code_helper::operator combined_fn): Likewise.
1431 * gimple-match-head.c (convert_conditional_op): Use explicit
1432 conversions where necessary.
1433 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3): Likewise.
1434 (maybe_push_res_to_seq, gimple_simplify): Likewise.
1435 * gimple-fold.c (replace_stmt_with_simplification): Likewise.
1437 2021-11-30 Richard Sandiford <richard.sandiford@arm.com>
1439 * gimple-match.h (code_helper): Add functions for querying whether
1440 the code represents an internal_fn or a built_in_function.
1441 Provide explicit conversion operators for both cases.
1442 (gimple_extract_op): Declare.
1443 * gimple-match-head.c (gimple_extract): New function, extracted from...
1444 (gimple_simplify): ...here.
1445 (gimple_extract_op): New function.
1447 2021-11-30 Eric Botcazou <ebotcazou@adacore.com>
1450 * config/i386/i386.c (ix86_output_call_insn): Beef up comment about
1451 nops emitted with SEH.
1452 * config/i386/winnt.c (i386_pe_seh_unwind_emit): When switching to
1453 the cold section, emit a nop before the directive if the previous
1454 active instruction is a call.
1456 2021-11-30 Roger Sayle <roger@nextmovesoftware.com>
1457 Uroš Bizjak <ubizjak@gmail.com>
1460 * config/i386/sse.md (define_split): New splitters to simplify
1461 not;vec_duplicate;and as vec_duplicate;andn.
1463 2021-11-30 Richard Biener <rguenther@suse.de>
1465 PR middle-end/103485
1466 * match.pd (-((int)x >> (prec - 1)) to (unsigned)x >> (prec - 1)):
1467 Use VIEW_CONVERT_EXPR for vectors.
1469 2021-11-30 Richard Biener <rguenther@suse.de>
1471 * cfgrtl.c (skip_insns_after_block): Refactor code to
1472 be more easily readable.
1473 * expr.c (op_by_pieces_d::run): Remove unreachable
1475 * sched-deps.c (sched_analyze): Remove unreachable
1477 * sel-sched-ir.c (in_same_ebb_p): Likewise.
1478 * tree-ssa-alias.c (nonoverlapping_refs_since_match_p):
1479 Remove unreachable code.
1480 * tree-vect-slp.c (vectorize_slp_instance_root_stmt):
1481 Refactor to avoid unreachable loop iteration.
1482 * tree.c (walk_tree_1): Remove unreachable break.
1483 * vec-perm-indices.c (vec_perm_indices::series_p): Remove
1486 2021-11-30 Kewen Lin <linkw@linux.ibm.com>
1489 * config/rs6000/rs6000-call.c (rs6000_builtin_decl): Remove builtin mask
1492 2021-11-30 Kewen Lin <linkw@linux.ibm.com>
1494 * config/rs6000/rs6000.c
1495 (rs6000_cost_data::update_target_cost_per_stmt): Adjust the way to
1496 compute extra penalized cost. Remove useless parameter.
1497 (rs6000_cost_data::rs6000_add_stmt_cost): Adjust the call to function
1498 update_target_cost_per_stmt.
1500 2021-11-30 Kewen Lin <linkw@linux.ibm.com>
1503 2021-11-17 Kewen Lin <linkw@linux.ibm.com>
1505 * config/visium/visium.md (*add<mode>3_insn, *addsi3_insn, *addi3_insn,
1506 *sub<mode>3_insn, *subsi3_insn, *subdi3_insn, *neg<mode>2_insn,
1507 *negdi2_insn, *and<mode>3_insn, *ior<mode>3_insn, *xor<mode>3_insn,
1508 *one_cmpl<mode>2_insn, *ashl<mode>3_insn, *ashr<mode>3_insn,
1509 *lshr<mode>3_insn, *trunchiqi2_insn, *truncsihi2_insn,
1510 *truncdisi2_insn, *extendqihi2_insn, *extendqisi2_insn,
1511 *extendhisi2_insn, *extendsidi2_insn, *zero_extendqihi2_insn,
1512 *zero_extendqisi2_insn, *zero_extendsidi2_insn): Fix split condition.
1514 2021-11-30 Andrew MacLeod <amacleod@redhat.com>
1516 PR tree-optimization/103467
1517 * gimple-range-gori.cc (range_def_chain::register_dependency): Don't
1518 use an object reference after a potential resize.
1520 2021-11-29 Uroš Bizjak <ubizjak@gmail.com>
1523 * config/i386/i386.md (*movhi_internal): Introduce (*v,C) alternative.
1524 Do not allocate non-GPR registers. Optimize xmm->xmm moves when
1525 optimizing for size. Fix vpinsrw insn template.
1526 (*movhf_internal): Fix pinsrw and pextrw insn templates for
1527 AVX targets. Use sselog1 type instead of sselog. Optimize GPR moves.
1528 Optimize xmm->xmm moves for TARGET_SSE_PARTIAL_REG_DEPENDENCY
1529 and TARGET_SSE_SPLIT_REGS targets.
1531 2021-11-29 Eric Gallager <egallager@gcc.gnu.org>
1533 * configure: Re-regenerate.
1535 2021-11-29 Eric Gallager <egallager@gcc.gnu.org>
1538 * Makefile.in: Substitute CTAGS, ETAGS, and CSCOPE
1539 variables. Use ETAGS variable in TAGS target.
1540 * configure: Regenerate.
1541 * configure.ac: Allow CTAGS, ETAGS, and CSCOPE
1542 variables to be overridden.
1544 2021-11-29 Paul A. Clarke <pc@us.ibm.com>
1546 * config/rs6000/xmmintrin.h (_mm_movemask_ps): Use vec_extractm
1548 * config/rs6000/emmintrin.h (_mm_movemask_pd): Likewise.
1549 (_mm_movemask_epi8): Likewise.
1551 2021-11-29 Richard Biener <rguenther@suse.de>
1553 * read-rtl-function.c (function_reader::read_rtx_operand):
1554 Return only after resetting m_in_call_function_usage.
1556 2021-11-29 Roger Sayle <roger@nextmovesoftware.com>
1558 * config/i386/i386-expand.c (ix86_expand_v1ti_to_ti): Perform the
1559 conversion via V2DImode using vec_extractv2didi on TARGET_SSE2.
1560 * config/i386/sse.md (rotlv1ti3, rotrv1ti3): Change constraint
1561 on QImode shift amounts from const_int_operand to general_operand.
1563 2021-11-29 Richard Biener <rguenther@suse.de>
1565 * tree.h (reverse_storage_order_for_component_p): Remove
1566 spurious gcc_unreachable.
1567 * cfganal.c (dfs_find_deadend): Likewise.
1568 * fold-const-call.c (fold_const_logb): Likewise.
1569 (fold_const_significand): Likewise.
1570 * gimple-ssa-store-merging.c (lhs_valid_for_store_merging_p):
1573 2021-11-29 Richard Biener <rguenther@suse.de>
1575 * vec.c (qsort_chk): Do not return the void return value
1576 from the noreturn qsort_chk_error.
1577 * ccmp.c (expand_ccmp_expr_1): Remove unreachable return.
1578 * df-scan.c (df_ref_equal_p): Likewise.
1579 * dwarf2out.c (is_base_type): Likewise.
1580 (add_const_value_attribute): Likewise.
1581 * fixed-value.c (fixed_arithmetic): Likewise.
1582 * gimple-fold.c (gimple_fold_builtin_fputs): Likewise.
1583 * gimple-ssa-strength-reduction.c (stmt_cost): Likewise.
1584 * graphite-isl-ast-to-gimple.c
1585 (gcc_expression_from_isl_expr_op): Likewise.
1586 (gcc_expression_from_isl_expression): Likewise.
1587 * ipa-fnsummary.c (will_be_nonconstant_expr_predicate):
1589 * lto-streamer-in.c (lto_input_mode_table): Likewise.
1591 2021-11-29 liuhongt <hongtao.liu@intel.com>
1594 * config/i386/i386.c (inline_secondary_memory_needed): HImode
1595 move between GPR and SSE registers is supported under
1596 TARGET_SSE2 and above.
1597 * config/i386/i386.md (extendhfsf2): Optimize expander.
1598 (truncsfhf2): Ditto.
1599 * config/i386/sse.md (sse2p4_1): Adjust attr for V8HFmode to
1600 align with V8HImode.
1602 2021-11-29 liuhongt <hongtao.liu@intel.com>
1606 * config/i386/i386.c (ix86_secondary_reload): Without
1607 TARGET_SSE4_1, General register is needed to move HImode from
1608 sse register to memory.
1609 * config/i386/sse.md (*vec_extrachf): Use %vpextrw instead of
1610 pextrw in output templates.
1611 * config/i386/i386.md (movhi_internal): Ditto, also fix typo of
1612 MEM_P (operands[1]) and adjust mode/prefix/type attribute for
1613 alternatives related to sse register.
1615 2021-11-29 Richard Biener <rguenther@suse.de>
1617 PR tree-optimization/103458
1618 * tree-ssa-dce.c (make_forwarders_with_degenerate_phis): Do not
1619 create forwarders for blocks with abnormal predecessors.
1621 2021-11-29 Richard Biener <rguenther@suse.de>
1623 * gimple-predicate-analysis.cc (can_be_invalidated_p):
1624 Restore semantics to the one before the split from
1627 2021-11-28 Jan Hubicka <hubicka@ucw.cz>
1629 * profile.c: Include sreal.h
1630 (struct bb_stats): New.
1631 (cmp_stats): New function.
1632 (compute_branch_probabilities): Output bb stats.
1634 2021-11-28 Jan Hubicka <hubicka@ucw.cz>
1636 * cfghooks.c: Include sreal.h, profile.h.
1637 (profile_record_check_consistency): Fix checking of count counsistency;
1638 record also dynamic mismatches.
1639 * cfgrtl.c (rtl_account_profile_record): Similarly.
1640 * tree-cfg.c (gimple_account_profile_record): Likewise.
1641 * cfghooks.h (struct profile_record): Remove num_mismatched_freq_in,
1642 num_mismatched_freq_out, turn time to double, add
1643 dyn_mismatched_prob_out, dyn_mismatched_count_in,
1644 num_mismatched_prob_out; remove num_mismatched_count_out.
1645 * passes.c (account_profile_1): New function.
1646 (account_profile_in_list): New function.
1647 (pass_manager::dump_profile_report): Rewrite.
1648 (execute_one_ipa_transform_pass): Check profile consistency after
1650 (execute_all_ipa_transforms): Remove cfun test; record all transform
1652 (execute_one_pass): Fix collecting of profile stats.
1654 2021-11-27 Jakub Jelinek <jakub@redhat.com>
1656 PR middle-end/103431
1657 * config/i386/i386.md (x86_64_shld, x86_shld, x86_64_shrd, x86_shrd):
1658 Change insn pattern to accurately describe the instructions.
1659 (*x86_64_shld_1, *x86_shld_1, *x86_64_shrd_1, *x86_shrd_1): New
1660 define_insn patterns.
1661 (*x86_64_shld_2, *x86_shld_2, *x86_64_shrd_2, *x86_shrd_2): New
1662 define_insn_and_split patterns.
1663 (*ashl<dwi>3_doubleword_mask, *ashl<dwi>3_doubleword_mask_1,
1664 *<insn><dwi>3_doubleword_mask, *<insn><dwi>3_doubleword_mask_1,
1665 ix86_rotl<dwi>3_doubleword, ix86_rotr<dwi>3_doubleword): Adjust
1666 splitters for x86_{,64_}sh{l,r}d pattern changes.
1668 2021-11-27 Jakub Jelinek <jakub@redhat.com>
1670 PR tree-optimization/103435
1671 * gimple-ssa-store-merging.c (find_bswap_or_nop_finalize): Avoid UB if
1672 n->range - rsize == 8, just clear both *cmpnop and *cmpxchg in that
1675 2021-11-27 Martin Jambor <mjambor@suse.cz>
1678 * ipa-prop.c (ipcp_transform_function): Call
1679 delete_unreachable_blocks_update_callgraph instead of returning
1682 2021-11-26 Siddhesh Poyarekar <siddhesh@gotplt.org>
1684 * tree-object-size.c (object_sizes_grow, object_sizes_release,
1685 object_sizes_unknown_p, object_sizes_get, object_size_set_force,
1686 object_sizes_set): New functions.
1687 (addr_object_size, compute_builtin_object_size,
1688 expr_object_size, call_object_size, unknown_object_size,
1689 merge_object_sizes, plus_stmt_object_size,
1690 cond_expr_object_size, collect_object_sizes_for,
1691 check_for_plus_in_loops_1, init_object_sizes,
1692 fini_object_sizes): Adjust.
1694 2021-11-26 Siddhesh Poyarekar <siddhesh@gotplt.org>
1696 * tree-object-size.c: New enum.
1697 (object_sizes, computed, addr_object_size,
1698 compute_builtin_object_size, expr_object_size, call_object_size,
1699 merge_object_sizes, plus_stmt_object_size,
1700 collect_object_sizes_for, init_object_sizes, fini_object_sizes,
1701 object_sizes_execute): Replace magic numbers with enums.
1703 2021-11-26 Roger Sayle <roger@nextmovesoftware.com>
1705 * tree-ssa-loop-ivopts.c (cand_value_at): Take a class
1706 tree_niter_desc* argument instead of just a tree for NITER.
1707 If we require the iv candidate value at the end of the final
1708 loop iteration, try using the original loop bound as the
1709 NITER for sufficiently simple loops.
1710 (may_eliminate_iv): Update (only) call to cand_value_at.
1712 2021-11-26 Jan Hubicka <hubicka@ucw.cz>
1714 * ipa-modref.c (analyze_function): Drop parameter F and dump
1715 cgraph node name rather than cfun name.
1716 (modref_generate): Update.
1717 (modref_summaries::insert):Update.
1718 (modref_summaries_lto::insert):Update.
1719 (pass_modref::execute):Update.
1720 (ipa_merge_modref_summary_after_inlining): Improve combining of
1723 2021-11-26 Jan Hubicka <jh@suse.cz>
1726 * ipa-modref.c (update_escape_summary_1): Fix handling of min_flags.
1728 2021-11-26 konglin1 <lingling.kong@intel.com>
1731 * config/i386/i386.c (ix86_can_change_mode_class): Allow 16 bit data in XMM register
1733 * config/i386/i386.md (extendhfsf2): Add extenndhfsf2 for TARGET_F16C.
1734 (extendhfdf2): Restrict extendhfdf for TARGET_AVX512FP16 only.
1735 (*extendhf<mode>2): Rename from extendhf<mode>2.
1736 (truncsfhf2): Likewise.
1737 (truncdfhf2): Likewise.
1738 (*trunc<mode>2): Likewise.
1740 2021-11-26 liuhongt <hongtao.liu@intel.com>
1742 PR middle-end/103419
1743 * match.pd: Fix typo, use the type of second parameter, not
1746 2021-11-25 Jan Hubicka <jh@suse.cz>
1748 * ipa-cp.c (ipa_value_range_from_jfunc): Remove forgotten early return.
1750 2021-11-25 Roger Sayle <roger@nextmovesoftware.com>
1752 PR middle-end/103406
1753 * match.pd (minus @0 @0): Check tree_expr_maybe_infinite_p.
1755 2021-11-25 Martin Jambor <mjambor@suse.cz>
1758 * ipa-prop.h (ipa_get_param): New overload. Move bits of the existing
1760 * ipa-param-manipulation.h (ipa_param_adjustments): New member
1761 function get_updated_index_or_split.
1762 * ipa-param-manipulation.c
1763 (ipa_param_adjustments::get_updated_index_or_split): New function.
1764 * ipa-prop.c (adjust_agg_replacement_values): Reimplement, add
1765 capability to identify scalarized parameters and perform substitution
1767 (ipcp_transform_function): Create descriptors earlier, handle new
1768 return values of adjust_agg_replacement_values.
1770 2021-11-25 Aldy Hernandez <aldyh@redhat.com>
1772 * gimple-range-path.cc (path_range_query::compute_ranges_defined): Remove.
1773 (path_range_query::compute_ranges_in_block): Revert to bitmap order.
1774 * gimple-range-path.h: Remove compute_ranges_defined.
1776 2021-11-25 Andrew Stubbs <ams@codesourcery.com>
1779 * config/gcn/gcn.c (move_callee_saved_registers): Ensure that the
1780 number of spilled registers is counted correctly.
1782 2021-11-25 Jan Hubicka <hubicka@ucw.cz>
1784 * ipa-prop.h (ipa_node_params::ipa_node_params): Initialize
1787 2021-11-25 Andrew MacLeod <amacleod@redhat.com>
1789 PR tree-optimization/103359
1790 * gimple-range-fold.cc (fold_using_range::range_of_phi): If arg is
1791 equivalent to def, don't initially include it's range.
1793 2021-11-25 Jan Hubicka <hubicka@ucw.cz>
1795 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Do not check
1796 gimple_static_chain.
1798 2021-11-25 Richard Biener <rguenther@suse.de>
1800 * cgraphunit.c (symbol_table::output_weakrefs): Remove
1802 (get_alias_symbol): Remove now unused function.
1804 2021-11-25 Richard Biener <rguenther@suse.de>
1806 * cfgrtl.c (rtl_verify_fallthru): Do not stop verifying
1808 (skip_insns_after_block): Remove unreachable break and continue.
1810 2021-11-25 Richard Biener <rguenther@suse.de>
1812 * cfgexpand.c (label_rtx_for_bb): Remove dead loop construct.
1814 2021-11-25 Richard Biener <rguenther@suse.de>
1816 * regset.h (REG_SET_EMPTY_P): New macro.
1817 * cfgcleanup.c (thread_jump): Use REG_SET_EMPTY_P.
1819 2021-11-25 Martin Liska <mliska@suse.cz>
1821 * doc/invoke.texi: Use @option for -Wuninitialized.
1823 2021-11-25 Aldy Hernandez <aldyh@redhat.com>
1825 PR tree-optimization/103254
1826 * gimple-range-path.cc (path_range_query::compute_ranges): Move
1827 exported boolean code...
1828 (path_range_query::compute_imports): ...here.
1830 2021-11-25 Aldy Hernandez <aldyh@redhat.com>
1832 PR tree-optimization/103254
1833 * gimple-range-path.cc (path_range_query::compute_ranges_defined): New
1834 (path_range_query::compute_ranges_in_block): Move to
1835 compute_ranges_defined.
1836 * gimple-range-path.h (compute_ranges_defined): New.
1838 2021-11-25 Jakub Jelinek <jakub@redhat.com>
1840 PR tree-optimization/103417
1841 * match.pd ((X & Y) CMP 0): Only handle eq and ne. Commonalize
1844 2021-11-25 Jakub Jelinek <jakub@redhat.com>
1846 PR tree-optimization/103376
1847 * gimple-ssa-store-merging.c (perform_symbolic_merge): For
1848 BIT_IOR_EXPR, if masked1 && masked2 && masked1 != masked2, don't
1849 punt, but set the corresponding result byte to MARKER_BYTE_UNKNOWN.
1850 For BIT_XOR_EXPR similarly and if masked1 == masked2 and the
1851 byte isn't MARKER_BYTE_UNKNOWN, set the corresponding result byte to
1854 2021-11-25 Jakub Jelinek <jakub@redhat.com>
1857 * doc/invoke.texi (-Wcomma-subscript): Document that for
1858 -std=c++20 the option isn't enabled by default with -Wno-deprecated
1859 but for -std=c++23 it is.
1861 2021-11-24 Jan Hubicka <hubicka@ucw.cz>
1863 * ipa-modref.c (implicit_eaf_flags_for_edge_and_arg): Break out from...
1864 (modref_merge_call_site_flags): ... here.
1865 (ipa_merge_modref_summary_after_inlining): Use it.
1867 2021-11-24 Thomas Schwinge <thomas@codesourcery.com>
1869 * cfgloop.c (verify_loop_structure): Reduce scope of
1870 'class loop *loop' variable.
1871 * ipa-fnsummary.c (analyze_function_body): Likewise.
1872 * loop-init.c (fix_loop_structure): Likewise.
1873 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
1874 * predict.c (predict_loops): Likewise.
1875 * tree-loop-distribution.c (loop_distribution::execute): Likewise.
1876 * tree-vectorizer.c (pass_vectorize::execute): Likewise.
1878 2021-11-24 Andrew MacLeod <amacleod@redhat.com>
1880 PR tree-optimization/103231
1881 * gimple-range.cc (gimple_ranger::gimple_ranger): Create stmt stack.
1882 (gimple_ranger::gimple_ranger): Delete stmt stack.
1883 (gimple_ranger::range_of_stmt): Process depenedencies if they have no
1885 (gimple_ranger::prefill_name): New.
1886 (gimple_ranger::prefill_stmt_dependencies): New.
1887 * gimple-range.h (class gimple_ranger): Add prototypes.
1889 2021-11-24 Andrew MacLeod <amacleod@redhat.com>
1891 * gimple-range-cache.cc (ranger_cache::get_global_range): Always
1892 return a range, return if it came from the cache or not.
1893 (get_non_stale_global_range): Rename to get_global_range, and return
1894 the temporal state in a flag.
1895 * gimple-range-cache.h (get_non_stale_global_range): Rename and adjust.
1896 * gimple-range.cc (gimple_ranger::range_of_expr): No need to query
1898 (gimple_ranger::range_of_stmt): Adjust for global cache temporal state
1901 2021-11-24 Andrew MacLeod <amacleod@redhat.com>
1903 * gimple-range.cc (gimple_ranger::range_on_edge): Call trailer when
1904 a constant is encountered to terminate the trace.
1906 2021-11-24 Maciej W. Rozycki <macro@embecosm.com>
1908 PR middle-end/103059
1909 * reload.c (find_reloads_address_1): Also accept the ASHIFT form
1910 of indexed addressing.
1911 (find_reloads): Adjust accordingly.
1913 2021-11-24 Richard Biener <rguenther@suse.de>
1914 Jan Hubicka <jh@suse.cz>
1916 PR tree-optimization/103168
1917 * ipa-modref.h (struct modref_summary): Add load_accesses.
1918 * ipa-modref.c (modref_summary::finalize): Initialize load_accesses.
1919 * tree-ssa-sccvn.c (visit_reference_op_call): Use modref
1920 info to walk the virtual use->def chain to CSE const/pure
1921 function calls possibly reading from memory.
1923 2021-11-24 Thomas Schwinge <thomas@codesourcery.com>
1925 PR middle-end/103244
1926 * gimplify.c (gimplify_adjust_omp_clauses): Restore previous
1929 2021-11-24 Richard Biener <rguenther@suse.de>
1931 PR middle-end/103193
1932 * match.pd: Avoid canonicalizing (le/ge @0 @0) to (eq @0 @0)
1933 with NaNs and -ftrapping-math.
1935 2021-11-24 Jakub Jelinek <jakub@redhat.com>
1937 PR middle-end/103384
1938 * omp-general.c (omp_context_selector_matches): For ACCEL_COMPILER,
1939 return 0 for kind(host) and continue for kind(nohost).
1941 2021-11-24 Jakub Jelinek <jakub@redhat.com>
1943 PR middle-end/103365
1944 * attribs.h (lookup_attribute): Allow attr_name to start with
1945 underscore, as long as canonicalize_attr_name returns false.
1946 (lookup_attribute_by_prefix): Don't call get_attribute_name twice.
1947 * attribs.c (extract_attribute_substring): Reimplement using
1948 canonicalize_attr_name.
1949 (register_scoped_attribute): Change gcc_assert into
1950 gcc_checking_assert, verify !canonicalize_attr_name rather than
1951 that str.str doesn't start with '_'.
1953 2021-11-24 Jakub Jelinek <jakub@redhat.com>
1955 PR tree-optimization/103376
1956 * gimple-ssa-store-merging.c (perform_symbolic_merge): Add CODE
1957 argument. If CODE is not BIT_IOR_EXPR, ensure that one of masked1
1959 (find_bswap_or_nop_1, find_bswap_or_nop,
1960 imm_store_chain_info::try_coalesce_bswap): Adjust
1961 perform_symbolic_merge callers.
1963 2021-11-24 Richard Biener <rguenther@suse.de>
1965 * tree-ssa-loop-ivopts.c (find_givs): Take loop body as
1966 argument instead of re-computing it.
1967 (find_interesting_uses): Likewise.
1968 (find_induction_variables): Pass through loop body.
1969 (tree_ssa_iv_optimize_loop): Pass down loop body.
1971 2021-11-24 Tamar Christina <tamar.christina@arm.com>
1973 * tree-ssa-phiopt.c (spaceship_replacement): Handle new canonical
1976 2021-11-24 Tamar Christina <tamar.christina@arm.com>
1978 * tree.c (bitmask_inv_cst_vector_p): New.
1979 * tree.h (bitmask_inv_cst_vector_p): New.
1980 * match.pd: Use it in new bitmask compare pattern.
1982 2021-11-24 Jason Merrill <jason@redhat.com>
1984 * timevar.h (class auto_cond_timevar): New.
1986 2021-11-24 Hongtao Liu <hongtao.liu@intel.com>
1987 H.J. Lu <hongjiu.lu@intel.com>
1989 PR tree-optimization/103194
1990 * match.pd (gimple_nop_atomic_bit_test_and_p): Extended to
1992 * tree-ssa-ccp.c (gimple_nop_convert): Declare.
1993 (optimize_atomic_bit_test_and): Enhance
1994 optimize_atomic_bit_test_and to handle truncation.
1996 2021-11-23 Martin Sebor <msebor@redhat.com>
1999 * Makefile.in (OBJS): Add gimple-warn-recursion.o.
2000 * common.opt: Add -Winfinite-recursion.
2001 * doc/invoke.texi (-Winfinite-recursion): Document.
2002 * passes.def (pass_warn_recursion): Schedule a new pass.
2003 * tree-pass.h (make_pass_warn_recursion): Declare.
2004 * gimple-warn-recursion.c: New file.
2006 2021-11-23 Bill Schmidt <wschmidt@linux.ibm.com>
2008 * config/rs6000/rs6000-call.c (rs6000_invalid_new_builtin): Change
2009 error messages for ENB_P8V and ENB_P9V.
2011 2021-11-23 Bill Schmidt <wschmidt@linux.ibm.com>
2013 * config/rs6000/rs6000-builtin-new.def: Add power6-64 stanza. Move
2014 CMPB to power6-64 stanza.
2015 * config/rs6000/rs6000-call.c (rs6000_invalid_new_builtin): Handle
2017 (rs6000_new_builtin_is_supported): Likewise.
2018 (rs6000_expand_new_builtin): Likewise. Clean up formatting.
2019 (rs6000_init_builtins): Handle ENB_P6_64 case.
2020 * config/rs6000/rs6000-gen-builtins.c (bif_stanza): Add BSTZ_P6_64.
2021 (stanza_map): Add entry mapping power6-64 to BSTZ_P6_64.
2022 (enable_string): Add "ENB_P6_64".
2023 (write_decls): Add ENB_P6_64 to bif_enable enum.
2025 2021-11-23 Jan Hubicka <jh@suse.cz>
2027 * ipa-modref-tree.h (struct modref_tree): Remove max_bases, max_refs
2029 (modref_tree::modref_tree): Remove parametr.
2030 (modref_tree::insert_base): Add max_bases parameter.
2031 (modref_tree::insert): Add max_bases, max_refs, max_accesses
2033 (modref_tree::insert): New member function.
2034 (modref_tree::merge): Add max_bases, max_refs, max_accesses
2036 (modref_tree::insert): New member function.
2037 * ipa-modref-tree.c (test_insert_search_collapse): Update.
2038 (test_merge): Update.
2039 * ipa-modref.c (dump_records): Don't dump max_refs and max_bases.
2040 (dump_lto_records): Likewise.
2041 (modref_summary::finalize): Fix whitespace.
2042 (get_modref_function_summary): Likewise.
2043 (modref_access_analysis::record_access): Update.
2044 (modref_access_analysis::record_access_lto): Update.
2045 (modref_access_analysis::process_fnspec): Update.
2046 (analyze_function): Update.
2047 (modref_summaries::duplicate): Update.
2048 (modref_summaries_lto::duplicate): Update.
2049 (write_modref_records): Update.
2050 (read_modref_records): Update.
2051 (read_section): Update.
2052 (propagate_unknown_call): Update.
2053 (modref_propagate_in_scc): Update.
2054 (ipa_merge_modref_summary_after_inlining): Update.
2056 2021-11-23 Martin Liska <mliska@suse.cz>
2058 * doc/invoke.texi: Remove 2 more duplicite param descriptions.
2060 2021-11-23 Richard Biener <rguenther@suse.de>
2062 PR tree-optimization/103361
2063 * gimple-loop-jam.c (adjust_unroll_factor): Use lambda_int
2064 for the dependence distance.
2065 * tree-data-ref.c (print_lambda_vector): Properly print a lambda_int.
2067 2021-11-23 Jakub Jelinek <jakub@redhat.com>
2069 * tree-inline.h (struct copy_body_data): Remove
2070 transform_lang_insert_block member.
2071 * tree-inline.c (remap_block): Don't call
2072 id->transform_lang_insert_block.
2073 (optimize_inline_calls, copy_gimple_seq_and_replace_locals,
2074 tree_function_versioning, maybe_inline_call_in_expr,
2075 copy_fn): Don't initialize id.transform_lang_insert_block.
2076 * gimplify.c (gimplify_omp_loop): Likewise.
2078 2021-11-23 Jan Hubicka <hubicka@ucw.cz>
2080 PR tree-optimization/103335
2081 * tree-ssa-dse.c (valid_ao_ref_for_dse): Rename to ...
2082 (valid_ao_ref_kill_for_dse): ... this; do not check that boundaries
2083 are divisible by BITS_PER_UNIT.
2084 (get_byte_aligned_range_containing_ref): New function.
2085 (get_byte_aligned_range_contained_in_ref): New function.
2086 (normalize_ref): Rename to ...
2087 (get_byte_range): ... this one; handle accesses not aligned to byte
2088 boundary; return range in bytes rater than updating ao_ref.
2089 (clear_live_bytes_for_ref): Take write ref by reference; simplify using
2091 (setup_live_bytes_from_ref): Likewise.
2092 (clear_bytes_written_by): Update.
2093 (live_bytes_read): Update.
2094 (dse_classify_store): Simplify tech before live_bytes_read checks.
2096 2021-11-23 Andrew Pinski <apinski@marvell.com>
2098 PR tree-optimization/102216
2099 * gimple-fold.c (fold_stmt_1): Add canonicalization
2100 of "&MEM[ssa_n, CST]" to "ssa_n p+ CST", note this
2101 can only be done if !in_place.
2103 2021-11-23 Jakub Jelinek <jakub@redhat.com>
2105 PR middle-end/102431
2106 * gimplify.c (replace_reduction_placeholders): Remove.
2107 (note_no_context_vars): New function.
2108 (gimplify_omp_loop): For OMP_PARALLEL's BIND_EXPR create a new
2109 BLOCK. Use copy_tree_body_r with walk_tree instead of unshare_expr
2110 and replace_reduction_placeholders for duplication of
2111 OMP_CLAUSE_REDUCTION_{INIT,MERGE} expressions. Ensure all mentioned
2112 automatic vars have DECL_CONTEXT set to non-NULL before doing so
2113 and reset it afterwards for those vars and their corresponding
2116 2021-11-23 Haochen Gui <guihaoc@gcc.gnu.org>
2119 * config/rs6000/altivec.md (altivec_vreve<mode>2 for VEC_K): Use
2120 xxbrq for v16qi, xxbrq + xxbrh for v8hi and xxbrq + xxbrw for v4si
2121 or v4sf when p9_vector is set.
2122 (altivec_vreve<mode>2 for VEC_64): Defined. Implemented by xxswapd.
2124 2021-11-23 Navid Rahimi <navidrahimi@microsoft.com>
2126 PR tree-optimization/102232
2127 * match.pd (x * (1 + y / x) - y) -> (x - y % x): New optimization.
2129 2021-11-23 Navid Rahimi <navidrahimi@microsoft.com>
2131 PR tree-optimization/96779
2132 * match.pd (-x == x) -> (x == 0): New optimization.
2134 2021-11-22 Roger Sayle <roger@nextmovesoftware.com>
2136 PR tree-optimization/98953
2137 PR tree-optimization/103345
2138 * gimple-ssa-store-merging.c (find_bswap_or_nop_1): Handle
2139 BIT_XOR_EXPR and PLUS_EXPR the same as BIT_IOR_EXPR.
2140 (pass_optimize_bswap::execute): Likewise.
2142 2021-11-22 Martin Liska <mliska@suse.cz>
2144 * doc/invoke.texi: Remove duplicate documentation for 3 params.
2146 2021-11-22 Richard Biener <rguenther@suse.de>
2148 PR tree-optimization/103351
2149 * tree-ssa-dce.c (sort_phi_args): Sort after e->dest_idx as
2152 2021-11-22 liuhongt <hongtao.liu@intel.com>
2155 * config/i386/constraints.md (Bk): New
2156 define_memory_constraint.
2157 * config/i386/i386-protos.h (ix86_gpr_tls_address_pattern_p):
2159 * config/i386/i386.c (ix86_gpr_tls_address_pattern_p): New
2161 * config/i386/i386.md (*movsi_internal): Don't allow
2162 mask/sse/mmx move in TLS code sequences.
2163 (*movdi_internal): Ditto.
2165 2021-11-22 Kewen Lin <linkw@linux.ibm.com>
2167 * config/xtensa/xtensa.md (movdi_internal, movdf_internal): Fix split
2170 2021-11-21 Jakub Jelinek <jakub@redhat.com>
2173 * config/i386/i386-options.c (ix86_valid_target_attribute_p): If
2174 fndecl already has DECL_FUNCTION_SPECIFIC_TARGET, use that as base
2175 instead of target_option_default_node.
2177 2021-11-21 Jan Hubicka <hubicka@ucw.cz>
2180 * ipa-modref.c (parm_map_for_arg): Rename to ...
2181 (parm_map_for_ptr): .. this one; handle static chain and calls to
2183 (modref_access_analysis::get_access): Use parm_map_for_ptr.
2184 (modref_access_analysis::process_fnspec): Update.
2185 (modref_access_analysis::analyze_load): Update.
2186 (modref_access_analysis::analyze_store): Update.
2188 2021-11-21 Jan Hubicka <hubicka@ucw.cz>
2190 * ipa-modref.c (ignore_nondeterminism_p): Move earlier in source
2192 (ignore_retval_p): Likewise.
2193 (ignore_stores_p): Likewise.
2194 (parm_map_for_arg): Likewise.
2195 (class modref_access_analysis): New class.
2196 (modref_access_analysis::set_side_effects): New member function.
2197 (modref_access_analysis::set_nondeterministic): New member function.
2198 (get_access): Turn to ...
2199 (modref_access_analysis::get_access): ... this one.
2200 (record_access): Turn to ...
2201 (modref_access_analysis::record_access): ... this one.
2202 (record_access_lto): Turn to ...
2203 (modref_access_analysis::record_access_lto): ... This one.
2204 (record_access_p): Turn to ...
2205 (modref_access_analysis::record_access_p): ... This one
2206 (modref_access_analysis::record_unknown_load): New member function.
2207 (modref_access_analysis::record_unknown_store): New member function.
2208 (get_access_for_fnspec): Turn to ...
2209 (modref_access_analysis::get_access_for_fnspec): ... this one.
2210 (merge_call_side_effects): Turn to ...
2211 (moderf_access_analysis::merge_call_side_effects): Turn to ...
2212 (collapse_loads): Move later in source code.
2213 (collapse_stores): Move later in source code.
2214 (process_fnspec): Turn to ...
2215 (modref_access_analysis::process_fnspec): ... this one.
2216 (analyze_call): Turn to ...
2217 (modref_access_analysis::analyze_call): ... this one.
2218 (struct summary_ptrs): Remove.
2219 (analyze_load): Turn to ...
2220 (modref_access_analysis::analyze_load): ... this one.
2221 (analyze_store): Turn to ...
2222 (modref_access_analysis::analyze_store): ... this one.
2223 (analyze_stmt): Turn to ...
2224 (modref_access_analysis::analyze_stmt): ... This one.
2225 (remove_summary): Remove.
2226 (modref_access_analysis::propagate): Break out from ...
2227 (modref_access_analysis::analyze): Break out from ...
2228 (analyze_function): ... here.
2230 2021-11-21 Roger Sayle <roger@nextmovesoftware.com>
2231 Robin Dapp <rdapp@linux.ibm.com>
2234 * tree-ssa-math-opts.c (convert_mult_to_widen): Recognize
2235 signed WIDEN_MULT_EXPR if the target supports umul_widen_optab.
2237 2021-11-20 Jan Hubicka <hubicka@ucw.cz>
2240 * ipa-modref.c (ignore_nondeterminism_p): Allow looping pure/cont.
2241 (merge_call_side_effects): Improve debug output.
2243 2021-11-20 Jan Hubicka <hubicka@ucw.cz>
2246 * ipa-pure-const.c (propagate_pure_const): Fix merging of loping flag.
2248 2021-11-20 Jeff Law <jeffreyalaw@gmail.com>
2250 PR tree-optimization/103226
2251 * config/bfin/bfin.md (doloop pattern, splitter and expander): Clobber
2254 2021-11-20 Andrew Pinski <apinski@marvell.com>
2256 PR tree-optimization/103220
2257 * match.pd ((type) X bitop CST): Don't check if CST
2258 fits into the type if only the sign changes.
2260 2021-11-20 Alexandre Oliva <oliva@adacore.com>
2262 PR tree-optimization/102988
2263 * gimple-harden-conditionals.cc (detach_value): Copy SSA_NAME
2264 without decl sharing.
2266 2021-11-19 Iain Sandoe <iain@sandoe.co.uk>
2268 * doc/invoke.texi: Remove whitespace after an @option.
2270 2021-11-19 Paul A. Clarke <pc@us.ibm.com>
2272 * config/rs6000/emmintrin.h (_mm_sad_epu8): Use vec_absd when
2273 _ARCH_PWR9, optimize vec_sum2s when LE.
2275 2021-11-19 Iain Sandoe <iain@sandoe.co.uk>
2278 * config/darwin-driver.c (darwin_driver_init): Handle exported
2279 symbols and symbol lists (suppress automatic export of the TLS
2281 * config/darwin.c (darwin_rename_builtins): Remove workaround.
2282 * config/darwin.h (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
2283 (REAL_LIBGCC_SPEC): Handle revised library uses.
2284 * config/darwin.opt (nodefaultexport): New.
2285 * config/i386/darwin.h (PR80556_WORKAROUND): Remove.
2286 * config/i386/darwin32-biarch.h (PR80556_WORKAROUND): Likewise.
2287 * config/i386/darwin64-biarch.h (PR80556_WORKAROUND): Likewise.
2289 2021-11-19 Martin Jambor <mjambor@suse.cz>
2291 * opts.c (default_options_table): Switch off
2292 flag_semantic_interposition at Ofast.
2293 * doc/invoke.texi (Optimize Options): Document that Ofast switches off
2294 -fsemantic-interposition.
2296 2021-11-19 Jan Hubicka <hubicka@ucw.cz>
2298 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Do not guard modref
2299 by !gimple_call_chain.
2301 2021-11-19 Martin Sebor <msebor@redhat.com>
2305 * doc/invoke.texi (-Waddress): Update.
2307 2021-11-19 Andrew MacLeod <amacleod@redhat.com>
2309 PR tree-optimization/103254
2310 * gimple-range-gori.cc (range_def_chain::get_def_chain): Limit the
2311 depth for all statements with multple ssa names.
2313 2021-11-19 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
2315 * config/s390/s390.md (define_peephole2): Variable insn points
2316 to the first matched insn. Use peep2_next_insn(1) to refer to
2317 the second matched insn.
2319 2021-11-19 Tamar Christina <tamar.christina@arm.com>
2321 PR tree-optimization/103311
2323 * tree-vect-slp-patterns.c (vect_validate_multiplication): Fix CONJ
2324 test to new codegen.
2325 (complex_mul_pattern::matches): Move check downwards.
2327 2021-11-19 Martin Liska <mliska@suse.cz>
2330 2021-11-19 Martin Liska <mliska@suse.cz>
2332 * cfgexpand.c (pass_expand::execute): Use option directly.
2333 * function.c (allocate_struct_function): Likewise.
2334 * gimple-low.c (lower_function_body): Likewise.
2335 (lower_stmt): Likewise.
2336 * gimple-ssa-backprop.c (backprop::prepare_change): Likewise.
2337 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call): Likewise.
2338 * ipa-split.c (split_function): Likewise.
2339 * lto-streamer-in.c (input_function): Likewise.
2340 * sese.c (sese_insert_phis_for_liveouts): Likewise.
2341 * ssa-iterators.h (num_imm_uses): Likewise.
2342 * tree-cfg.c (make_blocks): Likewise.
2343 (gimple_merge_blocks): Likewise.
2344 * tree-inline.c (tree_function_versioning): Likewise.
2345 * tree-loop-distribution.c (generate_loops_for_partition): Likewise.
2346 * tree-sra.c (analyze_access_subtree): Likewise.
2347 * tree-ssa-dce.c (remove_dead_stmt): Likewise.
2348 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Likewise.
2349 * tree-ssa-phiopt.c (spaceship_replacement): Likewise.
2350 * tree-ssa-reassoc.c (reassoc_remove_stmt): Likewise.
2351 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
2352 * tree-ssa-threadedge.c (propagate_threaded_block_debug_into): Likewise.
2353 * tree-ssa.c (gimple_replace_ssa_lhs): Likewise.
2354 (target_for_debug_bind): Likewise.
2355 (insert_debug_temp_for_var_def): Likewise.
2356 (insert_debug_temps_for_defs): Likewise.
2357 (reset_debug_uses): Likewise.
2358 * tree-ssanames.c (release_ssa_name_fn): Likewise.
2359 * tree-vect-loop-manip.c (adjust_vec_debug_stmts): Likewise.
2360 (adjust_debug_stmts): Likewise.
2361 (adjust_phi_and_debug_stmts): Likewise.
2362 (vect_do_peeling): Likewise.
2363 * tree-vect-loop.c (vect_transform_loop_stmt): Likewise.
2364 (vect_transform_loop): Likewise.
2365 * tree.h (MAY_HAVE_DEBUG_MARKER_STMTS): Remove
2366 (MAY_HAVE_DEBUG_BIND_STMTS): Remove.
2367 (MAY_HAVE_DEBUG_STMTS): Use options directly.
2369 2021-11-19 Giuliano Belinassi <gbelinassi@suse.de>
2371 * gcc.c (process_command): Skip dumpdir override if file is a
2373 * doc/invoke.texi: Update -dumpdir documentation.
2375 2021-11-19 Andrew Pinski <apinski@marvell.com>
2377 PR tree-optimization/103314
2378 * match.pd ((type) X op CST): Restrict the equal
2379 TYPE_PRECISION case to GIMPLE only.
2381 2021-11-19 Martin Liska <mliska@suse.cz>
2384 * ipa-modref-tree.h (struct modref_parm_map): Add default
2386 * ipa-modref.c (ipa_merge_modref_summary_after_inlining): Use it.
2388 2021-11-19 Richard Biener <rguenther@suse.de>
2390 PR middle-end/103248
2391 * tree-eh.c (operation_could_trap_helper_p): Properly handle
2392 fixed-point RDIV_EXPR.
2394 2021-11-19 Richard Biener <rguenther@suse.de>
2396 PR tree-optimization/102436
2397 * tree-ssa-loop-im.c (execute_sm_if_changed): Add mode
2398 to just create the if structure and return the then block.
2399 (execute_sm): Add flag to indicate the var will re-use
2401 (hoist_memory_references): Support a single conditional
2402 block with all stores as special case.
2404 2021-11-19 Andrew Pinski <apinski@marvell.com>
2406 PR tree-optimization/103317
2407 * tree-ssa-phiopt.c (minmax_replacement): For the non empty
2408 middle bb case, check to make sure it has a single predecessor.
2410 2021-11-19 Andrew Pinski <apinski@marvell.com>
2412 PR tree-optimization/103257
2414 ((m1 >/</>=/<= m2) * d -> (m1 >/</>=/<= m2) ? d : 0):
2415 Disable until !canonicalize_math_p ().
2417 2021-11-19 Marek Polacek <polacek@redhat.com>
2421 * doc/invoke.texi: Update documentation for -Wuninitialized.
2422 * tree.c (stabilize_reference): Set location.
2424 2021-11-19 liuhongt <hongtao.liu@intel.com>
2427 * config/i386/x86-tune-costs.h (skylake_cost): Reduce cost of
2428 storing 256/512-bit SSE register to be equal to cost of
2429 unaligned store to avoid odd alignment peeling.
2430 (icelake_cost): Ditto.
2432 2021-11-18 David Edelsohn <dje.gcc@gmail.com>
2434 * config/rs6000/predicates.md (current_file_function_operand):
2435 Add flag_semantic_interposition to call of decl_replaceable_p.
2437 2021-11-18 Martin Liska <mliska@suse.cz>
2439 * ipa-modref.c (analyze_function): Do not execute the code
2440 only if dump_file != NULL.
2442 2021-11-18 Martin Liska <mliska@suse.cz>
2444 * ipa-modref.c (analyze_function): Use fnode instead of repeated
2445 cgraph_node::get (current_function_decl).
2447 2021-11-18 Jan Hubicka <hubicka@ucw.cz>
2449 * cgraph.c (cgraph_node::get_availability): Update call of
2451 (cgraph_node::verify_node): Verify that semantic_interposition flag
2453 * cgraph.h: (symtab_node): Add semantic_interposition flag.
2454 * cgraphclones.c (set_new_clone_decl_and_node_flags): Clear
2455 semantic_interposition flag.
2456 * cgraphunit.c (cgraph_node::finalize_function): Set
2457 semantic_interposition flag.
2458 (cgraph_node::add_new_function): Likewise.
2459 (varpool_node::finalize_decl): Likewise.
2460 (cgraph_node::create_wrapper): Likewise.
2461 * common.opt (fsemantic-interposition): Turn to optimization node.
2462 * lto-cgraph.c (lto_output_node): Stream semantic_interposition.
2463 (lto_output_varpool_node): Likewise.
2464 (input_overwrite_node): Likewise.
2465 (input_varpool_node): Likewise.
2466 * symtab.c (symtab_node::dump_base): Dump new flag.
2467 * varasm.c (decl_replaceable_p): Add semantic_interposition_p
2469 * varasm.h (decl_replaceable_p): Update declaration.
2470 * varpool.c (varpool_node::ctor_useable_for_folding_p):
2471 Use semantic_interposition flag.
2472 (varpool_node::get_availability): Likewise.
2473 (varpool_node::create_alias): Copy semantic_interposition flag.
2475 2021-11-18 Jan Hubicka <hubicka@ucw.cz>
2478 * ipa-modref.c (modref_eaf_analysis::merge_call_lhs_flags): Unused
2479 parameter may still be returned.
2480 (modref_eaf_analysis::analyze_ssa_name): Call merge_call_lhs_flags
2481 even for unused function args.
2483 2021-11-18 Tamar Christina <tamar.christina@arm.com>
2485 PR tree-optimization/103311
2486 * tree-vect-slp-patterns.c (complex_mul_pattern::matches,
2487 complex_fms_pattern::matches): Check for multiplications.
2489 2021-11-18 H.J. Lu <hjl.tools@gmail.com>
2492 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): Emit
2493 CS prefix for -mindirect-branch-cs-prefix.
2494 (ix86_output_indirect_branch_via_reg): Likewise.
2495 * config/i386/i386.opt: Add -mindirect-branch-cs-prefix.
2496 * doc/invoke.texi: Document -mindirect-branch-cs-prefix.
2498 2021-11-18 David Edelsohn <dje.gcc@gmail.com>
2500 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
2503 2021-11-18 Tamar Christina <tamar.christina@arm.com>
2505 PR tree-optimization/103253
2506 * tree-ssa-math-opts.c (convert_mult_to_fma): Check for LHS.
2508 2021-11-18 Matthias Kretz <m.kretz@gsi.de>
2510 * doc/extend.texi: Document __builtin_assoc_barrier.
2512 2021-11-18 Martin Liska <mliska@suse.cz>
2514 * cfgexpand.c (pass_expand::execute): Use option directly.
2515 * function.c (allocate_struct_function): Likewise.
2516 * gimple-low.c (lower_function_body): Likewise.
2517 (lower_stmt): Likewise.
2518 * gimple-ssa-backprop.c (backprop::prepare_change): Likewise.
2519 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call): Likewise.
2520 * ipa-split.c (split_function): Likewise.
2521 * lto-streamer-in.c (input_function): Likewise.
2522 * sese.c (sese_insert_phis_for_liveouts): Likewise.
2523 * ssa-iterators.h (num_imm_uses): Likewise.
2524 * tree-cfg.c (make_blocks): Likewise.
2525 (gimple_merge_blocks): Likewise.
2526 * tree-inline.c (tree_function_versioning): Likewise.
2527 * tree-loop-distribution.c (generate_loops_for_partition): Likewise.
2528 * tree-sra.c (analyze_access_subtree): Likewise.
2529 * tree-ssa-dce.c (remove_dead_stmt): Likewise.
2530 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Likewise.
2531 * tree-ssa-phiopt.c (spaceship_replacement): Likewise.
2532 * tree-ssa-reassoc.c (reassoc_remove_stmt): Likewise.
2533 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
2534 * tree-ssa-threadedge.c (propagate_threaded_block_debug_into): Likewise.
2535 * tree-ssa.c (gimple_replace_ssa_lhs): Likewise.
2536 (target_for_debug_bind): Likewise.
2537 (insert_debug_temp_for_var_def): Likewise.
2538 (insert_debug_temps_for_defs): Likewise.
2539 (reset_debug_uses): Likewise.
2540 * tree-ssanames.c (release_ssa_name_fn): Likewise.
2541 * tree-vect-loop-manip.c (adjust_vec_debug_stmts): Likewise.
2542 (adjust_debug_stmts): Likewise.
2543 (adjust_phi_and_debug_stmts): Likewise.
2544 (vect_do_peeling): Likewise.
2545 * tree-vect-loop.c (vect_transform_loop_stmt): Likewise.
2546 (vect_transform_loop): Likewise.
2547 * tree.h (MAY_HAVE_DEBUG_MARKER_STMTS): Remove
2548 (MAY_HAVE_DEBUG_BIND_STMTS): Remove.
2549 (MAY_HAVE_DEBUG_STMTS): Use options directly.
2551 2021-11-18 Richard Biener <rguenther@suse.de>
2553 PR tree-optimization/103277
2554 * tree-ssa-dse.c (need_ab_cleanup): New.
2555 (dse_optimize_redundant_stores): Adjust.
2556 (delete_dead_or_redundant_assignment): Get extra
2557 need_ab_cleanup argument and set when abnormal cleanup is
2559 (dse_optimize_call): Adjust.
2560 (dse_optimize_stmt): Likewise.
2561 (pass_dse::execute): Allocate and deallocate need_ab_cleanup.
2562 Perform abnormal cleanup.
2563 * tree-ssa-dse.h (delete_dead_or_redundant_assignment): Adjust.
2565 2021-11-18 Hongyu Wang <hongyu.wang@intel.com>
2567 * config/i386/i386-expand.c (ix86_expand_atomic_fetch_op_loop):
2568 Adjust generated cfg to avoid infinite loop.
2570 2021-11-18 konglin1 <lingling.kong@intel.com>
2572 * config/i386/avx512fp16intrin.h (_mm512_mul_pch): Add alias for _mm512_fmul_pch.
2573 (_mm512_mask_mul_pch): Likewise.
2574 (_mm512_maskz_mul_pch): Likewise.
2575 (_mm512_mul_round_pch): Likewise.
2576 (_mm512_mask_mul_round_pch): Likewise.
2577 (_mm512_maskz_mul_round_pch): Likewise.
2578 (_mm512_cmul_pch): Likewise.
2579 (_mm512_mask_cmul_pch): Likewise.
2580 (_mm512_maskz_cmul_pch): Likewise.
2581 (_mm512_cmul_round_pch): Likewise.
2582 (_mm512_mask_cmul_round_pch): Likewise.
2583 (_mm512_maskz_cmul_round_pch): Likewise.
2584 (_mm_mul_sch): Likewise.
2585 (_mm_mask_mul_sch): Likewise.
2586 (_mm_maskz_mul_sch): Likewise.
2587 (_mm_mul_round_sch): Likewise.
2588 (_mm_mask_mul_round_sch): Likewise.
2589 (_mm_maskz_mul_round_sch): Likewise.
2590 (_mm_cmul_sch): Likewise.
2591 (_mm_mask_cmul_sch): Likewise.
2592 (_mm_maskz_cmul_sch): Likewise.
2593 (_mm_cmul_round_sch): Likewise.
2594 (_mm_mask_cmul_round_sch): Likewise.
2595 (_mm_maskz_cmul_round_sch): Likewise.
2596 * config/i386/avx512fp16vlintrin.h (_mm_mul_pch): Likewise.
2597 (_mm_mask_mul_pch): Likewise.
2598 (_mm_maskz_mul_pch): Likewise.
2599 (_mm256_mul_pch): Likewise.
2600 (_mm256_mask_mul_pch): Likewise.
2601 (_mm256_maskz_mul_pch): Likewise.
2602 (_mm_cmul_pch): Likewise.
2603 (_mm_mask_cmul_pch): Likewise.
2604 (_mm_maskz_cmul_pch): Likewise.
2605 (_mm256_cmul_pch): Likewise.
2606 (_mm256_mask_cmul_pch): Likewise.
2607 (_mm256_maskz_cmul_pch): Likewise.
2609 2021-11-17 Andrew Pinski <apinski@marvell.com>
2611 PR tree-optimization/103228
2612 PR tree-optimization/55177
2613 * match.pd ((type) X bitop CST): Also do this
2614 transformation for nop conversions.
2616 2021-11-17 Martin Sebor <msebor@redhat.com>
2618 PR tree-optimization/102759
2619 * gimple-array-bounds.cc (build_printable_array_type): Move...
2620 * gimple-ssa-warn-access.cc (build_printable_array_type): Avoid
2621 pathological function redeclarations that remove a previously
2623 Improve formatting of function arguments in informational notes.
2624 * pointer-query.cc (build_printable_array_type): ...to here.
2625 * pointer-query.h (build_printable_array_type): Declared.
2627 2021-11-17 H.J. Lu <hjl.tools@gmail.com>
2630 * config/i386/i386-opts.h (harden_sls): New enum.
2631 * config/i386/i386.c (output_indirect_thunk): Mitigate against
2632 SLS for function return.
2633 (ix86_output_function_return): Likewise.
2634 (ix86_output_jmp_thunk_or_indirect): Mitigate against indirect
2636 (ix86_output_indirect_jmp): Likewise.
2637 (ix86_output_call_insn): Likewise.
2638 * config/i386/i386.opt: Add -mharden-sls=.
2639 * doc/invoke.texi: Document -mharden-sls=.
2641 2021-11-17 H.J. Lu <hjl.tools@gmail.com>
2644 * config/i386/i386.c (ix86_code_end): Remove "%!" before ret.
2645 (ix86_output_function_return): Likewise.
2646 * config/i386/i386.md (simple_return_pop_internal): Likewise.
2648 2021-11-17 Jan Hubicka <hubicka@ucw.cz>
2651 * ipa-modref.c (read_modref_records): Fix streaminig in of every_access
2654 2021-11-17 Uroš Bizjak <ubizjak@gmail.com>
2656 * config/i386/i386.c (indirect_thunks_used): Redefine as HARD_REG_SET.
2657 (ix86_code_end): Use TEST_HARD_REG_BIT on indirect_thunks_used.
2658 (ix86_output_indirect_branch_via_reg): Use SET_HARD_REG_BIT
2659 on indirect_thunks_used.
2660 (ix86_output_indirect_function_return): Ditto.
2662 2021-11-17 Jan Hubicka <hubicka@ucw.cz>
2664 * ipa-modref-tree.c: Include cgraph.h and tree-streamer.h.
2665 (modref_access_node::stream_out): New member function.
2666 (modref_access_node::stream_in): New member function.
2667 * ipa-modref-tree.h (modref_access_node::stream_out,
2668 modref_access_node::stream_in): Declare.
2669 * ipa-modref.c (modref_summary_lto::useful_p): Free useless kills.
2670 (modref_summary_lto::dump): Dump kills.
2671 (analyze_store): Record kills for LTO
2672 (analyze_stmt): Likewise.
2673 (modref_summaries_lto::duplicate): Duplicate kills.
2674 (write_modref_records): Use new stream_out member function.
2675 (read_modref_records): Likewise.
2676 (modref_write): Stream out kills.
2677 (read_section): Stream in kills
2678 (remap_kills): New function.
2679 (update_signature): Use it.
2681 2021-11-17 Uroš Bizjak <ubizjak@gmail.com>
2683 * config/i386/i386.h (LEGACY_SSE_REGNO_P): New predicate.
2684 (SSE_REGNO_P): Use LEGACY_SSE_REGNO_P predicate.
2685 * config/i386/i386.c (zero_all_vector_registers):
2686 Use LEGACY_SSE_REGNO_P predicate.
2687 (ix86_register_priority): Use REX_INT_REGNO_P, REX_SSE_REGNO_P
2688 and EXT_REG_SSE_REGNO_P predicates.
2689 (ix86_hard_regno_call_part_clobbered): Use REX_SSE_REGNO_P
2690 and LEGACY_SSE_REGNO_P predicates.
2692 2021-11-17 Jason Merrill <jason@redhat.com>
2694 * doc/invoke.texi (C++ Dialect Options): Document
2695 -fimplicit-constexpr.
2697 2021-11-17 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
2699 * config/aarch64/aarch64-modes.def (VECTOR_MODE): New V8DI mode.
2700 * config/aarch64/aarch64.c (aarch64_hard_regno_mode_ok): Handle
2702 * config/aarch64/iterators.md (define_mode_attr nunits): Add entry
2705 2021-11-17 Martin Uecker <uecker@gcc.gnu.org>
2709 * gimplify.c (gimplify_var_or_parm_decl): Update comment.
2710 (gimplify_compound_lval): Gimplify base expression first.
2711 (gimplify_target_expr): Add comment.
2713 2021-11-17 Jakub Jelinek <jakub@redhat.com>
2715 PR tree-optimization/103192
2716 * tree-ssa-loop-im.c (move_computations_worker): Use
2717 reset_flow_sensitive_info instead of manually clearing
2718 SSA_NAME_RANGE_INFO and do it for all SSA_NAMEs, not just ones
2719 with integral types.
2721 2021-11-17 Jakub Jelinek <jakub@redhat.com>
2723 PR tree-optimization/103255
2724 * gimple-range-fold.cc (fold_using_range::range_of_address): Return
2725 range_nonzero rather than unadjusted base's range. Formatting fixes.
2727 2021-11-17 Richard Sandiford <richard.sandiford@arm.com>
2729 * doc/md.texi (cond_fmin@var{mode}, cond_fmax@var{mode}): Document.
2730 * optabs.def (cond_fmin_optab, cond_fmax_optab): New optabs.
2731 * internal-fn.def (COND_FMIN, COND_FMAX): New functions.
2732 * internal-fn.c (first_commutative_argument): Handle them.
2733 (FOR_EACH_COND_FN_PAIR): Likewise.
2734 * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
2735 * config/aarch64/aarch64-sve.md (cond_<fmaxmin><mode>): New
2738 2021-11-17 Kewen Lin <linkw@linux.ibm.com>
2740 * config/i386/i386.md (*add<dwi>3_doubleword, *addv<dwi>4_doubleword,
2741 *addv<dwi>4_doubleword_1, *sub<dwi>3_doubleword,
2742 *subv<dwi>4_doubleword, *subv<dwi>4_doubleword_1,
2743 *add<dwi>3_doubleword_cc_overflow_1, *divmodsi4_const,
2744 *neg<dwi>2_doubleword, *tls_dynamic_gnu2_combine_64_<mode>): Fix split
2747 2021-11-17 Andrew Pinski <apinski@marvell.com>
2749 PR tree-optimization/103288
2750 * tree-ssa-phiopt.c (value_replacement): Return early if middle
2751 block has more than one pred.
2753 2021-11-17 Kewen Lin <linkw@linux.ibm.com>
2755 * config/visium/visium.md (*add<mode>3_insn, *addsi3_insn, *addi3_insn,
2756 *sub<mode>3_insn, *subsi3_insn, *subdi3_insn, *neg<mode>2_insn,
2757 *negdi2_insn, *and<mode>3_insn, *ior<mode>3_insn, *xor<mode>3_insn,
2758 *one_cmpl<mode>2_insn, *ashl<mode>3_insn, *ashr<mode>3_insn,
2759 *lshr<mode>3_insn, *trunchiqi2_insn, *truncsihi2_insn,
2760 *truncdisi2_insn, *extendqihi2_insn, *extendqisi2_insn,
2761 *extendhisi2_insn, *extendsidi2_insn, *zero_extendqihi2_insn,
2762 *zero_extendqisi2_insn, *zero_extendsidi2_insn): Fix split condition.
2764 2021-11-17 Marek Polacek <polacek@redhat.com>
2766 PR preprocessor/103026
2767 * doc/invoke.texi: Document -Wbidi-chars.
2769 2021-11-17 Jan Hubicka <hubicka@ucw.cz>
2772 * ipa-modref.c (ipa_merge_modref_summary_after_inlining): Fix clearing
2775 2021-11-16 Jan Hubicka <jh@suse.cz>
2777 * ipa-modref.c (get_modref_function_summary): Declare.
2778 * ipa-modref.h (get_modref_function_summary): New function.
2779 * tree-ssa-dse.c (clear_live_bytes_for_ref): Break out from ...
2780 (clear_bytes_written_by): ... here; also clear memory killed by
2783 2021-11-16 Iain Sandoe <iain@sandoe.co.uk>
2785 * ggc-common.c (gt_pch_save): If we cannot find a suitable
2786 memory segment for save, then error-out, do not try to
2788 (gt_pch_restore): Save the existing line table, and when
2789 the replacement is being read, use that when constructing
2792 2021-11-16 Peter Bergner <bergner@linux.ibm.com>
2795 * config/rs6000/mma.md (*vsx_assemble_pair): Add early-clobber for
2797 (*mma_assemble_acc): Likewise.
2799 2021-11-16 Martin Sebor <msebor@redhat.com>
2801 PR tree-optimization/102960
2802 * gimple-fold.c (get_range_strlen): Take bitmap as an argument rather
2803 than a pointer to it.
2804 (get_range_strlen_tree): Same. Remove bitmap allocation. Use
2806 (get_maxval_strlen): Use an auto_bitmap.
2807 * tree-ssa-strlen.c (get_range_strlen_dynamic): Factor out PHI
2809 (get_range_strlen_phi): ...into this function.
2810 Avoid assuming maximum string length is constant
2811 (printf_strlen_execute): Dump pointer query cache contents when
2812 details are requisted.
2814 2021-11-16 Jason Merrill <jason@redhat.com>
2816 * langhooks.h (struct lang_hooks): Adjust comment.
2817 * print-tree.c (print_node): Also call print_xnode hook for
2820 2021-11-16 Andrew Pinski <apinski@marvell.com>
2822 PR tree-optimization/103218
2823 * match.pd: New pattern for "((type)(a<0)) << SIGNBITOFA".
2825 2021-11-16 Claudiu Zissulescu <claziss@synopsys.com>
2827 * config/arc/arc.md (maddhisi4): Use a single move to accumulator.
2828 (umaddhisi4): Likewise.
2829 (machi): Update pattern.
2832 2021-11-16 Richard Biener <rguenther@suse.de>
2834 PR tree-optimization/102880
2835 * tree-ssa-dce.c (sort_phi_args): New function.
2836 (make_forwarders_with_degenerate_phis): Likewise.
2837 (perform_tree_ssa_dce): Call
2838 make_forwarders_with_degenerate_phis.
2840 2021-11-16 Richard Biener <rguenther@suse.de>
2842 PR tree-optimization/102880
2843 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Push
2844 single_pred (bb1) condition to places that really need it.
2845 (match_simplify_replacement): Likewise.
2846 (value_replacement): Likewise.
2847 (replace_phi_edge_with_variable): Deal with extra edges
2850 2021-11-16 Martin Jambor <mjambor@suse.cz>
2852 * cfgexpand.c (expand_gimple_basic_block): Use build_debug_expr_decl,
2853 add a fixme note about the mode assignment perhaps being unnecessary.
2854 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call):
2856 (ipa_param_body_adjustments::mark_dead_statements): Likewise.
2857 (ipa_param_body_adjustments::reset_debug_stmts): Likewise.
2858 * tree-inline.c (remap_ssa_name): Likewise.
2859 (tree_function_versioning): Likewise.
2860 * tree-into-ssa.c (rewrite_debug_stmt_uses): Likewise.
2861 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Likewise.
2862 * tree-ssa.c (insert_debug_temp_for_var_def): Likewise.
2864 2021-11-16 Jakub Jelinek <jakub@redhat.com>
2866 PR tree-optimization/103208
2867 * omp-expand.c (expand_omp_build_cond): New function.
2868 (expand_omp_for_init_counts, expand_omp_for_init_vars,
2869 expand_omp_for_static_nochunk, expand_omp_for_static_chunk): Use it.
2871 2021-11-16 Jakub Jelinek <jakub@redhat.com>
2873 PR tree-optimization/102009
2874 * gimple-ssa-warn-access.cc (pass_waccess::check_alloc_size_call):
2875 Punt if any of alloc_size arguments is out of bounds vs. number of
2878 2021-11-16 Roger Sayle <roger@nextmovesoftware.com>
2880 * config/i386/i386.md (*bmi2_rorx<mode3>_1): Make conditional
2881 on !optimize_function_for_size_p.
2882 (*<any_rotate><mode>3_1): Add preferred_for_size attribute.
2883 (define_splits): Conditionalize on !optimize_function_for_size_p.
2884 (*bmi2_rorxsi3_1_zext): Likewise.
2885 (*<any_rotate>si2_1_zext): Add preferred_for_size attribute.
2886 (define_splits): Conditionalize on !optimize_function_for_size_p.
2888 2021-11-16 Jan Hubicka <jh@suse.cz>
2891 * ipa-modref.c (merge_call_side_effects): Fix uninitialized
2894 2021-11-16 Andrew Pinski <apinski@marvell.com>
2896 PR tree-optimization/103245
2897 * match.pd: Combine the abs pattern matching using multiplication.
2898 Adding optional nop_convert too.
2900 2021-11-16 H.J. Lu <hjl.tools@gmail.com>
2902 PR middle-end/103268
2903 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Add a missing
2906 2021-11-15 Siddhesh Poyarekar <siddhesh@gotplt.org>
2908 * gimple-fold.c (gimple_fold_builtin_strncat): Use ranges to
2909 determine if it is safe to transform to strcat.
2910 (gimple_fold_builtin_snprintf): Likewise.
2912 2021-11-15 Siddhesh Poyarekar <siddhesh@gotplt.org>
2914 * gimple-fold.c (known_lower): New function.
2915 (gimple_fold_builtin_strncat_chk,
2916 gimple_fold_builtin_memory_chk, gimple_fold_builtin_stxcpy_chk,
2917 gimple_fold_builtin_stxncpy_chk,
2918 gimple_fold_builtin_snprintf_chk,
2919 gimple_fold_builtin_sprintf_chk): Use it.
2921 2021-11-15 Siddhesh Poyarekar <siddhesh@gotplt.org>
2923 * gimple-fold.c (dump_transformation): New function.
2924 (gimple_fold_builtin_stxcpy_chk,
2925 gimple_fold_builtin_stxncpy_chk): Use it. Simplify to
2926 BUILT_IN_STRNCPY if return value is not used.
2928 2021-11-15 H.J. Lu <hjl.tools@gmail.com>
2930 PR middle-end/103184
2931 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Check optab
2932 before transforming equivalent, but slighly different cases to
2933 their canonical forms.
2935 2021-11-15 Iain Sandoe <iain@sandoe.co.uk>
2938 * config/darwin.h (TARGET_DTORS_FROM_CXA_ATEXIT): New.
2939 * doc/tm.texi: Regenerated.
2940 * doc/tm.texi.in: Add TARGET_DTORS_FROM_CXA_ATEXIT hook.
2941 * ipa.c (cgraph_build_static_cdtor_1): Return the built
2943 (build_cxa_atexit_decl): New.
2944 (build_dso_handle_decl): New.
2945 (build_cxa_dtor_registrations): New.
2946 (compare_cdtor_tu_order): New.
2947 (build_cxa_atexit_fns): New.
2948 (ipa_cdtor_merge): If dtors_from_cxa_atexit is set,
2949 process the DTORs/CTORs accordingly.
2950 (pass_ipa_cdtor_merge::gate): Also run if
2951 dtors_from_cxa_atexit is set.
2952 * target.def (dtors_from_cxa_atexit): New hook.
2954 2021-11-15 Iain Sandoe <iain@sandoe.co.uk>
2956 * config.in: Regenerate.
2957 * configure: Regenerate.
2958 * configure.ac: Test ld64 for -platform-version support.
2960 2021-11-15 Thomas Schwinge <thomas@codesourcery.com>
2962 * diagnostic-spec.h (typedef xint_hash_t)
2963 (typedef xint_hash_map_t): Replace with...
2964 (typedef nowarn_map_t): ... this.
2965 (nowarn_map): Adjust.
2966 * diagnostic-spec.c (nowarn_map, suppress_warning_at): Likewise.
2968 2021-11-15 Thomas Schwinge <thomas@codesourcery.com>
2970 * profile.c (branch_prob): Use 'location_hash' for
2973 2021-11-15 Aldy Hernandez <aldyh@redhat.com>
2975 PR tree-optimization/103207
2976 * value-range.cc (irange::set): Drop overflow.
2978 2021-11-15 Jakub Jelinek <jakub@redhat.com>
2980 * gimplify.c (optimize_target_teams): Only add OMP_CLAUSE_THREAD_LIMIT
2981 to OMP_TARGET_CLAUSES if it isn't there already.
2983 2021-11-15 Aldy Hernandez <aldyh@redhat.com>
2985 * gimple-range-path.cc (path_range_query::internal_range_of_expr):
2986 Remove useless code.
2987 (path_range_query::ssa_defined_in_bb): New.
2988 (path_range_query::ssa_range_in_phi): Avoid fold_range call that
2989 could trigger additional lookups.
2990 Do not use the cache for ARGs defined in this block.
2991 (path_range_query::compute_ranges_in_block): Use ssa_defined_in_bb.
2992 (path_range_query::maybe_register_phi_relation): Same.
2993 (path_range_query::range_of_stmt): Adjust comment.
2994 * gimple-range-path.h (ssa_defined_in_bb): New.
2996 2021-11-15 Aldy Hernandez <aldyh@redhat.com>
2998 * gimple-range-path.cc (path_range_query::internal_range_of_expr):
2999 Default to global range if nothing found.
3001 2021-11-15 Richard Biener <rguenther@suse.de>
3003 PR tree-optimization/103237
3004 * tree-vect-loop.c (vect_is_simple_reduction): Fail for
3005 double reductions with multiple inner loop LC PHI nodes.
3007 2021-11-15 Hongyu Wang <hongyu.wang@intel.com>
3010 * config/i386/i386-expand.c (ix86_expand_atomic_fetch_op_loop):
3011 New expand function.
3012 * config/i386/i386-options.c (ix86_target_string): Add
3013 -mrelax-cmpxchg-loop flag.
3014 (ix86_valid_target_attribute_inner_p): Likewise.
3015 * config/i386/i386-protos.h (ix86_expand_atomic_fetch_op_loop):
3016 New expand function prototype.
3017 * config/i386/i386.opt: Add -mrelax-cmpxchg-loop.
3018 * config/i386/sync.md (atomic_fetch_<logic><mode>): New expander
3020 (atomic_<logic>_fetch<mode>): Likewise.
3021 (atomic_fetch_nand<mode>): Likewise.
3022 (atomic_nand_fetch<mode>): Likewise.
3023 (atomic_fetch_<logic><mode>): New expander for DI,TI modes.
3024 (atomic_<logic>_fetch<mode>): Likewise.
3025 (atomic_fetch_nand<mode>): Likewise.
3026 (atomic_nand_fetch<mode>): Likewise.
3027 * doc/invoke.texi: Document -mrelax-cmpxchg-loop.
3029 2021-11-15 Richard Biener <rguenther@suse.de>
3031 PR tree-optimization/103219
3032 * gimple-loop-jam.c (tree_loop_unroll_and_jam): Use single_exit
3033 to determine the exit for the VN region.
3035 2021-11-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3037 * tree-ssa-loop.c (pass_vectorize): Move to tree-vectorizer.c.
3038 (pass_data_vectorize): Likewise.
3039 (make_pass_vectorize): Likewise.
3040 * tree-vectorizer.c (vectorize_loops): Merge with
3041 pass_vectorize::execute and replace cfun occurences with fun param.
3042 (adjust_simduid_builtins): Add fun param, replace cfun occurences with
3043 fun, and adjust callers approrpiately.
3044 (note_simd_array_uses): Likewise.
3045 (vect_loop_dist_alias_call): Likewise.
3046 (set_uid_loop_bbs): Likewise.
3047 (vect_transform_loops): Likewise.
3048 (try_vectorize_loop_1): Likewise.
3049 (try_vectorize_loop): Likewise.
3051 2021-11-15 Jakub Jelinek <jakub@redhat.com>
3054 * config/i386/sync.md (atomic_bit_test_and_set<mode>,
3055 atomic_bit_test_and_complement<mode>,
3056 atomic_bit_test_and_reset<mode>): Use OPTAB_WIDEN instead of
3059 2021-11-15 Maciej W. Rozycki <macro@embecosm.com>
3061 * config/vax/vax.c (vax_lra_p): New prototype and function.
3062 (TARGET_LRA_P): Wire it.
3063 * config/vax/vax.opt (mlra): New option.
3064 * doc/invoke.texi (Option Summary, VAX Options): Document the
3067 2021-11-14 Jan Hubicka <jh@suse.cz>
3069 * ipa-modref.h (struct modref_summary): Add nondeterministic
3070 and calls_interposable flags.
3071 * ipa-modref.c (modref_summary::modref_summary): Initialize new flags.
3072 (modref_summary::useful_p): Check new flags.
3073 (struct modref_summary_lto): Add nondeterministic and
3074 calls_interposable flags.
3075 (modref_summary_lto::modref_summary_lto): Initialize new flags.
3076 (modref_summary_lto::useful_p): Check new flags.
3077 (modref_summary::dump): Dump new flags.
3078 (modref_summary_lto::dump): Dump new flags.
3079 (ignore_nondeterminism_p): New function.
3080 (merge_call_side_effects): Merge new flags.
3081 (process_fnspec): Likewise.
3082 (analyze_load): Volatile access is nondeterministic.
3083 (analyze_store): Liekwise.
3084 (analyze_stmt): Volatile ASM is nondeterministic.
3085 (analyze_function): Clear new flags.
3086 (modref_summaries::duplicate): Duplicate new flags.
3087 (modref_summaries_lto::duplicate): Duplicate new flags.
3088 (modref_write): Stream new flags.
3089 (read_section): Stream new flags.
3090 (propagate_unknown_call): Update new flags.
3091 (modref_propagate_in_scc): Propagate new flags.
3092 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check
3094 * tree-ssa-structalias.c (determine_global_memory_access):
3097 2021-11-14 Maciej W. Rozycki <macro@embecosm.com>
3099 * config/vax/vax.h (SET_RATIO): New macro.
3100 * config/vax/vax.md (UNSPEC_SETMEM_FILL): New constant.
3101 (setmemhi): New expander.
3102 (setmemhi1): New insn and splitter.
3103 (*setmemhi1): New insn.
3105 2021-11-14 Jan Hubicka <hubicka@ucw.cz>
3107 * ipa-modref-tree.c (modref_access_node::update_for_kills): New
3109 (modref_access_node::merge_for_kills): Likewise.
3110 (modref_access_node::insert_kill): Likewise.
3111 * ipa-modref-tree.h (modref_access_node::update_for_kills,
3112 modref_access_node::merge_for_kills, modref_access_node::insert_kill):
3114 (modref_access_node::useful_for_kill): New member function.
3115 * ipa-modref.c (modref_summary::useful_p): Release useless kills.
3116 (lto_modref_summary): Add kills.
3117 (modref_summary::dump): Dump kills.
3118 (record_access): Add mdoref_access_node parameter.
3119 (record_access_lto): Likewise.
3120 (merge_call_side_effects): Merge kills.
3121 (analyze_call): Add ALWAYS_EXECUTED param and pass it around.
3122 (struct summary_ptrs): Add always_executed filed.
3123 (analyze_load): Update.
3124 (analyze_store): Update; record kills.
3125 (analyze_stmt): Add always_executed; record kills in clobbers.
3126 (analyze_function): Track always_executed.
3127 (modref_summaries::duplicate): Duplicate kills.
3128 (update_signature): Release kills.
3129 * ipa-modref.h (struct modref_summary): Add kills.
3130 * tree-ssa-alias.c (alias_stats): Add kill stats.
3131 (dump_alias_stats): Dump kill stats.
3132 (store_kills_ref_p): Break out from ...
3133 (stmt_kills_ref_p): Use it; handle modref info based kills.
3135 2021-11-14 Aldy Hernandez <aldyh@redhat.com>
3137 PR tree-optimization/103229
3138 * gimple-range-cache.cc (ssa_global_cache::clear): Do not pass
3139 null value to memset.
3141 2021-11-14 Jan Hubicka <hubicka@ucw.cz>
3143 * ipa-modref-tree.c (modref_access_node::get_call_arg): New member
3145 (modref_access_node::get_ao_ref): Likewise.
3146 * ipa-modref-tree.h (modref_access_node::get_call_arg): Declare.
3147 (modref_access_node::get_ao_ref): Declare.
3148 * tree-ssa-alias.c (modref_may_conflict): Use new accessors.
3149 * tree-ssa-dse.c (dse_optimize_call): Use new accessors.
3151 2021-11-13 Jan Hubicka <jh@suse.cz>
3154 * dbgcnt.def (ipa_attr): New counters.
3155 * ipa-pure-const.c: Include dbgcnt.c
3156 (ipa_make_function_const): Use debug counter.
3157 (ipa_make_function_pure): Likewise.
3158 (propagate_pure_const): Fix bug in my previous change.
3160 2021-11-13 Jan Hubicka <hubicka@ucw.cz>
3162 * ipa-modref-tree.c (modref_access_node::range_info_useful_p):
3163 Offline from ipa-modref-tree.h.
3164 (modref_access_node::dump): Move from ipa-modref.c; make member
3166 * ipa-modref-tree.h (modref_access_node::range_info_useful_p.
3167 modref_access_node::dump): Declare.
3168 * ipa-modref.c (dump_access): Remove.
3169 (dump_records): Update.
3170 (dump_lto_records): Update.
3171 (record_access): Update.
3172 (record_access_lto): Update.
3174 2021-11-13 Jan Hubicka <hubicka@ucw.cz>
3176 * ipa-modref.c (modref_summary::modref_summary): Clear new flags.
3177 (modref_summary::dump): Dump try_dse.
3178 (modref_summary::finalize): Add FUN attribute; compute try-dse.
3179 (analyze_function): Update.
3180 (read_section): Update.
3181 (update_signature): Update.
3182 (pass_ipa_modref::execute): Update.
3183 * ipa-modref.h (struct modref_summary):
3184 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_range): Export.
3185 * tree-ssa-alias.h (ao_ref_init_from_ptr_and_range): Declare.
3186 * tree-ssa-dse.c (dse_optimize_call): New function.
3187 (dse_optimize_stmt): Use it.
3189 2021-11-13 Jan Hubicka <hubicka@ucw.cz>
3191 * ipa-modref-tree.c: Move #if CHECKING_P to proper place.
3193 2021-11-13 Jan Hubicka <jh@suse.cz>
3196 (struct modref_access_node): Move longer member functions to
3198 (modref_ref_node::try_merge_with): Turn into modreef_acces_node member
3200 * ipa-modref-tree.c (modref_access_node::contains): Move here
3201 from ipa-modref-tree.h.
3202 (modref_access_node::update): Likewise.
3203 (modref_access_node::merge): Likewise.
3204 (modref_access_node::closer_pair_p): Likewise.
3205 (modref_access_node::forced_merge): Likewise.
3206 (modref_access_node::update2): Likewise.
3207 (modref_access_node::combined_offsets): Likewise.
3208 (modref_access_node::try_merge_with): Likewise.
3209 (modref_access_node::insert): Likewise.
3211 2021-11-13 Jan Hubicka <jh@suse.cz>
3213 * ipa-modref.c (modref_summary::global_memory_read_p): Remove.
3214 (modref_summary::global_memory_written_p): Remove.
3215 (modref_summary::dump): Dump new flags.
3216 (modref_summary::finalize): New member function.
3217 (analyze_function): Call it.
3218 (read_section): Call it.
3219 (update_signature): Call it.
3220 (pass_ipa_modref::execute): Call it.
3221 * ipa-modref.h (struct modref_summary): Remove
3222 global_memory_read_p and global_memory_written_p.
3223 Add global_memory_read, global_memory_written.
3224 * tree-ssa-structalias.c (determine_global_memory_access):
3227 2021-11-13 Jan Hubicka <jh@suse.cz>
3229 * ipa-fnsummary.c (compute_fn_summary): Use type_attribut_allowed_p
3230 * ipa-param-manipulation.c
3231 (ipa_param_adjustments::type_attribute_allowed_p):
3232 New member function.
3233 (drop_type_attribute_if_params_changed_p): New function.
3234 (build_adjusted_function_type): Use it.
3235 * ipa-param-manipulation.h: Add type_attribute_allowed_p.
3237 2021-11-13 David Malcolm <dmalcolm@redhat.com>
3239 * doc/invoke.texi (Static Analyzer Options): Add
3240 -Wno-analyzer-tainted-allocation-size,
3241 -Wno-analyzer-tainted-divisor, -Wno-analyzer-tainted-offset, and
3242 -Wno-analyzer-tainted-size to list. Add
3243 -Wanalyzer-tainted-allocation-size, -Wanalyzer-tainted-divisor,
3244 -Wanalyzer-tainted-offset, and -Wanalyzer-tainted-size to list
3245 of options effectively enabled by -fanalyzer.
3246 (-Wanalyzer-tainted-allocation-size): New.
3247 (-Wanalyzer-tainted-array-index): Tweak wording; add link to CWE.
3248 (-Wanalyzer-tainted-divisor): New.
3249 (-Wanalyzer-tainted-offset): New.
3250 (-Wanalyzer-tainted-size): New.
3252 2021-11-13 Jan Hubicka <jh@suse.cz>
3254 * attr-fnspec.h (attr_fnspec::arg_eaf_flags): Break out from ...
3255 * gimple.c (gimple_call_arg_flags): ... here.
3256 * ipa-modref.c (analyze_parms): Record flags known from fnspec.
3257 (modref_merge_call_site_flags): Use arg_eaf_flags.
3259 2021-11-13 Aldy Hernandez <aldyh@redhat.com>
3261 PR tree-optimization/103222
3262 * gimple-range-path.cc (path_range_query::compute_ranges_in_phis):
3264 (path_range_query::compute_ranges_in_block): Call
3265 compute_ranges_in_phis.
3266 * gimple-range-path.h (path_range_query::compute_ranges_in_phis):
3269 2021-11-13 Jan Hubicka <jh@suse.cz>
3271 * ipa-fnsummary.c (compute_fn_summary): Do not give up on signature
3272 changes on "fn spec" attribute; give up on varadic types.
3273 * ipa-param-manipulation.c: Include attribs.h.
3274 (build_adjusted_function_type): New parameter ARG_MODIFIED; if it is
3275 true remove "fn spec" attribute.
3276 (ipa_param_adjustments::build_new_function_type): Update.
3277 (ipa_param_body_adjustments::modify_formal_parameters): update.
3278 * ipa-sra.c: Include attribs.h.
3279 (ipa_sra_preliminary_function_checks): Do not check for TYPE_ATTRIBUTES.
3281 2021-11-13 Aldy Hernandez <aldyh@redhat.com>
3283 * gimple-range-path.cc (path_range_query::path_range_query): Merge
3285 (path_range_query::import_p): Move from header file.
3286 (path_range_query::~path_range_query): Adjust for combined ctors.
3287 * gimple-range-path.h: Merge ctors.
3288 (path_range_query::import_p): Move to .cc file.
3290 2021-11-13 Jan Hubicka <jh@suse.cz>
3292 PR tree-optimization/103182
3293 * ipa-modref.c (callee_to_caller_flags): Fix merging of flags.
3294 (modref_eaf_analysis::analyze_ssa_name): Fix merging of flags.
3296 2021-11-12 Stafford Horne <shorne@gmail.com>
3298 * config/or1k/or1k-protos.h (or1k_profile_hook): New function.
3299 * config/or1k/or1k.h (PROFILE_HOOK): Change macro to reference
3300 new function or1k_profile_hook.
3301 * config/or1k/or1k.c (struct machine_function): Add new field
3302 set_mcount_arg_insn.
3303 (or1k_profile_hook): New function.
3304 (or1k_init_pic_reg): Update to inject pic rtx after _mcount arg
3306 (or1k_frame_pointer_required): Frame pointer no longer needed
3309 2021-11-12 Jan Hubicka <jh@suse.cz>
3311 PR tree-optimization/103209
3312 * tree-ssa-structalias.c (find_func_aliases_for_call): Fix
3313 use of handle_rhs_call
3315 2021-11-12 Aldy Hernandez <aldyh@redhat.com>
3317 PR tree-optimization/103202
3318 * gimple-range-path.cc
3319 (path_range_query::compute_ranges_in_block): Solve PHI imports first.
3321 2021-11-12 Jan Hubicka <jh@suse.cz>
3323 * ipa-pure-const.c (propagate_pure_const): Remove redundant check;
3324 fix call of ipa_make_function_const and ipa_make_function_pure.
3326 2021-11-12 Richard Sandiford <richard.sandiford@arm.com>
3328 * config/aarch64/aarch64.c (aarch64_vector_op::n_advsimd_ops): Delete.
3329 (aarch64_vector_op::m_seen_loads): Likewise.
3330 (aarch64_vector_costs::aarch64_vector_costs): Don't push to
3332 (aarch64_vector_op::count_ops): Remove vectype and factor parameters.
3333 Remove code that tries to predict different vec_flags from the
3335 (aarch64_vector_costs::add_stmt_cost): Update accordingly.
3336 Remove m_advsimd_ops handling.
3338 2021-11-12 Richard Sandiford <richard.sandiford@arm.com>
3340 * config/aarch64/aarch64.c (aarch64_vector_costs::m_saw_sve_only_op)
3341 (aarch64_sve_only_stmt_p): Delete.
3342 (aarch64_vector_costs::prefer_unrolled_loop): New function,
3343 extracted from adjust_body_cost.
3344 (aarch64_vector_costs::better_main_loop_than_p): New function,
3345 using heuristics extracted from adjust_body_cost and
3346 adjust_body_cost_sve.
3347 (aarch64_vector_costs::adjust_body_cost_sve): Remove
3348 advsimd_cycles_per_iter and could_use_advsimd parameters.
3349 Update after changes above.
3350 (aarch64_vector_costs::adjust_body_cost): Update after changes above.
3352 2021-11-12 Richard Sandiford <richard.sandiford@arm.com>
3354 * config/aarch64/aarch64.c (aarch64_vec_op_count::m_vf_factor):
3355 New member variable.
3356 (aarch64_vec_op_count::aarch64_vec_op_count): Add a parameter for it.
3357 (aarch64_vec_op_count::vf_factor): New function.
3358 (aarch64_vector_costs::aarch64_vector_costs): When costing for
3359 neoverse-512tvb, pass a vf_factor of 2 for the Neoverse V1 version
3361 (aarch64_vector_costs::adjust_body_cost): Read the vf factor
3362 instead of hard-coding 2.
3364 2021-11-12 Richard Sandiford <richard.sandiford@arm.com>
3366 * config/aarch64/aarch64.c
3367 (aarch64_vec_op_count::rename_cycles_per_iter): New function.
3368 (aarch64_vec_op_count::min_nonpred_cycles_per_iter): Likewise.
3369 (aarch64_vec_op_count::min_pred_cycles_per_iter): Likewise.
3370 (aarch64_vec_op_count::min_cycles_per_iter): Likewise.
3371 (aarch64_vec_op_count::dump): Move earlier in file. Dump the
3372 above properties too.
3373 (aarch64_estimate_min_cycles_per_iter): Delete.
3374 (adjust_body_cost): Use aarch64_vec_op_count::min_cycles_per_iter
3375 instead of aarch64_estimate_min_cycles_per_iter. Rely on the dump
3376 routine to print CPI estimates.
3377 (adjust_body_cost_sve): Likewise. Use the other functions above
3378 instead of doing the work inline.
3380 2021-11-12 Richard Sandiford <richard.sandiford@arm.com>
3382 * config/aarch64/aarch64.c (aarch64_vec_op_count): Allow default
3384 (aarch64_vec_op_count::base_issue_info): Remove handling of null
3386 (aarch64_vec_op_count::simd_issue_info): Likewise.
3387 (aarch64_vec_op_count::sve_issue_info): Likewise.
3388 (aarch64_vector_costs::m_ops): Turn into a vector.
3389 (aarch64_vector_costs::m_advsimd_ops): Likewise.
3390 (aarch64_vector_costs::aarch64_vector_costs): Add entries to
3391 the vectors based on aarch64_tune_params.
3392 (aarch64_vector_costs::analyze_loop_vinfo): Update the pred_ops
3393 of all entries in m_ops.
3394 (aarch64_vector_costs::add_stmt_cost): Call count_ops for all
3396 (aarch64_estimate_min_cycles_per_iter): Remove issue_info
3397 parameter and get the information from the ops instead.
3398 (aarch64_vector_costs::adjust_body_cost_sve): Take a
3399 aarch64_vec_issue_info instead of a aarch64_vec_op_count.
3400 (aarch64_vector_costs::adjust_body_cost): Update call accordingly.
3401 Exit earlier if m_ops is empty for either cost structure.
3403 2021-11-12 Richard Sandiford <richard.sandiford@arm.com>
3405 * config/aarch64/aarch64.c (aarch64_vector_costs::m_scalar_ops)
3406 (aarch64_vector_costs::m_sve_ops): Replace with...
3407 (aarch64_vector_costs::m_ops): ...this.
3408 (aarch64_vector_costs::analyze_loop_vinfo): Update accordingly.
3409 (aarch64_vector_costs::adjust_body_cost_sve): Likewise.
3410 (aarch64_vector_costs::aarch64_vector_costs): Likewise.
3411 Initialize m_vec_flags here rather than in add_stmt_cost.
3412 (aarch64_vector_costs::count_ops): Test for scalar reductions too.
3413 Allow vectype to be null.
3414 (aarch64_vector_costs::add_stmt_cost): Call count_ops for scalar
3415 code too. Don't require vectype to be nonnull.
3416 (aarch64_vector_costs::adjust_body_cost): Take the loop_vec_info
3417 and scalar costs as parameters. Use the scalar costs to determine
3418 the cycles per iteration of the scalar loop, then multiply it
3419 by the estimated VF.
3420 (aarch64_vector_costs::finish_cost): Update call accordingly.
3422 2021-11-12 Richard Sandiford <richard.sandiford@arm.com>
3424 * config/aarch64/aarch64.c (aarch64_dr_type): New function.
3425 (aarch64_vector_costs::count_ops): Use it rather than the
3426 vectype to determine floatness.
3428 2021-11-12 Richard Sandiford <richard.sandiford@arm.com>
3430 * config/aarch64/aarch64.c (aarch64_sve_in_loop_reduction_latency):
3431 Remove vectype parameter and get floatness from the type of the
3433 (arch64_in_loop_reduction_latency): Likewise.
3434 (aarch64_detect_vector_stmt_subtype): Update caller.
3435 (aarch64_vector_costs::count_ops): Likewise.
3437 2021-11-12 Richard Sandiford <richard.sandiford@arm.com>
3439 * config/aarch64/aarch64.c (aarch64_sve_op_count): Fold into...
3440 (aarch64_vec_op_count): ...this. Add a constructor.
3441 (aarch64_vec_op_count::vec_flags): New function.
3442 (aarch64_vec_op_count::base_issue_info): Likewise.
3443 (aarch64_vec_op_count::simd_issue_info): Likewise.
3444 (aarch64_vec_op_count::sve_issue_info): Likewise.
3445 (aarch64_vec_op_count::m_issue_info): New member variable.
3446 (aarch64_vec_op_count::m_vec_flags): Likewise.
3447 (aarch64_vector_costs): Add a constructor.
3448 (aarch64_vector_costs::m_sve_ops): Change type to aarch64_vec_op_count.
3449 (aarch64_vector_costs::aarch64_vector_costs): New function.
3450 Initialize m_scalar_ops, m_advsimd_ops and m_sve_ops.
3451 (aarch64_vector_costs::count_ops): Remove vec_flags and
3452 issue_info parameters, using the new aarch64_vec_op_count
3454 (aarch64_vector_costs::add_stmt_cost): Update call accordingly.
3455 (aarch64_sve_op_count::dump): Fold into...
3456 (aarch64_vec_op_count::dump): ..here.
3458 2021-11-12 Richard Sandiford <richard.sandiford@arm.com>
3460 * config/aarch64/aarch64.c: Include tree-dfa.h.
3461 (aarch64_check_consecutive_mems): New function that takes MEM_EXPR
3462 and MEM_OFFSET into account.
3463 (aarch64_swap_ldrstr_operands): Use it.
3464 (aarch64_operands_ok_for_ldpstp): Likewise. Check that the
3465 address of the second memory doesn't depend on the result of
3468 2021-11-12 Jan Hubicka <hubicka@ucw.cz>
3470 * ipa-pure-const.c (ipa_make_function_pure): Fix exit condition.
3472 2021-11-12 Jan Hubicka <jh@suse.cz>
3474 PR tree-optimization/103175
3475 * ipa-modref.c (modref_lattice::merge): Add sanity check.
3476 (callee_to_caller_flags): Make flags adjustment sane.
3477 (modref_eaf_analysis::analyze_ssa_name): Likewise.
3479 2021-11-12 Jan Hubicka <jh@suse.cz>
3482 * ipa-modref.c (analyze_function, modref_propagate_in_scc): Do
3483 not mark pure/const function if there are side-effects.
3485 2021-11-12 Chung-Lin Tang <cltang@codesourcery.com>
3487 * tree.h (OMP_CLAUSE_MAP_RUNTIME_IMPLICIT_P): New access macro for
3488 'implicit' bit, using 'base.deprecated_flag' field of tree_node.
3489 * tree-pretty-print.c (dump_omp_clause): Add support for printing
3490 implicit attribute in tree dumping.
3491 * gimplify.c (gimplify_adjust_omp_clauses_1):
3492 Set OMP_CLAUSE_MAP_RUNTIME_IMPLICIT_P to 1 if map clause is implicitly
3494 (gimplify_adjust_omp_clauses): Adjust place of adding implicitly created
3495 clauses, from simple append, to starting of list, after non-map clauses.
3496 * omp-low.c (lower_omp_target): Add GOMP_MAP_IMPLICIT bits into kind
3497 values passed to libgomp for implicit maps.
3499 2021-11-12 Jakub Jelinek <jakub@redhat.com>
3501 * omp-builtins.def (BUILT_IN_GOMP_TEAMS): Remove.
3502 (BUILT_IN_GOMP_TEAMS4): New.
3503 * builtin-types.def (BT_FN_VOID_UINT_UINT): Remove.
3504 (BT_FN_BOOL_UINT_UINT_UINT_BOOL): New.
3505 * omp-low.c (lower_omp_teams): Use GOMP_teams4 instead of
3506 GOMP_teams, pass to it also num_teams lower-bound expression
3507 or a dup of upper-bound if it is missing and a flag whether
3508 it is the first call or not.
3510 2021-11-12 Martin Liska <mliska@suse.cz>
3512 PR tree-optimization/102497
3513 * gimple-predicate-analysis.cc (add_pred): Remove unused
3516 2021-11-12 Richard Biener <rguenther@suse.de>
3518 PR tree-optimization/103204
3519 * tree-ssa-sccvn.c (valueize_refs_1): Re-valueize the
3520 top operand after folding in an address.
3522 2021-11-11 Aldy Hernandez <aldyh@redhat.com>
3524 * gimple-range-path.cc (path_range_query::path_range_query): New
3525 ctor without a ranger.
3526 (path_range_query::~path_range_query): Free ranger if necessary.
3527 (path_range_query::range_on_path_entry): Adjust m_ranger for pointer.
3528 (path_range_query::ssa_range_in_phi): Same.
3529 (path_range_query::compute_ranges_in_block): Same.
3530 (path_range_query::compute_imports): Same.
3531 (path_range_query::compute_ranges): Same.
3532 (path_range_query::range_of_stmt): Same.
3533 (path_range_query::compute_outgoing_relations): Same.
3534 * gimple-range-path.h (class path_range_query): New ctor.
3535 * tree-ssa-loop-ch.c (ch_base::copy_headers): Remove gimple_ranger
3536 as path_range_query allocates one.
3537 * tree-ssa-threadbackward.c (class back_threader): Remove m_ranger.
3538 (back_threader::~back_threader): Same.
3540 2021-11-11 Aldy Hernandez <aldyh@redhat.com>
3542 * tree-ssa-threadbackward.c
3543 (back_threader_profitability::profitable_path_p): Remove loop
3544 crossing restriction.
3546 2021-11-11 Jan Hubicka <hubicka@ucw.cz>
3548 * ipa-modref.c (analyze_function): Do pure/const discovery, return
3550 (pass_modref::execute): If pure/const is discovered fixup cfg.
3551 (ignore_edge): Do not ignore pure/const edges.
3552 (modref_propagate_in_scc): Do pure/const discovery, return true if
3553 cdtor was promoted pure/const.
3554 (pass_ipa_modref::execute): If needed remove unreachable functions.
3555 * ipa-pure-const.c (warn_function_noreturn): Fix whitespace.
3556 (warn_function_cold): Likewise.
3557 (skip_function_for_local_pure_const): Move earlier.
3558 (ipa_make_function_const): Break out from ...
3559 (ipa_make_function_pure): Break out from ...
3560 (propagate_pure_const): ... here.
3561 (pass_local_pure_const::execute): Use it.
3562 * ipa-utils.h (ipa_make_function_const): Declare.
3563 (ipa_make_function_pure): Declare.
3564 * passes.def: Move early modref after pure-const.
3566 2021-11-11 David Malcolm <dmalcolm@redhat.com>
3569 * diagnostic-show-locus.c (def_policy): Use def_tabstop.
3571 2021-11-11 Jonathan Wright <jonathan.wright@arm.com>
3573 * config/aarch64/aarch64-builtins.c (TYPES_COMBINE): Delete.
3574 (TYPES_COMBINEP): Delete.
3575 * config/aarch64/aarch64-simd-builtins.def: Declare type-
3576 qualified builtins for vcombine_* intrinsics.
3577 * config/aarch64/arm_neon.h (vcombine_s8): Remove unnecessary
3579 (vcombine_s16): Likewise.
3580 (vcombine_s32): Likewise.
3581 (vcombine_f32): Likewise.
3582 (vcombine_u8): Use type-qualified builtin and remove casts.
3583 (vcombine_u16): Likewise.
3584 (vcombine_u32): Likewise.
3585 (vcombine_u64): Likewise.
3586 (vcombine_p8): Likewise.
3587 (vcombine_p16): Likewise.
3588 (vcombine_p64): Likewise.
3589 (vcombine_bf16): Remove unnecessary cast.
3590 * config/aarch64/iterators.md (VD_I): New mode iterator.
3591 (VDC_P): New mode iterator.
3593 2021-11-11 Jonathan Wright <jonathan.wright@arm.com>
3595 * config/aarch64/aarch64-builtins.c (TYPES_LOAD1_U): Define.
3596 (TYPES_LOAD1_P): Define.
3597 (TYPES_STORE1_U): Define.
3598 (TYPES_STORE1P): Rename to...
3599 (TYPES_STORE1_P): This.
3600 (get_mem_type_for_load_store): Add unsigned and poly types.
3601 (aarch64_general_gimple_fold_builtin): Add unsigned and poly
3602 type-qualified builtin declarations.
3603 * config/aarch64/aarch64-simd-builtins.def: Declare type-
3604 qualified builtins for LD1/ST1.
3605 * config/aarch64/arm_neon.h (vld1_p8): Use type-qualified
3606 builtin and remove cast.
3607 (vld1_p16): Likewise.
3608 (vld1_u8): Likewise.
3609 (vld1_u16): Likewise.
3610 (vld1_u32): Likewise.
3611 (vld1q_p8): Likewise.
3612 (vld1q_p16): Likewise.
3613 (vld1q_p64): Likewise.
3614 (vld1q_u8): Likewise.
3615 (vld1q_u16): Likewise.
3616 (vld1q_u32): Likewise.
3617 (vld1q_u64): Likewise.
3618 (vst1_p8): Likewise.
3619 (vst1_p16): Likewise.
3620 (vst1_u8): Likewise.
3621 (vst1_u16): Likewise.
3622 (vst1_u32): Likewise.
3623 (vst1q_p8): Likewise.
3624 (vst1q_p16): Likewise.
3625 (vst1q_p64): Likewise.
3626 (vst1q_u8): Likewise.
3627 (vst1q_u16): Likewise.
3628 (vst1q_u32): Likewise.
3629 (vst1q_u64): Likewise.
3630 * config/aarch64/iterators.md (VALLP_NO_DI): New iterator.
3632 2021-11-11 Jonathan Wright <jonathan.wright@arm.com>
3634 * config/aarch64/aarch64-simd-builtins.def: Declare unsigned
3635 builtins for vector reduction.
3636 * config/aarch64/arm_neon.h (vaddv_u8): Use type-qualified
3637 builtin and remove casts.
3638 (vaddv_u16): Likewise.
3639 (vaddv_u32): Likewise.
3640 (vaddvq_u8): Likewise.
3641 (vaddvq_u16): Likewise.
3642 (vaddvq_u32): Likewise.
3643 (vaddvq_u64): Likewise.
3645 2021-11-11 Jonathan Wright <jonathan.wright@arm.com>
3647 * config/aarch64/aarch64-simd-builtins.def:
3648 * config/aarch64/arm_neon.h (vpaddq_u8): Use type-qualified
3649 builtin and remove casts.
3650 (vpaddq_u16): Likewise.
3651 (vpaddq_u32): Likewise.
3652 (vpaddq_u64): Likewise.
3653 (vpadd_u8): Likewise.
3654 (vpadd_u16): Likewise.
3655 (vpadd_u32): Likewise.
3656 (vpaddd_u64): Likewise.
3658 2021-11-11 Jonathan Wright <jonathan.wright@arm.com>
3660 * config/aarch64/aarch64-simd-builtins.def: Declare unsigned
3661 builtins for [r]subhn[2].
3662 * config/aarch64/arm_neon.h (vsubhn_s16): Remove unnecessary
3664 (vsubhn_s32): Likewise.
3665 (vsubhn_s64): Likewise.
3666 (vsubhn_u16): Use type-qualified builtin and remove casts.
3667 (vsubhn_u32): Likewise.
3668 (vsubhn_u64): Likewise.
3669 (vrsubhn_s16): Remove unnecessary cast.
3670 (vrsubhn_s32): Likewise.
3671 (vrsubhn_s64): Likewise.
3672 (vrsubhn_u16): Use type-qualified builtin and remove casts.
3673 (vrsubhn_u32): Likewise.
3674 (vrsubhn_u64): Likewise.
3675 (vrsubhn_high_s16): Remove unnecessary cast.
3676 (vrsubhn_high_s32): Likewise.
3677 (vrsubhn_high_s64): Likewise.
3678 (vrsubhn_high_u16): Use type-qualified builtin and remove
3680 (vrsubhn_high_u32): Likewise.
3681 (vrsubhn_high_u64): Likewise.
3682 (vsubhn_high_s16): Remove unnecessary cast.
3683 (vsubhn_high_s32): Likewise.
3684 (vsubhn_high_s64): Likewise.
3685 (vsubhn_high_u16): Use type-qualified builtin and remove
3687 (vsubhn_high_u32): Likewise.
3688 (vsubhn_high_u64): Likewise.
3690 2021-11-11 Jonathan Wright <jonathan.wright@arm.com>
3692 * config/aarch64/aarch64-simd-builtins.def: Declare unsigned
3693 builtins for [r]addhn[2].
3694 * config/aarch64/arm_neon.h (vaddhn_s16): Remove unnecessary
3696 (vaddhn_s32): Likewise.
3697 (vaddhn_s64): Likewise.
3698 (vaddhn_u16): Use type-qualified builtin and remove casts.
3699 (vaddhn_u32): Likewise.
3700 (vaddhn_u64): Likewise.
3701 (vraddhn_s16): Remove unnecessary cast.
3702 (vraddhn_s32): Likewise.
3703 (vraddhn_s64): Likewise.
3704 (vraddhn_u16): Use type-qualified builtin and remove casts.
3705 (vraddhn_u32): Likewise.
3706 (vraddhn_u64): Likewise.
3707 (vaddhn_high_s16): Remove unnecessary cast.
3708 (vaddhn_high_s32): Likewise.
3709 (vaddhn_high_s64): Likewise.
3710 (vaddhn_high_u16): Use type-qualified builtin and remove
3712 (vaddhn_high_u32): Likewise.
3713 (vaddhn_high_u64): Likewise.
3714 (vraddhn_high_s16): Remove unnecessary cast.
3715 (vraddhn_high_s32): Likewise.
3716 (vraddhn_high_s64): Likewise.
3717 (vraddhn_high_u16): Use type-qualified builtin and remove
3719 (vraddhn_high_u32): Likewise.
3720 (vraddhn_high_u64): Likewise.
3722 2021-11-11 Jonathan Wright <jonathan.wright@arm.com>
3724 * config/aarch64/aarch64-simd-builtins.def: Use BINOPU type
3725 qualifiers in generator macros for uhsub builtins.
3726 * config/aarch64/arm_neon.h (vhsub_s8): Remove unnecessary
3728 (vhsub_s16): Likewise.
3729 (vhsub_s32): Likewise.
3730 (vhsub_u8): Use type-qualified builtin and remove casts.
3731 (vhsub_u16): Likewise.
3732 (vhsub_u32): Likewise.
3733 (vhsubq_s8): Remove unnecessary cast.
3734 (vhsubq_s16): Likewise.
3735 (vhsubq_s32): Likewise.
3736 (vhsubq_u8): Use type-qualified builtin and remove casts.
3737 (vhsubq_u16): Likewise.
3738 (vhsubq_u32): Likewise.
3740 2021-11-11 Jonathan Wright <jonathan.wright@arm.com>
3742 * config/aarch64/aarch64-simd-builtins.def: Use BINOPU type
3743 qualifiers in generator macros for u[r]hadd builtins.
3744 * config/aarch64/arm_neon.h (vhadd_s8): Remove unnecessary
3746 (vhadd_s16): Likewise.
3747 (vhadd_s32): Likewise.
3748 (vhadd_u8): Use type-qualified builtin and remove casts.
3749 (vhadd_u16): Likewise.
3750 (vhadd_u32): Likewise.
3751 (vhaddq_s8): Remove unnecessary cast.
3752 (vhaddq_s16): Likewise.
3753 (vhaddq_s32): Likewise.
3754 (vhaddq_u8): Use type-qualified builtin and remove casts.
3755 (vhaddq_u16): Likewise.
3756 (vhaddq_u32): Likewise.
3757 (vrhadd_s8): Remove unnecessary cast.
3758 (vrhadd_s16): Likewise.
3759 (vrhadd_s32): Likewise.
3760 (vrhadd_u8): Use type-qualified builtin and remove casts.
3761 (vrhadd_u16): Likewise.
3762 (vrhadd_u32): Likewise.
3763 (vrhaddq_s8): Remove unnecessary cast.
3764 (vrhaddq_s16): Likewise.
3765 (vrhaddq_s32): Likewise.
3766 (vrhaddq_u8): Use type-wualified builtin and remove casts.
3767 (vrhaddq_u16): Likewise.
3768 (vrhaddq_u32): Likewise.
3770 2021-11-11 Jonathan Wright <jonathan.wright@arm.com>
3772 * config/aarch64/aarch64-simd-builtins.def: Use BINOPU type
3773 qualifiers in generator macros for usub[lw][2] builtins.
3774 * config/aarch64/arm_neon.h (vsubl_s8): Remove unnecessary
3776 (vsubl_s16): Likewise.
3777 (vsubl_s32): Likewise.
3778 (vsubl_u8): Use type-qualified builtin and remove casts.
3779 (vsubl_u16): Likewise.
3780 (vsubl_u32): Likewise.
3781 (vsubl_high_s8): Remove unnecessary cast.
3782 (vsubl_high_s16): Likewise.
3783 (vsubl_high_s32): Likewise.
3784 (vsubl_high_u8): Use type-qualified builtin and remove casts.
3785 (vsubl_high_u16): Likewise.
3786 (vsubl_high_u32): Likewise.
3787 (vsubw_s8): Remove unnecessary casts.
3788 (vsubw_s16): Likewise.
3789 (vsubw_s32): Likewise.
3790 (vsubw_u8): Use type-qualified builtin and remove casts.
3791 (vsubw_u16): Likewise.
3792 (vsubw_u32): Likewise.
3793 (vsubw_high_s8): Remove unnecessary cast.
3794 (vsubw_high_s16): Likewise.
3795 (vsubw_high_s32): Likewise.
3796 (vsubw_high_u8): Use type-qualified builtin and remove casts.
3797 (vsubw_high_u16): Likewise.
3798 (vsubw_high_u32): Likewise.
3800 2021-11-11 Jonathan Wright <jonathan.wright@arm.com>
3802 * config/aarch64/aarch64-simd-builtins.def: Use BINOPU type
3803 qualifiers in generator macros for uadd[lw][2] builtins.
3804 * config/aarch64/arm_neon.h (vaddl_s8): Remove unnecessary
3806 (vaddl_s16): Likewise.
3807 (vaddl_s32): Likewise.
3808 (vaddl_u8): Use type-qualified builtin and remove casts.
3809 (vaddl_u16): Likewise.
3810 (vaddl_u32): Likewise.
3811 (vaddl_high_s8): Remove unnecessary cast.
3812 (vaddl_high_s16): Likewise.
3813 (vaddl_high_s32): Likewise.
3814 (vaddl_high_u8): Use type-qualified builtin and remove casts.
3815 (vaddl_high_u16): Likewise.
3816 (vaddl_high_u32): Likewise.
3817 (vaddw_s8): Remove unnecessary cast.
3818 (vaddw_s16): Likewise.
3819 (vaddw_s32): Likewise.
3820 (vaddw_u8): Use type-qualified builtin and remove casts.
3821 (vaddw_u16): Likewise.
3822 (vaddw_u32): Likewise.
3823 (vaddw_high_s8): Remove unnecessary cast.
3824 (vaddw_high_s16): Likewise.
3825 (vaddw_high_s32): Likewise.
3826 (vaddw_high_u8): Use type-qualified builtin and remove casts.
3827 (vaddw_high_u16): Likewise.
3828 (vaddw_high_u32): Likewise.
3830 2021-11-11 Jonathan Wright <jonathan.wright@arm.com>
3832 * config/aarch64/aarch64-simd-builtins.def: Declare type-
3833 qualified builtins for [R]SHRN[2].
3834 * config/aarch64/arm_neon.h (vshrn_n_u16): Use type-qualified
3835 builtin and remove casts.
3836 (vshrn_n_u32): Likewise.
3837 (vshrn_n_u64): Likewise.
3838 (vrshrn_high_n_u16): Likewise.
3839 (vrshrn_high_n_u32): Likewise.
3840 (vrshrn_high_n_u64): Likewise.
3841 (vrshrn_n_u16): Likewise.
3842 (vrshrn_n_u32): Likewise.
3843 (vrshrn_n_u64): Likewise.
3844 (vshrn_high_n_u16): Likewise.
3845 (vshrn_high_n_u32): Likewise.
3846 (vshrn_high_n_u64): Likewise.
3848 2021-11-11 Jonathan Wright <jonathan.wright@arm.com>
3850 * config/aarch64/aarch64-simd-builtins.def: Declare unsigned
3851 type-qualified builtins for XTN[2].
3852 * config/aarch64/arm_neon.h (vmovn_high_u16): Use type-
3853 qualified builtin and remove casts.
3854 (vmovn_high_u32): Likewise.
3855 (vmovn_high_u64): Likewise.
3856 (vmovn_u16): Likewise.
3857 (vmovn_u32): Likewise.
3858 (vmovn_u64): Likewise.
3860 2021-11-11 Jonathan Wright <jonathan.wright@arm.com>
3862 * config/aarch64/aarch64-simd-builtins.def: Use poly type
3863 qualifier in builtin generator macros.
3864 * config/aarch64/arm_neon.h (vmul_p8): Use type-qualified
3865 builtin and remove casts.
3866 (vmulq_p8): Likewise.
3867 (vmull_high_p8): Likewise.
3868 (vmull_p8): Likewise.
3870 2021-11-11 Jonathan Wright <jonathan.wright@arm.com>
3872 * config/aarch64/aarch64-simd-builtins.def: Declare type-
3873 qualified builtin generators for unsigned MLA/MLS intrinsics.
3874 * config/aarch64/arm_neon.h (vmla_n_u16): Use type-qualified
3876 (vmla_n_u32): Likewise.
3877 (vmla_u8): Likewise.
3878 (vmla_u16): Likewise.
3879 (vmla_u32): Likewise.
3880 (vmlaq_n_u16): Likewise.
3881 (vmlaq_n_u32): Likewise.
3882 (vmlaq_u8): Likewise.
3883 (vmlaq_u16): Likewise.
3884 (vmlaq_u32): Likewise.
3885 (vmls_n_u16): Likewise.
3886 (vmls_n_u32): Likewise.
3887 (vmls_u8): Likewise.
3888 (vmls_u16): Likewise.
3889 (vmls_u32): Likewise.
3890 (vmlsq_n_u16): Likewise.
3891 (vmlsq_n_u32): Likewise.
3892 (vmlsq_u8): Likewise.
3893 (vmlsq_u16): Likewise.
3894 (vmlsq_u32): Likewise.
3896 2021-11-11 Jan Hubicka <hubicka@ucw.cz>
3898 * ipa-modref.c (modref_summary::useful_p): Check also for side-effects
3899 with looping const/pure.
3900 (modref_summary_lto::useful_p): Likewise.
3901 (merge_call_side_effects): Merge side effects before early exit
3903 (process_fnspec): Also handle pure functions.
3904 (analyze_call): Do not early exit on looping pure const.
3905 (propagate_unknown_call): Also handle nontrivial SCC as side-effect.
3906 (modref_propagate_in_scc): Update.
3908 2021-11-11 Richard Biener <rguenther@suse.de>
3910 PR tree-optimization/103190
3911 * tree-ssa-reassoc.c (insert_stmt_after): Only assert on asm goto.
3913 2021-11-11 Aldy Hernandez <aldyh@redhat.com>
3915 * gimple-range-path.cc (path_range_query::add_copies_to_imports):
3917 (path_range_query::compute_imports): ...this. Adapt it so it can
3918 be passed the imports bitmap instead of working on m_imports.
3919 (path_range_query::compute_ranges): Call compute_imports in all
3920 cases unless an imports bitmap is passed.
3921 * gimple-range-path.h (path_range_query::compute_imports): New.
3922 (path_range_query::add_copies_to_imports): Remove.
3923 * tree-ssa-threadbackward.c (back_threader::resolve_def): Remove.
3924 (back_threader::find_paths_to_names): Inline resolve_def.
3925 (back_threader::find_paths): Call compute_imports.
3926 (back_threader::resolve_phi): Adjust comment.
3928 2021-11-11 Richard Biener <rguenther@suse.de>
3930 PR tree-optimization/103188
3931 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p):
3932 Remove query parameter, split out check for size
3934 (ch_base::m_ranger, cb_base::m_query): Remove.
3935 (ch_base::copy_headers): Split processing loop into
3936 analysis around which we allocate and use ranger and
3937 transform where we do not.
3938 (pass_ch::execute): Do not allocate/free ranger here.
3939 (pass_ch_vect::execute): Likewise.
3941 2021-11-11 Jan Hubicka <hubicka@ucw.cz>
3943 * ipa-pure-const.c (propagate_pure_const): Self recursion is
3946 2021-11-11 Jan Hubicka <hubicka@ucw.cz>
3948 * cgraph.c (set_noreturn_flag_1): New function.
3949 (cgraph_node::set_noreturn_flag): New member function
3950 * cgraph.h (cgraph_node::set_noreturn_flags): Declare.
3951 * ipa-pure-const.c (pass_local_pure_const::execute): Use it.
3953 2021-11-11 Aldy Hernandez <aldyh@redhat.com>
3954 Richard Biener <rguenther@suse.de>
3956 * tree-ssa-loop-ch.c (entry_loop_condition_is_static): Resolve
3957 statically to the edge remaining in the loop.
3959 2021-11-11 Richard Biener <rguenther@suse.de>
3961 PR middle-end/103181
3962 * tree-eh.c (operation_could_trap_helper_p): Properly
3963 check vector constants for a zero element for integer
3964 division. Separate floating point and integer division code.
3966 2021-11-11 Jakub Jelinek <jakub@redhat.com>
3969 * dwarf2out.c (field_byte_offset): Do the PCC_BITFIELD_TYPE_MATTERS
3970 handling only for DECL_BIT_FIELD_TYPE decls.
3972 2021-11-11 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3975 * config/aarch64/aarch64.c (aarch64_process_target_attr): Check if
3976 token is arch extension without leading '+' and emit appropriate
3977 diagnostic for the same.
3979 2021-11-11 Jakub Jelinek <jakub@redhat.com>
3981 * tree.h (OMP_CLAUSE_NUM_TEAMS_EXPR): Rename to ...
3982 (OMP_CLAUSE_NUM_TEAMS_UPPER_EXPR): ... this.
3983 (OMP_CLAUSE_NUM_TEAMS_LOWER_EXPR): Define.
3984 * tree.c (omp_clause_num_ops): Increase num ops for
3985 OMP_CLAUSE_NUM_TEAMS to 2.
3986 * tree-pretty-print.c (dump_omp_clause): Print optional lower bound
3987 for OMP_CLAUSE_NUM_TEAMS.
3988 * gimplify.c (gimplify_scan_omp_clauses): Gimplify
3989 OMP_CLAUSE_NUM_TEAMS_LOWER_EXPR if non-NULL.
3990 (optimize_target_teams): Use OMP_CLAUSE_NUM_TEAMS_UPPER_EXPR instead
3991 of OMP_CLAUSE_NUM_TEAMS_EXPR. Handle OMP_CLAUSE_NUM_TEAMS_LOWER_EXPR.
3992 * omp-low.c (lower_omp_teams): Use OMP_CLAUSE_NUM_TEAMS_UPPER_EXPR
3993 instead of OMP_CLAUSE_NUM_TEAMS_EXPR.
3994 * omp-expand.c (expand_teams_call, get_target_arguments): Likewise.
3996 2021-11-11 Richard Biener <rguenther@suse.de>
3998 * cfganal.c (find_pdom): Remove.
3999 (control_dependences::find_control_dependence): Remove
4000 special-casing of entry block, call get_immediate_dominator
4002 * gimple-predicate-analysis.cc (find_pdom): Remove.
4003 (find_dom): Likewise.
4004 (find_control_equiv_block): Call get_immediate_dominator
4006 (compute_control_dep_chain): Likewise.
4007 (predicate::init_from_phi_def): Likewise.
4009 2021-11-11 Richard Biener <rguenther@suse.de>
4011 * cfganal.h (control_dependences::control_dependence_map):
4013 (control_dependences::m_bitmaps): New.
4014 * cfganal.c (control_dependences::set_control_dependence_map_bit):
4016 (control_dependences::clear_control_dependence_bitmap):
4018 (control_dependences::find_control_dependence): Do not
4019 find_edge for the abnormal edge test.
4020 (control_dependences::control_dependences): Instead do not
4021 add abnormal edges to the edge list. Adjust.
4022 (control_dependences::~control_dependences): Likewise.
4023 (control_dependences::get_edges_dependent_on): Likewise.
4024 * function-tests.c: Include bitmap.h.
4026 2021-11-11 Kewen Lin <linkw@linux.ibm.com>
4028 * doc/invoke.texi: Change references to "future cpu" to "power10",
4029 "-mcpu=future" to "-mcpu=power10". Adjust words for float128.
4031 2021-11-11 Cui,Lili <lili.cui@intel.com>
4033 * config/i386/i386-options.c (m_CORE_AVX2): Remove Alderlake
4035 (processor_cost_table): Use alderlake_cost for Alderlake.
4036 * config/i386/i386.c (ix86_sched_init_global): Handle Alderlake.
4037 * config/i386/x86-tune-costs.h (struct processor_costs): Add alderlake
4039 * config/i386/x86-tune-sched.c (ix86_issue_rate): Change Alderlake
4041 (ix86_adjust_cost): Handle Alderlake.
4042 * config/i386/x86-tune.def (X86_TUNE_SCHEDULE): Enable for Alderlake.
4043 (X86_TUNE_PARTIAL_REG_DEPENDENCY): Likewise.
4044 (X86_TUNE_SSE_PARTIAL_REG_DEPENDENCY): Likewise.
4045 (X86_TUNE_SSE_PARTIAL_REG_FP_CONVERTS_DEPENDENCY): Likewise.
4046 (X86_TUNE_SSE_PARTIAL_REG_CONVERTS_DEPENDENCY): Likewise.
4047 (X86_TUNE_MEMORY_MISMATCH_STALL): Likewise.
4048 (X86_TUNE_USE_LEAVE): Likewise.
4049 (X86_TUNE_PUSH_MEMORY): Likewise.
4050 (X86_TUNE_USE_INCDEC): Likewise.
4051 (X86_TUNE_INTEGER_DFMODE_MOVES): Likewise.
4052 (X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Likewise.
4053 (X86_TUNE_USE_SAHF): Likewise.
4054 (X86_TUNE_USE_BT): Likewise.
4055 (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI): Likewise.
4056 (X86_TUNE_ONE_IF_CONV_INSN): Likewise.
4057 (X86_TUNE_AVOID_MFENCE): Likewise.
4058 (X86_TUNE_USE_SIMODE_FIOP): Likewise.
4059 (X86_TUNE_EXT_80387_CONSTANTS): Likewise.
4060 (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL): Likewise.
4061 (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Likewise.
4062 (X86_TUNE_SSE_TYPELESS_STORES): Likewise.
4063 (X86_TUNE_SSE_LOAD0_BY_PXOR): Likewise.
4064 (X86_TUNE_AVOID_4BYTE_PREFIXES): Likewise.
4065 (X86_TUNE_USE_GATHER): Disable for Alderlake.
4066 (X86_TUNE_AVX256_MOVE_BY_PIECES): Likewise.
4067 (X86_TUNE_AVX256_STORE_BY_PIECES): Likewise.
4069 2021-11-11 liuhongt <hongtao.liu@intel.com>
4072 * config/i386/sse.md (V_128_256): Extend to V8HF/V16HF.
4073 (avxsizesuffix): Ditto.
4075 2021-11-11 Kito Cheng <kito.cheng@sifive.com>
4077 * common/config/riscv/riscv-common.c (riscv_subset_list::to_string): Fix
4078 wrong marco checking.
4080 2021-11-10 Aldy Hernandez <aldyh@redhat.com>
4082 PR tree-optimization/102906
4083 * tree-ssa-loop-ch.c (entry_loop_condition_is_static): New.
4084 (should_duplicate_loop_header_p): Call entry_loop_condition_is_static.
4085 (class ch_base): Add m_ranger and m_query.
4086 (ch_base::copy_headers): Pass m_query to
4087 entry_loop_condition_is_static.
4088 (pass_ch::execute): Allocate and deallocate m_ranger and
4090 (pass_ch_vect::execute): Same.
4092 2021-11-10 Andrew Pinski <apinski@marvell.com>
4095 * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>):
4096 Use vwcore iterator for the r constraint output string.
4098 2021-11-10 qing zhao <qing.zhao@oracle.com>
4100 * internal-fn.c (expand_DEFERRED_INIT): Apply pattern initialization
4101 only when have_insn_for return true for the mode. Fix a memory leak.
4103 2021-11-10 Christophe Lyon <christophe.lyon@foss.st.com>
4105 * config/arm/arm.c (cortexa9_extra_costs, cortexa8_extra_costs,
4106 cortexa5_extra_costs, cortexa7_extra_costs,
4107 cortexa12_extra_costs, cortexa15_extra_costs, v7m_extra_costs):
4108 Initialize movi, dup and extract costing fields.
4110 2021-11-10 Aldy Hernandez <aldyh@redhat.com>
4112 * gimple-range-path.cc (path_range_query::path_range_query): Do
4114 (path_range_query::dump): Change m_path uses to non-pointer.
4115 (path_range_query::defined_outside_path): Same.
4116 (path_range_query::set_path): Same.
4117 (path_range_query::add_copies_to_imports): Same.
4118 (path_range_query::range_of_stmt): Same.
4119 (path_range_query::compute_outgoing_relations): Same.
4120 (path_range_query::compute_ranges): Imports are now optional.
4121 Implement overload that takes an edge.
4122 * gimple-range-path.h (class path_range_query): Make imports
4123 optional for compute_ranges. Add compute_ranges(edge) overload.
4124 Make m_path an auto_vec instead of a pointer and adjust
4127 2021-11-10 Tamar Christina <tamar.christina@arm.com>
4129 * tree-vectorizer.h (struct scalar_cond_masked_key): Add inverted_p.
4130 (default_hash_traits<scalar_conf_masked_key>): Likewise.
4131 * tree-vect-stmts.c (vectorizable_condition): Check if inverse of mask
4133 * tree-vectorizer.c (scalar_cond_masked_key::get_cond_ops_from_tree):
4134 Register mask inverses.
4136 2021-11-10 Tamar Christina <tamar.christina@arm.com>
4138 * tree-vectorizer.c (vectorize_loops): Do local CSE through RPVN upon
4139 successful vectorization.
4141 2021-11-10 Andrew MacLeod <amacleod@redhat.com>
4143 * gimple-range-cache.cc (sbr_vector::grow): New.
4144 (sbr_vector::set_bb_range): Call grow.
4145 (sbr_vector::get_bb_range): Same.
4146 (sbr_vector::bb_range_p): Remove assert.
4148 2021-11-10 Tamar Christina <tamar.christina@arm.com>
4150 * config/aarch64/aarch64-simd.md (*aarch64_topbits_shuffle<mode>_le
4151 ,*aarch64_topbits_shuffle<mode>_be): Remove.
4153 2021-11-10 Jan Hubicka <jh@suse.cz>
4155 * ipa-modref.c: Include tree-eh.h
4156 (modref_summary::modref_summary): Initialize side_effects.
4157 (struct modref_summary_lto): New bool field side_effects.
4158 (modref_summary_lto::modref_summary_lto): Initialize side_effects.
4159 (modref_summary::dump): Dump side_effects.
4160 (modref_summary_lto::dump): Dump side_effects.
4161 (merge_call_side_effects): Merge side effects.
4162 (process_fnspec): Calls to non-const/pure or looping
4163 function is a side effect.
4164 (analyze_call): Self-recursion is a side-effect; handle
4166 (analyze_load): Watch for volatile and throwing memory.
4167 (analyze_store): Likewise.
4168 (analyze_stmt): Watch for volatitle asm.
4169 (analyze_function): Handle side_effects.
4170 (modref_summaries::duplicate): Duplicate side_effects.
4171 (modref_summaries_lto::duplicate): Likewise.
4172 (modref_write): Stream side_effects.
4173 (read_section): Likewise.
4174 (update_signature): Update.
4175 (propagate_unknown_call): Handle side_effects.
4176 (modref_propagate_in_scc): Likewise.
4177 * ipa-modref.h (struct modref_summary): Add side_effects.
4178 * ipa-pure-const.c (special_builtin_state): Rename to ...
4179 (builtin_safe_for_const_function_p): ... this one.
4180 (check_call): Update.
4181 (finite_function_p): Break out from ...
4182 (propagate_pure_const): ... here
4183 * ipa-utils.h (finite_function): Declare.
4185 2021-11-10 Lucas A. M. Magalhães <lamm@linux.ibm.com>
4187 * config.gcc (powerpc*-*-*): Remove -rpath from
4188 --with-advance-toolchain.
4190 2021-11-10 Marek Polacek <polacek@redhat.com>
4193 * attribs.c (struct scoped_attributes): Add a bool member.
4194 (lookup_scoped_attribute_spec): Forward declare.
4195 (register_scoped_attributes): New bool parameter, defaulted to
4197 (handle_ignored_attributes_option): New function.
4198 (free_attr_data): New function.
4199 (init_attributes): Call handle_ignored_attributes_option.
4200 (attr_namespace_ignored_p): New function.
4201 (decl_attributes): Check attr_namespace_ignored_p before
4203 * attribs.h (free_attr_data): Declare.
4204 (register_scoped_attributes): Adjust declaration.
4205 (handle_ignored_attributes_option): Declare.
4206 (canonicalize_attr_name): New function template.
4207 (canonicalize_attr_name): Use it.
4208 * common.opt (Wattributes=): New option with a variable.
4209 * doc/extend.texi: Document #pragma GCC diagnostic ignored_attributes.
4210 * doc/invoke.texi: Document -Wno-attributes=.
4211 * opts.c (common_handle_option) <case OPT_Wattributes_>: Handle.
4212 * plugin.h (register_scoped_attributes): Adjust declaration.
4213 * toplev.c (compile_file): Call free_attr_data.
4215 2021-11-10 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
4217 * config/arm/arm-cpus.in (cortex-a710): New CPU.
4218 * config/arm/arm-tables.opt: Regenerate.
4219 * config/arm/arm-tune.md: Regenerate.
4220 * doc/invoke.texi: Update docs.
4222 2021-11-10 Andre Vieira <andre.simoesdiasvieira@arm.com>
4224 * config/aarch64/aarch64-builtins.c
4225 (aarch64_general_gimple_fold_builtin): Mark argument as unused.
4227 2021-11-10 Martin Liska <mliska@suse.cz>
4229 * lto-wrapper.c (merge_and_complain): Make the first argument
4232 2021-11-10 Richard Sandiford <richard.sandiford@arm.com>
4234 * config/aarch64/iterators.md (optab): Use fmax_nan instead of
4235 smax_nan and fmin_nan instead of smin_nan.
4236 (maxmin_uns): Rename to...
4237 (fmaxmin): ...this and make the same changes. Remove entries
4238 unrelated to fmax* and fmin*.
4239 * config/aarch64/aarch64.md (<maxmin_uns><mode>3): Rename to...
4240 (<fmaxmin><mode>3): ...this.
4241 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>):
4243 (aarch64_<optab>p<mode>): ...this.
4244 (<maxmin_uns><mode>3): Rename to...
4245 (<fmaxmin><mode>3): ...this.
4246 (reduc_<maxmin_uns>_scal_<mode>): Rename to...
4247 (reduc_<optab>_scal_<mode>): ...this and update gen* call.
4248 (aarch64_reduc_<maxmin_uns>_internal<mode>): Rename to...
4249 (aarch64_reduc_<optab>_internal<mode>): ...this.
4250 (aarch64_reduc_<maxmin_uns>_internalv2si): Rename to...
4251 (aarch64_reduc_<optab>_internalv2si): ...this.
4252 * config/aarch64/aarch64-sve.md (<maxmin_uns><mode>3): Rename to...
4253 (<fmaxmin><mode>3): ...this.
4254 * config/aarch64/aarch64-simd-builtins.def (smax_nan, smin_nan)
4256 (fmax_nan, fmin_nan): ...this.
4257 * config/aarch64/arm_neon.h (vmax_f32, vmax_f64, vmaxq_f32, vmaxq_f64)
4258 (vmin_f32, vmin_f64, vminq_f32, vminq_f64, vmax_f16, vmaxq_f16)
4259 (vmin_f16, vminq_f16): Update accordingly.
4261 2021-11-10 Richard Sandiford <richard.sandiford@arm.com>
4263 * tree-vectorizer.h (vector_costs::finish_cost): Take the
4264 corresponding scalar costs as a parameter.
4265 (finish_cost): Likewise.
4266 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost)
4267 (vect_estimate_min_profitable_iters): Update accordingly.
4268 * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Likewise.
4269 * tree-vectorizer.c (vector_costs::finish_cost): Likewise.
4270 * config/aarch64/aarch64.c (aarch64_vector_costs::finish_cost):
4272 * config/rs6000/rs6000.c (rs6000_cost_data::finish_cost): Likewise.
4274 2021-11-10 Richard Sandiford <richard.sandiford@arm.com>
4276 * tree-vectorizer.h (_loop_vec_info::scalar_costs): New member
4278 (_loop_vec_info::single_scalar_iteration_cost): Delete.
4279 (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Delete.
4280 (vector_costs::total_cost): New function.
4281 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Update
4282 after above changes.
4283 (_loop_vec_info::~_loop_vec_info): Delete scalar_costs.
4284 (vect_compute_single_scalar_iteration_cost): Store the costs
4285 in loop_vinfo->scalar_costs.
4286 (vect_estimate_min_profitable_iters): Get the scalar cost from
4287 loop_vinfo->scalar_costs.
4289 2021-11-10 Richard Sandiford <richard.sandiford@arm.com>
4291 * tree-vectorizer.h (vector_costs::better_main_loop_than_p)
4292 (vector_costs::better_epilogue_loop_than_p)
4293 (vector_costs::compare_inside_loop_cost)
4294 (vector_costs::compare_outside_loop_cost): Likewise.
4295 * tree-vectorizer.c (vector_costs::better_main_loop_than_p)
4296 (vector_costs::better_epilogue_loop_than_p)
4297 (vector_costs::compare_inside_loop_cost)
4298 (vector_costs::compare_outside_loop_cost): New functions,
4299 containing code moved from...
4300 * tree-vect-loop.c (vect_better_loop_vinfo_p): ...here.
4302 2021-11-10 Richard Sandiford <richard.sandiford@arm.com>
4304 * tree-vectorizer.h (_loop_vec_info): Remove vec_outside_cost
4305 and vec_inside_cost.
4306 (vector_costs::outside_cost): New function.
4307 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Update
4309 (vect_estimate_min_profitable_iters): Likewise.
4310 (vect_better_loop_vinfo_p): Get the inside and outside costs
4311 from the loop_vec_infos' vector_costs.
4313 2021-11-10 Richard Sandiford <richard.sandiford@arm.com>
4315 * tree-vectorizer.h (vec_info::target_cost_data): Replace with...
4316 (_loop_vec_info::vector_costs): ...this.
4317 (LOOP_VINFO_TARGET_COST_DATA): Delete.
4318 * tree-vectorizer.c (vec_info::vec_info): Remove target_cost_data
4320 (vec_info::~vec_info): Remove corresponding delete.
4321 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
4322 vector_costs to null.
4323 (_loop_vec_info::~_loop_vec_info): Delete vector_costs.
4324 (vect_analyze_loop_operations): Update after above changes.
4325 (vect_analyze_loop_2): Likewise.
4326 (vect_estimate_min_profitable_iters): Likewise.
4327 * tree-vect-slp.c (vect_slp_analyze_operations): Likewise.
4329 2021-11-10 Jan Hubicka <hubicka@ucw.cz>
4331 * tree-core.h (EAF_DIRECT): Remove.
4332 (EAF_NOCLOBBER): Remove.
4333 (EAF_UNUSED): Remove.
4334 (EAF_NOESCAPE): Remove.
4335 (EAF_NO_DIRECT_CLOBBER): New.
4336 (EAF_NO_INDIRECT_CLOBBER): New.
4337 (EAF_NODIRECTESCAPE): Remove.
4338 (EAF_NO_DIRECT_ESCAPE): New.
4339 (EAF_NO_INDIRECT_ESCAPE): New.
4340 (EAF_NOT_RETURNED): Remove.
4341 (EAF_NOT_RETURNED_INDIRECTLY): New.
4342 (EAF_NOREAD): Remove.
4343 (EAF_NO_DIRECT_READ): New.
4344 (EAF_NO_INDIRECT_READ): New.
4345 * gimple.c (gimple_call_arg_flags): Update for new flags.
4346 (gimple_call_retslot_flags): Update for new flags.
4347 * ipa-modref.c (dump_eaf_flags): Likewise.
4348 (remove_useless_eaf_flags): Likewise.
4349 (deref_flags): Likewise.
4350 (modref_lattice::init): Likewise.
4351 (modref_lattice::merge): Likewise.
4352 (modref_lattice::merge_direct_load): Likewise.
4353 (modref_lattice::merge_direct_store): Likewise.
4354 (modref_eaf_analysis::merge_call_lhs_flags): Likewise.
4355 (callee_to_caller_flags): Likewise.
4356 (modref_eaf_analysis::analyze_ssa_name): Likewise.
4357 (modref_eaf_analysis::propagate): Likewise.
4358 (modref_merge_call_site_flags): Likewise.
4359 * ipa-modref.h (interposable_eaf_flags): Likewise.
4360 * tree-ssa-alias.c: (ref_maybe_used_by_call_p_1) Likewise.
4361 * tree-ssa-structalias.c (handle_call_arg): Likewise.
4362 (handle_rhs_call): Likewise.
4363 * tree-ssa-uninit.c (maybe_warn_pass_by_reference): Likewise.
4365 2021-11-10 Tamar Christina <tamar.christina@arm.com>
4367 * tree-vect-slp-patterns.c (complex_mul_pattern::matches): Remove l1node.
4369 2021-11-10 Andre Vieira <andre.simoesdiasvieira@arm.com>
4371 * config/aarch64/aarch64-builtins.c
4372 (aarch64_general_gimple_fold_builtin): Change pointer alignment and
4375 2021-11-10 Jan Hubicka <jh@suse.cz>
4377 * ipa-modref-tree.h (modref_tree::remap_params): Fix off-by-one error.
4379 2021-11-10 H.J. Lu <hongjiu.lu@intel.com>
4380 Hongtao Liu <hongtao.liu@intel.com>
4382 PR middle-end/102566
4383 * match.pd (nop_atomic_bit_test_and_p): New match.
4384 * tree-ssa-ccp.c (convert_atomic_bit_not): New function.
4385 (gimple_nop_atomic_bit_test_and_p): New prototype.
4386 (optimize_atomic_bit_test_and): Transform equivalent, but slighly
4387 different cases to their canonical forms.
4389 2021-11-10 liuhongt <hongtao.liu@intel.com>
4391 PR tree-optimization/103126
4392 * tree-vect-loop.c (neutral_op_for_reduction): Remove static.
4393 * tree-vectorizer.h (neutral_op_for_reduction): Declare.
4394 * tree-if-conv.c : Include tree-vectorizer.h.
4395 (is_cond_scalar_reduction): Handle
4396 BIT_XOR_EXPR/BIT_IOR_EXPR/BIT_AND_EXPR.
4397 (convert_scalar_cond_reduction): Ditto.
4399 2021-11-10 konglin1 <lingling.kong@intel.com>
4401 * config/i386/sse.md (cmul<conj_op><mode>3): add new define_expand.
4402 (cmla<conj_op><mode>4): Likewise
4404 2021-11-10 Aldy Hernandez <aldyh@redhat.com>
4406 * tree-ssa-threadedge.c: Do not include
4407 gimple-ssa-evrp-analyze.h.
4408 * value-pointer-equiv.cc: Same.
4410 2021-11-10 Aldy Hernandez <aldyh@redhat.com>
4412 * tree-ssa-threadbackward.c
4413 (back_threader::maybe_register_path_dump): Abstract path dumping...
4414 (dump_path): ...here.
4415 (back_threader::resolve_phi): Call dump_path.
4418 2021-11-10 konglin1 <lingling.kong@intel.com>
4420 * config/i386/sse.md (fma_<complexpairopname>_<mode>_pair):
4421 Add new define_insn.
4422 (fma_<mode>_fmaddc_bcst): Add new define_insn_and_split.
4423 (fma_<mode>_fcmaddc_bcst): Likewise
4425 2021-11-10 liuhongt <hongtao.liu@intel.com>
4428 * match.pd: Simplify (trunc)fmax/fmin((extend)a, (extend)b) to
4431 2021-11-10 Andrew Pinski <apinski@marvell.com>
4434 * config/aarch64/aarch64.c (aarch64_evpc_ins): Don't use target
4435 as an input, use original one.
4437 2021-11-10 Sandra Loosemore <sandra@codesourcery.com>
4439 * config/nios2/nios2.c (nios2_can_inline_p): New.
4440 (TARGET_CAN_INLINE_P): Define.
4442 2021-11-09 Bill Schmidt <wschmidt@linux.ibm.com>
4444 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_new_builtin):
4445 Disable gimple fold for RS6000_BIF_{XVMINDP,XVMINSP,VMINFP} and
4446 RS6000_BIF_{XVMAXDP,XVMAXSP,VMAXFP} when fast-math is not set.
4447 (lxvrse_expand_builtin): Modify the expansion for sign extension.
4448 All extensions are done within VSX registers.
4450 2021-11-09 Andrew Pinski <apinski@marvell.com>
4452 PR tree-optimization/10352
4453 * match.pd: Remove check of TYPE_PRECISION for
4456 2021-11-09 Andrew MacLeod <amacleod@redhat.com>
4458 * function.c (allocate_struct_function): Don't set x_range_query.
4459 * function.h (get_range_query): Move to value-query.h.
4460 * gimple-range.cc (enable_ranger): Check that query is currently NULL.
4461 (disable_ranger): Clear function current query field.
4462 * value-query.cc (get_global_range_query): Relocate to:
4463 * value-query.h (get_global_range_query): Here and inline.
4464 (get_range_query): Relocate here from function.h.
4466 2021-11-09 Aldy Hernandez <aldyh@redhat.com>
4468 * tree-ssa-threadbackward.c
4469 (back_threader::maybe_register_path_dump): New.
4470 (back_threader::maybe_register_path): Call maybe_register_path_dump.
4472 2021-11-09 Aldy Hernandez <aldyh@redhat.com>
4474 * tree-ssa-threadbackward.c (back_threader::maybe_register_path):
4475 Return NULL when unprofitable.
4477 2021-11-09 Martin Jambor <mjambor@suse.cz>
4479 * tree.h (build_debug_expr_decl): Declare.
4480 * tree.c (build_debug_expr_decl): New function.
4481 * cfgexpand.c (avoid_deep_ter_for_debug): Use build_debug_expr_decl
4482 instead of building a DEBUG_EXPR_DECL.
4483 * ipa-param-manipulation.c
4484 (ipa_param_body_adjustments::prepare_debug_expressions): Likewise.
4485 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Likewise.
4486 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
4487 * tree-ssa-phiopt.c (spaceship_replacement): Likewise.
4488 * tree-ssa-reassoc.c (make_new_ssa_for_def): Likewise.
4490 2021-11-09 Bill Schmidt <wschmidt@linux.ibm.com>
4492 * config/rs6000/rs6000-call.c (rs6000_type_string): New function.
4493 (def_builtin): Change debug formatting for easier parsing and
4494 include more information.
4495 (rs6000_init_builtins): Add dump of autogenerated builtins.
4496 (altivec_init_builtins): Dump __builtin_altivec_mask_for_load for
4499 2021-11-09 Marek Polacek <polacek@redhat.com>
4501 * ipa-modref.c (analyze_parms): Fix a typo.
4503 2021-11-09 Kito Cheng <kito.cheng@sifive.com>
4506 * common/config/riscv/riscv-common.c (multi_letter_subset_rank): Remove
4507 assertion for Z*-ext.
4509 2021-11-09 Jan Hubicka <hubicka@ucw.cz>
4511 * ipa-modref.c (analyze_parms): Add past_flags, past_retslot_flags
4512 and past_static_chain; merge past summary with current one.
4513 (analyze_function): Update.
4515 2021-11-09 Aldy Hernandez <aldyh@redhat.com>
4517 * doc/invoke.texi (Invoking GCC): Document --param=threader-debug.
4519 2021-11-09 Martin Liska <mliska@suse.cz>
4521 * print-rtl.c (rtx_writer::rtx_writer): Make the compilation
4522 conditional based on
4523 * print-rtl.h (class rtx_writer): Likewise.
4525 2021-11-09 Thomas Schwinge <thomas@codesourcery.com>
4527 * input.h (location_hash): Use 'BUILTINS_LOCATION' as spare value
4528 for 'Deleted'. Turn into a '#define'.
4530 2021-11-09 Aldy Hernandez <aldyh@redhat.com>
4532 * gimple-range-path.cc (path_range_query::dump): Clean up.
4533 (path_range_query::compute_ranges): Same.
4534 * value-relation.cc (path_oracle::dump): Same.
4536 2021-11-09 Aldy Hernandez <aldyh@redhat.com>
4538 * dumpfile.c (dump_options): Remove TDF_THREADING entry.
4539 * dumpfile.h (enum dump_flag): Remove TDF_THREADING and adjust
4541 * flag-types.h (enum threader_debug): New.
4542 * gimple-range-path.cc (DEBUG_SOLVER): Use param_threader_debug.
4543 * params.opt: Add entry for --param=threader-debug=.
4545 2021-11-09 Thomas Schwinge <thomas@codesourcery.com>
4547 PR middle-end/101204
4549 * diagnostic-spec.h (typedef xint_hash_t): Turn into...
4550 (struct xint_hash_t): ... this.
4551 * doc/gty.texi: Update.
4553 2021-11-09 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
4555 * config/arm/arm-cpus.in (armv9): New define.
4556 (ARMv9a): New group.
4557 (armv9-a): New arch definition.
4558 * config/arm/arm-tables.opt: Regenerate.
4559 * config/arm/arm.h (BASE_ARCH_9A): New arch enum value.
4560 * config/arm/t-aprofile: Added armv9-a and armv9+simd.
4561 * config/arm/t-arm-elf: Added arm9-a, v9_fps and all_v9_archs
4562 to MULTILIB_MATCHES.
4563 * config/arm/t-multilib: Added v9_a_nosimd_variants and
4564 v9_a_simd_variants to MULTILIB_MATCHES.
4565 * doc/invoke.texi: Update docs.
4567 2021-11-09 Martin Jambor <mjambor@suse.cz>
4570 * ipa-param-manipulation.c (replace_with_mapped_expr): Early
4571 return with error_mark_mode when part of expression is mapped to
4573 (ipa_param_body_adjustments::remap_with_debug_expressions): Set
4574 mapped value to NULL if walk_tree returns error_mark_mode.
4576 2021-11-09 Aldy Hernandez <aldyh@redhat.com>
4578 * tree-ssa-strlen.c (compare_nonzero_chars): Pass statement
4580 (get_addr_stridx): Same.
4582 (get_range_strlen_dynamic): Same.
4583 (handle_builtin_strlen): Same.
4584 (handle_builtin_strchr): Same.
4585 (handle_builtin_strcpy): Same.
4586 (maybe_diag_stxncpy_trunc): Same.
4587 (handle_builtin_stxncpy_strncat): Same.
4588 (handle_builtin_memcpy): Same.
4589 (handle_builtin_strcat): Same.
4590 (handle_alloc_call): Same.
4591 (handle_builtin_memset): Same.
4592 (handle_builtin_string_cmp): Same.
4593 (handle_pointer_plus): Same.
4594 (count_nonzero_bytes_addr): Same.
4595 (count_nonzero_bytes): Same.
4596 (handle_store): Same.
4597 (fold_strstr_to_strncmp): Same.
4598 (handle_integral_assign): Same.
4599 (check_and_optimize_stmt): Same.
4600 (class strlen_dom_walker): Replace evrp with ranger.
4601 (strlen_dom_walker::before_dom_children): Remove evrp.
4602 (strlen_dom_walker::after_dom_children): Remove evrp.
4603 * gimple-ssa-warn-access.cc (maybe_check_access_sizes):
4604 Restrict sprintf output.
4606 2021-11-09 Martin Liska <mliska@suse.cz>
4608 * genconditions.c (write_one_condition): Add const qualifier
4611 2021-11-09 Jeff Law <jeffreyalaw@gmail.com>
4613 * match.pd: New pattern to simplify (1 << n) & M ==/!= 0 for M
4616 2021-11-08 Bill Schmidt <wschmidt@linux.ibm.com>
4618 * config/rs6000/rs6000-builtin-new.def (VEC_INIT_V16QI): Use
4619 escape-newline support.
4620 (VEC_INIT_V4SI): Likewise.
4621 (VEC_INIT_V8HI): Likewise.
4622 (PACK_V1TI): Likewise.
4624 (VFIRSTMISMATCHOREOSINDEX_V16QI): Likewise.
4625 (VFIRSTMISMATCHOREOSINDEX_V8HI): Likewise.
4626 (VFIRSTMISMATCHOREOSINDEX_V4SI): Likewise.
4630 (FMAF128_ODD): Likewise.
4631 (VSCEQPUO): Likewise.
4633 (VSIEQPF): Likewise.
4634 (VSTDCQP): Likewise.
4635 (PACK_TD): Likewise.
4636 (TABORTDC): Likewise.
4637 (TABORTDCI): Likewise.
4638 (SE_LXVRBX): Likewise.
4639 (SE_LXVRHX): Likewise.
4640 (SE_LXVRWX): Likewise.
4641 (SE_LXVRDX): Likewise.
4642 (VREPLACE_UN_UV2DI): Likewise.
4643 (VREPLACE_UN_UV4SI): Likewise.
4644 (VREPLACE_UN_V2DI): Likewise.
4645 (VREPLACE_ELT_UV2DI): Likewise.
4646 (VREPLACE_ELT_V2DI): Likewise.
4647 (ZE_LXVRBX): Likewise.
4648 (ZE_LXVRHX): Likewise.
4649 (ZE_LXVRWX): Likewise.
4650 (ZE_LXVRDX): Likewise.
4652 (CNTLZDM): Likewise.
4653 (CNTTZDM): Likewise.
4656 (PMXVBF16GER2): Likewise.
4657 (PMXVBF16GER2_INTERNAL): Likewise.
4658 (PMXVBF16GER2NN): Likewise.
4659 (PMXVBF16GER2NN_INTERNAL): Likewise.
4660 (PMXVBF16GER2NP): Likewise.
4661 (PMXVBF16GER2NP_INTERNAL): Likewise.
4662 (PMXVBF16GER2PN): Likewise.
4663 (PMXVBF16GER2PN_INTERNAL): Likewise.
4664 (PMXVBF16GER2PP): Likewise.
4665 (PMXVBF16GER2PP_INTERNAL): Likewise.
4666 (PMXVF16GER2): Likewise.
4667 (PMXVF16GER2_INTERNAL): Likewise.
4668 (PMXVF16GER2NN): Likewise.
4669 (PMXVF16GER2NN_INTERNAL): Likewise.
4670 (PMXVF16GER2NP): Likewise.
4671 (PMXVF16GER2NP_INTERNAL): Likewise.
4672 (PMXVF16GER2PN): Likewise.
4673 (PMXVF16GER2PN_INTERNAL): Likewise.
4674 (PMXVF16GER2PP): Likewise.
4675 (PMXVF16GER2PP_INTERNAL): Likewise.
4676 (PMXVF32GER_INTERNAL): Likewise.
4677 (PMXVF32GERNN): Likewise.
4678 (PMXVF32GERNN_INTERNAL): Likewise.
4679 (PMXVF32GERNP): Likewise.
4680 (PMXVF32GERNP_INTERNAL): Likewise.
4681 (PMXVF32GERPN): Likewise.
4682 (PMXVF32GERPN_INTERNAL): Likewise.
4683 (PMXVF32GERPP): Likewise.
4684 (PMXVF32GERPP_INTERNAL): Likewise.
4685 (PMXVF64GER): Likewise.
4686 (PMXVF64GER_INTERNAL): Likewise.
4687 (PMXVF64GERNN): Likewise.
4688 (PMXVF64GERNN_INTERNAL): Likewise.
4689 (PMXVF64GERNP): Likewise.
4690 (PMXVF64GERNP_INTERNAL): Likewise.
4691 (PMXVF64GERPN): Likewise.
4692 (PMXVF64GERPN_INTERNAL): Likewise.
4693 (PMXVF64GERPP): Likewise.
4694 (PMXVF64GERPP_INTERNAL): Likewise.
4695 (PMXVI16GER2): Likewise.
4696 (PMXVI16GER2_INTERNAL): Likewise.
4697 (PMXVI16GER2PP): Likewise.
4698 (PMXVI16GER2PP_INTERNAL): Likewise.
4699 (PMXVI16GER2S): Likewise.
4700 (PMXVI16GER2S_INTERNAL): Likewise.
4701 (PMXVI16GER2SPP): Likewise.
4702 (PMXVI16GER2SPP_INTERNAL): Likewise.
4703 (PMXVI4GER8): Likewise.
4704 (PMXVI4GER8_INTERNAL): Likewise.
4705 (PMXVI4GER8PP): Likewise.
4706 (PMXVI4GER8PP_INTERNAL): Likewise.
4707 (PMXVI8GER4): Likewise.
4708 (PMXVI8GER4_INTERNAL): Likewise.
4709 (PMXVI8GER4PP): Likewise.
4710 (PMXVI8GER4PP_INTERNAL): Likewise.
4711 (PMXVI8GER4SPP): Likewise.
4712 (PMXVI8GER4SPP_INTERNAL): Likewise.
4713 * config/rs6000/rs6000-gen-builtins.c (MAXLINES): New macro.
4714 (linebuf): Increase size.
4715 (lines): New variable.
4716 (lastline): Likewise.
4717 (real_line_pos): New function.
4718 (diag): Change signature.
4719 (bif_diag): Change signature; support escape-newline handling.
4720 (ovld_diag): Likewise.
4721 (fatal): Move earlier.
4722 (consume_whitespace): Adjust diag call.
4723 (advance_line): Add escape-newline handling; call fatal.
4724 (safe_inc_pos): Adjust diag call.
4725 (match_identifier): Likewise.
4726 (match_integer): Likewise.
4727 (match_to_right_bracket): Call fatal instead of diag; adjust diag
4729 (match_basetype): Adjust diag calls.
4730 (match_bracketed_pair): Likewise.
4731 (match_const_restriction): Likewise.
4732 (match_type): Likewise.
4733 (parse_args): Likewise.
4734 (parse_bif_attrs): Likewise.
4735 (complete_vector_type): Likewise.
4736 (complete_base_type): Likewise.
4737 (parse_prototype): Likewise.
4738 (parse_bif_entry): Likewise.
4739 (parse_bif_stanza): Likewise.
4740 (parse_ovld_entry): Likewise.
4741 (parse_ovld_stanza): Likewise.
4742 (main): Allocate buffers for lines[].
4744 2021-11-08 Eric Botcazou <ebotcazou@adacore.com>
4746 * config/i386/i386.c (legitimize_pic_address): Adjust comment and
4747 use the REG argument on the CM_LARGE_PIC code path as well.
4748 * config/i386/predicates.md (gotoff_operand): Do not treat VxWorks
4749 specially with the large code models.
4751 2021-11-08 Jan Hubicka <hubicka@ucw.cz>
4753 * gimple.c (gimple_call_static_chain_flags): Revert the workaround
4754 allowing interposition since issues with binds_to_local_def were
4757 2021-11-08 Andrew MacLeod <amacleod@redhat.com>
4759 PR tree-optimization/103122
4760 * gimple-range.cc (gimple_ranger::range_of_expr): Request the cache
4761 entry with "calulate new values" set to false.
4763 2021-11-08 Jan Hubicka <hubicka@ucw.cz>
4765 * builtins.c (is_simple_builtin): Add builitin_dwarf_cfa
4766 and builtin_return_address.
4767 (builtin_fnspec): Annotate builtin_return,
4768 bulitin_eh_pointer, builtin_eh_filter, builtin_unwind_resume,
4769 builtin_cxa_end_cleanup, builtin_eh_copy_values,
4770 builtin_frame_address, builtin_apply_args,
4771 builtin_asan_before_dynamic_init, builtin_asan_after_dynamic_init,
4772 builtin_prefetch, builtin_dwarf_cfa, builtin_return_addrss
4774 * ipa-pure-const.c (special_builtin_state): Add builtin_dwarf_cfa
4775 and builtin_return_address.
4777 2021-11-08 Jan Hubicka <hubicka@ucw.cz>
4779 PR tree-optimization/103177
4780 * passes.def: Move uncprop after pure/const and modref.
4782 2021-11-08 Martin Jambor <mjambor@suse.cz>
4786 * tree-inline.c (remap_gimple_stmt): Unshare the expression without
4787 location before invoking remap_with_debug_expressions on it.
4788 * ipa-param-manipulation.c
4789 (ipa_param_body_adjustments::prepare_debug_expressions): Likewise.
4791 2021-11-08 David Edelsohn <dje.gcc@gmail.com>
4793 * config/rs6000/vsx.md (vsx_splat_v4si_di): Revert "wa"
4796 2021-11-08 Richard Biener <rguenther@suse.de>
4798 * cfgloop.c (verify_loop_structure): Use a temporary BB flag
4799 instead of an sbitmap to cache irreducible state.
4801 2021-11-08 Aldy Hernandez <aldyh@redhat.com>
4803 PR tree-optimization/103120
4804 * gimple-range-path.cc (path_range_query::range_defined_in_block):
4805 Bail if there's a cache entry.
4807 2021-11-08 Bill Schmidt <wschmidt@linux.ibm.com>
4809 * config/rs6000/rs6000.c (rs6000_builtin_reciprocal): Use
4810 rs6000_builtin_decls_x when appropriate.
4811 (add_condition_to_bb): Likewise.
4812 (rs6000_atomic_assign_expand_fenv): Likewise.
4814 2021-11-08 Bill Schmidt <wschmidt@linux.ibm.com>
4816 * config/rs6000/rs6000-call.c (rs6000_new_builtin_decl): New function.
4817 (rs6000_builtin_decl): Call it.
4819 2021-11-08 Martin Liska <mliska@suse.cz>
4821 * cgraph.c (cgraph_node::dump): Dump it from decl.
4823 2021-11-08 Martin Liska <mliska@suse.cz>
4825 PR gcov-profile/100520
4826 * coverage.c (coverage_compute_profile_id): Strip .gk when
4827 compare debug is used.
4828 * system.h (endswith): New function.
4830 2021-11-08 Martin Liska <mliska@suse.cz>
4832 * cgraph.c (cgraph_node::dump): Dump static_chain_decl.
4834 2021-11-08 Thomas Schwinge <thomas@codesourcery.com>
4836 * config/rs6000/rbtree.c: Fix 'Copyright (C) 2020-21' into '2020-2021'
4837 * config/rs6000/rbtree.h: Likewise.
4838 * config/rs6000/rs6000-builtin-new.def: Likewise.
4839 * config/rs6000/rs6000-gen-builtins.c: Likewise.
4840 * config/rs6000/rs6000-overload.def: Likewise.
4842 2021-11-08 Richard Sandiford <richard.sandiford@arm.com>
4844 * config/aarch64/aarch64.c (aarch64_ldn_stn_vectors): New function.
4845 (aarch64_address_cost): Use it instead of testing for CImode and
4848 2021-11-08 Richard Sandiford <richard.sandiford@arm.com>
4850 * genmodes.c (emit_insn_modes_h): Define NUM_MODE_* macros.
4851 * expmed.h (NUM_MODE_INT): Delete in favor of genmodes definitions.
4852 (NUM_MODE_PARTIAL_INT, NUM_MODE_VECTOR_INT): Likewise.
4853 * real.h (real_format_for_mode): Use NUM_MODE_FLOAT and
4854 NUM_MODE_DECIMAL_FLOAT.
4855 (REAL_MODE_FORMAT): Likewise.
4857 2021-11-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
4859 * tree-vect-loop.c (vect_better_loop_vinfo_p): Change how epilogue loop
4862 2021-11-08 Richard Biener <rguenther@suse.de>
4864 * tree-vectorizer.h (vect_create_loop_vinfo): Add main_loop_info
4866 * tree-vect-loop.c (vect_create_loop_vinfo): Likewise. Set
4867 LOOP_VINFO_ORIG_LOOP_INFO and conditionalize set of
4868 LOOP_VINFO_NITERS_ASSUMPTIONS.
4869 (vect_analyze_loop_1): Adjust.
4870 (vect_analyze_loop): Move loop constraint setting and
4871 SCEV/niter reset here from vect_create_loop_vinfo to perform
4873 (vect_analyze_loop_form): Move dumping of symbolic niters
4874 here from vect_create_loop_vinfo.
4876 2021-11-08 Jan Hubicka <hubicka@ucw.cz>
4878 * ipa-modref-tree.h (enum modref_special_parms): New enum.
4879 (struct modref_access_node): update for special parms.
4880 (struct modref_ref_node): Likewise.
4881 (struct modref_parm_map): Likewise.
4882 (struct modref_tree): Likewise.
4883 * ipa-modref.c (dump_access): Likewise.
4884 (get_access): Detect static chain.
4885 (parm_map_for_arg): Take tree as arg instead of
4887 (merge_call_side_effects): Compute map for static chain.
4888 (process_fnspec): Update.
4889 (struct escape_point): Remove retslot_arg and static_chain_arg.
4890 (analyze_parms): Update.
4891 (compute_parm_map): Update.
4892 (propagate_unknown_call): Update.
4893 (modref_propagate_in_scc): Update.
4894 (modref_merge_call_site_flags): Update.
4895 (ipa_merge_modref_summary_after_inlining): Update.
4896 * tree-ssa-alias.c (modref_may_conflict): Handle static chain.
4897 * ipa-modref-tree.c (test_merge): Update.
4899 2021-11-08 Haochen Gui <guihaoc@gcc.gnu.org>
4901 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_builtin): Disable
4902 gimple fold for VSX_BUILTIN_XVMINDP, ALTIVEC_BUILTIN_VMINFP,
4903 VSX_BUILTIN_XVMAXDP, ALTIVEC_BUILTIN_VMAXFP when fast-math is not
4906 2021-11-08 liuhongt <hongtao.liu@intel.com>
4908 PR tree-optimization/103077
4909 * doc/invoke.texi (Options That Control Optimization):
4910 Update documentation for -ftree-loop-vectorize and
4911 -ftree-slp-vectorize which are enabled by default at -02.
4913 2021-11-08 liuhongt <hongtao.liu@intel.com>
4916 * match.pd (Simplifcation (trunc)copysign((extend)a, (extend)b)
4917 to .COPYSIGN (a, b)): Add !HONOR_SNANS.
4919 2021-11-08 liuhongt <hongtao.liu@intel.com>
4922 * match.pd: Simplify
4923 (trunc)fma ((extend)a, (extend)b, (extend)c) to IFN_FMA (a, b,
4924 c) under flag_unsafe_math_optimizations.
4926 2021-11-07 Jan Hubicka <hubicka@ucw.cz>
4929 * params.opt (modref-max-depth): Add range.
4930 (modref-max-adjustments): Fix range.
4932 2021-11-07 Aldy Hernandez <aldyh@redhat.com>
4934 * tree-pass.h (make_pass_vrp_threader): Remove.
4935 * tree-ssa-threadbackward.c
4936 (back_threader_profitability::profitable_path_p): Remove
4937 ASSERT_EXPR references.
4938 * tree-ssa-threadedge.c (jt_state::register_equivs_stmt): Same.
4939 * tree-vrp.c (vrp_folder::simplify_casted_conds): Same.
4940 (execute_vrp): Same.
4941 (class hybrid_threader): Remove.
4942 (hybrid_threader::hybrid_threader): Remove.
4943 (hybrid_threader::~hybrid_threader): Remove.
4944 (hybrid_threader::before_dom_children): Remove.
4945 (hybrid_threader::after_dom_children): Remove.
4946 (execute_vrp_threader): Remove.
4947 (class pass_vrp_threader): Remove.
4948 (make_pass_vrp_threader): Remove.
4950 2021-11-07 Jan Hubicka <hubicka@ucw.cz>
4952 * gimple.c (gimple_call_arg_flags): Use interposable_eaf_flags.
4953 (gimple_call_retslot_flags): Likewise.
4954 (gimple_call_static_chain_flags): Likewise.
4955 * ipa-modref.c (remove_useless_eaf_flags): Do not remove everything for
4957 (modref_summary::useful_p): Likewise.
4958 (modref_summary_lto::useful_p): Likewise.
4959 (analyze_parms): Do not give up on NOVOPS.
4960 (analyze_function): When dumping report chnages in EAF flags
4961 between IPA and local pass.
4962 (modref_merge_call_site_flags): Compute implicit eaf flags
4963 based on callee ecf_flags and fnspec; if the function does not
4964 bind to current defs use interposable_eaf_flags.
4965 (modref_propagate_flags_in_scc): Update.
4966 * ipa-modref.h (interposable_eaf_flags): New function.
4968 2021-11-07 Bill Schmidt <wschmidt@linux.ibm.com>
4970 * config/rs6000/rs6000-call.c (rs6000_expand_new_builtin): New
4972 (rs6000_invalid_new_builtin): New function.
4973 (rs6000_expand_builtin): Call rs6000_expand_new_builtin.
4974 (rs6000_expand_ldst_mask): New function.
4975 (new_cpu_expand_builtin): Likewise.
4976 (elemrev_icode): Likewise.
4977 (ldv_expand_builtin): Likewise.
4978 (lxvrse_expand_builtin): Likewise.
4979 (lxvrze_expand_builtin): Likewise.
4980 (stv_expand_builtin): Likewise.
4981 (new_mma_expand_builtin): Likewise.
4982 (new_htm_spr_num): Likewise.
4983 (new_htm_expand_builtin): Likewise.
4984 (rs6000_expand_new_builtin): Likewise.
4985 (rs6000_init_builtins): Initialize altivec_builtin_mask_for_load.
4987 2021-11-07 Jan Hubicka <hubicka@ucw.cz>
4989 * ipa-modref.c (modref_lattice): Add do_dataflow,
4990 changed and propagate_to fields.
4991 (modref_lattice::release): Free propagate_to
4992 (modref_lattice::merge): Do not give up early on unknown
4994 (modref_lattice::merge_deref): Likewise.
4995 (modref_eaf_analysis): Update toplevel comment.
4996 (modref_eaf_analysis::analyze_ssa_name): Record postponned ssa names;
4997 do optimistic dataflow initialization.
4998 (modref_eaf_analysis::merge_with_ssa_name): Build dataflow graph.
4999 (modref_eaf_analysis::propagate): New member function.
5000 (analyze_parms): Update to new API of modref_eaf_analysis.
5002 2021-11-06 Jan Hubicka <hubicka@ucw.cz>
5004 * cgraph.h (cgraph_node::can_be_discarded_p): Do not
5005 return true on functions from other partition.
5007 2021-11-06 David Edelsohn <dje.gcc@gmail.com>
5009 * config/rs6000/vsx.md (vsx_splat_v4si): Change constraints to "wa".
5010 (vsx_splat_v4si_di): Change constraint to "wa".
5012 2021-11-06 Aldy Hernandez <aldyh@redhat.com>
5014 PR tree-optimization/103061
5015 * value-relation.cc (path_oracle::path_oracle): Initialize
5017 (path_oracle::killing_def): Set m_killed_defs.
5018 (path_oracle::query_relation): Do not look at the root oracle for
5020 * value-relation.h (class path_oracle): Add m_killed_defs.
5022 2021-11-06 Aldy Hernandez <aldyh@redhat.com>
5024 * tree-ssa-threadbackward.c (back_threader::find_paths_to_names):
5025 Remove gotos and other cleanups.
5027 2021-11-05 Jan Hubicka <hubicka@ucw.cz>
5030 * ipa-modref-tree.h (modref_tree::insert): Do nothing for
5031 paradoxical and zero sized accesses.
5033 2021-11-05 Jan Hubicka <hubicka@ucw.cz>
5036 * ipa-modref-tree.h (struct modref_access_node): Avoid left shift
5039 2021-11-05 Iain Sandoe <iain@sandoe.co.uk>
5041 * config/darwin.h (ASM_GENERATE_INTERNAL_LABEL): Add LTRAMP
5042 to the list of symbol prefixes that must be made linker-
5045 2021-11-05 Iain Sandoe <iain@sandoe.co.uk>
5047 * config.host: Add support for aarch64-*-darwin.
5048 * config/aarch64/host-aarch64-darwin.c: New file.
5049 * config/aarch64/x-darwin: New file.
5051 2021-11-05 Andrew MacLeod <amacleod@redhat.com>
5053 PR tree-optimization/103093
5054 * gimple-range-gori.cc (range_def_chain::get_imports): Remove assert.
5056 2021-11-05 Andrew MacLeod <amacleod@redhat.com>
5058 PR tree-optimization/102943
5059 * gimple-range-cache.cc (class update_list): New.
5060 (update_list::add): Replace add_to_update.
5061 (update_list::pop): New.
5062 (ranger_cache::ranger_cache): Adjust.
5063 (ranger_cache::~ranger_cache): Adjust.
5064 (ranger_cache::add_to_update): Delete.
5065 (ranger_cache::propagate_cache): Adjust to new class.
5066 (ranger_cache::propagate_updated_value): Ditto.
5067 (ranger_cache::fill_block_cache): Ditto.
5068 * gimple-range-cache.h (class ranger_cache): Adjust to update class.
5070 2021-11-05 Richard Biener <rguenther@suse.de>
5072 * tree-vect-loop.c (vect_analyze_loop): Remove obsolete
5073 comment and expand on another one. Combine nested if.
5075 2021-11-05 John David Anglin <danglin@gcc.gnu.org>
5078 * config/pa/pa-modes.def: Add OImode integer type.
5079 * config/pa/pa.c (pa_scalar_mode_supported_p): Allow TImode
5081 * config/pa/pa.h (MIN_UNITS_PER_WORD) Define to MIN_UNITS_PER_WORD
5082 to UNITS_PER_WORD if IN_LIBGCC2.
5083 * config/pa/pa.md (addti3, addvti3, subti3, subvti3, negti2,
5084 negvti2, ashlti3, shrpd_internal): New patterns.
5085 Change some multi instruction types to multi.
5087 2021-11-05 Jakub Jelinek <jakub@redhat.com>
5090 * config/i386/i386.h
5091 (stringop_algs::stringop_strategy::stringop_strategy): Make the ctor
5094 2021-11-05 Wilco Dijkstra <wdijkstr@arm.com>
5097 * config/aarch64/aarch64.c (aarch64_mov_operand_p): Strip the salt
5099 * config/aarch64/constraints.md: Support const in Usw.
5101 2021-11-05 John David Anglin <danglin@gcc.gnu.org>
5103 * config/pa/pa.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2_DEBUG.
5104 * config/pa/pa64-hpux.h (PREFERRED_DEBUGGING_TYPE): Remove define.
5106 2021-11-05 Richard Biener <rguenther@suse.de>
5108 * tree-vectorizer.h (vec_info_shared::n_stmts): Add.
5109 (LOOP_VINFO_N_STMTS): Likewise.
5110 (vec_info_for_bb): Remove unused function.
5111 * tree-vectorizer.c (vec_info_shared::vec_info_shared):
5112 Initialize n_stmts member.
5113 * tree-vect-loop.c: Remove INCLUDE_FUNCTIONAL.
5114 (vect_create_loop_vinfo): Do not set loop->aux.
5115 (vect_analyze_loop_2): Do not get n_stmts as argument,
5116 instead use LOOP_VINFO_N_STMTS. Set LOOP_VINFO_VECTORIZABLE_P
5118 (vect_analyze_loop_1): Remove callback, get the mode iterator
5119 and autodetected_vector_mode as argument, advancing the
5120 iterator and initializing autodetected_vector_mode here.
5121 (vect_analyze_loop): Split analysis loop into two, first
5122 processing main loops only and then epilogues.
5124 2021-11-05 Martin Jambor <mjambor@suse.cz>
5126 * ipa-prop.c (compute_complex_assign_jump_func): Remove
5127 unnecessary check for RECORD_TYPE.
5129 2021-11-05 Gerald Pfeifer <gerald@pfeifer.com>
5131 * doc/install.texi2html: Do not generate old.html any longer.
5133 2021-11-05 Martin Liska <mliska@suse.cz>
5136 * opts.c (finish_options): Reset flag_gtoggle when it is used.
5138 2021-11-05 Jakub Jelinek <jakub@redhat.com>
5141 * dwarf2out.c (add_const_value_attribute): Add MODE argument, use it
5142 in CONST_WIDE_INT handling. Adjust recursive calls.
5143 (add_location_or_const_value_attribute): Pass DECL_MODE (decl) to
5144 new add_const_value_attribute argument.
5145 (tree_add_const_value_attribute): Pass TYPE_MODE (type) to new
5146 add_const_value_attribute argument.
5148 2021-11-05 Rasmus Villemoes <rasmus.villemoes@prevas.dk>
5150 * config/vx-common.h: Test value of TARGET_VXWORKS7 rather
5153 2021-11-05 Richard Biener <rguenther@suse.de>
5155 * tree-vectorizer.h (struct vect_loop_form_info): New.
5156 (vect_analyze_loop_form): Adjust.
5157 (vect_create_loop_vinfo): New.
5158 * tree-parloops.c (gather_scalar_reductions): Adjust for
5159 vect_analyze_loop_form API change.
5160 * tree-vect-loop.c: Include <functional>.
5161 (vect_analyze_loop_form_1): Rename to vect_analyze_loop_form,
5162 take struct vect_loop_form_info as output parameter and adjust.
5163 (vect_analyze_loop_form): Rename to vect_create_loop_vinfo and
5164 split out call to the original vect_analyze_loop_form_1.
5165 (vect_reanalyze_as_main_loop): Rename to...
5166 (vect_analyze_loop_1): ... this, factor out the call to
5167 vect_analyze_loop_form and generalize to be able to use it twice ...
5168 (vect_analyze_loop): ... here. Perform vect_analyze_loop_form
5171 2021-11-05 Xionghu Luo <luoxhu@linux.ibm.com>
5174 * config/rs6000/fusion.md: Regenerate.
5175 * config/rs6000/genfusion.pl: Fix incorrect clobber constraint.
5177 2021-11-04 Andreas Krebbel <krebbel@linux.ibm.com>
5179 * config/s390/s390.h (STACK_CHECK_MOVING_SP): New macro
5182 2021-11-04 Tamar Christina <tamar.christina@arm.com>
5184 * config/aarch64/aarch64-builtins.c
5185 (aarch64_general_gimple_fold_builtin): Add ashl, sshl, ushl, ashr,
5186 ashr_simd, lshr, lshr_simd.
5187 * config/aarch64/aarch64-simd-builtins.def (lshr): Use USHIFTIMM.
5188 * config/aarch64/arm_neon.h (vshr_n_u8, vshr_n_u16, vshr_n_u32,
5189 vshrq_n_u8, vshrq_n_u16, vshrq_n_u32, vshrq_n_u64): Fix type hack.
5191 2021-11-04 Tamar Christina <tamar.christina@arm.com>
5193 * match.pd: New negate+shift pattern.
5195 2021-11-04 Andrew MacLeod <amacleod@redhat.com>
5197 PR tree-optimization/103079
5198 * gimple-range-gori.cc (gimple_range_calc_op1): Treat undefined as
5200 (gimple_range_calc_op2): Ditto.
5202 2021-11-04 Martin Jambor <mjambor@suse.cz>
5205 * ipa-param-manipulation.h (class ipa_param_body_adjustments): New
5206 members remap_with_debug_expressions, m_dead_ssa_debug_equiv,
5207 m_dead_stmt_debug_equiv and prepare_debug_expressions. Added
5208 parameter to mark_dead_statements.
5209 * ipa-param-manipulation.c: Include tree-phinodes.h and cfgexpand.h.
5210 (ipa_param_body_adjustments::mark_dead_statements): New parameter
5211 debugstack, push into it all SSA names used in debug statements,
5212 produce m_dead_ssa_debug_equiv mapping for the removed param.
5213 (replace_with_mapped_expr): New function.
5214 (ipa_param_body_adjustments::remap_with_debug_expressions): Likewise.
5215 (ipa_param_body_adjustments::prepare_debug_expressions): Likewise.
5216 (ipa_param_body_adjustments::common_initialization): Gather and
5217 procecc SSA which will be removed but are in debug statements. Simplify.
5218 (ipa_param_body_adjustments::ipa_param_body_adjustments): Initialize
5220 * tree-inline.c (remap_gimple_stmt): Create a debug bind when possible
5221 when avoiding a copy of an unnecessary statement. Remap removed SSA
5222 names in existing debug statements.
5223 (tree_function_versioning): Do not create DEBUG_EXPR_DECL for removed
5224 parameters if we have already done so.
5226 2021-11-04 Jan Hubicka <hubicka@ucw.cz>
5229 * gimple.c (gimple_call_static_chain_flags): Handle case when
5230 nested function does not bind locally.
5232 2021-11-04 Jonathan Wright <jonathan.wright@arm.com>
5234 * config/aarch64/aarch64.c (aarch64_function_value): Generate
5235 a register rtx for Neon vector-tuple modes.
5236 (aarch64_layout_arg): Likewise.
5238 2021-11-04 Jonathan Wright <jonathan.wright@arm.com>
5240 * lower-subreg.c (simple_move): Prevent decomposition if
5241 modes are not tieable.
5243 2021-11-04 Jonathan Wright <jonathan.wright@arm.com>
5244 Richard Sandiford <richard.sandiford@arm.com>
5246 * config/aarch64/aarch64-builtins.c (v2x8qi_UP): Define.
5247 (v2x4hi_UP): Likewise.
5248 (v2x4hf_UP): Likewise.
5249 (v2x4bf_UP): Likewise.
5250 (v2x2si_UP): Likewise.
5251 (v2x2sf_UP): Likewise.
5252 (v2x1di_UP): Likewise.
5253 (v2x1df_UP): Likewise.
5254 (v2x16qi_UP): Likewise.
5255 (v2x8hi_UP): Likewise.
5256 (v2x8hf_UP): Likewise.
5257 (v2x8bf_UP): Likewise.
5258 (v2x4si_UP): Likewise.
5259 (v2x4sf_UP): Likewise.
5260 (v2x2di_UP): Likewise.
5261 (v2x2df_UP): Likewise.
5262 (v3x8qi_UP): Likewise.
5263 (v3x4hi_UP): Likewise.
5264 (v3x4hf_UP): Likewise.
5265 (v3x4bf_UP): Likewise.
5266 (v3x2si_UP): Likewise.
5267 (v3x2sf_UP): Likewise.
5268 (v3x1di_UP): Likewise.
5269 (v3x1df_UP): Likewise.
5270 (v3x16qi_UP): Likewise.
5271 (v3x8hi_UP): Likewise.
5272 (v3x8hf_UP): Likewise.
5273 (v3x8bf_UP): Likewise.
5274 (v3x4si_UP): Likewise.
5275 (v3x4sf_UP): Likewise.
5276 (v3x2di_UP): Likewise.
5277 (v3x2df_UP): Likewise.
5278 (v4x8qi_UP): Likewise.
5279 (v4x4hi_UP): Likewise.
5280 (v4x4hf_UP): Likewise.
5281 (v4x4bf_UP): Likewise.
5282 (v4x2si_UP): Likewise.
5283 (v4x2sf_UP): Likewise.
5284 (v4x1di_UP): Likewise.
5285 (v4x1df_UP): Likewise.
5286 (v4x16qi_UP): Likewise.
5287 (v4x8hi_UP): Likewise.
5288 (v4x8hf_UP): Likewise.
5289 (v4x8bf_UP): Likewise.
5290 (v4x4si_UP): Likewise.
5291 (v4x4sf_UP): Likewise.
5292 (v4x2di_UP): Likewise.
5293 (v4x2df_UP): Likewise.
5294 (TYPES_GETREGP): Delete.
5295 (TYPES_SETREGP): Likewise.
5296 (TYPES_LOADSTRUCT_U): Define.
5297 (TYPES_LOADSTRUCT_P): Likewise.
5298 (TYPES_LOADSTRUCT_LANE_U): Likewise.
5299 (TYPES_LOADSTRUCT_LANE_P): Likewise.
5300 (TYPES_STORE1P): Move for consistency.
5301 (TYPES_STORESTRUCT_U): Define.
5302 (TYPES_STORESTRUCT_P): Likewise.
5303 (TYPES_STORESTRUCT_LANE_U): Likewise.
5304 (TYPES_STORESTRUCT_LANE_P): Likewise.
5305 (aarch64_simd_tuple_types): Define.
5306 (aarch64_lookup_simd_builtin_type): Handle tuple type lookup.
5307 (aarch64_init_simd_builtin_functions): Update frontend lookup
5308 for builtin functions after handling arm_neon.h pragma.
5309 (register_tuple_type): Manually set modes of single-integer
5310 tuple types. Record tuple types.
5311 * config/aarch64/aarch64-modes.def
5312 (ADV_SIMD_D_REG_STRUCT_MODES): Define D-register tuple modes.
5313 (ADV_SIMD_Q_REG_STRUCT_MODES): Define Q-register tuple modes.
5314 (SVE_MODES): Give single-vector modes priority over vector-
5316 (VECTOR_MODES_WITH_PREFIX): Set partial-vector mode order to
5317 be after all single-vector modes.
5318 * config/aarch64/aarch64-simd-builtins.def: Update builtin
5319 generator macros to reflect modifications to the backend
5321 * config/aarch64/aarch64-simd.md (aarch64_simd_ld2<mode>):
5322 Use vector-tuple mode iterator and rename to...
5323 (aarch64_simd_ld2<vstruct_elt>): This.
5324 (aarch64_simd_ld2r<mode>): Use vector-tuple mode iterator and
5326 (aarch64_simd_ld2r<vstruct_elt>): This.
5327 (aarch64_vec_load_lanesoi_lane<mode>): Use vector-tuple mode
5328 iterator and rename to...
5329 (aarch64_vec_load_lanes<mode>_lane<vstruct_elt>): This.
5330 (vec_load_lanesoi<mode>): Use vector-tuple mode iterator and
5332 (vec_load_lanes<mode><vstruct_elt>): This.
5333 (aarch64_simd_st2<mode>): Use vector-tuple mode iterator and
5335 (aarch64_simd_st2<vstruct_elt>): This.
5336 (aarch64_vec_store_lanesoi_lane<mode>): Use vector-tuple mode
5337 iterator and rename to...
5338 (aarch64_vec_store_lanes<mode>_lane<vstruct_elt>): This.
5339 (vec_store_lanesoi<mode>): Use vector-tuple mode iterator and
5341 (vec_store_lanes<mode><vstruct_elt>): This.
5342 (aarch64_simd_ld3<mode>): Use vector-tuple mode iterator and
5344 (aarch64_simd_ld3<vstruct_elt>): This.
5345 (aarch64_simd_ld3r<mode>): Use vector-tuple mode iterator and
5347 (aarch64_simd_ld3r<vstruct_elt>): This.
5348 (aarch64_vec_load_lanesci_lane<mode>): Use vector-tuple mode
5349 iterator and rename to...
5350 (vec_load_lanesci<mode>): This.
5351 (aarch64_simd_st3<mode>): Use vector-tuple mode iterator and
5353 (aarch64_simd_st3<vstruct_elt>): This.
5354 (aarch64_vec_store_lanesci_lane<mode>): Use vector-tuple mode
5355 iterator and rename to...
5356 (vec_store_lanesci<mode>): This.
5357 (aarch64_simd_ld4<mode>): Use vector-tuple mode iterator and
5359 (aarch64_simd_ld4<vstruct_elt>): This.
5360 (aarch64_simd_ld4r<mode>): Use vector-tuple mode iterator and
5362 (aarch64_simd_ld4r<vstruct_elt>): This.
5363 (aarch64_vec_load_lanesxi_lane<mode>): Use vector-tuple mode
5364 iterator and rename to...
5365 (vec_load_lanesxi<mode>): This.
5366 (aarch64_simd_st4<mode>): Use vector-tuple mode iterator and
5368 (aarch64_simd_st4<vstruct_elt>): This.
5369 (aarch64_vec_store_lanesxi_lane<mode>): Use vector-tuple mode
5370 iterator and rename to...
5371 (vec_store_lanesxi<mode>): This.
5372 (mov<mode>): Define for Neon vector-tuple modes.
5373 (aarch64_ld1x3<VALLDIF:mode>): Use vector-tuple mode iterator
5375 (aarch64_ld1x3<vstruct_elt>): This.
5376 (aarch64_ld1_x3_<mode>): Use vector-tuple mode iterator and
5378 (aarch64_ld1_x3_<vstruct_elt>): This.
5379 (aarch64_ld1x4<VALLDIF:mode>): Use vector-tuple mode iterator
5381 (aarch64_ld1x4<vstruct_elt>): This.
5382 (aarch64_ld1_x4_<mode>): Use vector-tuple mode iterator and
5384 (aarch64_ld1_x4_<vstruct_elt>): This.
5385 (aarch64_st1x2<VALLDIF:mode>): Use vector-tuple mode iterator
5387 (aarch64_st1x2<vstruct_elt>): This.
5388 (aarch64_st1_x2_<mode>): Use vector-tuple mode iterator and
5390 (aarch64_st1_x2_<vstruct_elt>): This.
5391 (aarch64_st1x3<VALLDIF:mode>): Use vector-tuple mode iterator
5393 (aarch64_st1x3<vstruct_elt>): This.
5394 (aarch64_st1_x3_<mode>): Use vector-tuple mode iterator and
5396 (aarch64_st1_x3_<vstruct_elt>): This.
5397 (aarch64_st1x4<VALLDIF:mode>): Use vector-tuple mode iterator
5399 (aarch64_st1x4<vstruct_elt>): This.
5400 (aarch64_st1_x4_<mode>): Use vector-tuple mode iterator and
5402 (aarch64_st1_x4_<vstruct_elt>): This.
5403 (*aarch64_mov<mode>): Define for vector-tuple modes.
5404 (*aarch64_be_mov<mode>): Likewise.
5405 (aarch64_ld<VSTRUCT:nregs>r<VALLDIF:mode>): Use vector-tuple
5406 mode iterator and rename to...
5407 (aarch64_ld<nregs>r<vstruct_elt>): This.
5408 (aarch64_ld2<mode>_dreg): Use vector-tuple mode iterator and
5410 (aarch64_ld2<vstruct_elt>_dreg): This.
5411 (aarch64_ld3<mode>_dreg): Use vector-tuple mode iterator and
5413 (aarch64_ld3<vstruct_elt>_dreg): This.
5414 (aarch64_ld4<mode>_dreg): Use vector-tuple mode iterator and
5416 (aarch64_ld4<vstruct_elt>_dreg): This.
5417 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Use vector-tuple mode
5418 iterator and rename to...
5419 (aarch64_ld<nregs><vstruct_elt>): Use vector-tuple mode
5420 iterator and rename to...
5421 (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Use vector-tuple mode
5422 (aarch64_ld1x2<VQ:mode>): Delete.
5423 (aarch64_ld1x2<VDC:mode>): Use vector-tuple mode iterator and
5425 (aarch64_ld1x2<vstruct_elt>): This.
5426 (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): Use vector-
5427 tuple mode iterator and rename to...
5428 (aarch64_ld<nregs>_lane<vstruct_elt>): This.
5429 (aarch64_get_dreg<VSTRUCT:mode><VDC:mode>): Delete.
5430 (aarch64_get_qreg<VSTRUCT:mode><VQ:mode>): Likewise.
5431 (aarch64_st2<mode>_dreg): Use vector-tuple mode iterator and
5433 (aarch64_st2<vstruct_elt>_dreg): This.
5434 (aarch64_st3<mode>_dreg): Use vector-tuple mode iterator and
5436 (aarch64_st3<vstruct_elt>_dreg): This.
5437 (aarch64_st4<mode>_dreg): Use vector-tuple mode iterator and
5439 (aarch64_st4<vstruct_elt>_dreg): This.
5440 (aarch64_st<VSTRUCT:nregs><VDC:mode>): Use vector-tuple mode
5441 iterator and rename to...
5442 (aarch64_st<nregs><vstruct_elt>): This.
5443 (aarch64_st<VSTRUCT:nregs><VQ:mode>): Use vector-tuple mode
5444 iterator and rename to aarch64_st<nregs><vstruct_elt>.
5445 (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): Use vector-
5446 tuple mode iterator and rename to...
5447 (aarch64_st<nregs>_lane<vstruct_elt>): This.
5448 (aarch64_set_qreg<VSTRUCT:mode><VQ:mode>): Delete.
5449 (aarch64_simd_ld1<mode>_x2): Use vector-tuple mode iterator
5451 (aarch64_simd_ld1<vstruct_elt>_x2): This.
5452 * config/aarch64/aarch64.c (aarch64_advsimd_struct_mode_p):
5453 Refactor to include new vector-tuple modes.
5454 (aarch64_classify_vector_mode): Add cases for new vector-
5456 (aarch64_advsimd_partial_struct_mode_p): Define.
5457 (aarch64_advsimd_full_struct_mode_p): Likewise.
5458 (aarch64_advsimd_vector_array_mode): Likewise.
5459 (aarch64_sve_data_mode): Change location in file.
5460 (aarch64_array_mode): Handle case of Neon vector-tuple modes.
5461 (aarch64_hard_regno_nregs): Handle case of partial Neon
5463 (aarch64_classify_address): Refactor to include handling of
5464 Neon vector-tuple modes.
5465 (aarch64_print_operand): Print "d" for "%R" for a partial
5466 Neon vector structure.
5467 (aarch64_expand_vec_perm_1): Use new vector-tuple mode.
5468 (aarch64_modes_tieable_p): Prevent tieing Neon partial struct
5469 modes with scalar machines modes larger than 8 bytes.
5470 (aarch64_can_change_mode_class): Don't allow changes between
5471 partial and full Neon vector-structure modes.
5472 * config/aarch64/arm_neon.h (vst2_lane_f16): Use updated
5473 builtin and remove boiler-plate code for opaque mode.
5474 (vst2_lane_f32): Likewise.
5475 (vst2_lane_f64): Likewise.
5476 (vst2_lane_p8): Likewise.
5477 (vst2_lane_p16): Likewise.
5478 (vst2_lane_p64): Likewise.
5479 (vst2_lane_s8): Likewise.
5480 (vst2_lane_s16): Likewise.
5481 (vst2_lane_s32): Likewise.
5482 (vst2_lane_s64): Likewise.
5483 (vst2_lane_u8): Likewise.
5484 (vst2_lane_u16): Likewise.
5485 (vst2_lane_u32): Likewise.
5486 (vst2_lane_u64): Likewise.
5487 (vst2q_lane_f16): Likewise.
5488 (vst2q_lane_f32): Likewise.
5489 (vst2q_lane_f64): Likewise.
5490 (vst2q_lane_p8): Likewise.
5491 (vst2q_lane_p16): Likewise.
5492 (vst2q_lane_p64): Likewise.
5493 (vst2q_lane_s8): Likewise.
5494 (vst2q_lane_s16): Likewise.
5495 (vst2q_lane_s32): Likewise.
5496 (vst2q_lane_s64): Likewise.
5497 (vst2q_lane_u8): Likewise.
5498 (vst2q_lane_u16): Likewise.
5499 (vst2q_lane_u32): Likewise.
5500 (vst2q_lane_u64): Likewise.
5501 (vst3_lane_f16): Likewise.
5502 (vst3_lane_f32): Likewise.
5503 (vst3_lane_f64): Likewise.
5504 (vst3_lane_p8): Likewise.
5505 (vst3_lane_p16): Likewise.
5506 (vst3_lane_p64): Likewise.
5507 (vst3_lane_s8): Likewise.
5508 (vst3_lane_s16): Likewise.
5509 (vst3_lane_s32): Likewise.
5510 (vst3_lane_s64): Likewise.
5511 (vst3_lane_u8): Likewise.
5512 (vst3_lane_u16): Likewise.
5513 (vst3_lane_u32): Likewise.
5514 (vst3_lane_u64): Likewise.
5515 (vst3q_lane_f16): Likewise.
5516 (vst3q_lane_f32): Likewise.
5517 (vst3q_lane_f64): Likewise.
5518 (vst3q_lane_p8): Likewise.
5519 (vst3q_lane_p16): Likewise.
5520 (vst3q_lane_p64): Likewise.
5521 (vst3q_lane_s8): Likewise.
5522 (vst3q_lane_s16): Likewise.
5523 (vst3q_lane_s32): Likewise.
5524 (vst3q_lane_s64): Likewise.
5525 (vst3q_lane_u8): Likewise.
5526 (vst3q_lane_u16): Likewise.
5527 (vst3q_lane_u32): Likewise.
5528 (vst3q_lane_u64): Likewise.
5529 (vst4_lane_f16): Likewise.
5530 (vst4_lane_f32): Likewise.
5531 (vst4_lane_f64): Likewise.
5532 (vst4_lane_p8): Likewise.
5533 (vst4_lane_p16): Likewise.
5534 (vst4_lane_p64): Likewise.
5535 (vst4_lane_s8): Likewise.
5536 (vst4_lane_s16): Likewise.
5537 (vst4_lane_s32): Likewise.
5538 (vst4_lane_s64): Likewise.
5539 (vst4_lane_u8): Likewise.
5540 (vst4_lane_u16): Likewise.
5541 (vst4_lane_u32): Likewise.
5542 (vst4_lane_u64): Likewise.
5543 (vst4q_lane_f16): Likewise.
5544 (vst4q_lane_f32): Likewise.
5545 (vst4q_lane_f64): Likewise.
5546 (vst4q_lane_p8): Likewise.
5547 (vst4q_lane_p16): Likewise.
5548 (vst4q_lane_p64): Likewise.
5549 (vst4q_lane_s8): Likewise.
5550 (vst4q_lane_s16): Likewise.
5551 (vst4q_lane_s32): Likewise.
5552 (vst4q_lane_s64): Likewise.
5553 (vst4q_lane_u8): Likewise.
5554 (vst4q_lane_u16): Likewise.
5555 (vst4q_lane_u32): Likewise.
5556 (vst4q_lane_u64): Likewise.
5557 (vtbl3_s8): Likewise.
5558 (vtbl3_u8): Likewise.
5559 (vtbl3_p8): Likewise.
5560 (vtbl4_s8): Likewise.
5561 (vtbl4_u8): Likewise.
5562 (vtbl4_p8): Likewise.
5563 (vld1_u8_x3): Likewise.
5564 (vld1_s8_x3): Likewise.
5565 (vld1_u16_x3): Likewise.
5566 (vld1_s16_x3): Likewise.
5567 (vld1_u32_x3): Likewise.
5568 (vld1_s32_x3): Likewise.
5569 (vld1_u64_x3): Likewise.
5570 (vld1_s64_x3): Likewise.
5571 (vld1_f16_x3): Likewise.
5572 (vld1_f32_x3): Likewise.
5573 (vld1_f64_x3): Likewise.
5574 (vld1_p8_x3): Likewise.
5575 (vld1_p16_x3): Likewise.
5576 (vld1_p64_x3): Likewise.
5577 (vld1q_u8_x3): Likewise.
5578 (vld1q_s8_x3): Likewise.
5579 (vld1q_u16_x3): Likewise.
5580 (vld1q_s16_x3): Likewise.
5581 (vld1q_u32_x3): Likewise.
5582 (vld1q_s32_x3): Likewise.
5583 (vld1q_u64_x3): Likewise.
5584 (vld1q_s64_x3): Likewise.
5585 (vld1q_f16_x3): Likewise.
5586 (vld1q_f32_x3): Likewise.
5587 (vld1q_f64_x3): Likewise.
5588 (vld1q_p8_x3): Likewise.
5589 (vld1q_p16_x3): Likewise.
5590 (vld1q_p64_x3): Likewise.
5591 (vld1_u8_x2): Likewise.
5592 (vld1_s8_x2): Likewise.
5593 (vld1_u16_x2): Likewise.
5594 (vld1_s16_x2): Likewise.
5595 (vld1_u32_x2): Likewise.
5596 (vld1_s32_x2): Likewise.
5597 (vld1_u64_x2): Likewise.
5598 (vld1_s64_x2): Likewise.
5599 (vld1_f16_x2): Likewise.
5600 (vld1_f32_x2): Likewise.
5601 (vld1_f64_x2): Likewise.
5602 (vld1_p8_x2): Likewise.
5603 (vld1_p16_x2): Likewise.
5604 (vld1_p64_x2): Likewise.
5605 (vld1q_u8_x2): Likewise.
5606 (vld1q_s8_x2): Likewise.
5607 (vld1q_u16_x2): Likewise.
5608 (vld1q_s16_x2): Likewise.
5609 (vld1q_u32_x2): Likewise.
5610 (vld1q_s32_x2): Likewise.
5611 (vld1q_u64_x2): Likewise.
5612 (vld1q_s64_x2): Likewise.
5613 (vld1q_f16_x2): Likewise.
5614 (vld1q_f32_x2): Likewise.
5615 (vld1q_f64_x2): Likewise.
5616 (vld1q_p8_x2): Likewise.
5617 (vld1q_p16_x2): Likewise.
5618 (vld1q_p64_x2): Likewise.
5619 (vld1_s8_x4): Likewise.
5620 (vld1q_s8_x4): Likewise.
5621 (vld1_s16_x4): Likewise.
5622 (vld1q_s16_x4): Likewise.
5623 (vld1_s32_x4): Likewise.
5624 (vld1q_s32_x4): Likewise.
5625 (vld1_u8_x4): Likewise.
5626 (vld1q_u8_x4): Likewise.
5627 (vld1_u16_x4): Likewise.
5628 (vld1q_u16_x4): Likewise.
5629 (vld1_u32_x4): Likewise.
5630 (vld1q_u32_x4): Likewise.
5631 (vld1_f16_x4): Likewise.
5632 (vld1q_f16_x4): Likewise.
5633 (vld1_f32_x4): Likewise.
5634 (vld1q_f32_x4): Likewise.
5635 (vld1_p8_x4): Likewise.
5636 (vld1q_p8_x4): Likewise.
5637 (vld1_p16_x4): Likewise.
5638 (vld1q_p16_x4): Likewise.
5639 (vld1_s64_x4): Likewise.
5640 (vld1_u64_x4): Likewise.
5641 (vld1_p64_x4): Likewise.
5642 (vld1q_s64_x4): Likewise.
5643 (vld1q_u64_x4): Likewise.
5644 (vld1q_p64_x4): Likewise.
5645 (vld1_f64_x4): Likewise.
5646 (vld1q_f64_x4): Likewise.
5647 (vld2_s64): Likewise.
5648 (vld2_u64): Likewise.
5649 (vld2_f64): Likewise.
5650 (vld2_s8): Likewise.
5651 (vld2_p8): Likewise.
5652 (vld2_p64): Likewise.
5653 (vld2_s16): Likewise.
5654 (vld2_p16): Likewise.
5655 (vld2_s32): Likewise.
5656 (vld2_u8): Likewise.
5657 (vld2_u16): Likewise.
5658 (vld2_u32): Likewise.
5659 (vld2_f16): Likewise.
5660 (vld2_f32): Likewise.
5661 (vld2q_s8): Likewise.
5662 (vld2q_p8): Likewise.
5663 (vld2q_s16): Likewise.
5664 (vld2q_p16): Likewise.
5665 (vld2q_p64): Likewise.
5666 (vld2q_s32): Likewise.
5667 (vld2q_s64): Likewise.
5668 (vld2q_u8): Likewise.
5669 (vld2q_u16): Likewise.
5670 (vld2q_u32): Likewise.
5671 (vld2q_u64): Likewise.
5672 (vld2q_f16): Likewise.
5673 (vld2q_f32): Likewise.
5674 (vld2q_f64): Likewise.
5675 (vld3_s64): Likewise.
5676 (vld3_u64): Likewise.
5677 (vld3_f64): Likewise.
5678 (vld3_s8): Likewise.
5679 (vld3_p8): Likewise.
5680 (vld3_s16): Likewise.
5681 (vld3_p16): Likewise.
5682 (vld3_s32): Likewise.
5683 (vld3_u8): Likewise.
5684 (vld3_u16): Likewise.
5685 (vld3_u32): Likewise.
5686 (vld3_f16): Likewise.
5687 (vld3_f32): Likewise.
5688 (vld3_p64): Likewise.
5689 (vld3q_s8): Likewise.
5690 (vld3q_p8): Likewise.
5691 (vld3q_s16): Likewise.
5692 (vld3q_p16): Likewise.
5693 (vld3q_s32): Likewise.
5694 (vld3q_s64): Likewise.
5695 (vld3q_u8): Likewise.
5696 (vld3q_u16): Likewise.
5697 (vld3q_u32): Likewise.
5698 (vld3q_u64): Likewise.
5699 (vld3q_f16): Likewise.
5700 (vld3q_f32): Likewise.
5701 (vld3q_f64): Likewise.
5702 (vld3q_p64): Likewise.
5703 (vld4_s64): Likewise.
5704 (vld4_u64): Likewise.
5705 (vld4_f64): Likewise.
5706 (vld4_s8): Likewise.
5707 (vld4_p8): Likewise.
5708 (vld4_s16): Likewise.
5709 (vld4_p16): Likewise.
5710 (vld4_s32): Likewise.
5711 (vld4_u8): Likewise.
5712 (vld4_u16): Likewise.
5713 (vld4_u32): Likewise.
5714 (vld4_f16): Likewise.
5715 (vld4_f32): Likewise.
5716 (vld4_p64): Likewise.
5717 (vld4q_s8): Likewise.
5718 (vld4q_p8): Likewise.
5719 (vld4q_s16): Likewise.
5720 (vld4q_p16): Likewise.
5721 (vld4q_s32): Likewise.
5722 (vld4q_s64): Likewise.
5723 (vld4q_u8): Likewise.
5724 (vld4q_u16): Likewise.
5725 (vld4q_u32): Likewise.
5726 (vld4q_u64): Likewise.
5727 (vld4q_f16): Likewise.
5728 (vld4q_f32): Likewise.
5729 (vld4q_f64): Likewise.
5730 (vld4q_p64): Likewise.
5731 (vld2_dup_s8): Likewise.
5732 (vld2_dup_s16): Likewise.
5733 (vld2_dup_s32): Likewise.
5734 (vld2_dup_f16): Likewise.
5735 (vld2_dup_f32): Likewise.
5736 (vld2_dup_f64): Likewise.
5737 (vld2_dup_u8): Likewise.
5738 (vld2_dup_u16): Likewise.
5739 (vld2_dup_u32): Likewise.
5740 (vld2_dup_p8): Likewise.
5741 (vld2_dup_p16): Likewise.
5742 (vld2_dup_p64): Likewise.
5743 (vld2_dup_s64): Likewise.
5744 (vld2_dup_u64): Likewise.
5745 (vld2q_dup_s8): Likewise.
5746 (vld2q_dup_p8): Likewise.
5747 (vld2q_dup_s16): Likewise.
5748 (vld2q_dup_p16): Likewise.
5749 (vld2q_dup_s32): Likewise.
5750 (vld2q_dup_s64): Likewise.
5751 (vld2q_dup_u8): Likewise.
5752 (vld2q_dup_u16): Likewise.
5753 (vld2q_dup_u32): Likewise.
5754 (vld2q_dup_u64): Likewise.
5755 (vld2q_dup_f16): Likewise.
5756 (vld2q_dup_f32): Likewise.
5757 (vld2q_dup_f64): Likewise.
5758 (vld2q_dup_p64): Likewise.
5759 (vld3_dup_s64): Likewise.
5760 (vld3_dup_u64): Likewise.
5761 (vld3_dup_f64): Likewise.
5762 (vld3_dup_s8): Likewise.
5763 (vld3_dup_p8): Likewise.
5764 (vld3_dup_s16): Likewise.
5765 (vld3_dup_p16): Likewise.
5766 (vld3_dup_s32): Likewise.
5767 (vld3_dup_u8): Likewise.
5768 (vld3_dup_u16): Likewise.
5769 (vld3_dup_u32): Likewise.
5770 (vld3_dup_f16): Likewise.
5771 (vld3_dup_f32): Likewise.
5772 (vld3_dup_p64): Likewise.
5773 (vld3q_dup_s8): Likewise.
5774 (vld3q_dup_p8): Likewise.
5775 (vld3q_dup_s16): Likewise.
5776 (vld3q_dup_p16): Likewise.
5777 (vld3q_dup_s32): Likewise.
5778 (vld3q_dup_s64): Likewise.
5779 (vld3q_dup_u8): Likewise.
5780 (vld3q_dup_u16): Likewise.
5781 (vld3q_dup_u32): Likewise.
5782 (vld3q_dup_u64): Likewise.
5783 (vld3q_dup_f16): Likewise.
5784 (vld3q_dup_f32): Likewise.
5785 (vld3q_dup_f64): Likewise.
5786 (vld3q_dup_p64): Likewise.
5787 (vld4_dup_s64): Likewise.
5788 (vld4_dup_u64): Likewise.
5789 (vld4_dup_f64): Likewise.
5790 (vld4_dup_s8): Likewise.
5791 (vld4_dup_p8): Likewise.
5792 (vld4_dup_s16): Likewise.
5793 (vld4_dup_p16): Likewise.
5794 (vld4_dup_s32): Likewise.
5795 (vld4_dup_u8): Likewise.
5796 (vld4_dup_u16): Likewise.
5797 (vld4_dup_u32): Likewise.
5798 (vld4_dup_f16): Likewise.
5799 (vld4_dup_f32): Likewise.
5800 (vld4_dup_p64): Likewise.
5801 (vld4q_dup_s8): Likewise.
5802 (vld4q_dup_p8): Likewise.
5803 (vld4q_dup_s16): Likewise.
5804 (vld4q_dup_p16): Likewise.
5805 (vld4q_dup_s32): Likewise.
5806 (vld4q_dup_s64): Likewise.
5807 (vld4q_dup_u8): Likewise.
5808 (vld4q_dup_u16): Likewise.
5809 (vld4q_dup_u32): Likewise.
5810 (vld4q_dup_u64): Likewise.
5811 (vld4q_dup_f16): Likewise.
5812 (vld4q_dup_f32): Likewise.
5813 (vld4q_dup_f64): Likewise.
5814 (vld4q_dup_p64): Likewise.
5815 (vld2_lane_u8): Likewise.
5816 (vld2_lane_u16): Likewise.
5817 (vld2_lane_u32): Likewise.
5818 (vld2_lane_u64): Likewise.
5819 (vld2_lane_s8): Likewise.
5820 (vld2_lane_s16): Likewise.
5821 (vld2_lane_s32): Likewise.
5822 (vld2_lane_s64): Likewise.
5823 (vld2_lane_f16): Likewise.
5824 (vld2_lane_f32): Likewise.
5825 (vld2_lane_f64): Likewise.
5826 (vld2_lane_p8): Likewise.
5827 (vld2_lane_p16): Likewise.
5828 (vld2_lane_p64): Likewise.
5829 (vld2q_lane_u8): Likewise.
5830 (vld2q_lane_u16): Likewise.
5831 (vld2q_lane_u32): Likewise.
5832 (vld2q_lane_u64): Likewise.
5833 (vld2q_lane_s8): Likewise.
5834 (vld2q_lane_s16): Likewise.
5835 (vld2q_lane_s32): Likewise.
5836 (vld2q_lane_s64): Likewise.
5837 (vld2q_lane_f16): Likewise.
5838 (vld2q_lane_f32): Likewise.
5839 (vld2q_lane_f64): Likewise.
5840 (vld2q_lane_p8): Likewise.
5841 (vld2q_lane_p16): Likewise.
5842 (vld2q_lane_p64): Likewise.
5843 (vld3_lane_u8): Likewise.
5844 (vld3_lane_u16): Likewise.
5845 (vld3_lane_u32): Likewise.
5846 (vld3_lane_u64): Likewise.
5847 (vld3_lane_s8): Likewise.
5848 (vld3_lane_s16): Likewise.
5849 (vld3_lane_s32): Likewise.
5850 (vld3_lane_s64): Likewise.
5851 (vld3_lane_f16): Likewise.
5852 (vld3_lane_f32): Likewise.
5853 (vld3_lane_f64): Likewise.
5854 (vld3_lane_p8): Likewise.
5855 (vld3_lane_p16): Likewise.
5856 (vld3_lane_p64): Likewise.
5857 (vld3q_lane_u8): Likewise.
5858 (vld3q_lane_u16): Likewise.
5859 (vld3q_lane_u32): Likewise.
5860 (vld3q_lane_u64): Likewise.
5861 (vld3q_lane_s8): Likewise.
5862 (vld3q_lane_s16): Likewise.
5863 (vld3q_lane_s32): Likewise.
5864 (vld3q_lane_s64): Likewise.
5865 (vld3q_lane_f16): Likewise.
5866 (vld3q_lane_f32): Likewise.
5867 (vld3q_lane_f64): Likewise.
5868 (vld3q_lane_p8): Likewise.
5869 (vld3q_lane_p16): Likewise.
5870 (vld3q_lane_p64): Likewise.
5871 (vld4_lane_u8): Likewise.
5872 (vld4_lane_u16): Likewise.
5873 (vld4_lane_u32): Likewise.
5874 (vld4_lane_u64): Likewise.
5875 (vld4_lane_s8): Likewise.
5876 (vld4_lane_s16): Likewise.
5877 (vld4_lane_s32): Likewise.
5878 (vld4_lane_s64): Likewise.
5879 (vld4_lane_f16): Likewise.
5880 (vld4_lane_f32): Likewise.
5881 (vld4_lane_f64): Likewise.
5882 (vld4_lane_p8): Likewise.
5883 (vld4_lane_p16): Likewise.
5884 (vld4_lane_p64): Likewise.
5885 (vld4q_lane_u8): Likewise.
5886 (vld4q_lane_u16): Likewise.
5887 (vld4q_lane_u32): Likewise.
5888 (vld4q_lane_u64): Likewise.
5889 (vld4q_lane_s8): Likewise.
5890 (vld4q_lane_s16): Likewise.
5891 (vld4q_lane_s32): Likewise.
5892 (vld4q_lane_s64): Likewise.
5893 (vld4q_lane_f16): Likewise.
5894 (vld4q_lane_f32): Likewise.
5895 (vld4q_lane_f64): Likewise.
5896 (vld4q_lane_p8): Likewise.
5897 (vld4q_lane_p16): Likewise.
5898 (vld4q_lane_p64): Likewise.
5899 (vqtbl2_s8): Likewise.
5900 (vqtbl2_u8): Likewise.
5901 (vqtbl2_p8): Likewise.
5902 (vqtbl2q_s8): Likewise.
5903 (vqtbl2q_u8): Likewise.
5904 (vqtbl2q_p8): Likewise.
5905 (vqtbl3_s8): Likewise.
5906 (vqtbl3_u8): Likewise.
5907 (vqtbl3_p8): Likewise.
5908 (vqtbl3q_s8): Likewise.
5909 (vqtbl3q_u8): Likewise.
5910 (vqtbl3q_p8): Likewise.
5911 (vqtbl4_s8): Likewise.
5912 (vqtbl4_u8): Likewise.
5913 (vqtbl4_p8): Likewise.
5914 (vqtbl4q_s8): Likewise.
5915 (vqtbl4q_u8): Likewise.
5916 (vqtbl4q_p8): Likewise.
5917 (vqtbx2_s8): Likewise.
5918 (vqtbx2_u8): Likewise.
5919 (vqtbx2_p8): Likewise.
5920 (vqtbx2q_s8): Likewise.
5921 (vqtbx2q_u8): Likewise.
5922 (vqtbx2q_p8): Likewise.
5923 (vqtbx3_s8): Likewise.
5924 (vqtbx3_u8): Likewise.
5925 (vqtbx3_p8): Likewise.
5926 (vqtbx3q_s8): Likewise.
5927 (vqtbx3q_u8): Likewise.
5928 (vqtbx3q_p8): Likewise.
5929 (vqtbx4_s8): Likewise.
5930 (vqtbx4_u8): Likewise.
5931 (vqtbx4_p8): Likewise.
5932 (vqtbx4q_s8): Likewise.
5933 (vqtbx4q_u8): Likewise.
5934 (vqtbx4q_p8): Likewise.
5935 (vst1_s64_x2): Likewise.
5936 (vst1_u64_x2): Likewise.
5937 (vst1_f64_x2): Likewise.
5938 (vst1_s8_x2): Likewise.
5939 (vst1_p8_x2): Likewise.
5940 (vst1_s16_x2): Likewise.
5941 (vst1_p16_x2): Likewise.
5942 (vst1_s32_x2): Likewise.
5943 (vst1_u8_x2): Likewise.
5944 (vst1_u16_x2): Likewise.
5945 (vst1_u32_x2): Likewise.
5946 (vst1_f16_x2): Likewise.
5947 (vst1_f32_x2): Likewise.
5948 (vst1_p64_x2): Likewise.
5949 (vst1q_s8_x2): Likewise.
5950 (vst1q_p8_x2): Likewise.
5951 (vst1q_s16_x2): Likewise.
5952 (vst1q_p16_x2): Likewise.
5953 (vst1q_s32_x2): Likewise.
5954 (vst1q_s64_x2): Likewise.
5955 (vst1q_u8_x2): Likewise.
5956 (vst1q_u16_x2): Likewise.
5957 (vst1q_u32_x2): Likewise.
5958 (vst1q_u64_x2): Likewise.
5959 (vst1q_f16_x2): Likewise.
5960 (vst1q_f32_x2): Likewise.
5961 (vst1q_f64_x2): Likewise.
5962 (vst1q_p64_x2): Likewise.
5963 (vst1_s64_x3): Likewise.
5964 (vst1_u64_x3): Likewise.
5965 (vst1_f64_x3): Likewise.
5966 (vst1_s8_x3): Likewise.
5967 (vst1_p8_x3): Likewise.
5968 (vst1_s16_x3): Likewise.
5969 (vst1_p16_x3): Likewise.
5970 (vst1_s32_x3): Likewise.
5971 (vst1_u8_x3): Likewise.
5972 (vst1_u16_x3): Likewise.
5973 (vst1_u32_x3): Likewise.
5974 (vst1_f16_x3): Likewise.
5975 (vst1_f32_x3): Likewise.
5976 (vst1_p64_x3): Likewise.
5977 (vst1q_s8_x3): Likewise.
5978 (vst1q_p8_x3): Likewise.
5979 (vst1q_s16_x3): Likewise.
5980 (vst1q_p16_x3): Likewise.
5981 (vst1q_s32_x3): Likewise.
5982 (vst1q_s64_x3): Likewise.
5983 (vst1q_u8_x3): Likewise.
5984 (vst1q_u16_x3): Likewise.
5985 (vst1q_u32_x3): Likewise.
5986 (vst1q_u64_x3): Likewise.
5987 (vst1q_f16_x3): Likewise.
5988 (vst1q_f32_x3): Likewise.
5989 (vst1q_f64_x3): Likewise.
5990 (vst1q_p64_x3): Likewise.
5991 (vst1_s8_x4): Likewise.
5992 (vst1q_s8_x4): Likewise.
5993 (vst1_s16_x4): Likewise.
5994 (vst1q_s16_x4): Likewise.
5995 (vst1_s32_x4): Likewise.
5996 (vst1q_s32_x4): Likewise.
5997 (vst1_u8_x4): Likewise.
5998 (vst1q_u8_x4): Likewise.
5999 (vst1_u16_x4): Likewise.
6000 (vst1q_u16_x4): Likewise.
6001 (vst1_u32_x4): Likewise.
6002 (vst1q_u32_x4): Likewise.
6003 (vst1_f16_x4): Likewise.
6004 (vst1q_f16_x4): Likewise.
6005 (vst1_f32_x4): Likewise.
6006 (vst1q_f32_x4): Likewise.
6007 (vst1_p8_x4): Likewise.
6008 (vst1q_p8_x4): Likewise.
6009 (vst1_p16_x4): Likewise.
6010 (vst1q_p16_x4): Likewise.
6011 (vst1_s64_x4): Likewise.
6012 (vst1_u64_x4): Likewise.
6013 (vst1_p64_x4): Likewise.
6014 (vst1q_s64_x4): Likewise.
6015 (vst1q_u64_x4): Likewise.
6016 (vst1q_p64_x4): Likewise.
6017 (vst1_f64_x4): Likewise.
6018 (vst1q_f64_x4): Likewise.
6019 (vst2_s64): Likewise.
6020 (vst2_u64): Likewise.
6021 (vst2_f64): Likewise.
6022 (vst2_s8): Likewise.
6023 (vst2_p8): Likewise.
6024 (vst2_s16): Likewise.
6025 (vst2_p16): Likewise.
6026 (vst2_s32): Likewise.
6027 (vst2_u8): Likewise.
6028 (vst2_u16): Likewise.
6029 (vst2_u32): Likewise.
6030 (vst2_f16): Likewise.
6031 (vst2_f32): Likewise.
6032 (vst2_p64): Likewise.
6033 (vst2q_s8): Likewise.
6034 (vst2q_p8): Likewise.
6035 (vst2q_s16): Likewise.
6036 (vst2q_p16): Likewise.
6037 (vst2q_s32): Likewise.
6038 (vst2q_s64): Likewise.
6039 (vst2q_u8): Likewise.
6040 (vst2q_u16): Likewise.
6041 (vst2q_u32): Likewise.
6042 (vst2q_u64): Likewise.
6043 (vst2q_f16): Likewise.
6044 (vst2q_f32): Likewise.
6045 (vst2q_f64): Likewise.
6046 (vst2q_p64): Likewise.
6047 (vst3_s64): Likewise.
6048 (vst3_u64): Likewise.
6049 (vst3_f64): Likewise.
6050 (vst3_s8): Likewise.
6051 (vst3_p8): Likewise.
6052 (vst3_s16): Likewise.
6053 (vst3_p16): Likewise.
6054 (vst3_s32): Likewise.
6055 (vst3_u8): Likewise.
6056 (vst3_u16): Likewise.
6057 (vst3_u32): Likewise.
6058 (vst3_f16): Likewise.
6059 (vst3_f32): Likewise.
6060 (vst3_p64): Likewise.
6061 (vst3q_s8): Likewise.
6062 (vst3q_p8): Likewise.
6063 (vst3q_s16): Likewise.
6064 (vst3q_p16): Likewise.
6065 (vst3q_s32): Likewise.
6066 (vst3q_s64): Likewise.
6067 (vst3q_u8): Likewise.
6068 (vst3q_u16): Likewise.
6069 (vst3q_u32): Likewise.
6070 (vst3q_u64): Likewise.
6071 (vst3q_f16): Likewise.
6072 (vst3q_f32): Likewise.
6073 (vst3q_f64): Likewise.
6074 (vst3q_p64): Likewise.
6075 (vst4_s64): Likewise.
6076 (vst4_u64): Likewise.
6077 (vst4_f64): Likewise.
6078 (vst4_s8): Likewise.
6079 (vst4_p8): Likewise.
6080 (vst4_s16): Likewise.
6081 (vst4_p16): Likewise.
6082 (vst4_s32): Likewise.
6083 (vst4_u8): Likewise.
6084 (vst4_u16): Likewise.
6085 (vst4_u32): Likewise.
6086 (vst4_f16): Likewise.
6087 (vst4_f32): Likewise.
6088 (vst4_p64): Likewise.
6089 (vst4q_s8): Likewise.
6090 (vst4q_p8): Likewise.
6091 (vst4q_s16): Likewise.
6092 (vst4q_p16): Likewise.
6093 (vst4q_s32): Likewise.
6094 (vst4q_s64): Likewise.
6095 (vst4q_u8): Likewise.
6096 (vst4q_u16): Likewise.
6097 (vst4q_u32): Likewise.
6098 (vst4q_u64): Likewise.
6099 (vst4q_f16): Likewise.
6100 (vst4q_f32): Likewise.
6101 (vst4q_f64): Likewise.
6102 (vst4q_p64): Likewise.
6103 (vtbx4_s8): Likewise.
6104 (vtbx4_u8): Likewise.
6105 (vtbx4_p8): Likewise.
6106 (vld1_bf16_x2): Likewise.
6107 (vld1q_bf16_x2): Likewise.
6108 (vld1_bf16_x3): Likewise.
6109 (vld1q_bf16_x3): Likewise.
6110 (vld1_bf16_x4): Likewise.
6111 (vld1q_bf16_x4): Likewise.
6112 (vld2_bf16): Likewise.
6113 (vld2q_bf16): Likewise.
6114 (vld2_dup_bf16): Likewise.
6115 (vld2q_dup_bf16): Likewise.
6116 (vld3_bf16): Likewise.
6117 (vld3q_bf16): Likewise.
6118 (vld3_dup_bf16): Likewise.
6119 (vld3q_dup_bf16): Likewise.
6120 (vld4_bf16): Likewise.
6121 (vld4q_bf16): Likewise.
6122 (vld4_dup_bf16): Likewise.
6123 (vld4q_dup_bf16): Likewise.
6124 (vst1_bf16_x2): Likewise.
6125 (vst1q_bf16_x2): Likewise.
6126 (vst1_bf16_x3): Likewise.
6127 (vst1q_bf16_x3): Likewise.
6128 (vst1_bf16_x4): Likewise.
6129 (vst1q_bf16_x4): Likewise.
6130 (vst2_bf16): Likewise.
6131 (vst2q_bf16): Likewise.
6132 (vst3_bf16): Likewise.
6133 (vst3q_bf16): Likewise.
6134 (vst4_bf16): Likewise.
6135 (vst4q_bf16): Likewise.
6136 (vld2_lane_bf16): Likewise.
6137 (vld2q_lane_bf16): Likewise.
6138 (vld3_lane_bf16): Likewise.
6139 (vld3q_lane_bf16): Likewise.
6140 (vld4_lane_bf16): Likewise.
6141 (vld4q_lane_bf16): Likewise.
6142 (vst2_lane_bf16): Likewise.
6143 (vst2q_lane_bf16): Likewise.
6144 (vst3_lane_bf16): Likewise.
6145 (vst3q_lane_bf16): Likewise.
6146 (vst4_lane_bf16): Likewise.
6147 (vst4q_lane_bf16): Likewise.
6148 * config/aarch64/geniterators.sh: Modify iterator regex to
6149 match new vector-tuple modes.
6150 * config/aarch64/iterators.md (insn_count): Extend mode
6151 attribute with vector-tuple type information.
6153 (Vendreg): Likewise.
6156 (VSTRUCT_2D): New mode iterator.
6157 (VSTRUCT_2DNX): Likewise.
6158 (VSTRUCT_2DX): Likewise.
6159 (VSTRUCT_2Q): Likewise.
6160 (VSTRUCT_2QD): Likewise.
6161 (VSTRUCT_3D): Likewise.
6162 (VSTRUCT_3DNX): Likewise.
6163 (VSTRUCT_3DX): Likewise.
6164 (VSTRUCT_3Q): Likewise.
6165 (VSTRUCT_3QD): Likewise.
6166 (VSTRUCT_4D): Likewise.
6167 (VSTRUCT_4DNX): Likewise.
6168 (VSTRUCT_4DX): Likewise.
6169 (VSTRUCT_4Q): Likewise.
6170 (VSTRUCT_4QD): Likewise.
6171 (VSTRUCT_D): Likewise.
6172 (VSTRUCT_Q): Likewise.
6173 (VSTRUCT_QD): Likewise.
6174 (VSTRUCT_ELT): New mode attribute.
6175 (vstruct_elt): Likewise.
6176 * genmodes.c (VECTOR_MODE): Add default prefix and order
6178 (VECTOR_MODE_WITH_PREFIX): Define.
6179 (make_vector_mode): Add mode prefix and order parameters.
6181 2021-11-04 Jonathan Wright <jonathan.wright@arm.com>
6183 * expmed.c (extract_bit_field_1): Ensure modes are tieable.
6185 2021-11-04 Jonathan Wright <jonathan.wright@arm.com>
6187 * expr.c (emit_group_load_1): Remove historic workaround.
6189 2021-11-04 Jonathan Wright <jonathan.wright@arm.com>
6191 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
6192 Factor out main loop to...
6193 (aarch64_init_simd_builtin_functions): This new function.
6194 (register_tuple_type): Define.
6195 (aarch64_scalar_builtin_type_p): Define.
6196 (handle_arm_neon_h): Define.
6197 * config/aarch64/aarch64-c.c (aarch64_pragma_aarch64): Handle
6198 pragma for arm_neon.h.
6199 * config/aarch64/aarch64-protos.h (aarch64_advsimd_struct_mode_p):
6201 (handle_arm_neon_h): Likewise.
6202 * config/aarch64/aarch64.c (aarch64_advsimd_struct_mode_p):
6203 Remove static modifier.
6204 * config/aarch64/arm_neon.h (target): Remove Neon vector
6205 structure type definitions.
6207 2021-11-04 Aldy Hernandez <aldyh@redhat.com>
6209 PR tree-optimization/102943
6210 * gimple-range-path.cc (path_range_query::range_on_path_entry):
6211 Prefer range_of_expr unless there are no statements in the BB.
6213 2021-11-04 Aldy Hernandez <aldyh@redhat.com>
6215 PR tree-optimization/102943
6216 * tree-ssa-threadbackward.c (back_threader::find_paths_to_names):
6217 Avoid duplicate calculation of paths.
6219 2021-11-04 Aldy Hernandez <aldyh@redhat.com>
6221 PR tree-optimization/102943
6222 * gimple-range-path.cc (path_range_query::compute_phi_relations):
6223 Only compute relations for SSA names in the import list.
6224 (path_range_query::compute_outgoing_relations): Same.
6225 * gimple-range-path.h (path_range_query::import_p): New.
6227 2021-11-04 Richard Biener <rguenther@suse.de>
6229 PR rtl-optimization/103075
6230 * simplify-rtx.c (exact_int_to_float_conversion_p): Return
6231 false for a VOIDmode operand.
6233 2021-11-04 Richard Sandiford <richard.sandiford@arm.com>
6235 * config/aarch64/aarch64.c (aarch64_vector_costs): Make member
6236 variables private and add "m_" to their names. Remove is_loop.
6237 (aarch64_record_potential_advsimd_unrolling): Replace with...
6238 (aarch64_vector_costs::record_potential_advsimd_unrolling): ...this.
6239 (aarch64_analyze_loop_vinfo): Replace with...
6240 (aarch64_vector_costs::analyze_loop_vinfo): ...this.
6241 Move initialization of (m_)vec_flags to add_stmt_cost.
6242 (aarch64_analyze_bb_vinfo): Delete.
6243 (aarch64_count_ops): Replace with...
6244 (aarch64_vector_costs::count_ops): ...this.
6245 (aarch64_vector_costs::add_stmt_cost): Set m_vec_flags,
6246 using m_costing_for_scalar to test whether we're costing
6247 scalar or vector code.
6248 (aarch64_adjust_body_cost_sve): Replace with...
6249 (aarch64_vector_costs::adjust_body_cost_sve): ...this.
6250 (aarch64_adjust_body_cost): Replace with...
6251 (aarch64_vector_costs::adjust_body_cost): ...this.
6252 (aarch64_vector_costs::finish_cost): Use m_vinfo instead of is_loop.
6254 2021-11-04 Richard Sandiford <richard.sandiford@arm.com>
6256 * target.def (targetm.vectorize.init_cost): Replace with...
6257 (targetm.vectorize.create_costs): ...this.
6258 (targetm.vectorize.add_stmt_cost): Delete.
6259 (targetm.vectorize.finish_cost): Likewise.
6260 (targetm.vectorize.destroy_cost_data): Likewise.
6261 * doc/tm.texi.in (TARGET_VECTORIZE_INIT_COST): Replace with...
6262 (TARGET_VECTORIZE_CREATE_COSTS): ...this.
6263 (TARGET_VECTORIZE_ADD_STMT_COST): Delete.
6264 (TARGET_VECTORIZE_FINISH_COST): Likewise.
6265 (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
6266 * doc/tm.texi: Regenerate.
6267 * tree-vectorizer.h (vec_info::vec_info): Remove target_cost_data
6269 (vec_info::target_cost_data): Change from a void * to a vector_costs *.
6270 (vector_costs): New class.
6271 (init_cost): Take a vec_info and return a vector_costs.
6272 (dump_stmt_cost): Remove data parameter.
6273 (add_stmt_cost): Replace vinfo and data parameters with a vector_costs.
6274 (add_stmt_costs): Likewise.
6275 (finish_cost): Replace data parameter with a vector_costs.
6276 (destroy_cost_data): Delete.
6277 * tree-vectorizer.c (dump_stmt_cost): Remove data argument and
6279 (vec_info::vec_info): Remove the target_cost_data parameter and
6280 initialize the member variable to null instead.
6281 (vec_info::~vec_info): Delete target_cost_data instead of calling
6283 (vector_costs::add_stmt_cost): New function.
6284 (vector_costs::finish_cost): Likewise.
6285 (vector_costs::record_stmt_cost): Likewise.
6286 (vector_costs::adjust_cost_for_freq): Likewise.
6287 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Update
6288 call to vec_info::vec_info.
6289 (vect_compute_single_scalar_iteration_cost): Update after above
6290 changes to costing interface.
6291 (vect_analyze_loop_operations): Likewise.
6292 (vect_estimate_min_profitable_iters): Likewise.
6293 (vect_analyze_loop_2): Initialize LOOP_VINFO_TARGET_COST_DATA
6294 at the start_over point, where it needs to be recreated after
6295 trying without slp. Update retry code accordingly.
6296 * tree-vect-slp.c (_bb_vec_info::_bb_vec_info): Update call
6297 to vec_info::vec_info.
6298 (vect_slp_analyze_operation): Update after above changes to costing
6300 (vect_bb_vectorization_profitable_p): Likewise.
6301 * targhooks.h (default_init_cost): Replace with...
6302 (default_vectorize_create_costs): ...this.
6303 (default_add_stmt_cost): Delete.
6304 (default_finish_cost, default_destroy_cost_data): Likewise.
6305 * targhooks.c (default_init_cost): Replace with...
6306 (default_vectorize_create_costs): ...this.
6307 (default_add_stmt_cost): Delete, moving logic to vector_costs instead.
6308 (default_finish_cost, default_destroy_cost_data): Delete.
6309 * config/aarch64/aarch64.c (aarch64_vector_costs): Inherit from
6310 vector_costs. Add a constructor.
6311 (aarch64_init_cost): Replace with...
6312 (aarch64_vectorize_create_costs): ...this.
6313 (aarch64_add_stmt_cost): Replace with...
6314 (aarch64_vector_costs::add_stmt_cost): ...this. Use record_stmt_cost
6315 to adjust the cost for inner loops.
6316 (aarch64_finish_cost): Replace with...
6317 (aarch64_vector_costs::finish_cost): ...this.
6318 (aarch64_destroy_cost_data): Delete.
6319 (TARGET_VECTORIZE_INIT_COST): Replace with...
6320 (TARGET_VECTORIZE_CREATE_COSTS): ...this.
6321 (TARGET_VECTORIZE_ADD_STMT_COST): Delete.
6322 (TARGET_VECTORIZE_FINISH_COST): Likewise.
6323 (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
6324 * config/i386/i386.c (ix86_vector_costs): New structure.
6325 (ix86_init_cost): Replace with...
6326 (ix86_vectorize_create_costs): ...this.
6327 (ix86_add_stmt_cost): Replace with...
6328 (ix86_vector_costs::add_stmt_cost): ...this. Use adjust_cost_for_freq
6329 to adjust the cost for inner loops.
6330 (ix86_finish_cost, ix86_destroy_cost_data): Delete.
6331 (TARGET_VECTORIZE_INIT_COST): Replace with...
6332 (TARGET_VECTORIZE_CREATE_COSTS): ...this.
6333 (TARGET_VECTORIZE_ADD_STMT_COST): Delete.
6334 (TARGET_VECTORIZE_FINISH_COST): Likewise.
6335 (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
6336 * config/rs6000/rs6000.c (TARGET_VECTORIZE_INIT_COST): Replace with...
6337 (TARGET_VECTORIZE_CREATE_COSTS): ...this.
6338 (TARGET_VECTORIZE_ADD_STMT_COST): Delete.
6339 (TARGET_VECTORIZE_FINISH_COST): Likewise.
6340 (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
6341 (rs6000_cost_data): Inherit from vector_costs.
6342 Add a constructor. Drop loop_info, cost and costing_for_scalar
6343 in favor of the corresponding vector_costs member variables.
6344 Add "m_" to the names of the remaining member variables and
6346 (rs6000_density_test): Replace with...
6347 (rs6000_cost_data::density_test): ...this.
6348 (rs6000_init_cost): Replace with...
6349 (rs6000_vectorize_create_costs): ...this.
6350 (rs6000_update_target_cost_per_stmt): Replace with...
6351 (rs6000_cost_data::update_target_cost_per_stmt): ...this.
6352 (rs6000_add_stmt_cost): Replace with...
6353 (rs6000_cost_data::add_stmt_cost): ...this. Use adjust_cost_for_freq
6354 to adjust the cost for inner loops.
6355 (rs6000_adjust_vect_cost_per_loop): Replace with...
6356 (rs6000_cost_data::adjust_vect_cost_per_loop): ...this.
6357 (rs6000_finish_cost): Replace with...
6358 (rs6000_cost_data::finish_cost): ...this. Group loop code
6359 into a single if statement and pass the loop_vinfo down to
6361 (rs6000_destroy_cost_data): Delete.
6363 2021-11-04 Aldy Hernandez <aldyh@redhat.com>
6365 PR tree-optimization/103062
6366 PR tree-optimization/103062
6367 * value-pointer-equiv.cc (ssa_equiv_stack::ssa_equiv_stack):
6368 Increase size of allocation by 1.
6369 (ssa_equiv_stack::push_replacement): Grow as needed.
6370 (ssa_equiv_stack::get_replacement): Same.
6371 (pointer_equiv_analyzer::pointer_equiv_analyzer): Same.
6372 (pointer_equiv_analyzer::~pointer_equiv_analyzer): Remove delete.
6373 (pointer_equiv_analyzer::set_global_equiv): Grow as needed.
6374 (pointer_equiv_analyzer::get_equiv): Same.
6375 (pointer_equiv_analyzer::get_equiv_expr): Remove const.
6376 * value-pointer-equiv.h (class pointer_equiv_analyzer): Remove
6377 const markers. Use auto_vec instead of tree *.
6379 2021-11-04 Richard Biener <rguenther@suse.de>
6381 * tree-ssa-sccvn.c (vn_nary_op_insert_into): Remove always
6382 true parameter and inline valueization.
6383 (vn_nary_op_lookup_1): Inline valueization from ...
6384 (vn_nary_op_compute_hash): ... here and remove it here.
6385 * tree-ssa-pre.c (phi_translate_1): Do not valueize
6386 before vn_nary_lookup_pieces.
6387 (get_representative_for): Mark created SSA representatives
6390 2021-11-04 Richard Sandiford <richard.sandiford@arm.com>
6392 * simplify-rtx.c (simplify_context::simplify_gen_vec_select): Assert
6393 that the operand has a vector mode. Use subreg_lowpart_offset
6394 to test whether an index corresponds to the low part.
6396 2021-11-04 Richard Sandiford <richard.sandiford@arm.com>
6398 * read-rtl.c: Remove dead !GENERATOR_FILE block.
6399 * read-rtl-function.c (function_reader::consolidate_singletons):
6400 Generate canonical CONST_VECTORs.
6402 2021-11-04 liuhongt <hongtao.liu@intel.com>
6405 * config/i386/predicates.md (reg_or_notreg_operand): Rename to ..
6406 (regmem_or_bitnot_regmem_operand): .. and extend to handle
6408 * config/i386/sse.md (*<avx512>_vpternlog<mode>_1): Force_reg
6409 the operands which are required to be register_operand.
6410 (*<avx512>_vpternlog<mode>_2): Ditto.
6411 (*<avx512>_vpternlog<mode>_3): Ditto.
6412 (*<avx512>_vternlog<mode>_all): Disallow embeded broadcast for
6413 vector HFmodes since it's not a real AVX512FP16 instruction.
6415 2021-11-04 liuhongt <hongtao.liu@intel.com>
6418 * match.pd: simplify (trunc)copysign((extend)a, (extend)b) to
6419 .COPYSIGN (a,b) when a and b are same type as the truncation
6420 type and has less precision than extend type.
6422 2021-11-04 Richard Biener <rguenther@suse.de>
6424 * doc/generic.texi: Update TARGET_MEM_REF and MEM_REF
6427 2021-11-04 Hongyu Wang <hongyu.wang@intel.com>
6429 * config/i386/sse.md (VI2_AVX512VNNIBW): New mode iterator.
6430 (VI1_AVX512VNNI): Likewise.
6431 (SDOT_VPDP_SUF): New mode_attr.
6434 (sdot_prod<mode>): Use VI2_AVX512F iterator, expand to
6435 vpdpwssd when VNNI targets available.
6436 (usdot_prod<mode>): New expander for vector QImode.
6438 2021-11-04 Hongyu Wang <hongyu.wang@intel.com>
6440 * config/i386/amxtileintrin.h (_tile_loadd_internal): Add
6441 parentheses to base and stride.
6442 (_tile_stream_loadd_internal): Likewise.
6443 (_tile_stored_internal): Likewise.
6445 2021-11-03 Maciej W. Rozycki <macro@embecosm.com>
6447 * config/riscv/riscv.c (riscv_class_max_nregs): Swap the
6448 arguments to `reg_class_subset_p'.
6450 2021-11-03 Joseph Myers <joseph@codesourcery.com>
6453 * fold-const.c (fold_init): New function.
6454 * fold-const.h (fold_init): New prototype.
6456 2021-11-03 Andrew MacLeod <amacleod@redhat.com>
6458 * params.opt (param_vrp2_mode): Make ranger the default for VRP2.
6460 2021-11-03 Andrew MacLeod <amacleod@redhat.com>
6462 * gimple-range-fold.cc (fold_using_range::range_of_phi): Don't import
6463 a range from edge if arg == phidef.
6465 2021-11-03 Andrew MacLeod <amacleod@redhat.com>
6467 * gimple-range-fold.cc (fold_using_range::range_of_builtin_call): Test
6468 for constant before any other processing.
6470 2021-11-03 Andrew MacLeod <amacleod@redhat.com>
6472 * flag-types.h (RANGER_DEBUG_ALL): Fix values.
6474 2021-11-03 Andrew MacLeod <amacleod@redhat.com>
6476 * gimple-range.cc (gimple_ranger::gimple_ranger): Initialize current_bb.
6477 (gimple_ranger::range_of_expr): Pick up range_on_entry when there is
6478 no explcit context and current_bb is set.
6479 (gimple_ranger::fold_stmt): New.
6480 * gimple-range.h (current_bb, fold_stmt): New.
6481 * tree-vrp.c (rvrp_folder::fold_stmt): Call ranger's fold_stmt.
6483 2021-11-03 Richard Biener <rguenther@suse.de>
6485 PR tree-optimization/102970
6486 * tree-ssa-pre.c (phi_translate_1): Drop clique and base
6487 when translating a MEM_REF over a backedge.
6489 2021-11-03 Philipp Tomsich <philipp.tomsich@vrull.eu>
6491 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New Ampere-1 core.
6492 * config/aarch64/aarch64-tune.md: Regenerate.
6493 * config/aarch64/aarch64-cost-tables.h: Add extra costs for Ampere-1.
6494 * config/aarch64/aarch64.c: Add tuning structures for Ampere-1.
6495 * doc/invoke.texi: Add documentation for Ampere-1 core.
6497 2021-11-03 Wilco Dijkstra <wdijkstr@arm.com>
6499 * config/aarch64/aarch64.md (movsi): Add alternative for GOT accesses.
6501 (ldr_got_small_<mode>): Remove pattern.
6502 (ldr_got_small_sidi): Likewise.
6503 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Keep
6504 GOT accesses as moves.
6505 (aarch64_print_operand): Correctly print got_lo12 in L specifier.
6506 (aarch64_mov_operand_p): Make GOT accesses valid move operands.
6507 * config/aarch64/constraints.md: Add new constraint Usw for GOT access.
6509 2021-11-03 Martin Liska <mliska@suse.cz>
6511 * gcov.c (read_line): Remove dead variable.
6513 2021-11-03 Martin Liska <mliska@suse.cz>
6516 * ipa-fnsummary.c (edge_predicate_pool): Rename predicate class to ipa_predicate.
6517 (ipa_fn_summary::account_size_time): Likewise.
6518 (edge_set_predicate): Likewise.
6519 (set_hint_predicate): Likewise.
6520 (add_freqcounting_predicate): Likewise.
6521 (evaluate_conditions_for_known_args): Likewise.
6522 (evaluate_properties_for_edge): Likewise.
6523 (remap_freqcounting_preds_after_dup): Likewise.
6524 (ipa_fn_summary_t::duplicate): Likewise.
6525 (set_cond_stmt_execution_predicate): Likewise.
6526 (set_switch_stmt_execution_predicate): Likewise.
6527 (compute_bb_predicates): Likewise.
6528 (will_be_nonconstant_expr_predicate): Likewise.
6529 (will_be_nonconstant_predicate): Likewise.
6530 (phi_result_unknown_predicate): Likewise.
6531 (predicate_for_phi_result): Likewise.
6532 (analyze_function_body): Likewise.
6533 (compute_fn_summary): Likewise.
6534 (summarize_calls_size_and_time): Likewise.
6535 (estimate_calls_size_and_time): Likewise.
6536 (ipa_call_context::estimate_size_and_time): Likewise.
6537 (remap_edge_summaries): Likewise.
6538 (remap_freqcounting_predicate): Likewise.
6539 (ipa_merge_fn_summary_after_inlining): Likewise.
6540 (ipa_update_overall_fn_summary): Likewise.
6541 (read_ipa_call_summary): Likewise.
6542 (inline_read_section): Likewise.
6543 * ipa-fnsummary.h (struct ipa_freqcounting_predicate): Likewise.
6544 * ipa-predicate.c (predicate::add_clause): Likewise.
6545 (ipa_predicate::add_clause): Likewise.
6546 (predicate::or_with): Likewise.
6547 (ipa_predicate::or_with): Likewise.
6548 (predicate::evaluate): Likewise.
6549 (ipa_predicate::evaluate): Likewise.
6550 (predicate::probability): Likewise.
6551 (ipa_predicate::probability): Likewise.
6552 (dump_condition): Likewise.
6553 (dump_clause): Likewise.
6554 (predicate::dump): Likewise.
6555 (ipa_predicate::dump): Likewise.
6556 (predicate::debug): Likewise.
6557 (ipa_predicate::debug): Likewise.
6558 (predicate::remap_after_duplication): Likewise.
6559 (ipa_predicate::remap_after_duplication): Likewise.
6560 (predicate::remap_after_inlining): Likewise.
6561 (ipa_predicate::remap_after_inlining): Likewise.
6562 (predicate::stream_in): Likewise.
6563 (ipa_predicate::stream_in): Likewise.
6564 (predicate::stream_out): Likewise.
6565 (ipa_predicate::stream_out): Likewise.
6566 (add_condition): Likewise.
6567 * ipa-predicate.h (class predicate): Likewise.
6568 (class ipa_predicate): Likewise.
6569 (add_condition): Likewise.
6571 2021-11-03 Richard Biener <rguenther@suse.de>
6573 * bitmap.h (bitmap_bit_p): Change the return type to bool.
6574 * bitmap.c (bitmap_bit_p): Likewise.
6575 * sbitmap.h (bitmap_bit_p): Likewise.
6576 (bitmap_set_bit): Return whether the bit changed.
6577 (bitmap_clear_bit): Likewise.
6578 * tree-ssa.c (verify_vssa): Make use of the changed state
6579 from bitmap_set_bit.
6581 2021-11-03 Richard Biener <rguenther@suse.de>
6583 PR middle-end/103033
6584 * internal-fn.c (expand_DEFERRED_INIT): Elide the
6585 native_interpret_expr path in favor of folding the
6586 VIEW_CONVERT_EXPR generated when punning the RHS.
6588 2021-11-03 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
6590 * config/s390/s390.c (s390_loop_unroll_adjust): In case of early
6593 2021-11-03 Jan Hubicka <hubicka@ucw.cz>
6596 * ipa-modref.c (callee_to_caller_flags): New function.
6597 (modref_eaf_analysis::analyze_ssa_name): Use it.
6598 (ipa_merge_modref_summary_after_inlining): Fix whitespace.
6600 2021-11-02 Jan Hubicka <hubicka@ucw.cz>
6602 * ipa-modref.c (modref_eaf_analysis::analyze_ssa_name): Revert
6605 2021-11-02 Roger Sayle <roger@nextmovesoftware.com>
6606 Uroš Bizjak <ubizjak@gmail.com>
6608 * config/i386/i386.md (<any_rotate>ti3): Provide expansion for
6609 rotations by non-constant amounts.
6611 2021-11-02 Jan Hubicka <hubicka@ucw.cz>
6613 * ipa-modref.c: Fix anonymous namespace placement.
6614 (class modref_eaf_analysis): New class.
6615 (analyze_ssa_name_flags): Turn to ...
6616 (modref_eaf_analysis::analyze_ssa_name): ... this one.
6617 (merge_call_lhs_flags): Turn to ...
6618 (modref_eaf_analysis::merge_call_lhs_flags): .. this one
6619 (modref_eaf_analysis::merge_with_ssa_name): New member function.
6620 (record_escape_points): Turn to ...
6621 (modref_eaf_analysis::record_escape_points): ... this one.
6622 (analyze_parms): Updat
6623 (ipa_merge_modref_summary_after_inlining): Move to the end of file.
6625 2021-11-02 Jan Hubicka <hubicka@ucw.cz>
6627 * gimple.c (gimple_call_static_chain_flags): New function.
6628 * gimple.h (gimple_call_static_chain_flags): Declare
6629 * ipa-modref.c (modref_summary::modref_summary): Initialize
6631 (modref_summary_lto::modref_summary_lto): Likewise.
6632 (modref_summary::useful_p): Test static_chain_flags.
6633 (modref_summary_lto::useful_p): Likewise.
6634 (struct modref_summary_lto): Add static_chain_flags.
6635 (modref_summary::dump): Dump static_chain_flags.
6636 (modref_summary_lto::dump): Likewise.
6637 (struct escape_point): Add static_cahin_arg.
6638 (analyze_ssa_name_flags): Use gimple_call_static_chain_flags.
6639 (analyze_parms): Handle static chains.
6640 (modref_summaries::duplicate): Duplicate static_chain_flags.
6641 (modref_summaries_lto::duplicate): Likewise.
6642 (modref_write): Stream static_chain_flags.
6643 (read_section): Likewise.
6644 (modref_merge_call_site_flags): Handle static_chain_flags.
6645 * ipa-modref.h (struct modref_summary): Add static_chain_flags.
6646 * tree-ssa-structalias.c (handle_rhs_call): Use
6647 gimple_static_chain_flags.
6649 2021-11-02 Richard Biener <rguenther@suse.de>
6651 PR tree-optimization/103029
6652 * tree-vect-loop-manip.c (vect_loop_versioning): Ensure
6653 the PHI nodes in the loop maintain their original operand
6656 2021-11-02 Jan Hubicka <hubicka@ucw.cz>
6658 * tree-core.h (EAF_NOT_RETURNED_DIRECTLY): New flag.
6659 (EAF_NOREAD): Renumber.
6660 * ipa-modref.c (dump_eaf_flags): Dump EAF_NOT_RETURNED_DIRECTLY.
6661 (remove_useless_eaf_flags): Handle EAF_NOT_RETURNED_DIRECTLY
6662 (deref_flags): Likewise.
6663 (modref_lattice::init): Likewise.
6664 (modref_lattice::merge): Likewise.
6665 (merge_call_lhs_flags): Likewise.
6666 (analyze_ssa_name_flags): Likewise.
6667 (modref_merge_call_site_flags): Likewise.
6668 * tree-ssa-structalias.c (handle_call_arg): Likewise.
6670 2021-11-02 Maciej W. Rozycki <macro@embecosm.com>
6672 * config/riscv/riscv.c (riscv_rtx_costs): Correct a CONST_INT_P
6673 check and remove an unused local variable with shNadd/shNadd.uw
6676 2021-11-02 Tamar Christina <tamar.christina@arm.com>
6678 PR tree-optimization/103007
6679 * tree-vect-slp-patterns.c (complex_fms_pattern::matches): Add elem
6682 2021-11-02 Richard Biener <rguenther@suse.de>
6684 PR middle-end/103038
6685 * fold-const.c (native_interpret_expr): Handle OFFSET_TYPE.
6686 (can_native_interpret_type_p): Likewise.
6687 * internal-fn.c (expand_DEFERRED_INIT): View-convert the
6688 RHS if the LHS is an SSA name.
6690 2021-11-02 Richard Sandiford <richard.sandiford@arm.com>
6692 * langhooks.h (lang_hooks_for_types::simulate_record_decl): New hook.
6693 * langhooks-def.h (lhd_simulate_record_decl): Declare.
6694 (LANG_HOOKS_SIMULATE_RECORD_DECL): Define.
6695 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Include it.
6696 * langhooks.c (lhd_simulate_record_decl): New function.
6698 2021-11-02 Jakub Jelinek <jakub@redhat.com>
6701 * config/i386/i386.c (ix86_vector_mode_supported_p): Reject vector
6702 modes with TImode inner mode if 32-bit.
6704 2021-11-02 liuhongt <hongtao.liu@intel.com>
6706 * doc/sourcebuild.texi (vect_slp_v4qi_store_unalign,
6707 vect_slp_v2hi_store_unalign, vect_slp_v4hi_store_unalign,
6708 vect_slp_v4si_store_unalign): Document efficient target.
6709 (vect_slp_v4qi_store_unalign_1, vect_slp_v8qi_store_unalign_1,
6710 vect_slp_v16qi_store_unalign_1): Ditto.
6711 (vect_slp_v2hi_store_align,vect_slp_v2qi_store_align,
6712 vect_slp_v2si_store_align, vect_slp_v4qi_store_align): Ditto.
6713 (struct_4char_block_move, struct_8char_block_move,
6714 struct_16char_block_move): Ditto.
6716 2021-11-02 Roger Sayle <roger@nextmovesoftware.com>
6717 Jakub Jelinek <jakub@redhat.com>
6720 * config/i386/i386-expand.c (ix86_expand_v1ti_to_ti,
6721 ix86_expand_ti_to_v1ti): New helper functions.
6722 (ix86_expand_v1ti_shift): Check if the amount operand is an
6723 integer constant, and expand as a TImode shift if it isn't.
6724 (ix86_expand_v1ti_rotate): Check if the amount operand is an
6725 integer constant, and expand as a TImode rotate if it isn't.
6726 (ix86_expand_v1ti_ashiftrt): New function to expand arithmetic
6727 right shifts of V1TImode quantities.
6728 * config/i386/i386-protos.h (ix86_expand_v1ti_ashift): Prototype.
6729 * config/i386/sse.md (ashlv1ti3, lshrv1ti3): Change constraints
6730 to QImode general_operand, and let the helper functions lower
6731 shifts by non-constant operands, as TImode shifts. Make
6732 conditional on TARGET_64BIT.
6733 (ashrv1ti3): New expander calling ix86_expand_v1ti_ashiftrt.
6734 (rotlv1ti3, rotrv1ti3): Change shift operand to QImode.
6735 Make conditional on TARGET_64BIT.
6737 2021-11-02 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
6739 * config/s390/s390.md ("*cc_to_int", "tabort", "*tabort_1",
6740 "*tabort_1_plus"): Remove operands non-null check.
6742 2021-11-01 Martin Liska <mliska@suse.cz>
6744 * opt-functions.awk: Add new sanity checking.
6745 * optc-gen.awk: Add new argument to integer_range_info.
6746 * params.opt: Update 2 params which have negative IntegerRange.
6748 2021-11-01 qing zhao <qing.zhao@oracle.com>
6750 * gimplify.c (gimplify_decl_expr): Do not add call to
6751 __builtin_clear_padding when a variable is a gimple register
6752 or it might not have padding.
6753 (gimplify_init_constructor): Likewise.
6755 2021-11-01 Tamar Christina <tamar.christina@arm.com>
6757 * config/arm/aarch-common-protos.h (struct vector_cost_table): Add
6758 movi, dup and extract costing fields.
6759 * config/aarch64/aarch64-cost-tables.h (qdf24xx_extra_costs,
6760 thunderx_extra_costs, thunderx2t99_extra_costs,
6761 thunderx3t110_extra_costs, tsv110_extra_costs, a64fx_extra_costs): Use
6763 * config/arm/aarch-cost-tables.h (generic_extra_costs,
6764 cortexa53_extra_costs, cortexa57_extra_costs, cortexa76_extra_costs,
6765 exynosm1_extra_costs, xgene1_extra_costs): Likewise
6766 * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>): Add r->w dup.
6767 * config/aarch64/aarch64.c (aarch64_rtx_costs): Add extra costs.
6769 2021-11-01 Tamar Christina <tamar.christina@arm.com>
6771 * cse.c (add_to_set): New.
6772 (find_sets_in_insn): Register constants in sets.
6773 (canonicalize_insn): Use auto_vec instead.
6774 (cse_insn): Try materializing using vec_dup.
6775 * rtl.h (simplify_context::simplify_gen_vec_select,
6776 simplify_gen_vec_select): New.
6777 * simplify-rtx.c (simplify_context::simplify_gen_vec_select): New.
6779 2021-11-01 David Malcolm <dmalcolm@redhat.com>
6781 * common.opt (fdiagnostics-escape-format=): New.
6782 (diagnostics_escape_format): New enum.
6783 (DIAGNOSTICS_ESCAPE_FORMAT_UNICODE): New enum value.
6784 (DIAGNOSTICS_ESCAPE_FORMAT_BYTES): Likewise.
6785 * diagnostic-format-json.cc (json_end_diagnostic): Add
6786 "escape-source" attribute.
6787 * diagnostic-show-locus.c
6788 (exploc_with_display_col::exploc_with_display_col): Replace
6789 "tabstop" param with a cpp_char_column_policy and add an "aspect"
6790 param. Use these to compute m_display_col accordingly.
6791 (struct char_display_policy): New struct.
6792 (layout::m_policy): New field.
6793 (layout::m_escape_on_output): New field.
6794 (def_policy): New function.
6795 (make_range): Update for changes to exploc_with_display_col ctor.
6796 (default_print_decoded_ch): New.
6797 (width_per_escaped_byte): New.
6798 (escape_as_bytes_width): New.
6799 (escape_as_bytes_print): New.
6800 (escape_as_unicode_width): New.
6801 (escape_as_unicode_print): New.
6803 (layout::layout): Initialize new fields. Update m_exploc ctor
6804 call for above change to ctor.
6805 (layout::maybe_add_location_range): Update for changes to
6806 exploc_with_display_col ctor.
6807 (layout::calculate_x_offset_display): Update for change to
6809 (layout::print_source_line): Pass policy
6810 to cpp_display_width_computation. Capture cpp_decoded_char when
6811 calling process_next_codepoint. Move printing of source code to
6812 m_policy.m_print_cb.
6813 (line_label::line_label): Pass in policy rather than context.
6814 (layout::print_any_labels): Update for change to line_label ctor.
6815 (get_affected_range): Pass in policy rather than context, updating
6816 calls to location_compute_display_column accordingly.
6817 (get_printed_columns): Likewise, also for cpp_display_width.
6818 (correction::correction): Pass in policy rather than tabstop.
6819 (correction::compute_display_cols): Pass m_policy rather than
6820 m_tabstop to cpp_display_width.
6821 (correction::m_tabstop): Replace with...
6822 (correction::m_policy): ...this.
6823 (line_corrections::line_corrections): Pass in policy rather than
6825 (line_corrections::m_context): Replace with...
6826 (line_corrections::m_policy): ...this.
6827 (line_corrections::add_hint): Update to use m_policy rather than
6829 (line_corrections::add_hint): Likewise.
6830 (layout::print_trailing_fixits): Likewise.
6831 (selftest::test_display_widths): New.
6832 (selftest::test_layout_x_offset_display_utf8): Update to use
6833 policy rather than tabstop.
6834 (selftest::test_one_liner_labels_utf8): Add test of escaping
6836 (selftest::test_diagnostic_show_locus_one_liner_utf8): Update to
6837 use policy rather than tabstop.
6838 (selftest::test_overlapped_fixit_printing): Likewise.
6839 (selftest::test_overlapped_fixit_printing_utf8): Likewise.
6840 (selftest::test_overlapped_fixit_printing_2): Likewise.
6841 (selftest::test_tab_expansion): Likewise.
6842 (selftest::test_escaping_bytes_1): New.
6843 (selftest::test_escaping_bytes_2): New.
6844 (selftest::diagnostic_show_locus_c_tests): Call the new tests.
6845 * diagnostic.c (diagnostic_initialize): Initialize
6846 context->escape_format.
6847 (convert_column_unit): Update to use default character width policy.
6848 (selftest::test_diagnostic_get_location_text): Likewise.
6849 * diagnostic.h (enum diagnostics_escape_format): New enum.
6850 (diagnostic_context::escape_format): New field.
6851 * doc/invoke.texi (-fdiagnostics-escape-format=): New option.
6852 (-fdiagnostics-format=): Add "escape-source" attribute to examples
6853 of JSON output, and document it.
6854 * input.c (location_compute_display_column): Pass in "policy"
6855 rather than "tabstop", passing to
6856 cpp_byte_column_to_display_column.
6857 (selftest::test_cpp_utf8): Update to use cpp_char_column_policy.
6858 * input.h (class cpp_char_column_policy): New forward decl.
6859 (location_compute_display_column): Pass in "policy" rather than
6861 * opts.c (common_handle_option): Handle
6862 OPT_fdiagnostics_escape_format_.
6863 * selftest.c (temp_source_file::temp_source_file): New ctor
6864 overload taking a size_t.
6865 * selftest.h (temp_source_file::temp_source_file): Likewise.
6867 2021-11-01 Aldy Hernandez <aldyh@redhat.com>
6869 * dbgcnt.def: Add debug counter for back_thread[12] and
6870 back_threadfull[12].
6871 * passes.def: Pass "first" argument to each back threading pass.
6872 * tree-ssa-threadbackward.c (back_threader::back_threader): Add
6874 (back_threader::debug_counter): New.
6875 (back_threader::maybe_register_path): Call debug_counter.
6877 2021-11-01 Aldy Hernandez <aldyh@redhat.com>
6879 * tree-ssa-threadbackward.c (BT_NONE): New.
6882 (back_threader::back_threader): Add flags.
6883 Move loop initialization here.
6884 (back_threader::~back_threader): New.
6885 (back_threader::find_taken_edge_switch): Change solver and ranger
6887 (back_threader::find_taken_edge_cond): Same.
6888 (back_threader::find_paths_to_names): Same.
6889 (back_threader::find_paths): Same.
6890 (back_threader::dump): Same.
6891 (try_thread_blocks): Merge into thread_blocks.
6892 (back_threader::thread_blocks): New.
6893 (do_early_thread_jumps): Merge into thread_blocks.
6894 (do_thread_jumps): Merge into thread_blocks.
6895 (back_threader::thread_through_all_blocks): Remove.
6897 2021-11-01 Andrew MacLeod <amacleod@redhat.com>
6899 PR tree-optimization/103003
6900 * value-relation.cc (dom_oracle::register_relation): If the 2
6901 ssa names are the same, don't register any relation.
6903 2021-11-01 Dan Li <ashimida@linux.alibaba.com>
6905 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Remove
6906 redundant check for calls_eh_return.
6907 * config/aarch64/aarch64.md (*do_return): Likewise.
6909 2021-11-01 Xionghu Luo <luoxhu@linux.ibm.com>
6911 * cfghooks.c (cfg_hook_duplicate_loop_to_header_edge): Rename
6912 duplicate_loop_to_header_edge to
6913 duplicate_loop_body_to_header_edge.
6914 (cfg_hook_duplicate_loop_body_to_header_edge): Likewise.
6915 * cfghooks.h (struct cfg_hooks): Likewise.
6916 (cfg_hook_duplicate_loop_body_to_header_edge): Likewise.
6917 * cfgloopmanip.c (duplicate_loop_body_to_header_edge): Likewise.
6918 (clone_loop_to_header_edge): Likewise.
6919 * cfgloopmanip.h (duplicate_loop_body_to_header_edge): Likewise.
6920 * cfgrtl.c (struct cfg_hooks): Likewise.
6921 * doc/loop.texi: Likewise.
6922 * loop-unroll.c (unroll_loop_constant_iterations): Likewise.
6923 (unroll_loop_runtime_iterations): Likewise.
6924 (unroll_loop_stupid): Likewise.
6925 (apply_opt_in_copies): Likewise.
6926 * tree-cfg.c (struct cfg_hooks): Likewise.
6927 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
6928 (try_peel_loop): Likewise.
6929 * tree-ssa-loop-manip.c (copy_phi_node_args): Likewise.
6930 (gimple_duplicate_loop_body_to_header_edge): Likewise.
6931 (tree_transform_and_unroll_loop): Likewise.
6932 * tree-ssa-loop-manip.h (gimple_duplicate_loop_body_to_header_edge):
6935 2021-11-01 Xionghu Luo <luoxhu@linux.ibm.com>
6937 * cfgloopmanip.c (loop_version): Refactor loopify to
6938 loop_version. Move condition generation after loopify.
6940 * cfgloopmanip.h (loopify): Delete.
6942 2021-10-31 Jan Hubicka <hubicka@ucw.cz>
6944 * ipa-fnsummary.c: Include tree-dfa.h.
6945 (points_to_local_or_readonly_memory_p): Return true on return
6947 * ipa-modref.c (analyze_ssa_name_flags): Fix handling of copy
6950 2021-10-30 Tobias Burnus <tobias@codesourcery.com>
6952 PR middle-end/102972
6953 * omp-low.c (omp_runtime_api_call): Use DECL_ASSEMBLER_NAME to get
6954 internal Fortran name; new permit_num_teams arg to permit
6955 omp_get_num_teams and omp_get_team_num.
6956 (scan_omp_1_stmt): Update call to it, add missing call for
6957 reverse offload, and check for strictly nested API calls in teams.
6959 2021-10-30 Jakub Jelinek <jakub@redhat.com>
6961 * gimplify.c (gimplify_omp_for): Diagnose threadprivate iterators.
6963 2021-10-29 David Malcolm <dmalcolm@redhat.com>
6965 * selftest.c (assert_streq): Add newlines when emitting non-equal
6968 2021-10-29 David Malcolm <dmalcolm@redhat.com>
6970 * Makefile.in: Fix syntax for reference to LIBDEPS in
6973 2021-10-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
6975 * doc/install.texi: Bump required minimum DejaGnu version.
6977 2021-10-29 Aldy Hernandez <aldyh@redhat.com>
6978 Andrew MacLeod <amacleod@redhat.com>
6980 * value-relation.cc (path_oracle::killing_def): Add a
6981 self-equivalence so we don't look to the root oracle.
6983 2021-10-29 Aldy Hernandez <aldyh@redhat.com>
6985 * passes.def: Replace the pass_thread_jumps before VRP* with
6986 pass_thread_jumps_full. Remove all pass_vrp_threader instances.
6987 * tree-ssa-threadbackward.c (pass_data_thread_jumps_full):
6988 Remove hyphen from "thread-full" name.
6990 2021-10-29 Andrew MacLeod <amacleod@redhat.com>
6992 PR tree-optimization/102983
6993 * gimple-range-cache.h (propagate_updated_value): Make public.
6994 * gimple-range.cc (gimple_ranger::range_of_stmt): Propagate exports
6995 when processing gcond stmts.
6997 2021-10-29 Jan Hubicka <hubicka@ucw.cz>
6999 * gimple.c (gimple_call_retslot_flags): New function.
7000 * gimple.h (gimple_call_retslot_flags): Declare.
7001 * ipa-modref.c: Include tree-cfg.h.
7002 (struct escape_entry): Turn parm_index to signed.
7003 (modref_summary_lto::modref_summary_lto): Add retslot_flags.
7004 (modref_summary::modref_summary): Initialize retslot_flags.
7005 (struct modref_summary_lto): Likewise.
7006 (modref_summary::useful_p): Check retslot_flags.
7007 (modref_summary_lto::useful_p): Likewise.
7008 (modref_summary::dump): Dump retslot_flags.
7009 (modref_summary_lto::dump): Likewise.
7010 (struct escape_point): Add hidden_args enum.
7011 (analyze_ssa_name_flags): Ignore return slot return;
7012 use gimple_call_retslot_flags.
7013 (record_escape_points): Break out from ...
7014 (analyze_parms): ... here; handle retslot_flags.
7015 (modref_summaries::duplicate): Duplicate retslot_flags.
7016 (modref_summaries_lto::duplicate): Likewise.
7017 (modref_write_escape_summary): Stream parm_index as signed.
7018 (modref_read_escape_summary): Likewise.
7019 (modref_write): Stream retslot_flags.
7020 (read_section): Likewise.
7021 (struct escape_map): Fix typo in comment.
7022 (update_escape_summary_1): Fix whitespace.
7023 (ipa_merge_modref_summary_after_inlining): Drop retslot_flags.
7024 (modref_merge_call_site_flags): Merge retslot_flags.
7025 * ipa-modref.h (struct modref_summary): Add retslot_flags.
7026 * tree-ssa-structalias.c (handle_rhs_call): Handle retslot_flags.
7028 2021-10-29 Tamar Christina <tamar.christina@arm.com>
7030 PR tree-optimization/102977
7031 * tree-vect-slp-patterns.c (vect_match_call_p): Remove.
7032 (vect_detect_pair_op): Add crosslane check.
7033 (vect_match_call_complex_mla): Remove.
7034 (class complex_mul_pattern): Update comment.
7035 (complex_mul_pattern::matches): Update detection.
7036 (class complex_fma_pattern): Remove.
7037 (complex_fma_pattern::matches): Remove.
7038 (complex_fma_pattern::recognize): Remove.
7039 (complex_fma_pattern::build): Remove.
7040 (class complex_fms_pattern): Update comment.
7041 (complex_fms_pattern::matches): Remove.
7042 (complex_operations_pattern::recognize): Remove complex_fma_pattern
7044 2021-10-29 Jakub Jelinek <jakub@redhat.com>
7046 * gimple-fold.c (gimple_fold_builtin_memset): Copy over location from
7049 2021-10-29 Xionghu Luo <luoxhu@linux.ibm.com>
7052 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Add
7053 patterns match and emit for VSX xxpermdi.
7055 2021-10-29 liuhongt <hongtao.liu@intel.com>
7058 * config/i386/i386-builtin-types.def (V8HF_FTYPE_V8HF): New
7060 (V16HF_FTYPE_V16HF): Ditto.
7061 (V32HF_FTYPE_V32HF): Ditto.
7062 (V8HF_FTYPE_V8HF_ROUND): Ditto.
7063 (V16HF_FTYPE_V16HF_ROUND): Ditto.
7064 (V32HF_FTYPE_V32HF_ROUND): Ditto.
7065 * config/i386/i386-builtin.def ( IX86_BUILTIN_FLOORPH,
7066 IX86_BUILTIN_CEILPH, IX86_BUILTIN_TRUNCPH,
7067 IX86_BUILTIN_FLOORPH256, IX86_BUILTIN_CEILPH256,
7068 IX86_BUILTIN_TRUNCPH256, IX86_BUILTIN_FLOORPH512,
7069 IX86_BUILTIN_CEILPH512, IX86_BUILTIN_TRUNCPH512): New builtin.
7070 * config/i386/i386-builtins.c
7071 (ix86_builtin_vectorized_function): Enable vectorization for
7072 HFmode FLOOR/CEIL/TRUNC operation.
7073 * config/i386/i386-expand.c (ix86_expand_args_builtin): Handle
7075 * config/i386/sse.md (rint<mode>2, nearbyint<mode>2): Extend
7078 2021-10-28 Aldy Hernandez <aldyh@redhat.com>
7079 Andrew MacLeod <amacleod@redhat.com>
7081 * value-relation.cc (path_oracle::killing_def): Walk the
7082 equivalency list and remove SSA from any equivalencies.
7084 2021-10-28 Stafford Horne <shorne@gmail.com>
7086 * config/or1k/or1k.h (PROFILE_HOOK): Add return address argument
7089 2021-10-28 Jakub Jelinek <jakub@redhat.com>
7091 PR tree-optimization/102951
7092 * fold-const.h (address_compare): Declare.
7093 * fold-const.c (address_compare): New function.
7094 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Use
7095 address_compare helper.
7096 (minmax cmp (convert1?@2 addr@0) (convert2?@3 addr@1)): New
7099 2021-10-28 Andrew MacLeod <amacleod@redhat.com>
7101 * vr-values.c (simplify_using_ranges::fold_cond): Change fold message.
7103 2021-10-28 Andrew MacLeod <amacleod@redhat.com>
7105 PR tree-optimization/102940
7106 * tree-vrp.c (execute_ranger_vrp): Reset scev.
7108 2021-10-28 Richard Purdie <richard.purdie@linuxfoundation.org>
7110 * config/nios2/linux.h (MUSL_DYNAMIC_LINKER): Add musl linker
7112 2021-10-28 Richard Purdie <richard.purdie@linuxfoundation.org>
7114 * configure: Regenerate.
7115 * configure.ac: Use CPPFLAGS_FOR_BUILD for GMPINC
7117 2021-10-28 Eric Botcazou <ebotcazou@adacore.com>
7119 * doc/invoke.texi (%X): Remove obsolete reference to -Wl.
7121 2021-10-28 Richard Biener <rguenther@suse.de>
7124 * fold-const.c (fold_convert_const): Avoid int to float
7125 constant folding with -frounding-math and inexact result.
7126 * simplify-rtx.c (simplify_const_unary_operation): Likewise
7127 for both float and unsigned_float.
7129 2021-10-28 Aldy Hernandez <aldyh@redhat.com>
7131 * tree-ssa-threadbackward.c
7132 (back_threader::find_taken_edge_switch): Use find_case_label_range
7133 instead of find_taken_edge.
7135 2021-10-28 Aldy Hernandez <aldyh@redhat.com>
7137 * tree-ssa-threadbackward.c (class back_threader_registry):
7138 Inherit from back_jt_path_registry.
7139 (back_threader_registry::thread_through_all_blocks): Remove.
7140 (back_threader_registry::register_path): Remove
7141 m_lowlevel_registry prefix.
7143 2021-10-28 Richard Biener <rguenther@suse.de>
7146 * fold-const.c (fold_convert_const_real_from_real): Honor
7147 -frounding-math if the conversion is not exact.
7148 * simplify-rtx.c (simplify_const_unary_operation): Do not
7149 simplify FLOAT_TRUNCATE with sign dependent rounding.
7151 2021-10-28 Richard Biener <rguenther@suse.de>
7153 PR tree-optimization/102949
7154 * tree-vect-stmts.c (ensure_base_align): Look at the
7155 dr_info of a group leader and assert we are looking at
7156 one with analyzed alignment.
7158 2021-10-28 Kewen Lin <linkw@linux.ibm.com>
7161 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Consider
7162 V1T1 mode for unaligned load and store.
7164 2021-10-28 Kito Cheng <kito.cheng@sifive.com>
7166 * config/riscv/riscv.md (zero_extendsidi2_internal): Allow ZBB
7169 2021-10-28 Kito Cheng <kito.cheng@sifive.com>
7171 * config/riscv/arch-canonicalize (CANONICAL_ORDER): Add `i` to
7174 2021-10-28 Alexandre Oliva <oliva@adacore.com>
7176 * common.opt (fharden-compares): New.
7177 (fharden-conditional-branches): New.
7178 * doc/invoke.texi: Document new options.
7179 * gimple-harden-conditionals.cc: New.
7180 * Makefile.in (OBJS): Build it.
7181 * passes.def: Add new passes.
7182 * tree-pass.h (make_pass_harden_compares): Declare.
7183 (make_pass_harden_conditional_branches): Declare.
7185 2021-10-28 Xionghu Luo <luoxhu@linux.ibm.com>
7188 * config/rs6000/altivec.md: Add vsx register constraints.
7189 * config/rs6000/vsx.md (vsx_xxsel<mode>): Delete.
7190 (vsx_xxsel<mode>2): Likewise.
7191 (vsx_xxsel<mode>3): Likewise.
7192 (vsx_xxsel<mode>4): Likewise.
7194 2021-10-28 Xionghu Luo <luoxhu@linux.ibm.com>
7197 * config/rs6000/altivec.md (*altivec_vsel<mode>): Change to ...
7198 (altivec_vsel<mode>): ... this and update define.
7199 (*altivec_vsel<mode>_uns): Delete.
7200 (altivec_vsel<mode>2): New define_insn.
7201 (altivec_vsel<mode>3): Likewise.
7202 (altivec_vsel<mode>4): Likewise.
7203 * config/rs6000/rs6000-call.c (altivec_expand_vec_sel_builtin): New.
7204 (altivec_expand_builtin): Call altivec_expand_vec_sel_builtin to expand
7206 * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Use bit-wise
7207 selection instead of per element.
7208 * config/rs6000/vector.md:
7209 * config/rs6000/vsx.md (*vsx_xxsel<mode>): Change to ...
7210 (vsx_xxsel<mode>): ... this and update define.
7211 (*vsx_xxsel<mode>_uns): Delete.
7212 (vsx_xxsel<mode>2): New define_insn.
7213 (vsx_xxsel<mode>3): Likewise.
7214 (vsx_xxsel<mode>4): Likewise.
7216 2021-10-28 Hongyu Wang <hongyu.wang@intel.com>
7218 * config/i386/i386.c (use_rsqrt_p): Add mode parameter, enable
7219 HFmode rsqrt without TARGET_SSE_MATH.
7220 (ix86_optab_supported_p): Refactor rint, adjust floor, ceil,
7221 btrunc condition to be restricted by -ftrapping-math, adjust
7222 use_rsqrt_p function call.
7223 * config/i386/i386.md (rcphf2): New define_insn.
7224 (rsqrthf2): Likewise.
7225 * config/i386/sse.md (div<mode>3): Change VF2H to VF2.
7226 (div<mode>3): New expander for HF mode.
7227 (rsqrt<mode>2): Likewise.
7228 (*avx512fp16_vmrcpv8hf2): New define_insn for rpad pass.
7229 (*avx512fp16_vmrsqrtv8hf2): Likewise.
7231 2021-10-27 Saagar Jha <saagar@saagarjha.com>
7233 * config.gcc: Adjust for Darwin21.
7234 * config/darwin-c.c (macosx_version_as_macro): Likewise.
7235 * config/darwin-driver.c (validate_macosx_version_min):
7237 (darwin_find_version_from_kernel): Likewise.
7239 2021-10-27 Aldy Hernandez <aldyh@redhat.com>
7241 * gimple-range-path.cc
7242 (path_range_query::range_defined_in_block): Call killing_def.
7244 2021-10-27 Aldy Hernandez <aldyh@redhat.com>
7246 * gimple-range-fold.cc (fold_using_range::range_of_range_op): Dump
7247 operands as well as relation.
7248 * gimple-range-path.cc
7249 (path_range_query::compute_ranges_in_block): Compute PHI relations
7250 first. Compute outgoing relations at the end.
7251 (path_range_query::compute_ranges): Remove call to compute_relations.
7252 (path_range_query::compute_relations): Remove.
7253 (path_range_query::maybe_register_phi_relation): New.
7254 (path_range_query::compute_phi_relations): Abstract out
7255 registering one PHI relation to...
7256 (path_range_query::compute_outgoing_relations): ...here.
7257 * gimple-range-path.h (class path_range_query): Remove
7259 Add maybe_register_phi_relation.
7261 2021-10-27 Aldy Hernandez <aldyh@redhat.com>
7262 Andrew MacLeod <amacleod@redhat.com>
7264 * value-relation.cc (path_oracle::killing_def): Kill second
7267 2021-10-27 Martin Jambor <mjambor@suse.cz>
7269 * ipa-cp.c (good_cloning_opportunity_p): Decide whether to use
7270 profile feedback depending on their local availability.
7272 2021-10-27 Martin Jambor <mjambor@suse.cz>
7274 * params.opt (param_ipa_cp_profile_count_base): New parameter.
7275 * doc/invoke.texi (Optimize Options): Add entry for
7276 ipa-cp-profile-count-base.
7277 * ipa-cp.c (max_count): Replace with base_count, replace all
7278 occurrences too, unless otherwise stated.
7279 (ipcp_cloning_candidate_p): identify mostly-directly called
7280 functions based on their counts, not max_count.
7281 (compare_edge_profile_counts): New function.
7282 (ipcp_propagate_stage): Instead of setting max_count, find the
7283 appropriate edge count in a sorted vector of counts of eligible
7284 edges and make it the base_count.
7286 2021-10-27 Martin Jambor <mjambor@suse.cz>
7288 * ipa-cp.c (struct caller_statistics): New fields rec_count_sum,
7289 n_nonrec_calls and itself, document all fields.
7290 (init_caller_stats): Initialize the above new fields.
7291 (gather_caller_stats): Gather self-recursive counts and calls number.
7292 (get_info_about_necessary_edges): Gather counts of self-recursive and
7293 other edges bringing in the requested value separately.
7294 (dump_profile_updates): Rework to dump info about a single node only.
7295 (lenient_count_portion_handling): New function.
7296 (struct gather_other_count_struct): New type.
7297 (gather_count_of_non_rec_edges): New function.
7298 (struct desc_incoming_count_struct): New type.
7299 (analyze_clone_icoming_counts): New function.
7300 (adjust_clone_incoming_counts): Likewise.
7301 (update_counts_for_self_gen_clones): Likewise.
7302 (update_profiling_info): Rewritten.
7303 (update_specialized_profile): Adjust call to dump_profile_updates.
7304 (create_specialized_node): Do not update profiling info.
7305 (decide_about_value): New parameter self_gen_clones, either push new
7306 clones into it or updat their profile counts. For self-recursively
7307 generated values, use a portion of the node count instead of count
7308 from self-recursive edges to estimate goodness.
7309 (decide_whether_version_node): Gather clones for self-generated values
7310 in a new vector, update their profiles at once at the end.
7312 2021-10-27 Richard Biener <rguenther@suse.de>
7314 * tree-vectorizer.c (vect_transform_loops): New function,
7316 (try_vectorize_loop_1): ... here. Simplify as epilogues
7317 are now fully handled in the split part.
7319 2021-10-27 Jakub Jelinek <jakub@redhat.com>
7321 * omp-expand.c (expand_omp_for_init_counts): Handle non-rectangular
7322 iterators with pointer types.
7323 (expand_omp_for_init_vars, extract_omp_for_update_vars): Likewise.
7325 2021-10-26 Martin Sebor <msebor@redhat.com>
7327 PR tree-optimization/102238
7328 PR tree-optimization/102919
7329 * gimple-ssa-sprintf.c (get_string_length): Add an argument.
7330 (array_elt_at_offset): Move to pointer-query.
7331 (set_aggregate_size_and_offset): New function.
7332 (field_at_offset): Move to pointer-query.
7333 (get_origin_and_offset): Rename...
7334 (get_origin_and_offset_r): this. Add an argument. Make aggregate
7335 handling more robust.
7336 (get_origin_and_offset): New.
7337 (alias_offset): Add an argument.
7338 (format_string): Use subobject size determined by get_origin_and_offset.
7339 * pointer-query.cc (field_at_offset): Move from gimple-ssa-sprintf.c.
7340 Improve/correct handling of aggregates.
7341 (array_elt_at_offset): Same.
7342 * pointer-query.h (field_at_offset): Declare.
7343 (array_elt_at_offset): Declare.
7345 2021-10-26 Martin Sebor <msebor@redhat.com>
7347 * builtins.c (check_strncat_sizes): Pass access_data ctor additional
7349 (expand_builtin_memcmp): Move code to gimple-ssa-warn-access.cc.
7350 (expand_builtin_fork_or_exec): Same.
7351 * gimple-array-bounds.cc (array_bounds_checker::check_mem_ref): Pass
7352 compute_objsize additional arguments.
7353 (inbounds_memaccess_p): Same.
7354 (array_bounds_checker::check_array_bounds): Add an assert. Stash
7355 statement in a member.
7356 (check_array_bounds_dom_walker::before_dom_children): Same.
7357 * gimple-array-bounds.h (array_bounds_checker::m_stmt): New member.
7358 * gimple-ssa-sprintf.c (get_destination_size): Add an argument.
7359 (handle_printf_call): Pass a new argument.
7360 * gimple-ssa-warn-access.cc (get_size_range): Add an argument.
7361 (check_access): Add an argument and pass it along to callees.
7362 (check_read_access): Make a member function.
7363 (pass_waccess::check_strcat): Pass access_data ctor additional
7365 (pass_waccess::check_strncat): Same.
7366 (pass_waccess::check_stxcpy): Same.
7367 (pass_waccess::check_stxncpy): Same.
7368 (pass_waccess::check_strncmp): Same.
7369 (pass_waccess::check_read_access): Same.
7370 (pass_waccess::check_builtin): Same.
7371 (pass_waccess::maybe_check_access_sizes): Same.
7372 (pass_waccess::maybe_check_dealloc_call): Same.
7373 * gimple-ssa-warn-access.h (check_read_access): Declare a new
7375 * pointer-query.cc (compute_objsize_r): Add an argument.
7376 (gimple_call_return_array): Same.
7377 (gimple_call_alloc_size): Same.
7378 (access_ref::access_ref): Same.
7379 (access_ref::get_ref): Same.
7380 (pointer_query::get_ref): Same.
7381 (handle_min_max_size): Pass an arguments to callees.
7382 (handle_array_ref): Add an argument.
7383 (handle_mem_ref): Same.
7384 (compute_objsize): Same.
7385 * pointer-query.h (struct access_ref): Adjust signatures.
7386 (struct access_data): Same.
7387 (gimple_call_alloc_size): Add an argument.
7388 (gimple_parm_array_size): Same.
7389 (compute_objsize): Same.
7390 * tree-ssa-strlen.c (strlen_pass::adjust_last_stmt): Pass an additional
7391 argument to compute_objsize.
7392 (strlen_pass::maybe_warn_overflow): Same.
7393 (maybe_diag_stxncpy_trunc): Same.
7395 2021-10-26 Martin Sebor <msebor@redhat.com>
7397 PR middle-end/102453
7398 * gimple-ssa-warn-access.cc (pass_waccess::check_atomic_builtin): New.
7399 (pass_waccess::check_atomic_builtin): Call it.
7401 2021-10-26 Vladimir N. Makarov <vmakarov@redhat.com>
7403 PR rtl-optimization/102842
7404 * lra-constraints.c (match_reload): Ignore out in checking values
7406 (curr_insn_transform): Collect outputs before doing reloads of operands.
7408 2021-10-26 Paul A. Clarke <pc@us.ibm.com>
7411 * config/rs6000/x86intrin.h: Move some included headers to new
7412 headers. Include new immintrin.h instead of those headers.
7413 * config/rs6000/immintrin.h: New.
7414 * config/rs6000/x86gprintrin.h: New.
7415 * config.gcc (powerpc*-*-*): Add new headers to extra_headers.
7417 2021-10-26 Richard Biener <rguenther@suse.de>
7419 * tree-vectorizer.h (vect_create_addr_base_for_vector_ref):
7420 Remove byte_offset parameter.
7421 (vect_create_data_ref_ptr): Likewise.
7422 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
7424 (vect_create_data_ref_ptr): Likewise.
7425 * tree-vect-stmts.c (vectorizable_store): Adjust.
7426 (vectorizable_load): Likewise.
7428 2021-10-26 Richard Biener <rguenther@suse.de>
7430 PR tree-optimization/96109
7431 * tree-vectorizer.h (dr_misalignment): Add optional offset
7433 * tree-vect-data-refs.c (dr_misalignment): Likewise. Remove
7434 offset applied for negative stride accesses.
7435 (vect_enhance_data_refs_alignment): Compute negative stride
7436 access offset and pass it to dr_misalignment.
7437 * tree-vect-stmts.c (get_negative_load_store_type): Pass
7438 negative offset to dr_misalignment.
7439 (get_group_load_store_type): Likewise.
7440 (get_load_store_type): Likewise.
7441 (vectorizable_store): Remove asserts about alignment.
7442 (vectorizable_load): Likewise.
7444 2021-10-26 Kewen Lin <linkw@linux.ibm.com>
7446 PR tree-optimization/102897
7447 * tree-ssa-forwprop.c (simplify_permutation): Remove a wrong assertion.
7449 2021-10-26 Richard Biener <rguenther@suse.de>
7451 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
7452 Take offset in bytes.
7453 (vect_create_data_ref_ptr): Likewise.
7454 * tree-vect-loop-manip.c (get_misalign_in_elems): Multiply
7455 offset by element size.
7456 (vect_create_cond_for_align_checks): Likewise.
7457 * tree-vect-stmts.c (get_negative_load_store_type): Likewise.
7458 (vectorizable_load): Remove duplicate leftover from merge
7461 2021-10-26 Roger Sayle <roger@nextmovesoftware.com>
7463 * config/i386/i386-expand.c (ix86_expand_v1ti_shift): New helper
7464 function to expand V1TI mode logical shifts by integer constants.
7465 (ix86_expand_v1ti_rotate): New helper function to expand V1TI
7466 mode rotations by integer constants.
7467 * config/i386/i386-protos.h (ix86_expand_v1ti_shift,
7468 ix86_expand_v1ti_rotate): Prototype new functions here.
7469 * config/i386/sse.md (ashlv1ti3, lshrv1ti3, rotlv1ti3, rotrv1ti3):
7470 New TARGET_SSE2 expanders to implement V1TI shifts and rotations.
7472 2021-10-26 Aldy Hernandez <aldyh@redhat.com>
7474 * tree-ssa-threadbackward.c (back_threader::maybe_register_path):
7475 Avoid threading circular paths.
7477 2021-10-26 Aldy Hernandez <aldyh@redhat.com>
7479 * tree-ssa-threadbackward.c (back_threader::resolve_phi):
7480 Attempt to resolve all incoming paths to a PHI.
7481 (back_threader::resolve_def): Always return true for PHIs.
7483 2021-10-26 Aldy Hernandez <aldyh@redhat.com>
7485 * tree-ssa-threadbackward.c (back_threader::find_paths_to_names):
7486 Always try to resolve path without looking back.
7487 * tree-ssa-threadupdate.c (dump_jump_thread): Indidicate whether
7488 edge is a back edge.
7490 2021-10-26 Kewen Lin <linkw@linux.ibm.com>
7492 PR tree-optimization/102789
7493 * tree-vect-loop-manip.c (vect_update_inits_of_drs): Do not
7494 update inits of simd_lane_access.
7496 2021-10-25 Andrew MacLeod <amacleod@redhat.com>
7498 * tree-vrp.c (vrp_simplify_cond_using_ranges): Add return type and
7499 move to vr-values.c.
7500 (simplify_casted_conds): Move to vrp_folder class.
7501 (execute_vrp): Call via vrp_folder now.
7502 * vr-values.c (simplify_cond_using_ranges_1): Call simplify_casted_cond.
7503 (simplify_using_ranges::simplify_casted_cond): Relocate from tree-vrp.c.
7504 * vr-values.h (simplify_casted_cond): Add prototype.
7506 2021-10-25 Andrew MacLeod <amacleod@redhat.com>
7508 * tree-vrp.c (rvrp_folder::fold_stmt): If simplification fails, try
7511 2021-10-25 Paul A. Clarke <pc@us.ibm.com>
7513 * config/rs6000/smmintrin.h (_mm_testz_si128): Add "extern" to
7515 (_mm_testc_si128): Likewise.
7516 (_mm_testnzc_si128): Likewise.
7517 (_mm_blend_ps): Likewise.
7518 (_mm_blendv_ps): Likewise.
7519 (_mm_blend_pd): Likewise.
7520 (_mm_blendv_pd): Likewise.
7521 (_mm_ceil_pd): Likewise.
7522 (_mm_ceil_sd): Likewise.
7523 (_mm_ceil_ps): Likewise.
7524 (_mm_ceil_ss): Likewise.
7525 (_mm_floor_pd): Likewise.
7526 (_mm_floor_sd): Likewise.
7527 (_mm_floor_ps): Likewise.
7528 (_mm_floor_ss): Likewise.
7529 (_mm_minpos_epu16): Likewise.
7530 (_mm_mul_epi32): Likewise.
7531 (_mm_cvtepi8_epi16): Likewise.
7532 (_mm_packus_epi32): Likewise.
7533 (_mm_cmpgt_epi64): Likewise.
7535 2021-10-25 Roger Sayle <roger@nextmovesoftware.com>
7537 * simplify-rtx.c (simplify_binary_operation_1) [SS_ASHIFT]: Simplify
7538 shifts of the mode's smin_value and smax_value when the bit count
7539 operand doesn't have side-effects.
7540 [US_ASHIFT]: Likewise, simplify shifts of the mode's umax_value
7541 when the bit count operand doesn't have side-effects.
7542 (simplify_const_binary_operation) [SS_ASHIFT, US_ASHIFT]: Perform
7543 compile-time evaluation of saturating left shifts with constant
7546 2021-10-25 Andrew MacLeod <amacleod@redhat.com>
7548 * gimple-range.cc (gimple_ranger::export_global_ranges): Remove check
7551 2021-10-25 Andrew MacLeod <amacleod@redhat.com>
7553 * flag-types.h (enum ranger_debug): Adjust values.
7554 * params.opt (ranger_debug): Ditto.
7556 2021-10-25 Martin Jambor <mjambor@suse.cz>
7558 PR tree-optimization/102886
7559 * tree-sra.c (totally_scalarize_subtree): Fix the out of
7562 2021-10-25 Andrew Pinski <apinski@marvell.com>
7564 * tree-ssa-dce.c (simple_dce_from_worklist):
7565 Check stmt_unremovable_because_of_non_call_eh_p also
7566 before removing the statement.
7568 2021-10-25 Richard Biener <rguenther@suse.de>
7570 PR tree-optimization/102905
7571 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
7572 Use vect_supportable_dr_alignment again to determine whether
7573 an access is supported when not aligned.
7575 2021-10-25 Kito Cheng <kito.cheng@sifive.com>
7577 * config/riscv/riscv.c (riscv_rtx_costs): Handle cost model
7580 2021-10-25 Jim Wilson <jimw@sifive.com>
7581 Kito Cheng <kito.cheng@sifive.com>
7582 Jia-Wei Chen <jiawei@iscas.ac.cn>
7583 Shi-Hua Liao <shihua@iscas.ac.cn>
7585 * config/riscv/bitmanip.md (shiftm1): New.
7586 (*bset<mode>): Ditto.
7587 (*bset<mode>_mask): Ditto.
7588 (*bset<mode>_1): Ditto.
7589 (*bset<mode>_1_mask): Ditto.
7590 (*bseti<mode>): Ditto.
7591 (*bclr<mode>): Ditto.
7592 (*bclri<mode>): Ditto.
7593 (*binv<mode>): Ditto.
7594 (*binvi<mode>): Ditto.
7595 (*bext<mode>): Ditto.
7597 * config/riscv/predicates.md (splittable_const_int_operand):
7599 (single_bit_mask_operand): New.
7600 (not_single_bit_mask_operand): Ditto.
7601 (const31_operand): Ditto.
7602 (const63_operand): Ditto.
7603 * config/riscv/riscv.c (riscv_build_integer_1): Handle bseti.
7604 (riscv_output_move): Ditto.
7605 (riscv_print_operand): Handle new operand type: T and S.
7606 * config/riscv/riscv.h (SINGLE_BIT_MASK_OPERAND): New.
7608 2021-10-25 Jim Wilson <jimw@sifive.com>
7610 * config/riscv/riscv.c (riscv_build_integer_1): Build integer
7613 2021-10-25 Kito Cheng <kito.cheng@sifive.com>
7615 * config/riscv/riscv.c (riscv_extend_cost): Handle cost model
7617 (riscv_rtx_costs): Ditto.
7619 2021-10-25 Jim Wilson <jimw@sifive.com>
7620 Kito Cheng <kito.cheng@sifive.com>
7621 Jia-Wei Chen <jiawei@iscas.ac.cn>
7623 * config/riscv/bitmanip.md (bitmanip_bitwise): New.
7624 (bitmanip_minmax): New.
7625 (clz_ctz_pcnt): New.
7626 (bitmanip_optab): New.
7627 (bitmanip_insn): New.
7628 (*<optab>_not<mode>): New.
7629 (*xor_not<mode>): New.
7630 (<bitmanip_optab>si2): New.
7631 (*<bitmanip_optab>disi2): New.
7632 (<bitmanip_optab>di2): New.
7633 (*zero_extendhi<GPR:mode>2_bitmanip): New.
7634 (*extend<SHORT:mode><SUPERQI:mode>2_zbb): New.
7635 (*zero_extendhi<GPR:mode>2_zbb): New.
7638 (rotrsi3_sext): New.
7641 (rotlsi3_sext): New.
7642 (bswap<mode>2): New.
7643 (<bitmanip_optab><mode>3): New.
7644 * config/riscv/riscv.md (type): Add rotate.
7645 (zero_extendhi<GPR:mode>2): Change to define_expand pattern.
7646 (*zero_extendhi<GPR:mode>2): New.
7647 (extend<SHORT:mode><SUPERQI:mode>2): Change to define_expand pattern.
7648 (*extend<SHORT:mode><SUPERQI:mode>2): New.
7650 2021-10-25 Kito Cheng <kito.cheng@sifive.com>
7652 * config/riscv/riscv.c (riscv_extend_cost): Handle cost model
7654 (riscv_rtx_costs): Ditto.
7656 2021-10-25 Jim Wilson <jimw@sifive.com>
7657 Kito Cheng <kito.cheng@sifive.com>
7658 Jia-Wei Chen <jiawei@iscas.ac.cn>
7660 * config/riscv/bitmanip.md (*zero_extendsidi2_bitmanip): New.
7665 (riscv_rtx_costs): Ditto.
7666 * config/riscv/riscv.md: Include bitmanip.md
7667 (type): Add bitmanip bype.
7668 (zero_extendsidi2): Change to define_expand pattern.
7669 (*zero_extendsidi2_internal): New.
7670 (zero_extendsidi2_shifted): Disable for ZBA.
7672 2021-10-25 Kito Cheng <kito.cheng@sifive.com>
7674 * common/config/riscv/riscv-common.c (riscv_ext_version_table):
7675 Add zba, zbb, zbc and zbs.
7676 (riscv_ext_flag_table): Ditto.
7677 * config/riscv/riscv-opts.h (MASK_ZBA): New.
7681 (TARGET_ZBA): Ditto.
7682 (TARGET_ZBB): Ditto.
7683 (TARGET_ZBC): Ditto.
7684 (TARGET_ZBS): Ditto.
7685 * config/riscv/riscv.opt (riscv_zb_subext): New.
7687 2021-10-25 liuhongt <hongtao.liu@intel.com>
7690 * match.pd: Simplify (_Float16) sqrtf((float) a) to .SQRT(a)
7691 when direct_internal_fn_supported_p, similar for sqrt/sqrtl.
7693 2021-10-25 Richard Biener <rguenther@suse.de>
7695 PR tree-optimization/102920
7696 * tree-ssa-sccvn.h (expressions_equal_p): Add argument
7697 controlling VN_TOP matching behavior.
7698 * tree-ssa-sccvn.c (expressions_equal_p): Likewise.
7699 (vn_phi_eq): Do not optimistically match VN_TOP.
7701 2021-10-25 konglin1 <lingling.kong@intel.com>
7703 * config/i386/sse.md (fma_<mode>_fadd_fmul): Add new
7704 define_insn_and_split.
7705 (fma_<mode>_fadd_fcmul):Likewise
7706 (fma_<complexopname>_<mode>_fma_zero):Likewise
7708 2021-10-24 John David Anglin <danglin@gcc.gnu.org>
7710 * config/pa/pa-d.c (pa_d_handle_target_float_abi): Don't check
7711 TARGET_DISABLE_FPREGS.
7712 * config/pa/pa.c (fix_range): Use MASK_SOFT_FLOAT instead of
7713 MASK_DISABLE_FPREGS.
7714 (hppa_rtx_costs): Don't check TARGET_DISABLE_FPREGS. Adjust
7715 cost of hardware integer multiplication.
7716 (pa_conditional_register_usage): Don't check TARGET_DISABLE_FPREGS.
7717 * config/pa/pa.h (INT14_OK_STRICT): Likewise.
7718 * config/pa/pa.md: Don't check TARGET_DISABLE_FPREGS. Check
7719 TARGET_SOFT_FLOAT in patterns that use xmpyu instruction.
7720 * config/pa/pa.opt (mdisable-fpregs): Change target mask to
7721 SOFT_FLOAT. Revise comment.
7722 (msoft-float): New option.
7724 2021-10-24 John David Anglin <danglin@gcc.gnu.org>
7726 * config/pa/pa.md: Don't use 'G' constraint in integer move patterns.
7728 2021-10-24 Gerald Pfeifer <gerald@pfeifer.com>
7730 * doc/install.texi (Specific): Remove obsolete details
7731 around GNU/Linux on Itanium.
7732 (Specific): Remove reference to Windows for Itanium.
7734 2021-10-23 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
7736 * config/i386/x86-tune-sched-bd.c (dispatch_group): Commentary
7739 2021-10-23 Jan Hubicka <hubicka@ucw.cz>
7741 * tree-ssa-structalias.c (compute_points_to_sets): Cleanup.
7743 2021-10-23 Roger Sayle <roger@nextmovesoftware.com>
7745 * config/i386/sse.md (<any_logic>v1ti3): New define_insn to
7746 implement V1TImode AND, IOR and XOR on TARGET_SSE2 (and above).
7747 (one_cmplv1ti2): New define expand.
7749 2021-10-22 Eric Gallager <egallager@gcc.gnu.org>
7752 * Makefile.in: Handle dvidir and install-dvi target.
7753 * configure: Regenerate.
7754 * configure.ac: Add install-dvi to target_list.
7756 2021-10-22 Gerald Pfeifer <gerald@pfeifer.com>
7758 * doc/install.texi (Binaries): Convert mingw-w64.org to https.
7761 2021-10-22 Richard Biener <rguenther@suse.de>
7763 PR tree-optimization/102893
7764 * tree-ssa-dce.c (find_obviously_necessary_stmts): Fix the
7765 test for an exit edge.
7767 2021-10-22 Aldy Hernandez <aldyh@redhat.com>
7768 Andrew MacLeod <amacleod@redhat.com>
7770 * gimple-range-path.cc (path_range_query::compute_phi_relations):
7771 Kill any global relations we may know before registering a new
7773 * value-relation.cc (path_oracle::killing_def): New.
7774 * value-relation.h (path_oracle::killing_def): New.
7776 2021-10-22 Richard Biener <rguenther@suse.de>
7779 * tree-ssa-sccvn.c (vn_phi_insert): For undefined SSA args
7781 (vn_phi_lookup): Likewise.
7783 2021-10-21 H.J. Lu <hjl.tools@gmail.com>
7786 * doc/invoke.texi: Document -fcf-protection requires i686 or
7789 2021-10-21 Eric Botcazou <ebotcazou@adacore.com>
7791 PR middle-end/102764
7792 * cfgexpand.c (expand_gimple_basic_block): Robustify latest change.
7794 2021-10-21 Jonathan Wright <jonathan.wright@arm.com>
7796 * config/aarch64/arm_neon.h (__STRUCTN): Delete function
7797 macro and all invocations.
7799 2021-10-21 Andrew MacLeod <amacleod@redhat.com>
7801 * doc/invoke.texi (ranger-debug): Document.
7802 * flag-types.h (enum ranger_debug): New.
7803 (enum evrp_mode): Remove debug values.
7804 * gimple-range-cache.cc (DEBUG_RANGE_CACHE): Use new debug flag.
7805 * gimple-range-gori.cc (gori_compute::gori_compute): Ditto.
7806 * gimple-range.cc (gimple_ranger::gimple_ranger): Ditto.
7807 * gimple-ssa-evrp.c (hybrid_folder::choose_value): Ditto.
7808 (execute_early_vrp): Use evrp-mode directly.
7809 * params.opt (enum evrp_mode): Remove debug values.
7810 (ranger-debug): New.
7811 (ranger-logical-depth): Relocate to be in alphabetical order.
7813 2021-10-21 Andrew MacLeod <amacleod@redhat.com>
7815 * doc/invoke.texi: (vrp1-mode, vrp2-mode): Document.
7816 * flag-types.h: (enum vrp_mode): New.
7817 * params.opt: (vrp1-mode, vrp2-mode): New.
7818 * tree-vrp.c (vrp_pass_num): New.
7819 (pass_vrp::pass_vrp): Set pass number.
7820 (pass_vrp::execute): Choose which VRP mode to execute.
7822 2021-10-21 Andrew MacLeod <amacleod@redhat.com>
7824 * gimple-ssa-evrp.c (class rvrp_folder): Move to tree-vrp.c.
7825 (execute_early_vrp): For ranger only mode, invoke ranger_vrp.
7826 * tree-vrp.c (class rvrp_folder): Relocate here.
7827 (execute_ranger_vrp): New.
7828 * tree-vrp.h (execute_ranger_vrp): Export.
7830 2021-10-21 Martin Liska <mliska@suse.cz>
7834 * opts.c (finish_options): Process flag_var_tracking* options
7835 here as they can be adjusted by optimize attribute.
7836 Process also flag_syntax_only and flag_gtoggle.
7837 * toplev.c (process_options): Remove it here.
7838 * common.opt: Make debug_nonbind_markers_p as PerFunction
7839 attribute as it depends on optimization level.
7841 2021-10-21 Martin Jambor <mjambor@suse.cz>
7843 PR tree-optimization/102505
7844 * tree-sra.c (totally_scalarize_subtree): Check that the
7845 encountered field fits within the acces we would like to put it
7848 2021-10-21 Aldy Hernandez <aldyh@redhat.com>
7850 * tree-ssa-threadbackward.c
7851 (back_threader::maybe_register_path): Remove circular paths check.
7853 2021-10-21 Richard Biener <rguenther@suse.de>
7855 * toplev.c (process_options): Move the initial debug_hooks
7857 (toplev::main): ... before the call of the post_options
7860 2021-10-21 Richard Biener <rguenther@suse.de>
7862 PR tree-optimization/102847
7863 * tree-vect-stmts.c (vect_model_load_cost): Add the scalar
7864 load cost in the prologue for VMAT_INVARIANT.
7866 2021-10-21 Richard Biener <rguenther@suse.de>
7868 PR tree-optimization/102847
7869 * tree-vect-stmts.c (vect_model_load_cost): Explicitely
7870 handle VMAT_INVARIANT as a splat in the prologue.
7872 2021-10-21 Hongyu Wang <hongyu.wang@intel.com>
7875 * config/i386/i386.c (ix86_get_ssemov): Adjust HFmode vector
7876 move to use the same logic as HImode.
7878 2021-10-21 Richard Biener <rguenther@suse.de>
7880 * tree-vect-slp.c (vect_build_slp_tree_1): Remove
7881 superfluous gimple_call_nothrow_p check.
7883 2021-10-21 Andrew Pinski <apinski@marvell.com>
7885 * tree-cfg.c (maybe_remove_writeonly_store): Add dce_ssa_names argument.
7886 Mark the ssa-name of the rhs as one to be removed.
7887 (execute_fixup_cfg): Update call to maybe_remove_writeonly_store.
7888 Call simple_dce_from_worklist at the end to a simple dce.
7890 2021-10-21 Andrew Pinski <apinski@marvell.com>
7892 * tree-cfg.c (maybe_remove_writeonly_store): New function
7893 factored out from ...
7894 (execute_fixup_cfg): Here. Call maybe_remove_writeonly_store.
7896 2021-10-21 Andrew Pinski <apinski@marvell.com>
7898 * tree-cfg.c (execute_fixup_cfg): Remove comment
7899 about standalone pass.
7901 2021-10-21 Andrew Pinski <apinski@marvell.com>
7903 * tree-cfg.c (execute_fixup_cfg): Output when the statement
7904 is removed when it is a write only var.
7906 2021-10-21 Aldy Hernandez <aldyh@redhat.com>
7908 * tree-ssa-threadbackward.c (back_threader::maybe_register_path):
7909 Avoid threading circular paths.
7911 2021-10-20 Alex Coplan <alex.coplan@arm.com>
7913 * calls.c (initialize_argument_information): Remove some dead
7914 code, remove handling for function_arg returning const_int.
7915 * doc/tm.texi: Delete documentation for unused target hooks.
7916 * doc/tm.texi.in: Likewise.
7917 * target.def (load_bounds_for_arg): Delete.
7918 (store_bounds_for_arg): Delete.
7919 (load_returned_bounds): Delete.
7920 (store_returned_bounds): Delete.
7921 * targhooks.c (default_load_bounds_for_arg): Delete.
7922 (default_store_bounds_for_arg): Delete.
7923 (default_load_returned_bounds): Delete.
7924 (default_store_returned_bounds): Delete.
7925 * targhooks.h (default_load_bounds_for_arg): Delete.
7926 (default_store_bounds_for_arg): Delete.
7927 (default_load_returned_bounds): Delete.
7928 (default_store_returned_bounds): Delete.
7930 2021-10-20 Jonathan Wakely <jwakely@redhat.com>
7932 * doc/extend.texi (Basic Asm): Clarify that asm is not an
7934 * doc/invoke.texi (-fno-asm): Fix description for C++.
7936 2021-10-20 Jonathan Wakely <jwakely@redhat.com>
7938 * doc/install.texi: Remove link to old.html
7940 2021-10-20 Tamar Christina <tamar.christina@arm.com>
7942 * config/aarch64/aarch64-simd.md (*aarch64_cmtst_same_<mode>): New.
7944 2021-10-20 Tamar Christina <tamar.christina@arm.com>
7946 * config/aarch64/aarch64-simd.md (*aarch64_narrow_trunc<mode>): New.
7948 2021-10-20 Tamar Christina <tamar.christina@arm.com>
7950 * config/aarch64/aarch64-simd.md (aarch64_simd_ashr<mode>): Add case cmp
7952 * config/aarch64/constraints.md (D1): New.
7954 2021-10-20 Tamar Christina <tamar.christina@arm.com>
7956 * config/aarch64/aarch64-simd.md
7957 (*aarch64_<srn_op>topbits_shuffle<mode>_le): New.
7958 (*aarch64_topbits_shuffle<mode>_le): New.
7959 (*aarch64_<srn_op>topbits_shuffle<mode>_be): New.
7960 (*aarch64_topbits_shuffle<mode>_be): New.
7961 * config/aarch64/predicates.md
7962 (aarch64_simd_shift_imm_vec_exact_top): New.
7964 2021-10-20 Tamar Christina <tamar.christina@arm.com>
7966 * config/aarch64/aarch64-simd.md (*aarch64_<srn_op>shrn<mode>_vect,
7967 *aarch64_<srn_op>shrn<mode>2_vect_le,
7968 *aarch64_<srn_op>shrn<mode>2_vect_be): New.
7969 * config/aarch64/iterators.md (srn_op): New.
7971 2021-10-20 Chung-Lin Tang <cltang@codesourcery.com>
7973 * omp-low.c (omp_copy_decl_2): For !ctx, use record_vars to add new copy
7975 (scan_sharing_clauses): Place copy of OMP_CLAUSE_IN_REDUCTION decl in
7976 ctx->outer instead of ctx.
7978 2021-10-20 Martin Liska <mliska@suse.cz>
7981 2021-10-19 Martin Liska <mliska@suse.cz>
7984 * config/i386/i386-options.c (ix86_valid_target_attribute_inner_p): Strip whitespaces.
7985 * system.h (strip_whilespaces): New function.
7987 2021-10-20 Martin Liska <mliska@suse.cz>
7990 2021-10-19 Martin Liska <mliska@suse.cz>
7993 * config/aarch64/aarch64.c (aarch64_process_one_target_attr):
7996 2021-10-20 Wilco Dijkstra <wdijkstr@arm.com>
7998 * config/aarch64/aarch64.c (aarch64_case_values_threshold):
7999 Change to 8 with -Os, 11 otherwise.
8001 2021-10-20 Wilco Dijkstra <wdijkstr@arm.com>
8003 * config/aarch64/aarch64.c (neoversev1_tunings):
8004 Enable AARCH64_EXTRA_TUNE_CHEAP_SHIFT_EXTEND.
8005 (neoversen2_tunings): Likewise.
8007 2021-10-20 Wilco Dijkstra <wdijkstr@arm.com>
8010 * config/aarch64/aarch64.md (frint_pattern): Update comment.
8011 * config/aarch64/aarch64-simd-builtins.def: Change frintn to roundeven.
8012 * config/aarch64/arm_fp16.h: Change frintn to roundeven.
8013 * config/aarch64/arm_neon.h: Likewise.
8014 * config/aarch64/iterators.md (frint_pattern): Use roundeven for FRINTN.
8016 2021-10-20 Martin Liska <mliska@suse.cz>
8018 * config/arm/arm.c (arm_unwind_emit_sequence): Do not declare
8019 already declared global variable.
8020 (arm_unwind_emit_set): Use out_file as function argument.
8021 (arm_unwind_emit): Likewise.
8022 * config/darwin.c (machopic_output_data_section_indirection): Likewise.
8023 (machopic_output_stub_indirection): Likewise.
8024 (machopic_output_indirection): Likewise.
8025 (machopic_finish): Likewise.
8026 * config/i386/i386.c (ix86_asm_output_function_label): Likewise.
8027 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
8028 * config/ia64/ia64.c (process_epilogue): Likewise.
8029 (process_cfa_adjust_cfa): Likewise.
8030 (process_cfa_register): Likewise.
8031 (process_cfa_offset): Likewise.
8032 (ia64_asm_unwind_emit): Likewise.
8033 * config/s390/s390.c (s390_asm_output_function_label): Likewise.
8035 2021-10-20 Andre Simoes Dias Vieira <andre.simoesdiasvieira@arm.com>
8037 * config/aarch64/aarch64-builtins.c
8038 (aarch64_general_gimple_fold_builtin):
8039 lower vld1 and vst1 variants of the neon builtins
8040 * config/aarch64/aarch64-protos.h:
8041 (aarch64_general_gimple_fold_builtin): Add gsi parameter.
8042 * config/aarch64/aarch64.c (aarch64_general_gimple_fold_builtin):
8045 2021-10-20 Andre Simoes Dias Vieira <andre.simoesdiasvieira@arm.com>
8047 * match.pd: Generate IFN_TRUNC.
8049 2021-10-20 Richard Biener <rguenther@suse.de>
8051 PR tree-optimization/102853
8052 * tree-data-ref.c (split_constant_offset_1): Bail out
8053 immediately if the expression traps on overflow.
8055 2021-10-20 Aldy Hernandez <aldyh@redhat.com>
8057 * tree-ssa-threadbackward.c (back_threader::~back_threader): Remove.
8059 2021-10-20 Aldy Hernandez <aldyh@redhat.com>
8061 * tree-ssa-threadupdate.c (back_jt_path_registry::adjust_paths_after_duplication):
8062 Remove superflous debugging message.
8063 (back_jt_path_registry::duplicate_thread_path): Same.
8065 2021-10-20 Aldy Hernandez <aldyh@redhat.com>
8067 * tree-ssa-threadbackward.c (back_threader_registry::back_threader_registry):
8069 (back_threader_registry::register_path): Remove m_threaded_paths.
8071 2021-10-20 Aldy Hernandez <aldyh@redhat.com>
8073 PR tree-optimization/102814
8074 * doc/invoke.texi: Document --param=max-fsm-thread-length.
8075 * params.opt: Add --param=max-fsm-thread-length.
8076 * tree-ssa-threadbackward.c
8077 (back_threader_profitability::profitable_path_p): Fail on paths
8078 longer than max-fsm-thread-length.
8080 2021-10-20 Eric Botcazou <ebotcazou@adacore.com>
8082 PR middle-end/102764
8083 * cfgexpand.c (expand_gimple_basic_block): Disregard a final debug
8084 statement to reset the current location for the outgoing edges.
8086 2021-10-20 Aldy Hernandez <aldyh@redhat.com>
8087 Richard Biener <rguenther@suse.de>
8089 * tree-ssa-threadupdate.c (cancel_thread): Dump threading reason
8090 on the same line as the threading cancellation.
8091 (jt_path_registry::cancel_invalid_paths): Avoid rotating loops.
8092 Avoid threading through loop headers where the path remains in the
8095 2021-10-20 Siddhesh Poyarekar <siddhesh@gotplt.org>
8097 * tree-object-size.c (unknown): Make into a function. Adjust
8099 (unknown_object_size): Simplify implementation.
8101 2021-10-20 Hongtao Liu <hongtao.liu@intel.com>
8102 Kewen Lin <linkw@linux.ibm.com>
8104 * doc/sourcebuild.texi (Effective-Target Keywords): Document
8105 vect_slp_v2qi_store, vect_slp_v4qi_store, vect_slp_v8qi_store,
8106 vect_slp_v16qi_store, vect_slp_v2hi_store,
8107 vect_slp_v4hi_store, vect_slp_v2si_store, vect_slp_v4si_store.
8109 2021-10-19 Jonathan Wakely <jwakely@redhat.com>
8111 * doc/extend.texi (Basic PowerPC Built-in Functions): Fix typo.
8113 2021-10-19 Paul A. Clarke <pc@us.ibm.com>
8117 * config/rs6000/emmintrin.h: Guard POWER8 intrinsics.
8118 * config/rs6000/pmmintrin.h: Same.
8119 * config/rs6000/smmintrin.h: Same.
8120 * config/rs6000/tmmintrin.h: Same.
8122 2021-10-19 Paul A. Clarke <pc@us.ibm.com>
8124 * config.gcc (extra_headers): Add nmmintrin.h.
8126 2021-10-19 Richard Biener <rguenther@suse.de>
8128 * tree-vectorizer.h (vect_supportable_dr_alignment): Add
8129 misalignment parameter.
8130 * tree-vect-data-refs.c (vect_get_peeling_costs_all_drs):
8131 Do not change DR_MISALIGNMENT in place, instead pass the
8132 adjusted misalignment to vect_supportable_dr_alignment.
8133 (vect_peeling_supportable): Likewise.
8134 (vect_peeling_hash_get_lowest_cost): Adjust.
8135 (vect_enhance_data_refs_alignment): Likewise.
8136 (vect_vfa_access_size): Likewise.
8137 (vect_supportable_dr_alignment): Add misalignment
8138 parameter and simplify.
8139 * tree-vect-stmts.c (get_negative_load_store_type): Adjust.
8140 (get_group_load_store_type): Likewise.
8141 (get_load_store_type): Likewise.
8143 2021-10-19 Clément Chigot <clement.chigot@atos.net>
8145 * config/rs6000/rs6000.c (rs6000_xcoff_file_end): Move
8146 __tls_get_addr reference to .text csect.
8148 2021-10-19 Martin Liska <mliska@suse.cz>
8151 * config/aarch64/aarch64.c (aarch64_process_one_target_attr):
8154 2021-10-19 Richard Biener <rguenther@suse.de>
8156 * tree-vectorizer.h (vect_get_store_cost): Adjust signature.
8157 (vect_get_load_cost): Likewise.
8158 * tree-vect-data-refs.c (vect_get_data_access_cost): Get
8159 alignment support scheme and misalignment as arguments
8161 (vect_get_peeling_costs_all_drs): Compute that info here
8162 and note that we shouldn't need to.
8163 * tree-vect-stmts.c (vect_model_store_cost): Get
8164 alignment support scheme and misalignment as arguments.
8165 (vect_get_store_cost): Likewise.
8166 (vect_model_load_cost): Likewise.
8167 (vect_get_load_cost): Likewise.
8168 (vectorizable_store): Pass down alignment support scheme
8169 and misalignment to costing.
8170 (vectorizable_load): Likewise.
8172 2021-10-19 Richard Biener <rguenther@suse.de>
8174 * tree-vect-stmts.c (get_negative_load_store_type): Add
8175 offset output parameter and initialize it.
8176 (get_group_load_store_type): Likewise.
8177 (get_load_store_type): Likewise.
8178 (vectorizable_store): Use offset as computed by
8179 get_load_store_type.
8180 (vectorizable_load): Likewise.
8182 2021-10-19 Richard Biener <rguenther@suse.de>
8184 PR tree-optimization/102827
8185 * tree-if-conv.c (predicate_statements): Add pe parameter
8186 and use that edge to insert invariant stmts on.
8187 (combine_blocks): Pass through pe.
8188 (tree_if_conversion): Compute the edge to insert invariant
8189 stmts on and pass it along.
8191 2021-10-19 Roger Sayle <roger@nextmovesoftware.com>
8194 * config/bfin/bfin.md (addsubv2hi3, subaddv2hi3, ssaddsubv2hi3,
8195 sssubaddv2hi3): Swap the order of operators in vec_concat.
8197 2021-10-19 Xionghu Luo <luoxhu@linux.ibm.com>
8199 * config/rs6000/altivec.md (*altivec_vmrghb_internal): Delete.
8200 (altivec_vmrghb_direct): New.
8201 (*altivec_vmrghh_internal): Delete.
8202 (altivec_vmrghh_direct): New.
8203 (*altivec_vmrghw_internal): Delete.
8204 (altivec_vmrghw_direct_<mode>): New.
8205 (altivec_vmrghw_direct): Delete.
8206 (*altivec_vmrglb_internal): Delete.
8207 (altivec_vmrglb_direct): New.
8208 (*altivec_vmrglh_internal): Delete.
8209 (altivec_vmrglh_direct): New.
8210 (*altivec_vmrglw_internal): Delete.
8211 (altivec_vmrglw_direct_<mode>): New.
8212 (altivec_vmrglw_direct): Delete.
8213 * config/rs6000/rs6000-p8swap.c (rtx_is_swappable_p): Adjust.
8214 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const):
8216 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust.
8217 (vsx_xxmrglw_<mode>): Adjust.
8219 2021-10-19 Aldy Hernandez <aldyh@redhat.com>
8221 * passes.def: Change threading comment before pass_ccp pass.
8223 2021-10-19 Haochen Gui <guihaoc@gcc.gnu.org>
8225 * config/rs6000/rs6000-call.c (altivec_expand_lxvr_builtin):
8226 Modify the expansion for sign extension. All extensions are done
8227 within VSX registers.
8229 2021-10-19 Richard Biener <rguenther@suse.de>
8231 * tree-vect-stmts.c (get_group_load_store_type): Add
8232 misalignment output parameter and initialize it.
8233 (get_group_load_store_type): Likewise.
8234 (vectorizable_store): Remove now redundant queries.
8235 (vectorizable_load): Likewise.
8237 2021-10-19 Richard Biener <rguenther@suse.de>
8239 * tree-vectorizer.h (vect_supportable_dr_alignment): Remove
8240 check_aligned argument.
8241 * tree-vect-data-refs.c (vect_supportable_dr_alignment):
8243 (vect_peeling_hash_insert): Add supportable_if_not_aligned
8244 argument and do not call vect_supportable_dr_alignment here.
8245 (vect_peeling_supportable): Adjust.
8246 (vect_enhance_data_refs_alignment): Compute whether the
8247 access is supported with different alignment here and
8248 pass that down to vect_peeling_hash_insert.
8249 (vect_vfa_access_size): Adjust.
8250 * tree-vect-stmts.c (vect_get_store_cost): Likewise.
8251 (vect_get_load_cost): Likewise.
8252 (get_negative_load_store_type): Likewise.
8253 (get_group_load_store_type): Likewise.
8254 (get_load_store_type): Likewise.
8256 2021-10-19 Martin Liska <mliska@suse.cz>
8259 * config/i386/i386-options.c (ix86_valid_target_attribute_inner_p): Strip whitespaces.
8260 * system.h (strip_whilespaces): New function.
8262 2021-10-19 dianhong xu <dianhong.xu@intel.com>
8264 * config/i386/avx512fp16intrin.h:
8265 (_mm512_set1_pch): New intrinsic.
8266 * config/i386/avx512fp16vlintrin.h:
8267 (_mm256_set1_pch): New intrinsic.
8268 (_mm_set1_pch): Ditto.
8270 2021-10-18 Andrew MacLeod <amacleod@redhat.com>
8272 PR tree-optimization/102796
8273 * gimple-range.cc (gimple_ranger::range_on_edge): Process EH edges
8274 normally. Return get_tree_range for non gimple_range_ssa_p names.
8275 (gimple_ranger::range_of_stmt): Use get_tree_range for non
8276 gimple_range_ssa_p names.
8278 2021-10-18 Uroš Bizjak <ubizjak@gmail.com>
8281 * config/i386/i386.c (ix86_print_operand_address):
8282 Error out for non-address_operand asm operands.
8284 2021-10-18 Richard Biener <rguenther@suse.de>
8286 * tree-vect-data-refs.c (vect_peeling_hash_insert): Do
8287 not auto-convert dr_alignment_support to bool.
8288 (vect_peeling_supportable): Likewise.
8289 (vect_enhance_data_refs_alignment): Likewise.
8290 (vect_supportable_dr_alignment): Commonize read/write case.
8291 * tree-vect-stmts.c (vect_get_store_cost): Use
8292 dr_alignment_support, not int, for the vect_supportable_dr_alignment
8294 (vect_get_load_cost): Likewise.
8296 2021-10-18 Siddhesh Poyarekar <siddhesh@gotplt.org>
8298 * tree-object-size.c (object_sizes_execute): Consolidate LHS
8299 null check and do it early.
8301 2021-10-18 Richard Biener <rguenther@suse.de>
8303 * tree-vect-stmts.c (vectorizable_store): Use the
8304 computed alignment scheme instead of querying
8307 2021-10-18 Richard Biener <rguenther@suse.de>
8309 * tree-vect-stmts.c (vectorizable_store): Do not recompute
8310 alignment scheme already determined by get_load_store_type.
8312 2021-10-18 Aldy Hernandez <aldyh@redhat.com>
8314 * tree-ssa-threadbackward.c (class pass_thread_jumps_full):
8315 Clone corresponding pass.
8317 2021-10-18 Roger Sayle <roger@nextmovesoftware.com>
8319 * combine.c (recog_for_combine): For an unrecognized move/set of
8320 a constant, try force_const_mem to place it in the constant pool.
8321 * cse.c (constant_pool_entries_cost, constant_pool_entries_regcost):
8322 Delete global variables (that are no longer assigned a cost value).
8323 (cse_insn): Simplify logic for deciding whether to place a folded
8324 constant in the constant pool using force_const_mem.
8325 (cse_main): Remove zero initialization of constant_pool_entries_cost
8326 and constant_pool_entries_regcost.
8327 * config/i386/i386.c (ix86_rtx_costs): Make memory accesses
8328 fractionally more expensive, when optimizing for speed.
8330 2021-10-18 Martin Liska <mliska@suse.cz>
8332 PR gcov-profile/102746
8333 PR gcov-profile/102747
8334 * gcov.c (main): Return return_code.
8335 (output_gcov_file): Mark return_code when error happens.
8336 (generate_results): Likewise.
8337 (read_graph_file): Likewise.
8338 (read_count_file): Likewise.
8340 2021-10-18 Roger Sayle <roger@nextmovesoftware.com>
8342 * config/bfin/bfin.md (define_constants): Remove UNSPEC_ONES.
8343 (define_insn "ones"): Replace UNSPEC_ONES with a truncate of
8344 a popcount, allowing compile-time evaluation/simplification.
8345 (popcountsi2, popcounthi2): New expanders using a "ones" insn.
8347 2021-10-18 Richard Biener <rguenther@suse.de>
8349 PR tree-optimization/102788
8350 * tree-vect-patterns.c (vect_init_pattern_stmt): Allow
8352 (vect_pattern_recog_1): Likewise.
8353 (vect_recog_bool_pattern): Continue matching the pattern
8354 even if we do not have a vector type for a conversion
8357 2021-10-18 Roger Sayle <roger@nextmovesoftware.com>
8359 * simplify-rtx.c (simplify_const_unary_operation) [SS_NEG, SS_ABS]:
8360 Evalute SS_NEG and SS_ABS of a constant argument.
8362 2021-10-18 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
8365 * gimple-match-head.c (try_conditional_simplification): Add case for single operand.
8366 * internal-fn.def: Add entry for COND_NEG internal function.
8367 * internal-fn.c (FOR_EACH_CODE_MAPPING): Add entry for
8368 NEGATE_EXPR, COND_NEG mapping.
8369 * optabs.def: Add entry for cond_neg_optab.
8370 * match.pd (UNCOND_UNARY, COND_UNARY): New operator lists.
8371 (vec_cond COND (foo A) B) -> (IFN_COND_FOO COND A B): New pattern.
8372 (vec_cond COND B (foo A)) -> (IFN_COND_FOO ~COND A B): Likewise.
8374 2021-10-18 Aldy Hernandez <aldyh@redhat.com>
8376 * tree-ssa-strlen.c (class strlen_pass): Rename from
8378 (handle_builtin_stxncpy_strncat): Move to strlen_pass.
8379 (handle_assign): Same.
8380 (adjust_last_stmt): Same.
8381 (maybe_warn_overflow): Same.
8382 (handle_builtin_strlen): Same.
8383 (handle_builtin_strchr): Same.
8384 (handle_builtin_strcpy): Same.
8385 (handle_builtin_strncat): Same.
8386 (handle_builtin_stxncpy_strncat): Same.
8387 (handle_builtin_memcpy): Same.
8388 (handle_builtin_strcat): Same.
8389 (handle_alloc_call): Same.
8390 (handle_builtin_memset): Same.
8391 (handle_builtin_memcmp): Same.
8392 (get_len_or_size): Same.
8393 (strxcmp_eqz_result): Same.
8394 (handle_builtin_string_cmp): Same.
8395 (handle_pointer_plus): Same.
8396 (count_nonzero_bytes_addr): Same.
8397 (count_nonzero_bytes): Same.
8398 (handle_store): Same.
8399 (strlen_check_and_optimize_call): Same.
8400 (handle_integral_assign): Same.
8401 (check_and_optimize_stmt): Same.
8402 (printf_strlen_execute): Rename strlen_dom_walker to strlen_pass.
8404 2021-10-18 Richard Biener <rguenther@suse.de>
8406 PR tree-optimization/102798
8407 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
8408 Only copy points-to info to newly generated SSA names.
8410 2021-10-18 Martin Liska <mliska@suse.cz>
8412 * dbgcnt.c (dbg_cnt_process_opt): Remove unused but set variable.
8413 * gcov.c (get_cycles_count): Likewise.
8414 * lto-compress.c (lto_compression_zlib): Likewise.
8415 (lto_uncompression_zlib): Likewise.
8416 * targhooks.c (default_pch_valid_p): Likewise.
8418 2021-10-17 Aldy Hernandez <aldyh@redhat.com>
8420 * tree-pass.h (make_pass_thread_jumps_full): New.
8421 * tree-ssa-threadbackward.c (pass_thread_jumps::gate): Inline.
8422 (try_thread_blocks): Add resolve and speed arguments.
8423 (pass_thread_jumps::execute): Inline.
8424 (do_early_thread_jumps): New.
8425 (do_thread_jumps): New.
8426 (make_pass_thread_jumps): Move.
8427 (pass_early_thread_jumps::gate): Inline.
8428 (pass_early_thread_jumps::execute): Inline.
8429 (class pass_thread_jumps_full): New.
8431 2021-10-16 Piotr Kubaj <pkubaj@FreeBSD.org>
8433 * configure.ac: Treat powerpc64*-*-freebsd* the same as
8434 powerpc64-*-freebsd*.
8435 * configure: Regenerate.
8437 2021-10-16 H.J. Lu <hjl.tools@gmail.com>
8439 * value-query.cc (get_ssa_name_ptr_info_nonnull): Change
8440 set_ptr_nonull to set_ptr_nonnull in comments.
8442 2021-10-16 Jan Hubicka <hubicka@ucw.cz>
8444 PR tree-optimization/102720
8445 * tree-ssa-structalias.c (compute_points_to_sets): Fix producing
8446 of call used and clobbered sets.
8448 2021-10-15 Iain Sandoe <iain@sandoe.co.uk>
8450 * config/darwin.h (LINK_COMMAND_SPEC_A): Update 'r' handling to
8451 skip gomp and itm when r or nodefaultlibs is given.
8452 (DSYMUTIL_SPEC): Do not call dsymutil for '-r' link lines.
8453 Update ordering of exclusions, remove duplicate 'v' addition
8454 (collect2 will add this from the main command line).
8456 2021-10-15 Iain Sandoe <iain@sandoe.co.uk>
8458 * config/darwin-driver.c (darwin_driver_init): Revise comments, handle
8459 filelist and framework options in specs instead of code.
8460 * config/darwin.h (SUBTARGET_DRIVER_SELF_SPECS): Update to handle link
8461 specs that are really driver ones.
8462 (DARWIN_CC1_SPEC): Likewise.
8463 (CPP_SPEC): Likewise.
8464 (SYSROOT_SPEC): Append space.
8465 (LINK_SYSROOT_SPEC): Remove most driver link specs.
8466 (STANDARD_STARTFILE_PREFIX_2): Update link-related specs.
8467 (STARTFILE_SPEC): Likewise.
8468 (ASM_MMACOSX_VERSION_MIN_SPEC): Fix line wrap.
8469 (ASM_SPEC): Update driver-related specs.
8470 (ASM_FINAL_SPEC): Likewise.
8471 * config/darwin.opt: Remove now unused option aliases.
8472 * config/i386/darwin.h (EXTRA_ASM_OPTS): Ensure space after opt.
8473 (ASM_SPEC): Update driver-related specs.
8475 2021-10-15 Roger Sayle <roger@nextmovesoftware.com>
8477 * config/i386/i386.c (ix86_hardreg_mov_ok): For vector modes,
8478 allow standard_sse_constant_p immediate constants.
8480 2021-10-15 Iain Sandoe <iain@sandoe.co.uk>
8482 * config.gcc: Add tm-dwarf2.h to tm_d-file.
8484 2021-10-15 Andrew MacLeod <amacleod@redhat.com>
8486 * gimple-range-fold.h (gimple_range_ssa_p): Don't process names
8487 that occur in abnormal phis.
8488 * gimple-range.cc (gimple_ranger::range_on_edge): Return false for
8489 abnormal and EH edges.
8490 * gimple-ssa-evrp.c (rvrp_folder::value_of_expr): Ditto.
8491 (rvrp_folder::value_on_edge): Ditto.
8492 (rvrp_folder::value_of_stmt): Ditto.
8493 (hybrid_folder::value_of_expr): Ditto for ranger queries.
8494 (hybrid_folder::value_on_edge): Ditto.
8495 (hybrid_folder::value_of_stmt): Ditto.
8496 * value-query.cc (gimple_range_global): Always return a range if
8497 the type is supported.
8499 2021-10-15 John David Anglin <danglin@gcc.gnu.org>
8501 * config/pa/pa.md: Consistently use "rG" constraint for copy
8502 instruction in move patterns.
8504 2021-10-15 Andrew Stubbs <ams@codesourcery.com>
8506 * config/gcn/gcn-hsa.h (S_FIJI): Set unconditionally.
8509 * config/gcn/gcn.c: Hard code SRAM ECC settings for old architectures.
8510 * config/gcn/mkoffload.c (ELFABIVERSION_AMDGPU_HSA): Rename to ...
8511 (ELFABIVERSION_AMDGPU_HSA_V3): ... this.
8512 (ELFABIVERSION_AMDGPU_HSA_V4): New.
8513 (SET_SRAM_ECC_UNSUPPORTED): New.
8514 (copy_early_debug_info): Create elf flags to match the other objects.
8515 (main): Just let the attribute flags pass through.
8517 2021-10-15 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
8519 * tree-loop-distribution.c (reduction_var_overflows_first):
8520 Pass the type of reduction_var as first argument as it is also
8521 done for the load type.
8522 (loop_distribution::transform_reduction_loop): Add missing
8523 TREE_TYPE while determining precission of reduction_var.
8525 2021-10-15 Richard Biener <rguenther@suse.de>
8527 * defaults.h (PREFERRED_DEBUGGING_TYPE): Choose DWARF2_DEBUG
8529 * toplev.c (process_options): Warn when STABS debugging is
8530 enabled but not the preferred format.
8531 * config/pa/som.h (PREFERRED_DEBUGGING_TYPE): Define to
8533 * config/pdp11/pdp11.h (PREFERRED_DEBUGGING_TYPE): Likewise.
8535 2021-10-15 Richard Biener <rguenther@suse.de>
8538 * tree-inline.c (copy_bb): Avoid underflowing nargs.
8540 2021-10-15 Hongyu Wang <hongyu.wang@intel.com>
8542 * config/i386/i386-expand.c (ix86_expand_vec_perm): Convert
8543 HFmode input operand to HImode.
8544 (ix86_vectorize_vec_perm_const): Likewise.
8545 * config/i386/sse.md (*avx512bw_permvar_truncv16siv16hi_1_hf):
8547 (*avx512f_permvar_truncv8siv8hi_1_hf):
8550 2021-10-15 Richard Biener <rguenther@suse.de>
8552 PR middle-end/102682
8553 * expmed.c (store_bit_field_1): Ensure a LHS subreg would
8554 not create a paradoxical subreg.
8556 2021-10-15 Hongyu Wang <hongyu.wang@intel.com>
8558 * config/i386/i386-expand.c (ix86_expand_vector_init):
8559 For half_vector concat for HFmode, handle them like HImode.
8561 2021-10-14 Aldy Hernandez <aldyh@redhat.com>
8563 * tree-ssa-threadbackward.c (class back_threader): Add m_resolve.
8564 (back_threader::back_threader): Same.
8565 (back_threader::resolve_phi): Try to solve without looking back if
8567 (back_threader::find_paths_to_names): Same.
8568 (try_thread_blocks): Pass resolve argument to back threader.
8569 (pass_early_thread_jumps::execute): Same.
8571 2021-10-14 Aldy Hernandez <aldyh@redhat.com>
8573 * doc/invoke.texi: Remove max-fsm-thread-length,
8574 max-fsm-thread-paths, and fsm-maximum-phi-arguments.
8576 * tree-ssa-threadbackward.c (back_threader::back_threader): Remove
8578 (back_threader_registry::back_threader_registry): Same.
8579 (back_threader_profitability::profitable_path_p): Remove
8580 param_max_fsm_thread-length.
8581 (back_threader_registry::register_path): Remove
8582 m_max_allowable_paths.
8584 2021-10-14 Aldy Hernandez <aldyh@redhat.com>
8586 * tree-ssa-threadbackward.c (class back_threader): Make m_imports
8588 (back_threader::~back_threader): Do not release m_path.
8590 2021-10-14 Andrew MacLeod <amacleod@redhat.com>
8592 PR tree-optimization/102738
8593 * vr-values.c (simplify_using_ranges::simplify): Handle RSHIFT_EXPR.
8595 2021-10-14 Kwok Cheung Yeung <kcy@codesourcery.com>
8597 * omp-general.c (omp_check_context_selector): Move from c-omp.c.
8598 (omp_mark_declare_variant): Move from c-omp.c.
8599 (omp_context_name_list_prop): Update for Fortran strings.
8600 * omp-general.h (omp_check_context_selector): New prototype.
8601 (omp_mark_declare_variant): New prototype.
8603 2021-10-14 Richard Sandiford <richard.sandiford@arm.com>
8605 * config/rs6000/rs6000.c (rs6000_density_test): Move early
8606 exit test further up the function.
8608 2021-10-14 Richard Sandiford <richard.sandiford@arm.com>
8610 * config/arm/arm.c (arm_add_stmt_cost): Delete.
8611 (TARGET_VECTORIZE_ADD_STMT_COST): Delete.
8613 2021-10-14 Martin Jambor <mjambor@suse.cz>
8615 * doc/invoke.texi (Optimize Options): Add entry for
8616 ipa-cp-recursive-freq-factor.
8618 2021-10-14 Tamar Christina <tamar.christina@arm.com>
8620 * match.pd: New rule.
8622 2021-10-14 Jan Hubicka <hubicka@ucw.cz>
8625 * ipa-modref-tree.h (modref_access_node::update2):
8626 Also check that parm_offset is unchanged.
8627 (modref_ref_node::insert_access): Fix updating of
8630 2021-10-14 Aldy Hernandez <aldyh@redhat.com>
8632 * tree-ssa-threadbackward.c (back_threader::resolve_phi): Add
8635 2021-10-14 Richard Biener <rguenther@suse.de>
8637 PR tree-optimization/102659
8638 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Also
8639 rewrite pointer typed undefined overflow operations.
8640 (predicate_statements): Likewise. Make sure to emit invariant
8641 conversions in the preheader.
8642 * tree-vectorizer.c (vect_loop_vectorized_call): Look through
8643 non-empty preheaders.
8644 * tree-data-ref.c (dr_analyze_indices): Strip useless
8645 conversions to the MEM_REF base type.
8647 2021-10-14 Martin Liska <mliska@suse.cz>
8649 * common.opt: Stop using AUTODETECT_VALUE
8650 and use EnabledBy where possible.
8651 * opts.c: Enable OPT_fvar_tracking with optimize >= 1.
8652 * toplev.c (AUTODETECT_VALUE): Remove macro.
8653 (process_options): Simplify by using EnabledBy and
8654 OPT_fvar_tracking. Use OPTION_SET_P macro instead of
8657 2021-10-14 Jonathan Wright <jonathan.wright@arm.com>
8659 * config/aarch64/arm_neon.h (vld1_s8_x3): Use signed type for
8661 (vld1_s32_x3): Likewise.
8663 2021-10-14 Aldy Hernandez <aldyh@redhat.com>
8665 PR tree-optimization/102736
8666 PR tree-optimization/102736
8667 * gimple-range-path.cc (path_range_query::range_on_path_entry):
8668 Assert that the requested range is defined outside the path.
8669 (path_range_query::ssa_range_in_phi): Do not call
8670 range_on_path_entry for SSA names that are defined within the
8673 2021-10-14 Iain Sandoe <iain@sandoe.co.uk>
8675 * config/darwin-driver.c (darwin_find_version_from_kernel):
8676 Quote internal identifiers and avoid contractions in
8678 (darwin_default_min_version): Likewise.
8679 (darwin_driver_init): Likewise.
8681 2021-10-14 Martin Jambor <mjambor@suse.cz>
8683 * params.opt (ipa-cp-recursive-freq-factor): New.
8684 * ipa-cp.c (ipcp_value): Switch to inline initialization. New members
8685 scc_no, self_recursion_generated_level, same_scc and
8686 self_recursion_generated_p.
8687 (ipcp_lattice::add_value): Replaced parameter unlimited with
8688 same_lat_gen_level, usit it determine limit of values and store it to
8690 (ipcp_lattice<valtype>::print): Dump the new fileds.
8691 (allocate_and_init_ipcp_value): Take same_lat_gen_level as a new
8692 parameter and store it to the new value.
8693 (self_recursively_generated_p): Removed.
8694 (propagate_vals_across_arith_jfunc): Use self_recursion_generated_p
8695 instead of self_recursively_generated_p, store self generation level
8697 (value_topo_info<valtype>::add_val): Set scc_no.
8698 (value_topo_info<valtype>::propagate_effects): Multiply frequencies of
8699 recursively feeding values and self generated values by appropriate
8702 2021-10-14 Richard Sandiford <richard.sandiford@arm.com>
8704 * config/aarch64/aarch64.c (aarch64_add_stmt_cost): Remove
8705 redundant test for flag_vect_cost_model.
8707 2021-10-14 Aldy Hernandez <aldyh@redhat.com>
8709 * bitmap.c (debug): New overloaded function for auto_bitmaps.
8710 * bitmap.h (debug): Same.
8712 2021-10-14 Hongyu Wang <hongyu.wang@intel.com>
8714 * config/i386/avx512fp16intrin.h (_mm512_mask_fcmadd_pch):
8715 Adjust builtin call.
8716 (_mm512_mask3_fcmadd_pch): Likewise.
8717 (_mm512_mask_fmadd_pch): Likewise
8718 (_mm512_mask3_fmadd_pch): Likewise
8719 (_mm512_mask_fcmadd_round_pch): Likewise
8720 (_mm512_mask3_fcmadd_round_pch): Likewise
8721 (_mm512_mask_fmadd_round_pch): Likewise
8722 (_mm512_mask3_fmadd_round_pch): Likewise
8723 (_mm_mask_fcmadd_sch): Likewise
8724 (_mm_mask3_fcmadd_sch): Likewise
8725 (_mm_mask_fmadd_sch): Likewise
8726 (_mm_mask3_fmadd_sch): Likewise
8727 (_mm_mask_fcmadd_round_sch): Likewise
8728 (_mm_mask3_fcmadd_round_sch): Likewise
8729 (_mm_mask_fmadd_round_sch): Likewise
8730 (_mm_mask3_fmadd_round_sch): Likewise
8731 (_mm_fcmadd_round_sch): Likewise
8732 * config/i386/avx512fp16vlintrin.h (_mm_mask_fmadd_pch):
8733 Adjust builtin call.
8734 (_mm_mask3_fmadd_pch): Likewise
8735 (_mm256_mask_fmadd_pch): Likewise
8736 (_mm256_mask3_fmadd_pch): Likewise
8737 (_mm_mask_fcmadd_pch): Likewise
8738 (_mm_mask3_fcmadd_pch): Likewise
8739 (_mm256_mask_fcmadd_pch): Likewise
8740 (_mm256_mask3_fcmadd_pch): Likewise
8741 * config/i386/i386-builtin.def: Add mask3 builtin for complex
8742 fma, and adjust mask_builtin to corresponding expander.
8743 * config/i386/i386-expand.c (ix86_expand_round_builtin):
8744 Skip eraseing embedded rounding for expanders that emits
8746 * config/i386/sse.md (complexmove): New mode_attr.
8747 (<avx512>_fmaddc_<mode>_mask1<round_expand_name>): New expander.
8748 (<avx512>_fcmaddc_<mode>_mask1<round_expand_name>): Likewise.
8749 (avx512fp16_fmaddcsh_v8hf_mask1<round_expand_name>): Likewise.
8750 (avx512fp16_fcmaddcsh_v8hf_mask1<round_expand_name>): Likewise.
8751 (avx512fp16_fcmaddcsh_v8hf_mask3<round_expand_name>): Likewise.
8752 (avx512fp16_fmaddcsh_v8hf_mask3<round_expand_name>): Likewise.
8753 * config/i386/subst.md (round_embedded_complex): New subst.
8755 2021-10-14 John David Anglin <danglin@gcc.gnu.org>
8757 * config/pa/pa.md (cbranchsf4): Disable if TARGET_SOFT_FLOAT.
8758 (cbranchdf4): Likewise.
8759 Add missing move patterns for TARGET_SOFT_FLOAT.
8761 2021-10-13 Roger Sayle <roger@nextmovesoftware.com>
8763 * config/i386/i386-expand.c (ix86_expand_vector_move): Use a
8764 pseudo intermediate when moving a SUBREG into a hard register,
8765 by checking ix86_hardreg_mov_ok.
8766 (ix86_expand_vector_extract): Store zero-extended SImode
8767 intermediate in a pseudo, then set target using a SUBREG_PROMOTED
8769 * config/i386/sse.md (mov<VMOVE>_internal): Prevent CSE creating
8770 complex (SUBREG) sets of (vector) hard registers before reload, by
8771 checking ix86_hardreg_mov_ok.
8773 2021-10-13 Indu Bhagat <indu.bhagat@oracle.com>
8775 * ctfc.h (enum ctf_dtu_d_union_enum): Remove redundant comma.
8777 2021-10-13 Indu Bhagat <indu.bhagat@oracle.com>
8779 * dwarf2ctf.c (gen_ctf_array_type): Fix typo in comment.
8781 2021-10-13 Martin Sebor <msebor@redhat.com>
8783 PR middle-end/102630
8784 * pointer-query.cc (compute_objsize_r): Handle named address spaces.
8786 2021-10-13 Iain Sandoe <iain@sandoe.co.uk>
8788 * collect2.c (is_lto_object_file): Release simple-object
8789 resources, close files.
8791 2021-10-13 Andre Vieira <andre.simoesdiasvieira@arm.com>
8793 * config/arm/arm.c (thumb2_legitimate_address_p): Use VALID_MVE_MODE
8794 when checking mve addressing modes.
8795 (mve_vector_mem_operand): Fix the way we handle pre, post and offset
8797 (arm_print_operand): Fix printing of POST_ and PRE_MODIFY.
8798 * config/arm/mve.md: Use mve_memory_operand predicate everywhere where
8799 there is a single Ux constraint.
8801 2021-10-13 John David Anglin <danglin@gcc.gnu.org>
8803 * config/pa/pa.md (muldi3): Add support for inlining 64-bit
8804 multiplication on 32-bit PA 1.1 and 2.0 targets.
8806 2021-10-13 Martin Liska <mliska@suse.cz>
8808 PR gcov-profile/90364
8809 * coverage.c (build_info): Emit checksum to the global variable.
8810 (build_info_type): Add new field for checksum.
8811 (coverage_obj_finish): Pass object_checksum.
8812 (coverage_init): Use 0 as checksum for .gcno files.
8813 * gcov-dump.c (dump_gcov_file): Dump also new checksum field.
8814 * gcov.c (read_graph_file): Read also checksum.
8815 * doc/invoke.texi: Document the behaviour change.
8817 2021-10-13 Richard Biener <rguenther@suse.de>
8819 * gimple-iterator.h (gsi_iterator_update): Add GSI_LAST_NEW_STMT,
8820 start at integer value 2.
8821 * gimple-iterator.c (gsi_insert_seq_nodes_before): Update
8822 the iterator for GSI_LAST_NEW_STMT.
8823 (gsi_insert_seq_nodes_after): Likewise.
8824 * tree-if-conv.c (predicate_statements): Use GSI_LAST_NEW_STMT.
8825 * tree-ssa.c (execute_update_addresses_taken): Correct bogus
8826 arguments to gsi_replace.
8828 2021-10-13 Martin Liska <mliska@suse.cz>
8831 * common.opt: Use EnabledBy instead of detection in
8832 finish_options and process_options.
8833 * opts.c (finish_options): Remove handling of
8834 x_flag_unroll_all_loops.
8835 * toplev.c (process_options): Likewise for flag_web and
8836 flag_rename_registers.
8838 2021-10-13 Richard Biener <rguenther@suse.de>
8840 PR tree-optimization/102659
8841 * tree-if-conv.c (need_to_rewrite_undefined): New flag.
8842 (if_convertible_gimple_assign_stmt_p): Mark the loop for
8843 rewrite when stmts with undefined behavior on integer
8845 (combine_blocks): Predicate also when we need to rewrite stmts.
8846 (predicate_statements): Rewrite affected stmts to something
8847 with well-defined behavior on overflow.
8848 (tree_if_conversion): Initialize need_to_rewrite_undefined.
8850 2021-10-13 Richard Biener <rguenther@suse.de>
8853 * ipa-sra.c (ptr_parm_has_nonarg_uses): Fix volatileness
8856 2021-10-13 Jose E. Marchesi <jose.marchesi@oracle.com>
8858 * dwarf2ctf.c: Fix typo in comment.
8860 2021-10-12 Bill Schmidt <wschmidt@linux.ibm.com>
8863 * config/rs6000/altivec.h (vec_cpsgn): Swap operand order.
8864 * config/rs6000/rs6000-overload.def (VEC_COPYSIGN): Use SKIP to
8865 avoid generating an automatic #define of vec_cpsgn. Use the
8866 correct built-in for V4SFmode that doesn't depend on VSX.
8868 2021-10-12 Uroš Bizjak <ubizjak@gmail.com>
8872 * config/i386/i386.md (*add<mode>_1_slp): Rewrite as
8873 define_insn_and_split pattern. Add alternative 1 and split it
8874 post reload to insert operand 1 into the low part of operand 0.
8875 (*sub<mode>_1_slp): Ditto.
8876 (*and<mode>_1_slp): Ditto.
8877 (*<any_or:code><mode>_1_slp): Ditto.
8878 (*ashl<mode>3_1_slp): Ditto.
8879 (*<any_shiftrt:insn><mode>3_1_slp): Ditto.
8880 (*<any_rotate:insn><mode>3_1_slp): Ditto.
8881 (*neg<mode>_1_slp): New insn_and_split pattern.
8882 (*one_cmpl<mode>_1_slp): Ditto.
8884 2021-10-12 David Edelsohn <dje.gcc@gmail.com>
8886 * doc/install.texi: Update MinGW and mingw-64 Binaries
8889 2021-10-12 Daniel Le Duc Khoi Nguyen <greenrecyclebin@gmail.com>
8891 * doc/extend.texi (Common Variable Attributes): Fix typos in
8892 alloc_size documentation.
8894 2021-10-12 Richard Biener <rguenther@suse.de>
8896 PR tree-optimization/102696
8897 * tree-vect-slp.c (vect_build_slp_tree_2): Properly mark
8898 the tree fatally failed when we reject a BIT_FIELD_REF.
8900 2021-10-12 Richard Biener <rguenther@suse.de>
8902 PR tree-optimization/102572
8903 * tree-vect-stmts.c (vect_build_gather_load_calls): When
8904 gathering the vectorized defs for the mask pass in the
8905 desired mask vector type so invariants will be handled
8908 2021-10-12 Tamar Christina <tamar.christina@arm.com>
8910 * config/aarch64/aarch64-sve.md (*fcm<cmp_op><mode>_bic_combine,
8911 *fcm<cmp_op><mode>_nor_combine, *fcmuo<mode>_bic_combine,
8912 *fcmuo<mode>_nor_combine): New.
8914 2021-10-12 Eric Botcazou <ebotcazou@adacore.com>
8917 * config/sparc/sparc-modes.def (OI): New integer mode.
8919 2021-10-12 Jakub Jelinek <jakub@redhat.com>
8921 * gimple-fold.h (clear_padding_type_may_have_padding_p): Declare.
8922 * gimple-fold.c (clear_padding_type_may_have_padding_p): No longer
8925 2021-10-12 Jakub Jelinek <jakub@redhat.com>
8927 * tree-vectorizer.h (loop_cost_model): New function.
8928 (unlimited_cost_model): Use it.
8929 * tree-vect-loop.c (vect_analyze_loop_costing): Use loop_cost_model
8930 call instead of flag_vect_cost_model.
8931 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
8932 (vect_prune_runtime_alias_test_list): Likewise. Also use it instead
8933 of flag_simd_cost_model.
8935 2021-10-12 liuhongt <hongtao.liu@intel.com>
8938 * config/i386/i386-expand.c (emit_reduc_half): Handle
8940 * config/i386/mmx.md (reduc_<code>_scal_v4qi): New expander.
8941 (reduc_plus_scal_v4qi): Ditto.
8943 2021-10-12 Paul A. Clarke <pc@us.ibm.com>
8945 * config/rs6000/smmintrin.h (_mm_cmpeq_epi64, _mm_cmpgt_epi64,
8946 _mm_mullo_epi32, _mm_mul_epi32, _mm_packus_epi32): New.
8947 * config/rs6000/nmmintrin.h: Copy from i386, tweak to suit.
8949 2021-10-12 Paul A. Clarke <pc@us.ibm.com>
8951 * config/rs6000/smmintrin.h (_mm_cvtepi8_epi16, _mm_cvtepi8_epi32,
8952 _mm_cvtepi8_epi64, _mm_cvtepi16_epi32, _mm_cvtepi16_epi64,
8953 _mm_cvtepi32_epi64, _mm_cvtepu8_epi16, _mm_cvtepu8_epi32,
8954 _mm_cvtepu8_epi64, _mm_cvtepu16_epi32, _mm_cvtepu16_epi64,
8955 _mm_cvtepu32_epi64): New.
8957 2021-10-12 Paul A. Clarke <pc@us.ibm.com>
8959 * config/rs6000/smmintrin.h (_mm_test_all_zeros,
8960 _mm_test_all_ones, _mm_test_mix_ones_zeros): Rewrite as macro.
8962 2021-10-12 Paul A. Clarke <pc@us.ibm.com>
8964 * config/rs6000/smmintrin.h (_mm_min_epi8, _mm_min_epu16,
8965 _mm_min_epi32, _mm_min_epu32, _mm_max_epi8, _mm_max_epu16,
8966 _mm_max_epi32, _mm_max_epu32): New.
8968 2021-10-11 Jan Hubicka <hubicka@ucw.cz>
8970 * ipa-modref-tree.h (struct modref_access_node): Revert
8972 (struct modref_ref_node): Likewise.
8974 2021-10-11 Jan Hubicka <hubicka@ucw.cz>
8976 * ipa-modref-tree.h (modref_tree::global_access_p): New member
8979 (implicint_const_eaf_flags,implicit_pure_eaf_flags,
8980 ignore_stores_eaf_flags): Move to ipa-modref.h
8981 (remove_useless_eaf_flags): Remove early exit on NOCLOBBER.
8982 (modref_summary::global_memory_read_p): New member function.
8983 (modref_summary::global_memory_written_p): New member function.
8984 * ipa-modref.h (modref_summary::global_memory_read_p,
8985 modref_summary::global_memory_written_p): Declare.
8986 (implicint_const_eaf_flags,implicit_pure_eaf_flags,
8987 ignore_stores_eaf_flags): move here.
8988 * tree-ssa-structalias.c: Include ipa-modref-tree.h, ipa-modref.h
8990 (handle_rhs_call): Rewrite.
8991 (handle_call_arg): New function.
8992 (determine_global_memory_access): New function.
8993 (handle_const_call): Remove
8994 (handle_pure_call): Remove
8995 (find_func_aliases_for_call): Update use of handle_rhs_call.
8996 (compute_points_to_sets): Handle global memory acccesses
8999 2021-10-11 Diane Meirowitz <diane.meirowitz@oracle.com>
9001 * doc/invoke.texi: Add link to UndefinedBehaviorSanitizer
9002 documentation, mention UBSAN_OPTIONS, similar to what is done
9003 for AddressSanitizer.
9005 2021-10-11 Richard Biener <rguenther@suse.de>
9007 PR middle-end/102683
9008 * internal-fn.c (expand_DEFERRED_INIT): Check for mode
9009 availability before building an integer type for storage
9012 2021-10-11 Richard Biener <rguenther@suse.de>
9014 PR middle-end/101480
9015 * gimple.c (gimple_call_fnspec): Do not mark operator new/delete
9018 2021-10-11 Martin Liska <mliska@suse.cz>
9020 * common.opt: Remove Init(2) for some options.
9021 * toplev.c (process_options): Do not use AUTODETECT_VALUE, but
9022 use rather OPTION_SET_P.
9024 2021-10-11 Martin Liska <mliska@suse.cz>
9026 * common.opt: Remove usage of IRA_REGION_AUTODETECT.
9027 * flag-types.h (enum ira_region): Likewise.
9028 * toplev.c (process_options): Use OPTION_SET_P instead of
9029 IRA_REGION_AUTODETECT.
9031 2021-10-11 Jakub Jelinek <jakub@redhat.com>
9033 * omp-low.c (omp_runtime_api_call): Handle omp_get_max_teams,
9034 omp_[sg]et_teams_thread_limit and omp_set_num_teams.
9036 2021-10-11 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
9038 * config/s390/s390-protos.h (s390_rawmemchr): Add prototype.
9039 * config/s390/s390.c (s390_rawmemchr): New function.
9040 * config/s390/s390.md (rawmemchr<SINT:mode>): New expander.
9041 * config/s390/vector.md (@vec_vfees<mode>): Basically a copy of
9042 the pattern vfees<mode> from vx-builtins.md.
9043 * config/s390/vx-builtins.md (*vfees<mode>): Remove.
9045 2021-10-11 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
9047 * builtins.c (get_memory_rtx): Change to external linkage.
9048 * builtins.h (get_memory_rtx): Add function prototype.
9049 * doc/md.texi (rawmemchr<mode>): Document.
9050 * internal-fn.c (expand_RAWMEMCHR): Define.
9051 * internal-fn.def (RAWMEMCHR): Add.
9052 * optabs.def (rawmemchr_optab): Add.
9053 * tree-loop-distribution.c (find_single_drs): Change return code
9054 behaviour by also returning true if no single store was found
9056 (loop_distribution::classify_partition): Respect the new return
9057 code behaviour of function find_single_drs.
9058 (loop_distribution::execute): Call new function
9059 transform_reduction_loop in order to replace rawmemchr or strlen
9060 like loops by calls into builtins.
9061 (generate_reduction_builtin_1): New function.
9062 (generate_rawmemchr_builtin): New function.
9063 (generate_strlen_builtin_1): New function.
9064 (generate_strlen_builtin): New function.
9065 (generate_strlen_builtin_using_rawmemchr): New function.
9066 (reduction_var_overflows_first): New function.
9067 (determine_reduction_stmt_1): New function.
9068 (determine_reduction_stmt): New function.
9069 (loop_distribution::transform_reduction_loop): New function.
9071 2021-10-11 Martin Liska <mliska@suse.cz>
9073 * tree.c (cl_option_hasher::hash): Use cl_optimization_hash
9074 and remove legacy hashing code.
9076 2021-10-11 Kito Cheng <kito.cheng@sifive.com>
9079 * builtins.c (maybe_emit_call_builtin___clear_cache): Allow
9080 CONST_INT for BEGIN and END, and use gcc_assert rather than
9083 2021-10-10 Jakub Jelinek <jakub@redhat.com>
9086 * var-tracking.c (add_stores): For cselib_sp_derived_value_p values
9087 use MO_VAL_SET if loc is not sp.
9089 2021-10-10 Andrew Pinski <apinski@marvell.com>
9091 PR tree-optimization/102622
9092 * match.pd: Swap the order of a?pow2cst:0 and a?-1:0 transformations.
9093 Swap the order of a?0:pow2cst and a?0:-1 transformations.
9095 2021-10-09 liuhongt <hongtao.liu@intel.com>
9098 * config/i386/i386-expand.c (ix86_valid_mask_cmp_mode): Handle
9100 (ix86_use_mask_cmp_p): Ditto.
9101 (ix86_expand_sse_movcc): Ditto.
9102 * config/i386/i386.md (setcc_hf_mask): New define_insn.
9103 (movhf_mask): Ditto.
9104 (UNSPEC_MOVCC_MASK): New unspec.
9105 * config/i386/sse.md (UNSPEC_PCMP): Move to i386.md.
9107 2021-10-08 Vladimir N. Makarov <vmakarov@redhat.com>
9109 PR rtl-optimization/102627
9110 * lra-constraints.c (split_reg): Use at least natural mode of hard reg.
9112 2021-10-08 Aldy Hernandez <aldyh@redhat.com>
9114 * gimple-range-cache.cc (non_null_ref::non_null_deref_p): Grow
9117 2021-10-08 Aldy Hernandez <aldyh@redhat.com>
9119 * value-range.cc (irange::debug): New.
9120 * value-range.h (irange::debug): New.
9122 2021-10-08 Richard Sandiford <richard.sandiford@arm.com>
9124 PR tree-optimization/102385
9125 * predict.h (change_edge_frequency): Declare.
9126 * predict.c (change_edge_frequency): New function.
9127 * tree-ssa-loop-manip.h (tree_transform_and_unroll_loop): Remove
9129 (tree_unroll_loop): Likewise.
9130 * gimple-loop-jam.c (tree_loop_unroll_and_jam): Update accordingly.
9131 * tree-predcom.c (pcom_worker::tree_predictive_commoning_loop):
9133 * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Likewise.
9134 * tree-ssa-loop-manip.c (tree_unroll_loop): Likewise.
9135 (tree_transform_and_unroll_loop): Likewise. Use single_dom_exit
9136 to retrieve the exit edges. Make all the old profile update code
9137 conditional on !single_loop_p -- the case it was written for --
9138 and use a different approach for the single-loop case.
9140 2021-10-08 Martin Liska <mliska@suse.cz>
9142 * config/alpha/alpha.c (alpha_option_override): Use new macro
9144 * config/arc/arc.c (arc_override_options): Likewise.
9145 * config/arm/arm.c (arm_option_override): Likewise.
9146 * config/bfin/bfin.c (bfin_load_pic_reg): Likewise.
9147 * config/c6x/c6x.c (c6x_option_override): Likewise.
9148 * config/csky/csky.c: Likewise.
9149 * config/darwin.c (darwin_override_options): Likewise.
9150 * config/frv/frv.c (frv_option_override): Likewise.
9151 * config/i386/djgpp.h: Likewise.
9152 * config/i386/i386.c (ix86_stack_protect_guard): Likewise.
9153 (ix86_max_noce_ifcvt_seq_cost): Likewise.
9154 * config/ia64/ia64.c (ia64_option_override): Likewise.
9155 (ia64_override_options_after_change): Likewise.
9156 * config/m32c/m32c.c (m32c_option_override): Likewise.
9157 * config/m32r/m32r.c (m32r_init): Likewise.
9158 * config/m68k/m68k.c (m68k_option_override): Likewise.
9159 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
9160 * config/mips/mips.c (mips_option_override): Likewise.
9161 * config/nios2/nios2.c (nios2_option_override): Likewise.
9162 * config/nvptx/nvptx.c (nvptx_option_override): Likewise.
9163 * config/pa/pa.c (pa_option_override): Likewise.
9164 * config/riscv/riscv.c (riscv_option_override): Likewise.
9165 * config/rs6000/aix71.h: Likewise.
9166 * config/rs6000/aix72.h: Likewise.
9167 * config/rs6000/aix73.h: Likewise.
9168 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Likewise.
9169 (rs6000_override_options_after_change): Likewise.
9170 (rs6000_linux64_override_options): Likewise.
9171 (glibc_supports_ieee_128bit): Likewise.
9172 (rs6000_option_override_internal): Likewise.
9173 (rs6000_file_start): Likewise.
9174 (rs6000_darwin_file_start): Likewise.
9175 * config/rs6000/rtems.h: Likewise.
9176 * config/rs6000/sysv4.h: Likewise.
9177 * config/rs6000/vxworks.h (SUB3TARGET_OVERRIDE_OPTIONS): Likewise.
9178 * config/s390/s390.c (s390_option_override): Likewise.
9179 * config/sh/linux.h: Likewise.
9180 * config/sh/netbsd-elf.h (while): Likewise.
9181 * config/sh/sh.c (sh_option_override): Likewise.
9182 * config/sol2.c (solaris_override_options): Likewise.
9183 * config/sparc/sparc.c (sparc_option_override): Likewise.
9184 * config/tilegx/tilegx.c (tilegx_option_override): Likewise.
9185 * config/visium/visium.c (visium_option_override): Likewise.
9186 * config/vxworks.c (vxworks_override_options): Likewise.
9187 * lto-opts.c (lto_write_options): Likewise.
9188 * omp-expand.c (expand_omp_simd): Likewise.
9189 * omp-general.c (omp_max_vf): Likewise.
9190 * omp-offload.c (oacc_xform_loop): Likewise.
9191 * opts.h (OPTION_SET_P): Likewise.
9192 * targhooks.c (default_max_noce_ifcvt_seq_cost): Likewise.
9193 * toplev.c (process_options): Likewise.
9194 * tree-predcom.c: Likewise.
9195 * tree-sra.c (analyze_all_variable_accesses): Likewise.
9197 2021-10-08 liuhongt <hongtao.liu@intel.com>
9200 * config/i386/i386.c (ix86_optab_supported_p):
9201 Return true for HFmode.
9202 * match.pd: Simplify (_Float16) ceil ((double) x) to
9203 __builtin_ceilf16 (a) when a is _Float16 type and
9204 direct_internal_fn_supported_p.
9206 2021-10-08 liuhongt <hongtao.liu@intel.com>
9209 * config/i386/i386-expand.c (emit_reduc_half): Hanlde V4HImode.
9210 * config/i386/mmx.md (reduc_plus_scal_v4hi): New.
9211 (reduc_<code>_scal_v4hi): New.
9213 2021-10-08 liuhongt <hongtao.liu@intel.com>
9215 * common.opt (ftree-vectorize): Add Var(flag_tree_vectorize).
9216 * doc/invoke.texi (Options That Control Optimization): Update
9218 * opts.c (default_options_table): Enable auto-vectorization at
9219 O2 with very-cheap cost model.
9220 (finish_options): Use cheap cost model for
9221 explicit -ftree{,-loop}-vectorize.
9223 2021-10-07 Indu Bhagat <indu.bhagat@oracle.com>
9225 * ctfc.c (ctfc_delete_container): Free hash table contents.
9227 2021-10-07 Indu Bhagat <indu.bhagat@oracle.com>
9229 * toplev.c (process_options): Do not warn for GNU GIMPLE.
9231 2021-10-07 Siddhesh Poyarekar <siddhesh@gotplt.org>
9233 * tree-object-size.c (addr_object_size,
9234 compute_builtin_object_size): Drop PDECL and POFF arguments.
9235 (addr_object_size): Adjust calls.
9236 * tree-object-size.h (compute_builtin_object_size): Drop PDECL
9239 2021-10-07 Roger Sayle <roger@nextmovesoftware.com>
9241 * rtl.def (SMUL_HIGHPART, UMUL_HIGHPART): New RTX codes for
9242 representing signed and unsigned high-part multiplication resp.
9243 * simplify-rtx.c (simplify_binary_operation_1) [SMUL_HIGHPART,
9244 UMUL_HIGHPART]: Simplify high-part multiplications by zero.
9245 [SS_PLUS, US_PLUS, SS_MINUS, US_MINUS, SS_MULT, US_MULT,
9246 SS_DIV, US_DIV]: Similar simplifications for saturating
9248 (simplify_const_binary_operation) [SS_PLUS, US_PLUS, SS_MINUS,
9249 US_MINUS, SS_MULT, US_MULT, SMUL_HIGHPART, UMUL_HIGHPART]:
9250 Implement compile-time evaluation for constant operands.
9251 * dwarf2out.c (mem_loc_descriptor): Skip SMUL_HIGHPART and
9253 * doc/rtl.texi (smul_highpart, umul_highpart): Document RTX codes.
9254 * doc/md.texi (smul@var{m}3_highpart, umul@var{m3}_highpart):
9255 Mention the new smul_highpart and umul_highpart RTX codes.
9256 * doc/invoke.texi: Silence @xref "compilation" warnings.
9258 2021-10-07 Martin Jambor <mjambor@suse.cz>
9261 * ipa-prop.c (ipa_edge_args_sum_t::duplicate): Also handle the
9262 case when the source reference description corresponds to a
9263 referance taken in a function src->caller is inlined to.
9265 2021-10-07 Jan Hubicka <hubicka@ucw.cz>
9268 * ipa-modref-tree.h (modref_access_node::contains_p): Handle offsets
9270 (modref_access_node::try_merge_with): Add sanity check that there
9271 are no redundant entries in the list.
9273 2021-10-07 Richard Biener <rguenther@suse.de>
9275 PR tree-optimization/102608
9276 * tree-ssa-sccvn.c (visit_stmt): Drop .DEFERRED_INIT to
9279 2021-10-07 Martin Liska <mliska@suse.cz>
9281 * toplev.c (toplev::main): Make
9282 save_opt_decoded_options a pointer type
9283 * toplev.h: Likewise.
9285 2021-10-07 Andrew Stubbs <ams@codesourcery.com>
9287 * config/gcn/gcn-valu.md (gather<mode>_insn_2offsets<exec>): Apply
9288 HAVE_GCN_ASM_GLOBAL_LOAD_FIXED.
9289 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
9291 2021-10-07 Andrew Stubbs <ams@codesourcery.com>
9293 * config/gcn/gcn-hsa.h (SRAMOPT): Include the whole option string.
9294 Adjust for new -msram-ecc=any behaviour.
9295 (ASM_SPEC): Adjust -mxnack and -msram-ecc usage.
9296 * config/gcn/gcn.c (output_file_start): Implement -msram-ecc=any.
9297 * config/gcn/mkoffload.c (EF_AMDGPU_XNACK): Rename to ...
9298 (EF_AMDGPU_XNACK_V3): ... this.
9299 (EF_AMDGPU_SRAM_ECC): Rename to ...
9300 (EF_AMDGPU_SRAM_ECC_V3): ... this.
9301 (EF_AMDGPU_FEATURE_XNACK_V4): New.
9302 (EF_AMDGPU_FEATURE_XNACK_UNSUPPORTED_V4): New.
9303 (EF_AMDGPU_FEATURE_XNACK_ANY_V4): New.
9304 (EF_AMDGPU_FEATURE_XNACK_OFF_V4): New.
9305 (EF_AMDGPU_FEATURE_XNACK_ON_V4): New.
9306 (EF_AMDGPU_FEATURE_SRAMECC_V4): New.
9307 (EF_AMDGPU_FEATURE_SRAMECC_UNSUPPORTED_V4): New.
9308 (EF_AMDGPU_FEATURE_SRAMECC_ANY_V4): New.
9309 (EF_AMDGPU_FEATURE_SRAMECC_OFF_V4): New.
9310 (EF_AMDGPU_FEATURE_SRAMECC_ON_V4): New.
9311 (SET_XNACK_ON): New.
9312 (SET_XNACK_OFF): New.
9314 (SET_SRAM_ECC_ON): New.
9315 (SET_SRAM_ECC_ANY): New.
9316 (SET_SRAM_ECC_OFF): New.
9317 (TEST_SRAM_ECC_ANY): New.
9318 (TEST_SRAM_ECC_ON): New.
9319 (main): Implement HSACOv4 and -msram-ecc=any.
9321 2021-10-07 Andrew Stubbs <ams@codesourcery.com>
9323 * config.in: Regenerate.
9324 * config/gcn/gcn-hsa.h (X_FIJI): New macro.
9328 (A_FIJI): Rename to ...
9330 (A_900): Rename to ...
9332 (A_906): Rename to ...
9334 (A_908): Rename to ...
9336 (SRAMOPT): New macro.
9337 (ASM_SPEC): Adjust xnack option usage.
9338 * config/gcn/gcn.c (output_file_start): Adjust amdgcn_target usage.
9339 * configure: Regenerate.
9340 * configure.ac: Detect LLVM assembler dialect.
9342 2021-10-07 Richard Biener <rguenther@suse.de>
9344 * tree-pretty-print.c (dump_generic_node): Do not elide
9345 printing '&' when dumping with -gimple.
9347 2021-10-06 Andrew MacLeod <amacleod@redhat.com>
9349 * gimple-range-cache.cc (non_null_ref::adjust_range): Call new
9351 * gimple-range-fold.cc (adjust_pointer_diff_expr): Ditto.
9352 (adjust_imagpart_expr): Ditto.
9353 * value-range.cc (irange::irange_intersect): Call new routine if
9354 RHS is a single pair.
9355 (irange::intersect): New wide_int version.
9356 * value-range.h (class irange): New prototype.
9358 2021-10-06 Andrew MacLeod <amacleod@redhat.com>
9360 * gimple-range-edge.cc (gimple_outgoing_range::gimple_outgoing_range):
9361 Add parameter to limit size when recognizing switches.
9362 (gimple_outgoing_range::edge_range_p): Check size limit.
9363 * gimple-range-edge.h (gimple_outgoing_range): Add size field.
9364 * gimple-range-gori.cc (gori_map::calculate_gori): Ignore switches
9365 that exceed the size limit.
9366 (gori_compute::gori_compute): Add initializer.
9367 * params.opt (evrp-switch-limit): New.
9368 * doc/invoke.texi: Update docs.
9370 2021-10-06 Andrew MacLeod <amacleod@redhat.com>
9372 * value-range.h (irange::set_varying): Use TYPE_MIN_VALUE and
9373 TYPE_MAX_VALUE instead of creating new trees when possible.
9375 2021-10-06 Andrew MacLeod <amacleod@redhat.com>
9377 * gimple-range-cache.cc (non_null_ref::adjust_range): Check for
9378 zero and non-zero more efficently.
9380 2021-10-06 Richard Biener <rguenther@suse.de>
9383 * dumpfile.h (TDF_GIMPLE_VAL): New.
9384 (dump_flag): Re-order and adjust TDF_* flags. Make
9385 the enum uint32_t. Use std::underlying_type in the
9387 (optgroup_flag): Likewise for the operator overloads.
9388 * tree-pretty-print.c (dump_generic_node): Wrap ADDR_EXPR
9389 in _Literal if TDF_GIMPLE_VAL.
9390 * gimple-pretty-print.c (dump_gimple_assign): Add
9391 TDF_GIMPLE_VAL to flags when dumping operands where only
9392 is_gimple_val are allowed.
9393 (dump_gimple_cond): Likewise.
9395 2021-10-06 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
9397 * gimple-isel.cc (gimple_expand_vec_cond_expr): Remove redundant if
9400 2021-10-05 qing zhao <qing.zhao@oracle.com>
9402 PR middle-end/102359
9403 * gimplify.c (gimplify_decl_expr): Not add initialization for an
9404 auto variable when it has been initialized by frontend.
9406 2021-10-05 Aldy Hernandez <aldyh@redhat.com>
9408 * tree-ssa-threadupdate.c (jt_path_registry::cancel_invalid_paths):
9411 2021-10-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
9413 * common/config/avr/avr-common.c (avr_handle_option): Mark
9414 argument as ATTRIBUTE_UNUSED.
9416 2021-10-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
9418 * config/lm32/uclinux-elf.h (LINK_GCC_C_SEQUENCE_SPEC):
9419 Undefine before redefinition.
9421 2021-10-05 Richard Biener <rguenther@suse.de>
9423 * toplev.c (no_backend): Remove global var.
9424 (process_options): Pass in no_backend, move post_options
9425 langhook call to toplev::main.
9426 (do_compile): Pass in no_backend, move process_options call
9428 (toplev::run_self_tests): Check no_backend at the caller.
9429 (toplev::main): Call post_options and process_options
9430 split out from do_compile, do self-tests only if
9431 no_backend is initialized.
9433 2021-10-05 Richard Biener <rguenther@suse.de>
9435 * tree-cfg.c (dump_function_to_file): Dump the UID of the
9436 function as part of the name when requested.
9437 * tree-pretty-print.c (dump_function_name): Dump the UID when
9438 requested and the langhook produced the actual name.
9440 2021-10-05 Richard Biener <rguenther@suse.de>
9442 PR middle-end/102587
9443 PR middle-end/102285
9444 * internal-fn.c (expand_DEFERRED_INIT): Fall back to
9445 zero-initialization as last resort, use the constant
9446 size as given by the DEFERRED_INIT argument to build
9449 2021-10-04 Marek Polacek <polacek@redhat.com>
9452 * doc/invoke.texi: Document -Warray-compare.
9454 2021-10-04 Richard Biener <rguenther@suse.de>
9456 * gimplify.c (is_var_need_auto_init): DECL_HARD_REGISTER
9457 variables are not to be initialized.
9459 2021-10-04 Richard Biener <rguenther@suse.de>
9461 * expr.h (non_mem_decl_p): Declare.
9462 (mem_ref_refers_to_non_mem_p): Likewise.
9463 * expr.c (non_mem_decl_p): Export.
9464 (mem_ref_refers_to_non_mem_p): Likewise.
9465 * internal-fn.c (expand_DEFERRED_INIT): Do not expand the LHS
9466 but check the base with mem_ref_refers_to_non_mem_p
9469 2021-10-04 Richard Biener <rguenther@suse.de>
9471 PR tree-optimization/102570
9472 * tree-ssa-sccvn.h (vn_reference_op_struct): Document
9473 we are using clique for the internal function code.
9474 * tree-ssa-sccvn.c (vn_reference_op_eq): Compare the
9475 internal function code.
9476 (print_vn_reference_ops): Print the internal function code.
9477 (vn_reference_op_compute_hash): Hash it.
9478 (copy_reference_ops_from_call): Record it.
9479 (visit_stmt): Remove the restriction around internal function
9481 (fully_constant_vn_reference_p): Use fold_const_call and handle
9483 (vn_reference_eq): Compare call return types.
9484 * tree-ssa-pre.c (create_expression_by_pieces): Handle
9485 generating calls to internal functions.
9486 (compute_avail): Remove the restriction around internal function
9489 2021-10-04 Aldy Hernandez <aldyh@redhat.com>
9491 PR tree-optimization/102560
9492 * gimple-ssa-warn-alloca.c (alloca_call_type): Remove static
9493 marker for invalid_range.
9495 2021-10-04 Richard Biener <rguenther@suse.de>
9497 PR middle-end/102587
9498 * internal-fn.c (expand_DEFERRED_INIT): Guard register
9499 initialization path an avoid initializing VLA registers
9502 2021-10-04 Eric Botcazou <ebotcazou@adacore.com>
9504 * config/rs6000/vxworks.h (TARGET_INIT_LIBFUNCS): Delete.
9506 2021-10-03 Martin Liska <mliska@suse.cz>
9508 * toplev.c (toplev::main): Check opt_index if it is a part
9511 2021-10-02 Aldy Hernandez <aldyh@redhat.com>
9513 PR tree-optimization/102563
9514 * range-op.cc (operator_lshift::op1_range): Do not clobber
9517 2021-10-02 Martin Liska <mliska@suse.cz>
9519 * toplev.c (toplev::main): save_decoded_options[0] is program
9520 name and so it should be skipped.
9522 2021-10-01 Aldy Hernandez <aldyh@redhat.com>
9524 PR tree-optimization/102546
9525 * range-op.cc (operator_lshift::op1_range): Teach range-ops that
9526 X << Y is non-zero implies X is also non-zero.
9528 2021-10-01 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
9530 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New
9532 * config/aarch64/aarch64-tune.md: Regenerate.
9533 * doc/invoke.texi: Update docs.
9535 2021-10-01 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
9537 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New
9539 * config/aarch64/aarch64-tune.md: Regenerate.
9540 * doc/invoke.texi: Update docs.
9542 2021-10-01 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
9544 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New
9546 * config/aarch64/aarch64-tune.md: Regenerate.
9547 * doc/invoke.texi: Update docs.
9549 2021-10-01 Martin Sebor <msebor@redhat.com>
9552 * doc/invoke.texi (-Waddress): Update.
9553 * gengtype.c (write_types): Avoid -Waddress.
9554 * poly-int.h (POLY_SET_COEFF): Avoid using null.
9556 2021-10-01 John David Anglin <danglin@gcc.gnu.org>
9559 * config/pa/pa.c (pa_option_override): Default to dwarf version 4
9562 2021-10-01 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
9564 * config/aarch64/aarch64.h (AARCH64_FL_V9): Update value.
9566 2021-10-01 Aldy Hernandez <aldyh@redhat.com>
9568 * gimple-range-path.cc (path_range_query::compute_ranges): Use
9570 * gimple-range-path.h (class path_range_query): Remove shadowed
9572 (path_range_query::get_path_oracle): New.
9574 2021-10-01 Jakub Jelinek <jakub@redhat.com>
9575 Richard Biener <rguenther@suse.de>
9578 * doc/invoke.texi (-fsanitize=integer-divide-by-zero): Remove
9579 INT_MIN / -1 division detection from here ...
9580 (-fsanitize=signed-integer-overflow): ... and add it here.
9582 2021-10-01 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
9584 * config/aarch64/aarch64-arches.def (AARCH64_ARCH): Added
9586 * config/aarch64/aarch64.h (AARCH64_FL_V9): New.
9587 (AARCH64_FL_FOR_ARCH9): New flags for Armv9-A.
9588 (AARCH64_ISA_V9): New ISA flag.
9589 * doc/invoke.texi: Update docs.
9591 2021-10-01 Martin Liska <mliska@suse.cz>
9593 * toplev.c (toplev::main): Save decoded optimization options.
9594 * toplev.h (save_opt_decoded_options): New.
9595 * doc/extend.texi: Be more clear about optimize and target
9598 2021-10-01 Eric Botcazou <ebotcazou@adacore.com>
9600 * explow.c: Include langhooks.h.
9601 (set_stack_check_libfunc): Build a proper function type.
9603 2021-10-01 Eric Botcazou <ebotcazou@adacore.com>
9606 * config/i386/i386.c (legitimate_pic_address_disp_p): For PE-COFF do
9607 not return true for external weak function symbols in medium model.
9609 2021-10-01 Jakub Jelinek <jakub@redhat.com>
9611 * tree.h (OMP_CLAUSE_ORDER_REPRODUCIBLE): Define.
9612 * tree-pretty-print.c (dump_omp_clause) <case OMP_CLAUSE_ORDER>: Print
9613 reproducible: for OMP_CLAUSE_ORDER_REPRODUCIBLE.
9614 * omp-general.c (omp_extract_for_data): If OMP_CLAUSE_ORDER is seen
9615 without OMP_CLAUSE_ORDER_UNCONSTRAINED, overwrite sched_kind to
9616 OMP_CLAUSE_SCHEDULE_STATIC.
9618 2021-10-01 Richard Biener <rguenther@suse.de>
9620 PR middle-end/102518
9621 * tree-inline.c (setup_one_parameter): Avoid substituting
9622 an invariant into contexts where a GIMPLE register is not valid.
9624 2021-09-30 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
9626 * config/arm/arm-cpus.in: Add Cortex-R52+ CPU.
9627 * config/arm/arm-tables.opt: Regenerate.
9628 * config/arm/arm-tune.md: Regenerate.
9629 * doc/invoke.texi: Update docs.
9631 2021-09-30 Uroš Bizjak <ubizjak@gmail.com>
9634 * config/i386/i386.md
9635 (sign_extend:WIDE (any_logic:NARROW (memory, immediate)) splitters):
9638 2021-09-30 Tobias Burnus <tobias@codesourcery.com>
9640 * omp-low.c (omp_runtime_api_call): Add omp_aligned_{,c}alloc and
9641 omp_{c,re}alloc, fix omp_alloc/omp_free.
9643 2021-09-30 Martin Liska <mliska@suse.cz>
9645 * defaults.h (ASM_OUTPUT_ASCII): Do not hide global variable
9646 asm_out_file and stream directly to MYFILE.
9648 2021-09-30 Richard Biener <rguenther@suse.de>
9650 * tree-vect-data-refs.c (vect_update_misalignment_for_peel):
9651 Restore and fix condition under which we apply npeel to
9652 the DRs misalignment value.
9654 2021-09-30 Richard Biener <rguenther@suse.de>
9656 * tree-vect-data-refs.c (vect_update_misalignment_for_peel):
9657 Fix npeel check for variable amount of peeling.
9659 2021-09-30 Aldy Hernandez <aldyh@redhat.com>
9661 * lto-wrapper.c (run_gcc): Plug snprintf overflow.
9663 2021-09-30 Aldy Hernandez <aldyh@redhat.com>
9665 * gimple-range.cc (gimple_ranger::debug): New.
9666 * gimple-range.h (class gimple_ranger): Add debug.
9668 2021-09-30 Aldy Hernandez <aldyh@redhat.com>
9670 PR middle-end/102519
9671 * tree-vrp.c (hybrid_threader::~hybrid_threader): Free m_query.
9673 2021-09-29 Indu Bhagat <indu.bhagat@oracle.com>
9676 * btfout.c (GTY): Add GTY (()) albeit for cosmetic only purpose.
9677 (btf_finalize): Empty the hash_map btf_var_ids.
9679 2021-09-29 Aldy Hernandez <aldyh@redhat.com>
9681 * tree-vrp.c (thread_through_all_blocks): Return bool.
9682 (execute_vrp_threader): Return TODO_* flags.
9683 (pass_data_vrp_threader): Set todo_flags_finish to 0.
9685 2021-09-29 Aldy Hernandez <aldyh@redhat.com>
9687 * timevar.def (TV_TREE_VRP_THREADER): New.
9688 * tree-vrp.c: Use TV_TREE_VRP_THREADER for VRP threader pass.
9690 2021-09-29 David Faust <david.faust@oracle.com>
9692 * config.gcc (bpf-*-*): Do not overwrite extra_headers.
9694 2021-09-29 Jonathan Wright <jonathan.wright@arm.com>
9696 * config/aarch64/aarch64-builtins.c (TYPES_BINOP_PPU): Define
9697 new type qualifier enum.
9698 (TYPES_TERNOP_SSSU): Likewise.
9699 (TYPES_TERNOP_PPPU): Likewise.
9700 * config/aarch64/aarch64-simd-builtins.def: Define PPU, SSU,
9701 PPPU and SSSU builtin generator macros for qtbl1 and qtbx1
9703 * config/aarch64/arm_neon.h (vqtbl1_p8): Use type-qualified
9704 builtin and remove casts.
9705 (vqtbl1_s8): Likewise.
9706 (vqtbl1q_p8): Likewise.
9707 (vqtbl1q_s8): Likewise.
9708 (vqtbx1_s8): Likewise.
9709 (vqtbx1_p8): Likewise.
9710 (vqtbx1q_s8): Likewise.
9711 (vqtbx1q_p8): Likewise.
9712 (vtbl1_p8): Likewise.
9713 (vtbl2_p8): Likewise.
9714 (vtbx2_p8): Likewise.
9716 2021-09-29 Richard Biener <rguenther@suse.de>
9718 * tree-vect-data-refs.c (vect_dr_misalign_for_aligned_access):
9720 (vect_update_misalignment_for_peel): Use it to update
9721 misaligned to the value necessary for an aligned access.
9722 (vect_get_peeling_costs_all_drs): Likewise.
9723 (vect_enhance_data_refs_alignment): Likewise.
9725 2021-09-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9727 * config/aarch64/aarch64.c (aarch64_expand_cpymem): Count number of
9728 emitted operations and adjust heuristic for code size.
9730 2021-09-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9732 * config/aarch64/aarch64.c (aarch64_expand_setmem): Count number of
9733 emitted operations and adjust heuristic for code size.
9735 2021-09-29 Jakub Jelinek <jakub@redhat.com>
9737 PR middle-end/102504
9738 * gimplify.c (gimplify_scan_omp_clauses): Use omp_check_private even
9739 in OMP_SCOPE clauses, not just on worksharing construct clauses.
9741 2021-09-28 Geng Qi <gengqi@linux.alibaba.com>
9743 * config/riscv/riscv.md (mulv<mode>4): Call gen_smul<mode>3_highpart.
9744 (<u>mulditi3): Call <su>muldi3_highpart.
9745 (<u>muldi3_highpart): Rename to <su>muldi3_highpart.
9746 (<u>mulsidi3): Call <su>mulsi3_highpart.
9747 (<u>mulsi3_highpart): Rename to <su>mulsi3_highpart.
9749 2021-09-28 Iain Sandoe <iain@sandoe.co.uk>
9751 * config/darwin.h (DSYMUTIL_SPEC): Recognize D sources.
9753 2021-09-28 Iain Sandoe <iain@sandoe.co.uk>
9755 * config/rs6000/darwin.h (FIXED_R13): Add for PPC64.
9756 (FIRST_SAVED_GP_REGNO): Save from R13 even when it is one
9759 2021-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9761 * config/aarch64/aarch64.h (AARCH64_FL_LS64): Define
9762 (AARCH64_FL_V8_7): Likewise.
9763 (AARCH64_FL_FOR_ARCH8_7): Likewise.
9764 * config/aarch64/aarch64-arches.def (armv8.7-a): Define.
9765 * config/aarch64/aarch64-option-extensions.def (ls64): Define.
9766 * doc/invoke.texi: Document the above.
9768 2021-09-28 Aldy Hernandez <aldyh@redhat.com>
9770 * dbgcnt.c (dbg_cnt_counter): New.
9771 * dbgcnt.h (dbg_cnt_counter): New.
9772 * dumpfile.c (dump_options): Add entry for TDF_THREADING.
9773 * dumpfile.h (enum dump_flag): Add TDF_THREADING.
9774 * gimple-range-path.cc (DEBUG_SOLVER): Use TDF_THREADING.
9775 * tree-ssa-threadupdate.c (dump_jump_thread_path): Dump out
9778 2021-09-28 Aldy Hernandez <aldyh@redhat.com>
9780 * cfgcleanup.c (pass_jump::execute): Check
9781 flag_expensive_optimizations.
9782 (pass_jump_after_combine::gate): Same.
9783 * doc/invoke.texi (-fthread-jumps): Enable for -O1.
9784 * opts.c (default_options_table): Enable -fthread-jumps at -O1.
9785 * tree-ssa-threadupdate.c
9786 (fwd_jt_path_registry::remove_jump_threads_including): Bail unless
9789 2021-09-28 Ilya Leoshkevich <iii@linux.ibm.com>
9791 * tree-ssa-reassoc.c (biased_names): New global.
9792 (propagate_bias_p): New function.
9793 (loop_carried_phi): Remove.
9794 (propagate_rank): Propagate bias along single uses.
9795 (get_rank): Update biased_names when needed.
9797 2021-09-28 Ilya Leoshkevich <iii@linux.ibm.com>
9799 * passes.def (pass_reassoc): Rename parameter to early_p.
9800 * tree-ssa-reassoc.c (reassoc_bias_loop_carried_phi_ranks_p):
9802 (phi_rank): Don't bias loop-carried phi ranks
9803 before vectorization pass.
9804 (execute_reassoc): Add bias_loop_carried_phi_ranks_p parameter.
9805 (pass_reassoc::pass_reassoc): Add bias_loop_carried_phi_ranks_p
9807 (pass_reassoc::set_param): Set bias_loop_carried_phi_ranks_p
9809 (pass_reassoc::execute): Pass bias_loop_carried_phi_ranks_p to
9811 (pass_reassoc::bias_loop_carried_phi_ranks_p): New member.
9813 2021-09-28 Jakub Jelinek <jakub@redhat.com>
9816 * config/i386/i386.c (standard_80387_constant_p): Don't recognize
9817 special 80387 instruction XFmode constants if flag_rounding_math.
9819 2021-09-28 Richard Biener <rguenther@suse.de>
9821 PR tree-optimization/100112
9822 * tree-ssa-sccvn.c (visit_reference_op_load): Record the
9823 referece into the hashtable twice in case last_vuse is
9824 different from the original vuse on the stmt.
9826 2021-09-28 Jakub Jelinek <jakub@redhat.com>
9828 PR middle-end/102492
9829 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't call the
9830 omp_finish_clause langhook on implicitly added OMP_CLAUSE_PRIVATE
9831 clauses on SIMD constructs.
9833 2021-09-28 Aldy Hernandez <aldyh@redhat.com>
9835 PR tree-optimization/102511
9836 * gimple-range-path.cc (path_range_query::range_on_path_entry):
9837 Return VARYING when nothing found.
9839 2021-09-28 Hongyu Wang <hongyu.wang@intel.com>
9842 * config/i386/i386.h (VALID_AVX512FP16_REG_MODE): Add
9844 (VALID_SSE2_REG_VHF_MODE): Add V4HFmode and V2HFmode.
9845 (VALID_MMX_REG_MODE): Add V4HFmode.
9846 (SSE_REG_MODE_P): Replace VALID_AVX512FP16_REG_MODE with
9847 vector mode condition.
9848 * config/i386/i386.c (classify_argument): Parse V4HF/V2HF
9850 (function_arg_32): Add V4HFmode.
9851 (function_arg_advance_32): Likewise.
9852 * config/i386/i386.md (mode): Add V4HF/V2HF.
9853 (MODE_SIZE): Likewise.
9854 * config/i386/mmx.md (MMXMODE): Add V4HF mode.
9855 (V_32): Add V2HF mode.
9856 (VHF_32_64): New mode iterator.
9857 (*mov<mode>_internal): Adjust sse alternatives to support
9859 (*mov<mode>_internal): Adjust sse alternatives to support
9861 (<insn><mode>3): New define_insn for add/sub/mul/div.
9863 2021-09-28 Aldy Hernandez <aldyh@redhat.com>
9865 * tree-ssa-threadbackward.c (pass_thread_jumps::gate): Check
9867 (pass_early_thread_jumps::gate): Same.
9868 * tree-ssa-threadedge.c (jump_threader::thread_outgoing_edges):
9869 Return if !flag_thread_jumps.
9870 * tree-ssa-threadupdate.c
9871 (jt_path_registry::register_jump_thread): Assert that
9872 flag_thread_jumps is true.
9874 2021-09-28 liuhongt <hongtao.liu@intel.com>
9877 (simplify_context::simplify_binary_operation_1): Relax
9878 condition of simplifying (vec_concat:M (vec_select op0
9879 index0)(vec_select op1 index1)) to allow different modes
9880 between op0 and M, but have same inner mode.
9882 2021-09-28 liuhongt <hongtao.liu@intel.com>
9884 * config/i386/i386-expand.c (emit_reduc_half): Handle
9885 V8HF/V16HF/V32HFmode.
9886 * config/i386/sse.md (REDUC_SSE_PLUS_MODE): Add V8HF.
9887 (REDUC_SSE_SMINMAX_MODE): Ditto.
9888 (REDUC_PLUS_MODE): Add V16HF and V32HF.
9889 (REDUC_SMINMAX_MODE): Ditto.
9891 2021-09-27 Aldy Hernandez <aldyh@redhat.com>
9893 * gimple-range-path.cc
9894 (path_range_query::precompute_ranges_in_block): Rename to...
9895 (path_range_query::compute_ranges_in_block): ...this.
9896 (path_range_query::precompute_ranges): Rename to...
9897 (path_range_query::compute_ranges): ...this.
9898 (path_range_query::precompute_relations): Rename to...
9899 (path_range_query::compute_relations): ...this.
9900 (path_range_query::precompute_phi_relations): Rename to...
9901 (path_range_query::compute_phi_relations): ...this.
9902 * gimple-range-path.h: Rename precompute* to compute*.
9903 * tree-ssa-threadbackward.c
9904 (back_threader::find_taken_edge_switch): Same.
9905 (back_threader::find_taken_edge_cond): Same.
9906 * tree-ssa-threadedge.c
9907 (hybrid_jt_simplifier::compute_ranges_from_state): Same.
9908 (hybrid_jt_state::register_equivs_stmt): Inline...
9909 * tree-ssa-threadedge.h: ...here.
9911 2021-09-27 Aldy Hernandez <aldyh@redhat.com>
9913 * tree-vrp.c (lhs_of_dominating_assert): Remove.
9914 (class vrp_jt_state): Remove.
9915 (class vrp_jt_simplifier): Remove.
9916 (vrp_jt_simplifier::simplify): Remove.
9917 (class vrp_jump_threader): Remove.
9918 (vrp_jump_threader::vrp_jump_threader): Remove.
9919 (vrp_jump_threader::~vrp_jump_threader): Remove.
9920 (vrp_jump_threader::before_dom_children): Remove.
9921 (vrp_jump_threader::after_dom_children): Remove.
9923 2021-09-27 Aldy Hernandez <aldyh@redhat.com>
9925 * passes.def (pass_vrp_threader): New.
9926 * tree-pass.h (make_pass_vrp_threader): Add make_pass_vrp_threader.
9927 * tree-ssa-threadedge.c (hybrid_jt_state::register_equivs_stmt): New.
9928 (hybrid_jt_simplifier::hybrid_jt_simplifier): New.
9929 (hybrid_jt_simplifier::simplify): New.
9930 (hybrid_jt_simplifier::compute_ranges_from_state): New.
9931 * tree-ssa-threadedge.h (class hybrid_jt_state): New.
9932 (class hybrid_jt_simplifier): New.
9933 * tree-vrp.c (execute_vrp): Remove ASSERT_EXPR based jump
9935 (class hybrid_threader): New.
9936 (hybrid_threader::hybrid_threader): New.
9937 (hybrid_threader::~hybrid_threader): New.
9938 (hybrid_threader::before_dom_children): New.
9939 (hybrid_threader::after_dom_children): New.
9940 (execute_vrp_threader): New.
9941 (class pass_vrp_threader): New.
9942 (make_pass_vrp_threader): New.
9944 2021-09-27 Martin Liska <mliska@suse.cz>
9946 * output.h (enum section_flag): New.
9947 (SECTION_FORGET): Remove.
9948 (SECTION_ENTSIZE): Make it (1UL << 8) - 1.
9949 (SECTION_STYLE_MASK): Define it based on other enum
9951 * varasm.c (switch_to_section): Remove unused handling of
9954 2021-09-27 Martin Liska <mliska@suse.cz>
9956 * common.opt: Add new variable flag_default_complex_method.
9957 * opts.c (finish_options): Handle flags related to
9958 x_flag_complex_method.
9959 * toplev.c (process_options): Remove option handling related
9960 to flag_complex_method.
9962 2021-09-27 Richard Biener <rguenther@suse.de>
9964 PR middle-end/102450
9965 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid using
9966 type_for_size, instead use int_mode_for_size.
9968 2021-09-27 Andrew Pinski <apinski@marvell.com>
9971 * gimplify.c (gimplify_save_expr): Return early
9972 if the type of val is error_mark_node.
9974 2021-09-27 Aldy Hernandez <aldyh@redhat.com>
9976 * tree-ssanames.c (ssa_name_has_boolean_range): Use
9979 2021-09-27 Aldy Hernandez <aldyh@redhat.com>
9981 * gimple-ssa-evrp-analyze.h (class evrp_range_analyzer): Remove
9982 vrp_visit_cond_stmt.
9983 * tree-ssa-dom.c (cprop_operand): Convert to range_query API.
9984 (cprop_into_stmt): Same.
9985 (dom_opt_dom_walker::optimize_stmt): Same.
9987 2021-09-27 Richard Biener <rguenther@suse.de>
9989 PR tree-optimization/97351
9990 PR tree-optimization/97352
9991 PR tree-optimization/82426
9992 * tree-vectorizer.h (dr_misalignment): Add vector type
9994 (aligned_access_p): Likewise.
9995 (known_alignment_for_access_p): Likewise.
9996 (vect_supportable_dr_alignment): Likewise.
9997 (vect_known_alignment_in_bytes): Likewise. Refactor.
9998 (DR_MISALIGNMENT): Remove.
9999 (vect_update_shared_vectype): Likewise.
10000 * tree-vect-data-refs.c (dr_misalignment): Refactor, handle
10001 a vector type with larger alignment requirement and apply
10002 the negative step adjustment here.
10003 (vect_calculate_target_alignment): Remove.
10004 (vect_compute_data_ref_alignment): Get explicit vector type
10005 argument, do not apply a negative step alignment adjustment
10007 (vect_slp_analyze_node_alignment): Re-analyze alignment
10008 when we re-visit the DR with a bigger desired alignment but
10009 keep more precise results from smaller alignments.
10010 * tree-vect-slp.c (vect_update_shared_vectype): Remove.
10011 (vect_slp_analyze_node_operations_1): Do not update the
10012 shared vector type on stmts.
10013 * tree-vect-stmts.c (vect_analyze_stmt): Push/pop the
10014 vector type of an SLP node to the representative stmt-info.
10015 (vect_transform_stmt): Likewise.
10017 2021-09-27 liuhongt <hongtao.liu@intel.com>
10020 2021-09-09 liuhongt <hongtao.liu@intel.com>
10023 * config/i386/sse.md (reduc_plus_scal_<mode>): Split to ..
10024 (reduc_plus_scal_v4sf): .. this, New define_expand.
10025 (reduc_plus_scal_v2df): .. and this, New define_expand.
10027 2021-09-26 liuhongt <hongtao.liu@intel.com>
10029 * doc/extend.texi (Half-Precision): Remove storage only
10030 description for _Float16 w/o avx512fp16.
10032 2021-09-25 Dimitar Dimitrov <dimitar@dinux.eu>
10034 * config/pru/constraints.md (Rrio): New constraint.
10035 * config/pru/predicates.md (regio_operand): New predicate.
10036 * config/pru/pru-pragma.c (pru_register_pragmas): Register
10037 the __regio_symbol address space.
10038 * config/pru/pru-protos.h (pru_symref2ioregno): Declaration.
10039 * config/pru/pru.c (pru_symref2ioregno): New helper function.
10040 (pru_legitimate_address_p): Remove.
10041 (pru_addr_space_legitimate_address_p): Use the address space
10042 aware hook variant.
10043 (pru_nongeneric_pointer_addrspace): New helper function.
10044 (pru_insert_attributes): New function to validate __regio_symbol
10046 (TARGET_INSERT_ATTRIBUTES): New macro.
10047 (TARGET_LEGITIMATE_ADDRESS_P): Remove.
10048 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): New macro.
10049 * config/pru/pru.h (enum reg_class): Add REGIO_REGS class.
10050 * config/pru/pru.md (*regio_readsi): New pattern to read I/O
10052 (*regio_nozext_writesi): New pattern to write to I/O registers.
10053 (*regio_zext_write_r30<EQS0:mode>): Ditto.
10054 * doc/extend.texi: Document the new PRU Named Address Space.
10056 2021-09-24 Patrick Palka <ppalka@redhat.com>
10060 * real.c (encode_ieee_double): Avoid unwanted sign extension.
10061 (encode_ieee_quad): Likewise.
10063 2021-09-24 Vladimir Makarov <vmakarov@redhat.com>
10065 PR rtl-optimization/102147
10066 * ira-build.c (ira_conflict_vector_profitable_p): Make
10067 profitability calculation independent of host compiler pointer and
10068 IRA_INT_BITS sizes.
10070 2021-09-24 Aldy Hernandez <aldyh@redhat.com>
10072 * gimple-range-path.cc (path_range_query::path_range_query):
10073 Move debugging header...
10074 (path_range_query::precompute_ranges): ...here.
10075 (path_range_query::internal_range_of_expr): Do not call
10076 range_on_path_entry if NAME is defined in the current block.
10078 2021-09-24 Richard Biener <rguenther@suse.de>
10080 * cfghooks.c (verify_flow_info): Verify unallocated BB and
10081 edge flags are not set.
10083 2021-09-24 Aldy Hernandez <aldyh@redhat.com>
10085 * tree-ssa-threadupdate.c (jt_path_registry::cancel_invalid_paths):
10087 (jt_path_registry::register_jump_thread): Call
10088 cancel_invalid_paths.
10089 * tree-ssa-threadupdate.h (class jt_path_registry): Add
10090 cancel_invalid_paths.
10092 2021-09-24 Feng Xue <fxue@os.amperecomputing.com>
10094 PR tree-optimization/102400
10095 * tree-ssa-sccvn.c (vn_reference_insert_pieces): Initialize
10096 result_vdef to zero value.
10098 2021-09-24 Feng Xue <fxue@os.amperecomputing.com>
10100 PR tree-optimization/102451
10101 * tree-ssa-dse.c (delete_dead_or_redundant_call): Record bb of stmt
10104 2021-09-24 Hongyu Wang <hongyu.wang@intel.com>
10106 * config/i386/sse.md (cond_<insn><mode>): Extend to support
10108 (cond_mul<mode>): Likewise.
10109 (cond_div<mode>): Likewise.
10110 (cond_<code><mode>): Likewise.
10111 (cond_fma<mode>): Likewise.
10112 (cond_fms<mode>): Likewise.
10113 (cond_fnma<mode>): Likewise.
10114 (cond_fnms<mode>): Likewise.
10116 2021-09-23 Andrew MacLeod <amacleod@redhat.com>
10118 PR tree-optimization/102463
10119 * gimple-range-fold.cc (fold_using_range::relation_fold_and_or): If
10120 there is no range-ops handler, don't look for a relation.
10122 2021-09-23 Andrew MacLeod <amacleod@redhat.com>
10124 * gimple-range-cache.cc (ranger_cache::ranger_cache): Take
10125 non-executable_edge flag as parameter.
10126 * gimple-range-cache.h (ranger_cache): Adjust prototype.
10127 * gimple-range-gori.cc (gori_compute::gori_compute): Take
10128 non-executable_edge flag as parameter.
10129 (gori_compute::outgoing_edge_range_p): Check new flag.
10130 * gimple-range-gori.h (gori_compute): Adjust prototype.
10131 * gimple-range.cc (gimple_ranger::gimple_ranger): Create new flag.
10132 (gimple_ranger::range_on_edge): Check new flag.
10133 * gimple-range.h (gimple_ranger::non_executable_edge_flag): New.
10134 * gimple-ssa-evrp.c (rvrp_folder): Pass ranger flag to simplifer.
10135 (hybrid_folder::hybrid_folder): Set ranger non-executable flag value.
10136 (hybrid_folder::fold_stmt): Set flag value in the simplifer.
10137 * vr-values.c (simplify_using_ranges::set_and_propagate_unexecutable):
10138 Use not_executable flag if provided inmstead of EDGE_EXECUTABLE.
10139 (simplify_using_ranges::simplify_switch_using_ranges): Clear
10140 EDGE_EXECUTABLE like it originally did.
10141 (simplify_using_ranges::cleanup_edges_and_switches): Clear any
10142 NON_EXECUTABLE flags.
10143 (simplify_using_ranges::simplify_using_ranges): Adjust.
10144 * vr-values.h (class simplify_using_ranges): Adjust.
10145 (simplify_using_ranges::set_range_query): Add non-executable flag param.
10147 2021-09-23 Bill Schmidt <wschmidt@linux.ibm.com>
10150 * config/rs6000/rs6000-call.c (rs6000_aggregate_candidate): Detect
10151 zero-width bit fields and return indicator.
10152 (rs6000_discover_homogeneous_aggregate): Diagnose when the
10153 presence of a zero-width bit field changes parameter passing in
10156 2021-09-23 Aldy Hernandez <aldyh@redhat.com>
10158 * gimple-range-fold.cc (fold_using_range::range_of_phi):
10159 Remove dominator check.
10161 2021-09-23 Aldy Hernandez <aldyh@redhat.com>
10163 * gimple-range-path.cc (path_range_query::precompute_relations):
10164 Hoist edge calculations before using EDGE_SUCC.
10166 2021-09-23 Jonathan Wakely <jwakely@redhat.com>
10168 * configure.ac: Fix --with-multilib-list description.
10169 * configure: Regenerate.
10171 2021-09-23 Richard Biener <rguenther@suse.de>
10173 PR tree-optimization/102448
10174 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info):
10175 Clear alignment info copied from DR_PTR_INFO.
10177 2021-09-23 Hongyu Wang <hongyu.wang@intel.com>
10179 * config/i386/i386-expand.c (ix86_use_mask_cmp_p): Enable
10181 * config/i386/sse.md (sseintvecmodelower): Add HF vector modes.
10182 (<avx512>_store<mode>_mask): Extend to support HF vector modes.
10183 (vec_cmp<mode><avx512fmaskmodelower>): Likewise.
10184 (vcond_mask_<mode><avx512fmaskmodelower>): Likewise.
10185 (vcond<mode><mode>): New expander.
10186 (vcond<mode><sseintvecmodelower>): Likewise.
10187 (vcond<sseintvecmodelower><mode>): Likewise.
10188 (vcondu<mode><sseintvecmodelower>): Likewise.
10190 2021-09-23 Hongyu Wang <hongyu.wang@intel.com>
10192 * config/i386/sse.md (extend<ssePHmodelower><mode>2):
10194 (extendv4hf<mode>2): Likewise.
10195 (extendv2hfv2df2): Likewise.
10196 (trunc<mode><ssePHmodelower>2): Likewise.
10197 (avx512fp16_vcvt<castmode>2ph_<mode>): Rename to ...
10198 (trunc<mode>v4hf2): ... this, and drop constraints.
10199 (avx512fp16_vcvtpd2ph_v2df): Rename to ...
10200 (truncv2dfv2hf2): ... this, and likewise.
10202 2021-09-23 Hongyu Wang <hongyu.wang@intel.com>
10204 * config/i386/sse.md (float<floatunssuffix><mode><ssePHmodelower>2):
10206 (avx512fp16_vcvt<floatsuffix><sseintconvert>2ph_<mode>):
10208 (float<floatunssuffix><mode>v4hf2): ... this, and drop constraints.
10209 (avx512fp16_vcvt<floatsuffix>qq2ph_v2di): Rename to ...
10210 (float<floatunssuffix>v2div2hf2): ... this, and likewise.
10212 2021-09-23 Hongyu Wang <hongyu.wang@intel.com>
10214 * config/i386/i386.md (fix<fixunssuffix>_trunchf<mode>2): New expander.
10215 (fixuns_trunchfhi2): Likewise.
10216 (*fixuns_trunchfsi2zext): New define_insn.
10217 * config/i386/sse.md (ssePHmodelower): New mode_attr.
10218 (fix<fixunssuffix>_trunc<ssePHmodelower><mode>2):
10219 New expander for same element vector fix_truncate.
10220 (fix<fixunssuffix>_trunc<ssePHmodelower><mode>2):
10221 Likewise for V4HF to V4SI/V4DI fix_truncate.
10222 (fix<fixunssuffix>_truncv2hfv2di2):
10223 Likeise for V2HF to V2DI fix_truncate.
10225 2021-09-23 Hongyu Wang <hongyu.wang@intel.com>
10227 * config/i386/i386.md (<code>hf3): New expander.
10229 2021-09-23 liuhongt <hongtao.liu@intel.com>
10231 * config/i386/sse.md (FMAMODEM): extend to handle FP16.
10232 (VFH_SF_AVX512VL): Extend to handle HFmode.
10233 (VF_SF_AVX512VL): Deleted.
10235 2021-09-23 liuhongt <hongtao.liu@intel.com>
10237 * config/i386/i386.md (rinthf2): New expander.
10238 (nearbyinthf2): New expander.
10240 2021-09-23 Aldy Hernandez <aldyh@redhat.com>
10242 * tree-ssa-dom.c (class dom_jump_threader_simplifier): Rename...
10243 (class dom_jt_state): ...this and provide virtual overrides.
10244 (dom_jt_state::register_equiv): New.
10245 (class dom_jt_simplifier): Rename from
10246 dom_jump_threader_simplifier.
10247 (dom_jump_threader_simplifier::simplify): Rename...
10248 (dom_jt_simplifier::simplify): ...to this.
10249 (pass_dominator::execute): Use dom_jt_simplifier and
10251 * tree-ssa-threadedge.c (jump_threader::jump_threader):
10253 (jt_state::register_equivs_stmt): Abstract out...
10254 (jump_threader::record_temporary_equivalences_from_stmts_at_dest):
10256 (jump_threader::thread_around_empty_blocks): Update state.
10257 (jump_threader::thread_through_normal_block): Same.
10258 (jt_state::jt_state): Remove.
10259 (jt_state::push): Remove pass specific bits. Keep block vector
10261 (jt_state::append_path): New.
10262 (jt_state::pop): Remove pass specific bits.
10263 (jt_state::register_equiv): Same.
10264 (jt_state::record_ranges_from_stmt): Same.
10265 (jt_state::register_equivs_on_edge): Same. Rename...
10266 (jt_state::register_equivs_edge): ...to this.
10267 (jt_state::dump): New.
10268 (jt_state::debug): New.
10269 (jump_threader_simplifier::simplify): Remove.
10270 (jt_state::get_path): New.
10271 * tree-ssa-threadedge.h (class jt_simplifier): Make into a base
10272 class. Expose common functionality as virtual methods.
10273 (class jump_threader_simplifier): Same. Rename...
10274 (class jt_simplifier): ...to this.
10275 * tree-vrp.c (class vrp_jump_threader_simplifier): Rename...
10276 (class vrp_jt_simplifier): ...to this. Provide pass specific
10278 (class vrp_jt_state): New.
10279 (vrp_jump_threader_simplifier::simplify): Rename...
10280 (vrp_jt_simplifier::simplify): ...to this. Inline code from
10281 what used to be the base class.
10282 (vrp_jump_threader::vrp_jump_threader): Use vrp_jt_state and
10285 2021-09-22 Tobias Burnus <tobias@codesourcery.com>
10288 * doc/invoke.texi (-Wno-missing-include-dirs.): Document Fortran
10291 2021-09-22 Roger Sayle <roger@nextmovesoftware.com>
10292 Richard Biener <rguenther@suse.de>
10294 * match.pd (negation simplifications): Implement some negation
10295 folding transformations from fold-const.c's fold_negate_expr.
10296 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Add a SIMPLIFY
10297 argument, to control whether the op should be simplified prior
10298 to looking up/assigning a value number.
10299 (vn_nary_build_or_lookup): Update call to vn_nary_build_or_lookup_1.
10300 (vn_nary_simplify): Likewise.
10301 (visit_nary_op): Likewise, but when constructing a NEGATE_EXPR
10302 now call vn_nary_build_or_lookup_1 disabling simplification.
10304 2021-09-22 Jiufu Guo <guojiufu@linux.ibm.com>
10306 PR tree-optimization/102087
10307 * tree-ssa-loop-niter.c (number_of_iterations_until_wrap):
10308 Update bound/cmp/control for niter.
10310 2021-09-22 Aldy Hernandez <aldyh@redhat.com>
10312 * gimple-range-fold.cc (fold_using_range::range_of_range_op):
10313 Move check for non-empty BB here.
10314 (fur_source::register_outgoing_edges): ...from here.
10316 2021-09-22 Aldy Hernandez <aldyh@redhat.com>
10318 * gimple-range-path.cc (path_range_query::internal_range_of_expr):
10319 Remove call to improve_range_with_equivs.
10320 (path_range_query::improve_range_with_equivs): Remove
10321 * gimple-range-path.h: Remove improve_range_with_equivs.
10323 2021-09-22 dianhong xu <dianhong.xu@intel.com>
10325 * config/i386/avx512fp16intrin.h:
10326 (_mm512_mask_blend_ph): New intrinsic.
10327 (_mm512_permutex2var_ph): Ditto.
10328 (_mm512_permutexvar_ph): Ditto.
10329 * config/i386/avx512fp16vlintrin.h:
10330 (_mm256_mask_blend_ph): New intrinsic.
10331 (_mm256_permutex2var_ph): Ditto.
10332 (_mm256_permutexvar_ph): Ditto.
10333 (_mm_mask_blend_ph): Ditto.
10334 (_mm_permutex2var_ph): Ditto.
10335 (_mm_permutexvar_ph): Ditto.
10337 2021-09-22 dianhong xu <dianhong.xu@intel.com>
10339 * config/i386/avx512fp16intrin.h: Add new intrinsics.
10340 (_mm512_conj_pch): New intrinsic.
10341 (_mm512_mask_conj_pch): Ditto.
10342 (_mm512_maskz_conj_pch): Ditto.
10343 * config/i386/avx512fp16vlintrin.h: Add new intrinsics.
10344 (_mm256_conj_pch): New intrinsic.
10345 (_mm256_mask_conj_pch): Ditto.
10346 (_mm256_maskz_conj_pch): Ditto.
10347 (_mm_conj_pch): Ditto.
10348 (_mm_mask_conj_pch): Ditto.
10349 (_mm_maskz_conj_pch): Ditto.
10351 2021-09-22 dianhong xu <dianhong.xu@intel.com>
10353 * config/i386/avx512fp16intrin.h (_MM512_REDUCE_OP): New macro
10354 (_mm512_reduce_add_ph): New intrinsic.
10355 (_mm512_reduce_mul_ph): Ditto.
10356 (_mm512_reduce_min_ph): Ditto.
10357 (_mm512_reduce_max_ph): Ditto.
10358 * config/i386/avx512fp16vlintrin.h
10359 (_MM256_REDUCE_OP/_MM_REDUCE_OP): New macro.
10360 (_mm256_reduce_add_ph): New intrinsic.
10361 (_mm256_reduce_mul_ph): Ditto.
10362 (_mm256_reduce_min_ph): Ditto.
10363 (_mm256_reduce_max_ph): Ditto.
10364 (_mm_reduce_add_ph): Ditto.
10365 (_mm_reduce_mul_ph): Ditto.
10366 (_mm_reduce_min_ph): Ditto.
10367 (_mm_reduce_max_ph): Ditto.
10369 2021-09-22 dianhong xu <dianhong.xu@intel.com>
10371 * config/i386/avx512fp16intrin.h (__m512h_u, __m256h_u,
10372 __m128h_u): New typedef.
10373 (_mm512_load_ph): New intrinsic.
10374 (_mm256_load_ph): Ditto.
10375 (_mm_load_ph): Ditto.
10376 (_mm512_loadu_ph): Ditto.
10377 (_mm256_loadu_ph): Ditto.
10378 (_mm_loadu_ph): Ditto.
10379 (_mm512_store_ph): Ditto.
10380 (_mm256_store_ph): Ditto.
10381 (_mm_store_ph): Ditto.
10382 (_mm512_storeu_ph): Ditto.
10383 (_mm256_storeu_ph): Ditto.
10384 (_mm_storeu_ph): Ditto.
10385 (_mm512_abs_ph): Ditto.
10386 * config/i386/avx512fp16vlintrin.h
10387 (_mm_abs_ph): Ditto.
10388 (_mm256_abs_ph): Ditto.
10390 2021-09-22 Andreas Krebbel <krebbel@linux.ibm.com>
10392 * config/s390/tpf.md (prologue_tpf, epilogue_tpf): Add cc clobber.
10394 2021-09-22 Andreas Krebbel <krebbel@linux.ibm.com>
10397 * config/s390/s390.c (s390_expand_insv): Emit a normal move if it
10398 is actually a full copy of the source operand into the target.
10399 Don't emit a strict low part move if source and target mode match.
10401 2021-09-22 Jakub Jelinek <jakub@redhat.com>
10403 PR middle-end/102415
10404 * omp-expand.c (expand_omp_single): If region->exit is NULL,
10405 assert region->entry is GIMPLE_OMP_SCOPE region and return.
10407 2021-09-22 Jakub Jelinek <jakub@redhat.com>
10409 * tree.h (OMP_CLAUSE_ALLOCATE_ALIGN): Define.
10410 * tree.c (omp_clause_num_ops): Change number of OMP_CLAUSE_ALLOCATE
10411 arguments from 2 to 3.
10412 * tree-pretty-print.c (dump_omp_clause): Print allocator() around
10413 allocate clause allocator and print align if present.
10414 * omp-low.c (scan_sharing_clauses): Force allocate_map entry even
10415 for omp_default_mem_alloc if align modifier is present. If align
10416 modifier is present, use TREE_LIST to encode both allocator and
10418 (lower_private_allocate, lower_rec_input_clauses, create_task_copyfn):
10419 Handle align modifier on allocator clause if present.
10421 2021-09-22 liuhongt <hongtao.liu@intel.com>
10423 * config/i386/i386.md (define_attr "isa"): Add
10425 (define_attr "enabled"): Correspond fma_or_avx512vl to
10426 TARGET_FMA || TARGET_AVX512VL.
10427 * config/i386/mmx.md (fmav2sf4): Extend to AVX512 fma.
10429 (fnmav2sf4): Ditto.
10430 (fnmsv2sf4): Ditto.
10432 2021-09-22 liuhongt <hongtao.liu@intel.com>
10434 * config/i386/i386.md (cstorehf3): New define_expand.
10436 2021-09-22 liuhongt <hongtao.liu@intel.com>
10438 * config/i386/i386.md (<rounding_insn>hf2): New expander.
10439 (sse4_1_round<mode>2): Extend from MODEF to MODEFH.
10440 * config/i386/sse.md (*sse4_1_round<ssescalarmodesuffix>):
10441 Extend from VF_128 to VFH_128.
10443 2021-09-22 liuhongt <hongtao.liu@intel.com>
10445 * config/i386/i386-features.c (i386-features.c): Handle
10447 * config/i386/i386.md (sqrthf2): New expander.
10448 (*sqrthf2): New define_insn.
10449 * config/i386/sse.md
10450 (*<sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>):
10453 2021-09-22 liuhongt <hongtao.liu@intel.com>
10455 * config/i386/avx512fp16intrin.h (_mm_mask_fcmadd_sch):
10457 (_mm_mask3_fcmadd_sch): Likewise.
10458 (_mm_maskz_fcmadd_sch): Likewise.
10459 (_mm_fcmadd_sch): Likewise.
10460 (_mm_mask_fmadd_sch): Likewise.
10461 (_mm_mask3_fmadd_sch): Likewise.
10462 (_mm_maskz_fmadd_sch): Likewise.
10463 (_mm_fmadd_sch): Likewise.
10464 (_mm_mask_fcmadd_round_sch): Likewise.
10465 (_mm_mask3_fcmadd_round_sch): Likewise.
10466 (_mm_maskz_fcmadd_round_sch): Likewise.
10467 (_mm_fcmadd_round_sch): Likewise.
10468 (_mm_mask_fmadd_round_sch): Likewise.
10469 (_mm_mask3_fmadd_round_sch): Likewise.
10470 (_mm_maskz_fmadd_round_sch): Likewise.
10471 (_mm_fmadd_round_sch): Likewise.
10472 (_mm_fcmul_sch): Likewise.
10473 (_mm_mask_fcmul_sch): Likewise.
10474 (_mm_maskz_fcmul_sch): Likewise.
10475 (_mm_fmul_sch): Likewise.
10476 (_mm_mask_fmul_sch): Likewise.
10477 (_mm_maskz_fmul_sch): Likewise.
10478 (_mm_fcmul_round_sch): Likewise.
10479 (_mm_mask_fcmul_round_sch): Likewise.
10480 (_mm_maskz_fcmul_round_sch): Likewise.
10481 (_mm_fmul_round_sch): Likewise.
10482 (_mm_mask_fmul_round_sch): Likewise.
10483 (_mm_maskz_fmul_round_sch): Likewise.
10484 * config/i386/i386-builtin.def: Add corresponding new builtins.
10485 * config/i386/sse.md
10486 (avx512fp16_fmaddcsh_v8hf_maskz<round_expand_name>): New expander.
10487 (avx512fp16_fcmaddcsh_v8hf_maskz<round_expand_name>): Ditto.
10488 (avx512fp16_fma_<complexopname>sh_v8hf<mask_scalarcz_name><round_scalarcz_name>):
10490 (avx512fp16_<complexopname>sh_v8hf_mask<round_name>): Ditto.
10491 (avx512fp16_<complexopname>sh_v8hf<mask_scalarc_name><round_scalarcz_name>):
10493 * config/i386/subst.md (mask_scalarcz_name): New.
10494 (mask_scalarc_name): Ditto.
10495 (mask_scalarc_operand3): Ditto.
10496 (mask_scalarcz_operand4): Ditto.
10497 (round_scalarcz_name): Ditto.
10498 (round_scalarc_mask_operand3): Ditto.
10499 (round_scalarcz_mask_operand4): Ditto.
10500 (round_scalarc_mask_op3): Ditto.
10501 (round_scalarcz_mask_op4): Ditto.
10502 (round_scalarcz_constraint): Ditto.
10503 (round_scalarcz_nimm_predicate): Ditto.
10504 (mask_scalarcz): Ditto.
10505 (mask_scalarc): Ditto.
10506 (round_scalarcz): Ditto.
10508 2021-09-22 liuhongt <hongtao.liu@intel.com>
10510 * config/i386/avx512fp16intrin.h (_mm512_fcmadd_pch):
10512 (_mm512_mask_fcmadd_pch): Likewise.
10513 (_mm512_mask3_fcmadd_pch): Likewise.
10514 (_mm512_maskz_fcmadd_pch): Likewise.
10515 (_mm512_fmadd_pch): Likewise.
10516 (_mm512_mask_fmadd_pch): Likewise.
10517 (_mm512_mask3_fmadd_pch): Likewise.
10518 (_mm512_maskz_fmadd_pch): Likewise.
10519 (_mm512_fcmadd_round_pch): Likewise.
10520 (_mm512_mask_fcmadd_round_pch): Likewise.
10521 (_mm512_mask3_fcmadd_round_pch): Likewise.
10522 (_mm512_maskz_fcmadd_round_pch): Likewise.
10523 (_mm512_fmadd_round_pch): Likewise.
10524 (_mm512_mask_fmadd_round_pch): Likewise.
10525 (_mm512_mask3_fmadd_round_pch): Likewise.
10526 (_mm512_maskz_fmadd_round_pch): Likewise.
10527 (_mm512_fcmul_pch): Likewise.
10528 (_mm512_mask_fcmul_pch): Likewise.
10529 (_mm512_maskz_fcmul_pch): Likewise.
10530 (_mm512_fmul_pch): Likewise.
10531 (_mm512_mask_fmul_pch): Likewise.
10532 (_mm512_maskz_fmul_pch): Likewise.
10533 (_mm512_fcmul_round_pch): Likewise.
10534 (_mm512_mask_fcmul_round_pch): Likewise.
10535 (_mm512_maskz_fcmul_round_pch): Likewise.
10536 (_mm512_fmul_round_pch): Likewise.
10537 (_mm512_mask_fmul_round_pch): Likewise.
10538 (_mm512_maskz_fmul_round_pch): Likewise.
10539 * config/i386/avx512fp16vlintrin.h (_mm_fmadd_pch):
10541 (_mm_mask_fmadd_pch): Likewise.
10542 (_mm_mask3_fmadd_pch): Likewise.
10543 (_mm_maskz_fmadd_pch): Likewise.
10544 (_mm256_fmadd_pch): Likewise.
10545 (_mm256_mask_fmadd_pch): Likewise.
10546 (_mm256_mask3_fmadd_pch): Likewise.
10547 (_mm256_maskz_fmadd_pch): Likewise.
10548 (_mm_fcmadd_pch): Likewise.
10549 (_mm_mask_fcmadd_pch): Likewise.
10550 (_mm_mask3_fcmadd_pch): Likewise.
10551 (_mm_maskz_fcmadd_pch): Likewise.
10552 (_mm256_fcmadd_pch): Likewise.
10553 (_mm256_mask_fcmadd_pch): Likewise.
10554 (_mm256_mask3_fcmadd_pch): Likewise.
10555 (_mm256_maskz_fcmadd_pch): Likewise.
10556 (_mm_fmul_pch): Likewise.
10557 (_mm_mask_fmul_pch): Likewise.
10558 (_mm_maskz_fmul_pch): Likewise.
10559 (_mm256_fmul_pch): Likewise.
10560 (_mm256_mask_fmul_pch): Likewise.
10561 (_mm256_maskz_fmul_pch): Likewise.
10562 (_mm_fcmul_pch): Likewise.
10563 (_mm_mask_fcmul_pch): Likewise.
10564 (_mm_maskz_fcmul_pch): Likewise.
10565 (_mm256_fcmul_pch): Likewise.
10566 (_mm256_mask_fcmul_pch): Likewise.
10567 (_mm256_maskz_fcmul_pch): Likewise.
10568 * config/i386/i386-builtin-types.def (V8HF_FTYPE_V8HF_V8HF_V8HF,
10569 V8HF_FTYPE_V16HF_V16HF_V16HF, V16HF_FTYPE_V16HF_V16HF_V16HF_UQI,
10570 V32HF_FTYPE_V32HF_V32HF_V32HF_INT,
10571 V32HF_FTYPE_V32HF_V32HF_V32HF_UHI_INT): Add new builtin types.
10572 * config/i386/i386-builtin.def: Add new builtins.
10573 * config/i386/i386-expand.c: Handle new builtin types.
10574 * config/i386/subst.md (SUBST_CV): New.
10575 (maskc_name): Ditto.
10576 (maskc_operand3): Ditto.
10578 (sdc_maskz_name): Ditto.
10579 (sdc_mask_op4): Ditto.
10580 (sdc_mask_op5): Ditto.
10581 (sdc_mask_mode512bit_condition): Ditto.
10583 (round_maskc_operand3): Ditto.
10584 (round_sdc_mask_operand4): Ditto.
10585 (round_maskc_op3): Ditto.
10586 (round_sdc_mask_op4): Ditto.
10587 (round_saeonly_sdc_mask_operand5): Ditto.
10588 * config/i386/sse.md (unspec): Add complex fma unspecs.
10589 (avx512fmaskcmode): New.
10590 (UNSPEC_COMPLEX_F_C_MA): Ditto.
10591 (UNSPEC_COMPLEX_F_C_MUL): Ditto.
10592 (complexopname): Ditto.
10593 (<avx512>_fmaddc_<mode>_maskz<round_expand_name>): New expander.
10594 (<avx512>_fcmaddc_<mode>_maskz<round_expand_name>): Ditto.
10595 (fma_<complexopname>_<mode><sdc_maskz_name><round_name>): New
10597 (<avx512>_<complexopname>_<mode>_mask<round_name>): Ditto.
10598 (<avx512>_<complexopname>_<mode><maskc_name><round_name>): Ditto.
10600 2021-09-22 Kewen Lin <linkw@linux.ibm.com>
10602 * config/rs6000/rs6000.opt (rs6000-density-pct-threshold,
10603 rs6000-density-size-threshold, rs6000-density-penalty,
10604 rs6000-density-load-pct-threshold,
10605 rs6000-density-load-num-threshold): New parameter.
10606 * config/rs6000/rs6000.c (rs6000_density_test): Adjust with
10607 corresponding parameters.
10609 2021-09-21 Aldy Hernandez <aldyh@redhat.com>
10611 * gimple-range-path.cc (path_range_query::defined_outside_path):
10613 (path_range_query::range_on_path_entry): New.
10614 (path_range_query::internal_range_of_expr): Resolve unknowns
10616 (path_range_query::improve_range_with_equivs): New.
10617 (path_range_query::ssa_range_in_phi): Resolve unknowns with
10619 * gimple-range-path.h (class path_range_query): Add
10620 defined_outside_path, range_on_path_entry, and
10621 improve_range_with_equivs.
10623 2021-09-21 Aldy Hernandez <aldyh@redhat.com>
10625 * gimple-range-path.cc (path_range_query::add_to_imports): New.
10626 (path_range_query::add_copies_to_imports): New.
10627 (path_range_query::precompute_ranges): Call
10628 add_copies_to_imports.
10629 * gimple-range-path.h (class path_range_query): Add prototypes
10630 for add_copies_to_imports and add_to_imports.
10632 2021-09-21 Aldy Hernandez <aldyh@redhat.com>
10634 * gimple-range-path.cc (path_range_query::range_defined_in_block):
10635 Remove useless code.
10637 2021-09-21 Aldy Hernandez <aldyh@redhat.com>
10639 * gimple-range-fold.h (class fur_source): Make oracle protected.
10640 * gimple-range-path.cc (path_range_query::path_range_query): Add
10641 resolve argument. Initialize oracle.
10642 (path_range_query::~path_range_query): Delete oracle.
10643 (path_range_query::range_of_stmt): Adapt to use relations.
10644 (path_range_query::precompute_ranges): Pre-compute relations.
10645 (class jt_fur_source): New
10646 (jt_fur_source::jt_fur_source): New.
10647 (jt_fur_source::register_relation): New.
10648 (jt_fur_source::query_relation): New.
10649 (path_range_query::precompute_relations): New.
10650 (path_range_query::precompute_phi_relations): New.
10651 * gimple-range-path.h (path_range_query): Add resolve argument.
10652 Add oracle, precompute_relations, precompute_phi_relations.
10653 * tree-ssa-threadbackward.c (back_threader::back_threader): Pass
10654 resolve argument to solver.
10656 2021-09-21 Aldy Hernandez <aldyh@redhat.com>
10658 * gimple-range-fold.cc (fold_using_range::range_of_range_op):
10659 Rename postfold_gcond_edges to register_outgoing_edges and
10661 (fold_using_range::postfold_gcond_edges): Rename...
10662 (fur_source::register_outgoing_edges): ...to this.
10663 * gimple-range-fold.h (postfold_gcond_edges): Rename to
10664 register_outgoing_edges and move to fur_source.
10666 2021-09-21 Aldy Hernandez <aldyh@redhat.com>
10668 * gimple-range-fold.cc (fold_using_range::range_of_phi): Check
10669 dom_info_available_p.
10671 2021-09-21 Aldy Hernandez <aldyh@redhat.com>
10673 * gimple-range-cache.cc (non_null_ref::non_null_ref): Use create
10674 and quick_grow_cleared instead of safe_grow_cleared.
10676 2021-09-21 Thomas Schwinge <thomas@codesourcery.com>
10679 * omp-oacc-neuter-broadcast.cc (oacc_do_neutering): Evaluate
10680 'random ()' to '0'.
10682 2021-09-21 Richard Earnshaw <rearnsha@arm.com>
10684 * configure.ac: Detect when the assembler supports new-style
10685 architecture extensions.
10686 * common/config/arm/arm-common.c (arm_rewrite_mcpu): Return
10687 the full CPU string if the assembler can grok it.
10688 (arm_rewrite_march): Likewise but for the architecture.
10689 * config.in: Regenerate.
10690 * configure: Regenerate.
10692 2021-09-21 Richard Biener <rguenther@suse.de>
10694 PR tree-optimization/102421
10695 * tree-vect-loop.c (vect_dissolve_slp_only_groups): Copy and
10696 adjust alignment info.
10698 2021-09-21 Kewen Lin <linkw@linux.ibm.com>
10700 * ipa-fnsummary.c (ipa_fn_summary_write): Remove inconsistent
10701 bitfield stream out.
10703 2021-09-20 Andrew MacLeod <amacleod@redhat.com>
10705 * gimple-range-fold.cc (fold_using_range::range_of_phi): Ignore
10706 undefined edges, apply an equivalence if appropriate.
10707 * gimple-range-gori.cc (gori_compute::outgoing_edge_range_p): Return
10708 UNDEFINED if EDGE_EXECUTABLE is not set.
10709 * gimple-range.cc (gimple_ranger::gimple_ranger): Set all edges
10710 as EXECUTABLE upon startup.
10711 (gimple_ranger::range_on_edge): Return UNDEFINED for edges without
10712 EDGE_EXECUTABLE set.
10713 * vr-values.c (set_and_propagate_unexecutable): New.
10714 (simplify_using_ranges::fold_cond): Call set_and_propagate.
10715 (simplify_using_ranges::simplify_switch_using_ranges): Ditto.
10716 * vr-values.h: Add prototype.
10718 2021-09-20 Andrew MacLeod <amacleod@redhat.com>
10720 * value-relation.cc (equiv_oracle::register_initial_def): New.
10721 (equiv_oracle::register_relation): Call register_initial_def.
10722 (equiv_oracle::add_equiv_to_block): New. Split register_relation.
10723 (relation_oracle::register_stmt): Check def block of PHI arguments.
10724 * value-relation.h (equiv_oracle): Add new prototypes.
10726 2021-09-20 Matthias Kretz <m.kretz@gsi.de>
10728 * cppbuiltin.c (define_builtin_macros_for_compilation_flags):
10729 Define __RECIPROCAL_MATH__, __NO_SIGNED_ZEROS__,
10730 __NO_TRAPPING_MATH__, __ASSOCIATIVE_MATH__, and
10731 __ROUNDING_MATH__ according to their corresponding flags.
10732 * doc/cpp.texi: Document __RECIPROCAL_MATH__,
10733 __NO_SIGNED_ZEROS__, __NO_TRAPPING_MATH__, __ASSOCIATIVE_MATH__,
10734 and __ROUNDING_MATH__.
10736 2021-09-20 Richard Biener <rguenther@suse.de>
10738 * tree-vect-stmts.c (vectorizable_load): Use the vectype
10741 2021-09-20 Richard Biener <rguenther@suse.de>
10743 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info):
10744 Do not compute alignment of the vectorized access here.
10746 2021-09-20 Richard Biener <rguenther@suse.de>
10748 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
10749 Store -1 for runtime alias peeling iterations.
10751 2021-09-20 Richard Biener <rguenther@suse.de>
10753 * config.gcc: Obsolete hppa[12]*-*-hpux10* and hppa[12]*-*-hpux11*.
10755 2021-09-20 Thomas Schwinge <thomas@codesourcery.com>
10757 * input.c (string_concat_db::record_string_concatenation)
10758 (string_concat_db::get_string_concatenation): Skip for
10759 'RESERVED_LOCATION_P'.
10761 2021-09-20 Richard Biener <rguenther@suse.de>
10763 PR tree-optimization/65206
10764 * tree-data-ref.h (struct data_reference): Add alt_indices,
10766 * tree-data-ref.c (free_data_ref): Release alt_indices.
10767 (dr_analyze_indices): Work on struct indices and get DR_REF as tree.
10768 (create_data_ref): Adjust.
10769 (initialize_data_dependence_relation): Split into head
10770 and tail. When the base objects fail to match up try
10771 again with pointer-based analysis of indices.
10772 * tree-vectorizer.c (vec_info_shared::check_datarefs): Do
10773 not compare the lazily computed alternate set of indices.
10775 2021-09-20 Iain Sandoe <iain@sandoe.co.uk>
10777 * gcc.c: Test for execute OK when we find the
10778 programs for assembler linker and dsymutil and those
10779 were specified at configure-time.
10781 2021-09-19 Martin Sebor <msebor@redhat.com>
10783 PR middle-end/102403
10784 * gimple-predicate-analysis.cc (predicate::init_from_control_deps):
10785 Correct a function pre/postcondition.
10787 2021-09-19 Martin Sebor <msebor@redhat.com>
10789 PR middle-end/102243
10790 * tree-ssa-strlen.c (get_range): Handle null cfun.
10792 2021-09-19 Iain Sandoe <iain@sandoe.co.uk>
10794 * config/darwin.h (LINK_COMMAND_SPEC_A): Use Darwin10
10795 unwinder shim as a convenience library.
10797 2021-09-19 Andrew Pinski <apinski@marvell.com>
10799 * doc/install.texi: Add note about
10800 binutils 2.35 is required for LTO usage.
10802 2021-09-19 Aldy Hernandez <aldyh@redhat.com>
10804 * tree-ssa-threadbackward.c
10805 (back_threader_registry::register_path): Use push_edge.
10806 * tree-ssa-threadedge.c
10807 (jump_threader::thread_around_empty_blocks): Same.
10808 (jump_threader::thread_through_normal_block): Same.
10809 (jump_threader::thread_across_edge): Same. Also, use auto_bitmap.
10811 * tree-ssa-threadupdate.c
10812 (jt_path_registry::allocate_thread_edge): Remove.
10813 (jt_path_registry::push_edge): New.
10814 (dump_jump_thread_path): Make static.
10815 * tree-ssa-threadupdate.h (allocate_thread_edge): Remove.
10818 2021-09-19 Aldy Hernandez <aldyh@redhat.com>
10820 * gimple-range-path.cc (path_range_query::path_range_query): Add
10822 (path_range_query::dump): Remove extern declaration of dump_ranger.
10823 * gimple-range-trace.cc (dump_ranger): Add DEBUG_FUNCTION marker.
10824 * gimple-range-trace.h (dump_ranger): Add prototype.
10826 2021-09-19 John Ericson <git@JohnEricson.me>
10828 * gcc.c (find_a_program): New function, factored out of...
10829 (find_a_file): Here.
10830 (execute): Use find_a_program when looking for programs rather
10833 2021-09-19 Matwey V. Kornilov <matwey.kornilov@gmail.com>
10835 * config/avr/avr-mcus.def: Add atmega324pb.
10836 * doc/avr-mmcu.texi: Corresponding changes.
10838 2021-09-19 Roger Sayle <roger@nextmovesoftware.com>
10840 PR middle-end/88173
10841 * match.pd (cmp @0 REAL_CST@1): When @0 is also REAL_CST, apply
10842 the same transformations as to @1. For comparisons against NaN,
10843 don't check HONOR_SNANS but confirm that neither operand is a
10846 2021-09-19 Benjamin Peterson <benjamin@locrian.net>
10848 * attribs.c (make_unique_name): Delete.
10849 * attribs.h (make_unique_name): Delete.
10851 2021-09-19 Andrew Pinski <apinski@marvell.com>
10853 * lra-constraints.c (check_and_process_move): Assert
10854 that dclass and sclass are greater than or equal to NO_REGS.
10856 2021-09-18 Jakub Jelinek <jakub@redhat.com>
10858 * tree.h (OMP_CLAUSE_ORDER_UNCONSTRAINED): Define.
10859 * tree-pretty-print.c (dump_omp_clause): Print unconstrained:
10860 for OMP_CLAUSE_ORDER_UNCONSTRAINED.
10862 2021-09-18 liuhongt <hongtao.liu@intel.com>
10864 * config/i386/i386-features.c (remove_partial_avx_dependency):
10865 Restrict TARGET_USE_VECTOR_FP_CONVERTS and
10866 TARGET_USE_VECTOR_CONVERTS to conversion instructions only.
10868 2021-09-18 Jakub Jelinek <jakub@redhat.com>
10870 * gimplify.c (omp_default_clause): For C/C++ default({,first}private),
10871 if file/namespace scope variable doesn't have predetermined sharing,
10872 treat it as if there was default(none).
10874 2021-09-18 liuhongt <hongtao.liu@intel.com>
10876 * config/i386/avx512fp16intrin.h (_mm_fmadd_sh):
10878 (_mm_mask_fmadd_sh): Likewise.
10879 (_mm_mask3_fmadd_sh): Likewise.
10880 (_mm_maskz_fmadd_sh): Likewise.
10881 (_mm_fmadd_round_sh): Likewise.
10882 (_mm_mask_fmadd_round_sh): Likewise.
10883 (_mm_mask3_fmadd_round_sh): Likewise.
10884 (_mm_maskz_fmadd_round_sh): Likewise.
10885 (_mm_fnmadd_sh): Likewise.
10886 (_mm_mask_fnmadd_sh): Likewise.
10887 (_mm_mask3_fnmadd_sh): Likewise.
10888 (_mm_maskz_fnmadd_sh): Likewise.
10889 (_mm_fnmadd_round_sh): Likewise.
10890 (_mm_mask_fnmadd_round_sh): Likewise.
10891 (_mm_mask3_fnmadd_round_sh): Likewise.
10892 (_mm_maskz_fnmadd_round_sh): Likewise.
10893 (_mm_fmsub_sh): Likewise.
10894 (_mm_mask_fmsub_sh): Likewise.
10895 (_mm_mask3_fmsub_sh): Likewise.
10896 (_mm_maskz_fmsub_sh): Likewise.
10897 (_mm_fmsub_round_sh): Likewise.
10898 (_mm_mask_fmsub_round_sh): Likewise.
10899 (_mm_mask3_fmsub_round_sh): Likewise.
10900 (_mm_maskz_fmsub_round_sh): Likewise.
10901 (_mm_fnmsub_sh): Likewise.
10902 (_mm_mask_fnmsub_sh): Likewise.
10903 (_mm_mask3_fnmsub_sh): Likewise.
10904 (_mm_maskz_fnmsub_sh): Likewise.
10905 (_mm_fnmsub_round_sh): Likewise.
10906 (_mm_mask_fnmsub_round_sh): Likewise.
10907 (_mm_mask3_fnmsub_round_sh): Likewise.
10908 (_mm_maskz_fnmsub_round_sh): Likewise.
10909 * config/i386/i386-builtin-types.def
10910 (V8HF_FTYPE_V8HF_V8HF_V8HF_UQI_INT): New builtin type.
10911 * config/i386/i386-builtin.def: Add new builtins.
10912 * config/i386/i386-expand.c: Handle new builtin type.
10913 * config/i386/sse.md (fmai_vmfmadd_<mode><round_name>):
10914 Ajdust to support FP16.
10915 (fmai_vmfmsub_<mode><round_name>): Ditto.
10916 (fmai_vmfnmadd_<mode><round_name>): Ditto.
10917 (fmai_vmfnmsub_<mode><round_name>): Ditto.
10918 (*fmai_fmadd_<mode>): Ditto.
10919 (*fmai_fmsub_<mode>): Ditto.
10920 (*fmai_fnmadd_<mode><round_name>): Ditto.
10921 (*fmai_fnmsub_<mode><round_name>): Ditto.
10922 (avx512f_vmfmadd_<mode>_mask<round_name>): Ditto.
10923 (avx512f_vmfmadd_<mode>_mask3<round_name>): Ditto.
10924 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): Ditto.
10925 (avx512f_vmfmadd_<mode>_maskz_1<round_name>): Ditto.
10926 (*avx512f_vmfmsub_<mode>_mask<round_name>): Ditto.
10927 (avx512f_vmfmsub_<mode>_mask3<round_name>): Ditto.
10928 (*avx512f_vmfmsub_<mode>_maskz_1<round_name>): Ditto.
10929 (*avx512f_vmfnmsub_<mode>_mask<round_name>): Ditto.
10930 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): Ditto.
10931 (*avx512f_vmfnmsub_<mode>_mask<round_name>): Ditto.
10932 (*avx512f_vmfnmadd_<mode>_mask<round_name>): Renamed to ...
10933 (avx512f_vmfnmadd_<mode>_mask<round_name>) ... this, and
10934 adjust to support FP16.
10935 (avx512f_vmfnmadd_<mode>_mask3<round_name>): Ditto.
10936 (avx512f_vmfnmadd_<mode>_maskz_1<round_name>): Ditto.
10937 (avx512f_vmfnmadd_<mode>_maskz<round_expand_name>): New
10940 2021-09-18 H.J. Lu <hjl.tools@gmail.com>
10942 * config/i386/sse.md (avx512fmaskmodelower): Extend to support
10944 (maskload<mode><avx512fmaskmodelower>): Ditto.
10945 (maskstore<mode><avx512fmaskmodelower>): Ditto.
10947 2021-09-18 H.J. Lu <hjl.tools@gmail.com>
10949 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
10951 (ix86_expand_copysign): Ditto.
10952 (ix86_expand_xorsign): Ditto.
10953 * config/i386/i386.c (ix86_build_const_vector): Handle HF vector
10955 (ix86_build_signbit_mask): Ditto.
10956 (ix86_can_change_mode_class): Ditto.
10957 * config/i386/i386.md
10958 (SSEMODEF): Add HFmode.
10959 (ssevecmodef): Ditto.
10960 (<code>hf2): New define_expand.
10961 (*<code>hf2_1): New define_insn_and_split.
10962 (copysign<mode>): Extend to support HFmode under AVX512FP16.
10963 (xorsign<mode>): Ditto.
10964 * config/i386/sse.md (VFB): New mode iterator.
10965 (VFB_128_256): Ditto.
10967 (sseintvecmode2): Support HF vector mode.
10968 (<code><mode>2): Use new mode iterator.
10969 (*<code><mode>2): Ditto.
10970 (copysign<mode>3): Ditto.
10971 (xorsign<mode>3): Ditto.
10972 (<code><mode>3<mask_name>): Ditto.
10973 (<code><mode>3<mask_name>): Ditto.
10974 (<sse>_andnot<mode>3<mask_name>): Adjust for HF vector mode.
10975 (<sse>_andnot<mode>3<mask_name>): Ditto.
10976 (*<code><mode>3<mask_name>): Ditto.
10977 (*<code><mode>3<mask_name>): Ditto.
10979 2021-09-18 liuhongt <hongtao.liu@intel.com>
10981 * config/i386/avx512fp16intrin.h (_mm512_mask_fmadd_ph):
10983 (_mm512_mask3_fmadd_ph): Likewise.
10984 (_mm512_maskz_fmadd_ph): Likewise.
10985 (_mm512_fmadd_round_ph): Likewise.
10986 (_mm512_mask_fmadd_round_ph): Likewise.
10987 (_mm512_mask3_fmadd_round_ph): Likewise.
10988 (_mm512_maskz_fmadd_round_ph): Likewise.
10989 (_mm512_fnmadd_ph): Likewise.
10990 (_mm512_mask_fnmadd_ph): Likewise.
10991 (_mm512_mask3_fnmadd_ph): Likewise.
10992 (_mm512_maskz_fnmadd_ph): Likewise.
10993 (_mm512_fnmadd_round_ph): Likewise.
10994 (_mm512_mask_fnmadd_round_ph): Likewise.
10995 (_mm512_mask3_fnmadd_round_ph): Likewise.
10996 (_mm512_maskz_fnmadd_round_ph): Likewise.
10997 (_mm512_fmsub_ph): Likewise.
10998 (_mm512_mask_fmsub_ph): Likewise.
10999 (_mm512_mask3_fmsub_ph): Likewise.
11000 (_mm512_maskz_fmsub_ph): Likewise.
11001 (_mm512_fmsub_round_ph): Likewise.
11002 (_mm512_mask_fmsub_round_ph): Likewise.
11003 (_mm512_mask3_fmsub_round_ph): Likewise.
11004 (_mm512_maskz_fmsub_round_ph): Likewise.
11005 (_mm512_fnmsub_ph): Likewise.
11006 (_mm512_mask_fnmsub_ph): Likewise.
11007 (_mm512_mask3_fnmsub_ph): Likewise.
11008 (_mm512_maskz_fnmsub_ph): Likewise.
11009 (_mm512_fnmsub_round_ph): Likewise.
11010 (_mm512_mask_fnmsub_round_ph): Likewise.
11011 (_mm512_mask3_fnmsub_round_ph): Likewise.
11012 (_mm512_maskz_fnmsub_round_ph): Likewise.
11013 * config/i386/avx512fp16vlintrin.h (_mm256_fmadd_ph):
11015 (_mm256_mask_fmadd_ph): Likewise.
11016 (_mm256_mask3_fmadd_ph): Likewise.
11017 (_mm256_maskz_fmadd_ph): Likewise.
11018 (_mm_fmadd_ph): Likewise.
11019 (_mm_mask_fmadd_ph): Likewise.
11020 (_mm_mask3_fmadd_ph): Likewise.
11021 (_mm_maskz_fmadd_ph): Likewise.
11022 (_mm256_fnmadd_ph): Likewise.
11023 (_mm256_mask_fnmadd_ph): Likewise.
11024 (_mm256_mask3_fnmadd_ph): Likewise.
11025 (_mm256_maskz_fnmadd_ph): Likewise.
11026 (_mm_fnmadd_ph): Likewise.
11027 (_mm_mask_fnmadd_ph): Likewise.
11028 (_mm_mask3_fnmadd_ph): Likewise.
11029 (_mm_maskz_fnmadd_ph): Likewise.
11030 (_mm256_fmsub_ph): Likewise.
11031 (_mm256_mask_fmsub_ph): Likewise.
11032 (_mm256_mask3_fmsub_ph): Likewise.
11033 (_mm256_maskz_fmsub_ph): Likewise.
11034 (_mm_fmsub_ph): Likewise.
11035 (_mm_mask_fmsub_ph): Likewise.
11036 (_mm_mask3_fmsub_ph): Likewise.
11037 (_mm_maskz_fmsub_ph): Likewise.
11038 (_mm256_fnmsub_ph): Likewise.
11039 (_mm256_mask_fnmsub_ph): Likewise.
11040 (_mm256_mask3_fnmsub_ph): Likewise.
11041 (_mm256_maskz_fnmsub_ph): Likewise.
11042 (_mm_fnmsub_ph): Likewise.
11043 (_mm_mask_fnmsub_ph): Likewise.
11044 (_mm_mask3_fnmsub_ph): Likewise.
11045 (_mm_maskz_fnmsub_ph): Likewise.
11046 * config/i386/i386-builtin.def: Add corresponding new builtins.
11047 * config/i386/sse.md
11048 (<avx512>_fmadd_<mode>_maskz<round_expand_name>): Adjust to
11049 support HF vector modes.
11050 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
11052 (*<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name>_bcst_1): Ditto.
11053 (*<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name>_bcst_2): Ditto.
11054 (*<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name>_bcst_3): Ditto.
11055 (<avx512>_fmadd_<mode>_mask<round_name>): Ditto.
11056 (<avx512>_fmadd_<mode>_mask3<round_name>): Ditto.
11057 (<avx512>_fmsub_<mode>_maskz<round_expand_name>): Ditto.
11058 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>):
11060 (*<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name>_bcst_1): Ditto.
11061 (*<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name>_bcst_2): Ditto.
11062 (*<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name>_bcst_3): Ditto.
11063 (<avx512>_fmsub_<mode>_mask<round_name>): Ditto.
11064 (<avx512>_fmsub_<mode>_mask3<round_name>): Ditto.
11065 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>):
11067 (*<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name>_bcst_1): Ditto.
11068 (*<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name>_bcst_2): Ditto.
11069 (*<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name>_bcst_3): Ditto.
11070 (<avx512>_fnmadd_<mode>_mask<round_name>): Ditto.
11071 (<avx512>_fnmadd_<mode>_mask3<round_name>): Ditto.
11072 (<avx512>_fnmsub_<mode>_maskz<round_expand_name>): Ditto.
11073 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>):
11075 (*<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name>_bcst_1): Ditto.
11076 (*<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name>_bcst_2): Ditto.
11077 (*<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name>_bcst_3): Ditto.
11078 (<avx512>_fnmsub_<mode>_mask<round_name>): Ditto.
11079 (<avx512>_fnmsub_<mode>_mask3<round_name>): Ditto.
11081 2021-09-18 liuhongt <hongtao.liu@intel.com>
11083 * config/i386/avx512fp16intrin.h (_mm512_fmaddsub_ph):
11085 (_mm512_mask_fmaddsub_ph): Likewise.
11086 (_mm512_mask3_fmaddsub_ph): Likewise.
11087 (_mm512_maskz_fmaddsub_ph): Likewise.
11088 (_mm512_fmaddsub_round_ph): Likewise.
11089 (_mm512_mask_fmaddsub_round_ph): Likewise.
11090 (_mm512_mask3_fmaddsub_round_ph): Likewise.
11091 (_mm512_maskz_fmaddsub_round_ph): Likewise.
11092 (_mm512_mask_fmsubadd_ph): Likewise.
11093 (_mm512_mask3_fmsubadd_ph): Likewise.
11094 (_mm512_maskz_fmsubadd_ph): Likewise.
11095 (_mm512_fmsubadd_round_ph): Likewise.
11096 (_mm512_mask_fmsubadd_round_ph): Likewise.
11097 (_mm512_mask3_fmsubadd_round_ph): Likewise.
11098 (_mm512_maskz_fmsubadd_round_ph): Likewise.
11099 * config/i386/avx512fp16vlintrin.h (_mm256_fmaddsub_ph):
11101 (_mm256_mask_fmaddsub_ph): Likewise.
11102 (_mm256_mask3_fmaddsub_ph): Likewise.
11103 (_mm256_maskz_fmaddsub_ph): Likewise.
11104 (_mm_fmaddsub_ph): Likewise.
11105 (_mm_mask_fmaddsub_ph): Likewise.
11106 (_mm_mask3_fmaddsub_ph): Likewise.
11107 (_mm_maskz_fmaddsub_ph): Likewise.
11108 (_mm256_fmsubadd_ph): Likewise.
11109 (_mm256_mask_fmsubadd_ph): Likewise.
11110 (_mm256_mask3_fmsubadd_ph): Likewise.
11111 (_mm256_maskz_fmsubadd_ph): Likewise.
11112 (_mm_fmsubadd_ph): Likewise.
11113 (_mm_mask_fmsubadd_ph): Likewise.
11114 (_mm_mask3_fmsubadd_ph): Likewise.
11115 (_mm_maskz_fmsubadd_ph): Likewise.
11116 * config/i386/i386-builtin.def: Add corresponding new builtins.
11117 * config/i386/sse.md (VFH_SF_AVX512VL): New mode iterator.
11118 * (<avx512>_fmsubadd_<mode>_maskz<round_expand_name>): New expander.
11119 * (<avx512>_fmaddsub_<mode>_maskz<round_expand_name>): Use
11121 * (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
11123 * (<avx512>_fmaddsub_<mode>_mask<round_name>): Ditto.
11124 * (<avx512>_fmaddsub_<mode>_mask3<round_name>): Ditto.
11125 * (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
11127 * (<avx512>_fmsubadd_<mode>_mask<round_name>): Ditto.
11128 * (<avx512>_fmsubadd_<mode>_mask3<round_name>): Ditto.
11130 2021-09-18 liuhongt <hongtao.liu@intel.com>
11133 * config/i386/i386.c (ix86_print_operand): Handle
11134 V8HF/V16HF/V32HFmode.
11135 * config/i386/i386.h (VALID_BCST_MODE_P): Add HFmode.
11136 * config/i386/sse.md (avx512bcst): Remove.
11138 2021-09-17 Martin Sebor <msebor@redhat.com>
11140 * Makefile.in (OBJS): Add gimple-predicate-analysis.o.
11141 * tree-ssa-uninit.c (max_phi_args): Move to gimple-predicate-analysis.
11142 (MASK_SET_BIT, MASK_TEST_BIT, MASK_EMPTY): Same.
11143 (check_defs): Add comment.
11144 (can_skip_redundant_opnd): Update comment.
11145 (compute_uninit_opnds_pos): Adjust to namespace change.
11146 (find_pdom): Move to gimple-predicate-analysis.cc.
11148 (struct uninit_undef_val_t): New.
11149 (is_non_loop_exit_postdominating): Move to gimple-predicate-analysis.cc.
11150 (find_control_equiv_block): Same.
11151 (MAX_NUM_CHAINS, MAX_CHAIN_LEN, MAX_POSTDOM_CHECK): Same.
11152 (MAX_SWITCH_CASES): Same.
11153 (compute_control_dep_chain): Same.
11154 (find_uninit_use): Use predicate analyzer.
11155 (struct pred_info): Move to gimple-predicate-analysis.
11156 (convert_control_dep_chain_into_preds): Same.
11157 (find_predicates): Same.
11158 (collect_phi_def_edges): Same.
11159 (warn_uninitialized_phi): Use predicate analyzer.
11160 (find_def_preds): Move to gimple-predicate-analysis.
11161 (dump_pred_info): Same.
11162 (dump_pred_chain): Same.
11163 (dump_predicates): Same.
11164 (destroy_predicate_vecs): Remove.
11165 (execute_late_warn_uninitialized): New.
11166 (get_cmp_code): Move to gimple-predicate-analysis.
11167 (is_value_included_in): Same.
11168 (value_sat_pred_p): Same.
11169 (find_matching_predicate_in_rest_chains): Same.
11170 (is_use_properly_guarded): Same.
11171 (prune_uninit_phi_opnds): Same.
11172 (find_var_cmp_const): Same.
11173 (use_pred_not_overlap_with_undef_path_pred): Same.
11174 (pred_equal_p): Same.
11175 (is_neq_relop_p): Same.
11176 (is_neq_zero_form_p): Same.
11177 (pred_expr_equal_p): Same.
11178 (is_pred_expr_subset_of): Same.
11179 (is_pred_chain_subset_of): Same.
11180 (is_included_in): Same.
11181 (is_superset_of): Same.
11182 (pred_neg_p): Same.
11183 (simplify_pred): Same.
11184 (simplify_preds_2): Same.
11185 (simplify_preds_3): Same.
11186 (simplify_preds_4): Same.
11187 (simplify_preds): Same.
11189 (push_to_worklist): Same.
11190 (get_pred_info_from_cmp): Same.
11191 (is_degenerated_phi): Same.
11192 (normalize_one_pred_1): Same.
11193 (normalize_one_pred): Same.
11194 (normalize_one_pred_chain): Same.
11195 (normalize_preds): Same.
11196 (can_one_predicate_be_invalidated_p): Same.
11197 (can_chain_union_be_invalidated_p): Same.
11198 (uninit_uses_cannot_happen): Same.
11199 (pass_late_warn_uninitialized::execute): Define.
11200 * gimple-predicate-analysis.cc: New file.
11201 * gimple-predicate-analysis.h: New file.
11203 2021-09-17 Julian Brown <julian@codesourcery.com>
11205 * config/gcn/gcn.c (gimple.h): Include.
11206 (gcn_fork_join): Emit barrier for worker-level joins.
11207 * omp-oacc-neuter-broadcast.cc (find_local_vars_to_propagate): Add
11208 writes_gang_private bitmap parameter. Set bit for blocks
11209 containing gang-private variable writes.
11210 (worker_single_simple): Don't emit barrier after predicated block.
11211 (worker_single_copy): Don't emit barrier if we're not broadcasting
11212 anything and the block contains no gang-private writes.
11213 (neuter_worker_single): Don't predicate blocks that only contain
11214 NOPs or internal marker functions. Pass has_gang_private_write
11215 argument to worker_single_copy.
11216 (oacc_do_neutering): Add writes_gang_private bitmap handling.
11218 2021-09-17 Julian Brown <julian@codesourcery.com>
11220 * config/gcn/gcn-protos.h
11221 (gcn_goacc_create_worker_broadcast_record): Update prototype.
11222 * config/gcn/gcn-tree.c (gcn_goacc_get_worker_red_decl): Use
11223 preallocated block of LDS memory. Do not cache/share decls for
11224 reduction temporaries between invocations.
11225 (gcn_goacc_reduction_teardown): Unshare VAR on second use.
11226 (gcn_goacc_create_worker_broadcast_record): Add OFFSET parameter
11227 and return temporary LDS space at that offset. Return pointer in
11229 * config/gcn/gcn.c (acc_lds_size, gang_private_hwm, lds_allocs):
11231 (ACC_LDS_SIZE): Define as acc_lds_size.
11232 (gcn_init_machine_status): Don't initialise lds_allocated,
11233 lds_allocs, reduc_decls fields of machine function struct.
11234 (gcn_option_override): Handle default size for gang-private
11235 variables and -mgang-private-size option.
11236 (gcn_expand_prologue): Use LDS_SIZE instead of LDS_SIZE-1 when
11237 initialising M0_REG.
11238 (gcn_shared_mem_layout): New function.
11239 (gcn_print_lds_decl): Update comment. Use global lds_allocs map and
11240 gang_private_hwm variable.
11241 (TARGET_GOACC_SHARED_MEM_LAYOUT): Define target hook.
11242 * config/gcn/gcn.h (machine_function): Remove lds_allocated,
11243 lds_allocs, reduc_decls. Add reduction_base, reduction_limit.
11244 * config/gcn/gcn.opt (gang_private_size_opt): New global.
11245 (mgang-private-size=): New option.
11246 * doc/tm.texi.in (TARGET_GOACC_SHARED_MEM_LAYOUT): Place
11247 documentation hook.
11248 * doc/tm.texi: Regenerate.
11249 * omp-oacc-neuter-broadcast.cc (targhooks.h, diagnostic-core.h):
11251 (build_sender_ref): Handle sender_decl being pointer.
11252 (worker_single_copy): Add PLACEMENT and ISOLATE_BROADCASTS
11253 parameters. Pass placement argument to
11254 create_worker_broadcast_record hook invocations. Handle
11255 sender_decl being pointer and isolate_broadcasts inserting extra
11257 (blk_offset_map_t): Add typedef.
11258 (neuter_worker_single): Add BLK_OFFSET_MAP parameter. Pass
11259 preallocated range to worker_single_copy call.
11260 (dfs_broadcast_reachable_1): New function.
11261 (idx_decl_pair_t, used_range_vec_t): New typedefs.
11262 (sort_size_descending): New function.
11263 (addr_range): New class.
11264 (splay_tree_compare_addr_range, splay_tree_free_key)
11265 (first_fit_range, merge_ranges_1, merge_ranges): New functions.
11266 (execute_omp_oacc_neuter_broadcast): Rename to...
11267 (oacc_do_neutering): ... this. Add BOUNDS_LO, BOUNDS_HI
11268 parameters. Arrange layout of shared memory for broadcast
11270 (execute_omp_oacc_neuter_broadcast): New function.
11271 (pass_omp_oacc_neuter_broadcast::gate): Remove num_workers==1
11272 handling from here. Enable pass for all OpenACC routines in order
11273 to call shared memory-layout hook.
11274 * target.def (create_worker_broadcast_record): Add OFFSET
11276 (shared_mem_layout): New hook.
11278 2021-09-17 Julian Brown <julian@codesourcery.com>
11279 Thomas Schwinge <thomas@codesourcery.com>
11281 * omp-oacc-neuter-broadcast.cc
11282 (pass_omp_oacc_neuter_broadcast::gate): Disable if num_workers is
11284 (execute_omp_oacc_neuter_broadcast): Adjust.
11286 2021-09-17 Andrew MacLeod <amacleod@redhat.com>
11288 * value-relation.cc (class equiv_chain): Move to header file.
11289 (path_oracle::path_oracle): New.
11290 (path_oracle::~path_oracle): New.
11291 (path_oracle::register_relation): New.
11292 (path_oracle::query_relation): New.
11293 (path_oracle::reset_path): New.
11294 (path_oracle::dump): New.
11295 * value-relation.h (class equiv_chain): Move to here.
11296 (class path_oracle): New.
11298 2021-09-17 Andrew MacLeod <amacleod@redhat.com>
11300 * gimple-range-cache.cc (ranger_cache::ranger_cache): Create a DOM
11302 * gimple-range-fold.cc (fur_depend::register_relation): Use
11303 register_stmt/edge routines.
11304 * value-relation.cc (equiv_chain::find): Relocate from equiv_oracle.
11305 (equiv_oracle::equiv_oracle): Create self equivalence cache.
11306 (equiv_oracle::~equiv_oracle): Release same.
11307 (equiv_oracle::equiv_set): Return entry from self equiv cache if there
11308 are no equivalences.
11309 (equiv_oracle::find_equiv_block): Move list find to equiv_chain.
11310 (equiv_oracle::register_relation): Rename from register_equiv.
11311 (relation_chain_head::find_relation): Relocate from dom_oracle.
11312 (relation_oracle::register_stmt): New.
11313 (relation_oracle::register_edge): New.
11314 (dom_oracle::*): Rename from relation_oracle.
11315 (dom_oracle::register_relation): Adjust to call equiv_oracle.
11316 (dom_oracle::set_one_relation): Split from register_relation.
11317 (dom_oracle::register_transitives): Consolidate 2 methods.
11318 (dom_oracle::find_relation_block): Move core to relation_chain.
11319 (dom_oracle::query_relation): Rename from find_relation_dom and adjust.
11320 * value-relation.h (class relation_oracle): New pure virtual base.
11321 (class equiv_oracle): Inherit from relation_oracle and adjust.
11322 (class dom_oracle): Rename from old relation_oracle and adjust.
11324 2021-09-17 Martin Sebor <msebor@redhat.com>
11326 PR middle-end/102200
11327 * pointer-query.cc (access_ref::inform_access): Handle MIN/MAX_EXPR.
11328 (handle_min_max_size): Change argument. Store original SSA_NAME for
11329 operands to potentially distinct (sub)objects.
11330 (compute_objsize_r): Adjust call to the above.
11332 2021-09-17 Bill Schmidt <wschmidt@linux.ibm.com>
11334 * config/rs6000/rs6000.c (rs6000-builtins.h): New include.
11335 (rs6000_new_builtin_vectorized_function): New function.
11336 (rs6000_new_builtin_md_vectorized_function): Likewise.
11337 (rs6000_builtin_vectorized_function): Call
11338 rs6000_new_builtin_vectorized_function.
11339 (rs6000_builtin_md_vectorized_function): Call
11340 rs6000_new_builtin_md_vectorized_function.
11342 2021-09-17 Bill Schmidt <wschmidt@linux.ibm.com>
11344 * config/rs6000/rs6000-builtin-new.def (ASSEMBLE_ACC): Add mmaint flag.
11345 (ASSEMBLE_PAIR): Likewise.
11346 (BUILD_ACC): Likewise.
11347 (DISASSEMBLE_ACC): Likewise.
11348 (DISASSEMBLE_PAIR): Likewise.
11349 (PMXVBF16GER2): Likewise.
11350 (PMXVBF16GER2NN): Likewise.
11351 (PMXVBF16GER2NP): Likewise.
11352 (PMXVBF16GER2PN): Likewise.
11353 (PMXVBF16GER2PP): Likewise.
11354 (PMXVF16GER2): Likewise.
11355 (PMXVF16GER2NN): Likewise.
11356 (PMXVF16GER2NP): Likewise.
11357 (PMXVF16GER2PN): Likewise.
11358 (PMXVF16GER2PP): Likewise.
11359 (PMXVF32GER): Likewise.
11360 (PMXVF32GERNN): Likewise.
11361 (PMXVF32GERNP): Likewise.
11362 (PMXVF32GERPN): Likewise.
11363 (PMXVF32GERPP): Likewise.
11364 (PMXVF64GER): Likewise.
11365 (PMXVF64GERNN): Likewise.
11366 (PMXVF64GERNP): Likewise.
11367 (PMXVF64GERPN): Likewise.
11368 (PMXVF64GERPP): Likewise.
11369 (PMXVI16GER2): Likewise.
11370 (PMXVI16GER2PP): Likewise.
11371 (PMXVI16GER2S): Likewise.
11372 (PMXVI16GER2SPP): Likewise.
11373 (PMXVI4GER8): Likewise.
11374 (PMXVI4GER8PP): Likewise.
11375 (PMXVI8GER4): Likewise.
11376 (PMXVI8GER4PP): Likewise.
11377 (PMXVI8GER4SPP): Likewise.
11378 (XVBF16GER2): Likewise.
11379 (XVBF16GER2NN): Likewise.
11380 (XVBF16GER2NP): Likewise.
11381 (XVBF16GER2PN): Likewise.
11382 (XVBF16GER2PP): Likewise.
11383 (XVF16GER2): Likewise.
11384 (XVF16GER2NN): Likewise.
11385 (XVF16GER2NP): Likewise.
11386 (XVF16GER2PN): Likewise.
11387 (XVF16GER2PP): Likewise.
11388 (XVF32GER): Likewise.
11389 (XVF32GERNN): Likewise.
11390 (XVF32GERNP): Likewise.
11391 (XVF32GERPN): Likewise.
11392 (XVF32GERPP): Likewise.
11393 (XVF64GER): Likewise.
11394 (XVF64GERNN): Likewise.
11395 (XVF64GERNP): Likewise.
11396 (XVF64GERPN): Likewise.
11397 (XVF64GERPP): Likewise.
11398 (XVI16GER2): Likewise.
11399 (XVI16GER2PP): Likewise.
11400 (XVI16GER2S): Likewise.
11401 (XVI16GER2SPP): Likewise.
11402 (XVI4GER8): Likewise.
11403 (XVI4GER8PP): Likewise.
11404 (XVI8GER4): Likewise.
11405 (XVI8GER4PP): Likewise.
11406 (XVI8GER4SPP): Likewise.
11407 (XXMFACC): Likewise.
11408 (XXMTACC): Likewise.
11409 (XXSETACCZ): Likewise.
11410 (ASSEMBLE_PAIR_V): Likewise.
11411 (BUILD_PAIR): Likewise.
11412 (DISASSEMBLE_PAIR_V): Likewise.
11415 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_new_mma_builtin):
11416 Handle RS6000_BIF_LXVP and RS6000_BIF_STXVP.
11417 * config/rs6000/rs6000-gen-builtins.c (attrinfo): Add ismmaint.
11418 (parse_bif_attrs): Handle ismmaint.
11419 (write_decls): Add bif_mmaint_bit and bif_is_mmaint.
11420 (write_bif_static_init): Handle ismmaint.
11422 2021-09-17 Bill Schmidt <wschmidt@linux.ibm.com>
11424 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_new_builtin): New
11426 (rs6000_gimple_fold_builtin): Call rs6000_gimple_fold_new_builtin.
11427 (rs6000_new_builtin_valid_without_lhs): New function.
11428 (rs6000_gimple_fold_new_mma_builtin): Likewise.
11429 (rs6000_gimple_fold_new_builtin): Likewise.
11431 2021-09-17 Thomas Schwinge <thomas@codesourcery.com>
11433 * hash-table.h (hash_table<Descriptor, Lazy, Allocator>::expand):
11434 Destruct stale Value objects.
11435 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor_expand):
11438 2021-09-17 Roger Sayle <roger@nextmovesoftware.com>
11441 * match.pd (shift optimizations): Disable recent sign-changing
11442 optimization for shifts by zero, these will be folded later.
11444 2021-09-17 Bill Schmidt <wschmidt@linux.ibm.com>
11446 * config/rs6000/rs6000-builtin-new.def (__builtin_mffsl): Move from
11447 [power9] to [always].
11449 2021-09-17 Richard Biener <rguenther@suse.de>
11451 * tree-vect-stmts.c (vectorizable_load): Do not frob
11454 2021-09-17 H.J. Lu <hjl.tools@gmail.com>
11456 * config/i386/i386-features.c (remove_partial_avx_dependency):
11457 Also check TARGET_SSE_PARTIAL_REG_FP_CONVERTS_DEPENDENCY and
11458 and TARGET_SSE_PARTIAL_REG_CONVERTS_DEPENDENCY before generating
11460 * config/i386/i386.h (TARGET_SSE_PARTIAL_REG_FP_CONVERTS_DEPENDENCY):
11462 (TARGET_SSE_PARTIAL_REG_CONVERTS_DEPENDENCY): Likewise.
11463 * config/i386/i386.md (SSE FP to FP splitters): Replace
11464 TARGET_SSE_PARTIAL_REG_DEPENDENCY with
11465 TARGET_SSE_PARTIAL_REG_FP_CONVERTS_DEPENDENCY.
11466 (SSE INT to FP splitter): Replace TARGET_SSE_PARTIAL_REG_DEPENDENCY
11467 with TARGET_SSE_PARTIAL_REG_CONVERTS_DEPENDENCY.
11468 * config/i386/x86-tune.def
11469 (X86_TUNE_SSE_PARTIAL_REG_FP_CONVERTS_DEPENDENCY): New.
11470 (X86_TUNE_SSE_PARTIAL_REG_CONVERTS_DEPENDENCY): Likewise.
11472 2021-09-17 H.J. Lu <hjl.tools@gmail.com>
11475 * config/i386/i386-features.c (remove_partial_avx_dependency):
11476 Check TARGET_USE_VECTOR_FP_CONVERTS and TARGET_USE_VECTOR_CONVERTS
11477 before generating vxorps.
11479 2021-09-17 H.J. Lu <hjl.tools@gmail.com>
11481 * config/i386/i386-options.c (processor_cost_table): Use
11482 tremont_cost for Tremont.
11483 * config/i386/x86-tune-costs.h (tremont_memcpy): New.
11484 (tremont_memset): Likewise.
11485 (tremont_cost): Likewise.
11486 * config/i386/x86-tune.def (X86_TUNE_PREFER_KNOWN_REP_MOVSB_STOSB):
11487 Enable for Tremont.
11489 2021-09-17 H.J. Lu <hjl.tools@gmail.com>
11491 * common/config/i386/i386-common.c: Use Haswell scheduling model
11493 * config/i386/i386.c (ix86_sched_init_global): Prepare for Tremont
11495 * config/i386/x86-tune-sched.c (ix86_issue_rate): Change Tremont
11497 (ix86_adjust_cost): Handle Tremont.
11498 * config/i386/x86-tune.def (X86_TUNE_SSE_PARTIAL_REG_DEPENDENCY):
11499 Enable for Tremont.
11500 (X86_TUNE_USE_LEAVE): Likewise.
11501 (X86_TUNE_PUSH_MEMORY): Likewise.
11502 (X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Likewise.
11503 (X86_TUNE_USE_CLTD): Likewise.
11504 (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI): Likewise.
11505 (X86_TUNE_AVOID_MFENCE): Likewise.
11506 (X86_TUNE_SSE_TYPELESS_STORES): Likewise.
11507 (X86_TUNE_SSE_LOAD0_BY_PXOR): Likewise.
11508 (X86_TUNE_ACCUMULATE_OUTGOING_ARGS): Disable for Tremont.
11509 (X86_TUNE_FOUR_JUMP_LIMIT): Likewise.
11510 (X86_TUNE_OPT_AGU): Likewise.
11511 (X86_TUNE_AVOID_LEA_FOR_ADDR): Likewise.
11512 (X86_TUNE_AVOID_MEM_OPND_FOR_CMOVE): Likewise.
11513 (X86_TUNE_EXPAND_ABS): Likewise.
11514 (X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS): Likewise.
11515 (X86_TUNE_SLOW_PSHUFB): Likewise.
11517 2021-09-17 Eric Botcazou <ebotcazou@adacore.com>
11519 PR rtl-optimization/102306
11520 * combine.c (try_combine): Abort the combination if we are about to
11521 duplicate volatile references.
11523 2021-09-17 liuhongt <hongtao.liu@intel.com>
11525 * config/i386/avx512fp16intrin.h (_mm_undefined_ph):
11527 (_mm256_undefined_ph): Likewise.
11528 (_mm512_undefined_ph): Likewise.
11529 (_mm_cvtsh_h): Likewise.
11530 (_mm256_cvtsh_h): Likewise.
11531 (_mm512_cvtsh_h): Likewise.
11532 (_mm512_castph_ps): Likewise.
11533 (_mm512_castph_pd): Likewise.
11534 (_mm512_castph_si512): Likewise.
11535 (_mm512_castph512_ph128): Likewise.
11536 (_mm512_castph512_ph256): Likewise.
11537 (_mm512_castph128_ph512): Likewise.
11538 (_mm512_castph256_ph512): Likewise.
11539 (_mm512_zextph128_ph512): Likewise.
11540 (_mm512_zextph256_ph512): Likewise.
11541 (_mm512_castps_ph): Likewise.
11542 (_mm512_castpd_ph): Likewise.
11543 (_mm512_castsi512_ph): Likewise.
11544 * config/i386/avx512fp16vlintrin.h (_mm_castph_ps):
11546 (_mm256_castph_ps): Likewise.
11547 (_mm_castph_pd): Likewise.
11548 (_mm256_castph_pd): Likewise.
11549 (_mm_castph_si128): Likewise.
11550 (_mm256_castph_si256): Likewise.
11551 (_mm_castps_ph): Likewise.
11552 (_mm256_castps_ph): Likewise.
11553 (_mm_castpd_ph): Likewise.
11554 (_mm256_castpd_ph): Likewise.
11555 (_mm_castsi128_ph): Likewise.
11556 (_mm256_castsi256_ph): Likewise.
11557 (_mm256_castph256_ph128): Likewise.
11558 (_mm256_castph128_ph256): Likewise.
11559 (_mm256_zextph128_ph256): Likewise.
11561 2021-09-17 liuhongt <hongtao.liu@intel.com>
11563 * config/i386/avx512fp16intrin.h (_mm_cvtsh_ss):
11565 (_mm_mask_cvtsh_ss): Likewise.
11566 (_mm_maskz_cvtsh_ss): Likewise.
11567 (_mm_cvtsh_sd): Likewise.
11568 (_mm_mask_cvtsh_sd): Likewise.
11569 (_mm_maskz_cvtsh_sd): Likewise.
11570 (_mm_cvt_roundsh_ss): Likewise.
11571 (_mm_mask_cvt_roundsh_ss): Likewise.
11572 (_mm_maskz_cvt_roundsh_ss): Likewise.
11573 (_mm_cvt_roundsh_sd): Likewise.
11574 (_mm_mask_cvt_roundsh_sd): Likewise.
11575 (_mm_maskz_cvt_roundsh_sd): Likewise.
11576 (_mm_cvtss_sh): Likewise.
11577 (_mm_mask_cvtss_sh): Likewise.
11578 (_mm_maskz_cvtss_sh): Likewise.
11579 (_mm_cvtsd_sh): Likewise.
11580 (_mm_mask_cvtsd_sh): Likewise.
11581 (_mm_maskz_cvtsd_sh): Likewise.
11582 (_mm_cvt_roundss_sh): Likewise.
11583 (_mm_mask_cvt_roundss_sh): Likewise.
11584 (_mm_maskz_cvt_roundss_sh): Likewise.
11585 (_mm_cvt_roundsd_sh): Likewise.
11586 (_mm_mask_cvt_roundsd_sh): Likewise.
11587 (_mm_maskz_cvt_roundsd_sh): Likewise.
11588 * config/i386/i386-builtin-types.def
11589 (V8HF_FTYPE_V2DF_V8HF_V8HF_UQI_INT,
11590 V8HF_FTYPE_V4SF_V8HF_V8HF_UQI_INT,
11591 V2DF_FTYPE_V8HF_V2DF_V2DF_UQI_INT,
11592 V4SF_FTYPE_V8HF_V4SF_V4SF_UQI_INT): Add new builtin types.
11593 * config/i386/i386-builtin.def: Add corrresponding new builtins.
11594 * config/i386/i386-expand.c: Handle new builtin types.
11595 * config/i386/sse.md (VF48_128): New mode iterator.
11596 (avx512fp16_vcvtsh2<ssescalarmodesuffix><mask_scalar_name><round_saeonly_scalar_name>):
11598 (avx512fp16_vcvt<ssescalarmodesuffix>2sh<mask_scalar_name><round_scalar_name>):
11601 2021-09-17 liuhongt <hongtao.liu@intel.com>
11603 * config/i386/avx512fp16intrin.h (_mm512_cvtph_pd):
11605 (_mm512_mask_cvtph_pd): Likewise.
11606 (_mm512_maskz_cvtph_pd): Likewise.
11607 (_mm512_cvt_roundph_pd): Likewise.
11608 (_mm512_mask_cvt_roundph_pd): Likewise.
11609 (_mm512_maskz_cvt_roundph_pd): Likewise.
11610 (_mm512_cvtxph_ps): Likewise.
11611 (_mm512_mask_cvtxph_ps): Likewise.
11612 (_mm512_maskz_cvtxph_ps): Likewise.
11613 (_mm512_cvtx_roundph_ps): Likewise.
11614 (_mm512_mask_cvtx_roundph_ps): Likewise.
11615 (_mm512_maskz_cvtx_roundph_ps): Likewise.
11616 (_mm512_cvtxps_ph): Likewise.
11617 (_mm512_mask_cvtxps_ph): Likewise.
11618 (_mm512_maskz_cvtxps_ph): Likewise.
11619 (_mm512_cvtx_roundps_ph): Likewise.
11620 (_mm512_mask_cvtx_roundps_ph): Likewise.
11621 (_mm512_maskz_cvtx_roundps_ph): Likewise.
11622 (_mm512_cvtpd_ph): Likewise.
11623 (_mm512_mask_cvtpd_ph): Likewise.
11624 (_mm512_maskz_cvtpd_ph): Likewise.
11625 (_mm512_cvt_roundpd_ph): Likewise.
11626 (_mm512_mask_cvt_roundpd_ph): Likewise.
11627 (_mm512_maskz_cvt_roundpd_ph): Likewise.
11628 * config/i386/avx512fp16vlintrin.h (_mm_cvtph_pd):
11630 (_mm_mask_cvtph_pd): Likewise.
11631 (_mm_maskz_cvtph_pd): Likewise.
11632 (_mm256_cvtph_pd): Likewise.
11633 (_mm256_mask_cvtph_pd): Likewise.
11634 (_mm256_maskz_cvtph_pd): Likewise.
11635 (_mm_cvtxph_ps): Likewise.
11636 (_mm_mask_cvtxph_ps): Likewise.
11637 (_mm_maskz_cvtxph_ps): Likewise.
11638 (_mm256_cvtxph_ps): Likewise.
11639 (_mm256_mask_cvtxph_ps): Likewise.
11640 (_mm256_maskz_cvtxph_ps): Likewise.
11641 (_mm_cvtxps_ph): Likewise.
11642 (_mm_mask_cvtxps_ph): Likewise.
11643 (_mm_maskz_cvtxps_ph): Likewise.
11644 (_mm256_cvtxps_ph): Likewise.
11645 (_mm256_mask_cvtxps_ph): Likewise.
11646 (_mm256_maskz_cvtxps_ph): Likewise.
11647 (_mm_cvtpd_ph): Likewise.
11648 (_mm_mask_cvtpd_ph): Likewise.
11649 (_mm_maskz_cvtpd_ph): Likewise.
11650 (_mm256_cvtpd_ph): Likewise.
11651 (_mm256_mask_cvtpd_ph): Likewise.
11652 (_mm256_maskz_cvtpd_ph): Likewise.
11653 * config/i386/i386-builtin.def: Add corresponding new builtins.
11654 * config/i386/i386-builtin-types.def: Add corresponding builtin types.
11655 * config/i386/i386-expand.c: Handle new builtin types.
11656 * config/i386/sse.md
11657 (VF4_128_8_256): New.
11658 (VF48H_AVX512VL): Ditto.
11659 (ssePHmode): Add HF vector modes.
11660 (castmode): Add new convertable modes.
11661 (qq2phsuff): Ditto.
11662 (ph2pssuffix): New.
11663 (avx512fp16_vcvt<castmode>2ph_<mode><mask_name><round_name>): Ditto.
11664 (avx512fp16_vcvt<castmode>2ph_<mode>): Ditto.
11665 (*avx512fp16_vcvt<castmode>2ph_<mode>): Ditto.
11666 (avx512fp16_vcvt<castmode>2ph_<mode>_mask): Ditto.
11667 (*avx512fp16_vcvt<castmode>2ph_<mode>_mask): Ditto.
11668 (*avx512fp16_vcvt<castmode>2ph_<mode>_mask_1): Ditto.
11669 (avx512fp16_float_extend_ph<mode>2<mask_name><round_saeonly_name>):
11671 (avx512fp16_float_extend_ph<mode>2<mask_name>): Ditto.
11672 (*avx512fp16_float_extend_ph<mode>2_load<mask_name>): Ditto.
11673 (avx512fp16_float_extend_phv2df2<mask_name>): Ditto.
11674 (*avx512fp16_float_extend_phv2df2_load<mask_name>): Ditto.
11676 2021-09-17 liuhongt <hongtao.liu@intel.com>
11678 * config/i386/avx512fp16intrin.h (_mm_cvttsh_i32):
11680 (_mm_cvttsh_u32): Likewise.
11681 (_mm_cvtt_roundsh_i32): Likewise.
11682 (_mm_cvtt_roundsh_u32): Likewise.
11683 (_mm_cvttsh_i64): Likewise.
11684 (_mm_cvttsh_u64): Likewise.
11685 (_mm_cvtt_roundsh_i64): Likewise.
11686 (_mm_cvtt_roundsh_u64): Likewise.
11687 * config/i386/i386-builtin.def: Add corresponding new builtins.
11688 * config/i386/sse.md
11689 (avx512fp16_fix<fixunssuffix>_trunc<mode>2<round_saeonly_name>):
11692 2021-09-17 liuhongt <hongtao.liu@intel.com>
11694 * config/i386/avx512fp16intrin.h (_mm512_cvttph_epi32):
11696 (_mm512_mask_cvttph_epi32): Likewise.
11697 (_mm512_maskz_cvttph_epi32): Likewise.
11698 (_mm512_cvtt_roundph_epi32): Likewise.
11699 (_mm512_mask_cvtt_roundph_epi32): Likewise.
11700 (_mm512_maskz_cvtt_roundph_epi32): Likewise.
11701 (_mm512_cvttph_epu32): Likewise.
11702 (_mm512_mask_cvttph_epu32): Likewise.
11703 (_mm512_maskz_cvttph_epu32): Likewise.
11704 (_mm512_cvtt_roundph_epu32): Likewise.
11705 (_mm512_mask_cvtt_roundph_epu32): Likewise.
11706 (_mm512_maskz_cvtt_roundph_epu32): Likewise.
11707 (_mm512_cvttph_epi64): Likewise.
11708 (_mm512_mask_cvttph_epi64): Likewise.
11709 (_mm512_maskz_cvttph_epi64): Likewise.
11710 (_mm512_cvtt_roundph_epi64): Likewise.
11711 (_mm512_mask_cvtt_roundph_epi64): Likewise.
11712 (_mm512_maskz_cvtt_roundph_epi64): Likewise.
11713 (_mm512_cvttph_epu64): Likewise.
11714 (_mm512_mask_cvttph_epu64): Likewise.
11715 (_mm512_maskz_cvttph_epu64): Likewise.
11716 (_mm512_cvtt_roundph_epu64): Likewise.
11717 (_mm512_mask_cvtt_roundph_epu64): Likewise.
11718 (_mm512_maskz_cvtt_roundph_epu64): Likewise.
11719 (_mm512_cvttph_epi16): Likewise.
11720 (_mm512_mask_cvttph_epi16): Likewise.
11721 (_mm512_maskz_cvttph_epi16): Likewise.
11722 (_mm512_cvtt_roundph_epi16): Likewise.
11723 (_mm512_mask_cvtt_roundph_epi16): Likewise.
11724 (_mm512_maskz_cvtt_roundph_epi16): Likewise.
11725 (_mm512_cvttph_epu16): Likewise.
11726 (_mm512_mask_cvttph_epu16): Likewise.
11727 (_mm512_maskz_cvttph_epu16): Likewise.
11728 (_mm512_cvtt_roundph_epu16): Likewise.
11729 (_mm512_mask_cvtt_roundph_epu16): Likewise.
11730 (_mm512_maskz_cvtt_roundph_epu16): Likewise.
11731 * config/i386/avx512fp16vlintrin.h (_mm_cvttph_epi32):
11733 (_mm_mask_cvttph_epi32): Likewise.
11734 (_mm_maskz_cvttph_epi32): Likewise.
11735 (_mm256_cvttph_epi32): Likewise.
11736 (_mm256_mask_cvttph_epi32): Likewise.
11737 (_mm256_maskz_cvttph_epi32): Likewise.
11738 (_mm_cvttph_epu32): Likewise.
11739 (_mm_mask_cvttph_epu32): Likewise.
11740 (_mm_maskz_cvttph_epu32): Likewise.
11741 (_mm256_cvttph_epu32): Likewise.
11742 (_mm256_mask_cvttph_epu32): Likewise.
11743 (_mm256_maskz_cvttph_epu32): Likewise.
11744 (_mm_cvttph_epi64): Likewise.
11745 (_mm_mask_cvttph_epi64): Likewise.
11746 (_mm_maskz_cvttph_epi64): Likewise.
11747 (_mm256_cvttph_epi64): Likewise.
11748 (_mm256_mask_cvttph_epi64): Likewise.
11749 (_mm256_maskz_cvttph_epi64): Likewise.
11750 (_mm_cvttph_epu64): Likewise.
11751 (_mm_mask_cvttph_epu64): Likewise.
11752 (_mm_maskz_cvttph_epu64): Likewise.
11753 (_mm256_cvttph_epu64): Likewise.
11754 (_mm256_mask_cvttph_epu64): Likewise.
11755 (_mm256_maskz_cvttph_epu64): Likewise.
11756 (_mm_cvttph_epi16): Likewise.
11757 (_mm_mask_cvttph_epi16): Likewise.
11758 (_mm_maskz_cvttph_epi16): Likewise.
11759 (_mm256_cvttph_epi16): Likewise.
11760 (_mm256_mask_cvttph_epi16): Likewise.
11761 (_mm256_maskz_cvttph_epi16): Likewise.
11762 (_mm_cvttph_epu16): Likewise.
11763 (_mm_mask_cvttph_epu16): Likewise.
11764 (_mm_maskz_cvttph_epu16): Likewise.
11765 (_mm256_cvttph_epu16): Likewise.
11766 (_mm256_mask_cvttph_epu16): Likewise.
11767 (_mm256_maskz_cvttph_epu16): Likewise.
11768 * config/i386/i386-builtin.def: Add new builtins.
11769 * config/i386/sse.md
11770 (avx512fp16_fix<fixunssuffix>_trunc<mode>2<mask_name><round_saeonly_name>):
11772 (avx512fp16_fix<fixunssuffix>_trunc<mode>2<mask_name>): Ditto.
11773 (*avx512fp16_fix<fixunssuffix>_trunc<mode>2_load<mask_name>): Ditto.
11774 (avx512fp16_fix<fixunssuffix>_truncv2di2<mask_name>): Ditto.
11775 (avx512fp16_fix<fixunssuffix>_truncv2di2_load<mask_name>): Ditto.
11777 2021-09-17 liuhongt <hongtao.liu@intel.com>
11779 * config/i386/avx512fp16intrin.h (_mm_cvtsh_i32): New intrinsic.
11780 (_mm_cvtsh_u32): Likewise.
11781 (_mm_cvt_roundsh_i32): Likewise.
11782 (_mm_cvt_roundsh_u32): Likewise.
11783 (_mm_cvtsh_i64): Likewise.
11784 (_mm_cvtsh_u64): Likewise.
11785 (_mm_cvt_roundsh_i64): Likewise.
11786 (_mm_cvt_roundsh_u64): Likewise.
11787 (_mm_cvti32_sh): Likewise.
11788 (_mm_cvtu32_sh): Likewise.
11789 (_mm_cvt_roundi32_sh): Likewise.
11790 (_mm_cvt_roundu32_sh): Likewise.
11791 (_mm_cvti64_sh): Likewise.
11792 (_mm_cvtu64_sh): Likewise.
11793 (_mm_cvt_roundi64_sh): Likewise.
11794 (_mm_cvt_roundu64_sh): Likewise.
11795 * config/i386/i386-builtin-types.def: Add corresponding builtin types.
11796 * config/i386/i386-builtin.def: Add corresponding new builtins.
11797 * config/i386/i386-expand.c (ix86_expand_round_builtin):
11798 Handle new builtin types.
11799 * config/i386/sse.md
11800 (avx512fp16_vcvtsh2<sseintconvertsignprefix>si<rex64namesuffix><round_name>):
11802 (avx512fp16_vcvtsh2<sseintconvertsignprefix>si<rex64namesuffix>_2): Likewise.
11803 (avx512fp16_vcvt<floatsuffix>si2sh<rex64namesuffix><round_name>): Likewise.
11805 2021-09-16 Bill Schmidt <wschmidt@linux.ibm.com>
11807 * config/rs6000/rs6000-c.c (rs6000-builtins.h): New include.
11808 (altivec_resolve_new_overloaded_builtin): New forward decl.
11809 (rs6000_new_builtin_type_compatible): New function.
11810 (altivec_resolve_overloaded_builtin): Call
11811 altivec_resolve_new_overloaded_builtin.
11812 (altivec_build_new_resolved_builtin): New function.
11813 (altivec_resolve_new_overloaded_builtin): Likewise.
11814 * config/rs6000/rs6000-call.c (rs6000_new_builtin_is_supported):
11816 * config/rs6000/rs6000-gen-builtins.c (write_decls): Remove _p from
11817 name of rs6000_new_builtin_is_supported.
11819 2021-09-16 Uroš Bizjak <ubizjak@gmail.com>
11821 * config/i386/i386-protos.h (ix86_decompose_address):
11822 Change return type to bool.
11823 * config/i386/i386.c (ix86_decompose_address): Ditto.
11825 2021-09-16 Tobias Burnus <tobias@codesourcery.com>
11828 * config/rs6000/t-rs6000 (build/rs6000-gen-builtins.o, build/rbtree.o):
11829 Added 'build/' to target, use build/%.o rule.
11830 (build/rs6000-gen-builtins$(build_exeext)): Add 'build/' and
11831 '$(build_exeext)' to target and 'build/' for the *.o files.
11832 (rs6000-builtins.c): Update for those changes; run rs6000-gen-builtins
11835 2021-09-16 Martin Jambor <mjambor@suse.cz>
11837 * cgraph.c (cgraph_node::dump): Do not check caller count sums if
11838 the body has been removed. Remove trailing whitespace.
11840 2021-09-16 Richard Biener <rguenther@suse.de>
11842 PR middle-end/102360
11843 * internal-fn.c (expand_DEFERRED_INIT): Make pattern-init
11844 of non-memory more robust.
11846 2021-09-16 Daniel Cederman <cederman@gaisler.com>
11848 * config/sparc/sparc-opts.h (enum sparc_processor_type): Add LEON5
11849 * config/sparc/sparc.c (struct processor_costs): Add LEON5 costs
11850 (leon5_adjust_cost): Increase cost of store with data dependency
11851 on ALU instruction and FPU anti-dependencies.
11852 (sparc_option_override): Add LEON5 costs
11853 (sparc_adjust_cost): Add LEON5 cost adjustments
11854 * config/sparc/sparc.h: Add LEON5
11855 * config/sparc/sparc.md: Include LEON5 scheduling information
11856 * config/sparc/sparc.opt: Add LEON5
11857 * doc/invoke.texi: Add LEON5
11858 * config/sparc/leon5.md: New file.
11860 2021-09-16 Daniel Cederman <cederman@gaisler.com>
11862 * config/sparc/sparc.md (stack_protect_set32): Add NOP to prevent
11863 sensitive sequence for B2BST errata workaround.
11865 2021-09-16 Daniel Cederman <cederman@gaisler.com>
11867 * config/sparc/sparc.c (sparc_do_work_around_errata): Do not begin
11868 functions with atomic instruction in the UT700 errata workaround.
11870 2021-09-16 Daniel Cederman <cederman@gaisler.com>
11872 * config/sparc/sparc.c (next_active_non_empty_insn): New function
11873 that returns next active non empty assembly instruction.
11874 (sparc_do_work_around_errata): Use new function.
11876 2021-09-16 Daniel Cederman <cederman@gaisler.com>
11878 * config/sparc/sparc.c (store_insn_p): Add predicate for store
11880 (load_insn_p): Add predicate for load attributes.
11881 (sparc_do_work_around_errata): Use new predicates.
11883 2021-09-16 Andreas Larsson <andreas@gaisler.com>
11885 * config/sparc/sparc.c (dump_target_flag_bits): Print bit names for
11888 2021-09-16 Martin Liska <mliska@suse.cz>
11890 * config/mips/netbsd.h: Fix typo in name of a macro.
11892 2021-09-16 liuhongt <hongtao.liu@intel.com>
11894 PR middle-end/102080
11895 * match.pd: Check mask type when doing cond_op related gimple
11897 * tree.c (is_truth_type_for): New function.
11898 * tree.h (is_truth_type_for): New declaration.
11900 2021-09-16 liuhongt <hongtao.liu@intel.com>
11902 * config/i386/avx512fp16intrin.h (_mm512_cvtepi32_ph): New
11904 (_mm512_mask_cvtepi32_ph): Likewise.
11905 (_mm512_maskz_cvtepi32_ph): Likewise.
11906 (_mm512_cvt_roundepi32_ph): Likewise.
11907 (_mm512_mask_cvt_roundepi32_ph): Likewise.
11908 (_mm512_maskz_cvt_roundepi32_ph): Likewise.
11909 (_mm512_cvtepu32_ph): Likewise.
11910 (_mm512_mask_cvtepu32_ph): Likewise.
11911 (_mm512_maskz_cvtepu32_ph): Likewise.
11912 (_mm512_cvt_roundepu32_ph): Likewise.
11913 (_mm512_mask_cvt_roundepu32_ph): Likewise.
11914 (_mm512_maskz_cvt_roundepu32_ph): Likewise.
11915 (_mm512_cvtepi64_ph): Likewise.
11916 (_mm512_mask_cvtepi64_ph): Likewise.
11917 (_mm512_maskz_cvtepi64_ph): Likewise.
11918 (_mm512_cvt_roundepi64_ph): Likewise.
11919 (_mm512_mask_cvt_roundepi64_ph): Likewise.
11920 (_mm512_maskz_cvt_roundepi64_ph): Likewise.
11921 (_mm512_cvtepu64_ph): Likewise.
11922 (_mm512_mask_cvtepu64_ph): Likewise.
11923 (_mm512_maskz_cvtepu64_ph): Likewise.
11924 (_mm512_cvt_roundepu64_ph): Likewise.
11925 (_mm512_mask_cvt_roundepu64_ph): Likewise.
11926 (_mm512_maskz_cvt_roundepu64_ph): Likewise.
11927 (_mm512_cvtepi16_ph): Likewise.
11928 (_mm512_mask_cvtepi16_ph): Likewise.
11929 (_mm512_maskz_cvtepi16_ph): Likewise.
11930 (_mm512_cvt_roundepi16_ph): Likewise.
11931 (_mm512_mask_cvt_roundepi16_ph): Likewise.
11932 (_mm512_maskz_cvt_roundepi16_ph): Likewise.
11933 (_mm512_cvtepu16_ph): Likewise.
11934 (_mm512_mask_cvtepu16_ph): Likewise.
11935 (_mm512_maskz_cvtepu16_ph): Likewise.
11936 (_mm512_cvt_roundepu16_ph): Likewise.
11937 (_mm512_mask_cvt_roundepu16_ph): Likewise.
11938 (_mm512_maskz_cvt_roundepu16_ph): Likewise.
11939 * config/i386/avx512fp16vlintrin.h (_mm_cvtepi32_ph): New
11941 (_mm_mask_cvtepi32_ph): Likewise.
11942 (_mm_maskz_cvtepi32_ph): Likewise.
11943 (_mm256_cvtepi32_ph): Likewise.
11944 (_mm256_mask_cvtepi32_ph): Likewise.
11945 (_mm256_maskz_cvtepi32_ph): Likewise.
11946 (_mm_cvtepu32_ph): Likewise.
11947 (_mm_mask_cvtepu32_ph): Likewise.
11948 (_mm_maskz_cvtepu32_ph): Likewise.
11949 (_mm256_cvtepu32_ph): Likewise.
11950 (_mm256_mask_cvtepu32_ph): Likewise.
11951 (_mm256_maskz_cvtepu32_ph): Likewise.
11952 (_mm_cvtepi64_ph): Likewise.
11953 (_mm_mask_cvtepi64_ph): Likewise.
11954 (_mm_maskz_cvtepi64_ph): Likewise.
11955 (_mm256_cvtepi64_ph): Likewise.
11956 (_mm256_mask_cvtepi64_ph): Likewise.
11957 (_mm256_maskz_cvtepi64_ph): Likewise.
11958 (_mm_cvtepu64_ph): Likewise.
11959 (_mm_mask_cvtepu64_ph): Likewise.
11960 (_mm_maskz_cvtepu64_ph): Likewise.
11961 (_mm256_cvtepu64_ph): Likewise.
11962 (_mm256_mask_cvtepu64_ph): Likewise.
11963 (_mm256_maskz_cvtepu64_ph): Likewise.
11964 (_mm_cvtepi16_ph): Likewise.
11965 (_mm_mask_cvtepi16_ph): Likewise.
11966 (_mm_maskz_cvtepi16_ph): Likewise.
11967 (_mm256_cvtepi16_ph): Likewise.
11968 (_mm256_mask_cvtepi16_ph): Likewise.
11969 (_mm256_maskz_cvtepi16_ph): Likewise.
11970 (_mm_cvtepu16_ph): Likewise.
11971 (_mm_mask_cvtepu16_ph): Likewise.
11972 (_mm_maskz_cvtepu16_ph): Likewise.
11973 (_mm256_cvtepu16_ph): Likewise.
11974 (_mm256_mask_cvtepu16_ph): Likewise.
11975 (_mm256_maskz_cvtepu16_ph): Likewise.
11976 * config/i386/i386-builtin-types.def: Add corresponding builtin types.
11977 * config/i386/i386-builtin.def: Add corresponding new builtins.
11978 * config/i386/i386-expand.c
11979 (ix86_expand_args_builtin): Handle new builtin types.
11980 (ix86_expand_round_builtin): Ditto.
11981 * config/i386/i386-modes.def: Declare V2HF and V6HF.
11982 * config/i386/sse.md (VI2H_AVX512VL): New.
11983 (qq2phsuff): Ditto.
11984 (sseintvecmode): Add HF vector modes.
11985 (avx512fp16_vcvt<floatsuffix><sseintconvert>2ph_<mode><mask_name><round_name>):
11987 (avx512fp16_vcvt<floatsuffix><sseintconvert>2ph_<mode>): Ditto.
11988 (*avx512fp16_vcvt<floatsuffix><sseintconvert>2ph_<mode>): Ditto.
11989 (avx512fp16_vcvt<floatsuffix><sseintconvert>2ph_<mode>_mask): Ditto.
11990 (*avx512fp16_vcvt<floatsuffix><sseintconvert>2ph_<mode>_mask): Ditto.
11991 (*avx512fp16_vcvt<floatsuffix><sseintconvert>2ph_<mode>_mask_1): Ditto.
11992 (avx512fp16_vcvt<floatsuffix>qq2ph_v2di): Ditto.
11993 (*avx512fp16_vcvt<floatsuffix>qq2ph_v2di): Ditto.
11994 (avx512fp16_vcvt<floatsuffix>qq2ph_v2di_mask): Ditto.
11995 (*avx512fp16_vcvt<floatsuffix>qq2ph_v2di_mask): Ditto.
11996 (*avx512fp16_vcvt<floatsuffix>qq2ph_v2di_mask_1): Ditto.
11997 * config/i386/subst.md (round_qq2phsuff): New subst_attr.
11999 2021-09-16 liuhongt <hongtao.liu@intel.com>
12001 * config/i386/avx512fp16intrin.h (_mm512_cvtph_epi32):
12003 (_mm512_mask_cvtph_epi32): Likewise.
12004 (_mm512_maskz_cvtph_epi32): Likewise.
12005 (_mm512_cvt_roundph_epi32): Likewise.
12006 (_mm512_mask_cvt_roundph_epi32): Likewise.
12007 (_mm512_maskz_cvt_roundph_epi32): Likewise.
12008 (_mm512_cvtph_epu32): Likewise.
12009 (_mm512_mask_cvtph_epu32): Likewise.
12010 (_mm512_maskz_cvtph_epu32): Likewise.
12011 (_mm512_cvt_roundph_epu32): Likewise.
12012 (_mm512_mask_cvt_roundph_epu32): Likewise.
12013 (_mm512_maskz_cvt_roundph_epu32): Likewise.
12014 (_mm512_cvtph_epi64): Likewise.
12015 (_mm512_mask_cvtph_epi64): Likewise.
12016 (_mm512_maskz_cvtph_epi64): Likewise.
12017 (_mm512_cvt_roundph_epi64): Likewise.
12018 (_mm512_mask_cvt_roundph_epi64): Likewise.
12019 (_mm512_maskz_cvt_roundph_epi64): Likewise.
12020 (_mm512_cvtph_epu64): Likewise.
12021 (_mm512_mask_cvtph_epu64): Likewise.
12022 (_mm512_maskz_cvtph_epu64): Likewise.
12023 (_mm512_cvt_roundph_epu64): Likewise.
12024 (_mm512_mask_cvt_roundph_epu64): Likewise.
12025 (_mm512_maskz_cvt_roundph_epu64): Likewise.
12026 (_mm512_cvtph_epi16): Likewise.
12027 (_mm512_mask_cvtph_epi16): Likewise.
12028 (_mm512_maskz_cvtph_epi16): Likewise.
12029 (_mm512_cvt_roundph_epi16): Likewise.
12030 (_mm512_mask_cvt_roundph_epi16): Likewise.
12031 (_mm512_maskz_cvt_roundph_epi16): Likewise.
12032 (_mm512_cvtph_epu16): Likewise.
12033 (_mm512_mask_cvtph_epu16): Likewise.
12034 (_mm512_maskz_cvtph_epu16): Likewise.
12035 (_mm512_cvt_roundph_epu16): Likewise.
12036 (_mm512_mask_cvt_roundph_epu16): Likewise.
12037 (_mm512_maskz_cvt_roundph_epu16): Likewise.
12038 * config/i386/avx512fp16vlintrin.h (_mm_cvtph_epi32):
12040 (_mm_mask_cvtph_epi32): Likewise.
12041 (_mm_maskz_cvtph_epi32): Likewise.
12042 (_mm256_cvtph_epi32): Likewise.
12043 (_mm256_mask_cvtph_epi32): Likewise.
12044 (_mm256_maskz_cvtph_epi32): Likewise.
12045 (_mm_cvtph_epu32): Likewise.
12046 (_mm_mask_cvtph_epu32): Likewise.
12047 (_mm_maskz_cvtph_epu32): Likewise.
12048 (_mm256_cvtph_epu32): Likewise.
12049 (_mm256_mask_cvtph_epu32): Likewise.
12050 (_mm256_maskz_cvtph_epu32): Likewise.
12051 (_mm_cvtph_epi64): Likewise.
12052 (_mm_mask_cvtph_epi64): Likewise.
12053 (_mm_maskz_cvtph_epi64): Likewise.
12054 (_mm256_cvtph_epi64): Likewise.
12055 (_mm256_mask_cvtph_epi64): Likewise.
12056 (_mm256_maskz_cvtph_epi64): Likewise.
12057 (_mm_cvtph_epu64): Likewise.
12058 (_mm_mask_cvtph_epu64): Likewise.
12059 (_mm_maskz_cvtph_epu64): Likewise.
12060 (_mm256_cvtph_epu64): Likewise.
12061 (_mm256_mask_cvtph_epu64): Likewise.
12062 (_mm256_maskz_cvtph_epu64): Likewise.
12063 (_mm_cvtph_epi16): Likewise.
12064 (_mm_mask_cvtph_epi16): Likewise.
12065 (_mm_maskz_cvtph_epi16): Likewise.
12066 (_mm256_cvtph_epi16): Likewise.
12067 (_mm256_mask_cvtph_epi16): Likewise.
12068 (_mm256_maskz_cvtph_epi16): Likewise.
12069 (_mm_cvtph_epu16): Likewise.
12070 (_mm_mask_cvtph_epu16): Likewise.
12071 (_mm_maskz_cvtph_epu16): Likewise.
12072 (_mm256_cvtph_epu16): Likewise.
12073 (_mm256_mask_cvtph_epu16): Likewise.
12074 (_mm256_maskz_cvtph_epu16): Likewise.
12075 * config/i386/i386-builtin-types.def: Add new builtin types.
12076 * config/i386/i386-builtin.def: Add new builtins.
12077 * config/i386/i386-expand.c
12078 (ix86_expand_args_builtin): Handle new builtin types.
12079 (ix86_expand_round_builtin): Ditto.
12080 * config/i386/sse.md (sseintconvert): New.
12081 (ssePHmode): Ditto.
12082 (UNSPEC_US_FIX_NOTRUNC): Ditto.
12083 (sseintconvertsignprefix): Ditto.
12084 (avx512fp16_vcvtph2<sseintconvertsignprefix><sseintconvert>_<mode><mask_name><round_name>):
12087 2021-09-16 liuhongt <hongtao.liu@intel.com>
12089 * config/i386/avx512fp16intrin.h: (_mm_cvtsi16_si128):
12091 (_mm_cvtsi128_si16): Likewise.
12092 (_mm_mask_load_sh): Likewise.
12093 (_mm_maskz_load_sh): Likewise.
12094 (_mm_mask_store_sh): Likewise.
12095 (_mm_move_sh): Likewise.
12096 (_mm_mask_move_sh): Likewise.
12097 (_mm_maskz_move_sh): Likewise.
12098 * config/i386/i386-builtin-types.def: Add corresponding builtin types.
12099 * config/i386/i386-builtin.def: Add corresponding new builtins.
12100 * config/i386/i386-expand.c
12101 (ix86_expand_special_args_builtin): Handle new builtin types.
12102 (ix86_expand_vector_init_one_nonzero): Adjust for FP16 target.
12103 * config/i386/sse.md (VI2F): New mode iterator.
12104 (vec_set<mode>_0): Use new mode iterator.
12105 (avx512f_mov<ssescalarmodelower>_mask): Adjust for HF vector mode.
12106 (avx512f_store<mode>_mask): Ditto.
12108 2021-09-16 Kewen Lin <linkw@linux.ibm.com>
12110 * config/rs6000/rs6000.opt (-mtoc-fusion): Remove.
12112 2021-09-15 David Edelsohn <dje.gcc@gmail.com>
12114 * config/rs6000/rs6000.c (rs6000_xcoff_encode_section_info):
12115 Proceed if no symbol summary or the symbol alias flag is false.
12117 2021-09-15 Jakub Jelinek <jakub@redhat.com>
12121 * varasm.c (output_constructor_regular_field): Instead of assertion
12122 that array_size_for_constructor result is equal to size of
12123 TREE_TYPE (local->val) in bytes, assert that the type size is greater
12124 or equal to array_size_for_constructor result and use type size as
12127 2021-09-15 Martin Liska <mliska@suse.cz>
12130 * config/i386/vxworks.h: Use new macro TARGET_CPU_P.
12132 2021-09-15 Martin Liska <mliska@suse.cz>
12135 * config/rs6000/rs6000.c (rs6000_xcoff_encode_section_info):
12136 Check that we have a symbol summary for a symbol.
12138 2021-09-15 Richard Biener <rguenther@suse.de>
12141 * config/rs6000/lynx.h: Remove undef of PREFERRED_DEBUGGING_TYPE
12142 to inherit from elfos.h
12144 2021-09-15 liuhongt <hongtao.liu@intel.com>
12147 * config/i386/i386-expand.c
12148 (ix86_expand_vector_init_interleave): Use puncklwd to pack 2
12150 (ix86_expand_vector_set): Use blendw instead of pinsrw.
12151 * config/i386/i386.c (ix86_can_change_mode_class): Adjust for
12152 AVX512FP16 which supports 16bit vector load.
12153 * config/i386/sse.md (avx512bw_interleave_highv32hi<mask_name>):
12155 (avx512bw_interleave_high<mode><mask_name>): .. this, and
12156 extend to V32HFmode.
12157 (avx2_interleave_highv16hi<mask_name>): Rename to ..
12158 (avx2_interleave_high<mode><mask_name>): .. this, and extend
12160 (vec_interleave_highv8hi<mask_name>): Rename to ..
12161 (vec_interleave_high<mode><mask_name>): .. this, and extend to V8HFmode.
12162 (<mask_codefor>avx512bw_interleave_lowv32hi<mask_name>):
12164 (<mask_codefor>avx512bw_interleave_low<mode><mask_name>):
12165 this, and extend to V32HFmode.
12166 (avx2_interleave_lowv16hi<mask_name>): Rename to ..
12167 (avx2_interleave_low<mode><mask_name>): .. this, and extend to V16HFmode.
12168 (vec_interleave_lowv8hi<mask_name>): Rename to ..
12169 (vec_interleave_low<mode><mask_name>): .. this, and extend to V8HFmode.
12170 (sse4_1_pblendw): Rename to ..
12171 (sse4_1_pblend<blendsuf>): .. this, and extend to V8HFmode.
12172 (avx2_pblendph): New define_expand.
12173 (<sse2p4_1>_pinsr<ssemodesuffix>): Refactor, use
12174 sseintmodesuffix instead of ssemodesuffix.
12175 (blendsuf): New mode attr.
12177 2021-09-15 Richard Biener <rguenther@suse.de>
12179 * tree-vectorizer.h (dr_misalignment): Move out of line.
12180 (dr_target_alignment): New.
12181 (DR_TARGET_ALIGNMENT): Wrap dr_target_alignment.
12182 (set_dr_target_alignment): New.
12183 (SET_DR_TARGET_ALIGNMENT): Wrap set_dr_target_alignment.
12184 * tree-vect-data-refs.c (dr_misalignment): Compute and
12185 return the group members misalignment.
12186 (vect_compute_data_ref_alignment): Use SET_DR_TARGET_ALIGNMENT.
12187 (vect_analyze_data_refs_alignment): Compute alignment only
12188 for the first element of a DR group.
12189 (vect_slp_analyze_node_alignment): Likewise.
12191 2021-09-15 Hongyu Wang <hongyu.wang@intel.com>
12193 * config/i386/avx512fp16intrin.h: Adjust all builtin calls.
12194 * config/i386/avx512fp16vlintrin.h: Likewise.
12195 * config/i386/i386-builtin.def: Adjust builtin name and
12196 enumeration to match AVX512F style.
12198 2021-09-15 Richard Biener <rguenther@suse.de>
12200 PR tree-optimization/102318
12201 * tree-vect-loop.c (vect_transform_cycle_phi): Revert
12202 previous change and do the mode conversion separately from
12203 the sign conversion.
12205 2021-09-15 Hongtao Liu <hongtao.liu@intel.com>
12206 Peter Cordes <peter@cordes.ca>
12209 * config/i386/sse.md (extract_suf): Add V8SF/V8SI/V4DF/V4DI.
12210 (*vec_extract<mode><ssescalarmodelower>_valign): Output
12211 vextract{i,f}{32x4,64x2} instruction when byte_offset % 16 ==
12214 2021-09-15 Richard Biener <rguenther@suse.de>
12216 * config.gcc: Remove vax-*-openbsd* configuration.
12218 2021-09-15 Richard Biener <rguenther@suse.de>
12220 * config.gcc: Remove m68k-openbsd.
12222 2021-09-15 Max Filippov <jcmvbkbc@gmail.com>
12225 * config/xtensa/t-xtensa (TM_H): Add include/xtensa-config.h.
12227 2021-09-14 Peter Bergner <bergner@linux.ibm.com>
12229 * config/rs6000/mma.md (unspec): Delete UNSPEC_MMA_XXSETACCZ.
12230 (unspecv): Add UNSPECV_MMA_XXSETACCZ.
12231 (*mma_xxsetaccz): Delete.
12232 (mma_xxsetaccz): Change to define_insn. Remove operand 1.
12233 Use UNSPECV_MMA_XXSETACCZ. Update comment.
12234 * config/rs6000/rs6000.c (rs6000_rtx_costs): Use UNSPECV_MMA_XXSETACCZ.
12236 2021-09-14 Iain Sandoe <iain@sandoe.co.uk>
12238 * Makefile.in: Remove variables related to applying no-PIE
12239 to the exes on $build.
12240 * configure: Regenerate.
12241 * configure.ac: Remove configuration related to applying
12242 no-PIE to the exes on $build.
12244 2021-09-14 Claudiu Zissulescu <claziss@synopsys.com>
12246 * config/arc/arc.md (doloop_end): Add missing mode.
12247 (loop_end): Likewise.
12249 2021-09-14 Jakub Jelinek <jakub@redhat.com>
12251 * gimplify.c (goa_stabilize_expr): Add depth argument, propagate
12252 it to recursive calls, for depth above 7 just gimplify or return.
12253 Perform a test even for MODIFY_EXPR, ADDR_EXPR, COMPOUND_EXPR with
12254 __builtin_clear_padding and TARGET_EXPR.
12255 (gimplify_omp_atomic): Adjust goa_stabilize_expr callers.
12257 2021-09-14 liuhongt <hongtao.liu@intel.com>
12259 * config/i386/avx512fp16intrin.h (_mm_fpclass_sh_mask):
12261 (_mm_mask_fpclass_sh_mask): Likewise.
12262 (_mm512_mask_fpclass_ph_mask): Likewise.
12263 (_mm512_fpclass_ph_mask): Likewise.
12264 (_mm_getexp_sh): Likewise.
12265 (_mm_mask_getexp_sh): Likewise.
12266 (_mm_maskz_getexp_sh): Likewise.
12267 (_mm512_getexp_ph): Likewise.
12268 (_mm512_mask_getexp_ph): Likewise.
12269 (_mm512_maskz_getexp_ph): Likewise.
12270 (_mm_getexp_round_sh): Likewise.
12271 (_mm_mask_getexp_round_sh): Likewise.
12272 (_mm_maskz_getexp_round_sh): Likewise.
12273 (_mm512_getexp_round_ph): Likewise.
12274 (_mm512_mask_getexp_round_ph): Likewise.
12275 (_mm512_maskz_getexp_round_ph): Likewise.
12276 (_mm_getmant_sh): Likewise.
12277 (_mm_mask_getmant_sh): Likewise.
12278 (_mm_maskz_getmant_sh): Likewise.
12279 (_mm512_getmant_ph): Likewise.
12280 (_mm512_mask_getmant_ph): Likewise.
12281 (_mm512_maskz_getmant_ph): Likewise.
12282 (_mm_getmant_round_sh): Likewise.
12283 (_mm_mask_getmant_round_sh): Likewise.
12284 (_mm_maskz_getmant_round_sh): Likewise.
12285 (_mm512_getmant_round_ph): Likewise.
12286 (_mm512_mask_getmant_round_ph): Likewise.
12287 (_mm512_maskz_getmant_round_ph): Likewise.
12288 * config/i386/avx512fp16vlintrin.h (_mm_mask_fpclass_ph_mask):
12290 (_mm_fpclass_ph_mask): Likewise.
12291 (_mm256_mask_fpclass_ph_mask): Likewise.
12292 (_mm256_fpclass_ph_mask): Likewise.
12293 (_mm256_getexp_ph): Likewise.
12294 (_mm256_mask_getexp_ph): Likewise.
12295 (_mm256_maskz_getexp_ph): Likewise.
12296 (_mm_getexp_ph): Likewise.
12297 (_mm_mask_getexp_ph): Likewise.
12298 (_mm_maskz_getexp_ph): Likewise.
12299 (_mm256_getmant_ph): Likewise.
12300 (_mm256_mask_getmant_ph): Likewise.
12301 (_mm256_maskz_getmant_ph): Likewise.
12302 (_mm_getmant_ph): Likewise.
12303 (_mm_mask_getmant_ph): Likewise.
12304 (_mm_maskz_getmant_ph): Likewise.
12305 * config/i386/i386-builtin-types.def: Add corresponding builtin types.
12306 * config/i386/i386-builtin.def: Add corresponding new builtins.
12307 * config/i386/i386-expand.c
12308 (ix86_expand_args_builtin): Handle new builtin types.
12309 (ix86_expand_round_builtin): Ditto.
12310 * config/i386/sse.md (vecmemsuffix): Add HF vector modes.
12311 (<avx512>_getexp<mode><mask_name><round_saeonly_name>): Adjust
12312 to support HF vector modes.
12313 (avx512f_sgetexp<mode><mask_scalar_name><round_saeonly_scalar_name):
12315 (avx512dq_fpclass<mode><mask_scalar_merge_name>): Ditto.
12316 (avx512dq_vmfpclass<mode><mask_scalar_merge_name>): Ditto.
12317 (<avx512>_getmant<mode><mask_name><round_saeonly_name>): Ditto.
12318 (avx512f_vgetmant<mode><mask_scalar_name><round_saeonly_scalar_name>):
12321 2021-09-14 liuhongt <hongtao.liu@intel.com>
12323 * config/i386/avx512fp16intrin.h (_mm512_reduce_ph):
12325 (_mm512_mask_reduce_ph): Likewise.
12326 (_mm512_maskz_reduce_ph): Likewise.
12327 (_mm512_reduce_round_ph): Likewise.
12328 (_mm512_mask_reduce_round_ph): Likewise.
12329 (_mm512_maskz_reduce_round_ph): Likewise.
12330 (_mm_reduce_sh): Likewise.
12331 (_mm_mask_reduce_sh): Likewise.
12332 (_mm_maskz_reduce_sh): Likewise.
12333 (_mm_reduce_round_sh): Likewise.
12334 (_mm_mask_reduce_round_sh): Likewise.
12335 (_mm_maskz_reduce_round_sh): Likewise.
12336 (_mm512_roundscale_ph): Likewise.
12337 (_mm512_mask_roundscale_ph): Likewise.
12338 (_mm512_maskz_roundscale_ph): Likewise.
12339 (_mm512_roundscale_round_ph): Likewise.
12340 (_mm512_mask_roundscale_round_ph): Likewise.
12341 (_mm512_maskz_roundscale_round_ph): Likewise.
12342 (_mm_roundscale_sh): Likewise.
12343 (_mm_mask_roundscale_sh): Likewise.
12344 (_mm_maskz_roundscale_sh): Likewise.
12345 (_mm_roundscale_round_sh): Likewise.
12346 (_mm_mask_roundscale_round_sh): Likewise.
12347 (_mm_maskz_roundscale_round_sh): Likewise.
12348 * config/i386/avx512fp16vlintrin.h: (_mm_reduce_ph):
12350 (_mm_mask_reduce_ph): Likewise.
12351 (_mm_maskz_reduce_ph): Likewise.
12352 (_mm256_reduce_ph): Likewise.
12353 (_mm256_mask_reduce_ph): Likewise.
12354 (_mm256_maskz_reduce_ph): Likewise.
12355 (_mm_roundscale_ph): Likewise.
12356 (_mm_mask_roundscale_ph): Likewise.
12357 (_mm_maskz_roundscale_ph): Likewise.
12358 (_mm256_roundscale_ph): Likewise.
12359 (_mm256_mask_roundscale_ph): Likewise.
12360 (_mm256_maskz_roundscale_ph): Likewise.
12361 * config/i386/i386-builtin-types.def: Add corresponding builtin types.
12362 * config/i386/i386-builtin.def: Add corresponding new builtins.
12363 * config/i386/i386-expand.c
12364 (ix86_expand_args_builtin): Handle new builtin types.
12365 (ix86_expand_round_builtin): Ditto.
12366 * config/i386/sse.md (<mask_codefor>reducep<mode><mask_name>):
12368 (<mask_codefor>reducep<mode><mask_name><round_saeonly_name>):
12369 ... this, and adjust for round operands.
12370 (reduces<mode><mask_scalar_name>): Likewise, with ...
12371 (reduces<mode><mask_scalar_name><round_saeonly_scalar_name):
12373 (<avx512>_rndscale<mode><mask_name><round_saeonly_name>):
12374 Adjust for HF vector modes.
12375 (avx512f_rndscale<mode><mask_scalar_name><round_saeonly_scalar_name>):
12377 (*avx512f_rndscale<mode><round_saeonly_name>): Ditto.
12379 2021-09-14 liuhongt <hongtao.liu@intel.com>
12381 * config/i386/avx512fp16intrin.h: (_mm512_rcp_ph):
12383 (_mm512_mask_rcp_ph): Likewise.
12384 (_mm512_maskz_rcp_ph): Likewise.
12385 (_mm_rcp_sh): Likewise.
12386 (_mm_mask_rcp_sh): Likewise.
12387 (_mm_maskz_rcp_sh): Likewise.
12388 (_mm512_scalef_ph): Likewise.
12389 (_mm512_mask_scalef_ph): Likewise.
12390 (_mm512_maskz_scalef_ph): Likewise.
12391 (_mm512_scalef_round_ph): Likewise.
12392 (_mm512_mask_scalef_round_ph): Likewise.
12393 (_mm512_maskz_scalef_round_ph): Likewise.
12394 (_mm_scalef_sh): Likewise.
12395 (_mm_mask_scalef_sh): Likewise.
12396 (_mm_maskz_scalef_sh): Likewise.
12397 (_mm_scalef_round_sh): Likewise.
12398 (_mm_mask_scalef_round_sh): Likewise.
12399 (_mm_maskz_scalef_round_sh): Likewise.
12400 * config/i386/avx512fp16vlintrin.h (_mm_rcp_ph):
12402 (_mm256_rcp_ph): Likewise.
12403 (_mm_mask_rcp_ph): Likewise.
12404 (_mm256_mask_rcp_ph): Likewise.
12405 (_mm_maskz_rcp_ph): Likewise.
12406 (_mm256_maskz_rcp_ph): Likewise.
12407 (_mm_scalef_ph): Likewise.
12408 (_mm256_scalef_ph): Likewise.
12409 (_mm_mask_scalef_ph): Likewise.
12410 (_mm256_mask_scalef_ph): Likewise.
12411 (_mm_maskz_scalef_ph): Likewise.
12412 (_mm256_maskz_scalef_ph): Likewise.
12413 * config/i386/i386-builtin.def: Add new builtins.
12414 * config/i386/sse.md (VFH_AVX512VL): New.
12415 (avx512fp16_rcp<mode>2<mask_name>): Ditto.
12416 (avx512fp16_vmrcpv8hf2<mask_scalar_name>): Ditto.
12417 (avx512f_vmscalef<mode><mask_scalar_name><round_scalar_name>):
12418 Adjust to support HF vector modes.
12419 (<avx512>_scalef<mode><mask_name><round_name>): Ditto.
12421 2021-09-14 liuhongt <hongtao.liu@intel.com>
12423 * config/i386/avx512fp16intrin.h: (_mm512_sqrt_ph):
12425 (_mm512_mask_sqrt_ph): Likewise.
12426 (_mm512_maskz_sqrt_ph): Likewise.
12427 (_mm512_sqrt_round_ph): Likewise.
12428 (_mm512_mask_sqrt_round_ph): Likewise.
12429 (_mm512_maskz_sqrt_round_ph): Likewise.
12430 (_mm512_rsqrt_ph): Likewise.
12431 (_mm512_mask_rsqrt_ph): Likewise.
12432 (_mm512_maskz_rsqrt_ph): Likewise.
12433 (_mm_rsqrt_sh): Likewise.
12434 (_mm_mask_rsqrt_sh): Likewise.
12435 (_mm_maskz_rsqrt_sh): Likewise.
12436 (_mm_sqrt_sh): Likewise.
12437 (_mm_mask_sqrt_sh): Likewise.
12438 (_mm_maskz_sqrt_sh): Likewise.
12439 (_mm_sqrt_round_sh): Likewise.
12440 (_mm_mask_sqrt_round_sh): Likewise.
12441 (_mm_maskz_sqrt_round_sh): Likewise.
12442 * config/i386/avx512fp16vlintrin.h (_mm_sqrt_ph): New intrinsic.
12443 (_mm256_sqrt_ph): Likewise.
12444 (_mm_mask_sqrt_ph): Likewise.
12445 (_mm256_mask_sqrt_ph): Likewise.
12446 (_mm_maskz_sqrt_ph): Likewise.
12447 (_mm256_maskz_sqrt_ph): Likewise.
12448 (_mm_rsqrt_ph): Likewise.
12449 (_mm256_rsqrt_ph): Likewise.
12450 (_mm_mask_rsqrt_ph): Likewise.
12451 (_mm256_mask_rsqrt_ph): Likewise.
12452 (_mm_maskz_rsqrt_ph): Likewise.
12453 (_mm256_maskz_rsqrt_ph): Likewise.
12454 * config/i386/i386-builtin-types.def: Add corresponding builtin types.
12455 * config/i386/i386-builtin.def: Add corresponding new builtins.
12456 * config/i386/i386-expand.c
12457 (ix86_expand_args_builtin): Handle new builtins.
12458 (ix86_expand_round_builtin): Ditto.
12459 * config/i386/sse.md (VF_AVX512FP16VL): New.
12460 (sqrt<mode>2): Adjust for HF vector modes.
12461 (<sse>_sqrt<mode>2<mask_name><round_name>): Likewise.
12462 (<sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>):
12464 (<sse>_rsqrt<mode>2<mask_name>): New.
12465 (avx512fp16_vmrsqrtv8hf2<mask_scalar_name>): Likewise.
12467 2021-09-13 Thomas Schwinge <thomas@codesourcery.com>
12469 PR bootstrap/101574
12470 * diagnostic-spec.c (warning_suppressed_at, copy_warning): Handle
12471 'RESERVED_LOCATION_P' locations.
12472 * warning-control.cc (get_nowarn_spec, suppress_warning)
12473 (copy_warning): Likewise.
12475 2021-09-13 Thomas Schwinge <thomas@codesourcery.com>
12477 * diagnostic-spec.h (typedef xint_hash_t): Use 'location_t' instead of...
12478 (typedef key_type_t): ... this. Remove.
12479 (nowarn_map): Document.
12480 * diagnostic-spec.c (nowarn_map): Likewise.
12481 * warning-control.cc (convert_to_key): Evolve functions into...
12482 (get_location): ... these. Adjust all users.
12484 2021-09-13 Thomas Schwinge <thomas@codesourcery.com>
12486 * warning-control.cc (copy_warning): Remove 'nowarn_map' setup.
12488 2021-09-13 Jason Merrill <jason@redhat.com>
12490 * params.opt: Add destructive-interference-size and
12491 constructive-interference-size.
12492 * doc/invoke.texi: Document them.
12493 * config/aarch64/aarch64.c (aarch64_override_options_internal):
12495 * config/arm/arm.c (arm_option_override): Set them.
12496 * config/i386/i386-options.c (ix86_option_override_internal):
12499 2021-09-13 Martin Liska <mliska@suse.cz>
12500 H.J. Lu <hjl.tools@gmail.com>
12503 * common/config/i386/cpuinfo.h (cpu_indicator_init): Add support
12504 for x86-64 micro levels for __builtin_cpu_supports.
12505 * common/config/i386/i386-cpuinfo.h (enum feature_priority):
12506 Add priorities for the micro-arch levels.
12507 (enum processor_features): Add new features.
12508 * common/config/i386/i386-isas.h: Add micro-arch features.
12509 * config/i386/i386-builtins.c (get_builtin_code_for_version):
12510 Support the micro-arch levels by callsing
12511 __builtin_cpu_supports.
12512 * doc/extend.texi: Document that the levels are support by
12513 __builtin_cpu_supports.
12515 2021-09-13 Andrew Pinski <apinski@marvell.com>
12518 * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin_lane_check):
12520 (aarch64_general_fold_builtin): Handle AARCH64_SIMD_BUILTIN_LANE_CHECK.
12521 (aarch64_general_gimple_fold_builtin): Likewise.
12523 2021-09-13 Andrew Pinski <apinski@marvell.com>
12525 * config.gcc: Add m32r-*-linux* and m32rle-*-linux*
12526 to the Unsupported targets list.
12527 Remove support for m32r-*-linux* and m32rle-*-linux*.
12528 * config/m32r/linux.h: Removed.
12529 * config/m32r/t-linux: Removed.
12531 2021-09-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12534 * config/aarch64/aarch64.c (aarch64_classify_address): Don't allow
12535 register index for SVE predicate modes.
12537 2021-09-13 Aldy Hernandez <aldyh@redhat.com>
12539 * tree-ssa-threadbackward.c
12540 (back_threader_profitability::profitable_path_p): Remove FSM
12542 (back_threader_registry::register_path): Same.
12543 * tree-ssa-threadedge.c
12544 (jump_threader::simplify_control_stmt_condition): Same.
12545 * tree-ssa-threadupdate.c (jt_path_registry::jt_path_registry):
12546 Add backedge_threads argument.
12547 (fwd_jt_path_registry::fwd_jt_path_registry): Pass
12548 backedge_threads argument.
12549 (back_jt_path_registry::back_jt_path_registry): Same.
12550 (dump_jump_thread_path): Adjust for FSM removal.
12551 (back_jt_path_registry::rewire_first_differing_edge): Same.
12552 (back_jt_path_registry::adjust_paths_after_duplication): Same.
12553 (back_jt_path_registry::update_cfg): Same.
12554 (jt_path_registry::register_jump_thread): Same.
12555 * tree-ssa-threadupdate.h (enum jump_thread_edge_type): Remove
12557 (class back_jt_path_registry): Add backedge_threads to
12560 2021-09-13 Martin Liska <mliska@suse.cz>
12563 * asan.h (sanitize_coverage_p): Handle when fn == NULL.
12565 2021-09-13 H.J. Lu <hjl.tools@gmail.com>
12568 * config/i386/i386.h (TARGET_AVX256_MOVE_BY_PIECES): New.
12569 (TARGET_AVX256_STORE_BY_PIECES): Likewise.
12570 (MOVE_MAX): Check TARGET_AVX256_MOVE_BY_PIECES and
12571 TARGET_AVX256_STORE_BY_PIECES instead of
12572 TARGET_AVX256_SPLIT_UNALIGNED_LOAD and
12573 TARGET_AVX256_SPLIT_UNALIGNED_STORE.
12574 (STORE_MAX_PIECES): Check TARGET_AVX256_STORE_BY_PIECES instead
12575 of TARGET_AVX256_SPLIT_UNALIGNED_STORE.
12576 * config/i386/x86-tune.def (X86_TUNE_AVX256_MOVE_BY_PIECES): New.
12577 (X86_TUNE_AVX256_STORE_BY_PIECES): Likewise.
12579 2021-09-13 liuhongt <hongtao.liu@intel.com>
12581 PR bootstrap/102302
12582 * expmed.c (extract_bit_field_using_extv): Use
12583 gen_lowpart_if_possible instead of gen_lowpart to avoid ICE.
12585 2021-09-13 Aldy Hernandez <aldyh@redhat.com>
12587 * Makefile.in (OBJS): Add value-pointer-equiv.o.
12588 * gimple-ssa-evrp.c (class ssa_equiv_stack): Move to
12589 value-pointer-equiv.*.
12590 (ssa_equiv_stack::ssa_equiv_stack): Same.
12591 (ssa_equiv_stack::enter): Same.
12592 (ssa_equiv_stack::leave): Same.
12593 (ssa_equiv_stack::push_replacement): Same.
12594 (ssa_equiv_stack::get_replacement): Same.
12595 (is_pointer_ssa): Same.
12596 (class pointer_equiv_analyzer): Same.
12597 (pointer_equiv_analyzer::pointer_equiv_analyzer): Same.
12598 (pointer_equiv_analyzer::~pointer_equiv_analyzer): Same.
12599 (pointer_equiv_analyzer::set_global_equiv): Same.
12600 (pointer_equiv_analyzer::set_cond_equiv): Same.
12601 (pointer_equiv_analyzer::get_equiv): Same.
12602 (pointer_equiv_analyzer::enter): Same.
12603 (pointer_equiv_analyzer::leave): Same.
12604 (pointer_equiv_analyzer::get_equiv_expr): Same.
12605 (pta_valueize): Same.
12606 (pointer_equiv_analyzer::visit_stmt): Same.
12607 (pointer_equiv_analyzer::visit_edge): Same.
12608 (hybrid_folder::value_of_expr): Same.
12609 (hybrid_folder::value_on_edge): Same.
12610 * value-pointer-equiv.cc: New file.
12611 * value-pointer-equiv.h: New file.
12613 2021-09-13 Richard Earnshaw <rearnsha@arm.com>
12616 * gimple-fold.c (gimple_fold_builtin_memory_op): Allow folding
12617 memcpy if the size is not more than MOVE_MAX * MOVE_RATIO.
12619 2021-09-13 Richard Earnshaw <rearnsha@arm.com>
12622 * config/arm/arm.md (movmisaligndi): New define_expand.
12623 * config/arm/vec-common.md (movmisalign<mode>): Iterate over VDQ mode.
12625 2021-09-13 Richard Earnshaw <rearnsha@arm.com>
12628 * emit-rtl.c (gen_highpart): Use adjust_address to handle
12629 MEM rather than calling simplify_gen_subreg.
12631 2021-09-13 Jan-Benedict Glaw <jbglaw@ług-owl.de>
12633 * config/alpha/vms.h (INIT_CUMULATIVE_ARGS): Wrap multi-statment
12634 define into a block.
12636 2021-09-13 Richard Biener <rguenther@suse.de>
12638 * config/darwin.h (DARWIN_PREFER_DWARF): Do not define.
12639 * config/i386/darwin.h (PREFERRED_DEBUGGING_TYPE): Do not
12640 change based on DARWIN_PREFER_DWARF not being defined.
12642 2021-09-13 Richard Biener <rguenther@suse.de>
12644 * config/i386/lynx.h: Remove undef of PREFERRED_DEBUGGING_TYPE
12645 to inherit from elfos.h
12647 2021-09-13 Richard Biener <rguenther@suse.de>
12649 * config.gcc: Add cr16-*-* to the list of obsoleted targets.
12651 2021-09-13 Richard Biener <rguenther@suse.de>
12653 * config/avr/elf.h (PREFERRED_DEBUGGING_TYPE): Remove
12654 override, pick up DWARF2_DEBUG define from elfos.h
12656 2021-09-13 Richard Biener <rguenther@suse.de>
12658 * config/rx/rx.h (PREFERRED_DEBUGGING_TYPE): Always define to
12661 2021-09-13 Richard Biener <rguenther@suse.de>
12663 * config/alpha/vms.h (PREFERRED_DEBUGGING_TYPE): Define to
12666 2021-09-13 Richard Biener <rguenther@suse.de>
12668 * config/i386/cygming.h: Always default to DWARF2 debugging.
12669 Do not define DBX_DEBUGGING_INFO, that's done via dbxcoff.h
12671 * doc/install.texi: Document binutils 2.16 as minimum
12672 requirement for mingw.
12674 2021-09-13 Kewen Lin <linkw@linux.ibm.com>
12676 * config/rs6000/rs6000.c (struct rs6000_cost_data): New members
12677 nstmts, nloads and extra_ctor_cost.
12678 (rs6000_density_test): Add load density related heuristics. Do
12679 extra costing on vector construction statements if need.
12680 (rs6000_init_cost): Init new members.
12681 (rs6000_update_target_cost_per_stmt): New function.
12682 (rs6000_add_stmt_cost): Factor vect_nonmem hunk out to function
12683 rs6000_update_target_cost_per_stmt and call it.
12685 2021-09-13 Kewen Lin <linkw@linux.ibm.com>
12687 * config/rs6000/rs6000.c (struct rs6000_cost_data): Remove typedef.
12688 (rs6000_init_cost): Adjust.
12690 2021-09-13 liuhongt <hongtao.liu@intel.com>
12692 * config/i386/i386.md: (UNSPEC_COPYSIGN): Remove.
12693 (UNSPEC_XORSIGN): Ditto.
12695 2021-09-12 Roger Sayle <roger@nextmovesoftware.com>
12697 * expr.c (convert_move): Preserve SUBREG_PROMOTED_VAR_P when
12698 creating a (wider) partial subreg from a SUBREG_PROMOTED_VAR_P
12701 2021-09-11 Aldy Hernandez <aldyh@redhat.com>
12703 * tree-ssa-threadbackward.c (class back_threader_registry): Use
12704 back_jt_path_registry.
12705 * tree-ssa-threadedge.c (jump_threader::jump_threader): Use
12706 fwd_jt_path_registry.
12707 * tree-ssa-threadedge.h (class jump_threader): Same..
12708 * tree-ssa-threadupdate.c
12709 (jump_thread_path_registry::jump_thread_path_registry): Rename...
12710 (jt_path_registry::jt_path_registry): ...to this.
12711 (jump_thread_path_registry::~jump_thread_path_registry): Rename...
12712 (jt_path_registry::~jt_path_registry): ...this.
12713 (fwd_jt_path_registry::fwd_jt_path_registry): New.
12714 (fwd_jt_path_registry::~fwd_jt_path_registry): New.
12715 (jump_thread_path_registry::allocate_thread_edge): Rename...
12716 (jt_path_registry::allocate_thread_edge): ...to this.
12717 (jump_thread_path_registry::allocate_thread_path): Rename...
12718 (jt_path_registry::allocate_thread_path): ...to this.
12719 (jump_thread_path_registry::lookup_redirection_data): Rename...
12720 (fwd_jt_path_registry::lookup_redirection_data): ...to this.
12721 (jump_thread_path_registry::thread_block_1): Rename...
12722 (fwd_jt_path_registry::thread_block_1): ...to this.
12723 (jump_thread_path_registry::thread_block): Rename...
12724 (fwd_jt_path_registry::thread_block): ...to this.
12725 (jt_path_registry::thread_through_loop_header): Rename...
12726 (fwd_jt_path_registry::thread_through_loop_header): ...to this.
12727 (jump_thread_path_registry::mark_threaded_blocks): Rename...
12728 (fwd_jt_path_registry::mark_threaded_blocks): ...to this.
12729 (jump_thread_path_registry::debug_path): Rename...
12730 (jt_path_registry::debug_path): ...to this.
12731 (jump_thread_path_registry::dump): Rename...
12732 (jt_path_registry::debug): ...to this.
12733 (jump_thread_path_registry::rewire_first_differing_edge): Rename...
12734 (back_jt_path_registry::rewire_first_differing_edge): ...to this.
12735 (jump_thread_path_registry::adjust_paths_after_duplication): Rename...
12736 (back_jt_path_registry::adjust_paths_after_duplication): ...to this.
12737 (jump_thread_path_registry::duplicate_thread_path): Rename...
12738 (back_jt_path_registry::duplicate_thread_path): ...to this. Also,
12739 drop ill-formed candidates.
12740 (jump_thread_path_registry::remove_jump_threads_including): Rename...
12741 (fwd_jt_path_registry::remove_jump_threads_including): ...to this.
12742 (jt_path_registry::thread_through_all_blocks): New.
12743 (back_jt_path_registry::update_cfg): New.
12744 (fwd_jt_path_registry::update_cfg): New.
12745 (jump_thread_path_registry::register_jump_thread): Rename...
12746 (jt_path_registry::register_jump_thread): ...to this.
12747 * tree-ssa-threadupdate.h (class jump_thread_path_registry):
12749 (class jt_path_registry): ...here.
12750 (class fwd_jt_path_registry): New.
12751 (class back_jt_path_registry): New.
12753 2021-09-10 liuhongt <hongtao.liu@intel.com>
12756 2021-09-01 liuhongt <hongtao.liu@intel.com>
12758 * emit-rtl.c (validate_subreg): Get rid of all float-int
12761 2021-09-10 Jakub Jelinek <jakub@redhat.com>
12763 * tree-core.h (enum omp_memory_order): Add OMP_MEMORY_ORDER_MASK,
12764 OMP_FAIL_MEMORY_ORDER_UNSPECIFIED, OMP_FAIL_MEMORY_ORDER_RELAXED,
12765 OMP_FAIL_MEMORY_ORDER_ACQUIRE, OMP_FAIL_MEMORY_ORDER_RELEASE,
12766 OMP_FAIL_MEMORY_ORDER_ACQ_REL, OMP_FAIL_MEMORY_ORDER_SEQ_CST and
12767 OMP_FAIL_MEMORY_ORDER_MASK enumerators.
12768 (OMP_FAIL_MEMORY_ORDER_SHIFT): Define.
12769 * gimple-pretty-print.c (dump_gimple_omp_atomic_load,
12770 dump_gimple_omp_atomic_store): Print [weak] for weak atomic
12772 * gimple.h (enum gf_mask): Change GF_OMP_ATOMIC_MEMORY_ORDER
12773 to 6-bit mask, adjust GF_OMP_ATOMIC_NEED_VALUE value and add
12774 GF_OMP_ATOMIC_WEAK.
12775 (gimple_omp_atomic_weak_p, gimple_omp_atomic_set_weak): New inline
12777 * tree.h (OMP_ATOMIC_WEAK): Define.
12778 * tree-pretty-print.c (dump_omp_atomic_memory_order): Adjust for
12779 fail memory order being encoded in the same enum and also print
12780 fail clause if present.
12781 (dump_generic_node): Print weak clause if OMP_ATOMIC_WEAK.
12782 * gimplify.c (goa_stabilize_expr): Add target_expr and rhs arguments,
12783 handle pre_p == NULL case as a test mode that only returns value
12784 but doesn't change gimplify nor change anything otherwise, adjust
12785 recursive calls, add MODIFY_EXPR, ADDR_EXPR, COND_EXPR, TARGET_EXPR
12786 and CALL_EXPR handling, adjust COMPOUND_EXPR handling for
12787 __builtin_clear_padding calls, for !rhs gimplify as lvalue rather
12789 (gimplify_omp_atomic): Adjust goa_stabilize_expr caller. Handle
12790 COND_EXPR rhs. Set weak flag on gimple load/store for
12792 * omp-expand.c (omp_memory_order_to_fail_memmodel): New function.
12793 (omp_memory_order_to_memmodel): Adjust for fail clause encoded
12795 (expand_omp_atomic_cas): New function.
12796 (expand_omp_atomic_pipeline): Use omp_memory_order_to_fail_memmodel
12798 (expand_omp_atomic): Attempt to optimize atomic compare and exchange
12799 using expand_omp_atomic_cas.
12801 2021-09-10 Aldy Hernandez <aldyh@redhat.com>
12802 Michael Matz <matz@suse.de>
12804 * tree-pass.h (PROP_loop_opts_done): New.
12805 * gimple-range-path.cc (path_range_query::internal_range_of_expr):
12806 Intersect with global range.
12807 * tree-ssa-loop.c (tree_ssa_loop_done): Set PROP_loop_opts_done.
12808 * tree-ssa-threadbackward.c
12809 (back_threader_profitability::profitable_path_p): Disable
12810 threading through latches until after loop optimizations have run.
12812 2021-09-10 David Faust <david.faust@oracle.com>
12814 * doc/invoke.texi: Document BPF -mcpu, -mjmpext, -mjmp32 and -malu32
12817 2021-09-10 David Faust <david.faust@oracle.com>
12819 * config/bpf/bpf-opts.h (bpf_isa_version): New enum.
12820 * config/bpf/bpf-protos.h (bpf_expand_cbranch): New.
12821 * config/bpf/bpf.c (bpf_option_override): Handle -mcpu option.
12822 (bpf_expand_cbranch): New function.
12823 * config/bpf/bpf.md (AM mode iterator): Conditionalize support for SI
12825 (zero_extendsidi2): Only use mov32 instruction if it is available.
12826 (SIM mode iterator): Conditionalize support for SI mode.
12827 (JM mode iterator): New.
12828 (cbranchdi4): Update name, use new JM iterator. Use bpf_expand_cbranch.
12829 (*branch_on_di): Update name, use new JM iterator.
12830 * config/bpf/bpf.opt: (mjmpext): New option.
12831 (malu32): Likewise.
12832 (mjmp32): Likewise.
12834 (bpf_isa): New enum.
12836 2021-09-10 David Faust <david.faust@oracle.com>
12838 * config/bpf/bpf.md (zero_extendhidi2): Add new output template
12839 for register-to-register extensions.
12840 (zero_extendqidi2): Likewise.
12842 2021-09-10 Richard Biener <rguenther@suse.de>
12844 PR middle-end/102273
12845 * internal-fn.c (expand_DEFERRED_INIT): Always expand non-SSA vars.
12847 2021-09-10 Richard Biener <rguenther@suse.de>
12849 PR middle-end/102269
12850 * gimplify.c (is_var_need_auto_init): Empty types do not need
12853 2021-09-10 Richard Biener <rguenther@suse.de>
12855 * configure.ac (--with-stabs): Remove.
12856 * configure: Regenerate.
12857 * doc/install.texi: Remove --with-stabs documentation.
12859 2021-09-10 liuhongt <hongtao.liu@intel.com>
12861 * config/i386/avx512fp16intrin.h: (_mm512_cmp_ph_mask):
12863 (_mm512_mask_cmp_ph_mask): Likewise.
12864 (_mm512_cmp_round_ph_mask): Likewise.
12865 (_mm512_mask_cmp_round_ph_mask): Likewise.
12866 (_mm_cmp_sh_mask): Likewise.
12867 (_mm_mask_cmp_sh_mask): Likewise.
12868 (_mm_cmp_round_sh_mask): Likewise.
12869 (_mm_mask_cmp_round_sh_mask): Likewise.
12870 (_mm_comieq_sh): Likewise.
12871 (_mm_comilt_sh): Likewise.
12872 (_mm_comile_sh): Likewise.
12873 (_mm_comigt_sh): Likewise.
12874 (_mm_comige_sh): Likewise.
12875 (_mm_comineq_sh): Likewise.
12876 (_mm_ucomieq_sh): Likewise.
12877 (_mm_ucomilt_sh): Likewise.
12878 (_mm_ucomile_sh): Likewise.
12879 (_mm_ucomigt_sh): Likewise.
12880 (_mm_ucomige_sh): Likewise.
12881 (_mm_ucomineq_sh): Likewise.
12882 (_mm_comi_round_sh): Likewise.
12883 (_mm_comi_sh): Likewise.
12884 * config/i386/avx512fp16vlintrin.h (_mm_cmp_ph_mask): New intrinsic.
12885 (_mm_mask_cmp_ph_mask): Likewise.
12886 (_mm256_cmp_ph_mask): Likewise.
12887 (_mm256_mask_cmp_ph_mask): Likewise.
12888 * config/i386/i386-builtin-types.def: Add corresponding builtin types.
12889 * config/i386/i386-builtin.def: Add corresponding new builtins.
12890 * config/i386/i386-expand.c
12891 (ix86_expand_args_builtin): Handle new builtin types.
12892 (ix86_expand_round_builtin): Ditto.
12893 * config/i386/i386.md (ssevecmode): Add HF mode.
12894 (MODEFH): New mode iterator.
12895 * config/i386/sse.md
12896 (V48H_AVX512VL): New mode iterator to support HF vector modes.
12897 Ajdust corresponding description.
12898 (ssecmpintprefix): New.
12899 (VI12_AVX512VL): Adjust to support HF vector modes.
12900 (cmp_imm_predicate): Likewise.
12901 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
12903 (avx512f_vmcmp<mode>3<round_saeonly_name>): Likewise.
12904 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Likewise.
12905 (<sse>_<unord>comi<round_saeonly_name>): Likewise.
12907 2021-09-10 liuhongt <hongtao.liu@intel.com>
12909 * config/i386/avx512fp16intrin.h: (_mm512_max_ph): New intrinsic.
12910 (_mm512_mask_max_ph): Likewise.
12911 (_mm512_maskz_max_ph): Likewise.
12912 (_mm512_min_ph): Likewise.
12913 (_mm512_mask_min_ph): Likewise.
12914 (_mm512_maskz_min_ph): Likewise.
12915 (_mm512_max_round_ph): Likewise.
12916 (_mm512_mask_max_round_ph): Likewise.
12917 (_mm512_maskz_max_round_ph): Likewise.
12918 (_mm512_min_round_ph): Likewise.
12919 (_mm512_mask_min_round_ph): Likewise.
12920 (_mm512_maskz_min_round_ph): Likewise.
12921 (_mm_max_sh): Likewise.
12922 (_mm_mask_max_sh): Likewise.
12923 (_mm_maskz_max_sh): Likewise.
12924 (_mm_min_sh): Likewise.
12925 (_mm_mask_min_sh): Likewise.
12926 (_mm_maskz_min_sh): Likewise.
12927 (_mm_max_round_sh): Likewise.
12928 (_mm_mask_max_round_sh): Likewise.
12929 (_mm_maskz_max_round_sh): Likewise.
12930 (_mm_min_round_sh): Likewise.
12931 (_mm_mask_min_round_sh): Likewise.
12932 (_mm_maskz_min_round_sh): Likewise.
12933 * config/i386/avx512fp16vlintrin.h (_mm_max_ph): New intrinsic.
12934 (_mm256_max_ph): Likewise.
12935 (_mm_mask_max_ph): Likewise.
12936 (_mm256_mask_max_ph): Likewise.
12937 (_mm_maskz_max_ph): Likewise.
12938 (_mm256_maskz_max_ph): Likewise.
12939 (_mm_min_ph): Likewise.
12940 (_mm256_min_ph): Likewise.
12941 (_mm_mask_min_ph): Likewise.
12942 (_mm256_mask_min_ph): Likewise.
12943 (_mm_maskz_min_ph): Likewise.
12944 (_mm256_maskz_min_ph): Likewise.
12945 * config/i386/i386-builtin-types.def: Add corresponding builtin types.
12946 * config/i386/i386-builtin.def: Add corresponding new builtins.
12947 * config/i386/i386-expand.c
12948 (ix86_expand_args_builtin): Handle new builtin types.
12949 * config/i386/sse.md
12950 (<code><mode>3<mask_name><round_saeonly_name>): Adjust to
12951 support HF vector modes.
12952 (*<code><mode>3<mask_name><round_saeonly_name>): Likewise.
12953 (ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>):
12955 (<sse>_vm<code><mode>3<mask_scalar_name><round_saeonly_scalar_name>):
12957 * config/i386/subst.md (round_saeonly_mode512bit_condition):
12958 Adjust for HF vector modes.
12960 2021-09-10 Liu, Hongtao <hongtao.liu@intel.com>
12962 * config/i386/avx512fp16intrin.h (_mm_add_sh): New intrinsic.
12963 (_mm_mask_add_sh): Likewise.
12964 (_mm_maskz_add_sh): Likewise.
12965 (_mm_sub_sh): Likewise.
12966 (_mm_mask_sub_sh): Likewise.
12967 (_mm_maskz_sub_sh): Likewise.
12968 (_mm_mul_sh): Likewise.
12969 (_mm_mask_mul_sh): Likewise.
12970 (_mm_maskz_mul_sh): Likewise.
12971 (_mm_div_sh): Likewise.
12972 (_mm_mask_div_sh): Likewise.
12973 (_mm_maskz_div_sh): Likewise.
12974 (_mm_add_round_sh): Likewise.
12975 (_mm_mask_add_round_sh): Likewise.
12976 (_mm_maskz_add_round_sh): Likewise.
12977 (_mm_sub_round_sh): Likewise.
12978 (_mm_mask_sub_round_sh): Likewise.
12979 (_mm_maskz_sub_round_sh): Likewise.
12980 (_mm_mul_round_sh): Likewise.
12981 (_mm_mask_mul_round_sh): Likewise.
12982 (_mm_maskz_mul_round_sh): Likewise.
12983 (_mm_div_round_sh): Likewise.
12984 (_mm_mask_div_round_sh): Likewise.
12985 (_mm_maskz_div_round_sh): Likewise.
12986 * config/i386/i386-builtin-types.def: Add corresponding builtin types.
12987 * config/i386/i386-builtin.def: Add corresponding new builtins.
12988 * config/i386/i386-expand.c
12989 (ix86_expand_round_builtin): Handle new builtins.
12990 * config/i386/sse.md (VF_128): Change description.
12991 (<sse>_vm<plusminus_insn><mode>3<mask_scalar_name><round_scalar_name>):
12992 Adjust to support HF vector modes.
12993 (<sse>_vm<multdiv_mnemonic><mode>3<mask_scalar_name><round_scalar_name>):
12996 2021-09-10 H.J. Lu <hjl.tools@gmail.com>
12998 * config/i386/i386-expand.c
12999 (ix86_avx256_split_vector_move_misalign): Handle V16HF mode.
13000 * config/i386/i386.c
13001 (ix86_preferred_simd_mode): Handle HF mode.
13002 * config/i386/sse.md (V_256H): New mode iterator.
13003 (avx_vextractf128<mode>): Use it.
13004 (VEC_INIT_MODE): Align vector HFmode condition to vector
13005 HImodes since there're no real HF instruction used.
13006 (VEC_INIT_HALF_MODE): Ditto.
13008 (VIHF_AVX512BW): Ditto.
13009 (*vec_extracthf): Ditto.
13010 (VEC_EXTRACT_MODE): Ditto.
13012 2021-09-10 Richard Biener <rguenther@suse.de>
13015 * config/dbx.h: Remove.
13016 * config/dbxcoff.h: Do not define PREFERRED_DEBUGGING_TYPE.
13017 * config/lynx.h: Likewise.
13019 2021-09-10 liuhongt <hongtao.liu@intel.com>
13021 * config/i386/i386-expand.c (ix86_expand_copysign): Expand
13022 right into ANDNOT + AND + IOR, using paradoxical subregs.
13023 (ix86_split_copysign_const): Remove.
13024 (ix86_split_copysign_var): Ditto.
13025 * config/i386/i386-protos.h (ix86_split_copysign_const): Dotto.
13026 (ix86_split_copysign_var): Ditto.
13027 * config/i386/i386.md (@copysign<mode>3_const): Ditto.
13028 (@copysign<mode>3_var): Ditto.
13030 2021-09-09 qing zhao <qing.zhao@oracle.com>
13032 * builtins.c (expand_builtin_memset): Make external visible.
13033 * builtins.h (expand_builtin_memset): Declare extern.
13034 * common.opt (ftrivial-auto-var-init=): New option.
13035 * doc/extend.texi: Document the uninitialized attribute.
13036 * doc/invoke.texi: Document -ftrivial-auto-var-init.
13037 * flag-types.h (enum auto_init_type): New enumerated type
13039 * gimple-fold.c (clear_padding_type): Add one new parameter.
13040 (clear_padding_union): Likewise.
13041 (clear_padding_emit_loop): Likewise.
13042 (clear_type_padding_in_mask): Likewise.
13043 (gimple_fold_builtin_clear_padding): Handle this new parameter.
13044 * gimplify.c (gimple_add_init_for_auto_var): New function.
13045 (gimple_add_padding_init_for_auto_var): New function.
13046 (is_var_need_auto_init): New function.
13047 (gimplify_decl_expr): Add initialization to automatic variables per
13049 (gimplify_call_expr): Add one new parameter for call to
13050 __builtin_clear_padding.
13051 (gimplify_init_constructor): Add padding initialization in the end.
13052 * internal-fn.c (INIT_PATTERN_VALUE): New macro.
13053 (expand_DEFERRED_INIT): New function.
13054 * internal-fn.def (DEFERRED_INIT): New internal function.
13055 * tree-cfg.c (verify_gimple_call): Verify calls to .DEFERRED_INIT.
13056 * tree-sra.c (generate_subtree_deferred_init): New function.
13057 (scan_function): Avoid setting cannot_scalarize_away_bitmap for
13058 calls to .DEFERRED_INIT.
13059 (sra_modify_deferred_init): New function.
13060 (sra_modify_function_body): Handle calls to DEFERRED_INIT specially.
13061 * tree-ssa-structalias.c (find_func_aliases_for_call): Likewise.
13062 * tree-ssa-uninit.c (warn_uninit): Handle calls to DEFERRED_INIT
13064 (check_defs): Likewise.
13065 (warn_uninitialized_vars): Likewise.
13066 * tree-ssa.c (ssa_undefined_value_p): Likewise.
13067 * tree.c (build_common_builtin_nodes): Build tree node for
13068 BUILT_IN_CLEAR_PADDING when needed.
13070 2021-09-09 Richard Biener <rguenther@suse.de>
13072 * tree-ssa-loop-im.c (fill_always_executed_in_1): Walk
13075 2021-09-09 Richard Biener <rguenther@suse.de>
13077 * tree-ssa-loop-im.c (fill_always_executed_in_1): Integrate
13078 DOM walk from get_loop_body_in_dom_order using a worklist
13081 2021-09-09 liuhongt <hongtao.liu@intel.com>
13083 * config.gcc: Add avx512fp16vlintrin.h.
13084 * config/i386/avx512fp16intrin.h: (_mm512_add_ph): New intrinsic.
13085 (_mm512_mask_add_ph): Likewise.
13086 (_mm512_maskz_add_ph): Likewise.
13087 (_mm512_sub_ph): Likewise.
13088 (_mm512_mask_sub_ph): Likewise.
13089 (_mm512_maskz_sub_ph): Likewise.
13090 (_mm512_mul_ph): Likewise.
13091 (_mm512_mask_mul_ph): Likewise.
13092 (_mm512_maskz_mul_ph): Likewise.
13093 (_mm512_div_ph): Likewise.
13094 (_mm512_mask_div_ph): Likewise.
13095 (_mm512_maskz_div_ph): Likewise.
13096 (_mm512_add_round_ph): Likewise.
13097 (_mm512_mask_add_round_ph): Likewise.
13098 (_mm512_maskz_add_round_ph): Likewise.
13099 (_mm512_sub_round_ph): Likewise.
13100 (_mm512_mask_sub_round_ph): Likewise.
13101 (_mm512_maskz_sub_round_ph): Likewise.
13102 (_mm512_mul_round_ph): Likewise.
13103 (_mm512_mask_mul_round_ph): Likewise.
13104 (_mm512_maskz_mul_round_ph): Likewise.
13105 (_mm512_div_round_ph): Likewise.
13106 (_mm512_mask_div_round_ph): Likewise.
13107 (_mm512_maskz_div_round_ph): Likewise.
13108 * config/i386/avx512fp16vlintrin.h: New header.
13109 * config/i386/i386-builtin-types.def (V16HF, V8HF, V32HF):
13110 Add new builtin types.
13111 * config/i386/i386-builtin.def: Add corresponding builtins.
13112 * config/i386/i386-expand.c
13113 (ix86_expand_args_builtin): Handle new builtin types.
13114 (ix86_expand_round_builtin): Likewise.
13115 * config/i386/immintrin.h: Include avx512fp16vlintrin.h
13116 * config/i386/sse.md (VFH): New mode_iterator.
13118 (avx512fmaskmode): Add HF vector modes.
13119 (avx512fmaskhalfmode): Likewise.
13120 (<plusminus_insn><mode>3<mask_name><round_name>): Adjust to for
13122 (*<plusminus_insn><mode>3<mask_name><round_name>): Likewise.
13123 (mul<mode>3<mask_name><round_name>): Likewise.
13124 (*mul<mode>3<mask_name><round_name>): Likewise.
13125 (div<mode>3): Likewise.
13126 (<sse>_div<mode>3<mask_name><round_name>): Likewise.
13127 * config/i386/subst.md (SUBST_V): Add HF vector modes.
13128 (SUBST_A): Likewise.
13129 (round_mode512bit_condition): Adjust for V32HFmode.
13131 2021-09-09 liuhongt <hongtao.liu@intel.com>
13134 * config/i386/sse.md (reduc_plus_scal_<mode>): Split to ..
13135 (reduc_plus_scal_v4sf): .. this, New define_expand.
13136 (reduc_plus_scal_v2df): .. and this, New define_expand.
13138 2021-09-09 liuhongt <hongtao.liu@intel.com>
13141 * config/i386/sse.md (*vec_extract<mode><ssescalarmodelower>_valign):
13144 2021-09-08 Jonathan Wakely <jwakely@redhat.com>
13147 * doc/trouble.texi (Copy Assignment): Fix description of
13148 behaviour and fix code in example.
13150 2021-09-08 Segher Boessenkool <segher@kernel.crashing.org>
13153 * config/rs6000/rs6000-logue.c (rs6000_emit_epilogue): For ELFv2 use
13154 r11 instead of r12 for restoring CR.
13156 2021-09-08 Jakub Jelinek <jakub@redhat.com>
13157 liuhongt <hongtao.liu@intel.com>
13160 * config/i386/i386.md (@xorsign<mode>3_1): Remove.
13161 * config/i386/i386-expand.c (ix86_expand_xorsign): Expand right away
13162 into AND with mask and XOR, using paradoxical subregs.
13163 (ix86_split_xorsign): Remove.
13164 * config/i386/i386-protos.h (ix86_split_xorsign): Remove.
13166 2021-09-08 Di Zhao <dizhao@os.amperecomputing.com>
13168 * tree-ssa-sccvn.c (vn_nary_op_insert_into): fix result compare
13170 2021-09-08 Jakub Jelinek <jakub@redhat.com>
13173 * config/i386/i386.md (xorsign<mode>3): If operands[1] is equal to
13174 operands[2], emit abs<mode>2 instead.
13175 (@xorsign<mode>3_1): Add early-clobbers for output operand, enable
13176 first alternative even for avx, add another alternative with
13177 =&Yv <- 0, Yv, Yvm constraints.
13178 * config/i386/i386-expand.c (ix86_split_xorsign): If op0 is equal
13179 to op1, emit vpandn instead.
13181 2021-09-08 liuhongt <hongtao.liu@intel.com>
13183 * config/i386/avx512fp16intrin.h (_mm_set_ph): New intrinsic.
13184 (_mm256_set_ph): Likewise.
13185 (_mm512_set_ph): Likewise.
13186 (_mm_setr_ph): Likewise.
13187 (_mm256_setr_ph): Likewise.
13188 (_mm512_setr_ph): Likewise.
13189 (_mm_set1_ph): Likewise.
13190 (_mm256_set1_ph): Likewise.
13191 (_mm512_set1_ph): Likewise.
13192 (_mm_setzero_ph): Likewise.
13193 (_mm256_setzero_ph): Likewise.
13194 (_mm512_setzero_ph): Likewise.
13195 (_mm_set_sh): Likewise.
13196 (_mm_load_sh): Likewise.
13197 (_mm_store_sh): Likewise.
13198 * config/i386/i386-builtin-types.def (V8HF): New type.
13199 (DEF_FUNCTION_TYPE (V8HF, V8HI)): New builtin function type
13200 * config/i386/i386-expand.c (ix86_expand_vector_init_duplicate):
13201 Support vector HFmodes.
13202 (ix86_expand_vector_init_one_nonzero): Likewise.
13203 (ix86_expand_vector_init_one_var): Likewise.
13204 (ix86_expand_vector_init_interleave): Likewise.
13205 (ix86_expand_vector_init_general): Likewise.
13206 (ix86_expand_vector_set): Likewise.
13207 (ix86_expand_vector_extract): Likewise.
13208 (ix86_expand_vector_init_concat): Likewise.
13209 (ix86_expand_sse_movcc): Handle vector HFmodes.
13210 (ix86_expand_vector_set_var): Ditto.
13211 * config/i386/i386-modes.def: Add HF vector modes in comment.
13212 * config/i386/i386.c (classify_argument): Add HF vector modes.
13213 (ix86_hard_regno_mode_ok): Allow HF vector modes for AVX512FP16.
13214 (ix86_vector_mode_supported_p): Likewise.
13215 (ix86_set_reg_reg_cost): Handle vector HFmode.
13216 (ix86_get_ssemov): Handle vector HFmode.
13217 (function_arg_advance_64): Pass unamed V16HFmode and V32HFmode
13219 (function_arg_advance_32): Pass V8HF/V16HF/V32HF by sse reg for 32bit
13221 (function_arg_advance_32): Ditto.
13222 * config/i386/i386.h (VALID_AVX512FP16_REG_MODE): New.
13223 (VALID_AVX256_REG_OR_OI_MODE): Rename to ..
13224 (VALID_AVX256_REG_OR_OI_VHF_MODE): .. this, and add V16HF.
13225 (VALID_SSE2_REG_VHF_MODE): New.
13226 (VALID_AVX512VL_128_REG_MODE): Add V8HF and TImode.
13227 (SSE_REG_MODE_P): Add vector HFmode.
13228 * config/i386/i386.md (mode): Add HF vector modes.
13229 (MODE_SIZE): Likewise.
13230 (ssemodesuffix): Add ph suffix for HF vector modes.
13231 * config/i386/sse.md (VFH_128): New mode iterator.
13232 (VMOVE): Adjust for HF vector modes.
13234 (V_256_512): Likewise.
13235 (avx512): Likewise.
13236 (avx512fmaskmode): Likewise.
13237 (shuffletype): Likewise.
13238 (sseinsnmode): Likewise.
13239 (ssedoublevecmode): Likewise.
13240 (ssehalfvecmode): Likewise.
13241 (ssehalfvecmodelower): Likewise.
13242 (ssePScmode): Likewise.
13243 (ssescalarmode): Likewise.
13244 (ssescalarmodelower): Likewise.
13245 (sseintprefix): Likewise.
13247 (bcstscalarsuff): Likewise.
13248 (xtg_mode): Likewise.
13249 (VI12HF_AVX512VL): New mode_iterator.
13250 (VF_AVX512FP16): Likewise.
13252 (VIHF_256): Likewise.
13253 (VIHF_AVX512BW): Likewise.
13254 (V16_256): Likewise.
13255 (V32_512): Likewise.
13256 (sseintmodesuffix): New mode_attr.
13257 (sse): Add scalar and vector HFmodes.
13258 (ssescalarmode): Add vector HFmode mapping.
13259 (ssescalarmodesuffix): Add sh suffix for HFmode.
13260 (*<sse>_vm<insn><mode>3): Use VFH_128.
13261 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
13262 (*ieee_<ieee_maxmin><mode>3): Likewise.
13263 (<avx512>_blendm<mode>): New define_insn.
13264 (vec_setv8hf): New define_expand.
13265 (vec_set<mode>_0): New define_insn for HF vector set.
13266 (*avx512fp16_movsh): Likewise.
13267 (avx512fp16_movsh): Likewise.
13268 (vec_extract_lo_v32hi): Rename to ...
13269 (vec_extract_lo_<mode>): ... this, and adjust to allow HF
13271 (vec_extract_hi_v32hi): Likewise.
13272 (vec_extract_hi_<mode>): Likewise.
13273 (vec_extract_lo_v16hi): Likewise.
13274 (vec_extract_lo_<mode>): Likewise.
13275 (vec_extract_hi_v16hi): Likewise.
13276 (vec_extract_hi_<mode>): Likewise.
13277 (vec_set_hi_v16hi): Likewise.
13278 (vec_set_hi_<mode>): Likewise.
13279 (vec_set_lo_v16hi): Likewise.
13280 (vec_set_lo_<mode>): Likewise.
13281 (*vec_extract<mode>_0): New define_insn_and_split for HF
13283 (*vec_extracthf): New define_insn.
13284 (VEC_EXTRACT_MODE): Add HF vector modes.
13285 (PINSR_MODE): Add V8HF.
13286 (sse2p4_1): Likewise.
13287 (pinsr_evex_isa): Likewise.
13288 (<sse2p4_1>_pinsr<ssemodesuffix>): Adjust to support
13289 insert for V8HFmode.
13290 (pbroadcast_evex_isa): Add HF vector modes.
13291 (AVX2_VEC_DUP_MODE): Likewise.
13292 (VEC_INIT_MODE): Likewise.
13293 (VEC_INIT_HALF_MODE): Likewise.
13294 (avx2_pbroadcast<mode>): Adjust to support HF vector mode
13296 (avx2_pbroadcast<mode>_1): Likewise.
13297 (<avx512>_vec_dup<mode>_1): Likewise.
13298 (<avx512>_vec_dup<mode><mask_name>): Likewise.
13299 (<mask_codefor><avx512>_vec_dup_gpr<mode><mask_name>):
13302 2021-09-08 Guo, Xuepeng <xuepeng.guo@intel.com>
13303 H.J. Lu <hongjiu.lu@intel.com>
13304 Liu Hongtao <hongtao.liu@intel.com>
13305 Wang Hongyu <hongyu.wang@intel.com>
13306 Xu Dianhong <dianhong.xu@intel.com>
13308 * common/config/i386/cpuinfo.h (get_available_features):
13309 Detect FEATURE_AVX512FP16.
13310 * common/config/i386/i386-common.c
13311 (OPTION_MASK_ISA_AVX512FP16_SET,
13312 OPTION_MASK_ISA_AVX512FP16_UNSET,
13313 OPTION_MASK_ISA2_AVX512FP16_SET,
13314 OPTION_MASK_ISA2_AVX512FP16_UNSET): New.
13315 (OPTION_MASK_ISA2_AVX512BW_UNSET,
13316 OPTION_MASK_ISA2_AVX512BF16_UNSET): Add AVX512FP16.
13317 (ix86_handle_option): Handle -mavx512fp16.
13318 * common/config/i386/i386-cpuinfo.h (enum processor_features):
13319 Add FEATURE_AVX512FP16.
13320 * common/config/i386/i386-isas.h: Add entry for AVX512FP16.
13321 * config.gcc: Add avx512fp16intrin.h.
13322 * config/i386/avx512fp16intrin.h: New intrinsic header.
13323 * config/i386/cpuid.h: Add bit_AVX512FP16.
13324 * config/i386/i386-builtin-types.def: (FLOAT16): New primitive type.
13325 * config/i386/i386-builtins.c: Support _Float16 type for i386
13327 (ix86_register_float16_builtin_type): New function.
13328 (ix86_float16_type_node): New.
13329 * config/i386/i386-c.c (ix86_target_macros_internal): Define
13331 * config/i386/i386-expand.c (ix86_expand_branch): Support
13333 (ix86_prepare_fp_compare_args): Adjust TARGET_SSE_MATH &&
13334 SSE_FLOAT_MODE_P to SSE_FLOAT_MODE_SSEMATH_OR_HF_P.
13335 (ix86_expand_fp_movcc): Ditto.
13336 * config/i386/i386-isa.def: Add PTA define for AVX512FP16.
13337 * config/i386/i386-options.c (isa2_opts): Add -mavx512fp16.
13338 (ix86_valid_target_attribute_inner_p): Add avx512fp16 attribute.
13339 * config/i386/i386.c (ix86_get_ssemov): Use
13340 vmovdqu16/vmovw/vmovsh for HFmode/HImode scalar or vector.
13341 (ix86_get_excess_precision): Use
13342 FLT_EVAL_METHOD_PROMOTE_TO_FLOAT16 when TARGET_AVX512FP16
13344 (sse_store_index): Use SFmode cost for HFmode cost.
13345 (inline_memory_move_cost): Add HFmode, and perfer SSE cost over
13346 GPR cost for HFmode.
13347 (ix86_hard_regno_mode_ok): Allow HImode in sse register.
13348 (ix86_mangle_type): Add manlging for _Float16 type.
13349 (inline_secondary_memory_needed): No memory is needed for
13350 16bit movement between gpr and sse reg under
13352 (ix86_multiplication_cost): Adjust TARGET_SSE_MATH &&
13353 SSE_FLOAT_MODE_P to SSE_FLOAT_MODE_SSEMATH_OR_HF_P.
13354 (ix86_division_cost): Ditto.
13355 (ix86_rtx_costs): Ditto.
13356 (ix86_add_stmt_cost): Ditto.
13357 (ix86_optab_supported_p): Ditto.
13358 * config/i386/i386.h (VALID_AVX512F_SCALAR_MODE): Add HFmode.
13359 (SSE_FLOAT_MODE_SSEMATH_OR_HF_P): Add HFmode.
13360 (PTA_SAPPHIRERAPIDS): Add PTA_AVX512FP16.
13361 * config/i386/i386.md (mode): Add HFmode.
13362 (MODE_SIZE): Add HFmode.
13363 (isa): Add avx512fp16.
13364 (enabled): Handle avx512fp16.
13365 (ssemodesuffix): Add sh suffix for HFmode.
13366 (comm): Add mult, div.
13367 (plusminusmultdiv): New code iterator.
13368 (insn): Add mult, div.
13369 (*movhf_internal): Adjust for avx512fp16 instruction.
13370 (*movhi_internal): Ditto.
13371 (*cmpi<unord>hf): New define_insn for HFmode.
13372 (*ieee_s<ieee_maxmin>hf3): Likewise.
13373 (extendhf<mode>2): Likewise.
13374 (trunc<mode>hf2): Likewise.
13375 (float<floatunssuffix><mode>hf2): Likewise.
13376 (*<insn>hf): Likewise.
13377 (cbranchhf4): New expander.
13378 (movhfcc): Likewise.
13379 (<insn>hf3): Likewise.
13380 (mulhf3): Likewise.
13381 (divhf3): Likewise.
13382 * config/i386/i386.opt: Add mavx512fp16.
13383 * config/i386/immintrin.h: Include avx512fp16intrin.h.
13384 * doc/invoke.texi: Add mavx512fp16.
13385 * doc/extend.texi: Add avx512fp16 Usage Notes.
13387 2021-09-08 liuhongt <hongtao.liu@intel.com>
13389 * common.opt: Support -fexcess-precision=16.
13390 * config/aarch64/aarch64.c (aarch64_excess_precision): Return
13391 FLT_EVAL_METHOD_PROMOTE_TO_FLOAT16 when
13392 EXCESS_PRECISION_TYPE_FLOAT16.
13393 * config/arm/arm.c (arm_excess_precision): Ditto.
13394 * config/i386/i386.c (ix86_get_excess_precision): Ditto.
13395 * config/m68k/m68k.c (m68k_excess_precision): Issue an error
13396 when EXCESS_PRECISION_TYPE_FLOAT16.
13397 * config/s390/s390.c (s390_excess_precision): Ditto.
13398 * coretypes.h (enum excess_precision_type): Add
13399 EXCESS_PRECISION_TYPE_FLOAT16.
13400 * doc/tm.texi (TARGET_C_EXCESS_PRECISION): Update documents.
13401 * doc/tm.texi.in (TARGET_C_EXCESS_PRECISION): Ditto.
13402 * doc/extend.texi (Half-Precision): Document
13403 -fexcess-precision=16.
13404 * flag-types.h (enum excess_precision): Add
13405 EXCESS_PRECISION_FLOAT16.
13406 * target.def (excess_precision): Update document.
13407 * tree.c (excess_precision_type): Set excess_precision_type to
13408 EXCESS_PRECISION_FLOAT16 when -fexcess-precision=16.
13410 2021-09-08 liuhongt <hongtao.liu@intel.com>
13412 * doc/extend.texi: (@node Floating Types): Adjust the wording.
13413 (@node Half-Precision): Ditto.
13415 2021-09-07 Takayuki 'January June' Suwa <jjsuwa_sys3175@yahoo.co.jp>
13418 * config/xtensa/xtensa.c (xtensa_emit_move_sequence): Add
13419 'CONST_INT_P (src)' to the condition of the block that tries to
13420 eliminate literal when loading integer contant.
13422 2021-09-07 David Faust <david.faust@oracle.com>
13424 * doc/extend.texi (BPF Type Attributes) New node.
13425 Document new preserve_access_index attribute.
13426 Document new preserve_access_index builtin.
13427 * doc/invoke.texi: Document -mco-re and -mno-co-re options.
13429 2021-09-07 David Faust <david.faust@oracle.com>
13431 * config/bpf/bpf.c: Adjust includes.
13432 (bpf_handle_preserve_access_index_attribute): New function.
13433 (bpf_attribute_table): Use it here.
13434 (bpf_builtins): Add BPF_BUILTIN_PRESERVE_ACCESS_INDEX.
13435 (bpf_option_override): Handle "-mco-re" option.
13436 (bpf_asm_init_sections): New.
13437 (TARGET_ASM_INIT_SECTIONS): Redefine.
13438 (bpf_file_end): New.
13439 (TARGET_ASM_FILE_END): Redefine.
13440 (bpf_init_builtins): Add "__builtin_preserve_access_index".
13441 (bpf_core_compute, bpf_core_get_index): New.
13442 (is_attr_preserve_access): New.
13443 (bpf_expand_builtin): Handle new builtins.
13444 (bpf_core_newdecl, bpf_core_is_maybe_aggregate_access): New.
13445 (bpf_core_walk): New.
13446 (bpf_resolve_overloaded_builtin): New.
13447 (TARGET_RESOLVE_OVERLOADED_BUILTIN): Redefine.
13448 (handle_attr): New.
13449 (pass_bpf_core_attr): New RTL pass.
13450 * config/bpf/bpf-passes.def: New file.
13451 * config/bpf/bpf-protos.h (make_pass_bpf_core_attr): New.
13452 * config/bpf/coreout.c: New file.
13453 * config/bpf/coreout.h: Likewise.
13454 * config/bpf/t-bpf (TM_H): Add $(srcdir)/config/bpf/coreout.h.
13455 (coreout.o): New rule.
13456 (PASSES_EXTRA): Add $(srcdir)/config/bpf/bpf-passes.def.
13457 * config.gcc (bpf): Add coreout.h to extra_headers.
13458 Add coreout.o to extra_objs.
13459 Add $(srcdir)/config/bpf/coreout.c to target_gtfiles.
13461 2021-09-07 David Faust <david.faust@oracle.com>
13463 * btfout.c (get_btf_id): Function is no longer static.
13464 * ctfc.h: Expose it here.
13466 2021-09-07 David Faust <david.faust@oracle.com>
13468 * ctfc.c (ctf_lookup_tree_type): New function.
13469 * ctfc.h: Likewise.
13471 2021-09-07 David Faust <david.faust@oracle.com>
13473 * ctfc.c (ctf_dtd_lookup): Function is no longer static.
13474 * ctfc.h: Analogous change.
13476 2021-09-07 David Faust <david.faust@oracle.com>
13478 * dwarf2out.c (lookup_type_die): Function is no longer static.
13479 * dwarf2out.h: Expose it here.
13481 2021-09-07 Indu Bhagat <indu.bhagat@oracle.com>
13483 * dwarf2ctf.c (ctf_debug_finalize): Make it static.
13484 (ctf_debug_early_finish): New definition.
13485 (ctf_debug_finish): Likewise.
13486 * dwarf2ctf.h (ctf_debug_finalize): Remove declaration.
13487 (ctf_debug_early_finish): New declaration.
13488 (ctf_debug_finish): Likewise.
13489 * dwarf2out.c (dwarf2out_finish): Invoke ctf_debug_finish.
13490 (dwarf2out_early_finish): Invoke ctf_debug_early_finish.
13492 2021-09-07 Indu Bhagat <indu.bhagat@oracle.com>
13494 * config/bpf/bpf.c (bpf_option_override): For BPF backend, disable LTO
13495 support when compiling for CO-RE.
13496 * config/bpf/bpf.opt: Add new command line option -mco-re.
13498 2021-09-07 Indu Bhagat <indu.bhagat@oracle.com>
13500 * flag-types.h (enum debug_info_type): Add new enum
13501 DINFO_TYPE_BTF_WITH_CORE.
13502 (BTF_WITH_CORE_DEBUG): New bitmask.
13503 * flags.h (btf_with_core_debuginfo_p): New declaration.
13504 * opts.c (btf_with_core_debuginfo_p): New definition.
13506 2021-09-07 Jason Merrill <jason@redhat.com>
13508 * tree.h (error_operand_p): Change to inline function.
13510 2021-09-07 Aldy Hernandez <aldyh@redhat.com>
13512 * tree-ssa-threadedge.c (forwarder_block_p): Rename to...
13513 (empty_block_with_phis_p): ...this.
13514 (potentially_threadable_block): Same.
13515 (jump_threader::thread_through_normal_block): Same.
13517 2021-09-07 Eric Botcazou <ebotcazou@adacore.com>
13520 * dwarf2out.c (mark_base_types): New overloaded function.
13521 (dwarf2out_early_finish): Invoke it on the COMDAT type list as well
13522 as the compilation unit, and call move_marked_base_types afterward.
13524 2021-09-07 H.J. Lu <hjl.tools@gmail.com>
13527 * config/i386/i386-expand.c (ix86_expand_convert_uns_sisf_sse):
13529 (ix86_expand_vector_convert_uns_vsivsf): Likewise.
13531 2021-09-07 Richard Biener <rguenther@suse.de>
13533 PR tree-optimization/102226
13534 * tree-vect-loop.c (vect_transform_cycle_phi): Record
13535 the converted value for the epilogue PHI use.
13537 2021-09-07 Martin Liska <mliska@suse.cz>
13539 PR gcov-profile/80223
13540 * ipa-inline.c (can_inline_edge_p): Similarly to sanitizer
13541 options, do not inline when no_profile_instrument_function
13542 attributes are different in early inliner. It's fine to inline
13543 it after PGO instrumentation.
13545 2021-09-07 Richard Biener <rguenther@suse.de>
13547 PR tree-optimization/101555
13548 * tree-ssa-pre.c (translate_vuse_through_block): Do not
13549 perform an alias walk to determine the validity of the
13550 mem at the start of the block which is already guaranteed
13551 by means of prune_clobbered_mems.
13552 (phi_translate_1): Pass edge to translate_vuse_through_block.
13554 2021-09-07 Xionghu Luo <luoxhu@linux.ibm.com>
13557 * config/rs6000/rs6000.md (fmod<mode>3): New define_expand.
13558 (remainder<mode>3): Likewise.
13560 2021-09-07 YunQiang Su <yunqiang.su@cipunited.com>
13562 * config/mips/mips.c (mips_file_start): add .module for
13565 2021-09-06 Roger Sayle <roger@nextmovesoftware.com>
13567 * wide-int.cc (wi::clz): Reorder tests to ensure the result
13568 is zero for all negative values.
13570 2021-09-06 Tobias Burnus <tobias@codesourcery.com>
13572 * doc/invoke.texi (-foffload-options): Fix @opindex.
13574 2021-09-06 H.J. Lu <hjl.tools@gmail.com>
13577 * config/i386/i386-expand.c (ix86_split_xorsign): Use operands[2].
13578 * config/i386/i386.md (@xorsign<mode>3_1): Add non-destructive
13579 source alternative for AVX.
13581 2021-09-06 liuhongt <hongtao.liu@intel.com>
13583 PR middle-end/102182
13584 * optabs.c (expand_fix): Add from1 to avoid from being
13587 2021-09-06 Eric Botcazou <ebotcazou@adacore.com>
13589 * dwarf2out.c (modified_type_die): Deal with all array types earlier
13590 and use local variable consistently throughout the function.
13592 2021-09-06 Jakub Jelinek <jakub@redhat.com>
13594 PR tree-optimization/102207
13595 * match.pd: Don't demote operands of IFN_{ADD,SUB,MUL}_OVERFLOW if they
13596 were promoted from signed to wider unsigned type.
13598 2021-09-06 Andrew Pinski <apinski@marvell.com>
13600 PR tree-optimization/63184
13601 * match.pd: Add simplification of pointer_diff of two pointer_plus
13602 with addr_expr in the first operand of each pointer_plus.
13603 Add simplificatoin of ne/eq of two pointer_plus with addr_expr
13604 in the first operand of each pointer_plus.
13606 2021-09-06 Richard Biener <rguenther@suse.de>
13608 PR tree-optimization/102176
13609 * tree-vect-slp.c (vect_slp_gather_vectorized_scalar_stmts):
13611 (vect_bb_slp_scalar_cost): Use the computed set of
13612 vectorized scalar stmts instead of relying on the out-of-date
13613 and not accurate PURE_SLP_STMT.
13614 (vect_bb_vectorization_profitable_p): Compute the set
13615 of vectorized scalar stmts.
13617 2021-09-05 Aldy Hernandez <aldyh@redhat.com>
13619 * gimple-range-path.cc (path_range_query::range_of_stmt): Remove
13620 GIMPLE_COND special casing.
13621 (path_range_query::range_defined_in_block): Use range_of_stmt
13622 instead of calling fold_range directly.
13624 2021-09-05 Aldy Hernandez <aldyh@redhat.com>
13626 * gimple-range-path.cc (path_range_query::range_of_expr): Set
13627 m_undefined_path when appropriate.
13628 (path_range_query::internal_range_of_expr): Copy from range_of_expr.
13629 (path_range_query::unreachable_path_p): New.
13630 (path_range_query::precompute_ranges): Set m_undefined_path.
13631 * gimple-range-path.h (path_range_query::unreachable_path_p): New.
13632 (path_range_query::internal_range_of_expr): New.
13633 * tree-ssa-threadbackward.c (back_threader::find_taken_edge_cond):
13634 Use unreachable_path_p.
13636 2021-09-05 Aldy Hernandez <aldyh@redhat.com>
13638 * tree-ssa-threadbackward.c (back_threader::maybe_register_path):
13639 Remove argument and call find_taken_edge.
13640 (back_threader::resolve_phi): Do not calculate taken edge before
13641 calling maybe_register_path.
13642 (back_threader::find_paths_to_names): Same.
13644 2021-09-05 Jeff Law <jlaw@localhost.localdomain>
13646 * config/h8300/h8300.md (QHSI2 mode iterator): New mode iterator.
13647 * config/h8300/testcompare.md (store_c): Update name, use new
13649 (store_neg_c, store_shifted_c): New patterns.
13651 2021-09-03 Segher Boessenkool <segher@kernel.crashing.org>
13654 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): On ELFv2 use r11
13655 instead of r12 for CR save, in all cases.
13657 2021-09-03 Andrew Pinski <apinski@marvell.com>
13659 * config/aarch64/aarch64-sve-builtins.cc (register_vector_type):
13660 Handle error_mark_node as the type of the type_decl.
13662 2021-09-03 Andrew Pinski <apinski@marvell.com>
13664 * config/aarch64/aarch64-builtins.c (struct aarch64_simd_type_info):
13666 (aarch64_simd_types): Likewise.
13667 (aarch64_simd_intOI_type_node): Likewise.
13668 (aarch64_simd_intCI_type_node): Likewise.
13669 (aarch64_simd_intXI_type_node): Likewise.
13670 * config/aarch64/aarch64.h (aarch64_fp16_type_node): Likewise.
13671 (aarch64_fp16_ptr_type_node): Likewise.
13672 (aarch64_bf16_type_node): Likewise.
13673 (aarch64_bf16_ptr_type_node): Likewise.
13675 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
13677 * range-op.cc (operator_minus::op1_op2_relation_effect): Abstract
13679 (minus_op1_op2_relation_effect): ...here.
13680 (class operator_pointer_diff): New.
13681 (operator_pointer_diff::op1_op2_relation_effect): Call
13682 minus_op1_op2_relation_effect.
13683 (integral_table::integral_table): Add entry for POINTER_DIFF_EXPR.
13685 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
13687 * tree-ssa-threadbackward.c (back_threader::thread_through_all_blocks):
13688 Add may_peel_loop_headers.
13689 (back_threader_registry::thread_through_all_blocks): Same.
13690 (try_thread_blocks): Pass may_peel_loop_headers argument.
13691 (pass_early_thread_jumps::execute): Same.
13693 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
13695 * tree-ssa-threadedge.c (has_phis_p): New.
13696 (forwarder_block_p): New.
13697 (potentially_threadable_block): Call forwarder_block_p.
13698 (jump_threader::thread_around_empty_blocks): Call has_phis_p.
13699 (jump_threader::thread_through_normal_block): Call
13702 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
13704 * tree-ssa-threadbackward.c (back_threader::dump): New.
13705 (back_threader::debug): New.
13706 (back_threader_profitability::profitable_path_p): Dump blocks
13707 even if we are bailing early.
13709 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
13711 * tree-ssa-threadupdate.c (cancel_thread): New.
13712 (jump_thread_path_registry::thread_block_1): Use cancel_thread.
13713 (jump_thread_path_registry::mark_threaded_blocks): Same.
13714 (jump_thread_path_registry::register_jump_thread): Same.
13716 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
13718 * tree-ssa-threadedge.c (jt_state::push): Only call methods for
13719 which objects are available.
13720 (jt_state::pop): Same.
13721 (jt_state::register_equiv): Same.
13722 (jt_state::register_equivs_on_edge): Same.
13724 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
13726 * tree-ssa-threadedge.c (jump_threader::thread_across_edge):
13727 Move pop until after a thread is registered.
13729 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
13731 * tree-ssa-threadupdate.c (debug): New.
13733 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
13735 * gimple-range-trace.cc (push_dump_file::push_dump_file): New.
13736 (push_dump_file::~push_dump_file): New.
13737 (dump_ranger): Change dump_file temporarily while dumping
13739 * gimple-range-trace.h (class push_dump_file): New.
13741 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
13743 * gimple-range-trace.cc (debug_seed_ranger): Remove static.
13744 (dump_ranger): Dump function name.
13746 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
13748 * gimple-range-path.cc (path_range_query::range_defined_in_block):
13749 Adjust for non-null.
13750 (path_range_query::adjust_for_non_null_uses): New.
13751 (path_range_query::precompute_ranges): Call
13752 adjust_for_non_null_uses.
13753 * gimple-range-path.h: Add m_non_null and
13754 adjust_for_non_null_uses.
13756 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
13758 * gimple-range-path.cc (path_range_query::dump): Dump path
13760 (path_range_query::precompute_ranges): Dump entire path.
13762 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
13764 * value-relation.cc (relation_oracle::debug): New.
13765 * value-relation.h (relation_oracle::debug): New.
13767 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
13769 * tree-ssa-loop-ch.c: Remove unnecessary include file.
13771 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
13773 * gimple-range-fold.cc (fold_using_range::postfold_gcond_edges):
13774 Skip statements with no defining BB.
13775 * gimple-range-path.cc (path_range_query::range_defined_in_block):
13776 Do not get confused by statements with no defining BB.
13778 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
13780 * gimple-range-fold.cc (adjust_imagpart_expr): Move from
13781 gimple_range_adjustment. Add support for constants.
13782 (adjust_realpart_expr): New.
13783 (gimple_range_adjustment): Move IMAGPART_EXPR code to
13784 adjust_imagpart_expr.
13785 * range-op.cc (integral_table::integral_table): Add entry for
13788 2021-09-03 Jakub Jelinek <jakub@redhat.com>
13790 * omp-expand.c (expand_omp_atomic_pipeline): Use
13791 IFN_ATOMIC_COMPARE_EXCHANGE instead of
13792 BUILT_IN_SYNC_VAL_COMPARE_AND_SWAP_? so that memory order
13795 2021-09-03 Jakub Jelinek <jakub@redhat.com>
13798 * tree.h (DECL_FIELD_ABI_IGNORED): Changed into rvalue only macro
13799 that is false if DECL_BIT_FIELD.
13800 (SET_DECL_FIELD_ABI_IGNORED, DECL_FIELD_CXX_ZERO_WIDTH_BIT_FIELD,
13801 SET_DECL_FIELD_CXX_ZERO_WIDTH_BIT_FIELD): Define.
13802 * tree-streamer-out.c (pack_ts_decl_common_value_fields): For
13803 DECL_BIT_FIELD stream DECL_FIELD_CXX_ZERO_WIDTH_BIT_FIELD instead
13804 of DECL_FIELD_ABI_IGNORED.
13805 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
13806 SET_DECL_FIELD_ABI_IGNORED instead of writing to
13807 DECL_FIELD_ABI_IGNORED and for DECL_BIT_FIELD use
13808 SET_DECL_FIELD_CXX_ZERO_WIDTH_BIT_FIELD instead.
13809 * lto-streamer-out.c (hash_tree): For DECL_BIT_FIELD hash
13810 DECL_FIELD_CXX_ZERO_WIDTH_BIT_FIELD instead of DECL_FIELD_ABI_IGNORED.
13812 2021-09-03 liuhongt <hongtao.liu@intel.com>
13815 * config/i386/amxbf16intrin.h : Remove macro check for __AMX_BF16__.
13816 * config/i386/amxint8intrin.h : Remove macro check for __AMX_INT8__.
13817 * config/i386/amxtileintrin.h : Remove macro check for __AMX_TILE__.
13819 2021-09-02 Martin Sebor <msebor@redhat.com>
13821 PR tree-optimization/17506
13823 * tree-ssa-uninit.c (warn_uninit): Remove conditional guarding note.
13825 2021-09-02 Richard Biener <rguenther@suse.de>
13827 * tree-ssa-loop-im.c (fill_always_executed_in_1): Refine
13828 fix for PR78185 and continue processing when leaving
13829 finite inner loops.
13831 2021-09-02 Jakub Jelinek <jakub@redhat.com>
13833 PR tree-optimization/99591
13834 * match.pd: Demote operands of IFN_{ADD,SUB,MUL}_OVERFLOW if they
13837 2021-09-02 Richard Biener <rguenther@suse.de>
13840 2021-09-02 Richard Biener <rguenther@suse.de>
13842 PR tree-optimization/102155
13843 * tree-ssa-loop-im.c (fill_always_executed_in_1): Iterate
13844 over a part of the RPO array and do not recurse here.
13845 Dump blocks marked as always executed.
13846 (fill_always_executed_in): Walk over the RPO array and
13847 process loops whose header we run into.
13848 (loop_invariant_motion_in_fun): Compute the first RPO
13849 using rev_post_order_and_mark_dfs_back_seme in iteration
13850 order and pass that to fill_always_executed_in.
13852 2021-09-02 liuhongt <hongtao.liu@intel.com>
13854 * config/i386/i386-modes.def (FLOAT_MODE): Define ieee HFmode.
13855 * config/i386/i386.c (enum x86_64_reg_class): Add
13856 X86_64_SSEHF_CLASS.
13857 (merge_classes): Handle X86_64_SSEHF_CLASS.
13858 (examine_argument): Ditto.
13859 (construct_container): Ditto.
13860 (classify_argument): Ditto, and set HFmode/HCmode to
13861 X86_64_SSEHF_CLASS.
13862 (function_value_32): Return _FLoat16/Complex Float16 by
13864 (function_value_64): Return _Float16/Complex Float16 by SSE
13866 (ix86_print_operand): Handle CONST_DOUBLE HFmode.
13867 (ix86_secondary_reload): Require gpr as intermediate register
13868 to store _Float16 from sse register when sse4 is not
13870 (ix86_libgcc_floating_mode_supported_p): Enable _FLoat16 under
13872 (ix86_scalar_mode_supported_p): Ditto.
13873 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Defined.
13874 * config/i386/i386.h (VALID_SSE2_REG_MODE): Add HFmode.
13875 (VALID_INT_MODE_P): Add HFmode and HCmode.
13876 * config/i386/i386.md (*pushhf_rex64): New define_insn.
13878 (*movhf_internal): Ditto.
13879 * doc/extend.texi (Half-Precision Floating Point): Documemt
13882 2021-09-02 Richard Biener <rguenther@suse.de>
13884 PR tree-optimization/102155
13885 * tree-ssa-loop-im.c (fill_always_executed_in_1): Iterate
13886 over a part of the RPO array and do not recurse here.
13887 Dump blocks marked as always executed.
13888 (fill_always_executed_in): Walk over the RPO array and
13889 process loops whose header we run into.
13890 (loop_invariant_motion_in_fun): Compute the first RPO
13891 using rev_post_order_and_mark_dfs_back_seme in iteration
13892 order and pass that to fill_always_executed_in.
13894 2021-09-02 YunQiang Su <syq@debian.org>
13897 2021-08-31 YunQiang Su <yunqiang.su@cipunited.com>
13899 * config/mips/mips.c (mips_module_isa_name): New.
13900 mips_file_start: add .module mipsREV to all asm output
13902 2021-09-01 Jeff Law <jlaw@localhost.localdomain>
13904 PR tree-optimization/102152
13905 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Reduce a vector
13906 comparison to a scalar comparison before calling
13907 update_stmt_if_modified.
13909 2021-09-01 Andrew Pinski <apinski@marvell.com>
13912 * config/aarch64/aarch64.c (aarch64_expand_setmem):
13913 Check STRICT_ALIGNMENT before creating an overlapping
13916 2021-09-01 Martin Sebor <msebor@redhat.com>
13918 * gimple-ssa-warn-access.cc (get_size_range): Add argument.
13919 (check_access): Pass additional argument.
13920 (check_memop_access): Remove template and make a member function.
13921 (maybe_check_dealloc_call): Make a pass_waccess member function.
13922 (class pass_waccess): Add, rename, and remove members.
13923 (pass_waccess::pass_waccess): Adjust to name change.
13924 (pass_waccess::~pass_waccess): Same.
13925 (check_alloca): Make a member function.
13926 (check_alloc_size_call): Same.
13927 (check_strcat): Same.
13928 (check_strncat): Same.
13929 (check_stxcpy): Same.
13930 (check_stxncpy): Same.
13931 (check_strncmp): Same.
13932 (maybe_warn_rdwr_sizes): Rename...
13933 (pass_waccess::maybe_check_access_sizes): ...to this.
13934 (pass_waccess::check_call): Adjust to name changes.
13935 (pass_waccess::maybe_check_dealloc_call): Make a pass_waccess member
13937 (pass_waccess::execute): Adjust to name changes.
13938 * gimple-ssa-warn-access.h (check_memop_access): Remove.
13939 * pointer-query.cc (access_ref::phi): Handle null pointer.
13940 (access_ref::inform_access): Same.
13941 (pointer_query::put_ref): Modify a cached value, not a copy of it.
13942 (pointer_query::dump): New function.
13943 (compute_objsize_r): Avoid overwriting access_ref::bndrng. Cache
13945 * pointer-query.h (pointer_query::dump): Declare.
13946 * tree-ssa-strlen.c (get_range): Simplify. Use function query.
13947 (dump_strlen_info): Use function query.
13948 (printf_strlen_execute): Factor code out into pointer_query::put_ref.
13950 2021-09-01 Thomas Schwinge <thomas@codesourcery.com>
13952 * tree.c (walk_tree_1) <OMP_CLAUSE>: Simplify.
13954 2021-09-01 Iain Sandoe <iain@sandoe.co.uk>
13956 * doc/extend.texi: Document unavailable attribute.
13957 * print-tree.c (print_node): Handle unavailable attribute.
13958 * tree-core.h (struct tree_base): Add a bit to carry unavailability.
13959 * tree.c (error_unavailable_use): New.
13960 * tree.h (TREE_UNAVAILABLE): New.
13961 (error_unavailable_use): New.
13963 2021-09-01 Jakub Jelinek <jakub@redhat.com>
13965 PR tree-optimization/102124
13966 * tree-vect-patterns.c (vect_recog_widen_op_pattern): For ORIG_CODE
13967 MINUS_EXPR, if itype is unsigned with smaller precision than type,
13968 add an extra cast to signed variant of itype to ensure sign-extension.
13970 2021-09-01 Martin Liska <mliska@suse.cz>
13972 * graph.c (draw_cfg_node_succ_edges): Do not color fallthru
13973 edges and rather use colors for TRUE and FALSE edges.
13975 2021-09-01 Richard Biener <rguenther@suse.de>
13977 PR tree-optimization/93491
13978 * tree-ssa-pre.c (compute_avail): Set BB_MAY_NOTRETURN
13979 after processing the stmt itself. Do not consider
13980 pure functions possibly not returning. Properly avoid
13981 adding possibly trapping calls to EXP_GEN when there's
13982 a preceeding possibly not returning call.
13983 * tree-ssa-sccvn.c (vn_reference_may_trap): Conservatively
13986 2021-09-01 Richard Biener <rguenther@suse.de>
13988 PR tree-optimization/102139
13989 * tree-vectorizer.h (vec_base_alignments): Adjust hash-map
13990 type to record a std::pair of the stmt-info and the innermost
13992 (dr_vec_info::group): New member.
13993 * tree-vect-data-refs.c (vect_record_base_alignment): Adjust.
13994 (vect_compute_data_ref_alignment): Verify the recorded
13995 base alignment can be used.
13996 (data_ref_pair): Remove.
13997 (dr_group_sort_cmp): Adjust.
13998 (vect_analyze_data_ref_accesses): Store the group-ID in the
13999 dr_vec_info and operate on a vector of dr_vec_infos.
14001 2021-09-01 YunQiang Su <yunqiang.su@cipunited.com>
14003 * read-md.c (md_reader::handle_enum): support value assignation.
14004 * doc/md.texi: record define_c_enum value assignation support.
14006 2021-09-01 Jakub Jelinek <jakub@redhat.com>
14008 PR tree-optimization/102141
14009 * gimple-ssa-store-merging.c (bswap_view_convert): Add BEFORE
14010 argument. If false, emit stmts after gsi instead of before, and
14012 (bswap_replace): Adjust callers. When converting output of bswap,
14013 emit VIEW_CONVERT prepratation stmts after a copy of gsi instead
14016 2021-09-01 liuhongt <hongtao.liu@intel.com>
14018 * emit-rtl.c (validate_subreg): Get rid of all float-int
14021 2021-09-01 liuhongt <hongtao.liu@intel.com>
14024 2021-08-30 liuhongt <hongtao.liu@intel.com>
14026 * expmed.c (extract_bit_field_1): Make sure we're playing with
14027 integral modes before call extract_integral_bit_field.
14028 (extract_integral_bit_field): Add a parameter of type
14029 scalar_int_mode which corresponds to of tmode.
14030 And call extract_and_convert_fixed_bit_field instead of
14031 extract_fixed_bit_field and convert_extracted_bit_field.
14032 (extract_and_convert_fixed_bit_field): New function, it's a
14033 combination of extract_fixed_bit_field and
14034 convert_extracted_bit_field.
14036 2021-08-31 Thomas Schwinge <thomas@codesourcery.com>
14038 * tree.c (walk_tree_1) <OMP_CLAUSE_TILE>: Handle three operands.
14040 2021-08-31 Thomas Schwinge <thomas@codesourcery.com>
14042 * omp-general.h (omp_is_reference): Rename to...
14043 (omp_privatize_by_reference): ... this. Adjust all users...
14044 * omp-general.c: ... here, ...
14045 * gimplify.c: ... here, ...
14046 * omp-expand.c: ... here, ...
14047 * omp-low.c: ... here.
14049 2021-08-31 Martin Sebor <msebor@redhat.com>
14051 * gimple-ssa-warn-access.cc (maybe_warn_alloc_args_overflow): Test
14052 pointer element for equality to zero, not that of the cotaining
14055 2021-08-31 Martin Sebor <msebor@redhat.com>
14057 * gcc-rich-location.h (gcc_rich_location): Make ctor explicit.
14059 2021-08-31 Martin Sebor <msebor@redhat.com>
14061 * function.h (function): Add comments.
14062 (get_range_query): Same. Add attribute returns nonnull.
14064 2021-08-31 Roger Sayle <roger@nextmovesoftware.com>
14066 * expr.c (convert_modes): Don't use subreg_promoted_mode on a
14067 SUBREG if it can't be guaranteed to a SUBREG_PROMOTED_VAR_P set.
14068 Instead use the standard (safer) is_a <scalar_int_mode> idiom.
14070 2021-08-31 Jeff Law <jlaw@localhost.localdomain>
14072 * config.gcc (cris-*-elf, cris-*-none): Remove dbxelf.h from
14074 (m32r-*-elf, m32rle-*-elf, m32r-*-linux): Likewise.
14075 (mn10300-*-*, am33_2.0-*-linux*): Likewise.
14076 (xtensa*-*-elf, xtensa*-*-linux, xtensa*-*-uclinux): Likewise.
14077 (m32c-*-elf*, m32c-*-rtems*): Likewise.
14078 * config/cris/cris.h (DBX_NO_XREFS): Remove.
14079 (DBX_CONTIN_LENGTH, DBX_CONTIN_CHAR): Likewise.
14080 * config/m32r/m32r.h (DBXOUT_SOURCE_LINE): Likewise.
14081 (DBX_DEBUGGING_INFO, DBX_CONTIN_LENGTH): Likewise.
14082 * config/mn10300/mn10300.h (DEFAULT_GDB_EXTENSIONS): Likewise.
14083 * config/mn10300/linux.h (DBX_REGISTER_NAMES): Likewise.
14085 2021-08-31 Marcel Vollweiler <marcel@codesourcery.com>
14087 * gimplify.c (gimplify_scan_omp_clauses): Error handling. 'ancestor' only
14088 allowed on target constructs and only with particular other clauses.
14089 * omp-expand.c (expand_omp_target): Output of 'sorry, not supported' if
14090 'ancestor' is used.
14091 * omp-low.c (check_omp_nesting_restrictions): Error handling. No nested OpenMP
14092 structs when 'ancestor' is used.
14093 (scan_omp_1_stmt): No usage of OpenMP runtime routines in a target region when
14094 'ancestor' is used.
14095 * tree-pretty-print.c (dump_omp_clause): Append 'ancestor'.
14096 * tree.h (OMP_CLAUSE_DEVICE_ANCESTOR): Define macro.
14098 2021-08-31 Roger Sayle <roger@nextmovesoftware.com>
14100 * expr.c (convert_modes): Preserve SUBREG_PROMOTED_VAR_P when
14101 creating a (wider) partial subreg from a SUBREG_PROMOTED_VAR_P
14103 * simplify-rtx.c (simplify_unary_operation_1) [SIGN_EXTEND]:
14104 Likewise, preserve SUBREG_PROMOTED_VAR_P when creating a (wider)
14105 partial subreg from a SUBREG_PROMOTED_VAR_P subreg. Generate
14106 SIGN_EXTEND of the SUBREG_REG when a subreg would be paradoxical.
14107 [ZERO_EXTEND]: Likewise, preserve SUBREG_PROMOTED_VAR_P when
14108 creating a (wider) partial subreg from a SUBREG_PROMOTED_VAR_P
14109 subreg. Generate ZERO_EXTEND of the SUBREG_REG when a subreg
14110 would be paradoxical.
14112 2021-08-31 Roger Sayle <roger@nextmovesoftware.com>
14114 * combine.c (combine_simplify_rtx): Avoid converting an explicit
14115 TRUNCATE into a lowpart SUBREG on !TRULY_NOOP_TRUNCATION targets.
14116 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
14118 2021-08-31 Richard Biener <rguenther@suse.de>
14120 PR tree-optimization/102142
14121 * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Fix
14122 condition under which to unset the visited flag.
14124 2021-08-31 Richard Biener <rguenther@suse.de>
14126 PR middle-end/102129
14127 * tree-ssa-ter.c (find_replaceable_in_bb): Do not move
14128 possibly trapping expressions across calls.
14130 2021-08-31 Jakub Jelinek <jakub@redhat.com>
14132 PR tree-optimization/102134
14133 * tree-ssa-ccp.c (bit_value_binop) <case RSHIFT_EXPR>: If sgn is
14134 UNSIGNED and r1val | r1mask has MSB set, ensure lzcount doesn't
14137 2021-08-31 Andrew Pinski <apinski@marvell.com>
14140 * collect-utils.c (setup_signals): New declaration.
14141 * collect-utils.h (setup_signals): New function.
14142 * collect2.c (handler): Delete.
14143 (main): Instead of manually setting up the signals,
14144 just call setup_signals.
14145 * lto-wrapper.c (main): Likewise.
14147 2021-08-31 Andrew Pinski <apinski@marvell.com>
14150 * config/i386/i386-protos.h (x86_output_aligned_bss):
14151 Change align argument to unsigned type.
14152 (x86_elf_aligned_decl_common): Likewise.
14153 * config/i386/i386.c (x86_elf_aligned_decl_common): Likewise.
14154 (x86_output_aligned_bss): Likewise.
14156 2021-08-31 YunQiang Su <yunqiang.su@cipunited.com>
14158 * config/mips/mips.c (mips_module_isa_name): New.
14159 mips_file_start: add .module mipsREV to all asm output
14161 2021-08-31 YunQiang Su <yunqiang.su@cipunited.com>
14163 * config/mips/mips.h (struct mips_cpu_info): define enum mips_isa;
14164 use enum instead of int for 'isa' member.
14165 * config.gcc, config/mips/mips.c, config/mips/mips-cpus.def,
14166 config/mips/netbsd.h: replace hardcoded numbers with enum.
14168 2021-08-31 liuhongt <hongtao.liu@intel.com>
14170 * config/i386/sse.md (*<avx512>_ucmp<mode>3_1): Change from
14171 define_split to define_insn_and_split.
14172 (*avx2_eq<mode>3): Removed.
14173 (<avx512>_eq<mode>3<mask_scalar_merge_name>): Adjust pattern
14174 (<avx512>_eq<mode>3<mask_scalar_merge_name>_1): Rename to ..
14175 (*<avx512>_eq<mode>3<mask_scalar_merge_name>_1): .. this, and
14177 (*avx2_gt<mode>3): Removed.
14178 (<avx512>_gt<mode>3<mask_scalar_merge_name>): Change from
14179 define_insn to define_expand, and adjust pattern.
14180 (UNSPEC_MASKED_EQ, UNSPEC_MASKED_GT): Removed.
14182 2021-08-30 David Malcolm <dmalcolm@redhat.com>
14185 * Makefile.in (ANALYZER_OBJS): Add analyzer/call-info.o.
14187 2021-08-30 Jason Merrill <jason@redhat.com>
14189 * doc/invoke.texi: Document -Wmissing-requires.
14191 2021-08-30 Bill Schmidt <wschmidt@linux.ibm.com>
14193 * config/rs6000/rs6000-call.c (rs6000_init_builtins): Remove
14194 TARGET_EXTRA_BUILTINS guard.
14196 2021-08-30 Bill Schmidt <wschmidt@linux.ibm.com>
14198 * config/rs6000/rs6000-call.c (rs6000_init_builtins): Change
14199 initialization of V2DI_type_node and unsigned_V2DI_type_node.
14201 2021-08-30 Bill Schmidt <wschmidt@linux.ibm.com>
14203 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Use the new
14204 decl when new_builtins_are_live.
14205 * config/rs6000/rs6000-builtin-new.def (__builtin_cfstring): New
14208 2021-08-30 Pat Haugen <pthaugen@linux.ibm.com>
14210 * config/rs6000/rs6000-cpus.def (ISA_3_1_MASKS_SERVER): Add
14211 OPTION_MASK_P10_FUSION_2STORE.
14212 (POWERPC_MASKS): Likewise.
14213 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
14214 store fusion for Power10.
14215 (is_fusable_store): New.
14216 (power10_sched_reorder): Likewise.
14217 (rs6000_sched_reorder): Do Power10 specific reordering.
14218 (rs6000_sched_reorder2): Likewise.
14219 * config/rs6000/rs6000.opt: Add new option.
14221 2021-08-30 Richard Biener <rguenther@suse.de>
14223 PR tree-optimization/102128
14224 * tree-vect-slp.c (vect_bb_vectorization_profitable_p):
14225 Move scanning for if-converted scalar code to the caller
14226 and instead delay clearing the visited flag for profitable
14228 (vect_slp_region): Cost all subgraphs before scheduling.
14229 For if-converted BB vectorization scan for scalar COND_EXPRs
14230 and do not vectorize if any found and the cost model is
14233 2021-08-30 Richard Biener <rguenther@suse.de>
14235 * common.opt (fexceptions): Mark
14236 EnabledBy(fnon-call-exceptions).
14237 * doc/invoke.texi (fnon-call-exceptions): Document this
14238 enables -fexceptions.
14240 2021-08-30 Sebastian Huber <sebastian.huber@embedded-brains.de>
14242 * tsystem.h (abort): Define abort() if inhibit_libc is defined and it
14243 is not already defined.
14245 2021-08-30 liuhongt <hongtao.liu@intel.com>
14247 * expmed.c (extract_bit_field_1): Make sure we're playing with
14248 integral modes before call extract_integral_bit_field.
14249 (extract_integral_bit_field): Add a parameter of type
14250 scalar_int_mode which corresponds to of tmode.
14251 And call extract_and_convert_fixed_bit_field instead of
14252 extract_fixed_bit_field and convert_extracted_bit_field.
14253 (extract_and_convert_fixed_bit_field): New function, it's a
14254 combination of extract_fixed_bit_field and
14255 convert_extracted_bit_field.
14257 2021-08-29 Iain Sandoe <iain@sandoe.co.uk>
14259 * config/darwin.c (darwin_libc_has_function): Do not run
14260 the checks for x86 or modern Darwin. Make sure that there
14261 is a value set for darwin_macosx_version_min before testing.
14263 2021-08-29 Iain Sandoe <iain@sandoe.co.uk>
14265 * config/i386/darwin.h (CLEAR_INSN_CACHE): New.
14267 2021-08-28 Jan Hubicka <hubicka@ucw.cz>
14269 * ipa-modref-tree.h (modref_access_node::merge): Break out
14270 logic combining offsets and logic merging ranges to ...
14271 (modref_access_node::combined_offsets): ... here
14272 (modref_access_node::update2): ... here
14273 (modref_access_node::closer_pair_p): New member function.
14274 (modref_access_node::forced_merge): New member function.
14275 (modre_ref_node::insert): Do merging when table is full.
14277 2021-08-28 YunQiang Su <yunqiang.su@cipunited.com>
14280 * config.gcc: MIPS: use N64 ABI by default if the triple end
14281 with -gnuabi64, which is used by Debian since 2013.
14283 2021-08-28 Alexandre Oliva <oliva@adacore.com>
14285 * ipa-modref.c (analyze_function): Skip debug stmts.
14286 * tree-inline.c (estimate_num_insn): Consider builtins even
14287 without a cgraph_node.
14289 2021-08-27 Jeff Law <jlaw@localhost.localdomain>
14291 * config/h8300/bitfield.md (cstore<mode>4): Remove expander.
14292 * config/h8300/h8300.c (h8300_expand_branch): Remove function.
14293 * config/h8300/h8300-protos.h (h8300_expadn_branch): Remove prototype.
14294 * config/h8300/h8300.md (eqne): New code iterator.
14295 (geultu, geultu_to_c): Similarly.
14296 * config/h8300/testcompare.md (cstore<mode>4): Dummy expander.
14297 (store_c_<mode>, store_c_i_<mode>): New define_insn_and_splits
14298 (cmp<mode>_c): New pattern
14300 2021-08-27 Jeff Law <jlaw@localhost.localdomain>
14302 * tree-ssa-dom.c (reduce_vector_comparison_to_scalar_comparison): New
14304 (dom_opt_dom_walker::optimize_stmt): Use it.
14306 2021-08-27 Iain Sandoe <iain@sandoe.co.uk>
14308 * config/darwin.c (finalize_ctors): Add a section-start linker-
14310 (finalize_dtors): Likewise.
14311 * config/darwin.h (MIN_LD64_INIT_TERM_START_LABELS): New.
14313 2021-08-27 Bill Schmidt <wschmidt@linux.ibm.com>
14315 * config/rs6000/rs6000-call.c (rs6000-builtins.h): New #include.
14316 (rs6000_init_builtins): Call rs6000_init_generated_builtins. Skip the
14317 old initialization logic when new builtins are enabled.
14318 * config/rs6000/rs6000-gen-builtins.c (write_decls): Rename
14319 rs6000_autoinit_builtins to rs6000_init_generated_builtins.
14320 (write_init_file): Likewise.
14322 2021-08-27 Iain Sandoe <iain@sandoe.co.uk>
14324 * configure.ac (darwin2[[0-9]]* | darwin19*): Alter use of
14325 gcc_GAS_CHECK_FEATURE to remove an extraneous parameter.
14326 (amdgcn-* | gcn-*) Likewise.
14328 2021-08-27 Anthony Sharp <anthonysharp15@gmail.com>
14330 * symbol-summary.h: Added missing template keyword.
14332 2021-08-27 Richard Biener <rguenther@suse.de>
14334 PR tree-optimization/45178
14335 * tree-ssa-dce.c (find_obviously_necessary_stmts): For
14336 infinite loops without exit do not mark control dependent
14337 edges of the latch necessary.
14339 2021-08-27 konglin1 <lingling.kong@intel.com>
14342 * config/i386/sse.md: (<avx512>scattersi<mode>): Add mask operand to
14344 (<avx512>scattersi<mode>): Likewise.
14345 (*avx512f_scattersi<VI48F:mode>): Merge mask operand to set_dest.
14346 (*avx512f_scatterdi<VI48F:mode>): Likewise
14348 2021-08-27 Kewen Lin <linkw@linux.ibm.com>
14350 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function): Add
14351 support for built-in functions MISC_BUILTIN_DIVWE, MISC_BUILTIN_DIVWEU,
14352 MISC_BUILTIN_DIVDE, MISC_BUILTIN_DIVDEU, P10_BUILTIN_CFUGED,
14353 P10_BUILTIN_CNTLZDM, P10_BUILTIN_CNTTZDM, P10_BUILTIN_PDEPD and
14354 P10_BUILTIN_PEXTD on Power10.
14356 2021-08-27 Kewen Lin <linkw@linux.ibm.com>
14358 * config/rs6000/rs6000-call.c (builtin_function_type): Add unsigned
14359 signedness for some Power10 bifs.
14361 2021-08-27 David Edelsohn <dje.gcc@gmail.com>
14364 * config/rs6000/rs6000.c (rs6000_adjust_field_align): Use
14365 computed alignment if the entire struct has attribute packed.
14367 2021-08-27 liuhongt <hongtao.liu@intel.com>
14371 * config/i386/i386.c (ix86_gimple_fold_builtin): Fold
14372 IX86_BUILTIN_SHUFPD512, IX86_BUILTIN_SHUFPS512,
14373 IX86_BUILTIN_SHUFPD256, IX86_BUILTIN_SHUFPS,
14374 IX86_BUILTIN_SHUFPS256.
14375 (ix86_masked_all_ones): New function.
14377 2021-08-26 Uroš Bizjak <ubizjak@gmail.com>
14379 * config/i386/i386.md (*btr<mode>_1): Call force_reg unconditionally.
14380 (conditional moves with memory inputs splitters): Ditto.
14381 * config/i386/sse.md (one_cmpl<mode>2): Simplify.
14383 2021-08-26 Jan Hubicka <hubicka@ucw.cz>
14385 * ipa-modref-tree.h (modref_access_node::try_merge_with): Restart
14386 search after merging.
14388 2021-08-26 Bill Schmidt <wschmidt@linux.ibm.com>
14390 * config/rs6000/rs6000-overload.def: Add remaining overloads.
14392 2021-08-26 Bill Schmidt <wschmidt@linux.ibm.com>
14394 * config/rs6000/rs6000-builtin-new.def: Add cell stanza.
14396 2021-08-26 Bill Schmidt <wschmidt@linux.ibm.com>
14398 * config/rs6000/rs6000-builtin-new.def: Add ieee128-hw, dfp,
14399 crypto, and htm stanzas.
14401 2021-08-26 Bill Schmidt <wschmidt@linux.ibm.com>
14403 * config/rs6000/rs6000-builtin-new.def: Add mma stanza.
14405 2021-08-26 Martin Sebor <msebor@redhat.com>
14407 * tree-ssa-uninit.c (warn_uninit): Refactor and simplify.
14408 (warn_uninit_phi_uses): Remove argument from calls to warn_uninit.
14409 (warn_uninitialized_vars): Same. Reduce visibility of locals.
14410 (warn_uninitialized_phi): Same.
14412 2021-08-26 Roger Sayle <roger@nextmovesoftware.com>
14414 * tree-ssa-ccp.c (get_individual_bits): Helper function to
14415 extract the individual bits from a widest_int constant (mask).
14416 (gray_code_bit_flips): New read-only table for effiently
14417 enumerating permutations/combinations of bits.
14418 (bit_value_binop) [LROTATE_EXPR, RROTATE_EXPR]: Handle rotates
14419 by unknown counts that are guaranteed less than the target
14420 precision and four or fewer unknown bits by enumeration.
14421 [LSHIFT_EXPR, RSHIFT_EXPR]: Likewise, also handle shifts by
14422 enumeration under the same conditions. Handle remaining
14423 shifts as a mask based upon the minimum possible shift value.
14425 2021-08-26 Roger Sayle <roger@nextmovesoftware.com>
14426 Richard Biener <rguenther@suse.de>
14428 * match.pd (shift transformations): Remove a redundant
14429 !POINTER_TYPE_P check.
14431 2021-08-26 Uroš Bizjak <ubizjak@gmail.com>
14434 * config/i386/i386.md (cmove reg-reg move elimination peephole2s):
14435 Set all_regs to true in the call to replace_rtx.
14437 2021-08-26 Jan Hubicka <hubicka@ucw.cz>
14439 * ipa-modref-tree.c (test_insert_search_collapse): Update test.
14440 * ipa-modref-tree.h (modref_base_node::insert): Be smarter when
14441 hiting --param modref-max-refs limit.
14442 (modref_tree:insert_base): Be smarter when hitting
14443 --param modref-max-bases limit. Add new parameter REF.
14444 (modref_tree:insert): Update.
14445 (modref_tree:merge): Update.
14446 * ipa-modref.c (read_modref_records): Update.
14448 2021-08-26 Jan Hubicka <hubicka@ucw.cz>
14450 * params.opt: (modref-max-adjustments): Add full stop.
14452 2021-08-26 Jan Hubicka <hubicka@ucw.cz>
14454 * ipa-modref-tree.h (modref_ref_node::verify): New member
14456 (modref_ref_node::insert): Use it.
14457 (modref_ref_node::try_mere_with): Fix off by one error.
14459 2021-08-26 Martin Liska <mliska@suse.cz>
14460 Stefan Kneifel <stefan.kneifel@bluewin.ch>
14462 * cgraph.h (create_version_clone_with_body): Add new parameter.
14463 * cgraphclones.c: Likewise.
14464 * multiple_target.c (create_dispatcher_calls): Do not use
14466 (create_target_clone): Likewise here.
14468 2021-08-26 Jonathan Yong <10walls@gmail.com>
14470 * doc/extend.texi: Add note about reserved priorities
14471 to the constructor attribute.
14473 2021-08-25 Martin Sebor <msebor@redhat.com>
14475 * gimple-range-cache.cc (ssa_global_cache::dump): Avoid printing
14476 range table header alone.
14477 * gimple-range.cc (gimple_ranger::export_global_ranges): Same.
14479 2021-08-25 Jan Hubicka <hubicka@ucw.cz>
14481 * doc/invoke.texi: Document --param modref-max-adjustments.
14482 * ipa-modref-tree.c (test_insert_search_collapse): Update.
14483 (test_merge): Update.
14484 * ipa-modref-tree.h (struct modref_access_node): Add adjustments;
14485 (modref_access_node::operator==): Fix handling of access ranges.
14486 (modref_access_node::contains): Constify parameter; handle also
14487 mismatched parm offsets.
14488 (modref_access_node::update): New function.
14489 (modref_access_node::merge): New function.
14490 (unspecified_modref_access_node): Update constructor.
14491 (modref_ref_node::insert_access): Add record_adjustments parameter;
14493 (modref_ref_node::try_merge_with): New private function.
14494 (modref_tree::insert): New record_adjustments parameter.
14495 (modref_tree::merge): New record_adjustments parameter.
14496 (modref_tree::copy_from): Update.
14497 * ipa-modref.c (dump_access): Dump adjustments field.
14498 (get_access): Update constructor.
14499 (record_access): Update call of insert.
14500 (record_access_lto): Update call of insert.
14501 (merge_call_side_effects): Add record_adjustments parameter.
14502 (get_access_for_fnspec): Update.
14503 (process_fnspec): Update.
14504 (analyze_call): Update.
14505 (analyze_function): Update.
14506 (read_modref_records): Update.
14507 (ipa_merge_modref_summary_after_inlining): Update.
14508 (propagate_unknown_call): Update.
14509 (modref_propagate_in_scc): Update.
14510 * params.opt (param-max-modref-adjustments=): New.
14512 2021-08-25 Michael Meissner <meissner@linux.ibm.com>
14514 * config/rs6000/vsx.md (UNSPEC_XXSPLTIDP): Rename from
14516 (xxspltiw_v4si): Use vecperm type attribute.
14517 (xxspltiw_v4si_inst): Use vecperm type attribute.
14518 (xxspltiw_v4sf_inst): Likewise.
14519 (xxspltidp_v2df): Use vecperm type attribute. Use
14520 UNSPEC_XXSPLTIDP instead of UNSPEC_XXSPLTID.
14521 (xxspltidp_v2df_inst): Likewise.
14522 (xxsplti32dx_v4si): Use vecperm type attribute.
14523 (xxsplti32dx_v4si_inst): Likewise.
14524 (xxsplti32dx_v4sf_inst): Likewise.
14525 (xxblend_<mode>): Likewise.
14526 (xxpermx): Likewise.
14527 (xxpermx_inst): Likewise.
14528 (xxeval): Likewise.
14530 2021-08-25 Lewis Hyatt <lhyatt@gmail.com>
14533 * coretypes.h (typedef diagnostic_input_charset_callback): Declare.
14534 * diagnostic.c (diagnostic_initialize_input_context): New function.
14535 * diagnostic.h (diagnostic_initialize_input_context): Declare.
14536 * input.c (default_charset_callback): New function.
14537 (file_cache::initialize_input_context): New function.
14538 (file_cache_slot::create): Added ability to convert the input
14539 according to the input context.
14540 (file_cache::file_cache): Initialize the new input context.
14541 (class file_cache_slot): Added new m_alloc_offset member.
14542 (file_cache_slot::file_cache_slot): Initialize the new member.
14543 (file_cache_slot::~file_cache_slot): Handle potentially offset buffer.
14544 (file_cache_slot::maybe_grow): Likewise.
14545 (file_cache_slot::needs_read_p): Handle NULL fp, which is now possible.
14546 (file_cache_slot::get_next_line): Likewise.
14547 * input.h (class file_cache): Added input context member.
14549 2021-08-25 Richard Biener <rguenther@suse.de>
14551 PR tree-optimization/102046
14552 * tree-vect-slp.c (vect_build_slp_tree_2): Conservatively
14553 update ->any_pattern when swapping operands.
14555 2021-08-25 Hongyu Wang <hongyu.wang@intel.com>
14558 * config/i386/i386.c (ix86_live_on_entry): Adjust comment.
14559 (ix86_decompose_address): Remove retval check for ASHIFT,
14560 allow non-canonical zero extend if AND mask covers ASHIFT
14562 (ix86_legitimate_address_p): Adjust condition for decompose.
14563 (ix86_rtx_costs): Adjust cost for lea with non-canonical
14565 Co-Authored by: Uros Bizjak <ubizjak@gmail.com>
14567 2021-08-25 Jiufu Guo <guojiufu@linux.ibm.com>
14569 PR tree-optimization/101145
14570 * tree-ssa-loop-niter.c (number_of_iterations_until_wrap):
14572 (number_of_iterations_lt): Invoke above function.
14573 (adjust_cond_for_loop_until_wrap):
14574 Merge to number_of_iterations_until_wrap.
14575 (number_of_iterations_cond): Update invokes for
14576 adjust_cond_for_loop_until_wrap and number_of_iterations_lt.
14578 2021-08-25 konglin1 <lingling.kong@intel.com>
14581 * config/i386/avx512dqintrin.h (_mm512_fpclass_ps_mask): Fix
14582 macro define in O0.
14583 (_mm512_mask_fpclass_ps_mask): Ditto.
14585 2021-08-25 Kewen Lin <linkw@linux.ibm.com>
14587 * config/rs6000/altivec.md (vec_unpacku_hi_v16qi): Remove.
14588 (vec_unpacku_hi_v8hi): Likewise.
14589 (vec_unpacku_lo_v16qi): Likewise.
14590 (vec_unpacku_lo_v8hi): Likewise.
14591 (vec_unpacku_hi_<VP_small_lc>): New define_expand.
14592 (vec_unpacku_lo_<VP_small_lc>): Likewise.
14594 2021-08-24 David Edelsohn <dje.gcc@gmail.com>
14596 * config/rs6000/aix.h (SYSTEM_IMPLICIT_EXTERN_C): Delete.
14597 * config/rs6000/aix71.h (SYSTEM_IMPLICIT_EXTERN_C): Define.
14598 * config/rs6000/aix72.h (SYSTEM_IMPLICIT_EXTERN_C): Define.
14599 * config/rs6000/aix73.h (TARGET_AIX_VERSION): Increase to 73.
14601 2021-08-24 Roger Sayle <roger@nextmovesoftware.com>
14603 PR middle-end/102031
14604 * simplify-rtx.c (simplify_truncation): When comparing precisions
14605 use "subreg_prec" variable, not "subreg_mode".
14607 2021-08-24 Bill Schmidt <wschmidt@linux.ibm.com>
14609 * config/rs6000/rs6000-builtin-new.def: Add power10 and power10-64
14612 2021-08-24 Bill Schmidt <wschmidt@linux.ibm.com>
14614 * config/rs6000/rs6000-call.c (rs6000_init_builtins): Initialize
14615 various pointer type nodes.
14616 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add enum
14617 values for various pointer types.
14618 (ptr_V16QI_type_node): New macro.
14619 (ptr_V1TI_type_node): New macro.
14620 (ptr_V2DI_type_node): New macro.
14621 (ptr_V2DF_type_node): New macro.
14622 (ptr_V4SI_type_node): New macro.
14623 (ptr_V4SF_type_node): New macro.
14624 (ptr_V8HI_type_node): New macro.
14625 (ptr_unsigned_V16QI_type_node): New macro.
14626 (ptr_unsigned_V1TI_type_node): New macro.
14627 (ptr_unsigned_V8HI_type_node): New macro.
14628 (ptr_unsigned_V4SI_type_node): New macro.
14629 (ptr_unsigned_V2DI_type_node): New macro.
14630 (ptr_bool_V16QI_type_node): New macro.
14631 (ptr_bool_V8HI_type_node): New macro.
14632 (ptr_bool_V4SI_type_node): New macro.
14633 (ptr_bool_V2DI_type_node): New macro.
14634 (ptr_bool_V1TI_type_node): New macro.
14635 (ptr_pixel_type_node): New macro.
14636 (ptr_intQI_type_node): New macro.
14637 (ptr_uintQI_type_node): New macro.
14638 (ptr_intHI_type_node): New macro.
14639 (ptr_uintHI_type_node): New macro.
14640 (ptr_intSI_type_node): New macro.
14641 (ptr_uintSI_type_node): New macro.
14642 (ptr_intDI_type_node): New macro.
14643 (ptr_uintDI_type_node): New macro.
14644 (ptr_intTI_type_node): New macro.
14645 (ptr_uintTI_type_node): New macro.
14646 (ptr_long_integer_type_node): New macro.
14647 (ptr_long_unsigned_type_node): New macro.
14648 (ptr_float_type_node): New macro.
14649 (ptr_double_type_node): New macro.
14650 (ptr_long_double_type_node): New macro.
14651 (ptr_dfloat64_type_node): New macro.
14652 (ptr_dfloat128_type_node): New macro.
14653 (ptr_ieee128_type_node): New macro.
14654 (ptr_ibm128_type_node): New macro.
14655 (ptr_vector_pair_type_node): New macro.
14656 (ptr_vector_quad_type_node): New macro.
14657 (ptr_long_long_integer_type_node): New macro.
14658 (ptr_long_long_unsigned_type_node): New macro.
14660 2021-08-24 Bill Schmidt <wschmidt@linux.ibm.com>
14662 * config/rs6000/rs6000-builtin-new.def: Add power9-vector, power9,
14663 and power9-64 stanzas.
14665 2021-08-24 Roger Sayle <roger@nextmovesoftware.com>
14666 Tom de Vries <tdevries@suse.de>
14668 * config.gcc (nvptx-*-*): Define {c,c++}_target_objs.
14669 * config/nvptx/nvptx-protos.h (nvptx_cpu_cpp_builtins): Prototype.
14670 * config/nvptx/nvptx.h (TARGET_CPU_CPP_BUILTINS): Implement with
14671 a call to the new nvptx_cpu_cpp_builtins function in nvptx-c.c.
14672 * config/nvptx/t-nvptx (nvptx-c.o): New rule.
14673 * config/nvptx/nvptx-c.c: New source file.
14674 (nvptx_cpu_cpp_builtins): Move implementation here.
14676 2021-08-24 Martin Sebor <msebor@redhat.com>
14678 PR middle-end/101600
14679 PR middle-end/101977
14680 * gimple-ssa-warn-access.cc (maybe_warn_for_bound): Tighten up
14681 the phrasing of a warning.
14682 (check_access): Use the remaining size after subtracting any offset
14683 rather than the whole object size.
14684 * pointer-query.cc (access_ref::get_ref): Clear BASE0 flag if it's
14685 clear for any nonnull PHI argument.
14686 (compute_objsize): Clear argument.
14688 2021-08-24 Bill Schmidt <wschmidt@linux.ibm.com>
14690 * config/rs6000/rs6000-builtin-new.def: Add power8-vector stanza.
14692 2021-08-24 Bill Schmidt <wschmidt@linux.ibm.com>
14694 * config/rs6000/rs6000-builtin-new.def: Add power7 and power7-64
14697 2021-08-24 Andrew MacLeod <amacleod@redhat.com>
14699 * value-relation.cc (rr_transitive_table): New.
14700 (relation_transitive): New.
14701 (value_relation::swap): Remove.
14702 (value_relation::apply_transitive): New.
14703 (relation_oracle::relation_oracle): Allocate a new tmp bitmap.
14704 (relation_oracle::register_relation): Call register_transitives.
14705 (relation_oracle::register_transitives): New.
14706 * value-relation.h (relation_oracle): Add new temporary bitmap and
14709 2021-08-24 H.J. Lu <hjl.tools@gmail.com>
14712 * config/i386/i386-expand.c (ix86_expand_vector_move): Broadcast
14713 from integer to a pseudo vector register.
14715 2021-08-24 Richard Biener <rguenther@suse.de>
14717 PR tree-optimization/100089
14718 * tree-vectorizer.h (vect_slp_bb): Rename to ...
14719 (vect_slp_if_converted_bb): ... this and get the original
14720 loop as new argument.
14721 * tree-vectorizer.c (try_vectorize_loop_1): Revert previous fix,
14722 pass original loop to vect_slp_if_converted_bb.
14723 * tree-vect-slp.c (vect_bb_vectorization_profitable_p):
14724 If orig_loop was passed scan the not vectorized stmts
14725 for COND_EXPRs and force not profitable if found.
14726 (vect_slp_region): Pass down all SLP instances to costing
14727 if orig_loop was specified.
14728 (vect_slp_bbs): Pass through orig_loop.
14729 (vect_slp_bb): Rename to ...
14730 (vect_slp_if_converted_bb): ... this and get the original
14731 loop as new argument.
14732 (vect_slp_function): Adjust.
14734 2021-08-24 Richard Earnshaw <rearnsha@arm.com>
14737 * config/arm/arm.md (attribute arch): Add fix_vlldm.
14738 (arch_enabled): Use it.
14739 * config/arm/vfp.md (lazy_store_multiple_insn): Add alternative to
14740 use when erratum mitigation is needed.
14742 2021-08-24 Richard Earnshaw <rearnsha@arm.com>
14745 * config/arm/arm.opt (mfix-cmse-cve-2021-35465): New option.
14746 * doc/invoke.texi (Arm Options): Document it.
14747 * config/arm/arm-cpus.in (quirk_vlldm): New feature bit.
14748 (ALL_QUIRKS): Add quirk_vlldm.
14749 (cortex-m33): Add quirk_vlldm.
14750 (cortex-m35p, cortex-m55): Likewise.
14751 * config/arm/arm.c (arm_option_override): Enable fix_vlldm if
14752 targetting an affected CPU and not explicitly controlled on
14755 2021-08-24 Richard Earnshaw <rearnsha@arm.com>
14757 * config/arm/vfp.md (lazy_store_multiple_insn): Rewrite as valid RTL.
14758 (lazy_load_multiple_insn): Likewise.
14760 2021-08-24 liuhongt <hongtao.liu@intel.com>
14763 * config/i386/sse.md (<avx512>_vternlog<mode><sd_maskz_name>):
14764 Enable avx512 embedded broadcast.
14765 (*<avx512>_vternlog<mode>_all): Ditto.
14766 (<avx512>_vternlog<mode>_mask): Ditto.
14768 2021-08-24 liuhongt <hongtao.liu@intel.com>
14771 * config/i386/i386.c (ix86_rtx_costs): Define cost for
14773 * config/i386/i386.h (STRIP_UNARY): New macro.
14774 * config/i386/predicates.md (reg_or_notreg_operand): New
14776 * config/i386/sse.md (*<avx512>_vternlog<mode>_all): New define_insn.
14777 (*<avx512>_vternlog<mode>_1): New pre_reload
14778 define_insn_and_split.
14779 (*<avx512>_vternlog<mode>_2): Ditto.
14780 (*<avx512>_vternlog<mode>_3): Ditto.
14781 (any_logic1,any_logic2): New code iterator.
14782 (logic_op): New code attribute.
14783 (ternlogsuffix): Extend to VNxDF and VNxSF.
14785 2021-08-24 Richard Biener <rguenther@suse.de>
14787 * doc/invoke.texi (vect-inner-loop-cost-factor): Adjust.
14788 * params.opt (--param vect-inner-loop-cost-factor): Adjust
14790 * tree-vect-loop.c (vect_analyze_loop_form): Initialize
14791 inner_loop_cost_factor to the minimum of the estimated number
14792 of iterations of the inner loop and vect-inner-loop-cost-factor.
14794 2021-08-24 Roger Sayle <roger@nextmovesoftware.com>
14795 Richard Biener <rguenther@suse.de>
14797 * config/i386/i386-features.c (compute_convert_gain): Provide
14798 more accurate values for CONST_INT, when optimizing for size.
14799 * config/i386/i386.c (COSTS_N_BYTES): Move definition from here...
14800 * config/i386/i386.h (COSTS_N_BYTES): to here.
14802 2021-08-24 Roger Sayle <roger@nextmovesoftware.com>
14803 Jakub Jelinek <jakub@redhat.com>
14805 PR middle-end/102029
14806 * match.pd (shift transformations): Add an additional check for
14807 !POINTER_TYPE_P in the recently added left shift transformation.
14809 2021-08-24 liuhongt <hongtao.liu@intel.com>
14811 PR tree-optimization/100089
14812 * tree-vectorizer.c (try_vectorize_loop_1): Disable slp in
14813 loop vectorizer when cost model is very-cheap.
14815 2021-08-23 Bill Schmidt <wschmidt@linux.ibm.com>
14817 * config/rs6000/rs6000-gen-builtins.c (parse_bif_entry): Don't call
14818 asprintf, which is not available on AIX.
14820 2021-08-23 Bill Schmidt <wschmidt@linux.ibm.com>
14822 * config.gcc (target_gtfiles): Add ./rs6000-builtins.h.
14823 * config/rs6000/t-rs6000 (EXTRA_GTYPE_DEPS): Set.
14825 2021-08-23 Bill Schmidt <wschmidt@linux.ibm.com>
14827 * config.gcc (powerpc*-*-*): Add rs6000-builtins.o to extra_objs.
14828 * config/rs6000/rs6000-gen-builtins.c (main): Close init_file
14830 * config/rs6000/t-rs6000 (rs6000-gen-builtins.o): New target.
14831 (rbtree.o): Likewise.
14832 (rs6000-gen-builtins): Likewise.
14833 (rs6000-builtins.c): Likewise.
14834 (rs6000-builtins.h): Likewise.
14835 (rs6000.o): Add dependency.
14836 (EXTRA_HEADERS): Add rs6000-vecdefines.h.
14837 (rs6000-vecdefines.h): New target.
14838 (rs6000-builtins.o): Likewise.
14839 (rs6000-call.o): Add rs6000-builtins.h as a dependency.
14840 (rs6000-c.o): Likewise.
14842 2021-08-23 Bill Schmidt <wschmidt@linux.ibm.com>
14845 * config/rs6000/rs6000-gen-builtins.c (consume_whitespace):
14846 Diagnose buffer overrun.
14847 (safe_inc_pos): Fix overrun detection.
14848 (match_identifier): Diagnose buffer overrun.
14849 (match_integer): Likewise.
14850 (match_to_right_bracket): Likewise.
14852 2021-08-23 Jan Hubicka <hubicka@ucw.cz>
14854 * ipa-modref-tree.h (modref_access_node::range_info_useful_p):
14855 Improve range compare.
14856 (modref_access_node::contains): New member function.
14857 (modref_access_node::search): Remove.
14858 (modref_access_node::insert): Be smarter about subaccesses.
14860 2021-08-23 Thomas Schwinge <thomas@codesourcery.com>
14862 * config/i386/i386-options.c (ix86_omp_device_kind_arch_isa)
14863 <omp_device_arch> [ACCEL_COMPILER]: Match "intel_mic".
14864 * config/i386/t-omp-device (omp-device-properties-i386) <arch>:
14867 2021-08-23 Jeff Law <jlaw@localhost.localdomain>
14869 * config/h8300/h8300-protos.h (h8300_expand_epilogue): Add new
14871 * config/h8300/jumpcall.md (call, call_value): Restrict to
14872 !SIBLING_CALL_P cases.
14873 (subcall, sibcall_value): New patterns & expanders.
14874 * config/h8300/proepi.md (epilogue): Pass new argument to
14875 h8300_expand_epilogue.
14876 (sibcall_epilogue): New expander.
14877 * config/h8300/h8300.c (h8300_expand_epilogue): Handle sibcall
14879 (h8300_ok_for_sibcall_p): New function.
14880 (TARGET_FUNCTION_OK_FOR_SIBCALL): define.
14882 2021-08-23 Roger Sayle <roger@nextmovesoftware.com>
14884 * simplify-rtx.c (simplify_unary_operation_1): [TRUNCATE]:
14885 Handle case where the operand is already the desired mode.
14887 2021-08-23 Richard Biener <rguenther@suse.de>
14890 * tree-ssa-structalias.c (ipa_pta_execute): Check in_other_partition
14891 in addition to has_gimple_body.
14893 2021-08-23 Jan Hubicka <hubicka@ucw.cz>
14895 PR middle-end/101949
14896 * ipa-modref.c (analyze_ssa_name_flags): Fix merging of
14899 2021-08-23 Martin Liska <mliska@suse.cz>
14901 * doc/invoke.texi: Put the option out of -mxl-mode-app-model
14904 2021-08-23 Richard Biener <rguenther@suse.de>
14906 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
14907 Properly scale the inner loop cost only once.
14909 2021-08-23 Roger Sayle <roger@nextmovesoftware.com>
14911 * tree-ssa-ccp.c (bit_value_binop) [TRUNC_MOD_EXPR, TRUNC_DIV_EXPR]:
14912 Provide bounds for unsigned (and signed with non-negative operands)
14913 division and modulus.
14915 2021-08-23 Roger Sayle <roger@nextmovesoftware.com>
14917 * simplify-rtx.c (simplify_truncation): Generalize simplification
14918 of (truncate:A (subreg:B X)).
14919 (simplify_unary_operation_1) [FLOAT_TRUNCATE, FLOAT_EXTEND,
14920 SIGN_EXTEND, ZERO_EXTEND]: Handle cases where the operand
14921 already has the desired machine mode.
14922 (test_scalar_int_ops): Add tests that useless extensions and
14923 truncations are optimized away.
14924 (test_scalar_int_ext_ops): New self-test function to confirm
14925 that truncations of extensions are correctly simplified.
14926 (test_scalar_int_ext_ops2): New self-test function to check
14927 truncations of truncations, extensions of extensions, and
14928 truncations of extensions.
14929 (test_scalar_ops): Call the above two functions with a
14930 representative sampling of integer machine modes.
14932 2021-08-23 Roger Sayle <roger@nextmovesoftware.com>
14934 * match.pd (shift transformations): Change the sign of an
14935 LSHIFT_EXPR if it reduces the number of explicit conversions.
14937 2021-08-23 Jakub Jelinek <jakub@redhat.com>
14939 PR tree-optimization/86723
14940 * gimple-ssa-store-merging.c (find_bswap_or_nop_finalize): Add
14941 cast64_to_32 argument, set *cast64_to_32 to false, unless n is
14942 non-memory permutation of 64-bit src which only has bytes of
14943 0 or [5..8] and n->range is 4.
14944 (find_bswap_or_nop): Add cast64_to_32 and mask arguments, adjust
14945 find_bswap_or_nop_finalize caller, support bswap with some bytes
14946 zeroed, as long as at least two bytes are not zeroed.
14947 (bswap_replace): Add mask argument and handle masking of bswap
14949 (maybe_optimize_vector_constructor): Adjust find_bswap_or_nop
14950 caller, punt if cast64_to_32 or mask is not all ones.
14951 (pass_optimize_bswap::execute): Adjust find_bswap_or_nop_finalize
14952 caller, for now punt if cast64_to_32.
14954 2021-08-23 Richard Biener <rguenther@suse.de>
14956 PR tree-optimization/79334
14957 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record
14958 a type also for COMPONENT_REFs.
14959 (vn_reference_may_trap): Check ARRAY_REF with constant index
14960 against the array domain.
14962 2021-08-23 liuhongt <hongtao.liu@intel.com>
14965 * config/i386/sse.md (*avx512f_pshufb_truncv8hiv8qi_1): Add
14966 TARGET_AVX512BW to condition.
14968 2021-08-23 Jakub Jelinek <jakub@redhat.com>
14971 * dwarf2out.c (gen_variable_die): Add DW_AT_location for global
14972 register variables already during early_dwarf if possible.
14974 2021-08-23 Christophe Lyon <christophe.lyon@foss.st.com>
14976 * config/arm/arm_mve.h: Fix __arm_vctp16q return type.
14978 2021-08-23 Christophe Lyon <christophe.lyon@foss.st.com>
14981 * config/arm/arm.opt: Fix typo.
14982 * config/arm/t-rmprofile: Fix typo.
14984 2021-08-23 Jakub Jelinek <jakub@redhat.com>
14986 * tree.h (OMP_CLAUSE_GRAINSIZE_STRICT): Define.
14987 (OMP_CLAUSE_NUM_TASKS_STRICT): Define.
14988 * tree-pretty-print.c (dump_omp_clause) <case OMP_CLAUSE_GRAINSIZE,
14989 case OMP_CLAUSE_NUM_TASKS>: Print strict: modifier.
14990 * omp-expand.c (expand_task_call): Use GOMP_TASK_FLAG_STRICT in iflags
14991 if either grainsize or num_tasks clause has the strict modifier.
14993 2021-08-23 Martin Liska <mliska@suse.cz>
14995 * dbgcnt.def (DEBUG_COUNTER): New counter.
14996 * gimple.c (gimple_call_arg_flags): Use it in IPA PTA.
14998 2021-08-23 Jan Hubicka <hubicka@ucw.cz>
15000 * ipa-modref.c (analyze_ssa_name_flags): Improve handling of return slot.
15002 2021-08-23 Xi Ruoyao <xry111@mengyan1223.wang>
15005 * config/mips/mips-protos.h (mips_msa_output_shift_immediate):
15007 * config/mips/mips.c (mips_msa_output_shift_immediate): New
15009 * config/mips/mips-msa.md (vashl<mode>3, vashr<mode>3,
15010 vlshr<mode>3): Call it.
15012 2021-08-22 Jan Hubicka <hubicka@ucw.cz>
15013 Martin Liska <mliska@suse.cz>
15015 PR middle-end/101949
15016 * ipa-modref.c (analyze_ssa_name_flags): Indirect call implies
15019 2021-08-21 Dragan Mladjenovic <OT_Dragan.Mladjenovic@mediatek.com>
15021 * config/mips/mips.c (mips_function_rodata_section,
15022 TARGET_ASM_FUNCTION_RODATA_SECTION): Removed.
15024 2021-08-21 John David Anglin <danglin@gcc.gnu.org>
15026 * config/pa/pa.c (pa_asm_output_aligned_common): Remove warning.
15028 2021-08-20 Serge Belyshev <belyshev@depni.sinp.msu.ru>
15030 * configure.ac (thread-local storage support): Remove tls_first_major
15031 and tls_first_minor. Use "$conftest_s" to check support.
15032 * configure: Regenerate.
15034 2021-08-20 Serge Belyshev <belyshev@depni.sinp.msu.ru>
15036 * configure.ac: Fixup formatting.
15038 2021-08-20 Serge Belyshev <belyshev@depni.sinp.msu.ru>
15040 * acinclude.m4 (gcc_GAS_CHECK_FEATURE): Remove third argument and ...
15041 * configure.ac: ... update all callers.
15043 2021-08-20 Serge Belyshev <belyshev@depni.sinp.msu.ru>
15046 * acinclude.m4 (_gcc_COMPUTE_GAS_VERSION, _gcc_GAS_VERSION_GTE_IFELSE)
15047 (gcc_GAS_VERSION_GTE_IFELSE): Remove.
15048 (gcc_GAS_CHECK_FEATURE): Do not handle in-tree case specially.
15049 * configure.ac: Remove gcc_cv_gas_major_version, gcc_cv_gas_minor_version.
15050 Remove remaining checks for in-tree assembler.
15051 * configure: Regenerate.
15053 2021-08-20 Jeff Law <jlaw@localhost.localdomain>
15055 * config/h8300/h8300.c (shift_alg_hi): Improve arithmetic shift right
15056 by 15 bits for H8/300H and H8/S. Improve logical shifts by 12
15058 (shift_alg_si): Improve arithmetic right shift by 28-30 bits for
15059 H8/300H. Improve arithmetic shift right by 15 bits for H8/S.
15060 Improve logical shifts by 27 bits for H8/S.
15061 (get_shift_alg): Corresponding changes.
15062 (h8300_option_override): Revert to loops for -Os when profitable.
15064 2021-08-20 Richard Biener <rguenther@suse.de>
15066 * tree-vect-data-refs.c (dr_group_sort_cmp): Do not compare
15068 (vect_analyze_data_ref_accesses): Likewise. Assign the BB
15069 index as group_id when dataref_groups were not computed.
15070 * tree-vect-slp.c (vect_slp_bbs): Bump current_group when
15071 we advace to the next BB.
15073 2021-08-20 Jakub Jelinek <jakub@redhat.com>
15075 * omp-builtins.def (BUILT_IN_GOMP_WARNING, BUILT_IN_GOMP_ERROR): New
15078 2021-08-20 Martin Liska <mliska@suse.cz>
15080 PR gcov-profile/89961
15081 * gcov.c (make_gcov_file_name): Rewrite using std::string.
15082 (mangle_name): Simplify, do not used the second argument.
15083 (strip_extention): New function.
15084 (get_md5sum): Likewise.
15085 (get_gcov_intermediate_filename): Handle properly -p and -x
15087 (output_gcov_file): Use string type.
15088 (generate_results): Likewise.
15089 (md5sum_to_hex): Remove.
15091 2021-08-20 Michael Meissner <meissner@linux.ibm.com>
15093 * config/rs6000/altivec.md (UNSPEC_XXEVAL): Move to vsx.md.
15094 (UNSPEC_XXSPLTIW): Move to vsx.md.
15095 (UNSPEC_XXSPLTID): Move to vsx.md.
15096 (UNSPEC_XXSPLTI32DX): Move to vsx.md.
15097 (UNSPEC_XXBLEND): Move to vsx.md.
15098 (UNSPEC_XXPERMX): Move to vsx.md.
15099 (VM3): Move to vsx.md.
15100 (VM3_char): Move to vsx.md.
15101 (xxspltiw_v4si): Move to vsx.md.
15102 (xxspltiw_v4sf): Move to vsx.md.
15103 (xxspltiw_v4sf_inst): Move to vsx.md.
15104 (xxspltidp_v2df): Move to vsx.md.
15105 (xxspltidp_v2df_inst): Move to vsx.md.
15106 (xxsplti32dx_v4si_inst): Move to vsx.md.
15107 (xxsplti32dx_v4sf): Move to vsx.md.
15108 (xxsplti32dx_v4sf_inst): Move to vsx.md.
15109 (xxblend_<mode>): Move to vsx.md.
15110 (xxpermx): Move to vsx.md.
15111 (xxpermx_inst): Move to vsx.md.
15112 * config/rs6000/vsx.md (UNSPEC_XXEVAL): Move from altivec.md.
15113 (UNSPEC_XXSPLTIW): Move from altivec.md.
15114 (UNSPEC_XXSPLTID): Move from altivec.md.
15115 (UNSPEC_XXSPLTI32DX): Move from altivec.md.
15116 (UNSPEC_XXBLEND): Move from altivec.md.
15117 (UNSPEC_XXPERMX): Move from altivec.md.
15118 (VM3): Move from altivec.md.
15119 (VM3_char): Move from altivec.md.
15120 (xxspltiw_v4si): Move from altivec.md.
15121 (xxspltiw_v4sf): Move from altivec.md.
15122 (xxspltiw_v4sf_inst): Move from altivec.md.
15123 (xxspltidp_v2df): Move from altivec.md.
15124 (xxspltidp_v2df_inst): Move from altivec.md.
15125 (xxsplti32dx_v4si_inst): Move from altivec.md.
15126 (xxsplti32dx_v4sf): Move from altivec.md.
15127 (xxsplti32dx_v4sf_inst): Move from altivec.md.
15128 (xxblend_<mode>): Move from altivec.md.
15129 (xxpermx): Move from altivec.md.
15130 (xxpermx_inst): Move from altivec.md.
15132 2021-08-19 Roger Sayle <roger@nextmovesoftware.com>
15134 * tree-vect-generic.c (expand_vector_operations_1): Use either
15135 gimplify_build1 or gimplify_build2 instead of gimple_build_assign
15136 when constructing scalar splat expressions.
15138 2021-08-19 Peter Bergner <bergner@linux.ibm.com>
15141 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_mma_builtin): Cast
15142 pointer to __vector_pair *.
15144 2021-08-19 Martin Sebor <msebor@redhat.com>
15146 * gimple-range.cc: Add comments.
15147 * gimple-range.h: Same.
15149 2021-08-19 Martin Sebor <msebor@redhat.com>
15151 PR middle-end/101984
15152 * gimple-ssa-warn-access.cc (pass_waccess::execute): Also call
15155 2021-08-19 Jeff Law <jlaw@localhost.localdomain>
15157 * config.gcc (h8300-*-elf*): Do not include dbxelf.h.
15158 (h8300-*-linux*, v850-*-rtems*, v850*-elf*): Likewise.
15159 * config/v850/v850.h (DEFAULT_GDB_EXTENSIONS): Remove.
15161 2021-08-19 Jakub Jelinek <jakub@redhat.com>
15163 PR middle-end/101950
15164 * optabs.c (expand_clrsb_using_clz): New function.
15165 (expand_unop): Use it as another clrsb expansion fallback.
15167 2021-08-19 liuhongt <hongtao.liu@intel.com>
15170 2021-07-28 liuhongt <hongtao.liu@intel.com>
15173 * config/i386/i386.h (processor_costs): Add new member
15175 * config/i386/x86-tune-costs.h (ix86_size_cost, i386_cost,
15176 i486_cost, pentium_cost, lakemont_cost, pentiumpro_cost,
15177 geode_cost, k6_cost, athlon_cost, k8_cost, amdfam10_cost,
15178 bdver_cost, znver1_cost, znver2_cost, znver3_cost,
15179 btver1_cost, btver2_cost, btver3_cost, pentium4_cost,
15180 nocona_cost, atom_cost, atom_cost, slm_cost, intel_cost,
15181 generic_cost, core_cost): Initialize integer_to_sse same value
15183 (skylake_cost): Initialize integer_to_sse twice as much as sse_op.
15184 * config/i386/i386.c (ix86_builtin_vectorization_cost):
15185 Use integer_to_sse instead of sse_op to calculate the cost of
15188 2021-08-18 Iain Sandoe <iain@sandoe.co.uk>
15190 * config.gcc: Include rpath.opt for Darwin.
15191 * config/darwin.h (DRIVER_SELF_SPECS): Handle -rpath.
15193 2021-08-18 Thomas Schwinge <thomas@codesourcery.com>
15195 PR bootstrap/101959
15196 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor_expand):
15199 2021-08-18 Jonathan Wright <jonathan.wright@arm.com>
15201 * config/aarch64/arm_neon.h (vld3_lane_f64): Use float RTL
15202 pattern and type cast.
15203 (vld4_lane_f32): Use float RTL pattern.
15204 (vld4q_lane_f64): Use float type cast.
15206 2021-08-18 Jan Hubicka <hubicka@ucw.cz>
15208 * tree-ssa-uninit.c (maybe_warn_pass_by_reference): Check also
15211 2021-08-18 Thomas Schwinge <thomas@codesourcery.com>
15213 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): Extend.
15214 (test_map_of_type_with_ctor_and_dtor_expand): Add function.
15215 (hash_map_tests_c_tests): Call it.
15217 2021-08-18 Thomas Schwinge <thomas@codesourcery.com>
15219 * ggc.h (enum ggc_collect): New.
15220 (ggc_collect): Use it.
15221 * ggc-page.c: Adjust.
15222 * ggc-common.c: Likewise.
15223 * ggc-tests.c: Likewise.
15224 * read-rtl-function.c: Likewise.
15225 * selftest-run-tests.c: Likewise.
15226 * doc/gty.texi (Invoking the garbage collector): Likewise.
15228 2021-08-18 liuhongt <hongtao.liu@intel.com>
15231 * config/i386/i386.h (TARGET_V2DF_REDUCTION_PREFER_HADDPD):
15233 * config/i386/sse.md (*sse3_haddv2df3_low): Add
15234 TARGET_V2DF_REDUCTION_PREFER_HADDPD.
15235 (*sse3_hsubv2df3_low): Ditto.
15236 * config/i386/x86-tune.def
15237 (X86_TUNE_V2DF_REDUCTION_PREFER_HADDPD): New tune.
15239 2021-08-17 Andrew MacLeod <amacleod@redhat.com>
15241 * gimple-range-gori.cc (gori_compute::gori_compute): Enable tracing.
15242 (gori_compute::compute_operand_range): Add tracing.
15243 (gori_compute::logical_combine): Ditto.
15244 (gori_compute::compute_logical_operands): Ditto.
15245 (gori_compute::compute_operand1_range): Ditto.
15246 (gori_compute::compute_operand2_range): Ditto.
15247 (gori_compute::outgoing_edge_range_p): Ditto.
15248 * gimple-range-gori.h (class gori_compute): Add range_tracer.
15250 2021-08-17 Andrew MacLeod <amacleod@redhat.com>
15252 * flag-types.h (enum evrp_mode): Adjust evrp-mode values.
15253 * gimple-range-cache.cc (DEBUG_RANGE_CACHE): Relocate from.
15254 * gimple-range-trace.h (DEBUG_RANGE_CACHE): Here.
15255 * params.opt (--param=evrp-mode): Adjust options.
15257 2021-08-17 Andrew MacLeod <amacleod@redhat.com>
15259 * Makefile.in (OBJS): Add gimple-range-trace.o.
15260 * gimple-range-cache.h (enable_new_values): Remove unused prototype.
15261 * gimple-range-fold.cc: Adjust headers.
15262 * gimple-range-trace.cc: New.
15263 * gimple-range-trace.h: New.
15264 * gimple-range.cc (gimple_ranger::gimple_ranger): Enable tracer.
15265 (gimple_ranger::range_of_expr): Add tracing.
15266 (gimple_ranger::range_on_entry): Ditto.
15267 (gimple_ranger::range_on_exit): Ditto.
15268 (gimple_ranger::range_on_edge): Ditto.
15269 (gimple_ranger::fold_range_internal): Ditto.
15270 (gimple_ranger::dump_bb): Do not calculate edge range twice.
15271 (trace_ranger::*): Remove.
15272 (enable_ranger): Never create a trace_ranger.
15273 (debug_seed_ranger): Move to gimple-range-trace.cc.
15274 (dump_ranger): Ditto.
15275 (debug_ranger): Ditto.
15276 * gimple-range.h: Include gimple-range-trace.h.
15277 (range_on_entry, range_on_exit): No longer virtual.
15278 (class trace_ranger): Remove.
15279 (DEBUG_RANGE_CACHE): Move to gimple-range-trace.h.
15281 2021-08-17 Martin Sebor <msebor@redhat.com>
15283 PR middle-end/101854
15284 * builtins.c (expand_builtin_alloca): Move warning code to check_alloca
15285 in gimple-ssa-warn-access.cc.
15286 * calls.c (alloc_max_size): Move code to check_alloca.
15287 (get_size_range): Move to pointer-query.cc.
15288 (maybe_warn_alloc_args_overflow): Move to gimple-ssa-warn-access.cc.
15289 (get_attr_nonstring_decl): Move to tree.c.
15290 (fntype_argno_type): Move to gimple-ssa-warn-access.cc.
15291 (append_attrname): Same.
15292 (maybe_warn_rdwr_sizes): Same.
15293 (initialize_argument_information): Move code to
15294 gimple-ssa-warn-access.cc.
15295 * calls.h (maybe_warn_alloc_args_overflow): Move to
15296 gimple-ssa-warn-access.h.
15297 (get_attr_nonstring_decl): Move to tree.h.
15298 (maybe_warn_nonstring_arg): Move to gimple-ssa-warn-access.h.
15299 (enum size_range_flags): Move to pointer-query.h.
15300 (get_size_range): Same.
15301 * gimple-ssa-warn-access.cc (has_location): Remove unused overload
15302 to avoid Clang -Wunused-function.
15303 (get_size_range): Declare static.
15304 (maybe_emit_free_warning): Rename...
15305 (maybe_check_dealloc_call): ...to this for consistency.
15306 (class pass_waccess): Add members.
15307 (pass_waccess::~pass_waccess): Defined.
15308 (alloc_max_size): Move here from calls.c.
15309 (maybe_warn_alloc_args_overflow): Same.
15310 (check_alloca): New function.
15311 (check_alloc_size_call): New function.
15312 (check_strncat): Handle another warning flag.
15313 (pass_waccess::check_builtin): Handle alloca.
15314 (fntype_argno_type): Move here from calls.c.
15315 (append_attrname): Same.
15316 (maybe_warn_rdwr_sizes): Same.
15317 (pass_waccess::check_call): Define.
15318 (check_nonstring_args): New function.
15319 (pass_waccess::check): Call new member functions.
15320 (pass_waccess::execute): Enable ranger.
15321 * gimple-ssa-warn-access.h (get_size_range): Move here from calls.h.
15322 (maybe_warn_nonstring_arg): Same.
15323 * gimple-ssa-warn-restrict.c: Remove #include.
15324 * pointer-query.cc (get_size_range): Move here from calls.c.
15325 * pointer-query.h (enum size_range_flags): Same.
15326 (get_size_range): Same.
15327 * tree.c (get_attr_nonstring_decl): Move here from calls.c.
15328 * tree.h (get_attr_nonstring_decl): Move here from calls.h.
15330 2021-08-17 Thomas Schwinge <thomas@codesourcery.com>
15332 * ggc.h (ggc_collect): Add 'force_collect' parameter.
15333 * ggc-page.c (ggc_collect): Use that one instead of global
15334 'ggc_force_collect'. Adjust all users.
15335 * doc/gty.texi (Invoking the garbage collector): Update.
15336 * ggc-internal.h (ggc_force_collect): Remove.
15337 * ggc-common.c (ggc_force_collect): Likewise.
15338 * selftest.h (forcibly_ggc_collect): Remove.
15339 * ggc-tests.c (selftest::forcibly_ggc_collect): Likewise.
15340 * read-rtl-function.c (test_loading_labels): Adjust.
15341 * selftest-run-tests.c (run_tests): Likewise.
15343 2021-08-17 Iain Sandoe <iain@sandoe.co.uk>
15345 * config/darwin.c (darwin_file_end): Reset and reclaim the
15346 section names table at the end of compile.
15348 2021-08-17 Iain Sandoe <iain@sandoe.co.uk>
15351 * config.in: Regenerate.
15352 * config/i386/darwin.h (EXTRA_ASM_OPTS): New
15353 (ASM_SPEC): Pass options to disable branch shortening where
15355 * configure: Regenerate.
15356 * configure.ac: Detect versions of 'as' that support the
15357 optimisation which has the bug.
15359 2021-08-17 Richard Biener <rguenther@suse.de>
15361 * optabs-query.c (supports_vec_gather_load_p): Also check
15363 (supports_vec_scatter_store_p): Likewise.
15364 * tree-vect-data-refs.c (vect_gather_scatter_fn_p): Fall
15365 back to masked variants if non-masked are not supported.
15366 * tree-vect-patterns.c (vect_recog_gather_scatter_pattern):
15367 When we need to use masked gather/scatter but do not have
15368 a mask set up a constant true one.
15369 * tree-vect-stmts.c (vect_check_scalar_mask): Also allow
15370 non-SSA_NAME masks.
15372 2021-08-17 Roger Sayle <roger@nextmovesoftware.com>
15374 * tree-ssa-ccp.c (bit_value_binop) [MINUS_EXPR]: Use same
15375 algorithm as PLUS_EXPR to improve subtraction bit bounds.
15376 [POINTER_DIFF_EXPR]: Treat as synonymous with MINUS_EXPR.
15378 2021-08-17 Roger Sayle <roger@nextmovesoftware.com>
15380 * tree-ssa-ccp.c (bit_value_mult_const): New helper function to
15381 calculate the mask-value pair result of a multiplication by an
15383 (bit_value_binop) [MULT_EXPR]: Call it from here for
15384 multiplications by (sparse) non-negative constants.
15386 2021-08-17 Christophe Lyon <christophe.lyon@foss.st.com>
15389 * config.gcc (gcc_cv_initfini_array): Leave undefined for
15390 uclinuxfdpiceabi targets.
15392 2021-08-17 Alexandre Oliva <oliva@adacore.com>
15394 * tree-inline.c (maybe_move_debug_stmts_to_successors): Don't
15395 reverse debug stmts.
15397 2021-08-17 Alexandre Oliva <oliva@adacore.com>
15399 * tree-cfg.c (dump_function_to_file): Use fun, not cfun.
15401 2021-08-17 Jonathan Wright <jonathan.wright@arm.com>
15403 * config/aarch64/arm_neon.h (__LD4_LANE_FUNC): Delete.
15404 (__LD4Q_LANE_FUNC): Likewise.
15405 (vld4_lane_u8): Define without macro.
15406 (vld4_lane_u16): Likewise.
15407 (vld4_lane_u32): Likewise.
15408 (vld4_lane_u64): Likewise.
15409 (vld4_lane_s8): Likewise.
15410 (vld4_lane_s16): Likewise.
15411 (vld4_lane_s32): Likewise.
15412 (vld4_lane_s64): Likewise.
15413 (vld4_lane_f16): Likewise.
15414 (vld4_lane_f32): Likewise.
15415 (vld4_lane_f64): Likewise.
15416 (vld4_lane_p8): Likewise.
15417 (vld4_lane_p16): Likewise.
15418 (vld4_lane_p64): Likewise.
15419 (vld4q_lane_u8): Likewise.
15420 (vld4q_lane_u16): Likewise.
15421 (vld4q_lane_u32): Likewise.
15422 (vld4q_lane_u64): Likewise.
15423 (vld4q_lane_s8): Likewise.
15424 (vld4q_lane_s16): Likewise.
15425 (vld4q_lane_s32): Likewise.
15426 (vld4q_lane_s64): Likewise.
15427 (vld4q_lane_f16): Likewise.
15428 (vld4q_lane_f32): Likewise.
15429 (vld4q_lane_f64): Likewise.
15430 (vld4q_lane_p8): Likewise.
15431 (vld4q_lane_p16): Likewise.
15432 (vld4q_lane_p64): Likewise.
15433 (vld4_lane_bf16): Likewise.
15434 (vld4q_lane_bf16): Likewise.
15436 2021-08-17 Jonathan Wright <jonathan.wright@arm.com>
15438 * config/aarch64/arm_neon.h (__LD3_LANE_FUNC): Delete.
15439 (__LD3Q_LANE_FUNC): Delete.
15440 (vld3_lane_u8): Define without macro.
15441 (vld3_lane_u16): Likewise.
15442 (vld3_lane_u32): Likewise.
15443 (vld3_lane_u64): Likewise.
15444 (vld3_lane_s8): Likewise.
15445 (vld3_lane_s16): Likewise.
15446 (vld3_lane_s32): Likewise.
15447 (vld3_lane_s64): Likewise.
15448 (vld3_lane_f16): Likewise.
15449 (vld3_lane_f32): Likewise.
15450 (vld3_lane_f64): Likewise.
15451 (vld3_lane_p8): Likewise.
15452 (vld3_lane_p16): Likewise.
15453 (vld3_lane_p64): Likewise.
15454 (vld3q_lane_u8): Likewise.
15455 (vld3q_lane_u16): Likewise.
15456 (vld3q_lane_u32): Likewise.
15457 (vld3q_lane_u64): Likewise.
15458 (vld3q_lane_s8): Likewise.
15459 (vld3q_lane_s16): Likewise.
15460 (vld3q_lane_s32): Likewise.
15461 (vld3q_lane_s64): Likewise.
15462 (vld3q_lane_f16): Likewise.
15463 (vld3q_lane_f32): Likewise.
15464 (vld3q_lane_f64): Likewise.
15465 (vld3q_lane_p8): Likewise.
15466 (vld3q_lane_p16): Likewise.
15467 (vld3q_lane_p64): Likewise.
15468 (vld3_lane_bf16): Likewise.
15469 (vld3q_lane_bf16): Likewise.
15471 2021-08-17 Jonathan Wright <jonathan.wright@arm.com>
15473 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Delete.
15474 (__LD2Q_LANE_FUNC): Likewise.
15475 (vld2_lane_u8): Define without macro.
15476 (vld2_lane_u16): Likewise.
15477 (vld2_lane_u32): Likewise.
15478 (vld2_lane_u64): Likewise.
15479 (vld2_lane_s8): Likewise.
15480 (vld2_lane_s16): Likewise.
15481 (vld2_lane_s32): Likewise.
15482 (vld2_lane_s64): Likewise.
15483 (vld2_lane_f16): Likewise.
15484 (vld2_lane_f32): Likewise.
15485 (vld2_lane_f64): Likewise.
15486 (vld2_lane_p8): Likewise.
15487 (vld2_lane_p16): Likewise.
15488 (vld2_lane_p64): Likewise.
15489 (vld2q_lane_u8): Likewise.
15490 (vld2q_lane_u16): Likewise.
15491 (vld2q_lane_u32): Likewise.
15492 (vld2q_lane_u64): Likewise.
15493 (vld2q_lane_s8): Likewise.
15494 (vld2q_lane_s16): Likewise.
15495 (vld2q_lane_s32): Likewise.
15496 (vld2q_lane_s64): Likewise.
15497 (vld2q_lane_f16): Likewise.
15498 (vld2q_lane_f32): Likewise.
15499 (vld2q_lane_f64): Likewise.
15500 (vld2q_lane_p8): Likewise.
15501 (vld2q_lane_p16): Likewise.
15502 (vld2q_lane_p64): Likewise.
15503 (vld2_lane_bf16): Likewise.
15504 (vld2q_lane_bf16): Likewise.
15506 2021-08-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15508 * haifa-sched.c (advance_one_cycle): Output more context-synchronization
15511 2021-08-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15513 * haifa-sched.c (enum rfs_decision, rfs_str): Add RFS_AUTOPREF.
15514 (rank_for_schedule): Use it.
15516 2021-08-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15518 PR rtl-optimization/91598
15519 * haifa-sched.c (autopref_rank_for_schedule): Prioritize "irrelevant"
15520 insns after memory reads and before memory writes.
15522 2021-08-17 Alistair_Lee <alistair.lee@arm.com>
15524 * rtl.h (CONST_VECTOR_P): New macro.
15525 * config/aarch64/aarch64.c (aarch64_get_sve_pred_bits): Use RTL
15526 code testing macros.
15527 (aarch64_ptrue_all_mode): Likewise.
15528 (aarch64_expand_mov_immediate): Likewise.
15529 (aarch64_const_vec_all_in_range_p): Likewise.
15530 (aarch64_rtx_costs): Likewise.
15531 (aarch64_legitimate_constant_p): Likewise.
15532 (aarch64_simd_valid_immediate): Likewise.
15533 (aarch64_simd_make_constant): Likewise.
15534 (aarch64_convert_mult_to_shift): Likewise.
15535 (aarch64_expand_sve_vec_perm): Likewise.
15536 (aarch64_vec_fpconst_pow_of_2): Likewise.
15538 2021-08-17 Andrew MacLeod <amacleod@redhat.com>
15540 PR tree-optimization/101938
15541 * range-op.cc (operator_abs::op1_range): Special case
15542 -TYPE_MIN_VALUE for flag_wrapv.
15544 2021-08-17 Kewen Lin <linkw@linux.ibm.com>
15546 * tree-vect-slp.c (vectorizable_bb_reduc_epilogue): Add the cost for
15549 2021-08-17 Jakub Jelinek <jakub@redhat.com>
15551 * tree.def (OMP_SCOPE): New tree code.
15552 * tree.h (OMP_SCOPE_BODY, OMP_SCOPE_CLAUSES): Define.
15553 * tree-nested.c (convert_nonlocal_reference_stmt,
15554 convert_local_reference_stmt, convert_gimple_call): Handle
15556 * tree-pretty-print.c (dump_generic_node): Handle OMP_SCOPE.
15557 * gimple.def (GIMPLE_OMP_SCOPE): New gimple code.
15558 * gimple.c (gimple_build_omp_scope): New function.
15559 (gimple_copy): Handle GIMPLE_OMP_SCOPE.
15560 * gimple.h (gimple_build_omp_scope): Declare.
15561 (gimple_has_substatements): Handle GIMPLE_OMP_SCOPE.
15562 (gimple_omp_scope_clauses, gimple_omp_scope_clauses_ptr,
15563 gimple_omp_scope_set_clauses): New inline functions.
15564 (CASE_GIMPLE_OMP): Add GIMPLE_OMP_SCOPE.
15565 * gimple-pretty-print.c (dump_gimple_omp_scope): New function.
15566 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCOPE.
15567 * gimple-walk.c (walk_gimple_stmt): Likewise.
15568 * gimple-low.c (lower_stmt): Likewise.
15569 * gimplify.c (is_gimple_stmt): Handle OMP_MASTER.
15570 (gimplify_scan_omp_clauses): For task reductions, handle OMP_SCOPE
15571 like ORT_WORKSHARE constructs. Adjust diagnostics for %<scope%>
15572 allowing task reductions. Reject inscan reductions on scope.
15573 (omp_find_stores_stmt): Handle GIMPLE_OMP_SCOPE.
15574 (gimplify_omp_workshare, gimplify_expr): Handle OMP_SCOPE.
15575 * tree-inline.c (remap_gimple_stmt): Handle GIMPLE_OMP_SCOPE.
15576 (estimate_num_insns): Likewise.
15577 * omp-low.c (build_outer_var_ref): Look through GIMPLE_OMP_SCOPE
15578 contexts if var isn't privatized there.
15579 (check_omp_nesting_restrictions): Handle GIMPLE_OMP_SCOPE.
15580 (scan_omp_1_stmt): Likewise.
15581 (maybe_add_implicit_barrier_cancel): Look through outer
15583 (lower_omp_scope): New function.
15584 (lower_omp_task_reductions): Handle OMP_SCOPE.
15585 (lower_omp_1): Handle GIMPLE_OMP_SCOPE.
15586 (diagnose_sb_1, diagnose_sb_2): Likewise.
15587 * omp-expand.c (expand_omp_single): Support also GIMPLE_OMP_SCOPE.
15588 (expand_omp): Handle GIMPLE_OMP_SCOPE.
15589 (omp_make_gimple_edges): Likewise.
15590 * omp-builtins.def (BUILT_IN_GOMP_SCOPE_START): New built-in.
15592 2021-08-17 Richard Biener <rguenther@suse.de>
15594 PR tree-optimization/101925
15595 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Set
15596 reverse on COMPONENT_REF and ARRAY_REF according to
15597 what reverse_storage_order_for_component_p does.
15598 (vn_reference_eq): Compare reversed on reference ops.
15599 (reverse_storage_order_for_component_p): New overload.
15600 (vn_reference_lookup_3): Check reverse_storage_order_for_component_p
15601 on the reference looked up.
15603 2021-08-17 Jeff Law <jlaw@localhost.localdomain>
15605 * config/h8300/h8300.c (shift_alg_si): Avoid loops for most SImode
15606 shifts on the H8/S.
15607 (h8300_option_override): Use loops on H8/S more often when optimizing
15609 (get_shift_alg): Handle new "special" cases on H8/S. Simplify
15610 accordingly. Handle various arithmetic right shifts with special
15611 sequences that we couldn't handle before.
15613 2021-08-16 Jeff Law <jlaw@localhost.localdomain>
15615 * config.gcc (rl78-*-elf*): Do not include dbxelf.h.
15617 2021-08-16 Sebastian Huber <sebastian.huber@embedded-brains.de>
15619 * config/sparc/rtemself.h (SPARC_GCOV_TYPE_SIZE): Define.
15620 * config/sparc/sparc.c (sparc_gcov_type_size): New.
15621 (TARGET_GCOV_TYPE_SIZE): Redefine if SPARC_GCOV_TYPE_SIZE is defined.
15622 * coverage.c (get_gcov_type): Use targetm.gcov_type_size().
15623 * doc/tm.texi (TARGET_GCOV_TYPE_SIZE): Add hook under "Misc".
15624 * doc/tm.texi.in: Regenerate.
15625 * target.def (gcov_type_size): New target hook.
15626 * targhooks.c (default_gcov_type_size): New.
15627 * targhooks.h (default_gcov_type_size): Declare.
15628 * tree-profile.c (gimple_gen_edge_profiler): Use precision of
15630 (gimple_gen_time_profiler): Likewise.
15632 2021-08-16 Eric Botcazou <ebotcazou@gcc.gnu.org>
15634 * dwarf2out.c (add_scalar_info): Deal with DW_AT_data_bit_offset.
15636 2021-08-16 Tobias Burnus <tobias@codesourcery.com>
15638 PR middle-end/101931
15639 * omp-low.c (omp_runtime_api_call): Update for routines
15640 added in the meanwhile.
15642 2021-08-16 Martin Liska <mliska@suse.cz>
15644 PR tree-optimization/100393
15645 * tree-switch-conversion.c (group_cluster::dump): Use
15646 get_comparison_count.
15647 (jump_table_cluster::find_jump_tables): Pre-compute number of
15648 comparisons and then decrement it. Cache also max_ratio.
15649 (jump_table_cluster::can_be_handled): Change signature.
15650 * tree-switch-conversion.h (get_comparison_count): New.
15652 2021-08-16 Eric Botcazou <ebotcazou@gcc.gnu.org>
15654 * dwarf2out.c (add_data_member_location_attribute): Use GNAT
15655 encodings only when -fgnat-encodings=all is specified.
15656 (add_bound_info): Likewise.
15657 (add_byte_size_attribute): Likewise.
15658 (gen_member_die): Likewise.
15660 2021-08-16 Thomas Schwinge <thomas@codesourcery.com>
15662 * omp-oacc-neuter-broadcast.cc
15663 (execute_omp_oacc_neuter_broadcast): Plug 'par' memory leak.
15665 2021-08-16 Thomas Schwinge <thomas@codesourcery.com>
15667 * omp-oacc-neuter-broadcast.cc
15668 (execute_omp_oacc_neuter_broadcast): Clarify memory management for
15671 2021-08-16 Thomas Schwinge <thomas@codesourcery.com>
15673 * omp-oacc-neuter-broadcast.cc (field_map): Move variable into...
15674 (execute_omp_oacc_neuter_broadcast): ... here.
15675 (install_var_field, build_receiver_ref, build_sender_ref): Take
15676 'field_map_t *' parameter. Adjust all users.
15677 (worker_single_copy, neuter_worker_single): Take a
15678 'record_field_map_t *' parameter. Adjust all users.
15680 2021-08-16 liuhongt <hongtao.liu@intel.com>
15683 * config/i386/i386.md (ldexp<mode>3): Force operands[1] to
15686 2021-08-16 Martin Liska <mliska@suse.cz>
15689 * multiple_target.c (create_dispatcher_calls): Make default
15690 function local only if it is a definition.
15692 2021-08-16 Martin Liska <mliska@suse.cz>
15695 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Do not
15696 consider equal SSA_NAMEs when one is a param.
15698 2021-08-16 liuhongt <hongtao.liu@intel.com>
15701 * config/i386/i386-expand.c (ix86_expand_vec_perm_vpermt2):
15702 Support vpermi2b for V32QI/V16QImode.
15703 (ix86_extract_perm_from_pool_constant): New function.
15704 (ix86_expand_vec_one_operand_perm_avx512): Support
15705 vpermw/vpermb under TARGET_AVX512BW/TARGET_AVX512VBMI.
15706 (expand_vec_perm_1): Adjust comments for upper.
15707 * config/i386/i386-protos.h (ix86_extract_perm_from_pool_constant):
15709 * config/i386/predicates.md (permvar_truncate_operand): New predicate.
15710 (pshufb_truncv4siv4hi_operand): Ditto.
15711 (pshufb_truncv8hiv8qi_operand): Ditto.
15712 * config/i386/sse.md (*avx512bw_permvar_truncv16siv16hi_1):
15713 New pre_reload define_insn_and_split.
15714 (*avx512f_permvar_truncv8siv8hi_1): Ditto.
15715 (*avx512f_vpermvar_truncv8div8si_1): Ditto.
15716 (*avx512f_permvar_truncv32hiv32qi_1): Ditto.
15717 (*avx512f_permvar_truncv16hiv16qi_1): Ditto.
15718 (*avx512f_permvar_truncv4div4si_1): Ditto.
15719 (*avx512f_pshufb_truncv8hiv8qi_1): Ditto.
15720 (*avx512f_pshufb_truncv4siv4hi_1): Ditto.
15721 (*avx512f_pshufd_truncv2div2si_1): Ditto.
15723 2021-08-16 Kito Cheng <kito.cheng@sifive.com>
15725 * config/riscv/multilib-generator: Support code model option for
15727 * doc/install.texi: Add document of new option for
15728 --with-multilib-generator.
15730 2021-08-15 Clément Chigot <clement.chigot@atos.net>
15732 * config/rs6000/rs6000.c (xcoff_tls_exec_model_detected): New.
15733 (rs6000_legitimize_tls_address_aix): Use it.
15734 (rs6000_xcoff_file_end): Add ".ref __tls_get_addr" when
15735 xcoff_tls_exec_model_detected is true.
15737 2021-08-15 Jeff Law <jlaw@localhost.localdomain>
15739 * config/h8300/h8300.c (shift_alg_si): Retune H8/300H shifts
15740 to allow a bit more code growth, saving many dozens of cycles.
15741 (h8300_option_override): Adjus shift_alg_si if optimizing for
15743 (get_shift_alg): Use special + inline shifts for residuals
15746 2021-08-14 Stafford Horne <shorne@gmail.com>
15749 * config/or1k/or1k-opts.h: New file.
15750 * config/or1k/or1k.c (or1k_legitimize_address_1, print_reloc):
15751 Support generating gotha relocations if -mcmodel=large is
15753 * config/or1k/or1k.h (TARGET_CMODEL_SMALL, TARGET_CMODEL_LARGE):
15755 * config/or1k/or1k.opt (mcmodel=): New option.
15756 * doc/invoke.texi (OpenRISC Options): Document mcmodel.
15758 2021-08-14 Martin Sebor <msebor@redhat.com>
15760 PR middle-end/101791
15761 * gimple-ssa-warn-access.cc (new_delete_mismatch_p): Use new argument
15762 to valid_new_delete_pair_p.
15763 * tree.c (valid_new_delete_pair_p): Add argument.
15764 * tree.h (valid_new_delete_pair_p): Same.
15766 2021-08-14 Jakub Jelinek <jakub@redhat.com>
15769 * config/i386/i386-expand.c (expand_vec_perm_broadcast_1)
15770 <case E_V64QImode>: For this mode assert
15771 !TARGET_AVX512BW || d->perm[0] rather than !TARGET_AVX2 || d->perm[0].
15773 2021-08-13 Michael Meissner <meissner@linux.ibm.com>
15776 * config/rs6000/altivec.md (xxeval): Use register_predicate
15777 instead of altivec_register_predicate.
15779 2021-08-13 Martin Sebor <msebor@redhat.com>
15781 PR middle-end/101734
15782 * tree-ssa-uninit.c (maybe_warn_read_write_only): New function.
15783 (maybe_warn_operand): Call it.
15785 2021-08-13 Martin Liska <mliska@suse.cz>
15788 * attribs.c (decl_attributes): Make naked functions "noipa"
15791 2021-08-13 Martin Liska <mliska@suse.cz>
15794 * symtab.c (symtab_node::noninterposable_alias): Do not create
15795 local aliases for target_clone functions as the clonning pass
15798 2021-08-13 Martin Liska <mliska@suse.cz>
15800 * opts.c (LIVE_PATCHING_OPTION): Define.
15801 (control_options_for_live_patching): Use it in error messages.
15803 2021-08-13 Jan Hubicka <hubicka@ucw.cz>
15805 * ipa-modref.c (dump_eaf_flags): Dump EAF_NOREAD.
15806 (implicit_const_eaf_flags, implicit_pure_eaf_flags,
15807 ignore_stores_eaf_flags): New constants.
15808 (remove_useless_eaf_flags): New function.
15809 (eaf_flags_useful_p): Use it.
15810 (deref_flags): Add EAF_NOT_RETURNED if flag is unused;
15812 (modref_lattice::init): Add EAF_NOREAD.
15813 (modref_lattice::add_escape_point): Do not reacord escape point if
15815 (modref_lattice::merge): EAF_NOESCAPE implies EAF_NODIRECTESCAPE;
15816 use remove_useless_eaf_flags.
15817 (modref_lattice::merge_deref): Use ignore_stores_eaf_flags.
15818 (modref_lattice::merge_direct_load): Add EAF_NOREAD
15819 (analyze_ssa_name_flags): Fix handling EAF_NOT_RETURNED
15820 (analyze_parms): Use remove_useless_eaf_flags.
15821 (ipa_merge_modref_summary_after_inlining): Use ignore_stores_eaf_flags.
15822 (modref_merge_call_site_flags): Add caller and ecf_flags parameter;
15823 use remove_useless_eaf_flags.
15824 (modref_propagate_flags_in_scc): Update.
15825 * ipa-modref.h: Turn eaf_flags_t back to char.
15826 * tree-core.h (EAF_NOT_RETURNED): Fix.
15827 (EAF_NOREAD): New constant
15828 * tree-ssa-alias.c: (ref_maybe_used_by_call_p_1): Check for
15830 * tree-ssa-structalias.c (handle_rhs_call): Handle new flags.
15831 (handle_pure_call): Likewise.
15833 2021-08-12 Jakub Jelinek <jakub@redhat.com>
15835 * tree.def (OMP_MASKED): New tree code.
15836 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_FILTER.
15837 * tree.h (OMP_MASKED_BODY, OMP_MASKED_CLAUSES, OMP_MASKED_COMBINED,
15838 OMP_CLAUSE_FILTER_EXPR): Define.
15839 * tree.c (omp_clause_num_ops): Add OMP_CLAUSE_FILTER entry.
15840 (omp_clause_code_name): Likewise.
15841 (walk_tree_1): Handle OMP_CLAUSE_FILTER.
15842 * tree-nested.c (convert_nonlocal_omp_clauses,
15843 convert_local_omp_clauses): Handle OMP_CLAUSE_FILTER.
15844 (convert_nonlocal_reference_stmt, convert_local_reference_stmt,
15845 convert_gimple_call): Handle GIMPLE_OMP_MASTER.
15846 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_FILTER.
15847 (dump_generic_node): Handle OMP_MASTER.
15848 * gimple.def (GIMPLE_OMP_MASKED): New gimple code.
15849 * gimple.c (gimple_build_omp_masked): New function.
15850 (gimple_copy): Handle GIMPLE_OMP_MASKED.
15851 * gimple.h (gimple_build_omp_masked): Declare.
15852 (gimple_has_substatements): Handle GIMPLE_OMP_MASKED.
15853 (gimple_omp_masked_clauses, gimple_omp_masked_clauses_ptr,
15854 gimple_omp_masked_set_clauses): New inline functions.
15855 (CASE_GIMPLE_OMP): Add GIMPLE_OMP_MASKED.
15856 * gimple-pretty-print.c (dump_gimple_omp_masked): New function.
15857 (pp_gimple_stmt_1): Handle GIMPLE_OMP_MASKED.
15858 * gimple-walk.c (walk_gimple_stmt): Likewise.
15859 * gimple-low.c (lower_stmt): Likewise.
15860 * gimplify.c (is_gimple_stmt): Handle OMP_MASTER.
15861 (gimplify_scan_omp_clauses): Handle OMP_CLAUSE_FILTER. For clauses
15862 that take one expression rather than decl or constant, force
15863 gimplification of that into a SSA_NAME or temporary unless min
15865 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_FILTER.
15866 (gimplify_expr): Handle OMP_MASKED.
15867 * tree-inline.c (remap_gimple_stmt): Handle GIMPLE_OMP_MASKED.
15868 (estimate_num_insns): Likewise.
15869 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_FILTER.
15870 (check_omp_nesting_restrictions): Handle GIMPLE_OMP_MASKED. Adjust
15871 diagnostics for existence of masked construct.
15872 (scan_omp_1_stmt, lower_omp_master, lower_omp_1, diagnose_sb_1,
15873 diagnose_sb_2): Handle GIMPLE_OMP_MASKED.
15874 * omp-expand.c (expand_omp_synch, expand_omp, omp_make_gimple_edges):
15877 2021-08-12 Uroš Bizjak <ubizjak@gmail.com>
15880 * config/i386/i386.md (avx512f_scalef<mode>2): New insn pattern.
15881 (ldexp<mode>3): Use avx512f_scalef<mode>2.
15882 (UNSPEC_SCALEF): Move from ...
15883 * config/i386/sse.md (UNSPEC_SCALEF): ... here.
15885 2021-08-12 Jan Hubicka <hubicka@ucw.cz>
15887 * ipa-split.c (consider_split): Fix condition testing void functions.
15889 2021-08-12 Aldy Hernandez <aldyh@redhat.com>
15891 * doc/invoke.texi: Remove docs for threader-mode param.
15892 * flag-types.h (enum threader_mode): Remove.
15893 * params.opt: Remove threader-mode param.
15894 * tree-ssa-threadbackward.c (class back_threader): Remove
15895 path_is_unreachable_p.
15896 Make find_paths private.
15897 Add maybe_thread and thread_through_all_blocks.
15898 Remove reference marker for m_registry.
15899 Remove reference marker for m_profit.
15900 (back_threader::back_threader): Adjust for registry and profit not
15902 (dump_path): Move down.
15903 (debug): Move down.
15904 (class thread_jumps): Remove.
15905 (class back_threader_registry): Remove m_all_paths.
15907 (thread_jumps::thread_through_all_blocks): Move to back_threader
15909 (fsm_find_thread_path): Remove
15910 (back_threader::maybe_thread): New.
15911 (back_threader::thread_through_all_blocks): Move from
15913 (back_threader_registry::back_threader_registry): Remove
15915 (back_threader_registry::~back_threader_registry): Remove.
15916 (thread_jumps::find_taken_edge): Remove.
15917 (thread_jumps::check_subpath_and_update_thread_path): Remove.
15918 (thread_jumps::maybe_register_path): Remove.
15919 (thread_jumps::handle_phi): Remove.
15920 (handle_assignment_p): Remove.
15921 (thread_jumps::handle_assignment): Remove.
15922 (thread_jumps::fsm_find_control_statement_thread_paths): Remove.
15923 (thread_jumps::find_jump_threads_backwards): Remove.
15924 (thread_jumps::find_jump_threads_backwards_with_ranger): Remove.
15925 (try_thread_blocks): Rename find_jump_threads_backwards to
15927 (pass_early_thread_jumps::execute): Same.
15929 2021-08-12 Tobias Burnus <tobias@codesourcery.com>
15931 * tree-core.h (omp_clause_proc_bind_kind): Add
15932 OMP_CLAUSE_PROC_BIND_PRIMARY.
15933 * tree-pretty-print.c (dump_omp_clause): Add TODO comment to
15934 change 'master' to 'primary' in proc_bind for OpenMP 5.1.
15936 2021-08-12 Claudiu Zissulescu <claziss@synopsys.com>
15938 * common/config/arc/arc-common.c (arc_option_init_struct): Remove
15939 fno-common reference.
15940 * config/arc/arc.c (arc_override_options): Remove overriding of
15943 2021-08-12 Jakub Jelinek <jakub@redhat.com>
15946 * config/i386/i386-expand.c (ix86_expand_vec_one_operand_perm_avx512):
15947 If d->testing_p, return true after performing checks instead of
15948 actually expanding the insn.
15949 (expand_vec_perm_broadcast_1): Handle V32HImode - assert
15950 !TARGET_AVX512BW and return false.
15952 2021-08-12 Eric Botcazou <ebotcazou@gcc.gnu.org>
15954 * configure.ac (PE linker --disable-dynamicbase support): New check.
15955 * configure: Regenerate.
15956 * config.in: Likewise.
15957 * config/i386/mingw32.h (LINK_SPEC_DISABLE_DYNAMICBASE): New define.
15958 (LINK_SPEC): Use it.
15959 * config/i386/mingw-w64.h (LINK_SPEC_DISABLE_DYNAMICBASE): Likewise.
15960 (LINK_SPEC): Likewise.
15962 2021-08-12 liuhongt <hongtao.liu@intel.com>
15965 * config/i386/sse.md (*avx2_zero_extendv16qiv16hi2_2): New
15966 post_reload define_insn_and_split.
15967 (*avx512bw_zero_extendv32qiv32hi2_2): Ditto.
15968 (*sse4_1_zero_extendv8qiv8hi2_4): Ditto.
15969 (*avx512f_zero_extendv16hiv16si2_2): Ditto.
15970 (*avx2_zero_extendv8hiv8si2_2): Ditto.
15971 (*sse4_1_zero_extendv4hiv4si2_4): Ditto.
15972 (*avx512f_zero_extendv8siv8di2_2): Ditto.
15973 (*avx2_zero_extendv4siv4di2_2): Ditto.
15974 (*sse4_1_zero_extendv2siv2di2_4): Ditto.
15975 (VI248_256, VI248_512, VI148_512, VI148_256, VI148_128): New
15978 2021-08-11 Bill Schmidt <wschmidt@linux.ibm.com>
15980 * config/rs6000/rs6000-builtin-new.def: Add always, power5, and
15983 2021-08-11 Bill Schmidt <wschmidt@linux.ibm.com>
15985 * config/rs6000/rs6000-builtin-new.def: Add vsx stanza.
15987 2021-08-11 Bill Schmidt <wschmidt@linux.ibm.com>
15989 * config/rs6000/rs6000-builtin-new.def: Finish altivec stanza.
15990 * config/rs6000/rs6000-call.c (rs6000_init_builtins): Move
15991 initialization of pcvoid_type_node here...
15992 (altivec_init_builtins): ...from here.
15993 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add
15994 RS6000_BTI_const_ptr_void.
15995 (pcvoid_type_node): New macro.
15997 2021-08-11 Richard Biener <rguenther@suse.de>
16000 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not decompose
16001 hard-register accesses.
16003 2021-08-11 Richard Biener <rguenther@suse.de>
16005 * tree-ssa-operands.c (operands_scanner::get_expr_operands):
16006 Do not look at COMPONENT_REF FIELD_DECLs TREE_THIS_VOLATILE
16007 to determine has_volatile_ops.
16009 2021-08-11 Eric Botcazou <ebotcazou@gcc.gnu.org>
16011 * cfgexpand.c (expand_used_vars): Reuse attribs local variable.
16013 2021-08-11 Jan Hubicka <hubicka@ucw.cz>
16014 Alexandre Oliva <oliva@adacore.com>
16016 * ipa-modref.c (modref_lattice::dump): Fix escape_point's min_flags
16018 (modref_lattice::merge_deref): Fix handling of indirect scape points.
16019 (update_escape_summary_1): Likewise.
16020 (update_escape_summary): Likewise.
16021 (ipa_merge_modref_summary_after_inlining): Likewise.
16023 2021-08-11 Richard Biener <rguenther@suse.de>
16025 PR middle-end/101858
16026 * fold-const.c (fold_binary_loc): Guard simplification
16027 of X < (cast) (1 << Y) to integer types.
16029 2021-08-11 Richard Biener <rguenther@suse.de>
16031 PR tree-optimization/101861
16032 * tree-vect-stmts.c (vectorizable_load): Fix error in
16033 previous change with regard to gather vectorization.
16035 2021-08-11 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
16038 * config/arm/arm_neon.h (vdup_n_s8): Replace call to builtin
16040 (vdup_n_s16): Likewise.
16041 (vdup_n_s32): Likewise.
16042 (vdup_n_s64): Likewise.
16043 (vdup_n_u8): Likewise.
16044 (vdup_n_u16): Likewise.
16045 (vdup_n_u32): Likewise.
16046 (vdup_n_u64): Likewise.
16047 (vdup_n_p8): Likewise.
16048 (vdup_n_p16): Likewise.
16049 (vdup_n_p64): Likewise.
16050 (vdup_n_f16): Likewise.
16051 (vdup_n_f32): Likewise.
16052 (vdupq_n_s8): Likewise.
16053 (vdupq_n_s16): Likewise.
16054 (vdupq_n_s32): Likewise.
16055 (vdupq_n_s64): Likewise.
16056 (vdupq_n_u8): Likewise.
16057 (vdupq_n_u16): Likewise.
16058 (vdupq_n_u32): Likewise.
16059 (vdupq_n_u64): Likewise.
16060 (vdupq_n_p8): Likewise.
16061 (vdupq_n_p16): Likewise.
16062 (vdupq_n_p64): Likewise.
16063 (vdupq_n_f16): Likewise.
16064 (vdupq_n_f32): Likewise.
16065 (vmov_n_s8): Replace call to builtin with call to corresponding
16067 (vmov_n_s16): Likewise.
16068 (vmov_n_s32): Likewise.
16069 (vmov_n_s64): Likewise.
16070 (vmov_n_u8): Likewise.
16071 (vmov_n_u16): Likewise.
16072 (vmov_n_u32): Likewise.
16073 (vmov_n_u64): Likewise.
16074 (vmov_n_p8): Likewise.
16075 (vmov_n_p16): Likewise.
16076 (vmov_n_f16): Likewise.
16077 (vmov_n_f32): Likewise.
16078 (vmovq_n_s8): Likewise.
16079 (vmovq_n_s16): Likewise.
16080 (vmovq_n_s32): Likewise.
16081 (vmovq_n_s64): Likewise.
16082 (vmovq_n_u8): Likewise.
16083 (vmovq_n_u16): Likewise.
16084 (vmovq_n_u32): Likewise.
16085 (vmovq_n_u64): Likewise.
16086 (vmovq_n_p8): Likewise.
16087 (vmovq_n_p16): Likewise.
16088 (vmovq_n_f16): Likewise.
16089 (vmovq_n_f32): Likewise.
16090 * config/arm/arm_neon_builtins.def: Remove entries for vdup_n.
16092 2021-08-11 liuhongt <hongtao.liu@intel.com>
16095 * config/i386/i386.md (ldexp<mode>3): Extend to vscalefs[sd]
16096 when TARGET_AVX512F and TARGET_SSE_MATH.
16098 2021-08-10 Jakub Jelinek <jakub@redhat.com>
16101 * config/i386/i386-expand.c (expand_vec_perm_even_odd): Return false
16102 for V32HImode if !TARGET_AVX512BW.
16103 (ix86_vectorize_vec_perm_const) <case E_V32HImode, case E_V64QImode>:
16104 If !TARGET_AVX512BW and TARGET_AVX512F and d.testing_p, don't fail
16105 early, but actually check the permutation.
16107 2021-08-10 Richard Biener <rguenther@suse.de>
16109 PR tree-optimization/101809
16110 * tree-vect-stmts.c (get_load_store_type): Allow emulated
16111 gathers with offset vector nunits being a constant multiple
16112 of the data vector nunits.
16113 (vect_get_gather_scatter_ops): Use the appropriate nunits
16114 for the offset vector defs.
16115 (vectorizable_store): Adjust call to
16116 vect_get_gather_scatter_ops.
16117 (vectorizable_load): Likewise. Handle the case of less
16118 offset vectors than data vectors.
16120 2021-08-10 Jakub Jelinek <jakub@redhat.com>
16123 * config/i386/sse.md (*avx512f_shuf_<shuffletype>64x2_1<mask_name>_1,
16124 *avx512f_shuf_<shuffletype>32x4_1<mask_name>_1): New define_insn
16127 2021-08-10 Richard Biener <rguenther@suse.de>
16129 PR tree-optimization/101801
16130 PR tree-optimization/101819
16131 * tree-vectorizer.h (vect_emulated_vector_p): Declare.
16132 * tree-vect-loop.c (vect_emulated_vector_p): New function.
16133 (vectorizable_reduction): Re-instantiate a check for emulated
16135 * tree-vect-stmts.c (vectorizable_shift): Likewise.
16136 (vectorizable_operation): Likewise. Cost emulated vector
16137 operations according to the scalar sequence synthesized by
16140 2021-08-10 Richard Biener <rguenther@suse.de>
16142 PR middle-end/101824
16143 * tree-nested.c (get_frame_field): Mark the COMPONENT_REF as
16144 volatile in case the variable was.
16146 2021-08-10 H.J. Lu <hjl.tools@gmail.com>
16149 * config/i386/constraints.md (BC): Document for integer SSE
16150 constant all bits set operand.
16151 (BF): New constraint for const floating-point all bits set
16153 * config/i386/i386.c (standard_sse_constant_p): Likewise.
16154 (standard_sse_constant_opcode): Likewise.
16155 * config/i386/sse.md (sseconstm1): New mode attribute.
16156 (mov<mode>_internal): Replace BC with <sseconstm1>.
16158 2021-08-10 liuhongt <hongtao.liu@intel.com>
16160 * config/i386/sse.md (cond_<insn><mode>): New expander.
16161 (VI248_AVX512VLBW): New mode iterator.
16162 * config/i386/predicates.md
16163 (nonimmediate_or_const_vec_dup_operand): New predicate.
16165 2021-08-09 Andrew MacLeod <amacleod@redhat.com>
16167 PR tree-optimization/101741
16168 * gimple-range-fold.cc (fold_using_range::range_of_builtin_call): Check
16169 type of parameter for toupper/tolower.
16171 2021-08-09 Martin Jambor <mjambor@suse.cz>
16173 PR testsuite/101654
16174 * ipa-prop.c (propagate_controlled_uses): Removed a spurious space.
16176 2021-08-09 Pat Haugen <pthaugen@linux.ibm.com>
16178 * config/rs6000/rs6000.c (is_load_insn1): Verify destination is a
16180 (is_store_insn1): Verify source is a register.
16182 2021-08-09 Uroš Bizjak <ubizjak@gmail.com>
16185 * config/i386/mmx.md (<any_logic:code>v2sf3):
16186 Rename from *mmx_<any_logic:code>v2sf3
16188 2021-08-09 Thomas Schwinge <thomas@codesourcery.com>
16190 * config/nvptx/nvptx.c: Cross-reference parts adapted in
16191 'gcc/omp-oacc-neuter-broadcast.cc'.
16192 * omp-low.c: Likewise.
16193 * omp-oacc-neuter-broadcast.cc: Cross-reference parts adapted from
16196 2021-08-09 Julian Brown <julian@codesourcery.com>
16197 Kwok Cheung Yeung <kcy@codesourcery.com>
16198 Thomas Schwinge <thomas@codesourcery.com>
16200 * config/gcn/gcn.c (gcn_init_builtins): Override decls for
16201 BUILT_IN_GOACC_SINGLE_START, BUILT_IN_GOACC_SINGLE_COPY_START,
16202 BUILT_IN_GOACC_SINGLE_COPY_END and BUILT_IN_GOACC_BARRIER.
16203 (gcn_goacc_validate_dims): Turn on worker partitioning unconditionally.
16204 (gcn_fork_join): Update comment.
16205 * config/gcn/gcn.opt (flag_worker_partitioning): Remove.
16206 (macc_experimental_workers): Remove unused option.
16208 2021-08-09 Julian Brown <julian@codesourcery.com>
16209 Nathan Sidwell <nathan@codesourcery.com> (via 'gcc/config/nvptx/nvptx.c' master)
16210 Kwok Cheung Yeung <kcy@codesourcery.com>
16211 Thomas Schwinge <thomas@codesourcery.com>
16213 * Makefile.in (OBJS): Add omp-oacc-neuter-broadcast.o.
16214 * doc/tm.texi.in (TARGET_GOACC_CREATE_WORKER_BROADCAST_RECORD):
16215 Add documentation hook.
16216 * doc/tm.texi: Regenerate.
16217 * omp-oacc-neuter-broadcast.cc: New file.
16218 * omp-builtins.def (BUILT_IN_GOACC_BARRIER)
16219 (BUILT_IN_GOACC_SINGLE_START, BUILT_IN_GOACC_SINGLE_COPY_START)
16220 (BUILT_IN_GOACC_SINGLE_COPY_END): New builtins.
16221 * passes.def (pass_omp_oacc_neuter_broadcast): Add pass.
16222 * target.def (goacc.create_worker_broadcast_record): Add target
16224 * tree-pass.h (make_pass_omp_oacc_neuter_broadcast): Add
16226 * config/gcn/gcn-protos.h (gcn_goacc_adjust_propagation_record):
16227 Rename prototype to...
16228 (gcn_goacc_create_worker_broadcast_record): ... this.
16229 * config/gcn/gcn-tree.c (gcn_goacc_adjust_propagation_record): Rename
16231 (gcn_goacc_create_worker_broadcast_record): ... this.
16232 * config/gcn/gcn.c (TARGET_GOACC_ADJUST_PROPAGATION_RECORD):
16234 (TARGET_GOACC_CREATE_WORKER_BROADCAST_RECORD): ... this.
16236 2021-08-09 Tejas Belagod <tejas.belagod@arm.com>
16239 * config/aarch64/aarch64-simd.md (vlshr<mode>3, vashr<mode>3): Use
16240 the right iterator.
16242 2021-08-09 Thomas Schwinge <thomas@codesourcery.com>
16244 * Makefile.in (GTFILES): Remove '$(srcdir)/omp-offload.c'.
16246 2021-08-09 Thomas Schwinge <thomas@codesourcery.com>
16248 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOMP_BUILTIN): Don't
16249 consider '-foffload-abi'.
16250 * common.opt (-foffload-abi): Remove 'Var', 'Init'.
16251 * opts.c (common_handle_option) <-foffload-abi> [ACCEL_COMPILER]:
16254 2021-08-09 Thomas Schwinge <thomas@codesourcery.com>
16256 * optc-gen.awk: Sanity check that 'Init' doesn't appear without
16259 2021-08-09 Thomas Schwinge <thomas@codesourcery.com>
16261 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE): Remove.
16263 2021-08-09 Thomas Schwinge <thomas@codesourcery.com>
16265 * doc/gty.texi (Files): Update.
16267 2021-08-09 Thomas Schwinge <thomas@codesourcery.com>
16269 * doc/gty.texi (Files): Fix GTY header file example.
16271 2021-08-09 Roger Sayle <roger@nextmovesoftware.com>
16273 * tree-ssa-ccp.c (value_mask_to_min_max): Helper function to
16274 determine the upper and lower bounds from a mask-value pair.
16275 (bit_value_unop) [ABS_EXPR, ABSU_EXPR]: Add support for
16276 absolute value and unsigned absolute value expressions.
16277 (bit_value_binop): Initialize *VAL's precision.
16278 [LT_EXPR, LE_EXPR]: Use value_mask_to_min_max to determine
16279 upper and lower bounds of operands. Add LE_EXPR/GE_EXPR
16280 support when the operands are unknown but potentially equal.
16281 [MIN_EXPR, MAX_EXPR]: Support minimum/maximum expressions.
16283 2021-08-09 Bin Cheng <bin.cheng@linux.alibaba.com>
16285 * config/aarch64/aarch64.md
16286 (*extend<SHORT:mode><GPI:mode>2_aarch64): Use %<GPI:w>0.
16288 2021-08-08 Sergei Trofimovich <siarheit@google.com>
16290 * lra-constraints.c: Fix s/otput/output/ typo.
16292 2021-08-06 Martin Sebor <msebor@redhat.com>
16294 * builtins.c (expand_builtin_memchr): Move to gimple-ssa-warn-access.cc.
16295 (expand_builtin_strcat): Same.
16296 (expand_builtin_stpncpy): Same.
16297 (expand_builtin_strncat): Same.
16298 (check_read_access): Same.
16299 (check_memop_access): Same.
16300 (expand_builtin_strlen): Move checks to gimple-ssa-warn-access.cc.
16301 (expand_builtin_strnlen): Same.
16302 (expand_builtin_memcpy): Same.
16303 (expand_builtin_memmove): Same.
16304 (expand_builtin_mempcpy): Same.
16305 (expand_builtin_strcpy): Same.
16306 (expand_builtin_strcpy_args): Same.
16307 (expand_builtin_stpcpy_1): Same.
16308 (expand_builtin_strncpy): Same.
16309 (expand_builtin_memset): Same.
16310 (expand_builtin_bzero): Same.
16311 (expand_builtin_strcmp): Same.
16312 (expand_builtin_strncmp): Same.
16313 (expand_builtin): Remove handlers.
16314 (fold_builtin_strlen): Add a comment.
16315 * builtins.h (check_access): Move to gimple-ssa-warn-access.cc.
16316 * calls.c (maybe_warn_nonstring_arg): Same.
16317 * diagnostic-spec.c (nowarn_spec_t::nowarn_spec_t): Add warning option.
16318 * gimple-fold.c (gimple_fold_builtin_strcpy): Pass argument to callee.
16319 (gimple_fold_builtin_stpcpy): Same.
16320 * gimple-ssa-warn-access.cc (has_location): New function.
16321 (get_location): Same.
16322 (get_callee_fndecl): Same.
16323 (call_nargs): Same.
16325 (warn_string_no_nul): Define.
16326 (unterminated_array): Same.
16327 (check_nul_terminated_array): Same.
16328 (maybe_warn_nonstring_arg): Same.
16329 (maybe_warn_for_bound): Same.
16330 (warn_for_access): Same.
16331 (check_access): Same.
16332 (check_memop_access): Same.
16333 (check_read_access): Same.
16334 (warn_dealloc_offset): Use helper functions.
16335 (maybe_emit_free_warning): Same.
16336 (class pass_waccess): Add members.
16337 (check_strcat): New function.
16338 (check_strncat): New function.
16339 (check_stxcpy): New function.
16340 (check_stxncpy): New function.
16341 (check_strncmp): New function.
16342 (pass_waccess::check_builtin): New function.
16343 (pass_waccess::check): Call it.
16344 * gimple-ssa-warn-access.h (warn_string_no_nul): Move here from
16346 (maybe_warn_for_bound): Same.
16347 (check_access): Same.
16348 (check_memop_access): Same.
16349 (check_read_access): Same.
16350 * pointer-query.h (struct access_data): Define a ctor overload.
16352 2021-08-06 Richard Biener <rguenther@suse.de>
16354 PR tree-optimization/101801
16355 * tree-vectorizer.h (vect_worthwhile_without_simd_p): Rename...
16356 (vect_can_vectorize_without_simd_p): ... to this.
16357 * tree-vect-loop.c (vect_worthwhile_without_simd_p): Rename...
16358 (vect_can_vectorize_without_simd_p): ... to this and fold
16359 in vect_min_worthwhile_factor.
16360 (vect_min_worthwhile_factor): Remove.
16361 (vectorizable_reduction): Adjust and remove the cost part.
16362 * tree-vect-stmts.c (vectorizable_shift): Likewise.
16363 (vectorizable_operation): Likewise.
16365 2021-08-06 Uroš Bizjak <ubizjak@gmail.com>
16368 * config/i386/i386.md (cmove reg-to-reg move elimination peephole2s):
16369 Add general_gr_operand predicate to operand 3.
16371 2021-08-06 Roger Sayle <roger@nextmovesoftware.com>
16373 * tree-ssa-phiopt.c (cond_removal_in_builtin_zero_pattern): Use
16374 CFN_BUILT_IN_CLRSB* instead of BUILT_IN_CLRSB* for consistency.
16376 2021-08-06 Tamar Christina <tamar.christina@arm.com>
16378 * config/aarch64/aarch64-sve-builtins.cc (register_svpattern,
16379 register_svprfop): Pass vec<> by pointer.
16380 * langhooks-def.h (lhd_simulate_enum_decl): Likewise.
16381 * langhooks.c (lhd_simulate_enum_decl): Likewise.
16382 * langhooks.h (struct lang_hooks_for_types): Likewise.
16384 2021-08-06 Jonathan Wright <jonathan.wright@arm.com>
16386 * config/aarch64/arm_neon.h (vst1_bf16_x2): Use
16387 __builtin_memcpy instead of constructing an additional
16388 __builtin_aarch64_simd_oi one vector at a time.
16389 (vst1q_bf16_x2): Likewise.
16390 (vst1_bf16_x3): Use __builtin_memcpy instead of constructing
16391 an additional __builtin_aarch64_simd_ci one vector at a time.
16392 (vst1q_bf16_x3): Likewise.
16393 (vst1_bf16_x4): Use __builtin_memcpy instead of a union.
16394 (vst1q_bf16_x4): Likewise.
16395 (vst2_bf16): Use __builtin_memcpy instead of constructing an
16396 additional __builtin_aarch64_simd_oi one vector at a time.
16397 (vst2q_bf16): Likewise.
16398 (vst3_bf16): Use __builtin_memcpy instead of constructing an
16399 additional __builtin_aarch64_simd_ci mode one vector at a
16401 (vst3q_bf16): Likewise.
16402 (vst4_bf16): Use __builtin_memcpy instead of constructing an
16403 additional __builtin_aarch64_simd_xi one vector at a time.
16404 (vst4q_bf16): Likewise.
16406 2021-08-06 Jonathan Wright <jonathan.wright@arm.com>
16408 * config/aarch64/arm_neon.h (__ST2_LANE_FUNC): Delete.
16409 (__ST2Q_LANE_FUNC): Delete.
16410 (vst2_lane_f16): Use __builtin_memcpy to copy vector
16411 structure instead of constructing __builtin_aarch64_simd_oi
16412 one vector at a time.
16413 (vst2_lane_f32): Likewise.
16414 (vst2_lane_f64): Likewise.
16415 (vst2_lane_p8): Likewise.
16416 (vst2_lane_p16): Likewise.
16417 (vst2_lane_p64): Likewise.
16418 (vst2_lane_s8): Likewise.
16419 (vst2_lane_s16): Likewise.
16420 (vst2_lane_s32): Likewise.
16421 (vst2_lane_s64): Likewise.
16422 (vst2_lane_u8): Likewise.
16423 (vst2_lane_u16): Likewise.
16424 (vst2_lane_u32): Likewise.
16425 (vst2_lane_u64): Likewise.
16426 (vst2_lane_bf16): Likewise.
16427 (vst2q_lane_f16): Use __builtin_memcpy to copy vector
16428 structure instead of using a union.
16429 (vst2q_lane_f32): Likewise.
16430 (vst2q_lane_f64): Likewise.
16431 (vst2q_lane_p8): Likewise.
16432 (vst2q_lane_p16): Likewise.
16433 (vst2q_lane_p64): Likewise.
16434 (vst2q_lane_s8): Likewise.
16435 (vst2q_lane_s16): Likewise.
16436 (vst2q_lane_s32): Likewise.
16437 (vst2q_lane_s64): Likewise.
16438 (vst2q_lane_u8): Likewise.
16439 (vst2q_lane_u16): Likewise.
16440 (vst2q_lane_u32): Likewise.
16441 (vst2q_lane_u64): Likewise.
16442 (vst2q_lane_bf16): Likewise.
16444 2021-08-06 Jonathan Wright <jonathan.wright@arm.com>
16446 * config/aarch64/arm_neon.h (__ST3_LANE_FUNC): Delete.
16447 (__ST3Q_LANE_FUNC): Delete.
16448 (vst3_lane_f16): Use __builtin_memcpy to copy vector
16449 structure instead of constructing __builtin_aarch64_simd_ci
16450 one vector at a time.
16451 (vst3_lane_f32): Likewise.
16452 (vst3_lane_f64): Likewise.
16453 (vst3_lane_p8): Likewise.
16454 (vst3_lane_p16): Likewise.
16455 (vst3_lane_p64): Likewise.
16456 (vst3_lane_s8): Likewise.
16457 (vst3_lane_s16): Likewise.
16458 (vst3_lane_s32): Likewise.
16459 (vst3_lane_s64): Likewise.
16460 (vst3_lane_u8): Likewise.
16461 (vst3_lane_u16): Likewise.
16462 (vst3_lane_u32): Likewise.
16463 (vst3_lane_u64): Likewise.
16464 (vst3_lane_bf16): Likewise.
16465 (vst3q_lane_f16): Use __builtin_memcpy to copy vector
16466 structure instead of using a union.
16467 (vst3q_lane_f32): Likewise.
16468 (vst3q_lane_f64): Likewise.
16469 (vst3q_lane_p8): Likewise.
16470 (vst3q_lane_p16): Likewise.
16471 (vst3q_lane_p64): Likewise.
16472 (vst3q_lane_s8): Likewise.
16473 (vst3q_lane_s16): Likewise.
16474 (vst3q_lane_s32): Likewise.
16475 (vst3q_lane_s64): Likewise.
16476 (vst3q_lane_u8): Likewise.
16477 (vst3q_lane_u16): Likewise.
16478 (vst3q_lane_u32): Likewise.
16479 (vst3q_lane_u64): Likewise.
16480 (vst3q_lane_bf16): Likewise.
16482 2021-08-06 Jonathan Wright <jonathan.wright@arm.com>
16484 * config/aarch64/arm_neon.h (__ST4_LANE_FUNC): Delete.
16485 (__ST4Q_LANE_FUNC): Delete.
16486 (vst4_lane_f16): Use __builtin_memcpy to copy vector
16487 structure instead of constructing __builtin_aarch64_simd_xi
16488 one vector at a time.
16489 (vst4_lane_f32): Likewise.
16490 (vst4_lane_f64): Likewise.
16491 (vst4_lane_p8): Likewise.
16492 (vst4_lane_p16): Likewise.
16493 (vst4_lane_p64): Likewise.
16494 (vst4_lane_s8): Likewise.
16495 (vst4_lane_s16): Likewise.
16496 (vst4_lane_s32): Likewise.
16497 (vst4_lane_s64): Likewise.
16498 (vst4_lane_u8): Likewise.
16499 (vst4_lane_u16): Likewise.
16500 (vst4_lane_u32): Likewise.
16501 (vst4_lane_u64): Likewise.
16502 (vst4_lane_bf16): Likewise.
16503 (vst4q_lane_f16): Use __builtin_memcpy to copy vector
16504 structure instead of using a union.
16505 (vst4q_lane_f32): Likewise.
16506 (vst4q_lane_f64): Likewise.
16507 (vst4q_lane_p8): Likewise.
16508 (vst4q_lane_p16): Likewise.
16509 (vst4q_lane_p64): Likewise.
16510 (vst4q_lane_s8): Likewise.
16511 (vst4q_lane_s16): Likewise.
16512 (vst4q_lane_s32): Likewise.
16513 (vst4q_lane_s64): Likewise.
16514 (vst4q_lane_u8): Likewise.
16515 (vst4q_lane_u16): Likewise.
16516 (vst4q_lane_u32): Likewise.
16517 (vst4q_lane_u64): Likewise.
16518 (vst4q_lane_bf16): Likewise.
16520 2021-08-06 Martin Liska <mliska@suse.cz>
16522 * config/rs6000/rs6000.c (rs6000_option_override_internal): When
16523 a target option is restored, it can have
16524 rs6000_long_double_type_size set to FLOAT_PRECISION_TFmode
16525 and error should not be emitted.
16527 2021-08-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
16529 * gcov-io.h (gcov_write): Declare.
16530 * gcov-io.c (gcov_write): New.
16531 (gcov_write_counter): Remove.
16532 (gcov_write_tag_length): Likewise.
16533 (gcov_write_summary): Replace gcov_write_tag_length() with calls to
16534 gcov_write_unsigned().
16535 * doc/invoke.texi (fprofile-info-section): Mention
16536 __gcov_info_to_gdca().
16538 2021-08-06 Martin Sebor <msebor@redhat.com>
16540 * dominance.c (prune_bbs_to_update_dominators): Adjust by-value vec
16541 arguments to by-reference.
16542 (iterate_fix_dominators): Same.
16543 * dominance.h (iterate_fix_dominators): Same.
16544 * ipa-prop.h: Call auto_vec::to_vec_legacy.
16545 * tree-data-ref.c (dump_data_dependence_relation): Adjust by-value vec
16546 arguments to by-reference.
16547 (debug_data_dependence_relation): Same.
16548 (dump_data_dependence_relations): Same.
16549 * tree-data-ref.h (debug_data_dependence_relation): Same.
16550 (dump_data_dependence_relations): Same.
16551 * tree-predcom.c (dump_chains): Same.
16552 (initialize_root_vars_lm): Same.
16553 (determine_unroll_factor): Same.
16554 (replace_phis_by_defined_names): Same.
16555 (insert_init_seqs): Same.
16556 (pcom_worker::tree_predictive_commoning_loop): Call
16557 auto_vec::to_vec_legacy.
16558 * tree-ssa-pre.c (insert_into_preds_of_block): Adjust by-value vec
16559 arguments to by-reference.
16560 * tree-ssa-threadbackward.c (populate_worklist): Same.
16561 (back_threader::resolve_def): Same.
16562 * tree-vect-data-refs.c (vect_check_nonzero_value): Same.
16563 (vect_enhance_data_refs_alignment): Same.
16564 (vect_check_lower_bound): Same.
16565 (vect_prune_runtime_alias_test_list): Same.
16566 (vect_permute_store_chain): Same.
16567 * tree-vect-slp-patterns.c (vect_normalize_conj_loc): Same.
16568 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Same.
16569 * tree-vectorizer.h (vect_permute_store_chain): Same.
16570 * vec.c (test_init): New function.
16571 (vec_c_tests): Call new function.
16572 * vec.h (vec): Declare ctors, dtor, and assignment.
16573 (auto_vec::vec_to_legacy): New function.
16574 (vec::copy): Adjust initialization.
16576 2021-08-05 H.J. Lu <hjl.tools@gmail.com>
16579 * config/i386/i386.c (ix86_can_inline_p): Ignore MASK_80387 if
16580 callee only uses GPRs.
16581 * config/i386/ia32intrin.h: Revert commit 5463cee2770.
16582 * config/i386/serializeintrin.h: Revert commit 71958f740f1.
16583 * config/i386/x86gprintrin.h: Add
16584 #pragma GCC target("general-regs-only") and #pragma GCC pop_options
16585 to disable non-GPR ISAs.
16587 2021-08-05 Richard Sandiford <richard.sandiford@arm.com>
16589 PR middle-end/101787
16590 * doc/md.texi (cond_ashl, cond_ashr, cond_lshr): Document.
16592 2021-08-05 Richard Sandiford <richard.sandiford@arm.com>
16594 * tree-vectorizer.h (vect_is_store_elt_extraction, vect_is_reduction)
16595 (vect_reduc_type, vect_embedded_comparison_type, vect_comparison_type)
16596 (vect_is_extending_load, vect_is_integer_truncation): New functions,
16597 moved from aarch64.c but given different names.
16598 * config/aarch64/aarch64.c (aarch64_is_store_elt_extraction)
16599 (aarch64_is_reduction, aarch64_reduc_type)
16600 (aarch64_embedded_comparison_type, aarch64_comparison_type)
16601 (aarch64_extending_load_p, aarch64_integer_truncation_p): Delete
16602 in favor of the above. Update callers accordingly.
16604 2021-08-05 Richard Earnshaw <rearnsha@arm.com>
16607 * config/arm/arm-cpus.in (generic-armv7-a): Add quirk to suppress
16608 writing .cpu directive in asm output.
16609 * config/arm/arm.c (arm_identify_fpu_from_isa): New variable.
16610 (arm_last_printed_arch_string): Delete.
16611 (arm_last-printed_fpu_string): Delete.
16612 (arm_configure_build_target): If use of floating-point/SIMD is
16613 disabled, remove all fp/simd related features from the target ISA.
16614 (last_arm_targ_options): New variable.
16615 (arm_print_asm_arch_directives): Add new parameters. Change order
16616 of emitted directives and handle all cases here.
16617 (arm_file_start): Always call arm_print_asm_arch_directives, move
16618 all generation of .arch/.arch_extension here.
16619 (arm_file_end): Call arm_print_asm_arch.
16620 (arm_declare_function_name): Call arm_print_asm_arch_directives
16621 instead of printing .arch/.fpu directives directly.
16623 2021-08-05 Richard Earnshaw <rearnsha@arm.com>
16625 * config/arm/arm.c (arm_configure_build_target): Don't call
16626 arm_option_reconfigure_globals.
16627 (arm_option_restore): Call arm_option_reconfigure_globals after
16628 reconfiguring the target.
16629 * config/arm/arm-c.c (arm_pragma_target_parse): Likewise.
16631 2021-08-05 Richard Earnshaw <rearnsha@arm.com>
16633 * config/arm/arm.c (arm_configure_build_target): Ensure the target's
16634 arch_name is always set.
16636 2021-08-05 Jonathan Wright <jonathan.wright@arm.com>
16638 * config/aarch64/aarch64.c: Traverse RTL tree to prevent cost
16639 of vec_select high-half from being added into Neon subtract
16642 2021-08-05 Jonathan Wright <jonathan.wright@arm.com>
16644 * config/aarch64/aarch64.c: Traverse RTL tree to prevent cost
16645 of vec_select high-half from being added into Neon add cost.
16647 2021-08-05 Kewen Lin <linkw@linux.ibm.com>
16649 * cfgloop.h (loops_list::loops_list): Add one optional argument
16650 root and adjust accordingly, update loop tree walking and factor
16652 * cfgloop.c (loops_list::walk_loop_tree): ... this. New function.
16654 2021-08-05 Eric Botcazou <ebotcazou@gcc.gnu.org>
16656 PR tree-optimization/101626
16657 * tree-sra.c (propagate_subaccesses_from_rhs): Do not set the
16658 reverse scalar storage order on a pointer or vector component.
16660 2021-08-05 liuhongt <hongtao.liu@intel.com>
16662 * config/i386/sse.md (cond_<code><mode>): New expander.
16664 2021-08-05 liuhongt <hongtao.liu@intel.com>
16666 * config/i386/sse.md (cond_<code><mode>): New expander.
16668 2021-08-05 liuhongt <hongtao.liu@intel.com>
16670 * config/i386/sse.md (cond_<code><mode>): New expander.
16672 2021-08-04 David Malcolm <dmalcolm@redhat.com>
16675 * Makefile.in (ANALYZER_OBJS): Add analyzer/region-model-asm.o.
16677 2021-08-04 H.J. Lu <hjl.tools@gmail.com>
16680 * config/i386/i386.h (STORE_MAX_PIECES): Allow 16/32/64 bytes
16681 only if TARGET_INTER_UNIT_MOVES_TO_VEC is true.
16683 2021-08-04 H.J. Lu <hjl.tools@gmail.com>
16686 * config/i386/i386-expand.c (ix86_expand_vector_move): Call
16687 ix86_gen_scratch_sse_rtx to get a scratch SSE register to copy
16688 data with SSE register from one memory location to another.
16690 2021-08-04 Andreas Krebbel <krebbel@linux.ibm.com>
16692 * config/s390/s390.c (expand_perm_with_vpdi): New function.
16693 (vectorize_vec_perm_const_1): Call expand_perm_with_vpdi.
16694 * config/s390/vector.md (*vpdi1<mode>, @vpdi1<mode>): Enable a
16695 parameterized expander.
16696 (*vpdi4<mode>, @vpdi4<mode>): Likewise.
16698 2021-08-04 Andreas Krebbel <krebbel@linux.ibm.com>
16700 * config/s390/s390.c (MAX_VECT_LEN): Define macro.
16701 (struct expand_vec_perm_d): Define struct.
16702 (expand_perm_with_merge): New function.
16703 (vectorize_vec_perm_const_1): New function.
16704 (s390_vectorize_vec_perm_const): New function.
16705 (TARGET_VECTORIZE_VEC_PERM_CONST): Define target macro.
16707 2021-08-04 Andreas Krebbel <krebbel@linux.ibm.com>
16709 * config/s390/vector.md (V_HW_64): Remove mode iterator.
16710 (*vec_load_pair<mode>): Use V_HW_2 instead of V_HW_64.
16711 * config/s390/vx-builtins.md
16712 (vec_scatter_element<V_HW_2:mode>_SI): Use V_HW_2 instead of
16715 2021-08-04 Andreas Krebbel <krebbel@linux.ibm.com>
16717 * config/s390/s390.md (UNSPEC_VEC_PERMI): Remove constant
16719 * config/s390/vector.md (*vpdi1<mode>, *vpdi4<mode>): New pattern
16721 * config/s390/vx-builtins.md (*vec_permi<mode>): Emit generic rtx
16722 instead of an unspec.
16724 2021-08-04 Andreas Krebbel <krebbel@linux.ibm.com>
16726 * config/s390/s390-modes.def: Add more vector modes to support
16727 concatenation of two vectors.
16728 * config/s390/s390-protos.h (s390_expand_merge_perm_const): Add
16730 (s390_expand_merge): Likewise.
16731 * config/s390/s390.c (s390_expand_merge_perm_const): New function.
16732 (s390_expand_merge): New function.
16733 * config/s390/s390.md (UNSPEC_VEC_MERGEH, UNSPEC_VEC_MERGEL):
16734 Remove constant definitions.
16735 * config/s390/vector.md (V_HW_2): Add mode iterators.
16736 (VI_HW_4, V_HW_4): Rename VI_HW_4 to V_HW_4.
16737 (vec_2x_nelts, vec_2x_wide): New mode attributes.
16738 (*vmrhb, *vmrlb, *vmrhh, *vmrlh, *vmrhf, *vmrlf, *vmrhg, *vmrlg):
16739 New pattern definitions.
16740 (vec_widen_umult_lo_<mode>, vec_widen_umult_hi_<mode>)
16741 (vec_widen_smult_lo_<mode>, vec_widen_smult_hi_<mode>)
16742 (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf, vec_unpacks_lo_v2df)
16743 (vec_unpacks_hi_v2df): Adjust expanders to emit non-unspec RTX for
16745 * config/s390/vx-builtins.md (V_HW_4): Remove mode iterator. Now
16747 (vec_mergeh<mode>, vec_mergel<mode>): Use s390_expand_merge to
16748 emit vec merge pattern.
16750 2021-08-04 Jonathan Wright <jonathan.wright@arm.com>
16752 * config/aarch64/aarch64.c (aarch64_strip_extend_vec_half):
16754 (aarch64_rtx_mult_cost): Traverse RTL tree to prevent cost of
16755 vec_select high-half from being added into Neon multiply
16757 * rtlanal.c (vec_series_highpart_p): Define.
16758 * rtlanal.h (vec_series_highpart_p): Declare.
16760 2021-08-04 Jonathan Wright <jonathan.wright@arm.com>
16762 * config/aarch64/aarch64.c (aarch64_strip_duplicate_vec_elt):
16764 (aarch64_rtx_mult_cost): Traverse RTL tree to prevent
16765 vec_select cost from being added into Neon multiply cost.
16767 2021-08-04 Richard Sandiford <richard.sandiford@arm.com>
16769 * tree-vect-loop.c (vect_better_loop_vinfo_p): Detect cases in
16770 which old_loop_vinfo is an epilogue loop that handles a constant
16771 number of iterations.
16773 2021-08-04 Richard Sandiford <richard.sandiford@arm.com>
16775 * tree-vect-loop.c (vect_analyze_loop): Print a dump message
16776 when a reanalyzed loop fails to be cheaper than the current
16779 2021-08-04 Richard Sandiford <richard.sandiford@arm.com>
16781 * config/aarch64/aarch64.c: Fix a typo.
16783 2021-08-04 Vincent Lefèvre <vincent-gcc@vinc17.net>
16785 PR gcov-profile/101773
16786 * gcov-io.c (gcov_close): Check return code of a fclose.
16788 2021-08-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
16791 * dwarf2out.c (dwarf2out_assembly_start): Emit a dummy
16792 .file statement when needed.
16794 2021-08-04 Richard Biener <rguenther@suse.de>
16796 * tree-vect-data-refs.c (vect_check_gather_scatter):
16797 Include widening conversions only when the result is
16798 still handed by native gather or the current offset
16799 size not already matches the data size.
16800 Also succeed analysis in case there's no native support,
16801 noted by a IFN_LAST ifn and a NULL decl.
16802 (vect_analyze_data_refs): Always consider gathers.
16803 * tree-vect-patterns.c (vect_recog_gather_scatter_pattern):
16804 Test for no IFN gather rather than decl gather.
16805 * tree-vect-stmts.c (vect_model_load_cost): Pass in the
16806 gather-scatter info and cost emulated gathers accordingly.
16807 (vect_truncate_gather_scatter_offset): Properly test for
16809 (vect_use_strided_gather_scatters_p): Likewise.
16810 (get_load_store_type): Handle emulated gathers and its
16812 (vectorizable_load): Likewise. Emulate them by extracting
16813 scalar offsets, doing scalar loads and a vector construct.
16815 2021-08-04 H.J. Lu <hjl.tools@gmail.com>
16818 * expr.c (op_by_pieces_d::op_by_pieces_d): Add a max_pieces
16819 argument to set m_max_size.
16820 (move_by_pieces_d): Pass MOVE_MAX_PIECES to op_by_pieces_d.
16821 (store_by_pieces_d): Pass STORE_MAX_PIECES to op_by_pieces_d.
16822 (compare_by_pieces_d): Pass COMPARE_MAX_PIECES to op_by_pieces_d.
16824 2021-08-04 Roger Sayle <roger@nextmovesoftware.com>
16825 Marc Glisse <marc.glisse@inria.fr>
16827 * match.pd (bit_ior, bit_xor): Canonicalize (X*C1)|(X*C2) and
16828 (X*C1)^(X*C2) as X*(C1+C2), and related variants, using
16829 tree_nonzero_bits to ensure that operands are bit-wise disjoint.
16831 2021-08-04 Richard Biener <rguenther@suse.de>
16833 * tree-ssa-forwprop.c (pass_forwprop::execute): Split
16834 out code to decompose vector loads ...
16835 (optimize_vector_load): ... here. Generalize it to
16836 handle intermediate widening and TARGET_MEM_REF loads
16837 and apply it to loads with a supported vector mode as well.
16839 2021-08-04 Richard Biener <rguenther@suse.de>
16841 PR tree-optimization/101756
16842 * tree-vect-slp.c (vectorizable_bb_reduc_epilogue): Make sure
16843 the result of the reduction epilogue is compatible to the original
16846 2021-08-04 liuhongt <hongtao.liu@intel.com>
16849 * config/i386/i386.md (peephole2): Refine predicate from
16850 register_operand to general_reg_operand.
16852 2021-08-04 Aldy Hernandez <aldyh@redhat.com>
16854 * gimple-range-path.h (path_range_query::dump): Mark override.
16856 2021-08-04 Richard Biener <rguenther@suse.de>
16858 PR tree-optimization/101769
16859 * tree-tailcall.c (eliminate_tail_call): Add the created loop
16860 for the first recursion and return it via the new output parameter.
16861 (optimize_tail_call): Pass through new output param.
16862 (tree_optimize_tail_calls_1): After creating all latches,
16863 add the created loop to the loop tree. Do not mark loops for fixup.
16865 2021-08-04 Martin Liska <mliska@suse.cz>
16867 * doc/invoke.texi: Document threader-mode param.
16869 2021-08-04 liuhongt <hongtao.liu@intel.com>
16871 * config/i386/sse.md (cond_fma<mode>): New expander.
16872 (cond_fms<mode>): Ditto.
16873 (cond_fnma<mode>): Ditto.
16874 (cond_fnms<mode>): Ditto.
16876 2021-08-03 Segher Boessenkool <segher@kernel.crashing.org>
16878 * config/rs6000/vsx.md (*vsx_le_perm_store_<mode>): Use && instead of &.
16880 2021-08-03 Segher Boessenkool <segher@kernel.crashing.org>
16882 * config/rs6000/constraints.md: Remove "e" from the list of available
16883 constraint characters.
16885 2021-08-03 Eugene Rozenfeld <erozen@microsoft.com>
16887 PR gcov-profile/71672
16888 * auto-profile.c (afdo_indirect_call): Fix setup of the historgram value for indirect calls.
16890 2021-08-03 Paul A. Clarke <pc@us.ibm.com>
16892 * config/rs6000/smmintrin.h (_mm_minpos_epu16): New.
16894 2021-08-03 H.J. Lu <hjl.tools@gmail.com>
16896 * config/i386/i386.c (ix86_gen_scratch_sse_rtx): In 64-bit mode,
16897 try XMM31 to avoid vzeroupper.
16899 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
16901 * doc/invoke.texi: Document -mtune=neoverse-512tvb and
16902 -mcpu=neoverse-512tvb.
16903 * config/aarch64/aarch64-cores.def (neoverse-512tvb): New entry.
16904 * config/aarch64/aarch64-tune.md: Regenerate.
16905 * config/aarch64/aarch64.c (neoverse512tvb_sve_vector_cost)
16906 (neoverse512tvb_sve_issue_info, neoverse512tvb_vec_issue_info)
16907 (neoverse512tvb_vector_cost, neoverse512tvb_tunings): New structures.
16908 (aarch64_adjust_body_cost_sve): Handle -mtune=neoverse-512tvb.
16909 (aarch64_adjust_body_cost): Likewise.
16911 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
16913 * config/aarch64/aarch64.c (aarch64_add_stmt_cost): Only
16914 record issue information for operations that occur in the
16917 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
16919 * config/aarch64/aarch64.c (aarch64_multiply_add_p): Add a vec_flags
16920 parameter. Detect cases in which an Advanced SIMD MLA would almost
16921 certainly require a MOV.
16922 (aarch64_count_ops): Update accordingly.
16924 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
16926 * config/aarch64/aarch64.c (aarch64_is_store_elt_extraction): New
16927 function, split out from...
16928 (aarch64_detect_vector_stmt_subtype): ...here.
16929 (aarch64_add_stmt_cost): Treat extracting element 0 as free.
16931 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
16933 * config/aarch64/aarch64-protos.h (sve_vec_cost):
16934 Add gather_load_x32_cost and gather_load_x64_cost.
16935 * config/aarch64/aarch64.c (generic_sve_vector_cost)
16936 (a64fx_sve_vector_cost, neoversev1_sve_vector_cost): Update
16937 accordingly, using the values given by the scalar_load * number
16938 of elements calculation that we used previously.
16939 (aarch64_detect_vector_stmt_subtype): Use the new fields.
16941 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
16943 * config/aarch64/aarch64.c (aarch64_adjust_body_cost_sve): New
16944 function, split out from...
16945 (aarch64_adjust_body_cost): ...here.
16947 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
16949 * config/aarch64/fractional-cost.h: New file.
16950 * config/aarch64/aarch64.c: Include <algorithm> (indirectly)
16951 and cost_fraction.h.
16952 (vec_cost_fraction): New typedef.
16953 (aarch64_detect_scalar_stmt_subtype): Use it for statement costs.
16954 (aarch64_detect_vector_stmt_subtype): Likewise.
16955 (aarch64_sve_adjust_stmt_cost, aarch64_adjust_stmt_cost): Likewise.
16956 (aarch64_estimate_min_cycles_per_iter): Use vec_cost_fraction
16958 (aarch64_adjust_body_cost): Likewise.
16959 (aarch64_test_cost_fraction): New function.
16960 (aarch64_run_selftests): Call it.
16962 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
16964 * config/aarch64/aarch64-protos.h (tune_params::sve_width): Turn
16966 * config/aarch64/aarch64.c (aarch64_cmp_autovec_modes): Update
16968 (aarch64_estimated_poly_value): Likewise. Use the least significant
16969 set bit for the minimum and likely values. Use the most significant
16970 set bit for the maximum value.
16972 2021-08-03 liuhongt <hongtao.liu@intel.com>
16974 * config/i386/sse.md (cond_<insn><mode>): New expander.
16975 (cond_mul<mode>): Ditto.
16977 2021-08-03 Kewen Lin <linkw@linux.ibm.com>
16979 * tree-cfg.c (move_sese_region_to_fn): Fix typos on dloop.
16981 2021-08-03 liuhongt <hongtao.liu@intel.com>
16983 * config/i386/sse.md (cond_<insn><mode>):New expander.
16984 (cond_mul<mode>): Ditto.
16985 (cond_div<mode>): Ditto.
16987 2021-08-02 H.J. Lu <hjl.tools@gmail.com>
16989 * config/i386/i386.c (ix86_finalize_stack_frame_flags): Also
16990 check stack_realign_needed for stack realignment.
16991 (ix86_legitimate_constant_p): Always allow CONST_WIDE_INT smaller
16992 than the largest integer supported by vector register.
16993 * config/i386/i386.h (MAX_MOVE_MAX): New. Set to 64.
16994 (MOVE_MAX): Set to bytes of the largest integer supported by
16996 (STORE_MAX_PIECES): New.
16998 2021-08-02 H.J. Lu <hjl.tools@gmail.com>
17000 * config/i386/i386-expand.c (ix86_expand_vector_move): Call
17001 ix86_gen_scratch_sse_rtx to get a scratch SSE register to copy
17002 data from one memory location to another.
17004 2021-08-02 H.J. Lu <hjl.tools@gmail.com>
17006 PR middle-end/90773
17007 * config/i386/i386.c (TARGET_GEN_MEMSET_SCRATCH_RTX): New.
17009 2021-08-02 Aldy Hernandez <aldyh@redhat.com>
17011 PR tree-optimization/101724
17012 * params.opt: Remove --param=threader-iterative.
17013 * tree-ssa-threadbackward.c (pass_thread_jumps::execute): Remove
17016 2021-08-02 Tom de Vries <tdevries@suse.de>
17018 PR middle-end/101665
17019 * doc/extend.texi (nonnull attribute): Improve documentation.
17021 2021-08-02 Andrew Pinski <apinski@marvell.com>
17023 PR rtl-optimization/101683
17024 * rtlanal.c (may_trap_p_1): Handle UNSIGNED_FIX.
17026 2021-08-02 Roger Sayle <roger@nextmovesoftware.com>
17028 * tree-ssa-phiopt.c (cond_removal_in_builtin_zero_pattern):
17029 Renamed from cond_removal_in_popcount_clz_ctz_pattern.
17030 Add support for BSWAP, FFS, PARITY and CLRSB builtins.
17031 (tree_ssa_phiop_worker): Update call to function above.
17033 2021-08-01 H.J. Lu <hjl.tools@gmail.com>
17036 * config/i386/i386.md (bsr_rex64_1_zext): New.
17037 (combine splitter for constant - clzll): Replace gen_bsr_rex64_1
17038 with gen_bsr_rex64_1_zext.
17040 2021-07-31 Jakub Jelinek <jakub@redhat.com>
17043 * config/i386/i386.md (bsr_rex64_1, bsr_1, bsr_zext_1): New
17044 define_insn patterns.
17045 (*bsr_rex64_2, *bsr_2): New define_insn_and_split patterns.
17046 Add combine splitters for constant - clz.
17047 (clz<mode>2): Use a temporary pseudo for bsr result.
17049 2021-07-30 Paul A. Clarke <pc@us.ibm.com>
17051 * config/rs6000/smmintrin.h (_mm_floor_pd, _mm_floor_ps,
17052 _mm_floor_sd, _mm_floor_ss): New.
17054 2021-07-30 Paul A. Clarke <pc@us.ibm.com>
17056 * config/rs6000/smmintrin.h (_mm_ceil_pd, _mm_ceil_ps,
17057 _mm_ceil_sd, _mm_ceil_ss): New.
17059 2021-07-30 Paul A. Clarke <pc@us.ibm.com>
17061 * config/rs6000/smmintrin.h (_mm_blend_pd, _mm_blendv_pd,
17062 _mm_blend_ps, _mm_blendv_ps): New.
17064 2021-07-30 Roger Sayle <roger@nextmovesoftware.com>
17065 Uroš Bizjak <ubizjak@gmail.com>
17067 * config/i386/i386.md (*dec_cmov<mode>): New define_insn_and_split
17068 to generate a conditional move using the carry flag after sub $1.
17069 (peephole2): Eliminate a register-to-register move by inverting
17070 the condition of a conditional move.
17072 2021-07-30 Hans-Peter Nilsson <hp@bitrange.com>
17074 * config/mmix/mmix.md ("call", "call_value", "*call_real")
17075 ("*call_value_real"): Don't generate rtx mentioning the generic
17076 operands 1 and 2 to "call", and similarly for "call_value".
17077 * config/mmix/mmix.c (mmix_print_operand_punct_valid_p)
17078 (mmix_print_operand): Use '!' instead of 'p'.
17080 2021-07-30 Hans-Peter Nilsson <hp@bitrange.com>
17082 * doc/md.texi (call): Correct information about operand 2.
17083 * config/mmix/mmix.md ("call", "call_value"): Remove fixed FIXMEs.
17085 2021-07-30 Andrew MacLeod <amacleod@redhat.com>
17087 * range-op.cc (operator_trunc_mod::wi_fold): Fold constants.
17089 2021-07-30 Andrew MacLeod <amacleod@redhat.com>
17091 * range-op.cc (operator_div::wi_fold): Return UNDEFINED for [0, 0] divisor.
17093 2021-07-30 Andrew MacLeod <amacleod@redhat.com>
17095 * gimple-range-cache.cc (*::set_bb_range): Change const basic_block to
17096 const_basic_block..
17097 (*::get_bb_range): Ditto.
17098 (*::bb_range_p): Ditto.
17099 * gimple-range-cache.h: Change prototypes.
17101 2021-07-30 H.J. Lu <hjl.tools@gmail.com>
17103 PR middle-end/90773
17104 * builtins.c (builtin_memcpy_read_str): Change the mode argument
17105 from scalar_int_mode to fixed_size_mode.
17106 (builtin_strncpy_read_str): Likewise.
17107 (gen_memset_value_from_prev): New function.
17108 (builtin_memset_read_str): Change the mode argument from
17109 scalar_int_mode to fixed_size_mode. Use gen_memset_value_from_prev
17110 and support CONST_VECTOR.
17111 (builtin_memset_gen_str): Likewise.
17112 (try_store_by_multiple_pieces): Use by_pieces_constfn to declare
17114 * builtins.h (builtin_strncpy_read_str): Replace scalar_int_mode
17115 with fixed_size_mode.
17116 (builtin_memset_read_str): Likewise.
17117 * expr.c (widest_int_mode_for_size): Renamed to ...
17118 (widest_fixed_size_mode_for_size): Add a bool argument to
17119 indicate if QI vector mode can be used.
17120 (by_pieces_ninsns): Call widest_fixed_size_mode_for_size
17121 instead of widest_int_mode_for_size.
17122 (pieces_addr::adjust): Change the mode argument from
17123 scalar_int_mode to fixed_size_mode.
17124 (op_by_pieces_d): Make m_len read-only. Add a bool member,
17125 m_qi_vector_mode, to indicate that QI vector mode can be used.
17126 (op_by_pieces_d::op_by_pieces_d): Add a bool argument to
17127 initialize m_qi_vector_mode. Call widest_fixed_size_mode_for_size
17128 instead of widest_int_mode_for_size.
17129 (op_by_pieces_d::get_usable_mode): Change the mode argument from
17130 scalar_int_mode to fixed_size_mode. Call
17131 widest_fixed_size_mode_for_size instead of
17132 widest_int_mode_for_size.
17133 (op_by_pieces_d::smallest_fixed_size_mode_for_size): New member
17134 function to return the smallest integer or QI vector mode.
17135 (op_by_pieces_d::run): Call widest_fixed_size_mode_for_size
17136 instead of widest_int_mode_for_size. Call
17137 smallest_fixed_size_mode_for_size instead of
17138 smallest_int_mode_for_size.
17139 (store_by_pieces_d::store_by_pieces_d): Add a bool argument to
17140 indicate that QI vector mode can be used and pass it to
17141 op_by_pieces_d::op_by_pieces_d.
17142 (can_store_by_pieces): Call widest_fixed_size_mode_for_size
17143 instead of widest_int_mode_for_size. Pass memsetp to
17144 widest_fixed_size_mode_for_size to support QI vector mode.
17145 Allow all CONST_VECTORs for memset if vec_duplicate is supported.
17146 (store_by_pieces): Pass memsetp to
17147 store_by_pieces_d::store_by_pieces_d.
17148 (clear_by_pieces_1): Removed.
17149 (clear_by_pieces): Replace clear_by_pieces_1 with
17150 builtin_memset_read_str and pass true to store_by_pieces_d to
17151 support vector mode broadcast.
17152 (string_cst_read_str): Change the mode argument from
17153 scalar_int_mode to fixed_size_mode.
17154 * expr.h (by_pieces_constfn): Change scalar_int_mode to
17156 (by_pieces_prev): Likewise.
17157 * rtl.h (lowpart_subreg_regno): New.
17158 * rtlanal.c (lowpart_subreg_regno): New. A wrapper around
17159 simplify_subreg_regno.
17160 * target.def (gen_memset_scratch_rtx): New hook.
17161 * doc/tm.texi.in: Add TARGET_GEN_MEMSET_SCRATCH_RTX.
17162 * doc/tm.texi: Regenerated.
17164 2021-07-30 Xi Ruoyao <xry111@mengyan1223.wang>
17167 * config/mips/mips.c (mips_atomic_assign_expand_fenv): Use
17168 TARGET_EXPR instead of MODIFY_EXPR.
17170 2021-07-30 Xi Ruoyao <xry111@mengyan1223.wang>
17173 * config/mips/mips-protos.h (mips_expand_vec_cmp_expr): Declare.
17174 * config/mips/mips.c (mips_expand_vec_cmp_expr): New function.
17175 * config/mips/mips-msa.md (vec_cmp<MSA:mode><mode_i>): New
17177 (vec_cmpu<IMSA:mode><mode_i>): New expander.
17179 2021-07-30 H.J. Lu <hjl.tools@gmail.com>
17182 * config/i386/i386-options.c (ix86_option_override_internal):
17183 Don't enable LZCNT/POPCNT if they have been disabled explicitly.
17185 2021-07-30 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
17188 * config/arm/arm_neon.h (vld1_p64): Replace call to builtin by
17189 explicitly dereferencing __a.
17190 (vld1_s64): Likewise.
17191 (vld1_u64): Likewise.
17192 * config/arm/arm_neon_builtins.def (vld1): Remove entry for di
17193 and change to VAR13.
17195 2021-07-30 Aldy Hernandez <aldyh@redhat.com>
17197 * gimple-loop-versioning.cc (lv_dom_walker::lv_dom_walker): Remove
17198 use of m_range_analyzer.
17199 (loop_versioning::lv_dom_walker::before_dom_children): Same.
17200 (loop_versioning::lv_dom_walker::after_dom_children): Remove.
17201 (loop_versioning::prune_loop_conditions): Replace vr_values use
17202 with range_query interface.
17203 (pass_loop_versioning::execute): Use ranger.
17205 2021-07-30 Xi Ruoyao <xry111@mengyan1223.wang>
17208 * ipa-devirt.c (ipa_odr_read_section): Compare the precision of
17209 enum values, and emit a warning if they mismatch.
17211 2021-07-30 Kewen Lin <linkw@linux.ibm.com>
17213 * cfgloop.h (as_const): New function.
17214 (class loop_iterator): Rename to ...
17215 (class loops_list): ... this.
17216 (loop_iterator::next): Rename to ...
17217 (loops_list::Iter::fill_curr_loop): ... this and adjust.
17218 (loop_iterator::loop_iterator): Rename to ...
17219 (loops_list::loops_list): ... this and adjust.
17220 (loops_list::Iter): New class.
17221 (loops_list::iterator): New type.
17222 (loops_list::const_iterator): New type.
17223 (loops_list::begin): New function.
17224 (loops_list::end): Likewise.
17225 (loops_list::begin const): Likewise.
17226 (loops_list::end const): Likewise.
17227 (FOR_EACH_LOOP): Remove.
17228 (FOR_EACH_LOOP_FN): Remove.
17229 * cfgloop.c (flow_loops_dump): Adjust FOR_EACH_LOOP* with range-based
17230 for loop with loops_list instance.
17231 (sort_sibling_loops): Likewise.
17232 (disambiguate_loops_with_multiple_latches): Likewise.
17233 (verify_loop_structure): Likewise.
17234 * cfgloopmanip.c (create_preheaders): Likewise.
17235 (force_single_succ_latches): Likewise.
17236 * config/aarch64/falkor-tag-collision-avoidance.c
17237 (execute_tag_collision_avoidance): Likewise.
17238 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Likewise.
17239 * config/s390/s390.c (s390_adjust_loops): Likewise.
17240 * doc/loop.texi: Likewise.
17241 * gimple-loop-interchange.cc (pass_linterchange::execute): Likewise.
17242 * gimple-loop-jam.c (tree_loop_unroll_and_jam): Likewise.
17243 * gimple-loop-versioning.cc (loop_versioning::analyze_blocks): Likewise.
17244 (loop_versioning::make_versioning_decisions): Likewise.
17245 * gimple-ssa-split-paths.c (split_paths): Likewise.
17246 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl): Likewise.
17247 * graphite.c (canonicalize_loop_form): Likewise.
17248 (graphite_transform_loops): Likewise.
17249 * ipa-fnsummary.c (analyze_function_body): Likewise.
17250 * ipa-pure-const.c (analyze_function): Likewise.
17251 * loop-doloop.c (doloop_optimize_loops): Likewise.
17252 * loop-init.c (loop_optimizer_finalize): Likewise.
17253 (fix_loop_structure): Likewise.
17254 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
17255 (move_loop_invariants): Likewise.
17256 * loop-unroll.c (decide_unrolling): Likewise.
17257 (unroll_loops): Likewise.
17258 * modulo-sched.c (sms_schedule): Likewise.
17259 * predict.c (predict_loops): Likewise.
17260 (pass_profile::execute): Likewise.
17261 * profile.c (branch_prob): Likewise.
17262 * sel-sched-ir.c (sel_finish_pipelining): Likewise.
17263 (sel_find_rgns): Likewise.
17264 * tree-cfg.c (replace_loop_annotate): Likewise.
17265 (replace_uses_by): Likewise.
17266 (move_sese_region_to_fn): Likewise.
17267 * tree-if-conv.c (pass_if_conversion::execute): Likewise.
17268 * tree-loop-distribution.c (loop_distribution::execute): Likewise.
17269 * tree-parloops.c (parallelize_loops): Likewise.
17270 * tree-predcom.c (tree_predictive_commoning): Likewise.
17271 * tree-scalar-evolution.c (scev_initialize): Likewise.
17272 (scev_reset): Likewise.
17273 * tree-ssa-dce.c (find_obviously_necessary_stmts): Likewise.
17274 * tree-ssa-live.c (remove_unused_locals): Likewise.
17275 * tree-ssa-loop-ch.c (ch_base::copy_headers): Likewise.
17276 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
17277 (tree_ssa_lim_initialize): Likewise.
17278 * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Likewise.
17279 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize): Likewise.
17280 * tree-ssa-loop-manip.c (get_loops_exits): Likewise.
17281 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations): Likewise.
17282 (free_numbers_of_iterations_estimates): Likewise.
17283 * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
17284 * tree-ssa-loop-split.c (tree_ssa_split_loops): Likewise.
17285 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Likewise.
17286 * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
17287 (pass_scev_cprop::execute): Likewise.
17288 * tree-ssa-propagate.c (clean_up_loop_closed_phi): Likewise.
17289 * tree-ssa-sccvn.c (do_rpo_vn): Likewise.
17290 * tree-ssa-threadupdate.c
17291 (jump_thread_path_registry::thread_through_all_blocks): Likewise.
17292 * tree-vectorizer.c (vectorize_loops): Likewise.
17293 * tree-vrp.c (vrp_asserts::find_assert_locations): Likewise.
17295 2021-07-29 Hans-Peter Nilsson <hp@bitrange.com>
17297 * config/mmix/mmix.c (mmix_function_arg_1): Avoid
17298 generating a VOIDmode register for e.g the
17299 function_arg_info::end_marker.
17301 2021-07-29 Jeff Law <jeffreyalaw@gmail.com>
17303 * config/h8300/h8300-modes.def: Add CCZ, CCV and CCC, drop CCZNV.
17304 * config/h8300/h8300.md (H8cc mode iterator): Add CCZ.
17305 (cc mode_attr): Similarly.
17306 (ccz subst_attr): Similarly.
17307 * config/h8300/jumpcall.md: Add new patterns for branch-on-bit.
17308 * config/h8300/testcompare.md: Remove various cc0 based patterns
17309 that had been commented out. Add pattern to set CCZ from a bit
17312 2021-07-29 Thomas Schwinge <thomas@codesourcery.com>
17313 Julian Brown <julian@codesourcery.com>
17314 Kwok Cheung Yeung <kcy@codesourcery.com>
17316 * omp-offload.c (oacc_loop_xform_head_tail, oacc_loop_process):
17317 'update_stmt' after modification.
17318 (pass_oacc_loop_designation): New function, extracted out of...
17319 (pass_oacc_device_lower): ... this.
17320 (pass_data_oacc_loop_designation, pass_oacc_loop_designation)
17321 (make_pass_oacc_loop_designation): New
17322 * passes.def: Add it.
17323 * tree-parloops.c (create_parallel_loop): Adjust.
17324 * tree-pass.h (make_pass_oacc_loop_designation): New.
17326 2021-07-29 Aldy Hernandez <aldyh@redhat.com>
17328 * flag-types.h (enum threader_mode): New.
17329 * params.opt: Add entry for --param=threader-mode.
17330 * tree-ssa-threadbackward.c (THREADER_ITERATIVE_MODE): New.
17331 (class back_threader): New.
17332 (back_threader::back_threader): New.
17333 (back_threader::~back_threader): New.
17334 (back_threader::maybe_register_path): New.
17335 (back_threader::find_taken_edge): New.
17336 (back_threader::find_taken_edge_switch): New.
17337 (back_threader::find_taken_edge_cond): New.
17338 (back_threader::resolve_def): New.
17339 (back_threader::resolve_phi): New.
17340 (back_threader::find_paths_to_names): New.
17341 (back_threader::find_paths): New.
17344 (thread_jumps::find_jump_threads_backwards): Call ranger threader.
17345 (thread_jumps::find_jump_threads_backwards_with_ranger): New.
17346 (pass_thread_jumps::execute): Abstract out code...
17347 (try_thread_blocks): ...here.
17348 * tree-ssa-threadedge.c (jump_threader::thread_outgoing_edges):
17349 Abstract out threading candidate code to...
17350 (single_succ_to_potentially_threadable_block): ...here.
17351 * tree-ssa-threadedge.h (single_succ_to_potentially_threadable_block):
17353 * tree-ssa-threadupdate.c (register_jump_thread): Return boolean.
17354 * tree-ssa-threadupdate.h (class jump_thread_path_registry):
17355 Return bool from register_jump_thread.
17357 2021-07-29 Andreas Krebbel <krebbel@linux.ibm.com>
17359 * target.def: in0 and in1 do not need to be registers.
17360 * doc/tm.texi: Regenerate.
17362 2021-07-29 liuhongt <hongtao.liu@intel.com>
17365 * config/i386/i386.c (ix86_widen_mult_cost): New function.
17366 (ix86_add_stmt_cost): Use ix86_widen_mult_cost for
17369 2021-07-29 Jiufu Guo <guojiufu@linux.ibm.com>
17372 * config/rs6000/rs6000.c (TARGET_PREFERRED_DOLOOP_MODE): New hook.
17373 (rs6000_preferred_doloop_mode): New hook.
17374 * doc/tm.texi: Regenerate.
17375 * doc/tm.texi.in: Add hook preferred_doloop_mode.
17376 * target.def (preferred_doloop_mode): New hook.
17377 * targhooks.c (default_preferred_doloop_mode): New hook.
17378 * targhooks.h (default_preferred_doloop_mode): New hook.
17379 * tree-ssa-loop-ivopts.c (compute_doloop_base_on_mode): New function.
17380 (add_iv_candidate_for_doloop): Call targetm.preferred_doloop_mode
17381 and compute_doloop_base_on_mode.
17383 2021-07-28 Martin Sebor <msebor@redhat.com>
17385 PR middle-end/101494
17386 * tree-ssa-uninit.c (maybe_warn_operand): Correct object offset
17387 and size computation.
17389 2021-07-28 Martin Sebor <msebor@redhat.com>
17391 PR middle-end/101601
17392 * gimple-array-bounds.cc (array_bounds_checker::check_mem_ref): Remove
17394 Handle pointers to functions.
17396 2021-07-28 Martin Sebor <msebor@redhat.com>
17398 * Makefile.in (OBJS): Add gimple-ssa-warn-access.o and pointer-query.o.
17399 * attribs.h (fndecl_dealloc_argno): Move fndecl_dealloc_argno to tree.h.
17400 * builtins.c (compute_objsize_r): Move to pointer-query.cc.
17401 (access_ref::access_ref): Same.
17402 (access_ref::phi): Same.
17403 (access_ref::get_ref): Same.
17404 (access_ref::size_remaining): Same.
17405 (access_ref::offset_in_range): Same.
17406 (access_ref::add_offset): Same.
17407 (access_ref::inform_access): Same.
17408 (ssa_name_limit_t::visit_phi): Same.
17409 (ssa_name_limit_t::leave_phi): Same.
17410 (ssa_name_limit_t::next): Same.
17411 (ssa_name_limit_t::next_phi): Same.
17412 (ssa_name_limit_t::~ssa_name_limit_t): Same.
17413 (pointer_query::pointer_query): Same.
17414 (pointer_query::get_ref): Same.
17415 (pointer_query::put_ref): Same.
17416 (pointer_query::flush_cache): Same.
17417 (warn_string_no_nul): Move to gimple-ssa-warn-access.cc.
17418 (check_nul_terminated_array): Same.
17419 (unterminated_array): Same.
17420 (maybe_warn_for_bound): Same.
17421 (check_read_access): Same.
17422 (warn_for_access): Same.
17423 (get_size_range): Same.
17424 (check_access): Same.
17425 (gimple_call_alloc_size): Move to tree.c.
17426 (gimple_parm_array_size): Move to pointer-query.cc.
17427 (get_offset_range): Same.
17428 (gimple_call_return_array): Same.
17429 (handle_min_max_size): Same.
17430 (handle_array_ref): Same.
17431 (handle_mem_ref): Same.
17432 (compute_objsize): Same.
17433 (gimple_call_alloc_p): Move to gimple-ssa-warn-access.cc.
17434 (call_dealloc_argno): Same.
17435 (fndecl_dealloc_argno): Same.
17436 (new_delete_mismatch_p): Same.
17437 (matching_alloc_calls_p): Same.
17438 (warn_dealloc_offset): Same.
17439 (maybe_emit_free_warning): Same.
17440 * builtins.h (check_nul_terminated_array): Move to
17441 gimple-ssa-warn-access.h.
17442 (check_nul_terminated_array): Same.
17443 (warn_string_no_nul): Same.
17444 (unterminated_array): Same.
17445 (class ssa_name_limit_t): Same.
17446 (class pointer_query): Same.
17447 (struct access_ref): Same.
17448 (class range_query): Same.
17449 (struct access_data): Same.
17450 (gimple_call_alloc_size): Same.
17451 (gimple_parm_array_size): Same.
17452 (compute_objsize): Same.
17453 (class access_data): Same.
17454 (maybe_emit_free_warning): Same.
17455 * calls.c (initialize_argument_information): Remove call to
17456 maybe_emit_free_warning.
17457 * gimple-array-bounds.cc: Include new header..
17458 * gimple-fold.c: Same.
17459 * gimple-ssa-sprintf.c: Same.
17460 * gimple-ssa-warn-restrict.c: Same.
17461 * passes.def: Add pass_warn_access.
17462 * tree-pass.h (make_pass_warn_access): Declare.
17463 * tree-ssa-strlen.c: Include new headers.
17464 * tree.c (fndecl_dealloc_argno): Move here from builtins.c.
17465 * tree.h (fndecl_dealloc_argno): Move here from attribs.h.
17466 * gimple-ssa-warn-access.cc: New file.
17467 * gimple-ssa-warn-access.h: New file.
17468 * pointer-query.cc: New file.
17469 * pointer-query.h: New file.
17471 2021-07-28 Jakub Jelinek <jakub@redhat.com>
17473 PR middle-end/101624
17474 * ubsan.c (maybe_instrument_pointer_overflow,
17475 instrument_object_size): Only test DECL_REGISTER on VAR_DECLs,
17476 PARM_DECLs or RESULT_DECLs.
17477 * sanopt.c (maybe_optimize_ubsan_ptr_ifn): Likewise.
17479 2021-07-28 Jakub Jelinek <jakub@redhat.com>
17481 PR middle-end/101642
17482 * match.pd (bswap16 (x) == bswap16 (y)): Cast both operands
17483 to type of bswap16 for comparison.
17484 (bswap16 (x) == cst): Cast bswap16 operand to type of cst.
17486 2021-07-28 Richard Biener <rguenther@suse.de>
17488 PR tree-optimization/101615
17489 * tree-vect-slp.c (vect_optimize_slp): Materialize permutes
17490 at CTOR SLP graph entries.
17492 2021-07-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17494 * config/aarch64/aarch64.md (*extend<SHORT:mode><GPI:mode>2_aarch64):
17495 Add "r,w" alternative.
17497 2021-07-28 H.J. Lu <hjl.tools@gmail.com>
17500 * config/i386/i386.c (ix86_avx_u128_mode_needed): Don't set
17501 AVX_U128_DIRTY when all bits are zero.
17503 2021-07-28 Richard Biener <rguenther@suse.de>
17505 PR tree-optimization/101615
17506 * tree-vect-slp.c (vect_optimize_slp): Pre-existing vector
17507 external nodes cannot be permuted so make them perm_out 0.
17509 2021-07-28 Andrew Stubbs <ams@codesourcery.com>
17512 * config.in: Regenerate.
17513 * config/gcn/gcn-hsa.h (A_FIJI): New define.
17514 (A_900): New define.
17515 (A_906): New define.
17516 (A_908): New define.
17517 (ASM_SPEC): Use A_FIJI, A_900, A_906 and A_908.
17518 * config/gcn/gcn.c (output_file_start): Adjust attributes according
17519 to the assembler capabilities.
17520 * config/gcn/mkoffload.c (main): Likewise.
17521 * configure: Regenerate.
17522 * configure.ac: Add tests for LLVM assembler attribute features.
17524 2021-07-28 Andrew MacLeod <amacleod@redhat.com>
17526 * gimple-range-gori.cc (gori_compute::outgoing_edge_range_p): Check for
17527 cond_false and cond_true on branches.
17529 2021-07-28 Bin Cheng <bin.cheng@linux.alibaba.com>
17531 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): use
17534 2021-07-28 Bin Cheng <bin.cheng@linux.alibaba.com>
17536 * alias.c (init_alias_analysis): Don't skip prologue/epilogue.
17538 2021-07-28 Jakub Jelinek <jakub@redhat.com>
17541 * config/i386/sse.md (vashr<mode>3): Split into vashrv8di3 expander
17542 and vashrv4di3 expander, where the latter requires just TARGET_AVX2
17543 and has special !TARGET_AVX512VL expansion.
17544 (vashrv2di3<mask_name>): Rename to ...
17545 (vashrv2di3): ... this. Change condition to TARGET_XOP || TARGET_AVX2
17546 and add special !TARGET_XOP && !TARGET_AVX512VL expansion.
17548 2021-07-28 Martin Uecker <muecker@gwdg.de>
17550 * calls.c (maybe_warn_rdwr_sizes): Correct argument
17551 numbers in warning that were switched.
17553 2021-07-28 Kewen Lin <linkw@linux.ibm.com>
17555 PR tree-optimization/101596
17556 * tree-vect-patterns.c (vect_recog_mulhs_pattern): Fix wrong check
17557 by using new_type's precision instead.
17559 2021-07-28 liuhongt <hongtao.liu@intel.com>
17562 * config/i386/i386.h (processor_costs): Add new member
17564 * config/i386/x86-tune-costs.h (ix86_size_cost, i386_cost,
17565 i486_cost, pentium_cost, lakemont_cost, pentiumpro_cost,
17566 geode_cost, k6_cost, athlon_cost, k8_cost, amdfam10_cost,
17567 bdver_cost, znver1_cost, znver2_cost, znver3_cost,
17568 btver1_cost, btver2_cost, btver3_cost, pentium4_cost,
17569 nocona_cost, atom_cost, atom_cost, slm_cost, intel_cost,
17570 generic_cost, core_cost): Initialize integer_to_sse same value
17572 (skylake_cost): Initialize integer_to_sse twice as much as sse_op.
17573 * config/i386/i386.c (ix86_builtin_vectorization_cost):
17574 Use integer_to_sse instead of sse_op to calculate the cost of
17577 2021-07-27 Bill Schmidt <wschmidt@linux.ibm.com>
17579 * config/rs6000/rs6000-gen-builtins.c (write_ovld_static_init): New
17581 (write_init_file): Call write_ovld_static_init.
17583 2021-07-27 Bill Schmidt <wschmidt@linux.ibm.com>
17585 * config/rs6000/rs6000-gen-builtins.c (write_bif_static_init): New
17587 (write_init_file): Call write_bif_static_init.
17589 2021-07-27 Bill Schmidt <wschmidt@linux.ibm.com>
17591 * config/rs6000/rs6000-gen-builtins.c (typemap): New struct.
17592 (TYPE_MAP_SIZE): New macro.
17593 (type_map): New initialized variable.
17594 (typemap_cmp): New function.
17595 (write_type_node): Likewise.
17596 (write_fntype_init): Implement.
17598 2021-07-27 Martin Sebor <msebor@redhat.com>
17600 PR tree-optimization/101584
17601 * tree-ssa-uninit.c (builtin_call_nomodifying_p): New function.
17602 (check_defs): Call it.
17604 2021-07-27 Aldy Hernandez <aldyh@redhat.com>
17606 * tree-ssa-dom.c (dom_jump_threader_simplifier):
17607 Put avail_exprs_stack in the class, instead of passing it to
17608 jump_threader_simplifier.
17609 (dom_jump_threader_simplifier::simplify): Add state argument.
17610 (dom_opt_dom_walker): Add state.
17611 (pass_dominator::execute): Pass state to threader.
17612 (dom_opt_dom_walker::before_dom_children): Use state.
17613 * tree-ssa-threadedge.c (jump_threader::jump_threader): Replace
17614 arguments by state.
17615 (jump_threader::record_temporary_equivalences_from_phis):
17616 Register equivalences through the state variable.
17617 (jump_threader::record_temporary_equivalences_from_stmts_at_dest):
17618 Record ranges in a statement through the state variable.
17619 (jump_threader::simplify_control_stmt_condition): Pass state to
17621 (jump_threader::simplify_control_stmt_condition_1): Same.
17622 (jump_threader::thread_around_empty_blocks): Remove obsolete
17624 (jump_threader::thread_through_normal_block): Record equivalences
17625 on edge through the state variable.
17626 (jump_threader::thread_across_edge): Abstract state pushing.
17627 (jt_state::jt_state): New.
17628 (jt_state::push): New.
17629 (jt_state::pop): New.
17630 (jt_state::register_equiv): New.
17631 (jt_state::record_ranges_from_stmt): New.
17632 (jt_state::register_equivs_on_edge): New.
17633 (jump_threader_simplifier::jump_threader_simplifier): Move from
17635 (jump_threader_simplifier::simplify): Add state argument.
17636 * tree-ssa-threadedge.h (class jt_state): New.
17637 (class jump_threader): Add state to constructor.
17638 (class jump_threader_simplifier): Add state to simplify. Remove
17639 avail_exprs_stack from class.
17640 * tree-vrp.c (vrp_jump_threader_simplifier::simplify): Add state
17642 (vrp_jump_threader::vrp_jump_threader): Add state.
17643 (vrp_jump_threader::~vrp_jump_threader): Cleanup state.
17645 2021-07-27 Aldy Hernandez <aldyh@redhat.com>
17647 * Makefile.in (OBJS): Add gimple-range-path.o.
17648 * gimple-range-path.cc: New file.
17649 * gimple-range-path.h: New file.
17651 2021-07-27 Jonathan Wright <jonathan.wright@arm.com>
17653 * config/aarch64/aarch64-simd.md: Push sign/zero-extension
17654 inside vec_duplicate for all patterns.
17655 * simplify-rtx.c (simplify_context::simplify_unary_operation_1):
17656 Push sign/zero-extension inside vec_duplicate.
17658 2021-07-27 Richard Biener <rguenther@suse.de>
17660 PR tree-optimization/101573
17661 * tree-ssa-uninit.c (warn_uninit_phi_uses): New function
17662 looking at uninitialized PHI arg defs in some constrained cases.
17663 (warn_uninitialized_vars): Call it.
17664 (execute_early_warn_uninitialized): Calculate dominators.
17666 2021-07-27 Richard Biener <rguenther@suse.de>
17668 PR tree-optimization/39821
17669 * tree-vect-stmts.c (vect_model_promotion_demotion_cost): Use
17670 vector_stmt for widening arithmetic.
17671 (vectorizable_conversion): Adjust.
17673 2021-07-27 Martin Jambor <mjambor@suse.cz>
17675 * cgraph.h (ipa_replace_map): New field force_load_ref.
17676 * ipa-prop.h (ipa_param_descriptor): Reduce precision of move_cost,
17677 aded new flag load_dereferenced, adjusted comments.
17678 (ipa_get_param_dereferenced): New function.
17679 (ipa_set_param_dereferenced): Likewise.
17680 * cgraphclones.c (cgraph_node::create_virtual_clone): Follow it.
17681 * ipa-cp.c: Include gimple.h.
17682 (ipcp_discover_new_direct_edges): Take into account dereferenced flag.
17683 (get_replacement_map): New parameter force_load_ref, set the
17684 appropriate flag in ipa_replace_map if set.
17685 (struct symbol_and_index_together): New type.
17686 (adjust_refs_in_act_callers): New function.
17687 (adjust_references_in_caller): Likewise.
17688 (create_specialized_node): When appropriate, call
17689 adjust_references_in_caller and force only load references.
17690 * ipa-prop.c (load_from_dereferenced_name): New function.
17691 (ipa_analyze_controlled_uses): Also detect loads from a
17692 dereference, harden testing of call statements.
17693 (ipa_write_node_info): Stream the dereferenced flag.
17694 (ipa_read_node_info): Likewise.
17695 (ipa_set_jf_constant): Also create refdesc when jump function
17696 references a variable.
17697 (cgraph_node_for_jfunc): Rename to symtab_node_for_jfunc, work
17698 also on references of variables and return a symtab_node. Adjust
17700 (propagate_controlled_uses): Also remove references to VAR_DECLs.
17702 2021-07-27 Jakub Jelinek <jakub@redhat.com>
17704 PR middle-end/101586
17705 * gimple-fold.c (clear_padding_type): Ignore FIELD_DECLs with byte
17706 positions above or equal to sz except for diagnostics of flexible
17709 2021-07-26 Andrew MacLeod <amacleod@redhat.com>
17711 PR tree-optimization/78888
17712 * gimple-range-fold.cc (get_letter_range): New.
17713 (fold_using_range::range_of_builtin_call): Call get_letter_range.
17715 2021-07-26 Andrew MacLeod <amacleod@redhat.com>
17717 PR tree-optimization/78888
17718 * gimple-range-fold.cc (fold_using_range::range_of_builtin_call): Add cases
17719 for CFN_BUILT_IN_TOUPPER and CFN_BUILT_IN_TOLOWER.
17721 2021-07-26 Roger Sayle <roger@nextmovesoftware.com>
17722 Marc Glisse <marc.glisse@inria.fr>
17724 * match.pd (rotate): Simplify equality/inequality of rotations.
17725 (bswap): Simplify equality/inequality tests of byte swapping.
17727 2021-07-26 Aldy Hernandez <aldyh@redhat.com>
17729 * range-op.cc (operator_bitwise_xor::op1_op2_relation_effect):
17732 2021-07-26 Aldy Hernandez <aldyh@redhat.com>
17734 * range-op.cc (operator_lshift::fold_range): Pass rel to
17735 base class fold_range.
17736 (operator_rshift::fold_range): Same.
17738 2021-07-26 Ashimida <ashimida@linux.alibaba.com>
17741 * toplev.h (min_align_loops_log): Remove declaration.
17742 (min_align_jumps_log, min_align_labels_log): Likewise.
17743 (min_align_functions_log): Likewise.
17745 2021-07-26 Aldy Hernandez <aldyh@redhat.com>
17747 * tree-vrp.c (vrp_simplify_cond_using_ranges): Rename vr_values
17749 (execute_vrp): Abstract out simplification of conditionals...
17750 (simplify_casted_conds): ...here.
17752 2021-07-26 Aldy Hernandez <aldyh@redhat.com>
17754 * gimple-array-bounds.cc (array_bounds_checker::get_value_range):
17755 Add gimple argument.
17756 (array_bounds_checker::check_array_ref): Same.
17757 (array_bounds_checker::check_addr_expr): Same.
17758 (array_bounds_checker::check_array_bounds): Pass statement to
17759 check_array_bounds and check_addr_expr.
17760 * gimple-array-bounds.h (check_array_bounds): Add gimple argument.
17761 (check_addr_expr): Same.
17762 (get_value_range): Same.
17764 2021-07-26 Tamar Christina <tamar.christina@arm.com>
17766 * config/aarch64/aarch64-simd-builtins.def (sdot, udot): Rename to..
17767 (sdot_prod, udot_prod): ... This.
17768 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>): Merged
17770 (<sur>dot_prod<vsi2qi>): ... this.
17771 (aarch64_<sur>dot_lane<vsi2qi>, aarch64_<sur>dot_laneq<vsi2qi>):
17772 Change operands order.
17773 (<sur>sadv16qi): Use new operands order.
17774 * config/aarch64/arm_neon.h (vdot_u32, vdotq_u32, vdot_s32,
17775 vdotq_s32): Use new RTL ordering.
17777 2021-07-26 Tamar Christina <tamar.christina@arm.com>
17779 * config/aarch64/aarch64-builtins.c (TYPES_TERNOP_SUSS,
17780 aarch64_types_ternop_suss_qualifiers): New.
17781 * config/aarch64/aarch64-simd-builtins.def (usdot_prod): Use it.
17782 * config/aarch64/aarch64-simd.md (usdot_prod<vsi2qi>): Re-organize RTL.
17783 * config/aarch64/arm_neon.h (vusdot_s32, vusdotq_s32): Use it.
17785 2021-07-23 Jakub Jelinek <jakub@redhat.com>
17787 PR rtl-optimization/101562
17788 * expmed.c (store_integral_bit_field): Only use movstrict_optab
17789 if the operand isn't paradoxical.
17791 2021-07-23 Aldy Hernandez <aldyh@redhat.com>
17793 * gimple-array-bounds.h (class array_bounds_checker): Change
17794 ranges type to range_query.
17796 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
17798 * config/aarch64/arm_neon.h (vst1_s64_x2): Use
17799 __builtin_memcpy instead of constructing
17800 __builtin_aarch64_simd_oi one vector at a time.
17801 (vst1_u64_x2): Likewise.
17802 (vst1_f64_x2): Likewise.
17803 (vst1_s8_x2): Likewise.
17804 (vst1_p8_x2): Likewise.
17805 (vst1_s16_x2): Likewise.
17806 (vst1_p16_x2): Likewise.
17807 (vst1_s32_x2): Likewise.
17808 (vst1_u8_x2): Likewise.
17809 (vst1_u16_x2): Likewise.
17810 (vst1_u32_x2): Likewise.
17811 (vst1_f16_x2): Likewise.
17812 (vst1_f32_x2): Likewise.
17813 (vst1_p64_x2): Likewise.
17814 (vst1q_s8_x2): Likewise.
17815 (vst1q_p8_x2): Likewise.
17816 (vst1q_s16_x2): Likewise.
17817 (vst1q_p16_x2): Likewise.
17818 (vst1q_s32_x2): Likewise.
17819 (vst1q_s64_x2): Likewise.
17820 (vst1q_u8_x2): Likewise.
17821 (vst1q_u16_x2): Likewise.
17822 (vst1q_u32_x2): Likewise.
17823 (vst1q_u64_x2): Likewise.
17824 (vst1q_f16_x2): Likewise.
17825 (vst1q_f32_x2): Likewise.
17826 (vst1q_f64_x2): Likewise.
17827 (vst1q_p64_x2): Likewise.
17829 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
17831 * config/aarch64/arm_neon.h (vst1_s64_x3): Use
17832 __builtin_memcpy instead of constructing
17833 __builtin_aarch64_simd_ci one vector at a time.
17834 (vst1_u64_x3): Likewise.
17835 (vst1_f64_x3): Likewise.
17836 (vst1_s8_x3): Likewise.
17837 (vst1_p8_x3): Likewise.
17838 (vst1_s16_x3): Likewise.
17839 (vst1_p16_x3): Likewise.
17840 (vst1_s32_x3): Likewise.
17841 (vst1_u8_x3): Likewise.
17842 (vst1_u16_x3): Likewise.
17843 (vst1_u32_x3): Likewise.
17844 (vst1_f16_x3): Likewise.
17845 (vst1_f32_x3): Likewise.
17846 (vst1_p64_x3): Likewise.
17847 (vst1q_s8_x3): Likewise.
17848 (vst1q_p8_x3): Likewise.
17849 (vst1q_s16_x3): Likewise.
17850 (vst1q_p16_x3): Likewise.
17851 (vst1q_s32_x3): Likewise.
17852 (vst1q_s64_x3): Likewise.
17853 (vst1q_u8_x3): Likewise.
17854 (vst1q_u16_x3): Likewise.
17855 (vst1q_u32_x3): Likewise.
17856 (vst1q_u64_x3): Likewise.
17857 (vst1q_f16_x3): Likewise.
17858 (vst1q_f32_x3): Likewise.
17859 (vst1q_f64_x3): Likewise.
17860 (vst1q_p64_x3): Likewise.
17862 2021-07-23 H.J. Lu <hjl.tools@gmail.com>
17865 * config/i386/i386.c (ix86_gen_scratch_sse_rtx): Don't return
17866 hard register when LRA is in progress.
17868 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
17870 * config/aarch64/arm_neon.h (vst1_s8_x4): Use
17871 __builtin_memcpy instead of using a union.
17872 (vst1q_s8_x4): Likewise.
17873 (vst1_s16_x4): Likewise.
17874 (vst1q_s16_x4): Likewise.
17875 (vst1_s32_x4): Likewise.
17876 (vst1q_s32_x4): Likewise.
17877 (vst1_u8_x4): Likewise.
17878 (vst1q_u8_x4): Likewise.
17879 (vst1_u16_x4): Likewise.
17880 (vst1q_u16_x4): Likewise.
17881 (vst1_u32_x4): Likewise.
17882 (vst1q_u32_x4): Likewise.
17883 (vst1_f16_x4): Likewise.
17884 (vst1q_f16_x4): Likewise.
17885 (vst1_f32_x4): Likewise.
17886 (vst1q_f32_x4): Likewise.
17887 (vst1_p8_x4): Likewise.
17888 (vst1q_p8_x4): Likewise.
17889 (vst1_p16_x4): Likewise.
17890 (vst1q_p16_x4): Likewise.
17891 (vst1_s64_x4): Likewise.
17892 (vst1_u64_x4): Likewise.
17893 (vst1_p64_x4): Likewise.
17894 (vst1q_s64_x4): Likewise.
17895 (vst1q_u64_x4): Likewise.
17896 (vst1q_p64_x4): Likewise.
17897 (vst1_f64_x4): Likewise.
17898 (vst1q_f64_x4): Likewise.
17900 2021-07-23 Jonathan Wrightt <jonathan.wright@arm.com>
17902 * config/aarch64/arm_neon.h (vst2_s64): Use __builtin_memcpy
17903 instead of constructing __builtin_aarch64_simd_oi one vector
17905 (vst2_u64): Likewise.
17906 (vst2_f64): Likewise.
17907 (vst2_s8): Likewise.
17908 (vst2_p8): Likewise.
17909 (vst2_s16): Likewise.
17910 (vst2_p16): Likewise.
17911 (vst2_s32): Likewise.
17912 (vst2_u8): Likewise.
17913 (vst2_u16): Likewise.
17914 (vst2_u32): Likewise.
17915 (vst2_f16): Likewise.
17916 (vst2_f32): Likewise.
17917 (vst2_p64): Likewise.
17918 (vst2q_s8): Likewise.
17919 (vst2q_p8): Likewise.
17920 (vst2q_s16): Likewise.
17921 (vst2q_p16): Likewise.
17922 (vst2q_s32): Likewise.
17923 (vst2q_s64): Likewise.
17924 (vst2q_u8): Likewise.
17925 (vst2q_u16): Likewise.
17926 (vst2q_u32): Likewise.
17927 (vst2q_u64): Likewise.
17928 (vst2q_f16): Likewise.
17929 (vst2q_f32): Likewise.
17930 (vst2q_f64): Likewise.
17931 (vst2q_p64): Likewise.
17933 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
17935 * config/aarch64/arm_neon.h (vst3_s64): Use __builtin_memcpy
17936 instead of constructing __builtin_aarch64_simd_ci one vector
17938 (vst3_u64): Likewise.
17939 (vst3_f64): Likewise.
17940 (vst3_s8): Likewise.
17941 (vst3_p8): Likewise.
17942 (vst3_s16): Likewise.
17943 (vst3_p16): Likewise.
17944 (vst3_s32): Likewise.
17945 (vst3_u8): Likewise.
17946 (vst3_u16): Likewise.
17947 (vst3_u32): Likewise.
17948 (vst3_f16): Likewise.
17949 (vst3_f32): Likewise.
17950 (vst3_p64): Likewise.
17951 (vst3q_s8): Likewise.
17952 (vst3q_p8): Likewise.
17953 (vst3q_s16): Likewise.
17954 (vst3q_p16): Likewise.
17955 (vst3q_s32): Likewise.
17956 (vst3q_s64): Likewise.
17957 (vst3q_u8): Likewise.
17958 (vst3q_u16): Likewise.
17959 (vst3q_u32): Likewise.
17960 (vst3q_u64): Likewise.
17961 (vst3q_f16): Likewise.
17962 (vst3q_f32): Likewise.
17963 (vst3q_f64): Likewise.
17964 (vst3q_p64): Likewise.
17966 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
17968 * config/aarch64/arm_neon.h (vst4_s64): Use __builtin_memcpy
17969 instead of constructing __builtin_aarch64_simd_xi one vector
17971 (vst4_u64): Likewise.
17972 (vst4_f64): Likewise.
17973 (vst4_s8): Likewise.
17974 (vst4_p8): Likewise.
17975 (vst4_s16): Likewise.
17976 (vst4_p16): Likewise.
17977 (vst4_s32): Likewise.
17978 (vst4_u8): Likewise.
17979 (vst4_u16): Likewise.
17980 (vst4_u32): Likewise.
17981 (vst4_f16): Likewise.
17982 (vst4_f32): Likewise.
17983 (vst4_p64): Likewise.
17984 (vst4q_s8): Likewise.
17985 (vst4q_p8): Likewise.
17986 (vst4q_s16): Likewise.
17987 (vst4q_p16): Likewise.
17988 (vst4q_s32): Likewise.
17989 (vst4q_s64): Likewise.
17990 (vst4q_u8): Likewise.
17991 (vst4q_u16): Likewise.
17992 (vst4q_u32): Likewise.
17993 (vst4q_u64): Likewise.
17994 (vst4q_f16): Likewise.
17995 (vst4q_f32): Likewise.
17996 (vst4q_f64): Likewise.
17997 (vst4q_p64): Likewise.
17999 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
18001 * config/aarch64/arm_neon.h (vtbx4_s8): Use __builtin_memcpy
18002 instead of constructing __builtin_aarch64_simd_oi one vector
18004 (vtbx4_u8): Likewise.
18005 (vtbx4_p8): Likewise.
18007 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
18009 * config/aarch64/arm_neon.h (vtbl3_s8): Use __builtin_memcpy
18010 instead of constructing __builtin_aarch64_simd_oi one vector
18012 (vtbl3_u8): Likewise.
18013 (vtbl3_p8): Likewise.
18014 (vtbl4_s8): Likewise.
18015 (vtbl4_u8): Likewise.
18016 (vtbl4_p8): Likewise.
18018 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
18020 * config/aarch64/arm_neon.h (vqtbx2_s8): Use __builtin_memcpy
18021 instead of constructing __builtin_aarch64_simd_oi one vector
18023 (vqtbx2_u8): Likewise.
18024 (vqtbx2_p8): Likewise.
18025 (vqtbx2q_s8): Likewise.
18026 (vqtbx2q_u8): Likewise.
18027 (vqtbx2q_p8): Likewise.
18028 (vqtbx3_s8): Use __builtin_memcpy instead of constructing
18029 __builtin_aarch64_simd_ci one vector at a time.
18030 (vqtbx3_u8): Likewise.
18031 (vqtbx3_p8): Likewise.
18032 (vqtbx3q_s8): Likewise.
18033 (vqtbx3q_u8): Likewise.
18034 (vqtbx3q_p8): Likewise.
18035 (vqtbx4_s8): Use __builtin_memcpy instead of constructing
18036 __builtin_aarch64_simd_xi one vector at a time.
18037 (vqtbx4_u8): Likewise.
18038 (vqtbx4_p8): Likewise.
18039 (vqtbx4q_s8): Likewise.
18040 (vqtbx4q_u8): Likewise.
18041 (vqtbx4q_p8): Likewise.
18043 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
18045 * config/aarch64/arm_neon.h (vqtbl2_s8): Use __builtin_memcpy
18046 instead of constructing __builtin_aarch64_simd_oi one vector
18048 (vqtbl2_u8): Likewise.
18049 (vqtbl2_p8): Likewise.
18050 (vqtbl2q_s8): Likewise.
18051 (vqtbl2q_u8): Likewise.
18052 (vqtbl2q_p8): Likewise.
18053 (vqtbl3_s8): Use __builtin_memcpy instead of constructing
18054 __builtin_aarch64_simd_ci one vector at a time.
18055 (vqtbl3_u8): Likewise.
18056 (vqtbl3_p8): Likewise.
18057 (vqtbl3q_s8): Likewise.
18058 (vqtbl3q_u8): Likewise.
18059 (vqtbl3q_p8): Likewise.
18060 (vqtbl4_s8): Use __builtin_memcpy instead of constructing
18061 __builtin_aarch64_simd_xi one vector at a time.
18062 (vqtbl4_u8): Likewise.
18063 (vqtbl4_p8): Likewise.
18064 (vqtbl4q_s8): Likewise.
18065 (vqtbl4q_u8): Likewise.
18066 (vqtbl4q_p8): Likewise.
18068 2021-07-23 Haochen Gui <guihaoc@gcc.gnu.org>
18071 * config/rs6000/rs6000.md (cstore<mode>4): Fix wrong fall through.
18073 2021-07-22 Andrew Pinski <apinski@marvell.com>
18075 PR tree-optimization/10153
18076 * tree-tailcall.c (create_tailcall_accumulator):
18077 Don't call fold_convert as the type should be correct already.
18078 (tree_optimize_tail_calls_1): Use build_{one,zero}_cst instead
18079 of integer_{one,zero}_node for the call of create_tailcall_accumulator.
18081 2021-07-22 Aldy Hernandez <aldyh@redhat.com>
18083 * gimple-range-cache.cc (non_null_ref::adjust_range): Replace
18084 varying_p check for null/non-null check.
18086 2021-07-22 Andrew MacLeod <amacleod@redhat.com>
18088 PR tree-optimization/101511
18089 * value-relation.cc (relation_oracle::query_relation): Check if ssa1
18090 is in ssa2's equiv set, and don't trap if so.
18092 2021-07-22 Andrew MacLeod <amacleod@redhat.com>
18094 PR tree-optimization/101497
18095 * gimple-range-fold.cc (fold_using_range::range_of_cond_expr): Check
18098 2021-07-22 Andrew MacLeod <amacleod@redhat.com>
18100 PR tree-optimization/101496
18101 * vr-values.c (simplify_using_ranges::fold_cond): Call range_of_stmt
18102 first, then vrp_visit_cond_Stmt.
18104 2021-07-22 liuhongt <hongtao.liu@intel.com>
18106 * config/i386/i386-expand.c
18107 (ix86_broadcast_from_integer_constant): Rename to ..
18108 (ix86_broadcast_from_constant): .. this, and extend it to
18110 (ix86_expand_vector_move): Extend to float mode.
18111 * config/i386/i386-features.c
18112 (replace_constant_pool_with_broadcast): Remove.
18113 (remove_partial_avx_dependency_gate): Ditto.
18114 (constant_pool_broadcast): Ditto.
18115 (class pass_constant_pool_broadcast): Ditto.
18116 (make_pass_constant_pool_broadcast): Ditto.
18117 (remove_partial_avx_dependency): Adjust gate.
18118 * config/i386/i386-passes.def: Remove pass_constant_pool_broadcast.
18119 * config/i386/i386-protos.h
18120 (make_pass_constant_pool_broadcast): Remove.
18122 2021-07-22 liuhongt <hongtao.liu@intel.com>
18124 * config/i386/constraints.md (Wb): New constraint.
18126 * config/i386/i386.md (*ashlhi3_1): Extend to avx512 mask
18128 (*ashlqi3_1): Ditto.
18129 (*<insn><mode>3_1): Split to ..
18130 (*ashr<mode>3_1): this, ...
18131 (*lshr<mode>3_1): and this, also extend this pattern to avx512
18133 (*<insn><mode>3_1): Split to ..
18134 (*ashr<mode>3_1): this, ...
18135 (*lshrqi3_1): and this, also extend this pattern to avx512
18137 (*lshrhi3_1): And this, also extend this pattern to avx512
18139 * config/i386/sse.md (k<code><mode>): New define_split after
18140 it to convert generic shift pattern to mask shift ones.
18142 2021-07-21 Thomas Schwinge <thomas@codesourcery.com>
18143 Joseph Myers <joseph@codesourcery.com>
18144 Cesar Philippidis <cesar@codesourcery.com>
18146 * tree-core.h (omp_clause_code): Add 'OMP_CLAUSE_NOHOST'.
18147 * tree.c (omp_clause_num_ops, omp_clause_code_name, walk_tree_1):
18149 * tree-pretty-print.c (dump_omp_clause): Likewise.
18150 * omp-general.c (oacc_verify_routine_clauses): Likewise.
18151 * gimplify.c (gimplify_scan_omp_clauses)
18152 (gimplify_adjust_omp_clauses): Likewise.
18153 * tree-nested.c (convert_nonlocal_omp_clauses)
18154 (convert_local_omp_clauses): Likewise.
18155 * omp-low.c (scan_sharing_clauses): Likewise.
18156 * omp-offload.c (execute_oacc_device_lower): Update.
18158 2021-07-21 Martin Sebor <msebor@redhat.com>
18160 * tree-ssa-alias.c (walk_aliased_vdefs_1): Fix typos in a comment.
18162 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
18164 * config/rs6000/rs6000-gen-builtins.c (write_init_bif_table):
18167 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
18169 * config/rs6000/rs6000-gen-builtins.c (write_fntype): New
18171 (write_fntype_init): New stub function.
18172 (write_init_bif_table): Likewise.
18173 (write_init_ovld_table): New function.
18174 (write_init_file): Implement.
18176 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
18178 * config/rs6000/rs6000-gen-builtins.c
18179 (write_autogenerated_header): New function.
18180 (write_decls): Likewise.
18181 (write_extern_fntype): New callback function.
18182 (write_header_file): Implement.
18184 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
18186 * config/rs6000/rs6000-gen-builtins.c (write_defines_file):
18189 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
18191 * config/rs6000/rs6000-gen-builtins.c (complete_vector_type): New
18193 (complete_base_type): Likewise.
18194 (construct_fntype_id): Likewise.
18195 (parse_bif_entry): Call contruct_fntype_id.
18196 (parse_ovld_entry): Likewise.
18198 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
18200 * config/rs6000/rs6000-gen-builtins.c (ovld_stanza): New struct.
18201 (MAXOVLDSTANZAS): New macro.
18202 (ovld_stanzas): New variable.
18203 (curr_ovld_stanza): Likewise.
18204 (MAXOVLDS): New macro.
18205 (ovlddata): New struct.
18206 (ovlds): New variable.
18207 (curr_ovld): Likewise.
18208 (max_ovld_args): Likewise.
18209 (parse_ovld_entry): New function.
18210 (parse_ovld_stanza): Likewise.
18211 (parse_ovld): Implement.
18213 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
18215 * config/rs6000/rs6000-gen-builtins.c (parse_bif_attrs):
18218 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
18220 * config/rs6000/rs6000-gen-builtins.c (parse_args): New function.
18221 (parse_prototype): Implement.
18223 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
18225 * config/rs6000/rs6000-gen-builtins.c (bif_stanza): New enum.
18226 (curr_bif_stanza): New variable.
18227 (stanza_entry): New struct.
18228 (stanza_map): New initialized variable.
18229 (enable_string): Likewise.
18230 (fnkinds): New enum.
18231 (typelist): New struct.
18232 (attrinfo): Likewise.
18233 (MAXRESTROPNDS): New macro.
18234 (prototype): New struct.
18235 (MAXBIFS): New macro.
18236 (bifdata): New struct.
18237 (bifs): New variable.
18238 (curr_bif): Likewise.
18239 (bif_order): Likewise.
18240 (bif_index): Likewise.
18241 (fatal): New function.
18242 (stanza_name_to_stanza): Likewise.
18243 (parse_bif_attrs): New stub function.
18244 (parse_prototype): Likewise.
18245 (parse_bif_entry): New function.
18246 (parse_bif_stanza): Likewise.
18247 (parse_bif): Implement.
18248 (set_bif_order): New function.
18249 (create_bif_order): Implement.
18251 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
18253 * config/rs6000/rs6000-gen-builtins.c (rbtree.h): New #include.
18254 (num_bifs): New variable.
18255 (num_ovld_stanzas): Likewise.
18256 (num_ovlds): Likewise.
18257 (parse_codes): New enum.
18258 (bif_rbt): New variable.
18259 (ovld_rbt): Likewise.
18260 (fntype_rbt): Likewise.
18261 (bifo_rbt): Likewise.
18262 (parse_bif): New stub function.
18263 (create_bif_order): Likewise.
18264 (parse_ovld): Likewise.
18265 (write_header_file): Likewise.
18266 (write_init_file): Likewise.
18267 (write_defines_file): Likewise.
18268 (delete_output_files): New function.
18271 2021-07-21 H.J. Lu <hjl.tools@gmail.com>
18274 * config/i386/i386-builtin.def: Remove OPTION_MASK_ISA_SSE4_2
18275 from CRC32 _builtin functions.
18277 2021-07-21 Sebastian Huber <sebastian.huber@embedded-brains.de>
18279 * coverage.c (build_gcov_info_var_registration): Mark the object placed
18280 in the linker set as referenced so that it does not get optimized away.
18282 2021-07-21 Kito Cheng <kito.cheng@sifive.com>
18285 2021-07-20 Kito Cheng <kito.cheng@sifive.com>
18287 * config.gcc (riscv*-*-*): Detect which python is available.
18289 2021-07-21 Jakub Jelinek <jakub@redhat.com>
18291 PR middle-end/101535
18292 * gimplify.c (omp_check_private): Properly skip ORT_TARGET_DATA
18293 contexts in which decl isn't privatized and for ORT_TARGET return
18294 false if decl is mapped.
18296 2021-07-21 Richard Sandiford <richard.sandiford@arm.com>
18298 * gimple-loop-jam.c: Include tree-ssa-sccvn.h.
18299 (tree_loop_unroll_and_jam): Run value-numbering on a loop that
18300 has been successfully unrolled.
18302 2021-07-21 Richard Sandiford <richard.sandiford@arm.com>
18304 * tree-ssa-loop-manip.c (determine_exit_conditions): Return a null
18305 exit condition if no tail loop is needed, and if the original exit
18306 condition should therefore be kept as-is.
18307 (tree_transform_and_unroll_loop): Handle that case here too.
18309 2021-07-21 Kewen Lin <linkw@linux.ibm.com>
18311 * tree-data-ref.c (free_dependence_relations): Adjust to pass vec
18313 (free_data_refs): Likewise.
18314 * tree-data-ref.h (free_dependence_relations): Likewise.
18315 (free_data_refs): Likewise.
18316 * tree-predcom.c (struct chain): Use auto_vec instead of vec for
18318 (struct component): Likewise.
18319 (pcom_worker::pcom_worker): Adjust for auto_vec and renaming changes.
18320 (pcom_worker::~pcom_worker): Likewise.
18321 (pcom_worker::release_chain): Adjust as auto_vec changes.
18322 (pcom_worker::loop): Rename to ...
18323 (pcom_worker::m_loop): ... this.
18324 (pcom_worker::datarefs): Rename to ...
18325 (pcom_worker::m_datarefs): ... this. Use auto_vec instead of vec.
18326 (pcom_worker::dependences): Rename to ...
18327 (pcom_worker::m_dependences): ... this. Use auto_vec instead of vec.
18328 (pcom_worker::chains): Rename to ...
18329 (pcom_worker::m_chains): ... this. Use auto_vec instead of vec.
18330 (pcom_worker::looparound_phis): Rename to ...
18331 (pcom_worker::m_looparound_phis): ... this. Use auto_vec instead of
18333 (pcom_worker::cache): Rename to ...
18334 (pcom_worker::m_cache): ... this. Use auto_vec instead of vec.
18335 (pcom_worker::release_chain): Adjust for auto_vec changes.
18336 (pcom_worker::release_chains): Adjust for auto_vec and renaming
18338 (release_component): Remove.
18339 (release_components): Adjust for release_component removal.
18340 (component_of): Adjust to use vec.
18341 (merge_comps): Likewise.
18342 (pcom_worker::aff_combination_dr_offset): Adjust for renaming changes.
18343 (pcom_worker::determine_offset): Likewise.
18344 (class comp_ptrs): Remove.
18345 (pcom_worker::split_data_refs_to_components): Adjust for renaming
18346 changes, for comp_ptrs removal with auto_vec.
18347 (pcom_worker::suitable_component_p): Adjust for renaming changes.
18348 (pcom_worker::filter_suitable_components): Adjust for release_component
18350 (pcom_worker::valid_initializer_p): Adjust for renaming changes.
18351 (pcom_worker::find_looparound_phi): Likewise.
18352 (pcom_worker::add_looparound_copies): Likewise.
18353 (pcom_worker::determine_roots_comp): Likewise.
18354 (pcom_worker::single_nonlooparound_use): Likewise.
18355 (pcom_worker::execute_pred_commoning_chain): Likewise.
18356 (pcom_worker::execute_pred_commoning): Likewise.
18357 (pcom_worker::try_combine_chains): Likewise.
18358 (pcom_worker::prepare_initializers_chain): Likewise.
18359 (pcom_worker::prepare_initializers): Likewise.
18360 (pcom_worker::prepare_finalizers_chain): Likewise.
18361 (pcom_worker::prepare_finalizers): Likewise.
18362 (pcom_worker::tree_predictive_commoning_loop): Likewise.
18364 2021-07-20 Martin Sebor <msebor@redhat.com>
18366 PR middle-end/101397
18367 * builtins.c (gimple_call_return_array): Add argument. Correct
18368 offsets for memchr, mempcpy, stpcpy, and stpncpy.
18369 (compute_objsize_r): Adjust offset computation for argument returning
18372 2021-07-20 Martin Sebor <msebor@redhat.com>
18374 PR middle-end/101300
18375 * tree-ssa-uninit.c (check_defs): Handle UBSAN built-ins.
18377 2021-07-20 Jeff Law <jlaw@localhost.localdomain>
18379 * function.c (assign_parm_setup_block): Use adjust_address instead
18380 of change_address to preserve MEM_EXPR and friends.
18382 2021-07-20 Martin Sebor <msebor@redhat.com>
18384 * cfgloop.h (single_likely_exit): Adjust by-value argument to
18385 by-const-reference.
18386 * cfgloopanal.c (single_likely_exit): Same.
18387 * cgraph.h (struct cgraph_node): Same.
18388 * cgraphclones.c (cgraph_node::create_virtual_clone): Same.
18389 * genautomata.c (merge_states): Same.
18390 * genextract.c (VEC_char_to_string): Same.
18391 * genmatch.c (dt_node::gen_kids_1): Same.
18392 (walk_captures): Adjust by-value argument to by-reference.
18393 * gimple-ssa-store-merging.c (check_no_overlap): Adjust by-value argument
18394 to by-const-reference.
18395 * gimple.c (gimple_build_call_vec): Same.
18396 (gimple_build_call_internal_vec): Same.
18397 (gimple_build_switch): Same.
18398 (sort_case_labels): Same.
18399 (preprocess_case_label_vec_for_gimple): Adjust by-value argument to
18401 * gimple.h (gimple_build_call_vec): Adjust by-value argument to
18402 by-const-reference.
18403 (gimple_build_call_internal_vec): Same.
18404 (gimple_build_switch): Same.
18405 (sort_case_labels): Same.
18406 (preprocess_case_label_vec_for_gimple): Adjust by-value argument to
18408 * haifa-sched.c (calc_priorities): Adjust by-value argument to
18409 by-const-reference.
18410 (sched_init_luids): Same.
18411 (haifa_init_h_i_d): Same.
18412 * ipa-cp.c (ipa_get_indirect_edge_target_1): Same.
18413 (adjust_callers_for_value_intersection): Adjust by-value argument to
18415 (find_more_scalar_values_for_callers_subset): Adjust by-value argument to
18416 by-const-reference.
18417 (find_more_contexts_for_caller_subset): Same.
18418 (find_aggregate_values_for_callers_subset): Same.
18419 (copy_useful_known_contexts): Same.
18420 * ipa-fnsummary.c (remap_edge_summaries): Same.
18421 (remap_freqcounting_predicate): Same.
18422 * ipa-inline.c (add_new_edges_to_heap): Adjust by-value argument to
18424 * ipa-predicate.c (predicate::remap_after_inlining): Adjust by-value argument
18425 to by-const-reference.
18426 * ipa-predicate.h (predicate::remap_after_inlining): Same.
18427 * ipa-prop.c (ipa_find_agg_cst_for_param): Same.
18428 * ipa-prop.h (ipa_find_agg_cst_for_param): Same.
18429 * ira-build.c (ira_loop_tree_body_rev_postorder): Same.
18430 * read-rtl.c (add_overload_instance): Same.
18431 * rtl.h (native_decode_rtx): Same.
18432 (native_decode_vector_rtx): Same.
18433 * sched-int.h (sched_init_luids): Same.
18434 (haifa_init_h_i_d): Same.
18435 * simplify-rtx.c (native_decode_vector_rtx): Same.
18436 (native_decode_rtx): Same.
18437 * tree-call-cdce.c (gen_shrink_wrap_conditions): Same.
18438 (shrink_wrap_one_built_in_call_with_conds): Same.
18439 (shrink_wrap_conditional_dead_built_in_calls): Same.
18440 * tree-data-ref.c (create_runtime_alias_checks): Same.
18441 (compute_all_dependences): Same.
18442 * tree-data-ref.h (compute_all_dependences): Same.
18443 (create_runtime_alias_checks): Same.
18444 (index_in_loop_nest): Same.
18445 * tree-if-conv.c (mask_exists): Same.
18446 * tree-loop-distribution.c (class loop_distribution): Same.
18447 (loop_distribution::create_rdg_vertices): Same.
18448 (dump_rdg_partitions): Same.
18449 (debug_rdg_partitions): Same.
18450 (partition_contains_all_rw): Same.
18451 (loop_distribution::distribute_loop): Same.
18452 * tree-parloops.c (oacc_entry_exit_ok_1): Same.
18453 (oacc_entry_exit_single_gang): Same.
18454 * tree-ssa-loop-im.c (hoist_memory_references): Same.
18455 (loop_suitable_for_sm): Same.
18456 * tree-ssa-loop-niter.c (bound_index): Same.
18457 * tree-ssa-reassoc.c (update_ops): Same.
18458 (swap_ops_for_binary_stmt): Same.
18459 (rewrite_expr_tree): Same.
18460 (rewrite_expr_tree_parallel): Same.
18461 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Same.
18462 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Same.
18463 * tree-ssa-structalias.c (process_all_all_constraints): Same.
18464 (make_constraints_to): Same.
18465 (handle_lhs_call): Same.
18466 (find_func_aliases_for_builtin_call): Same.
18467 (sort_fieldstack): Same.
18468 (check_for_overlaps): Same.
18469 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks): Same.
18470 (vect_create_cond_for_unequal_addrs): Same.
18471 (vect_create_cond_for_lower_bounds): Same.
18472 (vect_create_cond_for_alias_checks): Same.
18473 * tree-vect-slp-patterns.c (vect_validate_multiplication): Same.
18474 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
18475 (vect_make_slp_decision): Same.
18476 (vect_slp_bbs): Same.
18477 (duplicate_and_interleave): Same.
18478 (vect_transform_slp_perm_load): Same.
18479 (vect_schedule_slp): Same.
18480 * tree-vectorizer.h (vect_transform_slp_perm_load): Same.
18481 (vect_schedule_slp): Same.
18482 (duplicate_and_interleave): Same.
18483 * tree.c (build_vector_from_ctor): Same.
18484 (build_vector): Same.
18485 (check_vector_cst): Same.
18486 (check_vector_cst_duplicate): Same.
18487 (check_vector_cst_fill): Same.
18488 (check_vector_cst_stepped): Same.
18489 * tree.h (build_vector_from_ctor): Same.
18491 2021-07-20 Jakub Jelinek <jakub@redhat.com>
18494 * config/rs6000/rs6000-protos.h (easy_altivec_constant): Change return
18495 type from bool to int.
18496 * config/rs6000/rs6000.c (vspltis_constant): Fix up handling the
18497 EASY_VECTOR_MSB case if either step or copies is not 1.
18498 (vspltis_shifted): Fix comment typo.
18499 (easy_altivec_constant): Change return type from bool to int, instead
18500 of returning true return byte size of the element mode that should be
18501 used to synthetize the constant.
18502 * config/rs6000/predicates.md (easy_vector_constant_msb): Require
18503 that vspltis_shifted is 0, handle the case where easy_altivec_constant
18504 assumes using different vector mode from CONST_VECTOR's mode.
18505 * config/rs6000/altivec.md (easy_vector_constant_msb splitter): Use
18506 easy_altivec_constant to determine mode in which -1 >> -1 should be
18507 performed, use rs6000_expand_vector_init instead of gen_vec_initv4sisi.
18509 2021-07-20 Richard Biener <rguenther@suse.de>
18512 * dwarf2out.h (dwarf_file_data): Add key member.
18513 * dwarf2out.c (dwarf_file_hasher::equal): Compare key.
18514 (dwarf_file_hasher::hash): Hash key.
18515 (lookup_filename): Remap the filename and store it in the
18516 filename member of dwarf_file_data when creating a new
18518 (file_name_acquire): Do not remap the filename again.
18519 (maybe_emit_file): Likewise.
18521 2021-07-20 Jonathan Wright <jonathan.wright@arm.com>
18523 * config/aarch64/aarch64-simd-builtins.def: Use two variant
18524 generators for all TBL/TBX intrinsics and rename to
18525 consistent forms: qtbl[1234] or qtbx[1234].
18526 * config/aarch64/aarch64-simd.md (aarch64_tbl1<mode>):
18528 (aarch64_qtbl1<mode>): This.
18529 (aarch64_tbx1<mode>): Rename to...
18530 (aarch64_qtbx1<mode>): This.
18531 (aarch64_tbl2v16qi): Delete.
18532 (aarch64_tbl3<mode>): Rename to...
18533 (aarch64_qtbl2<mode>): This.
18534 (aarch64_tbx4<mode>): Rename to...
18535 (aarch64_qtbx2<mode>): This.
18536 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Use
18537 renamed qtbl1 and qtbl2 RTL patterns.
18538 * config/aarch64/arm_neon.h (vqtbl1_p8): Use renamed qtbl1
18540 (vqtbl1_s8): Likewise.
18541 (vqtbl1_u8): Likewise.
18542 (vqtbl1q_p8): Likewise.
18543 (vqtbl1q_s8): Likewise.
18544 (vqtbl1q_u8): Likewise.
18545 (vqtbx1_s8): Use renamed qtbx1 RTL pattern.
18546 (vqtbx1_u8): Likewise.
18547 (vqtbx1_p8): Likewise.
18548 (vqtbx1q_s8): Likewise.
18549 (vqtbx1q_u8): Likewise.
18550 (vqtbx1q_p8): Likewise.
18551 (vtbl1_s8): Use renamed qtbl1 RTL pattern.
18552 (vtbl1_u8): Likewise.
18553 (vtbl1_p8): Likewise.
18554 (vtbl2_s8): Likewise
18555 (vtbl2_u8): Likewise.
18556 (vtbl2_p8): Likewise.
18557 (vtbl3_s8): Use renamed qtbl2 RTL pattern.
18558 (vtbl3_u8): Likewise.
18559 (vtbl3_p8): Likewise.
18560 (vtbl4_s8): Likewise.
18561 (vtbl4_u8): Likewise.
18562 (vtbl4_p8): Likewise.
18563 (vtbx2_s8): Use renamed qtbx2 RTL pattern.
18564 (vtbx2_u8): Likewise.
18565 (vtbx2_p8): Likewise.
18566 (vqtbl2_s8): Use renamed qtbl2 RTL pattern.
18567 (vqtbl2_u8): Likewise.
18568 (vqtbl2_p8): Likewise.
18569 (vqtbl2q_s8): Likewise.
18570 (vqtbl2q_u8): Likewise.
18571 (vqtbl2q_p8): Likewise.
18572 (vqtbx2_s8): Use renamed qtbx2 RTL pattern.
18573 (vqtbx2_u8): Likewise.
18574 (vqtbx2_p8): Likewise.
18575 (vqtbx2q_s8): Likewise.
18576 (vqtbx2q_u8): Likewise.
18577 (vqtbx2q_p8): Likewise.
18578 (vtbx4_s8): Likewise.
18579 (vtbx4_u8): Likewise.
18580 (vtbx4_p8): Likewise.
18582 2021-07-20 Uroš Bizjak <ubizjak@gmail.com>
18585 * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
18587 (define_peephole2 atomic_loaddi_fpu): Ditto.
18589 2021-07-20 Kito Cheng <kito.cheng@sifive.com>
18591 * config.gcc (riscv*-*-*): Detect which python is available.
18593 2021-07-20 Kewen Lin <linkw@linux.ibm.com>
18595 * config/rs6000/vsx.md (mulhs_<mode>): Rename to...
18596 (smul<mode>3_highpart): ... this.
18597 (mulhu_<mode>): Rename to...
18598 (umul<mode>3_highpart): ... this.
18599 * config/rs6000/rs6000-builtin.def (MULHS_V2DI, MULHS_V4SI,
18600 MULHU_V2DI, MULHU_V4SI): Adjust.
18602 2021-07-20 Kewen Lin <linkw@linux.ibm.com>
18604 PR tree-optimization/100696
18605 * internal-fn.c (first_commutative_argument): Add info for IFN_MULH.
18606 * internal-fn.def (IFN_MULH): New internal function.
18607 * tree-vect-patterns.c (vect_recog_mulhs_pattern): Add support to
18608 recog normal multiply highpart as IFN_MULH.
18609 * config/i386/i386.c (ix86_add_stmt_cost): Adjust for combined
18612 2021-07-19 Indu Bhagat <indu.bhagat@oracle.com>
18614 * config/elfos.h (CTF_DEBUGGING_INFO): New definition.
18615 (BTF_DEBUGGING_INFO): Likewise.
18616 * doc/tm.texi.in: Document the new macros.
18617 * doc/tm.texi: Regenerated.
18618 * toplev.c: Guard initialization of debug hooks.
18620 2021-07-19 Indu Bhagat <indu.bhagat@oracle.com>
18622 * flags.h (ctf_debuginfo_p): New function declaration.
18623 * opts.c (ctf_debuginfo_p): New function definition.
18625 2021-07-19 Andrew Stubbs <ams@codesourcery.com>
18628 * config/gcn/gcn-hsa.h (DRIVER_SELF_SPECS): New.
18629 (ASM_SPEC): Set -mattr for xnack and sram-ecc.
18630 * config/gcn/gcn-opts.h (enum sram_ecc_type): New.
18631 * config/gcn/gcn-valu.md: Add a warning comment.
18632 * config/gcn/gcn.c (gcn_option_override): Add "sorry" for -mxnack.
18633 (output_file_start): Add xnack and sram-ecc state to ".amdgcn_target".
18634 * config/gcn/gcn.md: Add a warning comment.
18635 * config/gcn/gcn.opt: Add -mxnack and -msram-ecc.
18636 * config/gcn/mkoffload.c (EF_AMDGPU_MACH_AMDGCN_GFX908): Remove
18638 (EF_AMDGPU_XNACK): New.
18639 (EF_AMDGPU_SRAM_ECC): New.
18641 (copy_early_debug_info): Use elf_flags.
18642 (main): Handle -mxnack and -msram-ecc options.
18643 * doc/invoke.texi: Document -mxnack and -msram-ecc.
18645 2021-07-19 Andrew Pinski <apinski@marvell.com>
18648 * config/aarch64/aarch64.md (csneg3_uxtw_insn): Rename to ...
18649 (*cs<neg_not_cs>3_uxtw_insn4): and extend to NEG_NOT.
18651 2021-07-19 Richard Biener <rguenther@suse.de>
18653 PR tree-optimization/101505
18654 * tree-vect-patterns.c (vect_determine_precisions): Walk
18655 PHIs also for loop vectorization.
18657 2021-07-19 Richard Biener <rguenther@suse.de>
18659 * gimple.h (gimple_expr_type): Remove.
18660 * doc/gimple.texi: Remove gimple_expr_type documentation.
18662 2021-07-19 Richard Biener <rguenther@suse.de>
18664 * tree-ssa-sccvn.c (vn_reference_eq): Handle NULL vr->type.
18665 (ao_ref_init_from_vn_reference): Likewise.
18666 (fully_constant_reference): Likewise.
18667 (vn_reference_lookup_call): Do not set vr->type to random
18669 * tree-ssa-pre.c (compute_avail): Do not try to PRE calls
18671 * tree-vect-generic.c (expand_vector_piecewise): Pass in
18672 whether we expanded parallel.
18673 (expand_vector_parallel): Adjust.
18674 (expand_vector_addition): Likewise.
18675 (expand_vector_comparison): Likewise.
18676 (expand_vector_operation): Likewise.
18677 (expand_vector_scalar_condition): Likewise.
18678 (expand_vector_conversion): Likewise.
18680 2021-07-19 Richard Biener <rguenther@suse.de>
18682 * tree-vrp.c (register_edge_assert_for_2): Use the
18684 (vrp_folder::fold_predicate_in): Likewise.
18685 * vr-values.c (gimple_assign_nonzero_p): Likewise.
18686 (vr_values::extract_range_from_comparison): Likewise.
18687 (vr_values::extract_range_from_ubsan_builtin): Use the
18688 type of the first operand.
18689 (vr_values::extract_range_basic): Push down type
18690 computation, use the appropriate LHS.
18691 (vr_values::extract_range_from_assignment): Use the
18694 2021-07-18 H.J. Lu <hjl.tools@gmail.com>
18697 * common/config/i386/i386-common.c (ix86_handle_option): For
18698 -mgeneral-regs-only, enable the GPR only instructions which are
18699 enabled implicitly by SSE ISAs unless they have been disabled
18702 2021-07-18 H.J. Lu <hjl.tools@gmail.com>
18705 * config/i386/i386.c (ix86_check_avx_upper_stores): Moved before
18706 ix86_avx_u128_mode_needed.
18707 (ix86_avx_u128_mode_needed): Return AVX_U128_DIRTY if callee
18708 returns AVX register.
18710 2021-07-17 Jan Hubicka <hubicka@ucw.cz>
18712 * tree-ssa-structalias.c (handle_rhs_call): Support EAF_NOT_RETURNED.
18713 (handle_const_call): Liekise
18714 (handle_pure_call): Liekise
18716 2021-07-17 Andrew MacLeod <amacleod@redhat.com>
18718 PR tree-optimization/96542
18719 * range-op.cc (range_operator::wi_fold_in_parts): New.
18720 (range_operator::fold_range): Call wi_fold_in_parts.
18721 (operator_lshift::wi_fold): Fix broken lshift by [0,0].
18722 * range-op.h (wi_fold_in_parts): Add prototype.
18724 2021-07-16 David Malcolm <dmalcolm@redhat.com>
18726 * doc/analyzer.texi: Add __analyzer_dump_state.
18728 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
18730 * config/rs6000/rbtree.c: New file.
18731 * config/rs6000/rbtree.h: New file.
18733 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
18735 * config/rs6000/rs6000-gen-builtins.c (restriction): New enum.
18736 (typeinfo): Add restr field.
18737 (match_bracketed_pair): New function.
18738 (match_const_restriction): Implement.
18740 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
18742 * config/rs6000/rs6000-gen-builtins.c (match_basetype): Implement.
18744 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
18746 * config/rs6000/rs6000-gen-builtins.c (void_status): New enum.
18747 (basetype): Likewise.
18748 (typeinfo): Likewise.
18749 (handle_pointer): New function.
18750 (match_basetype): New stub function.
18751 (match_const_restriction): Likewise.
18752 (match_type): New function.
18754 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
18756 * config/rs6000/rs6000-gen-builtins.c (consume_whitespace): New
18758 (advance_line): Likewise.
18759 (safe_inc_pos): Likewise.
18760 (match_identifier): Likewise.
18761 (match_integer): Likewise.
18762 (match_to_right_bracket): Likewise.
18764 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
18766 * config/rs6000/rs6000-gen-builtins.c (bif_file): New variable.
18767 (ovld_file): Likewise.
18768 (header_file): Likewise.
18769 (init_file): Likewise.
18770 (defines_file): Likewise.
18771 (pgm_path): Likewise.
18772 (bif_path): Likewise.
18773 (ovld_path): Likewise.
18774 (header_path): Likewise.
18775 (init_path): Likewise.
18776 (defines_path): Likewise.
18777 (LINELEN): New macro.
18778 (linebuf): New variable.
18782 (bif_diag): New function.
18783 (ovld_diag): Likewise.
18785 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
18787 * config/rs6000/rs6000-builtin-new.def: New.
18788 * config/rs6000/rs6000-overload.def: New.
18790 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
18792 * config/rs6000/rs6000-gen-builtins.c: New.
18794 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
18796 * Makefile.in (EXTRA_GTYPE_DEPS): New variable.
18797 (s-gtype): Depend on EXTRA_GTYPE_DEPS.
18798 * gengtype-state.c (state_writer::write_state_file_list): Add a
18799 parameter to the fileslist expression for the number of build
18801 (read_state_files_list): Detect build headers and strip the
18802 initial "./" or ".\" from their names.
18803 * gengtype.c (build_headers): New global variable.
18804 (num_build_headers): Likewise.
18805 (open_base_files): Emit #include for each build header.
18806 (main): Detect and count build headers.
18807 * gengtype.h (build_headers): New extern variable.
18808 (num_build_headers): Likewise.
18810 2021-07-16 Richard Biener <rguenther@suse.de>
18812 * gimple-ssa-store-merging.c (verify_symbolic_number_p): Use
18813 the type of the LHS.
18814 (find_bswap_or_nop_1): Likewise.
18815 (find_bswap_or_nop): Likewise.
18816 * tree-vectorizer.h (vect_get_smallest_scalar_type): Adjust
18818 * tree-vect-data-refs.c (vect_get_smallest_scalar_type):
18819 Remove unused parameters, pass in the scalar type. Fix
18820 internal store function handling.
18821 * tree-vect-stmts.c (vect_analyze_stmt): Remove assert.
18822 (vect_get_vector_types_for_stmt): Move down check for
18823 existing vector stmt after we've determined a scalar type.
18824 Pass down the used scalar type to vect_get_smallest_scalar_type.
18825 * tree-vect-generic.c (expand_vector_condition): Use
18826 the type of the LHS.
18827 (expand_vector_scalar_condition): Likewise.
18828 (expand_vector_operations_1): Likewise.
18829 * tree-vect-patterns.c (vect_widened_op_tree): Likewise.
18830 (vect_recog_dot_prod_pattern): Likewise.
18831 (vect_recog_sad_pattern): Likewise.
18832 (vect_recog_widen_op_pattern): Likewise.
18833 (vect_recog_widen_sum_pattern): Likewise.
18834 (vect_recog_mixed_size_cond_pattern): Likewise.
18836 2021-07-16 Jan Hubicka <hubicka@ucw.cz>
18838 * ipa-modref.c (struct escape_entry): Use eaf_fleags_t.
18839 (dump_eaf_flags): Dump EAF_NOT_RETURNED
18840 (eaf_flags_useful_p): Use eaf_fleags_t; handle const functions
18841 and EAF_NOT_RETURNED.
18842 (modref_summary::useful_p): Likewise.
18843 (modref_summary_lto::useful_p): Likewise.
18844 (struct) modref_summary_lto: Use eaf_fleags_t.
18845 (deref_flags): Handle EAF_NOT_RETURNED.
18846 (struct escape_point): Use min_flags.
18847 (modref_lattice::init): Add EAF_NOT_RETURNED.
18848 (merge_call_lhs_flags): Ignore EAF_NOT_RETURNED functions
18849 (analyze_ssa_name_flags): Clear EAF_NOT_RETURNED on return;
18851 (analyze_parms): Also analyze const functions; update conition on
18853 (modref_write): Update streaming.
18854 (read_section): Update streaming.
18855 (remap_arg_flags): Use eaf_flags_t.
18856 (modref_merge_call_site_flags): Hanlde EAF_NOT_RETURNED.
18857 * ipa-modref.h: (eaf_flags_t): New typedef.
18858 (struct modref_summary): Use eaf_flags_t.
18859 * tree-core.h (EAF_NOT_RETURNED): New constant.
18861 2021-07-16 Richard Biener <rguenther@suse.de>
18863 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Use
18864 the type of the LHS.
18865 (gimple_assign_nonnegative_warnv_p): Likewise.
18866 (gimple_call_nonnegative_warnv_p): Likewise. Return false
18867 if the call has no LHS.
18868 * gimple.c (gimple_could_trap_p_1): Use the type of the LHS.
18869 * tree-eh.c (stmt_could_throw_1_p): Likewise.
18870 * tree-inline.c (insert_init_stmt): Likewise.
18871 * tree-ssa-loop-niter.c (get_val_for): Likewise.
18872 * tree-outof-ssa.c (ssa_is_replaceable_p): Use the type of
18874 * tree-ssa-sccvn.c (init_vn_nary_op_from_stmt): Take a
18875 gassign *. Use the type of the lhs.
18876 (vn_nary_op_lookup_stmt): Adjust.
18877 (vn_nary_op_insert_stmt): Likewise.
18879 2021-07-16 Ilya Leoshkevich <iii@linux.ibm.com>
18881 * config/s390/predicates.md (bras_sym_operand): Accept all
18882 functions in 64-bit mode, use UNSPEC_PLT31.
18883 (larl_operand): Use UNSPEC_PLT31.
18884 * config/s390/s390.c (s390_loadrelative_operand_p): Likewise.
18885 (legitimize_pic_address): Likewise.
18886 (s390_emit_tls_call_insn): Mark __tls_get_offset as function,
18888 (s390_delegitimize_address): Use UNSPEC_PLT31.
18889 (s390_output_addr_const_extra): Likewise.
18890 (print_operand): Add @PLT to TLS calls, handle %K.
18891 (s390_function_profiler): Mark __fentry__/_mcount as function,
18892 use %K, use UNSPEC_PLT31.
18893 (s390_output_mi_thunk): Use only UNSPEC_GOT, use %K.
18894 (s390_emit_call): Use UNSPEC_PLT31.
18895 (s390_emit_tpf_eh_return): Mark __tpf_eh_return as function.
18896 * config/s390/s390.md (UNSPEC_PLT31): Rename from UNSPEC_PLT.
18897 (*movdi_64): Use %K.
18898 (reload_base_64): Likewise.
18899 (*sibcall_brc): Likewise.
18900 (*sibcall_brcl): Likewise.
18901 (*sibcall_value_brc): Likewise.
18902 (*sibcall_value_brcl): Likewise.
18904 (*brasl): Likewise.
18905 (*bras_r): Likewise.
18906 (*brasl_r): Likewise.
18907 (*bras_tls): Likewise.
18908 (*brasl_tls): Likewise.
18909 (main_base_64): Likewise.
18910 (reload_base_64): Likewise.
18911 (@split_stack_call<mode>): Likewise.
18913 2021-07-16 Richard Biener <rguenther@suse.de>
18915 PR tree-optimization/101467
18916 * tree-vect-stmts.c (vect_gen_while): Properly guard
18917 make_temp_ssa_name usage.
18919 2021-07-16 Cooper Qu <cooper.qu@linux.alibaba.com>
18921 * config.gcc: Don't use forked print-sysroot-suffix.sh and
18922 t-sysroot-suffix for C-SKY.
18923 * config/csky/print-sysroot-suffix.sh: Delete.
18924 * config/csky/t-csky-linux: Delete.
18925 * config/csky/t-sysroot-suffix: Define MULTILIB_DIRNAMES
18926 instead of CSKY_MULTILIB_DIRNAMES.
18928 2021-07-16 Richard Biener <rguenther@suse.de>
18930 * tree-vect-loop.c (vect_transform_cycle_phi): Correct sign
18931 conversion issues with the partial reduction of the reused
18932 vector accumulator.
18934 2021-07-16 Richard Biener <rguenther@suse.de>
18936 * config/i386/i386-options.c (ix86_option_override_internal): Set
18937 param_vect_partial_vector_usage to zero if not set.
18939 2021-07-15 Uroš Bizjak <ubizjak@gmail.com>
18942 * config/i386/i386.h (VALID_SSE_REG_MODE): Add TDmode.
18943 (VALID_INT_MODE_P): Add SDmode and DDmode.
18944 Add TDmode for TARGET_64BIT.
18945 (VALID_DFP_MODE_P): Remove.
18946 * config/i386/i386.c (ix86_hard_regno_mode_ok):
18947 Do not use VALID_DFP_MODE_P.
18949 2021-07-15 Andrew MacLeod <amacleod@redhat.com>
18951 * gimple-range-fold.cc (adjust_pointer_diff_expr): Use
18953 (fold_using_range::fold_stmt): Ditto.
18954 (fold_using_range::range_of_range_op): Ditto.
18955 (fold_using_range::range_of_phi): Ditto.
18956 (fold_using_range::range_of_call): Ditto.
18957 (fold_using_range::range_of_builtin_ubsan_call): Ditto.
18958 (fold_using_range::range_of_builtin_call): Ditto.
18959 (fold_using_range::range_of_cond_expr): Ditto.
18960 * gimple-range-fold.h (gimple_range_type): New.
18962 2021-07-15 Martin Sebor <msebor@redhat.com>
18964 PR middle-end/97027
18965 * tree-ssa-strlen.c (handle_assign): New function.
18966 (maybe_warn_overflow): Add argument.
18967 (nonzero_bytes_for_type): New function.
18968 (count_nonzero_bytes): Handle more tree types. Call
18969 nonzero_bytes_for_tye.
18970 (count_nonzero_bytes): Handle types.
18971 (handle_store): Handle stores from function calls.
18972 (strlen_check_and_optimize_call): Move code to handle_assign. Call
18973 it for assignments from function calls.
18975 2021-07-15 David Malcolm <dmalcolm@redhat.com>
18980 * doc/invoke.texi: Add -Wanalyzer-use-of-uninitialized-value.
18982 2021-07-15 David Malcolm <dmalcolm@redhat.com>
18984 * doc/invoke.texi (-fdump-analyzer-exploded-paths): New.
18986 2021-07-15 Martin Sebor <msebor@redhat.com>
18990 * fold-const.c (operand_compare::operand_equal_p): Handle OEP_DECL_NAME.
18991 (operand_compare::verify_hash_value): Same.
18992 * tree-core.h (OEP_DECL_NAME): New.
18994 2021-07-15 Martin Jambor <mjambor@suse.cz>
18996 * profile-count.h (profile_count::value): Change the return type to
18998 * gimple-pretty-print.c (dump_gimple_bb_header): Adjust print
19000 * tree-cfg.c (dump_function_to_file): Likewise.
19002 2021-07-15 Bill Schmidt <wschmidt@linux.ibm.com>
19005 * config/rs6000/rs6000-p8swap.c (has_part_mult): New.
19006 (rs6000_analyze_swaps): Insns containing a subreg of a mult are
19009 2021-07-15 Richard Biener <rguenther@suse.de>
19011 * tree-vectorizer.h (vect_gen_while): Match up with
19012 vect_gen_while_not.
19013 * tree-vect-stmts.c (vect_gen_while): Adjust API to that
19014 of vect_gen_while_not.
19015 (vect_gen_while_not): Adjust.
19016 * tree-vect-loop-manip.c (vect_set_loop_controls_directly): Likewise.
19018 2021-07-15 Aldy Hernandez <aldyh@redhat.com>
19020 * gimple-range-cache.cc (non_null_ref::adjust_range): New.
19021 (ranger_cache::range_of_def): Call adjust_range.
19022 (ranger_cache::entry_range): Same.
19023 * gimple-range-cache.h (non_null_ref::adjust_range): New.
19024 * gimple-range.cc (gimple_ranger::range_of_expr): Call
19026 (gimple_ranger::range_on_entry): Same.
19028 2021-07-15 Tamar Christina <tamar.christina@arm.com>
19031 2021-07-14 Tamar Christina <tamar.christina@arm.com>
19033 * config/arm/neon.md (<sup>dot_prod<vsi2qi>): Drop statements.
19035 2021-07-15 Tamar Christina <tamar.christina@arm.com>
19038 2021-07-14 Tamar Christina <tamar.christina@arm.com>
19040 * config/aarch64/aarch64-simd-builtins.def (udot, sdot): Rename to...
19041 (sdot_prod, udot_prod): ...These.
19042 * config/aarch64/aarch64-simd.md (<sur>dot_prod<vsi2qi>): Remove.
19043 (aarch64_<sur>dot<vsi2qi>): Rename to...
19044 (<sur>dot_prod<vsi2qi>): ...This.
19045 * config/aarch64/arm_neon.h (vdot_u32, vdotq_u32, vdot_s32, vdotq_s32):
19048 2021-07-15 Jakub Jelinek <jakub@redhat.com>
19050 PR middle-end/101437
19051 * gimplify.c (gimplify_expr): Throw away volatile reads from empty
19052 types even if they have non-BLKmode TYPE_MODE.
19054 2021-07-15 Richard Biener <rguenther@suse.de>
19057 * gcc.c (process_command): Process -gtoggle like process_options
19058 would after parsing options.
19060 2021-07-15 Trevor Saunders <tbsaunde@tbsaunde.org>
19062 * cfgexpand.c (expand_asm_loc): Adjust.
19063 (expand_asm_stmt): Likewise.
19064 * config/arm/aarch-common-protos.h (arm_md_asm_adjust): Likewise.
19065 * config/arm/aarch-common.c (arm_md_asm_adjust): Likewise.
19066 * config/arm/arm.c (thumb1_md_asm_adjust): Likewise.
19067 * config/avr/avr.c (avr_md_asm_adjust): Likewise.
19068 * config/cris/cris.c (cris_md_asm_adjust): Likewise.
19069 * config/i386/i386.c (ix86_md_asm_adjust): Likewise.
19070 * config/mn10300/mn10300.c (mn10300_md_asm_adjust): Likewise.
19071 * config/nds32/nds32.c (nds32_md_asm_adjust): Likewise.
19072 * config/pdp11/pdp11.c (pdp11_md_asm_adjust): Likewise.
19073 * config/rs6000/rs6000.c (rs6000_md_asm_adjust): Likewise.
19074 * config/s390/s390.c (s390_md_asm_adjust): Likewise.
19075 * config/vax/vax.c (vax_md_asm_adjust): Likewise.
19076 * config/visium/visium.c (visium_md_asm_adjust): Likewise.
19077 * doc/tm.texi: Regenerate.
19078 * target.def: Add location argument to md_asm_adjust.
19080 2021-07-15 Trevor Saunders <tbsaunde@tbsaunde.org>
19082 * tree-diagnostic.c (diagnostic_report_current_function): Use the
19083 diagnostic's location, not input_location.
19085 2021-07-15 Trevor Saunders <tbsaunde@tbsaunde.org>
19087 * cfgexpand.c (tree_conflicts_with_clobbers_p): Pass location to
19089 (expand_asm_stmt): Likewise.
19091 2021-07-14 Peter Bergner <bergner@linux.ibm.com>
19093 * config/rs6000/rs6000.c (adjacent_mem_locations): Return the lower
19094 addressed memory rtx, if any.
19095 (rs6000_split_multireg_move): Fix code formatting.
19096 Handle MMA build built-ins with operands in adjacent memory locations.
19098 2021-07-14 Peter Bergner <bergner@linux.ibm.com>
19100 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Move to later
19103 2021-07-14 Jason Merrill <jason@redhat.com>
19105 * sel-sched-ir.h (get_all_loop_exits): Use auto_vec.
19107 2021-07-14 Jason Merrill <jason@redhat.com>
19109 * doc/invoke.texi: -fdelete-dead-exceptions is on by default for
19112 2021-07-14 Tamar Christina <tamar.christina@arm.com>
19114 * tree-vect-patterns.c (vect_recog_dot_prod_pattern):
19115 Remove erroneous line.
19117 2021-07-14 Andrew MacLeod <amacleod@redhat.com>
19119 * params.opt (param_evrp_mode): Change default.
19121 2021-07-14 Tamar Christina <tamar.christina@arm.com>
19123 * config/aarch64/aarch64-simd-builtins.def (udot, sdot): Rename to...
19124 (sdot_prod, udot_prod): ...These.
19125 * config/aarch64/aarch64-simd.md (<sur>dot_prod<vsi2qi>): Remove.
19126 (aarch64_<sur>dot<vsi2qi>): Rename to...
19127 (<sur>dot_prod<vsi2qi>): ...This.
19128 * config/aarch64/arm_neon.h (vdot_u32, vdotq_u32, vdot_s32, vdotq_s32):
19131 2021-07-14 Tamar Christina <tamar.christina@arm.com>
19133 * config/arm/neon.md (<sup>dot_prod<vsi2qi>): Drop statements.
19135 2021-07-14 Tamar Christina <tamar.christina@arm.com>
19137 * doc/sourcebuild.texi (arm_v8_2a_i8mm_neon_hw): Document.
19139 2021-07-14 Tamar Christina <tamar.christina@arm.com>
19141 * config/arm/neon.md (usdot_prod<vsi2qi>): New.
19143 2021-07-14 Tamar Christina <tamar.christina@arm.com>
19145 * config/aarch64/aarch64-simd.md (aarch64_usdot<vsi2qi>): Rename to...
19146 (usdot_prod<vsi2qi>): ... This.
19147 * config/aarch64/aarch64-simd-builtins.def (usdot): Rename to...
19148 (usdot_prod): ...This.
19149 * config/aarch64/arm_neon.h (vusdot_s32, vusdotq_s32): Likewise.
19150 * config/aarch64/aarch64-sve.md (@aarch64_<sur>dot_prod<vsi2qi>):
19152 (@<sur>dot_prod<vsi2qi>): ...This.
19153 * config/aarch64/aarch64-sve-builtins-base.cc
19154 (svusdot_impl::expand): Use it.
19156 2021-07-14 Tamar Christina <tamar.christina@arm.com>
19158 * optabs.def (usdot_prod_optab): New.
19159 * doc/md.texi: Document it and clarify other dot prod optabs.
19160 * optabs-tree.h (enum optab_subtype): Add optab_vector_mixed_sign.
19161 * optabs-tree.c (optab_for_tree_code): Support usdot_prod_optab.
19162 * optabs.c (expand_widen_pattern_expr): Likewise.
19163 * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
19164 * tree-vect-loop.c (vectorizable_reduction): Query dot-product kind.
19165 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Take optional
19167 (vect_widened_op_tree): Optionally ignore
19169 (vect_recog_dot_prod_pattern): Support usdot_prod_optab.
19171 2021-07-14 H.J. Lu <hjl.tools@gmail.com>
19174 * config/i386/driver-i386.c (host_detect_local_cpu): Check
19175 "arch [32|64]" and "tune [32|64]" for 32-bit and 64-bit codegen.
19176 Enable UINTR only for 64-bit codegen.
19177 * config/i386/i386-options.c
19178 (ix86_option_override_internal::DEF_PTA): Skip PTA_UINTR if not
19180 * config/i386/i386.h (ARCH_ARG): New.
19181 (CC1_CPU_SPEC): Pass "[arch|tune] 32" for 32-bit codegen and
19182 "[arch|tune] 64" for 64-bit codegen.
19184 2021-07-14 Richard Biener <rguenther@suse.de>
19186 PR tree-optimization/101445
19187 * tree-vect-stmts.c (vectorizable_load): Do the gap adjustment
19188 of the IV in the correct direction for negative stride
19191 2021-07-14 Jakub Jelinek <jakub@redhat.com>
19194 * godump.c (godump_str_hash): New type.
19195 (godump_container::pot_dummy_types): Use string_hash instead of
19196 ptr_hash in the hash_set.
19198 2021-07-14 Richard Biener <rguenther@suse.de>
19200 * tree-vect-loop.c (vect_find_reusable_accumulator): Handle
19201 vector types where the old vector type has a multiple of
19202 the new vector type elements.
19203 (vect_create_partial_epilog): New function, split out from...
19204 (vect_create_epilog_for_reduction): ... here.
19205 (vect_transform_cycle_phi): Reduce the re-used accumulator
19206 to the new vector type.
19208 2021-07-14 Alexandre Oliva <oliva@adacore.com>
19210 * tree-ssa-alias.c (attr_fnspec::verify): Fix index in
19211 non-'t'-sized arg check.
19213 2021-07-14 Alexandre Oliva <oliva@adacore.com>
19215 * tree-cfg.c (cleanup_dead_labels_eh): Update
19216 post_landing_pad label upon change of landing pad block's
19218 (cleanup_dead_labels): Check that a removed label is not that
19221 2021-07-13 Jonathan Wright <jonathan.wright@arm.com>
19223 * combine.c (combine_simplify_rtx): Add vec_select -> subreg
19225 * config/aarch64/aarch64.md (*zero_extend<SHORT:mode><GPI:mode>2_aarch64):
19226 Add Neon to general purpose register case for zero-extend
19228 * config/arm/vfp.md (*arm_movsi_vfp): Remove "*" from *t -> r
19229 case to prevent some cases opting to go through memory.
19230 * cse.c (fold_rtx): Add vec_select -> subreg simplification.
19231 * rtl.c (rtvec_series_p): Define predicate to determine
19232 whether a vector contains a linear series of integers.
19233 * rtl.h (rtvec_series_p): Define.
19234 * rtlanal.c (vec_series_lowpart_p): Define predicate to
19235 determine if a vector selection is equivalent to the low part
19237 * rtlanal.h (vec_series_lowpart_p): Define.
19238 * simplify-rtx.c (simplify_context::simplify_binary_operation_1):
19239 Add vec_select -> subreg simplification.
19241 2021-07-13 Paul A. Clarke <pc@us.ibm.com>
19243 * config/rs6000/smmintrin.h (_mm_testz_si128, _mm_testc_si128,
19244 _mm_testnzc_si128, _mm_test_all_ones, _mm_test_all_zeros,
19245 _mm_test_mix_ones_zeros): New.
19247 2021-07-13 Roger Sayle <roger@nextmovesoftware.com>
19248 Richard Biener <rguenther@suse.de>
19250 * gimple.c (gimple_could_trap_p_1): Make S argument a
19251 "const gimple*". Preserve constness in call to
19252 gimple_asm_volatile_p.
19253 (gimple_could_trap_p): Make S argument a "const gimple*".
19254 * gimple.h (gimple_could_trap_p_1, gimple_could_trap_p):
19255 Update function prototypes.
19257 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
19259 * tree-vectorizer.h (vect_reusable_accumulator): New structure.
19260 (_loop_vec_info::main_loop_edge): New field.
19261 (_loop_vec_info::skip_main_loop_edge): Likewise.
19262 (_loop_vec_info::skip_this_loop_edge): Likewise.
19263 (_loop_vec_info::reusable_accumulators): Likewise.
19264 (_stmt_vec_info::reduc_scalar_results): Likewise.
19265 (_stmt_vec_info::reused_accumulator): Likewise.
19266 (vect_get_main_loop_result): Declare.
19267 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
19268 reduc_scalar_inputs.
19269 (vec_info::free_stmt_vec_info): Free reduc_scalar_inputs.
19270 * tree-vect-loop-manip.c (vect_get_main_loop_result): New function.
19271 (vect_do_peeling): Fill an epilogue loop's main_loop_edge,
19272 skip_main_loop_edge and skip_this_loop_edge fields.
19273 * tree-vect-loop.c (INCLUDE_ALGORITHM): Define.
19274 (vect_emit_reduction_init_stmts): New function.
19275 (get_initial_def_for_reduction): Use it.
19276 (get_initial_defs_for_reduction): Likewise. Change the vinfo
19277 parameter to a loop_vec_info.
19278 (vect_create_epilog_for_reduction): Store the scalar results
19279 in the reduc_info. If an epilogue loop is reusing an accumulator
19280 from the main loop, and if the epilogue loop can also be skipped,
19281 try to place the reduction code in the join block. Record
19282 accumulators that could potentially be reused by epilogue loops.
19283 (vect_transform_cycle_phi): When vectorizing epilogue loops,
19284 try to reuse accumulators from the main loop. Record the initial
19285 value in reduc_info for non-SLP reductions too.
19287 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
19289 * tree-vect-loop.c (get_initial_def_for_reduction): Remove
19290 adjustment handling. Take the neutral value as an argument,
19291 in place of the code argument.
19292 (vect_transform_cycle_phi): Update accordingly. Handle the
19293 initial values of cond reductions separately from code reductions.
19294 Choose the adjustment here rather than in
19295 get_initial_def_for_reduction. Sink the splat of vec_initial_def.
19297 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
19299 * tree-vect-loop.c (neutral_op_for_slp_reduction): Replace with...
19300 (neutral_op_for_reduction): ...this, providing a more general
19302 (vect_create_epilog_for_reduction): Update accordingly.
19303 (vectorizable_reduction): Likewise.
19304 (vect_transform_cycle_phi): Likewise.
19306 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
19308 * tree-vect-loop.c (get_initial_def_for_reduction): Take the
19309 reduc_info instead of the original stmt_vec_info.
19310 (vect_transform_cycle_phi): Update accordingly.
19312 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
19314 * tree-vect-loop.c (get_initial_defs_for_reduction): Take the
19315 reduc_info as an additional parameter.
19316 (vect_transform_cycle_phi): Update accordingly.
19318 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
19320 * tree-vectorizer.h: Include tree-ssa-operands.h.
19321 (vect_phi_initial_value): New function.
19322 * tree-vect-loop.c (neutral_op_for_slp_reduction): Use it.
19323 (get_initial_defs_for_reduction, info_for_reduction): Likewise.
19324 (vect_create_epilog_for_reduction, vectorizable_reduction): Likewise.
19325 (vect_transform_cycle_phi, vectorizable_induction): Likewise.
19327 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
19329 * tree-vect-loop.c (vect_create_epilog_for_reduction): Convert
19330 the phi results to vectype after creating them. Remove later
19331 conversion code that thus becomes redundant.
19333 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
19335 * tree-vect-loop.c (vect_create_epilog_for_reduction): Replace
19336 the new_phis vector with a reduc_inputs vector. Combine handling
19337 of reduction chains and ncopies > 1.
19339 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
19341 * tree-vect-loop.c (vect_create_epilog_for_reduction): Truncate
19342 scalar_results to group_size elements after reducing down from
19343 N*group_size elements. Construct an array_slice of the live-out
19344 stmts and assert that there is one stmt per scalar result.
19346 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
19348 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
19349 nested_in_vect_loop and use double_reduc everywhere. Remove dead
19350 assignment to "loop".
19352 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
19354 * internal-fn.c (vectorized_internal_fn_supported_p): Handle
19355 vector types first. For scalar types, consider both the preferred
19356 vector mode and the alternative vector modes.
19357 * optabs-query.c (can_vec_mask_load_store_p): Use the same
19358 structure as above, in particular using related_vector_mode
19359 for modes provided by autovectorize_vector_modes.
19361 2021-07-13 Jakub Jelinek <jakub@redhat.com>
19362 Richard Biener <rguenther@suse.de>
19364 PR tree-optimization/101419
19365 * tree-pass.h (PROP_objsz): Define.
19366 (make_pass_early_object_sizes): Declare.
19367 * passes.def (pass_all_early_optimizations): Rename pass_object_sizes
19368 there to pass_early_object_sizes, drop parameter.
19369 (pass_all_optimizations): Move pass_object_sizes right after pass_ccp,
19370 drop parameter, move pass_post_ipa_warn right after that.
19371 * tree-object-size.c (pass_object_sizes::execute): Rename to...
19372 (object_sizes_execute): ... this. Add insert_min_max_p argument.
19373 (pass_data_object_sizes): Move after object_sizes_execute.
19374 (pass_object_sizes): Likewise. In execute method call
19375 object_sizes_execute, drop set_pass_param method and insert_min_max_p
19376 non-static data member and its initializer in the ctor.
19377 (pass_data_early_object_sizes, pass_early_object_sizes,
19378 make_pass_early_object_sizes): New.
19379 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use
19380 (cfun->curr_properties & PROP_objsz) instead of cfun->after_inlining.
19382 2021-07-13 Kito Cheng <kito.cheng@sifive.com>
19385 * config/riscv/constraints.md ("S"): Update description and remove
19387 * doc/md.texi (Machine Constraints): Document the 'S' constraints
19390 2021-07-13 Richard Biener <rguenther@suse.de>
19393 2021-07-12 Richard Biener <rguenther@suse.de>
19395 * tree-vect-slp.c (vect_slp_region): Show the number of
19396 SLP graph entries in the optimization message.
19398 2021-07-13 Michael Meissner <meissner@linux.ibm.com>
19400 * config/rs6000/altivec.md (xxspltiw_v4sf): Change local variable
19402 * config/rs6000/rs6000-protos.h (rs6000_const_f32_to_i32): Change
19403 return type to long.
19404 * config/rs6000/rs6000.c (rs6000_const_f32_to_i32): Change return
19407 2021-07-12 Andrew MacLeod <amacleod@redhat.com>
19409 * gimple-range-fold.cc (fold_using_range::range_of_builtin_ubsan_call):
19410 Query relation between the 2 operands and use it.
19412 2021-07-12 Sergei Trofimovich <siarheit@google.com>
19414 * doc/cfg.texi: Fix s/ei_safe_safe/ei_safe_edge/ typo.
19416 2021-07-12 Uroš Bizjak <ubizjak@gmail.com>
19419 * config/i386/predicates.md (vec_setm_sse41_operand):
19420 Rename from vec_setm_operand.
19421 (vec_setm_avx2_operand): New predicate.
19422 * config/i386/sse.md (vec_set<V_128:mode>): Use V_128 mode iterator.
19423 Use vec_setm_sse41_operand as operand 2 predicate.
19424 (vec_set<V_256_512:mode): New expander.
19425 * config/i386/mmx.md (vec_setv2hi): Use vec_setm_sse41_operand
19426 as operand 2 predicate.
19428 2021-07-12 Andrew MacLeod <amacleod@redhat.com>
19430 PR tree-optimization/101335
19431 * range-op.cc (operator_cast::lhs_op1_relation): Delete.
19433 2021-07-12 Andrew Pinski <apinski@marvell.com>
19435 * tree-ssa-phiopt.c (match_simplify_replacement): Move
19436 insert of the sequence before the movement of the
19437 statement. Check if to see if the statement is used
19438 outside of the original phi to see if we should move it.
19440 2021-07-12 Richard Biener <rguenther@suse.de>
19442 * dump-context.h (debug_dump_context::debug_dump_context):
19443 Add FILE * parameter defaulted to stderr.
19444 * dumpfile.c (debug_dump_context::debug_dump_context): Adjust.
19445 * tree-vect-slp.c (dot_slp_tree): New functions.
19447 2021-07-12 Richard Biener <rguenther@suse.de>
19449 PR tree-optimization/101373
19450 * tree-ssa-pre.c (prune_clobbered_mems): Also prune trapping
19451 references when the BB may not return.
19452 (compute_avail): Pass in the function we're working on and
19453 replace cfun references with it. Externally throwing
19454 const calls also possibly terminate the function.
19455 (pass_pre::execute): Pass down the function we're working on.
19456 * gcse.c (compute_hash_table_work): Externally throwing
19457 const/pure calls also need record_last_mem_set_info.
19458 * postreload-gcse.c (record_opr_changes): Looping or externally
19459 throwing const/pure calls also need record_last_mem_set_info.
19461 2021-07-12 Uroš Bizjak <ubizjak@gmail.com>
19463 * recog.c (memory_address_addr_space_p): Change the type to bool.
19464 Return true/false instead of 1/0.
19465 (offsettable_memref_p): Ditto.
19466 (offsettable_nonstrict_memref_p): Ditto.
19467 (offsettable_address_addr_space_p): Ditto.
19468 Change the type of addressp indirect function to bool.
19469 * recog.h (memory_address_addr_space_p): Change the type to bool.
19470 (strict_memory_address_addr_space_p): Ditto.
19471 (offsettable_memref_p): Ditto.
19472 (offsettable_nonstrict_memref_p): Ditto.
19473 (offsettable_address_addr_space_p): Ditto.
19474 * reload.c (maybe_memory_address_addr_space_p): Ditto.
19475 (strict_memory_address_addr_space_p): Change the type to bool.
19476 Return true/false instead of 1/0.
19477 (maybe_memory_address_addr_space_p): Change the type to bool.
19479 2021-07-12 Richard Biener <rguenther@suse.de>
19481 * tree-vect-slp.c (vect_slp_region): Show the number of
19482 SLP graph entries in the optimization message.
19484 2021-07-12 Richard Biener <rguenther@suse.de>
19486 PR tree-optimization/101394
19487 * tree-ssa-pre.c (do_pre_regular_insertion): Avoid inserting
19488 copies from abnormals for a full redundancy.
19490 2021-07-12 Richard Biener <rguenther@suse.de>
19492 PR middle-end/101423
19493 * gimple.c (gimple_could_trap_p_1): Internal function calls
19495 * tree-eh.c (tree_could_trap_p): Likewise.
19497 2021-07-12 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
19500 * config/arm/arm_neon.h (vmul_n_u32): Replace call to builtin with
19502 (vmulq_n_u32): Likewise.
19503 (vmul_n_f32): Gate __a * __b on __FAST_MATH__.
19504 (vmulq_n_f32): Likewise.
19505 (vmul_n_f16): Likewise.
19506 (vmulq_n_f16): Likewise.
19508 2021-07-12 Martin Liska <mliska@suse.cz>
19510 PR sanitizer/101425
19511 * gcc.c (check_offload_target_name): Call
19512 candidates_list_and_hint only if we have a candidate.
19514 2021-07-12 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
19517 * config/arm/neon.md (vec_init): Move to ...
19518 * config/arm/vec-common.md (vec_init): ... here.
19519 Change the pattern's mode to VDQX and gate it on VALID_MVE_MODE.
19521 2021-07-12 Roger Sayle <roger@nextmovesoftware.com>
19523 PR tree-optimization/101403
19524 * match.pd ((T)bswap(X)>>C): Correctly handle cases where
19525 signedness of the shift is not the same as the signedness of
19526 the type extension.
19528 2021-07-09 Roger Sayle <roger@nextmovesoftware.com>
19529 Uroš Bizjak <ubizjak@gmail.com>
19531 * config/i386/i386.md (*divmodsi4_const): Optimize SImode
19532 divmod of a constant numerator with new define_insn_and_split.
19534 2021-07-09 Iain Sandoe <iain@sandoe.co.uk>
19537 * config/i386/i386-expand.c (ix86_expand_call): If a call is
19538 to a non-local-binding, or local but to a public symbol, then
19539 assume that it might be indirected via the lazy symbol binder.
19540 Mark R10 and R10 as clobbered in that case.
19542 2021-07-09 Eric Botcazou <ebotcazou@adacore.com>
19545 * gcc.c (ASM_DEBUG_DWARF_OPTION): Set again to --gdwarf2 in
19546 the case where HAVE_AS_WORKING_DWARF_N_FLAG is not defined
19547 and HAVE_LD_BROKEN_PE_DWARF5 is defined.
19549 2021-07-09 Uroš Bizjak <ubizjak@gmail.com>
19551 * config/i386/i386.md (*udivmodsi4_pow2_zext_1): Limit the
19552 log2 range of operands[3] to [1,31].
19553 (*udivmodsi4_pow2_zext_2): Ditto. Correct insn RTX pattern.
19555 2021-07-09 Sergei Trofimovich <siarheit@google.com>
19557 * doc/md.texi: Don't split @smallexample in multiple @groups.
19559 2021-07-09 Sergei Trofimovich <siarheit@google.com>
19561 * doc/md.texi: Add missing 'see' word.
19563 2021-07-09 Andrew Pinski <apinski@marvell.com>
19565 * tree-ssa-phiopt.c (phiopt_early_allow): Change arguments
19566 to take sequence and gimple_match_op. Accept the case where
19567 op is a SSA_NAME and one statement in the sequence.
19568 Also allow constants.
19569 (gimple_simplify_phiopt): Always pass a sequence to resimplify.
19570 Update call to phiopt_early_allow. Discard the sequence if not
19573 2021-07-09 Xi Ruoyao <xry111@mengyan1223.wang>
19578 * config/mips/mips.c (mips_const_insns): Use MSA_SUPPORTED_MODE_P
19579 instead of ISA_HAS_MSA.
19580 (mips_expand_vec_unpack): Likewise.
19581 (mips_expand_vector_init): Likewise.
19583 2021-07-09 Kewen Lin <linkw@linux.ibm.com>
19585 * config/rs6000/vsx.md (mods_<mode>): Rename to...
19586 (mod<mode>3): ... this.
19587 (modu_<mode>): Rename to...
19588 (umod<mode>3): ... this.
19589 * config/rs6000/rs6000-builtin.def (MODS_V2DI, MODS_V4SI, MODU_V2DI,
19590 MODU_V4SI): Adjust.
19592 2021-07-08 Jeff Law <jeffreyalaw@gmail.com>
19594 * config/h8300/shiftrotate.md (variable shifts): Expose condition
19595 code handling for the test before the loop.
19597 2021-07-08 Martin Jambor <mjambor@suse.cz>
19600 * ipa-sra.c (class isra_call_summary): New member
19601 m_before_any_store, initialize it in the constructor.
19602 (isra_call_summary::dump): Dump the new field.
19603 (ipa_sra_call_summaries::duplicate): Copy it.
19604 (process_scan_results): Set it.
19605 (isra_write_edge_summary): Stream it.
19606 (isra_read_edge_summary): Likewise.
19607 (param_splitting_across_edge): Only override
19608 safe_to_import_accesses if m_before_any_store is set.
19610 2021-07-08 Martin Sebor <msebor@redhat.com>
19612 PR bootstrap/101374
19613 * gimple-array-bounds.cc (array_bounds_checker::check_mem_ref):
19614 Use Object Size Type 0 instead of 1.
19616 2021-07-08 Richard Sandiford <richard.sandiford@arm.com>
19618 * tree-vect-loop.c (vectorizable_reduction): Remove always-true
19621 2021-07-08 Richard Sandiford <richard.sandiford@arm.com>
19623 * match.pd: Simplify an extend-operate-truncate sequence involving
19626 2021-07-08 Roger Sayle <roger@nextmovesoftware.com>
19627 Richard Biener <rguenther@suse.de>
19629 PR tree-optimization/40210
19630 * match.pd (bswap optimizations): Simplify (bswap(x)>>C1)&C2 as
19631 (x>>C3)&C2 when possible. Simplify bswap(x)>>C1 as ((T)x)>>C2
19632 when possible. Simplify bswap(x)&C1 as (x>>C2)&C1 when 0<=C1<=255.
19634 2021-07-08 Uroš Bizjak <ubizjak@gmail.com>
19637 * config/i386/i386-expand.c (ix86_expand_sse_unpack):
19639 * config/i386/mmx.md (V_32): New mode iterator.
19640 (mov<V_32:mode>): Use V_32 mode iterator.
19641 (*mov<V_32:mode>_internal): Ditto.
19642 (*push<V_32:mode>2_rex64): Ditto.
19643 (*push<V_32:mode>2): Ditto.
19644 (movmisalign<V_32:mode>): Ditto.
19645 (mmx_<any_shiftrt:insn>v1si3): New insn pattern.
19646 (sse4_1_<any_extend:code>v2qiv2hi2): Ditto.
19647 (vec_unpacks_lo_v4qi): New expander.
19648 (vec_unpacks_hi_v4qi): Ditto.
19649 (vec_unpacku_lo_v4qi): Ditto.
19650 (vec_unpacku_hi_v4qi): Ditto.
19651 * config/i386/i386.h (VALID_SSE2_REG_MODE): Add V1SImode.
19652 (VALID_INT_MODE_P): Ditto.
19654 2021-07-08 Michael Meissner <meissner@linux.ibm.com>
19657 * config/rs6000/rs6000.md (udivti3): New insn.
19658 (divti3): New insn.
19659 (umodti3): New insn.
19660 (modti3): New insn.
19662 2021-07-07 Martin Sebor <msebor@redhat.com>
19664 PR tree-optimization/100137
19665 PR tree-optimization/99121
19666 PR tree-optimization/97027
19667 * builtins.c (access_ref::access_ref): Also set offmax.
19668 (access_ref::offset_in_range): Define new function.
19669 (access_ref::add_offset): Set offmax.
19670 (access_ref::inform_access): Handle access_none.
19671 (handle_mem_ref): Clear ostype.
19672 (compute_objsize_r): Handle ASSERT_EXPR.
19673 * builtins.h (struct access_ref): Add offmax member.
19674 * gimple-array-bounds.cc (array_bounds_checker::check_mem_ref): Use
19675 compute_objsize() and simplify.
19677 2021-07-07 Peter Bergner <bergner@linux.ibm.com>
19679 * config/rs6000/rs6000-call.c (mma_init_builtins): Use VSX_BUILTIN_LXVP
19680 and VSX_BUILTIN_STXVP.
19682 2021-07-07 Martin Sebor <msebor@redhat.com>
19685 * config/aarch64/aarch64.c (aarch64_simd_lane_bounds): Remove
19686 a stray %K from error_at() missed in r12-2088.
19688 2021-07-07 Richard Biener <rguenther@suse.de>
19690 PR tree-optimization/99728
19691 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Record
19693 (mem_refs_may_alias_p): Add assert we handled aggregate
19695 (sm_seq_valid_bb): Give up when running into aggregate copies.
19696 (ref_indep_loop_p): Handle aggregate copies as never
19697 being invariant themselves but allow other refs to be
19698 disambiguated against them.
19699 (can_sm_ref_p): Do not try to apply store-motion to aggregate
19702 2021-07-06 Indu Bhagat <indu.bhagat@oracle.com>
19705 * dwarf2ctf.c (ctf_get_AT_data_member_location): Multiply by 8 to get
19708 2021-07-06 Martin Sebor <msebor@redhat.com>
19710 * gimple-pretty-print.c (percent_G_format): Remove.
19711 * tree-diagnostic.c (default_tree_printer): Remove calls.
19712 * tree-pretty-print.c (percent_K_format): Remove.
19713 * tree-pretty-print.h (percent_K_format): Remove.
19715 2021-07-06 Martin Sebor <msebor@redhat.com>
19717 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
19718 Remove %K and use error_at.
19719 (aarch64_expand_fcmla_builtin): Same.
19720 (aarch64_expand_builtin_tme): Same.
19721 (aarch64_expand_builtin_memtag): Same.
19722 * config/arm/arm-builtins.c (arm_expand_acle_builtin): Same.
19723 (arm_expand_builtin): Same.
19724 * config/arm/arm.c (bounds_check): Same.
19726 2021-07-06 Martin Sebor <msebor@redhat.com>
19728 * builtins.c (warn_string_no_nul): Remove %G.
19729 (maybe_warn_for_bound): Same.
19730 (warn_for_access): Same.
19731 (check_access): Same.
19732 (check_strncat_sizes): Same.
19733 (expand_builtin_strncat): Same.
19734 (expand_builtin_strncmp): Same.
19735 (expand_builtin): Same.
19736 (expand_builtin_object_size): Same.
19737 (warn_dealloc_offset): Same.
19738 (maybe_emit_free_warning): Same.
19739 * calls.c (maybe_warn_alloc_args_overflow): Same.
19740 (maybe_warn_nonstring_arg): Same.
19741 (maybe_warn_rdwr_sizes): Same.
19742 * expr.c (expand_expr_real_1): Remove %K.
19743 * gimple-fold.c (gimple_fold_builtin_strncpy): Remove %G.
19744 (gimple_fold_builtin_strncat): Same.
19745 * gimple-ssa-sprintf.c (format_directive): Same.
19746 (handle_printf_call): Same.
19747 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Same.
19748 * gimple-ssa-warn-restrict.c (maybe_diag_overlap): Same.
19749 (maybe_diag_access_bounds): Same. Call gimple_location.
19750 (check_bounds_or_overlap): Same.
19751 * trans-mem.c (ipa_tm_scan_irr_block): Remove %K. Simplify.
19752 * tree-ssa-ccp.c (pass_post_ipa_warn::execute): Remove %G.
19753 * tree-ssa-strlen.c (maybe_warn_overflow): Same.
19754 (maybe_diag_stxncpy_trunc): Same.
19755 (handle_builtin_stxncpy_strncat): Same.
19756 (maybe_warn_pointless_strcmp): Same.
19757 * tree-ssa-uninit.c (maybe_warn_operand): Same.
19759 2021-07-06 Uroš Bizjak <ubizjak@gmail.com>
19762 * config/i386/predicates.md (vec_setm_operand): Enable
19763 register_operand for TARGET_SSE4_1.
19764 * config/i386/mmx.md (vec_setv2hi): Use vec_setm_operand
19765 as operand 2 predicate. Call ix86_expand_vector_set_var
19766 for non-constant index operand.
19767 (vec_setv4qi): Use vec_setm_mmx_operand as operand 2 predicate.
19768 Call ix86_expand_vector_set_var for non-constant index operand.
19770 2021-07-06 Jeff Law <jeffreyalaw@gmail.com>
19772 * config/h8300/jumpcall.md (*branch): When possible, generate
19773 the comparison in CCZN mode.
19774 * config/h8300/predicates.md (simple_memory_operand): Reject all
19775 auto-increment addressing modes.
19777 2021-07-06 Iain Sandoe <iain@sandoe.co.uk>
19779 PR bootstrap/100246
19780 * config/i386/i386.h (struct stringop_algs): Define a CTOR for
19783 2021-07-06 Richard Biener <rguenther@suse.de>
19785 * doc/md.texi (vec_fmaddsub<mode>4): Document.
19786 (vec_fmsubadd<mode>4): Likewise.
19787 * optabs.def (vec_fmaddsub$a4): Add.
19788 (vec_fmsubadd$a4): Likewise.
19789 * internal-fn.def (IFN_VEC_FMADDSUB): Add.
19790 (IFN_VEC_FMSUBADD): Likewise.
19791 * tree-vect-slp-patterns.c (addsub_pattern::recognize):
19792 Refactor to handle IFN_VEC_FMADDSUB and IFN_VEC_FMSUBADD.
19793 (addsub_pattern::build): Likewise.
19794 * tree-vect-slp.c (vect_optimize_slp): CFN_VEC_FMADDSUB
19795 and CFN_VEC_FMSUBADD are not transparent for permutes.
19796 * config/i386/sse.md (vec_fmaddsub<mode>4): New expander.
19797 (vec_fmsubadd<mode>4): Likewise.
19799 2021-07-06 Richard Biener <rguenther@suse.de>
19801 * doc/invoke.texi (fmove-loop-stores): Document.
19802 * common.opt (fmove-loop-stores): New option.
19803 * opts.c (default_options_table): Enable -fmove-loop-stores
19804 at -O1 but not -Og.
19805 * tree-ssa-loop-im.c (pass_lim::execute): Pass
19806 flag_move_loop_stores instead of true to
19807 loop_invariant_motion_in_fun.
19809 2021-07-06 Iain Sandoe <iain@sandoe.co.uk>
19811 * doc/install.texi: Document --with-dsymutil.
19813 2021-07-06 Andrew Pinski <apinski@marvell.com>
19815 PR tree-optimization/101256
19816 * dbgcnt.def (phiopt_edge_range): New counter.
19817 * tree-ssa-phiopt.c (replace_phi_edge_with_variable):
19818 Check to make sure the new name is defined in the same
19819 bb as the conditional before duplicating range info.
19820 Also add debug counter.
19822 2021-07-06 Kewen Lin <linkw@linux.ibm.com>
19824 PR rtl-optimization/100328
19825 * config/i386/i386-options.c (ix86_option_override_internal):
19826 Set param_ira_consider_dup_in_all_alts to 0.
19828 2021-07-06 Kewen Lin <linkw@linux.ibm.com>
19830 PR rtl-optimization/100328
19831 * doc/invoke.texi (ira-consider-dup-in-all-alts): Document new
19833 * ira.c (ira_get_dup_out_num): Adjust as parameter
19834 param_ira_consider_dup_in_all_alts.
19835 * params.opt (ira-consider-dup-in-all-alts): New.
19836 * ira-conflicts.c (process_regs_for_copy): Add one parameter
19837 single_input_op_has_cstr_p.
19838 (get_freq_for_shuffle_copy): New function.
19839 (add_insn_allocno_copies): Adjust as single_input_op_has_cstr_p.
19840 * ira-int.h (ira_get_dup_out_num): Add one bool parameter.
19842 2021-07-05 Jeff Law <jeffreyalaw@gmail.com>
19844 * config/h8300/shiftrotate.md (shift-by-variable patterns): Update to
19845 generate condition code aware RTL directly.
19847 2021-07-05 Andrew Pinski <apinski@marvell.com>
19849 PR tree-optimization/101039
19850 * match.pd (A CMP 0 ? A : -A): New patterns.
19851 * tree-ssa-phiopt.c (abs_replacement): Delete function.
19852 (tree_ssa_phiopt_worker): Don't call abs_replacement.
19853 Update comment about abs_replacement.
19855 2021-07-05 Andrew Pinski <apinski@marvell.com>
19857 * tree-ssa-phiopt.c (gimple_simplify_phiopt):
19858 If "A ? B : C" fails to simplify, try "(!A) ? C : B".
19860 2021-07-05 Andrew Pinski <apinski@marvell.com>
19862 * tree-ssa-phiopt.c (match_simplify_replacement):
19863 Add early_p argument. Call gimple_simplify_phiopt
19864 instead of gimple_simplify.
19865 (tree_ssa_phiopt_worker): Update call to
19866 match_simplify_replacement and allow unconditionally.
19867 (phiopt_early_allow): New function.
19868 (gimple_simplify_phiopt): New function.
19870 2021-07-05 Andrew Pinski <apinski@marvell.com>
19872 PR middle-end/101237
19873 * fold-const.c (negate_expr_p): Remove call to element_mode
19874 and TREE_MODE/TREE_TYPE when calling HONOR_SIGNED_ZEROS,
19875 HONOR_SIGN_DEPENDENT_ROUNDING, and HONOR_SNANS.
19876 (fold_negate_expr_1): Likewise.
19877 (const_unop): Likewise.
19878 (fold_cond_expr_with_comparison): Likewise.
19879 (fold_binary_loc): Likewise.
19880 (fold_ternary_loc): Likewise.
19881 (tree_call_nonnegative_warnv_p): Likewise.
19882 * match.pd (-(A + B) -> (-B) - A): Likewise.
19884 2021-07-05 Iain Sandoe <iain@sandoe.co.uk>
19886 * configure.ac: Handle --with-dsymutil in the same way as we
19887 do for the assembler and linker. (DEFAULT_DSYMUTIL): New.
19888 Extract the type and version for the dsymutil configured or
19889 found by the default searches.
19890 * config.in: Regenerated.
19891 * configure: Regenerated.
19892 * collect2.c (do_dsymutil): Handle locating dsymutil in the
19893 same way as for the assembler and linker.
19894 * config/darwin.h (DSYMUTIL): Delete.
19895 * gcc.c: Report a configured dsymutil correctly.
19896 * exec-tool.in: Allow for dsymutil.
19898 2021-07-05 Uroš Bizjak <ubizjak@gmail.com>
19900 * config/i386/i386-expand.c (ix86_split_mmx_punpck):
19901 Handle V4QI and V2HI modes.
19902 (expand_vec_perm_blend): Allow 4-byte vector modes with TARGET_SSE4_1.
19903 Handle V4QI mode. Emit mmx_pblendvb32 for 4-byte modes.
19904 (expand_vec_perm_pshufb): Rewrite to use switch statemets.
19905 Handle 4-byte dual operands with TARGET_XOP and single operands
19906 with TARGET_SSSE3. Emit mmx_ppermv32 for TARGET_XOP and
19907 mmx_pshufbv4qi3 for TARGET_SSSE3.
19908 (expand_vec_perm_pblendv): Allow 4-byte vector modes with TARGET_SSE4_1.
19909 (expand_vec_perm_interleave2): Allow 4-byte vector modes.
19910 (expand_vec_perm_pshufb2): Allow 4-byte vector modes with TARGET_SSSE3.
19911 (expand_vec_perm_even_odd_1): Handle V4QI mode.
19912 (expand_vec_perm_broadcast_1): Handle V4QI mode.
19913 (ix86_vectorize_vec_perm_const): Handle V4QI mode.
19914 * config/i386/mmx.md (mmx_ppermv32): New insn pattern.
19915 (mmx_pshufbv4qi3): Ditto.
19916 (*mmx_pblendw32): Ditto.
19917 (*mmx_pblendw64): Rename from *mmx_pblendw.
19918 (mmx_punpckhbw_low): New insn_and_split pattern.
19919 (mmx_punpcklbw_low): Ditto.
19921 2021-07-05 Richard Biener <rguenther@suse.de>
19923 * tree-vect-loop-manip.c (vect_loop_versioning): Do not
19924 set LOOP_C_INFINITE on the vectorized loop.
19926 2021-07-05 Richard Biener <rguenther@suse.de>
19928 PR middle-end/101291
19929 * cfgloopmanip.c (loop_version): Set the loop copy of the
19930 versioned loop to the new loop.
19932 2021-07-04 Iain Sandoe <iain@sandoe.co.uk>
19935 * config.gcc: Ensure that Darwin biarch definitions are
19936 added before i386.h.
19937 * config/i386/darwin.h (TARGET_64BIT): Remove.
19938 (PR80556_WORKAROUND): New.
19939 (REAL_LIBGCC_SPEC): Amend to use PR80556_WORKAROUND.
19940 (DARWIN_SUBARCH_SPEC): New.
19941 * config/i386/darwin32-biarch.h (TARGET_64BIT_DEFAULT,
19942 TARGET_BI_ARCH, PR80556_WORKAROUND): New.
19943 (REAL_LIBGCC_SPEC): Remove.
19944 * config/i386/darwin64-biarch.h (TARGET_64BIT_DEFAULT,
19945 TARGET_BI_ARCH, PR80556_WORKAROUND): New.
19946 (REAL_LIBGCC_SPEC): Remove.
19948 2021-07-03 H.J. Lu <hjl.tools@gmail.com>
19950 PR middle-end/101294
19951 * expr.c (store_constructor): Don't use vec_duplicate on vector.
19953 2021-07-02 Martin Sebor <msebor@redhat.com>
19955 PR middle-end/98871
19956 PR middle-end/98512
19957 * diagnostic.c (get_any_inlining_info): New.
19958 (update_effective_level_from_pragmas): Handle inlining context.
19959 (diagnostic_enabled): Same.
19960 (diagnostic_report_diagnostic): Same.
19961 * diagnostic.h (struct diagnostic_info): Add ctor.
19962 (struct diagnostic_context): Add new member.
19963 * tree-diagnostic.c (set_inlining_locations): New.
19964 (tree_diagnostics_defaults): Set new callback pointer.
19966 2021-07-02 Peter Bergner <bergner@linux.ibm.com>
19968 * config/rs6000/rs6000-builtin.def (BU_MMA_PAIR_LD, BU_MMA_PAIR_ST):
19970 (__builtin_vsx_lxvp, __builtin_vsx_stxvp): New built-ins.
19971 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_mma_builtin): Expand
19972 lxvp and stxvp built-ins.
19973 (mma_init_builtins): Handle lxvp and stxvp built-ins.
19974 (builtin_function_type): Likewise.
19975 * doc/extend.texi (__builtin_vsx_lxvp, __builtin_mma_stxvp): Document.
19977 2021-07-02 Jeff Law <jeffreyalaw@gmail.com>
19979 * config/h8300/h8300-protos.h (compute_a_shift_cc): Accept
19980 additional argument for the code.
19981 * config/h8300/h8300.c (compute_a_shift_cc): Accept additional
19982 argument for the code. Just return if the ZN bits are useful or
19983 not rather than the old style CC_* enums.
19984 * config/h8300/shiftrotate.md (shiftqi_noscratch): Move before
19985 more generic shiftqi patterns.
19986 (shifthi_noscratch, shiftsi_noscratch): Similarly.
19987 (shiftqi_noscratch_set_flags): New pattern.
19988 (shifthi_noscratch_set_flags, shiftsi_noscratch_set_flags): Likewise.
19990 2021-07-02 Andrew MacLeod <amacleod@redhat.com>
19992 PR tree-optimization/101223
19993 * range-op.cc (build_lt): Add -1 for signed values.
19994 (built_gt): Subtract -1 for signed values.
19996 2021-07-02 David Faust <david.faust@oracle.com>
19998 * btfout.c (get_btf_kind): Support BTF_KIND_FLOAT.
19999 (btf_asm_type): Likewise.
20001 2021-07-02 Jeff Law <jeffreyalaw@gmail.com>
20003 * config/h8300/h8300-protos.h (output_a_shift): Make first argument
20004 an array of rtx rather than a pointer to rtx. Add code argument.
20005 (compute_a_shift_length): Similarly.
20006 * config/h8300/h8300.c (h8300_shift_costs): Adjust now that the
20007 shift itself isn't an operand. Create dummy operand[0] to carry
20008 a mode and pass a suitable rtx code to compute_a_shift_length.
20009 (get_shift_alg): Adjust operand number of clobber in output templates.
20010 (output_a_shift): Make first argument an array of rtx rather than
20011 a pointer to rtx. Add code argument for the type of shift.
20012 Adjust now that the shift itself is no longer an operand.
20013 (compute_a_shift_length): Similarly.
20014 * config/h8300/shiftrotate.md (shiftqi, shifthi, shiftsi): Use an
20015 iterator rather than nshift_operator.
20016 (shiftqi_noscratch, shifthi_noscratch, shiftsi_noscratch): Likewise.
20017 (shiftqi_clobber_flags): Adjust to API changes in output_a_shift
20018 and compute_a_shift_length.
20019 (shiftqi_noscratch_clobber_flags): Likewise.
20020 (shifthi_noscratch_clobber_flags): Likewise.
20021 (shiftsi_noscratch_clobber_flags): Likewise.
20023 2021-07-02 Iain Sandoe <iain@sandoe.co.uk>
20026 * config/darwin.h (DSYMUTIL_SPEC): Do not try to run
20027 dsymutil for BTF/CTF.
20029 2021-07-02 Iain Sandoe <iain@sandoe.co.uk>
20032 * config/darwin.h (CTF_INFO_SECTION_NAME): Update the
20033 segment to include BTF.
20034 (BTF_INFO_SECTION_NAME): New.
20036 2021-07-02 Jeff Law <jeffreyalaw@gmail.com>
20038 * config/m32r/m32r-protos.h (call_operand): Adjust return type.
20039 (small_data_operand, memreg_operand, small_insn_p): Likewise.
20040 * config/m32r/m32r.c (call_operand): Adjust return type.
20041 (small_data_operand, memreg_operand): Likewise.
20043 2021-07-02 Jeff Law <jeffreyalaw@gmail.com>
20045 * config/frv/frv-protos.h (integer_register_operand): Adjust return
20047 (frv_load_operand, gpr_or_fpr_operand, gpr_no_subreg_operand): Likewise.
20048 (fpr_or_int6_operand, gpr_or_int_operand); Likewise.
20049 (gpr_or_int12_operand, gpr_or_int10_operand); Likewise.
20050 (move_source_operand, move_destination_operand): Likewise.
20051 (condexec_source_operand, condexec_dest_operand): Likewise.
20052 (lr_operand, gpr_or_memory_operand, fpr_or_memory_operand): Likewise.
20053 (reg_or_0_operand, fcc_operand, icc_operand, cc_operand): Likewise.
20054 (fcr_operand, icr_operand, cr_operand, call_operand): Likewise.
20055 (fpr_operand, even_reg_operand, odd_reg_operand): Likewise.
20056 (even_gpr_operand, odd_gpr_operand, quad_fpr_operand): Likewise.
20057 (even_fpr_operand, odd_fpr_operand): Likewise.
20058 (dbl_memory_one_insn_operand, dbl_memory_two_insn_operand): Likewise.
20059 (int12_operand, int6_operand, int5_operand, uint5_operand): Likewise.
20060 (uint4_operand, uint1_operand, int_2word_operand): Likewise
20061 (upper_int16_operand, uint16_operand, symbolic_operand): Likewise.
20062 (relational_operator, float_relational_operator): Likewise.
20063 (ccr_eqne_operator, minmax_operator): Likewise.
20064 (condexec_si_binary_operator, condexec_si_media_operator): Likewise.
20065 (condexec_si_divide_operator, condexec_si_unary_operator): Likewise.
20066 (condexec_sf_conv_operator, condexec_sf_add_operator): Likewise.
20067 (intop_compare_operator, acc_operand, even_acc_operand): Likewise.
20068 (quad_acc_operand, accg_operand): Likewise.
20070 2021-07-02 Jeff Law <jeffreyalaw@gmail.com>
20072 * config/stormy16/stormy16-protos.h (xstormy16_below_100_symbol): Change
20073 return type to a bool.
20074 (nonimmediate_nonstack_operand): Likewise.
20075 (xstormy16_splittable_below100_operand): Likewise.
20076 * config/stormy16/stormy16.c (xstormy16_below_100_symbol): Fix
20078 (xstormy16_splittable_below100_operand): Likewise.
20080 2021-07-02 Richard Biener <rguenther@suse.de>
20082 PR tree-optimization/101293
20083 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Compare MEM_REF bases
20084 with combined offsets.
20085 (gather_mem_refs_stmt): Hash MEM_REFs as if their offset were
20086 combined with the rest of the offset.
20088 2021-07-02 Eric Botcazou <ebotcazou@adacore.com>
20090 * config/i386/i386.c (asm_preferred_eh_data_format): Always use the
20091 PIC encodings for PE-COFF targets.
20093 2021-07-02 Jakub Jelinek <jakub@redhat.com>
20096 * config/i386/i386-expand.c (ix86_broadcast_from_integer_constant):
20097 Return nullptr for TImode inner mode.
20099 2021-07-02 Richard Biener <rguenther@suse.de>
20101 PR tree-optimization/101280
20102 PR tree-optimization/101173
20103 * gimple-loop-interchange.cc
20104 (tree_loop_interchange::valid_data_dependences): Properly
20105 guard all dependence checks with DDR_REVERSED_P or its
20108 2021-07-02 Hongyu Wang <hongyu.wang@intel.com>
20110 * config/i386/i386-expand.c (ix86_expand_builtin):
20111 Add branch to clear odata when ZF is set for asedecenc_expand
20112 and wideaesdecenc_expand.
20114 2021-07-02 Eugene Rozenfeld <erozen@microsoft.com>
20116 * config/i386/gcc-auto-profile: regenerate
20118 2021-07-02 liuhongt <hongtao.liu@intel.com>
20120 * config/i386/sse.md (trunc<mode><pmov_dst_4>2): Refined to ..
20121 (trunc<mode><pmov_dst_4_lower>2): this.
20123 2021-07-01 David Malcolm <dmalcolm@redhat.com>
20125 * diagnostic.h (diagnostic_context::m_file_cache): New field.
20126 * input.c (class fcache): Rename to...
20127 (class file_cache_slot): ...this, making most members private and
20128 prefixing fields with "m_".
20129 (file_cache_slot::get_file_path): New accessor.
20130 (file_cache_slot::get_use_count): New accessor.
20131 (file_cache_slot::missing_trailing_newline_p): New accessor.
20132 (file_cache_slot::inc_use_count): New.
20133 (fcache_buffer_size): Move to...
20134 (file_cache_slot::buffer_size): ...here.
20135 (fcache_line_record_size): Move to...
20136 (file_cache_slot::line_record_size): ...here.
20137 (fcache_tab): Delete, in favor of global_dc->m_file_cache.
20138 (fcache_tab_size): Move to file_cache::num_file_slots.
20139 (diagnostic_file_cache_init): Update for move of fcache_tab
20140 to global_dc->m_file_cache.
20141 (diagnostic_file_cache_fini): Likewise.
20142 (lookup_file_in_cache_tab): Convert to...
20143 (file_cache::lookup_file): ...this.
20144 (diagnostics_file_cache_forcibly_evict_file): Update for move of
20145 fcache_tab to global_dc->m_file_cache, moving most of
20146 implementation to...
20147 (file_cache::forcibly_evict_file): ...this new function and...
20148 (file_cache_slot::evict): ...this new function.
20149 (evicted_cache_tab_entry): Convert to...
20150 (file_cache::evicted_cache_tab_entry): ...this.
20151 (add_file_to_cache_tab): Convert to...
20152 (file_cache::add_file): ...this, moving bulk of implementation
20154 (file_cache_slot::create): ..this new function.
20155 (file_cache::file_cache): New.
20156 (file_cache::~file_cache): New.
20157 (lookup_or_add_file_to_cache_tab): Convert to...
20158 (file_cache::lookup_or_add_file): ..this new function.
20159 (fcache::fcache): Rename to...
20160 (file_cache_slot::file_cache_slot): ...this, adding "m_" prefixes
20162 (fcache::~fcache): Rename to...
20163 (file_cache_slot::~file_cache_slot): ...this, adding "m_" prefixes
20165 (needs_read): Convert to...
20166 (file_cache_slot::needs_read_p): ...this.
20167 (needs_grow): Convert to...
20168 (file_cache_slot::needs_grow_p): ...this.
20169 (maybe_grow): Convert to...
20170 (file_cache_slot::maybe_grow): ...this.
20171 (read_data): Convert to...
20172 (file_cache_slot::read_data): ...this.
20173 (maybe_read_data): Convert to...
20174 (file_cache_slot::maybe_read_data): ...this.
20175 (get_next_line): Convert to...
20176 (file_cache_slot::get_next_line): ...this.
20177 (goto_next_line): Convert to...
20178 (file_cache_slot::goto_next_line): ...this.
20179 (read_line_num): Convert to...
20180 (file_cache_slot::read_line_num): ...this.
20181 (location_get_source_line): Update for moving of globals to
20182 global_dc->m_file_cache.
20183 (location_missing_trailing_newline): Likewise.
20184 * input.h (class file_cache_slot): New forward decl.
20185 (class file_cache): New.
20187 2021-07-01 Michael Meissner <meissner@linux.ibm.com>
20189 * config/rs6000/rs6000.c (rs6000_maybe_emit_fp_cmove): Add IEEE
20190 128-bit floating point conditional move support.
20191 (have_compare_and_set_mask): Add IEEE 128-bit floating point
20193 * config/rs6000/rs6000.md (mov<mode>cc, IEEE128 iterator): New insn.
20194 (mov<mode>cc_p10, IEEE128 iterator): New insn.
20195 (mov<mode>cc_invert_p10, IEEE128 iterator): New insn.
20196 (fpmask<mode>, IEEE128 iterator): New insn.
20197 (xxsel<mode>, IEEE128 iterator): New insn.
20199 2021-07-01 Iain Sandoe <iain@sandoe.co.uk>
20202 * config/darwin.h (CTF_INFO_SECTION_NAME): New.
20204 2021-07-01 H.J. Lu <hjl.tools@gmail.com>
20206 * config/i386/i386-expand.c (ix86_expand_vector_init_duplicate):
20208 * config/i386/i386-protos.h (ix86_expand_vector_init_duplicate):
20210 * config/i386/sse.md (INT_BROADCAST_MODE): New mode iterator.
20211 (vec_duplicate<mode>): New expander.
20213 2021-07-01 H.J. Lu <hjl.tools@gmail.com>
20216 * config/i386/i386-expand.c (ix86_expand_vector_init_duplicate):
20218 (ix86_byte_broadcast): New function.
20219 (ix86_convert_const_wide_int_to_broadcast): Likewise.
20220 (ix86_expand_move): Convert CONST_WIDE_INT to broadcast if mode
20221 size is 16 bytes or bigger.
20222 (ix86_broadcast_from_integer_constant): New function.
20223 (ix86_expand_vector_move): Convert CONST_WIDE_INT and CONST_VECTOR
20224 to broadcast if mode size is 16 bytes or bigger.
20225 * config/i386/i386-protos.h (ix86_gen_scratch_sse_rtx): New
20227 * config/i386/i386.c (ix86_gen_scratch_sse_rtx): New function.
20229 2021-07-01 Uroš Bizjak <ubizjak@gmail.com>
20231 * config/i386/predicates.md (ix86_endbr_immediate_operand):
20232 Return true/false instead of 1/0.
20233 (movq_parallel): Ditto.
20235 2021-07-01 Uroš Bizjak <ubizjak@gmail.com>
20237 * recog.c (general_operand): Return true/false instead of 1/0.
20238 (register_operand): Ditto.
20239 (immediate_operand): Ditto.
20240 (const_int_operand): Ditto.
20241 (const_scalar_int_operand): Ditto.
20242 (const_double_operand): Ditto.
20243 (push_operand): Ditto.
20244 (pop_operand): Ditto.
20245 (memory_operand): Ditto.
20246 (indirect_operand): Ditto.
20248 2021-07-01 Uroš Bizjak <ubizjak@gmail.com>
20250 * genpreds.c (write_predicate_subfunction):
20251 Change the type of written subfunction to bool.
20252 (write_one_predicate_function):
20253 Change the type of written function to bool.
20254 (write_tm_preds_h): Ditto.
20255 * recog.h (*insn_operand_predicate_fn): Change the type to bool.
20256 * recog.c (general_operand): Change the type to bool.
20257 (address_operand): Ditto.
20258 (register_operand): Ditto.
20259 (pmode_register_operand): Ditto.
20260 (scratch_operand): Ditto.
20261 (immediate_operand): Ditto.
20262 (const_int_operand): Ditto.
20263 (const_scalar_int_operand): Ditto.
20264 (const_double_operand): Ditto.
20265 (nonimmediate_operand): Ditto.
20266 (nonmemory_operand): Ditto.
20267 (push_operand): Ditto.
20268 (pop_operand): Ditto.
20269 (memory_operand): Ditto.
20270 (indirect_operand): Ditto.
20271 (ordered_comparison_operator): Ditto.
20272 (comparison_operator): Ditto.
20273 * config/i386/i386-expand.c (ix86_expand_sse_cmp):
20274 Change the type of indirect predicate function to bool.
20275 * config/rs6000/rs6000.c (easy_vector_constant):
20276 Change the type to bool.
20277 * config/mips/mips-protos.h (m16_based_address_p):
20278 Change the type of operand 3 to bool.
20280 2021-07-01 Richard Biener <rguenther@suse.de>
20282 PR tree-optimization/101280
20283 PR tree-optimization/101173
20284 * gimple-loop-interchange.cc
20285 (tree_loop_interchange::valid_data_dependences): Revert
20286 previous change and instead correctly handle DDR_REVERSED_P
20289 2021-07-01 Richard Biener <rguenther@suse.de>
20291 PR tree-optimization/101278
20292 * tree-ssa-dse.c (dse_classify_store): First check for
20293 uses, then ignore stmt for chaining purposes.
20295 2021-07-01 Richard Biener <rguenther@suse.de>
20297 PR tree-optimization/100778
20298 * tree-vect-slp.c (vect_schedule_slp_node): Do not place trapping
20299 vectorized ops ahead of their scalar BB.
20301 2021-07-01 Uroš Bizjak <ubizjak@gmail.com>
20304 * config/i386/i386.md (*nabs<dwi>2_doubleword):
20305 New insn_and_split pattern.
20306 (*nabs<dwi>2_1): Ditto.
20307 * config/i386/i386-features.c
20308 (general_scalar_chain::compute_convert_gain):
20309 Handle (NEG (ABS (...))) RTX. Rewrite src code
20310 scanner as switch statement.
20311 (general_scalar_chain::convert_insn):
20312 Handle (NEG (ABS (...))) RTX.
20313 (general_scalar_to_vector_candidate_p):
20314 Detect (NEG (ABS (...))) RTX. Reorder case statements
20315 for (AND (NOT (...) ...)) fallthrough.
20317 2021-07-01 Richard Biener <rguenther@suse.de>
20319 PR tree-optimization/101178
20320 * tree-vect-slp.c (slpg_vertex::materialize): Remove.
20321 (slpg::perm_in): Add.
20322 (slpg::get_perm_in): Remove.
20323 (slpg::get_perm_materialized): Add.
20324 (vect_optimize_slp): Handle VEC_PERM nodes more optimally
20325 during permute propagation and materialization.
20327 2021-07-01 Jakub Jelinek <jakub@redhat.com>
20330 * dwarf2out.c (loc_list_from_tree_1): Handle COMPOUND_LITERAL_EXPR.
20332 2021-07-01 Jakub Jelinek <jakub@redhat.com>
20334 PR middle-end/94366
20335 * omp-low.c (lower_rec_input_clauses): Rename is_fp_and_or to
20336 is_truth_op, set it for TRUTH_*IF_EXPR regardless of new_var's type,
20337 use boolean_type_node instead of integer_type_node as NE_EXPR type.
20338 (lower_reduction_clauses): Likewise.
20340 2021-06-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
20342 * config/gcn/gcn.c: Include dwarf2.h.
20343 (gcn_addr_space_debug): New function.
20344 (TARGET_ADDR_SPACE_DEBUG): New hook.
20346 2021-06-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
20348 * common/config/gcn/gcn-common.c
20349 (gcn_option_optimization_table): Change OPT_fomit_frame_pointer to -O3.
20350 * config/gcn/gcn.c (gcn_expand_prologue): Prefer the frame pointer
20352 (gcn_expand_prologue): Prefer the frame pointer when emitting CFI.
20353 (gcn_frame_pointer_rqd): New function.
20354 (TARGET_FRAME_POINTER_REQUIRED): New hook.
20356 2021-06-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
20358 * config/gcn/gcn.c (move_callee_saved_registers): Emit CFI notes for
20359 prologue register saves.
20360 (gcn_debug_unwind_info): Use UI_DWARF2.
20361 (gcn_dwarf_register_number): Map DWARF_LINK_REGISTER to DWARF PC.
20362 (gcn_dwarf_register_span): DWARF_LINK_REGISTER doesn't span.
20363 * config/gcn/gcn.h: (DWARF_FRAME_RETURN_COLUMN): New define.
20364 (DWARF_LINK_REGISTER): New define.
20365 (FIRST_PSEUDO_REGISTER): Increment.
20366 (FIXED_REGISTERS): Add entry for DWARF_LINK_REGISTER.
20367 (CALL_USED_REGISTERS): Likewise.
20368 (REGISTER_NAMES): Likewise.
20370 2021-06-30 Richard Biener <rguenther@suse.de>
20372 PR tree-optimization/101267
20373 * tree-vect-stmts.c (vect_check_scalar_mask): Adjust
20374 API and use SLP compatible interface of vect_is_simple_use.
20375 Reject not vectorized SLP defs for callers that do not support
20377 (vect_check_store_rhs): Handle masked stores and pass down
20378 the appropriate operator index.
20379 (vectorizable_call): Adjust.
20380 (vectorizable_store): Likewise.
20381 (vectorizable_load): Likewise. Handle SLP pecularity of
20383 (vect_is_simple_use): Remove special-casing of masked stores.
20385 2021-06-30 Tobias Burnus <tobias@codesourcery.com>
20387 * common.opt (foffload): Remove help as Driver only.
20388 * gcc.c (display_help): Add -foffload.
20390 2021-06-30 Tobias Burnus <tobias@codesourcery.com>
20392 * gcc.c (close_at_file, execute): Replace alloca by XALLOCAVEC.
20393 (check_offload_target_name): Fix splitting OFFLOAD_TARGETS into
20394 a candidate list; better inform no offload target is configured
20395 and fix hint extraction when passed target is not '\0' at [len].
20396 * common.opt (foffload): Add tailing '.'.
20397 (foffload-options): Likewise; fix flag name in the help string.
20399 2021-06-30 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
20402 * config/arm/arm_neon.h: Move vabs intrinsics before vcage_f32.
20403 (vcage_f32): Gate comparison on __FAST_MATH__.
20404 (vcageq_f32): Likewise.
20405 (vcale_f32): Likewise.
20406 (vcaleq_f32): Likewise.
20407 (vcagt_f32): Likewise.
20408 (vcagtq_f32): Likewise.
20409 (vcalt_f32): Likewise.
20410 (vcaltq_f32): Likewise.
20411 (vcage_f16): Likewise.
20412 (vcageq_f16): Likewise.
20413 (vcale_f16): Likewise.
20414 (vcaleq_f16): Likewise.
20415 (vcagt_f16): Likewise.
20416 (vcagtq_f16): Likewise.
20417 (vcalt_f16): Likewise.
20418 (vcaltq_f16): Likewise.
20420 2021-06-30 Richard Biener <rguenther@suse.de>
20422 PR tree-optimization/101264
20423 * tree-vect-slp.c (vect_optimize_slp): Propagate the
20424 computed perm_in to all "any" permute successors
20425 we cannot de-duplicate immediately.
20427 2021-06-30 liuhongt <hongtao.liu@intel.com>
20430 * config/i386/sse.md
20431 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>):
20433 (avx512f_sfixupimm<mode><maskz_scalar_name><round_saeonly_name>):
20435 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>"): Refined.
20436 * config/i386/subst.md (maskz_scalar): New define_subst.
20437 (maskz_scalar_name): New subst_attr.
20438 (maskz_scalar_op5): Ditto.
20439 (round_saeonly_maskz_scalar_op5): Ditto.
20440 (round_saeonly_maskz_scalar_operand5): Ditto.
20442 2021-06-30 David Edelsohn <dje.gcc@gmail.com>
20444 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags):
20445 Increase code CSECT alignment to at least 32 bytes.
20446 * config/rs6000/xcoff.h (TEXT_SECTION_ASM_OP): Add 32 byte
20447 alignment designation.
20449 2021-06-29 Sergei Trofimovich <siarheit@google.com>
20451 * doc/generic.texi: Fix s/net yet/not yet/ typo.
20453 2021-06-29 Andrew MacLeod <amacleod@redhat.com>
20455 PR tree-optimization/101254
20456 * range-op.cc (operator_minus::op1_op2_relation_effect): Check for
20457 wrapping/non-wrapping when setting the result range.
20459 2021-06-29 Andrew MacLeod <amacleod@redhat.com>
20461 * value-query.cc (gimple_range_global): Allow phis.
20463 2021-06-29 Andrew MacLeod <amacleod@redhat.com>
20465 * vr-values.c (vr_values::vrp_stmt_computes_nonzero): Use stmt.
20466 (simplify_using_ranges::op_with_boolean_value_range_p): Add a
20467 statement for location context.
20468 (check_for_binary_op_overflow): Ditto.
20469 (simplify_using_ranges::get_vr_for_comparison): Ditto.
20470 (simplify_using_ranges::compare_name_with_value): Ditto.
20471 (simplify_using_ranges::compare_names): Ditto.
20472 (vrp_evaluate_conditional_warnv_with_ops_using_ranges): Ditto.
20473 (simplify_using_ranges::simplify_truth_ops_using_ranges): Ditto.
20474 (simplify_using_ranges::simplify_min_or_max_using_ranges): Ditto.
20475 (simplify_using_ranges::simplify_internal_call_using_ranges): Ditto.
20476 (simplify_using_ranges::two_valued_val_range_p): Ditto.
20477 (simplify_using_ranges::simplify): Ditto.
20478 * vr-values.h: Adjust prototypes.
20480 2021-06-29 Uroš Bizjak <ubizjak@gmail.com>
20483 * config/i386/mmx.md (vec_addsubv2sf3): New insn pattern.
20485 2021-06-29 Julian Brown <julian@codesourcery.com>
20487 * config/gcn/gcn.c (gcn_init_libfuncs): New function.
20488 (TARGET_INIT_LIBFUNCS): Define target hook using above function.
20489 * config/gcn/gcn.h (UNITS_PER_WORD): Define to 8 for IN_LIBGCC2, 4
20491 (LIBGCC2_UNITS_PER_WORD, BITS_PER_WORD): Remove definitions.
20492 (MAX_FIXED_MODE_SIZE): Change to 128.
20494 2021-06-29 Julian Brown <julian@codesourcery.com>
20496 * config/gcn/gcn.md (UNSPEC_FLBIT_INT): New unspec constant.
20497 (s_mnemonic): Add clrsb.
20498 (gcn_flbit<mode>_int): Add insn pattern for SImode/DImode.
20499 (clrsb<mode>2): Add expander for SImode/DImode.
20501 2021-06-29 Julian Brown <julian@codesourcery.com>
20503 * config/gcn/gcn.md (<su>mulsidi3, <su>mulsidi3_reg, <su>mulsidi3_imm,
20504 muldi3): Add patterns.
20506 2021-06-29 Julian Brown <julian@codesourcery.com>
20508 * config/gcn/gcn.md (<su>mulsi3_highpart): Change to expander.
20509 (<su>mulsi3_highpart_reg, <su>mulsi3_highpart_imm): New patterns.
20511 2021-06-29 Julian Brown <julian@codesourcery.com>
20513 * config/gcn/gcn.md (mulsi3): Make s_mulk_i32 variant clobber SCC.
20515 2021-06-29 Joseph Myers <joseph@codesourcery.com>
20517 * btfout.c, ctfout.c: Include "memmodel.h".
20519 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
20521 * gcc.c (check_offload_target_name): Cast len argument to
20522 %q.*s to 'int'; avoid -Wstringop-truncation warning.
20524 2021-06-29 Richard Biener <rguenther@suse.de>
20526 * tree-vect-slp.c (vect_optimize_slp): Forward propagate
20527 to "any" permute nodes and relax "any" permute proapgation
20528 during iterative backward propagation.
20530 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
20533 * common.opt (-foffload=): Update description.
20534 (-foffload-options=): New.
20535 * doc/invoke.texi (C Language Options): Document
20536 -foffload and -foffload-options.
20537 * gcc.c (check_offload_target_name): New, split off from
20538 handle_foffload_option.
20539 (check_foffload_target_names): New.
20540 (handle_foffload_option): Handle -foffload=default.
20541 (driver_handle_option): Update for -foffload-options.
20542 * lto-opts.c (lto_write_options): Use -foffload-options
20543 instead of -foffload.
20544 * lto-wrapper.c (merge_and_complain, append_offload_options):
20546 * opts.c (common_handle_option): Likewise.
20548 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
20550 * doc/invoke.texi (C Language Options): Sort options
20551 alphabetically in optlist and also the description itself.
20552 Remove leftover -fallow-single-precision from and add missing
20553 -fgnu-tm to the optlist.
20555 2021-06-29 Richard Biener <rguenther@suse.de>
20557 * tree-vect-slp.c (slpg_vertex::visited): Remove.
20558 (vect_slp_perms_eq): Handle -1 permutes.
20559 (vect_optimize_slp): Rewrite permute propagation.
20561 2021-06-29 Jakub Jelinek <jakub@redhat.com>
20564 * match.pd ((intptr_t)x eq/ne CST to x eq/ne (typeof x) CST): Don't
20565 perform the optimization in GENERIC when sanitizing and x has a
20568 2021-06-29 Richard Biener <rguenther@suse.de>
20570 PR tree-optimization/101242
20571 * tree-vect-slp.c (vect_slp_build_vertices): Force-add
20572 PHIs with not represented initial values as leafs.
20574 2021-06-29 Jan-Benedict Glaw <jbglaw@getslash.de>
20576 * config/pdp11/pdp11.h (ASM_OUTPUT_SKIP): Fix signedness warning.
20577 * config/pdp11/pdp11.c (pdp11_asm_print_operand_punct_valid_p): Remove
20578 "register" keyword.
20579 (pdp11_initial_elimination_offset) Remove unused variable.
20580 (pdp11_cmp_length) Ditto.
20581 (pdp11_insn_cost): Ditto, and fix signedness warning.
20583 2021-06-29 David Edelsohn <dje.gcc@gmail.com>
20585 * btfout.c: Include tm_p.h.
20588 2021-06-28 Indu Bhagat <indu.bhagat@oracle.com>
20590 * config/bpf/bpf.c (bpf_expand_prologue): Do not mark insns as
20592 (bpf_expand_epilogue): Likewise.
20593 * config/bpf/bpf.h (DWARF2_FRAME_INFO): Define to 0.
20594 Do not define DBX_DEBUGGING_INFO.
20596 2021-06-28 Indu Bhagat <indu.bhagat@oracle.com>
20598 * doc/invoke.texi: Document the CTF and BTF debug info options.
20600 2021-06-28 Indu Bhagat <indu.bhagat@oracle.com>
20601 David Faust <david.faust@oracle.com>
20602 Jose E. Marchesi <jose.marchesi@oracle.com>
20603 Weimin Pan <weimin.pan@oracle.com>
20605 * Makefile.in: Add ctfc.*, ctfout.c and btfout.c files to
20606 GTFILES. Add new object files.
20607 * common.opt: Add CTF and BTF debug info options.
20608 * btfout.c: New file.
20609 * ctfc.c: Likewise.
20610 * ctfc.h: Likewise.
20611 * ctfout.c: Likewise.
20612 * dwarf2ctf.c: Likewise.
20613 * dwarf2ctf.h: Likewise.
20614 * dwarf2cfi.c (dwarf2out_do_frame): Acknowledge CTF_DEBUG and
20616 * dwarf2out.c (dwarf2out_source_line): Likewise.
20617 (dwarf2out_finish): Skip emitting DWARF if CTF or BTF are to
20619 (debug_format_do_cu): New function.
20620 (dwarf2out_early_finish): Traverse DIEs and emit CTF/BTF for
20622 Include dwarf2ctf.c.
20623 * final.c (dwarf2_debug_info_emitted_p): Acknowledge DWARF-based debug
20625 * flag-types.h (enum debug_info_type): Add CTF_DEBUG and BTF_DEBUG.
20626 (CTF_DEBUG): New bitmask.
20627 (BTF_DEBUG): Likewise.
20628 (enum ctf_debug_info_levels): New enum.
20629 * gengtype.c (open_base_files): Handle ctfc.h.
20630 (main): Handle uint32_t type.
20631 * flags.h (btf_debuginfo_p): New definition.
20632 (dwarf_based_debuginfo_p): Likewise.
20633 * opts.c (debug_type_names): Add entries for CTF and BTF.
20634 (btf_debuginfo_p): New function.
20635 (dwarf_based_debuginfo_p): Likewise.
20636 (common_handle_option): Handle -gctfN and -gbtf options.
20637 (set_debug_level): Set CTF_DEBUG, BTF_DEBUG whenever appropriate.
20638 * toplev.c (process_options): Inform the user and ignore -gctfLEVEL if
20641 2021-06-28 Jose E. Marchesi <jose.marchesi@oracle.com>
20643 * dwarf2out.c (AT_class): Function is no longer static.
20644 (AT_int): Likewise.
20645 (AT_unsigned): Likewise.
20646 (AT_loc): Likewise.
20647 (get_AT): Likewise.
20648 (get_AT_string): Likewise.
20649 (get_AT_flag): Likewise.
20650 (get_AT_unsigned): Likewise.
20651 (get_AT_ref): Likewise.
20652 (new_die_raw): Likewise.
20653 (lookup_decl_die): Likewise.
20654 (base_type_die): Likewise.
20655 (add_name_attribute): Likewise.
20656 (add_AT_int): Likewise.
20657 (add_AT_unsigned): Likewise.
20658 (add_AT_loc): Likewise.
20659 (dw_get_die_tag): New function.
20660 (dw_get_die_child): Likewise.
20661 (dw_get_die_sib): Likewise.
20662 (struct dwarf_file_data): Move from here to dwarf2out.h
20663 (struct dw_attr_struct): Likewise.
20664 * dwarf2out.h: Analogous changes.
20666 2021-06-28 Martin Jambor <mjambor@suse.cz>
20669 * ipa-param-manipulation.h (class ipa_param_body_adjustments): New
20670 members m_dead_stmts and m_dead_ssas.
20671 * ipa-param-manipulation.c
20672 (ipa_param_body_adjustments::mark_dead_statements): New function.
20673 (ipa_param_body_adjustments::common_initialization): Call it on
20674 all removed but not split parameters.
20675 (ipa_param_body_adjustments::ipa_param_body_adjustments): Initialize
20677 (ipa_param_body_adjustments::modify_call_stmt): Remove arguments that
20679 * tree-inline.c (remap_gimple_stmt): Do not copy dead statements, reset
20680 dead debug statements.
20681 (copy_phis_for_bb): Do not copy dead PHI nodes.
20683 2021-06-28 Martin Jambor <mjambor@suse.cz>
20686 * symtab-clones.h (clone_info): Removed member param_adjustments.
20687 * ipa-param-manipulation.h: Adjust initial comment to reflect how we
20688 deal with pass-through splits now.
20689 (ipa_param_performed_split): Removed.
20690 (ipa_param_adjustments::modify_call): Adjusted parameters.
20691 (class ipa_param_body_adjustments): Adjusted parameters of
20692 register_replacement, modify_gimple_stmt and modify_call_stmt.
20693 (ipa_verify_edge_has_no_modifications): Declare.
20694 (ipa_edge_modifications_finalize): Declare.
20695 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Remove
20696 performed_splits processing, pas only edge to padjs->modify_call,
20697 check that call arguments were not modified if they should not have
20699 * cgraphclones.c (cgraph_node::create_clone): Do not copy performed
20701 * ipa-param-manipulation.c (struct pass_through_split_map): New type.
20702 (ipa_edge_modification_info): Likewise.
20703 (ipa_edge_modification_sum): Likewise.
20704 (ipa_edge_modifications): New edge summary.
20705 (ipa_verify_edge_has_no_modifications): New function.
20706 (transitive_split_p): Removed.
20707 (transitive_split_map): Likewise.
20708 (init_transitive_splits): Likewise.
20709 (ipa_param_adjustments::modify_call): Adjusted to use the new edge
20710 summary instead of performed_splits.
20711 (ipa_param_body_adjustments::register_replacement): Drop dummy
20712 parameter, set base_index of the created ipa_param_body_replacement.
20713 (phi_arg_will_live_p): New function.
20714 (ipa_param_body_adjustments::common_initialization): Do not create
20715 IPA_SRA dummy decls.
20716 (simple_tree_swap_info): Removed.
20717 (remap_split_decl_to_dummy): Likewise.
20718 (record_argument_state_1): New function.
20719 (record_argument_state): Likewise.
20720 (ipa_param_body_adjustments::modify_call_stmt): New parameter
20721 orig_stmt. Do not work with dummy decls, save necessary info about
20722 changes to ipa_edge_modifications.
20723 (ipa_param_body_adjustments::modify_gimple_stmt): New parameter
20724 orig_stmt, pass it to modify_call_stmt.
20725 (ipa_param_body_adjustments::modify_cfun_body): Adjust call to
20726 modify_gimple_stmt.
20727 (ipa_edge_modifications_finalize): New function.
20728 * tree-inline.c (remap_gimple_stmt): Pass original statement to
20729 modify_gimple_stmt.
20730 (copy_phis_for_bb): Do not copy dead PHI nodes.
20731 (expand_call_inline): Do not remap performed_splits.
20732 (update_clone_info): Likewise.
20733 * toplev.c: Include ipa-param-manipulation.h.
20734 (toplev::finalize): Call ipa_edge_modifications_finalize.
20736 2021-06-28 Andrew Pinski <apinski@marvell.com>
20738 * tree-ssa-phiopt.c (replace_phi_edge_with_variable): Duplicate range
20739 info if we're the only things setting the target PHI.
20740 (value_replacement): Don't duplicate range here.
20741 (minmax_replacement): Likewise.
20743 2021-06-28 Richard Biener <rguenther@suse.de>
20745 PR tree-optimization/101229
20746 * gimple-walk.c (gimple_walk_op): Handle PHIs.
20748 2021-06-28 Martin Liska <mliska@suse.cz>
20750 * config/v850/v850.c (construct_dispose_instruction): Allocate
20752 (construct_prepare_instruction): Likewise.
20754 2021-06-28 Martin Liska <mliska@suse.cz>
20756 * config/v850/v850.c (v850_option_override): Build default
20758 (v850_can_inline_p): New. Allow MASK_PROLOG_FUNCTION to be
20759 ignored for inlining.
20760 (TARGET_CAN_INLINE_P): New.
20762 2021-06-28 Richard Biener <rguenther@suse.de>
20764 PR tree-optimization/101207
20765 * tree-vect-slp.c (vect_optimize_slp): Do BB reduction
20766 permute eliding for load permutations properly.
20768 2021-06-28 Richard Biener <rguenther@suse.de>
20770 PR tree-optimization/101173
20771 * gimple-loop-interchange.cc
20772 (tree_loop_interchange::valid_data_dependences): Disallow outer
20773 loop dependence distance of zero.
20775 2021-06-28 liuhongt <hongtao.liu@intel.com>
20778 * config/i386/sse.md (*avx_cmp<mode>3_lt): New
20779 define_insn_and_split.
20780 (*avx_cmp<mode>3_ltint): Ditto.
20781 (*avx2_pcmp<mode>3_3): Ditto.
20782 (*avx2_pcmp<mode>3_4): Ditto.
20783 (*avx2_pcmp<mode>3_5): Ditto.
20785 2021-06-28 liuhongt <hongtao.liu@intel.com>
20787 * config/i386/i386-builtin.def (IX86_BUILTIN_BLENDVPD256,
20788 IX86_BUILTIN_BLENDVPS256, IX86_BUILTIN_PBLENDVB256,
20789 IX86_BUILTIN_BLENDVPD, IX86_BUILTIN_BLENDVPS,
20790 IX86_BUILTIN_PBLENDVB128): Replace icode with
20792 * config/i386/i386.c (ix86_gimple_fold_builtin): Fold blendv
20794 * config/i386/sse.md (*<sse4_1_avx2>_pblendvb_lt_subreg_not):
20795 New pre_reload splitter.
20797 2021-06-27 Andrew Pinski <apinski@marvell.com>
20799 PR middle-end/101230
20800 * fold-const.c (fold_ternary_loc): Check
20801 the return value of invert_tree_comparison.
20803 2021-06-27 David Edelsohn <dje.gcc@gmail.com>
20805 * config.gcc: Add SPDX License Identifier.
20806 (powerpc-ibm-aix789): Default to aix73.h.
20807 (powerpc-ibm-aix7.2.*.*): New stanza.
20808 * config/rs6000/aix72.h: Add SPDX License Identifier.
20809 * config/rs6000/aix73.h: New file.
20811 2021-06-26 Jason Merrill <jason@redhat.com>
20813 * except.c: #include "dwarf2.h" instead of "dwarf2out.h".
20815 2021-06-26 Andrew Pinski <apinski@marvell.com>
20817 * genmatch.c (lower_cond): Copy for_subst_vec
20818 for the simplify also.
20819 (lower): Swap the order for lower_for and lower_cond.
20821 2021-06-26 Andrew Pinski <apinski@marvell.com>
20823 * tree-ssa-phiopt.c (match_simplify_replacement): Reset
20824 flow senatitive info on the moved ssa set.
20826 2021-06-26 Andrew Pinski <apinski@marvell.com>
20828 * fold-const.c (fold_cond_expr_with_comparison):
20829 Exand arg0 into comp_code, arg00, and arg01.
20830 (fold_ternary_loc): Use invert_tree_comparison
20831 instead of fold_invert_truthvalue for the case
20832 where we have A CMP B ? C : A.
20834 2021-06-25 Martin Sebor <msebor@redhat.com>
20836 PR middle-end/101216
20837 * calls.c (maybe_warn_rdwr_sizes): Use the no_warning constant.
20839 2021-06-25 Jeff Law <jeffreyalaw@gmail.com>
20841 * config/h8300/h8300.c (select_cc_mode): Handle ASHIFTRT and LSHIFTRT.
20843 2021-06-25 Richard Biener <rguenther@suse.de>
20845 PR tree-optimization/101202
20846 * tree-vect-slp.c (vect_optimize_slp): Explicitely handle
20849 2021-06-25 Richard Biener <rguenther@suse.de>
20851 * tree-vect-slp-patterns.c (addsub_pattern::build): Copy
20852 STMT_VINFO_REDUC_DEF from the original representative.
20854 2021-06-25 Martin Sebor <msebor@redhat.com>
20856 * builtins.c (warn_string_no_nul): Replace uses of TREE_NO_WARNING,
20857 gimple_no_warning_p and gimple_set_no_warning with
20858 warning_suppressed_p, and suppress_warning.
20860 (maybe_warn_for_bound): Same.
20861 (warn_for_access): Same.
20862 (check_access): Same.
20863 (expand_builtin_strncmp): Same.
20864 (fold_builtin_varargs): Same.
20865 * calls.c (maybe_warn_nonstring_arg): Same.
20866 (maybe_warn_rdwr_sizes): Same.
20867 * cfgexpand.c (expand_call_stmt): Same.
20868 * cgraphunit.c (check_global_declaration): Same.
20869 * fold-const.c (fold_undefer_overflow_warnings): Same.
20870 (fold_truth_not_expr): Same.
20871 (fold_unary_loc): Same.
20872 (fold_checksum_tree): Same.
20873 * gimple-array-bounds.cc (array_bounds_checker::check_array_ref): Same.
20874 (array_bounds_checker::check_mem_ref): Same.
20875 (array_bounds_checker::check_addr_expr): Same.
20876 (array_bounds_checker::check_array_bounds): Same.
20877 * gimple-expr.c (copy_var_decl): Same.
20878 * gimple-fold.c (gimple_fold_builtin_strcpy): Same.
20879 (gimple_fold_builtin_strncat): Same.
20880 (gimple_fold_builtin_stxcpy_chk): Same.
20881 (gimple_fold_builtin_stpcpy): Same.
20882 (gimple_fold_builtin_sprintf): Same.
20883 (fold_stmt_1): Same.
20884 * gimple-ssa-isolate-paths.c (diag_returned_locals): Same.
20885 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
20886 * gimple-ssa-sprintf.c (handle_printf_call): Same.
20887 * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_store): Same.
20888 * gimple-ssa-warn-restrict.c (maybe_diag_overlap): Same.
20889 * gimple-ssa-warn-restrict.h: Adjust declarations.
20890 (maybe_diag_access_bounds): Replace uses of TREE_NO_WARNING,
20891 gimple_no_warning_p and gimple_set_no_warning with
20892 warning_suppressed_p, and suppress_warning.
20893 (check_call): Same.
20894 (check_bounds_or_overlap): Same.
20895 * gimple.c (gimple_build_call_from_tree): Same.
20896 * gimplify.c (gimplify_return_expr): Same.
20897 (gimplify_cond_expr): Same.
20898 (gimplify_modify_expr_complex_part): Same.
20899 (gimplify_modify_expr): Same.
20900 (gimple_push_cleanup): Same.
20901 (gimplify_expr): Same.
20902 * omp-expand.c (expand_omp_for_generic): Same.
20903 (expand_omp_taskloop_for_outer): Same.
20904 * omp-low.c (lower_rec_input_clauses): Same.
20905 (lower_lastprivate_clauses): Same.
20906 (lower_send_clauses): Same.
20907 (lower_omp_target): Same.
20908 * tree-cfg.c (pass_warn_function_return::execute): Same.
20909 * tree-complex.c (create_one_component_var): Same.
20910 * tree-inline.c (remap_gimple_op_r): Same.
20911 (copy_tree_body_r): Same.
20912 (declare_return_variable): Same.
20913 (expand_call_inline): Same.
20914 * tree-nested.c (lookup_field_for_decl): Same.
20915 * tree-sra.c (create_access_replacement): Same.
20916 (generate_subtree_copies): Same.
20917 * tree-ssa-ccp.c (pass_post_ipa_warn::execute): Same.
20918 * tree-ssa-forwprop.c (combine_cond_expr_cond): Same.
20919 * tree-ssa-loop-ch.c (ch_base::copy_headers): Same.
20920 * tree-ssa-loop-im.c (execute_sm): Same.
20921 * tree-ssa-phiopt.c (cond_store_replacement): Same.
20922 * tree-ssa-strlen.c (maybe_warn_overflow): Same.
20923 (handle_builtin_strcpy): Same.
20924 (maybe_diag_stxncpy_trunc): Same.
20925 (handle_builtin_stxncpy_strncat): Same.
20926 (handle_builtin_strcat): Same.
20927 * tree-ssa-uninit.c (get_no_uninit_warning): Same.
20928 (set_no_uninit_warning): Same.
20929 (uninit_undefined_value_p): Same.
20930 (warn_uninit): Same.
20931 (maybe_warn_operand): Same.
20932 * tree-vrp.c (compare_values_warnv): Same.
20933 * vr-values.c (vr_values::extract_range_for_var_from_comparison_expr): Same.
20934 (test_for_singularity): Same.
20935 * gimple.h (warning_suppressed_p): New function.
20936 (suppress_warning): Same.
20937 (copy_no_warning): Same.
20938 (gimple_set_block): Call gimple_set_location.
20939 (gimple_set_location): Call copy_warning.
20941 2021-06-25 Martin Sebor <msebor@redhat.com>
20943 * tree.h (warning_suppressed_at, copy_warning,
20944 warning_suppressed_p, suppress_warning): New functions.
20946 2021-06-25 Martin Sebor <msebor@redhat.com>
20948 * Makefile.in (OBJS-libcommon): Add diagnostic-spec.o.
20949 * gengtype.c (open_base_files): Add diagnostic-spec.h.
20950 * diagnostic-spec.c: New file.
20951 * diagnostic-spec.h: New file.
20952 * tree.h (no_warning, all_warnings, suppress_warning_at): New
20954 * warning-control.cc: New file.
20956 2021-06-25 liuhongt <hongtao.liu@intel.com>
20959 * config/i386/i386.c (x86_order_regs_for_local_alloc):
20962 2021-06-24 Andrew MacLeod <amacleod@redhat.com>
20964 PR tree-optimization/101189
20965 * gimple-range-fold.cc (fold_using_range::range_of_range_op): Pass
20966 LHS range of condition to postfold routine.
20967 (fold_using_range::postfold_gcond_edges): Only process the TRUE or
20968 FALSE edge if the LHS range supports it being taken.
20969 * gimple-range-fold.h (postfold_gcond_edges): Add range parameter.
20971 2021-06-24 Andrew MacLeod <amacleod@redhat.com>
20973 * value-relation.cc (equiv_oracle::dump): Do not dump NULL blocks.
20974 (relation_oracle::find_relation_block): Check correct bitmap.
20975 (relation_oracle::dump): Do not dump NULL blocks.
20977 2021-06-24 Andrew MacLeod <amacleod@redhat.com>
20979 * gimple-range-cache.cc (ranger_cache::propagate_cache): Call
20980 range_on_edge instead of manually calculating.
20982 2021-06-24 Andrew MacLeod <amacleod@redhat.com>
20984 * range-op.cc: Fix comment.
20986 2021-06-24 Uroš Bizjak <ubizjak@gmail.com>
20989 * config/i386/i386-expand.c (ix86_expand_sse_unpack):
20990 Handle V8QI and V4HI modes.
20991 * config/i386/mmx.md (sse4_1_<any_extend:code>v4qiv4hi2):
20993 (sse4_1_<any_extend:code>v4qiv4hi2): Ditto.
20994 (mmxpackmode): New mode attribute.
20995 (vec_pack_trunc_<mmxpackmode:mode>): New expander.
20996 (mmxunpackmode): New mode attribute.
20997 (vec_unpacks_lo_<mmxunpackmode:mode>): New expander.
20998 (vec_unpacks_hi_<mmxunpackmode:mode>): Ditto.
20999 (vec_unpacku_lo_<mmxunpackmode:mode>): Ditto.
21000 (vec_unpacku_hi_<mmxunpackmode:mode>): Ditto.
21001 * config/i386/i386.md (extsuffix): Move from ...
21002 * config/i386/sse.md: ... here.
21004 2021-06-24 Eric Botcazou <ebotcazou@adacore.com>
21006 * dwarf2out.c (dwarf2out_assembly_start): Emit .file 0 marker here..
21007 (dwarf2out_finish): ...instead of here.
21009 2021-06-24 Eric Botcazou <ebotcazou@adacore.com>
21011 * configure.ac (--gdwarf-5 option): Use objdump instead of readelf.
21012 (working --gdwarf-4/--gdwarf-5 for all sources): Likewise.
21013 (--gdwarf-4 not refusing generated .debug_line): Adjust for Windows.
21014 * configure: Regenerate.
21016 2021-06-24 Richard Biener <rguenther@suse.de>
21018 * config/i386/sse.md (vec_addsubv4df3, vec_addsubv2df3,
21019 vec_addsubv8sf3, vec_addsubv4sf3): Merge into ...
21020 (vec_addsub<mode>3): ... using a new addsub_cst mode attribute.
21022 2021-06-24 Richard Biener <rguenther@suse.de>
21024 * config/i386/sse.md (avx_addsubv4df3): Rename to
21026 (avx_addsubv8sf3): Rename to vec_addsubv8sf3.
21027 (sse3_addsubv2df3): Rename to vec_addsubv2df3.
21028 (sse3_addsubv4sf3): Rename to vec_addsubv4sf3.
21029 * config/i386/i386-builtin.def: Adjust.
21030 * internal-fn.def (VEC_ADDSUB): New internal optab fn.
21031 * optabs.def (vec_addsub_optab): New optab.
21032 * tree-vect-slp-patterns.c (class addsub_pattern): New.
21033 (slp_patterns): Add addsub_pattern.
21034 * tree-vect-slp.c (vect_optimize_slp): Disable propagation
21035 across CFN_VEC_ADDSUB.
21036 * tree-vectorizer.h (vect_pattern::vect_pattern): Make
21038 * doc/md.texi (vec_addsub<mode>3): Document.
21040 2021-06-24 Jakub Jelinek <jakub@redhat.com>
21042 PR middle-end/101170
21043 * df-scan.c (df_ref_record): For paradoxical big-endian SUBREGs
21044 where regno + subreg_regno_offset wraps around use 0 as starting
21047 2021-06-24 Jakub Jelinek <jakub@redhat.com>
21049 PR middle-end/101172
21050 * stor-layout.c (finish_bitfield_representative): If nextf has
21051 error_mark_node type, set repr type to error_mark_node too.
21053 2021-06-24 Ilya Leoshkevich <iii@linux.ibm.com>
21055 * config/s390/s390.c (s390_function_profiler): Ignore labelno
21057 * config/s390/s390.h (NO_PROFILE_COUNTERS): Define.
21059 2021-06-24 Richard Biener <rguenther@suse.de>
21061 * tree-vect-slp.c (vect_optimize_slp): Do not propagate
21062 across operations that have different semantics on different
21065 2021-06-24 Jakub Jelinek <jakub@redhat.com>
21067 * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): Document meaning for OpenMP.
21068 * gimplify.c (gimplify_scan_omp_clauses): For OpenMP map clauses
21069 with OMP_CLAUSE_MAP_IN_REDUCTION flag partially defer gimplification
21070 of non-decl OMP_CLAUSE_DECL. For OMP_CLAUSE_IN_REDUCTION on
21071 OMP_TARGET user outer_ctx instead of ctx for placeholders and
21072 initializer/combiner gimplification.
21073 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_MAP_IN_REDUCTION
21074 on target constructs.
21075 (lower_rec_input_clauses): Likewise.
21076 (lower_omp_target): Likewise.
21077 * omp-expand.c (expand_omp_target): Temporarily ignore nowait clause
21078 on target if in_reduction is present.
21080 2021-06-24 Kewen Lin <linkw@linux.ibm.com>
21082 * tree-predcom.c (class pcom_worker): New class.
21083 (release_chain): Renamed to...
21084 (pcom_worker::release_chain): ...this.
21085 (release_chains): Renamed to...
21086 (pcom_worker::release_chains): ...this.
21087 (aff_combination_dr_offset): Renamed to...
21088 (pcom_worker::aff_combination_dr_offset): ...this.
21089 (determine_offset): Renamed to...
21090 (pcom_worker::determine_offset): ...this.
21091 (class comp_ptrs): New class.
21092 (split_data_refs_to_components): Renamed to...
21093 (pcom_worker::split_data_refs_to_components): ...this,
21094 and update with class comp_ptrs.
21095 (suitable_component_p): Renamed to...
21096 (pcom_worker::suitable_component_p): ...this.
21097 (filter_suitable_components): Renamed to...
21098 (pcom_worker::filter_suitable_components): ...this.
21099 (valid_initializer_p): Renamed to...
21100 (pcom_worker::valid_initializer_p): ...this.
21101 (find_looparound_phi): Renamed to...
21102 (pcom_worker::find_looparound_phi): ...this.
21103 (add_looparound_copies): Renamed to...
21104 (pcom_worker::add_looparound_copies): ...this.
21105 (determine_roots_comp): Renamed to...
21106 (pcom_worker::determine_roots_comp): ...this.
21107 (determine_roots): Renamed to...
21108 (pcom_worker::determine_roots): ...this.
21109 (single_nonlooparound_use): Renamed to...
21110 (pcom_worker::single_nonlooparound_use): ...this.
21111 (remove_stmt): Renamed to...
21112 (pcom_worker::remove_stmt): ...this.
21113 (execute_pred_commoning_chain): Renamed to...
21114 (pcom_worker::execute_pred_commoning_chain): ...this.
21115 (execute_pred_commoning): Renamed to...
21116 (pcom_worker::execute_pred_commoning): ...this.
21117 (struct epcc_data): New member worker.
21118 (execute_pred_commoning_cbck): Call execute_pred_commoning
21119 with pcom_worker pointer.
21120 (find_use_stmt): Renamed to...
21121 (pcom_worker::find_use_stmt): ...this.
21122 (find_associative_operation_root): Renamed to...
21123 (pcom_worker::find_associative_operation_root): ...this.
21124 (find_common_use_stmt): Renamed to...
21125 (pcom_worker::find_common_use_stmt): ...this.
21126 (combinable_refs_p): Renamed to...
21127 (pcom_worker::combinable_refs_p): ...this.
21128 (reassociate_to_the_same_stmt): Renamed to...
21129 (pcom_worker::reassociate_to_the_same_stmt): ...this.
21130 (stmt_combining_refs): Renamed to...
21131 (pcom_worker::stmt_combining_refs): ...this.
21132 (combine_chains): Renamed to...
21133 (pcom_worker::combine_chains): ...this.
21134 (try_combine_chains): Renamed to...
21135 (pcom_worker::try_combine_chains): ...this.
21136 (prepare_initializers_chain): Renamed to...
21137 (pcom_worker::prepare_initializers_chain): ...this.
21138 (prepare_initializers): Renamed to...
21139 (pcom_worker::prepare_initializers): ...this.
21140 (prepare_finalizers_chain): Renamed to...
21141 (pcom_worker::prepare_finalizers_chain): ...this.
21142 (prepare_finalizers): Renamed to...
21143 (pcom_worker::prepare_finalizers): ...this.
21144 (tree_predictive_commoning_loop): Renamed to...
21145 (pcom_worker::tree_predictive_commoning_loop): ...this, adjust
21146 some calls and remove some cleanup code.
21147 (tree_predictive_commoning): Adjusted to use pcom_worker instance.
21148 (static variable looparound_phis): Remove.
21149 (static variable name_expansions): Remove.
21151 2021-06-24 Richard Biener <rguenther@suse.de>
21153 * tree-vect-slp.c (slpg_vertex): New struct.
21154 (vect_slp_build_vertices): Adjust.
21155 (vect_optimize_slp): Likewise. Maintain an outgoing permute
21156 and a materialized one.
21158 2021-06-24 Richard Biener <rguenther@suse.de>
21160 PR tree-optimization/101105
21161 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
21162 Only ignore steps when they are equal or scalar order is preserved.
21164 2021-06-24 liuhongt <hongtao.liu@intel.com>
21167 * config/i386/i386-expand.c (ix86_expand_vec_interleave):
21168 Adjust comments for ix86_expand_vecop_qihi2.
21169 (ix86_expand_vecmul_qihi): Renamed to ..
21170 (ix86_expand_vecop_qihi2): Adjust function prototype to
21171 support shift operation, add static to definition.
21172 (ix86_expand_vec_shift_qihi_constant): Add static to definition.
21173 (ix86_expand_vecop_qihi): Call ix86_expand_vecop_qihi2 and
21174 ix86_expand_vec_shift_qihi_constant.
21175 * config/i386/i386-protos.h (ix86_expand_vecmul_qihi): Deleted.
21176 (ix86_expand_vec_shift_qihi_constant): Deleted.
21177 * config/i386/sse.md (VI12_256_512_AVX512VL): New mode
21179 (mulv8qi3): Call ix86_expand_vecop_qihi directly, add
21180 condition TARGET_64BIT.
21181 (mul<mode>3): Ditto.
21182 (<insn><mode>3): Ditto.
21183 (vlshr<mode>3): Extend to support avx512 vlshr.
21184 (v<insn><mode>3): New expander for
21186 (v<insn>v8qi3): Ditto.
21187 (vashrv8hi3<mask_name>): Renamed to ..
21188 (vashr<mode>3): And extend to support V16QImode for avx512.
21189 (vashrv16qi3): Deleted.
21190 (vashrv2di3<mask_name>): Extend expander to support avx512
21193 2021-06-23 Dimitar Dimitrov <dimitar@dinux.eu>
21195 * doc/lto.texi (Design Overview): Update that slim objects are
21198 2021-06-23 Aaron Sawdey <acsawdey@linux.ibm.com>
21200 * config/rs6000/rs6000-cpus.def: Take OPTION_MASK_PCREL_OPT out
21201 of OTHER_POWER10_MASKS so it will not be enabled by default.
21203 2021-06-23 Richard Biener <rguenther@suse.de>
21204 Martin Jambor <mjambor@suse.cz>
21206 * tree-inline.c (setup_one_parameter): Set TREE_READONLY of the
21207 param replacement unconditionally. Adjust comment.
21209 2021-06-23 Andrew MacLeod <amacleod@redhat.com>
21211 * Makefile.in (OBJS): Add gimple-range-fold.o
21212 * gimple-range-fold.cc: New.
21213 * gimple-range-fold.h: New.
21214 * gimple-range-gori.cc (gimple_range_calc_op1): Move to here.
21215 (gimple_range_calc_op2): Ditto.
21216 * gimple-range-gori.h: Move prototypes to here.
21217 * gimple-range.cc: Adjust include files.
21218 (fur_source:fur_source): Relocate to gimple-range-fold.cc.
21219 (fur_source::get_operand): Ditto.
21220 (fur_source::get_phi_operand): Ditto.
21221 (fur_source::query_relation): Ditto.
21222 (fur_source::register_relation): Ditto.
21223 (class fur_edge): Ditto.
21224 (fur_edge::fur_edge): Ditto.
21225 (fur_edge::get_operand): Ditto.
21226 (fur_edge::get_phi_operand): Ditto.
21227 (fur_stmt::fur_stmt): Ditto.
21228 (fur_stmt::get_operand): Ditto.
21229 (fur_stmt::get_phi_operand): Ditto.
21230 (fur_stmt::query_relation): Ditto.
21231 (class fur_depend): Relocate to gimple-range-fold.h.
21232 (fur_depend::fur_depend): Relocate to gimple-range-fold.cc.
21233 (fur_depend::register_relation): Ditto.
21234 (fur_depend::register_relation): Ditto.
21235 (class fur_list): Ditto.
21236 (fur_list::fur_list): Ditto.
21237 (fur_list::get_operand): Ditto.
21238 (fur_list::get_phi_operand): Ditto.
21239 (fold_range): Ditto.
21240 (adjust_pointer_diff_expr): Ditto.
21241 (gimple_range_adjustment): Ditto.
21242 (gimple_range_base_of_assignment): Ditto.
21243 (gimple_range_operand1): Ditto.
21244 (gimple_range_operand2): Ditto.
21245 (gimple_range_calc_op1): Relocate to gimple-range-gori.cc.
21246 (gimple_range_calc_op2): Ditto.
21247 (fold_using_range::fold_stmt): Relocate to gimple-range-fold.cc.
21248 (fold_using_range::range_of_range_op): Ditto.
21249 (fold_using_range::range_of_address): Ditto.
21250 (fold_using_range::range_of_phi): Ditto.
21251 (fold_using_range::range_of_call): Ditto.
21252 (fold_using_range::range_of_builtin_ubsan_call): Ditto.
21253 (fold_using_range::range_of_builtin_call): Ditto.
21254 (fold_using_range::range_of_cond_expr): Ditto.
21255 (fold_using_range::range_of_ssa_name_with_loop_info): Ditto.
21256 (fold_using_range::relation_fold_and_or): Ditto.
21257 (fold_using_range::postfold_gcond_edges): Ditto.
21258 * gimple-range.h: Add gimple-range-fold.h to include files. Change
21259 GIMPLE_RANGE_STMT_H to GIMPLE_RANGE_H.
21260 (gimple_range_handler): Relocate to gimple-range-fold.h.
21261 (gimple_range_ssa_p): Ditto.
21262 (range_compatible_p): Ditto.
21263 (class fur_source): Ditto.
21264 (class fur_stmt): Ditto.
21265 (class fold_using_range): Ditto.
21266 (gimple_range_calc_op1): Relocate to gimple-range-gori.h
21267 (gimple_range_calc_op2): Ditto.
21269 2021-06-23 Andrew MacLeod <amacleod@redhat.com>
21271 PR tree-optimization/101148
21272 PR tree-optimization/101014
21273 * gimple-range-cache.cc (ranger_cache::ranger_cache): Adjust.
21274 (ranger_cache::~ranger_cache): Adjust.
21275 (ranger_cache::block_range): Check if propagation disallowed.
21276 (ranger_cache::propagate_cache): Disallow propagation if new value
21277 can't be stored properly.
21278 * gimple-range-cache.h (ranger_cache::m_propfail): New member.
21280 2021-06-23 Andrew MacLeod <amacleod@redhat.com>
21282 * gimple-range-cache.cc (class ssa_block_ranges): Adjust prototype.
21283 (sbr_vector::set_bb_range): Return true.
21284 (class sbr_sparse_bitmap): Adjust.
21285 (sbr_sparse_bitmap::set_bb_range): Return value.
21286 (block_range_cache::set_bb_range): Return value.
21287 (ranger_cache::propagate_cache): Use return value to print msg.
21288 * gimple-range-cache.h (class block_range_cache): Adjust.
21290 2021-06-23 Andrew MacLeod <amacleod@redhat.com>
21292 * gimple-range.cc (dump_bb): Use range_on_edge from the cache.
21294 2021-06-23 Jeff Law <jeffreyalaw@gmail.com>
21296 * config/h8300/logical.md (<code><mode>3<ccnz>): Use <cczn>
21297 so this pattern can be used for test/compare removal. Pass
21298 current insn to compute_logical_op_length and output_logical_op.
21299 * config/h8300/h8300.c (compute_logical_op_cc): Remove.
21300 (h8300_and_costs): Add argument to compute_logical_op_length.
21301 (output_logical_op): Add new argument. Use it to determine if the
21302 condition codes are used and adjust the output accordingly.
21303 (compute_logical_op_length): Add new argument and update length
21304 computations when condition codes are used.
21305 * config/h8300/h8300-protos.h (compute_logical_op_length): Update
21307 (output_logical_op): Likewise.
21309 2021-06-23 Uroš Bizjak <ubizjak@gmail.com>
21312 * config/i386/i386-expand.c (expand_vec_perm_pshufb):
21313 Handle 64bit modes for TARGET_XOP. Use indirect gen_* functions.
21314 * config/i386/mmx.md (mmx_ppermv64): New insn pattern.
21315 * config/i386/i386.md (unspec): Move UNSPEC_XOP_PERMUTE from ...
21316 * config/i386/sse.md (unspec): ... here.
21318 2021-06-23 Martin Liska <mliska@suse.cz>
21321 * optc-save-gen.awk: Put back arm_fp16_format to
21324 2021-06-23 Uroš Bizjak <ubizjak@gmail.com>
21327 * config/i386/i386.md (bsr_rex64): Add zero-flag setting RTX.
21330 (clz<mode>2): Update RTX pattern for additions.
21332 2021-06-23 Jakub Jelinek <jakub@redhat.com>
21334 PR middle-end/101167
21335 * omp-low.c (lower_omp_regimplify_p): Regimplify also PARM_DECLs
21336 and RESULT_DECLs that have DECL_HAS_VALUE_EXPR_P set.
21338 2021-06-22 Sergei Trofimovich <siarheit@google.com>
21340 * doc/rtl.texi: drop unbalanced parenthesis.
21342 2021-06-22 Richard Biener <rguenther@suse.de>
21344 PR middle-end/101156
21345 * gimplify.c (gimplify_expr): Remove premature incorrect
21348 2021-06-22 Jakub Jelinek <jakub@redhat.com>
21350 PR tree-optimization/101159
21351 * tree-vect-patterns.c (vect_recog_popcount_pattern): Fix some
21354 2021-06-22 Jakub Jelinek <jakub@redhat.com>
21356 PR middle-end/101160
21357 * function.c (assign_parms): For decl_result with TYPE_EMPTY_P type
21358 clear crtl->return_rtx instead of keeping it referencing a pseudo.
21360 2021-06-22 Jakub Jelinek <jakub@redhat.com>
21361 Andrew Pinski <apinski@marvell.com>
21363 PR tree-optimization/101162
21364 * fold-const.c (range_check_type): Handle OFFSET_TYPE like pointer
21367 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
21369 * range-op.cc (range_relational_tests): New.
21370 (range_op_tests): Call range_relational_tests.
21372 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
21374 * range-op.cc (operator_cast::lhs_op1_relation): New.
21375 (operator_identity::lhs_op1_relation): Mew.
21377 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
21379 * range-op.cc (operator_minus::op1_op2_relation_effect): New.
21381 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
21383 * range-op.cc (operator_plus::lhs_op1_relation): New.
21384 (operator_plus::lhs_op2_relation): New.
21386 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
21388 * gimple-range-cache.cc (ranger_cache::ranger_cache): Create a
21389 relation_oracle if dominators exist.
21390 (ranger_cache::~ranger_cache): Dispose of oracle.
21391 (ranger_cache::dump_bb): Dump oracle.
21392 * gimple-range.cc (fur_source::fur_source): New.
21393 (fur_source::get_operand): Use mmeber query.
21394 (fur_source::get_phi_operand): Use member_query.
21395 (fur_source::query_relation): New.
21396 (fur_source::register_dependency): Delete.
21397 (fur_source::register_relation): New.
21398 (fur_edge::fur_edge): Adjust.
21399 (fur_edge::get_phi_operand): Fix comment.
21400 (fur_edge::query): Delete.
21401 (fur_stmt::fur_stmt): Adjust.
21402 (fur_stmt::query): Delete.
21403 (fur_depend::fur_depend): Adjust.
21404 (fur_depend::register_relation): New.
21405 (fur_depend::register_relation): New.
21406 (fur_list::fur_list): Adjust.
21407 (fur_list::get_operand): Use member query.
21408 (fold_using_range::range_of_range_op): Process and query relations.
21409 (fold_using_range::range_of_address): Adjust dependency call.
21410 (fold_using_range::range_of_phi): Ditto.
21411 (gimple_ranger::gimple_ranger): New. Use ranger_ache oracle.
21412 (fold_using_range::relation_fold_and_or): New.
21413 (fold_using_range::postfold_gcond_edges): New.
21414 * gimple-range.h (class gimple_ranger): Adjust.
21415 (class fur_source): Adjust members.
21416 (class fur_stmt): Ditto.
21417 (class fold_using_range): Ditto.
21419 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
21421 * range-op.cc (range_operator::wi_fold): Apply relation effect.
21422 (range_operator::fold_range): Adjust and apply relation effect.
21423 (*::fold_range): Add relation parameters.
21424 (*::op1_range): Ditto.
21425 (*::op2_range): Ditto.
21426 (range_operator::lhs_op1_relation): New.
21427 (range_operator::lhs_op2_relation): New.
21428 (range_operator::op1_op2_relation): New.
21429 (range_operator::op1_op2_relation_effect): New.
21430 (relop_early_resolve): New.
21431 (operator_equal::op1_op2_relation): New.
21432 (operator_equal::fold_range): Call relop_early_resolve.
21433 (operator_not_equal::op1_op2_relation): New.
21434 (operator_not_equal::fold_range): Call relop_early_resolve.
21435 (operator_lt::op1_op2_relation): New.
21436 (operator_lt::fold_range): Call relop_early_resolve.
21437 (operator_le::op1_op2_relation): New.
21438 (operator_le::fold_range): Call relop_early_resolve.
21439 (operator_gt::op1_op2_relation): New.
21440 (operator_gt::fold_range): Call relop_early_resolve.
21441 (operator_ge::op1_op2_relation): New.
21442 (operator_ge::fold_range): Call relop_early_resolve.
21443 * range-op.h (class range_operator): Adjust parameters and methods.
21445 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
21447 * Makefile.in (OBJS): Add value-relation.o.
21448 * gimple-range.h: Adjust include files.
21449 * tree-data-ref.c: Adjust include file order.
21450 * value-query.cc (range_query::get_value_range): Default to no oracle.
21451 (range_query::query_relation): New.
21452 (range_query::query_relation): New.
21453 * value-query.h (class range_query): Adjust.
21454 * value-relation.cc: New.
21455 * value-relation.h: New.
21457 2021-06-22 Richard Biener <rguenther@suse.de>
21459 PR tree-optimization/101151
21460 * tree-ssa-sink.c (statement_sink_location): Expand irreducible
21463 2021-06-22 Jojo R <rjiejie@linux.alibaba.com>
21465 * config/riscv/riscv.c (thead_c906_tune_info): New.
21466 (riscv_tune_info_table): Use new tune.
21468 2021-06-22 Richard Biener <rguenther@suse.de>
21470 PR tree-optimization/101158
21471 * tree-vect-slp.c (vect_build_slp_tree_1): Move same operand
21472 checking after checking for matching operation.
21474 2021-06-22 Richard Biener <rguenther@suse.de>
21476 PR tree-optimization/101159
21477 * tree-vect-patterns.c (vect_recog_popcount_pattern): Add
21478 missing NULL vectype check.
21480 2021-06-22 Richard Biener <rguenther@suse.de>
21482 PR tree-optimization/101154
21483 * tree-vect-slp.c (vect_build_slp_tree_2): Fix out-of-bound access.
21485 2021-06-22 Jakub Jelinek <jakub@redhat.com>
21488 * config/i386/i386-protos.h (ix86_last_zero_store_uid): Declare.
21489 * config/i386/i386-expand.c (ix86_last_zero_store_uid): New variable.
21490 * config/i386/i386.c (ix86_expand_prologue): Clear it.
21491 * config/i386/i386.md (peephole2s for 1/2/4 stores of const0_rtx):
21492 Remove "" from match_operand. Emit new insns using emit_move_insn and
21493 set ix86_last_zero_store_uid to INSN_UID of the last store.
21494 Add peephole2s for 1/2/4 stores of const0_rtx following previous
21497 2021-06-22 Martin Liska <mliska@suse.cz>
21499 * auto-profile.c (AUTO_PROFILE_VERSION): Bump as string format
21502 2021-06-22 Martin Liska <mliska@suse.cz>
21504 * gcov-io.h: Remove padding entries.
21506 2021-06-22 liuhongt <hongtao.liu@intel.com>
21508 PR tree-optimization/97770
21509 * tree-vect-patterns.c (vect_recog_popcount_pattern):
21511 (vect_recog_func vect_vect_recog_func_ptrs): Add new pattern.
21513 2021-06-22 liuhongt <hongtao.liu@intel.com>
21516 * config/i386/i386-builtin.def (BDESC): Adjust builtin name.
21517 * config/i386/sse.md (<avx512>_expand<mode>_mask): Rename to ..
21518 (expand<mode>_mask): this ..
21519 (*expand<mode>_mask): New pre_reload splitter to transform
21520 v{,p}expand* to vmov* when mask is zero, all ones, or has all
21521 ones in it's lower part, otherwise still generate
21524 2021-06-22 liuhongt <hongtao.liu@intel.com>
21527 * config/i386/i386-expand.c
21528 (ix86_expand_special_args_builtin): Keep constm1_operand only
21529 if it satisfies insn's operand predicate.
21531 2021-06-21 Jason Merrill <jason@redhat.com>
21534 * df-scan.c (df_ref_record): Check that regno < endregno.
21535 * function.c (assign_parms, expand_function_end): Do nothing with a
21536 TYPE_EMPTY_P result.
21538 2021-06-21 Richard Biener <rguenther@suse.de>
21540 PR tree-optimization/101120
21541 * tree-vect-data-refs.c (bump_vector_ptr): Fold the
21543 * tree-vect-slp.c (vect_transform_slp_perm_load): Add
21544 DR chain DCE capability.
21545 * tree-vectorizer.h (vect_transform_slp_perm_load): Adjust.
21546 * tree-vect-stmts.c (vectorizable_load): Remove unused
21547 loads in the DR chain for SLP.
21549 2021-06-21 Jakub Jelinek <jakub@redhat.com>
21551 PR inline-asm/100785
21552 * gimplify.c (gimplify_asm_expr): Don't diagnose errors if
21553 output or input operands were already error_mark_node.
21554 * cfgexpand.c (expand_asm_stmt): If errors are emitted,
21555 remove all inputs, outputs and clobbers from the asm and
21556 set template to "".
21558 2021-06-21 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
21560 * config/arm/arm_neon.h (vceq_s8): Replace builtin with __a == __b.
21561 (vceq_s16): Likewise.
21562 (vceq_s32): Likewise.
21563 (vceq_u8): Likewise.
21564 (vceq_u16): Likewise.
21565 (vceq_u32): Likewise.
21566 (vceq_p8): Likewise.
21567 (vceqq_s8): Likewise.
21568 (vceqq_s16): Likewise.
21569 (vceqq_s32): Likewise.
21570 (vceqq_u8): Likewise.
21571 (vceqq_u16): Likewise.
21572 (vceqq_u32): Likewise.
21573 (vceqq_p8): Likewise.
21574 (vceq_f32): Gate __a == __b on __FAST_MATH__.
21575 (vceqq_f32): Likewise.
21576 (vceq_f16): Likewise.
21577 (vceqq_f16): Likewise.
21579 2021-06-21 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
21582 * config/arm/iterators.md (NEON_VACMP): Remove.
21583 * config/arm/neon.md (neon_vca<cmp_op><mode>): Use GLTE instead of GTGE
21585 (neon_vca<cmp_op><mode>_insn): Likewise.
21586 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Use NEON_VAGLTE instead of
21589 2021-06-21 Richard Biener <rguenther@suse.de>
21591 PR tree-optimization/101121
21592 * tree-vect-slp.c (vect_build_slp_tree_2): To not fail fatally
21593 when we just lack a stmt with the desired op when doing permutation.
21594 (vect_build_slp_tree): When caching a failed SLP build attempt
21595 assert that at least one lane is marked as not matching.
21597 2021-06-21 liuhongt <hongtao.liu@intel.com>
21600 * config/i386/i386.md: (*anddi_1): Disparage slightly the mask
21601 register alternative.
21602 (*and<mode>_1): Ditto.
21604 (*andn<mode>_1): Ditto.
21605 (*<code><mode>_1): Ditto.
21606 (*<code>qi_1): Ditto.
21607 (*one_cmpl<mode>2_1): Ditto.
21608 (*one_cmplsi2_1_zext): Ditto.
21609 (*one_cmplqi2_1): Ditto.
21610 * config/i386/i386.c (x86_order_regs_for_local_alloc): Change
21611 the order of mask registers to be before general registers.
21613 2021-06-21 Roger Sayle <roger@nextmovesoftware.com>
21616 * config/i386/i386.md: New define_peephole2s to shrink writing
21617 1, 2 or 4 consecutive zeros to memory when optimizing for size.
21619 2021-06-18 Jeff Law <jeffreyalaw@gmail.com>
21621 * config/h8300/h8300.c (h8300_select_cc_mode): Handle SYMBOL_REF.
21622 * config/h8300/logical.md (<code><mode>3 logcial expander): Generate
21623 more efficient code when the source can be trivially simplified.
21625 2021-06-18 Andrew MacLeod <amacleod@redhat.com>
21627 * gimple-range-cache.cc (ranger_cache::range_of_def): Calculate
21628 a range if global is not available.
21629 (ranger_cache::entry_range): Fallback to range_of_def.
21630 * gimple-range-cache.h (range_of_def): Adjust prototype.
21632 2021-06-18 Andrew MacLeod <amacleod@redhat.com>
21634 PR tree-optimization/101014
21635 * gimple-range-cache.cc (ranger_cache::ranger_cache): Remove poor
21637 (ranger_cache::~ranger_cache): Ditto.
21638 (ranger_cache::enable_new_values): Delete.
21639 (ranger_cache::push_poor_value): Delete.
21640 (ranger_cache::range_of_def): Remove poor value processing.
21641 (ranger_cache::entry_range): Ditto.
21642 (ranger_cache::fill_block_cache): Ditto.
21643 * gimple-range-cache.h (class ranger_cache): Remove poor value members.
21644 * gimple-range.cc (gimple_ranger::range_of_expr): Remove call.
21645 * gimple-range.h (class gimple_ranger): Adjust.
21647 2021-06-18 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
21650 * common/config/arm/arm-common.c (arm_canon_arch_option_1): New function
21651 derived from arm_canon_arch.
21652 (arm_canon_arch_option): Call it.
21653 (arm_canon_arch_multilib_option): New function.
21654 * config/arm/arm-cpus.in (IGNORE_FOR_MULTILIB): New fgroup.
21655 * config/arm/arm.h (arm_canon_arch_multilib_option): New prototype.
21656 (CANON_ARCH_MULTILIB_SPEC_FUNCTION): New macro.
21657 (MULTILIB_ARCH_CANONICAL_SPECS): New macro.
21658 (DRIVER_SELF_SPECS): Add MULTILIB_ARCH_CANONICAL_SPECS.
21659 * config/arm/arm.opt (mlibarch): New option.
21660 * config/arm/t-rmprofile (MULTILIB_MATCHES): For armv8*-m, replace use
21661 of march on RHS with mlibarch.
21663 2021-06-18 Marcel Vollweiler <marcel@codesourcery.com>
21665 * config.in: Regenerate.
21666 * config/gcn/gcn.c (print_operand_address): Fix for global_load assembler
21668 * configure: Regenerate.
21669 * configure.ac: Fix for global_load assembler functions.
21671 2021-06-18 Richard Biener <rguenther@suse.de>
21673 PR tree-optimization/101112
21674 * tree-vect-slp.c (vect_slp_linearize_chain): Fix condition
21675 to lookup a pattern stmt def.
21677 2021-06-18 Jakub Jelinek <jakub@redhat.com>
21679 PR middle-end/101062
21680 * stor-layout.c (finish_bitfield_layout): Don't add bitfield
21681 representatives in QUAL_UNION_TYPE.
21683 2021-06-18 Andrew Pinski <apinski@marvell.com>
21685 * tree-ssa-phiopt.c (replace_phi_edge_with_variable):
21686 Add counting of how many times it is done.
21687 (factor_out_conditional_conversion): Likewise.
21688 (match_simplify_replacement): Likewise.
21689 (value_replacement): Likewise.
21690 (spaceship_replacement): Likewise.
21691 (cond_store_replacement): Likewise.
21692 (cond_if_else_store_replacement_1): Likewise.
21693 (hoist_adjacent_loads): Likewise.
21695 2021-06-18 Andrew Pinski <apinski@marvell.com>
21697 * tree-cfg.c (verify_gimple_assign_unary): Reject point and offset
21698 types on NEGATE_EXPR, ABS_EXPR, BIT_NOT_EXPR, PAREN_EXPR and CNONJ_EXPR.
21699 (verify_gimple_assign_binary): Reject point and offset types on
21700 MULT_EXPR, MULT_HIGHPART_EXPR, TRUNC_DIV_EXPR, CEIL_DIV_EXPR,
21701 FLOOR_DIV_EXPR, ROUND_DIV_EXPR, TRUNC_MOD_EXPR, CEIL_MOD_EXPR,
21702 FLOOR_MOD_EXPR, ROUND_MOD_EXPR, RDIV_EXPR, and EXACT_DIV_EXPR.
21704 2021-06-18 Michael Meissner <meissner@linux.ibm.com>
21706 * config/rs6000/rs6000.c (rs6000_emit_minmax): Add support for ISA
21707 3.1 IEEE 128-bit floating point xsmaxcqp/xsmincqp instructions.
21708 * config/rs6000/rs6000.md (s<minmax><mode>3, IEEE128 iterator):
21711 2021-06-17 Aaron Sawdey <acsawdey@linux.ibm.com>
21713 * config/rs6000/genfusion.pl (gen_logical_addsubf): Add
21714 earlyclobber to alts 0/1.
21715 (gen_addadd): Add earlyclobber to alts 0/1.
21716 * config/rs6000/fusion.md: Regenerate file.
21718 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
21720 * cfgloopanal.c (get_loop_hot_path): Make path an auto_vec.
21722 2021-06-17 Andrew MacLeod <amacleod@redhat.com>
21724 * gimple-range-cache.cc: Comment cleanups.
21725 * gimple-range-gori.cc: Comment cleanups.
21726 * gimple-range.cc: Comment/spacing cleanups
21727 * value-range.h: Comment cleanups.
21729 2021-06-17 H.J. Lu <hjl.tools@gmail.com>
21732 * calls.c (expand_call): Replace PUSH_ARGS with
21733 targetm.calls.push_argument (0).
21734 (emit_library_call_value_1): Likewise.
21735 * defaults.h (PUSH_ARGS): Removed.
21736 (PUSH_ARGS_REVERSED): Replace PUSH_ARGS with
21737 targetm.calls.push_argument (0).
21738 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
21739 (emit_push_insn): Pass the number bytes to push to
21740 targetm.calls.push_argument and pass 0 if ARGS_ADDR is 0.
21741 * hooks.c (hook_bool_uint_true): New.
21742 * hooks.h (hook_bool_uint_true): Likewise.
21743 * rtlanal.c (nonzero_bits1): Replace PUSH_ARGS with
21744 targetm.calls.push_argument (0).
21745 * target.def (push_argument): Add a targetm.calls hook.
21746 * targhooks.c (default_push_argument): New.
21747 * targhooks.h (default_push_argument): Likewise.
21748 * config/bpf/bpf.h (PUSH_ARGS): Removed.
21749 * config/cr16/cr16.c (TARGET_PUSH_ARGUMENT): New.
21750 * config/cr16/cr16.h (PUSH_ARGS): Removed.
21751 * config/i386/i386.c (ix86_push_argument): New.
21752 (TARGET_PUSH_ARGUMENT): Likewise.
21753 * config/i386/i386.h (PUSH_ARGS): Removed.
21754 * config/m32c/m32c.c (TARGET_PUSH_ARGUMENT): New.
21755 * config/m32c/m32c.h (PUSH_ARGS): Removed.
21756 * config/nios2/nios2.h (PUSH_ARGS): Likewise.
21757 * config/pru/pru.h (PUSH_ARGS): Likewise.
21758 * doc/tm.texi.in: Remove PUSH_ARGS documentation. Add
21759 TARGET_PUSH_ARGUMENT hook.
21760 * doc/tm.texi: Regenerated.
21762 2021-06-17 Uroš Bizjak <ubizjak@gmail.com>
21765 * config/i386/i386-expand.c (expand_vector_set_var):
21766 Handle V2FS mode remapping. Pass TARGET_MMX_WITH_SSE to
21767 ix86_expand_vector_init_duplicate.
21768 (ix86_expand_vector_init_duplicate): Emit insv_1 for
21769 QImode for !TARGET_PARTIAL_REG_STALL.
21770 * config/i386/predicates.md (vec_setm_mmx_operand): New predicate.
21771 * config/i386/mmx.md (vec_setv2sf): Use vec_setm_mmx_operand
21772 as operand 2 predicate. Call ix86_expand_vector_set_var
21773 for non-constant index operand.
21774 (vec_setv2si): Ditto.
21775 (vec_setv4hi): Ditto.
21776 (vec_setv8qi): ditto.
21778 2021-06-17 Aldy Hernandez <aldyh@redhat.com>
21780 PR tree-optimization/100790
21781 * gimple-range.cc (range_of_builtin_call): Cleanup clz and ctz
21784 2021-06-17 Martin Liska <mliska@suse.cz>
21786 * doc/invoke.texi: Use consistently -O1 instead of -O.
21788 2021-06-17 Martin Liska <mliska@suse.cz>
21790 * gcov-io.h: Update documentation entry about string format.
21792 2021-06-17 Marius Hillenbrand <mhillen@linux.ibm.com>
21795 * config/s390/vecintrin.h (vec_doublee): Fix to use
21796 __builtin_s390_vflls.
21797 (vec_floate): Fix to use __builtin_s390_vflrd.
21799 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
21801 * dominance.c (get_dominated_to_depth): Return auto_vec<basic_block>.
21802 * dominance.h (get_dominated_to_depth): Likewise.
21803 (get_all_dominated_blocks): Likewise.
21804 * cfgcleanup.c (delete_unreachable_blocks): Adjust.
21805 * gcse.c (hoist_code): Likewise.
21806 * tree-cfg.c (remove_edge_and_dominated_blocks): Likewise.
21807 * tree-parloops.c (oacc_entry_exit_ok): Likewise.
21808 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
21809 * tree-ssa-phiprop.c (pass_phiprop::execute): Likewise.
21811 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
21813 * dominance.c (get_dominated_by_region): Return auto_vec<basic_block>.
21814 * dominance.h (get_dominated_by_region): Likewise.
21815 * tree-cfg.c (gimple_duplicate_sese_region): Adjust.
21816 (gimple_duplicate_sese_tail): Likewise.
21817 (move_sese_region_to_fn): Likewise.
21819 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
21821 * dominance.c (get_dominated_by): Return auto_vec<basic_block>.
21822 * dominance.h (get_dominated_by): Likewise.
21823 * auto-profile.c (afdo_find_equiv_class): Adjust.
21824 * cfgloopmanip.c (duplicate_loop_to_header_edge): Likewise.
21825 * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
21826 * tree-cfg.c (test_linear_chain): Likewise.
21827 (test_diamond): Likewise.
21829 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
21831 * cfgloop.h (get_loop_hot_path): Return auto_vec<basic_block>.
21832 * cfgloopanal.c (get_loop_hot_path): Likewise.
21833 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise.
21835 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
21837 * cgraph.c (cgraph_node::collect_callers): Return
21838 auto_vec<cgraph_edge *>.
21839 * cgraph.h (cgraph_node::collect_callers): Likewise.
21840 * ipa-cp.c (create_specialized_node): Adjust.
21841 (decide_about_value): Likewise.
21842 (decide_whether_version_node): Likewise.
21843 * ipa-sra.c (process_isra_node_results): Likewise.
21845 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
21847 * vec.h (vl_ptr>::using_auto_storage): Handle null m_vec.
21848 (auto_vec<T, 0>::auto_vec): Define move constructor, and delete copy
21850 (auto_vec<T, 0>::operator=): Define move assignment and delete copy
21853 2021-06-17 Aldy Hernandez <aldyh@redhat.com>
21855 * gimple-range.cc (debug_seed_ranger): New.
21856 (dump_ranger): New.
21857 (debug_ranger): New.
21859 2021-06-17 Richard Biener <rguenther@suse.de>
21861 PR tree-optimization/54400
21862 * tree-vectorizer.h (enum slp_instance_kind): Add
21863 slp_inst_kind_bb_reduc.
21864 (reduction_fn_for_scalar_code): Declare.
21865 * tree-vect-data-refs.c (vect_slp_analyze_instance_dependence):
21866 Check SLP_INSTANCE_KIND instead of looking at the
21868 (vect_slp_analyze_instance_alignment): Likewise.
21869 * tree-vect-loop.c (reduction_fn_for_scalar_code): Export.
21870 * tree-vect-slp.c (vect_slp_linearize_chain): Split out
21871 chain linearization from vect_build_slp_tree_2 and generalize
21872 for the use of BB reduction vectorization.
21873 (vect_build_slp_tree_2): Adjust accordingly.
21874 (vect_optimize_slp): Elide permutes at the root of BB reduction
21876 (vectorizable_bb_reduc_epilogue): New function.
21877 (vect_slp_prune_covered_roots): Likewise.
21878 (vect_slp_analyze_operations): Use them.
21879 (vect_slp_check_for_constructors): Recognize associatable
21880 chains for BB reduction vectorization.
21881 (vectorize_slp_instance_root_stmt): Generate code for the
21882 BB reduction epilogue.
21884 2021-06-17 Andrew MacLeod <amacleod@redhat.com>
21886 * gimple-range-gori.cc (gori_compute::has_edge_range_p): Check with
21888 (gori_compute::may_recompute_p): New.
21889 (gori_compute::outgoing_edge_range_p): Perform recomputations.
21890 * gimple-range-gori.h (class gori_compute): Add prototype.
21892 2021-06-17 Andrew MacLeod <amacleod@redhat.com>
21894 * gimple-range-cache.cc (ranger_cache::range_on_edge): Always return
21895 true when a range can be calculated.
21896 * gimple-range.cc (gimple_ranger::dump_bb): Check has_edge_range_p.
21898 2021-06-16 Martin Sebor <msebor@redhat.com>
21900 * doc/invoke.texi (-Wmismatched-dealloc, -Wmismatched-new-delete):
21901 Correct documented defaults.
21903 2021-06-16 Andrew MacLeod <amacleod@redhat.com>
21905 * gimple-range-cache.cc (ranger_cache::ranger_cache): Initialize
21906 m_new_value_p directly.
21908 2021-06-16 Uroš Bizjak <ubizjak@gmail.com>
21911 * config/i386/i386-expand.c (expand_vec_perm_2perm_pblendv):
21912 Handle 64bit modes for TARGET_SSE4_1.
21913 (expand_vec_perm_pshufb2): Handle 64bit modes for TARGET_SSSE3.
21914 (expand_vec_perm_even_odd_pack): Handle V4HI mode.
21915 (expand_vec_perm_even_odd_1) <case E_V4HImode>: Expand via
21916 expand_vec_perm_pshufb2 for TARGET_SSSE3 and via
21917 expand_vec_perm_even_odd_pack for TARGET_SSE4_1.
21918 * config/i386/mmx.md (mmx_packusdw): New insn pattern.
21920 2021-06-16 Jonathan Wright <jonathan.wright@arm.com>
21922 * config/aarch64/aarch64-simd.md (aarch64_<sur><addsub>hn<mode>):
21923 Change to an expander that emits the correct instruction
21924 depending on endianness.
21925 (aarch64_<sur><addsub>hn<mode>_insn_le): Define.
21926 (aarch64_<sur><addsub>hn<mode>_insn_be): Define.
21928 2021-06-16 Jonathan Wright <jonathan.wright@arm.com>
21930 * config/aarch64/aarch64-simd-builtins.def: Split generator
21931 for aarch64_<su>qmovn builtins into scalar and vector
21933 * config/aarch64/aarch64-simd.md (aarch64_<su>qmovn<mode>_insn_le):
21935 (aarch64_<su>qmovn<mode>_insn_be): Define.
21936 (aarch64_<su>qmovn<mode>): Split into scalar and vector
21937 variants. Change vector variant to an expander that emits the
21938 correct instruction depending on endianness.
21940 2021-06-16 Jonathan Wright <jonathan.wright@arm.com>
21942 * config/aarch64/aarch64-simd-builtins.def: Split generator
21943 for aarch64_sqmovun builtins into scalar and vector variants.
21944 * config/aarch64/aarch64-simd.md (aarch64_sqmovun<mode>):
21945 Split into scalar and vector variants. Change vector variant
21946 to an expander that emits the correct instruction depending
21948 (aarch64_sqmovun<mode>_insn_le): Define.
21949 (aarch64_sqmovun<mode>_insn_be): Define.
21951 2021-06-16 Jonathan Wright <jonathan.wright@arm.com>
21953 * config/aarch64/aarch64-simd.md (aarch64_xtn<mode>_insn_le):
21954 Define - modeling zero-high-half semantics.
21955 (aarch64_xtn<mode>): Change to an expander that emits the
21956 appropriate instruction depending on endianness.
21957 (aarch64_xtn<mode>_insn_be): Define - modeling zero-high-half
21959 (aarch64_xtn2<mode>_le): Rename to...
21960 (aarch64_xtn2<mode>_insn_le): This.
21961 (aarch64_xtn2<mode>_be): Rename to...
21962 (aarch64_xtn2<mode>_insn_be): This.
21963 (vec_pack_trunc_<mode>): Emit truncation instruction instead
21965 * config/aarch64/iterators.md (Vnarrowd): Add Vnarrowd mode
21966 attribute iterator.
21968 2021-06-16 Martin Jambor <mjambor@suse.cz>
21970 PR tree-optimization/100453
21971 * tree-sra.c (create_access): Disqualify any const candidates
21972 which are written to.
21973 (sra_modify_expr): Do not store sub-replacements back to a const base.
21974 (handle_unscalarized_data_in_subtree): Likewise.
21975 (sra_modify_assign): Likewise. Earlier, use TREE_READONLy test
21976 instead of constant_decl_p.
21978 2021-06-16 Jakub Jelinek <jakub@redhat.com>
21980 PR middle-end/101062
21981 * stor-layout.c (finish_bitfield_representative): For fields in unions
21982 assume nextf is always NULL.
21983 (finish_bitfield_layout): Compute bit field representatives also in
21984 unions, but handle it as if each bitfield was the only field in the
21987 2021-06-16 Richard Biener <rguenther@suse.de>
21989 PR tree-optimization/101088
21990 * tree-ssa-loop-im.c (sm_seq_valid_bb): Only look for
21991 supported refs on edges. Do not assert same ref but
21992 different kind stores are unsuported but mark them so.
21993 (hoist_memory_references): Only look for supported refs
21996 2021-06-16 Roger Sayle <roger@nextmovesoftware.com>
21998 PR rtl-optimization/46235
21999 * config/i386/i386.md: New define_split for bt followed by cmov.
22000 (*bt<mode>_setcqi): New define_insn_and_split for bt followed by setc.
22001 (*bt<mode>_setncqi): New define_insn_and_split for bt then setnc.
22002 (*bt<mode>_setnc<mode>): New define_insn_and_split for bt followed
22003 by setnc with zero extension.
22005 2021-06-16 Richard Biener <rguenther@suse.de>
22007 PR tree-optimization/101083
22008 * tree-vect-slp.c (vect_slp_build_two_operator_nodes): Get
22009 vectype as argument.
22010 (vect_build_slp_tree_2): Adjust.
22012 2021-06-15 Martin Sebor <msebor@redhat.com>
22014 PR middle-end/100876
22015 * builtins.c: (gimple_call_return_array): Account for size_t
22016 mangling as either unsigned int or unsigned long
22018 2021-06-15 Jeff Law <jeffreyalaw@gmail.com>
22020 * compare-elim.c (try_eliminate_compare): Run DCE to clean things
22021 up before eliminating comparisons.
22023 2021-06-15 Aldy Hernandez <aldyh@redhat.com>
22025 * range-op.cc (operator_bitwise_or::wi_fold): Make sure
22026 nonzero|X is nonzero.
22027 (range_op_bitwise_and_tests): Add tests for above.
22029 2021-06-15 Carl Love <cel@us.ibm.com>
22032 * config/rs6000/rs6000-builtin.def (VCMPEQUT): Fix the ICODE for the
22034 (VRLQ, VSLQ, VSRQ, VSRAQ): Remove unused BU_P10_OVERLOAD_2
22037 2021-06-15 Tobias Burnus <tobias@codesourcery.com>
22040 * gimplify.c (enum gimplify_defaultmap_kind): Add GDMK_SCALAR_TARGET.
22041 (struct gimplify_omp_ctx): Extend defaultmap array by one.
22042 (new_omp_context): Init defaultmap[GDMK_SCALAR_TARGET].
22043 (omp_notice_variable): Update type classification for Fortran.
22044 (gimplify_scan_omp_clauses): Update calls for new argument; handle
22045 GDMK_SCALAR_TARGET; for Fortran, GDMK_POINTER avoid GOVD_MAP_0LEN_ARRAY.
22046 * langhooks-def.h (lhd_omp_scalar_p): Add 'ptr_ok' argument.
22047 * langhooks.c (lhd_omp_scalar_p): Likewise.
22048 (LANG_HOOKS_OMP_ALLOCATABLE_P, LANG_HOOKS_OMP_SCALAR_TARGET_P): New.
22049 (LANG_HOOKS_DECLS): Add them.
22050 * langhooks.h (struct lang_hooks_for_decls): Add new hooks, update
22051 omp_scalar_p pointer type to include the new bool argument.
22053 2021-06-15 David Malcolm <dmalcolm@redhat.com>
22055 * doc/analyzer.texi
22056 (Special Functions for Debugging the Analyzer): Add
22057 __analyzer_dump_capacity.
22059 2021-06-15 Jakub Jelinek <jakub@redhat.com>
22062 * expr.c (expand_expr_real_2) <case VEC_PACK_FIX_TRUNC_EXPR,
22063 case VEC_PACK_TRUNC_EXPR>: Clear subtarget when changing mode.
22065 2021-06-15 Richard Biener <rguenther@suse.de>
22067 * cfgloopanal.c (mark_irreducible_loops): Use a dominance
22068 check to identify loop latches.
22069 * cfgloop.c (verify_loop_structure): Likewise.
22070 * loop-init.c (apply_loop_flags): Allow marked irreducible
22071 regions even with multiple latches.
22072 * predict.c (rebuild_frequencies): Simplify.
22074 2021-06-15 Richard Biener <rguenther@suse.de>
22076 * tree-ssa-threadupdate.c
22077 (jump_thread_path_registry::mark_threaded_blocks): Assert we
22078 have marked irreducible regions.
22080 2021-06-14 Martin Sebor <msebor@redhat.com>
22083 * builtins.c (gimple_call_return_array): Check for attribute fn spec.
22084 Handle calls to placement new.
22085 (ndecl_dealloc_argno): Avoid placement delete.
22087 2021-06-14 Peter Bergner <bergner@linux.ibm.com>
22090 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_mma_builtin): Use
22091 create_tmp_reg_or_ssa_name().
22093 2021-06-14 Andrew MacLeod <amacleod@redhat.com>
22095 * gimple-range-cache.cc (ranger_cache::ranger_cache): Adjust.
22096 (ranger_cache::enable_new_values): Set to specified value and
22097 return the old value.
22098 (ranger_cache::disable_new_values): Delete.
22099 (ranger_cache::fill_block_cache): Disable non 1st order derived
22101 * gimple-range-cache.h (ranger_cache): Adjust prototypes.
22102 * gimple-range.cc (gimple_ranger::range_of_expr): Adjust.
22104 2021-06-14 Uroš Bizjak <ubizjak@gmail.com>
22107 * config/i386/i386-expand.c (ix86_vectorize_vec_perm_const):
22108 Return true early when testing with V2HImode.
22109 * config/i386/mmx.md (*punpckwd): Split to sse2_pshuflw_1.
22111 2021-06-14 Christophe Lyon <christophe.lyon@linaro.org>
22113 * config/arm/mve.md (mve_vec_unpack<US>_lo_<mode>): New pattern.
22114 (mve_vec_unpack<US>_hi_<mode>): New pattern.
22115 (@mve_vec_pack_trunc_lo_<mode>): New pattern.
22116 (mve_vmovntq_<supf><mode>): Prefix with '@'.
22117 * config/arm/neon.md (vec_unpack<US>_hi_<mode>): Move to
22119 (vec_unpack<US>_lo_<mode>): Likewise.
22120 (vec_pack_trunc_<mode>): Rename to
22121 neon_quad_vec_pack_trunc_<mode>.
22122 * config/arm/vec-common.md (vec_unpack<US>_hi_<mode>): New
22124 (vec_unpack<US>_lo_<mode>): New.
22125 (vec_pack_trunc_<mode>): New.
22127 2021-06-14 Richard Biener <rguenther@suse.de>
22129 PR tree-optimization/100934
22130 * tree-ssa-dom.c (pass_dominator::execute): Properly
22131 mark irreducible regions.
22133 2021-06-14 Martin Liska <mliska@suse.cz>
22135 * doc/invoke.texi: Put r{...} on the same line as @item.
22137 2021-06-14 Martin Liska <mliska@suse.cz>
22139 * doc/invoke.texi: Add missing newline.
22141 2021-06-14 Martin Liska <mliska@suse.cz>
22143 * doc/invoke.texi: Remove '+' charasters.
22145 2021-06-14 Claudiu Zissulescu <claziss@synopsys.com>
22147 * config.gcc (arc): Add support for with_cpu option.
22148 * config/arc/arc.h (OPTION_DEFAULT_SPECS): Add fpu.
22150 2021-06-14 Richard Biener <rguenther@suse.de>
22152 PR tree-optimization/101031
22153 * tree-ssa-strlen.c (maybe_invalidate): Increment max_size
22154 instead of size when accounting for a possibly string
22157 2021-06-14 Martin Liska <mliska@suse.cz>
22159 * gimple-ssa-evrp.c (pointer_equiv_analyzer::~pointer_equiv_analyzer): Use delete[].
22161 2021-06-14 Aldy Hernandez <aldyh@redhat.com>
22163 * value-query.cc (gimple_range_global): Call get_range_global
22164 if called after inlining.
22166 2021-06-13 Uroš Bizjak <ubizjak@gmail.com>
22169 * config/i386/i386-expand.c (expand_vec_perm_pshufb):
22170 Emit constant permutation insn directly from here.
22172 2021-06-13 Trevor Saunders <tbsaunde@tbsaunde.org>
22174 * attribs.c (find_attribute_namespace): Iterate over vec<> with
22176 * auto-profile.c (afdo_find_equiv_class): Likewise.
22177 * gcc.c (do_specs_vec): Likewise.
22178 (do_spec_1): Likewise.
22179 (driver::set_up_specs): Likewise.
22180 * gimple-loop-jam.c (any_access_function_variant_p): Likewise.
22181 * gimple-ssa-store-merging.c (compatible_load_p): Likewise.
22182 (imm_store_chain_info::try_coalesce_bswap): Likewise.
22183 (imm_store_chain_info::coalesce_immediate_stores): Likewise.
22184 (get_location_for_stmts): Likewise.
22185 * graphite-poly.c (print_iteration_domains): Likewise.
22186 (free_poly_bb): Likewise.
22187 (remove_gbbs_in_scop): Likewise.
22188 (free_scop): Likewise.
22189 (dump_gbb_cases): Likewise.
22190 (dump_gbb_conditions): Likewise.
22191 (print_pdrs): Likewise.
22192 (print_scop): Likewise.
22193 * ifcvt.c (cond_move_process_if_block): Likewise.
22194 * lower-subreg.c (decompose_multiword_subregs): Likewise.
22195 * regcprop.c (pass_cprop_hardreg::execute): Likewise.
22196 * sanopt.c (sanitize_rewrite_addressable_params): Likewise.
22197 * sel-sched-dump.c (dump_insn_vector): Likewise.
22198 * store-motion.c (store_ops_ok): Likewise.
22199 (store_killed_in_insn): Likewise.
22200 * timevar.c (timer::named_items::print): Likewise.
22201 * tree-cfgcleanup.c (cleanup_control_flow_pre): Likewise.
22202 (cleanup_tree_cfg_noloop): Likewise.
22203 * tree-data-ref.c (dump_data_references): Likewise.
22204 (print_dir_vectors): Likewise.
22205 (print_dist_vectors): Likewise.
22206 (dump_data_dependence_relations): Likewise.
22207 (dump_dist_dir_vectors): Likewise.
22208 (dump_ddrs): Likewise.
22209 (create_runtime_alias_checks): Likewise.
22210 (free_subscripts): Likewise.
22211 (save_dist_v): Likewise.
22212 (save_dir_v): Likewise.
22213 (invariant_access_functions): Likewise.
22214 (same_access_functions): Likewise.
22215 (access_functions_are_affine_or_constant_p): Likewise.
22216 (find_data_references_in_stmt): Likewise.
22217 (graphite_find_data_references_in_stmt): Likewise.
22218 (free_dependence_relations): Likewise.
22219 (free_data_refs): Likewise.
22220 * tree-inline.c (copy_debug_stmts): Likewise.
22221 * tree-into-ssa.c (dump_currdefs): Likewise.
22222 (rewrite_update_phi_arguments): Likewise.
22223 * tree-ssa-propagate.c (clean_up_loop_closed_phi): Likewise.
22224 * tree-vect-data-refs.c (vect_analyze_possibly_independent_ddr):
22226 (vect_slp_analyze_node_dependences): Likewise.
22227 (vect_slp_analyze_instance_dependence): Likewise.
22228 (vect_record_base_alignments): Likewise.
22229 (vect_get_peeling_costs_all_drs): Likewise.
22230 (vect_peeling_supportable): Likewise.
22231 * tree-vectorizer.c (vec_info::~vec_info): Likewise.
22232 (vec_info::free_stmt_vec_infos): Likewise.
22234 2021-06-13 Jeff Law <jeffreyalaw@gmail.com>
22236 * config/h8300/logical.md (<code>qi3_1<cczn>): New pattern.
22237 (andqi3_1<cczn>): Removed.
22238 (<ors>qi3_1): Do not split for IOR/XOR a single bit.
22239 (H8/SX bit logicals): Split out from other patterns.
22240 * config/h8300/multiply.md (mulqihi3_const<cczn>): Renamed from
22241 mulqihi3_const_clobber_flags.
22242 (mulqihi3<cczn>, mulhisi3_const<cczn>, mulhisi3<cczn>): Similarly
22244 2021-06-13 H.J. Lu <hjl.tools@gmail.com>
22247 * config/i386/i386.c (ix86_expand_prologue): Set red_zone_used
22248 to true if red zone is used.
22249 (ix86_output_indirect_jmp): Replace ix86_red_zone_size with
22250 ix86_red_zone_used.
22251 * config/i386/i386.h (machine_function): Add red_zone_used.
22252 (ix86_red_zone_size): Removed.
22253 (ix86_red_zone_used): New.
22254 * config/i386/i386.md (peephole2 patterns): Replace
22255 ix86_red_zone_size with ix86_red_zone_used.
22257 2021-06-12 Jason Merrill <jason@redhat.com>
22259 * doc/extend.texi (unused variable attribute): Applies to
22260 structure fields as well.
22262 2021-06-12 Eugene Rozenfeld <erozen@microsoft.com>
22264 * auto-profile.c (read_profile): fix a typo in an error string
22266 2021-06-11 Thomas Schwinge <thomas@codesourcery.com>
22268 * tree-pretty-print.h (dump_omp_clauses): Add 'bool = true'
22270 * tree-pretty-print.c (dump_omp_clauses): Update.
22271 (dump_generic_node) <OMP_CLAUSE>: Use it.
22273 2021-06-11 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
22276 * config/arm/arm_mve.h (__arm_vld1q): Change __ARM_mve_coerce(p0,
22277 int8_t const *) to __ARM_mve_coerce1(p0, int8_t *) in the argument for
22278 the polymorphic variants matching code.
22279 (__arm_vld1q_z): Likewise.
22280 (__arm_vld2q): Likewise.
22281 (__arm_vld4q): Likewise.
22282 (__arm_vldrbq_gather_offset): Likewise.
22283 (__arm_vldrbq_gather_offset_z): Likewise.
22285 2021-06-11 Roger Sayle <roger@nextmovesoftware.com>
22287 PR tree-optimization/96392
22288 * fold-const.h (tree_expr_maybe_real_minus_zero_p): Fix prototype.
22290 2021-06-11 Roger Sayle <roger@nextmovesoftware.com>
22292 PR tree-optimization/96392
22293 * fold-const.c (fold_real_zero_addition_p): Take both arguments
22294 of the addition or subtraction, not just the zero. Use this
22295 other argument in tests for signaling NaNs and signed zeros.
22296 (tree_expr_maybe_real_minus_zero_p): New predicate.
22297 * fold-const.h (fold_real_zero_addition_p): Update prototype.
22298 (tree_expr_maybe_real_minus_zero_p): New function prototype.
22299 * match.pd: Update calls to fold_real_zero_addition_p.
22300 Replace HONOR_NANS with tree_expr_maybe_nan_p.
22301 Replace HONOR_SIGNED_ZEROS with tree_expr_maybe_real_minus_zero_p.
22302 Replace HONOR_SNANS with tree_expr_maybe_signaling_nan_p.
22303 * tree-ssa-reassoc.c (eliminate_using_constants): Update
22304 call to fold_real_zero_addition_p.
22306 2021-06-11 Richard Biener <rguenther@suse.de>
22308 PR tree-optimization/101025
22309 * tree-ssa-loop-im.c (sm_seq_valid_bb): Make sure to process
22310 all refs that require dependence checking.
22312 2021-06-11 Richard Biener <rguenther@suse.de>
22314 PR tree-optimization/101028
22315 * tree-vect-slp.c (vect_build_slp_tree_2): When SLP
22316 reassoc discovery fails fatally, mark appropriate lanes
22319 2021-06-11 Richard Biener <rguenther@suse.de>
22321 PR tree-optimization/101026
22322 * tree-vect-slp.c (vect_build_slp_tree_2): Make sure we
22323 have a representative for the associated chain nodes.
22325 2021-06-11 Jakub Jelinek <jakub@redhat.com>
22327 PR rtl-optimization/101008
22328 * simplify-rtx.c (relational_result): New function.
22329 (simplify_logical_relational_operation,
22330 simplify_relational_operation): Use it.
22332 2021-06-11 Jakub Jelinek <jakub@redhat.com>
22335 * config/i386/sse.md (*vec_concat<mode>_0_1): Require TARGET_SSE2.
22337 2021-06-11 Uroš Bizjak <ubizjak@gmail.com>
22340 * config/i386/i386-expand.c (expand_vec_perm_pshufb): Return
22341 false if the permutation can be implemented with constant
22342 permutation instruction in wider mode.
22343 (canonicalize_vector_int_perm): Move above expand_vec_perm_pshufb.
22344 Handle V8QImode and V4HImode.
22346 2021-06-11 Martin Liska <mliska@suse.cz>
22348 PR gcov-profile/100788
22349 * common.opt: Add new option.
22350 * coverage.c (coverage_begin_function): Emit warning instead on
22351 the internal compiler error.
22352 * doc/invoke.texi: Document the option.
22353 * toplev.c (process_options): Enable it by default.
22355 2021-06-11 Richard Biener <rguenther@suse.de>
22357 PR middle-end/101009
22358 * tree-data-ref.c (build_classic_dist_vector_1): Make sure
22359 to set *init_b to true when we encounter a constant equal
22361 (compute_affine_dependence): Also dump the actual DR_REF.
22363 2021-06-10 Aldy Hernandez <aldyh@redhat.com>
22365 PR tree-optimization/100984
22366 * gimple-ssa-evrp.c (ssa_equiv_stack): Use auto_vec for
22367 replacements table.
22368 (ssa_equiv_stack::~ssa_equiv_stack): Remove.
22370 2021-06-11 Kewen Lin <linkw@linux.ibm.com>
22372 * config/rs6000/rs6000.md
22373 (floatsi<SFDF:mode>2_lfiwax_<QHI:mode>_mem_zext): New
22374 define_insn_and_split.
22376 2021-06-11 Richard Biener <rguenther@suse.de>
22378 * tree-vect-slp.c (vect_build_slp_tree_2): Use stablesort
22379 to sort operands of the associative chain.
22381 2021-06-11 Richard Biener <rguenther@suse.de>
22383 * system.h (gcc_stablesort_r): Declare.
22384 * sort.cc (gcc_sort_r): Support stable sort.
22385 (gcc_stablesort_r): Define.
22386 * vec.h (vec<>::stablesort): Add.
22388 2021-06-10 Uroš Bizjak <ubizjak@gmail.com>
22391 * config/i386/i386-expand.c (ix86_split_mmx_punpck):
22392 Handle V2SF mode. Emit SHUFPS to fixup unpack-high for V2SF mode.
22393 (expand_vec_perm_blend): Handle 64bit modes for TARGET_SSE4_1.
22394 (expand_vec_perm_pshufb): Handle 64bit modes for TARGET_SSSE3.
22395 (expand_vec_perm_pblendv): Handle 64bit modes for TARGET_SSE4_1.
22396 (expand_vec_perm_interleave2): Handle 64bit modes.
22397 (expand_vec_perm_even_odd_pack): Handle V8QI mode.
22398 (expand_vec_perm_even_odd_1): Ditto.
22399 (ix86_vectorize_vec_perm_const): Ditto.
22400 * config/i386/i386.md (UNSPEC_PSHUFB): Move from ...
22401 * config/i386/sse.md: ... here.
22402 * config/i386/mmx.md (*vec_interleave_lowv2sf):
22403 New insn_and_split pattern.
22404 (*vec_interleave_highv2sf): Ditto.
22405 (mmx_pshufbv8qi3): New insn pattern.
22406 (*mmx_pblendw): Ditto.
22408 2021-06-10 Peter Bergner <bergner@linux.ibm.com>
22410 * config/rs6000/rs6000-builtin.def (build_pair): New built-in.
22411 (build_acc): Likewise.
22412 * config/rs6000/rs6000-call.c (mma_expand_builtin): Swap assemble
22413 source operands in little-endian mode.
22414 (rs6000_gimple_fold_mma_builtin): Handle VSX_BUILTIN_BUILD_PAIR.
22415 (mma_init_builtins): Likewise.
22416 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Handle endianness
22417 ordering for the MMA assemble and build source operands.
22418 * doc/extend.texi (__builtin_vsx_build_acc, __builtin_mma_build_pair):
22420 (__builtin_mma_assemble_acc, __builtin_mma_assemble_pair): Remove
22423 2021-06-10 Jeff Law <jeffreyalaw@gmail.com>
22425 * config/h8300/h8300.c (select_cc_mode): Handle MEM. Use
22427 * config/h8300/extensions.md: Replace _clobber_flags patterns
22430 2021-06-10 Robin Dapp <rdapp@linux.ibm.com>
22432 * config/s390/vector.md (vcond_mask_<mode><mode>): Change to
22433 (vcond_mask_<mode><tointvec>): this.
22435 2021-06-10 Andrew Stubbs <ams@codesourcery.com>
22436 Thomas Schwinge <thomas@codesourcery.com>
22438 * omp-builtins.def (BUILT_IN_GOACC_ENTER_EXIT_DATA): Split into...
22439 (BUILT_IN_GOACC_ENTER_DATA, BUILT_IN_GOACC_EXIT_DATA): ... these.
22440 * gimple.h (enum gf_mask): Split
22441 'GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA' into
22442 'GF_OMP_TARGET_KIND_OACC_ENTER_DATA' and
22443 'GF_OMP_TARGET_KIND_OACC_EXIT_DATA'.
22444 (is_gimple_omp_oacc): Update.
22445 * gimple-pretty-print.c (dump_gimple_omp_target): Likewise.
22446 * gimplify.c (gimplify_omp_target_update): Likewise.
22447 * omp-expand.c (expand_omp_target, build_omp_regions_1)
22448 (omp_make_gimple_edges): Likewise.
22449 * omp-low.c (check_omp_nesting_restrictions, lower_omp_target):
22452 2021-06-10 Aldy Hernandez <aldyh@redhat.com>
22454 * value-query.cc (value_query::value_on_edge): Rename name to
22456 (range_query::range_on_edge): Same.
22457 (range_query::value_of_expr): Same.
22458 (range_query::value_on_edge): Same.
22459 * value-query.h (class value_query): Same.
22460 (class range_query): Same.
22462 2021-06-10 Richard Biener <rguenther@suse.de>
22464 PR tree-optimization/101003
22465 * tree-vect-slp.c (vect_build_slp_tree_2): Appropriately
22466 use the pattern stmt defs when linearizing a chain.
22468 2021-06-10 Jakub Jelinek <jakub@redhat.com>
22471 * ifcvt.c (noce_get_alt_condition, noce_try_abs): Use
22472 prev_nonnote_nondebug_insn instead of prev_nonnote_insn.
22474 2021-06-10 Clement Chigot <clement.chigot@atos.net>
22476 * config/rs6000/aix71.h (ASM_CPU_SPEC): Add Power10 directive.
22477 * config/rs6000/aix72.h (ASM_CPU_SPEC): Likewise.
22479 2021-06-09 Andrew Pinski <apinski@marvell.com>
22481 PR tree-optimization/100925
22482 * match.pd (a ? CST1 : CST2): Limit transformations
22483 that would produce a negative to integeral types only.
22484 Change !POINTER_TYPE_P to INTEGRAL_TYPE_P also.
22486 2021-06-09 Jeff Law <jeffreyalaw@gmail.com>
22489 2021-06-09 Jeff Law <jeffreyalaw@gmail.com>
22491 * doc/tm.texi: Correctly update.
22493 2021-06-09 Jeff Law <jeffreyalaw@gmail.com>
22495 * doc/tm.texi: Correctly update.
22497 2021-06-09 H.J. Lu <hjl.tools@gmail.com>
22500 * doc/tm.texi.in (Trampolines): Add a missing blank line.
22502 2021-06-09 Paul Eggert <eggert@cs.ucla.edu>
22505 * doc/invoke.texi (Code Gen Options); Document that -fno-trampolines
22506 and -ftrampolines work only with Ada.
22507 * doc/tm.texi.in (Trampolines): Likewise.
22508 * doc/tm.texi: Regenerated.
22510 2021-06-09 Carl Love <cel@us.ibm.com>
22512 * config/rs6000/altivec.h (vec_signextll, vec_signexti, vec_signextq):
22513 Add define for new builtins.
22514 * config/rs6000/altivec.md(altivec_vreveti2): Add define_expand.
22515 * config/rs6000/rs6000-builtin.def (VSIGNEXTI, VSIGNEXTLL): Add
22516 overloaded builtin definitions.
22517 (VSIGNEXTSB2W, VSIGNEXTSH2W, VSIGNEXTSB2D, VSIGNEXTSH2D,VSIGNEXTSW2D,
22518 VSIGNEXTSD2Q): Add builtin expansions.
22519 (SIGNEXT): Add P10 overload definition.
22520 * config/rs6000/rs6000-call.c (P9V_BUILTIN_VEC_VSIGNEXTI, P9V_BUILTIN_VEC_VSIGNEXTLL,
22521 P10_BUILTIN_VEC_SIGNEXT): Add overloaded argument definitions.
22522 * config/rs6000/vsx.md (vsx_sign_extend_v2di_v1ti): Add define_insn.
22523 (vsignextend_v2di_v1ti, vsignextend_qi_<mode>, vsignextend_hi_<mode>,
22524 vsignextend_si_v2di)[VIlong]: Add define_expand.
22525 Make define_insn vsx_sign_extend_si_v2di visible.
22526 * doc/extend.texi: Add documentation for the vec_signexti,
22527 vec_signextll builtins and vec_signextq.
22529 2021-06-09 Carl Love <cel@us.ibm.com>
22531 * config/rs6000/rs6000.c (__fixkfti, __fixunskfti, __floattikf,
22532 __floatuntikf): Names changed to __fixkfti_sw, __fixunskfti_sw,
22533 __floattikf_sw, __floatuntikf_sw respectively.
22534 * config/rs6000/rs6000.md (floatti<mode>2, floatunsti<mode>2,
22535 fix_trunc<mode>ti2, fixuns_trunc<mode>ti2): Add
22536 define_insn for mode IEEE 128.
22538 2021-06-09 Carl Love <cel@us.ibm.com>
22540 * config/rs6000/altivec.md (altivec_vslq, altivec_vsrq):
22541 Rename to altivec_vslq_<mode>, altivec_vsrq_<mode>, mode VEC_TI.
22542 * config/rs6000/vector.md (VEC_TI): Was named VSX_TI in vsx.md.
22543 (vashlv1ti3): Change to vashl<mode>3, mode VEC_TI.
22544 (vlshrv1ti3): Change to vlshr<mode>3, mode VEC_TI.
22545 * config/rs6000/vsx.md (VSX_TI): Remove define_mode_iterator. Update
22546 uses of VSX_TI to VEC_TI.
22548 2021-06-09 Carl Love <cel@us.ibm.com>
22550 * config/rs6000/dfp.md (floattitd2, fixtdti2): New define_insns.
22552 2021-06-09 Carl Love <cel@us.ibm.com>
22554 * config/rs6000/altivec.h (vec_dive, vec_mod): Add define for new
22556 * config/rs6000/altivec.md (UNSPEC_VMULEUD, UNSPEC_VMULESD,
22557 UNSPEC_VMULOUD, UNSPEC_VMULOSD): New unspecs.
22558 (altivec_eqv1ti, altivec_gtv1ti, altivec_gtuv1ti, altivec_vmuleud,
22559 altivec_vmuloud, altivec_vmulesd, altivec_vmulosd, altivec_vrlq,
22560 altivec_vrlqmi, altivec_vrlqmi_inst, altivec_vrlqnm,
22561 altivec_vrlqnm_inst, altivec_vslq, altivec_vsrq, altivec_vsraq,
22562 altivec_vcmpequt_p, altivec_vcmpgtst_p, altivec_vcmpgtut_p): New
22564 (vec_widen_umult_even_v2di, vec_widen_smult_even_v2di,
22565 vec_widen_umult_odd_v2di, vec_widen_smult_odd_v2di, altivec_vrlqmi,
22566 altivec_vrlqnm): New define_expands.
22567 * config/rs6000/rs6000-builtin.def (VCMPEQUT_P, VCMPGTST_P,
22568 VCMPGTUT_P): Add macro expansions.
22569 (BU_P10V_AV_P): Add builtin predicate definition.
22570 (VCMPGTUT, VCMPGTST, VCMPEQUT, CMPNET, CMPGE_1TI,
22571 CMPGE_U1TI, CMPLE_1TI, CMPLE_U1TI, VNOR_V1TI_UNS, VNOR_V1TI, VCMPNET_P,
22572 VCMPAET_P, VMULEUD, VMULESD, VMULOUD, VMULOSD, VRLQ,
22573 VSLQ, VSRQ, VSRAQ, VRLQNM, DIV_V1TI, UDIV_V1TI, DIVES_V1TI, DIVEU_V1TI,
22574 MODS_V1TI, MODU_V1TI, VRLQMI): New macro expansions.
22575 (VRLQ, VSLQ, VSRQ, VSRAQ, DIVE, MOD): New overload expansions.
22576 * config/rs6000/rs6000-call.c (P10_BUILTIN_VCMPEQUT,
22577 P10V_BUILTIN_CMPGE_1TI, P10V_BUILTIN_CMPGE_U1TI,
22578 P10V_BUILTIN_VCMPGTUT, P10V_BUILTIN_VCMPGTST,
22579 P10V_BUILTIN_CMPLE_1TI, P10V_BUILTIN_VCMPLE_U1TI,
22580 P10V_BUILTIN_DIV_V1TI, P10V_BUILTIN_UDIV_V1TI,
22581 P10V_BUILTIN_VMULESD, P10V_BUILTIN_VMULEUD,
22582 P10V_BUILTIN_VMULOSD, P10V_BUILTIN_VMULOUD,
22583 P10V_BUILTIN_VNOR_V1TI, P10V_BUILTIN_VNOR_V1TI_UNS,
22584 P10V_BUILTIN_VRLQ, P10V_BUILTIN_VRLQMI,
22585 P10V_BUILTIN_VRLQNM, P10V_BUILTIN_VSLQ,
22586 P10V_BUILTIN_VSRQ, P10V_BUILTIN_VSRAQ,
22587 P10V_BUILTIN_VCMPGTUT_P, P10V_BUILTIN_VCMPGTST_P,
22588 P10V_BUILTIN_VCMPEQUT_P, P10V_BUILTIN_VCMPGTUT_P,
22589 P10V_BUILTIN_VCMPGTST_P, P10V_BUILTIN_CMPNET,
22590 P10V_BUILTIN_VCMPNET_P, P10V_BUILTIN_VCMPAET_P,
22591 P10V_BUILTIN_DIVES_V1TI, P10V_BUILTIN_MODS_V1TI,
22592 P10V_BUILTIN_MODU_V1TI):
22593 New overloaded definitions.
22594 (rs6000_gimple_fold_builtin) [P10V_BUILTIN_VCMPEQUT,
22595 P10V_BUILTIN_CMPNET, P10V_BUILTIN_CMPGE_1TI,
22596 P10V_BUILTIN_CMPGE_U1TI, P10V_BUILTIN_VCMPGTUT,
22597 P10V_BUILTIN_VCMPGTST, P10V_BUILTIN_CMPLE_1TI,
22598 P10V_BUILTIN_CMPLE_U1TI]: New case statements.
22599 (rs6000_init_builtins) [bool_V1TI_type_node, int_ftype_int_v1ti_v1ti]:
22601 (altivec_init_builtins): New E_V1TImode case statement.
22602 (builtin_function_type)[P10_BUILTIN_128BIT_VMULEUD,
22603 P10_BUILTIN_128BIT_VMULOUD, P10_BUILTIN_128BIT_DIVEU_V1TI,
22604 P10_BUILTIN_128BIT_MODU_V1TI, P10_BUILTIN_CMPGE_U1TI,
22605 P10_BUILTIN_VCMPGTUT, P10_BUILTIN_VCMPEQUT]: New case statements.
22606 * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute) [E_TImode,
22607 E_V1TImode]: New case statements.
22608 * config/rs6000/rs6000.h (rs6000_builtin_type_index): New enum
22609 value RS6000_BTI_bool_V1TI.
22610 * config/rs6000/vector.md (vector_gtv1ti,vector_nltv1ti,
22611 vector_gtuv1ti, vector_nltuv1ti, vector_ngtv1ti, vector_ngtuv1ti,
22612 vector_eq_v1ti_p, vector_ne_v1ti_p, vector_ae_v1ti_p,
22613 vector_gt_v1ti_p, vector_gtu_v1ti_p, vrotlv1ti3, vashlv1ti3,
22614 vlshrv1ti3, vashrv1ti3): New define_expands.
22615 * config/rs6000/vsx.md (UNSPEC_VSX_DIVSQ, UNSPEC_VSX_DIVUQ,
22616 UNSPEC_VSX_DIVESQ, UNSPEC_VSX_DIVEUQ, UNSPEC_VSX_MODSQ,
22617 UNSPEC_VSX_MODUQ): New unspecs.
22618 (mulv2di3, vsx_div_v1ti, vsx_udiv_v1ti, vsx_dives_v1ti,
22619 vsx_diveu_v1ti, vsx_mods_v1ti, vsx_modu_v1ti, xxswapd_v1ti): New
22621 (vcmpnet): New define_expand.
22622 * doc/extend.texi: Add documentation for the new builtins vec_rl,
22623 vec_rlmi, vec_rlnm, vec_sl, vec_sr, vec_sra, vec_mule, vec_mulo,
22624 vec_div, vec_dive, vec_mod, vec_cmpeq, vec_cmpne, vec_cmpgt, vec_cmplt,
22625 vec_cmpge, vec_cmple, vec_all_eq, vec_all_ne, vec_all_gt, vec_all_lt,
22626 vec_all_ge, vec_all_le, vec_any_eq, vec_any_ne, vec_any_gt, vec_any_lt,
22627 vec_any_ge, vec_any_le.
22629 2021-06-09 Carl Love <cel@us.ibm.com>
22631 * config/rs6000/altivec.md (altivec_vrl<VI_char>mi): Fix
22632 bug in argument generation.
22634 2021-06-09 Christophe Lyon <christophe.lyon@linaro.org>
22636 * config/arm/iterators.md (<supf>): Remove VCLZQ_U, VCLZQ_S.
22638 * config/arm/mve.md (mve_vclzq_<supf><mode>): Add '@' prefix,
22639 remove <supf> iterator.
22640 (mve_vclzq_u<mode>): New.
22641 * config/arm/neon.md (clz<mode>2): Rename to neon_vclz<mode>.
22642 (neon_vclz<mode): Move to ...
22643 * config/arm/unspecs.md (VCLZQ_U, VCLZQ_S): Remove.
22644 * config/arm/vec-common.md: ... here. Add support for MVE.
22646 2021-06-09 Christophe Lyon <christophe.lyon@linaro.org>
22648 * config/arm/mve.md (mve_vhaddq_<supf><mode>): Prefix with '@'.
22649 (@mve_vrhaddq_<supf><mode): Likewise.
22650 * config/arm/neon.md (neon_v<r>hadd<sup><mode>): Likewise.
22651 * config/arm/vec-common.md (avg<mode>3_floor, uavg<mode>3_floor)
22652 (avg<mode>3_ceil", uavg<mode>3_ceil): New patterns.
22654 2021-06-09 imba-tjd <109224573@qq.com>
22656 * doc/invoke.texi: Fix typo.
22658 2021-06-09 Roger Sayle <roger@nextmovesoftware.com>
22660 PR middle-end/53267
22661 * fold-const-call.c (fold_const_call_sss) [CASE_CFN_FMOD]:
22662 Support evaluation of fmod/fmodf/fmodl at compile-time.
22664 2021-06-09 Richard Biener <rguenther@suse.de>
22666 PR tree-optimization/100981
22667 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
22668 gimple_get_lhs to also handle calls.
22669 * tree-vect-slp-patterns.c (complex_pattern::build): Transfer
22672 2021-06-09 Richard Biener <rguenther@suse.de>
22674 PR tree-optimization/97832
22675 * tree-vectorizer.h (_slp_tree::failed): New.
22676 * tree-vect-slp.c (_slp_tree::_slp_tree): Initialize
22678 (_slp_tree::~_slp_tree): Free failed.
22679 (vect_build_slp_tree): Retain failed nodes and record
22680 matches in them, copying that back out when running
22681 into a cached fail. Dump start and end of discovery.
22682 (dt_sort_cmp): New.
22683 (vect_build_slp_tree_2): Handle associatable chains
22684 together doing more aggressive operand swapping.
22686 2021-06-09 H.J. Lu <hjl.tools@gmail.com>
22689 * config.gcc (gcc_cv_initfini_array): Set to yes for Linux and
22691 * doc/install.texi: Require glibc 2.1 and binutils 2.12 for
22692 Linux and GNU targets.
22694 2021-06-09 Richard Biener <rguenther@suse.de>
22696 * tree-vect-stmts.c (vect_is_simple_use): Always get dt
22699 2021-06-09 Claudiu Zissulescu <claziss@synopsys.com>
22701 * config/arc/arc.md (loop_end): Change it to
22702 define_insn_and_split.
22704 2021-06-09 Claudiu Zissulescu <claziss@synopsys.com>
22706 * config/arc/arc.md (maddhisi4): Use VMAC2H instruction.
22707 (machi): New pattern.
22708 (umaddhisi4): Use VMAC2HU instruction.
22709 (umachi): New pattern.
22711 2021-06-09 Claudiu Zissulescu <claziss@synopsys.com>
22713 * config/arc/arc-protos.h (arc_split_move_p): New prototype.
22714 * config/arc/arc.c (arc_split_move_p): New function.
22715 (arc_split_move): Clean up.
22716 * config/arc/arc.md (movdi_insn): Clean up, use arc_split_move_p.
22717 (movdf_insn): Likewise.
22718 * config/arc/simdext.md (mov<VWH>_insn): Likewise.
22720 2021-06-09 Uroš Bizjak <ubizjak@gmail.com>
22723 * config/i386/i386.c (print_operand_address_as): Rename "no_rip"
22724 argument to "raw". Do not emit segment overrides when "raw" is true.
22726 2021-06-09 Martin Liska <mliska@suse.cz>
22728 * doc/gcov.texi: Create a proper JSON files.
22729 * doc/invoke.texi: Remove dots in order to make it a valid
22732 2021-06-09 Xionghu Luo <luoxhu@linux.ibm.com>
22734 * config/rs6000/rs6000-p8swap.c (pattern_is_rotate64): New.
22735 (insn_is_load_p): Use pattern_is_rotate64.
22736 (insn_is_swap_p): Likewise.
22737 (quad_aligned_load_p): Likewise.
22738 (const_load_sequence_p): Likewise.
22739 (replace_swapped_aligned_load): Likewise.
22740 (recombine_lvx_pattern): Likewise.
22741 (recombine_stvx_pattern): Likewise.
22743 2021-06-09 Andrew MacLeod <amacleod@redhat.com>
22745 * gimple-range-gori.cc (gori_compute::outgoing_edge_range_p): Use a
22746 fur_stmt source record.
22747 * gimple-range.cc (fur_source::get_operand): Generic range query.
22748 (fur_source::get_phi_operand): New.
22749 (fur_source::register_dependency): New.
22750 (fur_source::query): New.
22751 (class fur_edge): New. Edge source for operands.
22752 (fur_edge::fur_edge): New.
22753 (fur_edge::get_operand): New.
22754 (fur_edge::get_phi_operand): New.
22755 (fur_edge::query): New.
22756 (fur_stmt::fur_stmt): New.
22757 (fur_stmt::get_operand): New.
22758 (fur_stmt::get_phi_operand): New.
22759 (fur_stmt::query): New.
22760 (class fur_depend): New. Statement source and process dependencies.
22761 (fur_depend::fur_depend): New.
22762 (fur_depend::register_dependency): New.
22763 (class fur_list): New. List source for operands.
22764 (fur_list::fur_list): New.
22765 (fur_list::get_operand): New.
22766 (fur_list::get_phi_operand): New.
22767 (fold_range): New. Instantiate appropriate fur_source class and fold.
22768 (fold_using_range::range_of_range_op): Use new API.
22769 (fold_using_range::range_of_address): Ditto.
22770 (fold_using_range::range_of_phi): Ditto.
22771 (imple_ranger::fold_range_internal): Use fur_depend class.
22772 (fold_using_range::range_of_ssa_name_with_loop_info): Use new API.
22773 * gimple-range.h (class fur_source): Now a base class.
22774 (class fur_stmt): New.
22775 (fold_range): New prototypes.
22776 (fur_source::fur_source): Delete.
22778 2021-06-08 Andrew Pinski <apinski@marvell.com>
22780 PR tree-optimization/25290
22781 * tree-ssa-phiopt.c (xor_replacement): Delete.
22782 (tree_ssa_phiopt_worker): Delete use of xor_replacement.
22783 (match_simplify_replacement): Allow one cheap preparation
22784 statement that can be moved to before the if.
22786 2021-06-08 Pat Haugen <pthaugen@linux.ibm.com>
22788 * config/rs6000/power10.md (power10-fused-load, power10-fused-store,
22789 power10-fused_alu, power10-fused-vec, power10-fused-branch): New.
22791 2021-06-08 Jeff Law <jeffreyalaw@gmail.com>
22793 * config/h8300/logical.md (andqi3_1): Move BCLR case into define_insn_and_split.
22794 Create length attribute on define_insn_and_split. Only split for cases which we
22796 (andqi3_1<cczn>): Renamed from andqi3_1_clobber_flags. Only handle AND here and
22797 fix length computation.
22798 (b<code><mode>msx): Combine QImode and HImode H8/SX patterns using iterator.
22800 2021-06-08 Richard Biener <rguenther@suse.de>
22802 PR tree-optimization/100923
22803 * tree-ssa-sccvn.c (valueize_refs_1): Take a pointer to
22804 the operand vector to be valueized.
22805 (valueize_refs): Likewise.
22806 (valueize_shared_reference_ops_from_ref): Adjust.
22807 (valueize_shared_reference_ops_from_call): Likewise.
22808 (vn_reference_lookup_3): Likewise.
22809 (vn_reference_lookup_pieces): Likewise. Re-valueize
22810 with honoring availability when we are about to create
22811 the ao_ref and valueized before.
22812 (vn_reference_lookup): Likewise.
22813 (vn_reference_insert_pieces): Adjust.
22815 2021-06-08 Richard Biener <rguenther@suse.de>
22817 * tree-vectorizer.h (_slp_instance::root_stmt): Change to...
22818 (_slp_instance::root_stmts): ... a vector.
22819 (SLP_INSTANCE_ROOT_STMT): Rename to ...
22820 (SLP_INSTANCE_ROOT_STMTS): ... this.
22821 (slp_root::root): Change to...
22822 (slp_root::roots): ... a vector.
22823 (slp_root::slp_root): Adjust.
22824 * tree-vect-slp.c (_slp_instance::location): Adjust.
22825 (vect_free_slp_instance): Release the root stmt vector.
22826 (vect_build_slp_instance): Adjust.
22827 (vect_analyze_slp): Likewise.
22828 (_bb_vec_info::~_bb_vec_info): Likewise.
22829 (vect_slp_analyze_operations): Likewise.
22830 (vect_bb_vectorization_profitable_p): Likewise. Adjust
22831 costs for the root stmt.
22832 (vect_slp_check_for_constructors): Gather all BIT_INSERT_EXPRs
22834 (vect_slp_analyze_bb_1): Simplify by marking all root stmts
22836 (vectorize_slp_instance_root_stmt): Adjust.
22837 (vect_schedule_slp): Likewise.
22839 2021-06-08 Aldy Hernandez <aldyh@redhat.com>
22841 * gimple-ssa-evrp.c (class ssa_equiv_stack): New.
22842 (ssa_equiv_stack::ssa_equiv_stack): New.
22843 (ssa_equiv_stack::~ssa_equiv_stack): New.
22844 (ssa_equiv_stack::enter): New.
22845 (ssa_equiv_stack::leave): New.
22846 (ssa_equiv_stack::push_replacement): New.
22847 (ssa_equiv_stack::get_replacement): New.
22848 (is_pointer_ssa): New.
22849 (class pointer_equiv_analyzer): New.
22850 (pointer_equiv_analyzer::pointer_equiv_analyzer): New.
22851 (pointer_equiv_analyzer::~pointer_equiv_analyzer): New.
22852 (pointer_equiv_analyzer::set_global_equiv): New.
22853 (pointer_equiv_analyzer::set_cond_equiv): New.
22854 (pointer_equiv_analyzer::get_equiv): New.
22855 (pointer_equiv_analyzer::enter): New.
22856 (pointer_equiv_analyzer::leave): New.
22857 (pointer_equiv_analyzer::get_equiv_expr): New.
22858 (pta_valueize): New.
22859 (pointer_equiv_analyzer::visit_stmt): New.
22860 (pointer_equiv_analyzer::visit_edge): New.
22861 (hybrid_folder::value_of_expr): Call PTA.
22862 (hybrid_folder::value_on_edge): Same.
22863 (hybrid_folder::pre_fold_bb): New.
22864 (hybrid_folder::post_fold_bb): New.
22865 (hybrid_folder::pre_fold_stmt): New.
22866 (rvrp_folder::pre_fold_bb): New.
22867 (rvrp_folder::post_fold_bb): New.
22868 (rvrp_folder::pre_fold_stmt): New.
22869 (rvrp_folder::value_of_expr): Call PTA.
22870 (rvrp_folder::value_on_edge): Same.
22872 2021-06-08 Jakub Jelinek <jakub@redhat.com>
22875 * tree-inline.c (copy_tree_body_r): For OMP_CLAUSE_DEPEND don't
22876 check TREE_CODE if OMP_CLAUSE_DECL is NULL.
22878 2021-06-08 Richard Biener <rguenther@suse.de>
22880 PR middle-end/100951
22881 * tree-vect-generic.c (expand_vector_piecewise): Build a
22882 VECTOR_CST if all elements are constant.
22883 (expand_vector_condition): Likewise.
22884 (lower_vec_perm): Likewise.
22885 (expand_vector_conversion): Likewise.
22887 2021-06-08 Martin Liska <mliska@suse.cz>
22889 * doc/invoke.texi: Document new param evrp-sparse-threshold.
22891 2021-06-08 Martin Liska <mliska@suse.cz>
22893 * genautomata.c (create_automata): Fix typo.
22895 2021-06-08 Kewen Lin <linkw@linux.ibm.com>
22897 PR tree-optimization/100794
22898 * tree-predcom.c (tree_predictive_commoning_loop): Add parameter
22899 allow_unroll_p and only allow unrolling when it's true.
22900 (tree_predictive_commoning): Add parameter allow_unroll_p and
22902 (run_tree_predictive_commoning): Likewise.
22903 (pass_predcom::gate): Check flag_tree_loop_vectorize and
22904 global_options_set.x_flag_predictive_commoning.
22905 (pass_predcom::execute): Adjust for allow_unroll_p.
22907 2021-06-08 Kewen Lin <linkw@linux.ibm.com>
22909 * tree-predcom.c (execute_pred_commoning): Remove update_ssa call.
22910 (tree_predictive_commoning_loop): Factor some cleanup stuffs into
22911 lambda function cleanup, remove scev_reset call, and adjust return
22913 (tree_predictive_commoning): Adjust for different changed values,
22914 only set flag TODO_update_ssa_only_virtuals if changed.
22915 (pass_data pass_data_predcom): Remove TODO_update_ssa_only_virtuals
22916 from todo_flags_finish.
22918 2021-06-07 Andrew MacLeod <amacleod@redhat.com>
22920 * gimple-range-cache.cc (class sbr_sparse_bitmap): New.
22921 (sbr_sparse_bitmap::sbr_sparse_bitmap): New.
22922 (sbr_sparse_bitmap::bitmap_set_quad): New.
22923 (sbr_sparse_bitmap::bitmap_get_quad): New.
22924 (sbr_sparse_bitmap::set_bb_range): New.
22925 (sbr_sparse_bitmap::get_bb_range): New.
22926 (sbr_sparse_bitmap::bb_range_p): New.
22927 (block_range_cache::block_range_cache): initialize bitmap obstack.
22928 (block_range_cache::~block_range_cache): Destruct obstack.
22929 (block_range_cache::set_bb_range): Decide when to utilze the
22930 sparse on entry cache.
22931 * gimple-range-cache.h (block_range_cache): Add bitmap obstack.
22932 * params.opt (-param=evrp-sparse-threshold): New.
22934 2021-06-07 Andrew MacLeod <amacleod@redhat.com>
22936 * bitmap.c (bitmap_set_aligned_chunk): New.
22937 (bitmap_get_aligned_chunk): New.
22938 (test_aligned_chunk): New.
22939 (bitmap_c_tests): Call test_aligned_chunk.
22940 * bitmap.h (bitmap_set_aligned_chunk, bitmap_get_aligned_chunk): New.
22942 2021-06-07 Uroš Bizjak <ubizjak@gmail.com>
22945 * config/i386/i386-expand.c (ix86_expand_vector_init_duplicate):
22947 (ix86_expand_vector_init_one_nonzero): Ditto.
22948 (ix86_expand_vector_init_one_var): Ditto.
22949 (ix86_expand_vector_init_general): Ditto.
22950 * config/i386/mmx.md (vec_initv4qiqi): New expander.
22952 2021-06-07 Jeff Law <jeffreyalaw@gmail.com>
22954 * config/h8300/movepush.md: Change most _clobber_flags
22955 patterns to instead use <cczn> subst.
22956 (movsi_cczn): New pattern with usable CC cases split out.
22957 (movsi_h8sx_cczn): Likewise.
22959 2021-06-07 Martin Liska <mliska@suse.cz>
22961 * common/common-target.def: Split long lines and replace them
22963 * target.def: Likewise.
22964 * doc/tm.texi: Re-generated.
22966 2021-06-07 Jakub Jelinek <jakub@redhat.com>
22969 * fold-const.c (fold_read_from_vector): Return NULL if trying to
22970 read from a CONSTRUCTOR with vector type elements.
22972 2021-06-07 Jakub Jelinek <jakub@redhat.com>
22974 PR middle-end/100898
22975 * tree-inline.c (copy_bb): Only use gimple_call_arg_ptr if memcpy
22976 should copy any arguments. Don't call gimple_call_num_args
22977 on id->call_stmt or call_stmt more than once.
22979 2021-06-07 liuhongt <hongtao.liu@intel.com>
22982 * config/i386/sse.md (*sse4_1_zero_extendv8qiv8hi2_3): Refine
22984 (<insn>v4siv4di2): Delete constraints for define_expand.
22986 2021-06-07 liuhongt <hongtao.liu@intel.com>
22989 * config/i386/i386-expand.c (ix86_expand_builtin): Remove
22990 assignment of cfun->machine->has_explicit_vzeroupper.
22991 * config/i386/i386-features.c
22992 (ix86_add_reg_usage_to_vzerouppers): Delete.
22993 (ix86_add_reg_usage_to_vzeroupper): Ditto.
22994 (rest_of_handle_insert_vzeroupper): Remove
22995 ix86_add_reg_usage_to_vzerouppers, add df_analyze at the end
22997 (gate): Remove cfun->machine->has_explicit_vzeroupper.
22998 * config/i386/i386-protos.h (ix86_expand_avx_vzeroupper):
23000 * config/i386/i386.c (ix86_insn_callee_abi): New function.
23001 (ix86_initialize_callee_abi): Ditto.
23002 (ix86_expand_avx_vzeroupper): Ditto.
23003 (ix86_hard_regno_call_part_clobbered): Adjust for vzeroupper
23005 (TARGET_INSN_CALLEE_ABI): Define as ix86_insn_callee_abi.
23006 (ix86_emit_mode_set): Call ix86_expand_avx_vzeroupper
23008 * config/i386/i386.h (struct GTY(()) machine_function): Delete
23009 has_explicit_vzeroupper.
23010 * config/i386/i386.md (enum unspec): New member
23012 (ABI_DEFAULT,ABI_VZEROUPPER,ABI_UNKNOWN): New
23013 define_constants for insn callee abi index.
23014 * config/i386/predicates.md (vzeroupper_pattern): Adjust.
23015 * config/i386/sse.md (UNSPECV_VZEROUPPER): Deleted.
23016 (avx_vzeroupper): Call ix86_expand_avx_vzeroupper.
23017 (*avx_vzeroupper): Rename to ..
23018 (avx_vzeroupper_callee_abi): .. this, and adjust pattern as
23019 call_insn which has a special vzeroupper ABI.
23020 (*avx_vzeroupper_1): Deleted.
23022 2021-06-07 liuhongt <hongtao.liu@intel.com>
23025 * df-scan.c (df_get_call_refs): When call_insn is a fake call,
23026 it won't use stack pointer reg.
23027 * final.c (leaf_function_p): When call_insn is a fake call, it
23028 won't affect caller as a leaf function.
23029 * reg-stack.c (callee_clobbers_any_stack_reg): New.
23030 (subst_stack_regs): When call_insn doesn't clobber any stack
23031 reg, don't clear the arguments.
23032 * rtl.c (shallow_copy_rtx): Don't clear flag used when orig is
23034 * shrink-wrap.c (requires_stack_frame_p): No need for stack
23035 frame for a fake call.
23036 * rtl.h (FAKE_CALL_P): New macro.
23038 2021-06-06 Eric Botcazou <ebotcazou@adacore.com>
23040 * config/sparc/sparc-protos.h (order_regs_for_local_alloc): Rename
23042 (sparc_order_regs_for_local_alloc): ...this.
23043 (sparc_leaf_reg_remap): Declare.
23044 * config/sparc/sparc.h (ADJUST_REG_ALLOC_ORDER): Adjust.
23045 (LEAF_REG_REMAP): Reimplement as call to sparc_leaf_reg_remap.
23046 * config/sparc/sparc.c (leaf_reg_remap): Delete.
23047 (order_regs_for_local_alloc): Rename to...
23048 (sparc_order_regs_for_local_alloc): ...this.
23049 (sparc_leaf_reg_remap): New function.
23050 (sparc_conditional_register_usage): Do not modify leaf_reg_remap.
23052 2021-06-06 David Edelsohn <dje.gcc@gmail.com>
23054 * config/rs6000/rs6000.c (rs6000_xcoff_asm_output_aligned_decl_common):
23055 Use assemble_name to output BSS section name.
23057 2021-06-06 Uroš Bizjak <ubizjak@gmail.com>
23059 * config/i386/constraints.md (Bs):
23060 Remove boolean operators from match_test RTX.
23063 (M): Use "mode" variable instead of GET_MODE (op) in match_test RTX.
23066 2021-06-06 Martin Liska <mliska@suse.cz>
23068 * doc/extend.texi: Add missing @headitem.
23069 * doc/invoke.texi: Likewise.
23070 * doc/objc.texi: Likewise.
23072 2021-06-06 Martin Liska <mliska@suse.cz>
23074 * genhooks.c (emit_findices): Remove unused function.
23075 (emit_documentation): Do not call emit_findices
23076 and do not search for @Fcode directives.
23078 2021-06-06 Martin Liska <mliska@suse.cz>
23080 * doc/invoke.texi: Remove extra character.
23082 2021-06-05 Kewen Lin <linkw@linux.ibm.com>
23084 * config/sh/sh.md (doloop_end_split): Fix empty split condition.
23086 2021-06-05 Kewen Lin <linkw@linux.ibm.com>
23088 * config/sparc/sparc.md (*snedi<W:mode>_zero_vis3,
23089 *neg_snedi<W:mode>_zero_subxc, *plus_snedi<W:mode>_zero,
23090 *plus_plus_snedi<W:mode>_zero, *minus_snedi<W:mode>_zero,
23091 *minus_minus_snedi<W:mode>_zero): Fix empty split condition.
23093 2021-06-05 Kewen Lin <linkw@linux.ibm.com>
23095 * config/or1k/or1k.md (*movdi): Fix empty split condition.
23097 2021-06-05 Kewen Lin <linkw@linux.ibm.com>
23099 * config/mips/mips.md (<anonymous>, bswapsi2, bswapdi2): Fix empty
23102 2021-06-05 Kewen Lin <linkw@linux.ibm.com>
23104 * config/m68k/m68k.md (*zero_extend_inc, *zero_extend_dec,
23105 *zero_extendsidi2): Fix empty split condition.
23107 2021-06-05 Jeff Law <jeffreyalaw@gmail.com>
23109 * config/h8300/addsub.md: Fix split condition in define_insn_and_split
23111 * config/h8300/bitfield.md: Likewise.
23112 * config/h8300/combiner.md: Likewise.
23113 * config/h8300/divmod.md: Likewise.
23114 * config/h8300/extensions.md: Likewise.
23115 * config/h8300/jumpcall.md: Likewise.
23116 * config/h8300/movepush.md: Likewise.
23117 * config/h8300/multiply.md: Likewise.
23118 * config/h8300/other.md: Likewise.
23119 * config/h8300/shiftrotate.md: Likewise.
23120 * config/h8300/logical.md: Likewise. Fix split pattern to use
23121 code iterator that somehow slipped through.
23123 2021-06-04 Tobias Burnus <tobias@codesourcery.com>
23125 PR middle-end/100905
23126 * tree-nested.c (convert_nonlocal_omp_clauses,
23127 convert_local_omp_clauses): Handle OMP_CLAUSE_BIND.
23129 2021-06-04 Martin Sebor <msebor@redhat.com>
23131 PR middle-end/100732
23132 * gimple-fold.c (gimple_fold_builtin_sprintf): Avoid folding calls
23133 with either source or destination argument of invalid type.
23134 * tree-ssa-uninit.c (maybe_warn_pass_by_reference): Avoid checking
23135 calls with arguments of invalid type.
23137 2021-06-04 Martin Sebor <msebor@redhat.com>
23139 * attribs.c (init_attr_rdwr_indices): Use VLA bounds in the expected
23141 (attr_access::vla_bounds): Also handle VLA bounds.
23143 2021-06-04 Uroš Bizjak <ubizjak@gmail.com>
23145 * config/i386/predicates.md (GOT_memory_operand):
23146 Implement using match_code RTXes.
23147 (GOT32_symbol_operand): Ditto.
23149 2021-06-04 Uroš Bizjak <ubizjak@gmail.com>
23152 * config/i386/i386-expand.c (ix86_expand_vector_init_duplicate):
23154 (ix86_expand_vector_init_general): Ditto.
23155 Use SImode instead of word_mode for logic operations
23156 when GET_MODE_SIZE (mode) < UNITS_PER_WORD.
23157 (expand_vec_perm_even_odd_1): Assert that V2HI mode should be
23158 implemented by expand_vec_perm_1.
23159 (expand_vec_perm_broadcast_1): Assert that V2HI and V4HI modes
23160 should be implemented using standard shuffle patterns.
23161 (ix86_vectorize_vec_perm_const): Handle V2HImode. Add V4HI and
23162 V2HI modes to modes, implementable with shuffle for one operand.
23163 * config/i386/mmx.md (*punpckwd): New insn_and_split pattern.
23164 (*pshufw_1): New insn pattern.
23165 (*vec_dupv2hi): Ditto.
23166 (vec_initv2hihi): New expander.
23168 2021-06-04 Kewen Lin <linkw@linux.ibm.com>
23170 * config/arm/vfp.md (no_literal_pool_df_immediate,
23171 no_literal_pool_sf_immediate): Fix empty split condition.
23173 2021-06-04 Kewen Lin <linkw@linux.ibm.com>
23175 * config/i386/i386.md (*load_tp_x32_zext, *add_tp_x32_zext,
23176 *tls_dynamic_gnu2_combine_32): Fix empty split condition.
23177 * config/i386/sse.md (*<sse2_avx2>_pmovmskb_lt,
23178 *<sse2_avx2>_pmovmskb_zext_lt, *sse2_pmovmskb_ext_lt,
23179 *<sse4_1_avx2>_pblendvb_lt): Likewise.
23181 2021-06-04 Jakub Jelinek <jakub@redhat.com>
23184 * config/i386/i386-expand.c (ix86_expand_vector_init): Handle
23185 concatenation from half-sized modes with TImode elements.
23187 2021-06-04 Claudiu Zissulescu <claziss@synopsys.com>
23189 * config/arc/arc.c (arc_override_options): Disable millicode
23190 thunks when RF16 is on.
23192 2021-06-04 Haochen Gui <guihaoc@gcc.gnu.org>
23194 * config/rs6000/rs6000.h (PROMOTE_MODE): Remove.
23196 2021-06-04 Haochen Gui <guihaoc@gcc.gnu.org>
23198 * config/rs6000/rs6000-call.c (rs6000_promote_function_mode):
23199 Replace PROMOTE_MODE marco with its content.
23201 2021-06-03 Kewen Lin <linkw@linux.ibm.com>
23203 * config/cris/cris.md (*addi_reload): Fix empty split condition.
23205 2021-06-03 Jim Wilson <jimw@sifive.com>
23207 * config.gcc (riscv*-*-*): If --with-riscv-attribute not used,
23208 turn it on for all riscv targets.
23210 2021-06-03 Uroš Bizjak <ubizjak@gmail.com>
23213 * config/i386/i386-expand.c (ix86_expand_vector_set):
23214 Handle V2HI and V4QI modes.
23215 (ix86_expand_vector_extract): Ditto.
23216 * config/i386/mmx.md (*pinsrw): New insn pattern.
23219 (*pextrw_zext): Ditto.
23221 (*pextrb_zext): Ditto.
23222 (vec_setv2hi): New expander.
23223 (vec_extractv2hihi): Ditto.
23224 (vec_setv4qi): Ditto.
23225 (vec_extractv4qiqi): Ditto.
23226 (vec_setv8qi): Enable only for TARGET_SSE4_1.
23227 (vec_extractv8qiqi): Ditto.
23229 2021-06-03 Aaron Sawdey <acsawdey@linux.ibm.com>
23231 * config/rs6000/genfusion.pl (gen_logical_addsubf): Fix input
23232 order to subf instruction.
23233 * config/rs6000/fusion.md: Regenerate.
23235 2021-06-03 Aldy Hernandez <aldyh@redhat.com>
23237 * calls.c (get_size_range): Use range_of_expr instead of
23238 determine_value_range.
23239 * tree-affine.c (expr_to_aff_combination): Same.
23240 * tree-data-ref.c (split_constant_offset): Same.
23241 * tree-vrp.c (determine_value_range_1): Remove.
23242 (determine_value_range): Remove.
23243 * tree-vrp.h (determine_value_range): Remove.
23245 2021-06-03 Aldy Hernandez <aldyh@redhat.com>
23247 * function-tests.c (test_ranges): Call gimple_range_tests.
23248 * gimple-range-cache.cc (ranger_cache::range_of_expr): Pass stmt
23250 * gimple-range.cc (fur_source::get_operand): Do not call
23251 get_tree_range or gimple_range_global.
23253 (get_tree_range): Move to value-query.cc.
23254 Call get_arith_expr_range.
23255 (gimple_ranger::range_of_expr): Add argument to get_tree_range.
23256 Include gimple-range-tests.cc.
23257 * gimple-range.h (fold_range): Add argument.
23258 (get_tree_range): Remove.
23259 * selftest.h (gimple_range_tests): New.
23260 * value-query.cc (global_range_query::range_of_expr): Add
23262 (range_query::get_tree_range): Move from gimple-range.cc.
23263 * value-query.h (class range_query): Add get_tree_range and
23264 get_arith_expr_range. Make fur_source a friend.
23265 * vr-values.c (vr_values::range_of_expr): Pass stmt to
23267 * gimple-range-tests.cc: New file.
23269 2021-06-03 Aldy Hernandez <aldyh@redhat.com>
23271 * gimple-range.cc (gimple_ranger::export_global_ranges): Call
23272 update_global_range.
23273 * value-query.cc (update_global_range): New.
23274 * value-query.h (update_global_range): New.
23276 2021-06-03 David Malcolm <dmalcolm@redhat.com>
23278 * diagnostic-show-locus.c (diagnostic_show_locus): Don't reject
23279 printing the same location twice if there are fix-it hints,
23280 multiple locations, or a label.
23282 2021-06-03 Andre Vieira <andre.simoesdiasvieira@arm.com>
23284 * tree-vect-loop.c (vect_transform_loop): Use main loop's various'
23285 thresholds to narrow the upper bound on epilogue iterations.
23287 2021-06-03 Christophe Lyon <christophe.lyon@linaro.org>
23289 * config/arm/mve.md (mve_vabsq_f<mode>): Use 'abs' instead of unspec.
23290 (mve_vabsq_s<mode>): Likewise.
23291 * config/arm/neon.md (abs<mode>2): Rename to neon_abs<mode>2.
23292 * config/arm/unspecs.md (VABSQ_F, VABSQ_S): Delete.
23293 * config/arm/vec-common.md (neg<mode>2): Rename to
23294 <absneg_str><mode>2.
23296 2021-06-03 Claudiu Zissulescu <claziss@synopsys.com>
23298 * common/config/arc/arc-common.c (arc_option_optimization_table):
23299 Remove malign-call.
23300 * config/arc/arc.c (arc_unalign_branch_p): Remove unused function.
23301 * config/arc/arc.h (TARGET_MIXED_CODE): Remove macro.
23302 (INDEX_REG_CLASS): Only refer to GENERAL_REGS.
23303 * config/arc/arc.md (abssi2_mixed): Remove pattern.
23304 * config/arc/arc.opt (munalign-prob-threshold): Mark it obsolete.
23305 (malign-call): Likewise.
23306 (mmixed-code): Likewise.
23307 * doc/invoke.texi (ARC): Update doc.
23309 2021-06-03 Martin Liska <mliska@suse.cz>
23311 * common.opt: Use proper Enum values.
23312 * opts.c (COVERAGE_SANITIZER_OPT): Remove.
23313 (parse_sanitizer_options): Handle only sanitizer_opts.
23314 (common_handle_option): Just assign value.
23316 2021-06-03 Eric Botcazou <ebotcazou@adacore.com>
23319 * tree-inline.c (inline_forbidden_p): Remove test on return type.
23321 2021-06-03 Eric Botcazou <ebotcazou@adacore.com>
23323 * dwarf2out.c (loc_list_from_tree_1) <FUNCTION_DECL>: Also generate
23324 DW_OP_GNU_variable_value referencing an existing DIE at file scope.
23325 (type_byte_size): Inline into...
23326 (add_byte_size_attribute): ...this and call add_scalar_info.
23328 2021-06-03 Eric Botcazou <ebotcazou@adacore.com>
23330 * dwarf2out.c (mem_loc_descriptor) <UDIV>: Fix typo.
23331 (typed_binop_from_tree): New function.
23332 (loc_list_from_tree_1) <EXACT_DIV_EXPR>: For an unsigned type,
23333 turn a divide by a power of 2 into a shift.
23334 <CEIL_DIV_EXPR>: For an unsigned type, use a signed divide if the
23335 size of the mode is lower than DWARF2_ADDR_SIZE; otherwise, do a
23336 typed divide by calling typed_binop_from_tree.
23338 2021-06-03 Eric Botcazou <ebotcazou@adacore.com>
23340 * dwarf2out.c (scompare_loc_descriptor): Fix head comment.
23341 (is_handled_procedure_type): Likewise.
23342 (struct loc_descr_context): Add strict_signedness field.
23343 (resolve_args_picking_1): Deal with DW_OP_[GNU_]deref_type,
23344 DW_OP_[GNU_]convert and DW_OP_[GNU_]reinterpret.
23345 (resolve_args_picking): Minor tweak.
23346 (function_to_dwarf_procedure): Initialize strict_signedness field.
23347 (type_byte_size): Likewise.
23348 (field_byte_offset): Likewise.
23349 (gen_descr_array_type_die): Likewise.
23350 (gen_variant_part): Likewise.
23351 (loc_list_from_tree_1) <CALL_EXPR>: Tidy up and set strict_signedness
23352 to true when a context is present before evaluating the arguments.
23353 <COND_EXPR>: Do not generate a useless comparison with zero.
23354 When dereferencing an address, if strict_signedness is true and the
23355 type is small and signed, use DW_OP_deref_type to do the dereference
23356 and then DW_OP_convert to convert back to the generic type.
23358 2021-06-03 Jakub Jelinek <jakub@redhat.com>
23361 * tree-inline.c (copy_tree_body_r): Handle iterators on
23362 OMP_CLAUSE_AFFINITY or OMP_CLAUSE_DEPEND.
23364 2021-06-03 Kewen Lin <linkw@linux.ibm.com>
23366 * config/arc/arc.md (*bbit_di): Remove.
23368 2021-06-02 Christoph Muellner <cmuellner@gcc.gnu.org>
23370 PR rtl-optimization/100264
23371 * ree.c (get_sub_rtx): Ignore SET expressions without register
23372 destinations and remove assertion, as it is not valid anymore
23373 with this new behaviour.
23374 (merge_def_and_ext): Eliminate destination check for register
23375 as such SET expressions can't occur anymore.
23376 (combine_reaching_defs): Likewise.
23378 2021-06-02 Jakub Jelinek <jakub@redhat.com>
23381 * config/xtensa/xtensa.h (LEAF_REG_REMAP): Cast REGNO to int to avoid
23382 -Wtype-limits warnings.
23383 (DWARF_FRAME_REGISTER): Rewrite into ternary operator with addition
23384 in operands to avoid -Wsign-compare warnings.
23386 2021-06-02 Pat Haugen <pthaugen@linux.ibm.com>
23388 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Use
23391 2021-06-02 Vineet Gupta <vgupta@synopsys.com>
23393 * config/arc/arc.h (TARGET_CPU_DEFAULT): Change to hs38_linux.
23395 2021-06-02 Ilya Leoshkevich <iii@linux.ibm.com>
23397 * config/s390/s390.md(*ashrdi3_31<setcc><cconly>): Use a single
23399 * config/s390/subst.md(cconly_subst): Use a single constraint
23400 in (match_scratch).
23402 2021-06-02 Martin Liska <mliska@suse.cz>
23404 * ipa-icf.h: Use auto_vec for memory_access_types.
23406 2021-06-02 Jeff Law <jeffreyalaw@gmail.com>
23408 * config/h8300/h8300-protos.h (compute_a_shift_length): Drop unused
23409 argument from prototype.
23410 (output_logical_op): Add rtx_code argument.
23411 (compute_logical_op_length): Likewise.
23412 * config/h8300/h8300.c (h8300_and_costs): Pass additional argument
23413 to compute_a_shift_length.
23414 (output_logical_op); New argument with the rtx code rather than
23415 extracting it from an operand. Handle QImode too.
23416 (compute_logical_op_length): Similary.
23417 (compute_a_shift_length): Drop unused argument.
23418 * config/h8300/h8300.md (logicals): New code iterator.
23419 * config/h8300/logical.md (<code><mode>3 expander): Combine
23420 the "and" expander with the "ior"/"xor" expander.
23421 (bclr<mode>msx): Combine the QI/HI mode patterns.
23422 (<logical><mode>3 insns): Use code iterator rather than match_operator.
23423 Handle QImode as well. Update call to output_logical_op and
23424 compute_logical_op_length to pass in rtx_code
23425 Fix split condition on all define_insn_and_split patterns.
23426 (one_cmpl<mode>2<cczn>): Use <cczn> to support both clobbering
23427 the flags and setting ZN via existing define_subst.
23428 * config/h8300/shiftrotate.md: Drop unused argument from
23429 calls to compute_a_shift_length.
23430 Signed-off-by: Jeff Law <jeffreyalaw@gmail.com>
23432 2021-06-01 Andrew Pinski <apinski@marvell.com>
23434 PR tree-optimization/25290
23435 * tree-ssa-phiopt.c (match_simplify_replacement):
23437 (tree_ssa_phiopt_worker): Use match_simplify_replacement.
23438 (two_value_replacement): Change the comment about
23439 conditional_replacement.
23440 (conditional_replacement): Delete.
23442 2021-06-01 Andrew Pinski <apinski@marvell.com>
23444 PR tree-optimization/95481
23445 * tree-tailcall.c (find_tail_calls): Handle empty typed
23448 2021-06-01 Andrew Pinski <apinski@marvell.com>
23450 * gimplify.c (zero_sized_field_decl): Delete
23451 (zero_sized_type): Delete
23452 (gimplify_init_ctor_eval): Use is_empty_type instead
23453 of zero_sized_field_decl.
23454 (gimplify_modify_expr): Use is_empty_type instead of
23457 2021-06-01 Jason Merrill <jason@redhat.com>
23460 * tree.h (CALL_FROM_NEW_OR_DELETE_P): Adjust comment.
23462 2021-06-01 Jason Merrill <jason@redhat.com>
23465 * diagnostic.h (warning_enabled_at): Declare.
23466 * diagnostic.c (diagnostic_enabled): Factor out from...
23467 (diagnostic_report_diagnostic): ...here.
23468 (warning_enabled_at): New.
23470 2021-06-01 Aldy Hernandez <aldyh@redhat.com>
23472 * gimple-ssa-evrp.c: Enable exporting of global ranges.
23474 2021-06-01 Martin Liska <mliska@suse.cz>
23477 * doc/invoke.texi: Mention that -fgcse-after-reload
23478 is enabled with -O3.
23480 2021-06-01 liuhongt <hongtao.liu@intel.com>
23482 PR tree-optimization/98365
23483 * tree-if-conv.c (strip_nop_cond_scalar_reduction): New function.
23484 (is_cond_scalar_reduction): Handle nop_expr in cond scalar reduction.
23485 (convert_scalar_cond_reduction): Ditto.
23486 (predicate_scalar_phi): Ditto.
23488 2021-06-01 Andrew MacLeod <amacleod@redhat.com>
23490 PR tree-optimization/100781
23491 * gimple-range-cache.cc (ranger_cache::ranger_cache): Enable new
23492 value calculation by default.
23493 (ranger_cache::enable_new_values): New.
23494 (ranger_cache::disable_new_values): New.
23495 (ranger_cache::push_poor_value): Check if new values are allowed.
23496 * gimple-range-cache.h (class ranger_cache): New member/methods.
23497 * gimple-range.cc (gimple_ranger::range_of_expr): Check for debug
23498 statement, and disable/renable new value calculation.
23500 2021-06-01 Andrew MacLeod <amacleod@redhat.com>
23502 * gimple-range-cache.cc (ranger_cache::ssa_range_in_bb): Delete.
23503 (ranger_cache::range_of_def): New.
23504 (ranger_cache::entry_range): New.
23505 (ranger_cache::exit_range): New.
23506 (ranger_cache::range_of_expr): Adjust.
23507 (ranger_cache::range_on_edge): Adjust.
23508 (ranger_cache::propagate_cache): Call exit_range directly.
23509 * gimple-range-cache.h (class ranger_cache): Adjust.
23511 2021-06-01 Andrew MacLeod <amacleod@redhat.com>
23513 * gimple-range-cache.cc (ranger_cache::ranger_cache): Adjust for
23514 gori_compute being a member rather than base class.
23515 dervied call to member call.
23516 (ranger_cache::dump): No longer dump gori_map.
23517 (ranger_cache::dump_bb): New.
23518 (ranger_cache::get_non_stale_global_range): Adjust for gori_compute
23519 being a member rather than base class.
23520 (ranger_cache::set_global_range): Ditto.
23521 (ranger_cache::ssa_range_in_bb): Ditto.
23522 (ranger_cache::range_of_expr): New.
23523 (ranger_cache::range_on_edge): New.
23524 (ranger_cache::block_range): Adjust for gori_computes. Debug changes.
23525 (ranger_cache::propagate_cache): Adjust debugging output.
23526 (ranger_cache::fill_block_cache): Adjust for gori_computes. Debug
23528 * gimple-range-cache.h (class ranger_cache): Make gori_compute a
23529 member, and inherit from range_query instead.
23530 (ranger_cache::dump_bb): New. split from dump.
23531 * gimple-range-gori.cc (gori_compute::ssa_range_in_bb): Delete.
23532 (gori_compute::expr_range_at_stmt): Delete.
23533 (gori_compute::compute_name_range_op): Delete.
23534 (gori_compute::compute_operand_range_switch): Add fur_source.
23535 (gori_compute::compute_operand_range): Add fur_source param, inline
23536 old compute_name_range_op and optimize_logical_operands.
23537 (struct tf_range): Delete.
23538 (gori_compute::logical_combine): Adjust
23539 (gori_compute::optimize_logical_operands): Delete.
23540 (gori_compute::compute_logical_operands_in_chain): Delete.
23541 (gori_compute::compute_logical_operands): Adjust.
23542 (gori_compute::compute_operand1_range): Adjust to fur_source.
23543 (gori_compute::compute_operand2_range): Ditto.
23544 (gori_compute::compute_operand1_and_operand2_range): Ditto.
23545 (gori_compute::outgoing_edge_range_p): Add range_query parameter,
23546 and adjust to fur_source.
23547 * gimple-range-gori.h (class gori_compute): Simplify and adjust to
23548 range_query and fur_source.
23549 * gimple-range.cc (gimple_ranger::range_on_edge): Query range_on_edge
23550 from the ranger_cache..
23551 (gimple_ranger::fold_range_internal): Adjust to base class change of
23553 (gimple_ranger::dump_bb): Adjust dump.
23554 * gimple-range.h (gimple_ranger):export gori computes object.
23556 2021-06-01 Andrew MacLeod <amacleod@redhat.com>
23558 PR tree-optimization/100774
23559 * gimple-range-cache.cc (ranger_cache::get_non_stale_global_range):
23560 Constant values are also not stale.
23561 (ranger_cache::set_global_range): Range invariant values should also
23562 have the correct timestamp.
23564 2021-05-31 Martin Liska <mliska@suse.cz>
23566 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
23567 Unpack FUNCTION_DECL_DECL_TYPE.
23568 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
23569 Stream FUNCTION_DECL_DECL_TYPE instead of
23570 DECL_IS_OPERATOR_NEW_P.
23571 * tree.h (set_function_decl_type): Use FUNCTION_DECL_DECL_TYPE
23573 (DECL_IS_OPERATOR_NEW_P): Likewise.
23574 (DECL_IS_OPERATOR_DELETE_P): Likewise.
23575 (DECL_LAMBDA_FUNCTION_P): Likewise.
23577 2021-05-31 Richard Biener <rguenther@suse.de>
23580 * internal-fn.c (expand_SHUFFLEVECTOR): Define.
23581 * internal-fn.def (SHUFFLEVECTOR): New.
23582 * internal-fn.h (expand_SHUFFLEVECTOR): Declare.
23583 * doc/extend.texi: Document __builtin_shufflevector.
23585 2021-05-31 Peter Bergner <bergner@linux.ibm.com>
23588 * config/rs6000/predicates.md(mma_assemble_input_operand): Allow
23589 indexed form addresses.
23591 2021-05-29 Jeff Law <jlaw@tachyum.com>
23593 * config/h8300/h8300.c (h8300_emit_stack_adjustment): Drop unused
23594 parameter. Call callers fixed.
23596 (output_plussi): Add FALLTHRU markers.
23597 (h8300_shift_needs_scratch_p): Add gcc_unreachable marker.
23599 2021-05-29 Jakub Jelinek <jakub@redhat.com>
23601 PR middle-end/99928
23602 * gimplify.c (gimplify_scan_omp_clauses): For taskloop simd
23603 combined with parallel, make sure to add shared clause to
23604 parallel for explicit linear clause.
23606 2021-05-29 Aldy Hernandez <aldyh@redhat.com>
23608 PR tree-optimization/100787
23609 * gimple-ssa-evrp.c: Disable exporting of global ranges.
23611 2021-05-28 Jason Merrill <jason@redhat.com>
23613 * tree-iterator.h (struct tree_stmt_iterator): Add operator++,
23614 operator--, operator*, operator==, and operator!=.
23615 (class tsi_range): New.
23617 2021-05-28 Richard Biener <rguenther@suse.de>
23619 PR tree-optimization/100778
23620 * tree-vect-slp.c (vect_build_slp_tree_1): Prevent possibly
23621 trapping ops in different BBs.
23623 2021-05-28 Richard Biener <rguenther@suse.de>
23626 * tree-inline.c (copy_bb): When processing __builtin_va_arg_pack
23627 copy fntype from original call.
23629 2021-05-28 Martin Liska <mliska@suse.cz>
23631 PR gcov-profile/100751
23632 * doc/gcov.texi: Revert partially a hunk that was wrong.
23634 2021-05-28 Cooper Qu <cooper.qu@linux.alibaba.com>
23636 * config/csky/csky-linux-elf.h (HAVE_sync_compare_and_swapqi):
23638 (HAVE_sync_compare_and_swaphi): Likewise.
23639 (HAVE_sync_compare_and_swapsi): Likewise.
23641 2021-05-28 Jakub Jelinek <jakub@redhat.com>
23643 PR middle-end/99928
23644 * tree.h (OMP_CLAUSE_MAP_IMPLICIT): Define.
23646 2021-05-28 Tobias Burnus <tobias@codesourcery.com>
23648 * gimplify.c (gimplify_omp_affinity): New.
23649 (gimplify_scan_omp_clauses): Call it; remove affinity clause afterwards.
23650 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_AFFINITY.
23651 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_AFFINITY.
23652 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add clause.
23653 (walk_tree_1): Handle OMP_CLAUSE_AFFINITY.
23655 2021-05-28 Joern Rennecke <joern.rennecke@riscy-ip.com>
23656 Richard Biener <rguenther@suse.de>
23658 * match.pd <popcount & / + pattern matching>:
23659 When generating popcount directly fails, try doing it in two halves.
23661 2021-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
23663 * Makefile.in (generated_files): Add gimple-match.c and
23666 2021-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
23668 * gensupport.c (alter_predicate_for_insn): Handle MATCH_DUP.
23670 2021-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
23672 * gensupport.c (alter_constraints): Add MATCH_SCRATCH case.
23674 2021-05-28 Kewen Lin <linkw@linux.ibm.com>
23676 PR tree-optimization/99398
23677 * tree-ssa-forwprop.c (simplify_permutation): Optimize some cases
23678 where the fed operands are CTOR/CST and propagated through
23679 VIEW_CONVERT_EXPR. Call vec_perm_indices::new_shrunk_vector.
23680 * vec-perm-indices.c (vec_perm_indices::new_shrunk_vector): New
23682 * vec-perm-indices.h (vec_perm_indices::new_shrunk_vector): New
23685 2021-05-27 Uroš Bizjak <ubizjak@gmail.com>
23687 * config/i386/mmx.md (addv2sf3): Do not call
23688 ix86_fixup_binary_operands_no_copy.
23691 (<smaxmin:code>v2sf3): Ditto.
23692 (<plusminus:insn><MMXMODEI:mode>3): Ditto.
23693 (<plusminus:insn><VI_32:mode>3): Remove expander.
23694 (<plusminus:insn><VI_32:mode>3): Rename from
23695 "*<plusminus:insn><VI_32:mode>3".
23696 (mulv4hi): Do not call ix86_fixup_binary_operands_no_copy.
23697 (mulv2hi3): Remove expander.
23698 (mulv2hi3): Rename from *mulv2hi3.
23699 (<s>mulv2hi3_highpart): Remove expander.
23700 (<s>mulv2hi3_highpart): Rename from *<s>mulv2hi3_highpart.
23701 (<smaxmin:code><MMXMODE14:mode>3): Rename from
23702 "*mmx_<smaxmin:code><MMXMODE14:mode>3".
23703 (<smaxmin:code><SMAXMIN_MMXMODEI:mode>3): Remove expander.
23704 (SMAXMIN_MMXMODEI): Remove mode iterator.
23705 (<smaxmin:code>v4hi3): New expander.
23706 (<smaxmin:code>v4qi3): Rename from *<smaxmin:code>v4qi3.
23707 (<smaxmin:code>v2hi3): Rename from *<smaxmin:code>v2hi3.
23708 (<smaxmin:code><SMAXMIN_VI_32:mode>3): Remove expander.
23709 (SMAXMIN_VI_32): Remove mode iterator.
23710 (<umaxmin:code><MMXMODE24:mode>3): Rename from
23711 "*mmx_<umaxmin:code><MMXMODE24:mode>3".
23712 (<umaxmin:code><UMAXMIN_MMXMODEI:mode>3): Remove expander.
23713 (UMAXMIN_MMXMODEI): Remove mode iterator.
23714 (<umaxmin:code>v8qi3): New expander.
23715 (<umaxmin:code>v4qi3): Rename from *<umaxmin:code>v4qi3.
23716 (<umaxmin:code>v2hi3): Rename from *<umaxmin:code>v2hi3.
23717 (<umaxmin:code><SMAXMIN_VI_32:mode>3): Remove expander.
23718 (UMAXMIN_VI_32): Remove mode iterator.
23719 (<any_shift:insn>v2hi3): Remove expander.
23720 (<any_shift:insn>v2hi3): Rename from *<any_shift:insn>v2hi3.
23721 (<any_logic:code><MMXMODEI:mode>3): Do not call
23722 ix86_fixup_binary_operands_no_copy.
23723 (<any_logic:code><VI_32:mode>3): Remove expander.
23724 (<any_logic:code><VI_32:mode>3): Rename from
23725 "*<any_logic:code><VI_32:mode>3".
23726 (uavg<mode>3_ceil): Do not call ix86_fixup_binary_operands_no_copy.
23727 * config/i386/sse.md (div<VF2:mode>3): Do not call
23728 ix86_fixup_binary_operands_no_copy.
23729 (div<VF1:mode>3): Ditto.
23730 (<maxmin:code><VI8_AVX2_AVX512F:mode>3): Ditto.
23731 (smulhrsv4hi3): Ditto.
23732 (smulhrsv2hi3): Ditto.
23734 2021-05-27 Martin Sebor <msebor@redhat.com>
23736 * ggc.h (gt_ggc_mx): Add overloads for all integers.
23738 * hash-map.h (class hash_map): Add pch_nx_helper overloads for all
23740 (hash_map::operator==): New function.
23742 2021-05-27 Uroš Bizjak <ubizjak@gmail.com>
23745 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
23746 For TARGET_XOP bypass SSE comparisons for all supported vector modes.
23747 * config/i386/mmx.md (*xop_maskcmp<MMXMODEI:mode>3): New insn pattern.
23748 (*xop_maskcmp<VI_32:mode>3): Ditto.
23749 (*xop_maskcmp_uns<MMXMODEI:mode>3): Ditto.
23750 (*xop_maskcmp_uns<VI_32:mode>3): Ditto.
23752 2021-05-27 Richard Earnshaw <rearnsha@arm.com>
23755 * config/arm/arm.c (arm_configure_build_target): Remove parameter
23756 opts_set, directly check opts parameters for being non-null.
23757 (arm_option_restore): Update call to arm_configure_build_target.
23758 (arm_option_override): Likewise.
23759 (arm_can_inline_p): Likewise.
23760 (arm_valid_target_attribute_tree): Likewise.
23761 * config/arm/arm-c.c (arm_pragma_target_parse): Likewise.
23762 * config/arm/arm-protos.h (arm_configure_build_target): Adjust
23765 2021-05-27 Aldy Hernandez <aldyh@redhat.com>
23767 * vr-values.c (simplify_conversion_using_ranges): Use
23768 get_range_query instead of get_global_range_query.
23770 2021-05-27 Aldy Hernandez <aldyh@redhat.com>
23772 * gimple-range.cc (get_range_global): Move to value-query.cc.
23773 (gimple_range_global): Same.
23774 (get_global_range_query): Same.
23775 (global_range_query::range_of_expr): Same.
23776 * gimple-range.h (class global_range_query): Move to
23778 (gimple_range_global): Same.
23779 * tree-ssanames.c (get_range_info): Move to value-query.cc.
23780 (get_ptr_nonnull): Same.
23781 * tree-ssanames.h (get_range_info): Remove.
23782 (get_ptr_nonnull): Remove.
23783 * value-query.cc (get_ssa_name_range_info): Move from
23785 (get_ssa_name_ptr_info_nonnull): Same.
23786 (get_range_global): Move from gimple-range.cc.
23787 (gimple_range_global): Same.
23788 (get_global_range_query): Same.
23789 (global_range_query::range_of_expr): Same.
23790 * value-query.h (class global_range_query): Move from
23792 (gimple_range_global): Same.
23794 2021-05-27 Uroš Bizjak <ubizjak@gmail.com>
23797 * config/i386/mmx.md (uavgv4qi3_ceil): New insn pattern.
23798 (uavgv2hi3_ceil): Ditto.
23800 2021-05-26 Eric Botcazou <ebotcazou@adacore.com>
23803 * doc/extend.texi (scalar_storage_order): Rephrase slightly.
23805 2021-05-26 Aldy Hernandez <aldyh@redhat.com>
23807 * tree-ssanames.c (get_range_info): Merge both copies of
23808 get_range_info into one that works with irange.
23809 * tree-ssanames.h (get_range_info): Remove version that works on
23812 2021-05-26 Aldy Hernandez <aldyh@redhat.com>
23814 * builtins.c (check_nul_terminated_array): Convert to get_range_query.
23815 (expand_builtin_strnlen): Same.
23816 (determine_block_size): Same.
23817 * fold-const.c (expr_not_equal_to): Same.
23818 * gimple-fold.c (size_must_be_zero_p): Same.
23819 * gimple-match-head.c: Include gimple-range.h.
23820 * gimple-pretty-print.c (dump_ssaname_info): Convert to get_range_query.
23821 * gimple-ssa-warn-restrict.c
23822 (builtin_memref::extend_offset_range): Same.
23823 * graphite-sese-to-poly.c (add_param_constraints): Same.
23824 * internal-fn.c (get_min_precision): Same.
23825 * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Same.
23826 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
23828 * tree-data-ref.c (split_constant_offset): Same.
23829 (dr_step_indicator): Same.
23830 * tree-dfa.c (get_ref_base_and_extent): Same.
23831 * tree-scalar-evolution.c (iv_can_overflow_p): Same.
23832 * tree-ssa-loop-niter.c (refine_value_range_using_guard): Same.
23833 (determine_value_range): Same.
23834 (record_nonwrapping_iv): Same.
23835 (infer_loop_bounds_from_signedness): Same.
23836 (scev_var_range_cant_overflow): Same.
23837 * tree-ssa-phiopt.c (two_value_replacement): Same.
23838 * tree-ssa-pre.c (insert_into_preds_of_block): Same.
23839 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Same.
23840 * tree-ssa-strlen.c (handle_builtin_stxncpy_strncat): Same.
23842 (dump_strlen_info): Same.
23843 (set_strlen_range): Same.
23844 (maybe_diag_stxncpy_trunc): Same.
23845 (get_len_or_size): Same.
23846 (handle_integral_assign): Same.
23847 * tree-ssa-structalias.c (find_what_p_points_to): Same.
23848 * tree-ssa-uninit.c (find_var_cmp_const): Same.
23849 * tree-switch-conversion.c (bit_test_cluster::emit): Same.
23850 * tree-vect-patterns.c (vect_get_range_info): Same.
23851 (vect_recog_divmod_pattern): Same.
23852 * tree-vrp.c (intersect_range_with_nonzero_bits): Same.
23853 (register_edge_assert_for_2): Same.
23854 (determine_value_range_1): Same.
23855 * tree.c (get_range_pos_neg): Same.
23856 * vr-values.c (vr_values::get_lattice_entry): Same.
23857 (vr_values::update_value_range): Same.
23858 (simplify_conversion_using_ranges): Same.
23860 2021-05-26 Aldy Hernandez <aldyh@redhat.com>
23862 * gimple-ssa-warn-alloca.c (alloca_call_type): Use
23863 get_range_query instead of query argument.
23864 (pass_walloca::execute): Enable and disable global ranger.
23866 2021-05-26 Aldy Hernandez <aldyh@redhat.com>
23868 * gimple-ssa-evrp.c (rvrp_folder::rvrp_folder): Call
23870 (rvrp_folder::~rvrp_folder): Call disable_ranger.
23871 (hybrid_folder::hybrid_folder): Call enable_ranger.
23872 (hybrid_folder::~hybrid_folder): Call disable_ranger.
23874 2021-05-26 Aldy Hernandez <aldyh@redhat.com>
23876 * function.c (allocate_struct_function): Set cfun->x_range_query.
23877 * function.h (struct function): Declare x_range_query.
23878 (get_range_query): New.
23879 (get_global_range_query): New.
23880 * gimple-range-cache.cc (ssa_global_cache::ssa_global_cache):
23881 Remove call to safe_grow_cleared.
23882 * gimple-range.cc (get_range_global): New.
23883 (gimple_range_global): Move from gimple-range.h.
23884 (get_global_range_query): New.
23885 (global_range_query::range_of_expr): New.
23886 (enable_ranger): New.
23887 (disable_ranger): New.
23888 * gimple-range.h (gimple_range_global): Move to gimple-range.cc.
23889 (class global_range_query): New.
23890 (enable_ranger): New.
23891 (disable_ranger): New.
23892 * gimple-ssa-evrp.c (evrp_folder::~evrp_folder): Rename
23893 dump_all_value_ranges to dump.
23894 * tree-vrp.c (vrp_prop::finalize): Same.
23895 * value-query.cc (range_query::dump): New.
23896 * value-query.h (range_query::dump): New.
23897 * vr-values.c (vr_values::dump_all_value_ranges): Rename to...
23898 (vr_values::dump): ...this.
23899 * vr-values.h (class vr_values): Rename dump_all_value_ranges to
23900 dump and make virtual.
23902 2021-05-26 Uroš Bizjak <ubizjak@gmail.com>
23904 * config/i386/i386.c (ix86_autovectorize_vector_modes):
23905 Add V4QImode and V16QImode for TARGET_SSE2.
23906 * doc/sourcebuild.texi (Vector-specific attributes):
23907 Add vect64 and vect32 description.
23909 2021-05-26 Bernd Edlinger <bernd.edlinger@hotmail.de>
23911 * gimple-range-gori.cc (range_def_chain::register_dependency):
23912 Resize m_def_chain when needed.
23914 2021-05-26 Christophe Lyon <christophe.lyon@linaro.org>
23916 * config/arm/mve.md (mve_vaddvq_<supf><mode>): Prefix with '@'.
23917 * config/arm/neon.md (reduc_plus_scal_<mode>): Move to ..
23918 * config/arm/vec-common.md: .. here. Add support for MVE.
23920 2021-05-26 Jakub Jelinek <jakub@redhat.com>
23922 * config/epiphany/epiphany.c (epiphany_print_operand_address): Remove
23924 * config/microblaze/microblaze.c (microblaze_legitimize_address,
23926 microblaze_option_override, print_operand): Likewise.
23927 * config/microblaze/microblaze.md (call_internal_plt,
23928 call_value_intern_plt, call_value_intern): Likewise.
23929 * config/arm/aout.h (ASM_OUTPUT_ALIGN): Likewise.
23930 * config/iq2000/iq2000.md (call_internal1, call_value_internal1,
23931 call_value_multiple_internal1): Likewise.
23932 * config/bfin/bfin.c (symbolic_reference_mentioned_p): Likewise.
23934 2021-05-26 Jan-Benedict Glaw <jbglaw@lug-owl.de>
23936 * config/arc/arc.c (arc_address_cost, arc_print_operand_address,
23937 arc_ccfsm_advance, symbolic_reference_mentioned_p,
23938 arc_raw_symbolic_reference_mentioned_p): Remove register
23941 2021-05-26 Jakub Jelinek <jakub@redhat.com>
23944 * omp-low.c: Include omp-offload.h.
23945 (create_omp_child_function): If current_function_decl has
23946 "omp declare target" attribute and is_gimple_omp_offloaded,
23947 remove that attribute from the copy of attribute list and
23948 add "omp target entrypoint" attribute instead.
23949 (lower_omp_target): Mark .omp_data_sizes.* and .omp_data_kinds.*
23950 variables for offloading if in omp_maybe_offloaded_ctx.
23951 * omp-offload.c (pass_omp_target_link::execute): Nullify second
23952 argument to GOMP_target_data_ext in offloaded code.
23954 2021-05-26 Geng Qi <gengqi@linux.alibaba.com>
23956 * config/csky/csky.c (csky_can_change_mode_class): Delete.
23957 For csky, HF/SF mode use the low bits of VREGS.
23959 2021-05-26 Eric Botcazou <ebotcazou@adacore.com>
23961 * gimplify.c (gimplify_decl_expr): Do not clear TREE_READONLY on a
23962 DECL which is a reference for OMP.
23964 2021-05-26 Martin Liska <mliska@suse.cz>
23966 PR gcov-profile/100751
23967 * doc/gcov.texi: Document that __gcov_dump can be called just
23968 once and that __gcov_reset resets run-time counters.
23970 2021-05-26 Martin Liska <mliska@suse.cz>
23972 * doc/install.texi: Port relevant part from install-old.texi
23973 and re-generate list of CPUs and systems.
23975 2021-05-26 Martin Liska <mliska@suse.cz>
23977 * Makefile.in: Remove it.
23978 * doc/include/fdl.texi: Update next/previous chapters.
23979 * doc/install.texi: Likewise.
23980 * doc/install-old.texi: Removed.
23982 2021-05-26 Geng Qi <gengqi@linux.alibaba.com>
23984 * config/csky/csky.c (ck810_legitimate_index_p): Support
23985 "base + index" with DF mode.
23986 * config/csky/constraints.md ("Y"): New constraint for memory operands
23987 without index register.
23988 * config/csky/csky_insn_fpuv2.md (fpuv3_movdf): Use "Y" instead of "m"
23989 when mov between memory and general registers, and lower their priority.
23990 * config/csky/csky_insn_fpuv3.md (fpuv2_movdf): Likewise.
23992 2021-05-26 Geng Qi <gengqi@linux.alibaba.com>
23994 * config/csky/csky.c (TARGET_PROMOTE_PROTOTYPES): Delete.
23996 2021-05-26 Geng Qi <gengqi@linux.alibaba.com>
23998 * config/csky/csky.md (untyped_call): Emit clobber for return
23999 registers to mark them used.
24001 2021-05-26 Geng Qi <gengqi@linux.alibaba.com>
24003 * config/csky/csky.md (cskyv2_sextend_ldbs): New.
24005 2021-05-26 Andrew Pinski <apinski@marvell.com>
24007 * match.pd (x < 0 ? ~y : y): New patterns.
24009 2021-05-26 Andrew Pinski <apinski@marvell.com>
24011 * match.pd (A?CST1:CST2): Add simplifcations for A?0:+-1, A?+-1:0,
24012 A?POW2:0 and A?0:POW2.
24014 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
24016 * gimple-range-gori.cc (class logical_stmt_cache): Delete
24017 (logical_stmt_cache::logical_stmt_cache ): Delete.
24018 (logical_stmt_cache::~logical_stmt_cache): Delete.
24019 (logical_stmt_cache::cache_entry::dump): Delete.
24020 (logical_stmt_cache::get_range): Delete.
24021 (logical_stmt_cache::cached_name ): Delete.
24022 (logical_stmt_cache::same_cached_name): Delete.
24023 (logical_stmt_cache::cacheable_p): Delete.
24024 (logical_stmt_cache::slot_diagnostics ): Delete.
24025 (logical_stmt_cache::dump): Delete.
24026 (gori_compute_cache::gori_compute_cache): Delete.
24027 (gori_compute_cache::~gori_compute_cache): Delete.
24028 (gori_compute_cache::compute_operand_range): Delete.
24029 (gori_compute_cache::cache_stmt): Delete.
24030 * gimple-range-gori.h (gori_compute::compute_operand_range): Remove
24032 (class gori_compute_cache): Delete.
24034 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
24036 * gimple-range.cc (fold_using_range::range_of_range_op): Use m_gori
24038 (fold_using_range::range_of_address): Adjust.
24039 (fold_using_range::range_of_phi): Adjust.
24040 * gimple-range.h (class fur_source): Adjust.
24041 (fur_source::fur_source): Adjust.
24043 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
24045 * gimple-range-gori.cc (gori_compute::expr_range_at_stmt): Rename
24046 from expr_range_in_bb and adjust.
24047 (gori_compute::compute_name_range_op): Adjust.
24048 (gori_compute::optimize_logical_operands): Adjust.
24049 (gori_compute::compute_logical_operands_in_chain): Adjust.
24050 (gori_compute::compute_operand1_range): Adjust.
24051 (gori_compute::compute_operand2_range): Adjust.
24052 (ori_compute_cache::cache_stmt): Adjust.
24053 * gimple-range-gori.h (gori_compute): Rename prototype.
24055 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
24057 * gimple-range.cc (gimple_ranger::range_of_expr): Non-null should be
24058 checked only after range_of_stmt, not range_on_entry.
24059 (gimple_ranger::range_on_entry): Check for non-null in any
24060 predecessor block, if it is not already non-null.
24061 (gimple_ranger::range_on_exit): DOnt check for non-null after
24062 range on entry call.
24063 (gimple_ranger::dump_bb): New. Split from dump.
24064 (gimple_ranger::dump): Adjust.
24065 * gimple-range.h (class gimple_ranger): Adjust.
24067 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
24069 * gimple-range-cache.cc (struct range_timestamp): Delete.
24070 (class temporal_cache): Adjust.
24071 (temporal_cache::get_timestamp): Delete.
24072 (temporal_cache::set_dependency): Delete.
24073 (temporal_cache::temporal_value): Adjust.
24074 (temporal_cache::current_p): Take dependencies as params.
24075 (temporal_cache::set_timestamp): Adjust.
24076 (temporal_cache::set_always_current): Adjust.
24077 (ranger_cache::get_non_stale_global_range): Adjust.
24078 (ranger_cache::register_dependency): Delete.
24079 * gimple-range-cache.h (class range_cache): Adjust.
24081 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
24083 * gimple-range-gori.cc (range_def_chain::range_def_chain): init
24085 (range_def_chain::~range_def_chain): Dispose of obstack rather than
24086 each individual bitmap.
24087 (range_def_chain::set_import): New.
24088 (range_def_chain::get_imports): New.
24089 (range_def_chain::chain_import_p): New.
24090 (range_def_chain::register_dependency): Rename from build_def_chain
24092 (range_def_chain::def_chain_in_bitmap_p): New.
24093 (range_def_chain::add_def_chain_to_bitmap): New.
24094 (range_def_chain::has_def_chain): Just check first depenedence.
24095 (range_def_chain::get_def_chain): Process imports, use generic
24096 register_dependency routine.
24097 (range_def_chain::dump): New.
24098 (gori_map::gori_map): Allocate import list.
24099 (gori_map::~gori_map): Release imports.
24100 (gori_map::exports): Check for past allocated block size.
24101 (gori_map::imports): New.
24102 (gori_map::def_chain_in_export_p): Delete.
24103 (gori_map::is_import_p): New.
24104 (gori_map::maybe_add_gori): Handle imports.
24105 (gori_map::dump): Adjust output, add imports.
24106 (gori_compute::has_edge_range_p): Remove def_chain_in_export call.
24107 (gori_export_iterator::gori_export_iterator): New.
24108 (gori_export_iterator::next): New.
24109 (gori_export_iterator::get_name): New.
24110 * gimple-range-gori.h (range_def_chain): Add imports and direct
24111 dependecies via struct rdc.
24112 (range_def_chain::depend1): New.
24113 (range_def_chain::depend2): New.
24114 (class gori_map): Adjust.
24115 (FOR_EACH_GORI_IMPORT_NAME): New.
24116 (FOR_EACH_GORI_EXPORT_NAME): New.
24117 (class gori_export_iterator): New.
24119 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
24121 * gimple-range-cache.cc (ranger_cache::ranger_cache): Move initial
24122 export cache filling to here.
24123 * gimple-range-gori.cc (gori_compute::gori_compute) : From Here.
24125 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
24127 * gimple-range-gori.cc (range_def_chain): Move to gimple-range-gori.h.
24128 (gori_map): Move to gimple-range-gori.h.
24129 (gori_compute::gori_compute): Adjust.
24130 (gori_compute::~gori_compute): Delete.
24131 (gori_compute::compute_operand_range_switch): Adjust.
24132 (gori_compute::compute_operand_range): Adjust.
24133 (gori_compute::compute_logical_operands): Adjust.
24134 (gori_compute::has_edge_range_p ): Adjust.
24135 (gori_compute::set_range_invariant): Delete.
24136 (gori_compute::dump): Adjust.
24137 (gori_compute::outgoing_edge_range_p): Adjust.
24138 * gimple-range-gori.h (class range_def_chain): Relocate here.
24139 (class gori_map): Relocate here.
24140 (class gori_compute): Inherit from gori_map, and adjust.
24142 2021-05-25 Aldy Hernandez <aldyh@redhat.com>
24144 * value-range.cc (range_tests_legacy): Use
24145 build_nonstandard_integer_type instead of int and short.
24147 2021-05-25 Eric Botcazou <ebotcazou@adacore.com>
24149 * gimplify.c (gimplify_decl_expr): Clear TREE_READONLY on the DECL
24150 when really creating an initialization statement for it.
24152 2021-05-25 Eric Botcazou <ebotcazou@adacore.com>
24154 * tree-inline.c (setup_one_parameter): Fix thinko in new condition.
24156 2021-05-25 Kito Cheng <kito.cheng@sifive.com>
24158 * config/riscv/riscv.h (ASM_SPEC): Pass -mno-relax.
24160 2021-05-25 Martin Liska <mliska@suse.cz>
24162 PR tree-optimization/92860
24164 * optc-save-gen.awk: Remove exceptions.
24166 2021-05-25 Martin Liska <mliska@suse.cz>
24168 * asan.h (sanitize_coverage_p): New function.
24169 * doc/extend.texi: Document it.
24170 * fold-const.c (fold_range_test): Use sanitize_flags_p
24171 instead of flag_sanitize_coverage.
24172 (fold_truth_andor): Likewise.
24173 * sancov.c: Likewise.
24174 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
24175 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Handle
24176 -fsanitize-coverage when inlining.
24178 2021-05-25 Cooper Qu <cooper.qu@linux.alibaba.com>
24180 * config/csky/csky-modes.def : Fix copyright.
24182 2021-05-25 Cooper Qu <cooper.qu@linux.alibaba.com>
24184 * config/csky/csky-modes.def : Amend copyright.
24185 * config/csky/csky_insn_fpuv2.md : Likewise.
24186 * config/csky/csky_insn_fpuv3.md : Likewise.
24188 2021-05-25 Richard Biener <rguenther@suse.de>
24190 PR middle-end/100727
24191 * calls.c (initialize_argument_information): Explicitely test
24192 for WITH_SIZE_EXPR.
24193 * gimple-expr.c (mark_addressable): Skip outer WITH_SIZE_EXPR.
24195 2021-05-25 Geng Qi <gengqi@linux.alibaba.com>
24197 * config/csky/csky.h (FRAME_POINTER_REGNUM): Use
24198 HARD_FRAME_POINTER_REGNUM and FRAME_POINTER_REGNUM instead of
24199 the signle definition. The signle definition may not work well
24200 at simplify_subreg_regno().
24201 (HARD_FRAME_POINTER_REGNUM): New.
24202 (ELIMINABLE_REGS): Add for HARD_FRAME_POINTER_REGNUM.
24203 * config/csky/csky.c (get_csky_live_regs, csky_can_eliminate,
24204 csky_initial_elimination_offset, csky_expand_prologue,
24205 csky_expand_epilogue): Add for HARD_FRAME_POINTER_REGNUM.
24207 2021-05-25 Geng Qi <gengqi@linux.alibaba.com>
24209 * config/csky/csky.c (csky_option_override):
24210 Init csky_arch_isa_features[] in advance, so TARGET_DSP
24211 and TARGET_DIV can be set well.
24213 2021-05-25 Geng Qi <gengqi@linux.alibaba.com>
24215 * config/csky/constraints.md ("l", "h"): Delete.
24216 * config/csky/csky.h (reg_class, REG_CLASS_NAMES,
24217 REG_CLASS_CONTENTS): Delete LO_REGS and HI_REGS.
24218 * config/csky/csky.c (regno_reg_classm,
24219 csky_secondary_reload, csky_register_move_cost):
24220 Use HILO_REGS instead of LO_REGS and HI_REGS.
24222 2021-05-25 Geng Qi <gengqi@linux.alibaba.com>
24224 * config/csky/constraints.md ("W"): New constriant for mem operand
24225 with base reg, index register.
24226 ("Q"): Renamed and modified "csky_valid_fpuv2_mem_operand" to
24227 "csky_valid_mem_constraint_operand" to deal with both "Q" and "W"
24229 ("Dv"): New constraint for const double value that can be used at
24231 * config/csky/csky-modes.def (HFmode): New mode.
24232 * config/csky/csky-protos.h (csky_valid_fpuv2_mem_operand): Rename
24233 to "csky_valid_mem_constraint_operand" and support new constraint
24235 (csky_get_movedouble_length): New.
24236 (fpuv3_output_move): New.
24237 (fpuv3_const_double): New.
24238 * config/csky/csky.c (csky_option_override): New arch CK860 with fpv3.
24239 (decompose_csky_address): Refine.
24240 (csky_print_operand): New "CONST_DOUBLE" operand.
24241 (csky_output_move): Support fpv3 instructions.
24242 (csky_get_movedouble_length): New.
24243 (fpuv3_output_move): New.
24244 (fpuv3_const_double): New.
24245 (csky_emit_compare): Cover float comparsion.
24246 (csky_emit_compare_float): Refine.
24247 (csky_vaild_fpuv2_mem_operand): Rename to
24248 "csky_valid_mem_constraint_operand" and support new constraint "W".
24249 (ck860_rtx_costs): New.
24250 (csky_rtx_costs): Add the cost calculation of CK860.
24251 (regno_reg_class): New vregs for fpuv3.
24252 (csky_dbx_regno): Likewise.
24253 (csky_cpu_cpp_builtins): New builtin macro for fpuv3.
24254 (csky_conditional_register_usage): Suporrot fpuv3.
24255 (csky_dwarf_register_span): Suporrot fpuv3.
24256 (csky_init_builtins, csky_mangle_type): Support "__fp16" type.
24257 (ck810_legitimate_index_p): Support fp16.
24258 * config/csky/csky.h (TARGET_TLS): ADD CK860.
24259 (CSKY_VREG_P, CSKY_VREG_LO_P, CSKY_VREG_HI_P): Support fpuv3.
24260 (TARGET_SINGLE_FPU): Support fpuv3.
24261 (TARGET_SUPPORT_FPV3): New.
24262 (FIRST_PSEUDO_REGISTER): Change to 202 to hold the new fpuv3 registers.
24263 (FIXED_REGISTERS, CALL_REALLY_USED_REGISTERS, REGISTER_NAMES,
24264 REG_CLASS_CONTENTS): Support fpuv3.
24265 * config/csky/csky.md (movsf): Move to cksy_insn_fpu.md and refine.
24266 (csky_movsf_fpv2): Likewise.
24267 (ck801_movsf): Likewise.
24268 (csky_movsf): Likewise.
24270 (csky_movdf_fpv2): Likewise.
24271 (ck801_movdf): Likewise.
24272 (csky_movdf): Likewise.
24273 (movsicc): Refine. Use "comparison_operatior" instead of
24274 "ordered_comparison_operatior".
24275 (addsicc): Likewise.
24276 (CSKY_FIRST_VFP3_REGNUM, CSKY_LAST_VFP3_REGNUM): New constant.
24277 (call_value_internal_vh): New.
24278 * config/csky/csky_cores.def (CK860): New arch and cpu.
24283 * config/csky/csky_insn_fpu.md: Refactor. Separate all float patterns
24284 into emit-patterns and match-patterns, remain the emit-patterns here,
24285 and move the match-patterns to csky_insn_fpuv2.md or
24286 csky_insn_fpuv3.md.
24287 * config/csky/csky_insn_fpuv2.md: New file for fpuv2 instructions.
24288 * config/csky/csky_insn_fpuv3.md: New file and new patterns for fpuv3
24290 * config/csky/csky_isa.def (fcr): New.
24295 (CK860): New definition for ck860.
24296 * config/csky/csky_tables.opt (ck860): New processors ck860,
24297 ck860f. And new arch ck860.
24302 * config/csky/predicates.md (csky_float_comparsion_operator): Delete
24303 "geu", "gtu", "leu", "ltu", which will never appear at float comparison.
24304 * config/csky/t-csky-elf: Support 860.
24305 * config/csky/t-csky-linux: Likewise.
24306 * doc/md.texi: Add "Q" and "W" constraints for C-SKY.
24308 2021-05-24 Aaron Sawdey <acsawdey@linux.ibm.com>
24310 * config/rs6000/genfusion.pl (gen_logical_addsubf): Refactor to
24311 add generation of logical-add and add-logical fusion pairs.
24312 * config/rs6000/rs6000-cpus.def: Add new fusion to ISA 3.1 mask
24314 * config/rs6000/rs6000.c (rs6000_option_override_internal): Turn on
24315 logical-add and add-logical fusion by default.
24316 * config/rs6000/rs6000.opt: Add -mpower10-fusion-logical-add and
24317 -mpower10-fusion-add-logical options.
24318 * config/rs6000/fusion.md: Regenerate file.
24320 2021-05-24 Aldy Hernandez <aldyh@redhat.com>
24322 * value-range.cc (irange::legacy_equal_p): Check type when
24323 comparing VR_VARYING types.
24324 (range_tests_legacy): Test comparing VARYING ranges of different
24327 2021-05-24 Wilco Dijkstra <wdijkstr@arm.com>
24329 * config/aarch64/aarch64.c (neoversen1_tunings):
24330 Enable AARCH64_EXTRA_TUNE_CHEAP_SHIFT_EXTEND.
24332 2021-05-24 Wilco Dijkstra <wdijkstr@arm.com>
24334 * config/aarch64/aarch64.c (aarch64_classify_symbol): Use GOT for
24335 extern weak symbols. Limit symbol offsets for non-GOT symbols with
24338 2021-05-24 Christophe Lyon <christophe.lyon@linaro.org>
24340 * config/arm/neon.md (vec_load_lanesxi<mode>)
24341 (vec_store_lanexoi<mode>): Move ...
24342 * config/arm/vec-common.md: here.
24344 2021-05-24 Christophe Lyon <christophe.lyon@linaro.org>
24346 * config/arm/neon.md (vec_load_lanesoi<mode>)
24347 (vec_store_lanesoi<mode>): Move ...
24348 * config/arm/vec-common.md: here.
24350 2021-05-24 liuhongt <hongtao.liu@intel.com>
24353 * config/i386/i386.c (ix86_gimple_fold_builtin): Replacing
24354 stmt with GIMPLE_NOP when lhs doesn't exist.
24356 2021-05-23 Uroš Bizjak <ubizjak@gmail.com>
24359 * config/i386/mmx.md (*push<VI_32:mode>2_rex64):
24360 New instruction pattern.
24361 (*push<VI_32:mode>2): Ditto.
24362 (push splitter for SSE registers): New splitter.
24364 2021-05-23 Andrew Pinski <apinski@marvell.com>
24366 * match.pd ((A & C) != 0 ? D : 0): Limit to non pointer types.
24368 2021-05-22 Aaron Sawdey <acsawdey@linux.ibm.com>
24370 * config/rs6000/genfusion.pl (gen_addadd): Fix incorrect attr types.
24371 * config/rs6000/fusion.md: Regenerate file.
24373 2021-05-21 Aaron Sawdey <acsawdey@linux.ibm.com>
24375 * config/rs6000/genfusion.pl (gen_addadd): New function.
24376 * config/rs6000/fusion.md: Regenerate file.
24377 * config/rs6000/rs6000-cpus.def: Add
24378 OPTION_MASK_P10_FUSION_2ADD to masks.
24379 * config/rs6000/rs6000.c (rs6000_option_override_internal):
24380 Handle default value of OPTION_MASK_P10_FUSION_2ADD.
24381 * config/rs6000/rs6000.opt: Add -mpower10-fusion-2add.
24383 2021-05-21 Jakub Jelinek <jakub@redhat.com>
24385 PR middle-end/99928
24386 * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT_TARGET): Define.
24387 * gimplify.c (enum gimplify_omp_var_data): Fix up
24388 GOVD_MAP_HAS_ATTACHMENTS value, add GOVD_FIRSTPRIVATE_IMPLICIT.
24389 (omp_lastprivate_for_combined_outer_constructs): If combined target
24390 has GOVD_FIRSTPRIVATE_IMPLICIT set for the decl, change it to
24391 GOVD_MAP | GOVD_SEEN.
24392 (gimplify_scan_omp_clauses): Set GOVD_FIRSTPRIVATE_IMPLICIT for
24393 firstprivate clauses with OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT.
24394 (gimplify_adjust_omp_clauses): For firstprivate clauses with
24395 OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT either clear that bit and
24396 OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT_TARGET too, or remove it and
24397 let it be replaced by implicit map clause.
24399 2021-05-21 Jakub Jelinek <jakub@redhat.com>
24401 PR middle-end/99928
24402 * gimplify.c (omp_lastprivate_for_combined_outer_constructs): New
24404 (gimplify_scan_omp_clauses) <case OMP_CLAUSE_LASTPRIVATE>: Use it.
24405 (gimplify_omp_for): Likewise.
24407 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
24409 PR middle-end/90115
24410 * omp-low.c (oacc_privatization_candidate_p): Reject 'static',
24411 'external' in blocks.
24413 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
24415 PR middle-end/90115
24416 * flag-types.h (enum openacc_privatization): New.
24417 * params.opt (-param=openacc-privatization): New.
24418 * doc/invoke.texi (openacc-privatization): Document it.
24419 * omp-general.h (get_openacc_privatization_dump_flags): New
24421 * omp-low.c (oacc_privatization_candidate_p): Add diagnostics.
24422 * omp-offload.c (execute_oacc_device_lower)
24423 <IFN_UNIQUE_OACC_PRIVATE>: Re-work diagnostics.
24424 * target.def (goacc.adjust_private_decl): Add 'location_t'
24426 * doc/tm.texi: Regenerate.
24427 * config/gcn/gcn-protos.h (gcn_goacc_adjust_private_decl): Adjust.
24428 * config/gcn/gcn-tree.c (gcn_goacc_adjust_private_decl): Likewise.
24429 * config/nvptx/nvptx.c (nvptx_goacc_adjust_private_decl):
24430 Likewise. Preserve it for...
24431 (nvptx_goacc_expand_var_decl): ... use here.
24433 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
24435 * doc/sourcebuild.texi (Other attributes): Document '__OPTIMIZE__'
24438 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
24440 PR middle-end/90115
24441 * omp-low.c (oacc_privatization_candidate_p): New function.
24442 (oacc_privatization_scan_clause_chain)
24443 (oacc_privatization_scan_decl_chain): Use it. Also
24444 'gcc_checking_assert' that we're not seeing duplicates.
24446 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
24448 PR middle-end/90115
24449 * omp-offload.c (execute_oacc_device_lower): Skip processing if no
24452 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
24454 PR middle-end/90115
24455 * omp-offload.c (execute_oacc_device_lower): Explain.
24457 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
24459 PR middle-end/90115
24460 * omp-offload.c (execute_oacc_device_lower)
24461 <IFN_UNIQUE_OACC_PRIVATE>: Diagnose and handle for 'level == -1'
24463 * internal-fn.c (expand_UNIQUE): Don't expect
24464 'IFN_UNIQUE_OACC_PRIVATE'.
24466 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
24468 PR middle-end/90115
24469 * omp-low.c (lower_omp_for): Don't evaluate OpenMP 'for' clauses.
24471 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
24473 PR middle-end/90115
24474 * config/nvptx/nvptx.c (nvptx_goacc_adjust_private_decl)
24475 (nvptx_goacc_expand_var_decl): Tighten.
24477 2021-05-21 Julian Brown <julian@codesourcery.com>
24478 Chung-Lin Tang <cltang@codesourcery.com>
24479 Thomas Schwinge <thomas@codesourcery.com>
24481 PR middle-end/90115
24482 * doc/tm.texi.in (TARGET_GOACC_EXPAND_VAR_DECL)
24483 (TARGET_GOACC_ADJUST_PRIVATE_DECL): Add documentation hooks.
24484 * doc/tm.texi: Regenerate.
24485 * expr.c (expand_expr_real_1): Expand decls using the
24486 expand_var_decl OpenACC hook if defined.
24487 * internal-fn.c (expand_UNIQUE): Handle IFN_UNIQUE_OACC_PRIVATE.
24488 * internal-fn.h (IFN_UNIQUE_CODES): Add OACC_PRIVATE.
24489 * omp-low.c (omp_context): Add oacc_privatization_candidates
24491 (lower_oacc_reductions): Add PRIVATE_MARKER parameter. Insert
24493 (lower_oacc_head_tail): Add PRIVATE_MARKER parameter. Modify
24494 private marker's gimple call arguments, and pass it to
24495 lower_oacc_reductions.
24496 (oacc_privatization_scan_clause_chain)
24497 (oacc_privatization_scan_decl_chain, lower_oacc_private_marker):
24499 (lower_omp_for, lower_omp_target, lower_omp_1): Use these.
24500 * omp-offload.c (convert.h): Include.
24501 (oacc_loop_xform_head_tail): Treat private-variable markers like
24502 fork/join when transforming head/tail sequences.
24503 (struct var_decl_rewrite_info): Add struct.
24504 (oacc_rewrite_var_decl, is_sync_builtin_call): New functions.
24505 (execute_oacc_device_lower): Support rewriting gang-private
24506 variables using target hook, and fix up addr_expr and var_decl
24508 * target.def (adjust_private_decl, expand_var_decl): New hooks.
24509 * config/gcn/gcn-protos.h (gcn_goacc_adjust_gangprivate_decl):
24511 (gcn_goacc_adjust_private_decl): ...this.
24512 * config/gcn/gcn-tree.c (gcn_goacc_adjust_gangprivate_decl):
24514 (gcn_goacc_adjust_private_decl): ...this. Add LEVEL parameter.
24515 * config/gcn/gcn.c (TARGET_GOACC_ADJUST_GANGPRIVATE_DECL): Rename
24516 definition using gcn_goacc_adjust_gangprivate_decl...
24517 (TARGET_GOACC_ADJUST_PRIVATE_DECL): ...to this, using
24518 gcn_goacc_adjust_private_decl.
24519 * config/nvptx/nvptx.c (tree-pretty-print.h): Include.
24520 (gang_private_shared_size): New global variable.
24521 (gang_private_shared_align): Likewise.
24522 (gang_private_shared_sym): Likewise.
24523 (gang_private_shared_hmap): Likewise.
24524 (nvptx_option_override): Initialize these.
24525 (nvptx_file_end): Output gang_private_shared_sym.
24526 (nvptx_goacc_adjust_private_decl, nvptx_goacc_expand_var_decl):
24528 (nvptx_set_current_function): Clear gang_private_shared_hmap.
24529 (TARGET_GOACC_ADJUST_PRIVATE_DECL): Define hook.
24530 (TARGET_GOACC_EXPAND_VAR_DECL): Likewise.
24532 2021-05-21 H.J. Lu <hjl.tools@gmail.com>
24534 * config/i386/i386-modes.def (MAX_BITSIZE_MODE_ANY_INT): Removed.
24536 2021-05-21 Richard Biener <rguenther@suse.de>
24537 H.J. Lu <hjl.tools@gmail.com>
24539 PR middle-end/90773
24540 * expr.c (expand_constructor): Elide expand_constructor if
24541 move by pieces is preferred.
24543 2021-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24545 * config/aarch64/aarch64-builtins.c (aarch64_call_properties):
24546 Take a flag and mode value as arguments.
24547 (aarch64_modifies_global_state_p): Likewise.
24548 (aarch64_reads_global_state_p): Likewise.
24549 (aarch64_could_trap_p): Likewise.
24550 (aarch64_get_attributes): Likewise.
24551 (aarch64_init_simd_builtins): Adjust callsite of above.
24552 (aarch64_init_fcmla_laneq_builtins): Use aarch64_get_attributes to get
24553 function attributes to apply to builtins.
24554 (aarch64_init_crc32_builtins): Likewise.
24555 (aarch64_init_builtin_rsqrt): Likewise.
24557 2021-05-21 Aaron Sawdey <acsawdey@linux.ibm.com>
24559 * config/rs6000/rs6000.md (define_attr "type"): Add types for fusion.
24560 * config/rs6000/genfusion.pl (gen_ld_cmpi_p10): Use new fusion types.
24561 (gen_2logical): Use new fusion types.
24562 * config/rs6000/fusion.md: Regenerate.
24564 2021-05-21 Uroš Bizjak <ubizjak@gmail.com>
24567 * config/i386/i386-expand.c (ix86_expand_sse_movcc):
24568 Handle V4QI and V2HI modes.
24569 (ix86_expand_sse_movcc): Ditto.
24570 * config/i386/mmx.md (*<sat_plusminus:insn><VI_32:mode>3):
24571 New instruction pattern.
24572 (*eq<VI_32:mode>3): Ditto.
24573 (*gt<VI_32:mode>3): Ditto.
24574 (*xop_pcmov_<VI_32:mode>): Ditto.
24575 (mmx_pblendvb32): Ditto.
24576 (mmx_pblendvb64): Rename from mmx_pblendvb.
24577 (vec_cmp<VI_32:mode><VI_32:mode>): New expander.
24578 (vec_cmpu<VI_32:mode><VI_32:mode>): Ditto.
24579 (vcond<VI_32:mode><VI_32:mode>): Ditto.
24580 (vcondu<VI_32:mode><VI_32:mode>): Ditto.
24581 (vcond_mask_<VI_32:mode><VI_32:mode>): Ditto.
24583 2021-05-21 Jakub Jelinek <jakub@redhat.com>
24585 PR tree-optimization/94589
24586 * tree-ssa-phiopt.c (spaceship_replacement): For integral rhs1 and
24587 rhs2, treat x <= 4 equivalently to x < 5 etc. In cmp1 and cmp2 (if
24588 not the same as cmp3) treat <= the same as < and >= the same as >.
24589 Don't require that cond2_phi_edge is true edge, instead take
24590 false/true edges into account based on cmp1/cmp2 comparison kinds.
24592 2021-05-21 Uroš Bizjak <ubizjak@gmail.com>
24595 * config/i386/mmx.md (SMAXMIN_MMXMODEI): New mode iterator.
24596 (<smaxmin:code><SMAXMIN_MMXMODEI:mode>3): Macroize expander
24597 from <smaxmin:code>v4hi3> and <smaxmin:code><MMXMODE14:mode>3
24598 using SMAXMIN_MMXMODEI mode iterator.
24599 (*<smaxmin:code>v4qi3): New insn pattern.
24600 (*<smaxmin:code>v2hi3): Ditto.
24601 (SMAXMIN_VI_32): New mode iterator.
24602 (<smaxmin:code><SMAXMIN_VI_32>mode3): New expander.
24603 (UMAXMIN_MMXMODEI): New mode iterator.
24604 (<umaxmin:code><UMAXMIN_MMXMODEI:mode>3): Macroize expander
24605 from <umaxmin:code>v8qi3> and <umaxmin:code><MMXMODE24:mode>3
24606 using UMAXMIN_MMXMODEI mode iterator.
24607 (*<umaxmin:code>v4qi3): New insn pattern.
24608 (*<umaxmin:code>v2hi3): Ditto.
24609 (UMAXMIN_VI_32): New mode iterator.
24610 (<umaxmin:code><UMAXMIN_VI_32>mode3): New expander.
24611 (abs<VI_32:mode>2): New insn pattern.
24612 (ssse3_abs<MMXMODEI:mode>2, abs<MMXMODEI:mode>2): Move from ...
24613 * config/i386/sse.md: ... here.
24615 2021-05-20 Clement Chigot <clement.chigot@atos.net>
24616 David Edelsohn <dje.gcc@gmail.com>
24618 * collect2.c (scan_prog_file): Issue non-fatal warning for
24621 2021-05-20 Jonathan Wakely <jwakely@redhat.com>
24623 * doc/invoke.texi (-Wno-c++11-extensions)
24624 (-Wno-c++14-extensions, -Wno-c++17-extensions)
24625 (-Wno-c++20-extensions, -Wno-c++23-extensions): Document
24628 2021-05-20 Indu Bhagat <indu.bhagat@oracle.com>
24630 * config/c6x/c6x.c (c6x_output_file_unwind): Use dwarf_debuginfo_p.
24631 * config/darwin.c (darwin_override_options): Likewise.
24632 * config/i386/cygming.h (DBX_REGISTER_NUMBER): Likewise.
24633 * config/i386/darwin.h (DBX_REGISTER_NUMBER): Likewise.
24634 (DWARF2_FRAME_REG_OUT): Likewise.
24635 * config/mips/mips.c (mips_output_filename): Likewise.
24636 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name):
24638 (rs6000_dbx_register_number): Likewise.
24639 * dbxout.c: Include flags.h.
24640 * dwarf2cfi.c (cfi_label_required_p): Likewise.
24641 (dwarf2out_do_frame): Likewise.
24642 * except.c: Include flags.h.
24643 * final.c (dwarf2_debug_info_emitted_p): Likewise.
24644 (final_scan_insn_1): Likewise.
24645 * flags.h (dwarf_debuginfo_p): New function declaration.
24646 * opts.c (dwarf_debuginfo_p): New function definition.
24647 * targhooks.c (default_debug_unwind_info): Use dwarf_debuginfo_p.
24648 * toplev.c (process_options): Likewise.
24650 2021-05-20 Indu Bhagat <indu.bhagat@oracle.com>
24652 * common.opt: Change type to support bitmasks.
24653 * flag-types.h (enum debug_info_type): Rename enumerator constants.
24654 (NO_DEBUG): New bitmask.
24655 (DBX_DEBUG): Likewise.
24656 (DWARF2_DEBUG): Likewise.
24657 (XCOFF_DEBUG): Likewise.
24658 (VMS_DEBUG): Likewise.
24659 (VMS_AND_DWARF2_DEBUG): Likewise.
24660 * flags.h (debug_set_to_format): New function declaration.
24661 (debug_set_count): Likewise.
24662 (debug_set_names): Likewise.
24663 * opts.c (debug_type_masks): Array of bitmasks for debug formats.
24664 (debug_set_to_format): New function definition.
24665 (debug_set_count): Likewise.
24666 (debug_set_names): Likewise.
24667 (set_debug_level): Update access to debug_type_names.
24668 * toplev.c: Likewise.
24670 2021-05-20 Martin Sebor <msebor@redhat.com>
24672 PR middle-end/100684
24673 * tree-ssa-ccp.c (pass_post_ipa_warn::execute): Handle C++ lambda.
24675 2021-05-20 Uroš Bizjak <ubizjak@gmail.com>
24678 * config/i386/i386.md (isa): Remove x64_bmi.
24679 (enabled): Remove x64_bmi.
24680 * config/i386/mmx.md (mmx_andnot<MMXMODEI:mode>3):
24681 Remove general register alternative.
24682 (*andnot<VI_32:mode>3): Ditto.
24683 (*mmx_<any_logic:code><MMXMODEI:mode>3): Ditto.
24684 (*<any_logic:code><VI_32:mode>3): Ditto.
24686 2021-05-20 Kewen Lin <linkw@linux.ibm.com>
24688 * config/arm/arm.c: Include head files tree-vectorizer.h and
24691 2021-05-20 Uroš Bizjak <ubizjak@gmail.com>
24694 * config/i386/mmx.md (Yv_Yw): Revert adding V4QI and V2HI modes.
24695 (*<plusminus:insn><VI_32:mode>3): Use Yw instad of <Yv_Yw> constrint.
24696 (<s>mulv4hi3_highpart): New expander.
24697 (*<s>mulv2hi3_highpart): New insn pattern.
24698 (<s>mulv2hi3_higpart): New expander.
24699 (*<any_shift:insn>v2hi3): New insn pattern.
24700 (<any_shift:insn>v2hi3): New expander.
24701 * config/i386/sse.md (smulhrsv2hi3): New expander.
24702 (*smulhrsv2hi3): New insn pattern.
24704 2021-05-20 Kewen Lin <linkw@linux.ibm.com>
24706 * doc/invoke.texi (vect-inner-loop-cost-factor): Document new
24708 * params.opt (vect-inner-loop-cost-factor): New.
24709 * targhooks.c (default_add_stmt_cost): Replace hardcoded factor
24710 50 with LOOP_VINFO_INNER_LOOP_COST_FACTOR, include head file
24711 tree-vectorizer.h and its required ones.
24712 * config/aarch64/aarch64.c (aarch64_add_stmt_cost): Replace
24713 hardcoded factor 50 with LOOP_VINFO_INNER_LOOP_COST_FACTOR.
24714 * config/arm/arm.c (arm_add_stmt_cost): Likewise.
24715 * config/i386/i386.c (ix86_add_stmt_cost): Likewise.
24716 * config/rs6000/rs6000.c (rs6000_add_stmt_cost): Likewise.
24717 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
24719 (_loop_vec_info::_loop_vec_info): Init inner_loop_cost_factor.
24720 * tree-vectorizer.h (_loop_vec_info): Add inner_loop_cost_factor.
24721 (LOOP_VINFO_INNER_LOOP_COST_FACTOR): New macro.
24723 2021-05-20 Christophe Lyon <christophe.lyon@linaro.org>
24724 Torbjörn Svensson <torbjorn.svensson@st.com>
24727 * doc/cpp.texi (Common Predefined Macros): Document __FILE_NAME__.
24729 2021-05-20 Jakub Jelinek <jakub@redhat.com>
24731 PR middle-end/99928
24732 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_LINEAR>: For
24733 explicit linear clause when combined with target, make it map(tofrom:)
24734 instead of no clause or firstprivate.
24736 2021-05-20 Jakub Jelinek <jakub@redhat.com>
24738 PR tree-optimization/94589
24739 * match.pd ((X & Y) == X -> (X & ~Y) == 0): Simplify even in presence
24740 of integral conversions.
24742 2021-05-19 Andrew MacLeod <amacleod@redhat.com>
24744 * gimple-range.cc (fur_source::get_operand): New.
24745 (gimple_range_fold): Delete.
24746 (fold_using_range::fold_stmt): Move from gimple_ranger::calc_stmt.
24747 (fold_using_range::range_of_range_op): Move from gimple_ranger.
24748 (fold_using_range::range_of_address): Ditto.
24749 (fold_using_range::range_of_phi): Ditto.
24750 (fold_using_range::range_of_call): Ditto.
24751 (fold_using_range::range_of_builtin_ubsan_call): Move from
24752 range_of_builtin_ubsan_call.
24753 (fold_using_range::range_of_builtin_call): Move from
24754 range_of_builtin_call.
24755 (gimple_ranger::range_of_builtin_call): Delete.
24756 (fold_using_range::range_of_cond_expr): Move from gimple_ranger.
24757 (gimple_ranger::fold_range_internal): New.
24758 (gimple_ranger::range_of_stmt): Use new fold_using_range API.
24759 (fold_using_range::range_of_ssa_name_with_loop_info): Move from
24760 gimple_ranger. Improve ranges of SSA_NAMES when possible.
24761 * gimple-range.h (gimple_ranger): Remove various range_of routines.
24762 (class fur_source): New.
24763 (class fold_using_range): New.
24764 (fur_source::fur_source): New.
24766 * vr-values.c (vr_values::extract_range_basic): Use fold_using_range
24767 instead of range_of_builtin_call.
24769 2021-05-19 Jonathan Wakely <jwakely@redhat.com>
24771 * doc/cpp.texi (Common Predefined Macros): Update documentation
24772 for the __GXX_EXPERIMENTAL_CXX0X__ macro.
24774 2021-05-19 Alex Coplan <alex.coplan@arm.com>
24777 * config/arm/arm.md (nonsecure_call_internal): Always ensure
24778 callee's address is in a register.
24780 2021-05-19 Geng Qi <gengqi@linux.alibaba.com>
24782 * common/config/riscv/riscv-common.c
24783 (riscv_subset_list::parsing_subset_version): Properly parse the letter
24785 (riscv_subset_list::parse_std_ext,
24786 riscv_subset_list::parse_multiletter_ext): To handle errors generated
24787 in riscv_subset_list::parsing_subset_version.
24789 2021-05-19 Jonathan Wright <jonathan.wright@arm.com>
24791 * config/aarch64/aarch64-simd.md: Use "neon_move_narrow_q"
24792 type attribute in patterns generating XTN(2).
24794 2021-05-19 Jonathan Wright <jonathan.wright@arm.com>
24796 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_pack_trunc_<mode>):
24797 Remove as duplicate of...
24798 (aarch64_xtn<mode>): This.
24799 (aarch64_xtn2<mode>_le): Move position in file.
24800 (aarch64_xtn2<mode>_be): Move position in file.
24801 (aarch64_xtn2<mode>): Move position in file.
24802 (vec_pack_trunc_<mode>): Define as an expander.
24804 2021-05-19 Jonathan Wright <jonathan.wright@arm.com>
24806 * config/aarch64/aarch64-simd-builtins.def: Split builtin
24807 generation for aarch64_<sur>q<r>shr<u>n_n<mode> pattern into
24808 separate scalar and vector generators.
24809 * config/aarch64/aarch64-simd.md
24810 (aarch64_<sur>q<r>shr<u>n_n<mode>): Define as an expander and
24812 (aarch64_<sur>q<r>shr<u>n_n<mode>_insn_le): This and...
24813 (aarch64_<sur>q<r>shr<u>n_n<mode>_insn_be): This.
24814 * config/aarch64/iterators.md: Define SD_HSDI iterator.
24816 2021-05-19 Jonathn Wright <jonathan.wright@arm.com>
24818 * config/aarch64/aarch64-simd.md: Use UNSPEC_SQXTUN instead
24820 * config/aarch64/iterators.md: Remove UNSPEC_SQXTUN2.
24822 2021-05-19 Jonathan Wright <jonathan.wright@arm.com>
24824 * config/aarch64/aarch64-simd.md (aarch64_<sur>q<r>shr<u>n2_n<mode>):
24825 Implement as an expand emitting a big/little endian
24826 instruction pattern.
24827 (aarch64_<sur>q<r>shr<u>n2_n<mode>_insn_le): Define.
24828 (aarch64_<sur>q<r>shr<u>n2_n<mode>_insn_be): Define.
24830 2021-05-19 Jonathan Wright <jonathan.wright@arm.com>
24832 * config/aarch64/aarch64-simd.md (aarch64_<sur><addsub>hn2<mode>):
24833 Implement as an expand emitting a big/little endian
24834 instruction pattern.
24835 (aarch64_<sur><addsub>hn2<mode>_insn_le): Define.
24836 (aarch64_<sur><addsub>hn2<mode>_insn_be): Define.
24837 * config/aarch64/iterators.md: Remove UNSPEC_[R]ADDHN2 and
24838 UNSPEC_[R]SUBHN2 unspecs and ADDSUBHN2 iterator.
24840 2021-05-19 Richard Biener <rguenther@suse.de>
24842 PR middle-end/100672
24843 * fold-const.c (fold_negate_expr_1): Use element_precision.
24844 (negate_expr_p): Likewise.
24846 2021-05-19 Andre Vieira <andre.simoesdiasvieira@arm.com>
24848 * config/aarch64/iterators.md (SVE_PRED_LOAD): New iterator.
24849 (pred_load): New int attribute.
24850 * config/aarch64/aarch64-sve.md
24851 (aarch64_load_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>): Use
24852 SVE_PRED_LOAD enum iterator and corresponding pred_load attribute.
24853 * config/aarch64/aarch64-sve-builtins-base.cc (expand): Update call to
24854 code_for_aarch64_load.
24856 2021-05-19 Richard Biener <rguenther@suse.de>
24858 * cfgexpand.c (discover_nonconstant_array_refs_r): Make
24859 sure TARGET_MEM_REF bases are expanded as memory.
24860 * tree-ssa-operands.c (operands_scanner::get_tmr_operands):
24861 Do not mark TARGET_MEM_REF bases addressable.
24862 * tree-ssa.c (non_rewritable_mem_ref_base): Handle
24863 TARGET_MEM_REF bases as never rewritable.
24864 * gimple-walk.c (walk_stmt_load_store_addr_ops): Do not
24865 walk TARGET_MEM_REF bases as address-takens.
24866 * tree-ssa-dce.c (ref_may_be_aliased): Handle TARGET_MEM_REF.
24868 2021-05-19 Richard Biener <rguenther@suse.de>
24870 * builtins.c (get_object_alignment_1): Strip outer
24872 * tree-dfa.c (get_ref_base_and_extent): Handle outer
24873 WITH_SIZE_EXPR for size processing and process the
24875 * tree-ssa-alias.c (ao_ref_base_alias_set): Strip
24876 outer WITH_SIZE_EXPR.
24877 (ao_ref_base_alias_ptr_type): Likewise.
24878 (refs_may_alias_p_2): Allow WITH_SIZE_EXPR in ref->ref
24879 and handle that accordingly, stripping it for the
24880 core alias workers.
24881 * tree.c (get_base_address): Handle WITH_SIZE_EXPR by
24882 looking through it instead of returning NULL.
24884 2021-05-19 Jakub Jelinek <jakub@redhat.com>
24886 PR middle-end/100576
24887 * builtins.c (check_read_access): Convert bound to size_type_node if
24890 2021-05-19 Richard Biener <rguenther@suse.de>
24892 * tree-cfg.c (verify_types_in_gimple_min_lval): Inline...
24893 (verify_types_in_gimple_reference): ... here. Sanitize.
24894 (verify_gimple_call): Verify references in LHS and arguments.
24895 (verify_gimple_assign_single): Reject WITH_SIZE_EXPR.
24897 2021-05-19 Uroš Bizjak <ubizjak@gmail.com>
24899 * config/i386/i386.h (VALID_INT_MODE_P):
24900 Add V8QI, V4HI and V2SI modes for TARGET_64BIT.
24901 * config/i386/i386.md (isa): Add x64_bmi.
24902 (enabled): Handle x64_bmi.
24903 * config/i386/mmx.md (mmx_andnot<MMXMODEI:mode>3):
24904 Add alternative using 64bit general registers.
24905 (*mmx_<any_logic:code><MMXMODEI:mode>3): Ditto.
24907 2021-05-19 Jakub Jelinek <jakub@redhat.com>
24909 PR middle-end/99928
24910 * tree.h (OMP_MASTER_COMBINED): Define.
24911 * gimplify.c (gimplify_scan_omp_clauses): Rewrite lastprivate
24912 handling for outer combined/composite constructs to a loop.
24913 Handle lastprivate on combined target.
24914 (gimplify_expr): Formatting fix.
24916 2021-05-19 Xionghu Luo <luoxhu@linux.ibm.com>
24918 * passes.def: Add sink_code pass before store_merging.
24919 * tree-ssa-sink.c (pass_sink_code:clone): New.
24921 2021-05-18 Bill Schmidt <wschmidt@linux.ibm.com>
24923 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Remove call to
24924 rs6000_special_adjust_field_align_p.
24925 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
24926 * config/rs6000/rs6000-call.c (rs6000_function_arg_boundary):
24927 Remove ABI warning.
24928 (rs6000_function_arg): Likewise.
24929 * config/rs6000/rs6000-protos.h
24930 (rs6000_special_adjust_field_align_p): Remove prototype.
24931 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
24933 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Remove call to
24934 rs6000_special_adjust_field_align_p.
24936 2021-05-18 Uroš Bizjak <ubizjak@gmail.com>
24939 * config/i386/i386.h (VALID_SSE2_REG_MODE):
24940 Add V4QI and V2HI modes.
24941 (VALID_INT_MODE_P): Ditto.
24942 * config/i386/mmx.md (VI_32): New mode iterator.
24943 (mmxvecsize): Handle V4QI and V2HI.
24945 (mov<VI_32:mode>): New expander.
24946 (*mov<mode>_internal): New insn pattern.
24947 (movmisalign<VI_32:mode>): New expander.
24948 (neg<VI_32:mode>): New expander.
24949 (<plusminus:insn><VI_32:mode>3): New expander.
24950 (*<plusminus:insn><VI_32:mode>3): New insn pattern.
24951 (mulv2hi3): New expander.
24952 (*mulv2hi3): New insn pattern.
24953 (one_cmpl<VI_32:mode>2): New expander.
24954 (*andnot<VI_32:mode>3): New insn pattern.
24955 (<any_logic:code><VI_32:mode>3): New expander.
24956 (*<any_logic:code><VI_32:mode>3): New insn pattern.
24958 2021-05-18 Uroš Bizjak <ubizjak@gmail.com>
24960 * config/i386/sse.md (<any_extend:insn>v4qiv4di2):
24961 Fix a mode mismatch with operand 1.
24963 2021-05-18 Uroš Bizjak <ubizjak@gmail.com>
24966 * config/i386/i386-expand.c (split_double_mode): Return
24967 temporary register when simplify_gen_subreg fails with
24968 the high half od the paradoxical subreg.
24970 2021-05-18 Richard Biener <rguenther@suse.de>
24972 * cfgexpand.c (expand_one_var): Pass in forced_stack_var
24973 and honor it when expanding.
24974 (expand_used_vars_for_block): Pass through forced_stack_var.
24975 (expand_used_vars): Likewise.
24976 (discover_nonconstant_array_refs_r): Set bits in
24977 forced_stack_vars instead of marking vars TREE_ADDRESSABLE.
24978 (avoid_type_punning_on_regs): Likewise.
24979 (discover_nonconstant_array_refs): Likewise.
24980 (pass_expand::execute): Create and pass down forced_stack_var
24981 bitmap. For parameters and returns temporarily set
24982 TREE_ADDRESSABLE when expand_function_start.
24984 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
24986 * doc/sourcebuild.texi: Document 'dg-note'.
24988 2021-05-18 Tobias Burnus <tobias@codesourcery.com>
24991 * configure: Regenerate.
24992 * configure.ac (BUILD_CFLAG, BUILD_CXXFLAGS): Add $(CFLAGS-$@).
24994 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
24996 * gimple.h (is_gimple_omp_oacc): Tighten.
24997 * omp-low.c (check_omp_nesting_restrictions): Adjust.
24999 2021-05-18 Richard Biener <rguenther@suse.de>
25001 * tree-ssa-operands.c (mark_address_taken): Simplify.
25003 2021-05-18 Martin Liska <mliska@suse.cz>
25005 * config/gcn/mkoffload.c (STR): Redefine.
25006 * config/i386/intelmic-mkoffload.c (STR): Likewise.
25007 * config/nvptx/mkoffload.c (STR): Likewise.
25009 2021-05-18 Martin Liska <mliska@suse.cz>
25011 * common/config/aarch64/aarch64-common.c (aarch64_parse_extension):
25012 Use startswith function instead of strncmp.
25013 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
25014 * common/config/riscv/riscv-common.c (riscv_subset_list::parse): Likewise.
25015 * config/aarch64/aarch64-sve-builtins-shapes.cc (parse_type): Likewise.
25016 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Likewise.
25017 * config/alpha/alpha.c (alpha_elf_section_type_flags): Likewise.
25018 * config/arm/aarch-common.c (arm_md_asm_adjust): Likewise.
25019 * config/arm/arm.c (arm_file_start): Likewise.
25020 (arm_valid_target_attribute_rec): Likewise.
25021 (thumb1_md_asm_adjust): Likewise.
25022 * config/arm/driver-arm.c (host_detect_local_cpu): Likewise.
25023 * config/avr/avr.c (STR_PREFIX_P): Likewise.
25024 (avr_set_current_function): Likewise.
25025 (avr_handle_addr_attribute): Likewise.
25026 (avr_asm_output_aligned_decl_common): Likewise.
25027 (avr_asm_named_section): Likewise.
25028 (avr_section_type_flags): Likewise.
25029 (avr_asm_select_section): Likewise.
25030 * config/c6x/c6x.c (c6x_in_small_data_p): Likewise.
25031 (c6x_section_type_flags): Likewise.
25032 * config/darwin-c.c (darwin_cfstring_ref_p): Likewise.
25033 (darwin_objc_declare_unresolved_class_reference): Likewise.
25034 (darwin_objc_declare_class_definition): Likewise.
25035 * config/darwin.c (indirect_data): Likewise.
25036 (darwin_encode_section_info): Likewise.
25037 (darwin_objc2_section): Likewise.
25038 (darwin_objc1_section): Likewise.
25039 (machopic_select_section): Likewise.
25040 (darwin_globalize_label): Likewise.
25041 (darwin_label_is_anonymous_local_objc_name): Likewise.
25042 (darwin_asm_named_section): Likewise.
25043 (darwin_asm_output_dwarf_offset): Likewise.
25044 * config/frv/frv.c (frv_string_begins_with): Likewise.
25045 (frv_in_small_data_p): Likewise.
25046 * config/gcn/mkoffload.c (STR): Likewise.
25048 * config/i386/i386-builtins.c (get_builtin_code_for_version): Likewise.
25049 * config/i386/i386-options.c (ix86_option_override_internal): Likewise.
25050 * config/i386/i386.c (x86_64_elf_section_type_flags): Likewise.
25051 (ix86_md_asm_adjust): Likewise.
25052 * config/i386/intelmic-mkoffload.c (STR): Likewise.
25053 * config/i386/winnt.c (i386_pe_asm_named_section): Likewise.
25054 (i386_pe_file_end): Likewise.
25055 * config/ia64/ia64.c (ia64_in_small_data_p): Likewise.
25056 (ia64_section_type_flags): Likewise.
25057 * config/mips/driver-native.c (host_detect_local_cpu): Likewise.
25058 * config/mips/mips.c (mips_handle_interrupt_attr): Likewise.
25059 (mips16_stub_function_p): Likewise.
25060 (mips_function_rodata_section): Likewise.
25061 * config/msp430/msp430.c (msp430_mcu_name): Likewise.
25062 (msp430_function_section): Likewise.
25063 (msp430_section_type_flags): Likewise.
25064 (msp430_expand_helper): Likewise.
25065 * config/nios2/nios2.c (nios2_small_section_name_p): Likewise.
25066 (nios2_valid_target_attribute_rec): Likewise.
25067 * config/nvptx/mkoffload.c (process): Likewise.
25069 * config/pa/som.h: Likewise.
25070 * config/pdp11/pdp11.c (pdp11_output_ident): Likewise.
25071 * config/riscv/riscv.c (riscv_elf_select_rtx_section): Likewise.
25072 * config/rs6000/rs6000.c (VTABLE_NAME_P): Likewise.
25073 (rs6000_inner_target_options): Likewise.
25074 * config/s390/driver-native.c (s390_host_detect_local_cpu): Likewise.
25075 * config/sparc/driver-sparc.c (host_detect_local_cpu): Likewise.
25076 * config/vax/vax.c (vax_output_int_move): Likewise.
25077 * config/vms/vms-ld.c (startswith): Likewise.
25078 (process_args): Likewise.
25080 * config/vms/vms.c: Likewise.
25082 2021-05-18 Jakub Jelinek <jakub@redhat.com>
25084 PR rtl-optimization/100590
25085 * regcprop.c (copyprop_hardreg_forward_1): Only DCE dead sets if
25086 they are NONJUMP_INSN_P.
25088 2021-05-18 Jakub Jelinek <jakub@redhat.com>
25091 * function.c (push_dummy_function): Set DECL_ARTIFICIAL and
25092 DECL_ASSEMBLER_NAME on the fn_decl.
25094 2021-05-18 Jakub Jelinek <jakub@redhat.com>
25096 PR tree-optimization/94589
25097 * tree-ssa-phiopt.c (spaceship_replacement): Pattern match
25098 phi result used in (res & ~1) == 0 comparison as res >= 0 as
25099 res == 2 would be UB with -ffinite-math-only.
25101 2021-05-18 Martin Liska <mliska@suse.cz>
25103 * Makefile.in: genversion.o should depend on DATESTAMP.
25105 2021-05-18 Claudiu Zissulescu <claziss@synopsys.com>
25107 * config/arc/simdext.md (negv2si2): Remove round bracket.
25109 2021-05-18 Andreas Krebbel <krebbel@linux.ibm.com>
25111 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Define
25112 _Bool as macro expanding to _Bool.
25114 2021-05-18 Andreas Krebbel <krebbel@linux.ibm.com>
25117 * tree.c (build_reference_type_for_mode)
25118 (build_pointer_type_for_mode): Pick pointer mode if MODE argument
25120 (build_reference_type, build_pointer_type): Invoke
25121 build_*_type_for_mode with VOIDmode.
25123 2021-05-17 Andrew MacLeod <amacleod@redhat.com>
25125 PR tree-optimization/100512
25126 * gimple-range-cache.cc (ranger_cache::set_global_range): Mark const
25127 and non-zero pointer ranges as invariant.
25128 * gimple-range.cc (gimple_ranger::range_of_stmt): Remove pointer
25129 processing from here.
25131 2021-05-17 Tom de Vries <tdevries@suse.de>
25134 * config/nvptx/nvptx-protos.h (nvptx_output_atomic_insn): Declare
25135 * config/nvptx/nvptx.c (nvptx_output_barrier)
25136 (nvptx_output_atomic_insn): New function.
25137 (nvptx_print_operand): Add support for 'B'.
25138 * config/nvptx/nvptx.md: Use nvptx_output_atomic_insn for atomic
25141 2021-05-17 Aldy Hernandez <aldyh@redhat.com>
25143 PR tree-optimization/100349
25144 * vr-values.c (bounds_of_var_in_loop): Bail if scev returns
25147 2021-05-17 Tamar Christina <tamar.christina@arm.com>
25149 * config/aarch64/driver-aarch64.c (DEFAULT_ARCH): New.
25150 (host_detect_local_cpu): Use it.
25152 2021-05-17 Martin Liska <mliska@suse.cz>
25154 * doc/invoke.texi: Add 2 missing dots.
25156 2021-05-17 Marius Hillenbrand <mhillen@linux.ibm.com>
25158 PR bootstrap/100552
25159 * configure.ac: Replace pattern substitution with call to sed.
25160 * configure: Regenerate.
25162 2021-05-17 Richard Biener <rguenther@suse.de>
25164 PR middle-end/100582
25165 * tree.c (array_at_struct_end_p): Get to the base of the
25166 reference before looking for the underlying decl.
25168 2021-05-17 Joern Rennecke <joern.rennecke@embecosm.com>
25170 * genoutput.c (validate_insn_alternatives) Make "wrong number of
25171 alternatives" message more specific, and remove assumption on where
25174 2021-05-17 Christophe Lyon <christophe.lyon@linaro.org>
25176 * config/arm/iterators.md (V16): New iterator.
25177 (VH_cvtto): New iterator.
25178 (v_cmp_result): Added V4HF and V8HF support.
25179 * config/arm/vec-common.md (vec_cmp<mode><v_cmp_result>): Use VDQWH.
25180 (vcond<mode><mode>): Likewise.
25181 (vcond_mask_<mode><v_cmp_result>): Likewise.
25182 (vcond<VH_cvtto><mode>): New expander.
25184 2021-05-17 Christophe Lyon <christophe.lyon@linaro.org>
25186 * config/arm/arm-protos.h (arm_expand_vector_compare): Update
25188 * config/arm/arm.c (arm_expand_vector_compare): Add support for
25190 (arm_expand_vcond): Likewise.
25191 * config/arm/iterators.md (supf): Remove VCMPNEQ_S, VCMPEQQ_S,
25192 VCMPEQQ_N_S, VCMPNEQ_N_S.
25193 (VCMPNEQ, VCMPEQQ, VCMPEQQ_N, VCMPNEQ_N): Remove.
25194 * config/arm/mve.md (@mve_vcmp<mve_cmp_op>q_<mode>): Add '@' prefix.
25195 (@mve_vcmp<mve_cmp_op>q_f<mode>): Likewise.
25196 (@mve_vcmp<mve_cmp_op>q_n_f<mode>): Likewise.
25197 (@mve_vpselq_<supf><mode>): Likewise.
25198 (@mve_vpselq_f<mode>"): Likewise.
25199 * config/arm/neon.md (vec_cmp<mode><v_cmp_result): Enable for MVE
25200 and move to vec-common.md.
25201 (vec_cmpu<mode><mode>): Likewise.
25202 (vcond<mode><mode>): Likewise.
25203 (vcond<V_cvtto><mode>): Likewise.
25204 (vcondu<mode><v_cmp_result>): Likewise.
25205 (vcond_mask_<mode><v_cmp_result>): Likewise.
25206 * config/arm/unspecs.md (VCMPNEQ_U, VCMPNEQ_S, VCMPEQQ_S)
25207 (VCMPEQQ_N_S, VCMPNEQ_N_S, VCMPEQQ_U, CMPEQQ_N_U, VCMPNEQ_N_U)
25208 (VCMPGEQ_N_S, VCMPGEQ_S, VCMPGTQ_N_S, VCMPGTQ_S, VCMPLEQ_N_S)
25209 (VCMPLEQ_S, VCMPLTQ_N_S, VCMPLTQ_S, VCMPCSQ_N_U, VCMPCSQ_U)
25210 (VCMPHIQ_N_U, VCMPHIQ_U): Remove.
25211 * config/arm/vec-common.md (vec_cmp<mode><v_cmp_result): Moved
25213 (vec_cmpu<mode><mode>): Likewise.
25214 (vcond<mode><mode>): Likewise.
25215 (vcond<V_cvtto><mode>): Likewise.
25216 (vcondu<mode><v_cmp_result>): Likewise.
25217 (vcond_mask_<mode><v_cmp_result>): Likewise. Added unsafe math
25220 2021-05-17 liuhongt <hongtao.liu@intel.com>
25223 * config/i386/i386.c (ix86_gimple_fold_builtin): Use
25224 gsi_insert_seq_before instead.
25226 2021-05-17 Christophe Lyon <christophe.lyon@linaro.org>
25228 * doc/sourcebuild.texi (arm_qbit_ok): Rename into...
25229 (arm_sat_ok): ...this.
25231 2021-05-17 Martin Liska <mliska@suse.cz>
25233 * lto-wrapper.c (merge_flto_options): Factor out a new function.
25234 (merge_and_complain): Use it.
25235 (run_gcc): Merge also linker command line -flto=foo argument
25238 2021-05-16 Christophe Lyon <christophe.lyon@linaro.org>
25240 * config/arm/arm.h (CPP_SPEC): Remove error message about
25241 -mlittle-endian/-mbig-endian conflict.
25243 2021-05-15 Bill Schmidt <wschmidt@linux.ibm.com>
25245 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
25246 __ROP_PROTECT__ if -mrop-protect is selected.
25248 2021-05-15 Bill Schmidt <wschmidt@linux.ibm.com>
25250 * config/rs6000/rs6000-internal.h (rs6000_stack): Add
25251 rop_hash_save_offset and rop_hash_size.
25252 * config/rs6000/rs6000-logue.c (rs6000_stack_info): Compute
25253 rop_hash_size and rop_hash_save_offset.
25254 (debug_stack_info): Dump rop_hash_save_offset and rop_hash_size.
25255 (rs6000_emit_prologue): Emit hashst[p] in prologue.
25256 (rs6000_emit_epilogue): Emit hashchk[p] in epilogue.
25257 * config/rs6000/rs6000.md (unspec): Add UNSPEC_HASHST and
25259 (hashst): New define_insn.
25260 (hashchk): Likewise.
25262 2021-05-15 Bill Schmidt <wschmidt@linux.ibm.com>
25264 * config/rs6000/rs6000.c (rs6000_option_override_internal):
25265 Disable shrink wrap when inserting ROP-protect instructions.
25266 * config/rs6000/rs6000.opt (mrop-protect): New option.
25267 (mprivileged): Likewise.
25268 * doc/invoke.texi: Document mrop-protect and mprivileged.
25270 2021-05-15 Hans-Peter Nilsson <hp@axis.com>
25272 * reorg.c (fill_slots_from_thread): Reinstate code typoed out in
25275 2021-05-15 Martin Jambor <mjambor@suse.cz>
25278 2021-05-13 Martin Jambor <mjambor@suse.cz>
25280 PR tree-optimization/100453
25281 * tree-sra.c (sra_modify_assign): All const base accesses do not
25282 need refreshing, not just those from decl_pool.
25283 (sra_modify_assign): Do not refresh into a const base decl.
25285 2021-05-15 Jakub Jelinek <jakub@redhat.com>
25287 PR rtl-optimization/100342
25288 * regcprop.c (copy_value): When copying a source reg in a wider
25289 mode than it has recorded for the value, adjust recorded destination
25290 mode too or punt if !REG_CAN_CHANGE_MODE_P.
25292 2021-05-14 Jason Merrill <jason@redhat.com>
25294 * intl.h: Add comments.
25296 2021-05-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25298 * config/aarch64/aarch64-simd.md
25299 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Split into...
25300 (aarch64_sqdmlsl2_lane<mode>_internal): ... This...
25301 (aarch64_sqdmlal2_lane<mode>_internal): ... And this.
25302 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Split into ...
25303 (aarch64_sqdmlsl2_laneq<mode>_internal): ... This...
25304 (aarch64_sqdmlal2_laneq<mode>_internal): ... And this.
25305 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Split into...
25306 (aarch64_sqdmlsl2_n<mode>_internal): ... This...
25307 (aarch64_sqdmlal2_n<mode>_internal): ... And this.
25309 2021-05-14 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
25312 * config/arm/arm_neon.h (vtst_s8): Replace call to vtst builtin with it's
25313 boolean logic equivalent.
25314 (vtst_s16): Likewise.
25315 (vtst_s32): Likewise.
25316 (vtst_u8): Likewise.
25317 (vtst_u16): Likewise.
25318 (vtst_u32): Likewise.
25319 (vtst_p8): Likewise.
25320 (vtst_p16): Likewise.
25321 (vtstq_s8): Likewise.
25322 (vtstq_s16): Likewise.
25323 (vtstq_s32): Likewise.
25324 (vtstq_u8): Likewise.
25325 (vtstq_u16): Likewise.
25326 (vtstq_u32): Likewise.
25327 (vtstq_p8): Likewise.
25328 (vtstq_p16): Likewise.
25329 * config/arm/arm_neon_builtins.def: Remove entry for vtst.
25330 * config/arm/neon.md (neon_vtst<mode>): Remove pattern.
25332 2021-05-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25334 * config/aarch64/aarch64-simd.md (aarch64_sqdmlal2<mode>): Merge into...
25335 (aarch64_sqdml<SBINQOPS:as>l2<mode>): ... This.
25336 (aarch64_sqdmlsl2<mode>): Delete.
25337 (aarch64_sqdmlal2_lane<mode>): Merge this...
25338 (aarch64_sqdmlsl2_lane<mode>): ... And this...
25339 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>): ... Into this.
25340 (aarch64_sqdmlal2_laneq<mode>): Merge this...
25341 (aarch64_sqdmlsl2_laneq<mode>): ... And this...
25342 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>): ... Into this.
25343 (aarch64_sqdmlal2_n<mode>): Merge this...
25344 (aarch64_sqdmlsl2_n<mode>): ... And this...
25345 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>): ... Into this.
25347 2021-05-13 Martin Sebor <msebor@redhat.com>
25349 PR middle-end/100574
25350 * builtins.c (access_ref::get_ref): Improve detection of PHIs with
25351 all null arguments.
25353 2021-05-13 Martin Sebor <msebor@redhat.com>
25355 PR tree-optimization/93100
25356 PR middle-end/98583
25357 * tree-ssa-uninit.c (check_defs): Exclude intrinsic functions that
25358 don't modify referenced objects.
25360 2021-05-13 Martin Jambor <mjambor@suse.cz>
25362 PR tree-optimization/100453
25363 * tree-sra.c (sra_modify_assign): All const base accesses do not
25364 need refreshing, not just those from decl_pool.
25365 (sra_modify_assign): Do not refresh into a const base decl.
25367 2021-05-13 Martin Liska <mliska@suse.cz>
25369 * tree-ssa-dom.c: Remove m_simplifier.
25371 2021-05-13 Richard Earnshaw <rearnsha@arm.com>
25374 * config/arm/arm.c (arm_canonicalize_comparison): Correctly
25375 canonicalize DImode inequality comparisons against the
25376 maximum integral value.
25378 2021-05-13 Jakub Jelinek <jakub@redhat.com>
25380 PR tree-optimization/98856
25381 * config/i386/i386.c (ix86_shift_rotate_cost): Add CODE argument.
25382 Expect V2DI and V4DI arithmetic right shifts to be emulated.
25383 (ix86_rtx_costs, ix86_add_stmt_cost): Adjust ix86_shift_rotate_cost
25385 * config/i386/i386-expand.c (expand_vec_perm_2perm_interleave,
25386 expand_vec_perm_2perm_pblendv): New functions.
25387 (ix86_expand_vec_perm_const_1): Use them.
25388 * config/i386/sse.md (ashr<mode>3<mask_name>): Rename to ...
25389 (<mask_codefor>ashr<mode>3<mask_name>): ... this.
25390 (ashr<mode>3): New define_expand with VI248_AVX512BW iterator.
25391 (ashrv4di3): New define_expand.
25392 (ashrv2di3): Change condition to TARGET_SSE2, handle !TARGET_XOP
25393 and !TARGET_AVX512VL expansion.
25395 2021-05-13 Uroš Bizjak <ubizjak@gmail.com>
25398 * config/i386/i386-expand.c (ix86_expand_sse_movcc): Force mode
25399 sizes < 16 to a register when constructing vpcmov pattern.
25400 * config/i386/mmx.md (*xop_pcmov_<mode>): Use MMXMODE124 mode.
25402 2021-05-13 Martin Liska <mliska@suse.cz>
25404 * gcov-io.c (gcov_write_block): Remove.
25405 (gcov_write_words): Likewise.
25406 (gcov_read_words): Re-implement using gcov_read_bytes.
25407 (gcov_allocate): Remove.
25408 (GCOV_BLOCK_SIZE): Likewise.
25409 (struct gcov_var): Remove most of the fields.
25410 (gcov_position): Implement with ftell.
25411 (gcov_rewrite): Remove setting of start and offset fields.
25412 (from_file): Re-format.
25413 (gcov_open): Remove setbuf call. It should not be needed.
25414 (gcov_close): Remove internal buffer handling.
25415 (gcov_magic): Use __builtin_bswap32.
25416 (gcov_write_counter): Use directly gcov_write_unsigned.
25417 (gcov_write_string): Use direct fwrite and do not round
25419 (gcov_seek): Use directly fseek.
25420 (gcov_write_tag): Use gcov_write_unsigned directly.
25421 (gcov_write_length): Likewise.
25422 (gcov_write_tag_length): Likewise.
25423 (gcov_read_bytes): Use directly fread.
25424 (gcov_read_unsigned): Use gcov_read_words.
25425 (gcov_read_counter): Likewise.
25426 (gcov_read_string): Use gcov_read_bytes.
25427 * gcov-io.h (GCOV_WORD_SIZE): Adjust to reflect
25428 that size is not in bytes, but words (4B).
25429 (GCOV_TAG_FUNCTION_LENGTH): Likewise.
25430 (GCOV_TAG_ARCS_LENGTH): Likewise.
25431 (GCOV_TAG_ARCS_NUM): Likewise.
25432 (GCOV_TAG_COUNTER_LENGTH): Likewise.
25433 (GCOV_TAG_COUNTER_NUM): Likewise.
25434 (GCOV_TAG_SUMMARY_LENGTH): Likewise.
25436 2021-05-13 liuhongt <hongtao.liu@intel.com>
25439 * config/i386/sse.md (ssedoublevecmode): Add attribute for
25440 V64QI/V32HI/V16SI/V4DI.
25441 (ssehalfvecmode): Add attribute for V2DI/V2DF.
25442 (*vec_concatv4si_0): Extend to VI124_128.
25443 (*vec_concat<mode>_0): New pre-reload splitter.
25444 * config/i386/predicates.md (movq_parallel): New predicate.
25446 2021-05-13 Alexandre Oliva <oliva@adacore.com>
25448 * targhooks.c (default_zero_call_used_regs): Retry using
25449 successfully-zeroed registers as sources.
25451 2021-05-12 Tobias Burnus <tobias@codesourcery.com>
25453 * omp-low.c (finish_taskreg_scan): Use the proper detach decl.
25455 2021-05-12 Aldy Hernandez <aldyh@redhat.com>
25458 * gimple-range.cc (range_of_builtin_call): Skip out on
25459 processing __builtin_clz when varying.
25461 2021-05-12 Tom de Vries <tdevries@suse.de>
25464 * config/nvptx/nvptx-opts.h (enum ptx_version): New enum.
25465 * config/nvptx/nvptx.c (nvptx_file_start): Print .version according
25466 to ptx_version_option.
25467 * config/nvptx/nvptx.h (TARGET_PTX_6_3): Define.
25468 * config/nvptx/nvptx.md (define_insn "nvptx_shuffle<mode>")
25469 (define_insn "nvptx_vote_ballot"): Use sync variant for
25471 * config/nvptx/nvptx.opt (ptx_version): Add enum.
25472 (mptx): Add option.
25473 * doc/invoke.texi (Nvidia PTX Options): Add mptx item.
25475 2021-05-12 Richard Biener <rguenther@suse.de>
25477 PR tree-optimization/100566
25478 * tree-ssa-sccvn.c (dominated_by_p_w_unex): Properly handle
25479 allow_back for all edge queries.
25481 2021-05-12 liuhongt <hongtao.liu@intel.com>
25484 * config/i386/sse.md (<sse4_1_avx2>_pblendvb): Add
25485 splitters for pblendvb of NOT mask register.
25487 2021-05-12 Richard Biener <rguenther@suse.de>
25489 PR tree-optimization/100519
25490 * tree-ssa-reassoc.c (can_associate_p): Split into...
25491 (can_associate_op_p): ... this
25492 (can_associate_type_p): ... and this.
25493 (is_reassociable_op): Call can_associate_op_p.
25494 (break_up_subtract_bb): Call the appropriate predicates.
25495 (reassociate_bb): Likewise.
25497 2021-05-12 Martin Liska <mliska@suse.cz>
25499 * lto-wrapper.c (merge_and_complain): Merge -flto=arg options.
25500 (run_gcc): Use -flto argument detection for merged
25503 2021-05-12 Martin Liska <mliska@suse.cz>
25505 * lto-wrapper.c (print_lto_docs_link): New function.
25506 (run_gcc): Print warning about missing job server detection
25507 after we know NR of partitions. Do the same for -flto{,=1}.
25508 * opts.c (get_option_html_page): Support -flto option.
25510 2021-05-12 Martin Liska <mliska@suse.cz>
25512 * lto-wrapper.c (get_options_from_collect_gcc_options): Change
25514 (append_option): Remove.
25515 (find_option): Rework to use the vector type.
25516 (remove_option): Remove.
25517 (merge_and_complain): Use vectors for cl_decoded_option data
25519 (append_compiler_options): Likewise.
25520 (append_diag_options): Likewise.
25521 (append_linker_options): Likewise.
25522 (append_offload_options): Likewise.
25523 (compile_offload_image): Likewise.
25524 (compile_images_for_offload_targets): Likewise.
25525 (find_and_merge_options): Likewise.
25526 (run_gcc): Likewise.
25528 2021-05-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
25531 * dwarf2out.c (dwarf2out_finish): Set
25532 have_multiple_function_sections with multi-range text_section.
25534 2021-05-12 Martin Liska <mliska@suse.cz>
25536 PR bootstrap/100560
25537 * Makefile.in: Remove version.h from linker command line.
25539 2021-05-12 Richard Biener <rguenther@suse.de>
25541 PR middle-end/100547
25542 * rtl.h (rtvec_alloc): Make argument size_t.
25543 * rtl.c (rtvec_alloc): Verify the count is less than INT_MAX.
25545 2021-05-12 Jakub Jelinek <jakub@redhat.com>
25547 PR middle-end/100508
25548 * cfgexpand.c (expand_debug_expr): For DEBUG_EXPR_DECL with vector
25549 type, don't reuse DECL_RTL if it has different mode, instead force
25550 creation of a new DEBUG_EXPR.
25552 2021-05-12 Jakub Jelinek <jakub@redhat.com>
25553 Marc Glisse <marc.glisse@inria.fr>
25555 PR tree-optimization/94589
25556 * match.pd ((X & Y) == X -> (X & ~Y) == 0,
25557 (X | Y) == Y -> (X & ~Y) == 0): New GIMPLE simplifications.
25559 2021-05-12 Uroš Bizjak <ubizjak@gmail.com>
25562 * config/i386/i386-expand.c (ix86_expand_sse_movcc): Handle V2SF mode.
25563 * config/i386/mmx.md (MMXMODE124): New mode iterator.
25565 (mmxintvecmode): New mode attribute.
25566 (mmxintvecmodelower): Ditto.
25567 (*mmx_maskcmpv2sf3_comm): New insn pattern.
25568 (*mmx_maskcmpv2sf3): Ditto.
25569 (vec_cmpv2sfv2si): New expander.
25570 (vcond<V2FI:mode>v2si): Ditto.
25571 (mmx_vlendvps): New insn pattern.
25572 (vcond<MMXMODE124:mode><MMXMODEI:mode>): Also handle V2SFmode.
25573 (vcondu<MMXMODE124:mode><MMXMODEI:mode>): Ditto.
25574 (vcond_mask_<mode><mmxintvecmodelower>): Ditto.
25576 2021-05-11 Martin Sebor <msebor@redhat.com>
25578 PR middle-end/21433
25579 * expr.c (expand_expr_real_1): Replace unreachable code with an assert.
25581 2021-05-11 Richard Biener <rguenther@suse.de>
25583 * gimple-fold.c (gimple_fold_call): Do not call
25584 maybe_fold_reference on call arguments or the static chain.
25585 (fold_stmt_1): Do not call maybe_fold_reference on GIMPLE_ASM
25588 2021-05-11 Martin Liska <mliska@suse.cz>
25590 * builtins.def (DEF_HSAIL_BUILTIN): Remove.
25591 (DEF_HSAIL_ATOMIC_BUILTIN): Likewise.
25592 (DEF_HSAIL_SAT_BUILTIN): Likewise.
25593 (DEF_HSAIL_INTR_BUILTIN): Likewise.
25594 (DEF_HSAIL_CVT_ZEROI_SAT_BUILTIN): Likewise.
25595 * doc/frontends.texi: Remove BRIG.
25596 * doc/install.texi: Likewise.
25597 * doc/invoke.texi: Likewise.
25598 * doc/standards.texi: Likewise.
25599 * brig-builtins.def: Removed.
25600 * brig/ChangeLog: Removed.
25601 * brig/Make-lang.in: Removed.
25602 * brig/brig-builtins.h: Removed.
25603 * brig/brig-c.h: Removed.
25604 * brig/brig-lang.c: Removed.
25605 * brig/brigfrontend/brig-arg-block-handler.cc: Removed.
25606 * brig/brigfrontend/brig-atomic-inst-handler.cc: Removed.
25607 * brig/brigfrontend/brig-basic-inst-handler.cc: Removed.
25608 * brig/brigfrontend/brig-branch-inst-handler.cc: Removed.
25609 * brig/brigfrontend/brig-cmp-inst-handler.cc: Removed.
25610 * brig/brigfrontend/brig-code-entry-handler.cc: Removed.
25611 * brig/brigfrontend/brig-code-entry-handler.h: Removed.
25612 * brig/brigfrontend/brig-comment-handler.cc: Removed.
25613 * brig/brigfrontend/brig-control-handler.cc: Removed.
25614 * brig/brigfrontend/brig-copy-move-inst-handler.cc: Removed.
25615 * brig/brigfrontend/brig-cvt-inst-handler.cc: Removed.
25616 * brig/brigfrontend/brig-fbarrier-handler.cc: Removed.
25617 * brig/brigfrontend/brig-function-handler.cc: Removed.
25618 * brig/brigfrontend/brig-function.cc: Removed.
25619 * brig/brigfrontend/brig-function.h: Removed.
25620 * brig/brigfrontend/brig-inst-mod-handler.cc: Removed.
25621 * brig/brigfrontend/brig-label-handler.cc: Removed.
25622 * brig/brigfrontend/brig-lane-inst-handler.cc: Removed.
25623 * brig/brigfrontend/brig-machine.c: Removed.
25624 * brig/brigfrontend/brig-machine.h: Removed.
25625 * brig/brigfrontend/brig-mem-inst-handler.cc: Removed.
25626 * brig/brigfrontend/brig-module-handler.cc: Removed.
25627 * brig/brigfrontend/brig-queue-inst-handler.cc: Removed.
25628 * brig/brigfrontend/brig-seg-inst-handler.cc: Removed.
25629 * brig/brigfrontend/brig-signal-inst-handler.cc: Removed.
25630 * brig/brigfrontend/brig-to-generic.cc: Removed.
25631 * brig/brigfrontend/brig-to-generic.h: Removed.
25632 * brig/brigfrontend/brig-util.cc: Removed.
25633 * brig/brigfrontend/brig-util.h: Removed.
25634 * brig/brigfrontend/brig-variable-handler.cc: Removed.
25635 * brig/brigfrontend/hsa-brig-format.h: Removed.
25636 * brig/brigfrontend/phsa.h: Removed.
25637 * brig/brigspec.c: Removed.
25638 * brig/config-lang.in: Removed.
25639 * brig/gccbrig.texi: Removed.
25640 * brig/lang-specs.h: Removed.
25641 * brig/lang.opt: Removed.
25643 2021-05-11 Richard Biener <rguenther@suse.de>
25646 * ipa-param-manipulation.c
25647 (ipa_param_body_adjustments::modify_call_stmt): Avoid
25648 altering SSA_NAME_DEF_STMT by adjusting the calls LHS
25649 via gimple_call_lhs_ptr.
25651 2021-05-11 Alex Coplan <alex.coplan@arm.com>
25654 * config/arm/arm.c (cmse_nonsecure_call_inline_register_clear):
25655 Avoid emitting CFA adjusts on the sp if we have the fp.
25657 2021-05-11 Richard Sandiford <richard.sandiford@arm.com>
25659 * config/aarch64/iterators.md (VMUL_CHANGE_NLANES): Delete.
25660 (VMULD): New iterator.
25661 (VCOND): Handle V4HF and V8HF.
25662 (VCONQ): Fix entry for V2SF.
25663 * config/aarch64/aarch64-simd.md (mul_lane<mode>3): Use VMULD
25664 instead of VMUL. Use a 64-bit vector mode for the indexed operand.
25665 (*aarch64_mul3_elt_<vswap_width_name><mode>): Merge with...
25666 (mul_laneq<mode>3): ...this define_insn. Use VMUL instead of VDQSF.
25667 Use a 128-bit vector mode for the indexed operand. Use stype for
25668 the scheduling type.
25670 2021-05-11 Richard Biener <rguenther@suse.de>
25672 * gimple-fold.c (maybe_fold_reference): Only return
25673 is_gimple_min_invariant values.
25675 2021-05-11 Richard Biener <rguenther@suse.de>
25677 PR middle-end/100509
25678 * gimple-fold.c (fold_gimple_assign): Only call
25679 get_symbol_constant_value on register type symbols.
25681 2021-05-11 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
25682 Joe Ramsay <joe.ramsay@arm.com>
25685 * config/arm/arm_mve.h (__arm_vstrwq_scatter_offset): Fix wrong arguments.
25686 (__arm_vcmpneq): Remove duplicate definition.
25687 (__arm_vstrwq_scatter_offset_p): Likewise.
25688 (__arm_vmaxq_x): Likewise.
25689 (__arm_vmlsdavaq): Likewise.
25690 (__arm_vmlsdavaxq): Likewise.
25691 (__arm_vmlsdavq_p): Likewise.
25692 (__arm_vmlsdavxq_p): Likewise.
25693 (__arm_vrmlaldavhaq): Likewise.
25694 (__arm_vstrbq_p): Likewise.
25695 (__arm_vstrbq_scatter_offset): Likewise.
25696 (__arm_vstrbq_scatter_offset_p): Likewise.
25697 (__arm_vstrdq_scatter_offset): Likewise.
25698 (__arm_vstrdq_scatter_offset_p): Likewise.
25699 (__arm_vstrdq_scatter_shifted_offset): Likewise.
25700 (__arm_vstrdq_scatter_shifted_offset_p): Likewise.
25702 2021-05-11 Jakub Jelinek <jakub@redhat.com>
25704 PR middle-end/100471
25705 * omp-low.c (lower_omp_task_reductions): For OMP_TASKLOOP, if data
25706 is 0, bypass the reduction loop including
25707 GOMP_taskgroup_reduction_unregister call.
25709 2021-05-11 Kewen Lin <linkw@linux.ibm.com>
25711 * config/rs6000/rs6000.c (struct rs6000_cost_data): New member
25712 costing_for_scalar.
25713 (rs6000_density_test): Early return if costing_for_scalar is true.
25714 (rs6000_init_cost): Init costing_for_scalar of rs6000_cost_data.
25716 2021-05-11 Kewen Lin <linkw@linux.ibm.com>
25718 * doc/tm.texi: Regenerated.
25719 * target.def (init_cost): Add new parameter costing_for_scalar.
25720 * targhooks.c (default_init_cost): Adjust for new parameter.
25721 * targhooks.h (default_init_cost): Likewise.
25722 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Likewise.
25723 (vect_compute_single_scalar_iteration_cost): Likewise.
25724 (vect_analyze_loop_2): Likewise.
25725 * tree-vect-slp.c (_bb_vec_info::_bb_vec_info): Likewise.
25726 (vect_bb_vectorization_profitable_p): Likewise.
25727 * tree-vectorizer.h (init_cost): Likewise.
25728 * config/aarch64/aarch64.c (aarch64_init_cost): Likewise.
25729 * config/i386/i386.c (ix86_init_cost): Likewise.
25730 * config/rs6000/rs6000.c (rs6000_init_cost): Likewise.
25732 2021-05-11 Kewen Lin <linkw@linux.ibm.com>
25734 * config/rs6000/rs6000.c (rs6000_vect_nonmem): Renamed to
25735 vect_nonmem and moved into...
25736 (struct rs6000_cost_data): ...here.
25737 (rs6000_init_cost): Use vect_nonmem of cost_data instead.
25738 (rs6000_add_stmt_cost): Likewise.
25739 (rs6000_finish_cost): Likewise.
25741 2021-05-10 Eric Botcazou <ebotcazou@adacore.com>
25743 * range-op.cc (get_bool_state): Adjust head comment.
25744 (operator_not_equal::op1_range): Fix comment.
25745 (operator_bitwise_xor::op1_range): Remove call to gcc_unreachable.
25747 2021-05-10 Martin Sebor <msebor@redhat.com>
25749 PR middle-end/100425
25750 PR middle-end/100510
25751 * gimple-ssa-warn-alloca.c (pass_walloca::firast_time_p): Rename...
25752 (pass_walloca::xlimit_certain_p): ...to this.
25753 (pass_walloca::gate): Execute for any kind of handled warning.
25754 (pass_walloca::execute): Avoid issuing "maybe" and "unbounded"
25755 warnings when xlimit_certain_p is set.
25757 2021-05-10 Pat Haugen <pthaugen@linux.ibm.com>
25759 * config/rs6000/rs6000.c (rs6000_ira_change_pseudo_allocno_class):
25760 Return ALTIVEC_REGS if that is best_class.
25761 (rs6000_compute_pressure_classes): Add ALTIVEC_REGS.
25763 2021-05-10 Christophe Lyon <christophe.lyon@linaro.org>
25765 * config/arm/arm.h (CPP_SPEC): Remove error message about
25768 2021-05-10 Martin Jambor <mjambor@suse.cz>
25770 * ipa-prop.h (IPA_NODE_REF): Removed.
25771 (IPA_NODE_REF_GET_CREATE): Likewise.
25772 (IPA_EDGE_REF): Likewise.
25773 (IPA_EDGE_REF_GET_CREATE): Likewise.
25774 (IS_VALID_JUMP_FUNC_INDEX): Likewise.
25775 * ipa-cp.c (print_all_lattices): Replaced IPA_NODE_REF with a direct
25776 use of ipa_node_params_sum.
25777 (ipcp_versionable_function_p): Likewise.
25778 (push_node_to_stack): Likewise.
25779 (pop_node_from_stack): Likewise.
25780 (set_single_call_flag): Replaced two IPA_NODE_REF with one single
25781 direct use of ipa_node_params_sum.
25782 (initialize_node_lattices): Replaced IPA_NODE_REF with a direct use of
25783 ipa_node_params_sum.
25784 (ipa_context_from_jfunc): Replaced IPA_EDGE_REF with a direct use of
25786 (ipcp_verify_propagated_values): Replaced IPA_NODE_REF with a direct
25787 use of ipa_node_params_sum.
25788 (self_recursively_generated_p): Likewise.
25789 (propagate_scalar_across_jump_function): Likewise.
25790 (propagate_context_across_jump_function): Replaced IPA_EDGE_REF with a
25791 direct use of ipa_edge_args_sum, moved the lookup after the early
25792 exit. Replaced IPA_NODE_REF with a direct use of ipa_node_params_sum.
25793 (propagate_bits_across_jump_function): Replaced IPA_NODE_REF with
25794 direct uses of ipa_node_params_sum.
25795 (propagate_vr_across_jump_function): Likewise.
25796 (propagate_aggregate_lattice): Likewise.
25797 (propagate_aggs_across_jump_function): Likewise.
25798 (propagate_constants_across_call): Likewise, also replaced
25799 IPA_EDGE_REF with a direct use of ipa_edge_args_sum.
25800 (good_cloning_opportunity_p): Replaced IPA_NODE_REF with a direct use
25801 of ipa_node_params_sum.
25802 (estimate_local_effects): Likewise.
25803 (add_all_node_vals_to_toposort): Likewise.
25804 (propagate_constants_topo): Likewise.
25805 (ipcp_propagate_stage): Likewise.
25806 (ipcp_discover_new_direct_edges): Likewise.
25807 (calls_same_node_or_its_all_contexts_clone_p): Likewise.
25808 (cgraph_edge_brings_value_p): Likewise (in both overloaded functions).
25809 (get_info_about_necessary_edges): Likewise.
25810 (want_remove_some_param_p): Likewise.
25811 (create_specialized_node): Likewise.
25812 (self_recursive_pass_through_p): Likewise.
25813 (self_recursive_agg_pass_through_p): Likewise.
25814 (find_more_scalar_values_for_callers_subset): Likewise and also
25815 replaced IPA_EDGE_REF with direct uses of ipa_edge_args_sum, in one
25816 case replacing two of those with a single query.
25817 (find_more_contexts_for_caller_subset): Likewise for the
25818 ipa_polymorphic_call_context overload.
25819 (intersect_aggregates_with_edge): Replaced IPA_EDGE_REF with a direct
25820 use of ipa_edge_args_sum. Replaced IPA_NODE_REF with direct uses of
25821 ipa_node_params_sum.
25822 (find_aggregate_values_for_callers_subset): Likewise, also reusing
25823 results of ipa_edge_args_sum->get.
25824 (cgraph_edge_brings_all_scalars_for_node): Replaced IPA_NODE_REF with
25825 direct uses of ipa_node_params_sum, replaced IPA_EDGE_REF with a
25826 direct use of ipa_edge_args_sum.
25827 (cgraph_edge_brings_all_agg_vals_for_node): Likewise, moved node
25828 summary query after the early exit and reused the result later.
25829 (decide_about_value): Replaced IPA_NODE_REF with a direct use of
25830 ipa_node_params_sum.
25831 (decide_whether_version_node): Likewise. Removed re-querying for
25832 summaries after cloning.
25833 (spread_undeadness): Replaced IPA_NODE_REF with a direct use of
25834 ipa_node_params_sum.
25835 (has_undead_caller_from_outside_scc_p): Likewise, reusing results of
25837 (identify_dead_nodes): Likewise.
25838 (ipcp_store_bits_results): Replaced IPA_NODE_REF with direct uses of
25839 ipa_node_params_sum.
25840 (ipcp_store_vr_results): Likewise.
25841 * ipa-fnsummary.c (evaluate_properties_for_edge): Likewise.
25842 (ipa_fn_summary_t::duplicate): Likewise.
25843 (analyze_function_body): Likewise.
25844 (estimate_calls_size_and_time): Likewise.
25845 (ipa_cached_call_context::duplicate_from): Likewise.
25846 (ipa_call_context::equal_to): Likewise.
25847 (remap_edge_params): Likewise.
25848 (ipa_merge_fn_summary_after_inlining): Likewise.
25849 (inline_read_section): Likewise.
25850 * ipa-icf.c (sem_function::param_used_p): Likewise.
25851 * ipa-modref.c (compute_parm_map): Likewise.
25852 (compute_parm_map): Replaced IPA_EDGE_REF with a direct use of
25854 (get_access_for_fnspec): Replaced IPA_NODE_REF with a direct use of
25855 ipa_node_params_sum and replaced IPA_EDGE_REF with a direct use of
25857 * ipa-profile.c (check_argument_count): Likewise.
25858 * ipa-prop.c (ipa_alloc_node_params): Replaced IPA_NODE_REF_GET_CREATE
25859 with a direct use of ipa_node_params_sum.
25860 (ipa_initialize_node_params): Likewise.
25861 (ipa_print_node_jump_functions_for_edge): Replaced IPA_EDGE_REF with a
25862 direct use of ipa_edge_args_sum and reused the query result.
25863 (ipa_compute_jump_functions_for_edge): Replaced IPA_NODE_REF with a
25864 direct use of ipa_node_params_sum and replaced IPA_EDGE_REF with a
25865 direct use of ipa_edge_args_sum.
25866 (ipa_note_param_call): Replaced IPA_NODE_REF with a direct use of
25867 ipa_node_params_sum and reused the result of the query.
25868 (ipa_analyze_node): Likewise.
25869 (ipa_analyze_controlled_uses): Replaced IPA_NODE_REF with a direct use
25870 of ipa_node_params_sum.
25871 (update_jump_functions_after_inlining): Replaced IPA_EDGE_REF with
25872 direct uses of ipa_edge_args_sum.
25873 (update_indirect_edges_after_inlining): Replaced IPA_NODE_REF with
25874 direct uses of ipa_node_params_sum and replaced IPA_EDGE_REF with a
25875 direct use of ipa_edge_args_sum. Removed superficial re-querying the
25877 (propagate_controlled_uses): Replaced IPA_NODE_REF with direct uses of
25878 ipa_node_params_sum and replaced IPA_EDGE_REF with a direct use of
25880 (ipa_propagate_indirect_call_infos): Replaced IPA_EDGE_REF with a
25881 direct use of ipa_edge_args_sum.
25882 (ipa_edge_args_sum_t::duplicate): Replaced IPA_NODE_REF with a direct
25883 use of ipa_node_params_sum.
25884 (ipa_print_node_params): Likewise.
25885 (ipa_write_node_info): Likewise and also replaced IPA_EDGE_REF with
25886 direct uses of ipa_edge_args_sum.
25887 (ipa_read_edge_info): Replaced IPA_EDGE_REF with a direct use of
25889 (ipa_read_node_info): Replaced IPA_NODE_REF with a direct use of
25890 ipa_node_params_sum.
25891 (ipa_prop_write_jump_functions): Likewise. Move variable node to the
25892 scopes where it is used.
25894 2021-05-10 Uroš Bizjak <ubizjak@gmail.com>
25896 * config/i386/i386-expand.c (ix86_expand_sse_movcc)
25897 <case E_V2SImode>: Force op_true to register.
25899 2021-05-10 Christophe Lyon <christophe.lyon@linaro.org>
25901 * config/arm/iterators.md (MVE_FP_COMPARISONS): New.
25902 * config/arm/mve.md (mve_vcmp<mve_cmp_op>q_f<mode>)
25903 (mve_vcmp<mve_cmp_op>q_n_f<mode>): New, merge all vcmp_*f*
25905 (mve_vcmpeqq_f<mode>, mve_vcmpeqq_n_f<mode>, mve_vcmpgeq_f<mode>)
25906 (mve_vcmpgeq_n_f<mode>, mve_vcmpgtq_f<mode>)
25907 (mve_vcmpgtq_n_f<mode>, mve_vcmpleq_f<mode>)
25908 (mve_vcmpleq_n_f<mode>, mve_vcmpltq_f<mode>)
25909 (mve_vcmpltq_n_f<mode>, mve_vcmpneq_f<mode>)
25910 (mve_vcmpneq_n_f<mode>): Remove.
25911 * config/arm/unspecs.md (VCMPEQQ_F, VCMPEQQ_N_F, VCMPGEQ_F)
25912 (VCMPGEQ_N_F, VCMPGTQ_F, VCMPGTQ_N_F, VCMPLEQ_F, VCMPLEQ_N_F)
25913 (VCMPLTQ_F, VCMPLTQ_N_F, VCMPNEQ_F, VCMPNEQ_N_F): Remove.
25915 2021-05-10 Christophe Lyon <christophe.lyon@linaro.org>
25917 * config/arm/iterators.md (MVE_COMPARISONS): New.
25919 (mve_cmp_type): New.
25920 * config/arm/mve.md (mve_vcmp<mve_cmp_op>q_<mode>): New, merge all
25922 (mve_vcmpneq_<mode>, mve_vcmpcsq_n_<mode>, mve_vcmpcsq_<mode>)
25923 (mve_vcmpeqq_n_<mode>, mve_vcmpeqq_<mode>, mve_vcmpgeq_n_<mode>)
25924 (mve_vcmpgeq_<mode>, mve_vcmpgtq_n_<mode>, mve_vcmpgtq_<mode>)
25925 (mve_vcmphiq_n_<mode>, mve_vcmphiq_<mode>, mve_vcmpleq_n_<mode>)
25926 (mve_vcmpleq_<mode>, mve_vcmpltq_n_<mode>, mve_vcmpltq_<mode>)
25927 (mve_vcmpneq_n_<mode>, mve_vcmpltq_n_<mode>, mve_vcmpltq_<mode>)
25928 (mve_vcmpneq_n_<mode>): Remove.
25930 2021-05-10 Christophe Lyon <christophe.lyon@linaro.org>
25932 * config/arm/arm_mve.h (__arm_vcmp*): Remove 's' suffix.
25933 * config/arm/arm_mve_builtins.def (vcmp*): Remove 's' suffix.
25934 * config/arm/mve.md (mve_vcmp*): Remove 's' suffix in pattern
25937 2021-05-10 Christophe Lyon <christophe.lyon@linaro.org>
25939 * config/arm/arm_mve_builtins.def (vcmpneq_u): Remove.
25940 (vcmpneq_n_u): Likewise.
25941 (vcmpeqq_u,): Likewise.
25942 (vcmpeqq_n_u): Likewise.
25943 * config/arm/iterators.md (supf): Remove VCMPNEQ_U, VCMPEQQ_U,
25944 VCMPEQQ_N_U and VCMPNEQ_N_U.
25945 * config/arm/mve.md (mve_vcmpneq): Remove <supf> iteration.
25946 (mve_vcmpeqq_n): Likewise.
25947 (mve_vcmpeqq): Likewise.
25948 (mve_vcmpneq_n): Likewise.
25950 2021-05-10 Christophe Lyon <christophe.lyon@linaro.org>
25952 * config/arm/arm_mve.h (__arm_vcmpeq*u*, __arm_vcmpne*u*): Call
25953 the 's' version of the builtin.
25955 2021-05-10 Richard Biener <rguenther@suse.de>
25957 PR tree-optimization/100492
25958 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
25959 Find nothing when the loop contains an irreducible region.
25961 2021-05-10 Richard Biener <rguenther@suse.de>
25963 PR middle-end/100464
25965 * gimple-fold.c (canonicalize_constructor_val): Do not set
25968 2021-05-10 Richard Biener <rguenther@suse.de>
25970 PR tree-optimization/100434
25971 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
25973 (dse_optimize_stmt): Handle call LHS by dropping the
25974 LHS or the whole call if it doesn't have other
25976 (pass_dse::execute): Adjust.
25978 2021-05-10 Martin Liska <mliska@suse.cz>
25980 * Makefile.in: Add missing genversion rule.
25982 2021-05-10 Alex Coplan <alex.coplan@arm.com>
25985 * config/arm/mve.md (*mve_mov<mode>): Simplify output code. Use
25986 vldrw.u32 and vstrw.32 for V2D[IF]mode loads and stores.
25988 2021-05-10 Martin Liska <mliska@suse.cz>
25990 * builtins.c (is_builtin_name): Use startswith
25991 function instead of strncmp.
25992 * collect2.c (main): Likewise.
25993 (has_lto_section): Likewise.
25994 (scan_libraries): Likewise.
25995 * coverage.c (coverage_checksum_string): Likewise.
25996 (coverage_init): Likewise.
25997 * dwarf2out.c (is_cxx): Likewise.
25998 (gen_compile_unit_die): Likewise.
25999 * gcc-ar.c (main): Likewise.
26000 * gcc.c (init_spec): Likewise.
26001 (read_specs): Likewise.
26002 (execute): Likewise.
26003 (check_live_switch): Likewise.
26004 * genattrtab.c (write_attr_case): Likewise.
26005 (IS_ATTR_GROUP): Likewise.
26006 * gencfn-macros.c (main): Likewise.
26007 * gengtype.c (type_for_name): Likewise.
26008 (gen_rtx_next): Likewise.
26009 (get_file_langdir): Likewise.
26010 (write_local): Likewise.
26011 * genmatch.c (get_operator): Likewise.
26012 (get_operand_type): Likewise.
26013 (expr::gen_transform): Likewise.
26014 * genoutput.c (validate_optab_operands): Likewise.
26015 * incpath.c (add_sysroot_to_chain): Likewise.
26016 * langhooks.c (lang_GNU_C): Likewise.
26017 (lang_GNU_CXX): Likewise.
26018 (lang_GNU_Fortran): Likewise.
26019 (lang_GNU_OBJC): Likewise.
26020 * lto-wrapper.c (run_gcc): Likewise.
26021 * omp-general.c (omp_max_simt_vf): Likewise.
26022 * omp-low.c (omp_runtime_api_call): Likewise.
26023 * opts-common.c (parse_options_from_collect_gcc_options): Likewise.
26024 * read-rtl-function.c (function_reader::read_rtx_operand_r): Likewise.
26025 * real.c (real_from_string): Likewise.
26026 * selftest.c (assert_str_startswith): Likewise.
26027 * timevar.c (timer::validate_phases): Likewise.
26028 * tree.c (get_file_function_name): Likewise.
26029 * ubsan.c (ubsan_use_new_style_p): Likewise.
26030 * varasm.c (default_function_rodata_section): Likewise.
26031 (incorporeal_function_p): Likewise.
26032 (default_section_type_flags): Likewise.
26033 * system.h (startswith): Define startswith.
26035 2021-05-10 Martin Liska <mliska@suse.cz>
26037 * bitmap.h (class auto_bitmap): Remove
26038 __cplusplus >= 201103.
26039 * config/aarch64/aarch64.c: Likewise.
26040 * gimple-ssa-store-merging.c (store_immediate_info::store_immediate_info):
26042 * sbitmap.h: Likewise.
26044 2021-05-10 Martin Liska <mliska@suse.cz>
26046 * Makefile.in: Rename gcov-iov to genversion and depend
26047 on version.h (instead of gcov-iov.h).
26048 * gcov-io.h: Include version.h instread of gcov-iov.h.
26049 * gengtype-state.c (read_state_version): Likewise.
26050 * gcov-iov.c: Moved to...
26051 * genversion.c: ...here.
26052 * lto-streamer.h (LTO_major_version): Define it with
26054 * version.c: Removed.
26055 * version.h: Removed.
26057 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
26059 * config/arc/arc.md (UNSPEC_ARC_DMPYWH): Define.
26060 * config/arc/simdext.md (VCT): Add predicates for iterator
26063 (voptab): Likewise.
26064 (vec_widen_<V_US>mult_hi_v4hi): Change pattern predicate.
26065 (<voptab>v2si3): New patterns.
26067 (reduc_plus_scal_v4hi): Likewise.
26068 (reduc_plus_scal_v2si): Likewise.
26069 (vec_duplicatev2si): Likewise.
26070 (vec_duplicatev4hi): Likewise.
26072 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
26074 * config/arc/simdext.md: Format and cleanup file.
26076 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
26078 * config/arc/simdext.md (movmisalignv2hi): Allow misaligned access
26079 only when munaligned-access option is on.
26080 (movmisalign<mode>): Likewise.
26082 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
26084 * common/config/arc/arc-common.c (arc_handle_option): Remove dot
26086 * config/arc/arc.c (arc_reorg): Remove underscore from string.
26088 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
26090 * config/arc/arc.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
26091 (CTZ_DEFINED_VALUE_AT_ZERO): Likewise.
26092 * config/arc/arc.md (clrsbsi2): Cleanup pattern.
26093 (norm_f): Likewise.
26096 (clzsi2): Use fls instruction when available.
26097 (arc_clzsi2): Likewise.
26099 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
26101 * config/arc/arc.h (ADDITIONAL_REGISTER_NAMES): Add r26 and r27.
26103 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
26105 * doc/extend.texi (__builtin_arc_sr): Swap arguments.
26107 2021-05-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
26109 PR middle-end/100467
26110 * toplev.c (compile_file): Call insn_locations_init before
26111 targetm.asm_out.code_end.
26113 2021-05-07 Andrew Stubbs <ams@codesourcery.com>
26116 2021-05-07 Andrew Stubbs <ams@codesourcery.com>
26118 * config/gcn/gcn.c (gcn_scalar_mode_supported_p): Disable TImode.
26120 2021-05-07 Jakub Jelinek <jakub@redhat.com>
26121 Andrew Stubbs <amd@codesourcery.com>
26124 * builtins.c (try_store_by_multiple_pieces): Use force_operand for
26125 emit_move_insn operands.
26127 2021-05-07 Eric Botcazou <ebotcazou@adacore.com>
26129 * cfgexpand.c (expand_gimple_basic_block): Do not inherit a current
26130 location for the outgoing edges of an empty block.
26131 * dwarf2out.c (add_subscript_info): Retrieve the bounds and index
26132 type by means of the get_array_descr_info langhook, if it is set and
26133 returns true. Remove obsolete code dealing with unnamed subtypes.
26135 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
26137 * gimple-range-cache.cc (ssa_block_ranges): Virtualize.
26138 (sbr_vector): Renamed from ssa_block_cache.
26139 (sbr_vector::sbr_vector): Allocate from obstack abd initialize.
26140 (ssa_block_ranges::~ssa_block_ranges): Remove.
26141 (sbr_vector::set_bb_range): Use varying and undefined cached values.
26142 (ssa_block_ranges::set_bb_varying): Remove.
26143 (sbr_vector::get_bb_range): Adjust assert.
26144 (sbr_vector::bb_range_p): Adjust assert.
26145 (~block_range_cache): No freeing loop required.
26146 (block_range_cache::get_block_ranges): Remove.
26147 (block_range_cache::set_bb_range): Inline get_block_ranges.
26148 (block_range_cache::set_bb_varying): Remove.
26149 * gimple-range-cache.h (set_bb_varying): Remove prototype.
26150 * value-range.h (irange_allocator::get_memory): New.
26152 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
26154 * gimple-range-cache.cc (non_null_ref::non_null_deref_p): Search
26155 dominator tree is available and requested.
26156 (ranger_cache::ssa_range_in_bb): Don't search dom tree here.
26157 (ranger_cache::fill_block_cache): Don't search dom tree here either.
26158 * gimple-range-cache.h (non_null_deref_p): Add dom_search param.
26160 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
26162 * gimple-range.cc (gimple_ranger::range_on_exit): Handle block with
26163 only PHI nodes better.
26165 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
26167 * gimple-range-edge.h (gimple_outgoing_range): Rename from
26169 (gcond_edge_range): Export prototype.
26170 * gimple-range-edge.cc (gcond_edge_range): New.
26171 (gimple_outgoing_range::edge_range_p): Use gcond_edge_range.
26172 * gimple-range-gori.h (gori_compute): Use gimple_outgoing_range.
26174 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
26176 * gimple-range-edge.cc (outgoing_range::calc_switch_ranges): Compute
26177 default range into a temp and allocate only what is needed.
26179 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
26181 * range-op.cc (operator_trunc_mod::wi_fold): x % 0 is UNDEFINED.
26183 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
26185 * gimple-range.h (gimple_range_global): Pick up parameter initial
26186 values, and use-before defined locals are UNDEFINED.
26188 2021-05-07 Eric Botcazou <ebotcazou@adacore.com>
26190 * doc/extend.texi (scalar_storage_order): Mention effect on pointer
26192 * tree.h (reverse_storage_order_for_component_p): Return false if
26193 the type is a pointer.
26195 2021-05-07 Andrew Stubbs <ams@codesourcery.com>
26197 * config/gcn/gcn.c (gcn_scalar_mode_supported_p): Disable TImode.
26199 2021-05-07 Uroš Bizjak <ubizjak@gmail.com>
26202 * config/i386/i386-expand.c (ix86_expand_sse_movcc):
26203 Handle V8QI, V4HI and V2SI modes.
26204 * config/i386/mmx.md (mmx_pblendvb): New insn pattern.
26205 * config/i386/sse.md (unspec): Move UNSPEC_BLENDV ...
26206 * config/i386/i386.md (unspec): ... here.
26208 2021-05-07 Tobias Burnus <tobias@codesourcery.com>
26209 Tom de Vries <tdevries@suse.de>
26211 * omp-low.c (lower_rec_simd_input_clauses): Set max_vf = 1 if
26212 a truth_value_p reduction variable is nonintegral.
26214 2021-05-07 Uroš Bizjak <ubizjak@gmail.com>
26217 * config/i386/i386-expand.c (ix86_use_mask_cmp_p):
26218 Return false for mode sizes < 16.
26220 2021-05-07 Jakub Jelinek <jakub@redhat.com>
26223 * config/i386/mmx.md (*xop_pcmov_<mode>): New define_insn.
26225 2021-05-06 Martin Jambor <mjambor@suse.cz>
26227 * ipa-sra.c (ipa_sra_dump_all_summaries): Dump edge summaries even
26228 when there is no function summary.
26229 (ipa_sra_summarize_function): produce edge summaries even when
26232 2021-05-06 Tom Tromey <tom@tromey.com>
26234 * godump.c (string_hash_eq): Remove.
26235 (go_finish): Use htab_eq_string.
26237 2021-05-06 Tom Tromey <tom@tromey.com>
26239 * gengtype-state.c (read_state): Use htab_eq_string.
26240 (string_eq): Remove.
26242 2021-05-06 Tom Tromey <tom@tromey.com>
26244 * gensupport.c (htab_eq_string): Remove.
26246 2021-05-06 Bernd Edlinger <bernd.edlinger@hotmail.de>
26249 * debug.h (gcc_debug_hooks): Add set_ignored_loc function pointer.
26250 * dwarf2out.h (dw_fde_node::ignored_debug): New data item.
26251 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Add dummy
26252 set_ignored_loc callbacks.
26253 * debug.c (do_nothing_debug_hooks): Likewise.
26254 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
26255 * dwarf2out.c (text_section_used, cold_text_section_used): Remove.
26256 (in_text_section_p, last_text_label, last_cold_label,
26257 switch_text_ranges, switch_cold_ranges): New data items.
26258 (dwarf2out_note_section_used): Remove.
26259 (dwarf2out_begin_prologue): Set fde->ignored_debug and
26261 (mark_ignored_debug_section): New helper function.
26262 (dwarf2out_end_epilogue, dwarf2out_switch_text_section): Call
26263 mark_ignored_debug_section.
26264 (dwarf2_debug_hooks): Use dwarf2out_set_ignored_loc.
26265 (dwarf2_lineno_debug_hooks): Use dummy for set_ignored_loc.
26266 (size_of_aranges): Adjust formula for multi-part text ranges size.
26267 (output_aranges): Output multi-part text ranges.
26268 (dwarf2out_set_ignored_loc): New callback function.
26269 (dwarf2out_finish): Output multi-part text ranges.
26270 (dwarf2out_c_finalize): Clear new data items.
26271 * final.c (final_start_function_1): Call set_ignored_loc callback.
26272 (final_scan_insn_1): Likewise.
26273 * ggc-page.c (gt_ggc_mx): New helper function.
26274 * stringpool.c (gt_pch_nx): Likewise.
26276 2021-05-06 Richard Biener <rguenther@suse.de>
26278 * timevar.def (TV_TREE_INSERT_PHI_NODES): Remove.
26279 (TV_TREE_SSA_REWRITE_BLOCKS): Likewise.
26280 (TV_TREE_INTO_SSA): New.
26281 * tree-into-ssa.c (insert_phi_nodes): Do not account separately.
26282 (rewrite_blocks): Likewise.
26283 (pass_data_build_ssa): Account to TV_TREE_INTO_SSA.
26285 2021-05-06 Jakub Jelinek <jakub@redhat.com>
26287 * tree-ssa-phiopt.c (value_replacement, minmax_replacement,
26288 abs_replacement, xor_replacement,
26289 cond_removal_in_popcount_clz_ctz_pattern,
26290 replace_phi_edge_with_variable): Change type of phi argument from
26291 gimple * to gphi *.
26293 2021-05-06 Richard Biener <rguenther@suse.de>
26295 * tree-ssa-loop-split.c (split_loop): Delay updating SSA form.
26296 Output an opt-info message.
26297 (do_split_loop_on_cond): Likewise.
26298 (tree_ssa_split_loops): Update SSA form here.
26300 2021-05-06 Richard Biener <rguenther@suse.de>
26302 * tree-inline.c (tree_function_versioning): Fix DECL_BY_REFERENCE
26303 return variable removal.
26305 2021-05-06 Marius Hillenbrand <mhillen@linux.ibm.com>
26307 * config/s390/s390-builtins.def (O_M5, O1_M5, ...): Remove unused macros.
26308 (s390_vec_permi_s64, s390_vec_permi_b64, s390_vec_permi_u64)
26309 (s390_vec_permi_dbl, s390_vpdi): Use the O3_U2 type for the immediate
26311 * config/s390/s390.c (s390_const_operand_ok): Remove unused
26314 2021-05-06 Jakub Jelinek <jakub@redhat.com>
26316 PR tree-optimization/94589
26317 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Call
26318 spaceship_replacement.
26319 (cond_only_block_p, spaceship_replacement): New functions.
26321 2021-05-06 Richard Biener <rguenther@suse.de>
26324 * tree-emutls.c (gen_emutls_addr): Pass in whether we're
26325 dealing with a debug use and only query existing addresses
26327 (lower_emutls_1): Avoid splitting out addresses for debug
26328 stmts, reset the debug stmt when we fail to find existing
26330 (lower_emutls_phi_arg): Set wi.stmt.
26332 2021-05-06 Christoph Muellner <cmuellner@gcc.gnu.org>
26335 * config/riscv/riscv.c (riscv_block_move_loop): Use cbranch helper.
26336 * config/riscv/riscv.md (cbranch<mode>4): Generate helpers.
26337 (stack_protect_test): Use cbranch helper.
26339 2021-05-05 Eric Botcazou <ebotcazou@adacore.com>
26342 * config/i386/i386.c (ix86_compute_frame_layout): For a SEH target,
26343 always return the establisher frame for __builtin_frame_address (0).
26345 2021-05-05 Ivan Sorokin <vanyacpp@gmail.com>
26348 * config/i386/i386-builtins.c (ix86_cpu_model_type_node): New.
26349 (ix86_cpu_model_var): Likewise.
26350 (ix86_cpu_features2_type_node): Likewise.
26351 (ix86_cpu_features2_var): Likewise.
26352 (fold_builtin_cpu): Cache __cpu_model and __cpu_features2 with
26355 2021-05-05 Martin Sebor <msebor@redhat.com>
26357 * passes.def (pass_warn_printf): Run after SSA.
26359 2021-05-05 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
26361 * config/arm/neon.md (neon_vtst_combine<mode>): New pattern.
26362 * config/arm/predicates.md (minus_one_operand): New predicate.
26364 2021-05-05 Jeff Law <jlaw@tachyum.com>
26366 * config/avr/avr.md: Remove references to CC_STATUS_INIT.
26368 2021-05-05 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
26370 PR rtl-optimization/100263
26371 * postreload.c (move2add_valid_value_p): Ensure register can
26374 2021-05-05 Eric Botcazou <ebotcazou@adacore.com>
26376 PR rtl-optimization/100411
26377 * cfgcleanup.c (try_crossjump_to_edge): Also skip end of prologue
26378 and beginning of function markers.
26380 2021-05-05 Jeff Law <jlaw@tachyum.com>
26382 * config/cr16/cr16.h (NOTICE_UPDATE_CC): Remove.
26383 * config/cr16/cr16.c (notice_update_cc): Remove.
26384 * config/cr16/cr16-protos.h (notice_update_cc): Remove.
26386 2021-05-05 Uroš Bizjak <ubizjak@gmail.com>
26389 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
26390 Handle V8QI, V4HI and V2SI modes.
26391 * config/i386/i386.c (ix86_build_const_vector): Handle V2SImode.
26392 (ix86_build_signbit_mask): Ditto.
26393 * config/i386/mmx.md (MMXMODE14): New mode iterator.
26394 (<smaxmin:code><MMXMODE14:mode>3): New expander.
26395 (*mmx_<smaxmin:code><MMXMODE14:mode>3): New insn pattern.
26396 (<umaxmin:code><MMXMODE24:mode>3): New expander.
26397 (*mmx_<umaxmin:code><MMXMODE24:mode>3): New insn pattern.
26398 (vec_cmp<MMXMODEI:mode><MMXMODEI:mode>): New expander.
26399 (vec_cmpu<MMXMODEI:mode><MMXMODEI:mode>): Ditto.
26400 (vcond<MMXMODEI:mode><MMXMODEI:mode>): Ditto.
26401 (vcondu<MMXMODEI:mode><MMXMODEI:mode>): Ditto.
26402 (vcond_mask_<MMXMODEI:mode><MMXMODEI:mode>): Ditto.
26404 2021-05-05 Eric Botcazou <ebotcazou@adacore.com>
26406 * dwarf2out.c (loc_list_from_tree_1) <DECL>: During early DWARF, do
26407 not expand the VALUE_EXPR of variables put in the non-local frame.
26408 * gimplify.c (gimplify_type_sizes) <RECORD_TYPE>: If the type is not
26409 to be ignored for debug info, ensure its variable offsets are not.
26411 2021-05-05 Richard Biener <rguenther@suse.de>
26413 PR tree-optimization/79333
26414 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt):
26415 Fold stmt following SSA edges.
26417 2021-05-05 Richard Biener <rguenther@suse.de>
26419 PR middle-end/100394
26420 * calls.c (expand_call): Preserve possibly throwing calls.
26421 * cfgexpand.c (expand_call_stmt): When a call can throw signal
26422 RTL expansion there are side-effects.
26423 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Simplify,
26424 mark all possibly throwing stmts necessary unless we can elide
26426 * tree-ssa-dse.c (pass_dse::execute): Preserve exceptions unless
26427 -fdelete-dead-exceptions.
26428 * tree.h (DECL_PURE_P): Add note about exceptions.
26430 2021-05-05 Alexandre Oliva <oliva@adacore.com>
26432 * config/i386/vxworks.h (DBX_REGISTER_NUMBER): Make it
26435 2021-05-04 David Edelsohn <dje.gcc@gmail.com>
26437 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
26438 get_fnname_from_decl for name of thunk.
26439 * config/rs6000/rs6000.c (rs6000_declare_alias): Use assemble_name
26440 and ASM_OUTPUT_LABEL.
26441 (rs6000_xcoff_declare_function_name): Use assemble_name and
26443 (rs6000_xcoff_declare_object_name): Use ASM_OUTPUT_LABEL.
26444 (rs6000_xcoff_encode_section_info): Don't add mapping class
26445 for aliases. Always add [DS] mapping class to primary
26447 (rs6000_asm_weaken_decl): Don't explicitly add [DS].
26449 2021-05-04 Martin Sebor <msebor@redhat.com>
26451 PR middle-end/100307
26452 * builtins.c (compute_objsize_r): Clear base0 for pointers.
26454 2021-05-04 Jeff Law <jlaw@tachyum.com>
26456 * config/bfin/bfin.h (NOTICE_UPDATE_CC): Remove.
26458 2021-05-04 Segher Boessenkool <segher@kernel.crashing.org>
26460 * caller-save.c: Remove CC0.
26461 * cfgcleanup.c: Remove CC0.
26462 * cfgrtl.c: Remove CC0.
26463 * combine.c: Remove CC0.
26464 * compare-elim.c: Remove CC0.
26465 * conditions.h: Remove CC0.
26466 * config/h8300/h8300.h: Remove CC0.
26467 * config/h8300/h8300-protos.h: Remove CC0.
26468 * config/h8300/peepholes.md: Remove CC0.
26469 * config/i386/x86-tune-sched.c: Remove CC0.
26470 * config/m68k/m68k.c: Remove CC0.
26471 * config/rl78/rl78.c: Remove CC0.
26472 * config/sparc/sparc.c: Remove CC0.
26473 * config/xtensa/xtensa.c: Remove CC0.
26474 (gen_conditional_move): Use pc_rtx instead of cc0_rtx in a piece of
26475 RTL where that is used as a placeholder only.
26476 * cprop.c: Remove CC0.
26477 * cse.c: Remove CC0.
26478 * cselib.c: Remove CC0.
26479 * df-problems.c: Remove CC0.
26480 * df-scan.c: Remove CC0.
26481 * doc/md.texi: Remove CC0. Adjust an example.
26482 * doc/rtl.texi: Remove CC0. Adjust an example.
26483 * doc/tm.texi: Regenerate.
26484 * doc/tm.texi.in: Remove CC0.
26485 * emit-rtl.c: Remove CC0.
26486 * final.c: Remove CC0.
26487 * fwprop.c: Remove CC0.
26488 * gcse-common.c: Remove CC0.
26489 * gcse.c: Remove CC0.
26490 * genattrtab.c: Remove CC0.
26491 * genconfig.c: Remove CC0.
26492 * genemit.c: Remove CC0.
26493 * genextract.c: Remove CC0.
26494 * gengenrtl.c: Remove CC0.
26495 * genrecog.c: Remove CC0.
26496 * haifa-sched.c: Remove CC0.
26497 * ifcvt.c: Remove CC0.
26498 * ira-costs.c: Remove CC0.
26499 * ira.c: Remove CC0.
26500 * jump.c: Remove CC0.
26501 * loop-invariant.c: Remove CC0.
26502 * lra-constraints.c: Remove CC0.
26503 * lra-eliminations.c: Remove CC0.
26504 * optabs.c: Remove CC0.
26505 * postreload-gcse.c: Remove CC0.
26506 * postreload.c: Remove CC0.
26507 * print-rtl.c: Remove CC0.
26508 * read-rtl-function.c: Remove CC0.
26509 * reg-notes.def: Remove CC0.
26510 * reg-stack.c: Remove CC0.
26511 * reginfo.c: Remove CC0.
26512 * regrename.c: Remove CC0.
26513 * reload.c: Remove CC0.
26514 * reload1.c: Remove CC0.
26515 * reorg.c: Remove CC0.
26516 * resource.c: Remove CC0.
26517 * rtl.c: Remove CC0.
26518 * rtl.def: Remove CC0.
26519 * rtl.h: Remove CC0.
26520 * rtlanal.c: Remove CC0.
26521 * sched-deps.c: Remove CC0.
26522 * sched-rgn.c: Remove CC0.
26523 * shrink-wrap.c: Remove CC0.
26524 * simplify-rtx.c: Remove CC0.
26525 * system.h: Remove CC0. Poison NOTICE_UPDATE_CC, CC_STATUS_MDEP_INIT,
26526 CC_STATUS_MDEP, and CC_STATUS.
26527 * target.def: Remove CC0.
26528 * valtrack.c: Remove CC0.
26529 * var-tracking.c: Remove CC0.
26531 2021-05-04 Richard Biener <rguenther@suse.de>
26533 PR tree-optimization/100414
26534 * tree-ssa-phiopt.c (get_non_trapping): Do not compute dominance
26536 (tree_ssa_phiopt_worker): But unconditionally here.
26538 2021-05-04 Tobias Burnus <tobias@codesourcery.com>
26540 * omp-low.c (lower_rec_input_clauses, lower_reduction_clauses): Handle
26541 && and || with floating-point and complex arguments.
26543 2021-05-04 Eric Botcazou <ebotcazou@adacore.com>
26545 * tree-inline.c (insert_debug_decl_map): Delete.
26546 (copy_debug_stmt): Minor tweak.
26547 (setup_one_parameter): Do not use a variable if the value is either
26548 a read-only DECL or a non-addressable local variable in the caller.
26549 In this case, insert the debug-only variable in the map manually.
26550 (expand_call_inline): Do not generate a CLOBBER for these values.
26551 * tree-inline.h (debug_map): Minor tweak.
26553 2021-05-04 Eric Botcazou <ebotcazou@adacore.com>
26555 * builtins.c (builtin_with_linkage_p): Return true for stp[n]cpy.
26556 * symtab.c (symtab_node::output_to_lto_symbol_table_p): Tidy up.
26558 2021-05-04 Richard Biener <rguenther@suse.de>
26560 PR tree-optimization/100329
26561 * tree-ssa-reassoc.c (can_reassociate_p): Do not reassociate
26563 (insert_stmt_after): Assert we're not running into asm goto.
26565 2021-05-04 Richard Biener <rguenther@suse.de>
26567 PR tree-optimization/100398
26568 * tree-ssa-dse.c (pass_dse::execute): Preserve control
26571 2021-05-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
26573 * builtins.c (try_store_by_multiple_pieces): Fix constfun's prototype.
26575 2021-05-04 Alexandre Oliva <oliva@adacore.com>
26577 * builtins.c (try_store_by_multiple_pieces): New.
26578 (expand_builtin_memset_args): Use it. If target_char_cast
26579 fails, proceed as for non-constant val. Pass len's ctz to...
26580 * expr.c (clear_storage_hints): ... this. Try store by
26581 multiple pieces after setmem.
26582 (clear_storage): Adjust.
26583 * expr.h (clear_storage_hints): Likewise.
26584 (try_store_by_multiple_pieces): Declare.
26585 * passes.def: Replace the last copy_prop with ccp.
26587 2021-05-03 Tom de Vries <tdevries@suse.de>
26590 * omp-low.c (lower_rec_input_clauses): Disable SIMT for user-defined
26593 2021-05-03 Richard Biener <rguenther@suse.de>
26595 * tree-ssa-dse.c (dse_classify_store): Track two PHI defs.
26597 2021-05-03 Richard Biener <rguenther@suse.de>
26599 * tree-ssa-dse.c: Do not include domwalk.h but cfganal.h.
26600 (dse_dom_walker): Remove.
26601 (dse_dom_walker::dse_optimize_stmt): Rename...
26602 (dse_optimize_stmt): ... to this, pass in live_bytes sbitmap.
26603 (dse_dom_walker::before_dom_children): Inline ...
26604 (pass_dse::execute): ... here. Perform a reverse program
26607 2021-05-03 H.J. Lu <hjl.tools@gmail.com>
26610 * configure: Regenerated.
26612 2021-05-03 Ilya Leoshkevich <iii@linux.ibm.com>
26615 * config/s390/s390.c (s390_hard_fp_reg_p): New function.
26616 (s390_md_asm_adjust): Handle hard registers.
26618 2021-05-03 Jakub Jelinek <jakub@redhat.com>
26620 PR tree-optimization/100382
26621 * tree-ssa-dse.c: Include tree-eh.h.
26622 (dse_dom_walker::before_dom_children): Don't remove stmts if
26623 stmt_unremovable_because_of_non_call_eh_p is true.
26625 2021-05-02 David Edelsohn <dje.gcc@gmail.com>
26627 * varasm.c (compute_reloc_for_var): Split out from...
26628 (get_variable_section): Use it.
26629 * output.h (compute_reloc_for_var): Declare.
26630 * config/rs6000/rs6000-protos.h
26631 (rs6000_xcoff_asm_output_aligned_decl_common): Change alignment to
26633 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address_aix):
26634 Don't append storage mapping class to symbol.
26635 (rs6000_xcoff_asm_named_section): Add BS and UL mapping classes.
26636 Don't convert TLS BSS to common.
26637 (rs6000_xcoff_unique_section): Don't fall back to select_secton.
26638 (rs6000_xcoff_section_type_flags): Add SECTION_BSS if DECL is
26640 (rs6000_xcoff_asm_globalize_decl_name): Don't strip storage
26642 (rs6000_xcoff_asm_output_aligned_decl_common): Align is unsigned int.
26643 If align is 0 from TLS class, use the same rules as varasm.c
26644 If not common, switch to BSS section manually.
26645 If common, emit appropriate comm or lcomm directive.
26646 (rs6000_xcoff_encode_section_info): Add logic to append all
26647 storage mapping classes.
26648 (rs6000_asm_weaken_decl): Adjust for qualname symbols.
26649 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
26650 rs6000_xcoff_asm_output_aligned_decl_common.
26651 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
26652 rs6000_xcoff_asm_output_aligned_decl_common.
26653 (ASM_OUTPUT_TLS_COMMON): Use
26654 rs6000_xcoff_asm_output_aligned_decl_common.
26656 2021-05-02 Jakub Jelinek <jakub@redhat.com>
26659 * config/nvptx/nvptx.c (nvptx_sese_pseudo): Use nullptr instead of 0
26660 as first argument of pseudo_node_t constructors.
26662 2021-05-02 Jakub Jelinek <jakub@redhat.com>
26665 * config/i386/t-i386 (TM_H): Add $(srcdir)/config/i386/i386-isa.def.
26667 2021-05-01 Aldy Hernandez <aldyh@redhat.com>
26669 * value-range.cc (DEFINE_INT_RANGE_GC_STUBS): Remove.
26670 (gt_pch_nx (int_range<1> *&)): New.
26671 (gt_ggc_mx (int_range<1> *&)): New.
26672 * value-range.h (class irange): Add GTY support for
26675 2021-05-01 Geng Qi <gengqi@linux.alibaba.com>
26677 * doc/options.texi (Negative): Change either or to both and.
26679 2021-04-30 Jonathan Wright <jonathan.wright@arm.com>
26681 * config/aarch64/aarch64-simd-builtins.def: Add
26682 float_ml[as][q]_laneq builtin generator macros.
26683 * config/aarch64/aarch64-simd.md (mul_laneq<mode>3): Define.
26684 (aarch64_float_mla_laneq<mode>): Define.
26685 (aarch64_float_mls_laneq<mode>): Define.
26686 * config/aarch64/arm_neon.h (vmla_laneq_f32): Use RTL builtin
26687 instead of GCC vector extensions.
26688 (vmlaq_laneq_f32): Likewise.
26689 (vmls_laneq_f32): Likewise.
26690 (vmlsq_laneq_f32): Likewise.
26692 2021-04-30 Jonathan Wright <jonathan.wright@arm.com>
26694 * config/aarch64/aarch64-simd-builtins.def: Add
26695 float_ml[as]_lane builtin generator macros.
26696 * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt<mode>):
26698 (mul_lane<mode>3): This, and re-order arguments.
26699 (aarch64_float_mla_lane<mode>): Define.
26700 (aarch64_float_mls_lane<mode>): Define.
26701 * config/aarch64/arm_neon.h (vmla_lane_f32): Use RTL builtin
26702 instead of GCC vector extensions.
26703 (vmlaq_lane_f32): Likewise.
26704 (vmls_lane_f32): Likewise.
26705 (vmlsq_lane_f32): Likewise.
26707 2021-04-30 Jonathan Wright <jonathan.wright@arm.com>
26709 * config/aarch64/aarch64-simd-builtins.def: Add float_ml[as]
26710 builtin generator macros.
26711 * config/aarch64/aarch64-simd.md (aarch64_float_mla<mode>):
26713 (aarch64_float_mls<mode>): Define.
26714 * config/aarch64/arm_neon.h (vmla_f32): Use RTL builtin
26715 instead of relying on GCC vector extensions.
26716 (vmla_f64): Likewise.
26717 (vmlaq_f32): Likewise.
26718 (vmlaq_f64): Likewise.
26719 (vmls_f32): Likewise.
26720 (vmls_f64): Likewise.
26721 (vmlsq_f32): Likewise.
26722 (vmlsq_f64): Likewise.
26723 * config/aarch64/iterators.md: Define VDQF_DF mode iterator.
26725 2021-04-30 Jonathan Wright <jonathan.wright@arm.com>
26727 * config/aarch64/aarch64-simd-builtins.def: Add
26728 float_ml[as]_n_builtin generator macros.
26729 * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_from_dup<mode>):
26731 (mul_n<mode>3): This, and re-order arguments.
26732 (aarch64_float_mla_n<mode>): Define.
26733 (aarch64_float_mls_n<mode>): Define.
26734 * config/aarch64/arm_neon.h (vmla_n_f32): Use RTL builtin
26735 instead of inline asm.
26736 (vmlaq_n_f32): Likewise.
26737 (vmls_n_f32): Likewise.
26738 (vmlsq_n_f32): Likewise.
26740 2021-04-30 Jonathan Wright <joanthan.wright@arm.com>
26742 * config/aarch64/aarch64-simd-builtins.def: Add pmull[2]
26743 builtin generator macros.
26744 * config/aarch64/aarch64-simd.md (aarch64_pmullv8qi): Define.
26745 (aarch64_pmull_hiv16qi_insn): Define.
26746 (aarch64_pmull_hiv16qi): Define.
26747 * config/aarch64/arm_neon.h (vmull_high_p8): Use RTL builtin
26748 instead of inline asm.
26749 (vmull_p8): Likewise.
26751 2021-04-30 Senthil Kumar Selvaraj <saaadhu@gcc.gnu.org>
26753 * config/avr/avr.md: Adjust peepholes to match and
26754 generate parallels with clobber of REG_CC.
26755 (mov<mode>_insn): Rename to mov<mode>_insn_split.
26756 (*mov<mode>_insn): Rename to mov<mode>_insn.
26758 2021-04-30 David Edelsohn <dje.gcc@gmail.com>
26760 * varasm.c (use_blocks_for_decl_p): Don't use section anchors
26761 for VAR_DECLs if -fdata-sections enabled.
26763 2021-04-30 Michael Meissner <meissner@linux.ibm.com>
26765 PR bootstrap/100327
26766 * config/rs6000/rs6000.c
26767 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Define.
26768 (rs6000_libgcc_floating_mode_supported_p): New target hook.
26770 2021-04-30 Aldy Hernandez <aldyh@redhat.com>
26772 * tree-ssa-threadbackward.c (class thread_jumps): Split out code
26774 (class back_threader_registry): ...to here...
26775 (class back_threader_profitability): ...and here...
26776 (thread_jumps::thread_through_all_blocks): Remove argument.
26777 (back_threader_registry::back_threader_registry): New.
26778 (back_threader_registry::~back_threader_registry): New.
26779 (back_threader_registry::thread_through_all_blocks): New.
26780 (thread_jumps::profitable_jump_thread_path): Move from here...
26781 (back_threader_profitability::profitable_path_p): ...to here.
26782 (thread_jumps::find_taken_edge): New.
26783 (thread_jumps::convert_and_register_current_path): Move...
26784 (back_threader_registry::register_path): ...to here.
26785 (thread_jumps::register_jump_thread_path_if_profitable): Move...
26786 (thread_jumps::maybe_register_path): ...to here.
26787 (thread_jumps::handle_phi): Call find_taken_edge and
26788 maybe_register_path.
26789 (thread_jumps::handle_assignment): Same.
26790 (thread_jumps::fsm_find_control_statement_thread_paths): Remove
26791 tree argument to handle_phi and handle_assignment.
26792 (thread_jumps::find_jump_threads_backwards): Set m_name. Remove
26793 set of m_speed_p and m_max_threaded_paths.
26794 (pass_thread_jumps::execute): Remove second argument from
26795 find_jump_threads_backwards.
26796 (pass_early_thread_jumps::execute): Same.
26798 2021-04-30 Aldy Hernandez <aldyh@redhat.com>
26800 * tree-ssa-dom.c (class dom_jump_threader_simplifier): New.
26801 (class dom_opt_dom_walker): Initialize some class variables.
26802 (pass_dominator::execute): Pass evrp_range_analyzer and
26803 dom_jump_threader_simplifier to dom_opt_dom_walker.
26804 Adjust for some functions moving into classes.
26805 (simplify_stmt_for_jump_threading): Adjust and move to...
26806 (jump_threader_simplifier::simplify): ...here.
26807 (dom_opt_dom_walker::before_dom_children): Adjust for
26808 m_evrp_range_analyzer.
26809 (dom_opt_dom_walker::after_dom_children): Remove x_vr_values hack.
26810 (test_for_singularity): Place in dom_opt_dom_walker class.
26811 (dom_opt_dom_walker::optimize_stmt): The argument
26812 evrp_range_analyzer is now a class field.
26813 * tree-ssa-threadbackward.c (class thread_jumps): Add m_registry.
26814 (thread_jumps::thread_through_all_blocks): New.
26815 (thread_jumps::convert_and_register_current_path): Use m_registry.
26816 (pass_thread_jumps::execute): Adjust for thread_through_all_blocks
26817 being in the threader class.
26818 (pass_early_thread_jumps::execute): Same.
26819 * tree-ssa-threadedge.c (threadedge_initialize_values): Move...
26820 (jump_threader::jump_threader): ...here.
26821 (threadedge_finalize_values): Move...
26822 (jump_threader::~jump_threader): ...here.
26823 (jump_threader::remove_jump_threads_including): New.
26824 (jump_threader::thread_through_all_blocks): New.
26825 (record_temporary_equivalences_from_phis): Move...
26826 (jump_threader::record_temporary_equivalences_from_phis): ...here.
26827 (record_temporary_equivalences_from_stmts_at_dest): Move...
26828 (jump_threader::record_temporary_equivalences_from_stmts_at_dest):
26830 (simplify_control_stmt_condition_1): Move to jump_threader class.
26831 (simplify_control_stmt_condition): Move...
26832 (jump_threader::simplify_control_stmt_condition): ...here.
26833 (thread_around_empty_blocks): Move...
26834 (jump_threader::thread_around_empty_blocks): ...here.
26835 (thread_through_normal_block): Move...
26836 (jump_threader::thread_through_normal_block): ...here.
26837 (thread_across_edge): Move...
26838 (jump_threader::thread_across_edge): ...here.
26839 (thread_outgoing_edges): Move...
26840 (jump_threader::thread_outgoing_edges): ...here.
26841 * tree-ssa-threadedge.h: Move externally facing functings...
26842 (class jump_threader): ...here...
26843 (class jump_threader_simplifier): ...and here.
26844 * tree-ssa-threadupdate.c (struct redirection_data): Remove comment.
26845 (jump_thread_path_allocator::jump_thread_path_allocator): New.
26846 (jump_thread_path_allocator::~jump_thread_path_allocator): New.
26847 (jump_thread_path_allocator::allocate_thread_edge): New.
26848 (jump_thread_path_allocator::allocate_thread_path): New.
26849 (jump_thread_path_registry::jump_thread_path_registry): New.
26850 (jump_thread_path_registry::~jump_thread_path_registry): New.
26851 (jump_thread_path_registry::allocate_thread_edge): New.
26852 (jump_thread_path_registry::allocate_thread_path): New.
26853 (dump_jump_thread_path): Make extern.
26854 (debug (const vec<jump_thread_edge *> &path)): New.
26855 (struct removed_edges): Move to tree-ssa-threadupdate.h.
26856 (struct thread_stats_d): Remove.
26857 (remove_ctrl_stmt_and_useless_edges): Make static.
26858 (lookup_redirection_data): Move...
26859 (jump_thread_path_registry::lookup_redirection_data): ...here.
26860 (ssa_redirect_edges): Make static.
26861 (thread_block_1): Move...
26862 (jump_thread_path_registry::thread_block_1): ...here.
26863 (thread_block): Move...
26864 (jump_thread_path_registry::thread_block): ...here.
26865 (thread_through_loop_header): Move...
26866 (jump_thread_path_registry::thread_through_loop_header): ...here.
26867 (mark_threaded_blocks): Move...
26868 (jump_thread_path_registry::mark_threaded_blocks): ...here.
26869 (debug_path): Move...
26870 (jump_thread_path_registry::debug_path): ...here.
26871 (debug_all_paths): Move...
26872 (jump_thread_path_registry::dump): ..here.
26873 (rewire_first_differing_edge): Move...
26874 (jump_thread_path_registry::rewire_first_differing_edge): ...here.
26875 (adjust_paths_after_duplication): Move...
26876 (jump_thread_path_registry::adjust_paths_after_duplication): ...here.
26877 (duplicate_thread_path): Move...
26878 (jump_thread_path_registry::duplicate_thread_path): ..here.
26879 (remove_jump_threads_including): Move...
26880 (jump_thread_path_registry::remove_jump_threads_including): ...here.
26881 (thread_through_all_blocks): Move to...
26882 (jump_thread_path_registry::thread_through_all_blocks): ...here.
26883 (delete_jump_thread_path): Remove.
26884 (register_jump_thread): Move...
26885 (jump_thread_path_registry::register_jump_thread): ...here.
26886 * tree-ssa-threadupdate.h: Move externally facing functions...
26887 (class jump_thread_path_allocator): ...here...
26888 (class jump_thread_path_registry): ...and here.
26889 (thread_through_all_blocks): Remove.
26890 (struct removed_edges): New.
26891 (register_jump_thread): Remove.
26892 (remove_jump_threads_including): Remove.
26893 (delete_jump_thread_path): Remove.
26894 (remove_ctrl_stmt_and_useless_edges): Remove.
26895 (free_dom_edge_info): New prototype.
26896 * tree-vrp.c: Remove x_vr_values hack.
26897 (class vrp_jump_threader_simplifier): New.
26898 (vrp_jump_threader_simplifier::simplify): New.
26899 (vrp_jump_threader::vrp_jump_threader): Adjust method signature.
26900 Remove m_dummy_cond.
26901 Instantiate m_simplifier and m_threader.
26902 (vrp_jump_threader::thread_through_all_blocks): New.
26903 (vrp_jump_threader::simplify_stmt): Remove.
26904 (vrp_jump_threader::after_dom_children): Do not set m_dummy_cond.
26905 Remove x_vr_values hack.
26906 (execute_vrp): Adjust for thread_through_all_blocks being in a
26909 2021-04-30 Christophe Lyon <christophe.lyon@linaro.org>
26911 * genflags.c (gen_insn): Print failed expansion string.
26913 2021-04-30 H.J. Lu <hjl.tools@gmail.com>
26915 * expr.c (alignment_for_piecewise_move): Call mode_for_size
26916 without limit to MAX_FIXED_MODE_SIZE.
26918 2021-04-30 H.J. Lu <hjl.tools@gmail.com>
26920 PR middle-end/90773
26921 * builtins.c (builtin_memset_gen_str): Don't use return from
26922 simplify_gen_subreg.
26924 2021-04-30 Uroš Bizjak <ubizjak@gmail.com>
26927 * config/i386/i386.md (*add<mode>3_carry_0r): New insn pattern.
26928 (*addsi3_carry_zext_0r): Ditto.
26929 (*sub<mode>3_carry_0): Ditto.
26930 (*subsi3_carry_zext_0r): Ditto.
26931 * config/i386/predicates.md (ix86_carry_flag_unset_operator):
26933 * config/i386/i386.c (ix86_rtx_costs) <case PLUS, case MINUS>:
26934 Also consider ix86_carry_flag_unset_operator to calculate
26935 the cost of adc/sbb insn.
26937 2021-04-30 Roman Zhuykov <zhroma@ispras.ru>
26939 PR rtl-optimization/100225
26940 PR rtl-optimization/84878
26941 * modulo-sched.c (sms_schedule): Use note_stores to skip loops
26942 where we have an instruction which touches (writes) any hard
26943 register from df->regular_block_artificial_uses set.
26944 Allow not-single-set instruction only right before basic block
26947 2021-04-30 Geng Qi <gengqi@linux.alibaba.com>
26949 * config/riscv/riscv.opt (march=,mabi=): Negative itself.
26951 2021-04-30 LevyHsu <admin@levyhsu.com>
26953 * config/riscv/riscv.c (riscv_min_arithmetic_precision): New.
26954 * config/riscv/riscv.h (TARGET_MIN_ARITHMETIC_PRECISION): New.
26955 * config/riscv/riscv.md (addv<mode>4, uaddv<mode>4): New.
26956 (subv<mode>4, usubv<mode>4, mulv<mode>4, umulv<mode>4): New.
26958 2021-04-29 Alexandre Oliva <oliva@adacore.com>
26960 * config.gcc: Merged x86 and x86_64 cpu_type-setting cases.
26962 2021-04-29 Alexandre Oliva <oliva@adacore.com>
26964 * config/i386/i386.h (ASM_OUTPUT_MAX_SKIP_PAD): Rename to...
26965 (ASM_OUTPUT_MAX_SKIP_ALIGN): ... this. Enclose in do/while(0).
26966 * config/i386/i386.c: Adjust.
26967 * config/i386/i386.md: Adjust.
26968 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Drop.
26969 * config/i386/dragonfly.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
26970 * config/i386/freebsd.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
26971 * config/i386/gas.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
26972 * config/i386/gnu-user.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
26973 * config/i386/iamcu.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
26974 * config/i386/lynx.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
26975 * config/i386/netbsd-elf.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
26976 * config/i386/openbsdelf.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
26977 * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
26978 (ASM_OUTPUT_MAX_SKIP_PAD): Likewise.
26980 2021-04-29 Uroš Bizjak <ubizjak@gmail.com>
26982 * config/i386/i386-expand.c (ix86_expand_int_compare):
26983 Swap operands of GTU and LEU comparison to emit carry flag comparison.
26984 * config/i386/i386.md (*add<mode>3_carry_0): Change insn
26985 predicate to allow more combine opportunities with memory operands.
26986 (*sub<mode>3_carry_0): Ditto.
26988 2021-04-29 Richard Sandiford <richard.sandiford@arm.com>
26990 PR rtl-optimization/100303
26991 * rtl-ssa/accesses.cc (function_info::make_use_available): Take a
26992 boolean that indicates whether the use will only be used in
26993 debug instructions. Treat it in the same way that existing
26994 cross-EBB debug references would be handled if so.
26995 (function_info::make_uses_available): Likewise.
26996 * rtl-ssa/functions.h (function_info::make_uses_available): Update
26997 prototype accordingly.
26998 (function_info::make_uses_available): Likewise.
26999 * fwprop.c (try_fwprop_subst): Update call accordingly.
27001 2021-04-29 Jeff Law <jlaw@tachyum.com>
27003 * config/nios2/nios2-protos.h (nios2_fpu_insn_enabled): Move outside
27006 2021-04-29 Uroš Bizjak <ubizjak@gmail.com>
27007 Richard Biener <rguenther@suse.de>
27010 * config/i386/i386-builtin.def (IX86_BUILTIN_MASKLOADPD)
27011 (IX86_BUILTIN_MASKLOADPS, IX86_BUILTIN_MASKLOADPD256)
27012 (IX86_BUILTIN_MASKLOADPS256, IX86_BUILTIN_MASKLOADD)
27013 (IX86_BUILTIN_MASKLOADQ, IX86_BUILTIN_MASKLOADD256)
27014 (IX86_BUILTIN_MASKLOADQ256): Move from SPECIAL_ARGS
27015 to PURE_ARGS category.
27016 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
27017 Handle PURE_ARGS category.
27018 * config/i386/i386-expand.c (ix86_expand_builtin): Ditto.
27020 2021-04-29 Eric Botcazou <ebotcazou@adacore.com>
27022 * configure.ac: Check for the presence of sys/locking.h header and
27023 for whether _LK_LOCK is supported by _locking.
27024 * configure: Regenerate.
27025 * config.in: Likewise.
27026 * gcov-io.h: Define GCOV_LOCKED_WITH_LOCKING if HOST_HAS_LK_LOCK.
27027 * gcov-io.c (gcov_open): Add support for GCOV_LOCKED_WITH_LOCKING.
27028 * system.h: Include <sys/locking.h> if HAVE_SYS_LOCKING_H.
27030 2021-04-29 Uroš Bizjak <ubizjak@gmail.com>
27032 * config/i386/predicates.md (fcmov_comparison_operator):
27033 Do not check for trivial FP comparison operator.
27034 <case GEU, case LTU>: Allow CCGZmode.
27035 <case GTU, case LEU>: Do not allow CCCmode.
27036 (ix86_comparison_operator) <case GTU, case LEU>: Allow only CCmode.
27037 (ix86_carry_flag_operator): Match only LTU and UNLT code.
27038 Do not check for trivial FP comparison operator. Allow CCGZmode.
27040 2021-04-29 Tom de Vries <tdevries@suse.de>
27042 * omp-expand.c (expand_omp_simd): Add step_orig, and replace uses of
27043 fd->loop.step by either step or orig_step.
27045 2021-04-29 Eric Botcazou <ebotcazou@adacore.com>
27047 * config/sparc/sparc.c (gen_load_pcrel_sym): Delete.
27048 (load_got_register): Do the PIC dance here.
27049 (sparc_legitimize_tls_address): Simplify.
27050 (sparc_emit_probe_stack_range): Likewise.
27051 (sparc32_initialize_trampoline): Likewise.
27052 (sparc64_initialize_trampoline): Likewise.
27053 * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Add @ marker.
27054 (probe_stack_range<P:mode>): Likewise.
27055 (flush<P:mode>): Likewise.
27056 (tgd_hi22<P:mode>): Likewise.
27057 (tgd_lo10<P:mode>): Likewise.
27058 (tgd_add<P:mode>): Likewise.
27059 (tgd_call<P:mode>): Likewise.
27060 (tldm_hi22<P:mode>): Likewise.
27061 (tldm_lo10<P:mode>): Likewise.
27062 (tldm_add<P:mode>): Likewise.
27063 (tldm_call<P:mode>): Likewise.
27064 (tldo_hix22<P:mode>): Likewise.
27065 (tldo_lox10<P:mode>): Likewise.
27066 (tldo_add<P:mode>): Likewise.
27067 (tie_hi22<P:mode>): Likewise.
27068 (tie_lo10<P:mode>): Likewise.
27069 (tie_add<P:mode>): Likewise.
27070 (tle_hix22<P:mode>): Likewise.
27071 (tle_lox10<P:mode>): Likewise.
27072 (stack_protect_setsi): Rename to...
27073 (stack_protect_set32): ...this.
27074 (stack_protect_setdi): Rename to...
27075 (stack_protect_set64): ...this.
27076 (stack_protect_set): Adjust calls to above.
27077 (stack_protect_testsi): Rename to...
27078 (stack_protect_test32): ...this.
27079 (stack_protect_testdi): Rename to...
27080 (stack_protect_test64): ...this.
27081 (stack_protect_test): Adjust calls to above.
27083 2021-04-29 H.J. Lu <hjl.tools@gmail.com>
27085 PR middle-end/90773
27086 * builtins.c (builtin_memcpy_read_str): Add a dummy argument.
27087 (builtin_strncpy_read_str): Likewise.
27088 (builtin_memset_read_str): Add an argument for the previous RTL
27089 information and generate the new RTL from the previous RTL info.
27090 (builtin_memset_gen_str): Likewise.
27091 * builtins.h (builtin_strncpy_read_str): Update the prototype.
27092 (builtin_memset_read_str): Likewise.
27093 * expr.c (by_pieces_ninsns): If targetm.overlap_op_by_pieces_p()
27094 returns true, round up size and alignment to the widest integer
27095 mode for maximum size.
27096 (pieces_addr::adjust): Add a pointer to by_pieces_prev argument
27097 and pass it to m_constfn.
27098 (op_by_pieces_d): Add m_push and m_overlap_op_by_pieces.
27099 (op_by_pieces_d::op_by_pieces_d): Add a bool argument to
27100 initialize m_push. Initialize m_overlap_op_by_pieces with
27101 targetm.overlap_op_by_pieces_p ().
27102 (op_by_pieces_d::run): Pass the previous RTL information to
27103 pieces_addr::adjust and generate overlapping operations if
27104 m_overlap_op_by_pieces is true.
27106 (move_by_pieces_d::move_by_pieces_d): Updated for op_by_pieces_d
27108 (store_by_pieces_d::store_by_pieces_d): Updated for op_by_pieces_d
27110 (can_store_by_pieces): Use by_pieces_constfn on constfun.
27111 (store_by_pieces): Use by_pieces_constfn on constfun. Updated
27112 for op_by_pieces_d change.
27113 (clear_by_pieces_1): Add a dummy argument.
27114 (clear_by_pieces): Updated for op_by_pieces_d change.
27115 (compare_by_pieces_d::compare_by_pieces_d): Likewise.
27116 (string_cst_read_str): Add a dummy argument.
27117 * expr.h (by_pieces_constfn): Add a dummy argument.
27118 (by_pieces_prev): New.
27119 * target.def (overlap_op_by_pieces_p): New target hook.
27120 * config/i386/i386.c (TARGET_OVERLAP_OP_BY_PIECES_P): New.
27121 * doc/tm.texi.in: Add TARGET_OVERLAP_OP_BY_PIECES_P.
27122 * doc/tm.texi: Regenerated.
27124 2021-04-29 Richard Biener <rguenther@suse.de>
27126 PR tree-optimization/100253
27127 * tree-vect-stmts.c (vectorizable_load): Do not assume
27128 element alignment when DR_MISALIGNMENT is -1.
27129 (vectorizable_store): Likewise.
27131 2021-04-29 Jakub Jelinek <jakub@redhat.com>
27134 * config/aarch64/aarch64.c (aarch64_add_offset_1_temporaries): Use
27135 absu_hwi instead of abs_hwi.
27137 2021-04-29 Richard Biener <rguenther@suse.de>
27139 PR middle-end/38474
27140 * tree-ssa-structalias.c (add_graph_edge): Avoid direct
27141 forwarding when indirect forwarding through ESCAPED
27144 2021-04-29 Tom de Vries <tdevries@suse.de>
27147 * internal-fn.c (expand_GOMP_SIMT_ENTER_ALLOC)
27148 (expand_GOMP_SIMT_LAST_LANE, expand_GOMP_SIMT_ORDERED_PRED)
27149 (expand_GOMP_SIMT_VOTE_ANY, expand_GOMP_SIMT_XCHG_BFLY)
27150 (expand_GOMP_SIMT_XCHG_IDX): Ensure target is assigned to.
27152 2021-04-29 Richard Biener <rguenther@suse.de>
27154 PR tree-optimization/99912
27155 * tree-ssa-dse.c (dse_dom_walker::m_need_cfg_cleanup): New.
27156 (dse_dom_walker::todo): Likewise.
27157 (dse_dom_walker::dse_optimize_stmt): Move VDEF check to the
27159 (dse_dom_walker::before_dom_children): Remove trivially
27160 dead SSA defs and schedule CFG cleanup if we removed all
27162 (pass_dse::execute): Get TODO as computed by the DOM walker
27163 and return it. Wipe dominator info earlier.
27165 2021-04-29 Richard Biener <rguenther@suse.de>
27168 * ipa-prop.c (ipcp_modif_dom_walker::before_dom_children):
27169 Track blocks to cleanup EH in new m_need_eh_cleanup.
27170 (ipcp_modif_dom_walker::cleanup_eh): New.
27171 (ipcp_transform_function): Release dominator info before
27174 2021-04-29 Martin Sebor <msebor@redhat.com>
27176 PR middle-end/100250
27177 * attribs.c (attr_access::array_as_string): Avoid dereferencing
27178 a pointer when it's null.
27180 2021-04-29 Martin Sebor <msebor@redhat.com>
27182 * Makefile.in (OBJS): Add ipa-free-lang-data.o.
27183 * ipa-free-lang-data.cc: New file.
27184 * tree.c: Move pass free_lang_data to file above.
27185 (build_array_type_1): Declare extern.
27186 * tree.h (build_array_type_1): Declare.
27188 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
27190 * config/aarch64/aarch64-simd-builtins.def: Modify comment to
27191 make consistent with updated RTL pattern.
27192 * config/aarch64/aarch64-simd.md (aarch64_<sur>qmovn<mode>):
27193 Implement using ss_truncate and us_truncate rather than
27195 * config/aarch64/iterators.md: Remove redundant unspecs and
27196 iterator: UNSPEC_[SU]QXTN and SUQMOVN respectively.
27198 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
27200 * config/aarch64/arm_acle.h (__attribute__): Make intrinsic
27201 attributes consistent with those defined in arm_neon.h.
27203 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
27205 * config/aarch64/arm_fp16.h (__attribute__): Make intrinsic
27206 attributes consistent with those defined in arm_neon.h.
27208 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
27210 * config/aarch64/aarch64-simd-builtins.def: Add
27211 float_trunc_rodd builtin generator macros.
27212 * config/aarch64/aarch64-simd.md (aarch64_float_trunc_rodd_df):
27214 (aarch64_float_trunc_rodd_lo_v2sf): Define.
27215 (aarch64_float_trunc_rodd_hi_v4sf_le): Define.
27216 (aarch64_float_trunc_rodd_hi_v4sf_be): Define.
27217 (aarch64_float_trunc_rodd_hi_v4sf): Define.
27218 * config/aarch64/arm_neon.h (vcvtx_f32_f64): Use RTL builtin
27219 instead of inline asm.
27220 (vcvtx_high_f32_f64): Likewise.
27221 (vcvtxd_f32_f64): Likewise.
27222 * config/aarch64/iterators.md: Add FCVTXN unspec.
27224 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
27226 * config/aarch64/aarch64-simd-builtins.def: Add tbx1 builtin
27228 * config/aarch64/aarch64-simd.md (aarch64_tbx1<mode>):
27230 * config/aarch64/arm_neon.h (vqtbx1_s8): USE RTL builtin
27231 instead of inline asm.
27232 (vqtbx1_u8): Likewise.
27233 (vqtbx1_p8): Likewise.
27234 (vqtbx1q_s8): Likewise.
27235 (vqtbx1q_u8): Likewise.
27236 (vqtbx1q_p8): Likewise.
27237 (vtbx2_s8): Likewise.
27238 (vtbx2_u8): Likewise.
27239 (vtbx2_p8): Likewise.
27241 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
27243 * config/aarch64/aarch64-simd-builtins.def: Add tbl1 builtin
27245 * config/aarch64/arm_neon.h (vqtbl1_p8): Use RTL builtin
27246 instead of inline asm.
27247 (vqtbl1_s8): Likewise.
27248 (vqtbl1_u8): Likewise.
27249 (vqtbl1q_p8): Likewise.
27250 (vqtbl1q_s8): Likewise.
27251 (vqtbl1q_u8): Likewise.
27252 (vtbl1_s8): Likewise.
27253 (vtbl1_u8): Likewise.
27254 (vtbl1_p8): Likewise.
27255 (vtbl2_s8): Likewise.
27256 (vtbl2_u8): Likewise.
27257 (vtbl2_p8): Likewise.
27259 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
27261 * config/aarch64/aarch64-simd-builtins.def: Add polynomial
27262 ssri_n buitin generator macro.
27263 * config/aarch64/arm_neon.h (vsri_n_p8): Use RTL builtin
27264 instead of inline asm.
27265 (vsri_n_p16): Likewise.
27266 (vsri_n_p64): Likewise.
27267 (vsriq_n_p8): Likewise.
27268 (vsriq_n_p16): Likewise.
27269 (vsriq_n_p64): Likewise.
27271 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
27273 * config/aarch64/aarch64-simd-builtins.def: Use VALLP mode
27274 iterator for polynomial ssli_n builtin generator macro.
27275 * config/aarch64/arm_neon.h (vsli_n_p8): Use RTL builtin
27276 instead of inline asm.
27277 (vsli_n_p16): Likewise.
27278 (vsliq_n_p8): Likewise.
27279 (vsliq_n_p16): Likewise.
27280 * config/aarch64/iterators.md: Define VALLP mode iterator.
27282 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
27284 * config/aarch64/aarch64-simd-builtins.def: Use VDQV_L
27285 iterator to generate [su]adalp RTL builtins.
27286 * config/aarch64/aarch64-simd.md: Use VDQV_L iterator in
27287 [su]adalp RTL pattern.
27288 * config/aarch64/arm_neon.h (vpadal_s32): Use RTL builtin
27289 instead of inline asm.
27290 (vpadal_u32): Likewise.
27292 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
27294 * config/aarch64/aarch64-simd-builtins.def: Add [su]addlp
27295 builtin generator macros.
27296 * config/aarch64/aarch64-simd.md (aarch64_<su>addlp<mode>):
27298 * config/aarch64/arm_neon.h (vpaddl_s8): Use RTL builtin
27299 instead of inline asm.
27300 (vpaddl_s16): Likewise.
27301 (vpaddl_s32): Likewise.
27302 (vpaddl_u8): Likewise.
27303 (vpaddl_u16): Likewise.
27304 (vpaddl_u32): Likewise.
27305 (vpaddlq_s8): Likewise.
27306 (vpaddlq_s16): Likewise.
27307 (vpaddlq_s32): Likewise.
27308 (vpaddlq_u8): Likewise.
27309 (vpaddlq_u16): Likewise.
27310 (vpaddlq_u32): Liwewise.
27311 * config/aarch64/iterators.md: Define [SU]ADDLP unspecs with
27312 appropriate attributes.
27314 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
27316 * config/aarch64/aarch64-simd-builtins.def: Use VDQ_I iterator
27317 for aarch64_addp<mode> builtin macro generator.
27318 * config/aarch64/aarch64-simd.md: Use VDQ_I iterator in
27319 aarch64_addp<mode> RTL pattern.
27320 * config/aarch64/arm_neon.h (vpaddq_s8): Use RTL builtin
27321 instead of inline asm.
27322 (vpaddq_s16): Likewise.
27323 (vpaddq_s32): Likewise.
27324 (vpaddq_s64): Likewise.
27325 (vpaddq_u8): Likewise.
27326 (vpaddq_u16): Likewise.
27327 (vpaddq_u32): Likewise.
27328 (vpaddq_u64): Likewise.
27330 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
27332 * config/aarch64/aarch64-simd-builtins.def: Add sq[r]dmulh_n
27333 builtin generator macros.
27334 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_n<mode>):
27336 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Use RTL builtin
27337 instead of inline asm.
27338 (vqdmulh_n_s32): Likewise.
27339 (vqdmulhq_n_s16): Likewise.
27340 (vqdmulhq_n_s32): Likewise.
27341 (vqrdmulh_n_s16): Likewise.
27342 (vqrdmulh_n_s32): Likewise.
27343 (vqrdmulhq_n_s16): Likewise.
27344 (vqrdmulhq_n_s32): Likewise.
27346 2021-04-28 Tobias Burnus <tobias@codesourcery.com>
27348 * doc/install.texi (--enable-offload-defaulted): Document.
27350 2021-04-28 Senthil Kumar Selvaraj <saaadhu@gcc.gnu.org>
27352 * config/avr/avr-dimode.md: Turn existing patterns into
27353 define_insn_and_split style patterns where the splitter
27354 adds a clobber of the condition code register. Drop "cc"
27355 attribute. Add new patterns to match output of
27357 * config/avr/avr-fixed.md: Likewise.
27358 * config/avr/avr.c (cc_reg_rtx): New.
27359 (avr_parallel_insn_from_insns): Adjust insn count
27360 for removal of set of cc0.
27361 (avr_is_casesi_sequence): Likewise.
27362 (avr_casei_sequence_check_operands): Likewise.
27363 (avr_optimize_casesi): Likewise. Also insert
27364 new insns after jump_insn.
27365 (avr_pass_casesi::avr_rest_of_handle_casesi): Adjust
27366 for removal of set of cc0.
27367 (avr_init_expanders): Initialize cc_reg_rtx.
27368 (avr_regno_reg_class): Handle REG_CC.
27369 (cond_string): Remove usage of CC_OVERFLOW_UNUSABLE.
27370 (avr_notice_update_cc): Remove function.
27371 (ret_cond_branch): Remove usage of CC_OVERFLOW_UNUSABLE.
27372 (compare_condition): Adjust for PARALLEL with
27374 (out_shift_with_cnt): Likewise.
27375 (ashlhi3_out): Likewise.
27376 (ashrhi3_out): Likewise.
27377 (lshrhi3_out): Likewise.
27378 (avr_class_max_nregs): Return single reg for REG_CC.
27379 (avr_compare_pattern): Check for REG_CC instead
27381 (avr_reorg_remove_redundant_compare): Likewise.
27382 (avr_reorg):Adjust for PARALLEL with REG_CC clobber.
27383 (avr_hard_regno_nregs): Return single reg for REG_CC.
27384 (avr_hard_regno_mode_ok): Allow only CCmode for REG_CC.
27385 (avr_md_asm_adjust): Clobber REG_CC.
27386 (TARGET_HARD_REGNO_NREGS): Define.
27387 (TARGET_CLASS_MAX_NREGS): Define.
27388 (TARGET_MD_ASM_ADJUST): Define.
27389 * config/avr/avr.h (FIRST_PSEUDO_REGISTER): Adjust
27391 (enum reg_class): Add CC_REG class.
27392 (NOTICE_UPDATE_CC): Remove.
27393 (CC_OVERFLOW_UNUSABLE): Remove.
27394 (CC_NO_CARRY): Remove.
27395 * config/avr/avr.md: Turn existing patterns into
27396 define_insn_and_split style patterns where the splitter
27397 adds a clobber of the condition code register. Drop "cc"
27398 attribute. Add new patterns to match output of
27400 (sez): Remove unused pattern.
27402 2021-04-28 Richard Earnshaw <rearnsha@arm.com>
27405 * config/arm/arm.c (arm_hard_regno_mode_ok): Only allow VPR to be
27408 2021-04-28 Richard Sandiford <richard.sandiford@arm.com>
27411 * config/aarch64/constraints.md (Utq): Require the address to
27412 be valid for both the element mode and for V2DImode.
27414 2021-04-28 Jakub Jelinek <jakub@redhat.com>
27415 Tobias Burnus <tobias@codesourcery.com>
27417 * configure.ac (OFFLOAD_DEFAULTED): AC_DEFINE if offload-defaulted.
27418 * gcc.c (process_command): New variable.
27419 (driver::maybe_putenv_OFFLOAD_TARGETS): If OFFLOAD_DEFAULTED,
27420 set it if -foffload is defaulted.
27421 * lto-wrapper.c (OFFLOAD_TARGET_DEFAULT_ENV): Define.
27422 (compile_offload_image): If OFFLOAD_DEFAULTED and
27423 OFFLOAD_TARGET_DEFAULT is in the environment, don't fail
27424 if corresponding mkoffload can't be found.
27425 (compile_images_for_offload_targets): Likewise. Free and clear
27426 offload_names if no valid offload is found.
27427 * config.in: Regenerate.
27428 * configure: Regenerate.
27430 2021-04-28 Richard Biener <rguenther@suse.de>
27432 PR tree-optimization/100292
27433 * tree-vect-generic.c (expand_vector_condition): Do not fold
27436 2021-04-27 David Edelsohn <dje.gcc@gmail.com>
27438 * config/rs6000/aix.h (SUBTARGET_DRIVER_SELF_SPECS): New.
27439 * config/rs6000/aix64.opt (m64): New.
27442 2021-04-27 Maciej W. Rozycki <macro@orcam.me.uk>
27444 * config/vax/vax.c (print_operand_address, vax_address_cost_1)
27445 (index_term_p): Handle ASHIFT too.
27447 2021-04-27 Maciej W. Rozycki <macro@orcam.me.uk>
27449 * config/vax/builtins.md (jbb<ccss>i<mode>): Remove operand #3.
27450 (sync_lock_test_and_set<mode>): Adjust accordingly.
27451 (sync_lock_release<mode>): Likewise.
27453 2021-04-27 Maciej W. Rozycki <macro@orcam.me.uk>
27455 * config/vax/vax-protos.h (adjacent_operands_p): Remove
27457 * config/vax/vax.c (adjacent_operands_p): Remove.
27459 2021-04-27 Maciej W. Rozycki <macro@linux-mips.org>
27461 * ifcvt.c (dead_or_predicable) [!IFCVT_MODIFY_TESTS]: Fall
27462 through to the non-conditional execution case if getting the
27463 condition for conditional execution has failed.
27465 2021-04-27 Richard Sandiford <richard.sandiford@arm.com>
27467 PR middle-end/100284
27468 * gimple.c (gimple_could_trap_p_1): Remove VEC_COND_EXPR test.
27469 * tree-eh.c (operation_could_trap_p): Handle VEC_COND_EXPR rather
27470 than asserting on it.
27472 2021-04-27 David Edelsohn <dje.gcc@gmail.com>
27474 * config/rs6000/rs6000.c (rs6000_aix_precompute_tls_p): Protect
27475 with TARGET_AIX_OS.
27477 2021-04-27 David Edelsohn <dje.gcc@gmail.com>
27480 * calls.c (precompute_register_parameters): Additionally test
27481 targetm.precompute_tls_p to pre-compute argument.
27482 * config/rs6000/aix.h (TARGET_PRECOMPUTE_TLS_P): Define.
27483 * config/rs6000/rs6000.c (rs6000_aix_precompute_tls_p): New.
27484 * target.def (precompute_tls_p): New.
27485 * doc/tm.texi.in (TARGET_PRECOMPUTE_TLS_P): Add hook documentation.
27486 * doc/tm.texi: Regenerated.
27488 2021-04-27 Jakub Jelinek <jakub@redhat.com>
27491 * config/aarch64/aarch64.c (aarch64_print_operand): Cast -UINTVAL
27492 back to HOST_WIDE_INT.
27494 2021-04-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
27497 * simplify-rtx.c (simplify_context::simplify_subreg): Check the
27498 memory alignment for the outer mode.
27500 2021-04-27 H.J. Lu <hjl.tools@gmail.com>
27502 PR middle-end/90773
27503 * expr.c (op_by_pieces_d::get_usable_mode): New member function.
27504 (op_by_pieces_d::run): Cange a while loop to a do-while loop.
27506 2021-04-27 Alex Coplan <alex.coplan@arm.com>
27509 * config/arm/arm.c (arm_split_compare_and_swap): Fix up codegen
27510 with negative immediates: ensure we expand cbranchsi4_scratch
27511 correctly and ensure we satisfy its constraints.
27512 * config/arm/sync.md
27513 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Don't
27514 attempt to tie two output operands together with constraints;
27515 collapse two alternatives.
27516 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise.
27517 * config/arm/thumb1.md (cbranchsi4_neg_late): New.
27519 2021-04-27 Jakub Jelinek <jakub@redhat.com>
27522 * config/aarch64/predicates.md (aarch64_sub_immediate,
27523 aarch64_plus_immediate): Use -UINTVAL instead of -INTVAL.
27524 * config/aarch64/aarch64.md (casesi, rotl<mode>3): Likewise.
27525 * config/aarch64/aarch64.c (aarch64_print_operand,
27526 aarch64_split_atomic_op, aarch64_expand_subvti): Likewise.
27528 2021-04-27 Jakub Jelinek <jakub@redhat.com>
27530 PR tree-optimization/100239
27531 * tree-vect-generic.c (lower_vec_perm): Don't accept constant
27532 permutations with all indices from the first zero element as vec_shl.
27534 2021-04-27 Jakub Jelinek <jakub@redhat.com>
27536 PR rtl-optimization/100254
27537 * cfgcleanup.c (outgoing_edges_match): Check REG_EH_REGION on
27538 last1 and last2 insns rather than BB_END (bb1) and BB_END (bb2) insns.
27540 2021-04-27 Richard Biener <rguenther@suse.de>
27542 PR tree-optimization/99912
27543 * passes.def: Add comment about new TODO_remove_unused_locals.
27544 * tree-stdarg.c (pass_data_stdarg): Run TODO_remove_unused_locals
27547 2021-04-27 Richard Biener <rguenther@suse.de>
27549 PR tree-optimization/99912
27550 * passes.def (pass_all_optimizations): Add pass_dse before
27551 the first pass_dce, move the first pass_dse before the
27552 pass_dce following pass_pre.
27554 2021-04-27 Jakub Jelinek <jakub@redhat.com>
27556 PR tree-optimization/95527
27557 * generic-match-head.c: Include tm.h.
27558 * gimple-match-head.c: Include tm.h.
27559 * match.pd (CLZ == INTEGER_CST): Don't use
27560 #ifdef CLZ_DEFINED_VALUE_AT_ZERO, only test CLZ_DEFINED_VALUE_AT_ZERO
27561 if clz == CFN_CLZ. Add missing val declaration.
27562 (CTZ cmp CST): New simplifications.
27564 2021-04-27 Jakub Jelinek <jakub@redhat.com>
27566 PR tree-optimization/96696
27567 * expr.c (expand_expr_divmod): New function.
27568 (expand_expr_real_2) <case TRUNC_DIV_EXPR>: Use it for truncations and
27569 divisions. Formatting fixes.
27570 <case MULT_EXPR>: Optimize x / y * y as x - x % y if the latter is
27573 2021-04-27 Martin Jambor <mjambor@suse.cz>
27576 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call):
27577 If removing a call statement LHS SSA name, release it.
27579 2021-04-27 Richard Earnshaw <rearnsha@arm.com>
27582 * config/arm/arm.c (THUMB2_WORK_REGS): Check PIC_OFFSET_TABLE_REGNUM
27583 is valid before including it in the mask.
27585 2021-04-27 Richard Sandiford <richard.sandiford@arm.com>
27588 * config/aarch64/aarch64.c (aarch64_comp_type_attributes): Handle
27591 2021-04-27 Richard Biener <rguenther@suse.de>
27593 PR tree-optimization/100051
27594 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Add
27595 disambiguator based on access size vs. decl size.
27597 2021-04-27 Richard Biener <rguenther@suse.de>
27599 PR tree-optimization/100278
27600 * tree-ssa-pre.c (compute_avail): Give up when we cannot
27601 adjust TBAA beacuse of mismatching bases.
27603 2021-04-27 Jakub Jelinek <jakub@redhat.com>
27606 * config/i386/i386.md (*<insn><mode>3_mask, *<insn><mode>3_mask_1):
27607 For any_rotate define_insn_split and following splitters, use
27608 SWI iterator instead of SWI48.
27610 2021-04-27 Richard Biener <rguenther@suse.de>
27612 PR tree-optimization/99776
27613 * match.pd (bit_field_ref (ctor)): Relax element extract
27614 type compatibility checks.
27616 2021-04-27 Cui,Lili <lili.cui@intel.com>
27618 * common/config/i386/i386-common.c (processor_names):
27619 Sync processor_names with processor_type.
27620 * config/i386/i386-options.c (processor_cost_table):
27621 Sync processor_cost_table with processor_type.
27623 2021-04-26 Aldy Hernandez <aldyh@redhat.com>
27625 * value-range.cc (irange::irange_set_1bit_anti_range): Add assert.
27626 (irange::set): Call irange_set_1bit_anti_range for handling all
27627 1-bit ranges. Fall through on ~[MIN,MAX].
27629 2021-04-26 Aldy Hernandez <aldyh@redhat.com>
27631 * value-range.cc (irange::legacy_num_pairs): Remove.
27632 (irange::invert): Change gcc_assert to gcc_checking_assert.
27633 * value-range.h (irange::num_pairs): Adjust for a cached
27634 num_pairs(). Also, rename all gcc_assert's to
27635 gcc_checking_assert's.
27637 2021-04-26 Aldy Hernandez <aldyh@redhat.com>
27639 * value-range.cc (irange::operator=): Set m_kind.
27640 (irange::copy_to_legacy): Handle varying and undefined sources
27641 as a legacy copy since they can be easily copied.
27642 (irange::irange_set): Set m_kind.
27643 (irange::irange_set_anti_range): Same.
27644 (irange::set): Rename normalize_min_max to normalize_kind.
27645 (irange::verify_range): Adjust for multi-ranges having the
27647 (irange::irange_union): Set m_kind.
27648 (irange::irange_intersect): Same.
27649 (irange::invert): Same.
27650 * value-range.h (irange::kind): Always return m_kind.
27651 (irange::varying_p): Rename to...
27652 (irange::varying_comptaible_p): ...this.
27653 (irange::undefined_p): Only look at m_kind.
27654 (irange::irange): Always set VR_UNDEFINED if applicable.
27655 (irange::set_undefined): Always set VR_UNDEFINED.
27656 (irange::set_varying): Always set m_kind to VR_VARYING.
27657 (irange::normalize_min_max): Rename to...
27658 (irange::normalize_kind): ...this.
27660 2021-04-26 Aldy Hernandez <aldyh@redhat.com>
27662 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::set_ssa_range_info):
27663 Adjust for constant_p including varying_p.
27664 * tree-vrp.c (vrp_prop::finalize): Same.
27665 (determine_value_range): Same.
27666 * vr-values.c (vr_values::range_of_expr): Same.
27667 * value-range.cc (irange::symbolic_p): Do not check varying_p.
27668 (irange::constant_p): Same.
27670 2021-04-26 Aldy Hernandez <aldyh@redhat.com>
27672 * value-range.cc (irange::legacy_lower_bound): Replace
27673 !undefined_p check with num_ranges > 0.
27674 (irange::legacy_upper_bound): Same.
27675 * value-range.h (irange::type): Same.
27676 (irange::lower_bound): Same.
27677 (irange::upper_bound): Same.
27679 2021-04-26 Richard Biener <rguenther@suse.de>
27681 PR tree-optimization/99956
27682 * gimple-loop-interchange.cc (compute_access_stride):
27683 Try instantiating the access in a shallower loop nest
27684 if instantiating failed.
27685 (compute_access_strides): Pass adjustable loop_nest
27686 to compute_access_stride.
27688 2021-04-26 Christophe Lyon <christophe.lyon@linaro.org>
27690 * doc/sourcebuild.texi (arm_cmse_hw): Document.
27692 2021-04-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27694 * config/aarch64/iterators.md (vwcore): Handle V4BF, V8BF.
27696 2021-04-26 Thomas Schwinge <thomas@codesourcery.com>
27697 Nathan Sidwell <nathan@codesourcery.com>
27698 Tom de Vries <vries@codesourcery.com>
27699 Julian Brown <julian@codesourcery.com>
27700 Kwok Cheung Yeung <kcy@codesourcery.com>
27702 * omp-offload.c (oacc_validate_dims): Implement
27703 '-Wopenacc-parallelism'.
27704 * doc/invoke.texi (-Wopenacc-parallelism): Document.
27706 2021-04-26 Richard Biener <rguenther@suse.de>
27708 * tree-cfg.h (gimplify_build1): Remove.
27709 (gimplify_build2): Likewise.
27710 (gimplify_build3): Likewise.
27711 * tree-cfg.c (gimplify_build1): Move to tree-vect-generic.c.
27712 (gimplify_build2): Likewise.
27713 (gimplify_build3): Likewise.
27714 * tree-vect-generic.c (gimplify_build1): Move from tree-cfg.c.
27716 (gimplify_build2): Likewise.
27717 (gimplify_build3): Likewise.
27718 (tree_vec_extract): Use resimplify with following SSA edges.
27719 (expand_vector_parallel): Avoid passing NULL size/bitpos
27720 to tree_vec_extract.
27721 * expr.c (store_constructor): Deal with zero-element CTORs.
27722 * match.pd (bit_field_ref <vector CTOR>): Make sure to
27723 produce vector constants when possible.
27725 2021-04-26 Richard Biener <rguenther@suse.de>
27727 * tree-complex.c: Include gimple-fold.h.
27728 (expand_complex_addition): Use gimple_build.
27729 (expand_complex_multiplication_components): Likewise.
27730 (expand_complex_multiplication): Likewise.
27731 (expand_complex_div_straight): Likewise.
27732 (expand_complex_div_wide): Likewise.
27733 (expand_complex_division): Likewise.
27734 (expand_complex_conjugate): Likewise.
27735 (expand_complex_comparison): Likewise.
27737 2021-04-26 Richard Biener <rguenther@suse.de>
27739 * tree-ssa-phiopt.c (two_value_replacement): Remove use
27740 of legacy gimplify_buildN API.
27742 2021-04-26 Richard Biener <rguenther@suse.de>
27744 PR tree-optimization/99473
27745 * tree-ssa-phiopt.c (cond_store_replacement): Handle all
27748 2021-04-26 Richard Biener <rguenther@suse.de>
27750 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_builtin):
27751 Use replace_call_with_value.
27753 2021-04-26 Richard Biener <rguenther@suse.de>
27755 * tree-ssa-propagate.h (valid_gimple_rhs_p): Remove.
27756 (update_gimple_call): Likewise.
27757 (update_call_from_tree): Likewise.
27758 * tree-ssa-propagate.c (valid_gimple_rhs_p): Remove.
27759 (valid_gimple_call_p): Likewise.
27760 (move_ssa_defining_stmt_for_defs): Likewise.
27761 (finish_update_gimple_call): Likewise.
27762 (update_gimple_call): Likewise.
27763 (update_call_from_tree): Likewise.
27764 (propagate_tree_value_into_stmt): Use replace_call_with_value.
27765 * gimple-fold.h (update_gimple_call): Declare.
27766 * gimple-fold.c (valid_gimple_rhs_p): Move here from
27767 tree-ssa-propagate.c.
27768 (update_gimple_call): Likewise.
27769 (valid_gimple_call_p): Likewise.
27770 (finish_update_gimple_call): Likewise, and simplify.
27771 (gimplify_and_update_call_from_tree): Implement
27772 update_call_from_tree functionality, avoid excessive
27773 push/pop_gimplify_context.
27774 (gimple_fold_builtin): Use only gimplify_and_update_call_from_tree.
27775 (gimple_fold_call): Likewise.
27776 * gimple-ssa-sprintf.c (try_substitute_return_value): Likewise.
27777 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Likewise.
27778 (pass_fold_builtins::execute): Likewise.
27779 (optimize_stack_restore): Use replace_call_with_value.
27780 * tree-cfg.c (fold_loop_internal_call): Likewise.
27781 * tree-ssa-dce.c (maybe_optimize_arith_overflow): Use
27782 only gimplify_and_update_call_from_tree.
27783 * tree-ssa-strlen.c (handle_builtin_strlen): Likewise.
27784 (handle_builtin_strchr): Likewise.
27785 * tsan.c: Include gimple-fold.h instead of tree-ssa-propagate.h.
27787 2021-04-26 Jakub Jelinek <jakub@redhat.com>
27790 * vmsdbgout.c (ASM_OUTPUT_DEBUG_STRING, vmsdbgout_begin_block,
27791 vmsdbgout_end_block, lookup_filename, vmsdbgout_source_line): Remove
27794 2021-04-25 liuhongt <hongtao.liu@intel.com>
27797 * config/i386/i386-builtin.def (BDESC): Change the icode of
27798 the following builtins to CODE_FOR_nothing.
27799 * config/i386/i386.c (ix86_gimple_fold_builtin): Fold
27800 IX86_BUILTIN_PCMPEQB128, IX86_BUILTIN_PCMPEQW128,
27801 IX86_BUILTIN_PCMPEQD128, IX86_BUILTIN_PCMPEQQ,
27802 IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
27803 IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
27804 IX86_BUILTIN_PCMPGTB128, IX86_BUILTIN_PCMPGTW128,
27805 IX86_BUILTIN_PCMPGTD128, IX86_BUILTIN_PCMPGTQ,
27806 IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
27807 IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256.
27808 * config/i386/sse.md (avx2_eq<mode>3): Deleted.
27809 (sse2_eq<mode>3): Ditto.
27810 (sse4_1_eqv2di3): Ditto.
27811 (sse2_gt<mode>3): Rename to ..
27812 (*sse2_gt<mode>3): .. this.
27814 2021-04-24 Iain Sandoe <iain@sandoe.co.uk>
27817 2021-04-24 Iain Sandoe <iain@sandoe.co.uk>
27820 * config/darwin.c (darwin_binds_local_p): Assume that any
27821 public symbol might be interposed for PIC code. Update function
27822 header comment to reflect current Darwin capability.
27824 2021-04-24 Iain Sandoe <iain@sandoe.co.uk>
27827 * config/darwin.c (darwin_binds_local_p): Assume that any
27828 public symbol might be interposed for PIC code. Update function
27829 header comment to reflect current Darwin capability.
27831 2021-04-24 Richard Sandiford <richard.sandiford@arm.com>
27833 * doc/sourcebuild.texi: Document no-opts and any-opts target
27836 2021-04-23 YiFei Zhu <zhuyifei1999@gmail.com>
27838 * config/bpf/bpf.h (ASM_OUTPUT_ALIGNED_BSS): Use .type and .lcomm.
27840 2021-04-23 YiFei Zhu <zhuyifei1999@gmail.com>
27842 * config/bpf/bpf.h (FUNCTION_BOUNDARY): Set to 64.
27844 2021-04-23 Uroš Bizjak <ubizjak@gmail.com>
27847 * config/i386/i386-options.c (ix86_option_override_internal):
27848 Error out when -m96bit-long-double is used with 64bit targets.
27849 * config/i386/i386.md (*pushxf_rounded): Remove pattern.
27851 2021-04-23 Martin Liska <mliska@suse.cz>
27853 * lto-wrapper.c: Remove FIXME about usage of
27854 hardware_concurrency. The function is not on par with
27857 2021-04-23 Uroš Bizjak <ubizjak@gmail.com>
27860 * config/i386/sync.md (FILD_ATOMIC/FIST_ATOMIC FP load peephole2):
27861 Copy operand 3 to operand 4. Use sse_reg_operand
27862 as operand 3 predicate.
27863 (FILD_ATOMIC/FIST_ATOMIC FP load peephole2 with mem blockage): Ditto.
27864 (LDX_ATOMIC/STX_ATOMIC FP load peephole2): Ditto.
27865 (LDX_ATOMIC/LDX_ATOMIC FP load peephole2 with mem blockage): Ditto.
27866 (FILD_ATOMIC/FIST_ATOMIC FP store peephole2):
27867 Copy operand 1 to operand 0.
27868 (FILD_ATOMIC/FIST_ATOMIC FP store peephole2 with mem blockage): Ditto.
27869 (LDX_ATOMIC/STX_ATOMIC FP store peephole2): Ditto.
27870 (LDX_ATOMIC/LDX_ATOMIC FP store peephole2 with mem blockage): Ditto.
27872 2021-04-23 Alex Coplan <alex.coplan@arm.com>
27874 PR rtl-optimization/100230
27875 * early-remat.c (early_remat::sort_candidates): Use delete[]
27876 instead of delete for array allocated with new[].
27878 2021-04-23 Richard Biener <rguenther@suse.de>
27880 * genmatch.c (lower_cond): Remove VEC_COND_EXPR special-casing.
27881 (capture_info::capture_info): Likewise.
27882 (capture_info::walk_match): Likewise.
27883 (expr::gen_transform): Likewise.
27884 (dt_simplify::gen_1): Likewise.
27885 * gimple-match-head.c (maybe_resimplify_conditional_op):
27886 Remove VEC_COND_EXPR special-casing.
27887 (gimple_simplify): Likewise.
27888 * gimple.c (gimple_could_trap_p_1): Adjust.
27889 * tree-ssa-pre.c (compute_avail): Allow VEC_COND_EXPR
27890 to participate in PRE.
27892 2021-04-23 Richard Biener <rguenther@suse.de>
27894 * cfganal.c (connect_infinite_loops_to_exit): First call
27895 add_noreturn_fake_exit_edges.
27896 * ipa-sra.c (process_scan_results): Do not call the now redundant
27897 add_noreturn_fake_exit_edges.
27898 * predict.c (tree_estimate_probability): Likewise.
27899 (rebuild_frequencies): Likewise.
27900 * store-motion.c (one_store_motion_pass): Likewise.
27902 2021-04-23 Richard Biener <rguenther@suse.de>
27904 PR tree-optimization/100222
27905 * predict.c (pass_profile::execute): Remove redundant call to
27906 mark_irreducible_loops.
27907 (report_predictor_hitrates): Likewise.
27909 2021-04-23 Richard Biener <rguenther@suse.de>
27911 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
27912 valid_gimple_rhs_p by instead gimplifying to one.
27914 2021-04-23 Richard Biener <rguenther@suse.de>
27916 PR tree-optimization/99971
27917 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences):
27918 Always use TBAA for loads.
27920 2021-04-23 liuhongt <hongtao.liu@intel.com>
27923 * config/i386/i386-options.c (ix86_option_override_internal):
27924 Clear MASK_AVX256_SPLIT_UNALIGNED_LOAD/STORE in x_target_flags
27925 when X86_TUNE_AVX256_UNALIGNED_LOAD/STORE_OPTIMAL is enabled
27926 by target attribute.
27928 2021-04-23 David Edelsohn <dje.gcc@gmail.com>
27930 * config/rs6000/aix71.h (PREFERRED_DEBUGGING_TYPE): Change to
27932 * config/rs6000/aix72.h (PREFERRED_DEBUGGING_TYPE): Same.
27934 2021-04-22 David Edelsohn <dje.gcc@gmail.com>
27936 * config.gcc (powerpc-ibm-aix6.*): Remove.
27937 * config/rs6000/aix61.h: Delete.
27939 2021-04-22 Martin Liska <mliska@suse.cz>
27941 PR testsuite/100159
27942 PR testsuite/100192
27943 * builtins.c (expand_builtin): Fix typos and missing comments.
27944 * dwarf2out.c (gen_subprogram_die): Likewise.
27945 (gen_struct_or_union_type_die): Likewise.
27947 2021-04-22 Uroš Bizjak <ubizjak@gmail.com>
27950 * config/i386/i386-expand.c (ix86_expand_convert_uns_sidf_sse):
27951 Remove the sign with FE_DOWNWARD, where x - x = -0.0.
27953 2021-04-21 Iain Sandoe <iain@sandoe.co.uk>
27955 * config/i386/darwin.h (TARGET_64BIT): Remove definition
27956 based on TARGET_ISA_64BIT.
27957 (TARGET_64BIT_P): Remove definition based on
27958 TARGET_ISA_64BIT_P().
27960 2021-04-21 Martin Liska <mliska@suse.cz>
27963 2021-04-21 Martin Liska <mliska@suse.cz>
27965 * lto-wrapper.c (cpuset_popcount): Remove.
27966 (init_num_threads): Remove and use hardware_concurrency.
27968 2021-04-21 Martin Liska <mliska@suse.cz>
27971 * main.c (main): Call toplev::finalize in CHECKING_P mode.
27972 * ipa-modref.c (ipa_modref_c_finalize): summaries are NULL
27973 when incremental LTO linking happens.
27975 2021-04-21 Martin Liska <mliska@suse.cz>
27977 * lto-wrapper.c (run_gcc): When -flto=jobserver is used, but the
27978 makeserver cannot be detected, then use -flto=N fallback.
27980 2021-04-21 Richard Sandiford <richard.sandiford@arm.com>
27982 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): When cross-compiling,
27983 default to yes for aarch64-linux-gnu.
27984 * configure: Regenerate.
27986 2021-04-21 Martin Liska <mliska@suse.cz>
27988 * lto-wrapper.c (cpuset_popcount): Remove.
27989 (init_num_threads): Remove and use hardware_concurrency.
27991 2021-04-21 Martin Liska <mliska@suse.cz>
27993 * config/i386/i386.c: Remove superfluous || TARGET_MACHO
27994 which remains to be '(... || 0)' and clang complains about it.
27995 * dwarf2out.c (AT_vms_delta): Declare conditionally.
27996 (add_AT_vms_delta): Likewise.
27997 * tree.c (fld_simplified_type): Use rather more common pattern
27998 for disabling of something (#if 0).
27999 (get_tree_code_name): Likewise.
28000 (verify_type_variant): Likewise.
28002 2021-04-21 Martin Liska <mliska@suse.cz>
28004 * config/i386/i386-expand.c (decide_alignment): Use newly named
28005 macro TARGET_CPU_P.
28006 * config/i386/i386.c (ix86_decompose_address): Likewise.
28007 (ix86_address_cost): Likewise.
28008 (ix86_lea_outperforms): Likewise.
28009 (ix86_avoid_lea_for_addr): Likewise.
28010 (ix86_add_stmt_cost): Likewise.
28011 * config/i386/i386.h (TARGET_*): Remove.
28012 (TARGET_CPU_P): New macro.
28013 * config/i386/i386.md: Use newly named macro TARGET_CPU_P.
28014 * config/i386/x86-tune-sched-atom.c (do_reorder_for_imul): Likewise.
28015 (swap_top_of_ready_list): Likewise.
28016 (ix86_atom_sched_reorder): Likewise.
28017 * config/i386/x86-tune-sched-bd.c (ix86_bd_has_dispatch): Likewise.
28018 * config/i386/x86-tune-sched.c (ix86_adjust_cost): Likewise.
28020 2021-04-21 Martin Liska <mliska@suse.cz>
28022 * config/i386/i386-options.c (TARGET_EXPLICIT_NO_SAHF_P):
28024 (SET_TARGET_NO_SAHF): Likewise.
28025 (TARGET_EXPLICIT_PREFETCH_SSE_P): Likewise.
28026 (SET_TARGET_PREFETCH_SSE): Likewise.
28027 (TARGET_EXPLICIT_NO_TUNE_P): Likewise.
28028 (SET_TARGET_NO_TUNE): Likewise.
28029 (TARGET_EXPLICIT_NO_80387_P): Likewise.
28030 (SET_TARGET_NO_80387): Likewise.
28032 * config/i386/i386.h (TARGET_*): Remove.
28033 * opth-gen.awk: Generate new used macros.
28035 2021-04-21 Martin Liska <mliska@suse.cz>
28037 * config/i386/i386.h (PTA_*): Remove.
28038 (enum pta_flag): New.
28039 (DEF_PTA): Generate PTA_* values from i386-isa.def.
28040 * config/i386/i386-isa.def: New file.
28042 2021-04-21 Alex Coplan <alex.coplan@arm.com>
28045 * config/aarch64/aarch64-bti-insert.c (aarch64_bti_j_insn_p): New.
28046 (rest_of_insert_bti): Avoid inserting duplicate bti j insns for
28047 jump table targets.
28049 2021-04-21 H.J. Lu <hjl.tools@gmail.com>
28051 * config.gcc: Install mwaitintrin.h for i[34567]86-*-* and
28052 x86_64-*-* targets.
28053 * common/config/i386/i386-common.c (OPTION_MASK_ISA2_MWAIT_SET):
28055 (OPTION_MASK_ISA2_MWAIT_UNSET): Likewise.
28056 (ix86_handle_option): Handle -mmwait.
28057 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
28058 Replace OPTION_MASK_ISA_SSE3 with OPTION_MASK_ISA2_MWAIT on
28059 __builtin_ia32_monitor and __builtin_ia32_mwait.
28060 * config/i386/i386-options.c (isa2_opts): Add -mmwait.
28061 (ix86_valid_target_attribute_inner_p): Likewise.
28062 (ix86_option_override_internal): Enable mwait/monitor
28063 instructions for -msse3.
28064 * config/i386/i386.h (TARGET_MWAIT): New.
28065 (TARGET_MWAIT_P): Likewise.
28066 * config/i386/i386.opt: Add -mmwait.
28067 * config/i386/mwaitintrin.h: New file.
28068 * config/i386/pmmintrin.h: Include <mwaitintrin.h>.
28069 * config/i386/sse.md (sse3_mwait): Replace TARGET_SSE3 with
28071 (@sse3_monitor_<mode>): Likewise.
28072 * config/i386/x86gprintrin.h: Include <mwaitintrin.h>.
28073 * doc/extend.texi: Document mwait target attribute.
28074 * doc/invoke.texi: Document -mmwait.
28076 2021-04-21 Martin Liska <mliska@suse.cz>
28078 * config/i386/i386-options.c (DEF_ENUM): Remove it.
28079 * config/i386/i386-opts.h (DEF_ENUM): Likewise.
28080 * config/i386/stringop.def (DEF_ENUM): Likewise.
28082 2021-04-21 Martin Liska <mliska@suse.cz>
28084 * tree-cfg.c (gimple_verify_flow_info): Use qD instead
28085 of print_generic_expr.
28087 2021-04-21 Jakub Jelinek <jakub@redhat.com>
28089 PR rtl-optimization/100148
28090 * cprop.c (constprop_register): Use next_nondebug_insn instead of
28093 2021-04-21 Martin Liska <mliska@suse.cz>
28096 * cgraphunit.c (cgraph_node::analyze): Remove duplicate
28097 free_dominance_info calls.
28099 2021-04-21 Richard Biener <rguenther@suse.de>
28101 * gimple-fold.c (maybe_fold_reference): Remove is_lhs
28102 parameter (and assume it to be false).
28103 (fold_gimple_assign): Adjust, remove all callers of
28104 maybe_fold_reference calling it with is_lhs true.
28105 (gimple_fold_call): Likewise.
28106 (fold_stmt_1): Likewise.
28108 2021-04-21 Richard Biener <rguenther@suse.de>
28110 * fold-const.c (pedantic_non_lvalue_loc): Remove.
28111 (fold_binary_loc): Adjust.
28112 (fold_ternary_loc): Likewise.
28114 2021-04-21 Richard Sandiford <richard.sandiford@arm.com>
28116 PR middle-end/100130
28117 * varasm.c (get_block_for_decl): Make sure that any use of the
28118 retain attribute matches the section's retain flag.
28119 (switch_to_section): Check for retain mismatches even when
28120 changing sections, but do not warn if the given decl is the
28121 section's named.decl.
28122 (output_object_block): Pass the first decl in the block (if any)
28123 to switch_to_section.
28125 2021-04-20 H.J. Lu <hjl.tools@gmail.com>
28127 * config/i386/i386-c.c (ix86_target_macros_internal): Define
28128 __CRC32__ for -mcrc32.
28129 * config/i386/i386-options.c (ix86_option_override_internal):
28130 Enable crc32 instruction for -msse4.2.
28131 * config/i386/i386.md (sse4_2_crc32<mode>): Remove TARGET_SSE4_2
28133 (sse4_2_crc32di): Likewise.
28134 * config/i386/ia32intrin.h: Use crc32 target option for CRC32
28137 2021-04-20 Segher Boessenkool <segher@kernel.crashing.org>
28140 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Do not consider
28143 2021-04-20 Martin Liska <mliska@suse.cz>
28145 * doc/invoke.texi: Fix typo.
28146 * params.opt: Likewise.
28148 2021-04-20 Martin Liska <mliska@suse.cz>
28150 * doc/invoke.texi: Document new param.
28152 2021-04-19 Andrew MacLeod <amacleod@redhat.com>
28154 PR tree-optimization/100081
28155 * gimple-range-cache.h (ranger_cache): Inherit from gori_compute
28156 rather than gori_compute_cache.
28157 * gimple-range-gori.cc (is_gimple_logical_p): Move to top of file.
28158 (range_def_chain::m_logical_depth): New member.
28159 (range_def_chain::range_def_chain): Initialize m_logical_depth.
28160 (range_def_chain::get_def_chain): Don't build defchains through more
28161 than LOGICAL_LIMIT logical expressions.
28162 * params.opt (param_ranger_logical_depth): New.
28164 2021-04-19 Richard Earnshaw <rearnsha@arm.com>
28167 * config/arm/arm.c (arm_configure_build_target): Do not strip
28168 extended FPU/SIMD feature bits from the target ISA when -mfpu
28169 is specified (partial revert of r11-8168).
28171 2021-04-19 Thomas Schwinge <thomas@codesourcery.com>
28173 * params.opt (-param=openacc-kernels=): Add.
28174 * omp-oacc-kernels-decompose.cc
28175 (pass_omp_oacc_kernels_decompose::gate): Use it.
28176 * doc/invoke.texi (-fopenacc-kernels=@var{mode}): Move...
28177 (--param): ... here, 'openacc-kernels'.
28179 2021-04-19 Martin Liska <mliska@suse.cz>
28182 * gengtype.c (finish_root_table): Align function arguments
28183 in between declaration and definition.
28185 2021-04-19 Eric Botcazou <ebotcazou@adacore.com>
28187 * config/i386/winnt.c (i386_pe_seh_cold_init): Properly deal with
28188 frames larger than the SEH maximum frame size.
28190 2021-04-18 Segher Boessenkool <segher@kernel.crashing.org>
28192 PR rtl-optimization/99927
28193 * combine.c (distribute_notes) [REG_UNUSED]: If the register already
28194 is dead, just drop it.
28196 2021-04-17 Iain Buclaw <ibuclaw@gdcproject.org>
28199 * config/i386/winnt-d.c (TARGET_D_TEMPLATES_ALWAYS_COMDAT): Define.
28200 * doc/tm.texi: Regenerate.
28201 * doc/tm.texi.in (D language and ABI): Add @hook for
28202 TARGET_D_TEMPLATES_ALWAYS_COMDAT.
28204 2021-04-17 Iain Buclaw <ibuclaw@gdcproject.org>
28206 * config/darwin-d.c (darwin_d_handle_target_object_format): New
28208 (darwin_d_register_target_info): New function.
28209 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
28210 * config/dragonfly-d.c (dragonfly_d_handle_target_object_format): New
28212 (dragonfly_d_register_target_info): New function.
28213 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
28214 * config/freebsd-d.c (freebsd_d_handle_target_object_format): New
28216 (freebsd_d_register_target_info): New function.
28217 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
28218 * config/glibc-d.c (glibc_d_handle_target_object_format): New
28220 (glibc_d_register_target_info): New function.
28221 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
28222 * config/i386/i386-d.c (ix86_d_handle_target_object_format): New
28224 (ix86_d_register_target_info): Add ix86_d_handle_target_object_format
28225 as handler for objectFormat key.
28226 * config/i386/winnt-d.c (winnt_d_handle_target_object_format): New
28228 (winnt_d_register_target_info): New function.
28229 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
28230 * config/netbsd-d.c (netbsd_d_handle_target_object_format): New
28232 (netbsd_d_register_target_info): New function.
28233 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
28234 * config/openbsd-d.c (openbsd_d_handle_target_object_format): New
28236 (openbsd_d_register_target_info): New function.
28237 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
28238 * config/pa/pa-d.c (pa_d_handle_target_object_format): New function.
28239 (pa_d_register_target_info): Add pa_d_handle_target_object_format as
28240 handler for objectFormat key.
28241 * config/rs6000/rs6000-d.c (rs6000_d_handle_target_object_format): New
28243 (rs6000_d_register_target_info): Add
28244 rs6000_d_handle_target_object_format as handler for objectFormat key.
28245 * config/sol2-d.c (solaris_d_handle_target_object_format): New
28247 (solaris_d_register_target_info): New function.
28248 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
28250 2021-04-16 Jakub Jelinek <jakub@redhat.com>
28253 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Change
28254 abi_break argument from bool * to unsigned *, store there the pre-GCC 9
28256 (aarch64_layout_arg, aarch64_gimplify_va_arg_expr): Adjust callers.
28257 (aarch64_function_arg_regno_p): Likewise. Only emit -Wpsabi note if
28258 the old and new alignment after applying MIN/MAX to it is different.
28260 2021-04-16 Tamar Christina <tamar.christina@arm.com>
28263 * config/aarch64/aarch64-sve.md (@aarch64_sve_trn1_conv<mode>): New.
28264 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_trn): Use new
28266 * config/aarch64/iterators.md (UNSPEC_TRN1_CONV): New.
28268 2021-04-16 Bill Schmidt <wschmidt@linux.ibm.com>
28270 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Revise
28271 this section and its subsections.
28273 2021-04-16 Jakub Jelinek <jakub@redhat.com>
28276 * config/aarch64/aarch64.md (*neg_asr_si2_extr, *extrsi5_insn_di): New
28277 define_insn patterns.
28279 2021-04-16 Richard Sandiford <richard.sandiford@arm.com>
28281 PR rtl-optimization/98689
28282 * reg-notes.def (UNTYPED_CALL): New note.
28283 * combine.c (distribute_notes): Handle it.
28284 * emit-rtl.c (try_split): Likewise.
28285 * rtlanal.c (rtx_properties::try_to_add_insn): Likewise. Assume
28286 that calls with the note implicitly set all return value registers.
28287 * builtins.c (expand_builtin_apply): Add a REG_UNTYPED_CALL
28290 2021-04-16 Richard Sandiford <richard.sandiford@arm.com>
28292 PR rtl-optimization/99596
28293 * rtlanal.c (rtx_properties::try_to_add_insn): Don't add global
28294 register accesses for const calls. Assume that pure functions
28295 can only read from global registers. Ignore cases in which
28296 the stack pointer has been marked global.
28298 2021-04-16 Jakub Jelinek <jakub@redhat.com>
28301 * tree-vect-loop.c (vect_transform_loop): Don't remove just
28302 dead scalar .MASK_LOAD calls, but also dead .COND_* calls - replace
28303 them by their last argument.
28305 2021-04-15 Martin Liska <mliska@suse.cz>
28307 * doc/invoke.texi: Other params don't use it, remove it.
28309 2021-04-15 Richard Biener <rguenther@suse.de>
28311 * gimple-builder.h: Add deprecation note.
28313 2021-04-15 Richard Sandiford <richard.sandiford@arm.com>
28316 * attribs.h (restrict_type_identity_attributes_to): Declare.
28317 * attribs.c (restrict_type_identity_attributes_to): New function.
28319 2021-04-15 Richard Sandiford <richard.sandiford@arm.com>
28322 * attribs.h (affects_type_identity_attributes): Declare.
28323 * attribs.c (remove_attributes_matching): New function.
28324 (affects_type_identity_attributes): Likewise.
28326 2021-04-15 Jakub Jelinek <jakub@redhat.com>
28329 * config/aarch64/aarch64.md (*<LOGICAL:optab>_<SHIFT:optab><mode>3):
28330 Add combine splitters for *<LOGICAL:optab>_ashl<mode>3 with
28331 ZERO_EXTEND, SIGN_EXTEND or AND.
28333 2021-04-14 Richard Sandiford <richard.sandiford@arm.com>
28335 PR rtl-optimization/99929
28336 * rtl.h (same_vector_encodings_p): New function.
28337 * cse.c (exp_equiv_p): Check that CONST_VECTORs have the same encoding.
28338 * cselib.c (rtx_equal_for_cselib_1): Likewise.
28339 * jump.c (rtx_renumbered_equal_p): Likewise.
28340 * lra-constraints.c (operands_match_p): Likewise.
28341 * reload.c (operands_match_p): Likewise.
28342 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Likewise.
28344 2021-04-14 Richard Sandiford <richard.sandiford@arm.com>
28346 * print-rtl.c (rtx_writer::print_rtx_operand_codes_E_and_V): Print
28347 more information about variable-length CONST_VECTORs.
28349 2021-04-14 Vladimir N. Makarov <vmakarov@redhat.com>
28351 PR rtl-optimization/100066
28352 * lra-constraints.c (split_reg): Check paradoxical_subreg_p for
28353 ordered modes when choosing splitting mode for hard reg.
28355 2021-04-14 Richard Sandiford <richard.sandiford@arm.com>
28358 * config/aarch64/aarch64.c (aarch64_expand_sve_const_vector_sel):
28360 (aarch64_expand_sve_const_vector): Use it for nelts_per_pattern==2.
28362 2021-04-14 Andreas Krebbel <krebbel@linux.ibm.com>
28364 * config/s390/s390-builtins.def (O_M5, O_M12, ...): Add new macros
28365 for mask operand types.
28366 (s390_vec_permi_s64, s390_vec_permi_b64, s390_vec_permi_u64)
28367 (s390_vec_permi_dbl, s390_vpdi): Use the M5 type for the immediate
28369 (s390_vec_msum_u128, s390_vmslg): Use the M12 type for the
28371 * config/s390/s390.c (s390_const_operand_ok): Check the new
28372 operand types and generate a list of valid values.
28374 2021-04-14 Iain Buclaw <ibuclaw@gdcproject.org>
28376 * doc/tm.texi: Regenerate.
28377 * doc/tm.texi.in (D language and ABI): Add @hook for
28378 TARGET_D_REGISTER_OS_TARGET_INFO.
28380 2021-04-14 Iain Buclaw <ibuclaw@gdcproject.org>
28382 * config/aarch64/aarch64-d.c (aarch64_d_handle_target_float_abi): New
28384 (aarch64_d_register_target_info): New function.
28385 * config/aarch64/aarch64-protos.h (aarch64_d_register_target_info):
28387 * config/aarch64/aarch64.h (TARGET_D_REGISTER_CPU_TARGET_INFO):
28389 * config/arm/arm-d.c (arm_d_handle_target_float_abi): New function.
28390 (arm_d_register_target_info): New function.
28391 * config/arm/arm-protos.h (arm_d_register_target_info): Declare.
28392 * config/arm/arm.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
28393 * config/i386/i386-d.c (ix86_d_handle_target_float_abi): New function.
28394 (ix86_d_register_target_info): New function.
28395 * config/i386/i386-protos.h (ix86_d_register_target_info): Declare.
28396 * config/i386/i386.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
28397 * config/mips/mips-d.c (mips_d_handle_target_float_abi): New function.
28398 (mips_d_register_target_info): New function.
28399 * config/mips/mips-protos.h (mips_d_register_target_info): Declare.
28400 * config/mips/mips.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
28401 * config/pa/pa-d.c (pa_d_handle_target_float_abi): New function.
28402 (pa_d_register_target_info): New function.
28403 * config/pa/pa-protos.h (pa_d_register_target_info): Declare.
28404 * config/pa/pa.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
28405 * config/riscv/riscv-d.c (riscv_d_handle_target_float_abi): New
28407 (riscv_d_register_target_info): New function.
28408 * config/riscv/riscv-protos.h (riscv_d_register_target_info): Declare.
28409 * config/riscv/riscv.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
28410 * config/rs6000/rs6000-d.c (rs6000_d_handle_target_float_abi): New
28412 (rs6000_d_register_target_info): New function.
28413 * config/rs6000/rs6000-protos.h (rs6000_d_register_target_info):
28415 * config/rs6000/rs6000.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
28416 * config/s390/s390-d.c (s390_d_handle_target_float_abi): New function.
28417 (s390_d_register_target_info): New function.
28418 * config/s390/s390-protos.h (s390_d_register_target_info): Declare.
28419 * config/s390/s390.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
28420 * config/sparc/sparc-d.c (sparc_d_handle_target_float_abi): New
28422 (sparc_d_register_target_info): New function.
28423 * config/sparc/sparc-protos.h (sparc_d_register_target_info): Declare.
28424 * config/sparc/sparc.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
28425 * doc/tm.texi: Regenerate.
28426 * doc/tm.texi.in (D language and ABI): Add @hook for
28427 TARGET_D_REGISTER_CPU_TARGET_INFO.
28429 2021-04-14 Iain Buclaw <ibuclaw@gdcproject.org>
28431 * config/i386/i386-d.c (ix86_d_has_stdcall_convention): New function.
28432 * config/i386/i386-protos.h (ix86_d_has_stdcall_convention): Declare.
28433 * config/i386/i386.h (TARGET_D_HAS_STDCALL_CONVENTION): Define.
28434 * doc/tm.texi: Regenerate.
28435 * doc/tm.texi.in (D language and ABI): Add @hook for
28436 TARGET_D_HAS_STDCALL_CONVENTION.
28438 2021-04-14 Richard Biener <rguenther@suse.de>
28440 * tree-cfg.c (verify_gimple_assign_ternary): Verify that
28441 VEC_COND_EXPRs have a gimple_val condition.
28442 * tree-ssa-propagate.c (valid_gimple_rhs_p): VEC_COND_EXPR
28443 can no longer have a GENERIC condition.
28445 2021-04-14 Richard Earnshaw <rearnsha@arm.com>
28448 * config/arm/arm.c (arm_configure_build_target): Strip isa_all_fpbits
28449 from the isa_delta when -mfpu has been used.
28450 (arm_options_perform_arch_sanity_checks): It's the architecture that
28451 lacks an FPU not the processor.
28453 2021-04-13 Richard Biener <rguenther@suse.de>
28455 PR tree-optimization/100053
28456 * tree-ssa-sccvn.c (vn_nary_op_get_predicated_value): Do
28457 not use optimistic dominance queries for backedges to validate
28459 (dominated_by_p_w_unex): Add parameter to ignore executable
28460 state on backedges.
28461 (rpo_elim::eliminate_avail): Adjust.
28463 2021-04-13 Jakub Jelinek <jakub@redhat.com>
28466 * config/aarch64/aarch64.md (*aarch64_bfxil<mode>_extr,
28467 *aarch64_bfxilsi_extrdi): New define_insn patterns.
28469 2021-04-13 Jakub Jelinek <jakub@redhat.com>
28472 * simplify-rtx.c (simplify_immed_subreg): For MODE_COMPOSITE_P
28473 outermode, return NULL if the result doesn't encode back to the
28474 original byte sequence.
28475 (simplify_gen_subreg): Don't create SUBREGs from constants to
28476 MODE_COMPOSITE_P outermode.
28478 2021-04-12 Jakub Jelinek <jakub@redhat.com>
28480 PR rtl-optimization/99905
28481 * combine.c (expand_compound_operation): If pos + len > modewidth,
28482 perform the right shift by pos in inner_mode and then convert to mode,
28483 instead of trying to simplify a shift of rtx with inner_mode by pos
28484 as if it was a shift in mode.
28486 2021-04-12 Jakub Jelinek <jakub@redhat.com>
28489 * combine.c (simplify_and_const_int_1): Don't optimize varop
28490 away if it has side-effects.
28492 2021-04-12 Martin Liska <mliska@suse.cz>
28494 * doc/extend.texi: Escape @smallexample content.
28496 2021-04-12 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
28498 * config/s390/s390.md ("*movdi_31", "*movdi_64"): Add
28499 alternative in order to load a DFP zero.
28501 2021-04-12 Martin Liska <mliska@suse.cz>
28503 * doc/extend.texi: Be more precise in documentation
28504 of symver attribute.
28506 2021-04-12 Martin Liska <mliska@suse.cz>
28509 * gimplify.c (gimplify_expr): Right now, we unpoison all
28510 variables before a goto <dest>. We should not do it if we are
28513 2021-04-12 Cui,Lili <lili.cui@intel.com>
28515 * common/config/i386/cpuinfo.h (get_intel_cpu): Handle
28517 * common/config/i386/i386-common.c (processor_names): Add
28519 (processor_alias_table): Add rocketlake.
28520 * common/config/i386/i386-cpuinfo.h (processor_subtypes): Add
28521 INTEL_COREI7_ROCKETLAKE.
28522 * config.gcc: Add -march=rocketlake.
28523 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
28525 * config/i386/i386-options.c (m_ROCKETLAKE) : Define.
28526 (processor_cost_table): Add rocketlake cost.
28527 * config/i386/i386.h (ix86_size_cost) : Define
28529 (processor_type) : Add PROCESSOR_ROCKETLAKE.
28530 (PTA_ROCKETLAKE): Ditto.
28531 * doc/extend.texi: Add rocketlake.
28532 * doc/invoke.texi: Add rocketlake.
28534 2021-04-12 Cui,Lili <lili.cui@intel.com>
28536 * config/i386/i386.h (PTA_ALDERLAKE): Change alderlake ISA list.
28537 * config/i386/i386-options.c (m_CORE_AVX2): Add m_ALDERLAKE.
28538 * common/config/i386/cpuinfo.h (get_intel_cpu): Add AlderLake model.
28539 * doc/invoke.texi: Change alderlake ISA list.
28541 2021-04-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
28543 PR middle-end/98088
28544 * omp-expand.c (expand_oacc_collapse_init): Update condition in
28547 2021-04-10 H.J. Lu <hjl.tools@gmail.com>
28550 * config/i386/serializeintrin.h (_serialize): Defined as macro.
28552 2021-04-10 Jakub Jelinek <jakub@redhat.com>
28555 * expr.c (expand_expr_addr_expr_1): Test is_global_var rather than
28556 just TREE_STATIC on COMPOUND_LITERAL_EXPR_DECLs.
28558 2021-04-10 Jakub Jelinek <jakub@redhat.com>
28560 PR middle-end/99989
28561 * gimple-ssa-warn-alloca.c
28562 (alloca_type_and_limit::alloca_type_and_limit): Initialize limit to
28563 0 with integer precision unconditionally.
28565 2021-04-10 Jakub Jelinek <jakub@redhat.com>
28567 PR rtl-optimization/98601
28568 * rtlanal.c (rtx_addr_can_trap_p_1): Allow in assert unknown size
28569 not just for BLKmode, but also for VOIDmode. For STRICT_ALIGNMENT
28570 unaligned_mems handle VOIDmode like BLKmode.
28572 2021-04-10 Jan Hubicka <hubicka@ucw.cz>
28575 * tree.c (free_lang_data_in_decl): Do not release body of
28576 declare_variant_alt.
28578 2021-04-09 Richard Sandiford <richard.sandiford@arm.com>
28580 * config/aarch64/aarch64.c (aarch64_option_restore): If the
28581 architecture was specified explicitly and the tuning wasn't,
28582 tune for the architecture rather than the configured default CPU.
28584 2021-04-09 Richard Sandiford <richard.sandiford@arm.com>
28586 * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use X30
28587 as the temporary register.
28589 2021-04-09 Martin Liska <mliska@suse.cz>
28591 * doc/extend.texi: Move non-target attributes on the top level.
28593 2021-04-09 Martin Liska <mliska@suse.cz>
28595 * doc/invoke.texi: Document minimum and maximum value of the
28596 argument for both supported compression algorithms.
28598 2021-04-08 David Edelsohn <dje.gcc@gmail.com>
28600 * config/rs6000/rs6000.c (rs6000_xcoff_select_section): Select
28601 TLS BSS before TLS data.
28602 * config/rs6000/xcoff.h (ASM_OUTPUT_TLS_COMMON): Use .comm.
28604 2021-04-08 Richard Sandiford <richard.sandiford@arm.com>
28606 * doc/sourcebuild.texi (stdint_types_mbig_endian): Document.
28608 2021-04-08 Richard Sandiford <richard.sandiford@arm.com>
28610 * match.pd: Extend vec_cond folds to handle shifts.
28612 2021-04-08 Maciej W. Rozycki <macro@orcam.me.uk>
28614 * config/vax/vax.md: Fix comment for `*bit<mode>' pattern's
28617 2021-04-08 Alex Coplan <alex.coplan@arm.com>
28620 * config/arm/iterators.md (MVE_vecs): New.
28621 (V_elem): Also handle V2DF.
28622 * config/arm/mve.md (*mve_mov<mode>): Rename to ...
28623 (*mve_vdup<mode>): ... this. Remove second alternative since
28624 vec_duplicate of const_int is not canonical RTL, and we don't
28625 want to match symbol_refs.
28626 (*mve_vec_duplicate<mode>): Delete (pattern is redundant).
28628 2021-04-08 Xionghu Luo <luoxhu@linux.ibm.com>
28630 * fold-const.c (fold_single_bit_test): Fix typo.
28631 * print-rtl.c (print_rtx_insn_vec): Call print_rtl_single
28634 2021-04-07 Richard Sandiford <richard.sandiford@arm.com>
28636 PR tree-optimization/97513
28637 * tree-vect-slp.c (vect_add_slp_permutation): New function,
28639 (vectorizable_slp_permutation): ...here. Detect cases in which
28640 all VEC_PERM_EXPRs are guaranteed to have the same stepped
28641 permute vector and only generate one permute vector for that case.
28642 Extend that case to handle variable-length vectors.
28644 2021-04-07 Richard Sandiford <richard.sandiford@arm.com>
28646 PR tree-optimization/99873
28647 * tree-vect-slp.c (vect_slp_prefer_store_lanes_p): New function.
28648 (vect_build_slp_instance): Don't split store groups that could
28649 use IFN_STORE_LANES.
28651 2021-04-07 Jakub Jelinek <jakub@redhat.com>
28654 * varasm.c (output_constant_pool_contents): Don't strip name encoding
28655 from XSTR (desc->sym, 0) or from label before passing those to
28658 2021-04-07 Richard Biener <rguenther@suse.de>
28660 PR tree-optimization/99954
28661 * tree-loop-distribution.c: Include tree-affine.h.
28662 (generate_memcpy_builtin): Try using tree-affine to prove
28664 (loop_distribution::classify_builtin_ldst): Always classify
28667 2021-04-07 Richard Biener <rguenther@suse.de>
28669 PR tree-optimization/99947
28670 * tree-vect-loop.c (vectorizable_induction): Pre-allocate
28671 steps vector to avoid pushing elements from the reallocated
28674 2021-04-07 Richard Biener <rguenther@suse.de>
28676 * tree-ssa-sccvn.h (print_vn_reference_ops): Declare.
28677 * tree-ssa-pre.c (print_pre_expr): Factor out VN reference operand
28679 * tree-ssa-sccvn.c (print_vn_reference_ops): ... into this new
28681 (debug_vn_reference_ops): New.
28683 2021-04-07 Bin Cheng <bin.cheng@linux.alibaba.com>
28685 PR tree-optimization/98736
28686 * tree-loop-distribution.c
28687 * (loop_distribution::bb_top_order_init):
28688 Compute RPO with programing order preserved by calling function
28689 rev_post_order_and_mark_dfs_back_seme.
28691 2021-04-06 Vladimir N. Makarov <vmakarov@redhat.com>
28694 * lra-constraints.c (split_reg): Don't check paradoxical_subreg_p.
28695 * lra-lives.c (clear_sparseset_regnos, regnos_in_sparseset_p): New
28697 (process_bb_lives): Don't update biggest mode of hard reg for
28698 implicit in multi-register group. Use the new functions for
28699 updating dead_set and unused_set by register notes.
28701 2021-04-06 Xianmiao Qu <xianmiao_qu@c-sky.com>
28703 * config/csky/csky_pipeline_ck802.md : Use insn reservation name
28706 2021-04-06 H.J. Lu <hjl.tools@gmail.com>
28708 * config/i386/x86-tune-costs.h (skylake_memcpy): Updated.
28709 (skylake_memset): Likewise.
28710 (skylake_cost): Change CLEAR_RATIO to 17.
28711 * config/i386/x86-tune.def (X86_TUNE_PREFER_KNOWN_REP_MOVSB_STOSB):
28712 Replace m_CANNONLAKE, m_ICELAKE_CLIENT, m_ICELAKE_SERVER,
28713 m_TIGERLAKE and m_SAPPHIRERAPIDS with m_SKYLAKE and m_CORE_AVX512.
28715 2021-04-06 Richard Biener <rguenther@suse.de>
28717 PR tree-optimization/99880
28718 * tree-vect-loop.c (maybe_set_vectorized_backedge_value): Only
28719 set vectorized defs of relevant PHIs.
28721 2021-04-06 Richard Biener <rguenther@suse.de>
28723 PR tree-optimization/99924
28724 * tree-vect-slp.c (vect_bb_partition_graph_r): Do not mark
28725 nodes w/o scalar stmts as visited.
28727 2021-04-06 Alex Coplan <alex.coplan@arm.com>
28730 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Also use base
28731 PCS for [su]fix_optab.
28733 2021-04-03 Iain Sandoe <iain@sandoe.co.uk>
28735 * config/darwin.c (machopic_legitimize_pic_address): Check
28736 that the current pic register is one of the hard reg set
28737 before setting liveness.
28739 2021-04-03 Iain Sandoe <iain@sandoe.co.uk>
28741 * config/darwin.c (machopic_legitimize_pic_address): Fix
28742 whitespace, remove unused code.
28744 2021-04-03 Jakub Jelinek <jakub@redhat.com>
28746 PR tree-optimization/99882
28747 * gimple-ssa-store-merging.c (bswap_view_convert): Handle val with
28750 2021-04-03 Jakub Jelinek <jakub@redhat.com>
28752 PR rtl-optimization/99863
28753 * dse.c (replace_read): Drop regs_live argument. Instead of
28754 regs_live, use store_insn->fixed_regs_live if non-NULL,
28755 otherwise punt if insns sequence clobbers or sets any hard
28758 2021-04-03 Jakub Jelinek <jakub@redhat.com>
28761 * targhooks.h (default_print_patchable_function_entry_1): Declare.
28762 * targhooks.c (default_print_patchable_function_entry_1): New function,
28763 copied from default_print_patchable_function_entry with an added flags
28765 (default_print_patchable_function_entry): Rewritten into a small
28766 wrapper around default_print_patchable_function_entry_1.
28767 * config/rs6000/rs6000.c (TARGET_ASM_PRINT_PATCHABLE_FUNCTION_ENTRY):
28769 (rs6000_print_patchable_function_entry): New function.
28771 2021-04-02 Eric Botcazou <ebotcazou@adacore.com>
28773 * doc/invoke.texi (fdelete-dead-exceptions): Minor tweak.
28775 2021-04-01 Jason Merrill <jason@redhat.com>
28778 * common.opt: Document v15 and v16.
28780 2021-04-01 Richard Biener <rguenther@suse.de>
28782 PR tree-optimization/99863
28783 * gimplify.c (gimplify_init_constructor): Recompute vector
28786 2021-04-01 Jakub Jelinek <jakub@redhat.com>
28788 * doc/extend.texi (symver attribute): Fix up syntax errors
28791 2021-04-01 Jakub Jelinek <jakub@redhat.com>
28793 PR tree-optimization/96573
28794 * gimple-ssa-store-merging.c (init_symbolic_number): Handle
28795 also pointer types.
28797 2021-04-01 Richard Biener <rguenther@suse.de>
28799 PR tree-optimization/99856
28800 * tree-vect-patterns.c (vect_recog_over_widening_pattern): Promote
28801 precision to vector element precision.
28803 2021-04-01 Martin Jambor <mjambor@suse.cz>
28805 PR tree-optimization/97009
28806 * tree-sra.c (access_or_its_child_written): New function.
28807 (propagate_subaccesses_from_rhs): Use it instead of a simple grp_write
28810 2021-03-31 Jan Hubicka <hubicka@ucw.cz>
28813 * cif-code.def (USES_COMDAT_LOCAL): Make CIF_FINAL_NORMAL.
28815 2021-03-31 Pat Haugen <pthaugen@linux.ibm.com>
28818 * config/rs6000/altivec.md (xxspltiw_v4si, xxspltiw_v4sf_inst,
28819 xxspltidp_v2df_inst, xxsplti32dx_v4si_inst, xxsplti32dx_v4sf_inst,
28820 xxblend_<mode>, xxpermx_inst, xxeval): Mark prefixed.
28821 * config/rs6000/mma.md (mma_<vvi4i4i8>, mma_<avvi4i4i8>,
28822 mma_<vvi4i4i2>, mma_<avvi4i4i2>, mma_<vvi4i4>, mma_<avvi4i4>,
28823 mma_<pvi4i2>, mma_<apvi4i2>, mma_<vvi4i4i4>, mma_<avvi4i4i4>):
28825 * config/rs6000/rs6000.c (rs6000_final_prescan_insn): Adjust test.
28826 * config/rs6000/rs6000.md (define_attr "maybe_prefixed"): New.
28827 (define_attr "prefixed"): Update initializer.
28829 2021-03-31 Jakub Jelinek <jakub@redhat.com>
28832 * dwarf2out.c (debug_ranges_dwo_section): New variable.
28833 (DW_RANGES_IDX_SKELETON): Define.
28834 (struct dw_ranges): Add begin_entry and end_entry members.
28835 (DEBUG_DWO_RNGLISTS_SECTION): Define.
28836 (add_ranges_num): Adjust r initializer for addition of *_entry
28838 (add_ranges_by_labels): For -gsplit-dwarf and force_direct,
28839 set idx to DW_RANGES_IDX_SKELETON.
28840 (use_distinct_base_address_for_range): New function.
28841 (index_rnglists): Don't set r->idx if it is equal to
28842 DW_RANGES_IDX_SKELETON. Initialize r->begin_entry and
28843 r->end_entry for -gsplit-dwarf if those will be needed by
28845 (output_rnglists): Add DWO argument. If true, switch to
28846 debug_ranges_dwo_section rather than debug_ranges_section.
28847 Adjust l1/l2 label indexes. Only output the offset table when
28848 dwo is true and don't include in there the skeleton range
28849 entry if present. For -gsplit-dwarf, skip ranges that belong
28850 to the other rnglists section. Change return type from void
28851 to bool and return true if there are any range entries for
28852 the other section. For dwarf_split_debug_info use
28853 DW_RLE_startx_endx, DW_RLE_startx_length and DW_RLE_base_addressx
28854 entries instead of DW_RLE_start_end, DW_RLE_start_length and
28855 DW_RLE_base_address. Use use_distinct_base_address_for_range.
28856 (init_sections_and_labels): Initialize debug_ranges_dwo_section
28857 if -gsplit-dwarf and DWARF >= 5. Adjust ranges_section_label
28858 and range_base_label indexes.
28859 (dwarf2out_finish): Call index_rnglists earlier before finalizing
28860 .debug_addr. Never emit DW_AT_rnglists_base attribute. For
28861 -gsplit-dwarf and DWARF >= 5 call output_rnglists up to twice
28862 with different dwo arguments.
28863 (dwarf2out_c_finalize): Clear debug_ranges_dwo_section.
28865 2021-03-31 Richard Sandiford <richard.sandiford@arm.com>
28867 PR tree-optimization/98268
28868 * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Call
28869 recompute_tree_invariant_for_addr_expr after successfully
28870 folding a TARGET_MEM_REF that occurs inside an ADDR_EXPR.
28872 2021-03-31 Richard Sandiford <richard.sandiford@arm.com>
28874 PR tree-optimization/99726
28875 * tree-data-ref.c (create_intersect_range_checks_index): Bail
28876 out if there is more than one access function SCEV for the loop
28879 2021-03-31 Richard Sandiford <richard.sandiford@arm.com>
28881 PR rtl-optimization/97141
28882 PR rtl-optimization/98726
28883 * emit-rtl.c (valid_for_const_vector_p): Return true for
28885 * rtx-vector-builder.h (rtx_vector_builder::step): Return a
28886 poly_wide_int instead of a wide_int.
28887 (rtx_vector_builder::apply_set): Take a poly_wide_int instead
28889 * rtx-vector-builder.c (rtx_vector_builder::apply_set): Likewise.
28890 * config/aarch64/aarch64.c (aarch64_legitimate_constant_p): Return
28891 false for CONST_VECTORs that cannot be forced to memory.
28892 * config/aarch64/aarch64-simd.md (mov<mode>): If a CONST_VECTOR
28893 is too complex to force to memory, build it up from individual
28896 2021-03-31 Jan Hubicka <jh@suse.cz>
28899 * cgraph.c (cgraph_node::release_body): Fix overactive check.
28901 2021-03-31 Christophe Lyon <christophe.lyon@linaro.org>
28904 * config/arm/vec-common.md (mul<mode>3): Disable on iwMMXT, expect
28907 2021-03-31 H.J. Lu <hjl.tools@gmail.com>
28909 * config/i386/i386-expand.c (expand_set_or_cpymem_via_rep):
28910 For TARGET_PREFER_KNOWN_REP_MOVSB_STOSB, don't convert QImode
28912 (decide_alg): For TARGET_PREFER_KNOWN_REP_MOVSB_STOSB, use
28913 "rep movsb/stosb" only for known sizes.
28914 * config/i386/i386-options.c (processor_cost_table): Use Ice
28915 Lake cost for Cannon Lake, Ice Lake, Tiger Lake, Sapphire
28916 Rapids and Alder Lake.
28917 * config/i386/i386.h (TARGET_PREFER_KNOWN_REP_MOVSB_STOSB): New.
28918 * config/i386/x86-tune-costs.h (icelake_memcpy): New.
28919 (icelake_memset): Likewise.
28920 (icelake_cost): Likewise.
28921 * config/i386/x86-tune.def (X86_TUNE_PREFER_KNOWN_REP_MOVSB_STOSB):
28924 2021-03-31 Richard Sandiford <richard.sandiford@arm.com>
28927 * config/aarch64/aarch64.c
28928 (aarch64_vectorize_preferred_vector_alignment): Query the size
28929 of the provided SVE vector; do not assume that all SVE vectors
28930 have the same size.
28932 2021-03-31 Jan Hubicka <jh@suse.cz>
28935 * cgraph.c (cgraph_node::release_body): Remove all callers and
28937 * cgraphclones.c (cgraph_node::materialize_clone): Do not do it here.
28938 * cgraphunit.c (cgraph_node::expand): And here.
28940 2021-03-31 Martin Liska <mliska@suse.cz>
28942 * ipa-modref.c (analyze_ssa_name_flags): Fix coding style
28943 and one negated condition.
28945 2021-03-31 Jakub Jelinek <jakub@redhat.com>
28946 Richard Sandiford <richard.sandiford@arm.com>
28949 * config/aarch64/aarch64.md (*add<mode>3_poly_1): Swap Uai and Uav
28950 constraints on operands[2] and similarly 0 and rk constraints
28951 on operands[1] corresponding to that.
28953 2021-03-31 Jakub Jelinek <jakub@redhat.com>
28956 * configure.ac (HAVE_LD_BROKEN_PE_DWARF5): New AC_DEFINE if PECOFF
28957 linker doesn't support DWARF sections new in DWARF5.
28958 * config/i386/i386-options.c (ix86_option_override_internal): Default
28959 to dwarf_version 4 if HAVE_LD_BROKEN_PE_DWARF5 for TARGET_PECOFF
28961 * config.in: Regenerated.
28962 * configure: Regenerated.
28964 2021-03-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28967 * config/aarch64/aarch64.c (aarch64_analyze_loop_vinfo): Check for
28968 available issue_info before using it.
28970 2021-03-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28973 * config/aarch64/aarch64.md (sub<mode>3_compare1_imm): Do not allow zero
28976 2021-03-30 Xionghu Luo <luoxhu@linux.ibm.com>
28979 * config/rs6000/altivec.md (altivec_lvsl_reg): Change to ...
28980 (altivec_lvsl_reg_<mode>): ... this.
28981 (altivec_lvsr_reg): Change to ...
28982 (altivec_lvsr_reg_<mode>): ... this.
28983 * config/rs6000/predicates.md (vec_set_index_operand): New.
28984 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
28985 Enable 32bit variable vec_insert for all TARGET_VSX.
28986 * config/rs6000/rs6000.c (rs6000_expand_vector_set_var_p9):
28987 Enable 32bit variable vec_insert for p9 and above.
28988 (rs6000_expand_vector_set_var_p8): Rename to ...
28989 (rs6000_expand_vector_set_var_p7): ... this.
28990 (rs6000_expand_vector_set): Use TARGET_VSX and adjust assert
28992 * config/rs6000/vector.md (vec_set<mode>): Use vec_set_index_operand.
28993 * config/rs6000/vsx.md (xl_len_r): Use gen_altivec_lvsl_reg_di and
28994 gen_altivec_lvsr_reg_di.
28996 2021-03-30 H.J. Lu <hjl.tools@gmail.com>
28999 * config/i386/ia32intrin.h (__rdtsc): Defined as macro.
29000 (__rdtscp): Likewise.
29002 2021-03-30 Tamar Christina <tamar.christina@arm.com>
29004 PR tree-optimization/99825
29005 * tree-vect-slp-patterns.c (vect_check_evenodd_blend):
29006 Reject non-mult 2 lanes.
29008 2021-03-30 Richard Earnshaw <rearnsha@arm.com>
29011 * config/arm/arm.c (arm_file_start): Fix emission of
29012 Tag_ABI_VFP_args attribute.
29014 2021-03-30 Richard Biener <rguenther@suse.de>
29016 PR tree-optimization/99824
29017 * stor-layout.c (set_min_and_max_values_for_integral_type):
29018 Assert the precision is within the bounds of
29019 WIDE_INT_MAX_PRECISION.
29020 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use
29021 the outermost component ref only to lower the access size
29022 and initialize that from the access type.
29024 2021-03-30 Richard Sandiford <richard.sandiford@arm.com>
29027 * config/aarch64/aarch64.md (mov<mode>): Pass multi-instruction
29028 CONST_INTs to aarch64_expand_mov_immediate when called after RA.
29030 2021-03-30 Mihailo Stojanovic <mihailo.stojanovic@typhoon-hil.com>
29032 * config/aarch64/aarch64.md
29033 (<optab>_trunc<fcvt_target><GPI:mode>2): Set the "arch"
29034 attribute to disambiguate between SIMD and FP variants of the
29037 2021-03-29 Jan Hubicka <hubicka@ucw.cz>
29039 * ipa-modref.c (merge_call_lhs_flags): Correct handling of deref.
29040 (analyze_ssa_name_flags): Fix typo in comment.
29042 2021-03-29 Alex Coplan <alex.coplan@arm.com>
29045 * config/aarch64/aarch64-sve-builtins.cc
29046 (function_builder::add_function): Add placeholder_p argument, use
29047 placeholder decls if this is set.
29048 (function_builder::add_unique_function): Instead of conditionally adding
29049 direct overloads, unconditionally add either a direct overload or a
29051 (function_builder::add_overloaded_function): Set placeholder_p if we're
29052 using C++ overloads. Use the obstack for string storage instead
29053 of relying on the tree nodes.
29054 (function_builder::add_overloaded_functions): Don't return early for
29055 m_direct_overloads: we need to add placeholders.
29056 * config/aarch64/aarch64-sve-builtins.h
29057 (function_builder::add_function): Add placeholder_p argument.
29059 2021-03-29 Richard Biener <rguenther@suse.de>
29061 PR tree-optimization/99807
29062 * tree-vect-slp.c (vect_slp_analyze_node_operations_1): Move
29063 assert below VEC_PERM handling.
29065 2021-03-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29068 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): Use
29069 aarch64_simd_or_scalar_imm_zero to match zeroes. Remove pattern
29070 matching const_int 0.
29071 (move_lo_quad_internal_be_<mode>): Likewise.
29072 (move_lo_quad_<mode>): Update for the above.
29073 * config/aarch64/iterators.md (VQ_2E): Delete.
29075 2021-03-29 Jakub Jelinek <jakub@redhat.com>
29077 PR tree-optimization/99777
29078 * fold-const.c (extract_muldiv_1): For conversions, punt on casts from
29079 types other than scalar integral types.
29081 2021-03-28 David Edelsohn <dje.gcc@gmail.com>
29083 * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Do not add
29084 XCOFF TLS reloc decorations.
29086 2021-03-28 Gerald Pfeifer <gerald@pfeifer.com>
29088 * doc/analyzer.texi (Analyzer Internals): Update link to
29089 "A Memory Model for Static Analysis of C Programs".
29091 2021-03-26 David Edelsohn <dje.gcc@gmail.com>
29093 * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Call function.
29094 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align):
29096 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align): New.
29097 (rs6000_special_round_type_align): Recursively check innermost first
29100 2021-03-26 Jakub Jelinek <jakub@redhat.com>
29103 * dwarf2out.h (struct dw_fde_node): Add rule18 member.
29104 * dwarf2cfi.c (dwarf2out_frame_debug_expr): When handling (set hfp sp)
29105 assignment with drap_reg active, queue reg save for hfp with offset 0
29106 and flush queued reg saves. When handling a push with rule18,
29107 defer queueing reg save for hfp and just assert the offset is 0.
29108 (scan_trace): Assert that fde->rule18 is false.
29110 2021-03-26 Vladimir Makarov <vmakarov@redhat.com>
29113 * ira-costs.c (record_reg_classes): Put case with
29114 CT_RELAXED_MEMORY adjacent to one with CT_MEMORY.
29115 * ira.c (ira_setup_alts): Ditto.
29116 * lra-constraints.c (process_alt_operands): Ditto.
29117 * recog.c (asm_operand_ok): Ditto.
29118 * reload.c (find_reloads): Ditto.
29120 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
29122 * config/aarch64/aarch64-protos.h
29123 (cpu_addrcost_table::post_modify_ld3_st3): New member variable.
29124 (cpu_addrcost_table::post_modify_ld4_st4): Likewise.
29125 * config/aarch64/aarch64.c (generic_addrcost_table): Update
29126 accordingly, using the same costs as for post_modify.
29127 (exynosm1_addrcost_table, xgene1_addrcost_table): Likewise.
29128 (thunderx2t99_addrcost_table, thunderx3t110_addrcost_table):
29129 (tsv110_addrcost_table, qdf24xx_addrcost_table): Likewise.
29130 (a64fx_addrcost_table): Likewise.
29131 (neoversev1_addrcost_table): New.
29132 (neoversev1_tunings): Use neoversev1_addrcost_table.
29133 (aarch64_address_cost): Use the new post_modify costs for CImode
29136 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
29138 * config/aarch64/aarch64.opt
29139 (-param=aarch64-loop-vect-issue-rate-niters=): New parameter.
29140 * doc/invoke.texi: Document it.
29141 * config/aarch64/aarch64-protos.h (aarch64_base_vec_issue_info)
29142 (aarch64_scalar_vec_issue_info, aarch64_simd_vec_issue_info)
29143 (aarch64_advsimd_vec_issue_info, aarch64_sve_vec_issue_info)
29144 (aarch64_vec_issue_info): New structures.
29145 (cpu_vector_cost): Write comments above the variables rather
29147 (cpu_vector_cost::issue_info): New member variable.
29148 * config/aarch64/aarch64.c: Include gimple-pretty-print.h
29149 and tree-ssa-loop-niter.h.
29150 (generic_vector_cost, a64fx_vector_cost, qdf24xx_vector_cost)
29151 (thunderx_vector_cost, tsv110_vector_cost, cortexa57_vector_cost)
29152 (exynosm1_vector_cost, xgene1_vector_cost, thunderx2t99_vector_cost)
29153 (thunderx3t110_vector_cost): Initialize issue_info to null.
29154 (neoversev1_scalar_issue_info, neoversev1_advsimd_issue_info)
29155 (neoversev1_sve_issue_info, neoversev1_vec_issue_info): New structures.
29156 (neoversev1_vector_cost): Use them.
29157 (aarch64_vec_op_count, aarch64_sve_op_count): New structures.
29158 (aarch64_vector_costs::saw_sve_only_op): New member variable.
29159 (aarch64_vector_costs::num_vector_iterations): Likewise.
29160 (aarch64_vector_costs::scalar_ops): Likewise.
29161 (aarch64_vector_costs::advsimd_ops): Likewise.
29162 (aarch64_vector_costs::sve_ops): Likewise.
29163 (aarch64_vector_costs::seen_loads): Likewise.
29164 (aarch64_simd_vec_costs_for_flags): New function.
29165 (aarch64_analyze_loop_vinfo): Initialize num_vector_iterations.
29166 Count the number of predicate operations required by SVE WHILE
29168 (aarch64_comparison_type, aarch64_multiply_add_p): New functions.
29169 (aarch64_sve_only_stmt_p, aarch64_in_loop_reduction_latency): Likewise.
29170 (aarch64_count_ops): Likewise.
29171 (aarch64_add_stmt_cost): Record whether see an SVE operation
29172 that cannot currently be implementing using Advanced SIMD.
29173 Record issue information about the scalar, Advanced SIMD
29174 and (where relevant) SVE versions of a loop.
29175 (aarch64_vec_op_count::dump): New function.
29176 (aarch64_sve_op_count::dump): Likewise.
29177 (aarch64_estimate_min_cycles_per_iter): Likewise.
29178 (aarch64_adjust_body_cost): If issue information is available,
29179 try to compare the issue rates of the various loop implementations
29180 and increase or decrease the vector body cost accordingly.
29182 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
29184 * config/aarch64/aarch64.c (aarch64_detect_vector_stmt_subtype):
29185 Assume a zero cost for induction phis.
29187 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
29189 * config/aarch64/aarch64.c (aarch64_embedded_comparison_type): New
29191 (aarch64_adjust_stmt_cost): Add the costs of embedded scalar and
29192 vector comparisons.
29194 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
29196 * config/aarch64/aarch64.c (aarch64_detect_scalar_stmt_subtype):
29198 (aarch64_add_stmt_cost): Call it.
29200 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
29202 * config/aarch64/aarch64-tuning-flags.def (matched_vector_throughput):
29203 New tuning parameter.
29204 * config/aarch64/aarch64.c (neoversev1_tunings): Use it.
29205 (aarch64_estimated_sve_vq): New function.
29206 (aarch64_vector_costs::analyzed_vinfo): New member variable.
29207 (aarch64_vector_costs::is_loop): Likewise.
29208 (aarch64_vector_costs::unrolled_advsimd_niters): Likewise.
29209 (aarch64_vector_costs::unrolled_advsimd_stmts): Likewise.
29210 (aarch64_record_potential_advsimd_unrolling): New function.
29211 (aarch64_analyze_loop_vinfo, aarch64_analyze_bb_vinfo): Likewise.
29212 (aarch64_add_stmt_cost): Call aarch64_analyze_loop_vinfo or
29213 aarch64_analyze_bb_vinfo on the first use of a costs structure.
29214 Detect whether we're vectorizing a loop for SVE that might be
29215 completely unrolled if it used Advanced SIMD instead.
29216 (aarch64_adjust_body_cost_for_latency): New function.
29217 (aarch64_finish_cost): Call it.
29219 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
29221 * config/aarch64/aarch64.c (aarch64_vector_costs): New structure.
29222 (aarch64_init_cost): New function.
29223 (aarch64_add_stmt_cost): Use aarch64_vector_costs instead of
29224 the default unsigned[3].
29225 (aarch64_finish_cost, aarch64_destroy_cost_data): New functions.
29226 (TARGET_VECTORIZE_INIT_COST): Override.
29227 (TARGET_VECTORIZE_FINISH_COST): Likewise.
29228 (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
29230 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
29232 * config/aarch64/aarch64.c (neoversev1_advsimd_vector_cost)
29233 (neoversev1_sve_vector_cost): New cost structures.
29234 (neoversev1_vector_cost): Likewise.
29235 (neoversev1_tunings): Use them. Enable use_new_vector_costs.
29237 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
29239 * config/aarch64/aarch64-protos.h
29240 (sve_vec_cost::scatter_store_elt_cost): New member variable.
29241 * config/aarch64/aarch64.c (generic_sve_vector_cost): Update
29242 accordingly, taking the cost from the cost of a scalar_store.
29243 (a64fx_sve_vector_cost): Likewise.
29244 (aarch64_detect_vector_stmt_subtype): Detect scatter stores.
29246 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
29248 * config/aarch64/aarch64-protos.h
29249 (simd_vec_cost::store_elt_extra_cost): New member variable.
29250 * config/aarch64/aarch64.c (generic_advsimd_vector_cost): Update
29251 accordingly, using the vec_to_scalar cost for the new field.
29252 (generic_sve_vector_cost, a64fx_advsimd_vector_cost): Likewise.
29253 (a64fx_sve_vector_cost, qdf24xx_advsimd_vector_cost): Likewise.
29254 (thunderx_advsimd_vector_cost, tsv110_advsimd_vector_cost): Likewise.
29255 (cortexa57_advsimd_vector_cost, exynosm1_advsimd_vector_cost)
29256 (xgene1_advsimd_vector_cost, thunderx2t99_advsimd_vector_cost)
29257 (thunderx3t110_advsimd_vector_cost): Likewise.
29258 (aarch64_detect_vector_stmt_subtype): Detect single-element stores.
29260 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
29262 * config/aarch64/aarch64-protos.h (simd_vec_cost::ld2_st2_permute_cost)
29263 (simd_vec_cost::ld3_st3_permute_cost): New member variables.
29264 (simd_vec_cost::ld4_st4_permute_cost): Likewise.
29265 * config/aarch64/aarch64.c (generic_advsimd_vector_cost): Update
29266 accordingly, using zero for the new costs.
29267 (generic_sve_vector_cost, a64fx_advsimd_vector_cost): Likewise.
29268 (a64fx_sve_vector_cost, qdf24xx_advsimd_vector_cost): Likewise.
29269 (thunderx_advsimd_vector_cost, tsv110_advsimd_vector_cost): Likewise.
29270 (cortexa57_advsimd_vector_cost, exynosm1_advsimd_vector_cost)
29271 (xgene1_advsimd_vector_cost, thunderx2t99_advsimd_vector_cost)
29272 (thunderx3t110_advsimd_vector_cost): Likewise.
29273 (aarch64_ld234_st234_vectors): New function.
29274 (aarch64_adjust_stmt_cost): Likewise.
29275 (aarch64_add_stmt_cost): Call aarch64_adjust_stmt_cost if using
29276 the new vector costs.
29278 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
29280 * config/aarch64/aarch64-protos.h (sve_vec_cost): Turn into a
29281 derived class of simd_vec_cost. Add information about CLAST[AB]
29282 and FADDA instructions.
29283 * config/aarch64/aarch64.c (generic_sve_vector_cost): Update
29284 accordingly, using the vec_to_scalar costs for the new fields.
29285 (a64fx_sve_vector_cost): Likewise.
29286 (aarch64_reduc_type): New function.
29287 (aarch64_sve_in_loop_reduction_latency): Likewise.
29288 (aarch64_detect_vector_stmt_subtype): Take a vinfo parameter.
29289 Use aarch64_sve_in_loop_reduction_latency to handle SVE reductions
29290 that occur in the loop body.
29291 (aarch64_add_stmt_cost): Update call accordingly.
29293 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
29295 * config/aarch64/aarch64-tuning-flags.def (use_new_vector_costs):
29297 * config/aarch64/aarch64-protos.h (simd_vec_cost): Put comments
29298 above the fields rather than to the right.
29299 (simd_vec_cost::reduc_i8_cost): New member variable.
29300 (simd_vec_cost::reduc_i16_cost): Likewise.
29301 (simd_vec_cost::reduc_i32_cost): Likewise.
29302 (simd_vec_cost::reduc_i64_cost): Likewise.
29303 (simd_vec_cost::reduc_f16_cost): Likewise.
29304 (simd_vec_cost::reduc_f32_cost): Likewise.
29305 (simd_vec_cost::reduc_f64_cost): Likewise.
29306 * config/aarch64/aarch64.c (generic_advsimd_vector_cost): Update
29307 accordingly, using the vec_to_scalar_cost for the new fields.
29308 (generic_sve_vector_cost, a64fx_advsimd_vector_cost): Likewise.
29309 (a64fx_sve_vector_cost, qdf24xx_advsimd_vector_cost): Likewise.
29310 (thunderx_advsimd_vector_cost, tsv110_advsimd_vector_cost): Likewise.
29311 (cortexa57_advsimd_vector_cost, exynosm1_advsimd_vector_cost)
29312 (xgene1_advsimd_vector_cost, thunderx2t99_advsimd_vector_cost)
29313 (thunderx3t110_advsimd_vector_cost): Likewise.
29314 (aarch64_use_new_vector_costs_p): New function.
29315 (aarch64_simd_vec_costs): New function, split out from...
29316 (aarch64_builtin_vectorization_cost): ...here.
29317 (aarch64_is_reduction): New function.
29318 (aarch64_detect_vector_stmt_subtype): Likewise.
29319 (aarch64_add_stmt_cost): Call aarch64_detect_vector_stmt_subtype if
29320 using the new vector costs.
29322 2021-03-26 Iain Buclaw <ibuclaw@gdcproject.org>
29325 * tree-emutls.c (get_emutls_init_templ_addr): Mark initializer of weak
29326 TLS declarations as public.
29328 2021-03-26 Iain Buclaw <ibuclaw@gdcproject.org>
29330 * config/aarch64/aarch64-d.c (IN_TARGET_CODE): Define.
29331 * config/arm/arm-d.c (IN_TARGET_CODE): Likewise.
29332 * config/i386/i386-d.c (IN_TARGET_CODE): Likewise.
29333 * config/mips/mips-d.c (IN_TARGET_CODE): Likewise.
29334 * config/pa/pa-d.c (IN_TARGET_CODE): Likewise.
29335 * config/riscv/riscv-d.c (IN_TARGET_CODE): Likewise.
29336 * config/rs6000/rs6000-d.c (IN_TARGET_CODE): Likewise.
29337 * config/s390/s390-d.c (IN_TARGET_CODE): Likewise.
29338 * config/sparc/sparc-d.c (IN_TARGET_CODE): Likewise.
29340 2021-03-26 Iain Buclaw <ibuclaw@gdcproject.org>
29343 * config.gcc (*-*-cygwin*): Add winnt-d.o
29344 (*-*-mingw*): Likewise.
29345 * config/i386/cygwin.h (EXTRA_TARGET_D_OS_VERSIONS): New macro.
29346 * config/i386/mingw32.h (EXTRA_TARGET_D_OS_VERSIONS): Likewise.
29347 * config/i386/t-cygming: Add winnt-d.o.
29348 * config/i386/winnt-d.c: New file.
29350 2021-03-26 Iain Buclaw <ibuclaw@gdcproject.org>
29352 * config/freebsd-d.c: Include memmodel.h.
29354 2021-03-26 Iain Buclaw <ibuclaw@gdcproject.org>
29357 * config.gcc (*-*-openbsd*): Add openbsd-d.o.
29358 * config/t-openbsd: Add openbsd-d.o.
29359 * config/openbsd-d.c: New file.
29361 2021-03-25 Stam Markianos-Wright <stam.markianos-wright@arm.com>
29363 PR tree-optimization/96974
29364 * tree-vect-stmts.c (vect_get_vector_types_for_stmt): Replace assert
29365 with graceful exit.
29367 2021-03-25 H.J. Lu <hjl.tools@gmail.com>
29370 2021-03-25 H.J. Lu <hjl.tools@gmail.com>
29374 * config/i386/i386.c (ix86_can_inline_p): Don't check ISA for
29375 always_inline in system headers.
29377 2021-03-25 Kewen Lin <linkw@linux.ibm.com>
29379 * tree-vect-loop.c (vect_model_reduction_cost): Init inside_cost.
29381 2021-03-25 Jakub Jelinek <jakub@redhat.com>
29384 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF_SAME_FIELD.
29385 * fold-const.c (operand_compare::operand_equal_p): Don't compare
29386 field offsets if OEP_ADDRESS_OF_SAME_FIELD.
29388 2021-03-25 H.J. Lu <hjl.tools@gmail.com>
29392 * config/i386/i386.c (ix86_can_inline_p): Don't check ISA for
29393 always_inline in system headers.
29395 2021-03-25 Richard Biener <rguenther@suse.de>
29397 PR tree-optimization/99746
29398 * tree-vect-slp-patterns.c (complex_pattern::build): Do not mark
29399 the scalar stmt as patterned. Instead set up required things
29402 2021-03-25 Xionghu Luo <luoxhu@linux.ibm.com>
29404 * config/rs6000/rs6000.c (power8_costs): Change l2 cache
29407 2021-03-24 Martin Liska <mliska@suse.cz>
29410 * common/config/i386/i386-common.c (ARRAY_SIZE): Fix off-by-one
29412 * config/i386/i386-options.c (ix86_option_override_internal):
29413 Add run-time assert.
29415 2021-03-24 Martin Jambor <mjambor@suse.cz>
29418 * ipa-cp.c (initialize_node_lattices): Mark as bottom all
29419 parameters with unknown type.
29420 (ipacp_value_safe_for_type): New function.
29421 (propagate_vals_across_arith_jfunc): Verify that the constant type
29422 can be used for a type of the formal parameter.
29423 (propagate_vals_across_ancestor): Likewise.
29424 (propagate_scalar_across_jump_function): Likewise. Pass the type
29425 also to propagate_vals_across_ancestor.
29427 2021-03-24 Christophe Lyon <christophe.lyon@linaro.org>
29430 * config/arm/mve.md (movmisalign<mode>_mve_store): Use Ux
29432 (movmisalign<mode>_mve_load): Likewise.
29434 2021-03-24 Jakub Jelinek <jakub@redhat.com>
29437 * config/arm/vec-common.md (one_cmpl<mode>2, neg<mode>2,
29438 movmisalign<mode>): Disable expanders for TARGET_REALLY_IWMMXT.
29440 2021-03-24 Alexandre Oliva <oliva@adacore.com>
29442 * doc/sourcebuild.texi (sysconf): New effective target.
29444 2021-03-24 Alexandre Oliva <oliva@adacore.com>
29446 * config/i386/predicates.md (reg_or_const_vec_operand): New.
29447 * config/i386/sse.md (ssse3_pshufbv8qi3): Add an expander for
29448 the now *-prefixed insn_and_split, turn the splitter const vec
29449 into an input for the insn, making it an ignored immediate for
29450 non-split cases, and loaded into the scratch register
29453 2021-03-23 Vladimir N. Makarov <vmakarov@redhat.com>
29456 * config/aarch64/constraints.md (Utq, UOb, UOh, UOw, UOd, UOty):
29457 Use define_relaxed_memory_constraint for them.
29459 2021-03-23 Iain Sandoe <iain@sandoe.co.uk>
29462 * config/host-darwin.c (darwin_gt_pch_use_address): Add a
29463 colon to the diagnostic message.
29465 2021-03-23 Ilya Leoshkevich <iii@linux.ibm.com>
29467 * fwprop.c (fwprop_propagation::fwprop_propagation): Look at
29469 (try_fwprop_subst_note): Use set_info instead of insn_info.
29470 (try_fwprop_subst_pattern): Likewise.
29471 (try_fwprop_subst_notes): Likewise.
29472 (try_fwprop_subst): Likewise.
29473 (forward_propagate_subreg): Likewise.
29474 (forward_propagate_and_simplify): Likewise.
29475 (forward_propagate_into): Likewise.
29476 * rtl-ssa/accesses.h (set_info::single_nondebug_use) New
29478 (set_info::single_nondebug_insn_use): Likewise.
29479 (set_info::single_phi_use): Likewise.
29480 * rtl-ssa/member-fns.inl (set_info::single_nondebug_use) New
29482 (set_info::single_nondebug_insn_use): Likewise.
29483 (set_info::single_phi_use): Likewise.
29485 2021-03-23 Christophe Lyon <christophe.lyon@linaro.org>
29487 * doc/sourcebuild.texi (arm_dsp_ok, arm_dsp): Document.
29489 2021-03-23 Jakub Jelinek <jakub@redhat.com>
29492 * config/aarch64/aarch64.c (aarch64_add_offset): Tell
29493 expand_mult to perform an unsigned rather than a signed
29496 2021-03-23 H.J. Lu <hjl.tools@gmail.com>
29499 * config/i386/cpuid.h (__cpuid): Add __volatile__.
29500 (__cpuid_count): Likewise.
29502 2021-03-23 Richard Biener <rguenther@suse.de>
29504 PR tree-optimization/99721
29505 * tree-vect-slp.c (vect_slp_analyze_node_operations):
29506 Make sure we can schedule the node.
29508 2021-03-23 Marcus Comstedt <marcus@mc.pp.se>
29510 * config/riscv/riscv.c (riscv_subword): Take endianness into
29511 account when calculating the byte offset.
29513 2021-03-23 Marcus Comstedt <marcus@mc.pp.se>
29515 * config/riscv/predicates.md (subreg_lowpart_operator): New predicate
29516 * config/riscv/riscv.md (*addsi3_extended2, *subsi3_extended2)
29517 (*negsi2_extended2, *mulsi3_extended2, *<optab>si3_mask)
29518 (*<optab>si3_mask_1, *<optab>di3_mask, *<optab>di3_mask_1)
29519 (*<optab>si3_extend_mask, *<optab>si3_extend_mask_1): Use
29520 new predicate "subreg_lowpart_operator"
29522 2021-03-23 Marcus Comstedt <marcus@mc.pp.se>
29524 * config/riscv/riscv.c (riscv_swap_instruction): New function
29525 to byteswap an SImode rtx containing an instruction.
29526 (riscv_trampoline_init): Byteswap the generated instructions
29529 2021-03-23 Marcus Comstedt <marcus@mc.pp.se>
29531 * common/config/riscv/riscv-common.c
29532 (TARGET_DEFAULT_TARGET_FLAGS): Set default endianness.
29533 * config.gcc (riscv32be-*, riscv64be-*): Set
29534 TARGET_BIG_ENDIAN_DEFAULT to 1.
29535 * config/riscv/elf.h (LINK_SPEC): Change -melf* value
29536 depending on default endianness.
29537 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
29538 * config/riscv/linux.h (LINK_SPEC): Likewise.
29539 * config/riscv/riscv.c (TARGET_DEFAULT_TARGET_FLAGS): Set
29540 default endianness.
29541 * config/riscv/riscv.h (DEFAULT_ENDIAN_SPEC): New macro.
29543 2021-03-23 Marcus Comstedt <marcus@mc.pp.se>
29545 * config/riscv/elf.h (LINK_SPEC): Pass linker endianness flag.
29546 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
29547 * config/riscv/linux.h (LINK_SPEC): Likewise.
29548 * config/riscv/riscv.h (ASM_SPEC): Pass -mbig-endian and
29550 (BYTES_BIG_ENDIAN): Handle big endian.
29551 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
29552 * config/riscv/riscv.opt (-mbig-endian, -mlittle-endian): New
29554 * doc/invoke.texi (-mbig-endian, -mlittle-endian): Document.
29556 2021-03-23 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
29558 * regcprop.c (find_oldest_value_reg): Ask target whether
29559 different mode is fine for replacement register.
29561 2021-03-23 Aldy Hernandez <aldyh@redhat.com>
29563 PR tree-optimization/99296
29564 * value-range.cc (irange::irange_set_1bit_anti_range): New.
29565 (irange::irange_set_anti_range): Call irange_set_1bit_anti_range
29566 * value-range.h (irange::irange_set_1bit_anti_range): New.
29568 2021-03-22 Vladimir N. Makarov <vmakarov@redhat.com>
29571 * config/aarch64/constraints.md (UtQ): Use
29572 define_relaxed_memory_constraint for it.
29573 * doc/md.texi (define_relaxed_memory_constraint): Describe it.
29574 * genoutput.c (main): Process DEFINE_RELAXED_MEMORY_CONSTRAINT.
29575 * genpreds.c (constraint_data): Add bitfield is_relaxed_memory.
29576 (have_relaxed_memory_constraints): New static var.
29577 (relaxed_memory_start, relaxed_memory_end): Ditto.
29578 (add_constraint): Add arg is_relaxed_memory. Check name for
29579 relaxed memory. Set up is_relaxed_memory in constraint_data and
29580 have_relaxed_memory_constraints. Adjust calls.
29581 (choose_enum_order): Process relaxed memory.
29582 (write_tm_preds_h): Ditto.
29583 (main): Process DEFINE_RELAXED_MEMORY_CONSTRAINT.
29584 * gensupport.c (process_rtx): Process DEFINE_RELAXED_MEMORY_CONSTRAINT.
29585 * ira-costs.c (record_reg_classes): Process CT_RELAXED_MEMORY.
29586 * ira-lives.c (single_reg_class): Use
29587 insn_extra_relaxed_memory_constraint.
29588 * ira.c (ira_setup_alts): CT_RELAXED_MEMORY.
29589 * lra-constraints.c (valid_address_p): Use
29590 insn_extra_relaxed_memory_constraint instead of other memory
29592 (process_alt_operands): Process CT_RELAXED_MEMORY.
29593 (curr_insn_transform): Use insn_extra_relaxed_memory_constraint.
29594 * recog.c (asm_operand_ok, preprocess_constraints): Process
29596 * reload.c (find_reloads): Ditto.
29597 * rtl.def (DEFINE_RELAXED_MEMORY_CONSTRAINT): New.
29598 * stmt.c (parse_input_constraint): Use
29599 insn_extra_relaxed_memory_constraint.
29601 2021-03-22 Segher Boessenkool <segher@kernel.crashing.org>
29604 * ubsan.c (ubsan_instrument_float_cast): Don't test for unordered if
29607 2021-03-22 Alex Coplan <alex.coplan@arm.com>
29610 * config/arm/arm-protos.h (neon_make_constant): Add generate
29611 argument to guard emitting insns, default to true.
29612 * config/arm/arm.c (arm_legitimate_constant_p_1): Reject
29613 CONST_VECTORs which neon_make_constant can't handle.
29614 (neon_vdup_constant): Add generate argument, avoid emitting
29615 insns if it's not set.
29616 (neon_make_constant): Plumb new generate argument through.
29617 * config/arm/constraints.md (Ui): New. Use it...
29618 * config/arm/mve.md (*mve_mov<mode>): ... here.
29619 * config/arm/vec-common.md (movv8hf): Use neon_make_constant to
29620 synthesize constants.
29622 2021-03-22 Richard Biener <rguenther@suse.de>
29624 * debug.h: Add deprecation warning.
29626 2021-03-22 Richard Biener <rguenther@suse.de>
29628 PR tree-optimization/99694
29629 * tree-ssa-sccvn.c (visit_phi): Ignore edges with the
29632 2021-03-22 Kito Cheng <kito.cheng@sifive.com>
29635 * config/riscv/riscv.c (riscv_expand_block_move): Get RTL value
29636 after type checking.
29638 2021-03-22 Jakub Jelinek <jakub@redhat.com>
29642 * dwarf2out.c (get_full_len): Use get_precision rather than
29644 (add_const_value_attribute): Make sure add_AT_wide argument has
29645 precision prec rather than some very wide one.
29647 2021-03-22 Kewen Lin <linkw@linux.ibm.com>
29649 * config/rs6000/rs6000.md (*rotldi3_insert_sf,
29650 *mov<SFDF:mode><SFDF2:mode>cc_p9, floatsi<mode>2_lfiwax,
29651 floatsi<mode>2_lfiwax_mem, floatunssi<mode>2_lfiwzx,
29652 floatunssi<mode>2_lfiwzx_mem, *floatsidf2_internal,
29653 *floatunssidf2_internal, fix_trunc<mode>si2_stfiwx,
29654 fix_trunc<mode>si2_internal, fixuns_trunc<mode>si2_stfiwx,
29655 *round32<mode>2_fprs, *roundu32<mode>2_fprs,
29656 *fix_trunc<mode>si2_internal): Fix empty split condition.
29657 * config/rs6000/vsx.md (*vsx_le_undo_permute_<mode>,
29658 vsx_reduc_<VEC_reduc_name>_v2df, vsx_reduc_<VEC_reduc_name>_v4sf,
29659 *vsx_reduc_<VEC_reduc_name>_v2df_scalar,
29660 *vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Likewise.
29662 2021-03-22 Xionghu Luo <luoxhu@linux.ibm.com>
29665 * config/rs6000/rs6000.c (rs6000_expand_vector_set_var_p9):
29666 Convert idx to DImode.
29667 (rs6000_expand_vector_set_var_p8): Likewise.
29669 2021-03-21 Jakub Jelinek <jakub@redhat.com>
29672 * dwarf2out.c (insert_float): Change return type from void to
29673 unsigned, handle GET_MODE_SIZE (mode) == 2 and return element size.
29674 (mem_loc_descriptor, loc_descriptor, add_const_value_attribute):
29677 2021-03-20 H.J. Lu <hjl.tools@gmail.com>
29680 * config/i386/i386.c (construct_container): Check cfun != NULL
29681 before accessing silent_p.
29683 2021-03-20 Ahamed Husni <ahamedhusni73@gmail.com>
29685 * asan.c: Fix typos in comments.
29687 2021-03-20 Vladimir N. Makarov <vmakarov@redhat.com>
29689 PR rtl-optimization/99680
29690 * lra-constraints.c (skip_contraint_modifiers): Rename to skip_constraint_modifiers.
29691 (process_address_1): Check empty constraint before using
29694 2021-03-19 Pat Haugen <pthaugen@linux.ibm.com>
29696 * config/rs6000/rs6000.c (power10_cost): New.
29697 (rs6000_option_override_internal): Set Power10 costs.
29698 (rs6000_issue_rate): Set Power10 issue rate.
29699 * config/rs6000/power10.md: Rewrite for Power10.
29701 2021-03-19 Vladimir N. Makarov <vmakarov@redhat.com>
29704 * lra-constraints.c (process_address_1): Don't use unknown
29705 constraint for address constraint.
29707 2021-03-19 Iain Sandoe <iain@sandoe.co.uk>
29710 * config.gcc (powerpc-*-darwin8): Delete the reference to
29711 the now removed darwin8.h.
29713 2021-03-19 Olivier Hainque <hainque@adacore.com>
29716 * config/vxworksae.h (VX_CPU_PREFIX): Define.
29718 2021-03-19 John David Anglin <danglin@gcc.gnu.org>
29720 * config/pa/pa.c (import_milli): Use memcpy instead of strncpy.
29722 2021-03-19 Tamar Christina <tamar.christina@arm.com>
29724 PR tree-optimization/99656
29725 * tree-vect-slp-patterns.c (linear_loads_p,
29726 complex_add_pattern::matches, is_eq_or_top,
29727 vect_validate_multiplication, complex_mul_pattern::matches,
29728 complex_fms_pattern::matches): Remove complex_perm_kinds_t.
29729 * tree-vectorizer.h: (complex_load_perm_t): Removed.
29730 (slp_tree_to_load_perm_map_t): Use complex_perm_kinds_t instead of
29731 complex_load_perm_t.
29733 2021-03-19 H.J. Lu <hjl.tools@gmail.com>
29736 * config/i386/i386-options.c (ix86_init_machine_status): Set
29738 * config/i386/i386.c (init_cumulative_args): Set silent_p to
29740 (construct_container): Return early for return and argument
29741 errors if silent_p is true.
29742 * config/i386/i386.h (machine_function): Add silent_p.
29744 2021-03-19 Jakub Jelinek <jakub@redhat.com>
29747 * config/arm/constraints.md (Ds): New constraint.
29748 * config/arm/vec-common.md (mve_vshlq_<supf><mode>): Use w,Ds
29749 constraint instead of w,Dm.
29751 2021-03-19 Andrew Stubbs <ams@codesourcery.com>
29753 * config/gcn/gcn.c (gcn_parse_amdgpu_hsa_kernel_attribute): Fix quotes
29756 2021-03-19 Eric Botcazou <ebotcazou@adacore.com>
29758 PR middle-end/99641
29759 * fold-const.c (native_encode_initializer) <CONSTRUCTOR>: For an
29760 array type, do the computation of the current position in sizetype.
29762 2021-03-18 Vladimir N. Makarov <vmakarov@redhat.com>
29765 * lra-constraints.c (process_address_1): Use lookup_constraint
29766 only for a single constraint.
29768 2021-03-18 Martin Sebor <msebor@redhat.com>
29770 PR middle-end/99502
29771 * gimple-array-bounds.cc (inbounds_vbase_memaccess_p): Rename...
29772 (inbounds_memaccess_p): ...to this. Check the ending offset of
29773 the accessed member.
29775 2021-03-18 Andrew Stubbs <ams@codesourcery.com>
29777 * config/gcn/gcn.c (gcn_parse_amdgpu_hsa_kernel_attribute): Add %< and
29778 %> quote markers to error messages.
29779 (gcn_goacc_validate_dims): Likewise.
29780 (gcn_conditional_register_usage): Remove exclaimation mark from error
29782 (gcn_vectorize_vec_perm_const): Ensure perm is fully uninitialized.
29784 2021-03-18 Jan Hubicka <hubicka@ucw.cz>
29786 * config/i386/x86-tune-costs.h (struct processor_costs): Fix costs of
29789 2021-03-18 Sinan Lin <sinan@isrc.iscas.ac.cn>
29790 Kito Cheng <kito.cheng@sifive.com>
29792 * config/riscv/riscv.c (riscv_block_move_straight): Change type
29793 to unsigned HOST_WIDE_INT for parameter and local variable with
29794 HOST_WIDE_INT type.
29795 (riscv_adjust_block_mem): Ditto.
29796 (riscv_block_move_loop): Ditto.
29797 (riscv_expand_block_move): Ditto.
29799 2021-03-18 Nick Clifton <nickc@redhat.com>
29801 * config/v850/v850.c (construct_restore_jr): Increase static
29803 (construct_save_jarl): Likewise.
29804 * config/v850/v850.h (DWARF2_DEBUGGING_INFO): Define.
29806 2021-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29808 * config/aarch64/aarch64.c (aarch64_adjust_generic_arch_tuning): Define.
29809 (aarch64_override_options_internal): Use it.
29810 (generic_tunings): Add AARCH64_EXTRA_TUNE_CSE_SVE_VL_CONSTANTS to
29813 2021-03-17 Sandra Loosemore <sandra@codesourcery.com>
29815 * config/nios2/nios2.c (nios2_custom_check_insns): Clean up
29816 error message format issues.
29817 (nios2_option_override): Likewise.
29818 (nios2_expand_fpu_builtin): Likewise.
29819 (nios2_init_custom_builtins): Adjust to avoid bogus strncpy
29820 truncation warning.
29821 (nios2_expand_custom_builtin): More error message format fixes.
29822 (nios2_expand_rdwrctl_builtin): Likewise.
29823 (nios2_expand_rdprs_builtin): Likewise.
29824 (nios2_expand_eni_builtin): Likewise.
29825 (nios2_expand_builtin): Likewise.
29826 (nios2_register_custom_code): Likewise.
29827 (nios2_valid_target_attribute_rec): Likewise.
29828 (nios2_add_insn_asm): Fix uninitialized variable warning.
29830 2021-03-17 Jan Hubicka <jh@suse.cz>
29832 * config/i386/x86-tune-costs.h (struct processor_costs): Update costs
29833 of gather to match reality.
29834 * config/i386/x86-tune.def (X86_TUNE_USE_GATHER): Enable for znver3.
29836 2021-03-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29838 * config/aarch64/aarch64-builtins.c (aarch64_expand_rng_builtin): Use EQ
29839 to compare against CC_REG rather than NE.
29841 2021-03-17 H.J. Lu <hjl.tools@gmail.com>
29844 * config/i386/i386.c (ix86_force_load_from_GOT_p): Support
29845 inline assembly statements.
29846 (ix86_print_operand): Update 'P' handling for -fno-plt.
29848 2021-03-17 Tamar Christina <tamar.christina@arm.com>
29851 * config/aarch64/aarch64.c
29852 (aarch64_simd_clone_compute_vecsize_and_simdlen): Remove unused var.
29854 2021-03-16 Segher Boessenkool <segher@kernel.crashing.org>
29857 * config/rs6000/predicates.md (branch_comparison_operator): Allow
29858 ordered and unordered for CCFPmode, if flag_finite_math_only.
29860 2021-03-16 Jakub Jelinek <jakub@redhat.com>
29863 * config/i386/i386-expand.c (ix86_split_lea_for_addr): Emit a MULT
29864 rather than ASHIFT.
29865 * config/i386/i386.md (mult by 1248 into ashift): New splitter.
29867 2021-03-16 Martin Liska <mliska@suse.cz>
29870 * optc-save-gen.awk: Add flag_ipa_ra to exceptions for
29871 cl_optimization_compare function.
29873 2021-03-16 Ilya Leoshkevich <iii@linux.ibm.com>
29875 * config/s390/s390.c (f_constraint_p): Treat "fv" constraints
29878 2021-03-16 Jakub Jelinek <jakub@redhat.com>
29881 * config/i386/i386.h (struct machine_function): Add
29882 has_explicit_vzeroupper bitfield.
29883 * config/i386/i386-expand.c (ix86_expand_builtin): Set
29884 cfun->machine->has_explicit_vzeroupper when expanding
29885 IX86_BUILTIN_VZEROUPPER.
29886 * config/i386/i386-features.c (rest_of_handle_insert_vzeroupper):
29887 Do the mode switching only when TARGET_VZEROUPPER, expensive
29888 optimizations turned on and not optimizing for size.
29889 (pass_insert_vzeroupper::gate): Enable even when
29890 cfun->machine->has_explicit_vzeroupper is set.
29892 2021-03-16 Jakub Jelinek <jakub@redhat.com>
29895 * config/aarch64/aarch64.c
29896 (aarch64_simd_clone_compute_vecsize_and_simdlen): If not a function
29897 definition, walk TYPE_ARG_TYPES list if non-NULL for argument types
29898 instead of DECL_ARGUMENTS. Ignore types for uniform arguments.
29900 2021-03-15 Richard Biener <rguenther@suse.de>
29902 PR tree-optimization/98834
29903 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle missing
29904 subsetting by truncating the access size.
29906 2021-03-15 Jan Hubicka <hubicka@ucw.cz>
29908 * config/i386/i386-options.c (processor_cost_table): Add znver3_cost.
29909 * config/i386/x86-tune-costs.h (znver3_cost): New gobal variable; copy
29912 2021-03-15 Martin Liska <mliska@suse.cz>
29914 * spellcheck.c: Add missing comma in initialization.
29916 2021-03-14 Uroš Bizjak <ubizjak@gmail.com>
29918 * config/i386/sse.md (*vec_extract<mode>): Merge alternative 0 with
29919 alternative 2 and alternative 1 with alternative 3 using
29920 YW register constraint.
29921 (*vec_extract<PEXTR_MODE12:mode>_zext): Merge alternatives
29922 using YW register constraint.
29923 (*vec_extractv16qi_zext): Ditto.
29924 (*vec_extractv4si): Merge alternatives 4 and 5
29925 using Yw register constraint.
29926 (*ssse3_palignr<mode>_perm): Use Yw instead of v for alternative 3.
29928 2021-03-13 Martin Sebor <msebor@redhat.com>
29930 PR tree-optimization/99489
29931 * builtins.c (gimple_call_alloc_size): Fail gracefully when argument
29932 is not a call statement.
29934 2021-03-13 Jakub Jelinek <jakub@redhat.com>
29936 PR tree-optimization/99544
29937 * match.pd (X + (X << C) -> X * (1 + (1 << C))): Don't simplify
29938 if for vector types multiplication can't be done in type's mode.
29940 2021-03-12 Eric Botcazou <ebotcazou@adacore.com>
29943 * config/sparc/constraints.md (w): Rename to...
29944 (W): ... this and ditch previous implementation.
29945 * config/sparc/sparc.md (*movdi_insn_sp64): Replace W with m.
29946 (*movdf_insn_sp64): Likewise.
29947 (*mov<VM64:mode>_insn_sp64): Likewise.
29948 * config/sparc/sync.md (*atomic_compare_and_swap<mode>_1): Replace
29950 (atomic_compare_and_swap_leon3_1): Likewise.
29951 (*atomic_compare_and_swapdi_v8plus): Likewise.
29952 * config/sparc/sparc.c (memory_ok_for_ldd): Remove useless test on
29953 architecture and add missing address validity check during LRA.
29955 2021-03-12 Tobias Burnus <tobias@codesourcery.com>
29958 * gimplify.c (omp_add_variable): Handle NULL_TREE as size
29959 occuring for assumed-size arrays in use_device_{ptr,addr}.
29961 2021-03-12 Jakub Jelinek <jakub@redhat.com>
29964 * config/i386/constraints.md (YW): New internal constraint.
29965 * config/i386/sse.md (v_Yw): Add V4TI, V2TI, V1TI and TI cases.
29966 (*<sse2_avx2>_<insn><mode>3<mask_name>,
29967 *<sse2_avx2>_uavg<mode>3<mask_name>, *abs<mode>2,
29968 *<s>mul<mode>3_highpart<mask_name>): Use <v_Yw> instead of v in
29970 (<sse2_avx2>_psadbw): Use YW instead of v in constraints.
29971 (*avx2_pmaddwd, *sse2_pmaddwd, *<code>v8hi3, *<code>v16qi3,
29972 avx2_pmaddubsw256, ssse3_pmaddubsw128): Merge last two alternatives
29973 into one, use Yw instead of former x,v.
29974 (ashr<mode>3, <insn><mode>3): Use <v_Yw> instead of x in constraints of
29975 the last alternative.
29976 (<sse2_avx2>_packsswb<mask_name>, <sse2_avx2>_packssdw<mask_name>,
29977 <sse2_avx2>_packuswb<mask_name>, <sse4_1_avx2>_packusdw<mask_name>,
29978 *<ssse3_avx2>_pmulhrsw<mode>3<mask_name>, <ssse3_avx2>_palignr<mode>,
29979 <ssse3_avx2>_pshufb<mode>3<mask_name>): Merge last two alternatives
29980 into one, use <v_Yw> instead of former x,v.
29981 (avx2_interleave_highv32qi<mask_name>,
29982 vec_interleave_highv16qi<mask_name>): Use Yw instead of v in
29983 constraints. Add && <mask_avx512bw_condition> to condition.
29984 (avx2_interleave_lowv32qi<mask_name>,
29985 vec_interleave_lowv16qi<mask_name>,
29986 avx2_interleave_highv16hi<mask_name>,
29987 vec_interleave_highv8hi<mask_name>,
29988 avx2_interleave_lowv16hi<mask_name>, vec_interleave_lowv8hi<mask_name>,
29989 avx2_pshuflw_1<mask_name>, sse2_pshuflw_1<mask_name>,
29990 avx2_pshufhw_1<mask_name>, sse2_pshufhw_1<mask_name>,
29991 avx2_<code>v16qiv16hi2<mask_name>, sse4_1_<code>v8qiv8hi2<mask_name>,
29992 *sse4_1_<code>v8qiv8hi2<mask_name>_1, <sse2_avx2>_<insn><mode>3): Use
29993 Yw instead of v in constraints.
29994 * config/i386/mmx.md (Yv_Yw): New define_mode_attr.
29995 (*mmx_<insn><mode>3, mmx_ashr<mode>3, mmx_<insn><mode>3): Use <Yv_Yw>
29996 instead of Yv in constraints.
29997 (*mmx_<insn><mode>3, *mmx_mulv4hi3, *mmx_smulv4hi3_highpart,
29998 *mmx_umulv4hi3_highpart, *mmx_pmaddwd, *mmx_<code>v4hi3,
29999 *mmx_<code>v8qi3, mmx_pack<s_trunsuffix>swb, mmx_packssdw,
30000 mmx_punpckhbw, mmx_punpcklbw, mmx_punpckhwd, mmx_punpcklwd,
30001 *mmx_uavgv8qi3, *mmx_uavgv4hi3, mmx_psadbw): Use Yw instead of Yv in
30003 (*mmx_pinsrw, *mmx_pinsrb, *mmx_pextrw, *mmx_pextrw_zext, *mmx_pextrb,
30004 *mmx_pextrb_zext): Use YW instead of Yv in constraints.
30005 (*mmx_eq<mode>3, mmx_gt<mode>3): Use x instead of Yv in constraints.
30006 (mmx_andnot<mode>3, *mmx_<code><mode>3): Split last alternative into
30007 two, one with just x, another isa avx512vl with v.
30009 2021-03-12 Martin Liska <mliska@suse.cz>
30011 * doc/invoke.texi: Add missing param documentation.
30013 2021-03-11 David Malcolm <dmalcolm@redhat.com>
30016 * Makefile.in (ANALYZER_OBJS): Add analyzer/feasible-graph.o and
30017 analyzer/trimmed-graph.o.
30018 * doc/analyzer.texi (Analyzer Paths): Rewrite description of
30019 feasibility checking to reflect new implementation.
30020 * doc/invoke.texi (-fdump-analyzer-feasibility): Document new
30022 * shortest-paths.h (shortest_paths::get_shortest_distance): New.
30024 2021-03-11 David Malcolm <dmalcolm@redhat.com>
30026 * digraph.cc (selftest::test_shortest_paths): Update
30027 shortest_paths init for new param. Add test of
30028 SPS_TO_GIVEN_TARGET.
30029 * shortest-paths.h (enum shortest_path_sense): New.
30030 (shortest_paths::shortest_paths): Add "sense" param.
30031 Update for renamings. Generalize to use "sense" param.
30032 (shortest_paths::get_shortest_path): Rename param.
30033 (shortest_paths::m_sense): New field.
30034 (shortest_paths::m_prev): Rename...
30035 (shortest_paths::m_best_edge): ...to this.
30036 (shortest_paths::get_shortest_path): Update for renamings.
30037 Conditionalize flipping of path on sense of traversal.
30039 2021-03-11 David Malcolm <dmalcolm@redhat.com>
30041 * digraph.cc (selftest::test_shortest_paths): Add test coverage
30042 for paths from B and C.
30043 * shortest-paths.h (shortest_paths::shortest_paths): Handle
30044 unreachable nodes, rather than asserting.
30046 2021-03-11 David Edelsohn <dje.gcc@gmail.com>
30049 * config/rs6000/rs6000.c (rs6000_xcoff_file_start): Don't create
30050 xcoff_tbss_section_name.
30051 * config/rs6000/xcoff.h (ASM_OUTPUT_TLS_COMMON): Use .lcomm.
30052 * xcoffout.c (xcoff_tbss_section_name): Delete.
30053 * xcoffout.h (xcoff_tbss_section_name): Delete.
30055 2021-03-11 Richard Biener <rguenther@suse.de>
30057 PR tree-optimization/99523
30058 * tree-cfg.c (dump_function_to_file): Dump SSA names
30059 w/o identifier to the decls section as well, not only those
30060 without a VAR_DECL.
30062 2021-03-11 Jakub Jelinek <jakub@redhat.com>
30065 * ipa-icf-gimple.c (func_checker::compare_gimple_call): For internal
30066 function calls with lhs fail if the lhs don't have compatible types.
30068 2021-03-11 Hans-Peter Nilsson <hp@axis.com>
30070 * config/cris/cris.h (HARD_FRAME_POINTER_REGNUM): Define.
30071 Change FRAME_POINTER_REGNUM to correspond to a new faked
30072 register faked_fp, part of GENNONACR_REGS like faked_ap.
30073 (CRIS_FAKED_REGS_CONTENTS): New helper macro.
30074 (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS, CALL_USED_REGISTERS):
30075 (REG_ALLOC_ORDER, REG_CLASS_CONTENTS, REGNO_OK_FOR_BASE_P)
30076 (ELIMINABLE_REGS, REGISTER_NAMES): Adjust accordingly.
30077 * config/cris/cris.md (CRIS_FP_REGNUM): Renumber to new faked
30079 (CRIS_REAL_FP_REGNUM): New constant.
30080 * config/cris/cris.c (cris_reg_saved_in_regsave_area): Check
30081 for HARD_FRAME_POINTER_REGNUM instead of FRAME_POINTER_REGNUM.
30082 (cris_initial_elimination_offset): Handle elimination changes
30083 to HARD_FRAME_POINTER_REGNUM instead of FRAME_POINTER_REGNUM
30084 and add one from FRAME_POINTER_REGNUM to
30085 HARD_FRAME_POINTER_REGNUM.
30086 (cris_expand_prologue, cris_expand_epilogue): Emit code for
30087 hard_frame_pointer_rtx instead of frame_pointer_rtx.
30089 2021-03-10 David Edelsohn <dje.gcc@gmail.com>
30092 * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Add check for DCmode.
30093 * config/rs6000/rs6000.c (rs6000_special_round_type_align): Same.
30095 2021-03-10 Vladimir N. Makarov <vmakarov@redhat.com>
30098 * lra-constraints.c (process_address_1): Don't check unknown
30099 constraint, use X for empty constraint.
30101 2021-03-10 Alex Coplan <alex.coplan@arm.com>
30103 * config/aarch64/aarch64.c (aarch64_vfp_is_call_or_return_candidate):
30104 Fix typo in comment describing "is_ha" argument.
30106 2021-03-10 John David Anglin <danglin@gcc.gnu.org>
30108 * doc/sourcebuild.texi: Document LRA target selector.
30110 2021-03-10 David Malcolm <dmalcolm@redhat.com>
30112 * doc/ux.texi: Add subsection contrasting interactive versus
30113 batch usage of GCC.
30115 2021-03-10 Joel Hutton <joel.hutton@arm.com>
30118 * tree-vect-stmts.c (vectorizable_store): Fix scatter store mask
30120 (vectorizable_load): Fix gather load mask check condition.
30122 2021-03-10 Richard Biener <rguenther@suse.de>
30124 PR tree-optimization/99510
30125 * tree.c (check_aligned_type): Check that the candidate
30126 has TYPE_USER_ALIGN set instead of matching with the
30129 2021-03-10 Eric Botcazou <ebotcazou@adacore.com>
30131 * config/sparc/sparc.c (sparc_regmode_natural_size): Return 4 for
30132 float and vector integer modes only if the mode is not larger.
30134 2021-03-10 Hans-Peter Nilsson <hp@axis.com>
30136 * config/cris/cris.h (DWARF_FRAME_REGISTERS): Define.
30138 2021-03-09 Vladimir N. Makarov <vmakarov@redhat.com>
30140 * ira.c (ira_setup_alts, ira_get_dup_out_num): Process digital
30142 * ira-lives.c (single_reg_class): Ditto.
30144 2021-03-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
30146 * config.gcc (aarch64-*-rtems*): Include general rtems.h after
30147 the architecture-specific rtems.h.
30148 (aarch64-*-rtems*): Likewise.
30149 (arm*-*-rtems*): Likewise.
30150 (epiphany-*-rtems*): Likewise.
30151 (riscv*-*-rtems*): Likewise.
30153 2021-03-09 Jakub Jelinek <jakub@redhat.com>
30155 PR tree-optimization/99305
30156 * tree-ssa-phiopt.c (conditional_replacement): Test integer_pow2p
30157 before integer_all_onesp instead of vice versa.
30159 2021-03-09 Richard Earnshaw <rearnsha@arm.com>
30161 * common/config/arm/arm-common.c (arm_config_default): Change type
30162 of 'i' to unsigned.
30164 2021-03-09 Vladimir N. Makarov <vmakarov@redhat.com>
30167 * lra-constraints.c (process_address_1): Process constraint 'g'
30168 separately and digital constraints containing more one digit.
30170 2021-03-09 Nick Clifton <nickc@redhat.com>
30172 * config/rx/rx.h (DBX_DEBUGGING_INFO): Define.
30173 (DWARF"_DEBUGGING_INFO): Define.
30175 2021-03-09 Eric Botcazou <ebotcazou@adacore.com>
30178 * calls.c (initialize_argument_information): When the argument
30179 is passed by reference, do not make a copy in a thunk only if
30180 the argument is already in memory. Remove redundant test for
30181 the case of callee copy.
30183 2021-03-09 Vladimir N. Makarov <vmakarov@redhat.com>
30186 * lra-constraints.c (process_address_1): Process 0..9 constraints
30187 in process_address_1.
30189 2021-03-09 Andreas Krebbel <krebbel@linux.ibm.com>
30191 * config/s390/s390.c (struct s390_processor processor_table):
30192 Binutils name string must not be empty.
30194 2021-03-09 Claudiu Zissulescu <claziss@synopsys.com>
30196 * config/arc/arc.c (arc_attr_type): Remove function.
30198 2021-03-09 Martin Liska <mliska@suse.cz>
30201 * config/i386/i386-options.c (ix86_option_override_internal):
30202 Set isa_flags for OPTS argument and not for the global
30205 2021-03-09 Aaron Sawdey <acsawdey@linux.ibm.com>
30207 * config/rs6000/predicates.md (ds_form_mem_operand): Check
30210 2021-03-09 Aaron Sawdey <acsawdey@linux.ibm.com>
30213 * config/rs6000/predicates.md (ds_form_mem_operand) New
30215 * config/rs6000/genfusion.pl (gen_ld_cmpi_p10) Use
30216 ds_form_mem_operand in ld/lwa patterns.
30217 * config/rs6000/fusion.md: Regenerate file.
30219 2021-03-08 Martin Sebor <msebor@redhat.com>
30221 PR middle-end/98266
30222 * gimple-array-bounds.cc (inbounds_vbase_memaccess_p): New function.
30223 (array_bounds_checker::check_array_bounds): Call it.
30225 2021-03-08 Martin Sebor <msebor@redhat.com>
30227 PR middle-end/97631
30228 * tree-ssa-strlen.c (maybe_warn_overflow): Test rawmem.
30229 (handle_builtin_stxncpy_strncat): Rename locals. Determine
30230 destination size from allocation calls. Issue a more appropriate
30232 (handle_builtin_memcpy): Pass true as rawmem to maybe_warn_overflow.
30233 (handle_builtin_memset): Same.
30235 2021-03-08 Peter Bergner <bergner@linux.ibm.com>
30238 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_permute): Add an assert
30239 to ensure we do not have an Altivec style address.
30240 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>): Disable if passed
30241 an Altivec style address.
30242 (*vsx_le_perm_store_<mode>): Likewise.
30243 (splitters after *vsx_le_perm_store_<mode>): Likewise.
30244 (vsx_load_<mode>): Disable special expander if passed an Altivec
30246 (vsx_store_<mode>): Likewise.
30248 2021-03-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30251 * config/aarch64/predicates.md (aarch64_simd_shift_imm_vec_qi): Define.
30252 (aarch64_simd_shift_imm_vec_hi): Likewise.
30253 (aarch64_simd_shift_imm_vec_si): Likewise.
30254 (aarch64_simd_shift_imm_vec_di): Likewise.
30255 * config/aarch64/aarch64-simd.md (aarch64_shrn<mode>_insn_le): Use
30256 predicate from above.
30257 (aarch64_shrn<mode>_insn_be): Likewise.
30258 (aarch64_rshrn<mode>_insn_le): Likewise.
30259 (aarch64_rshrn<mode>_insn_be): Likewise.
30260 (aarch64_shrn2<mode>_insn_le): Likewise.
30261 (aarch64_shrn2<mode>_insn_be): Likewise.
30262 (aarch64_rshrn2<mode>_insn_le): Likewise.
30263 (aarch64_rshrn2<mode>_insn_be): Likewise.
30265 2021-03-08 Vladimir N. Makarov <vmakarov@redhat.com>
30268 * lra-constraints.c (skip_contraint_modifiers): New function.
30269 (process_address_1): Use it before lookup_constraint call.
30271 2021-03-08 Martin Liska <mliska@suse.cz>
30274 * config/i386/i386-options.c (ix86_option_override_internal):
30275 Enable UINTR and HRESET for -march that supports it.
30277 2021-03-08 Ilya Leoshkevich <iii@linux.ibm.com>
30279 * config/s390/s390.c (f_constraint_p): New function.
30280 (s390_md_asm_adjust): Implement TARGET_MD_ASM_ADJUST.
30281 (TARGET_MD_ASM_ADJUST): Likewise.
30283 2021-03-08 Tobias Burnus <tobias@codesourcery.com>
30286 * tree-nested.c (convert_local_reference_stmt): Avoid calling
30287 lookup_field_for_decl for Fortran module (= namespace context).
30289 2021-03-08 Andreas Krebbel <krebbel@linux.ibm.com>
30291 * config/s390/s390.c (s390_expand_vec_compare): Implement <0
30292 comparison with arithmetic right shift.
30293 (s390_expand_vcond): No need for a force_reg anymore.
30294 s390_vec_compare will do it.
30295 * config/s390/vector.md ("vec_cmp<mode><tointvec>"): Accept also
30296 immediate operands.
30298 2021-03-07 Jakub Jelinek <jakub@redhat.com>
30301 * config/i386/constraints.md (Yw): Use SSE_REGS if TARGET_SSE
30302 but TARGET_AVX512BW or TARGET_AVX512VL is not set. Adjust description
30304 * config/i386/sse.md (v_Yw): New define_mode_attr.
30305 (*<insn><mode>3, *mul<mode>3<mask_name>, *avx2_<code><mode>3,
30306 *sse4_1_<code><mode>3<mask_name>): Use <v_Yw> instead of v
30308 * config/i386/mmx.md (mmx_pshufw_1, *vec_dupv4hi): Use Yw instead of
30309 xYw in constraints.
30311 2021-03-06 Julian Brown <julian@codesourcery.com>
30313 * tree-pretty-print.c (dump_generic_node): Emit non-generic
30314 address space info for aggregates.
30316 2021-03-06 Hans-Peter Nilsson <hp@axis.com>
30318 * config/cris/cris.h (MAX_FIXED_MODE_SIZE): Don't define.
30320 2021-03-05 Jakub Jelinek <jakub@redhat.com>
30322 PR middle-end/99322
30323 * tree-cfg.c (bb_to_omp_idx): New variable.
30324 (execute_build_cfg): Release the bb_to_omp_idx vector after
30325 cleanup_tree_cfg returns.
30326 (handle_abnormal_edges): Remove bb_to_omp_idx argument, adjust
30327 for bb_to_omp_idx being a vec<int> instead of pointer to array
30329 (make_edges): Remove bb_to_omp_idx local variable, don't pass
30330 it to handle_abnormal_edges, adjust for bb_to_omp_idx being a
30331 vec<int> instead of pointer to array of ints and don't free/release
30333 (remove_bb): When removing a bb and placing forced label somewhere
30334 else, ensure it is put into the same OpenMP region during cfg
30335 pass if possible or to entry successor as fallback. Unregister
30336 bb from bb_to_omp_idx.
30338 2021-03-05 Vladimir N. Makarov <vmakarov@redhat.com>
30341 * lra-constraints.c (process_address_1): Skip decomposing address
30342 for asm insn operand with unknown constraint.
30344 2021-03-05 Martin Jambor <mjambor@suse.cz>
30347 * cgraph.c (cgraph_edge::set_call_stmt): Do not update all
30348 corresponding speculative edges if we are about to resolve
30349 sepculation. Make edge direct (and so resolve speculations) before
30350 removing it from call_site_hash.
30351 (cgraph_edge::make_direct): Relax the initial assert to allow calling
30352 the function on speculative direct edges.
30354 2021-03-05 Eric Botcazou <ebotcazou@adacore.com>
30356 PR rtl-optimization/99376
30357 * rtlanal.c (nonzero_bits1) <arithmetic operators>: If the number
30358 of low-order zero bits is too large, set the result to 0 directly.
30360 2021-03-04 Jakub Jelinek <jakub@redhat.com>
30362 PR middle-end/93235
30363 * expmed.c (store_bit_field_using_insv): Return false of xop0 is a
30364 SUBREG and a SUBREG to op_mode can't be created.
30366 2021-03-04 Alex Coplan <alex.coplan@arm.com>
30369 * config/aarch64/aarch64-sve-builtins.cc
30370 (function_resolver::require_vector_type): Handle error_mark_node.
30372 2021-03-04 Ilya Leoshkevich <iii@linux.ibm.com>
30374 * cfgexpand.c (expand_asm_loc): Pass new parameter.
30375 (expand_asm_stmt): Likewise.
30376 * config/arm/aarch-common-protos.h (arm_md_asm_adjust): Add new
30378 * config/arm/aarch-common.c (arm_md_asm_adjust): Likewise.
30379 * config/arm/arm.c (thumb1_md_asm_adjust): Likewise.
30380 * config/cris/cris.c (cris_md_asm_adjust): Likewise.
30381 * config/i386/i386.c (ix86_md_asm_adjust): Likewise.
30382 * config/mn10300/mn10300.c (mn10300_md_asm_adjust): Likewise.
30383 * config/nds32/nds32.c (nds32_md_asm_adjust): Likewise.
30384 * config/pdp11/pdp11.c (pdp11_md_asm_adjust): Likewise.
30385 * config/rs6000/rs6000.c (rs6000_md_asm_adjust): Likewise.
30386 * config/vax/vax.c (vax_md_asm_adjust): Likewise.
30387 * config/visium/visium.c (visium_md_asm_adjust): Likewise.
30388 * doc/tm.texi (md_asm_adjust): Likewise.
30389 * target.def (md_asm_adjust): Likewise.
30391 2021-03-04 Richard Biener <rguenther@suse.de>
30393 PR middle-end/97855
30394 * tree-pretty-print.c: Poison pp_printf.
30395 (dump_decl_name): Avoid use of pp_printf.
30396 (dump_block_node): Likewise.
30397 (dump_generic_node): Likewise.
30399 2021-03-04 Martin Sebor <msebor@redhat.com>
30401 PR middle-end/96963
30402 PR middle-end/94655
30403 * builtins.c (handle_array_ref): New helper.
30404 (handle_mem_ref): New helper.
30405 (compute_objsize_r): Factor out ARRAY_REF and MEM_REF handling
30406 into new helper functions. Correct a workaround for vectorized
30409 2021-03-03 Pat Haugen <pthaugen@linux.ibm.com>
30411 * config/rs6000/dfp.md (extendddtd2, trunctddd2, *cmp<mode>_internal1,
30412 floatditd2, ftrunc<mode>2, fix<mode>di2, dfp_ddedpd_<mode>,
30413 dfp_denbcd_<mode>, dfp_dxex_<mode>, dfp_diex_<mode>,
30414 *dfp_sgnfcnc_<mode>, dfp_dscli_<mode>, dfp_dscri_<mode>): Update size
30415 attribute for Power10.
30416 * config/rs6000/mma.md (*movoo): Likewise.
30417 * config/rs6000/rs6000.md (define_attr "size"): Add 256.
30418 (define_mode_attr bits): Add DD/TD modes.
30419 * config/rs6000/sync.md (load_quadpti, store_quadpti, load_lockedpti,
30420 store_conditionalpti): Update size attribute for Power10.
30422 2021-03-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30425 * config/sparc/t-sparc (tree-ssanames.o-warn): Don't error for
30426 -Wuninitialized, -Wmaybe-uninitialized.
30427 (wide-int.o-warn): Likewise.
30429 2021-03-03 Richard Earnshaw <rearnsha@arm.com>
30431 * common/config/arm/arm-common.c: Include configargs.h.
30432 (arm_config_default): New function.
30433 (arm_target_mode): Renamed from arm_target_thumb_only. Handle
30434 processors that do not support Thumb. Take into account the
30435 --with-mode configuration setting for selecting the default.
30436 * config/arm/arm.h (OPTION_DEFAULT_SPECS): Remove entry for 'mode'.
30437 (TARGET_MODE_SPEC_FUNCTIONS): Update for function name change.
30439 2021-03-03 Martin Liska <mliska@suse.cz>
30441 PR gcov-profile/97461
30442 * gcov-io.h (GCOV_PREALLOCATED_KVP): Remove.
30444 2021-03-03 Eric Botcazou <ebotcazou@adacore.com>
30447 * config/i386/i386.c (ix86_compute_frame_layout): For a SEH target,
30448 point back the hard frame pointer to its default location when the
30449 frame is larger than SEH_MAX_FRAME_SIZE.
30451 2021-03-03 Jakub Jelinek <jakub@redhat.com>
30454 * config/i386/predicates.md (logic_operator): New define_predicate.
30455 * config/i386/i386.md (mov + mem using comm arith peephole2):
30456 Punt if operands[1] is EXT_REX_SSE_REGNO_P, AVX512BW is not enabled
30457 and the inner mode is [QH]Imode.
30459 2021-03-03 Jakub Jelinek <jakub@redhat.com>
30462 * dwarf2out.c (dw_loc_list_struct): Add end_entry member.
30463 (new_loc_list): Clear end_entry.
30464 (output_loc_list): Only use DW_LLE_startx_length for -gsplit-dwarf
30465 if HAVE_AS_LEB128, otherwise use DW_LLE_startx_endx. Fix comment
30467 (index_location_lists): For dwarf_version >= 5 without HAVE_AS_LEB128,
30468 initialize also end_entry.
30470 2021-03-03 Jakub Jelinek <jakub@redhat.com>
30473 * cfgrtl.c (fixup_partitions): When changing some bbs from hot to cold
30474 partitions, if in non-layout mode after reorder_blocks also move
30475 affected blocks to ensure a single partition transition.
30477 2021-03-03 Jason Merrill <jason@redhat.com>
30480 * cgraphunit.c (process_function_and_variable_attributes): Don't
30481 warn about flatten on an alias if the target also has it.
30482 * cgraph.h (symtab_node::get_alias_target_tree): New.
30484 2021-03-02 David Edelsohn <dje.gcc@gmail.com>
30486 * config/rs6000/rs6000.md (tls_get_tpointer_internal): Prepend
30487 period to symbol name.
30488 (tls_get_addr_internal<mode>): Same.
30490 2021-03-02 David Malcolm <dmalcolm@redhat.com>
30493 * diagnostic-show-locus.c
30494 (selftest::test_one_liner_many_fixits_2): Fix accidental usage of
30497 2021-03-02 Martin Sebor <msebor@redhat.com>
30499 PR middle-end/99276
30500 * builtins.c (warn_for_access): Remove stray warning text.
30502 2021-03-02 Martin Sebor <msebor@redhat.com>
30504 PR middle-end/99295
30505 * doc/extend.texi (attribute malloc): Reword and clarify nonaliasing
30508 2021-03-02 Jakub Jelinek <jakub@redhat.com>
30511 * dwarf2out.c (output_macinfo_op): Use DW_MACRO_*_str* even with
30512 -gdwarf-5 -gstrict-dwarf. For -gsplit-dwarf -gdwarf-5 use
30513 DW_MACRO_*_strx instead of DW_MACRO_*_strp. Handle
30514 DW_MACRO_define_strx and DW_MACRO_undef_strx.
30515 (save_macinfo_strings): Use DW_MACRO_*_str* even with
30516 -gdwarf-5 -gstrict-dwarf. Handle DW_MACRO_define_strx and
30517 DW_MACRO_undef_strx.
30519 2021-03-02 Andreas Krebbel <krebbel@linux.ibm.com>
30521 * config/s390/s390-builtin-types.def (BT_FN_V4SF_V8HI_UINT): New
30523 (BT_FN_V8HI_V8HI_UINT): Likewise.
30524 (BT_FN_V8HI_V4SF_V4SF_UINT): Likewise.
30525 * config/s390/s390-builtins.def (B_NNPA): New macro definition.
30526 (s390_vclfnhs, s390_vclfnls, s390_vcrnfs, s390_vcfn, s390_vcnf):
30527 New builtin definitions.
30528 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Bump
30529 vector extension version.
30530 * config/s390/s390.c (s390_expand_builtin): Check if builtins are
30531 available with current -march level.
30532 * config/s390/s390.md (UNSPEC_NNPA_VCLFNHS_V8HI)
30533 (UNSPEC_NNPA_VCLFNLS_V8HI, UNSPEC_NNPA_VCRNFS_V8HI)
30534 (UNSPEC_NNPA_VCFN_V8HI, UNSPEC_NNPA_VCNF_V8HI): New constants.
30535 * config/s390/vecintrin.h (vec_extend_to_fp32_hi): New macro.
30536 (vec_extend_to_fp32_lo): Likewise.
30537 (vec_round_from_fp32): Likewise.
30538 (vec_convert_to_fp16): Likewise.
30539 (vec_convert_from_fp16): Likewise.
30540 * config/s390/vx-builtins.md (vclfnhs_v8hi): New insn pattern.
30541 (vclfnls_v8hi): Likewise.
30542 (vcrnfs_v8hi): Likewise.
30543 (vcfn_v8hi): Likewise.
30544 (vcnf_v8hi): Likewise.
30546 2021-03-02 Andreas Krebbel <krebbel@linux.ibm.com>
30548 * common/config/s390/s390-common.c (processor_flags_table): New entry.
30549 * config.gcc: Enable arch14 for --with-arch and --with-tune.
30550 * config/s390/driver-native.c (s390_host_detect_local_cpu): Pick
30551 arch14 for unknown CPU models.
30552 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH14.
30553 * config/s390/s390.c (s390_issue_rate): Add case for PROCESSOR_ARCH14.
30554 (s390_get_sched_attrmask): Likewise.
30555 (s390_get_unit_mask): Likewise.
30556 * config/s390/s390.h (enum processor_flags): Add PF_NNPA and PF_ARCH14.
30557 (TARGET_CPU_ARCH14, TARGET_CPU_ARCH14_P, TARGET_CPU_NNPA)
30558 (TARGET_CPU_NNPA_P, TARGET_ARCH14, TARGET_ARCH14_P, TARGET_NNPA)
30559 (TARGET_NNPA_P): New macro definitions.
30560 * config/s390/s390.md ("cpu_facility", "enabled"): Add arch14 and nnpa.
30561 * config/s390/s390.opt: Add PROCESSOR_ARCH14.
30563 2021-03-02 Jakub Jelinek <jakub@redhat.com>
30565 PR middle-end/95757
30566 * tree-vrp.c (register_edge_assert_for): Remove superfluous ()s around
30567 condition. Call register_edge_assert_for_1 for == 0, != 0, == 1 and
30568 != 1 comparisons if name is lhs of a comparison.
30570 2021-03-01 Iain Sandoe <iain@sandoe.co.uk>
30574 * config/darwin-protos.h (darwin_should_restore_cfa_state): New.
30575 * config/darwin.c (darwin_should_restore_cfa_state): New.
30576 * config/darwin.h (TARGET_ASM_SHOULD_RESTORE_CFA_STATE): New.
30577 * doc/tm.texi: Regenerated.
30578 * doc/tm.texi.in: Document TARGET_ASM_SHOULD_RESTORE_CFA_STATE.
30579 * dwarf2cfi.c (connect_traces): If the target requests, restore
30580 the CFA expression after a DW_CFA_restore.
30581 * target.def (TARGET_ASM_SHOULD_RESTORE_CFA_STATE): New hook.
30583 2021-03-01 Martin Liska <mliska@suse.cz>
30586 * optc-save-gen.awk: Add 4 more exceptions.
30588 2021-03-01 Nathan Sidwell <nathan@acm.org>
30591 * tree.h (TYPE_ALIGN_RAW): New accessor.
30592 (TYPE_ALIGN): Use it.
30594 2021-03-01 Jan Hubicka <jh@suse.cz>
30597 * ipa-fnsummary.c (compute_fn_summary): Fix sanity check.
30599 2021-03-01 Eric Botcazou <ebotcazou@adacore.com>
30602 * config/i386/i386.c (ix86_compute_frame_layout): For a SEH target,
30603 point the hard frame pointer to the SSE register save area instead
30604 of the general register save area. Perform only minimal adjustment
30605 for small frames if it is initially not correctly aligned.
30606 (ix86_expand_prologue): Remove early saves for a SEH target.
30607 * config/i386/winnt.c (struct seh_frame_state): Document constraint.
30609 2021-02-28 Jakub Jelinek <jakub@redhat.com>
30612 * ipa.c (symbol_table::remove_unreachable_nodes): Fix a comment
30613 typo - referneced -> referenced.
30614 * tree.c (component_ref_size): Fix comment typo -
30615 refernce -> reference.
30616 * tree-ssa-alias.c (access_path_may_continue_p): Fix comment typo -
30617 traling -> trailing.
30618 (aliasing_component_refs_p): Fix comment typos -
30619 refernce -> reference and refernece -> reference and
30620 traling -> trailing.
30621 (nonoverlapping_refs_since_match_p): Fix comment typo -
30622 referneces -> references.
30623 * doc/invoke.texi (--param modref-max-bases): Fix a typo -
30624 referneces -> references.
30626 2021-02-27 Iain Sandoe <iain@sandoe.co.uk>
30628 * config/host-darwin.c (darwin_gt_pch_use_address): Modify
30629 diagnostic message to avoid use of a contraction and format
30632 2021-02-27 Jakub Jelinek <jakub@redhat.com>
30635 * gcse.c (gcse_or_cprop_is_too_expensive): Use %wu instead of
30636 HOST_WIDE_INT_PRINT_UNSIGNED in warning format string.
30637 * ipa-devirt.c (ipa_odr_read_section): Use %wd instead of
30638 HOST_WIDE_INT_PRINT_DEC in inform format string. Fix comment
30641 2021-02-26 Richard Biener <rguenther@suse.de>
30643 PR middle-end/99281
30644 * expr.c (store_field): For calls with return-slot optimization
30645 and addressable return type expand the store directly.
30647 2021-02-26 Richard Biener <rguenther@suse.de>
30650 * builtins.c (warn_string_no_nul): Fix diagnostic formatting.
30652 2021-02-26 Peter Bergner <bergner@linux.ibm.com>
30655 * config/rs6000/rs6000-call.c (rs6000_init_builtins): Replace assert
30658 2021-02-26 Aaron Sawdey <acsawdey@linux.ibm.com>
30660 * config.gcc: Add rs6000-pcrel-opt.o.
30661 * config/rs6000/rs6000-pcrel-opt.c: New file.
30662 * config/rs6000/pcrel-opt.md: New file.
30663 * config/rs6000/predicates.md: Add d_form_memory predicate.
30664 * config/rs6000/rs6000-cpus.def: Add OPTION_MASK_PCREL_OPT.
30665 * config/rs6000/rs6000-passes.def: Add pass_pcrel_opt.
30666 * config/rs6000/rs6000-protos.h: Add reg_to_non_prefixed(),
30667 pcrel_opt_valid_mem_p(), output_pcrel_opt_reloc(),
30668 and make_pass_pcrel_opt().
30669 * config/rs6000/rs6000.c (reg_to_non_prefixed): Make global.
30670 (rs6000_option_override_internal): Add pcrel-opt.
30671 (rs6000_delegitimize_address): Support pcrel-opt.
30672 (rs6000_opt_masks): Add pcrel-opt.
30673 (pcrel_opt_valid_mem_p): New function.
30674 (reg_to_non_prefixed): Make global.
30675 (rs6000_asm_output_opcode): Reset prepend_p_to_next_insn.
30676 (output_pcrel_opt_reloc): New function.
30677 * config/rs6000/rs6000.md (loads_extern_addr): New attr.
30678 (pcrel_extern_addr): Set loads_extern_addr.
30679 Add include for pcrel-opt.md.
30680 * config/rs6000/rs6000.opt: Add -mpcrel-opt.
30681 * config/rs6000/t-rs6000: Add rules for pcrel-opt.c and
30684 2021-02-26 YunQiang Su <yunqiang.su@cipunited.com>
30687 * config/mips/mips.c (mips_expand_ext_as_unaligned_load):
30688 If TARGET_64BIT and dest is SUBREG, we check the width, if it
30689 equal to SImode, we use SImode operation, just like what we are
30692 2021-02-26 Marek Polacek <polacek@redhat.com>
30694 * builtins.c (warn_for_access): Fix typos.
30696 2021-02-25 Iain Sandoe <iain@sandoe.co.uk>
30698 * config/aarch64/aarch64.md (<optab>_rol<mode>3): Add a '#'
30699 mark in front of the immediate quantity.
30700 (<optab>_rolsi3_uxtw): Likewise.
30702 2021-02-25 Richard Earnshaw <rearnsha@arm.com>
30705 * config/arm/thumb2.md (nonsecure_call_reg_thumb2_fpcxt): New pattern.
30706 (nonsecure_call_value_reg_thumb2_fpcxt): Likewise.
30707 (nonsecure_call_reg_thumb2): Restrict to using r4 for the callee
30708 address and disable when the FPCXT is not available.
30709 (nonsecure_call_value_reg_thumb2): Likewise.
30711 2021-02-25 Nathan Sidwell <nathan@acm.org>
30714 * doc/invoke.texi (flang-info-module-cmi): Renamed option.
30716 2021-02-25 Tamar Christina <tamar.christina@arm.com>
30718 * tree-vect-slp.c (optimize_load_redistribution_1): Abort on NULL nodes.
30720 2021-02-25 Richard Biener <rguenther@suse.de>
30722 PR tree-optimization/99253
30723 * tree-vect-loop.c (check_reduction_path): First compute
30724 code, then verify out-of-loop uses.
30726 2021-02-25 Jakub Jelinek <jakub@redhat.com>
30729 * match.pd ((T)(A) + CST -> (T)(A + CST)): Add :s to convert.
30731 2021-02-25 Jakub Jelinek <jakub@redhat.com>
30733 PR tree-optimization/80635
30734 * tree-vrp.c (vrp_simplify_cond_using_ranges): Also handle
30735 VIEW_CONVERT_EXPR if modes are the same, innerop is integral and
30736 has mode precision.
30738 2021-02-25 Richard Biener <rguenther@suse.de>
30740 * tree-vect-slp.c (optimize_load_redistribution_1): Delay
30741 load_map population.
30742 (vect_match_slp_patterns_2): Revert part of last change.
30743 (vect_analyze_slp): Do not interleave optimize_load_redistribution
30744 with pattern detection but do it afterwards. Dump the
30745 whole SLP graph after pattern recognition and load
30746 redistribution optimization finished.
30748 2021-02-24 Jakub Jelinek <jakub@redhat.com>
30751 * omp-low.c (struct omp_context): Add teams_nested_p and
30752 nonteams_nested_p members.
30753 (scan_omp_target): Diagnose teams nested inside of target with other
30754 directives strictly nested inside of the same target.
30755 (check_omp_nesting_restrictions): Set ctx->teams_nested_p or
30756 ctx->nonteams_nested_p as needed.
30758 2021-02-24 Vladimir N. Makarov <vmakarov@redhat.com>
30760 PR inline-asm/99123
30761 * lra-constraints.c (uses_hard_regs_p): Don't use decompose_mem_address.
30763 2021-02-24 Hans-Peter Nilsson <hp@axis.com>
30765 * config/cris/cris.c (cris_expand_prologue): Set
30766 current_function_static_stack_size, if flag_stack_usage_info.
30768 2021-02-24 Pat Haugen <pthaugen@linux.ibm.com>
30770 * config/rs6000/rs6000.c (next_insn_prefixed_p): Rename.
30771 (rs6000_final_prescan_insn): Adjust.
30772 (rs6000_asm_output_opcode): Likewise.
30774 2021-02-24 Martin Sebor <msebor@redhat.com>
30776 PR middle-end/97172
30777 * attribs.c (attr_access::free_lang_data): Clear attribute arg spec
30778 from function arguments.
30780 2021-02-24 Tamar Christina <tamar.christina@arm.com>
30782 PR tree-optimization/99220
30783 * tree-vect-slp.c (optimize_load_redistribution_1): Remove
30784 node from cache when it's about to be deleted.
30786 2021-02-24 Jakub Jelinek <jakub@redhat.com>
30788 PR tree-optimization/99225
30789 * fold-const.c (fold_binary_loc) <case NE_EXPR>: In (x & (1 << y)) != 0
30790 to ((x >> y) & 1) != 0 simplifications use build_one_cst instead of
30791 build_int_cst (..., 1). Formatting fixes.
30793 2021-02-24 Tamar Christina <tamar.christina@arm.com>
30795 PR tree-optimization/99149
30796 * tree-vect-slp-patterns.c (vect_detect_pair_op): Don't recreate the
30798 (vect_slp_reset_pattern): Remove.
30799 (complex_fma_pattern::matches): Remove call to vect_slp_reset_pattern.
30800 (complex_mul_pattern::build, complex_fma_pattern::build,
30801 complex_fms_pattern::build): Fix ref counts.
30802 * tree-vect-slp.c (vect_free_slp_tree): Undo SLP only pattern relevancy
30803 when node is being deleted.
30804 (vect_match_slp_patterns_2): Correct result of cache hit on patterns.
30805 (vect_schedule_slp): Invalidate SLP_TREE_REPRESENTATIVE of removed
30807 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize value.
30809 2021-02-24 Matthias Klose <doko@ubuntu.com>
30812 2020-12-07 Matthias Klose <doko@ubuntu.com>
30814 * genextract.c (print_header): Undefine ENABLE_RTL_CHECKING
30815 and ENABLE_RTL_FLAG_CHECKING.
30817 2021-02-24 Richard Biener <rguenther@suse.de>
30820 * builtins.c (fold_builtin_next_arg): Avoid NULL arg.
30822 2021-02-23 Peter Bergner <bergner@linux.ibm.com>
30824 * config/rs6000/mma.md (mma_assemble_pair): Rename from this...
30825 (vsx_assemble_pair): ...to this.
30826 (*mma_assemble_pair): Rename from this...
30827 (*vsx_assemble_pair): ...to this.
30828 (mma_disassemble_pair): Rename from this...
30829 (vsx_disassemble_pair): ...to this.
30830 (*mma_disassemble_pair): Rename from this...
30831 (*vsx_disassemble_pair): ...to this.
30832 * config/rs6000/rs6000-builtin.def (BU_MMA_V2, BU_MMA_V3,
30833 BU_COMPAT): New macros.
30834 (mma_assemble_pair): Rename from this...
30835 (vsx_assemble_pair): ...to this.
30836 (mma_disassemble_pair): Rename from this...
30837 (vsx_disassemble_pair): ...to this.
30838 (mma_assemble_pair): New compatibility built-in.
30839 (mma_disassemble_pair): Likewise.
30840 * config/rs6000/rs6000-call.c (struct builtin_compatibility): New.
30841 (RS6000_BUILTIN_COMPAT): Define.
30842 (bdesc_compat): New.
30843 (mma_expand_builtin): Use VSX_BUILTIN_DISASSEMBLE_PAIR_INTERNAL.
30844 (rs6000_gimple_fold_mma_builtin): Use MMA_BUILTIN_DISASSEMBLE_PAIR
30845 and VSX_BUILTIN_ASSEMBLE_PAIR.
30846 (rs6000_init_builtins): Register compatibility built-ins.
30847 (mma_init_builtins): Use VSX_BUILTIN_ASSEMBLE_PAIR,
30848 VSX_BUILTIN_ASSEMBLE_PAIR_INTERNAL, VSX_BUILTIN_DISASSEMBLE_PAIR and
30849 VSX_BUILTIN_DISASSEMBLE_PAIR_INTERNAL.
30850 * doc/extend.texi (__builtin_mma_assemble_pair): Rename from this...
30851 (__builtin_vsx_assemble_pair): ...to this.
30852 (__builtin_mma_disassemble_pair): Rename from this...
30853 (__builtin_vsx_disassemble_pair): ...to this.
30855 2021-02-23 Martin Liska <mliska@suse.cz>
30858 * ipa-icf.c (sem_variable::merge): Do not merge 2 variables
30859 with different alignment. That leads to an invalid red zone
30860 size allocated in runtime.
30862 2021-02-23 Jakub Jelinek <jakub@redhat.com>
30864 PR tree-optimization/99204
30865 * fold-const.c (fold_read_from_constant_string): Check that
30866 tree_fits_uhwi_p (index) rather than just that index is INTEGER_CST.
30868 2021-02-23 Segher Boessenkool <segher@kernel.crashing.org>
30869 Kewen Lin <linkw@gcc.gnu.org>
30871 * config/rs6000/rs6000.md (*rotl<mode>3_insert_3): Renamed to...
30872 (rotl<mode>3_insert_3): ...this.
30873 (plus_ior_xor): New code_iterator.
30874 (define_split for GPR rl*imi): New splitter.
30875 * config/rs6000/vsx.md (vsx_init_v4si): Use gen_rotldi3_insert_3
30876 for integer merging.
30878 2021-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30880 * config/aarch64/aarch64-tuning-flags.def (cse_sve_vl_constants):
30882 * config/aarch64/aarch64.md (add<mode>3): Force CONST_POLY_INT immediates
30883 into a register when the above is enabled.
30884 * config/aarch64/aarch64.c (neoversev1_tunings):
30885 AARCH64_EXTRA_TUNE_CSE_SVE_VL_CONSTANTS.
30886 (aarch64_rtx_costs): Use AARCH64_EXTRA_TUNE_CSE_SVE_VL_CONSTANTS.
30888 2021-02-22 Hans-Peter Nilsson <hp@axis.com>
30890 * config/cris/cris.c (cris_print_operand) <'T'>: Change
30891 valid operand from is now an addi mult-value to shift-value.
30892 * config/cris/cris.md (*addi): Change expression of scaled
30893 operand from mult to ashift.
30894 * config/cris/cris.md (*addi_reload): New insn_and_split.
30896 2021-02-22 John David Anglin <danglin@gcc.gnu.org>
30899 * config/pa/pa.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define as
30900 hook_bool_const_tree_hwi_hwi_const_tree_true.
30901 (pa_asm_output_mi_thunk): Add support for nonzero vcall_offset.
30903 2021-02-22 Andre Vieira <andre.simoesdiasvieira@arm.com>
30905 PR rtl-optimization/98791
30906 * ira-conflicts.c (process_regs_for_copy): Don't create allocno copies
30907 for unordered modes.
30909 2021-02-22 Martin Liska <mliska@suse.cz>
30911 * tree-inline.c (inline_forbidden_p): Set
30912 inline_forbidden_reason.
30914 2021-02-22 Richard Biener <rguenther@suse.de>
30916 * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Dump
30919 2021-02-22 Richard Biener <rguenther@suse.de>
30921 PR tree-optimization/99165
30922 * gimple-ssa-store-merging.c (pass_store_merging::process_store):
30923 Accumulate changed to ret.
30925 2021-02-21 Uros Bizjak <ubizjak@gmail.com>
30928 2020-12-09 Uroš Bizjak <ubizjak@gmail.com>
30930 * config/i386/i386.h (REG_ALLOC_ORDER): Remove
30932 2021-02-20 Ilya Leoshkevich <iii@linux.ibm.com>
30935 * config/s390/vector.md (trunctf<DFP_ALL:mode>2_vr): New
30937 (trunctf<DFP_ALL:mode>2): Likewise.
30938 (trunctdtf2_vr): Likewise.
30939 (trunctdtf2): Likewise.
30940 (extend<DFP_ALL:mode>tf2_vr): Likewise.
30941 (extend<DFP_ALL:mode>tf2): Likewise.
30942 (extendtftd2_vr): Likewise.
30943 (extendtftd2): Likewise.
30945 2021-02-20 Ilya Leoshkevich <iii@linux.ibm.com>
30947 * config/s390/vector.md (*fprx2_to_tf): Rename to fprx2_to_tf,
30948 add memory alternative.
30949 (tf_to_fprx2): New pattern.
30951 2021-02-19 Martin Sebor <msebor@redhat.com>
30954 * attribs.c (init_attr_rdwr_indices): Guard vblist use.
30955 (attr_access::free_lang_data): Remove a spurious test.
30957 2021-02-19 Nathan Sidwell <nathan@acm.org>
30959 * doc/invoke.texi (flang-info-module-read): Document.
30961 2021-02-19 Martin Liska <mliska@suse.cz>
30963 PR translation/99167
30964 * params.opt: Fix typo.
30966 2021-02-19 Richard Biener <rguenther@suse.de>
30968 PR middle-end/99122
30969 * tree-inline.c (inline_forbidden_p): Do not inline functions
30970 with VLA arguments or return value.
30972 2021-02-19 Jakub Jelinek <jakub@redhat.com>
30975 * config/arm/arm.md (*stack_protect_combined_set_insn,
30976 *stack_protect_combined_test_insn): If force_const_mem result
30977 is not valid general operand, force its address into the destination
30980 2021-02-19 Jakub Jelinek <jakub@redhat.com>
30983 * tree-cfg.c (gimple_merge_blocks): If bb a starts with eh landing
30984 pad or non-local label, put FORCED_LABELs from bb b after that label
30985 rather than before it.
30987 2021-02-19 Andre Vieira <andre.simoesdiasvieira@arm.com>
30990 * config/aarch64/aarch64-sve.md (<ASHIFT:optab><mode>3): Use
30991 expand_vector_broadcast' to emit the vec_duplicate operand.
30993 2021-02-18 Vladimir N. Makarov <vmakarov@redhat.com>
30995 PR rtl-optimization/96264
30996 * lra-remat.c (reg_overlap_for_remat_p): Check also output insn
30999 2021-02-18 H.J. Lu <hjl.tools@gmail.com>
31002 * varasm.c (get_section): Replace SUPPORTS_SHF_GNU_RETAIN with
31003 looking up the retain attribute.
31004 (resolve_unique_section): Likewise.
31005 (get_variable_section): Likewise.
31006 (switch_to_section): Likewise. Warn when a symbol without the
31007 retain attribute and a symbol with the retain attribute are
31008 placed in the section with the same name, instead of the used
31010 * doc/extend.texi: Document the "retain" attribute.
31012 2021-02-18 Nathan Sidwell <nathan@acm.org>
31015 * doc/invoke.texi (flang-info-include-translate): Document header
31018 2021-02-18 Richard Biener <rguenther@suse.de>
31020 PR middle-end/99122
31021 * ipa-fnsummary.c (analyze_function_body): Set
31022 CIF_FUNCTION_NOT_INLINABLE for VLA parameter calls.
31023 * tree-inline.c (insert_init_debug_bind): Pass NULL for
31024 error_mark_node values.
31025 (force_value_to_type): Do not build V_C_Es for WITH_SIZE_EXPR
31027 (setup_one_parameter): Delay force_value_to_type until when
31030 2021-02-18 Hans-Peter Nilsson <hp@axis.com>
31032 PR tree-optimization/99142
31033 * match.pd (clz cmp 0): Gate replacement on single_use of clz result.
31035 2021-02-18 Jakub Jelinek <jakub@redhat.com>
31037 * wide-int-bitmask.h (wide_int_bitmask::wide_int_bitmask (),
31038 wide_int_bitmask::wide_int_bitmask (uint64_t),
31039 wide_int_bitmask::wide_int_bitmask (uint64_t, uint64_t),
31040 wide_int_bitmask::operator ~ () const,
31041 wide_int_bitmask::operator | (wide_int_bitmask) const,
31042 wide_int_bitmask::operator & (wide_int_bitmask) const): Use constexpr
31044 * config/i386/i386.h (PTA_3DNOW, PTA_3DNOW_A, PTA_64BIT, PTA_ABM,
31045 PTA_AES, PTA_AVX, PTA_BMI, PTA_CX16, PTA_F16C, PTA_FMA, PTA_FMA4,
31046 PTA_FSGSBASE, PTA_LWP, PTA_LZCNT, PTA_MMX, PTA_MOVBE, PTA_NO_SAHF,
31047 PTA_PCLMUL, PTA_POPCNT, PTA_PREFETCH_SSE, PTA_RDRND, PTA_SSE, PTA_SSE2,
31048 PTA_SSE3, PTA_SSE4_1, PTA_SSE4_2, PTA_SSE4A, PTA_SSSE3, PTA_TBM,
31049 PTA_XOP, PTA_AVX2, PTA_BMI2, PTA_RTM, PTA_HLE, PTA_PRFCHW, PTA_RDSEED,
31050 PTA_ADX, PTA_FXSR, PTA_XSAVE, PTA_XSAVEOPT, PTA_AVX512F, PTA_AVX512ER,
31051 PTA_AVX512PF, PTA_AVX512CD, PTA_NO_TUNE, PTA_SHA, PTA_PREFETCHWT1,
31052 PTA_CLFLUSHOPT, PTA_XSAVEC, PTA_XSAVES, PTA_AVX512DQ, PTA_AVX512BW,
31053 PTA_AVX512VL, PTA_AVX512IFMA, PTA_AVX512VBMI, PTA_CLWB, PTA_MWAITX,
31054 PTA_CLZERO, PTA_NO_80387, PTA_PKU, PTA_AVX5124VNNIW, PTA_AVX5124FMAPS,
31055 PTA_AVX512VPOPCNTDQ, PTA_SGX, PTA_AVX512VNNI, PTA_GFNI, PTA_VAES,
31056 PTA_AVX512VBMI2, PTA_VPCLMULQDQ, PTA_AVX512BITALG, PTA_RDPID,
31057 PTA_PCONFIG, PTA_WBNOINVD, PTA_AVX512VP2INTERSECT, PTA_PTWRITE,
31058 PTA_AVX512BF16, PTA_WAITPKG, PTA_MOVDIRI, PTA_MOVDIR64B, PTA_ENQCMD,
31059 PTA_CLDEMOTE, PTA_SERIALIZE, PTA_TSXLDTRK, PTA_AMX_TILE, PTA_AMX_INT8,
31060 PTA_AMX_BF16, PTA_UINTR, PTA_HRESET, PTA_KL, PTA_WIDEKL, PTA_AVXVNNI,
31061 PTA_X86_64_BASELINE, PTA_X86_64_V2, PTA_X86_64_V3, PTA_X86_64_V4,
31062 PTA_CORE2, PTA_NEHALEM, PTA_WESTMERE, PTA_SANDYBRIDGE, PTA_IVYBRIDGE,
31063 PTA_HASWELL, PTA_BROADWELL, PTA_SKYLAKE, PTA_SKYLAKE_AVX512,
31064 PTA_CASCADELAKE, PTA_COOPERLAKE, PTA_CANNONLAKE, PTA_ICELAKE_CLIENT,
31065 PTA_ICELAKE_SERVER, PTA_TIGERLAKE, PTA_SAPPHIRERAPIDS, PTA_ALDERLAKE,
31066 PTA_KNL, PTA_BONNELL, PTA_SILVERMONT, PTA_GOLDMONT, PTA_GOLDMONT_PLUS,
31067 PTA_TREMONT, PTA_KNM): Use constexpr instead of const.
31069 2021-02-18 Jakub Jelinek <jakub@redhat.com>
31071 PR middle-end/99109
31072 * gimple-array-bounds.cc (build_zero_elt_array_type): Rename to ...
31073 (build_printable_array_type): ... this. Add nelts argument. For
31074 overaligned eltype, use TYPE_MAIN_VARIANT (eltype) instead. If
31075 nelts, call build_array_type_nelts.
31076 (array_bounds_checker::check_mem_ref): Use build_printable_array_type
31077 instead of build_zero_elt_array_type and build_array_type_nelts.
31079 2021-02-18 Jakub Jelinek <jakub@redhat.com>
31082 * config/i386/i386.c (distance_non_agu_define): Don't call
31083 extract_insn_cached here.
31084 (ix86_lea_outperforms): Save and restore recog_data around call
31085 to distance_non_agu_define and distance_agu_use.
31086 (ix86_ok_to_clobber_flags): Remove.
31087 (ix86_avoid_lea_for_add): Don't call ix86_ok_to_clobber_flags.
31088 (ix86_avoid_lea_for_addr): Likewise. Adjust function comment.
31089 * config/i386/i386.md (*lea<mode>): Change from define_insn_and_split
31090 into define_insn. Move the splitting to define_peephole2 and
31091 check there using peep2_regno_dead_p if FLAGS_REG is dead.
31093 2021-02-17 Julian Brown <julian@codesourcery.com>
31095 * gimplify.c (gimplify_scan_omp_clauses): Handle ATTACH_DETACH
31098 2021-02-17 Xi Ruoyao <xry111@mengyan1223.wang>
31101 * config/mips/mips.c (mips_symbol_insns): Do not use
31102 MSA_SUPPORTED_MODE_P if mode is MAX_MACHINE_MODE.
31104 2021-02-16 Vladimir N. Makarov <vmakarov@redhat.com>
31106 PR inline-asm/98096
31107 * stmt.c (resolve_operand_name_1): Take inout operands into account
31108 for access to labels by names.
31109 * doc/extend.texi: Describe counting operands for accessing labels.
31111 2021-02-16 Richard Biener <rguenther@suse.de>
31113 PR tree-optimization/38474
31114 * tree-ssa-structalias.c (variable_info::address_taken): New.
31115 (new_var_info): Initialize address_taken.
31116 (process_constraint): Set address_taken.
31117 (solve_constraints): Use the new address_taken flag rather
31118 than is_reg_var for sorting variables.
31119 (dump_constraint): Dump the variable number if the name
31122 2021-02-16 Jakub Jelinek <jakub@redhat.com>
31125 * tree-vect-stmts.c (vectorizable_simd_clone_call): For num_calls != 1
31126 multiply by 4096 and for inbranch by 8192.
31127 * config/i386/i386.c (ix86_simd_clone_usable): For TARGET_AVX512F,
31128 return 3, 2 or 1 for mangle letters 'b', 'c' or 'd'.
31130 2021-02-15 Maya Rashish <coypu@sdf.org>
31132 * config/aarch64/aarch64.c (aarch64_init_builtins):
31133 Call SUBTARGET_INIT_BUILTINS.
31135 2021-02-15 Peter Bergner <bergner@linux.ibm.com>
31137 PR rtl-optimization/98872
31138 * init-regs.c (initialize_uninitialized_regs): Skip initialization
31139 if CONST0_RTX is NULL.
31141 2021-02-15 Richard Sandiford <richard.sandiford@arm.com>
31143 PR rtl-optimization/98863
31144 * rtl-ssa/functions.h (function_info::bb_live_out_info): Delete.
31145 (function_info::build_info): Turn into a declaration, moving the
31146 definition to internals.h.
31147 (function_info::bb_walker): Declare.
31148 (function_info::create_reg_use): Likewise.
31149 (function_info::calculate_potential_phi_regs): Take a build_info
31151 (function_info::place_phis, function_info::create_ebbs): Declare.
31152 (function_info::calculate_ebb_live_in_for_debug): Likewise.
31153 (function_info::populate_backedge_phis): Delete.
31154 (function_info::start_block, function_info::end_block): Declare.
31155 (function_info::populate_phi_inputs): Delete.
31156 (function_info::m_potential_phi_regs): Move information to build_info.
31157 * rtl-ssa/internals.h: New file.
31158 (function_info::bb_phi_info): New class.
31159 (function_info::build_info): Moved from functions.h.
31160 Add a constructor and destructor.
31161 (function_info::build_info::ebb_use): Delete.
31162 (function_info::build_info::ebb_def): Likewise.
31163 (function_info::build_info::bb_live_out): Likewise.
31164 (function_info::build_info::tmp_ebb_live_in_for_debug): New variable.
31165 (function_info::build_info::potential_phi_regs): Likewise.
31166 (function_info::build_info::potential_phi_regs_for_debug): Likewise.
31167 (function_info::build_info::ebb_def_regs): Likewise.
31168 (function_info::build_info::bb_phis): Likewise.
31169 (function_info::build_info::bb_mem_live_out): Likewise.
31170 (function_info::build_info::bb_to_rpo): Likewise.
31171 (function_info::build_info::def_stack): Likewise.
31172 (function_info::build_info::old_def_stack_limit): Likewise.
31173 * rtl-ssa/internals.inl (function_info::build_info::record_reg_def):
31174 Remove the regno argument. Push the previous definition onto the
31175 definition stack where necessary.
31176 * rtl-ssa/accesses.cc: Include internals.h.
31177 * rtl-ssa/changes.cc: Likewise.
31178 * rtl-ssa/blocks.cc: Likewise.
31179 (function_info::build_info::build_info): Define.
31180 (function_info::build_info::~build_info): Likewise.
31181 (function_info::bb_walker): New class.
31182 (function_info::bb_walker::bb_walker): Define.
31183 (function_info::add_live_out_use): Convert a logarithmic-complexity
31184 test into a linear one. Allow the same definition to be passed
31186 (function_info::calculate_potential_phi_regs): Moved from
31187 functions.cc. Take a build_info parameter and store the
31188 information there instead.
31189 (function_info::place_phis): New function.
31190 (function_info::add_entry_block_defs): Update call to record_reg_def.
31191 (function_info::calculate_ebb_live_in_for_debug): New function.
31192 (function_info::add_phi_nodes): Use bb_phis to decide which
31193 registers need phi nodes and initialize ebb_def_regs accordingly.
31194 Do not add degenerate phis here.
31195 (function_info::add_artificial_accesses): Use create_reg_use.
31196 Assert that all definitions are listed in the DF LR sets.
31197 Update call to record_reg_def.
31198 (function_info::record_block_live_out): Record live-out register
31199 values in the phis of successor blocks. Use the live-out set
31200 when processing the last block in an EBB, instead of always
31201 using the live-in sets of successor blocks. AND the live sets
31202 with the set of registers that have been defined in the EBB,
31203 rather than with all potential phi registers. Cope correctly
31204 with branches back to the start of the current EBB.
31205 (function_info::start_block): New function.
31206 (function_info::end_block): Likewise.
31207 (function_info::populate_phi_inputs): Likewise.
31208 (function_info::create_ebbs): Likewise.
31209 (function_info::process_all_blocks): Rewrite into a multi-phase
31211 * rtl-ssa/functions.cc: Include internals.h.
31212 (function_info::calculate_potential_phi_regs): Move to blocks.cc.
31213 (function_info::init_function_data): Remove caller.
31214 * rtl-ssa/insns.cc: Include internals.h
31215 (function_info::create_reg_use): New function. Lazily any
31216 degenerate phis needed by the linear RPO view.
31217 (function_info::record_use): Use create_reg_use. When processing
31218 debug uses, use potential_phi_regs and test it before checking
31219 whether the register is live on entry to the current EBB. Lazily
31220 calculate ebb_live_in_for_debug.
31221 (function_info::record_call_clobbers): Update call to record_reg_def.
31222 (function_info::record_def): Likewise.
31224 2021-02-15 Martin Liska <mliska@suse.cz>
31226 * toplev.c (init_asm_output): Free output of
31227 gen_command_line_string function.
31228 (process_options): Likewise.
31230 2021-02-15 Martin Liska <mliska@suse.cz>
31232 * params.opt: Add 2 missing Param keywords.
31234 2021-02-15 Eric Botcazou <ebotcazou@adacore.com>
31236 * df-core.c (df_worklist_dataflow_doublequeue): Use proper cast.
31238 2021-02-15 Jakub Jelinek <jakub@redhat.com>
31240 PR tree-optimization/99079
31241 * match.pd (A % (pow2pcst << N) -> A & ((pow2pcst << N) - 1)): Remove
31242 useless tree_nop_conversion_p (type, TREE_TYPE (@3)) check. Instead
31243 require both type and TREE_TYPE (@1) to be integral types and either
31244 type having smaller or equal precision, or TREE_TYPE (@1) being
31245 unsigned type, or type being signed type. If TREE_TYPE (@1)
31246 doesn't have wrapping overflow, perform the subtraction of one in
31249 2021-02-14 Jan Hubicka <hubicka@ucw.cz>
31250 Richard Biener <rguether@suse.de>
31253 * ipa-reference.c (ipa_init): Only conditinally initialize
31254 reference_vars_to_consider.
31255 (propagate): Conditionally deninitialize reference_vars_to_consider.
31256 (ipa_reference_write_optimization_summary): Sanity check that
31257 reference_vars_to_consider is not allocated.
31259 2021-02-13 Levy Hsu <admin@levyhsu.com>
31262 * config/riscv/riscv-shorten-memrefs.c (pass_shorten_memrefs): Add
31263 extend parameter to get_si_mem_base_reg declaration.
31264 (get_si_mem_base_reg): Add extend parameter. Set it.
31265 (analyze): Pass extend arg to get_si_mem_base_reg.
31266 (transform): Likewise. Use it when rewriting mems.
31267 * config/riscv/riscv.c (riscv_legitimize_move): Check for subword
31268 loads and emit sign/zero extending load followed by subreg move.
31270 2021-02-13 Jim Wilson <jimw@sifive.com>
31273 * config/riscv/riscv.c (riscv_compressed_lw_address_p): Drop early
31274 exit when !reload_completed. Only perform check for compressed reg
31275 if reload_completed.
31276 (riscv_rtx_costs): In MEM case, when optimizing for size and
31277 shorten memrefs, if not compressible, then increase cost.
31279 2021-02-13 Jakub Jelinek <jakub@redhat.com>
31281 PR rtl-optimization/98439
31282 * recog.c (pass_split_before_regstack::gate): Enable even when
31283 pass_split_before_sched2 is enabled if -fselective-scheduling2 is
31286 2021-02-13 Jakub Jelinek <jakub@redhat.com>
31289 * config/i386/mmx.md (*mmx_pshufd_1): Add a combine splitter for
31290 swap of V2SImode elements in memory into DImode memory rotate by 32.
31292 2021-02-12 Martin Sebor <msebor@redhat.com>
31294 * tree-pretty-print.c (print_generic_expr_to_str): Update comment.
31296 2021-02-12 Richard Sandiford <richard.sandiford@arm.com>
31298 * rtl-ssa/accesses.cc (function_info::make_use_available): Use
31299 m_temp_obstack rather than m_obstack to allocate the temporary use.
31301 2021-02-12 Richard Sandiford <richard.sandiford@arm.com>
31303 * df-problems.c (df_lr_bb_local_compute): Treat partial definitions
31304 as read-modify operations.
31306 2021-02-12 Richard Biener <rguenther@suse.de>
31308 PR middle-end/38474
31309 * ipa-fnsummary.c (unmodified_parm_1): Only walk when
31310 fbi->aa_walk_budget is bigger than zero. Update
31311 fbi->aa_walk_budget.
31312 (param_change_prob): Likewise.
31313 * ipa-prop.c (detect_type_change_from_memory_writes):
31314 Properly account walk_aliased_vdefs.
31315 (parm_preserved_before_stmt_p): Canonicalize updates.
31316 (parm_ref_data_preserved_p): Likewise.
31317 (parm_ref_data_pass_through_p): Likewise.
31318 (determine_known_aggregate_parts): Account own alias queries.
31320 2021-02-12 Martin Liska <mliska@suse.cz>
31322 * opts-common.c (decode_cmdline_option): Release werror_arg.
31323 * opts.c (gen_producer_string): Release output of
31324 gen_command_line_string.
31326 2021-02-12 Richard Biener <rguenther@suse.de>
31328 PR tree-optimization/38474
31329 * params.opt (-param=max-store-chains-to-track=): New param.
31330 (-param=max-stores-to-track=): Likewise.
31331 * doc/invoke.texi (max-store-chains-to-track): Document.
31332 (max-stores-to-track): Likewise.
31333 * gimple-ssa-store-merging.c (pass_store_merging::m_n_chains):
31335 (pass_store_merging::m_n_stores): Likewise.
31336 (pass_store_merging::terminate_and_process_chain): Update
31337 m_n_stores and m_n_chains.
31338 (pass_store_merging::process_store): Likewise. Terminate
31339 oldest chains if the number of stores or chains get too large.
31340 (imm_store_chain_info::terminate_and_process_chain): Dump
31343 2021-02-11 Eric Botcazou <ebotcazou@adacore.com>
31345 * config/i386/winnt.c (i386_pe_seh_unwind_emit): When switching to
31346 the cold section, emit a nop before the directive if the previous
31347 active instruction can throw.
31349 2021-02-11 Peter Bergner <bergner@linux.ibm.com>
31352 * config/rs6000/predicates.md (mma_assemble_input_operand): Restrict
31353 memory addresses that are legal for quad word accesses.
31355 2021-02-11 Andrea Corallo <andrea.corallo@arm.com>
31358 * config/arm/thumb2.md (*doloop_end_internal): Generate
31359 alternative sequence to handle long range branches.
31361 2021-02-11 Joel Hutton <joel.hutton@arm.com>
31363 PR tree-optimization/98772
31364 * optabs-tree.c (supportable_half_widening_operation): New function
31365 to check for supportable V8QI->V8HI widening patterns.
31366 * optabs-tree.h (supportable_half_widening_operation): New function.
31367 * tree-vect-stmts.c (vect_create_half_widening_stmts): New function
31368 to create promotion stmts for V8QI->V8HI widening patterns.
31369 (vectorizable_conversion): Add case for V8QI->V8HI.
31371 2021-02-11 Richard Biener <rguenther@suse.de>
31373 * sparseset.h (SPARSESET_ELT_BITS): Remove.
31374 (SPARSESET_ELT_TYPE): Use unsigned int.
31375 * fwprop.c: Do not include sparseset.h.
31377 2021-02-10 Jakub Jelinek <jakub@redhat.com>
31380 * varasm.c (declare_weak): For -fsyntax-only, allow even
31381 TREE_ASM_WRITTEN function decls.
31383 2021-02-10 Jakub Jelinek <jakub@redhat.com>
31386 * config/i386/sse.md (fix<fixunssuffix>_truncv2sfv2di2,
31387 <insn>v8qiv8hi2, <insn>v8qiv8si2, <insn>v4qiv4si2, <insn>v4hiv4si2,
31388 <insn>v8qiv8di2, <insn>v4qiv4di2, <insn>v2qiv2di2, <insn>v4hiv4di2,
31389 <insn>v2hiv2di2, <insn>v2siv2di2): Force operands[1] into REG before
31390 calling simplify_gen_subreg on it.
31392 2021-02-10 Martin Liska <mliska@suse.cz>
31394 * config/nvptx/nvptx.c (nvptx_option_override): Use
31395 flag_patchable_function_entry instead of the removed
31396 function_entry_patch_area_size.
31398 2021-02-10 Martin Liska <mliska@suse.cz>
31400 PR tree-optimization/99002
31401 PR tree-optimization/99026
31402 * gimple-if-to-switch.cc (if_chain::is_beneficial): Fix memory
31403 leak when adjacent cases are merged.
31404 * tree-switch-conversion.c (switch_decision_tree::analyze_switch_statement): Use
31406 (make_pass_lower_switch): Remove trailing whitespace.
31407 * tree-switch-conversion.h (release_clusters): New.
31409 2021-02-10 Richard Biener <rguenther@suse.de>
31411 PR rtl-optimization/99054
31412 * cfgrtl.c (rtl-optimization/99054): Return an auto_vec.
31413 (fixup_partitions): Adjust.
31414 (rtl_verify_edges): Likewise.
31416 2021-02-10 Jakub Jelinek <jakub@redhat.com>
31418 PR middle-end/99007
31419 * gimplify.c (gimplify_scan_omp_clauses): For MEM_REF on reductions,
31420 temporarily disable gimplify_ctxp->into_ssa around gimplify_expr
31423 2021-02-10 Richard Biener <rguenther@suse.de>
31426 * ipa-pure-const.c (propagate_malloc): Use an auto_vec<>
31429 2021-02-10 Richard Biener <rguenther@suse.de>
31431 PR tree-optimization/99024
31432 * tree-vect-loop.c (_loop_vec_info::~_loop_vec_info): Only
31433 clear loop->aux if it is associated with the destroyed loop_vinfo.
31435 2021-02-10 Martin Liska <mliska@suse.cz>
31437 PR tree-optimization/99002
31438 * gimple-if-to-switch.cc (find_conditions): Fix memory leak
31441 2021-02-10 Martin Liska <mliska@suse.cz>
31444 * ipa-icf.c (sem_item::add_reference): Fix memory leak when
31445 a reference exists.
31447 2021-02-10 Jakub Jelinek <jakub@redhat.com>
31450 * dwarf2out.c (prune_unused_types_walk): Mark DW_TAG_variable DIEs
31451 at class scope for DWARF5+.
31453 2021-02-09 Eric Botcazou <ebotcazou@adacore.com>
31455 PR rtl-optimization/96015
31456 * reorg.c (skip_consecutive_labels): Minor comment tweaks.
31457 (relax_delay_slots): When deleting a jump to the next active
31458 instruction over a barrier, first delete the barrier if the
31459 jump is the only way to reach the target label.
31461 2021-02-09 Andre Vieira <andre.simoesdiasvieira@arm.com>
31463 * config/aarch64/aarch64-cost-tables.h: Add entries for vect.mul.
31464 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Use vect.mul for
31465 vector multiplies and vect.alu for SSRA.
31466 * config/arm/aarch-common-protos.h (struct vector_cost_table): Define
31467 vect.mul cost field.
31468 * config/arm/aarch-cost-tables.h: Add entries for vect.mul.
31469 * config/arm/arm.c: Likewise.
31471 2021-02-09 Richard Biener <rguenther@suse.de>
31473 PR tree-optimization/98863
31474 * tree-ssa-sccvn.h (vn_avail::next_undo): Add.
31475 * tree-ssa-sccvn.c (last_pushed_avail): New global.
31476 (rpo_elim::eliminate_push_avail): Chain pushed avails.
31477 (unwind_state::avail_top): Add.
31478 (do_unwind): Rewrite unwinding of avail entries.
31479 (do_rpo_vn): Initialize last_pushed_avail and
31480 avail_top of the undo state.
31482 2021-02-09 Jakub Jelinek <jakub@redhat.com>
31484 PR middle-end/99004
31485 * calls.c (maybe_warn_rdwr_sizes): Change s0 and s1 type from
31486 const char * to char * and free those pointers after use.
31488 2021-02-09 Richard Biener <rguenther@suse.de>
31490 PR tree-optimization/99017
31491 * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Allow
31492 zero vector cost entries.
31494 2021-02-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
31496 PR middle-end/98974
31497 * tree-vect-stmts.c (vectorizable_condition): Remove shadow vec_num
31498 parameter in vectorizable_condition.
31500 2021-02-08 Richard Biener <rguenther@suse.de>
31503 * tree.c (walk_tree_1): Walk VECTOR_CST elements.
31505 2021-02-08 Martin Liska <mliska@suse.cz>
31508 * cfgexpand.c (pass_expand::execute): Parse per-function option
31509 flag_patchable_function_entry and use it.
31510 * common.opt: Remove function_entry_patch_area_size and
31511 function_entry_patch_area_start global variables.
31512 * opts.c (parse_and_check_patch_area): New function.
31513 (common_handle_option): Use it.
31514 * opts.h (parse_and_check_patch_area): New function.
31515 * toplev.c (process_options): Parse and use
31516 function_entry_patch_area_size.
31518 2021-02-08 Martin Sebor <msebor@redhat.com>
31520 * doc/extend.texi (attribute malloc): Correct typos.
31522 2021-02-05 Nathan Sidwell <nathan@acm.org>
31525 * gcc.c (driver::maybe_run_linker): Check for input file
31526 accessibility if not linking.
31528 2021-02-05 Richard Biener <rguenther@suse.de>
31530 PR tree-optimization/98855
31531 * tree-vectorizer.h (add_stmt_cost): New overload.
31532 * tree-vect-slp.c (li_cost_vec_cmp): New.
31533 (vect_bb_slp_scalar_cost): Cost individual loop regions
31534 separately. Account for the scalar instance root stmt.
31536 2021-02-05 Tom de Vries <tdevries@suse.de>
31539 * tree-switch-conversion.c (jump_table_cluster::emit): Add loc
31541 (bit_test_cluster::emit): Reuse location_t for newly created
31543 (switch_decision_tree::try_switch_expansion): Preserve
31545 * tree-switch-conversion.h: Change function signatures.
31547 2021-02-05 Jakub Jelinek <jakub@redhat.com>
31550 * config/i386/i386-options.c (m_NONE, m_ALL): Define.
31551 * config/i386/x86-tune.def (X86_TUNE_BRANCH_PREDICTION_HINTS,
31552 X86_TUNE_PROMOTE_QI_REGS): Use m_NONE instead of 0U.
31553 (X86_TUNE_QIMODE_MATH): Use m_ALL instead of ~0U.
31555 2021-02-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31557 * config/aarch64/aarch64-simd-builtins.def (get_high): Define builtin.
31558 * config/aarch64/aarch64-simd.md (aarch64_get_high<mode>): Define.
31559 * config/aarch64/arm_neon.h (__GET_HIGH): Delete.
31560 (vget_high_f16): Reimplement using new builtin.
31561 (vget_high_f32): Likewise.
31562 (vget_high_f64): Likewise.
31563 (vget_high_p8): Likewise.
31564 (vget_high_p16): Likewise.
31565 (vget_high_p64): Likewise.
31566 (vget_high_s8): Likewise.
31567 (vget_high_s16): Likewise.
31568 (vget_high_s32): Likewise.
31569 (vget_high_s64): Likewise.
31570 (vget_high_u8): Likewise.
31571 (vget_high_u16): Likewise.
31572 (vget_high_u32): Likewise.
31573 (vget_high_u64): Likewise.
31575 2021-02-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31577 * config/aarch64/aarch64-simd-builtins.def (get_low): Define builtin.
31578 * config/aarch64/aarch64-simd.md (aarch64_get_low<mode>): Define.
31579 * config/aarch64/arm_neon.h (__GET_LOW): Delete.
31580 (vget_low_f16): Reimplement using new builtin.
31581 (vget_low_f32): Likewise.
31582 (vget_low_f64): Likewise.
31583 (vget_low_p8): Likewise.
31584 (vget_low_p16): Likewise.
31585 (vget_low_p64): Likewise.
31586 (vget_low_s8): Likewise.
31587 (vget_low_s16): Likewise.
31588 (vget_low_s32): Likewise.
31589 (vget_low_s64): Likewise.
31590 (vget_low_u8): Likewise.
31591 (vget_low_u16): Likewise.
31592 (vget_low_u32): Likewise.
31593 (vget_low_u64): Likewise.
31595 2021-02-05 Kito Cheng <kito.cheng@sifive.com>
31597 * gcc.c (print_multilib_info): Check all required argument is provided
31600 2021-02-05 liuhongt <hongtao.liu@intel.com>
31603 * config/i386/i386-expand.c (ix86_expand_sse_cmp): Don't
31604 generate integer mask comparison for 128/256-bits vector when
31605 op_true/op_false is NULL_RTX or CONSTM1_RTX/CONST0_RTX. Also
31606 delete redundant !maskcmp condition.
31607 (ix86_expand_int_vec_cmp): Ditto but no redundant deletion
31609 (ix86_expand_sse_movcc): Delete definition of maskcmp, add the
31610 condition directly to if (maskcmp), add extra check for
31611 cmpmode, it should be MODE_INT.
31612 (ix86_expand_fp_vec_cmp): Pass NULL to ix86_expand_sse_cmp's
31613 parameters op_true/op_false.
31614 (ix86_use_mask_cmp_p): New.
31616 2021-02-05 liuhongt <hongtao.liu@intel.com>
31619 * config/i386/x86-tune.def (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL):
31620 Remove m_GENERIC from ~list.
31621 (X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): Ditto.
31623 2021-02-04 David Malcolm <dmalcolm@redhat.com>
31626 * diagnostic-show-locus.c (compatible_locations_p): Require
31627 locations in the same macro map to be either both from the
31628 macro definition, or both from the macro arguments.
31630 2021-02-04 Jonathan Wright <jonathan.wright@arm.com>
31632 * config/aarch64/aarch64-simd-builtins.def: Add
31633 [su]mull_hi_lane[q] builtin generator macros.
31634 * config/aarch64/aarch64-simd.md
31635 (aarch64_<su>mull_hi_lane<mode>_insn): Define.
31636 (aarch64_<su>mull_hi_lane<mode>): Define.
31637 (aarch64_<su>mull_hi_laneq<mode>_insn): Define.
31638 (aarch64_<su>mull_hi_laneq<mode>): Define.
31639 * config/aarch64/arm_neon.h (vmull_high_lane_s16): Use RTL
31640 builtin instead of inline asm.
31641 (vmull_high_lane_s32): Likewise.
31642 (vmull_high_lane_u16): Likewise.
31643 (vmull_high_lane_u32): Likewise.
31644 (vmull_high_laneq_s16): Likewise.
31645 (vmull_high_laneq_s32): Likewise.
31646 (vmull_high_laneq_u16): Likewise.
31647 (vmull_high_laneq_u32): Liekwise.
31649 2021-02-04 Jonathan Wright <jonathan.wright@arm.com>
31651 * config/aarch64/aarch64-simd-builtins.def: Add [su]mull_hi_n
31652 builtin generator macros.
31653 * config/aarch64/aarch64-simd.md
31654 (aarch64_<su>mull_hi_n<mode>_insn): Define.
31655 (aarch64_<su>mull_hi_n<mode>): Define.
31656 * config/aarch64/arm_neon.h (vmull_high_n_s16): Use RTL builtin
31657 instead of inline asm.
31658 (vmull_high_n_s32): Likewise.
31659 (vmull_high_n_u16): Likewise.
31660 (vmull_high_n_u32): Likewise.
31662 2021-02-04 Richard Biener <rguenther@suse.de>
31664 PR tree-optimization/98855
31665 * tree-vect-loop.c (vectorizable_phi): Do not cost
31666 single-argument PHIs.
31667 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Likewise.
31668 * tree-vect-stmts.c (vectorizable_bswap): Also perform
31669 costing for SLP operation.
31671 2021-02-04 Martin Liska <mliska@suse.cz>
31673 * doc/extend.texi: Mention -mprefer-vector-width in target
31676 2021-02-03 Martin Sebor <msebor@redhat.com>
31678 PR tree-optimization/98937
31679 * tree-ssa-strlen.c (strlen_dom_walker::~strlen_dom_walker): Define.
31680 Flush pointer_query cache.
31682 2021-02-03 Aaron Sawdey <acsawdey@linux.ibm.com>
31684 * config/rs6000/genfusion.pl (gen_2logical): Add missing
31685 fixes based on patch review.
31686 * config/rs6000/fusion.md: Regenerate file.
31688 2021-02-03 Aaron Sawdey <acsawdey@linux.ibm.com>
31690 * config/rs6000/t-rs6000: Comment out auto generation of
31693 2021-02-03 Andrew Stubbs <ams@codesourcery.com>
31695 * config/gcn/gcn-opts.h (enum processor_type): Add PROCESSOR_GFX908.
31696 * config/gcn/gcn.c (gcn_omp_device_kind_arch_isa): Add gfx908.
31697 (output_file_start): Add gfx908.
31698 * config/gcn/gcn.opt (gpu_type): Add gfx908.
31699 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add march=gfx908.
31700 (MULTILIB_DIRNAMES): Add gfx908.
31701 * config/gcn/mkoffload.c (EF_AMDGPU_MACH_AMDGCN_GFX908): New define.
31702 (main): Recognize gfx908.
31703 * config/gcn/t-omp-device: Add gfx908.
31705 2021-02-03 Jonathan Wright <jonathan.wright@arm.com>
31707 * config/aarch64/aarch64-simd-builtins.def: Add
31708 [su]mlsl_hi_lane[q] builtin macro generators.
31709 * config/aarch64/aarch64-simd.md
31710 (aarch64_<su>mlsl_hi_lane<mode>_insn): Define.
31711 (aarch64_<su>mlsl_hi_lane<mode>): Define.
31712 (aarch64_<su>mlsl_hi_laneq<mode>_insn): Define.
31713 (aarch64_<su>mlsl_hi_laneq<mode>): Define.
31714 * config/aarch64/arm_neon.h (vmlsl_high_lane_s16): Use RTL
31715 builtin instead of inline asm.
31716 (vmlsl_high_lane_s32): Likewise.
31717 (vmlsl_high_lane_u16): Likewise.
31718 (vmlsl_high_lane_u32): Likewise.
31719 (vmlsl_high_laneq_s16): Likewise.
31720 (vmlsl_high_laneq_s32): Likewise.
31721 (vmlsl_high_laneq_u16): Likewise.
31722 (vmlsl_high_laneq_u32): Likewise.
31723 (vmlal_high_laneq_u32): Likewise.
31725 2021-02-03 Jonathan Wright <jonathan.wright@arm.com>
31727 * config/aarch64/aarch64-simd-builtins.def: Add
31728 [su]mlal_hi_lane[q] builtin generator macros.
31729 * config/aarch64/aarch64-simd.md
31730 (aarch64_<su>mlal_hi_lane<mode>_insn): Define.
31731 (aarch64_<su>mlal_hi_lane<mode>): Define.
31732 (aarch64_<su>mlal_hi_laneq<mode>_insn): Define.
31733 (aarch64_<su>mlal_hi_laneq<mode>): Define.
31734 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Use RTL
31735 builtin instead of inline asm.
31736 (vmlal_high_lane_s32): Likewise.
31737 (vmlal_high_lane_u16): Likewise.
31738 (vmlal_high_lane_u32): Likewise.
31739 (vmlal_high_laneq_s16): Likewise.
31740 (vmlal_high_laneq_s32): Likewise.
31741 (vmlal_high_laneq_u16): Likewise.
31742 (vmlal_high_laneq_u32): Likewise.
31744 2021-02-03 Jonathan Wright <jonathan.wright@arm.com>
31746 * config/aarch64/aarch64-simd-builtins.def: Add [su]mlsl_hi_n
31747 builtin generator macros.
31748 * config/aarch64/aarch64-simd.md (aarch64_<su>mlsl_hi_n<mode>_insn):
31750 (aarch64_<su>mlsl_hi_n<mode>): Define.
31751 * config/aarch64/arm_neon.h (vmlsl_high_n_s16): Use RTL builtin
31752 instead of inline asm.
31753 (vmlsl_high_n_s32): Likewise.
31754 (vmlsl_high_n_u16): Likewise.
31755 (vmlsl_high_n_u32): Likewise.
31757 2021-02-03 Jonathan Wright <jonathan.wright@arm.com>
31759 * config/aarch64/aarch64-simd-builtins.def: Add [su]mlal_hi_n
31760 builtin generator macros.
31761 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_hi_n<mode>_insn):
31763 (aarch64_<su>mlal_hi_n<mode>): Define.
31764 * config/aarch64/arm_neon.h (vmlal_high_n_s16): Use RTL builtin
31765 instead of inline asm.
31766 (vmlal_high_n_s32): Likewise.
31767 (vmlal_high_n_u16): Likewise.
31768 (vmlal_high_n_u32): Likewise.
31770 2021-02-03 Jonathan Wright <jonathan.wright@arm.com>
31772 * config/aarch64/aarch64-simd-builtins.def: Add RTL builtin
31774 * config/aarch64/aarch64-simd.md (*aarch64_<su>mlal_hi<mode>):
31776 (aarch64_<su>mlal_hi<mode>_insn): This.
31777 (aarch64_<su>mlal_hi<mode>): Define.
31778 * config/aarch64/arm_neon.h (vmlal_high_s8): Use RTL builtin
31779 instead of inline asm.
31780 (vmlal_high_s16): Likewise.
31781 (vmlal_high_s32): Likewise.
31782 (vmlal_high_u8): Likewise.
31783 (vmlal_high_u16): Likewise.
31784 (vmlal_high_u32): Likewise.
31786 2021-02-03 Ilya Leoshkevich <iii@linux.ibm.com>
31788 * lra-spills.c (remove_pseudos): Call lra_update_insn_recog_data()
31789 after calling alter_subreg() on a (mem).
31791 2021-02-03 Martin Liska <mliska@suse.cz>
31794 * lto-streamer-out.c (produce_lto_section): Fill up missing
31796 * lto-streamer.h (struct lto_section): Add _padding field.
31798 2021-02-03 Richard Biener <rguenther@suse.de>
31800 * lto-streamer.c (lto_get_section_name): Free temporary
31802 * tree-loop-distribution.c
31803 (loop_distribution::merge_dep_scc_partitions): Free edge data.
31805 2021-02-03 Jakub Jelinek <jakub@redhat.com>
31807 PR middle-end/97487
31808 * ifcvt.c (noce_can_force_operand): New function.
31809 (noce_emit_move_insn): Use it.
31810 (noce_try_sign_mask): Likewise. Formatting fix.
31812 2021-02-03 Jakub Jelinek <jakub@redhat.com>
31814 PR middle-end/97971
31815 * lra-constraints.c (process_alt_operands): For inline asm, don't call
31816 fatal_insn, but instead return false.
31818 2021-02-03 Jakub Jelinek <jakub@redhat.com>
31820 PR tree-optimization/98287
31821 * config/i386/mmx.md (<insn><mode>3): For shifts don't enable expander
31824 2021-02-03 Tamar Christina <tamar.christina@arm.com>
31826 PR tree-optimization/98928
31827 * tree-vect-loop.c (vect_analyze_loop_2): Change
31828 STMT_VINFO_SLP_VECT_ONLY to STMT_VINFO_SLP_VECT_ONLY_PATTERN.
31829 * tree-vect-slp-patterns.c (complex_pattern::build): Likewise.
31830 * tree-vectorizer.h (STMT_VINFO_SLP_VECT_ONLY_PATTERN): New.
31831 (class _stmt_vec_info): Add slp_vect_pattern_only_p.
31833 2021-02-02 Richard Biener <rguenther@suse.de>
31835 * gimple-loop-interchange.cc (prepare_data_references):
31837 * gimple-loop-jam.c (tree_loop_unroll_and_jam): Likewise.
31838 * tree-ssa-loop-im.c (hoist_memory_references): Likewise.
31839 * tree-vect-stmts.c (vectorizable_condition): Do not
31841 (vectorizable_comparison): Likewise.
31843 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31845 * config/aarch64/aarch64-simd-builtins.def (ursqrte): Define builtin.
31846 * config/aarch64/aarch64-simd.md (aarch64_ursqrte<mode>): New pattern.
31847 * config/aarch64/arm_neon.h (vrsqrte_u32): Reimplement using builtin.
31848 (vrsqrteq_u32): Likewise.
31850 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31852 * config/aarch64/aarch64-simd-builtins.def (sqxtun2): Define builtin.
31853 * config/aarch64/aarch64-simd.md (aarch64_sqxtun2<mode>_le): Define.
31854 (aarch64_sqxtun2<mode>_be): Likewise.
31855 (aarch64_sqxtun2<mode>): Likewise.
31856 * config/aarch64/arm_neon.h (vqmovun_high_s16): Reimplement using builtin.
31857 (vqmovun_high_s32): Likewise.
31858 (vqmovun_high_s64): Likewise.
31859 * config/aarch64/iterators.md (UNSPEC_SQXTUN2): Define.
31861 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31863 * config/aarch64/aarch64-simd-builtins.def (bfdot_lane, bfdot_laneq): Use
31865 (bfmlalb_lane, bfmlalt_lane, bfmlalb_lane_q, bfmlalt_lane_q): Use FP flags.
31867 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31869 * config/aarch64/aarch64-simd-builtins.def (fcmla_lane0, fcmla_lane90,
31870 fcmla_lane180, fcmla_lane270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
31871 fcmlaq_lane270, scvtf, ucvtf, fcvtzs, fcvtzu, scvtfsi, scvtfdi, ucvtfsi,
31872 ucvtfdi, fcvtzshf, fcvtzuhf, fmlal_lane_low, fmlsl_lane_low,
31873 fmlal_laneq_low, fmlsl_laneq_low, fmlalq_lane_low, fmlslq_lane_low,
31874 fmlalq_laneq_low, fmlslq_laneq_low, fmlal_lane_high, fmlsl_lane_high,
31875 fmlal_laneq_high, fmlsl_laneq_high, fmlalq_lane_high, fmlslq_lane_high,
31876 fmlalq_laneq_high, fmlslq_laneq_high): Use FP flags.
31878 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31880 * config/aarch64/aarch64-builtins.c (FLAG_LOAD): Define.
31881 * config/aarch64/aarch64-simd-builtins.def (ld1x2, ld2, ld3, ld4, ld2r,
31882 ld3r, ld4r, ld1, ld1x3, ld1x4): Use LOAD flags.
31884 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31886 * config/aarch64/aarch64-simd-builtins.def (combine, zip1, zip2,
31887 uzp1, uzp2, trn1, trn2, simd_bsl): Use AUTO_FP flags.
31889 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31891 * config/aarch64/aarch64-simd-builtins.def (clrsb, clz, ctz, popcount,
31892 vec_smult_lane_, vec_smlal_lane_, vec_smult_laneq_, vec_smlal_laneq_,
31893 vec_umult_lane_, vec_umlal_lane_, vec_umult_laneq_, vec_umlal_laneq_,
31894 ashl, sshl, ushl, srshl, urshl, sdot_lane, udot_lane, sdot_laneq,
31895 udot_laneq, usdot_lane, usdot_laneq, sudot_lane, sudot_laneq, ashr,
31896 ashr_simd, lshr, lshr_simd, srshr_n, urshr_n, ssra_n, usra_n, srsra_n,
31897 ursra_n, sshll_n, ushll_n, sshll2_n, ushll2_n, ssri_n, usri_n, ssli_n,
31898 ssli_n, usli_n, bswap, rbit, simd_bsl, eor3q, rax1q, xarq, bcaxq): Use
31899 NONE builtin flags.
31901 2021-02-02 Jakub Jelinek <jakub@redhat.com>
31903 PR tree-optimization/98848
31904 * tree-vect-patterns.c (vect_recog_over_widening_pattern): Punt if
31905 STMT_VINFO_DEF_TYPE (last_stmt_info) is vect_reduction_def.
31907 2021-02-02 Kito Cheng <kito.cheng@sifive.com>
31910 * expr.c: Check mode before calling store_expr.
31912 2021-02-02 Christophe Lyon <christophe.lyon@linaro.org>
31914 * config/arm/iterators.md (supf): Remove VORNQ_S and VORNQ_U.
31916 * config/arm/mve.md (mve_vornq_s<mode>): New entry for vorn
31917 instruction using expression ior.
31918 (mve_vornq_u<mode>): New expander.
31919 (mve_vornq_f<mode>): Use ior code instead of unspec.
31920 * config/arm/unspecs.md (VORNQ_S, VORNQ_U, VORNQ_F): Remove.
31922 2021-02-02 Alexandre Oliva <oliva@adacore.com>
31924 * tree-nested.c (convert_nonlocal_reference_op): Move
31925 current_function_decl restore after re-gimplification.
31926 (convert_local_reference_op): Likewise.
31928 2021-02-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31930 * config/aarch64/aarch64-simd-builtins.def (rshrn, rshrn2):
31932 * config/aarch64/aarch64-simd.md (aarch64_rshrn<mode>_insn_le):
31934 (aarch64_rshrn<mode>_insn_be): Likewise.
31935 (aarch64_rshrn<mode>): Likewise.
31936 (aarch64_rshrn2<mode>_insn_le): Likewise.
31937 (aarch64_rshrn2<mode>_insn_be): Likewise.
31938 (aarch64_rshrn2<mode>): Likewise.
31939 * config/aarch64/aarch64.md (unspec): Add UNSPEC_RSHRN.
31940 * config/aarch64/arm_neon.h (vrshrn_high_n_s16): Reimplement
31942 (vrshrn_high_n_s32): Likewise.
31943 (vrshrn_high_n_s64): Likewise.
31944 (vrshrn_high_n_u16): Likewise.
31945 (vrshrn_high_n_u32): Likewise.
31946 (vrshrn_high_n_u64): Likewise.
31947 (vrshrn_n_s16): Likewise.
31948 (vrshrn_n_s32): Likewise.
31949 (vrshrn_n_s64): Likewise.
31950 (vrshrn_n_u16): Likewise.
31951 (vrshrn_n_u32): Likewise.
31952 (vrshrn_n_u64): Likewise.
31954 2021-02-01 Sergei Trofimovich <siarheit@google.com>
31956 PR tree-optimization/98499
31957 * ipa-modref.c (analyze_ssa_name_flags): treat RVO
31958 conservatively and assume all possible side-effects.
31960 2021-02-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31962 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi,
31963 vec_unpacku_hi_): Define builtins.
31964 * config/aarch64/arm_neon.h (vmovl_high_s8): Reimplement using
31966 (vmovl_high_s16): Likewise.
31967 (vmovl_high_s32): Likewise.
31968 (vmovl_high_u8): Likewise.
31969 (vmovl_high_u16): Likewise.
31970 (vmovl_high_u32): Likewise.
31972 2021-02-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31974 * config/aarch64/aarch64-simd-builtins.def (sabdl, uabdl):
31976 * config/aarch64/aarch64-simd.md (aarch64_<sur>abdl<mode>): New
31978 * config/aarch64/aarch64.md (unspec): Define UNSPEC_SABDL,
31980 * config/aarch64/arm_neon.h (vabdl_s8): Reimplemet using
31982 (vabdl_s16): Likewise.
31983 (vabdl_s32): Likewise.
31984 (vabdl_u8): Likewise.
31985 (vabdl_u16): Likewise.
31986 (vabdl_u32): Likewise.
31987 * config/aarch64/iterators.md (ABDL): New int iterator.
31988 (sur): Handle UNSPEC_SABDL, UNSPEC_UABDL.
31990 2021-02-01 Martin Sebor <msebor@redhat.com>
31992 * tree.h (BLOCK_VARS): Add comment.
31993 (BLOCK_SUBBLOCKS): Same.
31994 (BLOCK_SUPERCONTEXT): Same.
31995 (BLOCK_ABSTRACT_ORIGIN): Same.
31996 (inlined_function_outer_scope_p): Same.
31998 2021-02-01 Martin Sebor <msebor@redhat.com>
32000 PR middle-end/97172
32001 * attribs.c (attr_access::free_lang_data): Define new function.
32002 * attribs.h (attr_access::free_lang_data): Declare new function.
32004 2021-02-01 Richard Biener <rguenther@suse.de>
32006 * vec.h (auto_vec::auto_vec): Add memory stat parameters
32008 * bitmap.h (auto_bitmap::auto_bitmap): Likewise.
32010 2021-02-01 Tamar Christina <tamar.christina@arm.com>
32012 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_n<mode>,
32013 aarch64_<su>mlsl<mode>, aarch64_<su>mlsl_n<mode>): Flip mult operands.
32015 2021-02-01 Richard Biener <rguenther@suse.de>
32017 PR rtl-optimization/98863
32018 * config/i386/i386-features.c (convert_scalars_to_vector):
32019 Set DF_RD_PRUNE_DEAD_DEFS.
32021 2021-01-31 Eric Botcazou <ebotcazou@adacore.com>
32023 * system.h (SIZE_MAX): Define if not already defined.
32025 2021-01-30 Aaron Sawdey <acsawdey@linux.ibm.com>
32027 * config/rs6000/genfusion.pl (gen_2logical): New function to
32028 generate patterns for logical-logical fusion.
32029 * config/rs6000/fusion.md: Regenerated patterns.
32030 * config/rs6000/rs6000-cpus.def: Add
32031 OPTION_MASK_P10_FUSION_2LOGICAL.
32032 * config/rs6000/rs6000.c (rs6000_option_override_internal):
32033 Enable logical-logical fusion for p10.
32034 * config/rs6000/rs6000.opt: Add -mpower10-fusion-2logical.
32036 2021-01-30 David Edelsohn <dje.gcc@gmail.com>
32038 * config/rs6000/rs6000.opt: Add periods to new AIX options.
32040 2021-01-30 David Edelsohn <dje.gcc@gmail.com>
32042 * config/rs6000/rs6000.opt (mabi=vec-extabi): New.
32043 (mabi=vec-default): New.
32044 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
32045 __EXTABI__ for AIX Vector extended ABI.
32046 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print AIX Vector
32048 (conditional_register_usage): If AIX vec_extabi enabled, vs20-vs31
32050 * doc/invoke.texi (PowerPC mabi): Add AIX vec-extabi and vec-default.
32052 2021-01-30 Jakub Jelinek <jakub@redhat.com>
32054 * config/i386/i386-features.c (remove_partial_avx_dependency): Clear
32055 DF_DEFER_INSN_RESCAN after calling df_process_deferred_rescans.
32057 2021-01-29 Vladimir N. Makarov <vmakarov@redhat.com>
32060 * lra-constraints.c (in_class_p): Don't narrow class only for REG
32063 2021-01-29 Will Schmidt <will_schmidt@vnet.ibm.com>
32065 * config/rs6000/rs6000-call.c (rs6000_expand_binup_builtin): Add
32066 clauses for CODE_FOR_vsx_xvcvuxddp_scale and
32067 CODE_FOR_vsx_xvcvsxddp_scale to the parameter checking code.
32069 2021-01-29 Andrew MacLeod <amacleod@redhat.com>
32071 PR tree-optimization/98866
32072 * gimple-range-gori.h (gori_compute:set_range_invariant): New.
32073 * gimple-range-gori.cc (gori_map::set_range_invariant): New.
32074 (gori_map::m_maybe_invariant): Rename from all_outgoing.
32075 (gori_map::gori_map): Rename all_outgoing to m_maybe_invariant.
32076 (gori_map::is_export_p): Ditto.
32077 (gori_map::calculate_gori): Ditto.
32078 (gori_compute::set_range_invariant): New.
32079 * gimple-range.cc (gimple_ranger::range_of_stmt): Set range
32080 invariant for pointers evaluating to [1, +INF].
32082 2021-01-29 Richard Biener <rguenther@suse.de>
32084 PR rtl-optimization/98863
32085 * config/i386/i386-features.c (remove_partial_avx_dependency):
32086 Do not perform DF analysis.
32087 (pass_data_remove_partial_avx_dependency): Remove
32090 2021-01-29 Jonathan Wright <jonathan.wright@arm.com>
32092 * config/aarch64/aarch64-simd-builtins.def: Add [su]mull_n
32093 builtin generator macros.
32094 * config/aarch64/aarch64-simd.md (aarch64_<su>mull_n<mode>):
32096 * config/aarch64/arm_neon.h (vmull_n_s16): Use RTL builtin
32097 instead of inline asm.
32098 (vmull_n_s32): Likewise.
32099 (vmull_n_u16): Likewise.
32100 (vmull_n_u32): Likewise.
32102 2021-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32104 * config/aarch64/aarch64-simd-builtins.def (sabdl2, uabdl2):
32106 * config/aarch64/aarch64-simd.md (aarch64_<sur>abdl2<mode>_3):
32108 (aarch64_<sur>abdl2<mode>): ... This.
32109 (<sur>sadv16qi): Adjust use of above.
32110 * config/aarch64/arm_neon.h (vabdl_high_s8): Reimplement using
32112 (vabdl_high_s16): Likewise.
32113 (vabdl_high_s32): Likewise.
32114 (vabdl_high_u8): Likewise.
32115 (vabdl_high_u16): Likewise.
32116 (vabdl_high_u32): Likewise.
32118 2021-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32120 * config/aarch64/aarch64-simd-builtins.def (sabal2): Define
32122 (uabal2): Likewise.
32123 * config/aarch64/aarch64-simd.md (aarch64_<sur>abal2<mode>): New
32125 * config/aarch64/aarch64.md (unspec): Add UNSPEC_SABAL2 and
32127 * config/aarch64/arm_neon.h (vabal_high_s8): Reimplement using
32129 (vabal_high_s16): Likewise.
32130 (vabal_high_s32): Likewise.
32131 (vabal_high_u8): Likewise.
32132 (vabal_high_u16): Likewise.
32133 (vabal_high_u32): Likewise.
32134 * config/aarch64/iterators.md (ABAL2): New mode iterator.
32135 (sur): Handle UNSPEC_SABAL2, UNSPEC_UABAL2.
32137 2021-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32139 * config/aarch64/aarch64-simd-builtins.def (sabal): Define
32142 * config/aarch64/aarch64-simd.md (aarch64_<sur>abal<mode>_4):
32144 (aarch64_<sur>abal<mode>): ... This
32145 (<sur>sadv16qi): Adust use of the above.
32146 * config/aarch64/arm_neon.h (vabal_s8): Reimplement using
32148 (vabal_s16): Likewise.
32149 (vabal_s32): Likewise.
32150 (vabal_u8): Likewise.
32151 (vabal_u16): Likewise.
32152 (vabal_u32): Likewise.
32154 2021-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32156 * config/aarch64/aarch64-simd-builtins.def (saddlv, uaddlv):
32158 * config/aarch64/aarch64-simd.md (aarch64_<su>addlv<mode>):
32160 * config/aarch64/arm_neon.h (vaddlv_s8): Reimplement using
32162 (vaddlv_s16): Likewise.
32163 (vaddlv_u8): Likewise.
32164 (vaddlv_u16): Likewise.
32165 (vaddlvq_s8): Likewise.
32166 (vaddlvq_s16): Likewise.
32167 (vaddlvq_s32): Likewise.
32168 (vaddlvq_u8): Likewise.
32169 (vaddlvq_u16): Likewise.
32170 (vaddlvq_u32): Likewise.
32171 (vaddlv_s32): Likewise.
32172 (vaddlv_u32): Likewise.
32173 * config/aarch64/iterators.md (VDQV_L): New mode iterator.
32174 (unspec): Add UNSPEC_SADDLV, UNSPEC_UADDLV.
32175 (Vwstype): New mode attribute.
32177 (VWIDE_S): Likewise.
32178 (USADDLV): New int iterator.
32179 (su): Handle UNSPEC_SADDLV, UNSPEC_UADDLV.
32181 2021-01-29 Jonathan Wright <jonathan.wright@arm.com>
32183 * config/aarch64/aarch64-simd-builtins.def: Add [su]mlsl_lane[q]
32184 builtin generator macros.
32185 * config/aarch64/aarch64-simd.md (aarch64_vec_<su>mlsl_lane<Qlane>):
32187 * config/aarch64/arm_neon.h (vmlsl_lane_s16): Use RTL builtin
32188 instead of inline asm.
32189 (vmlsl_lane_s32): Likewise.
32190 (vmlsl_lane_u16): Likewise.
32191 (vmlsl_lane_u32): Likewise.
32192 (vmlsl_laneq_s16): Likewise.
32193 (vmlsl_laneq_s32): Likewise.
32194 (vmlsl_laneq_u16): Likewise.
32195 (vmlsl_laneq_u32): Likewise.
32197 2021-01-29 Richard Biener <rguenther@suse.de>
32199 * doc/invoke.texi (--param max-gcse-memory): Document unit
32201 * gcse.c (gcse_or_cprop_is_too_expensive): Adjust.
32202 * params.opt (--param max-gcse-memory): Adjust default and
32203 document unit of size.
32205 2021-01-29 Richard Biener <rguenther@suse.de>
32207 PR rtl-optimization/98863
32208 * gcse.c (gcse_or_cprop_is_too_expensive): Use unsigned
32209 HOST_WIDE_INT for the memory estimate.
32211 2021-01-29 Bin Cheng <bin.cheng@linux.alibaba.com>
32212 Richard Biener <rguenther@suse.de>
32214 PR tree-optimization/97627
32215 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions):
32216 Do not analyze fake edges.
32218 2021-01-29 Richard Biener <rguenther@suse.de>
32220 PR rtl-optimization/98144
32221 * df.h (df_mir_bb_info): Add con_visited member.
32222 * df-problems.c (df_mir_alloc): Initialize con_visited,
32223 do not fully populate IN and OUT.
32224 (df_mir_reset): Likewise.
32225 (df_mir_confluence_0): Set con_visited.
32226 (df_mir_confluence_n): Properly handle implicitely
32227 fully populated IN and OUT as designated by con_visited
32228 and update con_visited accordingly.
32230 2021-01-29 Jakub Jelinek <jakub@redhat.com>
32233 * config/arm/vec-common.md (mve_vshlq_<supf><mode>,
32234 vashl<mode>3, vashr<mode>3, vlshr<mode>3): Add
32235 && !TARGET_REALLY_IWMMXT to conditions.
32237 2021-01-29 Jakub Jelinek <jakub@redhat.com>
32240 * cfgbuild.c (find_bb_boundaries): Reset debug_insn when seeing
32243 2021-01-28 Marek Polacek <polacek@redhat.com>
32246 * stor-layout.c (finalize_type_size): If we reset TYPE_USER_ALIGN in
32247 the main variant, maybe reset it in its variants too.
32248 * tree.c (check_base_type): Return true only if TYPE_USER_ALIGN match.
32249 (check_aligned_type): Check if TYPE_USER_ALIGN match.
32251 2021-01-28 Christophe Lyon <christophe.lyon@linaro.org>
32254 * config/arm/arm.c (arm_rtx_costs_internal): Adjust cost of vector
32255 of constant zero for comparisons.
32257 2021-01-28 Michael Meissner <meissner@linux.ibm.com>
32259 * config/rs6000/rs6000.c (rs6000_mangle_decl_assembler_name): Add
32260 support for mapping built-in function names for long double
32261 built-in functions if long double is IEEE 128-bit.
32263 2021-01-28 Jonathan Wright <jonathan.wright@arm.com>
32265 * config/aarch64/aarch64-simd-builtins.def: Add [su]mlsl_n
32266 builtin generator macros.
32267 * config/aarch64/aarch64-simd.md (aarch64_<su>mlsl_n<mode>):
32269 * config/aarch64/arm_neon.h (vmlsl_n_s16): Use RTL builtin
32270 instead of inline asm.
32271 (vmlsl_n_s32): Likewise.
32272 (vmlsl_n_u16): Likewise.
32273 (vmlsl_n_u32): Likewise.
32275 2021-01-28 Jonathan Wright <jonathan.wright@arm.com>
32277 * config/aarch64/aarch64-simd-builtins.def: Add [su]mlal_n
32278 builtin generator macros.
32279 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_n<mode>):
32281 * config/aarch64/arm_neon.h (vmlal_n_s16): Use RTL builtin
32282 instead of inline asm.
32283 (vmlal_n_s32): Likewise.
32284 (vmlal_n_u16): Likewise.
32285 (vmlal_n_u32): Likewise.
32287 2021-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32289 * config/aarch64/aarch64-simd-builtins.def (shrn2): Define
32291 * config/aarch64/aarch64-simd.md (aarch64_shrn2<mode>_insn_le):
32293 (aarch64_shrn2<mode>_insn_be): Likewise.
32294 (aarch64_shrn2<mode>): Likewise.
32295 * config/aarch64/arm_neon.h (vshrn_high_n_s16): Reimlplement
32297 (vshrn_high_n_s32): Likewise.
32298 (vshrn_high_n_s64): Likewise.
32299 (vshrn_high_n_u16): Likewise.
32300 (vshrn_high_n_u32): Likewise.
32301 (vshrn_high_n_u64): Likewise.
32303 2021-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32305 * config/aarch64/aarch64-simd-builtins.def (shrn): Define
32307 * config/aarch64/aarch64-simd.md (aarch64_shrn<mode>_insn_le):
32309 (aarch64_shrn<mode>_insn_be): Likewise.
32310 (aarch64_shrn<mode>): Likewise.
32311 * config/aarch64/arm_neon.h (vshrn_n_s16): Reimplement using
32313 (vshrn_n_s32): Likewise.
32314 (vshrn_n_s64): Likewise.
32315 (vshrn_n_u16): Likewise.
32316 (vshrn_n_u32): Likewise.
32317 (vshrn_n_u64): Likewise.
32318 * config/aarch64/iterators.md (vn_mode): New mode attribute.
32320 2021-01-28 Richard Biener <rguenther@suse.de>
32322 PR rtl-optimization/80960
32323 * dse.c (check_mem_read_rtx): Call get_addr on the
32326 2021-01-28 Xionghu Luo <luoxhu@linux.ibm.com>
32327 David Edelsohn <dje.gcc@gmail.com>
32330 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
32331 Don't generate VIEW_CONVERT_EXPR for fcode ALTIVEC_BUILTIN_VEC_INSERT
32333 * config/rs6000/rs6000-protos.h (rs6000_expand_vector_set_var):
32335 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Remove the
32336 wrapper call rs6000_expand_vector_set_var for cleanup. Call
32337 rs6000_expand_vector_set_var_p9 and rs6000_expand_vector_set_var_p8
32339 (rs6000_expand_vector_set_var): Delete.
32340 (rs6000_expand_vector_set_var_p9): Make static.
32341 (rs6000_expand_vector_set_var_p8): Make static.
32343 2021-01-28 Xing GUO <higuoxing@gmail.com>
32345 * common/config/riscv/riscv-common.c
32346 (riscv_subset_list::parsing_subset_version): Fix -march option parsing
32347 when `p` extension exists.
32349 2021-01-27 Vladimir N. Makarov <vmakarov@redhat.com>
32351 PR rtl-optimization/97684
32352 * ira.c (ira): Call ira_set_pseudo_classes before
32353 update_equiv_regs when it is necessary.
32355 2021-01-27 Jakub Jelinek <jakub@redhat.com>
32358 * config/aarch64/aarch64.md (*aarch64_bfxilsi_uxtw): Use
32359 %w0, %w1 and %2 instead of %0, %1 and %2.
32361 2021-01-27 Aaron Sawdey <acsawdey@linux.ibm.com>
32363 * config/rs6000/genfusion.pl: New script to generate
32364 define_insn_and_split patterns so combine can arrange fused
32365 instructions next to each other.
32366 * config/rs6000/fusion.md: New file, generated fused instruction
32367 patterns for combine.
32368 * config/rs6000/predicates.md (const_m1_to_1_operand): New predicate.
32369 (non_update_memory_operand): New predicate.
32370 * config/rs6000/rs6000-cpus.def: Add OPTION_MASK_P10_FUSION and
32371 OPTION_MASK_P10_FUSION_LD_CMPI to ISA_3_1_MASKS_SERVER and
32373 * config/rs6000/rs6000-protos.h (address_is_non_pfx_d_or_x): Add
32375 * config/rs6000/rs6000.c (rs6000_option_override_internal):
32376 Automatically set OPTION_MASK_P10_FUSION and
32377 OPTION_MASK_P10_FUSION_LD_CMPI if target is power10.
32378 (rs600_opt_masks): Allow -mpower10-fusion
32379 in function attributes.
32380 (address_is_non_pfx_d_or_x): New function.
32381 * config/rs6000/rs6000.h: Add MASK_P10_FUSION.
32382 * config/rs6000/rs6000.md: Include fusion.md.
32383 * config/rs6000/rs6000.opt: Add -mpower10-fusion
32384 and -mpower10-fusion-ld-cmpi.
32385 * config/rs6000/t-rs6000: Add dependencies involving fusion.md.
32387 2021-01-27 Jonathan Wright <jonathan.wright@arm.com>
32389 * config/aarch64/aarch64-simd-builtins.def: Add [su]mlal
32390 builtin generator macros.
32391 * config/aarch64/aarch64-simd.md (*aarch64_<su>mlal<mode>):
32393 (aarch64_<su>mlal<mode>): This.
32394 * config/aarch64/arm_neon.h (vmlal_s8): Use RTL builtin
32395 instead of inline asm.
32396 (vmlal_s16): Likewise.
32397 (vmlal_s32): Likewise.
32398 (vmlal_u8): Likewise.
32399 (vmlal_u16): Likewise.
32400 (vmlal_u32): Likewise.
32402 2021-01-27 Richard Biener <rguenther@suse.de>
32404 PR tree-optimization/98854
32405 * tree-vect-slp.c (vect_build_slp_tree_2): Also build
32406 PHIs from scalars when the number of CTORs matches the
32407 number of children.
32409 2021-01-27 Jonathan Wright <jonathan.wright@arm.com>
32411 * config/aarch64/aarch64-simd-builtins.def: Add mls_n builtin
32413 * config/aarch64/aarch64-simd.md (*aarch64_mls_elt_merge<mode>):
32415 (aarch64_mls_n<mode>): This.
32416 * config/aarch64/arm_neon.h (vmls_n_s16): Use RTL builtin
32418 (vmls_n_s32): Likewise.
32419 (vmls_n_u16): Likewise.
32420 (vmls_n_u32): Likewise.
32421 (vmlsq_n_s16): Likewise.
32422 (vmlsq_n_s32): Likewise.
32423 (vmlsq_n_u16): Likewise.
32424 (vmlsq_n_u32): Likewise.
32426 2021-01-27 Jonathan Wright <jonathan.wright@arm.com>
32428 * config/aarch64/aarch64-simd-builtins.def: Add mls builtin
32430 * config/aarch64/arm_neon.h (vmls_s8): Use RTL builtin rather
32432 (vmls_s16): Likewise.
32433 (vmls_s32): Likewise.
32434 (vmls_u8): Likewise.
32435 (vmls_u16): Likewise.
32436 (vmls_u32): Likewise.
32437 (vmlsq_s8): Likewise.
32438 (vmlsq_s16): Likewise.
32439 (vmlsq_s32): Likewise.
32440 (vmlsq_u8): Likewise.
32441 (vmlsq_u16): Likewise.
32442 (vmlsq_u32): Likewise.
32444 2021-01-27 Jonathan Wright <jonathan.wright@arm.com>
32446 * config/aarch64/aarch64-simd-builtins.def: Add mla_n builtin
32448 * config/aarch64/aarch64-simd.md (*aarch64_mla_elt_merge<mode>):
32450 (aarch64_mla_n<mode>): This.
32451 * config/aarch64/arm_neon.h (vmla_n_s16): Use RTL builtin
32453 (vmla_n_s32): Likewise.
32454 (vmla_n_u16): Likewise.
32455 (vmla_n_u32): Likewise.
32456 (vmlaq_n_s16): Likewise.
32457 (vmlaq_n_s32): Likewise.
32458 (vmlaq_n_u16): Likewise.
32459 (vmlaq_n_u32): Likewise.
32461 2021-01-27 liuhongt <hongtao.liu@intel.com>
32464 * config/i386/sse.md (sse2_gt<mode>3): Drop !TARGET_XOP in condition.
32465 (*sse2_eq<mode>3): Ditto.
32467 2021-01-27 Jakub Jelinek <jakub@redhat.com>
32469 * tree-pass.h (PROP_trees): Rename to ...
32470 (PROP_gimple): ... this.
32471 * cfgexpand.c (pass_data_expand): Replace PROP_trees with PROP_gimple.
32472 * passes.c (execute_function_dump, execute_function_todo,
32473 execute_one_ipa_transform_pass, execute_one_pass): Likewise.
32474 * varpool.c (ctor_for_folding): Likewise.
32476 2021-01-27 Jakub Jelinek <jakub@redhat.com>
32478 PR tree-optimization/97260
32479 * varpool.c: Include tree-pass.h.
32480 (ctor_for_folding): In GENERIC return DECL_INITIAL for TREE_READONLY
32481 non-TREE_SIDE_EFFECTS automatic variables.
32483 2021-01-26 Paul Fee <paul.f.fee@gmail.com>
32485 * doc/cpp.texi (__cplusplus): Document value for -std=c++23
32487 * doc/invoke.texi: Document -std=c++23 and -std=gnu++23.
32488 * dwarf2out.c (highest_c_language): Recognise C++20 and C++23.
32489 (gen_compile_unit_die): Recognise C++23.
32491 2021-01-26 Jakub Jelinek <jakub@redhat.com>
32494 * dwarf2asm.c (dw2_assemble_integer): Cast DWARF2_ADDR_SIZE to int
32497 2021-01-26 Jakub Jelinek <jakub@redhat.com>
32500 * config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
32501 Use UINTVAL (shft_amnt) and UINTVAL (mask) instead of INTVAL (shft_amnt)
32502 and INTVAL (mask). Add && INTVAL (mask) > 0 condition.
32504 2021-01-26 Richard Biener <rguenther@suse.de>
32506 * gimple-pretty-print.c (dump_binary_rhs): Handle
32507 VEC_WIDEN_{PLUS,MINUS}_{LO,HI}_EXPR.
32509 2021-01-26 Richard Biener <rguenther@suse.de>
32511 PR middle-end/98726
32512 * tree.h (vector_cst_int_elt): Remove.
32513 * tree.c (vector_cst_int_elt): Use poly_wide_int for computations,
32516 2021-01-26 Andrew Stubbs <ams@codesourcery.com>
32518 * config/gcn/gcn.c (gcn_expand_reduc_scalar): Use move instructions
32519 for V64DFmode min/max reductions.
32521 2021-01-26 Jakub Jelinek <jakub@redhat.com>
32523 * dwarf2asm.c (dw2_assemble_integer): Handle size twice as large
32524 as DWARF2_ADDR_SIZE if x is not a scalar int by emitting it as
32525 two halves, one with x and the other with const0_rtx, ordered
32526 depending on endianity.
32528 2021-01-26 Alexandre Oliva <oliva@adacore.com>
32530 * gimplify.c (gimplify_decl_expr): Skip asan marking calls for
32531 temporaries not seen in binding block, and not about to be
32532 added as gimple variables.
32534 2021-01-25 Martin Sebor <msebor@redhat.com>
32537 * tree-ssa-ccp.c (pass_post_ipa_warn::execute): Adjust warning text.
32539 2021-01-25 Martin Liska <mliska@suse.cz>
32541 * value-prof.c (get_nth_most_common_value): Use %s instead
32544 2021-01-25 Jakub Jelinek <jakub@redhat.com>
32547 * configure.ac (HAVE_AS_GDWARF_5_DEBUG_FLAG): Only define if
32548 readelf -wi is able to read the emitted .debug_info back.
32549 * configure: Regenerated.
32551 2021-01-25 Martin Liska <mliska@suse.cz>
32553 PR gcov-profile/98739
32554 * common.opt: Add missing sign symbol.
32555 * value-prof.c (get_nth_most_common_value): Restore handling
32556 of PROFILE_REPRODUCIBILITY_PARALLEL_RUNS and
32557 PROFILE_REPRODUCIBILITY_MULTITHREADED.
32559 2021-01-25 Richard Biener <rguenther@suse.de>
32561 PR middle-end/98807
32562 * tree.c (vector_element_bits): Always use precision of
32563 the element type for boolean vectors.
32565 2021-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
32567 * config/rtems.h (STARTFILE_SPEC): Remove qnolinkcmds.
32568 (ENDFILE_SPEC): Evaluate qnolinkcmds.
32570 2021-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
32572 * config/rtems.h (STARTFILE_SPEC): Remove nostdlib and
32573 nostartfiles handling since this is already done by
32574 LINK_COMMAND_SPEC. Evaluate qnolinkcmds.
32575 (ENDFILE_SPEC): Remove nostdlib and nostartfiles handling since this
32576 is already done by LINK_COMMAND_SPEC.
32577 (LIB_SPECS): Remove nostdlib and nodefaultlibs handling since
32578 this is already done by LINK_COMMAND_SPEC. Remove qnolinkcmds
32581 2021-01-25 Jakub Jelinek <jakub@redhat.com>
32584 * fold-const-call.c (host_size_t_cst_p): Renamed to ...
32585 (size_t_cst_p): ... this. Check and store unsigned HOST_WIDE_INT
32586 value rather than host size_t.
32587 (fold_const_call): Change type of s2 from size_t to
32588 unsigned HOST_WIDE_INT. Use size_t_cst_p instead of
32589 host_size_t_cst_p. For strncmp calls, pass MIN (s2, SIZE_MAX)
32590 instead of s2 as last argument.
32592 2021-01-25 Tamar Christina <tamar.christina@arm.com>
32594 * config/arm/iterators.md (rotsplit1, rotsplit2, conj_op, fcmac1,
32595 VCMLA_OP, VCMUL_OP): New.
32596 * config/arm/mve.md (mve_vcmlaq<mve_rot><mode>): Support vec_dup 0.
32597 * config/arm/neon.md (cmul<conj_op><mode>3): New.
32598 * config/arm/unspecs.md (UNSPEC_VCMLA_CONJ, UNSPEC_VCMLA180_CONJ,
32599 UNSPEC_VCMUL_CONJ): New.
32600 * config/arm/vec-common.md (cmul<conj_op><mode>3, arm_vcmla<rot><mode>,
32601 cml<fcmac1><conj_op><mode>4): New.
32603 2021-01-23 Jakub Jelinek <jakub@redhat.com>
32606 * config/rs6000/mmintrin.h (__m64): Add __may_alias__ attribute.
32608 2021-01-22 Jonathan Wright <jonathan.wright@arm.com>
32610 * config/aarch64/aarch64-simd-builtins.def: Add mla builtin
32612 * config/aarch64/arm_neon.h (vmla_s8): Use RTL builtin rather
32614 (vmla_s16): Likewise.
32615 (vmla_s32): Likewise.
32616 (vmla_u8): Likewise.
32617 (vmla_u16): Likewise.
32618 (vmla_u32): Likewise.
32619 (vmlaq_s8): Likewise.
32620 (vmlaq_s16): Likewise.
32621 (vmlaq_s32): Likewise.
32622 (vmlaq_u8): Likewise.
32623 (vmlaq_u16): Likewise.
32624 (vmlaq_u32): Likewise.
32626 2021-01-22 David Malcolm <dmalcolm@redhat.com>
32628 * doc/invoke.texi (GCC_EXTRA_DIAGNOSTIC_OUTPUT): Add @findex
32631 2021-01-22 Jakub Jelinek <jakub@redhat.com>
32634 * dwarf2out.c (output_file_names): For -gdwarf-5, if there are no
32635 filenames to emit, still emit the required 0 index directory and
32636 filename entries that match DW_AT_comp_dir and DW_AT_name of the
32639 2021-01-22 Marek Polacek <polacek@redhat.com>
32642 * doc/invoke.texi: Update C++ ABI Version 15 description.
32644 2021-01-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32646 PR tree-optimization/98766
32647 * tree-ssa-math-opts.c (convert_mult_to_fma): Use maybe_le when
32648 comparing against type size with param_avoid_fma_max_bits.
32650 2021-01-22 Richard Biener <rguenther@suse.de>
32652 PR middle-end/98793
32653 * tree.c (vector_element_bits): Key single-bit bool vector on
32654 integer mode rather than not vector mode.
32656 2021-01-22 Xionghu Luo <luoxhu@linux.ibm.com>
32659 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
32660 Generate ARRAY_REF(VIEW_CONVERT_EXPR) for P8 and later
32662 * config/rs6000/rs6000.c (rs6000_expand_vector_set_var): Update
32663 to call different path for P8 and P9.
32664 (rs6000_expand_vector_set_var_p9): New function.
32665 (rs6000_expand_vector_set_var_p8): New function.
32667 2021-01-22 Xionghu Luo <luoxhu@linux.ibm.com>
32671 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
32672 Ajdust variable index vec_insert from address dereference to
32673 ARRAY_REF(VIEW_CONVERT_EXPR) tree expression.
32674 * config/rs6000/rs6000-protos.h (rs6000_expand_vector_set_var):
32676 * config/rs6000/rs6000.c (rs6000_expand_vector_set_var): New function.
32678 2021-01-22 Martin Liska <mliska@suse.cz>
32680 PR gcov-profile/98739
32681 * profile.c (compute_value_histograms): Drop time profile for
32682 -fprofile-reproducible=multithreaded.
32684 2021-01-22 Nathan Sidwell <nathan@acm.org>
32686 * gcc.c (process_command): Don't check OPT_SPECIAL_input_file
32689 2021-01-22 Richard Biener <rguenther@suse.de>
32691 PR middle-end/98773
32692 * tree-data-ref.c (initalize_matrix_A): Revert previous
32693 change, retaining failing on HOST_WIDE_INT_MIN CHREC_RIGHT.
32695 2021-01-22 Jakub Jelinek <jakub@redhat.com>
32697 PR tree-optimization/90248
32698 * match.pd (X cmp 0.0 ? 1.0 : -1.0 -> copysign(1, +-X),
32699 X cmp 0.0 ? -1.0 : +1.0 -> copysign(1, -+X)): Remove
32701 (X * (X cmp 0.0 ? 1.0 : -1.0) -> +-abs(X),
32702 X * (X cmp 0.0 ? -1.0 : 1.0) -> +-abs(X)): New simplifications.
32704 2021-01-22 Jakub Jelinek <jakub@redhat.com>
32706 PR tree-optimization/98255
32707 * tree-dfa.c (get_ref_base_and_extent): For ARRAY_REFs, sign
32708 extend index - low_bound from sizetype's precision rather than index
32710 (get_addr_base_and_unit_offset_1): Likewise.
32711 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Likewise.
32712 * gimple-fold.c (fold_const_aggregate_ref_1): Likewise.
32714 2021-01-22 Richard Biener <rguenther@suse.de>
32716 PR tree-optimization/98786
32717 * tree-ssa-phiopt.c (factor_out_conditional_conversion): Avoid
32718 adding new uses of abnormals. Verify we deal with a conditional
32721 2021-01-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
32724 * optc-save-gen.awk: Add arm_fp16_format to checked_options.
32726 2021-01-22 liuhongt <hongtao.liu@intel.com>
32730 * config/i386/sse.md (VI_128_256): New mode iterator.
32731 (*avx_cmp<mode>3_1, *avx_cmp<mode>3_2, *avx_cmp<mode>3_3,
32732 *avx_cmp<mode>3_4, *avx2_eq<mode>3, *avx2_pcmp<mode>3_1,
32733 *avx2_pcmp<mode>3_2, *avx2_gt<mode>3): New
32734 define_insn_and_split to lower avx512 vector comparison to avx
32735 version when dest is vector.
32736 (*<avx512>_cmp<mode>3,*<avx512>_cmp<mode>3,*<avx512>_ucmp<mode>3):
32737 define_insn_and_split for negating the comparison result.
32738 * config/i386/predicates.md (float_vector_all_ones_operand):
32740 * config/i386/i386-expand.c (ix86_expand_sse_movcc): Use
32741 general NOT operator without UNSPEC_MASKOP.
32743 2021-01-21 Vladimir N. Makarov <vmakarov@redhat.com>
32745 PR rtl-optimization/98777
32746 * lra-int.h (lra_pmode_pseudo): New extern.
32747 * lra.c (lra_pmode_pseudo): New global.
32749 * lra-eliminations.c (eliminate_regs_in_insn): Use it.
32751 2021-01-21 Ilya Leoshkevich <iii@linux.ibm.com>
32753 * fwprop.c (fwprop_propagation::classify_result): Allow
32754 (subreg (mem)) simplifications.
32756 2021-01-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32758 * config/aarch64/aarch64-simd.md (aarch64_sqdml<SBINQOPS:as>l<mode>):
32760 (aarch64_sqdmlal<mode>): ... This...
32761 (aarch64_sqdmlsl<mode>): ... And this.
32762 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>): Split into...
32763 (aarch64_sqdmlal_lane<mode>): ... This...
32764 (aarch64_sqdmlsl_lane<mode>): ... And this.
32765 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>): Split into...
32766 (aarch64_sqdmlsl_laneq<mode>): ... This...
32767 (aarch64_sqdmlal_laneq<mode>): ... And this.
32768 (aarch64_sqdml<SBINQOPS:as>l_n<mode>): Split into...
32769 (aarch64_sqdmlsl_n<mode>): ... This...
32770 (aarch64_sqdmlal_n<mode>): ... And this.
32771 (aarch64_sqdml<SBINQOPS:as>l2<mode>_internal): Split into...
32772 (aarch64_sqdmlal2<mode>_internal): ... This...
32773 (aarch64_sqdmlsl2<mode>_internal): ... And this.
32775 2021-01-21 Christophe Lyon <christophe.lyon@linaro.org>
32777 * config/arm/arm_mve.h (__arm_vcmpneq_s8): Fix return type.
32779 2021-01-21 Andrea Corallo <andrea.corallo@arm.com>
32782 * doc/sourcebuild.texi (arm_thumb2_no_arm_v8_1_lob): Document.
32784 2021-01-21 liuhongt <hongtao.liu@intel.com>
32786 PR rtl-optimization/98694
32787 * regcprop.c (copy_value): If SRC had been assigned a mode
32788 narrower than the copy, we can't link DEST into the chain even
32789 they have same hard_regno_nregs(i.e. HImode/SImode in i386
32792 2021-01-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32794 * config/aarch64/aarch64-simd.md (aarch64_get_lane<mode>):
32795 Convert to define_insn_and_split. Split into simple move when moving
32798 2021-01-20 Segher Boessenkool <segher@kernel.crashing.org>
32800 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Change assert.
32801 Adjust comment. Simplify code.
32803 2021-01-20 Jakub Jelinek <jakub@redhat.com>
32806 * dwarf2out.c (reset_indirect_string): Also reset indirect strings
32807 with DW_FORM_line_strp form.
32808 (prune_unused_types_update_strings): Don't add into debug_str_hash
32809 indirect strings with DW_FORM_line_strp form.
32810 (adjust_name_comp_dir): New function.
32811 (dwarf2out_finish): Call it on CU DIEs after resetting
32812 debug_line_str_hash.
32814 2021-01-20 Vladimir N. Makarov <vmakarov@redhat.com>
32816 PR rtl-optimization/98722
32817 * lra-eliminations.c (eliminate_regs_in_insn): Check that target
32818 has no 3-op add insn to transform insns containing two pluses.
32820 2021-01-20 Richard Biener <rguenther@suse.de>
32822 * hwint.h (add_hwi): New function.
32823 (mul_hwi): Likewise.
32824 * tree-data-ref.c (initialize_matrix_A): Properly translate
32825 tree constants and avoid HOST_WIDE_INT_MIN.
32826 (lambda_matrix_row_add): Avoid undefined integer overflow
32827 and return true on such overflow.
32828 (lambda_matrix_right_hermite): Handle overflow from
32829 lambda_matrix_row_add gracefully. Simplify previous fix.
32830 (analyze_subscript_affine_affine): Likewise.
32832 2021-01-20 Eugene Rozenfeld <erozen@microsoft.com>
32834 PR tree-optimization/96674
32835 * match.pd: New patterns: x < y || y == XXX_MIN --> x <= y - 1
32836 x >= y && y != XXX_MIN --> x > y - 1
32838 2021-01-20 Richard Sandiford <richard.sandiford@arm.com>
32840 PR tree-optimization/98535
32841 * tree-vect-slp.c (duplicate_and_interleave): Use quick_grow_cleared.
32842 If the high and low permutes are the same, remove the high permutes
32843 from the working set and only continue with the low ones.
32845 2021-01-20 Jakub Jelinek <jakub@redhat.com>
32847 PR tree-optimization/98721
32848 * builtins.c (access_ref::inform_access): Don't assume
32849 SSA_NAME_IDENTIFIER must be non-NULL. Print messages about
32850 object whenever allocfn is NULL, rather than only when DECL_P
32851 is true. Use %qE instead of %qD for that. Formatting fixes.
32853 2021-01-20 Richard Biener <rguenther@suse.de>
32855 PR tree-optimization/98758
32856 * tree-data-ref.c (int_divides_p): Use lambda_int arguments.
32857 (lambda_matrix_right_hermite): Avoid undefinedness with
32858 signed integer abs and multiplication.
32859 (analyze_subscript_affine_affine): Use lambda_int.
32861 2021-01-20 David Malcolm <dmalcolm@redhat.com>
32864 * dwarf2out.c (output_line_info): Rename static variable
32865 "generation", moving it out of the function to...
32866 (output_line_info_generation): New.
32867 (init_sections_and_labels): Likewise, renaming the variable to...
32868 (init_sections_and_labels_generation): New.
32869 (dwarf2out_c_finalize): Reset the new variables.
32871 2021-01-19 Martin Sebor <msebor@redhat.com>
32873 PR middle-end/98664
32874 * tree-ssa-live.c (remove_unused_scope_block_p): Keep scopes for
32875 all functions, even if they're not declared artificial or inline.
32876 * tree.c (tree_inlined_location): Use macro expansion location
32877 only if scope traversal fails to expose one.
32879 2021-01-19 Richard Sandiford <richard.sandiford@arm.com>
32881 PR rtl-optimization/92294
32882 * alias.c (compare_base_symbol_refs): Take an extra parameter
32883 and add the distance between two symbols to it. Enshrine in
32884 comments that -1 means "either 0 or 1, but we can't tell
32885 which at compile time".
32886 (memrefs_conflict_p): Update call accordingly.
32887 (rtx_equal_for_memref_p): Likewise. Take the distance between symbols
32890 2021-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32892 * config/aarch64/aarch64-simd-builtins.def (sqshl, uqshl,
32893 sqrshl, uqrshl, sqadd, uqadd, sqsub, uqsub, suqadd, usqadd, sqmovn,
32894 uqmovn, sqxtn2, uqxtn2, sqabs, sqneg, sqdmlal, sqdmlsl, sqdmlal_lane,
32895 sqdmlsl_lane, sqdmlal_laneq, sqdmlsl_laneq, sqdmlal_n, sqdmlsl_n,
32896 sqdmlal2, sqdmlsl2, sqdmlal2_lane, sqdmlsl2_lane, sqdmlal2_laneq,
32897 sqdmlsl2_laneq, sqdmlal2_n, sqdmlsl2_n, sqdmull, sqdmull_lane,
32898 sqdmull_laneq, sqdmull_n, sqdmull2, sqdmull2_lane, sqdmull2_laneq,
32899 sqdmull2_n, sqdmulh, sqrdmulh, sqdmulh_lane, sqdmulh_laneq,
32900 sqrdmulh_lane, sqrdmulh_laneq, sqshrun_n, sqrshrun_n, sqshrn_n,
32901 uqshrn_n, sqrshrn_n, uqrshrn_n, sqshlu_n, sqshl_n, uqshl_n, sqrdmlah,
32902 sqrdmlsh, sqrdmlah_lane, sqrdmlsh_lane, sqrdmlah_laneq, sqrdmlsh_laneq,
32903 sqmovun): Use NONE flags.
32905 2021-01-19 Richard Biener <rguenther@suse.de>
32908 * ipa-modref.c (analyze_stmt): Only record a summary for a
32911 2021-01-19 Richard Biener <rguenther@suse.de>
32913 PR middle-end/98638
32914 * tree-ssanames.c (fini_ssanames): Zero SSA_NAME_DEF_STMT.
32916 2021-01-19 Daniel Hellstrom <daniel@gaisler.com>
32918 * config/sparc/rtemself.h (TARGET_OS_CPP_BUILTINS): Add
32919 built-in define __FIX_LEON3FT_TN0018.
32921 2021-01-19 Richard Biener <rguenther@suse.de>
32924 * tree-inline.c (tree_function_versioning): Set input_location
32925 to UNKNOWN_LOCATION throughout the function.
32927 2021-01-19 Tobias Burnus <tobias@codesourcery.com>
32930 * omp-low.c (lower_omp_target): Handle nonpointer is_device_ptr.
32932 2021-01-19 Martin Jambor <mjambor@suse.cz>
32935 * ipa-sra.c (ssa_name_only_returned_p): New parameter fun. Check
32936 whether non-call exceptions allow removal of a statement.
32937 (isra_analyze_call): Pass the appropriate function to
32938 ssa_name_only_returned_p.
32940 2021-01-19 Geng Qi <gengqi@linux.alibaba.com>
32942 * config/riscv/arch-canonicalize (longext_sort): New function for
32943 sorting 'multi-letter'.
32944 * config/riscv/multilib-generator: Adjusting the loop of 'alt' in
32945 'alts'. The 'arch' may not be the first of 'alts'.
32946 (_expand_combination): Add underline for the 'ext' without '*'.
32947 This is because, a single-letter extension can always be treated well
32948 with a '_' prefix, but it cannot be separated out if it is appended
32951 2021-01-18 Vladimir N. Makarov <vmakarov@redhat.com>
32954 * ira.c (ira): Skip abnormal critical edge splitting.
32956 2021-01-18 Jakub Jelinek <jakub@redhat.com>
32958 PR tree-optimization/98727
32959 * tree-ssa-math-opts.c (match_arith_overflow): Fix up computation of
32960 second .MUL_OVERFLOW operand for signed multiplication with overflow
32961 checking if the second operand of multiplication is not constant.
32963 2021-01-18 David Edelsohn <dje.gcc@gmail.com>
32965 * doc/invoke.texi (-gdwarf): TPF defaults to version 2 and AIX
32966 defaults to version 4.
32968 2021-01-18 David Malcolm <dmalcolm@redhat.com>
32970 * attribs.h (fndecl_dealloc_argno): New decl.
32971 * builtins.c (call_dealloc_argno): Split out second half of
32973 (fndecl_dealloc_argno): New.
32974 * doc/extend.texi (Common Function Attributes): Document the
32975 interaction between the analyzer and the malloc attribute.
32976 * doc/invoke.texi (Static Analyzer Options): Likewise.
32978 2021-01-17 David Edelsohn <dje.gcc@gmail.com>
32980 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Override
32981 dwarf_version to 4.
32982 * config/rs6000/aix72.h (SUBTARGET_OVERRIDE_OPTIONS): Same.
32984 2021-01-17 Martin Jambor <mjambor@suse.cz>
32987 * cgraph.c (clone_of_p): Check also former_clone_of as we climb
32990 2021-01-17 Mark Wielaard <mark@klomp.org>
32992 * common.opt (gdwarf-): Init(5).
32993 * doc/invoke.texi (-gdwarf): Document default to 5.
32995 2021-01-16 Kwok Cheung Yeung <kcy@codesourcery.com>
32997 * builtin-types.def
32998 (BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT): Rename
33000 (BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT_PTR):
33001 ...this. Add extra argument.
33002 * gimplify.c (omp_default_clause): Ensure that event handle is
33003 firstprivate in a task region.
33004 (gimplify_scan_omp_clauses): Handle OMP_CLAUSE_DETACH.
33005 (gimplify_adjust_omp_clauses): Likewise.
33006 * omp-builtins.def (BUILT_IN_GOMP_TASK): Change function type to
33007 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT_PTR.
33008 * omp-expand.c (expand_task_call): Add GOMP_TASK_FLAG_DETACH to flags
33009 if detach clause specified. Add detach argument when generating
33011 * omp-low.c (scan_sharing_clauses): Setup data environment for detach
33013 (finish_taskreg_scan): Move field for variable containing the event
33014 handle to the front of the struct.
33015 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DETACH. Fix
33017 * tree-nested.c (convert_nonlocal_omp_clauses): Handle
33018 OMP_CLAUSE_DETACH clause.
33019 (convert_local_omp_clauses): Handle OMP_CLAUSE_DETACH clause.
33020 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_DETACH.
33021 * tree.c (omp_clause_num_ops): Add entry for OMP_CLAUSE_DETACH.
33023 (omp_clause_code_name): Add entry for OMP_CLAUSE_DETACH. Fix
33025 (walk_tree_1): Handle OMP_CLAUSE_DETACH.
33027 2021-01-16 Sebastian Huber <sebastian.huber@embedded-brains.de>
33029 * config/nios2/t-rtems: Reset all MULTILIB_* variables. Shorten
33030 multilib directory names. Use MULTILIB_REQUIRED instead of
33031 MULTILIB_EXCEPTIONS. Add -mhw-mul -mhw-mulx -mhw-div
33032 -mcustom-fpu-cfg=fph2 multilib.
33034 2021-01-16 Sebastian Huber <sebastian.huber@embedded-brains.de>
33036 * config/nios2/nios2.c (NIOS2_FPU_CONFIG_NUM): Adjust value.
33037 (nios2_init_fpu_configs): Provide register values for new
33038 -mcustom-fpu-cfg=fph2 option variant.
33039 * doc/invoke.texi (-mcustom-fpu-cfg=fph2): Document new option
33042 2021-01-16 Sebastian Huber <sebastian.huber@embedded-brains.de>
33044 * config/nios2/nios2.c (nios2_custom_check_insns): Remove
33045 custom instruction warnings.
33047 2021-01-16 Jakub Jelinek <jakub@redhat.com>
33049 PR tree-optimization/96669
33050 * match.pd ((CST << x) & 1 -> x == 0): New simplification.
33052 2021-01-16 Jakub Jelinek <jakub@redhat.com>
33054 PR tree-optimization/96271
33055 * passes.def: Pass false argument to first two pass_cd_dce
33056 instances and true to last instance. Add comment that
33057 last instance rewrites no longer addressed locals.
33058 * tree-ssa-dce.c (pass_cd_dce): Add update_address_taken_p member and
33060 (pass_cd_dce::set_pass_param): New method.
33061 (pass_cd_dce::execute): Return TODO_update_address_taken from
33062 last cd_dce instance.
33064 2021-01-15 Carl Love <cel@us.ibm.com>
33066 * config/rs6000/altivec.h (vec_mulh, vec_div, vec_dive, vec_mod):
33068 * config/rs6000/altivec.md (VIlong): Move define to file vsx.md.
33069 * config/rs6000/rs6000-builtin.def (DIVES_V4SI, DIVES_V2DI,
33070 DIVEU_V4SI, DIVEU_V2DI, DIVS_V4SI, DIVS_V2DI, DIVU_V4SI,
33071 DIVU_V2DI, MODS_V2DI, MODS_V4SI, MODU_V2DI, MODU_V4SI,
33072 MULHS_V2DI, MULHS_V4SI, MULHU_V2DI, MULHU_V4SI, MULLD_V2DI):
33073 Add builtin define.
33074 (MULH, DIVE, MOD): Add new BU_P10_OVERLOAD_2 definitions.
33075 * config/rs6000/rs6000-call.c (VSX_BUILTIN_VEC_DIV,
33076 VSX_BUILTIN_VEC_DIVE, P10_BUILTIN_VEC_MOD, P10_BUILTIN_VEC_MULH):
33077 New overloaded definitions.
33078 (builtin_function_type) [P10V_BUILTIN_DIVEU_V4SI,
33079 P10V_BUILTIN_DIVEU_V2DI, P10V_BUILTIN_DIVU_V4SI,
33080 P10V_BUILTIN_DIVU_V2DI, P10V_BUILTIN_MODU_V2DI,
33081 P10V_BUILTIN_MODU_V4SI, P10V_BUILTIN_MULHU_V2DI,
33082 P10V_BUILTIN_MULHU_V4SI]: Add case
33083 statement for builtins.
33084 * config/rs6000/rs6000.md (bits): Add new attribute sizes V4SI, V2DI.
33085 * config/rs6000/vsx.md (VIlong): Moved from config/rs6000/altivec.md.
33086 (UNSPEC_VDIVES, UNSPEC_VDIVEU): New unspec definitions.
33087 (vsx_mul_v2di): Add if TARGET_POWER10 statement.
33088 (vsx_udiv_v2di): Add if TARGET_POWER10 statement.
33089 (dives_<mode>, diveu_<mode>, div<mode>3, uvdiv<mode>3,
33090 mods_<mode>, modu_<mode>, mulhs_<mode>, mulhu_<mode>, mulv2di3):
33091 Add define_insn, mode is VIlong.
33092 * doc/extend.texi (vec_mulh, vec_mul, vec_div, vec_dive, vec_mod):
33093 Add builtin descriptions.
33095 2021-01-15 Eric Botcazou <ebotcazou@adacore.com>
33097 * final.c (final_start_function_1): Reset force_source_line.
33099 2021-01-15 Jakub Jelinek <jakub@redhat.com>
33101 PR tree-optimization/96669
33102 * match.pd (((1 << A) & 1) != 0 -> A == 0,
33103 ((1 << A) & 1) == 0 -> A != 0): Generalize for 1s replaced by
33104 possibly different power of two constants and to right shift too.
33106 2021-01-15 Jakub Jelinek <jakub@redhat.com>
33108 PR tree-optimization/96681
33109 * match.pd ((x < 0) ^ (y < 0) to (x ^ y) < 0): New simplification.
33110 ((x >= 0) ^ (y >= 0) to (x ^ y) < 0): Likewise.
33111 ((x < 0) ^ (y >= 0) to (x ^ y) >= 0): Likewise.
33112 ((x >= 0) ^ (y < 0) to (x ^ y) >= 0): Likewise.
33114 2021-01-15 Alexandre Oliva <oliva@adacore.com>
33116 * opts.c (gen_command_line_string): Exclude -dumpbase-ext.
33118 2021-01-15 Tamar Christina <tamar.christina@arm.com>
33120 * config/aarch64/aarch64-simd.md (cml<fcmac1><conj_op><mode>4,
33121 cmul<conj_op><mode>3): New.
33122 * config/aarch64/iterators.md (UNSPEC_FCMUL,
33123 UNSPEC_FCMUL180, UNSPEC_FCMLA_CONJ, UNSPEC_FCMLA180_CONJ,
33124 UNSPEC_CMLA_CONJ, UNSPEC_CMLA180_CONJ, UNSPEC_CMUL, UNSPEC_CMUL180,
33125 FCMLA_OP, FCMUL_OP, conj_op, rotsplit1, rotsplit2, fcmac1, sve_rot1,
33126 sve_rot2, SVE2_INT_CMLA_OP, SVE2_INT_CMUL_OP, SVE2_INT_CADD_OP): New.
33127 (rot): Add UNSPEC_FCMUL, UNSPEC_FCMUL180.
33128 (rot_op): Renamed to conj_op.
33129 * config/aarch64/aarch64-sve.md (cml<fcmac1><conj_op><mode>4,
33130 cmul<conj_op><mode>3): New.
33131 * config/aarch64/aarch64-sve2.md (cml<fcmac1><conj_op><mode>4,
33132 cmul<conj_op><mode>3): New.
33134 2021-01-15 David Malcolm <dmalcolm@redhat.com>
33138 (selftest::test_print_parseable_fixits_bytes_vs_display_columns):
33139 Escape the tempfile name when constructing the expected output.
33141 2021-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33143 * config/aarch64/aarch64-simd.md (*aarch64_<su>mlsl_hi<mode>):
33145 (aarch64_<su>mlsl_hi<mode>): ... This.
33146 (aarch64_<su>mlsl_hi<mode>): Define.
33147 (*aarch64_<su>mlsl<mode): Rename to...
33148 (aarch64_<su>mlsl<mode): ... This.
33149 * config/aarch64/aarch64-simd-builtins.def (smlsl, umlsl,
33150 smlsl_hi, umlsl_hi): Define builtins.
33151 * config/aarch64/arm_neon.h (vmlsl_high_s8, vmlsl_high_s16,
33152 vmlsl_high_s32, vmlsl_high_u8, vmlsl_high_u16, vmlsl_high_u32,
33153 vmlsl_s8, vmlsl_s16, vmlsl_s32, vmlsl_u8,
33154 vmlsl_u16, vmlsl_u32): Reimplement with builtins.
33156 2021-01-15 Uroš Bizjak <ubizjak@gmail.com>
33158 * config/i386/i386-c.c (ix86_target_macros):
33159 Use cpp_define_formatted for __SIZEOF_FLOAT80__ definition.
33161 2021-01-15 Richard Sandiford <richard.sandiford@arm.com>
33164 * config.gcc (aarch64*-*-*): Add aarch64-cc-fusion.o to extra_objs.
33165 * Makefile.in (RTL_SSA_H): New variable.
33166 * config/aarch64/t-aarch64 (aarch64-cc-fusion.o): New rule.
33167 * config/aarch64/aarch64-protos.h (make_pass_cc_fusion): Declare.
33168 * config/aarch64/aarch64-passes.def: Add pass_cc_fusion after
33170 * config/aarch64/aarch64-cc-fusion.cc: New file.
33172 2021-01-15 Richard Sandiford <richard.sandiford@arm.com>
33174 * recog.h (insn_change_watermark::~insn_change_watermark): Avoid
33175 calling cancel_changes for changes that no longer exist.
33177 2021-01-15 Richard Sandiford <richard.sandiford@arm.com>
33179 * rtl-ssa/functions.h (function_info::ref_defs): Rename to...
33180 (function_info::reg_defs): ...this.
33181 * rtl-ssa/member-fns.inl (function_info::ref_defs): Rename to...
33182 (function_info::reg_defs): ...this.
33184 2021-01-15 Christophe Lyon <christophe.lyon@linaro.org>
33187 * config/arm/arm_neon.h (vceqz_p64, vceqq_p64, vceqzq_p64): New.
33189 2021-01-15 Christophe Lyon <christophe.lyon@linaro.org>
33192 2021-01-15 Christophe Lyon <christophe.lyon@linaro.org>
33195 * config/arm/arm_neon.h (vceqz_p64, vceqq_p64, vceqzq_p64): New.
33197 2021-01-15 Richard Biener <rguenther@suse.de>
33199 PR tree-optimization/96376
33200 * tree-vect-stmts.c (get_load_store_type): Disregard alignment
33201 for VMAT_INVARIANT.
33203 2021-01-15 Martin Liska <mliska@suse.cz>
33205 * doc/install.texi: Document that some tests need pytest module.
33206 * doc/sourcebuild.texi: Likewise.
33208 2021-01-15 Christophe Lyon <christophe.lyon@linaro.org>
33211 * config/arm/arm_neon.h (vceqz_p64, vceqq_p64, vceqzq_p64): New.
33213 2021-01-15 Christophe Lyon <christophe.lyon@linaro.org>
33215 * config/arm/mve.md (mve_vshrq_n_s<mode>_imm): New entry.
33216 (mve_vshrq_n_u<mode>_imm): Likewise.
33217 * config/arm/neon.md (vashr<mode>3, vlshr<mode>3): Move to ...
33218 * config/arm/vec-common.md: ... here.
33220 2021-01-15 Christophe Lyon <christophe.lyon@linaro.org>
33222 * config/arm/mve.md (mve_vshlq_<supf><mode>): Move to
33224 * config/arm/neon.md (vashl<mode>3): Delete.
33225 * config/arm/vec-common.md (mve_vshlq_<supf><mode>): New.
33226 (vasl<mode>3): New expander.
33228 2021-01-15 Richard Biener <rguenther@suse.de>
33230 PR tree-optimization/98685
33231 * tree-vect-slp.c (vect_schedule_slp_node): Refactor handling
33232 of vector extern defs.
33234 2021-01-14 David Malcolm <dmalcolm@redhat.com>
33237 * diagnostic.c (diagnostic_kind_text): Break out this array
33239 (diagnostic_build_prefix): ...here.
33240 (fancy_abort): Detect when diagnostic_initialize has not yet been
33241 called and fall back to a minimal implementation of printing the
33242 ICE, rather than segfaulting in internal_error.
33244 2021-01-14 David Malcolm <dmalcolm@redhat.com>
33246 * diagnostic.c (diagnostic_initialize): Eliminate
33247 parseable_fixits_p in favor of initializing extra_output_kind from
33248 GCC_EXTRA_DIAGNOSTIC_OUTPUT.
33249 (convert_column_unit): New function, split out from...
33250 (diagnostic_converted_column): ...this.
33251 (print_parseable_fixits): Add "column_unit" and "tabstop" params.
33252 Use them to call convert_column_unit on the column values.
33253 (diagnostic_report_diagnostic): Eliminate conditional on
33254 parseable_fixits_p in favor of a switch statement on
33255 extra_output_kind, passing the appropriate values to the new
33256 params of print_parseable_fixits.
33257 (selftest::test_print_parseable_fixits_none): Update for new
33258 params of print_parseable_fixits.
33259 (selftest::test_print_parseable_fixits_insert): Likewise.
33260 (selftest::test_print_parseable_fixits_remove): Likewise.
33261 (selftest::test_print_parseable_fixits_replace): Likewise.
33262 (selftest::test_print_parseable_fixits_bytes_vs_display_columns):
33264 (selftest::diagnostic_c_tests): Call it.
33265 * diagnostic.h (enum diagnostics_extra_output_kind): New.
33266 (diagnostic_context::parseable_fixits_p): Delete field in favor
33268 (diagnostic_context::extra_output_kind): ...this new field.
33269 * doc/invoke.texi (Environment Variables): Add
33270 GCC_EXTRA_DIAGNOSTIC_OUTPUT.
33271 * opts.c (common_handle_option): Update handling of
33272 OPT_fdiagnostics_parseable_fixits for change to diagnostic_context
33275 2021-01-14 Tamar Christina <tamar.christina@arm.com>
33277 * tree-vect-slp-patterns.c (class complex_operations_pattern,
33278 complex_operations_pattern::matches,
33279 complex_operations_pattern::recognize,
33280 complex_operations_pattern::build): New.
33281 (slp_patterns): Use it.
33283 2021-01-14 Tamar Christina <tamar.christina@arm.com>
33285 * internal-fn.def (COMPLEX_FMS, COMPLEX_FMS_CONJ): New.
33286 * optabs.def (cmls_optab, cmls_conj_optab): New.
33287 * doc/md.texi: Document them.
33288 * tree-vect-slp-patterns.c (class complex_fms_pattern,
33289 complex_fms_pattern::matches, complex_fms_pattern::recognize,
33290 complex_fms_pattern::build): New.
33292 2021-01-14 Tamar Christina <tamar.christina@arm.com>
33294 * internal-fn.def (COMPLEX_FMA, COMPLEX_FMA_CONJ): New.
33295 * optabs.def (cmla_optab, cmla_conj_optab): New.
33296 * doc/md.texi: Document them.
33297 * tree-vect-slp-patterns.c (vect_match_call_p,
33298 class complex_fma_pattern, vect_slp_reset_pattern,
33299 complex_fma_pattern::matches, complex_fma_pattern::recognize,
33300 complex_fma_pattern::build): New.
33302 2021-01-14 Tamar Christina <tamar.christina@arm.com>
33304 * internal-fn.def (COMPLEX_MUL, COMPLEX_MUL_CONJ): New.
33305 * optabs.def (cmul_optab, cmul_conj_optab): New.
33306 * doc/md.texi: Document them.
33307 * tree-vect-slp-patterns.c (vect_match_call_complex_mla,
33308 vect_normalize_conj_loc, is_eq_or_top, vect_validate_multiplication,
33309 vect_build_combine_node, class complex_mul_pattern,
33310 complex_mul_pattern::matches, complex_mul_pattern::recognize,
33311 complex_mul_pattern::build): New.
33313 2021-01-14 Tamar Christina <tamar.christina@arm.com>
33315 * tree-vect-slp.c (optimize_load_redistribution_1): New.
33316 (optimize_load_redistribution, vect_is_slp_load_node): New.
33317 (vect_match_slp_patterns): Use it.
33319 2021-01-14 Tamar Christina <tamar.christina@arm.com>
33321 * tree-vect-slp-patterns.c (complex_add_pattern::build):
33324 2021-01-14 Thomas Schwinge <thomas@codesourcery.com>
33326 * config/gcn/mkoffload.c (main): Create an offload image only in
33327 64-bit configurations.
33329 2021-01-14 H.J. Lu <hjl.tools@gmail.com>
33332 * config/i386/i386-options.c (ix86_option_override_internal):
33333 Issue an error for -fcf-protection with CF_BRANCH when compiling
33334 for 32-bit non-TARGET_CMOV targets.
33336 2021-01-14 Uroš Bizjak <ubizjak@gmail.com>
33339 * config/i386/i386-options.c (ix86_valid_target_attribute_inner_p):
33340 Remove declaration and initialization of shadow variable "ret".
33341 (ix86_option_override_internal): Remove delcaration of
33342 shadow variable "i". Redeclare shadowed variable to unsigned.
33343 * common/config/i386/i386-common.c (pta_size): Redeclare to unsigned.
33344 * config/i386/i386-builtins.c (get_builtin_code_for_version):
33345 Update for redeclaration.
33346 * config/i386/i386.h (pta_size): Ditto.
33348 2021-01-14 Richard Biener <rguenther@suse.de>
33350 PR tree-optimization/98674
33351 * tree-data-ref.c (base_supports_access_fn_components_p): New.
33352 (initialize_data_dependence_relation): For two bases without
33353 possible access fns resort to type size equality when determining
33354 shape compatibility.
33356 2021-01-14 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
33359 * config/arm/arm_neon.h: Replace calls to __builtin_vcge* by
33360 <=, >= operators in vcle and vcge intrinsics respectively.
33361 * config/arm/arm_neon_builtins.def: Remove entry for
33364 2021-01-14 Uroš Bizjak <ubizjak@gmail.com>
33367 * config/i386/i386-options.c (ix86_function_specific_save):
33368 Remove redundant assignment to opts->x_ix86_branch_cost.
33369 * config/i386/i386.c (ix86_prefetch_sse):
33370 Rename from x86_prefetch_sse. Update all uses.
33371 * config/i386/i386.h: Update for rename.
33372 * config/i386/i386-options.h: Ditto.
33374 2021-01-14 Jakub Jelinek <jakub@redhat.com>
33377 * config/i386/sse.md (*sse4_1_zero_extendv8qiv8hi2_3,
33378 *sse4_1_zero_extendv4hiv4si2_3, *sse4_1_zero_extendv2siv2di2_3):
33379 Use Bm instead of m for non-avx. Add isa attribute.
33381 2021-01-14 Jakub Jelinek <jakub@redhat.com>
33383 PR tree-optimization/96688
33384 * match.pd (~(X >> Y) -> ~X >> Y): New simplification if
33385 ~X can be simplified.
33387 2021-01-14 Richard Sandiford <richard.sandiford@arm.com>
33389 * tree-vect-stmts.c (vect_model_load_cost): Account for unused
33390 IFN_LOAD_LANES results.
33392 2021-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33394 * config/aarch64/aarch64-simd.md (aarch64_<su>xtl<mode>):
33396 (aarch64_xtn<mode>): Likewise.
33397 * config/aarch64/aarch64-simd-builtins.def (sxtl, uxtl, xtn):
33400 * config/aarch64/arm_neon.h (vmovl_s8): Reimplement using
33402 (vmovl_s16): Likewise.
33403 (vmovl_s32): Likewise.
33404 (vmovl_u8): Likewise.
33405 (vmovl_u16): Likewise.
33406 (vmovl_u32): Likewise.
33407 (vmovn_s16): Likewise.
33408 (vmovn_s32): Likewise.
33409 (vmovn_s64): Likewise.
33410 (vmovn_u16): Likewise.
33411 (vmovn_u32): Likewise.
33412 (vmovn_u64): Likewise.
33414 2021-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33416 * config/aarch64/aarch64-simd.md (aarch64_<su>qxtn2<mode>_le):
33418 (aarch64_<su>qxtn2<mode>_be): Likewise.
33419 (aarch64_<su>qxtn2<mode>): Likewise.
33420 * config/aarch64/aarch64-simd-builtins.def (sqxtn2, uqxtn2):
33422 * config/aarch64/iterators.md (SAT_TRUNC): Define code_iterator.
33423 (su): Handle ss_truncate and us_truncate.
33424 * config/aarch64/arm_neon.h (vqmovn_high_s16): Reimplement using
33426 (vqmovn_high_s32): Likewise.
33427 (vqmovn_high_s64): Likewise.
33428 (vqmovn_high_u16): Likewise.
33429 (vqmovn_high_u32): Likewise.
33430 (vqmovn_high_u64): Likewise.
33432 2021-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33434 * config/aarch64/aarch64-simd.md (aarch64_xtn2<mode>_le):
33436 (aarch64_xtn2<mode>_be): Likewise.
33437 (aarch64_xtn2<mode>): Likewise.
33438 * config/aarch64/aarch64-simd-builtins.def (xtn2): Define
33440 * config/aarch64/arm_neon.h (vmovn_high_s16): Reimplement using
33442 (vmovn_high_s32): Likewise.
33443 (vmovn_high_s64): Likewise.
33444 (vmovn_high_u16): Likewise.
33445 (vmovn_high_u32): Likewise.
33446 (vmovn_high_u64): Likewise.
33448 2021-01-13 Stafford Horne <shorne@gmail.com>
33450 * config/or1k/or1k.h (ASM_PREFERRED_EH_DATA_FORMAT): New macro.
33452 2021-01-13 Stafford Horne <shorne@gmail.com>
33454 * config/or1k/linux.h (TARGET_ASM_FILE_END): Define macro.
33456 2021-01-13 Stafford Horne <shorne@gmail.com>
33458 * config/or1k/or1k.h (TARGET_CPU_CPP_BUILTINS): Add builtin
33459 define for __or1k_hard_float__.
33461 2021-01-13 Stafford Horne <shorne@gmail.com>
33463 * config/or1k/or1k.h (NO_PROFILE_COUNTERS): Define as 1.
33464 (PROFILE_HOOK): Define to call _mcount.
33465 (FUNCTION_PROFILER): Change from abort to no-op.
33467 2021-01-13 Jakub Jelinek <jakub@redhat.com>
33469 PR tree-optimization/96691
33470 * match.pd ((~X | C) ^ D -> (X | C) ^ (~D ^ C),
33471 (~X & C) ^ D -> (X & C) ^ (D ^ C)): New simplifications if
33472 (~D ^ C) or (D ^ C) can be simplified.
33474 2021-01-13 Richard Biener <rguenther@suse.de>
33476 PR tree-optimization/92645
33477 * match.pd (BIT_FIELD_REF to conversion): Delay canonicalization
33478 until after vector lowering.
33480 2021-01-13 Richard Sandiford <richard.sandiford@arm.com>
33482 * config/aarch64/aarch64-sve.md (fnma<mode>4): Extend from SVE_FULL_I
33484 (@aarch64_pred_fnma<mode>, cond_fnma<mode>, *cond_fnma<mode>_2)
33485 (*cond_fnma<mode>_4, *cond_fnma<mode>_any): Likewise.
33487 2021-01-13 Richard Sandiford <richard.sandiford@arm.com>
33489 * config/aarch64/aarch64-sve.md (fma<mode>4): Extend from SVE_FULL_I
33491 (@aarch64_pred_fma<mode>, cond_fma<mode>, *cond_fma<mode>_2)
33492 (*cond_fma<mode>_4, *cond_fma<mode>_any): Likewise.
33494 2021-01-13 Richard Biener <rguenther@suse.de>
33496 PR tree-optimization/92645
33497 * tree-vect-slp.c (vect_build_slp_tree_1): Relax supported
33498 BIT_FIELD_REF argument.
33499 (vect_build_slp_tree_2): Record the desired vector type
33500 on the external vector def.
33501 (vectorizable_slp_permutation): Handle required punning
33502 of existing vector defs.
33504 2021-01-13 Richard Sandiford <richard.sandiford@arm.com>
33506 * rtl-ssa/accesses.h (def_lookup): Fix order of comparison results.
33508 2021-01-13 Richard Sandiford <richard.sandiford@arm.com>
33510 * config/sh/sh.md (movsf_ie): Remove operands[2] test.
33512 2021-01-13 Samuel Thibault <samuel.thibault@ens-lyon.org>
33514 * config.gcc [$target == *-*-gnu*]: Enable
33515 'default_gnu_indirect_function'.
33517 2021-01-13 Jakub Jelinek <jakub@redhat.com>
33520 * optabs.c (expand_vec_perm_const): Don't force v0 and v1 into
33521 registers before calling targetm.vectorize.vec_perm_const, only after
33523 * config/i386/i386-expand.c (ix86_vectorize_vec_perm_const): Handle
33524 two argument permutation when one operand is zero vector and only
33525 after that force operands into registers.
33526 * config/i386/sse.md (*avx2_zero_extendv16qiv16hi2_1): New
33527 define_insn_and_split pattern.
33528 (*avx512bw_zero_extendv32qiv32hi2_1): Likewise.
33529 (*avx512f_zero_extendv16hiv16si2_1): Likewise.
33530 (*avx2_zero_extendv8hiv8si2_1): Likewise.
33531 (*avx512f_zero_extendv8siv8di2_1): Likewise.
33532 (*avx2_zero_extendv4siv4di2_1): Likewise.
33533 * config/mips/mips.c (mips_vectorize_vec_perm_const): Force operands
33535 * config/arm/arm.c (arm_vectorize_vec_perm_const): Likewise.
33536 * config/sparc/sparc.c (sparc_vectorize_vec_perm_const): Likewise.
33537 * config/ia64/ia64.c (ia64_vectorize_vec_perm_const): Likewise.
33538 * config/aarch64/aarch64.c (aarch64_vectorize_vec_perm_const): Likewise.
33539 * config/rs6000/rs6000.c (rs6000_vectorize_vec_perm_const): Likewise.
33540 * config/gcn/gcn.c (gcn_vectorize_vec_perm_const): Likewise. Use std::swap.
33542 2021-01-13 Martin Liska <mliska@suse.cz>
33544 PR tree-optimization/98455
33545 * gimple-if-to-switch.cc (condition_info::record_phi_mapping):
33546 Record also virtual PHIs.
33547 (pass_if_to_switch::execute): Return TODO_cleanup_cfg only
33550 2021-01-13 Jonathan Wakely <jwakely@redhat.com>
33552 * doc/invoke.texi (C++ Modules): Fix typos.
33554 2021-01-13 Richard Biener <rguenther@suse.de>
33556 PR tree-optimization/98640
33557 * tree-ssa-sccvn.c (visit_nary_op): Do not try to
33558 handle plus or minus from a truncated operand to be
33561 2021-01-13 Jakub Jelinek <jakub@redhat.com>
33564 * config/i386/i386.md (*btr<mode>_1, *btr<mode>_2): New
33565 define_insn_and_split patterns.
33566 (splitter after *btr<mode>_2): New splitter.
33568 2021-01-13 Martin Liska <mliska@suse.cz>
33571 * cgraphunit.c (analyze_functions): Remove dead code.
33573 2021-01-13 Qian Jianhua <qianjh@cn.fujitsu.com>
33575 * config/aarch64/aarch64-cost-tables.h (a64fx_extra_costs): New.
33576 * config/aarch64/aarch64.c (a64fx_addrcost_table): New.
33577 (a64fx_regmove_cost, a64fx_vector_cost): New.
33578 (a64fx_tunings): Use the new added cost tables.
33580 2021-01-13 Jakub Jelinek <jakub@redhat.com>
33583 * config/i386/predicates.md (pmovzx_parallel): New predicate.
33584 * config/i386/sse.md (*sse4_1_zero_extendv8qiv8hi2_3): New
33585 define_insn_and_split pattern.
33586 (*sse4_1_zero_extendv4hiv4si2_3): Likewise.
33587 (*sse4_1_zero_extendv2siv2di2_3): Likewise.
33589 2021-01-13 Julian Brown <julian@codesourcery.com>
33591 * config/gcn/gcn.c (gcn_conditional_register_usage): Remove dead code
33592 to fix v0 register.
33594 2021-01-13 Julian Brown <julian@codesourcery.com>
33596 * config/gcn/gcn.c (gcn_md_reorg): Fix case where EXEC reg is live
33599 2021-01-13 Julian Brown <julian@codesourcery.com>
33601 * config/gcn/gcn-valu.md (recip<mode>2<exec>, recip<mode>2): Use unspec
33602 for reciprocal-approximation instructions.
33603 (div<mode>3): Use fused multiply-accumulate operations for reciprocal
33604 refinement and division result.
33605 * config/gcn/gcn.md (UNSPEC_RCP): New unspec constant.
33607 2021-01-13 Julian Brown <julian@codesourcery.com>
33609 * config/gcn/gcn-valu.md (subdf): Rename to...
33612 2021-01-12 Martin Liska <mliska@suse.cz>
33614 * gcov.c (source_info::debug): Fix printf format for 32-bit hosts.
33616 2021-01-12 Andrea Corallo <andrea.corallo@arm.com>
33618 * function-abi.h: Fix typo.
33620 2021-01-12 Christophe Lyon <christophe.lyon@linaro.org>
33624 * config/arm/arm.h (ARM_HAVE_NEON_V8QI_LDST): New macro.
33625 (ARM_HAVE_NEON_V16QI_LDST, ARM_HAVE_NEON_V4HI_LDST): Likewise.
33626 (ARM_HAVE_NEON_V8HI_LDST, ARM_HAVE_NEON_V2SI_LDST): Likewise.
33627 (ARM_HAVE_NEON_V4SI_LDST, ARM_HAVE_NEON_V4HF_LDST): Likewise.
33628 (ARM_HAVE_NEON_V8HF_LDST, ARM_HAVE_NEON_V4BF_LDST): Likewise.
33629 (ARM_HAVE_NEON_V8BF_LDST, ARM_HAVE_NEON_V2SF_LDST): Likewise.
33630 (ARM_HAVE_NEON_V4SF_LDST, ARM_HAVE_NEON_DI_LDST): Likewise.
33631 (ARM_HAVE_NEON_V2DI_LDST): Likewise.
33632 (ARM_HAVE_V8QI_LDST, ARM_HAVE_V16QI_LDST): Likewise.
33633 (ARM_HAVE_V4HI_LDST, ARM_HAVE_V8HI_LDST): Likewise.
33634 (ARM_HAVE_V2SI_LDST, ARM_HAVE_V4SI_LDST, ARM_HAVE_V4HF_LDST): Likewise.
33635 (ARM_HAVE_V8HF_LDST, ARM_HAVE_V4BF_LDST, ARM_HAVE_V8BF_LDST): Likewise.
33636 (ARM_HAVE_V2SF_LDST, ARM_HAVE_V4SF_LDST, ARM_HAVE_DI_LDST): Likewise.
33637 (ARM_HAVE_V2DI_LDST): Likewise.
33638 * config/arm/mve.md (*movmisalign<mode>_mve_store): New pattern.
33639 (*movmisalign<mode>_mve_load): New pattern.
33640 * config/arm/neon.md (movmisalign<mode>): Move to ...
33641 * config/arm/vec-common.md: ... here.
33643 2021-01-12 Vladimir N. Makarov <vmakarov@redhat.com>
33646 * lra-eliminations.c (eliminate_regs_in_insn): Add transformation
33647 of pattern 'plus (plus (hard reg, const), pseudo)'.
33649 2021-01-12 Richard Biener <rguenther@suse.de>
33651 PR tree-optimization/98550
33652 * tree-vect-slp.c (vect_record_max_nunits): Check whether
33653 the group size is a multiple of the vector element count.
33654 (vect_build_slp_tree_1): When we need to fail because
33655 the vector type choosen causes unrolling do so lazily
33656 without affecting matches only at the end to guide group splitting.
33658 2021-01-12 Martin Liska <mliska@suse.cz>
33661 * optc-save-gen.awk: Compare also n_target_save vars with
33664 2021-01-12 Martin Liska <mliska@suse.cz>
33666 * gcov.c (source_info::debug): New.
33667 (print_usage): Add --debug (-D) option.
33668 (process_args): Likewise.
33669 (generate_results): Call src->debug after
33670 accumulate_line_counts.
33671 (read_graph_file): Properly assign id for EXIT_BLOCK.
33672 * profile.c (branch_prob): Dump function body before it is
33675 2021-01-12 Jakub Jelinek <jakub@redhat.com>
33677 PR tree-optimization/98629
33678 * tree-ssa-math-opts.c (arith_overflow_check_p): Don't update use_stmt
33679 unless returning non-zero.
33681 2021-01-12 Jakub Jelinek <jakub@redhat.com>
33683 PR tree-optimization/95731
33684 * tree-ssa-reassoc.c (optimize_range_tests_cmp_bitwise): Also optimize
33685 x < 0 && y < 0 && z < 0 into (x | y | z) < 0 for signed x, y, z.
33686 (optimize_range_tests): Call optimize_range_tests_cmp_bitwise
33687 only after optimize_range_tests_var_bound.
33689 2021-01-12 Jakub Jelinek <jakub@redhat.com>
33691 * configure.ac: Ensure c/Make-lang.in comes first in @all_lang_makefrags@.
33692 * configure: Regenerated.
33694 2021-01-12 liuhongt <hongtao.liu@intel.com>
33697 * config/i386/i386-builtins.h (BUILTIN_DESC_SWAP_OPERANDS):
33699 * config/i386/i386-expand.c (ix86_expand_sse_comi): Delete
33702 2021-01-12 Alexandre Oliva <oliva@adacore.com>
33704 * ssa-iterators.h (end_imm_use_stmt_traverse): Forward
33706 (auto_end_imm_use_stmt_traverse): New struct.
33707 (FOR_EACH_IMM_USE_STMT): Use it.
33708 (BREAK_FROM_IMM_USE_STMT, RETURN_FROM_IMM_USE_STMT): Remove,
33710 * gimple-ssa-strength-reduction.c: ... here, ...
33711 * graphite-scop-detection.c: ... here, ...
33712 * ipa-modref.c, ipa-pure-const.c, ipa-sra.c: ... here, ...
33713 * tree-predcom.c, tree-ssa-ccp.c: ... here, ...
33714 * tree-ssa-dce.c, tree-ssa-dse.c: ... here, ...
33715 * tree-ssa-loop-ivopts.c, tree-ssa-math-opts.c: ... here, ...
33716 * tree-ssa-phiprop.c, tree-ssa.c: ... here, ...
33717 * tree-vect-slp.c: ... and here, ...
33718 * doc/tree-ssa.texi: ... and the example here.
33720 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
33722 * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3): Extend from
33723 SVE_FULL_I to SVE_I. Generate an UNSPEC_PRED_X.
33724 (*sdiv_pow2<mode>3): New pattern.
33725 (@cond_<sve_int_op><mode>): Extend from SVE_FULL_I to SVE_I.
33726 Wrap the ASRD in an UNSPEC_PRED_X.
33727 (*cond_<sve_int_op><mode>_2): Likewise. Replace the UNSPEC_PRED_X
33728 predicate with a constant PTRUE, if it isn't already.
33729 (*cond_<sve_int_op><mode>_z): Replace with...
33730 (*cond_<sve_int_op><mode>_any): ...this new pattern.
33732 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
33734 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2): Extend from
33735 SVE_FULL_I to SVE_I.
33736 (*cond_bic<mode>_any): Likewise.
33738 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
33740 * config/aarch64/aarch64-sve.md (<su>mul<mode>3_highpart)
33741 (@aarch64_pred_<MUL_HIGHPART:optab><mode>): Extend from SVE_FULL_I
33744 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
33746 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): Extend from
33747 SVE_FULL_I to SVE_I.
33748 (*aarch64_cond_<su>abd<mode>_2): Likewise.
33749 (*aarch64_cond_<su>abd<mode>_any): Likewise.
33750 (@aarch64_pred_<su>abd<mode>): Likewise. Use UNSPEC_PRED_X
33751 for the max and min but not for the minus.
33752 (*aarch64_cond_<su>abd<mode>_3): New pattern.
33754 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
33756 * config/aarch64/iterators.md (SVE_24I): New iterator.
33757 * config/aarch64/aarch64-sve.md (*aarch64_adr<mode>_shift): Extend from
33758 SVE_FULL_SDI to SVE_24I. Use containers rather than elements.
33760 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
33762 * config/aarch64/aarch64-sve.md (@cond_<SVE_INT_BINARY:optab><mode>)
33763 (*cond_<SVE_INT_BINARY:optab><mode>_2): Extend from SVE_FULL_I
33765 (*cond_<SVE_INT_BINARY:optab><mode>_3): Likewise.
33766 (*cond_<SVE_INT_BINARY:optab><mode>_any): Likewise.
33767 (*cond_<SVE_INT_BINARY:optab><mode>_2_const): Likewise.
33768 (*cond_<SVE_INT_BINARY:optab><mode>_any_const): Likewise.
33770 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
33772 * config/aarch64/aarch64-sve.md (<SVE_INT_BINARY_IMM:optab><mode>3)
33773 (@aarch64_pred_<SVE_INT_BINARY_IMM:optab><mode>)
33774 (*post_ra_<SVE_INT_BINARY_IMM:optab><mode>3): Extend from SVE_FULL_I
33777 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
33779 * config/aarch64/aarch64-sve.md (<ASHIFT:optab><mode>3)
33780 (v<ASHIFT:optab><mode>3, @aarch64_pred_<optab><mode>)
33781 (*post_ra_v<ASHIFT:optab><mode>3): Extend from SVE_FULL_I to SVE_I.
33783 2021-01-11 Martin Liska <mliska@suse.cz>
33786 * symtab-clones.h (clone_info::release): Release
33787 symtab::m_clones with ggc_delete as it's a GGC memory.
33789 2021-01-11 Matthias Klose <doko@ubuntu.com>
33791 * Makefile.in (LINK_PROGRESS): Show the link target.
33793 2021-01-11 Richard Biener <rguenther@suse.de>
33795 PR tree-optimization/91403
33796 * tree-vect-data-refs.c (vect_analyze_group_access_1): Cap
33797 single-element interleaving group size at 4096 elements.
33799 2021-01-11 Richard Biener <rguenther@suse.de>
33801 PR tree-optimization/98526
33802 * tree-vect-loop.c (vect_model_reduction_cost): Remove costing
33803 of the actual reduction op for the regular case.
33804 (vectorizable_reduction): Cost the stmts
33805 vect_transform_reduction produces here.
33807 2021-01-11 Andreas Krebbel <krebbel@linux.ibm.com>
33809 * tree-ssa-forwprop.c (simplify_vector_constructor): For
33810 big-endian, use UNPACK[_FLOAT]_HI.
33812 2021-01-11 Tamar Christina <tamar.christina@arm.com>
33814 * tree-vect-slp-patterns.c (class complex_pattern,
33815 class complex_add_pattern): Add parameters to matches.
33816 (complex_add_pattern::build): Free memory.
33817 (complex_add_pattern::matches): Move validation end of match.
33818 (complex_add_pattern::recognize): Likewise.
33820 2021-01-11 Tamar Christina <tamar.christina@arm.com>
33822 * tree-vect-slp-patterns.c (linear_loads_p): Fix externals.
33824 2021-01-11 Tamar Christina <tamar.christina@arm.com>
33826 * tree-vect-slp-patterns.c (is_linear_load_p): Fix ambiguity.
33828 2021-01-11 Jakub Jelinek <jakub@redhat.com>
33830 PR tree-optimization/95867
33831 * tree-ssa-math-opts.h: New header.
33832 * tree-ssa-math-opts.c: Include tree-ssa-math-opts.h.
33833 (powi_as_mults): No longer static. Use build_one_cst instead of
33834 build_real. Formatting fix.
33835 * tree-ssa-reassoc.c: Include tree-ssa-math-opts.h.
33836 (attempt_builtin_powi): Handle multiplication reassociation without
33837 powi_fndecl using powi_as_mults.
33838 (reassociate_bb): For integral types don't require
33839 -funsafe-math-optimizations to call attempt_builtin_powi.
33841 2021-01-11 Jakub Jelinek <jakub@redhat.com>
33843 PR tree-optimization/95852
33844 * tree-ssa-math-opts.c (maybe_optimize_guarding_check): Change
33845 mul_stmts parameter type to vec<gimple *> &. Before cond_stmt
33846 allow in the bb any of the stmts in that vector, div_stmt and
33847 up to 3 cast stmts.
33848 (arith_cast_equal_p): New function.
33849 (arith_overflow_check_p): Add cast_stmt argument, handle signed
33850 multiply overflow checks.
33851 (match_arith_overflow): Adjust caller. Handle signed multiply
33854 2021-01-11 Jakub Jelinek <jakub@redhat.com>
33856 PR tree-optimization/95852
33857 * tree-ssa-math-opts.c (maybe_optimize_guarding_check): New function.
33858 (uaddsub_overflow_check_p): Renamed to ...
33859 (arith_overflow_check_p): ... this. Handle also multiplication
33860 with overflow check.
33861 (match_uaddsub_overflow): Renamed to ...
33862 (match_arith_overflow): ... this. Add cfg_changed argument. Handle
33863 also multiplication with overflow check. Adjust function comment.
33864 (math_opts_dom_walker::after_dom_children): Adjust callers. Call
33865 match_arith_overflow also for MULT_EXPR.
33867 2021-01-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33869 * config/aarch64/arm_neon.h (vmovl_s8): Reimplement using
33870 __builtin_convertvector.
33871 (vmovl_s16): Likewise.
33872 (vmovl_s32): Likewise.
33873 (vmovl_u8): Likewise.
33874 (vmovl_u16): Likewise.
33875 (vmovl_u32): Likewise.
33876 (vmovn_s16): Likewise.
33877 (vmovn_s32): Likewise.
33878 (vmovn_s64): Likewise.
33879 (vmovn_u16): Likewise.
33880 (vmovn_u32): Likewise.
33881 (vmovn_u64): Likewise.
33883 2021-01-11 Martin Liska <mliska@suse.cz>
33885 * gimple-if-to-switch.cc (struct condition_info): Use auto_var.
33886 (if_chain::is_beneficial): Delete clusters
33887 (find_conditions): Make second argument of conditions_in_bbs a
33888 pointer so that we control over it's lifetime.
33889 (pass_if_to_switch::execute): Delete them.
33891 2021-01-11 Kewen Lin <linkw@linux.ibm.com>
33893 * ira.c (move_unallocated_pseudos): Check other_reg and skip if
33896 2021-01-09 Maciej W. Rozycki <macro@linux-mips.org>
33898 * config/vax/vax.md (cc): Remove mode attribute.
33899 (subst_<cc>, subst_f<cc>): Rename to...
33900 (subst_<mode>, subst_f<VAXccnz:mode>): ... these respectively.
33901 (*cbranch<VAXint:mode>4_<VAXcc:mode>): Update for `cc' removal.
33902 (*cbranch<VAXfp:mode>4_<VAXccnz:mode>): Likewise.
33903 (*branch_<mode>, *branch_<mode>_reversed): Likewise.
33905 2021-01-09 Maciej W. Rozycki <macro@linux-mips.org>
33907 * config/vax/vax.md (subst_f<cc>): Add mode to operands and
33908 `const_double_zero'.
33910 2021-01-09 Maciej W. Rozycki <macro@linux-mips.org>
33912 * config/pdp11/pdp11.md (PDPfp): New mode iterator.
33913 (fcc_cc, fcc_ccnz): Use it. Add mode to `const_double_zero' and
33916 2021-01-09 Maciej W. Rozycki <macro@linux-mips.org>
33918 * genemit.c (gen_exp) <CONST_DOUBLE>: Handle `const_double_zero'
33920 * read-rtl.c (rtx_reader::read_rtx_code): Handle machine mode
33921 with `const_double_zero'.
33922 * doc/rtl.texi (Constant Expression Types): Document it.
33924 2021-01-09 Jakub Jelinek <jakub@redhat.com>
33927 * tree-cfg.c (verify_gimple_assign_binary): Allow lhs of
33928 POINTER_DIFF_EXPR to be any integral type.
33930 2021-01-09 Jakub Jelinek <jakub@redhat.com>
33932 PR rtl-optimization/98603
33933 * function.c (instantiate_virtual_regs_in_insn): For asm goto
33934 with impossible constraints, drop all SETs, CLOBBERs, drop PARALLEL
33935 if any, set ASM_OPERANDS mode to VOIDmode and change
33936 ASM_OPERANDS_OUTPUT_CONSTRAINT and ASM_OPERANDS_OUTPUT_IDX.
33938 2021-01-09 Alexandre Oliva <oliva@gnu.org>
33941 * final.c (notice_source_line): Narrow down the condition to
33942 skip a line-0 marker.
33944 2021-01-08 Sergei Trofimovich <siarheit@google.com>
33946 * ipa-modref.c (merge_call_side_effects): Fix
33947 linebreak split by reordering two print calls.
33949 2021-01-08 Ilya Leoshkevich <iii@linux.ibm.com>
33951 * config/s390/vector.md (*tf_to_fprx2_0): Rename from
33952 "*mov_tf_to_fprx2_0" for consistency, fix constraint.
33953 (*tf_to_fprx2_1): Rename from "*mov_tf_to_fprx2_1" for
33954 consistency, fix constraint.
33956 2021-01-08 Ilya Leoshkevich <iii@linux.ibm.com>
33958 * config/s390/s390-c.c (s390_def_or_undef_macro): Accept
33959 callables instead of mask values.
33960 (struct target_flag_set_p): New predicate.
33961 (s390_cpu_cpp_builtins_internal): Define or undefine
33962 __LONG_DOUBLE_VX__ macro.
33964 2021-01-08 H.J. Lu <hjl.tools@gmail.com>
33967 * config/i386/i386.c (x86_function_profiler): Use R10 and R11
33968 to call mcount in large model with PIC for NO_PROFILE_COUNTERS
33971 2021-01-08 Richard Biener <rguenther@suse.de>
33973 * tree-ssa-sccvn.c (pass_fre::execute): Reset the SCEV hash table.
33975 2021-01-08 Richard Biener <rguenther@suse.de>
33977 * tree-vect-slp.c (scalar_stmts_to_slp_tree_map_t): Fix.
33978 (vect_build_slp_tree): On cache hit release the matched
33979 scalar stmts vector.
33980 * tree-vect-stmts.c (vectorizable_store): Properly free
33981 vec_oprnds before possibly gathering them again.
33983 2021-01-08 Richard Biener <rguenther@suse.de>
33985 PR tree-optimization/98544
33986 * tree-vect-slp.c (vect_optimize_slp): Always materialize
33987 permutes at a permute node.
33989 2021-01-08 H.J. Lu <hjl.tools@gmail.com>
33992 * config/i386/i386.c (x86_function_profiler): Use R10 to call
33993 mcount in large model. Sorry for large model with PIC.
33995 2021-01-08 Jakub Jelinek <jakub@redhat.com>
33998 * config/i386/i386.opt (ix86_cmodel, ix86_incoming_stack_boundary_arg,
33999 ix86_pmode, ix86_preferred_stack_boundary_arg, ix86_regparm,
34000 ix86_veclibabi_type): Remove x_ prefix, use TargetVariable instead of
34001 TargetSave and initialize for variables with enum types.
34002 (mfentry, mstack-protector-guard-reg=, mstack-protector-guard-offset=,
34003 mstack-protector-guard-symbol=): Add Save.
34004 * config/i386/i386-options.c (ix86_function_specific_save,
34005 ix86_function_specific_restore): Don't save or restore x_ix86_cmodel,
34006 x_ix86_incoming_stack_boundary_arg, x_ix86_pmode,
34007 x_ix86_preferred_stack_boundary_arg, x_ix86_regparm,
34008 x_ix86_veclibabi_type.
34010 2021-01-08 Richard Sandiford <richard.sandiford@arm.com>
34012 * config/aarch64/aarch64-sve.md (*cnot<mode>): Extend from
34013 SVE_FULL_I to SVE_I.
34014 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
34016 2021-01-08 Richard Sandiford <richard.sandiford@arm.com>
34018 * config/aarch64/aarch64-sve.md (*cond_uxt<mode>_2): Extend from
34019 SVE_FULL_I to SVE_I.
34020 (*cond_uxt<mode>_any): Likewise.
34022 2021-01-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34024 * config/aarch64/iterators.md (Vwhalf): New iterator.
34025 * config/aarch64/aarch64-simd.md (aarch64_<sur>adalp<mode>_3):
34027 (aarch64_<sur>adalp<mode>): ... This. Make more
34029 (<sur>sadv16qi): Adjust callsite of the above.
34030 * config/aarch64/aarch64-simd-builtins.def (sadalp, uadalp): New
34032 * config/aarch64/arm_neon.h (vpadal_s8): Reimplement using
34034 (vpadal_s16): Likewise.
34035 (vpadal_u8): Likewise.
34036 (vpadal_u16): Likewise.
34037 (vpadalq_s8): Likewise.
34038 (vpadalq_s16): Likewise.
34039 (vpadalq_s32): Likewise.
34040 (vpadalq_u8): Likewise.
34041 (vpadalq_u16): Likewise.
34042 (vpadalq_u32): Likewise.
34044 2021-01-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34046 * config/aarch64/aarch64-simd.md (aarch64_<su>abd<mode>_3):
34048 (aarch64_<su>abd<mode>): ... This.
34049 (<sur>sadv16qi): Adjust callsite of the above.
34050 * config/aarch64/aarch64-simd-builtins.def (sabd, uabd): Define
34052 * config/aarch64/arm_neon.h (vabd_s8): Reimplement using
34054 (vabd_s16): Likewise.
34055 (vabd_s32): Likewise.
34056 (vabd_u8): Likewise.
34057 (vabd_u16): Likewise.
34058 (vabd_u32): Likewise.
34059 (vabdq_s8): Likewise.
34060 (vabdq_s16): Likewise.
34061 (vabdq_s32): Likewise.
34062 (vabdq_u8): Likewise.
34063 (vabdq_u16): Likewise.
34064 (vabdq_u32): Likewise.
34066 2021-01-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34068 * config/aarch64/aarch64-simd-builtins.def (saba, uaba): Define
34070 * config/aarch64/arm_neon.h (vaba_s8): Implement using builtin.
34071 (vaba_s16): Likewise.
34072 (vaba_s32): Likewise.
34073 (vaba_u8): Likewise.
34074 (vaba_u16): Likewise.
34075 (vaba_u32): Likewise.
34076 (vabaq_s8): Likewise.
34077 (vabaq_s16): Likewise.
34078 (vabaq_s32): Likewise.
34079 (vabaq_u8): Likewise.
34080 (vabaq_u16): Likewise.
34081 (vabaq_u32): Likewise.
34083 2021-01-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34085 * config/aarch64/aarch64-simd.md (aba<mode>_3): Rename to...
34086 (aarch64_<su>aba<mode>): ... This. Handle uaba as well.
34087 Change RTL pattern to match.
34089 2021-01-08 Kito Cheng <kito.cheng@sifive.com>
34091 * common/config/riscv/riscv-common.c (riscv_current_subset_list): New.
34092 * config/riscv/riscv-c.c (riscv-subset.h): New.
34093 (INCLUDE_STRING): Define.
34094 (riscv_cpu_cpp_builtins): Add new style architecture extension
34096 * config/riscv/riscv-subset.h (riscv_subset_list::begin): New.
34097 (riscv_subset_list::end): New.
34098 (riscv_current_subset_list): New.
34100 2021-01-08 Kito Cheng <kito.cheng@sifive.com>
34102 * common/config/riscv/riscv-common.c (RISCV_DONT_CARE_VERSION):
34103 Move to riscv-subset.h.
34104 (struct riscv_subset_t): Ditto.
34105 (class riscv_subset_list): Ditto.
34106 * config/riscv/riscv-subset.h (RISCV_DONT_CARE_VERSION): Move
34107 from riscv-common.c.
34108 (struct riscv_subset_t): Ditto.
34109 (class riscv_subset_list): Ditto.
34110 * config/riscv/t-riscv ($(common_out_file)): Add file
34113 2021-01-07 Jakub Jelinek <jakub@redhat.com>
34116 * config/i386/i386.md (*bmi_blsi_<mode>_cmp, *bmi_blsi_<mode>_ccno):
34117 New define_insn patterns.
34119 2021-01-07 Richard Sandiford <richard.sandiford@arm.com>
34121 * config/aarch64/aarch64-sve.md (@cond_<SVE_INT_UNARY:optab><mode>)
34122 (*cond_<SVE_INT_UNARY:optab><mode>_2): Extend from SVE_FULL_I to SVE_I.
34123 (*cond_<SVE_INT_UNARY:optab><mode>_any): Likewise.
34125 2021-01-07 Richard Sandiford <richard.sandiford@arm.com>
34127 PR tree-optimization/98560
34128 * internal-fn.def (IFN_VCONDU, IFN_VCONDEQ): Use type vec_cond.
34129 * internal-fn.c (vec_cond_mask_direct): Get the data mode from
34131 (vec_cond_direct): Likewise argument 2.
34132 (vec_condu_direct, vec_condeq_direct): Delete.
34133 (expand_vect_cond_optab_fn): Rename to...
34134 (expand_vec_cond_optab_fn): ...this, replacing old macro.
34135 (expand_vec_condu_optab_fn, expand_vec_condeq_optab_fn): Delete.
34136 (expand_vect_cond_mask_optab_fn): Rename to...
34137 (expand_vec_cond_mask_optab_fn): ...this, replacing old macro.
34138 (direct_vec_cond_mask_optab_supported_p): Treat the optab as a
34140 (direct_vec_cond_optab_supported_p): Likewise.
34141 (direct_vec_condu_optab_supported_p): Delete.
34142 (direct_vec_condeq_optab_supported_p): Delete.
34143 * gimple-isel.cc: Include internal-fn.h.
34144 (gimple_expand_vec_cond_expr): Check that IFN_VCONDEQ is supported
34147 2021-01-07 Richard Sandiford <richard.sandiford@arm.com>
34149 PR tree-optimization/98560
34150 * gimple-isel.cc (gimple_expand_vec_cond_expr): If we fail to use
34151 IFN_VCOND{,U,EQ}, fall back on IFN_VCOND_MASK.
34153 2021-01-07 Uroš Bizjak <ubizjak@gmail.com>
34155 * config/i386/i386.md (insn): Merge from plusminus_insn, shift_insn,
34156 rotate_insn and optab code attributes.
34157 Update all uses to merged code attribute.
34158 * config/i386/sse.md: Update all uses to merged code attribute.
34159 * config/i386/mmx.md: Update all uses to merged code attribute.
34161 2021-01-07 Jakub Jelinek <jakub@redhat.com>
34163 PR tree-optimization/98568
34164 * gimple-ssa-store-merging.c (bswap_view_convert): New function.
34165 (bswap_replace): Use it.
34167 2021-01-06 Vladimir N. Makarov <vmakarov@redhat.com>
34169 PR rtl-optimization/97978
34170 * lra-int.h (lra_hard_reg_split_p): New external.
34171 * lra.c (lra_hard_reg_split_p): New global.
34172 (lra): Set up lra_hard_reg_split_p after splitting a hard reg.
34173 * lra-assigns.c (lra_assign): Don't check allocation correctness
34174 after hard reg splitting.
34176 2021-01-06 Martin Sebor <msebor@redhat.com>
34179 * builtins.c (new_delete_mismatch_p): New overload.
34180 (new_delete_mismatch_p (tree, tree)): Call it.
34182 2021-01-06 Alexandre Oliva <oliva@adacore.com>
34184 * Makefile.in (T_GLIMITS_H): New.
34185 (stmp-int-hdrs): Depend on it, use it.
34186 * config/t-vxworks (T_GLIMITS_H): Override it.
34187 (vxw-glimits.h): New.
34189 2021-01-06 Richard Biener <rguenther@suse.de>
34191 PR tree-optimization/98513
34192 * value-range.cc (intersect_ranges): Compare the upper bounds
34193 for the expected relation.
34195 2021-01-06 Gerald Pfeifer <gerald@pfeifer.com>
34198 2020-12-28 Gerald Pfeifer <gerald@pfeifer.com>
34200 * doc/standards.texi (HSAIL): Remove section.
34202 2021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
34204 * configure: Re-generate.
34206 2021-01-05 Jakub Jelinek <jakub@redhat.com>
34208 * doc/invoke.texi (-std=c++20): Adjust for the publication of
34209 ISO 14882:2020 standard.
34210 * doc/standards.texi: Likewise.
34212 2021-01-05 Jakub Jelinek <jakub@redhat.com>
34214 PR tree-optimization/94802
34215 * expr.h (maybe_optimize_sub_cmp_0): Declare.
34216 * expr.c: Include tree-pretty-print.h and flags.h.
34217 (maybe_optimize_sub_cmp_0): New function.
34218 (do_store_flag): Use it.
34219 * cfgexpand.c (expand_gimple_cond): Likewise.
34221 2021-01-05 Richard Sandiford <richard.sandiford@arm.com>
34223 * mux-utils.h (pointer_mux::m_ptr): Tweak description of contents.
34224 * rtlanal.c (simple_regno_set): Tweak description to clarify the
34227 2021-01-05 Richard Biener <rguenther@suse.de>
34229 PR tree-optimization/98516
34230 * tree-vect-slp.c (vect_optimize_slp): Permute the incoming
34231 lanes when materializing on a VEC_PERM node.
34232 (vectorizable_slp_permutation): Dump the permute properly.
34234 2021-01-05 Richard Biener <rguenther@suse.de>
34236 * tree-vect-slp.c (vect_slp_region): Move debug counter
34237 to cover individual subgraphs.
34239 2021-01-05 Richard Biener <rguenther@suse.de>
34241 PR tree-optimization/98428
34242 * tree-vect-slp.c (vect_build_slp_tree_1): Properly reject
34243 vector lane extracts for loop vectorization.
34245 2021-01-05 Jakub Jelinek <jakub@redhat.com>
34247 PR tree-optimization/98514
34248 * tree-ssa-reassoc.c (bb_rank): Change type from long * to
34250 (operand_rank): Change type from hash_map<tree, long> to
34251 hash_map<tree, int64_t>.
34252 (phi_rank): Change return type from long to int64_t.
34253 (loop_carried_phi): Change block_rank variable type from long to
34255 (propagate_rank): Change return type, rank parameter type and
34256 op_rank variable type from long to int64_t.
34257 (find_operand_rank): Change return type from long to int64_t
34258 and change slot variable type from long * to int64_t *.
34259 (insert_operand_rank): Change rank parameter type from long to
34261 (get_rank): Change return type and rank variable type from long to
34262 int64_t. Use PRId64 instead of ld to print the rank.
34263 (init_reassoc): Change rank variable type from long to int64_t
34264 and adjust correspondingly bb_rank and operand_rank initialization.
34266 2021-01-05 Jakub Jelinek <jakub@redhat.com>
34268 PR tree-optimization/96928
34269 * tree-ssa-phiopt.c (xor_replacement): New function.
34270 (tree_ssa_phiopt_worker): Call it.
34272 2021-01-05 Jakub Jelinek <jakub@redhat.com>
34274 PR tree-optimization/96930
34275 * match.pd ((A / (1 << B)) -> (A >> B)): If A is extended
34276 from narrower value which has the same type as 1 << B, perform
34277 the right shift on the narrower value followed by extension.
34279 2021-01-05 Jakub Jelinek <jakub@redhat.com>
34281 PR tree-optimization/96239
34282 * gimple-ssa-store-merging.c (maybe_optimize_vector_constructor): New
34284 (get_status_for_store_merging): Don't return BB_INVALID for blocks
34285 with potential bswap optimizable CONSTRUCTORs.
34286 (pass_store_merging::execute): Optimize vector CONSTRUCTORs with bswap
34289 2021-01-05 Richard Biener <rguenther@suse.de>
34291 PR tree-optimization/98381
34292 * tree.c (vector_element_bits): Properly compute bool vector
34294 * tree-vect-loop.c (vectorizable_live_operation): Properly
34295 compute the last lane bit offset.
34297 2021-01-05 Uroš Bizjak <ubizjak@gmail.com>
34300 * config/i386/sse.md (sse_cvtps2pi): Redefine as define_insn_and_split.
34301 Clear the top 64 bytes of the input XMM register.
34302 (sse_cvttps2pi): Ditto.
34304 2021-01-05 Uroš Bizjak <ubizjak@gmail.com>
34307 * config/i386/xopintrin.h (_mm256_cmov_si256): New.
34309 2021-01-05 H.J. Lu <hjl.tools@gmail.com>
34312 * config/i386/xmmintrin.h (_mm_extract_pi16): Cast to unsigned
34315 2021-01-05 Claudiu Zissulescu <claziss@synopsys.com>
34317 * config/arc/arc.md (maddsidi4_split): Use ACC_REG_FIRST.
34318 (umaddsidi4_split): Likewise.
34320 2021-01-05 liuhongt <hongtao.liu@intel.com>
34323 * config/i386/sse.md (*sse2_pmovskb_zexthisi): New
34324 define_insn_and_split for zero_extend of subreg HI of pmovskb
34326 (*sse2_pmovskb_zexthisi): Add new combine splitters for
34327 zero_extend of not of subreg HI of pmovskb result.
34329 2021-01-05 Richard Sandiford <richard.sandiford@arm.com>
34332 * explow.c (convert_memory_address_addr_space_1): Handle UNSPECs
34334 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Use
34335 convert_memory_address to convert symbolic immediates to ptr_mode
34336 before forcing them to memory.
34338 2021-01-05 Richard Sandiford <richard.sandiford@arm.com>
34340 PR rtl-optimization/97144
34341 * recog.c (constrain_operands): Initialize matching_operand
34342 for each alternative, rather than only doing it once.
34344 2021-01-05 Richard Sandiford <richard.sandiford@arm.com>
34346 PR rtl-optimization/98403
34347 * rtl-ssa/changes.cc (function_info::finalize_new_accesses): Explain
34348 why we don't remove call clobbers.
34349 (function_info::apply_changes_to_insn): Don't attempt to add
34350 call clobbers here.
34352 2021-01-05 Richard Sandiford <richard.sandiford@arm.com>
34354 PR tree-optimization/98371
34355 * tree-vect-loop.c (vect_reanalyze_as_main_loop): New function.
34356 (vect_analyze_loop): If an epilogue loop appears to be cheaper
34357 than the main loop, re-analyze it as a main loop before adopting
34360 2021-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
34363 * configure.ac (NETLIBS): Determine using AX_LIB_SOCKET_NSL.
34364 * aclocal.m4, configure: Regenerate.
34365 * Makefile.in (NETLIBS): Define.
34366 (BACKEND): Remove $(CODYLIB).
34368 2021-01-05 Jakub Jelinek <jakub@redhat.com>
34370 PR rtl-optimization/98334
34371 * simplify-rtx.c (simplify_context::simplify_binary_operation_1):
34372 Optimize (X - 1) * Y + Y to X * Y or (X + 1) * Y - Y to X * Y.
34374 2021-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
34376 * tree-inline.c (expand_call_inline): Restore input_location.
34377 Return result from recursive call.
34379 2021-01-04 Richard Sandiford <richard.sandiford@arm.com>
34381 PR tree-optimization/95401
34382 * config/aarch64/aarch64-sve-builtins.cc
34383 (gimple_folder::load_store_cookie): Use bits rather than bytes
34384 for the alignment argument to IFN_MASK_LOAD and IFN_MASK_STORE.
34385 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref): Likewise.
34386 * tree-vect-stmts.c (vectorizable_store): Likewise.
34387 (vectorizable_load): Likewise.
34389 2021-01-04 Richard Biener <rguenther@suse.de>
34391 PR tree-optimization/98308
34392 * tree-vect-stmts.c (vectorizable_load): Set invariant mask
34395 2021-01-04 Jakub Jelinek <jakub@redhat.com>
34397 PR tree-optimization/95771
34398 * tree-ssa-loop-niter.c (number_of_iterations_popcount): Handle types
34399 with precision smaller than int's precision and types with precision
34400 twice as large as long long. Formatting fixes.
34402 2021-01-04 Richard Biener <rguenther@suse.de>
34404 PR tree-optimization/98464
34405 * tree-ssa-sccvn.c (vn_valueize_for_srt): Rename from ...
34406 (vn_valueize_wrapper): ... this. Temporarily adjust vn_context_bb.
34407 (process_bb): Adjust.
34409 2021-01-04 Matthew Malcomson <matthew.malcomson@arm.com>
34412 * doc/invoke.texi (-fsanitize=address): Fix wording describing
34413 clash with -fsanitize=hwaddress.
34415 2021-01-04 Richard Biener <rguenther@suse.de>
34417 PR tree-optimization/98282
34418 * tree-ssa-sccvn.c (vn_get_stmt_kind): Classify tcc_reference on
34419 invariants as VN_NARY.
34421 2021-01-04 Richard Sandiford <richard.sandiford@arm.com>
34424 * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Accept
34425 aarch64_simd_reg_or_zero for operand 2. Use the combinez patterns
34426 to handle zero operands.
34428 2021-01-04 Richard Sandiford <richard.sandiford@arm.com>
34430 * config/aarch64/aarch64.c (offset_6bit_signed_scaled_p): New function.
34431 (offset_6bit_unsigned_scaled_p): Fix typo in comment.
34432 (aarch64_sve_prefetch_operand_p): Accept MUL VLs in the range
34435 2021-01-04 Richard Biener <rguenther@suse.de>
34437 PR tree-optimization/98393
34438 * tree-vect-slp.c (vect_build_slp_tree): Properly zero matches
34439 when hitting the limit.
34441 2021-01-04 Richard Biener <rguenther@suse.de>
34443 PR tree-optimization/98291
34444 * tree-vect-loop.c (vectorizable_reduction): Bypass
34445 associativity check for SLP reductions with VF 1.
34447 2021-01-04 Jakub Jelinek <jakub@redhat.com>
34449 PR tree-optimization/96782
34450 * match.pd (x == ~x -> false, x != ~x -> true): New simplifications.
34452 2021-01-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
34454 * collect-utils.c (collect_execute): Check dumppfx.
34455 * collect2.c (maybe_run_lto_and_relink, do_link): Pass atsuffix
34456 to collect_execute.
34457 (do_link): Add new parameter atsuffix.
34458 (main): Handle -dumpdir option. Skip one argument for
34459 -o, -isystem and -B options.
34460 * gcc.c (make_at_file): New helper function.
34461 (close_at_file): Use it.
34463 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
34465 * config/darwin.h (MIN_LD64_NO_COAL_SECTS): Adjust.
34466 Amend handling for LD64_VERSION fallback defaults.
34468 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
34470 * config.gcc: Compute default version information
34471 from the configured target. Likewise defaults for
34473 * config/darwin10.h: Removed.
34474 * config/darwin12.h: Removed.
34475 * config/darwin9.h: Removed.
34476 * config/rs6000/darwin8.h: Removed.
34478 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
34480 * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Delete.
34482 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
34484 * config/darwin9.h (STACK_CHECK_STATIC_BUILTIN): Move from here..
34485 * config/darwin.h (STACK_CHECK_STATIC_BUILTIN): .. to here.
34487 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
34489 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move from
34491 * config/darwin.h (LINK_GCC_C_SEQUENCE_SPEC): ... to here.
34493 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
34495 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move the spec
34496 for the Darwin10 unwinder stub from here ...
34497 * config/darwin.h (LINK_COMMAND_SPEC_A): ... to here.
34499 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
34501 * config/darwin.h (DSYMUTIL_SPEC): Default to DWARF
34502 (ASM_DEBUG_SPEC):Only define if the assembler supports
34504 (PREFERRED_DEBUGGING_TYPE): Default to DWARF.
34505 (DARWIN_PREFER_DWARF): Define.
34506 * config/darwin9.h (PREFERRED_DEBUGGING_TYPE): Remove.
34507 (DARWIN_PREFER_DWARF): Likewise
34508 (DSYMUTIL_SPEC): Likewise.
34509 (COLLECT_RUN_DSYMUTIL): Likewise.
34510 (ASM_DEBUG_SPEC): Likewise.
34511 (ASM_DEBUG_OPTION_SPEC): Likewise.
34513 2021-01-02 Jan Hubicka <jh@suse.cz>
34515 * cfg.c (free_block): ggc_free bb.
34517 2021-01-01 Jakub Jelinek <jakub@redhat.com>
34519 * gcc.c (process_command): Update copyright notice dates.
34520 * gcov-dump.c (print_version): Ditto.
34521 * gcov.c (print_version): Ditto.
34522 * gcov-tool.c (print_version): Ditto.
34523 * gengtype.c (create_file): Ditto.
34524 * doc/cpp.texi: Bump @copying's copyright year.
34525 * doc/cppinternals.texi: Ditto.
34526 * doc/gcc.texi: Ditto.
34527 * doc/gccint.texi: Ditto.
34528 * doc/gcov.texi: Ditto.
34529 * doc/install.texi: Ditto.
34530 * doc/invoke.texi: Ditto.
34532 2021-01-01 Jakub Jelinek <jakub@redhat.com>
34534 * ChangeLog-2020: Rotate ChangeLog. New file.
34537 Copyright (C) 2021 Free Software Foundation, Inc.
34539 Copying and distribution of this file, with or without modification,
34540 are permitted in any medium without royalty provided the copyright
34541 notice and this notice are preserved.