1 2021-12-05 David Edelsohn <dje.gcc@gmail.com>
3 * config/rs6000/rs6000-call.c (rs6000_init_builtins): Move
4 AIX math builtin initialization before new_builtins_are_live.
6 2021-12-04 Jakub Jelinek <jakub@redhat.com>
8 * config/i386/x86-tune.def (X86_TUNE_PARTIAL_REG_DEPENDENCY): Fix
9 comment typo, Preffer -> prefer.
10 * ipa-modref-tree.c (modref_access_node::closer_pair_p): Likewise.
12 2021-12-04 Alexandre Oliva <oliva@adacore.com>
14 PR rtl-optimization/103028
15 * ifcvt.c (find_cond_trap): Validate new insns more strictly
18 2021-12-03 Martin Liska <mliska@suse.cz>
19 Peter Bergner <bergner@linux.ibm.com>
22 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move the
23 disabling of shrink-wrapping when using -mrop-protect from here...
24 (rs6000_override_options_after_change): ...to here.
26 2021-12-03 H.J. Lu <hjl.tools@gmail.com>
29 * config/i386/i386-expand.c (ix86_expand_builtin): Pass PVW_NONE
30 and PVW_NONE to ix86_target_string.
31 * config/i386/i386-options.c (ix86_target_string): Add arguments
32 for move_max and store_max.
33 (ix86_target_string::add_vector_width): New lambda.
34 (ix86_debug_options): Pass ix86_move_max and ix86_store_max to
36 (ix86_function_specific_print): Pass ptr->x_ix86_move_max and
37 ptr->x_ix86_store_max to ix86_target_string.
38 (ix86_valid_target_attribute_tree): Handle x_ix86_move_max and
40 (ix86_option_override_internal): Set the default x_ix86_move_max
42 * config/i386/i386-options.h (ix86_target_string): Add
43 prefer_vector_width and prefer_vector_width.
44 * config/i386/i386.h (TARGET_AVX256_MOVE_BY_PIECES): Removed.
45 (TARGET_AVX256_STORE_BY_PIECES): Likewise.
46 (MOVE_MAX): Use 64 if ix86_move_max or ix86_store_max ==
47 PVW_AVX512. Use 32 if ix86_move_max or ix86_store_max >=
49 (STORE_MAX_PIECES): Use 64 if ix86_store_max == PVW_AVX512.
50 Use 32 if ix86_store_max >= PVW_AVX256.
51 * config/i386/i386.opt: Add -mmove-max=bits and -mstore-max=bits.
52 * config/i386/x86-tune.def (X86_TUNE_AVX512_MOVE_BY_PIECES): New.
53 (X86_TUNE_AVX512_STORE_BY_PIECES): Likewise.
54 * doc/invoke.texi: Document -mmove-max=bits and -mstore-max=bits.
56 2021-12-03 Bill Schmidt <wschmidt@linux.ibm.com>
58 * config/rs6000/rs6000.c (rs6000_builtin_reciprocal): Fix builtin
61 2021-12-03 SiYu Wu <siyu@isrc.iscas.ac.cn>
63 * common/config/riscv/riscv-common.c (riscv_implied_info):
64 Add K-ext related entry.
65 (riscv_supported_std_ext): Add 'k'.
66 * config/riscv/arch-canonicalize (CANONICAL_ORDER): Add 'k'.
67 (IMPLIED_EXT): Add K-ext related entry.
69 2021-12-03 SiYu Wu <siyu@isrc.iscas.ac.cn>
71 * common/config/riscv/riscv-common.c (riscv_ext_version_table):
73 * config/riscv/riscv-opts.h (MASK_ZBKB): New.
90 (TARGET_ZKSED): Ditto.
93 * config/riscv/riscv.opt (riscv_zk_subext): New.
95 2021-12-03 Tamar Christina <tamar.christina@arm.com>
97 * tree-vect-stmts.c (prepare_load_store_mask): Rename to...
98 (prepare_vec_mask): ...This and record operations that have already been
100 (vectorizable_call): Use it.
101 (vectorizable_operation): Likewise.
102 (vectorizable_store): Likewise.
103 (vectorizable_load): Likewise.
104 * tree-vectorizer.h (class _loop_vec_info): Add vec_cond_masked_set.
105 (vec_cond_masked_set_type, tree_cond_mask_hash): New.
107 2021-12-03 H.J. Lu <hjl.tools@gmail.com>
111 * target.def (ifunc_ref_local_ok): Add a target hook.
112 * varasm.c (default_binds_local_p_3): Force indirect function
113 resolver non-local only if targetm.ifunc_ref_local_ok returns
115 * config/i386/i386-expand.c (ix86_expand_call): Call
116 ix86_call_use_plt_p to check if PLT should be used.
117 * config/i386/i386-protos.h (ix86_call_use_plt_p): New.
118 * config/i386/i386.c (output_pic_addr_const): Call
119 ix86_call_use_plt_p to check if "@PLT" is needed.
120 (ix86_call_use_plt_p): New.
121 (TARGET_IFUNC_REF_LOCAL_OK): New.
122 * doc/tm.texi.in: Add TARGET_IFUNC_REF_LOCAL_OK.
123 * doc/tm.texi: Regenerated.
125 2021-12-03 Jakub Jelinek <jakub@redhat.com>
127 * attribs.h (simple_cst_list_equal): Declare.
128 * attribs.c (simple_cst_list_equal): No longer static.
129 * config/i386/i386-options.c (target_attribute_cache): New variable.
130 (ix86_valid_target_attribute_p): Cache DECL_FUNCTION_SPECIFIC_TARGET
131 and DECL_FUNCTION_SPECIFIC_OPTIMIZATION based on args.
133 2021-12-03 Jakub Jelinek <jakub@redhat.com>
136 * ggc.h (gt_pch_note_callback): Declare.
137 * gengtype.h (enum typekind): Add TYPE_CALLBACK.
138 (callback_type): Declare.
139 * gengtype.c (dbgprint_count_type_at): Handle TYPE_CALLBACK.
140 (callback_type): New variable.
141 (process_gc_options): Add CALLBACK argument, handle callback
143 (set_gc_used_type): Adjust process_gc_options caller, if callback,
144 set type to &callback_type.
145 (output_mangled_typename): Handle TYPE_CALLBACK.
146 (walk_type): Likewise. Handle callback option.
147 (write_types_process_field): Handle TYPE_CALLBACK.
148 (write_types_local_user_process_field): Likewise.
149 (write_types_local_process_field): Likewise.
150 (write_root): Likewise.
151 (dump_typekind): Likewise.
152 (dump_type): Likewise.
153 * gengtype-state.c (type_lineloc): Handle TYPE_CALLBACK.
154 (state_writer::write_state_callback_type): New method.
155 (state_writer::write_state_type): Handle TYPE_CALLBACK.
156 (read_state_callback_type): New function.
157 (read_state_type): Handle TYPE_CALLBACK.
158 * ggc-common.c (callback_vec): New variable.
159 (gt_pch_note_callback): New function.
160 (gt_pch_save): Stream out gt_pch_save function address and relocation
162 (gt_pch_restore): Stream in saved gt_pch_save function address and
163 relocation table and apply relocations if needed.
164 * doc/gty.texi (callback): Document new GTY option.
165 * varasm.c (get_unnamed_section): Change callback argument's type and
166 last argument's type from const void * to const char *.
167 (output_section_asm_op): Change argument's type from const void *
168 to const char *, remove unnecessary cast.
169 * tree-core.h (struct tree_translation_unit_decl): Drop GTY((skip))
170 from language member.
171 * output.h (unnamed_section_callback): Change argument type from
172 const void * to const char *.
173 (struct unnamed_section): Use GTY((callback)) instead of GTY((skip))
174 for callback member. Change data member type from const void *
176 (struct noswitch_section): Use GTY((callback)) instead of GTY((skip))
178 (get_unnamed_section): Change callback argument's type and
179 last argument's type from const void * to const char *.
180 (output_section_asm_op): Change argument's type from const void *
182 * config/avr/avr.c (avr_output_progmem_section_asm_op): Likewise.
183 Remove unneeded cast.
184 * config/darwin.c (output_objc_section_asm_op): Change argument's type
185 from const void * to const char *.
186 * config/pa/pa.c (som_output_text_section_asm_op): Likewise.
187 (som_output_comdat_data_section_asm_op): Likewise.
188 * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
190 (rs6000_xcoff_output_readonly_section_asm_op): Likewise. Instead
191 of dereferencing directive hardcode variable names and decide based on
192 whether directive is NULL or not.
193 (rs6000_xcoff_output_readwrite_section_asm_op): Change argument's type
194 from const void * to const char *.
195 (rs6000_xcoff_output_tls_section_asm_op): Likewise. Instead
196 of dereferencing directive hardcode variable names and decide based on
197 whether directive is NULL or not.
198 (rs6000_xcoff_output_toc_section_asm_op): Change argument's type
199 from const void * to const char *.
200 (rs6000_xcoff_asm_init_sections): Adjust get_unnamed_section callers.
202 2021-12-03 Richard Purdie <richard.purdie@linuxfoundation.org>
204 * Makefile.in: Fix "argument list too long" from install-plugins.
206 2021-12-03 Matt Jacobson <mhjacobson@me.com>
208 * config.gcc: For the AVR target, populate TM_MULTILIB_CONFIG.
209 * config/avr/genmultilib.awk: Add ability to filter generated multilib
211 * config/avr/t-avr: Pass TM_MULTILIB_CONFIG to genmultilib.awk.
212 * configure.ac: Update help string for --with-multilib-list.
213 * configure: Regenerate.
215 2021-12-02 Ilya Lipnitskiy <ilya.lipnitskiy@gmail.com>
217 * configure: Regenerate.
218 * configure.ac: Define TARGET_LIBC_GNUSTACK on musl.
220 2021-12-02 Iain Sandoe <iain@sandoe.co.uk>
223 * config/host-darwin.c (TRY_EMPTY_VM_SPACE,
224 SAFE_ALLOC_SIZE): New.
225 (darwin_gt_pch_get_address): Rewrite to use nominated
226 memory segments rather than part of the compiler __DATA
228 (darwin_gt_pch_use_address): Likewise.
230 2021-12-02 Gerald Pfeifer <gerald@pfeifer.com>
232 * doc/install.texi (*-*-freebsd*): Remove references to
233 FreeBSD 1 and FreeBSD 2.
235 2021-12-02 Vladimir N. Makarov <vmakarov@redhat.com>
237 PR rtl-optimization/103437
238 * ira-color.c (setup_allocno_priorities): Switch off backup code
239 for overflow if compiler has __builtin_smul_overflow. Use <
240 for comparison with -INT_MAX.
242 2021-12-02 Bill Schmidt <wschmidt@linux.ibm.com>
244 * config/rs6000/altivec.h: Delete a number of #defines that are now
245 superfluous. Alphabetize. Include rs6000-vecdefines.h. Include some
247 * config/rs6000/rs6000-builtin-new.def (CMPB): Flag as no32bit.
248 (BPERMD): Flag as 32bit (needing special handling for 32-bit).
249 (UNPACK_TD): Return unsigned long long instead of unsigned long.
250 (GET_TEXASR): Return unsigned long instead of unsigned long long.
251 (GET_TEXASRU): Likewise.
252 (GET_TFHAR): Likewise.
253 (GET_TFIAR): Likewise.
254 (SET_TEXASR): Pass unsigned long instead of unsigned long long.
255 (SET_TEXASRU): Likewise.
256 (SET_TFHAR): Likewise.
257 (SET_TFIAR): Likewise.
258 (TABORTDC): Likewise.
259 (TABORTDCI): Likewise.
260 * config/rs6000/rs6000-call.c (rs6000_expand_new_builtin): Fix error
261 handling for no32bit. Add 32bit handling for RS6000_BIF_BPERMD.
262 * config/rs6000/rs6000-gen-builtins.c (write_init_file): Initialize
263 new_builtins_are_live to 1.
265 2021-12-02 Vladimir N. Makarov <vmakarov@redhat.com>
267 PR rtl-optimization/103437
268 * ira-color.c (setup_allocno_priorities): Use long long
269 multiplication as backup for overflow processing.
271 2021-12-02 Tamar Christina <tamar.christina@arm.com>
273 * config/aarch64/aarch64-protos.h (aarch64_gen_shareable_zero): New.
274 * config/aarch64/aarch64-simd.md (aarch64_rshrn<mode>,
275 aarch64_rshrn2<mode>): Generate rounding half-ing add when appropriate.
276 * config/aarch64/aarch64.c (aarch64_gen_shareable_zero): New.
278 2021-12-02 Vladimir N. Makarov <vmakarov@redhat.com>
280 PR rtl-optimization/103437
281 * ira-color.c (setup_allocno_priorities): Process multiplication
284 2021-12-02 Martin Liska <mliska@suse.cz>
286 PR gcov-profile/96092
287 * common.opt: New option.
288 * coverage.c (coverage_begin_function): Emit filename with
289 remap_profile_filename.
290 * doc/invoke.texi: Document the new option.
291 * file-prefix-map.c (add_profile_prefix_map): New.
292 (remap_profile_filename): Likewise.
293 * file-prefix-map.h (add_profile_prefix_map): Likewise.
294 (remap_profile_filename): Likewise.
295 * lto-opts.c (lto_write_options): Handle
296 OPT_fprofile_prefix_map_.
297 * opts-global.c (handle_common_deferred_options): Likewise.
298 * opts.c (common_handle_option): Likewise.
299 (gen_command_line_string): Likewise.
300 * profile.c (output_location): Emit filename with
301 remap_profile_filename.
303 2021-12-02 Richard Biener <rguenther@suse.de>
306 * internal-fn.c (expand_DEFERRED_INIT): When the base
307 of the LHS is a decl with matching constant size use
308 that as the initialization target instead of an
309 eventual VLA typed one.
311 2021-12-02 Richard Biener <rguenther@suse.de>
313 PR tree-optimization/103527
314 * tree-vect-stmts.c (vect_build_gather_load_calls): Always
315 use a truth type for building the vector mask.
317 2021-12-02 Rasmus Villemoes <rasmus.villemoes@prevas.dk>
319 * config/vxworks.h (LTO_PLUGIN_SPEC): Adapt to corrected
320 spelling of -linker-output-auto-nolto-rel.
322 2021-12-01 Uroš Bizjak <ubizjak@gmail.com>
325 * config/i386/sse.md (VI2F): Remove mode iterator.
326 (VI2F_256_512): New mode iterator.
327 (vec_set<V8_128:mode>_0): New insn pattern.
328 (vec_set<VI2F_256_512:mode>_0>): Rename from vec_set<VI2F:mode>mode.
329 Use VI2F_256_512 mode iterator instead of VI2F.
330 (*axv512fp16_movsh): Remove.
331 (<sse2p4_1>_pinsr<ssemodesuffix>): Add (x,x,x) AVX2 alternative.
332 Do not disable V8HF mode insn on AVX2 targets.
333 (pinsrw -> pbroadcast + pblendw peephole2): New peephole.
334 (pinsrw -> pbroadcast + pblendw splitter): New post-reload splitter.
335 * config/i386/i386.md (extendhfsf): Call gen_vec_setv8hf_0.
336 * config/i386/i386-expand.c (ix86_expand_vector_set)
337 <case E_V8HFmode>: Use vec_merge path for TARGET_AVX2.
339 2021-12-01 Roger Sayle <roger@nextmovesoftware.com>
340 Richard Biener <rguenther@suse.de>
342 * tree-ssa-loop-niter.c (number_of_iterations_until_wrap):
343 Check if simplify_using_initial_conditions allows us to
344 simplify the expression for may_be_zero.
345 * match.pd (X != C ? -X : -C -> -X): New transform.
346 (X != C ? ~X : ~C -> ~X): Likewise.
347 ((X+1) > Y ? -X : 1 -> X >= Y ? -X : 1): Likewise.
349 2021-12-01 Peter Bergner <bergner@linux.ibm.com>
352 * gimplify.c (is_var_need_auto_init): Handle opaque types.
354 2021-12-01 Iain Buclaw <ibuclaw@gdcproject.org>
356 * common.opt (static-libphobos): Add option.
357 * config/darwin.h (LINK_SPEC): Substitute -lgphobos with libgphobos.a
358 when linking statically.
359 * gcc.c (driver_handle_option): Set -static-libphobos as always valid.
361 2021-12-01 Jason Merrill <jason@redhat.com>
364 * fold-const.c (maybe_nonzero_address): Use get_create or get
365 depending on folding_initializer.
366 (fold_binary_initializer_loc): New.
367 * fold-const.h (fold_binary_initializer_loc): Declare.
368 * varasm.c (mark_weak): Don't use the decl location.
369 * doc/invoke.texi: Document -fconstexpr-fp-except.
371 2021-12-01 Bill Schmidt <wschmidt@linux.ibm.com>
374 * config/rs6000/rs6000-c.c (rs6000-builtins.h): Stop including.
375 (rs6000-internal.h): Include.
376 (altivec_resolve_new_overloaded_builtin): Move call to
377 rs6000_invalid_new_builtin here from rs6000_new_builtin_decl.
378 * config/rs6000/rs6000-call.c (rs6000-builtins.h): Stop including.
379 (rs6000_invalid_new_builtin): Remove static qualifier.
380 (rs6000_new_builtin_decl): Remove test for supported builtin.
381 * config/rs6000/rs6000-internal.h (rs6000-builtins.h): Include.
382 (rs6000_invalid_new_builtin): Declare.
383 * config/rs6000/rs6000.c (rs6000-builtins.h): Don't include.
385 2021-12-01 Aldy Hernandez <aldyh@redhat.com>
387 PR tree-optimization/103409
388 * gimple-range-path.cc (path_range_query::compute_ranges_in_phis):
389 Do all the work with just one ssa_global_cache.
390 * gimple-range-path.h: Remove m_tmp_phi_cache.
392 2021-12-01 Richard Sandiford <richard.sandiford@arm.com>
394 PR tree-optimization/103517
395 * tree-vect-slp.c (vect_build_slp_tree_1): When allowing two
396 different component references, check the codes of both them,
397 rather than just the first.
399 2021-12-01 Andrew MacLeod <amacleod@redhat.com>
401 PR tree-optimization/103464
402 * gimple-range.cc (gimple_ranger::prefill_name): Process phis also.
403 (gimple_ranger::prefill_stmt_dependencies): Ditto.
405 2021-12-01 Iain Buclaw <ibuclaw@gdcproject.org>
407 * doc/install.texi (Prerequisites): Add note that D front end now
408 requires GDC installed in order to bootstrap.
409 (Building): Add D compiler section, referencing prerequisites.
411 2021-12-01 Jakub Jelinek <jakub@redhat.com>
413 * config/i386/x86-tune.def (X86_TUNE_SCHEDULE,
414 X86_TUNE_SSE_PARTIAL_REG_FP_CONVERTS_DEPENDENCY,
415 X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Formatting fixes.
416 (X86_TUNE_USE_GATHER): Put m_GENERIC last for consistency.
418 2021-12-01 Jakub Jelinek <jakub@redhat.com>
420 PR rtl-optimization/102356
421 * rtl.h (simplify_context): Add assoc_count member and
422 max_assoc_count static member.
423 * simplify-rtx.c (simplify_associative_operation): Don't reassociate
424 more than max_assoc_count times within one outermost simplify_* call.
425 * dwarf2out.c (mem_loc_descriptor): Optimize binary operation
426 with both operands the same using DW_OP_dup.
428 2021-12-01 Tamar Christina <tamar.christina@arm.com>
430 * match.pd: Move below pattern that rewrites to EQ, NE.
431 * tree.c (bitmask_inv_cst_vector_p): Correct do .. while indentation.
433 2021-12-01 Siddhesh Poyarekar <siddhesh@gotplt.org>
434 Martin Liška <mliska@suse.cz>
436 PR tree-optimization/103456
437 * tree-object-size.c (merge_object_sizes): Update osi->changed
438 only if object_sizes_set succeeded.
440 2021-11-30 liuhongt <hongtao.liu@intel.com>
444 * config/i386/i386.md (*x86_64_shld_1): Set_attr
445 length_immediate to 1.
446 (*x86_shld_1): Ditto.
447 (*x86_64_shrd_1): Ditto.
448 (*x86_shrd_1): Ditto.
450 2021-11-30 Bill Schmidt <wschmidt@linux.ibm.com>
452 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
454 (altivec_resolve_new_overloaded_builtin): Likewise.
456 2021-11-30 Martin Jambor <mjambor@suse.cz>
459 * ipa-sra.c (scan_function): Also check ECF_LOOPING_CONST_OR_PURE flag.
461 2021-11-30 Richard Sandiford <richard.sandiford@arm.com>
463 PR tree-optimization/103494
464 * tree-vect-stmts.c (vect_get_gather_scatter_ops): Remove ncopies
465 argument and calculate ncopies from gs_info->offset_vectype
467 (vectorizable_store, vectorizable_load): Update accordingly.
469 2021-11-30 Iain Buclaw <ibuclaw@gdcproject.org>
471 * Makefile.in (GDC): New variable.
472 (GDCFLAGS): New variable.
473 * configure: Regenerate.
474 * configure.ac: Add call to ACX_PROG_GDC. Substitute GDCFLAGS.
476 2021-11-30 Martin Liska <mliska@suse.cz>
477 Martin Jambor <mjambor@suse.cz>
480 * ipa-param-manipulation.c
481 (ipa_param_body_adjustments::prepare_debug_expressions): Be
482 careful about hash_map reallocating itself. Simpify a return
483 which always returns true.
485 2021-11-30 Andrew MacLeod <amacleod@redhat.com>
487 PR tree-optimization/103440
488 * gimple-range-fold.cc (fold_using_range::range_of_phi): Continue
489 normal param processing for equiv params.
491 2021-11-30 Richard Biener <rguenther@suse.de>
493 * config/i386/i386.c (ix86_shift_rotate_cost): Remove
495 * tree-chrec.c (evolution_function_is_invariant_rec_p):
497 * tree-if-conv.c (if_convertible_stmt_p): Likewise.
498 * tree-ssa-pre.c (fully_constant_expression): Likewise.
499 * tree-vrp.c (operand_less_p): Likewise.
500 * reload.c (reg_overlap_mentioned_for_reload_p): Remove
501 unreachable gcc_unreachable ().
502 * sel-sched-ir.h (bb_next_bb): Likewise.
503 * varasm.c (compare_constant): Likewise.
505 2021-11-30 Richard Biener <rguenther@suse.de>
507 PR tree-optimization/103489
508 * tree-vect-loop.c (vectorizable_phi): Verify argument
509 vector type compatibility to mitigate bool pattern recog
512 2021-11-30 Thomas Schwinge <thomas@codesourcery.com>
514 * omp-offload.c (oacc_loop_auto_partitions): Remove erroneous
515 "Orphan reductions cannot have gang partitioning" handling.
517 2021-11-30 Thomas Schwinge <thomas@codesourcery.com>
519 * omp-offload.c (oacc_loop_process): Implement "gang reduction on
520 an orphan loop" checking.
522 2021-11-30 Cesar Philippidis <cesar@codesourcery.com>
523 Thomas Schwinge <thomas@codesourcery.com>
525 * omp-general.h (enum oacc_loop_flags): Add OLF_REDUCTION enum.
526 * omp-low.c (lower_oacc_head_mark): Use it to mark OpenACC
528 * omp-offload.c (oacc_loop_auto_partitions): Don't assign gang
529 level parallelism to orphan reductions.
531 2021-11-30 Aldy Hernandez <aldyh@redhat.com>
533 PR tree-optimization/103451
534 * range-op.cc (operator_div::wi_fold): Remove
535 can_throw_non_call_exceptions special case.
536 * tree-ssa-sink.c (sink_code_in_bb): Same.
538 2021-11-30 Richard Sandiford <richard.sandiford@arm.com>
540 * tree-vect-slp.c (arg1_arg4_map): New variable.
541 (vect_get_operand_map): Handle IFN_MASK_GATHER_LOAD.
542 (vect_build_slp_tree_1): Likewise.
543 (vect_build_slp_tree_2): Likewise.
544 * tree-vect-stmts.c (vectorizable_load): Expect the mask to be
545 the last SLP child node rather than the first.
547 2021-11-30 Richard Sandiford <richard.sandiford@arm.com>
549 * tree-if-conv.c: Include tree-eh.h.
550 (predicate_statements): Remove pe argument. Don't hoist
552 (combine_blocks): Remove pe argument.
553 (ifcvt_available_on_edge_p, ifcvt_can_hoist): New functions.
554 (ifcvt_hoist_invariants): Likewise.
555 (tree_if_conversion): Update call to combine_blocks. Call
556 ifcvt_hoist_invariants after VN.
558 2021-11-30 Richard Sandiford <richard.sandiford@arm.com>
560 PR tree-optimization/102467
561 * doc/sourcebuild.texi (vect_gather_load_ifn): Document.
562 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
563 Commonize safelen handling. Punt for anything involving
564 gathers and scatters unless safelen says otherwise.
565 * tree-vect-slp.c (arg1_map): New variable.
566 (vect_get_operand_map): Handle IFN_GATHER_LOAD.
567 (vect_build_slp_tree_1): Likewise.
568 (vect_build_slp_tree_2): Likewise.
569 (compatible_calls_p): If vect_get_operand_map returns nonnull,
570 check that any skipped arguments are equal.
571 (vect_slp_analyze_node_operations_1): Tighten reduction check.
572 * tree-vect-stmts.c (check_load_store_for_partial_vectors): Take
574 (vect_get_gather_scatter_ops): Take slp_node and ncopies arguments.
576 (vectorizable_store, vectorizable_load): Adjust accordingly.
578 2021-11-30 Richard Sandiford <richard.sandiford@arm.com>
580 * gimple.h (gimple_num_args, gimple_arg, gimple_arg_ptr): New
582 * tree-vect-slp.c (cond_expr_maps, arg2_map): New variables.
583 (vect_get_operand_map): New function.
584 (vect_get_and_check_slp_defs): Fix outdated comment.
585 Use vect_get_operand_map and new gimple argument accessors.
586 (vect_build_slp_tree_2): Likewise.
588 2021-11-30 Richard Sandiford <richard.sandiford@arm.com>
590 * tree-vect-slp.c (vect_build_slp_tree_1): Use code_helper
591 to record the operations performed by statements, only using
592 CALL_EXPR for things that don't map to built-in or internal
593 functions. For shifts, require all shift amounts to be equal
594 if optab_vector is not supported but optab_scalar is.
596 2021-11-30 Richard Sandiford <richard.sandiford@arm.com>
598 * tree-vect-data-refs.c (vect_check_gather_scatter): Continue
599 processing conversions if the current offset is a pointer.
601 2021-11-30 Richard Sandiford <richard.sandiford@arm.com>
603 * tree-vectorizer.h (vect_is_reduction): Use STMT_VINFO_REDUC_IDX.
605 2021-11-30 Richard Sandiford <richard.sandiford@arm.com>
607 * genopinit.c (main): Turn supports_vec_gather_load and
608 supports_vec_scatter_store into signed char arrays and remove
609 supports_vec_gather_load_cached and supports_vec_scatter_store_cached.
610 * optabs-query.c (supports_vec_convert_optab_p): Add a mode parameter.
611 If the mode is not VOIDmode, test only for that mode.
612 (supports_vec_gather_load_p): Likewise.
613 (supports_vec_scatter_store_p): Likewise.
614 * optabs-query.h (supports_vec_gather_load_p): Likewise.
615 (supports_vec_scatter_store_p): Likewise.
616 * tree-vect-data-refs.c (vect_check_gather_scatter): Pass the
617 vector mode to supports_vec_gather_load_p and
618 supports_vec_scatter_store_p.
620 2021-11-30 Richard Sandiford <richard.sandiford@arm.com>
622 * internal-fn.c (commutative_binary_fn_p): Handle IFN_ADD_OVERFLOW
623 and IFN_MUL_OVERFLOW.
625 2021-11-30 Richard Sandiford <richard.sandiford@arm.com>
627 * internal-fn.c (commutative_binary_fn_p): Handle IFN_UBSAN_CHECK_ADD
628 and IFN_UBSAN_CHECK_MUL.
630 2021-11-30 Richard Sandiford <richard.sandiford@arm.com>
632 * internal-fn.c (commutative_binary_fn_p): Handle IFN_COMPLEX_MUL.
634 2021-11-30 Richard Sandiford <richard.sandiford@arm.com>
636 * gimple-fold.c: Include internal-fn.h.
637 (fold_stmt_1): If a function maps to an internal one, use
638 first_commutative_argument to canonicalize the order of
639 commutative arguments.
640 * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3)
641 (gimple_resimplify4, gimple_resimplify5): Extend commutativity
644 2021-11-30 Richard Sandiford <richard.sandiford@arm.com>
646 * doc/md.texi (reduc_fmin_scal_@var{m}): Document.
647 (reduc_fmax_scal_@var{m}): Likewise.
648 * optabs.def (reduc_fmax_scal_optab): New optab.
649 (reduc_fmin_scal_optab): Likewise
650 * internal-fn.def (REDUC_FMAX, REDUC_FMIN): New functions.
651 * tree-vect-loop.c (reduction_fn_for_scalar_code): Handle
652 CASE_CFN_FMAX and CASE_CFN_FMIN.
653 (neutral_op_for_reduction): Likewise.
654 (needs_fold_left_reduction_p): Likewise.
655 * config/aarch64/iterators.md (FMAXMINV): New iterator.
656 (fmaxmin): Handle UNSPEC_FMAXNMV and UNSPEC_FMINNMV.
657 * config/aarch64/aarch64-simd.md (reduc_<optab>_scal_<mode>): Fix
659 (reduc_<fmaxmin>_scal_<mode>): New pattern.
660 * config/aarch64/aarch64-sve.md (reduc_<fmaxmin>_scal_<mode>):
663 2021-11-30 Richard Sandiford <richard.sandiford@arm.com>
665 * builtins.h (associated_internal_fn): Declare overload that
666 takes a (combined_cfn, return type) pair.
667 * builtins.c (associated_internal_fn): Split new overload out
668 of original fndecl version. Also provide an overload that takes
669 a (combined_cfn, return type) pair.
670 * internal-fn.h (commutative_binary_fn_p): Declare.
671 (commutative_ternary_fn_p): Likewise.
672 (associative_binary_fn_p): Likewise.
673 * internal-fn.c (commutative_binary_fn_p, commutative_ternary_fn_p):
674 New functions, split out from...
675 (first_commutative_argument): ...here.
676 (associative_binary_fn_p): New function.
677 * gimple-match.h (code_helper): Add a constructor that takes
679 (commutative_binary_op_p): Declare.
680 (commutative_ternary_op_p): Likewise.
681 (first_commutative_argument): Likewise.
682 (associative_binary_op_p): Likewise.
683 (canonicalize_code): Likewise.
684 (directly_supported_p): Likewise.
685 (get_conditional_internal_fn): Likewise.
686 (gimple_build): New overloads that takes a code_helper.
687 * gimple-fold.c (gimple_build): Likewise.
688 * gimple-match-head.c (commutative_binary_op_p): New function.
689 (commutative_ternary_op_p): Likewise.
690 (first_commutative_argument): Likewise.
691 (associative_binary_op_p): Likewise.
692 (canonicalize_code): Likewise.
693 (directly_supported_p): Likewise.
694 (get_conditional_internal_fn): Likewise.
695 * tree-vectorizer.h: Include gimple-match.h.
696 (neutral_op_for_reduction): Take a code_helper instead of a tree_code.
697 (needs_fold_left_reduction_p): Likewise.
698 (reduction_fn_for_scalar_code): Likewise.
699 (vect_can_vectorize_without_simd_p): Declare a nNew overload that takes
701 * tree-vect-loop.c: Include case-cfn-macros.h.
702 (fold_left_reduction_fn): Take a code_helper instead of a tree_code.
703 (reduction_fn_for_scalar_code): Likewise.
704 (neutral_op_for_reduction): Likewise.
705 (needs_fold_left_reduction_p): Likewise.
706 (use_mask_by_cond_expr_p): Likewise.
707 (build_vect_cond_expr): Likewise.
708 (vect_create_partial_epilog): Likewise. Use gimple_build rather
709 than gimple_build_assign.
710 (check_reduction_path): Handle calls and operate on code_helpers
711 rather than tree_codes.
712 (vect_is_simple_reduction): Likewise.
713 (vect_model_reduction_cost): Likewise.
714 (vect_find_reusable_accumulator): Likewise.
715 (vect_create_epilog_for_reduction): Likewise.
716 (vect_transform_cycle_phi): Likewise.
717 (vectorizable_reduction): Likewise. Make more use of
719 (vect_transform_reduction): Use gimple_extract_op but expect
721 (vect_can_vectorize_without_simd_p): New overload that takes
723 * tree-vect-stmts.c (vectorizable_call): Handle reductions in
725 * tree-vect-patterns.c (vect_mark_pattern_stmts): Use
726 gimple_extract_op when updating STMT_VINFO_REDUC_IDX.
728 2021-11-30 Richard Sandiford <richard.sandiford@arm.com>
730 * gimple-match.h (code_helper): Provide == and != overloads.
731 (code_helper::operator tree_code): Make explicit.
732 (code_helper::operator combined_fn): Likewise.
733 * gimple-match-head.c (convert_conditional_op): Use explicit
734 conversions where necessary.
735 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3): Likewise.
736 (maybe_push_res_to_seq, gimple_simplify): Likewise.
737 * gimple-fold.c (replace_stmt_with_simplification): Likewise.
739 2021-11-30 Richard Sandiford <richard.sandiford@arm.com>
741 * gimple-match.h (code_helper): Add functions for querying whether
742 the code represents an internal_fn or a built_in_function.
743 Provide explicit conversion operators for both cases.
744 (gimple_extract_op): Declare.
745 * gimple-match-head.c (gimple_extract): New function, extracted from...
746 (gimple_simplify): ...here.
747 (gimple_extract_op): New function.
749 2021-11-30 Eric Botcazou <ebotcazou@adacore.com>
752 * config/i386/i386.c (ix86_output_call_insn): Beef up comment about
753 nops emitted with SEH.
754 * config/i386/winnt.c (i386_pe_seh_unwind_emit): When switching to
755 the cold section, emit a nop before the directive if the previous
756 active instruction is a call.
758 2021-11-30 Roger Sayle <roger@nextmovesoftware.com>
759 Uroš Bizjak <ubizjak@gmail.com>
762 * config/i386/sse.md (define_split): New splitters to simplify
763 not;vec_duplicate;and as vec_duplicate;andn.
765 2021-11-30 Richard Biener <rguenther@suse.de>
768 * match.pd (-((int)x >> (prec - 1)) to (unsigned)x >> (prec - 1)):
769 Use VIEW_CONVERT_EXPR for vectors.
771 2021-11-30 Richard Biener <rguenther@suse.de>
773 * cfgrtl.c (skip_insns_after_block): Refactor code to
774 be more easily readable.
775 * expr.c (op_by_pieces_d::run): Remove unreachable
777 * sched-deps.c (sched_analyze): Remove unreachable
779 * sel-sched-ir.c (in_same_ebb_p): Likewise.
780 * tree-ssa-alias.c (nonoverlapping_refs_since_match_p):
781 Remove unreachable code.
782 * tree-vect-slp.c (vectorize_slp_instance_root_stmt):
783 Refactor to avoid unreachable loop iteration.
784 * tree.c (walk_tree_1): Remove unreachable break.
785 * vec-perm-indices.c (vec_perm_indices::series_p): Remove
788 2021-11-30 Kewen Lin <linkw@linux.ibm.com>
791 * config/rs6000/rs6000-call.c (rs6000_builtin_decl): Remove builtin mask
794 2021-11-30 Kewen Lin <linkw@linux.ibm.com>
796 * config/rs6000/rs6000.c
797 (rs6000_cost_data::update_target_cost_per_stmt): Adjust the way to
798 compute extra penalized cost. Remove useless parameter.
799 (rs6000_cost_data::rs6000_add_stmt_cost): Adjust the call to function
800 update_target_cost_per_stmt.
802 2021-11-30 Kewen Lin <linkw@linux.ibm.com>
805 2021-11-17 Kewen Lin <linkw@linux.ibm.com>
807 * config/visium/visium.md (*add<mode>3_insn, *addsi3_insn, *addi3_insn,
808 *sub<mode>3_insn, *subsi3_insn, *subdi3_insn, *neg<mode>2_insn,
809 *negdi2_insn, *and<mode>3_insn, *ior<mode>3_insn, *xor<mode>3_insn,
810 *one_cmpl<mode>2_insn, *ashl<mode>3_insn, *ashr<mode>3_insn,
811 *lshr<mode>3_insn, *trunchiqi2_insn, *truncsihi2_insn,
812 *truncdisi2_insn, *extendqihi2_insn, *extendqisi2_insn,
813 *extendhisi2_insn, *extendsidi2_insn, *zero_extendqihi2_insn,
814 *zero_extendqisi2_insn, *zero_extendsidi2_insn): Fix split condition.
816 2021-11-30 Andrew MacLeod <amacleod@redhat.com>
818 PR tree-optimization/103467
819 * gimple-range-gori.cc (range_def_chain::register_dependency): Don't
820 use an object reference after a potential resize.
822 2021-11-29 Uroš Bizjak <ubizjak@gmail.com>
825 * config/i386/i386.md (*movhi_internal): Introduce (*v,C) alternative.
826 Do not allocate non-GPR registers. Optimize xmm->xmm moves when
827 optimizing for size. Fix vpinsrw insn template.
828 (*movhf_internal): Fix pinsrw and pextrw insn templates for
829 AVX targets. Use sselog1 type instead of sselog. Optimize GPR moves.
830 Optimize xmm->xmm moves for TARGET_SSE_PARTIAL_REG_DEPENDENCY
831 and TARGET_SSE_SPLIT_REGS targets.
833 2021-11-29 Eric Gallager <egallager@gcc.gnu.org>
835 * configure: Re-regenerate.
837 2021-11-29 Eric Gallager <egallager@gcc.gnu.org>
840 * Makefile.in: Substitute CTAGS, ETAGS, and CSCOPE
841 variables. Use ETAGS variable in TAGS target.
842 * configure: Regenerate.
843 * configure.ac: Allow CTAGS, ETAGS, and CSCOPE
844 variables to be overridden.
846 2021-11-29 Paul A. Clarke <pc@us.ibm.com>
848 * config/rs6000/xmmintrin.h (_mm_movemask_ps): Use vec_extractm
850 * config/rs6000/emmintrin.h (_mm_movemask_pd): Likewise.
851 (_mm_movemask_epi8): Likewise.
853 2021-11-29 Richard Biener <rguenther@suse.de>
855 * read-rtl-function.c (function_reader::read_rtx_operand):
856 Return only after resetting m_in_call_function_usage.
858 2021-11-29 Roger Sayle <roger@nextmovesoftware.com>
860 * config/i386/i386-expand.c (ix86_expand_v1ti_to_ti): Perform the
861 conversion via V2DImode using vec_extractv2didi on TARGET_SSE2.
862 * config/i386/sse.md (rotlv1ti3, rotrv1ti3): Change constraint
863 on QImode shift amounts from const_int_operand to general_operand.
865 2021-11-29 Richard Biener <rguenther@suse.de>
867 * tree.h (reverse_storage_order_for_component_p): Remove
868 spurious gcc_unreachable.
869 * cfganal.c (dfs_find_deadend): Likewise.
870 * fold-const-call.c (fold_const_logb): Likewise.
871 (fold_const_significand): Likewise.
872 * gimple-ssa-store-merging.c (lhs_valid_for_store_merging_p):
875 2021-11-29 Richard Biener <rguenther@suse.de>
877 * vec.c (qsort_chk): Do not return the void return value
878 from the noreturn qsort_chk_error.
879 * ccmp.c (expand_ccmp_expr_1): Remove unreachable return.
880 * df-scan.c (df_ref_equal_p): Likewise.
881 * dwarf2out.c (is_base_type): Likewise.
882 (add_const_value_attribute): Likewise.
883 * fixed-value.c (fixed_arithmetic): Likewise.
884 * gimple-fold.c (gimple_fold_builtin_fputs): Likewise.
885 * gimple-ssa-strength-reduction.c (stmt_cost): Likewise.
886 * graphite-isl-ast-to-gimple.c
887 (gcc_expression_from_isl_expr_op): Likewise.
888 (gcc_expression_from_isl_expression): Likewise.
889 * ipa-fnsummary.c (will_be_nonconstant_expr_predicate):
891 * lto-streamer-in.c (lto_input_mode_table): Likewise.
893 2021-11-29 liuhongt <hongtao.liu@intel.com>
896 * config/i386/i386.c (inline_secondary_memory_needed): HImode
897 move between GPR and SSE registers is supported under
898 TARGET_SSE2 and above.
899 * config/i386/i386.md (extendhfsf2): Optimize expander.
901 * config/i386/sse.md (sse2p4_1): Adjust attr for V8HFmode to
904 2021-11-29 liuhongt <hongtao.liu@intel.com>
908 * config/i386/i386.c (ix86_secondary_reload): Without
909 TARGET_SSE4_1, General register is needed to move HImode from
910 sse register to memory.
911 * config/i386/sse.md (*vec_extrachf): Use %vpextrw instead of
912 pextrw in output templates.
913 * config/i386/i386.md (movhi_internal): Ditto, also fix typo of
914 MEM_P (operands[1]) and adjust mode/prefix/type attribute for
915 alternatives related to sse register.
917 2021-11-29 Richard Biener <rguenther@suse.de>
919 PR tree-optimization/103458
920 * tree-ssa-dce.c (make_forwarders_with_degenerate_phis): Do not
921 create forwarders for blocks with abnormal predecessors.
923 2021-11-29 Richard Biener <rguenther@suse.de>
925 * gimple-predicate-analysis.cc (can_be_invalidated_p):
926 Restore semantics to the one before the split from
929 2021-11-28 Jan Hubicka <hubicka@ucw.cz>
931 * profile.c: Include sreal.h
932 (struct bb_stats): New.
933 (cmp_stats): New function.
934 (compute_branch_probabilities): Output bb stats.
936 2021-11-28 Jan Hubicka <hubicka@ucw.cz>
938 * cfghooks.c: Include sreal.h, profile.h.
939 (profile_record_check_consistency): Fix checking of count counsistency;
940 record also dynamic mismatches.
941 * cfgrtl.c (rtl_account_profile_record): Similarly.
942 * tree-cfg.c (gimple_account_profile_record): Likewise.
943 * cfghooks.h (struct profile_record): Remove num_mismatched_freq_in,
944 num_mismatched_freq_out, turn time to double, add
945 dyn_mismatched_prob_out, dyn_mismatched_count_in,
946 num_mismatched_prob_out; remove num_mismatched_count_out.
947 * passes.c (account_profile_1): New function.
948 (account_profile_in_list): New function.
949 (pass_manager::dump_profile_report): Rewrite.
950 (execute_one_ipa_transform_pass): Check profile consistency after
952 (execute_all_ipa_transforms): Remove cfun test; record all transform
954 (execute_one_pass): Fix collecting of profile stats.
956 2021-11-27 Jakub Jelinek <jakub@redhat.com>
959 * config/i386/i386.md (x86_64_shld, x86_shld, x86_64_shrd, x86_shrd):
960 Change insn pattern to accurately describe the instructions.
961 (*x86_64_shld_1, *x86_shld_1, *x86_64_shrd_1, *x86_shrd_1): New
962 define_insn patterns.
963 (*x86_64_shld_2, *x86_shld_2, *x86_64_shrd_2, *x86_shrd_2): New
964 define_insn_and_split patterns.
965 (*ashl<dwi>3_doubleword_mask, *ashl<dwi>3_doubleword_mask_1,
966 *<insn><dwi>3_doubleword_mask, *<insn><dwi>3_doubleword_mask_1,
967 ix86_rotl<dwi>3_doubleword, ix86_rotr<dwi>3_doubleword): Adjust
968 splitters for x86_{,64_}sh{l,r}d pattern changes.
970 2021-11-27 Jakub Jelinek <jakub@redhat.com>
972 PR tree-optimization/103435
973 * gimple-ssa-store-merging.c (find_bswap_or_nop_finalize): Avoid UB if
974 n->range - rsize == 8, just clear both *cmpnop and *cmpxchg in that
977 2021-11-27 Martin Jambor <mjambor@suse.cz>
980 * ipa-prop.c (ipcp_transform_function): Call
981 delete_unreachable_blocks_update_callgraph instead of returning
984 2021-11-26 Siddhesh Poyarekar <siddhesh@gotplt.org>
986 * tree-object-size.c (object_sizes_grow, object_sizes_release,
987 object_sizes_unknown_p, object_sizes_get, object_size_set_force,
988 object_sizes_set): New functions.
989 (addr_object_size, compute_builtin_object_size,
990 expr_object_size, call_object_size, unknown_object_size,
991 merge_object_sizes, plus_stmt_object_size,
992 cond_expr_object_size, collect_object_sizes_for,
993 check_for_plus_in_loops_1, init_object_sizes,
994 fini_object_sizes): Adjust.
996 2021-11-26 Siddhesh Poyarekar <siddhesh@gotplt.org>
998 * tree-object-size.c: New enum.
999 (object_sizes, computed, addr_object_size,
1000 compute_builtin_object_size, expr_object_size, call_object_size,
1001 merge_object_sizes, plus_stmt_object_size,
1002 collect_object_sizes_for, init_object_sizes, fini_object_sizes,
1003 object_sizes_execute): Replace magic numbers with enums.
1005 2021-11-26 Roger Sayle <roger@nextmovesoftware.com>
1007 * tree-ssa-loop-ivopts.c (cand_value_at): Take a class
1008 tree_niter_desc* argument instead of just a tree for NITER.
1009 If we require the iv candidate value at the end of the final
1010 loop iteration, try using the original loop bound as the
1011 NITER for sufficiently simple loops.
1012 (may_eliminate_iv): Update (only) call to cand_value_at.
1014 2021-11-26 Jan Hubicka <hubicka@ucw.cz>
1016 * ipa-modref.c (analyze_function): Drop parameter F and dump
1017 cgraph node name rather than cfun name.
1018 (modref_generate): Update.
1019 (modref_summaries::insert):Update.
1020 (modref_summaries_lto::insert):Update.
1021 (pass_modref::execute):Update.
1022 (ipa_merge_modref_summary_after_inlining): Improve combining of
1025 2021-11-26 Jan Hubicka <jh@suse.cz>
1028 * ipa-modref.c (update_escape_summary_1): Fix handling of min_flags.
1030 2021-11-26 konglin1 <lingling.kong@intel.com>
1033 * config/i386/i386.c (ix86_can_change_mode_class): Allow 16 bit data in XMM register
1035 * config/i386/i386.md (extendhfsf2): Add extenndhfsf2 for TARGET_F16C.
1036 (extendhfdf2): Restrict extendhfdf for TARGET_AVX512FP16 only.
1037 (*extendhf<mode>2): Rename from extendhf<mode>2.
1038 (truncsfhf2): Likewise.
1039 (truncdfhf2): Likewise.
1040 (*trunc<mode>2): Likewise.
1042 2021-11-26 liuhongt <hongtao.liu@intel.com>
1044 PR middle-end/103419
1045 * match.pd: Fix typo, use the type of second parameter, not
1048 2021-11-25 Jan Hubicka <jh@suse.cz>
1050 * ipa-cp.c (ipa_value_range_from_jfunc): Remove forgotten early return.
1052 2021-11-25 Roger Sayle <roger@nextmovesoftware.com>
1054 PR middle-end/103406
1055 * match.pd (minus @0 @0): Check tree_expr_maybe_infinite_p.
1057 2021-11-25 Martin Jambor <mjambor@suse.cz>
1060 * ipa-prop.h (ipa_get_param): New overload. Move bits of the existing
1062 * ipa-param-manipulation.h (ipa_param_adjustments): New member
1063 function get_updated_index_or_split.
1064 * ipa-param-manipulation.c
1065 (ipa_param_adjustments::get_updated_index_or_split): New function.
1066 * ipa-prop.c (adjust_agg_replacement_values): Reimplement, add
1067 capability to identify scalarized parameters and perform substitution
1069 (ipcp_transform_function): Create descriptors earlier, handle new
1070 return values of adjust_agg_replacement_values.
1072 2021-11-25 Aldy Hernandez <aldyh@redhat.com>
1074 * gimple-range-path.cc (path_range_query::compute_ranges_defined): Remove.
1075 (path_range_query::compute_ranges_in_block): Revert to bitmap order.
1076 * gimple-range-path.h: Remove compute_ranges_defined.
1078 2021-11-25 Andrew Stubbs <ams@codesourcery.com>
1081 * config/gcn/gcn.c (move_callee_saved_registers): Ensure that the
1082 number of spilled registers is counted correctly.
1084 2021-11-25 Jan Hubicka <hubicka@ucw.cz>
1086 * ipa-prop.h (ipa_node_params::ipa_node_params): Initialize
1089 2021-11-25 Andrew MacLeod <amacleod@redhat.com>
1091 PR tree-optimization/103359
1092 * gimple-range-fold.cc (fold_using_range::range_of_phi): If arg is
1093 equivalent to def, don't initially include it's range.
1095 2021-11-25 Jan Hubicka <hubicka@ucw.cz>
1097 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Do not check
1098 gimple_static_chain.
1100 2021-11-25 Richard Biener <rguenther@suse.de>
1102 * cgraphunit.c (symbol_table::output_weakrefs): Remove
1104 (get_alias_symbol): Remove now unused function.
1106 2021-11-25 Richard Biener <rguenther@suse.de>
1108 * cfgrtl.c (rtl_verify_fallthru): Do not stop verifying
1110 (skip_insns_after_block): Remove unreachable break and continue.
1112 2021-11-25 Richard Biener <rguenther@suse.de>
1114 * cfgexpand.c (label_rtx_for_bb): Remove dead loop construct.
1116 2021-11-25 Richard Biener <rguenther@suse.de>
1118 * regset.h (REG_SET_EMPTY_P): New macro.
1119 * cfgcleanup.c (thread_jump): Use REG_SET_EMPTY_P.
1121 2021-11-25 Martin Liska <mliska@suse.cz>
1123 * doc/invoke.texi: Use @option for -Wuninitialized.
1125 2021-11-25 Aldy Hernandez <aldyh@redhat.com>
1127 PR tree-optimization/103254
1128 * gimple-range-path.cc (path_range_query::compute_ranges): Move
1129 exported boolean code...
1130 (path_range_query::compute_imports): ...here.
1132 2021-11-25 Aldy Hernandez <aldyh@redhat.com>
1134 PR tree-optimization/103254
1135 * gimple-range-path.cc (path_range_query::compute_ranges_defined): New
1136 (path_range_query::compute_ranges_in_block): Move to
1137 compute_ranges_defined.
1138 * gimple-range-path.h (compute_ranges_defined): New.
1140 2021-11-25 Jakub Jelinek <jakub@redhat.com>
1142 PR tree-optimization/103417
1143 * match.pd ((X & Y) CMP 0): Only handle eq and ne. Commonalize
1146 2021-11-25 Jakub Jelinek <jakub@redhat.com>
1148 PR tree-optimization/103376
1149 * gimple-ssa-store-merging.c (perform_symbolic_merge): For
1150 BIT_IOR_EXPR, if masked1 && masked2 && masked1 != masked2, don't
1151 punt, but set the corresponding result byte to MARKER_BYTE_UNKNOWN.
1152 For BIT_XOR_EXPR similarly and if masked1 == masked2 and the
1153 byte isn't MARKER_BYTE_UNKNOWN, set the corresponding result byte to
1156 2021-11-25 Jakub Jelinek <jakub@redhat.com>
1159 * doc/invoke.texi (-Wcomma-subscript): Document that for
1160 -std=c++20 the option isn't enabled by default with -Wno-deprecated
1161 but for -std=c++23 it is.
1163 2021-11-24 Jan Hubicka <hubicka@ucw.cz>
1165 * ipa-modref.c (implicit_eaf_flags_for_edge_and_arg): Break out from...
1166 (modref_merge_call_site_flags): ... here.
1167 (ipa_merge_modref_summary_after_inlining): Use it.
1169 2021-11-24 Thomas Schwinge <thomas@codesourcery.com>
1171 * cfgloop.c (verify_loop_structure): Reduce scope of
1172 'class loop *loop' variable.
1173 * ipa-fnsummary.c (analyze_function_body): Likewise.
1174 * loop-init.c (fix_loop_structure): Likewise.
1175 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
1176 * predict.c (predict_loops): Likewise.
1177 * tree-loop-distribution.c (loop_distribution::execute): Likewise.
1178 * tree-vectorizer.c (pass_vectorize::execute): Likewise.
1180 2021-11-24 Andrew MacLeod <amacleod@redhat.com>
1182 PR tree-optimization/103231
1183 * gimple-range.cc (gimple_ranger::gimple_ranger): Create stmt stack.
1184 (gimple_ranger::gimple_ranger): Delete stmt stack.
1185 (gimple_ranger::range_of_stmt): Process depenedencies if they have no
1187 (gimple_ranger::prefill_name): New.
1188 (gimple_ranger::prefill_stmt_dependencies): New.
1189 * gimple-range.h (class gimple_ranger): Add prototypes.
1191 2021-11-24 Andrew MacLeod <amacleod@redhat.com>
1193 * gimple-range-cache.cc (ranger_cache::get_global_range): Always
1194 return a range, return if it came from the cache or not.
1195 (get_non_stale_global_range): Rename to get_global_range, and return
1196 the temporal state in a flag.
1197 * gimple-range-cache.h (get_non_stale_global_range): Rename and adjust.
1198 * gimple-range.cc (gimple_ranger::range_of_expr): No need to query
1200 (gimple_ranger::range_of_stmt): Adjust for global cache temporal state
1203 2021-11-24 Andrew MacLeod <amacleod@redhat.com>
1205 * gimple-range.cc (gimple_ranger::range_on_edge): Call trailer when
1206 a constant is encountered to terminate the trace.
1208 2021-11-24 Maciej W. Rozycki <macro@embecosm.com>
1210 PR middle-end/103059
1211 * reload.c (find_reloads_address_1): Also accept the ASHIFT form
1212 of indexed addressing.
1213 (find_reloads): Adjust accordingly.
1215 2021-11-24 Richard Biener <rguenther@suse.de>
1216 Jan Hubicka <jh@suse.cz>
1218 PR tree-optimization/103168
1219 * ipa-modref.h (struct modref_summary): Add load_accesses.
1220 * ipa-modref.c (modref_summary::finalize): Initialize load_accesses.
1221 * tree-ssa-sccvn.c (visit_reference_op_call): Use modref
1222 info to walk the virtual use->def chain to CSE const/pure
1223 function calls possibly reading from memory.
1225 2021-11-24 Thomas Schwinge <thomas@codesourcery.com>
1227 PR middle-end/103244
1228 * gimplify.c (gimplify_adjust_omp_clauses): Restore previous
1231 2021-11-24 Richard Biener <rguenther@suse.de>
1233 PR middle-end/103193
1234 * match.pd: Avoid canonicalizing (le/ge @0 @0) to (eq @0 @0)
1235 with NaNs and -ftrapping-math.
1237 2021-11-24 Jakub Jelinek <jakub@redhat.com>
1239 PR middle-end/103384
1240 * omp-general.c (omp_context_selector_matches): For ACCEL_COMPILER,
1241 return 0 for kind(host) and continue for kind(nohost).
1243 2021-11-24 Jakub Jelinek <jakub@redhat.com>
1245 PR middle-end/103365
1246 * attribs.h (lookup_attribute): Allow attr_name to start with
1247 underscore, as long as canonicalize_attr_name returns false.
1248 (lookup_attribute_by_prefix): Don't call get_attribute_name twice.
1249 * attribs.c (extract_attribute_substring): Reimplement using
1250 canonicalize_attr_name.
1251 (register_scoped_attribute): Change gcc_assert into
1252 gcc_checking_assert, verify !canonicalize_attr_name rather than
1253 that str.str doesn't start with '_'.
1255 2021-11-24 Jakub Jelinek <jakub@redhat.com>
1257 PR tree-optimization/103376
1258 * gimple-ssa-store-merging.c (perform_symbolic_merge): Add CODE
1259 argument. If CODE is not BIT_IOR_EXPR, ensure that one of masked1
1261 (find_bswap_or_nop_1, find_bswap_or_nop,
1262 imm_store_chain_info::try_coalesce_bswap): Adjust
1263 perform_symbolic_merge callers.
1265 2021-11-24 Richard Biener <rguenther@suse.de>
1267 * tree-ssa-loop-ivopts.c (find_givs): Take loop body as
1268 argument instead of re-computing it.
1269 (find_interesting_uses): Likewise.
1270 (find_induction_variables): Pass through loop body.
1271 (tree_ssa_iv_optimize_loop): Pass down loop body.
1273 2021-11-24 Tamar Christina <tamar.christina@arm.com>
1275 * tree-ssa-phiopt.c (spaceship_replacement): Handle new canonical
1278 2021-11-24 Tamar Christina <tamar.christina@arm.com>
1280 * tree.c (bitmask_inv_cst_vector_p): New.
1281 * tree.h (bitmask_inv_cst_vector_p): New.
1282 * match.pd: Use it in new bitmask compare pattern.
1284 2021-11-24 Jason Merrill <jason@redhat.com>
1286 * timevar.h (class auto_cond_timevar): New.
1288 2021-11-24 Hongtao Liu <hongtao.liu@intel.com>
1289 H.J. Lu <hongjiu.lu@intel.com>
1291 PR tree-optimization/103194
1292 * match.pd (gimple_nop_atomic_bit_test_and_p): Extended to
1294 * tree-ssa-ccp.c (gimple_nop_convert): Declare.
1295 (optimize_atomic_bit_test_and): Enhance
1296 optimize_atomic_bit_test_and to handle truncation.
1298 2021-11-23 Martin Sebor <msebor@redhat.com>
1301 * Makefile.in (OBJS): Add gimple-warn-recursion.o.
1302 * common.opt: Add -Winfinite-recursion.
1303 * doc/invoke.texi (-Winfinite-recursion): Document.
1304 * passes.def (pass_warn_recursion): Schedule a new pass.
1305 * tree-pass.h (make_pass_warn_recursion): Declare.
1306 * gimple-warn-recursion.c: New file.
1308 2021-11-23 Bill Schmidt <wschmidt@linux.ibm.com>
1310 * config/rs6000/rs6000-call.c (rs6000_invalid_new_builtin): Change
1311 error messages for ENB_P8V and ENB_P9V.
1313 2021-11-23 Bill Schmidt <wschmidt@linux.ibm.com>
1315 * config/rs6000/rs6000-builtin-new.def: Add power6-64 stanza. Move
1316 CMPB to power6-64 stanza.
1317 * config/rs6000/rs6000-call.c (rs6000_invalid_new_builtin): Handle
1319 (rs6000_new_builtin_is_supported): Likewise.
1320 (rs6000_expand_new_builtin): Likewise. Clean up formatting.
1321 (rs6000_init_builtins): Handle ENB_P6_64 case.
1322 * config/rs6000/rs6000-gen-builtins.c (bif_stanza): Add BSTZ_P6_64.
1323 (stanza_map): Add entry mapping power6-64 to BSTZ_P6_64.
1324 (enable_string): Add "ENB_P6_64".
1325 (write_decls): Add ENB_P6_64 to bif_enable enum.
1327 2021-11-23 Jan Hubicka <jh@suse.cz>
1329 * ipa-modref-tree.h (struct modref_tree): Remove max_bases, max_refs
1331 (modref_tree::modref_tree): Remove parametr.
1332 (modref_tree::insert_base): Add max_bases parameter.
1333 (modref_tree::insert): Add max_bases, max_refs, max_accesses
1335 (modref_tree::insert): New member function.
1336 (modref_tree::merge): Add max_bases, max_refs, max_accesses
1338 (modref_tree::insert): New member function.
1339 * ipa-modref-tree.c (test_insert_search_collapse): Update.
1340 (test_merge): Update.
1341 * ipa-modref.c (dump_records): Don't dump max_refs and max_bases.
1342 (dump_lto_records): Likewise.
1343 (modref_summary::finalize): Fix whitespace.
1344 (get_modref_function_summary): Likewise.
1345 (modref_access_analysis::record_access): Update.
1346 (modref_access_analysis::record_access_lto): Update.
1347 (modref_access_analysis::process_fnspec): Update.
1348 (analyze_function): Update.
1349 (modref_summaries::duplicate): Update.
1350 (modref_summaries_lto::duplicate): Update.
1351 (write_modref_records): Update.
1352 (read_modref_records): Update.
1353 (read_section): Update.
1354 (propagate_unknown_call): Update.
1355 (modref_propagate_in_scc): Update.
1356 (ipa_merge_modref_summary_after_inlining): Update.
1358 2021-11-23 Martin Liska <mliska@suse.cz>
1360 * doc/invoke.texi: Remove 2 more duplicite param descriptions.
1362 2021-11-23 Richard Biener <rguenther@suse.de>
1364 PR tree-optimization/103361
1365 * gimple-loop-jam.c (adjust_unroll_factor): Use lambda_int
1366 for the dependence distance.
1367 * tree-data-ref.c (print_lambda_vector): Properly print a lambda_int.
1369 2021-11-23 Jakub Jelinek <jakub@redhat.com>
1371 * tree-inline.h (struct copy_body_data): Remove
1372 transform_lang_insert_block member.
1373 * tree-inline.c (remap_block): Don't call
1374 id->transform_lang_insert_block.
1375 (optimize_inline_calls, copy_gimple_seq_and_replace_locals,
1376 tree_function_versioning, maybe_inline_call_in_expr,
1377 copy_fn): Don't initialize id.transform_lang_insert_block.
1378 * gimplify.c (gimplify_omp_loop): Likewise.
1380 2021-11-23 Jan Hubicka <hubicka@ucw.cz>
1382 PR tree-optimization/103335
1383 * tree-ssa-dse.c (valid_ao_ref_for_dse): Rename to ...
1384 (valid_ao_ref_kill_for_dse): ... this; do not check that boundaries
1385 are divisible by BITS_PER_UNIT.
1386 (get_byte_aligned_range_containing_ref): New function.
1387 (get_byte_aligned_range_contained_in_ref): New function.
1388 (normalize_ref): Rename to ...
1389 (get_byte_range): ... this one; handle accesses not aligned to byte
1390 boundary; return range in bytes rater than updating ao_ref.
1391 (clear_live_bytes_for_ref): Take write ref by reference; simplify using
1393 (setup_live_bytes_from_ref): Likewise.
1394 (clear_bytes_written_by): Update.
1395 (live_bytes_read): Update.
1396 (dse_classify_store): Simplify tech before live_bytes_read checks.
1398 2021-11-23 Andrew Pinski <apinski@marvell.com>
1400 PR tree-optimization/102216
1401 * gimple-fold.c (fold_stmt_1): Add canonicalization
1402 of "&MEM[ssa_n, CST]" to "ssa_n p+ CST", note this
1403 can only be done if !in_place.
1405 2021-11-23 Jakub Jelinek <jakub@redhat.com>
1407 PR middle-end/102431
1408 * gimplify.c (replace_reduction_placeholders): Remove.
1409 (note_no_context_vars): New function.
1410 (gimplify_omp_loop): For OMP_PARALLEL's BIND_EXPR create a new
1411 BLOCK. Use copy_tree_body_r with walk_tree instead of unshare_expr
1412 and replace_reduction_placeholders for duplication of
1413 OMP_CLAUSE_REDUCTION_{INIT,MERGE} expressions. Ensure all mentioned
1414 automatic vars have DECL_CONTEXT set to non-NULL before doing so
1415 and reset it afterwards for those vars and their corresponding
1418 2021-11-23 Haochen Gui <guihaoc@gcc.gnu.org>
1421 * config/rs6000/altivec.md (altivec_vreve<mode>2 for VEC_K): Use
1422 xxbrq for v16qi, xxbrq + xxbrh for v8hi and xxbrq + xxbrw for v4si
1423 or v4sf when p9_vector is set.
1424 (altivec_vreve<mode>2 for VEC_64): Defined. Implemented by xxswapd.
1426 2021-11-23 Navid Rahimi <navidrahimi@microsoft.com>
1428 PR tree-optimization/102232
1429 * match.pd (x * (1 + y / x) - y) -> (x - y % x): New optimization.
1431 2021-11-23 Navid Rahimi <navidrahimi@microsoft.com>
1433 PR tree-optimization/96779
1434 * match.pd (-x == x) -> (x == 0): New optimization.
1436 2021-11-22 Roger Sayle <roger@nextmovesoftware.com>
1438 PR tree-optimization/98953
1439 PR tree-optimization/103345
1440 * gimple-ssa-store-merging.c (find_bswap_or_nop_1): Handle
1441 BIT_XOR_EXPR and PLUS_EXPR the same as BIT_IOR_EXPR.
1442 (pass_optimize_bswap::execute): Likewise.
1444 2021-11-22 Martin Liska <mliska@suse.cz>
1446 * doc/invoke.texi: Remove duplicate documentation for 3 params.
1448 2021-11-22 Richard Biener <rguenther@suse.de>
1450 PR tree-optimization/103351
1451 * tree-ssa-dce.c (sort_phi_args): Sort after e->dest_idx as
1454 2021-11-22 liuhongt <hongtao.liu@intel.com>
1457 * config/i386/constraints.md (Bk): New
1458 define_memory_constraint.
1459 * config/i386/i386-protos.h (ix86_gpr_tls_address_pattern_p):
1461 * config/i386/i386.c (ix86_gpr_tls_address_pattern_p): New
1463 * config/i386/i386.md (*movsi_internal): Don't allow
1464 mask/sse/mmx move in TLS code sequences.
1465 (*movdi_internal): Ditto.
1467 2021-11-22 Kewen Lin <linkw@linux.ibm.com>
1469 * config/xtensa/xtensa.md (movdi_internal, movdf_internal): Fix split
1472 2021-11-21 Jakub Jelinek <jakub@redhat.com>
1475 * config/i386/i386-options.c (ix86_valid_target_attribute_p): If
1476 fndecl already has DECL_FUNCTION_SPECIFIC_TARGET, use that as base
1477 instead of target_option_default_node.
1479 2021-11-21 Jan Hubicka <hubicka@ucw.cz>
1482 * ipa-modref.c (parm_map_for_arg): Rename to ...
1483 (parm_map_for_ptr): .. this one; handle static chain and calls to
1485 (modref_access_analysis::get_access): Use parm_map_for_ptr.
1486 (modref_access_analysis::process_fnspec): Update.
1487 (modref_access_analysis::analyze_load): Update.
1488 (modref_access_analysis::analyze_store): Update.
1490 2021-11-21 Jan Hubicka <hubicka@ucw.cz>
1492 * ipa-modref.c (ignore_nondeterminism_p): Move earlier in source
1494 (ignore_retval_p): Likewise.
1495 (ignore_stores_p): Likewise.
1496 (parm_map_for_arg): Likewise.
1497 (class modref_access_analysis): New class.
1498 (modref_access_analysis::set_side_effects): New member function.
1499 (modref_access_analysis::set_nondeterministic): New member function.
1500 (get_access): Turn to ...
1501 (modref_access_analysis::get_access): ... this one.
1502 (record_access): Turn to ...
1503 (modref_access_analysis::record_access): ... this one.
1504 (record_access_lto): Turn to ...
1505 (modref_access_analysis::record_access_lto): ... This one.
1506 (record_access_p): Turn to ...
1507 (modref_access_analysis::record_access_p): ... This one
1508 (modref_access_analysis::record_unknown_load): New member function.
1509 (modref_access_analysis::record_unknown_store): New member function.
1510 (get_access_for_fnspec): Turn to ...
1511 (modref_access_analysis::get_access_for_fnspec): ... this one.
1512 (merge_call_side_effects): Turn to ...
1513 (moderf_access_analysis::merge_call_side_effects): Turn to ...
1514 (collapse_loads): Move later in source code.
1515 (collapse_stores): Move later in source code.
1516 (process_fnspec): Turn to ...
1517 (modref_access_analysis::process_fnspec): ... this one.
1518 (analyze_call): Turn to ...
1519 (modref_access_analysis::analyze_call): ... this one.
1520 (struct summary_ptrs): Remove.
1521 (analyze_load): Turn to ...
1522 (modref_access_analysis::analyze_load): ... this one.
1523 (analyze_store): Turn to ...
1524 (modref_access_analysis::analyze_store): ... this one.
1525 (analyze_stmt): Turn to ...
1526 (modref_access_analysis::analyze_stmt): ... This one.
1527 (remove_summary): Remove.
1528 (modref_access_analysis::propagate): Break out from ...
1529 (modref_access_analysis::analyze): Break out from ...
1530 (analyze_function): ... here.
1532 2021-11-21 Roger Sayle <roger@nextmovesoftware.com>
1533 Robin Dapp <rdapp@linux.ibm.com>
1536 * tree-ssa-math-opts.c (convert_mult_to_widen): Recognize
1537 signed WIDEN_MULT_EXPR if the target supports umul_widen_optab.
1539 2021-11-20 Jan Hubicka <hubicka@ucw.cz>
1542 * ipa-modref.c (ignore_nondeterminism_p): Allow looping pure/cont.
1543 (merge_call_side_effects): Improve debug output.
1545 2021-11-20 Jan Hubicka <hubicka@ucw.cz>
1548 * ipa-pure-const.c (propagate_pure_const): Fix merging of loping flag.
1550 2021-11-20 Jeff Law <jeffreyalaw@gmail.com>
1552 PR tree-optimization/103226
1553 * config/bfin/bfin.md (doloop pattern, splitter and expander): Clobber
1556 2021-11-20 Andrew Pinski <apinski@marvell.com>
1558 PR tree-optimization/103220
1559 * match.pd ((type) X bitop CST): Don't check if CST
1560 fits into the type if only the sign changes.
1562 2021-11-20 Alexandre Oliva <oliva@adacore.com>
1564 PR tree-optimization/102988
1565 * gimple-harden-conditionals.cc (detach_value): Copy SSA_NAME
1566 without decl sharing.
1568 2021-11-19 Iain Sandoe <iain@sandoe.co.uk>
1570 * doc/invoke.texi: Remove whitespace after an @option.
1572 2021-11-19 Paul A. Clarke <pc@us.ibm.com>
1574 * config/rs6000/emmintrin.h (_mm_sad_epu8): Use vec_absd when
1575 _ARCH_PWR9, optimize vec_sum2s when LE.
1577 2021-11-19 Iain Sandoe <iain@sandoe.co.uk>
1580 * config/darwin-driver.c (darwin_driver_init): Handle exported
1581 symbols and symbol lists (suppress automatic export of the TLS
1583 * config/darwin.c (darwin_rename_builtins): Remove workaround.
1584 * config/darwin.h (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
1585 (REAL_LIBGCC_SPEC): Handle revised library uses.
1586 * config/darwin.opt (nodefaultexport): New.
1587 * config/i386/darwin.h (PR80556_WORKAROUND): Remove.
1588 * config/i386/darwin32-biarch.h (PR80556_WORKAROUND): Likewise.
1589 * config/i386/darwin64-biarch.h (PR80556_WORKAROUND): Likewise.
1591 2021-11-19 Martin Jambor <mjambor@suse.cz>
1593 * opts.c (default_options_table): Switch off
1594 flag_semantic_interposition at Ofast.
1595 * doc/invoke.texi (Optimize Options): Document that Ofast switches off
1596 -fsemantic-interposition.
1598 2021-11-19 Jan Hubicka <hubicka@ucw.cz>
1600 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Do not guard modref
1601 by !gimple_call_chain.
1603 2021-11-19 Martin Sebor <msebor@redhat.com>
1607 * doc/invoke.texi (-Waddress): Update.
1609 2021-11-19 Andrew MacLeod <amacleod@redhat.com>
1611 PR tree-optimization/103254
1612 * gimple-range-gori.cc (range_def_chain::get_def_chain): Limit the
1613 depth for all statements with multple ssa names.
1615 2021-11-19 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
1617 * config/s390/s390.md (define_peephole2): Variable insn points
1618 to the first matched insn. Use peep2_next_insn(1) to refer to
1619 the second matched insn.
1621 2021-11-19 Tamar Christina <tamar.christina@arm.com>
1623 PR tree-optimization/103311
1625 * tree-vect-slp-patterns.c (vect_validate_multiplication): Fix CONJ
1626 test to new codegen.
1627 (complex_mul_pattern::matches): Move check downwards.
1629 2021-11-19 Martin Liska <mliska@suse.cz>
1632 2021-11-19 Martin Liska <mliska@suse.cz>
1634 * cfgexpand.c (pass_expand::execute): Use option directly.
1635 * function.c (allocate_struct_function): Likewise.
1636 * gimple-low.c (lower_function_body): Likewise.
1637 (lower_stmt): Likewise.
1638 * gimple-ssa-backprop.c (backprop::prepare_change): Likewise.
1639 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call): Likewise.
1640 * ipa-split.c (split_function): Likewise.
1641 * lto-streamer-in.c (input_function): Likewise.
1642 * sese.c (sese_insert_phis_for_liveouts): Likewise.
1643 * ssa-iterators.h (num_imm_uses): Likewise.
1644 * tree-cfg.c (make_blocks): Likewise.
1645 (gimple_merge_blocks): Likewise.
1646 * tree-inline.c (tree_function_versioning): Likewise.
1647 * tree-loop-distribution.c (generate_loops_for_partition): Likewise.
1648 * tree-sra.c (analyze_access_subtree): Likewise.
1649 * tree-ssa-dce.c (remove_dead_stmt): Likewise.
1650 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Likewise.
1651 * tree-ssa-phiopt.c (spaceship_replacement): Likewise.
1652 * tree-ssa-reassoc.c (reassoc_remove_stmt): Likewise.
1653 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
1654 * tree-ssa-threadedge.c (propagate_threaded_block_debug_into): Likewise.
1655 * tree-ssa.c (gimple_replace_ssa_lhs): Likewise.
1656 (target_for_debug_bind): Likewise.
1657 (insert_debug_temp_for_var_def): Likewise.
1658 (insert_debug_temps_for_defs): Likewise.
1659 (reset_debug_uses): Likewise.
1660 * tree-ssanames.c (release_ssa_name_fn): Likewise.
1661 * tree-vect-loop-manip.c (adjust_vec_debug_stmts): Likewise.
1662 (adjust_debug_stmts): Likewise.
1663 (adjust_phi_and_debug_stmts): Likewise.
1664 (vect_do_peeling): Likewise.
1665 * tree-vect-loop.c (vect_transform_loop_stmt): Likewise.
1666 (vect_transform_loop): Likewise.
1667 * tree.h (MAY_HAVE_DEBUG_MARKER_STMTS): Remove
1668 (MAY_HAVE_DEBUG_BIND_STMTS): Remove.
1669 (MAY_HAVE_DEBUG_STMTS): Use options directly.
1671 2021-11-19 Giuliano Belinassi <gbelinassi@suse.de>
1673 * gcc.c (process_command): Skip dumpdir override if file is a
1675 * doc/invoke.texi: Update -dumpdir documentation.
1677 2021-11-19 Andrew Pinski <apinski@marvell.com>
1679 PR tree-optimization/103314
1680 * match.pd ((type) X op CST): Restrict the equal
1681 TYPE_PRECISION case to GIMPLE only.
1683 2021-11-19 Martin Liska <mliska@suse.cz>
1686 * ipa-modref-tree.h (struct modref_parm_map): Add default
1688 * ipa-modref.c (ipa_merge_modref_summary_after_inlining): Use it.
1690 2021-11-19 Richard Biener <rguenther@suse.de>
1692 PR middle-end/103248
1693 * tree-eh.c (operation_could_trap_helper_p): Properly handle
1694 fixed-point RDIV_EXPR.
1696 2021-11-19 Richard Biener <rguenther@suse.de>
1698 PR tree-optimization/102436
1699 * tree-ssa-loop-im.c (execute_sm_if_changed): Add mode
1700 to just create the if structure and return the then block.
1701 (execute_sm): Add flag to indicate the var will re-use
1703 (hoist_memory_references): Support a single conditional
1704 block with all stores as special case.
1706 2021-11-19 Andrew Pinski <apinski@marvell.com>
1708 PR tree-optimization/103317
1709 * tree-ssa-phiopt.c (minmax_replacement): For the non empty
1710 middle bb case, check to make sure it has a single predecessor.
1712 2021-11-19 Andrew Pinski <apinski@marvell.com>
1714 PR tree-optimization/103257
1716 ((m1 >/</>=/<= m2) * d -> (m1 >/</>=/<= m2) ? d : 0):
1717 Disable until !canonicalize_math_p ().
1719 2021-11-19 Marek Polacek <polacek@redhat.com>
1723 * doc/invoke.texi: Update documentation for -Wuninitialized.
1724 * tree.c (stabilize_reference): Set location.
1726 2021-11-19 liuhongt <hongtao.liu@intel.com>
1729 * config/i386/x86-tune-costs.h (skylake_cost): Reduce cost of
1730 storing 256/512-bit SSE register to be equal to cost of
1731 unaligned store to avoid odd alignment peeling.
1732 (icelake_cost): Ditto.
1734 2021-11-18 David Edelsohn <dje.gcc@gmail.com>
1736 * config/rs6000/predicates.md (current_file_function_operand):
1737 Add flag_semantic_interposition to call of decl_replaceable_p.
1739 2021-11-18 Martin Liska <mliska@suse.cz>
1741 * ipa-modref.c (analyze_function): Do not execute the code
1742 only if dump_file != NULL.
1744 2021-11-18 Martin Liska <mliska@suse.cz>
1746 * ipa-modref.c (analyze_function): Use fnode instead of repeated
1747 cgraph_node::get (current_function_decl).
1749 2021-11-18 Jan Hubicka <hubicka@ucw.cz>
1751 * cgraph.c (cgraph_node::get_availability): Update call of
1753 (cgraph_node::verify_node): Verify that semantic_interposition flag
1755 * cgraph.h: (symtab_node): Add semantic_interposition flag.
1756 * cgraphclones.c (set_new_clone_decl_and_node_flags): Clear
1757 semantic_interposition flag.
1758 * cgraphunit.c (cgraph_node::finalize_function): Set
1759 semantic_interposition flag.
1760 (cgraph_node::add_new_function): Likewise.
1761 (varpool_node::finalize_decl): Likewise.
1762 (cgraph_node::create_wrapper): Likewise.
1763 * common.opt (fsemantic-interposition): Turn to optimization node.
1764 * lto-cgraph.c (lto_output_node): Stream semantic_interposition.
1765 (lto_output_varpool_node): Likewise.
1766 (input_overwrite_node): Likewise.
1767 (input_varpool_node): Likewise.
1768 * symtab.c (symtab_node::dump_base): Dump new flag.
1769 * varasm.c (decl_replaceable_p): Add semantic_interposition_p
1771 * varasm.h (decl_replaceable_p): Update declaration.
1772 * varpool.c (varpool_node::ctor_useable_for_folding_p):
1773 Use semantic_interposition flag.
1774 (varpool_node::get_availability): Likewise.
1775 (varpool_node::create_alias): Copy semantic_interposition flag.
1777 2021-11-18 Jan Hubicka <hubicka@ucw.cz>
1780 * ipa-modref.c (modref_eaf_analysis::merge_call_lhs_flags): Unused
1781 parameter may still be returned.
1782 (modref_eaf_analysis::analyze_ssa_name): Call merge_call_lhs_flags
1783 even for unused function args.
1785 2021-11-18 Tamar Christina <tamar.christina@arm.com>
1787 PR tree-optimization/103311
1788 * tree-vect-slp-patterns.c (complex_mul_pattern::matches,
1789 complex_fms_pattern::matches): Check for multiplications.
1791 2021-11-18 H.J. Lu <hjl.tools@gmail.com>
1794 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): Emit
1795 CS prefix for -mindirect-branch-cs-prefix.
1796 (ix86_output_indirect_branch_via_reg): Likewise.
1797 * config/i386/i386.opt: Add -mindirect-branch-cs-prefix.
1798 * doc/invoke.texi: Document -mindirect-branch-cs-prefix.
1800 2021-11-18 David Edelsohn <dje.gcc@gmail.com>
1802 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
1805 2021-11-18 Tamar Christina <tamar.christina@arm.com>
1807 PR tree-optimization/103253
1808 * tree-ssa-math-opts.c (convert_mult_to_fma): Check for LHS.
1810 2021-11-18 Matthias Kretz <m.kretz@gsi.de>
1812 * doc/extend.texi: Document __builtin_assoc_barrier.
1814 2021-11-18 Martin Liska <mliska@suse.cz>
1816 * cfgexpand.c (pass_expand::execute): Use option directly.
1817 * function.c (allocate_struct_function): Likewise.
1818 * gimple-low.c (lower_function_body): Likewise.
1819 (lower_stmt): Likewise.
1820 * gimple-ssa-backprop.c (backprop::prepare_change): Likewise.
1821 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call): Likewise.
1822 * ipa-split.c (split_function): Likewise.
1823 * lto-streamer-in.c (input_function): Likewise.
1824 * sese.c (sese_insert_phis_for_liveouts): Likewise.
1825 * ssa-iterators.h (num_imm_uses): Likewise.
1826 * tree-cfg.c (make_blocks): Likewise.
1827 (gimple_merge_blocks): Likewise.
1828 * tree-inline.c (tree_function_versioning): Likewise.
1829 * tree-loop-distribution.c (generate_loops_for_partition): Likewise.
1830 * tree-sra.c (analyze_access_subtree): Likewise.
1831 * tree-ssa-dce.c (remove_dead_stmt): Likewise.
1832 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Likewise.
1833 * tree-ssa-phiopt.c (spaceship_replacement): Likewise.
1834 * tree-ssa-reassoc.c (reassoc_remove_stmt): Likewise.
1835 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
1836 * tree-ssa-threadedge.c (propagate_threaded_block_debug_into): Likewise.
1837 * tree-ssa.c (gimple_replace_ssa_lhs): Likewise.
1838 (target_for_debug_bind): Likewise.
1839 (insert_debug_temp_for_var_def): Likewise.
1840 (insert_debug_temps_for_defs): Likewise.
1841 (reset_debug_uses): Likewise.
1842 * tree-ssanames.c (release_ssa_name_fn): Likewise.
1843 * tree-vect-loop-manip.c (adjust_vec_debug_stmts): Likewise.
1844 (adjust_debug_stmts): Likewise.
1845 (adjust_phi_and_debug_stmts): Likewise.
1846 (vect_do_peeling): Likewise.
1847 * tree-vect-loop.c (vect_transform_loop_stmt): Likewise.
1848 (vect_transform_loop): Likewise.
1849 * tree.h (MAY_HAVE_DEBUG_MARKER_STMTS): Remove
1850 (MAY_HAVE_DEBUG_BIND_STMTS): Remove.
1851 (MAY_HAVE_DEBUG_STMTS): Use options directly.
1853 2021-11-18 Richard Biener <rguenther@suse.de>
1855 PR tree-optimization/103277
1856 * tree-ssa-dse.c (need_ab_cleanup): New.
1857 (dse_optimize_redundant_stores): Adjust.
1858 (delete_dead_or_redundant_assignment): Get extra
1859 need_ab_cleanup argument and set when abnormal cleanup is
1861 (dse_optimize_call): Adjust.
1862 (dse_optimize_stmt): Likewise.
1863 (pass_dse::execute): Allocate and deallocate need_ab_cleanup.
1864 Perform abnormal cleanup.
1865 * tree-ssa-dse.h (delete_dead_or_redundant_assignment): Adjust.
1867 2021-11-18 Hongyu Wang <hongyu.wang@intel.com>
1869 * config/i386/i386-expand.c (ix86_expand_atomic_fetch_op_loop):
1870 Adjust generated cfg to avoid infinite loop.
1872 2021-11-18 konglin1 <lingling.kong@intel.com>
1874 * config/i386/avx512fp16intrin.h (_mm512_mul_pch): Add alias for _mm512_fmul_pch.
1875 (_mm512_mask_mul_pch): Likewise.
1876 (_mm512_maskz_mul_pch): Likewise.
1877 (_mm512_mul_round_pch): Likewise.
1878 (_mm512_mask_mul_round_pch): Likewise.
1879 (_mm512_maskz_mul_round_pch): Likewise.
1880 (_mm512_cmul_pch): Likewise.
1881 (_mm512_mask_cmul_pch): Likewise.
1882 (_mm512_maskz_cmul_pch): Likewise.
1883 (_mm512_cmul_round_pch): Likewise.
1884 (_mm512_mask_cmul_round_pch): Likewise.
1885 (_mm512_maskz_cmul_round_pch): Likewise.
1886 (_mm_mul_sch): Likewise.
1887 (_mm_mask_mul_sch): Likewise.
1888 (_mm_maskz_mul_sch): Likewise.
1889 (_mm_mul_round_sch): Likewise.
1890 (_mm_mask_mul_round_sch): Likewise.
1891 (_mm_maskz_mul_round_sch): Likewise.
1892 (_mm_cmul_sch): Likewise.
1893 (_mm_mask_cmul_sch): Likewise.
1894 (_mm_maskz_cmul_sch): Likewise.
1895 (_mm_cmul_round_sch): Likewise.
1896 (_mm_mask_cmul_round_sch): Likewise.
1897 (_mm_maskz_cmul_round_sch): Likewise.
1898 * config/i386/avx512fp16vlintrin.h (_mm_mul_pch): Likewise.
1899 (_mm_mask_mul_pch): Likewise.
1900 (_mm_maskz_mul_pch): Likewise.
1901 (_mm256_mul_pch): Likewise.
1902 (_mm256_mask_mul_pch): Likewise.
1903 (_mm256_maskz_mul_pch): Likewise.
1904 (_mm_cmul_pch): Likewise.
1905 (_mm_mask_cmul_pch): Likewise.
1906 (_mm_maskz_cmul_pch): Likewise.
1907 (_mm256_cmul_pch): Likewise.
1908 (_mm256_mask_cmul_pch): Likewise.
1909 (_mm256_maskz_cmul_pch): Likewise.
1911 2021-11-17 Andrew Pinski <apinski@marvell.com>
1913 PR tree-optimization/103228
1914 PR tree-optimization/55177
1915 * match.pd ((type) X bitop CST): Also do this
1916 transformation for nop conversions.
1918 2021-11-17 Martin Sebor <msebor@redhat.com>
1920 PR tree-optimization/102759
1921 * gimple-array-bounds.cc (build_printable_array_type): Move...
1922 * gimple-ssa-warn-access.cc (build_printable_array_type): Avoid
1923 pathological function redeclarations that remove a previously
1925 Improve formatting of function arguments in informational notes.
1926 * pointer-query.cc (build_printable_array_type): ...to here.
1927 * pointer-query.h (build_printable_array_type): Declared.
1929 2021-11-17 H.J. Lu <hjl.tools@gmail.com>
1932 * config/i386/i386-opts.h (harden_sls): New enum.
1933 * config/i386/i386.c (output_indirect_thunk): Mitigate against
1934 SLS for function return.
1935 (ix86_output_function_return): Likewise.
1936 (ix86_output_jmp_thunk_or_indirect): Mitigate against indirect
1938 (ix86_output_indirect_jmp): Likewise.
1939 (ix86_output_call_insn): Likewise.
1940 * config/i386/i386.opt: Add -mharden-sls=.
1941 * doc/invoke.texi: Document -mharden-sls=.
1943 2021-11-17 H.J. Lu <hjl.tools@gmail.com>
1946 * config/i386/i386.c (ix86_code_end): Remove "%!" before ret.
1947 (ix86_output_function_return): Likewise.
1948 * config/i386/i386.md (simple_return_pop_internal): Likewise.
1950 2021-11-17 Jan Hubicka <hubicka@ucw.cz>
1953 * ipa-modref.c (read_modref_records): Fix streaminig in of every_access
1956 2021-11-17 Uroš Bizjak <ubizjak@gmail.com>
1958 * config/i386/i386.c (indirect_thunks_used): Redefine as HARD_REG_SET.
1959 (ix86_code_end): Use TEST_HARD_REG_BIT on indirect_thunks_used.
1960 (ix86_output_indirect_branch_via_reg): Use SET_HARD_REG_BIT
1961 on indirect_thunks_used.
1962 (ix86_output_indirect_function_return): Ditto.
1964 2021-11-17 Jan Hubicka <hubicka@ucw.cz>
1966 * ipa-modref-tree.c: Include cgraph.h and tree-streamer.h.
1967 (modref_access_node::stream_out): New member function.
1968 (modref_access_node::stream_in): New member function.
1969 * ipa-modref-tree.h (modref_access_node::stream_out,
1970 modref_access_node::stream_in): Declare.
1971 * ipa-modref.c (modref_summary_lto::useful_p): Free useless kills.
1972 (modref_summary_lto::dump): Dump kills.
1973 (analyze_store): Record kills for LTO
1974 (analyze_stmt): Likewise.
1975 (modref_summaries_lto::duplicate): Duplicate kills.
1976 (write_modref_records): Use new stream_out member function.
1977 (read_modref_records): Likewise.
1978 (modref_write): Stream out kills.
1979 (read_section): Stream in kills
1980 (remap_kills): New function.
1981 (update_signature): Use it.
1983 2021-11-17 Uroš Bizjak <ubizjak@gmail.com>
1985 * config/i386/i386.h (LEGACY_SSE_REGNO_P): New predicate.
1986 (SSE_REGNO_P): Use LEGACY_SSE_REGNO_P predicate.
1987 * config/i386/i386.c (zero_all_vector_registers):
1988 Use LEGACY_SSE_REGNO_P predicate.
1989 (ix86_register_priority): Use REX_INT_REGNO_P, REX_SSE_REGNO_P
1990 and EXT_REG_SSE_REGNO_P predicates.
1991 (ix86_hard_regno_call_part_clobbered): Use REX_SSE_REGNO_P
1992 and LEGACY_SSE_REGNO_P predicates.
1994 2021-11-17 Jason Merrill <jason@redhat.com>
1996 * doc/invoke.texi (C++ Dialect Options): Document
1997 -fimplicit-constexpr.
1999 2021-11-17 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
2001 * config/aarch64/aarch64-modes.def (VECTOR_MODE): New V8DI mode.
2002 * config/aarch64/aarch64.c (aarch64_hard_regno_mode_ok): Handle
2004 * config/aarch64/iterators.md (define_mode_attr nunits): Add entry
2007 2021-11-17 Martin Uecker <uecker@gcc.gnu.org>
2011 * gimplify.c (gimplify_var_or_parm_decl): Update comment.
2012 (gimplify_compound_lval): Gimplify base expression first.
2013 (gimplify_target_expr): Add comment.
2015 2021-11-17 Jakub Jelinek <jakub@redhat.com>
2017 PR tree-optimization/103192
2018 * tree-ssa-loop-im.c (move_computations_worker): Use
2019 reset_flow_sensitive_info instead of manually clearing
2020 SSA_NAME_RANGE_INFO and do it for all SSA_NAMEs, not just ones
2021 with integral types.
2023 2021-11-17 Jakub Jelinek <jakub@redhat.com>
2025 PR tree-optimization/103255
2026 * gimple-range-fold.cc (fold_using_range::range_of_address): Return
2027 range_nonzero rather than unadjusted base's range. Formatting fixes.
2029 2021-11-17 Richard Sandiford <richard.sandiford@arm.com>
2031 * doc/md.texi (cond_fmin@var{mode}, cond_fmax@var{mode}): Document.
2032 * optabs.def (cond_fmin_optab, cond_fmax_optab): New optabs.
2033 * internal-fn.def (COND_FMIN, COND_FMAX): New functions.
2034 * internal-fn.c (first_commutative_argument): Handle them.
2035 (FOR_EACH_COND_FN_PAIR): Likewise.
2036 * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
2037 * config/aarch64/aarch64-sve.md (cond_<fmaxmin><mode>): New
2040 2021-11-17 Kewen Lin <linkw@linux.ibm.com>
2042 * config/i386/i386.md (*add<dwi>3_doubleword, *addv<dwi>4_doubleword,
2043 *addv<dwi>4_doubleword_1, *sub<dwi>3_doubleword,
2044 *subv<dwi>4_doubleword, *subv<dwi>4_doubleword_1,
2045 *add<dwi>3_doubleword_cc_overflow_1, *divmodsi4_const,
2046 *neg<dwi>2_doubleword, *tls_dynamic_gnu2_combine_64_<mode>): Fix split
2049 2021-11-17 Andrew Pinski <apinski@marvell.com>
2051 PR tree-optimization/103288
2052 * tree-ssa-phiopt.c (value_replacement): Return early if middle
2053 block has more than one pred.
2055 2021-11-17 Kewen Lin <linkw@linux.ibm.com>
2057 * config/visium/visium.md (*add<mode>3_insn, *addsi3_insn, *addi3_insn,
2058 *sub<mode>3_insn, *subsi3_insn, *subdi3_insn, *neg<mode>2_insn,
2059 *negdi2_insn, *and<mode>3_insn, *ior<mode>3_insn, *xor<mode>3_insn,
2060 *one_cmpl<mode>2_insn, *ashl<mode>3_insn, *ashr<mode>3_insn,
2061 *lshr<mode>3_insn, *trunchiqi2_insn, *truncsihi2_insn,
2062 *truncdisi2_insn, *extendqihi2_insn, *extendqisi2_insn,
2063 *extendhisi2_insn, *extendsidi2_insn, *zero_extendqihi2_insn,
2064 *zero_extendqisi2_insn, *zero_extendsidi2_insn): Fix split condition.
2066 2021-11-17 Marek Polacek <polacek@redhat.com>
2068 PR preprocessor/103026
2069 * doc/invoke.texi: Document -Wbidi-chars.
2071 2021-11-17 Jan Hubicka <hubicka@ucw.cz>
2074 * ipa-modref.c (ipa_merge_modref_summary_after_inlining): Fix clearing
2077 2021-11-16 Jan Hubicka <jh@suse.cz>
2079 * ipa-modref.c (get_modref_function_summary): Declare.
2080 * ipa-modref.h (get_modref_function_summary): New function.
2081 * tree-ssa-dse.c (clear_live_bytes_for_ref): Break out from ...
2082 (clear_bytes_written_by): ... here; also clear memory killed by
2085 2021-11-16 Iain Sandoe <iain@sandoe.co.uk>
2087 * ggc-common.c (gt_pch_save): If we cannot find a suitable
2088 memory segment for save, then error-out, do not try to
2090 (gt_pch_restore): Save the existing line table, and when
2091 the replacement is being read, use that when constructing
2094 2021-11-16 Peter Bergner <bergner@linux.ibm.com>
2097 * config/rs6000/mma.md (*vsx_assemble_pair): Add early-clobber for
2099 (*mma_assemble_acc): Likewise.
2101 2021-11-16 Martin Sebor <msebor@redhat.com>
2103 PR tree-optimization/102960
2104 * gimple-fold.c (get_range_strlen): Take bitmap as an argument rather
2105 than a pointer to it.
2106 (get_range_strlen_tree): Same. Remove bitmap allocation. Use
2108 (get_maxval_strlen): Use an auto_bitmap.
2109 * tree-ssa-strlen.c (get_range_strlen_dynamic): Factor out PHI
2111 (get_range_strlen_phi): ...into this function.
2112 Avoid assuming maximum string length is constant
2113 (printf_strlen_execute): Dump pointer query cache contents when
2114 details are requisted.
2116 2021-11-16 Jason Merrill <jason@redhat.com>
2118 * langhooks.h (struct lang_hooks): Adjust comment.
2119 * print-tree.c (print_node): Also call print_xnode hook for
2122 2021-11-16 Andrew Pinski <apinski@marvell.com>
2124 PR tree-optimization/103218
2125 * match.pd: New pattern for "((type)(a<0)) << SIGNBITOFA".
2127 2021-11-16 Claudiu Zissulescu <claziss@synopsys.com>
2129 * config/arc/arc.md (maddhisi4): Use a single move to accumulator.
2130 (umaddhisi4): Likewise.
2131 (machi): Update pattern.
2134 2021-11-16 Richard Biener <rguenther@suse.de>
2136 PR tree-optimization/102880
2137 * tree-ssa-dce.c (sort_phi_args): New function.
2138 (make_forwarders_with_degenerate_phis): Likewise.
2139 (perform_tree_ssa_dce): Call
2140 make_forwarders_with_degenerate_phis.
2142 2021-11-16 Richard Biener <rguenther@suse.de>
2144 PR tree-optimization/102880
2145 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Push
2146 single_pred (bb1) condition to places that really need it.
2147 (match_simplify_replacement): Likewise.
2148 (value_replacement): Likewise.
2149 (replace_phi_edge_with_variable): Deal with extra edges
2152 2021-11-16 Martin Jambor <mjambor@suse.cz>
2154 * cfgexpand.c (expand_gimple_basic_block): Use build_debug_expr_decl,
2155 add a fixme note about the mode assignment perhaps being unnecessary.
2156 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call):
2158 (ipa_param_body_adjustments::mark_dead_statements): Likewise.
2159 (ipa_param_body_adjustments::reset_debug_stmts): Likewise.
2160 * tree-inline.c (remap_ssa_name): Likewise.
2161 (tree_function_versioning): Likewise.
2162 * tree-into-ssa.c (rewrite_debug_stmt_uses): Likewise.
2163 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Likewise.
2164 * tree-ssa.c (insert_debug_temp_for_var_def): Likewise.
2166 2021-11-16 Jakub Jelinek <jakub@redhat.com>
2168 PR tree-optimization/103208
2169 * omp-expand.c (expand_omp_build_cond): New function.
2170 (expand_omp_for_init_counts, expand_omp_for_init_vars,
2171 expand_omp_for_static_nochunk, expand_omp_for_static_chunk): Use it.
2173 2021-11-16 Jakub Jelinek <jakub@redhat.com>
2175 PR tree-optimization/102009
2176 * gimple-ssa-warn-access.cc (pass_waccess::check_alloc_size_call):
2177 Punt if any of alloc_size arguments is out of bounds vs. number of
2180 2021-11-16 Roger Sayle <roger@nextmovesoftware.com>
2182 * config/i386/i386.md (*bmi2_rorx<mode3>_1): Make conditional
2183 on !optimize_function_for_size_p.
2184 (*<any_rotate><mode>3_1): Add preferred_for_size attribute.
2185 (define_splits): Conditionalize on !optimize_function_for_size_p.
2186 (*bmi2_rorxsi3_1_zext): Likewise.
2187 (*<any_rotate>si2_1_zext): Add preferred_for_size attribute.
2188 (define_splits): Conditionalize on !optimize_function_for_size_p.
2190 2021-11-16 Jan Hubicka <jh@suse.cz>
2193 * ipa-modref.c (merge_call_side_effects): Fix uninitialized
2196 2021-11-16 Andrew Pinski <apinski@marvell.com>
2198 PR tree-optimization/103245
2199 * match.pd: Combine the abs pattern matching using multiplication.
2200 Adding optional nop_convert too.
2202 2021-11-16 H.J. Lu <hjl.tools@gmail.com>
2204 PR middle-end/103268
2205 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Add a missing
2208 2021-11-15 Siddhesh Poyarekar <siddhesh@gotplt.org>
2210 * gimple-fold.c (gimple_fold_builtin_strncat): Use ranges to
2211 determine if it is safe to transform to strcat.
2212 (gimple_fold_builtin_snprintf): Likewise.
2214 2021-11-15 Siddhesh Poyarekar <siddhesh@gotplt.org>
2216 * gimple-fold.c (known_lower): New function.
2217 (gimple_fold_builtin_strncat_chk,
2218 gimple_fold_builtin_memory_chk, gimple_fold_builtin_stxcpy_chk,
2219 gimple_fold_builtin_stxncpy_chk,
2220 gimple_fold_builtin_snprintf_chk,
2221 gimple_fold_builtin_sprintf_chk): Use it.
2223 2021-11-15 Siddhesh Poyarekar <siddhesh@gotplt.org>
2225 * gimple-fold.c (dump_transformation): New function.
2226 (gimple_fold_builtin_stxcpy_chk,
2227 gimple_fold_builtin_stxncpy_chk): Use it. Simplify to
2228 BUILT_IN_STRNCPY if return value is not used.
2230 2021-11-15 H.J. Lu <hjl.tools@gmail.com>
2232 PR middle-end/103184
2233 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Check optab
2234 before transforming equivalent, but slighly different cases to
2235 their canonical forms.
2237 2021-11-15 Iain Sandoe <iain@sandoe.co.uk>
2240 * config/darwin.h (TARGET_DTORS_FROM_CXA_ATEXIT): New.
2241 * doc/tm.texi: Regenerated.
2242 * doc/tm.texi.in: Add TARGET_DTORS_FROM_CXA_ATEXIT hook.
2243 * ipa.c (cgraph_build_static_cdtor_1): Return the built
2245 (build_cxa_atexit_decl): New.
2246 (build_dso_handle_decl): New.
2247 (build_cxa_dtor_registrations): New.
2248 (compare_cdtor_tu_order): New.
2249 (build_cxa_atexit_fns): New.
2250 (ipa_cdtor_merge): If dtors_from_cxa_atexit is set,
2251 process the DTORs/CTORs accordingly.
2252 (pass_ipa_cdtor_merge::gate): Also run if
2253 dtors_from_cxa_atexit is set.
2254 * target.def (dtors_from_cxa_atexit): New hook.
2256 2021-11-15 Iain Sandoe <iain@sandoe.co.uk>
2258 * config.in: Regenerate.
2259 * configure: Regenerate.
2260 * configure.ac: Test ld64 for -platform-version support.
2262 2021-11-15 Thomas Schwinge <thomas@codesourcery.com>
2264 * diagnostic-spec.h (typedef xint_hash_t)
2265 (typedef xint_hash_map_t): Replace with...
2266 (typedef nowarn_map_t): ... this.
2267 (nowarn_map): Adjust.
2268 * diagnostic-spec.c (nowarn_map, suppress_warning_at): Likewise.
2270 2021-11-15 Thomas Schwinge <thomas@codesourcery.com>
2272 * profile.c (branch_prob): Use 'location_hash' for
2275 2021-11-15 Aldy Hernandez <aldyh@redhat.com>
2277 PR tree-optimization/103207
2278 * value-range.cc (irange::set): Drop overflow.
2280 2021-11-15 Jakub Jelinek <jakub@redhat.com>
2282 * gimplify.c (optimize_target_teams): Only add OMP_CLAUSE_THREAD_LIMIT
2283 to OMP_TARGET_CLAUSES if it isn't there already.
2285 2021-11-15 Aldy Hernandez <aldyh@redhat.com>
2287 * gimple-range-path.cc (path_range_query::internal_range_of_expr):
2288 Remove useless code.
2289 (path_range_query::ssa_defined_in_bb): New.
2290 (path_range_query::ssa_range_in_phi): Avoid fold_range call that
2291 could trigger additional lookups.
2292 Do not use the cache for ARGs defined in this block.
2293 (path_range_query::compute_ranges_in_block): Use ssa_defined_in_bb.
2294 (path_range_query::maybe_register_phi_relation): Same.
2295 (path_range_query::range_of_stmt): Adjust comment.
2296 * gimple-range-path.h (ssa_defined_in_bb): New.
2298 2021-11-15 Aldy Hernandez <aldyh@redhat.com>
2300 * gimple-range-path.cc (path_range_query::internal_range_of_expr):
2301 Default to global range if nothing found.
2303 2021-11-15 Richard Biener <rguenther@suse.de>
2305 PR tree-optimization/103237
2306 * tree-vect-loop.c (vect_is_simple_reduction): Fail for
2307 double reductions with multiple inner loop LC PHI nodes.
2309 2021-11-15 Hongyu Wang <hongyu.wang@intel.com>
2312 * config/i386/i386-expand.c (ix86_expand_atomic_fetch_op_loop):
2313 New expand function.
2314 * config/i386/i386-options.c (ix86_target_string): Add
2315 -mrelax-cmpxchg-loop flag.
2316 (ix86_valid_target_attribute_inner_p): Likewise.
2317 * config/i386/i386-protos.h (ix86_expand_atomic_fetch_op_loop):
2318 New expand function prototype.
2319 * config/i386/i386.opt: Add -mrelax-cmpxchg-loop.
2320 * config/i386/sync.md (atomic_fetch_<logic><mode>): New expander
2322 (atomic_<logic>_fetch<mode>): Likewise.
2323 (atomic_fetch_nand<mode>): Likewise.
2324 (atomic_nand_fetch<mode>): Likewise.
2325 (atomic_fetch_<logic><mode>): New expander for DI,TI modes.
2326 (atomic_<logic>_fetch<mode>): Likewise.
2327 (atomic_fetch_nand<mode>): Likewise.
2328 (atomic_nand_fetch<mode>): Likewise.
2329 * doc/invoke.texi: Document -mrelax-cmpxchg-loop.
2331 2021-11-15 Richard Biener <rguenther@suse.de>
2333 PR tree-optimization/103219
2334 * gimple-loop-jam.c (tree_loop_unroll_and_jam): Use single_exit
2335 to determine the exit for the VN region.
2337 2021-11-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2339 * tree-ssa-loop.c (pass_vectorize): Move to tree-vectorizer.c.
2340 (pass_data_vectorize): Likewise.
2341 (make_pass_vectorize): Likewise.
2342 * tree-vectorizer.c (vectorize_loops): Merge with
2343 pass_vectorize::execute and replace cfun occurences with fun param.
2344 (adjust_simduid_builtins): Add fun param, replace cfun occurences with
2345 fun, and adjust callers approrpiately.
2346 (note_simd_array_uses): Likewise.
2347 (vect_loop_dist_alias_call): Likewise.
2348 (set_uid_loop_bbs): Likewise.
2349 (vect_transform_loops): Likewise.
2350 (try_vectorize_loop_1): Likewise.
2351 (try_vectorize_loop): Likewise.
2353 2021-11-15 Jakub Jelinek <jakub@redhat.com>
2356 * config/i386/sync.md (atomic_bit_test_and_set<mode>,
2357 atomic_bit_test_and_complement<mode>,
2358 atomic_bit_test_and_reset<mode>): Use OPTAB_WIDEN instead of
2361 2021-11-15 Maciej W. Rozycki <macro@embecosm.com>
2363 * config/vax/vax.c (vax_lra_p): New prototype and function.
2364 (TARGET_LRA_P): Wire it.
2365 * config/vax/vax.opt (mlra): New option.
2366 * doc/invoke.texi (Option Summary, VAX Options): Document the
2369 2021-11-14 Jan Hubicka <jh@suse.cz>
2371 * ipa-modref.h (struct modref_summary): Add nondeterministic
2372 and calls_interposable flags.
2373 * ipa-modref.c (modref_summary::modref_summary): Initialize new flags.
2374 (modref_summary::useful_p): Check new flags.
2375 (struct modref_summary_lto): Add nondeterministic and
2376 calls_interposable flags.
2377 (modref_summary_lto::modref_summary_lto): Initialize new flags.
2378 (modref_summary_lto::useful_p): Check new flags.
2379 (modref_summary::dump): Dump new flags.
2380 (modref_summary_lto::dump): Dump new flags.
2381 (ignore_nondeterminism_p): New function.
2382 (merge_call_side_effects): Merge new flags.
2383 (process_fnspec): Likewise.
2384 (analyze_load): Volatile access is nondeterministic.
2385 (analyze_store): Liekwise.
2386 (analyze_stmt): Volatile ASM is nondeterministic.
2387 (analyze_function): Clear new flags.
2388 (modref_summaries::duplicate): Duplicate new flags.
2389 (modref_summaries_lto::duplicate): Duplicate new flags.
2390 (modref_write): Stream new flags.
2391 (read_section): Stream new flags.
2392 (propagate_unknown_call): Update new flags.
2393 (modref_propagate_in_scc): Propagate new flags.
2394 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check
2396 * tree-ssa-structalias.c (determine_global_memory_access):
2399 2021-11-14 Maciej W. Rozycki <macro@embecosm.com>
2401 * config/vax/vax.h (SET_RATIO): New macro.
2402 * config/vax/vax.md (UNSPEC_SETMEM_FILL): New constant.
2403 (setmemhi): New expander.
2404 (setmemhi1): New insn and splitter.
2405 (*setmemhi1): New insn.
2407 2021-11-14 Jan Hubicka <hubicka@ucw.cz>
2409 * ipa-modref-tree.c (modref_access_node::update_for_kills): New
2411 (modref_access_node::merge_for_kills): Likewise.
2412 (modref_access_node::insert_kill): Likewise.
2413 * ipa-modref-tree.h (modref_access_node::update_for_kills,
2414 modref_access_node::merge_for_kills, modref_access_node::insert_kill):
2416 (modref_access_node::useful_for_kill): New member function.
2417 * ipa-modref.c (modref_summary::useful_p): Release useless kills.
2418 (lto_modref_summary): Add kills.
2419 (modref_summary::dump): Dump kills.
2420 (record_access): Add mdoref_access_node parameter.
2421 (record_access_lto): Likewise.
2422 (merge_call_side_effects): Merge kills.
2423 (analyze_call): Add ALWAYS_EXECUTED param and pass it around.
2424 (struct summary_ptrs): Add always_executed filed.
2425 (analyze_load): Update.
2426 (analyze_store): Update; record kills.
2427 (analyze_stmt): Add always_executed; record kills in clobbers.
2428 (analyze_function): Track always_executed.
2429 (modref_summaries::duplicate): Duplicate kills.
2430 (update_signature): Release kills.
2431 * ipa-modref.h (struct modref_summary): Add kills.
2432 * tree-ssa-alias.c (alias_stats): Add kill stats.
2433 (dump_alias_stats): Dump kill stats.
2434 (store_kills_ref_p): Break out from ...
2435 (stmt_kills_ref_p): Use it; handle modref info based kills.
2437 2021-11-14 Aldy Hernandez <aldyh@redhat.com>
2439 PR tree-optimization/103229
2440 * gimple-range-cache.cc (ssa_global_cache::clear): Do not pass
2441 null value to memset.
2443 2021-11-14 Jan Hubicka <hubicka@ucw.cz>
2445 * ipa-modref-tree.c (modref_access_node::get_call_arg): New member
2447 (modref_access_node::get_ao_ref): Likewise.
2448 * ipa-modref-tree.h (modref_access_node::get_call_arg): Declare.
2449 (modref_access_node::get_ao_ref): Declare.
2450 * tree-ssa-alias.c (modref_may_conflict): Use new accessors.
2451 * tree-ssa-dse.c (dse_optimize_call): Use new accessors.
2453 2021-11-13 Jan Hubicka <jh@suse.cz>
2456 * dbgcnt.def (ipa_attr): New counters.
2457 * ipa-pure-const.c: Include dbgcnt.c
2458 (ipa_make_function_const): Use debug counter.
2459 (ipa_make_function_pure): Likewise.
2460 (propagate_pure_const): Fix bug in my previous change.
2462 2021-11-13 Jan Hubicka <hubicka@ucw.cz>
2464 * ipa-modref-tree.c (modref_access_node::range_info_useful_p):
2465 Offline from ipa-modref-tree.h.
2466 (modref_access_node::dump): Move from ipa-modref.c; make member
2468 * ipa-modref-tree.h (modref_access_node::range_info_useful_p.
2469 modref_access_node::dump): Declare.
2470 * ipa-modref.c (dump_access): Remove.
2471 (dump_records): Update.
2472 (dump_lto_records): Update.
2473 (record_access): Update.
2474 (record_access_lto): Update.
2476 2021-11-13 Jan Hubicka <hubicka@ucw.cz>
2478 * ipa-modref.c (modref_summary::modref_summary): Clear new flags.
2479 (modref_summary::dump): Dump try_dse.
2480 (modref_summary::finalize): Add FUN attribute; compute try-dse.
2481 (analyze_function): Update.
2482 (read_section): Update.
2483 (update_signature): Update.
2484 (pass_ipa_modref::execute): Update.
2485 * ipa-modref.h (struct modref_summary):
2486 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_range): Export.
2487 * tree-ssa-alias.h (ao_ref_init_from_ptr_and_range): Declare.
2488 * tree-ssa-dse.c (dse_optimize_call): New function.
2489 (dse_optimize_stmt): Use it.
2491 2021-11-13 Jan Hubicka <hubicka@ucw.cz>
2493 * ipa-modref-tree.c: Move #if CHECKING_P to proper place.
2495 2021-11-13 Jan Hubicka <jh@suse.cz>
2498 (struct modref_access_node): Move longer member functions to
2500 (modref_ref_node::try_merge_with): Turn into modreef_acces_node member
2502 * ipa-modref-tree.c (modref_access_node::contains): Move here
2503 from ipa-modref-tree.h.
2504 (modref_access_node::update): Likewise.
2505 (modref_access_node::merge): Likewise.
2506 (modref_access_node::closer_pair_p): Likewise.
2507 (modref_access_node::forced_merge): Likewise.
2508 (modref_access_node::update2): Likewise.
2509 (modref_access_node::combined_offsets): Likewise.
2510 (modref_access_node::try_merge_with): Likewise.
2511 (modref_access_node::insert): Likewise.
2513 2021-11-13 Jan Hubicka <jh@suse.cz>
2515 * ipa-modref.c (modref_summary::global_memory_read_p): Remove.
2516 (modref_summary::global_memory_written_p): Remove.
2517 (modref_summary::dump): Dump new flags.
2518 (modref_summary::finalize): New member function.
2519 (analyze_function): Call it.
2520 (read_section): Call it.
2521 (update_signature): Call it.
2522 (pass_ipa_modref::execute): Call it.
2523 * ipa-modref.h (struct modref_summary): Remove
2524 global_memory_read_p and global_memory_written_p.
2525 Add global_memory_read, global_memory_written.
2526 * tree-ssa-structalias.c (determine_global_memory_access):
2529 2021-11-13 Jan Hubicka <jh@suse.cz>
2531 * ipa-fnsummary.c (compute_fn_summary): Use type_attribut_allowed_p
2532 * ipa-param-manipulation.c
2533 (ipa_param_adjustments::type_attribute_allowed_p):
2534 New member function.
2535 (drop_type_attribute_if_params_changed_p): New function.
2536 (build_adjusted_function_type): Use it.
2537 * ipa-param-manipulation.h: Add type_attribute_allowed_p.
2539 2021-11-13 David Malcolm <dmalcolm@redhat.com>
2541 * doc/invoke.texi (Static Analyzer Options): Add
2542 -Wno-analyzer-tainted-allocation-size,
2543 -Wno-analyzer-tainted-divisor, -Wno-analyzer-tainted-offset, and
2544 -Wno-analyzer-tainted-size to list. Add
2545 -Wanalyzer-tainted-allocation-size, -Wanalyzer-tainted-divisor,
2546 -Wanalyzer-tainted-offset, and -Wanalyzer-tainted-size to list
2547 of options effectively enabled by -fanalyzer.
2548 (-Wanalyzer-tainted-allocation-size): New.
2549 (-Wanalyzer-tainted-array-index): Tweak wording; add link to CWE.
2550 (-Wanalyzer-tainted-divisor): New.
2551 (-Wanalyzer-tainted-offset): New.
2552 (-Wanalyzer-tainted-size): New.
2554 2021-11-13 Jan Hubicka <jh@suse.cz>
2556 * attr-fnspec.h (attr_fnspec::arg_eaf_flags): Break out from ...
2557 * gimple.c (gimple_call_arg_flags): ... here.
2558 * ipa-modref.c (analyze_parms): Record flags known from fnspec.
2559 (modref_merge_call_site_flags): Use arg_eaf_flags.
2561 2021-11-13 Aldy Hernandez <aldyh@redhat.com>
2563 PR tree-optimization/103222
2564 * gimple-range-path.cc (path_range_query::compute_ranges_in_phis):
2566 (path_range_query::compute_ranges_in_block): Call
2567 compute_ranges_in_phis.
2568 * gimple-range-path.h (path_range_query::compute_ranges_in_phis):
2571 2021-11-13 Jan Hubicka <jh@suse.cz>
2573 * ipa-fnsummary.c (compute_fn_summary): Do not give up on signature
2574 changes on "fn spec" attribute; give up on varadic types.
2575 * ipa-param-manipulation.c: Include attribs.h.
2576 (build_adjusted_function_type): New parameter ARG_MODIFIED; if it is
2577 true remove "fn spec" attribute.
2578 (ipa_param_adjustments::build_new_function_type): Update.
2579 (ipa_param_body_adjustments::modify_formal_parameters): update.
2580 * ipa-sra.c: Include attribs.h.
2581 (ipa_sra_preliminary_function_checks): Do not check for TYPE_ATTRIBUTES.
2583 2021-11-13 Aldy Hernandez <aldyh@redhat.com>
2585 * gimple-range-path.cc (path_range_query::path_range_query): Merge
2587 (path_range_query::import_p): Move from header file.
2588 (path_range_query::~path_range_query): Adjust for combined ctors.
2589 * gimple-range-path.h: Merge ctors.
2590 (path_range_query::import_p): Move to .cc file.
2592 2021-11-13 Jan Hubicka <jh@suse.cz>
2594 PR tree-optimization/103182
2595 * ipa-modref.c (callee_to_caller_flags): Fix merging of flags.
2596 (modref_eaf_analysis::analyze_ssa_name): Fix merging of flags.
2598 2021-11-12 Stafford Horne <shorne@gmail.com>
2600 * config/or1k/or1k-protos.h (or1k_profile_hook): New function.
2601 * config/or1k/or1k.h (PROFILE_HOOK): Change macro to reference
2602 new function or1k_profile_hook.
2603 * config/or1k/or1k.c (struct machine_function): Add new field
2604 set_mcount_arg_insn.
2605 (or1k_profile_hook): New function.
2606 (or1k_init_pic_reg): Update to inject pic rtx after _mcount arg
2608 (or1k_frame_pointer_required): Frame pointer no longer needed
2611 2021-11-12 Jan Hubicka <jh@suse.cz>
2613 PR tree-optimization/103209
2614 * tree-ssa-structalias.c (find_func_aliases_for_call): Fix
2615 use of handle_rhs_call
2617 2021-11-12 Aldy Hernandez <aldyh@redhat.com>
2619 PR tree-optimization/103202
2620 * gimple-range-path.cc
2621 (path_range_query::compute_ranges_in_block): Solve PHI imports first.
2623 2021-11-12 Jan Hubicka <jh@suse.cz>
2625 * ipa-pure-const.c (propagate_pure_const): Remove redundant check;
2626 fix call of ipa_make_function_const and ipa_make_function_pure.
2628 2021-11-12 Richard Sandiford <richard.sandiford@arm.com>
2630 * config/aarch64/aarch64.c (aarch64_vector_op::n_advsimd_ops): Delete.
2631 (aarch64_vector_op::m_seen_loads): Likewise.
2632 (aarch64_vector_costs::aarch64_vector_costs): Don't push to
2634 (aarch64_vector_op::count_ops): Remove vectype and factor parameters.
2635 Remove code that tries to predict different vec_flags from the
2637 (aarch64_vector_costs::add_stmt_cost): Update accordingly.
2638 Remove m_advsimd_ops handling.
2640 2021-11-12 Richard Sandiford <richard.sandiford@arm.com>
2642 * config/aarch64/aarch64.c (aarch64_vector_costs::m_saw_sve_only_op)
2643 (aarch64_sve_only_stmt_p): Delete.
2644 (aarch64_vector_costs::prefer_unrolled_loop): New function,
2645 extracted from adjust_body_cost.
2646 (aarch64_vector_costs::better_main_loop_than_p): New function,
2647 using heuristics extracted from adjust_body_cost and
2648 adjust_body_cost_sve.
2649 (aarch64_vector_costs::adjust_body_cost_sve): Remove
2650 advsimd_cycles_per_iter and could_use_advsimd parameters.
2651 Update after changes above.
2652 (aarch64_vector_costs::adjust_body_cost): Update after changes above.
2654 2021-11-12 Richard Sandiford <richard.sandiford@arm.com>
2656 * config/aarch64/aarch64.c (aarch64_vec_op_count::m_vf_factor):
2657 New member variable.
2658 (aarch64_vec_op_count::aarch64_vec_op_count): Add a parameter for it.
2659 (aarch64_vec_op_count::vf_factor): New function.
2660 (aarch64_vector_costs::aarch64_vector_costs): When costing for
2661 neoverse-512tvb, pass a vf_factor of 2 for the Neoverse V1 version
2663 (aarch64_vector_costs::adjust_body_cost): Read the vf factor
2664 instead of hard-coding 2.
2666 2021-11-12 Richard Sandiford <richard.sandiford@arm.com>
2668 * config/aarch64/aarch64.c
2669 (aarch64_vec_op_count::rename_cycles_per_iter): New function.
2670 (aarch64_vec_op_count::min_nonpred_cycles_per_iter): Likewise.
2671 (aarch64_vec_op_count::min_pred_cycles_per_iter): Likewise.
2672 (aarch64_vec_op_count::min_cycles_per_iter): Likewise.
2673 (aarch64_vec_op_count::dump): Move earlier in file. Dump the
2674 above properties too.
2675 (aarch64_estimate_min_cycles_per_iter): Delete.
2676 (adjust_body_cost): Use aarch64_vec_op_count::min_cycles_per_iter
2677 instead of aarch64_estimate_min_cycles_per_iter. Rely on the dump
2678 routine to print CPI estimates.
2679 (adjust_body_cost_sve): Likewise. Use the other functions above
2680 instead of doing the work inline.
2682 2021-11-12 Richard Sandiford <richard.sandiford@arm.com>
2684 * config/aarch64/aarch64.c (aarch64_vec_op_count): Allow default
2686 (aarch64_vec_op_count::base_issue_info): Remove handling of null
2688 (aarch64_vec_op_count::simd_issue_info): Likewise.
2689 (aarch64_vec_op_count::sve_issue_info): Likewise.
2690 (aarch64_vector_costs::m_ops): Turn into a vector.
2691 (aarch64_vector_costs::m_advsimd_ops): Likewise.
2692 (aarch64_vector_costs::aarch64_vector_costs): Add entries to
2693 the vectors based on aarch64_tune_params.
2694 (aarch64_vector_costs::analyze_loop_vinfo): Update the pred_ops
2695 of all entries in m_ops.
2696 (aarch64_vector_costs::add_stmt_cost): Call count_ops for all
2698 (aarch64_estimate_min_cycles_per_iter): Remove issue_info
2699 parameter and get the information from the ops instead.
2700 (aarch64_vector_costs::adjust_body_cost_sve): Take a
2701 aarch64_vec_issue_info instead of a aarch64_vec_op_count.
2702 (aarch64_vector_costs::adjust_body_cost): Update call accordingly.
2703 Exit earlier if m_ops is empty for either cost structure.
2705 2021-11-12 Richard Sandiford <richard.sandiford@arm.com>
2707 * config/aarch64/aarch64.c (aarch64_vector_costs::m_scalar_ops)
2708 (aarch64_vector_costs::m_sve_ops): Replace with...
2709 (aarch64_vector_costs::m_ops): ...this.
2710 (aarch64_vector_costs::analyze_loop_vinfo): Update accordingly.
2711 (aarch64_vector_costs::adjust_body_cost_sve): Likewise.
2712 (aarch64_vector_costs::aarch64_vector_costs): Likewise.
2713 Initialize m_vec_flags here rather than in add_stmt_cost.
2714 (aarch64_vector_costs::count_ops): Test for scalar reductions too.
2715 Allow vectype to be null.
2716 (aarch64_vector_costs::add_stmt_cost): Call count_ops for scalar
2717 code too. Don't require vectype to be nonnull.
2718 (aarch64_vector_costs::adjust_body_cost): Take the loop_vec_info
2719 and scalar costs as parameters. Use the scalar costs to determine
2720 the cycles per iteration of the scalar loop, then multiply it
2721 by the estimated VF.
2722 (aarch64_vector_costs::finish_cost): Update call accordingly.
2724 2021-11-12 Richard Sandiford <richard.sandiford@arm.com>
2726 * config/aarch64/aarch64.c (aarch64_dr_type): New function.
2727 (aarch64_vector_costs::count_ops): Use it rather than the
2728 vectype to determine floatness.
2730 2021-11-12 Richard Sandiford <richard.sandiford@arm.com>
2732 * config/aarch64/aarch64.c (aarch64_sve_in_loop_reduction_latency):
2733 Remove vectype parameter and get floatness from the type of the
2735 (arch64_in_loop_reduction_latency): Likewise.
2736 (aarch64_detect_vector_stmt_subtype): Update caller.
2737 (aarch64_vector_costs::count_ops): Likewise.
2739 2021-11-12 Richard Sandiford <richard.sandiford@arm.com>
2741 * config/aarch64/aarch64.c (aarch64_sve_op_count): Fold into...
2742 (aarch64_vec_op_count): ...this. Add a constructor.
2743 (aarch64_vec_op_count::vec_flags): New function.
2744 (aarch64_vec_op_count::base_issue_info): Likewise.
2745 (aarch64_vec_op_count::simd_issue_info): Likewise.
2746 (aarch64_vec_op_count::sve_issue_info): Likewise.
2747 (aarch64_vec_op_count::m_issue_info): New member variable.
2748 (aarch64_vec_op_count::m_vec_flags): Likewise.
2749 (aarch64_vector_costs): Add a constructor.
2750 (aarch64_vector_costs::m_sve_ops): Change type to aarch64_vec_op_count.
2751 (aarch64_vector_costs::aarch64_vector_costs): New function.
2752 Initialize m_scalar_ops, m_advsimd_ops and m_sve_ops.
2753 (aarch64_vector_costs::count_ops): Remove vec_flags and
2754 issue_info parameters, using the new aarch64_vec_op_count
2756 (aarch64_vector_costs::add_stmt_cost): Update call accordingly.
2757 (aarch64_sve_op_count::dump): Fold into...
2758 (aarch64_vec_op_count::dump): ..here.
2760 2021-11-12 Richard Sandiford <richard.sandiford@arm.com>
2762 * config/aarch64/aarch64.c: Include tree-dfa.h.
2763 (aarch64_check_consecutive_mems): New function that takes MEM_EXPR
2764 and MEM_OFFSET into account.
2765 (aarch64_swap_ldrstr_operands): Use it.
2766 (aarch64_operands_ok_for_ldpstp): Likewise. Check that the
2767 address of the second memory doesn't depend on the result of
2770 2021-11-12 Jan Hubicka <hubicka@ucw.cz>
2772 * ipa-pure-const.c (ipa_make_function_pure): Fix exit condition.
2774 2021-11-12 Jan Hubicka <jh@suse.cz>
2776 PR tree-optimization/103175
2777 * ipa-modref.c (modref_lattice::merge): Add sanity check.
2778 (callee_to_caller_flags): Make flags adjustment sane.
2779 (modref_eaf_analysis::analyze_ssa_name): Likewise.
2781 2021-11-12 Jan Hubicka <jh@suse.cz>
2784 * ipa-modref.c (analyze_function, modref_propagate_in_scc): Do
2785 not mark pure/const function if there are side-effects.
2787 2021-11-12 Chung-Lin Tang <cltang@codesourcery.com>
2789 * tree.h (OMP_CLAUSE_MAP_RUNTIME_IMPLICIT_P): New access macro for
2790 'implicit' bit, using 'base.deprecated_flag' field of tree_node.
2791 * tree-pretty-print.c (dump_omp_clause): Add support for printing
2792 implicit attribute in tree dumping.
2793 * gimplify.c (gimplify_adjust_omp_clauses_1):
2794 Set OMP_CLAUSE_MAP_RUNTIME_IMPLICIT_P to 1 if map clause is implicitly
2796 (gimplify_adjust_omp_clauses): Adjust place of adding implicitly created
2797 clauses, from simple append, to starting of list, after non-map clauses.
2798 * omp-low.c (lower_omp_target): Add GOMP_MAP_IMPLICIT bits into kind
2799 values passed to libgomp for implicit maps.
2801 2021-11-12 Jakub Jelinek <jakub@redhat.com>
2803 * omp-builtins.def (BUILT_IN_GOMP_TEAMS): Remove.
2804 (BUILT_IN_GOMP_TEAMS4): New.
2805 * builtin-types.def (BT_FN_VOID_UINT_UINT): Remove.
2806 (BT_FN_BOOL_UINT_UINT_UINT_BOOL): New.
2807 * omp-low.c (lower_omp_teams): Use GOMP_teams4 instead of
2808 GOMP_teams, pass to it also num_teams lower-bound expression
2809 or a dup of upper-bound if it is missing and a flag whether
2810 it is the first call or not.
2812 2021-11-12 Martin Liska <mliska@suse.cz>
2814 PR tree-optimization/102497
2815 * gimple-predicate-analysis.cc (add_pred): Remove unused
2818 2021-11-12 Richard Biener <rguenther@suse.de>
2820 PR tree-optimization/103204
2821 * tree-ssa-sccvn.c (valueize_refs_1): Re-valueize the
2822 top operand after folding in an address.
2824 2021-11-11 Aldy Hernandez <aldyh@redhat.com>
2826 * gimple-range-path.cc (path_range_query::path_range_query): New
2827 ctor without a ranger.
2828 (path_range_query::~path_range_query): Free ranger if necessary.
2829 (path_range_query::range_on_path_entry): Adjust m_ranger for pointer.
2830 (path_range_query::ssa_range_in_phi): Same.
2831 (path_range_query::compute_ranges_in_block): Same.
2832 (path_range_query::compute_imports): Same.
2833 (path_range_query::compute_ranges): Same.
2834 (path_range_query::range_of_stmt): Same.
2835 (path_range_query::compute_outgoing_relations): Same.
2836 * gimple-range-path.h (class path_range_query): New ctor.
2837 * tree-ssa-loop-ch.c (ch_base::copy_headers): Remove gimple_ranger
2838 as path_range_query allocates one.
2839 * tree-ssa-threadbackward.c (class back_threader): Remove m_ranger.
2840 (back_threader::~back_threader): Same.
2842 2021-11-11 Aldy Hernandez <aldyh@redhat.com>
2844 * tree-ssa-threadbackward.c
2845 (back_threader_profitability::profitable_path_p): Remove loop
2846 crossing restriction.
2848 2021-11-11 Jan Hubicka <hubicka@ucw.cz>
2850 * ipa-modref.c (analyze_function): Do pure/const discovery, return
2852 (pass_modref::execute): If pure/const is discovered fixup cfg.
2853 (ignore_edge): Do not ignore pure/const edges.
2854 (modref_propagate_in_scc): Do pure/const discovery, return true if
2855 cdtor was promoted pure/const.
2856 (pass_ipa_modref::execute): If needed remove unreachable functions.
2857 * ipa-pure-const.c (warn_function_noreturn): Fix whitespace.
2858 (warn_function_cold): Likewise.
2859 (skip_function_for_local_pure_const): Move earlier.
2860 (ipa_make_function_const): Break out from ...
2861 (ipa_make_function_pure): Break out from ...
2862 (propagate_pure_const): ... here.
2863 (pass_local_pure_const::execute): Use it.
2864 * ipa-utils.h (ipa_make_function_const): Declare.
2865 (ipa_make_function_pure): Declare.
2866 * passes.def: Move early modref after pure-const.
2868 2021-11-11 David Malcolm <dmalcolm@redhat.com>
2871 * diagnostic-show-locus.c (def_policy): Use def_tabstop.
2873 2021-11-11 Jonathan Wright <jonathan.wright@arm.com>
2875 * config/aarch64/aarch64-builtins.c (TYPES_COMBINE): Delete.
2876 (TYPES_COMBINEP): Delete.
2877 * config/aarch64/aarch64-simd-builtins.def: Declare type-
2878 qualified builtins for vcombine_* intrinsics.
2879 * config/aarch64/arm_neon.h (vcombine_s8): Remove unnecessary
2881 (vcombine_s16): Likewise.
2882 (vcombine_s32): Likewise.
2883 (vcombine_f32): Likewise.
2884 (vcombine_u8): Use type-qualified builtin and remove casts.
2885 (vcombine_u16): Likewise.
2886 (vcombine_u32): Likewise.
2887 (vcombine_u64): Likewise.
2888 (vcombine_p8): Likewise.
2889 (vcombine_p16): Likewise.
2890 (vcombine_p64): Likewise.
2891 (vcombine_bf16): Remove unnecessary cast.
2892 * config/aarch64/iterators.md (VD_I): New mode iterator.
2893 (VDC_P): New mode iterator.
2895 2021-11-11 Jonathan Wright <jonathan.wright@arm.com>
2897 * config/aarch64/aarch64-builtins.c (TYPES_LOAD1_U): Define.
2898 (TYPES_LOAD1_P): Define.
2899 (TYPES_STORE1_U): Define.
2900 (TYPES_STORE1P): Rename to...
2901 (TYPES_STORE1_P): This.
2902 (get_mem_type_for_load_store): Add unsigned and poly types.
2903 (aarch64_general_gimple_fold_builtin): Add unsigned and poly
2904 type-qualified builtin declarations.
2905 * config/aarch64/aarch64-simd-builtins.def: Declare type-
2906 qualified builtins for LD1/ST1.
2907 * config/aarch64/arm_neon.h (vld1_p8): Use type-qualified
2908 builtin and remove cast.
2909 (vld1_p16): Likewise.
2910 (vld1_u8): Likewise.
2911 (vld1_u16): Likewise.
2912 (vld1_u32): Likewise.
2913 (vld1q_p8): Likewise.
2914 (vld1q_p16): Likewise.
2915 (vld1q_p64): Likewise.
2916 (vld1q_u8): Likewise.
2917 (vld1q_u16): Likewise.
2918 (vld1q_u32): Likewise.
2919 (vld1q_u64): Likewise.
2920 (vst1_p8): Likewise.
2921 (vst1_p16): Likewise.
2922 (vst1_u8): Likewise.
2923 (vst1_u16): Likewise.
2924 (vst1_u32): Likewise.
2925 (vst1q_p8): Likewise.
2926 (vst1q_p16): Likewise.
2927 (vst1q_p64): Likewise.
2928 (vst1q_u8): Likewise.
2929 (vst1q_u16): Likewise.
2930 (vst1q_u32): Likewise.
2931 (vst1q_u64): Likewise.
2932 * config/aarch64/iterators.md (VALLP_NO_DI): New iterator.
2934 2021-11-11 Jonathan Wright <jonathan.wright@arm.com>
2936 * config/aarch64/aarch64-simd-builtins.def: Declare unsigned
2937 builtins for vector reduction.
2938 * config/aarch64/arm_neon.h (vaddv_u8): Use type-qualified
2939 builtin and remove casts.
2940 (vaddv_u16): Likewise.
2941 (vaddv_u32): Likewise.
2942 (vaddvq_u8): Likewise.
2943 (vaddvq_u16): Likewise.
2944 (vaddvq_u32): Likewise.
2945 (vaddvq_u64): Likewise.
2947 2021-11-11 Jonathan Wright <jonathan.wright@arm.com>
2949 * config/aarch64/aarch64-simd-builtins.def:
2950 * config/aarch64/arm_neon.h (vpaddq_u8): Use type-qualified
2951 builtin and remove casts.
2952 (vpaddq_u16): Likewise.
2953 (vpaddq_u32): Likewise.
2954 (vpaddq_u64): Likewise.
2955 (vpadd_u8): Likewise.
2956 (vpadd_u16): Likewise.
2957 (vpadd_u32): Likewise.
2958 (vpaddd_u64): Likewise.
2960 2021-11-11 Jonathan Wright <jonathan.wright@arm.com>
2962 * config/aarch64/aarch64-simd-builtins.def: Declare unsigned
2963 builtins for [r]subhn[2].
2964 * config/aarch64/arm_neon.h (vsubhn_s16): Remove unnecessary
2966 (vsubhn_s32): Likewise.
2967 (vsubhn_s64): Likewise.
2968 (vsubhn_u16): Use type-qualified builtin and remove casts.
2969 (vsubhn_u32): Likewise.
2970 (vsubhn_u64): Likewise.
2971 (vrsubhn_s16): Remove unnecessary cast.
2972 (vrsubhn_s32): Likewise.
2973 (vrsubhn_s64): Likewise.
2974 (vrsubhn_u16): Use type-qualified builtin and remove casts.
2975 (vrsubhn_u32): Likewise.
2976 (vrsubhn_u64): Likewise.
2977 (vrsubhn_high_s16): Remove unnecessary cast.
2978 (vrsubhn_high_s32): Likewise.
2979 (vrsubhn_high_s64): Likewise.
2980 (vrsubhn_high_u16): Use type-qualified builtin and remove
2982 (vrsubhn_high_u32): Likewise.
2983 (vrsubhn_high_u64): Likewise.
2984 (vsubhn_high_s16): Remove unnecessary cast.
2985 (vsubhn_high_s32): Likewise.
2986 (vsubhn_high_s64): Likewise.
2987 (vsubhn_high_u16): Use type-qualified builtin and remove
2989 (vsubhn_high_u32): Likewise.
2990 (vsubhn_high_u64): Likewise.
2992 2021-11-11 Jonathan Wright <jonathan.wright@arm.com>
2994 * config/aarch64/aarch64-simd-builtins.def: Declare unsigned
2995 builtins for [r]addhn[2].
2996 * config/aarch64/arm_neon.h (vaddhn_s16): Remove unnecessary
2998 (vaddhn_s32): Likewise.
2999 (vaddhn_s64): Likewise.
3000 (vaddhn_u16): Use type-qualified builtin and remove casts.
3001 (vaddhn_u32): Likewise.
3002 (vaddhn_u64): Likewise.
3003 (vraddhn_s16): Remove unnecessary cast.
3004 (vraddhn_s32): Likewise.
3005 (vraddhn_s64): Likewise.
3006 (vraddhn_u16): Use type-qualified builtin and remove casts.
3007 (vraddhn_u32): Likewise.
3008 (vraddhn_u64): Likewise.
3009 (vaddhn_high_s16): Remove unnecessary cast.
3010 (vaddhn_high_s32): Likewise.
3011 (vaddhn_high_s64): Likewise.
3012 (vaddhn_high_u16): Use type-qualified builtin and remove
3014 (vaddhn_high_u32): Likewise.
3015 (vaddhn_high_u64): Likewise.
3016 (vraddhn_high_s16): Remove unnecessary cast.
3017 (vraddhn_high_s32): Likewise.
3018 (vraddhn_high_s64): Likewise.
3019 (vraddhn_high_u16): Use type-qualified builtin and remove
3021 (vraddhn_high_u32): Likewise.
3022 (vraddhn_high_u64): Likewise.
3024 2021-11-11 Jonathan Wright <jonathan.wright@arm.com>
3026 * config/aarch64/aarch64-simd-builtins.def: Use BINOPU type
3027 qualifiers in generator macros for uhsub builtins.
3028 * config/aarch64/arm_neon.h (vhsub_s8): Remove unnecessary
3030 (vhsub_s16): Likewise.
3031 (vhsub_s32): Likewise.
3032 (vhsub_u8): Use type-qualified builtin and remove casts.
3033 (vhsub_u16): Likewise.
3034 (vhsub_u32): Likewise.
3035 (vhsubq_s8): Remove unnecessary cast.
3036 (vhsubq_s16): Likewise.
3037 (vhsubq_s32): Likewise.
3038 (vhsubq_u8): Use type-qualified builtin and remove casts.
3039 (vhsubq_u16): Likewise.
3040 (vhsubq_u32): Likewise.
3042 2021-11-11 Jonathan Wright <jonathan.wright@arm.com>
3044 * config/aarch64/aarch64-simd-builtins.def: Use BINOPU type
3045 qualifiers in generator macros for u[r]hadd builtins.
3046 * config/aarch64/arm_neon.h (vhadd_s8): Remove unnecessary
3048 (vhadd_s16): Likewise.
3049 (vhadd_s32): Likewise.
3050 (vhadd_u8): Use type-qualified builtin and remove casts.
3051 (vhadd_u16): Likewise.
3052 (vhadd_u32): Likewise.
3053 (vhaddq_s8): Remove unnecessary cast.
3054 (vhaddq_s16): Likewise.
3055 (vhaddq_s32): Likewise.
3056 (vhaddq_u8): Use type-qualified builtin and remove casts.
3057 (vhaddq_u16): Likewise.
3058 (vhaddq_u32): Likewise.
3059 (vrhadd_s8): Remove unnecessary cast.
3060 (vrhadd_s16): Likewise.
3061 (vrhadd_s32): Likewise.
3062 (vrhadd_u8): Use type-qualified builtin and remove casts.
3063 (vrhadd_u16): Likewise.
3064 (vrhadd_u32): Likewise.
3065 (vrhaddq_s8): Remove unnecessary cast.
3066 (vrhaddq_s16): Likewise.
3067 (vrhaddq_s32): Likewise.
3068 (vrhaddq_u8): Use type-wualified builtin and remove casts.
3069 (vrhaddq_u16): Likewise.
3070 (vrhaddq_u32): Likewise.
3072 2021-11-11 Jonathan Wright <jonathan.wright@arm.com>
3074 * config/aarch64/aarch64-simd-builtins.def: Use BINOPU type
3075 qualifiers in generator macros for usub[lw][2] builtins.
3076 * config/aarch64/arm_neon.h (vsubl_s8): Remove unnecessary
3078 (vsubl_s16): Likewise.
3079 (vsubl_s32): Likewise.
3080 (vsubl_u8): Use type-qualified builtin and remove casts.
3081 (vsubl_u16): Likewise.
3082 (vsubl_u32): Likewise.
3083 (vsubl_high_s8): Remove unnecessary cast.
3084 (vsubl_high_s16): Likewise.
3085 (vsubl_high_s32): Likewise.
3086 (vsubl_high_u8): Use type-qualified builtin and remove casts.
3087 (vsubl_high_u16): Likewise.
3088 (vsubl_high_u32): Likewise.
3089 (vsubw_s8): Remove unnecessary casts.
3090 (vsubw_s16): Likewise.
3091 (vsubw_s32): Likewise.
3092 (vsubw_u8): Use type-qualified builtin and remove casts.
3093 (vsubw_u16): Likewise.
3094 (vsubw_u32): Likewise.
3095 (vsubw_high_s8): Remove unnecessary cast.
3096 (vsubw_high_s16): Likewise.
3097 (vsubw_high_s32): Likewise.
3098 (vsubw_high_u8): Use type-qualified builtin and remove casts.
3099 (vsubw_high_u16): Likewise.
3100 (vsubw_high_u32): Likewise.
3102 2021-11-11 Jonathan Wright <jonathan.wright@arm.com>
3104 * config/aarch64/aarch64-simd-builtins.def: Use BINOPU type
3105 qualifiers in generator macros for uadd[lw][2] builtins.
3106 * config/aarch64/arm_neon.h (vaddl_s8): Remove unnecessary
3108 (vaddl_s16): Likewise.
3109 (vaddl_s32): Likewise.
3110 (vaddl_u8): Use type-qualified builtin and remove casts.
3111 (vaddl_u16): Likewise.
3112 (vaddl_u32): Likewise.
3113 (vaddl_high_s8): Remove unnecessary cast.
3114 (vaddl_high_s16): Likewise.
3115 (vaddl_high_s32): Likewise.
3116 (vaddl_high_u8): Use type-qualified builtin and remove casts.
3117 (vaddl_high_u16): Likewise.
3118 (vaddl_high_u32): Likewise.
3119 (vaddw_s8): Remove unnecessary cast.
3120 (vaddw_s16): Likewise.
3121 (vaddw_s32): Likewise.
3122 (vaddw_u8): Use type-qualified builtin and remove casts.
3123 (vaddw_u16): Likewise.
3124 (vaddw_u32): Likewise.
3125 (vaddw_high_s8): Remove unnecessary cast.
3126 (vaddw_high_s16): Likewise.
3127 (vaddw_high_s32): Likewise.
3128 (vaddw_high_u8): Use type-qualified builtin and remove casts.
3129 (vaddw_high_u16): Likewise.
3130 (vaddw_high_u32): Likewise.
3132 2021-11-11 Jonathan Wright <jonathan.wright@arm.com>
3134 * config/aarch64/aarch64-simd-builtins.def: Declare type-
3135 qualified builtins for [R]SHRN[2].
3136 * config/aarch64/arm_neon.h (vshrn_n_u16): Use type-qualified
3137 builtin and remove casts.
3138 (vshrn_n_u32): Likewise.
3139 (vshrn_n_u64): Likewise.
3140 (vrshrn_high_n_u16): Likewise.
3141 (vrshrn_high_n_u32): Likewise.
3142 (vrshrn_high_n_u64): Likewise.
3143 (vrshrn_n_u16): Likewise.
3144 (vrshrn_n_u32): Likewise.
3145 (vrshrn_n_u64): Likewise.
3146 (vshrn_high_n_u16): Likewise.
3147 (vshrn_high_n_u32): Likewise.
3148 (vshrn_high_n_u64): Likewise.
3150 2021-11-11 Jonathan Wright <jonathan.wright@arm.com>
3152 * config/aarch64/aarch64-simd-builtins.def: Declare unsigned
3153 type-qualified builtins for XTN[2].
3154 * config/aarch64/arm_neon.h (vmovn_high_u16): Use type-
3155 qualified builtin and remove casts.
3156 (vmovn_high_u32): Likewise.
3157 (vmovn_high_u64): Likewise.
3158 (vmovn_u16): Likewise.
3159 (vmovn_u32): Likewise.
3160 (vmovn_u64): Likewise.
3162 2021-11-11 Jonathan Wright <jonathan.wright@arm.com>
3164 * config/aarch64/aarch64-simd-builtins.def: Use poly type
3165 qualifier in builtin generator macros.
3166 * config/aarch64/arm_neon.h (vmul_p8): Use type-qualified
3167 builtin and remove casts.
3168 (vmulq_p8): Likewise.
3169 (vmull_high_p8): Likewise.
3170 (vmull_p8): Likewise.
3172 2021-11-11 Jonathan Wright <jonathan.wright@arm.com>
3174 * config/aarch64/aarch64-simd-builtins.def: Declare type-
3175 qualified builtin generators for unsigned MLA/MLS intrinsics.
3176 * config/aarch64/arm_neon.h (vmla_n_u16): Use type-qualified
3178 (vmla_n_u32): Likewise.
3179 (vmla_u8): Likewise.
3180 (vmla_u16): Likewise.
3181 (vmla_u32): Likewise.
3182 (vmlaq_n_u16): Likewise.
3183 (vmlaq_n_u32): Likewise.
3184 (vmlaq_u8): Likewise.
3185 (vmlaq_u16): Likewise.
3186 (vmlaq_u32): Likewise.
3187 (vmls_n_u16): Likewise.
3188 (vmls_n_u32): Likewise.
3189 (vmls_u8): Likewise.
3190 (vmls_u16): Likewise.
3191 (vmls_u32): Likewise.
3192 (vmlsq_n_u16): Likewise.
3193 (vmlsq_n_u32): Likewise.
3194 (vmlsq_u8): Likewise.
3195 (vmlsq_u16): Likewise.
3196 (vmlsq_u32): Likewise.
3198 2021-11-11 Jan Hubicka <hubicka@ucw.cz>
3200 * ipa-modref.c (modref_summary::useful_p): Check also for side-effects
3201 with looping const/pure.
3202 (modref_summary_lto::useful_p): Likewise.
3203 (merge_call_side_effects): Merge side effects before early exit
3205 (process_fnspec): Also handle pure functions.
3206 (analyze_call): Do not early exit on looping pure const.
3207 (propagate_unknown_call): Also handle nontrivial SCC as side-effect.
3208 (modref_propagate_in_scc): Update.
3210 2021-11-11 Richard Biener <rguenther@suse.de>
3212 PR tree-optimization/103190
3213 * tree-ssa-reassoc.c (insert_stmt_after): Only assert on asm goto.
3215 2021-11-11 Aldy Hernandez <aldyh@redhat.com>
3217 * gimple-range-path.cc (path_range_query::add_copies_to_imports):
3219 (path_range_query::compute_imports): ...this. Adapt it so it can
3220 be passed the imports bitmap instead of working on m_imports.
3221 (path_range_query::compute_ranges): Call compute_imports in all
3222 cases unless an imports bitmap is passed.
3223 * gimple-range-path.h (path_range_query::compute_imports): New.
3224 (path_range_query::add_copies_to_imports): Remove.
3225 * tree-ssa-threadbackward.c (back_threader::resolve_def): Remove.
3226 (back_threader::find_paths_to_names): Inline resolve_def.
3227 (back_threader::find_paths): Call compute_imports.
3228 (back_threader::resolve_phi): Adjust comment.
3230 2021-11-11 Richard Biener <rguenther@suse.de>
3232 PR tree-optimization/103188
3233 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p):
3234 Remove query parameter, split out check for size
3236 (ch_base::m_ranger, cb_base::m_query): Remove.
3237 (ch_base::copy_headers): Split processing loop into
3238 analysis around which we allocate and use ranger and
3239 transform where we do not.
3240 (pass_ch::execute): Do not allocate/free ranger here.
3241 (pass_ch_vect::execute): Likewise.
3243 2021-11-11 Jan Hubicka <hubicka@ucw.cz>
3245 * ipa-pure-const.c (propagate_pure_const): Self recursion is
3248 2021-11-11 Jan Hubicka <hubicka@ucw.cz>
3250 * cgraph.c (set_noreturn_flag_1): New function.
3251 (cgraph_node::set_noreturn_flag): New member function
3252 * cgraph.h (cgraph_node::set_noreturn_flags): Declare.
3253 * ipa-pure-const.c (pass_local_pure_const::execute): Use it.
3255 2021-11-11 Aldy Hernandez <aldyh@redhat.com>
3256 Richard Biener <rguenther@suse.de>
3258 * tree-ssa-loop-ch.c (entry_loop_condition_is_static): Resolve
3259 statically to the edge remaining in the loop.
3261 2021-11-11 Richard Biener <rguenther@suse.de>
3263 PR middle-end/103181
3264 * tree-eh.c (operation_could_trap_helper_p): Properly
3265 check vector constants for a zero element for integer
3266 division. Separate floating point and integer division code.
3268 2021-11-11 Jakub Jelinek <jakub@redhat.com>
3271 * dwarf2out.c (field_byte_offset): Do the PCC_BITFIELD_TYPE_MATTERS
3272 handling only for DECL_BIT_FIELD_TYPE decls.
3274 2021-11-11 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3277 * config/aarch64/aarch64.c (aarch64_process_target_attr): Check if
3278 token is arch extension without leading '+' and emit appropriate
3279 diagnostic for the same.
3281 2021-11-11 Jakub Jelinek <jakub@redhat.com>
3283 * tree.h (OMP_CLAUSE_NUM_TEAMS_EXPR): Rename to ...
3284 (OMP_CLAUSE_NUM_TEAMS_UPPER_EXPR): ... this.
3285 (OMP_CLAUSE_NUM_TEAMS_LOWER_EXPR): Define.
3286 * tree.c (omp_clause_num_ops): Increase num ops for
3287 OMP_CLAUSE_NUM_TEAMS to 2.
3288 * tree-pretty-print.c (dump_omp_clause): Print optional lower bound
3289 for OMP_CLAUSE_NUM_TEAMS.
3290 * gimplify.c (gimplify_scan_omp_clauses): Gimplify
3291 OMP_CLAUSE_NUM_TEAMS_LOWER_EXPR if non-NULL.
3292 (optimize_target_teams): Use OMP_CLAUSE_NUM_TEAMS_UPPER_EXPR instead
3293 of OMP_CLAUSE_NUM_TEAMS_EXPR. Handle OMP_CLAUSE_NUM_TEAMS_LOWER_EXPR.
3294 * omp-low.c (lower_omp_teams): Use OMP_CLAUSE_NUM_TEAMS_UPPER_EXPR
3295 instead of OMP_CLAUSE_NUM_TEAMS_EXPR.
3296 * omp-expand.c (expand_teams_call, get_target_arguments): Likewise.
3298 2021-11-11 Richard Biener <rguenther@suse.de>
3300 * cfganal.c (find_pdom): Remove.
3301 (control_dependences::find_control_dependence): Remove
3302 special-casing of entry block, call get_immediate_dominator
3304 * gimple-predicate-analysis.cc (find_pdom): Remove.
3305 (find_dom): Likewise.
3306 (find_control_equiv_block): Call get_immediate_dominator
3308 (compute_control_dep_chain): Likewise.
3309 (predicate::init_from_phi_def): Likewise.
3311 2021-11-11 Richard Biener <rguenther@suse.de>
3313 * cfganal.h (control_dependences::control_dependence_map):
3315 (control_dependences::m_bitmaps): New.
3316 * cfganal.c (control_dependences::set_control_dependence_map_bit):
3318 (control_dependences::clear_control_dependence_bitmap):
3320 (control_dependences::find_control_dependence): Do not
3321 find_edge for the abnormal edge test.
3322 (control_dependences::control_dependences): Instead do not
3323 add abnormal edges to the edge list. Adjust.
3324 (control_dependences::~control_dependences): Likewise.
3325 (control_dependences::get_edges_dependent_on): Likewise.
3326 * function-tests.c: Include bitmap.h.
3328 2021-11-11 Kewen Lin <linkw@linux.ibm.com>
3330 * doc/invoke.texi: Change references to "future cpu" to "power10",
3331 "-mcpu=future" to "-mcpu=power10". Adjust words for float128.
3333 2021-11-11 Cui,Lili <lili.cui@intel.com>
3335 * config/i386/i386-options.c (m_CORE_AVX2): Remove Alderlake
3337 (processor_cost_table): Use alderlake_cost for Alderlake.
3338 * config/i386/i386.c (ix86_sched_init_global): Handle Alderlake.
3339 * config/i386/x86-tune-costs.h (struct processor_costs): Add alderlake
3341 * config/i386/x86-tune-sched.c (ix86_issue_rate): Change Alderlake
3343 (ix86_adjust_cost): Handle Alderlake.
3344 * config/i386/x86-tune.def (X86_TUNE_SCHEDULE): Enable for Alderlake.
3345 (X86_TUNE_PARTIAL_REG_DEPENDENCY): Likewise.
3346 (X86_TUNE_SSE_PARTIAL_REG_DEPENDENCY): Likewise.
3347 (X86_TUNE_SSE_PARTIAL_REG_FP_CONVERTS_DEPENDENCY): Likewise.
3348 (X86_TUNE_SSE_PARTIAL_REG_CONVERTS_DEPENDENCY): Likewise.
3349 (X86_TUNE_MEMORY_MISMATCH_STALL): Likewise.
3350 (X86_TUNE_USE_LEAVE): Likewise.
3351 (X86_TUNE_PUSH_MEMORY): Likewise.
3352 (X86_TUNE_USE_INCDEC): Likewise.
3353 (X86_TUNE_INTEGER_DFMODE_MOVES): Likewise.
3354 (X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Likewise.
3355 (X86_TUNE_USE_SAHF): Likewise.
3356 (X86_TUNE_USE_BT): Likewise.
3357 (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI): Likewise.
3358 (X86_TUNE_ONE_IF_CONV_INSN): Likewise.
3359 (X86_TUNE_AVOID_MFENCE): Likewise.
3360 (X86_TUNE_USE_SIMODE_FIOP): Likewise.
3361 (X86_TUNE_EXT_80387_CONSTANTS): Likewise.
3362 (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL): Likewise.
3363 (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Likewise.
3364 (X86_TUNE_SSE_TYPELESS_STORES): Likewise.
3365 (X86_TUNE_SSE_LOAD0_BY_PXOR): Likewise.
3366 (X86_TUNE_AVOID_4BYTE_PREFIXES): Likewise.
3367 (X86_TUNE_USE_GATHER): Disable for Alderlake.
3368 (X86_TUNE_AVX256_MOVE_BY_PIECES): Likewise.
3369 (X86_TUNE_AVX256_STORE_BY_PIECES): Likewise.
3371 2021-11-11 liuhongt <hongtao.liu@intel.com>
3374 * config/i386/sse.md (V_128_256): Extend to V8HF/V16HF.
3375 (avxsizesuffix): Ditto.
3377 2021-11-11 Kito Cheng <kito.cheng@sifive.com>
3379 * common/config/riscv/riscv-common.c (riscv_subset_list::to_string): Fix
3380 wrong marco checking.
3382 2021-11-10 Aldy Hernandez <aldyh@redhat.com>
3384 PR tree-optimization/102906
3385 * tree-ssa-loop-ch.c (entry_loop_condition_is_static): New.
3386 (should_duplicate_loop_header_p): Call entry_loop_condition_is_static.
3387 (class ch_base): Add m_ranger and m_query.
3388 (ch_base::copy_headers): Pass m_query to
3389 entry_loop_condition_is_static.
3390 (pass_ch::execute): Allocate and deallocate m_ranger and
3392 (pass_ch_vect::execute): Same.
3394 2021-11-10 Andrew Pinski <apinski@marvell.com>
3397 * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>):
3398 Use vwcore iterator for the r constraint output string.
3400 2021-11-10 qing zhao <qing.zhao@oracle.com>
3402 * internal-fn.c (expand_DEFERRED_INIT): Apply pattern initialization
3403 only when have_insn_for return true for the mode. Fix a memory leak.
3405 2021-11-10 Christophe Lyon <christophe.lyon@foss.st.com>
3407 * config/arm/arm.c (cortexa9_extra_costs, cortexa8_extra_costs,
3408 cortexa5_extra_costs, cortexa7_extra_costs,
3409 cortexa12_extra_costs, cortexa15_extra_costs, v7m_extra_costs):
3410 Initialize movi, dup and extract costing fields.
3412 2021-11-10 Aldy Hernandez <aldyh@redhat.com>
3414 * gimple-range-path.cc (path_range_query::path_range_query): Do
3416 (path_range_query::dump): Change m_path uses to non-pointer.
3417 (path_range_query::defined_outside_path): Same.
3418 (path_range_query::set_path): Same.
3419 (path_range_query::add_copies_to_imports): Same.
3420 (path_range_query::range_of_stmt): Same.
3421 (path_range_query::compute_outgoing_relations): Same.
3422 (path_range_query::compute_ranges): Imports are now optional.
3423 Implement overload that takes an edge.
3424 * gimple-range-path.h (class path_range_query): Make imports
3425 optional for compute_ranges. Add compute_ranges(edge) overload.
3426 Make m_path an auto_vec instead of a pointer and adjust
3429 2021-11-10 Tamar Christina <tamar.christina@arm.com>
3431 * tree-vectorizer.h (struct scalar_cond_masked_key): Add inverted_p.
3432 (default_hash_traits<scalar_conf_masked_key>): Likewise.
3433 * tree-vect-stmts.c (vectorizable_condition): Check if inverse of mask
3435 * tree-vectorizer.c (scalar_cond_masked_key::get_cond_ops_from_tree):
3436 Register mask inverses.
3438 2021-11-10 Tamar Christina <tamar.christina@arm.com>
3440 * tree-vectorizer.c (vectorize_loops): Do local CSE through RPVN upon
3441 successful vectorization.
3443 2021-11-10 Andrew MacLeod <amacleod@redhat.com>
3445 * gimple-range-cache.cc (sbr_vector::grow): New.
3446 (sbr_vector::set_bb_range): Call grow.
3447 (sbr_vector::get_bb_range): Same.
3448 (sbr_vector::bb_range_p): Remove assert.
3450 2021-11-10 Tamar Christina <tamar.christina@arm.com>
3452 * config/aarch64/aarch64-simd.md (*aarch64_topbits_shuffle<mode>_le
3453 ,*aarch64_topbits_shuffle<mode>_be): Remove.
3455 2021-11-10 Jan Hubicka <jh@suse.cz>
3457 * ipa-modref.c: Include tree-eh.h
3458 (modref_summary::modref_summary): Initialize side_effects.
3459 (struct modref_summary_lto): New bool field side_effects.
3460 (modref_summary_lto::modref_summary_lto): Initialize side_effects.
3461 (modref_summary::dump): Dump side_effects.
3462 (modref_summary_lto::dump): Dump side_effects.
3463 (merge_call_side_effects): Merge side effects.
3464 (process_fnspec): Calls to non-const/pure or looping
3465 function is a side effect.
3466 (analyze_call): Self-recursion is a side-effect; handle
3468 (analyze_load): Watch for volatile and throwing memory.
3469 (analyze_store): Likewise.
3470 (analyze_stmt): Watch for volatitle asm.
3471 (analyze_function): Handle side_effects.
3472 (modref_summaries::duplicate): Duplicate side_effects.
3473 (modref_summaries_lto::duplicate): Likewise.
3474 (modref_write): Stream side_effects.
3475 (read_section): Likewise.
3476 (update_signature): Update.
3477 (propagate_unknown_call): Handle side_effects.
3478 (modref_propagate_in_scc): Likewise.
3479 * ipa-modref.h (struct modref_summary): Add side_effects.
3480 * ipa-pure-const.c (special_builtin_state): Rename to ...
3481 (builtin_safe_for_const_function_p): ... this one.
3482 (check_call): Update.
3483 (finite_function_p): Break out from ...
3484 (propagate_pure_const): ... here
3485 * ipa-utils.h (finite_function): Declare.
3487 2021-11-10 Lucas A. M. Magalhães <lamm@linux.ibm.com>
3489 * config.gcc (powerpc*-*-*): Remove -rpath from
3490 --with-advance-toolchain.
3492 2021-11-10 Marek Polacek <polacek@redhat.com>
3495 * attribs.c (struct scoped_attributes): Add a bool member.
3496 (lookup_scoped_attribute_spec): Forward declare.
3497 (register_scoped_attributes): New bool parameter, defaulted to
3499 (handle_ignored_attributes_option): New function.
3500 (free_attr_data): New function.
3501 (init_attributes): Call handle_ignored_attributes_option.
3502 (attr_namespace_ignored_p): New function.
3503 (decl_attributes): Check attr_namespace_ignored_p before
3505 * attribs.h (free_attr_data): Declare.
3506 (register_scoped_attributes): Adjust declaration.
3507 (handle_ignored_attributes_option): Declare.
3508 (canonicalize_attr_name): New function template.
3509 (canonicalize_attr_name): Use it.
3510 * common.opt (Wattributes=): New option with a variable.
3511 * doc/extend.texi: Document #pragma GCC diagnostic ignored_attributes.
3512 * doc/invoke.texi: Document -Wno-attributes=.
3513 * opts.c (common_handle_option) <case OPT_Wattributes_>: Handle.
3514 * plugin.h (register_scoped_attributes): Adjust declaration.
3515 * toplev.c (compile_file): Call free_attr_data.
3517 2021-11-10 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
3519 * config/arm/arm-cpus.in (cortex-a710): New CPU.
3520 * config/arm/arm-tables.opt: Regenerate.
3521 * config/arm/arm-tune.md: Regenerate.
3522 * doc/invoke.texi: Update docs.
3524 2021-11-10 Andre Vieira <andre.simoesdiasvieira@arm.com>
3526 * config/aarch64/aarch64-builtins.c
3527 (aarch64_general_gimple_fold_builtin): Mark argument as unused.
3529 2021-11-10 Martin Liska <mliska@suse.cz>
3531 * lto-wrapper.c (merge_and_complain): Make the first argument
3534 2021-11-10 Richard Sandiford <richard.sandiford@arm.com>
3536 * config/aarch64/iterators.md (optab): Use fmax_nan instead of
3537 smax_nan and fmin_nan instead of smin_nan.
3538 (maxmin_uns): Rename to...
3539 (fmaxmin): ...this and make the same changes. Remove entries
3540 unrelated to fmax* and fmin*.
3541 * config/aarch64/aarch64.md (<maxmin_uns><mode>3): Rename to...
3542 (<fmaxmin><mode>3): ...this.
3543 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>):
3545 (aarch64_<optab>p<mode>): ...this.
3546 (<maxmin_uns><mode>3): Rename to...
3547 (<fmaxmin><mode>3): ...this.
3548 (reduc_<maxmin_uns>_scal_<mode>): Rename to...
3549 (reduc_<optab>_scal_<mode>): ...this and update gen* call.
3550 (aarch64_reduc_<maxmin_uns>_internal<mode>): Rename to...
3551 (aarch64_reduc_<optab>_internal<mode>): ...this.
3552 (aarch64_reduc_<maxmin_uns>_internalv2si): Rename to...
3553 (aarch64_reduc_<optab>_internalv2si): ...this.
3554 * config/aarch64/aarch64-sve.md (<maxmin_uns><mode>3): Rename to...
3555 (<fmaxmin><mode>3): ...this.
3556 * config/aarch64/aarch64-simd-builtins.def (smax_nan, smin_nan)
3558 (fmax_nan, fmin_nan): ...this.
3559 * config/aarch64/arm_neon.h (vmax_f32, vmax_f64, vmaxq_f32, vmaxq_f64)
3560 (vmin_f32, vmin_f64, vminq_f32, vminq_f64, vmax_f16, vmaxq_f16)
3561 (vmin_f16, vminq_f16): Update accordingly.
3563 2021-11-10 Richard Sandiford <richard.sandiford@arm.com>
3565 * tree-vectorizer.h (vector_costs::finish_cost): Take the
3566 corresponding scalar costs as a parameter.
3567 (finish_cost): Likewise.
3568 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost)
3569 (vect_estimate_min_profitable_iters): Update accordingly.
3570 * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Likewise.
3571 * tree-vectorizer.c (vector_costs::finish_cost): Likewise.
3572 * config/aarch64/aarch64.c (aarch64_vector_costs::finish_cost):
3574 * config/rs6000/rs6000.c (rs6000_cost_data::finish_cost): Likewise.
3576 2021-11-10 Richard Sandiford <richard.sandiford@arm.com>
3578 * tree-vectorizer.h (_loop_vec_info::scalar_costs): New member
3580 (_loop_vec_info::single_scalar_iteration_cost): Delete.
3581 (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Delete.
3582 (vector_costs::total_cost): New function.
3583 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Update
3584 after above changes.
3585 (_loop_vec_info::~_loop_vec_info): Delete scalar_costs.
3586 (vect_compute_single_scalar_iteration_cost): Store the costs
3587 in loop_vinfo->scalar_costs.
3588 (vect_estimate_min_profitable_iters): Get the scalar cost from
3589 loop_vinfo->scalar_costs.
3591 2021-11-10 Richard Sandiford <richard.sandiford@arm.com>
3593 * tree-vectorizer.h (vector_costs::better_main_loop_than_p)
3594 (vector_costs::better_epilogue_loop_than_p)
3595 (vector_costs::compare_inside_loop_cost)
3596 (vector_costs::compare_outside_loop_cost): Likewise.
3597 * tree-vectorizer.c (vector_costs::better_main_loop_than_p)
3598 (vector_costs::better_epilogue_loop_than_p)
3599 (vector_costs::compare_inside_loop_cost)
3600 (vector_costs::compare_outside_loop_cost): New functions,
3601 containing code moved from...
3602 * tree-vect-loop.c (vect_better_loop_vinfo_p): ...here.
3604 2021-11-10 Richard Sandiford <richard.sandiford@arm.com>
3606 * tree-vectorizer.h (_loop_vec_info): Remove vec_outside_cost
3607 and vec_inside_cost.
3608 (vector_costs::outside_cost): New function.
3609 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Update
3611 (vect_estimate_min_profitable_iters): Likewise.
3612 (vect_better_loop_vinfo_p): Get the inside and outside costs
3613 from the loop_vec_infos' vector_costs.
3615 2021-11-10 Richard Sandiford <richard.sandiford@arm.com>
3617 * tree-vectorizer.h (vec_info::target_cost_data): Replace with...
3618 (_loop_vec_info::vector_costs): ...this.
3619 (LOOP_VINFO_TARGET_COST_DATA): Delete.
3620 * tree-vectorizer.c (vec_info::vec_info): Remove target_cost_data
3622 (vec_info::~vec_info): Remove corresponding delete.
3623 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
3624 vector_costs to null.
3625 (_loop_vec_info::~_loop_vec_info): Delete vector_costs.
3626 (vect_analyze_loop_operations): Update after above changes.
3627 (vect_analyze_loop_2): Likewise.
3628 (vect_estimate_min_profitable_iters): Likewise.
3629 * tree-vect-slp.c (vect_slp_analyze_operations): Likewise.
3631 2021-11-10 Jan Hubicka <hubicka@ucw.cz>
3633 * tree-core.h (EAF_DIRECT): Remove.
3634 (EAF_NOCLOBBER): Remove.
3635 (EAF_UNUSED): Remove.
3636 (EAF_NOESCAPE): Remove.
3637 (EAF_NO_DIRECT_CLOBBER): New.
3638 (EAF_NO_INDIRECT_CLOBBER): New.
3639 (EAF_NODIRECTESCAPE): Remove.
3640 (EAF_NO_DIRECT_ESCAPE): New.
3641 (EAF_NO_INDIRECT_ESCAPE): New.
3642 (EAF_NOT_RETURNED): Remove.
3643 (EAF_NOT_RETURNED_INDIRECTLY): New.
3644 (EAF_NOREAD): Remove.
3645 (EAF_NO_DIRECT_READ): New.
3646 (EAF_NO_INDIRECT_READ): New.
3647 * gimple.c (gimple_call_arg_flags): Update for new flags.
3648 (gimple_call_retslot_flags): Update for new flags.
3649 * ipa-modref.c (dump_eaf_flags): Likewise.
3650 (remove_useless_eaf_flags): Likewise.
3651 (deref_flags): Likewise.
3652 (modref_lattice::init): Likewise.
3653 (modref_lattice::merge): Likewise.
3654 (modref_lattice::merge_direct_load): Likewise.
3655 (modref_lattice::merge_direct_store): Likewise.
3656 (modref_eaf_analysis::merge_call_lhs_flags): Likewise.
3657 (callee_to_caller_flags): Likewise.
3658 (modref_eaf_analysis::analyze_ssa_name): Likewise.
3659 (modref_eaf_analysis::propagate): Likewise.
3660 (modref_merge_call_site_flags): Likewise.
3661 * ipa-modref.h (interposable_eaf_flags): Likewise.
3662 * tree-ssa-alias.c: (ref_maybe_used_by_call_p_1) Likewise.
3663 * tree-ssa-structalias.c (handle_call_arg): Likewise.
3664 (handle_rhs_call): Likewise.
3665 * tree-ssa-uninit.c (maybe_warn_pass_by_reference): Likewise.
3667 2021-11-10 Tamar Christina <tamar.christina@arm.com>
3669 * tree-vect-slp-patterns.c (complex_mul_pattern::matches): Remove l1node.
3671 2021-11-10 Andre Vieira <andre.simoesdiasvieira@arm.com>
3673 * config/aarch64/aarch64-builtins.c
3674 (aarch64_general_gimple_fold_builtin): Change pointer alignment and
3677 2021-11-10 Jan Hubicka <jh@suse.cz>
3679 * ipa-modref-tree.h (modref_tree::remap_params): Fix off-by-one error.
3681 2021-11-10 H.J. Lu <hongjiu.lu@intel.com>
3682 Hongtao Liu <hongtao.liu@intel.com>
3684 PR middle-end/102566
3685 * match.pd (nop_atomic_bit_test_and_p): New match.
3686 * tree-ssa-ccp.c (convert_atomic_bit_not): New function.
3687 (gimple_nop_atomic_bit_test_and_p): New prototype.
3688 (optimize_atomic_bit_test_and): Transform equivalent, but slighly
3689 different cases to their canonical forms.
3691 2021-11-10 liuhongt <hongtao.liu@intel.com>
3693 PR tree-optimization/103126
3694 * tree-vect-loop.c (neutral_op_for_reduction): Remove static.
3695 * tree-vectorizer.h (neutral_op_for_reduction): Declare.
3696 * tree-if-conv.c : Include tree-vectorizer.h.
3697 (is_cond_scalar_reduction): Handle
3698 BIT_XOR_EXPR/BIT_IOR_EXPR/BIT_AND_EXPR.
3699 (convert_scalar_cond_reduction): Ditto.
3701 2021-11-10 konglin1 <lingling.kong@intel.com>
3703 * config/i386/sse.md (cmul<conj_op><mode>3): add new define_expand.
3704 (cmla<conj_op><mode>4): Likewise
3706 2021-11-10 Aldy Hernandez <aldyh@redhat.com>
3708 * tree-ssa-threadedge.c: Do not include
3709 gimple-ssa-evrp-analyze.h.
3710 * value-pointer-equiv.cc: Same.
3712 2021-11-10 Aldy Hernandez <aldyh@redhat.com>
3714 * tree-ssa-threadbackward.c
3715 (back_threader::maybe_register_path_dump): Abstract path dumping...
3716 (dump_path): ...here.
3717 (back_threader::resolve_phi): Call dump_path.
3720 2021-11-10 konglin1 <lingling.kong@intel.com>
3722 * config/i386/sse.md (fma_<complexpairopname>_<mode>_pair):
3723 Add new define_insn.
3724 (fma_<mode>_fmaddc_bcst): Add new define_insn_and_split.
3725 (fma_<mode>_fcmaddc_bcst): Likewise
3727 2021-11-10 liuhongt <hongtao.liu@intel.com>
3730 * match.pd: Simplify (trunc)fmax/fmin((extend)a, (extend)b) to
3733 2021-11-10 Andrew Pinski <apinski@marvell.com>
3736 * config/aarch64/aarch64.c (aarch64_evpc_ins): Don't use target
3737 as an input, use original one.
3739 2021-11-10 Sandra Loosemore <sandra@codesourcery.com>
3741 * config/nios2/nios2.c (nios2_can_inline_p): New.
3742 (TARGET_CAN_INLINE_P): Define.
3744 2021-11-09 Bill Schmidt <wschmidt@linux.ibm.com>
3746 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_new_builtin):
3747 Disable gimple fold for RS6000_BIF_{XVMINDP,XVMINSP,VMINFP} and
3748 RS6000_BIF_{XVMAXDP,XVMAXSP,VMAXFP} when fast-math is not set.
3749 (lxvrse_expand_builtin): Modify the expansion for sign extension.
3750 All extensions are done within VSX registers.
3752 2021-11-09 Andrew Pinski <apinski@marvell.com>
3754 PR tree-optimization/10352
3755 * match.pd: Remove check of TYPE_PRECISION for
3758 2021-11-09 Andrew MacLeod <amacleod@redhat.com>
3760 * function.c (allocate_struct_function): Don't set x_range_query.
3761 * function.h (get_range_query): Move to value-query.h.
3762 * gimple-range.cc (enable_ranger): Check that query is currently NULL.
3763 (disable_ranger): Clear function current query field.
3764 * value-query.cc (get_global_range_query): Relocate to:
3765 * value-query.h (get_global_range_query): Here and inline.
3766 (get_range_query): Relocate here from function.h.
3768 2021-11-09 Aldy Hernandez <aldyh@redhat.com>
3770 * tree-ssa-threadbackward.c
3771 (back_threader::maybe_register_path_dump): New.
3772 (back_threader::maybe_register_path): Call maybe_register_path_dump.
3774 2021-11-09 Aldy Hernandez <aldyh@redhat.com>
3776 * tree-ssa-threadbackward.c (back_threader::maybe_register_path):
3777 Return NULL when unprofitable.
3779 2021-11-09 Martin Jambor <mjambor@suse.cz>
3781 * tree.h (build_debug_expr_decl): Declare.
3782 * tree.c (build_debug_expr_decl): New function.
3783 * cfgexpand.c (avoid_deep_ter_for_debug): Use build_debug_expr_decl
3784 instead of building a DEBUG_EXPR_DECL.
3785 * ipa-param-manipulation.c
3786 (ipa_param_body_adjustments::prepare_debug_expressions): Likewise.
3787 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Likewise.
3788 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
3789 * tree-ssa-phiopt.c (spaceship_replacement): Likewise.
3790 * tree-ssa-reassoc.c (make_new_ssa_for_def): Likewise.
3792 2021-11-09 Bill Schmidt <wschmidt@linux.ibm.com>
3794 * config/rs6000/rs6000-call.c (rs6000_type_string): New function.
3795 (def_builtin): Change debug formatting for easier parsing and
3796 include more information.
3797 (rs6000_init_builtins): Add dump of autogenerated builtins.
3798 (altivec_init_builtins): Dump __builtin_altivec_mask_for_load for
3801 2021-11-09 Marek Polacek <polacek@redhat.com>
3803 * ipa-modref.c (analyze_parms): Fix a typo.
3805 2021-11-09 Kito Cheng <kito.cheng@sifive.com>
3808 * common/config/riscv/riscv-common.c (multi_letter_subset_rank): Remove
3809 assertion for Z*-ext.
3811 2021-11-09 Jan Hubicka <hubicka@ucw.cz>
3813 * ipa-modref.c (analyze_parms): Add past_flags, past_retslot_flags
3814 and past_static_chain; merge past summary with current one.
3815 (analyze_function): Update.
3817 2021-11-09 Aldy Hernandez <aldyh@redhat.com>
3819 * doc/invoke.texi (Invoking GCC): Document --param=threader-debug.
3821 2021-11-09 Martin Liska <mliska@suse.cz>
3823 * print-rtl.c (rtx_writer::rtx_writer): Make the compilation
3824 conditional based on
3825 * print-rtl.h (class rtx_writer): Likewise.
3827 2021-11-09 Thomas Schwinge <thomas@codesourcery.com>
3829 * input.h (location_hash): Use 'BUILTINS_LOCATION' as spare value
3830 for 'Deleted'. Turn into a '#define'.
3832 2021-11-09 Aldy Hernandez <aldyh@redhat.com>
3834 * gimple-range-path.cc (path_range_query::dump): Clean up.
3835 (path_range_query::compute_ranges): Same.
3836 * value-relation.cc (path_oracle::dump): Same.
3838 2021-11-09 Aldy Hernandez <aldyh@redhat.com>
3840 * dumpfile.c (dump_options): Remove TDF_THREADING entry.
3841 * dumpfile.h (enum dump_flag): Remove TDF_THREADING and adjust
3843 * flag-types.h (enum threader_debug): New.
3844 * gimple-range-path.cc (DEBUG_SOLVER): Use param_threader_debug.
3845 * params.opt: Add entry for --param=threader-debug=.
3847 2021-11-09 Thomas Schwinge <thomas@codesourcery.com>
3849 PR middle-end/101204
3851 * diagnostic-spec.h (typedef xint_hash_t): Turn into...
3852 (struct xint_hash_t): ... this.
3853 * doc/gty.texi: Update.
3855 2021-11-09 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
3857 * config/arm/arm-cpus.in (armv9): New define.
3858 (ARMv9a): New group.
3859 (armv9-a): New arch definition.
3860 * config/arm/arm-tables.opt: Regenerate.
3861 * config/arm/arm.h (BASE_ARCH_9A): New arch enum value.
3862 * config/arm/t-aprofile: Added armv9-a and armv9+simd.
3863 * config/arm/t-arm-elf: Added arm9-a, v9_fps and all_v9_archs
3864 to MULTILIB_MATCHES.
3865 * config/arm/t-multilib: Added v9_a_nosimd_variants and
3866 v9_a_simd_variants to MULTILIB_MATCHES.
3867 * doc/invoke.texi: Update docs.
3869 2021-11-09 Martin Jambor <mjambor@suse.cz>
3872 * ipa-param-manipulation.c (replace_with_mapped_expr): Early
3873 return with error_mark_mode when part of expression is mapped to
3875 (ipa_param_body_adjustments::remap_with_debug_expressions): Set
3876 mapped value to NULL if walk_tree returns error_mark_mode.
3878 2021-11-09 Aldy Hernandez <aldyh@redhat.com>
3880 * tree-ssa-strlen.c (compare_nonzero_chars): Pass statement
3882 (get_addr_stridx): Same.
3884 (get_range_strlen_dynamic): Same.
3885 (handle_builtin_strlen): Same.
3886 (handle_builtin_strchr): Same.
3887 (handle_builtin_strcpy): Same.
3888 (maybe_diag_stxncpy_trunc): Same.
3889 (handle_builtin_stxncpy_strncat): Same.
3890 (handle_builtin_memcpy): Same.
3891 (handle_builtin_strcat): Same.
3892 (handle_alloc_call): Same.
3893 (handle_builtin_memset): Same.
3894 (handle_builtin_string_cmp): Same.
3895 (handle_pointer_plus): Same.
3896 (count_nonzero_bytes_addr): Same.
3897 (count_nonzero_bytes): Same.
3898 (handle_store): Same.
3899 (fold_strstr_to_strncmp): Same.
3900 (handle_integral_assign): Same.
3901 (check_and_optimize_stmt): Same.
3902 (class strlen_dom_walker): Replace evrp with ranger.
3903 (strlen_dom_walker::before_dom_children): Remove evrp.
3904 (strlen_dom_walker::after_dom_children): Remove evrp.
3905 * gimple-ssa-warn-access.cc (maybe_check_access_sizes):
3906 Restrict sprintf output.
3908 2021-11-09 Martin Liska <mliska@suse.cz>
3910 * genconditions.c (write_one_condition): Add const qualifier
3913 2021-11-09 Jeff Law <jeffreyalaw@gmail.com>
3915 * match.pd: New pattern to simplify (1 << n) & M ==/!= 0 for M
3918 2021-11-08 Bill Schmidt <wschmidt@linux.ibm.com>
3920 * config/rs6000/rs6000-builtin-new.def (VEC_INIT_V16QI): Use
3921 escape-newline support.
3922 (VEC_INIT_V4SI): Likewise.
3923 (VEC_INIT_V8HI): Likewise.
3924 (PACK_V1TI): Likewise.
3926 (VFIRSTMISMATCHOREOSINDEX_V16QI): Likewise.
3927 (VFIRSTMISMATCHOREOSINDEX_V8HI): Likewise.
3928 (VFIRSTMISMATCHOREOSINDEX_V4SI): Likewise.
3932 (FMAF128_ODD): Likewise.
3933 (VSCEQPUO): Likewise.
3935 (VSIEQPF): Likewise.
3936 (VSTDCQP): Likewise.
3937 (PACK_TD): Likewise.
3938 (TABORTDC): Likewise.
3939 (TABORTDCI): Likewise.
3940 (SE_LXVRBX): Likewise.
3941 (SE_LXVRHX): Likewise.
3942 (SE_LXVRWX): Likewise.
3943 (SE_LXVRDX): Likewise.
3944 (VREPLACE_UN_UV2DI): Likewise.
3945 (VREPLACE_UN_UV4SI): Likewise.
3946 (VREPLACE_UN_V2DI): Likewise.
3947 (VREPLACE_ELT_UV2DI): Likewise.
3948 (VREPLACE_ELT_V2DI): Likewise.
3949 (ZE_LXVRBX): Likewise.
3950 (ZE_LXVRHX): Likewise.
3951 (ZE_LXVRWX): Likewise.
3952 (ZE_LXVRDX): Likewise.
3954 (CNTLZDM): Likewise.
3955 (CNTTZDM): Likewise.
3958 (PMXVBF16GER2): Likewise.
3959 (PMXVBF16GER2_INTERNAL): Likewise.
3960 (PMXVBF16GER2NN): Likewise.
3961 (PMXVBF16GER2NN_INTERNAL): Likewise.
3962 (PMXVBF16GER2NP): Likewise.
3963 (PMXVBF16GER2NP_INTERNAL): Likewise.
3964 (PMXVBF16GER2PN): Likewise.
3965 (PMXVBF16GER2PN_INTERNAL): Likewise.
3966 (PMXVBF16GER2PP): Likewise.
3967 (PMXVBF16GER2PP_INTERNAL): Likewise.
3968 (PMXVF16GER2): Likewise.
3969 (PMXVF16GER2_INTERNAL): Likewise.
3970 (PMXVF16GER2NN): Likewise.
3971 (PMXVF16GER2NN_INTERNAL): Likewise.
3972 (PMXVF16GER2NP): Likewise.
3973 (PMXVF16GER2NP_INTERNAL): Likewise.
3974 (PMXVF16GER2PN): Likewise.
3975 (PMXVF16GER2PN_INTERNAL): Likewise.
3976 (PMXVF16GER2PP): Likewise.
3977 (PMXVF16GER2PP_INTERNAL): Likewise.
3978 (PMXVF32GER_INTERNAL): Likewise.
3979 (PMXVF32GERNN): Likewise.
3980 (PMXVF32GERNN_INTERNAL): Likewise.
3981 (PMXVF32GERNP): Likewise.
3982 (PMXVF32GERNP_INTERNAL): Likewise.
3983 (PMXVF32GERPN): Likewise.
3984 (PMXVF32GERPN_INTERNAL): Likewise.
3985 (PMXVF32GERPP): Likewise.
3986 (PMXVF32GERPP_INTERNAL): Likewise.
3987 (PMXVF64GER): Likewise.
3988 (PMXVF64GER_INTERNAL): Likewise.
3989 (PMXVF64GERNN): Likewise.
3990 (PMXVF64GERNN_INTERNAL): Likewise.
3991 (PMXVF64GERNP): Likewise.
3992 (PMXVF64GERNP_INTERNAL): Likewise.
3993 (PMXVF64GERPN): Likewise.
3994 (PMXVF64GERPN_INTERNAL): Likewise.
3995 (PMXVF64GERPP): Likewise.
3996 (PMXVF64GERPP_INTERNAL): Likewise.
3997 (PMXVI16GER2): Likewise.
3998 (PMXVI16GER2_INTERNAL): Likewise.
3999 (PMXVI16GER2PP): Likewise.
4000 (PMXVI16GER2PP_INTERNAL): Likewise.
4001 (PMXVI16GER2S): Likewise.
4002 (PMXVI16GER2S_INTERNAL): Likewise.
4003 (PMXVI16GER2SPP): Likewise.
4004 (PMXVI16GER2SPP_INTERNAL): Likewise.
4005 (PMXVI4GER8): Likewise.
4006 (PMXVI4GER8_INTERNAL): Likewise.
4007 (PMXVI4GER8PP): Likewise.
4008 (PMXVI4GER8PP_INTERNAL): Likewise.
4009 (PMXVI8GER4): Likewise.
4010 (PMXVI8GER4_INTERNAL): Likewise.
4011 (PMXVI8GER4PP): Likewise.
4012 (PMXVI8GER4PP_INTERNAL): Likewise.
4013 (PMXVI8GER4SPP): Likewise.
4014 (PMXVI8GER4SPP_INTERNAL): Likewise.
4015 * config/rs6000/rs6000-gen-builtins.c (MAXLINES): New macro.
4016 (linebuf): Increase size.
4017 (lines): New variable.
4018 (lastline): Likewise.
4019 (real_line_pos): New function.
4020 (diag): Change signature.
4021 (bif_diag): Change signature; support escape-newline handling.
4022 (ovld_diag): Likewise.
4023 (fatal): Move earlier.
4024 (consume_whitespace): Adjust diag call.
4025 (advance_line): Add escape-newline handling; call fatal.
4026 (safe_inc_pos): Adjust diag call.
4027 (match_identifier): Likewise.
4028 (match_integer): Likewise.
4029 (match_to_right_bracket): Call fatal instead of diag; adjust diag
4031 (match_basetype): Adjust diag calls.
4032 (match_bracketed_pair): Likewise.
4033 (match_const_restriction): Likewise.
4034 (match_type): Likewise.
4035 (parse_args): Likewise.
4036 (parse_bif_attrs): Likewise.
4037 (complete_vector_type): Likewise.
4038 (complete_base_type): Likewise.
4039 (parse_prototype): Likewise.
4040 (parse_bif_entry): Likewise.
4041 (parse_bif_stanza): Likewise.
4042 (parse_ovld_entry): Likewise.
4043 (parse_ovld_stanza): Likewise.
4044 (main): Allocate buffers for lines[].
4046 2021-11-08 Eric Botcazou <ebotcazou@adacore.com>
4048 * config/i386/i386.c (legitimize_pic_address): Adjust comment and
4049 use the REG argument on the CM_LARGE_PIC code path as well.
4050 * config/i386/predicates.md (gotoff_operand): Do not treat VxWorks
4051 specially with the large code models.
4053 2021-11-08 Jan Hubicka <hubicka@ucw.cz>
4055 * gimple.c (gimple_call_static_chain_flags): Revert the workaround
4056 allowing interposition since issues with binds_to_local_def were
4059 2021-11-08 Andrew MacLeod <amacleod@redhat.com>
4061 PR tree-optimization/103122
4062 * gimple-range.cc (gimple_ranger::range_of_expr): Request the cache
4063 entry with "calulate new values" set to false.
4065 2021-11-08 Jan Hubicka <hubicka@ucw.cz>
4067 * builtins.c (is_simple_builtin): Add builitin_dwarf_cfa
4068 and builtin_return_address.
4069 (builtin_fnspec): Annotate builtin_return,
4070 bulitin_eh_pointer, builtin_eh_filter, builtin_unwind_resume,
4071 builtin_cxa_end_cleanup, builtin_eh_copy_values,
4072 builtin_frame_address, builtin_apply_args,
4073 builtin_asan_before_dynamic_init, builtin_asan_after_dynamic_init,
4074 builtin_prefetch, builtin_dwarf_cfa, builtin_return_addrss
4076 * ipa-pure-const.c (special_builtin_state): Add builtin_dwarf_cfa
4077 and builtin_return_address.
4079 2021-11-08 Jan Hubicka <hubicka@ucw.cz>
4081 PR tree-optimization/103177
4082 * passes.def: Move uncprop after pure/const and modref.
4084 2021-11-08 Martin Jambor <mjambor@suse.cz>
4088 * tree-inline.c (remap_gimple_stmt): Unshare the expression without
4089 location before invoking remap_with_debug_expressions on it.
4090 * ipa-param-manipulation.c
4091 (ipa_param_body_adjustments::prepare_debug_expressions): Likewise.
4093 2021-11-08 David Edelsohn <dje.gcc@gmail.com>
4095 * config/rs6000/vsx.md (vsx_splat_v4si_di): Revert "wa"
4098 2021-11-08 Richard Biener <rguenther@suse.de>
4100 * cfgloop.c (verify_loop_structure): Use a temporary BB flag
4101 instead of an sbitmap to cache irreducible state.
4103 2021-11-08 Aldy Hernandez <aldyh@redhat.com>
4105 PR tree-optimization/103120
4106 * gimple-range-path.cc (path_range_query::range_defined_in_block):
4107 Bail if there's a cache entry.
4109 2021-11-08 Bill Schmidt <wschmidt@linux.ibm.com>
4111 * config/rs6000/rs6000.c (rs6000_builtin_reciprocal): Use
4112 rs6000_builtin_decls_x when appropriate.
4113 (add_condition_to_bb): Likewise.
4114 (rs6000_atomic_assign_expand_fenv): Likewise.
4116 2021-11-08 Bill Schmidt <wschmidt@linux.ibm.com>
4118 * config/rs6000/rs6000-call.c (rs6000_new_builtin_decl): New function.
4119 (rs6000_builtin_decl): Call it.
4121 2021-11-08 Martin Liska <mliska@suse.cz>
4123 * cgraph.c (cgraph_node::dump): Dump it from decl.
4125 2021-11-08 Martin Liska <mliska@suse.cz>
4127 PR gcov-profile/100520
4128 * coverage.c (coverage_compute_profile_id): Strip .gk when
4129 compare debug is used.
4130 * system.h (endswith): New function.
4132 2021-11-08 Martin Liska <mliska@suse.cz>
4134 * cgraph.c (cgraph_node::dump): Dump static_chain_decl.
4136 2021-11-08 Thomas Schwinge <thomas@codesourcery.com>
4138 * config/rs6000/rbtree.c: Fix 'Copyright (C) 2020-21' into '2020-2021'
4139 * config/rs6000/rbtree.h: Likewise.
4140 * config/rs6000/rs6000-builtin-new.def: Likewise.
4141 * config/rs6000/rs6000-gen-builtins.c: Likewise.
4142 * config/rs6000/rs6000-overload.def: Likewise.
4144 2021-11-08 Richard Sandiford <richard.sandiford@arm.com>
4146 * config/aarch64/aarch64.c (aarch64_ldn_stn_vectors): New function.
4147 (aarch64_address_cost): Use it instead of testing for CImode and
4150 2021-11-08 Richard Sandiford <richard.sandiford@arm.com>
4152 * genmodes.c (emit_insn_modes_h): Define NUM_MODE_* macros.
4153 * expmed.h (NUM_MODE_INT): Delete in favor of genmodes definitions.
4154 (NUM_MODE_PARTIAL_INT, NUM_MODE_VECTOR_INT): Likewise.
4155 * real.h (real_format_for_mode): Use NUM_MODE_FLOAT and
4156 NUM_MODE_DECIMAL_FLOAT.
4157 (REAL_MODE_FORMAT): Likewise.
4159 2021-11-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
4161 * tree-vect-loop.c (vect_better_loop_vinfo_p): Change how epilogue loop
4164 2021-11-08 Richard Biener <rguenther@suse.de>
4166 * tree-vectorizer.h (vect_create_loop_vinfo): Add main_loop_info
4168 * tree-vect-loop.c (vect_create_loop_vinfo): Likewise. Set
4169 LOOP_VINFO_ORIG_LOOP_INFO and conditionalize set of
4170 LOOP_VINFO_NITERS_ASSUMPTIONS.
4171 (vect_analyze_loop_1): Adjust.
4172 (vect_analyze_loop): Move loop constraint setting and
4173 SCEV/niter reset here from vect_create_loop_vinfo to perform
4175 (vect_analyze_loop_form): Move dumping of symbolic niters
4176 here from vect_create_loop_vinfo.
4178 2021-11-08 Jan Hubicka <hubicka@ucw.cz>
4180 * ipa-modref-tree.h (enum modref_special_parms): New enum.
4181 (struct modref_access_node): update for special parms.
4182 (struct modref_ref_node): Likewise.
4183 (struct modref_parm_map): Likewise.
4184 (struct modref_tree): Likewise.
4185 * ipa-modref.c (dump_access): Likewise.
4186 (get_access): Detect static chain.
4187 (parm_map_for_arg): Take tree as arg instead of
4189 (merge_call_side_effects): Compute map for static chain.
4190 (process_fnspec): Update.
4191 (struct escape_point): Remove retslot_arg and static_chain_arg.
4192 (analyze_parms): Update.
4193 (compute_parm_map): Update.
4194 (propagate_unknown_call): Update.
4195 (modref_propagate_in_scc): Update.
4196 (modref_merge_call_site_flags): Update.
4197 (ipa_merge_modref_summary_after_inlining): Update.
4198 * tree-ssa-alias.c (modref_may_conflict): Handle static chain.
4199 * ipa-modref-tree.c (test_merge): Update.
4201 2021-11-08 Haochen Gui <guihaoc@gcc.gnu.org>
4203 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_builtin): Disable
4204 gimple fold for VSX_BUILTIN_XVMINDP, ALTIVEC_BUILTIN_VMINFP,
4205 VSX_BUILTIN_XVMAXDP, ALTIVEC_BUILTIN_VMAXFP when fast-math is not
4208 2021-11-08 liuhongt <hongtao.liu@intel.com>
4210 PR tree-optimization/103077
4211 * doc/invoke.texi (Options That Control Optimization):
4212 Update documentation for -ftree-loop-vectorize and
4213 -ftree-slp-vectorize which are enabled by default at -02.
4215 2021-11-08 liuhongt <hongtao.liu@intel.com>
4218 * match.pd (Simplifcation (trunc)copysign((extend)a, (extend)b)
4219 to .COPYSIGN (a, b)): Add !HONOR_SNANS.
4221 2021-11-08 liuhongt <hongtao.liu@intel.com>
4224 * match.pd: Simplify
4225 (trunc)fma ((extend)a, (extend)b, (extend)c) to IFN_FMA (a, b,
4226 c) under flag_unsafe_math_optimizations.
4228 2021-11-07 Jan Hubicka <hubicka@ucw.cz>
4231 * params.opt (modref-max-depth): Add range.
4232 (modref-max-adjustments): Fix range.
4234 2021-11-07 Aldy Hernandez <aldyh@redhat.com>
4236 * tree-pass.h (make_pass_vrp_threader): Remove.
4237 * tree-ssa-threadbackward.c
4238 (back_threader_profitability::profitable_path_p): Remove
4239 ASSERT_EXPR references.
4240 * tree-ssa-threadedge.c (jt_state::register_equivs_stmt): Same.
4241 * tree-vrp.c (vrp_folder::simplify_casted_conds): Same.
4242 (execute_vrp): Same.
4243 (class hybrid_threader): Remove.
4244 (hybrid_threader::hybrid_threader): Remove.
4245 (hybrid_threader::~hybrid_threader): Remove.
4246 (hybrid_threader::before_dom_children): Remove.
4247 (hybrid_threader::after_dom_children): Remove.
4248 (execute_vrp_threader): Remove.
4249 (class pass_vrp_threader): Remove.
4250 (make_pass_vrp_threader): Remove.
4252 2021-11-07 Jan Hubicka <hubicka@ucw.cz>
4254 * gimple.c (gimple_call_arg_flags): Use interposable_eaf_flags.
4255 (gimple_call_retslot_flags): Likewise.
4256 (gimple_call_static_chain_flags): Likewise.
4257 * ipa-modref.c (remove_useless_eaf_flags): Do not remove everything for
4259 (modref_summary::useful_p): Likewise.
4260 (modref_summary_lto::useful_p): Likewise.
4261 (analyze_parms): Do not give up on NOVOPS.
4262 (analyze_function): When dumping report chnages in EAF flags
4263 between IPA and local pass.
4264 (modref_merge_call_site_flags): Compute implicit eaf flags
4265 based on callee ecf_flags and fnspec; if the function does not
4266 bind to current defs use interposable_eaf_flags.
4267 (modref_propagate_flags_in_scc): Update.
4268 * ipa-modref.h (interposable_eaf_flags): New function.
4270 2021-11-07 Bill Schmidt <wschmidt@linux.ibm.com>
4272 * config/rs6000/rs6000-call.c (rs6000_expand_new_builtin): New
4274 (rs6000_invalid_new_builtin): New function.
4275 (rs6000_expand_builtin): Call rs6000_expand_new_builtin.
4276 (rs6000_expand_ldst_mask): New function.
4277 (new_cpu_expand_builtin): Likewise.
4278 (elemrev_icode): Likewise.
4279 (ldv_expand_builtin): Likewise.
4280 (lxvrse_expand_builtin): Likewise.
4281 (lxvrze_expand_builtin): Likewise.
4282 (stv_expand_builtin): Likewise.
4283 (new_mma_expand_builtin): Likewise.
4284 (new_htm_spr_num): Likewise.
4285 (new_htm_expand_builtin): Likewise.
4286 (rs6000_expand_new_builtin): Likewise.
4287 (rs6000_init_builtins): Initialize altivec_builtin_mask_for_load.
4289 2021-11-07 Jan Hubicka <hubicka@ucw.cz>
4291 * ipa-modref.c (modref_lattice): Add do_dataflow,
4292 changed and propagate_to fields.
4293 (modref_lattice::release): Free propagate_to
4294 (modref_lattice::merge): Do not give up early on unknown
4296 (modref_lattice::merge_deref): Likewise.
4297 (modref_eaf_analysis): Update toplevel comment.
4298 (modref_eaf_analysis::analyze_ssa_name): Record postponned ssa names;
4299 do optimistic dataflow initialization.
4300 (modref_eaf_analysis::merge_with_ssa_name): Build dataflow graph.
4301 (modref_eaf_analysis::propagate): New member function.
4302 (analyze_parms): Update to new API of modref_eaf_analysis.
4304 2021-11-06 Jan Hubicka <hubicka@ucw.cz>
4306 * cgraph.h (cgraph_node::can_be_discarded_p): Do not
4307 return true on functions from other partition.
4309 2021-11-06 David Edelsohn <dje.gcc@gmail.com>
4311 * config/rs6000/vsx.md (vsx_splat_v4si): Change constraints to "wa".
4312 (vsx_splat_v4si_di): Change constraint to "wa".
4314 2021-11-06 Aldy Hernandez <aldyh@redhat.com>
4316 PR tree-optimization/103061
4317 * value-relation.cc (path_oracle::path_oracle): Initialize
4319 (path_oracle::killing_def): Set m_killed_defs.
4320 (path_oracle::query_relation): Do not look at the root oracle for
4322 * value-relation.h (class path_oracle): Add m_killed_defs.
4324 2021-11-06 Aldy Hernandez <aldyh@redhat.com>
4326 * tree-ssa-threadbackward.c (back_threader::find_paths_to_names):
4327 Remove gotos and other cleanups.
4329 2021-11-05 Jan Hubicka <hubicka@ucw.cz>
4332 * ipa-modref-tree.h (modref_tree::insert): Do nothing for
4333 paradoxical and zero sized accesses.
4335 2021-11-05 Jan Hubicka <hubicka@ucw.cz>
4338 * ipa-modref-tree.h (struct modref_access_node): Avoid left shift
4341 2021-11-05 Iain Sandoe <iain@sandoe.co.uk>
4343 * config/darwin.h (ASM_GENERATE_INTERNAL_LABEL): Add LTRAMP
4344 to the list of symbol prefixes that must be made linker-
4347 2021-11-05 Iain Sandoe <iain@sandoe.co.uk>
4349 * config.host: Add support for aarch64-*-darwin.
4350 * config/aarch64/host-aarch64-darwin.c: New file.
4351 * config/aarch64/x-darwin: New file.
4353 2021-11-05 Andrew MacLeod <amacleod@redhat.com>
4355 PR tree-optimization/103093
4356 * gimple-range-gori.cc (range_def_chain::get_imports): Remove assert.
4358 2021-11-05 Andrew MacLeod <amacleod@redhat.com>
4360 PR tree-optimization/102943
4361 * gimple-range-cache.cc (class update_list): New.
4362 (update_list::add): Replace add_to_update.
4363 (update_list::pop): New.
4364 (ranger_cache::ranger_cache): Adjust.
4365 (ranger_cache::~ranger_cache): Adjust.
4366 (ranger_cache::add_to_update): Delete.
4367 (ranger_cache::propagate_cache): Adjust to new class.
4368 (ranger_cache::propagate_updated_value): Ditto.
4369 (ranger_cache::fill_block_cache): Ditto.
4370 * gimple-range-cache.h (class ranger_cache): Adjust to update class.
4372 2021-11-05 Richard Biener <rguenther@suse.de>
4374 * tree-vect-loop.c (vect_analyze_loop): Remove obsolete
4375 comment and expand on another one. Combine nested if.
4377 2021-11-05 John David Anglin <danglin@gcc.gnu.org>
4380 * config/pa/pa-modes.def: Add OImode integer type.
4381 * config/pa/pa.c (pa_scalar_mode_supported_p): Allow TImode
4383 * config/pa/pa.h (MIN_UNITS_PER_WORD) Define to MIN_UNITS_PER_WORD
4384 to UNITS_PER_WORD if IN_LIBGCC2.
4385 * config/pa/pa.md (addti3, addvti3, subti3, subvti3, negti2,
4386 negvti2, ashlti3, shrpd_internal): New patterns.
4387 Change some multi instruction types to multi.
4389 2021-11-05 Jakub Jelinek <jakub@redhat.com>
4392 * config/i386/i386.h
4393 (stringop_algs::stringop_strategy::stringop_strategy): Make the ctor
4396 2021-11-05 Wilco Dijkstra <wdijkstr@arm.com>
4399 * config/aarch64/aarch64.c (aarch64_mov_operand_p): Strip the salt
4401 * config/aarch64/constraints.md: Support const in Usw.
4403 2021-11-05 John David Anglin <danglin@gcc.gnu.org>
4405 * config/pa/pa.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2_DEBUG.
4406 * config/pa/pa64-hpux.h (PREFERRED_DEBUGGING_TYPE): Remove define.
4408 2021-11-05 Richard Biener <rguenther@suse.de>
4410 * tree-vectorizer.h (vec_info_shared::n_stmts): Add.
4411 (LOOP_VINFO_N_STMTS): Likewise.
4412 (vec_info_for_bb): Remove unused function.
4413 * tree-vectorizer.c (vec_info_shared::vec_info_shared):
4414 Initialize n_stmts member.
4415 * tree-vect-loop.c: Remove INCLUDE_FUNCTIONAL.
4416 (vect_create_loop_vinfo): Do not set loop->aux.
4417 (vect_analyze_loop_2): Do not get n_stmts as argument,
4418 instead use LOOP_VINFO_N_STMTS. Set LOOP_VINFO_VECTORIZABLE_P
4420 (vect_analyze_loop_1): Remove callback, get the mode iterator
4421 and autodetected_vector_mode as argument, advancing the
4422 iterator and initializing autodetected_vector_mode here.
4423 (vect_analyze_loop): Split analysis loop into two, first
4424 processing main loops only and then epilogues.
4426 2021-11-05 Martin Jambor <mjambor@suse.cz>
4428 * ipa-prop.c (compute_complex_assign_jump_func): Remove
4429 unnecessary check for RECORD_TYPE.
4431 2021-11-05 Gerald Pfeifer <gerald@pfeifer.com>
4433 * doc/install.texi2html: Do not generate old.html any longer.
4435 2021-11-05 Martin Liska <mliska@suse.cz>
4438 * opts.c (finish_options): Reset flag_gtoggle when it is used.
4440 2021-11-05 Jakub Jelinek <jakub@redhat.com>
4443 * dwarf2out.c (add_const_value_attribute): Add MODE argument, use it
4444 in CONST_WIDE_INT handling. Adjust recursive calls.
4445 (add_location_or_const_value_attribute): Pass DECL_MODE (decl) to
4446 new add_const_value_attribute argument.
4447 (tree_add_const_value_attribute): Pass TYPE_MODE (type) to new
4448 add_const_value_attribute argument.
4450 2021-11-05 Rasmus Villemoes <rasmus.villemoes@prevas.dk>
4452 * config/vx-common.h: Test value of TARGET_VXWORKS7 rather
4455 2021-11-05 Richard Biener <rguenther@suse.de>
4457 * tree-vectorizer.h (struct vect_loop_form_info): New.
4458 (vect_analyze_loop_form): Adjust.
4459 (vect_create_loop_vinfo): New.
4460 * tree-parloops.c (gather_scalar_reductions): Adjust for
4461 vect_analyze_loop_form API change.
4462 * tree-vect-loop.c: Include <functional>.
4463 (vect_analyze_loop_form_1): Rename to vect_analyze_loop_form,
4464 take struct vect_loop_form_info as output parameter and adjust.
4465 (vect_analyze_loop_form): Rename to vect_create_loop_vinfo and
4466 split out call to the original vect_analyze_loop_form_1.
4467 (vect_reanalyze_as_main_loop): Rename to...
4468 (vect_analyze_loop_1): ... this, factor out the call to
4469 vect_analyze_loop_form and generalize to be able to use it twice ...
4470 (vect_analyze_loop): ... here. Perform vect_analyze_loop_form
4473 2021-11-05 Xionghu Luo <luoxhu@linux.ibm.com>
4476 * config/rs6000/fusion.md: Regenerate.
4477 * config/rs6000/genfusion.pl: Fix incorrect clobber constraint.
4479 2021-11-04 Andreas Krebbel <krebbel@linux.ibm.com>
4481 * config/s390/s390.h (STACK_CHECK_MOVING_SP): New macro
4484 2021-11-04 Tamar Christina <tamar.christina@arm.com>
4486 * config/aarch64/aarch64-builtins.c
4487 (aarch64_general_gimple_fold_builtin): Add ashl, sshl, ushl, ashr,
4488 ashr_simd, lshr, lshr_simd.
4489 * config/aarch64/aarch64-simd-builtins.def (lshr): Use USHIFTIMM.
4490 * config/aarch64/arm_neon.h (vshr_n_u8, vshr_n_u16, vshr_n_u32,
4491 vshrq_n_u8, vshrq_n_u16, vshrq_n_u32, vshrq_n_u64): Fix type hack.
4493 2021-11-04 Tamar Christina <tamar.christina@arm.com>
4495 * match.pd: New negate+shift pattern.
4497 2021-11-04 Andrew MacLeod <amacleod@redhat.com>
4499 PR tree-optimization/103079
4500 * gimple-range-gori.cc (gimple_range_calc_op1): Treat undefined as
4502 (gimple_range_calc_op2): Ditto.
4504 2021-11-04 Martin Jambor <mjambor@suse.cz>
4507 * ipa-param-manipulation.h (class ipa_param_body_adjustments): New
4508 members remap_with_debug_expressions, m_dead_ssa_debug_equiv,
4509 m_dead_stmt_debug_equiv and prepare_debug_expressions. Added
4510 parameter to mark_dead_statements.
4511 * ipa-param-manipulation.c: Include tree-phinodes.h and cfgexpand.h.
4512 (ipa_param_body_adjustments::mark_dead_statements): New parameter
4513 debugstack, push into it all SSA names used in debug statements,
4514 produce m_dead_ssa_debug_equiv mapping for the removed param.
4515 (replace_with_mapped_expr): New function.
4516 (ipa_param_body_adjustments::remap_with_debug_expressions): Likewise.
4517 (ipa_param_body_adjustments::prepare_debug_expressions): Likewise.
4518 (ipa_param_body_adjustments::common_initialization): Gather and
4519 procecc SSA which will be removed but are in debug statements. Simplify.
4520 (ipa_param_body_adjustments::ipa_param_body_adjustments): Initialize
4522 * tree-inline.c (remap_gimple_stmt): Create a debug bind when possible
4523 when avoiding a copy of an unnecessary statement. Remap removed SSA
4524 names in existing debug statements.
4525 (tree_function_versioning): Do not create DEBUG_EXPR_DECL for removed
4526 parameters if we have already done so.
4528 2021-11-04 Jan Hubicka <hubicka@ucw.cz>
4531 * gimple.c (gimple_call_static_chain_flags): Handle case when
4532 nested function does not bind locally.
4534 2021-11-04 Jonathan Wright <jonathan.wright@arm.com>
4536 * config/aarch64/aarch64.c (aarch64_function_value): Generate
4537 a register rtx for Neon vector-tuple modes.
4538 (aarch64_layout_arg): Likewise.
4540 2021-11-04 Jonathan Wright <jonathan.wright@arm.com>
4542 * lower-subreg.c (simple_move): Prevent decomposition if
4543 modes are not tieable.
4545 2021-11-04 Jonathan Wright <jonathan.wright@arm.com>
4546 Richard Sandiford <richard.sandiford@arm.com>
4548 * config/aarch64/aarch64-builtins.c (v2x8qi_UP): Define.
4549 (v2x4hi_UP): Likewise.
4550 (v2x4hf_UP): Likewise.
4551 (v2x4bf_UP): Likewise.
4552 (v2x2si_UP): Likewise.
4553 (v2x2sf_UP): Likewise.
4554 (v2x1di_UP): Likewise.
4555 (v2x1df_UP): Likewise.
4556 (v2x16qi_UP): Likewise.
4557 (v2x8hi_UP): Likewise.
4558 (v2x8hf_UP): Likewise.
4559 (v2x8bf_UP): Likewise.
4560 (v2x4si_UP): Likewise.
4561 (v2x4sf_UP): Likewise.
4562 (v2x2di_UP): Likewise.
4563 (v2x2df_UP): Likewise.
4564 (v3x8qi_UP): Likewise.
4565 (v3x4hi_UP): Likewise.
4566 (v3x4hf_UP): Likewise.
4567 (v3x4bf_UP): Likewise.
4568 (v3x2si_UP): Likewise.
4569 (v3x2sf_UP): Likewise.
4570 (v3x1di_UP): Likewise.
4571 (v3x1df_UP): Likewise.
4572 (v3x16qi_UP): Likewise.
4573 (v3x8hi_UP): Likewise.
4574 (v3x8hf_UP): Likewise.
4575 (v3x8bf_UP): Likewise.
4576 (v3x4si_UP): Likewise.
4577 (v3x4sf_UP): Likewise.
4578 (v3x2di_UP): Likewise.
4579 (v3x2df_UP): Likewise.
4580 (v4x8qi_UP): Likewise.
4581 (v4x4hi_UP): Likewise.
4582 (v4x4hf_UP): Likewise.
4583 (v4x4bf_UP): Likewise.
4584 (v4x2si_UP): Likewise.
4585 (v4x2sf_UP): Likewise.
4586 (v4x1di_UP): Likewise.
4587 (v4x1df_UP): Likewise.
4588 (v4x16qi_UP): Likewise.
4589 (v4x8hi_UP): Likewise.
4590 (v4x8hf_UP): Likewise.
4591 (v4x8bf_UP): Likewise.
4592 (v4x4si_UP): Likewise.
4593 (v4x4sf_UP): Likewise.
4594 (v4x2di_UP): Likewise.
4595 (v4x2df_UP): Likewise.
4596 (TYPES_GETREGP): Delete.
4597 (TYPES_SETREGP): Likewise.
4598 (TYPES_LOADSTRUCT_U): Define.
4599 (TYPES_LOADSTRUCT_P): Likewise.
4600 (TYPES_LOADSTRUCT_LANE_U): Likewise.
4601 (TYPES_LOADSTRUCT_LANE_P): Likewise.
4602 (TYPES_STORE1P): Move for consistency.
4603 (TYPES_STORESTRUCT_U): Define.
4604 (TYPES_STORESTRUCT_P): Likewise.
4605 (TYPES_STORESTRUCT_LANE_U): Likewise.
4606 (TYPES_STORESTRUCT_LANE_P): Likewise.
4607 (aarch64_simd_tuple_types): Define.
4608 (aarch64_lookup_simd_builtin_type): Handle tuple type lookup.
4609 (aarch64_init_simd_builtin_functions): Update frontend lookup
4610 for builtin functions after handling arm_neon.h pragma.
4611 (register_tuple_type): Manually set modes of single-integer
4612 tuple types. Record tuple types.
4613 * config/aarch64/aarch64-modes.def
4614 (ADV_SIMD_D_REG_STRUCT_MODES): Define D-register tuple modes.
4615 (ADV_SIMD_Q_REG_STRUCT_MODES): Define Q-register tuple modes.
4616 (SVE_MODES): Give single-vector modes priority over vector-
4618 (VECTOR_MODES_WITH_PREFIX): Set partial-vector mode order to
4619 be after all single-vector modes.
4620 * config/aarch64/aarch64-simd-builtins.def: Update builtin
4621 generator macros to reflect modifications to the backend
4623 * config/aarch64/aarch64-simd.md (aarch64_simd_ld2<mode>):
4624 Use vector-tuple mode iterator and rename to...
4625 (aarch64_simd_ld2<vstruct_elt>): This.
4626 (aarch64_simd_ld2r<mode>): Use vector-tuple mode iterator and
4628 (aarch64_simd_ld2r<vstruct_elt>): This.
4629 (aarch64_vec_load_lanesoi_lane<mode>): Use vector-tuple mode
4630 iterator and rename to...
4631 (aarch64_vec_load_lanes<mode>_lane<vstruct_elt>): This.
4632 (vec_load_lanesoi<mode>): Use vector-tuple mode iterator and
4634 (vec_load_lanes<mode><vstruct_elt>): This.
4635 (aarch64_simd_st2<mode>): Use vector-tuple mode iterator and
4637 (aarch64_simd_st2<vstruct_elt>): This.
4638 (aarch64_vec_store_lanesoi_lane<mode>): Use vector-tuple mode
4639 iterator and rename to...
4640 (aarch64_vec_store_lanes<mode>_lane<vstruct_elt>): This.
4641 (vec_store_lanesoi<mode>): Use vector-tuple mode iterator and
4643 (vec_store_lanes<mode><vstruct_elt>): This.
4644 (aarch64_simd_ld3<mode>): Use vector-tuple mode iterator and
4646 (aarch64_simd_ld3<vstruct_elt>): This.
4647 (aarch64_simd_ld3r<mode>): Use vector-tuple mode iterator and
4649 (aarch64_simd_ld3r<vstruct_elt>): This.
4650 (aarch64_vec_load_lanesci_lane<mode>): Use vector-tuple mode
4651 iterator and rename to...
4652 (vec_load_lanesci<mode>): This.
4653 (aarch64_simd_st3<mode>): Use vector-tuple mode iterator and
4655 (aarch64_simd_st3<vstruct_elt>): This.
4656 (aarch64_vec_store_lanesci_lane<mode>): Use vector-tuple mode
4657 iterator and rename to...
4658 (vec_store_lanesci<mode>): This.
4659 (aarch64_simd_ld4<mode>): Use vector-tuple mode iterator and
4661 (aarch64_simd_ld4<vstruct_elt>): This.
4662 (aarch64_simd_ld4r<mode>): Use vector-tuple mode iterator and
4664 (aarch64_simd_ld4r<vstruct_elt>): This.
4665 (aarch64_vec_load_lanesxi_lane<mode>): Use vector-tuple mode
4666 iterator and rename to...
4667 (vec_load_lanesxi<mode>): This.
4668 (aarch64_simd_st4<mode>): Use vector-tuple mode iterator and
4670 (aarch64_simd_st4<vstruct_elt>): This.
4671 (aarch64_vec_store_lanesxi_lane<mode>): Use vector-tuple mode
4672 iterator and rename to...
4673 (vec_store_lanesxi<mode>): This.
4674 (mov<mode>): Define for Neon vector-tuple modes.
4675 (aarch64_ld1x3<VALLDIF:mode>): Use vector-tuple mode iterator
4677 (aarch64_ld1x3<vstruct_elt>): This.
4678 (aarch64_ld1_x3_<mode>): Use vector-tuple mode iterator and
4680 (aarch64_ld1_x3_<vstruct_elt>): This.
4681 (aarch64_ld1x4<VALLDIF:mode>): Use vector-tuple mode iterator
4683 (aarch64_ld1x4<vstruct_elt>): This.
4684 (aarch64_ld1_x4_<mode>): Use vector-tuple mode iterator and
4686 (aarch64_ld1_x4_<vstruct_elt>): This.
4687 (aarch64_st1x2<VALLDIF:mode>): Use vector-tuple mode iterator
4689 (aarch64_st1x2<vstruct_elt>): This.
4690 (aarch64_st1_x2_<mode>): Use vector-tuple mode iterator and
4692 (aarch64_st1_x2_<vstruct_elt>): This.
4693 (aarch64_st1x3<VALLDIF:mode>): Use vector-tuple mode iterator
4695 (aarch64_st1x3<vstruct_elt>): This.
4696 (aarch64_st1_x3_<mode>): Use vector-tuple mode iterator and
4698 (aarch64_st1_x3_<vstruct_elt>): This.
4699 (aarch64_st1x4<VALLDIF:mode>): Use vector-tuple mode iterator
4701 (aarch64_st1x4<vstruct_elt>): This.
4702 (aarch64_st1_x4_<mode>): Use vector-tuple mode iterator and
4704 (aarch64_st1_x4_<vstruct_elt>): This.
4705 (*aarch64_mov<mode>): Define for vector-tuple modes.
4706 (*aarch64_be_mov<mode>): Likewise.
4707 (aarch64_ld<VSTRUCT:nregs>r<VALLDIF:mode>): Use vector-tuple
4708 mode iterator and rename to...
4709 (aarch64_ld<nregs>r<vstruct_elt>): This.
4710 (aarch64_ld2<mode>_dreg): Use vector-tuple mode iterator and
4712 (aarch64_ld2<vstruct_elt>_dreg): This.
4713 (aarch64_ld3<mode>_dreg): Use vector-tuple mode iterator and
4715 (aarch64_ld3<vstruct_elt>_dreg): This.
4716 (aarch64_ld4<mode>_dreg): Use vector-tuple mode iterator and
4718 (aarch64_ld4<vstruct_elt>_dreg): This.
4719 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Use vector-tuple mode
4720 iterator and rename to...
4721 (aarch64_ld<nregs><vstruct_elt>): Use vector-tuple mode
4722 iterator and rename to...
4723 (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Use vector-tuple mode
4724 (aarch64_ld1x2<VQ:mode>): Delete.
4725 (aarch64_ld1x2<VDC:mode>): Use vector-tuple mode iterator and
4727 (aarch64_ld1x2<vstruct_elt>): This.
4728 (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): Use vector-
4729 tuple mode iterator and rename to...
4730 (aarch64_ld<nregs>_lane<vstruct_elt>): This.
4731 (aarch64_get_dreg<VSTRUCT:mode><VDC:mode>): Delete.
4732 (aarch64_get_qreg<VSTRUCT:mode><VQ:mode>): Likewise.
4733 (aarch64_st2<mode>_dreg): Use vector-tuple mode iterator and
4735 (aarch64_st2<vstruct_elt>_dreg): This.
4736 (aarch64_st3<mode>_dreg): Use vector-tuple mode iterator and
4738 (aarch64_st3<vstruct_elt>_dreg): This.
4739 (aarch64_st4<mode>_dreg): Use vector-tuple mode iterator and
4741 (aarch64_st4<vstruct_elt>_dreg): This.
4742 (aarch64_st<VSTRUCT:nregs><VDC:mode>): Use vector-tuple mode
4743 iterator and rename to...
4744 (aarch64_st<nregs><vstruct_elt>): This.
4745 (aarch64_st<VSTRUCT:nregs><VQ:mode>): Use vector-tuple mode
4746 iterator and rename to aarch64_st<nregs><vstruct_elt>.
4747 (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): Use vector-
4748 tuple mode iterator and rename to...
4749 (aarch64_st<nregs>_lane<vstruct_elt>): This.
4750 (aarch64_set_qreg<VSTRUCT:mode><VQ:mode>): Delete.
4751 (aarch64_simd_ld1<mode>_x2): Use vector-tuple mode iterator
4753 (aarch64_simd_ld1<vstruct_elt>_x2): This.
4754 * config/aarch64/aarch64.c (aarch64_advsimd_struct_mode_p):
4755 Refactor to include new vector-tuple modes.
4756 (aarch64_classify_vector_mode): Add cases for new vector-
4758 (aarch64_advsimd_partial_struct_mode_p): Define.
4759 (aarch64_advsimd_full_struct_mode_p): Likewise.
4760 (aarch64_advsimd_vector_array_mode): Likewise.
4761 (aarch64_sve_data_mode): Change location in file.
4762 (aarch64_array_mode): Handle case of Neon vector-tuple modes.
4763 (aarch64_hard_regno_nregs): Handle case of partial Neon
4765 (aarch64_classify_address): Refactor to include handling of
4766 Neon vector-tuple modes.
4767 (aarch64_print_operand): Print "d" for "%R" for a partial
4768 Neon vector structure.
4769 (aarch64_expand_vec_perm_1): Use new vector-tuple mode.
4770 (aarch64_modes_tieable_p): Prevent tieing Neon partial struct
4771 modes with scalar machines modes larger than 8 bytes.
4772 (aarch64_can_change_mode_class): Don't allow changes between
4773 partial and full Neon vector-structure modes.
4774 * config/aarch64/arm_neon.h (vst2_lane_f16): Use updated
4775 builtin and remove boiler-plate code for opaque mode.
4776 (vst2_lane_f32): Likewise.
4777 (vst2_lane_f64): Likewise.
4778 (vst2_lane_p8): Likewise.
4779 (vst2_lane_p16): Likewise.
4780 (vst2_lane_p64): Likewise.
4781 (vst2_lane_s8): Likewise.
4782 (vst2_lane_s16): Likewise.
4783 (vst2_lane_s32): Likewise.
4784 (vst2_lane_s64): Likewise.
4785 (vst2_lane_u8): Likewise.
4786 (vst2_lane_u16): Likewise.
4787 (vst2_lane_u32): Likewise.
4788 (vst2_lane_u64): Likewise.
4789 (vst2q_lane_f16): Likewise.
4790 (vst2q_lane_f32): Likewise.
4791 (vst2q_lane_f64): Likewise.
4792 (vst2q_lane_p8): Likewise.
4793 (vst2q_lane_p16): Likewise.
4794 (vst2q_lane_p64): Likewise.
4795 (vst2q_lane_s8): Likewise.
4796 (vst2q_lane_s16): Likewise.
4797 (vst2q_lane_s32): Likewise.
4798 (vst2q_lane_s64): Likewise.
4799 (vst2q_lane_u8): Likewise.
4800 (vst2q_lane_u16): Likewise.
4801 (vst2q_lane_u32): Likewise.
4802 (vst2q_lane_u64): Likewise.
4803 (vst3_lane_f16): Likewise.
4804 (vst3_lane_f32): Likewise.
4805 (vst3_lane_f64): Likewise.
4806 (vst3_lane_p8): Likewise.
4807 (vst3_lane_p16): Likewise.
4808 (vst3_lane_p64): Likewise.
4809 (vst3_lane_s8): Likewise.
4810 (vst3_lane_s16): Likewise.
4811 (vst3_lane_s32): Likewise.
4812 (vst3_lane_s64): Likewise.
4813 (vst3_lane_u8): Likewise.
4814 (vst3_lane_u16): Likewise.
4815 (vst3_lane_u32): Likewise.
4816 (vst3_lane_u64): Likewise.
4817 (vst3q_lane_f16): Likewise.
4818 (vst3q_lane_f32): Likewise.
4819 (vst3q_lane_f64): Likewise.
4820 (vst3q_lane_p8): Likewise.
4821 (vst3q_lane_p16): Likewise.
4822 (vst3q_lane_p64): Likewise.
4823 (vst3q_lane_s8): Likewise.
4824 (vst3q_lane_s16): Likewise.
4825 (vst3q_lane_s32): Likewise.
4826 (vst3q_lane_s64): Likewise.
4827 (vst3q_lane_u8): Likewise.
4828 (vst3q_lane_u16): Likewise.
4829 (vst3q_lane_u32): Likewise.
4830 (vst3q_lane_u64): Likewise.
4831 (vst4_lane_f16): Likewise.
4832 (vst4_lane_f32): Likewise.
4833 (vst4_lane_f64): Likewise.
4834 (vst4_lane_p8): Likewise.
4835 (vst4_lane_p16): Likewise.
4836 (vst4_lane_p64): Likewise.
4837 (vst4_lane_s8): Likewise.
4838 (vst4_lane_s16): Likewise.
4839 (vst4_lane_s32): Likewise.
4840 (vst4_lane_s64): Likewise.
4841 (vst4_lane_u8): Likewise.
4842 (vst4_lane_u16): Likewise.
4843 (vst4_lane_u32): Likewise.
4844 (vst4_lane_u64): Likewise.
4845 (vst4q_lane_f16): Likewise.
4846 (vst4q_lane_f32): Likewise.
4847 (vst4q_lane_f64): Likewise.
4848 (vst4q_lane_p8): Likewise.
4849 (vst4q_lane_p16): Likewise.
4850 (vst4q_lane_p64): Likewise.
4851 (vst4q_lane_s8): Likewise.
4852 (vst4q_lane_s16): Likewise.
4853 (vst4q_lane_s32): Likewise.
4854 (vst4q_lane_s64): Likewise.
4855 (vst4q_lane_u8): Likewise.
4856 (vst4q_lane_u16): Likewise.
4857 (vst4q_lane_u32): Likewise.
4858 (vst4q_lane_u64): Likewise.
4859 (vtbl3_s8): Likewise.
4860 (vtbl3_u8): Likewise.
4861 (vtbl3_p8): Likewise.
4862 (vtbl4_s8): Likewise.
4863 (vtbl4_u8): Likewise.
4864 (vtbl4_p8): Likewise.
4865 (vld1_u8_x3): Likewise.
4866 (vld1_s8_x3): Likewise.
4867 (vld1_u16_x3): Likewise.
4868 (vld1_s16_x3): Likewise.
4869 (vld1_u32_x3): Likewise.
4870 (vld1_s32_x3): Likewise.
4871 (vld1_u64_x3): Likewise.
4872 (vld1_s64_x3): Likewise.
4873 (vld1_f16_x3): Likewise.
4874 (vld1_f32_x3): Likewise.
4875 (vld1_f64_x3): Likewise.
4876 (vld1_p8_x3): Likewise.
4877 (vld1_p16_x3): Likewise.
4878 (vld1_p64_x3): Likewise.
4879 (vld1q_u8_x3): Likewise.
4880 (vld1q_s8_x3): Likewise.
4881 (vld1q_u16_x3): Likewise.
4882 (vld1q_s16_x3): Likewise.
4883 (vld1q_u32_x3): Likewise.
4884 (vld1q_s32_x3): Likewise.
4885 (vld1q_u64_x3): Likewise.
4886 (vld1q_s64_x3): Likewise.
4887 (vld1q_f16_x3): Likewise.
4888 (vld1q_f32_x3): Likewise.
4889 (vld1q_f64_x3): Likewise.
4890 (vld1q_p8_x3): Likewise.
4891 (vld1q_p16_x3): Likewise.
4892 (vld1q_p64_x3): Likewise.
4893 (vld1_u8_x2): Likewise.
4894 (vld1_s8_x2): Likewise.
4895 (vld1_u16_x2): Likewise.
4896 (vld1_s16_x2): Likewise.
4897 (vld1_u32_x2): Likewise.
4898 (vld1_s32_x2): Likewise.
4899 (vld1_u64_x2): Likewise.
4900 (vld1_s64_x2): Likewise.
4901 (vld1_f16_x2): Likewise.
4902 (vld1_f32_x2): Likewise.
4903 (vld1_f64_x2): Likewise.
4904 (vld1_p8_x2): Likewise.
4905 (vld1_p16_x2): Likewise.
4906 (vld1_p64_x2): Likewise.
4907 (vld1q_u8_x2): Likewise.
4908 (vld1q_s8_x2): Likewise.
4909 (vld1q_u16_x2): Likewise.
4910 (vld1q_s16_x2): Likewise.
4911 (vld1q_u32_x2): Likewise.
4912 (vld1q_s32_x2): Likewise.
4913 (vld1q_u64_x2): Likewise.
4914 (vld1q_s64_x2): Likewise.
4915 (vld1q_f16_x2): Likewise.
4916 (vld1q_f32_x2): Likewise.
4917 (vld1q_f64_x2): Likewise.
4918 (vld1q_p8_x2): Likewise.
4919 (vld1q_p16_x2): Likewise.
4920 (vld1q_p64_x2): Likewise.
4921 (vld1_s8_x4): Likewise.
4922 (vld1q_s8_x4): Likewise.
4923 (vld1_s16_x4): Likewise.
4924 (vld1q_s16_x4): Likewise.
4925 (vld1_s32_x4): Likewise.
4926 (vld1q_s32_x4): Likewise.
4927 (vld1_u8_x4): Likewise.
4928 (vld1q_u8_x4): Likewise.
4929 (vld1_u16_x4): Likewise.
4930 (vld1q_u16_x4): Likewise.
4931 (vld1_u32_x4): Likewise.
4932 (vld1q_u32_x4): Likewise.
4933 (vld1_f16_x4): Likewise.
4934 (vld1q_f16_x4): Likewise.
4935 (vld1_f32_x4): Likewise.
4936 (vld1q_f32_x4): Likewise.
4937 (vld1_p8_x4): Likewise.
4938 (vld1q_p8_x4): Likewise.
4939 (vld1_p16_x4): Likewise.
4940 (vld1q_p16_x4): Likewise.
4941 (vld1_s64_x4): Likewise.
4942 (vld1_u64_x4): Likewise.
4943 (vld1_p64_x4): Likewise.
4944 (vld1q_s64_x4): Likewise.
4945 (vld1q_u64_x4): Likewise.
4946 (vld1q_p64_x4): Likewise.
4947 (vld1_f64_x4): Likewise.
4948 (vld1q_f64_x4): Likewise.
4949 (vld2_s64): Likewise.
4950 (vld2_u64): Likewise.
4951 (vld2_f64): Likewise.
4952 (vld2_s8): Likewise.
4953 (vld2_p8): Likewise.
4954 (vld2_p64): Likewise.
4955 (vld2_s16): Likewise.
4956 (vld2_p16): Likewise.
4957 (vld2_s32): Likewise.
4958 (vld2_u8): Likewise.
4959 (vld2_u16): Likewise.
4960 (vld2_u32): Likewise.
4961 (vld2_f16): Likewise.
4962 (vld2_f32): Likewise.
4963 (vld2q_s8): Likewise.
4964 (vld2q_p8): Likewise.
4965 (vld2q_s16): Likewise.
4966 (vld2q_p16): Likewise.
4967 (vld2q_p64): Likewise.
4968 (vld2q_s32): Likewise.
4969 (vld2q_s64): Likewise.
4970 (vld2q_u8): Likewise.
4971 (vld2q_u16): Likewise.
4972 (vld2q_u32): Likewise.
4973 (vld2q_u64): Likewise.
4974 (vld2q_f16): Likewise.
4975 (vld2q_f32): Likewise.
4976 (vld2q_f64): Likewise.
4977 (vld3_s64): Likewise.
4978 (vld3_u64): Likewise.
4979 (vld3_f64): Likewise.
4980 (vld3_s8): Likewise.
4981 (vld3_p8): Likewise.
4982 (vld3_s16): Likewise.
4983 (vld3_p16): Likewise.
4984 (vld3_s32): Likewise.
4985 (vld3_u8): Likewise.
4986 (vld3_u16): Likewise.
4987 (vld3_u32): Likewise.
4988 (vld3_f16): Likewise.
4989 (vld3_f32): Likewise.
4990 (vld3_p64): Likewise.
4991 (vld3q_s8): Likewise.
4992 (vld3q_p8): Likewise.
4993 (vld3q_s16): Likewise.
4994 (vld3q_p16): Likewise.
4995 (vld3q_s32): Likewise.
4996 (vld3q_s64): Likewise.
4997 (vld3q_u8): Likewise.
4998 (vld3q_u16): Likewise.
4999 (vld3q_u32): Likewise.
5000 (vld3q_u64): Likewise.
5001 (vld3q_f16): Likewise.
5002 (vld3q_f32): Likewise.
5003 (vld3q_f64): Likewise.
5004 (vld3q_p64): Likewise.
5005 (vld4_s64): Likewise.
5006 (vld4_u64): Likewise.
5007 (vld4_f64): Likewise.
5008 (vld4_s8): Likewise.
5009 (vld4_p8): Likewise.
5010 (vld4_s16): Likewise.
5011 (vld4_p16): Likewise.
5012 (vld4_s32): Likewise.
5013 (vld4_u8): Likewise.
5014 (vld4_u16): Likewise.
5015 (vld4_u32): Likewise.
5016 (vld4_f16): Likewise.
5017 (vld4_f32): Likewise.
5018 (vld4_p64): Likewise.
5019 (vld4q_s8): Likewise.
5020 (vld4q_p8): Likewise.
5021 (vld4q_s16): Likewise.
5022 (vld4q_p16): Likewise.
5023 (vld4q_s32): Likewise.
5024 (vld4q_s64): Likewise.
5025 (vld4q_u8): Likewise.
5026 (vld4q_u16): Likewise.
5027 (vld4q_u32): Likewise.
5028 (vld4q_u64): Likewise.
5029 (vld4q_f16): Likewise.
5030 (vld4q_f32): Likewise.
5031 (vld4q_f64): Likewise.
5032 (vld4q_p64): Likewise.
5033 (vld2_dup_s8): Likewise.
5034 (vld2_dup_s16): Likewise.
5035 (vld2_dup_s32): Likewise.
5036 (vld2_dup_f16): Likewise.
5037 (vld2_dup_f32): Likewise.
5038 (vld2_dup_f64): Likewise.
5039 (vld2_dup_u8): Likewise.
5040 (vld2_dup_u16): Likewise.
5041 (vld2_dup_u32): Likewise.
5042 (vld2_dup_p8): Likewise.
5043 (vld2_dup_p16): Likewise.
5044 (vld2_dup_p64): Likewise.
5045 (vld2_dup_s64): Likewise.
5046 (vld2_dup_u64): Likewise.
5047 (vld2q_dup_s8): Likewise.
5048 (vld2q_dup_p8): Likewise.
5049 (vld2q_dup_s16): Likewise.
5050 (vld2q_dup_p16): Likewise.
5051 (vld2q_dup_s32): Likewise.
5052 (vld2q_dup_s64): Likewise.
5053 (vld2q_dup_u8): Likewise.
5054 (vld2q_dup_u16): Likewise.
5055 (vld2q_dup_u32): Likewise.
5056 (vld2q_dup_u64): Likewise.
5057 (vld2q_dup_f16): Likewise.
5058 (vld2q_dup_f32): Likewise.
5059 (vld2q_dup_f64): Likewise.
5060 (vld2q_dup_p64): Likewise.
5061 (vld3_dup_s64): Likewise.
5062 (vld3_dup_u64): Likewise.
5063 (vld3_dup_f64): Likewise.
5064 (vld3_dup_s8): Likewise.
5065 (vld3_dup_p8): Likewise.
5066 (vld3_dup_s16): Likewise.
5067 (vld3_dup_p16): Likewise.
5068 (vld3_dup_s32): Likewise.
5069 (vld3_dup_u8): Likewise.
5070 (vld3_dup_u16): Likewise.
5071 (vld3_dup_u32): Likewise.
5072 (vld3_dup_f16): Likewise.
5073 (vld3_dup_f32): Likewise.
5074 (vld3_dup_p64): Likewise.
5075 (vld3q_dup_s8): Likewise.
5076 (vld3q_dup_p8): Likewise.
5077 (vld3q_dup_s16): Likewise.
5078 (vld3q_dup_p16): Likewise.
5079 (vld3q_dup_s32): Likewise.
5080 (vld3q_dup_s64): Likewise.
5081 (vld3q_dup_u8): Likewise.
5082 (vld3q_dup_u16): Likewise.
5083 (vld3q_dup_u32): Likewise.
5084 (vld3q_dup_u64): Likewise.
5085 (vld3q_dup_f16): Likewise.
5086 (vld3q_dup_f32): Likewise.
5087 (vld3q_dup_f64): Likewise.
5088 (vld3q_dup_p64): Likewise.
5089 (vld4_dup_s64): Likewise.
5090 (vld4_dup_u64): Likewise.
5091 (vld4_dup_f64): Likewise.
5092 (vld4_dup_s8): Likewise.
5093 (vld4_dup_p8): Likewise.
5094 (vld4_dup_s16): Likewise.
5095 (vld4_dup_p16): Likewise.
5096 (vld4_dup_s32): Likewise.
5097 (vld4_dup_u8): Likewise.
5098 (vld4_dup_u16): Likewise.
5099 (vld4_dup_u32): Likewise.
5100 (vld4_dup_f16): Likewise.
5101 (vld4_dup_f32): Likewise.
5102 (vld4_dup_p64): Likewise.
5103 (vld4q_dup_s8): Likewise.
5104 (vld4q_dup_p8): Likewise.
5105 (vld4q_dup_s16): Likewise.
5106 (vld4q_dup_p16): Likewise.
5107 (vld4q_dup_s32): Likewise.
5108 (vld4q_dup_s64): Likewise.
5109 (vld4q_dup_u8): Likewise.
5110 (vld4q_dup_u16): Likewise.
5111 (vld4q_dup_u32): Likewise.
5112 (vld4q_dup_u64): Likewise.
5113 (vld4q_dup_f16): Likewise.
5114 (vld4q_dup_f32): Likewise.
5115 (vld4q_dup_f64): Likewise.
5116 (vld4q_dup_p64): Likewise.
5117 (vld2_lane_u8): Likewise.
5118 (vld2_lane_u16): Likewise.
5119 (vld2_lane_u32): Likewise.
5120 (vld2_lane_u64): Likewise.
5121 (vld2_lane_s8): Likewise.
5122 (vld2_lane_s16): Likewise.
5123 (vld2_lane_s32): Likewise.
5124 (vld2_lane_s64): Likewise.
5125 (vld2_lane_f16): Likewise.
5126 (vld2_lane_f32): Likewise.
5127 (vld2_lane_f64): Likewise.
5128 (vld2_lane_p8): Likewise.
5129 (vld2_lane_p16): Likewise.
5130 (vld2_lane_p64): Likewise.
5131 (vld2q_lane_u8): Likewise.
5132 (vld2q_lane_u16): Likewise.
5133 (vld2q_lane_u32): Likewise.
5134 (vld2q_lane_u64): Likewise.
5135 (vld2q_lane_s8): Likewise.
5136 (vld2q_lane_s16): Likewise.
5137 (vld2q_lane_s32): Likewise.
5138 (vld2q_lane_s64): Likewise.
5139 (vld2q_lane_f16): Likewise.
5140 (vld2q_lane_f32): Likewise.
5141 (vld2q_lane_f64): Likewise.
5142 (vld2q_lane_p8): Likewise.
5143 (vld2q_lane_p16): Likewise.
5144 (vld2q_lane_p64): Likewise.
5145 (vld3_lane_u8): Likewise.
5146 (vld3_lane_u16): Likewise.
5147 (vld3_lane_u32): Likewise.
5148 (vld3_lane_u64): Likewise.
5149 (vld3_lane_s8): Likewise.
5150 (vld3_lane_s16): Likewise.
5151 (vld3_lane_s32): Likewise.
5152 (vld3_lane_s64): Likewise.
5153 (vld3_lane_f16): Likewise.
5154 (vld3_lane_f32): Likewise.
5155 (vld3_lane_f64): Likewise.
5156 (vld3_lane_p8): Likewise.
5157 (vld3_lane_p16): Likewise.
5158 (vld3_lane_p64): Likewise.
5159 (vld3q_lane_u8): Likewise.
5160 (vld3q_lane_u16): Likewise.
5161 (vld3q_lane_u32): Likewise.
5162 (vld3q_lane_u64): Likewise.
5163 (vld3q_lane_s8): Likewise.
5164 (vld3q_lane_s16): Likewise.
5165 (vld3q_lane_s32): Likewise.
5166 (vld3q_lane_s64): Likewise.
5167 (vld3q_lane_f16): Likewise.
5168 (vld3q_lane_f32): Likewise.
5169 (vld3q_lane_f64): Likewise.
5170 (vld3q_lane_p8): Likewise.
5171 (vld3q_lane_p16): Likewise.
5172 (vld3q_lane_p64): Likewise.
5173 (vld4_lane_u8): Likewise.
5174 (vld4_lane_u16): Likewise.
5175 (vld4_lane_u32): Likewise.
5176 (vld4_lane_u64): Likewise.
5177 (vld4_lane_s8): Likewise.
5178 (vld4_lane_s16): Likewise.
5179 (vld4_lane_s32): Likewise.
5180 (vld4_lane_s64): Likewise.
5181 (vld4_lane_f16): Likewise.
5182 (vld4_lane_f32): Likewise.
5183 (vld4_lane_f64): Likewise.
5184 (vld4_lane_p8): Likewise.
5185 (vld4_lane_p16): Likewise.
5186 (vld4_lane_p64): Likewise.
5187 (vld4q_lane_u8): Likewise.
5188 (vld4q_lane_u16): Likewise.
5189 (vld4q_lane_u32): Likewise.
5190 (vld4q_lane_u64): Likewise.
5191 (vld4q_lane_s8): Likewise.
5192 (vld4q_lane_s16): Likewise.
5193 (vld4q_lane_s32): Likewise.
5194 (vld4q_lane_s64): Likewise.
5195 (vld4q_lane_f16): Likewise.
5196 (vld4q_lane_f32): Likewise.
5197 (vld4q_lane_f64): Likewise.
5198 (vld4q_lane_p8): Likewise.
5199 (vld4q_lane_p16): Likewise.
5200 (vld4q_lane_p64): Likewise.
5201 (vqtbl2_s8): Likewise.
5202 (vqtbl2_u8): Likewise.
5203 (vqtbl2_p8): Likewise.
5204 (vqtbl2q_s8): Likewise.
5205 (vqtbl2q_u8): Likewise.
5206 (vqtbl2q_p8): Likewise.
5207 (vqtbl3_s8): Likewise.
5208 (vqtbl3_u8): Likewise.
5209 (vqtbl3_p8): Likewise.
5210 (vqtbl3q_s8): Likewise.
5211 (vqtbl3q_u8): Likewise.
5212 (vqtbl3q_p8): Likewise.
5213 (vqtbl4_s8): Likewise.
5214 (vqtbl4_u8): Likewise.
5215 (vqtbl4_p8): Likewise.
5216 (vqtbl4q_s8): Likewise.
5217 (vqtbl4q_u8): Likewise.
5218 (vqtbl4q_p8): Likewise.
5219 (vqtbx2_s8): Likewise.
5220 (vqtbx2_u8): Likewise.
5221 (vqtbx2_p8): Likewise.
5222 (vqtbx2q_s8): Likewise.
5223 (vqtbx2q_u8): Likewise.
5224 (vqtbx2q_p8): Likewise.
5225 (vqtbx3_s8): Likewise.
5226 (vqtbx3_u8): Likewise.
5227 (vqtbx3_p8): Likewise.
5228 (vqtbx3q_s8): Likewise.
5229 (vqtbx3q_u8): Likewise.
5230 (vqtbx3q_p8): Likewise.
5231 (vqtbx4_s8): Likewise.
5232 (vqtbx4_u8): Likewise.
5233 (vqtbx4_p8): Likewise.
5234 (vqtbx4q_s8): Likewise.
5235 (vqtbx4q_u8): Likewise.
5236 (vqtbx4q_p8): Likewise.
5237 (vst1_s64_x2): Likewise.
5238 (vst1_u64_x2): Likewise.
5239 (vst1_f64_x2): Likewise.
5240 (vst1_s8_x2): Likewise.
5241 (vst1_p8_x2): Likewise.
5242 (vst1_s16_x2): Likewise.
5243 (vst1_p16_x2): Likewise.
5244 (vst1_s32_x2): Likewise.
5245 (vst1_u8_x2): Likewise.
5246 (vst1_u16_x2): Likewise.
5247 (vst1_u32_x2): Likewise.
5248 (vst1_f16_x2): Likewise.
5249 (vst1_f32_x2): Likewise.
5250 (vst1_p64_x2): Likewise.
5251 (vst1q_s8_x2): Likewise.
5252 (vst1q_p8_x2): Likewise.
5253 (vst1q_s16_x2): Likewise.
5254 (vst1q_p16_x2): Likewise.
5255 (vst1q_s32_x2): Likewise.
5256 (vst1q_s64_x2): Likewise.
5257 (vst1q_u8_x2): Likewise.
5258 (vst1q_u16_x2): Likewise.
5259 (vst1q_u32_x2): Likewise.
5260 (vst1q_u64_x2): Likewise.
5261 (vst1q_f16_x2): Likewise.
5262 (vst1q_f32_x2): Likewise.
5263 (vst1q_f64_x2): Likewise.
5264 (vst1q_p64_x2): Likewise.
5265 (vst1_s64_x3): Likewise.
5266 (vst1_u64_x3): Likewise.
5267 (vst1_f64_x3): Likewise.
5268 (vst1_s8_x3): Likewise.
5269 (vst1_p8_x3): Likewise.
5270 (vst1_s16_x3): Likewise.
5271 (vst1_p16_x3): Likewise.
5272 (vst1_s32_x3): Likewise.
5273 (vst1_u8_x3): Likewise.
5274 (vst1_u16_x3): Likewise.
5275 (vst1_u32_x3): Likewise.
5276 (vst1_f16_x3): Likewise.
5277 (vst1_f32_x3): Likewise.
5278 (vst1_p64_x3): Likewise.
5279 (vst1q_s8_x3): Likewise.
5280 (vst1q_p8_x3): Likewise.
5281 (vst1q_s16_x3): Likewise.
5282 (vst1q_p16_x3): Likewise.
5283 (vst1q_s32_x3): Likewise.
5284 (vst1q_s64_x3): Likewise.
5285 (vst1q_u8_x3): Likewise.
5286 (vst1q_u16_x3): Likewise.
5287 (vst1q_u32_x3): Likewise.
5288 (vst1q_u64_x3): Likewise.
5289 (vst1q_f16_x3): Likewise.
5290 (vst1q_f32_x3): Likewise.
5291 (vst1q_f64_x3): Likewise.
5292 (vst1q_p64_x3): Likewise.
5293 (vst1_s8_x4): Likewise.
5294 (vst1q_s8_x4): Likewise.
5295 (vst1_s16_x4): Likewise.
5296 (vst1q_s16_x4): Likewise.
5297 (vst1_s32_x4): Likewise.
5298 (vst1q_s32_x4): Likewise.
5299 (vst1_u8_x4): Likewise.
5300 (vst1q_u8_x4): Likewise.
5301 (vst1_u16_x4): Likewise.
5302 (vst1q_u16_x4): Likewise.
5303 (vst1_u32_x4): Likewise.
5304 (vst1q_u32_x4): Likewise.
5305 (vst1_f16_x4): Likewise.
5306 (vst1q_f16_x4): Likewise.
5307 (vst1_f32_x4): Likewise.
5308 (vst1q_f32_x4): Likewise.
5309 (vst1_p8_x4): Likewise.
5310 (vst1q_p8_x4): Likewise.
5311 (vst1_p16_x4): Likewise.
5312 (vst1q_p16_x4): Likewise.
5313 (vst1_s64_x4): Likewise.
5314 (vst1_u64_x4): Likewise.
5315 (vst1_p64_x4): Likewise.
5316 (vst1q_s64_x4): Likewise.
5317 (vst1q_u64_x4): Likewise.
5318 (vst1q_p64_x4): Likewise.
5319 (vst1_f64_x4): Likewise.
5320 (vst1q_f64_x4): Likewise.
5321 (vst2_s64): Likewise.
5322 (vst2_u64): Likewise.
5323 (vst2_f64): Likewise.
5324 (vst2_s8): Likewise.
5325 (vst2_p8): Likewise.
5326 (vst2_s16): Likewise.
5327 (vst2_p16): Likewise.
5328 (vst2_s32): Likewise.
5329 (vst2_u8): Likewise.
5330 (vst2_u16): Likewise.
5331 (vst2_u32): Likewise.
5332 (vst2_f16): Likewise.
5333 (vst2_f32): Likewise.
5334 (vst2_p64): Likewise.
5335 (vst2q_s8): Likewise.
5336 (vst2q_p8): Likewise.
5337 (vst2q_s16): Likewise.
5338 (vst2q_p16): Likewise.
5339 (vst2q_s32): Likewise.
5340 (vst2q_s64): Likewise.
5341 (vst2q_u8): Likewise.
5342 (vst2q_u16): Likewise.
5343 (vst2q_u32): Likewise.
5344 (vst2q_u64): Likewise.
5345 (vst2q_f16): Likewise.
5346 (vst2q_f32): Likewise.
5347 (vst2q_f64): Likewise.
5348 (vst2q_p64): Likewise.
5349 (vst3_s64): Likewise.
5350 (vst3_u64): Likewise.
5351 (vst3_f64): Likewise.
5352 (vst3_s8): Likewise.
5353 (vst3_p8): Likewise.
5354 (vst3_s16): Likewise.
5355 (vst3_p16): Likewise.
5356 (vst3_s32): Likewise.
5357 (vst3_u8): Likewise.
5358 (vst3_u16): Likewise.
5359 (vst3_u32): Likewise.
5360 (vst3_f16): Likewise.
5361 (vst3_f32): Likewise.
5362 (vst3_p64): Likewise.
5363 (vst3q_s8): Likewise.
5364 (vst3q_p8): Likewise.
5365 (vst3q_s16): Likewise.
5366 (vst3q_p16): Likewise.
5367 (vst3q_s32): Likewise.
5368 (vst3q_s64): Likewise.
5369 (vst3q_u8): Likewise.
5370 (vst3q_u16): Likewise.
5371 (vst3q_u32): Likewise.
5372 (vst3q_u64): Likewise.
5373 (vst3q_f16): Likewise.
5374 (vst3q_f32): Likewise.
5375 (vst3q_f64): Likewise.
5376 (vst3q_p64): Likewise.
5377 (vst4_s64): Likewise.
5378 (vst4_u64): Likewise.
5379 (vst4_f64): Likewise.
5380 (vst4_s8): Likewise.
5381 (vst4_p8): Likewise.
5382 (vst4_s16): Likewise.
5383 (vst4_p16): Likewise.
5384 (vst4_s32): Likewise.
5385 (vst4_u8): Likewise.
5386 (vst4_u16): Likewise.
5387 (vst4_u32): Likewise.
5388 (vst4_f16): Likewise.
5389 (vst4_f32): Likewise.
5390 (vst4_p64): Likewise.
5391 (vst4q_s8): Likewise.
5392 (vst4q_p8): Likewise.
5393 (vst4q_s16): Likewise.
5394 (vst4q_p16): Likewise.
5395 (vst4q_s32): Likewise.
5396 (vst4q_s64): Likewise.
5397 (vst4q_u8): Likewise.
5398 (vst4q_u16): Likewise.
5399 (vst4q_u32): Likewise.
5400 (vst4q_u64): Likewise.
5401 (vst4q_f16): Likewise.
5402 (vst4q_f32): Likewise.
5403 (vst4q_f64): Likewise.
5404 (vst4q_p64): Likewise.
5405 (vtbx4_s8): Likewise.
5406 (vtbx4_u8): Likewise.
5407 (vtbx4_p8): Likewise.
5408 (vld1_bf16_x2): Likewise.
5409 (vld1q_bf16_x2): Likewise.
5410 (vld1_bf16_x3): Likewise.
5411 (vld1q_bf16_x3): Likewise.
5412 (vld1_bf16_x4): Likewise.
5413 (vld1q_bf16_x4): Likewise.
5414 (vld2_bf16): Likewise.
5415 (vld2q_bf16): Likewise.
5416 (vld2_dup_bf16): Likewise.
5417 (vld2q_dup_bf16): Likewise.
5418 (vld3_bf16): Likewise.
5419 (vld3q_bf16): Likewise.
5420 (vld3_dup_bf16): Likewise.
5421 (vld3q_dup_bf16): Likewise.
5422 (vld4_bf16): Likewise.
5423 (vld4q_bf16): Likewise.
5424 (vld4_dup_bf16): Likewise.
5425 (vld4q_dup_bf16): Likewise.
5426 (vst1_bf16_x2): Likewise.
5427 (vst1q_bf16_x2): Likewise.
5428 (vst1_bf16_x3): Likewise.
5429 (vst1q_bf16_x3): Likewise.
5430 (vst1_bf16_x4): Likewise.
5431 (vst1q_bf16_x4): Likewise.
5432 (vst2_bf16): Likewise.
5433 (vst2q_bf16): Likewise.
5434 (vst3_bf16): Likewise.
5435 (vst3q_bf16): Likewise.
5436 (vst4_bf16): Likewise.
5437 (vst4q_bf16): Likewise.
5438 (vld2_lane_bf16): Likewise.
5439 (vld2q_lane_bf16): Likewise.
5440 (vld3_lane_bf16): Likewise.
5441 (vld3q_lane_bf16): Likewise.
5442 (vld4_lane_bf16): Likewise.
5443 (vld4q_lane_bf16): Likewise.
5444 (vst2_lane_bf16): Likewise.
5445 (vst2q_lane_bf16): Likewise.
5446 (vst3_lane_bf16): Likewise.
5447 (vst3q_lane_bf16): Likewise.
5448 (vst4_lane_bf16): Likewise.
5449 (vst4q_lane_bf16): Likewise.
5450 * config/aarch64/geniterators.sh: Modify iterator regex to
5451 match new vector-tuple modes.
5452 * config/aarch64/iterators.md (insn_count): Extend mode
5453 attribute with vector-tuple type information.
5455 (Vendreg): Likewise.
5458 (VSTRUCT_2D): New mode iterator.
5459 (VSTRUCT_2DNX): Likewise.
5460 (VSTRUCT_2DX): Likewise.
5461 (VSTRUCT_2Q): Likewise.
5462 (VSTRUCT_2QD): Likewise.
5463 (VSTRUCT_3D): Likewise.
5464 (VSTRUCT_3DNX): Likewise.
5465 (VSTRUCT_3DX): Likewise.
5466 (VSTRUCT_3Q): Likewise.
5467 (VSTRUCT_3QD): Likewise.
5468 (VSTRUCT_4D): Likewise.
5469 (VSTRUCT_4DNX): Likewise.
5470 (VSTRUCT_4DX): Likewise.
5471 (VSTRUCT_4Q): Likewise.
5472 (VSTRUCT_4QD): Likewise.
5473 (VSTRUCT_D): Likewise.
5474 (VSTRUCT_Q): Likewise.
5475 (VSTRUCT_QD): Likewise.
5476 (VSTRUCT_ELT): New mode attribute.
5477 (vstruct_elt): Likewise.
5478 * genmodes.c (VECTOR_MODE): Add default prefix and order
5480 (VECTOR_MODE_WITH_PREFIX): Define.
5481 (make_vector_mode): Add mode prefix and order parameters.
5483 2021-11-04 Jonathan Wright <jonathan.wright@arm.com>
5485 * expmed.c (extract_bit_field_1): Ensure modes are tieable.
5487 2021-11-04 Jonathan Wright <jonathan.wright@arm.com>
5489 * expr.c (emit_group_load_1): Remove historic workaround.
5491 2021-11-04 Jonathan Wright <jonathan.wright@arm.com>
5493 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
5494 Factor out main loop to...
5495 (aarch64_init_simd_builtin_functions): This new function.
5496 (register_tuple_type): Define.
5497 (aarch64_scalar_builtin_type_p): Define.
5498 (handle_arm_neon_h): Define.
5499 * config/aarch64/aarch64-c.c (aarch64_pragma_aarch64): Handle
5500 pragma for arm_neon.h.
5501 * config/aarch64/aarch64-protos.h (aarch64_advsimd_struct_mode_p):
5503 (handle_arm_neon_h): Likewise.
5504 * config/aarch64/aarch64.c (aarch64_advsimd_struct_mode_p):
5505 Remove static modifier.
5506 * config/aarch64/arm_neon.h (target): Remove Neon vector
5507 structure type definitions.
5509 2021-11-04 Aldy Hernandez <aldyh@redhat.com>
5511 PR tree-optimization/102943
5512 * gimple-range-path.cc (path_range_query::range_on_path_entry):
5513 Prefer range_of_expr unless there are no statements in the BB.
5515 2021-11-04 Aldy Hernandez <aldyh@redhat.com>
5517 PR tree-optimization/102943
5518 * tree-ssa-threadbackward.c (back_threader::find_paths_to_names):
5519 Avoid duplicate calculation of paths.
5521 2021-11-04 Aldy Hernandez <aldyh@redhat.com>
5523 PR tree-optimization/102943
5524 * gimple-range-path.cc (path_range_query::compute_phi_relations):
5525 Only compute relations for SSA names in the import list.
5526 (path_range_query::compute_outgoing_relations): Same.
5527 * gimple-range-path.h (path_range_query::import_p): New.
5529 2021-11-04 Richard Biener <rguenther@suse.de>
5531 PR rtl-optimization/103075
5532 * simplify-rtx.c (exact_int_to_float_conversion_p): Return
5533 false for a VOIDmode operand.
5535 2021-11-04 Richard Sandiford <richard.sandiford@arm.com>
5537 * config/aarch64/aarch64.c (aarch64_vector_costs): Make member
5538 variables private and add "m_" to their names. Remove is_loop.
5539 (aarch64_record_potential_advsimd_unrolling): Replace with...
5540 (aarch64_vector_costs::record_potential_advsimd_unrolling): ...this.
5541 (aarch64_analyze_loop_vinfo): Replace with...
5542 (aarch64_vector_costs::analyze_loop_vinfo): ...this.
5543 Move initialization of (m_)vec_flags to add_stmt_cost.
5544 (aarch64_analyze_bb_vinfo): Delete.
5545 (aarch64_count_ops): Replace with...
5546 (aarch64_vector_costs::count_ops): ...this.
5547 (aarch64_vector_costs::add_stmt_cost): Set m_vec_flags,
5548 using m_costing_for_scalar to test whether we're costing
5549 scalar or vector code.
5550 (aarch64_adjust_body_cost_sve): Replace with...
5551 (aarch64_vector_costs::adjust_body_cost_sve): ...this.
5552 (aarch64_adjust_body_cost): Replace with...
5553 (aarch64_vector_costs::adjust_body_cost): ...this.
5554 (aarch64_vector_costs::finish_cost): Use m_vinfo instead of is_loop.
5556 2021-11-04 Richard Sandiford <richard.sandiford@arm.com>
5558 * target.def (targetm.vectorize.init_cost): Replace with...
5559 (targetm.vectorize.create_costs): ...this.
5560 (targetm.vectorize.add_stmt_cost): Delete.
5561 (targetm.vectorize.finish_cost): Likewise.
5562 (targetm.vectorize.destroy_cost_data): Likewise.
5563 * doc/tm.texi.in (TARGET_VECTORIZE_INIT_COST): Replace with...
5564 (TARGET_VECTORIZE_CREATE_COSTS): ...this.
5565 (TARGET_VECTORIZE_ADD_STMT_COST): Delete.
5566 (TARGET_VECTORIZE_FINISH_COST): Likewise.
5567 (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
5568 * doc/tm.texi: Regenerate.
5569 * tree-vectorizer.h (vec_info::vec_info): Remove target_cost_data
5571 (vec_info::target_cost_data): Change from a void * to a vector_costs *.
5572 (vector_costs): New class.
5573 (init_cost): Take a vec_info and return a vector_costs.
5574 (dump_stmt_cost): Remove data parameter.
5575 (add_stmt_cost): Replace vinfo and data parameters with a vector_costs.
5576 (add_stmt_costs): Likewise.
5577 (finish_cost): Replace data parameter with a vector_costs.
5578 (destroy_cost_data): Delete.
5579 * tree-vectorizer.c (dump_stmt_cost): Remove data argument and
5581 (vec_info::vec_info): Remove the target_cost_data parameter and
5582 initialize the member variable to null instead.
5583 (vec_info::~vec_info): Delete target_cost_data instead of calling
5585 (vector_costs::add_stmt_cost): New function.
5586 (vector_costs::finish_cost): Likewise.
5587 (vector_costs::record_stmt_cost): Likewise.
5588 (vector_costs::adjust_cost_for_freq): Likewise.
5589 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Update
5590 call to vec_info::vec_info.
5591 (vect_compute_single_scalar_iteration_cost): Update after above
5592 changes to costing interface.
5593 (vect_analyze_loop_operations): Likewise.
5594 (vect_estimate_min_profitable_iters): Likewise.
5595 (vect_analyze_loop_2): Initialize LOOP_VINFO_TARGET_COST_DATA
5596 at the start_over point, where it needs to be recreated after
5597 trying without slp. Update retry code accordingly.
5598 * tree-vect-slp.c (_bb_vec_info::_bb_vec_info): Update call
5599 to vec_info::vec_info.
5600 (vect_slp_analyze_operation): Update after above changes to costing
5602 (vect_bb_vectorization_profitable_p): Likewise.
5603 * targhooks.h (default_init_cost): Replace with...
5604 (default_vectorize_create_costs): ...this.
5605 (default_add_stmt_cost): Delete.
5606 (default_finish_cost, default_destroy_cost_data): Likewise.
5607 * targhooks.c (default_init_cost): Replace with...
5608 (default_vectorize_create_costs): ...this.
5609 (default_add_stmt_cost): Delete, moving logic to vector_costs instead.
5610 (default_finish_cost, default_destroy_cost_data): Delete.
5611 * config/aarch64/aarch64.c (aarch64_vector_costs): Inherit from
5612 vector_costs. Add a constructor.
5613 (aarch64_init_cost): Replace with...
5614 (aarch64_vectorize_create_costs): ...this.
5615 (aarch64_add_stmt_cost): Replace with...
5616 (aarch64_vector_costs::add_stmt_cost): ...this. Use record_stmt_cost
5617 to adjust the cost for inner loops.
5618 (aarch64_finish_cost): Replace with...
5619 (aarch64_vector_costs::finish_cost): ...this.
5620 (aarch64_destroy_cost_data): Delete.
5621 (TARGET_VECTORIZE_INIT_COST): Replace with...
5622 (TARGET_VECTORIZE_CREATE_COSTS): ...this.
5623 (TARGET_VECTORIZE_ADD_STMT_COST): Delete.
5624 (TARGET_VECTORIZE_FINISH_COST): Likewise.
5625 (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
5626 * config/i386/i386.c (ix86_vector_costs): New structure.
5627 (ix86_init_cost): Replace with...
5628 (ix86_vectorize_create_costs): ...this.
5629 (ix86_add_stmt_cost): Replace with...
5630 (ix86_vector_costs::add_stmt_cost): ...this. Use adjust_cost_for_freq
5631 to adjust the cost for inner loops.
5632 (ix86_finish_cost, ix86_destroy_cost_data): Delete.
5633 (TARGET_VECTORIZE_INIT_COST): Replace with...
5634 (TARGET_VECTORIZE_CREATE_COSTS): ...this.
5635 (TARGET_VECTORIZE_ADD_STMT_COST): Delete.
5636 (TARGET_VECTORIZE_FINISH_COST): Likewise.
5637 (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
5638 * config/rs6000/rs6000.c (TARGET_VECTORIZE_INIT_COST): Replace with...
5639 (TARGET_VECTORIZE_CREATE_COSTS): ...this.
5640 (TARGET_VECTORIZE_ADD_STMT_COST): Delete.
5641 (TARGET_VECTORIZE_FINISH_COST): Likewise.
5642 (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
5643 (rs6000_cost_data): Inherit from vector_costs.
5644 Add a constructor. Drop loop_info, cost and costing_for_scalar
5645 in favor of the corresponding vector_costs member variables.
5646 Add "m_" to the names of the remaining member variables and
5648 (rs6000_density_test): Replace with...
5649 (rs6000_cost_data::density_test): ...this.
5650 (rs6000_init_cost): Replace with...
5651 (rs6000_vectorize_create_costs): ...this.
5652 (rs6000_update_target_cost_per_stmt): Replace with...
5653 (rs6000_cost_data::update_target_cost_per_stmt): ...this.
5654 (rs6000_add_stmt_cost): Replace with...
5655 (rs6000_cost_data::add_stmt_cost): ...this. Use adjust_cost_for_freq
5656 to adjust the cost for inner loops.
5657 (rs6000_adjust_vect_cost_per_loop): Replace with...
5658 (rs6000_cost_data::adjust_vect_cost_per_loop): ...this.
5659 (rs6000_finish_cost): Replace with...
5660 (rs6000_cost_data::finish_cost): ...this. Group loop code
5661 into a single if statement and pass the loop_vinfo down to
5663 (rs6000_destroy_cost_data): Delete.
5665 2021-11-04 Aldy Hernandez <aldyh@redhat.com>
5667 PR tree-optimization/103062
5668 PR tree-optimization/103062
5669 * value-pointer-equiv.cc (ssa_equiv_stack::ssa_equiv_stack):
5670 Increase size of allocation by 1.
5671 (ssa_equiv_stack::push_replacement): Grow as needed.
5672 (ssa_equiv_stack::get_replacement): Same.
5673 (pointer_equiv_analyzer::pointer_equiv_analyzer): Same.
5674 (pointer_equiv_analyzer::~pointer_equiv_analyzer): Remove delete.
5675 (pointer_equiv_analyzer::set_global_equiv): Grow as needed.
5676 (pointer_equiv_analyzer::get_equiv): Same.
5677 (pointer_equiv_analyzer::get_equiv_expr): Remove const.
5678 * value-pointer-equiv.h (class pointer_equiv_analyzer): Remove
5679 const markers. Use auto_vec instead of tree *.
5681 2021-11-04 Richard Biener <rguenther@suse.de>
5683 * tree-ssa-sccvn.c (vn_nary_op_insert_into): Remove always
5684 true parameter and inline valueization.
5685 (vn_nary_op_lookup_1): Inline valueization from ...
5686 (vn_nary_op_compute_hash): ... here and remove it here.
5687 * tree-ssa-pre.c (phi_translate_1): Do not valueize
5688 before vn_nary_lookup_pieces.
5689 (get_representative_for): Mark created SSA representatives
5692 2021-11-04 Richard Sandiford <richard.sandiford@arm.com>
5694 * simplify-rtx.c (simplify_context::simplify_gen_vec_select): Assert
5695 that the operand has a vector mode. Use subreg_lowpart_offset
5696 to test whether an index corresponds to the low part.
5698 2021-11-04 Richard Sandiford <richard.sandiford@arm.com>
5700 * read-rtl.c: Remove dead !GENERATOR_FILE block.
5701 * read-rtl-function.c (function_reader::consolidate_singletons):
5702 Generate canonical CONST_VECTORs.
5704 2021-11-04 liuhongt <hongtao.liu@intel.com>
5707 * config/i386/predicates.md (reg_or_notreg_operand): Rename to ..
5708 (regmem_or_bitnot_regmem_operand): .. and extend to handle
5710 * config/i386/sse.md (*<avx512>_vpternlog<mode>_1): Force_reg
5711 the operands which are required to be register_operand.
5712 (*<avx512>_vpternlog<mode>_2): Ditto.
5713 (*<avx512>_vpternlog<mode>_3): Ditto.
5714 (*<avx512>_vternlog<mode>_all): Disallow embeded broadcast for
5715 vector HFmodes since it's not a real AVX512FP16 instruction.
5717 2021-11-04 liuhongt <hongtao.liu@intel.com>
5720 * match.pd: simplify (trunc)copysign((extend)a, (extend)b) to
5721 .COPYSIGN (a,b) when a and b are same type as the truncation
5722 type and has less precision than extend type.
5724 2021-11-04 Richard Biener <rguenther@suse.de>
5726 * doc/generic.texi: Update TARGET_MEM_REF and MEM_REF
5729 2021-11-04 Hongyu Wang <hongyu.wang@intel.com>
5731 * config/i386/sse.md (VI2_AVX512VNNIBW): New mode iterator.
5732 (VI1_AVX512VNNI): Likewise.
5733 (SDOT_VPDP_SUF): New mode_attr.
5736 (sdot_prod<mode>): Use VI2_AVX512F iterator, expand to
5737 vpdpwssd when VNNI targets available.
5738 (usdot_prod<mode>): New expander for vector QImode.
5740 2021-11-04 Hongyu Wang <hongyu.wang@intel.com>
5742 * config/i386/amxtileintrin.h (_tile_loadd_internal): Add
5743 parentheses to base and stride.
5744 (_tile_stream_loadd_internal): Likewise.
5745 (_tile_stored_internal): Likewise.
5747 2021-11-03 Maciej W. Rozycki <macro@embecosm.com>
5749 * config/riscv/riscv.c (riscv_class_max_nregs): Swap the
5750 arguments to `reg_class_subset_p'.
5752 2021-11-03 Joseph Myers <joseph@codesourcery.com>
5755 * fold-const.c (fold_init): New function.
5756 * fold-const.h (fold_init): New prototype.
5758 2021-11-03 Andrew MacLeod <amacleod@redhat.com>
5760 * params.opt (param_vrp2_mode): Make ranger the default for VRP2.
5762 2021-11-03 Andrew MacLeod <amacleod@redhat.com>
5764 * gimple-range-fold.cc (fold_using_range::range_of_phi): Don't import
5765 a range from edge if arg == phidef.
5767 2021-11-03 Andrew MacLeod <amacleod@redhat.com>
5769 * gimple-range-fold.cc (fold_using_range::range_of_builtin_call): Test
5770 for constant before any other processing.
5772 2021-11-03 Andrew MacLeod <amacleod@redhat.com>
5774 * flag-types.h (RANGER_DEBUG_ALL): Fix values.
5776 2021-11-03 Andrew MacLeod <amacleod@redhat.com>
5778 * gimple-range.cc (gimple_ranger::gimple_ranger): Initialize current_bb.
5779 (gimple_ranger::range_of_expr): Pick up range_on_entry when there is
5780 no explcit context and current_bb is set.
5781 (gimple_ranger::fold_stmt): New.
5782 * gimple-range.h (current_bb, fold_stmt): New.
5783 * tree-vrp.c (rvrp_folder::fold_stmt): Call ranger's fold_stmt.
5785 2021-11-03 Richard Biener <rguenther@suse.de>
5787 PR tree-optimization/102970
5788 * tree-ssa-pre.c (phi_translate_1): Drop clique and base
5789 when translating a MEM_REF over a backedge.
5791 2021-11-03 Philipp Tomsich <philipp.tomsich@vrull.eu>
5793 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New Ampere-1 core.
5794 * config/aarch64/aarch64-tune.md: Regenerate.
5795 * config/aarch64/aarch64-cost-tables.h: Add extra costs for Ampere-1.
5796 * config/aarch64/aarch64.c: Add tuning structures for Ampere-1.
5797 * doc/invoke.texi: Add documentation for Ampere-1 core.
5799 2021-11-03 Wilco Dijkstra <wdijkstr@arm.com>
5801 * config/aarch64/aarch64.md (movsi): Add alternative for GOT accesses.
5803 (ldr_got_small_<mode>): Remove pattern.
5804 (ldr_got_small_sidi): Likewise.
5805 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Keep
5806 GOT accesses as moves.
5807 (aarch64_print_operand): Correctly print got_lo12 in L specifier.
5808 (aarch64_mov_operand_p): Make GOT accesses valid move operands.
5809 * config/aarch64/constraints.md: Add new constraint Usw for GOT access.
5811 2021-11-03 Martin Liska <mliska@suse.cz>
5813 * gcov.c (read_line): Remove dead variable.
5815 2021-11-03 Martin Liska <mliska@suse.cz>
5818 * ipa-fnsummary.c (edge_predicate_pool): Rename predicate class to ipa_predicate.
5819 (ipa_fn_summary::account_size_time): Likewise.
5820 (edge_set_predicate): Likewise.
5821 (set_hint_predicate): Likewise.
5822 (add_freqcounting_predicate): Likewise.
5823 (evaluate_conditions_for_known_args): Likewise.
5824 (evaluate_properties_for_edge): Likewise.
5825 (remap_freqcounting_preds_after_dup): Likewise.
5826 (ipa_fn_summary_t::duplicate): Likewise.
5827 (set_cond_stmt_execution_predicate): Likewise.
5828 (set_switch_stmt_execution_predicate): Likewise.
5829 (compute_bb_predicates): Likewise.
5830 (will_be_nonconstant_expr_predicate): Likewise.
5831 (will_be_nonconstant_predicate): Likewise.
5832 (phi_result_unknown_predicate): Likewise.
5833 (predicate_for_phi_result): Likewise.
5834 (analyze_function_body): Likewise.
5835 (compute_fn_summary): Likewise.
5836 (summarize_calls_size_and_time): Likewise.
5837 (estimate_calls_size_and_time): Likewise.
5838 (ipa_call_context::estimate_size_and_time): Likewise.
5839 (remap_edge_summaries): Likewise.
5840 (remap_freqcounting_predicate): Likewise.
5841 (ipa_merge_fn_summary_after_inlining): Likewise.
5842 (ipa_update_overall_fn_summary): Likewise.
5843 (read_ipa_call_summary): Likewise.
5844 (inline_read_section): Likewise.
5845 * ipa-fnsummary.h (struct ipa_freqcounting_predicate): Likewise.
5846 * ipa-predicate.c (predicate::add_clause): Likewise.
5847 (ipa_predicate::add_clause): Likewise.
5848 (predicate::or_with): Likewise.
5849 (ipa_predicate::or_with): Likewise.
5850 (predicate::evaluate): Likewise.
5851 (ipa_predicate::evaluate): Likewise.
5852 (predicate::probability): Likewise.
5853 (ipa_predicate::probability): Likewise.
5854 (dump_condition): Likewise.
5855 (dump_clause): Likewise.
5856 (predicate::dump): Likewise.
5857 (ipa_predicate::dump): Likewise.
5858 (predicate::debug): Likewise.
5859 (ipa_predicate::debug): Likewise.
5860 (predicate::remap_after_duplication): Likewise.
5861 (ipa_predicate::remap_after_duplication): Likewise.
5862 (predicate::remap_after_inlining): Likewise.
5863 (ipa_predicate::remap_after_inlining): Likewise.
5864 (predicate::stream_in): Likewise.
5865 (ipa_predicate::stream_in): Likewise.
5866 (predicate::stream_out): Likewise.
5867 (ipa_predicate::stream_out): Likewise.
5868 (add_condition): Likewise.
5869 * ipa-predicate.h (class predicate): Likewise.
5870 (class ipa_predicate): Likewise.
5871 (add_condition): Likewise.
5873 2021-11-03 Richard Biener <rguenther@suse.de>
5875 * bitmap.h (bitmap_bit_p): Change the return type to bool.
5876 * bitmap.c (bitmap_bit_p): Likewise.
5877 * sbitmap.h (bitmap_bit_p): Likewise.
5878 (bitmap_set_bit): Return whether the bit changed.
5879 (bitmap_clear_bit): Likewise.
5880 * tree-ssa.c (verify_vssa): Make use of the changed state
5881 from bitmap_set_bit.
5883 2021-11-03 Richard Biener <rguenther@suse.de>
5885 PR middle-end/103033
5886 * internal-fn.c (expand_DEFERRED_INIT): Elide the
5887 native_interpret_expr path in favor of folding the
5888 VIEW_CONVERT_EXPR generated when punning the RHS.
5890 2021-11-03 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
5892 * config/s390/s390.c (s390_loop_unroll_adjust): In case of early
5895 2021-11-03 Jan Hubicka <hubicka@ucw.cz>
5898 * ipa-modref.c (callee_to_caller_flags): New function.
5899 (modref_eaf_analysis::analyze_ssa_name): Use it.
5900 (ipa_merge_modref_summary_after_inlining): Fix whitespace.
5902 2021-11-02 Jan Hubicka <hubicka@ucw.cz>
5904 * ipa-modref.c (modref_eaf_analysis::analyze_ssa_name): Revert
5907 2021-11-02 Roger Sayle <roger@nextmovesoftware.com>
5908 Uroš Bizjak <ubizjak@gmail.com>
5910 * config/i386/i386.md (<any_rotate>ti3): Provide expansion for
5911 rotations by non-constant amounts.
5913 2021-11-02 Jan Hubicka <hubicka@ucw.cz>
5915 * ipa-modref.c: Fix anonymous namespace placement.
5916 (class modref_eaf_analysis): New class.
5917 (analyze_ssa_name_flags): Turn to ...
5918 (modref_eaf_analysis::analyze_ssa_name): ... this one.
5919 (merge_call_lhs_flags): Turn to ...
5920 (modref_eaf_analysis::merge_call_lhs_flags): .. this one
5921 (modref_eaf_analysis::merge_with_ssa_name): New member function.
5922 (record_escape_points): Turn to ...
5923 (modref_eaf_analysis::record_escape_points): ... this one.
5924 (analyze_parms): Updat
5925 (ipa_merge_modref_summary_after_inlining): Move to the end of file.
5927 2021-11-02 Jan Hubicka <hubicka@ucw.cz>
5929 * gimple.c (gimple_call_static_chain_flags): New function.
5930 * gimple.h (gimple_call_static_chain_flags): Declare
5931 * ipa-modref.c (modref_summary::modref_summary): Initialize
5933 (modref_summary_lto::modref_summary_lto): Likewise.
5934 (modref_summary::useful_p): Test static_chain_flags.
5935 (modref_summary_lto::useful_p): Likewise.
5936 (struct modref_summary_lto): Add static_chain_flags.
5937 (modref_summary::dump): Dump static_chain_flags.
5938 (modref_summary_lto::dump): Likewise.
5939 (struct escape_point): Add static_cahin_arg.
5940 (analyze_ssa_name_flags): Use gimple_call_static_chain_flags.
5941 (analyze_parms): Handle static chains.
5942 (modref_summaries::duplicate): Duplicate static_chain_flags.
5943 (modref_summaries_lto::duplicate): Likewise.
5944 (modref_write): Stream static_chain_flags.
5945 (read_section): Likewise.
5946 (modref_merge_call_site_flags): Handle static_chain_flags.
5947 * ipa-modref.h (struct modref_summary): Add static_chain_flags.
5948 * tree-ssa-structalias.c (handle_rhs_call): Use
5949 gimple_static_chain_flags.
5951 2021-11-02 Richard Biener <rguenther@suse.de>
5953 PR tree-optimization/103029
5954 * tree-vect-loop-manip.c (vect_loop_versioning): Ensure
5955 the PHI nodes in the loop maintain their original operand
5958 2021-11-02 Jan Hubicka <hubicka@ucw.cz>
5960 * tree-core.h (EAF_NOT_RETURNED_DIRECTLY): New flag.
5961 (EAF_NOREAD): Renumber.
5962 * ipa-modref.c (dump_eaf_flags): Dump EAF_NOT_RETURNED_DIRECTLY.
5963 (remove_useless_eaf_flags): Handle EAF_NOT_RETURNED_DIRECTLY
5964 (deref_flags): Likewise.
5965 (modref_lattice::init): Likewise.
5966 (modref_lattice::merge): Likewise.
5967 (merge_call_lhs_flags): Likewise.
5968 (analyze_ssa_name_flags): Likewise.
5969 (modref_merge_call_site_flags): Likewise.
5970 * tree-ssa-structalias.c (handle_call_arg): Likewise.
5972 2021-11-02 Maciej W. Rozycki <macro@embecosm.com>
5974 * config/riscv/riscv.c (riscv_rtx_costs): Correct a CONST_INT_P
5975 check and remove an unused local variable with shNadd/shNadd.uw
5978 2021-11-02 Tamar Christina <tamar.christina@arm.com>
5980 PR tree-optimization/103007
5981 * tree-vect-slp-patterns.c (complex_fms_pattern::matches): Add elem
5984 2021-11-02 Richard Biener <rguenther@suse.de>
5986 PR middle-end/103038
5987 * fold-const.c (native_interpret_expr): Handle OFFSET_TYPE.
5988 (can_native_interpret_type_p): Likewise.
5989 * internal-fn.c (expand_DEFERRED_INIT): View-convert the
5990 RHS if the LHS is an SSA name.
5992 2021-11-02 Richard Sandiford <richard.sandiford@arm.com>
5994 * langhooks.h (lang_hooks_for_types::simulate_record_decl): New hook.
5995 * langhooks-def.h (lhd_simulate_record_decl): Declare.
5996 (LANG_HOOKS_SIMULATE_RECORD_DECL): Define.
5997 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Include it.
5998 * langhooks.c (lhd_simulate_record_decl): New function.
6000 2021-11-02 Jakub Jelinek <jakub@redhat.com>
6003 * config/i386/i386.c (ix86_vector_mode_supported_p): Reject vector
6004 modes with TImode inner mode if 32-bit.
6006 2021-11-02 liuhongt <hongtao.liu@intel.com>
6008 * doc/sourcebuild.texi (vect_slp_v4qi_store_unalign,
6009 vect_slp_v2hi_store_unalign, vect_slp_v4hi_store_unalign,
6010 vect_slp_v4si_store_unalign): Document efficient target.
6011 (vect_slp_v4qi_store_unalign_1, vect_slp_v8qi_store_unalign_1,
6012 vect_slp_v16qi_store_unalign_1): Ditto.
6013 (vect_slp_v2hi_store_align,vect_slp_v2qi_store_align,
6014 vect_slp_v2si_store_align, vect_slp_v4qi_store_align): Ditto.
6015 (struct_4char_block_move, struct_8char_block_move,
6016 struct_16char_block_move): Ditto.
6018 2021-11-02 Roger Sayle <roger@nextmovesoftware.com>
6019 Jakub Jelinek <jakub@redhat.com>
6022 * config/i386/i386-expand.c (ix86_expand_v1ti_to_ti,
6023 ix86_expand_ti_to_v1ti): New helper functions.
6024 (ix86_expand_v1ti_shift): Check if the amount operand is an
6025 integer constant, and expand as a TImode shift if it isn't.
6026 (ix86_expand_v1ti_rotate): Check if the amount operand is an
6027 integer constant, and expand as a TImode rotate if it isn't.
6028 (ix86_expand_v1ti_ashiftrt): New function to expand arithmetic
6029 right shifts of V1TImode quantities.
6030 * config/i386/i386-protos.h (ix86_expand_v1ti_ashift): Prototype.
6031 * config/i386/sse.md (ashlv1ti3, lshrv1ti3): Change constraints
6032 to QImode general_operand, and let the helper functions lower
6033 shifts by non-constant operands, as TImode shifts. Make
6034 conditional on TARGET_64BIT.
6035 (ashrv1ti3): New expander calling ix86_expand_v1ti_ashiftrt.
6036 (rotlv1ti3, rotrv1ti3): Change shift operand to QImode.
6037 Make conditional on TARGET_64BIT.
6039 2021-11-02 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
6041 * config/s390/s390.md ("*cc_to_int", "tabort", "*tabort_1",
6042 "*tabort_1_plus"): Remove operands non-null check.
6044 2021-11-01 Martin Liska <mliska@suse.cz>
6046 * opt-functions.awk: Add new sanity checking.
6047 * optc-gen.awk: Add new argument to integer_range_info.
6048 * params.opt: Update 2 params which have negative IntegerRange.
6050 2021-11-01 qing zhao <qing.zhao@oracle.com>
6052 * gimplify.c (gimplify_decl_expr): Do not add call to
6053 __builtin_clear_padding when a variable is a gimple register
6054 or it might not have padding.
6055 (gimplify_init_constructor): Likewise.
6057 2021-11-01 Tamar Christina <tamar.christina@arm.com>
6059 * config/arm/aarch-common-protos.h (struct vector_cost_table): Add
6060 movi, dup and extract costing fields.
6061 * config/aarch64/aarch64-cost-tables.h (qdf24xx_extra_costs,
6062 thunderx_extra_costs, thunderx2t99_extra_costs,
6063 thunderx3t110_extra_costs, tsv110_extra_costs, a64fx_extra_costs): Use
6065 * config/arm/aarch-cost-tables.h (generic_extra_costs,
6066 cortexa53_extra_costs, cortexa57_extra_costs, cortexa76_extra_costs,
6067 exynosm1_extra_costs, xgene1_extra_costs): Likewise
6068 * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>): Add r->w dup.
6069 * config/aarch64/aarch64.c (aarch64_rtx_costs): Add extra costs.
6071 2021-11-01 Tamar Christina <tamar.christina@arm.com>
6073 * cse.c (add_to_set): New.
6074 (find_sets_in_insn): Register constants in sets.
6075 (canonicalize_insn): Use auto_vec instead.
6076 (cse_insn): Try materializing using vec_dup.
6077 * rtl.h (simplify_context::simplify_gen_vec_select,
6078 simplify_gen_vec_select): New.
6079 * simplify-rtx.c (simplify_context::simplify_gen_vec_select): New.
6081 2021-11-01 David Malcolm <dmalcolm@redhat.com>
6083 * common.opt (fdiagnostics-escape-format=): New.
6084 (diagnostics_escape_format): New enum.
6085 (DIAGNOSTICS_ESCAPE_FORMAT_UNICODE): New enum value.
6086 (DIAGNOSTICS_ESCAPE_FORMAT_BYTES): Likewise.
6087 * diagnostic-format-json.cc (json_end_diagnostic): Add
6088 "escape-source" attribute.
6089 * diagnostic-show-locus.c
6090 (exploc_with_display_col::exploc_with_display_col): Replace
6091 "tabstop" param with a cpp_char_column_policy and add an "aspect"
6092 param. Use these to compute m_display_col accordingly.
6093 (struct char_display_policy): New struct.
6094 (layout::m_policy): New field.
6095 (layout::m_escape_on_output): New field.
6096 (def_policy): New function.
6097 (make_range): Update for changes to exploc_with_display_col ctor.
6098 (default_print_decoded_ch): New.
6099 (width_per_escaped_byte): New.
6100 (escape_as_bytes_width): New.
6101 (escape_as_bytes_print): New.
6102 (escape_as_unicode_width): New.
6103 (escape_as_unicode_print): New.
6105 (layout::layout): Initialize new fields. Update m_exploc ctor
6106 call for above change to ctor.
6107 (layout::maybe_add_location_range): Update for changes to
6108 exploc_with_display_col ctor.
6109 (layout::calculate_x_offset_display): Update for change to
6111 (layout::print_source_line): Pass policy
6112 to cpp_display_width_computation. Capture cpp_decoded_char when
6113 calling process_next_codepoint. Move printing of source code to
6114 m_policy.m_print_cb.
6115 (line_label::line_label): Pass in policy rather than context.
6116 (layout::print_any_labels): Update for change to line_label ctor.
6117 (get_affected_range): Pass in policy rather than context, updating
6118 calls to location_compute_display_column accordingly.
6119 (get_printed_columns): Likewise, also for cpp_display_width.
6120 (correction::correction): Pass in policy rather than tabstop.
6121 (correction::compute_display_cols): Pass m_policy rather than
6122 m_tabstop to cpp_display_width.
6123 (correction::m_tabstop): Replace with...
6124 (correction::m_policy): ...this.
6125 (line_corrections::line_corrections): Pass in policy rather than
6127 (line_corrections::m_context): Replace with...
6128 (line_corrections::m_policy): ...this.
6129 (line_corrections::add_hint): Update to use m_policy rather than
6131 (line_corrections::add_hint): Likewise.
6132 (layout::print_trailing_fixits): Likewise.
6133 (selftest::test_display_widths): New.
6134 (selftest::test_layout_x_offset_display_utf8): Update to use
6135 policy rather than tabstop.
6136 (selftest::test_one_liner_labels_utf8): Add test of escaping
6138 (selftest::test_diagnostic_show_locus_one_liner_utf8): Update to
6139 use policy rather than tabstop.
6140 (selftest::test_overlapped_fixit_printing): Likewise.
6141 (selftest::test_overlapped_fixit_printing_utf8): Likewise.
6142 (selftest::test_overlapped_fixit_printing_2): Likewise.
6143 (selftest::test_tab_expansion): Likewise.
6144 (selftest::test_escaping_bytes_1): New.
6145 (selftest::test_escaping_bytes_2): New.
6146 (selftest::diagnostic_show_locus_c_tests): Call the new tests.
6147 * diagnostic.c (diagnostic_initialize): Initialize
6148 context->escape_format.
6149 (convert_column_unit): Update to use default character width policy.
6150 (selftest::test_diagnostic_get_location_text): Likewise.
6151 * diagnostic.h (enum diagnostics_escape_format): New enum.
6152 (diagnostic_context::escape_format): New field.
6153 * doc/invoke.texi (-fdiagnostics-escape-format=): New option.
6154 (-fdiagnostics-format=): Add "escape-source" attribute to examples
6155 of JSON output, and document it.
6156 * input.c (location_compute_display_column): Pass in "policy"
6157 rather than "tabstop", passing to
6158 cpp_byte_column_to_display_column.
6159 (selftest::test_cpp_utf8): Update to use cpp_char_column_policy.
6160 * input.h (class cpp_char_column_policy): New forward decl.
6161 (location_compute_display_column): Pass in "policy" rather than
6163 * opts.c (common_handle_option): Handle
6164 OPT_fdiagnostics_escape_format_.
6165 * selftest.c (temp_source_file::temp_source_file): New ctor
6166 overload taking a size_t.
6167 * selftest.h (temp_source_file::temp_source_file): Likewise.
6169 2021-11-01 Aldy Hernandez <aldyh@redhat.com>
6171 * dbgcnt.def: Add debug counter for back_thread[12] and
6172 back_threadfull[12].
6173 * passes.def: Pass "first" argument to each back threading pass.
6174 * tree-ssa-threadbackward.c (back_threader::back_threader): Add
6176 (back_threader::debug_counter): New.
6177 (back_threader::maybe_register_path): Call debug_counter.
6179 2021-11-01 Aldy Hernandez <aldyh@redhat.com>
6181 * tree-ssa-threadbackward.c (BT_NONE): New.
6184 (back_threader::back_threader): Add flags.
6185 Move loop initialization here.
6186 (back_threader::~back_threader): New.
6187 (back_threader::find_taken_edge_switch): Change solver and ranger
6189 (back_threader::find_taken_edge_cond): Same.
6190 (back_threader::find_paths_to_names): Same.
6191 (back_threader::find_paths): Same.
6192 (back_threader::dump): Same.
6193 (try_thread_blocks): Merge into thread_blocks.
6194 (back_threader::thread_blocks): New.
6195 (do_early_thread_jumps): Merge into thread_blocks.
6196 (do_thread_jumps): Merge into thread_blocks.
6197 (back_threader::thread_through_all_blocks): Remove.
6199 2021-11-01 Andrew MacLeod <amacleod@redhat.com>
6201 PR tree-optimization/103003
6202 * value-relation.cc (dom_oracle::register_relation): If the 2
6203 ssa names are the same, don't register any relation.
6205 2021-11-01 Dan Li <ashimida@linux.alibaba.com>
6207 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Remove
6208 redundant check for calls_eh_return.
6209 * config/aarch64/aarch64.md (*do_return): Likewise.
6211 2021-11-01 Xionghu Luo <luoxhu@linux.ibm.com>
6213 * cfghooks.c (cfg_hook_duplicate_loop_to_header_edge): Rename
6214 duplicate_loop_to_header_edge to
6215 duplicate_loop_body_to_header_edge.
6216 (cfg_hook_duplicate_loop_body_to_header_edge): Likewise.
6217 * cfghooks.h (struct cfg_hooks): Likewise.
6218 (cfg_hook_duplicate_loop_body_to_header_edge): Likewise.
6219 * cfgloopmanip.c (duplicate_loop_body_to_header_edge): Likewise.
6220 (clone_loop_to_header_edge): Likewise.
6221 * cfgloopmanip.h (duplicate_loop_body_to_header_edge): Likewise.
6222 * cfgrtl.c (struct cfg_hooks): Likewise.
6223 * doc/loop.texi: Likewise.
6224 * loop-unroll.c (unroll_loop_constant_iterations): Likewise.
6225 (unroll_loop_runtime_iterations): Likewise.
6226 (unroll_loop_stupid): Likewise.
6227 (apply_opt_in_copies): Likewise.
6228 * tree-cfg.c (struct cfg_hooks): Likewise.
6229 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
6230 (try_peel_loop): Likewise.
6231 * tree-ssa-loop-manip.c (copy_phi_node_args): Likewise.
6232 (gimple_duplicate_loop_body_to_header_edge): Likewise.
6233 (tree_transform_and_unroll_loop): Likewise.
6234 * tree-ssa-loop-manip.h (gimple_duplicate_loop_body_to_header_edge):
6237 2021-11-01 Xionghu Luo <luoxhu@linux.ibm.com>
6239 * cfgloopmanip.c (loop_version): Refactor loopify to
6240 loop_version. Move condition generation after loopify.
6242 * cfgloopmanip.h (loopify): Delete.
6244 2021-10-31 Jan Hubicka <hubicka@ucw.cz>
6246 * ipa-fnsummary.c: Include tree-dfa.h.
6247 (points_to_local_or_readonly_memory_p): Return true on return
6249 * ipa-modref.c (analyze_ssa_name_flags): Fix handling of copy
6252 2021-10-30 Tobias Burnus <tobias@codesourcery.com>
6254 PR middle-end/102972
6255 * omp-low.c (omp_runtime_api_call): Use DECL_ASSEMBLER_NAME to get
6256 internal Fortran name; new permit_num_teams arg to permit
6257 omp_get_num_teams and omp_get_team_num.
6258 (scan_omp_1_stmt): Update call to it, add missing call for
6259 reverse offload, and check for strictly nested API calls in teams.
6261 2021-10-30 Jakub Jelinek <jakub@redhat.com>
6263 * gimplify.c (gimplify_omp_for): Diagnose threadprivate iterators.
6265 2021-10-29 David Malcolm <dmalcolm@redhat.com>
6267 * selftest.c (assert_streq): Add newlines when emitting non-equal
6270 2021-10-29 David Malcolm <dmalcolm@redhat.com>
6272 * Makefile.in: Fix syntax for reference to LIBDEPS in
6275 2021-10-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
6277 * doc/install.texi: Bump required minimum DejaGnu version.
6279 2021-10-29 Aldy Hernandez <aldyh@redhat.com>
6280 Andrew MacLeod <amacleod@redhat.com>
6282 * value-relation.cc (path_oracle::killing_def): Add a
6283 self-equivalence so we don't look to the root oracle.
6285 2021-10-29 Aldy Hernandez <aldyh@redhat.com>
6287 * passes.def: Replace the pass_thread_jumps before VRP* with
6288 pass_thread_jumps_full. Remove all pass_vrp_threader instances.
6289 * tree-ssa-threadbackward.c (pass_data_thread_jumps_full):
6290 Remove hyphen from "thread-full" name.
6292 2021-10-29 Andrew MacLeod <amacleod@redhat.com>
6294 PR tree-optimization/102983
6295 * gimple-range-cache.h (propagate_updated_value): Make public.
6296 * gimple-range.cc (gimple_ranger::range_of_stmt): Propagate exports
6297 when processing gcond stmts.
6299 2021-10-29 Jan Hubicka <hubicka@ucw.cz>
6301 * gimple.c (gimple_call_retslot_flags): New function.
6302 * gimple.h (gimple_call_retslot_flags): Declare.
6303 * ipa-modref.c: Include tree-cfg.h.
6304 (struct escape_entry): Turn parm_index to signed.
6305 (modref_summary_lto::modref_summary_lto): Add retslot_flags.
6306 (modref_summary::modref_summary): Initialize retslot_flags.
6307 (struct modref_summary_lto): Likewise.
6308 (modref_summary::useful_p): Check retslot_flags.
6309 (modref_summary_lto::useful_p): Likewise.
6310 (modref_summary::dump): Dump retslot_flags.
6311 (modref_summary_lto::dump): Likewise.
6312 (struct escape_point): Add hidden_args enum.
6313 (analyze_ssa_name_flags): Ignore return slot return;
6314 use gimple_call_retslot_flags.
6315 (record_escape_points): Break out from ...
6316 (analyze_parms): ... here; handle retslot_flags.
6317 (modref_summaries::duplicate): Duplicate retslot_flags.
6318 (modref_summaries_lto::duplicate): Likewise.
6319 (modref_write_escape_summary): Stream parm_index as signed.
6320 (modref_read_escape_summary): Likewise.
6321 (modref_write): Stream retslot_flags.
6322 (read_section): Likewise.
6323 (struct escape_map): Fix typo in comment.
6324 (update_escape_summary_1): Fix whitespace.
6325 (ipa_merge_modref_summary_after_inlining): Drop retslot_flags.
6326 (modref_merge_call_site_flags): Merge retslot_flags.
6327 * ipa-modref.h (struct modref_summary): Add retslot_flags.
6328 * tree-ssa-structalias.c (handle_rhs_call): Handle retslot_flags.
6330 2021-10-29 Tamar Christina <tamar.christina@arm.com>
6332 PR tree-optimization/102977
6333 * tree-vect-slp-patterns.c (vect_match_call_p): Remove.
6334 (vect_detect_pair_op): Add crosslane check.
6335 (vect_match_call_complex_mla): Remove.
6336 (class complex_mul_pattern): Update comment.
6337 (complex_mul_pattern::matches): Update detection.
6338 (class complex_fma_pattern): Remove.
6339 (complex_fma_pattern::matches): Remove.
6340 (complex_fma_pattern::recognize): Remove.
6341 (complex_fma_pattern::build): Remove.
6342 (class complex_fms_pattern): Update comment.
6343 (complex_fms_pattern::matches): Remove.
6344 (complex_operations_pattern::recognize): Remove complex_fma_pattern
6346 2021-10-29 Jakub Jelinek <jakub@redhat.com>
6348 * gimple-fold.c (gimple_fold_builtin_memset): Copy over location from
6351 2021-10-29 Xionghu Luo <luoxhu@linux.ibm.com>
6354 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Add
6355 patterns match and emit for VSX xxpermdi.
6357 2021-10-29 liuhongt <hongtao.liu@intel.com>
6360 * config/i386/i386-builtin-types.def (V8HF_FTYPE_V8HF): New
6362 (V16HF_FTYPE_V16HF): Ditto.
6363 (V32HF_FTYPE_V32HF): Ditto.
6364 (V8HF_FTYPE_V8HF_ROUND): Ditto.
6365 (V16HF_FTYPE_V16HF_ROUND): Ditto.
6366 (V32HF_FTYPE_V32HF_ROUND): Ditto.
6367 * config/i386/i386-builtin.def ( IX86_BUILTIN_FLOORPH,
6368 IX86_BUILTIN_CEILPH, IX86_BUILTIN_TRUNCPH,
6369 IX86_BUILTIN_FLOORPH256, IX86_BUILTIN_CEILPH256,
6370 IX86_BUILTIN_TRUNCPH256, IX86_BUILTIN_FLOORPH512,
6371 IX86_BUILTIN_CEILPH512, IX86_BUILTIN_TRUNCPH512): New builtin.
6372 * config/i386/i386-builtins.c
6373 (ix86_builtin_vectorized_function): Enable vectorization for
6374 HFmode FLOOR/CEIL/TRUNC operation.
6375 * config/i386/i386-expand.c (ix86_expand_args_builtin): Handle
6377 * config/i386/sse.md (rint<mode>2, nearbyint<mode>2): Extend
6380 2021-10-28 Aldy Hernandez <aldyh@redhat.com>
6381 Andrew MacLeod <amacleod@redhat.com>
6383 * value-relation.cc (path_oracle::killing_def): Walk the
6384 equivalency list and remove SSA from any equivalencies.
6386 2021-10-28 Stafford Horne <shorne@gmail.com>
6388 * config/or1k/or1k.h (PROFILE_HOOK): Add return address argument
6391 2021-10-28 Jakub Jelinek <jakub@redhat.com>
6393 PR tree-optimization/102951
6394 * fold-const.h (address_compare): Declare.
6395 * fold-const.c (address_compare): New function.
6396 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Use
6397 address_compare helper.
6398 (minmax cmp (convert1?@2 addr@0) (convert2?@3 addr@1)): New
6401 2021-10-28 Andrew MacLeod <amacleod@redhat.com>
6403 * vr-values.c (simplify_using_ranges::fold_cond): Change fold message.
6405 2021-10-28 Andrew MacLeod <amacleod@redhat.com>
6407 PR tree-optimization/102940
6408 * tree-vrp.c (execute_ranger_vrp): Reset scev.
6410 2021-10-28 Richard Purdie <richard.purdie@linuxfoundation.org>
6412 * config/nios2/linux.h (MUSL_DYNAMIC_LINKER): Add musl linker
6414 2021-10-28 Richard Purdie <richard.purdie@linuxfoundation.org>
6416 * configure: Regenerate.
6417 * configure.ac: Use CPPFLAGS_FOR_BUILD for GMPINC
6419 2021-10-28 Eric Botcazou <ebotcazou@adacore.com>
6421 * doc/invoke.texi (%X): Remove obsolete reference to -Wl.
6423 2021-10-28 Richard Biener <rguenther@suse.de>
6426 * fold-const.c (fold_convert_const): Avoid int to float
6427 constant folding with -frounding-math and inexact result.
6428 * simplify-rtx.c (simplify_const_unary_operation): Likewise
6429 for both float and unsigned_float.
6431 2021-10-28 Aldy Hernandez <aldyh@redhat.com>
6433 * tree-ssa-threadbackward.c
6434 (back_threader::find_taken_edge_switch): Use find_case_label_range
6435 instead of find_taken_edge.
6437 2021-10-28 Aldy Hernandez <aldyh@redhat.com>
6439 * tree-ssa-threadbackward.c (class back_threader_registry):
6440 Inherit from back_jt_path_registry.
6441 (back_threader_registry::thread_through_all_blocks): Remove.
6442 (back_threader_registry::register_path): Remove
6443 m_lowlevel_registry prefix.
6445 2021-10-28 Richard Biener <rguenther@suse.de>
6448 * fold-const.c (fold_convert_const_real_from_real): Honor
6449 -frounding-math if the conversion is not exact.
6450 * simplify-rtx.c (simplify_const_unary_operation): Do not
6451 simplify FLOAT_TRUNCATE with sign dependent rounding.
6453 2021-10-28 Richard Biener <rguenther@suse.de>
6455 PR tree-optimization/102949
6456 * tree-vect-stmts.c (ensure_base_align): Look at the
6457 dr_info of a group leader and assert we are looking at
6458 one with analyzed alignment.
6460 2021-10-28 Kewen Lin <linkw@linux.ibm.com>
6463 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Consider
6464 V1T1 mode for unaligned load and store.
6466 2021-10-28 Kito Cheng <kito.cheng@sifive.com>
6468 * config/riscv/riscv.md (zero_extendsidi2_internal): Allow ZBB
6471 2021-10-28 Kito Cheng <kito.cheng@sifive.com>
6473 * config/riscv/arch-canonicalize (CANONICAL_ORDER): Add `i` to
6476 2021-10-28 Alexandre Oliva <oliva@adacore.com>
6478 * common.opt (fharden-compares): New.
6479 (fharden-conditional-branches): New.
6480 * doc/invoke.texi: Document new options.
6481 * gimple-harden-conditionals.cc: New.
6482 * Makefile.in (OBJS): Build it.
6483 * passes.def: Add new passes.
6484 * tree-pass.h (make_pass_harden_compares): Declare.
6485 (make_pass_harden_conditional_branches): Declare.
6487 2021-10-28 Xionghu Luo <luoxhu@linux.ibm.com>
6490 * config/rs6000/altivec.md: Add vsx register constraints.
6491 * config/rs6000/vsx.md (vsx_xxsel<mode>): Delete.
6492 (vsx_xxsel<mode>2): Likewise.
6493 (vsx_xxsel<mode>3): Likewise.
6494 (vsx_xxsel<mode>4): Likewise.
6496 2021-10-28 Xionghu Luo <luoxhu@linux.ibm.com>
6499 * config/rs6000/altivec.md (*altivec_vsel<mode>): Change to ...
6500 (altivec_vsel<mode>): ... this and update define.
6501 (*altivec_vsel<mode>_uns): Delete.
6502 (altivec_vsel<mode>2): New define_insn.
6503 (altivec_vsel<mode>3): Likewise.
6504 (altivec_vsel<mode>4): Likewise.
6505 * config/rs6000/rs6000-call.c (altivec_expand_vec_sel_builtin): New.
6506 (altivec_expand_builtin): Call altivec_expand_vec_sel_builtin to expand
6508 * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Use bit-wise
6509 selection instead of per element.
6510 * config/rs6000/vector.md:
6511 * config/rs6000/vsx.md (*vsx_xxsel<mode>): Change to ...
6512 (vsx_xxsel<mode>): ... this and update define.
6513 (*vsx_xxsel<mode>_uns): Delete.
6514 (vsx_xxsel<mode>2): New define_insn.
6515 (vsx_xxsel<mode>3): Likewise.
6516 (vsx_xxsel<mode>4): Likewise.
6518 2021-10-28 Hongyu Wang <hongyu.wang@intel.com>
6520 * config/i386/i386.c (use_rsqrt_p): Add mode parameter, enable
6521 HFmode rsqrt without TARGET_SSE_MATH.
6522 (ix86_optab_supported_p): Refactor rint, adjust floor, ceil,
6523 btrunc condition to be restricted by -ftrapping-math, adjust
6524 use_rsqrt_p function call.
6525 * config/i386/i386.md (rcphf2): New define_insn.
6526 (rsqrthf2): Likewise.
6527 * config/i386/sse.md (div<mode>3): Change VF2H to VF2.
6528 (div<mode>3): New expander for HF mode.
6529 (rsqrt<mode>2): Likewise.
6530 (*avx512fp16_vmrcpv8hf2): New define_insn for rpad pass.
6531 (*avx512fp16_vmrsqrtv8hf2): Likewise.
6533 2021-10-27 Saagar Jha <saagar@saagarjha.com>
6535 * config.gcc: Adjust for Darwin21.
6536 * config/darwin-c.c (macosx_version_as_macro): Likewise.
6537 * config/darwin-driver.c (validate_macosx_version_min):
6539 (darwin_find_version_from_kernel): Likewise.
6541 2021-10-27 Aldy Hernandez <aldyh@redhat.com>
6543 * gimple-range-path.cc
6544 (path_range_query::range_defined_in_block): Call killing_def.
6546 2021-10-27 Aldy Hernandez <aldyh@redhat.com>
6548 * gimple-range-fold.cc (fold_using_range::range_of_range_op): Dump
6549 operands as well as relation.
6550 * gimple-range-path.cc
6551 (path_range_query::compute_ranges_in_block): Compute PHI relations
6552 first. Compute outgoing relations at the end.
6553 (path_range_query::compute_ranges): Remove call to compute_relations.
6554 (path_range_query::compute_relations): Remove.
6555 (path_range_query::maybe_register_phi_relation): New.
6556 (path_range_query::compute_phi_relations): Abstract out
6557 registering one PHI relation to...
6558 (path_range_query::compute_outgoing_relations): ...here.
6559 * gimple-range-path.h (class path_range_query): Remove
6561 Add maybe_register_phi_relation.
6563 2021-10-27 Aldy Hernandez <aldyh@redhat.com>
6564 Andrew MacLeod <amacleod@redhat.com>
6566 * value-relation.cc (path_oracle::killing_def): Kill second
6569 2021-10-27 Martin Jambor <mjambor@suse.cz>
6571 * ipa-cp.c (good_cloning_opportunity_p): Decide whether to use
6572 profile feedback depending on their local availability.
6574 2021-10-27 Martin Jambor <mjambor@suse.cz>
6576 * params.opt (param_ipa_cp_profile_count_base): New parameter.
6577 * doc/invoke.texi (Optimize Options): Add entry for
6578 ipa-cp-profile-count-base.
6579 * ipa-cp.c (max_count): Replace with base_count, replace all
6580 occurrences too, unless otherwise stated.
6581 (ipcp_cloning_candidate_p): identify mostly-directly called
6582 functions based on their counts, not max_count.
6583 (compare_edge_profile_counts): New function.
6584 (ipcp_propagate_stage): Instead of setting max_count, find the
6585 appropriate edge count in a sorted vector of counts of eligible
6586 edges and make it the base_count.
6588 2021-10-27 Martin Jambor <mjambor@suse.cz>
6590 * ipa-cp.c (struct caller_statistics): New fields rec_count_sum,
6591 n_nonrec_calls and itself, document all fields.
6592 (init_caller_stats): Initialize the above new fields.
6593 (gather_caller_stats): Gather self-recursive counts and calls number.
6594 (get_info_about_necessary_edges): Gather counts of self-recursive and
6595 other edges bringing in the requested value separately.
6596 (dump_profile_updates): Rework to dump info about a single node only.
6597 (lenient_count_portion_handling): New function.
6598 (struct gather_other_count_struct): New type.
6599 (gather_count_of_non_rec_edges): New function.
6600 (struct desc_incoming_count_struct): New type.
6601 (analyze_clone_icoming_counts): New function.
6602 (adjust_clone_incoming_counts): Likewise.
6603 (update_counts_for_self_gen_clones): Likewise.
6604 (update_profiling_info): Rewritten.
6605 (update_specialized_profile): Adjust call to dump_profile_updates.
6606 (create_specialized_node): Do not update profiling info.
6607 (decide_about_value): New parameter self_gen_clones, either push new
6608 clones into it or updat their profile counts. For self-recursively
6609 generated values, use a portion of the node count instead of count
6610 from self-recursive edges to estimate goodness.
6611 (decide_whether_version_node): Gather clones for self-generated values
6612 in a new vector, update their profiles at once at the end.
6614 2021-10-27 Richard Biener <rguenther@suse.de>
6616 * tree-vectorizer.c (vect_transform_loops): New function,
6618 (try_vectorize_loop_1): ... here. Simplify as epilogues
6619 are now fully handled in the split part.
6621 2021-10-27 Jakub Jelinek <jakub@redhat.com>
6623 * omp-expand.c (expand_omp_for_init_counts): Handle non-rectangular
6624 iterators with pointer types.
6625 (expand_omp_for_init_vars, extract_omp_for_update_vars): Likewise.
6627 2021-10-26 Martin Sebor <msebor@redhat.com>
6629 PR tree-optimization/102238
6630 PR tree-optimization/102919
6631 * gimple-ssa-sprintf.c (get_string_length): Add an argument.
6632 (array_elt_at_offset): Move to pointer-query.
6633 (set_aggregate_size_and_offset): New function.
6634 (field_at_offset): Move to pointer-query.
6635 (get_origin_and_offset): Rename...
6636 (get_origin_and_offset_r): this. Add an argument. Make aggregate
6637 handling more robust.
6638 (get_origin_and_offset): New.
6639 (alias_offset): Add an argument.
6640 (format_string): Use subobject size determined by get_origin_and_offset.
6641 * pointer-query.cc (field_at_offset): Move from gimple-ssa-sprintf.c.
6642 Improve/correct handling of aggregates.
6643 (array_elt_at_offset): Same.
6644 * pointer-query.h (field_at_offset): Declare.
6645 (array_elt_at_offset): Declare.
6647 2021-10-26 Martin Sebor <msebor@redhat.com>
6649 * builtins.c (check_strncat_sizes): Pass access_data ctor additional
6651 (expand_builtin_memcmp): Move code to gimple-ssa-warn-access.cc.
6652 (expand_builtin_fork_or_exec): Same.
6653 * gimple-array-bounds.cc (array_bounds_checker::check_mem_ref): Pass
6654 compute_objsize additional arguments.
6655 (inbounds_memaccess_p): Same.
6656 (array_bounds_checker::check_array_bounds): Add an assert. Stash
6657 statement in a member.
6658 (check_array_bounds_dom_walker::before_dom_children): Same.
6659 * gimple-array-bounds.h (array_bounds_checker::m_stmt): New member.
6660 * gimple-ssa-sprintf.c (get_destination_size): Add an argument.
6661 (handle_printf_call): Pass a new argument.
6662 * gimple-ssa-warn-access.cc (get_size_range): Add an argument.
6663 (check_access): Add an argument and pass it along to callees.
6664 (check_read_access): Make a member function.
6665 (pass_waccess::check_strcat): Pass access_data ctor additional
6667 (pass_waccess::check_strncat): Same.
6668 (pass_waccess::check_stxcpy): Same.
6669 (pass_waccess::check_stxncpy): Same.
6670 (pass_waccess::check_strncmp): Same.
6671 (pass_waccess::check_read_access): Same.
6672 (pass_waccess::check_builtin): Same.
6673 (pass_waccess::maybe_check_access_sizes): Same.
6674 (pass_waccess::maybe_check_dealloc_call): Same.
6675 * gimple-ssa-warn-access.h (check_read_access): Declare a new
6677 * pointer-query.cc (compute_objsize_r): Add an argument.
6678 (gimple_call_return_array): Same.
6679 (gimple_call_alloc_size): Same.
6680 (access_ref::access_ref): Same.
6681 (access_ref::get_ref): Same.
6682 (pointer_query::get_ref): Same.
6683 (handle_min_max_size): Pass an arguments to callees.
6684 (handle_array_ref): Add an argument.
6685 (handle_mem_ref): Same.
6686 (compute_objsize): Same.
6687 * pointer-query.h (struct access_ref): Adjust signatures.
6688 (struct access_data): Same.
6689 (gimple_call_alloc_size): Add an argument.
6690 (gimple_parm_array_size): Same.
6691 (compute_objsize): Same.
6692 * tree-ssa-strlen.c (strlen_pass::adjust_last_stmt): Pass an additional
6693 argument to compute_objsize.
6694 (strlen_pass::maybe_warn_overflow): Same.
6695 (maybe_diag_stxncpy_trunc): Same.
6697 2021-10-26 Martin Sebor <msebor@redhat.com>
6699 PR middle-end/102453
6700 * gimple-ssa-warn-access.cc (pass_waccess::check_atomic_builtin): New.
6701 (pass_waccess::check_atomic_builtin): Call it.
6703 2021-10-26 Vladimir N. Makarov <vmakarov@redhat.com>
6705 PR rtl-optimization/102842
6706 * lra-constraints.c (match_reload): Ignore out in checking values
6708 (curr_insn_transform): Collect outputs before doing reloads of operands.
6710 2021-10-26 Paul A. Clarke <pc@us.ibm.com>
6713 * config/rs6000/x86intrin.h: Move some included headers to new
6714 headers. Include new immintrin.h instead of those headers.
6715 * config/rs6000/immintrin.h: New.
6716 * config/rs6000/x86gprintrin.h: New.
6717 * config.gcc (powerpc*-*-*): Add new headers to extra_headers.
6719 2021-10-26 Richard Biener <rguenther@suse.de>
6721 * tree-vectorizer.h (vect_create_addr_base_for_vector_ref):
6722 Remove byte_offset parameter.
6723 (vect_create_data_ref_ptr): Likewise.
6724 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
6726 (vect_create_data_ref_ptr): Likewise.
6727 * tree-vect-stmts.c (vectorizable_store): Adjust.
6728 (vectorizable_load): Likewise.
6730 2021-10-26 Richard Biener <rguenther@suse.de>
6732 PR tree-optimization/96109
6733 * tree-vectorizer.h (dr_misalignment): Add optional offset
6735 * tree-vect-data-refs.c (dr_misalignment): Likewise. Remove
6736 offset applied for negative stride accesses.
6737 (vect_enhance_data_refs_alignment): Compute negative stride
6738 access offset and pass it to dr_misalignment.
6739 * tree-vect-stmts.c (get_negative_load_store_type): Pass
6740 negative offset to dr_misalignment.
6741 (get_group_load_store_type): Likewise.
6742 (get_load_store_type): Likewise.
6743 (vectorizable_store): Remove asserts about alignment.
6744 (vectorizable_load): Likewise.
6746 2021-10-26 Kewen Lin <linkw@linux.ibm.com>
6748 PR tree-optimization/102897
6749 * tree-ssa-forwprop.c (simplify_permutation): Remove a wrong assertion.
6751 2021-10-26 Richard Biener <rguenther@suse.de>
6753 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
6754 Take offset in bytes.
6755 (vect_create_data_ref_ptr): Likewise.
6756 * tree-vect-loop-manip.c (get_misalign_in_elems): Multiply
6757 offset by element size.
6758 (vect_create_cond_for_align_checks): Likewise.
6759 * tree-vect-stmts.c (get_negative_load_store_type): Likewise.
6760 (vectorizable_load): Remove duplicate leftover from merge
6763 2021-10-26 Roger Sayle <roger@nextmovesoftware.com>
6765 * config/i386/i386-expand.c (ix86_expand_v1ti_shift): New helper
6766 function to expand V1TI mode logical shifts by integer constants.
6767 (ix86_expand_v1ti_rotate): New helper function to expand V1TI
6768 mode rotations by integer constants.
6769 * config/i386/i386-protos.h (ix86_expand_v1ti_shift,
6770 ix86_expand_v1ti_rotate): Prototype new functions here.
6771 * config/i386/sse.md (ashlv1ti3, lshrv1ti3, rotlv1ti3, rotrv1ti3):
6772 New TARGET_SSE2 expanders to implement V1TI shifts and rotations.
6774 2021-10-26 Aldy Hernandez <aldyh@redhat.com>
6776 * tree-ssa-threadbackward.c (back_threader::maybe_register_path):
6777 Avoid threading circular paths.
6779 2021-10-26 Aldy Hernandez <aldyh@redhat.com>
6781 * tree-ssa-threadbackward.c (back_threader::resolve_phi):
6782 Attempt to resolve all incoming paths to a PHI.
6783 (back_threader::resolve_def): Always return true for PHIs.
6785 2021-10-26 Aldy Hernandez <aldyh@redhat.com>
6787 * tree-ssa-threadbackward.c (back_threader::find_paths_to_names):
6788 Always try to resolve path without looking back.
6789 * tree-ssa-threadupdate.c (dump_jump_thread): Indidicate whether
6790 edge is a back edge.
6792 2021-10-26 Kewen Lin <linkw@linux.ibm.com>
6794 PR tree-optimization/102789
6795 * tree-vect-loop-manip.c (vect_update_inits_of_drs): Do not
6796 update inits of simd_lane_access.
6798 2021-10-25 Andrew MacLeod <amacleod@redhat.com>
6800 * tree-vrp.c (vrp_simplify_cond_using_ranges): Add return type and
6801 move to vr-values.c.
6802 (simplify_casted_conds): Move to vrp_folder class.
6803 (execute_vrp): Call via vrp_folder now.
6804 * vr-values.c (simplify_cond_using_ranges_1): Call simplify_casted_cond.
6805 (simplify_using_ranges::simplify_casted_cond): Relocate from tree-vrp.c.
6806 * vr-values.h (simplify_casted_cond): Add prototype.
6808 2021-10-25 Andrew MacLeod <amacleod@redhat.com>
6810 * tree-vrp.c (rvrp_folder::fold_stmt): If simplification fails, try
6813 2021-10-25 Paul A. Clarke <pc@us.ibm.com>
6815 * config/rs6000/smmintrin.h (_mm_testz_si128): Add "extern" to
6817 (_mm_testc_si128): Likewise.
6818 (_mm_testnzc_si128): Likewise.
6819 (_mm_blend_ps): Likewise.
6820 (_mm_blendv_ps): Likewise.
6821 (_mm_blend_pd): Likewise.
6822 (_mm_blendv_pd): Likewise.
6823 (_mm_ceil_pd): Likewise.
6824 (_mm_ceil_sd): Likewise.
6825 (_mm_ceil_ps): Likewise.
6826 (_mm_ceil_ss): Likewise.
6827 (_mm_floor_pd): Likewise.
6828 (_mm_floor_sd): Likewise.
6829 (_mm_floor_ps): Likewise.
6830 (_mm_floor_ss): Likewise.
6831 (_mm_minpos_epu16): Likewise.
6832 (_mm_mul_epi32): Likewise.
6833 (_mm_cvtepi8_epi16): Likewise.
6834 (_mm_packus_epi32): Likewise.
6835 (_mm_cmpgt_epi64): Likewise.
6837 2021-10-25 Roger Sayle <roger@nextmovesoftware.com>
6839 * simplify-rtx.c (simplify_binary_operation_1) [SS_ASHIFT]: Simplify
6840 shifts of the mode's smin_value and smax_value when the bit count
6841 operand doesn't have side-effects.
6842 [US_ASHIFT]: Likewise, simplify shifts of the mode's umax_value
6843 when the bit count operand doesn't have side-effects.
6844 (simplify_const_binary_operation) [SS_ASHIFT, US_ASHIFT]: Perform
6845 compile-time evaluation of saturating left shifts with constant
6848 2021-10-25 Andrew MacLeod <amacleod@redhat.com>
6850 * gimple-range.cc (gimple_ranger::export_global_ranges): Remove check
6853 2021-10-25 Andrew MacLeod <amacleod@redhat.com>
6855 * flag-types.h (enum ranger_debug): Adjust values.
6856 * params.opt (ranger_debug): Ditto.
6858 2021-10-25 Martin Jambor <mjambor@suse.cz>
6860 PR tree-optimization/102886
6861 * tree-sra.c (totally_scalarize_subtree): Fix the out of
6864 2021-10-25 Andrew Pinski <apinski@marvell.com>
6866 * tree-ssa-dce.c (simple_dce_from_worklist):
6867 Check stmt_unremovable_because_of_non_call_eh_p also
6868 before removing the statement.
6870 2021-10-25 Richard Biener <rguenther@suse.de>
6872 PR tree-optimization/102905
6873 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
6874 Use vect_supportable_dr_alignment again to determine whether
6875 an access is supported when not aligned.
6877 2021-10-25 Kito Cheng <kito.cheng@sifive.com>
6879 * config/riscv/riscv.c (riscv_rtx_costs): Handle cost model
6882 2021-10-25 Jim Wilson <jimw@sifive.com>
6883 Kito Cheng <kito.cheng@sifive.com>
6884 Jia-Wei Chen <jiawei@iscas.ac.cn>
6885 Shi-Hua Liao <shihua@iscas.ac.cn>
6887 * config/riscv/bitmanip.md (shiftm1): New.
6888 (*bset<mode>): Ditto.
6889 (*bset<mode>_mask): Ditto.
6890 (*bset<mode>_1): Ditto.
6891 (*bset<mode>_1_mask): Ditto.
6892 (*bseti<mode>): Ditto.
6893 (*bclr<mode>): Ditto.
6894 (*bclri<mode>): Ditto.
6895 (*binv<mode>): Ditto.
6896 (*binvi<mode>): Ditto.
6897 (*bext<mode>): Ditto.
6899 * config/riscv/predicates.md (splittable_const_int_operand):
6901 (single_bit_mask_operand): New.
6902 (not_single_bit_mask_operand): Ditto.
6903 (const31_operand): Ditto.
6904 (const63_operand): Ditto.
6905 * config/riscv/riscv.c (riscv_build_integer_1): Handle bseti.
6906 (riscv_output_move): Ditto.
6907 (riscv_print_operand): Handle new operand type: T and S.
6908 * config/riscv/riscv.h (SINGLE_BIT_MASK_OPERAND): New.
6910 2021-10-25 Jim Wilson <jimw@sifive.com>
6912 * config/riscv/riscv.c (riscv_build_integer_1): Build integer
6915 2021-10-25 Kito Cheng <kito.cheng@sifive.com>
6917 * config/riscv/riscv.c (riscv_extend_cost): Handle cost model
6919 (riscv_rtx_costs): Ditto.
6921 2021-10-25 Jim Wilson <jimw@sifive.com>
6922 Kito Cheng <kito.cheng@sifive.com>
6923 Jia-Wei Chen <jiawei@iscas.ac.cn>
6925 * config/riscv/bitmanip.md (bitmanip_bitwise): New.
6926 (bitmanip_minmax): New.
6927 (clz_ctz_pcnt): New.
6928 (bitmanip_optab): New.
6929 (bitmanip_insn): New.
6930 (*<optab>_not<mode>): New.
6931 (*xor_not<mode>): New.
6932 (<bitmanip_optab>si2): New.
6933 (*<bitmanip_optab>disi2): New.
6934 (<bitmanip_optab>di2): New.
6935 (*zero_extendhi<GPR:mode>2_bitmanip): New.
6936 (*extend<SHORT:mode><SUPERQI:mode>2_zbb): New.
6937 (*zero_extendhi<GPR:mode>2_zbb): New.
6940 (rotrsi3_sext): New.
6943 (rotlsi3_sext): New.
6944 (bswap<mode>2): New.
6945 (<bitmanip_optab><mode>3): New.
6946 * config/riscv/riscv.md (type): Add rotate.
6947 (zero_extendhi<GPR:mode>2): Change to define_expand pattern.
6948 (*zero_extendhi<GPR:mode>2): New.
6949 (extend<SHORT:mode><SUPERQI:mode>2): Change to define_expand pattern.
6950 (*extend<SHORT:mode><SUPERQI:mode>2): New.
6952 2021-10-25 Kito Cheng <kito.cheng@sifive.com>
6954 * config/riscv/riscv.c (riscv_extend_cost): Handle cost model
6956 (riscv_rtx_costs): Ditto.
6958 2021-10-25 Jim Wilson <jimw@sifive.com>
6959 Kito Cheng <kito.cheng@sifive.com>
6960 Jia-Wei Chen <jiawei@iscas.ac.cn>
6962 * config/riscv/bitmanip.md (*zero_extendsidi2_bitmanip): New.
6967 (riscv_rtx_costs): Ditto.
6968 * config/riscv/riscv.md: Include bitmanip.md
6969 (type): Add bitmanip bype.
6970 (zero_extendsidi2): Change to define_expand pattern.
6971 (*zero_extendsidi2_internal): New.
6972 (zero_extendsidi2_shifted): Disable for ZBA.
6974 2021-10-25 Kito Cheng <kito.cheng@sifive.com>
6976 * common/config/riscv/riscv-common.c (riscv_ext_version_table):
6977 Add zba, zbb, zbc and zbs.
6978 (riscv_ext_flag_table): Ditto.
6979 * config/riscv/riscv-opts.h (MASK_ZBA): New.
6983 (TARGET_ZBA): Ditto.
6984 (TARGET_ZBB): Ditto.
6985 (TARGET_ZBC): Ditto.
6986 (TARGET_ZBS): Ditto.
6987 * config/riscv/riscv.opt (riscv_zb_subext): New.
6989 2021-10-25 liuhongt <hongtao.liu@intel.com>
6992 * match.pd: Simplify (_Float16) sqrtf((float) a) to .SQRT(a)
6993 when direct_internal_fn_supported_p, similar for sqrt/sqrtl.
6995 2021-10-25 Richard Biener <rguenther@suse.de>
6997 PR tree-optimization/102920
6998 * tree-ssa-sccvn.h (expressions_equal_p): Add argument
6999 controlling VN_TOP matching behavior.
7000 * tree-ssa-sccvn.c (expressions_equal_p): Likewise.
7001 (vn_phi_eq): Do not optimistically match VN_TOP.
7003 2021-10-25 konglin1 <lingling.kong@intel.com>
7005 * config/i386/sse.md (fma_<mode>_fadd_fmul): Add new
7006 define_insn_and_split.
7007 (fma_<mode>_fadd_fcmul):Likewise
7008 (fma_<complexopname>_<mode>_fma_zero):Likewise
7010 2021-10-24 John David Anglin <danglin@gcc.gnu.org>
7012 * config/pa/pa-d.c (pa_d_handle_target_float_abi): Don't check
7013 TARGET_DISABLE_FPREGS.
7014 * config/pa/pa.c (fix_range): Use MASK_SOFT_FLOAT instead of
7015 MASK_DISABLE_FPREGS.
7016 (hppa_rtx_costs): Don't check TARGET_DISABLE_FPREGS. Adjust
7017 cost of hardware integer multiplication.
7018 (pa_conditional_register_usage): Don't check TARGET_DISABLE_FPREGS.
7019 * config/pa/pa.h (INT14_OK_STRICT): Likewise.
7020 * config/pa/pa.md: Don't check TARGET_DISABLE_FPREGS. Check
7021 TARGET_SOFT_FLOAT in patterns that use xmpyu instruction.
7022 * config/pa/pa.opt (mdisable-fpregs): Change target mask to
7023 SOFT_FLOAT. Revise comment.
7024 (msoft-float): New option.
7026 2021-10-24 John David Anglin <danglin@gcc.gnu.org>
7028 * config/pa/pa.md: Don't use 'G' constraint in integer move patterns.
7030 2021-10-24 Gerald Pfeifer <gerald@pfeifer.com>
7032 * doc/install.texi (Specific): Remove obsolete details
7033 around GNU/Linux on Itanium.
7034 (Specific): Remove reference to Windows for Itanium.
7036 2021-10-23 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
7038 * config/i386/x86-tune-sched-bd.c (dispatch_group): Commentary
7041 2021-10-23 Jan Hubicka <hubicka@ucw.cz>
7043 * tree-ssa-structalias.c (compute_points_to_sets): Cleanup.
7045 2021-10-23 Roger Sayle <roger@nextmovesoftware.com>
7047 * config/i386/sse.md (<any_logic>v1ti3): New define_insn to
7048 implement V1TImode AND, IOR and XOR on TARGET_SSE2 (and above).
7049 (one_cmplv1ti2): New define expand.
7051 2021-10-22 Eric Gallager <egallager@gcc.gnu.org>
7054 * Makefile.in: Handle dvidir and install-dvi target.
7055 * configure: Regenerate.
7056 * configure.ac: Add install-dvi to target_list.
7058 2021-10-22 Gerald Pfeifer <gerald@pfeifer.com>
7060 * doc/install.texi (Binaries): Convert mingw-w64.org to https.
7063 2021-10-22 Richard Biener <rguenther@suse.de>
7065 PR tree-optimization/102893
7066 * tree-ssa-dce.c (find_obviously_necessary_stmts): Fix the
7067 test for an exit edge.
7069 2021-10-22 Aldy Hernandez <aldyh@redhat.com>
7070 Andrew MacLeod <amacleod@redhat.com>
7072 * gimple-range-path.cc (path_range_query::compute_phi_relations):
7073 Kill any global relations we may know before registering a new
7075 * value-relation.cc (path_oracle::killing_def): New.
7076 * value-relation.h (path_oracle::killing_def): New.
7078 2021-10-22 Richard Biener <rguenther@suse.de>
7081 * tree-ssa-sccvn.c (vn_phi_insert): For undefined SSA args
7083 (vn_phi_lookup): Likewise.
7085 2021-10-21 H.J. Lu <hjl.tools@gmail.com>
7088 * doc/invoke.texi: Document -fcf-protection requires i686 or
7091 2021-10-21 Eric Botcazou <ebotcazou@adacore.com>
7093 PR middle-end/102764
7094 * cfgexpand.c (expand_gimple_basic_block): Robustify latest change.
7096 2021-10-21 Jonathan Wright <jonathan.wright@arm.com>
7098 * config/aarch64/arm_neon.h (__STRUCTN): Delete function
7099 macro and all invocations.
7101 2021-10-21 Andrew MacLeod <amacleod@redhat.com>
7103 * doc/invoke.texi (ranger-debug): Document.
7104 * flag-types.h (enum ranger_debug): New.
7105 (enum evrp_mode): Remove debug values.
7106 * gimple-range-cache.cc (DEBUG_RANGE_CACHE): Use new debug flag.
7107 * gimple-range-gori.cc (gori_compute::gori_compute): Ditto.
7108 * gimple-range.cc (gimple_ranger::gimple_ranger): Ditto.
7109 * gimple-ssa-evrp.c (hybrid_folder::choose_value): Ditto.
7110 (execute_early_vrp): Use evrp-mode directly.
7111 * params.opt (enum evrp_mode): Remove debug values.
7112 (ranger-debug): New.
7113 (ranger-logical-depth): Relocate to be in alphabetical order.
7115 2021-10-21 Andrew MacLeod <amacleod@redhat.com>
7117 * doc/invoke.texi: (vrp1-mode, vrp2-mode): Document.
7118 * flag-types.h: (enum vrp_mode): New.
7119 * params.opt: (vrp1-mode, vrp2-mode): New.
7120 * tree-vrp.c (vrp_pass_num): New.
7121 (pass_vrp::pass_vrp): Set pass number.
7122 (pass_vrp::execute): Choose which VRP mode to execute.
7124 2021-10-21 Andrew MacLeod <amacleod@redhat.com>
7126 * gimple-ssa-evrp.c (class rvrp_folder): Move to tree-vrp.c.
7127 (execute_early_vrp): For ranger only mode, invoke ranger_vrp.
7128 * tree-vrp.c (class rvrp_folder): Relocate here.
7129 (execute_ranger_vrp): New.
7130 * tree-vrp.h (execute_ranger_vrp): Export.
7132 2021-10-21 Martin Liska <mliska@suse.cz>
7136 * opts.c (finish_options): Process flag_var_tracking* options
7137 here as they can be adjusted by optimize attribute.
7138 Process also flag_syntax_only and flag_gtoggle.
7139 * toplev.c (process_options): Remove it here.
7140 * common.opt: Make debug_nonbind_markers_p as PerFunction
7141 attribute as it depends on optimization level.
7143 2021-10-21 Martin Jambor <mjambor@suse.cz>
7145 PR tree-optimization/102505
7146 * tree-sra.c (totally_scalarize_subtree): Check that the
7147 encountered field fits within the acces we would like to put it
7150 2021-10-21 Aldy Hernandez <aldyh@redhat.com>
7152 * tree-ssa-threadbackward.c
7153 (back_threader::maybe_register_path): Remove circular paths check.
7155 2021-10-21 Richard Biener <rguenther@suse.de>
7157 * toplev.c (process_options): Move the initial debug_hooks
7159 (toplev::main): ... before the call of the post_options
7162 2021-10-21 Richard Biener <rguenther@suse.de>
7164 PR tree-optimization/102847
7165 * tree-vect-stmts.c (vect_model_load_cost): Add the scalar
7166 load cost in the prologue for VMAT_INVARIANT.
7168 2021-10-21 Richard Biener <rguenther@suse.de>
7170 PR tree-optimization/102847
7171 * tree-vect-stmts.c (vect_model_load_cost): Explicitely
7172 handle VMAT_INVARIANT as a splat in the prologue.
7174 2021-10-21 Hongyu Wang <hongyu.wang@intel.com>
7177 * config/i386/i386.c (ix86_get_ssemov): Adjust HFmode vector
7178 move to use the same logic as HImode.
7180 2021-10-21 Richard Biener <rguenther@suse.de>
7182 * tree-vect-slp.c (vect_build_slp_tree_1): Remove
7183 superfluous gimple_call_nothrow_p check.
7185 2021-10-21 Andrew Pinski <apinski@marvell.com>
7187 * tree-cfg.c (maybe_remove_writeonly_store): Add dce_ssa_names argument.
7188 Mark the ssa-name of the rhs as one to be removed.
7189 (execute_fixup_cfg): Update call to maybe_remove_writeonly_store.
7190 Call simple_dce_from_worklist at the end to a simple dce.
7192 2021-10-21 Andrew Pinski <apinski@marvell.com>
7194 * tree-cfg.c (maybe_remove_writeonly_store): New function
7195 factored out from ...
7196 (execute_fixup_cfg): Here. Call maybe_remove_writeonly_store.
7198 2021-10-21 Andrew Pinski <apinski@marvell.com>
7200 * tree-cfg.c (execute_fixup_cfg): Remove comment
7201 about standalone pass.
7203 2021-10-21 Andrew Pinski <apinski@marvell.com>
7205 * tree-cfg.c (execute_fixup_cfg): Output when the statement
7206 is removed when it is a write only var.
7208 2021-10-21 Aldy Hernandez <aldyh@redhat.com>
7210 * tree-ssa-threadbackward.c (back_threader::maybe_register_path):
7211 Avoid threading circular paths.
7213 2021-10-20 Alex Coplan <alex.coplan@arm.com>
7215 * calls.c (initialize_argument_information): Remove some dead
7216 code, remove handling for function_arg returning const_int.
7217 * doc/tm.texi: Delete documentation for unused target hooks.
7218 * doc/tm.texi.in: Likewise.
7219 * target.def (load_bounds_for_arg): Delete.
7220 (store_bounds_for_arg): Delete.
7221 (load_returned_bounds): Delete.
7222 (store_returned_bounds): Delete.
7223 * targhooks.c (default_load_bounds_for_arg): Delete.
7224 (default_store_bounds_for_arg): Delete.
7225 (default_load_returned_bounds): Delete.
7226 (default_store_returned_bounds): Delete.
7227 * targhooks.h (default_load_bounds_for_arg): Delete.
7228 (default_store_bounds_for_arg): Delete.
7229 (default_load_returned_bounds): Delete.
7230 (default_store_returned_bounds): Delete.
7232 2021-10-20 Jonathan Wakely <jwakely@redhat.com>
7234 * doc/extend.texi (Basic Asm): Clarify that asm is not an
7236 * doc/invoke.texi (-fno-asm): Fix description for C++.
7238 2021-10-20 Jonathan Wakely <jwakely@redhat.com>
7240 * doc/install.texi: Remove link to old.html
7242 2021-10-20 Tamar Christina <tamar.christina@arm.com>
7244 * config/aarch64/aarch64-simd.md (*aarch64_cmtst_same_<mode>): New.
7246 2021-10-20 Tamar Christina <tamar.christina@arm.com>
7248 * config/aarch64/aarch64-simd.md (*aarch64_narrow_trunc<mode>): New.
7250 2021-10-20 Tamar Christina <tamar.christina@arm.com>
7252 * config/aarch64/aarch64-simd.md (aarch64_simd_ashr<mode>): Add case cmp
7254 * config/aarch64/constraints.md (D1): New.
7256 2021-10-20 Tamar Christina <tamar.christina@arm.com>
7258 * config/aarch64/aarch64-simd.md
7259 (*aarch64_<srn_op>topbits_shuffle<mode>_le): New.
7260 (*aarch64_topbits_shuffle<mode>_le): New.
7261 (*aarch64_<srn_op>topbits_shuffle<mode>_be): New.
7262 (*aarch64_topbits_shuffle<mode>_be): New.
7263 * config/aarch64/predicates.md
7264 (aarch64_simd_shift_imm_vec_exact_top): New.
7266 2021-10-20 Tamar Christina <tamar.christina@arm.com>
7268 * config/aarch64/aarch64-simd.md (*aarch64_<srn_op>shrn<mode>_vect,
7269 *aarch64_<srn_op>shrn<mode>2_vect_le,
7270 *aarch64_<srn_op>shrn<mode>2_vect_be): New.
7271 * config/aarch64/iterators.md (srn_op): New.
7273 2021-10-20 Chung-Lin Tang <cltang@codesourcery.com>
7275 * omp-low.c (omp_copy_decl_2): For !ctx, use record_vars to add new copy
7277 (scan_sharing_clauses): Place copy of OMP_CLAUSE_IN_REDUCTION decl in
7278 ctx->outer instead of ctx.
7280 2021-10-20 Martin Liska <mliska@suse.cz>
7283 2021-10-19 Martin Liska <mliska@suse.cz>
7286 * config/i386/i386-options.c (ix86_valid_target_attribute_inner_p): Strip whitespaces.
7287 * system.h (strip_whilespaces): New function.
7289 2021-10-20 Martin Liska <mliska@suse.cz>
7292 2021-10-19 Martin Liska <mliska@suse.cz>
7295 * config/aarch64/aarch64.c (aarch64_process_one_target_attr):
7298 2021-10-20 Wilco Dijkstra <wdijkstr@arm.com>
7300 * config/aarch64/aarch64.c (aarch64_case_values_threshold):
7301 Change to 8 with -Os, 11 otherwise.
7303 2021-10-20 Wilco Dijkstra <wdijkstr@arm.com>
7305 * config/aarch64/aarch64.c (neoversev1_tunings):
7306 Enable AARCH64_EXTRA_TUNE_CHEAP_SHIFT_EXTEND.
7307 (neoversen2_tunings): Likewise.
7309 2021-10-20 Wilco Dijkstra <wdijkstr@arm.com>
7312 * config/aarch64/aarch64.md (frint_pattern): Update comment.
7313 * config/aarch64/aarch64-simd-builtins.def: Change frintn to roundeven.
7314 * config/aarch64/arm_fp16.h: Change frintn to roundeven.
7315 * config/aarch64/arm_neon.h: Likewise.
7316 * config/aarch64/iterators.md (frint_pattern): Use roundeven for FRINTN.
7318 2021-10-20 Martin Liska <mliska@suse.cz>
7320 * config/arm/arm.c (arm_unwind_emit_sequence): Do not declare
7321 already declared global variable.
7322 (arm_unwind_emit_set): Use out_file as function argument.
7323 (arm_unwind_emit): Likewise.
7324 * config/darwin.c (machopic_output_data_section_indirection): Likewise.
7325 (machopic_output_stub_indirection): Likewise.
7326 (machopic_output_indirection): Likewise.
7327 (machopic_finish): Likewise.
7328 * config/i386/i386.c (ix86_asm_output_function_label): Likewise.
7329 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
7330 * config/ia64/ia64.c (process_epilogue): Likewise.
7331 (process_cfa_adjust_cfa): Likewise.
7332 (process_cfa_register): Likewise.
7333 (process_cfa_offset): Likewise.
7334 (ia64_asm_unwind_emit): Likewise.
7335 * config/s390/s390.c (s390_asm_output_function_label): Likewise.
7337 2021-10-20 Andre Simoes Dias Vieira <andre.simoesdiasvieira@arm.com>
7339 * config/aarch64/aarch64-builtins.c
7340 (aarch64_general_gimple_fold_builtin):
7341 lower vld1 and vst1 variants of the neon builtins
7342 * config/aarch64/aarch64-protos.h:
7343 (aarch64_general_gimple_fold_builtin): Add gsi parameter.
7344 * config/aarch64/aarch64.c (aarch64_general_gimple_fold_builtin):
7347 2021-10-20 Andre Simoes Dias Vieira <andre.simoesdiasvieira@arm.com>
7349 * match.pd: Generate IFN_TRUNC.
7351 2021-10-20 Richard Biener <rguenther@suse.de>
7353 PR tree-optimization/102853
7354 * tree-data-ref.c (split_constant_offset_1): Bail out
7355 immediately if the expression traps on overflow.
7357 2021-10-20 Aldy Hernandez <aldyh@redhat.com>
7359 * tree-ssa-threadbackward.c (back_threader::~back_threader): Remove.
7361 2021-10-20 Aldy Hernandez <aldyh@redhat.com>
7363 * tree-ssa-threadupdate.c (back_jt_path_registry::adjust_paths_after_duplication):
7364 Remove superflous debugging message.
7365 (back_jt_path_registry::duplicate_thread_path): Same.
7367 2021-10-20 Aldy Hernandez <aldyh@redhat.com>
7369 * tree-ssa-threadbackward.c (back_threader_registry::back_threader_registry):
7371 (back_threader_registry::register_path): Remove m_threaded_paths.
7373 2021-10-20 Aldy Hernandez <aldyh@redhat.com>
7375 PR tree-optimization/102814
7376 * doc/invoke.texi: Document --param=max-fsm-thread-length.
7377 * params.opt: Add --param=max-fsm-thread-length.
7378 * tree-ssa-threadbackward.c
7379 (back_threader_profitability::profitable_path_p): Fail on paths
7380 longer than max-fsm-thread-length.
7382 2021-10-20 Eric Botcazou <ebotcazou@adacore.com>
7384 PR middle-end/102764
7385 * cfgexpand.c (expand_gimple_basic_block): Disregard a final debug
7386 statement to reset the current location for the outgoing edges.
7388 2021-10-20 Aldy Hernandez <aldyh@redhat.com>
7389 Richard Biener <rguenther@suse.de>
7391 * tree-ssa-threadupdate.c (cancel_thread): Dump threading reason
7392 on the same line as the threading cancellation.
7393 (jt_path_registry::cancel_invalid_paths): Avoid rotating loops.
7394 Avoid threading through loop headers where the path remains in the
7397 2021-10-20 Siddhesh Poyarekar <siddhesh@gotplt.org>
7399 * tree-object-size.c (unknown): Make into a function. Adjust
7401 (unknown_object_size): Simplify implementation.
7403 2021-10-20 Hongtao Liu <hongtao.liu@intel.com>
7404 Kewen Lin <linkw@linux.ibm.com>
7406 * doc/sourcebuild.texi (Effective-Target Keywords): Document
7407 vect_slp_v2qi_store, vect_slp_v4qi_store, vect_slp_v8qi_store,
7408 vect_slp_v16qi_store, vect_slp_v2hi_store,
7409 vect_slp_v4hi_store, vect_slp_v2si_store, vect_slp_v4si_store.
7411 2021-10-19 Jonathan Wakely <jwakely@redhat.com>
7413 * doc/extend.texi (Basic PowerPC Built-in Functions): Fix typo.
7415 2021-10-19 Paul A. Clarke <pc@us.ibm.com>
7419 * config/rs6000/emmintrin.h: Guard POWER8 intrinsics.
7420 * config/rs6000/pmmintrin.h: Same.
7421 * config/rs6000/smmintrin.h: Same.
7422 * config/rs6000/tmmintrin.h: Same.
7424 2021-10-19 Paul A. Clarke <pc@us.ibm.com>
7426 * config.gcc (extra_headers): Add nmmintrin.h.
7428 2021-10-19 Richard Biener <rguenther@suse.de>
7430 * tree-vectorizer.h (vect_supportable_dr_alignment): Add
7431 misalignment parameter.
7432 * tree-vect-data-refs.c (vect_get_peeling_costs_all_drs):
7433 Do not change DR_MISALIGNMENT in place, instead pass the
7434 adjusted misalignment to vect_supportable_dr_alignment.
7435 (vect_peeling_supportable): Likewise.
7436 (vect_peeling_hash_get_lowest_cost): Adjust.
7437 (vect_enhance_data_refs_alignment): Likewise.
7438 (vect_vfa_access_size): Likewise.
7439 (vect_supportable_dr_alignment): Add misalignment
7440 parameter and simplify.
7441 * tree-vect-stmts.c (get_negative_load_store_type): Adjust.
7442 (get_group_load_store_type): Likewise.
7443 (get_load_store_type): Likewise.
7445 2021-10-19 Clément Chigot <clement.chigot@atos.net>
7447 * config/rs6000/rs6000.c (rs6000_xcoff_file_end): Move
7448 __tls_get_addr reference to .text csect.
7450 2021-10-19 Martin Liska <mliska@suse.cz>
7453 * config/aarch64/aarch64.c (aarch64_process_one_target_attr):
7456 2021-10-19 Richard Biener <rguenther@suse.de>
7458 * tree-vectorizer.h (vect_get_store_cost): Adjust signature.
7459 (vect_get_load_cost): Likewise.
7460 * tree-vect-data-refs.c (vect_get_data_access_cost): Get
7461 alignment support scheme and misalignment as arguments
7463 (vect_get_peeling_costs_all_drs): Compute that info here
7464 and note that we shouldn't need to.
7465 * tree-vect-stmts.c (vect_model_store_cost): Get
7466 alignment support scheme and misalignment as arguments.
7467 (vect_get_store_cost): Likewise.
7468 (vect_model_load_cost): Likewise.
7469 (vect_get_load_cost): Likewise.
7470 (vectorizable_store): Pass down alignment support scheme
7471 and misalignment to costing.
7472 (vectorizable_load): Likewise.
7474 2021-10-19 Richard Biener <rguenther@suse.de>
7476 * tree-vect-stmts.c (get_negative_load_store_type): Add
7477 offset output parameter and initialize it.
7478 (get_group_load_store_type): Likewise.
7479 (get_load_store_type): Likewise.
7480 (vectorizable_store): Use offset as computed by
7481 get_load_store_type.
7482 (vectorizable_load): Likewise.
7484 2021-10-19 Richard Biener <rguenther@suse.de>
7486 PR tree-optimization/102827
7487 * tree-if-conv.c (predicate_statements): Add pe parameter
7488 and use that edge to insert invariant stmts on.
7489 (combine_blocks): Pass through pe.
7490 (tree_if_conversion): Compute the edge to insert invariant
7491 stmts on and pass it along.
7493 2021-10-19 Roger Sayle <roger@nextmovesoftware.com>
7496 * config/bfin/bfin.md (addsubv2hi3, subaddv2hi3, ssaddsubv2hi3,
7497 sssubaddv2hi3): Swap the order of operators in vec_concat.
7499 2021-10-19 Xionghu Luo <luoxhu@linux.ibm.com>
7501 * config/rs6000/altivec.md (*altivec_vmrghb_internal): Delete.
7502 (altivec_vmrghb_direct): New.
7503 (*altivec_vmrghh_internal): Delete.
7504 (altivec_vmrghh_direct): New.
7505 (*altivec_vmrghw_internal): Delete.
7506 (altivec_vmrghw_direct_<mode>): New.
7507 (altivec_vmrghw_direct): Delete.
7508 (*altivec_vmrglb_internal): Delete.
7509 (altivec_vmrglb_direct): New.
7510 (*altivec_vmrglh_internal): Delete.
7511 (altivec_vmrglh_direct): New.
7512 (*altivec_vmrglw_internal): Delete.
7513 (altivec_vmrglw_direct_<mode>): New.
7514 (altivec_vmrglw_direct): Delete.
7515 * config/rs6000/rs6000-p8swap.c (rtx_is_swappable_p): Adjust.
7516 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const):
7518 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust.
7519 (vsx_xxmrglw_<mode>): Adjust.
7521 2021-10-19 Aldy Hernandez <aldyh@redhat.com>
7523 * passes.def: Change threading comment before pass_ccp pass.
7525 2021-10-19 Haochen Gui <guihaoc@gcc.gnu.org>
7527 * config/rs6000/rs6000-call.c (altivec_expand_lxvr_builtin):
7528 Modify the expansion for sign extension. All extensions are done
7529 within VSX registers.
7531 2021-10-19 Richard Biener <rguenther@suse.de>
7533 * tree-vect-stmts.c (get_group_load_store_type): Add
7534 misalignment output parameter and initialize it.
7535 (get_group_load_store_type): Likewise.
7536 (vectorizable_store): Remove now redundant queries.
7537 (vectorizable_load): Likewise.
7539 2021-10-19 Richard Biener <rguenther@suse.de>
7541 * tree-vectorizer.h (vect_supportable_dr_alignment): Remove
7542 check_aligned argument.
7543 * tree-vect-data-refs.c (vect_supportable_dr_alignment):
7545 (vect_peeling_hash_insert): Add supportable_if_not_aligned
7546 argument and do not call vect_supportable_dr_alignment here.
7547 (vect_peeling_supportable): Adjust.
7548 (vect_enhance_data_refs_alignment): Compute whether the
7549 access is supported with different alignment here and
7550 pass that down to vect_peeling_hash_insert.
7551 (vect_vfa_access_size): Adjust.
7552 * tree-vect-stmts.c (vect_get_store_cost): Likewise.
7553 (vect_get_load_cost): Likewise.
7554 (get_negative_load_store_type): Likewise.
7555 (get_group_load_store_type): Likewise.
7556 (get_load_store_type): Likewise.
7558 2021-10-19 Martin Liska <mliska@suse.cz>
7561 * config/i386/i386-options.c (ix86_valid_target_attribute_inner_p): Strip whitespaces.
7562 * system.h (strip_whilespaces): New function.
7564 2021-10-19 dianhong xu <dianhong.xu@intel.com>
7566 * config/i386/avx512fp16intrin.h:
7567 (_mm512_set1_pch): New intrinsic.
7568 * config/i386/avx512fp16vlintrin.h:
7569 (_mm256_set1_pch): New intrinsic.
7570 (_mm_set1_pch): Ditto.
7572 2021-10-18 Andrew MacLeod <amacleod@redhat.com>
7574 PR tree-optimization/102796
7575 * gimple-range.cc (gimple_ranger::range_on_edge): Process EH edges
7576 normally. Return get_tree_range for non gimple_range_ssa_p names.
7577 (gimple_ranger::range_of_stmt): Use get_tree_range for non
7578 gimple_range_ssa_p names.
7580 2021-10-18 Uroš Bizjak <ubizjak@gmail.com>
7583 * config/i386/i386.c (ix86_print_operand_address):
7584 Error out for non-address_operand asm operands.
7586 2021-10-18 Richard Biener <rguenther@suse.de>
7588 * tree-vect-data-refs.c (vect_peeling_hash_insert): Do
7589 not auto-convert dr_alignment_support to bool.
7590 (vect_peeling_supportable): Likewise.
7591 (vect_enhance_data_refs_alignment): Likewise.
7592 (vect_supportable_dr_alignment): Commonize read/write case.
7593 * tree-vect-stmts.c (vect_get_store_cost): Use
7594 dr_alignment_support, not int, for the vect_supportable_dr_alignment
7596 (vect_get_load_cost): Likewise.
7598 2021-10-18 Siddhesh Poyarekar <siddhesh@gotplt.org>
7600 * tree-object-size.c (object_sizes_execute): Consolidate LHS
7601 null check and do it early.
7603 2021-10-18 Richard Biener <rguenther@suse.de>
7605 * tree-vect-stmts.c (vectorizable_store): Use the
7606 computed alignment scheme instead of querying
7609 2021-10-18 Richard Biener <rguenther@suse.de>
7611 * tree-vect-stmts.c (vectorizable_store): Do not recompute
7612 alignment scheme already determined by get_load_store_type.
7614 2021-10-18 Aldy Hernandez <aldyh@redhat.com>
7616 * tree-ssa-threadbackward.c (class pass_thread_jumps_full):
7617 Clone corresponding pass.
7619 2021-10-18 Roger Sayle <roger@nextmovesoftware.com>
7621 * combine.c (recog_for_combine): For an unrecognized move/set of
7622 a constant, try force_const_mem to place it in the constant pool.
7623 * cse.c (constant_pool_entries_cost, constant_pool_entries_regcost):
7624 Delete global variables (that are no longer assigned a cost value).
7625 (cse_insn): Simplify logic for deciding whether to place a folded
7626 constant in the constant pool using force_const_mem.
7627 (cse_main): Remove zero initialization of constant_pool_entries_cost
7628 and constant_pool_entries_regcost.
7629 * config/i386/i386.c (ix86_rtx_costs): Make memory accesses
7630 fractionally more expensive, when optimizing for speed.
7632 2021-10-18 Martin Liska <mliska@suse.cz>
7634 PR gcov-profile/102746
7635 PR gcov-profile/102747
7636 * gcov.c (main): Return return_code.
7637 (output_gcov_file): Mark return_code when error happens.
7638 (generate_results): Likewise.
7639 (read_graph_file): Likewise.
7640 (read_count_file): Likewise.
7642 2021-10-18 Roger Sayle <roger@nextmovesoftware.com>
7644 * config/bfin/bfin.md (define_constants): Remove UNSPEC_ONES.
7645 (define_insn "ones"): Replace UNSPEC_ONES with a truncate of
7646 a popcount, allowing compile-time evaluation/simplification.
7647 (popcountsi2, popcounthi2): New expanders using a "ones" insn.
7649 2021-10-18 Richard Biener <rguenther@suse.de>
7651 PR tree-optimization/102788
7652 * tree-vect-patterns.c (vect_init_pattern_stmt): Allow
7654 (vect_pattern_recog_1): Likewise.
7655 (vect_recog_bool_pattern): Continue matching the pattern
7656 even if we do not have a vector type for a conversion
7659 2021-10-18 Roger Sayle <roger@nextmovesoftware.com>
7661 * simplify-rtx.c (simplify_const_unary_operation) [SS_NEG, SS_ABS]:
7662 Evalute SS_NEG and SS_ABS of a constant argument.
7664 2021-10-18 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
7667 * gimple-match-head.c (try_conditional_simplification): Add case for single operand.
7668 * internal-fn.def: Add entry for COND_NEG internal function.
7669 * internal-fn.c (FOR_EACH_CODE_MAPPING): Add entry for
7670 NEGATE_EXPR, COND_NEG mapping.
7671 * optabs.def: Add entry for cond_neg_optab.
7672 * match.pd (UNCOND_UNARY, COND_UNARY): New operator lists.
7673 (vec_cond COND (foo A) B) -> (IFN_COND_FOO COND A B): New pattern.
7674 (vec_cond COND B (foo A)) -> (IFN_COND_FOO ~COND A B): Likewise.
7676 2021-10-18 Aldy Hernandez <aldyh@redhat.com>
7678 * tree-ssa-strlen.c (class strlen_pass): Rename from
7680 (handle_builtin_stxncpy_strncat): Move to strlen_pass.
7681 (handle_assign): Same.
7682 (adjust_last_stmt): Same.
7683 (maybe_warn_overflow): Same.
7684 (handle_builtin_strlen): Same.
7685 (handle_builtin_strchr): Same.
7686 (handle_builtin_strcpy): Same.
7687 (handle_builtin_strncat): Same.
7688 (handle_builtin_stxncpy_strncat): Same.
7689 (handle_builtin_memcpy): Same.
7690 (handle_builtin_strcat): Same.
7691 (handle_alloc_call): Same.
7692 (handle_builtin_memset): Same.
7693 (handle_builtin_memcmp): Same.
7694 (get_len_or_size): Same.
7695 (strxcmp_eqz_result): Same.
7696 (handle_builtin_string_cmp): Same.
7697 (handle_pointer_plus): Same.
7698 (count_nonzero_bytes_addr): Same.
7699 (count_nonzero_bytes): Same.
7700 (handle_store): Same.
7701 (strlen_check_and_optimize_call): Same.
7702 (handle_integral_assign): Same.
7703 (check_and_optimize_stmt): Same.
7704 (printf_strlen_execute): Rename strlen_dom_walker to strlen_pass.
7706 2021-10-18 Richard Biener <rguenther@suse.de>
7708 PR tree-optimization/102798
7709 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
7710 Only copy points-to info to newly generated SSA names.
7712 2021-10-18 Martin Liska <mliska@suse.cz>
7714 * dbgcnt.c (dbg_cnt_process_opt): Remove unused but set variable.
7715 * gcov.c (get_cycles_count): Likewise.
7716 * lto-compress.c (lto_compression_zlib): Likewise.
7717 (lto_uncompression_zlib): Likewise.
7718 * targhooks.c (default_pch_valid_p): Likewise.
7720 2021-10-17 Aldy Hernandez <aldyh@redhat.com>
7722 * tree-pass.h (make_pass_thread_jumps_full): New.
7723 * tree-ssa-threadbackward.c (pass_thread_jumps::gate): Inline.
7724 (try_thread_blocks): Add resolve and speed arguments.
7725 (pass_thread_jumps::execute): Inline.
7726 (do_early_thread_jumps): New.
7727 (do_thread_jumps): New.
7728 (make_pass_thread_jumps): Move.
7729 (pass_early_thread_jumps::gate): Inline.
7730 (pass_early_thread_jumps::execute): Inline.
7731 (class pass_thread_jumps_full): New.
7733 2021-10-16 Piotr Kubaj <pkubaj@FreeBSD.org>
7735 * configure.ac: Treat powerpc64*-*-freebsd* the same as
7736 powerpc64-*-freebsd*.
7737 * configure: Regenerate.
7739 2021-10-16 H.J. Lu <hjl.tools@gmail.com>
7741 * value-query.cc (get_ssa_name_ptr_info_nonnull): Change
7742 set_ptr_nonull to set_ptr_nonnull in comments.
7744 2021-10-16 Jan Hubicka <hubicka@ucw.cz>
7746 PR tree-optimization/102720
7747 * tree-ssa-structalias.c (compute_points_to_sets): Fix producing
7748 of call used and clobbered sets.
7750 2021-10-15 Iain Sandoe <iain@sandoe.co.uk>
7752 * config/darwin.h (LINK_COMMAND_SPEC_A): Update 'r' handling to
7753 skip gomp and itm when r or nodefaultlibs is given.
7754 (DSYMUTIL_SPEC): Do not call dsymutil for '-r' link lines.
7755 Update ordering of exclusions, remove duplicate 'v' addition
7756 (collect2 will add this from the main command line).
7758 2021-10-15 Iain Sandoe <iain@sandoe.co.uk>
7760 * config/darwin-driver.c (darwin_driver_init): Revise comments, handle
7761 filelist and framework options in specs instead of code.
7762 * config/darwin.h (SUBTARGET_DRIVER_SELF_SPECS): Update to handle link
7763 specs that are really driver ones.
7764 (DARWIN_CC1_SPEC): Likewise.
7765 (CPP_SPEC): Likewise.
7766 (SYSROOT_SPEC): Append space.
7767 (LINK_SYSROOT_SPEC): Remove most driver link specs.
7768 (STANDARD_STARTFILE_PREFIX_2): Update link-related specs.
7769 (STARTFILE_SPEC): Likewise.
7770 (ASM_MMACOSX_VERSION_MIN_SPEC): Fix line wrap.
7771 (ASM_SPEC): Update driver-related specs.
7772 (ASM_FINAL_SPEC): Likewise.
7773 * config/darwin.opt: Remove now unused option aliases.
7774 * config/i386/darwin.h (EXTRA_ASM_OPTS): Ensure space after opt.
7775 (ASM_SPEC): Update driver-related specs.
7777 2021-10-15 Roger Sayle <roger@nextmovesoftware.com>
7779 * config/i386/i386.c (ix86_hardreg_mov_ok): For vector modes,
7780 allow standard_sse_constant_p immediate constants.
7782 2021-10-15 Iain Sandoe <iain@sandoe.co.uk>
7784 * config.gcc: Add tm-dwarf2.h to tm_d-file.
7786 2021-10-15 Andrew MacLeod <amacleod@redhat.com>
7788 * gimple-range-fold.h (gimple_range_ssa_p): Don't process names
7789 that occur in abnormal phis.
7790 * gimple-range.cc (gimple_ranger::range_on_edge): Return false for
7791 abnormal and EH edges.
7792 * gimple-ssa-evrp.c (rvrp_folder::value_of_expr): Ditto.
7793 (rvrp_folder::value_on_edge): Ditto.
7794 (rvrp_folder::value_of_stmt): Ditto.
7795 (hybrid_folder::value_of_expr): Ditto for ranger queries.
7796 (hybrid_folder::value_on_edge): Ditto.
7797 (hybrid_folder::value_of_stmt): Ditto.
7798 * value-query.cc (gimple_range_global): Always return a range if
7799 the type is supported.
7801 2021-10-15 John David Anglin <danglin@gcc.gnu.org>
7803 * config/pa/pa.md: Consistently use "rG" constraint for copy
7804 instruction in move patterns.
7806 2021-10-15 Andrew Stubbs <ams@codesourcery.com>
7808 * config/gcn/gcn-hsa.h (S_FIJI): Set unconditionally.
7811 * config/gcn/gcn.c: Hard code SRAM ECC settings for old architectures.
7812 * config/gcn/mkoffload.c (ELFABIVERSION_AMDGPU_HSA): Rename to ...
7813 (ELFABIVERSION_AMDGPU_HSA_V3): ... this.
7814 (ELFABIVERSION_AMDGPU_HSA_V4): New.
7815 (SET_SRAM_ECC_UNSUPPORTED): New.
7816 (copy_early_debug_info): Create elf flags to match the other objects.
7817 (main): Just let the attribute flags pass through.
7819 2021-10-15 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
7821 * tree-loop-distribution.c (reduction_var_overflows_first):
7822 Pass the type of reduction_var as first argument as it is also
7823 done for the load type.
7824 (loop_distribution::transform_reduction_loop): Add missing
7825 TREE_TYPE while determining precission of reduction_var.
7827 2021-10-15 Richard Biener <rguenther@suse.de>
7829 * defaults.h (PREFERRED_DEBUGGING_TYPE): Choose DWARF2_DEBUG
7831 * toplev.c (process_options): Warn when STABS debugging is
7832 enabled but not the preferred format.
7833 * config/pa/som.h (PREFERRED_DEBUGGING_TYPE): Define to
7835 * config/pdp11/pdp11.h (PREFERRED_DEBUGGING_TYPE): Likewise.
7837 2021-10-15 Richard Biener <rguenther@suse.de>
7840 * tree-inline.c (copy_bb): Avoid underflowing nargs.
7842 2021-10-15 Hongyu Wang <hongyu.wang@intel.com>
7844 * config/i386/i386-expand.c (ix86_expand_vec_perm): Convert
7845 HFmode input operand to HImode.
7846 (ix86_vectorize_vec_perm_const): Likewise.
7847 * config/i386/sse.md (*avx512bw_permvar_truncv16siv16hi_1_hf):
7849 (*avx512f_permvar_truncv8siv8hi_1_hf):
7852 2021-10-15 Richard Biener <rguenther@suse.de>
7854 PR middle-end/102682
7855 * expmed.c (store_bit_field_1): Ensure a LHS subreg would
7856 not create a paradoxical subreg.
7858 2021-10-15 Hongyu Wang <hongyu.wang@intel.com>
7860 * config/i386/i386-expand.c (ix86_expand_vector_init):
7861 For half_vector concat for HFmode, handle them like HImode.
7863 2021-10-14 Aldy Hernandez <aldyh@redhat.com>
7865 * tree-ssa-threadbackward.c (class back_threader): Add m_resolve.
7866 (back_threader::back_threader): Same.
7867 (back_threader::resolve_phi): Try to solve without looking back if
7869 (back_threader::find_paths_to_names): Same.
7870 (try_thread_blocks): Pass resolve argument to back threader.
7871 (pass_early_thread_jumps::execute): Same.
7873 2021-10-14 Aldy Hernandez <aldyh@redhat.com>
7875 * doc/invoke.texi: Remove max-fsm-thread-length,
7876 max-fsm-thread-paths, and fsm-maximum-phi-arguments.
7878 * tree-ssa-threadbackward.c (back_threader::back_threader): Remove
7880 (back_threader_registry::back_threader_registry): Same.
7881 (back_threader_profitability::profitable_path_p): Remove
7882 param_max_fsm_thread-length.
7883 (back_threader_registry::register_path): Remove
7884 m_max_allowable_paths.
7886 2021-10-14 Aldy Hernandez <aldyh@redhat.com>
7888 * tree-ssa-threadbackward.c (class back_threader): Make m_imports
7890 (back_threader::~back_threader): Do not release m_path.
7892 2021-10-14 Andrew MacLeod <amacleod@redhat.com>
7894 PR tree-optimization/102738
7895 * vr-values.c (simplify_using_ranges::simplify): Handle RSHIFT_EXPR.
7897 2021-10-14 Kwok Cheung Yeung <kcy@codesourcery.com>
7899 * omp-general.c (omp_check_context_selector): Move from c-omp.c.
7900 (omp_mark_declare_variant): Move from c-omp.c.
7901 (omp_context_name_list_prop): Update for Fortran strings.
7902 * omp-general.h (omp_check_context_selector): New prototype.
7903 (omp_mark_declare_variant): New prototype.
7905 2021-10-14 Richard Sandiford <richard.sandiford@arm.com>
7907 * config/rs6000/rs6000.c (rs6000_density_test): Move early
7908 exit test further up the function.
7910 2021-10-14 Richard Sandiford <richard.sandiford@arm.com>
7912 * config/arm/arm.c (arm_add_stmt_cost): Delete.
7913 (TARGET_VECTORIZE_ADD_STMT_COST): Delete.
7915 2021-10-14 Martin Jambor <mjambor@suse.cz>
7917 * doc/invoke.texi (Optimize Options): Add entry for
7918 ipa-cp-recursive-freq-factor.
7920 2021-10-14 Tamar Christina <tamar.christina@arm.com>
7922 * match.pd: New rule.
7924 2021-10-14 Jan Hubicka <hubicka@ucw.cz>
7927 * ipa-modref-tree.h (modref_access_node::update2):
7928 Also check that parm_offset is unchanged.
7929 (modref_ref_node::insert_access): Fix updating of
7932 2021-10-14 Aldy Hernandez <aldyh@redhat.com>
7934 * tree-ssa-threadbackward.c (back_threader::resolve_phi): Add
7937 2021-10-14 Richard Biener <rguenther@suse.de>
7939 PR tree-optimization/102659
7940 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Also
7941 rewrite pointer typed undefined overflow operations.
7942 (predicate_statements): Likewise. Make sure to emit invariant
7943 conversions in the preheader.
7944 * tree-vectorizer.c (vect_loop_vectorized_call): Look through
7945 non-empty preheaders.
7946 * tree-data-ref.c (dr_analyze_indices): Strip useless
7947 conversions to the MEM_REF base type.
7949 2021-10-14 Martin Liska <mliska@suse.cz>
7951 * common.opt: Stop using AUTODETECT_VALUE
7952 and use EnabledBy where possible.
7953 * opts.c: Enable OPT_fvar_tracking with optimize >= 1.
7954 * toplev.c (AUTODETECT_VALUE): Remove macro.
7955 (process_options): Simplify by using EnabledBy and
7956 OPT_fvar_tracking. Use OPTION_SET_P macro instead of
7959 2021-10-14 Jonathan Wright <jonathan.wright@arm.com>
7961 * config/aarch64/arm_neon.h (vld1_s8_x3): Use signed type for
7963 (vld1_s32_x3): Likewise.
7965 2021-10-14 Aldy Hernandez <aldyh@redhat.com>
7967 PR tree-optimization/102736
7968 PR tree-optimization/102736
7969 * gimple-range-path.cc (path_range_query::range_on_path_entry):
7970 Assert that the requested range is defined outside the path.
7971 (path_range_query::ssa_range_in_phi): Do not call
7972 range_on_path_entry for SSA names that are defined within the
7975 2021-10-14 Iain Sandoe <iain@sandoe.co.uk>
7977 * config/darwin-driver.c (darwin_find_version_from_kernel):
7978 Quote internal identifiers and avoid contractions in
7980 (darwin_default_min_version): Likewise.
7981 (darwin_driver_init): Likewise.
7983 2021-10-14 Martin Jambor <mjambor@suse.cz>
7985 * params.opt (ipa-cp-recursive-freq-factor): New.
7986 * ipa-cp.c (ipcp_value): Switch to inline initialization. New members
7987 scc_no, self_recursion_generated_level, same_scc and
7988 self_recursion_generated_p.
7989 (ipcp_lattice::add_value): Replaced parameter unlimited with
7990 same_lat_gen_level, usit it determine limit of values and store it to
7992 (ipcp_lattice<valtype>::print): Dump the new fileds.
7993 (allocate_and_init_ipcp_value): Take same_lat_gen_level as a new
7994 parameter and store it to the new value.
7995 (self_recursively_generated_p): Removed.
7996 (propagate_vals_across_arith_jfunc): Use self_recursion_generated_p
7997 instead of self_recursively_generated_p, store self generation level
7999 (value_topo_info<valtype>::add_val): Set scc_no.
8000 (value_topo_info<valtype>::propagate_effects): Multiply frequencies of
8001 recursively feeding values and self generated values by appropriate
8004 2021-10-14 Richard Sandiford <richard.sandiford@arm.com>
8006 * config/aarch64/aarch64.c (aarch64_add_stmt_cost): Remove
8007 redundant test for flag_vect_cost_model.
8009 2021-10-14 Aldy Hernandez <aldyh@redhat.com>
8011 * bitmap.c (debug): New overloaded function for auto_bitmaps.
8012 * bitmap.h (debug): Same.
8014 2021-10-14 Hongyu Wang <hongyu.wang@intel.com>
8016 * config/i386/avx512fp16intrin.h (_mm512_mask_fcmadd_pch):
8017 Adjust builtin call.
8018 (_mm512_mask3_fcmadd_pch): Likewise.
8019 (_mm512_mask_fmadd_pch): Likewise
8020 (_mm512_mask3_fmadd_pch): Likewise
8021 (_mm512_mask_fcmadd_round_pch): Likewise
8022 (_mm512_mask3_fcmadd_round_pch): Likewise
8023 (_mm512_mask_fmadd_round_pch): Likewise
8024 (_mm512_mask3_fmadd_round_pch): Likewise
8025 (_mm_mask_fcmadd_sch): Likewise
8026 (_mm_mask3_fcmadd_sch): Likewise
8027 (_mm_mask_fmadd_sch): Likewise
8028 (_mm_mask3_fmadd_sch): Likewise
8029 (_mm_mask_fcmadd_round_sch): Likewise
8030 (_mm_mask3_fcmadd_round_sch): Likewise
8031 (_mm_mask_fmadd_round_sch): Likewise
8032 (_mm_mask3_fmadd_round_sch): Likewise
8033 (_mm_fcmadd_round_sch): Likewise
8034 * config/i386/avx512fp16vlintrin.h (_mm_mask_fmadd_pch):
8035 Adjust builtin call.
8036 (_mm_mask3_fmadd_pch): Likewise
8037 (_mm256_mask_fmadd_pch): Likewise
8038 (_mm256_mask3_fmadd_pch): Likewise
8039 (_mm_mask_fcmadd_pch): Likewise
8040 (_mm_mask3_fcmadd_pch): Likewise
8041 (_mm256_mask_fcmadd_pch): Likewise
8042 (_mm256_mask3_fcmadd_pch): Likewise
8043 * config/i386/i386-builtin.def: Add mask3 builtin for complex
8044 fma, and adjust mask_builtin to corresponding expander.
8045 * config/i386/i386-expand.c (ix86_expand_round_builtin):
8046 Skip eraseing embedded rounding for expanders that emits
8048 * config/i386/sse.md (complexmove): New mode_attr.
8049 (<avx512>_fmaddc_<mode>_mask1<round_expand_name>): New expander.
8050 (<avx512>_fcmaddc_<mode>_mask1<round_expand_name>): Likewise.
8051 (avx512fp16_fmaddcsh_v8hf_mask1<round_expand_name>): Likewise.
8052 (avx512fp16_fcmaddcsh_v8hf_mask1<round_expand_name>): Likewise.
8053 (avx512fp16_fcmaddcsh_v8hf_mask3<round_expand_name>): Likewise.
8054 (avx512fp16_fmaddcsh_v8hf_mask3<round_expand_name>): Likewise.
8055 * config/i386/subst.md (round_embedded_complex): New subst.
8057 2021-10-14 John David Anglin <danglin@gcc.gnu.org>
8059 * config/pa/pa.md (cbranchsf4): Disable if TARGET_SOFT_FLOAT.
8060 (cbranchdf4): Likewise.
8061 Add missing move patterns for TARGET_SOFT_FLOAT.
8063 2021-10-13 Roger Sayle <roger@nextmovesoftware.com>
8065 * config/i386/i386-expand.c (ix86_expand_vector_move): Use a
8066 pseudo intermediate when moving a SUBREG into a hard register,
8067 by checking ix86_hardreg_mov_ok.
8068 (ix86_expand_vector_extract): Store zero-extended SImode
8069 intermediate in a pseudo, then set target using a SUBREG_PROMOTED
8071 * config/i386/sse.md (mov<VMOVE>_internal): Prevent CSE creating
8072 complex (SUBREG) sets of (vector) hard registers before reload, by
8073 checking ix86_hardreg_mov_ok.
8075 2021-10-13 Indu Bhagat <indu.bhagat@oracle.com>
8077 * ctfc.h (enum ctf_dtu_d_union_enum): Remove redundant comma.
8079 2021-10-13 Indu Bhagat <indu.bhagat@oracle.com>
8081 * dwarf2ctf.c (gen_ctf_array_type): Fix typo in comment.
8083 2021-10-13 Martin Sebor <msebor@redhat.com>
8085 PR middle-end/102630
8086 * pointer-query.cc (compute_objsize_r): Handle named address spaces.
8088 2021-10-13 Iain Sandoe <iain@sandoe.co.uk>
8090 * collect2.c (is_lto_object_file): Release simple-object
8091 resources, close files.
8093 2021-10-13 Andre Vieira <andre.simoesdiasvieira@arm.com>
8095 * config/arm/arm.c (thumb2_legitimate_address_p): Use VALID_MVE_MODE
8096 when checking mve addressing modes.
8097 (mve_vector_mem_operand): Fix the way we handle pre, post and offset
8099 (arm_print_operand): Fix printing of POST_ and PRE_MODIFY.
8100 * config/arm/mve.md: Use mve_memory_operand predicate everywhere where
8101 there is a single Ux constraint.
8103 2021-10-13 John David Anglin <danglin@gcc.gnu.org>
8105 * config/pa/pa.md (muldi3): Add support for inlining 64-bit
8106 multiplication on 32-bit PA 1.1 and 2.0 targets.
8108 2021-10-13 Martin Liska <mliska@suse.cz>
8110 PR gcov-profile/90364
8111 * coverage.c (build_info): Emit checksum to the global variable.
8112 (build_info_type): Add new field for checksum.
8113 (coverage_obj_finish): Pass object_checksum.
8114 (coverage_init): Use 0 as checksum for .gcno files.
8115 * gcov-dump.c (dump_gcov_file): Dump also new checksum field.
8116 * gcov.c (read_graph_file): Read also checksum.
8117 * doc/invoke.texi: Document the behaviour change.
8119 2021-10-13 Richard Biener <rguenther@suse.de>
8121 * gimple-iterator.h (gsi_iterator_update): Add GSI_LAST_NEW_STMT,
8122 start at integer value 2.
8123 * gimple-iterator.c (gsi_insert_seq_nodes_before): Update
8124 the iterator for GSI_LAST_NEW_STMT.
8125 (gsi_insert_seq_nodes_after): Likewise.
8126 * tree-if-conv.c (predicate_statements): Use GSI_LAST_NEW_STMT.
8127 * tree-ssa.c (execute_update_addresses_taken): Correct bogus
8128 arguments to gsi_replace.
8130 2021-10-13 Martin Liska <mliska@suse.cz>
8133 * common.opt: Use EnabledBy instead of detection in
8134 finish_options and process_options.
8135 * opts.c (finish_options): Remove handling of
8136 x_flag_unroll_all_loops.
8137 * toplev.c (process_options): Likewise for flag_web and
8138 flag_rename_registers.
8140 2021-10-13 Richard Biener <rguenther@suse.de>
8142 PR tree-optimization/102659
8143 * tree-if-conv.c (need_to_rewrite_undefined): New flag.
8144 (if_convertible_gimple_assign_stmt_p): Mark the loop for
8145 rewrite when stmts with undefined behavior on integer
8147 (combine_blocks): Predicate also when we need to rewrite stmts.
8148 (predicate_statements): Rewrite affected stmts to something
8149 with well-defined behavior on overflow.
8150 (tree_if_conversion): Initialize need_to_rewrite_undefined.
8152 2021-10-13 Richard Biener <rguenther@suse.de>
8155 * ipa-sra.c (ptr_parm_has_nonarg_uses): Fix volatileness
8158 2021-10-13 Jose E. Marchesi <jose.marchesi@oracle.com>
8160 * dwarf2ctf.c: Fix typo in comment.
8162 2021-10-12 Bill Schmidt <wschmidt@linux.ibm.com>
8165 * config/rs6000/altivec.h (vec_cpsgn): Swap operand order.
8166 * config/rs6000/rs6000-overload.def (VEC_COPYSIGN): Use SKIP to
8167 avoid generating an automatic #define of vec_cpsgn. Use the
8168 correct built-in for V4SFmode that doesn't depend on VSX.
8170 2021-10-12 Uroš Bizjak <ubizjak@gmail.com>
8174 * config/i386/i386.md (*add<mode>_1_slp): Rewrite as
8175 define_insn_and_split pattern. Add alternative 1 and split it
8176 post reload to insert operand 1 into the low part of operand 0.
8177 (*sub<mode>_1_slp): Ditto.
8178 (*and<mode>_1_slp): Ditto.
8179 (*<any_or:code><mode>_1_slp): Ditto.
8180 (*ashl<mode>3_1_slp): Ditto.
8181 (*<any_shiftrt:insn><mode>3_1_slp): Ditto.
8182 (*<any_rotate:insn><mode>3_1_slp): Ditto.
8183 (*neg<mode>_1_slp): New insn_and_split pattern.
8184 (*one_cmpl<mode>_1_slp): Ditto.
8186 2021-10-12 David Edelsohn <dje.gcc@gmail.com>
8188 * doc/install.texi: Update MinGW and mingw-64 Binaries
8191 2021-10-12 Daniel Le Duc Khoi Nguyen <greenrecyclebin@gmail.com>
8193 * doc/extend.texi (Common Variable Attributes): Fix typos in
8194 alloc_size documentation.
8196 2021-10-12 Richard Biener <rguenther@suse.de>
8198 PR tree-optimization/102696
8199 * tree-vect-slp.c (vect_build_slp_tree_2): Properly mark
8200 the tree fatally failed when we reject a BIT_FIELD_REF.
8202 2021-10-12 Richard Biener <rguenther@suse.de>
8204 PR tree-optimization/102572
8205 * tree-vect-stmts.c (vect_build_gather_load_calls): When
8206 gathering the vectorized defs for the mask pass in the
8207 desired mask vector type so invariants will be handled
8210 2021-10-12 Tamar Christina <tamar.christina@arm.com>
8212 * config/aarch64/aarch64-sve.md (*fcm<cmp_op><mode>_bic_combine,
8213 *fcm<cmp_op><mode>_nor_combine, *fcmuo<mode>_bic_combine,
8214 *fcmuo<mode>_nor_combine): New.
8216 2021-10-12 Eric Botcazou <ebotcazou@adacore.com>
8219 * config/sparc/sparc-modes.def (OI): New integer mode.
8221 2021-10-12 Jakub Jelinek <jakub@redhat.com>
8223 * gimple-fold.h (clear_padding_type_may_have_padding_p): Declare.
8224 * gimple-fold.c (clear_padding_type_may_have_padding_p): No longer
8227 2021-10-12 Jakub Jelinek <jakub@redhat.com>
8229 * tree-vectorizer.h (loop_cost_model): New function.
8230 (unlimited_cost_model): Use it.
8231 * tree-vect-loop.c (vect_analyze_loop_costing): Use loop_cost_model
8232 call instead of flag_vect_cost_model.
8233 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
8234 (vect_prune_runtime_alias_test_list): Likewise. Also use it instead
8235 of flag_simd_cost_model.
8237 2021-10-12 liuhongt <hongtao.liu@intel.com>
8240 * config/i386/i386-expand.c (emit_reduc_half): Handle
8242 * config/i386/mmx.md (reduc_<code>_scal_v4qi): New expander.
8243 (reduc_plus_scal_v4qi): Ditto.
8245 2021-10-12 Paul A. Clarke <pc@us.ibm.com>
8247 * config/rs6000/smmintrin.h (_mm_cmpeq_epi64, _mm_cmpgt_epi64,
8248 _mm_mullo_epi32, _mm_mul_epi32, _mm_packus_epi32): New.
8249 * config/rs6000/nmmintrin.h: Copy from i386, tweak to suit.
8251 2021-10-12 Paul A. Clarke <pc@us.ibm.com>
8253 * config/rs6000/smmintrin.h (_mm_cvtepi8_epi16, _mm_cvtepi8_epi32,
8254 _mm_cvtepi8_epi64, _mm_cvtepi16_epi32, _mm_cvtepi16_epi64,
8255 _mm_cvtepi32_epi64, _mm_cvtepu8_epi16, _mm_cvtepu8_epi32,
8256 _mm_cvtepu8_epi64, _mm_cvtepu16_epi32, _mm_cvtepu16_epi64,
8257 _mm_cvtepu32_epi64): New.
8259 2021-10-12 Paul A. Clarke <pc@us.ibm.com>
8261 * config/rs6000/smmintrin.h (_mm_test_all_zeros,
8262 _mm_test_all_ones, _mm_test_mix_ones_zeros): Rewrite as macro.
8264 2021-10-12 Paul A. Clarke <pc@us.ibm.com>
8266 * config/rs6000/smmintrin.h (_mm_min_epi8, _mm_min_epu16,
8267 _mm_min_epi32, _mm_min_epu32, _mm_max_epi8, _mm_max_epu16,
8268 _mm_max_epi32, _mm_max_epu32): New.
8270 2021-10-11 Jan Hubicka <hubicka@ucw.cz>
8272 * ipa-modref-tree.h (struct modref_access_node): Revert
8274 (struct modref_ref_node): Likewise.
8276 2021-10-11 Jan Hubicka <hubicka@ucw.cz>
8278 * ipa-modref-tree.h (modref_tree::global_access_p): New member
8281 (implicint_const_eaf_flags,implicit_pure_eaf_flags,
8282 ignore_stores_eaf_flags): Move to ipa-modref.h
8283 (remove_useless_eaf_flags): Remove early exit on NOCLOBBER.
8284 (modref_summary::global_memory_read_p): New member function.
8285 (modref_summary::global_memory_written_p): New member function.
8286 * ipa-modref.h (modref_summary::global_memory_read_p,
8287 modref_summary::global_memory_written_p): Declare.
8288 (implicint_const_eaf_flags,implicit_pure_eaf_flags,
8289 ignore_stores_eaf_flags): move here.
8290 * tree-ssa-structalias.c: Include ipa-modref-tree.h, ipa-modref.h
8292 (handle_rhs_call): Rewrite.
8293 (handle_call_arg): New function.
8294 (determine_global_memory_access): New function.
8295 (handle_const_call): Remove
8296 (handle_pure_call): Remove
8297 (find_func_aliases_for_call): Update use of handle_rhs_call.
8298 (compute_points_to_sets): Handle global memory acccesses
8301 2021-10-11 Diane Meirowitz <diane.meirowitz@oracle.com>
8303 * doc/invoke.texi: Add link to UndefinedBehaviorSanitizer
8304 documentation, mention UBSAN_OPTIONS, similar to what is done
8305 for AddressSanitizer.
8307 2021-10-11 Richard Biener <rguenther@suse.de>
8309 PR middle-end/102683
8310 * internal-fn.c (expand_DEFERRED_INIT): Check for mode
8311 availability before building an integer type for storage
8314 2021-10-11 Richard Biener <rguenther@suse.de>
8316 PR middle-end/101480
8317 * gimple.c (gimple_call_fnspec): Do not mark operator new/delete
8320 2021-10-11 Martin Liska <mliska@suse.cz>
8322 * common.opt: Remove Init(2) for some options.
8323 * toplev.c (process_options): Do not use AUTODETECT_VALUE, but
8324 use rather OPTION_SET_P.
8326 2021-10-11 Martin Liska <mliska@suse.cz>
8328 * common.opt: Remove usage of IRA_REGION_AUTODETECT.
8329 * flag-types.h (enum ira_region): Likewise.
8330 * toplev.c (process_options): Use OPTION_SET_P instead of
8331 IRA_REGION_AUTODETECT.
8333 2021-10-11 Jakub Jelinek <jakub@redhat.com>
8335 * omp-low.c (omp_runtime_api_call): Handle omp_get_max_teams,
8336 omp_[sg]et_teams_thread_limit and omp_set_num_teams.
8338 2021-10-11 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
8340 * config/s390/s390-protos.h (s390_rawmemchr): Add prototype.
8341 * config/s390/s390.c (s390_rawmemchr): New function.
8342 * config/s390/s390.md (rawmemchr<SINT:mode>): New expander.
8343 * config/s390/vector.md (@vec_vfees<mode>): Basically a copy of
8344 the pattern vfees<mode> from vx-builtins.md.
8345 * config/s390/vx-builtins.md (*vfees<mode>): Remove.
8347 2021-10-11 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
8349 * builtins.c (get_memory_rtx): Change to external linkage.
8350 * builtins.h (get_memory_rtx): Add function prototype.
8351 * doc/md.texi (rawmemchr<mode>): Document.
8352 * internal-fn.c (expand_RAWMEMCHR): Define.
8353 * internal-fn.def (RAWMEMCHR): Add.
8354 * optabs.def (rawmemchr_optab): Add.
8355 * tree-loop-distribution.c (find_single_drs): Change return code
8356 behaviour by also returning true if no single store was found
8358 (loop_distribution::classify_partition): Respect the new return
8359 code behaviour of function find_single_drs.
8360 (loop_distribution::execute): Call new function
8361 transform_reduction_loop in order to replace rawmemchr or strlen
8362 like loops by calls into builtins.
8363 (generate_reduction_builtin_1): New function.
8364 (generate_rawmemchr_builtin): New function.
8365 (generate_strlen_builtin_1): New function.
8366 (generate_strlen_builtin): New function.
8367 (generate_strlen_builtin_using_rawmemchr): New function.
8368 (reduction_var_overflows_first): New function.
8369 (determine_reduction_stmt_1): New function.
8370 (determine_reduction_stmt): New function.
8371 (loop_distribution::transform_reduction_loop): New function.
8373 2021-10-11 Martin Liska <mliska@suse.cz>
8375 * tree.c (cl_option_hasher::hash): Use cl_optimization_hash
8376 and remove legacy hashing code.
8378 2021-10-11 Kito Cheng <kito.cheng@sifive.com>
8381 * builtins.c (maybe_emit_call_builtin___clear_cache): Allow
8382 CONST_INT for BEGIN and END, and use gcc_assert rather than
8385 2021-10-10 Jakub Jelinek <jakub@redhat.com>
8388 * var-tracking.c (add_stores): For cselib_sp_derived_value_p values
8389 use MO_VAL_SET if loc is not sp.
8391 2021-10-10 Andrew Pinski <apinski@marvell.com>
8393 PR tree-optimization/102622
8394 * match.pd: Swap the order of a?pow2cst:0 and a?-1:0 transformations.
8395 Swap the order of a?0:pow2cst and a?0:-1 transformations.
8397 2021-10-09 liuhongt <hongtao.liu@intel.com>
8400 * config/i386/i386-expand.c (ix86_valid_mask_cmp_mode): Handle
8402 (ix86_use_mask_cmp_p): Ditto.
8403 (ix86_expand_sse_movcc): Ditto.
8404 * config/i386/i386.md (setcc_hf_mask): New define_insn.
8405 (movhf_mask): Ditto.
8406 (UNSPEC_MOVCC_MASK): New unspec.
8407 * config/i386/sse.md (UNSPEC_PCMP): Move to i386.md.
8409 2021-10-08 Vladimir N. Makarov <vmakarov@redhat.com>
8411 PR rtl-optimization/102627
8412 * lra-constraints.c (split_reg): Use at least natural mode of hard reg.
8414 2021-10-08 Aldy Hernandez <aldyh@redhat.com>
8416 * gimple-range-cache.cc (non_null_ref::non_null_deref_p): Grow
8419 2021-10-08 Aldy Hernandez <aldyh@redhat.com>
8421 * value-range.cc (irange::debug): New.
8422 * value-range.h (irange::debug): New.
8424 2021-10-08 Richard Sandiford <richard.sandiford@arm.com>
8426 PR tree-optimization/102385
8427 * predict.h (change_edge_frequency): Declare.
8428 * predict.c (change_edge_frequency): New function.
8429 * tree-ssa-loop-manip.h (tree_transform_and_unroll_loop): Remove
8431 (tree_unroll_loop): Likewise.
8432 * gimple-loop-jam.c (tree_loop_unroll_and_jam): Update accordingly.
8433 * tree-predcom.c (pcom_worker::tree_predictive_commoning_loop):
8435 * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Likewise.
8436 * tree-ssa-loop-manip.c (tree_unroll_loop): Likewise.
8437 (tree_transform_and_unroll_loop): Likewise. Use single_dom_exit
8438 to retrieve the exit edges. Make all the old profile update code
8439 conditional on !single_loop_p -- the case it was written for --
8440 and use a different approach for the single-loop case.
8442 2021-10-08 Martin Liska <mliska@suse.cz>
8444 * config/alpha/alpha.c (alpha_option_override): Use new macro
8446 * config/arc/arc.c (arc_override_options): Likewise.
8447 * config/arm/arm.c (arm_option_override): Likewise.
8448 * config/bfin/bfin.c (bfin_load_pic_reg): Likewise.
8449 * config/c6x/c6x.c (c6x_option_override): Likewise.
8450 * config/csky/csky.c: Likewise.
8451 * config/darwin.c (darwin_override_options): Likewise.
8452 * config/frv/frv.c (frv_option_override): Likewise.
8453 * config/i386/djgpp.h: Likewise.
8454 * config/i386/i386.c (ix86_stack_protect_guard): Likewise.
8455 (ix86_max_noce_ifcvt_seq_cost): Likewise.
8456 * config/ia64/ia64.c (ia64_option_override): Likewise.
8457 (ia64_override_options_after_change): Likewise.
8458 * config/m32c/m32c.c (m32c_option_override): Likewise.
8459 * config/m32r/m32r.c (m32r_init): Likewise.
8460 * config/m68k/m68k.c (m68k_option_override): Likewise.
8461 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
8462 * config/mips/mips.c (mips_option_override): Likewise.
8463 * config/nios2/nios2.c (nios2_option_override): Likewise.
8464 * config/nvptx/nvptx.c (nvptx_option_override): Likewise.
8465 * config/pa/pa.c (pa_option_override): Likewise.
8466 * config/riscv/riscv.c (riscv_option_override): Likewise.
8467 * config/rs6000/aix71.h: Likewise.
8468 * config/rs6000/aix72.h: Likewise.
8469 * config/rs6000/aix73.h: Likewise.
8470 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Likewise.
8471 (rs6000_override_options_after_change): Likewise.
8472 (rs6000_linux64_override_options): Likewise.
8473 (glibc_supports_ieee_128bit): Likewise.
8474 (rs6000_option_override_internal): Likewise.
8475 (rs6000_file_start): Likewise.
8476 (rs6000_darwin_file_start): Likewise.
8477 * config/rs6000/rtems.h: Likewise.
8478 * config/rs6000/sysv4.h: Likewise.
8479 * config/rs6000/vxworks.h (SUB3TARGET_OVERRIDE_OPTIONS): Likewise.
8480 * config/s390/s390.c (s390_option_override): Likewise.
8481 * config/sh/linux.h: Likewise.
8482 * config/sh/netbsd-elf.h (while): Likewise.
8483 * config/sh/sh.c (sh_option_override): Likewise.
8484 * config/sol2.c (solaris_override_options): Likewise.
8485 * config/sparc/sparc.c (sparc_option_override): Likewise.
8486 * config/tilegx/tilegx.c (tilegx_option_override): Likewise.
8487 * config/visium/visium.c (visium_option_override): Likewise.
8488 * config/vxworks.c (vxworks_override_options): Likewise.
8489 * lto-opts.c (lto_write_options): Likewise.
8490 * omp-expand.c (expand_omp_simd): Likewise.
8491 * omp-general.c (omp_max_vf): Likewise.
8492 * omp-offload.c (oacc_xform_loop): Likewise.
8493 * opts.h (OPTION_SET_P): Likewise.
8494 * targhooks.c (default_max_noce_ifcvt_seq_cost): Likewise.
8495 * toplev.c (process_options): Likewise.
8496 * tree-predcom.c: Likewise.
8497 * tree-sra.c (analyze_all_variable_accesses): Likewise.
8499 2021-10-08 liuhongt <hongtao.liu@intel.com>
8502 * config/i386/i386.c (ix86_optab_supported_p):
8503 Return true for HFmode.
8504 * match.pd: Simplify (_Float16) ceil ((double) x) to
8505 __builtin_ceilf16 (a) when a is _Float16 type and
8506 direct_internal_fn_supported_p.
8508 2021-10-08 liuhongt <hongtao.liu@intel.com>
8511 * config/i386/i386-expand.c (emit_reduc_half): Hanlde V4HImode.
8512 * config/i386/mmx.md (reduc_plus_scal_v4hi): New.
8513 (reduc_<code>_scal_v4hi): New.
8515 2021-10-08 liuhongt <hongtao.liu@intel.com>
8517 * common.opt (ftree-vectorize): Add Var(flag_tree_vectorize).
8518 * doc/invoke.texi (Options That Control Optimization): Update
8520 * opts.c (default_options_table): Enable auto-vectorization at
8521 O2 with very-cheap cost model.
8522 (finish_options): Use cheap cost model for
8523 explicit -ftree{,-loop}-vectorize.
8525 2021-10-07 Indu Bhagat <indu.bhagat@oracle.com>
8527 * ctfc.c (ctfc_delete_container): Free hash table contents.
8529 2021-10-07 Indu Bhagat <indu.bhagat@oracle.com>
8531 * toplev.c (process_options): Do not warn for GNU GIMPLE.
8533 2021-10-07 Siddhesh Poyarekar <siddhesh@gotplt.org>
8535 * tree-object-size.c (addr_object_size,
8536 compute_builtin_object_size): Drop PDECL and POFF arguments.
8537 (addr_object_size): Adjust calls.
8538 * tree-object-size.h (compute_builtin_object_size): Drop PDECL
8541 2021-10-07 Roger Sayle <roger@nextmovesoftware.com>
8543 * rtl.def (SMUL_HIGHPART, UMUL_HIGHPART): New RTX codes for
8544 representing signed and unsigned high-part multiplication resp.
8545 * simplify-rtx.c (simplify_binary_operation_1) [SMUL_HIGHPART,
8546 UMUL_HIGHPART]: Simplify high-part multiplications by zero.
8547 [SS_PLUS, US_PLUS, SS_MINUS, US_MINUS, SS_MULT, US_MULT,
8548 SS_DIV, US_DIV]: Similar simplifications for saturating
8550 (simplify_const_binary_operation) [SS_PLUS, US_PLUS, SS_MINUS,
8551 US_MINUS, SS_MULT, US_MULT, SMUL_HIGHPART, UMUL_HIGHPART]:
8552 Implement compile-time evaluation for constant operands.
8553 * dwarf2out.c (mem_loc_descriptor): Skip SMUL_HIGHPART and
8555 * doc/rtl.texi (smul_highpart, umul_highpart): Document RTX codes.
8556 * doc/md.texi (smul@var{m}3_highpart, umul@var{m3}_highpart):
8557 Mention the new smul_highpart and umul_highpart RTX codes.
8558 * doc/invoke.texi: Silence @xref "compilation" warnings.
8560 2021-10-07 Martin Jambor <mjambor@suse.cz>
8563 * ipa-prop.c (ipa_edge_args_sum_t::duplicate): Also handle the
8564 case when the source reference description corresponds to a
8565 referance taken in a function src->caller is inlined to.
8567 2021-10-07 Jan Hubicka <hubicka@ucw.cz>
8570 * ipa-modref-tree.h (modref_access_node::contains_p): Handle offsets
8572 (modref_access_node::try_merge_with): Add sanity check that there
8573 are no redundant entries in the list.
8575 2021-10-07 Richard Biener <rguenther@suse.de>
8577 PR tree-optimization/102608
8578 * tree-ssa-sccvn.c (visit_stmt): Drop .DEFERRED_INIT to
8581 2021-10-07 Martin Liska <mliska@suse.cz>
8583 * toplev.c (toplev::main): Make
8584 save_opt_decoded_options a pointer type
8585 * toplev.h: Likewise.
8587 2021-10-07 Andrew Stubbs <ams@codesourcery.com>
8589 * config/gcn/gcn-valu.md (gather<mode>_insn_2offsets<exec>): Apply
8590 HAVE_GCN_ASM_GLOBAL_LOAD_FIXED.
8591 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
8593 2021-10-07 Andrew Stubbs <ams@codesourcery.com>
8595 * config/gcn/gcn-hsa.h (SRAMOPT): Include the whole option string.
8596 Adjust for new -msram-ecc=any behaviour.
8597 (ASM_SPEC): Adjust -mxnack and -msram-ecc usage.
8598 * config/gcn/gcn.c (output_file_start): Implement -msram-ecc=any.
8599 * config/gcn/mkoffload.c (EF_AMDGPU_XNACK): Rename to ...
8600 (EF_AMDGPU_XNACK_V3): ... this.
8601 (EF_AMDGPU_SRAM_ECC): Rename to ...
8602 (EF_AMDGPU_SRAM_ECC_V3): ... this.
8603 (EF_AMDGPU_FEATURE_XNACK_V4): New.
8604 (EF_AMDGPU_FEATURE_XNACK_UNSUPPORTED_V4): New.
8605 (EF_AMDGPU_FEATURE_XNACK_ANY_V4): New.
8606 (EF_AMDGPU_FEATURE_XNACK_OFF_V4): New.
8607 (EF_AMDGPU_FEATURE_XNACK_ON_V4): New.
8608 (EF_AMDGPU_FEATURE_SRAMECC_V4): New.
8609 (EF_AMDGPU_FEATURE_SRAMECC_UNSUPPORTED_V4): New.
8610 (EF_AMDGPU_FEATURE_SRAMECC_ANY_V4): New.
8611 (EF_AMDGPU_FEATURE_SRAMECC_OFF_V4): New.
8612 (EF_AMDGPU_FEATURE_SRAMECC_ON_V4): New.
8613 (SET_XNACK_ON): New.
8614 (SET_XNACK_OFF): New.
8616 (SET_SRAM_ECC_ON): New.
8617 (SET_SRAM_ECC_ANY): New.
8618 (SET_SRAM_ECC_OFF): New.
8619 (TEST_SRAM_ECC_ANY): New.
8620 (TEST_SRAM_ECC_ON): New.
8621 (main): Implement HSACOv4 and -msram-ecc=any.
8623 2021-10-07 Andrew Stubbs <ams@codesourcery.com>
8625 * config.in: Regenerate.
8626 * config/gcn/gcn-hsa.h (X_FIJI): New macro.
8630 (A_FIJI): Rename to ...
8632 (A_900): Rename to ...
8634 (A_906): Rename to ...
8636 (A_908): Rename to ...
8638 (SRAMOPT): New macro.
8639 (ASM_SPEC): Adjust xnack option usage.
8640 * config/gcn/gcn.c (output_file_start): Adjust amdgcn_target usage.
8641 * configure: Regenerate.
8642 * configure.ac: Detect LLVM assembler dialect.
8644 2021-10-07 Richard Biener <rguenther@suse.de>
8646 * tree-pretty-print.c (dump_generic_node): Do not elide
8647 printing '&' when dumping with -gimple.
8649 2021-10-06 Andrew MacLeod <amacleod@redhat.com>
8651 * gimple-range-cache.cc (non_null_ref::adjust_range): Call new
8653 * gimple-range-fold.cc (adjust_pointer_diff_expr): Ditto.
8654 (adjust_imagpart_expr): Ditto.
8655 * value-range.cc (irange::irange_intersect): Call new routine if
8656 RHS is a single pair.
8657 (irange::intersect): New wide_int version.
8658 * value-range.h (class irange): New prototype.
8660 2021-10-06 Andrew MacLeod <amacleod@redhat.com>
8662 * gimple-range-edge.cc (gimple_outgoing_range::gimple_outgoing_range):
8663 Add parameter to limit size when recognizing switches.
8664 (gimple_outgoing_range::edge_range_p): Check size limit.
8665 * gimple-range-edge.h (gimple_outgoing_range): Add size field.
8666 * gimple-range-gori.cc (gori_map::calculate_gori): Ignore switches
8667 that exceed the size limit.
8668 (gori_compute::gori_compute): Add initializer.
8669 * params.opt (evrp-switch-limit): New.
8670 * doc/invoke.texi: Update docs.
8672 2021-10-06 Andrew MacLeod <amacleod@redhat.com>
8674 * value-range.h (irange::set_varying): Use TYPE_MIN_VALUE and
8675 TYPE_MAX_VALUE instead of creating new trees when possible.
8677 2021-10-06 Andrew MacLeod <amacleod@redhat.com>
8679 * gimple-range-cache.cc (non_null_ref::adjust_range): Check for
8680 zero and non-zero more efficently.
8682 2021-10-06 Richard Biener <rguenther@suse.de>
8685 * dumpfile.h (TDF_GIMPLE_VAL): New.
8686 (dump_flag): Re-order and adjust TDF_* flags. Make
8687 the enum uint32_t. Use std::underlying_type in the
8689 (optgroup_flag): Likewise for the operator overloads.
8690 * tree-pretty-print.c (dump_generic_node): Wrap ADDR_EXPR
8691 in _Literal if TDF_GIMPLE_VAL.
8692 * gimple-pretty-print.c (dump_gimple_assign): Add
8693 TDF_GIMPLE_VAL to flags when dumping operands where only
8694 is_gimple_val are allowed.
8695 (dump_gimple_cond): Likewise.
8697 2021-10-06 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
8699 * gimple-isel.cc (gimple_expand_vec_cond_expr): Remove redundant if
8702 2021-10-05 qing zhao <qing.zhao@oracle.com>
8704 PR middle-end/102359
8705 * gimplify.c (gimplify_decl_expr): Not add initialization for an
8706 auto variable when it has been initialized by frontend.
8708 2021-10-05 Aldy Hernandez <aldyh@redhat.com>
8710 * tree-ssa-threadupdate.c (jt_path_registry::cancel_invalid_paths):
8713 2021-10-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
8715 * common/config/avr/avr-common.c (avr_handle_option): Mark
8716 argument as ATTRIBUTE_UNUSED.
8718 2021-10-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
8720 * config/lm32/uclinux-elf.h (LINK_GCC_C_SEQUENCE_SPEC):
8721 Undefine before redefinition.
8723 2021-10-05 Richard Biener <rguenther@suse.de>
8725 * toplev.c (no_backend): Remove global var.
8726 (process_options): Pass in no_backend, move post_options
8727 langhook call to toplev::main.
8728 (do_compile): Pass in no_backend, move process_options call
8730 (toplev::run_self_tests): Check no_backend at the caller.
8731 (toplev::main): Call post_options and process_options
8732 split out from do_compile, do self-tests only if
8733 no_backend is initialized.
8735 2021-10-05 Richard Biener <rguenther@suse.de>
8737 * tree-cfg.c (dump_function_to_file): Dump the UID of the
8738 function as part of the name when requested.
8739 * tree-pretty-print.c (dump_function_name): Dump the UID when
8740 requested and the langhook produced the actual name.
8742 2021-10-05 Richard Biener <rguenther@suse.de>
8744 PR middle-end/102587
8745 PR middle-end/102285
8746 * internal-fn.c (expand_DEFERRED_INIT): Fall back to
8747 zero-initialization as last resort, use the constant
8748 size as given by the DEFERRED_INIT argument to build
8751 2021-10-04 Marek Polacek <polacek@redhat.com>
8754 * doc/invoke.texi: Document -Warray-compare.
8756 2021-10-04 Richard Biener <rguenther@suse.de>
8758 * gimplify.c (is_var_need_auto_init): DECL_HARD_REGISTER
8759 variables are not to be initialized.
8761 2021-10-04 Richard Biener <rguenther@suse.de>
8763 * expr.h (non_mem_decl_p): Declare.
8764 (mem_ref_refers_to_non_mem_p): Likewise.
8765 * expr.c (non_mem_decl_p): Export.
8766 (mem_ref_refers_to_non_mem_p): Likewise.
8767 * internal-fn.c (expand_DEFERRED_INIT): Do not expand the LHS
8768 but check the base with mem_ref_refers_to_non_mem_p
8771 2021-10-04 Richard Biener <rguenther@suse.de>
8773 PR tree-optimization/102570
8774 * tree-ssa-sccvn.h (vn_reference_op_struct): Document
8775 we are using clique for the internal function code.
8776 * tree-ssa-sccvn.c (vn_reference_op_eq): Compare the
8777 internal function code.
8778 (print_vn_reference_ops): Print the internal function code.
8779 (vn_reference_op_compute_hash): Hash it.
8780 (copy_reference_ops_from_call): Record it.
8781 (visit_stmt): Remove the restriction around internal function
8783 (fully_constant_vn_reference_p): Use fold_const_call and handle
8785 (vn_reference_eq): Compare call return types.
8786 * tree-ssa-pre.c (create_expression_by_pieces): Handle
8787 generating calls to internal functions.
8788 (compute_avail): Remove the restriction around internal function
8791 2021-10-04 Aldy Hernandez <aldyh@redhat.com>
8793 PR tree-optimization/102560
8794 * gimple-ssa-warn-alloca.c (alloca_call_type): Remove static
8795 marker for invalid_range.
8797 2021-10-04 Richard Biener <rguenther@suse.de>
8799 PR middle-end/102587
8800 * internal-fn.c (expand_DEFERRED_INIT): Guard register
8801 initialization path an avoid initializing VLA registers
8804 2021-10-04 Eric Botcazou <ebotcazou@adacore.com>
8806 * config/rs6000/vxworks.h (TARGET_INIT_LIBFUNCS): Delete.
8808 2021-10-03 Martin Liska <mliska@suse.cz>
8810 * toplev.c (toplev::main): Check opt_index if it is a part
8813 2021-10-02 Aldy Hernandez <aldyh@redhat.com>
8815 PR tree-optimization/102563
8816 * range-op.cc (operator_lshift::op1_range): Do not clobber
8819 2021-10-02 Martin Liska <mliska@suse.cz>
8821 * toplev.c (toplev::main): save_decoded_options[0] is program
8822 name and so it should be skipped.
8824 2021-10-01 Aldy Hernandez <aldyh@redhat.com>
8826 PR tree-optimization/102546
8827 * range-op.cc (operator_lshift::op1_range): Teach range-ops that
8828 X << Y is non-zero implies X is also non-zero.
8830 2021-10-01 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
8832 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New
8834 * config/aarch64/aarch64-tune.md: Regenerate.
8835 * doc/invoke.texi: Update docs.
8837 2021-10-01 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
8839 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New
8841 * config/aarch64/aarch64-tune.md: Regenerate.
8842 * doc/invoke.texi: Update docs.
8844 2021-10-01 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
8846 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New
8848 * config/aarch64/aarch64-tune.md: Regenerate.
8849 * doc/invoke.texi: Update docs.
8851 2021-10-01 Martin Sebor <msebor@redhat.com>
8854 * doc/invoke.texi (-Waddress): Update.
8855 * gengtype.c (write_types): Avoid -Waddress.
8856 * poly-int.h (POLY_SET_COEFF): Avoid using null.
8858 2021-10-01 John David Anglin <danglin@gcc.gnu.org>
8861 * config/pa/pa.c (pa_option_override): Default to dwarf version 4
8864 2021-10-01 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
8866 * config/aarch64/aarch64.h (AARCH64_FL_V9): Update value.
8868 2021-10-01 Aldy Hernandez <aldyh@redhat.com>
8870 * gimple-range-path.cc (path_range_query::compute_ranges): Use
8872 * gimple-range-path.h (class path_range_query): Remove shadowed
8874 (path_range_query::get_path_oracle): New.
8876 2021-10-01 Jakub Jelinek <jakub@redhat.com>
8877 Richard Biener <rguenther@suse.de>
8880 * doc/invoke.texi (-fsanitize=integer-divide-by-zero): Remove
8881 INT_MIN / -1 division detection from here ...
8882 (-fsanitize=signed-integer-overflow): ... and add it here.
8884 2021-10-01 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
8886 * config/aarch64/aarch64-arches.def (AARCH64_ARCH): Added
8888 * config/aarch64/aarch64.h (AARCH64_FL_V9): New.
8889 (AARCH64_FL_FOR_ARCH9): New flags for Armv9-A.
8890 (AARCH64_ISA_V9): New ISA flag.
8891 * doc/invoke.texi: Update docs.
8893 2021-10-01 Martin Liska <mliska@suse.cz>
8895 * toplev.c (toplev::main): Save decoded optimization options.
8896 * toplev.h (save_opt_decoded_options): New.
8897 * doc/extend.texi: Be more clear about optimize and target
8900 2021-10-01 Eric Botcazou <ebotcazou@adacore.com>
8902 * explow.c: Include langhooks.h.
8903 (set_stack_check_libfunc): Build a proper function type.
8905 2021-10-01 Eric Botcazou <ebotcazou@adacore.com>
8908 * config/i386/i386.c (legitimate_pic_address_disp_p): For PE-COFF do
8909 not return true for external weak function symbols in medium model.
8911 2021-10-01 Jakub Jelinek <jakub@redhat.com>
8913 * tree.h (OMP_CLAUSE_ORDER_REPRODUCIBLE): Define.
8914 * tree-pretty-print.c (dump_omp_clause) <case OMP_CLAUSE_ORDER>: Print
8915 reproducible: for OMP_CLAUSE_ORDER_REPRODUCIBLE.
8916 * omp-general.c (omp_extract_for_data): If OMP_CLAUSE_ORDER is seen
8917 without OMP_CLAUSE_ORDER_UNCONSTRAINED, overwrite sched_kind to
8918 OMP_CLAUSE_SCHEDULE_STATIC.
8920 2021-10-01 Richard Biener <rguenther@suse.de>
8922 PR middle-end/102518
8923 * tree-inline.c (setup_one_parameter): Avoid substituting
8924 an invariant into contexts where a GIMPLE register is not valid.
8926 2021-09-30 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
8928 * config/arm/arm-cpus.in: Add Cortex-R52+ CPU.
8929 * config/arm/arm-tables.opt: Regenerate.
8930 * config/arm/arm-tune.md: Regenerate.
8931 * doc/invoke.texi: Update docs.
8933 2021-09-30 Uroš Bizjak <ubizjak@gmail.com>
8936 * config/i386/i386.md
8937 (sign_extend:WIDE (any_logic:NARROW (memory, immediate)) splitters):
8940 2021-09-30 Tobias Burnus <tobias@codesourcery.com>
8942 * omp-low.c (omp_runtime_api_call): Add omp_aligned_{,c}alloc and
8943 omp_{c,re}alloc, fix omp_alloc/omp_free.
8945 2021-09-30 Martin Liska <mliska@suse.cz>
8947 * defaults.h (ASM_OUTPUT_ASCII): Do not hide global variable
8948 asm_out_file and stream directly to MYFILE.
8950 2021-09-30 Richard Biener <rguenther@suse.de>
8952 * tree-vect-data-refs.c (vect_update_misalignment_for_peel):
8953 Restore and fix condition under which we apply npeel to
8954 the DRs misalignment value.
8956 2021-09-30 Richard Biener <rguenther@suse.de>
8958 * tree-vect-data-refs.c (vect_update_misalignment_for_peel):
8959 Fix npeel check for variable amount of peeling.
8961 2021-09-30 Aldy Hernandez <aldyh@redhat.com>
8963 * lto-wrapper.c (run_gcc): Plug snprintf overflow.
8965 2021-09-30 Aldy Hernandez <aldyh@redhat.com>
8967 * gimple-range.cc (gimple_ranger::debug): New.
8968 * gimple-range.h (class gimple_ranger): Add debug.
8970 2021-09-30 Aldy Hernandez <aldyh@redhat.com>
8972 PR middle-end/102519
8973 * tree-vrp.c (hybrid_threader::~hybrid_threader): Free m_query.
8975 2021-09-29 Indu Bhagat <indu.bhagat@oracle.com>
8978 * btfout.c (GTY): Add GTY (()) albeit for cosmetic only purpose.
8979 (btf_finalize): Empty the hash_map btf_var_ids.
8981 2021-09-29 Aldy Hernandez <aldyh@redhat.com>
8983 * tree-vrp.c (thread_through_all_blocks): Return bool.
8984 (execute_vrp_threader): Return TODO_* flags.
8985 (pass_data_vrp_threader): Set todo_flags_finish to 0.
8987 2021-09-29 Aldy Hernandez <aldyh@redhat.com>
8989 * timevar.def (TV_TREE_VRP_THREADER): New.
8990 * tree-vrp.c: Use TV_TREE_VRP_THREADER for VRP threader pass.
8992 2021-09-29 David Faust <david.faust@oracle.com>
8994 * config.gcc (bpf-*-*): Do not overwrite extra_headers.
8996 2021-09-29 Jonathan Wright <jonathan.wright@arm.com>
8998 * config/aarch64/aarch64-builtins.c (TYPES_BINOP_PPU): Define
8999 new type qualifier enum.
9000 (TYPES_TERNOP_SSSU): Likewise.
9001 (TYPES_TERNOP_PPPU): Likewise.
9002 * config/aarch64/aarch64-simd-builtins.def: Define PPU, SSU,
9003 PPPU and SSSU builtin generator macros for qtbl1 and qtbx1
9005 * config/aarch64/arm_neon.h (vqtbl1_p8): Use type-qualified
9006 builtin and remove casts.
9007 (vqtbl1_s8): Likewise.
9008 (vqtbl1q_p8): Likewise.
9009 (vqtbl1q_s8): Likewise.
9010 (vqtbx1_s8): Likewise.
9011 (vqtbx1_p8): Likewise.
9012 (vqtbx1q_s8): Likewise.
9013 (vqtbx1q_p8): Likewise.
9014 (vtbl1_p8): Likewise.
9015 (vtbl2_p8): Likewise.
9016 (vtbx2_p8): Likewise.
9018 2021-09-29 Richard Biener <rguenther@suse.de>
9020 * tree-vect-data-refs.c (vect_dr_misalign_for_aligned_access):
9022 (vect_update_misalignment_for_peel): Use it to update
9023 misaligned to the value necessary for an aligned access.
9024 (vect_get_peeling_costs_all_drs): Likewise.
9025 (vect_enhance_data_refs_alignment): Likewise.
9027 2021-09-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9029 * config/aarch64/aarch64.c (aarch64_expand_cpymem): Count number of
9030 emitted operations and adjust heuristic for code size.
9032 2021-09-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9034 * config/aarch64/aarch64.c (aarch64_expand_setmem): Count number of
9035 emitted operations and adjust heuristic for code size.
9037 2021-09-29 Jakub Jelinek <jakub@redhat.com>
9039 PR middle-end/102504
9040 * gimplify.c (gimplify_scan_omp_clauses): Use omp_check_private even
9041 in OMP_SCOPE clauses, not just on worksharing construct clauses.
9043 2021-09-28 Geng Qi <gengqi@linux.alibaba.com>
9045 * config/riscv/riscv.md (mulv<mode>4): Call gen_smul<mode>3_highpart.
9046 (<u>mulditi3): Call <su>muldi3_highpart.
9047 (<u>muldi3_highpart): Rename to <su>muldi3_highpart.
9048 (<u>mulsidi3): Call <su>mulsi3_highpart.
9049 (<u>mulsi3_highpart): Rename to <su>mulsi3_highpart.
9051 2021-09-28 Iain Sandoe <iain@sandoe.co.uk>
9053 * config/darwin.h (DSYMUTIL_SPEC): Recognize D sources.
9055 2021-09-28 Iain Sandoe <iain@sandoe.co.uk>
9057 * config/rs6000/darwin.h (FIXED_R13): Add for PPC64.
9058 (FIRST_SAVED_GP_REGNO): Save from R13 even when it is one
9061 2021-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9063 * config/aarch64/aarch64.h (AARCH64_FL_LS64): Define
9064 (AARCH64_FL_V8_7): Likewise.
9065 (AARCH64_FL_FOR_ARCH8_7): Likewise.
9066 * config/aarch64/aarch64-arches.def (armv8.7-a): Define.
9067 * config/aarch64/aarch64-option-extensions.def (ls64): Define.
9068 * doc/invoke.texi: Document the above.
9070 2021-09-28 Aldy Hernandez <aldyh@redhat.com>
9072 * dbgcnt.c (dbg_cnt_counter): New.
9073 * dbgcnt.h (dbg_cnt_counter): New.
9074 * dumpfile.c (dump_options): Add entry for TDF_THREADING.
9075 * dumpfile.h (enum dump_flag): Add TDF_THREADING.
9076 * gimple-range-path.cc (DEBUG_SOLVER): Use TDF_THREADING.
9077 * tree-ssa-threadupdate.c (dump_jump_thread_path): Dump out
9080 2021-09-28 Aldy Hernandez <aldyh@redhat.com>
9082 * cfgcleanup.c (pass_jump::execute): Check
9083 flag_expensive_optimizations.
9084 (pass_jump_after_combine::gate): Same.
9085 * doc/invoke.texi (-fthread-jumps): Enable for -O1.
9086 * opts.c (default_options_table): Enable -fthread-jumps at -O1.
9087 * tree-ssa-threadupdate.c
9088 (fwd_jt_path_registry::remove_jump_threads_including): Bail unless
9091 2021-09-28 Ilya Leoshkevich <iii@linux.ibm.com>
9093 * tree-ssa-reassoc.c (biased_names): New global.
9094 (propagate_bias_p): New function.
9095 (loop_carried_phi): Remove.
9096 (propagate_rank): Propagate bias along single uses.
9097 (get_rank): Update biased_names when needed.
9099 2021-09-28 Ilya Leoshkevich <iii@linux.ibm.com>
9101 * passes.def (pass_reassoc): Rename parameter to early_p.
9102 * tree-ssa-reassoc.c (reassoc_bias_loop_carried_phi_ranks_p):
9104 (phi_rank): Don't bias loop-carried phi ranks
9105 before vectorization pass.
9106 (execute_reassoc): Add bias_loop_carried_phi_ranks_p parameter.
9107 (pass_reassoc::pass_reassoc): Add bias_loop_carried_phi_ranks_p
9109 (pass_reassoc::set_param): Set bias_loop_carried_phi_ranks_p
9111 (pass_reassoc::execute): Pass bias_loop_carried_phi_ranks_p to
9113 (pass_reassoc::bias_loop_carried_phi_ranks_p): New member.
9115 2021-09-28 Jakub Jelinek <jakub@redhat.com>
9118 * config/i386/i386.c (standard_80387_constant_p): Don't recognize
9119 special 80387 instruction XFmode constants if flag_rounding_math.
9121 2021-09-28 Richard Biener <rguenther@suse.de>
9123 PR tree-optimization/100112
9124 * tree-ssa-sccvn.c (visit_reference_op_load): Record the
9125 referece into the hashtable twice in case last_vuse is
9126 different from the original vuse on the stmt.
9128 2021-09-28 Jakub Jelinek <jakub@redhat.com>
9130 PR middle-end/102492
9131 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't call the
9132 omp_finish_clause langhook on implicitly added OMP_CLAUSE_PRIVATE
9133 clauses on SIMD constructs.
9135 2021-09-28 Aldy Hernandez <aldyh@redhat.com>
9137 PR tree-optimization/102511
9138 * gimple-range-path.cc (path_range_query::range_on_path_entry):
9139 Return VARYING when nothing found.
9141 2021-09-28 Hongyu Wang <hongyu.wang@intel.com>
9144 * config/i386/i386.h (VALID_AVX512FP16_REG_MODE): Add
9146 (VALID_SSE2_REG_VHF_MODE): Add V4HFmode and V2HFmode.
9147 (VALID_MMX_REG_MODE): Add V4HFmode.
9148 (SSE_REG_MODE_P): Replace VALID_AVX512FP16_REG_MODE with
9149 vector mode condition.
9150 * config/i386/i386.c (classify_argument): Parse V4HF/V2HF
9152 (function_arg_32): Add V4HFmode.
9153 (function_arg_advance_32): Likewise.
9154 * config/i386/i386.md (mode): Add V4HF/V2HF.
9155 (MODE_SIZE): Likewise.
9156 * config/i386/mmx.md (MMXMODE): Add V4HF mode.
9157 (V_32): Add V2HF mode.
9158 (VHF_32_64): New mode iterator.
9159 (*mov<mode>_internal): Adjust sse alternatives to support
9161 (*mov<mode>_internal): Adjust sse alternatives to support
9163 (<insn><mode>3): New define_insn for add/sub/mul/div.
9165 2021-09-28 Aldy Hernandez <aldyh@redhat.com>
9167 * tree-ssa-threadbackward.c (pass_thread_jumps::gate): Check
9169 (pass_early_thread_jumps::gate): Same.
9170 * tree-ssa-threadedge.c (jump_threader::thread_outgoing_edges):
9171 Return if !flag_thread_jumps.
9172 * tree-ssa-threadupdate.c
9173 (jt_path_registry::register_jump_thread): Assert that
9174 flag_thread_jumps is true.
9176 2021-09-28 liuhongt <hongtao.liu@intel.com>
9179 (simplify_context::simplify_binary_operation_1): Relax
9180 condition of simplifying (vec_concat:M (vec_select op0
9181 index0)(vec_select op1 index1)) to allow different modes
9182 between op0 and M, but have same inner mode.
9184 2021-09-28 liuhongt <hongtao.liu@intel.com>
9186 * config/i386/i386-expand.c (emit_reduc_half): Handle
9187 V8HF/V16HF/V32HFmode.
9188 * config/i386/sse.md (REDUC_SSE_PLUS_MODE): Add V8HF.
9189 (REDUC_SSE_SMINMAX_MODE): Ditto.
9190 (REDUC_PLUS_MODE): Add V16HF and V32HF.
9191 (REDUC_SMINMAX_MODE): Ditto.
9193 2021-09-27 Aldy Hernandez <aldyh@redhat.com>
9195 * gimple-range-path.cc
9196 (path_range_query::precompute_ranges_in_block): Rename to...
9197 (path_range_query::compute_ranges_in_block): ...this.
9198 (path_range_query::precompute_ranges): Rename to...
9199 (path_range_query::compute_ranges): ...this.
9200 (path_range_query::precompute_relations): Rename to...
9201 (path_range_query::compute_relations): ...this.
9202 (path_range_query::precompute_phi_relations): Rename to...
9203 (path_range_query::compute_phi_relations): ...this.
9204 * gimple-range-path.h: Rename precompute* to compute*.
9205 * tree-ssa-threadbackward.c
9206 (back_threader::find_taken_edge_switch): Same.
9207 (back_threader::find_taken_edge_cond): Same.
9208 * tree-ssa-threadedge.c
9209 (hybrid_jt_simplifier::compute_ranges_from_state): Same.
9210 (hybrid_jt_state::register_equivs_stmt): Inline...
9211 * tree-ssa-threadedge.h: ...here.
9213 2021-09-27 Aldy Hernandez <aldyh@redhat.com>
9215 * tree-vrp.c (lhs_of_dominating_assert): Remove.
9216 (class vrp_jt_state): Remove.
9217 (class vrp_jt_simplifier): Remove.
9218 (vrp_jt_simplifier::simplify): Remove.
9219 (class vrp_jump_threader): Remove.
9220 (vrp_jump_threader::vrp_jump_threader): Remove.
9221 (vrp_jump_threader::~vrp_jump_threader): Remove.
9222 (vrp_jump_threader::before_dom_children): Remove.
9223 (vrp_jump_threader::after_dom_children): Remove.
9225 2021-09-27 Aldy Hernandez <aldyh@redhat.com>
9227 * passes.def (pass_vrp_threader): New.
9228 * tree-pass.h (make_pass_vrp_threader): Add make_pass_vrp_threader.
9229 * tree-ssa-threadedge.c (hybrid_jt_state::register_equivs_stmt): New.
9230 (hybrid_jt_simplifier::hybrid_jt_simplifier): New.
9231 (hybrid_jt_simplifier::simplify): New.
9232 (hybrid_jt_simplifier::compute_ranges_from_state): New.
9233 * tree-ssa-threadedge.h (class hybrid_jt_state): New.
9234 (class hybrid_jt_simplifier): New.
9235 * tree-vrp.c (execute_vrp): Remove ASSERT_EXPR based jump
9237 (class hybrid_threader): New.
9238 (hybrid_threader::hybrid_threader): New.
9239 (hybrid_threader::~hybrid_threader): New.
9240 (hybrid_threader::before_dom_children): New.
9241 (hybrid_threader::after_dom_children): New.
9242 (execute_vrp_threader): New.
9243 (class pass_vrp_threader): New.
9244 (make_pass_vrp_threader): New.
9246 2021-09-27 Martin Liska <mliska@suse.cz>
9248 * output.h (enum section_flag): New.
9249 (SECTION_FORGET): Remove.
9250 (SECTION_ENTSIZE): Make it (1UL << 8) - 1.
9251 (SECTION_STYLE_MASK): Define it based on other enum
9253 * varasm.c (switch_to_section): Remove unused handling of
9256 2021-09-27 Martin Liska <mliska@suse.cz>
9258 * common.opt: Add new variable flag_default_complex_method.
9259 * opts.c (finish_options): Handle flags related to
9260 x_flag_complex_method.
9261 * toplev.c (process_options): Remove option handling related
9262 to flag_complex_method.
9264 2021-09-27 Richard Biener <rguenther@suse.de>
9266 PR middle-end/102450
9267 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid using
9268 type_for_size, instead use int_mode_for_size.
9270 2021-09-27 Andrew Pinski <apinski@marvell.com>
9273 * gimplify.c (gimplify_save_expr): Return early
9274 if the type of val is error_mark_node.
9276 2021-09-27 Aldy Hernandez <aldyh@redhat.com>
9278 * tree-ssanames.c (ssa_name_has_boolean_range): Use
9281 2021-09-27 Aldy Hernandez <aldyh@redhat.com>
9283 * gimple-ssa-evrp-analyze.h (class evrp_range_analyzer): Remove
9284 vrp_visit_cond_stmt.
9285 * tree-ssa-dom.c (cprop_operand): Convert to range_query API.
9286 (cprop_into_stmt): Same.
9287 (dom_opt_dom_walker::optimize_stmt): Same.
9289 2021-09-27 Richard Biener <rguenther@suse.de>
9291 PR tree-optimization/97351
9292 PR tree-optimization/97352
9293 PR tree-optimization/82426
9294 * tree-vectorizer.h (dr_misalignment): Add vector type
9296 (aligned_access_p): Likewise.
9297 (known_alignment_for_access_p): Likewise.
9298 (vect_supportable_dr_alignment): Likewise.
9299 (vect_known_alignment_in_bytes): Likewise. Refactor.
9300 (DR_MISALIGNMENT): Remove.
9301 (vect_update_shared_vectype): Likewise.
9302 * tree-vect-data-refs.c (dr_misalignment): Refactor, handle
9303 a vector type with larger alignment requirement and apply
9304 the negative step adjustment here.
9305 (vect_calculate_target_alignment): Remove.
9306 (vect_compute_data_ref_alignment): Get explicit vector type
9307 argument, do not apply a negative step alignment adjustment
9309 (vect_slp_analyze_node_alignment): Re-analyze alignment
9310 when we re-visit the DR with a bigger desired alignment but
9311 keep more precise results from smaller alignments.
9312 * tree-vect-slp.c (vect_update_shared_vectype): Remove.
9313 (vect_slp_analyze_node_operations_1): Do not update the
9314 shared vector type on stmts.
9315 * tree-vect-stmts.c (vect_analyze_stmt): Push/pop the
9316 vector type of an SLP node to the representative stmt-info.
9317 (vect_transform_stmt): Likewise.
9319 2021-09-27 liuhongt <hongtao.liu@intel.com>
9322 2021-09-09 liuhongt <hongtao.liu@intel.com>
9325 * config/i386/sse.md (reduc_plus_scal_<mode>): Split to ..
9326 (reduc_plus_scal_v4sf): .. this, New define_expand.
9327 (reduc_plus_scal_v2df): .. and this, New define_expand.
9329 2021-09-26 liuhongt <hongtao.liu@intel.com>
9331 * doc/extend.texi (Half-Precision): Remove storage only
9332 description for _Float16 w/o avx512fp16.
9334 2021-09-25 Dimitar Dimitrov <dimitar@dinux.eu>
9336 * config/pru/constraints.md (Rrio): New constraint.
9337 * config/pru/predicates.md (regio_operand): New predicate.
9338 * config/pru/pru-pragma.c (pru_register_pragmas): Register
9339 the __regio_symbol address space.
9340 * config/pru/pru-protos.h (pru_symref2ioregno): Declaration.
9341 * config/pru/pru.c (pru_symref2ioregno): New helper function.
9342 (pru_legitimate_address_p): Remove.
9343 (pru_addr_space_legitimate_address_p): Use the address space
9345 (pru_nongeneric_pointer_addrspace): New helper function.
9346 (pru_insert_attributes): New function to validate __regio_symbol
9348 (TARGET_INSERT_ATTRIBUTES): New macro.
9349 (TARGET_LEGITIMATE_ADDRESS_P): Remove.
9350 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): New macro.
9351 * config/pru/pru.h (enum reg_class): Add REGIO_REGS class.
9352 * config/pru/pru.md (*regio_readsi): New pattern to read I/O
9354 (*regio_nozext_writesi): New pattern to write to I/O registers.
9355 (*regio_zext_write_r30<EQS0:mode>): Ditto.
9356 * doc/extend.texi: Document the new PRU Named Address Space.
9358 2021-09-24 Patrick Palka <ppalka@redhat.com>
9362 * real.c (encode_ieee_double): Avoid unwanted sign extension.
9363 (encode_ieee_quad): Likewise.
9365 2021-09-24 Vladimir Makarov <vmakarov@redhat.com>
9367 PR rtl-optimization/102147
9368 * ira-build.c (ira_conflict_vector_profitable_p): Make
9369 profitability calculation independent of host compiler pointer and
9372 2021-09-24 Aldy Hernandez <aldyh@redhat.com>
9374 * gimple-range-path.cc (path_range_query::path_range_query):
9375 Move debugging header...
9376 (path_range_query::precompute_ranges): ...here.
9377 (path_range_query::internal_range_of_expr): Do not call
9378 range_on_path_entry if NAME is defined in the current block.
9380 2021-09-24 Richard Biener <rguenther@suse.de>
9382 * cfghooks.c (verify_flow_info): Verify unallocated BB and
9383 edge flags are not set.
9385 2021-09-24 Aldy Hernandez <aldyh@redhat.com>
9387 * tree-ssa-threadupdate.c (jt_path_registry::cancel_invalid_paths):
9389 (jt_path_registry::register_jump_thread): Call
9390 cancel_invalid_paths.
9391 * tree-ssa-threadupdate.h (class jt_path_registry): Add
9392 cancel_invalid_paths.
9394 2021-09-24 Feng Xue <fxue@os.amperecomputing.com>
9396 PR tree-optimization/102400
9397 * tree-ssa-sccvn.c (vn_reference_insert_pieces): Initialize
9398 result_vdef to zero value.
9400 2021-09-24 Feng Xue <fxue@os.amperecomputing.com>
9402 PR tree-optimization/102451
9403 * tree-ssa-dse.c (delete_dead_or_redundant_call): Record bb of stmt
9406 2021-09-24 Hongyu Wang <hongyu.wang@intel.com>
9408 * config/i386/sse.md (cond_<insn><mode>): Extend to support
9410 (cond_mul<mode>): Likewise.
9411 (cond_div<mode>): Likewise.
9412 (cond_<code><mode>): Likewise.
9413 (cond_fma<mode>): Likewise.
9414 (cond_fms<mode>): Likewise.
9415 (cond_fnma<mode>): Likewise.
9416 (cond_fnms<mode>): Likewise.
9418 2021-09-23 Andrew MacLeod <amacleod@redhat.com>
9420 PR tree-optimization/102463
9421 * gimple-range-fold.cc (fold_using_range::relation_fold_and_or): If
9422 there is no range-ops handler, don't look for a relation.
9424 2021-09-23 Andrew MacLeod <amacleod@redhat.com>
9426 * gimple-range-cache.cc (ranger_cache::ranger_cache): Take
9427 non-executable_edge flag as parameter.
9428 * gimple-range-cache.h (ranger_cache): Adjust prototype.
9429 * gimple-range-gori.cc (gori_compute::gori_compute): Take
9430 non-executable_edge flag as parameter.
9431 (gori_compute::outgoing_edge_range_p): Check new flag.
9432 * gimple-range-gori.h (gori_compute): Adjust prototype.
9433 * gimple-range.cc (gimple_ranger::gimple_ranger): Create new flag.
9434 (gimple_ranger::range_on_edge): Check new flag.
9435 * gimple-range.h (gimple_ranger::non_executable_edge_flag): New.
9436 * gimple-ssa-evrp.c (rvrp_folder): Pass ranger flag to simplifer.
9437 (hybrid_folder::hybrid_folder): Set ranger non-executable flag value.
9438 (hybrid_folder::fold_stmt): Set flag value in the simplifer.
9439 * vr-values.c (simplify_using_ranges::set_and_propagate_unexecutable):
9440 Use not_executable flag if provided inmstead of EDGE_EXECUTABLE.
9441 (simplify_using_ranges::simplify_switch_using_ranges): Clear
9442 EDGE_EXECUTABLE like it originally did.
9443 (simplify_using_ranges::cleanup_edges_and_switches): Clear any
9444 NON_EXECUTABLE flags.
9445 (simplify_using_ranges::simplify_using_ranges): Adjust.
9446 * vr-values.h (class simplify_using_ranges): Adjust.
9447 (simplify_using_ranges::set_range_query): Add non-executable flag param.
9449 2021-09-23 Bill Schmidt <wschmidt@linux.ibm.com>
9452 * config/rs6000/rs6000-call.c (rs6000_aggregate_candidate): Detect
9453 zero-width bit fields and return indicator.
9454 (rs6000_discover_homogeneous_aggregate): Diagnose when the
9455 presence of a zero-width bit field changes parameter passing in
9458 2021-09-23 Aldy Hernandez <aldyh@redhat.com>
9460 * gimple-range-fold.cc (fold_using_range::range_of_phi):
9461 Remove dominator check.
9463 2021-09-23 Aldy Hernandez <aldyh@redhat.com>
9465 * gimple-range-path.cc (path_range_query::precompute_relations):
9466 Hoist edge calculations before using EDGE_SUCC.
9468 2021-09-23 Jonathan Wakely <jwakely@redhat.com>
9470 * configure.ac: Fix --with-multilib-list description.
9471 * configure: Regenerate.
9473 2021-09-23 Richard Biener <rguenther@suse.de>
9475 PR tree-optimization/102448
9476 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info):
9477 Clear alignment info copied from DR_PTR_INFO.
9479 2021-09-23 Hongyu Wang <hongyu.wang@intel.com>
9481 * config/i386/i386-expand.c (ix86_use_mask_cmp_p): Enable
9483 * config/i386/sse.md (sseintvecmodelower): Add HF vector modes.
9484 (<avx512>_store<mode>_mask): Extend to support HF vector modes.
9485 (vec_cmp<mode><avx512fmaskmodelower>): Likewise.
9486 (vcond_mask_<mode><avx512fmaskmodelower>): Likewise.
9487 (vcond<mode><mode>): New expander.
9488 (vcond<mode><sseintvecmodelower>): Likewise.
9489 (vcond<sseintvecmodelower><mode>): Likewise.
9490 (vcondu<mode><sseintvecmodelower>): Likewise.
9492 2021-09-23 Hongyu Wang <hongyu.wang@intel.com>
9494 * config/i386/sse.md (extend<ssePHmodelower><mode>2):
9496 (extendv4hf<mode>2): Likewise.
9497 (extendv2hfv2df2): Likewise.
9498 (trunc<mode><ssePHmodelower>2): Likewise.
9499 (avx512fp16_vcvt<castmode>2ph_<mode>): Rename to ...
9500 (trunc<mode>v4hf2): ... this, and drop constraints.
9501 (avx512fp16_vcvtpd2ph_v2df): Rename to ...
9502 (truncv2dfv2hf2): ... this, and likewise.
9504 2021-09-23 Hongyu Wang <hongyu.wang@intel.com>
9506 * config/i386/sse.md (float<floatunssuffix><mode><ssePHmodelower>2):
9508 (avx512fp16_vcvt<floatsuffix><sseintconvert>2ph_<mode>):
9510 (float<floatunssuffix><mode>v4hf2): ... this, and drop constraints.
9511 (avx512fp16_vcvt<floatsuffix>qq2ph_v2di): Rename to ...
9512 (float<floatunssuffix>v2div2hf2): ... this, and likewise.
9514 2021-09-23 Hongyu Wang <hongyu.wang@intel.com>
9516 * config/i386/i386.md (fix<fixunssuffix>_trunchf<mode>2): New expander.
9517 (fixuns_trunchfhi2): Likewise.
9518 (*fixuns_trunchfsi2zext): New define_insn.
9519 * config/i386/sse.md (ssePHmodelower): New mode_attr.
9520 (fix<fixunssuffix>_trunc<ssePHmodelower><mode>2):
9521 New expander for same element vector fix_truncate.
9522 (fix<fixunssuffix>_trunc<ssePHmodelower><mode>2):
9523 Likewise for V4HF to V4SI/V4DI fix_truncate.
9524 (fix<fixunssuffix>_truncv2hfv2di2):
9525 Likeise for V2HF to V2DI fix_truncate.
9527 2021-09-23 Hongyu Wang <hongyu.wang@intel.com>
9529 * config/i386/i386.md (<code>hf3): New expander.
9531 2021-09-23 liuhongt <hongtao.liu@intel.com>
9533 * config/i386/sse.md (FMAMODEM): extend to handle FP16.
9534 (VFH_SF_AVX512VL): Extend to handle HFmode.
9535 (VF_SF_AVX512VL): Deleted.
9537 2021-09-23 liuhongt <hongtao.liu@intel.com>
9539 * config/i386/i386.md (rinthf2): New expander.
9540 (nearbyinthf2): New expander.
9542 2021-09-23 Aldy Hernandez <aldyh@redhat.com>
9544 * tree-ssa-dom.c (class dom_jump_threader_simplifier): Rename...
9545 (class dom_jt_state): ...this and provide virtual overrides.
9546 (dom_jt_state::register_equiv): New.
9547 (class dom_jt_simplifier): Rename from
9548 dom_jump_threader_simplifier.
9549 (dom_jump_threader_simplifier::simplify): Rename...
9550 (dom_jt_simplifier::simplify): ...to this.
9551 (pass_dominator::execute): Use dom_jt_simplifier and
9553 * tree-ssa-threadedge.c (jump_threader::jump_threader):
9555 (jt_state::register_equivs_stmt): Abstract out...
9556 (jump_threader::record_temporary_equivalences_from_stmts_at_dest):
9558 (jump_threader::thread_around_empty_blocks): Update state.
9559 (jump_threader::thread_through_normal_block): Same.
9560 (jt_state::jt_state): Remove.
9561 (jt_state::push): Remove pass specific bits. Keep block vector
9563 (jt_state::append_path): New.
9564 (jt_state::pop): Remove pass specific bits.
9565 (jt_state::register_equiv): Same.
9566 (jt_state::record_ranges_from_stmt): Same.
9567 (jt_state::register_equivs_on_edge): Same. Rename...
9568 (jt_state::register_equivs_edge): ...to this.
9569 (jt_state::dump): New.
9570 (jt_state::debug): New.
9571 (jump_threader_simplifier::simplify): Remove.
9572 (jt_state::get_path): New.
9573 * tree-ssa-threadedge.h (class jt_simplifier): Make into a base
9574 class. Expose common functionality as virtual methods.
9575 (class jump_threader_simplifier): Same. Rename...
9576 (class jt_simplifier): ...to this.
9577 * tree-vrp.c (class vrp_jump_threader_simplifier): Rename...
9578 (class vrp_jt_simplifier): ...to this. Provide pass specific
9580 (class vrp_jt_state): New.
9581 (vrp_jump_threader_simplifier::simplify): Rename...
9582 (vrp_jt_simplifier::simplify): ...to this. Inline code from
9583 what used to be the base class.
9584 (vrp_jump_threader::vrp_jump_threader): Use vrp_jt_state and
9587 2021-09-22 Tobias Burnus <tobias@codesourcery.com>
9590 * doc/invoke.texi (-Wno-missing-include-dirs.): Document Fortran
9593 2021-09-22 Roger Sayle <roger@nextmovesoftware.com>
9594 Richard Biener <rguenther@suse.de>
9596 * match.pd (negation simplifications): Implement some negation
9597 folding transformations from fold-const.c's fold_negate_expr.
9598 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Add a SIMPLIFY
9599 argument, to control whether the op should be simplified prior
9600 to looking up/assigning a value number.
9601 (vn_nary_build_or_lookup): Update call to vn_nary_build_or_lookup_1.
9602 (vn_nary_simplify): Likewise.
9603 (visit_nary_op): Likewise, but when constructing a NEGATE_EXPR
9604 now call vn_nary_build_or_lookup_1 disabling simplification.
9606 2021-09-22 Jiufu Guo <guojiufu@linux.ibm.com>
9608 PR tree-optimization/102087
9609 * tree-ssa-loop-niter.c (number_of_iterations_until_wrap):
9610 Update bound/cmp/control for niter.
9612 2021-09-22 Aldy Hernandez <aldyh@redhat.com>
9614 * gimple-range-fold.cc (fold_using_range::range_of_range_op):
9615 Move check for non-empty BB here.
9616 (fur_source::register_outgoing_edges): ...from here.
9618 2021-09-22 Aldy Hernandez <aldyh@redhat.com>
9620 * gimple-range-path.cc (path_range_query::internal_range_of_expr):
9621 Remove call to improve_range_with_equivs.
9622 (path_range_query::improve_range_with_equivs): Remove
9623 * gimple-range-path.h: Remove improve_range_with_equivs.
9625 2021-09-22 dianhong xu <dianhong.xu@intel.com>
9627 * config/i386/avx512fp16intrin.h:
9628 (_mm512_mask_blend_ph): New intrinsic.
9629 (_mm512_permutex2var_ph): Ditto.
9630 (_mm512_permutexvar_ph): Ditto.
9631 * config/i386/avx512fp16vlintrin.h:
9632 (_mm256_mask_blend_ph): New intrinsic.
9633 (_mm256_permutex2var_ph): Ditto.
9634 (_mm256_permutexvar_ph): Ditto.
9635 (_mm_mask_blend_ph): Ditto.
9636 (_mm_permutex2var_ph): Ditto.
9637 (_mm_permutexvar_ph): Ditto.
9639 2021-09-22 dianhong xu <dianhong.xu@intel.com>
9641 * config/i386/avx512fp16intrin.h: Add new intrinsics.
9642 (_mm512_conj_pch): New intrinsic.
9643 (_mm512_mask_conj_pch): Ditto.
9644 (_mm512_maskz_conj_pch): Ditto.
9645 * config/i386/avx512fp16vlintrin.h: Add new intrinsics.
9646 (_mm256_conj_pch): New intrinsic.
9647 (_mm256_mask_conj_pch): Ditto.
9648 (_mm256_maskz_conj_pch): Ditto.
9649 (_mm_conj_pch): Ditto.
9650 (_mm_mask_conj_pch): Ditto.
9651 (_mm_maskz_conj_pch): Ditto.
9653 2021-09-22 dianhong xu <dianhong.xu@intel.com>
9655 * config/i386/avx512fp16intrin.h (_MM512_REDUCE_OP): New macro
9656 (_mm512_reduce_add_ph): New intrinsic.
9657 (_mm512_reduce_mul_ph): Ditto.
9658 (_mm512_reduce_min_ph): Ditto.
9659 (_mm512_reduce_max_ph): Ditto.
9660 * config/i386/avx512fp16vlintrin.h
9661 (_MM256_REDUCE_OP/_MM_REDUCE_OP): New macro.
9662 (_mm256_reduce_add_ph): New intrinsic.
9663 (_mm256_reduce_mul_ph): Ditto.
9664 (_mm256_reduce_min_ph): Ditto.
9665 (_mm256_reduce_max_ph): Ditto.
9666 (_mm_reduce_add_ph): Ditto.
9667 (_mm_reduce_mul_ph): Ditto.
9668 (_mm_reduce_min_ph): Ditto.
9669 (_mm_reduce_max_ph): Ditto.
9671 2021-09-22 dianhong xu <dianhong.xu@intel.com>
9673 * config/i386/avx512fp16intrin.h (__m512h_u, __m256h_u,
9674 __m128h_u): New typedef.
9675 (_mm512_load_ph): New intrinsic.
9676 (_mm256_load_ph): Ditto.
9677 (_mm_load_ph): Ditto.
9678 (_mm512_loadu_ph): Ditto.
9679 (_mm256_loadu_ph): Ditto.
9680 (_mm_loadu_ph): Ditto.
9681 (_mm512_store_ph): Ditto.
9682 (_mm256_store_ph): Ditto.
9683 (_mm_store_ph): Ditto.
9684 (_mm512_storeu_ph): Ditto.
9685 (_mm256_storeu_ph): Ditto.
9686 (_mm_storeu_ph): Ditto.
9687 (_mm512_abs_ph): Ditto.
9688 * config/i386/avx512fp16vlintrin.h
9689 (_mm_abs_ph): Ditto.
9690 (_mm256_abs_ph): Ditto.
9692 2021-09-22 Andreas Krebbel <krebbel@linux.ibm.com>
9694 * config/s390/tpf.md (prologue_tpf, epilogue_tpf): Add cc clobber.
9696 2021-09-22 Andreas Krebbel <krebbel@linux.ibm.com>
9699 * config/s390/s390.c (s390_expand_insv): Emit a normal move if it
9700 is actually a full copy of the source operand into the target.
9701 Don't emit a strict low part move if source and target mode match.
9703 2021-09-22 Jakub Jelinek <jakub@redhat.com>
9705 PR middle-end/102415
9706 * omp-expand.c (expand_omp_single): If region->exit is NULL,
9707 assert region->entry is GIMPLE_OMP_SCOPE region and return.
9709 2021-09-22 Jakub Jelinek <jakub@redhat.com>
9711 * tree.h (OMP_CLAUSE_ALLOCATE_ALIGN): Define.
9712 * tree.c (omp_clause_num_ops): Change number of OMP_CLAUSE_ALLOCATE
9713 arguments from 2 to 3.
9714 * tree-pretty-print.c (dump_omp_clause): Print allocator() around
9715 allocate clause allocator and print align if present.
9716 * omp-low.c (scan_sharing_clauses): Force allocate_map entry even
9717 for omp_default_mem_alloc if align modifier is present. If align
9718 modifier is present, use TREE_LIST to encode both allocator and
9720 (lower_private_allocate, lower_rec_input_clauses, create_task_copyfn):
9721 Handle align modifier on allocator clause if present.
9723 2021-09-22 liuhongt <hongtao.liu@intel.com>
9725 * config/i386/i386.md (define_attr "isa"): Add
9727 (define_attr "enabled"): Correspond fma_or_avx512vl to
9728 TARGET_FMA || TARGET_AVX512VL.
9729 * config/i386/mmx.md (fmav2sf4): Extend to AVX512 fma.
9734 2021-09-22 liuhongt <hongtao.liu@intel.com>
9736 * config/i386/i386.md (cstorehf3): New define_expand.
9738 2021-09-22 liuhongt <hongtao.liu@intel.com>
9740 * config/i386/i386.md (<rounding_insn>hf2): New expander.
9741 (sse4_1_round<mode>2): Extend from MODEF to MODEFH.
9742 * config/i386/sse.md (*sse4_1_round<ssescalarmodesuffix>):
9743 Extend from VF_128 to VFH_128.
9745 2021-09-22 liuhongt <hongtao.liu@intel.com>
9747 * config/i386/i386-features.c (i386-features.c): Handle
9749 * config/i386/i386.md (sqrthf2): New expander.
9750 (*sqrthf2): New define_insn.
9751 * config/i386/sse.md
9752 (*<sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>):
9755 2021-09-22 liuhongt <hongtao.liu@intel.com>
9757 * config/i386/avx512fp16intrin.h (_mm_mask_fcmadd_sch):
9759 (_mm_mask3_fcmadd_sch): Likewise.
9760 (_mm_maskz_fcmadd_sch): Likewise.
9761 (_mm_fcmadd_sch): Likewise.
9762 (_mm_mask_fmadd_sch): Likewise.
9763 (_mm_mask3_fmadd_sch): Likewise.
9764 (_mm_maskz_fmadd_sch): Likewise.
9765 (_mm_fmadd_sch): Likewise.
9766 (_mm_mask_fcmadd_round_sch): Likewise.
9767 (_mm_mask3_fcmadd_round_sch): Likewise.
9768 (_mm_maskz_fcmadd_round_sch): Likewise.
9769 (_mm_fcmadd_round_sch): Likewise.
9770 (_mm_mask_fmadd_round_sch): Likewise.
9771 (_mm_mask3_fmadd_round_sch): Likewise.
9772 (_mm_maskz_fmadd_round_sch): Likewise.
9773 (_mm_fmadd_round_sch): Likewise.
9774 (_mm_fcmul_sch): Likewise.
9775 (_mm_mask_fcmul_sch): Likewise.
9776 (_mm_maskz_fcmul_sch): Likewise.
9777 (_mm_fmul_sch): Likewise.
9778 (_mm_mask_fmul_sch): Likewise.
9779 (_mm_maskz_fmul_sch): Likewise.
9780 (_mm_fcmul_round_sch): Likewise.
9781 (_mm_mask_fcmul_round_sch): Likewise.
9782 (_mm_maskz_fcmul_round_sch): Likewise.
9783 (_mm_fmul_round_sch): Likewise.
9784 (_mm_mask_fmul_round_sch): Likewise.
9785 (_mm_maskz_fmul_round_sch): Likewise.
9786 * config/i386/i386-builtin.def: Add corresponding new builtins.
9787 * config/i386/sse.md
9788 (avx512fp16_fmaddcsh_v8hf_maskz<round_expand_name>): New expander.
9789 (avx512fp16_fcmaddcsh_v8hf_maskz<round_expand_name>): Ditto.
9790 (avx512fp16_fma_<complexopname>sh_v8hf<mask_scalarcz_name><round_scalarcz_name>):
9792 (avx512fp16_<complexopname>sh_v8hf_mask<round_name>): Ditto.
9793 (avx512fp16_<complexopname>sh_v8hf<mask_scalarc_name><round_scalarcz_name>):
9795 * config/i386/subst.md (mask_scalarcz_name): New.
9796 (mask_scalarc_name): Ditto.
9797 (mask_scalarc_operand3): Ditto.
9798 (mask_scalarcz_operand4): Ditto.
9799 (round_scalarcz_name): Ditto.
9800 (round_scalarc_mask_operand3): Ditto.
9801 (round_scalarcz_mask_operand4): Ditto.
9802 (round_scalarc_mask_op3): Ditto.
9803 (round_scalarcz_mask_op4): Ditto.
9804 (round_scalarcz_constraint): Ditto.
9805 (round_scalarcz_nimm_predicate): Ditto.
9806 (mask_scalarcz): Ditto.
9807 (mask_scalarc): Ditto.
9808 (round_scalarcz): Ditto.
9810 2021-09-22 liuhongt <hongtao.liu@intel.com>
9812 * config/i386/avx512fp16intrin.h (_mm512_fcmadd_pch):
9814 (_mm512_mask_fcmadd_pch): Likewise.
9815 (_mm512_mask3_fcmadd_pch): Likewise.
9816 (_mm512_maskz_fcmadd_pch): Likewise.
9817 (_mm512_fmadd_pch): Likewise.
9818 (_mm512_mask_fmadd_pch): Likewise.
9819 (_mm512_mask3_fmadd_pch): Likewise.
9820 (_mm512_maskz_fmadd_pch): Likewise.
9821 (_mm512_fcmadd_round_pch): Likewise.
9822 (_mm512_mask_fcmadd_round_pch): Likewise.
9823 (_mm512_mask3_fcmadd_round_pch): Likewise.
9824 (_mm512_maskz_fcmadd_round_pch): Likewise.
9825 (_mm512_fmadd_round_pch): Likewise.
9826 (_mm512_mask_fmadd_round_pch): Likewise.
9827 (_mm512_mask3_fmadd_round_pch): Likewise.
9828 (_mm512_maskz_fmadd_round_pch): Likewise.
9829 (_mm512_fcmul_pch): Likewise.
9830 (_mm512_mask_fcmul_pch): Likewise.
9831 (_mm512_maskz_fcmul_pch): Likewise.
9832 (_mm512_fmul_pch): Likewise.
9833 (_mm512_mask_fmul_pch): Likewise.
9834 (_mm512_maskz_fmul_pch): Likewise.
9835 (_mm512_fcmul_round_pch): Likewise.
9836 (_mm512_mask_fcmul_round_pch): Likewise.
9837 (_mm512_maskz_fcmul_round_pch): Likewise.
9838 (_mm512_fmul_round_pch): Likewise.
9839 (_mm512_mask_fmul_round_pch): Likewise.
9840 (_mm512_maskz_fmul_round_pch): Likewise.
9841 * config/i386/avx512fp16vlintrin.h (_mm_fmadd_pch):
9843 (_mm_mask_fmadd_pch): Likewise.
9844 (_mm_mask3_fmadd_pch): Likewise.
9845 (_mm_maskz_fmadd_pch): Likewise.
9846 (_mm256_fmadd_pch): Likewise.
9847 (_mm256_mask_fmadd_pch): Likewise.
9848 (_mm256_mask3_fmadd_pch): Likewise.
9849 (_mm256_maskz_fmadd_pch): Likewise.
9850 (_mm_fcmadd_pch): Likewise.
9851 (_mm_mask_fcmadd_pch): Likewise.
9852 (_mm_mask3_fcmadd_pch): Likewise.
9853 (_mm_maskz_fcmadd_pch): Likewise.
9854 (_mm256_fcmadd_pch): Likewise.
9855 (_mm256_mask_fcmadd_pch): Likewise.
9856 (_mm256_mask3_fcmadd_pch): Likewise.
9857 (_mm256_maskz_fcmadd_pch): Likewise.
9858 (_mm_fmul_pch): Likewise.
9859 (_mm_mask_fmul_pch): Likewise.
9860 (_mm_maskz_fmul_pch): Likewise.
9861 (_mm256_fmul_pch): Likewise.
9862 (_mm256_mask_fmul_pch): Likewise.
9863 (_mm256_maskz_fmul_pch): Likewise.
9864 (_mm_fcmul_pch): Likewise.
9865 (_mm_mask_fcmul_pch): Likewise.
9866 (_mm_maskz_fcmul_pch): Likewise.
9867 (_mm256_fcmul_pch): Likewise.
9868 (_mm256_mask_fcmul_pch): Likewise.
9869 (_mm256_maskz_fcmul_pch): Likewise.
9870 * config/i386/i386-builtin-types.def (V8HF_FTYPE_V8HF_V8HF_V8HF,
9871 V8HF_FTYPE_V16HF_V16HF_V16HF, V16HF_FTYPE_V16HF_V16HF_V16HF_UQI,
9872 V32HF_FTYPE_V32HF_V32HF_V32HF_INT,
9873 V32HF_FTYPE_V32HF_V32HF_V32HF_UHI_INT): Add new builtin types.
9874 * config/i386/i386-builtin.def: Add new builtins.
9875 * config/i386/i386-expand.c: Handle new builtin types.
9876 * config/i386/subst.md (SUBST_CV): New.
9877 (maskc_name): Ditto.
9878 (maskc_operand3): Ditto.
9880 (sdc_maskz_name): Ditto.
9881 (sdc_mask_op4): Ditto.
9882 (sdc_mask_op5): Ditto.
9883 (sdc_mask_mode512bit_condition): Ditto.
9885 (round_maskc_operand3): Ditto.
9886 (round_sdc_mask_operand4): Ditto.
9887 (round_maskc_op3): Ditto.
9888 (round_sdc_mask_op4): Ditto.
9889 (round_saeonly_sdc_mask_operand5): Ditto.
9890 * config/i386/sse.md (unspec): Add complex fma unspecs.
9891 (avx512fmaskcmode): New.
9892 (UNSPEC_COMPLEX_F_C_MA): Ditto.
9893 (UNSPEC_COMPLEX_F_C_MUL): Ditto.
9894 (complexopname): Ditto.
9895 (<avx512>_fmaddc_<mode>_maskz<round_expand_name>): New expander.
9896 (<avx512>_fcmaddc_<mode>_maskz<round_expand_name>): Ditto.
9897 (fma_<complexopname>_<mode><sdc_maskz_name><round_name>): New
9899 (<avx512>_<complexopname>_<mode>_mask<round_name>): Ditto.
9900 (<avx512>_<complexopname>_<mode><maskc_name><round_name>): Ditto.
9902 2021-09-22 Kewen Lin <linkw@linux.ibm.com>
9904 * config/rs6000/rs6000.opt (rs6000-density-pct-threshold,
9905 rs6000-density-size-threshold, rs6000-density-penalty,
9906 rs6000-density-load-pct-threshold,
9907 rs6000-density-load-num-threshold): New parameter.
9908 * config/rs6000/rs6000.c (rs6000_density_test): Adjust with
9909 corresponding parameters.
9911 2021-09-21 Aldy Hernandez <aldyh@redhat.com>
9913 * gimple-range-path.cc (path_range_query::defined_outside_path):
9915 (path_range_query::range_on_path_entry): New.
9916 (path_range_query::internal_range_of_expr): Resolve unknowns
9918 (path_range_query::improve_range_with_equivs): New.
9919 (path_range_query::ssa_range_in_phi): Resolve unknowns with
9921 * gimple-range-path.h (class path_range_query): Add
9922 defined_outside_path, range_on_path_entry, and
9923 improve_range_with_equivs.
9925 2021-09-21 Aldy Hernandez <aldyh@redhat.com>
9927 * gimple-range-path.cc (path_range_query::add_to_imports): New.
9928 (path_range_query::add_copies_to_imports): New.
9929 (path_range_query::precompute_ranges): Call
9930 add_copies_to_imports.
9931 * gimple-range-path.h (class path_range_query): Add prototypes
9932 for add_copies_to_imports and add_to_imports.
9934 2021-09-21 Aldy Hernandez <aldyh@redhat.com>
9936 * gimple-range-path.cc (path_range_query::range_defined_in_block):
9937 Remove useless code.
9939 2021-09-21 Aldy Hernandez <aldyh@redhat.com>
9941 * gimple-range-fold.h (class fur_source): Make oracle protected.
9942 * gimple-range-path.cc (path_range_query::path_range_query): Add
9943 resolve argument. Initialize oracle.
9944 (path_range_query::~path_range_query): Delete oracle.
9945 (path_range_query::range_of_stmt): Adapt to use relations.
9946 (path_range_query::precompute_ranges): Pre-compute relations.
9947 (class jt_fur_source): New
9948 (jt_fur_source::jt_fur_source): New.
9949 (jt_fur_source::register_relation): New.
9950 (jt_fur_source::query_relation): New.
9951 (path_range_query::precompute_relations): New.
9952 (path_range_query::precompute_phi_relations): New.
9953 * gimple-range-path.h (path_range_query): Add resolve argument.
9954 Add oracle, precompute_relations, precompute_phi_relations.
9955 * tree-ssa-threadbackward.c (back_threader::back_threader): Pass
9956 resolve argument to solver.
9958 2021-09-21 Aldy Hernandez <aldyh@redhat.com>
9960 * gimple-range-fold.cc (fold_using_range::range_of_range_op):
9961 Rename postfold_gcond_edges to register_outgoing_edges and
9963 (fold_using_range::postfold_gcond_edges): Rename...
9964 (fur_source::register_outgoing_edges): ...to this.
9965 * gimple-range-fold.h (postfold_gcond_edges): Rename to
9966 register_outgoing_edges and move to fur_source.
9968 2021-09-21 Aldy Hernandez <aldyh@redhat.com>
9970 * gimple-range-fold.cc (fold_using_range::range_of_phi): Check
9971 dom_info_available_p.
9973 2021-09-21 Aldy Hernandez <aldyh@redhat.com>
9975 * gimple-range-cache.cc (non_null_ref::non_null_ref): Use create
9976 and quick_grow_cleared instead of safe_grow_cleared.
9978 2021-09-21 Thomas Schwinge <thomas@codesourcery.com>
9981 * omp-oacc-neuter-broadcast.cc (oacc_do_neutering): Evaluate
9984 2021-09-21 Richard Earnshaw <rearnsha@arm.com>
9986 * configure.ac: Detect when the assembler supports new-style
9987 architecture extensions.
9988 * common/config/arm/arm-common.c (arm_rewrite_mcpu): Return
9989 the full CPU string if the assembler can grok it.
9990 (arm_rewrite_march): Likewise but for the architecture.
9991 * config.in: Regenerate.
9992 * configure: Regenerate.
9994 2021-09-21 Richard Biener <rguenther@suse.de>
9996 PR tree-optimization/102421
9997 * tree-vect-loop.c (vect_dissolve_slp_only_groups): Copy and
9998 adjust alignment info.
10000 2021-09-21 Kewen Lin <linkw@linux.ibm.com>
10002 * ipa-fnsummary.c (ipa_fn_summary_write): Remove inconsistent
10003 bitfield stream out.
10005 2021-09-20 Andrew MacLeod <amacleod@redhat.com>
10007 * gimple-range-fold.cc (fold_using_range::range_of_phi): Ignore
10008 undefined edges, apply an equivalence if appropriate.
10009 * gimple-range-gori.cc (gori_compute::outgoing_edge_range_p): Return
10010 UNDEFINED if EDGE_EXECUTABLE is not set.
10011 * gimple-range.cc (gimple_ranger::gimple_ranger): Set all edges
10012 as EXECUTABLE upon startup.
10013 (gimple_ranger::range_on_edge): Return UNDEFINED for edges without
10014 EDGE_EXECUTABLE set.
10015 * vr-values.c (set_and_propagate_unexecutable): New.
10016 (simplify_using_ranges::fold_cond): Call set_and_propagate.
10017 (simplify_using_ranges::simplify_switch_using_ranges): Ditto.
10018 * vr-values.h: Add prototype.
10020 2021-09-20 Andrew MacLeod <amacleod@redhat.com>
10022 * value-relation.cc (equiv_oracle::register_initial_def): New.
10023 (equiv_oracle::register_relation): Call register_initial_def.
10024 (equiv_oracle::add_equiv_to_block): New. Split register_relation.
10025 (relation_oracle::register_stmt): Check def block of PHI arguments.
10026 * value-relation.h (equiv_oracle): Add new prototypes.
10028 2021-09-20 Matthias Kretz <m.kretz@gsi.de>
10030 * cppbuiltin.c (define_builtin_macros_for_compilation_flags):
10031 Define __RECIPROCAL_MATH__, __NO_SIGNED_ZEROS__,
10032 __NO_TRAPPING_MATH__, __ASSOCIATIVE_MATH__, and
10033 __ROUNDING_MATH__ according to their corresponding flags.
10034 * doc/cpp.texi: Document __RECIPROCAL_MATH__,
10035 __NO_SIGNED_ZEROS__, __NO_TRAPPING_MATH__, __ASSOCIATIVE_MATH__,
10036 and __ROUNDING_MATH__.
10038 2021-09-20 Richard Biener <rguenther@suse.de>
10040 * tree-vect-stmts.c (vectorizable_load): Use the vectype
10043 2021-09-20 Richard Biener <rguenther@suse.de>
10045 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info):
10046 Do not compute alignment of the vectorized access here.
10048 2021-09-20 Richard Biener <rguenther@suse.de>
10050 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
10051 Store -1 for runtime alias peeling iterations.
10053 2021-09-20 Richard Biener <rguenther@suse.de>
10055 * config.gcc: Obsolete hppa[12]*-*-hpux10* and hppa[12]*-*-hpux11*.
10057 2021-09-20 Thomas Schwinge <thomas@codesourcery.com>
10059 * input.c (string_concat_db::record_string_concatenation)
10060 (string_concat_db::get_string_concatenation): Skip for
10061 'RESERVED_LOCATION_P'.
10063 2021-09-20 Richard Biener <rguenther@suse.de>
10065 PR tree-optimization/65206
10066 * tree-data-ref.h (struct data_reference): Add alt_indices,
10068 * tree-data-ref.c (free_data_ref): Release alt_indices.
10069 (dr_analyze_indices): Work on struct indices and get DR_REF as tree.
10070 (create_data_ref): Adjust.
10071 (initialize_data_dependence_relation): Split into head
10072 and tail. When the base objects fail to match up try
10073 again with pointer-based analysis of indices.
10074 * tree-vectorizer.c (vec_info_shared::check_datarefs): Do
10075 not compare the lazily computed alternate set of indices.
10077 2021-09-20 Iain Sandoe <iain@sandoe.co.uk>
10079 * gcc.c: Test for execute OK when we find the
10080 programs for assembler linker and dsymutil and those
10081 were specified at configure-time.
10083 2021-09-19 Martin Sebor <msebor@redhat.com>
10085 PR middle-end/102403
10086 * gimple-predicate-analysis.cc (predicate::init_from_control_deps):
10087 Correct a function pre/postcondition.
10089 2021-09-19 Martin Sebor <msebor@redhat.com>
10091 PR middle-end/102243
10092 * tree-ssa-strlen.c (get_range): Handle null cfun.
10094 2021-09-19 Iain Sandoe <iain@sandoe.co.uk>
10096 * config/darwin.h (LINK_COMMAND_SPEC_A): Use Darwin10
10097 unwinder shim as a convenience library.
10099 2021-09-19 Andrew Pinski <apinski@marvell.com>
10101 * doc/install.texi: Add note about
10102 binutils 2.35 is required for LTO usage.
10104 2021-09-19 Aldy Hernandez <aldyh@redhat.com>
10106 * tree-ssa-threadbackward.c
10107 (back_threader_registry::register_path): Use push_edge.
10108 * tree-ssa-threadedge.c
10109 (jump_threader::thread_around_empty_blocks): Same.
10110 (jump_threader::thread_through_normal_block): Same.
10111 (jump_threader::thread_across_edge): Same. Also, use auto_bitmap.
10113 * tree-ssa-threadupdate.c
10114 (jt_path_registry::allocate_thread_edge): Remove.
10115 (jt_path_registry::push_edge): New.
10116 (dump_jump_thread_path): Make static.
10117 * tree-ssa-threadupdate.h (allocate_thread_edge): Remove.
10120 2021-09-19 Aldy Hernandez <aldyh@redhat.com>
10122 * gimple-range-path.cc (path_range_query::path_range_query): Add
10124 (path_range_query::dump): Remove extern declaration of dump_ranger.
10125 * gimple-range-trace.cc (dump_ranger): Add DEBUG_FUNCTION marker.
10126 * gimple-range-trace.h (dump_ranger): Add prototype.
10128 2021-09-19 John Ericson <git@JohnEricson.me>
10130 * gcc.c (find_a_program): New function, factored out of...
10131 (find_a_file): Here.
10132 (execute): Use find_a_program when looking for programs rather
10135 2021-09-19 Matwey V. Kornilov <matwey.kornilov@gmail.com>
10137 * config/avr/avr-mcus.def: Add atmega324pb.
10138 * doc/avr-mmcu.texi: Corresponding changes.
10140 2021-09-19 Roger Sayle <roger@nextmovesoftware.com>
10142 PR middle-end/88173
10143 * match.pd (cmp @0 REAL_CST@1): When @0 is also REAL_CST, apply
10144 the same transformations as to @1. For comparisons against NaN,
10145 don't check HONOR_SNANS but confirm that neither operand is a
10148 2021-09-19 Benjamin Peterson <benjamin@locrian.net>
10150 * attribs.c (make_unique_name): Delete.
10151 * attribs.h (make_unique_name): Delete.
10153 2021-09-19 Andrew Pinski <apinski@marvell.com>
10155 * lra-constraints.c (check_and_process_move): Assert
10156 that dclass and sclass are greater than or equal to NO_REGS.
10158 2021-09-18 Jakub Jelinek <jakub@redhat.com>
10160 * tree.h (OMP_CLAUSE_ORDER_UNCONSTRAINED): Define.
10161 * tree-pretty-print.c (dump_omp_clause): Print unconstrained:
10162 for OMP_CLAUSE_ORDER_UNCONSTRAINED.
10164 2021-09-18 liuhongt <hongtao.liu@intel.com>
10166 * config/i386/i386-features.c (remove_partial_avx_dependency):
10167 Restrict TARGET_USE_VECTOR_FP_CONVERTS and
10168 TARGET_USE_VECTOR_CONVERTS to conversion instructions only.
10170 2021-09-18 Jakub Jelinek <jakub@redhat.com>
10172 * gimplify.c (omp_default_clause): For C/C++ default({,first}private),
10173 if file/namespace scope variable doesn't have predetermined sharing,
10174 treat it as if there was default(none).
10176 2021-09-18 liuhongt <hongtao.liu@intel.com>
10178 * config/i386/avx512fp16intrin.h (_mm_fmadd_sh):
10180 (_mm_mask_fmadd_sh): Likewise.
10181 (_mm_mask3_fmadd_sh): Likewise.
10182 (_mm_maskz_fmadd_sh): Likewise.
10183 (_mm_fmadd_round_sh): Likewise.
10184 (_mm_mask_fmadd_round_sh): Likewise.
10185 (_mm_mask3_fmadd_round_sh): Likewise.
10186 (_mm_maskz_fmadd_round_sh): Likewise.
10187 (_mm_fnmadd_sh): Likewise.
10188 (_mm_mask_fnmadd_sh): Likewise.
10189 (_mm_mask3_fnmadd_sh): Likewise.
10190 (_mm_maskz_fnmadd_sh): Likewise.
10191 (_mm_fnmadd_round_sh): Likewise.
10192 (_mm_mask_fnmadd_round_sh): Likewise.
10193 (_mm_mask3_fnmadd_round_sh): Likewise.
10194 (_mm_maskz_fnmadd_round_sh): Likewise.
10195 (_mm_fmsub_sh): Likewise.
10196 (_mm_mask_fmsub_sh): Likewise.
10197 (_mm_mask3_fmsub_sh): Likewise.
10198 (_mm_maskz_fmsub_sh): Likewise.
10199 (_mm_fmsub_round_sh): Likewise.
10200 (_mm_mask_fmsub_round_sh): Likewise.
10201 (_mm_mask3_fmsub_round_sh): Likewise.
10202 (_mm_maskz_fmsub_round_sh): Likewise.
10203 (_mm_fnmsub_sh): Likewise.
10204 (_mm_mask_fnmsub_sh): Likewise.
10205 (_mm_mask3_fnmsub_sh): Likewise.
10206 (_mm_maskz_fnmsub_sh): Likewise.
10207 (_mm_fnmsub_round_sh): Likewise.
10208 (_mm_mask_fnmsub_round_sh): Likewise.
10209 (_mm_mask3_fnmsub_round_sh): Likewise.
10210 (_mm_maskz_fnmsub_round_sh): Likewise.
10211 * config/i386/i386-builtin-types.def
10212 (V8HF_FTYPE_V8HF_V8HF_V8HF_UQI_INT): New builtin type.
10213 * config/i386/i386-builtin.def: Add new builtins.
10214 * config/i386/i386-expand.c: Handle new builtin type.
10215 * config/i386/sse.md (fmai_vmfmadd_<mode><round_name>):
10216 Ajdust to support FP16.
10217 (fmai_vmfmsub_<mode><round_name>): Ditto.
10218 (fmai_vmfnmadd_<mode><round_name>): Ditto.
10219 (fmai_vmfnmsub_<mode><round_name>): Ditto.
10220 (*fmai_fmadd_<mode>): Ditto.
10221 (*fmai_fmsub_<mode>): Ditto.
10222 (*fmai_fnmadd_<mode><round_name>): Ditto.
10223 (*fmai_fnmsub_<mode><round_name>): Ditto.
10224 (avx512f_vmfmadd_<mode>_mask<round_name>): Ditto.
10225 (avx512f_vmfmadd_<mode>_mask3<round_name>): Ditto.
10226 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): Ditto.
10227 (avx512f_vmfmadd_<mode>_maskz_1<round_name>): Ditto.
10228 (*avx512f_vmfmsub_<mode>_mask<round_name>): Ditto.
10229 (avx512f_vmfmsub_<mode>_mask3<round_name>): Ditto.
10230 (*avx512f_vmfmsub_<mode>_maskz_1<round_name>): Ditto.
10231 (*avx512f_vmfnmsub_<mode>_mask<round_name>): Ditto.
10232 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): Ditto.
10233 (*avx512f_vmfnmsub_<mode>_mask<round_name>): Ditto.
10234 (*avx512f_vmfnmadd_<mode>_mask<round_name>): Renamed to ...
10235 (avx512f_vmfnmadd_<mode>_mask<round_name>) ... this, and
10236 adjust to support FP16.
10237 (avx512f_vmfnmadd_<mode>_mask3<round_name>): Ditto.
10238 (avx512f_vmfnmadd_<mode>_maskz_1<round_name>): Ditto.
10239 (avx512f_vmfnmadd_<mode>_maskz<round_expand_name>): New
10242 2021-09-18 H.J. Lu <hjl.tools@gmail.com>
10244 * config/i386/sse.md (avx512fmaskmodelower): Extend to support
10246 (maskload<mode><avx512fmaskmodelower>): Ditto.
10247 (maskstore<mode><avx512fmaskmodelower>): Ditto.
10249 2021-09-18 H.J. Lu <hjl.tools@gmail.com>
10251 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
10253 (ix86_expand_copysign): Ditto.
10254 (ix86_expand_xorsign): Ditto.
10255 * config/i386/i386.c (ix86_build_const_vector): Handle HF vector
10257 (ix86_build_signbit_mask): Ditto.
10258 (ix86_can_change_mode_class): Ditto.
10259 * config/i386/i386.md
10260 (SSEMODEF): Add HFmode.
10261 (ssevecmodef): Ditto.
10262 (<code>hf2): New define_expand.
10263 (*<code>hf2_1): New define_insn_and_split.
10264 (copysign<mode>): Extend to support HFmode under AVX512FP16.
10265 (xorsign<mode>): Ditto.
10266 * config/i386/sse.md (VFB): New mode iterator.
10267 (VFB_128_256): Ditto.
10269 (sseintvecmode2): Support HF vector mode.
10270 (<code><mode>2): Use new mode iterator.
10271 (*<code><mode>2): Ditto.
10272 (copysign<mode>3): Ditto.
10273 (xorsign<mode>3): Ditto.
10274 (<code><mode>3<mask_name>): Ditto.
10275 (<code><mode>3<mask_name>): Ditto.
10276 (<sse>_andnot<mode>3<mask_name>): Adjust for HF vector mode.
10277 (<sse>_andnot<mode>3<mask_name>): Ditto.
10278 (*<code><mode>3<mask_name>): Ditto.
10279 (*<code><mode>3<mask_name>): Ditto.
10281 2021-09-18 liuhongt <hongtao.liu@intel.com>
10283 * config/i386/avx512fp16intrin.h (_mm512_mask_fmadd_ph):
10285 (_mm512_mask3_fmadd_ph): Likewise.
10286 (_mm512_maskz_fmadd_ph): Likewise.
10287 (_mm512_fmadd_round_ph): Likewise.
10288 (_mm512_mask_fmadd_round_ph): Likewise.
10289 (_mm512_mask3_fmadd_round_ph): Likewise.
10290 (_mm512_maskz_fmadd_round_ph): Likewise.
10291 (_mm512_fnmadd_ph): Likewise.
10292 (_mm512_mask_fnmadd_ph): Likewise.
10293 (_mm512_mask3_fnmadd_ph): Likewise.
10294 (_mm512_maskz_fnmadd_ph): Likewise.
10295 (_mm512_fnmadd_round_ph): Likewise.
10296 (_mm512_mask_fnmadd_round_ph): Likewise.
10297 (_mm512_mask3_fnmadd_round_ph): Likewise.
10298 (_mm512_maskz_fnmadd_round_ph): Likewise.
10299 (_mm512_fmsub_ph): Likewise.
10300 (_mm512_mask_fmsub_ph): Likewise.
10301 (_mm512_mask3_fmsub_ph): Likewise.
10302 (_mm512_maskz_fmsub_ph): Likewise.
10303 (_mm512_fmsub_round_ph): Likewise.
10304 (_mm512_mask_fmsub_round_ph): Likewise.
10305 (_mm512_mask3_fmsub_round_ph): Likewise.
10306 (_mm512_maskz_fmsub_round_ph): Likewise.
10307 (_mm512_fnmsub_ph): Likewise.
10308 (_mm512_mask_fnmsub_ph): Likewise.
10309 (_mm512_mask3_fnmsub_ph): Likewise.
10310 (_mm512_maskz_fnmsub_ph): Likewise.
10311 (_mm512_fnmsub_round_ph): Likewise.
10312 (_mm512_mask_fnmsub_round_ph): Likewise.
10313 (_mm512_mask3_fnmsub_round_ph): Likewise.
10314 (_mm512_maskz_fnmsub_round_ph): Likewise.
10315 * config/i386/avx512fp16vlintrin.h (_mm256_fmadd_ph):
10317 (_mm256_mask_fmadd_ph): Likewise.
10318 (_mm256_mask3_fmadd_ph): Likewise.
10319 (_mm256_maskz_fmadd_ph): Likewise.
10320 (_mm_fmadd_ph): Likewise.
10321 (_mm_mask_fmadd_ph): Likewise.
10322 (_mm_mask3_fmadd_ph): Likewise.
10323 (_mm_maskz_fmadd_ph): Likewise.
10324 (_mm256_fnmadd_ph): Likewise.
10325 (_mm256_mask_fnmadd_ph): Likewise.
10326 (_mm256_mask3_fnmadd_ph): Likewise.
10327 (_mm256_maskz_fnmadd_ph): Likewise.
10328 (_mm_fnmadd_ph): Likewise.
10329 (_mm_mask_fnmadd_ph): Likewise.
10330 (_mm_mask3_fnmadd_ph): Likewise.
10331 (_mm_maskz_fnmadd_ph): Likewise.
10332 (_mm256_fmsub_ph): Likewise.
10333 (_mm256_mask_fmsub_ph): Likewise.
10334 (_mm256_mask3_fmsub_ph): Likewise.
10335 (_mm256_maskz_fmsub_ph): Likewise.
10336 (_mm_fmsub_ph): Likewise.
10337 (_mm_mask_fmsub_ph): Likewise.
10338 (_mm_mask3_fmsub_ph): Likewise.
10339 (_mm_maskz_fmsub_ph): Likewise.
10340 (_mm256_fnmsub_ph): Likewise.
10341 (_mm256_mask_fnmsub_ph): Likewise.
10342 (_mm256_mask3_fnmsub_ph): Likewise.
10343 (_mm256_maskz_fnmsub_ph): Likewise.
10344 (_mm_fnmsub_ph): Likewise.
10345 (_mm_mask_fnmsub_ph): Likewise.
10346 (_mm_mask3_fnmsub_ph): Likewise.
10347 (_mm_maskz_fnmsub_ph): Likewise.
10348 * config/i386/i386-builtin.def: Add corresponding new builtins.
10349 * config/i386/sse.md
10350 (<avx512>_fmadd_<mode>_maskz<round_expand_name>): Adjust to
10351 support HF vector modes.
10352 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
10354 (*<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name>_bcst_1): Ditto.
10355 (*<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name>_bcst_2): Ditto.
10356 (*<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name>_bcst_3): Ditto.
10357 (<avx512>_fmadd_<mode>_mask<round_name>): Ditto.
10358 (<avx512>_fmadd_<mode>_mask3<round_name>): Ditto.
10359 (<avx512>_fmsub_<mode>_maskz<round_expand_name>): Ditto.
10360 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>):
10362 (*<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name>_bcst_1): Ditto.
10363 (*<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name>_bcst_2): Ditto.
10364 (*<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name>_bcst_3): Ditto.
10365 (<avx512>_fmsub_<mode>_mask<round_name>): Ditto.
10366 (<avx512>_fmsub_<mode>_mask3<round_name>): Ditto.
10367 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>):
10369 (*<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name>_bcst_1): Ditto.
10370 (*<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name>_bcst_2): Ditto.
10371 (*<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name>_bcst_3): Ditto.
10372 (<avx512>_fnmadd_<mode>_mask<round_name>): Ditto.
10373 (<avx512>_fnmadd_<mode>_mask3<round_name>): Ditto.
10374 (<avx512>_fnmsub_<mode>_maskz<round_expand_name>): Ditto.
10375 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>):
10377 (*<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name>_bcst_1): Ditto.
10378 (*<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name>_bcst_2): Ditto.
10379 (*<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name>_bcst_3): Ditto.
10380 (<avx512>_fnmsub_<mode>_mask<round_name>): Ditto.
10381 (<avx512>_fnmsub_<mode>_mask3<round_name>): Ditto.
10383 2021-09-18 liuhongt <hongtao.liu@intel.com>
10385 * config/i386/avx512fp16intrin.h (_mm512_fmaddsub_ph):
10387 (_mm512_mask_fmaddsub_ph): Likewise.
10388 (_mm512_mask3_fmaddsub_ph): Likewise.
10389 (_mm512_maskz_fmaddsub_ph): Likewise.
10390 (_mm512_fmaddsub_round_ph): Likewise.
10391 (_mm512_mask_fmaddsub_round_ph): Likewise.
10392 (_mm512_mask3_fmaddsub_round_ph): Likewise.
10393 (_mm512_maskz_fmaddsub_round_ph): Likewise.
10394 (_mm512_mask_fmsubadd_ph): Likewise.
10395 (_mm512_mask3_fmsubadd_ph): Likewise.
10396 (_mm512_maskz_fmsubadd_ph): Likewise.
10397 (_mm512_fmsubadd_round_ph): Likewise.
10398 (_mm512_mask_fmsubadd_round_ph): Likewise.
10399 (_mm512_mask3_fmsubadd_round_ph): Likewise.
10400 (_mm512_maskz_fmsubadd_round_ph): Likewise.
10401 * config/i386/avx512fp16vlintrin.h (_mm256_fmaddsub_ph):
10403 (_mm256_mask_fmaddsub_ph): Likewise.
10404 (_mm256_mask3_fmaddsub_ph): Likewise.
10405 (_mm256_maskz_fmaddsub_ph): Likewise.
10406 (_mm_fmaddsub_ph): Likewise.
10407 (_mm_mask_fmaddsub_ph): Likewise.
10408 (_mm_mask3_fmaddsub_ph): Likewise.
10409 (_mm_maskz_fmaddsub_ph): Likewise.
10410 (_mm256_fmsubadd_ph): Likewise.
10411 (_mm256_mask_fmsubadd_ph): Likewise.
10412 (_mm256_mask3_fmsubadd_ph): Likewise.
10413 (_mm256_maskz_fmsubadd_ph): Likewise.
10414 (_mm_fmsubadd_ph): Likewise.
10415 (_mm_mask_fmsubadd_ph): Likewise.
10416 (_mm_mask3_fmsubadd_ph): Likewise.
10417 (_mm_maskz_fmsubadd_ph): Likewise.
10418 * config/i386/i386-builtin.def: Add corresponding new builtins.
10419 * config/i386/sse.md (VFH_SF_AVX512VL): New mode iterator.
10420 * (<avx512>_fmsubadd_<mode>_maskz<round_expand_name>): New expander.
10421 * (<avx512>_fmaddsub_<mode>_maskz<round_expand_name>): Use
10423 * (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
10425 * (<avx512>_fmaddsub_<mode>_mask<round_name>): Ditto.
10426 * (<avx512>_fmaddsub_<mode>_mask3<round_name>): Ditto.
10427 * (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
10429 * (<avx512>_fmsubadd_<mode>_mask<round_name>): Ditto.
10430 * (<avx512>_fmsubadd_<mode>_mask3<round_name>): Ditto.
10432 2021-09-18 liuhongt <hongtao.liu@intel.com>
10435 * config/i386/i386.c (ix86_print_operand): Handle
10436 V8HF/V16HF/V32HFmode.
10437 * config/i386/i386.h (VALID_BCST_MODE_P): Add HFmode.
10438 * config/i386/sse.md (avx512bcst): Remove.
10440 2021-09-17 Martin Sebor <msebor@redhat.com>
10442 * Makefile.in (OBJS): Add gimple-predicate-analysis.o.
10443 * tree-ssa-uninit.c (max_phi_args): Move to gimple-predicate-analysis.
10444 (MASK_SET_BIT, MASK_TEST_BIT, MASK_EMPTY): Same.
10445 (check_defs): Add comment.
10446 (can_skip_redundant_opnd): Update comment.
10447 (compute_uninit_opnds_pos): Adjust to namespace change.
10448 (find_pdom): Move to gimple-predicate-analysis.cc.
10450 (struct uninit_undef_val_t): New.
10451 (is_non_loop_exit_postdominating): Move to gimple-predicate-analysis.cc.
10452 (find_control_equiv_block): Same.
10453 (MAX_NUM_CHAINS, MAX_CHAIN_LEN, MAX_POSTDOM_CHECK): Same.
10454 (MAX_SWITCH_CASES): Same.
10455 (compute_control_dep_chain): Same.
10456 (find_uninit_use): Use predicate analyzer.
10457 (struct pred_info): Move to gimple-predicate-analysis.
10458 (convert_control_dep_chain_into_preds): Same.
10459 (find_predicates): Same.
10460 (collect_phi_def_edges): Same.
10461 (warn_uninitialized_phi): Use predicate analyzer.
10462 (find_def_preds): Move to gimple-predicate-analysis.
10463 (dump_pred_info): Same.
10464 (dump_pred_chain): Same.
10465 (dump_predicates): Same.
10466 (destroy_predicate_vecs): Remove.
10467 (execute_late_warn_uninitialized): New.
10468 (get_cmp_code): Move to gimple-predicate-analysis.
10469 (is_value_included_in): Same.
10470 (value_sat_pred_p): Same.
10471 (find_matching_predicate_in_rest_chains): Same.
10472 (is_use_properly_guarded): Same.
10473 (prune_uninit_phi_opnds): Same.
10474 (find_var_cmp_const): Same.
10475 (use_pred_not_overlap_with_undef_path_pred): Same.
10476 (pred_equal_p): Same.
10477 (is_neq_relop_p): Same.
10478 (is_neq_zero_form_p): Same.
10479 (pred_expr_equal_p): Same.
10480 (is_pred_expr_subset_of): Same.
10481 (is_pred_chain_subset_of): Same.
10482 (is_included_in): Same.
10483 (is_superset_of): Same.
10484 (pred_neg_p): Same.
10485 (simplify_pred): Same.
10486 (simplify_preds_2): Same.
10487 (simplify_preds_3): Same.
10488 (simplify_preds_4): Same.
10489 (simplify_preds): Same.
10491 (push_to_worklist): Same.
10492 (get_pred_info_from_cmp): Same.
10493 (is_degenerated_phi): Same.
10494 (normalize_one_pred_1): Same.
10495 (normalize_one_pred): Same.
10496 (normalize_one_pred_chain): Same.
10497 (normalize_preds): Same.
10498 (can_one_predicate_be_invalidated_p): Same.
10499 (can_chain_union_be_invalidated_p): Same.
10500 (uninit_uses_cannot_happen): Same.
10501 (pass_late_warn_uninitialized::execute): Define.
10502 * gimple-predicate-analysis.cc: New file.
10503 * gimple-predicate-analysis.h: New file.
10505 2021-09-17 Julian Brown <julian@codesourcery.com>
10507 * config/gcn/gcn.c (gimple.h): Include.
10508 (gcn_fork_join): Emit barrier for worker-level joins.
10509 * omp-oacc-neuter-broadcast.cc (find_local_vars_to_propagate): Add
10510 writes_gang_private bitmap parameter. Set bit for blocks
10511 containing gang-private variable writes.
10512 (worker_single_simple): Don't emit barrier after predicated block.
10513 (worker_single_copy): Don't emit barrier if we're not broadcasting
10514 anything and the block contains no gang-private writes.
10515 (neuter_worker_single): Don't predicate blocks that only contain
10516 NOPs or internal marker functions. Pass has_gang_private_write
10517 argument to worker_single_copy.
10518 (oacc_do_neutering): Add writes_gang_private bitmap handling.
10520 2021-09-17 Julian Brown <julian@codesourcery.com>
10522 * config/gcn/gcn-protos.h
10523 (gcn_goacc_create_worker_broadcast_record): Update prototype.
10524 * config/gcn/gcn-tree.c (gcn_goacc_get_worker_red_decl): Use
10525 preallocated block of LDS memory. Do not cache/share decls for
10526 reduction temporaries between invocations.
10527 (gcn_goacc_reduction_teardown): Unshare VAR on second use.
10528 (gcn_goacc_create_worker_broadcast_record): Add OFFSET parameter
10529 and return temporary LDS space at that offset. Return pointer in
10531 * config/gcn/gcn.c (acc_lds_size, gang_private_hwm, lds_allocs):
10533 (ACC_LDS_SIZE): Define as acc_lds_size.
10534 (gcn_init_machine_status): Don't initialise lds_allocated,
10535 lds_allocs, reduc_decls fields of machine function struct.
10536 (gcn_option_override): Handle default size for gang-private
10537 variables and -mgang-private-size option.
10538 (gcn_expand_prologue): Use LDS_SIZE instead of LDS_SIZE-1 when
10539 initialising M0_REG.
10540 (gcn_shared_mem_layout): New function.
10541 (gcn_print_lds_decl): Update comment. Use global lds_allocs map and
10542 gang_private_hwm variable.
10543 (TARGET_GOACC_SHARED_MEM_LAYOUT): Define target hook.
10544 * config/gcn/gcn.h (machine_function): Remove lds_allocated,
10545 lds_allocs, reduc_decls. Add reduction_base, reduction_limit.
10546 * config/gcn/gcn.opt (gang_private_size_opt): New global.
10547 (mgang-private-size=): New option.
10548 * doc/tm.texi.in (TARGET_GOACC_SHARED_MEM_LAYOUT): Place
10549 documentation hook.
10550 * doc/tm.texi: Regenerate.
10551 * omp-oacc-neuter-broadcast.cc (targhooks.h, diagnostic-core.h):
10553 (build_sender_ref): Handle sender_decl being pointer.
10554 (worker_single_copy): Add PLACEMENT and ISOLATE_BROADCASTS
10555 parameters. Pass placement argument to
10556 create_worker_broadcast_record hook invocations. Handle
10557 sender_decl being pointer and isolate_broadcasts inserting extra
10559 (blk_offset_map_t): Add typedef.
10560 (neuter_worker_single): Add BLK_OFFSET_MAP parameter. Pass
10561 preallocated range to worker_single_copy call.
10562 (dfs_broadcast_reachable_1): New function.
10563 (idx_decl_pair_t, used_range_vec_t): New typedefs.
10564 (sort_size_descending): New function.
10565 (addr_range): New class.
10566 (splay_tree_compare_addr_range, splay_tree_free_key)
10567 (first_fit_range, merge_ranges_1, merge_ranges): New functions.
10568 (execute_omp_oacc_neuter_broadcast): Rename to...
10569 (oacc_do_neutering): ... this. Add BOUNDS_LO, BOUNDS_HI
10570 parameters. Arrange layout of shared memory for broadcast
10572 (execute_omp_oacc_neuter_broadcast): New function.
10573 (pass_omp_oacc_neuter_broadcast::gate): Remove num_workers==1
10574 handling from here. Enable pass for all OpenACC routines in order
10575 to call shared memory-layout hook.
10576 * target.def (create_worker_broadcast_record): Add OFFSET
10578 (shared_mem_layout): New hook.
10580 2021-09-17 Julian Brown <julian@codesourcery.com>
10581 Thomas Schwinge <thomas@codesourcery.com>
10583 * omp-oacc-neuter-broadcast.cc
10584 (pass_omp_oacc_neuter_broadcast::gate): Disable if num_workers is
10586 (execute_omp_oacc_neuter_broadcast): Adjust.
10588 2021-09-17 Andrew MacLeod <amacleod@redhat.com>
10590 * value-relation.cc (class equiv_chain): Move to header file.
10591 (path_oracle::path_oracle): New.
10592 (path_oracle::~path_oracle): New.
10593 (path_oracle::register_relation): New.
10594 (path_oracle::query_relation): New.
10595 (path_oracle::reset_path): New.
10596 (path_oracle::dump): New.
10597 * value-relation.h (class equiv_chain): Move to here.
10598 (class path_oracle): New.
10600 2021-09-17 Andrew MacLeod <amacleod@redhat.com>
10602 * gimple-range-cache.cc (ranger_cache::ranger_cache): Create a DOM
10604 * gimple-range-fold.cc (fur_depend::register_relation): Use
10605 register_stmt/edge routines.
10606 * value-relation.cc (equiv_chain::find): Relocate from equiv_oracle.
10607 (equiv_oracle::equiv_oracle): Create self equivalence cache.
10608 (equiv_oracle::~equiv_oracle): Release same.
10609 (equiv_oracle::equiv_set): Return entry from self equiv cache if there
10610 are no equivalences.
10611 (equiv_oracle::find_equiv_block): Move list find to equiv_chain.
10612 (equiv_oracle::register_relation): Rename from register_equiv.
10613 (relation_chain_head::find_relation): Relocate from dom_oracle.
10614 (relation_oracle::register_stmt): New.
10615 (relation_oracle::register_edge): New.
10616 (dom_oracle::*): Rename from relation_oracle.
10617 (dom_oracle::register_relation): Adjust to call equiv_oracle.
10618 (dom_oracle::set_one_relation): Split from register_relation.
10619 (dom_oracle::register_transitives): Consolidate 2 methods.
10620 (dom_oracle::find_relation_block): Move core to relation_chain.
10621 (dom_oracle::query_relation): Rename from find_relation_dom and adjust.
10622 * value-relation.h (class relation_oracle): New pure virtual base.
10623 (class equiv_oracle): Inherit from relation_oracle and adjust.
10624 (class dom_oracle): Rename from old relation_oracle and adjust.
10626 2021-09-17 Martin Sebor <msebor@redhat.com>
10628 PR middle-end/102200
10629 * pointer-query.cc (access_ref::inform_access): Handle MIN/MAX_EXPR.
10630 (handle_min_max_size): Change argument. Store original SSA_NAME for
10631 operands to potentially distinct (sub)objects.
10632 (compute_objsize_r): Adjust call to the above.
10634 2021-09-17 Bill Schmidt <wschmidt@linux.ibm.com>
10636 * config/rs6000/rs6000.c (rs6000-builtins.h): New include.
10637 (rs6000_new_builtin_vectorized_function): New function.
10638 (rs6000_new_builtin_md_vectorized_function): Likewise.
10639 (rs6000_builtin_vectorized_function): Call
10640 rs6000_new_builtin_vectorized_function.
10641 (rs6000_builtin_md_vectorized_function): Call
10642 rs6000_new_builtin_md_vectorized_function.
10644 2021-09-17 Bill Schmidt <wschmidt@linux.ibm.com>
10646 * config/rs6000/rs6000-builtin-new.def (ASSEMBLE_ACC): Add mmaint flag.
10647 (ASSEMBLE_PAIR): Likewise.
10648 (BUILD_ACC): Likewise.
10649 (DISASSEMBLE_ACC): Likewise.
10650 (DISASSEMBLE_PAIR): Likewise.
10651 (PMXVBF16GER2): Likewise.
10652 (PMXVBF16GER2NN): Likewise.
10653 (PMXVBF16GER2NP): Likewise.
10654 (PMXVBF16GER2PN): Likewise.
10655 (PMXVBF16GER2PP): Likewise.
10656 (PMXVF16GER2): Likewise.
10657 (PMXVF16GER2NN): Likewise.
10658 (PMXVF16GER2NP): Likewise.
10659 (PMXVF16GER2PN): Likewise.
10660 (PMXVF16GER2PP): Likewise.
10661 (PMXVF32GER): Likewise.
10662 (PMXVF32GERNN): Likewise.
10663 (PMXVF32GERNP): Likewise.
10664 (PMXVF32GERPN): Likewise.
10665 (PMXVF32GERPP): Likewise.
10666 (PMXVF64GER): Likewise.
10667 (PMXVF64GERNN): Likewise.
10668 (PMXVF64GERNP): Likewise.
10669 (PMXVF64GERPN): Likewise.
10670 (PMXVF64GERPP): Likewise.
10671 (PMXVI16GER2): Likewise.
10672 (PMXVI16GER2PP): Likewise.
10673 (PMXVI16GER2S): Likewise.
10674 (PMXVI16GER2SPP): Likewise.
10675 (PMXVI4GER8): Likewise.
10676 (PMXVI4GER8PP): Likewise.
10677 (PMXVI8GER4): Likewise.
10678 (PMXVI8GER4PP): Likewise.
10679 (PMXVI8GER4SPP): Likewise.
10680 (XVBF16GER2): Likewise.
10681 (XVBF16GER2NN): Likewise.
10682 (XVBF16GER2NP): Likewise.
10683 (XVBF16GER2PN): Likewise.
10684 (XVBF16GER2PP): Likewise.
10685 (XVF16GER2): Likewise.
10686 (XVF16GER2NN): Likewise.
10687 (XVF16GER2NP): Likewise.
10688 (XVF16GER2PN): Likewise.
10689 (XVF16GER2PP): Likewise.
10690 (XVF32GER): Likewise.
10691 (XVF32GERNN): Likewise.
10692 (XVF32GERNP): Likewise.
10693 (XVF32GERPN): Likewise.
10694 (XVF32GERPP): Likewise.
10695 (XVF64GER): Likewise.
10696 (XVF64GERNN): Likewise.
10697 (XVF64GERNP): Likewise.
10698 (XVF64GERPN): Likewise.
10699 (XVF64GERPP): Likewise.
10700 (XVI16GER2): Likewise.
10701 (XVI16GER2PP): Likewise.
10702 (XVI16GER2S): Likewise.
10703 (XVI16GER2SPP): Likewise.
10704 (XVI4GER8): Likewise.
10705 (XVI4GER8PP): Likewise.
10706 (XVI8GER4): Likewise.
10707 (XVI8GER4PP): Likewise.
10708 (XVI8GER4SPP): Likewise.
10709 (XXMFACC): Likewise.
10710 (XXMTACC): Likewise.
10711 (XXSETACCZ): Likewise.
10712 (ASSEMBLE_PAIR_V): Likewise.
10713 (BUILD_PAIR): Likewise.
10714 (DISASSEMBLE_PAIR_V): Likewise.
10717 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_new_mma_builtin):
10718 Handle RS6000_BIF_LXVP and RS6000_BIF_STXVP.
10719 * config/rs6000/rs6000-gen-builtins.c (attrinfo): Add ismmaint.
10720 (parse_bif_attrs): Handle ismmaint.
10721 (write_decls): Add bif_mmaint_bit and bif_is_mmaint.
10722 (write_bif_static_init): Handle ismmaint.
10724 2021-09-17 Bill Schmidt <wschmidt@linux.ibm.com>
10726 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_new_builtin): New
10728 (rs6000_gimple_fold_builtin): Call rs6000_gimple_fold_new_builtin.
10729 (rs6000_new_builtin_valid_without_lhs): New function.
10730 (rs6000_gimple_fold_new_mma_builtin): Likewise.
10731 (rs6000_gimple_fold_new_builtin): Likewise.
10733 2021-09-17 Thomas Schwinge <thomas@codesourcery.com>
10735 * hash-table.h (hash_table<Descriptor, Lazy, Allocator>::expand):
10736 Destruct stale Value objects.
10737 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor_expand):
10740 2021-09-17 Roger Sayle <roger@nextmovesoftware.com>
10743 * match.pd (shift optimizations): Disable recent sign-changing
10744 optimization for shifts by zero, these will be folded later.
10746 2021-09-17 Bill Schmidt <wschmidt@linux.ibm.com>
10748 * config/rs6000/rs6000-builtin-new.def (__builtin_mffsl): Move from
10749 [power9] to [always].
10751 2021-09-17 Richard Biener <rguenther@suse.de>
10753 * tree-vect-stmts.c (vectorizable_load): Do not frob
10756 2021-09-17 H.J. Lu <hjl.tools@gmail.com>
10758 * config/i386/i386-features.c (remove_partial_avx_dependency):
10759 Also check TARGET_SSE_PARTIAL_REG_FP_CONVERTS_DEPENDENCY and
10760 and TARGET_SSE_PARTIAL_REG_CONVERTS_DEPENDENCY before generating
10762 * config/i386/i386.h (TARGET_SSE_PARTIAL_REG_FP_CONVERTS_DEPENDENCY):
10764 (TARGET_SSE_PARTIAL_REG_CONVERTS_DEPENDENCY): Likewise.
10765 * config/i386/i386.md (SSE FP to FP splitters): Replace
10766 TARGET_SSE_PARTIAL_REG_DEPENDENCY with
10767 TARGET_SSE_PARTIAL_REG_FP_CONVERTS_DEPENDENCY.
10768 (SSE INT to FP splitter): Replace TARGET_SSE_PARTIAL_REG_DEPENDENCY
10769 with TARGET_SSE_PARTIAL_REG_CONVERTS_DEPENDENCY.
10770 * config/i386/x86-tune.def
10771 (X86_TUNE_SSE_PARTIAL_REG_FP_CONVERTS_DEPENDENCY): New.
10772 (X86_TUNE_SSE_PARTIAL_REG_CONVERTS_DEPENDENCY): Likewise.
10774 2021-09-17 H.J. Lu <hjl.tools@gmail.com>
10777 * config/i386/i386-features.c (remove_partial_avx_dependency):
10778 Check TARGET_USE_VECTOR_FP_CONVERTS and TARGET_USE_VECTOR_CONVERTS
10779 before generating vxorps.
10781 2021-09-17 H.J. Lu <hjl.tools@gmail.com>
10783 * config/i386/i386-options.c (processor_cost_table): Use
10784 tremont_cost for Tremont.
10785 * config/i386/x86-tune-costs.h (tremont_memcpy): New.
10786 (tremont_memset): Likewise.
10787 (tremont_cost): Likewise.
10788 * config/i386/x86-tune.def (X86_TUNE_PREFER_KNOWN_REP_MOVSB_STOSB):
10789 Enable for Tremont.
10791 2021-09-17 H.J. Lu <hjl.tools@gmail.com>
10793 * common/config/i386/i386-common.c: Use Haswell scheduling model
10795 * config/i386/i386.c (ix86_sched_init_global): Prepare for Tremont
10797 * config/i386/x86-tune-sched.c (ix86_issue_rate): Change Tremont
10799 (ix86_adjust_cost): Handle Tremont.
10800 * config/i386/x86-tune.def (X86_TUNE_SSE_PARTIAL_REG_DEPENDENCY):
10801 Enable for Tremont.
10802 (X86_TUNE_USE_LEAVE): Likewise.
10803 (X86_TUNE_PUSH_MEMORY): Likewise.
10804 (X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Likewise.
10805 (X86_TUNE_USE_CLTD): Likewise.
10806 (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI): Likewise.
10807 (X86_TUNE_AVOID_MFENCE): Likewise.
10808 (X86_TUNE_SSE_TYPELESS_STORES): Likewise.
10809 (X86_TUNE_SSE_LOAD0_BY_PXOR): Likewise.
10810 (X86_TUNE_ACCUMULATE_OUTGOING_ARGS): Disable for Tremont.
10811 (X86_TUNE_FOUR_JUMP_LIMIT): Likewise.
10812 (X86_TUNE_OPT_AGU): Likewise.
10813 (X86_TUNE_AVOID_LEA_FOR_ADDR): Likewise.
10814 (X86_TUNE_AVOID_MEM_OPND_FOR_CMOVE): Likewise.
10815 (X86_TUNE_EXPAND_ABS): Likewise.
10816 (X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS): Likewise.
10817 (X86_TUNE_SLOW_PSHUFB): Likewise.
10819 2021-09-17 Eric Botcazou <ebotcazou@adacore.com>
10821 PR rtl-optimization/102306
10822 * combine.c (try_combine): Abort the combination if we are about to
10823 duplicate volatile references.
10825 2021-09-17 liuhongt <hongtao.liu@intel.com>
10827 * config/i386/avx512fp16intrin.h (_mm_undefined_ph):
10829 (_mm256_undefined_ph): Likewise.
10830 (_mm512_undefined_ph): Likewise.
10831 (_mm_cvtsh_h): Likewise.
10832 (_mm256_cvtsh_h): Likewise.
10833 (_mm512_cvtsh_h): Likewise.
10834 (_mm512_castph_ps): Likewise.
10835 (_mm512_castph_pd): Likewise.
10836 (_mm512_castph_si512): Likewise.
10837 (_mm512_castph512_ph128): Likewise.
10838 (_mm512_castph512_ph256): Likewise.
10839 (_mm512_castph128_ph512): Likewise.
10840 (_mm512_castph256_ph512): Likewise.
10841 (_mm512_zextph128_ph512): Likewise.
10842 (_mm512_zextph256_ph512): Likewise.
10843 (_mm512_castps_ph): Likewise.
10844 (_mm512_castpd_ph): Likewise.
10845 (_mm512_castsi512_ph): Likewise.
10846 * config/i386/avx512fp16vlintrin.h (_mm_castph_ps):
10848 (_mm256_castph_ps): Likewise.
10849 (_mm_castph_pd): Likewise.
10850 (_mm256_castph_pd): Likewise.
10851 (_mm_castph_si128): Likewise.
10852 (_mm256_castph_si256): Likewise.
10853 (_mm_castps_ph): Likewise.
10854 (_mm256_castps_ph): Likewise.
10855 (_mm_castpd_ph): Likewise.
10856 (_mm256_castpd_ph): Likewise.
10857 (_mm_castsi128_ph): Likewise.
10858 (_mm256_castsi256_ph): Likewise.
10859 (_mm256_castph256_ph128): Likewise.
10860 (_mm256_castph128_ph256): Likewise.
10861 (_mm256_zextph128_ph256): Likewise.
10863 2021-09-17 liuhongt <hongtao.liu@intel.com>
10865 * config/i386/avx512fp16intrin.h (_mm_cvtsh_ss):
10867 (_mm_mask_cvtsh_ss): Likewise.
10868 (_mm_maskz_cvtsh_ss): Likewise.
10869 (_mm_cvtsh_sd): Likewise.
10870 (_mm_mask_cvtsh_sd): Likewise.
10871 (_mm_maskz_cvtsh_sd): Likewise.
10872 (_mm_cvt_roundsh_ss): Likewise.
10873 (_mm_mask_cvt_roundsh_ss): Likewise.
10874 (_mm_maskz_cvt_roundsh_ss): Likewise.
10875 (_mm_cvt_roundsh_sd): Likewise.
10876 (_mm_mask_cvt_roundsh_sd): Likewise.
10877 (_mm_maskz_cvt_roundsh_sd): Likewise.
10878 (_mm_cvtss_sh): Likewise.
10879 (_mm_mask_cvtss_sh): Likewise.
10880 (_mm_maskz_cvtss_sh): Likewise.
10881 (_mm_cvtsd_sh): Likewise.
10882 (_mm_mask_cvtsd_sh): Likewise.
10883 (_mm_maskz_cvtsd_sh): Likewise.
10884 (_mm_cvt_roundss_sh): Likewise.
10885 (_mm_mask_cvt_roundss_sh): Likewise.
10886 (_mm_maskz_cvt_roundss_sh): Likewise.
10887 (_mm_cvt_roundsd_sh): Likewise.
10888 (_mm_mask_cvt_roundsd_sh): Likewise.
10889 (_mm_maskz_cvt_roundsd_sh): Likewise.
10890 * config/i386/i386-builtin-types.def
10891 (V8HF_FTYPE_V2DF_V8HF_V8HF_UQI_INT,
10892 V8HF_FTYPE_V4SF_V8HF_V8HF_UQI_INT,
10893 V2DF_FTYPE_V8HF_V2DF_V2DF_UQI_INT,
10894 V4SF_FTYPE_V8HF_V4SF_V4SF_UQI_INT): Add new builtin types.
10895 * config/i386/i386-builtin.def: Add corrresponding new builtins.
10896 * config/i386/i386-expand.c: Handle new builtin types.
10897 * config/i386/sse.md (VF48_128): New mode iterator.
10898 (avx512fp16_vcvtsh2<ssescalarmodesuffix><mask_scalar_name><round_saeonly_scalar_name>):
10900 (avx512fp16_vcvt<ssescalarmodesuffix>2sh<mask_scalar_name><round_scalar_name>):
10903 2021-09-17 liuhongt <hongtao.liu@intel.com>
10905 * config/i386/avx512fp16intrin.h (_mm512_cvtph_pd):
10907 (_mm512_mask_cvtph_pd): Likewise.
10908 (_mm512_maskz_cvtph_pd): Likewise.
10909 (_mm512_cvt_roundph_pd): Likewise.
10910 (_mm512_mask_cvt_roundph_pd): Likewise.
10911 (_mm512_maskz_cvt_roundph_pd): Likewise.
10912 (_mm512_cvtxph_ps): Likewise.
10913 (_mm512_mask_cvtxph_ps): Likewise.
10914 (_mm512_maskz_cvtxph_ps): Likewise.
10915 (_mm512_cvtx_roundph_ps): Likewise.
10916 (_mm512_mask_cvtx_roundph_ps): Likewise.
10917 (_mm512_maskz_cvtx_roundph_ps): Likewise.
10918 (_mm512_cvtxps_ph): Likewise.
10919 (_mm512_mask_cvtxps_ph): Likewise.
10920 (_mm512_maskz_cvtxps_ph): Likewise.
10921 (_mm512_cvtx_roundps_ph): Likewise.
10922 (_mm512_mask_cvtx_roundps_ph): Likewise.
10923 (_mm512_maskz_cvtx_roundps_ph): Likewise.
10924 (_mm512_cvtpd_ph): Likewise.
10925 (_mm512_mask_cvtpd_ph): Likewise.
10926 (_mm512_maskz_cvtpd_ph): Likewise.
10927 (_mm512_cvt_roundpd_ph): Likewise.
10928 (_mm512_mask_cvt_roundpd_ph): Likewise.
10929 (_mm512_maskz_cvt_roundpd_ph): Likewise.
10930 * config/i386/avx512fp16vlintrin.h (_mm_cvtph_pd):
10932 (_mm_mask_cvtph_pd): Likewise.
10933 (_mm_maskz_cvtph_pd): Likewise.
10934 (_mm256_cvtph_pd): Likewise.
10935 (_mm256_mask_cvtph_pd): Likewise.
10936 (_mm256_maskz_cvtph_pd): Likewise.
10937 (_mm_cvtxph_ps): Likewise.
10938 (_mm_mask_cvtxph_ps): Likewise.
10939 (_mm_maskz_cvtxph_ps): Likewise.
10940 (_mm256_cvtxph_ps): Likewise.
10941 (_mm256_mask_cvtxph_ps): Likewise.
10942 (_mm256_maskz_cvtxph_ps): Likewise.
10943 (_mm_cvtxps_ph): Likewise.
10944 (_mm_mask_cvtxps_ph): Likewise.
10945 (_mm_maskz_cvtxps_ph): Likewise.
10946 (_mm256_cvtxps_ph): Likewise.
10947 (_mm256_mask_cvtxps_ph): Likewise.
10948 (_mm256_maskz_cvtxps_ph): Likewise.
10949 (_mm_cvtpd_ph): Likewise.
10950 (_mm_mask_cvtpd_ph): Likewise.
10951 (_mm_maskz_cvtpd_ph): Likewise.
10952 (_mm256_cvtpd_ph): Likewise.
10953 (_mm256_mask_cvtpd_ph): Likewise.
10954 (_mm256_maskz_cvtpd_ph): Likewise.
10955 * config/i386/i386-builtin.def: Add corresponding new builtins.
10956 * config/i386/i386-builtin-types.def: Add corresponding builtin types.
10957 * config/i386/i386-expand.c: Handle new builtin types.
10958 * config/i386/sse.md
10959 (VF4_128_8_256): New.
10960 (VF48H_AVX512VL): Ditto.
10961 (ssePHmode): Add HF vector modes.
10962 (castmode): Add new convertable modes.
10963 (qq2phsuff): Ditto.
10964 (ph2pssuffix): New.
10965 (avx512fp16_vcvt<castmode>2ph_<mode><mask_name><round_name>): Ditto.
10966 (avx512fp16_vcvt<castmode>2ph_<mode>): Ditto.
10967 (*avx512fp16_vcvt<castmode>2ph_<mode>): Ditto.
10968 (avx512fp16_vcvt<castmode>2ph_<mode>_mask): Ditto.
10969 (*avx512fp16_vcvt<castmode>2ph_<mode>_mask): Ditto.
10970 (*avx512fp16_vcvt<castmode>2ph_<mode>_mask_1): Ditto.
10971 (avx512fp16_float_extend_ph<mode>2<mask_name><round_saeonly_name>):
10973 (avx512fp16_float_extend_ph<mode>2<mask_name>): Ditto.
10974 (*avx512fp16_float_extend_ph<mode>2_load<mask_name>): Ditto.
10975 (avx512fp16_float_extend_phv2df2<mask_name>): Ditto.
10976 (*avx512fp16_float_extend_phv2df2_load<mask_name>): Ditto.
10978 2021-09-17 liuhongt <hongtao.liu@intel.com>
10980 * config/i386/avx512fp16intrin.h (_mm_cvttsh_i32):
10982 (_mm_cvttsh_u32): Likewise.
10983 (_mm_cvtt_roundsh_i32): Likewise.
10984 (_mm_cvtt_roundsh_u32): Likewise.
10985 (_mm_cvttsh_i64): Likewise.
10986 (_mm_cvttsh_u64): Likewise.
10987 (_mm_cvtt_roundsh_i64): Likewise.
10988 (_mm_cvtt_roundsh_u64): Likewise.
10989 * config/i386/i386-builtin.def: Add corresponding new builtins.
10990 * config/i386/sse.md
10991 (avx512fp16_fix<fixunssuffix>_trunc<mode>2<round_saeonly_name>):
10994 2021-09-17 liuhongt <hongtao.liu@intel.com>
10996 * config/i386/avx512fp16intrin.h (_mm512_cvttph_epi32):
10998 (_mm512_mask_cvttph_epi32): Likewise.
10999 (_mm512_maskz_cvttph_epi32): Likewise.
11000 (_mm512_cvtt_roundph_epi32): Likewise.
11001 (_mm512_mask_cvtt_roundph_epi32): Likewise.
11002 (_mm512_maskz_cvtt_roundph_epi32): Likewise.
11003 (_mm512_cvttph_epu32): Likewise.
11004 (_mm512_mask_cvttph_epu32): Likewise.
11005 (_mm512_maskz_cvttph_epu32): Likewise.
11006 (_mm512_cvtt_roundph_epu32): Likewise.
11007 (_mm512_mask_cvtt_roundph_epu32): Likewise.
11008 (_mm512_maskz_cvtt_roundph_epu32): Likewise.
11009 (_mm512_cvttph_epi64): Likewise.
11010 (_mm512_mask_cvttph_epi64): Likewise.
11011 (_mm512_maskz_cvttph_epi64): Likewise.
11012 (_mm512_cvtt_roundph_epi64): Likewise.
11013 (_mm512_mask_cvtt_roundph_epi64): Likewise.
11014 (_mm512_maskz_cvtt_roundph_epi64): Likewise.
11015 (_mm512_cvttph_epu64): Likewise.
11016 (_mm512_mask_cvttph_epu64): Likewise.
11017 (_mm512_maskz_cvttph_epu64): Likewise.
11018 (_mm512_cvtt_roundph_epu64): Likewise.
11019 (_mm512_mask_cvtt_roundph_epu64): Likewise.
11020 (_mm512_maskz_cvtt_roundph_epu64): Likewise.
11021 (_mm512_cvttph_epi16): Likewise.
11022 (_mm512_mask_cvttph_epi16): Likewise.
11023 (_mm512_maskz_cvttph_epi16): Likewise.
11024 (_mm512_cvtt_roundph_epi16): Likewise.
11025 (_mm512_mask_cvtt_roundph_epi16): Likewise.
11026 (_mm512_maskz_cvtt_roundph_epi16): Likewise.
11027 (_mm512_cvttph_epu16): Likewise.
11028 (_mm512_mask_cvttph_epu16): Likewise.
11029 (_mm512_maskz_cvttph_epu16): Likewise.
11030 (_mm512_cvtt_roundph_epu16): Likewise.
11031 (_mm512_mask_cvtt_roundph_epu16): Likewise.
11032 (_mm512_maskz_cvtt_roundph_epu16): Likewise.
11033 * config/i386/avx512fp16vlintrin.h (_mm_cvttph_epi32):
11035 (_mm_mask_cvttph_epi32): Likewise.
11036 (_mm_maskz_cvttph_epi32): Likewise.
11037 (_mm256_cvttph_epi32): Likewise.
11038 (_mm256_mask_cvttph_epi32): Likewise.
11039 (_mm256_maskz_cvttph_epi32): Likewise.
11040 (_mm_cvttph_epu32): Likewise.
11041 (_mm_mask_cvttph_epu32): Likewise.
11042 (_mm_maskz_cvttph_epu32): Likewise.
11043 (_mm256_cvttph_epu32): Likewise.
11044 (_mm256_mask_cvttph_epu32): Likewise.
11045 (_mm256_maskz_cvttph_epu32): Likewise.
11046 (_mm_cvttph_epi64): Likewise.
11047 (_mm_mask_cvttph_epi64): Likewise.
11048 (_mm_maskz_cvttph_epi64): Likewise.
11049 (_mm256_cvttph_epi64): Likewise.
11050 (_mm256_mask_cvttph_epi64): Likewise.
11051 (_mm256_maskz_cvttph_epi64): Likewise.
11052 (_mm_cvttph_epu64): Likewise.
11053 (_mm_mask_cvttph_epu64): Likewise.
11054 (_mm_maskz_cvttph_epu64): Likewise.
11055 (_mm256_cvttph_epu64): Likewise.
11056 (_mm256_mask_cvttph_epu64): Likewise.
11057 (_mm256_maskz_cvttph_epu64): Likewise.
11058 (_mm_cvttph_epi16): Likewise.
11059 (_mm_mask_cvttph_epi16): Likewise.
11060 (_mm_maskz_cvttph_epi16): Likewise.
11061 (_mm256_cvttph_epi16): Likewise.
11062 (_mm256_mask_cvttph_epi16): Likewise.
11063 (_mm256_maskz_cvttph_epi16): Likewise.
11064 (_mm_cvttph_epu16): Likewise.
11065 (_mm_mask_cvttph_epu16): Likewise.
11066 (_mm_maskz_cvttph_epu16): Likewise.
11067 (_mm256_cvttph_epu16): Likewise.
11068 (_mm256_mask_cvttph_epu16): Likewise.
11069 (_mm256_maskz_cvttph_epu16): Likewise.
11070 * config/i386/i386-builtin.def: Add new builtins.
11071 * config/i386/sse.md
11072 (avx512fp16_fix<fixunssuffix>_trunc<mode>2<mask_name><round_saeonly_name>):
11074 (avx512fp16_fix<fixunssuffix>_trunc<mode>2<mask_name>): Ditto.
11075 (*avx512fp16_fix<fixunssuffix>_trunc<mode>2_load<mask_name>): Ditto.
11076 (avx512fp16_fix<fixunssuffix>_truncv2di2<mask_name>): Ditto.
11077 (avx512fp16_fix<fixunssuffix>_truncv2di2_load<mask_name>): Ditto.
11079 2021-09-17 liuhongt <hongtao.liu@intel.com>
11081 * config/i386/avx512fp16intrin.h (_mm_cvtsh_i32): New intrinsic.
11082 (_mm_cvtsh_u32): Likewise.
11083 (_mm_cvt_roundsh_i32): Likewise.
11084 (_mm_cvt_roundsh_u32): Likewise.
11085 (_mm_cvtsh_i64): Likewise.
11086 (_mm_cvtsh_u64): Likewise.
11087 (_mm_cvt_roundsh_i64): Likewise.
11088 (_mm_cvt_roundsh_u64): Likewise.
11089 (_mm_cvti32_sh): Likewise.
11090 (_mm_cvtu32_sh): Likewise.
11091 (_mm_cvt_roundi32_sh): Likewise.
11092 (_mm_cvt_roundu32_sh): Likewise.
11093 (_mm_cvti64_sh): Likewise.
11094 (_mm_cvtu64_sh): Likewise.
11095 (_mm_cvt_roundi64_sh): Likewise.
11096 (_mm_cvt_roundu64_sh): Likewise.
11097 * config/i386/i386-builtin-types.def: Add corresponding builtin types.
11098 * config/i386/i386-builtin.def: Add corresponding new builtins.
11099 * config/i386/i386-expand.c (ix86_expand_round_builtin):
11100 Handle new builtin types.
11101 * config/i386/sse.md
11102 (avx512fp16_vcvtsh2<sseintconvertsignprefix>si<rex64namesuffix><round_name>):
11104 (avx512fp16_vcvtsh2<sseintconvertsignprefix>si<rex64namesuffix>_2): Likewise.
11105 (avx512fp16_vcvt<floatsuffix>si2sh<rex64namesuffix><round_name>): Likewise.
11107 2021-09-16 Bill Schmidt <wschmidt@linux.ibm.com>
11109 * config/rs6000/rs6000-c.c (rs6000-builtins.h): New include.
11110 (altivec_resolve_new_overloaded_builtin): New forward decl.
11111 (rs6000_new_builtin_type_compatible): New function.
11112 (altivec_resolve_overloaded_builtin): Call
11113 altivec_resolve_new_overloaded_builtin.
11114 (altivec_build_new_resolved_builtin): New function.
11115 (altivec_resolve_new_overloaded_builtin): Likewise.
11116 * config/rs6000/rs6000-call.c (rs6000_new_builtin_is_supported):
11118 * config/rs6000/rs6000-gen-builtins.c (write_decls): Remove _p from
11119 name of rs6000_new_builtin_is_supported.
11121 2021-09-16 Uroš Bizjak <ubizjak@gmail.com>
11123 * config/i386/i386-protos.h (ix86_decompose_address):
11124 Change return type to bool.
11125 * config/i386/i386.c (ix86_decompose_address): Ditto.
11127 2021-09-16 Tobias Burnus <tobias@codesourcery.com>
11130 * config/rs6000/t-rs6000 (build/rs6000-gen-builtins.o, build/rbtree.o):
11131 Added 'build/' to target, use build/%.o rule.
11132 (build/rs6000-gen-builtins$(build_exeext)): Add 'build/' and
11133 '$(build_exeext)' to target and 'build/' for the *.o files.
11134 (rs6000-builtins.c): Update for those changes; run rs6000-gen-builtins
11137 2021-09-16 Martin Jambor <mjambor@suse.cz>
11139 * cgraph.c (cgraph_node::dump): Do not check caller count sums if
11140 the body has been removed. Remove trailing whitespace.
11142 2021-09-16 Richard Biener <rguenther@suse.de>
11144 PR middle-end/102360
11145 * internal-fn.c (expand_DEFERRED_INIT): Make pattern-init
11146 of non-memory more robust.
11148 2021-09-16 Daniel Cederman <cederman@gaisler.com>
11150 * config/sparc/sparc-opts.h (enum sparc_processor_type): Add LEON5
11151 * config/sparc/sparc.c (struct processor_costs): Add LEON5 costs
11152 (leon5_adjust_cost): Increase cost of store with data dependency
11153 on ALU instruction and FPU anti-dependencies.
11154 (sparc_option_override): Add LEON5 costs
11155 (sparc_adjust_cost): Add LEON5 cost adjustments
11156 * config/sparc/sparc.h: Add LEON5
11157 * config/sparc/sparc.md: Include LEON5 scheduling information
11158 * config/sparc/sparc.opt: Add LEON5
11159 * doc/invoke.texi: Add LEON5
11160 * config/sparc/leon5.md: New file.
11162 2021-09-16 Daniel Cederman <cederman@gaisler.com>
11164 * config/sparc/sparc.md (stack_protect_set32): Add NOP to prevent
11165 sensitive sequence for B2BST errata workaround.
11167 2021-09-16 Daniel Cederman <cederman@gaisler.com>
11169 * config/sparc/sparc.c (sparc_do_work_around_errata): Do not begin
11170 functions with atomic instruction in the UT700 errata workaround.
11172 2021-09-16 Daniel Cederman <cederman@gaisler.com>
11174 * config/sparc/sparc.c (next_active_non_empty_insn): New function
11175 that returns next active non empty assembly instruction.
11176 (sparc_do_work_around_errata): Use new function.
11178 2021-09-16 Daniel Cederman <cederman@gaisler.com>
11180 * config/sparc/sparc.c (store_insn_p): Add predicate for store
11182 (load_insn_p): Add predicate for load attributes.
11183 (sparc_do_work_around_errata): Use new predicates.
11185 2021-09-16 Andreas Larsson <andreas@gaisler.com>
11187 * config/sparc/sparc.c (dump_target_flag_bits): Print bit names for
11190 2021-09-16 Martin Liska <mliska@suse.cz>
11192 * config/mips/netbsd.h: Fix typo in name of a macro.
11194 2021-09-16 liuhongt <hongtao.liu@intel.com>
11196 PR middle-end/102080
11197 * match.pd: Check mask type when doing cond_op related gimple
11199 * tree.c (is_truth_type_for): New function.
11200 * tree.h (is_truth_type_for): New declaration.
11202 2021-09-16 liuhongt <hongtao.liu@intel.com>
11204 * config/i386/avx512fp16intrin.h (_mm512_cvtepi32_ph): New
11206 (_mm512_mask_cvtepi32_ph): Likewise.
11207 (_mm512_maskz_cvtepi32_ph): Likewise.
11208 (_mm512_cvt_roundepi32_ph): Likewise.
11209 (_mm512_mask_cvt_roundepi32_ph): Likewise.
11210 (_mm512_maskz_cvt_roundepi32_ph): Likewise.
11211 (_mm512_cvtepu32_ph): Likewise.
11212 (_mm512_mask_cvtepu32_ph): Likewise.
11213 (_mm512_maskz_cvtepu32_ph): Likewise.
11214 (_mm512_cvt_roundepu32_ph): Likewise.
11215 (_mm512_mask_cvt_roundepu32_ph): Likewise.
11216 (_mm512_maskz_cvt_roundepu32_ph): Likewise.
11217 (_mm512_cvtepi64_ph): Likewise.
11218 (_mm512_mask_cvtepi64_ph): Likewise.
11219 (_mm512_maskz_cvtepi64_ph): Likewise.
11220 (_mm512_cvt_roundepi64_ph): Likewise.
11221 (_mm512_mask_cvt_roundepi64_ph): Likewise.
11222 (_mm512_maskz_cvt_roundepi64_ph): Likewise.
11223 (_mm512_cvtepu64_ph): Likewise.
11224 (_mm512_mask_cvtepu64_ph): Likewise.
11225 (_mm512_maskz_cvtepu64_ph): Likewise.
11226 (_mm512_cvt_roundepu64_ph): Likewise.
11227 (_mm512_mask_cvt_roundepu64_ph): Likewise.
11228 (_mm512_maskz_cvt_roundepu64_ph): Likewise.
11229 (_mm512_cvtepi16_ph): Likewise.
11230 (_mm512_mask_cvtepi16_ph): Likewise.
11231 (_mm512_maskz_cvtepi16_ph): Likewise.
11232 (_mm512_cvt_roundepi16_ph): Likewise.
11233 (_mm512_mask_cvt_roundepi16_ph): Likewise.
11234 (_mm512_maskz_cvt_roundepi16_ph): Likewise.
11235 (_mm512_cvtepu16_ph): Likewise.
11236 (_mm512_mask_cvtepu16_ph): Likewise.
11237 (_mm512_maskz_cvtepu16_ph): Likewise.
11238 (_mm512_cvt_roundepu16_ph): Likewise.
11239 (_mm512_mask_cvt_roundepu16_ph): Likewise.
11240 (_mm512_maskz_cvt_roundepu16_ph): Likewise.
11241 * config/i386/avx512fp16vlintrin.h (_mm_cvtepi32_ph): New
11243 (_mm_mask_cvtepi32_ph): Likewise.
11244 (_mm_maskz_cvtepi32_ph): Likewise.
11245 (_mm256_cvtepi32_ph): Likewise.
11246 (_mm256_mask_cvtepi32_ph): Likewise.
11247 (_mm256_maskz_cvtepi32_ph): Likewise.
11248 (_mm_cvtepu32_ph): Likewise.
11249 (_mm_mask_cvtepu32_ph): Likewise.
11250 (_mm_maskz_cvtepu32_ph): Likewise.
11251 (_mm256_cvtepu32_ph): Likewise.
11252 (_mm256_mask_cvtepu32_ph): Likewise.
11253 (_mm256_maskz_cvtepu32_ph): Likewise.
11254 (_mm_cvtepi64_ph): Likewise.
11255 (_mm_mask_cvtepi64_ph): Likewise.
11256 (_mm_maskz_cvtepi64_ph): Likewise.
11257 (_mm256_cvtepi64_ph): Likewise.
11258 (_mm256_mask_cvtepi64_ph): Likewise.
11259 (_mm256_maskz_cvtepi64_ph): Likewise.
11260 (_mm_cvtepu64_ph): Likewise.
11261 (_mm_mask_cvtepu64_ph): Likewise.
11262 (_mm_maskz_cvtepu64_ph): Likewise.
11263 (_mm256_cvtepu64_ph): Likewise.
11264 (_mm256_mask_cvtepu64_ph): Likewise.
11265 (_mm256_maskz_cvtepu64_ph): Likewise.
11266 (_mm_cvtepi16_ph): Likewise.
11267 (_mm_mask_cvtepi16_ph): Likewise.
11268 (_mm_maskz_cvtepi16_ph): Likewise.
11269 (_mm256_cvtepi16_ph): Likewise.
11270 (_mm256_mask_cvtepi16_ph): Likewise.
11271 (_mm256_maskz_cvtepi16_ph): Likewise.
11272 (_mm_cvtepu16_ph): Likewise.
11273 (_mm_mask_cvtepu16_ph): Likewise.
11274 (_mm_maskz_cvtepu16_ph): Likewise.
11275 (_mm256_cvtepu16_ph): Likewise.
11276 (_mm256_mask_cvtepu16_ph): Likewise.
11277 (_mm256_maskz_cvtepu16_ph): Likewise.
11278 * config/i386/i386-builtin-types.def: Add corresponding builtin types.
11279 * config/i386/i386-builtin.def: Add corresponding new builtins.
11280 * config/i386/i386-expand.c
11281 (ix86_expand_args_builtin): Handle new builtin types.
11282 (ix86_expand_round_builtin): Ditto.
11283 * config/i386/i386-modes.def: Declare V2HF and V6HF.
11284 * config/i386/sse.md (VI2H_AVX512VL): New.
11285 (qq2phsuff): Ditto.
11286 (sseintvecmode): Add HF vector modes.
11287 (avx512fp16_vcvt<floatsuffix><sseintconvert>2ph_<mode><mask_name><round_name>):
11289 (avx512fp16_vcvt<floatsuffix><sseintconvert>2ph_<mode>): Ditto.
11290 (*avx512fp16_vcvt<floatsuffix><sseintconvert>2ph_<mode>): Ditto.
11291 (avx512fp16_vcvt<floatsuffix><sseintconvert>2ph_<mode>_mask): Ditto.
11292 (*avx512fp16_vcvt<floatsuffix><sseintconvert>2ph_<mode>_mask): Ditto.
11293 (*avx512fp16_vcvt<floatsuffix><sseintconvert>2ph_<mode>_mask_1): Ditto.
11294 (avx512fp16_vcvt<floatsuffix>qq2ph_v2di): Ditto.
11295 (*avx512fp16_vcvt<floatsuffix>qq2ph_v2di): Ditto.
11296 (avx512fp16_vcvt<floatsuffix>qq2ph_v2di_mask): Ditto.
11297 (*avx512fp16_vcvt<floatsuffix>qq2ph_v2di_mask): Ditto.
11298 (*avx512fp16_vcvt<floatsuffix>qq2ph_v2di_mask_1): Ditto.
11299 * config/i386/subst.md (round_qq2phsuff): New subst_attr.
11301 2021-09-16 liuhongt <hongtao.liu@intel.com>
11303 * config/i386/avx512fp16intrin.h (_mm512_cvtph_epi32):
11305 (_mm512_mask_cvtph_epi32): Likewise.
11306 (_mm512_maskz_cvtph_epi32): Likewise.
11307 (_mm512_cvt_roundph_epi32): Likewise.
11308 (_mm512_mask_cvt_roundph_epi32): Likewise.
11309 (_mm512_maskz_cvt_roundph_epi32): Likewise.
11310 (_mm512_cvtph_epu32): Likewise.
11311 (_mm512_mask_cvtph_epu32): Likewise.
11312 (_mm512_maskz_cvtph_epu32): Likewise.
11313 (_mm512_cvt_roundph_epu32): Likewise.
11314 (_mm512_mask_cvt_roundph_epu32): Likewise.
11315 (_mm512_maskz_cvt_roundph_epu32): Likewise.
11316 (_mm512_cvtph_epi64): Likewise.
11317 (_mm512_mask_cvtph_epi64): Likewise.
11318 (_mm512_maskz_cvtph_epi64): Likewise.
11319 (_mm512_cvt_roundph_epi64): Likewise.
11320 (_mm512_mask_cvt_roundph_epi64): Likewise.
11321 (_mm512_maskz_cvt_roundph_epi64): Likewise.
11322 (_mm512_cvtph_epu64): Likewise.
11323 (_mm512_mask_cvtph_epu64): Likewise.
11324 (_mm512_maskz_cvtph_epu64): Likewise.
11325 (_mm512_cvt_roundph_epu64): Likewise.
11326 (_mm512_mask_cvt_roundph_epu64): Likewise.
11327 (_mm512_maskz_cvt_roundph_epu64): Likewise.
11328 (_mm512_cvtph_epi16): Likewise.
11329 (_mm512_mask_cvtph_epi16): Likewise.
11330 (_mm512_maskz_cvtph_epi16): Likewise.
11331 (_mm512_cvt_roundph_epi16): Likewise.
11332 (_mm512_mask_cvt_roundph_epi16): Likewise.
11333 (_mm512_maskz_cvt_roundph_epi16): Likewise.
11334 (_mm512_cvtph_epu16): Likewise.
11335 (_mm512_mask_cvtph_epu16): Likewise.
11336 (_mm512_maskz_cvtph_epu16): Likewise.
11337 (_mm512_cvt_roundph_epu16): Likewise.
11338 (_mm512_mask_cvt_roundph_epu16): Likewise.
11339 (_mm512_maskz_cvt_roundph_epu16): Likewise.
11340 * config/i386/avx512fp16vlintrin.h (_mm_cvtph_epi32):
11342 (_mm_mask_cvtph_epi32): Likewise.
11343 (_mm_maskz_cvtph_epi32): Likewise.
11344 (_mm256_cvtph_epi32): Likewise.
11345 (_mm256_mask_cvtph_epi32): Likewise.
11346 (_mm256_maskz_cvtph_epi32): Likewise.
11347 (_mm_cvtph_epu32): Likewise.
11348 (_mm_mask_cvtph_epu32): Likewise.
11349 (_mm_maskz_cvtph_epu32): Likewise.
11350 (_mm256_cvtph_epu32): Likewise.
11351 (_mm256_mask_cvtph_epu32): Likewise.
11352 (_mm256_maskz_cvtph_epu32): Likewise.
11353 (_mm_cvtph_epi64): Likewise.
11354 (_mm_mask_cvtph_epi64): Likewise.
11355 (_mm_maskz_cvtph_epi64): Likewise.
11356 (_mm256_cvtph_epi64): Likewise.
11357 (_mm256_mask_cvtph_epi64): Likewise.
11358 (_mm256_maskz_cvtph_epi64): Likewise.
11359 (_mm_cvtph_epu64): Likewise.
11360 (_mm_mask_cvtph_epu64): Likewise.
11361 (_mm_maskz_cvtph_epu64): Likewise.
11362 (_mm256_cvtph_epu64): Likewise.
11363 (_mm256_mask_cvtph_epu64): Likewise.
11364 (_mm256_maskz_cvtph_epu64): Likewise.
11365 (_mm_cvtph_epi16): Likewise.
11366 (_mm_mask_cvtph_epi16): Likewise.
11367 (_mm_maskz_cvtph_epi16): Likewise.
11368 (_mm256_cvtph_epi16): Likewise.
11369 (_mm256_mask_cvtph_epi16): Likewise.
11370 (_mm256_maskz_cvtph_epi16): Likewise.
11371 (_mm_cvtph_epu16): Likewise.
11372 (_mm_mask_cvtph_epu16): Likewise.
11373 (_mm_maskz_cvtph_epu16): Likewise.
11374 (_mm256_cvtph_epu16): Likewise.
11375 (_mm256_mask_cvtph_epu16): Likewise.
11376 (_mm256_maskz_cvtph_epu16): Likewise.
11377 * config/i386/i386-builtin-types.def: Add new builtin types.
11378 * config/i386/i386-builtin.def: Add new builtins.
11379 * config/i386/i386-expand.c
11380 (ix86_expand_args_builtin): Handle new builtin types.
11381 (ix86_expand_round_builtin): Ditto.
11382 * config/i386/sse.md (sseintconvert): New.
11383 (ssePHmode): Ditto.
11384 (UNSPEC_US_FIX_NOTRUNC): Ditto.
11385 (sseintconvertsignprefix): Ditto.
11386 (avx512fp16_vcvtph2<sseintconvertsignprefix><sseintconvert>_<mode><mask_name><round_name>):
11389 2021-09-16 liuhongt <hongtao.liu@intel.com>
11391 * config/i386/avx512fp16intrin.h: (_mm_cvtsi16_si128):
11393 (_mm_cvtsi128_si16): Likewise.
11394 (_mm_mask_load_sh): Likewise.
11395 (_mm_maskz_load_sh): Likewise.
11396 (_mm_mask_store_sh): Likewise.
11397 (_mm_move_sh): Likewise.
11398 (_mm_mask_move_sh): Likewise.
11399 (_mm_maskz_move_sh): Likewise.
11400 * config/i386/i386-builtin-types.def: Add corresponding builtin types.
11401 * config/i386/i386-builtin.def: Add corresponding new builtins.
11402 * config/i386/i386-expand.c
11403 (ix86_expand_special_args_builtin): Handle new builtin types.
11404 (ix86_expand_vector_init_one_nonzero): Adjust for FP16 target.
11405 * config/i386/sse.md (VI2F): New mode iterator.
11406 (vec_set<mode>_0): Use new mode iterator.
11407 (avx512f_mov<ssescalarmodelower>_mask): Adjust for HF vector mode.
11408 (avx512f_store<mode>_mask): Ditto.
11410 2021-09-16 Kewen Lin <linkw@linux.ibm.com>
11412 * config/rs6000/rs6000.opt (-mtoc-fusion): Remove.
11414 2021-09-15 David Edelsohn <dje.gcc@gmail.com>
11416 * config/rs6000/rs6000.c (rs6000_xcoff_encode_section_info):
11417 Proceed if no symbol summary or the symbol alias flag is false.
11419 2021-09-15 Jakub Jelinek <jakub@redhat.com>
11423 * varasm.c (output_constructor_regular_field): Instead of assertion
11424 that array_size_for_constructor result is equal to size of
11425 TREE_TYPE (local->val) in bytes, assert that the type size is greater
11426 or equal to array_size_for_constructor result and use type size as
11429 2021-09-15 Martin Liska <mliska@suse.cz>
11432 * config/i386/vxworks.h: Use new macro TARGET_CPU_P.
11434 2021-09-15 Martin Liska <mliska@suse.cz>
11437 * config/rs6000/rs6000.c (rs6000_xcoff_encode_section_info):
11438 Check that we have a symbol summary for a symbol.
11440 2021-09-15 Richard Biener <rguenther@suse.de>
11443 * config/rs6000/lynx.h: Remove undef of PREFERRED_DEBUGGING_TYPE
11444 to inherit from elfos.h
11446 2021-09-15 liuhongt <hongtao.liu@intel.com>
11449 * config/i386/i386-expand.c
11450 (ix86_expand_vector_init_interleave): Use puncklwd to pack 2
11452 (ix86_expand_vector_set): Use blendw instead of pinsrw.
11453 * config/i386/i386.c (ix86_can_change_mode_class): Adjust for
11454 AVX512FP16 which supports 16bit vector load.
11455 * config/i386/sse.md (avx512bw_interleave_highv32hi<mask_name>):
11457 (avx512bw_interleave_high<mode><mask_name>): .. this, and
11458 extend to V32HFmode.
11459 (avx2_interleave_highv16hi<mask_name>): Rename to ..
11460 (avx2_interleave_high<mode><mask_name>): .. this, and extend
11462 (vec_interleave_highv8hi<mask_name>): Rename to ..
11463 (vec_interleave_high<mode><mask_name>): .. this, and extend to V8HFmode.
11464 (<mask_codefor>avx512bw_interleave_lowv32hi<mask_name>):
11466 (<mask_codefor>avx512bw_interleave_low<mode><mask_name>):
11467 this, and extend to V32HFmode.
11468 (avx2_interleave_lowv16hi<mask_name>): Rename to ..
11469 (avx2_interleave_low<mode><mask_name>): .. this, and extend to V16HFmode.
11470 (vec_interleave_lowv8hi<mask_name>): Rename to ..
11471 (vec_interleave_low<mode><mask_name>): .. this, and extend to V8HFmode.
11472 (sse4_1_pblendw): Rename to ..
11473 (sse4_1_pblend<blendsuf>): .. this, and extend to V8HFmode.
11474 (avx2_pblendph): New define_expand.
11475 (<sse2p4_1>_pinsr<ssemodesuffix>): Refactor, use
11476 sseintmodesuffix instead of ssemodesuffix.
11477 (blendsuf): New mode attr.
11479 2021-09-15 Richard Biener <rguenther@suse.de>
11481 * tree-vectorizer.h (dr_misalignment): Move out of line.
11482 (dr_target_alignment): New.
11483 (DR_TARGET_ALIGNMENT): Wrap dr_target_alignment.
11484 (set_dr_target_alignment): New.
11485 (SET_DR_TARGET_ALIGNMENT): Wrap set_dr_target_alignment.
11486 * tree-vect-data-refs.c (dr_misalignment): Compute and
11487 return the group members misalignment.
11488 (vect_compute_data_ref_alignment): Use SET_DR_TARGET_ALIGNMENT.
11489 (vect_analyze_data_refs_alignment): Compute alignment only
11490 for the first element of a DR group.
11491 (vect_slp_analyze_node_alignment): Likewise.
11493 2021-09-15 Hongyu Wang <hongyu.wang@intel.com>
11495 * config/i386/avx512fp16intrin.h: Adjust all builtin calls.
11496 * config/i386/avx512fp16vlintrin.h: Likewise.
11497 * config/i386/i386-builtin.def: Adjust builtin name and
11498 enumeration to match AVX512F style.
11500 2021-09-15 Richard Biener <rguenther@suse.de>
11502 PR tree-optimization/102318
11503 * tree-vect-loop.c (vect_transform_cycle_phi): Revert
11504 previous change and do the mode conversion separately from
11505 the sign conversion.
11507 2021-09-15 Hongtao Liu <hongtao.liu@intel.com>
11508 Peter Cordes <peter@cordes.ca>
11511 * config/i386/sse.md (extract_suf): Add V8SF/V8SI/V4DF/V4DI.
11512 (*vec_extract<mode><ssescalarmodelower>_valign): Output
11513 vextract{i,f}{32x4,64x2} instruction when byte_offset % 16 ==
11516 2021-09-15 Richard Biener <rguenther@suse.de>
11518 * config.gcc: Remove vax-*-openbsd* configuration.
11520 2021-09-15 Richard Biener <rguenther@suse.de>
11522 * config.gcc: Remove m68k-openbsd.
11524 2021-09-15 Max Filippov <jcmvbkbc@gmail.com>
11527 * config/xtensa/t-xtensa (TM_H): Add include/xtensa-config.h.
11529 2021-09-14 Peter Bergner <bergner@linux.ibm.com>
11531 * config/rs6000/mma.md (unspec): Delete UNSPEC_MMA_XXSETACCZ.
11532 (unspecv): Add UNSPECV_MMA_XXSETACCZ.
11533 (*mma_xxsetaccz): Delete.
11534 (mma_xxsetaccz): Change to define_insn. Remove operand 1.
11535 Use UNSPECV_MMA_XXSETACCZ. Update comment.
11536 * config/rs6000/rs6000.c (rs6000_rtx_costs): Use UNSPECV_MMA_XXSETACCZ.
11538 2021-09-14 Iain Sandoe <iain@sandoe.co.uk>
11540 * Makefile.in: Remove variables related to applying no-PIE
11541 to the exes on $build.
11542 * configure: Regenerate.
11543 * configure.ac: Remove configuration related to applying
11544 no-PIE to the exes on $build.
11546 2021-09-14 Claudiu Zissulescu <claziss@synopsys.com>
11548 * config/arc/arc.md (doloop_end): Add missing mode.
11549 (loop_end): Likewise.
11551 2021-09-14 Jakub Jelinek <jakub@redhat.com>
11553 * gimplify.c (goa_stabilize_expr): Add depth argument, propagate
11554 it to recursive calls, for depth above 7 just gimplify or return.
11555 Perform a test even for MODIFY_EXPR, ADDR_EXPR, COMPOUND_EXPR with
11556 __builtin_clear_padding and TARGET_EXPR.
11557 (gimplify_omp_atomic): Adjust goa_stabilize_expr callers.
11559 2021-09-14 liuhongt <hongtao.liu@intel.com>
11561 * config/i386/avx512fp16intrin.h (_mm_fpclass_sh_mask):
11563 (_mm_mask_fpclass_sh_mask): Likewise.
11564 (_mm512_mask_fpclass_ph_mask): Likewise.
11565 (_mm512_fpclass_ph_mask): Likewise.
11566 (_mm_getexp_sh): Likewise.
11567 (_mm_mask_getexp_sh): Likewise.
11568 (_mm_maskz_getexp_sh): Likewise.
11569 (_mm512_getexp_ph): Likewise.
11570 (_mm512_mask_getexp_ph): Likewise.
11571 (_mm512_maskz_getexp_ph): Likewise.
11572 (_mm_getexp_round_sh): Likewise.
11573 (_mm_mask_getexp_round_sh): Likewise.
11574 (_mm_maskz_getexp_round_sh): Likewise.
11575 (_mm512_getexp_round_ph): Likewise.
11576 (_mm512_mask_getexp_round_ph): Likewise.
11577 (_mm512_maskz_getexp_round_ph): Likewise.
11578 (_mm_getmant_sh): Likewise.
11579 (_mm_mask_getmant_sh): Likewise.
11580 (_mm_maskz_getmant_sh): Likewise.
11581 (_mm512_getmant_ph): Likewise.
11582 (_mm512_mask_getmant_ph): Likewise.
11583 (_mm512_maskz_getmant_ph): Likewise.
11584 (_mm_getmant_round_sh): Likewise.
11585 (_mm_mask_getmant_round_sh): Likewise.
11586 (_mm_maskz_getmant_round_sh): Likewise.
11587 (_mm512_getmant_round_ph): Likewise.
11588 (_mm512_mask_getmant_round_ph): Likewise.
11589 (_mm512_maskz_getmant_round_ph): Likewise.
11590 * config/i386/avx512fp16vlintrin.h (_mm_mask_fpclass_ph_mask):
11592 (_mm_fpclass_ph_mask): Likewise.
11593 (_mm256_mask_fpclass_ph_mask): Likewise.
11594 (_mm256_fpclass_ph_mask): Likewise.
11595 (_mm256_getexp_ph): Likewise.
11596 (_mm256_mask_getexp_ph): Likewise.
11597 (_mm256_maskz_getexp_ph): Likewise.
11598 (_mm_getexp_ph): Likewise.
11599 (_mm_mask_getexp_ph): Likewise.
11600 (_mm_maskz_getexp_ph): Likewise.
11601 (_mm256_getmant_ph): Likewise.
11602 (_mm256_mask_getmant_ph): Likewise.
11603 (_mm256_maskz_getmant_ph): Likewise.
11604 (_mm_getmant_ph): Likewise.
11605 (_mm_mask_getmant_ph): Likewise.
11606 (_mm_maskz_getmant_ph): Likewise.
11607 * config/i386/i386-builtin-types.def: Add corresponding builtin types.
11608 * config/i386/i386-builtin.def: Add corresponding new builtins.
11609 * config/i386/i386-expand.c
11610 (ix86_expand_args_builtin): Handle new builtin types.
11611 (ix86_expand_round_builtin): Ditto.
11612 * config/i386/sse.md (vecmemsuffix): Add HF vector modes.
11613 (<avx512>_getexp<mode><mask_name><round_saeonly_name>): Adjust
11614 to support HF vector modes.
11615 (avx512f_sgetexp<mode><mask_scalar_name><round_saeonly_scalar_name):
11617 (avx512dq_fpclass<mode><mask_scalar_merge_name>): Ditto.
11618 (avx512dq_vmfpclass<mode><mask_scalar_merge_name>): Ditto.
11619 (<avx512>_getmant<mode><mask_name><round_saeonly_name>): Ditto.
11620 (avx512f_vgetmant<mode><mask_scalar_name><round_saeonly_scalar_name>):
11623 2021-09-14 liuhongt <hongtao.liu@intel.com>
11625 * config/i386/avx512fp16intrin.h (_mm512_reduce_ph):
11627 (_mm512_mask_reduce_ph): Likewise.
11628 (_mm512_maskz_reduce_ph): Likewise.
11629 (_mm512_reduce_round_ph): Likewise.
11630 (_mm512_mask_reduce_round_ph): Likewise.
11631 (_mm512_maskz_reduce_round_ph): Likewise.
11632 (_mm_reduce_sh): Likewise.
11633 (_mm_mask_reduce_sh): Likewise.
11634 (_mm_maskz_reduce_sh): Likewise.
11635 (_mm_reduce_round_sh): Likewise.
11636 (_mm_mask_reduce_round_sh): Likewise.
11637 (_mm_maskz_reduce_round_sh): Likewise.
11638 (_mm512_roundscale_ph): Likewise.
11639 (_mm512_mask_roundscale_ph): Likewise.
11640 (_mm512_maskz_roundscale_ph): Likewise.
11641 (_mm512_roundscale_round_ph): Likewise.
11642 (_mm512_mask_roundscale_round_ph): Likewise.
11643 (_mm512_maskz_roundscale_round_ph): Likewise.
11644 (_mm_roundscale_sh): Likewise.
11645 (_mm_mask_roundscale_sh): Likewise.
11646 (_mm_maskz_roundscale_sh): Likewise.
11647 (_mm_roundscale_round_sh): Likewise.
11648 (_mm_mask_roundscale_round_sh): Likewise.
11649 (_mm_maskz_roundscale_round_sh): Likewise.
11650 * config/i386/avx512fp16vlintrin.h: (_mm_reduce_ph):
11652 (_mm_mask_reduce_ph): Likewise.
11653 (_mm_maskz_reduce_ph): Likewise.
11654 (_mm256_reduce_ph): Likewise.
11655 (_mm256_mask_reduce_ph): Likewise.
11656 (_mm256_maskz_reduce_ph): Likewise.
11657 (_mm_roundscale_ph): Likewise.
11658 (_mm_mask_roundscale_ph): Likewise.
11659 (_mm_maskz_roundscale_ph): Likewise.
11660 (_mm256_roundscale_ph): Likewise.
11661 (_mm256_mask_roundscale_ph): Likewise.
11662 (_mm256_maskz_roundscale_ph): Likewise.
11663 * config/i386/i386-builtin-types.def: Add corresponding builtin types.
11664 * config/i386/i386-builtin.def: Add corresponding new builtins.
11665 * config/i386/i386-expand.c
11666 (ix86_expand_args_builtin): Handle new builtin types.
11667 (ix86_expand_round_builtin): Ditto.
11668 * config/i386/sse.md (<mask_codefor>reducep<mode><mask_name>):
11670 (<mask_codefor>reducep<mode><mask_name><round_saeonly_name>):
11671 ... this, and adjust for round operands.
11672 (reduces<mode><mask_scalar_name>): Likewise, with ...
11673 (reduces<mode><mask_scalar_name><round_saeonly_scalar_name):
11675 (<avx512>_rndscale<mode><mask_name><round_saeonly_name>):
11676 Adjust for HF vector modes.
11677 (avx512f_rndscale<mode><mask_scalar_name><round_saeonly_scalar_name>):
11679 (*avx512f_rndscale<mode><round_saeonly_name>): Ditto.
11681 2021-09-14 liuhongt <hongtao.liu@intel.com>
11683 * config/i386/avx512fp16intrin.h: (_mm512_rcp_ph):
11685 (_mm512_mask_rcp_ph): Likewise.
11686 (_mm512_maskz_rcp_ph): Likewise.
11687 (_mm_rcp_sh): Likewise.
11688 (_mm_mask_rcp_sh): Likewise.
11689 (_mm_maskz_rcp_sh): Likewise.
11690 (_mm512_scalef_ph): Likewise.
11691 (_mm512_mask_scalef_ph): Likewise.
11692 (_mm512_maskz_scalef_ph): Likewise.
11693 (_mm512_scalef_round_ph): Likewise.
11694 (_mm512_mask_scalef_round_ph): Likewise.
11695 (_mm512_maskz_scalef_round_ph): Likewise.
11696 (_mm_scalef_sh): Likewise.
11697 (_mm_mask_scalef_sh): Likewise.
11698 (_mm_maskz_scalef_sh): Likewise.
11699 (_mm_scalef_round_sh): Likewise.
11700 (_mm_mask_scalef_round_sh): Likewise.
11701 (_mm_maskz_scalef_round_sh): Likewise.
11702 * config/i386/avx512fp16vlintrin.h (_mm_rcp_ph):
11704 (_mm256_rcp_ph): Likewise.
11705 (_mm_mask_rcp_ph): Likewise.
11706 (_mm256_mask_rcp_ph): Likewise.
11707 (_mm_maskz_rcp_ph): Likewise.
11708 (_mm256_maskz_rcp_ph): Likewise.
11709 (_mm_scalef_ph): Likewise.
11710 (_mm256_scalef_ph): Likewise.
11711 (_mm_mask_scalef_ph): Likewise.
11712 (_mm256_mask_scalef_ph): Likewise.
11713 (_mm_maskz_scalef_ph): Likewise.
11714 (_mm256_maskz_scalef_ph): Likewise.
11715 * config/i386/i386-builtin.def: Add new builtins.
11716 * config/i386/sse.md (VFH_AVX512VL): New.
11717 (avx512fp16_rcp<mode>2<mask_name>): Ditto.
11718 (avx512fp16_vmrcpv8hf2<mask_scalar_name>): Ditto.
11719 (avx512f_vmscalef<mode><mask_scalar_name><round_scalar_name>):
11720 Adjust to support HF vector modes.
11721 (<avx512>_scalef<mode><mask_name><round_name>): Ditto.
11723 2021-09-14 liuhongt <hongtao.liu@intel.com>
11725 * config/i386/avx512fp16intrin.h: (_mm512_sqrt_ph):
11727 (_mm512_mask_sqrt_ph): Likewise.
11728 (_mm512_maskz_sqrt_ph): Likewise.
11729 (_mm512_sqrt_round_ph): Likewise.
11730 (_mm512_mask_sqrt_round_ph): Likewise.
11731 (_mm512_maskz_sqrt_round_ph): Likewise.
11732 (_mm512_rsqrt_ph): Likewise.
11733 (_mm512_mask_rsqrt_ph): Likewise.
11734 (_mm512_maskz_rsqrt_ph): Likewise.
11735 (_mm_rsqrt_sh): Likewise.
11736 (_mm_mask_rsqrt_sh): Likewise.
11737 (_mm_maskz_rsqrt_sh): Likewise.
11738 (_mm_sqrt_sh): Likewise.
11739 (_mm_mask_sqrt_sh): Likewise.
11740 (_mm_maskz_sqrt_sh): Likewise.
11741 (_mm_sqrt_round_sh): Likewise.
11742 (_mm_mask_sqrt_round_sh): Likewise.
11743 (_mm_maskz_sqrt_round_sh): Likewise.
11744 * config/i386/avx512fp16vlintrin.h (_mm_sqrt_ph): New intrinsic.
11745 (_mm256_sqrt_ph): Likewise.
11746 (_mm_mask_sqrt_ph): Likewise.
11747 (_mm256_mask_sqrt_ph): Likewise.
11748 (_mm_maskz_sqrt_ph): Likewise.
11749 (_mm256_maskz_sqrt_ph): Likewise.
11750 (_mm_rsqrt_ph): Likewise.
11751 (_mm256_rsqrt_ph): Likewise.
11752 (_mm_mask_rsqrt_ph): Likewise.
11753 (_mm256_mask_rsqrt_ph): Likewise.
11754 (_mm_maskz_rsqrt_ph): Likewise.
11755 (_mm256_maskz_rsqrt_ph): Likewise.
11756 * config/i386/i386-builtin-types.def: Add corresponding builtin types.
11757 * config/i386/i386-builtin.def: Add corresponding new builtins.
11758 * config/i386/i386-expand.c
11759 (ix86_expand_args_builtin): Handle new builtins.
11760 (ix86_expand_round_builtin): Ditto.
11761 * config/i386/sse.md (VF_AVX512FP16VL): New.
11762 (sqrt<mode>2): Adjust for HF vector modes.
11763 (<sse>_sqrt<mode>2<mask_name><round_name>): Likewise.
11764 (<sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>):
11766 (<sse>_rsqrt<mode>2<mask_name>): New.
11767 (avx512fp16_vmrsqrtv8hf2<mask_scalar_name>): Likewise.
11769 2021-09-13 Thomas Schwinge <thomas@codesourcery.com>
11771 PR bootstrap/101574
11772 * diagnostic-spec.c (warning_suppressed_at, copy_warning): Handle
11773 'RESERVED_LOCATION_P' locations.
11774 * warning-control.cc (get_nowarn_spec, suppress_warning)
11775 (copy_warning): Likewise.
11777 2021-09-13 Thomas Schwinge <thomas@codesourcery.com>
11779 * diagnostic-spec.h (typedef xint_hash_t): Use 'location_t' instead of...
11780 (typedef key_type_t): ... this. Remove.
11781 (nowarn_map): Document.
11782 * diagnostic-spec.c (nowarn_map): Likewise.
11783 * warning-control.cc (convert_to_key): Evolve functions into...
11784 (get_location): ... these. Adjust all users.
11786 2021-09-13 Thomas Schwinge <thomas@codesourcery.com>
11788 * warning-control.cc (copy_warning): Remove 'nowarn_map' setup.
11790 2021-09-13 Jason Merrill <jason@redhat.com>
11792 * params.opt: Add destructive-interference-size and
11793 constructive-interference-size.
11794 * doc/invoke.texi: Document them.
11795 * config/aarch64/aarch64.c (aarch64_override_options_internal):
11797 * config/arm/arm.c (arm_option_override): Set them.
11798 * config/i386/i386-options.c (ix86_option_override_internal):
11801 2021-09-13 Martin Liska <mliska@suse.cz>
11802 H.J. Lu <hjl.tools@gmail.com>
11805 * common/config/i386/cpuinfo.h (cpu_indicator_init): Add support
11806 for x86-64 micro levels for __builtin_cpu_supports.
11807 * common/config/i386/i386-cpuinfo.h (enum feature_priority):
11808 Add priorities for the micro-arch levels.
11809 (enum processor_features): Add new features.
11810 * common/config/i386/i386-isas.h: Add micro-arch features.
11811 * config/i386/i386-builtins.c (get_builtin_code_for_version):
11812 Support the micro-arch levels by callsing
11813 __builtin_cpu_supports.
11814 * doc/extend.texi: Document that the levels are support by
11815 __builtin_cpu_supports.
11817 2021-09-13 Andrew Pinski <apinski@marvell.com>
11820 * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin_lane_check):
11822 (aarch64_general_fold_builtin): Handle AARCH64_SIMD_BUILTIN_LANE_CHECK.
11823 (aarch64_general_gimple_fold_builtin): Likewise.
11825 2021-09-13 Andrew Pinski <apinski@marvell.com>
11827 * config.gcc: Add m32r-*-linux* and m32rle-*-linux*
11828 to the Unsupported targets list.
11829 Remove support for m32r-*-linux* and m32rle-*-linux*.
11830 * config/m32r/linux.h: Removed.
11831 * config/m32r/t-linux: Removed.
11833 2021-09-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11836 * config/aarch64/aarch64.c (aarch64_classify_address): Don't allow
11837 register index for SVE predicate modes.
11839 2021-09-13 Aldy Hernandez <aldyh@redhat.com>
11841 * tree-ssa-threadbackward.c
11842 (back_threader_profitability::profitable_path_p): Remove FSM
11844 (back_threader_registry::register_path): Same.
11845 * tree-ssa-threadedge.c
11846 (jump_threader::simplify_control_stmt_condition): Same.
11847 * tree-ssa-threadupdate.c (jt_path_registry::jt_path_registry):
11848 Add backedge_threads argument.
11849 (fwd_jt_path_registry::fwd_jt_path_registry): Pass
11850 backedge_threads argument.
11851 (back_jt_path_registry::back_jt_path_registry): Same.
11852 (dump_jump_thread_path): Adjust for FSM removal.
11853 (back_jt_path_registry::rewire_first_differing_edge): Same.
11854 (back_jt_path_registry::adjust_paths_after_duplication): Same.
11855 (back_jt_path_registry::update_cfg): Same.
11856 (jt_path_registry::register_jump_thread): Same.
11857 * tree-ssa-threadupdate.h (enum jump_thread_edge_type): Remove
11859 (class back_jt_path_registry): Add backedge_threads to
11862 2021-09-13 Martin Liska <mliska@suse.cz>
11865 * asan.h (sanitize_coverage_p): Handle when fn == NULL.
11867 2021-09-13 H.J. Lu <hjl.tools@gmail.com>
11870 * config/i386/i386.h (TARGET_AVX256_MOVE_BY_PIECES): New.
11871 (TARGET_AVX256_STORE_BY_PIECES): Likewise.
11872 (MOVE_MAX): Check TARGET_AVX256_MOVE_BY_PIECES and
11873 TARGET_AVX256_STORE_BY_PIECES instead of
11874 TARGET_AVX256_SPLIT_UNALIGNED_LOAD and
11875 TARGET_AVX256_SPLIT_UNALIGNED_STORE.
11876 (STORE_MAX_PIECES): Check TARGET_AVX256_STORE_BY_PIECES instead
11877 of TARGET_AVX256_SPLIT_UNALIGNED_STORE.
11878 * config/i386/x86-tune.def (X86_TUNE_AVX256_MOVE_BY_PIECES): New.
11879 (X86_TUNE_AVX256_STORE_BY_PIECES): Likewise.
11881 2021-09-13 liuhongt <hongtao.liu@intel.com>
11883 PR bootstrap/102302
11884 * expmed.c (extract_bit_field_using_extv): Use
11885 gen_lowpart_if_possible instead of gen_lowpart to avoid ICE.
11887 2021-09-13 Aldy Hernandez <aldyh@redhat.com>
11889 * Makefile.in (OBJS): Add value-pointer-equiv.o.
11890 * gimple-ssa-evrp.c (class ssa_equiv_stack): Move to
11891 value-pointer-equiv.*.
11892 (ssa_equiv_stack::ssa_equiv_stack): Same.
11893 (ssa_equiv_stack::enter): Same.
11894 (ssa_equiv_stack::leave): Same.
11895 (ssa_equiv_stack::push_replacement): Same.
11896 (ssa_equiv_stack::get_replacement): Same.
11897 (is_pointer_ssa): Same.
11898 (class pointer_equiv_analyzer): Same.
11899 (pointer_equiv_analyzer::pointer_equiv_analyzer): Same.
11900 (pointer_equiv_analyzer::~pointer_equiv_analyzer): Same.
11901 (pointer_equiv_analyzer::set_global_equiv): Same.
11902 (pointer_equiv_analyzer::set_cond_equiv): Same.
11903 (pointer_equiv_analyzer::get_equiv): Same.
11904 (pointer_equiv_analyzer::enter): Same.
11905 (pointer_equiv_analyzer::leave): Same.
11906 (pointer_equiv_analyzer::get_equiv_expr): Same.
11907 (pta_valueize): Same.
11908 (pointer_equiv_analyzer::visit_stmt): Same.
11909 (pointer_equiv_analyzer::visit_edge): Same.
11910 (hybrid_folder::value_of_expr): Same.
11911 (hybrid_folder::value_on_edge): Same.
11912 * value-pointer-equiv.cc: New file.
11913 * value-pointer-equiv.h: New file.
11915 2021-09-13 Richard Earnshaw <rearnsha@arm.com>
11918 * gimple-fold.c (gimple_fold_builtin_memory_op): Allow folding
11919 memcpy if the size is not more than MOVE_MAX * MOVE_RATIO.
11921 2021-09-13 Richard Earnshaw <rearnsha@arm.com>
11924 * config/arm/arm.md (movmisaligndi): New define_expand.
11925 * config/arm/vec-common.md (movmisalign<mode>): Iterate over VDQ mode.
11927 2021-09-13 Richard Earnshaw <rearnsha@arm.com>
11930 * emit-rtl.c (gen_highpart): Use adjust_address to handle
11931 MEM rather than calling simplify_gen_subreg.
11933 2021-09-13 Jan-Benedict Glaw <jbglaw@ług-owl.de>
11935 * config/alpha/vms.h (INIT_CUMULATIVE_ARGS): Wrap multi-statment
11936 define into a block.
11938 2021-09-13 Richard Biener <rguenther@suse.de>
11940 * config/darwin.h (DARWIN_PREFER_DWARF): Do not define.
11941 * config/i386/darwin.h (PREFERRED_DEBUGGING_TYPE): Do not
11942 change based on DARWIN_PREFER_DWARF not being defined.
11944 2021-09-13 Richard Biener <rguenther@suse.de>
11946 * config/i386/lynx.h: Remove undef of PREFERRED_DEBUGGING_TYPE
11947 to inherit from elfos.h
11949 2021-09-13 Richard Biener <rguenther@suse.de>
11951 * config.gcc: Add cr16-*-* to the list of obsoleted targets.
11953 2021-09-13 Richard Biener <rguenther@suse.de>
11955 * config/avr/elf.h (PREFERRED_DEBUGGING_TYPE): Remove
11956 override, pick up DWARF2_DEBUG define from elfos.h
11958 2021-09-13 Richard Biener <rguenther@suse.de>
11960 * config/rx/rx.h (PREFERRED_DEBUGGING_TYPE): Always define to
11963 2021-09-13 Richard Biener <rguenther@suse.de>
11965 * config/alpha/vms.h (PREFERRED_DEBUGGING_TYPE): Define to
11968 2021-09-13 Richard Biener <rguenther@suse.de>
11970 * config/i386/cygming.h: Always default to DWARF2 debugging.
11971 Do not define DBX_DEBUGGING_INFO, that's done via dbxcoff.h
11973 * doc/install.texi: Document binutils 2.16 as minimum
11974 requirement for mingw.
11976 2021-09-13 Kewen Lin <linkw@linux.ibm.com>
11978 * config/rs6000/rs6000.c (struct rs6000_cost_data): New members
11979 nstmts, nloads and extra_ctor_cost.
11980 (rs6000_density_test): Add load density related heuristics. Do
11981 extra costing on vector construction statements if need.
11982 (rs6000_init_cost): Init new members.
11983 (rs6000_update_target_cost_per_stmt): New function.
11984 (rs6000_add_stmt_cost): Factor vect_nonmem hunk out to function
11985 rs6000_update_target_cost_per_stmt and call it.
11987 2021-09-13 Kewen Lin <linkw@linux.ibm.com>
11989 * config/rs6000/rs6000.c (struct rs6000_cost_data): Remove typedef.
11990 (rs6000_init_cost): Adjust.
11992 2021-09-13 liuhongt <hongtao.liu@intel.com>
11994 * config/i386/i386.md: (UNSPEC_COPYSIGN): Remove.
11995 (UNSPEC_XORSIGN): Ditto.
11997 2021-09-12 Roger Sayle <roger@nextmovesoftware.com>
11999 * expr.c (convert_move): Preserve SUBREG_PROMOTED_VAR_P when
12000 creating a (wider) partial subreg from a SUBREG_PROMOTED_VAR_P
12003 2021-09-11 Aldy Hernandez <aldyh@redhat.com>
12005 * tree-ssa-threadbackward.c (class back_threader_registry): Use
12006 back_jt_path_registry.
12007 * tree-ssa-threadedge.c (jump_threader::jump_threader): Use
12008 fwd_jt_path_registry.
12009 * tree-ssa-threadedge.h (class jump_threader): Same..
12010 * tree-ssa-threadupdate.c
12011 (jump_thread_path_registry::jump_thread_path_registry): Rename...
12012 (jt_path_registry::jt_path_registry): ...to this.
12013 (jump_thread_path_registry::~jump_thread_path_registry): Rename...
12014 (jt_path_registry::~jt_path_registry): ...this.
12015 (fwd_jt_path_registry::fwd_jt_path_registry): New.
12016 (fwd_jt_path_registry::~fwd_jt_path_registry): New.
12017 (jump_thread_path_registry::allocate_thread_edge): Rename...
12018 (jt_path_registry::allocate_thread_edge): ...to this.
12019 (jump_thread_path_registry::allocate_thread_path): Rename...
12020 (jt_path_registry::allocate_thread_path): ...to this.
12021 (jump_thread_path_registry::lookup_redirection_data): Rename...
12022 (fwd_jt_path_registry::lookup_redirection_data): ...to this.
12023 (jump_thread_path_registry::thread_block_1): Rename...
12024 (fwd_jt_path_registry::thread_block_1): ...to this.
12025 (jump_thread_path_registry::thread_block): Rename...
12026 (fwd_jt_path_registry::thread_block): ...to this.
12027 (jt_path_registry::thread_through_loop_header): Rename...
12028 (fwd_jt_path_registry::thread_through_loop_header): ...to this.
12029 (jump_thread_path_registry::mark_threaded_blocks): Rename...
12030 (fwd_jt_path_registry::mark_threaded_blocks): ...to this.
12031 (jump_thread_path_registry::debug_path): Rename...
12032 (jt_path_registry::debug_path): ...to this.
12033 (jump_thread_path_registry::dump): Rename...
12034 (jt_path_registry::debug): ...to this.
12035 (jump_thread_path_registry::rewire_first_differing_edge): Rename...
12036 (back_jt_path_registry::rewire_first_differing_edge): ...to this.
12037 (jump_thread_path_registry::adjust_paths_after_duplication): Rename...
12038 (back_jt_path_registry::adjust_paths_after_duplication): ...to this.
12039 (jump_thread_path_registry::duplicate_thread_path): Rename...
12040 (back_jt_path_registry::duplicate_thread_path): ...to this. Also,
12041 drop ill-formed candidates.
12042 (jump_thread_path_registry::remove_jump_threads_including): Rename...
12043 (fwd_jt_path_registry::remove_jump_threads_including): ...to this.
12044 (jt_path_registry::thread_through_all_blocks): New.
12045 (back_jt_path_registry::update_cfg): New.
12046 (fwd_jt_path_registry::update_cfg): New.
12047 (jump_thread_path_registry::register_jump_thread): Rename...
12048 (jt_path_registry::register_jump_thread): ...to this.
12049 * tree-ssa-threadupdate.h (class jump_thread_path_registry):
12051 (class jt_path_registry): ...here.
12052 (class fwd_jt_path_registry): New.
12053 (class back_jt_path_registry): New.
12055 2021-09-10 liuhongt <hongtao.liu@intel.com>
12058 2021-09-01 liuhongt <hongtao.liu@intel.com>
12060 * emit-rtl.c (validate_subreg): Get rid of all float-int
12063 2021-09-10 Jakub Jelinek <jakub@redhat.com>
12065 * tree-core.h (enum omp_memory_order): Add OMP_MEMORY_ORDER_MASK,
12066 OMP_FAIL_MEMORY_ORDER_UNSPECIFIED, OMP_FAIL_MEMORY_ORDER_RELAXED,
12067 OMP_FAIL_MEMORY_ORDER_ACQUIRE, OMP_FAIL_MEMORY_ORDER_RELEASE,
12068 OMP_FAIL_MEMORY_ORDER_ACQ_REL, OMP_FAIL_MEMORY_ORDER_SEQ_CST and
12069 OMP_FAIL_MEMORY_ORDER_MASK enumerators.
12070 (OMP_FAIL_MEMORY_ORDER_SHIFT): Define.
12071 * gimple-pretty-print.c (dump_gimple_omp_atomic_load,
12072 dump_gimple_omp_atomic_store): Print [weak] for weak atomic
12074 * gimple.h (enum gf_mask): Change GF_OMP_ATOMIC_MEMORY_ORDER
12075 to 6-bit mask, adjust GF_OMP_ATOMIC_NEED_VALUE value and add
12076 GF_OMP_ATOMIC_WEAK.
12077 (gimple_omp_atomic_weak_p, gimple_omp_atomic_set_weak): New inline
12079 * tree.h (OMP_ATOMIC_WEAK): Define.
12080 * tree-pretty-print.c (dump_omp_atomic_memory_order): Adjust for
12081 fail memory order being encoded in the same enum and also print
12082 fail clause if present.
12083 (dump_generic_node): Print weak clause if OMP_ATOMIC_WEAK.
12084 * gimplify.c (goa_stabilize_expr): Add target_expr and rhs arguments,
12085 handle pre_p == NULL case as a test mode that only returns value
12086 but doesn't change gimplify nor change anything otherwise, adjust
12087 recursive calls, add MODIFY_EXPR, ADDR_EXPR, COND_EXPR, TARGET_EXPR
12088 and CALL_EXPR handling, adjust COMPOUND_EXPR handling for
12089 __builtin_clear_padding calls, for !rhs gimplify as lvalue rather
12091 (gimplify_omp_atomic): Adjust goa_stabilize_expr caller. Handle
12092 COND_EXPR rhs. Set weak flag on gimple load/store for
12094 * omp-expand.c (omp_memory_order_to_fail_memmodel): New function.
12095 (omp_memory_order_to_memmodel): Adjust for fail clause encoded
12097 (expand_omp_atomic_cas): New function.
12098 (expand_omp_atomic_pipeline): Use omp_memory_order_to_fail_memmodel
12100 (expand_omp_atomic): Attempt to optimize atomic compare and exchange
12101 using expand_omp_atomic_cas.
12103 2021-09-10 Aldy Hernandez <aldyh@redhat.com>
12104 Michael Matz <matz@suse.de>
12106 * tree-pass.h (PROP_loop_opts_done): New.
12107 * gimple-range-path.cc (path_range_query::internal_range_of_expr):
12108 Intersect with global range.
12109 * tree-ssa-loop.c (tree_ssa_loop_done): Set PROP_loop_opts_done.
12110 * tree-ssa-threadbackward.c
12111 (back_threader_profitability::profitable_path_p): Disable
12112 threading through latches until after loop optimizations have run.
12114 2021-09-10 David Faust <david.faust@oracle.com>
12116 * doc/invoke.texi: Document BPF -mcpu, -mjmpext, -mjmp32 and -malu32
12119 2021-09-10 David Faust <david.faust@oracle.com>
12121 * config/bpf/bpf-opts.h (bpf_isa_version): New enum.
12122 * config/bpf/bpf-protos.h (bpf_expand_cbranch): New.
12123 * config/bpf/bpf.c (bpf_option_override): Handle -mcpu option.
12124 (bpf_expand_cbranch): New function.
12125 * config/bpf/bpf.md (AM mode iterator): Conditionalize support for SI
12127 (zero_extendsidi2): Only use mov32 instruction if it is available.
12128 (SIM mode iterator): Conditionalize support for SI mode.
12129 (JM mode iterator): New.
12130 (cbranchdi4): Update name, use new JM iterator. Use bpf_expand_cbranch.
12131 (*branch_on_di): Update name, use new JM iterator.
12132 * config/bpf/bpf.opt: (mjmpext): New option.
12133 (malu32): Likewise.
12134 (mjmp32): Likewise.
12136 (bpf_isa): New enum.
12138 2021-09-10 David Faust <david.faust@oracle.com>
12140 * config/bpf/bpf.md (zero_extendhidi2): Add new output template
12141 for register-to-register extensions.
12142 (zero_extendqidi2): Likewise.
12144 2021-09-10 Richard Biener <rguenther@suse.de>
12146 PR middle-end/102273
12147 * internal-fn.c (expand_DEFERRED_INIT): Always expand non-SSA vars.
12149 2021-09-10 Richard Biener <rguenther@suse.de>
12151 PR middle-end/102269
12152 * gimplify.c (is_var_need_auto_init): Empty types do not need
12155 2021-09-10 Richard Biener <rguenther@suse.de>
12157 * configure.ac (--with-stabs): Remove.
12158 * configure: Regenerate.
12159 * doc/install.texi: Remove --with-stabs documentation.
12161 2021-09-10 liuhongt <hongtao.liu@intel.com>
12163 * config/i386/avx512fp16intrin.h: (_mm512_cmp_ph_mask):
12165 (_mm512_mask_cmp_ph_mask): Likewise.
12166 (_mm512_cmp_round_ph_mask): Likewise.
12167 (_mm512_mask_cmp_round_ph_mask): Likewise.
12168 (_mm_cmp_sh_mask): Likewise.
12169 (_mm_mask_cmp_sh_mask): Likewise.
12170 (_mm_cmp_round_sh_mask): Likewise.
12171 (_mm_mask_cmp_round_sh_mask): Likewise.
12172 (_mm_comieq_sh): Likewise.
12173 (_mm_comilt_sh): Likewise.
12174 (_mm_comile_sh): Likewise.
12175 (_mm_comigt_sh): Likewise.
12176 (_mm_comige_sh): Likewise.
12177 (_mm_comineq_sh): Likewise.
12178 (_mm_ucomieq_sh): Likewise.
12179 (_mm_ucomilt_sh): Likewise.
12180 (_mm_ucomile_sh): Likewise.
12181 (_mm_ucomigt_sh): Likewise.
12182 (_mm_ucomige_sh): Likewise.
12183 (_mm_ucomineq_sh): Likewise.
12184 (_mm_comi_round_sh): Likewise.
12185 (_mm_comi_sh): Likewise.
12186 * config/i386/avx512fp16vlintrin.h (_mm_cmp_ph_mask): New intrinsic.
12187 (_mm_mask_cmp_ph_mask): Likewise.
12188 (_mm256_cmp_ph_mask): Likewise.
12189 (_mm256_mask_cmp_ph_mask): Likewise.
12190 * config/i386/i386-builtin-types.def: Add corresponding builtin types.
12191 * config/i386/i386-builtin.def: Add corresponding new builtins.
12192 * config/i386/i386-expand.c
12193 (ix86_expand_args_builtin): Handle new builtin types.
12194 (ix86_expand_round_builtin): Ditto.
12195 * config/i386/i386.md (ssevecmode): Add HF mode.
12196 (MODEFH): New mode iterator.
12197 * config/i386/sse.md
12198 (V48H_AVX512VL): New mode iterator to support HF vector modes.
12199 Ajdust corresponding description.
12200 (ssecmpintprefix): New.
12201 (VI12_AVX512VL): Adjust to support HF vector modes.
12202 (cmp_imm_predicate): Likewise.
12203 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
12205 (avx512f_vmcmp<mode>3<round_saeonly_name>): Likewise.
12206 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Likewise.
12207 (<sse>_<unord>comi<round_saeonly_name>): Likewise.
12209 2021-09-10 liuhongt <hongtao.liu@intel.com>
12211 * config/i386/avx512fp16intrin.h: (_mm512_max_ph): New intrinsic.
12212 (_mm512_mask_max_ph): Likewise.
12213 (_mm512_maskz_max_ph): Likewise.
12214 (_mm512_min_ph): Likewise.
12215 (_mm512_mask_min_ph): Likewise.
12216 (_mm512_maskz_min_ph): Likewise.
12217 (_mm512_max_round_ph): Likewise.
12218 (_mm512_mask_max_round_ph): Likewise.
12219 (_mm512_maskz_max_round_ph): Likewise.
12220 (_mm512_min_round_ph): Likewise.
12221 (_mm512_mask_min_round_ph): Likewise.
12222 (_mm512_maskz_min_round_ph): Likewise.
12223 (_mm_max_sh): Likewise.
12224 (_mm_mask_max_sh): Likewise.
12225 (_mm_maskz_max_sh): Likewise.
12226 (_mm_min_sh): Likewise.
12227 (_mm_mask_min_sh): Likewise.
12228 (_mm_maskz_min_sh): Likewise.
12229 (_mm_max_round_sh): Likewise.
12230 (_mm_mask_max_round_sh): Likewise.
12231 (_mm_maskz_max_round_sh): Likewise.
12232 (_mm_min_round_sh): Likewise.
12233 (_mm_mask_min_round_sh): Likewise.
12234 (_mm_maskz_min_round_sh): Likewise.
12235 * config/i386/avx512fp16vlintrin.h (_mm_max_ph): New intrinsic.
12236 (_mm256_max_ph): Likewise.
12237 (_mm_mask_max_ph): Likewise.
12238 (_mm256_mask_max_ph): Likewise.
12239 (_mm_maskz_max_ph): Likewise.
12240 (_mm256_maskz_max_ph): Likewise.
12241 (_mm_min_ph): Likewise.
12242 (_mm256_min_ph): Likewise.
12243 (_mm_mask_min_ph): Likewise.
12244 (_mm256_mask_min_ph): Likewise.
12245 (_mm_maskz_min_ph): Likewise.
12246 (_mm256_maskz_min_ph): Likewise.
12247 * config/i386/i386-builtin-types.def: Add corresponding builtin types.
12248 * config/i386/i386-builtin.def: Add corresponding new builtins.
12249 * config/i386/i386-expand.c
12250 (ix86_expand_args_builtin): Handle new builtin types.
12251 * config/i386/sse.md
12252 (<code><mode>3<mask_name><round_saeonly_name>): Adjust to
12253 support HF vector modes.
12254 (*<code><mode>3<mask_name><round_saeonly_name>): Likewise.
12255 (ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>):
12257 (<sse>_vm<code><mode>3<mask_scalar_name><round_saeonly_scalar_name>):
12259 * config/i386/subst.md (round_saeonly_mode512bit_condition):
12260 Adjust for HF vector modes.
12262 2021-09-10 Liu, Hongtao <hongtao.liu@intel.com>
12264 * config/i386/avx512fp16intrin.h (_mm_add_sh): New intrinsic.
12265 (_mm_mask_add_sh): Likewise.
12266 (_mm_maskz_add_sh): Likewise.
12267 (_mm_sub_sh): Likewise.
12268 (_mm_mask_sub_sh): Likewise.
12269 (_mm_maskz_sub_sh): Likewise.
12270 (_mm_mul_sh): Likewise.
12271 (_mm_mask_mul_sh): Likewise.
12272 (_mm_maskz_mul_sh): Likewise.
12273 (_mm_div_sh): Likewise.
12274 (_mm_mask_div_sh): Likewise.
12275 (_mm_maskz_div_sh): Likewise.
12276 (_mm_add_round_sh): Likewise.
12277 (_mm_mask_add_round_sh): Likewise.
12278 (_mm_maskz_add_round_sh): Likewise.
12279 (_mm_sub_round_sh): Likewise.
12280 (_mm_mask_sub_round_sh): Likewise.
12281 (_mm_maskz_sub_round_sh): Likewise.
12282 (_mm_mul_round_sh): Likewise.
12283 (_mm_mask_mul_round_sh): Likewise.
12284 (_mm_maskz_mul_round_sh): Likewise.
12285 (_mm_div_round_sh): Likewise.
12286 (_mm_mask_div_round_sh): Likewise.
12287 (_mm_maskz_div_round_sh): Likewise.
12288 * config/i386/i386-builtin-types.def: Add corresponding builtin types.
12289 * config/i386/i386-builtin.def: Add corresponding new builtins.
12290 * config/i386/i386-expand.c
12291 (ix86_expand_round_builtin): Handle new builtins.
12292 * config/i386/sse.md (VF_128): Change description.
12293 (<sse>_vm<plusminus_insn><mode>3<mask_scalar_name><round_scalar_name>):
12294 Adjust to support HF vector modes.
12295 (<sse>_vm<multdiv_mnemonic><mode>3<mask_scalar_name><round_scalar_name>):
12298 2021-09-10 H.J. Lu <hjl.tools@gmail.com>
12300 * config/i386/i386-expand.c
12301 (ix86_avx256_split_vector_move_misalign): Handle V16HF mode.
12302 * config/i386/i386.c
12303 (ix86_preferred_simd_mode): Handle HF mode.
12304 * config/i386/sse.md (V_256H): New mode iterator.
12305 (avx_vextractf128<mode>): Use it.
12306 (VEC_INIT_MODE): Align vector HFmode condition to vector
12307 HImodes since there're no real HF instruction used.
12308 (VEC_INIT_HALF_MODE): Ditto.
12310 (VIHF_AVX512BW): Ditto.
12311 (*vec_extracthf): Ditto.
12312 (VEC_EXTRACT_MODE): Ditto.
12314 2021-09-10 Richard Biener <rguenther@suse.de>
12317 * config/dbx.h: Remove.
12318 * config/dbxcoff.h: Do not define PREFERRED_DEBUGGING_TYPE.
12319 * config/lynx.h: Likewise.
12321 2021-09-10 liuhongt <hongtao.liu@intel.com>
12323 * config/i386/i386-expand.c (ix86_expand_copysign): Expand
12324 right into ANDNOT + AND + IOR, using paradoxical subregs.
12325 (ix86_split_copysign_const): Remove.
12326 (ix86_split_copysign_var): Ditto.
12327 * config/i386/i386-protos.h (ix86_split_copysign_const): Dotto.
12328 (ix86_split_copysign_var): Ditto.
12329 * config/i386/i386.md (@copysign<mode>3_const): Ditto.
12330 (@copysign<mode>3_var): Ditto.
12332 2021-09-09 qing zhao <qing.zhao@oracle.com>
12334 * builtins.c (expand_builtin_memset): Make external visible.
12335 * builtins.h (expand_builtin_memset): Declare extern.
12336 * common.opt (ftrivial-auto-var-init=): New option.
12337 * doc/extend.texi: Document the uninitialized attribute.
12338 * doc/invoke.texi: Document -ftrivial-auto-var-init.
12339 * flag-types.h (enum auto_init_type): New enumerated type
12341 * gimple-fold.c (clear_padding_type): Add one new parameter.
12342 (clear_padding_union): Likewise.
12343 (clear_padding_emit_loop): Likewise.
12344 (clear_type_padding_in_mask): Likewise.
12345 (gimple_fold_builtin_clear_padding): Handle this new parameter.
12346 * gimplify.c (gimple_add_init_for_auto_var): New function.
12347 (gimple_add_padding_init_for_auto_var): New function.
12348 (is_var_need_auto_init): New function.
12349 (gimplify_decl_expr): Add initialization to automatic variables per
12351 (gimplify_call_expr): Add one new parameter for call to
12352 __builtin_clear_padding.
12353 (gimplify_init_constructor): Add padding initialization in the end.
12354 * internal-fn.c (INIT_PATTERN_VALUE): New macro.
12355 (expand_DEFERRED_INIT): New function.
12356 * internal-fn.def (DEFERRED_INIT): New internal function.
12357 * tree-cfg.c (verify_gimple_call): Verify calls to .DEFERRED_INIT.
12358 * tree-sra.c (generate_subtree_deferred_init): New function.
12359 (scan_function): Avoid setting cannot_scalarize_away_bitmap for
12360 calls to .DEFERRED_INIT.
12361 (sra_modify_deferred_init): New function.
12362 (sra_modify_function_body): Handle calls to DEFERRED_INIT specially.
12363 * tree-ssa-structalias.c (find_func_aliases_for_call): Likewise.
12364 * tree-ssa-uninit.c (warn_uninit): Handle calls to DEFERRED_INIT
12366 (check_defs): Likewise.
12367 (warn_uninitialized_vars): Likewise.
12368 * tree-ssa.c (ssa_undefined_value_p): Likewise.
12369 * tree.c (build_common_builtin_nodes): Build tree node for
12370 BUILT_IN_CLEAR_PADDING when needed.
12372 2021-09-09 Richard Biener <rguenther@suse.de>
12374 * tree-ssa-loop-im.c (fill_always_executed_in_1): Walk
12377 2021-09-09 Richard Biener <rguenther@suse.de>
12379 * tree-ssa-loop-im.c (fill_always_executed_in_1): Integrate
12380 DOM walk from get_loop_body_in_dom_order using a worklist
12383 2021-09-09 liuhongt <hongtao.liu@intel.com>
12385 * config.gcc: Add avx512fp16vlintrin.h.
12386 * config/i386/avx512fp16intrin.h: (_mm512_add_ph): New intrinsic.
12387 (_mm512_mask_add_ph): Likewise.
12388 (_mm512_maskz_add_ph): Likewise.
12389 (_mm512_sub_ph): Likewise.
12390 (_mm512_mask_sub_ph): Likewise.
12391 (_mm512_maskz_sub_ph): Likewise.
12392 (_mm512_mul_ph): Likewise.
12393 (_mm512_mask_mul_ph): Likewise.
12394 (_mm512_maskz_mul_ph): Likewise.
12395 (_mm512_div_ph): Likewise.
12396 (_mm512_mask_div_ph): Likewise.
12397 (_mm512_maskz_div_ph): Likewise.
12398 (_mm512_add_round_ph): Likewise.
12399 (_mm512_mask_add_round_ph): Likewise.
12400 (_mm512_maskz_add_round_ph): Likewise.
12401 (_mm512_sub_round_ph): Likewise.
12402 (_mm512_mask_sub_round_ph): Likewise.
12403 (_mm512_maskz_sub_round_ph): Likewise.
12404 (_mm512_mul_round_ph): Likewise.
12405 (_mm512_mask_mul_round_ph): Likewise.
12406 (_mm512_maskz_mul_round_ph): Likewise.
12407 (_mm512_div_round_ph): Likewise.
12408 (_mm512_mask_div_round_ph): Likewise.
12409 (_mm512_maskz_div_round_ph): Likewise.
12410 * config/i386/avx512fp16vlintrin.h: New header.
12411 * config/i386/i386-builtin-types.def (V16HF, V8HF, V32HF):
12412 Add new builtin types.
12413 * config/i386/i386-builtin.def: Add corresponding builtins.
12414 * config/i386/i386-expand.c
12415 (ix86_expand_args_builtin): Handle new builtin types.
12416 (ix86_expand_round_builtin): Likewise.
12417 * config/i386/immintrin.h: Include avx512fp16vlintrin.h
12418 * config/i386/sse.md (VFH): New mode_iterator.
12420 (avx512fmaskmode): Add HF vector modes.
12421 (avx512fmaskhalfmode): Likewise.
12422 (<plusminus_insn><mode>3<mask_name><round_name>): Adjust to for
12424 (*<plusminus_insn><mode>3<mask_name><round_name>): Likewise.
12425 (mul<mode>3<mask_name><round_name>): Likewise.
12426 (*mul<mode>3<mask_name><round_name>): Likewise.
12427 (div<mode>3): Likewise.
12428 (<sse>_div<mode>3<mask_name><round_name>): Likewise.
12429 * config/i386/subst.md (SUBST_V): Add HF vector modes.
12430 (SUBST_A): Likewise.
12431 (round_mode512bit_condition): Adjust for V32HFmode.
12433 2021-09-09 liuhongt <hongtao.liu@intel.com>
12436 * config/i386/sse.md (reduc_plus_scal_<mode>): Split to ..
12437 (reduc_plus_scal_v4sf): .. this, New define_expand.
12438 (reduc_plus_scal_v2df): .. and this, New define_expand.
12440 2021-09-09 liuhongt <hongtao.liu@intel.com>
12443 * config/i386/sse.md (*vec_extract<mode><ssescalarmodelower>_valign):
12446 2021-09-08 Jonathan Wakely <jwakely@redhat.com>
12449 * doc/trouble.texi (Copy Assignment): Fix description of
12450 behaviour and fix code in example.
12452 2021-09-08 Segher Boessenkool <segher@kernel.crashing.org>
12455 * config/rs6000/rs6000-logue.c (rs6000_emit_epilogue): For ELFv2 use
12456 r11 instead of r12 for restoring CR.
12458 2021-09-08 Jakub Jelinek <jakub@redhat.com>
12459 liuhongt <hongtao.liu@intel.com>
12462 * config/i386/i386.md (@xorsign<mode>3_1): Remove.
12463 * config/i386/i386-expand.c (ix86_expand_xorsign): Expand right away
12464 into AND with mask and XOR, using paradoxical subregs.
12465 (ix86_split_xorsign): Remove.
12466 * config/i386/i386-protos.h (ix86_split_xorsign): Remove.
12468 2021-09-08 Di Zhao <dizhao@os.amperecomputing.com>
12470 * tree-ssa-sccvn.c (vn_nary_op_insert_into): fix result compare
12472 2021-09-08 Jakub Jelinek <jakub@redhat.com>
12475 * config/i386/i386.md (xorsign<mode>3): If operands[1] is equal to
12476 operands[2], emit abs<mode>2 instead.
12477 (@xorsign<mode>3_1): Add early-clobbers for output operand, enable
12478 first alternative even for avx, add another alternative with
12479 =&Yv <- 0, Yv, Yvm constraints.
12480 * config/i386/i386-expand.c (ix86_split_xorsign): If op0 is equal
12481 to op1, emit vpandn instead.
12483 2021-09-08 liuhongt <hongtao.liu@intel.com>
12485 * config/i386/avx512fp16intrin.h (_mm_set_ph): New intrinsic.
12486 (_mm256_set_ph): Likewise.
12487 (_mm512_set_ph): Likewise.
12488 (_mm_setr_ph): Likewise.
12489 (_mm256_setr_ph): Likewise.
12490 (_mm512_setr_ph): Likewise.
12491 (_mm_set1_ph): Likewise.
12492 (_mm256_set1_ph): Likewise.
12493 (_mm512_set1_ph): Likewise.
12494 (_mm_setzero_ph): Likewise.
12495 (_mm256_setzero_ph): Likewise.
12496 (_mm512_setzero_ph): Likewise.
12497 (_mm_set_sh): Likewise.
12498 (_mm_load_sh): Likewise.
12499 (_mm_store_sh): Likewise.
12500 * config/i386/i386-builtin-types.def (V8HF): New type.
12501 (DEF_FUNCTION_TYPE (V8HF, V8HI)): New builtin function type
12502 * config/i386/i386-expand.c (ix86_expand_vector_init_duplicate):
12503 Support vector HFmodes.
12504 (ix86_expand_vector_init_one_nonzero): Likewise.
12505 (ix86_expand_vector_init_one_var): Likewise.
12506 (ix86_expand_vector_init_interleave): Likewise.
12507 (ix86_expand_vector_init_general): Likewise.
12508 (ix86_expand_vector_set): Likewise.
12509 (ix86_expand_vector_extract): Likewise.
12510 (ix86_expand_vector_init_concat): Likewise.
12511 (ix86_expand_sse_movcc): Handle vector HFmodes.
12512 (ix86_expand_vector_set_var): Ditto.
12513 * config/i386/i386-modes.def: Add HF vector modes in comment.
12514 * config/i386/i386.c (classify_argument): Add HF vector modes.
12515 (ix86_hard_regno_mode_ok): Allow HF vector modes for AVX512FP16.
12516 (ix86_vector_mode_supported_p): Likewise.
12517 (ix86_set_reg_reg_cost): Handle vector HFmode.
12518 (ix86_get_ssemov): Handle vector HFmode.
12519 (function_arg_advance_64): Pass unamed V16HFmode and V32HFmode
12521 (function_arg_advance_32): Pass V8HF/V16HF/V32HF by sse reg for 32bit
12523 (function_arg_advance_32): Ditto.
12524 * config/i386/i386.h (VALID_AVX512FP16_REG_MODE): New.
12525 (VALID_AVX256_REG_OR_OI_MODE): Rename to ..
12526 (VALID_AVX256_REG_OR_OI_VHF_MODE): .. this, and add V16HF.
12527 (VALID_SSE2_REG_VHF_MODE): New.
12528 (VALID_AVX512VL_128_REG_MODE): Add V8HF and TImode.
12529 (SSE_REG_MODE_P): Add vector HFmode.
12530 * config/i386/i386.md (mode): Add HF vector modes.
12531 (MODE_SIZE): Likewise.
12532 (ssemodesuffix): Add ph suffix for HF vector modes.
12533 * config/i386/sse.md (VFH_128): New mode iterator.
12534 (VMOVE): Adjust for HF vector modes.
12536 (V_256_512): Likewise.
12537 (avx512): Likewise.
12538 (avx512fmaskmode): Likewise.
12539 (shuffletype): Likewise.
12540 (sseinsnmode): Likewise.
12541 (ssedoublevecmode): Likewise.
12542 (ssehalfvecmode): Likewise.
12543 (ssehalfvecmodelower): Likewise.
12544 (ssePScmode): Likewise.
12545 (ssescalarmode): Likewise.
12546 (ssescalarmodelower): Likewise.
12547 (sseintprefix): Likewise.
12549 (bcstscalarsuff): Likewise.
12550 (xtg_mode): Likewise.
12551 (VI12HF_AVX512VL): New mode_iterator.
12552 (VF_AVX512FP16): Likewise.
12554 (VIHF_256): Likewise.
12555 (VIHF_AVX512BW): Likewise.
12556 (V16_256): Likewise.
12557 (V32_512): Likewise.
12558 (sseintmodesuffix): New mode_attr.
12559 (sse): Add scalar and vector HFmodes.
12560 (ssescalarmode): Add vector HFmode mapping.
12561 (ssescalarmodesuffix): Add sh suffix for HFmode.
12562 (*<sse>_vm<insn><mode>3): Use VFH_128.
12563 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
12564 (*ieee_<ieee_maxmin><mode>3): Likewise.
12565 (<avx512>_blendm<mode>): New define_insn.
12566 (vec_setv8hf): New define_expand.
12567 (vec_set<mode>_0): New define_insn for HF vector set.
12568 (*avx512fp16_movsh): Likewise.
12569 (avx512fp16_movsh): Likewise.
12570 (vec_extract_lo_v32hi): Rename to ...
12571 (vec_extract_lo_<mode>): ... this, and adjust to allow HF
12573 (vec_extract_hi_v32hi): Likewise.
12574 (vec_extract_hi_<mode>): Likewise.
12575 (vec_extract_lo_v16hi): Likewise.
12576 (vec_extract_lo_<mode>): Likewise.
12577 (vec_extract_hi_v16hi): Likewise.
12578 (vec_extract_hi_<mode>): Likewise.
12579 (vec_set_hi_v16hi): Likewise.
12580 (vec_set_hi_<mode>): Likewise.
12581 (vec_set_lo_v16hi): Likewise.
12582 (vec_set_lo_<mode>): Likewise.
12583 (*vec_extract<mode>_0): New define_insn_and_split for HF
12585 (*vec_extracthf): New define_insn.
12586 (VEC_EXTRACT_MODE): Add HF vector modes.
12587 (PINSR_MODE): Add V8HF.
12588 (sse2p4_1): Likewise.
12589 (pinsr_evex_isa): Likewise.
12590 (<sse2p4_1>_pinsr<ssemodesuffix>): Adjust to support
12591 insert for V8HFmode.
12592 (pbroadcast_evex_isa): Add HF vector modes.
12593 (AVX2_VEC_DUP_MODE): Likewise.
12594 (VEC_INIT_MODE): Likewise.
12595 (VEC_INIT_HALF_MODE): Likewise.
12596 (avx2_pbroadcast<mode>): Adjust to support HF vector mode
12598 (avx2_pbroadcast<mode>_1): Likewise.
12599 (<avx512>_vec_dup<mode>_1): Likewise.
12600 (<avx512>_vec_dup<mode><mask_name>): Likewise.
12601 (<mask_codefor><avx512>_vec_dup_gpr<mode><mask_name>):
12604 2021-09-08 Guo, Xuepeng <xuepeng.guo@intel.com>
12605 H.J. Lu <hongjiu.lu@intel.com>
12606 Liu Hongtao <hongtao.liu@intel.com>
12607 Wang Hongyu <hongyu.wang@intel.com>
12608 Xu Dianhong <dianhong.xu@intel.com>
12610 * common/config/i386/cpuinfo.h (get_available_features):
12611 Detect FEATURE_AVX512FP16.
12612 * common/config/i386/i386-common.c
12613 (OPTION_MASK_ISA_AVX512FP16_SET,
12614 OPTION_MASK_ISA_AVX512FP16_UNSET,
12615 OPTION_MASK_ISA2_AVX512FP16_SET,
12616 OPTION_MASK_ISA2_AVX512FP16_UNSET): New.
12617 (OPTION_MASK_ISA2_AVX512BW_UNSET,
12618 OPTION_MASK_ISA2_AVX512BF16_UNSET): Add AVX512FP16.
12619 (ix86_handle_option): Handle -mavx512fp16.
12620 * common/config/i386/i386-cpuinfo.h (enum processor_features):
12621 Add FEATURE_AVX512FP16.
12622 * common/config/i386/i386-isas.h: Add entry for AVX512FP16.
12623 * config.gcc: Add avx512fp16intrin.h.
12624 * config/i386/avx512fp16intrin.h: New intrinsic header.
12625 * config/i386/cpuid.h: Add bit_AVX512FP16.
12626 * config/i386/i386-builtin-types.def: (FLOAT16): New primitive type.
12627 * config/i386/i386-builtins.c: Support _Float16 type for i386
12629 (ix86_register_float16_builtin_type): New function.
12630 (ix86_float16_type_node): New.
12631 * config/i386/i386-c.c (ix86_target_macros_internal): Define
12633 * config/i386/i386-expand.c (ix86_expand_branch): Support
12635 (ix86_prepare_fp_compare_args): Adjust TARGET_SSE_MATH &&
12636 SSE_FLOAT_MODE_P to SSE_FLOAT_MODE_SSEMATH_OR_HF_P.
12637 (ix86_expand_fp_movcc): Ditto.
12638 * config/i386/i386-isa.def: Add PTA define for AVX512FP16.
12639 * config/i386/i386-options.c (isa2_opts): Add -mavx512fp16.
12640 (ix86_valid_target_attribute_inner_p): Add avx512fp16 attribute.
12641 * config/i386/i386.c (ix86_get_ssemov): Use
12642 vmovdqu16/vmovw/vmovsh for HFmode/HImode scalar or vector.
12643 (ix86_get_excess_precision): Use
12644 FLT_EVAL_METHOD_PROMOTE_TO_FLOAT16 when TARGET_AVX512FP16
12646 (sse_store_index): Use SFmode cost for HFmode cost.
12647 (inline_memory_move_cost): Add HFmode, and perfer SSE cost over
12648 GPR cost for HFmode.
12649 (ix86_hard_regno_mode_ok): Allow HImode in sse register.
12650 (ix86_mangle_type): Add manlging for _Float16 type.
12651 (inline_secondary_memory_needed): No memory is needed for
12652 16bit movement between gpr and sse reg under
12654 (ix86_multiplication_cost): Adjust TARGET_SSE_MATH &&
12655 SSE_FLOAT_MODE_P to SSE_FLOAT_MODE_SSEMATH_OR_HF_P.
12656 (ix86_division_cost): Ditto.
12657 (ix86_rtx_costs): Ditto.
12658 (ix86_add_stmt_cost): Ditto.
12659 (ix86_optab_supported_p): Ditto.
12660 * config/i386/i386.h (VALID_AVX512F_SCALAR_MODE): Add HFmode.
12661 (SSE_FLOAT_MODE_SSEMATH_OR_HF_P): Add HFmode.
12662 (PTA_SAPPHIRERAPIDS): Add PTA_AVX512FP16.
12663 * config/i386/i386.md (mode): Add HFmode.
12664 (MODE_SIZE): Add HFmode.
12665 (isa): Add avx512fp16.
12666 (enabled): Handle avx512fp16.
12667 (ssemodesuffix): Add sh suffix for HFmode.
12668 (comm): Add mult, div.
12669 (plusminusmultdiv): New code iterator.
12670 (insn): Add mult, div.
12671 (*movhf_internal): Adjust for avx512fp16 instruction.
12672 (*movhi_internal): Ditto.
12673 (*cmpi<unord>hf): New define_insn for HFmode.
12674 (*ieee_s<ieee_maxmin>hf3): Likewise.
12675 (extendhf<mode>2): Likewise.
12676 (trunc<mode>hf2): Likewise.
12677 (float<floatunssuffix><mode>hf2): Likewise.
12678 (*<insn>hf): Likewise.
12679 (cbranchhf4): New expander.
12680 (movhfcc): Likewise.
12681 (<insn>hf3): Likewise.
12682 (mulhf3): Likewise.
12683 (divhf3): Likewise.
12684 * config/i386/i386.opt: Add mavx512fp16.
12685 * config/i386/immintrin.h: Include avx512fp16intrin.h.
12686 * doc/invoke.texi: Add mavx512fp16.
12687 * doc/extend.texi: Add avx512fp16 Usage Notes.
12689 2021-09-08 liuhongt <hongtao.liu@intel.com>
12691 * common.opt: Support -fexcess-precision=16.
12692 * config/aarch64/aarch64.c (aarch64_excess_precision): Return
12693 FLT_EVAL_METHOD_PROMOTE_TO_FLOAT16 when
12694 EXCESS_PRECISION_TYPE_FLOAT16.
12695 * config/arm/arm.c (arm_excess_precision): Ditto.
12696 * config/i386/i386.c (ix86_get_excess_precision): Ditto.
12697 * config/m68k/m68k.c (m68k_excess_precision): Issue an error
12698 when EXCESS_PRECISION_TYPE_FLOAT16.
12699 * config/s390/s390.c (s390_excess_precision): Ditto.
12700 * coretypes.h (enum excess_precision_type): Add
12701 EXCESS_PRECISION_TYPE_FLOAT16.
12702 * doc/tm.texi (TARGET_C_EXCESS_PRECISION): Update documents.
12703 * doc/tm.texi.in (TARGET_C_EXCESS_PRECISION): Ditto.
12704 * doc/extend.texi (Half-Precision): Document
12705 -fexcess-precision=16.
12706 * flag-types.h (enum excess_precision): Add
12707 EXCESS_PRECISION_FLOAT16.
12708 * target.def (excess_precision): Update document.
12709 * tree.c (excess_precision_type): Set excess_precision_type to
12710 EXCESS_PRECISION_FLOAT16 when -fexcess-precision=16.
12712 2021-09-08 liuhongt <hongtao.liu@intel.com>
12714 * doc/extend.texi: (@node Floating Types): Adjust the wording.
12715 (@node Half-Precision): Ditto.
12717 2021-09-07 Takayuki 'January June' Suwa <jjsuwa_sys3175@yahoo.co.jp>
12720 * config/xtensa/xtensa.c (xtensa_emit_move_sequence): Add
12721 'CONST_INT_P (src)' to the condition of the block that tries to
12722 eliminate literal when loading integer contant.
12724 2021-09-07 David Faust <david.faust@oracle.com>
12726 * doc/extend.texi (BPF Type Attributes) New node.
12727 Document new preserve_access_index attribute.
12728 Document new preserve_access_index builtin.
12729 * doc/invoke.texi: Document -mco-re and -mno-co-re options.
12731 2021-09-07 David Faust <david.faust@oracle.com>
12733 * config/bpf/bpf.c: Adjust includes.
12734 (bpf_handle_preserve_access_index_attribute): New function.
12735 (bpf_attribute_table): Use it here.
12736 (bpf_builtins): Add BPF_BUILTIN_PRESERVE_ACCESS_INDEX.
12737 (bpf_option_override): Handle "-mco-re" option.
12738 (bpf_asm_init_sections): New.
12739 (TARGET_ASM_INIT_SECTIONS): Redefine.
12740 (bpf_file_end): New.
12741 (TARGET_ASM_FILE_END): Redefine.
12742 (bpf_init_builtins): Add "__builtin_preserve_access_index".
12743 (bpf_core_compute, bpf_core_get_index): New.
12744 (is_attr_preserve_access): New.
12745 (bpf_expand_builtin): Handle new builtins.
12746 (bpf_core_newdecl, bpf_core_is_maybe_aggregate_access): New.
12747 (bpf_core_walk): New.
12748 (bpf_resolve_overloaded_builtin): New.
12749 (TARGET_RESOLVE_OVERLOADED_BUILTIN): Redefine.
12750 (handle_attr): New.
12751 (pass_bpf_core_attr): New RTL pass.
12752 * config/bpf/bpf-passes.def: New file.
12753 * config/bpf/bpf-protos.h (make_pass_bpf_core_attr): New.
12754 * config/bpf/coreout.c: New file.
12755 * config/bpf/coreout.h: Likewise.
12756 * config/bpf/t-bpf (TM_H): Add $(srcdir)/config/bpf/coreout.h.
12757 (coreout.o): New rule.
12758 (PASSES_EXTRA): Add $(srcdir)/config/bpf/bpf-passes.def.
12759 * config.gcc (bpf): Add coreout.h to extra_headers.
12760 Add coreout.o to extra_objs.
12761 Add $(srcdir)/config/bpf/coreout.c to target_gtfiles.
12763 2021-09-07 David Faust <david.faust@oracle.com>
12765 * btfout.c (get_btf_id): Function is no longer static.
12766 * ctfc.h: Expose it here.
12768 2021-09-07 David Faust <david.faust@oracle.com>
12770 * ctfc.c (ctf_lookup_tree_type): New function.
12771 * ctfc.h: Likewise.
12773 2021-09-07 David Faust <david.faust@oracle.com>
12775 * ctfc.c (ctf_dtd_lookup): Function is no longer static.
12776 * ctfc.h: Analogous change.
12778 2021-09-07 David Faust <david.faust@oracle.com>
12780 * dwarf2out.c (lookup_type_die): Function is no longer static.
12781 * dwarf2out.h: Expose it here.
12783 2021-09-07 Indu Bhagat <indu.bhagat@oracle.com>
12785 * dwarf2ctf.c (ctf_debug_finalize): Make it static.
12786 (ctf_debug_early_finish): New definition.
12787 (ctf_debug_finish): Likewise.
12788 * dwarf2ctf.h (ctf_debug_finalize): Remove declaration.
12789 (ctf_debug_early_finish): New declaration.
12790 (ctf_debug_finish): Likewise.
12791 * dwarf2out.c (dwarf2out_finish): Invoke ctf_debug_finish.
12792 (dwarf2out_early_finish): Invoke ctf_debug_early_finish.
12794 2021-09-07 Indu Bhagat <indu.bhagat@oracle.com>
12796 * config/bpf/bpf.c (bpf_option_override): For BPF backend, disable LTO
12797 support when compiling for CO-RE.
12798 * config/bpf/bpf.opt: Add new command line option -mco-re.
12800 2021-09-07 Indu Bhagat <indu.bhagat@oracle.com>
12802 * flag-types.h (enum debug_info_type): Add new enum
12803 DINFO_TYPE_BTF_WITH_CORE.
12804 (BTF_WITH_CORE_DEBUG): New bitmask.
12805 * flags.h (btf_with_core_debuginfo_p): New declaration.
12806 * opts.c (btf_with_core_debuginfo_p): New definition.
12808 2021-09-07 Jason Merrill <jason@redhat.com>
12810 * tree.h (error_operand_p): Change to inline function.
12812 2021-09-07 Aldy Hernandez <aldyh@redhat.com>
12814 * tree-ssa-threadedge.c (forwarder_block_p): Rename to...
12815 (empty_block_with_phis_p): ...this.
12816 (potentially_threadable_block): Same.
12817 (jump_threader::thread_through_normal_block): Same.
12819 2021-09-07 Eric Botcazou <ebotcazou@adacore.com>
12822 * dwarf2out.c (mark_base_types): New overloaded function.
12823 (dwarf2out_early_finish): Invoke it on the COMDAT type list as well
12824 as the compilation unit, and call move_marked_base_types afterward.
12826 2021-09-07 H.J. Lu <hjl.tools@gmail.com>
12829 * config/i386/i386-expand.c (ix86_expand_convert_uns_sisf_sse):
12831 (ix86_expand_vector_convert_uns_vsivsf): Likewise.
12833 2021-09-07 Richard Biener <rguenther@suse.de>
12835 PR tree-optimization/102226
12836 * tree-vect-loop.c (vect_transform_cycle_phi): Record
12837 the converted value for the epilogue PHI use.
12839 2021-09-07 Martin Liska <mliska@suse.cz>
12841 PR gcov-profile/80223
12842 * ipa-inline.c (can_inline_edge_p): Similarly to sanitizer
12843 options, do not inline when no_profile_instrument_function
12844 attributes are different in early inliner. It's fine to inline
12845 it after PGO instrumentation.
12847 2021-09-07 Richard Biener <rguenther@suse.de>
12849 PR tree-optimization/101555
12850 * tree-ssa-pre.c (translate_vuse_through_block): Do not
12851 perform an alias walk to determine the validity of the
12852 mem at the start of the block which is already guaranteed
12853 by means of prune_clobbered_mems.
12854 (phi_translate_1): Pass edge to translate_vuse_through_block.
12856 2021-09-07 Xionghu Luo <luoxhu@linux.ibm.com>
12859 * config/rs6000/rs6000.md (fmod<mode>3): New define_expand.
12860 (remainder<mode>3): Likewise.
12862 2021-09-07 YunQiang Su <yunqiang.su@cipunited.com>
12864 * config/mips/mips.c (mips_file_start): add .module for
12867 2021-09-06 Roger Sayle <roger@nextmovesoftware.com>
12869 * wide-int.cc (wi::clz): Reorder tests to ensure the result
12870 is zero for all negative values.
12872 2021-09-06 Tobias Burnus <tobias@codesourcery.com>
12874 * doc/invoke.texi (-foffload-options): Fix @opindex.
12876 2021-09-06 H.J. Lu <hjl.tools@gmail.com>
12879 * config/i386/i386-expand.c (ix86_split_xorsign): Use operands[2].
12880 * config/i386/i386.md (@xorsign<mode>3_1): Add non-destructive
12881 source alternative for AVX.
12883 2021-09-06 liuhongt <hongtao.liu@intel.com>
12885 PR middle-end/102182
12886 * optabs.c (expand_fix): Add from1 to avoid from being
12889 2021-09-06 Eric Botcazou <ebotcazou@adacore.com>
12891 * dwarf2out.c (modified_type_die): Deal with all array types earlier
12892 and use local variable consistently throughout the function.
12894 2021-09-06 Jakub Jelinek <jakub@redhat.com>
12896 PR tree-optimization/102207
12897 * match.pd: Don't demote operands of IFN_{ADD,SUB,MUL}_OVERFLOW if they
12898 were promoted from signed to wider unsigned type.
12900 2021-09-06 Andrew Pinski <apinski@marvell.com>
12902 PR tree-optimization/63184
12903 * match.pd: Add simplification of pointer_diff of two pointer_plus
12904 with addr_expr in the first operand of each pointer_plus.
12905 Add simplificatoin of ne/eq of two pointer_plus with addr_expr
12906 in the first operand of each pointer_plus.
12908 2021-09-06 Richard Biener <rguenther@suse.de>
12910 PR tree-optimization/102176
12911 * tree-vect-slp.c (vect_slp_gather_vectorized_scalar_stmts):
12913 (vect_bb_slp_scalar_cost): Use the computed set of
12914 vectorized scalar stmts instead of relying on the out-of-date
12915 and not accurate PURE_SLP_STMT.
12916 (vect_bb_vectorization_profitable_p): Compute the set
12917 of vectorized scalar stmts.
12919 2021-09-05 Aldy Hernandez <aldyh@redhat.com>
12921 * gimple-range-path.cc (path_range_query::range_of_stmt): Remove
12922 GIMPLE_COND special casing.
12923 (path_range_query::range_defined_in_block): Use range_of_stmt
12924 instead of calling fold_range directly.
12926 2021-09-05 Aldy Hernandez <aldyh@redhat.com>
12928 * gimple-range-path.cc (path_range_query::range_of_expr): Set
12929 m_undefined_path when appropriate.
12930 (path_range_query::internal_range_of_expr): Copy from range_of_expr.
12931 (path_range_query::unreachable_path_p): New.
12932 (path_range_query::precompute_ranges): Set m_undefined_path.
12933 * gimple-range-path.h (path_range_query::unreachable_path_p): New.
12934 (path_range_query::internal_range_of_expr): New.
12935 * tree-ssa-threadbackward.c (back_threader::find_taken_edge_cond):
12936 Use unreachable_path_p.
12938 2021-09-05 Aldy Hernandez <aldyh@redhat.com>
12940 * tree-ssa-threadbackward.c (back_threader::maybe_register_path):
12941 Remove argument and call find_taken_edge.
12942 (back_threader::resolve_phi): Do not calculate taken edge before
12943 calling maybe_register_path.
12944 (back_threader::find_paths_to_names): Same.
12946 2021-09-05 Jeff Law <jlaw@localhost.localdomain>
12948 * config/h8300/h8300.md (QHSI2 mode iterator): New mode iterator.
12949 * config/h8300/testcompare.md (store_c): Update name, use new
12951 (store_neg_c, store_shifted_c): New patterns.
12953 2021-09-03 Segher Boessenkool <segher@kernel.crashing.org>
12956 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): On ELFv2 use r11
12957 instead of r12 for CR save, in all cases.
12959 2021-09-03 Andrew Pinski <apinski@marvell.com>
12961 * config/aarch64/aarch64-sve-builtins.cc (register_vector_type):
12962 Handle error_mark_node as the type of the type_decl.
12964 2021-09-03 Andrew Pinski <apinski@marvell.com>
12966 * config/aarch64/aarch64-builtins.c (struct aarch64_simd_type_info):
12968 (aarch64_simd_types): Likewise.
12969 (aarch64_simd_intOI_type_node): Likewise.
12970 (aarch64_simd_intCI_type_node): Likewise.
12971 (aarch64_simd_intXI_type_node): Likewise.
12972 * config/aarch64/aarch64.h (aarch64_fp16_type_node): Likewise.
12973 (aarch64_fp16_ptr_type_node): Likewise.
12974 (aarch64_bf16_type_node): Likewise.
12975 (aarch64_bf16_ptr_type_node): Likewise.
12977 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
12979 * range-op.cc (operator_minus::op1_op2_relation_effect): Abstract
12981 (minus_op1_op2_relation_effect): ...here.
12982 (class operator_pointer_diff): New.
12983 (operator_pointer_diff::op1_op2_relation_effect): Call
12984 minus_op1_op2_relation_effect.
12985 (integral_table::integral_table): Add entry for POINTER_DIFF_EXPR.
12987 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
12989 * tree-ssa-threadbackward.c (back_threader::thread_through_all_blocks):
12990 Add may_peel_loop_headers.
12991 (back_threader_registry::thread_through_all_blocks): Same.
12992 (try_thread_blocks): Pass may_peel_loop_headers argument.
12993 (pass_early_thread_jumps::execute): Same.
12995 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
12997 * tree-ssa-threadedge.c (has_phis_p): New.
12998 (forwarder_block_p): New.
12999 (potentially_threadable_block): Call forwarder_block_p.
13000 (jump_threader::thread_around_empty_blocks): Call has_phis_p.
13001 (jump_threader::thread_through_normal_block): Call
13004 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
13006 * tree-ssa-threadbackward.c (back_threader::dump): New.
13007 (back_threader::debug): New.
13008 (back_threader_profitability::profitable_path_p): Dump blocks
13009 even if we are bailing early.
13011 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
13013 * tree-ssa-threadupdate.c (cancel_thread): New.
13014 (jump_thread_path_registry::thread_block_1): Use cancel_thread.
13015 (jump_thread_path_registry::mark_threaded_blocks): Same.
13016 (jump_thread_path_registry::register_jump_thread): Same.
13018 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
13020 * tree-ssa-threadedge.c (jt_state::push): Only call methods for
13021 which objects are available.
13022 (jt_state::pop): Same.
13023 (jt_state::register_equiv): Same.
13024 (jt_state::register_equivs_on_edge): Same.
13026 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
13028 * tree-ssa-threadedge.c (jump_threader::thread_across_edge):
13029 Move pop until after a thread is registered.
13031 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
13033 * tree-ssa-threadupdate.c (debug): New.
13035 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
13037 * gimple-range-trace.cc (push_dump_file::push_dump_file): New.
13038 (push_dump_file::~push_dump_file): New.
13039 (dump_ranger): Change dump_file temporarily while dumping
13041 * gimple-range-trace.h (class push_dump_file): New.
13043 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
13045 * gimple-range-trace.cc (debug_seed_ranger): Remove static.
13046 (dump_ranger): Dump function name.
13048 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
13050 * gimple-range-path.cc (path_range_query::range_defined_in_block):
13051 Adjust for non-null.
13052 (path_range_query::adjust_for_non_null_uses): New.
13053 (path_range_query::precompute_ranges): Call
13054 adjust_for_non_null_uses.
13055 * gimple-range-path.h: Add m_non_null and
13056 adjust_for_non_null_uses.
13058 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
13060 * gimple-range-path.cc (path_range_query::dump): Dump path
13062 (path_range_query::precompute_ranges): Dump entire path.
13064 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
13066 * value-relation.cc (relation_oracle::debug): New.
13067 * value-relation.h (relation_oracle::debug): New.
13069 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
13071 * tree-ssa-loop-ch.c: Remove unnecessary include file.
13073 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
13075 * gimple-range-fold.cc (fold_using_range::postfold_gcond_edges):
13076 Skip statements with no defining BB.
13077 * gimple-range-path.cc (path_range_query::range_defined_in_block):
13078 Do not get confused by statements with no defining BB.
13080 2021-09-03 Aldy Hernandez <aldyh@redhat.com>
13082 * gimple-range-fold.cc (adjust_imagpart_expr): Move from
13083 gimple_range_adjustment. Add support for constants.
13084 (adjust_realpart_expr): New.
13085 (gimple_range_adjustment): Move IMAGPART_EXPR code to
13086 adjust_imagpart_expr.
13087 * range-op.cc (integral_table::integral_table): Add entry for
13090 2021-09-03 Jakub Jelinek <jakub@redhat.com>
13092 * omp-expand.c (expand_omp_atomic_pipeline): Use
13093 IFN_ATOMIC_COMPARE_EXCHANGE instead of
13094 BUILT_IN_SYNC_VAL_COMPARE_AND_SWAP_? so that memory order
13097 2021-09-03 Jakub Jelinek <jakub@redhat.com>
13100 * tree.h (DECL_FIELD_ABI_IGNORED): Changed into rvalue only macro
13101 that is false if DECL_BIT_FIELD.
13102 (SET_DECL_FIELD_ABI_IGNORED, DECL_FIELD_CXX_ZERO_WIDTH_BIT_FIELD,
13103 SET_DECL_FIELD_CXX_ZERO_WIDTH_BIT_FIELD): Define.
13104 * tree-streamer-out.c (pack_ts_decl_common_value_fields): For
13105 DECL_BIT_FIELD stream DECL_FIELD_CXX_ZERO_WIDTH_BIT_FIELD instead
13106 of DECL_FIELD_ABI_IGNORED.
13107 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
13108 SET_DECL_FIELD_ABI_IGNORED instead of writing to
13109 DECL_FIELD_ABI_IGNORED and for DECL_BIT_FIELD use
13110 SET_DECL_FIELD_CXX_ZERO_WIDTH_BIT_FIELD instead.
13111 * lto-streamer-out.c (hash_tree): For DECL_BIT_FIELD hash
13112 DECL_FIELD_CXX_ZERO_WIDTH_BIT_FIELD instead of DECL_FIELD_ABI_IGNORED.
13114 2021-09-03 liuhongt <hongtao.liu@intel.com>
13117 * config/i386/amxbf16intrin.h : Remove macro check for __AMX_BF16__.
13118 * config/i386/amxint8intrin.h : Remove macro check for __AMX_INT8__.
13119 * config/i386/amxtileintrin.h : Remove macro check for __AMX_TILE__.
13121 2021-09-02 Martin Sebor <msebor@redhat.com>
13123 PR tree-optimization/17506
13125 * tree-ssa-uninit.c (warn_uninit): Remove conditional guarding note.
13127 2021-09-02 Richard Biener <rguenther@suse.de>
13129 * tree-ssa-loop-im.c (fill_always_executed_in_1): Refine
13130 fix for PR78185 and continue processing when leaving
13131 finite inner loops.
13133 2021-09-02 Jakub Jelinek <jakub@redhat.com>
13135 PR tree-optimization/99591
13136 * match.pd: Demote operands of IFN_{ADD,SUB,MUL}_OVERFLOW if they
13139 2021-09-02 Richard Biener <rguenther@suse.de>
13142 2021-09-02 Richard Biener <rguenther@suse.de>
13144 PR tree-optimization/102155
13145 * tree-ssa-loop-im.c (fill_always_executed_in_1): Iterate
13146 over a part of the RPO array and do not recurse here.
13147 Dump blocks marked as always executed.
13148 (fill_always_executed_in): Walk over the RPO array and
13149 process loops whose header we run into.
13150 (loop_invariant_motion_in_fun): Compute the first RPO
13151 using rev_post_order_and_mark_dfs_back_seme in iteration
13152 order and pass that to fill_always_executed_in.
13154 2021-09-02 liuhongt <hongtao.liu@intel.com>
13156 * config/i386/i386-modes.def (FLOAT_MODE): Define ieee HFmode.
13157 * config/i386/i386.c (enum x86_64_reg_class): Add
13158 X86_64_SSEHF_CLASS.
13159 (merge_classes): Handle X86_64_SSEHF_CLASS.
13160 (examine_argument): Ditto.
13161 (construct_container): Ditto.
13162 (classify_argument): Ditto, and set HFmode/HCmode to
13163 X86_64_SSEHF_CLASS.
13164 (function_value_32): Return _FLoat16/Complex Float16 by
13166 (function_value_64): Return _Float16/Complex Float16 by SSE
13168 (ix86_print_operand): Handle CONST_DOUBLE HFmode.
13169 (ix86_secondary_reload): Require gpr as intermediate register
13170 to store _Float16 from sse register when sse4 is not
13172 (ix86_libgcc_floating_mode_supported_p): Enable _FLoat16 under
13174 (ix86_scalar_mode_supported_p): Ditto.
13175 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Defined.
13176 * config/i386/i386.h (VALID_SSE2_REG_MODE): Add HFmode.
13177 (VALID_INT_MODE_P): Add HFmode and HCmode.
13178 * config/i386/i386.md (*pushhf_rex64): New define_insn.
13180 (*movhf_internal): Ditto.
13181 * doc/extend.texi (Half-Precision Floating Point): Documemt
13184 2021-09-02 Richard Biener <rguenther@suse.de>
13186 PR tree-optimization/102155
13187 * tree-ssa-loop-im.c (fill_always_executed_in_1): Iterate
13188 over a part of the RPO array and do not recurse here.
13189 Dump blocks marked as always executed.
13190 (fill_always_executed_in): Walk over the RPO array and
13191 process loops whose header we run into.
13192 (loop_invariant_motion_in_fun): Compute the first RPO
13193 using rev_post_order_and_mark_dfs_back_seme in iteration
13194 order and pass that to fill_always_executed_in.
13196 2021-09-02 YunQiang Su <syq@debian.org>
13199 2021-08-31 YunQiang Su <yunqiang.su@cipunited.com>
13201 * config/mips/mips.c (mips_module_isa_name): New.
13202 mips_file_start: add .module mipsREV to all asm output
13204 2021-09-01 Jeff Law <jlaw@localhost.localdomain>
13206 PR tree-optimization/102152
13207 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Reduce a vector
13208 comparison to a scalar comparison before calling
13209 update_stmt_if_modified.
13211 2021-09-01 Andrew Pinski <apinski@marvell.com>
13214 * config/aarch64/aarch64.c (aarch64_expand_setmem):
13215 Check STRICT_ALIGNMENT before creating an overlapping
13218 2021-09-01 Martin Sebor <msebor@redhat.com>
13220 * gimple-ssa-warn-access.cc (get_size_range): Add argument.
13221 (check_access): Pass additional argument.
13222 (check_memop_access): Remove template and make a member function.
13223 (maybe_check_dealloc_call): Make a pass_waccess member function.
13224 (class pass_waccess): Add, rename, and remove members.
13225 (pass_waccess::pass_waccess): Adjust to name change.
13226 (pass_waccess::~pass_waccess): Same.
13227 (check_alloca): Make a member function.
13228 (check_alloc_size_call): Same.
13229 (check_strcat): Same.
13230 (check_strncat): Same.
13231 (check_stxcpy): Same.
13232 (check_stxncpy): Same.
13233 (check_strncmp): Same.
13234 (maybe_warn_rdwr_sizes): Rename...
13235 (pass_waccess::maybe_check_access_sizes): ...to this.
13236 (pass_waccess::check_call): Adjust to name changes.
13237 (pass_waccess::maybe_check_dealloc_call): Make a pass_waccess member
13239 (pass_waccess::execute): Adjust to name changes.
13240 * gimple-ssa-warn-access.h (check_memop_access): Remove.
13241 * pointer-query.cc (access_ref::phi): Handle null pointer.
13242 (access_ref::inform_access): Same.
13243 (pointer_query::put_ref): Modify a cached value, not a copy of it.
13244 (pointer_query::dump): New function.
13245 (compute_objsize_r): Avoid overwriting access_ref::bndrng. Cache
13247 * pointer-query.h (pointer_query::dump): Declare.
13248 * tree-ssa-strlen.c (get_range): Simplify. Use function query.
13249 (dump_strlen_info): Use function query.
13250 (printf_strlen_execute): Factor code out into pointer_query::put_ref.
13252 2021-09-01 Thomas Schwinge <thomas@codesourcery.com>
13254 * tree.c (walk_tree_1) <OMP_CLAUSE>: Simplify.
13256 2021-09-01 Iain Sandoe <iain@sandoe.co.uk>
13258 * doc/extend.texi: Document unavailable attribute.
13259 * print-tree.c (print_node): Handle unavailable attribute.
13260 * tree-core.h (struct tree_base): Add a bit to carry unavailability.
13261 * tree.c (error_unavailable_use): New.
13262 * tree.h (TREE_UNAVAILABLE): New.
13263 (error_unavailable_use): New.
13265 2021-09-01 Jakub Jelinek <jakub@redhat.com>
13267 PR tree-optimization/102124
13268 * tree-vect-patterns.c (vect_recog_widen_op_pattern): For ORIG_CODE
13269 MINUS_EXPR, if itype is unsigned with smaller precision than type,
13270 add an extra cast to signed variant of itype to ensure sign-extension.
13272 2021-09-01 Martin Liska <mliska@suse.cz>
13274 * graph.c (draw_cfg_node_succ_edges): Do not color fallthru
13275 edges and rather use colors for TRUE and FALSE edges.
13277 2021-09-01 Richard Biener <rguenther@suse.de>
13279 PR tree-optimization/93491
13280 * tree-ssa-pre.c (compute_avail): Set BB_MAY_NOTRETURN
13281 after processing the stmt itself. Do not consider
13282 pure functions possibly not returning. Properly avoid
13283 adding possibly trapping calls to EXP_GEN when there's
13284 a preceeding possibly not returning call.
13285 * tree-ssa-sccvn.c (vn_reference_may_trap): Conservatively
13288 2021-09-01 Richard Biener <rguenther@suse.de>
13290 PR tree-optimization/102139
13291 * tree-vectorizer.h (vec_base_alignments): Adjust hash-map
13292 type to record a std::pair of the stmt-info and the innermost
13294 (dr_vec_info::group): New member.
13295 * tree-vect-data-refs.c (vect_record_base_alignment): Adjust.
13296 (vect_compute_data_ref_alignment): Verify the recorded
13297 base alignment can be used.
13298 (data_ref_pair): Remove.
13299 (dr_group_sort_cmp): Adjust.
13300 (vect_analyze_data_ref_accesses): Store the group-ID in the
13301 dr_vec_info and operate on a vector of dr_vec_infos.
13303 2021-09-01 YunQiang Su <yunqiang.su@cipunited.com>
13305 * read-md.c (md_reader::handle_enum): support value assignation.
13306 * doc/md.texi: record define_c_enum value assignation support.
13308 2021-09-01 Jakub Jelinek <jakub@redhat.com>
13310 PR tree-optimization/102141
13311 * gimple-ssa-store-merging.c (bswap_view_convert): Add BEFORE
13312 argument. If false, emit stmts after gsi instead of before, and
13314 (bswap_replace): Adjust callers. When converting output of bswap,
13315 emit VIEW_CONVERT prepratation stmts after a copy of gsi instead
13318 2021-09-01 liuhongt <hongtao.liu@intel.com>
13320 * emit-rtl.c (validate_subreg): Get rid of all float-int
13323 2021-09-01 liuhongt <hongtao.liu@intel.com>
13326 2021-08-30 liuhongt <hongtao.liu@intel.com>
13328 * expmed.c (extract_bit_field_1): Make sure we're playing with
13329 integral modes before call extract_integral_bit_field.
13330 (extract_integral_bit_field): Add a parameter of type
13331 scalar_int_mode which corresponds to of tmode.
13332 And call extract_and_convert_fixed_bit_field instead of
13333 extract_fixed_bit_field and convert_extracted_bit_field.
13334 (extract_and_convert_fixed_bit_field): New function, it's a
13335 combination of extract_fixed_bit_field and
13336 convert_extracted_bit_field.
13338 2021-08-31 Thomas Schwinge <thomas@codesourcery.com>
13340 * tree.c (walk_tree_1) <OMP_CLAUSE_TILE>: Handle three operands.
13342 2021-08-31 Thomas Schwinge <thomas@codesourcery.com>
13344 * omp-general.h (omp_is_reference): Rename to...
13345 (omp_privatize_by_reference): ... this. Adjust all users...
13346 * omp-general.c: ... here, ...
13347 * gimplify.c: ... here, ...
13348 * omp-expand.c: ... here, ...
13349 * omp-low.c: ... here.
13351 2021-08-31 Martin Sebor <msebor@redhat.com>
13353 * gimple-ssa-warn-access.cc (maybe_warn_alloc_args_overflow): Test
13354 pointer element for equality to zero, not that of the cotaining
13357 2021-08-31 Martin Sebor <msebor@redhat.com>
13359 * gcc-rich-location.h (gcc_rich_location): Make ctor explicit.
13361 2021-08-31 Martin Sebor <msebor@redhat.com>
13363 * function.h (function): Add comments.
13364 (get_range_query): Same. Add attribute returns nonnull.
13366 2021-08-31 Roger Sayle <roger@nextmovesoftware.com>
13368 * expr.c (convert_modes): Don't use subreg_promoted_mode on a
13369 SUBREG if it can't be guaranteed to a SUBREG_PROMOTED_VAR_P set.
13370 Instead use the standard (safer) is_a <scalar_int_mode> idiom.
13372 2021-08-31 Jeff Law <jlaw@localhost.localdomain>
13374 * config.gcc (cris-*-elf, cris-*-none): Remove dbxelf.h from
13376 (m32r-*-elf, m32rle-*-elf, m32r-*-linux): Likewise.
13377 (mn10300-*-*, am33_2.0-*-linux*): Likewise.
13378 (xtensa*-*-elf, xtensa*-*-linux, xtensa*-*-uclinux): Likewise.
13379 (m32c-*-elf*, m32c-*-rtems*): Likewise.
13380 * config/cris/cris.h (DBX_NO_XREFS): Remove.
13381 (DBX_CONTIN_LENGTH, DBX_CONTIN_CHAR): Likewise.
13382 * config/m32r/m32r.h (DBXOUT_SOURCE_LINE): Likewise.
13383 (DBX_DEBUGGING_INFO, DBX_CONTIN_LENGTH): Likewise.
13384 * config/mn10300/mn10300.h (DEFAULT_GDB_EXTENSIONS): Likewise.
13385 * config/mn10300/linux.h (DBX_REGISTER_NAMES): Likewise.
13387 2021-08-31 Marcel Vollweiler <marcel@codesourcery.com>
13389 * gimplify.c (gimplify_scan_omp_clauses): Error handling. 'ancestor' only
13390 allowed on target constructs and only with particular other clauses.
13391 * omp-expand.c (expand_omp_target): Output of 'sorry, not supported' if
13392 'ancestor' is used.
13393 * omp-low.c (check_omp_nesting_restrictions): Error handling. No nested OpenMP
13394 structs when 'ancestor' is used.
13395 (scan_omp_1_stmt): No usage of OpenMP runtime routines in a target region when
13396 'ancestor' is used.
13397 * tree-pretty-print.c (dump_omp_clause): Append 'ancestor'.
13398 * tree.h (OMP_CLAUSE_DEVICE_ANCESTOR): Define macro.
13400 2021-08-31 Roger Sayle <roger@nextmovesoftware.com>
13402 * expr.c (convert_modes): Preserve SUBREG_PROMOTED_VAR_P when
13403 creating a (wider) partial subreg from a SUBREG_PROMOTED_VAR_P
13405 * simplify-rtx.c (simplify_unary_operation_1) [SIGN_EXTEND]:
13406 Likewise, preserve SUBREG_PROMOTED_VAR_P when creating a (wider)
13407 partial subreg from a SUBREG_PROMOTED_VAR_P subreg. Generate
13408 SIGN_EXTEND of the SUBREG_REG when a subreg would be paradoxical.
13409 [ZERO_EXTEND]: Likewise, preserve SUBREG_PROMOTED_VAR_P when
13410 creating a (wider) partial subreg from a SUBREG_PROMOTED_VAR_P
13411 subreg. Generate ZERO_EXTEND of the SUBREG_REG when a subreg
13412 would be paradoxical.
13414 2021-08-31 Roger Sayle <roger@nextmovesoftware.com>
13416 * combine.c (combine_simplify_rtx): Avoid converting an explicit
13417 TRUNCATE into a lowpart SUBREG on !TRULY_NOOP_TRUNCATION targets.
13418 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
13420 2021-08-31 Richard Biener <rguenther@suse.de>
13422 PR tree-optimization/102142
13423 * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Fix
13424 condition under which to unset the visited flag.
13426 2021-08-31 Richard Biener <rguenther@suse.de>
13428 PR middle-end/102129
13429 * tree-ssa-ter.c (find_replaceable_in_bb): Do not move
13430 possibly trapping expressions across calls.
13432 2021-08-31 Jakub Jelinek <jakub@redhat.com>
13434 PR tree-optimization/102134
13435 * tree-ssa-ccp.c (bit_value_binop) <case RSHIFT_EXPR>: If sgn is
13436 UNSIGNED and r1val | r1mask has MSB set, ensure lzcount doesn't
13439 2021-08-31 Andrew Pinski <apinski@marvell.com>
13442 * collect-utils.c (setup_signals): New declaration.
13443 * collect-utils.h (setup_signals): New function.
13444 * collect2.c (handler): Delete.
13445 (main): Instead of manually setting up the signals,
13446 just call setup_signals.
13447 * lto-wrapper.c (main): Likewise.
13449 2021-08-31 Andrew Pinski <apinski@marvell.com>
13452 * config/i386/i386-protos.h (x86_output_aligned_bss):
13453 Change align argument to unsigned type.
13454 (x86_elf_aligned_decl_common): Likewise.
13455 * config/i386/i386.c (x86_elf_aligned_decl_common): Likewise.
13456 (x86_output_aligned_bss): Likewise.
13458 2021-08-31 YunQiang Su <yunqiang.su@cipunited.com>
13460 * config/mips/mips.c (mips_module_isa_name): New.
13461 mips_file_start: add .module mipsREV to all asm output
13463 2021-08-31 YunQiang Su <yunqiang.su@cipunited.com>
13465 * config/mips/mips.h (struct mips_cpu_info): define enum mips_isa;
13466 use enum instead of int for 'isa' member.
13467 * config.gcc, config/mips/mips.c, config/mips/mips-cpus.def,
13468 config/mips/netbsd.h: replace hardcoded numbers with enum.
13470 2021-08-31 liuhongt <hongtao.liu@intel.com>
13472 * config/i386/sse.md (*<avx512>_ucmp<mode>3_1): Change from
13473 define_split to define_insn_and_split.
13474 (*avx2_eq<mode>3): Removed.
13475 (<avx512>_eq<mode>3<mask_scalar_merge_name>): Adjust pattern
13476 (<avx512>_eq<mode>3<mask_scalar_merge_name>_1): Rename to ..
13477 (*<avx512>_eq<mode>3<mask_scalar_merge_name>_1): .. this, and
13479 (*avx2_gt<mode>3): Removed.
13480 (<avx512>_gt<mode>3<mask_scalar_merge_name>): Change from
13481 define_insn to define_expand, and adjust pattern.
13482 (UNSPEC_MASKED_EQ, UNSPEC_MASKED_GT): Removed.
13484 2021-08-30 David Malcolm <dmalcolm@redhat.com>
13487 * Makefile.in (ANALYZER_OBJS): Add analyzer/call-info.o.
13489 2021-08-30 Jason Merrill <jason@redhat.com>
13491 * doc/invoke.texi: Document -Wmissing-requires.
13493 2021-08-30 Bill Schmidt <wschmidt@linux.ibm.com>
13495 * config/rs6000/rs6000-call.c (rs6000_init_builtins): Remove
13496 TARGET_EXTRA_BUILTINS guard.
13498 2021-08-30 Bill Schmidt <wschmidt@linux.ibm.com>
13500 * config/rs6000/rs6000-call.c (rs6000_init_builtins): Change
13501 initialization of V2DI_type_node and unsigned_V2DI_type_node.
13503 2021-08-30 Bill Schmidt <wschmidt@linux.ibm.com>
13505 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Use the new
13506 decl when new_builtins_are_live.
13507 * config/rs6000/rs6000-builtin-new.def (__builtin_cfstring): New
13510 2021-08-30 Pat Haugen <pthaugen@linux.ibm.com>
13512 * config/rs6000/rs6000-cpus.def (ISA_3_1_MASKS_SERVER): Add
13513 OPTION_MASK_P10_FUSION_2STORE.
13514 (POWERPC_MASKS): Likewise.
13515 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
13516 store fusion for Power10.
13517 (is_fusable_store): New.
13518 (power10_sched_reorder): Likewise.
13519 (rs6000_sched_reorder): Do Power10 specific reordering.
13520 (rs6000_sched_reorder2): Likewise.
13521 * config/rs6000/rs6000.opt: Add new option.
13523 2021-08-30 Richard Biener <rguenther@suse.de>
13525 PR tree-optimization/102128
13526 * tree-vect-slp.c (vect_bb_vectorization_profitable_p):
13527 Move scanning for if-converted scalar code to the caller
13528 and instead delay clearing the visited flag for profitable
13530 (vect_slp_region): Cost all subgraphs before scheduling.
13531 For if-converted BB vectorization scan for scalar COND_EXPRs
13532 and do not vectorize if any found and the cost model is
13535 2021-08-30 Richard Biener <rguenther@suse.de>
13537 * common.opt (fexceptions): Mark
13538 EnabledBy(fnon-call-exceptions).
13539 * doc/invoke.texi (fnon-call-exceptions): Document this
13540 enables -fexceptions.
13542 2021-08-30 Sebastian Huber <sebastian.huber@embedded-brains.de>
13544 * tsystem.h (abort): Define abort() if inhibit_libc is defined and it
13545 is not already defined.
13547 2021-08-30 liuhongt <hongtao.liu@intel.com>
13549 * expmed.c (extract_bit_field_1): Make sure we're playing with
13550 integral modes before call extract_integral_bit_field.
13551 (extract_integral_bit_field): Add a parameter of type
13552 scalar_int_mode which corresponds to of tmode.
13553 And call extract_and_convert_fixed_bit_field instead of
13554 extract_fixed_bit_field and convert_extracted_bit_field.
13555 (extract_and_convert_fixed_bit_field): New function, it's a
13556 combination of extract_fixed_bit_field and
13557 convert_extracted_bit_field.
13559 2021-08-29 Iain Sandoe <iain@sandoe.co.uk>
13561 * config/darwin.c (darwin_libc_has_function): Do not run
13562 the checks for x86 or modern Darwin. Make sure that there
13563 is a value set for darwin_macosx_version_min before testing.
13565 2021-08-29 Iain Sandoe <iain@sandoe.co.uk>
13567 * config/i386/darwin.h (CLEAR_INSN_CACHE): New.
13569 2021-08-28 Jan Hubicka <hubicka@ucw.cz>
13571 * ipa-modref-tree.h (modref_access_node::merge): Break out
13572 logic combining offsets and logic merging ranges to ...
13573 (modref_access_node::combined_offsets): ... here
13574 (modref_access_node::update2): ... here
13575 (modref_access_node::closer_pair_p): New member function.
13576 (modref_access_node::forced_merge): New member function.
13577 (modre_ref_node::insert): Do merging when table is full.
13579 2021-08-28 YunQiang Su <yunqiang.su@cipunited.com>
13582 * config.gcc: MIPS: use N64 ABI by default if the triple end
13583 with -gnuabi64, which is used by Debian since 2013.
13585 2021-08-28 Alexandre Oliva <oliva@adacore.com>
13587 * ipa-modref.c (analyze_function): Skip debug stmts.
13588 * tree-inline.c (estimate_num_insn): Consider builtins even
13589 without a cgraph_node.
13591 2021-08-27 Jeff Law <jlaw@localhost.localdomain>
13593 * config/h8300/bitfield.md (cstore<mode>4): Remove expander.
13594 * config/h8300/h8300.c (h8300_expand_branch): Remove function.
13595 * config/h8300/h8300-protos.h (h8300_expadn_branch): Remove prototype.
13596 * config/h8300/h8300.md (eqne): New code iterator.
13597 (geultu, geultu_to_c): Similarly.
13598 * config/h8300/testcompare.md (cstore<mode>4): Dummy expander.
13599 (store_c_<mode>, store_c_i_<mode>): New define_insn_and_splits
13600 (cmp<mode>_c): New pattern
13602 2021-08-27 Jeff Law <jlaw@localhost.localdomain>
13604 * tree-ssa-dom.c (reduce_vector_comparison_to_scalar_comparison): New
13606 (dom_opt_dom_walker::optimize_stmt): Use it.
13608 2021-08-27 Iain Sandoe <iain@sandoe.co.uk>
13610 * config/darwin.c (finalize_ctors): Add a section-start linker-
13612 (finalize_dtors): Likewise.
13613 * config/darwin.h (MIN_LD64_INIT_TERM_START_LABELS): New.
13615 2021-08-27 Bill Schmidt <wschmidt@linux.ibm.com>
13617 * config/rs6000/rs6000-call.c (rs6000-builtins.h): New #include.
13618 (rs6000_init_builtins): Call rs6000_init_generated_builtins. Skip the
13619 old initialization logic when new builtins are enabled.
13620 * config/rs6000/rs6000-gen-builtins.c (write_decls): Rename
13621 rs6000_autoinit_builtins to rs6000_init_generated_builtins.
13622 (write_init_file): Likewise.
13624 2021-08-27 Iain Sandoe <iain@sandoe.co.uk>
13626 * configure.ac (darwin2[[0-9]]* | darwin19*): Alter use of
13627 gcc_GAS_CHECK_FEATURE to remove an extraneous parameter.
13628 (amdgcn-* | gcn-*) Likewise.
13630 2021-08-27 Anthony Sharp <anthonysharp15@gmail.com>
13632 * symbol-summary.h: Added missing template keyword.
13634 2021-08-27 Richard Biener <rguenther@suse.de>
13636 PR tree-optimization/45178
13637 * tree-ssa-dce.c (find_obviously_necessary_stmts): For
13638 infinite loops without exit do not mark control dependent
13639 edges of the latch necessary.
13641 2021-08-27 konglin1 <lingling.kong@intel.com>
13644 * config/i386/sse.md: (<avx512>scattersi<mode>): Add mask operand to
13646 (<avx512>scattersi<mode>): Likewise.
13647 (*avx512f_scattersi<VI48F:mode>): Merge mask operand to set_dest.
13648 (*avx512f_scatterdi<VI48F:mode>): Likewise
13650 2021-08-27 Kewen Lin <linkw@linux.ibm.com>
13652 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function): Add
13653 support for built-in functions MISC_BUILTIN_DIVWE, MISC_BUILTIN_DIVWEU,
13654 MISC_BUILTIN_DIVDE, MISC_BUILTIN_DIVDEU, P10_BUILTIN_CFUGED,
13655 P10_BUILTIN_CNTLZDM, P10_BUILTIN_CNTTZDM, P10_BUILTIN_PDEPD and
13656 P10_BUILTIN_PEXTD on Power10.
13658 2021-08-27 Kewen Lin <linkw@linux.ibm.com>
13660 * config/rs6000/rs6000-call.c (builtin_function_type): Add unsigned
13661 signedness for some Power10 bifs.
13663 2021-08-27 David Edelsohn <dje.gcc@gmail.com>
13666 * config/rs6000/rs6000.c (rs6000_adjust_field_align): Use
13667 computed alignment if the entire struct has attribute packed.
13669 2021-08-27 liuhongt <hongtao.liu@intel.com>
13673 * config/i386/i386.c (ix86_gimple_fold_builtin): Fold
13674 IX86_BUILTIN_SHUFPD512, IX86_BUILTIN_SHUFPS512,
13675 IX86_BUILTIN_SHUFPD256, IX86_BUILTIN_SHUFPS,
13676 IX86_BUILTIN_SHUFPS256.
13677 (ix86_masked_all_ones): New function.
13679 2021-08-26 Uroš Bizjak <ubizjak@gmail.com>
13681 * config/i386/i386.md (*btr<mode>_1): Call force_reg unconditionally.
13682 (conditional moves with memory inputs splitters): Ditto.
13683 * config/i386/sse.md (one_cmpl<mode>2): Simplify.
13685 2021-08-26 Jan Hubicka <hubicka@ucw.cz>
13687 * ipa-modref-tree.h (modref_access_node::try_merge_with): Restart
13688 search after merging.
13690 2021-08-26 Bill Schmidt <wschmidt@linux.ibm.com>
13692 * config/rs6000/rs6000-overload.def: Add remaining overloads.
13694 2021-08-26 Bill Schmidt <wschmidt@linux.ibm.com>
13696 * config/rs6000/rs6000-builtin-new.def: Add cell stanza.
13698 2021-08-26 Bill Schmidt <wschmidt@linux.ibm.com>
13700 * config/rs6000/rs6000-builtin-new.def: Add ieee128-hw, dfp,
13701 crypto, and htm stanzas.
13703 2021-08-26 Bill Schmidt <wschmidt@linux.ibm.com>
13705 * config/rs6000/rs6000-builtin-new.def: Add mma stanza.
13707 2021-08-26 Martin Sebor <msebor@redhat.com>
13709 * tree-ssa-uninit.c (warn_uninit): Refactor and simplify.
13710 (warn_uninit_phi_uses): Remove argument from calls to warn_uninit.
13711 (warn_uninitialized_vars): Same. Reduce visibility of locals.
13712 (warn_uninitialized_phi): Same.
13714 2021-08-26 Roger Sayle <roger@nextmovesoftware.com>
13716 * tree-ssa-ccp.c (get_individual_bits): Helper function to
13717 extract the individual bits from a widest_int constant (mask).
13718 (gray_code_bit_flips): New read-only table for effiently
13719 enumerating permutations/combinations of bits.
13720 (bit_value_binop) [LROTATE_EXPR, RROTATE_EXPR]: Handle rotates
13721 by unknown counts that are guaranteed less than the target
13722 precision and four or fewer unknown bits by enumeration.
13723 [LSHIFT_EXPR, RSHIFT_EXPR]: Likewise, also handle shifts by
13724 enumeration under the same conditions. Handle remaining
13725 shifts as a mask based upon the minimum possible shift value.
13727 2021-08-26 Roger Sayle <roger@nextmovesoftware.com>
13728 Richard Biener <rguenther@suse.de>
13730 * match.pd (shift transformations): Remove a redundant
13731 !POINTER_TYPE_P check.
13733 2021-08-26 Uroš Bizjak <ubizjak@gmail.com>
13736 * config/i386/i386.md (cmove reg-reg move elimination peephole2s):
13737 Set all_regs to true in the call to replace_rtx.
13739 2021-08-26 Jan Hubicka <hubicka@ucw.cz>
13741 * ipa-modref-tree.c (test_insert_search_collapse): Update test.
13742 * ipa-modref-tree.h (modref_base_node::insert): Be smarter when
13743 hiting --param modref-max-refs limit.
13744 (modref_tree:insert_base): Be smarter when hitting
13745 --param modref-max-bases limit. Add new parameter REF.
13746 (modref_tree:insert): Update.
13747 (modref_tree:merge): Update.
13748 * ipa-modref.c (read_modref_records): Update.
13750 2021-08-26 Jan Hubicka <hubicka@ucw.cz>
13752 * params.opt: (modref-max-adjustments): Add full stop.
13754 2021-08-26 Jan Hubicka <hubicka@ucw.cz>
13756 * ipa-modref-tree.h (modref_ref_node::verify): New member
13758 (modref_ref_node::insert): Use it.
13759 (modref_ref_node::try_mere_with): Fix off by one error.
13761 2021-08-26 Martin Liska <mliska@suse.cz>
13762 Stefan Kneifel <stefan.kneifel@bluewin.ch>
13764 * cgraph.h (create_version_clone_with_body): Add new parameter.
13765 * cgraphclones.c: Likewise.
13766 * multiple_target.c (create_dispatcher_calls): Do not use
13768 (create_target_clone): Likewise here.
13770 2021-08-26 Jonathan Yong <10walls@gmail.com>
13772 * doc/extend.texi: Add note about reserved priorities
13773 to the constructor attribute.
13775 2021-08-25 Martin Sebor <msebor@redhat.com>
13777 * gimple-range-cache.cc (ssa_global_cache::dump): Avoid printing
13778 range table header alone.
13779 * gimple-range.cc (gimple_ranger::export_global_ranges): Same.
13781 2021-08-25 Jan Hubicka <hubicka@ucw.cz>
13783 * doc/invoke.texi: Document --param modref-max-adjustments.
13784 * ipa-modref-tree.c (test_insert_search_collapse): Update.
13785 (test_merge): Update.
13786 * ipa-modref-tree.h (struct modref_access_node): Add adjustments;
13787 (modref_access_node::operator==): Fix handling of access ranges.
13788 (modref_access_node::contains): Constify parameter; handle also
13789 mismatched parm offsets.
13790 (modref_access_node::update): New function.
13791 (modref_access_node::merge): New function.
13792 (unspecified_modref_access_node): Update constructor.
13793 (modref_ref_node::insert_access): Add record_adjustments parameter;
13795 (modref_ref_node::try_merge_with): New private function.
13796 (modref_tree::insert): New record_adjustments parameter.
13797 (modref_tree::merge): New record_adjustments parameter.
13798 (modref_tree::copy_from): Update.
13799 * ipa-modref.c (dump_access): Dump adjustments field.
13800 (get_access): Update constructor.
13801 (record_access): Update call of insert.
13802 (record_access_lto): Update call of insert.
13803 (merge_call_side_effects): Add record_adjustments parameter.
13804 (get_access_for_fnspec): Update.
13805 (process_fnspec): Update.
13806 (analyze_call): Update.
13807 (analyze_function): Update.
13808 (read_modref_records): Update.
13809 (ipa_merge_modref_summary_after_inlining): Update.
13810 (propagate_unknown_call): Update.
13811 (modref_propagate_in_scc): Update.
13812 * params.opt (param-max-modref-adjustments=): New.
13814 2021-08-25 Michael Meissner <meissner@linux.ibm.com>
13816 * config/rs6000/vsx.md (UNSPEC_XXSPLTIDP): Rename from
13818 (xxspltiw_v4si): Use vecperm type attribute.
13819 (xxspltiw_v4si_inst): Use vecperm type attribute.
13820 (xxspltiw_v4sf_inst): Likewise.
13821 (xxspltidp_v2df): Use vecperm type attribute. Use
13822 UNSPEC_XXSPLTIDP instead of UNSPEC_XXSPLTID.
13823 (xxspltidp_v2df_inst): Likewise.
13824 (xxsplti32dx_v4si): Use vecperm type attribute.
13825 (xxsplti32dx_v4si_inst): Likewise.
13826 (xxsplti32dx_v4sf_inst): Likewise.
13827 (xxblend_<mode>): Likewise.
13828 (xxpermx): Likewise.
13829 (xxpermx_inst): Likewise.
13830 (xxeval): Likewise.
13832 2021-08-25 Lewis Hyatt <lhyatt@gmail.com>
13835 * coretypes.h (typedef diagnostic_input_charset_callback): Declare.
13836 * diagnostic.c (diagnostic_initialize_input_context): New function.
13837 * diagnostic.h (diagnostic_initialize_input_context): Declare.
13838 * input.c (default_charset_callback): New function.
13839 (file_cache::initialize_input_context): New function.
13840 (file_cache_slot::create): Added ability to convert the input
13841 according to the input context.
13842 (file_cache::file_cache): Initialize the new input context.
13843 (class file_cache_slot): Added new m_alloc_offset member.
13844 (file_cache_slot::file_cache_slot): Initialize the new member.
13845 (file_cache_slot::~file_cache_slot): Handle potentially offset buffer.
13846 (file_cache_slot::maybe_grow): Likewise.
13847 (file_cache_slot::needs_read_p): Handle NULL fp, which is now possible.
13848 (file_cache_slot::get_next_line): Likewise.
13849 * input.h (class file_cache): Added input context member.
13851 2021-08-25 Richard Biener <rguenther@suse.de>
13853 PR tree-optimization/102046
13854 * tree-vect-slp.c (vect_build_slp_tree_2): Conservatively
13855 update ->any_pattern when swapping operands.
13857 2021-08-25 Hongyu Wang <hongyu.wang@intel.com>
13860 * config/i386/i386.c (ix86_live_on_entry): Adjust comment.
13861 (ix86_decompose_address): Remove retval check for ASHIFT,
13862 allow non-canonical zero extend if AND mask covers ASHIFT
13864 (ix86_legitimate_address_p): Adjust condition for decompose.
13865 (ix86_rtx_costs): Adjust cost for lea with non-canonical
13867 Co-Authored by: Uros Bizjak <ubizjak@gmail.com>
13869 2021-08-25 Jiufu Guo <guojiufu@linux.ibm.com>
13871 PR tree-optimization/101145
13872 * tree-ssa-loop-niter.c (number_of_iterations_until_wrap):
13874 (number_of_iterations_lt): Invoke above function.
13875 (adjust_cond_for_loop_until_wrap):
13876 Merge to number_of_iterations_until_wrap.
13877 (number_of_iterations_cond): Update invokes for
13878 adjust_cond_for_loop_until_wrap and number_of_iterations_lt.
13880 2021-08-25 konglin1 <lingling.kong@intel.com>
13883 * config/i386/avx512dqintrin.h (_mm512_fpclass_ps_mask): Fix
13884 macro define in O0.
13885 (_mm512_mask_fpclass_ps_mask): Ditto.
13887 2021-08-25 Kewen Lin <linkw@linux.ibm.com>
13889 * config/rs6000/altivec.md (vec_unpacku_hi_v16qi): Remove.
13890 (vec_unpacku_hi_v8hi): Likewise.
13891 (vec_unpacku_lo_v16qi): Likewise.
13892 (vec_unpacku_lo_v8hi): Likewise.
13893 (vec_unpacku_hi_<VP_small_lc>): New define_expand.
13894 (vec_unpacku_lo_<VP_small_lc>): Likewise.
13896 2021-08-24 David Edelsohn <dje.gcc@gmail.com>
13898 * config/rs6000/aix.h (SYSTEM_IMPLICIT_EXTERN_C): Delete.
13899 * config/rs6000/aix71.h (SYSTEM_IMPLICIT_EXTERN_C): Define.
13900 * config/rs6000/aix72.h (SYSTEM_IMPLICIT_EXTERN_C): Define.
13901 * config/rs6000/aix73.h (TARGET_AIX_VERSION): Increase to 73.
13903 2021-08-24 Roger Sayle <roger@nextmovesoftware.com>
13905 PR middle-end/102031
13906 * simplify-rtx.c (simplify_truncation): When comparing precisions
13907 use "subreg_prec" variable, not "subreg_mode".
13909 2021-08-24 Bill Schmidt <wschmidt@linux.ibm.com>
13911 * config/rs6000/rs6000-builtin-new.def: Add power10 and power10-64
13914 2021-08-24 Bill Schmidt <wschmidt@linux.ibm.com>
13916 * config/rs6000/rs6000-call.c (rs6000_init_builtins): Initialize
13917 various pointer type nodes.
13918 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add enum
13919 values for various pointer types.
13920 (ptr_V16QI_type_node): New macro.
13921 (ptr_V1TI_type_node): New macro.
13922 (ptr_V2DI_type_node): New macro.
13923 (ptr_V2DF_type_node): New macro.
13924 (ptr_V4SI_type_node): New macro.
13925 (ptr_V4SF_type_node): New macro.
13926 (ptr_V8HI_type_node): New macro.
13927 (ptr_unsigned_V16QI_type_node): New macro.
13928 (ptr_unsigned_V1TI_type_node): New macro.
13929 (ptr_unsigned_V8HI_type_node): New macro.
13930 (ptr_unsigned_V4SI_type_node): New macro.
13931 (ptr_unsigned_V2DI_type_node): New macro.
13932 (ptr_bool_V16QI_type_node): New macro.
13933 (ptr_bool_V8HI_type_node): New macro.
13934 (ptr_bool_V4SI_type_node): New macro.
13935 (ptr_bool_V2DI_type_node): New macro.
13936 (ptr_bool_V1TI_type_node): New macro.
13937 (ptr_pixel_type_node): New macro.
13938 (ptr_intQI_type_node): New macro.
13939 (ptr_uintQI_type_node): New macro.
13940 (ptr_intHI_type_node): New macro.
13941 (ptr_uintHI_type_node): New macro.
13942 (ptr_intSI_type_node): New macro.
13943 (ptr_uintSI_type_node): New macro.
13944 (ptr_intDI_type_node): New macro.
13945 (ptr_uintDI_type_node): New macro.
13946 (ptr_intTI_type_node): New macro.
13947 (ptr_uintTI_type_node): New macro.
13948 (ptr_long_integer_type_node): New macro.
13949 (ptr_long_unsigned_type_node): New macro.
13950 (ptr_float_type_node): New macro.
13951 (ptr_double_type_node): New macro.
13952 (ptr_long_double_type_node): New macro.
13953 (ptr_dfloat64_type_node): New macro.
13954 (ptr_dfloat128_type_node): New macro.
13955 (ptr_ieee128_type_node): New macro.
13956 (ptr_ibm128_type_node): New macro.
13957 (ptr_vector_pair_type_node): New macro.
13958 (ptr_vector_quad_type_node): New macro.
13959 (ptr_long_long_integer_type_node): New macro.
13960 (ptr_long_long_unsigned_type_node): New macro.
13962 2021-08-24 Bill Schmidt <wschmidt@linux.ibm.com>
13964 * config/rs6000/rs6000-builtin-new.def: Add power9-vector, power9,
13965 and power9-64 stanzas.
13967 2021-08-24 Roger Sayle <roger@nextmovesoftware.com>
13968 Tom de Vries <tdevries@suse.de>
13970 * config.gcc (nvptx-*-*): Define {c,c++}_target_objs.
13971 * config/nvptx/nvptx-protos.h (nvptx_cpu_cpp_builtins): Prototype.
13972 * config/nvptx/nvptx.h (TARGET_CPU_CPP_BUILTINS): Implement with
13973 a call to the new nvptx_cpu_cpp_builtins function in nvptx-c.c.
13974 * config/nvptx/t-nvptx (nvptx-c.o): New rule.
13975 * config/nvptx/nvptx-c.c: New source file.
13976 (nvptx_cpu_cpp_builtins): Move implementation here.
13978 2021-08-24 Martin Sebor <msebor@redhat.com>
13980 PR middle-end/101600
13981 PR middle-end/101977
13982 * gimple-ssa-warn-access.cc (maybe_warn_for_bound): Tighten up
13983 the phrasing of a warning.
13984 (check_access): Use the remaining size after subtracting any offset
13985 rather than the whole object size.
13986 * pointer-query.cc (access_ref::get_ref): Clear BASE0 flag if it's
13987 clear for any nonnull PHI argument.
13988 (compute_objsize): Clear argument.
13990 2021-08-24 Bill Schmidt <wschmidt@linux.ibm.com>
13992 * config/rs6000/rs6000-builtin-new.def: Add power8-vector stanza.
13994 2021-08-24 Bill Schmidt <wschmidt@linux.ibm.com>
13996 * config/rs6000/rs6000-builtin-new.def: Add power7 and power7-64
13999 2021-08-24 Andrew MacLeod <amacleod@redhat.com>
14001 * value-relation.cc (rr_transitive_table): New.
14002 (relation_transitive): New.
14003 (value_relation::swap): Remove.
14004 (value_relation::apply_transitive): New.
14005 (relation_oracle::relation_oracle): Allocate a new tmp bitmap.
14006 (relation_oracle::register_relation): Call register_transitives.
14007 (relation_oracle::register_transitives): New.
14008 * value-relation.h (relation_oracle): Add new temporary bitmap and
14011 2021-08-24 H.J. Lu <hjl.tools@gmail.com>
14014 * config/i386/i386-expand.c (ix86_expand_vector_move): Broadcast
14015 from integer to a pseudo vector register.
14017 2021-08-24 Richard Biener <rguenther@suse.de>
14019 PR tree-optimization/100089
14020 * tree-vectorizer.h (vect_slp_bb): Rename to ...
14021 (vect_slp_if_converted_bb): ... this and get the original
14022 loop as new argument.
14023 * tree-vectorizer.c (try_vectorize_loop_1): Revert previous fix,
14024 pass original loop to vect_slp_if_converted_bb.
14025 * tree-vect-slp.c (vect_bb_vectorization_profitable_p):
14026 If orig_loop was passed scan the not vectorized stmts
14027 for COND_EXPRs and force not profitable if found.
14028 (vect_slp_region): Pass down all SLP instances to costing
14029 if orig_loop was specified.
14030 (vect_slp_bbs): Pass through orig_loop.
14031 (vect_slp_bb): Rename to ...
14032 (vect_slp_if_converted_bb): ... this and get the original
14033 loop as new argument.
14034 (vect_slp_function): Adjust.
14036 2021-08-24 Richard Earnshaw <rearnsha@arm.com>
14039 * config/arm/arm.md (attribute arch): Add fix_vlldm.
14040 (arch_enabled): Use it.
14041 * config/arm/vfp.md (lazy_store_multiple_insn): Add alternative to
14042 use when erratum mitigation is needed.
14044 2021-08-24 Richard Earnshaw <rearnsha@arm.com>
14047 * config/arm/arm.opt (mfix-cmse-cve-2021-35465): New option.
14048 * doc/invoke.texi (Arm Options): Document it.
14049 * config/arm/arm-cpus.in (quirk_vlldm): New feature bit.
14050 (ALL_QUIRKS): Add quirk_vlldm.
14051 (cortex-m33): Add quirk_vlldm.
14052 (cortex-m35p, cortex-m55): Likewise.
14053 * config/arm/arm.c (arm_option_override): Enable fix_vlldm if
14054 targetting an affected CPU and not explicitly controlled on
14057 2021-08-24 Richard Earnshaw <rearnsha@arm.com>
14059 * config/arm/vfp.md (lazy_store_multiple_insn): Rewrite as valid RTL.
14060 (lazy_load_multiple_insn): Likewise.
14062 2021-08-24 liuhongt <hongtao.liu@intel.com>
14065 * config/i386/sse.md (<avx512>_vternlog<mode><sd_maskz_name>):
14066 Enable avx512 embedded broadcast.
14067 (*<avx512>_vternlog<mode>_all): Ditto.
14068 (<avx512>_vternlog<mode>_mask): Ditto.
14070 2021-08-24 liuhongt <hongtao.liu@intel.com>
14073 * config/i386/i386.c (ix86_rtx_costs): Define cost for
14075 * config/i386/i386.h (STRIP_UNARY): New macro.
14076 * config/i386/predicates.md (reg_or_notreg_operand): New
14078 * config/i386/sse.md (*<avx512>_vternlog<mode>_all): New define_insn.
14079 (*<avx512>_vternlog<mode>_1): New pre_reload
14080 define_insn_and_split.
14081 (*<avx512>_vternlog<mode>_2): Ditto.
14082 (*<avx512>_vternlog<mode>_3): Ditto.
14083 (any_logic1,any_logic2): New code iterator.
14084 (logic_op): New code attribute.
14085 (ternlogsuffix): Extend to VNxDF and VNxSF.
14087 2021-08-24 Richard Biener <rguenther@suse.de>
14089 * doc/invoke.texi (vect-inner-loop-cost-factor): Adjust.
14090 * params.opt (--param vect-inner-loop-cost-factor): Adjust
14092 * tree-vect-loop.c (vect_analyze_loop_form): Initialize
14093 inner_loop_cost_factor to the minimum of the estimated number
14094 of iterations of the inner loop and vect-inner-loop-cost-factor.
14096 2021-08-24 Roger Sayle <roger@nextmovesoftware.com>
14097 Richard Biener <rguenther@suse.de>
14099 * config/i386/i386-features.c (compute_convert_gain): Provide
14100 more accurate values for CONST_INT, when optimizing for size.
14101 * config/i386/i386.c (COSTS_N_BYTES): Move definition from here...
14102 * config/i386/i386.h (COSTS_N_BYTES): to here.
14104 2021-08-24 Roger Sayle <roger@nextmovesoftware.com>
14105 Jakub Jelinek <jakub@redhat.com>
14107 PR middle-end/102029
14108 * match.pd (shift transformations): Add an additional check for
14109 !POINTER_TYPE_P in the recently added left shift transformation.
14111 2021-08-24 liuhongt <hongtao.liu@intel.com>
14113 PR tree-optimization/100089
14114 * tree-vectorizer.c (try_vectorize_loop_1): Disable slp in
14115 loop vectorizer when cost model is very-cheap.
14117 2021-08-23 Bill Schmidt <wschmidt@linux.ibm.com>
14119 * config/rs6000/rs6000-gen-builtins.c (parse_bif_entry): Don't call
14120 asprintf, which is not available on AIX.
14122 2021-08-23 Bill Schmidt <wschmidt@linux.ibm.com>
14124 * config.gcc (target_gtfiles): Add ./rs6000-builtins.h.
14125 * config/rs6000/t-rs6000 (EXTRA_GTYPE_DEPS): Set.
14127 2021-08-23 Bill Schmidt <wschmidt@linux.ibm.com>
14129 * config.gcc (powerpc*-*-*): Add rs6000-builtins.o to extra_objs.
14130 * config/rs6000/rs6000-gen-builtins.c (main): Close init_file
14132 * config/rs6000/t-rs6000 (rs6000-gen-builtins.o): New target.
14133 (rbtree.o): Likewise.
14134 (rs6000-gen-builtins): Likewise.
14135 (rs6000-builtins.c): Likewise.
14136 (rs6000-builtins.h): Likewise.
14137 (rs6000.o): Add dependency.
14138 (EXTRA_HEADERS): Add rs6000-vecdefines.h.
14139 (rs6000-vecdefines.h): New target.
14140 (rs6000-builtins.o): Likewise.
14141 (rs6000-call.o): Add rs6000-builtins.h as a dependency.
14142 (rs6000-c.o): Likewise.
14144 2021-08-23 Bill Schmidt <wschmidt@linux.ibm.com>
14147 * config/rs6000/rs6000-gen-builtins.c (consume_whitespace):
14148 Diagnose buffer overrun.
14149 (safe_inc_pos): Fix overrun detection.
14150 (match_identifier): Diagnose buffer overrun.
14151 (match_integer): Likewise.
14152 (match_to_right_bracket): Likewise.
14154 2021-08-23 Jan Hubicka <hubicka@ucw.cz>
14156 * ipa-modref-tree.h (modref_access_node::range_info_useful_p):
14157 Improve range compare.
14158 (modref_access_node::contains): New member function.
14159 (modref_access_node::search): Remove.
14160 (modref_access_node::insert): Be smarter about subaccesses.
14162 2021-08-23 Thomas Schwinge <thomas@codesourcery.com>
14164 * config/i386/i386-options.c (ix86_omp_device_kind_arch_isa)
14165 <omp_device_arch> [ACCEL_COMPILER]: Match "intel_mic".
14166 * config/i386/t-omp-device (omp-device-properties-i386) <arch>:
14169 2021-08-23 Jeff Law <jlaw@localhost.localdomain>
14171 * config/h8300/h8300-protos.h (h8300_expand_epilogue): Add new
14173 * config/h8300/jumpcall.md (call, call_value): Restrict to
14174 !SIBLING_CALL_P cases.
14175 (subcall, sibcall_value): New patterns & expanders.
14176 * config/h8300/proepi.md (epilogue): Pass new argument to
14177 h8300_expand_epilogue.
14178 (sibcall_epilogue): New expander.
14179 * config/h8300/h8300.c (h8300_expand_epilogue): Handle sibcall
14181 (h8300_ok_for_sibcall_p): New function.
14182 (TARGET_FUNCTION_OK_FOR_SIBCALL): define.
14184 2021-08-23 Roger Sayle <roger@nextmovesoftware.com>
14186 * simplify-rtx.c (simplify_unary_operation_1): [TRUNCATE]:
14187 Handle case where the operand is already the desired mode.
14189 2021-08-23 Richard Biener <rguenther@suse.de>
14192 * tree-ssa-structalias.c (ipa_pta_execute): Check in_other_partition
14193 in addition to has_gimple_body.
14195 2021-08-23 Jan Hubicka <hubicka@ucw.cz>
14197 PR middle-end/101949
14198 * ipa-modref.c (analyze_ssa_name_flags): Fix merging of
14201 2021-08-23 Martin Liska <mliska@suse.cz>
14203 * doc/invoke.texi: Put the option out of -mxl-mode-app-model
14206 2021-08-23 Richard Biener <rguenther@suse.de>
14208 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
14209 Properly scale the inner loop cost only once.
14211 2021-08-23 Roger Sayle <roger@nextmovesoftware.com>
14213 * tree-ssa-ccp.c (bit_value_binop) [TRUNC_MOD_EXPR, TRUNC_DIV_EXPR]:
14214 Provide bounds for unsigned (and signed with non-negative operands)
14215 division and modulus.
14217 2021-08-23 Roger Sayle <roger@nextmovesoftware.com>
14219 * simplify-rtx.c (simplify_truncation): Generalize simplification
14220 of (truncate:A (subreg:B X)).
14221 (simplify_unary_operation_1) [FLOAT_TRUNCATE, FLOAT_EXTEND,
14222 SIGN_EXTEND, ZERO_EXTEND]: Handle cases where the operand
14223 already has the desired machine mode.
14224 (test_scalar_int_ops): Add tests that useless extensions and
14225 truncations are optimized away.
14226 (test_scalar_int_ext_ops): New self-test function to confirm
14227 that truncations of extensions are correctly simplified.
14228 (test_scalar_int_ext_ops2): New self-test function to check
14229 truncations of truncations, extensions of extensions, and
14230 truncations of extensions.
14231 (test_scalar_ops): Call the above two functions with a
14232 representative sampling of integer machine modes.
14234 2021-08-23 Roger Sayle <roger@nextmovesoftware.com>
14236 * match.pd (shift transformations): Change the sign of an
14237 LSHIFT_EXPR if it reduces the number of explicit conversions.
14239 2021-08-23 Jakub Jelinek <jakub@redhat.com>
14241 PR tree-optimization/86723
14242 * gimple-ssa-store-merging.c (find_bswap_or_nop_finalize): Add
14243 cast64_to_32 argument, set *cast64_to_32 to false, unless n is
14244 non-memory permutation of 64-bit src which only has bytes of
14245 0 or [5..8] and n->range is 4.
14246 (find_bswap_or_nop): Add cast64_to_32 and mask arguments, adjust
14247 find_bswap_or_nop_finalize caller, support bswap with some bytes
14248 zeroed, as long as at least two bytes are not zeroed.
14249 (bswap_replace): Add mask argument and handle masking of bswap
14251 (maybe_optimize_vector_constructor): Adjust find_bswap_or_nop
14252 caller, punt if cast64_to_32 or mask is not all ones.
14253 (pass_optimize_bswap::execute): Adjust find_bswap_or_nop_finalize
14254 caller, for now punt if cast64_to_32.
14256 2021-08-23 Richard Biener <rguenther@suse.de>
14258 PR tree-optimization/79334
14259 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record
14260 a type also for COMPONENT_REFs.
14261 (vn_reference_may_trap): Check ARRAY_REF with constant index
14262 against the array domain.
14264 2021-08-23 liuhongt <hongtao.liu@intel.com>
14267 * config/i386/sse.md (*avx512f_pshufb_truncv8hiv8qi_1): Add
14268 TARGET_AVX512BW to condition.
14270 2021-08-23 Jakub Jelinek <jakub@redhat.com>
14273 * dwarf2out.c (gen_variable_die): Add DW_AT_location for global
14274 register variables already during early_dwarf if possible.
14276 2021-08-23 Christophe Lyon <christophe.lyon@foss.st.com>
14278 * config/arm/arm_mve.h: Fix __arm_vctp16q return type.
14280 2021-08-23 Christophe Lyon <christophe.lyon@foss.st.com>
14283 * config/arm/arm.opt: Fix typo.
14284 * config/arm/t-rmprofile: Fix typo.
14286 2021-08-23 Jakub Jelinek <jakub@redhat.com>
14288 * tree.h (OMP_CLAUSE_GRAINSIZE_STRICT): Define.
14289 (OMP_CLAUSE_NUM_TASKS_STRICT): Define.
14290 * tree-pretty-print.c (dump_omp_clause) <case OMP_CLAUSE_GRAINSIZE,
14291 case OMP_CLAUSE_NUM_TASKS>: Print strict: modifier.
14292 * omp-expand.c (expand_task_call): Use GOMP_TASK_FLAG_STRICT in iflags
14293 if either grainsize or num_tasks clause has the strict modifier.
14295 2021-08-23 Martin Liska <mliska@suse.cz>
14297 * dbgcnt.def (DEBUG_COUNTER): New counter.
14298 * gimple.c (gimple_call_arg_flags): Use it in IPA PTA.
14300 2021-08-23 Jan Hubicka <hubicka@ucw.cz>
14302 * ipa-modref.c (analyze_ssa_name_flags): Improve handling of return slot.
14304 2021-08-23 Xi Ruoyao <xry111@mengyan1223.wang>
14307 * config/mips/mips-protos.h (mips_msa_output_shift_immediate):
14309 * config/mips/mips.c (mips_msa_output_shift_immediate): New
14311 * config/mips/mips-msa.md (vashl<mode>3, vashr<mode>3,
14312 vlshr<mode>3): Call it.
14314 2021-08-22 Jan Hubicka <hubicka@ucw.cz>
14315 Martin Liska <mliska@suse.cz>
14317 PR middle-end/101949
14318 * ipa-modref.c (analyze_ssa_name_flags): Indirect call implies
14321 2021-08-21 Dragan Mladjenovic <OT_Dragan.Mladjenovic@mediatek.com>
14323 * config/mips/mips.c (mips_function_rodata_section,
14324 TARGET_ASM_FUNCTION_RODATA_SECTION): Removed.
14326 2021-08-21 John David Anglin <danglin@gcc.gnu.org>
14328 * config/pa/pa.c (pa_asm_output_aligned_common): Remove warning.
14330 2021-08-20 Serge Belyshev <belyshev@depni.sinp.msu.ru>
14332 * configure.ac (thread-local storage support): Remove tls_first_major
14333 and tls_first_minor. Use "$conftest_s" to check support.
14334 * configure: Regenerate.
14336 2021-08-20 Serge Belyshev <belyshev@depni.sinp.msu.ru>
14338 * configure.ac: Fixup formatting.
14340 2021-08-20 Serge Belyshev <belyshev@depni.sinp.msu.ru>
14342 * acinclude.m4 (gcc_GAS_CHECK_FEATURE): Remove third argument and ...
14343 * configure.ac: ... update all callers.
14345 2021-08-20 Serge Belyshev <belyshev@depni.sinp.msu.ru>
14348 * acinclude.m4 (_gcc_COMPUTE_GAS_VERSION, _gcc_GAS_VERSION_GTE_IFELSE)
14349 (gcc_GAS_VERSION_GTE_IFELSE): Remove.
14350 (gcc_GAS_CHECK_FEATURE): Do not handle in-tree case specially.
14351 * configure.ac: Remove gcc_cv_gas_major_version, gcc_cv_gas_minor_version.
14352 Remove remaining checks for in-tree assembler.
14353 * configure: Regenerate.
14355 2021-08-20 Jeff Law <jlaw@localhost.localdomain>
14357 * config/h8300/h8300.c (shift_alg_hi): Improve arithmetic shift right
14358 by 15 bits for H8/300H and H8/S. Improve logical shifts by 12
14360 (shift_alg_si): Improve arithmetic right shift by 28-30 bits for
14361 H8/300H. Improve arithmetic shift right by 15 bits for H8/S.
14362 Improve logical shifts by 27 bits for H8/S.
14363 (get_shift_alg): Corresponding changes.
14364 (h8300_option_override): Revert to loops for -Os when profitable.
14366 2021-08-20 Richard Biener <rguenther@suse.de>
14368 * tree-vect-data-refs.c (dr_group_sort_cmp): Do not compare
14370 (vect_analyze_data_ref_accesses): Likewise. Assign the BB
14371 index as group_id when dataref_groups were not computed.
14372 * tree-vect-slp.c (vect_slp_bbs): Bump current_group when
14373 we advace to the next BB.
14375 2021-08-20 Jakub Jelinek <jakub@redhat.com>
14377 * omp-builtins.def (BUILT_IN_GOMP_WARNING, BUILT_IN_GOMP_ERROR): New
14380 2021-08-20 Martin Liska <mliska@suse.cz>
14382 PR gcov-profile/89961
14383 * gcov.c (make_gcov_file_name): Rewrite using std::string.
14384 (mangle_name): Simplify, do not used the second argument.
14385 (strip_extention): New function.
14386 (get_md5sum): Likewise.
14387 (get_gcov_intermediate_filename): Handle properly -p and -x
14389 (output_gcov_file): Use string type.
14390 (generate_results): Likewise.
14391 (md5sum_to_hex): Remove.
14393 2021-08-20 Michael Meissner <meissner@linux.ibm.com>
14395 * config/rs6000/altivec.md (UNSPEC_XXEVAL): Move to vsx.md.
14396 (UNSPEC_XXSPLTIW): Move to vsx.md.
14397 (UNSPEC_XXSPLTID): Move to vsx.md.
14398 (UNSPEC_XXSPLTI32DX): Move to vsx.md.
14399 (UNSPEC_XXBLEND): Move to vsx.md.
14400 (UNSPEC_XXPERMX): Move to vsx.md.
14401 (VM3): Move to vsx.md.
14402 (VM3_char): Move to vsx.md.
14403 (xxspltiw_v4si): Move to vsx.md.
14404 (xxspltiw_v4sf): Move to vsx.md.
14405 (xxspltiw_v4sf_inst): Move to vsx.md.
14406 (xxspltidp_v2df): Move to vsx.md.
14407 (xxspltidp_v2df_inst): Move to vsx.md.
14408 (xxsplti32dx_v4si_inst): Move to vsx.md.
14409 (xxsplti32dx_v4sf): Move to vsx.md.
14410 (xxsplti32dx_v4sf_inst): Move to vsx.md.
14411 (xxblend_<mode>): Move to vsx.md.
14412 (xxpermx): Move to vsx.md.
14413 (xxpermx_inst): Move to vsx.md.
14414 * config/rs6000/vsx.md (UNSPEC_XXEVAL): Move from altivec.md.
14415 (UNSPEC_XXSPLTIW): Move from altivec.md.
14416 (UNSPEC_XXSPLTID): Move from altivec.md.
14417 (UNSPEC_XXSPLTI32DX): Move from altivec.md.
14418 (UNSPEC_XXBLEND): Move from altivec.md.
14419 (UNSPEC_XXPERMX): Move from altivec.md.
14420 (VM3): Move from altivec.md.
14421 (VM3_char): Move from altivec.md.
14422 (xxspltiw_v4si): Move from altivec.md.
14423 (xxspltiw_v4sf): Move from altivec.md.
14424 (xxspltiw_v4sf_inst): Move from altivec.md.
14425 (xxspltidp_v2df): Move from altivec.md.
14426 (xxspltidp_v2df_inst): Move from altivec.md.
14427 (xxsplti32dx_v4si_inst): Move from altivec.md.
14428 (xxsplti32dx_v4sf): Move from altivec.md.
14429 (xxsplti32dx_v4sf_inst): Move from altivec.md.
14430 (xxblend_<mode>): Move from altivec.md.
14431 (xxpermx): Move from altivec.md.
14432 (xxpermx_inst): Move from altivec.md.
14434 2021-08-19 Roger Sayle <roger@nextmovesoftware.com>
14436 * tree-vect-generic.c (expand_vector_operations_1): Use either
14437 gimplify_build1 or gimplify_build2 instead of gimple_build_assign
14438 when constructing scalar splat expressions.
14440 2021-08-19 Peter Bergner <bergner@linux.ibm.com>
14443 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_mma_builtin): Cast
14444 pointer to __vector_pair *.
14446 2021-08-19 Martin Sebor <msebor@redhat.com>
14448 * gimple-range.cc: Add comments.
14449 * gimple-range.h: Same.
14451 2021-08-19 Martin Sebor <msebor@redhat.com>
14453 PR middle-end/101984
14454 * gimple-ssa-warn-access.cc (pass_waccess::execute): Also call
14457 2021-08-19 Jeff Law <jlaw@localhost.localdomain>
14459 * config.gcc (h8300-*-elf*): Do not include dbxelf.h.
14460 (h8300-*-linux*, v850-*-rtems*, v850*-elf*): Likewise.
14461 * config/v850/v850.h (DEFAULT_GDB_EXTENSIONS): Remove.
14463 2021-08-19 Jakub Jelinek <jakub@redhat.com>
14465 PR middle-end/101950
14466 * optabs.c (expand_clrsb_using_clz): New function.
14467 (expand_unop): Use it as another clrsb expansion fallback.
14469 2021-08-19 liuhongt <hongtao.liu@intel.com>
14472 2021-07-28 liuhongt <hongtao.liu@intel.com>
14475 * config/i386/i386.h (processor_costs): Add new member
14477 * config/i386/x86-tune-costs.h (ix86_size_cost, i386_cost,
14478 i486_cost, pentium_cost, lakemont_cost, pentiumpro_cost,
14479 geode_cost, k6_cost, athlon_cost, k8_cost, amdfam10_cost,
14480 bdver_cost, znver1_cost, znver2_cost, znver3_cost,
14481 btver1_cost, btver2_cost, btver3_cost, pentium4_cost,
14482 nocona_cost, atom_cost, atom_cost, slm_cost, intel_cost,
14483 generic_cost, core_cost): Initialize integer_to_sse same value
14485 (skylake_cost): Initialize integer_to_sse twice as much as sse_op.
14486 * config/i386/i386.c (ix86_builtin_vectorization_cost):
14487 Use integer_to_sse instead of sse_op to calculate the cost of
14490 2021-08-18 Iain Sandoe <iain@sandoe.co.uk>
14492 * config.gcc: Include rpath.opt for Darwin.
14493 * config/darwin.h (DRIVER_SELF_SPECS): Handle -rpath.
14495 2021-08-18 Thomas Schwinge <thomas@codesourcery.com>
14497 PR bootstrap/101959
14498 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor_expand):
14501 2021-08-18 Jonathan Wright <jonathan.wright@arm.com>
14503 * config/aarch64/arm_neon.h (vld3_lane_f64): Use float RTL
14504 pattern and type cast.
14505 (vld4_lane_f32): Use float RTL pattern.
14506 (vld4q_lane_f64): Use float type cast.
14508 2021-08-18 Jan Hubicka <hubicka@ucw.cz>
14510 * tree-ssa-uninit.c (maybe_warn_pass_by_reference): Check also
14513 2021-08-18 Thomas Schwinge <thomas@codesourcery.com>
14515 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): Extend.
14516 (test_map_of_type_with_ctor_and_dtor_expand): Add function.
14517 (hash_map_tests_c_tests): Call it.
14519 2021-08-18 Thomas Schwinge <thomas@codesourcery.com>
14521 * ggc.h (enum ggc_collect): New.
14522 (ggc_collect): Use it.
14523 * ggc-page.c: Adjust.
14524 * ggc-common.c: Likewise.
14525 * ggc-tests.c: Likewise.
14526 * read-rtl-function.c: Likewise.
14527 * selftest-run-tests.c: Likewise.
14528 * doc/gty.texi (Invoking the garbage collector): Likewise.
14530 2021-08-18 liuhongt <hongtao.liu@intel.com>
14533 * config/i386/i386.h (TARGET_V2DF_REDUCTION_PREFER_HADDPD):
14535 * config/i386/sse.md (*sse3_haddv2df3_low): Add
14536 TARGET_V2DF_REDUCTION_PREFER_HADDPD.
14537 (*sse3_hsubv2df3_low): Ditto.
14538 * config/i386/x86-tune.def
14539 (X86_TUNE_V2DF_REDUCTION_PREFER_HADDPD): New tune.
14541 2021-08-17 Andrew MacLeod <amacleod@redhat.com>
14543 * gimple-range-gori.cc (gori_compute::gori_compute): Enable tracing.
14544 (gori_compute::compute_operand_range): Add tracing.
14545 (gori_compute::logical_combine): Ditto.
14546 (gori_compute::compute_logical_operands): Ditto.
14547 (gori_compute::compute_operand1_range): Ditto.
14548 (gori_compute::compute_operand2_range): Ditto.
14549 (gori_compute::outgoing_edge_range_p): Ditto.
14550 * gimple-range-gori.h (class gori_compute): Add range_tracer.
14552 2021-08-17 Andrew MacLeod <amacleod@redhat.com>
14554 * flag-types.h (enum evrp_mode): Adjust evrp-mode values.
14555 * gimple-range-cache.cc (DEBUG_RANGE_CACHE): Relocate from.
14556 * gimple-range-trace.h (DEBUG_RANGE_CACHE): Here.
14557 * params.opt (--param=evrp-mode): Adjust options.
14559 2021-08-17 Andrew MacLeod <amacleod@redhat.com>
14561 * Makefile.in (OBJS): Add gimple-range-trace.o.
14562 * gimple-range-cache.h (enable_new_values): Remove unused prototype.
14563 * gimple-range-fold.cc: Adjust headers.
14564 * gimple-range-trace.cc: New.
14565 * gimple-range-trace.h: New.
14566 * gimple-range.cc (gimple_ranger::gimple_ranger): Enable tracer.
14567 (gimple_ranger::range_of_expr): Add tracing.
14568 (gimple_ranger::range_on_entry): Ditto.
14569 (gimple_ranger::range_on_exit): Ditto.
14570 (gimple_ranger::range_on_edge): Ditto.
14571 (gimple_ranger::fold_range_internal): Ditto.
14572 (gimple_ranger::dump_bb): Do not calculate edge range twice.
14573 (trace_ranger::*): Remove.
14574 (enable_ranger): Never create a trace_ranger.
14575 (debug_seed_ranger): Move to gimple-range-trace.cc.
14576 (dump_ranger): Ditto.
14577 (debug_ranger): Ditto.
14578 * gimple-range.h: Include gimple-range-trace.h.
14579 (range_on_entry, range_on_exit): No longer virtual.
14580 (class trace_ranger): Remove.
14581 (DEBUG_RANGE_CACHE): Move to gimple-range-trace.h.
14583 2021-08-17 Martin Sebor <msebor@redhat.com>
14585 PR middle-end/101854
14586 * builtins.c (expand_builtin_alloca): Move warning code to check_alloca
14587 in gimple-ssa-warn-access.cc.
14588 * calls.c (alloc_max_size): Move code to check_alloca.
14589 (get_size_range): Move to pointer-query.cc.
14590 (maybe_warn_alloc_args_overflow): Move to gimple-ssa-warn-access.cc.
14591 (get_attr_nonstring_decl): Move to tree.c.
14592 (fntype_argno_type): Move to gimple-ssa-warn-access.cc.
14593 (append_attrname): Same.
14594 (maybe_warn_rdwr_sizes): Same.
14595 (initialize_argument_information): Move code to
14596 gimple-ssa-warn-access.cc.
14597 * calls.h (maybe_warn_alloc_args_overflow): Move to
14598 gimple-ssa-warn-access.h.
14599 (get_attr_nonstring_decl): Move to tree.h.
14600 (maybe_warn_nonstring_arg): Move to gimple-ssa-warn-access.h.
14601 (enum size_range_flags): Move to pointer-query.h.
14602 (get_size_range): Same.
14603 * gimple-ssa-warn-access.cc (has_location): Remove unused overload
14604 to avoid Clang -Wunused-function.
14605 (get_size_range): Declare static.
14606 (maybe_emit_free_warning): Rename...
14607 (maybe_check_dealloc_call): ...to this for consistency.
14608 (class pass_waccess): Add members.
14609 (pass_waccess::~pass_waccess): Defined.
14610 (alloc_max_size): Move here from calls.c.
14611 (maybe_warn_alloc_args_overflow): Same.
14612 (check_alloca): New function.
14613 (check_alloc_size_call): New function.
14614 (check_strncat): Handle another warning flag.
14615 (pass_waccess::check_builtin): Handle alloca.
14616 (fntype_argno_type): Move here from calls.c.
14617 (append_attrname): Same.
14618 (maybe_warn_rdwr_sizes): Same.
14619 (pass_waccess::check_call): Define.
14620 (check_nonstring_args): New function.
14621 (pass_waccess::check): Call new member functions.
14622 (pass_waccess::execute): Enable ranger.
14623 * gimple-ssa-warn-access.h (get_size_range): Move here from calls.h.
14624 (maybe_warn_nonstring_arg): Same.
14625 * gimple-ssa-warn-restrict.c: Remove #include.
14626 * pointer-query.cc (get_size_range): Move here from calls.c.
14627 * pointer-query.h (enum size_range_flags): Same.
14628 (get_size_range): Same.
14629 * tree.c (get_attr_nonstring_decl): Move here from calls.c.
14630 * tree.h (get_attr_nonstring_decl): Move here from calls.h.
14632 2021-08-17 Thomas Schwinge <thomas@codesourcery.com>
14634 * ggc.h (ggc_collect): Add 'force_collect' parameter.
14635 * ggc-page.c (ggc_collect): Use that one instead of global
14636 'ggc_force_collect'. Adjust all users.
14637 * doc/gty.texi (Invoking the garbage collector): Update.
14638 * ggc-internal.h (ggc_force_collect): Remove.
14639 * ggc-common.c (ggc_force_collect): Likewise.
14640 * selftest.h (forcibly_ggc_collect): Remove.
14641 * ggc-tests.c (selftest::forcibly_ggc_collect): Likewise.
14642 * read-rtl-function.c (test_loading_labels): Adjust.
14643 * selftest-run-tests.c (run_tests): Likewise.
14645 2021-08-17 Iain Sandoe <iain@sandoe.co.uk>
14647 * config/darwin.c (darwin_file_end): Reset and reclaim the
14648 section names table at the end of compile.
14650 2021-08-17 Iain Sandoe <iain@sandoe.co.uk>
14653 * config.in: Regenerate.
14654 * config/i386/darwin.h (EXTRA_ASM_OPTS): New
14655 (ASM_SPEC): Pass options to disable branch shortening where
14657 * configure: Regenerate.
14658 * configure.ac: Detect versions of 'as' that support the
14659 optimisation which has the bug.
14661 2021-08-17 Richard Biener <rguenther@suse.de>
14663 * optabs-query.c (supports_vec_gather_load_p): Also check
14665 (supports_vec_scatter_store_p): Likewise.
14666 * tree-vect-data-refs.c (vect_gather_scatter_fn_p): Fall
14667 back to masked variants if non-masked are not supported.
14668 * tree-vect-patterns.c (vect_recog_gather_scatter_pattern):
14669 When we need to use masked gather/scatter but do not have
14670 a mask set up a constant true one.
14671 * tree-vect-stmts.c (vect_check_scalar_mask): Also allow
14672 non-SSA_NAME masks.
14674 2021-08-17 Roger Sayle <roger@nextmovesoftware.com>
14676 * tree-ssa-ccp.c (bit_value_binop) [MINUS_EXPR]: Use same
14677 algorithm as PLUS_EXPR to improve subtraction bit bounds.
14678 [POINTER_DIFF_EXPR]: Treat as synonymous with MINUS_EXPR.
14680 2021-08-17 Roger Sayle <roger@nextmovesoftware.com>
14682 * tree-ssa-ccp.c (bit_value_mult_const): New helper function to
14683 calculate the mask-value pair result of a multiplication by an
14685 (bit_value_binop) [MULT_EXPR]: Call it from here for
14686 multiplications by (sparse) non-negative constants.
14688 2021-08-17 Christophe Lyon <christophe.lyon@foss.st.com>
14691 * config.gcc (gcc_cv_initfini_array): Leave undefined for
14692 uclinuxfdpiceabi targets.
14694 2021-08-17 Alexandre Oliva <oliva@adacore.com>
14696 * tree-inline.c (maybe_move_debug_stmts_to_successors): Don't
14697 reverse debug stmts.
14699 2021-08-17 Alexandre Oliva <oliva@adacore.com>
14701 * tree-cfg.c (dump_function_to_file): Use fun, not cfun.
14703 2021-08-17 Jonathan Wright <jonathan.wright@arm.com>
14705 * config/aarch64/arm_neon.h (__LD4_LANE_FUNC): Delete.
14706 (__LD4Q_LANE_FUNC): Likewise.
14707 (vld4_lane_u8): Define without macro.
14708 (vld4_lane_u16): Likewise.
14709 (vld4_lane_u32): Likewise.
14710 (vld4_lane_u64): Likewise.
14711 (vld4_lane_s8): Likewise.
14712 (vld4_lane_s16): Likewise.
14713 (vld4_lane_s32): Likewise.
14714 (vld4_lane_s64): Likewise.
14715 (vld4_lane_f16): Likewise.
14716 (vld4_lane_f32): Likewise.
14717 (vld4_lane_f64): Likewise.
14718 (vld4_lane_p8): Likewise.
14719 (vld4_lane_p16): Likewise.
14720 (vld4_lane_p64): Likewise.
14721 (vld4q_lane_u8): Likewise.
14722 (vld4q_lane_u16): Likewise.
14723 (vld4q_lane_u32): Likewise.
14724 (vld4q_lane_u64): Likewise.
14725 (vld4q_lane_s8): Likewise.
14726 (vld4q_lane_s16): Likewise.
14727 (vld4q_lane_s32): Likewise.
14728 (vld4q_lane_s64): Likewise.
14729 (vld4q_lane_f16): Likewise.
14730 (vld4q_lane_f32): Likewise.
14731 (vld4q_lane_f64): Likewise.
14732 (vld4q_lane_p8): Likewise.
14733 (vld4q_lane_p16): Likewise.
14734 (vld4q_lane_p64): Likewise.
14735 (vld4_lane_bf16): Likewise.
14736 (vld4q_lane_bf16): Likewise.
14738 2021-08-17 Jonathan Wright <jonathan.wright@arm.com>
14740 * config/aarch64/arm_neon.h (__LD3_LANE_FUNC): Delete.
14741 (__LD3Q_LANE_FUNC): Delete.
14742 (vld3_lane_u8): Define without macro.
14743 (vld3_lane_u16): Likewise.
14744 (vld3_lane_u32): Likewise.
14745 (vld3_lane_u64): Likewise.
14746 (vld3_lane_s8): Likewise.
14747 (vld3_lane_s16): Likewise.
14748 (vld3_lane_s32): Likewise.
14749 (vld3_lane_s64): Likewise.
14750 (vld3_lane_f16): Likewise.
14751 (vld3_lane_f32): Likewise.
14752 (vld3_lane_f64): Likewise.
14753 (vld3_lane_p8): Likewise.
14754 (vld3_lane_p16): Likewise.
14755 (vld3_lane_p64): Likewise.
14756 (vld3q_lane_u8): Likewise.
14757 (vld3q_lane_u16): Likewise.
14758 (vld3q_lane_u32): Likewise.
14759 (vld3q_lane_u64): Likewise.
14760 (vld3q_lane_s8): Likewise.
14761 (vld3q_lane_s16): Likewise.
14762 (vld3q_lane_s32): Likewise.
14763 (vld3q_lane_s64): Likewise.
14764 (vld3q_lane_f16): Likewise.
14765 (vld3q_lane_f32): Likewise.
14766 (vld3q_lane_f64): Likewise.
14767 (vld3q_lane_p8): Likewise.
14768 (vld3q_lane_p16): Likewise.
14769 (vld3q_lane_p64): Likewise.
14770 (vld3_lane_bf16): Likewise.
14771 (vld3q_lane_bf16): Likewise.
14773 2021-08-17 Jonathan Wright <jonathan.wright@arm.com>
14775 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Delete.
14776 (__LD2Q_LANE_FUNC): Likewise.
14777 (vld2_lane_u8): Define without macro.
14778 (vld2_lane_u16): Likewise.
14779 (vld2_lane_u32): Likewise.
14780 (vld2_lane_u64): Likewise.
14781 (vld2_lane_s8): Likewise.
14782 (vld2_lane_s16): Likewise.
14783 (vld2_lane_s32): Likewise.
14784 (vld2_lane_s64): Likewise.
14785 (vld2_lane_f16): Likewise.
14786 (vld2_lane_f32): Likewise.
14787 (vld2_lane_f64): Likewise.
14788 (vld2_lane_p8): Likewise.
14789 (vld2_lane_p16): Likewise.
14790 (vld2_lane_p64): Likewise.
14791 (vld2q_lane_u8): Likewise.
14792 (vld2q_lane_u16): Likewise.
14793 (vld2q_lane_u32): Likewise.
14794 (vld2q_lane_u64): Likewise.
14795 (vld2q_lane_s8): Likewise.
14796 (vld2q_lane_s16): Likewise.
14797 (vld2q_lane_s32): Likewise.
14798 (vld2q_lane_s64): Likewise.
14799 (vld2q_lane_f16): Likewise.
14800 (vld2q_lane_f32): Likewise.
14801 (vld2q_lane_f64): Likewise.
14802 (vld2q_lane_p8): Likewise.
14803 (vld2q_lane_p16): Likewise.
14804 (vld2q_lane_p64): Likewise.
14805 (vld2_lane_bf16): Likewise.
14806 (vld2q_lane_bf16): Likewise.
14808 2021-08-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
14810 * haifa-sched.c (advance_one_cycle): Output more context-synchronization
14813 2021-08-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
14815 * haifa-sched.c (enum rfs_decision, rfs_str): Add RFS_AUTOPREF.
14816 (rank_for_schedule): Use it.
14818 2021-08-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
14820 PR rtl-optimization/91598
14821 * haifa-sched.c (autopref_rank_for_schedule): Prioritize "irrelevant"
14822 insns after memory reads and before memory writes.
14824 2021-08-17 Alistair_Lee <alistair.lee@arm.com>
14826 * rtl.h (CONST_VECTOR_P): New macro.
14827 * config/aarch64/aarch64.c (aarch64_get_sve_pred_bits): Use RTL
14828 code testing macros.
14829 (aarch64_ptrue_all_mode): Likewise.
14830 (aarch64_expand_mov_immediate): Likewise.
14831 (aarch64_const_vec_all_in_range_p): Likewise.
14832 (aarch64_rtx_costs): Likewise.
14833 (aarch64_legitimate_constant_p): Likewise.
14834 (aarch64_simd_valid_immediate): Likewise.
14835 (aarch64_simd_make_constant): Likewise.
14836 (aarch64_convert_mult_to_shift): Likewise.
14837 (aarch64_expand_sve_vec_perm): Likewise.
14838 (aarch64_vec_fpconst_pow_of_2): Likewise.
14840 2021-08-17 Andrew MacLeod <amacleod@redhat.com>
14842 PR tree-optimization/101938
14843 * range-op.cc (operator_abs::op1_range): Special case
14844 -TYPE_MIN_VALUE for flag_wrapv.
14846 2021-08-17 Kewen Lin <linkw@linux.ibm.com>
14848 * tree-vect-slp.c (vectorizable_bb_reduc_epilogue): Add the cost for
14851 2021-08-17 Jakub Jelinek <jakub@redhat.com>
14853 * tree.def (OMP_SCOPE): New tree code.
14854 * tree.h (OMP_SCOPE_BODY, OMP_SCOPE_CLAUSES): Define.
14855 * tree-nested.c (convert_nonlocal_reference_stmt,
14856 convert_local_reference_stmt, convert_gimple_call): Handle
14858 * tree-pretty-print.c (dump_generic_node): Handle OMP_SCOPE.
14859 * gimple.def (GIMPLE_OMP_SCOPE): New gimple code.
14860 * gimple.c (gimple_build_omp_scope): New function.
14861 (gimple_copy): Handle GIMPLE_OMP_SCOPE.
14862 * gimple.h (gimple_build_omp_scope): Declare.
14863 (gimple_has_substatements): Handle GIMPLE_OMP_SCOPE.
14864 (gimple_omp_scope_clauses, gimple_omp_scope_clauses_ptr,
14865 gimple_omp_scope_set_clauses): New inline functions.
14866 (CASE_GIMPLE_OMP): Add GIMPLE_OMP_SCOPE.
14867 * gimple-pretty-print.c (dump_gimple_omp_scope): New function.
14868 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCOPE.
14869 * gimple-walk.c (walk_gimple_stmt): Likewise.
14870 * gimple-low.c (lower_stmt): Likewise.
14871 * gimplify.c (is_gimple_stmt): Handle OMP_MASTER.
14872 (gimplify_scan_omp_clauses): For task reductions, handle OMP_SCOPE
14873 like ORT_WORKSHARE constructs. Adjust diagnostics for %<scope%>
14874 allowing task reductions. Reject inscan reductions on scope.
14875 (omp_find_stores_stmt): Handle GIMPLE_OMP_SCOPE.
14876 (gimplify_omp_workshare, gimplify_expr): Handle OMP_SCOPE.
14877 * tree-inline.c (remap_gimple_stmt): Handle GIMPLE_OMP_SCOPE.
14878 (estimate_num_insns): Likewise.
14879 * omp-low.c (build_outer_var_ref): Look through GIMPLE_OMP_SCOPE
14880 contexts if var isn't privatized there.
14881 (check_omp_nesting_restrictions): Handle GIMPLE_OMP_SCOPE.
14882 (scan_omp_1_stmt): Likewise.
14883 (maybe_add_implicit_barrier_cancel): Look through outer
14885 (lower_omp_scope): New function.
14886 (lower_omp_task_reductions): Handle OMP_SCOPE.
14887 (lower_omp_1): Handle GIMPLE_OMP_SCOPE.
14888 (diagnose_sb_1, diagnose_sb_2): Likewise.
14889 * omp-expand.c (expand_omp_single): Support also GIMPLE_OMP_SCOPE.
14890 (expand_omp): Handle GIMPLE_OMP_SCOPE.
14891 (omp_make_gimple_edges): Likewise.
14892 * omp-builtins.def (BUILT_IN_GOMP_SCOPE_START): New built-in.
14894 2021-08-17 Richard Biener <rguenther@suse.de>
14896 PR tree-optimization/101925
14897 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Set
14898 reverse on COMPONENT_REF and ARRAY_REF according to
14899 what reverse_storage_order_for_component_p does.
14900 (vn_reference_eq): Compare reversed on reference ops.
14901 (reverse_storage_order_for_component_p): New overload.
14902 (vn_reference_lookup_3): Check reverse_storage_order_for_component_p
14903 on the reference looked up.
14905 2021-08-17 Jeff Law <jlaw@localhost.localdomain>
14907 * config/h8300/h8300.c (shift_alg_si): Avoid loops for most SImode
14908 shifts on the H8/S.
14909 (h8300_option_override): Use loops on H8/S more often when optimizing
14911 (get_shift_alg): Handle new "special" cases on H8/S. Simplify
14912 accordingly. Handle various arithmetic right shifts with special
14913 sequences that we couldn't handle before.
14915 2021-08-16 Jeff Law <jlaw@localhost.localdomain>
14917 * config.gcc (rl78-*-elf*): Do not include dbxelf.h.
14919 2021-08-16 Sebastian Huber <sebastian.huber@embedded-brains.de>
14921 * config/sparc/rtemself.h (SPARC_GCOV_TYPE_SIZE): Define.
14922 * config/sparc/sparc.c (sparc_gcov_type_size): New.
14923 (TARGET_GCOV_TYPE_SIZE): Redefine if SPARC_GCOV_TYPE_SIZE is defined.
14924 * coverage.c (get_gcov_type): Use targetm.gcov_type_size().
14925 * doc/tm.texi (TARGET_GCOV_TYPE_SIZE): Add hook under "Misc".
14926 * doc/tm.texi.in: Regenerate.
14927 * target.def (gcov_type_size): New target hook.
14928 * targhooks.c (default_gcov_type_size): New.
14929 * targhooks.h (default_gcov_type_size): Declare.
14930 * tree-profile.c (gimple_gen_edge_profiler): Use precision of
14932 (gimple_gen_time_profiler): Likewise.
14934 2021-08-16 Eric Botcazou <ebotcazou@gcc.gnu.org>
14936 * dwarf2out.c (add_scalar_info): Deal with DW_AT_data_bit_offset.
14938 2021-08-16 Tobias Burnus <tobias@codesourcery.com>
14940 PR middle-end/101931
14941 * omp-low.c (omp_runtime_api_call): Update for routines
14942 added in the meanwhile.
14944 2021-08-16 Martin Liska <mliska@suse.cz>
14946 PR tree-optimization/100393
14947 * tree-switch-conversion.c (group_cluster::dump): Use
14948 get_comparison_count.
14949 (jump_table_cluster::find_jump_tables): Pre-compute number of
14950 comparisons and then decrement it. Cache also max_ratio.
14951 (jump_table_cluster::can_be_handled): Change signature.
14952 * tree-switch-conversion.h (get_comparison_count): New.
14954 2021-08-16 Eric Botcazou <ebotcazou@gcc.gnu.org>
14956 * dwarf2out.c (add_data_member_location_attribute): Use GNAT
14957 encodings only when -fgnat-encodings=all is specified.
14958 (add_bound_info): Likewise.
14959 (add_byte_size_attribute): Likewise.
14960 (gen_member_die): Likewise.
14962 2021-08-16 Thomas Schwinge <thomas@codesourcery.com>
14964 * omp-oacc-neuter-broadcast.cc
14965 (execute_omp_oacc_neuter_broadcast): Plug 'par' memory leak.
14967 2021-08-16 Thomas Schwinge <thomas@codesourcery.com>
14969 * omp-oacc-neuter-broadcast.cc
14970 (execute_omp_oacc_neuter_broadcast): Clarify memory management for
14973 2021-08-16 Thomas Schwinge <thomas@codesourcery.com>
14975 * omp-oacc-neuter-broadcast.cc (field_map): Move variable into...
14976 (execute_omp_oacc_neuter_broadcast): ... here.
14977 (install_var_field, build_receiver_ref, build_sender_ref): Take
14978 'field_map_t *' parameter. Adjust all users.
14979 (worker_single_copy, neuter_worker_single): Take a
14980 'record_field_map_t *' parameter. Adjust all users.
14982 2021-08-16 liuhongt <hongtao.liu@intel.com>
14985 * config/i386/i386.md (ldexp<mode>3): Force operands[1] to
14988 2021-08-16 Martin Liska <mliska@suse.cz>
14991 * multiple_target.c (create_dispatcher_calls): Make default
14992 function local only if it is a definition.
14994 2021-08-16 Martin Liska <mliska@suse.cz>
14997 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Do not
14998 consider equal SSA_NAMEs when one is a param.
15000 2021-08-16 liuhongt <hongtao.liu@intel.com>
15003 * config/i386/i386-expand.c (ix86_expand_vec_perm_vpermt2):
15004 Support vpermi2b for V32QI/V16QImode.
15005 (ix86_extract_perm_from_pool_constant): New function.
15006 (ix86_expand_vec_one_operand_perm_avx512): Support
15007 vpermw/vpermb under TARGET_AVX512BW/TARGET_AVX512VBMI.
15008 (expand_vec_perm_1): Adjust comments for upper.
15009 * config/i386/i386-protos.h (ix86_extract_perm_from_pool_constant):
15011 * config/i386/predicates.md (permvar_truncate_operand): New predicate.
15012 (pshufb_truncv4siv4hi_operand): Ditto.
15013 (pshufb_truncv8hiv8qi_operand): Ditto.
15014 * config/i386/sse.md (*avx512bw_permvar_truncv16siv16hi_1):
15015 New pre_reload define_insn_and_split.
15016 (*avx512f_permvar_truncv8siv8hi_1): Ditto.
15017 (*avx512f_vpermvar_truncv8div8si_1): Ditto.
15018 (*avx512f_permvar_truncv32hiv32qi_1): Ditto.
15019 (*avx512f_permvar_truncv16hiv16qi_1): Ditto.
15020 (*avx512f_permvar_truncv4div4si_1): Ditto.
15021 (*avx512f_pshufb_truncv8hiv8qi_1): Ditto.
15022 (*avx512f_pshufb_truncv4siv4hi_1): Ditto.
15023 (*avx512f_pshufd_truncv2div2si_1): Ditto.
15025 2021-08-16 Kito Cheng <kito.cheng@sifive.com>
15027 * config/riscv/multilib-generator: Support code model option for
15029 * doc/install.texi: Add document of new option for
15030 --with-multilib-generator.
15032 2021-08-15 Clément Chigot <clement.chigot@atos.net>
15034 * config/rs6000/rs6000.c (xcoff_tls_exec_model_detected): New.
15035 (rs6000_legitimize_tls_address_aix): Use it.
15036 (rs6000_xcoff_file_end): Add ".ref __tls_get_addr" when
15037 xcoff_tls_exec_model_detected is true.
15039 2021-08-15 Jeff Law <jlaw@localhost.localdomain>
15041 * config/h8300/h8300.c (shift_alg_si): Retune H8/300H shifts
15042 to allow a bit more code growth, saving many dozens of cycles.
15043 (h8300_option_override): Adjus shift_alg_si if optimizing for
15045 (get_shift_alg): Use special + inline shifts for residuals
15048 2021-08-14 Stafford Horne <shorne@gmail.com>
15051 * config/or1k/or1k-opts.h: New file.
15052 * config/or1k/or1k.c (or1k_legitimize_address_1, print_reloc):
15053 Support generating gotha relocations if -mcmodel=large is
15055 * config/or1k/or1k.h (TARGET_CMODEL_SMALL, TARGET_CMODEL_LARGE):
15057 * config/or1k/or1k.opt (mcmodel=): New option.
15058 * doc/invoke.texi (OpenRISC Options): Document mcmodel.
15060 2021-08-14 Martin Sebor <msebor@redhat.com>
15062 PR middle-end/101791
15063 * gimple-ssa-warn-access.cc (new_delete_mismatch_p): Use new argument
15064 to valid_new_delete_pair_p.
15065 * tree.c (valid_new_delete_pair_p): Add argument.
15066 * tree.h (valid_new_delete_pair_p): Same.
15068 2021-08-14 Jakub Jelinek <jakub@redhat.com>
15071 * config/i386/i386-expand.c (expand_vec_perm_broadcast_1)
15072 <case E_V64QImode>: For this mode assert
15073 !TARGET_AVX512BW || d->perm[0] rather than !TARGET_AVX2 || d->perm[0].
15075 2021-08-13 Michael Meissner <meissner@linux.ibm.com>
15078 * config/rs6000/altivec.md (xxeval): Use register_predicate
15079 instead of altivec_register_predicate.
15081 2021-08-13 Martin Sebor <msebor@redhat.com>
15083 PR middle-end/101734
15084 * tree-ssa-uninit.c (maybe_warn_read_write_only): New function.
15085 (maybe_warn_operand): Call it.
15087 2021-08-13 Martin Liska <mliska@suse.cz>
15090 * attribs.c (decl_attributes): Make naked functions "noipa"
15093 2021-08-13 Martin Liska <mliska@suse.cz>
15096 * symtab.c (symtab_node::noninterposable_alias): Do not create
15097 local aliases for target_clone functions as the clonning pass
15100 2021-08-13 Martin Liska <mliska@suse.cz>
15102 * opts.c (LIVE_PATCHING_OPTION): Define.
15103 (control_options_for_live_patching): Use it in error messages.
15105 2021-08-13 Jan Hubicka <hubicka@ucw.cz>
15107 * ipa-modref.c (dump_eaf_flags): Dump EAF_NOREAD.
15108 (implicit_const_eaf_flags, implicit_pure_eaf_flags,
15109 ignore_stores_eaf_flags): New constants.
15110 (remove_useless_eaf_flags): New function.
15111 (eaf_flags_useful_p): Use it.
15112 (deref_flags): Add EAF_NOT_RETURNED if flag is unused;
15114 (modref_lattice::init): Add EAF_NOREAD.
15115 (modref_lattice::add_escape_point): Do not reacord escape point if
15117 (modref_lattice::merge): EAF_NOESCAPE implies EAF_NODIRECTESCAPE;
15118 use remove_useless_eaf_flags.
15119 (modref_lattice::merge_deref): Use ignore_stores_eaf_flags.
15120 (modref_lattice::merge_direct_load): Add EAF_NOREAD
15121 (analyze_ssa_name_flags): Fix handling EAF_NOT_RETURNED
15122 (analyze_parms): Use remove_useless_eaf_flags.
15123 (ipa_merge_modref_summary_after_inlining): Use ignore_stores_eaf_flags.
15124 (modref_merge_call_site_flags): Add caller and ecf_flags parameter;
15125 use remove_useless_eaf_flags.
15126 (modref_propagate_flags_in_scc): Update.
15127 * ipa-modref.h: Turn eaf_flags_t back to char.
15128 * tree-core.h (EAF_NOT_RETURNED): Fix.
15129 (EAF_NOREAD): New constant
15130 * tree-ssa-alias.c: (ref_maybe_used_by_call_p_1): Check for
15132 * tree-ssa-structalias.c (handle_rhs_call): Handle new flags.
15133 (handle_pure_call): Likewise.
15135 2021-08-12 Jakub Jelinek <jakub@redhat.com>
15137 * tree.def (OMP_MASKED): New tree code.
15138 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_FILTER.
15139 * tree.h (OMP_MASKED_BODY, OMP_MASKED_CLAUSES, OMP_MASKED_COMBINED,
15140 OMP_CLAUSE_FILTER_EXPR): Define.
15141 * tree.c (omp_clause_num_ops): Add OMP_CLAUSE_FILTER entry.
15142 (omp_clause_code_name): Likewise.
15143 (walk_tree_1): Handle OMP_CLAUSE_FILTER.
15144 * tree-nested.c (convert_nonlocal_omp_clauses,
15145 convert_local_omp_clauses): Handle OMP_CLAUSE_FILTER.
15146 (convert_nonlocal_reference_stmt, convert_local_reference_stmt,
15147 convert_gimple_call): Handle GIMPLE_OMP_MASTER.
15148 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_FILTER.
15149 (dump_generic_node): Handle OMP_MASTER.
15150 * gimple.def (GIMPLE_OMP_MASKED): New gimple code.
15151 * gimple.c (gimple_build_omp_masked): New function.
15152 (gimple_copy): Handle GIMPLE_OMP_MASKED.
15153 * gimple.h (gimple_build_omp_masked): Declare.
15154 (gimple_has_substatements): Handle GIMPLE_OMP_MASKED.
15155 (gimple_omp_masked_clauses, gimple_omp_masked_clauses_ptr,
15156 gimple_omp_masked_set_clauses): New inline functions.
15157 (CASE_GIMPLE_OMP): Add GIMPLE_OMP_MASKED.
15158 * gimple-pretty-print.c (dump_gimple_omp_masked): New function.
15159 (pp_gimple_stmt_1): Handle GIMPLE_OMP_MASKED.
15160 * gimple-walk.c (walk_gimple_stmt): Likewise.
15161 * gimple-low.c (lower_stmt): Likewise.
15162 * gimplify.c (is_gimple_stmt): Handle OMP_MASTER.
15163 (gimplify_scan_omp_clauses): Handle OMP_CLAUSE_FILTER. For clauses
15164 that take one expression rather than decl or constant, force
15165 gimplification of that into a SSA_NAME or temporary unless min
15167 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_FILTER.
15168 (gimplify_expr): Handle OMP_MASKED.
15169 * tree-inline.c (remap_gimple_stmt): Handle GIMPLE_OMP_MASKED.
15170 (estimate_num_insns): Likewise.
15171 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_FILTER.
15172 (check_omp_nesting_restrictions): Handle GIMPLE_OMP_MASKED. Adjust
15173 diagnostics for existence of masked construct.
15174 (scan_omp_1_stmt, lower_omp_master, lower_omp_1, diagnose_sb_1,
15175 diagnose_sb_2): Handle GIMPLE_OMP_MASKED.
15176 * omp-expand.c (expand_omp_synch, expand_omp, omp_make_gimple_edges):
15179 2021-08-12 Uroš Bizjak <ubizjak@gmail.com>
15182 * config/i386/i386.md (avx512f_scalef<mode>2): New insn pattern.
15183 (ldexp<mode>3): Use avx512f_scalef<mode>2.
15184 (UNSPEC_SCALEF): Move from ...
15185 * config/i386/sse.md (UNSPEC_SCALEF): ... here.
15187 2021-08-12 Jan Hubicka <hubicka@ucw.cz>
15189 * ipa-split.c (consider_split): Fix condition testing void functions.
15191 2021-08-12 Aldy Hernandez <aldyh@redhat.com>
15193 * doc/invoke.texi: Remove docs for threader-mode param.
15194 * flag-types.h (enum threader_mode): Remove.
15195 * params.opt: Remove threader-mode param.
15196 * tree-ssa-threadbackward.c (class back_threader): Remove
15197 path_is_unreachable_p.
15198 Make find_paths private.
15199 Add maybe_thread and thread_through_all_blocks.
15200 Remove reference marker for m_registry.
15201 Remove reference marker for m_profit.
15202 (back_threader::back_threader): Adjust for registry and profit not
15204 (dump_path): Move down.
15205 (debug): Move down.
15206 (class thread_jumps): Remove.
15207 (class back_threader_registry): Remove m_all_paths.
15209 (thread_jumps::thread_through_all_blocks): Move to back_threader
15211 (fsm_find_thread_path): Remove
15212 (back_threader::maybe_thread): New.
15213 (back_threader::thread_through_all_blocks): Move from
15215 (back_threader_registry::back_threader_registry): Remove
15217 (back_threader_registry::~back_threader_registry): Remove.
15218 (thread_jumps::find_taken_edge): Remove.
15219 (thread_jumps::check_subpath_and_update_thread_path): Remove.
15220 (thread_jumps::maybe_register_path): Remove.
15221 (thread_jumps::handle_phi): Remove.
15222 (handle_assignment_p): Remove.
15223 (thread_jumps::handle_assignment): Remove.
15224 (thread_jumps::fsm_find_control_statement_thread_paths): Remove.
15225 (thread_jumps::find_jump_threads_backwards): Remove.
15226 (thread_jumps::find_jump_threads_backwards_with_ranger): Remove.
15227 (try_thread_blocks): Rename find_jump_threads_backwards to
15229 (pass_early_thread_jumps::execute): Same.
15231 2021-08-12 Tobias Burnus <tobias@codesourcery.com>
15233 * tree-core.h (omp_clause_proc_bind_kind): Add
15234 OMP_CLAUSE_PROC_BIND_PRIMARY.
15235 * tree-pretty-print.c (dump_omp_clause): Add TODO comment to
15236 change 'master' to 'primary' in proc_bind for OpenMP 5.1.
15238 2021-08-12 Claudiu Zissulescu <claziss@synopsys.com>
15240 * common/config/arc/arc-common.c (arc_option_init_struct): Remove
15241 fno-common reference.
15242 * config/arc/arc.c (arc_override_options): Remove overriding of
15245 2021-08-12 Jakub Jelinek <jakub@redhat.com>
15248 * config/i386/i386-expand.c (ix86_expand_vec_one_operand_perm_avx512):
15249 If d->testing_p, return true after performing checks instead of
15250 actually expanding the insn.
15251 (expand_vec_perm_broadcast_1): Handle V32HImode - assert
15252 !TARGET_AVX512BW and return false.
15254 2021-08-12 Eric Botcazou <ebotcazou@gcc.gnu.org>
15256 * configure.ac (PE linker --disable-dynamicbase support): New check.
15257 * configure: Regenerate.
15258 * config.in: Likewise.
15259 * config/i386/mingw32.h (LINK_SPEC_DISABLE_DYNAMICBASE): New define.
15260 (LINK_SPEC): Use it.
15261 * config/i386/mingw-w64.h (LINK_SPEC_DISABLE_DYNAMICBASE): Likewise.
15262 (LINK_SPEC): Likewise.
15264 2021-08-12 liuhongt <hongtao.liu@intel.com>
15267 * config/i386/sse.md (*avx2_zero_extendv16qiv16hi2_2): New
15268 post_reload define_insn_and_split.
15269 (*avx512bw_zero_extendv32qiv32hi2_2): Ditto.
15270 (*sse4_1_zero_extendv8qiv8hi2_4): Ditto.
15271 (*avx512f_zero_extendv16hiv16si2_2): Ditto.
15272 (*avx2_zero_extendv8hiv8si2_2): Ditto.
15273 (*sse4_1_zero_extendv4hiv4si2_4): Ditto.
15274 (*avx512f_zero_extendv8siv8di2_2): Ditto.
15275 (*avx2_zero_extendv4siv4di2_2): Ditto.
15276 (*sse4_1_zero_extendv2siv2di2_4): Ditto.
15277 (VI248_256, VI248_512, VI148_512, VI148_256, VI148_128): New
15280 2021-08-11 Bill Schmidt <wschmidt@linux.ibm.com>
15282 * config/rs6000/rs6000-builtin-new.def: Add always, power5, and
15285 2021-08-11 Bill Schmidt <wschmidt@linux.ibm.com>
15287 * config/rs6000/rs6000-builtin-new.def: Add vsx stanza.
15289 2021-08-11 Bill Schmidt <wschmidt@linux.ibm.com>
15291 * config/rs6000/rs6000-builtin-new.def: Finish altivec stanza.
15292 * config/rs6000/rs6000-call.c (rs6000_init_builtins): Move
15293 initialization of pcvoid_type_node here...
15294 (altivec_init_builtins): ...from here.
15295 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add
15296 RS6000_BTI_const_ptr_void.
15297 (pcvoid_type_node): New macro.
15299 2021-08-11 Richard Biener <rguenther@suse.de>
15302 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not decompose
15303 hard-register accesses.
15305 2021-08-11 Richard Biener <rguenther@suse.de>
15307 * tree-ssa-operands.c (operands_scanner::get_expr_operands):
15308 Do not look at COMPONENT_REF FIELD_DECLs TREE_THIS_VOLATILE
15309 to determine has_volatile_ops.
15311 2021-08-11 Eric Botcazou <ebotcazou@gcc.gnu.org>
15313 * cfgexpand.c (expand_used_vars): Reuse attribs local variable.
15315 2021-08-11 Jan Hubicka <hubicka@ucw.cz>
15316 Alexandre Oliva <oliva@adacore.com>
15318 * ipa-modref.c (modref_lattice::dump): Fix escape_point's min_flags
15320 (modref_lattice::merge_deref): Fix handling of indirect scape points.
15321 (update_escape_summary_1): Likewise.
15322 (update_escape_summary): Likewise.
15323 (ipa_merge_modref_summary_after_inlining): Likewise.
15325 2021-08-11 Richard Biener <rguenther@suse.de>
15327 PR middle-end/101858
15328 * fold-const.c (fold_binary_loc): Guard simplification
15329 of X < (cast) (1 << Y) to integer types.
15331 2021-08-11 Richard Biener <rguenther@suse.de>
15333 PR tree-optimization/101861
15334 * tree-vect-stmts.c (vectorizable_load): Fix error in
15335 previous change with regard to gather vectorization.
15337 2021-08-11 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
15340 * config/arm/arm_neon.h (vdup_n_s8): Replace call to builtin
15342 (vdup_n_s16): Likewise.
15343 (vdup_n_s32): Likewise.
15344 (vdup_n_s64): Likewise.
15345 (vdup_n_u8): Likewise.
15346 (vdup_n_u16): Likewise.
15347 (vdup_n_u32): Likewise.
15348 (vdup_n_u64): Likewise.
15349 (vdup_n_p8): Likewise.
15350 (vdup_n_p16): Likewise.
15351 (vdup_n_p64): Likewise.
15352 (vdup_n_f16): Likewise.
15353 (vdup_n_f32): Likewise.
15354 (vdupq_n_s8): Likewise.
15355 (vdupq_n_s16): Likewise.
15356 (vdupq_n_s32): Likewise.
15357 (vdupq_n_s64): Likewise.
15358 (vdupq_n_u8): Likewise.
15359 (vdupq_n_u16): Likewise.
15360 (vdupq_n_u32): Likewise.
15361 (vdupq_n_u64): Likewise.
15362 (vdupq_n_p8): Likewise.
15363 (vdupq_n_p16): Likewise.
15364 (vdupq_n_p64): Likewise.
15365 (vdupq_n_f16): Likewise.
15366 (vdupq_n_f32): Likewise.
15367 (vmov_n_s8): Replace call to builtin with call to corresponding
15369 (vmov_n_s16): Likewise.
15370 (vmov_n_s32): Likewise.
15371 (vmov_n_s64): Likewise.
15372 (vmov_n_u8): Likewise.
15373 (vmov_n_u16): Likewise.
15374 (vmov_n_u32): Likewise.
15375 (vmov_n_u64): Likewise.
15376 (vmov_n_p8): Likewise.
15377 (vmov_n_p16): Likewise.
15378 (vmov_n_f16): Likewise.
15379 (vmov_n_f32): Likewise.
15380 (vmovq_n_s8): Likewise.
15381 (vmovq_n_s16): Likewise.
15382 (vmovq_n_s32): Likewise.
15383 (vmovq_n_s64): Likewise.
15384 (vmovq_n_u8): Likewise.
15385 (vmovq_n_u16): Likewise.
15386 (vmovq_n_u32): Likewise.
15387 (vmovq_n_u64): Likewise.
15388 (vmovq_n_p8): Likewise.
15389 (vmovq_n_p16): Likewise.
15390 (vmovq_n_f16): Likewise.
15391 (vmovq_n_f32): Likewise.
15392 * config/arm/arm_neon_builtins.def: Remove entries for vdup_n.
15394 2021-08-11 liuhongt <hongtao.liu@intel.com>
15397 * config/i386/i386.md (ldexp<mode>3): Extend to vscalefs[sd]
15398 when TARGET_AVX512F and TARGET_SSE_MATH.
15400 2021-08-10 Jakub Jelinek <jakub@redhat.com>
15403 * config/i386/i386-expand.c (expand_vec_perm_even_odd): Return false
15404 for V32HImode if !TARGET_AVX512BW.
15405 (ix86_vectorize_vec_perm_const) <case E_V32HImode, case E_V64QImode>:
15406 If !TARGET_AVX512BW and TARGET_AVX512F and d.testing_p, don't fail
15407 early, but actually check the permutation.
15409 2021-08-10 Richard Biener <rguenther@suse.de>
15411 PR tree-optimization/101809
15412 * tree-vect-stmts.c (get_load_store_type): Allow emulated
15413 gathers with offset vector nunits being a constant multiple
15414 of the data vector nunits.
15415 (vect_get_gather_scatter_ops): Use the appropriate nunits
15416 for the offset vector defs.
15417 (vectorizable_store): Adjust call to
15418 vect_get_gather_scatter_ops.
15419 (vectorizable_load): Likewise. Handle the case of less
15420 offset vectors than data vectors.
15422 2021-08-10 Jakub Jelinek <jakub@redhat.com>
15425 * config/i386/sse.md (*avx512f_shuf_<shuffletype>64x2_1<mask_name>_1,
15426 *avx512f_shuf_<shuffletype>32x4_1<mask_name>_1): New define_insn
15429 2021-08-10 Richard Biener <rguenther@suse.de>
15431 PR tree-optimization/101801
15432 PR tree-optimization/101819
15433 * tree-vectorizer.h (vect_emulated_vector_p): Declare.
15434 * tree-vect-loop.c (vect_emulated_vector_p): New function.
15435 (vectorizable_reduction): Re-instantiate a check for emulated
15437 * tree-vect-stmts.c (vectorizable_shift): Likewise.
15438 (vectorizable_operation): Likewise. Cost emulated vector
15439 operations according to the scalar sequence synthesized by
15442 2021-08-10 Richard Biener <rguenther@suse.de>
15444 PR middle-end/101824
15445 * tree-nested.c (get_frame_field): Mark the COMPONENT_REF as
15446 volatile in case the variable was.
15448 2021-08-10 H.J. Lu <hjl.tools@gmail.com>
15451 * config/i386/constraints.md (BC): Document for integer SSE
15452 constant all bits set operand.
15453 (BF): New constraint for const floating-point all bits set
15455 * config/i386/i386.c (standard_sse_constant_p): Likewise.
15456 (standard_sse_constant_opcode): Likewise.
15457 * config/i386/sse.md (sseconstm1): New mode attribute.
15458 (mov<mode>_internal): Replace BC with <sseconstm1>.
15460 2021-08-10 liuhongt <hongtao.liu@intel.com>
15462 * config/i386/sse.md (cond_<insn><mode>): New expander.
15463 (VI248_AVX512VLBW): New mode iterator.
15464 * config/i386/predicates.md
15465 (nonimmediate_or_const_vec_dup_operand): New predicate.
15467 2021-08-09 Andrew MacLeod <amacleod@redhat.com>
15469 PR tree-optimization/101741
15470 * gimple-range-fold.cc (fold_using_range::range_of_builtin_call): Check
15471 type of parameter for toupper/tolower.
15473 2021-08-09 Martin Jambor <mjambor@suse.cz>
15475 PR testsuite/101654
15476 * ipa-prop.c (propagate_controlled_uses): Removed a spurious space.
15478 2021-08-09 Pat Haugen <pthaugen@linux.ibm.com>
15480 * config/rs6000/rs6000.c (is_load_insn1): Verify destination is a
15482 (is_store_insn1): Verify source is a register.
15484 2021-08-09 Uroš Bizjak <ubizjak@gmail.com>
15487 * config/i386/mmx.md (<any_logic:code>v2sf3):
15488 Rename from *mmx_<any_logic:code>v2sf3
15490 2021-08-09 Thomas Schwinge <thomas@codesourcery.com>
15492 * config/nvptx/nvptx.c: Cross-reference parts adapted in
15493 'gcc/omp-oacc-neuter-broadcast.cc'.
15494 * omp-low.c: Likewise.
15495 * omp-oacc-neuter-broadcast.cc: Cross-reference parts adapted from
15498 2021-08-09 Julian Brown <julian@codesourcery.com>
15499 Kwok Cheung Yeung <kcy@codesourcery.com>
15500 Thomas Schwinge <thomas@codesourcery.com>
15502 * config/gcn/gcn.c (gcn_init_builtins): Override decls for
15503 BUILT_IN_GOACC_SINGLE_START, BUILT_IN_GOACC_SINGLE_COPY_START,
15504 BUILT_IN_GOACC_SINGLE_COPY_END and BUILT_IN_GOACC_BARRIER.
15505 (gcn_goacc_validate_dims): Turn on worker partitioning unconditionally.
15506 (gcn_fork_join): Update comment.
15507 * config/gcn/gcn.opt (flag_worker_partitioning): Remove.
15508 (macc_experimental_workers): Remove unused option.
15510 2021-08-09 Julian Brown <julian@codesourcery.com>
15511 Nathan Sidwell <nathan@codesourcery.com> (via 'gcc/config/nvptx/nvptx.c' master)
15512 Kwok Cheung Yeung <kcy@codesourcery.com>
15513 Thomas Schwinge <thomas@codesourcery.com>
15515 * Makefile.in (OBJS): Add omp-oacc-neuter-broadcast.o.
15516 * doc/tm.texi.in (TARGET_GOACC_CREATE_WORKER_BROADCAST_RECORD):
15517 Add documentation hook.
15518 * doc/tm.texi: Regenerate.
15519 * omp-oacc-neuter-broadcast.cc: New file.
15520 * omp-builtins.def (BUILT_IN_GOACC_BARRIER)
15521 (BUILT_IN_GOACC_SINGLE_START, BUILT_IN_GOACC_SINGLE_COPY_START)
15522 (BUILT_IN_GOACC_SINGLE_COPY_END): New builtins.
15523 * passes.def (pass_omp_oacc_neuter_broadcast): Add pass.
15524 * target.def (goacc.create_worker_broadcast_record): Add target
15526 * tree-pass.h (make_pass_omp_oacc_neuter_broadcast): Add
15528 * config/gcn/gcn-protos.h (gcn_goacc_adjust_propagation_record):
15529 Rename prototype to...
15530 (gcn_goacc_create_worker_broadcast_record): ... this.
15531 * config/gcn/gcn-tree.c (gcn_goacc_adjust_propagation_record): Rename
15533 (gcn_goacc_create_worker_broadcast_record): ... this.
15534 * config/gcn/gcn.c (TARGET_GOACC_ADJUST_PROPAGATION_RECORD):
15536 (TARGET_GOACC_CREATE_WORKER_BROADCAST_RECORD): ... this.
15538 2021-08-09 Tejas Belagod <tejas.belagod@arm.com>
15541 * config/aarch64/aarch64-simd.md (vlshr<mode>3, vashr<mode>3): Use
15542 the right iterator.
15544 2021-08-09 Thomas Schwinge <thomas@codesourcery.com>
15546 * Makefile.in (GTFILES): Remove '$(srcdir)/omp-offload.c'.
15548 2021-08-09 Thomas Schwinge <thomas@codesourcery.com>
15550 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOMP_BUILTIN): Don't
15551 consider '-foffload-abi'.
15552 * common.opt (-foffload-abi): Remove 'Var', 'Init'.
15553 * opts.c (common_handle_option) <-foffload-abi> [ACCEL_COMPILER]:
15556 2021-08-09 Thomas Schwinge <thomas@codesourcery.com>
15558 * optc-gen.awk: Sanity check that 'Init' doesn't appear without
15561 2021-08-09 Thomas Schwinge <thomas@codesourcery.com>
15563 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE): Remove.
15565 2021-08-09 Thomas Schwinge <thomas@codesourcery.com>
15567 * doc/gty.texi (Files): Update.
15569 2021-08-09 Thomas Schwinge <thomas@codesourcery.com>
15571 * doc/gty.texi (Files): Fix GTY header file example.
15573 2021-08-09 Roger Sayle <roger@nextmovesoftware.com>
15575 * tree-ssa-ccp.c (value_mask_to_min_max): Helper function to
15576 determine the upper and lower bounds from a mask-value pair.
15577 (bit_value_unop) [ABS_EXPR, ABSU_EXPR]: Add support for
15578 absolute value and unsigned absolute value expressions.
15579 (bit_value_binop): Initialize *VAL's precision.
15580 [LT_EXPR, LE_EXPR]: Use value_mask_to_min_max to determine
15581 upper and lower bounds of operands. Add LE_EXPR/GE_EXPR
15582 support when the operands are unknown but potentially equal.
15583 [MIN_EXPR, MAX_EXPR]: Support minimum/maximum expressions.
15585 2021-08-09 Bin Cheng <bin.cheng@linux.alibaba.com>
15587 * config/aarch64/aarch64.md
15588 (*extend<SHORT:mode><GPI:mode>2_aarch64): Use %<GPI:w>0.
15590 2021-08-08 Sergei Trofimovich <siarheit@google.com>
15592 * lra-constraints.c: Fix s/otput/output/ typo.
15594 2021-08-06 Martin Sebor <msebor@redhat.com>
15596 * builtins.c (expand_builtin_memchr): Move to gimple-ssa-warn-access.cc.
15597 (expand_builtin_strcat): Same.
15598 (expand_builtin_stpncpy): Same.
15599 (expand_builtin_strncat): Same.
15600 (check_read_access): Same.
15601 (check_memop_access): Same.
15602 (expand_builtin_strlen): Move checks to gimple-ssa-warn-access.cc.
15603 (expand_builtin_strnlen): Same.
15604 (expand_builtin_memcpy): Same.
15605 (expand_builtin_memmove): Same.
15606 (expand_builtin_mempcpy): Same.
15607 (expand_builtin_strcpy): Same.
15608 (expand_builtin_strcpy_args): Same.
15609 (expand_builtin_stpcpy_1): Same.
15610 (expand_builtin_strncpy): Same.
15611 (expand_builtin_memset): Same.
15612 (expand_builtin_bzero): Same.
15613 (expand_builtin_strcmp): Same.
15614 (expand_builtin_strncmp): Same.
15615 (expand_builtin): Remove handlers.
15616 (fold_builtin_strlen): Add a comment.
15617 * builtins.h (check_access): Move to gimple-ssa-warn-access.cc.
15618 * calls.c (maybe_warn_nonstring_arg): Same.
15619 * diagnostic-spec.c (nowarn_spec_t::nowarn_spec_t): Add warning option.
15620 * gimple-fold.c (gimple_fold_builtin_strcpy): Pass argument to callee.
15621 (gimple_fold_builtin_stpcpy): Same.
15622 * gimple-ssa-warn-access.cc (has_location): New function.
15623 (get_location): Same.
15624 (get_callee_fndecl): Same.
15625 (call_nargs): Same.
15627 (warn_string_no_nul): Define.
15628 (unterminated_array): Same.
15629 (check_nul_terminated_array): Same.
15630 (maybe_warn_nonstring_arg): Same.
15631 (maybe_warn_for_bound): Same.
15632 (warn_for_access): Same.
15633 (check_access): Same.
15634 (check_memop_access): Same.
15635 (check_read_access): Same.
15636 (warn_dealloc_offset): Use helper functions.
15637 (maybe_emit_free_warning): Same.
15638 (class pass_waccess): Add members.
15639 (check_strcat): New function.
15640 (check_strncat): New function.
15641 (check_stxcpy): New function.
15642 (check_stxncpy): New function.
15643 (check_strncmp): New function.
15644 (pass_waccess::check_builtin): New function.
15645 (pass_waccess::check): Call it.
15646 * gimple-ssa-warn-access.h (warn_string_no_nul): Move here from
15648 (maybe_warn_for_bound): Same.
15649 (check_access): Same.
15650 (check_memop_access): Same.
15651 (check_read_access): Same.
15652 * pointer-query.h (struct access_data): Define a ctor overload.
15654 2021-08-06 Richard Biener <rguenther@suse.de>
15656 PR tree-optimization/101801
15657 * tree-vectorizer.h (vect_worthwhile_without_simd_p): Rename...
15658 (vect_can_vectorize_without_simd_p): ... to this.
15659 * tree-vect-loop.c (vect_worthwhile_without_simd_p): Rename...
15660 (vect_can_vectorize_without_simd_p): ... to this and fold
15661 in vect_min_worthwhile_factor.
15662 (vect_min_worthwhile_factor): Remove.
15663 (vectorizable_reduction): Adjust and remove the cost part.
15664 * tree-vect-stmts.c (vectorizable_shift): Likewise.
15665 (vectorizable_operation): Likewise.
15667 2021-08-06 Uroš Bizjak <ubizjak@gmail.com>
15670 * config/i386/i386.md (cmove reg-to-reg move elimination peephole2s):
15671 Add general_gr_operand predicate to operand 3.
15673 2021-08-06 Roger Sayle <roger@nextmovesoftware.com>
15675 * tree-ssa-phiopt.c (cond_removal_in_builtin_zero_pattern): Use
15676 CFN_BUILT_IN_CLRSB* instead of BUILT_IN_CLRSB* for consistency.
15678 2021-08-06 Tamar Christina <tamar.christina@arm.com>
15680 * config/aarch64/aarch64-sve-builtins.cc (register_svpattern,
15681 register_svprfop): Pass vec<> by pointer.
15682 * langhooks-def.h (lhd_simulate_enum_decl): Likewise.
15683 * langhooks.c (lhd_simulate_enum_decl): Likewise.
15684 * langhooks.h (struct lang_hooks_for_types): Likewise.
15686 2021-08-06 Jonathan Wright <jonathan.wright@arm.com>
15688 * config/aarch64/arm_neon.h (vst1_bf16_x2): Use
15689 __builtin_memcpy instead of constructing an additional
15690 __builtin_aarch64_simd_oi one vector at a time.
15691 (vst1q_bf16_x2): Likewise.
15692 (vst1_bf16_x3): Use __builtin_memcpy instead of constructing
15693 an additional __builtin_aarch64_simd_ci one vector at a time.
15694 (vst1q_bf16_x3): Likewise.
15695 (vst1_bf16_x4): Use __builtin_memcpy instead of a union.
15696 (vst1q_bf16_x4): Likewise.
15697 (vst2_bf16): Use __builtin_memcpy instead of constructing an
15698 additional __builtin_aarch64_simd_oi one vector at a time.
15699 (vst2q_bf16): Likewise.
15700 (vst3_bf16): Use __builtin_memcpy instead of constructing an
15701 additional __builtin_aarch64_simd_ci mode one vector at a
15703 (vst3q_bf16): Likewise.
15704 (vst4_bf16): Use __builtin_memcpy instead of constructing an
15705 additional __builtin_aarch64_simd_xi one vector at a time.
15706 (vst4q_bf16): Likewise.
15708 2021-08-06 Jonathan Wright <jonathan.wright@arm.com>
15710 * config/aarch64/arm_neon.h (__ST2_LANE_FUNC): Delete.
15711 (__ST2Q_LANE_FUNC): Delete.
15712 (vst2_lane_f16): Use __builtin_memcpy to copy vector
15713 structure instead of constructing __builtin_aarch64_simd_oi
15714 one vector at a time.
15715 (vst2_lane_f32): Likewise.
15716 (vst2_lane_f64): Likewise.
15717 (vst2_lane_p8): Likewise.
15718 (vst2_lane_p16): Likewise.
15719 (vst2_lane_p64): Likewise.
15720 (vst2_lane_s8): Likewise.
15721 (vst2_lane_s16): Likewise.
15722 (vst2_lane_s32): Likewise.
15723 (vst2_lane_s64): Likewise.
15724 (vst2_lane_u8): Likewise.
15725 (vst2_lane_u16): Likewise.
15726 (vst2_lane_u32): Likewise.
15727 (vst2_lane_u64): Likewise.
15728 (vst2_lane_bf16): Likewise.
15729 (vst2q_lane_f16): Use __builtin_memcpy to copy vector
15730 structure instead of using a union.
15731 (vst2q_lane_f32): Likewise.
15732 (vst2q_lane_f64): Likewise.
15733 (vst2q_lane_p8): Likewise.
15734 (vst2q_lane_p16): Likewise.
15735 (vst2q_lane_p64): Likewise.
15736 (vst2q_lane_s8): Likewise.
15737 (vst2q_lane_s16): Likewise.
15738 (vst2q_lane_s32): Likewise.
15739 (vst2q_lane_s64): Likewise.
15740 (vst2q_lane_u8): Likewise.
15741 (vst2q_lane_u16): Likewise.
15742 (vst2q_lane_u32): Likewise.
15743 (vst2q_lane_u64): Likewise.
15744 (vst2q_lane_bf16): Likewise.
15746 2021-08-06 Jonathan Wright <jonathan.wright@arm.com>
15748 * config/aarch64/arm_neon.h (__ST3_LANE_FUNC): Delete.
15749 (__ST3Q_LANE_FUNC): Delete.
15750 (vst3_lane_f16): Use __builtin_memcpy to copy vector
15751 structure instead of constructing __builtin_aarch64_simd_ci
15752 one vector at a time.
15753 (vst3_lane_f32): Likewise.
15754 (vst3_lane_f64): Likewise.
15755 (vst3_lane_p8): Likewise.
15756 (vst3_lane_p16): Likewise.
15757 (vst3_lane_p64): Likewise.
15758 (vst3_lane_s8): Likewise.
15759 (vst3_lane_s16): Likewise.
15760 (vst3_lane_s32): Likewise.
15761 (vst3_lane_s64): Likewise.
15762 (vst3_lane_u8): Likewise.
15763 (vst3_lane_u16): Likewise.
15764 (vst3_lane_u32): Likewise.
15765 (vst3_lane_u64): Likewise.
15766 (vst3_lane_bf16): Likewise.
15767 (vst3q_lane_f16): Use __builtin_memcpy to copy vector
15768 structure instead of using a union.
15769 (vst3q_lane_f32): Likewise.
15770 (vst3q_lane_f64): Likewise.
15771 (vst3q_lane_p8): Likewise.
15772 (vst3q_lane_p16): Likewise.
15773 (vst3q_lane_p64): Likewise.
15774 (vst3q_lane_s8): Likewise.
15775 (vst3q_lane_s16): Likewise.
15776 (vst3q_lane_s32): Likewise.
15777 (vst3q_lane_s64): Likewise.
15778 (vst3q_lane_u8): Likewise.
15779 (vst3q_lane_u16): Likewise.
15780 (vst3q_lane_u32): Likewise.
15781 (vst3q_lane_u64): Likewise.
15782 (vst3q_lane_bf16): Likewise.
15784 2021-08-06 Jonathan Wright <jonathan.wright@arm.com>
15786 * config/aarch64/arm_neon.h (__ST4_LANE_FUNC): Delete.
15787 (__ST4Q_LANE_FUNC): Delete.
15788 (vst4_lane_f16): Use __builtin_memcpy to copy vector
15789 structure instead of constructing __builtin_aarch64_simd_xi
15790 one vector at a time.
15791 (vst4_lane_f32): Likewise.
15792 (vst4_lane_f64): Likewise.
15793 (vst4_lane_p8): Likewise.
15794 (vst4_lane_p16): Likewise.
15795 (vst4_lane_p64): Likewise.
15796 (vst4_lane_s8): Likewise.
15797 (vst4_lane_s16): Likewise.
15798 (vst4_lane_s32): Likewise.
15799 (vst4_lane_s64): Likewise.
15800 (vst4_lane_u8): Likewise.
15801 (vst4_lane_u16): Likewise.
15802 (vst4_lane_u32): Likewise.
15803 (vst4_lane_u64): Likewise.
15804 (vst4_lane_bf16): Likewise.
15805 (vst4q_lane_f16): Use __builtin_memcpy to copy vector
15806 structure instead of using a union.
15807 (vst4q_lane_f32): Likewise.
15808 (vst4q_lane_f64): Likewise.
15809 (vst4q_lane_p8): Likewise.
15810 (vst4q_lane_p16): Likewise.
15811 (vst4q_lane_p64): Likewise.
15812 (vst4q_lane_s8): Likewise.
15813 (vst4q_lane_s16): Likewise.
15814 (vst4q_lane_s32): Likewise.
15815 (vst4q_lane_s64): Likewise.
15816 (vst4q_lane_u8): Likewise.
15817 (vst4q_lane_u16): Likewise.
15818 (vst4q_lane_u32): Likewise.
15819 (vst4q_lane_u64): Likewise.
15820 (vst4q_lane_bf16): Likewise.
15822 2021-08-06 Martin Liska <mliska@suse.cz>
15824 * config/rs6000/rs6000.c (rs6000_option_override_internal): When
15825 a target option is restored, it can have
15826 rs6000_long_double_type_size set to FLOAT_PRECISION_TFmode
15827 and error should not be emitted.
15829 2021-08-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
15831 * gcov-io.h (gcov_write): Declare.
15832 * gcov-io.c (gcov_write): New.
15833 (gcov_write_counter): Remove.
15834 (gcov_write_tag_length): Likewise.
15835 (gcov_write_summary): Replace gcov_write_tag_length() with calls to
15836 gcov_write_unsigned().
15837 * doc/invoke.texi (fprofile-info-section): Mention
15838 __gcov_info_to_gdca().
15840 2021-08-06 Martin Sebor <msebor@redhat.com>
15842 * dominance.c (prune_bbs_to_update_dominators): Adjust by-value vec
15843 arguments to by-reference.
15844 (iterate_fix_dominators): Same.
15845 * dominance.h (iterate_fix_dominators): Same.
15846 * ipa-prop.h: Call auto_vec::to_vec_legacy.
15847 * tree-data-ref.c (dump_data_dependence_relation): Adjust by-value vec
15848 arguments to by-reference.
15849 (debug_data_dependence_relation): Same.
15850 (dump_data_dependence_relations): Same.
15851 * tree-data-ref.h (debug_data_dependence_relation): Same.
15852 (dump_data_dependence_relations): Same.
15853 * tree-predcom.c (dump_chains): Same.
15854 (initialize_root_vars_lm): Same.
15855 (determine_unroll_factor): Same.
15856 (replace_phis_by_defined_names): Same.
15857 (insert_init_seqs): Same.
15858 (pcom_worker::tree_predictive_commoning_loop): Call
15859 auto_vec::to_vec_legacy.
15860 * tree-ssa-pre.c (insert_into_preds_of_block): Adjust by-value vec
15861 arguments to by-reference.
15862 * tree-ssa-threadbackward.c (populate_worklist): Same.
15863 (back_threader::resolve_def): Same.
15864 * tree-vect-data-refs.c (vect_check_nonzero_value): Same.
15865 (vect_enhance_data_refs_alignment): Same.
15866 (vect_check_lower_bound): Same.
15867 (vect_prune_runtime_alias_test_list): Same.
15868 (vect_permute_store_chain): Same.
15869 * tree-vect-slp-patterns.c (vect_normalize_conj_loc): Same.
15870 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Same.
15871 * tree-vectorizer.h (vect_permute_store_chain): Same.
15872 * vec.c (test_init): New function.
15873 (vec_c_tests): Call new function.
15874 * vec.h (vec): Declare ctors, dtor, and assignment.
15875 (auto_vec::vec_to_legacy): New function.
15876 (vec::copy): Adjust initialization.
15878 2021-08-05 H.J. Lu <hjl.tools@gmail.com>
15881 * config/i386/i386.c (ix86_can_inline_p): Ignore MASK_80387 if
15882 callee only uses GPRs.
15883 * config/i386/ia32intrin.h: Revert commit 5463cee2770.
15884 * config/i386/serializeintrin.h: Revert commit 71958f740f1.
15885 * config/i386/x86gprintrin.h: Add
15886 #pragma GCC target("general-regs-only") and #pragma GCC pop_options
15887 to disable non-GPR ISAs.
15889 2021-08-05 Richard Sandiford <richard.sandiford@arm.com>
15891 PR middle-end/101787
15892 * doc/md.texi (cond_ashl, cond_ashr, cond_lshr): Document.
15894 2021-08-05 Richard Sandiford <richard.sandiford@arm.com>
15896 * tree-vectorizer.h (vect_is_store_elt_extraction, vect_is_reduction)
15897 (vect_reduc_type, vect_embedded_comparison_type, vect_comparison_type)
15898 (vect_is_extending_load, vect_is_integer_truncation): New functions,
15899 moved from aarch64.c but given different names.
15900 * config/aarch64/aarch64.c (aarch64_is_store_elt_extraction)
15901 (aarch64_is_reduction, aarch64_reduc_type)
15902 (aarch64_embedded_comparison_type, aarch64_comparison_type)
15903 (aarch64_extending_load_p, aarch64_integer_truncation_p): Delete
15904 in favor of the above. Update callers accordingly.
15906 2021-08-05 Richard Earnshaw <rearnsha@arm.com>
15909 * config/arm/arm-cpus.in (generic-armv7-a): Add quirk to suppress
15910 writing .cpu directive in asm output.
15911 * config/arm/arm.c (arm_identify_fpu_from_isa): New variable.
15912 (arm_last_printed_arch_string): Delete.
15913 (arm_last-printed_fpu_string): Delete.
15914 (arm_configure_build_target): If use of floating-point/SIMD is
15915 disabled, remove all fp/simd related features from the target ISA.
15916 (last_arm_targ_options): New variable.
15917 (arm_print_asm_arch_directives): Add new parameters. Change order
15918 of emitted directives and handle all cases here.
15919 (arm_file_start): Always call arm_print_asm_arch_directives, move
15920 all generation of .arch/.arch_extension here.
15921 (arm_file_end): Call arm_print_asm_arch.
15922 (arm_declare_function_name): Call arm_print_asm_arch_directives
15923 instead of printing .arch/.fpu directives directly.
15925 2021-08-05 Richard Earnshaw <rearnsha@arm.com>
15927 * config/arm/arm.c (arm_configure_build_target): Don't call
15928 arm_option_reconfigure_globals.
15929 (arm_option_restore): Call arm_option_reconfigure_globals after
15930 reconfiguring the target.
15931 * config/arm/arm-c.c (arm_pragma_target_parse): Likewise.
15933 2021-08-05 Richard Earnshaw <rearnsha@arm.com>
15935 * config/arm/arm.c (arm_configure_build_target): Ensure the target's
15936 arch_name is always set.
15938 2021-08-05 Jonathan Wright <jonathan.wright@arm.com>
15940 * config/aarch64/aarch64.c: Traverse RTL tree to prevent cost
15941 of vec_select high-half from being added into Neon subtract
15944 2021-08-05 Jonathan Wright <jonathan.wright@arm.com>
15946 * config/aarch64/aarch64.c: Traverse RTL tree to prevent cost
15947 of vec_select high-half from being added into Neon add cost.
15949 2021-08-05 Kewen Lin <linkw@linux.ibm.com>
15951 * cfgloop.h (loops_list::loops_list): Add one optional argument
15952 root and adjust accordingly, update loop tree walking and factor
15954 * cfgloop.c (loops_list::walk_loop_tree): ... this. New function.
15956 2021-08-05 Eric Botcazou <ebotcazou@gcc.gnu.org>
15958 PR tree-optimization/101626
15959 * tree-sra.c (propagate_subaccesses_from_rhs): Do not set the
15960 reverse scalar storage order on a pointer or vector component.
15962 2021-08-05 liuhongt <hongtao.liu@intel.com>
15964 * config/i386/sse.md (cond_<code><mode>): New expander.
15966 2021-08-05 liuhongt <hongtao.liu@intel.com>
15968 * config/i386/sse.md (cond_<code><mode>): New expander.
15970 2021-08-05 liuhongt <hongtao.liu@intel.com>
15972 * config/i386/sse.md (cond_<code><mode>): New expander.
15974 2021-08-04 David Malcolm <dmalcolm@redhat.com>
15977 * Makefile.in (ANALYZER_OBJS): Add analyzer/region-model-asm.o.
15979 2021-08-04 H.J. Lu <hjl.tools@gmail.com>
15982 * config/i386/i386.h (STORE_MAX_PIECES): Allow 16/32/64 bytes
15983 only if TARGET_INTER_UNIT_MOVES_TO_VEC is true.
15985 2021-08-04 H.J. Lu <hjl.tools@gmail.com>
15988 * config/i386/i386-expand.c (ix86_expand_vector_move): Call
15989 ix86_gen_scratch_sse_rtx to get a scratch SSE register to copy
15990 data with SSE register from one memory location to another.
15992 2021-08-04 Andreas Krebbel <krebbel@linux.ibm.com>
15994 * config/s390/s390.c (expand_perm_with_vpdi): New function.
15995 (vectorize_vec_perm_const_1): Call expand_perm_with_vpdi.
15996 * config/s390/vector.md (*vpdi1<mode>, @vpdi1<mode>): Enable a
15997 parameterized expander.
15998 (*vpdi4<mode>, @vpdi4<mode>): Likewise.
16000 2021-08-04 Andreas Krebbel <krebbel@linux.ibm.com>
16002 * config/s390/s390.c (MAX_VECT_LEN): Define macro.
16003 (struct expand_vec_perm_d): Define struct.
16004 (expand_perm_with_merge): New function.
16005 (vectorize_vec_perm_const_1): New function.
16006 (s390_vectorize_vec_perm_const): New function.
16007 (TARGET_VECTORIZE_VEC_PERM_CONST): Define target macro.
16009 2021-08-04 Andreas Krebbel <krebbel@linux.ibm.com>
16011 * config/s390/vector.md (V_HW_64): Remove mode iterator.
16012 (*vec_load_pair<mode>): Use V_HW_2 instead of V_HW_64.
16013 * config/s390/vx-builtins.md
16014 (vec_scatter_element<V_HW_2:mode>_SI): Use V_HW_2 instead of
16017 2021-08-04 Andreas Krebbel <krebbel@linux.ibm.com>
16019 * config/s390/s390.md (UNSPEC_VEC_PERMI): Remove constant
16021 * config/s390/vector.md (*vpdi1<mode>, *vpdi4<mode>): New pattern
16023 * config/s390/vx-builtins.md (*vec_permi<mode>): Emit generic rtx
16024 instead of an unspec.
16026 2021-08-04 Andreas Krebbel <krebbel@linux.ibm.com>
16028 * config/s390/s390-modes.def: Add more vector modes to support
16029 concatenation of two vectors.
16030 * config/s390/s390-protos.h (s390_expand_merge_perm_const): Add
16032 (s390_expand_merge): Likewise.
16033 * config/s390/s390.c (s390_expand_merge_perm_const): New function.
16034 (s390_expand_merge): New function.
16035 * config/s390/s390.md (UNSPEC_VEC_MERGEH, UNSPEC_VEC_MERGEL):
16036 Remove constant definitions.
16037 * config/s390/vector.md (V_HW_2): Add mode iterators.
16038 (VI_HW_4, V_HW_4): Rename VI_HW_4 to V_HW_4.
16039 (vec_2x_nelts, vec_2x_wide): New mode attributes.
16040 (*vmrhb, *vmrlb, *vmrhh, *vmrlh, *vmrhf, *vmrlf, *vmrhg, *vmrlg):
16041 New pattern definitions.
16042 (vec_widen_umult_lo_<mode>, vec_widen_umult_hi_<mode>)
16043 (vec_widen_smult_lo_<mode>, vec_widen_smult_hi_<mode>)
16044 (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf, vec_unpacks_lo_v2df)
16045 (vec_unpacks_hi_v2df): Adjust expanders to emit non-unspec RTX for
16047 * config/s390/vx-builtins.md (V_HW_4): Remove mode iterator. Now
16049 (vec_mergeh<mode>, vec_mergel<mode>): Use s390_expand_merge to
16050 emit vec merge pattern.
16052 2021-08-04 Jonathan Wright <jonathan.wright@arm.com>
16054 * config/aarch64/aarch64.c (aarch64_strip_extend_vec_half):
16056 (aarch64_rtx_mult_cost): Traverse RTL tree to prevent cost of
16057 vec_select high-half from being added into Neon multiply
16059 * rtlanal.c (vec_series_highpart_p): Define.
16060 * rtlanal.h (vec_series_highpart_p): Declare.
16062 2021-08-04 Jonathan Wright <jonathan.wright@arm.com>
16064 * config/aarch64/aarch64.c (aarch64_strip_duplicate_vec_elt):
16066 (aarch64_rtx_mult_cost): Traverse RTL tree to prevent
16067 vec_select cost from being added into Neon multiply cost.
16069 2021-08-04 Richard Sandiford <richard.sandiford@arm.com>
16071 * tree-vect-loop.c (vect_better_loop_vinfo_p): Detect cases in
16072 which old_loop_vinfo is an epilogue loop that handles a constant
16073 number of iterations.
16075 2021-08-04 Richard Sandiford <richard.sandiford@arm.com>
16077 * tree-vect-loop.c (vect_analyze_loop): Print a dump message
16078 when a reanalyzed loop fails to be cheaper than the current
16081 2021-08-04 Richard Sandiford <richard.sandiford@arm.com>
16083 * config/aarch64/aarch64.c: Fix a typo.
16085 2021-08-04 Vincent Lefèvre <vincent-gcc@vinc17.net>
16087 PR gcov-profile/101773
16088 * gcov-io.c (gcov_close): Check return code of a fclose.
16090 2021-08-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
16093 * dwarf2out.c (dwarf2out_assembly_start): Emit a dummy
16094 .file statement when needed.
16096 2021-08-04 Richard Biener <rguenther@suse.de>
16098 * tree-vect-data-refs.c (vect_check_gather_scatter):
16099 Include widening conversions only when the result is
16100 still handed by native gather or the current offset
16101 size not already matches the data size.
16102 Also succeed analysis in case there's no native support,
16103 noted by a IFN_LAST ifn and a NULL decl.
16104 (vect_analyze_data_refs): Always consider gathers.
16105 * tree-vect-patterns.c (vect_recog_gather_scatter_pattern):
16106 Test for no IFN gather rather than decl gather.
16107 * tree-vect-stmts.c (vect_model_load_cost): Pass in the
16108 gather-scatter info and cost emulated gathers accordingly.
16109 (vect_truncate_gather_scatter_offset): Properly test for
16111 (vect_use_strided_gather_scatters_p): Likewise.
16112 (get_load_store_type): Handle emulated gathers and its
16114 (vectorizable_load): Likewise. Emulate them by extracting
16115 scalar offsets, doing scalar loads and a vector construct.
16117 2021-08-04 H.J. Lu <hjl.tools@gmail.com>
16120 * expr.c (op_by_pieces_d::op_by_pieces_d): Add a max_pieces
16121 argument to set m_max_size.
16122 (move_by_pieces_d): Pass MOVE_MAX_PIECES to op_by_pieces_d.
16123 (store_by_pieces_d): Pass STORE_MAX_PIECES to op_by_pieces_d.
16124 (compare_by_pieces_d): Pass COMPARE_MAX_PIECES to op_by_pieces_d.
16126 2021-08-04 Roger Sayle <roger@nextmovesoftware.com>
16127 Marc Glisse <marc.glisse@inria.fr>
16129 * match.pd (bit_ior, bit_xor): Canonicalize (X*C1)|(X*C2) and
16130 (X*C1)^(X*C2) as X*(C1+C2), and related variants, using
16131 tree_nonzero_bits to ensure that operands are bit-wise disjoint.
16133 2021-08-04 Richard Biener <rguenther@suse.de>
16135 * tree-ssa-forwprop.c (pass_forwprop::execute): Split
16136 out code to decompose vector loads ...
16137 (optimize_vector_load): ... here. Generalize it to
16138 handle intermediate widening and TARGET_MEM_REF loads
16139 and apply it to loads with a supported vector mode as well.
16141 2021-08-04 Richard Biener <rguenther@suse.de>
16143 PR tree-optimization/101756
16144 * tree-vect-slp.c (vectorizable_bb_reduc_epilogue): Make sure
16145 the result of the reduction epilogue is compatible to the original
16148 2021-08-04 liuhongt <hongtao.liu@intel.com>
16151 * config/i386/i386.md (peephole2): Refine predicate from
16152 register_operand to general_reg_operand.
16154 2021-08-04 Aldy Hernandez <aldyh@redhat.com>
16156 * gimple-range-path.h (path_range_query::dump): Mark override.
16158 2021-08-04 Richard Biener <rguenther@suse.de>
16160 PR tree-optimization/101769
16161 * tree-tailcall.c (eliminate_tail_call): Add the created loop
16162 for the first recursion and return it via the new output parameter.
16163 (optimize_tail_call): Pass through new output param.
16164 (tree_optimize_tail_calls_1): After creating all latches,
16165 add the created loop to the loop tree. Do not mark loops for fixup.
16167 2021-08-04 Martin Liska <mliska@suse.cz>
16169 * doc/invoke.texi: Document threader-mode param.
16171 2021-08-04 liuhongt <hongtao.liu@intel.com>
16173 * config/i386/sse.md (cond_fma<mode>): New expander.
16174 (cond_fms<mode>): Ditto.
16175 (cond_fnma<mode>): Ditto.
16176 (cond_fnms<mode>): Ditto.
16178 2021-08-03 Segher Boessenkool <segher@kernel.crashing.org>
16180 * config/rs6000/vsx.md (*vsx_le_perm_store_<mode>): Use && instead of &.
16182 2021-08-03 Segher Boessenkool <segher@kernel.crashing.org>
16184 * config/rs6000/constraints.md: Remove "e" from the list of available
16185 constraint characters.
16187 2021-08-03 Eugene Rozenfeld <erozen@microsoft.com>
16189 PR gcov-profile/71672
16190 * auto-profile.c (afdo_indirect_call): Fix setup of the historgram value for indirect calls.
16192 2021-08-03 Paul A. Clarke <pc@us.ibm.com>
16194 * config/rs6000/smmintrin.h (_mm_minpos_epu16): New.
16196 2021-08-03 H.J. Lu <hjl.tools@gmail.com>
16198 * config/i386/i386.c (ix86_gen_scratch_sse_rtx): In 64-bit mode,
16199 try XMM31 to avoid vzeroupper.
16201 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
16203 * doc/invoke.texi: Document -mtune=neoverse-512tvb and
16204 -mcpu=neoverse-512tvb.
16205 * config/aarch64/aarch64-cores.def (neoverse-512tvb): New entry.
16206 * config/aarch64/aarch64-tune.md: Regenerate.
16207 * config/aarch64/aarch64.c (neoverse512tvb_sve_vector_cost)
16208 (neoverse512tvb_sve_issue_info, neoverse512tvb_vec_issue_info)
16209 (neoverse512tvb_vector_cost, neoverse512tvb_tunings): New structures.
16210 (aarch64_adjust_body_cost_sve): Handle -mtune=neoverse-512tvb.
16211 (aarch64_adjust_body_cost): Likewise.
16213 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
16215 * config/aarch64/aarch64.c (aarch64_add_stmt_cost): Only
16216 record issue information for operations that occur in the
16219 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
16221 * config/aarch64/aarch64.c (aarch64_multiply_add_p): Add a vec_flags
16222 parameter. Detect cases in which an Advanced SIMD MLA would almost
16223 certainly require a MOV.
16224 (aarch64_count_ops): Update accordingly.
16226 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
16228 * config/aarch64/aarch64.c (aarch64_is_store_elt_extraction): New
16229 function, split out from...
16230 (aarch64_detect_vector_stmt_subtype): ...here.
16231 (aarch64_add_stmt_cost): Treat extracting element 0 as free.
16233 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
16235 * config/aarch64/aarch64-protos.h (sve_vec_cost):
16236 Add gather_load_x32_cost and gather_load_x64_cost.
16237 * config/aarch64/aarch64.c (generic_sve_vector_cost)
16238 (a64fx_sve_vector_cost, neoversev1_sve_vector_cost): Update
16239 accordingly, using the values given by the scalar_load * number
16240 of elements calculation that we used previously.
16241 (aarch64_detect_vector_stmt_subtype): Use the new fields.
16243 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
16245 * config/aarch64/aarch64.c (aarch64_adjust_body_cost_sve): New
16246 function, split out from...
16247 (aarch64_adjust_body_cost): ...here.
16249 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
16251 * config/aarch64/fractional-cost.h: New file.
16252 * config/aarch64/aarch64.c: Include <algorithm> (indirectly)
16253 and cost_fraction.h.
16254 (vec_cost_fraction): New typedef.
16255 (aarch64_detect_scalar_stmt_subtype): Use it for statement costs.
16256 (aarch64_detect_vector_stmt_subtype): Likewise.
16257 (aarch64_sve_adjust_stmt_cost, aarch64_adjust_stmt_cost): Likewise.
16258 (aarch64_estimate_min_cycles_per_iter): Use vec_cost_fraction
16260 (aarch64_adjust_body_cost): Likewise.
16261 (aarch64_test_cost_fraction): New function.
16262 (aarch64_run_selftests): Call it.
16264 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
16266 * config/aarch64/aarch64-protos.h (tune_params::sve_width): Turn
16268 * config/aarch64/aarch64.c (aarch64_cmp_autovec_modes): Update
16270 (aarch64_estimated_poly_value): Likewise. Use the least significant
16271 set bit for the minimum and likely values. Use the most significant
16272 set bit for the maximum value.
16274 2021-08-03 liuhongt <hongtao.liu@intel.com>
16276 * config/i386/sse.md (cond_<insn><mode>): New expander.
16277 (cond_mul<mode>): Ditto.
16279 2021-08-03 Kewen Lin <linkw@linux.ibm.com>
16281 * tree-cfg.c (move_sese_region_to_fn): Fix typos on dloop.
16283 2021-08-03 liuhongt <hongtao.liu@intel.com>
16285 * config/i386/sse.md (cond_<insn><mode>):New expander.
16286 (cond_mul<mode>): Ditto.
16287 (cond_div<mode>): Ditto.
16289 2021-08-02 H.J. Lu <hjl.tools@gmail.com>
16291 * config/i386/i386.c (ix86_finalize_stack_frame_flags): Also
16292 check stack_realign_needed for stack realignment.
16293 (ix86_legitimate_constant_p): Always allow CONST_WIDE_INT smaller
16294 than the largest integer supported by vector register.
16295 * config/i386/i386.h (MAX_MOVE_MAX): New. Set to 64.
16296 (MOVE_MAX): Set to bytes of the largest integer supported by
16298 (STORE_MAX_PIECES): New.
16300 2021-08-02 H.J. Lu <hjl.tools@gmail.com>
16302 * config/i386/i386-expand.c (ix86_expand_vector_move): Call
16303 ix86_gen_scratch_sse_rtx to get a scratch SSE register to copy
16304 data from one memory location to another.
16306 2021-08-02 H.J. Lu <hjl.tools@gmail.com>
16308 PR middle-end/90773
16309 * config/i386/i386.c (TARGET_GEN_MEMSET_SCRATCH_RTX): New.
16311 2021-08-02 Aldy Hernandez <aldyh@redhat.com>
16313 PR tree-optimization/101724
16314 * params.opt: Remove --param=threader-iterative.
16315 * tree-ssa-threadbackward.c (pass_thread_jumps::execute): Remove
16318 2021-08-02 Tom de Vries <tdevries@suse.de>
16320 PR middle-end/101665
16321 * doc/extend.texi (nonnull attribute): Improve documentation.
16323 2021-08-02 Andrew Pinski <apinski@marvell.com>
16325 PR rtl-optimization/101683
16326 * rtlanal.c (may_trap_p_1): Handle UNSIGNED_FIX.
16328 2021-08-02 Roger Sayle <roger@nextmovesoftware.com>
16330 * tree-ssa-phiopt.c (cond_removal_in_builtin_zero_pattern):
16331 Renamed from cond_removal_in_popcount_clz_ctz_pattern.
16332 Add support for BSWAP, FFS, PARITY and CLRSB builtins.
16333 (tree_ssa_phiop_worker): Update call to function above.
16335 2021-08-01 H.J. Lu <hjl.tools@gmail.com>
16338 * config/i386/i386.md (bsr_rex64_1_zext): New.
16339 (combine splitter for constant - clzll): Replace gen_bsr_rex64_1
16340 with gen_bsr_rex64_1_zext.
16342 2021-07-31 Jakub Jelinek <jakub@redhat.com>
16345 * config/i386/i386.md (bsr_rex64_1, bsr_1, bsr_zext_1): New
16346 define_insn patterns.
16347 (*bsr_rex64_2, *bsr_2): New define_insn_and_split patterns.
16348 Add combine splitters for constant - clz.
16349 (clz<mode>2): Use a temporary pseudo for bsr result.
16351 2021-07-30 Paul A. Clarke <pc@us.ibm.com>
16353 * config/rs6000/smmintrin.h (_mm_floor_pd, _mm_floor_ps,
16354 _mm_floor_sd, _mm_floor_ss): New.
16356 2021-07-30 Paul A. Clarke <pc@us.ibm.com>
16358 * config/rs6000/smmintrin.h (_mm_ceil_pd, _mm_ceil_ps,
16359 _mm_ceil_sd, _mm_ceil_ss): New.
16361 2021-07-30 Paul A. Clarke <pc@us.ibm.com>
16363 * config/rs6000/smmintrin.h (_mm_blend_pd, _mm_blendv_pd,
16364 _mm_blend_ps, _mm_blendv_ps): New.
16366 2021-07-30 Roger Sayle <roger@nextmovesoftware.com>
16367 Uroš Bizjak <ubizjak@gmail.com>
16369 * config/i386/i386.md (*dec_cmov<mode>): New define_insn_and_split
16370 to generate a conditional move using the carry flag after sub $1.
16371 (peephole2): Eliminate a register-to-register move by inverting
16372 the condition of a conditional move.
16374 2021-07-30 Hans-Peter Nilsson <hp@bitrange.com>
16376 * config/mmix/mmix.md ("call", "call_value", "*call_real")
16377 ("*call_value_real"): Don't generate rtx mentioning the generic
16378 operands 1 and 2 to "call", and similarly for "call_value".
16379 * config/mmix/mmix.c (mmix_print_operand_punct_valid_p)
16380 (mmix_print_operand): Use '!' instead of 'p'.
16382 2021-07-30 Hans-Peter Nilsson <hp@bitrange.com>
16384 * doc/md.texi (call): Correct information about operand 2.
16385 * config/mmix/mmix.md ("call", "call_value"): Remove fixed FIXMEs.
16387 2021-07-30 Andrew MacLeod <amacleod@redhat.com>
16389 * range-op.cc (operator_trunc_mod::wi_fold): Fold constants.
16391 2021-07-30 Andrew MacLeod <amacleod@redhat.com>
16393 * range-op.cc (operator_div::wi_fold): Return UNDEFINED for [0, 0] divisor.
16395 2021-07-30 Andrew MacLeod <amacleod@redhat.com>
16397 * gimple-range-cache.cc (*::set_bb_range): Change const basic_block to
16398 const_basic_block..
16399 (*::get_bb_range): Ditto.
16400 (*::bb_range_p): Ditto.
16401 * gimple-range-cache.h: Change prototypes.
16403 2021-07-30 H.J. Lu <hjl.tools@gmail.com>
16405 PR middle-end/90773
16406 * builtins.c (builtin_memcpy_read_str): Change the mode argument
16407 from scalar_int_mode to fixed_size_mode.
16408 (builtin_strncpy_read_str): Likewise.
16409 (gen_memset_value_from_prev): New function.
16410 (builtin_memset_read_str): Change the mode argument from
16411 scalar_int_mode to fixed_size_mode. Use gen_memset_value_from_prev
16412 and support CONST_VECTOR.
16413 (builtin_memset_gen_str): Likewise.
16414 (try_store_by_multiple_pieces): Use by_pieces_constfn to declare
16416 * builtins.h (builtin_strncpy_read_str): Replace scalar_int_mode
16417 with fixed_size_mode.
16418 (builtin_memset_read_str): Likewise.
16419 * expr.c (widest_int_mode_for_size): Renamed to ...
16420 (widest_fixed_size_mode_for_size): Add a bool argument to
16421 indicate if QI vector mode can be used.
16422 (by_pieces_ninsns): Call widest_fixed_size_mode_for_size
16423 instead of widest_int_mode_for_size.
16424 (pieces_addr::adjust): Change the mode argument from
16425 scalar_int_mode to fixed_size_mode.
16426 (op_by_pieces_d): Make m_len read-only. Add a bool member,
16427 m_qi_vector_mode, to indicate that QI vector mode can be used.
16428 (op_by_pieces_d::op_by_pieces_d): Add a bool argument to
16429 initialize m_qi_vector_mode. Call widest_fixed_size_mode_for_size
16430 instead of widest_int_mode_for_size.
16431 (op_by_pieces_d::get_usable_mode): Change the mode argument from
16432 scalar_int_mode to fixed_size_mode. Call
16433 widest_fixed_size_mode_for_size instead of
16434 widest_int_mode_for_size.
16435 (op_by_pieces_d::smallest_fixed_size_mode_for_size): New member
16436 function to return the smallest integer or QI vector mode.
16437 (op_by_pieces_d::run): Call widest_fixed_size_mode_for_size
16438 instead of widest_int_mode_for_size. Call
16439 smallest_fixed_size_mode_for_size instead of
16440 smallest_int_mode_for_size.
16441 (store_by_pieces_d::store_by_pieces_d): Add a bool argument to
16442 indicate that QI vector mode can be used and pass it to
16443 op_by_pieces_d::op_by_pieces_d.
16444 (can_store_by_pieces): Call widest_fixed_size_mode_for_size
16445 instead of widest_int_mode_for_size. Pass memsetp to
16446 widest_fixed_size_mode_for_size to support QI vector mode.
16447 Allow all CONST_VECTORs for memset if vec_duplicate is supported.
16448 (store_by_pieces): Pass memsetp to
16449 store_by_pieces_d::store_by_pieces_d.
16450 (clear_by_pieces_1): Removed.
16451 (clear_by_pieces): Replace clear_by_pieces_1 with
16452 builtin_memset_read_str and pass true to store_by_pieces_d to
16453 support vector mode broadcast.
16454 (string_cst_read_str): Change the mode argument from
16455 scalar_int_mode to fixed_size_mode.
16456 * expr.h (by_pieces_constfn): Change scalar_int_mode to
16458 (by_pieces_prev): Likewise.
16459 * rtl.h (lowpart_subreg_regno): New.
16460 * rtlanal.c (lowpart_subreg_regno): New. A wrapper around
16461 simplify_subreg_regno.
16462 * target.def (gen_memset_scratch_rtx): New hook.
16463 * doc/tm.texi.in: Add TARGET_GEN_MEMSET_SCRATCH_RTX.
16464 * doc/tm.texi: Regenerated.
16466 2021-07-30 Xi Ruoyao <xry111@mengyan1223.wang>
16469 * config/mips/mips.c (mips_atomic_assign_expand_fenv): Use
16470 TARGET_EXPR instead of MODIFY_EXPR.
16472 2021-07-30 Xi Ruoyao <xry111@mengyan1223.wang>
16475 * config/mips/mips-protos.h (mips_expand_vec_cmp_expr): Declare.
16476 * config/mips/mips.c (mips_expand_vec_cmp_expr): New function.
16477 * config/mips/mips-msa.md (vec_cmp<MSA:mode><mode_i>): New
16479 (vec_cmpu<IMSA:mode><mode_i>): New expander.
16481 2021-07-30 H.J. Lu <hjl.tools@gmail.com>
16484 * config/i386/i386-options.c (ix86_option_override_internal):
16485 Don't enable LZCNT/POPCNT if they have been disabled explicitly.
16487 2021-07-30 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
16490 * config/arm/arm_neon.h (vld1_p64): Replace call to builtin by
16491 explicitly dereferencing __a.
16492 (vld1_s64): Likewise.
16493 (vld1_u64): Likewise.
16494 * config/arm/arm_neon_builtins.def (vld1): Remove entry for di
16495 and change to VAR13.
16497 2021-07-30 Aldy Hernandez <aldyh@redhat.com>
16499 * gimple-loop-versioning.cc (lv_dom_walker::lv_dom_walker): Remove
16500 use of m_range_analyzer.
16501 (loop_versioning::lv_dom_walker::before_dom_children): Same.
16502 (loop_versioning::lv_dom_walker::after_dom_children): Remove.
16503 (loop_versioning::prune_loop_conditions): Replace vr_values use
16504 with range_query interface.
16505 (pass_loop_versioning::execute): Use ranger.
16507 2021-07-30 Xi Ruoyao <xry111@mengyan1223.wang>
16510 * ipa-devirt.c (ipa_odr_read_section): Compare the precision of
16511 enum values, and emit a warning if they mismatch.
16513 2021-07-30 Kewen Lin <linkw@linux.ibm.com>
16515 * cfgloop.h (as_const): New function.
16516 (class loop_iterator): Rename to ...
16517 (class loops_list): ... this.
16518 (loop_iterator::next): Rename to ...
16519 (loops_list::Iter::fill_curr_loop): ... this and adjust.
16520 (loop_iterator::loop_iterator): Rename to ...
16521 (loops_list::loops_list): ... this and adjust.
16522 (loops_list::Iter): New class.
16523 (loops_list::iterator): New type.
16524 (loops_list::const_iterator): New type.
16525 (loops_list::begin): New function.
16526 (loops_list::end): Likewise.
16527 (loops_list::begin const): Likewise.
16528 (loops_list::end const): Likewise.
16529 (FOR_EACH_LOOP): Remove.
16530 (FOR_EACH_LOOP_FN): Remove.
16531 * cfgloop.c (flow_loops_dump): Adjust FOR_EACH_LOOP* with range-based
16532 for loop with loops_list instance.
16533 (sort_sibling_loops): Likewise.
16534 (disambiguate_loops_with_multiple_latches): Likewise.
16535 (verify_loop_structure): Likewise.
16536 * cfgloopmanip.c (create_preheaders): Likewise.
16537 (force_single_succ_latches): Likewise.
16538 * config/aarch64/falkor-tag-collision-avoidance.c
16539 (execute_tag_collision_avoidance): Likewise.
16540 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Likewise.
16541 * config/s390/s390.c (s390_adjust_loops): Likewise.
16542 * doc/loop.texi: Likewise.
16543 * gimple-loop-interchange.cc (pass_linterchange::execute): Likewise.
16544 * gimple-loop-jam.c (tree_loop_unroll_and_jam): Likewise.
16545 * gimple-loop-versioning.cc (loop_versioning::analyze_blocks): Likewise.
16546 (loop_versioning::make_versioning_decisions): Likewise.
16547 * gimple-ssa-split-paths.c (split_paths): Likewise.
16548 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl): Likewise.
16549 * graphite.c (canonicalize_loop_form): Likewise.
16550 (graphite_transform_loops): Likewise.
16551 * ipa-fnsummary.c (analyze_function_body): Likewise.
16552 * ipa-pure-const.c (analyze_function): Likewise.
16553 * loop-doloop.c (doloop_optimize_loops): Likewise.
16554 * loop-init.c (loop_optimizer_finalize): Likewise.
16555 (fix_loop_structure): Likewise.
16556 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
16557 (move_loop_invariants): Likewise.
16558 * loop-unroll.c (decide_unrolling): Likewise.
16559 (unroll_loops): Likewise.
16560 * modulo-sched.c (sms_schedule): Likewise.
16561 * predict.c (predict_loops): Likewise.
16562 (pass_profile::execute): Likewise.
16563 * profile.c (branch_prob): Likewise.
16564 * sel-sched-ir.c (sel_finish_pipelining): Likewise.
16565 (sel_find_rgns): Likewise.
16566 * tree-cfg.c (replace_loop_annotate): Likewise.
16567 (replace_uses_by): Likewise.
16568 (move_sese_region_to_fn): Likewise.
16569 * tree-if-conv.c (pass_if_conversion::execute): Likewise.
16570 * tree-loop-distribution.c (loop_distribution::execute): Likewise.
16571 * tree-parloops.c (parallelize_loops): Likewise.
16572 * tree-predcom.c (tree_predictive_commoning): Likewise.
16573 * tree-scalar-evolution.c (scev_initialize): Likewise.
16574 (scev_reset): Likewise.
16575 * tree-ssa-dce.c (find_obviously_necessary_stmts): Likewise.
16576 * tree-ssa-live.c (remove_unused_locals): Likewise.
16577 * tree-ssa-loop-ch.c (ch_base::copy_headers): Likewise.
16578 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
16579 (tree_ssa_lim_initialize): Likewise.
16580 * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Likewise.
16581 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize): Likewise.
16582 * tree-ssa-loop-manip.c (get_loops_exits): Likewise.
16583 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations): Likewise.
16584 (free_numbers_of_iterations_estimates): Likewise.
16585 * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
16586 * tree-ssa-loop-split.c (tree_ssa_split_loops): Likewise.
16587 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Likewise.
16588 * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
16589 (pass_scev_cprop::execute): Likewise.
16590 * tree-ssa-propagate.c (clean_up_loop_closed_phi): Likewise.
16591 * tree-ssa-sccvn.c (do_rpo_vn): Likewise.
16592 * tree-ssa-threadupdate.c
16593 (jump_thread_path_registry::thread_through_all_blocks): Likewise.
16594 * tree-vectorizer.c (vectorize_loops): Likewise.
16595 * tree-vrp.c (vrp_asserts::find_assert_locations): Likewise.
16597 2021-07-29 Hans-Peter Nilsson <hp@bitrange.com>
16599 * config/mmix/mmix.c (mmix_function_arg_1): Avoid
16600 generating a VOIDmode register for e.g the
16601 function_arg_info::end_marker.
16603 2021-07-29 Jeff Law <jeffreyalaw@gmail.com>
16605 * config/h8300/h8300-modes.def: Add CCZ, CCV and CCC, drop CCZNV.
16606 * config/h8300/h8300.md (H8cc mode iterator): Add CCZ.
16607 (cc mode_attr): Similarly.
16608 (ccz subst_attr): Similarly.
16609 * config/h8300/jumpcall.md: Add new patterns for branch-on-bit.
16610 * config/h8300/testcompare.md: Remove various cc0 based patterns
16611 that had been commented out. Add pattern to set CCZ from a bit
16614 2021-07-29 Thomas Schwinge <thomas@codesourcery.com>
16615 Julian Brown <julian@codesourcery.com>
16616 Kwok Cheung Yeung <kcy@codesourcery.com>
16618 * omp-offload.c (oacc_loop_xform_head_tail, oacc_loop_process):
16619 'update_stmt' after modification.
16620 (pass_oacc_loop_designation): New function, extracted out of...
16621 (pass_oacc_device_lower): ... this.
16622 (pass_data_oacc_loop_designation, pass_oacc_loop_designation)
16623 (make_pass_oacc_loop_designation): New
16624 * passes.def: Add it.
16625 * tree-parloops.c (create_parallel_loop): Adjust.
16626 * tree-pass.h (make_pass_oacc_loop_designation): New.
16628 2021-07-29 Aldy Hernandez <aldyh@redhat.com>
16630 * flag-types.h (enum threader_mode): New.
16631 * params.opt: Add entry for --param=threader-mode.
16632 * tree-ssa-threadbackward.c (THREADER_ITERATIVE_MODE): New.
16633 (class back_threader): New.
16634 (back_threader::back_threader): New.
16635 (back_threader::~back_threader): New.
16636 (back_threader::maybe_register_path): New.
16637 (back_threader::find_taken_edge): New.
16638 (back_threader::find_taken_edge_switch): New.
16639 (back_threader::find_taken_edge_cond): New.
16640 (back_threader::resolve_def): New.
16641 (back_threader::resolve_phi): New.
16642 (back_threader::find_paths_to_names): New.
16643 (back_threader::find_paths): New.
16646 (thread_jumps::find_jump_threads_backwards): Call ranger threader.
16647 (thread_jumps::find_jump_threads_backwards_with_ranger): New.
16648 (pass_thread_jumps::execute): Abstract out code...
16649 (try_thread_blocks): ...here.
16650 * tree-ssa-threadedge.c (jump_threader::thread_outgoing_edges):
16651 Abstract out threading candidate code to...
16652 (single_succ_to_potentially_threadable_block): ...here.
16653 * tree-ssa-threadedge.h (single_succ_to_potentially_threadable_block):
16655 * tree-ssa-threadupdate.c (register_jump_thread): Return boolean.
16656 * tree-ssa-threadupdate.h (class jump_thread_path_registry):
16657 Return bool from register_jump_thread.
16659 2021-07-29 Andreas Krebbel <krebbel@linux.ibm.com>
16661 * target.def: in0 and in1 do not need to be registers.
16662 * doc/tm.texi: Regenerate.
16664 2021-07-29 liuhongt <hongtao.liu@intel.com>
16667 * config/i386/i386.c (ix86_widen_mult_cost): New function.
16668 (ix86_add_stmt_cost): Use ix86_widen_mult_cost for
16671 2021-07-29 Jiufu Guo <guojiufu@linux.ibm.com>
16674 * config/rs6000/rs6000.c (TARGET_PREFERRED_DOLOOP_MODE): New hook.
16675 (rs6000_preferred_doloop_mode): New hook.
16676 * doc/tm.texi: Regenerate.
16677 * doc/tm.texi.in: Add hook preferred_doloop_mode.
16678 * target.def (preferred_doloop_mode): New hook.
16679 * targhooks.c (default_preferred_doloop_mode): New hook.
16680 * targhooks.h (default_preferred_doloop_mode): New hook.
16681 * tree-ssa-loop-ivopts.c (compute_doloop_base_on_mode): New function.
16682 (add_iv_candidate_for_doloop): Call targetm.preferred_doloop_mode
16683 and compute_doloop_base_on_mode.
16685 2021-07-28 Martin Sebor <msebor@redhat.com>
16687 PR middle-end/101494
16688 * tree-ssa-uninit.c (maybe_warn_operand): Correct object offset
16689 and size computation.
16691 2021-07-28 Martin Sebor <msebor@redhat.com>
16693 PR middle-end/101601
16694 * gimple-array-bounds.cc (array_bounds_checker::check_mem_ref): Remove
16696 Handle pointers to functions.
16698 2021-07-28 Martin Sebor <msebor@redhat.com>
16700 * Makefile.in (OBJS): Add gimple-ssa-warn-access.o and pointer-query.o.
16701 * attribs.h (fndecl_dealloc_argno): Move fndecl_dealloc_argno to tree.h.
16702 * builtins.c (compute_objsize_r): Move to pointer-query.cc.
16703 (access_ref::access_ref): Same.
16704 (access_ref::phi): Same.
16705 (access_ref::get_ref): Same.
16706 (access_ref::size_remaining): Same.
16707 (access_ref::offset_in_range): Same.
16708 (access_ref::add_offset): Same.
16709 (access_ref::inform_access): Same.
16710 (ssa_name_limit_t::visit_phi): Same.
16711 (ssa_name_limit_t::leave_phi): Same.
16712 (ssa_name_limit_t::next): Same.
16713 (ssa_name_limit_t::next_phi): Same.
16714 (ssa_name_limit_t::~ssa_name_limit_t): Same.
16715 (pointer_query::pointer_query): Same.
16716 (pointer_query::get_ref): Same.
16717 (pointer_query::put_ref): Same.
16718 (pointer_query::flush_cache): Same.
16719 (warn_string_no_nul): Move to gimple-ssa-warn-access.cc.
16720 (check_nul_terminated_array): Same.
16721 (unterminated_array): Same.
16722 (maybe_warn_for_bound): Same.
16723 (check_read_access): Same.
16724 (warn_for_access): Same.
16725 (get_size_range): Same.
16726 (check_access): Same.
16727 (gimple_call_alloc_size): Move to tree.c.
16728 (gimple_parm_array_size): Move to pointer-query.cc.
16729 (get_offset_range): Same.
16730 (gimple_call_return_array): Same.
16731 (handle_min_max_size): Same.
16732 (handle_array_ref): Same.
16733 (handle_mem_ref): Same.
16734 (compute_objsize): Same.
16735 (gimple_call_alloc_p): Move to gimple-ssa-warn-access.cc.
16736 (call_dealloc_argno): Same.
16737 (fndecl_dealloc_argno): Same.
16738 (new_delete_mismatch_p): Same.
16739 (matching_alloc_calls_p): Same.
16740 (warn_dealloc_offset): Same.
16741 (maybe_emit_free_warning): Same.
16742 * builtins.h (check_nul_terminated_array): Move to
16743 gimple-ssa-warn-access.h.
16744 (check_nul_terminated_array): Same.
16745 (warn_string_no_nul): Same.
16746 (unterminated_array): Same.
16747 (class ssa_name_limit_t): Same.
16748 (class pointer_query): Same.
16749 (struct access_ref): Same.
16750 (class range_query): Same.
16751 (struct access_data): Same.
16752 (gimple_call_alloc_size): Same.
16753 (gimple_parm_array_size): Same.
16754 (compute_objsize): Same.
16755 (class access_data): Same.
16756 (maybe_emit_free_warning): Same.
16757 * calls.c (initialize_argument_information): Remove call to
16758 maybe_emit_free_warning.
16759 * gimple-array-bounds.cc: Include new header..
16760 * gimple-fold.c: Same.
16761 * gimple-ssa-sprintf.c: Same.
16762 * gimple-ssa-warn-restrict.c: Same.
16763 * passes.def: Add pass_warn_access.
16764 * tree-pass.h (make_pass_warn_access): Declare.
16765 * tree-ssa-strlen.c: Include new headers.
16766 * tree.c (fndecl_dealloc_argno): Move here from builtins.c.
16767 * tree.h (fndecl_dealloc_argno): Move here from attribs.h.
16768 * gimple-ssa-warn-access.cc: New file.
16769 * gimple-ssa-warn-access.h: New file.
16770 * pointer-query.cc: New file.
16771 * pointer-query.h: New file.
16773 2021-07-28 Jakub Jelinek <jakub@redhat.com>
16775 PR middle-end/101624
16776 * ubsan.c (maybe_instrument_pointer_overflow,
16777 instrument_object_size): Only test DECL_REGISTER on VAR_DECLs,
16778 PARM_DECLs or RESULT_DECLs.
16779 * sanopt.c (maybe_optimize_ubsan_ptr_ifn): Likewise.
16781 2021-07-28 Jakub Jelinek <jakub@redhat.com>
16783 PR middle-end/101642
16784 * match.pd (bswap16 (x) == bswap16 (y)): Cast both operands
16785 to type of bswap16 for comparison.
16786 (bswap16 (x) == cst): Cast bswap16 operand to type of cst.
16788 2021-07-28 Richard Biener <rguenther@suse.de>
16790 PR tree-optimization/101615
16791 * tree-vect-slp.c (vect_optimize_slp): Materialize permutes
16792 at CTOR SLP graph entries.
16794 2021-07-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16796 * config/aarch64/aarch64.md (*extend<SHORT:mode><GPI:mode>2_aarch64):
16797 Add "r,w" alternative.
16799 2021-07-28 H.J. Lu <hjl.tools@gmail.com>
16802 * config/i386/i386.c (ix86_avx_u128_mode_needed): Don't set
16803 AVX_U128_DIRTY when all bits are zero.
16805 2021-07-28 Richard Biener <rguenther@suse.de>
16807 PR tree-optimization/101615
16808 * tree-vect-slp.c (vect_optimize_slp): Pre-existing vector
16809 external nodes cannot be permuted so make them perm_out 0.
16811 2021-07-28 Andrew Stubbs <ams@codesourcery.com>
16814 * config.in: Regenerate.
16815 * config/gcn/gcn-hsa.h (A_FIJI): New define.
16816 (A_900): New define.
16817 (A_906): New define.
16818 (A_908): New define.
16819 (ASM_SPEC): Use A_FIJI, A_900, A_906 and A_908.
16820 * config/gcn/gcn.c (output_file_start): Adjust attributes according
16821 to the assembler capabilities.
16822 * config/gcn/mkoffload.c (main): Likewise.
16823 * configure: Regenerate.
16824 * configure.ac: Add tests for LLVM assembler attribute features.
16826 2021-07-28 Andrew MacLeod <amacleod@redhat.com>
16828 * gimple-range-gori.cc (gori_compute::outgoing_edge_range_p): Check for
16829 cond_false and cond_true on branches.
16831 2021-07-28 Bin Cheng <bin.cheng@linux.alibaba.com>
16833 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): use
16836 2021-07-28 Bin Cheng <bin.cheng@linux.alibaba.com>
16838 * alias.c (init_alias_analysis): Don't skip prologue/epilogue.
16840 2021-07-28 Jakub Jelinek <jakub@redhat.com>
16843 * config/i386/sse.md (vashr<mode>3): Split into vashrv8di3 expander
16844 and vashrv4di3 expander, where the latter requires just TARGET_AVX2
16845 and has special !TARGET_AVX512VL expansion.
16846 (vashrv2di3<mask_name>): Rename to ...
16847 (vashrv2di3): ... this. Change condition to TARGET_XOP || TARGET_AVX2
16848 and add special !TARGET_XOP && !TARGET_AVX512VL expansion.
16850 2021-07-28 Martin Uecker <muecker@gwdg.de>
16852 * calls.c (maybe_warn_rdwr_sizes): Correct argument
16853 numbers in warning that were switched.
16855 2021-07-28 Kewen Lin <linkw@linux.ibm.com>
16857 PR tree-optimization/101596
16858 * tree-vect-patterns.c (vect_recog_mulhs_pattern): Fix wrong check
16859 by using new_type's precision instead.
16861 2021-07-28 liuhongt <hongtao.liu@intel.com>
16864 * config/i386/i386.h (processor_costs): Add new member
16866 * config/i386/x86-tune-costs.h (ix86_size_cost, i386_cost,
16867 i486_cost, pentium_cost, lakemont_cost, pentiumpro_cost,
16868 geode_cost, k6_cost, athlon_cost, k8_cost, amdfam10_cost,
16869 bdver_cost, znver1_cost, znver2_cost, znver3_cost,
16870 btver1_cost, btver2_cost, btver3_cost, pentium4_cost,
16871 nocona_cost, atom_cost, atom_cost, slm_cost, intel_cost,
16872 generic_cost, core_cost): Initialize integer_to_sse same value
16874 (skylake_cost): Initialize integer_to_sse twice as much as sse_op.
16875 * config/i386/i386.c (ix86_builtin_vectorization_cost):
16876 Use integer_to_sse instead of sse_op to calculate the cost of
16879 2021-07-27 Bill Schmidt <wschmidt@linux.ibm.com>
16881 * config/rs6000/rs6000-gen-builtins.c (write_ovld_static_init): New
16883 (write_init_file): Call write_ovld_static_init.
16885 2021-07-27 Bill Schmidt <wschmidt@linux.ibm.com>
16887 * config/rs6000/rs6000-gen-builtins.c (write_bif_static_init): New
16889 (write_init_file): Call write_bif_static_init.
16891 2021-07-27 Bill Schmidt <wschmidt@linux.ibm.com>
16893 * config/rs6000/rs6000-gen-builtins.c (typemap): New struct.
16894 (TYPE_MAP_SIZE): New macro.
16895 (type_map): New initialized variable.
16896 (typemap_cmp): New function.
16897 (write_type_node): Likewise.
16898 (write_fntype_init): Implement.
16900 2021-07-27 Martin Sebor <msebor@redhat.com>
16902 PR tree-optimization/101584
16903 * tree-ssa-uninit.c (builtin_call_nomodifying_p): New function.
16904 (check_defs): Call it.
16906 2021-07-27 Aldy Hernandez <aldyh@redhat.com>
16908 * tree-ssa-dom.c (dom_jump_threader_simplifier):
16909 Put avail_exprs_stack in the class, instead of passing it to
16910 jump_threader_simplifier.
16911 (dom_jump_threader_simplifier::simplify): Add state argument.
16912 (dom_opt_dom_walker): Add state.
16913 (pass_dominator::execute): Pass state to threader.
16914 (dom_opt_dom_walker::before_dom_children): Use state.
16915 * tree-ssa-threadedge.c (jump_threader::jump_threader): Replace
16916 arguments by state.
16917 (jump_threader::record_temporary_equivalences_from_phis):
16918 Register equivalences through the state variable.
16919 (jump_threader::record_temporary_equivalences_from_stmts_at_dest):
16920 Record ranges in a statement through the state variable.
16921 (jump_threader::simplify_control_stmt_condition): Pass state to
16923 (jump_threader::simplify_control_stmt_condition_1): Same.
16924 (jump_threader::thread_around_empty_blocks): Remove obsolete
16926 (jump_threader::thread_through_normal_block): Record equivalences
16927 on edge through the state variable.
16928 (jump_threader::thread_across_edge): Abstract state pushing.
16929 (jt_state::jt_state): New.
16930 (jt_state::push): New.
16931 (jt_state::pop): New.
16932 (jt_state::register_equiv): New.
16933 (jt_state::record_ranges_from_stmt): New.
16934 (jt_state::register_equivs_on_edge): New.
16935 (jump_threader_simplifier::jump_threader_simplifier): Move from
16937 (jump_threader_simplifier::simplify): Add state argument.
16938 * tree-ssa-threadedge.h (class jt_state): New.
16939 (class jump_threader): Add state to constructor.
16940 (class jump_threader_simplifier): Add state to simplify. Remove
16941 avail_exprs_stack from class.
16942 * tree-vrp.c (vrp_jump_threader_simplifier::simplify): Add state
16944 (vrp_jump_threader::vrp_jump_threader): Add state.
16945 (vrp_jump_threader::~vrp_jump_threader): Cleanup state.
16947 2021-07-27 Aldy Hernandez <aldyh@redhat.com>
16949 * Makefile.in (OBJS): Add gimple-range-path.o.
16950 * gimple-range-path.cc: New file.
16951 * gimple-range-path.h: New file.
16953 2021-07-27 Jonathan Wright <jonathan.wright@arm.com>
16955 * config/aarch64/aarch64-simd.md: Push sign/zero-extension
16956 inside vec_duplicate for all patterns.
16957 * simplify-rtx.c (simplify_context::simplify_unary_operation_1):
16958 Push sign/zero-extension inside vec_duplicate.
16960 2021-07-27 Richard Biener <rguenther@suse.de>
16962 PR tree-optimization/101573
16963 * tree-ssa-uninit.c (warn_uninit_phi_uses): New function
16964 looking at uninitialized PHI arg defs in some constrained cases.
16965 (warn_uninitialized_vars): Call it.
16966 (execute_early_warn_uninitialized): Calculate dominators.
16968 2021-07-27 Richard Biener <rguenther@suse.de>
16970 PR tree-optimization/39821
16971 * tree-vect-stmts.c (vect_model_promotion_demotion_cost): Use
16972 vector_stmt for widening arithmetic.
16973 (vectorizable_conversion): Adjust.
16975 2021-07-27 Martin Jambor <mjambor@suse.cz>
16977 * cgraph.h (ipa_replace_map): New field force_load_ref.
16978 * ipa-prop.h (ipa_param_descriptor): Reduce precision of move_cost,
16979 aded new flag load_dereferenced, adjusted comments.
16980 (ipa_get_param_dereferenced): New function.
16981 (ipa_set_param_dereferenced): Likewise.
16982 * cgraphclones.c (cgraph_node::create_virtual_clone): Follow it.
16983 * ipa-cp.c: Include gimple.h.
16984 (ipcp_discover_new_direct_edges): Take into account dereferenced flag.
16985 (get_replacement_map): New parameter force_load_ref, set the
16986 appropriate flag in ipa_replace_map if set.
16987 (struct symbol_and_index_together): New type.
16988 (adjust_refs_in_act_callers): New function.
16989 (adjust_references_in_caller): Likewise.
16990 (create_specialized_node): When appropriate, call
16991 adjust_references_in_caller and force only load references.
16992 * ipa-prop.c (load_from_dereferenced_name): New function.
16993 (ipa_analyze_controlled_uses): Also detect loads from a
16994 dereference, harden testing of call statements.
16995 (ipa_write_node_info): Stream the dereferenced flag.
16996 (ipa_read_node_info): Likewise.
16997 (ipa_set_jf_constant): Also create refdesc when jump function
16998 references a variable.
16999 (cgraph_node_for_jfunc): Rename to symtab_node_for_jfunc, work
17000 also on references of variables and return a symtab_node. Adjust
17002 (propagate_controlled_uses): Also remove references to VAR_DECLs.
17004 2021-07-27 Jakub Jelinek <jakub@redhat.com>
17006 PR middle-end/101586
17007 * gimple-fold.c (clear_padding_type): Ignore FIELD_DECLs with byte
17008 positions above or equal to sz except for diagnostics of flexible
17011 2021-07-26 Andrew MacLeod <amacleod@redhat.com>
17013 PR tree-optimization/78888
17014 * gimple-range-fold.cc (get_letter_range): New.
17015 (fold_using_range::range_of_builtin_call): Call get_letter_range.
17017 2021-07-26 Andrew MacLeod <amacleod@redhat.com>
17019 PR tree-optimization/78888
17020 * gimple-range-fold.cc (fold_using_range::range_of_builtin_call): Add cases
17021 for CFN_BUILT_IN_TOUPPER and CFN_BUILT_IN_TOLOWER.
17023 2021-07-26 Roger Sayle <roger@nextmovesoftware.com>
17024 Marc Glisse <marc.glisse@inria.fr>
17026 * match.pd (rotate): Simplify equality/inequality of rotations.
17027 (bswap): Simplify equality/inequality tests of byte swapping.
17029 2021-07-26 Aldy Hernandez <aldyh@redhat.com>
17031 * range-op.cc (operator_bitwise_xor::op1_op2_relation_effect):
17034 2021-07-26 Aldy Hernandez <aldyh@redhat.com>
17036 * range-op.cc (operator_lshift::fold_range): Pass rel to
17037 base class fold_range.
17038 (operator_rshift::fold_range): Same.
17040 2021-07-26 Ashimida <ashimida@linux.alibaba.com>
17043 * toplev.h (min_align_loops_log): Remove declaration.
17044 (min_align_jumps_log, min_align_labels_log): Likewise.
17045 (min_align_functions_log): Likewise.
17047 2021-07-26 Aldy Hernandez <aldyh@redhat.com>
17049 * tree-vrp.c (vrp_simplify_cond_using_ranges): Rename vr_values
17051 (execute_vrp): Abstract out simplification of conditionals...
17052 (simplify_casted_conds): ...here.
17054 2021-07-26 Aldy Hernandez <aldyh@redhat.com>
17056 * gimple-array-bounds.cc (array_bounds_checker::get_value_range):
17057 Add gimple argument.
17058 (array_bounds_checker::check_array_ref): Same.
17059 (array_bounds_checker::check_addr_expr): Same.
17060 (array_bounds_checker::check_array_bounds): Pass statement to
17061 check_array_bounds and check_addr_expr.
17062 * gimple-array-bounds.h (check_array_bounds): Add gimple argument.
17063 (check_addr_expr): Same.
17064 (get_value_range): Same.
17066 2021-07-26 Tamar Christina <tamar.christina@arm.com>
17068 * config/aarch64/aarch64-simd-builtins.def (sdot, udot): Rename to..
17069 (sdot_prod, udot_prod): ... This.
17070 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>): Merged
17072 (<sur>dot_prod<vsi2qi>): ... this.
17073 (aarch64_<sur>dot_lane<vsi2qi>, aarch64_<sur>dot_laneq<vsi2qi>):
17074 Change operands order.
17075 (<sur>sadv16qi): Use new operands order.
17076 * config/aarch64/arm_neon.h (vdot_u32, vdotq_u32, vdot_s32,
17077 vdotq_s32): Use new RTL ordering.
17079 2021-07-26 Tamar Christina <tamar.christina@arm.com>
17081 * config/aarch64/aarch64-builtins.c (TYPES_TERNOP_SUSS,
17082 aarch64_types_ternop_suss_qualifiers): New.
17083 * config/aarch64/aarch64-simd-builtins.def (usdot_prod): Use it.
17084 * config/aarch64/aarch64-simd.md (usdot_prod<vsi2qi>): Re-organize RTL.
17085 * config/aarch64/arm_neon.h (vusdot_s32, vusdotq_s32): Use it.
17087 2021-07-23 Jakub Jelinek <jakub@redhat.com>
17089 PR rtl-optimization/101562
17090 * expmed.c (store_integral_bit_field): Only use movstrict_optab
17091 if the operand isn't paradoxical.
17093 2021-07-23 Aldy Hernandez <aldyh@redhat.com>
17095 * gimple-array-bounds.h (class array_bounds_checker): Change
17096 ranges type to range_query.
17098 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
17100 * config/aarch64/arm_neon.h (vst1_s64_x2): Use
17101 __builtin_memcpy instead of constructing
17102 __builtin_aarch64_simd_oi one vector at a time.
17103 (vst1_u64_x2): Likewise.
17104 (vst1_f64_x2): Likewise.
17105 (vst1_s8_x2): Likewise.
17106 (vst1_p8_x2): Likewise.
17107 (vst1_s16_x2): Likewise.
17108 (vst1_p16_x2): Likewise.
17109 (vst1_s32_x2): Likewise.
17110 (vst1_u8_x2): Likewise.
17111 (vst1_u16_x2): Likewise.
17112 (vst1_u32_x2): Likewise.
17113 (vst1_f16_x2): Likewise.
17114 (vst1_f32_x2): Likewise.
17115 (vst1_p64_x2): Likewise.
17116 (vst1q_s8_x2): Likewise.
17117 (vst1q_p8_x2): Likewise.
17118 (vst1q_s16_x2): Likewise.
17119 (vst1q_p16_x2): Likewise.
17120 (vst1q_s32_x2): Likewise.
17121 (vst1q_s64_x2): Likewise.
17122 (vst1q_u8_x2): Likewise.
17123 (vst1q_u16_x2): Likewise.
17124 (vst1q_u32_x2): Likewise.
17125 (vst1q_u64_x2): Likewise.
17126 (vst1q_f16_x2): Likewise.
17127 (vst1q_f32_x2): Likewise.
17128 (vst1q_f64_x2): Likewise.
17129 (vst1q_p64_x2): Likewise.
17131 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
17133 * config/aarch64/arm_neon.h (vst1_s64_x3): Use
17134 __builtin_memcpy instead of constructing
17135 __builtin_aarch64_simd_ci one vector at a time.
17136 (vst1_u64_x3): Likewise.
17137 (vst1_f64_x3): Likewise.
17138 (vst1_s8_x3): Likewise.
17139 (vst1_p8_x3): Likewise.
17140 (vst1_s16_x3): Likewise.
17141 (vst1_p16_x3): Likewise.
17142 (vst1_s32_x3): Likewise.
17143 (vst1_u8_x3): Likewise.
17144 (vst1_u16_x3): Likewise.
17145 (vst1_u32_x3): Likewise.
17146 (vst1_f16_x3): Likewise.
17147 (vst1_f32_x3): Likewise.
17148 (vst1_p64_x3): Likewise.
17149 (vst1q_s8_x3): Likewise.
17150 (vst1q_p8_x3): Likewise.
17151 (vst1q_s16_x3): Likewise.
17152 (vst1q_p16_x3): Likewise.
17153 (vst1q_s32_x3): Likewise.
17154 (vst1q_s64_x3): Likewise.
17155 (vst1q_u8_x3): Likewise.
17156 (vst1q_u16_x3): Likewise.
17157 (vst1q_u32_x3): Likewise.
17158 (vst1q_u64_x3): Likewise.
17159 (vst1q_f16_x3): Likewise.
17160 (vst1q_f32_x3): Likewise.
17161 (vst1q_f64_x3): Likewise.
17162 (vst1q_p64_x3): Likewise.
17164 2021-07-23 H.J. Lu <hjl.tools@gmail.com>
17167 * config/i386/i386.c (ix86_gen_scratch_sse_rtx): Don't return
17168 hard register when LRA is in progress.
17170 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
17172 * config/aarch64/arm_neon.h (vst1_s8_x4): Use
17173 __builtin_memcpy instead of using a union.
17174 (vst1q_s8_x4): Likewise.
17175 (vst1_s16_x4): Likewise.
17176 (vst1q_s16_x4): Likewise.
17177 (vst1_s32_x4): Likewise.
17178 (vst1q_s32_x4): Likewise.
17179 (vst1_u8_x4): Likewise.
17180 (vst1q_u8_x4): Likewise.
17181 (vst1_u16_x4): Likewise.
17182 (vst1q_u16_x4): Likewise.
17183 (vst1_u32_x4): Likewise.
17184 (vst1q_u32_x4): Likewise.
17185 (vst1_f16_x4): Likewise.
17186 (vst1q_f16_x4): Likewise.
17187 (vst1_f32_x4): Likewise.
17188 (vst1q_f32_x4): Likewise.
17189 (vst1_p8_x4): Likewise.
17190 (vst1q_p8_x4): Likewise.
17191 (vst1_p16_x4): Likewise.
17192 (vst1q_p16_x4): Likewise.
17193 (vst1_s64_x4): Likewise.
17194 (vst1_u64_x4): Likewise.
17195 (vst1_p64_x4): Likewise.
17196 (vst1q_s64_x4): Likewise.
17197 (vst1q_u64_x4): Likewise.
17198 (vst1q_p64_x4): Likewise.
17199 (vst1_f64_x4): Likewise.
17200 (vst1q_f64_x4): Likewise.
17202 2021-07-23 Jonathan Wrightt <jonathan.wright@arm.com>
17204 * config/aarch64/arm_neon.h (vst2_s64): Use __builtin_memcpy
17205 instead of constructing __builtin_aarch64_simd_oi one vector
17207 (vst2_u64): Likewise.
17208 (vst2_f64): Likewise.
17209 (vst2_s8): Likewise.
17210 (vst2_p8): Likewise.
17211 (vst2_s16): Likewise.
17212 (vst2_p16): Likewise.
17213 (vst2_s32): Likewise.
17214 (vst2_u8): Likewise.
17215 (vst2_u16): Likewise.
17216 (vst2_u32): Likewise.
17217 (vst2_f16): Likewise.
17218 (vst2_f32): Likewise.
17219 (vst2_p64): Likewise.
17220 (vst2q_s8): Likewise.
17221 (vst2q_p8): Likewise.
17222 (vst2q_s16): Likewise.
17223 (vst2q_p16): Likewise.
17224 (vst2q_s32): Likewise.
17225 (vst2q_s64): Likewise.
17226 (vst2q_u8): Likewise.
17227 (vst2q_u16): Likewise.
17228 (vst2q_u32): Likewise.
17229 (vst2q_u64): Likewise.
17230 (vst2q_f16): Likewise.
17231 (vst2q_f32): Likewise.
17232 (vst2q_f64): Likewise.
17233 (vst2q_p64): Likewise.
17235 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
17237 * config/aarch64/arm_neon.h (vst3_s64): Use __builtin_memcpy
17238 instead of constructing __builtin_aarch64_simd_ci one vector
17240 (vst3_u64): Likewise.
17241 (vst3_f64): Likewise.
17242 (vst3_s8): Likewise.
17243 (vst3_p8): Likewise.
17244 (vst3_s16): Likewise.
17245 (vst3_p16): Likewise.
17246 (vst3_s32): Likewise.
17247 (vst3_u8): Likewise.
17248 (vst3_u16): Likewise.
17249 (vst3_u32): Likewise.
17250 (vst3_f16): Likewise.
17251 (vst3_f32): Likewise.
17252 (vst3_p64): Likewise.
17253 (vst3q_s8): Likewise.
17254 (vst3q_p8): Likewise.
17255 (vst3q_s16): Likewise.
17256 (vst3q_p16): Likewise.
17257 (vst3q_s32): Likewise.
17258 (vst3q_s64): Likewise.
17259 (vst3q_u8): Likewise.
17260 (vst3q_u16): Likewise.
17261 (vst3q_u32): Likewise.
17262 (vst3q_u64): Likewise.
17263 (vst3q_f16): Likewise.
17264 (vst3q_f32): Likewise.
17265 (vst3q_f64): Likewise.
17266 (vst3q_p64): Likewise.
17268 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
17270 * config/aarch64/arm_neon.h (vst4_s64): Use __builtin_memcpy
17271 instead of constructing __builtin_aarch64_simd_xi one vector
17273 (vst4_u64): Likewise.
17274 (vst4_f64): Likewise.
17275 (vst4_s8): Likewise.
17276 (vst4_p8): Likewise.
17277 (vst4_s16): Likewise.
17278 (vst4_p16): Likewise.
17279 (vst4_s32): Likewise.
17280 (vst4_u8): Likewise.
17281 (vst4_u16): Likewise.
17282 (vst4_u32): Likewise.
17283 (vst4_f16): Likewise.
17284 (vst4_f32): Likewise.
17285 (vst4_p64): Likewise.
17286 (vst4q_s8): Likewise.
17287 (vst4q_p8): Likewise.
17288 (vst4q_s16): Likewise.
17289 (vst4q_p16): Likewise.
17290 (vst4q_s32): Likewise.
17291 (vst4q_s64): Likewise.
17292 (vst4q_u8): Likewise.
17293 (vst4q_u16): Likewise.
17294 (vst4q_u32): Likewise.
17295 (vst4q_u64): Likewise.
17296 (vst4q_f16): Likewise.
17297 (vst4q_f32): Likewise.
17298 (vst4q_f64): Likewise.
17299 (vst4q_p64): Likewise.
17301 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
17303 * config/aarch64/arm_neon.h (vtbx4_s8): Use __builtin_memcpy
17304 instead of constructing __builtin_aarch64_simd_oi one vector
17306 (vtbx4_u8): Likewise.
17307 (vtbx4_p8): Likewise.
17309 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
17311 * config/aarch64/arm_neon.h (vtbl3_s8): Use __builtin_memcpy
17312 instead of constructing __builtin_aarch64_simd_oi one vector
17314 (vtbl3_u8): Likewise.
17315 (vtbl3_p8): Likewise.
17316 (vtbl4_s8): Likewise.
17317 (vtbl4_u8): Likewise.
17318 (vtbl4_p8): Likewise.
17320 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
17322 * config/aarch64/arm_neon.h (vqtbx2_s8): Use __builtin_memcpy
17323 instead of constructing __builtin_aarch64_simd_oi one vector
17325 (vqtbx2_u8): Likewise.
17326 (vqtbx2_p8): Likewise.
17327 (vqtbx2q_s8): Likewise.
17328 (vqtbx2q_u8): Likewise.
17329 (vqtbx2q_p8): Likewise.
17330 (vqtbx3_s8): Use __builtin_memcpy instead of constructing
17331 __builtin_aarch64_simd_ci one vector at a time.
17332 (vqtbx3_u8): Likewise.
17333 (vqtbx3_p8): Likewise.
17334 (vqtbx3q_s8): Likewise.
17335 (vqtbx3q_u8): Likewise.
17336 (vqtbx3q_p8): Likewise.
17337 (vqtbx4_s8): Use __builtin_memcpy instead of constructing
17338 __builtin_aarch64_simd_xi one vector at a time.
17339 (vqtbx4_u8): Likewise.
17340 (vqtbx4_p8): Likewise.
17341 (vqtbx4q_s8): Likewise.
17342 (vqtbx4q_u8): Likewise.
17343 (vqtbx4q_p8): Likewise.
17345 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
17347 * config/aarch64/arm_neon.h (vqtbl2_s8): Use __builtin_memcpy
17348 instead of constructing __builtin_aarch64_simd_oi one vector
17350 (vqtbl2_u8): Likewise.
17351 (vqtbl2_p8): Likewise.
17352 (vqtbl2q_s8): Likewise.
17353 (vqtbl2q_u8): Likewise.
17354 (vqtbl2q_p8): Likewise.
17355 (vqtbl3_s8): Use __builtin_memcpy instead of constructing
17356 __builtin_aarch64_simd_ci one vector at a time.
17357 (vqtbl3_u8): Likewise.
17358 (vqtbl3_p8): Likewise.
17359 (vqtbl3q_s8): Likewise.
17360 (vqtbl3q_u8): Likewise.
17361 (vqtbl3q_p8): Likewise.
17362 (vqtbl4_s8): Use __builtin_memcpy instead of constructing
17363 __builtin_aarch64_simd_xi one vector at a time.
17364 (vqtbl4_u8): Likewise.
17365 (vqtbl4_p8): Likewise.
17366 (vqtbl4q_s8): Likewise.
17367 (vqtbl4q_u8): Likewise.
17368 (vqtbl4q_p8): Likewise.
17370 2021-07-23 Haochen Gui <guihaoc@gcc.gnu.org>
17373 * config/rs6000/rs6000.md (cstore<mode>4): Fix wrong fall through.
17375 2021-07-22 Andrew Pinski <apinski@marvell.com>
17377 PR tree-optimization/10153
17378 * tree-tailcall.c (create_tailcall_accumulator):
17379 Don't call fold_convert as the type should be correct already.
17380 (tree_optimize_tail_calls_1): Use build_{one,zero}_cst instead
17381 of integer_{one,zero}_node for the call of create_tailcall_accumulator.
17383 2021-07-22 Aldy Hernandez <aldyh@redhat.com>
17385 * gimple-range-cache.cc (non_null_ref::adjust_range): Replace
17386 varying_p check for null/non-null check.
17388 2021-07-22 Andrew MacLeod <amacleod@redhat.com>
17390 PR tree-optimization/101511
17391 * value-relation.cc (relation_oracle::query_relation): Check if ssa1
17392 is in ssa2's equiv set, and don't trap if so.
17394 2021-07-22 Andrew MacLeod <amacleod@redhat.com>
17396 PR tree-optimization/101497
17397 * gimple-range-fold.cc (fold_using_range::range_of_cond_expr): Check
17400 2021-07-22 Andrew MacLeod <amacleod@redhat.com>
17402 PR tree-optimization/101496
17403 * vr-values.c (simplify_using_ranges::fold_cond): Call range_of_stmt
17404 first, then vrp_visit_cond_Stmt.
17406 2021-07-22 liuhongt <hongtao.liu@intel.com>
17408 * config/i386/i386-expand.c
17409 (ix86_broadcast_from_integer_constant): Rename to ..
17410 (ix86_broadcast_from_constant): .. this, and extend it to
17412 (ix86_expand_vector_move): Extend to float mode.
17413 * config/i386/i386-features.c
17414 (replace_constant_pool_with_broadcast): Remove.
17415 (remove_partial_avx_dependency_gate): Ditto.
17416 (constant_pool_broadcast): Ditto.
17417 (class pass_constant_pool_broadcast): Ditto.
17418 (make_pass_constant_pool_broadcast): Ditto.
17419 (remove_partial_avx_dependency): Adjust gate.
17420 * config/i386/i386-passes.def: Remove pass_constant_pool_broadcast.
17421 * config/i386/i386-protos.h
17422 (make_pass_constant_pool_broadcast): Remove.
17424 2021-07-22 liuhongt <hongtao.liu@intel.com>
17426 * config/i386/constraints.md (Wb): New constraint.
17428 * config/i386/i386.md (*ashlhi3_1): Extend to avx512 mask
17430 (*ashlqi3_1): Ditto.
17431 (*<insn><mode>3_1): Split to ..
17432 (*ashr<mode>3_1): this, ...
17433 (*lshr<mode>3_1): and this, also extend this pattern to avx512
17435 (*<insn><mode>3_1): Split to ..
17436 (*ashr<mode>3_1): this, ...
17437 (*lshrqi3_1): and this, also extend this pattern to avx512
17439 (*lshrhi3_1): And this, also extend this pattern to avx512
17441 * config/i386/sse.md (k<code><mode>): New define_split after
17442 it to convert generic shift pattern to mask shift ones.
17444 2021-07-21 Thomas Schwinge <thomas@codesourcery.com>
17445 Joseph Myers <joseph@codesourcery.com>
17446 Cesar Philippidis <cesar@codesourcery.com>
17448 * tree-core.h (omp_clause_code): Add 'OMP_CLAUSE_NOHOST'.
17449 * tree.c (omp_clause_num_ops, omp_clause_code_name, walk_tree_1):
17451 * tree-pretty-print.c (dump_omp_clause): Likewise.
17452 * omp-general.c (oacc_verify_routine_clauses): Likewise.
17453 * gimplify.c (gimplify_scan_omp_clauses)
17454 (gimplify_adjust_omp_clauses): Likewise.
17455 * tree-nested.c (convert_nonlocal_omp_clauses)
17456 (convert_local_omp_clauses): Likewise.
17457 * omp-low.c (scan_sharing_clauses): Likewise.
17458 * omp-offload.c (execute_oacc_device_lower): Update.
17460 2021-07-21 Martin Sebor <msebor@redhat.com>
17462 * tree-ssa-alias.c (walk_aliased_vdefs_1): Fix typos in a comment.
17464 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
17466 * config/rs6000/rs6000-gen-builtins.c (write_init_bif_table):
17469 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
17471 * config/rs6000/rs6000-gen-builtins.c (write_fntype): New
17473 (write_fntype_init): New stub function.
17474 (write_init_bif_table): Likewise.
17475 (write_init_ovld_table): New function.
17476 (write_init_file): Implement.
17478 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
17480 * config/rs6000/rs6000-gen-builtins.c
17481 (write_autogenerated_header): New function.
17482 (write_decls): Likewise.
17483 (write_extern_fntype): New callback function.
17484 (write_header_file): Implement.
17486 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
17488 * config/rs6000/rs6000-gen-builtins.c (write_defines_file):
17491 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
17493 * config/rs6000/rs6000-gen-builtins.c (complete_vector_type): New
17495 (complete_base_type): Likewise.
17496 (construct_fntype_id): Likewise.
17497 (parse_bif_entry): Call contruct_fntype_id.
17498 (parse_ovld_entry): Likewise.
17500 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
17502 * config/rs6000/rs6000-gen-builtins.c (ovld_stanza): New struct.
17503 (MAXOVLDSTANZAS): New macro.
17504 (ovld_stanzas): New variable.
17505 (curr_ovld_stanza): Likewise.
17506 (MAXOVLDS): New macro.
17507 (ovlddata): New struct.
17508 (ovlds): New variable.
17509 (curr_ovld): Likewise.
17510 (max_ovld_args): Likewise.
17511 (parse_ovld_entry): New function.
17512 (parse_ovld_stanza): Likewise.
17513 (parse_ovld): Implement.
17515 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
17517 * config/rs6000/rs6000-gen-builtins.c (parse_bif_attrs):
17520 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
17522 * config/rs6000/rs6000-gen-builtins.c (parse_args): New function.
17523 (parse_prototype): Implement.
17525 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
17527 * config/rs6000/rs6000-gen-builtins.c (bif_stanza): New enum.
17528 (curr_bif_stanza): New variable.
17529 (stanza_entry): New struct.
17530 (stanza_map): New initialized variable.
17531 (enable_string): Likewise.
17532 (fnkinds): New enum.
17533 (typelist): New struct.
17534 (attrinfo): Likewise.
17535 (MAXRESTROPNDS): New macro.
17536 (prototype): New struct.
17537 (MAXBIFS): New macro.
17538 (bifdata): New struct.
17539 (bifs): New variable.
17540 (curr_bif): Likewise.
17541 (bif_order): Likewise.
17542 (bif_index): Likewise.
17543 (fatal): New function.
17544 (stanza_name_to_stanza): Likewise.
17545 (parse_bif_attrs): New stub function.
17546 (parse_prototype): Likewise.
17547 (parse_bif_entry): New function.
17548 (parse_bif_stanza): Likewise.
17549 (parse_bif): Implement.
17550 (set_bif_order): New function.
17551 (create_bif_order): Implement.
17553 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
17555 * config/rs6000/rs6000-gen-builtins.c (rbtree.h): New #include.
17556 (num_bifs): New variable.
17557 (num_ovld_stanzas): Likewise.
17558 (num_ovlds): Likewise.
17559 (parse_codes): New enum.
17560 (bif_rbt): New variable.
17561 (ovld_rbt): Likewise.
17562 (fntype_rbt): Likewise.
17563 (bifo_rbt): Likewise.
17564 (parse_bif): New stub function.
17565 (create_bif_order): Likewise.
17566 (parse_ovld): Likewise.
17567 (write_header_file): Likewise.
17568 (write_init_file): Likewise.
17569 (write_defines_file): Likewise.
17570 (delete_output_files): New function.
17573 2021-07-21 H.J. Lu <hjl.tools@gmail.com>
17576 * config/i386/i386-builtin.def: Remove OPTION_MASK_ISA_SSE4_2
17577 from CRC32 _builtin functions.
17579 2021-07-21 Sebastian Huber <sebastian.huber@embedded-brains.de>
17581 * coverage.c (build_gcov_info_var_registration): Mark the object placed
17582 in the linker set as referenced so that it does not get optimized away.
17584 2021-07-21 Kito Cheng <kito.cheng@sifive.com>
17587 2021-07-20 Kito Cheng <kito.cheng@sifive.com>
17589 * config.gcc (riscv*-*-*): Detect which python is available.
17591 2021-07-21 Jakub Jelinek <jakub@redhat.com>
17593 PR middle-end/101535
17594 * gimplify.c (omp_check_private): Properly skip ORT_TARGET_DATA
17595 contexts in which decl isn't privatized and for ORT_TARGET return
17596 false if decl is mapped.
17598 2021-07-21 Richard Sandiford <richard.sandiford@arm.com>
17600 * gimple-loop-jam.c: Include tree-ssa-sccvn.h.
17601 (tree_loop_unroll_and_jam): Run value-numbering on a loop that
17602 has been successfully unrolled.
17604 2021-07-21 Richard Sandiford <richard.sandiford@arm.com>
17606 * tree-ssa-loop-manip.c (determine_exit_conditions): Return a null
17607 exit condition if no tail loop is needed, and if the original exit
17608 condition should therefore be kept as-is.
17609 (tree_transform_and_unroll_loop): Handle that case here too.
17611 2021-07-21 Kewen Lin <linkw@linux.ibm.com>
17613 * tree-data-ref.c (free_dependence_relations): Adjust to pass vec
17615 (free_data_refs): Likewise.
17616 * tree-data-ref.h (free_dependence_relations): Likewise.
17617 (free_data_refs): Likewise.
17618 * tree-predcom.c (struct chain): Use auto_vec instead of vec for
17620 (struct component): Likewise.
17621 (pcom_worker::pcom_worker): Adjust for auto_vec and renaming changes.
17622 (pcom_worker::~pcom_worker): Likewise.
17623 (pcom_worker::release_chain): Adjust as auto_vec changes.
17624 (pcom_worker::loop): Rename to ...
17625 (pcom_worker::m_loop): ... this.
17626 (pcom_worker::datarefs): Rename to ...
17627 (pcom_worker::m_datarefs): ... this. Use auto_vec instead of vec.
17628 (pcom_worker::dependences): Rename to ...
17629 (pcom_worker::m_dependences): ... this. Use auto_vec instead of vec.
17630 (pcom_worker::chains): Rename to ...
17631 (pcom_worker::m_chains): ... this. Use auto_vec instead of vec.
17632 (pcom_worker::looparound_phis): Rename to ...
17633 (pcom_worker::m_looparound_phis): ... this. Use auto_vec instead of
17635 (pcom_worker::cache): Rename to ...
17636 (pcom_worker::m_cache): ... this. Use auto_vec instead of vec.
17637 (pcom_worker::release_chain): Adjust for auto_vec changes.
17638 (pcom_worker::release_chains): Adjust for auto_vec and renaming
17640 (release_component): Remove.
17641 (release_components): Adjust for release_component removal.
17642 (component_of): Adjust to use vec.
17643 (merge_comps): Likewise.
17644 (pcom_worker::aff_combination_dr_offset): Adjust for renaming changes.
17645 (pcom_worker::determine_offset): Likewise.
17646 (class comp_ptrs): Remove.
17647 (pcom_worker::split_data_refs_to_components): Adjust for renaming
17648 changes, for comp_ptrs removal with auto_vec.
17649 (pcom_worker::suitable_component_p): Adjust for renaming changes.
17650 (pcom_worker::filter_suitable_components): Adjust for release_component
17652 (pcom_worker::valid_initializer_p): Adjust for renaming changes.
17653 (pcom_worker::find_looparound_phi): Likewise.
17654 (pcom_worker::add_looparound_copies): Likewise.
17655 (pcom_worker::determine_roots_comp): Likewise.
17656 (pcom_worker::single_nonlooparound_use): Likewise.
17657 (pcom_worker::execute_pred_commoning_chain): Likewise.
17658 (pcom_worker::execute_pred_commoning): Likewise.
17659 (pcom_worker::try_combine_chains): Likewise.
17660 (pcom_worker::prepare_initializers_chain): Likewise.
17661 (pcom_worker::prepare_initializers): Likewise.
17662 (pcom_worker::prepare_finalizers_chain): Likewise.
17663 (pcom_worker::prepare_finalizers): Likewise.
17664 (pcom_worker::tree_predictive_commoning_loop): Likewise.
17666 2021-07-20 Martin Sebor <msebor@redhat.com>
17668 PR middle-end/101397
17669 * builtins.c (gimple_call_return_array): Add argument. Correct
17670 offsets for memchr, mempcpy, stpcpy, and stpncpy.
17671 (compute_objsize_r): Adjust offset computation for argument returning
17674 2021-07-20 Martin Sebor <msebor@redhat.com>
17676 PR middle-end/101300
17677 * tree-ssa-uninit.c (check_defs): Handle UBSAN built-ins.
17679 2021-07-20 Jeff Law <jlaw@localhost.localdomain>
17681 * function.c (assign_parm_setup_block): Use adjust_address instead
17682 of change_address to preserve MEM_EXPR and friends.
17684 2021-07-20 Martin Sebor <msebor@redhat.com>
17686 * cfgloop.h (single_likely_exit): Adjust by-value argument to
17687 by-const-reference.
17688 * cfgloopanal.c (single_likely_exit): Same.
17689 * cgraph.h (struct cgraph_node): Same.
17690 * cgraphclones.c (cgraph_node::create_virtual_clone): Same.
17691 * genautomata.c (merge_states): Same.
17692 * genextract.c (VEC_char_to_string): Same.
17693 * genmatch.c (dt_node::gen_kids_1): Same.
17694 (walk_captures): Adjust by-value argument to by-reference.
17695 * gimple-ssa-store-merging.c (check_no_overlap): Adjust by-value argument
17696 to by-const-reference.
17697 * gimple.c (gimple_build_call_vec): Same.
17698 (gimple_build_call_internal_vec): Same.
17699 (gimple_build_switch): Same.
17700 (sort_case_labels): Same.
17701 (preprocess_case_label_vec_for_gimple): Adjust by-value argument to
17703 * gimple.h (gimple_build_call_vec): Adjust by-value argument to
17704 by-const-reference.
17705 (gimple_build_call_internal_vec): Same.
17706 (gimple_build_switch): Same.
17707 (sort_case_labels): Same.
17708 (preprocess_case_label_vec_for_gimple): Adjust by-value argument to
17710 * haifa-sched.c (calc_priorities): Adjust by-value argument to
17711 by-const-reference.
17712 (sched_init_luids): Same.
17713 (haifa_init_h_i_d): Same.
17714 * ipa-cp.c (ipa_get_indirect_edge_target_1): Same.
17715 (adjust_callers_for_value_intersection): Adjust by-value argument to
17717 (find_more_scalar_values_for_callers_subset): Adjust by-value argument to
17718 by-const-reference.
17719 (find_more_contexts_for_caller_subset): Same.
17720 (find_aggregate_values_for_callers_subset): Same.
17721 (copy_useful_known_contexts): Same.
17722 * ipa-fnsummary.c (remap_edge_summaries): Same.
17723 (remap_freqcounting_predicate): Same.
17724 * ipa-inline.c (add_new_edges_to_heap): Adjust by-value argument to
17726 * ipa-predicate.c (predicate::remap_after_inlining): Adjust by-value argument
17727 to by-const-reference.
17728 * ipa-predicate.h (predicate::remap_after_inlining): Same.
17729 * ipa-prop.c (ipa_find_agg_cst_for_param): Same.
17730 * ipa-prop.h (ipa_find_agg_cst_for_param): Same.
17731 * ira-build.c (ira_loop_tree_body_rev_postorder): Same.
17732 * read-rtl.c (add_overload_instance): Same.
17733 * rtl.h (native_decode_rtx): Same.
17734 (native_decode_vector_rtx): Same.
17735 * sched-int.h (sched_init_luids): Same.
17736 (haifa_init_h_i_d): Same.
17737 * simplify-rtx.c (native_decode_vector_rtx): Same.
17738 (native_decode_rtx): Same.
17739 * tree-call-cdce.c (gen_shrink_wrap_conditions): Same.
17740 (shrink_wrap_one_built_in_call_with_conds): Same.
17741 (shrink_wrap_conditional_dead_built_in_calls): Same.
17742 * tree-data-ref.c (create_runtime_alias_checks): Same.
17743 (compute_all_dependences): Same.
17744 * tree-data-ref.h (compute_all_dependences): Same.
17745 (create_runtime_alias_checks): Same.
17746 (index_in_loop_nest): Same.
17747 * tree-if-conv.c (mask_exists): Same.
17748 * tree-loop-distribution.c (class loop_distribution): Same.
17749 (loop_distribution::create_rdg_vertices): Same.
17750 (dump_rdg_partitions): Same.
17751 (debug_rdg_partitions): Same.
17752 (partition_contains_all_rw): Same.
17753 (loop_distribution::distribute_loop): Same.
17754 * tree-parloops.c (oacc_entry_exit_ok_1): Same.
17755 (oacc_entry_exit_single_gang): Same.
17756 * tree-ssa-loop-im.c (hoist_memory_references): Same.
17757 (loop_suitable_for_sm): Same.
17758 * tree-ssa-loop-niter.c (bound_index): Same.
17759 * tree-ssa-reassoc.c (update_ops): Same.
17760 (swap_ops_for_binary_stmt): Same.
17761 (rewrite_expr_tree): Same.
17762 (rewrite_expr_tree_parallel): Same.
17763 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Same.
17764 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Same.
17765 * tree-ssa-structalias.c (process_all_all_constraints): Same.
17766 (make_constraints_to): Same.
17767 (handle_lhs_call): Same.
17768 (find_func_aliases_for_builtin_call): Same.
17769 (sort_fieldstack): Same.
17770 (check_for_overlaps): Same.
17771 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks): Same.
17772 (vect_create_cond_for_unequal_addrs): Same.
17773 (vect_create_cond_for_lower_bounds): Same.
17774 (vect_create_cond_for_alias_checks): Same.
17775 * tree-vect-slp-patterns.c (vect_validate_multiplication): Same.
17776 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
17777 (vect_make_slp_decision): Same.
17778 (vect_slp_bbs): Same.
17779 (duplicate_and_interleave): Same.
17780 (vect_transform_slp_perm_load): Same.
17781 (vect_schedule_slp): Same.
17782 * tree-vectorizer.h (vect_transform_slp_perm_load): Same.
17783 (vect_schedule_slp): Same.
17784 (duplicate_and_interleave): Same.
17785 * tree.c (build_vector_from_ctor): Same.
17786 (build_vector): Same.
17787 (check_vector_cst): Same.
17788 (check_vector_cst_duplicate): Same.
17789 (check_vector_cst_fill): Same.
17790 (check_vector_cst_stepped): Same.
17791 * tree.h (build_vector_from_ctor): Same.
17793 2021-07-20 Jakub Jelinek <jakub@redhat.com>
17796 * config/rs6000/rs6000-protos.h (easy_altivec_constant): Change return
17797 type from bool to int.
17798 * config/rs6000/rs6000.c (vspltis_constant): Fix up handling the
17799 EASY_VECTOR_MSB case if either step or copies is not 1.
17800 (vspltis_shifted): Fix comment typo.
17801 (easy_altivec_constant): Change return type from bool to int, instead
17802 of returning true return byte size of the element mode that should be
17803 used to synthetize the constant.
17804 * config/rs6000/predicates.md (easy_vector_constant_msb): Require
17805 that vspltis_shifted is 0, handle the case where easy_altivec_constant
17806 assumes using different vector mode from CONST_VECTOR's mode.
17807 * config/rs6000/altivec.md (easy_vector_constant_msb splitter): Use
17808 easy_altivec_constant to determine mode in which -1 >> -1 should be
17809 performed, use rs6000_expand_vector_init instead of gen_vec_initv4sisi.
17811 2021-07-20 Richard Biener <rguenther@suse.de>
17814 * dwarf2out.h (dwarf_file_data): Add key member.
17815 * dwarf2out.c (dwarf_file_hasher::equal): Compare key.
17816 (dwarf_file_hasher::hash): Hash key.
17817 (lookup_filename): Remap the filename and store it in the
17818 filename member of dwarf_file_data when creating a new
17820 (file_name_acquire): Do not remap the filename again.
17821 (maybe_emit_file): Likewise.
17823 2021-07-20 Jonathan Wright <jonathan.wright@arm.com>
17825 * config/aarch64/aarch64-simd-builtins.def: Use two variant
17826 generators for all TBL/TBX intrinsics and rename to
17827 consistent forms: qtbl[1234] or qtbx[1234].
17828 * config/aarch64/aarch64-simd.md (aarch64_tbl1<mode>):
17830 (aarch64_qtbl1<mode>): This.
17831 (aarch64_tbx1<mode>): Rename to...
17832 (aarch64_qtbx1<mode>): This.
17833 (aarch64_tbl2v16qi): Delete.
17834 (aarch64_tbl3<mode>): Rename to...
17835 (aarch64_qtbl2<mode>): This.
17836 (aarch64_tbx4<mode>): Rename to...
17837 (aarch64_qtbx2<mode>): This.
17838 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Use
17839 renamed qtbl1 and qtbl2 RTL patterns.
17840 * config/aarch64/arm_neon.h (vqtbl1_p8): Use renamed qtbl1
17842 (vqtbl1_s8): Likewise.
17843 (vqtbl1_u8): Likewise.
17844 (vqtbl1q_p8): Likewise.
17845 (vqtbl1q_s8): Likewise.
17846 (vqtbl1q_u8): Likewise.
17847 (vqtbx1_s8): Use renamed qtbx1 RTL pattern.
17848 (vqtbx1_u8): Likewise.
17849 (vqtbx1_p8): Likewise.
17850 (vqtbx1q_s8): Likewise.
17851 (vqtbx1q_u8): Likewise.
17852 (vqtbx1q_p8): Likewise.
17853 (vtbl1_s8): Use renamed qtbl1 RTL pattern.
17854 (vtbl1_u8): Likewise.
17855 (vtbl1_p8): Likewise.
17856 (vtbl2_s8): Likewise
17857 (vtbl2_u8): Likewise.
17858 (vtbl2_p8): Likewise.
17859 (vtbl3_s8): Use renamed qtbl2 RTL pattern.
17860 (vtbl3_u8): Likewise.
17861 (vtbl3_p8): Likewise.
17862 (vtbl4_s8): Likewise.
17863 (vtbl4_u8): Likewise.
17864 (vtbl4_p8): Likewise.
17865 (vtbx2_s8): Use renamed qtbx2 RTL pattern.
17866 (vtbx2_u8): Likewise.
17867 (vtbx2_p8): Likewise.
17868 (vqtbl2_s8): Use renamed qtbl2 RTL pattern.
17869 (vqtbl2_u8): Likewise.
17870 (vqtbl2_p8): Likewise.
17871 (vqtbl2q_s8): Likewise.
17872 (vqtbl2q_u8): Likewise.
17873 (vqtbl2q_p8): Likewise.
17874 (vqtbx2_s8): Use renamed qtbx2 RTL pattern.
17875 (vqtbx2_u8): Likewise.
17876 (vqtbx2_p8): Likewise.
17877 (vqtbx2q_s8): Likewise.
17878 (vqtbx2q_u8): Likewise.
17879 (vqtbx2q_p8): Likewise.
17880 (vtbx4_s8): Likewise.
17881 (vtbx4_u8): Likewise.
17882 (vtbx4_p8): Likewise.
17884 2021-07-20 Uroš Bizjak <ubizjak@gmail.com>
17887 * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
17889 (define_peephole2 atomic_loaddi_fpu): Ditto.
17891 2021-07-20 Kito Cheng <kito.cheng@sifive.com>
17893 * config.gcc (riscv*-*-*): Detect which python is available.
17895 2021-07-20 Kewen Lin <linkw@linux.ibm.com>
17897 * config/rs6000/vsx.md (mulhs_<mode>): Rename to...
17898 (smul<mode>3_highpart): ... this.
17899 (mulhu_<mode>): Rename to...
17900 (umul<mode>3_highpart): ... this.
17901 * config/rs6000/rs6000-builtin.def (MULHS_V2DI, MULHS_V4SI,
17902 MULHU_V2DI, MULHU_V4SI): Adjust.
17904 2021-07-20 Kewen Lin <linkw@linux.ibm.com>
17906 PR tree-optimization/100696
17907 * internal-fn.c (first_commutative_argument): Add info for IFN_MULH.
17908 * internal-fn.def (IFN_MULH): New internal function.
17909 * tree-vect-patterns.c (vect_recog_mulhs_pattern): Add support to
17910 recog normal multiply highpart as IFN_MULH.
17911 * config/i386/i386.c (ix86_add_stmt_cost): Adjust for combined
17914 2021-07-19 Indu Bhagat <indu.bhagat@oracle.com>
17916 * config/elfos.h (CTF_DEBUGGING_INFO): New definition.
17917 (BTF_DEBUGGING_INFO): Likewise.
17918 * doc/tm.texi.in: Document the new macros.
17919 * doc/tm.texi: Regenerated.
17920 * toplev.c: Guard initialization of debug hooks.
17922 2021-07-19 Indu Bhagat <indu.bhagat@oracle.com>
17924 * flags.h (ctf_debuginfo_p): New function declaration.
17925 * opts.c (ctf_debuginfo_p): New function definition.
17927 2021-07-19 Andrew Stubbs <ams@codesourcery.com>
17930 * config/gcn/gcn-hsa.h (DRIVER_SELF_SPECS): New.
17931 (ASM_SPEC): Set -mattr for xnack and sram-ecc.
17932 * config/gcn/gcn-opts.h (enum sram_ecc_type): New.
17933 * config/gcn/gcn-valu.md: Add a warning comment.
17934 * config/gcn/gcn.c (gcn_option_override): Add "sorry" for -mxnack.
17935 (output_file_start): Add xnack and sram-ecc state to ".amdgcn_target".
17936 * config/gcn/gcn.md: Add a warning comment.
17937 * config/gcn/gcn.opt: Add -mxnack and -msram-ecc.
17938 * config/gcn/mkoffload.c (EF_AMDGPU_MACH_AMDGCN_GFX908): Remove
17940 (EF_AMDGPU_XNACK): New.
17941 (EF_AMDGPU_SRAM_ECC): New.
17943 (copy_early_debug_info): Use elf_flags.
17944 (main): Handle -mxnack and -msram-ecc options.
17945 * doc/invoke.texi: Document -mxnack and -msram-ecc.
17947 2021-07-19 Andrew Pinski <apinski@marvell.com>
17950 * config/aarch64/aarch64.md (csneg3_uxtw_insn): Rename to ...
17951 (*cs<neg_not_cs>3_uxtw_insn4): and extend to NEG_NOT.
17953 2021-07-19 Richard Biener <rguenther@suse.de>
17955 PR tree-optimization/101505
17956 * tree-vect-patterns.c (vect_determine_precisions): Walk
17957 PHIs also for loop vectorization.
17959 2021-07-19 Richard Biener <rguenther@suse.de>
17961 * gimple.h (gimple_expr_type): Remove.
17962 * doc/gimple.texi: Remove gimple_expr_type documentation.
17964 2021-07-19 Richard Biener <rguenther@suse.de>
17966 * tree-ssa-sccvn.c (vn_reference_eq): Handle NULL vr->type.
17967 (ao_ref_init_from_vn_reference): Likewise.
17968 (fully_constant_reference): Likewise.
17969 (vn_reference_lookup_call): Do not set vr->type to random
17971 * tree-ssa-pre.c (compute_avail): Do not try to PRE calls
17973 * tree-vect-generic.c (expand_vector_piecewise): Pass in
17974 whether we expanded parallel.
17975 (expand_vector_parallel): Adjust.
17976 (expand_vector_addition): Likewise.
17977 (expand_vector_comparison): Likewise.
17978 (expand_vector_operation): Likewise.
17979 (expand_vector_scalar_condition): Likewise.
17980 (expand_vector_conversion): Likewise.
17982 2021-07-19 Richard Biener <rguenther@suse.de>
17984 * tree-vrp.c (register_edge_assert_for_2): Use the
17986 (vrp_folder::fold_predicate_in): Likewise.
17987 * vr-values.c (gimple_assign_nonzero_p): Likewise.
17988 (vr_values::extract_range_from_comparison): Likewise.
17989 (vr_values::extract_range_from_ubsan_builtin): Use the
17990 type of the first operand.
17991 (vr_values::extract_range_basic): Push down type
17992 computation, use the appropriate LHS.
17993 (vr_values::extract_range_from_assignment): Use the
17996 2021-07-18 H.J. Lu <hjl.tools@gmail.com>
17999 * common/config/i386/i386-common.c (ix86_handle_option): For
18000 -mgeneral-regs-only, enable the GPR only instructions which are
18001 enabled implicitly by SSE ISAs unless they have been disabled
18004 2021-07-18 H.J. Lu <hjl.tools@gmail.com>
18007 * config/i386/i386.c (ix86_check_avx_upper_stores): Moved before
18008 ix86_avx_u128_mode_needed.
18009 (ix86_avx_u128_mode_needed): Return AVX_U128_DIRTY if callee
18010 returns AVX register.
18012 2021-07-17 Jan Hubicka <hubicka@ucw.cz>
18014 * tree-ssa-structalias.c (handle_rhs_call): Support EAF_NOT_RETURNED.
18015 (handle_const_call): Liekise
18016 (handle_pure_call): Liekise
18018 2021-07-17 Andrew MacLeod <amacleod@redhat.com>
18020 PR tree-optimization/96542
18021 * range-op.cc (range_operator::wi_fold_in_parts): New.
18022 (range_operator::fold_range): Call wi_fold_in_parts.
18023 (operator_lshift::wi_fold): Fix broken lshift by [0,0].
18024 * range-op.h (wi_fold_in_parts): Add prototype.
18026 2021-07-16 David Malcolm <dmalcolm@redhat.com>
18028 * doc/analyzer.texi: Add __analyzer_dump_state.
18030 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
18032 * config/rs6000/rbtree.c: New file.
18033 * config/rs6000/rbtree.h: New file.
18035 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
18037 * config/rs6000/rs6000-gen-builtins.c (restriction): New enum.
18038 (typeinfo): Add restr field.
18039 (match_bracketed_pair): New function.
18040 (match_const_restriction): Implement.
18042 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
18044 * config/rs6000/rs6000-gen-builtins.c (match_basetype): Implement.
18046 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
18048 * config/rs6000/rs6000-gen-builtins.c (void_status): New enum.
18049 (basetype): Likewise.
18050 (typeinfo): Likewise.
18051 (handle_pointer): New function.
18052 (match_basetype): New stub function.
18053 (match_const_restriction): Likewise.
18054 (match_type): New function.
18056 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
18058 * config/rs6000/rs6000-gen-builtins.c (consume_whitespace): New
18060 (advance_line): Likewise.
18061 (safe_inc_pos): Likewise.
18062 (match_identifier): Likewise.
18063 (match_integer): Likewise.
18064 (match_to_right_bracket): Likewise.
18066 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
18068 * config/rs6000/rs6000-gen-builtins.c (bif_file): New variable.
18069 (ovld_file): Likewise.
18070 (header_file): Likewise.
18071 (init_file): Likewise.
18072 (defines_file): Likewise.
18073 (pgm_path): Likewise.
18074 (bif_path): Likewise.
18075 (ovld_path): Likewise.
18076 (header_path): Likewise.
18077 (init_path): Likewise.
18078 (defines_path): Likewise.
18079 (LINELEN): New macro.
18080 (linebuf): New variable.
18084 (bif_diag): New function.
18085 (ovld_diag): Likewise.
18087 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
18089 * config/rs6000/rs6000-builtin-new.def: New.
18090 * config/rs6000/rs6000-overload.def: New.
18092 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
18094 * config/rs6000/rs6000-gen-builtins.c: New.
18096 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
18098 * Makefile.in (EXTRA_GTYPE_DEPS): New variable.
18099 (s-gtype): Depend on EXTRA_GTYPE_DEPS.
18100 * gengtype-state.c (state_writer::write_state_file_list): Add a
18101 parameter to the fileslist expression for the number of build
18103 (read_state_files_list): Detect build headers and strip the
18104 initial "./" or ".\" from their names.
18105 * gengtype.c (build_headers): New global variable.
18106 (num_build_headers): Likewise.
18107 (open_base_files): Emit #include for each build header.
18108 (main): Detect and count build headers.
18109 * gengtype.h (build_headers): New extern variable.
18110 (num_build_headers): Likewise.
18112 2021-07-16 Richard Biener <rguenther@suse.de>
18114 * gimple-ssa-store-merging.c (verify_symbolic_number_p): Use
18115 the type of the LHS.
18116 (find_bswap_or_nop_1): Likewise.
18117 (find_bswap_or_nop): Likewise.
18118 * tree-vectorizer.h (vect_get_smallest_scalar_type): Adjust
18120 * tree-vect-data-refs.c (vect_get_smallest_scalar_type):
18121 Remove unused parameters, pass in the scalar type. Fix
18122 internal store function handling.
18123 * tree-vect-stmts.c (vect_analyze_stmt): Remove assert.
18124 (vect_get_vector_types_for_stmt): Move down check for
18125 existing vector stmt after we've determined a scalar type.
18126 Pass down the used scalar type to vect_get_smallest_scalar_type.
18127 * tree-vect-generic.c (expand_vector_condition): Use
18128 the type of the LHS.
18129 (expand_vector_scalar_condition): Likewise.
18130 (expand_vector_operations_1): Likewise.
18131 * tree-vect-patterns.c (vect_widened_op_tree): Likewise.
18132 (vect_recog_dot_prod_pattern): Likewise.
18133 (vect_recog_sad_pattern): Likewise.
18134 (vect_recog_widen_op_pattern): Likewise.
18135 (vect_recog_widen_sum_pattern): Likewise.
18136 (vect_recog_mixed_size_cond_pattern): Likewise.
18138 2021-07-16 Jan Hubicka <hubicka@ucw.cz>
18140 * ipa-modref.c (struct escape_entry): Use eaf_fleags_t.
18141 (dump_eaf_flags): Dump EAF_NOT_RETURNED
18142 (eaf_flags_useful_p): Use eaf_fleags_t; handle const functions
18143 and EAF_NOT_RETURNED.
18144 (modref_summary::useful_p): Likewise.
18145 (modref_summary_lto::useful_p): Likewise.
18146 (struct) modref_summary_lto: Use eaf_fleags_t.
18147 (deref_flags): Handle EAF_NOT_RETURNED.
18148 (struct escape_point): Use min_flags.
18149 (modref_lattice::init): Add EAF_NOT_RETURNED.
18150 (merge_call_lhs_flags): Ignore EAF_NOT_RETURNED functions
18151 (analyze_ssa_name_flags): Clear EAF_NOT_RETURNED on return;
18153 (analyze_parms): Also analyze const functions; update conition on
18155 (modref_write): Update streaming.
18156 (read_section): Update streaming.
18157 (remap_arg_flags): Use eaf_flags_t.
18158 (modref_merge_call_site_flags): Hanlde EAF_NOT_RETURNED.
18159 * ipa-modref.h: (eaf_flags_t): New typedef.
18160 (struct modref_summary): Use eaf_flags_t.
18161 * tree-core.h (EAF_NOT_RETURNED): New constant.
18163 2021-07-16 Richard Biener <rguenther@suse.de>
18165 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Use
18166 the type of the LHS.
18167 (gimple_assign_nonnegative_warnv_p): Likewise.
18168 (gimple_call_nonnegative_warnv_p): Likewise. Return false
18169 if the call has no LHS.
18170 * gimple.c (gimple_could_trap_p_1): Use the type of the LHS.
18171 * tree-eh.c (stmt_could_throw_1_p): Likewise.
18172 * tree-inline.c (insert_init_stmt): Likewise.
18173 * tree-ssa-loop-niter.c (get_val_for): Likewise.
18174 * tree-outof-ssa.c (ssa_is_replaceable_p): Use the type of
18176 * tree-ssa-sccvn.c (init_vn_nary_op_from_stmt): Take a
18177 gassign *. Use the type of the lhs.
18178 (vn_nary_op_lookup_stmt): Adjust.
18179 (vn_nary_op_insert_stmt): Likewise.
18181 2021-07-16 Ilya Leoshkevich <iii@linux.ibm.com>
18183 * config/s390/predicates.md (bras_sym_operand): Accept all
18184 functions in 64-bit mode, use UNSPEC_PLT31.
18185 (larl_operand): Use UNSPEC_PLT31.
18186 * config/s390/s390.c (s390_loadrelative_operand_p): Likewise.
18187 (legitimize_pic_address): Likewise.
18188 (s390_emit_tls_call_insn): Mark __tls_get_offset as function,
18190 (s390_delegitimize_address): Use UNSPEC_PLT31.
18191 (s390_output_addr_const_extra): Likewise.
18192 (print_operand): Add @PLT to TLS calls, handle %K.
18193 (s390_function_profiler): Mark __fentry__/_mcount as function,
18194 use %K, use UNSPEC_PLT31.
18195 (s390_output_mi_thunk): Use only UNSPEC_GOT, use %K.
18196 (s390_emit_call): Use UNSPEC_PLT31.
18197 (s390_emit_tpf_eh_return): Mark __tpf_eh_return as function.
18198 * config/s390/s390.md (UNSPEC_PLT31): Rename from UNSPEC_PLT.
18199 (*movdi_64): Use %K.
18200 (reload_base_64): Likewise.
18201 (*sibcall_brc): Likewise.
18202 (*sibcall_brcl): Likewise.
18203 (*sibcall_value_brc): Likewise.
18204 (*sibcall_value_brcl): Likewise.
18206 (*brasl): Likewise.
18207 (*bras_r): Likewise.
18208 (*brasl_r): Likewise.
18209 (*bras_tls): Likewise.
18210 (*brasl_tls): Likewise.
18211 (main_base_64): Likewise.
18212 (reload_base_64): Likewise.
18213 (@split_stack_call<mode>): Likewise.
18215 2021-07-16 Richard Biener <rguenther@suse.de>
18217 PR tree-optimization/101467
18218 * tree-vect-stmts.c (vect_gen_while): Properly guard
18219 make_temp_ssa_name usage.
18221 2021-07-16 Cooper Qu <cooper.qu@linux.alibaba.com>
18223 * config.gcc: Don't use forked print-sysroot-suffix.sh and
18224 t-sysroot-suffix for C-SKY.
18225 * config/csky/print-sysroot-suffix.sh: Delete.
18226 * config/csky/t-csky-linux: Delete.
18227 * config/csky/t-sysroot-suffix: Define MULTILIB_DIRNAMES
18228 instead of CSKY_MULTILIB_DIRNAMES.
18230 2021-07-16 Richard Biener <rguenther@suse.de>
18232 * tree-vect-loop.c (vect_transform_cycle_phi): Correct sign
18233 conversion issues with the partial reduction of the reused
18234 vector accumulator.
18236 2021-07-16 Richard Biener <rguenther@suse.de>
18238 * config/i386/i386-options.c (ix86_option_override_internal): Set
18239 param_vect_partial_vector_usage to zero if not set.
18241 2021-07-15 Uroš Bizjak <ubizjak@gmail.com>
18244 * config/i386/i386.h (VALID_SSE_REG_MODE): Add TDmode.
18245 (VALID_INT_MODE_P): Add SDmode and DDmode.
18246 Add TDmode for TARGET_64BIT.
18247 (VALID_DFP_MODE_P): Remove.
18248 * config/i386/i386.c (ix86_hard_regno_mode_ok):
18249 Do not use VALID_DFP_MODE_P.
18251 2021-07-15 Andrew MacLeod <amacleod@redhat.com>
18253 * gimple-range-fold.cc (adjust_pointer_diff_expr): Use
18255 (fold_using_range::fold_stmt): Ditto.
18256 (fold_using_range::range_of_range_op): Ditto.
18257 (fold_using_range::range_of_phi): Ditto.
18258 (fold_using_range::range_of_call): Ditto.
18259 (fold_using_range::range_of_builtin_ubsan_call): Ditto.
18260 (fold_using_range::range_of_builtin_call): Ditto.
18261 (fold_using_range::range_of_cond_expr): Ditto.
18262 * gimple-range-fold.h (gimple_range_type): New.
18264 2021-07-15 Martin Sebor <msebor@redhat.com>
18266 PR middle-end/97027
18267 * tree-ssa-strlen.c (handle_assign): New function.
18268 (maybe_warn_overflow): Add argument.
18269 (nonzero_bytes_for_type): New function.
18270 (count_nonzero_bytes): Handle more tree types. Call
18271 nonzero_bytes_for_tye.
18272 (count_nonzero_bytes): Handle types.
18273 (handle_store): Handle stores from function calls.
18274 (strlen_check_and_optimize_call): Move code to handle_assign. Call
18275 it for assignments from function calls.
18277 2021-07-15 David Malcolm <dmalcolm@redhat.com>
18282 * doc/invoke.texi: Add -Wanalyzer-use-of-uninitialized-value.
18284 2021-07-15 David Malcolm <dmalcolm@redhat.com>
18286 * doc/invoke.texi (-fdump-analyzer-exploded-paths): New.
18288 2021-07-15 Martin Sebor <msebor@redhat.com>
18292 * fold-const.c (operand_compare::operand_equal_p): Handle OEP_DECL_NAME.
18293 (operand_compare::verify_hash_value): Same.
18294 * tree-core.h (OEP_DECL_NAME): New.
18296 2021-07-15 Martin Jambor <mjambor@suse.cz>
18298 * profile-count.h (profile_count::value): Change the return type to
18300 * gimple-pretty-print.c (dump_gimple_bb_header): Adjust print
18302 * tree-cfg.c (dump_function_to_file): Likewise.
18304 2021-07-15 Bill Schmidt <wschmidt@linux.ibm.com>
18307 * config/rs6000/rs6000-p8swap.c (has_part_mult): New.
18308 (rs6000_analyze_swaps): Insns containing a subreg of a mult are
18311 2021-07-15 Richard Biener <rguenther@suse.de>
18313 * tree-vectorizer.h (vect_gen_while): Match up with
18314 vect_gen_while_not.
18315 * tree-vect-stmts.c (vect_gen_while): Adjust API to that
18316 of vect_gen_while_not.
18317 (vect_gen_while_not): Adjust.
18318 * tree-vect-loop-manip.c (vect_set_loop_controls_directly): Likewise.
18320 2021-07-15 Aldy Hernandez <aldyh@redhat.com>
18322 * gimple-range-cache.cc (non_null_ref::adjust_range): New.
18323 (ranger_cache::range_of_def): Call adjust_range.
18324 (ranger_cache::entry_range): Same.
18325 * gimple-range-cache.h (non_null_ref::adjust_range): New.
18326 * gimple-range.cc (gimple_ranger::range_of_expr): Call
18328 (gimple_ranger::range_on_entry): Same.
18330 2021-07-15 Tamar Christina <tamar.christina@arm.com>
18333 2021-07-14 Tamar Christina <tamar.christina@arm.com>
18335 * config/arm/neon.md (<sup>dot_prod<vsi2qi>): Drop statements.
18337 2021-07-15 Tamar Christina <tamar.christina@arm.com>
18340 2021-07-14 Tamar Christina <tamar.christina@arm.com>
18342 * config/aarch64/aarch64-simd-builtins.def (udot, sdot): Rename to...
18343 (sdot_prod, udot_prod): ...These.
18344 * config/aarch64/aarch64-simd.md (<sur>dot_prod<vsi2qi>): Remove.
18345 (aarch64_<sur>dot<vsi2qi>): Rename to...
18346 (<sur>dot_prod<vsi2qi>): ...This.
18347 * config/aarch64/arm_neon.h (vdot_u32, vdotq_u32, vdot_s32, vdotq_s32):
18350 2021-07-15 Jakub Jelinek <jakub@redhat.com>
18352 PR middle-end/101437
18353 * gimplify.c (gimplify_expr): Throw away volatile reads from empty
18354 types even if they have non-BLKmode TYPE_MODE.
18356 2021-07-15 Richard Biener <rguenther@suse.de>
18359 * gcc.c (process_command): Process -gtoggle like process_options
18360 would after parsing options.
18362 2021-07-15 Trevor Saunders <tbsaunde@tbsaunde.org>
18364 * cfgexpand.c (expand_asm_loc): Adjust.
18365 (expand_asm_stmt): Likewise.
18366 * config/arm/aarch-common-protos.h (arm_md_asm_adjust): Likewise.
18367 * config/arm/aarch-common.c (arm_md_asm_adjust): Likewise.
18368 * config/arm/arm.c (thumb1_md_asm_adjust): Likewise.
18369 * config/avr/avr.c (avr_md_asm_adjust): Likewise.
18370 * config/cris/cris.c (cris_md_asm_adjust): Likewise.
18371 * config/i386/i386.c (ix86_md_asm_adjust): Likewise.
18372 * config/mn10300/mn10300.c (mn10300_md_asm_adjust): Likewise.
18373 * config/nds32/nds32.c (nds32_md_asm_adjust): Likewise.
18374 * config/pdp11/pdp11.c (pdp11_md_asm_adjust): Likewise.
18375 * config/rs6000/rs6000.c (rs6000_md_asm_adjust): Likewise.
18376 * config/s390/s390.c (s390_md_asm_adjust): Likewise.
18377 * config/vax/vax.c (vax_md_asm_adjust): Likewise.
18378 * config/visium/visium.c (visium_md_asm_adjust): Likewise.
18379 * doc/tm.texi: Regenerate.
18380 * target.def: Add location argument to md_asm_adjust.
18382 2021-07-15 Trevor Saunders <tbsaunde@tbsaunde.org>
18384 * tree-diagnostic.c (diagnostic_report_current_function): Use the
18385 diagnostic's location, not input_location.
18387 2021-07-15 Trevor Saunders <tbsaunde@tbsaunde.org>
18389 * cfgexpand.c (tree_conflicts_with_clobbers_p): Pass location to
18391 (expand_asm_stmt): Likewise.
18393 2021-07-14 Peter Bergner <bergner@linux.ibm.com>
18395 * config/rs6000/rs6000.c (adjacent_mem_locations): Return the lower
18396 addressed memory rtx, if any.
18397 (rs6000_split_multireg_move): Fix code formatting.
18398 Handle MMA build built-ins with operands in adjacent memory locations.
18400 2021-07-14 Peter Bergner <bergner@linux.ibm.com>
18402 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Move to later
18405 2021-07-14 Jason Merrill <jason@redhat.com>
18407 * sel-sched-ir.h (get_all_loop_exits): Use auto_vec.
18409 2021-07-14 Jason Merrill <jason@redhat.com>
18411 * doc/invoke.texi: -fdelete-dead-exceptions is on by default for
18414 2021-07-14 Tamar Christina <tamar.christina@arm.com>
18416 * tree-vect-patterns.c (vect_recog_dot_prod_pattern):
18417 Remove erroneous line.
18419 2021-07-14 Andrew MacLeod <amacleod@redhat.com>
18421 * params.opt (param_evrp_mode): Change default.
18423 2021-07-14 Tamar Christina <tamar.christina@arm.com>
18425 * config/aarch64/aarch64-simd-builtins.def (udot, sdot): Rename to...
18426 (sdot_prod, udot_prod): ...These.
18427 * config/aarch64/aarch64-simd.md (<sur>dot_prod<vsi2qi>): Remove.
18428 (aarch64_<sur>dot<vsi2qi>): Rename to...
18429 (<sur>dot_prod<vsi2qi>): ...This.
18430 * config/aarch64/arm_neon.h (vdot_u32, vdotq_u32, vdot_s32, vdotq_s32):
18433 2021-07-14 Tamar Christina <tamar.christina@arm.com>
18435 * config/arm/neon.md (<sup>dot_prod<vsi2qi>): Drop statements.
18437 2021-07-14 Tamar Christina <tamar.christina@arm.com>
18439 * doc/sourcebuild.texi (arm_v8_2a_i8mm_neon_hw): Document.
18441 2021-07-14 Tamar Christina <tamar.christina@arm.com>
18443 * config/arm/neon.md (usdot_prod<vsi2qi>): New.
18445 2021-07-14 Tamar Christina <tamar.christina@arm.com>
18447 * config/aarch64/aarch64-simd.md (aarch64_usdot<vsi2qi>): Rename to...
18448 (usdot_prod<vsi2qi>): ... This.
18449 * config/aarch64/aarch64-simd-builtins.def (usdot): Rename to...
18450 (usdot_prod): ...This.
18451 * config/aarch64/arm_neon.h (vusdot_s32, vusdotq_s32): Likewise.
18452 * config/aarch64/aarch64-sve.md (@aarch64_<sur>dot_prod<vsi2qi>):
18454 (@<sur>dot_prod<vsi2qi>): ...This.
18455 * config/aarch64/aarch64-sve-builtins-base.cc
18456 (svusdot_impl::expand): Use it.
18458 2021-07-14 Tamar Christina <tamar.christina@arm.com>
18460 * optabs.def (usdot_prod_optab): New.
18461 * doc/md.texi: Document it and clarify other dot prod optabs.
18462 * optabs-tree.h (enum optab_subtype): Add optab_vector_mixed_sign.
18463 * optabs-tree.c (optab_for_tree_code): Support usdot_prod_optab.
18464 * optabs.c (expand_widen_pattern_expr): Likewise.
18465 * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
18466 * tree-vect-loop.c (vectorizable_reduction): Query dot-product kind.
18467 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Take optional
18469 (vect_widened_op_tree): Optionally ignore
18471 (vect_recog_dot_prod_pattern): Support usdot_prod_optab.
18473 2021-07-14 H.J. Lu <hjl.tools@gmail.com>
18476 * config/i386/driver-i386.c (host_detect_local_cpu): Check
18477 "arch [32|64]" and "tune [32|64]" for 32-bit and 64-bit codegen.
18478 Enable UINTR only for 64-bit codegen.
18479 * config/i386/i386-options.c
18480 (ix86_option_override_internal::DEF_PTA): Skip PTA_UINTR if not
18482 * config/i386/i386.h (ARCH_ARG): New.
18483 (CC1_CPU_SPEC): Pass "[arch|tune] 32" for 32-bit codegen and
18484 "[arch|tune] 64" for 64-bit codegen.
18486 2021-07-14 Richard Biener <rguenther@suse.de>
18488 PR tree-optimization/101445
18489 * tree-vect-stmts.c (vectorizable_load): Do the gap adjustment
18490 of the IV in the correct direction for negative stride
18493 2021-07-14 Jakub Jelinek <jakub@redhat.com>
18496 * godump.c (godump_str_hash): New type.
18497 (godump_container::pot_dummy_types): Use string_hash instead of
18498 ptr_hash in the hash_set.
18500 2021-07-14 Richard Biener <rguenther@suse.de>
18502 * tree-vect-loop.c (vect_find_reusable_accumulator): Handle
18503 vector types where the old vector type has a multiple of
18504 the new vector type elements.
18505 (vect_create_partial_epilog): New function, split out from...
18506 (vect_create_epilog_for_reduction): ... here.
18507 (vect_transform_cycle_phi): Reduce the re-used accumulator
18508 to the new vector type.
18510 2021-07-14 Alexandre Oliva <oliva@adacore.com>
18512 * tree-ssa-alias.c (attr_fnspec::verify): Fix index in
18513 non-'t'-sized arg check.
18515 2021-07-14 Alexandre Oliva <oliva@adacore.com>
18517 * tree-cfg.c (cleanup_dead_labels_eh): Update
18518 post_landing_pad label upon change of landing pad block's
18520 (cleanup_dead_labels): Check that a removed label is not that
18523 2021-07-13 Jonathan Wright <jonathan.wright@arm.com>
18525 * combine.c (combine_simplify_rtx): Add vec_select -> subreg
18527 * config/aarch64/aarch64.md (*zero_extend<SHORT:mode><GPI:mode>2_aarch64):
18528 Add Neon to general purpose register case for zero-extend
18530 * config/arm/vfp.md (*arm_movsi_vfp): Remove "*" from *t -> r
18531 case to prevent some cases opting to go through memory.
18532 * cse.c (fold_rtx): Add vec_select -> subreg simplification.
18533 * rtl.c (rtvec_series_p): Define predicate to determine
18534 whether a vector contains a linear series of integers.
18535 * rtl.h (rtvec_series_p): Define.
18536 * rtlanal.c (vec_series_lowpart_p): Define predicate to
18537 determine if a vector selection is equivalent to the low part
18539 * rtlanal.h (vec_series_lowpart_p): Define.
18540 * simplify-rtx.c (simplify_context::simplify_binary_operation_1):
18541 Add vec_select -> subreg simplification.
18543 2021-07-13 Paul A. Clarke <pc@us.ibm.com>
18545 * config/rs6000/smmintrin.h (_mm_testz_si128, _mm_testc_si128,
18546 _mm_testnzc_si128, _mm_test_all_ones, _mm_test_all_zeros,
18547 _mm_test_mix_ones_zeros): New.
18549 2021-07-13 Roger Sayle <roger@nextmovesoftware.com>
18550 Richard Biener <rguenther@suse.de>
18552 * gimple.c (gimple_could_trap_p_1): Make S argument a
18553 "const gimple*". Preserve constness in call to
18554 gimple_asm_volatile_p.
18555 (gimple_could_trap_p): Make S argument a "const gimple*".
18556 * gimple.h (gimple_could_trap_p_1, gimple_could_trap_p):
18557 Update function prototypes.
18559 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
18561 * tree-vectorizer.h (vect_reusable_accumulator): New structure.
18562 (_loop_vec_info::main_loop_edge): New field.
18563 (_loop_vec_info::skip_main_loop_edge): Likewise.
18564 (_loop_vec_info::skip_this_loop_edge): Likewise.
18565 (_loop_vec_info::reusable_accumulators): Likewise.
18566 (_stmt_vec_info::reduc_scalar_results): Likewise.
18567 (_stmt_vec_info::reused_accumulator): Likewise.
18568 (vect_get_main_loop_result): Declare.
18569 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
18570 reduc_scalar_inputs.
18571 (vec_info::free_stmt_vec_info): Free reduc_scalar_inputs.
18572 * tree-vect-loop-manip.c (vect_get_main_loop_result): New function.
18573 (vect_do_peeling): Fill an epilogue loop's main_loop_edge,
18574 skip_main_loop_edge and skip_this_loop_edge fields.
18575 * tree-vect-loop.c (INCLUDE_ALGORITHM): Define.
18576 (vect_emit_reduction_init_stmts): New function.
18577 (get_initial_def_for_reduction): Use it.
18578 (get_initial_defs_for_reduction): Likewise. Change the vinfo
18579 parameter to a loop_vec_info.
18580 (vect_create_epilog_for_reduction): Store the scalar results
18581 in the reduc_info. If an epilogue loop is reusing an accumulator
18582 from the main loop, and if the epilogue loop can also be skipped,
18583 try to place the reduction code in the join block. Record
18584 accumulators that could potentially be reused by epilogue loops.
18585 (vect_transform_cycle_phi): When vectorizing epilogue loops,
18586 try to reuse accumulators from the main loop. Record the initial
18587 value in reduc_info for non-SLP reductions too.
18589 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
18591 * tree-vect-loop.c (get_initial_def_for_reduction): Remove
18592 adjustment handling. Take the neutral value as an argument,
18593 in place of the code argument.
18594 (vect_transform_cycle_phi): Update accordingly. Handle the
18595 initial values of cond reductions separately from code reductions.
18596 Choose the adjustment here rather than in
18597 get_initial_def_for_reduction. Sink the splat of vec_initial_def.
18599 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
18601 * tree-vect-loop.c (neutral_op_for_slp_reduction): Replace with...
18602 (neutral_op_for_reduction): ...this, providing a more general
18604 (vect_create_epilog_for_reduction): Update accordingly.
18605 (vectorizable_reduction): Likewise.
18606 (vect_transform_cycle_phi): Likewise.
18608 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
18610 * tree-vect-loop.c (get_initial_def_for_reduction): Take the
18611 reduc_info instead of the original stmt_vec_info.
18612 (vect_transform_cycle_phi): Update accordingly.
18614 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
18616 * tree-vect-loop.c (get_initial_defs_for_reduction): Take the
18617 reduc_info as an additional parameter.
18618 (vect_transform_cycle_phi): Update accordingly.
18620 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
18622 * tree-vectorizer.h: Include tree-ssa-operands.h.
18623 (vect_phi_initial_value): New function.
18624 * tree-vect-loop.c (neutral_op_for_slp_reduction): Use it.
18625 (get_initial_defs_for_reduction, info_for_reduction): Likewise.
18626 (vect_create_epilog_for_reduction, vectorizable_reduction): Likewise.
18627 (vect_transform_cycle_phi, vectorizable_induction): Likewise.
18629 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
18631 * tree-vect-loop.c (vect_create_epilog_for_reduction): Convert
18632 the phi results to vectype after creating them. Remove later
18633 conversion code that thus becomes redundant.
18635 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
18637 * tree-vect-loop.c (vect_create_epilog_for_reduction): Replace
18638 the new_phis vector with a reduc_inputs vector. Combine handling
18639 of reduction chains and ncopies > 1.
18641 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
18643 * tree-vect-loop.c (vect_create_epilog_for_reduction): Truncate
18644 scalar_results to group_size elements after reducing down from
18645 N*group_size elements. Construct an array_slice of the live-out
18646 stmts and assert that there is one stmt per scalar result.
18648 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
18650 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
18651 nested_in_vect_loop and use double_reduc everywhere. Remove dead
18652 assignment to "loop".
18654 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
18656 * internal-fn.c (vectorized_internal_fn_supported_p): Handle
18657 vector types first. For scalar types, consider both the preferred
18658 vector mode and the alternative vector modes.
18659 * optabs-query.c (can_vec_mask_load_store_p): Use the same
18660 structure as above, in particular using related_vector_mode
18661 for modes provided by autovectorize_vector_modes.
18663 2021-07-13 Jakub Jelinek <jakub@redhat.com>
18664 Richard Biener <rguenther@suse.de>
18666 PR tree-optimization/101419
18667 * tree-pass.h (PROP_objsz): Define.
18668 (make_pass_early_object_sizes): Declare.
18669 * passes.def (pass_all_early_optimizations): Rename pass_object_sizes
18670 there to pass_early_object_sizes, drop parameter.
18671 (pass_all_optimizations): Move pass_object_sizes right after pass_ccp,
18672 drop parameter, move pass_post_ipa_warn right after that.
18673 * tree-object-size.c (pass_object_sizes::execute): Rename to...
18674 (object_sizes_execute): ... this. Add insert_min_max_p argument.
18675 (pass_data_object_sizes): Move after object_sizes_execute.
18676 (pass_object_sizes): Likewise. In execute method call
18677 object_sizes_execute, drop set_pass_param method and insert_min_max_p
18678 non-static data member and its initializer in the ctor.
18679 (pass_data_early_object_sizes, pass_early_object_sizes,
18680 make_pass_early_object_sizes): New.
18681 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use
18682 (cfun->curr_properties & PROP_objsz) instead of cfun->after_inlining.
18684 2021-07-13 Kito Cheng <kito.cheng@sifive.com>
18687 * config/riscv/constraints.md ("S"): Update description and remove
18689 * doc/md.texi (Machine Constraints): Document the 'S' constraints
18692 2021-07-13 Richard Biener <rguenther@suse.de>
18695 2021-07-12 Richard Biener <rguenther@suse.de>
18697 * tree-vect-slp.c (vect_slp_region): Show the number of
18698 SLP graph entries in the optimization message.
18700 2021-07-13 Michael Meissner <meissner@linux.ibm.com>
18702 * config/rs6000/altivec.md (xxspltiw_v4sf): Change local variable
18704 * config/rs6000/rs6000-protos.h (rs6000_const_f32_to_i32): Change
18705 return type to long.
18706 * config/rs6000/rs6000.c (rs6000_const_f32_to_i32): Change return
18709 2021-07-12 Andrew MacLeod <amacleod@redhat.com>
18711 * gimple-range-fold.cc (fold_using_range::range_of_builtin_ubsan_call):
18712 Query relation between the 2 operands and use it.
18714 2021-07-12 Sergei Trofimovich <siarheit@google.com>
18716 * doc/cfg.texi: Fix s/ei_safe_safe/ei_safe_edge/ typo.
18718 2021-07-12 Uroš Bizjak <ubizjak@gmail.com>
18721 * config/i386/predicates.md (vec_setm_sse41_operand):
18722 Rename from vec_setm_operand.
18723 (vec_setm_avx2_operand): New predicate.
18724 * config/i386/sse.md (vec_set<V_128:mode>): Use V_128 mode iterator.
18725 Use vec_setm_sse41_operand as operand 2 predicate.
18726 (vec_set<V_256_512:mode): New expander.
18727 * config/i386/mmx.md (vec_setv2hi): Use vec_setm_sse41_operand
18728 as operand 2 predicate.
18730 2021-07-12 Andrew MacLeod <amacleod@redhat.com>
18732 PR tree-optimization/101335
18733 * range-op.cc (operator_cast::lhs_op1_relation): Delete.
18735 2021-07-12 Andrew Pinski <apinski@marvell.com>
18737 * tree-ssa-phiopt.c (match_simplify_replacement): Move
18738 insert of the sequence before the movement of the
18739 statement. Check if to see if the statement is used
18740 outside of the original phi to see if we should move it.
18742 2021-07-12 Richard Biener <rguenther@suse.de>
18744 * dump-context.h (debug_dump_context::debug_dump_context):
18745 Add FILE * parameter defaulted to stderr.
18746 * dumpfile.c (debug_dump_context::debug_dump_context): Adjust.
18747 * tree-vect-slp.c (dot_slp_tree): New functions.
18749 2021-07-12 Richard Biener <rguenther@suse.de>
18751 PR tree-optimization/101373
18752 * tree-ssa-pre.c (prune_clobbered_mems): Also prune trapping
18753 references when the BB may not return.
18754 (compute_avail): Pass in the function we're working on and
18755 replace cfun references with it. Externally throwing
18756 const calls also possibly terminate the function.
18757 (pass_pre::execute): Pass down the function we're working on.
18758 * gcse.c (compute_hash_table_work): Externally throwing
18759 const/pure calls also need record_last_mem_set_info.
18760 * postreload-gcse.c (record_opr_changes): Looping or externally
18761 throwing const/pure calls also need record_last_mem_set_info.
18763 2021-07-12 Uroš Bizjak <ubizjak@gmail.com>
18765 * recog.c (memory_address_addr_space_p): Change the type to bool.
18766 Return true/false instead of 1/0.
18767 (offsettable_memref_p): Ditto.
18768 (offsettable_nonstrict_memref_p): Ditto.
18769 (offsettable_address_addr_space_p): Ditto.
18770 Change the type of addressp indirect function to bool.
18771 * recog.h (memory_address_addr_space_p): Change the type to bool.
18772 (strict_memory_address_addr_space_p): Ditto.
18773 (offsettable_memref_p): Ditto.
18774 (offsettable_nonstrict_memref_p): Ditto.
18775 (offsettable_address_addr_space_p): Ditto.
18776 * reload.c (maybe_memory_address_addr_space_p): Ditto.
18777 (strict_memory_address_addr_space_p): Change the type to bool.
18778 Return true/false instead of 1/0.
18779 (maybe_memory_address_addr_space_p): Change the type to bool.
18781 2021-07-12 Richard Biener <rguenther@suse.de>
18783 * tree-vect-slp.c (vect_slp_region): Show the number of
18784 SLP graph entries in the optimization message.
18786 2021-07-12 Richard Biener <rguenther@suse.de>
18788 PR tree-optimization/101394
18789 * tree-ssa-pre.c (do_pre_regular_insertion): Avoid inserting
18790 copies from abnormals for a full redundancy.
18792 2021-07-12 Richard Biener <rguenther@suse.de>
18794 PR middle-end/101423
18795 * gimple.c (gimple_could_trap_p_1): Internal function calls
18797 * tree-eh.c (tree_could_trap_p): Likewise.
18799 2021-07-12 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
18802 * config/arm/arm_neon.h (vmul_n_u32): Replace call to builtin with
18804 (vmulq_n_u32): Likewise.
18805 (vmul_n_f32): Gate __a * __b on __FAST_MATH__.
18806 (vmulq_n_f32): Likewise.
18807 (vmul_n_f16): Likewise.
18808 (vmulq_n_f16): Likewise.
18810 2021-07-12 Martin Liska <mliska@suse.cz>
18812 PR sanitizer/101425
18813 * gcc.c (check_offload_target_name): Call
18814 candidates_list_and_hint only if we have a candidate.
18816 2021-07-12 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
18819 * config/arm/neon.md (vec_init): Move to ...
18820 * config/arm/vec-common.md (vec_init): ... here.
18821 Change the pattern's mode to VDQX and gate it on VALID_MVE_MODE.
18823 2021-07-12 Roger Sayle <roger@nextmovesoftware.com>
18825 PR tree-optimization/101403
18826 * match.pd ((T)bswap(X)>>C): Correctly handle cases where
18827 signedness of the shift is not the same as the signedness of
18828 the type extension.
18830 2021-07-09 Roger Sayle <roger@nextmovesoftware.com>
18831 Uroš Bizjak <ubizjak@gmail.com>
18833 * config/i386/i386.md (*divmodsi4_const): Optimize SImode
18834 divmod of a constant numerator with new define_insn_and_split.
18836 2021-07-09 Iain Sandoe <iain@sandoe.co.uk>
18839 * config/i386/i386-expand.c (ix86_expand_call): If a call is
18840 to a non-local-binding, or local but to a public symbol, then
18841 assume that it might be indirected via the lazy symbol binder.
18842 Mark R10 and R10 as clobbered in that case.
18844 2021-07-09 Eric Botcazou <ebotcazou@adacore.com>
18847 * gcc.c (ASM_DEBUG_DWARF_OPTION): Set again to --gdwarf2 in
18848 the case where HAVE_AS_WORKING_DWARF_N_FLAG is not defined
18849 and HAVE_LD_BROKEN_PE_DWARF5 is defined.
18851 2021-07-09 Uroš Bizjak <ubizjak@gmail.com>
18853 * config/i386/i386.md (*udivmodsi4_pow2_zext_1): Limit the
18854 log2 range of operands[3] to [1,31].
18855 (*udivmodsi4_pow2_zext_2): Ditto. Correct insn RTX pattern.
18857 2021-07-09 Sergei Trofimovich <siarheit@google.com>
18859 * doc/md.texi: Don't split @smallexample in multiple @groups.
18861 2021-07-09 Sergei Trofimovich <siarheit@google.com>
18863 * doc/md.texi: Add missing 'see' word.
18865 2021-07-09 Andrew Pinski <apinski@marvell.com>
18867 * tree-ssa-phiopt.c (phiopt_early_allow): Change arguments
18868 to take sequence and gimple_match_op. Accept the case where
18869 op is a SSA_NAME and one statement in the sequence.
18870 Also allow constants.
18871 (gimple_simplify_phiopt): Always pass a sequence to resimplify.
18872 Update call to phiopt_early_allow. Discard the sequence if not
18875 2021-07-09 Xi Ruoyao <xry111@mengyan1223.wang>
18880 * config/mips/mips.c (mips_const_insns): Use MSA_SUPPORTED_MODE_P
18881 instead of ISA_HAS_MSA.
18882 (mips_expand_vec_unpack): Likewise.
18883 (mips_expand_vector_init): Likewise.
18885 2021-07-09 Kewen Lin <linkw@linux.ibm.com>
18887 * config/rs6000/vsx.md (mods_<mode>): Rename to...
18888 (mod<mode>3): ... this.
18889 (modu_<mode>): Rename to...
18890 (umod<mode>3): ... this.
18891 * config/rs6000/rs6000-builtin.def (MODS_V2DI, MODS_V4SI, MODU_V2DI,
18892 MODU_V4SI): Adjust.
18894 2021-07-08 Jeff Law <jeffreyalaw@gmail.com>
18896 * config/h8300/shiftrotate.md (variable shifts): Expose condition
18897 code handling for the test before the loop.
18899 2021-07-08 Martin Jambor <mjambor@suse.cz>
18902 * ipa-sra.c (class isra_call_summary): New member
18903 m_before_any_store, initialize it in the constructor.
18904 (isra_call_summary::dump): Dump the new field.
18905 (ipa_sra_call_summaries::duplicate): Copy it.
18906 (process_scan_results): Set it.
18907 (isra_write_edge_summary): Stream it.
18908 (isra_read_edge_summary): Likewise.
18909 (param_splitting_across_edge): Only override
18910 safe_to_import_accesses if m_before_any_store is set.
18912 2021-07-08 Martin Sebor <msebor@redhat.com>
18914 PR bootstrap/101374
18915 * gimple-array-bounds.cc (array_bounds_checker::check_mem_ref):
18916 Use Object Size Type 0 instead of 1.
18918 2021-07-08 Richard Sandiford <richard.sandiford@arm.com>
18920 * tree-vect-loop.c (vectorizable_reduction): Remove always-true
18923 2021-07-08 Richard Sandiford <richard.sandiford@arm.com>
18925 * match.pd: Simplify an extend-operate-truncate sequence involving
18928 2021-07-08 Roger Sayle <roger@nextmovesoftware.com>
18929 Richard Biener <rguenther@suse.de>
18931 PR tree-optimization/40210
18932 * match.pd (bswap optimizations): Simplify (bswap(x)>>C1)&C2 as
18933 (x>>C3)&C2 when possible. Simplify bswap(x)>>C1 as ((T)x)>>C2
18934 when possible. Simplify bswap(x)&C1 as (x>>C2)&C1 when 0<=C1<=255.
18936 2021-07-08 Uroš Bizjak <ubizjak@gmail.com>
18939 * config/i386/i386-expand.c (ix86_expand_sse_unpack):
18941 * config/i386/mmx.md (V_32): New mode iterator.
18942 (mov<V_32:mode>): Use V_32 mode iterator.
18943 (*mov<V_32:mode>_internal): Ditto.
18944 (*push<V_32:mode>2_rex64): Ditto.
18945 (*push<V_32:mode>2): Ditto.
18946 (movmisalign<V_32:mode>): Ditto.
18947 (mmx_<any_shiftrt:insn>v1si3): New insn pattern.
18948 (sse4_1_<any_extend:code>v2qiv2hi2): Ditto.
18949 (vec_unpacks_lo_v4qi): New expander.
18950 (vec_unpacks_hi_v4qi): Ditto.
18951 (vec_unpacku_lo_v4qi): Ditto.
18952 (vec_unpacku_hi_v4qi): Ditto.
18953 * config/i386/i386.h (VALID_SSE2_REG_MODE): Add V1SImode.
18954 (VALID_INT_MODE_P): Ditto.
18956 2021-07-08 Michael Meissner <meissner@linux.ibm.com>
18959 * config/rs6000/rs6000.md (udivti3): New insn.
18960 (divti3): New insn.
18961 (umodti3): New insn.
18962 (modti3): New insn.
18964 2021-07-07 Martin Sebor <msebor@redhat.com>
18966 PR tree-optimization/100137
18967 PR tree-optimization/99121
18968 PR tree-optimization/97027
18969 * builtins.c (access_ref::access_ref): Also set offmax.
18970 (access_ref::offset_in_range): Define new function.
18971 (access_ref::add_offset): Set offmax.
18972 (access_ref::inform_access): Handle access_none.
18973 (handle_mem_ref): Clear ostype.
18974 (compute_objsize_r): Handle ASSERT_EXPR.
18975 * builtins.h (struct access_ref): Add offmax member.
18976 * gimple-array-bounds.cc (array_bounds_checker::check_mem_ref): Use
18977 compute_objsize() and simplify.
18979 2021-07-07 Peter Bergner <bergner@linux.ibm.com>
18981 * config/rs6000/rs6000-call.c (mma_init_builtins): Use VSX_BUILTIN_LXVP
18982 and VSX_BUILTIN_STXVP.
18984 2021-07-07 Martin Sebor <msebor@redhat.com>
18987 * config/aarch64/aarch64.c (aarch64_simd_lane_bounds): Remove
18988 a stray %K from error_at() missed in r12-2088.
18990 2021-07-07 Richard Biener <rguenther@suse.de>
18992 PR tree-optimization/99728
18993 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Record
18995 (mem_refs_may_alias_p): Add assert we handled aggregate
18997 (sm_seq_valid_bb): Give up when running into aggregate copies.
18998 (ref_indep_loop_p): Handle aggregate copies as never
18999 being invariant themselves but allow other refs to be
19000 disambiguated against them.
19001 (can_sm_ref_p): Do not try to apply store-motion to aggregate
19004 2021-07-06 Indu Bhagat <indu.bhagat@oracle.com>
19007 * dwarf2ctf.c (ctf_get_AT_data_member_location): Multiply by 8 to get
19010 2021-07-06 Martin Sebor <msebor@redhat.com>
19012 * gimple-pretty-print.c (percent_G_format): Remove.
19013 * tree-diagnostic.c (default_tree_printer): Remove calls.
19014 * tree-pretty-print.c (percent_K_format): Remove.
19015 * tree-pretty-print.h (percent_K_format): Remove.
19017 2021-07-06 Martin Sebor <msebor@redhat.com>
19019 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
19020 Remove %K and use error_at.
19021 (aarch64_expand_fcmla_builtin): Same.
19022 (aarch64_expand_builtin_tme): Same.
19023 (aarch64_expand_builtin_memtag): Same.
19024 * config/arm/arm-builtins.c (arm_expand_acle_builtin): Same.
19025 (arm_expand_builtin): Same.
19026 * config/arm/arm.c (bounds_check): Same.
19028 2021-07-06 Martin Sebor <msebor@redhat.com>
19030 * builtins.c (warn_string_no_nul): Remove %G.
19031 (maybe_warn_for_bound): Same.
19032 (warn_for_access): Same.
19033 (check_access): Same.
19034 (check_strncat_sizes): Same.
19035 (expand_builtin_strncat): Same.
19036 (expand_builtin_strncmp): Same.
19037 (expand_builtin): Same.
19038 (expand_builtin_object_size): Same.
19039 (warn_dealloc_offset): Same.
19040 (maybe_emit_free_warning): Same.
19041 * calls.c (maybe_warn_alloc_args_overflow): Same.
19042 (maybe_warn_nonstring_arg): Same.
19043 (maybe_warn_rdwr_sizes): Same.
19044 * expr.c (expand_expr_real_1): Remove %K.
19045 * gimple-fold.c (gimple_fold_builtin_strncpy): Remove %G.
19046 (gimple_fold_builtin_strncat): Same.
19047 * gimple-ssa-sprintf.c (format_directive): Same.
19048 (handle_printf_call): Same.
19049 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Same.
19050 * gimple-ssa-warn-restrict.c (maybe_diag_overlap): Same.
19051 (maybe_diag_access_bounds): Same. Call gimple_location.
19052 (check_bounds_or_overlap): Same.
19053 * trans-mem.c (ipa_tm_scan_irr_block): Remove %K. Simplify.
19054 * tree-ssa-ccp.c (pass_post_ipa_warn::execute): Remove %G.
19055 * tree-ssa-strlen.c (maybe_warn_overflow): Same.
19056 (maybe_diag_stxncpy_trunc): Same.
19057 (handle_builtin_stxncpy_strncat): Same.
19058 (maybe_warn_pointless_strcmp): Same.
19059 * tree-ssa-uninit.c (maybe_warn_operand): Same.
19061 2021-07-06 Uroš Bizjak <ubizjak@gmail.com>
19064 * config/i386/predicates.md (vec_setm_operand): Enable
19065 register_operand for TARGET_SSE4_1.
19066 * config/i386/mmx.md (vec_setv2hi): Use vec_setm_operand
19067 as operand 2 predicate. Call ix86_expand_vector_set_var
19068 for non-constant index operand.
19069 (vec_setv4qi): Use vec_setm_mmx_operand as operand 2 predicate.
19070 Call ix86_expand_vector_set_var for non-constant index operand.
19072 2021-07-06 Jeff Law <jeffreyalaw@gmail.com>
19074 * config/h8300/jumpcall.md (*branch): When possible, generate
19075 the comparison in CCZN mode.
19076 * config/h8300/predicates.md (simple_memory_operand): Reject all
19077 auto-increment addressing modes.
19079 2021-07-06 Iain Sandoe <iain@sandoe.co.uk>
19081 PR bootstrap/100246
19082 * config/i386/i386.h (struct stringop_algs): Define a CTOR for
19085 2021-07-06 Richard Biener <rguenther@suse.de>
19087 * doc/md.texi (vec_fmaddsub<mode>4): Document.
19088 (vec_fmsubadd<mode>4): Likewise.
19089 * optabs.def (vec_fmaddsub$a4): Add.
19090 (vec_fmsubadd$a4): Likewise.
19091 * internal-fn.def (IFN_VEC_FMADDSUB): Add.
19092 (IFN_VEC_FMSUBADD): Likewise.
19093 * tree-vect-slp-patterns.c (addsub_pattern::recognize):
19094 Refactor to handle IFN_VEC_FMADDSUB and IFN_VEC_FMSUBADD.
19095 (addsub_pattern::build): Likewise.
19096 * tree-vect-slp.c (vect_optimize_slp): CFN_VEC_FMADDSUB
19097 and CFN_VEC_FMSUBADD are not transparent for permutes.
19098 * config/i386/sse.md (vec_fmaddsub<mode>4): New expander.
19099 (vec_fmsubadd<mode>4): Likewise.
19101 2021-07-06 Richard Biener <rguenther@suse.de>
19103 * doc/invoke.texi (fmove-loop-stores): Document.
19104 * common.opt (fmove-loop-stores): New option.
19105 * opts.c (default_options_table): Enable -fmove-loop-stores
19106 at -O1 but not -Og.
19107 * tree-ssa-loop-im.c (pass_lim::execute): Pass
19108 flag_move_loop_stores instead of true to
19109 loop_invariant_motion_in_fun.
19111 2021-07-06 Iain Sandoe <iain@sandoe.co.uk>
19113 * doc/install.texi: Document --with-dsymutil.
19115 2021-07-06 Andrew Pinski <apinski@marvell.com>
19117 PR tree-optimization/101256
19118 * dbgcnt.def (phiopt_edge_range): New counter.
19119 * tree-ssa-phiopt.c (replace_phi_edge_with_variable):
19120 Check to make sure the new name is defined in the same
19121 bb as the conditional before duplicating range info.
19122 Also add debug counter.
19124 2021-07-06 Kewen Lin <linkw@linux.ibm.com>
19126 PR rtl-optimization/100328
19127 * config/i386/i386-options.c (ix86_option_override_internal):
19128 Set param_ira_consider_dup_in_all_alts to 0.
19130 2021-07-06 Kewen Lin <linkw@linux.ibm.com>
19132 PR rtl-optimization/100328
19133 * doc/invoke.texi (ira-consider-dup-in-all-alts): Document new
19135 * ira.c (ira_get_dup_out_num): Adjust as parameter
19136 param_ira_consider_dup_in_all_alts.
19137 * params.opt (ira-consider-dup-in-all-alts): New.
19138 * ira-conflicts.c (process_regs_for_copy): Add one parameter
19139 single_input_op_has_cstr_p.
19140 (get_freq_for_shuffle_copy): New function.
19141 (add_insn_allocno_copies): Adjust as single_input_op_has_cstr_p.
19142 * ira-int.h (ira_get_dup_out_num): Add one bool parameter.
19144 2021-07-05 Jeff Law <jeffreyalaw@gmail.com>
19146 * config/h8300/shiftrotate.md (shift-by-variable patterns): Update to
19147 generate condition code aware RTL directly.
19149 2021-07-05 Andrew Pinski <apinski@marvell.com>
19151 PR tree-optimization/101039
19152 * match.pd (A CMP 0 ? A : -A): New patterns.
19153 * tree-ssa-phiopt.c (abs_replacement): Delete function.
19154 (tree_ssa_phiopt_worker): Don't call abs_replacement.
19155 Update comment about abs_replacement.
19157 2021-07-05 Andrew Pinski <apinski@marvell.com>
19159 * tree-ssa-phiopt.c (gimple_simplify_phiopt):
19160 If "A ? B : C" fails to simplify, try "(!A) ? C : B".
19162 2021-07-05 Andrew Pinski <apinski@marvell.com>
19164 * tree-ssa-phiopt.c (match_simplify_replacement):
19165 Add early_p argument. Call gimple_simplify_phiopt
19166 instead of gimple_simplify.
19167 (tree_ssa_phiopt_worker): Update call to
19168 match_simplify_replacement and allow unconditionally.
19169 (phiopt_early_allow): New function.
19170 (gimple_simplify_phiopt): New function.
19172 2021-07-05 Andrew Pinski <apinski@marvell.com>
19174 PR middle-end/101237
19175 * fold-const.c (negate_expr_p): Remove call to element_mode
19176 and TREE_MODE/TREE_TYPE when calling HONOR_SIGNED_ZEROS,
19177 HONOR_SIGN_DEPENDENT_ROUNDING, and HONOR_SNANS.
19178 (fold_negate_expr_1): Likewise.
19179 (const_unop): Likewise.
19180 (fold_cond_expr_with_comparison): Likewise.
19181 (fold_binary_loc): Likewise.
19182 (fold_ternary_loc): Likewise.
19183 (tree_call_nonnegative_warnv_p): Likewise.
19184 * match.pd (-(A + B) -> (-B) - A): Likewise.
19186 2021-07-05 Iain Sandoe <iain@sandoe.co.uk>
19188 * configure.ac: Handle --with-dsymutil in the same way as we
19189 do for the assembler and linker. (DEFAULT_DSYMUTIL): New.
19190 Extract the type and version for the dsymutil configured or
19191 found by the default searches.
19192 * config.in: Regenerated.
19193 * configure: Regenerated.
19194 * collect2.c (do_dsymutil): Handle locating dsymutil in the
19195 same way as for the assembler and linker.
19196 * config/darwin.h (DSYMUTIL): Delete.
19197 * gcc.c: Report a configured dsymutil correctly.
19198 * exec-tool.in: Allow for dsymutil.
19200 2021-07-05 Uroš Bizjak <ubizjak@gmail.com>
19202 * config/i386/i386-expand.c (ix86_split_mmx_punpck):
19203 Handle V4QI and V2HI modes.
19204 (expand_vec_perm_blend): Allow 4-byte vector modes with TARGET_SSE4_1.
19205 Handle V4QI mode. Emit mmx_pblendvb32 for 4-byte modes.
19206 (expand_vec_perm_pshufb): Rewrite to use switch statemets.
19207 Handle 4-byte dual operands with TARGET_XOP and single operands
19208 with TARGET_SSSE3. Emit mmx_ppermv32 for TARGET_XOP and
19209 mmx_pshufbv4qi3 for TARGET_SSSE3.
19210 (expand_vec_perm_pblendv): Allow 4-byte vector modes with TARGET_SSE4_1.
19211 (expand_vec_perm_interleave2): Allow 4-byte vector modes.
19212 (expand_vec_perm_pshufb2): Allow 4-byte vector modes with TARGET_SSSE3.
19213 (expand_vec_perm_even_odd_1): Handle V4QI mode.
19214 (expand_vec_perm_broadcast_1): Handle V4QI mode.
19215 (ix86_vectorize_vec_perm_const): Handle V4QI mode.
19216 * config/i386/mmx.md (mmx_ppermv32): New insn pattern.
19217 (mmx_pshufbv4qi3): Ditto.
19218 (*mmx_pblendw32): Ditto.
19219 (*mmx_pblendw64): Rename from *mmx_pblendw.
19220 (mmx_punpckhbw_low): New insn_and_split pattern.
19221 (mmx_punpcklbw_low): Ditto.
19223 2021-07-05 Richard Biener <rguenther@suse.de>
19225 * tree-vect-loop-manip.c (vect_loop_versioning): Do not
19226 set LOOP_C_INFINITE on the vectorized loop.
19228 2021-07-05 Richard Biener <rguenther@suse.de>
19230 PR middle-end/101291
19231 * cfgloopmanip.c (loop_version): Set the loop copy of the
19232 versioned loop to the new loop.
19234 2021-07-04 Iain Sandoe <iain@sandoe.co.uk>
19237 * config.gcc: Ensure that Darwin biarch definitions are
19238 added before i386.h.
19239 * config/i386/darwin.h (TARGET_64BIT): Remove.
19240 (PR80556_WORKAROUND): New.
19241 (REAL_LIBGCC_SPEC): Amend to use PR80556_WORKAROUND.
19242 (DARWIN_SUBARCH_SPEC): New.
19243 * config/i386/darwin32-biarch.h (TARGET_64BIT_DEFAULT,
19244 TARGET_BI_ARCH, PR80556_WORKAROUND): New.
19245 (REAL_LIBGCC_SPEC): Remove.
19246 * config/i386/darwin64-biarch.h (TARGET_64BIT_DEFAULT,
19247 TARGET_BI_ARCH, PR80556_WORKAROUND): New.
19248 (REAL_LIBGCC_SPEC): Remove.
19250 2021-07-03 H.J. Lu <hjl.tools@gmail.com>
19252 PR middle-end/101294
19253 * expr.c (store_constructor): Don't use vec_duplicate on vector.
19255 2021-07-02 Martin Sebor <msebor@redhat.com>
19257 PR middle-end/98871
19258 PR middle-end/98512
19259 * diagnostic.c (get_any_inlining_info): New.
19260 (update_effective_level_from_pragmas): Handle inlining context.
19261 (diagnostic_enabled): Same.
19262 (diagnostic_report_diagnostic): Same.
19263 * diagnostic.h (struct diagnostic_info): Add ctor.
19264 (struct diagnostic_context): Add new member.
19265 * tree-diagnostic.c (set_inlining_locations): New.
19266 (tree_diagnostics_defaults): Set new callback pointer.
19268 2021-07-02 Peter Bergner <bergner@linux.ibm.com>
19270 * config/rs6000/rs6000-builtin.def (BU_MMA_PAIR_LD, BU_MMA_PAIR_ST):
19272 (__builtin_vsx_lxvp, __builtin_vsx_stxvp): New built-ins.
19273 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_mma_builtin): Expand
19274 lxvp and stxvp built-ins.
19275 (mma_init_builtins): Handle lxvp and stxvp built-ins.
19276 (builtin_function_type): Likewise.
19277 * doc/extend.texi (__builtin_vsx_lxvp, __builtin_mma_stxvp): Document.
19279 2021-07-02 Jeff Law <jeffreyalaw@gmail.com>
19281 * config/h8300/h8300-protos.h (compute_a_shift_cc): Accept
19282 additional argument for the code.
19283 * config/h8300/h8300.c (compute_a_shift_cc): Accept additional
19284 argument for the code. Just return if the ZN bits are useful or
19285 not rather than the old style CC_* enums.
19286 * config/h8300/shiftrotate.md (shiftqi_noscratch): Move before
19287 more generic shiftqi patterns.
19288 (shifthi_noscratch, shiftsi_noscratch): Similarly.
19289 (shiftqi_noscratch_set_flags): New pattern.
19290 (shifthi_noscratch_set_flags, shiftsi_noscratch_set_flags): Likewise.
19292 2021-07-02 Andrew MacLeod <amacleod@redhat.com>
19294 PR tree-optimization/101223
19295 * range-op.cc (build_lt): Add -1 for signed values.
19296 (built_gt): Subtract -1 for signed values.
19298 2021-07-02 David Faust <david.faust@oracle.com>
19300 * btfout.c (get_btf_kind): Support BTF_KIND_FLOAT.
19301 (btf_asm_type): Likewise.
19303 2021-07-02 Jeff Law <jeffreyalaw@gmail.com>
19305 * config/h8300/h8300-protos.h (output_a_shift): Make first argument
19306 an array of rtx rather than a pointer to rtx. Add code argument.
19307 (compute_a_shift_length): Similarly.
19308 * config/h8300/h8300.c (h8300_shift_costs): Adjust now that the
19309 shift itself isn't an operand. Create dummy operand[0] to carry
19310 a mode and pass a suitable rtx code to compute_a_shift_length.
19311 (get_shift_alg): Adjust operand number of clobber in output templates.
19312 (output_a_shift): Make first argument an array of rtx rather than
19313 a pointer to rtx. Add code argument for the type of shift.
19314 Adjust now that the shift itself is no longer an operand.
19315 (compute_a_shift_length): Similarly.
19316 * config/h8300/shiftrotate.md (shiftqi, shifthi, shiftsi): Use an
19317 iterator rather than nshift_operator.
19318 (shiftqi_noscratch, shifthi_noscratch, shiftsi_noscratch): Likewise.
19319 (shiftqi_clobber_flags): Adjust to API changes in output_a_shift
19320 and compute_a_shift_length.
19321 (shiftqi_noscratch_clobber_flags): Likewise.
19322 (shifthi_noscratch_clobber_flags): Likewise.
19323 (shiftsi_noscratch_clobber_flags): Likewise.
19325 2021-07-02 Iain Sandoe <iain@sandoe.co.uk>
19328 * config/darwin.h (DSYMUTIL_SPEC): Do not try to run
19329 dsymutil for BTF/CTF.
19331 2021-07-02 Iain Sandoe <iain@sandoe.co.uk>
19334 * config/darwin.h (CTF_INFO_SECTION_NAME): Update the
19335 segment to include BTF.
19336 (BTF_INFO_SECTION_NAME): New.
19338 2021-07-02 Jeff Law <jeffreyalaw@gmail.com>
19340 * config/m32r/m32r-protos.h (call_operand): Adjust return type.
19341 (small_data_operand, memreg_operand, small_insn_p): Likewise.
19342 * config/m32r/m32r.c (call_operand): Adjust return type.
19343 (small_data_operand, memreg_operand): Likewise.
19345 2021-07-02 Jeff Law <jeffreyalaw@gmail.com>
19347 * config/frv/frv-protos.h (integer_register_operand): Adjust return
19349 (frv_load_operand, gpr_or_fpr_operand, gpr_no_subreg_operand): Likewise.
19350 (fpr_or_int6_operand, gpr_or_int_operand); Likewise.
19351 (gpr_or_int12_operand, gpr_or_int10_operand); Likewise.
19352 (move_source_operand, move_destination_operand): Likewise.
19353 (condexec_source_operand, condexec_dest_operand): Likewise.
19354 (lr_operand, gpr_or_memory_operand, fpr_or_memory_operand): Likewise.
19355 (reg_or_0_operand, fcc_operand, icc_operand, cc_operand): Likewise.
19356 (fcr_operand, icr_operand, cr_operand, call_operand): Likewise.
19357 (fpr_operand, even_reg_operand, odd_reg_operand): Likewise.
19358 (even_gpr_operand, odd_gpr_operand, quad_fpr_operand): Likewise.
19359 (even_fpr_operand, odd_fpr_operand): Likewise.
19360 (dbl_memory_one_insn_operand, dbl_memory_two_insn_operand): Likewise.
19361 (int12_operand, int6_operand, int5_operand, uint5_operand): Likewise.
19362 (uint4_operand, uint1_operand, int_2word_operand): Likewise
19363 (upper_int16_operand, uint16_operand, symbolic_operand): Likewise.
19364 (relational_operator, float_relational_operator): Likewise.
19365 (ccr_eqne_operator, minmax_operator): Likewise.
19366 (condexec_si_binary_operator, condexec_si_media_operator): Likewise.
19367 (condexec_si_divide_operator, condexec_si_unary_operator): Likewise.
19368 (condexec_sf_conv_operator, condexec_sf_add_operator): Likewise.
19369 (intop_compare_operator, acc_operand, even_acc_operand): Likewise.
19370 (quad_acc_operand, accg_operand): Likewise.
19372 2021-07-02 Jeff Law <jeffreyalaw@gmail.com>
19374 * config/stormy16/stormy16-protos.h (xstormy16_below_100_symbol): Change
19375 return type to a bool.
19376 (nonimmediate_nonstack_operand): Likewise.
19377 (xstormy16_splittable_below100_operand): Likewise.
19378 * config/stormy16/stormy16.c (xstormy16_below_100_symbol): Fix
19380 (xstormy16_splittable_below100_operand): Likewise.
19382 2021-07-02 Richard Biener <rguenther@suse.de>
19384 PR tree-optimization/101293
19385 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Compare MEM_REF bases
19386 with combined offsets.
19387 (gather_mem_refs_stmt): Hash MEM_REFs as if their offset were
19388 combined with the rest of the offset.
19390 2021-07-02 Eric Botcazou <ebotcazou@adacore.com>
19392 * config/i386/i386.c (asm_preferred_eh_data_format): Always use the
19393 PIC encodings for PE-COFF targets.
19395 2021-07-02 Jakub Jelinek <jakub@redhat.com>
19398 * config/i386/i386-expand.c (ix86_broadcast_from_integer_constant):
19399 Return nullptr for TImode inner mode.
19401 2021-07-02 Richard Biener <rguenther@suse.de>
19403 PR tree-optimization/101280
19404 PR tree-optimization/101173
19405 * gimple-loop-interchange.cc
19406 (tree_loop_interchange::valid_data_dependences): Properly
19407 guard all dependence checks with DDR_REVERSED_P or its
19410 2021-07-02 Hongyu Wang <hongyu.wang@intel.com>
19412 * config/i386/i386-expand.c (ix86_expand_builtin):
19413 Add branch to clear odata when ZF is set for asedecenc_expand
19414 and wideaesdecenc_expand.
19416 2021-07-02 Eugene Rozenfeld <erozen@microsoft.com>
19418 * config/i386/gcc-auto-profile: regenerate
19420 2021-07-02 liuhongt <hongtao.liu@intel.com>
19422 * config/i386/sse.md (trunc<mode><pmov_dst_4>2): Refined to ..
19423 (trunc<mode><pmov_dst_4_lower>2): this.
19425 2021-07-01 David Malcolm <dmalcolm@redhat.com>
19427 * diagnostic.h (diagnostic_context::m_file_cache): New field.
19428 * input.c (class fcache): Rename to...
19429 (class file_cache_slot): ...this, making most members private and
19430 prefixing fields with "m_".
19431 (file_cache_slot::get_file_path): New accessor.
19432 (file_cache_slot::get_use_count): New accessor.
19433 (file_cache_slot::missing_trailing_newline_p): New accessor.
19434 (file_cache_slot::inc_use_count): New.
19435 (fcache_buffer_size): Move to...
19436 (file_cache_slot::buffer_size): ...here.
19437 (fcache_line_record_size): Move to...
19438 (file_cache_slot::line_record_size): ...here.
19439 (fcache_tab): Delete, in favor of global_dc->m_file_cache.
19440 (fcache_tab_size): Move to file_cache::num_file_slots.
19441 (diagnostic_file_cache_init): Update for move of fcache_tab
19442 to global_dc->m_file_cache.
19443 (diagnostic_file_cache_fini): Likewise.
19444 (lookup_file_in_cache_tab): Convert to...
19445 (file_cache::lookup_file): ...this.
19446 (diagnostics_file_cache_forcibly_evict_file): Update for move of
19447 fcache_tab to global_dc->m_file_cache, moving most of
19448 implementation to...
19449 (file_cache::forcibly_evict_file): ...this new function and...
19450 (file_cache_slot::evict): ...this new function.
19451 (evicted_cache_tab_entry): Convert to...
19452 (file_cache::evicted_cache_tab_entry): ...this.
19453 (add_file_to_cache_tab): Convert to...
19454 (file_cache::add_file): ...this, moving bulk of implementation
19456 (file_cache_slot::create): ..this new function.
19457 (file_cache::file_cache): New.
19458 (file_cache::~file_cache): New.
19459 (lookup_or_add_file_to_cache_tab): Convert to...
19460 (file_cache::lookup_or_add_file): ..this new function.
19461 (fcache::fcache): Rename to...
19462 (file_cache_slot::file_cache_slot): ...this, adding "m_" prefixes
19464 (fcache::~fcache): Rename to...
19465 (file_cache_slot::~file_cache_slot): ...this, adding "m_" prefixes
19467 (needs_read): Convert to...
19468 (file_cache_slot::needs_read_p): ...this.
19469 (needs_grow): Convert to...
19470 (file_cache_slot::needs_grow_p): ...this.
19471 (maybe_grow): Convert to...
19472 (file_cache_slot::maybe_grow): ...this.
19473 (read_data): Convert to...
19474 (file_cache_slot::read_data): ...this.
19475 (maybe_read_data): Convert to...
19476 (file_cache_slot::maybe_read_data): ...this.
19477 (get_next_line): Convert to...
19478 (file_cache_slot::get_next_line): ...this.
19479 (goto_next_line): Convert to...
19480 (file_cache_slot::goto_next_line): ...this.
19481 (read_line_num): Convert to...
19482 (file_cache_slot::read_line_num): ...this.
19483 (location_get_source_line): Update for moving of globals to
19484 global_dc->m_file_cache.
19485 (location_missing_trailing_newline): Likewise.
19486 * input.h (class file_cache_slot): New forward decl.
19487 (class file_cache): New.
19489 2021-07-01 Michael Meissner <meissner@linux.ibm.com>
19491 * config/rs6000/rs6000.c (rs6000_maybe_emit_fp_cmove): Add IEEE
19492 128-bit floating point conditional move support.
19493 (have_compare_and_set_mask): Add IEEE 128-bit floating point
19495 * config/rs6000/rs6000.md (mov<mode>cc, IEEE128 iterator): New insn.
19496 (mov<mode>cc_p10, IEEE128 iterator): New insn.
19497 (mov<mode>cc_invert_p10, IEEE128 iterator): New insn.
19498 (fpmask<mode>, IEEE128 iterator): New insn.
19499 (xxsel<mode>, IEEE128 iterator): New insn.
19501 2021-07-01 Iain Sandoe <iain@sandoe.co.uk>
19504 * config/darwin.h (CTF_INFO_SECTION_NAME): New.
19506 2021-07-01 H.J. Lu <hjl.tools@gmail.com>
19508 * config/i386/i386-expand.c (ix86_expand_vector_init_duplicate):
19510 * config/i386/i386-protos.h (ix86_expand_vector_init_duplicate):
19512 * config/i386/sse.md (INT_BROADCAST_MODE): New mode iterator.
19513 (vec_duplicate<mode>): New expander.
19515 2021-07-01 H.J. Lu <hjl.tools@gmail.com>
19518 * config/i386/i386-expand.c (ix86_expand_vector_init_duplicate):
19520 (ix86_byte_broadcast): New function.
19521 (ix86_convert_const_wide_int_to_broadcast): Likewise.
19522 (ix86_expand_move): Convert CONST_WIDE_INT to broadcast if mode
19523 size is 16 bytes or bigger.
19524 (ix86_broadcast_from_integer_constant): New function.
19525 (ix86_expand_vector_move): Convert CONST_WIDE_INT and CONST_VECTOR
19526 to broadcast if mode size is 16 bytes or bigger.
19527 * config/i386/i386-protos.h (ix86_gen_scratch_sse_rtx): New
19529 * config/i386/i386.c (ix86_gen_scratch_sse_rtx): New function.
19531 2021-07-01 Uroš Bizjak <ubizjak@gmail.com>
19533 * config/i386/predicates.md (ix86_endbr_immediate_operand):
19534 Return true/false instead of 1/0.
19535 (movq_parallel): Ditto.
19537 2021-07-01 Uroš Bizjak <ubizjak@gmail.com>
19539 * recog.c (general_operand): Return true/false instead of 1/0.
19540 (register_operand): Ditto.
19541 (immediate_operand): Ditto.
19542 (const_int_operand): Ditto.
19543 (const_scalar_int_operand): Ditto.
19544 (const_double_operand): Ditto.
19545 (push_operand): Ditto.
19546 (pop_operand): Ditto.
19547 (memory_operand): Ditto.
19548 (indirect_operand): Ditto.
19550 2021-07-01 Uroš Bizjak <ubizjak@gmail.com>
19552 * genpreds.c (write_predicate_subfunction):
19553 Change the type of written subfunction to bool.
19554 (write_one_predicate_function):
19555 Change the type of written function to bool.
19556 (write_tm_preds_h): Ditto.
19557 * recog.h (*insn_operand_predicate_fn): Change the type to bool.
19558 * recog.c (general_operand): Change the type to bool.
19559 (address_operand): Ditto.
19560 (register_operand): Ditto.
19561 (pmode_register_operand): Ditto.
19562 (scratch_operand): Ditto.
19563 (immediate_operand): Ditto.
19564 (const_int_operand): Ditto.
19565 (const_scalar_int_operand): Ditto.
19566 (const_double_operand): Ditto.
19567 (nonimmediate_operand): Ditto.
19568 (nonmemory_operand): Ditto.
19569 (push_operand): Ditto.
19570 (pop_operand): Ditto.
19571 (memory_operand): Ditto.
19572 (indirect_operand): Ditto.
19573 (ordered_comparison_operator): Ditto.
19574 (comparison_operator): Ditto.
19575 * config/i386/i386-expand.c (ix86_expand_sse_cmp):
19576 Change the type of indirect predicate function to bool.
19577 * config/rs6000/rs6000.c (easy_vector_constant):
19578 Change the type to bool.
19579 * config/mips/mips-protos.h (m16_based_address_p):
19580 Change the type of operand 3 to bool.
19582 2021-07-01 Richard Biener <rguenther@suse.de>
19584 PR tree-optimization/101280
19585 PR tree-optimization/101173
19586 * gimple-loop-interchange.cc
19587 (tree_loop_interchange::valid_data_dependences): Revert
19588 previous change and instead correctly handle DDR_REVERSED_P
19591 2021-07-01 Richard Biener <rguenther@suse.de>
19593 PR tree-optimization/101278
19594 * tree-ssa-dse.c (dse_classify_store): First check for
19595 uses, then ignore stmt for chaining purposes.
19597 2021-07-01 Richard Biener <rguenther@suse.de>
19599 PR tree-optimization/100778
19600 * tree-vect-slp.c (vect_schedule_slp_node): Do not place trapping
19601 vectorized ops ahead of their scalar BB.
19603 2021-07-01 Uroš Bizjak <ubizjak@gmail.com>
19606 * config/i386/i386.md (*nabs<dwi>2_doubleword):
19607 New insn_and_split pattern.
19608 (*nabs<dwi>2_1): Ditto.
19609 * config/i386/i386-features.c
19610 (general_scalar_chain::compute_convert_gain):
19611 Handle (NEG (ABS (...))) RTX. Rewrite src code
19612 scanner as switch statement.
19613 (general_scalar_chain::convert_insn):
19614 Handle (NEG (ABS (...))) RTX.
19615 (general_scalar_to_vector_candidate_p):
19616 Detect (NEG (ABS (...))) RTX. Reorder case statements
19617 for (AND (NOT (...) ...)) fallthrough.
19619 2021-07-01 Richard Biener <rguenther@suse.de>
19621 PR tree-optimization/101178
19622 * tree-vect-slp.c (slpg_vertex::materialize): Remove.
19623 (slpg::perm_in): Add.
19624 (slpg::get_perm_in): Remove.
19625 (slpg::get_perm_materialized): Add.
19626 (vect_optimize_slp): Handle VEC_PERM nodes more optimally
19627 during permute propagation and materialization.
19629 2021-07-01 Jakub Jelinek <jakub@redhat.com>
19632 * dwarf2out.c (loc_list_from_tree_1): Handle COMPOUND_LITERAL_EXPR.
19634 2021-07-01 Jakub Jelinek <jakub@redhat.com>
19636 PR middle-end/94366
19637 * omp-low.c (lower_rec_input_clauses): Rename is_fp_and_or to
19638 is_truth_op, set it for TRUTH_*IF_EXPR regardless of new_var's type,
19639 use boolean_type_node instead of integer_type_node as NE_EXPR type.
19640 (lower_reduction_clauses): Likewise.
19642 2021-06-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
19644 * config/gcn/gcn.c: Include dwarf2.h.
19645 (gcn_addr_space_debug): New function.
19646 (TARGET_ADDR_SPACE_DEBUG): New hook.
19648 2021-06-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
19650 * common/config/gcn/gcn-common.c
19651 (gcn_option_optimization_table): Change OPT_fomit_frame_pointer to -O3.
19652 * config/gcn/gcn.c (gcn_expand_prologue): Prefer the frame pointer
19654 (gcn_expand_prologue): Prefer the frame pointer when emitting CFI.
19655 (gcn_frame_pointer_rqd): New function.
19656 (TARGET_FRAME_POINTER_REQUIRED): New hook.
19658 2021-06-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
19660 * config/gcn/gcn.c (move_callee_saved_registers): Emit CFI notes for
19661 prologue register saves.
19662 (gcn_debug_unwind_info): Use UI_DWARF2.
19663 (gcn_dwarf_register_number): Map DWARF_LINK_REGISTER to DWARF PC.
19664 (gcn_dwarf_register_span): DWARF_LINK_REGISTER doesn't span.
19665 * config/gcn/gcn.h: (DWARF_FRAME_RETURN_COLUMN): New define.
19666 (DWARF_LINK_REGISTER): New define.
19667 (FIRST_PSEUDO_REGISTER): Increment.
19668 (FIXED_REGISTERS): Add entry for DWARF_LINK_REGISTER.
19669 (CALL_USED_REGISTERS): Likewise.
19670 (REGISTER_NAMES): Likewise.
19672 2021-06-30 Richard Biener <rguenther@suse.de>
19674 PR tree-optimization/101267
19675 * tree-vect-stmts.c (vect_check_scalar_mask): Adjust
19676 API and use SLP compatible interface of vect_is_simple_use.
19677 Reject not vectorized SLP defs for callers that do not support
19679 (vect_check_store_rhs): Handle masked stores and pass down
19680 the appropriate operator index.
19681 (vectorizable_call): Adjust.
19682 (vectorizable_store): Likewise.
19683 (vectorizable_load): Likewise. Handle SLP pecularity of
19685 (vect_is_simple_use): Remove special-casing of masked stores.
19687 2021-06-30 Tobias Burnus <tobias@codesourcery.com>
19689 * common.opt (foffload): Remove help as Driver only.
19690 * gcc.c (display_help): Add -foffload.
19692 2021-06-30 Tobias Burnus <tobias@codesourcery.com>
19694 * gcc.c (close_at_file, execute): Replace alloca by XALLOCAVEC.
19695 (check_offload_target_name): Fix splitting OFFLOAD_TARGETS into
19696 a candidate list; better inform no offload target is configured
19697 and fix hint extraction when passed target is not '\0' at [len].
19698 * common.opt (foffload): Add tailing '.'.
19699 (foffload-options): Likewise; fix flag name in the help string.
19701 2021-06-30 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
19704 * config/arm/arm_neon.h: Move vabs intrinsics before vcage_f32.
19705 (vcage_f32): Gate comparison on __FAST_MATH__.
19706 (vcageq_f32): Likewise.
19707 (vcale_f32): Likewise.
19708 (vcaleq_f32): Likewise.
19709 (vcagt_f32): Likewise.
19710 (vcagtq_f32): Likewise.
19711 (vcalt_f32): Likewise.
19712 (vcaltq_f32): Likewise.
19713 (vcage_f16): Likewise.
19714 (vcageq_f16): Likewise.
19715 (vcale_f16): Likewise.
19716 (vcaleq_f16): Likewise.
19717 (vcagt_f16): Likewise.
19718 (vcagtq_f16): Likewise.
19719 (vcalt_f16): Likewise.
19720 (vcaltq_f16): Likewise.
19722 2021-06-30 Richard Biener <rguenther@suse.de>
19724 PR tree-optimization/101264
19725 * tree-vect-slp.c (vect_optimize_slp): Propagate the
19726 computed perm_in to all "any" permute successors
19727 we cannot de-duplicate immediately.
19729 2021-06-30 liuhongt <hongtao.liu@intel.com>
19732 * config/i386/sse.md
19733 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>):
19735 (avx512f_sfixupimm<mode><maskz_scalar_name><round_saeonly_name>):
19737 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>"): Refined.
19738 * config/i386/subst.md (maskz_scalar): New define_subst.
19739 (maskz_scalar_name): New subst_attr.
19740 (maskz_scalar_op5): Ditto.
19741 (round_saeonly_maskz_scalar_op5): Ditto.
19742 (round_saeonly_maskz_scalar_operand5): Ditto.
19744 2021-06-30 David Edelsohn <dje.gcc@gmail.com>
19746 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags):
19747 Increase code CSECT alignment to at least 32 bytes.
19748 * config/rs6000/xcoff.h (TEXT_SECTION_ASM_OP): Add 32 byte
19749 alignment designation.
19751 2021-06-29 Sergei Trofimovich <siarheit@google.com>
19753 * doc/generic.texi: Fix s/net yet/not yet/ typo.
19755 2021-06-29 Andrew MacLeod <amacleod@redhat.com>
19757 PR tree-optimization/101254
19758 * range-op.cc (operator_minus::op1_op2_relation_effect): Check for
19759 wrapping/non-wrapping when setting the result range.
19761 2021-06-29 Andrew MacLeod <amacleod@redhat.com>
19763 * value-query.cc (gimple_range_global): Allow phis.
19765 2021-06-29 Andrew MacLeod <amacleod@redhat.com>
19767 * vr-values.c (vr_values::vrp_stmt_computes_nonzero): Use stmt.
19768 (simplify_using_ranges::op_with_boolean_value_range_p): Add a
19769 statement for location context.
19770 (check_for_binary_op_overflow): Ditto.
19771 (simplify_using_ranges::get_vr_for_comparison): Ditto.
19772 (simplify_using_ranges::compare_name_with_value): Ditto.
19773 (simplify_using_ranges::compare_names): Ditto.
19774 (vrp_evaluate_conditional_warnv_with_ops_using_ranges): Ditto.
19775 (simplify_using_ranges::simplify_truth_ops_using_ranges): Ditto.
19776 (simplify_using_ranges::simplify_min_or_max_using_ranges): Ditto.
19777 (simplify_using_ranges::simplify_internal_call_using_ranges): Ditto.
19778 (simplify_using_ranges::two_valued_val_range_p): Ditto.
19779 (simplify_using_ranges::simplify): Ditto.
19780 * vr-values.h: Adjust prototypes.
19782 2021-06-29 Uroš Bizjak <ubizjak@gmail.com>
19785 * config/i386/mmx.md (vec_addsubv2sf3): New insn pattern.
19787 2021-06-29 Julian Brown <julian@codesourcery.com>
19789 * config/gcn/gcn.c (gcn_init_libfuncs): New function.
19790 (TARGET_INIT_LIBFUNCS): Define target hook using above function.
19791 * config/gcn/gcn.h (UNITS_PER_WORD): Define to 8 for IN_LIBGCC2, 4
19793 (LIBGCC2_UNITS_PER_WORD, BITS_PER_WORD): Remove definitions.
19794 (MAX_FIXED_MODE_SIZE): Change to 128.
19796 2021-06-29 Julian Brown <julian@codesourcery.com>
19798 * config/gcn/gcn.md (UNSPEC_FLBIT_INT): New unspec constant.
19799 (s_mnemonic): Add clrsb.
19800 (gcn_flbit<mode>_int): Add insn pattern for SImode/DImode.
19801 (clrsb<mode>2): Add expander for SImode/DImode.
19803 2021-06-29 Julian Brown <julian@codesourcery.com>
19805 * config/gcn/gcn.md (<su>mulsidi3, <su>mulsidi3_reg, <su>mulsidi3_imm,
19806 muldi3): Add patterns.
19808 2021-06-29 Julian Brown <julian@codesourcery.com>
19810 * config/gcn/gcn.md (<su>mulsi3_highpart): Change to expander.
19811 (<su>mulsi3_highpart_reg, <su>mulsi3_highpart_imm): New patterns.
19813 2021-06-29 Julian Brown <julian@codesourcery.com>
19815 * config/gcn/gcn.md (mulsi3): Make s_mulk_i32 variant clobber SCC.
19817 2021-06-29 Joseph Myers <joseph@codesourcery.com>
19819 * btfout.c, ctfout.c: Include "memmodel.h".
19821 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
19823 * gcc.c (check_offload_target_name): Cast len argument to
19824 %q.*s to 'int'; avoid -Wstringop-truncation warning.
19826 2021-06-29 Richard Biener <rguenther@suse.de>
19828 * tree-vect-slp.c (vect_optimize_slp): Forward propagate
19829 to "any" permute nodes and relax "any" permute proapgation
19830 during iterative backward propagation.
19832 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
19835 * common.opt (-foffload=): Update description.
19836 (-foffload-options=): New.
19837 * doc/invoke.texi (C Language Options): Document
19838 -foffload and -foffload-options.
19839 * gcc.c (check_offload_target_name): New, split off from
19840 handle_foffload_option.
19841 (check_foffload_target_names): New.
19842 (handle_foffload_option): Handle -foffload=default.
19843 (driver_handle_option): Update for -foffload-options.
19844 * lto-opts.c (lto_write_options): Use -foffload-options
19845 instead of -foffload.
19846 * lto-wrapper.c (merge_and_complain, append_offload_options):
19848 * opts.c (common_handle_option): Likewise.
19850 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
19852 * doc/invoke.texi (C Language Options): Sort options
19853 alphabetically in optlist and also the description itself.
19854 Remove leftover -fallow-single-precision from and add missing
19855 -fgnu-tm to the optlist.
19857 2021-06-29 Richard Biener <rguenther@suse.de>
19859 * tree-vect-slp.c (slpg_vertex::visited): Remove.
19860 (vect_slp_perms_eq): Handle -1 permutes.
19861 (vect_optimize_slp): Rewrite permute propagation.
19863 2021-06-29 Jakub Jelinek <jakub@redhat.com>
19866 * match.pd ((intptr_t)x eq/ne CST to x eq/ne (typeof x) CST): Don't
19867 perform the optimization in GENERIC when sanitizing and x has a
19870 2021-06-29 Richard Biener <rguenther@suse.de>
19872 PR tree-optimization/101242
19873 * tree-vect-slp.c (vect_slp_build_vertices): Force-add
19874 PHIs with not represented initial values as leafs.
19876 2021-06-29 Jan-Benedict Glaw <jbglaw@getslash.de>
19878 * config/pdp11/pdp11.h (ASM_OUTPUT_SKIP): Fix signedness warning.
19879 * config/pdp11/pdp11.c (pdp11_asm_print_operand_punct_valid_p): Remove
19880 "register" keyword.
19881 (pdp11_initial_elimination_offset) Remove unused variable.
19882 (pdp11_cmp_length) Ditto.
19883 (pdp11_insn_cost): Ditto, and fix signedness warning.
19885 2021-06-29 David Edelsohn <dje.gcc@gmail.com>
19887 * btfout.c: Include tm_p.h.
19890 2021-06-28 Indu Bhagat <indu.bhagat@oracle.com>
19892 * config/bpf/bpf.c (bpf_expand_prologue): Do not mark insns as
19894 (bpf_expand_epilogue): Likewise.
19895 * config/bpf/bpf.h (DWARF2_FRAME_INFO): Define to 0.
19896 Do not define DBX_DEBUGGING_INFO.
19898 2021-06-28 Indu Bhagat <indu.bhagat@oracle.com>
19900 * doc/invoke.texi: Document the CTF and BTF debug info options.
19902 2021-06-28 Indu Bhagat <indu.bhagat@oracle.com>
19903 David Faust <david.faust@oracle.com>
19904 Jose E. Marchesi <jose.marchesi@oracle.com>
19905 Weimin Pan <weimin.pan@oracle.com>
19907 * Makefile.in: Add ctfc.*, ctfout.c and btfout.c files to
19908 GTFILES. Add new object files.
19909 * common.opt: Add CTF and BTF debug info options.
19910 * btfout.c: New file.
19911 * ctfc.c: Likewise.
19912 * ctfc.h: Likewise.
19913 * ctfout.c: Likewise.
19914 * dwarf2ctf.c: Likewise.
19915 * dwarf2ctf.h: Likewise.
19916 * dwarf2cfi.c (dwarf2out_do_frame): Acknowledge CTF_DEBUG and
19918 * dwarf2out.c (dwarf2out_source_line): Likewise.
19919 (dwarf2out_finish): Skip emitting DWARF if CTF or BTF are to
19921 (debug_format_do_cu): New function.
19922 (dwarf2out_early_finish): Traverse DIEs and emit CTF/BTF for
19924 Include dwarf2ctf.c.
19925 * final.c (dwarf2_debug_info_emitted_p): Acknowledge DWARF-based debug
19927 * flag-types.h (enum debug_info_type): Add CTF_DEBUG and BTF_DEBUG.
19928 (CTF_DEBUG): New bitmask.
19929 (BTF_DEBUG): Likewise.
19930 (enum ctf_debug_info_levels): New enum.
19931 * gengtype.c (open_base_files): Handle ctfc.h.
19932 (main): Handle uint32_t type.
19933 * flags.h (btf_debuginfo_p): New definition.
19934 (dwarf_based_debuginfo_p): Likewise.
19935 * opts.c (debug_type_names): Add entries for CTF and BTF.
19936 (btf_debuginfo_p): New function.
19937 (dwarf_based_debuginfo_p): Likewise.
19938 (common_handle_option): Handle -gctfN and -gbtf options.
19939 (set_debug_level): Set CTF_DEBUG, BTF_DEBUG whenever appropriate.
19940 * toplev.c (process_options): Inform the user and ignore -gctfLEVEL if
19943 2021-06-28 Jose E. Marchesi <jose.marchesi@oracle.com>
19945 * dwarf2out.c (AT_class): Function is no longer static.
19946 (AT_int): Likewise.
19947 (AT_unsigned): Likewise.
19948 (AT_loc): Likewise.
19949 (get_AT): Likewise.
19950 (get_AT_string): Likewise.
19951 (get_AT_flag): Likewise.
19952 (get_AT_unsigned): Likewise.
19953 (get_AT_ref): Likewise.
19954 (new_die_raw): Likewise.
19955 (lookup_decl_die): Likewise.
19956 (base_type_die): Likewise.
19957 (add_name_attribute): Likewise.
19958 (add_AT_int): Likewise.
19959 (add_AT_unsigned): Likewise.
19960 (add_AT_loc): Likewise.
19961 (dw_get_die_tag): New function.
19962 (dw_get_die_child): Likewise.
19963 (dw_get_die_sib): Likewise.
19964 (struct dwarf_file_data): Move from here to dwarf2out.h
19965 (struct dw_attr_struct): Likewise.
19966 * dwarf2out.h: Analogous changes.
19968 2021-06-28 Martin Jambor <mjambor@suse.cz>
19971 * ipa-param-manipulation.h (class ipa_param_body_adjustments): New
19972 members m_dead_stmts and m_dead_ssas.
19973 * ipa-param-manipulation.c
19974 (ipa_param_body_adjustments::mark_dead_statements): New function.
19975 (ipa_param_body_adjustments::common_initialization): Call it on
19976 all removed but not split parameters.
19977 (ipa_param_body_adjustments::ipa_param_body_adjustments): Initialize
19979 (ipa_param_body_adjustments::modify_call_stmt): Remove arguments that
19981 * tree-inline.c (remap_gimple_stmt): Do not copy dead statements, reset
19982 dead debug statements.
19983 (copy_phis_for_bb): Do not copy dead PHI nodes.
19985 2021-06-28 Martin Jambor <mjambor@suse.cz>
19988 * symtab-clones.h (clone_info): Removed member param_adjustments.
19989 * ipa-param-manipulation.h: Adjust initial comment to reflect how we
19990 deal with pass-through splits now.
19991 (ipa_param_performed_split): Removed.
19992 (ipa_param_adjustments::modify_call): Adjusted parameters.
19993 (class ipa_param_body_adjustments): Adjusted parameters of
19994 register_replacement, modify_gimple_stmt and modify_call_stmt.
19995 (ipa_verify_edge_has_no_modifications): Declare.
19996 (ipa_edge_modifications_finalize): Declare.
19997 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Remove
19998 performed_splits processing, pas only edge to padjs->modify_call,
19999 check that call arguments were not modified if they should not have
20001 * cgraphclones.c (cgraph_node::create_clone): Do not copy performed
20003 * ipa-param-manipulation.c (struct pass_through_split_map): New type.
20004 (ipa_edge_modification_info): Likewise.
20005 (ipa_edge_modification_sum): Likewise.
20006 (ipa_edge_modifications): New edge summary.
20007 (ipa_verify_edge_has_no_modifications): New function.
20008 (transitive_split_p): Removed.
20009 (transitive_split_map): Likewise.
20010 (init_transitive_splits): Likewise.
20011 (ipa_param_adjustments::modify_call): Adjusted to use the new edge
20012 summary instead of performed_splits.
20013 (ipa_param_body_adjustments::register_replacement): Drop dummy
20014 parameter, set base_index of the created ipa_param_body_replacement.
20015 (phi_arg_will_live_p): New function.
20016 (ipa_param_body_adjustments::common_initialization): Do not create
20017 IPA_SRA dummy decls.
20018 (simple_tree_swap_info): Removed.
20019 (remap_split_decl_to_dummy): Likewise.
20020 (record_argument_state_1): New function.
20021 (record_argument_state): Likewise.
20022 (ipa_param_body_adjustments::modify_call_stmt): New parameter
20023 orig_stmt. Do not work with dummy decls, save necessary info about
20024 changes to ipa_edge_modifications.
20025 (ipa_param_body_adjustments::modify_gimple_stmt): New parameter
20026 orig_stmt, pass it to modify_call_stmt.
20027 (ipa_param_body_adjustments::modify_cfun_body): Adjust call to
20028 modify_gimple_stmt.
20029 (ipa_edge_modifications_finalize): New function.
20030 * tree-inline.c (remap_gimple_stmt): Pass original statement to
20031 modify_gimple_stmt.
20032 (copy_phis_for_bb): Do not copy dead PHI nodes.
20033 (expand_call_inline): Do not remap performed_splits.
20034 (update_clone_info): Likewise.
20035 * toplev.c: Include ipa-param-manipulation.h.
20036 (toplev::finalize): Call ipa_edge_modifications_finalize.
20038 2021-06-28 Andrew Pinski <apinski@marvell.com>
20040 * tree-ssa-phiopt.c (replace_phi_edge_with_variable): Duplicate range
20041 info if we're the only things setting the target PHI.
20042 (value_replacement): Don't duplicate range here.
20043 (minmax_replacement): Likewise.
20045 2021-06-28 Richard Biener <rguenther@suse.de>
20047 PR tree-optimization/101229
20048 * gimple-walk.c (gimple_walk_op): Handle PHIs.
20050 2021-06-28 Martin Liska <mliska@suse.cz>
20052 * config/v850/v850.c (construct_dispose_instruction): Allocate
20054 (construct_prepare_instruction): Likewise.
20056 2021-06-28 Martin Liska <mliska@suse.cz>
20058 * config/v850/v850.c (v850_option_override): Build default
20060 (v850_can_inline_p): New. Allow MASK_PROLOG_FUNCTION to be
20061 ignored for inlining.
20062 (TARGET_CAN_INLINE_P): New.
20064 2021-06-28 Richard Biener <rguenther@suse.de>
20066 PR tree-optimization/101207
20067 * tree-vect-slp.c (vect_optimize_slp): Do BB reduction
20068 permute eliding for load permutations properly.
20070 2021-06-28 Richard Biener <rguenther@suse.de>
20072 PR tree-optimization/101173
20073 * gimple-loop-interchange.cc
20074 (tree_loop_interchange::valid_data_dependences): Disallow outer
20075 loop dependence distance of zero.
20077 2021-06-28 liuhongt <hongtao.liu@intel.com>
20080 * config/i386/sse.md (*avx_cmp<mode>3_lt): New
20081 define_insn_and_split.
20082 (*avx_cmp<mode>3_ltint): Ditto.
20083 (*avx2_pcmp<mode>3_3): Ditto.
20084 (*avx2_pcmp<mode>3_4): Ditto.
20085 (*avx2_pcmp<mode>3_5): Ditto.
20087 2021-06-28 liuhongt <hongtao.liu@intel.com>
20089 * config/i386/i386-builtin.def (IX86_BUILTIN_BLENDVPD256,
20090 IX86_BUILTIN_BLENDVPS256, IX86_BUILTIN_PBLENDVB256,
20091 IX86_BUILTIN_BLENDVPD, IX86_BUILTIN_BLENDVPS,
20092 IX86_BUILTIN_PBLENDVB128): Replace icode with
20094 * config/i386/i386.c (ix86_gimple_fold_builtin): Fold blendv
20096 * config/i386/sse.md (*<sse4_1_avx2>_pblendvb_lt_subreg_not):
20097 New pre_reload splitter.
20099 2021-06-27 Andrew Pinski <apinski@marvell.com>
20101 PR middle-end/101230
20102 * fold-const.c (fold_ternary_loc): Check
20103 the return value of invert_tree_comparison.
20105 2021-06-27 David Edelsohn <dje.gcc@gmail.com>
20107 * config.gcc: Add SPDX License Identifier.
20108 (powerpc-ibm-aix789): Default to aix73.h.
20109 (powerpc-ibm-aix7.2.*.*): New stanza.
20110 * config/rs6000/aix72.h: Add SPDX License Identifier.
20111 * config/rs6000/aix73.h: New file.
20113 2021-06-26 Jason Merrill <jason@redhat.com>
20115 * except.c: #include "dwarf2.h" instead of "dwarf2out.h".
20117 2021-06-26 Andrew Pinski <apinski@marvell.com>
20119 * genmatch.c (lower_cond): Copy for_subst_vec
20120 for the simplify also.
20121 (lower): Swap the order for lower_for and lower_cond.
20123 2021-06-26 Andrew Pinski <apinski@marvell.com>
20125 * tree-ssa-phiopt.c (match_simplify_replacement): Reset
20126 flow senatitive info on the moved ssa set.
20128 2021-06-26 Andrew Pinski <apinski@marvell.com>
20130 * fold-const.c (fold_cond_expr_with_comparison):
20131 Exand arg0 into comp_code, arg00, and arg01.
20132 (fold_ternary_loc): Use invert_tree_comparison
20133 instead of fold_invert_truthvalue for the case
20134 where we have A CMP B ? C : A.
20136 2021-06-25 Martin Sebor <msebor@redhat.com>
20138 PR middle-end/101216
20139 * calls.c (maybe_warn_rdwr_sizes): Use the no_warning constant.
20141 2021-06-25 Jeff Law <jeffreyalaw@gmail.com>
20143 * config/h8300/h8300.c (select_cc_mode): Handle ASHIFTRT and LSHIFTRT.
20145 2021-06-25 Richard Biener <rguenther@suse.de>
20147 PR tree-optimization/101202
20148 * tree-vect-slp.c (vect_optimize_slp): Explicitely handle
20151 2021-06-25 Richard Biener <rguenther@suse.de>
20153 * tree-vect-slp-patterns.c (addsub_pattern::build): Copy
20154 STMT_VINFO_REDUC_DEF from the original representative.
20156 2021-06-25 Martin Sebor <msebor@redhat.com>
20158 * builtins.c (warn_string_no_nul): Replace uses of TREE_NO_WARNING,
20159 gimple_no_warning_p and gimple_set_no_warning with
20160 warning_suppressed_p, and suppress_warning.
20162 (maybe_warn_for_bound): Same.
20163 (warn_for_access): Same.
20164 (check_access): Same.
20165 (expand_builtin_strncmp): Same.
20166 (fold_builtin_varargs): Same.
20167 * calls.c (maybe_warn_nonstring_arg): Same.
20168 (maybe_warn_rdwr_sizes): Same.
20169 * cfgexpand.c (expand_call_stmt): Same.
20170 * cgraphunit.c (check_global_declaration): Same.
20171 * fold-const.c (fold_undefer_overflow_warnings): Same.
20172 (fold_truth_not_expr): Same.
20173 (fold_unary_loc): Same.
20174 (fold_checksum_tree): Same.
20175 * gimple-array-bounds.cc (array_bounds_checker::check_array_ref): Same.
20176 (array_bounds_checker::check_mem_ref): Same.
20177 (array_bounds_checker::check_addr_expr): Same.
20178 (array_bounds_checker::check_array_bounds): Same.
20179 * gimple-expr.c (copy_var_decl): Same.
20180 * gimple-fold.c (gimple_fold_builtin_strcpy): Same.
20181 (gimple_fold_builtin_strncat): Same.
20182 (gimple_fold_builtin_stxcpy_chk): Same.
20183 (gimple_fold_builtin_stpcpy): Same.
20184 (gimple_fold_builtin_sprintf): Same.
20185 (fold_stmt_1): Same.
20186 * gimple-ssa-isolate-paths.c (diag_returned_locals): Same.
20187 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
20188 * gimple-ssa-sprintf.c (handle_printf_call): Same.
20189 * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_store): Same.
20190 * gimple-ssa-warn-restrict.c (maybe_diag_overlap): Same.
20191 * gimple-ssa-warn-restrict.h: Adjust declarations.
20192 (maybe_diag_access_bounds): Replace uses of TREE_NO_WARNING,
20193 gimple_no_warning_p and gimple_set_no_warning with
20194 warning_suppressed_p, and suppress_warning.
20195 (check_call): Same.
20196 (check_bounds_or_overlap): Same.
20197 * gimple.c (gimple_build_call_from_tree): Same.
20198 * gimplify.c (gimplify_return_expr): Same.
20199 (gimplify_cond_expr): Same.
20200 (gimplify_modify_expr_complex_part): Same.
20201 (gimplify_modify_expr): Same.
20202 (gimple_push_cleanup): Same.
20203 (gimplify_expr): Same.
20204 * omp-expand.c (expand_omp_for_generic): Same.
20205 (expand_omp_taskloop_for_outer): Same.
20206 * omp-low.c (lower_rec_input_clauses): Same.
20207 (lower_lastprivate_clauses): Same.
20208 (lower_send_clauses): Same.
20209 (lower_omp_target): Same.
20210 * tree-cfg.c (pass_warn_function_return::execute): Same.
20211 * tree-complex.c (create_one_component_var): Same.
20212 * tree-inline.c (remap_gimple_op_r): Same.
20213 (copy_tree_body_r): Same.
20214 (declare_return_variable): Same.
20215 (expand_call_inline): Same.
20216 * tree-nested.c (lookup_field_for_decl): Same.
20217 * tree-sra.c (create_access_replacement): Same.
20218 (generate_subtree_copies): Same.
20219 * tree-ssa-ccp.c (pass_post_ipa_warn::execute): Same.
20220 * tree-ssa-forwprop.c (combine_cond_expr_cond): Same.
20221 * tree-ssa-loop-ch.c (ch_base::copy_headers): Same.
20222 * tree-ssa-loop-im.c (execute_sm): Same.
20223 * tree-ssa-phiopt.c (cond_store_replacement): Same.
20224 * tree-ssa-strlen.c (maybe_warn_overflow): Same.
20225 (handle_builtin_strcpy): Same.
20226 (maybe_diag_stxncpy_trunc): Same.
20227 (handle_builtin_stxncpy_strncat): Same.
20228 (handle_builtin_strcat): Same.
20229 * tree-ssa-uninit.c (get_no_uninit_warning): Same.
20230 (set_no_uninit_warning): Same.
20231 (uninit_undefined_value_p): Same.
20232 (warn_uninit): Same.
20233 (maybe_warn_operand): Same.
20234 * tree-vrp.c (compare_values_warnv): Same.
20235 * vr-values.c (vr_values::extract_range_for_var_from_comparison_expr): Same.
20236 (test_for_singularity): Same.
20237 * gimple.h (warning_suppressed_p): New function.
20238 (suppress_warning): Same.
20239 (copy_no_warning): Same.
20240 (gimple_set_block): Call gimple_set_location.
20241 (gimple_set_location): Call copy_warning.
20243 2021-06-25 Martin Sebor <msebor@redhat.com>
20245 * tree.h (warning_suppressed_at, copy_warning,
20246 warning_suppressed_p, suppress_warning): New functions.
20248 2021-06-25 Martin Sebor <msebor@redhat.com>
20250 * Makefile.in (OBJS-libcommon): Add diagnostic-spec.o.
20251 * gengtype.c (open_base_files): Add diagnostic-spec.h.
20252 * diagnostic-spec.c: New file.
20253 * diagnostic-spec.h: New file.
20254 * tree.h (no_warning, all_warnings, suppress_warning_at): New
20256 * warning-control.cc: New file.
20258 2021-06-25 liuhongt <hongtao.liu@intel.com>
20261 * config/i386/i386.c (x86_order_regs_for_local_alloc):
20264 2021-06-24 Andrew MacLeod <amacleod@redhat.com>
20266 PR tree-optimization/101189
20267 * gimple-range-fold.cc (fold_using_range::range_of_range_op): Pass
20268 LHS range of condition to postfold routine.
20269 (fold_using_range::postfold_gcond_edges): Only process the TRUE or
20270 FALSE edge if the LHS range supports it being taken.
20271 * gimple-range-fold.h (postfold_gcond_edges): Add range parameter.
20273 2021-06-24 Andrew MacLeod <amacleod@redhat.com>
20275 * value-relation.cc (equiv_oracle::dump): Do not dump NULL blocks.
20276 (relation_oracle::find_relation_block): Check correct bitmap.
20277 (relation_oracle::dump): Do not dump NULL blocks.
20279 2021-06-24 Andrew MacLeod <amacleod@redhat.com>
20281 * gimple-range-cache.cc (ranger_cache::propagate_cache): Call
20282 range_on_edge instead of manually calculating.
20284 2021-06-24 Andrew MacLeod <amacleod@redhat.com>
20286 * range-op.cc: Fix comment.
20288 2021-06-24 Uroš Bizjak <ubizjak@gmail.com>
20291 * config/i386/i386-expand.c (ix86_expand_sse_unpack):
20292 Handle V8QI and V4HI modes.
20293 * config/i386/mmx.md (sse4_1_<any_extend:code>v4qiv4hi2):
20295 (sse4_1_<any_extend:code>v4qiv4hi2): Ditto.
20296 (mmxpackmode): New mode attribute.
20297 (vec_pack_trunc_<mmxpackmode:mode>): New expander.
20298 (mmxunpackmode): New mode attribute.
20299 (vec_unpacks_lo_<mmxunpackmode:mode>): New expander.
20300 (vec_unpacks_hi_<mmxunpackmode:mode>): Ditto.
20301 (vec_unpacku_lo_<mmxunpackmode:mode>): Ditto.
20302 (vec_unpacku_hi_<mmxunpackmode:mode>): Ditto.
20303 * config/i386/i386.md (extsuffix): Move from ...
20304 * config/i386/sse.md: ... here.
20306 2021-06-24 Eric Botcazou <ebotcazou@adacore.com>
20308 * dwarf2out.c (dwarf2out_assembly_start): Emit .file 0 marker here..
20309 (dwarf2out_finish): ...instead of here.
20311 2021-06-24 Eric Botcazou <ebotcazou@adacore.com>
20313 * configure.ac (--gdwarf-5 option): Use objdump instead of readelf.
20314 (working --gdwarf-4/--gdwarf-5 for all sources): Likewise.
20315 (--gdwarf-4 not refusing generated .debug_line): Adjust for Windows.
20316 * configure: Regenerate.
20318 2021-06-24 Richard Biener <rguenther@suse.de>
20320 * config/i386/sse.md (vec_addsubv4df3, vec_addsubv2df3,
20321 vec_addsubv8sf3, vec_addsubv4sf3): Merge into ...
20322 (vec_addsub<mode>3): ... using a new addsub_cst mode attribute.
20324 2021-06-24 Richard Biener <rguenther@suse.de>
20326 * config/i386/sse.md (avx_addsubv4df3): Rename to
20328 (avx_addsubv8sf3): Rename to vec_addsubv8sf3.
20329 (sse3_addsubv2df3): Rename to vec_addsubv2df3.
20330 (sse3_addsubv4sf3): Rename to vec_addsubv4sf3.
20331 * config/i386/i386-builtin.def: Adjust.
20332 * internal-fn.def (VEC_ADDSUB): New internal optab fn.
20333 * optabs.def (vec_addsub_optab): New optab.
20334 * tree-vect-slp-patterns.c (class addsub_pattern): New.
20335 (slp_patterns): Add addsub_pattern.
20336 * tree-vect-slp.c (vect_optimize_slp): Disable propagation
20337 across CFN_VEC_ADDSUB.
20338 * tree-vectorizer.h (vect_pattern::vect_pattern): Make
20340 * doc/md.texi (vec_addsub<mode>3): Document.
20342 2021-06-24 Jakub Jelinek <jakub@redhat.com>
20344 PR middle-end/101170
20345 * df-scan.c (df_ref_record): For paradoxical big-endian SUBREGs
20346 where regno + subreg_regno_offset wraps around use 0 as starting
20349 2021-06-24 Jakub Jelinek <jakub@redhat.com>
20351 PR middle-end/101172
20352 * stor-layout.c (finish_bitfield_representative): If nextf has
20353 error_mark_node type, set repr type to error_mark_node too.
20355 2021-06-24 Ilya Leoshkevich <iii@linux.ibm.com>
20357 * config/s390/s390.c (s390_function_profiler): Ignore labelno
20359 * config/s390/s390.h (NO_PROFILE_COUNTERS): Define.
20361 2021-06-24 Richard Biener <rguenther@suse.de>
20363 * tree-vect-slp.c (vect_optimize_slp): Do not propagate
20364 across operations that have different semantics on different
20367 2021-06-24 Jakub Jelinek <jakub@redhat.com>
20369 * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): Document meaning for OpenMP.
20370 * gimplify.c (gimplify_scan_omp_clauses): For OpenMP map clauses
20371 with OMP_CLAUSE_MAP_IN_REDUCTION flag partially defer gimplification
20372 of non-decl OMP_CLAUSE_DECL. For OMP_CLAUSE_IN_REDUCTION on
20373 OMP_TARGET user outer_ctx instead of ctx for placeholders and
20374 initializer/combiner gimplification.
20375 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_MAP_IN_REDUCTION
20376 on target constructs.
20377 (lower_rec_input_clauses): Likewise.
20378 (lower_omp_target): Likewise.
20379 * omp-expand.c (expand_omp_target): Temporarily ignore nowait clause
20380 on target if in_reduction is present.
20382 2021-06-24 Kewen Lin <linkw@linux.ibm.com>
20384 * tree-predcom.c (class pcom_worker): New class.
20385 (release_chain): Renamed to...
20386 (pcom_worker::release_chain): ...this.
20387 (release_chains): Renamed to...
20388 (pcom_worker::release_chains): ...this.
20389 (aff_combination_dr_offset): Renamed to...
20390 (pcom_worker::aff_combination_dr_offset): ...this.
20391 (determine_offset): Renamed to...
20392 (pcom_worker::determine_offset): ...this.
20393 (class comp_ptrs): New class.
20394 (split_data_refs_to_components): Renamed to...
20395 (pcom_worker::split_data_refs_to_components): ...this,
20396 and update with class comp_ptrs.
20397 (suitable_component_p): Renamed to...
20398 (pcom_worker::suitable_component_p): ...this.
20399 (filter_suitable_components): Renamed to...
20400 (pcom_worker::filter_suitable_components): ...this.
20401 (valid_initializer_p): Renamed to...
20402 (pcom_worker::valid_initializer_p): ...this.
20403 (find_looparound_phi): Renamed to...
20404 (pcom_worker::find_looparound_phi): ...this.
20405 (add_looparound_copies): Renamed to...
20406 (pcom_worker::add_looparound_copies): ...this.
20407 (determine_roots_comp): Renamed to...
20408 (pcom_worker::determine_roots_comp): ...this.
20409 (determine_roots): Renamed to...
20410 (pcom_worker::determine_roots): ...this.
20411 (single_nonlooparound_use): Renamed to...
20412 (pcom_worker::single_nonlooparound_use): ...this.
20413 (remove_stmt): Renamed to...
20414 (pcom_worker::remove_stmt): ...this.
20415 (execute_pred_commoning_chain): Renamed to...
20416 (pcom_worker::execute_pred_commoning_chain): ...this.
20417 (execute_pred_commoning): Renamed to...
20418 (pcom_worker::execute_pred_commoning): ...this.
20419 (struct epcc_data): New member worker.
20420 (execute_pred_commoning_cbck): Call execute_pred_commoning
20421 with pcom_worker pointer.
20422 (find_use_stmt): Renamed to...
20423 (pcom_worker::find_use_stmt): ...this.
20424 (find_associative_operation_root): Renamed to...
20425 (pcom_worker::find_associative_operation_root): ...this.
20426 (find_common_use_stmt): Renamed to...
20427 (pcom_worker::find_common_use_stmt): ...this.
20428 (combinable_refs_p): Renamed to...
20429 (pcom_worker::combinable_refs_p): ...this.
20430 (reassociate_to_the_same_stmt): Renamed to...
20431 (pcom_worker::reassociate_to_the_same_stmt): ...this.
20432 (stmt_combining_refs): Renamed to...
20433 (pcom_worker::stmt_combining_refs): ...this.
20434 (combine_chains): Renamed to...
20435 (pcom_worker::combine_chains): ...this.
20436 (try_combine_chains): Renamed to...
20437 (pcom_worker::try_combine_chains): ...this.
20438 (prepare_initializers_chain): Renamed to...
20439 (pcom_worker::prepare_initializers_chain): ...this.
20440 (prepare_initializers): Renamed to...
20441 (pcom_worker::prepare_initializers): ...this.
20442 (prepare_finalizers_chain): Renamed to...
20443 (pcom_worker::prepare_finalizers_chain): ...this.
20444 (prepare_finalizers): Renamed to...
20445 (pcom_worker::prepare_finalizers): ...this.
20446 (tree_predictive_commoning_loop): Renamed to...
20447 (pcom_worker::tree_predictive_commoning_loop): ...this, adjust
20448 some calls and remove some cleanup code.
20449 (tree_predictive_commoning): Adjusted to use pcom_worker instance.
20450 (static variable looparound_phis): Remove.
20451 (static variable name_expansions): Remove.
20453 2021-06-24 Richard Biener <rguenther@suse.de>
20455 * tree-vect-slp.c (slpg_vertex): New struct.
20456 (vect_slp_build_vertices): Adjust.
20457 (vect_optimize_slp): Likewise. Maintain an outgoing permute
20458 and a materialized one.
20460 2021-06-24 Richard Biener <rguenther@suse.de>
20462 PR tree-optimization/101105
20463 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
20464 Only ignore steps when they are equal or scalar order is preserved.
20466 2021-06-24 liuhongt <hongtao.liu@intel.com>
20469 * config/i386/i386-expand.c (ix86_expand_vec_interleave):
20470 Adjust comments for ix86_expand_vecop_qihi2.
20471 (ix86_expand_vecmul_qihi): Renamed to ..
20472 (ix86_expand_vecop_qihi2): Adjust function prototype to
20473 support shift operation, add static to definition.
20474 (ix86_expand_vec_shift_qihi_constant): Add static to definition.
20475 (ix86_expand_vecop_qihi): Call ix86_expand_vecop_qihi2 and
20476 ix86_expand_vec_shift_qihi_constant.
20477 * config/i386/i386-protos.h (ix86_expand_vecmul_qihi): Deleted.
20478 (ix86_expand_vec_shift_qihi_constant): Deleted.
20479 * config/i386/sse.md (VI12_256_512_AVX512VL): New mode
20481 (mulv8qi3): Call ix86_expand_vecop_qihi directly, add
20482 condition TARGET_64BIT.
20483 (mul<mode>3): Ditto.
20484 (<insn><mode>3): Ditto.
20485 (vlshr<mode>3): Extend to support avx512 vlshr.
20486 (v<insn><mode>3): New expander for
20488 (v<insn>v8qi3): Ditto.
20489 (vashrv8hi3<mask_name>): Renamed to ..
20490 (vashr<mode>3): And extend to support V16QImode for avx512.
20491 (vashrv16qi3): Deleted.
20492 (vashrv2di3<mask_name>): Extend expander to support avx512
20495 2021-06-23 Dimitar Dimitrov <dimitar@dinux.eu>
20497 * doc/lto.texi (Design Overview): Update that slim objects are
20500 2021-06-23 Aaron Sawdey <acsawdey@linux.ibm.com>
20502 * config/rs6000/rs6000-cpus.def: Take OPTION_MASK_PCREL_OPT out
20503 of OTHER_POWER10_MASKS so it will not be enabled by default.
20505 2021-06-23 Richard Biener <rguenther@suse.de>
20506 Martin Jambor <mjambor@suse.cz>
20508 * tree-inline.c (setup_one_parameter): Set TREE_READONLY of the
20509 param replacement unconditionally. Adjust comment.
20511 2021-06-23 Andrew MacLeod <amacleod@redhat.com>
20513 * Makefile.in (OBJS): Add gimple-range-fold.o
20514 * gimple-range-fold.cc: New.
20515 * gimple-range-fold.h: New.
20516 * gimple-range-gori.cc (gimple_range_calc_op1): Move to here.
20517 (gimple_range_calc_op2): Ditto.
20518 * gimple-range-gori.h: Move prototypes to here.
20519 * gimple-range.cc: Adjust include files.
20520 (fur_source:fur_source): Relocate to gimple-range-fold.cc.
20521 (fur_source::get_operand): Ditto.
20522 (fur_source::get_phi_operand): Ditto.
20523 (fur_source::query_relation): Ditto.
20524 (fur_source::register_relation): Ditto.
20525 (class fur_edge): Ditto.
20526 (fur_edge::fur_edge): Ditto.
20527 (fur_edge::get_operand): Ditto.
20528 (fur_edge::get_phi_operand): Ditto.
20529 (fur_stmt::fur_stmt): Ditto.
20530 (fur_stmt::get_operand): Ditto.
20531 (fur_stmt::get_phi_operand): Ditto.
20532 (fur_stmt::query_relation): Ditto.
20533 (class fur_depend): Relocate to gimple-range-fold.h.
20534 (fur_depend::fur_depend): Relocate to gimple-range-fold.cc.
20535 (fur_depend::register_relation): Ditto.
20536 (fur_depend::register_relation): Ditto.
20537 (class fur_list): Ditto.
20538 (fur_list::fur_list): Ditto.
20539 (fur_list::get_operand): Ditto.
20540 (fur_list::get_phi_operand): Ditto.
20541 (fold_range): Ditto.
20542 (adjust_pointer_diff_expr): Ditto.
20543 (gimple_range_adjustment): Ditto.
20544 (gimple_range_base_of_assignment): Ditto.
20545 (gimple_range_operand1): Ditto.
20546 (gimple_range_operand2): Ditto.
20547 (gimple_range_calc_op1): Relocate to gimple-range-gori.cc.
20548 (gimple_range_calc_op2): Ditto.
20549 (fold_using_range::fold_stmt): Relocate to gimple-range-fold.cc.
20550 (fold_using_range::range_of_range_op): Ditto.
20551 (fold_using_range::range_of_address): Ditto.
20552 (fold_using_range::range_of_phi): Ditto.
20553 (fold_using_range::range_of_call): Ditto.
20554 (fold_using_range::range_of_builtin_ubsan_call): Ditto.
20555 (fold_using_range::range_of_builtin_call): Ditto.
20556 (fold_using_range::range_of_cond_expr): Ditto.
20557 (fold_using_range::range_of_ssa_name_with_loop_info): Ditto.
20558 (fold_using_range::relation_fold_and_or): Ditto.
20559 (fold_using_range::postfold_gcond_edges): Ditto.
20560 * gimple-range.h: Add gimple-range-fold.h to include files. Change
20561 GIMPLE_RANGE_STMT_H to GIMPLE_RANGE_H.
20562 (gimple_range_handler): Relocate to gimple-range-fold.h.
20563 (gimple_range_ssa_p): Ditto.
20564 (range_compatible_p): Ditto.
20565 (class fur_source): Ditto.
20566 (class fur_stmt): Ditto.
20567 (class fold_using_range): Ditto.
20568 (gimple_range_calc_op1): Relocate to gimple-range-gori.h
20569 (gimple_range_calc_op2): Ditto.
20571 2021-06-23 Andrew MacLeod <amacleod@redhat.com>
20573 PR tree-optimization/101148
20574 PR tree-optimization/101014
20575 * gimple-range-cache.cc (ranger_cache::ranger_cache): Adjust.
20576 (ranger_cache::~ranger_cache): Adjust.
20577 (ranger_cache::block_range): Check if propagation disallowed.
20578 (ranger_cache::propagate_cache): Disallow propagation if new value
20579 can't be stored properly.
20580 * gimple-range-cache.h (ranger_cache::m_propfail): New member.
20582 2021-06-23 Andrew MacLeod <amacleod@redhat.com>
20584 * gimple-range-cache.cc (class ssa_block_ranges): Adjust prototype.
20585 (sbr_vector::set_bb_range): Return true.
20586 (class sbr_sparse_bitmap): Adjust.
20587 (sbr_sparse_bitmap::set_bb_range): Return value.
20588 (block_range_cache::set_bb_range): Return value.
20589 (ranger_cache::propagate_cache): Use return value to print msg.
20590 * gimple-range-cache.h (class block_range_cache): Adjust.
20592 2021-06-23 Andrew MacLeod <amacleod@redhat.com>
20594 * gimple-range.cc (dump_bb): Use range_on_edge from the cache.
20596 2021-06-23 Jeff Law <jeffreyalaw@gmail.com>
20598 * config/h8300/logical.md (<code><mode>3<ccnz>): Use <cczn>
20599 so this pattern can be used for test/compare removal. Pass
20600 current insn to compute_logical_op_length and output_logical_op.
20601 * config/h8300/h8300.c (compute_logical_op_cc): Remove.
20602 (h8300_and_costs): Add argument to compute_logical_op_length.
20603 (output_logical_op): Add new argument. Use it to determine if the
20604 condition codes are used and adjust the output accordingly.
20605 (compute_logical_op_length): Add new argument and update length
20606 computations when condition codes are used.
20607 * config/h8300/h8300-protos.h (compute_logical_op_length): Update
20609 (output_logical_op): Likewise.
20611 2021-06-23 Uroš Bizjak <ubizjak@gmail.com>
20614 * config/i386/i386-expand.c (expand_vec_perm_pshufb):
20615 Handle 64bit modes for TARGET_XOP. Use indirect gen_* functions.
20616 * config/i386/mmx.md (mmx_ppermv64): New insn pattern.
20617 * config/i386/i386.md (unspec): Move UNSPEC_XOP_PERMUTE from ...
20618 * config/i386/sse.md (unspec): ... here.
20620 2021-06-23 Martin Liska <mliska@suse.cz>
20623 * optc-save-gen.awk: Put back arm_fp16_format to
20626 2021-06-23 Uroš Bizjak <ubizjak@gmail.com>
20629 * config/i386/i386.md (bsr_rex64): Add zero-flag setting RTX.
20632 (clz<mode>2): Update RTX pattern for additions.
20634 2021-06-23 Jakub Jelinek <jakub@redhat.com>
20636 PR middle-end/101167
20637 * omp-low.c (lower_omp_regimplify_p): Regimplify also PARM_DECLs
20638 and RESULT_DECLs that have DECL_HAS_VALUE_EXPR_P set.
20640 2021-06-22 Sergei Trofimovich <siarheit@google.com>
20642 * doc/rtl.texi: drop unbalanced parenthesis.
20644 2021-06-22 Richard Biener <rguenther@suse.de>
20646 PR middle-end/101156
20647 * gimplify.c (gimplify_expr): Remove premature incorrect
20650 2021-06-22 Jakub Jelinek <jakub@redhat.com>
20652 PR tree-optimization/101159
20653 * tree-vect-patterns.c (vect_recog_popcount_pattern): Fix some
20656 2021-06-22 Jakub Jelinek <jakub@redhat.com>
20658 PR middle-end/101160
20659 * function.c (assign_parms): For decl_result with TYPE_EMPTY_P type
20660 clear crtl->return_rtx instead of keeping it referencing a pseudo.
20662 2021-06-22 Jakub Jelinek <jakub@redhat.com>
20663 Andrew Pinski <apinski@marvell.com>
20665 PR tree-optimization/101162
20666 * fold-const.c (range_check_type): Handle OFFSET_TYPE like pointer
20669 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
20671 * range-op.cc (range_relational_tests): New.
20672 (range_op_tests): Call range_relational_tests.
20674 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
20676 * range-op.cc (operator_cast::lhs_op1_relation): New.
20677 (operator_identity::lhs_op1_relation): Mew.
20679 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
20681 * range-op.cc (operator_minus::op1_op2_relation_effect): New.
20683 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
20685 * range-op.cc (operator_plus::lhs_op1_relation): New.
20686 (operator_plus::lhs_op2_relation): New.
20688 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
20690 * gimple-range-cache.cc (ranger_cache::ranger_cache): Create a
20691 relation_oracle if dominators exist.
20692 (ranger_cache::~ranger_cache): Dispose of oracle.
20693 (ranger_cache::dump_bb): Dump oracle.
20694 * gimple-range.cc (fur_source::fur_source): New.
20695 (fur_source::get_operand): Use mmeber query.
20696 (fur_source::get_phi_operand): Use member_query.
20697 (fur_source::query_relation): New.
20698 (fur_source::register_dependency): Delete.
20699 (fur_source::register_relation): New.
20700 (fur_edge::fur_edge): Adjust.
20701 (fur_edge::get_phi_operand): Fix comment.
20702 (fur_edge::query): Delete.
20703 (fur_stmt::fur_stmt): Adjust.
20704 (fur_stmt::query): Delete.
20705 (fur_depend::fur_depend): Adjust.
20706 (fur_depend::register_relation): New.
20707 (fur_depend::register_relation): New.
20708 (fur_list::fur_list): Adjust.
20709 (fur_list::get_operand): Use member query.
20710 (fold_using_range::range_of_range_op): Process and query relations.
20711 (fold_using_range::range_of_address): Adjust dependency call.
20712 (fold_using_range::range_of_phi): Ditto.
20713 (gimple_ranger::gimple_ranger): New. Use ranger_ache oracle.
20714 (fold_using_range::relation_fold_and_or): New.
20715 (fold_using_range::postfold_gcond_edges): New.
20716 * gimple-range.h (class gimple_ranger): Adjust.
20717 (class fur_source): Adjust members.
20718 (class fur_stmt): Ditto.
20719 (class fold_using_range): Ditto.
20721 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
20723 * range-op.cc (range_operator::wi_fold): Apply relation effect.
20724 (range_operator::fold_range): Adjust and apply relation effect.
20725 (*::fold_range): Add relation parameters.
20726 (*::op1_range): Ditto.
20727 (*::op2_range): Ditto.
20728 (range_operator::lhs_op1_relation): New.
20729 (range_operator::lhs_op2_relation): New.
20730 (range_operator::op1_op2_relation): New.
20731 (range_operator::op1_op2_relation_effect): New.
20732 (relop_early_resolve): New.
20733 (operator_equal::op1_op2_relation): New.
20734 (operator_equal::fold_range): Call relop_early_resolve.
20735 (operator_not_equal::op1_op2_relation): New.
20736 (operator_not_equal::fold_range): Call relop_early_resolve.
20737 (operator_lt::op1_op2_relation): New.
20738 (operator_lt::fold_range): Call relop_early_resolve.
20739 (operator_le::op1_op2_relation): New.
20740 (operator_le::fold_range): Call relop_early_resolve.
20741 (operator_gt::op1_op2_relation): New.
20742 (operator_gt::fold_range): Call relop_early_resolve.
20743 (operator_ge::op1_op2_relation): New.
20744 (operator_ge::fold_range): Call relop_early_resolve.
20745 * range-op.h (class range_operator): Adjust parameters and methods.
20747 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
20749 * Makefile.in (OBJS): Add value-relation.o.
20750 * gimple-range.h: Adjust include files.
20751 * tree-data-ref.c: Adjust include file order.
20752 * value-query.cc (range_query::get_value_range): Default to no oracle.
20753 (range_query::query_relation): New.
20754 (range_query::query_relation): New.
20755 * value-query.h (class range_query): Adjust.
20756 * value-relation.cc: New.
20757 * value-relation.h: New.
20759 2021-06-22 Richard Biener <rguenther@suse.de>
20761 PR tree-optimization/101151
20762 * tree-ssa-sink.c (statement_sink_location): Expand irreducible
20765 2021-06-22 Jojo R <rjiejie@linux.alibaba.com>
20767 * config/riscv/riscv.c (thead_c906_tune_info): New.
20768 (riscv_tune_info_table): Use new tune.
20770 2021-06-22 Richard Biener <rguenther@suse.de>
20772 PR tree-optimization/101158
20773 * tree-vect-slp.c (vect_build_slp_tree_1): Move same operand
20774 checking after checking for matching operation.
20776 2021-06-22 Richard Biener <rguenther@suse.de>
20778 PR tree-optimization/101159
20779 * tree-vect-patterns.c (vect_recog_popcount_pattern): Add
20780 missing NULL vectype check.
20782 2021-06-22 Richard Biener <rguenther@suse.de>
20784 PR tree-optimization/101154
20785 * tree-vect-slp.c (vect_build_slp_tree_2): Fix out-of-bound access.
20787 2021-06-22 Jakub Jelinek <jakub@redhat.com>
20790 * config/i386/i386-protos.h (ix86_last_zero_store_uid): Declare.
20791 * config/i386/i386-expand.c (ix86_last_zero_store_uid): New variable.
20792 * config/i386/i386.c (ix86_expand_prologue): Clear it.
20793 * config/i386/i386.md (peephole2s for 1/2/4 stores of const0_rtx):
20794 Remove "" from match_operand. Emit new insns using emit_move_insn and
20795 set ix86_last_zero_store_uid to INSN_UID of the last store.
20796 Add peephole2s for 1/2/4 stores of const0_rtx following previous
20799 2021-06-22 Martin Liska <mliska@suse.cz>
20801 * auto-profile.c (AUTO_PROFILE_VERSION): Bump as string format
20804 2021-06-22 Martin Liska <mliska@suse.cz>
20806 * gcov-io.h: Remove padding entries.
20808 2021-06-22 liuhongt <hongtao.liu@intel.com>
20810 PR tree-optimization/97770
20811 * tree-vect-patterns.c (vect_recog_popcount_pattern):
20813 (vect_recog_func vect_vect_recog_func_ptrs): Add new pattern.
20815 2021-06-22 liuhongt <hongtao.liu@intel.com>
20818 * config/i386/i386-builtin.def (BDESC): Adjust builtin name.
20819 * config/i386/sse.md (<avx512>_expand<mode>_mask): Rename to ..
20820 (expand<mode>_mask): this ..
20821 (*expand<mode>_mask): New pre_reload splitter to transform
20822 v{,p}expand* to vmov* when mask is zero, all ones, or has all
20823 ones in it's lower part, otherwise still generate
20826 2021-06-22 liuhongt <hongtao.liu@intel.com>
20829 * config/i386/i386-expand.c
20830 (ix86_expand_special_args_builtin): Keep constm1_operand only
20831 if it satisfies insn's operand predicate.
20833 2021-06-21 Jason Merrill <jason@redhat.com>
20836 * df-scan.c (df_ref_record): Check that regno < endregno.
20837 * function.c (assign_parms, expand_function_end): Do nothing with a
20838 TYPE_EMPTY_P result.
20840 2021-06-21 Richard Biener <rguenther@suse.de>
20842 PR tree-optimization/101120
20843 * tree-vect-data-refs.c (bump_vector_ptr): Fold the
20845 * tree-vect-slp.c (vect_transform_slp_perm_load): Add
20846 DR chain DCE capability.
20847 * tree-vectorizer.h (vect_transform_slp_perm_load): Adjust.
20848 * tree-vect-stmts.c (vectorizable_load): Remove unused
20849 loads in the DR chain for SLP.
20851 2021-06-21 Jakub Jelinek <jakub@redhat.com>
20853 PR inline-asm/100785
20854 * gimplify.c (gimplify_asm_expr): Don't diagnose errors if
20855 output or input operands were already error_mark_node.
20856 * cfgexpand.c (expand_asm_stmt): If errors are emitted,
20857 remove all inputs, outputs and clobbers from the asm and
20858 set template to "".
20860 2021-06-21 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
20862 * config/arm/arm_neon.h (vceq_s8): Replace builtin with __a == __b.
20863 (vceq_s16): Likewise.
20864 (vceq_s32): Likewise.
20865 (vceq_u8): Likewise.
20866 (vceq_u16): Likewise.
20867 (vceq_u32): Likewise.
20868 (vceq_p8): Likewise.
20869 (vceqq_s8): Likewise.
20870 (vceqq_s16): Likewise.
20871 (vceqq_s32): Likewise.
20872 (vceqq_u8): Likewise.
20873 (vceqq_u16): Likewise.
20874 (vceqq_u32): Likewise.
20875 (vceqq_p8): Likewise.
20876 (vceq_f32): Gate __a == __b on __FAST_MATH__.
20877 (vceqq_f32): Likewise.
20878 (vceq_f16): Likewise.
20879 (vceqq_f16): Likewise.
20881 2021-06-21 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
20884 * config/arm/iterators.md (NEON_VACMP): Remove.
20885 * config/arm/neon.md (neon_vca<cmp_op><mode>): Use GLTE instead of GTGE
20887 (neon_vca<cmp_op><mode>_insn): Likewise.
20888 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Use NEON_VAGLTE instead of
20891 2021-06-21 Richard Biener <rguenther@suse.de>
20893 PR tree-optimization/101121
20894 * tree-vect-slp.c (vect_build_slp_tree_2): To not fail fatally
20895 when we just lack a stmt with the desired op when doing permutation.
20896 (vect_build_slp_tree): When caching a failed SLP build attempt
20897 assert that at least one lane is marked as not matching.
20899 2021-06-21 liuhongt <hongtao.liu@intel.com>
20902 * config/i386/i386.md: (*anddi_1): Disparage slightly the mask
20903 register alternative.
20904 (*and<mode>_1): Ditto.
20906 (*andn<mode>_1): Ditto.
20907 (*<code><mode>_1): Ditto.
20908 (*<code>qi_1): Ditto.
20909 (*one_cmpl<mode>2_1): Ditto.
20910 (*one_cmplsi2_1_zext): Ditto.
20911 (*one_cmplqi2_1): Ditto.
20912 * config/i386/i386.c (x86_order_regs_for_local_alloc): Change
20913 the order of mask registers to be before general registers.
20915 2021-06-21 Roger Sayle <roger@nextmovesoftware.com>
20918 * config/i386/i386.md: New define_peephole2s to shrink writing
20919 1, 2 or 4 consecutive zeros to memory when optimizing for size.
20921 2021-06-18 Jeff Law <jeffreyalaw@gmail.com>
20923 * config/h8300/h8300.c (h8300_select_cc_mode): Handle SYMBOL_REF.
20924 * config/h8300/logical.md (<code><mode>3 logcial expander): Generate
20925 more efficient code when the source can be trivially simplified.
20927 2021-06-18 Andrew MacLeod <amacleod@redhat.com>
20929 * gimple-range-cache.cc (ranger_cache::range_of_def): Calculate
20930 a range if global is not available.
20931 (ranger_cache::entry_range): Fallback to range_of_def.
20932 * gimple-range-cache.h (range_of_def): Adjust prototype.
20934 2021-06-18 Andrew MacLeod <amacleod@redhat.com>
20936 PR tree-optimization/101014
20937 * gimple-range-cache.cc (ranger_cache::ranger_cache): Remove poor
20939 (ranger_cache::~ranger_cache): Ditto.
20940 (ranger_cache::enable_new_values): Delete.
20941 (ranger_cache::push_poor_value): Delete.
20942 (ranger_cache::range_of_def): Remove poor value processing.
20943 (ranger_cache::entry_range): Ditto.
20944 (ranger_cache::fill_block_cache): Ditto.
20945 * gimple-range-cache.h (class ranger_cache): Remove poor value members.
20946 * gimple-range.cc (gimple_ranger::range_of_expr): Remove call.
20947 * gimple-range.h (class gimple_ranger): Adjust.
20949 2021-06-18 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
20952 * common/config/arm/arm-common.c (arm_canon_arch_option_1): New function
20953 derived from arm_canon_arch.
20954 (arm_canon_arch_option): Call it.
20955 (arm_canon_arch_multilib_option): New function.
20956 * config/arm/arm-cpus.in (IGNORE_FOR_MULTILIB): New fgroup.
20957 * config/arm/arm.h (arm_canon_arch_multilib_option): New prototype.
20958 (CANON_ARCH_MULTILIB_SPEC_FUNCTION): New macro.
20959 (MULTILIB_ARCH_CANONICAL_SPECS): New macro.
20960 (DRIVER_SELF_SPECS): Add MULTILIB_ARCH_CANONICAL_SPECS.
20961 * config/arm/arm.opt (mlibarch): New option.
20962 * config/arm/t-rmprofile (MULTILIB_MATCHES): For armv8*-m, replace use
20963 of march on RHS with mlibarch.
20965 2021-06-18 Marcel Vollweiler <marcel@codesourcery.com>
20967 * config.in: Regenerate.
20968 * config/gcn/gcn.c (print_operand_address): Fix for global_load assembler
20970 * configure: Regenerate.
20971 * configure.ac: Fix for global_load assembler functions.
20973 2021-06-18 Richard Biener <rguenther@suse.de>
20975 PR tree-optimization/101112
20976 * tree-vect-slp.c (vect_slp_linearize_chain): Fix condition
20977 to lookup a pattern stmt def.
20979 2021-06-18 Jakub Jelinek <jakub@redhat.com>
20981 PR middle-end/101062
20982 * stor-layout.c (finish_bitfield_layout): Don't add bitfield
20983 representatives in QUAL_UNION_TYPE.
20985 2021-06-18 Andrew Pinski <apinski@marvell.com>
20987 * tree-ssa-phiopt.c (replace_phi_edge_with_variable):
20988 Add counting of how many times it is done.
20989 (factor_out_conditional_conversion): Likewise.
20990 (match_simplify_replacement): Likewise.
20991 (value_replacement): Likewise.
20992 (spaceship_replacement): Likewise.
20993 (cond_store_replacement): Likewise.
20994 (cond_if_else_store_replacement_1): Likewise.
20995 (hoist_adjacent_loads): Likewise.
20997 2021-06-18 Andrew Pinski <apinski@marvell.com>
20999 * tree-cfg.c (verify_gimple_assign_unary): Reject point and offset
21000 types on NEGATE_EXPR, ABS_EXPR, BIT_NOT_EXPR, PAREN_EXPR and CNONJ_EXPR.
21001 (verify_gimple_assign_binary): Reject point and offset types on
21002 MULT_EXPR, MULT_HIGHPART_EXPR, TRUNC_DIV_EXPR, CEIL_DIV_EXPR,
21003 FLOOR_DIV_EXPR, ROUND_DIV_EXPR, TRUNC_MOD_EXPR, CEIL_MOD_EXPR,
21004 FLOOR_MOD_EXPR, ROUND_MOD_EXPR, RDIV_EXPR, and EXACT_DIV_EXPR.
21006 2021-06-18 Michael Meissner <meissner@linux.ibm.com>
21008 * config/rs6000/rs6000.c (rs6000_emit_minmax): Add support for ISA
21009 3.1 IEEE 128-bit floating point xsmaxcqp/xsmincqp instructions.
21010 * config/rs6000/rs6000.md (s<minmax><mode>3, IEEE128 iterator):
21013 2021-06-17 Aaron Sawdey <acsawdey@linux.ibm.com>
21015 * config/rs6000/genfusion.pl (gen_logical_addsubf): Add
21016 earlyclobber to alts 0/1.
21017 (gen_addadd): Add earlyclobber to alts 0/1.
21018 * config/rs6000/fusion.md: Regenerate file.
21020 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
21022 * cfgloopanal.c (get_loop_hot_path): Make path an auto_vec.
21024 2021-06-17 Andrew MacLeod <amacleod@redhat.com>
21026 * gimple-range-cache.cc: Comment cleanups.
21027 * gimple-range-gori.cc: Comment cleanups.
21028 * gimple-range.cc: Comment/spacing cleanups
21029 * value-range.h: Comment cleanups.
21031 2021-06-17 H.J. Lu <hjl.tools@gmail.com>
21034 * calls.c (expand_call): Replace PUSH_ARGS with
21035 targetm.calls.push_argument (0).
21036 (emit_library_call_value_1): Likewise.
21037 * defaults.h (PUSH_ARGS): Removed.
21038 (PUSH_ARGS_REVERSED): Replace PUSH_ARGS with
21039 targetm.calls.push_argument (0).
21040 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
21041 (emit_push_insn): Pass the number bytes to push to
21042 targetm.calls.push_argument and pass 0 if ARGS_ADDR is 0.
21043 * hooks.c (hook_bool_uint_true): New.
21044 * hooks.h (hook_bool_uint_true): Likewise.
21045 * rtlanal.c (nonzero_bits1): Replace PUSH_ARGS with
21046 targetm.calls.push_argument (0).
21047 * target.def (push_argument): Add a targetm.calls hook.
21048 * targhooks.c (default_push_argument): New.
21049 * targhooks.h (default_push_argument): Likewise.
21050 * config/bpf/bpf.h (PUSH_ARGS): Removed.
21051 * config/cr16/cr16.c (TARGET_PUSH_ARGUMENT): New.
21052 * config/cr16/cr16.h (PUSH_ARGS): Removed.
21053 * config/i386/i386.c (ix86_push_argument): New.
21054 (TARGET_PUSH_ARGUMENT): Likewise.
21055 * config/i386/i386.h (PUSH_ARGS): Removed.
21056 * config/m32c/m32c.c (TARGET_PUSH_ARGUMENT): New.
21057 * config/m32c/m32c.h (PUSH_ARGS): Removed.
21058 * config/nios2/nios2.h (PUSH_ARGS): Likewise.
21059 * config/pru/pru.h (PUSH_ARGS): Likewise.
21060 * doc/tm.texi.in: Remove PUSH_ARGS documentation. Add
21061 TARGET_PUSH_ARGUMENT hook.
21062 * doc/tm.texi: Regenerated.
21064 2021-06-17 Uroš Bizjak <ubizjak@gmail.com>
21067 * config/i386/i386-expand.c (expand_vector_set_var):
21068 Handle V2FS mode remapping. Pass TARGET_MMX_WITH_SSE to
21069 ix86_expand_vector_init_duplicate.
21070 (ix86_expand_vector_init_duplicate): Emit insv_1 for
21071 QImode for !TARGET_PARTIAL_REG_STALL.
21072 * config/i386/predicates.md (vec_setm_mmx_operand): New predicate.
21073 * config/i386/mmx.md (vec_setv2sf): Use vec_setm_mmx_operand
21074 as operand 2 predicate. Call ix86_expand_vector_set_var
21075 for non-constant index operand.
21076 (vec_setv2si): Ditto.
21077 (vec_setv4hi): Ditto.
21078 (vec_setv8qi): ditto.
21080 2021-06-17 Aldy Hernandez <aldyh@redhat.com>
21082 PR tree-optimization/100790
21083 * gimple-range.cc (range_of_builtin_call): Cleanup clz and ctz
21086 2021-06-17 Martin Liska <mliska@suse.cz>
21088 * doc/invoke.texi: Use consistently -O1 instead of -O.
21090 2021-06-17 Martin Liska <mliska@suse.cz>
21092 * gcov-io.h: Update documentation entry about string format.
21094 2021-06-17 Marius Hillenbrand <mhillen@linux.ibm.com>
21097 * config/s390/vecintrin.h (vec_doublee): Fix to use
21098 __builtin_s390_vflls.
21099 (vec_floate): Fix to use __builtin_s390_vflrd.
21101 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
21103 * dominance.c (get_dominated_to_depth): Return auto_vec<basic_block>.
21104 * dominance.h (get_dominated_to_depth): Likewise.
21105 (get_all_dominated_blocks): Likewise.
21106 * cfgcleanup.c (delete_unreachable_blocks): Adjust.
21107 * gcse.c (hoist_code): Likewise.
21108 * tree-cfg.c (remove_edge_and_dominated_blocks): Likewise.
21109 * tree-parloops.c (oacc_entry_exit_ok): Likewise.
21110 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
21111 * tree-ssa-phiprop.c (pass_phiprop::execute): Likewise.
21113 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
21115 * dominance.c (get_dominated_by_region): Return auto_vec<basic_block>.
21116 * dominance.h (get_dominated_by_region): Likewise.
21117 * tree-cfg.c (gimple_duplicate_sese_region): Adjust.
21118 (gimple_duplicate_sese_tail): Likewise.
21119 (move_sese_region_to_fn): Likewise.
21121 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
21123 * dominance.c (get_dominated_by): Return auto_vec<basic_block>.
21124 * dominance.h (get_dominated_by): Likewise.
21125 * auto-profile.c (afdo_find_equiv_class): Adjust.
21126 * cfgloopmanip.c (duplicate_loop_to_header_edge): Likewise.
21127 * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
21128 * tree-cfg.c (test_linear_chain): Likewise.
21129 (test_diamond): Likewise.
21131 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
21133 * cfgloop.h (get_loop_hot_path): Return auto_vec<basic_block>.
21134 * cfgloopanal.c (get_loop_hot_path): Likewise.
21135 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise.
21137 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
21139 * cgraph.c (cgraph_node::collect_callers): Return
21140 auto_vec<cgraph_edge *>.
21141 * cgraph.h (cgraph_node::collect_callers): Likewise.
21142 * ipa-cp.c (create_specialized_node): Adjust.
21143 (decide_about_value): Likewise.
21144 (decide_whether_version_node): Likewise.
21145 * ipa-sra.c (process_isra_node_results): Likewise.
21147 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
21149 * vec.h (vl_ptr>::using_auto_storage): Handle null m_vec.
21150 (auto_vec<T, 0>::auto_vec): Define move constructor, and delete copy
21152 (auto_vec<T, 0>::operator=): Define move assignment and delete copy
21155 2021-06-17 Aldy Hernandez <aldyh@redhat.com>
21157 * gimple-range.cc (debug_seed_ranger): New.
21158 (dump_ranger): New.
21159 (debug_ranger): New.
21161 2021-06-17 Richard Biener <rguenther@suse.de>
21163 PR tree-optimization/54400
21164 * tree-vectorizer.h (enum slp_instance_kind): Add
21165 slp_inst_kind_bb_reduc.
21166 (reduction_fn_for_scalar_code): Declare.
21167 * tree-vect-data-refs.c (vect_slp_analyze_instance_dependence):
21168 Check SLP_INSTANCE_KIND instead of looking at the
21170 (vect_slp_analyze_instance_alignment): Likewise.
21171 * tree-vect-loop.c (reduction_fn_for_scalar_code): Export.
21172 * tree-vect-slp.c (vect_slp_linearize_chain): Split out
21173 chain linearization from vect_build_slp_tree_2 and generalize
21174 for the use of BB reduction vectorization.
21175 (vect_build_slp_tree_2): Adjust accordingly.
21176 (vect_optimize_slp): Elide permutes at the root of BB reduction
21178 (vectorizable_bb_reduc_epilogue): New function.
21179 (vect_slp_prune_covered_roots): Likewise.
21180 (vect_slp_analyze_operations): Use them.
21181 (vect_slp_check_for_constructors): Recognize associatable
21182 chains for BB reduction vectorization.
21183 (vectorize_slp_instance_root_stmt): Generate code for the
21184 BB reduction epilogue.
21186 2021-06-17 Andrew MacLeod <amacleod@redhat.com>
21188 * gimple-range-gori.cc (gori_compute::has_edge_range_p): Check with
21190 (gori_compute::may_recompute_p): New.
21191 (gori_compute::outgoing_edge_range_p): Perform recomputations.
21192 * gimple-range-gori.h (class gori_compute): Add prototype.
21194 2021-06-17 Andrew MacLeod <amacleod@redhat.com>
21196 * gimple-range-cache.cc (ranger_cache::range_on_edge): Always return
21197 true when a range can be calculated.
21198 * gimple-range.cc (gimple_ranger::dump_bb): Check has_edge_range_p.
21200 2021-06-16 Martin Sebor <msebor@redhat.com>
21202 * doc/invoke.texi (-Wmismatched-dealloc, -Wmismatched-new-delete):
21203 Correct documented defaults.
21205 2021-06-16 Andrew MacLeod <amacleod@redhat.com>
21207 * gimple-range-cache.cc (ranger_cache::ranger_cache): Initialize
21208 m_new_value_p directly.
21210 2021-06-16 Uroš Bizjak <ubizjak@gmail.com>
21213 * config/i386/i386-expand.c (expand_vec_perm_2perm_pblendv):
21214 Handle 64bit modes for TARGET_SSE4_1.
21215 (expand_vec_perm_pshufb2): Handle 64bit modes for TARGET_SSSE3.
21216 (expand_vec_perm_even_odd_pack): Handle V4HI mode.
21217 (expand_vec_perm_even_odd_1) <case E_V4HImode>: Expand via
21218 expand_vec_perm_pshufb2 for TARGET_SSSE3 and via
21219 expand_vec_perm_even_odd_pack for TARGET_SSE4_1.
21220 * config/i386/mmx.md (mmx_packusdw): New insn pattern.
21222 2021-06-16 Jonathan Wright <jonathan.wright@arm.com>
21224 * config/aarch64/aarch64-simd.md (aarch64_<sur><addsub>hn<mode>):
21225 Change to an expander that emits the correct instruction
21226 depending on endianness.
21227 (aarch64_<sur><addsub>hn<mode>_insn_le): Define.
21228 (aarch64_<sur><addsub>hn<mode>_insn_be): Define.
21230 2021-06-16 Jonathan Wright <jonathan.wright@arm.com>
21232 * config/aarch64/aarch64-simd-builtins.def: Split generator
21233 for aarch64_<su>qmovn builtins into scalar and vector
21235 * config/aarch64/aarch64-simd.md (aarch64_<su>qmovn<mode>_insn_le):
21237 (aarch64_<su>qmovn<mode>_insn_be): Define.
21238 (aarch64_<su>qmovn<mode>): Split into scalar and vector
21239 variants. Change vector variant to an expander that emits the
21240 correct instruction depending on endianness.
21242 2021-06-16 Jonathan Wright <jonathan.wright@arm.com>
21244 * config/aarch64/aarch64-simd-builtins.def: Split generator
21245 for aarch64_sqmovun builtins into scalar and vector variants.
21246 * config/aarch64/aarch64-simd.md (aarch64_sqmovun<mode>):
21247 Split into scalar and vector variants. Change vector variant
21248 to an expander that emits the correct instruction depending
21250 (aarch64_sqmovun<mode>_insn_le): Define.
21251 (aarch64_sqmovun<mode>_insn_be): Define.
21253 2021-06-16 Jonathan Wright <jonathan.wright@arm.com>
21255 * config/aarch64/aarch64-simd.md (aarch64_xtn<mode>_insn_le):
21256 Define - modeling zero-high-half semantics.
21257 (aarch64_xtn<mode>): Change to an expander that emits the
21258 appropriate instruction depending on endianness.
21259 (aarch64_xtn<mode>_insn_be): Define - modeling zero-high-half
21261 (aarch64_xtn2<mode>_le): Rename to...
21262 (aarch64_xtn2<mode>_insn_le): This.
21263 (aarch64_xtn2<mode>_be): Rename to...
21264 (aarch64_xtn2<mode>_insn_be): This.
21265 (vec_pack_trunc_<mode>): Emit truncation instruction instead
21267 * config/aarch64/iterators.md (Vnarrowd): Add Vnarrowd mode
21268 attribute iterator.
21270 2021-06-16 Martin Jambor <mjambor@suse.cz>
21272 PR tree-optimization/100453
21273 * tree-sra.c (create_access): Disqualify any const candidates
21274 which are written to.
21275 (sra_modify_expr): Do not store sub-replacements back to a const base.
21276 (handle_unscalarized_data_in_subtree): Likewise.
21277 (sra_modify_assign): Likewise. Earlier, use TREE_READONLy test
21278 instead of constant_decl_p.
21280 2021-06-16 Jakub Jelinek <jakub@redhat.com>
21282 PR middle-end/101062
21283 * stor-layout.c (finish_bitfield_representative): For fields in unions
21284 assume nextf is always NULL.
21285 (finish_bitfield_layout): Compute bit field representatives also in
21286 unions, but handle it as if each bitfield was the only field in the
21289 2021-06-16 Richard Biener <rguenther@suse.de>
21291 PR tree-optimization/101088
21292 * tree-ssa-loop-im.c (sm_seq_valid_bb): Only look for
21293 supported refs on edges. Do not assert same ref but
21294 different kind stores are unsuported but mark them so.
21295 (hoist_memory_references): Only look for supported refs
21298 2021-06-16 Roger Sayle <roger@nextmovesoftware.com>
21300 PR rtl-optimization/46235
21301 * config/i386/i386.md: New define_split for bt followed by cmov.
21302 (*bt<mode>_setcqi): New define_insn_and_split for bt followed by setc.
21303 (*bt<mode>_setncqi): New define_insn_and_split for bt then setnc.
21304 (*bt<mode>_setnc<mode>): New define_insn_and_split for bt followed
21305 by setnc with zero extension.
21307 2021-06-16 Richard Biener <rguenther@suse.de>
21309 PR tree-optimization/101083
21310 * tree-vect-slp.c (vect_slp_build_two_operator_nodes): Get
21311 vectype as argument.
21312 (vect_build_slp_tree_2): Adjust.
21314 2021-06-15 Martin Sebor <msebor@redhat.com>
21316 PR middle-end/100876
21317 * builtins.c: (gimple_call_return_array): Account for size_t
21318 mangling as either unsigned int or unsigned long
21320 2021-06-15 Jeff Law <jeffreyalaw@gmail.com>
21322 * compare-elim.c (try_eliminate_compare): Run DCE to clean things
21323 up before eliminating comparisons.
21325 2021-06-15 Aldy Hernandez <aldyh@redhat.com>
21327 * range-op.cc (operator_bitwise_or::wi_fold): Make sure
21328 nonzero|X is nonzero.
21329 (range_op_bitwise_and_tests): Add tests for above.
21331 2021-06-15 Carl Love <cel@us.ibm.com>
21334 * config/rs6000/rs6000-builtin.def (VCMPEQUT): Fix the ICODE for the
21336 (VRLQ, VSLQ, VSRQ, VSRAQ): Remove unused BU_P10_OVERLOAD_2
21339 2021-06-15 Tobias Burnus <tobias@codesourcery.com>
21342 * gimplify.c (enum gimplify_defaultmap_kind): Add GDMK_SCALAR_TARGET.
21343 (struct gimplify_omp_ctx): Extend defaultmap array by one.
21344 (new_omp_context): Init defaultmap[GDMK_SCALAR_TARGET].
21345 (omp_notice_variable): Update type classification for Fortran.
21346 (gimplify_scan_omp_clauses): Update calls for new argument; handle
21347 GDMK_SCALAR_TARGET; for Fortran, GDMK_POINTER avoid GOVD_MAP_0LEN_ARRAY.
21348 * langhooks-def.h (lhd_omp_scalar_p): Add 'ptr_ok' argument.
21349 * langhooks.c (lhd_omp_scalar_p): Likewise.
21350 (LANG_HOOKS_OMP_ALLOCATABLE_P, LANG_HOOKS_OMP_SCALAR_TARGET_P): New.
21351 (LANG_HOOKS_DECLS): Add them.
21352 * langhooks.h (struct lang_hooks_for_decls): Add new hooks, update
21353 omp_scalar_p pointer type to include the new bool argument.
21355 2021-06-15 David Malcolm <dmalcolm@redhat.com>
21357 * doc/analyzer.texi
21358 (Special Functions for Debugging the Analyzer): Add
21359 __analyzer_dump_capacity.
21361 2021-06-15 Jakub Jelinek <jakub@redhat.com>
21364 * expr.c (expand_expr_real_2) <case VEC_PACK_FIX_TRUNC_EXPR,
21365 case VEC_PACK_TRUNC_EXPR>: Clear subtarget when changing mode.
21367 2021-06-15 Richard Biener <rguenther@suse.de>
21369 * cfgloopanal.c (mark_irreducible_loops): Use a dominance
21370 check to identify loop latches.
21371 * cfgloop.c (verify_loop_structure): Likewise.
21372 * loop-init.c (apply_loop_flags): Allow marked irreducible
21373 regions even with multiple latches.
21374 * predict.c (rebuild_frequencies): Simplify.
21376 2021-06-15 Richard Biener <rguenther@suse.de>
21378 * tree-ssa-threadupdate.c
21379 (jump_thread_path_registry::mark_threaded_blocks): Assert we
21380 have marked irreducible regions.
21382 2021-06-14 Martin Sebor <msebor@redhat.com>
21385 * builtins.c (gimple_call_return_array): Check for attribute fn spec.
21386 Handle calls to placement new.
21387 (ndecl_dealloc_argno): Avoid placement delete.
21389 2021-06-14 Peter Bergner <bergner@linux.ibm.com>
21392 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_mma_builtin): Use
21393 create_tmp_reg_or_ssa_name().
21395 2021-06-14 Andrew MacLeod <amacleod@redhat.com>
21397 * gimple-range-cache.cc (ranger_cache::ranger_cache): Adjust.
21398 (ranger_cache::enable_new_values): Set to specified value and
21399 return the old value.
21400 (ranger_cache::disable_new_values): Delete.
21401 (ranger_cache::fill_block_cache): Disable non 1st order derived
21403 * gimple-range-cache.h (ranger_cache): Adjust prototypes.
21404 * gimple-range.cc (gimple_ranger::range_of_expr): Adjust.
21406 2021-06-14 Uroš Bizjak <ubizjak@gmail.com>
21409 * config/i386/i386-expand.c (ix86_vectorize_vec_perm_const):
21410 Return true early when testing with V2HImode.
21411 * config/i386/mmx.md (*punpckwd): Split to sse2_pshuflw_1.
21413 2021-06-14 Christophe Lyon <christophe.lyon@linaro.org>
21415 * config/arm/mve.md (mve_vec_unpack<US>_lo_<mode>): New pattern.
21416 (mve_vec_unpack<US>_hi_<mode>): New pattern.
21417 (@mve_vec_pack_trunc_lo_<mode>): New pattern.
21418 (mve_vmovntq_<supf><mode>): Prefix with '@'.
21419 * config/arm/neon.md (vec_unpack<US>_hi_<mode>): Move to
21421 (vec_unpack<US>_lo_<mode>): Likewise.
21422 (vec_pack_trunc_<mode>): Rename to
21423 neon_quad_vec_pack_trunc_<mode>.
21424 * config/arm/vec-common.md (vec_unpack<US>_hi_<mode>): New
21426 (vec_unpack<US>_lo_<mode>): New.
21427 (vec_pack_trunc_<mode>): New.
21429 2021-06-14 Richard Biener <rguenther@suse.de>
21431 PR tree-optimization/100934
21432 * tree-ssa-dom.c (pass_dominator::execute): Properly
21433 mark irreducible regions.
21435 2021-06-14 Martin Liska <mliska@suse.cz>
21437 * doc/invoke.texi: Put r{...} on the same line as @item.
21439 2021-06-14 Martin Liska <mliska@suse.cz>
21441 * doc/invoke.texi: Add missing newline.
21443 2021-06-14 Martin Liska <mliska@suse.cz>
21445 * doc/invoke.texi: Remove '+' charasters.
21447 2021-06-14 Claudiu Zissulescu <claziss@synopsys.com>
21449 * config.gcc (arc): Add support for with_cpu option.
21450 * config/arc/arc.h (OPTION_DEFAULT_SPECS): Add fpu.
21452 2021-06-14 Richard Biener <rguenther@suse.de>
21454 PR tree-optimization/101031
21455 * tree-ssa-strlen.c (maybe_invalidate): Increment max_size
21456 instead of size when accounting for a possibly string
21459 2021-06-14 Martin Liska <mliska@suse.cz>
21461 * gimple-ssa-evrp.c (pointer_equiv_analyzer::~pointer_equiv_analyzer): Use delete[].
21463 2021-06-14 Aldy Hernandez <aldyh@redhat.com>
21465 * value-query.cc (gimple_range_global): Call get_range_global
21466 if called after inlining.
21468 2021-06-13 Uroš Bizjak <ubizjak@gmail.com>
21471 * config/i386/i386-expand.c (expand_vec_perm_pshufb):
21472 Emit constant permutation insn directly from here.
21474 2021-06-13 Trevor Saunders <tbsaunde@tbsaunde.org>
21476 * attribs.c (find_attribute_namespace): Iterate over vec<> with
21478 * auto-profile.c (afdo_find_equiv_class): Likewise.
21479 * gcc.c (do_specs_vec): Likewise.
21480 (do_spec_1): Likewise.
21481 (driver::set_up_specs): Likewise.
21482 * gimple-loop-jam.c (any_access_function_variant_p): Likewise.
21483 * gimple-ssa-store-merging.c (compatible_load_p): Likewise.
21484 (imm_store_chain_info::try_coalesce_bswap): Likewise.
21485 (imm_store_chain_info::coalesce_immediate_stores): Likewise.
21486 (get_location_for_stmts): Likewise.
21487 * graphite-poly.c (print_iteration_domains): Likewise.
21488 (free_poly_bb): Likewise.
21489 (remove_gbbs_in_scop): Likewise.
21490 (free_scop): Likewise.
21491 (dump_gbb_cases): Likewise.
21492 (dump_gbb_conditions): Likewise.
21493 (print_pdrs): Likewise.
21494 (print_scop): Likewise.
21495 * ifcvt.c (cond_move_process_if_block): Likewise.
21496 * lower-subreg.c (decompose_multiword_subregs): Likewise.
21497 * regcprop.c (pass_cprop_hardreg::execute): Likewise.
21498 * sanopt.c (sanitize_rewrite_addressable_params): Likewise.
21499 * sel-sched-dump.c (dump_insn_vector): Likewise.
21500 * store-motion.c (store_ops_ok): Likewise.
21501 (store_killed_in_insn): Likewise.
21502 * timevar.c (timer::named_items::print): Likewise.
21503 * tree-cfgcleanup.c (cleanup_control_flow_pre): Likewise.
21504 (cleanup_tree_cfg_noloop): Likewise.
21505 * tree-data-ref.c (dump_data_references): Likewise.
21506 (print_dir_vectors): Likewise.
21507 (print_dist_vectors): Likewise.
21508 (dump_data_dependence_relations): Likewise.
21509 (dump_dist_dir_vectors): Likewise.
21510 (dump_ddrs): Likewise.
21511 (create_runtime_alias_checks): Likewise.
21512 (free_subscripts): Likewise.
21513 (save_dist_v): Likewise.
21514 (save_dir_v): Likewise.
21515 (invariant_access_functions): Likewise.
21516 (same_access_functions): Likewise.
21517 (access_functions_are_affine_or_constant_p): Likewise.
21518 (find_data_references_in_stmt): Likewise.
21519 (graphite_find_data_references_in_stmt): Likewise.
21520 (free_dependence_relations): Likewise.
21521 (free_data_refs): Likewise.
21522 * tree-inline.c (copy_debug_stmts): Likewise.
21523 * tree-into-ssa.c (dump_currdefs): Likewise.
21524 (rewrite_update_phi_arguments): Likewise.
21525 * tree-ssa-propagate.c (clean_up_loop_closed_phi): Likewise.
21526 * tree-vect-data-refs.c (vect_analyze_possibly_independent_ddr):
21528 (vect_slp_analyze_node_dependences): Likewise.
21529 (vect_slp_analyze_instance_dependence): Likewise.
21530 (vect_record_base_alignments): Likewise.
21531 (vect_get_peeling_costs_all_drs): Likewise.
21532 (vect_peeling_supportable): Likewise.
21533 * tree-vectorizer.c (vec_info::~vec_info): Likewise.
21534 (vec_info::free_stmt_vec_infos): Likewise.
21536 2021-06-13 Jeff Law <jeffreyalaw@gmail.com>
21538 * config/h8300/logical.md (<code>qi3_1<cczn>): New pattern.
21539 (andqi3_1<cczn>): Removed.
21540 (<ors>qi3_1): Do not split for IOR/XOR a single bit.
21541 (H8/SX bit logicals): Split out from other patterns.
21542 * config/h8300/multiply.md (mulqihi3_const<cczn>): Renamed from
21543 mulqihi3_const_clobber_flags.
21544 (mulqihi3<cczn>, mulhisi3_const<cczn>, mulhisi3<cczn>): Similarly
21546 2021-06-13 H.J. Lu <hjl.tools@gmail.com>
21549 * config/i386/i386.c (ix86_expand_prologue): Set red_zone_used
21550 to true if red zone is used.
21551 (ix86_output_indirect_jmp): Replace ix86_red_zone_size with
21552 ix86_red_zone_used.
21553 * config/i386/i386.h (machine_function): Add red_zone_used.
21554 (ix86_red_zone_size): Removed.
21555 (ix86_red_zone_used): New.
21556 * config/i386/i386.md (peephole2 patterns): Replace
21557 ix86_red_zone_size with ix86_red_zone_used.
21559 2021-06-12 Jason Merrill <jason@redhat.com>
21561 * doc/extend.texi (unused variable attribute): Applies to
21562 structure fields as well.
21564 2021-06-12 Eugene Rozenfeld <erozen@microsoft.com>
21566 * auto-profile.c (read_profile): fix a typo in an error string
21568 2021-06-11 Thomas Schwinge <thomas@codesourcery.com>
21570 * tree-pretty-print.h (dump_omp_clauses): Add 'bool = true'
21572 * tree-pretty-print.c (dump_omp_clauses): Update.
21573 (dump_generic_node) <OMP_CLAUSE>: Use it.
21575 2021-06-11 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
21578 * config/arm/arm_mve.h (__arm_vld1q): Change __ARM_mve_coerce(p0,
21579 int8_t const *) to __ARM_mve_coerce1(p0, int8_t *) in the argument for
21580 the polymorphic variants matching code.
21581 (__arm_vld1q_z): Likewise.
21582 (__arm_vld2q): Likewise.
21583 (__arm_vld4q): Likewise.
21584 (__arm_vldrbq_gather_offset): Likewise.
21585 (__arm_vldrbq_gather_offset_z): Likewise.
21587 2021-06-11 Roger Sayle <roger@nextmovesoftware.com>
21589 PR tree-optimization/96392
21590 * fold-const.h (tree_expr_maybe_real_minus_zero_p): Fix prototype.
21592 2021-06-11 Roger Sayle <roger@nextmovesoftware.com>
21594 PR tree-optimization/96392
21595 * fold-const.c (fold_real_zero_addition_p): Take both arguments
21596 of the addition or subtraction, not just the zero. Use this
21597 other argument in tests for signaling NaNs and signed zeros.
21598 (tree_expr_maybe_real_minus_zero_p): New predicate.
21599 * fold-const.h (fold_real_zero_addition_p): Update prototype.
21600 (tree_expr_maybe_real_minus_zero_p): New function prototype.
21601 * match.pd: Update calls to fold_real_zero_addition_p.
21602 Replace HONOR_NANS with tree_expr_maybe_nan_p.
21603 Replace HONOR_SIGNED_ZEROS with tree_expr_maybe_real_minus_zero_p.
21604 Replace HONOR_SNANS with tree_expr_maybe_signaling_nan_p.
21605 * tree-ssa-reassoc.c (eliminate_using_constants): Update
21606 call to fold_real_zero_addition_p.
21608 2021-06-11 Richard Biener <rguenther@suse.de>
21610 PR tree-optimization/101025
21611 * tree-ssa-loop-im.c (sm_seq_valid_bb): Make sure to process
21612 all refs that require dependence checking.
21614 2021-06-11 Richard Biener <rguenther@suse.de>
21616 PR tree-optimization/101028
21617 * tree-vect-slp.c (vect_build_slp_tree_2): When SLP
21618 reassoc discovery fails fatally, mark appropriate lanes
21621 2021-06-11 Richard Biener <rguenther@suse.de>
21623 PR tree-optimization/101026
21624 * tree-vect-slp.c (vect_build_slp_tree_2): Make sure we
21625 have a representative for the associated chain nodes.
21627 2021-06-11 Jakub Jelinek <jakub@redhat.com>
21629 PR rtl-optimization/101008
21630 * simplify-rtx.c (relational_result): New function.
21631 (simplify_logical_relational_operation,
21632 simplify_relational_operation): Use it.
21634 2021-06-11 Jakub Jelinek <jakub@redhat.com>
21637 * config/i386/sse.md (*vec_concat<mode>_0_1): Require TARGET_SSE2.
21639 2021-06-11 Uroš Bizjak <ubizjak@gmail.com>
21642 * config/i386/i386-expand.c (expand_vec_perm_pshufb): Return
21643 false if the permutation can be implemented with constant
21644 permutation instruction in wider mode.
21645 (canonicalize_vector_int_perm): Move above expand_vec_perm_pshufb.
21646 Handle V8QImode and V4HImode.
21648 2021-06-11 Martin Liska <mliska@suse.cz>
21650 PR gcov-profile/100788
21651 * common.opt: Add new option.
21652 * coverage.c (coverage_begin_function): Emit warning instead on
21653 the internal compiler error.
21654 * doc/invoke.texi: Document the option.
21655 * toplev.c (process_options): Enable it by default.
21657 2021-06-11 Richard Biener <rguenther@suse.de>
21659 PR middle-end/101009
21660 * tree-data-ref.c (build_classic_dist_vector_1): Make sure
21661 to set *init_b to true when we encounter a constant equal
21663 (compute_affine_dependence): Also dump the actual DR_REF.
21665 2021-06-10 Aldy Hernandez <aldyh@redhat.com>
21667 PR tree-optimization/100984
21668 * gimple-ssa-evrp.c (ssa_equiv_stack): Use auto_vec for
21669 replacements table.
21670 (ssa_equiv_stack::~ssa_equiv_stack): Remove.
21672 2021-06-11 Kewen Lin <linkw@linux.ibm.com>
21674 * config/rs6000/rs6000.md
21675 (floatsi<SFDF:mode>2_lfiwax_<QHI:mode>_mem_zext): New
21676 define_insn_and_split.
21678 2021-06-11 Richard Biener <rguenther@suse.de>
21680 * tree-vect-slp.c (vect_build_slp_tree_2): Use stablesort
21681 to sort operands of the associative chain.
21683 2021-06-11 Richard Biener <rguenther@suse.de>
21685 * system.h (gcc_stablesort_r): Declare.
21686 * sort.cc (gcc_sort_r): Support stable sort.
21687 (gcc_stablesort_r): Define.
21688 * vec.h (vec<>::stablesort): Add.
21690 2021-06-10 Uroš Bizjak <ubizjak@gmail.com>
21693 * config/i386/i386-expand.c (ix86_split_mmx_punpck):
21694 Handle V2SF mode. Emit SHUFPS to fixup unpack-high for V2SF mode.
21695 (expand_vec_perm_blend): Handle 64bit modes for TARGET_SSE4_1.
21696 (expand_vec_perm_pshufb): Handle 64bit modes for TARGET_SSSE3.
21697 (expand_vec_perm_pblendv): Handle 64bit modes for TARGET_SSE4_1.
21698 (expand_vec_perm_interleave2): Handle 64bit modes.
21699 (expand_vec_perm_even_odd_pack): Handle V8QI mode.
21700 (expand_vec_perm_even_odd_1): Ditto.
21701 (ix86_vectorize_vec_perm_const): Ditto.
21702 * config/i386/i386.md (UNSPEC_PSHUFB): Move from ...
21703 * config/i386/sse.md: ... here.
21704 * config/i386/mmx.md (*vec_interleave_lowv2sf):
21705 New insn_and_split pattern.
21706 (*vec_interleave_highv2sf): Ditto.
21707 (mmx_pshufbv8qi3): New insn pattern.
21708 (*mmx_pblendw): Ditto.
21710 2021-06-10 Peter Bergner <bergner@linux.ibm.com>
21712 * config/rs6000/rs6000-builtin.def (build_pair): New built-in.
21713 (build_acc): Likewise.
21714 * config/rs6000/rs6000-call.c (mma_expand_builtin): Swap assemble
21715 source operands in little-endian mode.
21716 (rs6000_gimple_fold_mma_builtin): Handle VSX_BUILTIN_BUILD_PAIR.
21717 (mma_init_builtins): Likewise.
21718 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Handle endianness
21719 ordering for the MMA assemble and build source operands.
21720 * doc/extend.texi (__builtin_vsx_build_acc, __builtin_mma_build_pair):
21722 (__builtin_mma_assemble_acc, __builtin_mma_assemble_pair): Remove
21725 2021-06-10 Jeff Law <jeffreyalaw@gmail.com>
21727 * config/h8300/h8300.c (select_cc_mode): Handle MEM. Use
21729 * config/h8300/extensions.md: Replace _clobber_flags patterns
21732 2021-06-10 Robin Dapp <rdapp@linux.ibm.com>
21734 * config/s390/vector.md (vcond_mask_<mode><mode>): Change to
21735 (vcond_mask_<mode><tointvec>): this.
21737 2021-06-10 Andrew Stubbs <ams@codesourcery.com>
21738 Thomas Schwinge <thomas@codesourcery.com>
21740 * omp-builtins.def (BUILT_IN_GOACC_ENTER_EXIT_DATA): Split into...
21741 (BUILT_IN_GOACC_ENTER_DATA, BUILT_IN_GOACC_EXIT_DATA): ... these.
21742 * gimple.h (enum gf_mask): Split
21743 'GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA' into
21744 'GF_OMP_TARGET_KIND_OACC_ENTER_DATA' and
21745 'GF_OMP_TARGET_KIND_OACC_EXIT_DATA'.
21746 (is_gimple_omp_oacc): Update.
21747 * gimple-pretty-print.c (dump_gimple_omp_target): Likewise.
21748 * gimplify.c (gimplify_omp_target_update): Likewise.
21749 * omp-expand.c (expand_omp_target, build_omp_regions_1)
21750 (omp_make_gimple_edges): Likewise.
21751 * omp-low.c (check_omp_nesting_restrictions, lower_omp_target):
21754 2021-06-10 Aldy Hernandez <aldyh@redhat.com>
21756 * value-query.cc (value_query::value_on_edge): Rename name to
21758 (range_query::range_on_edge): Same.
21759 (range_query::value_of_expr): Same.
21760 (range_query::value_on_edge): Same.
21761 * value-query.h (class value_query): Same.
21762 (class range_query): Same.
21764 2021-06-10 Richard Biener <rguenther@suse.de>
21766 PR tree-optimization/101003
21767 * tree-vect-slp.c (vect_build_slp_tree_2): Appropriately
21768 use the pattern stmt defs when linearizing a chain.
21770 2021-06-10 Jakub Jelinek <jakub@redhat.com>
21773 * ifcvt.c (noce_get_alt_condition, noce_try_abs): Use
21774 prev_nonnote_nondebug_insn instead of prev_nonnote_insn.
21776 2021-06-10 Clement Chigot <clement.chigot@atos.net>
21778 * config/rs6000/aix71.h (ASM_CPU_SPEC): Add Power10 directive.
21779 * config/rs6000/aix72.h (ASM_CPU_SPEC): Likewise.
21781 2021-06-09 Andrew Pinski <apinski@marvell.com>
21783 PR tree-optimization/100925
21784 * match.pd (a ? CST1 : CST2): Limit transformations
21785 that would produce a negative to integeral types only.
21786 Change !POINTER_TYPE_P to INTEGRAL_TYPE_P also.
21788 2021-06-09 Jeff Law <jeffreyalaw@gmail.com>
21791 2021-06-09 Jeff Law <jeffreyalaw@gmail.com>
21793 * doc/tm.texi: Correctly update.
21795 2021-06-09 Jeff Law <jeffreyalaw@gmail.com>
21797 * doc/tm.texi: Correctly update.
21799 2021-06-09 H.J. Lu <hjl.tools@gmail.com>
21802 * doc/tm.texi.in (Trampolines): Add a missing blank line.
21804 2021-06-09 Paul Eggert <eggert@cs.ucla.edu>
21807 * doc/invoke.texi (Code Gen Options); Document that -fno-trampolines
21808 and -ftrampolines work only with Ada.
21809 * doc/tm.texi.in (Trampolines): Likewise.
21810 * doc/tm.texi: Regenerated.
21812 2021-06-09 Carl Love <cel@us.ibm.com>
21814 * config/rs6000/altivec.h (vec_signextll, vec_signexti, vec_signextq):
21815 Add define for new builtins.
21816 * config/rs6000/altivec.md(altivec_vreveti2): Add define_expand.
21817 * config/rs6000/rs6000-builtin.def (VSIGNEXTI, VSIGNEXTLL): Add
21818 overloaded builtin definitions.
21819 (VSIGNEXTSB2W, VSIGNEXTSH2W, VSIGNEXTSB2D, VSIGNEXTSH2D,VSIGNEXTSW2D,
21820 VSIGNEXTSD2Q): Add builtin expansions.
21821 (SIGNEXT): Add P10 overload definition.
21822 * config/rs6000/rs6000-call.c (P9V_BUILTIN_VEC_VSIGNEXTI, P9V_BUILTIN_VEC_VSIGNEXTLL,
21823 P10_BUILTIN_VEC_SIGNEXT): Add overloaded argument definitions.
21824 * config/rs6000/vsx.md (vsx_sign_extend_v2di_v1ti): Add define_insn.
21825 (vsignextend_v2di_v1ti, vsignextend_qi_<mode>, vsignextend_hi_<mode>,
21826 vsignextend_si_v2di)[VIlong]: Add define_expand.
21827 Make define_insn vsx_sign_extend_si_v2di visible.
21828 * doc/extend.texi: Add documentation for the vec_signexti,
21829 vec_signextll builtins and vec_signextq.
21831 2021-06-09 Carl Love <cel@us.ibm.com>
21833 * config/rs6000/rs6000.c (__fixkfti, __fixunskfti, __floattikf,
21834 __floatuntikf): Names changed to __fixkfti_sw, __fixunskfti_sw,
21835 __floattikf_sw, __floatuntikf_sw respectively.
21836 * config/rs6000/rs6000.md (floatti<mode>2, floatunsti<mode>2,
21837 fix_trunc<mode>ti2, fixuns_trunc<mode>ti2): Add
21838 define_insn for mode IEEE 128.
21840 2021-06-09 Carl Love <cel@us.ibm.com>
21842 * config/rs6000/altivec.md (altivec_vslq, altivec_vsrq):
21843 Rename to altivec_vslq_<mode>, altivec_vsrq_<mode>, mode VEC_TI.
21844 * config/rs6000/vector.md (VEC_TI): Was named VSX_TI in vsx.md.
21845 (vashlv1ti3): Change to vashl<mode>3, mode VEC_TI.
21846 (vlshrv1ti3): Change to vlshr<mode>3, mode VEC_TI.
21847 * config/rs6000/vsx.md (VSX_TI): Remove define_mode_iterator. Update
21848 uses of VSX_TI to VEC_TI.
21850 2021-06-09 Carl Love <cel@us.ibm.com>
21852 * config/rs6000/dfp.md (floattitd2, fixtdti2): New define_insns.
21854 2021-06-09 Carl Love <cel@us.ibm.com>
21856 * config/rs6000/altivec.h (vec_dive, vec_mod): Add define for new
21858 * config/rs6000/altivec.md (UNSPEC_VMULEUD, UNSPEC_VMULESD,
21859 UNSPEC_VMULOUD, UNSPEC_VMULOSD): New unspecs.
21860 (altivec_eqv1ti, altivec_gtv1ti, altivec_gtuv1ti, altivec_vmuleud,
21861 altivec_vmuloud, altivec_vmulesd, altivec_vmulosd, altivec_vrlq,
21862 altivec_vrlqmi, altivec_vrlqmi_inst, altivec_vrlqnm,
21863 altivec_vrlqnm_inst, altivec_vslq, altivec_vsrq, altivec_vsraq,
21864 altivec_vcmpequt_p, altivec_vcmpgtst_p, altivec_vcmpgtut_p): New
21866 (vec_widen_umult_even_v2di, vec_widen_smult_even_v2di,
21867 vec_widen_umult_odd_v2di, vec_widen_smult_odd_v2di, altivec_vrlqmi,
21868 altivec_vrlqnm): New define_expands.
21869 * config/rs6000/rs6000-builtin.def (VCMPEQUT_P, VCMPGTST_P,
21870 VCMPGTUT_P): Add macro expansions.
21871 (BU_P10V_AV_P): Add builtin predicate definition.
21872 (VCMPGTUT, VCMPGTST, VCMPEQUT, CMPNET, CMPGE_1TI,
21873 CMPGE_U1TI, CMPLE_1TI, CMPLE_U1TI, VNOR_V1TI_UNS, VNOR_V1TI, VCMPNET_P,
21874 VCMPAET_P, VMULEUD, VMULESD, VMULOUD, VMULOSD, VRLQ,
21875 VSLQ, VSRQ, VSRAQ, VRLQNM, DIV_V1TI, UDIV_V1TI, DIVES_V1TI, DIVEU_V1TI,
21876 MODS_V1TI, MODU_V1TI, VRLQMI): New macro expansions.
21877 (VRLQ, VSLQ, VSRQ, VSRAQ, DIVE, MOD): New overload expansions.
21878 * config/rs6000/rs6000-call.c (P10_BUILTIN_VCMPEQUT,
21879 P10V_BUILTIN_CMPGE_1TI, P10V_BUILTIN_CMPGE_U1TI,
21880 P10V_BUILTIN_VCMPGTUT, P10V_BUILTIN_VCMPGTST,
21881 P10V_BUILTIN_CMPLE_1TI, P10V_BUILTIN_VCMPLE_U1TI,
21882 P10V_BUILTIN_DIV_V1TI, P10V_BUILTIN_UDIV_V1TI,
21883 P10V_BUILTIN_VMULESD, P10V_BUILTIN_VMULEUD,
21884 P10V_BUILTIN_VMULOSD, P10V_BUILTIN_VMULOUD,
21885 P10V_BUILTIN_VNOR_V1TI, P10V_BUILTIN_VNOR_V1TI_UNS,
21886 P10V_BUILTIN_VRLQ, P10V_BUILTIN_VRLQMI,
21887 P10V_BUILTIN_VRLQNM, P10V_BUILTIN_VSLQ,
21888 P10V_BUILTIN_VSRQ, P10V_BUILTIN_VSRAQ,
21889 P10V_BUILTIN_VCMPGTUT_P, P10V_BUILTIN_VCMPGTST_P,
21890 P10V_BUILTIN_VCMPEQUT_P, P10V_BUILTIN_VCMPGTUT_P,
21891 P10V_BUILTIN_VCMPGTST_P, P10V_BUILTIN_CMPNET,
21892 P10V_BUILTIN_VCMPNET_P, P10V_BUILTIN_VCMPAET_P,
21893 P10V_BUILTIN_DIVES_V1TI, P10V_BUILTIN_MODS_V1TI,
21894 P10V_BUILTIN_MODU_V1TI):
21895 New overloaded definitions.
21896 (rs6000_gimple_fold_builtin) [P10V_BUILTIN_VCMPEQUT,
21897 P10V_BUILTIN_CMPNET, P10V_BUILTIN_CMPGE_1TI,
21898 P10V_BUILTIN_CMPGE_U1TI, P10V_BUILTIN_VCMPGTUT,
21899 P10V_BUILTIN_VCMPGTST, P10V_BUILTIN_CMPLE_1TI,
21900 P10V_BUILTIN_CMPLE_U1TI]: New case statements.
21901 (rs6000_init_builtins) [bool_V1TI_type_node, int_ftype_int_v1ti_v1ti]:
21903 (altivec_init_builtins): New E_V1TImode case statement.
21904 (builtin_function_type)[P10_BUILTIN_128BIT_VMULEUD,
21905 P10_BUILTIN_128BIT_VMULOUD, P10_BUILTIN_128BIT_DIVEU_V1TI,
21906 P10_BUILTIN_128BIT_MODU_V1TI, P10_BUILTIN_CMPGE_U1TI,
21907 P10_BUILTIN_VCMPGTUT, P10_BUILTIN_VCMPEQUT]: New case statements.
21908 * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute) [E_TImode,
21909 E_V1TImode]: New case statements.
21910 * config/rs6000/rs6000.h (rs6000_builtin_type_index): New enum
21911 value RS6000_BTI_bool_V1TI.
21912 * config/rs6000/vector.md (vector_gtv1ti,vector_nltv1ti,
21913 vector_gtuv1ti, vector_nltuv1ti, vector_ngtv1ti, vector_ngtuv1ti,
21914 vector_eq_v1ti_p, vector_ne_v1ti_p, vector_ae_v1ti_p,
21915 vector_gt_v1ti_p, vector_gtu_v1ti_p, vrotlv1ti3, vashlv1ti3,
21916 vlshrv1ti3, vashrv1ti3): New define_expands.
21917 * config/rs6000/vsx.md (UNSPEC_VSX_DIVSQ, UNSPEC_VSX_DIVUQ,
21918 UNSPEC_VSX_DIVESQ, UNSPEC_VSX_DIVEUQ, UNSPEC_VSX_MODSQ,
21919 UNSPEC_VSX_MODUQ): New unspecs.
21920 (mulv2di3, vsx_div_v1ti, vsx_udiv_v1ti, vsx_dives_v1ti,
21921 vsx_diveu_v1ti, vsx_mods_v1ti, vsx_modu_v1ti, xxswapd_v1ti): New
21923 (vcmpnet): New define_expand.
21924 * doc/extend.texi: Add documentation for the new builtins vec_rl,
21925 vec_rlmi, vec_rlnm, vec_sl, vec_sr, vec_sra, vec_mule, vec_mulo,
21926 vec_div, vec_dive, vec_mod, vec_cmpeq, vec_cmpne, vec_cmpgt, vec_cmplt,
21927 vec_cmpge, vec_cmple, vec_all_eq, vec_all_ne, vec_all_gt, vec_all_lt,
21928 vec_all_ge, vec_all_le, vec_any_eq, vec_any_ne, vec_any_gt, vec_any_lt,
21929 vec_any_ge, vec_any_le.
21931 2021-06-09 Carl Love <cel@us.ibm.com>
21933 * config/rs6000/altivec.md (altivec_vrl<VI_char>mi): Fix
21934 bug in argument generation.
21936 2021-06-09 Christophe Lyon <christophe.lyon@linaro.org>
21938 * config/arm/iterators.md (<supf>): Remove VCLZQ_U, VCLZQ_S.
21940 * config/arm/mve.md (mve_vclzq_<supf><mode>): Add '@' prefix,
21941 remove <supf> iterator.
21942 (mve_vclzq_u<mode>): New.
21943 * config/arm/neon.md (clz<mode>2): Rename to neon_vclz<mode>.
21944 (neon_vclz<mode): Move to ...
21945 * config/arm/unspecs.md (VCLZQ_U, VCLZQ_S): Remove.
21946 * config/arm/vec-common.md: ... here. Add support for MVE.
21948 2021-06-09 Christophe Lyon <christophe.lyon@linaro.org>
21950 * config/arm/mve.md (mve_vhaddq_<supf><mode>): Prefix with '@'.
21951 (@mve_vrhaddq_<supf><mode): Likewise.
21952 * config/arm/neon.md (neon_v<r>hadd<sup><mode>): Likewise.
21953 * config/arm/vec-common.md (avg<mode>3_floor, uavg<mode>3_floor)
21954 (avg<mode>3_ceil", uavg<mode>3_ceil): New patterns.
21956 2021-06-09 imba-tjd <109224573@qq.com>
21958 * doc/invoke.texi: Fix typo.
21960 2021-06-09 Roger Sayle <roger@nextmovesoftware.com>
21962 PR middle-end/53267
21963 * fold-const-call.c (fold_const_call_sss) [CASE_CFN_FMOD]:
21964 Support evaluation of fmod/fmodf/fmodl at compile-time.
21966 2021-06-09 Richard Biener <rguenther@suse.de>
21968 PR tree-optimization/100981
21969 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
21970 gimple_get_lhs to also handle calls.
21971 * tree-vect-slp-patterns.c (complex_pattern::build): Transfer
21974 2021-06-09 Richard Biener <rguenther@suse.de>
21976 PR tree-optimization/97832
21977 * tree-vectorizer.h (_slp_tree::failed): New.
21978 * tree-vect-slp.c (_slp_tree::_slp_tree): Initialize
21980 (_slp_tree::~_slp_tree): Free failed.
21981 (vect_build_slp_tree): Retain failed nodes and record
21982 matches in them, copying that back out when running
21983 into a cached fail. Dump start and end of discovery.
21984 (dt_sort_cmp): New.
21985 (vect_build_slp_tree_2): Handle associatable chains
21986 together doing more aggressive operand swapping.
21988 2021-06-09 H.J. Lu <hjl.tools@gmail.com>
21991 * config.gcc (gcc_cv_initfini_array): Set to yes for Linux and
21993 * doc/install.texi: Require glibc 2.1 and binutils 2.12 for
21994 Linux and GNU targets.
21996 2021-06-09 Richard Biener <rguenther@suse.de>
21998 * tree-vect-stmts.c (vect_is_simple_use): Always get dt
22001 2021-06-09 Claudiu Zissulescu <claziss@synopsys.com>
22003 * config/arc/arc.md (loop_end): Change it to
22004 define_insn_and_split.
22006 2021-06-09 Claudiu Zissulescu <claziss@synopsys.com>
22008 * config/arc/arc.md (maddhisi4): Use VMAC2H instruction.
22009 (machi): New pattern.
22010 (umaddhisi4): Use VMAC2HU instruction.
22011 (umachi): New pattern.
22013 2021-06-09 Claudiu Zissulescu <claziss@synopsys.com>
22015 * config/arc/arc-protos.h (arc_split_move_p): New prototype.
22016 * config/arc/arc.c (arc_split_move_p): New function.
22017 (arc_split_move): Clean up.
22018 * config/arc/arc.md (movdi_insn): Clean up, use arc_split_move_p.
22019 (movdf_insn): Likewise.
22020 * config/arc/simdext.md (mov<VWH>_insn): Likewise.
22022 2021-06-09 Uroš Bizjak <ubizjak@gmail.com>
22025 * config/i386/i386.c (print_operand_address_as): Rename "no_rip"
22026 argument to "raw". Do not emit segment overrides when "raw" is true.
22028 2021-06-09 Martin Liska <mliska@suse.cz>
22030 * doc/gcov.texi: Create a proper JSON files.
22031 * doc/invoke.texi: Remove dots in order to make it a valid
22034 2021-06-09 Xionghu Luo <luoxhu@linux.ibm.com>
22036 * config/rs6000/rs6000-p8swap.c (pattern_is_rotate64): New.
22037 (insn_is_load_p): Use pattern_is_rotate64.
22038 (insn_is_swap_p): Likewise.
22039 (quad_aligned_load_p): Likewise.
22040 (const_load_sequence_p): Likewise.
22041 (replace_swapped_aligned_load): Likewise.
22042 (recombine_lvx_pattern): Likewise.
22043 (recombine_stvx_pattern): Likewise.
22045 2021-06-09 Andrew MacLeod <amacleod@redhat.com>
22047 * gimple-range-gori.cc (gori_compute::outgoing_edge_range_p): Use a
22048 fur_stmt source record.
22049 * gimple-range.cc (fur_source::get_operand): Generic range query.
22050 (fur_source::get_phi_operand): New.
22051 (fur_source::register_dependency): New.
22052 (fur_source::query): New.
22053 (class fur_edge): New. Edge source for operands.
22054 (fur_edge::fur_edge): New.
22055 (fur_edge::get_operand): New.
22056 (fur_edge::get_phi_operand): New.
22057 (fur_edge::query): New.
22058 (fur_stmt::fur_stmt): New.
22059 (fur_stmt::get_operand): New.
22060 (fur_stmt::get_phi_operand): New.
22061 (fur_stmt::query): New.
22062 (class fur_depend): New. Statement source and process dependencies.
22063 (fur_depend::fur_depend): New.
22064 (fur_depend::register_dependency): New.
22065 (class fur_list): New. List source for operands.
22066 (fur_list::fur_list): New.
22067 (fur_list::get_operand): New.
22068 (fur_list::get_phi_operand): New.
22069 (fold_range): New. Instantiate appropriate fur_source class and fold.
22070 (fold_using_range::range_of_range_op): Use new API.
22071 (fold_using_range::range_of_address): Ditto.
22072 (fold_using_range::range_of_phi): Ditto.
22073 (imple_ranger::fold_range_internal): Use fur_depend class.
22074 (fold_using_range::range_of_ssa_name_with_loop_info): Use new API.
22075 * gimple-range.h (class fur_source): Now a base class.
22076 (class fur_stmt): New.
22077 (fold_range): New prototypes.
22078 (fur_source::fur_source): Delete.
22080 2021-06-08 Andrew Pinski <apinski@marvell.com>
22082 PR tree-optimization/25290
22083 * tree-ssa-phiopt.c (xor_replacement): Delete.
22084 (tree_ssa_phiopt_worker): Delete use of xor_replacement.
22085 (match_simplify_replacement): Allow one cheap preparation
22086 statement that can be moved to before the if.
22088 2021-06-08 Pat Haugen <pthaugen@linux.ibm.com>
22090 * config/rs6000/power10.md (power10-fused-load, power10-fused-store,
22091 power10-fused_alu, power10-fused-vec, power10-fused-branch): New.
22093 2021-06-08 Jeff Law <jeffreyalaw@gmail.com>
22095 * config/h8300/logical.md (andqi3_1): Move BCLR case into define_insn_and_split.
22096 Create length attribute on define_insn_and_split. Only split for cases which we
22098 (andqi3_1<cczn>): Renamed from andqi3_1_clobber_flags. Only handle AND here and
22099 fix length computation.
22100 (b<code><mode>msx): Combine QImode and HImode H8/SX patterns using iterator.
22102 2021-06-08 Richard Biener <rguenther@suse.de>
22104 PR tree-optimization/100923
22105 * tree-ssa-sccvn.c (valueize_refs_1): Take a pointer to
22106 the operand vector to be valueized.
22107 (valueize_refs): Likewise.
22108 (valueize_shared_reference_ops_from_ref): Adjust.
22109 (valueize_shared_reference_ops_from_call): Likewise.
22110 (vn_reference_lookup_3): Likewise.
22111 (vn_reference_lookup_pieces): Likewise. Re-valueize
22112 with honoring availability when we are about to create
22113 the ao_ref and valueized before.
22114 (vn_reference_lookup): Likewise.
22115 (vn_reference_insert_pieces): Adjust.
22117 2021-06-08 Richard Biener <rguenther@suse.de>
22119 * tree-vectorizer.h (_slp_instance::root_stmt): Change to...
22120 (_slp_instance::root_stmts): ... a vector.
22121 (SLP_INSTANCE_ROOT_STMT): Rename to ...
22122 (SLP_INSTANCE_ROOT_STMTS): ... this.
22123 (slp_root::root): Change to...
22124 (slp_root::roots): ... a vector.
22125 (slp_root::slp_root): Adjust.
22126 * tree-vect-slp.c (_slp_instance::location): Adjust.
22127 (vect_free_slp_instance): Release the root stmt vector.
22128 (vect_build_slp_instance): Adjust.
22129 (vect_analyze_slp): Likewise.
22130 (_bb_vec_info::~_bb_vec_info): Likewise.
22131 (vect_slp_analyze_operations): Likewise.
22132 (vect_bb_vectorization_profitable_p): Likewise. Adjust
22133 costs for the root stmt.
22134 (vect_slp_check_for_constructors): Gather all BIT_INSERT_EXPRs
22136 (vect_slp_analyze_bb_1): Simplify by marking all root stmts
22138 (vectorize_slp_instance_root_stmt): Adjust.
22139 (vect_schedule_slp): Likewise.
22141 2021-06-08 Aldy Hernandez <aldyh@redhat.com>
22143 * gimple-ssa-evrp.c (class ssa_equiv_stack): New.
22144 (ssa_equiv_stack::ssa_equiv_stack): New.
22145 (ssa_equiv_stack::~ssa_equiv_stack): New.
22146 (ssa_equiv_stack::enter): New.
22147 (ssa_equiv_stack::leave): New.
22148 (ssa_equiv_stack::push_replacement): New.
22149 (ssa_equiv_stack::get_replacement): New.
22150 (is_pointer_ssa): New.
22151 (class pointer_equiv_analyzer): New.
22152 (pointer_equiv_analyzer::pointer_equiv_analyzer): New.
22153 (pointer_equiv_analyzer::~pointer_equiv_analyzer): New.
22154 (pointer_equiv_analyzer::set_global_equiv): New.
22155 (pointer_equiv_analyzer::set_cond_equiv): New.
22156 (pointer_equiv_analyzer::get_equiv): New.
22157 (pointer_equiv_analyzer::enter): New.
22158 (pointer_equiv_analyzer::leave): New.
22159 (pointer_equiv_analyzer::get_equiv_expr): New.
22160 (pta_valueize): New.
22161 (pointer_equiv_analyzer::visit_stmt): New.
22162 (pointer_equiv_analyzer::visit_edge): New.
22163 (hybrid_folder::value_of_expr): Call PTA.
22164 (hybrid_folder::value_on_edge): Same.
22165 (hybrid_folder::pre_fold_bb): New.
22166 (hybrid_folder::post_fold_bb): New.
22167 (hybrid_folder::pre_fold_stmt): New.
22168 (rvrp_folder::pre_fold_bb): New.
22169 (rvrp_folder::post_fold_bb): New.
22170 (rvrp_folder::pre_fold_stmt): New.
22171 (rvrp_folder::value_of_expr): Call PTA.
22172 (rvrp_folder::value_on_edge): Same.
22174 2021-06-08 Jakub Jelinek <jakub@redhat.com>
22177 * tree-inline.c (copy_tree_body_r): For OMP_CLAUSE_DEPEND don't
22178 check TREE_CODE if OMP_CLAUSE_DECL is NULL.
22180 2021-06-08 Richard Biener <rguenther@suse.de>
22182 PR middle-end/100951
22183 * tree-vect-generic.c (expand_vector_piecewise): Build a
22184 VECTOR_CST if all elements are constant.
22185 (expand_vector_condition): Likewise.
22186 (lower_vec_perm): Likewise.
22187 (expand_vector_conversion): Likewise.
22189 2021-06-08 Martin Liska <mliska@suse.cz>
22191 * doc/invoke.texi: Document new param evrp-sparse-threshold.
22193 2021-06-08 Martin Liska <mliska@suse.cz>
22195 * genautomata.c (create_automata): Fix typo.
22197 2021-06-08 Kewen Lin <linkw@linux.ibm.com>
22199 PR tree-optimization/100794
22200 * tree-predcom.c (tree_predictive_commoning_loop): Add parameter
22201 allow_unroll_p and only allow unrolling when it's true.
22202 (tree_predictive_commoning): Add parameter allow_unroll_p and
22204 (run_tree_predictive_commoning): Likewise.
22205 (pass_predcom::gate): Check flag_tree_loop_vectorize and
22206 global_options_set.x_flag_predictive_commoning.
22207 (pass_predcom::execute): Adjust for allow_unroll_p.
22209 2021-06-08 Kewen Lin <linkw@linux.ibm.com>
22211 * tree-predcom.c (execute_pred_commoning): Remove update_ssa call.
22212 (tree_predictive_commoning_loop): Factor some cleanup stuffs into
22213 lambda function cleanup, remove scev_reset call, and adjust return
22215 (tree_predictive_commoning): Adjust for different changed values,
22216 only set flag TODO_update_ssa_only_virtuals if changed.
22217 (pass_data pass_data_predcom): Remove TODO_update_ssa_only_virtuals
22218 from todo_flags_finish.
22220 2021-06-07 Andrew MacLeod <amacleod@redhat.com>
22222 * gimple-range-cache.cc (class sbr_sparse_bitmap): New.
22223 (sbr_sparse_bitmap::sbr_sparse_bitmap): New.
22224 (sbr_sparse_bitmap::bitmap_set_quad): New.
22225 (sbr_sparse_bitmap::bitmap_get_quad): New.
22226 (sbr_sparse_bitmap::set_bb_range): New.
22227 (sbr_sparse_bitmap::get_bb_range): New.
22228 (sbr_sparse_bitmap::bb_range_p): New.
22229 (block_range_cache::block_range_cache): initialize bitmap obstack.
22230 (block_range_cache::~block_range_cache): Destruct obstack.
22231 (block_range_cache::set_bb_range): Decide when to utilze the
22232 sparse on entry cache.
22233 * gimple-range-cache.h (block_range_cache): Add bitmap obstack.
22234 * params.opt (-param=evrp-sparse-threshold): New.
22236 2021-06-07 Andrew MacLeod <amacleod@redhat.com>
22238 * bitmap.c (bitmap_set_aligned_chunk): New.
22239 (bitmap_get_aligned_chunk): New.
22240 (test_aligned_chunk): New.
22241 (bitmap_c_tests): Call test_aligned_chunk.
22242 * bitmap.h (bitmap_set_aligned_chunk, bitmap_get_aligned_chunk): New.
22244 2021-06-07 Uroš Bizjak <ubizjak@gmail.com>
22247 * config/i386/i386-expand.c (ix86_expand_vector_init_duplicate):
22249 (ix86_expand_vector_init_one_nonzero): Ditto.
22250 (ix86_expand_vector_init_one_var): Ditto.
22251 (ix86_expand_vector_init_general): Ditto.
22252 * config/i386/mmx.md (vec_initv4qiqi): New expander.
22254 2021-06-07 Jeff Law <jeffreyalaw@gmail.com>
22256 * config/h8300/movepush.md: Change most _clobber_flags
22257 patterns to instead use <cczn> subst.
22258 (movsi_cczn): New pattern with usable CC cases split out.
22259 (movsi_h8sx_cczn): Likewise.
22261 2021-06-07 Martin Liska <mliska@suse.cz>
22263 * common/common-target.def: Split long lines and replace them
22265 * target.def: Likewise.
22266 * doc/tm.texi: Re-generated.
22268 2021-06-07 Jakub Jelinek <jakub@redhat.com>
22271 * fold-const.c (fold_read_from_vector): Return NULL if trying to
22272 read from a CONSTRUCTOR with vector type elements.
22274 2021-06-07 Jakub Jelinek <jakub@redhat.com>
22276 PR middle-end/100898
22277 * tree-inline.c (copy_bb): Only use gimple_call_arg_ptr if memcpy
22278 should copy any arguments. Don't call gimple_call_num_args
22279 on id->call_stmt or call_stmt more than once.
22281 2021-06-07 liuhongt <hongtao.liu@intel.com>
22284 * config/i386/sse.md (*sse4_1_zero_extendv8qiv8hi2_3): Refine
22286 (<insn>v4siv4di2): Delete constraints for define_expand.
22288 2021-06-07 liuhongt <hongtao.liu@intel.com>
22291 * config/i386/i386-expand.c (ix86_expand_builtin): Remove
22292 assignment of cfun->machine->has_explicit_vzeroupper.
22293 * config/i386/i386-features.c
22294 (ix86_add_reg_usage_to_vzerouppers): Delete.
22295 (ix86_add_reg_usage_to_vzeroupper): Ditto.
22296 (rest_of_handle_insert_vzeroupper): Remove
22297 ix86_add_reg_usage_to_vzerouppers, add df_analyze at the end
22299 (gate): Remove cfun->machine->has_explicit_vzeroupper.
22300 * config/i386/i386-protos.h (ix86_expand_avx_vzeroupper):
22302 * config/i386/i386.c (ix86_insn_callee_abi): New function.
22303 (ix86_initialize_callee_abi): Ditto.
22304 (ix86_expand_avx_vzeroupper): Ditto.
22305 (ix86_hard_regno_call_part_clobbered): Adjust for vzeroupper
22307 (TARGET_INSN_CALLEE_ABI): Define as ix86_insn_callee_abi.
22308 (ix86_emit_mode_set): Call ix86_expand_avx_vzeroupper
22310 * config/i386/i386.h (struct GTY(()) machine_function): Delete
22311 has_explicit_vzeroupper.
22312 * config/i386/i386.md (enum unspec): New member
22314 (ABI_DEFAULT,ABI_VZEROUPPER,ABI_UNKNOWN): New
22315 define_constants for insn callee abi index.
22316 * config/i386/predicates.md (vzeroupper_pattern): Adjust.
22317 * config/i386/sse.md (UNSPECV_VZEROUPPER): Deleted.
22318 (avx_vzeroupper): Call ix86_expand_avx_vzeroupper.
22319 (*avx_vzeroupper): Rename to ..
22320 (avx_vzeroupper_callee_abi): .. this, and adjust pattern as
22321 call_insn which has a special vzeroupper ABI.
22322 (*avx_vzeroupper_1): Deleted.
22324 2021-06-07 liuhongt <hongtao.liu@intel.com>
22327 * df-scan.c (df_get_call_refs): When call_insn is a fake call,
22328 it won't use stack pointer reg.
22329 * final.c (leaf_function_p): When call_insn is a fake call, it
22330 won't affect caller as a leaf function.
22331 * reg-stack.c (callee_clobbers_any_stack_reg): New.
22332 (subst_stack_regs): When call_insn doesn't clobber any stack
22333 reg, don't clear the arguments.
22334 * rtl.c (shallow_copy_rtx): Don't clear flag used when orig is
22336 * shrink-wrap.c (requires_stack_frame_p): No need for stack
22337 frame for a fake call.
22338 * rtl.h (FAKE_CALL_P): New macro.
22340 2021-06-06 Eric Botcazou <ebotcazou@adacore.com>
22342 * config/sparc/sparc-protos.h (order_regs_for_local_alloc): Rename
22344 (sparc_order_regs_for_local_alloc): ...this.
22345 (sparc_leaf_reg_remap): Declare.
22346 * config/sparc/sparc.h (ADJUST_REG_ALLOC_ORDER): Adjust.
22347 (LEAF_REG_REMAP): Reimplement as call to sparc_leaf_reg_remap.
22348 * config/sparc/sparc.c (leaf_reg_remap): Delete.
22349 (order_regs_for_local_alloc): Rename to...
22350 (sparc_order_regs_for_local_alloc): ...this.
22351 (sparc_leaf_reg_remap): New function.
22352 (sparc_conditional_register_usage): Do not modify leaf_reg_remap.
22354 2021-06-06 David Edelsohn <dje.gcc@gmail.com>
22356 * config/rs6000/rs6000.c (rs6000_xcoff_asm_output_aligned_decl_common):
22357 Use assemble_name to output BSS section name.
22359 2021-06-06 Uroš Bizjak <ubizjak@gmail.com>
22361 * config/i386/constraints.md (Bs):
22362 Remove boolean operators from match_test RTX.
22365 (M): Use "mode" variable instead of GET_MODE (op) in match_test RTX.
22368 2021-06-06 Martin Liska <mliska@suse.cz>
22370 * doc/extend.texi: Add missing @headitem.
22371 * doc/invoke.texi: Likewise.
22372 * doc/objc.texi: Likewise.
22374 2021-06-06 Martin Liska <mliska@suse.cz>
22376 * genhooks.c (emit_findices): Remove unused function.
22377 (emit_documentation): Do not call emit_findices
22378 and do not search for @Fcode directives.
22380 2021-06-06 Martin Liska <mliska@suse.cz>
22382 * doc/invoke.texi: Remove extra character.
22384 2021-06-05 Kewen Lin <linkw@linux.ibm.com>
22386 * config/sh/sh.md (doloop_end_split): Fix empty split condition.
22388 2021-06-05 Kewen Lin <linkw@linux.ibm.com>
22390 * config/sparc/sparc.md (*snedi<W:mode>_zero_vis3,
22391 *neg_snedi<W:mode>_zero_subxc, *plus_snedi<W:mode>_zero,
22392 *plus_plus_snedi<W:mode>_zero, *minus_snedi<W:mode>_zero,
22393 *minus_minus_snedi<W:mode>_zero): Fix empty split condition.
22395 2021-06-05 Kewen Lin <linkw@linux.ibm.com>
22397 * config/or1k/or1k.md (*movdi): Fix empty split condition.
22399 2021-06-05 Kewen Lin <linkw@linux.ibm.com>
22401 * config/mips/mips.md (<anonymous>, bswapsi2, bswapdi2): Fix empty
22404 2021-06-05 Kewen Lin <linkw@linux.ibm.com>
22406 * config/m68k/m68k.md (*zero_extend_inc, *zero_extend_dec,
22407 *zero_extendsidi2): Fix empty split condition.
22409 2021-06-05 Jeff Law <jeffreyalaw@gmail.com>
22411 * config/h8300/addsub.md: Fix split condition in define_insn_and_split
22413 * config/h8300/bitfield.md: Likewise.
22414 * config/h8300/combiner.md: Likewise.
22415 * config/h8300/divmod.md: Likewise.
22416 * config/h8300/extensions.md: Likewise.
22417 * config/h8300/jumpcall.md: Likewise.
22418 * config/h8300/movepush.md: Likewise.
22419 * config/h8300/multiply.md: Likewise.
22420 * config/h8300/other.md: Likewise.
22421 * config/h8300/shiftrotate.md: Likewise.
22422 * config/h8300/logical.md: Likewise. Fix split pattern to use
22423 code iterator that somehow slipped through.
22425 2021-06-04 Tobias Burnus <tobias@codesourcery.com>
22427 PR middle-end/100905
22428 * tree-nested.c (convert_nonlocal_omp_clauses,
22429 convert_local_omp_clauses): Handle OMP_CLAUSE_BIND.
22431 2021-06-04 Martin Sebor <msebor@redhat.com>
22433 PR middle-end/100732
22434 * gimple-fold.c (gimple_fold_builtin_sprintf): Avoid folding calls
22435 with either source or destination argument of invalid type.
22436 * tree-ssa-uninit.c (maybe_warn_pass_by_reference): Avoid checking
22437 calls with arguments of invalid type.
22439 2021-06-04 Martin Sebor <msebor@redhat.com>
22441 * attribs.c (init_attr_rdwr_indices): Use VLA bounds in the expected
22443 (attr_access::vla_bounds): Also handle VLA bounds.
22445 2021-06-04 Uroš Bizjak <ubizjak@gmail.com>
22447 * config/i386/predicates.md (GOT_memory_operand):
22448 Implement using match_code RTXes.
22449 (GOT32_symbol_operand): Ditto.
22451 2021-06-04 Uroš Bizjak <ubizjak@gmail.com>
22454 * config/i386/i386-expand.c (ix86_expand_vector_init_duplicate):
22456 (ix86_expand_vector_init_general): Ditto.
22457 Use SImode instead of word_mode for logic operations
22458 when GET_MODE_SIZE (mode) < UNITS_PER_WORD.
22459 (expand_vec_perm_even_odd_1): Assert that V2HI mode should be
22460 implemented by expand_vec_perm_1.
22461 (expand_vec_perm_broadcast_1): Assert that V2HI and V4HI modes
22462 should be implemented using standard shuffle patterns.
22463 (ix86_vectorize_vec_perm_const): Handle V2HImode. Add V4HI and
22464 V2HI modes to modes, implementable with shuffle for one operand.
22465 * config/i386/mmx.md (*punpckwd): New insn_and_split pattern.
22466 (*pshufw_1): New insn pattern.
22467 (*vec_dupv2hi): Ditto.
22468 (vec_initv2hihi): New expander.
22470 2021-06-04 Kewen Lin <linkw@linux.ibm.com>
22472 * config/arm/vfp.md (no_literal_pool_df_immediate,
22473 no_literal_pool_sf_immediate): Fix empty split condition.
22475 2021-06-04 Kewen Lin <linkw@linux.ibm.com>
22477 * config/i386/i386.md (*load_tp_x32_zext, *add_tp_x32_zext,
22478 *tls_dynamic_gnu2_combine_32): Fix empty split condition.
22479 * config/i386/sse.md (*<sse2_avx2>_pmovmskb_lt,
22480 *<sse2_avx2>_pmovmskb_zext_lt, *sse2_pmovmskb_ext_lt,
22481 *<sse4_1_avx2>_pblendvb_lt): Likewise.
22483 2021-06-04 Jakub Jelinek <jakub@redhat.com>
22486 * config/i386/i386-expand.c (ix86_expand_vector_init): Handle
22487 concatenation from half-sized modes with TImode elements.
22489 2021-06-04 Claudiu Zissulescu <claziss@synopsys.com>
22491 * config/arc/arc.c (arc_override_options): Disable millicode
22492 thunks when RF16 is on.
22494 2021-06-04 Haochen Gui <guihaoc@gcc.gnu.org>
22496 * config/rs6000/rs6000.h (PROMOTE_MODE): Remove.
22498 2021-06-04 Haochen Gui <guihaoc@gcc.gnu.org>
22500 * config/rs6000/rs6000-call.c (rs6000_promote_function_mode):
22501 Replace PROMOTE_MODE marco with its content.
22503 2021-06-03 Kewen Lin <linkw@linux.ibm.com>
22505 * config/cris/cris.md (*addi_reload): Fix empty split condition.
22507 2021-06-03 Jim Wilson <jimw@sifive.com>
22509 * config.gcc (riscv*-*-*): If --with-riscv-attribute not used,
22510 turn it on for all riscv targets.
22512 2021-06-03 Uroš Bizjak <ubizjak@gmail.com>
22515 * config/i386/i386-expand.c (ix86_expand_vector_set):
22516 Handle V2HI and V4QI modes.
22517 (ix86_expand_vector_extract): Ditto.
22518 * config/i386/mmx.md (*pinsrw): New insn pattern.
22521 (*pextrw_zext): Ditto.
22523 (*pextrb_zext): Ditto.
22524 (vec_setv2hi): New expander.
22525 (vec_extractv2hihi): Ditto.
22526 (vec_setv4qi): Ditto.
22527 (vec_extractv4qiqi): Ditto.
22528 (vec_setv8qi): Enable only for TARGET_SSE4_1.
22529 (vec_extractv8qiqi): Ditto.
22531 2021-06-03 Aaron Sawdey <acsawdey@linux.ibm.com>
22533 * config/rs6000/genfusion.pl (gen_logical_addsubf): Fix input
22534 order to subf instruction.
22535 * config/rs6000/fusion.md: Regenerate.
22537 2021-06-03 Aldy Hernandez <aldyh@redhat.com>
22539 * calls.c (get_size_range): Use range_of_expr instead of
22540 determine_value_range.
22541 * tree-affine.c (expr_to_aff_combination): Same.
22542 * tree-data-ref.c (split_constant_offset): Same.
22543 * tree-vrp.c (determine_value_range_1): Remove.
22544 (determine_value_range): Remove.
22545 * tree-vrp.h (determine_value_range): Remove.
22547 2021-06-03 Aldy Hernandez <aldyh@redhat.com>
22549 * function-tests.c (test_ranges): Call gimple_range_tests.
22550 * gimple-range-cache.cc (ranger_cache::range_of_expr): Pass stmt
22552 * gimple-range.cc (fur_source::get_operand): Do not call
22553 get_tree_range or gimple_range_global.
22555 (get_tree_range): Move to value-query.cc.
22556 Call get_arith_expr_range.
22557 (gimple_ranger::range_of_expr): Add argument to get_tree_range.
22558 Include gimple-range-tests.cc.
22559 * gimple-range.h (fold_range): Add argument.
22560 (get_tree_range): Remove.
22561 * selftest.h (gimple_range_tests): New.
22562 * value-query.cc (global_range_query::range_of_expr): Add
22564 (range_query::get_tree_range): Move from gimple-range.cc.
22565 * value-query.h (class range_query): Add get_tree_range and
22566 get_arith_expr_range. Make fur_source a friend.
22567 * vr-values.c (vr_values::range_of_expr): Pass stmt to
22569 * gimple-range-tests.cc: New file.
22571 2021-06-03 Aldy Hernandez <aldyh@redhat.com>
22573 * gimple-range.cc (gimple_ranger::export_global_ranges): Call
22574 update_global_range.
22575 * value-query.cc (update_global_range): New.
22576 * value-query.h (update_global_range): New.
22578 2021-06-03 David Malcolm <dmalcolm@redhat.com>
22580 * diagnostic-show-locus.c (diagnostic_show_locus): Don't reject
22581 printing the same location twice if there are fix-it hints,
22582 multiple locations, or a label.
22584 2021-06-03 Andre Vieira <andre.simoesdiasvieira@arm.com>
22586 * tree-vect-loop.c (vect_transform_loop): Use main loop's various'
22587 thresholds to narrow the upper bound on epilogue iterations.
22589 2021-06-03 Christophe Lyon <christophe.lyon@linaro.org>
22591 * config/arm/mve.md (mve_vabsq_f<mode>): Use 'abs' instead of unspec.
22592 (mve_vabsq_s<mode>): Likewise.
22593 * config/arm/neon.md (abs<mode>2): Rename to neon_abs<mode>2.
22594 * config/arm/unspecs.md (VABSQ_F, VABSQ_S): Delete.
22595 * config/arm/vec-common.md (neg<mode>2): Rename to
22596 <absneg_str><mode>2.
22598 2021-06-03 Claudiu Zissulescu <claziss@synopsys.com>
22600 * common/config/arc/arc-common.c (arc_option_optimization_table):
22601 Remove malign-call.
22602 * config/arc/arc.c (arc_unalign_branch_p): Remove unused function.
22603 * config/arc/arc.h (TARGET_MIXED_CODE): Remove macro.
22604 (INDEX_REG_CLASS): Only refer to GENERAL_REGS.
22605 * config/arc/arc.md (abssi2_mixed): Remove pattern.
22606 * config/arc/arc.opt (munalign-prob-threshold): Mark it obsolete.
22607 (malign-call): Likewise.
22608 (mmixed-code): Likewise.
22609 * doc/invoke.texi (ARC): Update doc.
22611 2021-06-03 Martin Liska <mliska@suse.cz>
22613 * common.opt: Use proper Enum values.
22614 * opts.c (COVERAGE_SANITIZER_OPT): Remove.
22615 (parse_sanitizer_options): Handle only sanitizer_opts.
22616 (common_handle_option): Just assign value.
22618 2021-06-03 Eric Botcazou <ebotcazou@adacore.com>
22621 * tree-inline.c (inline_forbidden_p): Remove test on return type.
22623 2021-06-03 Eric Botcazou <ebotcazou@adacore.com>
22625 * dwarf2out.c (loc_list_from_tree_1) <FUNCTION_DECL>: Also generate
22626 DW_OP_GNU_variable_value referencing an existing DIE at file scope.
22627 (type_byte_size): Inline into...
22628 (add_byte_size_attribute): ...this and call add_scalar_info.
22630 2021-06-03 Eric Botcazou <ebotcazou@adacore.com>
22632 * dwarf2out.c (mem_loc_descriptor) <UDIV>: Fix typo.
22633 (typed_binop_from_tree): New function.
22634 (loc_list_from_tree_1) <EXACT_DIV_EXPR>: For an unsigned type,
22635 turn a divide by a power of 2 into a shift.
22636 <CEIL_DIV_EXPR>: For an unsigned type, use a signed divide if the
22637 size of the mode is lower than DWARF2_ADDR_SIZE; otherwise, do a
22638 typed divide by calling typed_binop_from_tree.
22640 2021-06-03 Eric Botcazou <ebotcazou@adacore.com>
22642 * dwarf2out.c (scompare_loc_descriptor): Fix head comment.
22643 (is_handled_procedure_type): Likewise.
22644 (struct loc_descr_context): Add strict_signedness field.
22645 (resolve_args_picking_1): Deal with DW_OP_[GNU_]deref_type,
22646 DW_OP_[GNU_]convert and DW_OP_[GNU_]reinterpret.
22647 (resolve_args_picking): Minor tweak.
22648 (function_to_dwarf_procedure): Initialize strict_signedness field.
22649 (type_byte_size): Likewise.
22650 (field_byte_offset): Likewise.
22651 (gen_descr_array_type_die): Likewise.
22652 (gen_variant_part): Likewise.
22653 (loc_list_from_tree_1) <CALL_EXPR>: Tidy up and set strict_signedness
22654 to true when a context is present before evaluating the arguments.
22655 <COND_EXPR>: Do not generate a useless comparison with zero.
22656 When dereferencing an address, if strict_signedness is true and the
22657 type is small and signed, use DW_OP_deref_type to do the dereference
22658 and then DW_OP_convert to convert back to the generic type.
22660 2021-06-03 Jakub Jelinek <jakub@redhat.com>
22663 * tree-inline.c (copy_tree_body_r): Handle iterators on
22664 OMP_CLAUSE_AFFINITY or OMP_CLAUSE_DEPEND.
22666 2021-06-03 Kewen Lin <linkw@linux.ibm.com>
22668 * config/arc/arc.md (*bbit_di): Remove.
22670 2021-06-02 Christoph Muellner <cmuellner@gcc.gnu.org>
22672 PR rtl-optimization/100264
22673 * ree.c (get_sub_rtx): Ignore SET expressions without register
22674 destinations and remove assertion, as it is not valid anymore
22675 with this new behaviour.
22676 (merge_def_and_ext): Eliminate destination check for register
22677 as such SET expressions can't occur anymore.
22678 (combine_reaching_defs): Likewise.
22680 2021-06-02 Jakub Jelinek <jakub@redhat.com>
22683 * config/xtensa/xtensa.h (LEAF_REG_REMAP): Cast REGNO to int to avoid
22684 -Wtype-limits warnings.
22685 (DWARF_FRAME_REGISTER): Rewrite into ternary operator with addition
22686 in operands to avoid -Wsign-compare warnings.
22688 2021-06-02 Pat Haugen <pthaugen@linux.ibm.com>
22690 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Use
22693 2021-06-02 Vineet Gupta <vgupta@synopsys.com>
22695 * config/arc/arc.h (TARGET_CPU_DEFAULT): Change to hs38_linux.
22697 2021-06-02 Ilya Leoshkevich <iii@linux.ibm.com>
22699 * config/s390/s390.md(*ashrdi3_31<setcc><cconly>): Use a single
22701 * config/s390/subst.md(cconly_subst): Use a single constraint
22702 in (match_scratch).
22704 2021-06-02 Martin Liska <mliska@suse.cz>
22706 * ipa-icf.h: Use auto_vec for memory_access_types.
22708 2021-06-02 Jeff Law <jeffreyalaw@gmail.com>
22710 * config/h8300/h8300-protos.h (compute_a_shift_length): Drop unused
22711 argument from prototype.
22712 (output_logical_op): Add rtx_code argument.
22713 (compute_logical_op_length): Likewise.
22714 * config/h8300/h8300.c (h8300_and_costs): Pass additional argument
22715 to compute_a_shift_length.
22716 (output_logical_op); New argument with the rtx code rather than
22717 extracting it from an operand. Handle QImode too.
22718 (compute_logical_op_length): Similary.
22719 (compute_a_shift_length): Drop unused argument.
22720 * config/h8300/h8300.md (logicals): New code iterator.
22721 * config/h8300/logical.md (<code><mode>3 expander): Combine
22722 the "and" expander with the "ior"/"xor" expander.
22723 (bclr<mode>msx): Combine the QI/HI mode patterns.
22724 (<logical><mode>3 insns): Use code iterator rather than match_operator.
22725 Handle QImode as well. Update call to output_logical_op and
22726 compute_logical_op_length to pass in rtx_code
22727 Fix split condition on all define_insn_and_split patterns.
22728 (one_cmpl<mode>2<cczn>): Use <cczn> to support both clobbering
22729 the flags and setting ZN via existing define_subst.
22730 * config/h8300/shiftrotate.md: Drop unused argument from
22731 calls to compute_a_shift_length.
22732 Signed-off-by: Jeff Law <jeffreyalaw@gmail.com>
22734 2021-06-01 Andrew Pinski <apinski@marvell.com>
22736 PR tree-optimization/25290
22737 * tree-ssa-phiopt.c (match_simplify_replacement):
22739 (tree_ssa_phiopt_worker): Use match_simplify_replacement.
22740 (two_value_replacement): Change the comment about
22741 conditional_replacement.
22742 (conditional_replacement): Delete.
22744 2021-06-01 Andrew Pinski <apinski@marvell.com>
22746 PR tree-optimization/95481
22747 * tree-tailcall.c (find_tail_calls): Handle empty typed
22750 2021-06-01 Andrew Pinski <apinski@marvell.com>
22752 * gimplify.c (zero_sized_field_decl): Delete
22753 (zero_sized_type): Delete
22754 (gimplify_init_ctor_eval): Use is_empty_type instead
22755 of zero_sized_field_decl.
22756 (gimplify_modify_expr): Use is_empty_type instead of
22759 2021-06-01 Jason Merrill <jason@redhat.com>
22762 * tree.h (CALL_FROM_NEW_OR_DELETE_P): Adjust comment.
22764 2021-06-01 Jason Merrill <jason@redhat.com>
22767 * diagnostic.h (warning_enabled_at): Declare.
22768 * diagnostic.c (diagnostic_enabled): Factor out from...
22769 (diagnostic_report_diagnostic): ...here.
22770 (warning_enabled_at): New.
22772 2021-06-01 Aldy Hernandez <aldyh@redhat.com>
22774 * gimple-ssa-evrp.c: Enable exporting of global ranges.
22776 2021-06-01 Martin Liska <mliska@suse.cz>
22779 * doc/invoke.texi: Mention that -fgcse-after-reload
22780 is enabled with -O3.
22782 2021-06-01 liuhongt <hongtao.liu@intel.com>
22784 PR tree-optimization/98365
22785 * tree-if-conv.c (strip_nop_cond_scalar_reduction): New function.
22786 (is_cond_scalar_reduction): Handle nop_expr in cond scalar reduction.
22787 (convert_scalar_cond_reduction): Ditto.
22788 (predicate_scalar_phi): Ditto.
22790 2021-06-01 Andrew MacLeod <amacleod@redhat.com>
22792 PR tree-optimization/100781
22793 * gimple-range-cache.cc (ranger_cache::ranger_cache): Enable new
22794 value calculation by default.
22795 (ranger_cache::enable_new_values): New.
22796 (ranger_cache::disable_new_values): New.
22797 (ranger_cache::push_poor_value): Check if new values are allowed.
22798 * gimple-range-cache.h (class ranger_cache): New member/methods.
22799 * gimple-range.cc (gimple_ranger::range_of_expr): Check for debug
22800 statement, and disable/renable new value calculation.
22802 2021-06-01 Andrew MacLeod <amacleod@redhat.com>
22804 * gimple-range-cache.cc (ranger_cache::ssa_range_in_bb): Delete.
22805 (ranger_cache::range_of_def): New.
22806 (ranger_cache::entry_range): New.
22807 (ranger_cache::exit_range): New.
22808 (ranger_cache::range_of_expr): Adjust.
22809 (ranger_cache::range_on_edge): Adjust.
22810 (ranger_cache::propagate_cache): Call exit_range directly.
22811 * gimple-range-cache.h (class ranger_cache): Adjust.
22813 2021-06-01 Andrew MacLeod <amacleod@redhat.com>
22815 * gimple-range-cache.cc (ranger_cache::ranger_cache): Adjust for
22816 gori_compute being a member rather than base class.
22817 dervied call to member call.
22818 (ranger_cache::dump): No longer dump gori_map.
22819 (ranger_cache::dump_bb): New.
22820 (ranger_cache::get_non_stale_global_range): Adjust for gori_compute
22821 being a member rather than base class.
22822 (ranger_cache::set_global_range): Ditto.
22823 (ranger_cache::ssa_range_in_bb): Ditto.
22824 (ranger_cache::range_of_expr): New.
22825 (ranger_cache::range_on_edge): New.
22826 (ranger_cache::block_range): Adjust for gori_computes. Debug changes.
22827 (ranger_cache::propagate_cache): Adjust debugging output.
22828 (ranger_cache::fill_block_cache): Adjust for gori_computes. Debug
22830 * gimple-range-cache.h (class ranger_cache): Make gori_compute a
22831 member, and inherit from range_query instead.
22832 (ranger_cache::dump_bb): New. split from dump.
22833 * gimple-range-gori.cc (gori_compute::ssa_range_in_bb): Delete.
22834 (gori_compute::expr_range_at_stmt): Delete.
22835 (gori_compute::compute_name_range_op): Delete.
22836 (gori_compute::compute_operand_range_switch): Add fur_source.
22837 (gori_compute::compute_operand_range): Add fur_source param, inline
22838 old compute_name_range_op and optimize_logical_operands.
22839 (struct tf_range): Delete.
22840 (gori_compute::logical_combine): Adjust
22841 (gori_compute::optimize_logical_operands): Delete.
22842 (gori_compute::compute_logical_operands_in_chain): Delete.
22843 (gori_compute::compute_logical_operands): Adjust.
22844 (gori_compute::compute_operand1_range): Adjust to fur_source.
22845 (gori_compute::compute_operand2_range): Ditto.
22846 (gori_compute::compute_operand1_and_operand2_range): Ditto.
22847 (gori_compute::outgoing_edge_range_p): Add range_query parameter,
22848 and adjust to fur_source.
22849 * gimple-range-gori.h (class gori_compute): Simplify and adjust to
22850 range_query and fur_source.
22851 * gimple-range.cc (gimple_ranger::range_on_edge): Query range_on_edge
22852 from the ranger_cache..
22853 (gimple_ranger::fold_range_internal): Adjust to base class change of
22855 (gimple_ranger::dump_bb): Adjust dump.
22856 * gimple-range.h (gimple_ranger):export gori computes object.
22858 2021-06-01 Andrew MacLeod <amacleod@redhat.com>
22860 PR tree-optimization/100774
22861 * gimple-range-cache.cc (ranger_cache::get_non_stale_global_range):
22862 Constant values are also not stale.
22863 (ranger_cache::set_global_range): Range invariant values should also
22864 have the correct timestamp.
22866 2021-05-31 Martin Liska <mliska@suse.cz>
22868 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
22869 Unpack FUNCTION_DECL_DECL_TYPE.
22870 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
22871 Stream FUNCTION_DECL_DECL_TYPE instead of
22872 DECL_IS_OPERATOR_NEW_P.
22873 * tree.h (set_function_decl_type): Use FUNCTION_DECL_DECL_TYPE
22875 (DECL_IS_OPERATOR_NEW_P): Likewise.
22876 (DECL_IS_OPERATOR_DELETE_P): Likewise.
22877 (DECL_LAMBDA_FUNCTION_P): Likewise.
22879 2021-05-31 Richard Biener <rguenther@suse.de>
22882 * internal-fn.c (expand_SHUFFLEVECTOR): Define.
22883 * internal-fn.def (SHUFFLEVECTOR): New.
22884 * internal-fn.h (expand_SHUFFLEVECTOR): Declare.
22885 * doc/extend.texi: Document __builtin_shufflevector.
22887 2021-05-31 Peter Bergner <bergner@linux.ibm.com>
22890 * config/rs6000/predicates.md(mma_assemble_input_operand): Allow
22891 indexed form addresses.
22893 2021-05-29 Jeff Law <jlaw@tachyum.com>
22895 * config/h8300/h8300.c (h8300_emit_stack_adjustment): Drop unused
22896 parameter. Call callers fixed.
22898 (output_plussi): Add FALLTHRU markers.
22899 (h8300_shift_needs_scratch_p): Add gcc_unreachable marker.
22901 2021-05-29 Jakub Jelinek <jakub@redhat.com>
22903 PR middle-end/99928
22904 * gimplify.c (gimplify_scan_omp_clauses): For taskloop simd
22905 combined with parallel, make sure to add shared clause to
22906 parallel for explicit linear clause.
22908 2021-05-29 Aldy Hernandez <aldyh@redhat.com>
22910 PR tree-optimization/100787
22911 * gimple-ssa-evrp.c: Disable exporting of global ranges.
22913 2021-05-28 Jason Merrill <jason@redhat.com>
22915 * tree-iterator.h (struct tree_stmt_iterator): Add operator++,
22916 operator--, operator*, operator==, and operator!=.
22917 (class tsi_range): New.
22919 2021-05-28 Richard Biener <rguenther@suse.de>
22921 PR tree-optimization/100778
22922 * tree-vect-slp.c (vect_build_slp_tree_1): Prevent possibly
22923 trapping ops in different BBs.
22925 2021-05-28 Richard Biener <rguenther@suse.de>
22928 * tree-inline.c (copy_bb): When processing __builtin_va_arg_pack
22929 copy fntype from original call.
22931 2021-05-28 Martin Liska <mliska@suse.cz>
22933 PR gcov-profile/100751
22934 * doc/gcov.texi: Revert partially a hunk that was wrong.
22936 2021-05-28 Cooper Qu <cooper.qu@linux.alibaba.com>
22938 * config/csky/csky-linux-elf.h (HAVE_sync_compare_and_swapqi):
22940 (HAVE_sync_compare_and_swaphi): Likewise.
22941 (HAVE_sync_compare_and_swapsi): Likewise.
22943 2021-05-28 Jakub Jelinek <jakub@redhat.com>
22945 PR middle-end/99928
22946 * tree.h (OMP_CLAUSE_MAP_IMPLICIT): Define.
22948 2021-05-28 Tobias Burnus <tobias@codesourcery.com>
22950 * gimplify.c (gimplify_omp_affinity): New.
22951 (gimplify_scan_omp_clauses): Call it; remove affinity clause afterwards.
22952 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_AFFINITY.
22953 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_AFFINITY.
22954 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add clause.
22955 (walk_tree_1): Handle OMP_CLAUSE_AFFINITY.
22957 2021-05-28 Joern Rennecke <joern.rennecke@riscy-ip.com>
22958 Richard Biener <rguenther@suse.de>
22960 * match.pd <popcount & / + pattern matching>:
22961 When generating popcount directly fails, try doing it in two halves.
22963 2021-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
22965 * Makefile.in (generated_files): Add gimple-match.c and
22968 2021-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
22970 * gensupport.c (alter_predicate_for_insn): Handle MATCH_DUP.
22972 2021-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
22974 * gensupport.c (alter_constraints): Add MATCH_SCRATCH case.
22976 2021-05-28 Kewen Lin <linkw@linux.ibm.com>
22978 PR tree-optimization/99398
22979 * tree-ssa-forwprop.c (simplify_permutation): Optimize some cases
22980 where the fed operands are CTOR/CST and propagated through
22981 VIEW_CONVERT_EXPR. Call vec_perm_indices::new_shrunk_vector.
22982 * vec-perm-indices.c (vec_perm_indices::new_shrunk_vector): New
22984 * vec-perm-indices.h (vec_perm_indices::new_shrunk_vector): New
22987 2021-05-27 Uroš Bizjak <ubizjak@gmail.com>
22989 * config/i386/mmx.md (addv2sf3): Do not call
22990 ix86_fixup_binary_operands_no_copy.
22993 (<smaxmin:code>v2sf3): Ditto.
22994 (<plusminus:insn><MMXMODEI:mode>3): Ditto.
22995 (<plusminus:insn><VI_32:mode>3): Remove expander.
22996 (<plusminus:insn><VI_32:mode>3): Rename from
22997 "*<plusminus:insn><VI_32:mode>3".
22998 (mulv4hi): Do not call ix86_fixup_binary_operands_no_copy.
22999 (mulv2hi3): Remove expander.
23000 (mulv2hi3): Rename from *mulv2hi3.
23001 (<s>mulv2hi3_highpart): Remove expander.
23002 (<s>mulv2hi3_highpart): Rename from *<s>mulv2hi3_highpart.
23003 (<smaxmin:code><MMXMODE14:mode>3): Rename from
23004 "*mmx_<smaxmin:code><MMXMODE14:mode>3".
23005 (<smaxmin:code><SMAXMIN_MMXMODEI:mode>3): Remove expander.
23006 (SMAXMIN_MMXMODEI): Remove mode iterator.
23007 (<smaxmin:code>v4hi3): New expander.
23008 (<smaxmin:code>v4qi3): Rename from *<smaxmin:code>v4qi3.
23009 (<smaxmin:code>v2hi3): Rename from *<smaxmin:code>v2hi3.
23010 (<smaxmin:code><SMAXMIN_VI_32:mode>3): Remove expander.
23011 (SMAXMIN_VI_32): Remove mode iterator.
23012 (<umaxmin:code><MMXMODE24:mode>3): Rename from
23013 "*mmx_<umaxmin:code><MMXMODE24:mode>3".
23014 (<umaxmin:code><UMAXMIN_MMXMODEI:mode>3): Remove expander.
23015 (UMAXMIN_MMXMODEI): Remove mode iterator.
23016 (<umaxmin:code>v8qi3): New expander.
23017 (<umaxmin:code>v4qi3): Rename from *<umaxmin:code>v4qi3.
23018 (<umaxmin:code>v2hi3): Rename from *<umaxmin:code>v2hi3.
23019 (<umaxmin:code><SMAXMIN_VI_32:mode>3): Remove expander.
23020 (UMAXMIN_VI_32): Remove mode iterator.
23021 (<any_shift:insn>v2hi3): Remove expander.
23022 (<any_shift:insn>v2hi3): Rename from *<any_shift:insn>v2hi3.
23023 (<any_logic:code><MMXMODEI:mode>3): Do not call
23024 ix86_fixup_binary_operands_no_copy.
23025 (<any_logic:code><VI_32:mode>3): Remove expander.
23026 (<any_logic:code><VI_32:mode>3): Rename from
23027 "*<any_logic:code><VI_32:mode>3".
23028 (uavg<mode>3_ceil): Do not call ix86_fixup_binary_operands_no_copy.
23029 * config/i386/sse.md (div<VF2:mode>3): Do not call
23030 ix86_fixup_binary_operands_no_copy.
23031 (div<VF1:mode>3): Ditto.
23032 (<maxmin:code><VI8_AVX2_AVX512F:mode>3): Ditto.
23033 (smulhrsv4hi3): Ditto.
23034 (smulhrsv2hi3): Ditto.
23036 2021-05-27 Martin Sebor <msebor@redhat.com>
23038 * ggc.h (gt_ggc_mx): Add overloads for all integers.
23040 * hash-map.h (class hash_map): Add pch_nx_helper overloads for all
23042 (hash_map::operator==): New function.
23044 2021-05-27 Uroš Bizjak <ubizjak@gmail.com>
23047 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
23048 For TARGET_XOP bypass SSE comparisons for all supported vector modes.
23049 * config/i386/mmx.md (*xop_maskcmp<MMXMODEI:mode>3): New insn pattern.
23050 (*xop_maskcmp<VI_32:mode>3): Ditto.
23051 (*xop_maskcmp_uns<MMXMODEI:mode>3): Ditto.
23052 (*xop_maskcmp_uns<VI_32:mode>3): Ditto.
23054 2021-05-27 Richard Earnshaw <rearnsha@arm.com>
23057 * config/arm/arm.c (arm_configure_build_target): Remove parameter
23058 opts_set, directly check opts parameters for being non-null.
23059 (arm_option_restore): Update call to arm_configure_build_target.
23060 (arm_option_override): Likewise.
23061 (arm_can_inline_p): Likewise.
23062 (arm_valid_target_attribute_tree): Likewise.
23063 * config/arm/arm-c.c (arm_pragma_target_parse): Likewise.
23064 * config/arm/arm-protos.h (arm_configure_build_target): Adjust
23067 2021-05-27 Aldy Hernandez <aldyh@redhat.com>
23069 * vr-values.c (simplify_conversion_using_ranges): Use
23070 get_range_query instead of get_global_range_query.
23072 2021-05-27 Aldy Hernandez <aldyh@redhat.com>
23074 * gimple-range.cc (get_range_global): Move to value-query.cc.
23075 (gimple_range_global): Same.
23076 (get_global_range_query): Same.
23077 (global_range_query::range_of_expr): Same.
23078 * gimple-range.h (class global_range_query): Move to
23080 (gimple_range_global): Same.
23081 * tree-ssanames.c (get_range_info): Move to value-query.cc.
23082 (get_ptr_nonnull): Same.
23083 * tree-ssanames.h (get_range_info): Remove.
23084 (get_ptr_nonnull): Remove.
23085 * value-query.cc (get_ssa_name_range_info): Move from
23087 (get_ssa_name_ptr_info_nonnull): Same.
23088 (get_range_global): Move from gimple-range.cc.
23089 (gimple_range_global): Same.
23090 (get_global_range_query): Same.
23091 (global_range_query::range_of_expr): Same.
23092 * value-query.h (class global_range_query): Move from
23094 (gimple_range_global): Same.
23096 2021-05-27 Uroš Bizjak <ubizjak@gmail.com>
23099 * config/i386/mmx.md (uavgv4qi3_ceil): New insn pattern.
23100 (uavgv2hi3_ceil): Ditto.
23102 2021-05-26 Eric Botcazou <ebotcazou@adacore.com>
23105 * doc/extend.texi (scalar_storage_order): Rephrase slightly.
23107 2021-05-26 Aldy Hernandez <aldyh@redhat.com>
23109 * tree-ssanames.c (get_range_info): Merge both copies of
23110 get_range_info into one that works with irange.
23111 * tree-ssanames.h (get_range_info): Remove version that works on
23114 2021-05-26 Aldy Hernandez <aldyh@redhat.com>
23116 * builtins.c (check_nul_terminated_array): Convert to get_range_query.
23117 (expand_builtin_strnlen): Same.
23118 (determine_block_size): Same.
23119 * fold-const.c (expr_not_equal_to): Same.
23120 * gimple-fold.c (size_must_be_zero_p): Same.
23121 * gimple-match-head.c: Include gimple-range.h.
23122 * gimple-pretty-print.c (dump_ssaname_info): Convert to get_range_query.
23123 * gimple-ssa-warn-restrict.c
23124 (builtin_memref::extend_offset_range): Same.
23125 * graphite-sese-to-poly.c (add_param_constraints): Same.
23126 * internal-fn.c (get_min_precision): Same.
23127 * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Same.
23128 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
23130 * tree-data-ref.c (split_constant_offset): Same.
23131 (dr_step_indicator): Same.
23132 * tree-dfa.c (get_ref_base_and_extent): Same.
23133 * tree-scalar-evolution.c (iv_can_overflow_p): Same.
23134 * tree-ssa-loop-niter.c (refine_value_range_using_guard): Same.
23135 (determine_value_range): Same.
23136 (record_nonwrapping_iv): Same.
23137 (infer_loop_bounds_from_signedness): Same.
23138 (scev_var_range_cant_overflow): Same.
23139 * tree-ssa-phiopt.c (two_value_replacement): Same.
23140 * tree-ssa-pre.c (insert_into_preds_of_block): Same.
23141 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Same.
23142 * tree-ssa-strlen.c (handle_builtin_stxncpy_strncat): Same.
23144 (dump_strlen_info): Same.
23145 (set_strlen_range): Same.
23146 (maybe_diag_stxncpy_trunc): Same.
23147 (get_len_or_size): Same.
23148 (handle_integral_assign): Same.
23149 * tree-ssa-structalias.c (find_what_p_points_to): Same.
23150 * tree-ssa-uninit.c (find_var_cmp_const): Same.
23151 * tree-switch-conversion.c (bit_test_cluster::emit): Same.
23152 * tree-vect-patterns.c (vect_get_range_info): Same.
23153 (vect_recog_divmod_pattern): Same.
23154 * tree-vrp.c (intersect_range_with_nonzero_bits): Same.
23155 (register_edge_assert_for_2): Same.
23156 (determine_value_range_1): Same.
23157 * tree.c (get_range_pos_neg): Same.
23158 * vr-values.c (vr_values::get_lattice_entry): Same.
23159 (vr_values::update_value_range): Same.
23160 (simplify_conversion_using_ranges): Same.
23162 2021-05-26 Aldy Hernandez <aldyh@redhat.com>
23164 * gimple-ssa-warn-alloca.c (alloca_call_type): Use
23165 get_range_query instead of query argument.
23166 (pass_walloca::execute): Enable and disable global ranger.
23168 2021-05-26 Aldy Hernandez <aldyh@redhat.com>
23170 * gimple-ssa-evrp.c (rvrp_folder::rvrp_folder): Call
23172 (rvrp_folder::~rvrp_folder): Call disable_ranger.
23173 (hybrid_folder::hybrid_folder): Call enable_ranger.
23174 (hybrid_folder::~hybrid_folder): Call disable_ranger.
23176 2021-05-26 Aldy Hernandez <aldyh@redhat.com>
23178 * function.c (allocate_struct_function): Set cfun->x_range_query.
23179 * function.h (struct function): Declare x_range_query.
23180 (get_range_query): New.
23181 (get_global_range_query): New.
23182 * gimple-range-cache.cc (ssa_global_cache::ssa_global_cache):
23183 Remove call to safe_grow_cleared.
23184 * gimple-range.cc (get_range_global): New.
23185 (gimple_range_global): Move from gimple-range.h.
23186 (get_global_range_query): New.
23187 (global_range_query::range_of_expr): New.
23188 (enable_ranger): New.
23189 (disable_ranger): New.
23190 * gimple-range.h (gimple_range_global): Move to gimple-range.cc.
23191 (class global_range_query): New.
23192 (enable_ranger): New.
23193 (disable_ranger): New.
23194 * gimple-ssa-evrp.c (evrp_folder::~evrp_folder): Rename
23195 dump_all_value_ranges to dump.
23196 * tree-vrp.c (vrp_prop::finalize): Same.
23197 * value-query.cc (range_query::dump): New.
23198 * value-query.h (range_query::dump): New.
23199 * vr-values.c (vr_values::dump_all_value_ranges): Rename to...
23200 (vr_values::dump): ...this.
23201 * vr-values.h (class vr_values): Rename dump_all_value_ranges to
23202 dump and make virtual.
23204 2021-05-26 Uroš Bizjak <ubizjak@gmail.com>
23206 * config/i386/i386.c (ix86_autovectorize_vector_modes):
23207 Add V4QImode and V16QImode for TARGET_SSE2.
23208 * doc/sourcebuild.texi (Vector-specific attributes):
23209 Add vect64 and vect32 description.
23211 2021-05-26 Bernd Edlinger <bernd.edlinger@hotmail.de>
23213 * gimple-range-gori.cc (range_def_chain::register_dependency):
23214 Resize m_def_chain when needed.
23216 2021-05-26 Christophe Lyon <christophe.lyon@linaro.org>
23218 * config/arm/mve.md (mve_vaddvq_<supf><mode>): Prefix with '@'.
23219 * config/arm/neon.md (reduc_plus_scal_<mode>): Move to ..
23220 * config/arm/vec-common.md: .. here. Add support for MVE.
23222 2021-05-26 Jakub Jelinek <jakub@redhat.com>
23224 * config/epiphany/epiphany.c (epiphany_print_operand_address): Remove
23226 * config/microblaze/microblaze.c (microblaze_legitimize_address,
23228 microblaze_option_override, print_operand): Likewise.
23229 * config/microblaze/microblaze.md (call_internal_plt,
23230 call_value_intern_plt, call_value_intern): Likewise.
23231 * config/arm/aout.h (ASM_OUTPUT_ALIGN): Likewise.
23232 * config/iq2000/iq2000.md (call_internal1, call_value_internal1,
23233 call_value_multiple_internal1): Likewise.
23234 * config/bfin/bfin.c (symbolic_reference_mentioned_p): Likewise.
23236 2021-05-26 Jan-Benedict Glaw <jbglaw@lug-owl.de>
23238 * config/arc/arc.c (arc_address_cost, arc_print_operand_address,
23239 arc_ccfsm_advance, symbolic_reference_mentioned_p,
23240 arc_raw_symbolic_reference_mentioned_p): Remove register
23243 2021-05-26 Jakub Jelinek <jakub@redhat.com>
23246 * omp-low.c: Include omp-offload.h.
23247 (create_omp_child_function): If current_function_decl has
23248 "omp declare target" attribute and is_gimple_omp_offloaded,
23249 remove that attribute from the copy of attribute list and
23250 add "omp target entrypoint" attribute instead.
23251 (lower_omp_target): Mark .omp_data_sizes.* and .omp_data_kinds.*
23252 variables for offloading if in omp_maybe_offloaded_ctx.
23253 * omp-offload.c (pass_omp_target_link::execute): Nullify second
23254 argument to GOMP_target_data_ext in offloaded code.
23256 2021-05-26 Geng Qi <gengqi@linux.alibaba.com>
23258 * config/csky/csky.c (csky_can_change_mode_class): Delete.
23259 For csky, HF/SF mode use the low bits of VREGS.
23261 2021-05-26 Eric Botcazou <ebotcazou@adacore.com>
23263 * gimplify.c (gimplify_decl_expr): Do not clear TREE_READONLY on a
23264 DECL which is a reference for OMP.
23266 2021-05-26 Martin Liska <mliska@suse.cz>
23268 PR gcov-profile/100751
23269 * doc/gcov.texi: Document that __gcov_dump can be called just
23270 once and that __gcov_reset resets run-time counters.
23272 2021-05-26 Martin Liska <mliska@suse.cz>
23274 * doc/install.texi: Port relevant part from install-old.texi
23275 and re-generate list of CPUs and systems.
23277 2021-05-26 Martin Liska <mliska@suse.cz>
23279 * Makefile.in: Remove it.
23280 * doc/include/fdl.texi: Update next/previous chapters.
23281 * doc/install.texi: Likewise.
23282 * doc/install-old.texi: Removed.
23284 2021-05-26 Geng Qi <gengqi@linux.alibaba.com>
23286 * config/csky/csky.c (ck810_legitimate_index_p): Support
23287 "base + index" with DF mode.
23288 * config/csky/constraints.md ("Y"): New constraint for memory operands
23289 without index register.
23290 * config/csky/csky_insn_fpuv2.md (fpuv3_movdf): Use "Y" instead of "m"
23291 when mov between memory and general registers, and lower their priority.
23292 * config/csky/csky_insn_fpuv3.md (fpuv2_movdf): Likewise.
23294 2021-05-26 Geng Qi <gengqi@linux.alibaba.com>
23296 * config/csky/csky.c (TARGET_PROMOTE_PROTOTYPES): Delete.
23298 2021-05-26 Geng Qi <gengqi@linux.alibaba.com>
23300 * config/csky/csky.md (untyped_call): Emit clobber for return
23301 registers to mark them used.
23303 2021-05-26 Geng Qi <gengqi@linux.alibaba.com>
23305 * config/csky/csky.md (cskyv2_sextend_ldbs): New.
23307 2021-05-26 Andrew Pinski <apinski@marvell.com>
23309 * match.pd (x < 0 ? ~y : y): New patterns.
23311 2021-05-26 Andrew Pinski <apinski@marvell.com>
23313 * match.pd (A?CST1:CST2): Add simplifcations for A?0:+-1, A?+-1:0,
23314 A?POW2:0 and A?0:POW2.
23316 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
23318 * gimple-range-gori.cc (class logical_stmt_cache): Delete
23319 (logical_stmt_cache::logical_stmt_cache ): Delete.
23320 (logical_stmt_cache::~logical_stmt_cache): Delete.
23321 (logical_stmt_cache::cache_entry::dump): Delete.
23322 (logical_stmt_cache::get_range): Delete.
23323 (logical_stmt_cache::cached_name ): Delete.
23324 (logical_stmt_cache::same_cached_name): Delete.
23325 (logical_stmt_cache::cacheable_p): Delete.
23326 (logical_stmt_cache::slot_diagnostics ): Delete.
23327 (logical_stmt_cache::dump): Delete.
23328 (gori_compute_cache::gori_compute_cache): Delete.
23329 (gori_compute_cache::~gori_compute_cache): Delete.
23330 (gori_compute_cache::compute_operand_range): Delete.
23331 (gori_compute_cache::cache_stmt): Delete.
23332 * gimple-range-gori.h (gori_compute::compute_operand_range): Remove
23334 (class gori_compute_cache): Delete.
23336 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
23338 * gimple-range.cc (fold_using_range::range_of_range_op): Use m_gori
23340 (fold_using_range::range_of_address): Adjust.
23341 (fold_using_range::range_of_phi): Adjust.
23342 * gimple-range.h (class fur_source): Adjust.
23343 (fur_source::fur_source): Adjust.
23345 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
23347 * gimple-range-gori.cc (gori_compute::expr_range_at_stmt): Rename
23348 from expr_range_in_bb and adjust.
23349 (gori_compute::compute_name_range_op): Adjust.
23350 (gori_compute::optimize_logical_operands): Adjust.
23351 (gori_compute::compute_logical_operands_in_chain): Adjust.
23352 (gori_compute::compute_operand1_range): Adjust.
23353 (gori_compute::compute_operand2_range): Adjust.
23354 (ori_compute_cache::cache_stmt): Adjust.
23355 * gimple-range-gori.h (gori_compute): Rename prototype.
23357 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
23359 * gimple-range.cc (gimple_ranger::range_of_expr): Non-null should be
23360 checked only after range_of_stmt, not range_on_entry.
23361 (gimple_ranger::range_on_entry): Check for non-null in any
23362 predecessor block, if it is not already non-null.
23363 (gimple_ranger::range_on_exit): DOnt check for non-null after
23364 range on entry call.
23365 (gimple_ranger::dump_bb): New. Split from dump.
23366 (gimple_ranger::dump): Adjust.
23367 * gimple-range.h (class gimple_ranger): Adjust.
23369 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
23371 * gimple-range-cache.cc (struct range_timestamp): Delete.
23372 (class temporal_cache): Adjust.
23373 (temporal_cache::get_timestamp): Delete.
23374 (temporal_cache::set_dependency): Delete.
23375 (temporal_cache::temporal_value): Adjust.
23376 (temporal_cache::current_p): Take dependencies as params.
23377 (temporal_cache::set_timestamp): Adjust.
23378 (temporal_cache::set_always_current): Adjust.
23379 (ranger_cache::get_non_stale_global_range): Adjust.
23380 (ranger_cache::register_dependency): Delete.
23381 * gimple-range-cache.h (class range_cache): Adjust.
23383 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
23385 * gimple-range-gori.cc (range_def_chain::range_def_chain): init
23387 (range_def_chain::~range_def_chain): Dispose of obstack rather than
23388 each individual bitmap.
23389 (range_def_chain::set_import): New.
23390 (range_def_chain::get_imports): New.
23391 (range_def_chain::chain_import_p): New.
23392 (range_def_chain::register_dependency): Rename from build_def_chain
23394 (range_def_chain::def_chain_in_bitmap_p): New.
23395 (range_def_chain::add_def_chain_to_bitmap): New.
23396 (range_def_chain::has_def_chain): Just check first depenedence.
23397 (range_def_chain::get_def_chain): Process imports, use generic
23398 register_dependency routine.
23399 (range_def_chain::dump): New.
23400 (gori_map::gori_map): Allocate import list.
23401 (gori_map::~gori_map): Release imports.
23402 (gori_map::exports): Check for past allocated block size.
23403 (gori_map::imports): New.
23404 (gori_map::def_chain_in_export_p): Delete.
23405 (gori_map::is_import_p): New.
23406 (gori_map::maybe_add_gori): Handle imports.
23407 (gori_map::dump): Adjust output, add imports.
23408 (gori_compute::has_edge_range_p): Remove def_chain_in_export call.
23409 (gori_export_iterator::gori_export_iterator): New.
23410 (gori_export_iterator::next): New.
23411 (gori_export_iterator::get_name): New.
23412 * gimple-range-gori.h (range_def_chain): Add imports and direct
23413 dependecies via struct rdc.
23414 (range_def_chain::depend1): New.
23415 (range_def_chain::depend2): New.
23416 (class gori_map): Adjust.
23417 (FOR_EACH_GORI_IMPORT_NAME): New.
23418 (FOR_EACH_GORI_EXPORT_NAME): New.
23419 (class gori_export_iterator): New.
23421 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
23423 * gimple-range-cache.cc (ranger_cache::ranger_cache): Move initial
23424 export cache filling to here.
23425 * gimple-range-gori.cc (gori_compute::gori_compute) : From Here.
23427 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
23429 * gimple-range-gori.cc (range_def_chain): Move to gimple-range-gori.h.
23430 (gori_map): Move to gimple-range-gori.h.
23431 (gori_compute::gori_compute): Adjust.
23432 (gori_compute::~gori_compute): Delete.
23433 (gori_compute::compute_operand_range_switch): Adjust.
23434 (gori_compute::compute_operand_range): Adjust.
23435 (gori_compute::compute_logical_operands): Adjust.
23436 (gori_compute::has_edge_range_p ): Adjust.
23437 (gori_compute::set_range_invariant): Delete.
23438 (gori_compute::dump): Adjust.
23439 (gori_compute::outgoing_edge_range_p): Adjust.
23440 * gimple-range-gori.h (class range_def_chain): Relocate here.
23441 (class gori_map): Relocate here.
23442 (class gori_compute): Inherit from gori_map, and adjust.
23444 2021-05-25 Aldy Hernandez <aldyh@redhat.com>
23446 * value-range.cc (range_tests_legacy): Use
23447 build_nonstandard_integer_type instead of int and short.
23449 2021-05-25 Eric Botcazou <ebotcazou@adacore.com>
23451 * gimplify.c (gimplify_decl_expr): Clear TREE_READONLY on the DECL
23452 when really creating an initialization statement for it.
23454 2021-05-25 Eric Botcazou <ebotcazou@adacore.com>
23456 * tree-inline.c (setup_one_parameter): Fix thinko in new condition.
23458 2021-05-25 Kito Cheng <kito.cheng@sifive.com>
23460 * config/riscv/riscv.h (ASM_SPEC): Pass -mno-relax.
23462 2021-05-25 Martin Liska <mliska@suse.cz>
23464 PR tree-optimization/92860
23466 * optc-save-gen.awk: Remove exceptions.
23468 2021-05-25 Martin Liska <mliska@suse.cz>
23470 * asan.h (sanitize_coverage_p): New function.
23471 * doc/extend.texi: Document it.
23472 * fold-const.c (fold_range_test): Use sanitize_flags_p
23473 instead of flag_sanitize_coverage.
23474 (fold_truth_andor): Likewise.
23475 * sancov.c: Likewise.
23476 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
23477 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Handle
23478 -fsanitize-coverage when inlining.
23480 2021-05-25 Cooper Qu <cooper.qu@linux.alibaba.com>
23482 * config/csky/csky-modes.def : Fix copyright.
23484 2021-05-25 Cooper Qu <cooper.qu@linux.alibaba.com>
23486 * config/csky/csky-modes.def : Amend copyright.
23487 * config/csky/csky_insn_fpuv2.md : Likewise.
23488 * config/csky/csky_insn_fpuv3.md : Likewise.
23490 2021-05-25 Richard Biener <rguenther@suse.de>
23492 PR middle-end/100727
23493 * calls.c (initialize_argument_information): Explicitely test
23494 for WITH_SIZE_EXPR.
23495 * gimple-expr.c (mark_addressable): Skip outer WITH_SIZE_EXPR.
23497 2021-05-25 Geng Qi <gengqi@linux.alibaba.com>
23499 * config/csky/csky.h (FRAME_POINTER_REGNUM): Use
23500 HARD_FRAME_POINTER_REGNUM and FRAME_POINTER_REGNUM instead of
23501 the signle definition. The signle definition may not work well
23502 at simplify_subreg_regno().
23503 (HARD_FRAME_POINTER_REGNUM): New.
23504 (ELIMINABLE_REGS): Add for HARD_FRAME_POINTER_REGNUM.
23505 * config/csky/csky.c (get_csky_live_regs, csky_can_eliminate,
23506 csky_initial_elimination_offset, csky_expand_prologue,
23507 csky_expand_epilogue): Add for HARD_FRAME_POINTER_REGNUM.
23509 2021-05-25 Geng Qi <gengqi@linux.alibaba.com>
23511 * config/csky/csky.c (csky_option_override):
23512 Init csky_arch_isa_features[] in advance, so TARGET_DSP
23513 and TARGET_DIV can be set well.
23515 2021-05-25 Geng Qi <gengqi@linux.alibaba.com>
23517 * config/csky/constraints.md ("l", "h"): Delete.
23518 * config/csky/csky.h (reg_class, REG_CLASS_NAMES,
23519 REG_CLASS_CONTENTS): Delete LO_REGS and HI_REGS.
23520 * config/csky/csky.c (regno_reg_classm,
23521 csky_secondary_reload, csky_register_move_cost):
23522 Use HILO_REGS instead of LO_REGS and HI_REGS.
23524 2021-05-25 Geng Qi <gengqi@linux.alibaba.com>
23526 * config/csky/constraints.md ("W"): New constriant for mem operand
23527 with base reg, index register.
23528 ("Q"): Renamed and modified "csky_valid_fpuv2_mem_operand" to
23529 "csky_valid_mem_constraint_operand" to deal with both "Q" and "W"
23531 ("Dv"): New constraint for const double value that can be used at
23533 * config/csky/csky-modes.def (HFmode): New mode.
23534 * config/csky/csky-protos.h (csky_valid_fpuv2_mem_operand): Rename
23535 to "csky_valid_mem_constraint_operand" and support new constraint
23537 (csky_get_movedouble_length): New.
23538 (fpuv3_output_move): New.
23539 (fpuv3_const_double): New.
23540 * config/csky/csky.c (csky_option_override): New arch CK860 with fpv3.
23541 (decompose_csky_address): Refine.
23542 (csky_print_operand): New "CONST_DOUBLE" operand.
23543 (csky_output_move): Support fpv3 instructions.
23544 (csky_get_movedouble_length): New.
23545 (fpuv3_output_move): New.
23546 (fpuv3_const_double): New.
23547 (csky_emit_compare): Cover float comparsion.
23548 (csky_emit_compare_float): Refine.
23549 (csky_vaild_fpuv2_mem_operand): Rename to
23550 "csky_valid_mem_constraint_operand" and support new constraint "W".
23551 (ck860_rtx_costs): New.
23552 (csky_rtx_costs): Add the cost calculation of CK860.
23553 (regno_reg_class): New vregs for fpuv3.
23554 (csky_dbx_regno): Likewise.
23555 (csky_cpu_cpp_builtins): New builtin macro for fpuv3.
23556 (csky_conditional_register_usage): Suporrot fpuv3.
23557 (csky_dwarf_register_span): Suporrot fpuv3.
23558 (csky_init_builtins, csky_mangle_type): Support "__fp16" type.
23559 (ck810_legitimate_index_p): Support fp16.
23560 * config/csky/csky.h (TARGET_TLS): ADD CK860.
23561 (CSKY_VREG_P, CSKY_VREG_LO_P, CSKY_VREG_HI_P): Support fpuv3.
23562 (TARGET_SINGLE_FPU): Support fpuv3.
23563 (TARGET_SUPPORT_FPV3): New.
23564 (FIRST_PSEUDO_REGISTER): Change to 202 to hold the new fpuv3 registers.
23565 (FIXED_REGISTERS, CALL_REALLY_USED_REGISTERS, REGISTER_NAMES,
23566 REG_CLASS_CONTENTS): Support fpuv3.
23567 * config/csky/csky.md (movsf): Move to cksy_insn_fpu.md and refine.
23568 (csky_movsf_fpv2): Likewise.
23569 (ck801_movsf): Likewise.
23570 (csky_movsf): Likewise.
23572 (csky_movdf_fpv2): Likewise.
23573 (ck801_movdf): Likewise.
23574 (csky_movdf): Likewise.
23575 (movsicc): Refine. Use "comparison_operatior" instead of
23576 "ordered_comparison_operatior".
23577 (addsicc): Likewise.
23578 (CSKY_FIRST_VFP3_REGNUM, CSKY_LAST_VFP3_REGNUM): New constant.
23579 (call_value_internal_vh): New.
23580 * config/csky/csky_cores.def (CK860): New arch and cpu.
23585 * config/csky/csky_insn_fpu.md: Refactor. Separate all float patterns
23586 into emit-patterns and match-patterns, remain the emit-patterns here,
23587 and move the match-patterns to csky_insn_fpuv2.md or
23588 csky_insn_fpuv3.md.
23589 * config/csky/csky_insn_fpuv2.md: New file for fpuv2 instructions.
23590 * config/csky/csky_insn_fpuv3.md: New file and new patterns for fpuv3
23592 * config/csky/csky_isa.def (fcr): New.
23597 (CK860): New definition for ck860.
23598 * config/csky/csky_tables.opt (ck860): New processors ck860,
23599 ck860f. And new arch ck860.
23604 * config/csky/predicates.md (csky_float_comparsion_operator): Delete
23605 "geu", "gtu", "leu", "ltu", which will never appear at float comparison.
23606 * config/csky/t-csky-elf: Support 860.
23607 * config/csky/t-csky-linux: Likewise.
23608 * doc/md.texi: Add "Q" and "W" constraints for C-SKY.
23610 2021-05-24 Aaron Sawdey <acsawdey@linux.ibm.com>
23612 * config/rs6000/genfusion.pl (gen_logical_addsubf): Refactor to
23613 add generation of logical-add and add-logical fusion pairs.
23614 * config/rs6000/rs6000-cpus.def: Add new fusion to ISA 3.1 mask
23616 * config/rs6000/rs6000.c (rs6000_option_override_internal): Turn on
23617 logical-add and add-logical fusion by default.
23618 * config/rs6000/rs6000.opt: Add -mpower10-fusion-logical-add and
23619 -mpower10-fusion-add-logical options.
23620 * config/rs6000/fusion.md: Regenerate file.
23622 2021-05-24 Aldy Hernandez <aldyh@redhat.com>
23624 * value-range.cc (irange::legacy_equal_p): Check type when
23625 comparing VR_VARYING types.
23626 (range_tests_legacy): Test comparing VARYING ranges of different
23629 2021-05-24 Wilco Dijkstra <wdijkstr@arm.com>
23631 * config/aarch64/aarch64.c (neoversen1_tunings):
23632 Enable AARCH64_EXTRA_TUNE_CHEAP_SHIFT_EXTEND.
23634 2021-05-24 Wilco Dijkstra <wdijkstr@arm.com>
23636 * config/aarch64/aarch64.c (aarch64_classify_symbol): Use GOT for
23637 extern weak symbols. Limit symbol offsets for non-GOT symbols with
23640 2021-05-24 Christophe Lyon <christophe.lyon@linaro.org>
23642 * config/arm/neon.md (vec_load_lanesxi<mode>)
23643 (vec_store_lanexoi<mode>): Move ...
23644 * config/arm/vec-common.md: here.
23646 2021-05-24 Christophe Lyon <christophe.lyon@linaro.org>
23648 * config/arm/neon.md (vec_load_lanesoi<mode>)
23649 (vec_store_lanesoi<mode>): Move ...
23650 * config/arm/vec-common.md: here.
23652 2021-05-24 liuhongt <hongtao.liu@intel.com>
23655 * config/i386/i386.c (ix86_gimple_fold_builtin): Replacing
23656 stmt with GIMPLE_NOP when lhs doesn't exist.
23658 2021-05-23 Uroš Bizjak <ubizjak@gmail.com>
23661 * config/i386/mmx.md (*push<VI_32:mode>2_rex64):
23662 New instruction pattern.
23663 (*push<VI_32:mode>2): Ditto.
23664 (push splitter for SSE registers): New splitter.
23666 2021-05-23 Andrew Pinski <apinski@marvell.com>
23668 * match.pd ((A & C) != 0 ? D : 0): Limit to non pointer types.
23670 2021-05-22 Aaron Sawdey <acsawdey@linux.ibm.com>
23672 * config/rs6000/genfusion.pl (gen_addadd): Fix incorrect attr types.
23673 * config/rs6000/fusion.md: Regenerate file.
23675 2021-05-21 Aaron Sawdey <acsawdey@linux.ibm.com>
23677 * config/rs6000/genfusion.pl (gen_addadd): New function.
23678 * config/rs6000/fusion.md: Regenerate file.
23679 * config/rs6000/rs6000-cpus.def: Add
23680 OPTION_MASK_P10_FUSION_2ADD to masks.
23681 * config/rs6000/rs6000.c (rs6000_option_override_internal):
23682 Handle default value of OPTION_MASK_P10_FUSION_2ADD.
23683 * config/rs6000/rs6000.opt: Add -mpower10-fusion-2add.
23685 2021-05-21 Jakub Jelinek <jakub@redhat.com>
23687 PR middle-end/99928
23688 * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT_TARGET): Define.
23689 * gimplify.c (enum gimplify_omp_var_data): Fix up
23690 GOVD_MAP_HAS_ATTACHMENTS value, add GOVD_FIRSTPRIVATE_IMPLICIT.
23691 (omp_lastprivate_for_combined_outer_constructs): If combined target
23692 has GOVD_FIRSTPRIVATE_IMPLICIT set for the decl, change it to
23693 GOVD_MAP | GOVD_SEEN.
23694 (gimplify_scan_omp_clauses): Set GOVD_FIRSTPRIVATE_IMPLICIT for
23695 firstprivate clauses with OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT.
23696 (gimplify_adjust_omp_clauses): For firstprivate clauses with
23697 OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT either clear that bit and
23698 OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT_TARGET too, or remove it and
23699 let it be replaced by implicit map clause.
23701 2021-05-21 Jakub Jelinek <jakub@redhat.com>
23703 PR middle-end/99928
23704 * gimplify.c (omp_lastprivate_for_combined_outer_constructs): New
23706 (gimplify_scan_omp_clauses) <case OMP_CLAUSE_LASTPRIVATE>: Use it.
23707 (gimplify_omp_for): Likewise.
23709 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
23711 PR middle-end/90115
23712 * omp-low.c (oacc_privatization_candidate_p): Reject 'static',
23713 'external' in blocks.
23715 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
23717 PR middle-end/90115
23718 * flag-types.h (enum openacc_privatization): New.
23719 * params.opt (-param=openacc-privatization): New.
23720 * doc/invoke.texi (openacc-privatization): Document it.
23721 * omp-general.h (get_openacc_privatization_dump_flags): New
23723 * omp-low.c (oacc_privatization_candidate_p): Add diagnostics.
23724 * omp-offload.c (execute_oacc_device_lower)
23725 <IFN_UNIQUE_OACC_PRIVATE>: Re-work diagnostics.
23726 * target.def (goacc.adjust_private_decl): Add 'location_t'
23728 * doc/tm.texi: Regenerate.
23729 * config/gcn/gcn-protos.h (gcn_goacc_adjust_private_decl): Adjust.
23730 * config/gcn/gcn-tree.c (gcn_goacc_adjust_private_decl): Likewise.
23731 * config/nvptx/nvptx.c (nvptx_goacc_adjust_private_decl):
23732 Likewise. Preserve it for...
23733 (nvptx_goacc_expand_var_decl): ... use here.
23735 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
23737 * doc/sourcebuild.texi (Other attributes): Document '__OPTIMIZE__'
23740 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
23742 PR middle-end/90115
23743 * omp-low.c (oacc_privatization_candidate_p): New function.
23744 (oacc_privatization_scan_clause_chain)
23745 (oacc_privatization_scan_decl_chain): Use it. Also
23746 'gcc_checking_assert' that we're not seeing duplicates.
23748 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
23750 PR middle-end/90115
23751 * omp-offload.c (execute_oacc_device_lower): Skip processing if no
23754 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
23756 PR middle-end/90115
23757 * omp-offload.c (execute_oacc_device_lower): Explain.
23759 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
23761 PR middle-end/90115
23762 * omp-offload.c (execute_oacc_device_lower)
23763 <IFN_UNIQUE_OACC_PRIVATE>: Diagnose and handle for 'level == -1'
23765 * internal-fn.c (expand_UNIQUE): Don't expect
23766 'IFN_UNIQUE_OACC_PRIVATE'.
23768 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
23770 PR middle-end/90115
23771 * omp-low.c (lower_omp_for): Don't evaluate OpenMP 'for' clauses.
23773 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
23775 PR middle-end/90115
23776 * config/nvptx/nvptx.c (nvptx_goacc_adjust_private_decl)
23777 (nvptx_goacc_expand_var_decl): Tighten.
23779 2021-05-21 Julian Brown <julian@codesourcery.com>
23780 Chung-Lin Tang <cltang@codesourcery.com>
23781 Thomas Schwinge <thomas@codesourcery.com>
23783 PR middle-end/90115
23784 * doc/tm.texi.in (TARGET_GOACC_EXPAND_VAR_DECL)
23785 (TARGET_GOACC_ADJUST_PRIVATE_DECL): Add documentation hooks.
23786 * doc/tm.texi: Regenerate.
23787 * expr.c (expand_expr_real_1): Expand decls using the
23788 expand_var_decl OpenACC hook if defined.
23789 * internal-fn.c (expand_UNIQUE): Handle IFN_UNIQUE_OACC_PRIVATE.
23790 * internal-fn.h (IFN_UNIQUE_CODES): Add OACC_PRIVATE.
23791 * omp-low.c (omp_context): Add oacc_privatization_candidates
23793 (lower_oacc_reductions): Add PRIVATE_MARKER parameter. Insert
23795 (lower_oacc_head_tail): Add PRIVATE_MARKER parameter. Modify
23796 private marker's gimple call arguments, and pass it to
23797 lower_oacc_reductions.
23798 (oacc_privatization_scan_clause_chain)
23799 (oacc_privatization_scan_decl_chain, lower_oacc_private_marker):
23801 (lower_omp_for, lower_omp_target, lower_omp_1): Use these.
23802 * omp-offload.c (convert.h): Include.
23803 (oacc_loop_xform_head_tail): Treat private-variable markers like
23804 fork/join when transforming head/tail sequences.
23805 (struct var_decl_rewrite_info): Add struct.
23806 (oacc_rewrite_var_decl, is_sync_builtin_call): New functions.
23807 (execute_oacc_device_lower): Support rewriting gang-private
23808 variables using target hook, and fix up addr_expr and var_decl
23810 * target.def (adjust_private_decl, expand_var_decl): New hooks.
23811 * config/gcn/gcn-protos.h (gcn_goacc_adjust_gangprivate_decl):
23813 (gcn_goacc_adjust_private_decl): ...this.
23814 * config/gcn/gcn-tree.c (gcn_goacc_adjust_gangprivate_decl):
23816 (gcn_goacc_adjust_private_decl): ...this. Add LEVEL parameter.
23817 * config/gcn/gcn.c (TARGET_GOACC_ADJUST_GANGPRIVATE_DECL): Rename
23818 definition using gcn_goacc_adjust_gangprivate_decl...
23819 (TARGET_GOACC_ADJUST_PRIVATE_DECL): ...to this, using
23820 gcn_goacc_adjust_private_decl.
23821 * config/nvptx/nvptx.c (tree-pretty-print.h): Include.
23822 (gang_private_shared_size): New global variable.
23823 (gang_private_shared_align): Likewise.
23824 (gang_private_shared_sym): Likewise.
23825 (gang_private_shared_hmap): Likewise.
23826 (nvptx_option_override): Initialize these.
23827 (nvptx_file_end): Output gang_private_shared_sym.
23828 (nvptx_goacc_adjust_private_decl, nvptx_goacc_expand_var_decl):
23830 (nvptx_set_current_function): Clear gang_private_shared_hmap.
23831 (TARGET_GOACC_ADJUST_PRIVATE_DECL): Define hook.
23832 (TARGET_GOACC_EXPAND_VAR_DECL): Likewise.
23834 2021-05-21 H.J. Lu <hjl.tools@gmail.com>
23836 * config/i386/i386-modes.def (MAX_BITSIZE_MODE_ANY_INT): Removed.
23838 2021-05-21 Richard Biener <rguenther@suse.de>
23839 H.J. Lu <hjl.tools@gmail.com>
23841 PR middle-end/90773
23842 * expr.c (expand_constructor): Elide expand_constructor if
23843 move by pieces is preferred.
23845 2021-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23847 * config/aarch64/aarch64-builtins.c (aarch64_call_properties):
23848 Take a flag and mode value as arguments.
23849 (aarch64_modifies_global_state_p): Likewise.
23850 (aarch64_reads_global_state_p): Likewise.
23851 (aarch64_could_trap_p): Likewise.
23852 (aarch64_get_attributes): Likewise.
23853 (aarch64_init_simd_builtins): Adjust callsite of above.
23854 (aarch64_init_fcmla_laneq_builtins): Use aarch64_get_attributes to get
23855 function attributes to apply to builtins.
23856 (aarch64_init_crc32_builtins): Likewise.
23857 (aarch64_init_builtin_rsqrt): Likewise.
23859 2021-05-21 Aaron Sawdey <acsawdey@linux.ibm.com>
23861 * config/rs6000/rs6000.md (define_attr "type"): Add types for fusion.
23862 * config/rs6000/genfusion.pl (gen_ld_cmpi_p10): Use new fusion types.
23863 (gen_2logical): Use new fusion types.
23864 * config/rs6000/fusion.md: Regenerate.
23866 2021-05-21 Uroš Bizjak <ubizjak@gmail.com>
23869 * config/i386/i386-expand.c (ix86_expand_sse_movcc):
23870 Handle V4QI and V2HI modes.
23871 (ix86_expand_sse_movcc): Ditto.
23872 * config/i386/mmx.md (*<sat_plusminus:insn><VI_32:mode>3):
23873 New instruction pattern.
23874 (*eq<VI_32:mode>3): Ditto.
23875 (*gt<VI_32:mode>3): Ditto.
23876 (*xop_pcmov_<VI_32:mode>): Ditto.
23877 (mmx_pblendvb32): Ditto.
23878 (mmx_pblendvb64): Rename from mmx_pblendvb.
23879 (vec_cmp<VI_32:mode><VI_32:mode>): New expander.
23880 (vec_cmpu<VI_32:mode><VI_32:mode>): Ditto.
23881 (vcond<VI_32:mode><VI_32:mode>): Ditto.
23882 (vcondu<VI_32:mode><VI_32:mode>): Ditto.
23883 (vcond_mask_<VI_32:mode><VI_32:mode>): Ditto.
23885 2021-05-21 Jakub Jelinek <jakub@redhat.com>
23887 PR tree-optimization/94589
23888 * tree-ssa-phiopt.c (spaceship_replacement): For integral rhs1 and
23889 rhs2, treat x <= 4 equivalently to x < 5 etc. In cmp1 and cmp2 (if
23890 not the same as cmp3) treat <= the same as < and >= the same as >.
23891 Don't require that cond2_phi_edge is true edge, instead take
23892 false/true edges into account based on cmp1/cmp2 comparison kinds.
23894 2021-05-21 Uroš Bizjak <ubizjak@gmail.com>
23897 * config/i386/mmx.md (SMAXMIN_MMXMODEI): New mode iterator.
23898 (<smaxmin:code><SMAXMIN_MMXMODEI:mode>3): Macroize expander
23899 from <smaxmin:code>v4hi3> and <smaxmin:code><MMXMODE14:mode>3
23900 using SMAXMIN_MMXMODEI mode iterator.
23901 (*<smaxmin:code>v4qi3): New insn pattern.
23902 (*<smaxmin:code>v2hi3): Ditto.
23903 (SMAXMIN_VI_32): New mode iterator.
23904 (<smaxmin:code><SMAXMIN_VI_32>mode3): New expander.
23905 (UMAXMIN_MMXMODEI): New mode iterator.
23906 (<umaxmin:code><UMAXMIN_MMXMODEI:mode>3): Macroize expander
23907 from <umaxmin:code>v8qi3> and <umaxmin:code><MMXMODE24:mode>3
23908 using UMAXMIN_MMXMODEI mode iterator.
23909 (*<umaxmin:code>v4qi3): New insn pattern.
23910 (*<umaxmin:code>v2hi3): Ditto.
23911 (UMAXMIN_VI_32): New mode iterator.
23912 (<umaxmin:code><UMAXMIN_VI_32>mode3): New expander.
23913 (abs<VI_32:mode>2): New insn pattern.
23914 (ssse3_abs<MMXMODEI:mode>2, abs<MMXMODEI:mode>2): Move from ...
23915 * config/i386/sse.md: ... here.
23917 2021-05-20 Clement Chigot <clement.chigot@atos.net>
23918 David Edelsohn <dje.gcc@gmail.com>
23920 * collect2.c (scan_prog_file): Issue non-fatal warning for
23923 2021-05-20 Jonathan Wakely <jwakely@redhat.com>
23925 * doc/invoke.texi (-Wno-c++11-extensions)
23926 (-Wno-c++14-extensions, -Wno-c++17-extensions)
23927 (-Wno-c++20-extensions, -Wno-c++23-extensions): Document
23930 2021-05-20 Indu Bhagat <indu.bhagat@oracle.com>
23932 * config/c6x/c6x.c (c6x_output_file_unwind): Use dwarf_debuginfo_p.
23933 * config/darwin.c (darwin_override_options): Likewise.
23934 * config/i386/cygming.h (DBX_REGISTER_NUMBER): Likewise.
23935 * config/i386/darwin.h (DBX_REGISTER_NUMBER): Likewise.
23936 (DWARF2_FRAME_REG_OUT): Likewise.
23937 * config/mips/mips.c (mips_output_filename): Likewise.
23938 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name):
23940 (rs6000_dbx_register_number): Likewise.
23941 * dbxout.c: Include flags.h.
23942 * dwarf2cfi.c (cfi_label_required_p): Likewise.
23943 (dwarf2out_do_frame): Likewise.
23944 * except.c: Include flags.h.
23945 * final.c (dwarf2_debug_info_emitted_p): Likewise.
23946 (final_scan_insn_1): Likewise.
23947 * flags.h (dwarf_debuginfo_p): New function declaration.
23948 * opts.c (dwarf_debuginfo_p): New function definition.
23949 * targhooks.c (default_debug_unwind_info): Use dwarf_debuginfo_p.
23950 * toplev.c (process_options): Likewise.
23952 2021-05-20 Indu Bhagat <indu.bhagat@oracle.com>
23954 * common.opt: Change type to support bitmasks.
23955 * flag-types.h (enum debug_info_type): Rename enumerator constants.
23956 (NO_DEBUG): New bitmask.
23957 (DBX_DEBUG): Likewise.
23958 (DWARF2_DEBUG): Likewise.
23959 (XCOFF_DEBUG): Likewise.
23960 (VMS_DEBUG): Likewise.
23961 (VMS_AND_DWARF2_DEBUG): Likewise.
23962 * flags.h (debug_set_to_format): New function declaration.
23963 (debug_set_count): Likewise.
23964 (debug_set_names): Likewise.
23965 * opts.c (debug_type_masks): Array of bitmasks for debug formats.
23966 (debug_set_to_format): New function definition.
23967 (debug_set_count): Likewise.
23968 (debug_set_names): Likewise.
23969 (set_debug_level): Update access to debug_type_names.
23970 * toplev.c: Likewise.
23972 2021-05-20 Martin Sebor <msebor@redhat.com>
23974 PR middle-end/100684
23975 * tree-ssa-ccp.c (pass_post_ipa_warn::execute): Handle C++ lambda.
23977 2021-05-20 Uroš Bizjak <ubizjak@gmail.com>
23980 * config/i386/i386.md (isa): Remove x64_bmi.
23981 (enabled): Remove x64_bmi.
23982 * config/i386/mmx.md (mmx_andnot<MMXMODEI:mode>3):
23983 Remove general register alternative.
23984 (*andnot<VI_32:mode>3): Ditto.
23985 (*mmx_<any_logic:code><MMXMODEI:mode>3): Ditto.
23986 (*<any_logic:code><VI_32:mode>3): Ditto.
23988 2021-05-20 Kewen Lin <linkw@linux.ibm.com>
23990 * config/arm/arm.c: Include head files tree-vectorizer.h and
23993 2021-05-20 Uroš Bizjak <ubizjak@gmail.com>
23996 * config/i386/mmx.md (Yv_Yw): Revert adding V4QI and V2HI modes.
23997 (*<plusminus:insn><VI_32:mode>3): Use Yw instad of <Yv_Yw> constrint.
23998 (<s>mulv4hi3_highpart): New expander.
23999 (*<s>mulv2hi3_highpart): New insn pattern.
24000 (<s>mulv2hi3_higpart): New expander.
24001 (*<any_shift:insn>v2hi3): New insn pattern.
24002 (<any_shift:insn>v2hi3): New expander.
24003 * config/i386/sse.md (smulhrsv2hi3): New expander.
24004 (*smulhrsv2hi3): New insn pattern.
24006 2021-05-20 Kewen Lin <linkw@linux.ibm.com>
24008 * doc/invoke.texi (vect-inner-loop-cost-factor): Document new
24010 * params.opt (vect-inner-loop-cost-factor): New.
24011 * targhooks.c (default_add_stmt_cost): Replace hardcoded factor
24012 50 with LOOP_VINFO_INNER_LOOP_COST_FACTOR, include head file
24013 tree-vectorizer.h and its required ones.
24014 * config/aarch64/aarch64.c (aarch64_add_stmt_cost): Replace
24015 hardcoded factor 50 with LOOP_VINFO_INNER_LOOP_COST_FACTOR.
24016 * config/arm/arm.c (arm_add_stmt_cost): Likewise.
24017 * config/i386/i386.c (ix86_add_stmt_cost): Likewise.
24018 * config/rs6000/rs6000.c (rs6000_add_stmt_cost): Likewise.
24019 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
24021 (_loop_vec_info::_loop_vec_info): Init inner_loop_cost_factor.
24022 * tree-vectorizer.h (_loop_vec_info): Add inner_loop_cost_factor.
24023 (LOOP_VINFO_INNER_LOOP_COST_FACTOR): New macro.
24025 2021-05-20 Christophe Lyon <christophe.lyon@linaro.org>
24026 Torbjörn Svensson <torbjorn.svensson@st.com>
24029 * doc/cpp.texi (Common Predefined Macros): Document __FILE_NAME__.
24031 2021-05-20 Jakub Jelinek <jakub@redhat.com>
24033 PR middle-end/99928
24034 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_LINEAR>: For
24035 explicit linear clause when combined with target, make it map(tofrom:)
24036 instead of no clause or firstprivate.
24038 2021-05-20 Jakub Jelinek <jakub@redhat.com>
24040 PR tree-optimization/94589
24041 * match.pd ((X & Y) == X -> (X & ~Y) == 0): Simplify even in presence
24042 of integral conversions.
24044 2021-05-19 Andrew MacLeod <amacleod@redhat.com>
24046 * gimple-range.cc (fur_source::get_operand): New.
24047 (gimple_range_fold): Delete.
24048 (fold_using_range::fold_stmt): Move from gimple_ranger::calc_stmt.
24049 (fold_using_range::range_of_range_op): Move from gimple_ranger.
24050 (fold_using_range::range_of_address): Ditto.
24051 (fold_using_range::range_of_phi): Ditto.
24052 (fold_using_range::range_of_call): Ditto.
24053 (fold_using_range::range_of_builtin_ubsan_call): Move from
24054 range_of_builtin_ubsan_call.
24055 (fold_using_range::range_of_builtin_call): Move from
24056 range_of_builtin_call.
24057 (gimple_ranger::range_of_builtin_call): Delete.
24058 (fold_using_range::range_of_cond_expr): Move from gimple_ranger.
24059 (gimple_ranger::fold_range_internal): New.
24060 (gimple_ranger::range_of_stmt): Use new fold_using_range API.
24061 (fold_using_range::range_of_ssa_name_with_loop_info): Move from
24062 gimple_ranger. Improve ranges of SSA_NAMES when possible.
24063 * gimple-range.h (gimple_ranger): Remove various range_of routines.
24064 (class fur_source): New.
24065 (class fold_using_range): New.
24066 (fur_source::fur_source): New.
24068 * vr-values.c (vr_values::extract_range_basic): Use fold_using_range
24069 instead of range_of_builtin_call.
24071 2021-05-19 Jonathan Wakely <jwakely@redhat.com>
24073 * doc/cpp.texi (Common Predefined Macros): Update documentation
24074 for the __GXX_EXPERIMENTAL_CXX0X__ macro.
24076 2021-05-19 Alex Coplan <alex.coplan@arm.com>
24079 * config/arm/arm.md (nonsecure_call_internal): Always ensure
24080 callee's address is in a register.
24082 2021-05-19 Geng Qi <gengqi@linux.alibaba.com>
24084 * common/config/riscv/riscv-common.c
24085 (riscv_subset_list::parsing_subset_version): Properly parse the letter
24087 (riscv_subset_list::parse_std_ext,
24088 riscv_subset_list::parse_multiletter_ext): To handle errors generated
24089 in riscv_subset_list::parsing_subset_version.
24091 2021-05-19 Jonathan Wright <jonathan.wright@arm.com>
24093 * config/aarch64/aarch64-simd.md: Use "neon_move_narrow_q"
24094 type attribute in patterns generating XTN(2).
24096 2021-05-19 Jonathan Wright <jonathan.wright@arm.com>
24098 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_pack_trunc_<mode>):
24099 Remove as duplicate of...
24100 (aarch64_xtn<mode>): This.
24101 (aarch64_xtn2<mode>_le): Move position in file.
24102 (aarch64_xtn2<mode>_be): Move position in file.
24103 (aarch64_xtn2<mode>): Move position in file.
24104 (vec_pack_trunc_<mode>): Define as an expander.
24106 2021-05-19 Jonathan Wright <jonathan.wright@arm.com>
24108 * config/aarch64/aarch64-simd-builtins.def: Split builtin
24109 generation for aarch64_<sur>q<r>shr<u>n_n<mode> pattern into
24110 separate scalar and vector generators.
24111 * config/aarch64/aarch64-simd.md
24112 (aarch64_<sur>q<r>shr<u>n_n<mode>): Define as an expander and
24114 (aarch64_<sur>q<r>shr<u>n_n<mode>_insn_le): This and...
24115 (aarch64_<sur>q<r>shr<u>n_n<mode>_insn_be): This.
24116 * config/aarch64/iterators.md: Define SD_HSDI iterator.
24118 2021-05-19 Jonathn Wright <jonathan.wright@arm.com>
24120 * config/aarch64/aarch64-simd.md: Use UNSPEC_SQXTUN instead
24122 * config/aarch64/iterators.md: Remove UNSPEC_SQXTUN2.
24124 2021-05-19 Jonathan Wright <jonathan.wright@arm.com>
24126 * config/aarch64/aarch64-simd.md (aarch64_<sur>q<r>shr<u>n2_n<mode>):
24127 Implement as an expand emitting a big/little endian
24128 instruction pattern.
24129 (aarch64_<sur>q<r>shr<u>n2_n<mode>_insn_le): Define.
24130 (aarch64_<sur>q<r>shr<u>n2_n<mode>_insn_be): Define.
24132 2021-05-19 Jonathan Wright <jonathan.wright@arm.com>
24134 * config/aarch64/aarch64-simd.md (aarch64_<sur><addsub>hn2<mode>):
24135 Implement as an expand emitting a big/little endian
24136 instruction pattern.
24137 (aarch64_<sur><addsub>hn2<mode>_insn_le): Define.
24138 (aarch64_<sur><addsub>hn2<mode>_insn_be): Define.
24139 * config/aarch64/iterators.md: Remove UNSPEC_[R]ADDHN2 and
24140 UNSPEC_[R]SUBHN2 unspecs and ADDSUBHN2 iterator.
24142 2021-05-19 Richard Biener <rguenther@suse.de>
24144 PR middle-end/100672
24145 * fold-const.c (fold_negate_expr_1): Use element_precision.
24146 (negate_expr_p): Likewise.
24148 2021-05-19 Andre Vieira <andre.simoesdiasvieira@arm.com>
24150 * config/aarch64/iterators.md (SVE_PRED_LOAD): New iterator.
24151 (pred_load): New int attribute.
24152 * config/aarch64/aarch64-sve.md
24153 (aarch64_load_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>): Use
24154 SVE_PRED_LOAD enum iterator and corresponding pred_load attribute.
24155 * config/aarch64/aarch64-sve-builtins-base.cc (expand): Update call to
24156 code_for_aarch64_load.
24158 2021-05-19 Richard Biener <rguenther@suse.de>
24160 * cfgexpand.c (discover_nonconstant_array_refs_r): Make
24161 sure TARGET_MEM_REF bases are expanded as memory.
24162 * tree-ssa-operands.c (operands_scanner::get_tmr_operands):
24163 Do not mark TARGET_MEM_REF bases addressable.
24164 * tree-ssa.c (non_rewritable_mem_ref_base): Handle
24165 TARGET_MEM_REF bases as never rewritable.
24166 * gimple-walk.c (walk_stmt_load_store_addr_ops): Do not
24167 walk TARGET_MEM_REF bases as address-takens.
24168 * tree-ssa-dce.c (ref_may_be_aliased): Handle TARGET_MEM_REF.
24170 2021-05-19 Richard Biener <rguenther@suse.de>
24172 * builtins.c (get_object_alignment_1): Strip outer
24174 * tree-dfa.c (get_ref_base_and_extent): Handle outer
24175 WITH_SIZE_EXPR for size processing and process the
24177 * tree-ssa-alias.c (ao_ref_base_alias_set): Strip
24178 outer WITH_SIZE_EXPR.
24179 (ao_ref_base_alias_ptr_type): Likewise.
24180 (refs_may_alias_p_2): Allow WITH_SIZE_EXPR in ref->ref
24181 and handle that accordingly, stripping it for the
24182 core alias workers.
24183 * tree.c (get_base_address): Handle WITH_SIZE_EXPR by
24184 looking through it instead of returning NULL.
24186 2021-05-19 Jakub Jelinek <jakub@redhat.com>
24188 PR middle-end/100576
24189 * builtins.c (check_read_access): Convert bound to size_type_node if
24192 2021-05-19 Richard Biener <rguenther@suse.de>
24194 * tree-cfg.c (verify_types_in_gimple_min_lval): Inline...
24195 (verify_types_in_gimple_reference): ... here. Sanitize.
24196 (verify_gimple_call): Verify references in LHS and arguments.
24197 (verify_gimple_assign_single): Reject WITH_SIZE_EXPR.
24199 2021-05-19 Uroš Bizjak <ubizjak@gmail.com>
24201 * config/i386/i386.h (VALID_INT_MODE_P):
24202 Add V8QI, V4HI and V2SI modes for TARGET_64BIT.
24203 * config/i386/i386.md (isa): Add x64_bmi.
24204 (enabled): Handle x64_bmi.
24205 * config/i386/mmx.md (mmx_andnot<MMXMODEI:mode>3):
24206 Add alternative using 64bit general registers.
24207 (*mmx_<any_logic:code><MMXMODEI:mode>3): Ditto.
24209 2021-05-19 Jakub Jelinek <jakub@redhat.com>
24211 PR middle-end/99928
24212 * tree.h (OMP_MASTER_COMBINED): Define.
24213 * gimplify.c (gimplify_scan_omp_clauses): Rewrite lastprivate
24214 handling for outer combined/composite constructs to a loop.
24215 Handle lastprivate on combined target.
24216 (gimplify_expr): Formatting fix.
24218 2021-05-19 Xionghu Luo <luoxhu@linux.ibm.com>
24220 * passes.def: Add sink_code pass before store_merging.
24221 * tree-ssa-sink.c (pass_sink_code:clone): New.
24223 2021-05-18 Bill Schmidt <wschmidt@linux.ibm.com>
24225 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Remove call to
24226 rs6000_special_adjust_field_align_p.
24227 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
24228 * config/rs6000/rs6000-call.c (rs6000_function_arg_boundary):
24229 Remove ABI warning.
24230 (rs6000_function_arg): Likewise.
24231 * config/rs6000/rs6000-protos.h
24232 (rs6000_special_adjust_field_align_p): Remove prototype.
24233 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
24235 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Remove call to
24236 rs6000_special_adjust_field_align_p.
24238 2021-05-18 Uroš Bizjak <ubizjak@gmail.com>
24241 * config/i386/i386.h (VALID_SSE2_REG_MODE):
24242 Add V4QI and V2HI modes.
24243 (VALID_INT_MODE_P): Ditto.
24244 * config/i386/mmx.md (VI_32): New mode iterator.
24245 (mmxvecsize): Handle V4QI and V2HI.
24247 (mov<VI_32:mode>): New expander.
24248 (*mov<mode>_internal): New insn pattern.
24249 (movmisalign<VI_32:mode>): New expander.
24250 (neg<VI_32:mode>): New expander.
24251 (<plusminus:insn><VI_32:mode>3): New expander.
24252 (*<plusminus:insn><VI_32:mode>3): New insn pattern.
24253 (mulv2hi3): New expander.
24254 (*mulv2hi3): New insn pattern.
24255 (one_cmpl<VI_32:mode>2): New expander.
24256 (*andnot<VI_32:mode>3): New insn pattern.
24257 (<any_logic:code><VI_32:mode>3): New expander.
24258 (*<any_logic:code><VI_32:mode>3): New insn pattern.
24260 2021-05-18 Uroš Bizjak <ubizjak@gmail.com>
24262 * config/i386/sse.md (<any_extend:insn>v4qiv4di2):
24263 Fix a mode mismatch with operand 1.
24265 2021-05-18 Uroš Bizjak <ubizjak@gmail.com>
24268 * config/i386/i386-expand.c (split_double_mode): Return
24269 temporary register when simplify_gen_subreg fails with
24270 the high half od the paradoxical subreg.
24272 2021-05-18 Richard Biener <rguenther@suse.de>
24274 * cfgexpand.c (expand_one_var): Pass in forced_stack_var
24275 and honor it when expanding.
24276 (expand_used_vars_for_block): Pass through forced_stack_var.
24277 (expand_used_vars): Likewise.
24278 (discover_nonconstant_array_refs_r): Set bits in
24279 forced_stack_vars instead of marking vars TREE_ADDRESSABLE.
24280 (avoid_type_punning_on_regs): Likewise.
24281 (discover_nonconstant_array_refs): Likewise.
24282 (pass_expand::execute): Create and pass down forced_stack_var
24283 bitmap. For parameters and returns temporarily set
24284 TREE_ADDRESSABLE when expand_function_start.
24286 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
24288 * doc/sourcebuild.texi: Document 'dg-note'.
24290 2021-05-18 Tobias Burnus <tobias@codesourcery.com>
24293 * configure: Regenerate.
24294 * configure.ac (BUILD_CFLAG, BUILD_CXXFLAGS): Add $(CFLAGS-$@).
24296 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
24298 * gimple.h (is_gimple_omp_oacc): Tighten.
24299 * omp-low.c (check_omp_nesting_restrictions): Adjust.
24301 2021-05-18 Richard Biener <rguenther@suse.de>
24303 * tree-ssa-operands.c (mark_address_taken): Simplify.
24305 2021-05-18 Martin Liska <mliska@suse.cz>
24307 * config/gcn/mkoffload.c (STR): Redefine.
24308 * config/i386/intelmic-mkoffload.c (STR): Likewise.
24309 * config/nvptx/mkoffload.c (STR): Likewise.
24311 2021-05-18 Martin Liska <mliska@suse.cz>
24313 * common/config/aarch64/aarch64-common.c (aarch64_parse_extension):
24314 Use startswith function instead of strncmp.
24315 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
24316 * common/config/riscv/riscv-common.c (riscv_subset_list::parse): Likewise.
24317 * config/aarch64/aarch64-sve-builtins-shapes.cc (parse_type): Likewise.
24318 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Likewise.
24319 * config/alpha/alpha.c (alpha_elf_section_type_flags): Likewise.
24320 * config/arm/aarch-common.c (arm_md_asm_adjust): Likewise.
24321 * config/arm/arm.c (arm_file_start): Likewise.
24322 (arm_valid_target_attribute_rec): Likewise.
24323 (thumb1_md_asm_adjust): Likewise.
24324 * config/arm/driver-arm.c (host_detect_local_cpu): Likewise.
24325 * config/avr/avr.c (STR_PREFIX_P): Likewise.
24326 (avr_set_current_function): Likewise.
24327 (avr_handle_addr_attribute): Likewise.
24328 (avr_asm_output_aligned_decl_common): Likewise.
24329 (avr_asm_named_section): Likewise.
24330 (avr_section_type_flags): Likewise.
24331 (avr_asm_select_section): Likewise.
24332 * config/c6x/c6x.c (c6x_in_small_data_p): Likewise.
24333 (c6x_section_type_flags): Likewise.
24334 * config/darwin-c.c (darwin_cfstring_ref_p): Likewise.
24335 (darwin_objc_declare_unresolved_class_reference): Likewise.
24336 (darwin_objc_declare_class_definition): Likewise.
24337 * config/darwin.c (indirect_data): Likewise.
24338 (darwin_encode_section_info): Likewise.
24339 (darwin_objc2_section): Likewise.
24340 (darwin_objc1_section): Likewise.
24341 (machopic_select_section): Likewise.
24342 (darwin_globalize_label): Likewise.
24343 (darwin_label_is_anonymous_local_objc_name): Likewise.
24344 (darwin_asm_named_section): Likewise.
24345 (darwin_asm_output_dwarf_offset): Likewise.
24346 * config/frv/frv.c (frv_string_begins_with): Likewise.
24347 (frv_in_small_data_p): Likewise.
24348 * config/gcn/mkoffload.c (STR): Likewise.
24350 * config/i386/i386-builtins.c (get_builtin_code_for_version): Likewise.
24351 * config/i386/i386-options.c (ix86_option_override_internal): Likewise.
24352 * config/i386/i386.c (x86_64_elf_section_type_flags): Likewise.
24353 (ix86_md_asm_adjust): Likewise.
24354 * config/i386/intelmic-mkoffload.c (STR): Likewise.
24355 * config/i386/winnt.c (i386_pe_asm_named_section): Likewise.
24356 (i386_pe_file_end): Likewise.
24357 * config/ia64/ia64.c (ia64_in_small_data_p): Likewise.
24358 (ia64_section_type_flags): Likewise.
24359 * config/mips/driver-native.c (host_detect_local_cpu): Likewise.
24360 * config/mips/mips.c (mips_handle_interrupt_attr): Likewise.
24361 (mips16_stub_function_p): Likewise.
24362 (mips_function_rodata_section): Likewise.
24363 * config/msp430/msp430.c (msp430_mcu_name): Likewise.
24364 (msp430_function_section): Likewise.
24365 (msp430_section_type_flags): Likewise.
24366 (msp430_expand_helper): Likewise.
24367 * config/nios2/nios2.c (nios2_small_section_name_p): Likewise.
24368 (nios2_valid_target_attribute_rec): Likewise.
24369 * config/nvptx/mkoffload.c (process): Likewise.
24371 * config/pa/som.h: Likewise.
24372 * config/pdp11/pdp11.c (pdp11_output_ident): Likewise.
24373 * config/riscv/riscv.c (riscv_elf_select_rtx_section): Likewise.
24374 * config/rs6000/rs6000.c (VTABLE_NAME_P): Likewise.
24375 (rs6000_inner_target_options): Likewise.
24376 * config/s390/driver-native.c (s390_host_detect_local_cpu): Likewise.
24377 * config/sparc/driver-sparc.c (host_detect_local_cpu): Likewise.
24378 * config/vax/vax.c (vax_output_int_move): Likewise.
24379 * config/vms/vms-ld.c (startswith): Likewise.
24380 (process_args): Likewise.
24382 * config/vms/vms.c: Likewise.
24384 2021-05-18 Jakub Jelinek <jakub@redhat.com>
24386 PR rtl-optimization/100590
24387 * regcprop.c (copyprop_hardreg_forward_1): Only DCE dead sets if
24388 they are NONJUMP_INSN_P.
24390 2021-05-18 Jakub Jelinek <jakub@redhat.com>
24393 * function.c (push_dummy_function): Set DECL_ARTIFICIAL and
24394 DECL_ASSEMBLER_NAME on the fn_decl.
24396 2021-05-18 Jakub Jelinek <jakub@redhat.com>
24398 PR tree-optimization/94589
24399 * tree-ssa-phiopt.c (spaceship_replacement): Pattern match
24400 phi result used in (res & ~1) == 0 comparison as res >= 0 as
24401 res == 2 would be UB with -ffinite-math-only.
24403 2021-05-18 Martin Liska <mliska@suse.cz>
24405 * Makefile.in: genversion.o should depend on DATESTAMP.
24407 2021-05-18 Claudiu Zissulescu <claziss@synopsys.com>
24409 * config/arc/simdext.md (negv2si2): Remove round bracket.
24411 2021-05-18 Andreas Krebbel <krebbel@linux.ibm.com>
24413 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Define
24414 _Bool as macro expanding to _Bool.
24416 2021-05-18 Andreas Krebbel <krebbel@linux.ibm.com>
24419 * tree.c (build_reference_type_for_mode)
24420 (build_pointer_type_for_mode): Pick pointer mode if MODE argument
24422 (build_reference_type, build_pointer_type): Invoke
24423 build_*_type_for_mode with VOIDmode.
24425 2021-05-17 Andrew MacLeod <amacleod@redhat.com>
24427 PR tree-optimization/100512
24428 * gimple-range-cache.cc (ranger_cache::set_global_range): Mark const
24429 and non-zero pointer ranges as invariant.
24430 * gimple-range.cc (gimple_ranger::range_of_stmt): Remove pointer
24431 processing from here.
24433 2021-05-17 Tom de Vries <tdevries@suse.de>
24436 * config/nvptx/nvptx-protos.h (nvptx_output_atomic_insn): Declare
24437 * config/nvptx/nvptx.c (nvptx_output_barrier)
24438 (nvptx_output_atomic_insn): New function.
24439 (nvptx_print_operand): Add support for 'B'.
24440 * config/nvptx/nvptx.md: Use nvptx_output_atomic_insn for atomic
24443 2021-05-17 Aldy Hernandez <aldyh@redhat.com>
24445 PR tree-optimization/100349
24446 * vr-values.c (bounds_of_var_in_loop): Bail if scev returns
24449 2021-05-17 Tamar Christina <tamar.christina@arm.com>
24451 * config/aarch64/driver-aarch64.c (DEFAULT_ARCH): New.
24452 (host_detect_local_cpu): Use it.
24454 2021-05-17 Martin Liska <mliska@suse.cz>
24456 * doc/invoke.texi: Add 2 missing dots.
24458 2021-05-17 Marius Hillenbrand <mhillen@linux.ibm.com>
24460 PR bootstrap/100552
24461 * configure.ac: Replace pattern substitution with call to sed.
24462 * configure: Regenerate.
24464 2021-05-17 Richard Biener <rguenther@suse.de>
24466 PR middle-end/100582
24467 * tree.c (array_at_struct_end_p): Get to the base of the
24468 reference before looking for the underlying decl.
24470 2021-05-17 Joern Rennecke <joern.rennecke@embecosm.com>
24472 * genoutput.c (validate_insn_alternatives) Make "wrong number of
24473 alternatives" message more specific, and remove assumption on where
24476 2021-05-17 Christophe Lyon <christophe.lyon@linaro.org>
24478 * config/arm/iterators.md (V16): New iterator.
24479 (VH_cvtto): New iterator.
24480 (v_cmp_result): Added V4HF and V8HF support.
24481 * config/arm/vec-common.md (vec_cmp<mode><v_cmp_result>): Use VDQWH.
24482 (vcond<mode><mode>): Likewise.
24483 (vcond_mask_<mode><v_cmp_result>): Likewise.
24484 (vcond<VH_cvtto><mode>): New expander.
24486 2021-05-17 Christophe Lyon <christophe.lyon@linaro.org>
24488 * config/arm/arm-protos.h (arm_expand_vector_compare): Update
24490 * config/arm/arm.c (arm_expand_vector_compare): Add support for
24492 (arm_expand_vcond): Likewise.
24493 * config/arm/iterators.md (supf): Remove VCMPNEQ_S, VCMPEQQ_S,
24494 VCMPEQQ_N_S, VCMPNEQ_N_S.
24495 (VCMPNEQ, VCMPEQQ, VCMPEQQ_N, VCMPNEQ_N): Remove.
24496 * config/arm/mve.md (@mve_vcmp<mve_cmp_op>q_<mode>): Add '@' prefix.
24497 (@mve_vcmp<mve_cmp_op>q_f<mode>): Likewise.
24498 (@mve_vcmp<mve_cmp_op>q_n_f<mode>): Likewise.
24499 (@mve_vpselq_<supf><mode>): Likewise.
24500 (@mve_vpselq_f<mode>"): Likewise.
24501 * config/arm/neon.md (vec_cmp<mode><v_cmp_result): Enable for MVE
24502 and move to vec-common.md.
24503 (vec_cmpu<mode><mode>): Likewise.
24504 (vcond<mode><mode>): Likewise.
24505 (vcond<V_cvtto><mode>): Likewise.
24506 (vcondu<mode><v_cmp_result>): Likewise.
24507 (vcond_mask_<mode><v_cmp_result>): Likewise.
24508 * config/arm/unspecs.md (VCMPNEQ_U, VCMPNEQ_S, VCMPEQQ_S)
24509 (VCMPEQQ_N_S, VCMPNEQ_N_S, VCMPEQQ_U, CMPEQQ_N_U, VCMPNEQ_N_U)
24510 (VCMPGEQ_N_S, VCMPGEQ_S, VCMPGTQ_N_S, VCMPGTQ_S, VCMPLEQ_N_S)
24511 (VCMPLEQ_S, VCMPLTQ_N_S, VCMPLTQ_S, VCMPCSQ_N_U, VCMPCSQ_U)
24512 (VCMPHIQ_N_U, VCMPHIQ_U): Remove.
24513 * config/arm/vec-common.md (vec_cmp<mode><v_cmp_result): Moved
24515 (vec_cmpu<mode><mode>): Likewise.
24516 (vcond<mode><mode>): Likewise.
24517 (vcond<V_cvtto><mode>): Likewise.
24518 (vcondu<mode><v_cmp_result>): Likewise.
24519 (vcond_mask_<mode><v_cmp_result>): Likewise. Added unsafe math
24522 2021-05-17 liuhongt <hongtao.liu@intel.com>
24525 * config/i386/i386.c (ix86_gimple_fold_builtin): Use
24526 gsi_insert_seq_before instead.
24528 2021-05-17 Christophe Lyon <christophe.lyon@linaro.org>
24530 * doc/sourcebuild.texi (arm_qbit_ok): Rename into...
24531 (arm_sat_ok): ...this.
24533 2021-05-17 Martin Liska <mliska@suse.cz>
24535 * lto-wrapper.c (merge_flto_options): Factor out a new function.
24536 (merge_and_complain): Use it.
24537 (run_gcc): Merge also linker command line -flto=foo argument
24540 2021-05-16 Christophe Lyon <christophe.lyon@linaro.org>
24542 * config/arm/arm.h (CPP_SPEC): Remove error message about
24543 -mlittle-endian/-mbig-endian conflict.
24545 2021-05-15 Bill Schmidt <wschmidt@linux.ibm.com>
24547 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
24548 __ROP_PROTECT__ if -mrop-protect is selected.
24550 2021-05-15 Bill Schmidt <wschmidt@linux.ibm.com>
24552 * config/rs6000/rs6000-internal.h (rs6000_stack): Add
24553 rop_hash_save_offset and rop_hash_size.
24554 * config/rs6000/rs6000-logue.c (rs6000_stack_info): Compute
24555 rop_hash_size and rop_hash_save_offset.
24556 (debug_stack_info): Dump rop_hash_save_offset and rop_hash_size.
24557 (rs6000_emit_prologue): Emit hashst[p] in prologue.
24558 (rs6000_emit_epilogue): Emit hashchk[p] in epilogue.
24559 * config/rs6000/rs6000.md (unspec): Add UNSPEC_HASHST and
24561 (hashst): New define_insn.
24562 (hashchk): Likewise.
24564 2021-05-15 Bill Schmidt <wschmidt@linux.ibm.com>
24566 * config/rs6000/rs6000.c (rs6000_option_override_internal):
24567 Disable shrink wrap when inserting ROP-protect instructions.
24568 * config/rs6000/rs6000.opt (mrop-protect): New option.
24569 (mprivileged): Likewise.
24570 * doc/invoke.texi: Document mrop-protect and mprivileged.
24572 2021-05-15 Hans-Peter Nilsson <hp@axis.com>
24574 * reorg.c (fill_slots_from_thread): Reinstate code typoed out in
24577 2021-05-15 Martin Jambor <mjambor@suse.cz>
24580 2021-05-13 Martin Jambor <mjambor@suse.cz>
24582 PR tree-optimization/100453
24583 * tree-sra.c (sra_modify_assign): All const base accesses do not
24584 need refreshing, not just those from decl_pool.
24585 (sra_modify_assign): Do not refresh into a const base decl.
24587 2021-05-15 Jakub Jelinek <jakub@redhat.com>
24589 PR rtl-optimization/100342
24590 * regcprop.c (copy_value): When copying a source reg in a wider
24591 mode than it has recorded for the value, adjust recorded destination
24592 mode too or punt if !REG_CAN_CHANGE_MODE_P.
24594 2021-05-14 Jason Merrill <jason@redhat.com>
24596 * intl.h: Add comments.
24598 2021-05-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24600 * config/aarch64/aarch64-simd.md
24601 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Split into...
24602 (aarch64_sqdmlsl2_lane<mode>_internal): ... This...
24603 (aarch64_sqdmlal2_lane<mode>_internal): ... And this.
24604 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Split into ...
24605 (aarch64_sqdmlsl2_laneq<mode>_internal): ... This...
24606 (aarch64_sqdmlal2_laneq<mode>_internal): ... And this.
24607 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Split into...
24608 (aarch64_sqdmlsl2_n<mode>_internal): ... This...
24609 (aarch64_sqdmlal2_n<mode>_internal): ... And this.
24611 2021-05-14 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
24614 * config/arm/arm_neon.h (vtst_s8): Replace call to vtst builtin with it's
24615 boolean logic equivalent.
24616 (vtst_s16): Likewise.
24617 (vtst_s32): Likewise.
24618 (vtst_u8): Likewise.
24619 (vtst_u16): Likewise.
24620 (vtst_u32): Likewise.
24621 (vtst_p8): Likewise.
24622 (vtst_p16): Likewise.
24623 (vtstq_s8): Likewise.
24624 (vtstq_s16): Likewise.
24625 (vtstq_s32): Likewise.
24626 (vtstq_u8): Likewise.
24627 (vtstq_u16): Likewise.
24628 (vtstq_u32): Likewise.
24629 (vtstq_p8): Likewise.
24630 (vtstq_p16): Likewise.
24631 * config/arm/arm_neon_builtins.def: Remove entry for vtst.
24632 * config/arm/neon.md (neon_vtst<mode>): Remove pattern.
24634 2021-05-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24636 * config/aarch64/aarch64-simd.md (aarch64_sqdmlal2<mode>): Merge into...
24637 (aarch64_sqdml<SBINQOPS:as>l2<mode>): ... This.
24638 (aarch64_sqdmlsl2<mode>): Delete.
24639 (aarch64_sqdmlal2_lane<mode>): Merge this...
24640 (aarch64_sqdmlsl2_lane<mode>): ... And this...
24641 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>): ... Into this.
24642 (aarch64_sqdmlal2_laneq<mode>): Merge this...
24643 (aarch64_sqdmlsl2_laneq<mode>): ... And this...
24644 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>): ... Into this.
24645 (aarch64_sqdmlal2_n<mode>): Merge this...
24646 (aarch64_sqdmlsl2_n<mode>): ... And this...
24647 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>): ... Into this.
24649 2021-05-13 Martin Sebor <msebor@redhat.com>
24651 PR middle-end/100574
24652 * builtins.c (access_ref::get_ref): Improve detection of PHIs with
24653 all null arguments.
24655 2021-05-13 Martin Sebor <msebor@redhat.com>
24657 PR tree-optimization/93100
24658 PR middle-end/98583
24659 * tree-ssa-uninit.c (check_defs): Exclude intrinsic functions that
24660 don't modify referenced objects.
24662 2021-05-13 Martin Jambor <mjambor@suse.cz>
24664 PR tree-optimization/100453
24665 * tree-sra.c (sra_modify_assign): All const base accesses do not
24666 need refreshing, not just those from decl_pool.
24667 (sra_modify_assign): Do not refresh into a const base decl.
24669 2021-05-13 Martin Liska <mliska@suse.cz>
24671 * tree-ssa-dom.c: Remove m_simplifier.
24673 2021-05-13 Richard Earnshaw <rearnsha@arm.com>
24676 * config/arm/arm.c (arm_canonicalize_comparison): Correctly
24677 canonicalize DImode inequality comparisons against the
24678 maximum integral value.
24680 2021-05-13 Jakub Jelinek <jakub@redhat.com>
24682 PR tree-optimization/98856
24683 * config/i386/i386.c (ix86_shift_rotate_cost): Add CODE argument.
24684 Expect V2DI and V4DI arithmetic right shifts to be emulated.
24685 (ix86_rtx_costs, ix86_add_stmt_cost): Adjust ix86_shift_rotate_cost
24687 * config/i386/i386-expand.c (expand_vec_perm_2perm_interleave,
24688 expand_vec_perm_2perm_pblendv): New functions.
24689 (ix86_expand_vec_perm_const_1): Use them.
24690 * config/i386/sse.md (ashr<mode>3<mask_name>): Rename to ...
24691 (<mask_codefor>ashr<mode>3<mask_name>): ... this.
24692 (ashr<mode>3): New define_expand with VI248_AVX512BW iterator.
24693 (ashrv4di3): New define_expand.
24694 (ashrv2di3): Change condition to TARGET_SSE2, handle !TARGET_XOP
24695 and !TARGET_AVX512VL expansion.
24697 2021-05-13 Uroš Bizjak <ubizjak@gmail.com>
24700 * config/i386/i386-expand.c (ix86_expand_sse_movcc): Force mode
24701 sizes < 16 to a register when constructing vpcmov pattern.
24702 * config/i386/mmx.md (*xop_pcmov_<mode>): Use MMXMODE124 mode.
24704 2021-05-13 Martin Liska <mliska@suse.cz>
24706 * gcov-io.c (gcov_write_block): Remove.
24707 (gcov_write_words): Likewise.
24708 (gcov_read_words): Re-implement using gcov_read_bytes.
24709 (gcov_allocate): Remove.
24710 (GCOV_BLOCK_SIZE): Likewise.
24711 (struct gcov_var): Remove most of the fields.
24712 (gcov_position): Implement with ftell.
24713 (gcov_rewrite): Remove setting of start and offset fields.
24714 (from_file): Re-format.
24715 (gcov_open): Remove setbuf call. It should not be needed.
24716 (gcov_close): Remove internal buffer handling.
24717 (gcov_magic): Use __builtin_bswap32.
24718 (gcov_write_counter): Use directly gcov_write_unsigned.
24719 (gcov_write_string): Use direct fwrite and do not round
24721 (gcov_seek): Use directly fseek.
24722 (gcov_write_tag): Use gcov_write_unsigned directly.
24723 (gcov_write_length): Likewise.
24724 (gcov_write_tag_length): Likewise.
24725 (gcov_read_bytes): Use directly fread.
24726 (gcov_read_unsigned): Use gcov_read_words.
24727 (gcov_read_counter): Likewise.
24728 (gcov_read_string): Use gcov_read_bytes.
24729 * gcov-io.h (GCOV_WORD_SIZE): Adjust to reflect
24730 that size is not in bytes, but words (4B).
24731 (GCOV_TAG_FUNCTION_LENGTH): Likewise.
24732 (GCOV_TAG_ARCS_LENGTH): Likewise.
24733 (GCOV_TAG_ARCS_NUM): Likewise.
24734 (GCOV_TAG_COUNTER_LENGTH): Likewise.
24735 (GCOV_TAG_COUNTER_NUM): Likewise.
24736 (GCOV_TAG_SUMMARY_LENGTH): Likewise.
24738 2021-05-13 liuhongt <hongtao.liu@intel.com>
24741 * config/i386/sse.md (ssedoublevecmode): Add attribute for
24742 V64QI/V32HI/V16SI/V4DI.
24743 (ssehalfvecmode): Add attribute for V2DI/V2DF.
24744 (*vec_concatv4si_0): Extend to VI124_128.
24745 (*vec_concat<mode>_0): New pre-reload splitter.
24746 * config/i386/predicates.md (movq_parallel): New predicate.
24748 2021-05-13 Alexandre Oliva <oliva@adacore.com>
24750 * targhooks.c (default_zero_call_used_regs): Retry using
24751 successfully-zeroed registers as sources.
24753 2021-05-12 Tobias Burnus <tobias@codesourcery.com>
24755 * omp-low.c (finish_taskreg_scan): Use the proper detach decl.
24757 2021-05-12 Aldy Hernandez <aldyh@redhat.com>
24760 * gimple-range.cc (range_of_builtin_call): Skip out on
24761 processing __builtin_clz when varying.
24763 2021-05-12 Tom de Vries <tdevries@suse.de>
24766 * config/nvptx/nvptx-opts.h (enum ptx_version): New enum.
24767 * config/nvptx/nvptx.c (nvptx_file_start): Print .version according
24768 to ptx_version_option.
24769 * config/nvptx/nvptx.h (TARGET_PTX_6_3): Define.
24770 * config/nvptx/nvptx.md (define_insn "nvptx_shuffle<mode>")
24771 (define_insn "nvptx_vote_ballot"): Use sync variant for
24773 * config/nvptx/nvptx.opt (ptx_version): Add enum.
24774 (mptx): Add option.
24775 * doc/invoke.texi (Nvidia PTX Options): Add mptx item.
24777 2021-05-12 Richard Biener <rguenther@suse.de>
24779 PR tree-optimization/100566
24780 * tree-ssa-sccvn.c (dominated_by_p_w_unex): Properly handle
24781 allow_back for all edge queries.
24783 2021-05-12 liuhongt <hongtao.liu@intel.com>
24786 * config/i386/sse.md (<sse4_1_avx2>_pblendvb): Add
24787 splitters for pblendvb of NOT mask register.
24789 2021-05-12 Richard Biener <rguenther@suse.de>
24791 PR tree-optimization/100519
24792 * tree-ssa-reassoc.c (can_associate_p): Split into...
24793 (can_associate_op_p): ... this
24794 (can_associate_type_p): ... and this.
24795 (is_reassociable_op): Call can_associate_op_p.
24796 (break_up_subtract_bb): Call the appropriate predicates.
24797 (reassociate_bb): Likewise.
24799 2021-05-12 Martin Liska <mliska@suse.cz>
24801 * lto-wrapper.c (merge_and_complain): Merge -flto=arg options.
24802 (run_gcc): Use -flto argument detection for merged
24805 2021-05-12 Martin Liska <mliska@suse.cz>
24807 * lto-wrapper.c (print_lto_docs_link): New function.
24808 (run_gcc): Print warning about missing job server detection
24809 after we know NR of partitions. Do the same for -flto{,=1}.
24810 * opts.c (get_option_html_page): Support -flto option.
24812 2021-05-12 Martin Liska <mliska@suse.cz>
24814 * lto-wrapper.c (get_options_from_collect_gcc_options): Change
24816 (append_option): Remove.
24817 (find_option): Rework to use the vector type.
24818 (remove_option): Remove.
24819 (merge_and_complain): Use vectors for cl_decoded_option data
24821 (append_compiler_options): Likewise.
24822 (append_diag_options): Likewise.
24823 (append_linker_options): Likewise.
24824 (append_offload_options): Likewise.
24825 (compile_offload_image): Likewise.
24826 (compile_images_for_offload_targets): Likewise.
24827 (find_and_merge_options): Likewise.
24828 (run_gcc): Likewise.
24830 2021-05-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
24833 * dwarf2out.c (dwarf2out_finish): Set
24834 have_multiple_function_sections with multi-range text_section.
24836 2021-05-12 Martin Liska <mliska@suse.cz>
24838 PR bootstrap/100560
24839 * Makefile.in: Remove version.h from linker command line.
24841 2021-05-12 Richard Biener <rguenther@suse.de>
24843 PR middle-end/100547
24844 * rtl.h (rtvec_alloc): Make argument size_t.
24845 * rtl.c (rtvec_alloc): Verify the count is less than INT_MAX.
24847 2021-05-12 Jakub Jelinek <jakub@redhat.com>
24849 PR middle-end/100508
24850 * cfgexpand.c (expand_debug_expr): For DEBUG_EXPR_DECL with vector
24851 type, don't reuse DECL_RTL if it has different mode, instead force
24852 creation of a new DEBUG_EXPR.
24854 2021-05-12 Jakub Jelinek <jakub@redhat.com>
24855 Marc Glisse <marc.glisse@inria.fr>
24857 PR tree-optimization/94589
24858 * match.pd ((X & Y) == X -> (X & ~Y) == 0,
24859 (X | Y) == Y -> (X & ~Y) == 0): New GIMPLE simplifications.
24861 2021-05-12 Uroš Bizjak <ubizjak@gmail.com>
24864 * config/i386/i386-expand.c (ix86_expand_sse_movcc): Handle V2SF mode.
24865 * config/i386/mmx.md (MMXMODE124): New mode iterator.
24867 (mmxintvecmode): New mode attribute.
24868 (mmxintvecmodelower): Ditto.
24869 (*mmx_maskcmpv2sf3_comm): New insn pattern.
24870 (*mmx_maskcmpv2sf3): Ditto.
24871 (vec_cmpv2sfv2si): New expander.
24872 (vcond<V2FI:mode>v2si): Ditto.
24873 (mmx_vlendvps): New insn pattern.
24874 (vcond<MMXMODE124:mode><MMXMODEI:mode>): Also handle V2SFmode.
24875 (vcondu<MMXMODE124:mode><MMXMODEI:mode>): Ditto.
24876 (vcond_mask_<mode><mmxintvecmodelower>): Ditto.
24878 2021-05-11 Martin Sebor <msebor@redhat.com>
24880 PR middle-end/21433
24881 * expr.c (expand_expr_real_1): Replace unreachable code with an assert.
24883 2021-05-11 Richard Biener <rguenther@suse.de>
24885 * gimple-fold.c (gimple_fold_call): Do not call
24886 maybe_fold_reference on call arguments or the static chain.
24887 (fold_stmt_1): Do not call maybe_fold_reference on GIMPLE_ASM
24890 2021-05-11 Martin Liska <mliska@suse.cz>
24892 * builtins.def (DEF_HSAIL_BUILTIN): Remove.
24893 (DEF_HSAIL_ATOMIC_BUILTIN): Likewise.
24894 (DEF_HSAIL_SAT_BUILTIN): Likewise.
24895 (DEF_HSAIL_INTR_BUILTIN): Likewise.
24896 (DEF_HSAIL_CVT_ZEROI_SAT_BUILTIN): Likewise.
24897 * doc/frontends.texi: Remove BRIG.
24898 * doc/install.texi: Likewise.
24899 * doc/invoke.texi: Likewise.
24900 * doc/standards.texi: Likewise.
24901 * brig-builtins.def: Removed.
24902 * brig/ChangeLog: Removed.
24903 * brig/Make-lang.in: Removed.
24904 * brig/brig-builtins.h: Removed.
24905 * brig/brig-c.h: Removed.
24906 * brig/brig-lang.c: Removed.
24907 * brig/brigfrontend/brig-arg-block-handler.cc: Removed.
24908 * brig/brigfrontend/brig-atomic-inst-handler.cc: Removed.
24909 * brig/brigfrontend/brig-basic-inst-handler.cc: Removed.
24910 * brig/brigfrontend/brig-branch-inst-handler.cc: Removed.
24911 * brig/brigfrontend/brig-cmp-inst-handler.cc: Removed.
24912 * brig/brigfrontend/brig-code-entry-handler.cc: Removed.
24913 * brig/brigfrontend/brig-code-entry-handler.h: Removed.
24914 * brig/brigfrontend/brig-comment-handler.cc: Removed.
24915 * brig/brigfrontend/brig-control-handler.cc: Removed.
24916 * brig/brigfrontend/brig-copy-move-inst-handler.cc: Removed.
24917 * brig/brigfrontend/brig-cvt-inst-handler.cc: Removed.
24918 * brig/brigfrontend/brig-fbarrier-handler.cc: Removed.
24919 * brig/brigfrontend/brig-function-handler.cc: Removed.
24920 * brig/brigfrontend/brig-function.cc: Removed.
24921 * brig/brigfrontend/brig-function.h: Removed.
24922 * brig/brigfrontend/brig-inst-mod-handler.cc: Removed.
24923 * brig/brigfrontend/brig-label-handler.cc: Removed.
24924 * brig/brigfrontend/brig-lane-inst-handler.cc: Removed.
24925 * brig/brigfrontend/brig-machine.c: Removed.
24926 * brig/brigfrontend/brig-machine.h: Removed.
24927 * brig/brigfrontend/brig-mem-inst-handler.cc: Removed.
24928 * brig/brigfrontend/brig-module-handler.cc: Removed.
24929 * brig/brigfrontend/brig-queue-inst-handler.cc: Removed.
24930 * brig/brigfrontend/brig-seg-inst-handler.cc: Removed.
24931 * brig/brigfrontend/brig-signal-inst-handler.cc: Removed.
24932 * brig/brigfrontend/brig-to-generic.cc: Removed.
24933 * brig/brigfrontend/brig-to-generic.h: Removed.
24934 * brig/brigfrontend/brig-util.cc: Removed.
24935 * brig/brigfrontend/brig-util.h: Removed.
24936 * brig/brigfrontend/brig-variable-handler.cc: Removed.
24937 * brig/brigfrontend/hsa-brig-format.h: Removed.
24938 * brig/brigfrontend/phsa.h: Removed.
24939 * brig/brigspec.c: Removed.
24940 * brig/config-lang.in: Removed.
24941 * brig/gccbrig.texi: Removed.
24942 * brig/lang-specs.h: Removed.
24943 * brig/lang.opt: Removed.
24945 2021-05-11 Richard Biener <rguenther@suse.de>
24948 * ipa-param-manipulation.c
24949 (ipa_param_body_adjustments::modify_call_stmt): Avoid
24950 altering SSA_NAME_DEF_STMT by adjusting the calls LHS
24951 via gimple_call_lhs_ptr.
24953 2021-05-11 Alex Coplan <alex.coplan@arm.com>
24956 * config/arm/arm.c (cmse_nonsecure_call_inline_register_clear):
24957 Avoid emitting CFA adjusts on the sp if we have the fp.
24959 2021-05-11 Richard Sandiford <richard.sandiford@arm.com>
24961 * config/aarch64/iterators.md (VMUL_CHANGE_NLANES): Delete.
24962 (VMULD): New iterator.
24963 (VCOND): Handle V4HF and V8HF.
24964 (VCONQ): Fix entry for V2SF.
24965 * config/aarch64/aarch64-simd.md (mul_lane<mode>3): Use VMULD
24966 instead of VMUL. Use a 64-bit vector mode for the indexed operand.
24967 (*aarch64_mul3_elt_<vswap_width_name><mode>): Merge with...
24968 (mul_laneq<mode>3): ...this define_insn. Use VMUL instead of VDQSF.
24969 Use a 128-bit vector mode for the indexed operand. Use stype for
24970 the scheduling type.
24972 2021-05-11 Richard Biener <rguenther@suse.de>
24974 * gimple-fold.c (maybe_fold_reference): Only return
24975 is_gimple_min_invariant values.
24977 2021-05-11 Richard Biener <rguenther@suse.de>
24979 PR middle-end/100509
24980 * gimple-fold.c (fold_gimple_assign): Only call
24981 get_symbol_constant_value on register type symbols.
24983 2021-05-11 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
24984 Joe Ramsay <joe.ramsay@arm.com>
24987 * config/arm/arm_mve.h (__arm_vstrwq_scatter_offset): Fix wrong arguments.
24988 (__arm_vcmpneq): Remove duplicate definition.
24989 (__arm_vstrwq_scatter_offset_p): Likewise.
24990 (__arm_vmaxq_x): Likewise.
24991 (__arm_vmlsdavaq): Likewise.
24992 (__arm_vmlsdavaxq): Likewise.
24993 (__arm_vmlsdavq_p): Likewise.
24994 (__arm_vmlsdavxq_p): Likewise.
24995 (__arm_vrmlaldavhaq): Likewise.
24996 (__arm_vstrbq_p): Likewise.
24997 (__arm_vstrbq_scatter_offset): Likewise.
24998 (__arm_vstrbq_scatter_offset_p): Likewise.
24999 (__arm_vstrdq_scatter_offset): Likewise.
25000 (__arm_vstrdq_scatter_offset_p): Likewise.
25001 (__arm_vstrdq_scatter_shifted_offset): Likewise.
25002 (__arm_vstrdq_scatter_shifted_offset_p): Likewise.
25004 2021-05-11 Jakub Jelinek <jakub@redhat.com>
25006 PR middle-end/100471
25007 * omp-low.c (lower_omp_task_reductions): For OMP_TASKLOOP, if data
25008 is 0, bypass the reduction loop including
25009 GOMP_taskgroup_reduction_unregister call.
25011 2021-05-11 Kewen Lin <linkw@linux.ibm.com>
25013 * config/rs6000/rs6000.c (struct rs6000_cost_data): New member
25014 costing_for_scalar.
25015 (rs6000_density_test): Early return if costing_for_scalar is true.
25016 (rs6000_init_cost): Init costing_for_scalar of rs6000_cost_data.
25018 2021-05-11 Kewen Lin <linkw@linux.ibm.com>
25020 * doc/tm.texi: Regenerated.
25021 * target.def (init_cost): Add new parameter costing_for_scalar.
25022 * targhooks.c (default_init_cost): Adjust for new parameter.
25023 * targhooks.h (default_init_cost): Likewise.
25024 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Likewise.
25025 (vect_compute_single_scalar_iteration_cost): Likewise.
25026 (vect_analyze_loop_2): Likewise.
25027 * tree-vect-slp.c (_bb_vec_info::_bb_vec_info): Likewise.
25028 (vect_bb_vectorization_profitable_p): Likewise.
25029 * tree-vectorizer.h (init_cost): Likewise.
25030 * config/aarch64/aarch64.c (aarch64_init_cost): Likewise.
25031 * config/i386/i386.c (ix86_init_cost): Likewise.
25032 * config/rs6000/rs6000.c (rs6000_init_cost): Likewise.
25034 2021-05-11 Kewen Lin <linkw@linux.ibm.com>
25036 * config/rs6000/rs6000.c (rs6000_vect_nonmem): Renamed to
25037 vect_nonmem and moved into...
25038 (struct rs6000_cost_data): ...here.
25039 (rs6000_init_cost): Use vect_nonmem of cost_data instead.
25040 (rs6000_add_stmt_cost): Likewise.
25041 (rs6000_finish_cost): Likewise.
25043 2021-05-10 Eric Botcazou <ebotcazou@adacore.com>
25045 * range-op.cc (get_bool_state): Adjust head comment.
25046 (operator_not_equal::op1_range): Fix comment.
25047 (operator_bitwise_xor::op1_range): Remove call to gcc_unreachable.
25049 2021-05-10 Martin Sebor <msebor@redhat.com>
25051 PR middle-end/100425
25052 PR middle-end/100510
25053 * gimple-ssa-warn-alloca.c (pass_walloca::firast_time_p): Rename...
25054 (pass_walloca::xlimit_certain_p): ...to this.
25055 (pass_walloca::gate): Execute for any kind of handled warning.
25056 (pass_walloca::execute): Avoid issuing "maybe" and "unbounded"
25057 warnings when xlimit_certain_p is set.
25059 2021-05-10 Pat Haugen <pthaugen@linux.ibm.com>
25061 * config/rs6000/rs6000.c (rs6000_ira_change_pseudo_allocno_class):
25062 Return ALTIVEC_REGS if that is best_class.
25063 (rs6000_compute_pressure_classes): Add ALTIVEC_REGS.
25065 2021-05-10 Christophe Lyon <christophe.lyon@linaro.org>
25067 * config/arm/arm.h (CPP_SPEC): Remove error message about
25070 2021-05-10 Martin Jambor <mjambor@suse.cz>
25072 * ipa-prop.h (IPA_NODE_REF): Removed.
25073 (IPA_NODE_REF_GET_CREATE): Likewise.
25074 (IPA_EDGE_REF): Likewise.
25075 (IPA_EDGE_REF_GET_CREATE): Likewise.
25076 (IS_VALID_JUMP_FUNC_INDEX): Likewise.
25077 * ipa-cp.c (print_all_lattices): Replaced IPA_NODE_REF with a direct
25078 use of ipa_node_params_sum.
25079 (ipcp_versionable_function_p): Likewise.
25080 (push_node_to_stack): Likewise.
25081 (pop_node_from_stack): Likewise.
25082 (set_single_call_flag): Replaced two IPA_NODE_REF with one single
25083 direct use of ipa_node_params_sum.
25084 (initialize_node_lattices): Replaced IPA_NODE_REF with a direct use of
25085 ipa_node_params_sum.
25086 (ipa_context_from_jfunc): Replaced IPA_EDGE_REF with a direct use of
25088 (ipcp_verify_propagated_values): Replaced IPA_NODE_REF with a direct
25089 use of ipa_node_params_sum.
25090 (self_recursively_generated_p): Likewise.
25091 (propagate_scalar_across_jump_function): Likewise.
25092 (propagate_context_across_jump_function): Replaced IPA_EDGE_REF with a
25093 direct use of ipa_edge_args_sum, moved the lookup after the early
25094 exit. Replaced IPA_NODE_REF with a direct use of ipa_node_params_sum.
25095 (propagate_bits_across_jump_function): Replaced IPA_NODE_REF with
25096 direct uses of ipa_node_params_sum.
25097 (propagate_vr_across_jump_function): Likewise.
25098 (propagate_aggregate_lattice): Likewise.
25099 (propagate_aggs_across_jump_function): Likewise.
25100 (propagate_constants_across_call): Likewise, also replaced
25101 IPA_EDGE_REF with a direct use of ipa_edge_args_sum.
25102 (good_cloning_opportunity_p): Replaced IPA_NODE_REF with a direct use
25103 of ipa_node_params_sum.
25104 (estimate_local_effects): Likewise.
25105 (add_all_node_vals_to_toposort): Likewise.
25106 (propagate_constants_topo): Likewise.
25107 (ipcp_propagate_stage): Likewise.
25108 (ipcp_discover_new_direct_edges): Likewise.
25109 (calls_same_node_or_its_all_contexts_clone_p): Likewise.
25110 (cgraph_edge_brings_value_p): Likewise (in both overloaded functions).
25111 (get_info_about_necessary_edges): Likewise.
25112 (want_remove_some_param_p): Likewise.
25113 (create_specialized_node): Likewise.
25114 (self_recursive_pass_through_p): Likewise.
25115 (self_recursive_agg_pass_through_p): Likewise.
25116 (find_more_scalar_values_for_callers_subset): Likewise and also
25117 replaced IPA_EDGE_REF with direct uses of ipa_edge_args_sum, in one
25118 case replacing two of those with a single query.
25119 (find_more_contexts_for_caller_subset): Likewise for the
25120 ipa_polymorphic_call_context overload.
25121 (intersect_aggregates_with_edge): Replaced IPA_EDGE_REF with a direct
25122 use of ipa_edge_args_sum. Replaced IPA_NODE_REF with direct uses of
25123 ipa_node_params_sum.
25124 (find_aggregate_values_for_callers_subset): Likewise, also reusing
25125 results of ipa_edge_args_sum->get.
25126 (cgraph_edge_brings_all_scalars_for_node): Replaced IPA_NODE_REF with
25127 direct uses of ipa_node_params_sum, replaced IPA_EDGE_REF with a
25128 direct use of ipa_edge_args_sum.
25129 (cgraph_edge_brings_all_agg_vals_for_node): Likewise, moved node
25130 summary query after the early exit and reused the result later.
25131 (decide_about_value): Replaced IPA_NODE_REF with a direct use of
25132 ipa_node_params_sum.
25133 (decide_whether_version_node): Likewise. Removed re-querying for
25134 summaries after cloning.
25135 (spread_undeadness): Replaced IPA_NODE_REF with a direct use of
25136 ipa_node_params_sum.
25137 (has_undead_caller_from_outside_scc_p): Likewise, reusing results of
25139 (identify_dead_nodes): Likewise.
25140 (ipcp_store_bits_results): Replaced IPA_NODE_REF with direct uses of
25141 ipa_node_params_sum.
25142 (ipcp_store_vr_results): Likewise.
25143 * ipa-fnsummary.c (evaluate_properties_for_edge): Likewise.
25144 (ipa_fn_summary_t::duplicate): Likewise.
25145 (analyze_function_body): Likewise.
25146 (estimate_calls_size_and_time): Likewise.
25147 (ipa_cached_call_context::duplicate_from): Likewise.
25148 (ipa_call_context::equal_to): Likewise.
25149 (remap_edge_params): Likewise.
25150 (ipa_merge_fn_summary_after_inlining): Likewise.
25151 (inline_read_section): Likewise.
25152 * ipa-icf.c (sem_function::param_used_p): Likewise.
25153 * ipa-modref.c (compute_parm_map): Likewise.
25154 (compute_parm_map): Replaced IPA_EDGE_REF with a direct use of
25156 (get_access_for_fnspec): Replaced IPA_NODE_REF with a direct use of
25157 ipa_node_params_sum and replaced IPA_EDGE_REF with a direct use of
25159 * ipa-profile.c (check_argument_count): Likewise.
25160 * ipa-prop.c (ipa_alloc_node_params): Replaced IPA_NODE_REF_GET_CREATE
25161 with a direct use of ipa_node_params_sum.
25162 (ipa_initialize_node_params): Likewise.
25163 (ipa_print_node_jump_functions_for_edge): Replaced IPA_EDGE_REF with a
25164 direct use of ipa_edge_args_sum and reused the query result.
25165 (ipa_compute_jump_functions_for_edge): Replaced IPA_NODE_REF with a
25166 direct use of ipa_node_params_sum and replaced IPA_EDGE_REF with a
25167 direct use of ipa_edge_args_sum.
25168 (ipa_note_param_call): Replaced IPA_NODE_REF with a direct use of
25169 ipa_node_params_sum and reused the result of the query.
25170 (ipa_analyze_node): Likewise.
25171 (ipa_analyze_controlled_uses): Replaced IPA_NODE_REF with a direct use
25172 of ipa_node_params_sum.
25173 (update_jump_functions_after_inlining): Replaced IPA_EDGE_REF with
25174 direct uses of ipa_edge_args_sum.
25175 (update_indirect_edges_after_inlining): Replaced IPA_NODE_REF with
25176 direct uses of ipa_node_params_sum and replaced IPA_EDGE_REF with a
25177 direct use of ipa_edge_args_sum. Removed superficial re-querying the
25179 (propagate_controlled_uses): Replaced IPA_NODE_REF with direct uses of
25180 ipa_node_params_sum and replaced IPA_EDGE_REF with a direct use of
25182 (ipa_propagate_indirect_call_infos): Replaced IPA_EDGE_REF with a
25183 direct use of ipa_edge_args_sum.
25184 (ipa_edge_args_sum_t::duplicate): Replaced IPA_NODE_REF with a direct
25185 use of ipa_node_params_sum.
25186 (ipa_print_node_params): Likewise.
25187 (ipa_write_node_info): Likewise and also replaced IPA_EDGE_REF with
25188 direct uses of ipa_edge_args_sum.
25189 (ipa_read_edge_info): Replaced IPA_EDGE_REF with a direct use of
25191 (ipa_read_node_info): Replaced IPA_NODE_REF with a direct use of
25192 ipa_node_params_sum.
25193 (ipa_prop_write_jump_functions): Likewise. Move variable node to the
25194 scopes where it is used.
25196 2021-05-10 Uroš Bizjak <ubizjak@gmail.com>
25198 * config/i386/i386-expand.c (ix86_expand_sse_movcc)
25199 <case E_V2SImode>: Force op_true to register.
25201 2021-05-10 Christophe Lyon <christophe.lyon@linaro.org>
25203 * config/arm/iterators.md (MVE_FP_COMPARISONS): New.
25204 * config/arm/mve.md (mve_vcmp<mve_cmp_op>q_f<mode>)
25205 (mve_vcmp<mve_cmp_op>q_n_f<mode>): New, merge all vcmp_*f*
25207 (mve_vcmpeqq_f<mode>, mve_vcmpeqq_n_f<mode>, mve_vcmpgeq_f<mode>)
25208 (mve_vcmpgeq_n_f<mode>, mve_vcmpgtq_f<mode>)
25209 (mve_vcmpgtq_n_f<mode>, mve_vcmpleq_f<mode>)
25210 (mve_vcmpleq_n_f<mode>, mve_vcmpltq_f<mode>)
25211 (mve_vcmpltq_n_f<mode>, mve_vcmpneq_f<mode>)
25212 (mve_vcmpneq_n_f<mode>): Remove.
25213 * config/arm/unspecs.md (VCMPEQQ_F, VCMPEQQ_N_F, VCMPGEQ_F)
25214 (VCMPGEQ_N_F, VCMPGTQ_F, VCMPGTQ_N_F, VCMPLEQ_F, VCMPLEQ_N_F)
25215 (VCMPLTQ_F, VCMPLTQ_N_F, VCMPNEQ_F, VCMPNEQ_N_F): Remove.
25217 2021-05-10 Christophe Lyon <christophe.lyon@linaro.org>
25219 * config/arm/iterators.md (MVE_COMPARISONS): New.
25221 (mve_cmp_type): New.
25222 * config/arm/mve.md (mve_vcmp<mve_cmp_op>q_<mode>): New, merge all
25224 (mve_vcmpneq_<mode>, mve_vcmpcsq_n_<mode>, mve_vcmpcsq_<mode>)
25225 (mve_vcmpeqq_n_<mode>, mve_vcmpeqq_<mode>, mve_vcmpgeq_n_<mode>)
25226 (mve_vcmpgeq_<mode>, mve_vcmpgtq_n_<mode>, mve_vcmpgtq_<mode>)
25227 (mve_vcmphiq_n_<mode>, mve_vcmphiq_<mode>, mve_vcmpleq_n_<mode>)
25228 (mve_vcmpleq_<mode>, mve_vcmpltq_n_<mode>, mve_vcmpltq_<mode>)
25229 (mve_vcmpneq_n_<mode>, mve_vcmpltq_n_<mode>, mve_vcmpltq_<mode>)
25230 (mve_vcmpneq_n_<mode>): Remove.
25232 2021-05-10 Christophe Lyon <christophe.lyon@linaro.org>
25234 * config/arm/arm_mve.h (__arm_vcmp*): Remove 's' suffix.
25235 * config/arm/arm_mve_builtins.def (vcmp*): Remove 's' suffix.
25236 * config/arm/mve.md (mve_vcmp*): Remove 's' suffix in pattern
25239 2021-05-10 Christophe Lyon <christophe.lyon@linaro.org>
25241 * config/arm/arm_mve_builtins.def (vcmpneq_u): Remove.
25242 (vcmpneq_n_u): Likewise.
25243 (vcmpeqq_u,): Likewise.
25244 (vcmpeqq_n_u): Likewise.
25245 * config/arm/iterators.md (supf): Remove VCMPNEQ_U, VCMPEQQ_U,
25246 VCMPEQQ_N_U and VCMPNEQ_N_U.
25247 * config/arm/mve.md (mve_vcmpneq): Remove <supf> iteration.
25248 (mve_vcmpeqq_n): Likewise.
25249 (mve_vcmpeqq): Likewise.
25250 (mve_vcmpneq_n): Likewise.
25252 2021-05-10 Christophe Lyon <christophe.lyon@linaro.org>
25254 * config/arm/arm_mve.h (__arm_vcmpeq*u*, __arm_vcmpne*u*): Call
25255 the 's' version of the builtin.
25257 2021-05-10 Richard Biener <rguenther@suse.de>
25259 PR tree-optimization/100492
25260 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
25261 Find nothing when the loop contains an irreducible region.
25263 2021-05-10 Richard Biener <rguenther@suse.de>
25265 PR middle-end/100464
25267 * gimple-fold.c (canonicalize_constructor_val): Do not set
25270 2021-05-10 Richard Biener <rguenther@suse.de>
25272 PR tree-optimization/100434
25273 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
25275 (dse_optimize_stmt): Handle call LHS by dropping the
25276 LHS or the whole call if it doesn't have other
25278 (pass_dse::execute): Adjust.
25280 2021-05-10 Martin Liska <mliska@suse.cz>
25282 * Makefile.in: Add missing genversion rule.
25284 2021-05-10 Alex Coplan <alex.coplan@arm.com>
25287 * config/arm/mve.md (*mve_mov<mode>): Simplify output code. Use
25288 vldrw.u32 and vstrw.32 for V2D[IF]mode loads and stores.
25290 2021-05-10 Martin Liska <mliska@suse.cz>
25292 * builtins.c (is_builtin_name): Use startswith
25293 function instead of strncmp.
25294 * collect2.c (main): Likewise.
25295 (has_lto_section): Likewise.
25296 (scan_libraries): Likewise.
25297 * coverage.c (coverage_checksum_string): Likewise.
25298 (coverage_init): Likewise.
25299 * dwarf2out.c (is_cxx): Likewise.
25300 (gen_compile_unit_die): Likewise.
25301 * gcc-ar.c (main): Likewise.
25302 * gcc.c (init_spec): Likewise.
25303 (read_specs): Likewise.
25304 (execute): Likewise.
25305 (check_live_switch): Likewise.
25306 * genattrtab.c (write_attr_case): Likewise.
25307 (IS_ATTR_GROUP): Likewise.
25308 * gencfn-macros.c (main): Likewise.
25309 * gengtype.c (type_for_name): Likewise.
25310 (gen_rtx_next): Likewise.
25311 (get_file_langdir): Likewise.
25312 (write_local): Likewise.
25313 * genmatch.c (get_operator): Likewise.
25314 (get_operand_type): Likewise.
25315 (expr::gen_transform): Likewise.
25316 * genoutput.c (validate_optab_operands): Likewise.
25317 * incpath.c (add_sysroot_to_chain): Likewise.
25318 * langhooks.c (lang_GNU_C): Likewise.
25319 (lang_GNU_CXX): Likewise.
25320 (lang_GNU_Fortran): Likewise.
25321 (lang_GNU_OBJC): Likewise.
25322 * lto-wrapper.c (run_gcc): Likewise.
25323 * omp-general.c (omp_max_simt_vf): Likewise.
25324 * omp-low.c (omp_runtime_api_call): Likewise.
25325 * opts-common.c (parse_options_from_collect_gcc_options): Likewise.
25326 * read-rtl-function.c (function_reader::read_rtx_operand_r): Likewise.
25327 * real.c (real_from_string): Likewise.
25328 * selftest.c (assert_str_startswith): Likewise.
25329 * timevar.c (timer::validate_phases): Likewise.
25330 * tree.c (get_file_function_name): Likewise.
25331 * ubsan.c (ubsan_use_new_style_p): Likewise.
25332 * varasm.c (default_function_rodata_section): Likewise.
25333 (incorporeal_function_p): Likewise.
25334 (default_section_type_flags): Likewise.
25335 * system.h (startswith): Define startswith.
25337 2021-05-10 Martin Liska <mliska@suse.cz>
25339 * bitmap.h (class auto_bitmap): Remove
25340 __cplusplus >= 201103.
25341 * config/aarch64/aarch64.c: Likewise.
25342 * gimple-ssa-store-merging.c (store_immediate_info::store_immediate_info):
25344 * sbitmap.h: Likewise.
25346 2021-05-10 Martin Liska <mliska@suse.cz>
25348 * Makefile.in: Rename gcov-iov to genversion and depend
25349 on version.h (instead of gcov-iov.h).
25350 * gcov-io.h: Include version.h instread of gcov-iov.h.
25351 * gengtype-state.c (read_state_version): Likewise.
25352 * gcov-iov.c: Moved to...
25353 * genversion.c: ...here.
25354 * lto-streamer.h (LTO_major_version): Define it with
25356 * version.c: Removed.
25357 * version.h: Removed.
25359 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
25361 * config/arc/arc.md (UNSPEC_ARC_DMPYWH): Define.
25362 * config/arc/simdext.md (VCT): Add predicates for iterator
25365 (voptab): Likewise.
25366 (vec_widen_<V_US>mult_hi_v4hi): Change pattern predicate.
25367 (<voptab>v2si3): New patterns.
25369 (reduc_plus_scal_v4hi): Likewise.
25370 (reduc_plus_scal_v2si): Likewise.
25371 (vec_duplicatev2si): Likewise.
25372 (vec_duplicatev4hi): Likewise.
25374 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
25376 * config/arc/simdext.md: Format and cleanup file.
25378 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
25380 * config/arc/simdext.md (movmisalignv2hi): Allow misaligned access
25381 only when munaligned-access option is on.
25382 (movmisalign<mode>): Likewise.
25384 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
25386 * common/config/arc/arc-common.c (arc_handle_option): Remove dot
25388 * config/arc/arc.c (arc_reorg): Remove underscore from string.
25390 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
25392 * config/arc/arc.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
25393 (CTZ_DEFINED_VALUE_AT_ZERO): Likewise.
25394 * config/arc/arc.md (clrsbsi2): Cleanup pattern.
25395 (norm_f): Likewise.
25398 (clzsi2): Use fls instruction when available.
25399 (arc_clzsi2): Likewise.
25401 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
25403 * config/arc/arc.h (ADDITIONAL_REGISTER_NAMES): Add r26 and r27.
25405 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
25407 * doc/extend.texi (__builtin_arc_sr): Swap arguments.
25409 2021-05-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
25411 PR middle-end/100467
25412 * toplev.c (compile_file): Call insn_locations_init before
25413 targetm.asm_out.code_end.
25415 2021-05-07 Andrew Stubbs <ams@codesourcery.com>
25418 2021-05-07 Andrew Stubbs <ams@codesourcery.com>
25420 * config/gcn/gcn.c (gcn_scalar_mode_supported_p): Disable TImode.
25422 2021-05-07 Jakub Jelinek <jakub@redhat.com>
25423 Andrew Stubbs <amd@codesourcery.com>
25426 * builtins.c (try_store_by_multiple_pieces): Use force_operand for
25427 emit_move_insn operands.
25429 2021-05-07 Eric Botcazou <ebotcazou@adacore.com>
25431 * cfgexpand.c (expand_gimple_basic_block): Do not inherit a current
25432 location for the outgoing edges of an empty block.
25433 * dwarf2out.c (add_subscript_info): Retrieve the bounds and index
25434 type by means of the get_array_descr_info langhook, if it is set and
25435 returns true. Remove obsolete code dealing with unnamed subtypes.
25437 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
25439 * gimple-range-cache.cc (ssa_block_ranges): Virtualize.
25440 (sbr_vector): Renamed from ssa_block_cache.
25441 (sbr_vector::sbr_vector): Allocate from obstack abd initialize.
25442 (ssa_block_ranges::~ssa_block_ranges): Remove.
25443 (sbr_vector::set_bb_range): Use varying and undefined cached values.
25444 (ssa_block_ranges::set_bb_varying): Remove.
25445 (sbr_vector::get_bb_range): Adjust assert.
25446 (sbr_vector::bb_range_p): Adjust assert.
25447 (~block_range_cache): No freeing loop required.
25448 (block_range_cache::get_block_ranges): Remove.
25449 (block_range_cache::set_bb_range): Inline get_block_ranges.
25450 (block_range_cache::set_bb_varying): Remove.
25451 * gimple-range-cache.h (set_bb_varying): Remove prototype.
25452 * value-range.h (irange_allocator::get_memory): New.
25454 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
25456 * gimple-range-cache.cc (non_null_ref::non_null_deref_p): Search
25457 dominator tree is available and requested.
25458 (ranger_cache::ssa_range_in_bb): Don't search dom tree here.
25459 (ranger_cache::fill_block_cache): Don't search dom tree here either.
25460 * gimple-range-cache.h (non_null_deref_p): Add dom_search param.
25462 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
25464 * gimple-range.cc (gimple_ranger::range_on_exit): Handle block with
25465 only PHI nodes better.
25467 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
25469 * gimple-range-edge.h (gimple_outgoing_range): Rename from
25471 (gcond_edge_range): Export prototype.
25472 * gimple-range-edge.cc (gcond_edge_range): New.
25473 (gimple_outgoing_range::edge_range_p): Use gcond_edge_range.
25474 * gimple-range-gori.h (gori_compute): Use gimple_outgoing_range.
25476 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
25478 * gimple-range-edge.cc (outgoing_range::calc_switch_ranges): Compute
25479 default range into a temp and allocate only what is needed.
25481 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
25483 * range-op.cc (operator_trunc_mod::wi_fold): x % 0 is UNDEFINED.
25485 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
25487 * gimple-range.h (gimple_range_global): Pick up parameter initial
25488 values, and use-before defined locals are UNDEFINED.
25490 2021-05-07 Eric Botcazou <ebotcazou@adacore.com>
25492 * doc/extend.texi (scalar_storage_order): Mention effect on pointer
25494 * tree.h (reverse_storage_order_for_component_p): Return false if
25495 the type is a pointer.
25497 2021-05-07 Andrew Stubbs <ams@codesourcery.com>
25499 * config/gcn/gcn.c (gcn_scalar_mode_supported_p): Disable TImode.
25501 2021-05-07 Uroš Bizjak <ubizjak@gmail.com>
25504 * config/i386/i386-expand.c (ix86_expand_sse_movcc):
25505 Handle V8QI, V4HI and V2SI modes.
25506 * config/i386/mmx.md (mmx_pblendvb): New insn pattern.
25507 * config/i386/sse.md (unspec): Move UNSPEC_BLENDV ...
25508 * config/i386/i386.md (unspec): ... here.
25510 2021-05-07 Tobias Burnus <tobias@codesourcery.com>
25511 Tom de Vries <tdevries@suse.de>
25513 * omp-low.c (lower_rec_simd_input_clauses): Set max_vf = 1 if
25514 a truth_value_p reduction variable is nonintegral.
25516 2021-05-07 Uroš Bizjak <ubizjak@gmail.com>
25519 * config/i386/i386-expand.c (ix86_use_mask_cmp_p):
25520 Return false for mode sizes < 16.
25522 2021-05-07 Jakub Jelinek <jakub@redhat.com>
25525 * config/i386/mmx.md (*xop_pcmov_<mode>): New define_insn.
25527 2021-05-06 Martin Jambor <mjambor@suse.cz>
25529 * ipa-sra.c (ipa_sra_dump_all_summaries): Dump edge summaries even
25530 when there is no function summary.
25531 (ipa_sra_summarize_function): produce edge summaries even when
25534 2021-05-06 Tom Tromey <tom@tromey.com>
25536 * godump.c (string_hash_eq): Remove.
25537 (go_finish): Use htab_eq_string.
25539 2021-05-06 Tom Tromey <tom@tromey.com>
25541 * gengtype-state.c (read_state): Use htab_eq_string.
25542 (string_eq): Remove.
25544 2021-05-06 Tom Tromey <tom@tromey.com>
25546 * gensupport.c (htab_eq_string): Remove.
25548 2021-05-06 Bernd Edlinger <bernd.edlinger@hotmail.de>
25551 * debug.h (gcc_debug_hooks): Add set_ignored_loc function pointer.
25552 * dwarf2out.h (dw_fde_node::ignored_debug): New data item.
25553 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Add dummy
25554 set_ignored_loc callbacks.
25555 * debug.c (do_nothing_debug_hooks): Likewise.
25556 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
25557 * dwarf2out.c (text_section_used, cold_text_section_used): Remove.
25558 (in_text_section_p, last_text_label, last_cold_label,
25559 switch_text_ranges, switch_cold_ranges): New data items.
25560 (dwarf2out_note_section_used): Remove.
25561 (dwarf2out_begin_prologue): Set fde->ignored_debug and
25563 (mark_ignored_debug_section): New helper function.
25564 (dwarf2out_end_epilogue, dwarf2out_switch_text_section): Call
25565 mark_ignored_debug_section.
25566 (dwarf2_debug_hooks): Use dwarf2out_set_ignored_loc.
25567 (dwarf2_lineno_debug_hooks): Use dummy for set_ignored_loc.
25568 (size_of_aranges): Adjust formula for multi-part text ranges size.
25569 (output_aranges): Output multi-part text ranges.
25570 (dwarf2out_set_ignored_loc): New callback function.
25571 (dwarf2out_finish): Output multi-part text ranges.
25572 (dwarf2out_c_finalize): Clear new data items.
25573 * final.c (final_start_function_1): Call set_ignored_loc callback.
25574 (final_scan_insn_1): Likewise.
25575 * ggc-page.c (gt_ggc_mx): New helper function.
25576 * stringpool.c (gt_pch_nx): Likewise.
25578 2021-05-06 Richard Biener <rguenther@suse.de>
25580 * timevar.def (TV_TREE_INSERT_PHI_NODES): Remove.
25581 (TV_TREE_SSA_REWRITE_BLOCKS): Likewise.
25582 (TV_TREE_INTO_SSA): New.
25583 * tree-into-ssa.c (insert_phi_nodes): Do not account separately.
25584 (rewrite_blocks): Likewise.
25585 (pass_data_build_ssa): Account to TV_TREE_INTO_SSA.
25587 2021-05-06 Jakub Jelinek <jakub@redhat.com>
25589 * tree-ssa-phiopt.c (value_replacement, minmax_replacement,
25590 abs_replacement, xor_replacement,
25591 cond_removal_in_popcount_clz_ctz_pattern,
25592 replace_phi_edge_with_variable): Change type of phi argument from
25593 gimple * to gphi *.
25595 2021-05-06 Richard Biener <rguenther@suse.de>
25597 * tree-ssa-loop-split.c (split_loop): Delay updating SSA form.
25598 Output an opt-info message.
25599 (do_split_loop_on_cond): Likewise.
25600 (tree_ssa_split_loops): Update SSA form here.
25602 2021-05-06 Richard Biener <rguenther@suse.de>
25604 * tree-inline.c (tree_function_versioning): Fix DECL_BY_REFERENCE
25605 return variable removal.
25607 2021-05-06 Marius Hillenbrand <mhillen@linux.ibm.com>
25609 * config/s390/s390-builtins.def (O_M5, O1_M5, ...): Remove unused macros.
25610 (s390_vec_permi_s64, s390_vec_permi_b64, s390_vec_permi_u64)
25611 (s390_vec_permi_dbl, s390_vpdi): Use the O3_U2 type for the immediate
25613 * config/s390/s390.c (s390_const_operand_ok): Remove unused
25616 2021-05-06 Jakub Jelinek <jakub@redhat.com>
25618 PR tree-optimization/94589
25619 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Call
25620 spaceship_replacement.
25621 (cond_only_block_p, spaceship_replacement): New functions.
25623 2021-05-06 Richard Biener <rguenther@suse.de>
25626 * tree-emutls.c (gen_emutls_addr): Pass in whether we're
25627 dealing with a debug use and only query existing addresses
25629 (lower_emutls_1): Avoid splitting out addresses for debug
25630 stmts, reset the debug stmt when we fail to find existing
25632 (lower_emutls_phi_arg): Set wi.stmt.
25634 2021-05-06 Christoph Muellner <cmuellner@gcc.gnu.org>
25637 * config/riscv/riscv.c (riscv_block_move_loop): Use cbranch helper.
25638 * config/riscv/riscv.md (cbranch<mode>4): Generate helpers.
25639 (stack_protect_test): Use cbranch helper.
25641 2021-05-05 Eric Botcazou <ebotcazou@adacore.com>
25644 * config/i386/i386.c (ix86_compute_frame_layout): For a SEH target,
25645 always return the establisher frame for __builtin_frame_address (0).
25647 2021-05-05 Ivan Sorokin <vanyacpp@gmail.com>
25650 * config/i386/i386-builtins.c (ix86_cpu_model_type_node): New.
25651 (ix86_cpu_model_var): Likewise.
25652 (ix86_cpu_features2_type_node): Likewise.
25653 (ix86_cpu_features2_var): Likewise.
25654 (fold_builtin_cpu): Cache __cpu_model and __cpu_features2 with
25657 2021-05-05 Martin Sebor <msebor@redhat.com>
25659 * passes.def (pass_warn_printf): Run after SSA.
25661 2021-05-05 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
25663 * config/arm/neon.md (neon_vtst_combine<mode>): New pattern.
25664 * config/arm/predicates.md (minus_one_operand): New predicate.
25666 2021-05-05 Jeff Law <jlaw@tachyum.com>
25668 * config/avr/avr.md: Remove references to CC_STATUS_INIT.
25670 2021-05-05 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
25672 PR rtl-optimization/100263
25673 * postreload.c (move2add_valid_value_p): Ensure register can
25676 2021-05-05 Eric Botcazou <ebotcazou@adacore.com>
25678 PR rtl-optimization/100411
25679 * cfgcleanup.c (try_crossjump_to_edge): Also skip end of prologue
25680 and beginning of function markers.
25682 2021-05-05 Jeff Law <jlaw@tachyum.com>
25684 * config/cr16/cr16.h (NOTICE_UPDATE_CC): Remove.
25685 * config/cr16/cr16.c (notice_update_cc): Remove.
25686 * config/cr16/cr16-protos.h (notice_update_cc): Remove.
25688 2021-05-05 Uroš Bizjak <ubizjak@gmail.com>
25691 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
25692 Handle V8QI, V4HI and V2SI modes.
25693 * config/i386/i386.c (ix86_build_const_vector): Handle V2SImode.
25694 (ix86_build_signbit_mask): Ditto.
25695 * config/i386/mmx.md (MMXMODE14): New mode iterator.
25696 (<smaxmin:code><MMXMODE14:mode>3): New expander.
25697 (*mmx_<smaxmin:code><MMXMODE14:mode>3): New insn pattern.
25698 (<umaxmin:code><MMXMODE24:mode>3): New expander.
25699 (*mmx_<umaxmin:code><MMXMODE24:mode>3): New insn pattern.
25700 (vec_cmp<MMXMODEI:mode><MMXMODEI:mode>): New expander.
25701 (vec_cmpu<MMXMODEI:mode><MMXMODEI:mode>): Ditto.
25702 (vcond<MMXMODEI:mode><MMXMODEI:mode>): Ditto.
25703 (vcondu<MMXMODEI:mode><MMXMODEI:mode>): Ditto.
25704 (vcond_mask_<MMXMODEI:mode><MMXMODEI:mode>): Ditto.
25706 2021-05-05 Eric Botcazou <ebotcazou@adacore.com>
25708 * dwarf2out.c (loc_list_from_tree_1) <DECL>: During early DWARF, do
25709 not expand the VALUE_EXPR of variables put in the non-local frame.
25710 * gimplify.c (gimplify_type_sizes) <RECORD_TYPE>: If the type is not
25711 to be ignored for debug info, ensure its variable offsets are not.
25713 2021-05-05 Richard Biener <rguenther@suse.de>
25715 PR tree-optimization/79333
25716 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt):
25717 Fold stmt following SSA edges.
25719 2021-05-05 Richard Biener <rguenther@suse.de>
25721 PR middle-end/100394
25722 * calls.c (expand_call): Preserve possibly throwing calls.
25723 * cfgexpand.c (expand_call_stmt): When a call can throw signal
25724 RTL expansion there are side-effects.
25725 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Simplify,
25726 mark all possibly throwing stmts necessary unless we can elide
25728 * tree-ssa-dse.c (pass_dse::execute): Preserve exceptions unless
25729 -fdelete-dead-exceptions.
25730 * tree.h (DECL_PURE_P): Add note about exceptions.
25732 2021-05-05 Alexandre Oliva <oliva@adacore.com>
25734 * config/i386/vxworks.h (DBX_REGISTER_NUMBER): Make it
25737 2021-05-04 David Edelsohn <dje.gcc@gmail.com>
25739 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
25740 get_fnname_from_decl for name of thunk.
25741 * config/rs6000/rs6000.c (rs6000_declare_alias): Use assemble_name
25742 and ASM_OUTPUT_LABEL.
25743 (rs6000_xcoff_declare_function_name): Use assemble_name and
25745 (rs6000_xcoff_declare_object_name): Use ASM_OUTPUT_LABEL.
25746 (rs6000_xcoff_encode_section_info): Don't add mapping class
25747 for aliases. Always add [DS] mapping class to primary
25749 (rs6000_asm_weaken_decl): Don't explicitly add [DS].
25751 2021-05-04 Martin Sebor <msebor@redhat.com>
25753 PR middle-end/100307
25754 * builtins.c (compute_objsize_r): Clear base0 for pointers.
25756 2021-05-04 Jeff Law <jlaw@tachyum.com>
25758 * config/bfin/bfin.h (NOTICE_UPDATE_CC): Remove.
25760 2021-05-04 Segher Boessenkool <segher@kernel.crashing.org>
25762 * caller-save.c: Remove CC0.
25763 * cfgcleanup.c: Remove CC0.
25764 * cfgrtl.c: Remove CC0.
25765 * combine.c: Remove CC0.
25766 * compare-elim.c: Remove CC0.
25767 * conditions.h: Remove CC0.
25768 * config/h8300/h8300.h: Remove CC0.
25769 * config/h8300/h8300-protos.h: Remove CC0.
25770 * config/h8300/peepholes.md: Remove CC0.
25771 * config/i386/x86-tune-sched.c: Remove CC0.
25772 * config/m68k/m68k.c: Remove CC0.
25773 * config/rl78/rl78.c: Remove CC0.
25774 * config/sparc/sparc.c: Remove CC0.
25775 * config/xtensa/xtensa.c: Remove CC0.
25776 (gen_conditional_move): Use pc_rtx instead of cc0_rtx in a piece of
25777 RTL where that is used as a placeholder only.
25778 * cprop.c: Remove CC0.
25779 * cse.c: Remove CC0.
25780 * cselib.c: Remove CC0.
25781 * df-problems.c: Remove CC0.
25782 * df-scan.c: Remove CC0.
25783 * doc/md.texi: Remove CC0. Adjust an example.
25784 * doc/rtl.texi: Remove CC0. Adjust an example.
25785 * doc/tm.texi: Regenerate.
25786 * doc/tm.texi.in: Remove CC0.
25787 * emit-rtl.c: Remove CC0.
25788 * final.c: Remove CC0.
25789 * fwprop.c: Remove CC0.
25790 * gcse-common.c: Remove CC0.
25791 * gcse.c: Remove CC0.
25792 * genattrtab.c: Remove CC0.
25793 * genconfig.c: Remove CC0.
25794 * genemit.c: Remove CC0.
25795 * genextract.c: Remove CC0.
25796 * gengenrtl.c: Remove CC0.
25797 * genrecog.c: Remove CC0.
25798 * haifa-sched.c: Remove CC0.
25799 * ifcvt.c: Remove CC0.
25800 * ira-costs.c: Remove CC0.
25801 * ira.c: Remove CC0.
25802 * jump.c: Remove CC0.
25803 * loop-invariant.c: Remove CC0.
25804 * lra-constraints.c: Remove CC0.
25805 * lra-eliminations.c: Remove CC0.
25806 * optabs.c: Remove CC0.
25807 * postreload-gcse.c: Remove CC0.
25808 * postreload.c: Remove CC0.
25809 * print-rtl.c: Remove CC0.
25810 * read-rtl-function.c: Remove CC0.
25811 * reg-notes.def: Remove CC0.
25812 * reg-stack.c: Remove CC0.
25813 * reginfo.c: Remove CC0.
25814 * regrename.c: Remove CC0.
25815 * reload.c: Remove CC0.
25816 * reload1.c: Remove CC0.
25817 * reorg.c: Remove CC0.
25818 * resource.c: Remove CC0.
25819 * rtl.c: Remove CC0.
25820 * rtl.def: Remove CC0.
25821 * rtl.h: Remove CC0.
25822 * rtlanal.c: Remove CC0.
25823 * sched-deps.c: Remove CC0.
25824 * sched-rgn.c: Remove CC0.
25825 * shrink-wrap.c: Remove CC0.
25826 * simplify-rtx.c: Remove CC0.
25827 * system.h: Remove CC0. Poison NOTICE_UPDATE_CC, CC_STATUS_MDEP_INIT,
25828 CC_STATUS_MDEP, and CC_STATUS.
25829 * target.def: Remove CC0.
25830 * valtrack.c: Remove CC0.
25831 * var-tracking.c: Remove CC0.
25833 2021-05-04 Richard Biener <rguenther@suse.de>
25835 PR tree-optimization/100414
25836 * tree-ssa-phiopt.c (get_non_trapping): Do not compute dominance
25838 (tree_ssa_phiopt_worker): But unconditionally here.
25840 2021-05-04 Tobias Burnus <tobias@codesourcery.com>
25842 * omp-low.c (lower_rec_input_clauses, lower_reduction_clauses): Handle
25843 && and || with floating-point and complex arguments.
25845 2021-05-04 Eric Botcazou <ebotcazou@adacore.com>
25847 * tree-inline.c (insert_debug_decl_map): Delete.
25848 (copy_debug_stmt): Minor tweak.
25849 (setup_one_parameter): Do not use a variable if the value is either
25850 a read-only DECL or a non-addressable local variable in the caller.
25851 In this case, insert the debug-only variable in the map manually.
25852 (expand_call_inline): Do not generate a CLOBBER for these values.
25853 * tree-inline.h (debug_map): Minor tweak.
25855 2021-05-04 Eric Botcazou <ebotcazou@adacore.com>
25857 * builtins.c (builtin_with_linkage_p): Return true for stp[n]cpy.
25858 * symtab.c (symtab_node::output_to_lto_symbol_table_p): Tidy up.
25860 2021-05-04 Richard Biener <rguenther@suse.de>
25862 PR tree-optimization/100329
25863 * tree-ssa-reassoc.c (can_reassociate_p): Do not reassociate
25865 (insert_stmt_after): Assert we're not running into asm goto.
25867 2021-05-04 Richard Biener <rguenther@suse.de>
25869 PR tree-optimization/100398
25870 * tree-ssa-dse.c (pass_dse::execute): Preserve control
25873 2021-05-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
25875 * builtins.c (try_store_by_multiple_pieces): Fix constfun's prototype.
25877 2021-05-04 Alexandre Oliva <oliva@adacore.com>
25879 * builtins.c (try_store_by_multiple_pieces): New.
25880 (expand_builtin_memset_args): Use it. If target_char_cast
25881 fails, proceed as for non-constant val. Pass len's ctz to...
25882 * expr.c (clear_storage_hints): ... this. Try store by
25883 multiple pieces after setmem.
25884 (clear_storage): Adjust.
25885 * expr.h (clear_storage_hints): Likewise.
25886 (try_store_by_multiple_pieces): Declare.
25887 * passes.def: Replace the last copy_prop with ccp.
25889 2021-05-03 Tom de Vries <tdevries@suse.de>
25892 * omp-low.c (lower_rec_input_clauses): Disable SIMT for user-defined
25895 2021-05-03 Richard Biener <rguenther@suse.de>
25897 * tree-ssa-dse.c (dse_classify_store): Track two PHI defs.
25899 2021-05-03 Richard Biener <rguenther@suse.de>
25901 * tree-ssa-dse.c: Do not include domwalk.h but cfganal.h.
25902 (dse_dom_walker): Remove.
25903 (dse_dom_walker::dse_optimize_stmt): Rename...
25904 (dse_optimize_stmt): ... to this, pass in live_bytes sbitmap.
25905 (dse_dom_walker::before_dom_children): Inline ...
25906 (pass_dse::execute): ... here. Perform a reverse program
25909 2021-05-03 H.J. Lu <hjl.tools@gmail.com>
25912 * configure: Regenerated.
25914 2021-05-03 Ilya Leoshkevich <iii@linux.ibm.com>
25917 * config/s390/s390.c (s390_hard_fp_reg_p): New function.
25918 (s390_md_asm_adjust): Handle hard registers.
25920 2021-05-03 Jakub Jelinek <jakub@redhat.com>
25922 PR tree-optimization/100382
25923 * tree-ssa-dse.c: Include tree-eh.h.
25924 (dse_dom_walker::before_dom_children): Don't remove stmts if
25925 stmt_unremovable_because_of_non_call_eh_p is true.
25927 2021-05-02 David Edelsohn <dje.gcc@gmail.com>
25929 * varasm.c (compute_reloc_for_var): Split out from...
25930 (get_variable_section): Use it.
25931 * output.h (compute_reloc_for_var): Declare.
25932 * config/rs6000/rs6000-protos.h
25933 (rs6000_xcoff_asm_output_aligned_decl_common): Change alignment to
25935 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address_aix):
25936 Don't append storage mapping class to symbol.
25937 (rs6000_xcoff_asm_named_section): Add BS and UL mapping classes.
25938 Don't convert TLS BSS to common.
25939 (rs6000_xcoff_unique_section): Don't fall back to select_secton.
25940 (rs6000_xcoff_section_type_flags): Add SECTION_BSS if DECL is
25942 (rs6000_xcoff_asm_globalize_decl_name): Don't strip storage
25944 (rs6000_xcoff_asm_output_aligned_decl_common): Align is unsigned int.
25945 If align is 0 from TLS class, use the same rules as varasm.c
25946 If not common, switch to BSS section manually.
25947 If common, emit appropriate comm or lcomm directive.
25948 (rs6000_xcoff_encode_section_info): Add logic to append all
25949 storage mapping classes.
25950 (rs6000_asm_weaken_decl): Adjust for qualname symbols.
25951 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
25952 rs6000_xcoff_asm_output_aligned_decl_common.
25953 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
25954 rs6000_xcoff_asm_output_aligned_decl_common.
25955 (ASM_OUTPUT_TLS_COMMON): Use
25956 rs6000_xcoff_asm_output_aligned_decl_common.
25958 2021-05-02 Jakub Jelinek <jakub@redhat.com>
25961 * config/nvptx/nvptx.c (nvptx_sese_pseudo): Use nullptr instead of 0
25962 as first argument of pseudo_node_t constructors.
25964 2021-05-02 Jakub Jelinek <jakub@redhat.com>
25967 * config/i386/t-i386 (TM_H): Add $(srcdir)/config/i386/i386-isa.def.
25969 2021-05-01 Aldy Hernandez <aldyh@redhat.com>
25971 * value-range.cc (DEFINE_INT_RANGE_GC_STUBS): Remove.
25972 (gt_pch_nx (int_range<1> *&)): New.
25973 (gt_ggc_mx (int_range<1> *&)): New.
25974 * value-range.h (class irange): Add GTY support for
25977 2021-05-01 Geng Qi <gengqi@linux.alibaba.com>
25979 * doc/options.texi (Negative): Change either or to both and.
25981 2021-04-30 Jonathan Wright <jonathan.wright@arm.com>
25983 * config/aarch64/aarch64-simd-builtins.def: Add
25984 float_ml[as][q]_laneq builtin generator macros.
25985 * config/aarch64/aarch64-simd.md (mul_laneq<mode>3): Define.
25986 (aarch64_float_mla_laneq<mode>): Define.
25987 (aarch64_float_mls_laneq<mode>): Define.
25988 * config/aarch64/arm_neon.h (vmla_laneq_f32): Use RTL builtin
25989 instead of GCC vector extensions.
25990 (vmlaq_laneq_f32): Likewise.
25991 (vmls_laneq_f32): Likewise.
25992 (vmlsq_laneq_f32): Likewise.
25994 2021-04-30 Jonathan Wright <jonathan.wright@arm.com>
25996 * config/aarch64/aarch64-simd-builtins.def: Add
25997 float_ml[as]_lane builtin generator macros.
25998 * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt<mode>):
26000 (mul_lane<mode>3): This, and re-order arguments.
26001 (aarch64_float_mla_lane<mode>): Define.
26002 (aarch64_float_mls_lane<mode>): Define.
26003 * config/aarch64/arm_neon.h (vmla_lane_f32): Use RTL builtin
26004 instead of GCC vector extensions.
26005 (vmlaq_lane_f32): Likewise.
26006 (vmls_lane_f32): Likewise.
26007 (vmlsq_lane_f32): Likewise.
26009 2021-04-30 Jonathan Wright <jonathan.wright@arm.com>
26011 * config/aarch64/aarch64-simd-builtins.def: Add float_ml[as]
26012 builtin generator macros.
26013 * config/aarch64/aarch64-simd.md (aarch64_float_mla<mode>):
26015 (aarch64_float_mls<mode>): Define.
26016 * config/aarch64/arm_neon.h (vmla_f32): Use RTL builtin
26017 instead of relying on GCC vector extensions.
26018 (vmla_f64): Likewise.
26019 (vmlaq_f32): Likewise.
26020 (vmlaq_f64): Likewise.
26021 (vmls_f32): Likewise.
26022 (vmls_f64): Likewise.
26023 (vmlsq_f32): Likewise.
26024 (vmlsq_f64): Likewise.
26025 * config/aarch64/iterators.md: Define VDQF_DF mode iterator.
26027 2021-04-30 Jonathan Wright <jonathan.wright@arm.com>
26029 * config/aarch64/aarch64-simd-builtins.def: Add
26030 float_ml[as]_n_builtin generator macros.
26031 * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_from_dup<mode>):
26033 (mul_n<mode>3): This, and re-order arguments.
26034 (aarch64_float_mla_n<mode>): Define.
26035 (aarch64_float_mls_n<mode>): Define.
26036 * config/aarch64/arm_neon.h (vmla_n_f32): Use RTL builtin
26037 instead of inline asm.
26038 (vmlaq_n_f32): Likewise.
26039 (vmls_n_f32): Likewise.
26040 (vmlsq_n_f32): Likewise.
26042 2021-04-30 Jonathan Wright <joanthan.wright@arm.com>
26044 * config/aarch64/aarch64-simd-builtins.def: Add pmull[2]
26045 builtin generator macros.
26046 * config/aarch64/aarch64-simd.md (aarch64_pmullv8qi): Define.
26047 (aarch64_pmull_hiv16qi_insn): Define.
26048 (aarch64_pmull_hiv16qi): Define.
26049 * config/aarch64/arm_neon.h (vmull_high_p8): Use RTL builtin
26050 instead of inline asm.
26051 (vmull_p8): Likewise.
26053 2021-04-30 Senthil Kumar Selvaraj <saaadhu@gcc.gnu.org>
26055 * config/avr/avr.md: Adjust peepholes to match and
26056 generate parallels with clobber of REG_CC.
26057 (mov<mode>_insn): Rename to mov<mode>_insn_split.
26058 (*mov<mode>_insn): Rename to mov<mode>_insn.
26060 2021-04-30 David Edelsohn <dje.gcc@gmail.com>
26062 * varasm.c (use_blocks_for_decl_p): Don't use section anchors
26063 for VAR_DECLs if -fdata-sections enabled.
26065 2021-04-30 Michael Meissner <meissner@linux.ibm.com>
26067 PR bootstrap/100327
26068 * config/rs6000/rs6000.c
26069 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Define.
26070 (rs6000_libgcc_floating_mode_supported_p): New target hook.
26072 2021-04-30 Aldy Hernandez <aldyh@redhat.com>
26074 * tree-ssa-threadbackward.c (class thread_jumps): Split out code
26076 (class back_threader_registry): ...to here...
26077 (class back_threader_profitability): ...and here...
26078 (thread_jumps::thread_through_all_blocks): Remove argument.
26079 (back_threader_registry::back_threader_registry): New.
26080 (back_threader_registry::~back_threader_registry): New.
26081 (back_threader_registry::thread_through_all_blocks): New.
26082 (thread_jumps::profitable_jump_thread_path): Move from here...
26083 (back_threader_profitability::profitable_path_p): ...to here.
26084 (thread_jumps::find_taken_edge): New.
26085 (thread_jumps::convert_and_register_current_path): Move...
26086 (back_threader_registry::register_path): ...to here.
26087 (thread_jumps::register_jump_thread_path_if_profitable): Move...
26088 (thread_jumps::maybe_register_path): ...to here.
26089 (thread_jumps::handle_phi): Call find_taken_edge and
26090 maybe_register_path.
26091 (thread_jumps::handle_assignment): Same.
26092 (thread_jumps::fsm_find_control_statement_thread_paths): Remove
26093 tree argument to handle_phi and handle_assignment.
26094 (thread_jumps::find_jump_threads_backwards): Set m_name. Remove
26095 set of m_speed_p and m_max_threaded_paths.
26096 (pass_thread_jumps::execute): Remove second argument from
26097 find_jump_threads_backwards.
26098 (pass_early_thread_jumps::execute): Same.
26100 2021-04-30 Aldy Hernandez <aldyh@redhat.com>
26102 * tree-ssa-dom.c (class dom_jump_threader_simplifier): New.
26103 (class dom_opt_dom_walker): Initialize some class variables.
26104 (pass_dominator::execute): Pass evrp_range_analyzer and
26105 dom_jump_threader_simplifier to dom_opt_dom_walker.
26106 Adjust for some functions moving into classes.
26107 (simplify_stmt_for_jump_threading): Adjust and move to...
26108 (jump_threader_simplifier::simplify): ...here.
26109 (dom_opt_dom_walker::before_dom_children): Adjust for
26110 m_evrp_range_analyzer.
26111 (dom_opt_dom_walker::after_dom_children): Remove x_vr_values hack.
26112 (test_for_singularity): Place in dom_opt_dom_walker class.
26113 (dom_opt_dom_walker::optimize_stmt): The argument
26114 evrp_range_analyzer is now a class field.
26115 * tree-ssa-threadbackward.c (class thread_jumps): Add m_registry.
26116 (thread_jumps::thread_through_all_blocks): New.
26117 (thread_jumps::convert_and_register_current_path): Use m_registry.
26118 (pass_thread_jumps::execute): Adjust for thread_through_all_blocks
26119 being in the threader class.
26120 (pass_early_thread_jumps::execute): Same.
26121 * tree-ssa-threadedge.c (threadedge_initialize_values): Move...
26122 (jump_threader::jump_threader): ...here.
26123 (threadedge_finalize_values): Move...
26124 (jump_threader::~jump_threader): ...here.
26125 (jump_threader::remove_jump_threads_including): New.
26126 (jump_threader::thread_through_all_blocks): New.
26127 (record_temporary_equivalences_from_phis): Move...
26128 (jump_threader::record_temporary_equivalences_from_phis): ...here.
26129 (record_temporary_equivalences_from_stmts_at_dest): Move...
26130 (jump_threader::record_temporary_equivalences_from_stmts_at_dest):
26132 (simplify_control_stmt_condition_1): Move to jump_threader class.
26133 (simplify_control_stmt_condition): Move...
26134 (jump_threader::simplify_control_stmt_condition): ...here.
26135 (thread_around_empty_blocks): Move...
26136 (jump_threader::thread_around_empty_blocks): ...here.
26137 (thread_through_normal_block): Move...
26138 (jump_threader::thread_through_normal_block): ...here.
26139 (thread_across_edge): Move...
26140 (jump_threader::thread_across_edge): ...here.
26141 (thread_outgoing_edges): Move...
26142 (jump_threader::thread_outgoing_edges): ...here.
26143 * tree-ssa-threadedge.h: Move externally facing functings...
26144 (class jump_threader): ...here...
26145 (class jump_threader_simplifier): ...and here.
26146 * tree-ssa-threadupdate.c (struct redirection_data): Remove comment.
26147 (jump_thread_path_allocator::jump_thread_path_allocator): New.
26148 (jump_thread_path_allocator::~jump_thread_path_allocator): New.
26149 (jump_thread_path_allocator::allocate_thread_edge): New.
26150 (jump_thread_path_allocator::allocate_thread_path): New.
26151 (jump_thread_path_registry::jump_thread_path_registry): New.
26152 (jump_thread_path_registry::~jump_thread_path_registry): New.
26153 (jump_thread_path_registry::allocate_thread_edge): New.
26154 (jump_thread_path_registry::allocate_thread_path): New.
26155 (dump_jump_thread_path): Make extern.
26156 (debug (const vec<jump_thread_edge *> &path)): New.
26157 (struct removed_edges): Move to tree-ssa-threadupdate.h.
26158 (struct thread_stats_d): Remove.
26159 (remove_ctrl_stmt_and_useless_edges): Make static.
26160 (lookup_redirection_data): Move...
26161 (jump_thread_path_registry::lookup_redirection_data): ...here.
26162 (ssa_redirect_edges): Make static.
26163 (thread_block_1): Move...
26164 (jump_thread_path_registry::thread_block_1): ...here.
26165 (thread_block): Move...
26166 (jump_thread_path_registry::thread_block): ...here.
26167 (thread_through_loop_header): Move...
26168 (jump_thread_path_registry::thread_through_loop_header): ...here.
26169 (mark_threaded_blocks): Move...
26170 (jump_thread_path_registry::mark_threaded_blocks): ...here.
26171 (debug_path): Move...
26172 (jump_thread_path_registry::debug_path): ...here.
26173 (debug_all_paths): Move...
26174 (jump_thread_path_registry::dump): ..here.
26175 (rewire_first_differing_edge): Move...
26176 (jump_thread_path_registry::rewire_first_differing_edge): ...here.
26177 (adjust_paths_after_duplication): Move...
26178 (jump_thread_path_registry::adjust_paths_after_duplication): ...here.
26179 (duplicate_thread_path): Move...
26180 (jump_thread_path_registry::duplicate_thread_path): ..here.
26181 (remove_jump_threads_including): Move...
26182 (jump_thread_path_registry::remove_jump_threads_including): ...here.
26183 (thread_through_all_blocks): Move to...
26184 (jump_thread_path_registry::thread_through_all_blocks): ...here.
26185 (delete_jump_thread_path): Remove.
26186 (register_jump_thread): Move...
26187 (jump_thread_path_registry::register_jump_thread): ...here.
26188 * tree-ssa-threadupdate.h: Move externally facing functions...
26189 (class jump_thread_path_allocator): ...here...
26190 (class jump_thread_path_registry): ...and here.
26191 (thread_through_all_blocks): Remove.
26192 (struct removed_edges): New.
26193 (register_jump_thread): Remove.
26194 (remove_jump_threads_including): Remove.
26195 (delete_jump_thread_path): Remove.
26196 (remove_ctrl_stmt_and_useless_edges): Remove.
26197 (free_dom_edge_info): New prototype.
26198 * tree-vrp.c: Remove x_vr_values hack.
26199 (class vrp_jump_threader_simplifier): New.
26200 (vrp_jump_threader_simplifier::simplify): New.
26201 (vrp_jump_threader::vrp_jump_threader): Adjust method signature.
26202 Remove m_dummy_cond.
26203 Instantiate m_simplifier and m_threader.
26204 (vrp_jump_threader::thread_through_all_blocks): New.
26205 (vrp_jump_threader::simplify_stmt): Remove.
26206 (vrp_jump_threader::after_dom_children): Do not set m_dummy_cond.
26207 Remove x_vr_values hack.
26208 (execute_vrp): Adjust for thread_through_all_blocks being in a
26211 2021-04-30 Christophe Lyon <christophe.lyon@linaro.org>
26213 * genflags.c (gen_insn): Print failed expansion string.
26215 2021-04-30 H.J. Lu <hjl.tools@gmail.com>
26217 * expr.c (alignment_for_piecewise_move): Call mode_for_size
26218 without limit to MAX_FIXED_MODE_SIZE.
26220 2021-04-30 H.J. Lu <hjl.tools@gmail.com>
26222 PR middle-end/90773
26223 * builtins.c (builtin_memset_gen_str): Don't use return from
26224 simplify_gen_subreg.
26226 2021-04-30 Uroš Bizjak <ubizjak@gmail.com>
26229 * config/i386/i386.md (*add<mode>3_carry_0r): New insn pattern.
26230 (*addsi3_carry_zext_0r): Ditto.
26231 (*sub<mode>3_carry_0): Ditto.
26232 (*subsi3_carry_zext_0r): Ditto.
26233 * config/i386/predicates.md (ix86_carry_flag_unset_operator):
26235 * config/i386/i386.c (ix86_rtx_costs) <case PLUS, case MINUS>:
26236 Also consider ix86_carry_flag_unset_operator to calculate
26237 the cost of adc/sbb insn.
26239 2021-04-30 Roman Zhuykov <zhroma@ispras.ru>
26241 PR rtl-optimization/100225
26242 PR rtl-optimization/84878
26243 * modulo-sched.c (sms_schedule): Use note_stores to skip loops
26244 where we have an instruction which touches (writes) any hard
26245 register from df->regular_block_artificial_uses set.
26246 Allow not-single-set instruction only right before basic block
26249 2021-04-30 Geng Qi <gengqi@linux.alibaba.com>
26251 * config/riscv/riscv.opt (march=,mabi=): Negative itself.
26253 2021-04-30 LevyHsu <admin@levyhsu.com>
26255 * config/riscv/riscv.c (riscv_min_arithmetic_precision): New.
26256 * config/riscv/riscv.h (TARGET_MIN_ARITHMETIC_PRECISION): New.
26257 * config/riscv/riscv.md (addv<mode>4, uaddv<mode>4): New.
26258 (subv<mode>4, usubv<mode>4, mulv<mode>4, umulv<mode>4): New.
26260 2021-04-29 Alexandre Oliva <oliva@adacore.com>
26262 * config.gcc: Merged x86 and x86_64 cpu_type-setting cases.
26264 2021-04-29 Alexandre Oliva <oliva@adacore.com>
26266 * config/i386/i386.h (ASM_OUTPUT_MAX_SKIP_PAD): Rename to...
26267 (ASM_OUTPUT_MAX_SKIP_ALIGN): ... this. Enclose in do/while(0).
26268 * config/i386/i386.c: Adjust.
26269 * config/i386/i386.md: Adjust.
26270 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Drop.
26271 * config/i386/dragonfly.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
26272 * config/i386/freebsd.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
26273 * config/i386/gas.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
26274 * config/i386/gnu-user.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
26275 * config/i386/iamcu.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
26276 * config/i386/lynx.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
26277 * config/i386/netbsd-elf.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
26278 * config/i386/openbsdelf.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
26279 * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
26280 (ASM_OUTPUT_MAX_SKIP_PAD): Likewise.
26282 2021-04-29 Uroš Bizjak <ubizjak@gmail.com>
26284 * config/i386/i386-expand.c (ix86_expand_int_compare):
26285 Swap operands of GTU and LEU comparison to emit carry flag comparison.
26286 * config/i386/i386.md (*add<mode>3_carry_0): Change insn
26287 predicate to allow more combine opportunities with memory operands.
26288 (*sub<mode>3_carry_0): Ditto.
26290 2021-04-29 Richard Sandiford <richard.sandiford@arm.com>
26292 PR rtl-optimization/100303
26293 * rtl-ssa/accesses.cc (function_info::make_use_available): Take a
26294 boolean that indicates whether the use will only be used in
26295 debug instructions. Treat it in the same way that existing
26296 cross-EBB debug references would be handled if so.
26297 (function_info::make_uses_available): Likewise.
26298 * rtl-ssa/functions.h (function_info::make_uses_available): Update
26299 prototype accordingly.
26300 (function_info::make_uses_available): Likewise.
26301 * fwprop.c (try_fwprop_subst): Update call accordingly.
26303 2021-04-29 Jeff Law <jlaw@tachyum.com>
26305 * config/nios2/nios2-protos.h (nios2_fpu_insn_enabled): Move outside
26308 2021-04-29 Uroš Bizjak <ubizjak@gmail.com>
26309 Richard Biener <rguenther@suse.de>
26312 * config/i386/i386-builtin.def (IX86_BUILTIN_MASKLOADPD)
26313 (IX86_BUILTIN_MASKLOADPS, IX86_BUILTIN_MASKLOADPD256)
26314 (IX86_BUILTIN_MASKLOADPS256, IX86_BUILTIN_MASKLOADD)
26315 (IX86_BUILTIN_MASKLOADQ, IX86_BUILTIN_MASKLOADD256)
26316 (IX86_BUILTIN_MASKLOADQ256): Move from SPECIAL_ARGS
26317 to PURE_ARGS category.
26318 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
26319 Handle PURE_ARGS category.
26320 * config/i386/i386-expand.c (ix86_expand_builtin): Ditto.
26322 2021-04-29 Eric Botcazou <ebotcazou@adacore.com>
26324 * configure.ac: Check for the presence of sys/locking.h header and
26325 for whether _LK_LOCK is supported by _locking.
26326 * configure: Regenerate.
26327 * config.in: Likewise.
26328 * gcov-io.h: Define GCOV_LOCKED_WITH_LOCKING if HOST_HAS_LK_LOCK.
26329 * gcov-io.c (gcov_open): Add support for GCOV_LOCKED_WITH_LOCKING.
26330 * system.h: Include <sys/locking.h> if HAVE_SYS_LOCKING_H.
26332 2021-04-29 Uroš Bizjak <ubizjak@gmail.com>
26334 * config/i386/predicates.md (fcmov_comparison_operator):
26335 Do not check for trivial FP comparison operator.
26336 <case GEU, case LTU>: Allow CCGZmode.
26337 <case GTU, case LEU>: Do not allow CCCmode.
26338 (ix86_comparison_operator) <case GTU, case LEU>: Allow only CCmode.
26339 (ix86_carry_flag_operator): Match only LTU and UNLT code.
26340 Do not check for trivial FP comparison operator. Allow CCGZmode.
26342 2021-04-29 Tom de Vries <tdevries@suse.de>
26344 * omp-expand.c (expand_omp_simd): Add step_orig, and replace uses of
26345 fd->loop.step by either step or orig_step.
26347 2021-04-29 Eric Botcazou <ebotcazou@adacore.com>
26349 * config/sparc/sparc.c (gen_load_pcrel_sym): Delete.
26350 (load_got_register): Do the PIC dance here.
26351 (sparc_legitimize_tls_address): Simplify.
26352 (sparc_emit_probe_stack_range): Likewise.
26353 (sparc32_initialize_trampoline): Likewise.
26354 (sparc64_initialize_trampoline): Likewise.
26355 * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Add @ marker.
26356 (probe_stack_range<P:mode>): Likewise.
26357 (flush<P:mode>): Likewise.
26358 (tgd_hi22<P:mode>): Likewise.
26359 (tgd_lo10<P:mode>): Likewise.
26360 (tgd_add<P:mode>): Likewise.
26361 (tgd_call<P:mode>): Likewise.
26362 (tldm_hi22<P:mode>): Likewise.
26363 (tldm_lo10<P:mode>): Likewise.
26364 (tldm_add<P:mode>): Likewise.
26365 (tldm_call<P:mode>): Likewise.
26366 (tldo_hix22<P:mode>): Likewise.
26367 (tldo_lox10<P:mode>): Likewise.
26368 (tldo_add<P:mode>): Likewise.
26369 (tie_hi22<P:mode>): Likewise.
26370 (tie_lo10<P:mode>): Likewise.
26371 (tie_add<P:mode>): Likewise.
26372 (tle_hix22<P:mode>): Likewise.
26373 (tle_lox10<P:mode>): Likewise.
26374 (stack_protect_setsi): Rename to...
26375 (stack_protect_set32): ...this.
26376 (stack_protect_setdi): Rename to...
26377 (stack_protect_set64): ...this.
26378 (stack_protect_set): Adjust calls to above.
26379 (stack_protect_testsi): Rename to...
26380 (stack_protect_test32): ...this.
26381 (stack_protect_testdi): Rename to...
26382 (stack_protect_test64): ...this.
26383 (stack_protect_test): Adjust calls to above.
26385 2021-04-29 H.J. Lu <hjl.tools@gmail.com>
26387 PR middle-end/90773
26388 * builtins.c (builtin_memcpy_read_str): Add a dummy argument.
26389 (builtin_strncpy_read_str): Likewise.
26390 (builtin_memset_read_str): Add an argument for the previous RTL
26391 information and generate the new RTL from the previous RTL info.
26392 (builtin_memset_gen_str): Likewise.
26393 * builtins.h (builtin_strncpy_read_str): Update the prototype.
26394 (builtin_memset_read_str): Likewise.
26395 * expr.c (by_pieces_ninsns): If targetm.overlap_op_by_pieces_p()
26396 returns true, round up size and alignment to the widest integer
26397 mode for maximum size.
26398 (pieces_addr::adjust): Add a pointer to by_pieces_prev argument
26399 and pass it to m_constfn.
26400 (op_by_pieces_d): Add m_push and m_overlap_op_by_pieces.
26401 (op_by_pieces_d::op_by_pieces_d): Add a bool argument to
26402 initialize m_push. Initialize m_overlap_op_by_pieces with
26403 targetm.overlap_op_by_pieces_p ().
26404 (op_by_pieces_d::run): Pass the previous RTL information to
26405 pieces_addr::adjust and generate overlapping operations if
26406 m_overlap_op_by_pieces is true.
26408 (move_by_pieces_d::move_by_pieces_d): Updated for op_by_pieces_d
26410 (store_by_pieces_d::store_by_pieces_d): Updated for op_by_pieces_d
26412 (can_store_by_pieces): Use by_pieces_constfn on constfun.
26413 (store_by_pieces): Use by_pieces_constfn on constfun. Updated
26414 for op_by_pieces_d change.
26415 (clear_by_pieces_1): Add a dummy argument.
26416 (clear_by_pieces): Updated for op_by_pieces_d change.
26417 (compare_by_pieces_d::compare_by_pieces_d): Likewise.
26418 (string_cst_read_str): Add a dummy argument.
26419 * expr.h (by_pieces_constfn): Add a dummy argument.
26420 (by_pieces_prev): New.
26421 * target.def (overlap_op_by_pieces_p): New target hook.
26422 * config/i386/i386.c (TARGET_OVERLAP_OP_BY_PIECES_P): New.
26423 * doc/tm.texi.in: Add TARGET_OVERLAP_OP_BY_PIECES_P.
26424 * doc/tm.texi: Regenerated.
26426 2021-04-29 Richard Biener <rguenther@suse.de>
26428 PR tree-optimization/100253
26429 * tree-vect-stmts.c (vectorizable_load): Do not assume
26430 element alignment when DR_MISALIGNMENT is -1.
26431 (vectorizable_store): Likewise.
26433 2021-04-29 Jakub Jelinek <jakub@redhat.com>
26436 * config/aarch64/aarch64.c (aarch64_add_offset_1_temporaries): Use
26437 absu_hwi instead of abs_hwi.
26439 2021-04-29 Richard Biener <rguenther@suse.de>
26441 PR middle-end/38474
26442 * tree-ssa-structalias.c (add_graph_edge): Avoid direct
26443 forwarding when indirect forwarding through ESCAPED
26446 2021-04-29 Tom de Vries <tdevries@suse.de>
26449 * internal-fn.c (expand_GOMP_SIMT_ENTER_ALLOC)
26450 (expand_GOMP_SIMT_LAST_LANE, expand_GOMP_SIMT_ORDERED_PRED)
26451 (expand_GOMP_SIMT_VOTE_ANY, expand_GOMP_SIMT_XCHG_BFLY)
26452 (expand_GOMP_SIMT_XCHG_IDX): Ensure target is assigned to.
26454 2021-04-29 Richard Biener <rguenther@suse.de>
26456 PR tree-optimization/99912
26457 * tree-ssa-dse.c (dse_dom_walker::m_need_cfg_cleanup): New.
26458 (dse_dom_walker::todo): Likewise.
26459 (dse_dom_walker::dse_optimize_stmt): Move VDEF check to the
26461 (dse_dom_walker::before_dom_children): Remove trivially
26462 dead SSA defs and schedule CFG cleanup if we removed all
26464 (pass_dse::execute): Get TODO as computed by the DOM walker
26465 and return it. Wipe dominator info earlier.
26467 2021-04-29 Richard Biener <rguenther@suse.de>
26470 * ipa-prop.c (ipcp_modif_dom_walker::before_dom_children):
26471 Track blocks to cleanup EH in new m_need_eh_cleanup.
26472 (ipcp_modif_dom_walker::cleanup_eh): New.
26473 (ipcp_transform_function): Release dominator info before
26476 2021-04-29 Martin Sebor <msebor@redhat.com>
26478 PR middle-end/100250
26479 * attribs.c (attr_access::array_as_string): Avoid dereferencing
26480 a pointer when it's null.
26482 2021-04-29 Martin Sebor <msebor@redhat.com>
26484 * Makefile.in (OBJS): Add ipa-free-lang-data.o.
26485 * ipa-free-lang-data.cc: New file.
26486 * tree.c: Move pass free_lang_data to file above.
26487 (build_array_type_1): Declare extern.
26488 * tree.h (build_array_type_1): Declare.
26490 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
26492 * config/aarch64/aarch64-simd-builtins.def: Modify comment to
26493 make consistent with updated RTL pattern.
26494 * config/aarch64/aarch64-simd.md (aarch64_<sur>qmovn<mode>):
26495 Implement using ss_truncate and us_truncate rather than
26497 * config/aarch64/iterators.md: Remove redundant unspecs and
26498 iterator: UNSPEC_[SU]QXTN and SUQMOVN respectively.
26500 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
26502 * config/aarch64/arm_acle.h (__attribute__): Make intrinsic
26503 attributes consistent with those defined in arm_neon.h.
26505 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
26507 * config/aarch64/arm_fp16.h (__attribute__): Make intrinsic
26508 attributes consistent with those defined in arm_neon.h.
26510 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
26512 * config/aarch64/aarch64-simd-builtins.def: Add
26513 float_trunc_rodd builtin generator macros.
26514 * config/aarch64/aarch64-simd.md (aarch64_float_trunc_rodd_df):
26516 (aarch64_float_trunc_rodd_lo_v2sf): Define.
26517 (aarch64_float_trunc_rodd_hi_v4sf_le): Define.
26518 (aarch64_float_trunc_rodd_hi_v4sf_be): Define.
26519 (aarch64_float_trunc_rodd_hi_v4sf): Define.
26520 * config/aarch64/arm_neon.h (vcvtx_f32_f64): Use RTL builtin
26521 instead of inline asm.
26522 (vcvtx_high_f32_f64): Likewise.
26523 (vcvtxd_f32_f64): Likewise.
26524 * config/aarch64/iterators.md: Add FCVTXN unspec.
26526 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
26528 * config/aarch64/aarch64-simd-builtins.def: Add tbx1 builtin
26530 * config/aarch64/aarch64-simd.md (aarch64_tbx1<mode>):
26532 * config/aarch64/arm_neon.h (vqtbx1_s8): USE RTL builtin
26533 instead of inline asm.
26534 (vqtbx1_u8): Likewise.
26535 (vqtbx1_p8): Likewise.
26536 (vqtbx1q_s8): Likewise.
26537 (vqtbx1q_u8): Likewise.
26538 (vqtbx1q_p8): Likewise.
26539 (vtbx2_s8): Likewise.
26540 (vtbx2_u8): Likewise.
26541 (vtbx2_p8): Likewise.
26543 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
26545 * config/aarch64/aarch64-simd-builtins.def: Add tbl1 builtin
26547 * config/aarch64/arm_neon.h (vqtbl1_p8): Use RTL builtin
26548 instead of inline asm.
26549 (vqtbl1_s8): Likewise.
26550 (vqtbl1_u8): Likewise.
26551 (vqtbl1q_p8): Likewise.
26552 (vqtbl1q_s8): Likewise.
26553 (vqtbl1q_u8): Likewise.
26554 (vtbl1_s8): Likewise.
26555 (vtbl1_u8): Likewise.
26556 (vtbl1_p8): Likewise.
26557 (vtbl2_s8): Likewise.
26558 (vtbl2_u8): Likewise.
26559 (vtbl2_p8): Likewise.
26561 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
26563 * config/aarch64/aarch64-simd-builtins.def: Add polynomial
26564 ssri_n buitin generator macro.
26565 * config/aarch64/arm_neon.h (vsri_n_p8): Use RTL builtin
26566 instead of inline asm.
26567 (vsri_n_p16): Likewise.
26568 (vsri_n_p64): Likewise.
26569 (vsriq_n_p8): Likewise.
26570 (vsriq_n_p16): Likewise.
26571 (vsriq_n_p64): Likewise.
26573 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
26575 * config/aarch64/aarch64-simd-builtins.def: Use VALLP mode
26576 iterator for polynomial ssli_n builtin generator macro.
26577 * config/aarch64/arm_neon.h (vsli_n_p8): Use RTL builtin
26578 instead of inline asm.
26579 (vsli_n_p16): Likewise.
26580 (vsliq_n_p8): Likewise.
26581 (vsliq_n_p16): Likewise.
26582 * config/aarch64/iterators.md: Define VALLP mode iterator.
26584 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
26586 * config/aarch64/aarch64-simd-builtins.def: Use VDQV_L
26587 iterator to generate [su]adalp RTL builtins.
26588 * config/aarch64/aarch64-simd.md: Use VDQV_L iterator in
26589 [su]adalp RTL pattern.
26590 * config/aarch64/arm_neon.h (vpadal_s32): Use RTL builtin
26591 instead of inline asm.
26592 (vpadal_u32): Likewise.
26594 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
26596 * config/aarch64/aarch64-simd-builtins.def: Add [su]addlp
26597 builtin generator macros.
26598 * config/aarch64/aarch64-simd.md (aarch64_<su>addlp<mode>):
26600 * config/aarch64/arm_neon.h (vpaddl_s8): Use RTL builtin
26601 instead of inline asm.
26602 (vpaddl_s16): Likewise.
26603 (vpaddl_s32): Likewise.
26604 (vpaddl_u8): Likewise.
26605 (vpaddl_u16): Likewise.
26606 (vpaddl_u32): Likewise.
26607 (vpaddlq_s8): Likewise.
26608 (vpaddlq_s16): Likewise.
26609 (vpaddlq_s32): Likewise.
26610 (vpaddlq_u8): Likewise.
26611 (vpaddlq_u16): Likewise.
26612 (vpaddlq_u32): Liwewise.
26613 * config/aarch64/iterators.md: Define [SU]ADDLP unspecs with
26614 appropriate attributes.
26616 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
26618 * config/aarch64/aarch64-simd-builtins.def: Use VDQ_I iterator
26619 for aarch64_addp<mode> builtin macro generator.
26620 * config/aarch64/aarch64-simd.md: Use VDQ_I iterator in
26621 aarch64_addp<mode> RTL pattern.
26622 * config/aarch64/arm_neon.h (vpaddq_s8): Use RTL builtin
26623 instead of inline asm.
26624 (vpaddq_s16): Likewise.
26625 (vpaddq_s32): Likewise.
26626 (vpaddq_s64): Likewise.
26627 (vpaddq_u8): Likewise.
26628 (vpaddq_u16): Likewise.
26629 (vpaddq_u32): Likewise.
26630 (vpaddq_u64): Likewise.
26632 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
26634 * config/aarch64/aarch64-simd-builtins.def: Add sq[r]dmulh_n
26635 builtin generator macros.
26636 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_n<mode>):
26638 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Use RTL builtin
26639 instead of inline asm.
26640 (vqdmulh_n_s32): Likewise.
26641 (vqdmulhq_n_s16): Likewise.
26642 (vqdmulhq_n_s32): Likewise.
26643 (vqrdmulh_n_s16): Likewise.
26644 (vqrdmulh_n_s32): Likewise.
26645 (vqrdmulhq_n_s16): Likewise.
26646 (vqrdmulhq_n_s32): Likewise.
26648 2021-04-28 Tobias Burnus <tobias@codesourcery.com>
26650 * doc/install.texi (--enable-offload-defaulted): Document.
26652 2021-04-28 Senthil Kumar Selvaraj <saaadhu@gcc.gnu.org>
26654 * config/avr/avr-dimode.md: Turn existing patterns into
26655 define_insn_and_split style patterns where the splitter
26656 adds a clobber of the condition code register. Drop "cc"
26657 attribute. Add new patterns to match output of
26659 * config/avr/avr-fixed.md: Likewise.
26660 * config/avr/avr.c (cc_reg_rtx): New.
26661 (avr_parallel_insn_from_insns): Adjust insn count
26662 for removal of set of cc0.
26663 (avr_is_casesi_sequence): Likewise.
26664 (avr_casei_sequence_check_operands): Likewise.
26665 (avr_optimize_casesi): Likewise. Also insert
26666 new insns after jump_insn.
26667 (avr_pass_casesi::avr_rest_of_handle_casesi): Adjust
26668 for removal of set of cc0.
26669 (avr_init_expanders): Initialize cc_reg_rtx.
26670 (avr_regno_reg_class): Handle REG_CC.
26671 (cond_string): Remove usage of CC_OVERFLOW_UNUSABLE.
26672 (avr_notice_update_cc): Remove function.
26673 (ret_cond_branch): Remove usage of CC_OVERFLOW_UNUSABLE.
26674 (compare_condition): Adjust for PARALLEL with
26676 (out_shift_with_cnt): Likewise.
26677 (ashlhi3_out): Likewise.
26678 (ashrhi3_out): Likewise.
26679 (lshrhi3_out): Likewise.
26680 (avr_class_max_nregs): Return single reg for REG_CC.
26681 (avr_compare_pattern): Check for REG_CC instead
26683 (avr_reorg_remove_redundant_compare): Likewise.
26684 (avr_reorg):Adjust for PARALLEL with REG_CC clobber.
26685 (avr_hard_regno_nregs): Return single reg for REG_CC.
26686 (avr_hard_regno_mode_ok): Allow only CCmode for REG_CC.
26687 (avr_md_asm_adjust): Clobber REG_CC.
26688 (TARGET_HARD_REGNO_NREGS): Define.
26689 (TARGET_CLASS_MAX_NREGS): Define.
26690 (TARGET_MD_ASM_ADJUST): Define.
26691 * config/avr/avr.h (FIRST_PSEUDO_REGISTER): Adjust
26693 (enum reg_class): Add CC_REG class.
26694 (NOTICE_UPDATE_CC): Remove.
26695 (CC_OVERFLOW_UNUSABLE): Remove.
26696 (CC_NO_CARRY): Remove.
26697 * config/avr/avr.md: Turn existing patterns into
26698 define_insn_and_split style patterns where the splitter
26699 adds a clobber of the condition code register. Drop "cc"
26700 attribute. Add new patterns to match output of
26702 (sez): Remove unused pattern.
26704 2021-04-28 Richard Earnshaw <rearnsha@arm.com>
26707 * config/arm/arm.c (arm_hard_regno_mode_ok): Only allow VPR to be
26710 2021-04-28 Richard Sandiford <richard.sandiford@arm.com>
26713 * config/aarch64/constraints.md (Utq): Require the address to
26714 be valid for both the element mode and for V2DImode.
26716 2021-04-28 Jakub Jelinek <jakub@redhat.com>
26717 Tobias Burnus <tobias@codesourcery.com>
26719 * configure.ac (OFFLOAD_DEFAULTED): AC_DEFINE if offload-defaulted.
26720 * gcc.c (process_command): New variable.
26721 (driver::maybe_putenv_OFFLOAD_TARGETS): If OFFLOAD_DEFAULTED,
26722 set it if -foffload is defaulted.
26723 * lto-wrapper.c (OFFLOAD_TARGET_DEFAULT_ENV): Define.
26724 (compile_offload_image): If OFFLOAD_DEFAULTED and
26725 OFFLOAD_TARGET_DEFAULT is in the environment, don't fail
26726 if corresponding mkoffload can't be found.
26727 (compile_images_for_offload_targets): Likewise. Free and clear
26728 offload_names if no valid offload is found.
26729 * config.in: Regenerate.
26730 * configure: Regenerate.
26732 2021-04-28 Richard Biener <rguenther@suse.de>
26734 PR tree-optimization/100292
26735 * tree-vect-generic.c (expand_vector_condition): Do not fold
26738 2021-04-27 David Edelsohn <dje.gcc@gmail.com>
26740 * config/rs6000/aix.h (SUBTARGET_DRIVER_SELF_SPECS): New.
26741 * config/rs6000/aix64.opt (m64): New.
26744 2021-04-27 Maciej W. Rozycki <macro@orcam.me.uk>
26746 * config/vax/vax.c (print_operand_address, vax_address_cost_1)
26747 (index_term_p): Handle ASHIFT too.
26749 2021-04-27 Maciej W. Rozycki <macro@orcam.me.uk>
26751 * config/vax/builtins.md (jbb<ccss>i<mode>): Remove operand #3.
26752 (sync_lock_test_and_set<mode>): Adjust accordingly.
26753 (sync_lock_release<mode>): Likewise.
26755 2021-04-27 Maciej W. Rozycki <macro@orcam.me.uk>
26757 * config/vax/vax-protos.h (adjacent_operands_p): Remove
26759 * config/vax/vax.c (adjacent_operands_p): Remove.
26761 2021-04-27 Maciej W. Rozycki <macro@linux-mips.org>
26763 * ifcvt.c (dead_or_predicable) [!IFCVT_MODIFY_TESTS]: Fall
26764 through to the non-conditional execution case if getting the
26765 condition for conditional execution has failed.
26767 2021-04-27 Richard Sandiford <richard.sandiford@arm.com>
26769 PR middle-end/100284
26770 * gimple.c (gimple_could_trap_p_1): Remove VEC_COND_EXPR test.
26771 * tree-eh.c (operation_could_trap_p): Handle VEC_COND_EXPR rather
26772 than asserting on it.
26774 2021-04-27 David Edelsohn <dje.gcc@gmail.com>
26776 * config/rs6000/rs6000.c (rs6000_aix_precompute_tls_p): Protect
26777 with TARGET_AIX_OS.
26779 2021-04-27 David Edelsohn <dje.gcc@gmail.com>
26782 * calls.c (precompute_register_parameters): Additionally test
26783 targetm.precompute_tls_p to pre-compute argument.
26784 * config/rs6000/aix.h (TARGET_PRECOMPUTE_TLS_P): Define.
26785 * config/rs6000/rs6000.c (rs6000_aix_precompute_tls_p): New.
26786 * target.def (precompute_tls_p): New.
26787 * doc/tm.texi.in (TARGET_PRECOMPUTE_TLS_P): Add hook documentation.
26788 * doc/tm.texi: Regenerated.
26790 2021-04-27 Jakub Jelinek <jakub@redhat.com>
26793 * config/aarch64/aarch64.c (aarch64_print_operand): Cast -UINTVAL
26794 back to HOST_WIDE_INT.
26796 2021-04-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
26799 * simplify-rtx.c (simplify_context::simplify_subreg): Check the
26800 memory alignment for the outer mode.
26802 2021-04-27 H.J. Lu <hjl.tools@gmail.com>
26804 PR middle-end/90773
26805 * expr.c (op_by_pieces_d::get_usable_mode): New member function.
26806 (op_by_pieces_d::run): Cange a while loop to a do-while loop.
26808 2021-04-27 Alex Coplan <alex.coplan@arm.com>
26811 * config/arm/arm.c (arm_split_compare_and_swap): Fix up codegen
26812 with negative immediates: ensure we expand cbranchsi4_scratch
26813 correctly and ensure we satisfy its constraints.
26814 * config/arm/sync.md
26815 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Don't
26816 attempt to tie two output operands together with constraints;
26817 collapse two alternatives.
26818 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise.
26819 * config/arm/thumb1.md (cbranchsi4_neg_late): New.
26821 2021-04-27 Jakub Jelinek <jakub@redhat.com>
26824 * config/aarch64/predicates.md (aarch64_sub_immediate,
26825 aarch64_plus_immediate): Use -UINTVAL instead of -INTVAL.
26826 * config/aarch64/aarch64.md (casesi, rotl<mode>3): Likewise.
26827 * config/aarch64/aarch64.c (aarch64_print_operand,
26828 aarch64_split_atomic_op, aarch64_expand_subvti): Likewise.
26830 2021-04-27 Jakub Jelinek <jakub@redhat.com>
26832 PR tree-optimization/100239
26833 * tree-vect-generic.c (lower_vec_perm): Don't accept constant
26834 permutations with all indices from the first zero element as vec_shl.
26836 2021-04-27 Jakub Jelinek <jakub@redhat.com>
26838 PR rtl-optimization/100254
26839 * cfgcleanup.c (outgoing_edges_match): Check REG_EH_REGION on
26840 last1 and last2 insns rather than BB_END (bb1) and BB_END (bb2) insns.
26842 2021-04-27 Richard Biener <rguenther@suse.de>
26844 PR tree-optimization/99912
26845 * passes.def: Add comment about new TODO_remove_unused_locals.
26846 * tree-stdarg.c (pass_data_stdarg): Run TODO_remove_unused_locals
26849 2021-04-27 Richard Biener <rguenther@suse.de>
26851 PR tree-optimization/99912
26852 * passes.def (pass_all_optimizations): Add pass_dse before
26853 the first pass_dce, move the first pass_dse before the
26854 pass_dce following pass_pre.
26856 2021-04-27 Jakub Jelinek <jakub@redhat.com>
26858 PR tree-optimization/95527
26859 * generic-match-head.c: Include tm.h.
26860 * gimple-match-head.c: Include tm.h.
26861 * match.pd (CLZ == INTEGER_CST): Don't use
26862 #ifdef CLZ_DEFINED_VALUE_AT_ZERO, only test CLZ_DEFINED_VALUE_AT_ZERO
26863 if clz == CFN_CLZ. Add missing val declaration.
26864 (CTZ cmp CST): New simplifications.
26866 2021-04-27 Jakub Jelinek <jakub@redhat.com>
26868 PR tree-optimization/96696
26869 * expr.c (expand_expr_divmod): New function.
26870 (expand_expr_real_2) <case TRUNC_DIV_EXPR>: Use it for truncations and
26871 divisions. Formatting fixes.
26872 <case MULT_EXPR>: Optimize x / y * y as x - x % y if the latter is
26875 2021-04-27 Martin Jambor <mjambor@suse.cz>
26878 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call):
26879 If removing a call statement LHS SSA name, release it.
26881 2021-04-27 Richard Earnshaw <rearnsha@arm.com>
26884 * config/arm/arm.c (THUMB2_WORK_REGS): Check PIC_OFFSET_TABLE_REGNUM
26885 is valid before including it in the mask.
26887 2021-04-27 Richard Sandiford <richard.sandiford@arm.com>
26890 * config/aarch64/aarch64.c (aarch64_comp_type_attributes): Handle
26893 2021-04-27 Richard Biener <rguenther@suse.de>
26895 PR tree-optimization/100051
26896 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Add
26897 disambiguator based on access size vs. decl size.
26899 2021-04-27 Richard Biener <rguenther@suse.de>
26901 PR tree-optimization/100278
26902 * tree-ssa-pre.c (compute_avail): Give up when we cannot
26903 adjust TBAA beacuse of mismatching bases.
26905 2021-04-27 Jakub Jelinek <jakub@redhat.com>
26908 * config/i386/i386.md (*<insn><mode>3_mask, *<insn><mode>3_mask_1):
26909 For any_rotate define_insn_split and following splitters, use
26910 SWI iterator instead of SWI48.
26912 2021-04-27 Richard Biener <rguenther@suse.de>
26914 PR tree-optimization/99776
26915 * match.pd (bit_field_ref (ctor)): Relax element extract
26916 type compatibility checks.
26918 2021-04-27 Cui,Lili <lili.cui@intel.com>
26920 * common/config/i386/i386-common.c (processor_names):
26921 Sync processor_names with processor_type.
26922 * config/i386/i386-options.c (processor_cost_table):
26923 Sync processor_cost_table with processor_type.
26925 2021-04-26 Aldy Hernandez <aldyh@redhat.com>
26927 * value-range.cc (irange::irange_set_1bit_anti_range): Add assert.
26928 (irange::set): Call irange_set_1bit_anti_range for handling all
26929 1-bit ranges. Fall through on ~[MIN,MAX].
26931 2021-04-26 Aldy Hernandez <aldyh@redhat.com>
26933 * value-range.cc (irange::legacy_num_pairs): Remove.
26934 (irange::invert): Change gcc_assert to gcc_checking_assert.
26935 * value-range.h (irange::num_pairs): Adjust for a cached
26936 num_pairs(). Also, rename all gcc_assert's to
26937 gcc_checking_assert's.
26939 2021-04-26 Aldy Hernandez <aldyh@redhat.com>
26941 * value-range.cc (irange::operator=): Set m_kind.
26942 (irange::copy_to_legacy): Handle varying and undefined sources
26943 as a legacy copy since they can be easily copied.
26944 (irange::irange_set): Set m_kind.
26945 (irange::irange_set_anti_range): Same.
26946 (irange::set): Rename normalize_min_max to normalize_kind.
26947 (irange::verify_range): Adjust for multi-ranges having the
26949 (irange::irange_union): Set m_kind.
26950 (irange::irange_intersect): Same.
26951 (irange::invert): Same.
26952 * value-range.h (irange::kind): Always return m_kind.
26953 (irange::varying_p): Rename to...
26954 (irange::varying_comptaible_p): ...this.
26955 (irange::undefined_p): Only look at m_kind.
26956 (irange::irange): Always set VR_UNDEFINED if applicable.
26957 (irange::set_undefined): Always set VR_UNDEFINED.
26958 (irange::set_varying): Always set m_kind to VR_VARYING.
26959 (irange::normalize_min_max): Rename to...
26960 (irange::normalize_kind): ...this.
26962 2021-04-26 Aldy Hernandez <aldyh@redhat.com>
26964 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::set_ssa_range_info):
26965 Adjust for constant_p including varying_p.
26966 * tree-vrp.c (vrp_prop::finalize): Same.
26967 (determine_value_range): Same.
26968 * vr-values.c (vr_values::range_of_expr): Same.
26969 * value-range.cc (irange::symbolic_p): Do not check varying_p.
26970 (irange::constant_p): Same.
26972 2021-04-26 Aldy Hernandez <aldyh@redhat.com>
26974 * value-range.cc (irange::legacy_lower_bound): Replace
26975 !undefined_p check with num_ranges > 0.
26976 (irange::legacy_upper_bound): Same.
26977 * value-range.h (irange::type): Same.
26978 (irange::lower_bound): Same.
26979 (irange::upper_bound): Same.
26981 2021-04-26 Richard Biener <rguenther@suse.de>
26983 PR tree-optimization/99956
26984 * gimple-loop-interchange.cc (compute_access_stride):
26985 Try instantiating the access in a shallower loop nest
26986 if instantiating failed.
26987 (compute_access_strides): Pass adjustable loop_nest
26988 to compute_access_stride.
26990 2021-04-26 Christophe Lyon <christophe.lyon@linaro.org>
26992 * doc/sourcebuild.texi (arm_cmse_hw): Document.
26994 2021-04-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26996 * config/aarch64/iterators.md (vwcore): Handle V4BF, V8BF.
26998 2021-04-26 Thomas Schwinge <thomas@codesourcery.com>
26999 Nathan Sidwell <nathan@codesourcery.com>
27000 Tom de Vries <vries@codesourcery.com>
27001 Julian Brown <julian@codesourcery.com>
27002 Kwok Cheung Yeung <kcy@codesourcery.com>
27004 * omp-offload.c (oacc_validate_dims): Implement
27005 '-Wopenacc-parallelism'.
27006 * doc/invoke.texi (-Wopenacc-parallelism): Document.
27008 2021-04-26 Richard Biener <rguenther@suse.de>
27010 * tree-cfg.h (gimplify_build1): Remove.
27011 (gimplify_build2): Likewise.
27012 (gimplify_build3): Likewise.
27013 * tree-cfg.c (gimplify_build1): Move to tree-vect-generic.c.
27014 (gimplify_build2): Likewise.
27015 (gimplify_build3): Likewise.
27016 * tree-vect-generic.c (gimplify_build1): Move from tree-cfg.c.
27018 (gimplify_build2): Likewise.
27019 (gimplify_build3): Likewise.
27020 (tree_vec_extract): Use resimplify with following SSA edges.
27021 (expand_vector_parallel): Avoid passing NULL size/bitpos
27022 to tree_vec_extract.
27023 * expr.c (store_constructor): Deal with zero-element CTORs.
27024 * match.pd (bit_field_ref <vector CTOR>): Make sure to
27025 produce vector constants when possible.
27027 2021-04-26 Richard Biener <rguenther@suse.de>
27029 * tree-complex.c: Include gimple-fold.h.
27030 (expand_complex_addition): Use gimple_build.
27031 (expand_complex_multiplication_components): Likewise.
27032 (expand_complex_multiplication): Likewise.
27033 (expand_complex_div_straight): Likewise.
27034 (expand_complex_div_wide): Likewise.
27035 (expand_complex_division): Likewise.
27036 (expand_complex_conjugate): Likewise.
27037 (expand_complex_comparison): Likewise.
27039 2021-04-26 Richard Biener <rguenther@suse.de>
27041 * tree-ssa-phiopt.c (two_value_replacement): Remove use
27042 of legacy gimplify_buildN API.
27044 2021-04-26 Richard Biener <rguenther@suse.de>
27046 PR tree-optimization/99473
27047 * tree-ssa-phiopt.c (cond_store_replacement): Handle all
27050 2021-04-26 Richard Biener <rguenther@suse.de>
27052 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_builtin):
27053 Use replace_call_with_value.
27055 2021-04-26 Richard Biener <rguenther@suse.de>
27057 * tree-ssa-propagate.h (valid_gimple_rhs_p): Remove.
27058 (update_gimple_call): Likewise.
27059 (update_call_from_tree): Likewise.
27060 * tree-ssa-propagate.c (valid_gimple_rhs_p): Remove.
27061 (valid_gimple_call_p): Likewise.
27062 (move_ssa_defining_stmt_for_defs): Likewise.
27063 (finish_update_gimple_call): Likewise.
27064 (update_gimple_call): Likewise.
27065 (update_call_from_tree): Likewise.
27066 (propagate_tree_value_into_stmt): Use replace_call_with_value.
27067 * gimple-fold.h (update_gimple_call): Declare.
27068 * gimple-fold.c (valid_gimple_rhs_p): Move here from
27069 tree-ssa-propagate.c.
27070 (update_gimple_call): Likewise.
27071 (valid_gimple_call_p): Likewise.
27072 (finish_update_gimple_call): Likewise, and simplify.
27073 (gimplify_and_update_call_from_tree): Implement
27074 update_call_from_tree functionality, avoid excessive
27075 push/pop_gimplify_context.
27076 (gimple_fold_builtin): Use only gimplify_and_update_call_from_tree.
27077 (gimple_fold_call): Likewise.
27078 * gimple-ssa-sprintf.c (try_substitute_return_value): Likewise.
27079 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Likewise.
27080 (pass_fold_builtins::execute): Likewise.
27081 (optimize_stack_restore): Use replace_call_with_value.
27082 * tree-cfg.c (fold_loop_internal_call): Likewise.
27083 * tree-ssa-dce.c (maybe_optimize_arith_overflow): Use
27084 only gimplify_and_update_call_from_tree.
27085 * tree-ssa-strlen.c (handle_builtin_strlen): Likewise.
27086 (handle_builtin_strchr): Likewise.
27087 * tsan.c: Include gimple-fold.h instead of tree-ssa-propagate.h.
27089 2021-04-26 Jakub Jelinek <jakub@redhat.com>
27092 * vmsdbgout.c (ASM_OUTPUT_DEBUG_STRING, vmsdbgout_begin_block,
27093 vmsdbgout_end_block, lookup_filename, vmsdbgout_source_line): Remove
27096 2021-04-25 liuhongt <hongtao.liu@intel.com>
27099 * config/i386/i386-builtin.def (BDESC): Change the icode of
27100 the following builtins to CODE_FOR_nothing.
27101 * config/i386/i386.c (ix86_gimple_fold_builtin): Fold
27102 IX86_BUILTIN_PCMPEQB128, IX86_BUILTIN_PCMPEQW128,
27103 IX86_BUILTIN_PCMPEQD128, IX86_BUILTIN_PCMPEQQ,
27104 IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
27105 IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
27106 IX86_BUILTIN_PCMPGTB128, IX86_BUILTIN_PCMPGTW128,
27107 IX86_BUILTIN_PCMPGTD128, IX86_BUILTIN_PCMPGTQ,
27108 IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
27109 IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256.
27110 * config/i386/sse.md (avx2_eq<mode>3): Deleted.
27111 (sse2_eq<mode>3): Ditto.
27112 (sse4_1_eqv2di3): Ditto.
27113 (sse2_gt<mode>3): Rename to ..
27114 (*sse2_gt<mode>3): .. this.
27116 2021-04-24 Iain Sandoe <iain@sandoe.co.uk>
27119 2021-04-24 Iain Sandoe <iain@sandoe.co.uk>
27122 * config/darwin.c (darwin_binds_local_p): Assume that any
27123 public symbol might be interposed for PIC code. Update function
27124 header comment to reflect current Darwin capability.
27126 2021-04-24 Iain Sandoe <iain@sandoe.co.uk>
27129 * config/darwin.c (darwin_binds_local_p): Assume that any
27130 public symbol might be interposed for PIC code. Update function
27131 header comment to reflect current Darwin capability.
27133 2021-04-24 Richard Sandiford <richard.sandiford@arm.com>
27135 * doc/sourcebuild.texi: Document no-opts and any-opts target
27138 2021-04-23 YiFei Zhu <zhuyifei1999@gmail.com>
27140 * config/bpf/bpf.h (ASM_OUTPUT_ALIGNED_BSS): Use .type and .lcomm.
27142 2021-04-23 YiFei Zhu <zhuyifei1999@gmail.com>
27144 * config/bpf/bpf.h (FUNCTION_BOUNDARY): Set to 64.
27146 2021-04-23 Uroš Bizjak <ubizjak@gmail.com>
27149 * config/i386/i386-options.c (ix86_option_override_internal):
27150 Error out when -m96bit-long-double is used with 64bit targets.
27151 * config/i386/i386.md (*pushxf_rounded): Remove pattern.
27153 2021-04-23 Martin Liska <mliska@suse.cz>
27155 * lto-wrapper.c: Remove FIXME about usage of
27156 hardware_concurrency. The function is not on par with
27159 2021-04-23 Uroš Bizjak <ubizjak@gmail.com>
27162 * config/i386/sync.md (FILD_ATOMIC/FIST_ATOMIC FP load peephole2):
27163 Copy operand 3 to operand 4. Use sse_reg_operand
27164 as operand 3 predicate.
27165 (FILD_ATOMIC/FIST_ATOMIC FP load peephole2 with mem blockage): Ditto.
27166 (LDX_ATOMIC/STX_ATOMIC FP load peephole2): Ditto.
27167 (LDX_ATOMIC/LDX_ATOMIC FP load peephole2 with mem blockage): Ditto.
27168 (FILD_ATOMIC/FIST_ATOMIC FP store peephole2):
27169 Copy operand 1 to operand 0.
27170 (FILD_ATOMIC/FIST_ATOMIC FP store peephole2 with mem blockage): Ditto.
27171 (LDX_ATOMIC/STX_ATOMIC FP store peephole2): Ditto.
27172 (LDX_ATOMIC/LDX_ATOMIC FP store peephole2 with mem blockage): Ditto.
27174 2021-04-23 Alex Coplan <alex.coplan@arm.com>
27176 PR rtl-optimization/100230
27177 * early-remat.c (early_remat::sort_candidates): Use delete[]
27178 instead of delete for array allocated with new[].
27180 2021-04-23 Richard Biener <rguenther@suse.de>
27182 * genmatch.c (lower_cond): Remove VEC_COND_EXPR special-casing.
27183 (capture_info::capture_info): Likewise.
27184 (capture_info::walk_match): Likewise.
27185 (expr::gen_transform): Likewise.
27186 (dt_simplify::gen_1): Likewise.
27187 * gimple-match-head.c (maybe_resimplify_conditional_op):
27188 Remove VEC_COND_EXPR special-casing.
27189 (gimple_simplify): Likewise.
27190 * gimple.c (gimple_could_trap_p_1): Adjust.
27191 * tree-ssa-pre.c (compute_avail): Allow VEC_COND_EXPR
27192 to participate in PRE.
27194 2021-04-23 Richard Biener <rguenther@suse.de>
27196 * cfganal.c (connect_infinite_loops_to_exit): First call
27197 add_noreturn_fake_exit_edges.
27198 * ipa-sra.c (process_scan_results): Do not call the now redundant
27199 add_noreturn_fake_exit_edges.
27200 * predict.c (tree_estimate_probability): Likewise.
27201 (rebuild_frequencies): Likewise.
27202 * store-motion.c (one_store_motion_pass): Likewise.
27204 2021-04-23 Richard Biener <rguenther@suse.de>
27206 PR tree-optimization/100222
27207 * predict.c (pass_profile::execute): Remove redundant call to
27208 mark_irreducible_loops.
27209 (report_predictor_hitrates): Likewise.
27211 2021-04-23 Richard Biener <rguenther@suse.de>
27213 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
27214 valid_gimple_rhs_p by instead gimplifying to one.
27216 2021-04-23 Richard Biener <rguenther@suse.de>
27218 PR tree-optimization/99971
27219 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences):
27220 Always use TBAA for loads.
27222 2021-04-23 liuhongt <hongtao.liu@intel.com>
27225 * config/i386/i386-options.c (ix86_option_override_internal):
27226 Clear MASK_AVX256_SPLIT_UNALIGNED_LOAD/STORE in x_target_flags
27227 when X86_TUNE_AVX256_UNALIGNED_LOAD/STORE_OPTIMAL is enabled
27228 by target attribute.
27230 2021-04-23 David Edelsohn <dje.gcc@gmail.com>
27232 * config/rs6000/aix71.h (PREFERRED_DEBUGGING_TYPE): Change to
27234 * config/rs6000/aix72.h (PREFERRED_DEBUGGING_TYPE): Same.
27236 2021-04-22 David Edelsohn <dje.gcc@gmail.com>
27238 * config.gcc (powerpc-ibm-aix6.*): Remove.
27239 * config/rs6000/aix61.h: Delete.
27241 2021-04-22 Martin Liska <mliska@suse.cz>
27243 PR testsuite/100159
27244 PR testsuite/100192
27245 * builtins.c (expand_builtin): Fix typos and missing comments.
27246 * dwarf2out.c (gen_subprogram_die): Likewise.
27247 (gen_struct_or_union_type_die): Likewise.
27249 2021-04-22 Uroš Bizjak <ubizjak@gmail.com>
27252 * config/i386/i386-expand.c (ix86_expand_convert_uns_sidf_sse):
27253 Remove the sign with FE_DOWNWARD, where x - x = -0.0.
27255 2021-04-21 Iain Sandoe <iain@sandoe.co.uk>
27257 * config/i386/darwin.h (TARGET_64BIT): Remove definition
27258 based on TARGET_ISA_64BIT.
27259 (TARGET_64BIT_P): Remove definition based on
27260 TARGET_ISA_64BIT_P().
27262 2021-04-21 Martin Liska <mliska@suse.cz>
27265 2021-04-21 Martin Liska <mliska@suse.cz>
27267 * lto-wrapper.c (cpuset_popcount): Remove.
27268 (init_num_threads): Remove and use hardware_concurrency.
27270 2021-04-21 Martin Liska <mliska@suse.cz>
27273 * main.c (main): Call toplev::finalize in CHECKING_P mode.
27274 * ipa-modref.c (ipa_modref_c_finalize): summaries are NULL
27275 when incremental LTO linking happens.
27277 2021-04-21 Martin Liska <mliska@suse.cz>
27279 * lto-wrapper.c (run_gcc): When -flto=jobserver is used, but the
27280 makeserver cannot be detected, then use -flto=N fallback.
27282 2021-04-21 Richard Sandiford <richard.sandiford@arm.com>
27284 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): When cross-compiling,
27285 default to yes for aarch64-linux-gnu.
27286 * configure: Regenerate.
27288 2021-04-21 Martin Liska <mliska@suse.cz>
27290 * lto-wrapper.c (cpuset_popcount): Remove.
27291 (init_num_threads): Remove and use hardware_concurrency.
27293 2021-04-21 Martin Liska <mliska@suse.cz>
27295 * config/i386/i386.c: Remove superfluous || TARGET_MACHO
27296 which remains to be '(... || 0)' and clang complains about it.
27297 * dwarf2out.c (AT_vms_delta): Declare conditionally.
27298 (add_AT_vms_delta): Likewise.
27299 * tree.c (fld_simplified_type): Use rather more common pattern
27300 for disabling of something (#if 0).
27301 (get_tree_code_name): Likewise.
27302 (verify_type_variant): Likewise.
27304 2021-04-21 Martin Liska <mliska@suse.cz>
27306 * config/i386/i386-expand.c (decide_alignment): Use newly named
27307 macro TARGET_CPU_P.
27308 * config/i386/i386.c (ix86_decompose_address): Likewise.
27309 (ix86_address_cost): Likewise.
27310 (ix86_lea_outperforms): Likewise.
27311 (ix86_avoid_lea_for_addr): Likewise.
27312 (ix86_add_stmt_cost): Likewise.
27313 * config/i386/i386.h (TARGET_*): Remove.
27314 (TARGET_CPU_P): New macro.
27315 * config/i386/i386.md: Use newly named macro TARGET_CPU_P.
27316 * config/i386/x86-tune-sched-atom.c (do_reorder_for_imul): Likewise.
27317 (swap_top_of_ready_list): Likewise.
27318 (ix86_atom_sched_reorder): Likewise.
27319 * config/i386/x86-tune-sched-bd.c (ix86_bd_has_dispatch): Likewise.
27320 * config/i386/x86-tune-sched.c (ix86_adjust_cost): Likewise.
27322 2021-04-21 Martin Liska <mliska@suse.cz>
27324 * config/i386/i386-options.c (TARGET_EXPLICIT_NO_SAHF_P):
27326 (SET_TARGET_NO_SAHF): Likewise.
27327 (TARGET_EXPLICIT_PREFETCH_SSE_P): Likewise.
27328 (SET_TARGET_PREFETCH_SSE): Likewise.
27329 (TARGET_EXPLICIT_NO_TUNE_P): Likewise.
27330 (SET_TARGET_NO_TUNE): Likewise.
27331 (TARGET_EXPLICIT_NO_80387_P): Likewise.
27332 (SET_TARGET_NO_80387): Likewise.
27334 * config/i386/i386.h (TARGET_*): Remove.
27335 * opth-gen.awk: Generate new used macros.
27337 2021-04-21 Martin Liska <mliska@suse.cz>
27339 * config/i386/i386.h (PTA_*): Remove.
27340 (enum pta_flag): New.
27341 (DEF_PTA): Generate PTA_* values from i386-isa.def.
27342 * config/i386/i386-isa.def: New file.
27344 2021-04-21 Alex Coplan <alex.coplan@arm.com>
27347 * config/aarch64/aarch64-bti-insert.c (aarch64_bti_j_insn_p): New.
27348 (rest_of_insert_bti): Avoid inserting duplicate bti j insns for
27349 jump table targets.
27351 2021-04-21 H.J. Lu <hjl.tools@gmail.com>
27353 * config.gcc: Install mwaitintrin.h for i[34567]86-*-* and
27354 x86_64-*-* targets.
27355 * common/config/i386/i386-common.c (OPTION_MASK_ISA2_MWAIT_SET):
27357 (OPTION_MASK_ISA2_MWAIT_UNSET): Likewise.
27358 (ix86_handle_option): Handle -mmwait.
27359 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
27360 Replace OPTION_MASK_ISA_SSE3 with OPTION_MASK_ISA2_MWAIT on
27361 __builtin_ia32_monitor and __builtin_ia32_mwait.
27362 * config/i386/i386-options.c (isa2_opts): Add -mmwait.
27363 (ix86_valid_target_attribute_inner_p): Likewise.
27364 (ix86_option_override_internal): Enable mwait/monitor
27365 instructions for -msse3.
27366 * config/i386/i386.h (TARGET_MWAIT): New.
27367 (TARGET_MWAIT_P): Likewise.
27368 * config/i386/i386.opt: Add -mmwait.
27369 * config/i386/mwaitintrin.h: New file.
27370 * config/i386/pmmintrin.h: Include <mwaitintrin.h>.
27371 * config/i386/sse.md (sse3_mwait): Replace TARGET_SSE3 with
27373 (@sse3_monitor_<mode>): Likewise.
27374 * config/i386/x86gprintrin.h: Include <mwaitintrin.h>.
27375 * doc/extend.texi: Document mwait target attribute.
27376 * doc/invoke.texi: Document -mmwait.
27378 2021-04-21 Martin Liska <mliska@suse.cz>
27380 * config/i386/i386-options.c (DEF_ENUM): Remove it.
27381 * config/i386/i386-opts.h (DEF_ENUM): Likewise.
27382 * config/i386/stringop.def (DEF_ENUM): Likewise.
27384 2021-04-21 Martin Liska <mliska@suse.cz>
27386 * tree-cfg.c (gimple_verify_flow_info): Use qD instead
27387 of print_generic_expr.
27389 2021-04-21 Jakub Jelinek <jakub@redhat.com>
27391 PR rtl-optimization/100148
27392 * cprop.c (constprop_register): Use next_nondebug_insn instead of
27395 2021-04-21 Martin Liska <mliska@suse.cz>
27398 * cgraphunit.c (cgraph_node::analyze): Remove duplicate
27399 free_dominance_info calls.
27401 2021-04-21 Richard Biener <rguenther@suse.de>
27403 * gimple-fold.c (maybe_fold_reference): Remove is_lhs
27404 parameter (and assume it to be false).
27405 (fold_gimple_assign): Adjust, remove all callers of
27406 maybe_fold_reference calling it with is_lhs true.
27407 (gimple_fold_call): Likewise.
27408 (fold_stmt_1): Likewise.
27410 2021-04-21 Richard Biener <rguenther@suse.de>
27412 * fold-const.c (pedantic_non_lvalue_loc): Remove.
27413 (fold_binary_loc): Adjust.
27414 (fold_ternary_loc): Likewise.
27416 2021-04-21 Richard Sandiford <richard.sandiford@arm.com>
27418 PR middle-end/100130
27419 * varasm.c (get_block_for_decl): Make sure that any use of the
27420 retain attribute matches the section's retain flag.
27421 (switch_to_section): Check for retain mismatches even when
27422 changing sections, but do not warn if the given decl is the
27423 section's named.decl.
27424 (output_object_block): Pass the first decl in the block (if any)
27425 to switch_to_section.
27427 2021-04-20 H.J. Lu <hjl.tools@gmail.com>
27429 * config/i386/i386-c.c (ix86_target_macros_internal): Define
27430 __CRC32__ for -mcrc32.
27431 * config/i386/i386-options.c (ix86_option_override_internal):
27432 Enable crc32 instruction for -msse4.2.
27433 * config/i386/i386.md (sse4_2_crc32<mode>): Remove TARGET_SSE4_2
27435 (sse4_2_crc32di): Likewise.
27436 * config/i386/ia32intrin.h: Use crc32 target option for CRC32
27439 2021-04-20 Segher Boessenkool <segher@kernel.crashing.org>
27442 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Do not consider
27445 2021-04-20 Martin Liska <mliska@suse.cz>
27447 * doc/invoke.texi: Fix typo.
27448 * params.opt: Likewise.
27450 2021-04-20 Martin Liska <mliska@suse.cz>
27452 * doc/invoke.texi: Document new param.
27454 2021-04-19 Andrew MacLeod <amacleod@redhat.com>
27456 PR tree-optimization/100081
27457 * gimple-range-cache.h (ranger_cache): Inherit from gori_compute
27458 rather than gori_compute_cache.
27459 * gimple-range-gori.cc (is_gimple_logical_p): Move to top of file.
27460 (range_def_chain::m_logical_depth): New member.
27461 (range_def_chain::range_def_chain): Initialize m_logical_depth.
27462 (range_def_chain::get_def_chain): Don't build defchains through more
27463 than LOGICAL_LIMIT logical expressions.
27464 * params.opt (param_ranger_logical_depth): New.
27466 2021-04-19 Richard Earnshaw <rearnsha@arm.com>
27469 * config/arm/arm.c (arm_configure_build_target): Do not strip
27470 extended FPU/SIMD feature bits from the target ISA when -mfpu
27471 is specified (partial revert of r11-8168).
27473 2021-04-19 Thomas Schwinge <thomas@codesourcery.com>
27475 * params.opt (-param=openacc-kernels=): Add.
27476 * omp-oacc-kernels-decompose.cc
27477 (pass_omp_oacc_kernels_decompose::gate): Use it.
27478 * doc/invoke.texi (-fopenacc-kernels=@var{mode}): Move...
27479 (--param): ... here, 'openacc-kernels'.
27481 2021-04-19 Martin Liska <mliska@suse.cz>
27484 * gengtype.c (finish_root_table): Align function arguments
27485 in between declaration and definition.
27487 2021-04-19 Eric Botcazou <ebotcazou@adacore.com>
27489 * config/i386/winnt.c (i386_pe_seh_cold_init): Properly deal with
27490 frames larger than the SEH maximum frame size.
27492 2021-04-18 Segher Boessenkool <segher@kernel.crashing.org>
27494 PR rtl-optimization/99927
27495 * combine.c (distribute_notes) [REG_UNUSED]: If the register already
27496 is dead, just drop it.
27498 2021-04-17 Iain Buclaw <ibuclaw@gdcproject.org>
27501 * config/i386/winnt-d.c (TARGET_D_TEMPLATES_ALWAYS_COMDAT): Define.
27502 * doc/tm.texi: Regenerate.
27503 * doc/tm.texi.in (D language and ABI): Add @hook for
27504 TARGET_D_TEMPLATES_ALWAYS_COMDAT.
27506 2021-04-17 Iain Buclaw <ibuclaw@gdcproject.org>
27508 * config/darwin-d.c (darwin_d_handle_target_object_format): New
27510 (darwin_d_register_target_info): New function.
27511 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
27512 * config/dragonfly-d.c (dragonfly_d_handle_target_object_format): New
27514 (dragonfly_d_register_target_info): New function.
27515 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
27516 * config/freebsd-d.c (freebsd_d_handle_target_object_format): New
27518 (freebsd_d_register_target_info): New function.
27519 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
27520 * config/glibc-d.c (glibc_d_handle_target_object_format): New
27522 (glibc_d_register_target_info): New function.
27523 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
27524 * config/i386/i386-d.c (ix86_d_handle_target_object_format): New
27526 (ix86_d_register_target_info): Add ix86_d_handle_target_object_format
27527 as handler for objectFormat key.
27528 * config/i386/winnt-d.c (winnt_d_handle_target_object_format): New
27530 (winnt_d_register_target_info): New function.
27531 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
27532 * config/netbsd-d.c (netbsd_d_handle_target_object_format): New
27534 (netbsd_d_register_target_info): New function.
27535 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
27536 * config/openbsd-d.c (openbsd_d_handle_target_object_format): New
27538 (openbsd_d_register_target_info): New function.
27539 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
27540 * config/pa/pa-d.c (pa_d_handle_target_object_format): New function.
27541 (pa_d_register_target_info): Add pa_d_handle_target_object_format as
27542 handler for objectFormat key.
27543 * config/rs6000/rs6000-d.c (rs6000_d_handle_target_object_format): New
27545 (rs6000_d_register_target_info): Add
27546 rs6000_d_handle_target_object_format as handler for objectFormat key.
27547 * config/sol2-d.c (solaris_d_handle_target_object_format): New
27549 (solaris_d_register_target_info): New function.
27550 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
27552 2021-04-16 Jakub Jelinek <jakub@redhat.com>
27555 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Change
27556 abi_break argument from bool * to unsigned *, store there the pre-GCC 9
27558 (aarch64_layout_arg, aarch64_gimplify_va_arg_expr): Adjust callers.
27559 (aarch64_function_arg_regno_p): Likewise. Only emit -Wpsabi note if
27560 the old and new alignment after applying MIN/MAX to it is different.
27562 2021-04-16 Tamar Christina <tamar.christina@arm.com>
27565 * config/aarch64/aarch64-sve.md (@aarch64_sve_trn1_conv<mode>): New.
27566 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_trn): Use new
27568 * config/aarch64/iterators.md (UNSPEC_TRN1_CONV): New.
27570 2021-04-16 Bill Schmidt <wschmidt@linux.ibm.com>
27572 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Revise
27573 this section and its subsections.
27575 2021-04-16 Jakub Jelinek <jakub@redhat.com>
27578 * config/aarch64/aarch64.md (*neg_asr_si2_extr, *extrsi5_insn_di): New
27579 define_insn patterns.
27581 2021-04-16 Richard Sandiford <richard.sandiford@arm.com>
27583 PR rtl-optimization/98689
27584 * reg-notes.def (UNTYPED_CALL): New note.
27585 * combine.c (distribute_notes): Handle it.
27586 * emit-rtl.c (try_split): Likewise.
27587 * rtlanal.c (rtx_properties::try_to_add_insn): Likewise. Assume
27588 that calls with the note implicitly set all return value registers.
27589 * builtins.c (expand_builtin_apply): Add a REG_UNTYPED_CALL
27592 2021-04-16 Richard Sandiford <richard.sandiford@arm.com>
27594 PR rtl-optimization/99596
27595 * rtlanal.c (rtx_properties::try_to_add_insn): Don't add global
27596 register accesses for const calls. Assume that pure functions
27597 can only read from global registers. Ignore cases in which
27598 the stack pointer has been marked global.
27600 2021-04-16 Jakub Jelinek <jakub@redhat.com>
27603 * tree-vect-loop.c (vect_transform_loop): Don't remove just
27604 dead scalar .MASK_LOAD calls, but also dead .COND_* calls - replace
27605 them by their last argument.
27607 2021-04-15 Martin Liska <mliska@suse.cz>
27609 * doc/invoke.texi: Other params don't use it, remove it.
27611 2021-04-15 Richard Biener <rguenther@suse.de>
27613 * gimple-builder.h: Add deprecation note.
27615 2021-04-15 Richard Sandiford <richard.sandiford@arm.com>
27618 * attribs.h (restrict_type_identity_attributes_to): Declare.
27619 * attribs.c (restrict_type_identity_attributes_to): New function.
27621 2021-04-15 Richard Sandiford <richard.sandiford@arm.com>
27624 * attribs.h (affects_type_identity_attributes): Declare.
27625 * attribs.c (remove_attributes_matching): New function.
27626 (affects_type_identity_attributes): Likewise.
27628 2021-04-15 Jakub Jelinek <jakub@redhat.com>
27631 * config/aarch64/aarch64.md (*<LOGICAL:optab>_<SHIFT:optab><mode>3):
27632 Add combine splitters for *<LOGICAL:optab>_ashl<mode>3 with
27633 ZERO_EXTEND, SIGN_EXTEND or AND.
27635 2021-04-14 Richard Sandiford <richard.sandiford@arm.com>
27637 PR rtl-optimization/99929
27638 * rtl.h (same_vector_encodings_p): New function.
27639 * cse.c (exp_equiv_p): Check that CONST_VECTORs have the same encoding.
27640 * cselib.c (rtx_equal_for_cselib_1): Likewise.
27641 * jump.c (rtx_renumbered_equal_p): Likewise.
27642 * lra-constraints.c (operands_match_p): Likewise.
27643 * reload.c (operands_match_p): Likewise.
27644 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Likewise.
27646 2021-04-14 Richard Sandiford <richard.sandiford@arm.com>
27648 * print-rtl.c (rtx_writer::print_rtx_operand_codes_E_and_V): Print
27649 more information about variable-length CONST_VECTORs.
27651 2021-04-14 Vladimir N. Makarov <vmakarov@redhat.com>
27653 PR rtl-optimization/100066
27654 * lra-constraints.c (split_reg): Check paradoxical_subreg_p for
27655 ordered modes when choosing splitting mode for hard reg.
27657 2021-04-14 Richard Sandiford <richard.sandiford@arm.com>
27660 * config/aarch64/aarch64.c (aarch64_expand_sve_const_vector_sel):
27662 (aarch64_expand_sve_const_vector): Use it for nelts_per_pattern==2.
27664 2021-04-14 Andreas Krebbel <krebbel@linux.ibm.com>
27666 * config/s390/s390-builtins.def (O_M5, O_M12, ...): Add new macros
27667 for mask operand types.
27668 (s390_vec_permi_s64, s390_vec_permi_b64, s390_vec_permi_u64)
27669 (s390_vec_permi_dbl, s390_vpdi): Use the M5 type for the immediate
27671 (s390_vec_msum_u128, s390_vmslg): Use the M12 type for the
27673 * config/s390/s390.c (s390_const_operand_ok): Check the new
27674 operand types and generate a list of valid values.
27676 2021-04-14 Iain Buclaw <ibuclaw@gdcproject.org>
27678 * doc/tm.texi: Regenerate.
27679 * doc/tm.texi.in (D language and ABI): Add @hook for
27680 TARGET_D_REGISTER_OS_TARGET_INFO.
27682 2021-04-14 Iain Buclaw <ibuclaw@gdcproject.org>
27684 * config/aarch64/aarch64-d.c (aarch64_d_handle_target_float_abi): New
27686 (aarch64_d_register_target_info): New function.
27687 * config/aarch64/aarch64-protos.h (aarch64_d_register_target_info):
27689 * config/aarch64/aarch64.h (TARGET_D_REGISTER_CPU_TARGET_INFO):
27691 * config/arm/arm-d.c (arm_d_handle_target_float_abi): New function.
27692 (arm_d_register_target_info): New function.
27693 * config/arm/arm-protos.h (arm_d_register_target_info): Declare.
27694 * config/arm/arm.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
27695 * config/i386/i386-d.c (ix86_d_handle_target_float_abi): New function.
27696 (ix86_d_register_target_info): New function.
27697 * config/i386/i386-protos.h (ix86_d_register_target_info): Declare.
27698 * config/i386/i386.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
27699 * config/mips/mips-d.c (mips_d_handle_target_float_abi): New function.
27700 (mips_d_register_target_info): New function.
27701 * config/mips/mips-protos.h (mips_d_register_target_info): Declare.
27702 * config/mips/mips.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
27703 * config/pa/pa-d.c (pa_d_handle_target_float_abi): New function.
27704 (pa_d_register_target_info): New function.
27705 * config/pa/pa-protos.h (pa_d_register_target_info): Declare.
27706 * config/pa/pa.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
27707 * config/riscv/riscv-d.c (riscv_d_handle_target_float_abi): New
27709 (riscv_d_register_target_info): New function.
27710 * config/riscv/riscv-protos.h (riscv_d_register_target_info): Declare.
27711 * config/riscv/riscv.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
27712 * config/rs6000/rs6000-d.c (rs6000_d_handle_target_float_abi): New
27714 (rs6000_d_register_target_info): New function.
27715 * config/rs6000/rs6000-protos.h (rs6000_d_register_target_info):
27717 * config/rs6000/rs6000.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
27718 * config/s390/s390-d.c (s390_d_handle_target_float_abi): New function.
27719 (s390_d_register_target_info): New function.
27720 * config/s390/s390-protos.h (s390_d_register_target_info): Declare.
27721 * config/s390/s390.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
27722 * config/sparc/sparc-d.c (sparc_d_handle_target_float_abi): New
27724 (sparc_d_register_target_info): New function.
27725 * config/sparc/sparc-protos.h (sparc_d_register_target_info): Declare.
27726 * config/sparc/sparc.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
27727 * doc/tm.texi: Regenerate.
27728 * doc/tm.texi.in (D language and ABI): Add @hook for
27729 TARGET_D_REGISTER_CPU_TARGET_INFO.
27731 2021-04-14 Iain Buclaw <ibuclaw@gdcproject.org>
27733 * config/i386/i386-d.c (ix86_d_has_stdcall_convention): New function.
27734 * config/i386/i386-protos.h (ix86_d_has_stdcall_convention): Declare.
27735 * config/i386/i386.h (TARGET_D_HAS_STDCALL_CONVENTION): Define.
27736 * doc/tm.texi: Regenerate.
27737 * doc/tm.texi.in (D language and ABI): Add @hook for
27738 TARGET_D_HAS_STDCALL_CONVENTION.
27740 2021-04-14 Richard Biener <rguenther@suse.de>
27742 * tree-cfg.c (verify_gimple_assign_ternary): Verify that
27743 VEC_COND_EXPRs have a gimple_val condition.
27744 * tree-ssa-propagate.c (valid_gimple_rhs_p): VEC_COND_EXPR
27745 can no longer have a GENERIC condition.
27747 2021-04-14 Richard Earnshaw <rearnsha@arm.com>
27750 * config/arm/arm.c (arm_configure_build_target): Strip isa_all_fpbits
27751 from the isa_delta when -mfpu has been used.
27752 (arm_options_perform_arch_sanity_checks): It's the architecture that
27753 lacks an FPU not the processor.
27755 2021-04-13 Richard Biener <rguenther@suse.de>
27757 PR tree-optimization/100053
27758 * tree-ssa-sccvn.c (vn_nary_op_get_predicated_value): Do
27759 not use optimistic dominance queries for backedges to validate
27761 (dominated_by_p_w_unex): Add parameter to ignore executable
27762 state on backedges.
27763 (rpo_elim::eliminate_avail): Adjust.
27765 2021-04-13 Jakub Jelinek <jakub@redhat.com>
27768 * config/aarch64/aarch64.md (*aarch64_bfxil<mode>_extr,
27769 *aarch64_bfxilsi_extrdi): New define_insn patterns.
27771 2021-04-13 Jakub Jelinek <jakub@redhat.com>
27774 * simplify-rtx.c (simplify_immed_subreg): For MODE_COMPOSITE_P
27775 outermode, return NULL if the result doesn't encode back to the
27776 original byte sequence.
27777 (simplify_gen_subreg): Don't create SUBREGs from constants to
27778 MODE_COMPOSITE_P outermode.
27780 2021-04-12 Jakub Jelinek <jakub@redhat.com>
27782 PR rtl-optimization/99905
27783 * combine.c (expand_compound_operation): If pos + len > modewidth,
27784 perform the right shift by pos in inner_mode and then convert to mode,
27785 instead of trying to simplify a shift of rtx with inner_mode by pos
27786 as if it was a shift in mode.
27788 2021-04-12 Jakub Jelinek <jakub@redhat.com>
27791 * combine.c (simplify_and_const_int_1): Don't optimize varop
27792 away if it has side-effects.
27794 2021-04-12 Martin Liska <mliska@suse.cz>
27796 * doc/extend.texi: Escape @smallexample content.
27798 2021-04-12 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
27800 * config/s390/s390.md ("*movdi_31", "*movdi_64"): Add
27801 alternative in order to load a DFP zero.
27803 2021-04-12 Martin Liska <mliska@suse.cz>
27805 * doc/extend.texi: Be more precise in documentation
27806 of symver attribute.
27808 2021-04-12 Martin Liska <mliska@suse.cz>
27811 * gimplify.c (gimplify_expr): Right now, we unpoison all
27812 variables before a goto <dest>. We should not do it if we are
27815 2021-04-12 Cui,Lili <lili.cui@intel.com>
27817 * common/config/i386/cpuinfo.h (get_intel_cpu): Handle
27819 * common/config/i386/i386-common.c (processor_names): Add
27821 (processor_alias_table): Add rocketlake.
27822 * common/config/i386/i386-cpuinfo.h (processor_subtypes): Add
27823 INTEL_COREI7_ROCKETLAKE.
27824 * config.gcc: Add -march=rocketlake.
27825 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
27827 * config/i386/i386-options.c (m_ROCKETLAKE) : Define.
27828 (processor_cost_table): Add rocketlake cost.
27829 * config/i386/i386.h (ix86_size_cost) : Define
27831 (processor_type) : Add PROCESSOR_ROCKETLAKE.
27832 (PTA_ROCKETLAKE): Ditto.
27833 * doc/extend.texi: Add rocketlake.
27834 * doc/invoke.texi: Add rocketlake.
27836 2021-04-12 Cui,Lili <lili.cui@intel.com>
27838 * config/i386/i386.h (PTA_ALDERLAKE): Change alderlake ISA list.
27839 * config/i386/i386-options.c (m_CORE_AVX2): Add m_ALDERLAKE.
27840 * common/config/i386/cpuinfo.h (get_intel_cpu): Add AlderLake model.
27841 * doc/invoke.texi: Change alderlake ISA list.
27843 2021-04-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
27845 PR middle-end/98088
27846 * omp-expand.c (expand_oacc_collapse_init): Update condition in
27849 2021-04-10 H.J. Lu <hjl.tools@gmail.com>
27852 * config/i386/serializeintrin.h (_serialize): Defined as macro.
27854 2021-04-10 Jakub Jelinek <jakub@redhat.com>
27857 * expr.c (expand_expr_addr_expr_1): Test is_global_var rather than
27858 just TREE_STATIC on COMPOUND_LITERAL_EXPR_DECLs.
27860 2021-04-10 Jakub Jelinek <jakub@redhat.com>
27862 PR middle-end/99989
27863 * gimple-ssa-warn-alloca.c
27864 (alloca_type_and_limit::alloca_type_and_limit): Initialize limit to
27865 0 with integer precision unconditionally.
27867 2021-04-10 Jakub Jelinek <jakub@redhat.com>
27869 PR rtl-optimization/98601
27870 * rtlanal.c (rtx_addr_can_trap_p_1): Allow in assert unknown size
27871 not just for BLKmode, but also for VOIDmode. For STRICT_ALIGNMENT
27872 unaligned_mems handle VOIDmode like BLKmode.
27874 2021-04-10 Jan Hubicka <hubicka@ucw.cz>
27877 * tree.c (free_lang_data_in_decl): Do not release body of
27878 declare_variant_alt.
27880 2021-04-09 Richard Sandiford <richard.sandiford@arm.com>
27882 * config/aarch64/aarch64.c (aarch64_option_restore): If the
27883 architecture was specified explicitly and the tuning wasn't,
27884 tune for the architecture rather than the configured default CPU.
27886 2021-04-09 Richard Sandiford <richard.sandiford@arm.com>
27888 * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use X30
27889 as the temporary register.
27891 2021-04-09 Martin Liska <mliska@suse.cz>
27893 * doc/extend.texi: Move non-target attributes on the top level.
27895 2021-04-09 Martin Liska <mliska@suse.cz>
27897 * doc/invoke.texi: Document minimum and maximum value of the
27898 argument for both supported compression algorithms.
27900 2021-04-08 David Edelsohn <dje.gcc@gmail.com>
27902 * config/rs6000/rs6000.c (rs6000_xcoff_select_section): Select
27903 TLS BSS before TLS data.
27904 * config/rs6000/xcoff.h (ASM_OUTPUT_TLS_COMMON): Use .comm.
27906 2021-04-08 Richard Sandiford <richard.sandiford@arm.com>
27908 * doc/sourcebuild.texi (stdint_types_mbig_endian): Document.
27910 2021-04-08 Richard Sandiford <richard.sandiford@arm.com>
27912 * match.pd: Extend vec_cond folds to handle shifts.
27914 2021-04-08 Maciej W. Rozycki <macro@orcam.me.uk>
27916 * config/vax/vax.md: Fix comment for `*bit<mode>' pattern's
27919 2021-04-08 Alex Coplan <alex.coplan@arm.com>
27922 * config/arm/iterators.md (MVE_vecs): New.
27923 (V_elem): Also handle V2DF.
27924 * config/arm/mve.md (*mve_mov<mode>): Rename to ...
27925 (*mve_vdup<mode>): ... this. Remove second alternative since
27926 vec_duplicate of const_int is not canonical RTL, and we don't
27927 want to match symbol_refs.
27928 (*mve_vec_duplicate<mode>): Delete (pattern is redundant).
27930 2021-04-08 Xionghu Luo <luoxhu@linux.ibm.com>
27932 * fold-const.c (fold_single_bit_test): Fix typo.
27933 * print-rtl.c (print_rtx_insn_vec): Call print_rtl_single
27936 2021-04-07 Richard Sandiford <richard.sandiford@arm.com>
27938 PR tree-optimization/97513
27939 * tree-vect-slp.c (vect_add_slp_permutation): New function,
27941 (vectorizable_slp_permutation): ...here. Detect cases in which
27942 all VEC_PERM_EXPRs are guaranteed to have the same stepped
27943 permute vector and only generate one permute vector for that case.
27944 Extend that case to handle variable-length vectors.
27946 2021-04-07 Richard Sandiford <richard.sandiford@arm.com>
27948 PR tree-optimization/99873
27949 * tree-vect-slp.c (vect_slp_prefer_store_lanes_p): New function.
27950 (vect_build_slp_instance): Don't split store groups that could
27951 use IFN_STORE_LANES.
27953 2021-04-07 Jakub Jelinek <jakub@redhat.com>
27956 * varasm.c (output_constant_pool_contents): Don't strip name encoding
27957 from XSTR (desc->sym, 0) or from label before passing those to
27960 2021-04-07 Richard Biener <rguenther@suse.de>
27962 PR tree-optimization/99954
27963 * tree-loop-distribution.c: Include tree-affine.h.
27964 (generate_memcpy_builtin): Try using tree-affine to prove
27966 (loop_distribution::classify_builtin_ldst): Always classify
27969 2021-04-07 Richard Biener <rguenther@suse.de>
27971 PR tree-optimization/99947
27972 * tree-vect-loop.c (vectorizable_induction): Pre-allocate
27973 steps vector to avoid pushing elements from the reallocated
27976 2021-04-07 Richard Biener <rguenther@suse.de>
27978 * tree-ssa-sccvn.h (print_vn_reference_ops): Declare.
27979 * tree-ssa-pre.c (print_pre_expr): Factor out VN reference operand
27981 * tree-ssa-sccvn.c (print_vn_reference_ops): ... into this new
27983 (debug_vn_reference_ops): New.
27985 2021-04-07 Bin Cheng <bin.cheng@linux.alibaba.com>
27987 PR tree-optimization/98736
27988 * tree-loop-distribution.c
27989 * (loop_distribution::bb_top_order_init):
27990 Compute RPO with programing order preserved by calling function
27991 rev_post_order_and_mark_dfs_back_seme.
27993 2021-04-06 Vladimir N. Makarov <vmakarov@redhat.com>
27996 * lra-constraints.c (split_reg): Don't check paradoxical_subreg_p.
27997 * lra-lives.c (clear_sparseset_regnos, regnos_in_sparseset_p): New
27999 (process_bb_lives): Don't update biggest mode of hard reg for
28000 implicit in multi-register group. Use the new functions for
28001 updating dead_set and unused_set by register notes.
28003 2021-04-06 Xianmiao Qu <xianmiao_qu@c-sky.com>
28005 * config/csky/csky_pipeline_ck802.md : Use insn reservation name
28008 2021-04-06 H.J. Lu <hjl.tools@gmail.com>
28010 * config/i386/x86-tune-costs.h (skylake_memcpy): Updated.
28011 (skylake_memset): Likewise.
28012 (skylake_cost): Change CLEAR_RATIO to 17.
28013 * config/i386/x86-tune.def (X86_TUNE_PREFER_KNOWN_REP_MOVSB_STOSB):
28014 Replace m_CANNONLAKE, m_ICELAKE_CLIENT, m_ICELAKE_SERVER,
28015 m_TIGERLAKE and m_SAPPHIRERAPIDS with m_SKYLAKE and m_CORE_AVX512.
28017 2021-04-06 Richard Biener <rguenther@suse.de>
28019 PR tree-optimization/99880
28020 * tree-vect-loop.c (maybe_set_vectorized_backedge_value): Only
28021 set vectorized defs of relevant PHIs.
28023 2021-04-06 Richard Biener <rguenther@suse.de>
28025 PR tree-optimization/99924
28026 * tree-vect-slp.c (vect_bb_partition_graph_r): Do not mark
28027 nodes w/o scalar stmts as visited.
28029 2021-04-06 Alex Coplan <alex.coplan@arm.com>
28032 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Also use base
28033 PCS for [su]fix_optab.
28035 2021-04-03 Iain Sandoe <iain@sandoe.co.uk>
28037 * config/darwin.c (machopic_legitimize_pic_address): Check
28038 that the current pic register is one of the hard reg set
28039 before setting liveness.
28041 2021-04-03 Iain Sandoe <iain@sandoe.co.uk>
28043 * config/darwin.c (machopic_legitimize_pic_address): Fix
28044 whitespace, remove unused code.
28046 2021-04-03 Jakub Jelinek <jakub@redhat.com>
28048 PR tree-optimization/99882
28049 * gimple-ssa-store-merging.c (bswap_view_convert): Handle val with
28052 2021-04-03 Jakub Jelinek <jakub@redhat.com>
28054 PR rtl-optimization/99863
28055 * dse.c (replace_read): Drop regs_live argument. Instead of
28056 regs_live, use store_insn->fixed_regs_live if non-NULL,
28057 otherwise punt if insns sequence clobbers or sets any hard
28060 2021-04-03 Jakub Jelinek <jakub@redhat.com>
28063 * targhooks.h (default_print_patchable_function_entry_1): Declare.
28064 * targhooks.c (default_print_patchable_function_entry_1): New function,
28065 copied from default_print_patchable_function_entry with an added flags
28067 (default_print_patchable_function_entry): Rewritten into a small
28068 wrapper around default_print_patchable_function_entry_1.
28069 * config/rs6000/rs6000.c (TARGET_ASM_PRINT_PATCHABLE_FUNCTION_ENTRY):
28071 (rs6000_print_patchable_function_entry): New function.
28073 2021-04-02 Eric Botcazou <ebotcazou@adacore.com>
28075 * doc/invoke.texi (fdelete-dead-exceptions): Minor tweak.
28077 2021-04-01 Jason Merrill <jason@redhat.com>
28080 * common.opt: Document v15 and v16.
28082 2021-04-01 Richard Biener <rguenther@suse.de>
28084 PR tree-optimization/99863
28085 * gimplify.c (gimplify_init_constructor): Recompute vector
28088 2021-04-01 Jakub Jelinek <jakub@redhat.com>
28090 * doc/extend.texi (symver attribute): Fix up syntax errors
28093 2021-04-01 Jakub Jelinek <jakub@redhat.com>
28095 PR tree-optimization/96573
28096 * gimple-ssa-store-merging.c (init_symbolic_number): Handle
28097 also pointer types.
28099 2021-04-01 Richard Biener <rguenther@suse.de>
28101 PR tree-optimization/99856
28102 * tree-vect-patterns.c (vect_recog_over_widening_pattern): Promote
28103 precision to vector element precision.
28105 2021-04-01 Martin Jambor <mjambor@suse.cz>
28107 PR tree-optimization/97009
28108 * tree-sra.c (access_or_its_child_written): New function.
28109 (propagate_subaccesses_from_rhs): Use it instead of a simple grp_write
28112 2021-03-31 Jan Hubicka <hubicka@ucw.cz>
28115 * cif-code.def (USES_COMDAT_LOCAL): Make CIF_FINAL_NORMAL.
28117 2021-03-31 Pat Haugen <pthaugen@linux.ibm.com>
28120 * config/rs6000/altivec.md (xxspltiw_v4si, xxspltiw_v4sf_inst,
28121 xxspltidp_v2df_inst, xxsplti32dx_v4si_inst, xxsplti32dx_v4sf_inst,
28122 xxblend_<mode>, xxpermx_inst, xxeval): Mark prefixed.
28123 * config/rs6000/mma.md (mma_<vvi4i4i8>, mma_<avvi4i4i8>,
28124 mma_<vvi4i4i2>, mma_<avvi4i4i2>, mma_<vvi4i4>, mma_<avvi4i4>,
28125 mma_<pvi4i2>, mma_<apvi4i2>, mma_<vvi4i4i4>, mma_<avvi4i4i4>):
28127 * config/rs6000/rs6000.c (rs6000_final_prescan_insn): Adjust test.
28128 * config/rs6000/rs6000.md (define_attr "maybe_prefixed"): New.
28129 (define_attr "prefixed"): Update initializer.
28131 2021-03-31 Jakub Jelinek <jakub@redhat.com>
28134 * dwarf2out.c (debug_ranges_dwo_section): New variable.
28135 (DW_RANGES_IDX_SKELETON): Define.
28136 (struct dw_ranges): Add begin_entry and end_entry members.
28137 (DEBUG_DWO_RNGLISTS_SECTION): Define.
28138 (add_ranges_num): Adjust r initializer for addition of *_entry
28140 (add_ranges_by_labels): For -gsplit-dwarf and force_direct,
28141 set idx to DW_RANGES_IDX_SKELETON.
28142 (use_distinct_base_address_for_range): New function.
28143 (index_rnglists): Don't set r->idx if it is equal to
28144 DW_RANGES_IDX_SKELETON. Initialize r->begin_entry and
28145 r->end_entry for -gsplit-dwarf if those will be needed by
28147 (output_rnglists): Add DWO argument. If true, switch to
28148 debug_ranges_dwo_section rather than debug_ranges_section.
28149 Adjust l1/l2 label indexes. Only output the offset table when
28150 dwo is true and don't include in there the skeleton range
28151 entry if present. For -gsplit-dwarf, skip ranges that belong
28152 to the other rnglists section. Change return type from void
28153 to bool and return true if there are any range entries for
28154 the other section. For dwarf_split_debug_info use
28155 DW_RLE_startx_endx, DW_RLE_startx_length and DW_RLE_base_addressx
28156 entries instead of DW_RLE_start_end, DW_RLE_start_length and
28157 DW_RLE_base_address. Use use_distinct_base_address_for_range.
28158 (init_sections_and_labels): Initialize debug_ranges_dwo_section
28159 if -gsplit-dwarf and DWARF >= 5. Adjust ranges_section_label
28160 and range_base_label indexes.
28161 (dwarf2out_finish): Call index_rnglists earlier before finalizing
28162 .debug_addr. Never emit DW_AT_rnglists_base attribute. For
28163 -gsplit-dwarf and DWARF >= 5 call output_rnglists up to twice
28164 with different dwo arguments.
28165 (dwarf2out_c_finalize): Clear debug_ranges_dwo_section.
28167 2021-03-31 Richard Sandiford <richard.sandiford@arm.com>
28169 PR tree-optimization/98268
28170 * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Call
28171 recompute_tree_invariant_for_addr_expr after successfully
28172 folding a TARGET_MEM_REF that occurs inside an ADDR_EXPR.
28174 2021-03-31 Richard Sandiford <richard.sandiford@arm.com>
28176 PR tree-optimization/99726
28177 * tree-data-ref.c (create_intersect_range_checks_index): Bail
28178 out if there is more than one access function SCEV for the loop
28181 2021-03-31 Richard Sandiford <richard.sandiford@arm.com>
28183 PR rtl-optimization/97141
28184 PR rtl-optimization/98726
28185 * emit-rtl.c (valid_for_const_vector_p): Return true for
28187 * rtx-vector-builder.h (rtx_vector_builder::step): Return a
28188 poly_wide_int instead of a wide_int.
28189 (rtx_vector_builder::apply_set): Take a poly_wide_int instead
28191 * rtx-vector-builder.c (rtx_vector_builder::apply_set): Likewise.
28192 * config/aarch64/aarch64.c (aarch64_legitimate_constant_p): Return
28193 false for CONST_VECTORs that cannot be forced to memory.
28194 * config/aarch64/aarch64-simd.md (mov<mode>): If a CONST_VECTOR
28195 is too complex to force to memory, build it up from individual
28198 2021-03-31 Jan Hubicka <jh@suse.cz>
28201 * cgraph.c (cgraph_node::release_body): Fix overactive check.
28203 2021-03-31 Christophe Lyon <christophe.lyon@linaro.org>
28206 * config/arm/vec-common.md (mul<mode>3): Disable on iwMMXT, expect
28209 2021-03-31 H.J. Lu <hjl.tools@gmail.com>
28211 * config/i386/i386-expand.c (expand_set_or_cpymem_via_rep):
28212 For TARGET_PREFER_KNOWN_REP_MOVSB_STOSB, don't convert QImode
28214 (decide_alg): For TARGET_PREFER_KNOWN_REP_MOVSB_STOSB, use
28215 "rep movsb/stosb" only for known sizes.
28216 * config/i386/i386-options.c (processor_cost_table): Use Ice
28217 Lake cost for Cannon Lake, Ice Lake, Tiger Lake, Sapphire
28218 Rapids and Alder Lake.
28219 * config/i386/i386.h (TARGET_PREFER_KNOWN_REP_MOVSB_STOSB): New.
28220 * config/i386/x86-tune-costs.h (icelake_memcpy): New.
28221 (icelake_memset): Likewise.
28222 (icelake_cost): Likewise.
28223 * config/i386/x86-tune.def (X86_TUNE_PREFER_KNOWN_REP_MOVSB_STOSB):
28226 2021-03-31 Richard Sandiford <richard.sandiford@arm.com>
28229 * config/aarch64/aarch64.c
28230 (aarch64_vectorize_preferred_vector_alignment): Query the size
28231 of the provided SVE vector; do not assume that all SVE vectors
28232 have the same size.
28234 2021-03-31 Jan Hubicka <jh@suse.cz>
28237 * cgraph.c (cgraph_node::release_body): Remove all callers and
28239 * cgraphclones.c (cgraph_node::materialize_clone): Do not do it here.
28240 * cgraphunit.c (cgraph_node::expand): And here.
28242 2021-03-31 Martin Liska <mliska@suse.cz>
28244 * ipa-modref.c (analyze_ssa_name_flags): Fix coding style
28245 and one negated condition.
28247 2021-03-31 Jakub Jelinek <jakub@redhat.com>
28248 Richard Sandiford <richard.sandiford@arm.com>
28251 * config/aarch64/aarch64.md (*add<mode>3_poly_1): Swap Uai and Uav
28252 constraints on operands[2] and similarly 0 and rk constraints
28253 on operands[1] corresponding to that.
28255 2021-03-31 Jakub Jelinek <jakub@redhat.com>
28258 * configure.ac (HAVE_LD_BROKEN_PE_DWARF5): New AC_DEFINE if PECOFF
28259 linker doesn't support DWARF sections new in DWARF5.
28260 * config/i386/i386-options.c (ix86_option_override_internal): Default
28261 to dwarf_version 4 if HAVE_LD_BROKEN_PE_DWARF5 for TARGET_PECOFF
28263 * config.in: Regenerated.
28264 * configure: Regenerated.
28266 2021-03-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28269 * config/aarch64/aarch64.c (aarch64_analyze_loop_vinfo): Check for
28270 available issue_info before using it.
28272 2021-03-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28275 * config/aarch64/aarch64.md (sub<mode>3_compare1_imm): Do not allow zero
28278 2021-03-30 Xionghu Luo <luoxhu@linux.ibm.com>
28281 * config/rs6000/altivec.md (altivec_lvsl_reg): Change to ...
28282 (altivec_lvsl_reg_<mode>): ... this.
28283 (altivec_lvsr_reg): Change to ...
28284 (altivec_lvsr_reg_<mode>): ... this.
28285 * config/rs6000/predicates.md (vec_set_index_operand): New.
28286 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
28287 Enable 32bit variable vec_insert for all TARGET_VSX.
28288 * config/rs6000/rs6000.c (rs6000_expand_vector_set_var_p9):
28289 Enable 32bit variable vec_insert for p9 and above.
28290 (rs6000_expand_vector_set_var_p8): Rename to ...
28291 (rs6000_expand_vector_set_var_p7): ... this.
28292 (rs6000_expand_vector_set): Use TARGET_VSX and adjust assert
28294 * config/rs6000/vector.md (vec_set<mode>): Use vec_set_index_operand.
28295 * config/rs6000/vsx.md (xl_len_r): Use gen_altivec_lvsl_reg_di and
28296 gen_altivec_lvsr_reg_di.
28298 2021-03-30 H.J. Lu <hjl.tools@gmail.com>
28301 * config/i386/ia32intrin.h (__rdtsc): Defined as macro.
28302 (__rdtscp): Likewise.
28304 2021-03-30 Tamar Christina <tamar.christina@arm.com>
28306 PR tree-optimization/99825
28307 * tree-vect-slp-patterns.c (vect_check_evenodd_blend):
28308 Reject non-mult 2 lanes.
28310 2021-03-30 Richard Earnshaw <rearnsha@arm.com>
28313 * config/arm/arm.c (arm_file_start): Fix emission of
28314 Tag_ABI_VFP_args attribute.
28316 2021-03-30 Richard Biener <rguenther@suse.de>
28318 PR tree-optimization/99824
28319 * stor-layout.c (set_min_and_max_values_for_integral_type):
28320 Assert the precision is within the bounds of
28321 WIDE_INT_MAX_PRECISION.
28322 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use
28323 the outermost component ref only to lower the access size
28324 and initialize that from the access type.
28326 2021-03-30 Richard Sandiford <richard.sandiford@arm.com>
28329 * config/aarch64/aarch64.md (mov<mode>): Pass multi-instruction
28330 CONST_INTs to aarch64_expand_mov_immediate when called after RA.
28332 2021-03-30 Mihailo Stojanovic <mihailo.stojanovic@typhoon-hil.com>
28334 * config/aarch64/aarch64.md
28335 (<optab>_trunc<fcvt_target><GPI:mode>2): Set the "arch"
28336 attribute to disambiguate between SIMD and FP variants of the
28339 2021-03-29 Jan Hubicka <hubicka@ucw.cz>
28341 * ipa-modref.c (merge_call_lhs_flags): Correct handling of deref.
28342 (analyze_ssa_name_flags): Fix typo in comment.
28344 2021-03-29 Alex Coplan <alex.coplan@arm.com>
28347 * config/aarch64/aarch64-sve-builtins.cc
28348 (function_builder::add_function): Add placeholder_p argument, use
28349 placeholder decls if this is set.
28350 (function_builder::add_unique_function): Instead of conditionally adding
28351 direct overloads, unconditionally add either a direct overload or a
28353 (function_builder::add_overloaded_function): Set placeholder_p if we're
28354 using C++ overloads. Use the obstack for string storage instead
28355 of relying on the tree nodes.
28356 (function_builder::add_overloaded_functions): Don't return early for
28357 m_direct_overloads: we need to add placeholders.
28358 * config/aarch64/aarch64-sve-builtins.h
28359 (function_builder::add_function): Add placeholder_p argument.
28361 2021-03-29 Richard Biener <rguenther@suse.de>
28363 PR tree-optimization/99807
28364 * tree-vect-slp.c (vect_slp_analyze_node_operations_1): Move
28365 assert below VEC_PERM handling.
28367 2021-03-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28370 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): Use
28371 aarch64_simd_or_scalar_imm_zero to match zeroes. Remove pattern
28372 matching const_int 0.
28373 (move_lo_quad_internal_be_<mode>): Likewise.
28374 (move_lo_quad_<mode>): Update for the above.
28375 * config/aarch64/iterators.md (VQ_2E): Delete.
28377 2021-03-29 Jakub Jelinek <jakub@redhat.com>
28379 PR tree-optimization/99777
28380 * fold-const.c (extract_muldiv_1): For conversions, punt on casts from
28381 types other than scalar integral types.
28383 2021-03-28 David Edelsohn <dje.gcc@gmail.com>
28385 * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Do not add
28386 XCOFF TLS reloc decorations.
28388 2021-03-28 Gerald Pfeifer <gerald@pfeifer.com>
28390 * doc/analyzer.texi (Analyzer Internals): Update link to
28391 "A Memory Model for Static Analysis of C Programs".
28393 2021-03-26 David Edelsohn <dje.gcc@gmail.com>
28395 * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Call function.
28396 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align):
28398 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align): New.
28399 (rs6000_special_round_type_align): Recursively check innermost first
28402 2021-03-26 Jakub Jelinek <jakub@redhat.com>
28405 * dwarf2out.h (struct dw_fde_node): Add rule18 member.
28406 * dwarf2cfi.c (dwarf2out_frame_debug_expr): When handling (set hfp sp)
28407 assignment with drap_reg active, queue reg save for hfp with offset 0
28408 and flush queued reg saves. When handling a push with rule18,
28409 defer queueing reg save for hfp and just assert the offset is 0.
28410 (scan_trace): Assert that fde->rule18 is false.
28412 2021-03-26 Vladimir Makarov <vmakarov@redhat.com>
28415 * ira-costs.c (record_reg_classes): Put case with
28416 CT_RELAXED_MEMORY adjacent to one with CT_MEMORY.
28417 * ira.c (ira_setup_alts): Ditto.
28418 * lra-constraints.c (process_alt_operands): Ditto.
28419 * recog.c (asm_operand_ok): Ditto.
28420 * reload.c (find_reloads): Ditto.
28422 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
28424 * config/aarch64/aarch64-protos.h
28425 (cpu_addrcost_table::post_modify_ld3_st3): New member variable.
28426 (cpu_addrcost_table::post_modify_ld4_st4): Likewise.
28427 * config/aarch64/aarch64.c (generic_addrcost_table): Update
28428 accordingly, using the same costs as for post_modify.
28429 (exynosm1_addrcost_table, xgene1_addrcost_table): Likewise.
28430 (thunderx2t99_addrcost_table, thunderx3t110_addrcost_table):
28431 (tsv110_addrcost_table, qdf24xx_addrcost_table): Likewise.
28432 (a64fx_addrcost_table): Likewise.
28433 (neoversev1_addrcost_table): New.
28434 (neoversev1_tunings): Use neoversev1_addrcost_table.
28435 (aarch64_address_cost): Use the new post_modify costs for CImode
28438 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
28440 * config/aarch64/aarch64.opt
28441 (-param=aarch64-loop-vect-issue-rate-niters=): New parameter.
28442 * doc/invoke.texi: Document it.
28443 * config/aarch64/aarch64-protos.h (aarch64_base_vec_issue_info)
28444 (aarch64_scalar_vec_issue_info, aarch64_simd_vec_issue_info)
28445 (aarch64_advsimd_vec_issue_info, aarch64_sve_vec_issue_info)
28446 (aarch64_vec_issue_info): New structures.
28447 (cpu_vector_cost): Write comments above the variables rather
28449 (cpu_vector_cost::issue_info): New member variable.
28450 * config/aarch64/aarch64.c: Include gimple-pretty-print.h
28451 and tree-ssa-loop-niter.h.
28452 (generic_vector_cost, a64fx_vector_cost, qdf24xx_vector_cost)
28453 (thunderx_vector_cost, tsv110_vector_cost, cortexa57_vector_cost)
28454 (exynosm1_vector_cost, xgene1_vector_cost, thunderx2t99_vector_cost)
28455 (thunderx3t110_vector_cost): Initialize issue_info to null.
28456 (neoversev1_scalar_issue_info, neoversev1_advsimd_issue_info)
28457 (neoversev1_sve_issue_info, neoversev1_vec_issue_info): New structures.
28458 (neoversev1_vector_cost): Use them.
28459 (aarch64_vec_op_count, aarch64_sve_op_count): New structures.
28460 (aarch64_vector_costs::saw_sve_only_op): New member variable.
28461 (aarch64_vector_costs::num_vector_iterations): Likewise.
28462 (aarch64_vector_costs::scalar_ops): Likewise.
28463 (aarch64_vector_costs::advsimd_ops): Likewise.
28464 (aarch64_vector_costs::sve_ops): Likewise.
28465 (aarch64_vector_costs::seen_loads): Likewise.
28466 (aarch64_simd_vec_costs_for_flags): New function.
28467 (aarch64_analyze_loop_vinfo): Initialize num_vector_iterations.
28468 Count the number of predicate operations required by SVE WHILE
28470 (aarch64_comparison_type, aarch64_multiply_add_p): New functions.
28471 (aarch64_sve_only_stmt_p, aarch64_in_loop_reduction_latency): Likewise.
28472 (aarch64_count_ops): Likewise.
28473 (aarch64_add_stmt_cost): Record whether see an SVE operation
28474 that cannot currently be implementing using Advanced SIMD.
28475 Record issue information about the scalar, Advanced SIMD
28476 and (where relevant) SVE versions of a loop.
28477 (aarch64_vec_op_count::dump): New function.
28478 (aarch64_sve_op_count::dump): Likewise.
28479 (aarch64_estimate_min_cycles_per_iter): Likewise.
28480 (aarch64_adjust_body_cost): If issue information is available,
28481 try to compare the issue rates of the various loop implementations
28482 and increase or decrease the vector body cost accordingly.
28484 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
28486 * config/aarch64/aarch64.c (aarch64_detect_vector_stmt_subtype):
28487 Assume a zero cost for induction phis.
28489 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
28491 * config/aarch64/aarch64.c (aarch64_embedded_comparison_type): New
28493 (aarch64_adjust_stmt_cost): Add the costs of embedded scalar and
28494 vector comparisons.
28496 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
28498 * config/aarch64/aarch64.c (aarch64_detect_scalar_stmt_subtype):
28500 (aarch64_add_stmt_cost): Call it.
28502 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
28504 * config/aarch64/aarch64-tuning-flags.def (matched_vector_throughput):
28505 New tuning parameter.
28506 * config/aarch64/aarch64.c (neoversev1_tunings): Use it.
28507 (aarch64_estimated_sve_vq): New function.
28508 (aarch64_vector_costs::analyzed_vinfo): New member variable.
28509 (aarch64_vector_costs::is_loop): Likewise.
28510 (aarch64_vector_costs::unrolled_advsimd_niters): Likewise.
28511 (aarch64_vector_costs::unrolled_advsimd_stmts): Likewise.
28512 (aarch64_record_potential_advsimd_unrolling): New function.
28513 (aarch64_analyze_loop_vinfo, aarch64_analyze_bb_vinfo): Likewise.
28514 (aarch64_add_stmt_cost): Call aarch64_analyze_loop_vinfo or
28515 aarch64_analyze_bb_vinfo on the first use of a costs structure.
28516 Detect whether we're vectorizing a loop for SVE that might be
28517 completely unrolled if it used Advanced SIMD instead.
28518 (aarch64_adjust_body_cost_for_latency): New function.
28519 (aarch64_finish_cost): Call it.
28521 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
28523 * config/aarch64/aarch64.c (aarch64_vector_costs): New structure.
28524 (aarch64_init_cost): New function.
28525 (aarch64_add_stmt_cost): Use aarch64_vector_costs instead of
28526 the default unsigned[3].
28527 (aarch64_finish_cost, aarch64_destroy_cost_data): New functions.
28528 (TARGET_VECTORIZE_INIT_COST): Override.
28529 (TARGET_VECTORIZE_FINISH_COST): Likewise.
28530 (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
28532 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
28534 * config/aarch64/aarch64.c (neoversev1_advsimd_vector_cost)
28535 (neoversev1_sve_vector_cost): New cost structures.
28536 (neoversev1_vector_cost): Likewise.
28537 (neoversev1_tunings): Use them. Enable use_new_vector_costs.
28539 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
28541 * config/aarch64/aarch64-protos.h
28542 (sve_vec_cost::scatter_store_elt_cost): New member variable.
28543 * config/aarch64/aarch64.c (generic_sve_vector_cost): Update
28544 accordingly, taking the cost from the cost of a scalar_store.
28545 (a64fx_sve_vector_cost): Likewise.
28546 (aarch64_detect_vector_stmt_subtype): Detect scatter stores.
28548 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
28550 * config/aarch64/aarch64-protos.h
28551 (simd_vec_cost::store_elt_extra_cost): New member variable.
28552 * config/aarch64/aarch64.c (generic_advsimd_vector_cost): Update
28553 accordingly, using the vec_to_scalar cost for the new field.
28554 (generic_sve_vector_cost, a64fx_advsimd_vector_cost): Likewise.
28555 (a64fx_sve_vector_cost, qdf24xx_advsimd_vector_cost): Likewise.
28556 (thunderx_advsimd_vector_cost, tsv110_advsimd_vector_cost): Likewise.
28557 (cortexa57_advsimd_vector_cost, exynosm1_advsimd_vector_cost)
28558 (xgene1_advsimd_vector_cost, thunderx2t99_advsimd_vector_cost)
28559 (thunderx3t110_advsimd_vector_cost): Likewise.
28560 (aarch64_detect_vector_stmt_subtype): Detect single-element stores.
28562 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
28564 * config/aarch64/aarch64-protos.h (simd_vec_cost::ld2_st2_permute_cost)
28565 (simd_vec_cost::ld3_st3_permute_cost): New member variables.
28566 (simd_vec_cost::ld4_st4_permute_cost): Likewise.
28567 * config/aarch64/aarch64.c (generic_advsimd_vector_cost): Update
28568 accordingly, using zero for the new costs.
28569 (generic_sve_vector_cost, a64fx_advsimd_vector_cost): Likewise.
28570 (a64fx_sve_vector_cost, qdf24xx_advsimd_vector_cost): Likewise.
28571 (thunderx_advsimd_vector_cost, tsv110_advsimd_vector_cost): Likewise.
28572 (cortexa57_advsimd_vector_cost, exynosm1_advsimd_vector_cost)
28573 (xgene1_advsimd_vector_cost, thunderx2t99_advsimd_vector_cost)
28574 (thunderx3t110_advsimd_vector_cost): Likewise.
28575 (aarch64_ld234_st234_vectors): New function.
28576 (aarch64_adjust_stmt_cost): Likewise.
28577 (aarch64_add_stmt_cost): Call aarch64_adjust_stmt_cost if using
28578 the new vector costs.
28580 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
28582 * config/aarch64/aarch64-protos.h (sve_vec_cost): Turn into a
28583 derived class of simd_vec_cost. Add information about CLAST[AB]
28584 and FADDA instructions.
28585 * config/aarch64/aarch64.c (generic_sve_vector_cost): Update
28586 accordingly, using the vec_to_scalar costs for the new fields.
28587 (a64fx_sve_vector_cost): Likewise.
28588 (aarch64_reduc_type): New function.
28589 (aarch64_sve_in_loop_reduction_latency): Likewise.
28590 (aarch64_detect_vector_stmt_subtype): Take a vinfo parameter.
28591 Use aarch64_sve_in_loop_reduction_latency to handle SVE reductions
28592 that occur in the loop body.
28593 (aarch64_add_stmt_cost): Update call accordingly.
28595 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
28597 * config/aarch64/aarch64-tuning-flags.def (use_new_vector_costs):
28599 * config/aarch64/aarch64-protos.h (simd_vec_cost): Put comments
28600 above the fields rather than to the right.
28601 (simd_vec_cost::reduc_i8_cost): New member variable.
28602 (simd_vec_cost::reduc_i16_cost): Likewise.
28603 (simd_vec_cost::reduc_i32_cost): Likewise.
28604 (simd_vec_cost::reduc_i64_cost): Likewise.
28605 (simd_vec_cost::reduc_f16_cost): Likewise.
28606 (simd_vec_cost::reduc_f32_cost): Likewise.
28607 (simd_vec_cost::reduc_f64_cost): Likewise.
28608 * config/aarch64/aarch64.c (generic_advsimd_vector_cost): Update
28609 accordingly, using the vec_to_scalar_cost for the new fields.
28610 (generic_sve_vector_cost, a64fx_advsimd_vector_cost): Likewise.
28611 (a64fx_sve_vector_cost, qdf24xx_advsimd_vector_cost): Likewise.
28612 (thunderx_advsimd_vector_cost, tsv110_advsimd_vector_cost): Likewise.
28613 (cortexa57_advsimd_vector_cost, exynosm1_advsimd_vector_cost)
28614 (xgene1_advsimd_vector_cost, thunderx2t99_advsimd_vector_cost)
28615 (thunderx3t110_advsimd_vector_cost): Likewise.
28616 (aarch64_use_new_vector_costs_p): New function.
28617 (aarch64_simd_vec_costs): New function, split out from...
28618 (aarch64_builtin_vectorization_cost): ...here.
28619 (aarch64_is_reduction): New function.
28620 (aarch64_detect_vector_stmt_subtype): Likewise.
28621 (aarch64_add_stmt_cost): Call aarch64_detect_vector_stmt_subtype if
28622 using the new vector costs.
28624 2021-03-26 Iain Buclaw <ibuclaw@gdcproject.org>
28627 * tree-emutls.c (get_emutls_init_templ_addr): Mark initializer of weak
28628 TLS declarations as public.
28630 2021-03-26 Iain Buclaw <ibuclaw@gdcproject.org>
28632 * config/aarch64/aarch64-d.c (IN_TARGET_CODE): Define.
28633 * config/arm/arm-d.c (IN_TARGET_CODE): Likewise.
28634 * config/i386/i386-d.c (IN_TARGET_CODE): Likewise.
28635 * config/mips/mips-d.c (IN_TARGET_CODE): Likewise.
28636 * config/pa/pa-d.c (IN_TARGET_CODE): Likewise.
28637 * config/riscv/riscv-d.c (IN_TARGET_CODE): Likewise.
28638 * config/rs6000/rs6000-d.c (IN_TARGET_CODE): Likewise.
28639 * config/s390/s390-d.c (IN_TARGET_CODE): Likewise.
28640 * config/sparc/sparc-d.c (IN_TARGET_CODE): Likewise.
28642 2021-03-26 Iain Buclaw <ibuclaw@gdcproject.org>
28645 * config.gcc (*-*-cygwin*): Add winnt-d.o
28646 (*-*-mingw*): Likewise.
28647 * config/i386/cygwin.h (EXTRA_TARGET_D_OS_VERSIONS): New macro.
28648 * config/i386/mingw32.h (EXTRA_TARGET_D_OS_VERSIONS): Likewise.
28649 * config/i386/t-cygming: Add winnt-d.o.
28650 * config/i386/winnt-d.c: New file.
28652 2021-03-26 Iain Buclaw <ibuclaw@gdcproject.org>
28654 * config/freebsd-d.c: Include memmodel.h.
28656 2021-03-26 Iain Buclaw <ibuclaw@gdcproject.org>
28659 * config.gcc (*-*-openbsd*): Add openbsd-d.o.
28660 * config/t-openbsd: Add openbsd-d.o.
28661 * config/openbsd-d.c: New file.
28663 2021-03-25 Stam Markianos-Wright <stam.markianos-wright@arm.com>
28665 PR tree-optimization/96974
28666 * tree-vect-stmts.c (vect_get_vector_types_for_stmt): Replace assert
28667 with graceful exit.
28669 2021-03-25 H.J. Lu <hjl.tools@gmail.com>
28672 2021-03-25 H.J. Lu <hjl.tools@gmail.com>
28676 * config/i386/i386.c (ix86_can_inline_p): Don't check ISA for
28677 always_inline in system headers.
28679 2021-03-25 Kewen Lin <linkw@linux.ibm.com>
28681 * tree-vect-loop.c (vect_model_reduction_cost): Init inside_cost.
28683 2021-03-25 Jakub Jelinek <jakub@redhat.com>
28686 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF_SAME_FIELD.
28687 * fold-const.c (operand_compare::operand_equal_p): Don't compare
28688 field offsets if OEP_ADDRESS_OF_SAME_FIELD.
28690 2021-03-25 H.J. Lu <hjl.tools@gmail.com>
28694 * config/i386/i386.c (ix86_can_inline_p): Don't check ISA for
28695 always_inline in system headers.
28697 2021-03-25 Richard Biener <rguenther@suse.de>
28699 PR tree-optimization/99746
28700 * tree-vect-slp-patterns.c (complex_pattern::build): Do not mark
28701 the scalar stmt as patterned. Instead set up required things
28704 2021-03-25 Xionghu Luo <luoxhu@linux.ibm.com>
28706 * config/rs6000/rs6000.c (power8_costs): Change l2 cache
28709 2021-03-24 Martin Liska <mliska@suse.cz>
28712 * common/config/i386/i386-common.c (ARRAY_SIZE): Fix off-by-one
28714 * config/i386/i386-options.c (ix86_option_override_internal):
28715 Add run-time assert.
28717 2021-03-24 Martin Jambor <mjambor@suse.cz>
28720 * ipa-cp.c (initialize_node_lattices): Mark as bottom all
28721 parameters with unknown type.
28722 (ipacp_value_safe_for_type): New function.
28723 (propagate_vals_across_arith_jfunc): Verify that the constant type
28724 can be used for a type of the formal parameter.
28725 (propagate_vals_across_ancestor): Likewise.
28726 (propagate_scalar_across_jump_function): Likewise. Pass the type
28727 also to propagate_vals_across_ancestor.
28729 2021-03-24 Christophe Lyon <christophe.lyon@linaro.org>
28732 * config/arm/mve.md (movmisalign<mode>_mve_store): Use Ux
28734 (movmisalign<mode>_mve_load): Likewise.
28736 2021-03-24 Jakub Jelinek <jakub@redhat.com>
28739 * config/arm/vec-common.md (one_cmpl<mode>2, neg<mode>2,
28740 movmisalign<mode>): Disable expanders for TARGET_REALLY_IWMMXT.
28742 2021-03-24 Alexandre Oliva <oliva@adacore.com>
28744 * doc/sourcebuild.texi (sysconf): New effective target.
28746 2021-03-24 Alexandre Oliva <oliva@adacore.com>
28748 * config/i386/predicates.md (reg_or_const_vec_operand): New.
28749 * config/i386/sse.md (ssse3_pshufbv8qi3): Add an expander for
28750 the now *-prefixed insn_and_split, turn the splitter const vec
28751 into an input for the insn, making it an ignored immediate for
28752 non-split cases, and loaded into the scratch register
28755 2021-03-23 Vladimir N. Makarov <vmakarov@redhat.com>
28758 * config/aarch64/constraints.md (Utq, UOb, UOh, UOw, UOd, UOty):
28759 Use define_relaxed_memory_constraint for them.
28761 2021-03-23 Iain Sandoe <iain@sandoe.co.uk>
28764 * config/host-darwin.c (darwin_gt_pch_use_address): Add a
28765 colon to the diagnostic message.
28767 2021-03-23 Ilya Leoshkevich <iii@linux.ibm.com>
28769 * fwprop.c (fwprop_propagation::fwprop_propagation): Look at
28771 (try_fwprop_subst_note): Use set_info instead of insn_info.
28772 (try_fwprop_subst_pattern): Likewise.
28773 (try_fwprop_subst_notes): Likewise.
28774 (try_fwprop_subst): Likewise.
28775 (forward_propagate_subreg): Likewise.
28776 (forward_propagate_and_simplify): Likewise.
28777 (forward_propagate_into): Likewise.
28778 * rtl-ssa/accesses.h (set_info::single_nondebug_use) New
28780 (set_info::single_nondebug_insn_use): Likewise.
28781 (set_info::single_phi_use): Likewise.
28782 * rtl-ssa/member-fns.inl (set_info::single_nondebug_use) New
28784 (set_info::single_nondebug_insn_use): Likewise.
28785 (set_info::single_phi_use): Likewise.
28787 2021-03-23 Christophe Lyon <christophe.lyon@linaro.org>
28789 * doc/sourcebuild.texi (arm_dsp_ok, arm_dsp): Document.
28791 2021-03-23 Jakub Jelinek <jakub@redhat.com>
28794 * config/aarch64/aarch64.c (aarch64_add_offset): Tell
28795 expand_mult to perform an unsigned rather than a signed
28798 2021-03-23 H.J. Lu <hjl.tools@gmail.com>
28801 * config/i386/cpuid.h (__cpuid): Add __volatile__.
28802 (__cpuid_count): Likewise.
28804 2021-03-23 Richard Biener <rguenther@suse.de>
28806 PR tree-optimization/99721
28807 * tree-vect-slp.c (vect_slp_analyze_node_operations):
28808 Make sure we can schedule the node.
28810 2021-03-23 Marcus Comstedt <marcus@mc.pp.se>
28812 * config/riscv/riscv.c (riscv_subword): Take endianness into
28813 account when calculating the byte offset.
28815 2021-03-23 Marcus Comstedt <marcus@mc.pp.se>
28817 * config/riscv/predicates.md (subreg_lowpart_operator): New predicate
28818 * config/riscv/riscv.md (*addsi3_extended2, *subsi3_extended2)
28819 (*negsi2_extended2, *mulsi3_extended2, *<optab>si3_mask)
28820 (*<optab>si3_mask_1, *<optab>di3_mask, *<optab>di3_mask_1)
28821 (*<optab>si3_extend_mask, *<optab>si3_extend_mask_1): Use
28822 new predicate "subreg_lowpart_operator"
28824 2021-03-23 Marcus Comstedt <marcus@mc.pp.se>
28826 * config/riscv/riscv.c (riscv_swap_instruction): New function
28827 to byteswap an SImode rtx containing an instruction.
28828 (riscv_trampoline_init): Byteswap the generated instructions
28831 2021-03-23 Marcus Comstedt <marcus@mc.pp.se>
28833 * common/config/riscv/riscv-common.c
28834 (TARGET_DEFAULT_TARGET_FLAGS): Set default endianness.
28835 * config.gcc (riscv32be-*, riscv64be-*): Set
28836 TARGET_BIG_ENDIAN_DEFAULT to 1.
28837 * config/riscv/elf.h (LINK_SPEC): Change -melf* value
28838 depending on default endianness.
28839 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
28840 * config/riscv/linux.h (LINK_SPEC): Likewise.
28841 * config/riscv/riscv.c (TARGET_DEFAULT_TARGET_FLAGS): Set
28842 default endianness.
28843 * config/riscv/riscv.h (DEFAULT_ENDIAN_SPEC): New macro.
28845 2021-03-23 Marcus Comstedt <marcus@mc.pp.se>
28847 * config/riscv/elf.h (LINK_SPEC): Pass linker endianness flag.
28848 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
28849 * config/riscv/linux.h (LINK_SPEC): Likewise.
28850 * config/riscv/riscv.h (ASM_SPEC): Pass -mbig-endian and
28852 (BYTES_BIG_ENDIAN): Handle big endian.
28853 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
28854 * config/riscv/riscv.opt (-mbig-endian, -mlittle-endian): New
28856 * doc/invoke.texi (-mbig-endian, -mlittle-endian): Document.
28858 2021-03-23 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
28860 * regcprop.c (find_oldest_value_reg): Ask target whether
28861 different mode is fine for replacement register.
28863 2021-03-23 Aldy Hernandez <aldyh@redhat.com>
28865 PR tree-optimization/99296
28866 * value-range.cc (irange::irange_set_1bit_anti_range): New.
28867 (irange::irange_set_anti_range): Call irange_set_1bit_anti_range
28868 * value-range.h (irange::irange_set_1bit_anti_range): New.
28870 2021-03-22 Vladimir N. Makarov <vmakarov@redhat.com>
28873 * config/aarch64/constraints.md (UtQ): Use
28874 define_relaxed_memory_constraint for it.
28875 * doc/md.texi (define_relaxed_memory_constraint): Describe it.
28876 * genoutput.c (main): Process DEFINE_RELAXED_MEMORY_CONSTRAINT.
28877 * genpreds.c (constraint_data): Add bitfield is_relaxed_memory.
28878 (have_relaxed_memory_constraints): New static var.
28879 (relaxed_memory_start, relaxed_memory_end): Ditto.
28880 (add_constraint): Add arg is_relaxed_memory. Check name for
28881 relaxed memory. Set up is_relaxed_memory in constraint_data and
28882 have_relaxed_memory_constraints. Adjust calls.
28883 (choose_enum_order): Process relaxed memory.
28884 (write_tm_preds_h): Ditto.
28885 (main): Process DEFINE_RELAXED_MEMORY_CONSTRAINT.
28886 * gensupport.c (process_rtx): Process DEFINE_RELAXED_MEMORY_CONSTRAINT.
28887 * ira-costs.c (record_reg_classes): Process CT_RELAXED_MEMORY.
28888 * ira-lives.c (single_reg_class): Use
28889 insn_extra_relaxed_memory_constraint.
28890 * ira.c (ira_setup_alts): CT_RELAXED_MEMORY.
28891 * lra-constraints.c (valid_address_p): Use
28892 insn_extra_relaxed_memory_constraint instead of other memory
28894 (process_alt_operands): Process CT_RELAXED_MEMORY.
28895 (curr_insn_transform): Use insn_extra_relaxed_memory_constraint.
28896 * recog.c (asm_operand_ok, preprocess_constraints): Process
28898 * reload.c (find_reloads): Ditto.
28899 * rtl.def (DEFINE_RELAXED_MEMORY_CONSTRAINT): New.
28900 * stmt.c (parse_input_constraint): Use
28901 insn_extra_relaxed_memory_constraint.
28903 2021-03-22 Segher Boessenkool <segher@kernel.crashing.org>
28906 * ubsan.c (ubsan_instrument_float_cast): Don't test for unordered if
28909 2021-03-22 Alex Coplan <alex.coplan@arm.com>
28912 * config/arm/arm-protos.h (neon_make_constant): Add generate
28913 argument to guard emitting insns, default to true.
28914 * config/arm/arm.c (arm_legitimate_constant_p_1): Reject
28915 CONST_VECTORs which neon_make_constant can't handle.
28916 (neon_vdup_constant): Add generate argument, avoid emitting
28917 insns if it's not set.
28918 (neon_make_constant): Plumb new generate argument through.
28919 * config/arm/constraints.md (Ui): New. Use it...
28920 * config/arm/mve.md (*mve_mov<mode>): ... here.
28921 * config/arm/vec-common.md (movv8hf): Use neon_make_constant to
28922 synthesize constants.
28924 2021-03-22 Richard Biener <rguenther@suse.de>
28926 * debug.h: Add deprecation warning.
28928 2021-03-22 Richard Biener <rguenther@suse.de>
28930 PR tree-optimization/99694
28931 * tree-ssa-sccvn.c (visit_phi): Ignore edges with the
28934 2021-03-22 Kito Cheng <kito.cheng@sifive.com>
28937 * config/riscv/riscv.c (riscv_expand_block_move): Get RTL value
28938 after type checking.
28940 2021-03-22 Jakub Jelinek <jakub@redhat.com>
28944 * dwarf2out.c (get_full_len): Use get_precision rather than
28946 (add_const_value_attribute): Make sure add_AT_wide argument has
28947 precision prec rather than some very wide one.
28949 2021-03-22 Kewen Lin <linkw@linux.ibm.com>
28951 * config/rs6000/rs6000.md (*rotldi3_insert_sf,
28952 *mov<SFDF:mode><SFDF2:mode>cc_p9, floatsi<mode>2_lfiwax,
28953 floatsi<mode>2_lfiwax_mem, floatunssi<mode>2_lfiwzx,
28954 floatunssi<mode>2_lfiwzx_mem, *floatsidf2_internal,
28955 *floatunssidf2_internal, fix_trunc<mode>si2_stfiwx,
28956 fix_trunc<mode>si2_internal, fixuns_trunc<mode>si2_stfiwx,
28957 *round32<mode>2_fprs, *roundu32<mode>2_fprs,
28958 *fix_trunc<mode>si2_internal): Fix empty split condition.
28959 * config/rs6000/vsx.md (*vsx_le_undo_permute_<mode>,
28960 vsx_reduc_<VEC_reduc_name>_v2df, vsx_reduc_<VEC_reduc_name>_v4sf,
28961 *vsx_reduc_<VEC_reduc_name>_v2df_scalar,
28962 *vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Likewise.
28964 2021-03-22 Xionghu Luo <luoxhu@linux.ibm.com>
28967 * config/rs6000/rs6000.c (rs6000_expand_vector_set_var_p9):
28968 Convert idx to DImode.
28969 (rs6000_expand_vector_set_var_p8): Likewise.
28971 2021-03-21 Jakub Jelinek <jakub@redhat.com>
28974 * dwarf2out.c (insert_float): Change return type from void to
28975 unsigned, handle GET_MODE_SIZE (mode) == 2 and return element size.
28976 (mem_loc_descriptor, loc_descriptor, add_const_value_attribute):
28979 2021-03-20 H.J. Lu <hjl.tools@gmail.com>
28982 * config/i386/i386.c (construct_container): Check cfun != NULL
28983 before accessing silent_p.
28985 2021-03-20 Ahamed Husni <ahamedhusni73@gmail.com>
28987 * asan.c: Fix typos in comments.
28989 2021-03-20 Vladimir N. Makarov <vmakarov@redhat.com>
28991 PR rtl-optimization/99680
28992 * lra-constraints.c (skip_contraint_modifiers): Rename to skip_constraint_modifiers.
28993 (process_address_1): Check empty constraint before using
28996 2021-03-19 Pat Haugen <pthaugen@linux.ibm.com>
28998 * config/rs6000/rs6000.c (power10_cost): New.
28999 (rs6000_option_override_internal): Set Power10 costs.
29000 (rs6000_issue_rate): Set Power10 issue rate.
29001 * config/rs6000/power10.md: Rewrite for Power10.
29003 2021-03-19 Vladimir N. Makarov <vmakarov@redhat.com>
29006 * lra-constraints.c (process_address_1): Don't use unknown
29007 constraint for address constraint.
29009 2021-03-19 Iain Sandoe <iain@sandoe.co.uk>
29012 * config.gcc (powerpc-*-darwin8): Delete the reference to
29013 the now removed darwin8.h.
29015 2021-03-19 Olivier Hainque <hainque@adacore.com>
29018 * config/vxworksae.h (VX_CPU_PREFIX): Define.
29020 2021-03-19 John David Anglin <danglin@gcc.gnu.org>
29022 * config/pa/pa.c (import_milli): Use memcpy instead of strncpy.
29024 2021-03-19 Tamar Christina <tamar.christina@arm.com>
29026 PR tree-optimization/99656
29027 * tree-vect-slp-patterns.c (linear_loads_p,
29028 complex_add_pattern::matches, is_eq_or_top,
29029 vect_validate_multiplication, complex_mul_pattern::matches,
29030 complex_fms_pattern::matches): Remove complex_perm_kinds_t.
29031 * tree-vectorizer.h: (complex_load_perm_t): Removed.
29032 (slp_tree_to_load_perm_map_t): Use complex_perm_kinds_t instead of
29033 complex_load_perm_t.
29035 2021-03-19 H.J. Lu <hjl.tools@gmail.com>
29038 * config/i386/i386-options.c (ix86_init_machine_status): Set
29040 * config/i386/i386.c (init_cumulative_args): Set silent_p to
29042 (construct_container): Return early for return and argument
29043 errors if silent_p is true.
29044 * config/i386/i386.h (machine_function): Add silent_p.
29046 2021-03-19 Jakub Jelinek <jakub@redhat.com>
29049 * config/arm/constraints.md (Ds): New constraint.
29050 * config/arm/vec-common.md (mve_vshlq_<supf><mode>): Use w,Ds
29051 constraint instead of w,Dm.
29053 2021-03-19 Andrew Stubbs <ams@codesourcery.com>
29055 * config/gcn/gcn.c (gcn_parse_amdgpu_hsa_kernel_attribute): Fix quotes
29058 2021-03-19 Eric Botcazou <ebotcazou@adacore.com>
29060 PR middle-end/99641
29061 * fold-const.c (native_encode_initializer) <CONSTRUCTOR>: For an
29062 array type, do the computation of the current position in sizetype.
29064 2021-03-18 Vladimir N. Makarov <vmakarov@redhat.com>
29067 * lra-constraints.c (process_address_1): Use lookup_constraint
29068 only for a single constraint.
29070 2021-03-18 Martin Sebor <msebor@redhat.com>
29072 PR middle-end/99502
29073 * gimple-array-bounds.cc (inbounds_vbase_memaccess_p): Rename...
29074 (inbounds_memaccess_p): ...to this. Check the ending offset of
29075 the accessed member.
29077 2021-03-18 Andrew Stubbs <ams@codesourcery.com>
29079 * config/gcn/gcn.c (gcn_parse_amdgpu_hsa_kernel_attribute): Add %< and
29080 %> quote markers to error messages.
29081 (gcn_goacc_validate_dims): Likewise.
29082 (gcn_conditional_register_usage): Remove exclaimation mark from error
29084 (gcn_vectorize_vec_perm_const): Ensure perm is fully uninitialized.
29086 2021-03-18 Jan Hubicka <hubicka@ucw.cz>
29088 * config/i386/x86-tune-costs.h (struct processor_costs): Fix costs of
29091 2021-03-18 Sinan Lin <sinan@isrc.iscas.ac.cn>
29092 Kito Cheng <kito.cheng@sifive.com>
29094 * config/riscv/riscv.c (riscv_block_move_straight): Change type
29095 to unsigned HOST_WIDE_INT for parameter and local variable with
29096 HOST_WIDE_INT type.
29097 (riscv_adjust_block_mem): Ditto.
29098 (riscv_block_move_loop): Ditto.
29099 (riscv_expand_block_move): Ditto.
29101 2021-03-18 Nick Clifton <nickc@redhat.com>
29103 * config/v850/v850.c (construct_restore_jr): Increase static
29105 (construct_save_jarl): Likewise.
29106 * config/v850/v850.h (DWARF2_DEBUGGING_INFO): Define.
29108 2021-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29110 * config/aarch64/aarch64.c (aarch64_adjust_generic_arch_tuning): Define.
29111 (aarch64_override_options_internal): Use it.
29112 (generic_tunings): Add AARCH64_EXTRA_TUNE_CSE_SVE_VL_CONSTANTS to
29115 2021-03-17 Sandra Loosemore <sandra@codesourcery.com>
29117 * config/nios2/nios2.c (nios2_custom_check_insns): Clean up
29118 error message format issues.
29119 (nios2_option_override): Likewise.
29120 (nios2_expand_fpu_builtin): Likewise.
29121 (nios2_init_custom_builtins): Adjust to avoid bogus strncpy
29122 truncation warning.
29123 (nios2_expand_custom_builtin): More error message format fixes.
29124 (nios2_expand_rdwrctl_builtin): Likewise.
29125 (nios2_expand_rdprs_builtin): Likewise.
29126 (nios2_expand_eni_builtin): Likewise.
29127 (nios2_expand_builtin): Likewise.
29128 (nios2_register_custom_code): Likewise.
29129 (nios2_valid_target_attribute_rec): Likewise.
29130 (nios2_add_insn_asm): Fix uninitialized variable warning.
29132 2021-03-17 Jan Hubicka <jh@suse.cz>
29134 * config/i386/x86-tune-costs.h (struct processor_costs): Update costs
29135 of gather to match reality.
29136 * config/i386/x86-tune.def (X86_TUNE_USE_GATHER): Enable for znver3.
29138 2021-03-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29140 * config/aarch64/aarch64-builtins.c (aarch64_expand_rng_builtin): Use EQ
29141 to compare against CC_REG rather than NE.
29143 2021-03-17 H.J. Lu <hjl.tools@gmail.com>
29146 * config/i386/i386.c (ix86_force_load_from_GOT_p): Support
29147 inline assembly statements.
29148 (ix86_print_operand): Update 'P' handling for -fno-plt.
29150 2021-03-17 Tamar Christina <tamar.christina@arm.com>
29153 * config/aarch64/aarch64.c
29154 (aarch64_simd_clone_compute_vecsize_and_simdlen): Remove unused var.
29156 2021-03-16 Segher Boessenkool <segher@kernel.crashing.org>
29159 * config/rs6000/predicates.md (branch_comparison_operator): Allow
29160 ordered and unordered for CCFPmode, if flag_finite_math_only.
29162 2021-03-16 Jakub Jelinek <jakub@redhat.com>
29165 * config/i386/i386-expand.c (ix86_split_lea_for_addr): Emit a MULT
29166 rather than ASHIFT.
29167 * config/i386/i386.md (mult by 1248 into ashift): New splitter.
29169 2021-03-16 Martin Liska <mliska@suse.cz>
29172 * optc-save-gen.awk: Add flag_ipa_ra to exceptions for
29173 cl_optimization_compare function.
29175 2021-03-16 Ilya Leoshkevich <iii@linux.ibm.com>
29177 * config/s390/s390.c (f_constraint_p): Treat "fv" constraints
29180 2021-03-16 Jakub Jelinek <jakub@redhat.com>
29183 * config/i386/i386.h (struct machine_function): Add
29184 has_explicit_vzeroupper bitfield.
29185 * config/i386/i386-expand.c (ix86_expand_builtin): Set
29186 cfun->machine->has_explicit_vzeroupper when expanding
29187 IX86_BUILTIN_VZEROUPPER.
29188 * config/i386/i386-features.c (rest_of_handle_insert_vzeroupper):
29189 Do the mode switching only when TARGET_VZEROUPPER, expensive
29190 optimizations turned on and not optimizing for size.
29191 (pass_insert_vzeroupper::gate): Enable even when
29192 cfun->machine->has_explicit_vzeroupper is set.
29194 2021-03-16 Jakub Jelinek <jakub@redhat.com>
29197 * config/aarch64/aarch64.c
29198 (aarch64_simd_clone_compute_vecsize_and_simdlen): If not a function
29199 definition, walk TYPE_ARG_TYPES list if non-NULL for argument types
29200 instead of DECL_ARGUMENTS. Ignore types for uniform arguments.
29202 2021-03-15 Richard Biener <rguenther@suse.de>
29204 PR tree-optimization/98834
29205 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle missing
29206 subsetting by truncating the access size.
29208 2021-03-15 Jan Hubicka <hubicka@ucw.cz>
29210 * config/i386/i386-options.c (processor_cost_table): Add znver3_cost.
29211 * config/i386/x86-tune-costs.h (znver3_cost): New gobal variable; copy
29214 2021-03-15 Martin Liska <mliska@suse.cz>
29216 * spellcheck.c: Add missing comma in initialization.
29218 2021-03-14 Uroš Bizjak <ubizjak@gmail.com>
29220 * config/i386/sse.md (*vec_extract<mode>): Merge alternative 0 with
29221 alternative 2 and alternative 1 with alternative 3 using
29222 YW register constraint.
29223 (*vec_extract<PEXTR_MODE12:mode>_zext): Merge alternatives
29224 using YW register constraint.
29225 (*vec_extractv16qi_zext): Ditto.
29226 (*vec_extractv4si): Merge alternatives 4 and 5
29227 using Yw register constraint.
29228 (*ssse3_palignr<mode>_perm): Use Yw instead of v for alternative 3.
29230 2021-03-13 Martin Sebor <msebor@redhat.com>
29232 PR tree-optimization/99489
29233 * builtins.c (gimple_call_alloc_size): Fail gracefully when argument
29234 is not a call statement.
29236 2021-03-13 Jakub Jelinek <jakub@redhat.com>
29238 PR tree-optimization/99544
29239 * match.pd (X + (X << C) -> X * (1 + (1 << C))): Don't simplify
29240 if for vector types multiplication can't be done in type's mode.
29242 2021-03-12 Eric Botcazou <ebotcazou@adacore.com>
29245 * config/sparc/constraints.md (w): Rename to...
29246 (W): ... this and ditch previous implementation.
29247 * config/sparc/sparc.md (*movdi_insn_sp64): Replace W with m.
29248 (*movdf_insn_sp64): Likewise.
29249 (*mov<VM64:mode>_insn_sp64): Likewise.
29250 * config/sparc/sync.md (*atomic_compare_and_swap<mode>_1): Replace
29252 (atomic_compare_and_swap_leon3_1): Likewise.
29253 (*atomic_compare_and_swapdi_v8plus): Likewise.
29254 * config/sparc/sparc.c (memory_ok_for_ldd): Remove useless test on
29255 architecture and add missing address validity check during LRA.
29257 2021-03-12 Tobias Burnus <tobias@codesourcery.com>
29260 * gimplify.c (omp_add_variable): Handle NULL_TREE as size
29261 occuring for assumed-size arrays in use_device_{ptr,addr}.
29263 2021-03-12 Jakub Jelinek <jakub@redhat.com>
29266 * config/i386/constraints.md (YW): New internal constraint.
29267 * config/i386/sse.md (v_Yw): Add V4TI, V2TI, V1TI and TI cases.
29268 (*<sse2_avx2>_<insn><mode>3<mask_name>,
29269 *<sse2_avx2>_uavg<mode>3<mask_name>, *abs<mode>2,
29270 *<s>mul<mode>3_highpart<mask_name>): Use <v_Yw> instead of v in
29272 (<sse2_avx2>_psadbw): Use YW instead of v in constraints.
29273 (*avx2_pmaddwd, *sse2_pmaddwd, *<code>v8hi3, *<code>v16qi3,
29274 avx2_pmaddubsw256, ssse3_pmaddubsw128): Merge last two alternatives
29275 into one, use Yw instead of former x,v.
29276 (ashr<mode>3, <insn><mode>3): Use <v_Yw> instead of x in constraints of
29277 the last alternative.
29278 (<sse2_avx2>_packsswb<mask_name>, <sse2_avx2>_packssdw<mask_name>,
29279 <sse2_avx2>_packuswb<mask_name>, <sse4_1_avx2>_packusdw<mask_name>,
29280 *<ssse3_avx2>_pmulhrsw<mode>3<mask_name>, <ssse3_avx2>_palignr<mode>,
29281 <ssse3_avx2>_pshufb<mode>3<mask_name>): Merge last two alternatives
29282 into one, use <v_Yw> instead of former x,v.
29283 (avx2_interleave_highv32qi<mask_name>,
29284 vec_interleave_highv16qi<mask_name>): Use Yw instead of v in
29285 constraints. Add && <mask_avx512bw_condition> to condition.
29286 (avx2_interleave_lowv32qi<mask_name>,
29287 vec_interleave_lowv16qi<mask_name>,
29288 avx2_interleave_highv16hi<mask_name>,
29289 vec_interleave_highv8hi<mask_name>,
29290 avx2_interleave_lowv16hi<mask_name>, vec_interleave_lowv8hi<mask_name>,
29291 avx2_pshuflw_1<mask_name>, sse2_pshuflw_1<mask_name>,
29292 avx2_pshufhw_1<mask_name>, sse2_pshufhw_1<mask_name>,
29293 avx2_<code>v16qiv16hi2<mask_name>, sse4_1_<code>v8qiv8hi2<mask_name>,
29294 *sse4_1_<code>v8qiv8hi2<mask_name>_1, <sse2_avx2>_<insn><mode>3): Use
29295 Yw instead of v in constraints.
29296 * config/i386/mmx.md (Yv_Yw): New define_mode_attr.
29297 (*mmx_<insn><mode>3, mmx_ashr<mode>3, mmx_<insn><mode>3): Use <Yv_Yw>
29298 instead of Yv in constraints.
29299 (*mmx_<insn><mode>3, *mmx_mulv4hi3, *mmx_smulv4hi3_highpart,
29300 *mmx_umulv4hi3_highpart, *mmx_pmaddwd, *mmx_<code>v4hi3,
29301 *mmx_<code>v8qi3, mmx_pack<s_trunsuffix>swb, mmx_packssdw,
29302 mmx_punpckhbw, mmx_punpcklbw, mmx_punpckhwd, mmx_punpcklwd,
29303 *mmx_uavgv8qi3, *mmx_uavgv4hi3, mmx_psadbw): Use Yw instead of Yv in
29305 (*mmx_pinsrw, *mmx_pinsrb, *mmx_pextrw, *mmx_pextrw_zext, *mmx_pextrb,
29306 *mmx_pextrb_zext): Use YW instead of Yv in constraints.
29307 (*mmx_eq<mode>3, mmx_gt<mode>3): Use x instead of Yv in constraints.
29308 (mmx_andnot<mode>3, *mmx_<code><mode>3): Split last alternative into
29309 two, one with just x, another isa avx512vl with v.
29311 2021-03-12 Martin Liska <mliska@suse.cz>
29313 * doc/invoke.texi: Add missing param documentation.
29315 2021-03-11 David Malcolm <dmalcolm@redhat.com>
29318 * Makefile.in (ANALYZER_OBJS): Add analyzer/feasible-graph.o and
29319 analyzer/trimmed-graph.o.
29320 * doc/analyzer.texi (Analyzer Paths): Rewrite description of
29321 feasibility checking to reflect new implementation.
29322 * doc/invoke.texi (-fdump-analyzer-feasibility): Document new
29324 * shortest-paths.h (shortest_paths::get_shortest_distance): New.
29326 2021-03-11 David Malcolm <dmalcolm@redhat.com>
29328 * digraph.cc (selftest::test_shortest_paths): Update
29329 shortest_paths init for new param. Add test of
29330 SPS_TO_GIVEN_TARGET.
29331 * shortest-paths.h (enum shortest_path_sense): New.
29332 (shortest_paths::shortest_paths): Add "sense" param.
29333 Update for renamings. Generalize to use "sense" param.
29334 (shortest_paths::get_shortest_path): Rename param.
29335 (shortest_paths::m_sense): New field.
29336 (shortest_paths::m_prev): Rename...
29337 (shortest_paths::m_best_edge): ...to this.
29338 (shortest_paths::get_shortest_path): Update for renamings.
29339 Conditionalize flipping of path on sense of traversal.
29341 2021-03-11 David Malcolm <dmalcolm@redhat.com>
29343 * digraph.cc (selftest::test_shortest_paths): Add test coverage
29344 for paths from B and C.
29345 * shortest-paths.h (shortest_paths::shortest_paths): Handle
29346 unreachable nodes, rather than asserting.
29348 2021-03-11 David Edelsohn <dje.gcc@gmail.com>
29351 * config/rs6000/rs6000.c (rs6000_xcoff_file_start): Don't create
29352 xcoff_tbss_section_name.
29353 * config/rs6000/xcoff.h (ASM_OUTPUT_TLS_COMMON): Use .lcomm.
29354 * xcoffout.c (xcoff_tbss_section_name): Delete.
29355 * xcoffout.h (xcoff_tbss_section_name): Delete.
29357 2021-03-11 Richard Biener <rguenther@suse.de>
29359 PR tree-optimization/99523
29360 * tree-cfg.c (dump_function_to_file): Dump SSA names
29361 w/o identifier to the decls section as well, not only those
29362 without a VAR_DECL.
29364 2021-03-11 Jakub Jelinek <jakub@redhat.com>
29367 * ipa-icf-gimple.c (func_checker::compare_gimple_call): For internal
29368 function calls with lhs fail if the lhs don't have compatible types.
29370 2021-03-11 Hans-Peter Nilsson <hp@axis.com>
29372 * config/cris/cris.h (HARD_FRAME_POINTER_REGNUM): Define.
29373 Change FRAME_POINTER_REGNUM to correspond to a new faked
29374 register faked_fp, part of GENNONACR_REGS like faked_ap.
29375 (CRIS_FAKED_REGS_CONTENTS): New helper macro.
29376 (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS, CALL_USED_REGISTERS):
29377 (REG_ALLOC_ORDER, REG_CLASS_CONTENTS, REGNO_OK_FOR_BASE_P)
29378 (ELIMINABLE_REGS, REGISTER_NAMES): Adjust accordingly.
29379 * config/cris/cris.md (CRIS_FP_REGNUM): Renumber to new faked
29381 (CRIS_REAL_FP_REGNUM): New constant.
29382 * config/cris/cris.c (cris_reg_saved_in_regsave_area): Check
29383 for HARD_FRAME_POINTER_REGNUM instead of FRAME_POINTER_REGNUM.
29384 (cris_initial_elimination_offset): Handle elimination changes
29385 to HARD_FRAME_POINTER_REGNUM instead of FRAME_POINTER_REGNUM
29386 and add one from FRAME_POINTER_REGNUM to
29387 HARD_FRAME_POINTER_REGNUM.
29388 (cris_expand_prologue, cris_expand_epilogue): Emit code for
29389 hard_frame_pointer_rtx instead of frame_pointer_rtx.
29391 2021-03-10 David Edelsohn <dje.gcc@gmail.com>
29394 * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Add check for DCmode.
29395 * config/rs6000/rs6000.c (rs6000_special_round_type_align): Same.
29397 2021-03-10 Vladimir N. Makarov <vmakarov@redhat.com>
29400 * lra-constraints.c (process_address_1): Don't check unknown
29401 constraint, use X for empty constraint.
29403 2021-03-10 Alex Coplan <alex.coplan@arm.com>
29405 * config/aarch64/aarch64.c (aarch64_vfp_is_call_or_return_candidate):
29406 Fix typo in comment describing "is_ha" argument.
29408 2021-03-10 John David Anglin <danglin@gcc.gnu.org>
29410 * doc/sourcebuild.texi: Document LRA target selector.
29412 2021-03-10 David Malcolm <dmalcolm@redhat.com>
29414 * doc/ux.texi: Add subsection contrasting interactive versus
29415 batch usage of GCC.
29417 2021-03-10 Joel Hutton <joel.hutton@arm.com>
29420 * tree-vect-stmts.c (vectorizable_store): Fix scatter store mask
29422 (vectorizable_load): Fix gather load mask check condition.
29424 2021-03-10 Richard Biener <rguenther@suse.de>
29426 PR tree-optimization/99510
29427 * tree.c (check_aligned_type): Check that the candidate
29428 has TYPE_USER_ALIGN set instead of matching with the
29431 2021-03-10 Eric Botcazou <ebotcazou@adacore.com>
29433 * config/sparc/sparc.c (sparc_regmode_natural_size): Return 4 for
29434 float and vector integer modes only if the mode is not larger.
29436 2021-03-10 Hans-Peter Nilsson <hp@axis.com>
29438 * config/cris/cris.h (DWARF_FRAME_REGISTERS): Define.
29440 2021-03-09 Vladimir N. Makarov <vmakarov@redhat.com>
29442 * ira.c (ira_setup_alts, ira_get_dup_out_num): Process digital
29444 * ira-lives.c (single_reg_class): Ditto.
29446 2021-03-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
29448 * config.gcc (aarch64-*-rtems*): Include general rtems.h after
29449 the architecture-specific rtems.h.
29450 (aarch64-*-rtems*): Likewise.
29451 (arm*-*-rtems*): Likewise.
29452 (epiphany-*-rtems*): Likewise.
29453 (riscv*-*-rtems*): Likewise.
29455 2021-03-09 Jakub Jelinek <jakub@redhat.com>
29457 PR tree-optimization/99305
29458 * tree-ssa-phiopt.c (conditional_replacement): Test integer_pow2p
29459 before integer_all_onesp instead of vice versa.
29461 2021-03-09 Richard Earnshaw <rearnsha@arm.com>
29463 * common/config/arm/arm-common.c (arm_config_default): Change type
29464 of 'i' to unsigned.
29466 2021-03-09 Vladimir N. Makarov <vmakarov@redhat.com>
29469 * lra-constraints.c (process_address_1): Process constraint 'g'
29470 separately and digital constraints containing more one digit.
29472 2021-03-09 Nick Clifton <nickc@redhat.com>
29474 * config/rx/rx.h (DBX_DEBUGGING_INFO): Define.
29475 (DWARF"_DEBUGGING_INFO): Define.
29477 2021-03-09 Eric Botcazou <ebotcazou@adacore.com>
29480 * calls.c (initialize_argument_information): When the argument
29481 is passed by reference, do not make a copy in a thunk only if
29482 the argument is already in memory. Remove redundant test for
29483 the case of callee copy.
29485 2021-03-09 Vladimir N. Makarov <vmakarov@redhat.com>
29488 * lra-constraints.c (process_address_1): Process 0..9 constraints
29489 in process_address_1.
29491 2021-03-09 Andreas Krebbel <krebbel@linux.ibm.com>
29493 * config/s390/s390.c (struct s390_processor processor_table):
29494 Binutils name string must not be empty.
29496 2021-03-09 Claudiu Zissulescu <claziss@synopsys.com>
29498 * config/arc/arc.c (arc_attr_type): Remove function.
29500 2021-03-09 Martin Liska <mliska@suse.cz>
29503 * config/i386/i386-options.c (ix86_option_override_internal):
29504 Set isa_flags for OPTS argument and not for the global
29507 2021-03-09 Aaron Sawdey <acsawdey@linux.ibm.com>
29509 * config/rs6000/predicates.md (ds_form_mem_operand): Check
29512 2021-03-09 Aaron Sawdey <acsawdey@linux.ibm.com>
29515 * config/rs6000/predicates.md (ds_form_mem_operand) New
29517 * config/rs6000/genfusion.pl (gen_ld_cmpi_p10) Use
29518 ds_form_mem_operand in ld/lwa patterns.
29519 * config/rs6000/fusion.md: Regenerate file.
29521 2021-03-08 Martin Sebor <msebor@redhat.com>
29523 PR middle-end/98266
29524 * gimple-array-bounds.cc (inbounds_vbase_memaccess_p): New function.
29525 (array_bounds_checker::check_array_bounds): Call it.
29527 2021-03-08 Martin Sebor <msebor@redhat.com>
29529 PR middle-end/97631
29530 * tree-ssa-strlen.c (maybe_warn_overflow): Test rawmem.
29531 (handle_builtin_stxncpy_strncat): Rename locals. Determine
29532 destination size from allocation calls. Issue a more appropriate
29534 (handle_builtin_memcpy): Pass true as rawmem to maybe_warn_overflow.
29535 (handle_builtin_memset): Same.
29537 2021-03-08 Peter Bergner <bergner@linux.ibm.com>
29540 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_permute): Add an assert
29541 to ensure we do not have an Altivec style address.
29542 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>): Disable if passed
29543 an Altivec style address.
29544 (*vsx_le_perm_store_<mode>): Likewise.
29545 (splitters after *vsx_le_perm_store_<mode>): Likewise.
29546 (vsx_load_<mode>): Disable special expander if passed an Altivec
29548 (vsx_store_<mode>): Likewise.
29550 2021-03-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29553 * config/aarch64/predicates.md (aarch64_simd_shift_imm_vec_qi): Define.
29554 (aarch64_simd_shift_imm_vec_hi): Likewise.
29555 (aarch64_simd_shift_imm_vec_si): Likewise.
29556 (aarch64_simd_shift_imm_vec_di): Likewise.
29557 * config/aarch64/aarch64-simd.md (aarch64_shrn<mode>_insn_le): Use
29558 predicate from above.
29559 (aarch64_shrn<mode>_insn_be): Likewise.
29560 (aarch64_rshrn<mode>_insn_le): Likewise.
29561 (aarch64_rshrn<mode>_insn_be): Likewise.
29562 (aarch64_shrn2<mode>_insn_le): Likewise.
29563 (aarch64_shrn2<mode>_insn_be): Likewise.
29564 (aarch64_rshrn2<mode>_insn_le): Likewise.
29565 (aarch64_rshrn2<mode>_insn_be): Likewise.
29567 2021-03-08 Vladimir N. Makarov <vmakarov@redhat.com>
29570 * lra-constraints.c (skip_contraint_modifiers): New function.
29571 (process_address_1): Use it before lookup_constraint call.
29573 2021-03-08 Martin Liska <mliska@suse.cz>
29576 * config/i386/i386-options.c (ix86_option_override_internal):
29577 Enable UINTR and HRESET for -march that supports it.
29579 2021-03-08 Ilya Leoshkevich <iii@linux.ibm.com>
29581 * config/s390/s390.c (f_constraint_p): New function.
29582 (s390_md_asm_adjust): Implement TARGET_MD_ASM_ADJUST.
29583 (TARGET_MD_ASM_ADJUST): Likewise.
29585 2021-03-08 Tobias Burnus <tobias@codesourcery.com>
29588 * tree-nested.c (convert_local_reference_stmt): Avoid calling
29589 lookup_field_for_decl for Fortran module (= namespace context).
29591 2021-03-08 Andreas Krebbel <krebbel@linux.ibm.com>
29593 * config/s390/s390.c (s390_expand_vec_compare): Implement <0
29594 comparison with arithmetic right shift.
29595 (s390_expand_vcond): No need for a force_reg anymore.
29596 s390_vec_compare will do it.
29597 * config/s390/vector.md ("vec_cmp<mode><tointvec>"): Accept also
29598 immediate operands.
29600 2021-03-07 Jakub Jelinek <jakub@redhat.com>
29603 * config/i386/constraints.md (Yw): Use SSE_REGS if TARGET_SSE
29604 but TARGET_AVX512BW or TARGET_AVX512VL is not set. Adjust description
29606 * config/i386/sse.md (v_Yw): New define_mode_attr.
29607 (*<insn><mode>3, *mul<mode>3<mask_name>, *avx2_<code><mode>3,
29608 *sse4_1_<code><mode>3<mask_name>): Use <v_Yw> instead of v
29610 * config/i386/mmx.md (mmx_pshufw_1, *vec_dupv4hi): Use Yw instead of
29611 xYw in constraints.
29613 2021-03-06 Julian Brown <julian@codesourcery.com>
29615 * tree-pretty-print.c (dump_generic_node): Emit non-generic
29616 address space info for aggregates.
29618 2021-03-06 Hans-Peter Nilsson <hp@axis.com>
29620 * config/cris/cris.h (MAX_FIXED_MODE_SIZE): Don't define.
29622 2021-03-05 Jakub Jelinek <jakub@redhat.com>
29624 PR middle-end/99322
29625 * tree-cfg.c (bb_to_omp_idx): New variable.
29626 (execute_build_cfg): Release the bb_to_omp_idx vector after
29627 cleanup_tree_cfg returns.
29628 (handle_abnormal_edges): Remove bb_to_omp_idx argument, adjust
29629 for bb_to_omp_idx being a vec<int> instead of pointer to array
29631 (make_edges): Remove bb_to_omp_idx local variable, don't pass
29632 it to handle_abnormal_edges, adjust for bb_to_omp_idx being a
29633 vec<int> instead of pointer to array of ints and don't free/release
29635 (remove_bb): When removing a bb and placing forced label somewhere
29636 else, ensure it is put into the same OpenMP region during cfg
29637 pass if possible or to entry successor as fallback. Unregister
29638 bb from bb_to_omp_idx.
29640 2021-03-05 Vladimir N. Makarov <vmakarov@redhat.com>
29643 * lra-constraints.c (process_address_1): Skip decomposing address
29644 for asm insn operand with unknown constraint.
29646 2021-03-05 Martin Jambor <mjambor@suse.cz>
29649 * cgraph.c (cgraph_edge::set_call_stmt): Do not update all
29650 corresponding speculative edges if we are about to resolve
29651 sepculation. Make edge direct (and so resolve speculations) before
29652 removing it from call_site_hash.
29653 (cgraph_edge::make_direct): Relax the initial assert to allow calling
29654 the function on speculative direct edges.
29656 2021-03-05 Eric Botcazou <ebotcazou@adacore.com>
29658 PR rtl-optimization/99376
29659 * rtlanal.c (nonzero_bits1) <arithmetic operators>: If the number
29660 of low-order zero bits is too large, set the result to 0 directly.
29662 2021-03-04 Jakub Jelinek <jakub@redhat.com>
29664 PR middle-end/93235
29665 * expmed.c (store_bit_field_using_insv): Return false of xop0 is a
29666 SUBREG and a SUBREG to op_mode can't be created.
29668 2021-03-04 Alex Coplan <alex.coplan@arm.com>
29671 * config/aarch64/aarch64-sve-builtins.cc
29672 (function_resolver::require_vector_type): Handle error_mark_node.
29674 2021-03-04 Ilya Leoshkevich <iii@linux.ibm.com>
29676 * cfgexpand.c (expand_asm_loc): Pass new parameter.
29677 (expand_asm_stmt): Likewise.
29678 * config/arm/aarch-common-protos.h (arm_md_asm_adjust): Add new
29680 * config/arm/aarch-common.c (arm_md_asm_adjust): Likewise.
29681 * config/arm/arm.c (thumb1_md_asm_adjust): Likewise.
29682 * config/cris/cris.c (cris_md_asm_adjust): Likewise.
29683 * config/i386/i386.c (ix86_md_asm_adjust): Likewise.
29684 * config/mn10300/mn10300.c (mn10300_md_asm_adjust): Likewise.
29685 * config/nds32/nds32.c (nds32_md_asm_adjust): Likewise.
29686 * config/pdp11/pdp11.c (pdp11_md_asm_adjust): Likewise.
29687 * config/rs6000/rs6000.c (rs6000_md_asm_adjust): Likewise.
29688 * config/vax/vax.c (vax_md_asm_adjust): Likewise.
29689 * config/visium/visium.c (visium_md_asm_adjust): Likewise.
29690 * doc/tm.texi (md_asm_adjust): Likewise.
29691 * target.def (md_asm_adjust): Likewise.
29693 2021-03-04 Richard Biener <rguenther@suse.de>
29695 PR middle-end/97855
29696 * tree-pretty-print.c: Poison pp_printf.
29697 (dump_decl_name): Avoid use of pp_printf.
29698 (dump_block_node): Likewise.
29699 (dump_generic_node): Likewise.
29701 2021-03-04 Martin Sebor <msebor@redhat.com>
29703 PR middle-end/96963
29704 PR middle-end/94655
29705 * builtins.c (handle_array_ref): New helper.
29706 (handle_mem_ref): New helper.
29707 (compute_objsize_r): Factor out ARRAY_REF and MEM_REF handling
29708 into new helper functions. Correct a workaround for vectorized
29711 2021-03-03 Pat Haugen <pthaugen@linux.ibm.com>
29713 * config/rs6000/dfp.md (extendddtd2, trunctddd2, *cmp<mode>_internal1,
29714 floatditd2, ftrunc<mode>2, fix<mode>di2, dfp_ddedpd_<mode>,
29715 dfp_denbcd_<mode>, dfp_dxex_<mode>, dfp_diex_<mode>,
29716 *dfp_sgnfcnc_<mode>, dfp_dscli_<mode>, dfp_dscri_<mode>): Update size
29717 attribute for Power10.
29718 * config/rs6000/mma.md (*movoo): Likewise.
29719 * config/rs6000/rs6000.md (define_attr "size"): Add 256.
29720 (define_mode_attr bits): Add DD/TD modes.
29721 * config/rs6000/sync.md (load_quadpti, store_quadpti, load_lockedpti,
29722 store_conditionalpti): Update size attribute for Power10.
29724 2021-03-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29727 * config/sparc/t-sparc (tree-ssanames.o-warn): Don't error for
29728 -Wuninitialized, -Wmaybe-uninitialized.
29729 (wide-int.o-warn): Likewise.
29731 2021-03-03 Richard Earnshaw <rearnsha@arm.com>
29733 * common/config/arm/arm-common.c: Include configargs.h.
29734 (arm_config_default): New function.
29735 (arm_target_mode): Renamed from arm_target_thumb_only. Handle
29736 processors that do not support Thumb. Take into account the
29737 --with-mode configuration setting for selecting the default.
29738 * config/arm/arm.h (OPTION_DEFAULT_SPECS): Remove entry for 'mode'.
29739 (TARGET_MODE_SPEC_FUNCTIONS): Update for function name change.
29741 2021-03-03 Martin Liska <mliska@suse.cz>
29743 PR gcov-profile/97461
29744 * gcov-io.h (GCOV_PREALLOCATED_KVP): Remove.
29746 2021-03-03 Eric Botcazou <ebotcazou@adacore.com>
29749 * config/i386/i386.c (ix86_compute_frame_layout): For a SEH target,
29750 point back the hard frame pointer to its default location when the
29751 frame is larger than SEH_MAX_FRAME_SIZE.
29753 2021-03-03 Jakub Jelinek <jakub@redhat.com>
29756 * config/i386/predicates.md (logic_operator): New define_predicate.
29757 * config/i386/i386.md (mov + mem using comm arith peephole2):
29758 Punt if operands[1] is EXT_REX_SSE_REGNO_P, AVX512BW is not enabled
29759 and the inner mode is [QH]Imode.
29761 2021-03-03 Jakub Jelinek <jakub@redhat.com>
29764 * dwarf2out.c (dw_loc_list_struct): Add end_entry member.
29765 (new_loc_list): Clear end_entry.
29766 (output_loc_list): Only use DW_LLE_startx_length for -gsplit-dwarf
29767 if HAVE_AS_LEB128, otherwise use DW_LLE_startx_endx. Fix comment
29769 (index_location_lists): For dwarf_version >= 5 without HAVE_AS_LEB128,
29770 initialize also end_entry.
29772 2021-03-03 Jakub Jelinek <jakub@redhat.com>
29775 * cfgrtl.c (fixup_partitions): When changing some bbs from hot to cold
29776 partitions, if in non-layout mode after reorder_blocks also move
29777 affected blocks to ensure a single partition transition.
29779 2021-03-03 Jason Merrill <jason@redhat.com>
29782 * cgraphunit.c (process_function_and_variable_attributes): Don't
29783 warn about flatten on an alias if the target also has it.
29784 * cgraph.h (symtab_node::get_alias_target_tree): New.
29786 2021-03-02 David Edelsohn <dje.gcc@gmail.com>
29788 * config/rs6000/rs6000.md (tls_get_tpointer_internal): Prepend
29789 period to symbol name.
29790 (tls_get_addr_internal<mode>): Same.
29792 2021-03-02 David Malcolm <dmalcolm@redhat.com>
29795 * diagnostic-show-locus.c
29796 (selftest::test_one_liner_many_fixits_2): Fix accidental usage of
29799 2021-03-02 Martin Sebor <msebor@redhat.com>
29801 PR middle-end/99276
29802 * builtins.c (warn_for_access): Remove stray warning text.
29804 2021-03-02 Martin Sebor <msebor@redhat.com>
29806 PR middle-end/99295
29807 * doc/extend.texi (attribute malloc): Reword and clarify nonaliasing
29810 2021-03-02 Jakub Jelinek <jakub@redhat.com>
29813 * dwarf2out.c (output_macinfo_op): Use DW_MACRO_*_str* even with
29814 -gdwarf-5 -gstrict-dwarf. For -gsplit-dwarf -gdwarf-5 use
29815 DW_MACRO_*_strx instead of DW_MACRO_*_strp. Handle
29816 DW_MACRO_define_strx and DW_MACRO_undef_strx.
29817 (save_macinfo_strings): Use DW_MACRO_*_str* even with
29818 -gdwarf-5 -gstrict-dwarf. Handle DW_MACRO_define_strx and
29819 DW_MACRO_undef_strx.
29821 2021-03-02 Andreas Krebbel <krebbel@linux.ibm.com>
29823 * config/s390/s390-builtin-types.def (BT_FN_V4SF_V8HI_UINT): New
29825 (BT_FN_V8HI_V8HI_UINT): Likewise.
29826 (BT_FN_V8HI_V4SF_V4SF_UINT): Likewise.
29827 * config/s390/s390-builtins.def (B_NNPA): New macro definition.
29828 (s390_vclfnhs, s390_vclfnls, s390_vcrnfs, s390_vcfn, s390_vcnf):
29829 New builtin definitions.
29830 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Bump
29831 vector extension version.
29832 * config/s390/s390.c (s390_expand_builtin): Check if builtins are
29833 available with current -march level.
29834 * config/s390/s390.md (UNSPEC_NNPA_VCLFNHS_V8HI)
29835 (UNSPEC_NNPA_VCLFNLS_V8HI, UNSPEC_NNPA_VCRNFS_V8HI)
29836 (UNSPEC_NNPA_VCFN_V8HI, UNSPEC_NNPA_VCNF_V8HI): New constants.
29837 * config/s390/vecintrin.h (vec_extend_to_fp32_hi): New macro.
29838 (vec_extend_to_fp32_lo): Likewise.
29839 (vec_round_from_fp32): Likewise.
29840 (vec_convert_to_fp16): Likewise.
29841 (vec_convert_from_fp16): Likewise.
29842 * config/s390/vx-builtins.md (vclfnhs_v8hi): New insn pattern.
29843 (vclfnls_v8hi): Likewise.
29844 (vcrnfs_v8hi): Likewise.
29845 (vcfn_v8hi): Likewise.
29846 (vcnf_v8hi): Likewise.
29848 2021-03-02 Andreas Krebbel <krebbel@linux.ibm.com>
29850 * common/config/s390/s390-common.c (processor_flags_table): New entry.
29851 * config.gcc: Enable arch14 for --with-arch and --with-tune.
29852 * config/s390/driver-native.c (s390_host_detect_local_cpu): Pick
29853 arch14 for unknown CPU models.
29854 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH14.
29855 * config/s390/s390.c (s390_issue_rate): Add case for PROCESSOR_ARCH14.
29856 (s390_get_sched_attrmask): Likewise.
29857 (s390_get_unit_mask): Likewise.
29858 * config/s390/s390.h (enum processor_flags): Add PF_NNPA and PF_ARCH14.
29859 (TARGET_CPU_ARCH14, TARGET_CPU_ARCH14_P, TARGET_CPU_NNPA)
29860 (TARGET_CPU_NNPA_P, TARGET_ARCH14, TARGET_ARCH14_P, TARGET_NNPA)
29861 (TARGET_NNPA_P): New macro definitions.
29862 * config/s390/s390.md ("cpu_facility", "enabled"): Add arch14 and nnpa.
29863 * config/s390/s390.opt: Add PROCESSOR_ARCH14.
29865 2021-03-02 Jakub Jelinek <jakub@redhat.com>
29867 PR middle-end/95757
29868 * tree-vrp.c (register_edge_assert_for): Remove superfluous ()s around
29869 condition. Call register_edge_assert_for_1 for == 0, != 0, == 1 and
29870 != 1 comparisons if name is lhs of a comparison.
29872 2021-03-01 Iain Sandoe <iain@sandoe.co.uk>
29876 * config/darwin-protos.h (darwin_should_restore_cfa_state): New.
29877 * config/darwin.c (darwin_should_restore_cfa_state): New.
29878 * config/darwin.h (TARGET_ASM_SHOULD_RESTORE_CFA_STATE): New.
29879 * doc/tm.texi: Regenerated.
29880 * doc/tm.texi.in: Document TARGET_ASM_SHOULD_RESTORE_CFA_STATE.
29881 * dwarf2cfi.c (connect_traces): If the target requests, restore
29882 the CFA expression after a DW_CFA_restore.
29883 * target.def (TARGET_ASM_SHOULD_RESTORE_CFA_STATE): New hook.
29885 2021-03-01 Martin Liska <mliska@suse.cz>
29888 * optc-save-gen.awk: Add 4 more exceptions.
29890 2021-03-01 Nathan Sidwell <nathan@acm.org>
29893 * tree.h (TYPE_ALIGN_RAW): New accessor.
29894 (TYPE_ALIGN): Use it.
29896 2021-03-01 Jan Hubicka <jh@suse.cz>
29899 * ipa-fnsummary.c (compute_fn_summary): Fix sanity check.
29901 2021-03-01 Eric Botcazou <ebotcazou@adacore.com>
29904 * config/i386/i386.c (ix86_compute_frame_layout): For a SEH target,
29905 point the hard frame pointer to the SSE register save area instead
29906 of the general register save area. Perform only minimal adjustment
29907 for small frames if it is initially not correctly aligned.
29908 (ix86_expand_prologue): Remove early saves for a SEH target.
29909 * config/i386/winnt.c (struct seh_frame_state): Document constraint.
29911 2021-02-28 Jakub Jelinek <jakub@redhat.com>
29914 * ipa.c (symbol_table::remove_unreachable_nodes): Fix a comment
29915 typo - referneced -> referenced.
29916 * tree.c (component_ref_size): Fix comment typo -
29917 refernce -> reference.
29918 * tree-ssa-alias.c (access_path_may_continue_p): Fix comment typo -
29919 traling -> trailing.
29920 (aliasing_component_refs_p): Fix comment typos -
29921 refernce -> reference and refernece -> reference and
29922 traling -> trailing.
29923 (nonoverlapping_refs_since_match_p): Fix comment typo -
29924 referneces -> references.
29925 * doc/invoke.texi (--param modref-max-bases): Fix a typo -
29926 referneces -> references.
29928 2021-02-27 Iain Sandoe <iain@sandoe.co.uk>
29930 * config/host-darwin.c (darwin_gt_pch_use_address): Modify
29931 diagnostic message to avoid use of a contraction and format
29934 2021-02-27 Jakub Jelinek <jakub@redhat.com>
29937 * gcse.c (gcse_or_cprop_is_too_expensive): Use %wu instead of
29938 HOST_WIDE_INT_PRINT_UNSIGNED in warning format string.
29939 * ipa-devirt.c (ipa_odr_read_section): Use %wd instead of
29940 HOST_WIDE_INT_PRINT_DEC in inform format string. Fix comment
29943 2021-02-26 Richard Biener <rguenther@suse.de>
29945 PR middle-end/99281
29946 * expr.c (store_field): For calls with return-slot optimization
29947 and addressable return type expand the store directly.
29949 2021-02-26 Richard Biener <rguenther@suse.de>
29952 * builtins.c (warn_string_no_nul): Fix diagnostic formatting.
29954 2021-02-26 Peter Bergner <bergner@linux.ibm.com>
29957 * config/rs6000/rs6000-call.c (rs6000_init_builtins): Replace assert
29960 2021-02-26 Aaron Sawdey <acsawdey@linux.ibm.com>
29962 * config.gcc: Add rs6000-pcrel-opt.o.
29963 * config/rs6000/rs6000-pcrel-opt.c: New file.
29964 * config/rs6000/pcrel-opt.md: New file.
29965 * config/rs6000/predicates.md: Add d_form_memory predicate.
29966 * config/rs6000/rs6000-cpus.def: Add OPTION_MASK_PCREL_OPT.
29967 * config/rs6000/rs6000-passes.def: Add pass_pcrel_opt.
29968 * config/rs6000/rs6000-protos.h: Add reg_to_non_prefixed(),
29969 pcrel_opt_valid_mem_p(), output_pcrel_opt_reloc(),
29970 and make_pass_pcrel_opt().
29971 * config/rs6000/rs6000.c (reg_to_non_prefixed): Make global.
29972 (rs6000_option_override_internal): Add pcrel-opt.
29973 (rs6000_delegitimize_address): Support pcrel-opt.
29974 (rs6000_opt_masks): Add pcrel-opt.
29975 (pcrel_opt_valid_mem_p): New function.
29976 (reg_to_non_prefixed): Make global.
29977 (rs6000_asm_output_opcode): Reset prepend_p_to_next_insn.
29978 (output_pcrel_opt_reloc): New function.
29979 * config/rs6000/rs6000.md (loads_extern_addr): New attr.
29980 (pcrel_extern_addr): Set loads_extern_addr.
29981 Add include for pcrel-opt.md.
29982 * config/rs6000/rs6000.opt: Add -mpcrel-opt.
29983 * config/rs6000/t-rs6000: Add rules for pcrel-opt.c and
29986 2021-02-26 YunQiang Su <yunqiang.su@cipunited.com>
29989 * config/mips/mips.c (mips_expand_ext_as_unaligned_load):
29990 If TARGET_64BIT and dest is SUBREG, we check the width, if it
29991 equal to SImode, we use SImode operation, just like what we are
29994 2021-02-26 Marek Polacek <polacek@redhat.com>
29996 * builtins.c (warn_for_access): Fix typos.
29998 2021-02-25 Iain Sandoe <iain@sandoe.co.uk>
30000 * config/aarch64/aarch64.md (<optab>_rol<mode>3): Add a '#'
30001 mark in front of the immediate quantity.
30002 (<optab>_rolsi3_uxtw): Likewise.
30004 2021-02-25 Richard Earnshaw <rearnsha@arm.com>
30007 * config/arm/thumb2.md (nonsecure_call_reg_thumb2_fpcxt): New pattern.
30008 (nonsecure_call_value_reg_thumb2_fpcxt): Likewise.
30009 (nonsecure_call_reg_thumb2): Restrict to using r4 for the callee
30010 address and disable when the FPCXT is not available.
30011 (nonsecure_call_value_reg_thumb2): Likewise.
30013 2021-02-25 Nathan Sidwell <nathan@acm.org>
30016 * doc/invoke.texi (flang-info-module-cmi): Renamed option.
30018 2021-02-25 Tamar Christina <tamar.christina@arm.com>
30020 * tree-vect-slp.c (optimize_load_redistribution_1): Abort on NULL nodes.
30022 2021-02-25 Richard Biener <rguenther@suse.de>
30024 PR tree-optimization/99253
30025 * tree-vect-loop.c (check_reduction_path): First compute
30026 code, then verify out-of-loop uses.
30028 2021-02-25 Jakub Jelinek <jakub@redhat.com>
30031 * match.pd ((T)(A) + CST -> (T)(A + CST)): Add :s to convert.
30033 2021-02-25 Jakub Jelinek <jakub@redhat.com>
30035 PR tree-optimization/80635
30036 * tree-vrp.c (vrp_simplify_cond_using_ranges): Also handle
30037 VIEW_CONVERT_EXPR if modes are the same, innerop is integral and
30038 has mode precision.
30040 2021-02-25 Richard Biener <rguenther@suse.de>
30042 * tree-vect-slp.c (optimize_load_redistribution_1): Delay
30043 load_map population.
30044 (vect_match_slp_patterns_2): Revert part of last change.
30045 (vect_analyze_slp): Do not interleave optimize_load_redistribution
30046 with pattern detection but do it afterwards. Dump the
30047 whole SLP graph after pattern recognition and load
30048 redistribution optimization finished.
30050 2021-02-24 Jakub Jelinek <jakub@redhat.com>
30053 * omp-low.c (struct omp_context): Add teams_nested_p and
30054 nonteams_nested_p members.
30055 (scan_omp_target): Diagnose teams nested inside of target with other
30056 directives strictly nested inside of the same target.
30057 (check_omp_nesting_restrictions): Set ctx->teams_nested_p or
30058 ctx->nonteams_nested_p as needed.
30060 2021-02-24 Vladimir N. Makarov <vmakarov@redhat.com>
30062 PR inline-asm/99123
30063 * lra-constraints.c (uses_hard_regs_p): Don't use decompose_mem_address.
30065 2021-02-24 Hans-Peter Nilsson <hp@axis.com>
30067 * config/cris/cris.c (cris_expand_prologue): Set
30068 current_function_static_stack_size, if flag_stack_usage_info.
30070 2021-02-24 Pat Haugen <pthaugen@linux.ibm.com>
30072 * config/rs6000/rs6000.c (next_insn_prefixed_p): Rename.
30073 (rs6000_final_prescan_insn): Adjust.
30074 (rs6000_asm_output_opcode): Likewise.
30076 2021-02-24 Martin Sebor <msebor@redhat.com>
30078 PR middle-end/97172
30079 * attribs.c (attr_access::free_lang_data): Clear attribute arg spec
30080 from function arguments.
30082 2021-02-24 Tamar Christina <tamar.christina@arm.com>
30084 PR tree-optimization/99220
30085 * tree-vect-slp.c (optimize_load_redistribution_1): Remove
30086 node from cache when it's about to be deleted.
30088 2021-02-24 Jakub Jelinek <jakub@redhat.com>
30090 PR tree-optimization/99225
30091 * fold-const.c (fold_binary_loc) <case NE_EXPR>: In (x & (1 << y)) != 0
30092 to ((x >> y) & 1) != 0 simplifications use build_one_cst instead of
30093 build_int_cst (..., 1). Formatting fixes.
30095 2021-02-24 Tamar Christina <tamar.christina@arm.com>
30097 PR tree-optimization/99149
30098 * tree-vect-slp-patterns.c (vect_detect_pair_op): Don't recreate the
30100 (vect_slp_reset_pattern): Remove.
30101 (complex_fma_pattern::matches): Remove call to vect_slp_reset_pattern.
30102 (complex_mul_pattern::build, complex_fma_pattern::build,
30103 complex_fms_pattern::build): Fix ref counts.
30104 * tree-vect-slp.c (vect_free_slp_tree): Undo SLP only pattern relevancy
30105 when node is being deleted.
30106 (vect_match_slp_patterns_2): Correct result of cache hit on patterns.
30107 (vect_schedule_slp): Invalidate SLP_TREE_REPRESENTATIVE of removed
30109 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize value.
30111 2021-02-24 Matthias Klose <doko@ubuntu.com>
30114 2020-12-07 Matthias Klose <doko@ubuntu.com>
30116 * genextract.c (print_header): Undefine ENABLE_RTL_CHECKING
30117 and ENABLE_RTL_FLAG_CHECKING.
30119 2021-02-24 Richard Biener <rguenther@suse.de>
30122 * builtins.c (fold_builtin_next_arg): Avoid NULL arg.
30124 2021-02-23 Peter Bergner <bergner@linux.ibm.com>
30126 * config/rs6000/mma.md (mma_assemble_pair): Rename from this...
30127 (vsx_assemble_pair): ...to this.
30128 (*mma_assemble_pair): Rename from this...
30129 (*vsx_assemble_pair): ...to this.
30130 (mma_disassemble_pair): Rename from this...
30131 (vsx_disassemble_pair): ...to this.
30132 (*mma_disassemble_pair): Rename from this...
30133 (*vsx_disassemble_pair): ...to this.
30134 * config/rs6000/rs6000-builtin.def (BU_MMA_V2, BU_MMA_V3,
30135 BU_COMPAT): New macros.
30136 (mma_assemble_pair): Rename from this...
30137 (vsx_assemble_pair): ...to this.
30138 (mma_disassemble_pair): Rename from this...
30139 (vsx_disassemble_pair): ...to this.
30140 (mma_assemble_pair): New compatibility built-in.
30141 (mma_disassemble_pair): Likewise.
30142 * config/rs6000/rs6000-call.c (struct builtin_compatibility): New.
30143 (RS6000_BUILTIN_COMPAT): Define.
30144 (bdesc_compat): New.
30145 (mma_expand_builtin): Use VSX_BUILTIN_DISASSEMBLE_PAIR_INTERNAL.
30146 (rs6000_gimple_fold_mma_builtin): Use MMA_BUILTIN_DISASSEMBLE_PAIR
30147 and VSX_BUILTIN_ASSEMBLE_PAIR.
30148 (rs6000_init_builtins): Register compatibility built-ins.
30149 (mma_init_builtins): Use VSX_BUILTIN_ASSEMBLE_PAIR,
30150 VSX_BUILTIN_ASSEMBLE_PAIR_INTERNAL, VSX_BUILTIN_DISASSEMBLE_PAIR and
30151 VSX_BUILTIN_DISASSEMBLE_PAIR_INTERNAL.
30152 * doc/extend.texi (__builtin_mma_assemble_pair): Rename from this...
30153 (__builtin_vsx_assemble_pair): ...to this.
30154 (__builtin_mma_disassemble_pair): Rename from this...
30155 (__builtin_vsx_disassemble_pair): ...to this.
30157 2021-02-23 Martin Liska <mliska@suse.cz>
30160 * ipa-icf.c (sem_variable::merge): Do not merge 2 variables
30161 with different alignment. That leads to an invalid red zone
30162 size allocated in runtime.
30164 2021-02-23 Jakub Jelinek <jakub@redhat.com>
30166 PR tree-optimization/99204
30167 * fold-const.c (fold_read_from_constant_string): Check that
30168 tree_fits_uhwi_p (index) rather than just that index is INTEGER_CST.
30170 2021-02-23 Segher Boessenkool <segher@kernel.crashing.org>
30171 Kewen Lin <linkw@gcc.gnu.org>
30173 * config/rs6000/rs6000.md (*rotl<mode>3_insert_3): Renamed to...
30174 (rotl<mode>3_insert_3): ...this.
30175 (plus_ior_xor): New code_iterator.
30176 (define_split for GPR rl*imi): New splitter.
30177 * config/rs6000/vsx.md (vsx_init_v4si): Use gen_rotldi3_insert_3
30178 for integer merging.
30180 2021-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30182 * config/aarch64/aarch64-tuning-flags.def (cse_sve_vl_constants):
30184 * config/aarch64/aarch64.md (add<mode>3): Force CONST_POLY_INT immediates
30185 into a register when the above is enabled.
30186 * config/aarch64/aarch64.c (neoversev1_tunings):
30187 AARCH64_EXTRA_TUNE_CSE_SVE_VL_CONSTANTS.
30188 (aarch64_rtx_costs): Use AARCH64_EXTRA_TUNE_CSE_SVE_VL_CONSTANTS.
30190 2021-02-22 Hans-Peter Nilsson <hp@axis.com>
30192 * config/cris/cris.c (cris_print_operand) <'T'>: Change
30193 valid operand from is now an addi mult-value to shift-value.
30194 * config/cris/cris.md (*addi): Change expression of scaled
30195 operand from mult to ashift.
30196 * config/cris/cris.md (*addi_reload): New insn_and_split.
30198 2021-02-22 John David Anglin <danglin@gcc.gnu.org>
30201 * config/pa/pa.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define as
30202 hook_bool_const_tree_hwi_hwi_const_tree_true.
30203 (pa_asm_output_mi_thunk): Add support for nonzero vcall_offset.
30205 2021-02-22 Andre Vieira <andre.simoesdiasvieira@arm.com>
30207 PR rtl-optimization/98791
30208 * ira-conflicts.c (process_regs_for_copy): Don't create allocno copies
30209 for unordered modes.
30211 2021-02-22 Martin Liska <mliska@suse.cz>
30213 * tree-inline.c (inline_forbidden_p): Set
30214 inline_forbidden_reason.
30216 2021-02-22 Richard Biener <rguenther@suse.de>
30218 * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Dump
30221 2021-02-22 Richard Biener <rguenther@suse.de>
30223 PR tree-optimization/99165
30224 * gimple-ssa-store-merging.c (pass_store_merging::process_store):
30225 Accumulate changed to ret.
30227 2021-02-21 Uros Bizjak <ubizjak@gmail.com>
30230 2020-12-09 Uroš Bizjak <ubizjak@gmail.com>
30232 * config/i386/i386.h (REG_ALLOC_ORDER): Remove
30234 2021-02-20 Ilya Leoshkevich <iii@linux.ibm.com>
30237 * config/s390/vector.md (trunctf<DFP_ALL:mode>2_vr): New
30239 (trunctf<DFP_ALL:mode>2): Likewise.
30240 (trunctdtf2_vr): Likewise.
30241 (trunctdtf2): Likewise.
30242 (extend<DFP_ALL:mode>tf2_vr): Likewise.
30243 (extend<DFP_ALL:mode>tf2): Likewise.
30244 (extendtftd2_vr): Likewise.
30245 (extendtftd2): Likewise.
30247 2021-02-20 Ilya Leoshkevich <iii@linux.ibm.com>
30249 * config/s390/vector.md (*fprx2_to_tf): Rename to fprx2_to_tf,
30250 add memory alternative.
30251 (tf_to_fprx2): New pattern.
30253 2021-02-19 Martin Sebor <msebor@redhat.com>
30256 * attribs.c (init_attr_rdwr_indices): Guard vblist use.
30257 (attr_access::free_lang_data): Remove a spurious test.
30259 2021-02-19 Nathan Sidwell <nathan@acm.org>
30261 * doc/invoke.texi (flang-info-module-read): Document.
30263 2021-02-19 Martin Liska <mliska@suse.cz>
30265 PR translation/99167
30266 * params.opt: Fix typo.
30268 2021-02-19 Richard Biener <rguenther@suse.de>
30270 PR middle-end/99122
30271 * tree-inline.c (inline_forbidden_p): Do not inline functions
30272 with VLA arguments or return value.
30274 2021-02-19 Jakub Jelinek <jakub@redhat.com>
30277 * config/arm/arm.md (*stack_protect_combined_set_insn,
30278 *stack_protect_combined_test_insn): If force_const_mem result
30279 is not valid general operand, force its address into the destination
30282 2021-02-19 Jakub Jelinek <jakub@redhat.com>
30285 * tree-cfg.c (gimple_merge_blocks): If bb a starts with eh landing
30286 pad or non-local label, put FORCED_LABELs from bb b after that label
30287 rather than before it.
30289 2021-02-19 Andre Vieira <andre.simoesdiasvieira@arm.com>
30292 * config/aarch64/aarch64-sve.md (<ASHIFT:optab><mode>3): Use
30293 expand_vector_broadcast' to emit the vec_duplicate operand.
30295 2021-02-18 Vladimir N. Makarov <vmakarov@redhat.com>
30297 PR rtl-optimization/96264
30298 * lra-remat.c (reg_overlap_for_remat_p): Check also output insn
30301 2021-02-18 H.J. Lu <hjl.tools@gmail.com>
30304 * varasm.c (get_section): Replace SUPPORTS_SHF_GNU_RETAIN with
30305 looking up the retain attribute.
30306 (resolve_unique_section): Likewise.
30307 (get_variable_section): Likewise.
30308 (switch_to_section): Likewise. Warn when a symbol without the
30309 retain attribute and a symbol with the retain attribute are
30310 placed in the section with the same name, instead of the used
30312 * doc/extend.texi: Document the "retain" attribute.
30314 2021-02-18 Nathan Sidwell <nathan@acm.org>
30317 * doc/invoke.texi (flang-info-include-translate): Document header
30320 2021-02-18 Richard Biener <rguenther@suse.de>
30322 PR middle-end/99122
30323 * ipa-fnsummary.c (analyze_function_body): Set
30324 CIF_FUNCTION_NOT_INLINABLE for VLA parameter calls.
30325 * tree-inline.c (insert_init_debug_bind): Pass NULL for
30326 error_mark_node values.
30327 (force_value_to_type): Do not build V_C_Es for WITH_SIZE_EXPR
30329 (setup_one_parameter): Delay force_value_to_type until when
30332 2021-02-18 Hans-Peter Nilsson <hp@axis.com>
30334 PR tree-optimization/99142
30335 * match.pd (clz cmp 0): Gate replacement on single_use of clz result.
30337 2021-02-18 Jakub Jelinek <jakub@redhat.com>
30339 * wide-int-bitmask.h (wide_int_bitmask::wide_int_bitmask (),
30340 wide_int_bitmask::wide_int_bitmask (uint64_t),
30341 wide_int_bitmask::wide_int_bitmask (uint64_t, uint64_t),
30342 wide_int_bitmask::operator ~ () const,
30343 wide_int_bitmask::operator | (wide_int_bitmask) const,
30344 wide_int_bitmask::operator & (wide_int_bitmask) const): Use constexpr
30346 * config/i386/i386.h (PTA_3DNOW, PTA_3DNOW_A, PTA_64BIT, PTA_ABM,
30347 PTA_AES, PTA_AVX, PTA_BMI, PTA_CX16, PTA_F16C, PTA_FMA, PTA_FMA4,
30348 PTA_FSGSBASE, PTA_LWP, PTA_LZCNT, PTA_MMX, PTA_MOVBE, PTA_NO_SAHF,
30349 PTA_PCLMUL, PTA_POPCNT, PTA_PREFETCH_SSE, PTA_RDRND, PTA_SSE, PTA_SSE2,
30350 PTA_SSE3, PTA_SSE4_1, PTA_SSE4_2, PTA_SSE4A, PTA_SSSE3, PTA_TBM,
30351 PTA_XOP, PTA_AVX2, PTA_BMI2, PTA_RTM, PTA_HLE, PTA_PRFCHW, PTA_RDSEED,
30352 PTA_ADX, PTA_FXSR, PTA_XSAVE, PTA_XSAVEOPT, PTA_AVX512F, PTA_AVX512ER,
30353 PTA_AVX512PF, PTA_AVX512CD, PTA_NO_TUNE, PTA_SHA, PTA_PREFETCHWT1,
30354 PTA_CLFLUSHOPT, PTA_XSAVEC, PTA_XSAVES, PTA_AVX512DQ, PTA_AVX512BW,
30355 PTA_AVX512VL, PTA_AVX512IFMA, PTA_AVX512VBMI, PTA_CLWB, PTA_MWAITX,
30356 PTA_CLZERO, PTA_NO_80387, PTA_PKU, PTA_AVX5124VNNIW, PTA_AVX5124FMAPS,
30357 PTA_AVX512VPOPCNTDQ, PTA_SGX, PTA_AVX512VNNI, PTA_GFNI, PTA_VAES,
30358 PTA_AVX512VBMI2, PTA_VPCLMULQDQ, PTA_AVX512BITALG, PTA_RDPID,
30359 PTA_PCONFIG, PTA_WBNOINVD, PTA_AVX512VP2INTERSECT, PTA_PTWRITE,
30360 PTA_AVX512BF16, PTA_WAITPKG, PTA_MOVDIRI, PTA_MOVDIR64B, PTA_ENQCMD,
30361 PTA_CLDEMOTE, PTA_SERIALIZE, PTA_TSXLDTRK, PTA_AMX_TILE, PTA_AMX_INT8,
30362 PTA_AMX_BF16, PTA_UINTR, PTA_HRESET, PTA_KL, PTA_WIDEKL, PTA_AVXVNNI,
30363 PTA_X86_64_BASELINE, PTA_X86_64_V2, PTA_X86_64_V3, PTA_X86_64_V4,
30364 PTA_CORE2, PTA_NEHALEM, PTA_WESTMERE, PTA_SANDYBRIDGE, PTA_IVYBRIDGE,
30365 PTA_HASWELL, PTA_BROADWELL, PTA_SKYLAKE, PTA_SKYLAKE_AVX512,
30366 PTA_CASCADELAKE, PTA_COOPERLAKE, PTA_CANNONLAKE, PTA_ICELAKE_CLIENT,
30367 PTA_ICELAKE_SERVER, PTA_TIGERLAKE, PTA_SAPPHIRERAPIDS, PTA_ALDERLAKE,
30368 PTA_KNL, PTA_BONNELL, PTA_SILVERMONT, PTA_GOLDMONT, PTA_GOLDMONT_PLUS,
30369 PTA_TREMONT, PTA_KNM): Use constexpr instead of const.
30371 2021-02-18 Jakub Jelinek <jakub@redhat.com>
30373 PR middle-end/99109
30374 * gimple-array-bounds.cc (build_zero_elt_array_type): Rename to ...
30375 (build_printable_array_type): ... this. Add nelts argument. For
30376 overaligned eltype, use TYPE_MAIN_VARIANT (eltype) instead. If
30377 nelts, call build_array_type_nelts.
30378 (array_bounds_checker::check_mem_ref): Use build_printable_array_type
30379 instead of build_zero_elt_array_type and build_array_type_nelts.
30381 2021-02-18 Jakub Jelinek <jakub@redhat.com>
30384 * config/i386/i386.c (distance_non_agu_define): Don't call
30385 extract_insn_cached here.
30386 (ix86_lea_outperforms): Save and restore recog_data around call
30387 to distance_non_agu_define and distance_agu_use.
30388 (ix86_ok_to_clobber_flags): Remove.
30389 (ix86_avoid_lea_for_add): Don't call ix86_ok_to_clobber_flags.
30390 (ix86_avoid_lea_for_addr): Likewise. Adjust function comment.
30391 * config/i386/i386.md (*lea<mode>): Change from define_insn_and_split
30392 into define_insn. Move the splitting to define_peephole2 and
30393 check there using peep2_regno_dead_p if FLAGS_REG is dead.
30395 2021-02-17 Julian Brown <julian@codesourcery.com>
30397 * gimplify.c (gimplify_scan_omp_clauses): Handle ATTACH_DETACH
30400 2021-02-17 Xi Ruoyao <xry111@mengyan1223.wang>
30403 * config/mips/mips.c (mips_symbol_insns): Do not use
30404 MSA_SUPPORTED_MODE_P if mode is MAX_MACHINE_MODE.
30406 2021-02-16 Vladimir N. Makarov <vmakarov@redhat.com>
30408 PR inline-asm/98096
30409 * stmt.c (resolve_operand_name_1): Take inout operands into account
30410 for access to labels by names.
30411 * doc/extend.texi: Describe counting operands for accessing labels.
30413 2021-02-16 Richard Biener <rguenther@suse.de>
30415 PR tree-optimization/38474
30416 * tree-ssa-structalias.c (variable_info::address_taken): New.
30417 (new_var_info): Initialize address_taken.
30418 (process_constraint): Set address_taken.
30419 (solve_constraints): Use the new address_taken flag rather
30420 than is_reg_var for sorting variables.
30421 (dump_constraint): Dump the variable number if the name
30424 2021-02-16 Jakub Jelinek <jakub@redhat.com>
30427 * tree-vect-stmts.c (vectorizable_simd_clone_call): For num_calls != 1
30428 multiply by 4096 and for inbranch by 8192.
30429 * config/i386/i386.c (ix86_simd_clone_usable): For TARGET_AVX512F,
30430 return 3, 2 or 1 for mangle letters 'b', 'c' or 'd'.
30432 2021-02-15 Maya Rashish <coypu@sdf.org>
30434 * config/aarch64/aarch64.c (aarch64_init_builtins):
30435 Call SUBTARGET_INIT_BUILTINS.
30437 2021-02-15 Peter Bergner <bergner@linux.ibm.com>
30439 PR rtl-optimization/98872
30440 * init-regs.c (initialize_uninitialized_regs): Skip initialization
30441 if CONST0_RTX is NULL.
30443 2021-02-15 Richard Sandiford <richard.sandiford@arm.com>
30445 PR rtl-optimization/98863
30446 * rtl-ssa/functions.h (function_info::bb_live_out_info): Delete.
30447 (function_info::build_info): Turn into a declaration, moving the
30448 definition to internals.h.
30449 (function_info::bb_walker): Declare.
30450 (function_info::create_reg_use): Likewise.
30451 (function_info::calculate_potential_phi_regs): Take a build_info
30453 (function_info::place_phis, function_info::create_ebbs): Declare.
30454 (function_info::calculate_ebb_live_in_for_debug): Likewise.
30455 (function_info::populate_backedge_phis): Delete.
30456 (function_info::start_block, function_info::end_block): Declare.
30457 (function_info::populate_phi_inputs): Delete.
30458 (function_info::m_potential_phi_regs): Move information to build_info.
30459 * rtl-ssa/internals.h: New file.
30460 (function_info::bb_phi_info): New class.
30461 (function_info::build_info): Moved from functions.h.
30462 Add a constructor and destructor.
30463 (function_info::build_info::ebb_use): Delete.
30464 (function_info::build_info::ebb_def): Likewise.
30465 (function_info::build_info::bb_live_out): Likewise.
30466 (function_info::build_info::tmp_ebb_live_in_for_debug): New variable.
30467 (function_info::build_info::potential_phi_regs): Likewise.
30468 (function_info::build_info::potential_phi_regs_for_debug): Likewise.
30469 (function_info::build_info::ebb_def_regs): Likewise.
30470 (function_info::build_info::bb_phis): Likewise.
30471 (function_info::build_info::bb_mem_live_out): Likewise.
30472 (function_info::build_info::bb_to_rpo): Likewise.
30473 (function_info::build_info::def_stack): Likewise.
30474 (function_info::build_info::old_def_stack_limit): Likewise.
30475 * rtl-ssa/internals.inl (function_info::build_info::record_reg_def):
30476 Remove the regno argument. Push the previous definition onto the
30477 definition stack where necessary.
30478 * rtl-ssa/accesses.cc: Include internals.h.
30479 * rtl-ssa/changes.cc: Likewise.
30480 * rtl-ssa/blocks.cc: Likewise.
30481 (function_info::build_info::build_info): Define.
30482 (function_info::build_info::~build_info): Likewise.
30483 (function_info::bb_walker): New class.
30484 (function_info::bb_walker::bb_walker): Define.
30485 (function_info::add_live_out_use): Convert a logarithmic-complexity
30486 test into a linear one. Allow the same definition to be passed
30488 (function_info::calculate_potential_phi_regs): Moved from
30489 functions.cc. Take a build_info parameter and store the
30490 information there instead.
30491 (function_info::place_phis): New function.
30492 (function_info::add_entry_block_defs): Update call to record_reg_def.
30493 (function_info::calculate_ebb_live_in_for_debug): New function.
30494 (function_info::add_phi_nodes): Use bb_phis to decide which
30495 registers need phi nodes and initialize ebb_def_regs accordingly.
30496 Do not add degenerate phis here.
30497 (function_info::add_artificial_accesses): Use create_reg_use.
30498 Assert that all definitions are listed in the DF LR sets.
30499 Update call to record_reg_def.
30500 (function_info::record_block_live_out): Record live-out register
30501 values in the phis of successor blocks. Use the live-out set
30502 when processing the last block in an EBB, instead of always
30503 using the live-in sets of successor blocks. AND the live sets
30504 with the set of registers that have been defined in the EBB,
30505 rather than with all potential phi registers. Cope correctly
30506 with branches back to the start of the current EBB.
30507 (function_info::start_block): New function.
30508 (function_info::end_block): Likewise.
30509 (function_info::populate_phi_inputs): Likewise.
30510 (function_info::create_ebbs): Likewise.
30511 (function_info::process_all_blocks): Rewrite into a multi-phase
30513 * rtl-ssa/functions.cc: Include internals.h.
30514 (function_info::calculate_potential_phi_regs): Move to blocks.cc.
30515 (function_info::init_function_data): Remove caller.
30516 * rtl-ssa/insns.cc: Include internals.h
30517 (function_info::create_reg_use): New function. Lazily any
30518 degenerate phis needed by the linear RPO view.
30519 (function_info::record_use): Use create_reg_use. When processing
30520 debug uses, use potential_phi_regs and test it before checking
30521 whether the register is live on entry to the current EBB. Lazily
30522 calculate ebb_live_in_for_debug.
30523 (function_info::record_call_clobbers): Update call to record_reg_def.
30524 (function_info::record_def): Likewise.
30526 2021-02-15 Martin Liska <mliska@suse.cz>
30528 * toplev.c (init_asm_output): Free output of
30529 gen_command_line_string function.
30530 (process_options): Likewise.
30532 2021-02-15 Martin Liska <mliska@suse.cz>
30534 * params.opt: Add 2 missing Param keywords.
30536 2021-02-15 Eric Botcazou <ebotcazou@adacore.com>
30538 * df-core.c (df_worklist_dataflow_doublequeue): Use proper cast.
30540 2021-02-15 Jakub Jelinek <jakub@redhat.com>
30542 PR tree-optimization/99079
30543 * match.pd (A % (pow2pcst << N) -> A & ((pow2pcst << N) - 1)): Remove
30544 useless tree_nop_conversion_p (type, TREE_TYPE (@3)) check. Instead
30545 require both type and TREE_TYPE (@1) to be integral types and either
30546 type having smaller or equal precision, or TREE_TYPE (@1) being
30547 unsigned type, or type being signed type. If TREE_TYPE (@1)
30548 doesn't have wrapping overflow, perform the subtraction of one in
30551 2021-02-14 Jan Hubicka <hubicka@ucw.cz>
30552 Richard Biener <rguether@suse.de>
30555 * ipa-reference.c (ipa_init): Only conditinally initialize
30556 reference_vars_to_consider.
30557 (propagate): Conditionally deninitialize reference_vars_to_consider.
30558 (ipa_reference_write_optimization_summary): Sanity check that
30559 reference_vars_to_consider is not allocated.
30561 2021-02-13 Levy Hsu <admin@levyhsu.com>
30564 * config/riscv/riscv-shorten-memrefs.c (pass_shorten_memrefs): Add
30565 extend parameter to get_si_mem_base_reg declaration.
30566 (get_si_mem_base_reg): Add extend parameter. Set it.
30567 (analyze): Pass extend arg to get_si_mem_base_reg.
30568 (transform): Likewise. Use it when rewriting mems.
30569 * config/riscv/riscv.c (riscv_legitimize_move): Check for subword
30570 loads and emit sign/zero extending load followed by subreg move.
30572 2021-02-13 Jim Wilson <jimw@sifive.com>
30575 * config/riscv/riscv.c (riscv_compressed_lw_address_p): Drop early
30576 exit when !reload_completed. Only perform check for compressed reg
30577 if reload_completed.
30578 (riscv_rtx_costs): In MEM case, when optimizing for size and
30579 shorten memrefs, if not compressible, then increase cost.
30581 2021-02-13 Jakub Jelinek <jakub@redhat.com>
30583 PR rtl-optimization/98439
30584 * recog.c (pass_split_before_regstack::gate): Enable even when
30585 pass_split_before_sched2 is enabled if -fselective-scheduling2 is
30588 2021-02-13 Jakub Jelinek <jakub@redhat.com>
30591 * config/i386/mmx.md (*mmx_pshufd_1): Add a combine splitter for
30592 swap of V2SImode elements in memory into DImode memory rotate by 32.
30594 2021-02-12 Martin Sebor <msebor@redhat.com>
30596 * tree-pretty-print.c (print_generic_expr_to_str): Update comment.
30598 2021-02-12 Richard Sandiford <richard.sandiford@arm.com>
30600 * rtl-ssa/accesses.cc (function_info::make_use_available): Use
30601 m_temp_obstack rather than m_obstack to allocate the temporary use.
30603 2021-02-12 Richard Sandiford <richard.sandiford@arm.com>
30605 * df-problems.c (df_lr_bb_local_compute): Treat partial definitions
30606 as read-modify operations.
30608 2021-02-12 Richard Biener <rguenther@suse.de>
30610 PR middle-end/38474
30611 * ipa-fnsummary.c (unmodified_parm_1): Only walk when
30612 fbi->aa_walk_budget is bigger than zero. Update
30613 fbi->aa_walk_budget.
30614 (param_change_prob): Likewise.
30615 * ipa-prop.c (detect_type_change_from_memory_writes):
30616 Properly account walk_aliased_vdefs.
30617 (parm_preserved_before_stmt_p): Canonicalize updates.
30618 (parm_ref_data_preserved_p): Likewise.
30619 (parm_ref_data_pass_through_p): Likewise.
30620 (determine_known_aggregate_parts): Account own alias queries.
30622 2021-02-12 Martin Liska <mliska@suse.cz>
30624 * opts-common.c (decode_cmdline_option): Release werror_arg.
30625 * opts.c (gen_producer_string): Release output of
30626 gen_command_line_string.
30628 2021-02-12 Richard Biener <rguenther@suse.de>
30630 PR tree-optimization/38474
30631 * params.opt (-param=max-store-chains-to-track=): New param.
30632 (-param=max-stores-to-track=): Likewise.
30633 * doc/invoke.texi (max-store-chains-to-track): Document.
30634 (max-stores-to-track): Likewise.
30635 * gimple-ssa-store-merging.c (pass_store_merging::m_n_chains):
30637 (pass_store_merging::m_n_stores): Likewise.
30638 (pass_store_merging::terminate_and_process_chain): Update
30639 m_n_stores and m_n_chains.
30640 (pass_store_merging::process_store): Likewise. Terminate
30641 oldest chains if the number of stores or chains get too large.
30642 (imm_store_chain_info::terminate_and_process_chain): Dump
30645 2021-02-11 Eric Botcazou <ebotcazou@adacore.com>
30647 * config/i386/winnt.c (i386_pe_seh_unwind_emit): When switching to
30648 the cold section, emit a nop before the directive if the previous
30649 active instruction can throw.
30651 2021-02-11 Peter Bergner <bergner@linux.ibm.com>
30654 * config/rs6000/predicates.md (mma_assemble_input_operand): Restrict
30655 memory addresses that are legal for quad word accesses.
30657 2021-02-11 Andrea Corallo <andrea.corallo@arm.com>
30660 * config/arm/thumb2.md (*doloop_end_internal): Generate
30661 alternative sequence to handle long range branches.
30663 2021-02-11 Joel Hutton <joel.hutton@arm.com>
30665 PR tree-optimization/98772
30666 * optabs-tree.c (supportable_half_widening_operation): New function
30667 to check for supportable V8QI->V8HI widening patterns.
30668 * optabs-tree.h (supportable_half_widening_operation): New function.
30669 * tree-vect-stmts.c (vect_create_half_widening_stmts): New function
30670 to create promotion stmts for V8QI->V8HI widening patterns.
30671 (vectorizable_conversion): Add case for V8QI->V8HI.
30673 2021-02-11 Richard Biener <rguenther@suse.de>
30675 * sparseset.h (SPARSESET_ELT_BITS): Remove.
30676 (SPARSESET_ELT_TYPE): Use unsigned int.
30677 * fwprop.c: Do not include sparseset.h.
30679 2021-02-10 Jakub Jelinek <jakub@redhat.com>
30682 * varasm.c (declare_weak): For -fsyntax-only, allow even
30683 TREE_ASM_WRITTEN function decls.
30685 2021-02-10 Jakub Jelinek <jakub@redhat.com>
30688 * config/i386/sse.md (fix<fixunssuffix>_truncv2sfv2di2,
30689 <insn>v8qiv8hi2, <insn>v8qiv8si2, <insn>v4qiv4si2, <insn>v4hiv4si2,
30690 <insn>v8qiv8di2, <insn>v4qiv4di2, <insn>v2qiv2di2, <insn>v4hiv4di2,
30691 <insn>v2hiv2di2, <insn>v2siv2di2): Force operands[1] into REG before
30692 calling simplify_gen_subreg on it.
30694 2021-02-10 Martin Liska <mliska@suse.cz>
30696 * config/nvptx/nvptx.c (nvptx_option_override): Use
30697 flag_patchable_function_entry instead of the removed
30698 function_entry_patch_area_size.
30700 2021-02-10 Martin Liska <mliska@suse.cz>
30702 PR tree-optimization/99002
30703 PR tree-optimization/99026
30704 * gimple-if-to-switch.cc (if_chain::is_beneficial): Fix memory
30705 leak when adjacent cases are merged.
30706 * tree-switch-conversion.c (switch_decision_tree::analyze_switch_statement): Use
30708 (make_pass_lower_switch): Remove trailing whitespace.
30709 * tree-switch-conversion.h (release_clusters): New.
30711 2021-02-10 Richard Biener <rguenther@suse.de>
30713 PR rtl-optimization/99054
30714 * cfgrtl.c (rtl-optimization/99054): Return an auto_vec.
30715 (fixup_partitions): Adjust.
30716 (rtl_verify_edges): Likewise.
30718 2021-02-10 Jakub Jelinek <jakub@redhat.com>
30720 PR middle-end/99007
30721 * gimplify.c (gimplify_scan_omp_clauses): For MEM_REF on reductions,
30722 temporarily disable gimplify_ctxp->into_ssa around gimplify_expr
30725 2021-02-10 Richard Biener <rguenther@suse.de>
30728 * ipa-pure-const.c (propagate_malloc): Use an auto_vec<>
30731 2021-02-10 Richard Biener <rguenther@suse.de>
30733 PR tree-optimization/99024
30734 * tree-vect-loop.c (_loop_vec_info::~_loop_vec_info): Only
30735 clear loop->aux if it is associated with the destroyed loop_vinfo.
30737 2021-02-10 Martin Liska <mliska@suse.cz>
30739 PR tree-optimization/99002
30740 * gimple-if-to-switch.cc (find_conditions): Fix memory leak
30743 2021-02-10 Martin Liska <mliska@suse.cz>
30746 * ipa-icf.c (sem_item::add_reference): Fix memory leak when
30747 a reference exists.
30749 2021-02-10 Jakub Jelinek <jakub@redhat.com>
30752 * dwarf2out.c (prune_unused_types_walk): Mark DW_TAG_variable DIEs
30753 at class scope for DWARF5+.
30755 2021-02-09 Eric Botcazou <ebotcazou@adacore.com>
30757 PR rtl-optimization/96015
30758 * reorg.c (skip_consecutive_labels): Minor comment tweaks.
30759 (relax_delay_slots): When deleting a jump to the next active
30760 instruction over a barrier, first delete the barrier if the
30761 jump is the only way to reach the target label.
30763 2021-02-09 Andre Vieira <andre.simoesdiasvieira@arm.com>
30765 * config/aarch64/aarch64-cost-tables.h: Add entries for vect.mul.
30766 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Use vect.mul for
30767 vector multiplies and vect.alu for SSRA.
30768 * config/arm/aarch-common-protos.h (struct vector_cost_table): Define
30769 vect.mul cost field.
30770 * config/arm/aarch-cost-tables.h: Add entries for vect.mul.
30771 * config/arm/arm.c: Likewise.
30773 2021-02-09 Richard Biener <rguenther@suse.de>
30775 PR tree-optimization/98863
30776 * tree-ssa-sccvn.h (vn_avail::next_undo): Add.
30777 * tree-ssa-sccvn.c (last_pushed_avail): New global.
30778 (rpo_elim::eliminate_push_avail): Chain pushed avails.
30779 (unwind_state::avail_top): Add.
30780 (do_unwind): Rewrite unwinding of avail entries.
30781 (do_rpo_vn): Initialize last_pushed_avail and
30782 avail_top of the undo state.
30784 2021-02-09 Jakub Jelinek <jakub@redhat.com>
30786 PR middle-end/99004
30787 * calls.c (maybe_warn_rdwr_sizes): Change s0 and s1 type from
30788 const char * to char * and free those pointers after use.
30790 2021-02-09 Richard Biener <rguenther@suse.de>
30792 PR tree-optimization/99017
30793 * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Allow
30794 zero vector cost entries.
30796 2021-02-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
30798 PR middle-end/98974
30799 * tree-vect-stmts.c (vectorizable_condition): Remove shadow vec_num
30800 parameter in vectorizable_condition.
30802 2021-02-08 Richard Biener <rguenther@suse.de>
30805 * tree.c (walk_tree_1): Walk VECTOR_CST elements.
30807 2021-02-08 Martin Liska <mliska@suse.cz>
30810 * cfgexpand.c (pass_expand::execute): Parse per-function option
30811 flag_patchable_function_entry and use it.
30812 * common.opt: Remove function_entry_patch_area_size and
30813 function_entry_patch_area_start global variables.
30814 * opts.c (parse_and_check_patch_area): New function.
30815 (common_handle_option): Use it.
30816 * opts.h (parse_and_check_patch_area): New function.
30817 * toplev.c (process_options): Parse and use
30818 function_entry_patch_area_size.
30820 2021-02-08 Martin Sebor <msebor@redhat.com>
30822 * doc/extend.texi (attribute malloc): Correct typos.
30824 2021-02-05 Nathan Sidwell <nathan@acm.org>
30827 * gcc.c (driver::maybe_run_linker): Check for input file
30828 accessibility if not linking.
30830 2021-02-05 Richard Biener <rguenther@suse.de>
30832 PR tree-optimization/98855
30833 * tree-vectorizer.h (add_stmt_cost): New overload.
30834 * tree-vect-slp.c (li_cost_vec_cmp): New.
30835 (vect_bb_slp_scalar_cost): Cost individual loop regions
30836 separately. Account for the scalar instance root stmt.
30838 2021-02-05 Tom de Vries <tdevries@suse.de>
30841 * tree-switch-conversion.c (jump_table_cluster::emit): Add loc
30843 (bit_test_cluster::emit): Reuse location_t for newly created
30845 (switch_decision_tree::try_switch_expansion): Preserve
30847 * tree-switch-conversion.h: Change function signatures.
30849 2021-02-05 Jakub Jelinek <jakub@redhat.com>
30852 * config/i386/i386-options.c (m_NONE, m_ALL): Define.
30853 * config/i386/x86-tune.def (X86_TUNE_BRANCH_PREDICTION_HINTS,
30854 X86_TUNE_PROMOTE_QI_REGS): Use m_NONE instead of 0U.
30855 (X86_TUNE_QIMODE_MATH): Use m_ALL instead of ~0U.
30857 2021-02-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30859 * config/aarch64/aarch64-simd-builtins.def (get_high): Define builtin.
30860 * config/aarch64/aarch64-simd.md (aarch64_get_high<mode>): Define.
30861 * config/aarch64/arm_neon.h (__GET_HIGH): Delete.
30862 (vget_high_f16): Reimplement using new builtin.
30863 (vget_high_f32): Likewise.
30864 (vget_high_f64): Likewise.
30865 (vget_high_p8): Likewise.
30866 (vget_high_p16): Likewise.
30867 (vget_high_p64): Likewise.
30868 (vget_high_s8): Likewise.
30869 (vget_high_s16): Likewise.
30870 (vget_high_s32): Likewise.
30871 (vget_high_s64): Likewise.
30872 (vget_high_u8): Likewise.
30873 (vget_high_u16): Likewise.
30874 (vget_high_u32): Likewise.
30875 (vget_high_u64): Likewise.
30877 2021-02-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30879 * config/aarch64/aarch64-simd-builtins.def (get_low): Define builtin.
30880 * config/aarch64/aarch64-simd.md (aarch64_get_low<mode>): Define.
30881 * config/aarch64/arm_neon.h (__GET_LOW): Delete.
30882 (vget_low_f16): Reimplement using new builtin.
30883 (vget_low_f32): Likewise.
30884 (vget_low_f64): Likewise.
30885 (vget_low_p8): Likewise.
30886 (vget_low_p16): Likewise.
30887 (vget_low_p64): Likewise.
30888 (vget_low_s8): Likewise.
30889 (vget_low_s16): Likewise.
30890 (vget_low_s32): Likewise.
30891 (vget_low_s64): Likewise.
30892 (vget_low_u8): Likewise.
30893 (vget_low_u16): Likewise.
30894 (vget_low_u32): Likewise.
30895 (vget_low_u64): Likewise.
30897 2021-02-05 Kito Cheng <kito.cheng@sifive.com>
30899 * gcc.c (print_multilib_info): Check all required argument is provided
30902 2021-02-05 liuhongt <hongtao.liu@intel.com>
30905 * config/i386/i386-expand.c (ix86_expand_sse_cmp): Don't
30906 generate integer mask comparison for 128/256-bits vector when
30907 op_true/op_false is NULL_RTX or CONSTM1_RTX/CONST0_RTX. Also
30908 delete redundant !maskcmp condition.
30909 (ix86_expand_int_vec_cmp): Ditto but no redundant deletion
30911 (ix86_expand_sse_movcc): Delete definition of maskcmp, add the
30912 condition directly to if (maskcmp), add extra check for
30913 cmpmode, it should be MODE_INT.
30914 (ix86_expand_fp_vec_cmp): Pass NULL to ix86_expand_sse_cmp's
30915 parameters op_true/op_false.
30916 (ix86_use_mask_cmp_p): New.
30918 2021-02-05 liuhongt <hongtao.liu@intel.com>
30921 * config/i386/x86-tune.def (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL):
30922 Remove m_GENERIC from ~list.
30923 (X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): Ditto.
30925 2021-02-04 David Malcolm <dmalcolm@redhat.com>
30928 * diagnostic-show-locus.c (compatible_locations_p): Require
30929 locations in the same macro map to be either both from the
30930 macro definition, or both from the macro arguments.
30932 2021-02-04 Jonathan Wright <jonathan.wright@arm.com>
30934 * config/aarch64/aarch64-simd-builtins.def: Add
30935 [su]mull_hi_lane[q] builtin generator macros.
30936 * config/aarch64/aarch64-simd.md
30937 (aarch64_<su>mull_hi_lane<mode>_insn): Define.
30938 (aarch64_<su>mull_hi_lane<mode>): Define.
30939 (aarch64_<su>mull_hi_laneq<mode>_insn): Define.
30940 (aarch64_<su>mull_hi_laneq<mode>): Define.
30941 * config/aarch64/arm_neon.h (vmull_high_lane_s16): Use RTL
30942 builtin instead of inline asm.
30943 (vmull_high_lane_s32): Likewise.
30944 (vmull_high_lane_u16): Likewise.
30945 (vmull_high_lane_u32): Likewise.
30946 (vmull_high_laneq_s16): Likewise.
30947 (vmull_high_laneq_s32): Likewise.
30948 (vmull_high_laneq_u16): Likewise.
30949 (vmull_high_laneq_u32): Liekwise.
30951 2021-02-04 Jonathan Wright <jonathan.wright@arm.com>
30953 * config/aarch64/aarch64-simd-builtins.def: Add [su]mull_hi_n
30954 builtin generator macros.
30955 * config/aarch64/aarch64-simd.md
30956 (aarch64_<su>mull_hi_n<mode>_insn): Define.
30957 (aarch64_<su>mull_hi_n<mode>): Define.
30958 * config/aarch64/arm_neon.h (vmull_high_n_s16): Use RTL builtin
30959 instead of inline asm.
30960 (vmull_high_n_s32): Likewise.
30961 (vmull_high_n_u16): Likewise.
30962 (vmull_high_n_u32): Likewise.
30964 2021-02-04 Richard Biener <rguenther@suse.de>
30966 PR tree-optimization/98855
30967 * tree-vect-loop.c (vectorizable_phi): Do not cost
30968 single-argument PHIs.
30969 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Likewise.
30970 * tree-vect-stmts.c (vectorizable_bswap): Also perform
30971 costing for SLP operation.
30973 2021-02-04 Martin Liska <mliska@suse.cz>
30975 * doc/extend.texi: Mention -mprefer-vector-width in target
30978 2021-02-03 Martin Sebor <msebor@redhat.com>
30980 PR tree-optimization/98937
30981 * tree-ssa-strlen.c (strlen_dom_walker::~strlen_dom_walker): Define.
30982 Flush pointer_query cache.
30984 2021-02-03 Aaron Sawdey <acsawdey@linux.ibm.com>
30986 * config/rs6000/genfusion.pl (gen_2logical): Add missing
30987 fixes based on patch review.
30988 * config/rs6000/fusion.md: Regenerate file.
30990 2021-02-03 Aaron Sawdey <acsawdey@linux.ibm.com>
30992 * config/rs6000/t-rs6000: Comment out auto generation of
30995 2021-02-03 Andrew Stubbs <ams@codesourcery.com>
30997 * config/gcn/gcn-opts.h (enum processor_type): Add PROCESSOR_GFX908.
30998 * config/gcn/gcn.c (gcn_omp_device_kind_arch_isa): Add gfx908.
30999 (output_file_start): Add gfx908.
31000 * config/gcn/gcn.opt (gpu_type): Add gfx908.
31001 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add march=gfx908.
31002 (MULTILIB_DIRNAMES): Add gfx908.
31003 * config/gcn/mkoffload.c (EF_AMDGPU_MACH_AMDGCN_GFX908): New define.
31004 (main): Recognize gfx908.
31005 * config/gcn/t-omp-device: Add gfx908.
31007 2021-02-03 Jonathan Wright <jonathan.wright@arm.com>
31009 * config/aarch64/aarch64-simd-builtins.def: Add
31010 [su]mlsl_hi_lane[q] builtin macro generators.
31011 * config/aarch64/aarch64-simd.md
31012 (aarch64_<su>mlsl_hi_lane<mode>_insn): Define.
31013 (aarch64_<su>mlsl_hi_lane<mode>): Define.
31014 (aarch64_<su>mlsl_hi_laneq<mode>_insn): Define.
31015 (aarch64_<su>mlsl_hi_laneq<mode>): Define.
31016 * config/aarch64/arm_neon.h (vmlsl_high_lane_s16): Use RTL
31017 builtin instead of inline asm.
31018 (vmlsl_high_lane_s32): Likewise.
31019 (vmlsl_high_lane_u16): Likewise.
31020 (vmlsl_high_lane_u32): Likewise.
31021 (vmlsl_high_laneq_s16): Likewise.
31022 (vmlsl_high_laneq_s32): Likewise.
31023 (vmlsl_high_laneq_u16): Likewise.
31024 (vmlsl_high_laneq_u32): Likewise.
31025 (vmlal_high_laneq_u32): Likewise.
31027 2021-02-03 Jonathan Wright <jonathan.wright@arm.com>
31029 * config/aarch64/aarch64-simd-builtins.def: Add
31030 [su]mlal_hi_lane[q] builtin generator macros.
31031 * config/aarch64/aarch64-simd.md
31032 (aarch64_<su>mlal_hi_lane<mode>_insn): Define.
31033 (aarch64_<su>mlal_hi_lane<mode>): Define.
31034 (aarch64_<su>mlal_hi_laneq<mode>_insn): Define.
31035 (aarch64_<su>mlal_hi_laneq<mode>): Define.
31036 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Use RTL
31037 builtin instead of inline asm.
31038 (vmlal_high_lane_s32): Likewise.
31039 (vmlal_high_lane_u16): Likewise.
31040 (vmlal_high_lane_u32): Likewise.
31041 (vmlal_high_laneq_s16): Likewise.
31042 (vmlal_high_laneq_s32): Likewise.
31043 (vmlal_high_laneq_u16): Likewise.
31044 (vmlal_high_laneq_u32): Likewise.
31046 2021-02-03 Jonathan Wright <jonathan.wright@arm.com>
31048 * config/aarch64/aarch64-simd-builtins.def: Add [su]mlsl_hi_n
31049 builtin generator macros.
31050 * config/aarch64/aarch64-simd.md (aarch64_<su>mlsl_hi_n<mode>_insn):
31052 (aarch64_<su>mlsl_hi_n<mode>): Define.
31053 * config/aarch64/arm_neon.h (vmlsl_high_n_s16): Use RTL builtin
31054 instead of inline asm.
31055 (vmlsl_high_n_s32): Likewise.
31056 (vmlsl_high_n_u16): Likewise.
31057 (vmlsl_high_n_u32): Likewise.
31059 2021-02-03 Jonathan Wright <jonathan.wright@arm.com>
31061 * config/aarch64/aarch64-simd-builtins.def: Add [su]mlal_hi_n
31062 builtin generator macros.
31063 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_hi_n<mode>_insn):
31065 (aarch64_<su>mlal_hi_n<mode>): Define.
31066 * config/aarch64/arm_neon.h (vmlal_high_n_s16): Use RTL builtin
31067 instead of inline asm.
31068 (vmlal_high_n_s32): Likewise.
31069 (vmlal_high_n_u16): Likewise.
31070 (vmlal_high_n_u32): Likewise.
31072 2021-02-03 Jonathan Wright <jonathan.wright@arm.com>
31074 * config/aarch64/aarch64-simd-builtins.def: Add RTL builtin
31076 * config/aarch64/aarch64-simd.md (*aarch64_<su>mlal_hi<mode>):
31078 (aarch64_<su>mlal_hi<mode>_insn): This.
31079 (aarch64_<su>mlal_hi<mode>): Define.
31080 * config/aarch64/arm_neon.h (vmlal_high_s8): Use RTL builtin
31081 instead of inline asm.
31082 (vmlal_high_s16): Likewise.
31083 (vmlal_high_s32): Likewise.
31084 (vmlal_high_u8): Likewise.
31085 (vmlal_high_u16): Likewise.
31086 (vmlal_high_u32): Likewise.
31088 2021-02-03 Ilya Leoshkevich <iii@linux.ibm.com>
31090 * lra-spills.c (remove_pseudos): Call lra_update_insn_recog_data()
31091 after calling alter_subreg() on a (mem).
31093 2021-02-03 Martin Liska <mliska@suse.cz>
31096 * lto-streamer-out.c (produce_lto_section): Fill up missing
31098 * lto-streamer.h (struct lto_section): Add _padding field.
31100 2021-02-03 Richard Biener <rguenther@suse.de>
31102 * lto-streamer.c (lto_get_section_name): Free temporary
31104 * tree-loop-distribution.c
31105 (loop_distribution::merge_dep_scc_partitions): Free edge data.
31107 2021-02-03 Jakub Jelinek <jakub@redhat.com>
31109 PR middle-end/97487
31110 * ifcvt.c (noce_can_force_operand): New function.
31111 (noce_emit_move_insn): Use it.
31112 (noce_try_sign_mask): Likewise. Formatting fix.
31114 2021-02-03 Jakub Jelinek <jakub@redhat.com>
31116 PR middle-end/97971
31117 * lra-constraints.c (process_alt_operands): For inline asm, don't call
31118 fatal_insn, but instead return false.
31120 2021-02-03 Jakub Jelinek <jakub@redhat.com>
31122 PR tree-optimization/98287
31123 * config/i386/mmx.md (<insn><mode>3): For shifts don't enable expander
31126 2021-02-03 Tamar Christina <tamar.christina@arm.com>
31128 PR tree-optimization/98928
31129 * tree-vect-loop.c (vect_analyze_loop_2): Change
31130 STMT_VINFO_SLP_VECT_ONLY to STMT_VINFO_SLP_VECT_ONLY_PATTERN.
31131 * tree-vect-slp-patterns.c (complex_pattern::build): Likewise.
31132 * tree-vectorizer.h (STMT_VINFO_SLP_VECT_ONLY_PATTERN): New.
31133 (class _stmt_vec_info): Add slp_vect_pattern_only_p.
31135 2021-02-02 Richard Biener <rguenther@suse.de>
31137 * gimple-loop-interchange.cc (prepare_data_references):
31139 * gimple-loop-jam.c (tree_loop_unroll_and_jam): Likewise.
31140 * tree-ssa-loop-im.c (hoist_memory_references): Likewise.
31141 * tree-vect-stmts.c (vectorizable_condition): Do not
31143 (vectorizable_comparison): Likewise.
31145 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31147 * config/aarch64/aarch64-simd-builtins.def (ursqrte): Define builtin.
31148 * config/aarch64/aarch64-simd.md (aarch64_ursqrte<mode>): New pattern.
31149 * config/aarch64/arm_neon.h (vrsqrte_u32): Reimplement using builtin.
31150 (vrsqrteq_u32): Likewise.
31152 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31154 * config/aarch64/aarch64-simd-builtins.def (sqxtun2): Define builtin.
31155 * config/aarch64/aarch64-simd.md (aarch64_sqxtun2<mode>_le): Define.
31156 (aarch64_sqxtun2<mode>_be): Likewise.
31157 (aarch64_sqxtun2<mode>): Likewise.
31158 * config/aarch64/arm_neon.h (vqmovun_high_s16): Reimplement using builtin.
31159 (vqmovun_high_s32): Likewise.
31160 (vqmovun_high_s64): Likewise.
31161 * config/aarch64/iterators.md (UNSPEC_SQXTUN2): Define.
31163 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31165 * config/aarch64/aarch64-simd-builtins.def (bfdot_lane, bfdot_laneq): Use
31167 (bfmlalb_lane, bfmlalt_lane, bfmlalb_lane_q, bfmlalt_lane_q): Use FP flags.
31169 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31171 * config/aarch64/aarch64-simd-builtins.def (fcmla_lane0, fcmla_lane90,
31172 fcmla_lane180, fcmla_lane270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
31173 fcmlaq_lane270, scvtf, ucvtf, fcvtzs, fcvtzu, scvtfsi, scvtfdi, ucvtfsi,
31174 ucvtfdi, fcvtzshf, fcvtzuhf, fmlal_lane_low, fmlsl_lane_low,
31175 fmlal_laneq_low, fmlsl_laneq_low, fmlalq_lane_low, fmlslq_lane_low,
31176 fmlalq_laneq_low, fmlslq_laneq_low, fmlal_lane_high, fmlsl_lane_high,
31177 fmlal_laneq_high, fmlsl_laneq_high, fmlalq_lane_high, fmlslq_lane_high,
31178 fmlalq_laneq_high, fmlslq_laneq_high): Use FP flags.
31180 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31182 * config/aarch64/aarch64-builtins.c (FLAG_LOAD): Define.
31183 * config/aarch64/aarch64-simd-builtins.def (ld1x2, ld2, ld3, ld4, ld2r,
31184 ld3r, ld4r, ld1, ld1x3, ld1x4): Use LOAD flags.
31186 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31188 * config/aarch64/aarch64-simd-builtins.def (combine, zip1, zip2,
31189 uzp1, uzp2, trn1, trn2, simd_bsl): Use AUTO_FP flags.
31191 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31193 * config/aarch64/aarch64-simd-builtins.def (clrsb, clz, ctz, popcount,
31194 vec_smult_lane_, vec_smlal_lane_, vec_smult_laneq_, vec_smlal_laneq_,
31195 vec_umult_lane_, vec_umlal_lane_, vec_umult_laneq_, vec_umlal_laneq_,
31196 ashl, sshl, ushl, srshl, urshl, sdot_lane, udot_lane, sdot_laneq,
31197 udot_laneq, usdot_lane, usdot_laneq, sudot_lane, sudot_laneq, ashr,
31198 ashr_simd, lshr, lshr_simd, srshr_n, urshr_n, ssra_n, usra_n, srsra_n,
31199 ursra_n, sshll_n, ushll_n, sshll2_n, ushll2_n, ssri_n, usri_n, ssli_n,
31200 ssli_n, usli_n, bswap, rbit, simd_bsl, eor3q, rax1q, xarq, bcaxq): Use
31201 NONE builtin flags.
31203 2021-02-02 Jakub Jelinek <jakub@redhat.com>
31205 PR tree-optimization/98848
31206 * tree-vect-patterns.c (vect_recog_over_widening_pattern): Punt if
31207 STMT_VINFO_DEF_TYPE (last_stmt_info) is vect_reduction_def.
31209 2021-02-02 Kito Cheng <kito.cheng@sifive.com>
31212 * expr.c: Check mode before calling store_expr.
31214 2021-02-02 Christophe Lyon <christophe.lyon@linaro.org>
31216 * config/arm/iterators.md (supf): Remove VORNQ_S and VORNQ_U.
31218 * config/arm/mve.md (mve_vornq_s<mode>): New entry for vorn
31219 instruction using expression ior.
31220 (mve_vornq_u<mode>): New expander.
31221 (mve_vornq_f<mode>): Use ior code instead of unspec.
31222 * config/arm/unspecs.md (VORNQ_S, VORNQ_U, VORNQ_F): Remove.
31224 2021-02-02 Alexandre Oliva <oliva@adacore.com>
31226 * tree-nested.c (convert_nonlocal_reference_op): Move
31227 current_function_decl restore after re-gimplification.
31228 (convert_local_reference_op): Likewise.
31230 2021-02-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31232 * config/aarch64/aarch64-simd-builtins.def (rshrn, rshrn2):
31234 * config/aarch64/aarch64-simd.md (aarch64_rshrn<mode>_insn_le):
31236 (aarch64_rshrn<mode>_insn_be): Likewise.
31237 (aarch64_rshrn<mode>): Likewise.
31238 (aarch64_rshrn2<mode>_insn_le): Likewise.
31239 (aarch64_rshrn2<mode>_insn_be): Likewise.
31240 (aarch64_rshrn2<mode>): Likewise.
31241 * config/aarch64/aarch64.md (unspec): Add UNSPEC_RSHRN.
31242 * config/aarch64/arm_neon.h (vrshrn_high_n_s16): Reimplement
31244 (vrshrn_high_n_s32): Likewise.
31245 (vrshrn_high_n_s64): Likewise.
31246 (vrshrn_high_n_u16): Likewise.
31247 (vrshrn_high_n_u32): Likewise.
31248 (vrshrn_high_n_u64): Likewise.
31249 (vrshrn_n_s16): Likewise.
31250 (vrshrn_n_s32): Likewise.
31251 (vrshrn_n_s64): Likewise.
31252 (vrshrn_n_u16): Likewise.
31253 (vrshrn_n_u32): Likewise.
31254 (vrshrn_n_u64): Likewise.
31256 2021-02-01 Sergei Trofimovich <siarheit@google.com>
31258 PR tree-optimization/98499
31259 * ipa-modref.c (analyze_ssa_name_flags): treat RVO
31260 conservatively and assume all possible side-effects.
31262 2021-02-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31264 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi,
31265 vec_unpacku_hi_): Define builtins.
31266 * config/aarch64/arm_neon.h (vmovl_high_s8): Reimplement using
31268 (vmovl_high_s16): Likewise.
31269 (vmovl_high_s32): Likewise.
31270 (vmovl_high_u8): Likewise.
31271 (vmovl_high_u16): Likewise.
31272 (vmovl_high_u32): Likewise.
31274 2021-02-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31276 * config/aarch64/aarch64-simd-builtins.def (sabdl, uabdl):
31278 * config/aarch64/aarch64-simd.md (aarch64_<sur>abdl<mode>): New
31280 * config/aarch64/aarch64.md (unspec): Define UNSPEC_SABDL,
31282 * config/aarch64/arm_neon.h (vabdl_s8): Reimplemet using
31284 (vabdl_s16): Likewise.
31285 (vabdl_s32): Likewise.
31286 (vabdl_u8): Likewise.
31287 (vabdl_u16): Likewise.
31288 (vabdl_u32): Likewise.
31289 * config/aarch64/iterators.md (ABDL): New int iterator.
31290 (sur): Handle UNSPEC_SABDL, UNSPEC_UABDL.
31292 2021-02-01 Martin Sebor <msebor@redhat.com>
31294 * tree.h (BLOCK_VARS): Add comment.
31295 (BLOCK_SUBBLOCKS): Same.
31296 (BLOCK_SUPERCONTEXT): Same.
31297 (BLOCK_ABSTRACT_ORIGIN): Same.
31298 (inlined_function_outer_scope_p): Same.
31300 2021-02-01 Martin Sebor <msebor@redhat.com>
31302 PR middle-end/97172
31303 * attribs.c (attr_access::free_lang_data): Define new function.
31304 * attribs.h (attr_access::free_lang_data): Declare new function.
31306 2021-02-01 Richard Biener <rguenther@suse.de>
31308 * vec.h (auto_vec::auto_vec): Add memory stat parameters
31310 * bitmap.h (auto_bitmap::auto_bitmap): Likewise.
31312 2021-02-01 Tamar Christina <tamar.christina@arm.com>
31314 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_n<mode>,
31315 aarch64_<su>mlsl<mode>, aarch64_<su>mlsl_n<mode>): Flip mult operands.
31317 2021-02-01 Richard Biener <rguenther@suse.de>
31319 PR rtl-optimization/98863
31320 * config/i386/i386-features.c (convert_scalars_to_vector):
31321 Set DF_RD_PRUNE_DEAD_DEFS.
31323 2021-01-31 Eric Botcazou <ebotcazou@adacore.com>
31325 * system.h (SIZE_MAX): Define if not already defined.
31327 2021-01-30 Aaron Sawdey <acsawdey@linux.ibm.com>
31329 * config/rs6000/genfusion.pl (gen_2logical): New function to
31330 generate patterns for logical-logical fusion.
31331 * config/rs6000/fusion.md: Regenerated patterns.
31332 * config/rs6000/rs6000-cpus.def: Add
31333 OPTION_MASK_P10_FUSION_2LOGICAL.
31334 * config/rs6000/rs6000.c (rs6000_option_override_internal):
31335 Enable logical-logical fusion for p10.
31336 * config/rs6000/rs6000.opt: Add -mpower10-fusion-2logical.
31338 2021-01-30 David Edelsohn <dje.gcc@gmail.com>
31340 * config/rs6000/rs6000.opt: Add periods to new AIX options.
31342 2021-01-30 David Edelsohn <dje.gcc@gmail.com>
31344 * config/rs6000/rs6000.opt (mabi=vec-extabi): New.
31345 (mabi=vec-default): New.
31346 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
31347 __EXTABI__ for AIX Vector extended ABI.
31348 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print AIX Vector
31350 (conditional_register_usage): If AIX vec_extabi enabled, vs20-vs31
31352 * doc/invoke.texi (PowerPC mabi): Add AIX vec-extabi and vec-default.
31354 2021-01-30 Jakub Jelinek <jakub@redhat.com>
31356 * config/i386/i386-features.c (remove_partial_avx_dependency): Clear
31357 DF_DEFER_INSN_RESCAN after calling df_process_deferred_rescans.
31359 2021-01-29 Vladimir N. Makarov <vmakarov@redhat.com>
31362 * lra-constraints.c (in_class_p): Don't narrow class only for REG
31365 2021-01-29 Will Schmidt <will_schmidt@vnet.ibm.com>
31367 * config/rs6000/rs6000-call.c (rs6000_expand_binup_builtin): Add
31368 clauses for CODE_FOR_vsx_xvcvuxddp_scale and
31369 CODE_FOR_vsx_xvcvsxddp_scale to the parameter checking code.
31371 2021-01-29 Andrew MacLeod <amacleod@redhat.com>
31373 PR tree-optimization/98866
31374 * gimple-range-gori.h (gori_compute:set_range_invariant): New.
31375 * gimple-range-gori.cc (gori_map::set_range_invariant): New.
31376 (gori_map::m_maybe_invariant): Rename from all_outgoing.
31377 (gori_map::gori_map): Rename all_outgoing to m_maybe_invariant.
31378 (gori_map::is_export_p): Ditto.
31379 (gori_map::calculate_gori): Ditto.
31380 (gori_compute::set_range_invariant): New.
31381 * gimple-range.cc (gimple_ranger::range_of_stmt): Set range
31382 invariant for pointers evaluating to [1, +INF].
31384 2021-01-29 Richard Biener <rguenther@suse.de>
31386 PR rtl-optimization/98863
31387 * config/i386/i386-features.c (remove_partial_avx_dependency):
31388 Do not perform DF analysis.
31389 (pass_data_remove_partial_avx_dependency): Remove
31392 2021-01-29 Jonathan Wright <jonathan.wright@arm.com>
31394 * config/aarch64/aarch64-simd-builtins.def: Add [su]mull_n
31395 builtin generator macros.
31396 * config/aarch64/aarch64-simd.md (aarch64_<su>mull_n<mode>):
31398 * config/aarch64/arm_neon.h (vmull_n_s16): Use RTL builtin
31399 instead of inline asm.
31400 (vmull_n_s32): Likewise.
31401 (vmull_n_u16): Likewise.
31402 (vmull_n_u32): Likewise.
31404 2021-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31406 * config/aarch64/aarch64-simd-builtins.def (sabdl2, uabdl2):
31408 * config/aarch64/aarch64-simd.md (aarch64_<sur>abdl2<mode>_3):
31410 (aarch64_<sur>abdl2<mode>): ... This.
31411 (<sur>sadv16qi): Adjust use of above.
31412 * config/aarch64/arm_neon.h (vabdl_high_s8): Reimplement using
31414 (vabdl_high_s16): Likewise.
31415 (vabdl_high_s32): Likewise.
31416 (vabdl_high_u8): Likewise.
31417 (vabdl_high_u16): Likewise.
31418 (vabdl_high_u32): Likewise.
31420 2021-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31422 * config/aarch64/aarch64-simd-builtins.def (sabal2): Define
31424 (uabal2): Likewise.
31425 * config/aarch64/aarch64-simd.md (aarch64_<sur>abal2<mode>): New
31427 * config/aarch64/aarch64.md (unspec): Add UNSPEC_SABAL2 and
31429 * config/aarch64/arm_neon.h (vabal_high_s8): Reimplement using
31431 (vabal_high_s16): Likewise.
31432 (vabal_high_s32): Likewise.
31433 (vabal_high_u8): Likewise.
31434 (vabal_high_u16): Likewise.
31435 (vabal_high_u32): Likewise.
31436 * config/aarch64/iterators.md (ABAL2): New mode iterator.
31437 (sur): Handle UNSPEC_SABAL2, UNSPEC_UABAL2.
31439 2021-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31441 * config/aarch64/aarch64-simd-builtins.def (sabal): Define
31444 * config/aarch64/aarch64-simd.md (aarch64_<sur>abal<mode>_4):
31446 (aarch64_<sur>abal<mode>): ... This
31447 (<sur>sadv16qi): Adust use of the above.
31448 * config/aarch64/arm_neon.h (vabal_s8): Reimplement using
31450 (vabal_s16): Likewise.
31451 (vabal_s32): Likewise.
31452 (vabal_u8): Likewise.
31453 (vabal_u16): Likewise.
31454 (vabal_u32): Likewise.
31456 2021-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31458 * config/aarch64/aarch64-simd-builtins.def (saddlv, uaddlv):
31460 * config/aarch64/aarch64-simd.md (aarch64_<su>addlv<mode>):
31462 * config/aarch64/arm_neon.h (vaddlv_s8): Reimplement using
31464 (vaddlv_s16): Likewise.
31465 (vaddlv_u8): Likewise.
31466 (vaddlv_u16): Likewise.
31467 (vaddlvq_s8): Likewise.
31468 (vaddlvq_s16): Likewise.
31469 (vaddlvq_s32): Likewise.
31470 (vaddlvq_u8): Likewise.
31471 (vaddlvq_u16): Likewise.
31472 (vaddlvq_u32): Likewise.
31473 (vaddlv_s32): Likewise.
31474 (vaddlv_u32): Likewise.
31475 * config/aarch64/iterators.md (VDQV_L): New mode iterator.
31476 (unspec): Add UNSPEC_SADDLV, UNSPEC_UADDLV.
31477 (Vwstype): New mode attribute.
31479 (VWIDE_S): Likewise.
31480 (USADDLV): New int iterator.
31481 (su): Handle UNSPEC_SADDLV, UNSPEC_UADDLV.
31483 2021-01-29 Jonathan Wright <jonathan.wright@arm.com>
31485 * config/aarch64/aarch64-simd-builtins.def: Add [su]mlsl_lane[q]
31486 builtin generator macros.
31487 * config/aarch64/aarch64-simd.md (aarch64_vec_<su>mlsl_lane<Qlane>):
31489 * config/aarch64/arm_neon.h (vmlsl_lane_s16): Use RTL builtin
31490 instead of inline asm.
31491 (vmlsl_lane_s32): Likewise.
31492 (vmlsl_lane_u16): Likewise.
31493 (vmlsl_lane_u32): Likewise.
31494 (vmlsl_laneq_s16): Likewise.
31495 (vmlsl_laneq_s32): Likewise.
31496 (vmlsl_laneq_u16): Likewise.
31497 (vmlsl_laneq_u32): Likewise.
31499 2021-01-29 Richard Biener <rguenther@suse.de>
31501 * doc/invoke.texi (--param max-gcse-memory): Document unit
31503 * gcse.c (gcse_or_cprop_is_too_expensive): Adjust.
31504 * params.opt (--param max-gcse-memory): Adjust default and
31505 document unit of size.
31507 2021-01-29 Richard Biener <rguenther@suse.de>
31509 PR rtl-optimization/98863
31510 * gcse.c (gcse_or_cprop_is_too_expensive): Use unsigned
31511 HOST_WIDE_INT for the memory estimate.
31513 2021-01-29 Bin Cheng <bin.cheng@linux.alibaba.com>
31514 Richard Biener <rguenther@suse.de>
31516 PR tree-optimization/97627
31517 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions):
31518 Do not analyze fake edges.
31520 2021-01-29 Richard Biener <rguenther@suse.de>
31522 PR rtl-optimization/98144
31523 * df.h (df_mir_bb_info): Add con_visited member.
31524 * df-problems.c (df_mir_alloc): Initialize con_visited,
31525 do not fully populate IN and OUT.
31526 (df_mir_reset): Likewise.
31527 (df_mir_confluence_0): Set con_visited.
31528 (df_mir_confluence_n): Properly handle implicitely
31529 fully populated IN and OUT as designated by con_visited
31530 and update con_visited accordingly.
31532 2021-01-29 Jakub Jelinek <jakub@redhat.com>
31535 * config/arm/vec-common.md (mve_vshlq_<supf><mode>,
31536 vashl<mode>3, vashr<mode>3, vlshr<mode>3): Add
31537 && !TARGET_REALLY_IWMMXT to conditions.
31539 2021-01-29 Jakub Jelinek <jakub@redhat.com>
31542 * cfgbuild.c (find_bb_boundaries): Reset debug_insn when seeing
31545 2021-01-28 Marek Polacek <polacek@redhat.com>
31548 * stor-layout.c (finalize_type_size): If we reset TYPE_USER_ALIGN in
31549 the main variant, maybe reset it in its variants too.
31550 * tree.c (check_base_type): Return true only if TYPE_USER_ALIGN match.
31551 (check_aligned_type): Check if TYPE_USER_ALIGN match.
31553 2021-01-28 Christophe Lyon <christophe.lyon@linaro.org>
31556 * config/arm/arm.c (arm_rtx_costs_internal): Adjust cost of vector
31557 of constant zero for comparisons.
31559 2021-01-28 Michael Meissner <meissner@linux.ibm.com>
31561 * config/rs6000/rs6000.c (rs6000_mangle_decl_assembler_name): Add
31562 support for mapping built-in function names for long double
31563 built-in functions if long double is IEEE 128-bit.
31565 2021-01-28 Jonathan Wright <jonathan.wright@arm.com>
31567 * config/aarch64/aarch64-simd-builtins.def: Add [su]mlsl_n
31568 builtin generator macros.
31569 * config/aarch64/aarch64-simd.md (aarch64_<su>mlsl_n<mode>):
31571 * config/aarch64/arm_neon.h (vmlsl_n_s16): Use RTL builtin
31572 instead of inline asm.
31573 (vmlsl_n_s32): Likewise.
31574 (vmlsl_n_u16): Likewise.
31575 (vmlsl_n_u32): Likewise.
31577 2021-01-28 Jonathan Wright <jonathan.wright@arm.com>
31579 * config/aarch64/aarch64-simd-builtins.def: Add [su]mlal_n
31580 builtin generator macros.
31581 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_n<mode>):
31583 * config/aarch64/arm_neon.h (vmlal_n_s16): Use RTL builtin
31584 instead of inline asm.
31585 (vmlal_n_s32): Likewise.
31586 (vmlal_n_u16): Likewise.
31587 (vmlal_n_u32): Likewise.
31589 2021-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31591 * config/aarch64/aarch64-simd-builtins.def (shrn2): Define
31593 * config/aarch64/aarch64-simd.md (aarch64_shrn2<mode>_insn_le):
31595 (aarch64_shrn2<mode>_insn_be): Likewise.
31596 (aarch64_shrn2<mode>): Likewise.
31597 * config/aarch64/arm_neon.h (vshrn_high_n_s16): Reimlplement
31599 (vshrn_high_n_s32): Likewise.
31600 (vshrn_high_n_s64): Likewise.
31601 (vshrn_high_n_u16): Likewise.
31602 (vshrn_high_n_u32): Likewise.
31603 (vshrn_high_n_u64): Likewise.
31605 2021-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31607 * config/aarch64/aarch64-simd-builtins.def (shrn): Define
31609 * config/aarch64/aarch64-simd.md (aarch64_shrn<mode>_insn_le):
31611 (aarch64_shrn<mode>_insn_be): Likewise.
31612 (aarch64_shrn<mode>): Likewise.
31613 * config/aarch64/arm_neon.h (vshrn_n_s16): Reimplement using
31615 (vshrn_n_s32): Likewise.
31616 (vshrn_n_s64): Likewise.
31617 (vshrn_n_u16): Likewise.
31618 (vshrn_n_u32): Likewise.
31619 (vshrn_n_u64): Likewise.
31620 * config/aarch64/iterators.md (vn_mode): New mode attribute.
31622 2021-01-28 Richard Biener <rguenther@suse.de>
31624 PR rtl-optimization/80960
31625 * dse.c (check_mem_read_rtx): Call get_addr on the
31628 2021-01-28 Xionghu Luo <luoxhu@linux.ibm.com>
31629 David Edelsohn <dje.gcc@gmail.com>
31632 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
31633 Don't generate VIEW_CONVERT_EXPR for fcode ALTIVEC_BUILTIN_VEC_INSERT
31635 * config/rs6000/rs6000-protos.h (rs6000_expand_vector_set_var):
31637 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Remove the
31638 wrapper call rs6000_expand_vector_set_var for cleanup. Call
31639 rs6000_expand_vector_set_var_p9 and rs6000_expand_vector_set_var_p8
31641 (rs6000_expand_vector_set_var): Delete.
31642 (rs6000_expand_vector_set_var_p9): Make static.
31643 (rs6000_expand_vector_set_var_p8): Make static.
31645 2021-01-28 Xing GUO <higuoxing@gmail.com>
31647 * common/config/riscv/riscv-common.c
31648 (riscv_subset_list::parsing_subset_version): Fix -march option parsing
31649 when `p` extension exists.
31651 2021-01-27 Vladimir N. Makarov <vmakarov@redhat.com>
31653 PR rtl-optimization/97684
31654 * ira.c (ira): Call ira_set_pseudo_classes before
31655 update_equiv_regs when it is necessary.
31657 2021-01-27 Jakub Jelinek <jakub@redhat.com>
31660 * config/aarch64/aarch64.md (*aarch64_bfxilsi_uxtw): Use
31661 %w0, %w1 and %2 instead of %0, %1 and %2.
31663 2021-01-27 Aaron Sawdey <acsawdey@linux.ibm.com>
31665 * config/rs6000/genfusion.pl: New script to generate
31666 define_insn_and_split patterns so combine can arrange fused
31667 instructions next to each other.
31668 * config/rs6000/fusion.md: New file, generated fused instruction
31669 patterns for combine.
31670 * config/rs6000/predicates.md (const_m1_to_1_operand): New predicate.
31671 (non_update_memory_operand): New predicate.
31672 * config/rs6000/rs6000-cpus.def: Add OPTION_MASK_P10_FUSION and
31673 OPTION_MASK_P10_FUSION_LD_CMPI to ISA_3_1_MASKS_SERVER and
31675 * config/rs6000/rs6000-protos.h (address_is_non_pfx_d_or_x): Add
31677 * config/rs6000/rs6000.c (rs6000_option_override_internal):
31678 Automatically set OPTION_MASK_P10_FUSION and
31679 OPTION_MASK_P10_FUSION_LD_CMPI if target is power10.
31680 (rs600_opt_masks): Allow -mpower10-fusion
31681 in function attributes.
31682 (address_is_non_pfx_d_or_x): New function.
31683 * config/rs6000/rs6000.h: Add MASK_P10_FUSION.
31684 * config/rs6000/rs6000.md: Include fusion.md.
31685 * config/rs6000/rs6000.opt: Add -mpower10-fusion
31686 and -mpower10-fusion-ld-cmpi.
31687 * config/rs6000/t-rs6000: Add dependencies involving fusion.md.
31689 2021-01-27 Jonathan Wright <jonathan.wright@arm.com>
31691 * config/aarch64/aarch64-simd-builtins.def: Add [su]mlal
31692 builtin generator macros.
31693 * config/aarch64/aarch64-simd.md (*aarch64_<su>mlal<mode>):
31695 (aarch64_<su>mlal<mode>): This.
31696 * config/aarch64/arm_neon.h (vmlal_s8): Use RTL builtin
31697 instead of inline asm.
31698 (vmlal_s16): Likewise.
31699 (vmlal_s32): Likewise.
31700 (vmlal_u8): Likewise.
31701 (vmlal_u16): Likewise.
31702 (vmlal_u32): Likewise.
31704 2021-01-27 Richard Biener <rguenther@suse.de>
31706 PR tree-optimization/98854
31707 * tree-vect-slp.c (vect_build_slp_tree_2): Also build
31708 PHIs from scalars when the number of CTORs matches the
31709 number of children.
31711 2021-01-27 Jonathan Wright <jonathan.wright@arm.com>
31713 * config/aarch64/aarch64-simd-builtins.def: Add mls_n builtin
31715 * config/aarch64/aarch64-simd.md (*aarch64_mls_elt_merge<mode>):
31717 (aarch64_mls_n<mode>): This.
31718 * config/aarch64/arm_neon.h (vmls_n_s16): Use RTL builtin
31720 (vmls_n_s32): Likewise.
31721 (vmls_n_u16): Likewise.
31722 (vmls_n_u32): Likewise.
31723 (vmlsq_n_s16): Likewise.
31724 (vmlsq_n_s32): Likewise.
31725 (vmlsq_n_u16): Likewise.
31726 (vmlsq_n_u32): Likewise.
31728 2021-01-27 Jonathan Wright <jonathan.wright@arm.com>
31730 * config/aarch64/aarch64-simd-builtins.def: Add mls builtin
31732 * config/aarch64/arm_neon.h (vmls_s8): Use RTL builtin rather
31734 (vmls_s16): Likewise.
31735 (vmls_s32): Likewise.
31736 (vmls_u8): Likewise.
31737 (vmls_u16): Likewise.
31738 (vmls_u32): Likewise.
31739 (vmlsq_s8): Likewise.
31740 (vmlsq_s16): Likewise.
31741 (vmlsq_s32): Likewise.
31742 (vmlsq_u8): Likewise.
31743 (vmlsq_u16): Likewise.
31744 (vmlsq_u32): Likewise.
31746 2021-01-27 Jonathan Wright <jonathan.wright@arm.com>
31748 * config/aarch64/aarch64-simd-builtins.def: Add mla_n builtin
31750 * config/aarch64/aarch64-simd.md (*aarch64_mla_elt_merge<mode>):
31752 (aarch64_mla_n<mode>): This.
31753 * config/aarch64/arm_neon.h (vmla_n_s16): Use RTL builtin
31755 (vmla_n_s32): Likewise.
31756 (vmla_n_u16): Likewise.
31757 (vmla_n_u32): Likewise.
31758 (vmlaq_n_s16): Likewise.
31759 (vmlaq_n_s32): Likewise.
31760 (vmlaq_n_u16): Likewise.
31761 (vmlaq_n_u32): Likewise.
31763 2021-01-27 liuhongt <hongtao.liu@intel.com>
31766 * config/i386/sse.md (sse2_gt<mode>3): Drop !TARGET_XOP in condition.
31767 (*sse2_eq<mode>3): Ditto.
31769 2021-01-27 Jakub Jelinek <jakub@redhat.com>
31771 * tree-pass.h (PROP_trees): Rename to ...
31772 (PROP_gimple): ... this.
31773 * cfgexpand.c (pass_data_expand): Replace PROP_trees with PROP_gimple.
31774 * passes.c (execute_function_dump, execute_function_todo,
31775 execute_one_ipa_transform_pass, execute_one_pass): Likewise.
31776 * varpool.c (ctor_for_folding): Likewise.
31778 2021-01-27 Jakub Jelinek <jakub@redhat.com>
31780 PR tree-optimization/97260
31781 * varpool.c: Include tree-pass.h.
31782 (ctor_for_folding): In GENERIC return DECL_INITIAL for TREE_READONLY
31783 non-TREE_SIDE_EFFECTS automatic variables.
31785 2021-01-26 Paul Fee <paul.f.fee@gmail.com>
31787 * doc/cpp.texi (__cplusplus): Document value for -std=c++23
31789 * doc/invoke.texi: Document -std=c++23 and -std=gnu++23.
31790 * dwarf2out.c (highest_c_language): Recognise C++20 and C++23.
31791 (gen_compile_unit_die): Recognise C++23.
31793 2021-01-26 Jakub Jelinek <jakub@redhat.com>
31796 * dwarf2asm.c (dw2_assemble_integer): Cast DWARF2_ADDR_SIZE to int
31799 2021-01-26 Jakub Jelinek <jakub@redhat.com>
31802 * config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
31803 Use UINTVAL (shft_amnt) and UINTVAL (mask) instead of INTVAL (shft_amnt)
31804 and INTVAL (mask). Add && INTVAL (mask) > 0 condition.
31806 2021-01-26 Richard Biener <rguenther@suse.de>
31808 * gimple-pretty-print.c (dump_binary_rhs): Handle
31809 VEC_WIDEN_{PLUS,MINUS}_{LO,HI}_EXPR.
31811 2021-01-26 Richard Biener <rguenther@suse.de>
31813 PR middle-end/98726
31814 * tree.h (vector_cst_int_elt): Remove.
31815 * tree.c (vector_cst_int_elt): Use poly_wide_int for computations,
31818 2021-01-26 Andrew Stubbs <ams@codesourcery.com>
31820 * config/gcn/gcn.c (gcn_expand_reduc_scalar): Use move instructions
31821 for V64DFmode min/max reductions.
31823 2021-01-26 Jakub Jelinek <jakub@redhat.com>
31825 * dwarf2asm.c (dw2_assemble_integer): Handle size twice as large
31826 as DWARF2_ADDR_SIZE if x is not a scalar int by emitting it as
31827 two halves, one with x and the other with const0_rtx, ordered
31828 depending on endianity.
31830 2021-01-26 Alexandre Oliva <oliva@adacore.com>
31832 * gimplify.c (gimplify_decl_expr): Skip asan marking calls for
31833 temporaries not seen in binding block, and not about to be
31834 added as gimple variables.
31836 2021-01-25 Martin Sebor <msebor@redhat.com>
31839 * tree-ssa-ccp.c (pass_post_ipa_warn::execute): Adjust warning text.
31841 2021-01-25 Martin Liska <mliska@suse.cz>
31843 * value-prof.c (get_nth_most_common_value): Use %s instead
31846 2021-01-25 Jakub Jelinek <jakub@redhat.com>
31849 * configure.ac (HAVE_AS_GDWARF_5_DEBUG_FLAG): Only define if
31850 readelf -wi is able to read the emitted .debug_info back.
31851 * configure: Regenerated.
31853 2021-01-25 Martin Liska <mliska@suse.cz>
31855 PR gcov-profile/98739
31856 * common.opt: Add missing sign symbol.
31857 * value-prof.c (get_nth_most_common_value): Restore handling
31858 of PROFILE_REPRODUCIBILITY_PARALLEL_RUNS and
31859 PROFILE_REPRODUCIBILITY_MULTITHREADED.
31861 2021-01-25 Richard Biener <rguenther@suse.de>
31863 PR middle-end/98807
31864 * tree.c (vector_element_bits): Always use precision of
31865 the element type for boolean vectors.
31867 2021-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
31869 * config/rtems.h (STARTFILE_SPEC): Remove qnolinkcmds.
31870 (ENDFILE_SPEC): Evaluate qnolinkcmds.
31872 2021-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
31874 * config/rtems.h (STARTFILE_SPEC): Remove nostdlib and
31875 nostartfiles handling since this is already done by
31876 LINK_COMMAND_SPEC. Evaluate qnolinkcmds.
31877 (ENDFILE_SPEC): Remove nostdlib and nostartfiles handling since this
31878 is already done by LINK_COMMAND_SPEC.
31879 (LIB_SPECS): Remove nostdlib and nodefaultlibs handling since
31880 this is already done by LINK_COMMAND_SPEC. Remove qnolinkcmds
31883 2021-01-25 Jakub Jelinek <jakub@redhat.com>
31886 * fold-const-call.c (host_size_t_cst_p): Renamed to ...
31887 (size_t_cst_p): ... this. Check and store unsigned HOST_WIDE_INT
31888 value rather than host size_t.
31889 (fold_const_call): Change type of s2 from size_t to
31890 unsigned HOST_WIDE_INT. Use size_t_cst_p instead of
31891 host_size_t_cst_p. For strncmp calls, pass MIN (s2, SIZE_MAX)
31892 instead of s2 as last argument.
31894 2021-01-25 Tamar Christina <tamar.christina@arm.com>
31896 * config/arm/iterators.md (rotsplit1, rotsplit2, conj_op, fcmac1,
31897 VCMLA_OP, VCMUL_OP): New.
31898 * config/arm/mve.md (mve_vcmlaq<mve_rot><mode>): Support vec_dup 0.
31899 * config/arm/neon.md (cmul<conj_op><mode>3): New.
31900 * config/arm/unspecs.md (UNSPEC_VCMLA_CONJ, UNSPEC_VCMLA180_CONJ,
31901 UNSPEC_VCMUL_CONJ): New.
31902 * config/arm/vec-common.md (cmul<conj_op><mode>3, arm_vcmla<rot><mode>,
31903 cml<fcmac1><conj_op><mode>4): New.
31905 2021-01-23 Jakub Jelinek <jakub@redhat.com>
31908 * config/rs6000/mmintrin.h (__m64): Add __may_alias__ attribute.
31910 2021-01-22 Jonathan Wright <jonathan.wright@arm.com>
31912 * config/aarch64/aarch64-simd-builtins.def: Add mla builtin
31914 * config/aarch64/arm_neon.h (vmla_s8): Use RTL builtin rather
31916 (vmla_s16): Likewise.
31917 (vmla_s32): Likewise.
31918 (vmla_u8): Likewise.
31919 (vmla_u16): Likewise.
31920 (vmla_u32): Likewise.
31921 (vmlaq_s8): Likewise.
31922 (vmlaq_s16): Likewise.
31923 (vmlaq_s32): Likewise.
31924 (vmlaq_u8): Likewise.
31925 (vmlaq_u16): Likewise.
31926 (vmlaq_u32): Likewise.
31928 2021-01-22 David Malcolm <dmalcolm@redhat.com>
31930 * doc/invoke.texi (GCC_EXTRA_DIAGNOSTIC_OUTPUT): Add @findex
31933 2021-01-22 Jakub Jelinek <jakub@redhat.com>
31936 * dwarf2out.c (output_file_names): For -gdwarf-5, if there are no
31937 filenames to emit, still emit the required 0 index directory and
31938 filename entries that match DW_AT_comp_dir and DW_AT_name of the
31941 2021-01-22 Marek Polacek <polacek@redhat.com>
31944 * doc/invoke.texi: Update C++ ABI Version 15 description.
31946 2021-01-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31948 PR tree-optimization/98766
31949 * tree-ssa-math-opts.c (convert_mult_to_fma): Use maybe_le when
31950 comparing against type size with param_avoid_fma_max_bits.
31952 2021-01-22 Richard Biener <rguenther@suse.de>
31954 PR middle-end/98793
31955 * tree.c (vector_element_bits): Key single-bit bool vector on
31956 integer mode rather than not vector mode.
31958 2021-01-22 Xionghu Luo <luoxhu@linux.ibm.com>
31961 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
31962 Generate ARRAY_REF(VIEW_CONVERT_EXPR) for P8 and later
31964 * config/rs6000/rs6000.c (rs6000_expand_vector_set_var): Update
31965 to call different path for P8 and P9.
31966 (rs6000_expand_vector_set_var_p9): New function.
31967 (rs6000_expand_vector_set_var_p8): New function.
31969 2021-01-22 Xionghu Luo <luoxhu@linux.ibm.com>
31973 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
31974 Ajdust variable index vec_insert from address dereference to
31975 ARRAY_REF(VIEW_CONVERT_EXPR) tree expression.
31976 * config/rs6000/rs6000-protos.h (rs6000_expand_vector_set_var):
31978 * config/rs6000/rs6000.c (rs6000_expand_vector_set_var): New function.
31980 2021-01-22 Martin Liska <mliska@suse.cz>
31982 PR gcov-profile/98739
31983 * profile.c (compute_value_histograms): Drop time profile for
31984 -fprofile-reproducible=multithreaded.
31986 2021-01-22 Nathan Sidwell <nathan@acm.org>
31988 * gcc.c (process_command): Don't check OPT_SPECIAL_input_file
31991 2021-01-22 Richard Biener <rguenther@suse.de>
31993 PR middle-end/98773
31994 * tree-data-ref.c (initalize_matrix_A): Revert previous
31995 change, retaining failing on HOST_WIDE_INT_MIN CHREC_RIGHT.
31997 2021-01-22 Jakub Jelinek <jakub@redhat.com>
31999 PR tree-optimization/90248
32000 * match.pd (X cmp 0.0 ? 1.0 : -1.0 -> copysign(1, +-X),
32001 X cmp 0.0 ? -1.0 : +1.0 -> copysign(1, -+X)): Remove
32003 (X * (X cmp 0.0 ? 1.0 : -1.0) -> +-abs(X),
32004 X * (X cmp 0.0 ? -1.0 : 1.0) -> +-abs(X)): New simplifications.
32006 2021-01-22 Jakub Jelinek <jakub@redhat.com>
32008 PR tree-optimization/98255
32009 * tree-dfa.c (get_ref_base_and_extent): For ARRAY_REFs, sign
32010 extend index - low_bound from sizetype's precision rather than index
32012 (get_addr_base_and_unit_offset_1): Likewise.
32013 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Likewise.
32014 * gimple-fold.c (fold_const_aggregate_ref_1): Likewise.
32016 2021-01-22 Richard Biener <rguenther@suse.de>
32018 PR tree-optimization/98786
32019 * tree-ssa-phiopt.c (factor_out_conditional_conversion): Avoid
32020 adding new uses of abnormals. Verify we deal with a conditional
32023 2021-01-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
32026 * optc-save-gen.awk: Add arm_fp16_format to checked_options.
32028 2021-01-22 liuhongt <hongtao.liu@intel.com>
32032 * config/i386/sse.md (VI_128_256): New mode iterator.
32033 (*avx_cmp<mode>3_1, *avx_cmp<mode>3_2, *avx_cmp<mode>3_3,
32034 *avx_cmp<mode>3_4, *avx2_eq<mode>3, *avx2_pcmp<mode>3_1,
32035 *avx2_pcmp<mode>3_2, *avx2_gt<mode>3): New
32036 define_insn_and_split to lower avx512 vector comparison to avx
32037 version when dest is vector.
32038 (*<avx512>_cmp<mode>3,*<avx512>_cmp<mode>3,*<avx512>_ucmp<mode>3):
32039 define_insn_and_split for negating the comparison result.
32040 * config/i386/predicates.md (float_vector_all_ones_operand):
32042 * config/i386/i386-expand.c (ix86_expand_sse_movcc): Use
32043 general NOT operator without UNSPEC_MASKOP.
32045 2021-01-21 Vladimir N. Makarov <vmakarov@redhat.com>
32047 PR rtl-optimization/98777
32048 * lra-int.h (lra_pmode_pseudo): New extern.
32049 * lra.c (lra_pmode_pseudo): New global.
32051 * lra-eliminations.c (eliminate_regs_in_insn): Use it.
32053 2021-01-21 Ilya Leoshkevich <iii@linux.ibm.com>
32055 * fwprop.c (fwprop_propagation::classify_result): Allow
32056 (subreg (mem)) simplifications.
32058 2021-01-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32060 * config/aarch64/aarch64-simd.md (aarch64_sqdml<SBINQOPS:as>l<mode>):
32062 (aarch64_sqdmlal<mode>): ... This...
32063 (aarch64_sqdmlsl<mode>): ... And this.
32064 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>): Split into...
32065 (aarch64_sqdmlal_lane<mode>): ... This...
32066 (aarch64_sqdmlsl_lane<mode>): ... And this.
32067 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>): Split into...
32068 (aarch64_sqdmlsl_laneq<mode>): ... This...
32069 (aarch64_sqdmlal_laneq<mode>): ... And this.
32070 (aarch64_sqdml<SBINQOPS:as>l_n<mode>): Split into...
32071 (aarch64_sqdmlsl_n<mode>): ... This...
32072 (aarch64_sqdmlal_n<mode>): ... And this.
32073 (aarch64_sqdml<SBINQOPS:as>l2<mode>_internal): Split into...
32074 (aarch64_sqdmlal2<mode>_internal): ... This...
32075 (aarch64_sqdmlsl2<mode>_internal): ... And this.
32077 2021-01-21 Christophe Lyon <christophe.lyon@linaro.org>
32079 * config/arm/arm_mve.h (__arm_vcmpneq_s8): Fix return type.
32081 2021-01-21 Andrea Corallo <andrea.corallo@arm.com>
32084 * doc/sourcebuild.texi (arm_thumb2_no_arm_v8_1_lob): Document.
32086 2021-01-21 liuhongt <hongtao.liu@intel.com>
32088 PR rtl-optimization/98694
32089 * regcprop.c (copy_value): If SRC had been assigned a mode
32090 narrower than the copy, we can't link DEST into the chain even
32091 they have same hard_regno_nregs(i.e. HImode/SImode in i386
32094 2021-01-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32096 * config/aarch64/aarch64-simd.md (aarch64_get_lane<mode>):
32097 Convert to define_insn_and_split. Split into simple move when moving
32100 2021-01-20 Segher Boessenkool <segher@kernel.crashing.org>
32102 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Change assert.
32103 Adjust comment. Simplify code.
32105 2021-01-20 Jakub Jelinek <jakub@redhat.com>
32108 * dwarf2out.c (reset_indirect_string): Also reset indirect strings
32109 with DW_FORM_line_strp form.
32110 (prune_unused_types_update_strings): Don't add into debug_str_hash
32111 indirect strings with DW_FORM_line_strp form.
32112 (adjust_name_comp_dir): New function.
32113 (dwarf2out_finish): Call it on CU DIEs after resetting
32114 debug_line_str_hash.
32116 2021-01-20 Vladimir N. Makarov <vmakarov@redhat.com>
32118 PR rtl-optimization/98722
32119 * lra-eliminations.c (eliminate_regs_in_insn): Check that target
32120 has no 3-op add insn to transform insns containing two pluses.
32122 2021-01-20 Richard Biener <rguenther@suse.de>
32124 * hwint.h (add_hwi): New function.
32125 (mul_hwi): Likewise.
32126 * tree-data-ref.c (initialize_matrix_A): Properly translate
32127 tree constants and avoid HOST_WIDE_INT_MIN.
32128 (lambda_matrix_row_add): Avoid undefined integer overflow
32129 and return true on such overflow.
32130 (lambda_matrix_right_hermite): Handle overflow from
32131 lambda_matrix_row_add gracefully. Simplify previous fix.
32132 (analyze_subscript_affine_affine): Likewise.
32134 2021-01-20 Eugene Rozenfeld <erozen@microsoft.com>
32136 PR tree-optimization/96674
32137 * match.pd: New patterns: x < y || y == XXX_MIN --> x <= y - 1
32138 x >= y && y != XXX_MIN --> x > y - 1
32140 2021-01-20 Richard Sandiford <richard.sandiford@arm.com>
32142 PR tree-optimization/98535
32143 * tree-vect-slp.c (duplicate_and_interleave): Use quick_grow_cleared.
32144 If the high and low permutes are the same, remove the high permutes
32145 from the working set and only continue with the low ones.
32147 2021-01-20 Jakub Jelinek <jakub@redhat.com>
32149 PR tree-optimization/98721
32150 * builtins.c (access_ref::inform_access): Don't assume
32151 SSA_NAME_IDENTIFIER must be non-NULL. Print messages about
32152 object whenever allocfn is NULL, rather than only when DECL_P
32153 is true. Use %qE instead of %qD for that. Formatting fixes.
32155 2021-01-20 Richard Biener <rguenther@suse.de>
32157 PR tree-optimization/98758
32158 * tree-data-ref.c (int_divides_p): Use lambda_int arguments.
32159 (lambda_matrix_right_hermite): Avoid undefinedness with
32160 signed integer abs and multiplication.
32161 (analyze_subscript_affine_affine): Use lambda_int.
32163 2021-01-20 David Malcolm <dmalcolm@redhat.com>
32166 * dwarf2out.c (output_line_info): Rename static variable
32167 "generation", moving it out of the function to...
32168 (output_line_info_generation): New.
32169 (init_sections_and_labels): Likewise, renaming the variable to...
32170 (init_sections_and_labels_generation): New.
32171 (dwarf2out_c_finalize): Reset the new variables.
32173 2021-01-19 Martin Sebor <msebor@redhat.com>
32175 PR middle-end/98664
32176 * tree-ssa-live.c (remove_unused_scope_block_p): Keep scopes for
32177 all functions, even if they're not declared artificial or inline.
32178 * tree.c (tree_inlined_location): Use macro expansion location
32179 only if scope traversal fails to expose one.
32181 2021-01-19 Richard Sandiford <richard.sandiford@arm.com>
32183 PR rtl-optimization/92294
32184 * alias.c (compare_base_symbol_refs): Take an extra parameter
32185 and add the distance between two symbols to it. Enshrine in
32186 comments that -1 means "either 0 or 1, but we can't tell
32187 which at compile time".
32188 (memrefs_conflict_p): Update call accordingly.
32189 (rtx_equal_for_memref_p): Likewise. Take the distance between symbols
32192 2021-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32194 * config/aarch64/aarch64-simd-builtins.def (sqshl, uqshl,
32195 sqrshl, uqrshl, sqadd, uqadd, sqsub, uqsub, suqadd, usqadd, sqmovn,
32196 uqmovn, sqxtn2, uqxtn2, sqabs, sqneg, sqdmlal, sqdmlsl, sqdmlal_lane,
32197 sqdmlsl_lane, sqdmlal_laneq, sqdmlsl_laneq, sqdmlal_n, sqdmlsl_n,
32198 sqdmlal2, sqdmlsl2, sqdmlal2_lane, sqdmlsl2_lane, sqdmlal2_laneq,
32199 sqdmlsl2_laneq, sqdmlal2_n, sqdmlsl2_n, sqdmull, sqdmull_lane,
32200 sqdmull_laneq, sqdmull_n, sqdmull2, sqdmull2_lane, sqdmull2_laneq,
32201 sqdmull2_n, sqdmulh, sqrdmulh, sqdmulh_lane, sqdmulh_laneq,
32202 sqrdmulh_lane, sqrdmulh_laneq, sqshrun_n, sqrshrun_n, sqshrn_n,
32203 uqshrn_n, sqrshrn_n, uqrshrn_n, sqshlu_n, sqshl_n, uqshl_n, sqrdmlah,
32204 sqrdmlsh, sqrdmlah_lane, sqrdmlsh_lane, sqrdmlah_laneq, sqrdmlsh_laneq,
32205 sqmovun): Use NONE flags.
32207 2021-01-19 Richard Biener <rguenther@suse.de>
32210 * ipa-modref.c (analyze_stmt): Only record a summary for a
32213 2021-01-19 Richard Biener <rguenther@suse.de>
32215 PR middle-end/98638
32216 * tree-ssanames.c (fini_ssanames): Zero SSA_NAME_DEF_STMT.
32218 2021-01-19 Daniel Hellstrom <daniel@gaisler.com>
32220 * config/sparc/rtemself.h (TARGET_OS_CPP_BUILTINS): Add
32221 built-in define __FIX_LEON3FT_TN0018.
32223 2021-01-19 Richard Biener <rguenther@suse.de>
32226 * tree-inline.c (tree_function_versioning): Set input_location
32227 to UNKNOWN_LOCATION throughout the function.
32229 2021-01-19 Tobias Burnus <tobias@codesourcery.com>
32232 * omp-low.c (lower_omp_target): Handle nonpointer is_device_ptr.
32234 2021-01-19 Martin Jambor <mjambor@suse.cz>
32237 * ipa-sra.c (ssa_name_only_returned_p): New parameter fun. Check
32238 whether non-call exceptions allow removal of a statement.
32239 (isra_analyze_call): Pass the appropriate function to
32240 ssa_name_only_returned_p.
32242 2021-01-19 Geng Qi <gengqi@linux.alibaba.com>
32244 * config/riscv/arch-canonicalize (longext_sort): New function for
32245 sorting 'multi-letter'.
32246 * config/riscv/multilib-generator: Adjusting the loop of 'alt' in
32247 'alts'. The 'arch' may not be the first of 'alts'.
32248 (_expand_combination): Add underline for the 'ext' without '*'.
32249 This is because, a single-letter extension can always be treated well
32250 with a '_' prefix, but it cannot be separated out if it is appended
32253 2021-01-18 Vladimir N. Makarov <vmakarov@redhat.com>
32256 * ira.c (ira): Skip abnormal critical edge splitting.
32258 2021-01-18 Jakub Jelinek <jakub@redhat.com>
32260 PR tree-optimization/98727
32261 * tree-ssa-math-opts.c (match_arith_overflow): Fix up computation of
32262 second .MUL_OVERFLOW operand for signed multiplication with overflow
32263 checking if the second operand of multiplication is not constant.
32265 2021-01-18 David Edelsohn <dje.gcc@gmail.com>
32267 * doc/invoke.texi (-gdwarf): TPF defaults to version 2 and AIX
32268 defaults to version 4.
32270 2021-01-18 David Malcolm <dmalcolm@redhat.com>
32272 * attribs.h (fndecl_dealloc_argno): New decl.
32273 * builtins.c (call_dealloc_argno): Split out second half of
32275 (fndecl_dealloc_argno): New.
32276 * doc/extend.texi (Common Function Attributes): Document the
32277 interaction between the analyzer and the malloc attribute.
32278 * doc/invoke.texi (Static Analyzer Options): Likewise.
32280 2021-01-17 David Edelsohn <dje.gcc@gmail.com>
32282 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Override
32283 dwarf_version to 4.
32284 * config/rs6000/aix72.h (SUBTARGET_OVERRIDE_OPTIONS): Same.
32286 2021-01-17 Martin Jambor <mjambor@suse.cz>
32289 * cgraph.c (clone_of_p): Check also former_clone_of as we climb
32292 2021-01-17 Mark Wielaard <mark@klomp.org>
32294 * common.opt (gdwarf-): Init(5).
32295 * doc/invoke.texi (-gdwarf): Document default to 5.
32297 2021-01-16 Kwok Cheung Yeung <kcy@codesourcery.com>
32299 * builtin-types.def
32300 (BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT): Rename
32302 (BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT_PTR):
32303 ...this. Add extra argument.
32304 * gimplify.c (omp_default_clause): Ensure that event handle is
32305 firstprivate in a task region.
32306 (gimplify_scan_omp_clauses): Handle OMP_CLAUSE_DETACH.
32307 (gimplify_adjust_omp_clauses): Likewise.
32308 * omp-builtins.def (BUILT_IN_GOMP_TASK): Change function type to
32309 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT_PTR.
32310 * omp-expand.c (expand_task_call): Add GOMP_TASK_FLAG_DETACH to flags
32311 if detach clause specified. Add detach argument when generating
32313 * omp-low.c (scan_sharing_clauses): Setup data environment for detach
32315 (finish_taskreg_scan): Move field for variable containing the event
32316 handle to the front of the struct.
32317 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DETACH. Fix
32319 * tree-nested.c (convert_nonlocal_omp_clauses): Handle
32320 OMP_CLAUSE_DETACH clause.
32321 (convert_local_omp_clauses): Handle OMP_CLAUSE_DETACH clause.
32322 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_DETACH.
32323 * tree.c (omp_clause_num_ops): Add entry for OMP_CLAUSE_DETACH.
32325 (omp_clause_code_name): Add entry for OMP_CLAUSE_DETACH. Fix
32327 (walk_tree_1): Handle OMP_CLAUSE_DETACH.
32329 2021-01-16 Sebastian Huber <sebastian.huber@embedded-brains.de>
32331 * config/nios2/t-rtems: Reset all MULTILIB_* variables. Shorten
32332 multilib directory names. Use MULTILIB_REQUIRED instead of
32333 MULTILIB_EXCEPTIONS. Add -mhw-mul -mhw-mulx -mhw-div
32334 -mcustom-fpu-cfg=fph2 multilib.
32336 2021-01-16 Sebastian Huber <sebastian.huber@embedded-brains.de>
32338 * config/nios2/nios2.c (NIOS2_FPU_CONFIG_NUM): Adjust value.
32339 (nios2_init_fpu_configs): Provide register values for new
32340 -mcustom-fpu-cfg=fph2 option variant.
32341 * doc/invoke.texi (-mcustom-fpu-cfg=fph2): Document new option
32344 2021-01-16 Sebastian Huber <sebastian.huber@embedded-brains.de>
32346 * config/nios2/nios2.c (nios2_custom_check_insns): Remove
32347 custom instruction warnings.
32349 2021-01-16 Jakub Jelinek <jakub@redhat.com>
32351 PR tree-optimization/96669
32352 * match.pd ((CST << x) & 1 -> x == 0): New simplification.
32354 2021-01-16 Jakub Jelinek <jakub@redhat.com>
32356 PR tree-optimization/96271
32357 * passes.def: Pass false argument to first two pass_cd_dce
32358 instances and true to last instance. Add comment that
32359 last instance rewrites no longer addressed locals.
32360 * tree-ssa-dce.c (pass_cd_dce): Add update_address_taken_p member and
32362 (pass_cd_dce::set_pass_param): New method.
32363 (pass_cd_dce::execute): Return TODO_update_address_taken from
32364 last cd_dce instance.
32366 2021-01-15 Carl Love <cel@us.ibm.com>
32368 * config/rs6000/altivec.h (vec_mulh, vec_div, vec_dive, vec_mod):
32370 * config/rs6000/altivec.md (VIlong): Move define to file vsx.md.
32371 * config/rs6000/rs6000-builtin.def (DIVES_V4SI, DIVES_V2DI,
32372 DIVEU_V4SI, DIVEU_V2DI, DIVS_V4SI, DIVS_V2DI, DIVU_V4SI,
32373 DIVU_V2DI, MODS_V2DI, MODS_V4SI, MODU_V2DI, MODU_V4SI,
32374 MULHS_V2DI, MULHS_V4SI, MULHU_V2DI, MULHU_V4SI, MULLD_V2DI):
32375 Add builtin define.
32376 (MULH, DIVE, MOD): Add new BU_P10_OVERLOAD_2 definitions.
32377 * config/rs6000/rs6000-call.c (VSX_BUILTIN_VEC_DIV,
32378 VSX_BUILTIN_VEC_DIVE, P10_BUILTIN_VEC_MOD, P10_BUILTIN_VEC_MULH):
32379 New overloaded definitions.
32380 (builtin_function_type) [P10V_BUILTIN_DIVEU_V4SI,
32381 P10V_BUILTIN_DIVEU_V2DI, P10V_BUILTIN_DIVU_V4SI,
32382 P10V_BUILTIN_DIVU_V2DI, P10V_BUILTIN_MODU_V2DI,
32383 P10V_BUILTIN_MODU_V4SI, P10V_BUILTIN_MULHU_V2DI,
32384 P10V_BUILTIN_MULHU_V4SI]: Add case
32385 statement for builtins.
32386 * config/rs6000/rs6000.md (bits): Add new attribute sizes V4SI, V2DI.
32387 * config/rs6000/vsx.md (VIlong): Moved from config/rs6000/altivec.md.
32388 (UNSPEC_VDIVES, UNSPEC_VDIVEU): New unspec definitions.
32389 (vsx_mul_v2di): Add if TARGET_POWER10 statement.
32390 (vsx_udiv_v2di): Add if TARGET_POWER10 statement.
32391 (dives_<mode>, diveu_<mode>, div<mode>3, uvdiv<mode>3,
32392 mods_<mode>, modu_<mode>, mulhs_<mode>, mulhu_<mode>, mulv2di3):
32393 Add define_insn, mode is VIlong.
32394 * doc/extend.texi (vec_mulh, vec_mul, vec_div, vec_dive, vec_mod):
32395 Add builtin descriptions.
32397 2021-01-15 Eric Botcazou <ebotcazou@adacore.com>
32399 * final.c (final_start_function_1): Reset force_source_line.
32401 2021-01-15 Jakub Jelinek <jakub@redhat.com>
32403 PR tree-optimization/96669
32404 * match.pd (((1 << A) & 1) != 0 -> A == 0,
32405 ((1 << A) & 1) == 0 -> A != 0): Generalize for 1s replaced by
32406 possibly different power of two constants and to right shift too.
32408 2021-01-15 Jakub Jelinek <jakub@redhat.com>
32410 PR tree-optimization/96681
32411 * match.pd ((x < 0) ^ (y < 0) to (x ^ y) < 0): New simplification.
32412 ((x >= 0) ^ (y >= 0) to (x ^ y) < 0): Likewise.
32413 ((x < 0) ^ (y >= 0) to (x ^ y) >= 0): Likewise.
32414 ((x >= 0) ^ (y < 0) to (x ^ y) >= 0): Likewise.
32416 2021-01-15 Alexandre Oliva <oliva@adacore.com>
32418 * opts.c (gen_command_line_string): Exclude -dumpbase-ext.
32420 2021-01-15 Tamar Christina <tamar.christina@arm.com>
32422 * config/aarch64/aarch64-simd.md (cml<fcmac1><conj_op><mode>4,
32423 cmul<conj_op><mode>3): New.
32424 * config/aarch64/iterators.md (UNSPEC_FCMUL,
32425 UNSPEC_FCMUL180, UNSPEC_FCMLA_CONJ, UNSPEC_FCMLA180_CONJ,
32426 UNSPEC_CMLA_CONJ, UNSPEC_CMLA180_CONJ, UNSPEC_CMUL, UNSPEC_CMUL180,
32427 FCMLA_OP, FCMUL_OP, conj_op, rotsplit1, rotsplit2, fcmac1, sve_rot1,
32428 sve_rot2, SVE2_INT_CMLA_OP, SVE2_INT_CMUL_OP, SVE2_INT_CADD_OP): New.
32429 (rot): Add UNSPEC_FCMUL, UNSPEC_FCMUL180.
32430 (rot_op): Renamed to conj_op.
32431 * config/aarch64/aarch64-sve.md (cml<fcmac1><conj_op><mode>4,
32432 cmul<conj_op><mode>3): New.
32433 * config/aarch64/aarch64-sve2.md (cml<fcmac1><conj_op><mode>4,
32434 cmul<conj_op><mode>3): New.
32436 2021-01-15 David Malcolm <dmalcolm@redhat.com>
32440 (selftest::test_print_parseable_fixits_bytes_vs_display_columns):
32441 Escape the tempfile name when constructing the expected output.
32443 2021-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32445 * config/aarch64/aarch64-simd.md (*aarch64_<su>mlsl_hi<mode>):
32447 (aarch64_<su>mlsl_hi<mode>): ... This.
32448 (aarch64_<su>mlsl_hi<mode>): Define.
32449 (*aarch64_<su>mlsl<mode): Rename to...
32450 (aarch64_<su>mlsl<mode): ... This.
32451 * config/aarch64/aarch64-simd-builtins.def (smlsl, umlsl,
32452 smlsl_hi, umlsl_hi): Define builtins.
32453 * config/aarch64/arm_neon.h (vmlsl_high_s8, vmlsl_high_s16,
32454 vmlsl_high_s32, vmlsl_high_u8, vmlsl_high_u16, vmlsl_high_u32,
32455 vmlsl_s8, vmlsl_s16, vmlsl_s32, vmlsl_u8,
32456 vmlsl_u16, vmlsl_u32): Reimplement with builtins.
32458 2021-01-15 Uroš Bizjak <ubizjak@gmail.com>
32460 * config/i386/i386-c.c (ix86_target_macros):
32461 Use cpp_define_formatted for __SIZEOF_FLOAT80__ definition.
32463 2021-01-15 Richard Sandiford <richard.sandiford@arm.com>
32466 * config.gcc (aarch64*-*-*): Add aarch64-cc-fusion.o to extra_objs.
32467 * Makefile.in (RTL_SSA_H): New variable.
32468 * config/aarch64/t-aarch64 (aarch64-cc-fusion.o): New rule.
32469 * config/aarch64/aarch64-protos.h (make_pass_cc_fusion): Declare.
32470 * config/aarch64/aarch64-passes.def: Add pass_cc_fusion after
32472 * config/aarch64/aarch64-cc-fusion.cc: New file.
32474 2021-01-15 Richard Sandiford <richard.sandiford@arm.com>
32476 * recog.h (insn_change_watermark::~insn_change_watermark): Avoid
32477 calling cancel_changes for changes that no longer exist.
32479 2021-01-15 Richard Sandiford <richard.sandiford@arm.com>
32481 * rtl-ssa/functions.h (function_info::ref_defs): Rename to...
32482 (function_info::reg_defs): ...this.
32483 * rtl-ssa/member-fns.inl (function_info::ref_defs): Rename to...
32484 (function_info::reg_defs): ...this.
32486 2021-01-15 Christophe Lyon <christophe.lyon@linaro.org>
32489 * config/arm/arm_neon.h (vceqz_p64, vceqq_p64, vceqzq_p64): New.
32491 2021-01-15 Christophe Lyon <christophe.lyon@linaro.org>
32494 2021-01-15 Christophe Lyon <christophe.lyon@linaro.org>
32497 * config/arm/arm_neon.h (vceqz_p64, vceqq_p64, vceqzq_p64): New.
32499 2021-01-15 Richard Biener <rguenther@suse.de>
32501 PR tree-optimization/96376
32502 * tree-vect-stmts.c (get_load_store_type): Disregard alignment
32503 for VMAT_INVARIANT.
32505 2021-01-15 Martin Liska <mliska@suse.cz>
32507 * doc/install.texi: Document that some tests need pytest module.
32508 * doc/sourcebuild.texi: Likewise.
32510 2021-01-15 Christophe Lyon <christophe.lyon@linaro.org>
32513 * config/arm/arm_neon.h (vceqz_p64, vceqq_p64, vceqzq_p64): New.
32515 2021-01-15 Christophe Lyon <christophe.lyon@linaro.org>
32517 * config/arm/mve.md (mve_vshrq_n_s<mode>_imm): New entry.
32518 (mve_vshrq_n_u<mode>_imm): Likewise.
32519 * config/arm/neon.md (vashr<mode>3, vlshr<mode>3): Move to ...
32520 * config/arm/vec-common.md: ... here.
32522 2021-01-15 Christophe Lyon <christophe.lyon@linaro.org>
32524 * config/arm/mve.md (mve_vshlq_<supf><mode>): Move to
32526 * config/arm/neon.md (vashl<mode>3): Delete.
32527 * config/arm/vec-common.md (mve_vshlq_<supf><mode>): New.
32528 (vasl<mode>3): New expander.
32530 2021-01-15 Richard Biener <rguenther@suse.de>
32532 PR tree-optimization/98685
32533 * tree-vect-slp.c (vect_schedule_slp_node): Refactor handling
32534 of vector extern defs.
32536 2021-01-14 David Malcolm <dmalcolm@redhat.com>
32539 * diagnostic.c (diagnostic_kind_text): Break out this array
32541 (diagnostic_build_prefix): ...here.
32542 (fancy_abort): Detect when diagnostic_initialize has not yet been
32543 called and fall back to a minimal implementation of printing the
32544 ICE, rather than segfaulting in internal_error.
32546 2021-01-14 David Malcolm <dmalcolm@redhat.com>
32548 * diagnostic.c (diagnostic_initialize): Eliminate
32549 parseable_fixits_p in favor of initializing extra_output_kind from
32550 GCC_EXTRA_DIAGNOSTIC_OUTPUT.
32551 (convert_column_unit): New function, split out from...
32552 (diagnostic_converted_column): ...this.
32553 (print_parseable_fixits): Add "column_unit" and "tabstop" params.
32554 Use them to call convert_column_unit on the column values.
32555 (diagnostic_report_diagnostic): Eliminate conditional on
32556 parseable_fixits_p in favor of a switch statement on
32557 extra_output_kind, passing the appropriate values to the new
32558 params of print_parseable_fixits.
32559 (selftest::test_print_parseable_fixits_none): Update for new
32560 params of print_parseable_fixits.
32561 (selftest::test_print_parseable_fixits_insert): Likewise.
32562 (selftest::test_print_parseable_fixits_remove): Likewise.
32563 (selftest::test_print_parseable_fixits_replace): Likewise.
32564 (selftest::test_print_parseable_fixits_bytes_vs_display_columns):
32566 (selftest::diagnostic_c_tests): Call it.
32567 * diagnostic.h (enum diagnostics_extra_output_kind): New.
32568 (diagnostic_context::parseable_fixits_p): Delete field in favor
32570 (diagnostic_context::extra_output_kind): ...this new field.
32571 * doc/invoke.texi (Environment Variables): Add
32572 GCC_EXTRA_DIAGNOSTIC_OUTPUT.
32573 * opts.c (common_handle_option): Update handling of
32574 OPT_fdiagnostics_parseable_fixits for change to diagnostic_context
32577 2021-01-14 Tamar Christina <tamar.christina@arm.com>
32579 * tree-vect-slp-patterns.c (class complex_operations_pattern,
32580 complex_operations_pattern::matches,
32581 complex_operations_pattern::recognize,
32582 complex_operations_pattern::build): New.
32583 (slp_patterns): Use it.
32585 2021-01-14 Tamar Christina <tamar.christina@arm.com>
32587 * internal-fn.def (COMPLEX_FMS, COMPLEX_FMS_CONJ): New.
32588 * optabs.def (cmls_optab, cmls_conj_optab): New.
32589 * doc/md.texi: Document them.
32590 * tree-vect-slp-patterns.c (class complex_fms_pattern,
32591 complex_fms_pattern::matches, complex_fms_pattern::recognize,
32592 complex_fms_pattern::build): New.
32594 2021-01-14 Tamar Christina <tamar.christina@arm.com>
32596 * internal-fn.def (COMPLEX_FMA, COMPLEX_FMA_CONJ): New.
32597 * optabs.def (cmla_optab, cmla_conj_optab): New.
32598 * doc/md.texi: Document them.
32599 * tree-vect-slp-patterns.c (vect_match_call_p,
32600 class complex_fma_pattern, vect_slp_reset_pattern,
32601 complex_fma_pattern::matches, complex_fma_pattern::recognize,
32602 complex_fma_pattern::build): New.
32604 2021-01-14 Tamar Christina <tamar.christina@arm.com>
32606 * internal-fn.def (COMPLEX_MUL, COMPLEX_MUL_CONJ): New.
32607 * optabs.def (cmul_optab, cmul_conj_optab): New.
32608 * doc/md.texi: Document them.
32609 * tree-vect-slp-patterns.c (vect_match_call_complex_mla,
32610 vect_normalize_conj_loc, is_eq_or_top, vect_validate_multiplication,
32611 vect_build_combine_node, class complex_mul_pattern,
32612 complex_mul_pattern::matches, complex_mul_pattern::recognize,
32613 complex_mul_pattern::build): New.
32615 2021-01-14 Tamar Christina <tamar.christina@arm.com>
32617 * tree-vect-slp.c (optimize_load_redistribution_1): New.
32618 (optimize_load_redistribution, vect_is_slp_load_node): New.
32619 (vect_match_slp_patterns): Use it.
32621 2021-01-14 Tamar Christina <tamar.christina@arm.com>
32623 * tree-vect-slp-patterns.c (complex_add_pattern::build):
32626 2021-01-14 Thomas Schwinge <thomas@codesourcery.com>
32628 * config/gcn/mkoffload.c (main): Create an offload image only in
32629 64-bit configurations.
32631 2021-01-14 H.J. Lu <hjl.tools@gmail.com>
32634 * config/i386/i386-options.c (ix86_option_override_internal):
32635 Issue an error for -fcf-protection with CF_BRANCH when compiling
32636 for 32-bit non-TARGET_CMOV targets.
32638 2021-01-14 Uroš Bizjak <ubizjak@gmail.com>
32641 * config/i386/i386-options.c (ix86_valid_target_attribute_inner_p):
32642 Remove declaration and initialization of shadow variable "ret".
32643 (ix86_option_override_internal): Remove delcaration of
32644 shadow variable "i". Redeclare shadowed variable to unsigned.
32645 * common/config/i386/i386-common.c (pta_size): Redeclare to unsigned.
32646 * config/i386/i386-builtins.c (get_builtin_code_for_version):
32647 Update for redeclaration.
32648 * config/i386/i386.h (pta_size): Ditto.
32650 2021-01-14 Richard Biener <rguenther@suse.de>
32652 PR tree-optimization/98674
32653 * tree-data-ref.c (base_supports_access_fn_components_p): New.
32654 (initialize_data_dependence_relation): For two bases without
32655 possible access fns resort to type size equality when determining
32656 shape compatibility.
32658 2021-01-14 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
32661 * config/arm/arm_neon.h: Replace calls to __builtin_vcge* by
32662 <=, >= operators in vcle and vcge intrinsics respectively.
32663 * config/arm/arm_neon_builtins.def: Remove entry for
32666 2021-01-14 Uroš Bizjak <ubizjak@gmail.com>
32669 * config/i386/i386-options.c (ix86_function_specific_save):
32670 Remove redundant assignment to opts->x_ix86_branch_cost.
32671 * config/i386/i386.c (ix86_prefetch_sse):
32672 Rename from x86_prefetch_sse. Update all uses.
32673 * config/i386/i386.h: Update for rename.
32674 * config/i386/i386-options.h: Ditto.
32676 2021-01-14 Jakub Jelinek <jakub@redhat.com>
32679 * config/i386/sse.md (*sse4_1_zero_extendv8qiv8hi2_3,
32680 *sse4_1_zero_extendv4hiv4si2_3, *sse4_1_zero_extendv2siv2di2_3):
32681 Use Bm instead of m for non-avx. Add isa attribute.
32683 2021-01-14 Jakub Jelinek <jakub@redhat.com>
32685 PR tree-optimization/96688
32686 * match.pd (~(X >> Y) -> ~X >> Y): New simplification if
32687 ~X can be simplified.
32689 2021-01-14 Richard Sandiford <richard.sandiford@arm.com>
32691 * tree-vect-stmts.c (vect_model_load_cost): Account for unused
32692 IFN_LOAD_LANES results.
32694 2021-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32696 * config/aarch64/aarch64-simd.md (aarch64_<su>xtl<mode>):
32698 (aarch64_xtn<mode>): Likewise.
32699 * config/aarch64/aarch64-simd-builtins.def (sxtl, uxtl, xtn):
32702 * config/aarch64/arm_neon.h (vmovl_s8): Reimplement using
32704 (vmovl_s16): Likewise.
32705 (vmovl_s32): Likewise.
32706 (vmovl_u8): Likewise.
32707 (vmovl_u16): Likewise.
32708 (vmovl_u32): Likewise.
32709 (vmovn_s16): Likewise.
32710 (vmovn_s32): Likewise.
32711 (vmovn_s64): Likewise.
32712 (vmovn_u16): Likewise.
32713 (vmovn_u32): Likewise.
32714 (vmovn_u64): Likewise.
32716 2021-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32718 * config/aarch64/aarch64-simd.md (aarch64_<su>qxtn2<mode>_le):
32720 (aarch64_<su>qxtn2<mode>_be): Likewise.
32721 (aarch64_<su>qxtn2<mode>): Likewise.
32722 * config/aarch64/aarch64-simd-builtins.def (sqxtn2, uqxtn2):
32724 * config/aarch64/iterators.md (SAT_TRUNC): Define code_iterator.
32725 (su): Handle ss_truncate and us_truncate.
32726 * config/aarch64/arm_neon.h (vqmovn_high_s16): Reimplement using
32728 (vqmovn_high_s32): Likewise.
32729 (vqmovn_high_s64): Likewise.
32730 (vqmovn_high_u16): Likewise.
32731 (vqmovn_high_u32): Likewise.
32732 (vqmovn_high_u64): Likewise.
32734 2021-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32736 * config/aarch64/aarch64-simd.md (aarch64_xtn2<mode>_le):
32738 (aarch64_xtn2<mode>_be): Likewise.
32739 (aarch64_xtn2<mode>): Likewise.
32740 * config/aarch64/aarch64-simd-builtins.def (xtn2): Define
32742 * config/aarch64/arm_neon.h (vmovn_high_s16): Reimplement using
32744 (vmovn_high_s32): Likewise.
32745 (vmovn_high_s64): Likewise.
32746 (vmovn_high_u16): Likewise.
32747 (vmovn_high_u32): Likewise.
32748 (vmovn_high_u64): Likewise.
32750 2021-01-13 Stafford Horne <shorne@gmail.com>
32752 * config/or1k/or1k.h (ASM_PREFERRED_EH_DATA_FORMAT): New macro.
32754 2021-01-13 Stafford Horne <shorne@gmail.com>
32756 * config/or1k/linux.h (TARGET_ASM_FILE_END): Define macro.
32758 2021-01-13 Stafford Horne <shorne@gmail.com>
32760 * config/or1k/or1k.h (TARGET_CPU_CPP_BUILTINS): Add builtin
32761 define for __or1k_hard_float__.
32763 2021-01-13 Stafford Horne <shorne@gmail.com>
32765 * config/or1k/or1k.h (NO_PROFILE_COUNTERS): Define as 1.
32766 (PROFILE_HOOK): Define to call _mcount.
32767 (FUNCTION_PROFILER): Change from abort to no-op.
32769 2021-01-13 Jakub Jelinek <jakub@redhat.com>
32771 PR tree-optimization/96691
32772 * match.pd ((~X | C) ^ D -> (X | C) ^ (~D ^ C),
32773 (~X & C) ^ D -> (X & C) ^ (D ^ C)): New simplifications if
32774 (~D ^ C) or (D ^ C) can be simplified.
32776 2021-01-13 Richard Biener <rguenther@suse.de>
32778 PR tree-optimization/92645
32779 * match.pd (BIT_FIELD_REF to conversion): Delay canonicalization
32780 until after vector lowering.
32782 2021-01-13 Richard Sandiford <richard.sandiford@arm.com>
32784 * config/aarch64/aarch64-sve.md (fnma<mode>4): Extend from SVE_FULL_I
32786 (@aarch64_pred_fnma<mode>, cond_fnma<mode>, *cond_fnma<mode>_2)
32787 (*cond_fnma<mode>_4, *cond_fnma<mode>_any): Likewise.
32789 2021-01-13 Richard Sandiford <richard.sandiford@arm.com>
32791 * config/aarch64/aarch64-sve.md (fma<mode>4): Extend from SVE_FULL_I
32793 (@aarch64_pred_fma<mode>, cond_fma<mode>, *cond_fma<mode>_2)
32794 (*cond_fma<mode>_4, *cond_fma<mode>_any): Likewise.
32796 2021-01-13 Richard Biener <rguenther@suse.de>
32798 PR tree-optimization/92645
32799 * tree-vect-slp.c (vect_build_slp_tree_1): Relax supported
32800 BIT_FIELD_REF argument.
32801 (vect_build_slp_tree_2): Record the desired vector type
32802 on the external vector def.
32803 (vectorizable_slp_permutation): Handle required punning
32804 of existing vector defs.
32806 2021-01-13 Richard Sandiford <richard.sandiford@arm.com>
32808 * rtl-ssa/accesses.h (def_lookup): Fix order of comparison results.
32810 2021-01-13 Richard Sandiford <richard.sandiford@arm.com>
32812 * config/sh/sh.md (movsf_ie): Remove operands[2] test.
32814 2021-01-13 Samuel Thibault <samuel.thibault@ens-lyon.org>
32816 * config.gcc [$target == *-*-gnu*]: Enable
32817 'default_gnu_indirect_function'.
32819 2021-01-13 Jakub Jelinek <jakub@redhat.com>
32822 * optabs.c (expand_vec_perm_const): Don't force v0 and v1 into
32823 registers before calling targetm.vectorize.vec_perm_const, only after
32825 * config/i386/i386-expand.c (ix86_vectorize_vec_perm_const): Handle
32826 two argument permutation when one operand is zero vector and only
32827 after that force operands into registers.
32828 * config/i386/sse.md (*avx2_zero_extendv16qiv16hi2_1): New
32829 define_insn_and_split pattern.
32830 (*avx512bw_zero_extendv32qiv32hi2_1): Likewise.
32831 (*avx512f_zero_extendv16hiv16si2_1): Likewise.
32832 (*avx2_zero_extendv8hiv8si2_1): Likewise.
32833 (*avx512f_zero_extendv8siv8di2_1): Likewise.
32834 (*avx2_zero_extendv4siv4di2_1): Likewise.
32835 * config/mips/mips.c (mips_vectorize_vec_perm_const): Force operands
32837 * config/arm/arm.c (arm_vectorize_vec_perm_const): Likewise.
32838 * config/sparc/sparc.c (sparc_vectorize_vec_perm_const): Likewise.
32839 * config/ia64/ia64.c (ia64_vectorize_vec_perm_const): Likewise.
32840 * config/aarch64/aarch64.c (aarch64_vectorize_vec_perm_const): Likewise.
32841 * config/rs6000/rs6000.c (rs6000_vectorize_vec_perm_const): Likewise.
32842 * config/gcn/gcn.c (gcn_vectorize_vec_perm_const): Likewise. Use std::swap.
32844 2021-01-13 Martin Liska <mliska@suse.cz>
32846 PR tree-optimization/98455
32847 * gimple-if-to-switch.cc (condition_info::record_phi_mapping):
32848 Record also virtual PHIs.
32849 (pass_if_to_switch::execute): Return TODO_cleanup_cfg only
32852 2021-01-13 Jonathan Wakely <jwakely@redhat.com>
32854 * doc/invoke.texi (C++ Modules): Fix typos.
32856 2021-01-13 Richard Biener <rguenther@suse.de>
32858 PR tree-optimization/98640
32859 * tree-ssa-sccvn.c (visit_nary_op): Do not try to
32860 handle plus or minus from a truncated operand to be
32863 2021-01-13 Jakub Jelinek <jakub@redhat.com>
32866 * config/i386/i386.md (*btr<mode>_1, *btr<mode>_2): New
32867 define_insn_and_split patterns.
32868 (splitter after *btr<mode>_2): New splitter.
32870 2021-01-13 Martin Liska <mliska@suse.cz>
32873 * cgraphunit.c (analyze_functions): Remove dead code.
32875 2021-01-13 Qian Jianhua <qianjh@cn.fujitsu.com>
32877 * config/aarch64/aarch64-cost-tables.h (a64fx_extra_costs): New.
32878 * config/aarch64/aarch64.c (a64fx_addrcost_table): New.
32879 (a64fx_regmove_cost, a64fx_vector_cost): New.
32880 (a64fx_tunings): Use the new added cost tables.
32882 2021-01-13 Jakub Jelinek <jakub@redhat.com>
32885 * config/i386/predicates.md (pmovzx_parallel): New predicate.
32886 * config/i386/sse.md (*sse4_1_zero_extendv8qiv8hi2_3): New
32887 define_insn_and_split pattern.
32888 (*sse4_1_zero_extendv4hiv4si2_3): Likewise.
32889 (*sse4_1_zero_extendv2siv2di2_3): Likewise.
32891 2021-01-13 Julian Brown <julian@codesourcery.com>
32893 * config/gcn/gcn.c (gcn_conditional_register_usage): Remove dead code
32894 to fix v0 register.
32896 2021-01-13 Julian Brown <julian@codesourcery.com>
32898 * config/gcn/gcn.c (gcn_md_reorg): Fix case where EXEC reg is live
32901 2021-01-13 Julian Brown <julian@codesourcery.com>
32903 * config/gcn/gcn-valu.md (recip<mode>2<exec>, recip<mode>2): Use unspec
32904 for reciprocal-approximation instructions.
32905 (div<mode>3): Use fused multiply-accumulate operations for reciprocal
32906 refinement and division result.
32907 * config/gcn/gcn.md (UNSPEC_RCP): New unspec constant.
32909 2021-01-13 Julian Brown <julian@codesourcery.com>
32911 * config/gcn/gcn-valu.md (subdf): Rename to...
32914 2021-01-12 Martin Liska <mliska@suse.cz>
32916 * gcov.c (source_info::debug): Fix printf format for 32-bit hosts.
32918 2021-01-12 Andrea Corallo <andrea.corallo@arm.com>
32920 * function-abi.h: Fix typo.
32922 2021-01-12 Christophe Lyon <christophe.lyon@linaro.org>
32926 * config/arm/arm.h (ARM_HAVE_NEON_V8QI_LDST): New macro.
32927 (ARM_HAVE_NEON_V16QI_LDST, ARM_HAVE_NEON_V4HI_LDST): Likewise.
32928 (ARM_HAVE_NEON_V8HI_LDST, ARM_HAVE_NEON_V2SI_LDST): Likewise.
32929 (ARM_HAVE_NEON_V4SI_LDST, ARM_HAVE_NEON_V4HF_LDST): Likewise.
32930 (ARM_HAVE_NEON_V8HF_LDST, ARM_HAVE_NEON_V4BF_LDST): Likewise.
32931 (ARM_HAVE_NEON_V8BF_LDST, ARM_HAVE_NEON_V2SF_LDST): Likewise.
32932 (ARM_HAVE_NEON_V4SF_LDST, ARM_HAVE_NEON_DI_LDST): Likewise.
32933 (ARM_HAVE_NEON_V2DI_LDST): Likewise.
32934 (ARM_HAVE_V8QI_LDST, ARM_HAVE_V16QI_LDST): Likewise.
32935 (ARM_HAVE_V4HI_LDST, ARM_HAVE_V8HI_LDST): Likewise.
32936 (ARM_HAVE_V2SI_LDST, ARM_HAVE_V4SI_LDST, ARM_HAVE_V4HF_LDST): Likewise.
32937 (ARM_HAVE_V8HF_LDST, ARM_HAVE_V4BF_LDST, ARM_HAVE_V8BF_LDST): Likewise.
32938 (ARM_HAVE_V2SF_LDST, ARM_HAVE_V4SF_LDST, ARM_HAVE_DI_LDST): Likewise.
32939 (ARM_HAVE_V2DI_LDST): Likewise.
32940 * config/arm/mve.md (*movmisalign<mode>_mve_store): New pattern.
32941 (*movmisalign<mode>_mve_load): New pattern.
32942 * config/arm/neon.md (movmisalign<mode>): Move to ...
32943 * config/arm/vec-common.md: ... here.
32945 2021-01-12 Vladimir N. Makarov <vmakarov@redhat.com>
32948 * lra-eliminations.c (eliminate_regs_in_insn): Add transformation
32949 of pattern 'plus (plus (hard reg, const), pseudo)'.
32951 2021-01-12 Richard Biener <rguenther@suse.de>
32953 PR tree-optimization/98550
32954 * tree-vect-slp.c (vect_record_max_nunits): Check whether
32955 the group size is a multiple of the vector element count.
32956 (vect_build_slp_tree_1): When we need to fail because
32957 the vector type choosen causes unrolling do so lazily
32958 without affecting matches only at the end to guide group splitting.
32960 2021-01-12 Martin Liska <mliska@suse.cz>
32963 * optc-save-gen.awk: Compare also n_target_save vars with
32966 2021-01-12 Martin Liska <mliska@suse.cz>
32968 * gcov.c (source_info::debug): New.
32969 (print_usage): Add --debug (-D) option.
32970 (process_args): Likewise.
32971 (generate_results): Call src->debug after
32972 accumulate_line_counts.
32973 (read_graph_file): Properly assign id for EXIT_BLOCK.
32974 * profile.c (branch_prob): Dump function body before it is
32977 2021-01-12 Jakub Jelinek <jakub@redhat.com>
32979 PR tree-optimization/98629
32980 * tree-ssa-math-opts.c (arith_overflow_check_p): Don't update use_stmt
32981 unless returning non-zero.
32983 2021-01-12 Jakub Jelinek <jakub@redhat.com>
32985 PR tree-optimization/95731
32986 * tree-ssa-reassoc.c (optimize_range_tests_cmp_bitwise): Also optimize
32987 x < 0 && y < 0 && z < 0 into (x | y | z) < 0 for signed x, y, z.
32988 (optimize_range_tests): Call optimize_range_tests_cmp_bitwise
32989 only after optimize_range_tests_var_bound.
32991 2021-01-12 Jakub Jelinek <jakub@redhat.com>
32993 * configure.ac: Ensure c/Make-lang.in comes first in @all_lang_makefrags@.
32994 * configure: Regenerated.
32996 2021-01-12 liuhongt <hongtao.liu@intel.com>
32999 * config/i386/i386-builtins.h (BUILTIN_DESC_SWAP_OPERANDS):
33001 * config/i386/i386-expand.c (ix86_expand_sse_comi): Delete
33004 2021-01-12 Alexandre Oliva <oliva@adacore.com>
33006 * ssa-iterators.h (end_imm_use_stmt_traverse): Forward
33008 (auto_end_imm_use_stmt_traverse): New struct.
33009 (FOR_EACH_IMM_USE_STMT): Use it.
33010 (BREAK_FROM_IMM_USE_STMT, RETURN_FROM_IMM_USE_STMT): Remove,
33012 * gimple-ssa-strength-reduction.c: ... here, ...
33013 * graphite-scop-detection.c: ... here, ...
33014 * ipa-modref.c, ipa-pure-const.c, ipa-sra.c: ... here, ...
33015 * tree-predcom.c, tree-ssa-ccp.c: ... here, ...
33016 * tree-ssa-dce.c, tree-ssa-dse.c: ... here, ...
33017 * tree-ssa-loop-ivopts.c, tree-ssa-math-opts.c: ... here, ...
33018 * tree-ssa-phiprop.c, tree-ssa.c: ... here, ...
33019 * tree-vect-slp.c: ... and here, ...
33020 * doc/tree-ssa.texi: ... and the example here.
33022 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
33024 * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3): Extend from
33025 SVE_FULL_I to SVE_I. Generate an UNSPEC_PRED_X.
33026 (*sdiv_pow2<mode>3): New pattern.
33027 (@cond_<sve_int_op><mode>): Extend from SVE_FULL_I to SVE_I.
33028 Wrap the ASRD in an UNSPEC_PRED_X.
33029 (*cond_<sve_int_op><mode>_2): Likewise. Replace the UNSPEC_PRED_X
33030 predicate with a constant PTRUE, if it isn't already.
33031 (*cond_<sve_int_op><mode>_z): Replace with...
33032 (*cond_<sve_int_op><mode>_any): ...this new pattern.
33034 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
33036 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2): Extend from
33037 SVE_FULL_I to SVE_I.
33038 (*cond_bic<mode>_any): Likewise.
33040 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
33042 * config/aarch64/aarch64-sve.md (<su>mul<mode>3_highpart)
33043 (@aarch64_pred_<MUL_HIGHPART:optab><mode>): Extend from SVE_FULL_I
33046 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
33048 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): Extend from
33049 SVE_FULL_I to SVE_I.
33050 (*aarch64_cond_<su>abd<mode>_2): Likewise.
33051 (*aarch64_cond_<su>abd<mode>_any): Likewise.
33052 (@aarch64_pred_<su>abd<mode>): Likewise. Use UNSPEC_PRED_X
33053 for the max and min but not for the minus.
33054 (*aarch64_cond_<su>abd<mode>_3): New pattern.
33056 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
33058 * config/aarch64/iterators.md (SVE_24I): New iterator.
33059 * config/aarch64/aarch64-sve.md (*aarch64_adr<mode>_shift): Extend from
33060 SVE_FULL_SDI to SVE_24I. Use containers rather than elements.
33062 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
33064 * config/aarch64/aarch64-sve.md (@cond_<SVE_INT_BINARY:optab><mode>)
33065 (*cond_<SVE_INT_BINARY:optab><mode>_2): Extend from SVE_FULL_I
33067 (*cond_<SVE_INT_BINARY:optab><mode>_3): Likewise.
33068 (*cond_<SVE_INT_BINARY:optab><mode>_any): Likewise.
33069 (*cond_<SVE_INT_BINARY:optab><mode>_2_const): Likewise.
33070 (*cond_<SVE_INT_BINARY:optab><mode>_any_const): Likewise.
33072 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
33074 * config/aarch64/aarch64-sve.md (<SVE_INT_BINARY_IMM:optab><mode>3)
33075 (@aarch64_pred_<SVE_INT_BINARY_IMM:optab><mode>)
33076 (*post_ra_<SVE_INT_BINARY_IMM:optab><mode>3): Extend from SVE_FULL_I
33079 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
33081 * config/aarch64/aarch64-sve.md (<ASHIFT:optab><mode>3)
33082 (v<ASHIFT:optab><mode>3, @aarch64_pred_<optab><mode>)
33083 (*post_ra_v<ASHIFT:optab><mode>3): Extend from SVE_FULL_I to SVE_I.
33085 2021-01-11 Martin Liska <mliska@suse.cz>
33088 * symtab-clones.h (clone_info::release): Release
33089 symtab::m_clones with ggc_delete as it's a GGC memory.
33091 2021-01-11 Matthias Klose <doko@ubuntu.com>
33093 * Makefile.in (LINK_PROGRESS): Show the link target.
33095 2021-01-11 Richard Biener <rguenther@suse.de>
33097 PR tree-optimization/91403
33098 * tree-vect-data-refs.c (vect_analyze_group_access_1): Cap
33099 single-element interleaving group size at 4096 elements.
33101 2021-01-11 Richard Biener <rguenther@suse.de>
33103 PR tree-optimization/98526
33104 * tree-vect-loop.c (vect_model_reduction_cost): Remove costing
33105 of the actual reduction op for the regular case.
33106 (vectorizable_reduction): Cost the stmts
33107 vect_transform_reduction produces here.
33109 2021-01-11 Andreas Krebbel <krebbel@linux.ibm.com>
33111 * tree-ssa-forwprop.c (simplify_vector_constructor): For
33112 big-endian, use UNPACK[_FLOAT]_HI.
33114 2021-01-11 Tamar Christina <tamar.christina@arm.com>
33116 * tree-vect-slp-patterns.c (class complex_pattern,
33117 class complex_add_pattern): Add parameters to matches.
33118 (complex_add_pattern::build): Free memory.
33119 (complex_add_pattern::matches): Move validation end of match.
33120 (complex_add_pattern::recognize): Likewise.
33122 2021-01-11 Tamar Christina <tamar.christina@arm.com>
33124 * tree-vect-slp-patterns.c (linear_loads_p): Fix externals.
33126 2021-01-11 Tamar Christina <tamar.christina@arm.com>
33128 * tree-vect-slp-patterns.c (is_linear_load_p): Fix ambiguity.
33130 2021-01-11 Jakub Jelinek <jakub@redhat.com>
33132 PR tree-optimization/95867
33133 * tree-ssa-math-opts.h: New header.
33134 * tree-ssa-math-opts.c: Include tree-ssa-math-opts.h.
33135 (powi_as_mults): No longer static. Use build_one_cst instead of
33136 build_real. Formatting fix.
33137 * tree-ssa-reassoc.c: Include tree-ssa-math-opts.h.
33138 (attempt_builtin_powi): Handle multiplication reassociation without
33139 powi_fndecl using powi_as_mults.
33140 (reassociate_bb): For integral types don't require
33141 -funsafe-math-optimizations to call attempt_builtin_powi.
33143 2021-01-11 Jakub Jelinek <jakub@redhat.com>
33145 PR tree-optimization/95852
33146 * tree-ssa-math-opts.c (maybe_optimize_guarding_check): Change
33147 mul_stmts parameter type to vec<gimple *> &. Before cond_stmt
33148 allow in the bb any of the stmts in that vector, div_stmt and
33149 up to 3 cast stmts.
33150 (arith_cast_equal_p): New function.
33151 (arith_overflow_check_p): Add cast_stmt argument, handle signed
33152 multiply overflow checks.
33153 (match_arith_overflow): Adjust caller. Handle signed multiply
33156 2021-01-11 Jakub Jelinek <jakub@redhat.com>
33158 PR tree-optimization/95852
33159 * tree-ssa-math-opts.c (maybe_optimize_guarding_check): New function.
33160 (uaddsub_overflow_check_p): Renamed to ...
33161 (arith_overflow_check_p): ... this. Handle also multiplication
33162 with overflow check.
33163 (match_uaddsub_overflow): Renamed to ...
33164 (match_arith_overflow): ... this. Add cfg_changed argument. Handle
33165 also multiplication with overflow check. Adjust function comment.
33166 (math_opts_dom_walker::after_dom_children): Adjust callers. Call
33167 match_arith_overflow also for MULT_EXPR.
33169 2021-01-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33171 * config/aarch64/arm_neon.h (vmovl_s8): Reimplement using
33172 __builtin_convertvector.
33173 (vmovl_s16): Likewise.
33174 (vmovl_s32): Likewise.
33175 (vmovl_u8): Likewise.
33176 (vmovl_u16): Likewise.
33177 (vmovl_u32): Likewise.
33178 (vmovn_s16): Likewise.
33179 (vmovn_s32): Likewise.
33180 (vmovn_s64): Likewise.
33181 (vmovn_u16): Likewise.
33182 (vmovn_u32): Likewise.
33183 (vmovn_u64): Likewise.
33185 2021-01-11 Martin Liska <mliska@suse.cz>
33187 * gimple-if-to-switch.cc (struct condition_info): Use auto_var.
33188 (if_chain::is_beneficial): Delete clusters
33189 (find_conditions): Make second argument of conditions_in_bbs a
33190 pointer so that we control over it's lifetime.
33191 (pass_if_to_switch::execute): Delete them.
33193 2021-01-11 Kewen Lin <linkw@linux.ibm.com>
33195 * ira.c (move_unallocated_pseudos): Check other_reg and skip if
33198 2021-01-09 Maciej W. Rozycki <macro@linux-mips.org>
33200 * config/vax/vax.md (cc): Remove mode attribute.
33201 (subst_<cc>, subst_f<cc>): Rename to...
33202 (subst_<mode>, subst_f<VAXccnz:mode>): ... these respectively.
33203 (*cbranch<VAXint:mode>4_<VAXcc:mode>): Update for `cc' removal.
33204 (*cbranch<VAXfp:mode>4_<VAXccnz:mode>): Likewise.
33205 (*branch_<mode>, *branch_<mode>_reversed): Likewise.
33207 2021-01-09 Maciej W. Rozycki <macro@linux-mips.org>
33209 * config/vax/vax.md (subst_f<cc>): Add mode to operands and
33210 `const_double_zero'.
33212 2021-01-09 Maciej W. Rozycki <macro@linux-mips.org>
33214 * config/pdp11/pdp11.md (PDPfp): New mode iterator.
33215 (fcc_cc, fcc_ccnz): Use it. Add mode to `const_double_zero' and
33218 2021-01-09 Maciej W. Rozycki <macro@linux-mips.org>
33220 * genemit.c (gen_exp) <CONST_DOUBLE>: Handle `const_double_zero'
33222 * read-rtl.c (rtx_reader::read_rtx_code): Handle machine mode
33223 with `const_double_zero'.
33224 * doc/rtl.texi (Constant Expression Types): Document it.
33226 2021-01-09 Jakub Jelinek <jakub@redhat.com>
33229 * tree-cfg.c (verify_gimple_assign_binary): Allow lhs of
33230 POINTER_DIFF_EXPR to be any integral type.
33232 2021-01-09 Jakub Jelinek <jakub@redhat.com>
33234 PR rtl-optimization/98603
33235 * function.c (instantiate_virtual_regs_in_insn): For asm goto
33236 with impossible constraints, drop all SETs, CLOBBERs, drop PARALLEL
33237 if any, set ASM_OPERANDS mode to VOIDmode and change
33238 ASM_OPERANDS_OUTPUT_CONSTRAINT and ASM_OPERANDS_OUTPUT_IDX.
33240 2021-01-09 Alexandre Oliva <oliva@gnu.org>
33243 * final.c (notice_source_line): Narrow down the condition to
33244 skip a line-0 marker.
33246 2021-01-08 Sergei Trofimovich <siarheit@google.com>
33248 * ipa-modref.c (merge_call_side_effects): Fix
33249 linebreak split by reordering two print calls.
33251 2021-01-08 Ilya Leoshkevich <iii@linux.ibm.com>
33253 * config/s390/vector.md (*tf_to_fprx2_0): Rename from
33254 "*mov_tf_to_fprx2_0" for consistency, fix constraint.
33255 (*tf_to_fprx2_1): Rename from "*mov_tf_to_fprx2_1" for
33256 consistency, fix constraint.
33258 2021-01-08 Ilya Leoshkevich <iii@linux.ibm.com>
33260 * config/s390/s390-c.c (s390_def_or_undef_macro): Accept
33261 callables instead of mask values.
33262 (struct target_flag_set_p): New predicate.
33263 (s390_cpu_cpp_builtins_internal): Define or undefine
33264 __LONG_DOUBLE_VX__ macro.
33266 2021-01-08 H.J. Lu <hjl.tools@gmail.com>
33269 * config/i386/i386.c (x86_function_profiler): Use R10 and R11
33270 to call mcount in large model with PIC for NO_PROFILE_COUNTERS
33273 2021-01-08 Richard Biener <rguenther@suse.de>
33275 * tree-ssa-sccvn.c (pass_fre::execute): Reset the SCEV hash table.
33277 2021-01-08 Richard Biener <rguenther@suse.de>
33279 * tree-vect-slp.c (scalar_stmts_to_slp_tree_map_t): Fix.
33280 (vect_build_slp_tree): On cache hit release the matched
33281 scalar stmts vector.
33282 * tree-vect-stmts.c (vectorizable_store): Properly free
33283 vec_oprnds before possibly gathering them again.
33285 2021-01-08 Richard Biener <rguenther@suse.de>
33287 PR tree-optimization/98544
33288 * tree-vect-slp.c (vect_optimize_slp): Always materialize
33289 permutes at a permute node.
33291 2021-01-08 H.J. Lu <hjl.tools@gmail.com>
33294 * config/i386/i386.c (x86_function_profiler): Use R10 to call
33295 mcount in large model. Sorry for large model with PIC.
33297 2021-01-08 Jakub Jelinek <jakub@redhat.com>
33300 * config/i386/i386.opt (ix86_cmodel, ix86_incoming_stack_boundary_arg,
33301 ix86_pmode, ix86_preferred_stack_boundary_arg, ix86_regparm,
33302 ix86_veclibabi_type): Remove x_ prefix, use TargetVariable instead of
33303 TargetSave and initialize for variables with enum types.
33304 (mfentry, mstack-protector-guard-reg=, mstack-protector-guard-offset=,
33305 mstack-protector-guard-symbol=): Add Save.
33306 * config/i386/i386-options.c (ix86_function_specific_save,
33307 ix86_function_specific_restore): Don't save or restore x_ix86_cmodel,
33308 x_ix86_incoming_stack_boundary_arg, x_ix86_pmode,
33309 x_ix86_preferred_stack_boundary_arg, x_ix86_regparm,
33310 x_ix86_veclibabi_type.
33312 2021-01-08 Richard Sandiford <richard.sandiford@arm.com>
33314 * config/aarch64/aarch64-sve.md (*cnot<mode>): Extend from
33315 SVE_FULL_I to SVE_I.
33316 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
33318 2021-01-08 Richard Sandiford <richard.sandiford@arm.com>
33320 * config/aarch64/aarch64-sve.md (*cond_uxt<mode>_2): Extend from
33321 SVE_FULL_I to SVE_I.
33322 (*cond_uxt<mode>_any): Likewise.
33324 2021-01-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33326 * config/aarch64/iterators.md (Vwhalf): New iterator.
33327 * config/aarch64/aarch64-simd.md (aarch64_<sur>adalp<mode>_3):
33329 (aarch64_<sur>adalp<mode>): ... This. Make more
33331 (<sur>sadv16qi): Adjust callsite of the above.
33332 * config/aarch64/aarch64-simd-builtins.def (sadalp, uadalp): New
33334 * config/aarch64/arm_neon.h (vpadal_s8): Reimplement using
33336 (vpadal_s16): Likewise.
33337 (vpadal_u8): Likewise.
33338 (vpadal_u16): Likewise.
33339 (vpadalq_s8): Likewise.
33340 (vpadalq_s16): Likewise.
33341 (vpadalq_s32): Likewise.
33342 (vpadalq_u8): Likewise.
33343 (vpadalq_u16): Likewise.
33344 (vpadalq_u32): Likewise.
33346 2021-01-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33348 * config/aarch64/aarch64-simd.md (aarch64_<su>abd<mode>_3):
33350 (aarch64_<su>abd<mode>): ... This.
33351 (<sur>sadv16qi): Adjust callsite of the above.
33352 * config/aarch64/aarch64-simd-builtins.def (sabd, uabd): Define
33354 * config/aarch64/arm_neon.h (vabd_s8): Reimplement using
33356 (vabd_s16): Likewise.
33357 (vabd_s32): Likewise.
33358 (vabd_u8): Likewise.
33359 (vabd_u16): Likewise.
33360 (vabd_u32): Likewise.
33361 (vabdq_s8): Likewise.
33362 (vabdq_s16): Likewise.
33363 (vabdq_s32): Likewise.
33364 (vabdq_u8): Likewise.
33365 (vabdq_u16): Likewise.
33366 (vabdq_u32): Likewise.
33368 2021-01-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33370 * config/aarch64/aarch64-simd-builtins.def (saba, uaba): Define
33372 * config/aarch64/arm_neon.h (vaba_s8): Implement using builtin.
33373 (vaba_s16): Likewise.
33374 (vaba_s32): Likewise.
33375 (vaba_u8): Likewise.
33376 (vaba_u16): Likewise.
33377 (vaba_u32): Likewise.
33378 (vabaq_s8): Likewise.
33379 (vabaq_s16): Likewise.
33380 (vabaq_s32): Likewise.
33381 (vabaq_u8): Likewise.
33382 (vabaq_u16): Likewise.
33383 (vabaq_u32): Likewise.
33385 2021-01-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33387 * config/aarch64/aarch64-simd.md (aba<mode>_3): Rename to...
33388 (aarch64_<su>aba<mode>): ... This. Handle uaba as well.
33389 Change RTL pattern to match.
33391 2021-01-08 Kito Cheng <kito.cheng@sifive.com>
33393 * common/config/riscv/riscv-common.c (riscv_current_subset_list): New.
33394 * config/riscv/riscv-c.c (riscv-subset.h): New.
33395 (INCLUDE_STRING): Define.
33396 (riscv_cpu_cpp_builtins): Add new style architecture extension
33398 * config/riscv/riscv-subset.h (riscv_subset_list::begin): New.
33399 (riscv_subset_list::end): New.
33400 (riscv_current_subset_list): New.
33402 2021-01-08 Kito Cheng <kito.cheng@sifive.com>
33404 * common/config/riscv/riscv-common.c (RISCV_DONT_CARE_VERSION):
33405 Move to riscv-subset.h.
33406 (struct riscv_subset_t): Ditto.
33407 (class riscv_subset_list): Ditto.
33408 * config/riscv/riscv-subset.h (RISCV_DONT_CARE_VERSION): Move
33409 from riscv-common.c.
33410 (struct riscv_subset_t): Ditto.
33411 (class riscv_subset_list): Ditto.
33412 * config/riscv/t-riscv ($(common_out_file)): Add file
33415 2021-01-07 Jakub Jelinek <jakub@redhat.com>
33418 * config/i386/i386.md (*bmi_blsi_<mode>_cmp, *bmi_blsi_<mode>_ccno):
33419 New define_insn patterns.
33421 2021-01-07 Richard Sandiford <richard.sandiford@arm.com>
33423 * config/aarch64/aarch64-sve.md (@cond_<SVE_INT_UNARY:optab><mode>)
33424 (*cond_<SVE_INT_UNARY:optab><mode>_2): Extend from SVE_FULL_I to SVE_I.
33425 (*cond_<SVE_INT_UNARY:optab><mode>_any): Likewise.
33427 2021-01-07 Richard Sandiford <richard.sandiford@arm.com>
33429 PR tree-optimization/98560
33430 * internal-fn.def (IFN_VCONDU, IFN_VCONDEQ): Use type vec_cond.
33431 * internal-fn.c (vec_cond_mask_direct): Get the data mode from
33433 (vec_cond_direct): Likewise argument 2.
33434 (vec_condu_direct, vec_condeq_direct): Delete.
33435 (expand_vect_cond_optab_fn): Rename to...
33436 (expand_vec_cond_optab_fn): ...this, replacing old macro.
33437 (expand_vec_condu_optab_fn, expand_vec_condeq_optab_fn): Delete.
33438 (expand_vect_cond_mask_optab_fn): Rename to...
33439 (expand_vec_cond_mask_optab_fn): ...this, replacing old macro.
33440 (direct_vec_cond_mask_optab_supported_p): Treat the optab as a
33442 (direct_vec_cond_optab_supported_p): Likewise.
33443 (direct_vec_condu_optab_supported_p): Delete.
33444 (direct_vec_condeq_optab_supported_p): Delete.
33445 * gimple-isel.cc: Include internal-fn.h.
33446 (gimple_expand_vec_cond_expr): Check that IFN_VCONDEQ is supported
33449 2021-01-07 Richard Sandiford <richard.sandiford@arm.com>
33451 PR tree-optimization/98560
33452 * gimple-isel.cc (gimple_expand_vec_cond_expr): If we fail to use
33453 IFN_VCOND{,U,EQ}, fall back on IFN_VCOND_MASK.
33455 2021-01-07 Uroš Bizjak <ubizjak@gmail.com>
33457 * config/i386/i386.md (insn): Merge from plusminus_insn, shift_insn,
33458 rotate_insn and optab code attributes.
33459 Update all uses to merged code attribute.
33460 * config/i386/sse.md: Update all uses to merged code attribute.
33461 * config/i386/mmx.md: Update all uses to merged code attribute.
33463 2021-01-07 Jakub Jelinek <jakub@redhat.com>
33465 PR tree-optimization/98568
33466 * gimple-ssa-store-merging.c (bswap_view_convert): New function.
33467 (bswap_replace): Use it.
33469 2021-01-06 Vladimir N. Makarov <vmakarov@redhat.com>
33471 PR rtl-optimization/97978
33472 * lra-int.h (lra_hard_reg_split_p): New external.
33473 * lra.c (lra_hard_reg_split_p): New global.
33474 (lra): Set up lra_hard_reg_split_p after splitting a hard reg.
33475 * lra-assigns.c (lra_assign): Don't check allocation correctness
33476 after hard reg splitting.
33478 2021-01-06 Martin Sebor <msebor@redhat.com>
33481 * builtins.c (new_delete_mismatch_p): New overload.
33482 (new_delete_mismatch_p (tree, tree)): Call it.
33484 2021-01-06 Alexandre Oliva <oliva@adacore.com>
33486 * Makefile.in (T_GLIMITS_H): New.
33487 (stmp-int-hdrs): Depend on it, use it.
33488 * config/t-vxworks (T_GLIMITS_H): Override it.
33489 (vxw-glimits.h): New.
33491 2021-01-06 Richard Biener <rguenther@suse.de>
33493 PR tree-optimization/98513
33494 * value-range.cc (intersect_ranges): Compare the upper bounds
33495 for the expected relation.
33497 2021-01-06 Gerald Pfeifer <gerald@pfeifer.com>
33500 2020-12-28 Gerald Pfeifer <gerald@pfeifer.com>
33502 * doc/standards.texi (HSAIL): Remove section.
33504 2021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
33506 * configure: Re-generate.
33508 2021-01-05 Jakub Jelinek <jakub@redhat.com>
33510 * doc/invoke.texi (-std=c++20): Adjust for the publication of
33511 ISO 14882:2020 standard.
33512 * doc/standards.texi: Likewise.
33514 2021-01-05 Jakub Jelinek <jakub@redhat.com>
33516 PR tree-optimization/94802
33517 * expr.h (maybe_optimize_sub_cmp_0): Declare.
33518 * expr.c: Include tree-pretty-print.h and flags.h.
33519 (maybe_optimize_sub_cmp_0): New function.
33520 (do_store_flag): Use it.
33521 * cfgexpand.c (expand_gimple_cond): Likewise.
33523 2021-01-05 Richard Sandiford <richard.sandiford@arm.com>
33525 * mux-utils.h (pointer_mux::m_ptr): Tweak description of contents.
33526 * rtlanal.c (simple_regno_set): Tweak description to clarify the
33529 2021-01-05 Richard Biener <rguenther@suse.de>
33531 PR tree-optimization/98516
33532 * tree-vect-slp.c (vect_optimize_slp): Permute the incoming
33533 lanes when materializing on a VEC_PERM node.
33534 (vectorizable_slp_permutation): Dump the permute properly.
33536 2021-01-05 Richard Biener <rguenther@suse.de>
33538 * tree-vect-slp.c (vect_slp_region): Move debug counter
33539 to cover individual subgraphs.
33541 2021-01-05 Richard Biener <rguenther@suse.de>
33543 PR tree-optimization/98428
33544 * tree-vect-slp.c (vect_build_slp_tree_1): Properly reject
33545 vector lane extracts for loop vectorization.
33547 2021-01-05 Jakub Jelinek <jakub@redhat.com>
33549 PR tree-optimization/98514
33550 * tree-ssa-reassoc.c (bb_rank): Change type from long * to
33552 (operand_rank): Change type from hash_map<tree, long> to
33553 hash_map<tree, int64_t>.
33554 (phi_rank): Change return type from long to int64_t.
33555 (loop_carried_phi): Change block_rank variable type from long to
33557 (propagate_rank): Change return type, rank parameter type and
33558 op_rank variable type from long to int64_t.
33559 (find_operand_rank): Change return type from long to int64_t
33560 and change slot variable type from long * to int64_t *.
33561 (insert_operand_rank): Change rank parameter type from long to
33563 (get_rank): Change return type and rank variable type from long to
33564 int64_t. Use PRId64 instead of ld to print the rank.
33565 (init_reassoc): Change rank variable type from long to int64_t
33566 and adjust correspondingly bb_rank and operand_rank initialization.
33568 2021-01-05 Jakub Jelinek <jakub@redhat.com>
33570 PR tree-optimization/96928
33571 * tree-ssa-phiopt.c (xor_replacement): New function.
33572 (tree_ssa_phiopt_worker): Call it.
33574 2021-01-05 Jakub Jelinek <jakub@redhat.com>
33576 PR tree-optimization/96930
33577 * match.pd ((A / (1 << B)) -> (A >> B)): If A is extended
33578 from narrower value which has the same type as 1 << B, perform
33579 the right shift on the narrower value followed by extension.
33581 2021-01-05 Jakub Jelinek <jakub@redhat.com>
33583 PR tree-optimization/96239
33584 * gimple-ssa-store-merging.c (maybe_optimize_vector_constructor): New
33586 (get_status_for_store_merging): Don't return BB_INVALID for blocks
33587 with potential bswap optimizable CONSTRUCTORs.
33588 (pass_store_merging::execute): Optimize vector CONSTRUCTORs with bswap
33591 2021-01-05 Richard Biener <rguenther@suse.de>
33593 PR tree-optimization/98381
33594 * tree.c (vector_element_bits): Properly compute bool vector
33596 * tree-vect-loop.c (vectorizable_live_operation): Properly
33597 compute the last lane bit offset.
33599 2021-01-05 Uroš Bizjak <ubizjak@gmail.com>
33602 * config/i386/sse.md (sse_cvtps2pi): Redefine as define_insn_and_split.
33603 Clear the top 64 bytes of the input XMM register.
33604 (sse_cvttps2pi): Ditto.
33606 2021-01-05 Uroš Bizjak <ubizjak@gmail.com>
33609 * config/i386/xopintrin.h (_mm256_cmov_si256): New.
33611 2021-01-05 H.J. Lu <hjl.tools@gmail.com>
33614 * config/i386/xmmintrin.h (_mm_extract_pi16): Cast to unsigned
33617 2021-01-05 Claudiu Zissulescu <claziss@synopsys.com>
33619 * config/arc/arc.md (maddsidi4_split): Use ACC_REG_FIRST.
33620 (umaddsidi4_split): Likewise.
33622 2021-01-05 liuhongt <hongtao.liu@intel.com>
33625 * config/i386/sse.md (*sse2_pmovskb_zexthisi): New
33626 define_insn_and_split for zero_extend of subreg HI of pmovskb
33628 (*sse2_pmovskb_zexthisi): Add new combine splitters for
33629 zero_extend of not of subreg HI of pmovskb result.
33631 2021-01-05 Richard Sandiford <richard.sandiford@arm.com>
33634 * explow.c (convert_memory_address_addr_space_1): Handle UNSPECs
33636 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Use
33637 convert_memory_address to convert symbolic immediates to ptr_mode
33638 before forcing them to memory.
33640 2021-01-05 Richard Sandiford <richard.sandiford@arm.com>
33642 PR rtl-optimization/97144
33643 * recog.c (constrain_operands): Initialize matching_operand
33644 for each alternative, rather than only doing it once.
33646 2021-01-05 Richard Sandiford <richard.sandiford@arm.com>
33648 PR rtl-optimization/98403
33649 * rtl-ssa/changes.cc (function_info::finalize_new_accesses): Explain
33650 why we don't remove call clobbers.
33651 (function_info::apply_changes_to_insn): Don't attempt to add
33652 call clobbers here.
33654 2021-01-05 Richard Sandiford <richard.sandiford@arm.com>
33656 PR tree-optimization/98371
33657 * tree-vect-loop.c (vect_reanalyze_as_main_loop): New function.
33658 (vect_analyze_loop): If an epilogue loop appears to be cheaper
33659 than the main loop, re-analyze it as a main loop before adopting
33662 2021-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33665 * configure.ac (NETLIBS): Determine using AX_LIB_SOCKET_NSL.
33666 * aclocal.m4, configure: Regenerate.
33667 * Makefile.in (NETLIBS): Define.
33668 (BACKEND): Remove $(CODYLIB).
33670 2021-01-05 Jakub Jelinek <jakub@redhat.com>
33672 PR rtl-optimization/98334
33673 * simplify-rtx.c (simplify_context::simplify_binary_operation_1):
33674 Optimize (X - 1) * Y + Y to X * Y or (X + 1) * Y - Y to X * Y.
33676 2021-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
33678 * tree-inline.c (expand_call_inline): Restore input_location.
33679 Return result from recursive call.
33681 2021-01-04 Richard Sandiford <richard.sandiford@arm.com>
33683 PR tree-optimization/95401
33684 * config/aarch64/aarch64-sve-builtins.cc
33685 (gimple_folder::load_store_cookie): Use bits rather than bytes
33686 for the alignment argument to IFN_MASK_LOAD and IFN_MASK_STORE.
33687 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref): Likewise.
33688 * tree-vect-stmts.c (vectorizable_store): Likewise.
33689 (vectorizable_load): Likewise.
33691 2021-01-04 Richard Biener <rguenther@suse.de>
33693 PR tree-optimization/98308
33694 * tree-vect-stmts.c (vectorizable_load): Set invariant mask
33697 2021-01-04 Jakub Jelinek <jakub@redhat.com>
33699 PR tree-optimization/95771
33700 * tree-ssa-loop-niter.c (number_of_iterations_popcount): Handle types
33701 with precision smaller than int's precision and types with precision
33702 twice as large as long long. Formatting fixes.
33704 2021-01-04 Richard Biener <rguenther@suse.de>
33706 PR tree-optimization/98464
33707 * tree-ssa-sccvn.c (vn_valueize_for_srt): Rename from ...
33708 (vn_valueize_wrapper): ... this. Temporarily adjust vn_context_bb.
33709 (process_bb): Adjust.
33711 2021-01-04 Matthew Malcomson <matthew.malcomson@arm.com>
33714 * doc/invoke.texi (-fsanitize=address): Fix wording describing
33715 clash with -fsanitize=hwaddress.
33717 2021-01-04 Richard Biener <rguenther@suse.de>
33719 PR tree-optimization/98282
33720 * tree-ssa-sccvn.c (vn_get_stmt_kind): Classify tcc_reference on
33721 invariants as VN_NARY.
33723 2021-01-04 Richard Sandiford <richard.sandiford@arm.com>
33726 * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Accept
33727 aarch64_simd_reg_or_zero for operand 2. Use the combinez patterns
33728 to handle zero operands.
33730 2021-01-04 Richard Sandiford <richard.sandiford@arm.com>
33732 * config/aarch64/aarch64.c (offset_6bit_signed_scaled_p): New function.
33733 (offset_6bit_unsigned_scaled_p): Fix typo in comment.
33734 (aarch64_sve_prefetch_operand_p): Accept MUL VLs in the range
33737 2021-01-04 Richard Biener <rguenther@suse.de>
33739 PR tree-optimization/98393
33740 * tree-vect-slp.c (vect_build_slp_tree): Properly zero matches
33741 when hitting the limit.
33743 2021-01-04 Richard Biener <rguenther@suse.de>
33745 PR tree-optimization/98291
33746 * tree-vect-loop.c (vectorizable_reduction): Bypass
33747 associativity check for SLP reductions with VF 1.
33749 2021-01-04 Jakub Jelinek <jakub@redhat.com>
33751 PR tree-optimization/96782
33752 * match.pd (x == ~x -> false, x != ~x -> true): New simplifications.
33754 2021-01-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
33756 * collect-utils.c (collect_execute): Check dumppfx.
33757 * collect2.c (maybe_run_lto_and_relink, do_link): Pass atsuffix
33758 to collect_execute.
33759 (do_link): Add new parameter atsuffix.
33760 (main): Handle -dumpdir option. Skip one argument for
33761 -o, -isystem and -B options.
33762 * gcc.c (make_at_file): New helper function.
33763 (close_at_file): Use it.
33765 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
33767 * config/darwin.h (MIN_LD64_NO_COAL_SECTS): Adjust.
33768 Amend handling for LD64_VERSION fallback defaults.
33770 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
33772 * config.gcc: Compute default version information
33773 from the configured target. Likewise defaults for
33775 * config/darwin10.h: Removed.
33776 * config/darwin12.h: Removed.
33777 * config/darwin9.h: Removed.
33778 * config/rs6000/darwin8.h: Removed.
33780 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
33782 * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Delete.
33784 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
33786 * config/darwin9.h (STACK_CHECK_STATIC_BUILTIN): Move from here..
33787 * config/darwin.h (STACK_CHECK_STATIC_BUILTIN): .. to here.
33789 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
33791 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move from
33793 * config/darwin.h (LINK_GCC_C_SEQUENCE_SPEC): ... to here.
33795 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
33797 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move the spec
33798 for the Darwin10 unwinder stub from here ...
33799 * config/darwin.h (LINK_COMMAND_SPEC_A): ... to here.
33801 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
33803 * config/darwin.h (DSYMUTIL_SPEC): Default to DWARF
33804 (ASM_DEBUG_SPEC):Only define if the assembler supports
33806 (PREFERRED_DEBUGGING_TYPE): Default to DWARF.
33807 (DARWIN_PREFER_DWARF): Define.
33808 * config/darwin9.h (PREFERRED_DEBUGGING_TYPE): Remove.
33809 (DARWIN_PREFER_DWARF): Likewise
33810 (DSYMUTIL_SPEC): Likewise.
33811 (COLLECT_RUN_DSYMUTIL): Likewise.
33812 (ASM_DEBUG_SPEC): Likewise.
33813 (ASM_DEBUG_OPTION_SPEC): Likewise.
33815 2021-01-02 Jan Hubicka <jh@suse.cz>
33817 * cfg.c (free_block): ggc_free bb.
33819 2021-01-01 Jakub Jelinek <jakub@redhat.com>
33821 * gcc.c (process_command): Update copyright notice dates.
33822 * gcov-dump.c (print_version): Ditto.
33823 * gcov.c (print_version): Ditto.
33824 * gcov-tool.c (print_version): Ditto.
33825 * gengtype.c (create_file): Ditto.
33826 * doc/cpp.texi: Bump @copying's copyright year.
33827 * doc/cppinternals.texi: Ditto.
33828 * doc/gcc.texi: Ditto.
33829 * doc/gccint.texi: Ditto.
33830 * doc/gcov.texi: Ditto.
33831 * doc/install.texi: Ditto.
33832 * doc/invoke.texi: Ditto.
33834 2021-01-01 Jakub Jelinek <jakub@redhat.com>
33836 * ChangeLog-2020: Rotate ChangeLog. New file.
33839 Copyright (C) 2021 Free Software Foundation, Inc.
33841 Copying and distribution of this file, with or without modification,
33842 are permitted in any medium without royalty provided the copyright
33843 notice and this notice are preserved.