1 2021-08-27 Jeff Law <jlaw@localhost.localdomain>
3 * config/h8300/bitfield.md (cstore<mode>4): Remove expander.
4 * config/h8300/h8300.c (h8300_expand_branch): Remove function.
5 * config/h8300/h8300-protos.h (h8300_expadn_branch): Remove prototype.
6 * config/h8300/h8300.md (eqne): New code iterator.
7 (geultu, geultu_to_c): Similarly.
8 * config/h8300/testcompare.md (cstore<mode>4): Dummy expander.
9 (store_c_<mode>, store_c_i_<mode>): New define_insn_and_splits
10 (cmp<mode>_c): New pattern
12 2021-08-27 Jeff Law <jlaw@localhost.localdomain>
14 * tree-ssa-dom.c (reduce_vector_comparison_to_scalar_comparison): New
16 (dom_opt_dom_walker::optimize_stmt): Use it.
18 2021-08-27 Iain Sandoe <iain@sandoe.co.uk>
20 * config/darwin.c (finalize_ctors): Add a section-start linker-
22 (finalize_dtors): Likewise.
23 * config/darwin.h (MIN_LD64_INIT_TERM_START_LABELS): New.
25 2021-08-27 Bill Schmidt <wschmidt@linux.ibm.com>
27 * config/rs6000/rs6000-call.c (rs6000-builtins.h): New #include.
28 (rs6000_init_builtins): Call rs6000_init_generated_builtins. Skip the
29 old initialization logic when new builtins are enabled.
30 * config/rs6000/rs6000-gen-builtins.c (write_decls): Rename
31 rs6000_autoinit_builtins to rs6000_init_generated_builtins.
32 (write_init_file): Likewise.
34 2021-08-27 Iain Sandoe <iain@sandoe.co.uk>
36 * configure.ac (darwin2[[0-9]]* | darwin19*): Alter use of
37 gcc_GAS_CHECK_FEATURE to remove an extraneous parameter.
38 (amdgcn-* | gcn-*) Likewise.
40 2021-08-27 Anthony Sharp <anthonysharp15@gmail.com>
42 * symbol-summary.h: Added missing template keyword.
44 2021-08-27 Richard Biener <rguenther@suse.de>
46 PR tree-optimization/45178
47 * tree-ssa-dce.c (find_obviously_necessary_stmts): For
48 infinite loops without exit do not mark control dependent
49 edges of the latch necessary.
51 2021-08-27 konglin1 <lingling.kong@intel.com>
54 * config/i386/sse.md: (<avx512>scattersi<mode>): Add mask operand to
56 (<avx512>scattersi<mode>): Likewise.
57 (*avx512f_scattersi<VI48F:mode>): Merge mask operand to set_dest.
58 (*avx512f_scatterdi<VI48F:mode>): Likewise
60 2021-08-27 Kewen Lin <linkw@linux.ibm.com>
62 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function): Add
63 support for built-in functions MISC_BUILTIN_DIVWE, MISC_BUILTIN_DIVWEU,
64 MISC_BUILTIN_DIVDE, MISC_BUILTIN_DIVDEU, P10_BUILTIN_CFUGED,
65 P10_BUILTIN_CNTLZDM, P10_BUILTIN_CNTTZDM, P10_BUILTIN_PDEPD and
66 P10_BUILTIN_PEXTD on Power10.
68 2021-08-27 Kewen Lin <linkw@linux.ibm.com>
70 * config/rs6000/rs6000-call.c (builtin_function_type): Add unsigned
71 signedness for some Power10 bifs.
73 2021-08-27 David Edelsohn <dje.gcc@gmail.com>
76 * config/rs6000/rs6000.c (rs6000_adjust_field_align): Use
77 computed alignment if the entire struct has attribute packed.
79 2021-08-27 liuhongt <hongtao.liu@intel.com>
83 * config/i386/i386.c (ix86_gimple_fold_builtin): Fold
84 IX86_BUILTIN_SHUFPD512, IX86_BUILTIN_SHUFPS512,
85 IX86_BUILTIN_SHUFPD256, IX86_BUILTIN_SHUFPS,
86 IX86_BUILTIN_SHUFPS256.
87 (ix86_masked_all_ones): New function.
89 2021-08-26 Uroš Bizjak <ubizjak@gmail.com>
91 * config/i386/i386.md (*btr<mode>_1): Call force_reg unconditionally.
92 (conditional moves with memory inputs splitters): Ditto.
93 * config/i386/sse.md (one_cmpl<mode>2): Simplify.
95 2021-08-26 Jan Hubicka <hubicka@ucw.cz>
97 * ipa-modref-tree.h (modref_access_node::try_merge_with): Restart
100 2021-08-26 Bill Schmidt <wschmidt@linux.ibm.com>
102 * config/rs6000/rs6000-overload.def: Add remaining overloads.
104 2021-08-26 Bill Schmidt <wschmidt@linux.ibm.com>
106 * config/rs6000/rs6000-builtin-new.def: Add cell stanza.
108 2021-08-26 Bill Schmidt <wschmidt@linux.ibm.com>
110 * config/rs6000/rs6000-builtin-new.def: Add ieee128-hw, dfp,
111 crypto, and htm stanzas.
113 2021-08-26 Bill Schmidt <wschmidt@linux.ibm.com>
115 * config/rs6000/rs6000-builtin-new.def: Add mma stanza.
117 2021-08-26 Martin Sebor <msebor@redhat.com>
119 * tree-ssa-uninit.c (warn_uninit): Refactor and simplify.
120 (warn_uninit_phi_uses): Remove argument from calls to warn_uninit.
121 (warn_uninitialized_vars): Same. Reduce visibility of locals.
122 (warn_uninitialized_phi): Same.
124 2021-08-26 Roger Sayle <roger@nextmovesoftware.com>
126 * tree-ssa-ccp.c (get_individual_bits): Helper function to
127 extract the individual bits from a widest_int constant (mask).
128 (gray_code_bit_flips): New read-only table for effiently
129 enumerating permutations/combinations of bits.
130 (bit_value_binop) [LROTATE_EXPR, RROTATE_EXPR]: Handle rotates
131 by unknown counts that are guaranteed less than the target
132 precision and four or fewer unknown bits by enumeration.
133 [LSHIFT_EXPR, RSHIFT_EXPR]: Likewise, also handle shifts by
134 enumeration under the same conditions. Handle remaining
135 shifts as a mask based upon the minimum possible shift value.
137 2021-08-26 Roger Sayle <roger@nextmovesoftware.com>
138 Richard Biener <rguenther@suse.de>
140 * match.pd (shift transformations): Remove a redundant
141 !POINTER_TYPE_P check.
143 2021-08-26 Uroš Bizjak <ubizjak@gmail.com>
146 * config/i386/i386.md (cmove reg-reg move elimination peephole2s):
147 Set all_regs to true in the call to replace_rtx.
149 2021-08-26 Jan Hubicka <hubicka@ucw.cz>
151 * ipa-modref-tree.c (test_insert_search_collapse): Update test.
152 * ipa-modref-tree.h (modref_base_node::insert): Be smarter when
153 hiting --param modref-max-refs limit.
154 (modref_tree:insert_base): Be smarter when hitting
155 --param modref-max-bases limit. Add new parameter REF.
156 (modref_tree:insert): Update.
157 (modref_tree:merge): Update.
158 * ipa-modref.c (read_modref_records): Update.
160 2021-08-26 Jan Hubicka <hubicka@ucw.cz>
162 * params.opt: (modref-max-adjustments): Add full stop.
164 2021-08-26 Jan Hubicka <hubicka@ucw.cz>
166 * ipa-modref-tree.h (modref_ref_node::verify): New member
168 (modref_ref_node::insert): Use it.
169 (modref_ref_node::try_mere_with): Fix off by one error.
171 2021-08-26 Martin Liska <mliska@suse.cz>
172 Stefan Kneifel <stefan.kneifel@bluewin.ch>
174 * cgraph.h (create_version_clone_with_body): Add new parameter.
175 * cgraphclones.c: Likewise.
176 * multiple_target.c (create_dispatcher_calls): Do not use
178 (create_target_clone): Likewise here.
180 2021-08-26 Jonathan Yong <10walls@gmail.com>
182 * doc/extend.texi: Add note about reserved priorities
183 to the constructor attribute.
185 2021-08-25 Martin Sebor <msebor@redhat.com>
187 * gimple-range-cache.cc (ssa_global_cache::dump): Avoid printing
188 range table header alone.
189 * gimple-range.cc (gimple_ranger::export_global_ranges): Same.
191 2021-08-25 Jan Hubicka <hubicka@ucw.cz>
193 * doc/invoke.texi: Document --param modref-max-adjustments.
194 * ipa-modref-tree.c (test_insert_search_collapse): Update.
195 (test_merge): Update.
196 * ipa-modref-tree.h (struct modref_access_node): Add adjustments;
197 (modref_access_node::operator==): Fix handling of access ranges.
198 (modref_access_node::contains): Constify parameter; handle also
199 mismatched parm offsets.
200 (modref_access_node::update): New function.
201 (modref_access_node::merge): New function.
202 (unspecified_modref_access_node): Update constructor.
203 (modref_ref_node::insert_access): Add record_adjustments parameter;
205 (modref_ref_node::try_merge_with): New private function.
206 (modref_tree::insert): New record_adjustments parameter.
207 (modref_tree::merge): New record_adjustments parameter.
208 (modref_tree::copy_from): Update.
209 * ipa-modref.c (dump_access): Dump adjustments field.
210 (get_access): Update constructor.
211 (record_access): Update call of insert.
212 (record_access_lto): Update call of insert.
213 (merge_call_side_effects): Add record_adjustments parameter.
214 (get_access_for_fnspec): Update.
215 (process_fnspec): Update.
216 (analyze_call): Update.
217 (analyze_function): Update.
218 (read_modref_records): Update.
219 (ipa_merge_modref_summary_after_inlining): Update.
220 (propagate_unknown_call): Update.
221 (modref_propagate_in_scc): Update.
222 * params.opt (param-max-modref-adjustments=): New.
224 2021-08-25 Michael Meissner <meissner@linux.ibm.com>
226 * config/rs6000/vsx.md (UNSPEC_XXSPLTIDP): Rename from
228 (xxspltiw_v4si): Use vecperm type attribute.
229 (xxspltiw_v4si_inst): Use vecperm type attribute.
230 (xxspltiw_v4sf_inst): Likewise.
231 (xxspltidp_v2df): Use vecperm type attribute. Use
232 UNSPEC_XXSPLTIDP instead of UNSPEC_XXSPLTID.
233 (xxspltidp_v2df_inst): Likewise.
234 (xxsplti32dx_v4si): Use vecperm type attribute.
235 (xxsplti32dx_v4si_inst): Likewise.
236 (xxsplti32dx_v4sf_inst): Likewise.
237 (xxblend_<mode>): Likewise.
239 (xxpermx_inst): Likewise.
242 2021-08-25 Lewis Hyatt <lhyatt@gmail.com>
245 * coretypes.h (typedef diagnostic_input_charset_callback): Declare.
246 * diagnostic.c (diagnostic_initialize_input_context): New function.
247 * diagnostic.h (diagnostic_initialize_input_context): Declare.
248 * input.c (default_charset_callback): New function.
249 (file_cache::initialize_input_context): New function.
250 (file_cache_slot::create): Added ability to convert the input
251 according to the input context.
252 (file_cache::file_cache): Initialize the new input context.
253 (class file_cache_slot): Added new m_alloc_offset member.
254 (file_cache_slot::file_cache_slot): Initialize the new member.
255 (file_cache_slot::~file_cache_slot): Handle potentially offset buffer.
256 (file_cache_slot::maybe_grow): Likewise.
257 (file_cache_slot::needs_read_p): Handle NULL fp, which is now possible.
258 (file_cache_slot::get_next_line): Likewise.
259 * input.h (class file_cache): Added input context member.
261 2021-08-25 Richard Biener <rguenther@suse.de>
263 PR tree-optimization/102046
264 * tree-vect-slp.c (vect_build_slp_tree_2): Conservatively
265 update ->any_pattern when swapping operands.
267 2021-08-25 Hongyu Wang <hongyu.wang@intel.com>
270 * config/i386/i386.c (ix86_live_on_entry): Adjust comment.
271 (ix86_decompose_address): Remove retval check for ASHIFT,
272 allow non-canonical zero extend if AND mask covers ASHIFT
274 (ix86_legitimate_address_p): Adjust condition for decompose.
275 (ix86_rtx_costs): Adjust cost for lea with non-canonical
277 Co-Authored by: Uros Bizjak <ubizjak@gmail.com>
279 2021-08-25 Jiufu Guo <guojiufu@linux.ibm.com>
281 PR tree-optimization/101145
282 * tree-ssa-loop-niter.c (number_of_iterations_until_wrap):
284 (number_of_iterations_lt): Invoke above function.
285 (adjust_cond_for_loop_until_wrap):
286 Merge to number_of_iterations_until_wrap.
287 (number_of_iterations_cond): Update invokes for
288 adjust_cond_for_loop_until_wrap and number_of_iterations_lt.
290 2021-08-25 konglin1 <lingling.kong@intel.com>
293 * config/i386/avx512dqintrin.h (_mm512_fpclass_ps_mask): Fix
295 (_mm512_mask_fpclass_ps_mask): Ditto.
297 2021-08-25 Kewen Lin <linkw@linux.ibm.com>
299 * config/rs6000/altivec.md (vec_unpacku_hi_v16qi): Remove.
300 (vec_unpacku_hi_v8hi): Likewise.
301 (vec_unpacku_lo_v16qi): Likewise.
302 (vec_unpacku_lo_v8hi): Likewise.
303 (vec_unpacku_hi_<VP_small_lc>): New define_expand.
304 (vec_unpacku_lo_<VP_small_lc>): Likewise.
306 2021-08-24 David Edelsohn <dje.gcc@gmail.com>
308 * config/rs6000/aix.h (SYSTEM_IMPLICIT_EXTERN_C): Delete.
309 * config/rs6000/aix71.h (SYSTEM_IMPLICIT_EXTERN_C): Define.
310 * config/rs6000/aix72.h (SYSTEM_IMPLICIT_EXTERN_C): Define.
311 * config/rs6000/aix73.h (TARGET_AIX_VERSION): Increase to 73.
313 2021-08-24 Roger Sayle <roger@nextmovesoftware.com>
316 * simplify-rtx.c (simplify_truncation): When comparing precisions
317 use "subreg_prec" variable, not "subreg_mode".
319 2021-08-24 Bill Schmidt <wschmidt@linux.ibm.com>
321 * config/rs6000/rs6000-builtin-new.def: Add power10 and power10-64
324 2021-08-24 Bill Schmidt <wschmidt@linux.ibm.com>
326 * config/rs6000/rs6000-call.c (rs6000_init_builtins): Initialize
327 various pointer type nodes.
328 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add enum
329 values for various pointer types.
330 (ptr_V16QI_type_node): New macro.
331 (ptr_V1TI_type_node): New macro.
332 (ptr_V2DI_type_node): New macro.
333 (ptr_V2DF_type_node): New macro.
334 (ptr_V4SI_type_node): New macro.
335 (ptr_V4SF_type_node): New macro.
336 (ptr_V8HI_type_node): New macro.
337 (ptr_unsigned_V16QI_type_node): New macro.
338 (ptr_unsigned_V1TI_type_node): New macro.
339 (ptr_unsigned_V8HI_type_node): New macro.
340 (ptr_unsigned_V4SI_type_node): New macro.
341 (ptr_unsigned_V2DI_type_node): New macro.
342 (ptr_bool_V16QI_type_node): New macro.
343 (ptr_bool_V8HI_type_node): New macro.
344 (ptr_bool_V4SI_type_node): New macro.
345 (ptr_bool_V2DI_type_node): New macro.
346 (ptr_bool_V1TI_type_node): New macro.
347 (ptr_pixel_type_node): New macro.
348 (ptr_intQI_type_node): New macro.
349 (ptr_uintQI_type_node): New macro.
350 (ptr_intHI_type_node): New macro.
351 (ptr_uintHI_type_node): New macro.
352 (ptr_intSI_type_node): New macro.
353 (ptr_uintSI_type_node): New macro.
354 (ptr_intDI_type_node): New macro.
355 (ptr_uintDI_type_node): New macro.
356 (ptr_intTI_type_node): New macro.
357 (ptr_uintTI_type_node): New macro.
358 (ptr_long_integer_type_node): New macro.
359 (ptr_long_unsigned_type_node): New macro.
360 (ptr_float_type_node): New macro.
361 (ptr_double_type_node): New macro.
362 (ptr_long_double_type_node): New macro.
363 (ptr_dfloat64_type_node): New macro.
364 (ptr_dfloat128_type_node): New macro.
365 (ptr_ieee128_type_node): New macro.
366 (ptr_ibm128_type_node): New macro.
367 (ptr_vector_pair_type_node): New macro.
368 (ptr_vector_quad_type_node): New macro.
369 (ptr_long_long_integer_type_node): New macro.
370 (ptr_long_long_unsigned_type_node): New macro.
372 2021-08-24 Bill Schmidt <wschmidt@linux.ibm.com>
374 * config/rs6000/rs6000-builtin-new.def: Add power9-vector, power9,
375 and power9-64 stanzas.
377 2021-08-24 Roger Sayle <roger@nextmovesoftware.com>
378 Tom de Vries <tdevries@suse.de>
380 * config.gcc (nvptx-*-*): Define {c,c++}_target_objs.
381 * config/nvptx/nvptx-protos.h (nvptx_cpu_cpp_builtins): Prototype.
382 * config/nvptx/nvptx.h (TARGET_CPU_CPP_BUILTINS): Implement with
383 a call to the new nvptx_cpu_cpp_builtins function in nvptx-c.c.
384 * config/nvptx/t-nvptx (nvptx-c.o): New rule.
385 * config/nvptx/nvptx-c.c: New source file.
386 (nvptx_cpu_cpp_builtins): Move implementation here.
388 2021-08-24 Martin Sebor <msebor@redhat.com>
392 * gimple-ssa-warn-access.cc (maybe_warn_for_bound): Tighten up
393 the phrasing of a warning.
394 (check_access): Use the remaining size after subtracting any offset
395 rather than the whole object size.
396 * pointer-query.cc (access_ref::get_ref): Clear BASE0 flag if it's
397 clear for any nonnull PHI argument.
398 (compute_objsize): Clear argument.
400 2021-08-24 Bill Schmidt <wschmidt@linux.ibm.com>
402 * config/rs6000/rs6000-builtin-new.def: Add power8-vector stanza.
404 2021-08-24 Bill Schmidt <wschmidt@linux.ibm.com>
406 * config/rs6000/rs6000-builtin-new.def: Add power7 and power7-64
409 2021-08-24 Andrew MacLeod <amacleod@redhat.com>
411 * value-relation.cc (rr_transitive_table): New.
412 (relation_transitive): New.
413 (value_relation::swap): Remove.
414 (value_relation::apply_transitive): New.
415 (relation_oracle::relation_oracle): Allocate a new tmp bitmap.
416 (relation_oracle::register_relation): Call register_transitives.
417 (relation_oracle::register_transitives): New.
418 * value-relation.h (relation_oracle): Add new temporary bitmap and
421 2021-08-24 H.J. Lu <hjl.tools@gmail.com>
424 * config/i386/i386-expand.c (ix86_expand_vector_move): Broadcast
425 from integer to a pseudo vector register.
427 2021-08-24 Richard Biener <rguenther@suse.de>
429 PR tree-optimization/100089
430 * tree-vectorizer.h (vect_slp_bb): Rename to ...
431 (vect_slp_if_converted_bb): ... this and get the original
432 loop as new argument.
433 * tree-vectorizer.c (try_vectorize_loop_1): Revert previous fix,
434 pass original loop to vect_slp_if_converted_bb.
435 * tree-vect-slp.c (vect_bb_vectorization_profitable_p):
436 If orig_loop was passed scan the not vectorized stmts
437 for COND_EXPRs and force not profitable if found.
438 (vect_slp_region): Pass down all SLP instances to costing
439 if orig_loop was specified.
440 (vect_slp_bbs): Pass through orig_loop.
441 (vect_slp_bb): Rename to ...
442 (vect_slp_if_converted_bb): ... this and get the original
443 loop as new argument.
444 (vect_slp_function): Adjust.
446 2021-08-24 Richard Earnshaw <rearnsha@arm.com>
449 * config/arm/arm.md (attribute arch): Add fix_vlldm.
450 (arch_enabled): Use it.
451 * config/arm/vfp.md (lazy_store_multiple_insn): Add alternative to
452 use when erratum mitigation is needed.
454 2021-08-24 Richard Earnshaw <rearnsha@arm.com>
457 * config/arm/arm.opt (mfix-cmse-cve-2021-35465): New option.
458 * doc/invoke.texi (Arm Options): Document it.
459 * config/arm/arm-cpus.in (quirk_vlldm): New feature bit.
460 (ALL_QUIRKS): Add quirk_vlldm.
461 (cortex-m33): Add quirk_vlldm.
462 (cortex-m35p, cortex-m55): Likewise.
463 * config/arm/arm.c (arm_option_override): Enable fix_vlldm if
464 targetting an affected CPU and not explicitly controlled on
467 2021-08-24 Richard Earnshaw <rearnsha@arm.com>
469 * config/arm/vfp.md (lazy_store_multiple_insn): Rewrite as valid RTL.
470 (lazy_load_multiple_insn): Likewise.
472 2021-08-24 liuhongt <hongtao.liu@intel.com>
475 * config/i386/sse.md (<avx512>_vternlog<mode><sd_maskz_name>):
476 Enable avx512 embedded broadcast.
477 (*<avx512>_vternlog<mode>_all): Ditto.
478 (<avx512>_vternlog<mode>_mask): Ditto.
480 2021-08-24 liuhongt <hongtao.liu@intel.com>
483 * config/i386/i386.c (ix86_rtx_costs): Define cost for
485 * config/i386/i386.h (STRIP_UNARY): New macro.
486 * config/i386/predicates.md (reg_or_notreg_operand): New
488 * config/i386/sse.md (*<avx512>_vternlog<mode>_all): New define_insn.
489 (*<avx512>_vternlog<mode>_1): New pre_reload
490 define_insn_and_split.
491 (*<avx512>_vternlog<mode>_2): Ditto.
492 (*<avx512>_vternlog<mode>_3): Ditto.
493 (any_logic1,any_logic2): New code iterator.
494 (logic_op): New code attribute.
495 (ternlogsuffix): Extend to VNxDF and VNxSF.
497 2021-08-24 Richard Biener <rguenther@suse.de>
499 * doc/invoke.texi (vect-inner-loop-cost-factor): Adjust.
500 * params.opt (--param vect-inner-loop-cost-factor): Adjust
502 * tree-vect-loop.c (vect_analyze_loop_form): Initialize
503 inner_loop_cost_factor to the minimum of the estimated number
504 of iterations of the inner loop and vect-inner-loop-cost-factor.
506 2021-08-24 Roger Sayle <roger@nextmovesoftware.com>
507 Richard Biener <rguenther@suse.de>
509 * config/i386/i386-features.c (compute_convert_gain): Provide
510 more accurate values for CONST_INT, when optimizing for size.
511 * config/i386/i386.c (COSTS_N_BYTES): Move definition from here...
512 * config/i386/i386.h (COSTS_N_BYTES): to here.
514 2021-08-24 Roger Sayle <roger@nextmovesoftware.com>
515 Jakub Jelinek <jakub@redhat.com>
518 * match.pd (shift transformations): Add an additional check for
519 !POINTER_TYPE_P in the recently added left shift transformation.
521 2021-08-24 liuhongt <hongtao.liu@intel.com>
523 PR tree-optimization/100089
524 * tree-vectorizer.c (try_vectorize_loop_1): Disable slp in
525 loop vectorizer when cost model is very-cheap.
527 2021-08-23 Bill Schmidt <wschmidt@linux.ibm.com>
529 * config/rs6000/rs6000-gen-builtins.c (parse_bif_entry): Don't call
530 asprintf, which is not available on AIX.
532 2021-08-23 Bill Schmidt <wschmidt@linux.ibm.com>
534 * config.gcc (target_gtfiles): Add ./rs6000-builtins.h.
535 * config/rs6000/t-rs6000 (EXTRA_GTYPE_DEPS): Set.
537 2021-08-23 Bill Schmidt <wschmidt@linux.ibm.com>
539 * config.gcc (powerpc*-*-*): Add rs6000-builtins.o to extra_objs.
540 * config/rs6000/rs6000-gen-builtins.c (main): Close init_file
542 * config/rs6000/t-rs6000 (rs6000-gen-builtins.o): New target.
543 (rbtree.o): Likewise.
544 (rs6000-gen-builtins): Likewise.
545 (rs6000-builtins.c): Likewise.
546 (rs6000-builtins.h): Likewise.
547 (rs6000.o): Add dependency.
548 (EXTRA_HEADERS): Add rs6000-vecdefines.h.
549 (rs6000-vecdefines.h): New target.
550 (rs6000-builtins.o): Likewise.
551 (rs6000-call.o): Add rs6000-builtins.h as a dependency.
552 (rs6000-c.o): Likewise.
554 2021-08-23 Bill Schmidt <wschmidt@linux.ibm.com>
557 * config/rs6000/rs6000-gen-builtins.c (consume_whitespace):
558 Diagnose buffer overrun.
559 (safe_inc_pos): Fix overrun detection.
560 (match_identifier): Diagnose buffer overrun.
561 (match_integer): Likewise.
562 (match_to_right_bracket): Likewise.
564 2021-08-23 Jan Hubicka <hubicka@ucw.cz>
566 * ipa-modref-tree.h (modref_access_node::range_info_useful_p):
567 Improve range compare.
568 (modref_access_node::contains): New member function.
569 (modref_access_node::search): Remove.
570 (modref_access_node::insert): Be smarter about subaccesses.
572 2021-08-23 Thomas Schwinge <thomas@codesourcery.com>
574 * config/i386/i386-options.c (ix86_omp_device_kind_arch_isa)
575 <omp_device_arch> [ACCEL_COMPILER]: Match "intel_mic".
576 * config/i386/t-omp-device (omp-device-properties-i386) <arch>:
579 2021-08-23 Jeff Law <jlaw@localhost.localdomain>
581 * config/h8300/h8300-protos.h (h8300_expand_epilogue): Add new
583 * config/h8300/jumpcall.md (call, call_value): Restrict to
584 !SIBLING_CALL_P cases.
585 (subcall, sibcall_value): New patterns & expanders.
586 * config/h8300/proepi.md (epilogue): Pass new argument to
587 h8300_expand_epilogue.
588 (sibcall_epilogue): New expander.
589 * config/h8300/h8300.c (h8300_expand_epilogue): Handle sibcall
591 (h8300_ok_for_sibcall_p): New function.
592 (TARGET_FUNCTION_OK_FOR_SIBCALL): define.
594 2021-08-23 Roger Sayle <roger@nextmovesoftware.com>
596 * simplify-rtx.c (simplify_unary_operation_1): [TRUNCATE]:
597 Handle case where the operand is already the desired mode.
599 2021-08-23 Richard Biener <rguenther@suse.de>
602 * tree-ssa-structalias.c (ipa_pta_execute): Check in_other_partition
603 in addition to has_gimple_body.
605 2021-08-23 Jan Hubicka <hubicka@ucw.cz>
608 * ipa-modref.c (analyze_ssa_name_flags): Fix merging of
611 2021-08-23 Martin Liska <mliska@suse.cz>
613 * doc/invoke.texi: Put the option out of -mxl-mode-app-model
616 2021-08-23 Richard Biener <rguenther@suse.de>
618 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
619 Properly scale the inner loop cost only once.
621 2021-08-23 Roger Sayle <roger@nextmovesoftware.com>
623 * tree-ssa-ccp.c (bit_value_binop) [TRUNC_MOD_EXPR, TRUNC_DIV_EXPR]:
624 Provide bounds for unsigned (and signed with non-negative operands)
625 division and modulus.
627 2021-08-23 Roger Sayle <roger@nextmovesoftware.com>
629 * simplify-rtx.c (simplify_truncation): Generalize simplification
630 of (truncate:A (subreg:B X)).
631 (simplify_unary_operation_1) [FLOAT_TRUNCATE, FLOAT_EXTEND,
632 SIGN_EXTEND, ZERO_EXTEND]: Handle cases where the operand
633 already has the desired machine mode.
634 (test_scalar_int_ops): Add tests that useless extensions and
635 truncations are optimized away.
636 (test_scalar_int_ext_ops): New self-test function to confirm
637 that truncations of extensions are correctly simplified.
638 (test_scalar_int_ext_ops2): New self-test function to check
639 truncations of truncations, extensions of extensions, and
640 truncations of extensions.
641 (test_scalar_ops): Call the above two functions with a
642 representative sampling of integer machine modes.
644 2021-08-23 Roger Sayle <roger@nextmovesoftware.com>
646 * match.pd (shift transformations): Change the sign of an
647 LSHIFT_EXPR if it reduces the number of explicit conversions.
649 2021-08-23 Jakub Jelinek <jakub@redhat.com>
651 PR tree-optimization/86723
652 * gimple-ssa-store-merging.c (find_bswap_or_nop_finalize): Add
653 cast64_to_32 argument, set *cast64_to_32 to false, unless n is
654 non-memory permutation of 64-bit src which only has bytes of
655 0 or [5..8] and n->range is 4.
656 (find_bswap_or_nop): Add cast64_to_32 and mask arguments, adjust
657 find_bswap_or_nop_finalize caller, support bswap with some bytes
658 zeroed, as long as at least two bytes are not zeroed.
659 (bswap_replace): Add mask argument and handle masking of bswap
661 (maybe_optimize_vector_constructor): Adjust find_bswap_or_nop
662 caller, punt if cast64_to_32 or mask is not all ones.
663 (pass_optimize_bswap::execute): Adjust find_bswap_or_nop_finalize
664 caller, for now punt if cast64_to_32.
666 2021-08-23 Richard Biener <rguenther@suse.de>
668 PR tree-optimization/79334
669 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record
670 a type also for COMPONENT_REFs.
671 (vn_reference_may_trap): Check ARRAY_REF with constant index
672 against the array domain.
674 2021-08-23 liuhongt <hongtao.liu@intel.com>
677 * config/i386/sse.md (*avx512f_pshufb_truncv8hiv8qi_1): Add
678 TARGET_AVX512BW to condition.
680 2021-08-23 Jakub Jelinek <jakub@redhat.com>
683 * dwarf2out.c (gen_variable_die): Add DW_AT_location for global
684 register variables already during early_dwarf if possible.
686 2021-08-23 Christophe Lyon <christophe.lyon@foss.st.com>
688 * config/arm/arm_mve.h: Fix __arm_vctp16q return type.
690 2021-08-23 Christophe Lyon <christophe.lyon@foss.st.com>
693 * config/arm/arm.opt: Fix typo.
694 * config/arm/t-rmprofile: Fix typo.
696 2021-08-23 Jakub Jelinek <jakub@redhat.com>
698 * tree.h (OMP_CLAUSE_GRAINSIZE_STRICT): Define.
699 (OMP_CLAUSE_NUM_TASKS_STRICT): Define.
700 * tree-pretty-print.c (dump_omp_clause) <case OMP_CLAUSE_GRAINSIZE,
701 case OMP_CLAUSE_NUM_TASKS>: Print strict: modifier.
702 * omp-expand.c (expand_task_call): Use GOMP_TASK_FLAG_STRICT in iflags
703 if either grainsize or num_tasks clause has the strict modifier.
705 2021-08-23 Martin Liska <mliska@suse.cz>
707 * dbgcnt.def (DEBUG_COUNTER): New counter.
708 * gimple.c (gimple_call_arg_flags): Use it in IPA PTA.
710 2021-08-23 Jan Hubicka <hubicka@ucw.cz>
712 * ipa-modref.c (analyze_ssa_name_flags): Improve handling of return slot.
714 2021-08-23 Xi Ruoyao <xry111@mengyan1223.wang>
717 * config/mips/mips-protos.h (mips_msa_output_shift_immediate):
719 * config/mips/mips.c (mips_msa_output_shift_immediate): New
721 * config/mips/mips-msa.md (vashl<mode>3, vashr<mode>3,
722 vlshr<mode>3): Call it.
724 2021-08-22 Jan Hubicka <hubicka@ucw.cz>
725 Martin Liska <mliska@suse.cz>
728 * ipa-modref.c (analyze_ssa_name_flags): Indirect call implies
731 2021-08-21 Dragan Mladjenovic <OT_Dragan.Mladjenovic@mediatek.com>
733 * config/mips/mips.c (mips_function_rodata_section,
734 TARGET_ASM_FUNCTION_RODATA_SECTION): Removed.
736 2021-08-21 John David Anglin <danglin@gcc.gnu.org>
738 * config/pa/pa.c (pa_asm_output_aligned_common): Remove warning.
740 2021-08-20 Serge Belyshev <belyshev@depni.sinp.msu.ru>
742 * configure.ac (thread-local storage support): Remove tls_first_major
743 and tls_first_minor. Use "$conftest_s" to check support.
744 * configure: Regenerate.
746 2021-08-20 Serge Belyshev <belyshev@depni.sinp.msu.ru>
748 * configure.ac: Fixup formatting.
750 2021-08-20 Serge Belyshev <belyshev@depni.sinp.msu.ru>
752 * acinclude.m4 (gcc_GAS_CHECK_FEATURE): Remove third argument and ...
753 * configure.ac: ... update all callers.
755 2021-08-20 Serge Belyshev <belyshev@depni.sinp.msu.ru>
758 * acinclude.m4 (_gcc_COMPUTE_GAS_VERSION, _gcc_GAS_VERSION_GTE_IFELSE)
759 (gcc_GAS_VERSION_GTE_IFELSE): Remove.
760 (gcc_GAS_CHECK_FEATURE): Do not handle in-tree case specially.
761 * configure.ac: Remove gcc_cv_gas_major_version, gcc_cv_gas_minor_version.
762 Remove remaining checks for in-tree assembler.
763 * configure: Regenerate.
765 2021-08-20 Jeff Law <jlaw@localhost.localdomain>
767 * config/h8300/h8300.c (shift_alg_hi): Improve arithmetic shift right
768 by 15 bits for H8/300H and H8/S. Improve logical shifts by 12
770 (shift_alg_si): Improve arithmetic right shift by 28-30 bits for
771 H8/300H. Improve arithmetic shift right by 15 bits for H8/S.
772 Improve logical shifts by 27 bits for H8/S.
773 (get_shift_alg): Corresponding changes.
774 (h8300_option_override): Revert to loops for -Os when profitable.
776 2021-08-20 Richard Biener <rguenther@suse.de>
778 * tree-vect-data-refs.c (dr_group_sort_cmp): Do not compare
780 (vect_analyze_data_ref_accesses): Likewise. Assign the BB
781 index as group_id when dataref_groups were not computed.
782 * tree-vect-slp.c (vect_slp_bbs): Bump current_group when
783 we advace to the next BB.
785 2021-08-20 Jakub Jelinek <jakub@redhat.com>
787 * omp-builtins.def (BUILT_IN_GOMP_WARNING, BUILT_IN_GOMP_ERROR): New
790 2021-08-20 Martin Liska <mliska@suse.cz>
792 PR gcov-profile/89961
793 * gcov.c (make_gcov_file_name): Rewrite using std::string.
794 (mangle_name): Simplify, do not used the second argument.
795 (strip_extention): New function.
796 (get_md5sum): Likewise.
797 (get_gcov_intermediate_filename): Handle properly -p and -x
799 (output_gcov_file): Use string type.
800 (generate_results): Likewise.
801 (md5sum_to_hex): Remove.
803 2021-08-20 Michael Meissner <meissner@linux.ibm.com>
805 * config/rs6000/altivec.md (UNSPEC_XXEVAL): Move to vsx.md.
806 (UNSPEC_XXSPLTIW): Move to vsx.md.
807 (UNSPEC_XXSPLTID): Move to vsx.md.
808 (UNSPEC_XXSPLTI32DX): Move to vsx.md.
809 (UNSPEC_XXBLEND): Move to vsx.md.
810 (UNSPEC_XXPERMX): Move to vsx.md.
811 (VM3): Move to vsx.md.
812 (VM3_char): Move to vsx.md.
813 (xxspltiw_v4si): Move to vsx.md.
814 (xxspltiw_v4sf): Move to vsx.md.
815 (xxspltiw_v4sf_inst): Move to vsx.md.
816 (xxspltidp_v2df): Move to vsx.md.
817 (xxspltidp_v2df_inst): Move to vsx.md.
818 (xxsplti32dx_v4si_inst): Move to vsx.md.
819 (xxsplti32dx_v4sf): Move to vsx.md.
820 (xxsplti32dx_v4sf_inst): Move to vsx.md.
821 (xxblend_<mode>): Move to vsx.md.
822 (xxpermx): Move to vsx.md.
823 (xxpermx_inst): Move to vsx.md.
824 * config/rs6000/vsx.md (UNSPEC_XXEVAL): Move from altivec.md.
825 (UNSPEC_XXSPLTIW): Move from altivec.md.
826 (UNSPEC_XXSPLTID): Move from altivec.md.
827 (UNSPEC_XXSPLTI32DX): Move from altivec.md.
828 (UNSPEC_XXBLEND): Move from altivec.md.
829 (UNSPEC_XXPERMX): Move from altivec.md.
830 (VM3): Move from altivec.md.
831 (VM3_char): Move from altivec.md.
832 (xxspltiw_v4si): Move from altivec.md.
833 (xxspltiw_v4sf): Move from altivec.md.
834 (xxspltiw_v4sf_inst): Move from altivec.md.
835 (xxspltidp_v2df): Move from altivec.md.
836 (xxspltidp_v2df_inst): Move from altivec.md.
837 (xxsplti32dx_v4si_inst): Move from altivec.md.
838 (xxsplti32dx_v4sf): Move from altivec.md.
839 (xxsplti32dx_v4sf_inst): Move from altivec.md.
840 (xxblend_<mode>): Move from altivec.md.
841 (xxpermx): Move from altivec.md.
842 (xxpermx_inst): Move from altivec.md.
844 2021-08-19 Roger Sayle <roger@nextmovesoftware.com>
846 * tree-vect-generic.c (expand_vector_operations_1): Use either
847 gimplify_build1 or gimplify_build2 instead of gimple_build_assign
848 when constructing scalar splat expressions.
850 2021-08-19 Peter Bergner <bergner@linux.ibm.com>
853 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_mma_builtin): Cast
854 pointer to __vector_pair *.
856 2021-08-19 Martin Sebor <msebor@redhat.com>
858 * gimple-range.cc: Add comments.
859 * gimple-range.h: Same.
861 2021-08-19 Martin Sebor <msebor@redhat.com>
864 * gimple-ssa-warn-access.cc (pass_waccess::execute): Also call
867 2021-08-19 Jeff Law <jlaw@localhost.localdomain>
869 * config.gcc (h8300-*-elf*): Do not include dbxelf.h.
870 (h8300-*-linux*, v850-*-rtems*, v850*-elf*): Likewise.
871 * config/v850/v850.h (DEFAULT_GDB_EXTENSIONS): Remove.
873 2021-08-19 Jakub Jelinek <jakub@redhat.com>
876 * optabs.c (expand_clrsb_using_clz): New function.
877 (expand_unop): Use it as another clrsb expansion fallback.
879 2021-08-19 liuhongt <hongtao.liu@intel.com>
882 2021-07-28 liuhongt <hongtao.liu@intel.com>
885 * config/i386/i386.h (processor_costs): Add new member
887 * config/i386/x86-tune-costs.h (ix86_size_cost, i386_cost,
888 i486_cost, pentium_cost, lakemont_cost, pentiumpro_cost,
889 geode_cost, k6_cost, athlon_cost, k8_cost, amdfam10_cost,
890 bdver_cost, znver1_cost, znver2_cost, znver3_cost,
891 btver1_cost, btver2_cost, btver3_cost, pentium4_cost,
892 nocona_cost, atom_cost, atom_cost, slm_cost, intel_cost,
893 generic_cost, core_cost): Initialize integer_to_sse same value
895 (skylake_cost): Initialize integer_to_sse twice as much as sse_op.
896 * config/i386/i386.c (ix86_builtin_vectorization_cost):
897 Use integer_to_sse instead of sse_op to calculate the cost of
900 2021-08-18 Iain Sandoe <iain@sandoe.co.uk>
902 * config.gcc: Include rpath.opt for Darwin.
903 * config/darwin.h (DRIVER_SELF_SPECS): Handle -rpath.
905 2021-08-18 Thomas Schwinge <thomas@codesourcery.com>
908 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor_expand):
911 2021-08-18 Jonathan Wright <jonathan.wright@arm.com>
913 * config/aarch64/arm_neon.h (vld3_lane_f64): Use float RTL
914 pattern and type cast.
915 (vld4_lane_f32): Use float RTL pattern.
916 (vld4q_lane_f64): Use float type cast.
918 2021-08-18 Jan Hubicka <hubicka@ucw.cz>
920 * tree-ssa-uninit.c (maybe_warn_pass_by_reference): Check also
923 2021-08-18 Thomas Schwinge <thomas@codesourcery.com>
925 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): Extend.
926 (test_map_of_type_with_ctor_and_dtor_expand): Add function.
927 (hash_map_tests_c_tests): Call it.
929 2021-08-18 Thomas Schwinge <thomas@codesourcery.com>
931 * ggc.h (enum ggc_collect): New.
932 (ggc_collect): Use it.
933 * ggc-page.c: Adjust.
934 * ggc-common.c: Likewise.
935 * ggc-tests.c: Likewise.
936 * read-rtl-function.c: Likewise.
937 * selftest-run-tests.c: Likewise.
938 * doc/gty.texi (Invoking the garbage collector): Likewise.
940 2021-08-18 liuhongt <hongtao.liu@intel.com>
943 * config/i386/i386.h (TARGET_V2DF_REDUCTION_PREFER_HADDPD):
945 * config/i386/sse.md (*sse3_haddv2df3_low): Add
946 TARGET_V2DF_REDUCTION_PREFER_HADDPD.
947 (*sse3_hsubv2df3_low): Ditto.
948 * config/i386/x86-tune.def
949 (X86_TUNE_V2DF_REDUCTION_PREFER_HADDPD): New tune.
951 2021-08-17 Andrew MacLeod <amacleod@redhat.com>
953 * gimple-range-gori.cc (gori_compute::gori_compute): Enable tracing.
954 (gori_compute::compute_operand_range): Add tracing.
955 (gori_compute::logical_combine): Ditto.
956 (gori_compute::compute_logical_operands): Ditto.
957 (gori_compute::compute_operand1_range): Ditto.
958 (gori_compute::compute_operand2_range): Ditto.
959 (gori_compute::outgoing_edge_range_p): Ditto.
960 * gimple-range-gori.h (class gori_compute): Add range_tracer.
962 2021-08-17 Andrew MacLeod <amacleod@redhat.com>
964 * flag-types.h (enum evrp_mode): Adjust evrp-mode values.
965 * gimple-range-cache.cc (DEBUG_RANGE_CACHE): Relocate from.
966 * gimple-range-trace.h (DEBUG_RANGE_CACHE): Here.
967 * params.opt (--param=evrp-mode): Adjust options.
969 2021-08-17 Andrew MacLeod <amacleod@redhat.com>
971 * Makefile.in (OBJS): Add gimple-range-trace.o.
972 * gimple-range-cache.h (enable_new_values): Remove unused prototype.
973 * gimple-range-fold.cc: Adjust headers.
974 * gimple-range-trace.cc: New.
975 * gimple-range-trace.h: New.
976 * gimple-range.cc (gimple_ranger::gimple_ranger): Enable tracer.
977 (gimple_ranger::range_of_expr): Add tracing.
978 (gimple_ranger::range_on_entry): Ditto.
979 (gimple_ranger::range_on_exit): Ditto.
980 (gimple_ranger::range_on_edge): Ditto.
981 (gimple_ranger::fold_range_internal): Ditto.
982 (gimple_ranger::dump_bb): Do not calculate edge range twice.
983 (trace_ranger::*): Remove.
984 (enable_ranger): Never create a trace_ranger.
985 (debug_seed_ranger): Move to gimple-range-trace.cc.
986 (dump_ranger): Ditto.
987 (debug_ranger): Ditto.
988 * gimple-range.h: Include gimple-range-trace.h.
989 (range_on_entry, range_on_exit): No longer virtual.
990 (class trace_ranger): Remove.
991 (DEBUG_RANGE_CACHE): Move to gimple-range-trace.h.
993 2021-08-17 Martin Sebor <msebor@redhat.com>
996 * builtins.c (expand_builtin_alloca): Move warning code to check_alloca
997 in gimple-ssa-warn-access.cc.
998 * calls.c (alloc_max_size): Move code to check_alloca.
999 (get_size_range): Move to pointer-query.cc.
1000 (maybe_warn_alloc_args_overflow): Move to gimple-ssa-warn-access.cc.
1001 (get_attr_nonstring_decl): Move to tree.c.
1002 (fntype_argno_type): Move to gimple-ssa-warn-access.cc.
1003 (append_attrname): Same.
1004 (maybe_warn_rdwr_sizes): Same.
1005 (initialize_argument_information): Move code to
1006 gimple-ssa-warn-access.cc.
1007 * calls.h (maybe_warn_alloc_args_overflow): Move to
1008 gimple-ssa-warn-access.h.
1009 (get_attr_nonstring_decl): Move to tree.h.
1010 (maybe_warn_nonstring_arg): Move to gimple-ssa-warn-access.h.
1011 (enum size_range_flags): Move to pointer-query.h.
1012 (get_size_range): Same.
1013 * gimple-ssa-warn-access.cc (has_location): Remove unused overload
1014 to avoid Clang -Wunused-function.
1015 (get_size_range): Declare static.
1016 (maybe_emit_free_warning): Rename...
1017 (maybe_check_dealloc_call): ...to this for consistency.
1018 (class pass_waccess): Add members.
1019 (pass_waccess::~pass_waccess): Defined.
1020 (alloc_max_size): Move here from calls.c.
1021 (maybe_warn_alloc_args_overflow): Same.
1022 (check_alloca): New function.
1023 (check_alloc_size_call): New function.
1024 (check_strncat): Handle another warning flag.
1025 (pass_waccess::check_builtin): Handle alloca.
1026 (fntype_argno_type): Move here from calls.c.
1027 (append_attrname): Same.
1028 (maybe_warn_rdwr_sizes): Same.
1029 (pass_waccess::check_call): Define.
1030 (check_nonstring_args): New function.
1031 (pass_waccess::check): Call new member functions.
1032 (pass_waccess::execute): Enable ranger.
1033 * gimple-ssa-warn-access.h (get_size_range): Move here from calls.h.
1034 (maybe_warn_nonstring_arg): Same.
1035 * gimple-ssa-warn-restrict.c: Remove #include.
1036 * pointer-query.cc (get_size_range): Move here from calls.c.
1037 * pointer-query.h (enum size_range_flags): Same.
1038 (get_size_range): Same.
1039 * tree.c (get_attr_nonstring_decl): Move here from calls.c.
1040 * tree.h (get_attr_nonstring_decl): Move here from calls.h.
1042 2021-08-17 Thomas Schwinge <thomas@codesourcery.com>
1044 * ggc.h (ggc_collect): Add 'force_collect' parameter.
1045 * ggc-page.c (ggc_collect): Use that one instead of global
1046 'ggc_force_collect'. Adjust all users.
1047 * doc/gty.texi (Invoking the garbage collector): Update.
1048 * ggc-internal.h (ggc_force_collect): Remove.
1049 * ggc-common.c (ggc_force_collect): Likewise.
1050 * selftest.h (forcibly_ggc_collect): Remove.
1051 * ggc-tests.c (selftest::forcibly_ggc_collect): Likewise.
1052 * read-rtl-function.c (test_loading_labels): Adjust.
1053 * selftest-run-tests.c (run_tests): Likewise.
1055 2021-08-17 Iain Sandoe <iain@sandoe.co.uk>
1057 * config/darwin.c (darwin_file_end): Reset and reclaim the
1058 section names table at the end of compile.
1060 2021-08-17 Iain Sandoe <iain@sandoe.co.uk>
1063 * config.in: Regenerate.
1064 * config/i386/darwin.h (EXTRA_ASM_OPTS): New
1065 (ASM_SPEC): Pass options to disable branch shortening where
1067 * configure: Regenerate.
1068 * configure.ac: Detect versions of 'as' that support the
1069 optimisation which has the bug.
1071 2021-08-17 Richard Biener <rguenther@suse.de>
1073 * optabs-query.c (supports_vec_gather_load_p): Also check
1075 (supports_vec_scatter_store_p): Likewise.
1076 * tree-vect-data-refs.c (vect_gather_scatter_fn_p): Fall
1077 back to masked variants if non-masked are not supported.
1078 * tree-vect-patterns.c (vect_recog_gather_scatter_pattern):
1079 When we need to use masked gather/scatter but do not have
1080 a mask set up a constant true one.
1081 * tree-vect-stmts.c (vect_check_scalar_mask): Also allow
1084 2021-08-17 Roger Sayle <roger@nextmovesoftware.com>
1086 * tree-ssa-ccp.c (bit_value_binop) [MINUS_EXPR]: Use same
1087 algorithm as PLUS_EXPR to improve subtraction bit bounds.
1088 [POINTER_DIFF_EXPR]: Treat as synonymous with MINUS_EXPR.
1090 2021-08-17 Roger Sayle <roger@nextmovesoftware.com>
1092 * tree-ssa-ccp.c (bit_value_mult_const): New helper function to
1093 calculate the mask-value pair result of a multiplication by an
1095 (bit_value_binop) [MULT_EXPR]: Call it from here for
1096 multiplications by (sparse) non-negative constants.
1098 2021-08-17 Christophe Lyon <christophe.lyon@foss.st.com>
1101 * config.gcc (gcc_cv_initfini_array): Leave undefined for
1102 uclinuxfdpiceabi targets.
1104 2021-08-17 Alexandre Oliva <oliva@adacore.com>
1106 * tree-inline.c (maybe_move_debug_stmts_to_successors): Don't
1107 reverse debug stmts.
1109 2021-08-17 Alexandre Oliva <oliva@adacore.com>
1111 * tree-cfg.c (dump_function_to_file): Use fun, not cfun.
1113 2021-08-17 Jonathan Wright <jonathan.wright@arm.com>
1115 * config/aarch64/arm_neon.h (__LD4_LANE_FUNC): Delete.
1116 (__LD4Q_LANE_FUNC): Likewise.
1117 (vld4_lane_u8): Define without macro.
1118 (vld4_lane_u16): Likewise.
1119 (vld4_lane_u32): Likewise.
1120 (vld4_lane_u64): Likewise.
1121 (vld4_lane_s8): Likewise.
1122 (vld4_lane_s16): Likewise.
1123 (vld4_lane_s32): Likewise.
1124 (vld4_lane_s64): Likewise.
1125 (vld4_lane_f16): Likewise.
1126 (vld4_lane_f32): Likewise.
1127 (vld4_lane_f64): Likewise.
1128 (vld4_lane_p8): Likewise.
1129 (vld4_lane_p16): Likewise.
1130 (vld4_lane_p64): Likewise.
1131 (vld4q_lane_u8): Likewise.
1132 (vld4q_lane_u16): Likewise.
1133 (vld4q_lane_u32): Likewise.
1134 (vld4q_lane_u64): Likewise.
1135 (vld4q_lane_s8): Likewise.
1136 (vld4q_lane_s16): Likewise.
1137 (vld4q_lane_s32): Likewise.
1138 (vld4q_lane_s64): Likewise.
1139 (vld4q_lane_f16): Likewise.
1140 (vld4q_lane_f32): Likewise.
1141 (vld4q_lane_f64): Likewise.
1142 (vld4q_lane_p8): Likewise.
1143 (vld4q_lane_p16): Likewise.
1144 (vld4q_lane_p64): Likewise.
1145 (vld4_lane_bf16): Likewise.
1146 (vld4q_lane_bf16): Likewise.
1148 2021-08-17 Jonathan Wright <jonathan.wright@arm.com>
1150 * config/aarch64/arm_neon.h (__LD3_LANE_FUNC): Delete.
1151 (__LD3Q_LANE_FUNC): Delete.
1152 (vld3_lane_u8): Define without macro.
1153 (vld3_lane_u16): Likewise.
1154 (vld3_lane_u32): Likewise.
1155 (vld3_lane_u64): Likewise.
1156 (vld3_lane_s8): Likewise.
1157 (vld3_lane_s16): Likewise.
1158 (vld3_lane_s32): Likewise.
1159 (vld3_lane_s64): Likewise.
1160 (vld3_lane_f16): Likewise.
1161 (vld3_lane_f32): Likewise.
1162 (vld3_lane_f64): Likewise.
1163 (vld3_lane_p8): Likewise.
1164 (vld3_lane_p16): Likewise.
1165 (vld3_lane_p64): Likewise.
1166 (vld3q_lane_u8): Likewise.
1167 (vld3q_lane_u16): Likewise.
1168 (vld3q_lane_u32): Likewise.
1169 (vld3q_lane_u64): Likewise.
1170 (vld3q_lane_s8): Likewise.
1171 (vld3q_lane_s16): Likewise.
1172 (vld3q_lane_s32): Likewise.
1173 (vld3q_lane_s64): Likewise.
1174 (vld3q_lane_f16): Likewise.
1175 (vld3q_lane_f32): Likewise.
1176 (vld3q_lane_f64): Likewise.
1177 (vld3q_lane_p8): Likewise.
1178 (vld3q_lane_p16): Likewise.
1179 (vld3q_lane_p64): Likewise.
1180 (vld3_lane_bf16): Likewise.
1181 (vld3q_lane_bf16): Likewise.
1183 2021-08-17 Jonathan Wright <jonathan.wright@arm.com>
1185 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Delete.
1186 (__LD2Q_LANE_FUNC): Likewise.
1187 (vld2_lane_u8): Define without macro.
1188 (vld2_lane_u16): Likewise.
1189 (vld2_lane_u32): Likewise.
1190 (vld2_lane_u64): Likewise.
1191 (vld2_lane_s8): Likewise.
1192 (vld2_lane_s16): Likewise.
1193 (vld2_lane_s32): Likewise.
1194 (vld2_lane_s64): Likewise.
1195 (vld2_lane_f16): Likewise.
1196 (vld2_lane_f32): Likewise.
1197 (vld2_lane_f64): Likewise.
1198 (vld2_lane_p8): Likewise.
1199 (vld2_lane_p16): Likewise.
1200 (vld2_lane_p64): Likewise.
1201 (vld2q_lane_u8): Likewise.
1202 (vld2q_lane_u16): Likewise.
1203 (vld2q_lane_u32): Likewise.
1204 (vld2q_lane_u64): Likewise.
1205 (vld2q_lane_s8): Likewise.
1206 (vld2q_lane_s16): Likewise.
1207 (vld2q_lane_s32): Likewise.
1208 (vld2q_lane_s64): Likewise.
1209 (vld2q_lane_f16): Likewise.
1210 (vld2q_lane_f32): Likewise.
1211 (vld2q_lane_f64): Likewise.
1212 (vld2q_lane_p8): Likewise.
1213 (vld2q_lane_p16): Likewise.
1214 (vld2q_lane_p64): Likewise.
1215 (vld2_lane_bf16): Likewise.
1216 (vld2q_lane_bf16): Likewise.
1218 2021-08-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
1220 * haifa-sched.c (advance_one_cycle): Output more context-synchronization
1223 2021-08-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
1225 * haifa-sched.c (enum rfs_decision, rfs_str): Add RFS_AUTOPREF.
1226 (rank_for_schedule): Use it.
1228 2021-08-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
1230 PR rtl-optimization/91598
1231 * haifa-sched.c (autopref_rank_for_schedule): Prioritize "irrelevant"
1232 insns after memory reads and before memory writes.
1234 2021-08-17 Alistair_Lee <alistair.lee@arm.com>
1236 * rtl.h (CONST_VECTOR_P): New macro.
1237 * config/aarch64/aarch64.c (aarch64_get_sve_pred_bits): Use RTL
1238 code testing macros.
1239 (aarch64_ptrue_all_mode): Likewise.
1240 (aarch64_expand_mov_immediate): Likewise.
1241 (aarch64_const_vec_all_in_range_p): Likewise.
1242 (aarch64_rtx_costs): Likewise.
1243 (aarch64_legitimate_constant_p): Likewise.
1244 (aarch64_simd_valid_immediate): Likewise.
1245 (aarch64_simd_make_constant): Likewise.
1246 (aarch64_convert_mult_to_shift): Likewise.
1247 (aarch64_expand_sve_vec_perm): Likewise.
1248 (aarch64_vec_fpconst_pow_of_2): Likewise.
1250 2021-08-17 Andrew MacLeod <amacleod@redhat.com>
1252 PR tree-optimization/101938
1253 * range-op.cc (operator_abs::op1_range): Special case
1254 -TYPE_MIN_VALUE for flag_wrapv.
1256 2021-08-17 Kewen Lin <linkw@linux.ibm.com>
1258 * tree-vect-slp.c (vectorizable_bb_reduc_epilogue): Add the cost for
1261 2021-08-17 Jakub Jelinek <jakub@redhat.com>
1263 * tree.def (OMP_SCOPE): New tree code.
1264 * tree.h (OMP_SCOPE_BODY, OMP_SCOPE_CLAUSES): Define.
1265 * tree-nested.c (convert_nonlocal_reference_stmt,
1266 convert_local_reference_stmt, convert_gimple_call): Handle
1268 * tree-pretty-print.c (dump_generic_node): Handle OMP_SCOPE.
1269 * gimple.def (GIMPLE_OMP_SCOPE): New gimple code.
1270 * gimple.c (gimple_build_omp_scope): New function.
1271 (gimple_copy): Handle GIMPLE_OMP_SCOPE.
1272 * gimple.h (gimple_build_omp_scope): Declare.
1273 (gimple_has_substatements): Handle GIMPLE_OMP_SCOPE.
1274 (gimple_omp_scope_clauses, gimple_omp_scope_clauses_ptr,
1275 gimple_omp_scope_set_clauses): New inline functions.
1276 (CASE_GIMPLE_OMP): Add GIMPLE_OMP_SCOPE.
1277 * gimple-pretty-print.c (dump_gimple_omp_scope): New function.
1278 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCOPE.
1279 * gimple-walk.c (walk_gimple_stmt): Likewise.
1280 * gimple-low.c (lower_stmt): Likewise.
1281 * gimplify.c (is_gimple_stmt): Handle OMP_MASTER.
1282 (gimplify_scan_omp_clauses): For task reductions, handle OMP_SCOPE
1283 like ORT_WORKSHARE constructs. Adjust diagnostics for %<scope%>
1284 allowing task reductions. Reject inscan reductions on scope.
1285 (omp_find_stores_stmt): Handle GIMPLE_OMP_SCOPE.
1286 (gimplify_omp_workshare, gimplify_expr): Handle OMP_SCOPE.
1287 * tree-inline.c (remap_gimple_stmt): Handle GIMPLE_OMP_SCOPE.
1288 (estimate_num_insns): Likewise.
1289 * omp-low.c (build_outer_var_ref): Look through GIMPLE_OMP_SCOPE
1290 contexts if var isn't privatized there.
1291 (check_omp_nesting_restrictions): Handle GIMPLE_OMP_SCOPE.
1292 (scan_omp_1_stmt): Likewise.
1293 (maybe_add_implicit_barrier_cancel): Look through outer
1295 (lower_omp_scope): New function.
1296 (lower_omp_task_reductions): Handle OMP_SCOPE.
1297 (lower_omp_1): Handle GIMPLE_OMP_SCOPE.
1298 (diagnose_sb_1, diagnose_sb_2): Likewise.
1299 * omp-expand.c (expand_omp_single): Support also GIMPLE_OMP_SCOPE.
1300 (expand_omp): Handle GIMPLE_OMP_SCOPE.
1301 (omp_make_gimple_edges): Likewise.
1302 * omp-builtins.def (BUILT_IN_GOMP_SCOPE_START): New built-in.
1304 2021-08-17 Richard Biener <rguenther@suse.de>
1306 PR tree-optimization/101925
1307 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Set
1308 reverse on COMPONENT_REF and ARRAY_REF according to
1309 what reverse_storage_order_for_component_p does.
1310 (vn_reference_eq): Compare reversed on reference ops.
1311 (reverse_storage_order_for_component_p): New overload.
1312 (vn_reference_lookup_3): Check reverse_storage_order_for_component_p
1313 on the reference looked up.
1315 2021-08-17 Jeff Law <jlaw@localhost.localdomain>
1317 * config/h8300/h8300.c (shift_alg_si): Avoid loops for most SImode
1319 (h8300_option_override): Use loops on H8/S more often when optimizing
1321 (get_shift_alg): Handle new "special" cases on H8/S. Simplify
1322 accordingly. Handle various arithmetic right shifts with special
1323 sequences that we couldn't handle before.
1325 2021-08-16 Jeff Law <jlaw@localhost.localdomain>
1327 * config.gcc (rl78-*-elf*): Do not include dbxelf.h.
1329 2021-08-16 Sebastian Huber <sebastian.huber@embedded-brains.de>
1331 * config/sparc/rtemself.h (SPARC_GCOV_TYPE_SIZE): Define.
1332 * config/sparc/sparc.c (sparc_gcov_type_size): New.
1333 (TARGET_GCOV_TYPE_SIZE): Redefine if SPARC_GCOV_TYPE_SIZE is defined.
1334 * coverage.c (get_gcov_type): Use targetm.gcov_type_size().
1335 * doc/tm.texi (TARGET_GCOV_TYPE_SIZE): Add hook under "Misc".
1336 * doc/tm.texi.in: Regenerate.
1337 * target.def (gcov_type_size): New target hook.
1338 * targhooks.c (default_gcov_type_size): New.
1339 * targhooks.h (default_gcov_type_size): Declare.
1340 * tree-profile.c (gimple_gen_edge_profiler): Use precision of
1342 (gimple_gen_time_profiler): Likewise.
1344 2021-08-16 Eric Botcazou <ebotcazou@gcc.gnu.org>
1346 * dwarf2out.c (add_scalar_info): Deal with DW_AT_data_bit_offset.
1348 2021-08-16 Tobias Burnus <tobias@codesourcery.com>
1350 PR middle-end/101931
1351 * omp-low.c (omp_runtime_api_call): Update for routines
1352 added in the meanwhile.
1354 2021-08-16 Martin Liska <mliska@suse.cz>
1356 PR tree-optimization/100393
1357 * tree-switch-conversion.c (group_cluster::dump): Use
1358 get_comparison_count.
1359 (jump_table_cluster::find_jump_tables): Pre-compute number of
1360 comparisons and then decrement it. Cache also max_ratio.
1361 (jump_table_cluster::can_be_handled): Change signature.
1362 * tree-switch-conversion.h (get_comparison_count): New.
1364 2021-08-16 Eric Botcazou <ebotcazou@gcc.gnu.org>
1366 * dwarf2out.c (add_data_member_location_attribute): Use GNAT
1367 encodings only when -fgnat-encodings=all is specified.
1368 (add_bound_info): Likewise.
1369 (add_byte_size_attribute): Likewise.
1370 (gen_member_die): Likewise.
1372 2021-08-16 Thomas Schwinge <thomas@codesourcery.com>
1374 * omp-oacc-neuter-broadcast.cc
1375 (execute_omp_oacc_neuter_broadcast): Plug 'par' memory leak.
1377 2021-08-16 Thomas Schwinge <thomas@codesourcery.com>
1379 * omp-oacc-neuter-broadcast.cc
1380 (execute_omp_oacc_neuter_broadcast): Clarify memory management for
1383 2021-08-16 Thomas Schwinge <thomas@codesourcery.com>
1385 * omp-oacc-neuter-broadcast.cc (field_map): Move variable into...
1386 (execute_omp_oacc_neuter_broadcast): ... here.
1387 (install_var_field, build_receiver_ref, build_sender_ref): Take
1388 'field_map_t *' parameter. Adjust all users.
1389 (worker_single_copy, neuter_worker_single): Take a
1390 'record_field_map_t *' parameter. Adjust all users.
1392 2021-08-16 liuhongt <hongtao.liu@intel.com>
1395 * config/i386/i386.md (ldexp<mode>3): Force operands[1] to
1398 2021-08-16 Martin Liska <mliska@suse.cz>
1401 * multiple_target.c (create_dispatcher_calls): Make default
1402 function local only if it is a definition.
1404 2021-08-16 Martin Liska <mliska@suse.cz>
1407 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Do not
1408 consider equal SSA_NAMEs when one is a param.
1410 2021-08-16 liuhongt <hongtao.liu@intel.com>
1413 * config/i386/i386-expand.c (ix86_expand_vec_perm_vpermt2):
1414 Support vpermi2b for V32QI/V16QImode.
1415 (ix86_extract_perm_from_pool_constant): New function.
1416 (ix86_expand_vec_one_operand_perm_avx512): Support
1417 vpermw/vpermb under TARGET_AVX512BW/TARGET_AVX512VBMI.
1418 (expand_vec_perm_1): Adjust comments for upper.
1419 * config/i386/i386-protos.h (ix86_extract_perm_from_pool_constant):
1421 * config/i386/predicates.md (permvar_truncate_operand): New predicate.
1422 (pshufb_truncv4siv4hi_operand): Ditto.
1423 (pshufb_truncv8hiv8qi_operand): Ditto.
1424 * config/i386/sse.md (*avx512bw_permvar_truncv16siv16hi_1):
1425 New pre_reload define_insn_and_split.
1426 (*avx512f_permvar_truncv8siv8hi_1): Ditto.
1427 (*avx512f_vpermvar_truncv8div8si_1): Ditto.
1428 (*avx512f_permvar_truncv32hiv32qi_1): Ditto.
1429 (*avx512f_permvar_truncv16hiv16qi_1): Ditto.
1430 (*avx512f_permvar_truncv4div4si_1): Ditto.
1431 (*avx512f_pshufb_truncv8hiv8qi_1): Ditto.
1432 (*avx512f_pshufb_truncv4siv4hi_1): Ditto.
1433 (*avx512f_pshufd_truncv2div2si_1): Ditto.
1435 2021-08-16 Kito Cheng <kito.cheng@sifive.com>
1437 * config/riscv/multilib-generator: Support code model option for
1439 * doc/install.texi: Add document of new option for
1440 --with-multilib-generator.
1442 2021-08-15 Clément Chigot <clement.chigot@atos.net>
1444 * config/rs6000/rs6000.c (xcoff_tls_exec_model_detected): New.
1445 (rs6000_legitimize_tls_address_aix): Use it.
1446 (rs6000_xcoff_file_end): Add ".ref __tls_get_addr" when
1447 xcoff_tls_exec_model_detected is true.
1449 2021-08-15 Jeff Law <jlaw@localhost.localdomain>
1451 * config/h8300/h8300.c (shift_alg_si): Retune H8/300H shifts
1452 to allow a bit more code growth, saving many dozens of cycles.
1453 (h8300_option_override): Adjus shift_alg_si if optimizing for
1455 (get_shift_alg): Use special + inline shifts for residuals
1458 2021-08-14 Stafford Horne <shorne@gmail.com>
1461 * config/or1k/or1k-opts.h: New file.
1462 * config/or1k/or1k.c (or1k_legitimize_address_1, print_reloc):
1463 Support generating gotha relocations if -mcmodel=large is
1465 * config/or1k/or1k.h (TARGET_CMODEL_SMALL, TARGET_CMODEL_LARGE):
1467 * config/or1k/or1k.opt (mcmodel=): New option.
1468 * doc/invoke.texi (OpenRISC Options): Document mcmodel.
1470 2021-08-14 Martin Sebor <msebor@redhat.com>
1472 PR middle-end/101791
1473 * gimple-ssa-warn-access.cc (new_delete_mismatch_p): Use new argument
1474 to valid_new_delete_pair_p.
1475 * tree.c (valid_new_delete_pair_p): Add argument.
1476 * tree.h (valid_new_delete_pair_p): Same.
1478 2021-08-14 Jakub Jelinek <jakub@redhat.com>
1481 * config/i386/i386-expand.c (expand_vec_perm_broadcast_1)
1482 <case E_V64QImode>: For this mode assert
1483 !TARGET_AVX512BW || d->perm[0] rather than !TARGET_AVX2 || d->perm[0].
1485 2021-08-13 Michael Meissner <meissner@linux.ibm.com>
1488 * config/rs6000/altivec.md (xxeval): Use register_predicate
1489 instead of altivec_register_predicate.
1491 2021-08-13 Martin Sebor <msebor@redhat.com>
1493 PR middle-end/101734
1494 * tree-ssa-uninit.c (maybe_warn_read_write_only): New function.
1495 (maybe_warn_operand): Call it.
1497 2021-08-13 Martin Liska <mliska@suse.cz>
1500 * attribs.c (decl_attributes): Make naked functions "noipa"
1503 2021-08-13 Martin Liska <mliska@suse.cz>
1506 * symtab.c (symtab_node::noninterposable_alias): Do not create
1507 local aliases for target_clone functions as the clonning pass
1510 2021-08-13 Martin Liska <mliska@suse.cz>
1512 * opts.c (LIVE_PATCHING_OPTION): Define.
1513 (control_options_for_live_patching): Use it in error messages.
1515 2021-08-13 Jan Hubicka <hubicka@ucw.cz>
1517 * ipa-modref.c (dump_eaf_flags): Dump EAF_NOREAD.
1518 (implicit_const_eaf_flags, implicit_pure_eaf_flags,
1519 ignore_stores_eaf_flags): New constants.
1520 (remove_useless_eaf_flags): New function.
1521 (eaf_flags_useful_p): Use it.
1522 (deref_flags): Add EAF_NOT_RETURNED if flag is unused;
1524 (modref_lattice::init): Add EAF_NOREAD.
1525 (modref_lattice::add_escape_point): Do not reacord escape point if
1527 (modref_lattice::merge): EAF_NOESCAPE implies EAF_NODIRECTESCAPE;
1528 use remove_useless_eaf_flags.
1529 (modref_lattice::merge_deref): Use ignore_stores_eaf_flags.
1530 (modref_lattice::merge_direct_load): Add EAF_NOREAD
1531 (analyze_ssa_name_flags): Fix handling EAF_NOT_RETURNED
1532 (analyze_parms): Use remove_useless_eaf_flags.
1533 (ipa_merge_modref_summary_after_inlining): Use ignore_stores_eaf_flags.
1534 (modref_merge_call_site_flags): Add caller and ecf_flags parameter;
1535 use remove_useless_eaf_flags.
1536 (modref_propagate_flags_in_scc): Update.
1537 * ipa-modref.h: Turn eaf_flags_t back to char.
1538 * tree-core.h (EAF_NOT_RETURNED): Fix.
1539 (EAF_NOREAD): New constant
1540 * tree-ssa-alias.c: (ref_maybe_used_by_call_p_1): Check for
1542 * tree-ssa-structalias.c (handle_rhs_call): Handle new flags.
1543 (handle_pure_call): Likewise.
1545 2021-08-12 Jakub Jelinek <jakub@redhat.com>
1547 * tree.def (OMP_MASKED): New tree code.
1548 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_FILTER.
1549 * tree.h (OMP_MASKED_BODY, OMP_MASKED_CLAUSES, OMP_MASKED_COMBINED,
1550 OMP_CLAUSE_FILTER_EXPR): Define.
1551 * tree.c (omp_clause_num_ops): Add OMP_CLAUSE_FILTER entry.
1552 (omp_clause_code_name): Likewise.
1553 (walk_tree_1): Handle OMP_CLAUSE_FILTER.
1554 * tree-nested.c (convert_nonlocal_omp_clauses,
1555 convert_local_omp_clauses): Handle OMP_CLAUSE_FILTER.
1556 (convert_nonlocal_reference_stmt, convert_local_reference_stmt,
1557 convert_gimple_call): Handle GIMPLE_OMP_MASTER.
1558 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_FILTER.
1559 (dump_generic_node): Handle OMP_MASTER.
1560 * gimple.def (GIMPLE_OMP_MASKED): New gimple code.
1561 * gimple.c (gimple_build_omp_masked): New function.
1562 (gimple_copy): Handle GIMPLE_OMP_MASKED.
1563 * gimple.h (gimple_build_omp_masked): Declare.
1564 (gimple_has_substatements): Handle GIMPLE_OMP_MASKED.
1565 (gimple_omp_masked_clauses, gimple_omp_masked_clauses_ptr,
1566 gimple_omp_masked_set_clauses): New inline functions.
1567 (CASE_GIMPLE_OMP): Add GIMPLE_OMP_MASKED.
1568 * gimple-pretty-print.c (dump_gimple_omp_masked): New function.
1569 (pp_gimple_stmt_1): Handle GIMPLE_OMP_MASKED.
1570 * gimple-walk.c (walk_gimple_stmt): Likewise.
1571 * gimple-low.c (lower_stmt): Likewise.
1572 * gimplify.c (is_gimple_stmt): Handle OMP_MASTER.
1573 (gimplify_scan_omp_clauses): Handle OMP_CLAUSE_FILTER. For clauses
1574 that take one expression rather than decl or constant, force
1575 gimplification of that into a SSA_NAME or temporary unless min
1577 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_FILTER.
1578 (gimplify_expr): Handle OMP_MASKED.
1579 * tree-inline.c (remap_gimple_stmt): Handle GIMPLE_OMP_MASKED.
1580 (estimate_num_insns): Likewise.
1581 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_FILTER.
1582 (check_omp_nesting_restrictions): Handle GIMPLE_OMP_MASKED. Adjust
1583 diagnostics for existence of masked construct.
1584 (scan_omp_1_stmt, lower_omp_master, lower_omp_1, diagnose_sb_1,
1585 diagnose_sb_2): Handle GIMPLE_OMP_MASKED.
1586 * omp-expand.c (expand_omp_synch, expand_omp, omp_make_gimple_edges):
1589 2021-08-12 Uroš Bizjak <ubizjak@gmail.com>
1592 * config/i386/i386.md (avx512f_scalef<mode>2): New insn pattern.
1593 (ldexp<mode>3): Use avx512f_scalef<mode>2.
1594 (UNSPEC_SCALEF): Move from ...
1595 * config/i386/sse.md (UNSPEC_SCALEF): ... here.
1597 2021-08-12 Jan Hubicka <hubicka@ucw.cz>
1599 * ipa-split.c (consider_split): Fix condition testing void functions.
1601 2021-08-12 Aldy Hernandez <aldyh@redhat.com>
1603 * doc/invoke.texi: Remove docs for threader-mode param.
1604 * flag-types.h (enum threader_mode): Remove.
1605 * params.opt: Remove threader-mode param.
1606 * tree-ssa-threadbackward.c (class back_threader): Remove
1607 path_is_unreachable_p.
1608 Make find_paths private.
1609 Add maybe_thread and thread_through_all_blocks.
1610 Remove reference marker for m_registry.
1611 Remove reference marker for m_profit.
1612 (back_threader::back_threader): Adjust for registry and profit not
1614 (dump_path): Move down.
1616 (class thread_jumps): Remove.
1617 (class back_threader_registry): Remove m_all_paths.
1619 (thread_jumps::thread_through_all_blocks): Move to back_threader
1621 (fsm_find_thread_path): Remove
1622 (back_threader::maybe_thread): New.
1623 (back_threader::thread_through_all_blocks): Move from
1625 (back_threader_registry::back_threader_registry): Remove
1627 (back_threader_registry::~back_threader_registry): Remove.
1628 (thread_jumps::find_taken_edge): Remove.
1629 (thread_jumps::check_subpath_and_update_thread_path): Remove.
1630 (thread_jumps::maybe_register_path): Remove.
1631 (thread_jumps::handle_phi): Remove.
1632 (handle_assignment_p): Remove.
1633 (thread_jumps::handle_assignment): Remove.
1634 (thread_jumps::fsm_find_control_statement_thread_paths): Remove.
1635 (thread_jumps::find_jump_threads_backwards): Remove.
1636 (thread_jumps::find_jump_threads_backwards_with_ranger): Remove.
1637 (try_thread_blocks): Rename find_jump_threads_backwards to
1639 (pass_early_thread_jumps::execute): Same.
1641 2021-08-12 Tobias Burnus <tobias@codesourcery.com>
1643 * tree-core.h (omp_clause_proc_bind_kind): Add
1644 OMP_CLAUSE_PROC_BIND_PRIMARY.
1645 * tree-pretty-print.c (dump_omp_clause): Add TODO comment to
1646 change 'master' to 'primary' in proc_bind for OpenMP 5.1.
1648 2021-08-12 Claudiu Zissulescu <claziss@synopsys.com>
1650 * common/config/arc/arc-common.c (arc_option_init_struct): Remove
1651 fno-common reference.
1652 * config/arc/arc.c (arc_override_options): Remove overriding of
1655 2021-08-12 Jakub Jelinek <jakub@redhat.com>
1658 * config/i386/i386-expand.c (ix86_expand_vec_one_operand_perm_avx512):
1659 If d->testing_p, return true after performing checks instead of
1660 actually expanding the insn.
1661 (expand_vec_perm_broadcast_1): Handle V32HImode - assert
1662 !TARGET_AVX512BW and return false.
1664 2021-08-12 Eric Botcazou <ebotcazou@gcc.gnu.org>
1666 * configure.ac (PE linker --disable-dynamicbase support): New check.
1667 * configure: Regenerate.
1668 * config.in: Likewise.
1669 * config/i386/mingw32.h (LINK_SPEC_DISABLE_DYNAMICBASE): New define.
1670 (LINK_SPEC): Use it.
1671 * config/i386/mingw-w64.h (LINK_SPEC_DISABLE_DYNAMICBASE): Likewise.
1672 (LINK_SPEC): Likewise.
1674 2021-08-12 liuhongt <hongtao.liu@intel.com>
1677 * config/i386/sse.md (*avx2_zero_extendv16qiv16hi2_2): New
1678 post_reload define_insn_and_split.
1679 (*avx512bw_zero_extendv32qiv32hi2_2): Ditto.
1680 (*sse4_1_zero_extendv8qiv8hi2_4): Ditto.
1681 (*avx512f_zero_extendv16hiv16si2_2): Ditto.
1682 (*avx2_zero_extendv8hiv8si2_2): Ditto.
1683 (*sse4_1_zero_extendv4hiv4si2_4): Ditto.
1684 (*avx512f_zero_extendv8siv8di2_2): Ditto.
1685 (*avx2_zero_extendv4siv4di2_2): Ditto.
1686 (*sse4_1_zero_extendv2siv2di2_4): Ditto.
1687 (VI248_256, VI248_512, VI148_512, VI148_256, VI148_128): New
1690 2021-08-11 Bill Schmidt <wschmidt@linux.ibm.com>
1692 * config/rs6000/rs6000-builtin-new.def: Add always, power5, and
1695 2021-08-11 Bill Schmidt <wschmidt@linux.ibm.com>
1697 * config/rs6000/rs6000-builtin-new.def: Add vsx stanza.
1699 2021-08-11 Bill Schmidt <wschmidt@linux.ibm.com>
1701 * config/rs6000/rs6000-builtin-new.def: Finish altivec stanza.
1702 * config/rs6000/rs6000-call.c (rs6000_init_builtins): Move
1703 initialization of pcvoid_type_node here...
1704 (altivec_init_builtins): ...from here.
1705 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add
1706 RS6000_BTI_const_ptr_void.
1707 (pcvoid_type_node): New macro.
1709 2021-08-11 Richard Biener <rguenther@suse.de>
1712 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not decompose
1713 hard-register accesses.
1715 2021-08-11 Richard Biener <rguenther@suse.de>
1717 * tree-ssa-operands.c (operands_scanner::get_expr_operands):
1718 Do not look at COMPONENT_REF FIELD_DECLs TREE_THIS_VOLATILE
1719 to determine has_volatile_ops.
1721 2021-08-11 Eric Botcazou <ebotcazou@gcc.gnu.org>
1723 * cfgexpand.c (expand_used_vars): Reuse attribs local variable.
1725 2021-08-11 Jan Hubicka <hubicka@ucw.cz>
1726 Alexandre Oliva <oliva@adacore.com>
1728 * ipa-modref.c (modref_lattice::dump): Fix escape_point's min_flags
1730 (modref_lattice::merge_deref): Fix handling of indirect scape points.
1731 (update_escape_summary_1): Likewise.
1732 (update_escape_summary): Likewise.
1733 (ipa_merge_modref_summary_after_inlining): Likewise.
1735 2021-08-11 Richard Biener <rguenther@suse.de>
1737 PR middle-end/101858
1738 * fold-const.c (fold_binary_loc): Guard simplification
1739 of X < (cast) (1 << Y) to integer types.
1741 2021-08-11 Richard Biener <rguenther@suse.de>
1743 PR tree-optimization/101861
1744 * tree-vect-stmts.c (vectorizable_load): Fix error in
1745 previous change with regard to gather vectorization.
1747 2021-08-11 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
1750 * config/arm/arm_neon.h (vdup_n_s8): Replace call to builtin
1752 (vdup_n_s16): Likewise.
1753 (vdup_n_s32): Likewise.
1754 (vdup_n_s64): Likewise.
1755 (vdup_n_u8): Likewise.
1756 (vdup_n_u16): Likewise.
1757 (vdup_n_u32): Likewise.
1758 (vdup_n_u64): Likewise.
1759 (vdup_n_p8): Likewise.
1760 (vdup_n_p16): Likewise.
1761 (vdup_n_p64): Likewise.
1762 (vdup_n_f16): Likewise.
1763 (vdup_n_f32): Likewise.
1764 (vdupq_n_s8): Likewise.
1765 (vdupq_n_s16): Likewise.
1766 (vdupq_n_s32): Likewise.
1767 (vdupq_n_s64): Likewise.
1768 (vdupq_n_u8): Likewise.
1769 (vdupq_n_u16): Likewise.
1770 (vdupq_n_u32): Likewise.
1771 (vdupq_n_u64): Likewise.
1772 (vdupq_n_p8): Likewise.
1773 (vdupq_n_p16): Likewise.
1774 (vdupq_n_p64): Likewise.
1775 (vdupq_n_f16): Likewise.
1776 (vdupq_n_f32): Likewise.
1777 (vmov_n_s8): Replace call to builtin with call to corresponding
1779 (vmov_n_s16): Likewise.
1780 (vmov_n_s32): Likewise.
1781 (vmov_n_s64): Likewise.
1782 (vmov_n_u8): Likewise.
1783 (vmov_n_u16): Likewise.
1784 (vmov_n_u32): Likewise.
1785 (vmov_n_u64): Likewise.
1786 (vmov_n_p8): Likewise.
1787 (vmov_n_p16): Likewise.
1788 (vmov_n_f16): Likewise.
1789 (vmov_n_f32): Likewise.
1790 (vmovq_n_s8): Likewise.
1791 (vmovq_n_s16): Likewise.
1792 (vmovq_n_s32): Likewise.
1793 (vmovq_n_s64): Likewise.
1794 (vmovq_n_u8): Likewise.
1795 (vmovq_n_u16): Likewise.
1796 (vmovq_n_u32): Likewise.
1797 (vmovq_n_u64): Likewise.
1798 (vmovq_n_p8): Likewise.
1799 (vmovq_n_p16): Likewise.
1800 (vmovq_n_f16): Likewise.
1801 (vmovq_n_f32): Likewise.
1802 * config/arm/arm_neon_builtins.def: Remove entries for vdup_n.
1804 2021-08-11 liuhongt <hongtao.liu@intel.com>
1807 * config/i386/i386.md (ldexp<mode>3): Extend to vscalefs[sd]
1808 when TARGET_AVX512F and TARGET_SSE_MATH.
1810 2021-08-10 Jakub Jelinek <jakub@redhat.com>
1813 * config/i386/i386-expand.c (expand_vec_perm_even_odd): Return false
1814 for V32HImode if !TARGET_AVX512BW.
1815 (ix86_vectorize_vec_perm_const) <case E_V32HImode, case E_V64QImode>:
1816 If !TARGET_AVX512BW and TARGET_AVX512F and d.testing_p, don't fail
1817 early, but actually check the permutation.
1819 2021-08-10 Richard Biener <rguenther@suse.de>
1821 PR tree-optimization/101809
1822 * tree-vect-stmts.c (get_load_store_type): Allow emulated
1823 gathers with offset vector nunits being a constant multiple
1824 of the data vector nunits.
1825 (vect_get_gather_scatter_ops): Use the appropriate nunits
1826 for the offset vector defs.
1827 (vectorizable_store): Adjust call to
1828 vect_get_gather_scatter_ops.
1829 (vectorizable_load): Likewise. Handle the case of less
1830 offset vectors than data vectors.
1832 2021-08-10 Jakub Jelinek <jakub@redhat.com>
1835 * config/i386/sse.md (*avx512f_shuf_<shuffletype>64x2_1<mask_name>_1,
1836 *avx512f_shuf_<shuffletype>32x4_1<mask_name>_1): New define_insn
1839 2021-08-10 Richard Biener <rguenther@suse.de>
1841 PR tree-optimization/101801
1842 PR tree-optimization/101819
1843 * tree-vectorizer.h (vect_emulated_vector_p): Declare.
1844 * tree-vect-loop.c (vect_emulated_vector_p): New function.
1845 (vectorizable_reduction): Re-instantiate a check for emulated
1847 * tree-vect-stmts.c (vectorizable_shift): Likewise.
1848 (vectorizable_operation): Likewise. Cost emulated vector
1849 operations according to the scalar sequence synthesized by
1852 2021-08-10 Richard Biener <rguenther@suse.de>
1854 PR middle-end/101824
1855 * tree-nested.c (get_frame_field): Mark the COMPONENT_REF as
1856 volatile in case the variable was.
1858 2021-08-10 H.J. Lu <hjl.tools@gmail.com>
1861 * config/i386/constraints.md (BC): Document for integer SSE
1862 constant all bits set operand.
1863 (BF): New constraint for const floating-point all bits set
1865 * config/i386/i386.c (standard_sse_constant_p): Likewise.
1866 (standard_sse_constant_opcode): Likewise.
1867 * config/i386/sse.md (sseconstm1): New mode attribute.
1868 (mov<mode>_internal): Replace BC with <sseconstm1>.
1870 2021-08-10 liuhongt <hongtao.liu@intel.com>
1872 * config/i386/sse.md (cond_<insn><mode>): New expander.
1873 (VI248_AVX512VLBW): New mode iterator.
1874 * config/i386/predicates.md
1875 (nonimmediate_or_const_vec_dup_operand): New predicate.
1877 2021-08-09 Andrew MacLeod <amacleod@redhat.com>
1879 PR tree-optimization/101741
1880 * gimple-range-fold.cc (fold_using_range::range_of_builtin_call): Check
1881 type of parameter for toupper/tolower.
1883 2021-08-09 Martin Jambor <mjambor@suse.cz>
1886 * ipa-prop.c (propagate_controlled_uses): Removed a spurious space.
1888 2021-08-09 Pat Haugen <pthaugen@linux.ibm.com>
1890 * config/rs6000/rs6000.c (is_load_insn1): Verify destination is a
1892 (is_store_insn1): Verify source is a register.
1894 2021-08-09 Uroš Bizjak <ubizjak@gmail.com>
1897 * config/i386/mmx.md (<any_logic:code>v2sf3):
1898 Rename from *mmx_<any_logic:code>v2sf3
1900 2021-08-09 Thomas Schwinge <thomas@codesourcery.com>
1902 * config/nvptx/nvptx.c: Cross-reference parts adapted in
1903 'gcc/omp-oacc-neuter-broadcast.cc'.
1904 * omp-low.c: Likewise.
1905 * omp-oacc-neuter-broadcast.cc: Cross-reference parts adapted from
1908 2021-08-09 Julian Brown <julian@codesourcery.com>
1909 Kwok Cheung Yeung <kcy@codesourcery.com>
1910 Thomas Schwinge <thomas@codesourcery.com>
1912 * config/gcn/gcn.c (gcn_init_builtins): Override decls for
1913 BUILT_IN_GOACC_SINGLE_START, BUILT_IN_GOACC_SINGLE_COPY_START,
1914 BUILT_IN_GOACC_SINGLE_COPY_END and BUILT_IN_GOACC_BARRIER.
1915 (gcn_goacc_validate_dims): Turn on worker partitioning unconditionally.
1916 (gcn_fork_join): Update comment.
1917 * config/gcn/gcn.opt (flag_worker_partitioning): Remove.
1918 (macc_experimental_workers): Remove unused option.
1920 2021-08-09 Julian Brown <julian@codesourcery.com>
1921 Nathan Sidwell <nathan@codesourcery.com> (via 'gcc/config/nvptx/nvptx.c' master)
1922 Kwok Cheung Yeung <kcy@codesourcery.com>
1923 Thomas Schwinge <thomas@codesourcery.com>
1925 * Makefile.in (OBJS): Add omp-oacc-neuter-broadcast.o.
1926 * doc/tm.texi.in (TARGET_GOACC_CREATE_WORKER_BROADCAST_RECORD):
1927 Add documentation hook.
1928 * doc/tm.texi: Regenerate.
1929 * omp-oacc-neuter-broadcast.cc: New file.
1930 * omp-builtins.def (BUILT_IN_GOACC_BARRIER)
1931 (BUILT_IN_GOACC_SINGLE_START, BUILT_IN_GOACC_SINGLE_COPY_START)
1932 (BUILT_IN_GOACC_SINGLE_COPY_END): New builtins.
1933 * passes.def (pass_omp_oacc_neuter_broadcast): Add pass.
1934 * target.def (goacc.create_worker_broadcast_record): Add target
1936 * tree-pass.h (make_pass_omp_oacc_neuter_broadcast): Add
1938 * config/gcn/gcn-protos.h (gcn_goacc_adjust_propagation_record):
1939 Rename prototype to...
1940 (gcn_goacc_create_worker_broadcast_record): ... this.
1941 * config/gcn/gcn-tree.c (gcn_goacc_adjust_propagation_record): Rename
1943 (gcn_goacc_create_worker_broadcast_record): ... this.
1944 * config/gcn/gcn.c (TARGET_GOACC_ADJUST_PROPAGATION_RECORD):
1946 (TARGET_GOACC_CREATE_WORKER_BROADCAST_RECORD): ... this.
1948 2021-08-09 Tejas Belagod <tejas.belagod@arm.com>
1951 * config/aarch64/aarch64-simd.md (vlshr<mode>3, vashr<mode>3): Use
1954 2021-08-09 Thomas Schwinge <thomas@codesourcery.com>
1956 * Makefile.in (GTFILES): Remove '$(srcdir)/omp-offload.c'.
1958 2021-08-09 Thomas Schwinge <thomas@codesourcery.com>
1960 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOMP_BUILTIN): Don't
1961 consider '-foffload-abi'.
1962 * common.opt (-foffload-abi): Remove 'Var', 'Init'.
1963 * opts.c (common_handle_option) <-foffload-abi> [ACCEL_COMPILER]:
1966 2021-08-09 Thomas Schwinge <thomas@codesourcery.com>
1968 * optc-gen.awk: Sanity check that 'Init' doesn't appear without
1971 2021-08-09 Thomas Schwinge <thomas@codesourcery.com>
1973 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE): Remove.
1975 2021-08-09 Thomas Schwinge <thomas@codesourcery.com>
1977 * doc/gty.texi (Files): Update.
1979 2021-08-09 Thomas Schwinge <thomas@codesourcery.com>
1981 * doc/gty.texi (Files): Fix GTY header file example.
1983 2021-08-09 Roger Sayle <roger@nextmovesoftware.com>
1985 * tree-ssa-ccp.c (value_mask_to_min_max): Helper function to
1986 determine the upper and lower bounds from a mask-value pair.
1987 (bit_value_unop) [ABS_EXPR, ABSU_EXPR]: Add support for
1988 absolute value and unsigned absolute value expressions.
1989 (bit_value_binop): Initialize *VAL's precision.
1990 [LT_EXPR, LE_EXPR]: Use value_mask_to_min_max to determine
1991 upper and lower bounds of operands. Add LE_EXPR/GE_EXPR
1992 support when the operands are unknown but potentially equal.
1993 [MIN_EXPR, MAX_EXPR]: Support minimum/maximum expressions.
1995 2021-08-09 Bin Cheng <bin.cheng@linux.alibaba.com>
1997 * config/aarch64/aarch64.md
1998 (*extend<SHORT:mode><GPI:mode>2_aarch64): Use %<GPI:w>0.
2000 2021-08-08 Sergei Trofimovich <siarheit@google.com>
2002 * lra-constraints.c: Fix s/otput/output/ typo.
2004 2021-08-06 Martin Sebor <msebor@redhat.com>
2006 * builtins.c (expand_builtin_memchr): Move to gimple-ssa-warn-access.cc.
2007 (expand_builtin_strcat): Same.
2008 (expand_builtin_stpncpy): Same.
2009 (expand_builtin_strncat): Same.
2010 (check_read_access): Same.
2011 (check_memop_access): Same.
2012 (expand_builtin_strlen): Move checks to gimple-ssa-warn-access.cc.
2013 (expand_builtin_strnlen): Same.
2014 (expand_builtin_memcpy): Same.
2015 (expand_builtin_memmove): Same.
2016 (expand_builtin_mempcpy): Same.
2017 (expand_builtin_strcpy): Same.
2018 (expand_builtin_strcpy_args): Same.
2019 (expand_builtin_stpcpy_1): Same.
2020 (expand_builtin_strncpy): Same.
2021 (expand_builtin_memset): Same.
2022 (expand_builtin_bzero): Same.
2023 (expand_builtin_strcmp): Same.
2024 (expand_builtin_strncmp): Same.
2025 (expand_builtin): Remove handlers.
2026 (fold_builtin_strlen): Add a comment.
2027 * builtins.h (check_access): Move to gimple-ssa-warn-access.cc.
2028 * calls.c (maybe_warn_nonstring_arg): Same.
2029 * diagnostic-spec.c (nowarn_spec_t::nowarn_spec_t): Add warning option.
2030 * gimple-fold.c (gimple_fold_builtin_strcpy): Pass argument to callee.
2031 (gimple_fold_builtin_stpcpy): Same.
2032 * gimple-ssa-warn-access.cc (has_location): New function.
2033 (get_location): Same.
2034 (get_callee_fndecl): Same.
2037 (warn_string_no_nul): Define.
2038 (unterminated_array): Same.
2039 (check_nul_terminated_array): Same.
2040 (maybe_warn_nonstring_arg): Same.
2041 (maybe_warn_for_bound): Same.
2042 (warn_for_access): Same.
2043 (check_access): Same.
2044 (check_memop_access): Same.
2045 (check_read_access): Same.
2046 (warn_dealloc_offset): Use helper functions.
2047 (maybe_emit_free_warning): Same.
2048 (class pass_waccess): Add members.
2049 (check_strcat): New function.
2050 (check_strncat): New function.
2051 (check_stxcpy): New function.
2052 (check_stxncpy): New function.
2053 (check_strncmp): New function.
2054 (pass_waccess::check_builtin): New function.
2055 (pass_waccess::check): Call it.
2056 * gimple-ssa-warn-access.h (warn_string_no_nul): Move here from
2058 (maybe_warn_for_bound): Same.
2059 (check_access): Same.
2060 (check_memop_access): Same.
2061 (check_read_access): Same.
2062 * pointer-query.h (struct access_data): Define a ctor overload.
2064 2021-08-06 Richard Biener <rguenther@suse.de>
2066 PR tree-optimization/101801
2067 * tree-vectorizer.h (vect_worthwhile_without_simd_p): Rename...
2068 (vect_can_vectorize_without_simd_p): ... to this.
2069 * tree-vect-loop.c (vect_worthwhile_without_simd_p): Rename...
2070 (vect_can_vectorize_without_simd_p): ... to this and fold
2071 in vect_min_worthwhile_factor.
2072 (vect_min_worthwhile_factor): Remove.
2073 (vectorizable_reduction): Adjust and remove the cost part.
2074 * tree-vect-stmts.c (vectorizable_shift): Likewise.
2075 (vectorizable_operation): Likewise.
2077 2021-08-06 Uroš Bizjak <ubizjak@gmail.com>
2080 * config/i386/i386.md (cmove reg-to-reg move elimination peephole2s):
2081 Add general_gr_operand predicate to operand 3.
2083 2021-08-06 Roger Sayle <roger@nextmovesoftware.com>
2085 * tree-ssa-phiopt.c (cond_removal_in_builtin_zero_pattern): Use
2086 CFN_BUILT_IN_CLRSB* instead of BUILT_IN_CLRSB* for consistency.
2088 2021-08-06 Tamar Christina <tamar.christina@arm.com>
2090 * config/aarch64/aarch64-sve-builtins.cc (register_svpattern,
2091 register_svprfop): Pass vec<> by pointer.
2092 * langhooks-def.h (lhd_simulate_enum_decl): Likewise.
2093 * langhooks.c (lhd_simulate_enum_decl): Likewise.
2094 * langhooks.h (struct lang_hooks_for_types): Likewise.
2096 2021-08-06 Jonathan Wright <jonathan.wright@arm.com>
2098 * config/aarch64/arm_neon.h (vst1_bf16_x2): Use
2099 __builtin_memcpy instead of constructing an additional
2100 __builtin_aarch64_simd_oi one vector at a time.
2101 (vst1q_bf16_x2): Likewise.
2102 (vst1_bf16_x3): Use __builtin_memcpy instead of constructing
2103 an additional __builtin_aarch64_simd_ci one vector at a time.
2104 (vst1q_bf16_x3): Likewise.
2105 (vst1_bf16_x4): Use __builtin_memcpy instead of a union.
2106 (vst1q_bf16_x4): Likewise.
2107 (vst2_bf16): Use __builtin_memcpy instead of constructing an
2108 additional __builtin_aarch64_simd_oi one vector at a time.
2109 (vst2q_bf16): Likewise.
2110 (vst3_bf16): Use __builtin_memcpy instead of constructing an
2111 additional __builtin_aarch64_simd_ci mode one vector at a
2113 (vst3q_bf16): Likewise.
2114 (vst4_bf16): Use __builtin_memcpy instead of constructing an
2115 additional __builtin_aarch64_simd_xi one vector at a time.
2116 (vst4q_bf16): Likewise.
2118 2021-08-06 Jonathan Wright <jonathan.wright@arm.com>
2120 * config/aarch64/arm_neon.h (__ST2_LANE_FUNC): Delete.
2121 (__ST2Q_LANE_FUNC): Delete.
2122 (vst2_lane_f16): Use __builtin_memcpy to copy vector
2123 structure instead of constructing __builtin_aarch64_simd_oi
2124 one vector at a time.
2125 (vst2_lane_f32): Likewise.
2126 (vst2_lane_f64): Likewise.
2127 (vst2_lane_p8): Likewise.
2128 (vst2_lane_p16): Likewise.
2129 (vst2_lane_p64): Likewise.
2130 (vst2_lane_s8): Likewise.
2131 (vst2_lane_s16): Likewise.
2132 (vst2_lane_s32): Likewise.
2133 (vst2_lane_s64): Likewise.
2134 (vst2_lane_u8): Likewise.
2135 (vst2_lane_u16): Likewise.
2136 (vst2_lane_u32): Likewise.
2137 (vst2_lane_u64): Likewise.
2138 (vst2_lane_bf16): Likewise.
2139 (vst2q_lane_f16): Use __builtin_memcpy to copy vector
2140 structure instead of using a union.
2141 (vst2q_lane_f32): Likewise.
2142 (vst2q_lane_f64): Likewise.
2143 (vst2q_lane_p8): Likewise.
2144 (vst2q_lane_p16): Likewise.
2145 (vst2q_lane_p64): Likewise.
2146 (vst2q_lane_s8): Likewise.
2147 (vst2q_lane_s16): Likewise.
2148 (vst2q_lane_s32): Likewise.
2149 (vst2q_lane_s64): Likewise.
2150 (vst2q_lane_u8): Likewise.
2151 (vst2q_lane_u16): Likewise.
2152 (vst2q_lane_u32): Likewise.
2153 (vst2q_lane_u64): Likewise.
2154 (vst2q_lane_bf16): Likewise.
2156 2021-08-06 Jonathan Wright <jonathan.wright@arm.com>
2158 * config/aarch64/arm_neon.h (__ST3_LANE_FUNC): Delete.
2159 (__ST3Q_LANE_FUNC): Delete.
2160 (vst3_lane_f16): Use __builtin_memcpy to copy vector
2161 structure instead of constructing __builtin_aarch64_simd_ci
2162 one vector at a time.
2163 (vst3_lane_f32): Likewise.
2164 (vst3_lane_f64): Likewise.
2165 (vst3_lane_p8): Likewise.
2166 (vst3_lane_p16): Likewise.
2167 (vst3_lane_p64): Likewise.
2168 (vst3_lane_s8): Likewise.
2169 (vst3_lane_s16): Likewise.
2170 (vst3_lane_s32): Likewise.
2171 (vst3_lane_s64): Likewise.
2172 (vst3_lane_u8): Likewise.
2173 (vst3_lane_u16): Likewise.
2174 (vst3_lane_u32): Likewise.
2175 (vst3_lane_u64): Likewise.
2176 (vst3_lane_bf16): Likewise.
2177 (vst3q_lane_f16): Use __builtin_memcpy to copy vector
2178 structure instead of using a union.
2179 (vst3q_lane_f32): Likewise.
2180 (vst3q_lane_f64): Likewise.
2181 (vst3q_lane_p8): Likewise.
2182 (vst3q_lane_p16): Likewise.
2183 (vst3q_lane_p64): Likewise.
2184 (vst3q_lane_s8): Likewise.
2185 (vst3q_lane_s16): Likewise.
2186 (vst3q_lane_s32): Likewise.
2187 (vst3q_lane_s64): Likewise.
2188 (vst3q_lane_u8): Likewise.
2189 (vst3q_lane_u16): Likewise.
2190 (vst3q_lane_u32): Likewise.
2191 (vst3q_lane_u64): Likewise.
2192 (vst3q_lane_bf16): Likewise.
2194 2021-08-06 Jonathan Wright <jonathan.wright@arm.com>
2196 * config/aarch64/arm_neon.h (__ST4_LANE_FUNC): Delete.
2197 (__ST4Q_LANE_FUNC): Delete.
2198 (vst4_lane_f16): Use __builtin_memcpy to copy vector
2199 structure instead of constructing __builtin_aarch64_simd_xi
2200 one vector at a time.
2201 (vst4_lane_f32): Likewise.
2202 (vst4_lane_f64): Likewise.
2203 (vst4_lane_p8): Likewise.
2204 (vst4_lane_p16): Likewise.
2205 (vst4_lane_p64): Likewise.
2206 (vst4_lane_s8): Likewise.
2207 (vst4_lane_s16): Likewise.
2208 (vst4_lane_s32): Likewise.
2209 (vst4_lane_s64): Likewise.
2210 (vst4_lane_u8): Likewise.
2211 (vst4_lane_u16): Likewise.
2212 (vst4_lane_u32): Likewise.
2213 (vst4_lane_u64): Likewise.
2214 (vst4_lane_bf16): Likewise.
2215 (vst4q_lane_f16): Use __builtin_memcpy to copy vector
2216 structure instead of using a union.
2217 (vst4q_lane_f32): Likewise.
2218 (vst4q_lane_f64): Likewise.
2219 (vst4q_lane_p8): Likewise.
2220 (vst4q_lane_p16): Likewise.
2221 (vst4q_lane_p64): Likewise.
2222 (vst4q_lane_s8): Likewise.
2223 (vst4q_lane_s16): Likewise.
2224 (vst4q_lane_s32): Likewise.
2225 (vst4q_lane_s64): Likewise.
2226 (vst4q_lane_u8): Likewise.
2227 (vst4q_lane_u16): Likewise.
2228 (vst4q_lane_u32): Likewise.
2229 (vst4q_lane_u64): Likewise.
2230 (vst4q_lane_bf16): Likewise.
2232 2021-08-06 Martin Liska <mliska@suse.cz>
2234 * config/rs6000/rs6000.c (rs6000_option_override_internal): When
2235 a target option is restored, it can have
2236 rs6000_long_double_type_size set to FLOAT_PRECISION_TFmode
2237 and error should not be emitted.
2239 2021-08-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
2241 * gcov-io.h (gcov_write): Declare.
2242 * gcov-io.c (gcov_write): New.
2243 (gcov_write_counter): Remove.
2244 (gcov_write_tag_length): Likewise.
2245 (gcov_write_summary): Replace gcov_write_tag_length() with calls to
2246 gcov_write_unsigned().
2247 * doc/invoke.texi (fprofile-info-section): Mention
2248 __gcov_info_to_gdca().
2250 2021-08-06 Martin Sebor <msebor@redhat.com>
2252 * dominance.c (prune_bbs_to_update_dominators): Adjust by-value vec
2253 arguments to by-reference.
2254 (iterate_fix_dominators): Same.
2255 * dominance.h (iterate_fix_dominators): Same.
2256 * ipa-prop.h: Call auto_vec::to_vec_legacy.
2257 * tree-data-ref.c (dump_data_dependence_relation): Adjust by-value vec
2258 arguments to by-reference.
2259 (debug_data_dependence_relation): Same.
2260 (dump_data_dependence_relations): Same.
2261 * tree-data-ref.h (debug_data_dependence_relation): Same.
2262 (dump_data_dependence_relations): Same.
2263 * tree-predcom.c (dump_chains): Same.
2264 (initialize_root_vars_lm): Same.
2265 (determine_unroll_factor): Same.
2266 (replace_phis_by_defined_names): Same.
2267 (insert_init_seqs): Same.
2268 (pcom_worker::tree_predictive_commoning_loop): Call
2269 auto_vec::to_vec_legacy.
2270 * tree-ssa-pre.c (insert_into_preds_of_block): Adjust by-value vec
2271 arguments to by-reference.
2272 * tree-ssa-threadbackward.c (populate_worklist): Same.
2273 (back_threader::resolve_def): Same.
2274 * tree-vect-data-refs.c (vect_check_nonzero_value): Same.
2275 (vect_enhance_data_refs_alignment): Same.
2276 (vect_check_lower_bound): Same.
2277 (vect_prune_runtime_alias_test_list): Same.
2278 (vect_permute_store_chain): Same.
2279 * tree-vect-slp-patterns.c (vect_normalize_conj_loc): Same.
2280 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Same.
2281 * tree-vectorizer.h (vect_permute_store_chain): Same.
2282 * vec.c (test_init): New function.
2283 (vec_c_tests): Call new function.
2284 * vec.h (vec): Declare ctors, dtor, and assignment.
2285 (auto_vec::vec_to_legacy): New function.
2286 (vec::copy): Adjust initialization.
2288 2021-08-05 H.J. Lu <hjl.tools@gmail.com>
2291 * config/i386/i386.c (ix86_can_inline_p): Ignore MASK_80387 if
2292 callee only uses GPRs.
2293 * config/i386/ia32intrin.h: Revert commit 5463cee2770.
2294 * config/i386/serializeintrin.h: Revert commit 71958f740f1.
2295 * config/i386/x86gprintrin.h: Add
2296 #pragma GCC target("general-regs-only") and #pragma GCC pop_options
2297 to disable non-GPR ISAs.
2299 2021-08-05 Richard Sandiford <richard.sandiford@arm.com>
2301 PR middle-end/101787
2302 * doc/md.texi (cond_ashl, cond_ashr, cond_lshr): Document.
2304 2021-08-05 Richard Sandiford <richard.sandiford@arm.com>
2306 * tree-vectorizer.h (vect_is_store_elt_extraction, vect_is_reduction)
2307 (vect_reduc_type, vect_embedded_comparison_type, vect_comparison_type)
2308 (vect_is_extending_load, vect_is_integer_truncation): New functions,
2309 moved from aarch64.c but given different names.
2310 * config/aarch64/aarch64.c (aarch64_is_store_elt_extraction)
2311 (aarch64_is_reduction, aarch64_reduc_type)
2312 (aarch64_embedded_comparison_type, aarch64_comparison_type)
2313 (aarch64_extending_load_p, aarch64_integer_truncation_p): Delete
2314 in favor of the above. Update callers accordingly.
2316 2021-08-05 Richard Earnshaw <rearnsha@arm.com>
2319 * config/arm/arm-cpus.in (generic-armv7-a): Add quirk to suppress
2320 writing .cpu directive in asm output.
2321 * config/arm/arm.c (arm_identify_fpu_from_isa): New variable.
2322 (arm_last_printed_arch_string): Delete.
2323 (arm_last-printed_fpu_string): Delete.
2324 (arm_configure_build_target): If use of floating-point/SIMD is
2325 disabled, remove all fp/simd related features from the target ISA.
2326 (last_arm_targ_options): New variable.
2327 (arm_print_asm_arch_directives): Add new parameters. Change order
2328 of emitted directives and handle all cases here.
2329 (arm_file_start): Always call arm_print_asm_arch_directives, move
2330 all generation of .arch/.arch_extension here.
2331 (arm_file_end): Call arm_print_asm_arch.
2332 (arm_declare_function_name): Call arm_print_asm_arch_directives
2333 instead of printing .arch/.fpu directives directly.
2335 2021-08-05 Richard Earnshaw <rearnsha@arm.com>
2337 * config/arm/arm.c (arm_configure_build_target): Don't call
2338 arm_option_reconfigure_globals.
2339 (arm_option_restore): Call arm_option_reconfigure_globals after
2340 reconfiguring the target.
2341 * config/arm/arm-c.c (arm_pragma_target_parse): Likewise.
2343 2021-08-05 Richard Earnshaw <rearnsha@arm.com>
2345 * config/arm/arm.c (arm_configure_build_target): Ensure the target's
2346 arch_name is always set.
2348 2021-08-05 Jonathan Wright <jonathan.wright@arm.com>
2350 * config/aarch64/aarch64.c: Traverse RTL tree to prevent cost
2351 of vec_select high-half from being added into Neon subtract
2354 2021-08-05 Jonathan Wright <jonathan.wright@arm.com>
2356 * config/aarch64/aarch64.c: Traverse RTL tree to prevent cost
2357 of vec_select high-half from being added into Neon add cost.
2359 2021-08-05 Kewen Lin <linkw@linux.ibm.com>
2361 * cfgloop.h (loops_list::loops_list): Add one optional argument
2362 root and adjust accordingly, update loop tree walking and factor
2364 * cfgloop.c (loops_list::walk_loop_tree): ... this. New function.
2366 2021-08-05 Eric Botcazou <ebotcazou@gcc.gnu.org>
2368 PR tree-optimization/101626
2369 * tree-sra.c (propagate_subaccesses_from_rhs): Do not set the
2370 reverse scalar storage order on a pointer or vector component.
2372 2021-08-05 liuhongt <hongtao.liu@intel.com>
2374 * config/i386/sse.md (cond_<code><mode>): New expander.
2376 2021-08-05 liuhongt <hongtao.liu@intel.com>
2378 * config/i386/sse.md (cond_<code><mode>): New expander.
2380 2021-08-05 liuhongt <hongtao.liu@intel.com>
2382 * config/i386/sse.md (cond_<code><mode>): New expander.
2384 2021-08-04 David Malcolm <dmalcolm@redhat.com>
2387 * Makefile.in (ANALYZER_OBJS): Add analyzer/region-model-asm.o.
2389 2021-08-04 H.J. Lu <hjl.tools@gmail.com>
2392 * config/i386/i386.h (STORE_MAX_PIECES): Allow 16/32/64 bytes
2393 only if TARGET_INTER_UNIT_MOVES_TO_VEC is true.
2395 2021-08-04 H.J. Lu <hjl.tools@gmail.com>
2398 * config/i386/i386-expand.c (ix86_expand_vector_move): Call
2399 ix86_gen_scratch_sse_rtx to get a scratch SSE register to copy
2400 data with SSE register from one memory location to another.
2402 2021-08-04 Andreas Krebbel <krebbel@linux.ibm.com>
2404 * config/s390/s390.c (expand_perm_with_vpdi): New function.
2405 (vectorize_vec_perm_const_1): Call expand_perm_with_vpdi.
2406 * config/s390/vector.md (*vpdi1<mode>, @vpdi1<mode>): Enable a
2407 parameterized expander.
2408 (*vpdi4<mode>, @vpdi4<mode>): Likewise.
2410 2021-08-04 Andreas Krebbel <krebbel@linux.ibm.com>
2412 * config/s390/s390.c (MAX_VECT_LEN): Define macro.
2413 (struct expand_vec_perm_d): Define struct.
2414 (expand_perm_with_merge): New function.
2415 (vectorize_vec_perm_const_1): New function.
2416 (s390_vectorize_vec_perm_const): New function.
2417 (TARGET_VECTORIZE_VEC_PERM_CONST): Define target macro.
2419 2021-08-04 Andreas Krebbel <krebbel@linux.ibm.com>
2421 * config/s390/vector.md (V_HW_64): Remove mode iterator.
2422 (*vec_load_pair<mode>): Use V_HW_2 instead of V_HW_64.
2423 * config/s390/vx-builtins.md
2424 (vec_scatter_element<V_HW_2:mode>_SI): Use V_HW_2 instead of
2427 2021-08-04 Andreas Krebbel <krebbel@linux.ibm.com>
2429 * config/s390/s390.md (UNSPEC_VEC_PERMI): Remove constant
2431 * config/s390/vector.md (*vpdi1<mode>, *vpdi4<mode>): New pattern
2433 * config/s390/vx-builtins.md (*vec_permi<mode>): Emit generic rtx
2434 instead of an unspec.
2436 2021-08-04 Andreas Krebbel <krebbel@linux.ibm.com>
2438 * config/s390/s390-modes.def: Add more vector modes to support
2439 concatenation of two vectors.
2440 * config/s390/s390-protos.h (s390_expand_merge_perm_const): Add
2442 (s390_expand_merge): Likewise.
2443 * config/s390/s390.c (s390_expand_merge_perm_const): New function.
2444 (s390_expand_merge): New function.
2445 * config/s390/s390.md (UNSPEC_VEC_MERGEH, UNSPEC_VEC_MERGEL):
2446 Remove constant definitions.
2447 * config/s390/vector.md (V_HW_2): Add mode iterators.
2448 (VI_HW_4, V_HW_4): Rename VI_HW_4 to V_HW_4.
2449 (vec_2x_nelts, vec_2x_wide): New mode attributes.
2450 (*vmrhb, *vmrlb, *vmrhh, *vmrlh, *vmrhf, *vmrlf, *vmrhg, *vmrlg):
2451 New pattern definitions.
2452 (vec_widen_umult_lo_<mode>, vec_widen_umult_hi_<mode>)
2453 (vec_widen_smult_lo_<mode>, vec_widen_smult_hi_<mode>)
2454 (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf, vec_unpacks_lo_v2df)
2455 (vec_unpacks_hi_v2df): Adjust expanders to emit non-unspec RTX for
2457 * config/s390/vx-builtins.md (V_HW_4): Remove mode iterator. Now
2459 (vec_mergeh<mode>, vec_mergel<mode>): Use s390_expand_merge to
2460 emit vec merge pattern.
2462 2021-08-04 Jonathan Wright <jonathan.wright@arm.com>
2464 * config/aarch64/aarch64.c (aarch64_strip_extend_vec_half):
2466 (aarch64_rtx_mult_cost): Traverse RTL tree to prevent cost of
2467 vec_select high-half from being added into Neon multiply
2469 * rtlanal.c (vec_series_highpart_p): Define.
2470 * rtlanal.h (vec_series_highpart_p): Declare.
2472 2021-08-04 Jonathan Wright <jonathan.wright@arm.com>
2474 * config/aarch64/aarch64.c (aarch64_strip_duplicate_vec_elt):
2476 (aarch64_rtx_mult_cost): Traverse RTL tree to prevent
2477 vec_select cost from being added into Neon multiply cost.
2479 2021-08-04 Richard Sandiford <richard.sandiford@arm.com>
2481 * tree-vect-loop.c (vect_better_loop_vinfo_p): Detect cases in
2482 which old_loop_vinfo is an epilogue loop that handles a constant
2483 number of iterations.
2485 2021-08-04 Richard Sandiford <richard.sandiford@arm.com>
2487 * tree-vect-loop.c (vect_analyze_loop): Print a dump message
2488 when a reanalyzed loop fails to be cheaper than the current
2491 2021-08-04 Richard Sandiford <richard.sandiford@arm.com>
2493 * config/aarch64/aarch64.c: Fix a typo.
2495 2021-08-04 Vincent Lefèvre <vincent-gcc@vinc17.net>
2497 PR gcov-profile/101773
2498 * gcov-io.c (gcov_close): Check return code of a fclose.
2500 2021-08-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
2503 * dwarf2out.c (dwarf2out_assembly_start): Emit a dummy
2504 .file statement when needed.
2506 2021-08-04 Richard Biener <rguenther@suse.de>
2508 * tree-vect-data-refs.c (vect_check_gather_scatter):
2509 Include widening conversions only when the result is
2510 still handed by native gather or the current offset
2511 size not already matches the data size.
2512 Also succeed analysis in case there's no native support,
2513 noted by a IFN_LAST ifn and a NULL decl.
2514 (vect_analyze_data_refs): Always consider gathers.
2515 * tree-vect-patterns.c (vect_recog_gather_scatter_pattern):
2516 Test for no IFN gather rather than decl gather.
2517 * tree-vect-stmts.c (vect_model_load_cost): Pass in the
2518 gather-scatter info and cost emulated gathers accordingly.
2519 (vect_truncate_gather_scatter_offset): Properly test for
2521 (vect_use_strided_gather_scatters_p): Likewise.
2522 (get_load_store_type): Handle emulated gathers and its
2524 (vectorizable_load): Likewise. Emulate them by extracting
2525 scalar offsets, doing scalar loads and a vector construct.
2527 2021-08-04 H.J. Lu <hjl.tools@gmail.com>
2530 * expr.c (op_by_pieces_d::op_by_pieces_d): Add a max_pieces
2531 argument to set m_max_size.
2532 (move_by_pieces_d): Pass MOVE_MAX_PIECES to op_by_pieces_d.
2533 (store_by_pieces_d): Pass STORE_MAX_PIECES to op_by_pieces_d.
2534 (compare_by_pieces_d): Pass COMPARE_MAX_PIECES to op_by_pieces_d.
2536 2021-08-04 Roger Sayle <roger@nextmovesoftware.com>
2537 Marc Glisse <marc.glisse@inria.fr>
2539 * match.pd (bit_ior, bit_xor): Canonicalize (X*C1)|(X*C2) and
2540 (X*C1)^(X*C2) as X*(C1+C2), and related variants, using
2541 tree_nonzero_bits to ensure that operands are bit-wise disjoint.
2543 2021-08-04 Richard Biener <rguenther@suse.de>
2545 * tree-ssa-forwprop.c (pass_forwprop::execute): Split
2546 out code to decompose vector loads ...
2547 (optimize_vector_load): ... here. Generalize it to
2548 handle intermediate widening and TARGET_MEM_REF loads
2549 and apply it to loads with a supported vector mode as well.
2551 2021-08-04 Richard Biener <rguenther@suse.de>
2553 PR tree-optimization/101756
2554 * tree-vect-slp.c (vectorizable_bb_reduc_epilogue): Make sure
2555 the result of the reduction epilogue is compatible to the original
2558 2021-08-04 liuhongt <hongtao.liu@intel.com>
2561 * config/i386/i386.md (peephole2): Refine predicate from
2562 register_operand to general_reg_operand.
2564 2021-08-04 Aldy Hernandez <aldyh@redhat.com>
2566 * gimple-range-path.h (path_range_query::dump): Mark override.
2568 2021-08-04 Richard Biener <rguenther@suse.de>
2570 PR tree-optimization/101769
2571 * tree-tailcall.c (eliminate_tail_call): Add the created loop
2572 for the first recursion and return it via the new output parameter.
2573 (optimize_tail_call): Pass through new output param.
2574 (tree_optimize_tail_calls_1): After creating all latches,
2575 add the created loop to the loop tree. Do not mark loops for fixup.
2577 2021-08-04 Martin Liska <mliska@suse.cz>
2579 * doc/invoke.texi: Document threader-mode param.
2581 2021-08-04 liuhongt <hongtao.liu@intel.com>
2583 * config/i386/sse.md (cond_fma<mode>): New expander.
2584 (cond_fms<mode>): Ditto.
2585 (cond_fnma<mode>): Ditto.
2586 (cond_fnms<mode>): Ditto.
2588 2021-08-03 Segher Boessenkool <segher@kernel.crashing.org>
2590 * config/rs6000/vsx.md (*vsx_le_perm_store_<mode>): Use && instead of &.
2592 2021-08-03 Segher Boessenkool <segher@kernel.crashing.org>
2594 * config/rs6000/constraints.md: Remove "e" from the list of available
2595 constraint characters.
2597 2021-08-03 Eugene Rozenfeld <erozen@microsoft.com>
2599 PR gcov-profile/71672
2600 * auto-profile.c (afdo_indirect_call): Fix setup of the historgram value for indirect calls.
2602 2021-08-03 Paul A. Clarke <pc@us.ibm.com>
2604 * config/rs6000/smmintrin.h (_mm_minpos_epu16): New.
2606 2021-08-03 H.J. Lu <hjl.tools@gmail.com>
2608 * config/i386/i386.c (ix86_gen_scratch_sse_rtx): In 64-bit mode,
2609 try XMM31 to avoid vzeroupper.
2611 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
2613 * doc/invoke.texi: Document -mtune=neoverse-512tvb and
2614 -mcpu=neoverse-512tvb.
2615 * config/aarch64/aarch64-cores.def (neoverse-512tvb): New entry.
2616 * config/aarch64/aarch64-tune.md: Regenerate.
2617 * config/aarch64/aarch64.c (neoverse512tvb_sve_vector_cost)
2618 (neoverse512tvb_sve_issue_info, neoverse512tvb_vec_issue_info)
2619 (neoverse512tvb_vector_cost, neoverse512tvb_tunings): New structures.
2620 (aarch64_adjust_body_cost_sve): Handle -mtune=neoverse-512tvb.
2621 (aarch64_adjust_body_cost): Likewise.
2623 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
2625 * config/aarch64/aarch64.c (aarch64_add_stmt_cost): Only
2626 record issue information for operations that occur in the
2629 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
2631 * config/aarch64/aarch64.c (aarch64_multiply_add_p): Add a vec_flags
2632 parameter. Detect cases in which an Advanced SIMD MLA would almost
2633 certainly require a MOV.
2634 (aarch64_count_ops): Update accordingly.
2636 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
2638 * config/aarch64/aarch64.c (aarch64_is_store_elt_extraction): New
2639 function, split out from...
2640 (aarch64_detect_vector_stmt_subtype): ...here.
2641 (aarch64_add_stmt_cost): Treat extracting element 0 as free.
2643 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
2645 * config/aarch64/aarch64-protos.h (sve_vec_cost):
2646 Add gather_load_x32_cost and gather_load_x64_cost.
2647 * config/aarch64/aarch64.c (generic_sve_vector_cost)
2648 (a64fx_sve_vector_cost, neoversev1_sve_vector_cost): Update
2649 accordingly, using the values given by the scalar_load * number
2650 of elements calculation that we used previously.
2651 (aarch64_detect_vector_stmt_subtype): Use the new fields.
2653 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
2655 * config/aarch64/aarch64.c (aarch64_adjust_body_cost_sve): New
2656 function, split out from...
2657 (aarch64_adjust_body_cost): ...here.
2659 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
2661 * config/aarch64/fractional-cost.h: New file.
2662 * config/aarch64/aarch64.c: Include <algorithm> (indirectly)
2663 and cost_fraction.h.
2664 (vec_cost_fraction): New typedef.
2665 (aarch64_detect_scalar_stmt_subtype): Use it for statement costs.
2666 (aarch64_detect_vector_stmt_subtype): Likewise.
2667 (aarch64_sve_adjust_stmt_cost, aarch64_adjust_stmt_cost): Likewise.
2668 (aarch64_estimate_min_cycles_per_iter): Use vec_cost_fraction
2670 (aarch64_adjust_body_cost): Likewise.
2671 (aarch64_test_cost_fraction): New function.
2672 (aarch64_run_selftests): Call it.
2674 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
2676 * config/aarch64/aarch64-protos.h (tune_params::sve_width): Turn
2678 * config/aarch64/aarch64.c (aarch64_cmp_autovec_modes): Update
2680 (aarch64_estimated_poly_value): Likewise. Use the least significant
2681 set bit for the minimum and likely values. Use the most significant
2682 set bit for the maximum value.
2684 2021-08-03 liuhongt <hongtao.liu@intel.com>
2686 * config/i386/sse.md (cond_<insn><mode>): New expander.
2687 (cond_mul<mode>): Ditto.
2689 2021-08-03 Kewen Lin <linkw@linux.ibm.com>
2691 * tree-cfg.c (move_sese_region_to_fn): Fix typos on dloop.
2693 2021-08-03 liuhongt <hongtao.liu@intel.com>
2695 * config/i386/sse.md (cond_<insn><mode>):New expander.
2696 (cond_mul<mode>): Ditto.
2697 (cond_div<mode>): Ditto.
2699 2021-08-02 H.J. Lu <hjl.tools@gmail.com>
2701 * config/i386/i386.c (ix86_finalize_stack_frame_flags): Also
2702 check stack_realign_needed for stack realignment.
2703 (ix86_legitimate_constant_p): Always allow CONST_WIDE_INT smaller
2704 than the largest integer supported by vector register.
2705 * config/i386/i386.h (MAX_MOVE_MAX): New. Set to 64.
2706 (MOVE_MAX): Set to bytes of the largest integer supported by
2708 (STORE_MAX_PIECES): New.
2710 2021-08-02 H.J. Lu <hjl.tools@gmail.com>
2712 * config/i386/i386-expand.c (ix86_expand_vector_move): Call
2713 ix86_gen_scratch_sse_rtx to get a scratch SSE register to copy
2714 data from one memory location to another.
2716 2021-08-02 H.J. Lu <hjl.tools@gmail.com>
2719 * config/i386/i386.c (TARGET_GEN_MEMSET_SCRATCH_RTX): New.
2721 2021-08-02 Aldy Hernandez <aldyh@redhat.com>
2723 PR tree-optimization/101724
2724 * params.opt: Remove --param=threader-iterative.
2725 * tree-ssa-threadbackward.c (pass_thread_jumps::execute): Remove
2728 2021-08-02 Tom de Vries <tdevries@suse.de>
2730 PR middle-end/101665
2731 * doc/extend.texi (nonnull attribute): Improve documentation.
2733 2021-08-02 Andrew Pinski <apinski@marvell.com>
2735 PR rtl-optimization/101683
2736 * rtlanal.c (may_trap_p_1): Handle UNSIGNED_FIX.
2738 2021-08-02 Roger Sayle <roger@nextmovesoftware.com>
2740 * tree-ssa-phiopt.c (cond_removal_in_builtin_zero_pattern):
2741 Renamed from cond_removal_in_popcount_clz_ctz_pattern.
2742 Add support for BSWAP, FFS, PARITY and CLRSB builtins.
2743 (tree_ssa_phiop_worker): Update call to function above.
2745 2021-08-01 H.J. Lu <hjl.tools@gmail.com>
2748 * config/i386/i386.md (bsr_rex64_1_zext): New.
2749 (combine splitter for constant - clzll): Replace gen_bsr_rex64_1
2750 with gen_bsr_rex64_1_zext.
2752 2021-07-31 Jakub Jelinek <jakub@redhat.com>
2755 * config/i386/i386.md (bsr_rex64_1, bsr_1, bsr_zext_1): New
2756 define_insn patterns.
2757 (*bsr_rex64_2, *bsr_2): New define_insn_and_split patterns.
2758 Add combine splitters for constant - clz.
2759 (clz<mode>2): Use a temporary pseudo for bsr result.
2761 2021-07-30 Paul A. Clarke <pc@us.ibm.com>
2763 * config/rs6000/smmintrin.h (_mm_floor_pd, _mm_floor_ps,
2764 _mm_floor_sd, _mm_floor_ss): New.
2766 2021-07-30 Paul A. Clarke <pc@us.ibm.com>
2768 * config/rs6000/smmintrin.h (_mm_ceil_pd, _mm_ceil_ps,
2769 _mm_ceil_sd, _mm_ceil_ss): New.
2771 2021-07-30 Paul A. Clarke <pc@us.ibm.com>
2773 * config/rs6000/smmintrin.h (_mm_blend_pd, _mm_blendv_pd,
2774 _mm_blend_ps, _mm_blendv_ps): New.
2776 2021-07-30 Roger Sayle <roger@nextmovesoftware.com>
2777 Uroš Bizjak <ubizjak@gmail.com>
2779 * config/i386/i386.md (*dec_cmov<mode>): New define_insn_and_split
2780 to generate a conditional move using the carry flag after sub $1.
2781 (peephole2): Eliminate a register-to-register move by inverting
2782 the condition of a conditional move.
2784 2021-07-30 Hans-Peter Nilsson <hp@bitrange.com>
2786 * config/mmix/mmix.md ("call", "call_value", "*call_real")
2787 ("*call_value_real"): Don't generate rtx mentioning the generic
2788 operands 1 and 2 to "call", and similarly for "call_value".
2789 * config/mmix/mmix.c (mmix_print_operand_punct_valid_p)
2790 (mmix_print_operand): Use '!' instead of 'p'.
2792 2021-07-30 Hans-Peter Nilsson <hp@bitrange.com>
2794 * doc/md.texi (call): Correct information about operand 2.
2795 * config/mmix/mmix.md ("call", "call_value"): Remove fixed FIXMEs.
2797 2021-07-30 Andrew MacLeod <amacleod@redhat.com>
2799 * range-op.cc (operator_trunc_mod::wi_fold): Fold constants.
2801 2021-07-30 Andrew MacLeod <amacleod@redhat.com>
2803 * range-op.cc (operator_div::wi_fold): Return UNDEFINED for [0, 0] divisor.
2805 2021-07-30 Andrew MacLeod <amacleod@redhat.com>
2807 * gimple-range-cache.cc (*::set_bb_range): Change const basic_block to
2809 (*::get_bb_range): Ditto.
2810 (*::bb_range_p): Ditto.
2811 * gimple-range-cache.h: Change prototypes.
2813 2021-07-30 H.J. Lu <hjl.tools@gmail.com>
2816 * builtins.c (builtin_memcpy_read_str): Change the mode argument
2817 from scalar_int_mode to fixed_size_mode.
2818 (builtin_strncpy_read_str): Likewise.
2819 (gen_memset_value_from_prev): New function.
2820 (builtin_memset_read_str): Change the mode argument from
2821 scalar_int_mode to fixed_size_mode. Use gen_memset_value_from_prev
2822 and support CONST_VECTOR.
2823 (builtin_memset_gen_str): Likewise.
2824 (try_store_by_multiple_pieces): Use by_pieces_constfn to declare
2826 * builtins.h (builtin_strncpy_read_str): Replace scalar_int_mode
2827 with fixed_size_mode.
2828 (builtin_memset_read_str): Likewise.
2829 * expr.c (widest_int_mode_for_size): Renamed to ...
2830 (widest_fixed_size_mode_for_size): Add a bool argument to
2831 indicate if QI vector mode can be used.
2832 (by_pieces_ninsns): Call widest_fixed_size_mode_for_size
2833 instead of widest_int_mode_for_size.
2834 (pieces_addr::adjust): Change the mode argument from
2835 scalar_int_mode to fixed_size_mode.
2836 (op_by_pieces_d): Make m_len read-only. Add a bool member,
2837 m_qi_vector_mode, to indicate that QI vector mode can be used.
2838 (op_by_pieces_d::op_by_pieces_d): Add a bool argument to
2839 initialize m_qi_vector_mode. Call widest_fixed_size_mode_for_size
2840 instead of widest_int_mode_for_size.
2841 (op_by_pieces_d::get_usable_mode): Change the mode argument from
2842 scalar_int_mode to fixed_size_mode. Call
2843 widest_fixed_size_mode_for_size instead of
2844 widest_int_mode_for_size.
2845 (op_by_pieces_d::smallest_fixed_size_mode_for_size): New member
2846 function to return the smallest integer or QI vector mode.
2847 (op_by_pieces_d::run): Call widest_fixed_size_mode_for_size
2848 instead of widest_int_mode_for_size. Call
2849 smallest_fixed_size_mode_for_size instead of
2850 smallest_int_mode_for_size.
2851 (store_by_pieces_d::store_by_pieces_d): Add a bool argument to
2852 indicate that QI vector mode can be used and pass it to
2853 op_by_pieces_d::op_by_pieces_d.
2854 (can_store_by_pieces): Call widest_fixed_size_mode_for_size
2855 instead of widest_int_mode_for_size. Pass memsetp to
2856 widest_fixed_size_mode_for_size to support QI vector mode.
2857 Allow all CONST_VECTORs for memset if vec_duplicate is supported.
2858 (store_by_pieces): Pass memsetp to
2859 store_by_pieces_d::store_by_pieces_d.
2860 (clear_by_pieces_1): Removed.
2861 (clear_by_pieces): Replace clear_by_pieces_1 with
2862 builtin_memset_read_str and pass true to store_by_pieces_d to
2863 support vector mode broadcast.
2864 (string_cst_read_str): Change the mode argument from
2865 scalar_int_mode to fixed_size_mode.
2866 * expr.h (by_pieces_constfn): Change scalar_int_mode to
2868 (by_pieces_prev): Likewise.
2869 * rtl.h (lowpart_subreg_regno): New.
2870 * rtlanal.c (lowpart_subreg_regno): New. A wrapper around
2871 simplify_subreg_regno.
2872 * target.def (gen_memset_scratch_rtx): New hook.
2873 * doc/tm.texi.in: Add TARGET_GEN_MEMSET_SCRATCH_RTX.
2874 * doc/tm.texi: Regenerated.
2876 2021-07-30 Xi Ruoyao <xry111@mengyan1223.wang>
2879 * config/mips/mips.c (mips_atomic_assign_expand_fenv): Use
2880 TARGET_EXPR instead of MODIFY_EXPR.
2882 2021-07-30 Xi Ruoyao <xry111@mengyan1223.wang>
2885 * config/mips/mips-protos.h (mips_expand_vec_cmp_expr): Declare.
2886 * config/mips/mips.c (mips_expand_vec_cmp_expr): New function.
2887 * config/mips/mips-msa.md (vec_cmp<MSA:mode><mode_i>): New
2889 (vec_cmpu<IMSA:mode><mode_i>): New expander.
2891 2021-07-30 H.J. Lu <hjl.tools@gmail.com>
2894 * config/i386/i386-options.c (ix86_option_override_internal):
2895 Don't enable LZCNT/POPCNT if they have been disabled explicitly.
2897 2021-07-30 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
2900 * config/arm/arm_neon.h (vld1_p64): Replace call to builtin by
2901 explicitly dereferencing __a.
2902 (vld1_s64): Likewise.
2903 (vld1_u64): Likewise.
2904 * config/arm/arm_neon_builtins.def (vld1): Remove entry for di
2905 and change to VAR13.
2907 2021-07-30 Aldy Hernandez <aldyh@redhat.com>
2909 * gimple-loop-versioning.cc (lv_dom_walker::lv_dom_walker): Remove
2910 use of m_range_analyzer.
2911 (loop_versioning::lv_dom_walker::before_dom_children): Same.
2912 (loop_versioning::lv_dom_walker::after_dom_children): Remove.
2913 (loop_versioning::prune_loop_conditions): Replace vr_values use
2914 with range_query interface.
2915 (pass_loop_versioning::execute): Use ranger.
2917 2021-07-30 Xi Ruoyao <xry111@mengyan1223.wang>
2920 * ipa-devirt.c (ipa_odr_read_section): Compare the precision of
2921 enum values, and emit a warning if they mismatch.
2923 2021-07-30 Kewen Lin <linkw@linux.ibm.com>
2925 * cfgloop.h (as_const): New function.
2926 (class loop_iterator): Rename to ...
2927 (class loops_list): ... this.
2928 (loop_iterator::next): Rename to ...
2929 (loops_list::Iter::fill_curr_loop): ... this and adjust.
2930 (loop_iterator::loop_iterator): Rename to ...
2931 (loops_list::loops_list): ... this and adjust.
2932 (loops_list::Iter): New class.
2933 (loops_list::iterator): New type.
2934 (loops_list::const_iterator): New type.
2935 (loops_list::begin): New function.
2936 (loops_list::end): Likewise.
2937 (loops_list::begin const): Likewise.
2938 (loops_list::end const): Likewise.
2939 (FOR_EACH_LOOP): Remove.
2940 (FOR_EACH_LOOP_FN): Remove.
2941 * cfgloop.c (flow_loops_dump): Adjust FOR_EACH_LOOP* with range-based
2942 for loop with loops_list instance.
2943 (sort_sibling_loops): Likewise.
2944 (disambiguate_loops_with_multiple_latches): Likewise.
2945 (verify_loop_structure): Likewise.
2946 * cfgloopmanip.c (create_preheaders): Likewise.
2947 (force_single_succ_latches): Likewise.
2948 * config/aarch64/falkor-tag-collision-avoidance.c
2949 (execute_tag_collision_avoidance): Likewise.
2950 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Likewise.
2951 * config/s390/s390.c (s390_adjust_loops): Likewise.
2952 * doc/loop.texi: Likewise.
2953 * gimple-loop-interchange.cc (pass_linterchange::execute): Likewise.
2954 * gimple-loop-jam.c (tree_loop_unroll_and_jam): Likewise.
2955 * gimple-loop-versioning.cc (loop_versioning::analyze_blocks): Likewise.
2956 (loop_versioning::make_versioning_decisions): Likewise.
2957 * gimple-ssa-split-paths.c (split_paths): Likewise.
2958 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl): Likewise.
2959 * graphite.c (canonicalize_loop_form): Likewise.
2960 (graphite_transform_loops): Likewise.
2961 * ipa-fnsummary.c (analyze_function_body): Likewise.
2962 * ipa-pure-const.c (analyze_function): Likewise.
2963 * loop-doloop.c (doloop_optimize_loops): Likewise.
2964 * loop-init.c (loop_optimizer_finalize): Likewise.
2965 (fix_loop_structure): Likewise.
2966 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
2967 (move_loop_invariants): Likewise.
2968 * loop-unroll.c (decide_unrolling): Likewise.
2969 (unroll_loops): Likewise.
2970 * modulo-sched.c (sms_schedule): Likewise.
2971 * predict.c (predict_loops): Likewise.
2972 (pass_profile::execute): Likewise.
2973 * profile.c (branch_prob): Likewise.
2974 * sel-sched-ir.c (sel_finish_pipelining): Likewise.
2975 (sel_find_rgns): Likewise.
2976 * tree-cfg.c (replace_loop_annotate): Likewise.
2977 (replace_uses_by): Likewise.
2978 (move_sese_region_to_fn): Likewise.
2979 * tree-if-conv.c (pass_if_conversion::execute): Likewise.
2980 * tree-loop-distribution.c (loop_distribution::execute): Likewise.
2981 * tree-parloops.c (parallelize_loops): Likewise.
2982 * tree-predcom.c (tree_predictive_commoning): Likewise.
2983 * tree-scalar-evolution.c (scev_initialize): Likewise.
2984 (scev_reset): Likewise.
2985 * tree-ssa-dce.c (find_obviously_necessary_stmts): Likewise.
2986 * tree-ssa-live.c (remove_unused_locals): Likewise.
2987 * tree-ssa-loop-ch.c (ch_base::copy_headers): Likewise.
2988 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
2989 (tree_ssa_lim_initialize): Likewise.
2990 * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Likewise.
2991 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize): Likewise.
2992 * tree-ssa-loop-manip.c (get_loops_exits): Likewise.
2993 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations): Likewise.
2994 (free_numbers_of_iterations_estimates): Likewise.
2995 * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
2996 * tree-ssa-loop-split.c (tree_ssa_split_loops): Likewise.
2997 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Likewise.
2998 * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
2999 (pass_scev_cprop::execute): Likewise.
3000 * tree-ssa-propagate.c (clean_up_loop_closed_phi): Likewise.
3001 * tree-ssa-sccvn.c (do_rpo_vn): Likewise.
3002 * tree-ssa-threadupdate.c
3003 (jump_thread_path_registry::thread_through_all_blocks): Likewise.
3004 * tree-vectorizer.c (vectorize_loops): Likewise.
3005 * tree-vrp.c (vrp_asserts::find_assert_locations): Likewise.
3007 2021-07-29 Hans-Peter Nilsson <hp@bitrange.com>
3009 * config/mmix/mmix.c (mmix_function_arg_1): Avoid
3010 generating a VOIDmode register for e.g the
3011 function_arg_info::end_marker.
3013 2021-07-29 Jeff Law <jeffreyalaw@gmail.com>
3015 * config/h8300/h8300-modes.def: Add CCZ, CCV and CCC, drop CCZNV.
3016 * config/h8300/h8300.md (H8cc mode iterator): Add CCZ.
3017 (cc mode_attr): Similarly.
3018 (ccz subst_attr): Similarly.
3019 * config/h8300/jumpcall.md: Add new patterns for branch-on-bit.
3020 * config/h8300/testcompare.md: Remove various cc0 based patterns
3021 that had been commented out. Add pattern to set CCZ from a bit
3024 2021-07-29 Thomas Schwinge <thomas@codesourcery.com>
3025 Julian Brown <julian@codesourcery.com>
3026 Kwok Cheung Yeung <kcy@codesourcery.com>
3028 * omp-offload.c (oacc_loop_xform_head_tail, oacc_loop_process):
3029 'update_stmt' after modification.
3030 (pass_oacc_loop_designation): New function, extracted out of...
3031 (pass_oacc_device_lower): ... this.
3032 (pass_data_oacc_loop_designation, pass_oacc_loop_designation)
3033 (make_pass_oacc_loop_designation): New
3034 * passes.def: Add it.
3035 * tree-parloops.c (create_parallel_loop): Adjust.
3036 * tree-pass.h (make_pass_oacc_loop_designation): New.
3038 2021-07-29 Aldy Hernandez <aldyh@redhat.com>
3040 * flag-types.h (enum threader_mode): New.
3041 * params.opt: Add entry for --param=threader-mode.
3042 * tree-ssa-threadbackward.c (THREADER_ITERATIVE_MODE): New.
3043 (class back_threader): New.
3044 (back_threader::back_threader): New.
3045 (back_threader::~back_threader): New.
3046 (back_threader::maybe_register_path): New.
3047 (back_threader::find_taken_edge): New.
3048 (back_threader::find_taken_edge_switch): New.
3049 (back_threader::find_taken_edge_cond): New.
3050 (back_threader::resolve_def): New.
3051 (back_threader::resolve_phi): New.
3052 (back_threader::find_paths_to_names): New.
3053 (back_threader::find_paths): New.
3056 (thread_jumps::find_jump_threads_backwards): Call ranger threader.
3057 (thread_jumps::find_jump_threads_backwards_with_ranger): New.
3058 (pass_thread_jumps::execute): Abstract out code...
3059 (try_thread_blocks): ...here.
3060 * tree-ssa-threadedge.c (jump_threader::thread_outgoing_edges):
3061 Abstract out threading candidate code to...
3062 (single_succ_to_potentially_threadable_block): ...here.
3063 * tree-ssa-threadedge.h (single_succ_to_potentially_threadable_block):
3065 * tree-ssa-threadupdate.c (register_jump_thread): Return boolean.
3066 * tree-ssa-threadupdate.h (class jump_thread_path_registry):
3067 Return bool from register_jump_thread.
3069 2021-07-29 Andreas Krebbel <krebbel@linux.ibm.com>
3071 * target.def: in0 and in1 do not need to be registers.
3072 * doc/tm.texi: Regenerate.
3074 2021-07-29 liuhongt <hongtao.liu@intel.com>
3077 * config/i386/i386.c (ix86_widen_mult_cost): New function.
3078 (ix86_add_stmt_cost): Use ix86_widen_mult_cost for
3081 2021-07-29 Jiufu Guo <guojiufu@linux.ibm.com>
3084 * config/rs6000/rs6000.c (TARGET_PREFERRED_DOLOOP_MODE): New hook.
3085 (rs6000_preferred_doloop_mode): New hook.
3086 * doc/tm.texi: Regenerate.
3087 * doc/tm.texi.in: Add hook preferred_doloop_mode.
3088 * target.def (preferred_doloop_mode): New hook.
3089 * targhooks.c (default_preferred_doloop_mode): New hook.
3090 * targhooks.h (default_preferred_doloop_mode): New hook.
3091 * tree-ssa-loop-ivopts.c (compute_doloop_base_on_mode): New function.
3092 (add_iv_candidate_for_doloop): Call targetm.preferred_doloop_mode
3093 and compute_doloop_base_on_mode.
3095 2021-07-28 Martin Sebor <msebor@redhat.com>
3097 PR middle-end/101494
3098 * tree-ssa-uninit.c (maybe_warn_operand): Correct object offset
3099 and size computation.
3101 2021-07-28 Martin Sebor <msebor@redhat.com>
3103 PR middle-end/101601
3104 * gimple-array-bounds.cc (array_bounds_checker::check_mem_ref): Remove
3106 Handle pointers to functions.
3108 2021-07-28 Martin Sebor <msebor@redhat.com>
3110 * Makefile.in (OBJS): Add gimple-ssa-warn-access.o and pointer-query.o.
3111 * attribs.h (fndecl_dealloc_argno): Move fndecl_dealloc_argno to tree.h.
3112 * builtins.c (compute_objsize_r): Move to pointer-query.cc.
3113 (access_ref::access_ref): Same.
3114 (access_ref::phi): Same.
3115 (access_ref::get_ref): Same.
3116 (access_ref::size_remaining): Same.
3117 (access_ref::offset_in_range): Same.
3118 (access_ref::add_offset): Same.
3119 (access_ref::inform_access): Same.
3120 (ssa_name_limit_t::visit_phi): Same.
3121 (ssa_name_limit_t::leave_phi): Same.
3122 (ssa_name_limit_t::next): Same.
3123 (ssa_name_limit_t::next_phi): Same.
3124 (ssa_name_limit_t::~ssa_name_limit_t): Same.
3125 (pointer_query::pointer_query): Same.
3126 (pointer_query::get_ref): Same.
3127 (pointer_query::put_ref): Same.
3128 (pointer_query::flush_cache): Same.
3129 (warn_string_no_nul): Move to gimple-ssa-warn-access.cc.
3130 (check_nul_terminated_array): Same.
3131 (unterminated_array): Same.
3132 (maybe_warn_for_bound): Same.
3133 (check_read_access): Same.
3134 (warn_for_access): Same.
3135 (get_size_range): Same.
3136 (check_access): Same.
3137 (gimple_call_alloc_size): Move to tree.c.
3138 (gimple_parm_array_size): Move to pointer-query.cc.
3139 (get_offset_range): Same.
3140 (gimple_call_return_array): Same.
3141 (handle_min_max_size): Same.
3142 (handle_array_ref): Same.
3143 (handle_mem_ref): Same.
3144 (compute_objsize): Same.
3145 (gimple_call_alloc_p): Move to gimple-ssa-warn-access.cc.
3146 (call_dealloc_argno): Same.
3147 (fndecl_dealloc_argno): Same.
3148 (new_delete_mismatch_p): Same.
3149 (matching_alloc_calls_p): Same.
3150 (warn_dealloc_offset): Same.
3151 (maybe_emit_free_warning): Same.
3152 * builtins.h (check_nul_terminated_array): Move to
3153 gimple-ssa-warn-access.h.
3154 (check_nul_terminated_array): Same.
3155 (warn_string_no_nul): Same.
3156 (unterminated_array): Same.
3157 (class ssa_name_limit_t): Same.
3158 (class pointer_query): Same.
3159 (struct access_ref): Same.
3160 (class range_query): Same.
3161 (struct access_data): Same.
3162 (gimple_call_alloc_size): Same.
3163 (gimple_parm_array_size): Same.
3164 (compute_objsize): Same.
3165 (class access_data): Same.
3166 (maybe_emit_free_warning): Same.
3167 * calls.c (initialize_argument_information): Remove call to
3168 maybe_emit_free_warning.
3169 * gimple-array-bounds.cc: Include new header..
3170 * gimple-fold.c: Same.
3171 * gimple-ssa-sprintf.c: Same.
3172 * gimple-ssa-warn-restrict.c: Same.
3173 * passes.def: Add pass_warn_access.
3174 * tree-pass.h (make_pass_warn_access): Declare.
3175 * tree-ssa-strlen.c: Include new headers.
3176 * tree.c (fndecl_dealloc_argno): Move here from builtins.c.
3177 * tree.h (fndecl_dealloc_argno): Move here from attribs.h.
3178 * gimple-ssa-warn-access.cc: New file.
3179 * gimple-ssa-warn-access.h: New file.
3180 * pointer-query.cc: New file.
3181 * pointer-query.h: New file.
3183 2021-07-28 Jakub Jelinek <jakub@redhat.com>
3185 PR middle-end/101624
3186 * ubsan.c (maybe_instrument_pointer_overflow,
3187 instrument_object_size): Only test DECL_REGISTER on VAR_DECLs,
3188 PARM_DECLs or RESULT_DECLs.
3189 * sanopt.c (maybe_optimize_ubsan_ptr_ifn): Likewise.
3191 2021-07-28 Jakub Jelinek <jakub@redhat.com>
3193 PR middle-end/101642
3194 * match.pd (bswap16 (x) == bswap16 (y)): Cast both operands
3195 to type of bswap16 for comparison.
3196 (bswap16 (x) == cst): Cast bswap16 operand to type of cst.
3198 2021-07-28 Richard Biener <rguenther@suse.de>
3200 PR tree-optimization/101615
3201 * tree-vect-slp.c (vect_optimize_slp): Materialize permutes
3202 at CTOR SLP graph entries.
3204 2021-07-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3206 * config/aarch64/aarch64.md (*extend<SHORT:mode><GPI:mode>2_aarch64):
3207 Add "r,w" alternative.
3209 2021-07-28 H.J. Lu <hjl.tools@gmail.com>
3212 * config/i386/i386.c (ix86_avx_u128_mode_needed): Don't set
3213 AVX_U128_DIRTY when all bits are zero.
3215 2021-07-28 Richard Biener <rguenther@suse.de>
3217 PR tree-optimization/101615
3218 * tree-vect-slp.c (vect_optimize_slp): Pre-existing vector
3219 external nodes cannot be permuted so make them perm_out 0.
3221 2021-07-28 Andrew Stubbs <ams@codesourcery.com>
3224 * config.in: Regenerate.
3225 * config/gcn/gcn-hsa.h (A_FIJI): New define.
3226 (A_900): New define.
3227 (A_906): New define.
3228 (A_908): New define.
3229 (ASM_SPEC): Use A_FIJI, A_900, A_906 and A_908.
3230 * config/gcn/gcn.c (output_file_start): Adjust attributes according
3231 to the assembler capabilities.
3232 * config/gcn/mkoffload.c (main): Likewise.
3233 * configure: Regenerate.
3234 * configure.ac: Add tests for LLVM assembler attribute features.
3236 2021-07-28 Andrew MacLeod <amacleod@redhat.com>
3238 * gimple-range-gori.cc (gori_compute::outgoing_edge_range_p): Check for
3239 cond_false and cond_true on branches.
3241 2021-07-28 Bin Cheng <bin.cheng@linux.alibaba.com>
3243 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): use
3246 2021-07-28 Bin Cheng <bin.cheng@linux.alibaba.com>
3248 * alias.c (init_alias_analysis): Don't skip prologue/epilogue.
3250 2021-07-28 Jakub Jelinek <jakub@redhat.com>
3253 * config/i386/sse.md (vashr<mode>3): Split into vashrv8di3 expander
3254 and vashrv4di3 expander, where the latter requires just TARGET_AVX2
3255 and has special !TARGET_AVX512VL expansion.
3256 (vashrv2di3<mask_name>): Rename to ...
3257 (vashrv2di3): ... this. Change condition to TARGET_XOP || TARGET_AVX2
3258 and add special !TARGET_XOP && !TARGET_AVX512VL expansion.
3260 2021-07-28 Martin Uecker <muecker@gwdg.de>
3262 * calls.c (maybe_warn_rdwr_sizes): Correct argument
3263 numbers in warning that were switched.
3265 2021-07-28 Kewen Lin <linkw@linux.ibm.com>
3267 PR tree-optimization/101596
3268 * tree-vect-patterns.c (vect_recog_mulhs_pattern): Fix wrong check
3269 by using new_type's precision instead.
3271 2021-07-28 liuhongt <hongtao.liu@intel.com>
3274 * config/i386/i386.h (processor_costs): Add new member
3276 * config/i386/x86-tune-costs.h (ix86_size_cost, i386_cost,
3277 i486_cost, pentium_cost, lakemont_cost, pentiumpro_cost,
3278 geode_cost, k6_cost, athlon_cost, k8_cost, amdfam10_cost,
3279 bdver_cost, znver1_cost, znver2_cost, znver3_cost,
3280 btver1_cost, btver2_cost, btver3_cost, pentium4_cost,
3281 nocona_cost, atom_cost, atom_cost, slm_cost, intel_cost,
3282 generic_cost, core_cost): Initialize integer_to_sse same value
3284 (skylake_cost): Initialize integer_to_sse twice as much as sse_op.
3285 * config/i386/i386.c (ix86_builtin_vectorization_cost):
3286 Use integer_to_sse instead of sse_op to calculate the cost of
3289 2021-07-27 Bill Schmidt <wschmidt@linux.ibm.com>
3291 * config/rs6000/rs6000-gen-builtins.c (write_ovld_static_init): New
3293 (write_init_file): Call write_ovld_static_init.
3295 2021-07-27 Bill Schmidt <wschmidt@linux.ibm.com>
3297 * config/rs6000/rs6000-gen-builtins.c (write_bif_static_init): New
3299 (write_init_file): Call write_bif_static_init.
3301 2021-07-27 Bill Schmidt <wschmidt@linux.ibm.com>
3303 * config/rs6000/rs6000-gen-builtins.c (typemap): New struct.
3304 (TYPE_MAP_SIZE): New macro.
3305 (type_map): New initialized variable.
3306 (typemap_cmp): New function.
3307 (write_type_node): Likewise.
3308 (write_fntype_init): Implement.
3310 2021-07-27 Martin Sebor <msebor@redhat.com>
3312 PR tree-optimization/101584
3313 * tree-ssa-uninit.c (builtin_call_nomodifying_p): New function.
3314 (check_defs): Call it.
3316 2021-07-27 Aldy Hernandez <aldyh@redhat.com>
3318 * tree-ssa-dom.c (dom_jump_threader_simplifier):
3319 Put avail_exprs_stack in the class, instead of passing it to
3320 jump_threader_simplifier.
3321 (dom_jump_threader_simplifier::simplify): Add state argument.
3322 (dom_opt_dom_walker): Add state.
3323 (pass_dominator::execute): Pass state to threader.
3324 (dom_opt_dom_walker::before_dom_children): Use state.
3325 * tree-ssa-threadedge.c (jump_threader::jump_threader): Replace
3327 (jump_threader::record_temporary_equivalences_from_phis):
3328 Register equivalences through the state variable.
3329 (jump_threader::record_temporary_equivalences_from_stmts_at_dest):
3330 Record ranges in a statement through the state variable.
3331 (jump_threader::simplify_control_stmt_condition): Pass state to
3333 (jump_threader::simplify_control_stmt_condition_1): Same.
3334 (jump_threader::thread_around_empty_blocks): Remove obsolete
3336 (jump_threader::thread_through_normal_block): Record equivalences
3337 on edge through the state variable.
3338 (jump_threader::thread_across_edge): Abstract state pushing.
3339 (jt_state::jt_state): New.
3340 (jt_state::push): New.
3341 (jt_state::pop): New.
3342 (jt_state::register_equiv): New.
3343 (jt_state::record_ranges_from_stmt): New.
3344 (jt_state::register_equivs_on_edge): New.
3345 (jump_threader_simplifier::jump_threader_simplifier): Move from
3347 (jump_threader_simplifier::simplify): Add state argument.
3348 * tree-ssa-threadedge.h (class jt_state): New.
3349 (class jump_threader): Add state to constructor.
3350 (class jump_threader_simplifier): Add state to simplify. Remove
3351 avail_exprs_stack from class.
3352 * tree-vrp.c (vrp_jump_threader_simplifier::simplify): Add state
3354 (vrp_jump_threader::vrp_jump_threader): Add state.
3355 (vrp_jump_threader::~vrp_jump_threader): Cleanup state.
3357 2021-07-27 Aldy Hernandez <aldyh@redhat.com>
3359 * Makefile.in (OBJS): Add gimple-range-path.o.
3360 * gimple-range-path.cc: New file.
3361 * gimple-range-path.h: New file.
3363 2021-07-27 Jonathan Wright <jonathan.wright@arm.com>
3365 * config/aarch64/aarch64-simd.md: Push sign/zero-extension
3366 inside vec_duplicate for all patterns.
3367 * simplify-rtx.c (simplify_context::simplify_unary_operation_1):
3368 Push sign/zero-extension inside vec_duplicate.
3370 2021-07-27 Richard Biener <rguenther@suse.de>
3372 PR tree-optimization/101573
3373 * tree-ssa-uninit.c (warn_uninit_phi_uses): New function
3374 looking at uninitialized PHI arg defs in some constrained cases.
3375 (warn_uninitialized_vars): Call it.
3376 (execute_early_warn_uninitialized): Calculate dominators.
3378 2021-07-27 Richard Biener <rguenther@suse.de>
3380 PR tree-optimization/39821
3381 * tree-vect-stmts.c (vect_model_promotion_demotion_cost): Use
3382 vector_stmt for widening arithmetic.
3383 (vectorizable_conversion): Adjust.
3385 2021-07-27 Martin Jambor <mjambor@suse.cz>
3387 * cgraph.h (ipa_replace_map): New field force_load_ref.
3388 * ipa-prop.h (ipa_param_descriptor): Reduce precision of move_cost,
3389 aded new flag load_dereferenced, adjusted comments.
3390 (ipa_get_param_dereferenced): New function.
3391 (ipa_set_param_dereferenced): Likewise.
3392 * cgraphclones.c (cgraph_node::create_virtual_clone): Follow it.
3393 * ipa-cp.c: Include gimple.h.
3394 (ipcp_discover_new_direct_edges): Take into account dereferenced flag.
3395 (get_replacement_map): New parameter force_load_ref, set the
3396 appropriate flag in ipa_replace_map if set.
3397 (struct symbol_and_index_together): New type.
3398 (adjust_refs_in_act_callers): New function.
3399 (adjust_references_in_caller): Likewise.
3400 (create_specialized_node): When appropriate, call
3401 adjust_references_in_caller and force only load references.
3402 * ipa-prop.c (load_from_dereferenced_name): New function.
3403 (ipa_analyze_controlled_uses): Also detect loads from a
3404 dereference, harden testing of call statements.
3405 (ipa_write_node_info): Stream the dereferenced flag.
3406 (ipa_read_node_info): Likewise.
3407 (ipa_set_jf_constant): Also create refdesc when jump function
3408 references a variable.
3409 (cgraph_node_for_jfunc): Rename to symtab_node_for_jfunc, work
3410 also on references of variables and return a symtab_node. Adjust
3412 (propagate_controlled_uses): Also remove references to VAR_DECLs.
3414 2021-07-27 Jakub Jelinek <jakub@redhat.com>
3416 PR middle-end/101586
3417 * gimple-fold.c (clear_padding_type): Ignore FIELD_DECLs with byte
3418 positions above or equal to sz except for diagnostics of flexible
3421 2021-07-26 Andrew MacLeod <amacleod@redhat.com>
3423 PR tree-optimization/78888
3424 * gimple-range-fold.cc (get_letter_range): New.
3425 (fold_using_range::range_of_builtin_call): Call get_letter_range.
3427 2021-07-26 Andrew MacLeod <amacleod@redhat.com>
3429 PR tree-optimization/78888
3430 * gimple-range-fold.cc (fold_using_range::range_of_builtin_call): Add cases
3431 for CFN_BUILT_IN_TOUPPER and CFN_BUILT_IN_TOLOWER.
3433 2021-07-26 Roger Sayle <roger@nextmovesoftware.com>
3434 Marc Glisse <marc.glisse@inria.fr>
3436 * match.pd (rotate): Simplify equality/inequality of rotations.
3437 (bswap): Simplify equality/inequality tests of byte swapping.
3439 2021-07-26 Aldy Hernandez <aldyh@redhat.com>
3441 * range-op.cc (operator_bitwise_xor::op1_op2_relation_effect):
3444 2021-07-26 Aldy Hernandez <aldyh@redhat.com>
3446 * range-op.cc (operator_lshift::fold_range): Pass rel to
3447 base class fold_range.
3448 (operator_rshift::fold_range): Same.
3450 2021-07-26 Ashimida <ashimida@linux.alibaba.com>
3453 * toplev.h (min_align_loops_log): Remove declaration.
3454 (min_align_jumps_log, min_align_labels_log): Likewise.
3455 (min_align_functions_log): Likewise.
3457 2021-07-26 Aldy Hernandez <aldyh@redhat.com>
3459 * tree-vrp.c (vrp_simplify_cond_using_ranges): Rename vr_values
3461 (execute_vrp): Abstract out simplification of conditionals...
3462 (simplify_casted_conds): ...here.
3464 2021-07-26 Aldy Hernandez <aldyh@redhat.com>
3466 * gimple-array-bounds.cc (array_bounds_checker::get_value_range):
3467 Add gimple argument.
3468 (array_bounds_checker::check_array_ref): Same.
3469 (array_bounds_checker::check_addr_expr): Same.
3470 (array_bounds_checker::check_array_bounds): Pass statement to
3471 check_array_bounds and check_addr_expr.
3472 * gimple-array-bounds.h (check_array_bounds): Add gimple argument.
3473 (check_addr_expr): Same.
3474 (get_value_range): Same.
3476 2021-07-26 Tamar Christina <tamar.christina@arm.com>
3478 * config/aarch64/aarch64-simd-builtins.def (sdot, udot): Rename to..
3479 (sdot_prod, udot_prod): ... This.
3480 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>): Merged
3482 (<sur>dot_prod<vsi2qi>): ... this.
3483 (aarch64_<sur>dot_lane<vsi2qi>, aarch64_<sur>dot_laneq<vsi2qi>):
3484 Change operands order.
3485 (<sur>sadv16qi): Use new operands order.
3486 * config/aarch64/arm_neon.h (vdot_u32, vdotq_u32, vdot_s32,
3487 vdotq_s32): Use new RTL ordering.
3489 2021-07-26 Tamar Christina <tamar.christina@arm.com>
3491 * config/aarch64/aarch64-builtins.c (TYPES_TERNOP_SUSS,
3492 aarch64_types_ternop_suss_qualifiers): New.
3493 * config/aarch64/aarch64-simd-builtins.def (usdot_prod): Use it.
3494 * config/aarch64/aarch64-simd.md (usdot_prod<vsi2qi>): Re-organize RTL.
3495 * config/aarch64/arm_neon.h (vusdot_s32, vusdotq_s32): Use it.
3497 2021-07-23 Jakub Jelinek <jakub@redhat.com>
3499 PR rtl-optimization/101562
3500 * expmed.c (store_integral_bit_field): Only use movstrict_optab
3501 if the operand isn't paradoxical.
3503 2021-07-23 Aldy Hernandez <aldyh@redhat.com>
3505 * gimple-array-bounds.h (class array_bounds_checker): Change
3506 ranges type to range_query.
3508 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
3510 * config/aarch64/arm_neon.h (vst1_s64_x2): Use
3511 __builtin_memcpy instead of constructing
3512 __builtin_aarch64_simd_oi one vector at a time.
3513 (vst1_u64_x2): Likewise.
3514 (vst1_f64_x2): Likewise.
3515 (vst1_s8_x2): Likewise.
3516 (vst1_p8_x2): Likewise.
3517 (vst1_s16_x2): Likewise.
3518 (vst1_p16_x2): Likewise.
3519 (vst1_s32_x2): Likewise.
3520 (vst1_u8_x2): Likewise.
3521 (vst1_u16_x2): Likewise.
3522 (vst1_u32_x2): Likewise.
3523 (vst1_f16_x2): Likewise.
3524 (vst1_f32_x2): Likewise.
3525 (vst1_p64_x2): Likewise.
3526 (vst1q_s8_x2): Likewise.
3527 (vst1q_p8_x2): Likewise.
3528 (vst1q_s16_x2): Likewise.
3529 (vst1q_p16_x2): Likewise.
3530 (vst1q_s32_x2): Likewise.
3531 (vst1q_s64_x2): Likewise.
3532 (vst1q_u8_x2): Likewise.
3533 (vst1q_u16_x2): Likewise.
3534 (vst1q_u32_x2): Likewise.
3535 (vst1q_u64_x2): Likewise.
3536 (vst1q_f16_x2): Likewise.
3537 (vst1q_f32_x2): Likewise.
3538 (vst1q_f64_x2): Likewise.
3539 (vst1q_p64_x2): Likewise.
3541 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
3543 * config/aarch64/arm_neon.h (vst1_s64_x3): Use
3544 __builtin_memcpy instead of constructing
3545 __builtin_aarch64_simd_ci one vector at a time.
3546 (vst1_u64_x3): Likewise.
3547 (vst1_f64_x3): Likewise.
3548 (vst1_s8_x3): Likewise.
3549 (vst1_p8_x3): Likewise.
3550 (vst1_s16_x3): Likewise.
3551 (vst1_p16_x3): Likewise.
3552 (vst1_s32_x3): Likewise.
3553 (vst1_u8_x3): Likewise.
3554 (vst1_u16_x3): Likewise.
3555 (vst1_u32_x3): Likewise.
3556 (vst1_f16_x3): Likewise.
3557 (vst1_f32_x3): Likewise.
3558 (vst1_p64_x3): Likewise.
3559 (vst1q_s8_x3): Likewise.
3560 (vst1q_p8_x3): Likewise.
3561 (vst1q_s16_x3): Likewise.
3562 (vst1q_p16_x3): Likewise.
3563 (vst1q_s32_x3): Likewise.
3564 (vst1q_s64_x3): Likewise.
3565 (vst1q_u8_x3): Likewise.
3566 (vst1q_u16_x3): Likewise.
3567 (vst1q_u32_x3): Likewise.
3568 (vst1q_u64_x3): Likewise.
3569 (vst1q_f16_x3): Likewise.
3570 (vst1q_f32_x3): Likewise.
3571 (vst1q_f64_x3): Likewise.
3572 (vst1q_p64_x3): Likewise.
3574 2021-07-23 H.J. Lu <hjl.tools@gmail.com>
3577 * config/i386/i386.c (ix86_gen_scratch_sse_rtx): Don't return
3578 hard register when LRA is in progress.
3580 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
3582 * config/aarch64/arm_neon.h (vst1_s8_x4): Use
3583 __builtin_memcpy instead of using a union.
3584 (vst1q_s8_x4): Likewise.
3585 (vst1_s16_x4): Likewise.
3586 (vst1q_s16_x4): Likewise.
3587 (vst1_s32_x4): Likewise.
3588 (vst1q_s32_x4): Likewise.
3589 (vst1_u8_x4): Likewise.
3590 (vst1q_u8_x4): Likewise.
3591 (vst1_u16_x4): Likewise.
3592 (vst1q_u16_x4): Likewise.
3593 (vst1_u32_x4): Likewise.
3594 (vst1q_u32_x4): Likewise.
3595 (vst1_f16_x4): Likewise.
3596 (vst1q_f16_x4): Likewise.
3597 (vst1_f32_x4): Likewise.
3598 (vst1q_f32_x4): Likewise.
3599 (vst1_p8_x4): Likewise.
3600 (vst1q_p8_x4): Likewise.
3601 (vst1_p16_x4): Likewise.
3602 (vst1q_p16_x4): Likewise.
3603 (vst1_s64_x4): Likewise.
3604 (vst1_u64_x4): Likewise.
3605 (vst1_p64_x4): Likewise.
3606 (vst1q_s64_x4): Likewise.
3607 (vst1q_u64_x4): Likewise.
3608 (vst1q_p64_x4): Likewise.
3609 (vst1_f64_x4): Likewise.
3610 (vst1q_f64_x4): Likewise.
3612 2021-07-23 Jonathan Wrightt <jonathan.wright@arm.com>
3614 * config/aarch64/arm_neon.h (vst2_s64): Use __builtin_memcpy
3615 instead of constructing __builtin_aarch64_simd_oi one vector
3617 (vst2_u64): Likewise.
3618 (vst2_f64): Likewise.
3619 (vst2_s8): Likewise.
3620 (vst2_p8): Likewise.
3621 (vst2_s16): Likewise.
3622 (vst2_p16): Likewise.
3623 (vst2_s32): Likewise.
3624 (vst2_u8): Likewise.
3625 (vst2_u16): Likewise.
3626 (vst2_u32): Likewise.
3627 (vst2_f16): Likewise.
3628 (vst2_f32): Likewise.
3629 (vst2_p64): Likewise.
3630 (vst2q_s8): Likewise.
3631 (vst2q_p8): Likewise.
3632 (vst2q_s16): Likewise.
3633 (vst2q_p16): Likewise.
3634 (vst2q_s32): Likewise.
3635 (vst2q_s64): Likewise.
3636 (vst2q_u8): Likewise.
3637 (vst2q_u16): Likewise.
3638 (vst2q_u32): Likewise.
3639 (vst2q_u64): Likewise.
3640 (vst2q_f16): Likewise.
3641 (vst2q_f32): Likewise.
3642 (vst2q_f64): Likewise.
3643 (vst2q_p64): Likewise.
3645 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
3647 * config/aarch64/arm_neon.h (vst3_s64): Use __builtin_memcpy
3648 instead of constructing __builtin_aarch64_simd_ci one vector
3650 (vst3_u64): Likewise.
3651 (vst3_f64): Likewise.
3652 (vst3_s8): Likewise.
3653 (vst3_p8): Likewise.
3654 (vst3_s16): Likewise.
3655 (vst3_p16): Likewise.
3656 (vst3_s32): Likewise.
3657 (vst3_u8): Likewise.
3658 (vst3_u16): Likewise.
3659 (vst3_u32): Likewise.
3660 (vst3_f16): Likewise.
3661 (vst3_f32): Likewise.
3662 (vst3_p64): Likewise.
3663 (vst3q_s8): Likewise.
3664 (vst3q_p8): Likewise.
3665 (vst3q_s16): Likewise.
3666 (vst3q_p16): Likewise.
3667 (vst3q_s32): Likewise.
3668 (vst3q_s64): Likewise.
3669 (vst3q_u8): Likewise.
3670 (vst3q_u16): Likewise.
3671 (vst3q_u32): Likewise.
3672 (vst3q_u64): Likewise.
3673 (vst3q_f16): Likewise.
3674 (vst3q_f32): Likewise.
3675 (vst3q_f64): Likewise.
3676 (vst3q_p64): Likewise.
3678 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
3680 * config/aarch64/arm_neon.h (vst4_s64): Use __builtin_memcpy
3681 instead of constructing __builtin_aarch64_simd_xi one vector
3683 (vst4_u64): Likewise.
3684 (vst4_f64): Likewise.
3685 (vst4_s8): Likewise.
3686 (vst4_p8): Likewise.
3687 (vst4_s16): Likewise.
3688 (vst4_p16): Likewise.
3689 (vst4_s32): Likewise.
3690 (vst4_u8): Likewise.
3691 (vst4_u16): Likewise.
3692 (vst4_u32): Likewise.
3693 (vst4_f16): Likewise.
3694 (vst4_f32): Likewise.
3695 (vst4_p64): Likewise.
3696 (vst4q_s8): Likewise.
3697 (vst4q_p8): Likewise.
3698 (vst4q_s16): Likewise.
3699 (vst4q_p16): Likewise.
3700 (vst4q_s32): Likewise.
3701 (vst4q_s64): Likewise.
3702 (vst4q_u8): Likewise.
3703 (vst4q_u16): Likewise.
3704 (vst4q_u32): Likewise.
3705 (vst4q_u64): Likewise.
3706 (vst4q_f16): Likewise.
3707 (vst4q_f32): Likewise.
3708 (vst4q_f64): Likewise.
3709 (vst4q_p64): Likewise.
3711 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
3713 * config/aarch64/arm_neon.h (vtbx4_s8): Use __builtin_memcpy
3714 instead of constructing __builtin_aarch64_simd_oi one vector
3716 (vtbx4_u8): Likewise.
3717 (vtbx4_p8): Likewise.
3719 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
3721 * config/aarch64/arm_neon.h (vtbl3_s8): Use __builtin_memcpy
3722 instead of constructing __builtin_aarch64_simd_oi one vector
3724 (vtbl3_u8): Likewise.
3725 (vtbl3_p8): Likewise.
3726 (vtbl4_s8): Likewise.
3727 (vtbl4_u8): Likewise.
3728 (vtbl4_p8): Likewise.
3730 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
3732 * config/aarch64/arm_neon.h (vqtbx2_s8): Use __builtin_memcpy
3733 instead of constructing __builtin_aarch64_simd_oi one vector
3735 (vqtbx2_u8): Likewise.
3736 (vqtbx2_p8): Likewise.
3737 (vqtbx2q_s8): Likewise.
3738 (vqtbx2q_u8): Likewise.
3739 (vqtbx2q_p8): Likewise.
3740 (vqtbx3_s8): Use __builtin_memcpy instead of constructing
3741 __builtin_aarch64_simd_ci one vector at a time.
3742 (vqtbx3_u8): Likewise.
3743 (vqtbx3_p8): Likewise.
3744 (vqtbx3q_s8): Likewise.
3745 (vqtbx3q_u8): Likewise.
3746 (vqtbx3q_p8): Likewise.
3747 (vqtbx4_s8): Use __builtin_memcpy instead of constructing
3748 __builtin_aarch64_simd_xi one vector at a time.
3749 (vqtbx4_u8): Likewise.
3750 (vqtbx4_p8): Likewise.
3751 (vqtbx4q_s8): Likewise.
3752 (vqtbx4q_u8): Likewise.
3753 (vqtbx4q_p8): Likewise.
3755 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
3757 * config/aarch64/arm_neon.h (vqtbl2_s8): Use __builtin_memcpy
3758 instead of constructing __builtin_aarch64_simd_oi one vector
3760 (vqtbl2_u8): Likewise.
3761 (vqtbl2_p8): Likewise.
3762 (vqtbl2q_s8): Likewise.
3763 (vqtbl2q_u8): Likewise.
3764 (vqtbl2q_p8): Likewise.
3765 (vqtbl3_s8): Use __builtin_memcpy instead of constructing
3766 __builtin_aarch64_simd_ci one vector at a time.
3767 (vqtbl3_u8): Likewise.
3768 (vqtbl3_p8): Likewise.
3769 (vqtbl3q_s8): Likewise.
3770 (vqtbl3q_u8): Likewise.
3771 (vqtbl3q_p8): Likewise.
3772 (vqtbl4_s8): Use __builtin_memcpy instead of constructing
3773 __builtin_aarch64_simd_xi one vector at a time.
3774 (vqtbl4_u8): Likewise.
3775 (vqtbl4_p8): Likewise.
3776 (vqtbl4q_s8): Likewise.
3777 (vqtbl4q_u8): Likewise.
3778 (vqtbl4q_p8): Likewise.
3780 2021-07-23 Haochen Gui <guihaoc@gcc.gnu.org>
3783 * config/rs6000/rs6000.md (cstore<mode>4): Fix wrong fall through.
3785 2021-07-22 Andrew Pinski <apinski@marvell.com>
3787 PR tree-optimization/10153
3788 * tree-tailcall.c (create_tailcall_accumulator):
3789 Don't call fold_convert as the type should be correct already.
3790 (tree_optimize_tail_calls_1): Use build_{one,zero}_cst instead
3791 of integer_{one,zero}_node for the call of create_tailcall_accumulator.
3793 2021-07-22 Aldy Hernandez <aldyh@redhat.com>
3795 * gimple-range-cache.cc (non_null_ref::adjust_range): Replace
3796 varying_p check for null/non-null check.
3798 2021-07-22 Andrew MacLeod <amacleod@redhat.com>
3800 PR tree-optimization/101511
3801 * value-relation.cc (relation_oracle::query_relation): Check if ssa1
3802 is in ssa2's equiv set, and don't trap if so.
3804 2021-07-22 Andrew MacLeod <amacleod@redhat.com>
3806 PR tree-optimization/101497
3807 * gimple-range-fold.cc (fold_using_range::range_of_cond_expr): Check
3810 2021-07-22 Andrew MacLeod <amacleod@redhat.com>
3812 PR tree-optimization/101496
3813 * vr-values.c (simplify_using_ranges::fold_cond): Call range_of_stmt
3814 first, then vrp_visit_cond_Stmt.
3816 2021-07-22 liuhongt <hongtao.liu@intel.com>
3818 * config/i386/i386-expand.c
3819 (ix86_broadcast_from_integer_constant): Rename to ..
3820 (ix86_broadcast_from_constant): .. this, and extend it to
3822 (ix86_expand_vector_move): Extend to float mode.
3823 * config/i386/i386-features.c
3824 (replace_constant_pool_with_broadcast): Remove.
3825 (remove_partial_avx_dependency_gate): Ditto.
3826 (constant_pool_broadcast): Ditto.
3827 (class pass_constant_pool_broadcast): Ditto.
3828 (make_pass_constant_pool_broadcast): Ditto.
3829 (remove_partial_avx_dependency): Adjust gate.
3830 * config/i386/i386-passes.def: Remove pass_constant_pool_broadcast.
3831 * config/i386/i386-protos.h
3832 (make_pass_constant_pool_broadcast): Remove.
3834 2021-07-22 liuhongt <hongtao.liu@intel.com>
3836 * config/i386/constraints.md (Wb): New constraint.
3838 * config/i386/i386.md (*ashlhi3_1): Extend to avx512 mask
3840 (*ashlqi3_1): Ditto.
3841 (*<insn><mode>3_1): Split to ..
3842 (*ashr<mode>3_1): this, ...
3843 (*lshr<mode>3_1): and this, also extend this pattern to avx512
3845 (*<insn><mode>3_1): Split to ..
3846 (*ashr<mode>3_1): this, ...
3847 (*lshrqi3_1): and this, also extend this pattern to avx512
3849 (*lshrhi3_1): And this, also extend this pattern to avx512
3851 * config/i386/sse.md (k<code><mode>): New define_split after
3852 it to convert generic shift pattern to mask shift ones.
3854 2021-07-21 Thomas Schwinge <thomas@codesourcery.com>
3855 Joseph Myers <joseph@codesourcery.com>
3856 Cesar Philippidis <cesar@codesourcery.com>
3858 * tree-core.h (omp_clause_code): Add 'OMP_CLAUSE_NOHOST'.
3859 * tree.c (omp_clause_num_ops, omp_clause_code_name, walk_tree_1):
3861 * tree-pretty-print.c (dump_omp_clause): Likewise.
3862 * omp-general.c (oacc_verify_routine_clauses): Likewise.
3863 * gimplify.c (gimplify_scan_omp_clauses)
3864 (gimplify_adjust_omp_clauses): Likewise.
3865 * tree-nested.c (convert_nonlocal_omp_clauses)
3866 (convert_local_omp_clauses): Likewise.
3867 * omp-low.c (scan_sharing_clauses): Likewise.
3868 * omp-offload.c (execute_oacc_device_lower): Update.
3870 2021-07-21 Martin Sebor <msebor@redhat.com>
3872 * tree-ssa-alias.c (walk_aliased_vdefs_1): Fix typos in a comment.
3874 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
3876 * config/rs6000/rs6000-gen-builtins.c (write_init_bif_table):
3879 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
3881 * config/rs6000/rs6000-gen-builtins.c (write_fntype): New
3883 (write_fntype_init): New stub function.
3884 (write_init_bif_table): Likewise.
3885 (write_init_ovld_table): New function.
3886 (write_init_file): Implement.
3888 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
3890 * config/rs6000/rs6000-gen-builtins.c
3891 (write_autogenerated_header): New function.
3892 (write_decls): Likewise.
3893 (write_extern_fntype): New callback function.
3894 (write_header_file): Implement.
3896 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
3898 * config/rs6000/rs6000-gen-builtins.c (write_defines_file):
3901 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
3903 * config/rs6000/rs6000-gen-builtins.c (complete_vector_type): New
3905 (complete_base_type): Likewise.
3906 (construct_fntype_id): Likewise.
3907 (parse_bif_entry): Call contruct_fntype_id.
3908 (parse_ovld_entry): Likewise.
3910 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
3912 * config/rs6000/rs6000-gen-builtins.c (ovld_stanza): New struct.
3913 (MAXOVLDSTANZAS): New macro.
3914 (ovld_stanzas): New variable.
3915 (curr_ovld_stanza): Likewise.
3916 (MAXOVLDS): New macro.
3917 (ovlddata): New struct.
3918 (ovlds): New variable.
3919 (curr_ovld): Likewise.
3920 (max_ovld_args): Likewise.
3921 (parse_ovld_entry): New function.
3922 (parse_ovld_stanza): Likewise.
3923 (parse_ovld): Implement.
3925 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
3927 * config/rs6000/rs6000-gen-builtins.c (parse_bif_attrs):
3930 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
3932 * config/rs6000/rs6000-gen-builtins.c (parse_args): New function.
3933 (parse_prototype): Implement.
3935 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
3937 * config/rs6000/rs6000-gen-builtins.c (bif_stanza): New enum.
3938 (curr_bif_stanza): New variable.
3939 (stanza_entry): New struct.
3940 (stanza_map): New initialized variable.
3941 (enable_string): Likewise.
3942 (fnkinds): New enum.
3943 (typelist): New struct.
3944 (attrinfo): Likewise.
3945 (MAXRESTROPNDS): New macro.
3946 (prototype): New struct.
3947 (MAXBIFS): New macro.
3948 (bifdata): New struct.
3949 (bifs): New variable.
3950 (curr_bif): Likewise.
3951 (bif_order): Likewise.
3952 (bif_index): Likewise.
3953 (fatal): New function.
3954 (stanza_name_to_stanza): Likewise.
3955 (parse_bif_attrs): New stub function.
3956 (parse_prototype): Likewise.
3957 (parse_bif_entry): New function.
3958 (parse_bif_stanza): Likewise.
3959 (parse_bif): Implement.
3960 (set_bif_order): New function.
3961 (create_bif_order): Implement.
3963 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
3965 * config/rs6000/rs6000-gen-builtins.c (rbtree.h): New #include.
3966 (num_bifs): New variable.
3967 (num_ovld_stanzas): Likewise.
3968 (num_ovlds): Likewise.
3969 (parse_codes): New enum.
3970 (bif_rbt): New variable.
3971 (ovld_rbt): Likewise.
3972 (fntype_rbt): Likewise.
3973 (bifo_rbt): Likewise.
3974 (parse_bif): New stub function.
3975 (create_bif_order): Likewise.
3976 (parse_ovld): Likewise.
3977 (write_header_file): Likewise.
3978 (write_init_file): Likewise.
3979 (write_defines_file): Likewise.
3980 (delete_output_files): New function.
3983 2021-07-21 H.J. Lu <hjl.tools@gmail.com>
3986 * config/i386/i386-builtin.def: Remove OPTION_MASK_ISA_SSE4_2
3987 from CRC32 _builtin functions.
3989 2021-07-21 Sebastian Huber <sebastian.huber@embedded-brains.de>
3991 * coverage.c (build_gcov_info_var_registration): Mark the object placed
3992 in the linker set as referenced so that it does not get optimized away.
3994 2021-07-21 Kito Cheng <kito.cheng@sifive.com>
3997 2021-07-20 Kito Cheng <kito.cheng@sifive.com>
3999 * config.gcc (riscv*-*-*): Detect which python is available.
4001 2021-07-21 Jakub Jelinek <jakub@redhat.com>
4003 PR middle-end/101535
4004 * gimplify.c (omp_check_private): Properly skip ORT_TARGET_DATA
4005 contexts in which decl isn't privatized and for ORT_TARGET return
4006 false if decl is mapped.
4008 2021-07-21 Richard Sandiford <richard.sandiford@arm.com>
4010 * gimple-loop-jam.c: Include tree-ssa-sccvn.h.
4011 (tree_loop_unroll_and_jam): Run value-numbering on a loop that
4012 has been successfully unrolled.
4014 2021-07-21 Richard Sandiford <richard.sandiford@arm.com>
4016 * tree-ssa-loop-manip.c (determine_exit_conditions): Return a null
4017 exit condition if no tail loop is needed, and if the original exit
4018 condition should therefore be kept as-is.
4019 (tree_transform_and_unroll_loop): Handle that case here too.
4021 2021-07-21 Kewen Lin <linkw@linux.ibm.com>
4023 * tree-data-ref.c (free_dependence_relations): Adjust to pass vec
4025 (free_data_refs): Likewise.
4026 * tree-data-ref.h (free_dependence_relations): Likewise.
4027 (free_data_refs): Likewise.
4028 * tree-predcom.c (struct chain): Use auto_vec instead of vec for
4030 (struct component): Likewise.
4031 (pcom_worker::pcom_worker): Adjust for auto_vec and renaming changes.
4032 (pcom_worker::~pcom_worker): Likewise.
4033 (pcom_worker::release_chain): Adjust as auto_vec changes.
4034 (pcom_worker::loop): Rename to ...
4035 (pcom_worker::m_loop): ... this.
4036 (pcom_worker::datarefs): Rename to ...
4037 (pcom_worker::m_datarefs): ... this. Use auto_vec instead of vec.
4038 (pcom_worker::dependences): Rename to ...
4039 (pcom_worker::m_dependences): ... this. Use auto_vec instead of vec.
4040 (pcom_worker::chains): Rename to ...
4041 (pcom_worker::m_chains): ... this. Use auto_vec instead of vec.
4042 (pcom_worker::looparound_phis): Rename to ...
4043 (pcom_worker::m_looparound_phis): ... this. Use auto_vec instead of
4045 (pcom_worker::cache): Rename to ...
4046 (pcom_worker::m_cache): ... this. Use auto_vec instead of vec.
4047 (pcom_worker::release_chain): Adjust for auto_vec changes.
4048 (pcom_worker::release_chains): Adjust for auto_vec and renaming
4050 (release_component): Remove.
4051 (release_components): Adjust for release_component removal.
4052 (component_of): Adjust to use vec.
4053 (merge_comps): Likewise.
4054 (pcom_worker::aff_combination_dr_offset): Adjust for renaming changes.
4055 (pcom_worker::determine_offset): Likewise.
4056 (class comp_ptrs): Remove.
4057 (pcom_worker::split_data_refs_to_components): Adjust for renaming
4058 changes, for comp_ptrs removal with auto_vec.
4059 (pcom_worker::suitable_component_p): Adjust for renaming changes.
4060 (pcom_worker::filter_suitable_components): Adjust for release_component
4062 (pcom_worker::valid_initializer_p): Adjust for renaming changes.
4063 (pcom_worker::find_looparound_phi): Likewise.
4064 (pcom_worker::add_looparound_copies): Likewise.
4065 (pcom_worker::determine_roots_comp): Likewise.
4066 (pcom_worker::single_nonlooparound_use): Likewise.
4067 (pcom_worker::execute_pred_commoning_chain): Likewise.
4068 (pcom_worker::execute_pred_commoning): Likewise.
4069 (pcom_worker::try_combine_chains): Likewise.
4070 (pcom_worker::prepare_initializers_chain): Likewise.
4071 (pcom_worker::prepare_initializers): Likewise.
4072 (pcom_worker::prepare_finalizers_chain): Likewise.
4073 (pcom_worker::prepare_finalizers): Likewise.
4074 (pcom_worker::tree_predictive_commoning_loop): Likewise.
4076 2021-07-20 Martin Sebor <msebor@redhat.com>
4078 PR middle-end/101397
4079 * builtins.c (gimple_call_return_array): Add argument. Correct
4080 offsets for memchr, mempcpy, stpcpy, and stpncpy.
4081 (compute_objsize_r): Adjust offset computation for argument returning
4084 2021-07-20 Martin Sebor <msebor@redhat.com>
4086 PR middle-end/101300
4087 * tree-ssa-uninit.c (check_defs): Handle UBSAN built-ins.
4089 2021-07-20 Jeff Law <jlaw@localhost.localdomain>
4091 * function.c (assign_parm_setup_block): Use adjust_address instead
4092 of change_address to preserve MEM_EXPR and friends.
4094 2021-07-20 Martin Sebor <msebor@redhat.com>
4096 * cfgloop.h (single_likely_exit): Adjust by-value argument to
4098 * cfgloopanal.c (single_likely_exit): Same.
4099 * cgraph.h (struct cgraph_node): Same.
4100 * cgraphclones.c (cgraph_node::create_virtual_clone): Same.
4101 * genautomata.c (merge_states): Same.
4102 * genextract.c (VEC_char_to_string): Same.
4103 * genmatch.c (dt_node::gen_kids_1): Same.
4104 (walk_captures): Adjust by-value argument to by-reference.
4105 * gimple-ssa-store-merging.c (check_no_overlap): Adjust by-value argument
4106 to by-const-reference.
4107 * gimple.c (gimple_build_call_vec): Same.
4108 (gimple_build_call_internal_vec): Same.
4109 (gimple_build_switch): Same.
4110 (sort_case_labels): Same.
4111 (preprocess_case_label_vec_for_gimple): Adjust by-value argument to
4113 * gimple.h (gimple_build_call_vec): Adjust by-value argument to
4115 (gimple_build_call_internal_vec): Same.
4116 (gimple_build_switch): Same.
4117 (sort_case_labels): Same.
4118 (preprocess_case_label_vec_for_gimple): Adjust by-value argument to
4120 * haifa-sched.c (calc_priorities): Adjust by-value argument to
4122 (sched_init_luids): Same.
4123 (haifa_init_h_i_d): Same.
4124 * ipa-cp.c (ipa_get_indirect_edge_target_1): Same.
4125 (adjust_callers_for_value_intersection): Adjust by-value argument to
4127 (find_more_scalar_values_for_callers_subset): Adjust by-value argument to
4129 (find_more_contexts_for_caller_subset): Same.
4130 (find_aggregate_values_for_callers_subset): Same.
4131 (copy_useful_known_contexts): Same.
4132 * ipa-fnsummary.c (remap_edge_summaries): Same.
4133 (remap_freqcounting_predicate): Same.
4134 * ipa-inline.c (add_new_edges_to_heap): Adjust by-value argument to
4136 * ipa-predicate.c (predicate::remap_after_inlining): Adjust by-value argument
4137 to by-const-reference.
4138 * ipa-predicate.h (predicate::remap_after_inlining): Same.
4139 * ipa-prop.c (ipa_find_agg_cst_for_param): Same.
4140 * ipa-prop.h (ipa_find_agg_cst_for_param): Same.
4141 * ira-build.c (ira_loop_tree_body_rev_postorder): Same.
4142 * read-rtl.c (add_overload_instance): Same.
4143 * rtl.h (native_decode_rtx): Same.
4144 (native_decode_vector_rtx): Same.
4145 * sched-int.h (sched_init_luids): Same.
4146 (haifa_init_h_i_d): Same.
4147 * simplify-rtx.c (native_decode_vector_rtx): Same.
4148 (native_decode_rtx): Same.
4149 * tree-call-cdce.c (gen_shrink_wrap_conditions): Same.
4150 (shrink_wrap_one_built_in_call_with_conds): Same.
4151 (shrink_wrap_conditional_dead_built_in_calls): Same.
4152 * tree-data-ref.c (create_runtime_alias_checks): Same.
4153 (compute_all_dependences): Same.
4154 * tree-data-ref.h (compute_all_dependences): Same.
4155 (create_runtime_alias_checks): Same.
4156 (index_in_loop_nest): Same.
4157 * tree-if-conv.c (mask_exists): Same.
4158 * tree-loop-distribution.c (class loop_distribution): Same.
4159 (loop_distribution::create_rdg_vertices): Same.
4160 (dump_rdg_partitions): Same.
4161 (debug_rdg_partitions): Same.
4162 (partition_contains_all_rw): Same.
4163 (loop_distribution::distribute_loop): Same.
4164 * tree-parloops.c (oacc_entry_exit_ok_1): Same.
4165 (oacc_entry_exit_single_gang): Same.
4166 * tree-ssa-loop-im.c (hoist_memory_references): Same.
4167 (loop_suitable_for_sm): Same.
4168 * tree-ssa-loop-niter.c (bound_index): Same.
4169 * tree-ssa-reassoc.c (update_ops): Same.
4170 (swap_ops_for_binary_stmt): Same.
4171 (rewrite_expr_tree): Same.
4172 (rewrite_expr_tree_parallel): Same.
4173 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Same.
4174 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Same.
4175 * tree-ssa-structalias.c (process_all_all_constraints): Same.
4176 (make_constraints_to): Same.
4177 (handle_lhs_call): Same.
4178 (find_func_aliases_for_builtin_call): Same.
4179 (sort_fieldstack): Same.
4180 (check_for_overlaps): Same.
4181 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks): Same.
4182 (vect_create_cond_for_unequal_addrs): Same.
4183 (vect_create_cond_for_lower_bounds): Same.
4184 (vect_create_cond_for_alias_checks): Same.
4185 * tree-vect-slp-patterns.c (vect_validate_multiplication): Same.
4186 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
4187 (vect_make_slp_decision): Same.
4188 (vect_slp_bbs): Same.
4189 (duplicate_and_interleave): Same.
4190 (vect_transform_slp_perm_load): Same.
4191 (vect_schedule_slp): Same.
4192 * tree-vectorizer.h (vect_transform_slp_perm_load): Same.
4193 (vect_schedule_slp): Same.
4194 (duplicate_and_interleave): Same.
4195 * tree.c (build_vector_from_ctor): Same.
4196 (build_vector): Same.
4197 (check_vector_cst): Same.
4198 (check_vector_cst_duplicate): Same.
4199 (check_vector_cst_fill): Same.
4200 (check_vector_cst_stepped): Same.
4201 * tree.h (build_vector_from_ctor): Same.
4203 2021-07-20 Jakub Jelinek <jakub@redhat.com>
4206 * config/rs6000/rs6000-protos.h (easy_altivec_constant): Change return
4207 type from bool to int.
4208 * config/rs6000/rs6000.c (vspltis_constant): Fix up handling the
4209 EASY_VECTOR_MSB case if either step or copies is not 1.
4210 (vspltis_shifted): Fix comment typo.
4211 (easy_altivec_constant): Change return type from bool to int, instead
4212 of returning true return byte size of the element mode that should be
4213 used to synthetize the constant.
4214 * config/rs6000/predicates.md (easy_vector_constant_msb): Require
4215 that vspltis_shifted is 0, handle the case where easy_altivec_constant
4216 assumes using different vector mode from CONST_VECTOR's mode.
4217 * config/rs6000/altivec.md (easy_vector_constant_msb splitter): Use
4218 easy_altivec_constant to determine mode in which -1 >> -1 should be
4219 performed, use rs6000_expand_vector_init instead of gen_vec_initv4sisi.
4221 2021-07-20 Richard Biener <rguenther@suse.de>
4224 * dwarf2out.h (dwarf_file_data): Add key member.
4225 * dwarf2out.c (dwarf_file_hasher::equal): Compare key.
4226 (dwarf_file_hasher::hash): Hash key.
4227 (lookup_filename): Remap the filename and store it in the
4228 filename member of dwarf_file_data when creating a new
4230 (file_name_acquire): Do not remap the filename again.
4231 (maybe_emit_file): Likewise.
4233 2021-07-20 Jonathan Wright <jonathan.wright@arm.com>
4235 * config/aarch64/aarch64-simd-builtins.def: Use two variant
4236 generators for all TBL/TBX intrinsics and rename to
4237 consistent forms: qtbl[1234] or qtbx[1234].
4238 * config/aarch64/aarch64-simd.md (aarch64_tbl1<mode>):
4240 (aarch64_qtbl1<mode>): This.
4241 (aarch64_tbx1<mode>): Rename to...
4242 (aarch64_qtbx1<mode>): This.
4243 (aarch64_tbl2v16qi): Delete.
4244 (aarch64_tbl3<mode>): Rename to...
4245 (aarch64_qtbl2<mode>): This.
4246 (aarch64_tbx4<mode>): Rename to...
4247 (aarch64_qtbx2<mode>): This.
4248 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Use
4249 renamed qtbl1 and qtbl2 RTL patterns.
4250 * config/aarch64/arm_neon.h (vqtbl1_p8): Use renamed qtbl1
4252 (vqtbl1_s8): Likewise.
4253 (vqtbl1_u8): Likewise.
4254 (vqtbl1q_p8): Likewise.
4255 (vqtbl1q_s8): Likewise.
4256 (vqtbl1q_u8): Likewise.
4257 (vqtbx1_s8): Use renamed qtbx1 RTL pattern.
4258 (vqtbx1_u8): Likewise.
4259 (vqtbx1_p8): Likewise.
4260 (vqtbx1q_s8): Likewise.
4261 (vqtbx1q_u8): Likewise.
4262 (vqtbx1q_p8): Likewise.
4263 (vtbl1_s8): Use renamed qtbl1 RTL pattern.
4264 (vtbl1_u8): Likewise.
4265 (vtbl1_p8): Likewise.
4266 (vtbl2_s8): Likewise
4267 (vtbl2_u8): Likewise.
4268 (vtbl2_p8): Likewise.
4269 (vtbl3_s8): Use renamed qtbl2 RTL pattern.
4270 (vtbl3_u8): Likewise.
4271 (vtbl3_p8): Likewise.
4272 (vtbl4_s8): Likewise.
4273 (vtbl4_u8): Likewise.
4274 (vtbl4_p8): Likewise.
4275 (vtbx2_s8): Use renamed qtbx2 RTL pattern.
4276 (vtbx2_u8): Likewise.
4277 (vtbx2_p8): Likewise.
4278 (vqtbl2_s8): Use renamed qtbl2 RTL pattern.
4279 (vqtbl2_u8): Likewise.
4280 (vqtbl2_p8): Likewise.
4281 (vqtbl2q_s8): Likewise.
4282 (vqtbl2q_u8): Likewise.
4283 (vqtbl2q_p8): Likewise.
4284 (vqtbx2_s8): Use renamed qtbx2 RTL pattern.
4285 (vqtbx2_u8): Likewise.
4286 (vqtbx2_p8): Likewise.
4287 (vqtbx2q_s8): Likewise.
4288 (vqtbx2q_u8): Likewise.
4289 (vqtbx2q_p8): Likewise.
4290 (vtbx4_s8): Likewise.
4291 (vtbx4_u8): Likewise.
4292 (vtbx4_p8): Likewise.
4294 2021-07-20 Uroš Bizjak <ubizjak@gmail.com>
4297 * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
4299 (define_peephole2 atomic_loaddi_fpu): Ditto.
4301 2021-07-20 Kito Cheng <kito.cheng@sifive.com>
4303 * config.gcc (riscv*-*-*): Detect which python is available.
4305 2021-07-20 Kewen Lin <linkw@linux.ibm.com>
4307 * config/rs6000/vsx.md (mulhs_<mode>): Rename to...
4308 (smul<mode>3_highpart): ... this.
4309 (mulhu_<mode>): Rename to...
4310 (umul<mode>3_highpart): ... this.
4311 * config/rs6000/rs6000-builtin.def (MULHS_V2DI, MULHS_V4SI,
4312 MULHU_V2DI, MULHU_V4SI): Adjust.
4314 2021-07-20 Kewen Lin <linkw@linux.ibm.com>
4316 PR tree-optimization/100696
4317 * internal-fn.c (first_commutative_argument): Add info for IFN_MULH.
4318 * internal-fn.def (IFN_MULH): New internal function.
4319 * tree-vect-patterns.c (vect_recog_mulhs_pattern): Add support to
4320 recog normal multiply highpart as IFN_MULH.
4321 * config/i386/i386.c (ix86_add_stmt_cost): Adjust for combined
4324 2021-07-19 Indu Bhagat <indu.bhagat@oracle.com>
4326 * config/elfos.h (CTF_DEBUGGING_INFO): New definition.
4327 (BTF_DEBUGGING_INFO): Likewise.
4328 * doc/tm.texi.in: Document the new macros.
4329 * doc/tm.texi: Regenerated.
4330 * toplev.c: Guard initialization of debug hooks.
4332 2021-07-19 Indu Bhagat <indu.bhagat@oracle.com>
4334 * flags.h (ctf_debuginfo_p): New function declaration.
4335 * opts.c (ctf_debuginfo_p): New function definition.
4337 2021-07-19 Andrew Stubbs <ams@codesourcery.com>
4340 * config/gcn/gcn-hsa.h (DRIVER_SELF_SPECS): New.
4341 (ASM_SPEC): Set -mattr for xnack and sram-ecc.
4342 * config/gcn/gcn-opts.h (enum sram_ecc_type): New.
4343 * config/gcn/gcn-valu.md: Add a warning comment.
4344 * config/gcn/gcn.c (gcn_option_override): Add "sorry" for -mxnack.
4345 (output_file_start): Add xnack and sram-ecc state to ".amdgcn_target".
4346 * config/gcn/gcn.md: Add a warning comment.
4347 * config/gcn/gcn.opt: Add -mxnack and -msram-ecc.
4348 * config/gcn/mkoffload.c (EF_AMDGPU_MACH_AMDGCN_GFX908): Remove
4350 (EF_AMDGPU_XNACK): New.
4351 (EF_AMDGPU_SRAM_ECC): New.
4353 (copy_early_debug_info): Use elf_flags.
4354 (main): Handle -mxnack and -msram-ecc options.
4355 * doc/invoke.texi: Document -mxnack and -msram-ecc.
4357 2021-07-19 Andrew Pinski <apinski@marvell.com>
4360 * config/aarch64/aarch64.md (csneg3_uxtw_insn): Rename to ...
4361 (*cs<neg_not_cs>3_uxtw_insn4): and extend to NEG_NOT.
4363 2021-07-19 Richard Biener <rguenther@suse.de>
4365 PR tree-optimization/101505
4366 * tree-vect-patterns.c (vect_determine_precisions): Walk
4367 PHIs also for loop vectorization.
4369 2021-07-19 Richard Biener <rguenther@suse.de>
4371 * gimple.h (gimple_expr_type): Remove.
4372 * doc/gimple.texi: Remove gimple_expr_type documentation.
4374 2021-07-19 Richard Biener <rguenther@suse.de>
4376 * tree-ssa-sccvn.c (vn_reference_eq): Handle NULL vr->type.
4377 (ao_ref_init_from_vn_reference): Likewise.
4378 (fully_constant_reference): Likewise.
4379 (vn_reference_lookup_call): Do not set vr->type to random
4381 * tree-ssa-pre.c (compute_avail): Do not try to PRE calls
4383 * tree-vect-generic.c (expand_vector_piecewise): Pass in
4384 whether we expanded parallel.
4385 (expand_vector_parallel): Adjust.
4386 (expand_vector_addition): Likewise.
4387 (expand_vector_comparison): Likewise.
4388 (expand_vector_operation): Likewise.
4389 (expand_vector_scalar_condition): Likewise.
4390 (expand_vector_conversion): Likewise.
4392 2021-07-19 Richard Biener <rguenther@suse.de>
4394 * tree-vrp.c (register_edge_assert_for_2): Use the
4396 (vrp_folder::fold_predicate_in): Likewise.
4397 * vr-values.c (gimple_assign_nonzero_p): Likewise.
4398 (vr_values::extract_range_from_comparison): Likewise.
4399 (vr_values::extract_range_from_ubsan_builtin): Use the
4400 type of the first operand.
4401 (vr_values::extract_range_basic): Push down type
4402 computation, use the appropriate LHS.
4403 (vr_values::extract_range_from_assignment): Use the
4406 2021-07-18 H.J. Lu <hjl.tools@gmail.com>
4409 * common/config/i386/i386-common.c (ix86_handle_option): For
4410 -mgeneral-regs-only, enable the GPR only instructions which are
4411 enabled implicitly by SSE ISAs unless they have been disabled
4414 2021-07-18 H.J. Lu <hjl.tools@gmail.com>
4417 * config/i386/i386.c (ix86_check_avx_upper_stores): Moved before
4418 ix86_avx_u128_mode_needed.
4419 (ix86_avx_u128_mode_needed): Return AVX_U128_DIRTY if callee
4420 returns AVX register.
4422 2021-07-17 Jan Hubicka <hubicka@ucw.cz>
4424 * tree-ssa-structalias.c (handle_rhs_call): Support EAF_NOT_RETURNED.
4425 (handle_const_call): Liekise
4426 (handle_pure_call): Liekise
4428 2021-07-17 Andrew MacLeod <amacleod@redhat.com>
4430 PR tree-optimization/96542
4431 * range-op.cc (range_operator::wi_fold_in_parts): New.
4432 (range_operator::fold_range): Call wi_fold_in_parts.
4433 (operator_lshift::wi_fold): Fix broken lshift by [0,0].
4434 * range-op.h (wi_fold_in_parts): Add prototype.
4436 2021-07-16 David Malcolm <dmalcolm@redhat.com>
4438 * doc/analyzer.texi: Add __analyzer_dump_state.
4440 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
4442 * config/rs6000/rbtree.c: New file.
4443 * config/rs6000/rbtree.h: New file.
4445 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
4447 * config/rs6000/rs6000-gen-builtins.c (restriction): New enum.
4448 (typeinfo): Add restr field.
4449 (match_bracketed_pair): New function.
4450 (match_const_restriction): Implement.
4452 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
4454 * config/rs6000/rs6000-gen-builtins.c (match_basetype): Implement.
4456 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
4458 * config/rs6000/rs6000-gen-builtins.c (void_status): New enum.
4459 (basetype): Likewise.
4460 (typeinfo): Likewise.
4461 (handle_pointer): New function.
4462 (match_basetype): New stub function.
4463 (match_const_restriction): Likewise.
4464 (match_type): New function.
4466 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
4468 * config/rs6000/rs6000-gen-builtins.c (consume_whitespace): New
4470 (advance_line): Likewise.
4471 (safe_inc_pos): Likewise.
4472 (match_identifier): Likewise.
4473 (match_integer): Likewise.
4474 (match_to_right_bracket): Likewise.
4476 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
4478 * config/rs6000/rs6000-gen-builtins.c (bif_file): New variable.
4479 (ovld_file): Likewise.
4480 (header_file): Likewise.
4481 (init_file): Likewise.
4482 (defines_file): Likewise.
4483 (pgm_path): Likewise.
4484 (bif_path): Likewise.
4485 (ovld_path): Likewise.
4486 (header_path): Likewise.
4487 (init_path): Likewise.
4488 (defines_path): Likewise.
4489 (LINELEN): New macro.
4490 (linebuf): New variable.
4494 (bif_diag): New function.
4495 (ovld_diag): Likewise.
4497 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
4499 * config/rs6000/rs6000-builtin-new.def: New.
4500 * config/rs6000/rs6000-overload.def: New.
4502 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
4504 * config/rs6000/rs6000-gen-builtins.c: New.
4506 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
4508 * Makefile.in (EXTRA_GTYPE_DEPS): New variable.
4509 (s-gtype): Depend on EXTRA_GTYPE_DEPS.
4510 * gengtype-state.c (state_writer::write_state_file_list): Add a
4511 parameter to the fileslist expression for the number of build
4513 (read_state_files_list): Detect build headers and strip the
4514 initial "./" or ".\" from their names.
4515 * gengtype.c (build_headers): New global variable.
4516 (num_build_headers): Likewise.
4517 (open_base_files): Emit #include for each build header.
4518 (main): Detect and count build headers.
4519 * gengtype.h (build_headers): New extern variable.
4520 (num_build_headers): Likewise.
4522 2021-07-16 Richard Biener <rguenther@suse.de>
4524 * gimple-ssa-store-merging.c (verify_symbolic_number_p): Use
4525 the type of the LHS.
4526 (find_bswap_or_nop_1): Likewise.
4527 (find_bswap_or_nop): Likewise.
4528 * tree-vectorizer.h (vect_get_smallest_scalar_type): Adjust
4530 * tree-vect-data-refs.c (vect_get_smallest_scalar_type):
4531 Remove unused parameters, pass in the scalar type. Fix
4532 internal store function handling.
4533 * tree-vect-stmts.c (vect_analyze_stmt): Remove assert.
4534 (vect_get_vector_types_for_stmt): Move down check for
4535 existing vector stmt after we've determined a scalar type.
4536 Pass down the used scalar type to vect_get_smallest_scalar_type.
4537 * tree-vect-generic.c (expand_vector_condition): Use
4538 the type of the LHS.
4539 (expand_vector_scalar_condition): Likewise.
4540 (expand_vector_operations_1): Likewise.
4541 * tree-vect-patterns.c (vect_widened_op_tree): Likewise.
4542 (vect_recog_dot_prod_pattern): Likewise.
4543 (vect_recog_sad_pattern): Likewise.
4544 (vect_recog_widen_op_pattern): Likewise.
4545 (vect_recog_widen_sum_pattern): Likewise.
4546 (vect_recog_mixed_size_cond_pattern): Likewise.
4548 2021-07-16 Jan Hubicka <hubicka@ucw.cz>
4550 * ipa-modref.c (struct escape_entry): Use eaf_fleags_t.
4551 (dump_eaf_flags): Dump EAF_NOT_RETURNED
4552 (eaf_flags_useful_p): Use eaf_fleags_t; handle const functions
4553 and EAF_NOT_RETURNED.
4554 (modref_summary::useful_p): Likewise.
4555 (modref_summary_lto::useful_p): Likewise.
4556 (struct) modref_summary_lto: Use eaf_fleags_t.
4557 (deref_flags): Handle EAF_NOT_RETURNED.
4558 (struct escape_point): Use min_flags.
4559 (modref_lattice::init): Add EAF_NOT_RETURNED.
4560 (merge_call_lhs_flags): Ignore EAF_NOT_RETURNED functions
4561 (analyze_ssa_name_flags): Clear EAF_NOT_RETURNED on return;
4563 (analyze_parms): Also analyze const functions; update conition on
4565 (modref_write): Update streaming.
4566 (read_section): Update streaming.
4567 (remap_arg_flags): Use eaf_flags_t.
4568 (modref_merge_call_site_flags): Hanlde EAF_NOT_RETURNED.
4569 * ipa-modref.h: (eaf_flags_t): New typedef.
4570 (struct modref_summary): Use eaf_flags_t.
4571 * tree-core.h (EAF_NOT_RETURNED): New constant.
4573 2021-07-16 Richard Biener <rguenther@suse.de>
4575 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Use
4576 the type of the LHS.
4577 (gimple_assign_nonnegative_warnv_p): Likewise.
4578 (gimple_call_nonnegative_warnv_p): Likewise. Return false
4579 if the call has no LHS.
4580 * gimple.c (gimple_could_trap_p_1): Use the type of the LHS.
4581 * tree-eh.c (stmt_could_throw_1_p): Likewise.
4582 * tree-inline.c (insert_init_stmt): Likewise.
4583 * tree-ssa-loop-niter.c (get_val_for): Likewise.
4584 * tree-outof-ssa.c (ssa_is_replaceable_p): Use the type of
4586 * tree-ssa-sccvn.c (init_vn_nary_op_from_stmt): Take a
4587 gassign *. Use the type of the lhs.
4588 (vn_nary_op_lookup_stmt): Adjust.
4589 (vn_nary_op_insert_stmt): Likewise.
4591 2021-07-16 Ilya Leoshkevich <iii@linux.ibm.com>
4593 * config/s390/predicates.md (bras_sym_operand): Accept all
4594 functions in 64-bit mode, use UNSPEC_PLT31.
4595 (larl_operand): Use UNSPEC_PLT31.
4596 * config/s390/s390.c (s390_loadrelative_operand_p): Likewise.
4597 (legitimize_pic_address): Likewise.
4598 (s390_emit_tls_call_insn): Mark __tls_get_offset as function,
4600 (s390_delegitimize_address): Use UNSPEC_PLT31.
4601 (s390_output_addr_const_extra): Likewise.
4602 (print_operand): Add @PLT to TLS calls, handle %K.
4603 (s390_function_profiler): Mark __fentry__/_mcount as function,
4604 use %K, use UNSPEC_PLT31.
4605 (s390_output_mi_thunk): Use only UNSPEC_GOT, use %K.
4606 (s390_emit_call): Use UNSPEC_PLT31.
4607 (s390_emit_tpf_eh_return): Mark __tpf_eh_return as function.
4608 * config/s390/s390.md (UNSPEC_PLT31): Rename from UNSPEC_PLT.
4609 (*movdi_64): Use %K.
4610 (reload_base_64): Likewise.
4611 (*sibcall_brc): Likewise.
4612 (*sibcall_brcl): Likewise.
4613 (*sibcall_value_brc): Likewise.
4614 (*sibcall_value_brcl): Likewise.
4617 (*bras_r): Likewise.
4618 (*brasl_r): Likewise.
4619 (*bras_tls): Likewise.
4620 (*brasl_tls): Likewise.
4621 (main_base_64): Likewise.
4622 (reload_base_64): Likewise.
4623 (@split_stack_call<mode>): Likewise.
4625 2021-07-16 Richard Biener <rguenther@suse.de>
4627 PR tree-optimization/101467
4628 * tree-vect-stmts.c (vect_gen_while): Properly guard
4629 make_temp_ssa_name usage.
4631 2021-07-16 Cooper Qu <cooper.qu@linux.alibaba.com>
4633 * config.gcc: Don't use forked print-sysroot-suffix.sh and
4634 t-sysroot-suffix for C-SKY.
4635 * config/csky/print-sysroot-suffix.sh: Delete.
4636 * config/csky/t-csky-linux: Delete.
4637 * config/csky/t-sysroot-suffix: Define MULTILIB_DIRNAMES
4638 instead of CSKY_MULTILIB_DIRNAMES.
4640 2021-07-16 Richard Biener <rguenther@suse.de>
4642 * tree-vect-loop.c (vect_transform_cycle_phi): Correct sign
4643 conversion issues with the partial reduction of the reused
4646 2021-07-16 Richard Biener <rguenther@suse.de>
4648 * config/i386/i386-options.c (ix86_option_override_internal): Set
4649 param_vect_partial_vector_usage to zero if not set.
4651 2021-07-15 Uroš Bizjak <ubizjak@gmail.com>
4654 * config/i386/i386.h (VALID_SSE_REG_MODE): Add TDmode.
4655 (VALID_INT_MODE_P): Add SDmode and DDmode.
4656 Add TDmode for TARGET_64BIT.
4657 (VALID_DFP_MODE_P): Remove.
4658 * config/i386/i386.c (ix86_hard_regno_mode_ok):
4659 Do not use VALID_DFP_MODE_P.
4661 2021-07-15 Andrew MacLeod <amacleod@redhat.com>
4663 * gimple-range-fold.cc (adjust_pointer_diff_expr): Use
4665 (fold_using_range::fold_stmt): Ditto.
4666 (fold_using_range::range_of_range_op): Ditto.
4667 (fold_using_range::range_of_phi): Ditto.
4668 (fold_using_range::range_of_call): Ditto.
4669 (fold_using_range::range_of_builtin_ubsan_call): Ditto.
4670 (fold_using_range::range_of_builtin_call): Ditto.
4671 (fold_using_range::range_of_cond_expr): Ditto.
4672 * gimple-range-fold.h (gimple_range_type): New.
4674 2021-07-15 Martin Sebor <msebor@redhat.com>
4677 * tree-ssa-strlen.c (handle_assign): New function.
4678 (maybe_warn_overflow): Add argument.
4679 (nonzero_bytes_for_type): New function.
4680 (count_nonzero_bytes): Handle more tree types. Call
4681 nonzero_bytes_for_tye.
4682 (count_nonzero_bytes): Handle types.
4683 (handle_store): Handle stores from function calls.
4684 (strlen_check_and_optimize_call): Move code to handle_assign. Call
4685 it for assignments from function calls.
4687 2021-07-15 David Malcolm <dmalcolm@redhat.com>
4692 * doc/invoke.texi: Add -Wanalyzer-use-of-uninitialized-value.
4694 2021-07-15 David Malcolm <dmalcolm@redhat.com>
4696 * doc/invoke.texi (-fdump-analyzer-exploded-paths): New.
4698 2021-07-15 Martin Sebor <msebor@redhat.com>
4702 * fold-const.c (operand_compare::operand_equal_p): Handle OEP_DECL_NAME.
4703 (operand_compare::verify_hash_value): Same.
4704 * tree-core.h (OEP_DECL_NAME): New.
4706 2021-07-15 Martin Jambor <mjambor@suse.cz>
4708 * profile-count.h (profile_count::value): Change the return type to
4710 * gimple-pretty-print.c (dump_gimple_bb_header): Adjust print
4712 * tree-cfg.c (dump_function_to_file): Likewise.
4714 2021-07-15 Bill Schmidt <wschmidt@linux.ibm.com>
4717 * config/rs6000/rs6000-p8swap.c (has_part_mult): New.
4718 (rs6000_analyze_swaps): Insns containing a subreg of a mult are
4721 2021-07-15 Richard Biener <rguenther@suse.de>
4723 * tree-vectorizer.h (vect_gen_while): Match up with
4725 * tree-vect-stmts.c (vect_gen_while): Adjust API to that
4726 of vect_gen_while_not.
4727 (vect_gen_while_not): Adjust.
4728 * tree-vect-loop-manip.c (vect_set_loop_controls_directly): Likewise.
4730 2021-07-15 Aldy Hernandez <aldyh@redhat.com>
4732 * gimple-range-cache.cc (non_null_ref::adjust_range): New.
4733 (ranger_cache::range_of_def): Call adjust_range.
4734 (ranger_cache::entry_range): Same.
4735 * gimple-range-cache.h (non_null_ref::adjust_range): New.
4736 * gimple-range.cc (gimple_ranger::range_of_expr): Call
4738 (gimple_ranger::range_on_entry): Same.
4740 2021-07-15 Tamar Christina <tamar.christina@arm.com>
4743 2021-07-14 Tamar Christina <tamar.christina@arm.com>
4745 * config/arm/neon.md (<sup>dot_prod<vsi2qi>): Drop statements.
4747 2021-07-15 Tamar Christina <tamar.christina@arm.com>
4750 2021-07-14 Tamar Christina <tamar.christina@arm.com>
4752 * config/aarch64/aarch64-simd-builtins.def (udot, sdot): Rename to...
4753 (sdot_prod, udot_prod): ...These.
4754 * config/aarch64/aarch64-simd.md (<sur>dot_prod<vsi2qi>): Remove.
4755 (aarch64_<sur>dot<vsi2qi>): Rename to...
4756 (<sur>dot_prod<vsi2qi>): ...This.
4757 * config/aarch64/arm_neon.h (vdot_u32, vdotq_u32, vdot_s32, vdotq_s32):
4760 2021-07-15 Jakub Jelinek <jakub@redhat.com>
4762 PR middle-end/101437
4763 * gimplify.c (gimplify_expr): Throw away volatile reads from empty
4764 types even if they have non-BLKmode TYPE_MODE.
4766 2021-07-15 Richard Biener <rguenther@suse.de>
4769 * gcc.c (process_command): Process -gtoggle like process_options
4770 would after parsing options.
4772 2021-07-15 Trevor Saunders <tbsaunde@tbsaunde.org>
4774 * cfgexpand.c (expand_asm_loc): Adjust.
4775 (expand_asm_stmt): Likewise.
4776 * config/arm/aarch-common-protos.h (arm_md_asm_adjust): Likewise.
4777 * config/arm/aarch-common.c (arm_md_asm_adjust): Likewise.
4778 * config/arm/arm.c (thumb1_md_asm_adjust): Likewise.
4779 * config/avr/avr.c (avr_md_asm_adjust): Likewise.
4780 * config/cris/cris.c (cris_md_asm_adjust): Likewise.
4781 * config/i386/i386.c (ix86_md_asm_adjust): Likewise.
4782 * config/mn10300/mn10300.c (mn10300_md_asm_adjust): Likewise.
4783 * config/nds32/nds32.c (nds32_md_asm_adjust): Likewise.
4784 * config/pdp11/pdp11.c (pdp11_md_asm_adjust): Likewise.
4785 * config/rs6000/rs6000.c (rs6000_md_asm_adjust): Likewise.
4786 * config/s390/s390.c (s390_md_asm_adjust): Likewise.
4787 * config/vax/vax.c (vax_md_asm_adjust): Likewise.
4788 * config/visium/visium.c (visium_md_asm_adjust): Likewise.
4789 * doc/tm.texi: Regenerate.
4790 * target.def: Add location argument to md_asm_adjust.
4792 2021-07-15 Trevor Saunders <tbsaunde@tbsaunde.org>
4794 * tree-diagnostic.c (diagnostic_report_current_function): Use the
4795 diagnostic's location, not input_location.
4797 2021-07-15 Trevor Saunders <tbsaunde@tbsaunde.org>
4799 * cfgexpand.c (tree_conflicts_with_clobbers_p): Pass location to
4801 (expand_asm_stmt): Likewise.
4803 2021-07-14 Peter Bergner <bergner@linux.ibm.com>
4805 * config/rs6000/rs6000.c (adjacent_mem_locations): Return the lower
4806 addressed memory rtx, if any.
4807 (rs6000_split_multireg_move): Fix code formatting.
4808 Handle MMA build built-ins with operands in adjacent memory locations.
4810 2021-07-14 Peter Bergner <bergner@linux.ibm.com>
4812 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Move to later
4815 2021-07-14 Jason Merrill <jason@redhat.com>
4817 * sel-sched-ir.h (get_all_loop_exits): Use auto_vec.
4819 2021-07-14 Jason Merrill <jason@redhat.com>
4821 * doc/invoke.texi: -fdelete-dead-exceptions is on by default for
4824 2021-07-14 Tamar Christina <tamar.christina@arm.com>
4826 * tree-vect-patterns.c (vect_recog_dot_prod_pattern):
4827 Remove erroneous line.
4829 2021-07-14 Andrew MacLeod <amacleod@redhat.com>
4831 * params.opt (param_evrp_mode): Change default.
4833 2021-07-14 Tamar Christina <tamar.christina@arm.com>
4835 * config/aarch64/aarch64-simd-builtins.def (udot, sdot): Rename to...
4836 (sdot_prod, udot_prod): ...These.
4837 * config/aarch64/aarch64-simd.md (<sur>dot_prod<vsi2qi>): Remove.
4838 (aarch64_<sur>dot<vsi2qi>): Rename to...
4839 (<sur>dot_prod<vsi2qi>): ...This.
4840 * config/aarch64/arm_neon.h (vdot_u32, vdotq_u32, vdot_s32, vdotq_s32):
4843 2021-07-14 Tamar Christina <tamar.christina@arm.com>
4845 * config/arm/neon.md (<sup>dot_prod<vsi2qi>): Drop statements.
4847 2021-07-14 Tamar Christina <tamar.christina@arm.com>
4849 * doc/sourcebuild.texi (arm_v8_2a_i8mm_neon_hw): Document.
4851 2021-07-14 Tamar Christina <tamar.christina@arm.com>
4853 * config/arm/neon.md (usdot_prod<vsi2qi>): New.
4855 2021-07-14 Tamar Christina <tamar.christina@arm.com>
4857 * config/aarch64/aarch64-simd.md (aarch64_usdot<vsi2qi>): Rename to...
4858 (usdot_prod<vsi2qi>): ... This.
4859 * config/aarch64/aarch64-simd-builtins.def (usdot): Rename to...
4860 (usdot_prod): ...This.
4861 * config/aarch64/arm_neon.h (vusdot_s32, vusdotq_s32): Likewise.
4862 * config/aarch64/aarch64-sve.md (@aarch64_<sur>dot_prod<vsi2qi>):
4864 (@<sur>dot_prod<vsi2qi>): ...This.
4865 * config/aarch64/aarch64-sve-builtins-base.cc
4866 (svusdot_impl::expand): Use it.
4868 2021-07-14 Tamar Christina <tamar.christina@arm.com>
4870 * optabs.def (usdot_prod_optab): New.
4871 * doc/md.texi: Document it and clarify other dot prod optabs.
4872 * optabs-tree.h (enum optab_subtype): Add optab_vector_mixed_sign.
4873 * optabs-tree.c (optab_for_tree_code): Support usdot_prod_optab.
4874 * optabs.c (expand_widen_pattern_expr): Likewise.
4875 * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
4876 * tree-vect-loop.c (vectorizable_reduction): Query dot-product kind.
4877 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Take optional
4879 (vect_widened_op_tree): Optionally ignore
4881 (vect_recog_dot_prod_pattern): Support usdot_prod_optab.
4883 2021-07-14 H.J. Lu <hjl.tools@gmail.com>
4886 * config/i386/driver-i386.c (host_detect_local_cpu): Check
4887 "arch [32|64]" and "tune [32|64]" for 32-bit and 64-bit codegen.
4888 Enable UINTR only for 64-bit codegen.
4889 * config/i386/i386-options.c
4890 (ix86_option_override_internal::DEF_PTA): Skip PTA_UINTR if not
4892 * config/i386/i386.h (ARCH_ARG): New.
4893 (CC1_CPU_SPEC): Pass "[arch|tune] 32" for 32-bit codegen and
4894 "[arch|tune] 64" for 64-bit codegen.
4896 2021-07-14 Richard Biener <rguenther@suse.de>
4898 PR tree-optimization/101445
4899 * tree-vect-stmts.c (vectorizable_load): Do the gap adjustment
4900 of the IV in the correct direction for negative stride
4903 2021-07-14 Jakub Jelinek <jakub@redhat.com>
4906 * godump.c (godump_str_hash): New type.
4907 (godump_container::pot_dummy_types): Use string_hash instead of
4908 ptr_hash in the hash_set.
4910 2021-07-14 Richard Biener <rguenther@suse.de>
4912 * tree-vect-loop.c (vect_find_reusable_accumulator): Handle
4913 vector types where the old vector type has a multiple of
4914 the new vector type elements.
4915 (vect_create_partial_epilog): New function, split out from...
4916 (vect_create_epilog_for_reduction): ... here.
4917 (vect_transform_cycle_phi): Reduce the re-used accumulator
4918 to the new vector type.
4920 2021-07-14 Alexandre Oliva <oliva@adacore.com>
4922 * tree-ssa-alias.c (attr_fnspec::verify): Fix index in
4923 non-'t'-sized arg check.
4925 2021-07-14 Alexandre Oliva <oliva@adacore.com>
4927 * tree-cfg.c (cleanup_dead_labels_eh): Update
4928 post_landing_pad label upon change of landing pad block's
4930 (cleanup_dead_labels): Check that a removed label is not that
4933 2021-07-13 Jonathan Wright <jonathan.wright@arm.com>
4935 * combine.c (combine_simplify_rtx): Add vec_select -> subreg
4937 * config/aarch64/aarch64.md (*zero_extend<SHORT:mode><GPI:mode>2_aarch64):
4938 Add Neon to general purpose register case for zero-extend
4940 * config/arm/vfp.md (*arm_movsi_vfp): Remove "*" from *t -> r
4941 case to prevent some cases opting to go through memory.
4942 * cse.c (fold_rtx): Add vec_select -> subreg simplification.
4943 * rtl.c (rtvec_series_p): Define predicate to determine
4944 whether a vector contains a linear series of integers.
4945 * rtl.h (rtvec_series_p): Define.
4946 * rtlanal.c (vec_series_lowpart_p): Define predicate to
4947 determine if a vector selection is equivalent to the low part
4949 * rtlanal.h (vec_series_lowpart_p): Define.
4950 * simplify-rtx.c (simplify_context::simplify_binary_operation_1):
4951 Add vec_select -> subreg simplification.
4953 2021-07-13 Paul A. Clarke <pc@us.ibm.com>
4955 * config/rs6000/smmintrin.h (_mm_testz_si128, _mm_testc_si128,
4956 _mm_testnzc_si128, _mm_test_all_ones, _mm_test_all_zeros,
4957 _mm_test_mix_ones_zeros): New.
4959 2021-07-13 Roger Sayle <roger@nextmovesoftware.com>
4960 Richard Biener <rguenther@suse.de>
4962 * gimple.c (gimple_could_trap_p_1): Make S argument a
4963 "const gimple*". Preserve constness in call to
4964 gimple_asm_volatile_p.
4965 (gimple_could_trap_p): Make S argument a "const gimple*".
4966 * gimple.h (gimple_could_trap_p_1, gimple_could_trap_p):
4967 Update function prototypes.
4969 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
4971 * tree-vectorizer.h (vect_reusable_accumulator): New structure.
4972 (_loop_vec_info::main_loop_edge): New field.
4973 (_loop_vec_info::skip_main_loop_edge): Likewise.
4974 (_loop_vec_info::skip_this_loop_edge): Likewise.
4975 (_loop_vec_info::reusable_accumulators): Likewise.
4976 (_stmt_vec_info::reduc_scalar_results): Likewise.
4977 (_stmt_vec_info::reused_accumulator): Likewise.
4978 (vect_get_main_loop_result): Declare.
4979 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
4980 reduc_scalar_inputs.
4981 (vec_info::free_stmt_vec_info): Free reduc_scalar_inputs.
4982 * tree-vect-loop-manip.c (vect_get_main_loop_result): New function.
4983 (vect_do_peeling): Fill an epilogue loop's main_loop_edge,
4984 skip_main_loop_edge and skip_this_loop_edge fields.
4985 * tree-vect-loop.c (INCLUDE_ALGORITHM): Define.
4986 (vect_emit_reduction_init_stmts): New function.
4987 (get_initial_def_for_reduction): Use it.
4988 (get_initial_defs_for_reduction): Likewise. Change the vinfo
4989 parameter to a loop_vec_info.
4990 (vect_create_epilog_for_reduction): Store the scalar results
4991 in the reduc_info. If an epilogue loop is reusing an accumulator
4992 from the main loop, and if the epilogue loop can also be skipped,
4993 try to place the reduction code in the join block. Record
4994 accumulators that could potentially be reused by epilogue loops.
4995 (vect_transform_cycle_phi): When vectorizing epilogue loops,
4996 try to reuse accumulators from the main loop. Record the initial
4997 value in reduc_info for non-SLP reductions too.
4999 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
5001 * tree-vect-loop.c (get_initial_def_for_reduction): Remove
5002 adjustment handling. Take the neutral value as an argument,
5003 in place of the code argument.
5004 (vect_transform_cycle_phi): Update accordingly. Handle the
5005 initial values of cond reductions separately from code reductions.
5006 Choose the adjustment here rather than in
5007 get_initial_def_for_reduction. Sink the splat of vec_initial_def.
5009 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
5011 * tree-vect-loop.c (neutral_op_for_slp_reduction): Replace with...
5012 (neutral_op_for_reduction): ...this, providing a more general
5014 (vect_create_epilog_for_reduction): Update accordingly.
5015 (vectorizable_reduction): Likewise.
5016 (vect_transform_cycle_phi): Likewise.
5018 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
5020 * tree-vect-loop.c (get_initial_def_for_reduction): Take the
5021 reduc_info instead of the original stmt_vec_info.
5022 (vect_transform_cycle_phi): Update accordingly.
5024 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
5026 * tree-vect-loop.c (get_initial_defs_for_reduction): Take the
5027 reduc_info as an additional parameter.
5028 (vect_transform_cycle_phi): Update accordingly.
5030 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
5032 * tree-vectorizer.h: Include tree-ssa-operands.h.
5033 (vect_phi_initial_value): New function.
5034 * tree-vect-loop.c (neutral_op_for_slp_reduction): Use it.
5035 (get_initial_defs_for_reduction, info_for_reduction): Likewise.
5036 (vect_create_epilog_for_reduction, vectorizable_reduction): Likewise.
5037 (vect_transform_cycle_phi, vectorizable_induction): Likewise.
5039 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
5041 * tree-vect-loop.c (vect_create_epilog_for_reduction): Convert
5042 the phi results to vectype after creating them. Remove later
5043 conversion code that thus becomes redundant.
5045 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
5047 * tree-vect-loop.c (vect_create_epilog_for_reduction): Replace
5048 the new_phis vector with a reduc_inputs vector. Combine handling
5049 of reduction chains and ncopies > 1.
5051 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
5053 * tree-vect-loop.c (vect_create_epilog_for_reduction): Truncate
5054 scalar_results to group_size elements after reducing down from
5055 N*group_size elements. Construct an array_slice of the live-out
5056 stmts and assert that there is one stmt per scalar result.
5058 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
5060 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
5061 nested_in_vect_loop and use double_reduc everywhere. Remove dead
5062 assignment to "loop".
5064 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
5066 * internal-fn.c (vectorized_internal_fn_supported_p): Handle
5067 vector types first. For scalar types, consider both the preferred
5068 vector mode and the alternative vector modes.
5069 * optabs-query.c (can_vec_mask_load_store_p): Use the same
5070 structure as above, in particular using related_vector_mode
5071 for modes provided by autovectorize_vector_modes.
5073 2021-07-13 Jakub Jelinek <jakub@redhat.com>
5074 Richard Biener <rguenther@suse.de>
5076 PR tree-optimization/101419
5077 * tree-pass.h (PROP_objsz): Define.
5078 (make_pass_early_object_sizes): Declare.
5079 * passes.def (pass_all_early_optimizations): Rename pass_object_sizes
5080 there to pass_early_object_sizes, drop parameter.
5081 (pass_all_optimizations): Move pass_object_sizes right after pass_ccp,
5082 drop parameter, move pass_post_ipa_warn right after that.
5083 * tree-object-size.c (pass_object_sizes::execute): Rename to...
5084 (object_sizes_execute): ... this. Add insert_min_max_p argument.
5085 (pass_data_object_sizes): Move after object_sizes_execute.
5086 (pass_object_sizes): Likewise. In execute method call
5087 object_sizes_execute, drop set_pass_param method and insert_min_max_p
5088 non-static data member and its initializer in the ctor.
5089 (pass_data_early_object_sizes, pass_early_object_sizes,
5090 make_pass_early_object_sizes): New.
5091 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use
5092 (cfun->curr_properties & PROP_objsz) instead of cfun->after_inlining.
5094 2021-07-13 Kito Cheng <kito.cheng@sifive.com>
5097 * config/riscv/constraints.md ("S"): Update description and remove
5099 * doc/md.texi (Machine Constraints): Document the 'S' constraints
5102 2021-07-13 Richard Biener <rguenther@suse.de>
5105 2021-07-12 Richard Biener <rguenther@suse.de>
5107 * tree-vect-slp.c (vect_slp_region): Show the number of
5108 SLP graph entries in the optimization message.
5110 2021-07-13 Michael Meissner <meissner@linux.ibm.com>
5112 * config/rs6000/altivec.md (xxspltiw_v4sf): Change local variable
5114 * config/rs6000/rs6000-protos.h (rs6000_const_f32_to_i32): Change
5115 return type to long.
5116 * config/rs6000/rs6000.c (rs6000_const_f32_to_i32): Change return
5119 2021-07-12 Andrew MacLeod <amacleod@redhat.com>
5121 * gimple-range-fold.cc (fold_using_range::range_of_builtin_ubsan_call):
5122 Query relation between the 2 operands and use it.
5124 2021-07-12 Sergei Trofimovich <siarheit@google.com>
5126 * doc/cfg.texi: Fix s/ei_safe_safe/ei_safe_edge/ typo.
5128 2021-07-12 Uroš Bizjak <ubizjak@gmail.com>
5131 * config/i386/predicates.md (vec_setm_sse41_operand):
5132 Rename from vec_setm_operand.
5133 (vec_setm_avx2_operand): New predicate.
5134 * config/i386/sse.md (vec_set<V_128:mode>): Use V_128 mode iterator.
5135 Use vec_setm_sse41_operand as operand 2 predicate.
5136 (vec_set<V_256_512:mode): New expander.
5137 * config/i386/mmx.md (vec_setv2hi): Use vec_setm_sse41_operand
5138 as operand 2 predicate.
5140 2021-07-12 Andrew MacLeod <amacleod@redhat.com>
5142 PR tree-optimization/101335
5143 * range-op.cc (operator_cast::lhs_op1_relation): Delete.
5145 2021-07-12 Andrew Pinski <apinski@marvell.com>
5147 * tree-ssa-phiopt.c (match_simplify_replacement): Move
5148 insert of the sequence before the movement of the
5149 statement. Check if to see if the statement is used
5150 outside of the original phi to see if we should move it.
5152 2021-07-12 Richard Biener <rguenther@suse.de>
5154 * dump-context.h (debug_dump_context::debug_dump_context):
5155 Add FILE * parameter defaulted to stderr.
5156 * dumpfile.c (debug_dump_context::debug_dump_context): Adjust.
5157 * tree-vect-slp.c (dot_slp_tree): New functions.
5159 2021-07-12 Richard Biener <rguenther@suse.de>
5161 PR tree-optimization/101373
5162 * tree-ssa-pre.c (prune_clobbered_mems): Also prune trapping
5163 references when the BB may not return.
5164 (compute_avail): Pass in the function we're working on and
5165 replace cfun references with it. Externally throwing
5166 const calls also possibly terminate the function.
5167 (pass_pre::execute): Pass down the function we're working on.
5168 * gcse.c (compute_hash_table_work): Externally throwing
5169 const/pure calls also need record_last_mem_set_info.
5170 * postreload-gcse.c (record_opr_changes): Looping or externally
5171 throwing const/pure calls also need record_last_mem_set_info.
5173 2021-07-12 Uroš Bizjak <ubizjak@gmail.com>
5175 * recog.c (memory_address_addr_space_p): Change the type to bool.
5176 Return true/false instead of 1/0.
5177 (offsettable_memref_p): Ditto.
5178 (offsettable_nonstrict_memref_p): Ditto.
5179 (offsettable_address_addr_space_p): Ditto.
5180 Change the type of addressp indirect function to bool.
5181 * recog.h (memory_address_addr_space_p): Change the type to bool.
5182 (strict_memory_address_addr_space_p): Ditto.
5183 (offsettable_memref_p): Ditto.
5184 (offsettable_nonstrict_memref_p): Ditto.
5185 (offsettable_address_addr_space_p): Ditto.
5186 * reload.c (maybe_memory_address_addr_space_p): Ditto.
5187 (strict_memory_address_addr_space_p): Change the type to bool.
5188 Return true/false instead of 1/0.
5189 (maybe_memory_address_addr_space_p): Change the type to bool.
5191 2021-07-12 Richard Biener <rguenther@suse.de>
5193 * tree-vect-slp.c (vect_slp_region): Show the number of
5194 SLP graph entries in the optimization message.
5196 2021-07-12 Richard Biener <rguenther@suse.de>
5198 PR tree-optimization/101394
5199 * tree-ssa-pre.c (do_pre_regular_insertion): Avoid inserting
5200 copies from abnormals for a full redundancy.
5202 2021-07-12 Richard Biener <rguenther@suse.de>
5204 PR middle-end/101423
5205 * gimple.c (gimple_could_trap_p_1): Internal function calls
5207 * tree-eh.c (tree_could_trap_p): Likewise.
5209 2021-07-12 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
5212 * config/arm/arm_neon.h (vmul_n_u32): Replace call to builtin with
5214 (vmulq_n_u32): Likewise.
5215 (vmul_n_f32): Gate __a * __b on __FAST_MATH__.
5216 (vmulq_n_f32): Likewise.
5217 (vmul_n_f16): Likewise.
5218 (vmulq_n_f16): Likewise.
5220 2021-07-12 Martin Liska <mliska@suse.cz>
5223 * gcc.c (check_offload_target_name): Call
5224 candidates_list_and_hint only if we have a candidate.
5226 2021-07-12 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
5229 * config/arm/neon.md (vec_init): Move to ...
5230 * config/arm/vec-common.md (vec_init): ... here.
5231 Change the pattern's mode to VDQX and gate it on VALID_MVE_MODE.
5233 2021-07-12 Roger Sayle <roger@nextmovesoftware.com>
5235 PR tree-optimization/101403
5236 * match.pd ((T)bswap(X)>>C): Correctly handle cases where
5237 signedness of the shift is not the same as the signedness of
5240 2021-07-09 Roger Sayle <roger@nextmovesoftware.com>
5241 Uroš Bizjak <ubizjak@gmail.com>
5243 * config/i386/i386.md (*divmodsi4_const): Optimize SImode
5244 divmod of a constant numerator with new define_insn_and_split.
5246 2021-07-09 Iain Sandoe <iain@sandoe.co.uk>
5249 * config/i386/i386-expand.c (ix86_expand_call): If a call is
5250 to a non-local-binding, or local but to a public symbol, then
5251 assume that it might be indirected via the lazy symbol binder.
5252 Mark R10 and R10 as clobbered in that case.
5254 2021-07-09 Eric Botcazou <ebotcazou@adacore.com>
5257 * gcc.c (ASM_DEBUG_DWARF_OPTION): Set again to --gdwarf2 in
5258 the case where HAVE_AS_WORKING_DWARF_N_FLAG is not defined
5259 and HAVE_LD_BROKEN_PE_DWARF5 is defined.
5261 2021-07-09 Uroš Bizjak <ubizjak@gmail.com>
5263 * config/i386/i386.md (*udivmodsi4_pow2_zext_1): Limit the
5264 log2 range of operands[3] to [1,31].
5265 (*udivmodsi4_pow2_zext_2): Ditto. Correct insn RTX pattern.
5267 2021-07-09 Sergei Trofimovich <siarheit@google.com>
5269 * doc/md.texi: Don't split @smallexample in multiple @groups.
5271 2021-07-09 Sergei Trofimovich <siarheit@google.com>
5273 * doc/md.texi: Add missing 'see' word.
5275 2021-07-09 Andrew Pinski <apinski@marvell.com>
5277 * tree-ssa-phiopt.c (phiopt_early_allow): Change arguments
5278 to take sequence and gimple_match_op. Accept the case where
5279 op is a SSA_NAME and one statement in the sequence.
5280 Also allow constants.
5281 (gimple_simplify_phiopt): Always pass a sequence to resimplify.
5282 Update call to phiopt_early_allow. Discard the sequence if not
5285 2021-07-09 Xi Ruoyao <xry111@mengyan1223.wang>
5290 * config/mips/mips.c (mips_const_insns): Use MSA_SUPPORTED_MODE_P
5291 instead of ISA_HAS_MSA.
5292 (mips_expand_vec_unpack): Likewise.
5293 (mips_expand_vector_init): Likewise.
5295 2021-07-09 Kewen Lin <linkw@linux.ibm.com>
5297 * config/rs6000/vsx.md (mods_<mode>): Rename to...
5298 (mod<mode>3): ... this.
5299 (modu_<mode>): Rename to...
5300 (umod<mode>3): ... this.
5301 * config/rs6000/rs6000-builtin.def (MODS_V2DI, MODS_V4SI, MODU_V2DI,
5304 2021-07-08 Jeff Law <jeffreyalaw@gmail.com>
5306 * config/h8300/shiftrotate.md (variable shifts): Expose condition
5307 code handling for the test before the loop.
5309 2021-07-08 Martin Jambor <mjambor@suse.cz>
5312 * ipa-sra.c (class isra_call_summary): New member
5313 m_before_any_store, initialize it in the constructor.
5314 (isra_call_summary::dump): Dump the new field.
5315 (ipa_sra_call_summaries::duplicate): Copy it.
5316 (process_scan_results): Set it.
5317 (isra_write_edge_summary): Stream it.
5318 (isra_read_edge_summary): Likewise.
5319 (param_splitting_across_edge): Only override
5320 safe_to_import_accesses if m_before_any_store is set.
5322 2021-07-08 Martin Sebor <msebor@redhat.com>
5325 * gimple-array-bounds.cc (array_bounds_checker::check_mem_ref):
5326 Use Object Size Type 0 instead of 1.
5328 2021-07-08 Richard Sandiford <richard.sandiford@arm.com>
5330 * tree-vect-loop.c (vectorizable_reduction): Remove always-true
5333 2021-07-08 Richard Sandiford <richard.sandiford@arm.com>
5335 * match.pd: Simplify an extend-operate-truncate sequence involving
5338 2021-07-08 Roger Sayle <roger@nextmovesoftware.com>
5339 Richard Biener <rguenther@suse.de>
5341 PR tree-optimization/40210
5342 * match.pd (bswap optimizations): Simplify (bswap(x)>>C1)&C2 as
5343 (x>>C3)&C2 when possible. Simplify bswap(x)>>C1 as ((T)x)>>C2
5344 when possible. Simplify bswap(x)&C1 as (x>>C2)&C1 when 0<=C1<=255.
5346 2021-07-08 Uroš Bizjak <ubizjak@gmail.com>
5349 * config/i386/i386-expand.c (ix86_expand_sse_unpack):
5351 * config/i386/mmx.md (V_32): New mode iterator.
5352 (mov<V_32:mode>): Use V_32 mode iterator.
5353 (*mov<V_32:mode>_internal): Ditto.
5354 (*push<V_32:mode>2_rex64): Ditto.
5355 (*push<V_32:mode>2): Ditto.
5356 (movmisalign<V_32:mode>): Ditto.
5357 (mmx_<any_shiftrt:insn>v1si3): New insn pattern.
5358 (sse4_1_<any_extend:code>v2qiv2hi2): Ditto.
5359 (vec_unpacks_lo_v4qi): New expander.
5360 (vec_unpacks_hi_v4qi): Ditto.
5361 (vec_unpacku_lo_v4qi): Ditto.
5362 (vec_unpacku_hi_v4qi): Ditto.
5363 * config/i386/i386.h (VALID_SSE2_REG_MODE): Add V1SImode.
5364 (VALID_INT_MODE_P): Ditto.
5366 2021-07-08 Michael Meissner <meissner@linux.ibm.com>
5369 * config/rs6000/rs6000.md (udivti3): New insn.
5371 (umodti3): New insn.
5374 2021-07-07 Martin Sebor <msebor@redhat.com>
5376 PR tree-optimization/100137
5377 PR tree-optimization/99121
5378 PR tree-optimization/97027
5379 * builtins.c (access_ref::access_ref): Also set offmax.
5380 (access_ref::offset_in_range): Define new function.
5381 (access_ref::add_offset): Set offmax.
5382 (access_ref::inform_access): Handle access_none.
5383 (handle_mem_ref): Clear ostype.
5384 (compute_objsize_r): Handle ASSERT_EXPR.
5385 * builtins.h (struct access_ref): Add offmax member.
5386 * gimple-array-bounds.cc (array_bounds_checker::check_mem_ref): Use
5387 compute_objsize() and simplify.
5389 2021-07-07 Peter Bergner <bergner@linux.ibm.com>
5391 * config/rs6000/rs6000-call.c (mma_init_builtins): Use VSX_BUILTIN_LXVP
5392 and VSX_BUILTIN_STXVP.
5394 2021-07-07 Martin Sebor <msebor@redhat.com>
5397 * config/aarch64/aarch64.c (aarch64_simd_lane_bounds): Remove
5398 a stray %K from error_at() missed in r12-2088.
5400 2021-07-07 Richard Biener <rguenther@suse.de>
5402 PR tree-optimization/99728
5403 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Record
5405 (mem_refs_may_alias_p): Add assert we handled aggregate
5407 (sm_seq_valid_bb): Give up when running into aggregate copies.
5408 (ref_indep_loop_p): Handle aggregate copies as never
5409 being invariant themselves but allow other refs to be
5410 disambiguated against them.
5411 (can_sm_ref_p): Do not try to apply store-motion to aggregate
5414 2021-07-06 Indu Bhagat <indu.bhagat@oracle.com>
5417 * dwarf2ctf.c (ctf_get_AT_data_member_location): Multiply by 8 to get
5420 2021-07-06 Martin Sebor <msebor@redhat.com>
5422 * gimple-pretty-print.c (percent_G_format): Remove.
5423 * tree-diagnostic.c (default_tree_printer): Remove calls.
5424 * tree-pretty-print.c (percent_K_format): Remove.
5425 * tree-pretty-print.h (percent_K_format): Remove.
5427 2021-07-06 Martin Sebor <msebor@redhat.com>
5429 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
5430 Remove %K and use error_at.
5431 (aarch64_expand_fcmla_builtin): Same.
5432 (aarch64_expand_builtin_tme): Same.
5433 (aarch64_expand_builtin_memtag): Same.
5434 * config/arm/arm-builtins.c (arm_expand_acle_builtin): Same.
5435 (arm_expand_builtin): Same.
5436 * config/arm/arm.c (bounds_check): Same.
5438 2021-07-06 Martin Sebor <msebor@redhat.com>
5440 * builtins.c (warn_string_no_nul): Remove %G.
5441 (maybe_warn_for_bound): Same.
5442 (warn_for_access): Same.
5443 (check_access): Same.
5444 (check_strncat_sizes): Same.
5445 (expand_builtin_strncat): Same.
5446 (expand_builtin_strncmp): Same.
5447 (expand_builtin): Same.
5448 (expand_builtin_object_size): Same.
5449 (warn_dealloc_offset): Same.
5450 (maybe_emit_free_warning): Same.
5451 * calls.c (maybe_warn_alloc_args_overflow): Same.
5452 (maybe_warn_nonstring_arg): Same.
5453 (maybe_warn_rdwr_sizes): Same.
5454 * expr.c (expand_expr_real_1): Remove %K.
5455 * gimple-fold.c (gimple_fold_builtin_strncpy): Remove %G.
5456 (gimple_fold_builtin_strncat): Same.
5457 * gimple-ssa-sprintf.c (format_directive): Same.
5458 (handle_printf_call): Same.
5459 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Same.
5460 * gimple-ssa-warn-restrict.c (maybe_diag_overlap): Same.
5461 (maybe_diag_access_bounds): Same. Call gimple_location.
5462 (check_bounds_or_overlap): Same.
5463 * trans-mem.c (ipa_tm_scan_irr_block): Remove %K. Simplify.
5464 * tree-ssa-ccp.c (pass_post_ipa_warn::execute): Remove %G.
5465 * tree-ssa-strlen.c (maybe_warn_overflow): Same.
5466 (maybe_diag_stxncpy_trunc): Same.
5467 (handle_builtin_stxncpy_strncat): Same.
5468 (maybe_warn_pointless_strcmp): Same.
5469 * tree-ssa-uninit.c (maybe_warn_operand): Same.
5471 2021-07-06 Uroš Bizjak <ubizjak@gmail.com>
5474 * config/i386/predicates.md (vec_setm_operand): Enable
5475 register_operand for TARGET_SSE4_1.
5476 * config/i386/mmx.md (vec_setv2hi): Use vec_setm_operand
5477 as operand 2 predicate. Call ix86_expand_vector_set_var
5478 for non-constant index operand.
5479 (vec_setv4qi): Use vec_setm_mmx_operand as operand 2 predicate.
5480 Call ix86_expand_vector_set_var for non-constant index operand.
5482 2021-07-06 Jeff Law <jeffreyalaw@gmail.com>
5484 * config/h8300/jumpcall.md (*branch): When possible, generate
5485 the comparison in CCZN mode.
5486 * config/h8300/predicates.md (simple_memory_operand): Reject all
5487 auto-increment addressing modes.
5489 2021-07-06 Iain Sandoe <iain@sandoe.co.uk>
5492 * config/i386/i386.h (struct stringop_algs): Define a CTOR for
5495 2021-07-06 Richard Biener <rguenther@suse.de>
5497 * doc/md.texi (vec_fmaddsub<mode>4): Document.
5498 (vec_fmsubadd<mode>4): Likewise.
5499 * optabs.def (vec_fmaddsub$a4): Add.
5500 (vec_fmsubadd$a4): Likewise.
5501 * internal-fn.def (IFN_VEC_FMADDSUB): Add.
5502 (IFN_VEC_FMSUBADD): Likewise.
5503 * tree-vect-slp-patterns.c (addsub_pattern::recognize):
5504 Refactor to handle IFN_VEC_FMADDSUB and IFN_VEC_FMSUBADD.
5505 (addsub_pattern::build): Likewise.
5506 * tree-vect-slp.c (vect_optimize_slp): CFN_VEC_FMADDSUB
5507 and CFN_VEC_FMSUBADD are not transparent for permutes.
5508 * config/i386/sse.md (vec_fmaddsub<mode>4): New expander.
5509 (vec_fmsubadd<mode>4): Likewise.
5511 2021-07-06 Richard Biener <rguenther@suse.de>
5513 * doc/invoke.texi (fmove-loop-stores): Document.
5514 * common.opt (fmove-loop-stores): New option.
5515 * opts.c (default_options_table): Enable -fmove-loop-stores
5517 * tree-ssa-loop-im.c (pass_lim::execute): Pass
5518 flag_move_loop_stores instead of true to
5519 loop_invariant_motion_in_fun.
5521 2021-07-06 Iain Sandoe <iain@sandoe.co.uk>
5523 * doc/install.texi: Document --with-dsymutil.
5525 2021-07-06 Andrew Pinski <apinski@marvell.com>
5527 PR tree-optimization/101256
5528 * dbgcnt.def (phiopt_edge_range): New counter.
5529 * tree-ssa-phiopt.c (replace_phi_edge_with_variable):
5530 Check to make sure the new name is defined in the same
5531 bb as the conditional before duplicating range info.
5532 Also add debug counter.
5534 2021-07-06 Kewen Lin <linkw@linux.ibm.com>
5536 PR rtl-optimization/100328
5537 * config/i386/i386-options.c (ix86_option_override_internal):
5538 Set param_ira_consider_dup_in_all_alts to 0.
5540 2021-07-06 Kewen Lin <linkw@linux.ibm.com>
5542 PR rtl-optimization/100328
5543 * doc/invoke.texi (ira-consider-dup-in-all-alts): Document new
5545 * ira.c (ira_get_dup_out_num): Adjust as parameter
5546 param_ira_consider_dup_in_all_alts.
5547 * params.opt (ira-consider-dup-in-all-alts): New.
5548 * ira-conflicts.c (process_regs_for_copy): Add one parameter
5549 single_input_op_has_cstr_p.
5550 (get_freq_for_shuffle_copy): New function.
5551 (add_insn_allocno_copies): Adjust as single_input_op_has_cstr_p.
5552 * ira-int.h (ira_get_dup_out_num): Add one bool parameter.
5554 2021-07-05 Jeff Law <jeffreyalaw@gmail.com>
5556 * config/h8300/shiftrotate.md (shift-by-variable patterns): Update to
5557 generate condition code aware RTL directly.
5559 2021-07-05 Andrew Pinski <apinski@marvell.com>
5561 PR tree-optimization/101039
5562 * match.pd (A CMP 0 ? A : -A): New patterns.
5563 * tree-ssa-phiopt.c (abs_replacement): Delete function.
5564 (tree_ssa_phiopt_worker): Don't call abs_replacement.
5565 Update comment about abs_replacement.
5567 2021-07-05 Andrew Pinski <apinski@marvell.com>
5569 * tree-ssa-phiopt.c (gimple_simplify_phiopt):
5570 If "A ? B : C" fails to simplify, try "(!A) ? C : B".
5572 2021-07-05 Andrew Pinski <apinski@marvell.com>
5574 * tree-ssa-phiopt.c (match_simplify_replacement):
5575 Add early_p argument. Call gimple_simplify_phiopt
5576 instead of gimple_simplify.
5577 (tree_ssa_phiopt_worker): Update call to
5578 match_simplify_replacement and allow unconditionally.
5579 (phiopt_early_allow): New function.
5580 (gimple_simplify_phiopt): New function.
5582 2021-07-05 Andrew Pinski <apinski@marvell.com>
5584 PR middle-end/101237
5585 * fold-const.c (negate_expr_p): Remove call to element_mode
5586 and TREE_MODE/TREE_TYPE when calling HONOR_SIGNED_ZEROS,
5587 HONOR_SIGN_DEPENDENT_ROUNDING, and HONOR_SNANS.
5588 (fold_negate_expr_1): Likewise.
5589 (const_unop): Likewise.
5590 (fold_cond_expr_with_comparison): Likewise.
5591 (fold_binary_loc): Likewise.
5592 (fold_ternary_loc): Likewise.
5593 (tree_call_nonnegative_warnv_p): Likewise.
5594 * match.pd (-(A + B) -> (-B) - A): Likewise.
5596 2021-07-05 Iain Sandoe <iain@sandoe.co.uk>
5598 * configure.ac: Handle --with-dsymutil in the same way as we
5599 do for the assembler and linker. (DEFAULT_DSYMUTIL): New.
5600 Extract the type and version for the dsymutil configured or
5601 found by the default searches.
5602 * config.in: Regenerated.
5603 * configure: Regenerated.
5604 * collect2.c (do_dsymutil): Handle locating dsymutil in the
5605 same way as for the assembler and linker.
5606 * config/darwin.h (DSYMUTIL): Delete.
5607 * gcc.c: Report a configured dsymutil correctly.
5608 * exec-tool.in: Allow for dsymutil.
5610 2021-07-05 Uroš Bizjak <ubizjak@gmail.com>
5612 * config/i386/i386-expand.c (ix86_split_mmx_punpck):
5613 Handle V4QI and V2HI modes.
5614 (expand_vec_perm_blend): Allow 4-byte vector modes with TARGET_SSE4_1.
5615 Handle V4QI mode. Emit mmx_pblendvb32 for 4-byte modes.
5616 (expand_vec_perm_pshufb): Rewrite to use switch statemets.
5617 Handle 4-byte dual operands with TARGET_XOP and single operands
5618 with TARGET_SSSE3. Emit mmx_ppermv32 for TARGET_XOP and
5619 mmx_pshufbv4qi3 for TARGET_SSSE3.
5620 (expand_vec_perm_pblendv): Allow 4-byte vector modes with TARGET_SSE4_1.
5621 (expand_vec_perm_interleave2): Allow 4-byte vector modes.
5622 (expand_vec_perm_pshufb2): Allow 4-byte vector modes with TARGET_SSSE3.
5623 (expand_vec_perm_even_odd_1): Handle V4QI mode.
5624 (expand_vec_perm_broadcast_1): Handle V4QI mode.
5625 (ix86_vectorize_vec_perm_const): Handle V4QI mode.
5626 * config/i386/mmx.md (mmx_ppermv32): New insn pattern.
5627 (mmx_pshufbv4qi3): Ditto.
5628 (*mmx_pblendw32): Ditto.
5629 (*mmx_pblendw64): Rename from *mmx_pblendw.
5630 (mmx_punpckhbw_low): New insn_and_split pattern.
5631 (mmx_punpcklbw_low): Ditto.
5633 2021-07-05 Richard Biener <rguenther@suse.de>
5635 * tree-vect-loop-manip.c (vect_loop_versioning): Do not
5636 set LOOP_C_INFINITE on the vectorized loop.
5638 2021-07-05 Richard Biener <rguenther@suse.de>
5640 PR middle-end/101291
5641 * cfgloopmanip.c (loop_version): Set the loop copy of the
5642 versioned loop to the new loop.
5644 2021-07-04 Iain Sandoe <iain@sandoe.co.uk>
5647 * config.gcc: Ensure that Darwin biarch definitions are
5648 added before i386.h.
5649 * config/i386/darwin.h (TARGET_64BIT): Remove.
5650 (PR80556_WORKAROUND): New.
5651 (REAL_LIBGCC_SPEC): Amend to use PR80556_WORKAROUND.
5652 (DARWIN_SUBARCH_SPEC): New.
5653 * config/i386/darwin32-biarch.h (TARGET_64BIT_DEFAULT,
5654 TARGET_BI_ARCH, PR80556_WORKAROUND): New.
5655 (REAL_LIBGCC_SPEC): Remove.
5656 * config/i386/darwin64-biarch.h (TARGET_64BIT_DEFAULT,
5657 TARGET_BI_ARCH, PR80556_WORKAROUND): New.
5658 (REAL_LIBGCC_SPEC): Remove.
5660 2021-07-03 H.J. Lu <hjl.tools@gmail.com>
5662 PR middle-end/101294
5663 * expr.c (store_constructor): Don't use vec_duplicate on vector.
5665 2021-07-02 Martin Sebor <msebor@redhat.com>
5669 * diagnostic.c (get_any_inlining_info): New.
5670 (update_effective_level_from_pragmas): Handle inlining context.
5671 (diagnostic_enabled): Same.
5672 (diagnostic_report_diagnostic): Same.
5673 * diagnostic.h (struct diagnostic_info): Add ctor.
5674 (struct diagnostic_context): Add new member.
5675 * tree-diagnostic.c (set_inlining_locations): New.
5676 (tree_diagnostics_defaults): Set new callback pointer.
5678 2021-07-02 Peter Bergner <bergner@linux.ibm.com>
5680 * config/rs6000/rs6000-builtin.def (BU_MMA_PAIR_LD, BU_MMA_PAIR_ST):
5682 (__builtin_vsx_lxvp, __builtin_vsx_stxvp): New built-ins.
5683 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_mma_builtin): Expand
5684 lxvp and stxvp built-ins.
5685 (mma_init_builtins): Handle lxvp and stxvp built-ins.
5686 (builtin_function_type): Likewise.
5687 * doc/extend.texi (__builtin_vsx_lxvp, __builtin_mma_stxvp): Document.
5689 2021-07-02 Jeff Law <jeffreyalaw@gmail.com>
5691 * config/h8300/h8300-protos.h (compute_a_shift_cc): Accept
5692 additional argument for the code.
5693 * config/h8300/h8300.c (compute_a_shift_cc): Accept additional
5694 argument for the code. Just return if the ZN bits are useful or
5695 not rather than the old style CC_* enums.
5696 * config/h8300/shiftrotate.md (shiftqi_noscratch): Move before
5697 more generic shiftqi patterns.
5698 (shifthi_noscratch, shiftsi_noscratch): Similarly.
5699 (shiftqi_noscratch_set_flags): New pattern.
5700 (shifthi_noscratch_set_flags, shiftsi_noscratch_set_flags): Likewise.
5702 2021-07-02 Andrew MacLeod <amacleod@redhat.com>
5704 PR tree-optimization/101223
5705 * range-op.cc (build_lt): Add -1 for signed values.
5706 (built_gt): Subtract -1 for signed values.
5708 2021-07-02 David Faust <david.faust@oracle.com>
5710 * btfout.c (get_btf_kind): Support BTF_KIND_FLOAT.
5711 (btf_asm_type): Likewise.
5713 2021-07-02 Jeff Law <jeffreyalaw@gmail.com>
5715 * config/h8300/h8300-protos.h (output_a_shift): Make first argument
5716 an array of rtx rather than a pointer to rtx. Add code argument.
5717 (compute_a_shift_length): Similarly.
5718 * config/h8300/h8300.c (h8300_shift_costs): Adjust now that the
5719 shift itself isn't an operand. Create dummy operand[0] to carry
5720 a mode and pass a suitable rtx code to compute_a_shift_length.
5721 (get_shift_alg): Adjust operand number of clobber in output templates.
5722 (output_a_shift): Make first argument an array of rtx rather than
5723 a pointer to rtx. Add code argument for the type of shift.
5724 Adjust now that the shift itself is no longer an operand.
5725 (compute_a_shift_length): Similarly.
5726 * config/h8300/shiftrotate.md (shiftqi, shifthi, shiftsi): Use an
5727 iterator rather than nshift_operator.
5728 (shiftqi_noscratch, shifthi_noscratch, shiftsi_noscratch): Likewise.
5729 (shiftqi_clobber_flags): Adjust to API changes in output_a_shift
5730 and compute_a_shift_length.
5731 (shiftqi_noscratch_clobber_flags): Likewise.
5732 (shifthi_noscratch_clobber_flags): Likewise.
5733 (shiftsi_noscratch_clobber_flags): Likewise.
5735 2021-07-02 Iain Sandoe <iain@sandoe.co.uk>
5738 * config/darwin.h (DSYMUTIL_SPEC): Do not try to run
5739 dsymutil for BTF/CTF.
5741 2021-07-02 Iain Sandoe <iain@sandoe.co.uk>
5744 * config/darwin.h (CTF_INFO_SECTION_NAME): Update the
5745 segment to include BTF.
5746 (BTF_INFO_SECTION_NAME): New.
5748 2021-07-02 Jeff Law <jeffreyalaw@gmail.com>
5750 * config/m32r/m32r-protos.h (call_operand): Adjust return type.
5751 (small_data_operand, memreg_operand, small_insn_p): Likewise.
5752 * config/m32r/m32r.c (call_operand): Adjust return type.
5753 (small_data_operand, memreg_operand): Likewise.
5755 2021-07-02 Jeff Law <jeffreyalaw@gmail.com>
5757 * config/frv/frv-protos.h (integer_register_operand): Adjust return
5759 (frv_load_operand, gpr_or_fpr_operand, gpr_no_subreg_operand): Likewise.
5760 (fpr_or_int6_operand, gpr_or_int_operand); Likewise.
5761 (gpr_or_int12_operand, gpr_or_int10_operand); Likewise.
5762 (move_source_operand, move_destination_operand): Likewise.
5763 (condexec_source_operand, condexec_dest_operand): Likewise.
5764 (lr_operand, gpr_or_memory_operand, fpr_or_memory_operand): Likewise.
5765 (reg_or_0_operand, fcc_operand, icc_operand, cc_operand): Likewise.
5766 (fcr_operand, icr_operand, cr_operand, call_operand): Likewise.
5767 (fpr_operand, even_reg_operand, odd_reg_operand): Likewise.
5768 (even_gpr_operand, odd_gpr_operand, quad_fpr_operand): Likewise.
5769 (even_fpr_operand, odd_fpr_operand): Likewise.
5770 (dbl_memory_one_insn_operand, dbl_memory_two_insn_operand): Likewise.
5771 (int12_operand, int6_operand, int5_operand, uint5_operand): Likewise.
5772 (uint4_operand, uint1_operand, int_2word_operand): Likewise
5773 (upper_int16_operand, uint16_operand, symbolic_operand): Likewise.
5774 (relational_operator, float_relational_operator): Likewise.
5775 (ccr_eqne_operator, minmax_operator): Likewise.
5776 (condexec_si_binary_operator, condexec_si_media_operator): Likewise.
5777 (condexec_si_divide_operator, condexec_si_unary_operator): Likewise.
5778 (condexec_sf_conv_operator, condexec_sf_add_operator): Likewise.
5779 (intop_compare_operator, acc_operand, even_acc_operand): Likewise.
5780 (quad_acc_operand, accg_operand): Likewise.
5782 2021-07-02 Jeff Law <jeffreyalaw@gmail.com>
5784 * config/stormy16/stormy16-protos.h (xstormy16_below_100_symbol): Change
5785 return type to a bool.
5786 (nonimmediate_nonstack_operand): Likewise.
5787 (xstormy16_splittable_below100_operand): Likewise.
5788 * config/stormy16/stormy16.c (xstormy16_below_100_symbol): Fix
5790 (xstormy16_splittable_below100_operand): Likewise.
5792 2021-07-02 Richard Biener <rguenther@suse.de>
5794 PR tree-optimization/101293
5795 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Compare MEM_REF bases
5796 with combined offsets.
5797 (gather_mem_refs_stmt): Hash MEM_REFs as if their offset were
5798 combined with the rest of the offset.
5800 2021-07-02 Eric Botcazou <ebotcazou@adacore.com>
5802 * config/i386/i386.c (asm_preferred_eh_data_format): Always use the
5803 PIC encodings for PE-COFF targets.
5805 2021-07-02 Jakub Jelinek <jakub@redhat.com>
5808 * config/i386/i386-expand.c (ix86_broadcast_from_integer_constant):
5809 Return nullptr for TImode inner mode.
5811 2021-07-02 Richard Biener <rguenther@suse.de>
5813 PR tree-optimization/101280
5814 PR tree-optimization/101173
5815 * gimple-loop-interchange.cc
5816 (tree_loop_interchange::valid_data_dependences): Properly
5817 guard all dependence checks with DDR_REVERSED_P or its
5820 2021-07-02 Hongyu Wang <hongyu.wang@intel.com>
5822 * config/i386/i386-expand.c (ix86_expand_builtin):
5823 Add branch to clear odata when ZF is set for asedecenc_expand
5824 and wideaesdecenc_expand.
5826 2021-07-02 Eugene Rozenfeld <erozen@microsoft.com>
5828 * config/i386/gcc-auto-profile: regenerate
5830 2021-07-02 liuhongt <hongtao.liu@intel.com>
5832 * config/i386/sse.md (trunc<mode><pmov_dst_4>2): Refined to ..
5833 (trunc<mode><pmov_dst_4_lower>2): this.
5835 2021-07-01 David Malcolm <dmalcolm@redhat.com>
5837 * diagnostic.h (diagnostic_context::m_file_cache): New field.
5838 * input.c (class fcache): Rename to...
5839 (class file_cache_slot): ...this, making most members private and
5840 prefixing fields with "m_".
5841 (file_cache_slot::get_file_path): New accessor.
5842 (file_cache_slot::get_use_count): New accessor.
5843 (file_cache_slot::missing_trailing_newline_p): New accessor.
5844 (file_cache_slot::inc_use_count): New.
5845 (fcache_buffer_size): Move to...
5846 (file_cache_slot::buffer_size): ...here.
5847 (fcache_line_record_size): Move to...
5848 (file_cache_slot::line_record_size): ...here.
5849 (fcache_tab): Delete, in favor of global_dc->m_file_cache.
5850 (fcache_tab_size): Move to file_cache::num_file_slots.
5851 (diagnostic_file_cache_init): Update for move of fcache_tab
5852 to global_dc->m_file_cache.
5853 (diagnostic_file_cache_fini): Likewise.
5854 (lookup_file_in_cache_tab): Convert to...
5855 (file_cache::lookup_file): ...this.
5856 (diagnostics_file_cache_forcibly_evict_file): Update for move of
5857 fcache_tab to global_dc->m_file_cache, moving most of
5858 implementation to...
5859 (file_cache::forcibly_evict_file): ...this new function and...
5860 (file_cache_slot::evict): ...this new function.
5861 (evicted_cache_tab_entry): Convert to...
5862 (file_cache::evicted_cache_tab_entry): ...this.
5863 (add_file_to_cache_tab): Convert to...
5864 (file_cache::add_file): ...this, moving bulk of implementation
5866 (file_cache_slot::create): ..this new function.
5867 (file_cache::file_cache): New.
5868 (file_cache::~file_cache): New.
5869 (lookup_or_add_file_to_cache_tab): Convert to...
5870 (file_cache::lookup_or_add_file): ..this new function.
5871 (fcache::fcache): Rename to...
5872 (file_cache_slot::file_cache_slot): ...this, adding "m_" prefixes
5874 (fcache::~fcache): Rename to...
5875 (file_cache_slot::~file_cache_slot): ...this, adding "m_" prefixes
5877 (needs_read): Convert to...
5878 (file_cache_slot::needs_read_p): ...this.
5879 (needs_grow): Convert to...
5880 (file_cache_slot::needs_grow_p): ...this.
5881 (maybe_grow): Convert to...
5882 (file_cache_slot::maybe_grow): ...this.
5883 (read_data): Convert to...
5884 (file_cache_slot::read_data): ...this.
5885 (maybe_read_data): Convert to...
5886 (file_cache_slot::maybe_read_data): ...this.
5887 (get_next_line): Convert to...
5888 (file_cache_slot::get_next_line): ...this.
5889 (goto_next_line): Convert to...
5890 (file_cache_slot::goto_next_line): ...this.
5891 (read_line_num): Convert to...
5892 (file_cache_slot::read_line_num): ...this.
5893 (location_get_source_line): Update for moving of globals to
5894 global_dc->m_file_cache.
5895 (location_missing_trailing_newline): Likewise.
5896 * input.h (class file_cache_slot): New forward decl.
5897 (class file_cache): New.
5899 2021-07-01 Michael Meissner <meissner@linux.ibm.com>
5901 * config/rs6000/rs6000.c (rs6000_maybe_emit_fp_cmove): Add IEEE
5902 128-bit floating point conditional move support.
5903 (have_compare_and_set_mask): Add IEEE 128-bit floating point
5905 * config/rs6000/rs6000.md (mov<mode>cc, IEEE128 iterator): New insn.
5906 (mov<mode>cc_p10, IEEE128 iterator): New insn.
5907 (mov<mode>cc_invert_p10, IEEE128 iterator): New insn.
5908 (fpmask<mode>, IEEE128 iterator): New insn.
5909 (xxsel<mode>, IEEE128 iterator): New insn.
5911 2021-07-01 Iain Sandoe <iain@sandoe.co.uk>
5914 * config/darwin.h (CTF_INFO_SECTION_NAME): New.
5916 2021-07-01 H.J. Lu <hjl.tools@gmail.com>
5918 * config/i386/i386-expand.c (ix86_expand_vector_init_duplicate):
5920 * config/i386/i386-protos.h (ix86_expand_vector_init_duplicate):
5922 * config/i386/sse.md (INT_BROADCAST_MODE): New mode iterator.
5923 (vec_duplicate<mode>): New expander.
5925 2021-07-01 H.J. Lu <hjl.tools@gmail.com>
5928 * config/i386/i386-expand.c (ix86_expand_vector_init_duplicate):
5930 (ix86_byte_broadcast): New function.
5931 (ix86_convert_const_wide_int_to_broadcast): Likewise.
5932 (ix86_expand_move): Convert CONST_WIDE_INT to broadcast if mode
5933 size is 16 bytes or bigger.
5934 (ix86_broadcast_from_integer_constant): New function.
5935 (ix86_expand_vector_move): Convert CONST_WIDE_INT and CONST_VECTOR
5936 to broadcast if mode size is 16 bytes or bigger.
5937 * config/i386/i386-protos.h (ix86_gen_scratch_sse_rtx): New
5939 * config/i386/i386.c (ix86_gen_scratch_sse_rtx): New function.
5941 2021-07-01 Uroš Bizjak <ubizjak@gmail.com>
5943 * config/i386/predicates.md (ix86_endbr_immediate_operand):
5944 Return true/false instead of 1/0.
5945 (movq_parallel): Ditto.
5947 2021-07-01 Uroš Bizjak <ubizjak@gmail.com>
5949 * recog.c (general_operand): Return true/false instead of 1/0.
5950 (register_operand): Ditto.
5951 (immediate_operand): Ditto.
5952 (const_int_operand): Ditto.
5953 (const_scalar_int_operand): Ditto.
5954 (const_double_operand): Ditto.
5955 (push_operand): Ditto.
5956 (pop_operand): Ditto.
5957 (memory_operand): Ditto.
5958 (indirect_operand): Ditto.
5960 2021-07-01 Uroš Bizjak <ubizjak@gmail.com>
5962 * genpreds.c (write_predicate_subfunction):
5963 Change the type of written subfunction to bool.
5964 (write_one_predicate_function):
5965 Change the type of written function to bool.
5966 (write_tm_preds_h): Ditto.
5967 * recog.h (*insn_operand_predicate_fn): Change the type to bool.
5968 * recog.c (general_operand): Change the type to bool.
5969 (address_operand): Ditto.
5970 (register_operand): Ditto.
5971 (pmode_register_operand): Ditto.
5972 (scratch_operand): Ditto.
5973 (immediate_operand): Ditto.
5974 (const_int_operand): Ditto.
5975 (const_scalar_int_operand): Ditto.
5976 (const_double_operand): Ditto.
5977 (nonimmediate_operand): Ditto.
5978 (nonmemory_operand): Ditto.
5979 (push_operand): Ditto.
5980 (pop_operand): Ditto.
5981 (memory_operand): Ditto.
5982 (indirect_operand): Ditto.
5983 (ordered_comparison_operator): Ditto.
5984 (comparison_operator): Ditto.
5985 * config/i386/i386-expand.c (ix86_expand_sse_cmp):
5986 Change the type of indirect predicate function to bool.
5987 * config/rs6000/rs6000.c (easy_vector_constant):
5988 Change the type to bool.
5989 * config/mips/mips-protos.h (m16_based_address_p):
5990 Change the type of operand 3 to bool.
5992 2021-07-01 Richard Biener <rguenther@suse.de>
5994 PR tree-optimization/101280
5995 PR tree-optimization/101173
5996 * gimple-loop-interchange.cc
5997 (tree_loop_interchange::valid_data_dependences): Revert
5998 previous change and instead correctly handle DDR_REVERSED_P
6001 2021-07-01 Richard Biener <rguenther@suse.de>
6003 PR tree-optimization/101278
6004 * tree-ssa-dse.c (dse_classify_store): First check for
6005 uses, then ignore stmt for chaining purposes.
6007 2021-07-01 Richard Biener <rguenther@suse.de>
6009 PR tree-optimization/100778
6010 * tree-vect-slp.c (vect_schedule_slp_node): Do not place trapping
6011 vectorized ops ahead of their scalar BB.
6013 2021-07-01 Uroš Bizjak <ubizjak@gmail.com>
6016 * config/i386/i386.md (*nabs<dwi>2_doubleword):
6017 New insn_and_split pattern.
6018 (*nabs<dwi>2_1): Ditto.
6019 * config/i386/i386-features.c
6020 (general_scalar_chain::compute_convert_gain):
6021 Handle (NEG (ABS (...))) RTX. Rewrite src code
6022 scanner as switch statement.
6023 (general_scalar_chain::convert_insn):
6024 Handle (NEG (ABS (...))) RTX.
6025 (general_scalar_to_vector_candidate_p):
6026 Detect (NEG (ABS (...))) RTX. Reorder case statements
6027 for (AND (NOT (...) ...)) fallthrough.
6029 2021-07-01 Richard Biener <rguenther@suse.de>
6031 PR tree-optimization/101178
6032 * tree-vect-slp.c (slpg_vertex::materialize): Remove.
6033 (slpg::perm_in): Add.
6034 (slpg::get_perm_in): Remove.
6035 (slpg::get_perm_materialized): Add.
6036 (vect_optimize_slp): Handle VEC_PERM nodes more optimally
6037 during permute propagation and materialization.
6039 2021-07-01 Jakub Jelinek <jakub@redhat.com>
6042 * dwarf2out.c (loc_list_from_tree_1): Handle COMPOUND_LITERAL_EXPR.
6044 2021-07-01 Jakub Jelinek <jakub@redhat.com>
6047 * omp-low.c (lower_rec_input_clauses): Rename is_fp_and_or to
6048 is_truth_op, set it for TRUTH_*IF_EXPR regardless of new_var's type,
6049 use boolean_type_node instead of integer_type_node as NE_EXPR type.
6050 (lower_reduction_clauses): Likewise.
6052 2021-06-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
6054 * config/gcn/gcn.c: Include dwarf2.h.
6055 (gcn_addr_space_debug): New function.
6056 (TARGET_ADDR_SPACE_DEBUG): New hook.
6058 2021-06-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
6060 * common/config/gcn/gcn-common.c
6061 (gcn_option_optimization_table): Change OPT_fomit_frame_pointer to -O3.
6062 * config/gcn/gcn.c (gcn_expand_prologue): Prefer the frame pointer
6064 (gcn_expand_prologue): Prefer the frame pointer when emitting CFI.
6065 (gcn_frame_pointer_rqd): New function.
6066 (TARGET_FRAME_POINTER_REQUIRED): New hook.
6068 2021-06-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
6070 * config/gcn/gcn.c (move_callee_saved_registers): Emit CFI notes for
6071 prologue register saves.
6072 (gcn_debug_unwind_info): Use UI_DWARF2.
6073 (gcn_dwarf_register_number): Map DWARF_LINK_REGISTER to DWARF PC.
6074 (gcn_dwarf_register_span): DWARF_LINK_REGISTER doesn't span.
6075 * config/gcn/gcn.h: (DWARF_FRAME_RETURN_COLUMN): New define.
6076 (DWARF_LINK_REGISTER): New define.
6077 (FIRST_PSEUDO_REGISTER): Increment.
6078 (FIXED_REGISTERS): Add entry for DWARF_LINK_REGISTER.
6079 (CALL_USED_REGISTERS): Likewise.
6080 (REGISTER_NAMES): Likewise.
6082 2021-06-30 Richard Biener <rguenther@suse.de>
6084 PR tree-optimization/101267
6085 * tree-vect-stmts.c (vect_check_scalar_mask): Adjust
6086 API and use SLP compatible interface of vect_is_simple_use.
6087 Reject not vectorized SLP defs for callers that do not support
6089 (vect_check_store_rhs): Handle masked stores and pass down
6090 the appropriate operator index.
6091 (vectorizable_call): Adjust.
6092 (vectorizable_store): Likewise.
6093 (vectorizable_load): Likewise. Handle SLP pecularity of
6095 (vect_is_simple_use): Remove special-casing of masked stores.
6097 2021-06-30 Tobias Burnus <tobias@codesourcery.com>
6099 * common.opt (foffload): Remove help as Driver only.
6100 * gcc.c (display_help): Add -foffload.
6102 2021-06-30 Tobias Burnus <tobias@codesourcery.com>
6104 * gcc.c (close_at_file, execute): Replace alloca by XALLOCAVEC.
6105 (check_offload_target_name): Fix splitting OFFLOAD_TARGETS into
6106 a candidate list; better inform no offload target is configured
6107 and fix hint extraction when passed target is not '\0' at [len].
6108 * common.opt (foffload): Add tailing '.'.
6109 (foffload-options): Likewise; fix flag name in the help string.
6111 2021-06-30 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
6114 * config/arm/arm_neon.h: Move vabs intrinsics before vcage_f32.
6115 (vcage_f32): Gate comparison on __FAST_MATH__.
6116 (vcageq_f32): Likewise.
6117 (vcale_f32): Likewise.
6118 (vcaleq_f32): Likewise.
6119 (vcagt_f32): Likewise.
6120 (vcagtq_f32): Likewise.
6121 (vcalt_f32): Likewise.
6122 (vcaltq_f32): Likewise.
6123 (vcage_f16): Likewise.
6124 (vcageq_f16): Likewise.
6125 (vcale_f16): Likewise.
6126 (vcaleq_f16): Likewise.
6127 (vcagt_f16): Likewise.
6128 (vcagtq_f16): Likewise.
6129 (vcalt_f16): Likewise.
6130 (vcaltq_f16): Likewise.
6132 2021-06-30 Richard Biener <rguenther@suse.de>
6134 PR tree-optimization/101264
6135 * tree-vect-slp.c (vect_optimize_slp): Propagate the
6136 computed perm_in to all "any" permute successors
6137 we cannot de-duplicate immediately.
6139 2021-06-30 liuhongt <hongtao.liu@intel.com>
6142 * config/i386/sse.md
6143 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>):
6145 (avx512f_sfixupimm<mode><maskz_scalar_name><round_saeonly_name>):
6147 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>"): Refined.
6148 * config/i386/subst.md (maskz_scalar): New define_subst.
6149 (maskz_scalar_name): New subst_attr.
6150 (maskz_scalar_op5): Ditto.
6151 (round_saeonly_maskz_scalar_op5): Ditto.
6152 (round_saeonly_maskz_scalar_operand5): Ditto.
6154 2021-06-30 David Edelsohn <dje.gcc@gmail.com>
6156 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags):
6157 Increase code CSECT alignment to at least 32 bytes.
6158 * config/rs6000/xcoff.h (TEXT_SECTION_ASM_OP): Add 32 byte
6159 alignment designation.
6161 2021-06-29 Sergei Trofimovich <siarheit@google.com>
6163 * doc/generic.texi: Fix s/net yet/not yet/ typo.
6165 2021-06-29 Andrew MacLeod <amacleod@redhat.com>
6167 PR tree-optimization/101254
6168 * range-op.cc (operator_minus::op1_op2_relation_effect): Check for
6169 wrapping/non-wrapping when setting the result range.
6171 2021-06-29 Andrew MacLeod <amacleod@redhat.com>
6173 * value-query.cc (gimple_range_global): Allow phis.
6175 2021-06-29 Andrew MacLeod <amacleod@redhat.com>
6177 * vr-values.c (vr_values::vrp_stmt_computes_nonzero): Use stmt.
6178 (simplify_using_ranges::op_with_boolean_value_range_p): Add a
6179 statement for location context.
6180 (check_for_binary_op_overflow): Ditto.
6181 (simplify_using_ranges::get_vr_for_comparison): Ditto.
6182 (simplify_using_ranges::compare_name_with_value): Ditto.
6183 (simplify_using_ranges::compare_names): Ditto.
6184 (vrp_evaluate_conditional_warnv_with_ops_using_ranges): Ditto.
6185 (simplify_using_ranges::simplify_truth_ops_using_ranges): Ditto.
6186 (simplify_using_ranges::simplify_min_or_max_using_ranges): Ditto.
6187 (simplify_using_ranges::simplify_internal_call_using_ranges): Ditto.
6188 (simplify_using_ranges::two_valued_val_range_p): Ditto.
6189 (simplify_using_ranges::simplify): Ditto.
6190 * vr-values.h: Adjust prototypes.
6192 2021-06-29 Uroš Bizjak <ubizjak@gmail.com>
6195 * config/i386/mmx.md (vec_addsubv2sf3): New insn pattern.
6197 2021-06-29 Julian Brown <julian@codesourcery.com>
6199 * config/gcn/gcn.c (gcn_init_libfuncs): New function.
6200 (TARGET_INIT_LIBFUNCS): Define target hook using above function.
6201 * config/gcn/gcn.h (UNITS_PER_WORD): Define to 8 for IN_LIBGCC2, 4
6203 (LIBGCC2_UNITS_PER_WORD, BITS_PER_WORD): Remove definitions.
6204 (MAX_FIXED_MODE_SIZE): Change to 128.
6206 2021-06-29 Julian Brown <julian@codesourcery.com>
6208 * config/gcn/gcn.md (UNSPEC_FLBIT_INT): New unspec constant.
6209 (s_mnemonic): Add clrsb.
6210 (gcn_flbit<mode>_int): Add insn pattern for SImode/DImode.
6211 (clrsb<mode>2): Add expander for SImode/DImode.
6213 2021-06-29 Julian Brown <julian@codesourcery.com>
6215 * config/gcn/gcn.md (<su>mulsidi3, <su>mulsidi3_reg, <su>mulsidi3_imm,
6216 muldi3): Add patterns.
6218 2021-06-29 Julian Brown <julian@codesourcery.com>
6220 * config/gcn/gcn.md (<su>mulsi3_highpart): Change to expander.
6221 (<su>mulsi3_highpart_reg, <su>mulsi3_highpart_imm): New patterns.
6223 2021-06-29 Julian Brown <julian@codesourcery.com>
6225 * config/gcn/gcn.md (mulsi3): Make s_mulk_i32 variant clobber SCC.
6227 2021-06-29 Joseph Myers <joseph@codesourcery.com>
6229 * btfout.c, ctfout.c: Include "memmodel.h".
6231 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
6233 * gcc.c (check_offload_target_name): Cast len argument to
6234 %q.*s to 'int'; avoid -Wstringop-truncation warning.
6236 2021-06-29 Richard Biener <rguenther@suse.de>
6238 * tree-vect-slp.c (vect_optimize_slp): Forward propagate
6239 to "any" permute nodes and relax "any" permute proapgation
6240 during iterative backward propagation.
6242 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
6245 * common.opt (-foffload=): Update description.
6246 (-foffload-options=): New.
6247 * doc/invoke.texi (C Language Options): Document
6248 -foffload and -foffload-options.
6249 * gcc.c (check_offload_target_name): New, split off from
6250 handle_foffload_option.
6251 (check_foffload_target_names): New.
6252 (handle_foffload_option): Handle -foffload=default.
6253 (driver_handle_option): Update for -foffload-options.
6254 * lto-opts.c (lto_write_options): Use -foffload-options
6255 instead of -foffload.
6256 * lto-wrapper.c (merge_and_complain, append_offload_options):
6258 * opts.c (common_handle_option): Likewise.
6260 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
6262 * doc/invoke.texi (C Language Options): Sort options
6263 alphabetically in optlist and also the description itself.
6264 Remove leftover -fallow-single-precision from and add missing
6265 -fgnu-tm to the optlist.
6267 2021-06-29 Richard Biener <rguenther@suse.de>
6269 * tree-vect-slp.c (slpg_vertex::visited): Remove.
6270 (vect_slp_perms_eq): Handle -1 permutes.
6271 (vect_optimize_slp): Rewrite permute propagation.
6273 2021-06-29 Jakub Jelinek <jakub@redhat.com>
6276 * match.pd ((intptr_t)x eq/ne CST to x eq/ne (typeof x) CST): Don't
6277 perform the optimization in GENERIC when sanitizing and x has a
6280 2021-06-29 Richard Biener <rguenther@suse.de>
6282 PR tree-optimization/101242
6283 * tree-vect-slp.c (vect_slp_build_vertices): Force-add
6284 PHIs with not represented initial values as leafs.
6286 2021-06-29 Jan-Benedict Glaw <jbglaw@getslash.de>
6288 * config/pdp11/pdp11.h (ASM_OUTPUT_SKIP): Fix signedness warning.
6289 * config/pdp11/pdp11.c (pdp11_asm_print_operand_punct_valid_p): Remove
6291 (pdp11_initial_elimination_offset) Remove unused variable.
6292 (pdp11_cmp_length) Ditto.
6293 (pdp11_insn_cost): Ditto, and fix signedness warning.
6295 2021-06-29 David Edelsohn <dje.gcc@gmail.com>
6297 * btfout.c: Include tm_p.h.
6300 2021-06-28 Indu Bhagat <indu.bhagat@oracle.com>
6302 * config/bpf/bpf.c (bpf_expand_prologue): Do not mark insns as
6304 (bpf_expand_epilogue): Likewise.
6305 * config/bpf/bpf.h (DWARF2_FRAME_INFO): Define to 0.
6306 Do not define DBX_DEBUGGING_INFO.
6308 2021-06-28 Indu Bhagat <indu.bhagat@oracle.com>
6310 * doc/invoke.texi: Document the CTF and BTF debug info options.
6312 2021-06-28 Indu Bhagat <indu.bhagat@oracle.com>
6313 David Faust <david.faust@oracle.com>
6314 Jose E. Marchesi <jose.marchesi@oracle.com>
6315 Weimin Pan <weimin.pan@oracle.com>
6317 * Makefile.in: Add ctfc.*, ctfout.c and btfout.c files to
6318 GTFILES. Add new object files.
6319 * common.opt: Add CTF and BTF debug info options.
6320 * btfout.c: New file.
6323 * ctfout.c: Likewise.
6324 * dwarf2ctf.c: Likewise.
6325 * dwarf2ctf.h: Likewise.
6326 * dwarf2cfi.c (dwarf2out_do_frame): Acknowledge CTF_DEBUG and
6328 * dwarf2out.c (dwarf2out_source_line): Likewise.
6329 (dwarf2out_finish): Skip emitting DWARF if CTF or BTF are to
6331 (debug_format_do_cu): New function.
6332 (dwarf2out_early_finish): Traverse DIEs and emit CTF/BTF for
6334 Include dwarf2ctf.c.
6335 * final.c (dwarf2_debug_info_emitted_p): Acknowledge DWARF-based debug
6337 * flag-types.h (enum debug_info_type): Add CTF_DEBUG and BTF_DEBUG.
6338 (CTF_DEBUG): New bitmask.
6339 (BTF_DEBUG): Likewise.
6340 (enum ctf_debug_info_levels): New enum.
6341 * gengtype.c (open_base_files): Handle ctfc.h.
6342 (main): Handle uint32_t type.
6343 * flags.h (btf_debuginfo_p): New definition.
6344 (dwarf_based_debuginfo_p): Likewise.
6345 * opts.c (debug_type_names): Add entries for CTF and BTF.
6346 (btf_debuginfo_p): New function.
6347 (dwarf_based_debuginfo_p): Likewise.
6348 (common_handle_option): Handle -gctfN and -gbtf options.
6349 (set_debug_level): Set CTF_DEBUG, BTF_DEBUG whenever appropriate.
6350 * toplev.c (process_options): Inform the user and ignore -gctfLEVEL if
6353 2021-06-28 Jose E. Marchesi <jose.marchesi@oracle.com>
6355 * dwarf2out.c (AT_class): Function is no longer static.
6357 (AT_unsigned): Likewise.
6360 (get_AT_string): Likewise.
6361 (get_AT_flag): Likewise.
6362 (get_AT_unsigned): Likewise.
6363 (get_AT_ref): Likewise.
6364 (new_die_raw): Likewise.
6365 (lookup_decl_die): Likewise.
6366 (base_type_die): Likewise.
6367 (add_name_attribute): Likewise.
6368 (add_AT_int): Likewise.
6369 (add_AT_unsigned): Likewise.
6370 (add_AT_loc): Likewise.
6371 (dw_get_die_tag): New function.
6372 (dw_get_die_child): Likewise.
6373 (dw_get_die_sib): Likewise.
6374 (struct dwarf_file_data): Move from here to dwarf2out.h
6375 (struct dw_attr_struct): Likewise.
6376 * dwarf2out.h: Analogous changes.
6378 2021-06-28 Martin Jambor <mjambor@suse.cz>
6381 * ipa-param-manipulation.h (class ipa_param_body_adjustments): New
6382 members m_dead_stmts and m_dead_ssas.
6383 * ipa-param-manipulation.c
6384 (ipa_param_body_adjustments::mark_dead_statements): New function.
6385 (ipa_param_body_adjustments::common_initialization): Call it on
6386 all removed but not split parameters.
6387 (ipa_param_body_adjustments::ipa_param_body_adjustments): Initialize
6389 (ipa_param_body_adjustments::modify_call_stmt): Remove arguments that
6391 * tree-inline.c (remap_gimple_stmt): Do not copy dead statements, reset
6392 dead debug statements.
6393 (copy_phis_for_bb): Do not copy dead PHI nodes.
6395 2021-06-28 Martin Jambor <mjambor@suse.cz>
6398 * symtab-clones.h (clone_info): Removed member param_adjustments.
6399 * ipa-param-manipulation.h: Adjust initial comment to reflect how we
6400 deal with pass-through splits now.
6401 (ipa_param_performed_split): Removed.
6402 (ipa_param_adjustments::modify_call): Adjusted parameters.
6403 (class ipa_param_body_adjustments): Adjusted parameters of
6404 register_replacement, modify_gimple_stmt and modify_call_stmt.
6405 (ipa_verify_edge_has_no_modifications): Declare.
6406 (ipa_edge_modifications_finalize): Declare.
6407 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Remove
6408 performed_splits processing, pas only edge to padjs->modify_call,
6409 check that call arguments were not modified if they should not have
6411 * cgraphclones.c (cgraph_node::create_clone): Do not copy performed
6413 * ipa-param-manipulation.c (struct pass_through_split_map): New type.
6414 (ipa_edge_modification_info): Likewise.
6415 (ipa_edge_modification_sum): Likewise.
6416 (ipa_edge_modifications): New edge summary.
6417 (ipa_verify_edge_has_no_modifications): New function.
6418 (transitive_split_p): Removed.
6419 (transitive_split_map): Likewise.
6420 (init_transitive_splits): Likewise.
6421 (ipa_param_adjustments::modify_call): Adjusted to use the new edge
6422 summary instead of performed_splits.
6423 (ipa_param_body_adjustments::register_replacement): Drop dummy
6424 parameter, set base_index of the created ipa_param_body_replacement.
6425 (phi_arg_will_live_p): New function.
6426 (ipa_param_body_adjustments::common_initialization): Do not create
6427 IPA_SRA dummy decls.
6428 (simple_tree_swap_info): Removed.
6429 (remap_split_decl_to_dummy): Likewise.
6430 (record_argument_state_1): New function.
6431 (record_argument_state): Likewise.
6432 (ipa_param_body_adjustments::modify_call_stmt): New parameter
6433 orig_stmt. Do not work with dummy decls, save necessary info about
6434 changes to ipa_edge_modifications.
6435 (ipa_param_body_adjustments::modify_gimple_stmt): New parameter
6436 orig_stmt, pass it to modify_call_stmt.
6437 (ipa_param_body_adjustments::modify_cfun_body): Adjust call to
6439 (ipa_edge_modifications_finalize): New function.
6440 * tree-inline.c (remap_gimple_stmt): Pass original statement to
6442 (copy_phis_for_bb): Do not copy dead PHI nodes.
6443 (expand_call_inline): Do not remap performed_splits.
6444 (update_clone_info): Likewise.
6445 * toplev.c: Include ipa-param-manipulation.h.
6446 (toplev::finalize): Call ipa_edge_modifications_finalize.
6448 2021-06-28 Andrew Pinski <apinski@marvell.com>
6450 * tree-ssa-phiopt.c (replace_phi_edge_with_variable): Duplicate range
6451 info if we're the only things setting the target PHI.
6452 (value_replacement): Don't duplicate range here.
6453 (minmax_replacement): Likewise.
6455 2021-06-28 Richard Biener <rguenther@suse.de>
6457 PR tree-optimization/101229
6458 * gimple-walk.c (gimple_walk_op): Handle PHIs.
6460 2021-06-28 Martin Liska <mliska@suse.cz>
6462 * config/v850/v850.c (construct_dispose_instruction): Allocate
6464 (construct_prepare_instruction): Likewise.
6466 2021-06-28 Martin Liska <mliska@suse.cz>
6468 * config/v850/v850.c (v850_option_override): Build default
6470 (v850_can_inline_p): New. Allow MASK_PROLOG_FUNCTION to be
6471 ignored for inlining.
6472 (TARGET_CAN_INLINE_P): New.
6474 2021-06-28 Richard Biener <rguenther@suse.de>
6476 PR tree-optimization/101207
6477 * tree-vect-slp.c (vect_optimize_slp): Do BB reduction
6478 permute eliding for load permutations properly.
6480 2021-06-28 Richard Biener <rguenther@suse.de>
6482 PR tree-optimization/101173
6483 * gimple-loop-interchange.cc
6484 (tree_loop_interchange::valid_data_dependences): Disallow outer
6485 loop dependence distance of zero.
6487 2021-06-28 liuhongt <hongtao.liu@intel.com>
6490 * config/i386/sse.md (*avx_cmp<mode>3_lt): New
6491 define_insn_and_split.
6492 (*avx_cmp<mode>3_ltint): Ditto.
6493 (*avx2_pcmp<mode>3_3): Ditto.
6494 (*avx2_pcmp<mode>3_4): Ditto.
6495 (*avx2_pcmp<mode>3_5): Ditto.
6497 2021-06-28 liuhongt <hongtao.liu@intel.com>
6499 * config/i386/i386-builtin.def (IX86_BUILTIN_BLENDVPD256,
6500 IX86_BUILTIN_BLENDVPS256, IX86_BUILTIN_PBLENDVB256,
6501 IX86_BUILTIN_BLENDVPD, IX86_BUILTIN_BLENDVPS,
6502 IX86_BUILTIN_PBLENDVB128): Replace icode with
6504 * config/i386/i386.c (ix86_gimple_fold_builtin): Fold blendv
6506 * config/i386/sse.md (*<sse4_1_avx2>_pblendvb_lt_subreg_not):
6507 New pre_reload splitter.
6509 2021-06-27 Andrew Pinski <apinski@marvell.com>
6511 PR middle-end/101230
6512 * fold-const.c (fold_ternary_loc): Check
6513 the return value of invert_tree_comparison.
6515 2021-06-27 David Edelsohn <dje.gcc@gmail.com>
6517 * config.gcc: Add SPDX License Identifier.
6518 (powerpc-ibm-aix789): Default to aix73.h.
6519 (powerpc-ibm-aix7.2.*.*): New stanza.
6520 * config/rs6000/aix72.h: Add SPDX License Identifier.
6521 * config/rs6000/aix73.h: New file.
6523 2021-06-26 Jason Merrill <jason@redhat.com>
6525 * except.c: #include "dwarf2.h" instead of "dwarf2out.h".
6527 2021-06-26 Andrew Pinski <apinski@marvell.com>
6529 * genmatch.c (lower_cond): Copy for_subst_vec
6530 for the simplify also.
6531 (lower): Swap the order for lower_for and lower_cond.
6533 2021-06-26 Andrew Pinski <apinski@marvell.com>
6535 * tree-ssa-phiopt.c (match_simplify_replacement): Reset
6536 flow senatitive info on the moved ssa set.
6538 2021-06-26 Andrew Pinski <apinski@marvell.com>
6540 * fold-const.c (fold_cond_expr_with_comparison):
6541 Exand arg0 into comp_code, arg00, and arg01.
6542 (fold_ternary_loc): Use invert_tree_comparison
6543 instead of fold_invert_truthvalue for the case
6544 where we have A CMP B ? C : A.
6546 2021-06-25 Martin Sebor <msebor@redhat.com>
6548 PR middle-end/101216
6549 * calls.c (maybe_warn_rdwr_sizes): Use the no_warning constant.
6551 2021-06-25 Jeff Law <jeffreyalaw@gmail.com>
6553 * config/h8300/h8300.c (select_cc_mode): Handle ASHIFTRT and LSHIFTRT.
6555 2021-06-25 Richard Biener <rguenther@suse.de>
6557 PR tree-optimization/101202
6558 * tree-vect-slp.c (vect_optimize_slp): Explicitely handle
6561 2021-06-25 Richard Biener <rguenther@suse.de>
6563 * tree-vect-slp-patterns.c (addsub_pattern::build): Copy
6564 STMT_VINFO_REDUC_DEF from the original representative.
6566 2021-06-25 Martin Sebor <msebor@redhat.com>
6568 * builtins.c (warn_string_no_nul): Replace uses of TREE_NO_WARNING,
6569 gimple_no_warning_p and gimple_set_no_warning with
6570 warning_suppressed_p, and suppress_warning.
6572 (maybe_warn_for_bound): Same.
6573 (warn_for_access): Same.
6574 (check_access): Same.
6575 (expand_builtin_strncmp): Same.
6576 (fold_builtin_varargs): Same.
6577 * calls.c (maybe_warn_nonstring_arg): Same.
6578 (maybe_warn_rdwr_sizes): Same.
6579 * cfgexpand.c (expand_call_stmt): Same.
6580 * cgraphunit.c (check_global_declaration): Same.
6581 * fold-const.c (fold_undefer_overflow_warnings): Same.
6582 (fold_truth_not_expr): Same.
6583 (fold_unary_loc): Same.
6584 (fold_checksum_tree): Same.
6585 * gimple-array-bounds.cc (array_bounds_checker::check_array_ref): Same.
6586 (array_bounds_checker::check_mem_ref): Same.
6587 (array_bounds_checker::check_addr_expr): Same.
6588 (array_bounds_checker::check_array_bounds): Same.
6589 * gimple-expr.c (copy_var_decl): Same.
6590 * gimple-fold.c (gimple_fold_builtin_strcpy): Same.
6591 (gimple_fold_builtin_strncat): Same.
6592 (gimple_fold_builtin_stxcpy_chk): Same.
6593 (gimple_fold_builtin_stpcpy): Same.
6594 (gimple_fold_builtin_sprintf): Same.
6595 (fold_stmt_1): Same.
6596 * gimple-ssa-isolate-paths.c (diag_returned_locals): Same.
6597 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
6598 * gimple-ssa-sprintf.c (handle_printf_call): Same.
6599 * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_store): Same.
6600 * gimple-ssa-warn-restrict.c (maybe_diag_overlap): Same.
6601 * gimple-ssa-warn-restrict.h: Adjust declarations.
6602 (maybe_diag_access_bounds): Replace uses of TREE_NO_WARNING,
6603 gimple_no_warning_p and gimple_set_no_warning with
6604 warning_suppressed_p, and suppress_warning.
6606 (check_bounds_or_overlap): Same.
6607 * gimple.c (gimple_build_call_from_tree): Same.
6608 * gimplify.c (gimplify_return_expr): Same.
6609 (gimplify_cond_expr): Same.
6610 (gimplify_modify_expr_complex_part): Same.
6611 (gimplify_modify_expr): Same.
6612 (gimple_push_cleanup): Same.
6613 (gimplify_expr): Same.
6614 * omp-expand.c (expand_omp_for_generic): Same.
6615 (expand_omp_taskloop_for_outer): Same.
6616 * omp-low.c (lower_rec_input_clauses): Same.
6617 (lower_lastprivate_clauses): Same.
6618 (lower_send_clauses): Same.
6619 (lower_omp_target): Same.
6620 * tree-cfg.c (pass_warn_function_return::execute): Same.
6621 * tree-complex.c (create_one_component_var): Same.
6622 * tree-inline.c (remap_gimple_op_r): Same.
6623 (copy_tree_body_r): Same.
6624 (declare_return_variable): Same.
6625 (expand_call_inline): Same.
6626 * tree-nested.c (lookup_field_for_decl): Same.
6627 * tree-sra.c (create_access_replacement): Same.
6628 (generate_subtree_copies): Same.
6629 * tree-ssa-ccp.c (pass_post_ipa_warn::execute): Same.
6630 * tree-ssa-forwprop.c (combine_cond_expr_cond): Same.
6631 * tree-ssa-loop-ch.c (ch_base::copy_headers): Same.
6632 * tree-ssa-loop-im.c (execute_sm): Same.
6633 * tree-ssa-phiopt.c (cond_store_replacement): Same.
6634 * tree-ssa-strlen.c (maybe_warn_overflow): Same.
6635 (handle_builtin_strcpy): Same.
6636 (maybe_diag_stxncpy_trunc): Same.
6637 (handle_builtin_stxncpy_strncat): Same.
6638 (handle_builtin_strcat): Same.
6639 * tree-ssa-uninit.c (get_no_uninit_warning): Same.
6640 (set_no_uninit_warning): Same.
6641 (uninit_undefined_value_p): Same.
6642 (warn_uninit): Same.
6643 (maybe_warn_operand): Same.
6644 * tree-vrp.c (compare_values_warnv): Same.
6645 * vr-values.c (vr_values::extract_range_for_var_from_comparison_expr): Same.
6646 (test_for_singularity): Same.
6647 * gimple.h (warning_suppressed_p): New function.
6648 (suppress_warning): Same.
6649 (copy_no_warning): Same.
6650 (gimple_set_block): Call gimple_set_location.
6651 (gimple_set_location): Call copy_warning.
6653 2021-06-25 Martin Sebor <msebor@redhat.com>
6655 * tree.h (warning_suppressed_at, copy_warning,
6656 warning_suppressed_p, suppress_warning): New functions.
6658 2021-06-25 Martin Sebor <msebor@redhat.com>
6660 * Makefile.in (OBJS-libcommon): Add diagnostic-spec.o.
6661 * gengtype.c (open_base_files): Add diagnostic-spec.h.
6662 * diagnostic-spec.c: New file.
6663 * diagnostic-spec.h: New file.
6664 * tree.h (no_warning, all_warnings, suppress_warning_at): New
6666 * warning-control.cc: New file.
6668 2021-06-25 liuhongt <hongtao.liu@intel.com>
6671 * config/i386/i386.c (x86_order_regs_for_local_alloc):
6674 2021-06-24 Andrew MacLeod <amacleod@redhat.com>
6676 PR tree-optimization/101189
6677 * gimple-range-fold.cc (fold_using_range::range_of_range_op): Pass
6678 LHS range of condition to postfold routine.
6679 (fold_using_range::postfold_gcond_edges): Only process the TRUE or
6680 FALSE edge if the LHS range supports it being taken.
6681 * gimple-range-fold.h (postfold_gcond_edges): Add range parameter.
6683 2021-06-24 Andrew MacLeod <amacleod@redhat.com>
6685 * value-relation.cc (equiv_oracle::dump): Do not dump NULL blocks.
6686 (relation_oracle::find_relation_block): Check correct bitmap.
6687 (relation_oracle::dump): Do not dump NULL blocks.
6689 2021-06-24 Andrew MacLeod <amacleod@redhat.com>
6691 * gimple-range-cache.cc (ranger_cache::propagate_cache): Call
6692 range_on_edge instead of manually calculating.
6694 2021-06-24 Andrew MacLeod <amacleod@redhat.com>
6696 * range-op.cc: Fix comment.
6698 2021-06-24 Uroš Bizjak <ubizjak@gmail.com>
6701 * config/i386/i386-expand.c (ix86_expand_sse_unpack):
6702 Handle V8QI and V4HI modes.
6703 * config/i386/mmx.md (sse4_1_<any_extend:code>v4qiv4hi2):
6705 (sse4_1_<any_extend:code>v4qiv4hi2): Ditto.
6706 (mmxpackmode): New mode attribute.
6707 (vec_pack_trunc_<mmxpackmode:mode>): New expander.
6708 (mmxunpackmode): New mode attribute.
6709 (vec_unpacks_lo_<mmxunpackmode:mode>): New expander.
6710 (vec_unpacks_hi_<mmxunpackmode:mode>): Ditto.
6711 (vec_unpacku_lo_<mmxunpackmode:mode>): Ditto.
6712 (vec_unpacku_hi_<mmxunpackmode:mode>): Ditto.
6713 * config/i386/i386.md (extsuffix): Move from ...
6714 * config/i386/sse.md: ... here.
6716 2021-06-24 Eric Botcazou <ebotcazou@adacore.com>
6718 * dwarf2out.c (dwarf2out_assembly_start): Emit .file 0 marker here..
6719 (dwarf2out_finish): ...instead of here.
6721 2021-06-24 Eric Botcazou <ebotcazou@adacore.com>
6723 * configure.ac (--gdwarf-5 option): Use objdump instead of readelf.
6724 (working --gdwarf-4/--gdwarf-5 for all sources): Likewise.
6725 (--gdwarf-4 not refusing generated .debug_line): Adjust for Windows.
6726 * configure: Regenerate.
6728 2021-06-24 Richard Biener <rguenther@suse.de>
6730 * config/i386/sse.md (vec_addsubv4df3, vec_addsubv2df3,
6731 vec_addsubv8sf3, vec_addsubv4sf3): Merge into ...
6732 (vec_addsub<mode>3): ... using a new addsub_cst mode attribute.
6734 2021-06-24 Richard Biener <rguenther@suse.de>
6736 * config/i386/sse.md (avx_addsubv4df3): Rename to
6738 (avx_addsubv8sf3): Rename to vec_addsubv8sf3.
6739 (sse3_addsubv2df3): Rename to vec_addsubv2df3.
6740 (sse3_addsubv4sf3): Rename to vec_addsubv4sf3.
6741 * config/i386/i386-builtin.def: Adjust.
6742 * internal-fn.def (VEC_ADDSUB): New internal optab fn.
6743 * optabs.def (vec_addsub_optab): New optab.
6744 * tree-vect-slp-patterns.c (class addsub_pattern): New.
6745 (slp_patterns): Add addsub_pattern.
6746 * tree-vect-slp.c (vect_optimize_slp): Disable propagation
6747 across CFN_VEC_ADDSUB.
6748 * tree-vectorizer.h (vect_pattern::vect_pattern): Make
6750 * doc/md.texi (vec_addsub<mode>3): Document.
6752 2021-06-24 Jakub Jelinek <jakub@redhat.com>
6754 PR middle-end/101170
6755 * df-scan.c (df_ref_record): For paradoxical big-endian SUBREGs
6756 where regno + subreg_regno_offset wraps around use 0 as starting
6759 2021-06-24 Jakub Jelinek <jakub@redhat.com>
6761 PR middle-end/101172
6762 * stor-layout.c (finish_bitfield_representative): If nextf has
6763 error_mark_node type, set repr type to error_mark_node too.
6765 2021-06-24 Ilya Leoshkevich <iii@linux.ibm.com>
6767 * config/s390/s390.c (s390_function_profiler): Ignore labelno
6769 * config/s390/s390.h (NO_PROFILE_COUNTERS): Define.
6771 2021-06-24 Richard Biener <rguenther@suse.de>
6773 * tree-vect-slp.c (vect_optimize_slp): Do not propagate
6774 across operations that have different semantics on different
6777 2021-06-24 Jakub Jelinek <jakub@redhat.com>
6779 * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): Document meaning for OpenMP.
6780 * gimplify.c (gimplify_scan_omp_clauses): For OpenMP map clauses
6781 with OMP_CLAUSE_MAP_IN_REDUCTION flag partially defer gimplification
6782 of non-decl OMP_CLAUSE_DECL. For OMP_CLAUSE_IN_REDUCTION on
6783 OMP_TARGET user outer_ctx instead of ctx for placeholders and
6784 initializer/combiner gimplification.
6785 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_MAP_IN_REDUCTION
6786 on target constructs.
6787 (lower_rec_input_clauses): Likewise.
6788 (lower_omp_target): Likewise.
6789 * omp-expand.c (expand_omp_target): Temporarily ignore nowait clause
6790 on target if in_reduction is present.
6792 2021-06-24 Kewen Lin <linkw@linux.ibm.com>
6794 * tree-predcom.c (class pcom_worker): New class.
6795 (release_chain): Renamed to...
6796 (pcom_worker::release_chain): ...this.
6797 (release_chains): Renamed to...
6798 (pcom_worker::release_chains): ...this.
6799 (aff_combination_dr_offset): Renamed to...
6800 (pcom_worker::aff_combination_dr_offset): ...this.
6801 (determine_offset): Renamed to...
6802 (pcom_worker::determine_offset): ...this.
6803 (class comp_ptrs): New class.
6804 (split_data_refs_to_components): Renamed to...
6805 (pcom_worker::split_data_refs_to_components): ...this,
6806 and update with class comp_ptrs.
6807 (suitable_component_p): Renamed to...
6808 (pcom_worker::suitable_component_p): ...this.
6809 (filter_suitable_components): Renamed to...
6810 (pcom_worker::filter_suitable_components): ...this.
6811 (valid_initializer_p): Renamed to...
6812 (pcom_worker::valid_initializer_p): ...this.
6813 (find_looparound_phi): Renamed to...
6814 (pcom_worker::find_looparound_phi): ...this.
6815 (add_looparound_copies): Renamed to...
6816 (pcom_worker::add_looparound_copies): ...this.
6817 (determine_roots_comp): Renamed to...
6818 (pcom_worker::determine_roots_comp): ...this.
6819 (determine_roots): Renamed to...
6820 (pcom_worker::determine_roots): ...this.
6821 (single_nonlooparound_use): Renamed to...
6822 (pcom_worker::single_nonlooparound_use): ...this.
6823 (remove_stmt): Renamed to...
6824 (pcom_worker::remove_stmt): ...this.
6825 (execute_pred_commoning_chain): Renamed to...
6826 (pcom_worker::execute_pred_commoning_chain): ...this.
6827 (execute_pred_commoning): Renamed to...
6828 (pcom_worker::execute_pred_commoning): ...this.
6829 (struct epcc_data): New member worker.
6830 (execute_pred_commoning_cbck): Call execute_pred_commoning
6831 with pcom_worker pointer.
6832 (find_use_stmt): Renamed to...
6833 (pcom_worker::find_use_stmt): ...this.
6834 (find_associative_operation_root): Renamed to...
6835 (pcom_worker::find_associative_operation_root): ...this.
6836 (find_common_use_stmt): Renamed to...
6837 (pcom_worker::find_common_use_stmt): ...this.
6838 (combinable_refs_p): Renamed to...
6839 (pcom_worker::combinable_refs_p): ...this.
6840 (reassociate_to_the_same_stmt): Renamed to...
6841 (pcom_worker::reassociate_to_the_same_stmt): ...this.
6842 (stmt_combining_refs): Renamed to...
6843 (pcom_worker::stmt_combining_refs): ...this.
6844 (combine_chains): Renamed to...
6845 (pcom_worker::combine_chains): ...this.
6846 (try_combine_chains): Renamed to...
6847 (pcom_worker::try_combine_chains): ...this.
6848 (prepare_initializers_chain): Renamed to...
6849 (pcom_worker::prepare_initializers_chain): ...this.
6850 (prepare_initializers): Renamed to...
6851 (pcom_worker::prepare_initializers): ...this.
6852 (prepare_finalizers_chain): Renamed to...
6853 (pcom_worker::prepare_finalizers_chain): ...this.
6854 (prepare_finalizers): Renamed to...
6855 (pcom_worker::prepare_finalizers): ...this.
6856 (tree_predictive_commoning_loop): Renamed to...
6857 (pcom_worker::tree_predictive_commoning_loop): ...this, adjust
6858 some calls and remove some cleanup code.
6859 (tree_predictive_commoning): Adjusted to use pcom_worker instance.
6860 (static variable looparound_phis): Remove.
6861 (static variable name_expansions): Remove.
6863 2021-06-24 Richard Biener <rguenther@suse.de>
6865 * tree-vect-slp.c (slpg_vertex): New struct.
6866 (vect_slp_build_vertices): Adjust.
6867 (vect_optimize_slp): Likewise. Maintain an outgoing permute
6868 and a materialized one.
6870 2021-06-24 Richard Biener <rguenther@suse.de>
6872 PR tree-optimization/101105
6873 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
6874 Only ignore steps when they are equal or scalar order is preserved.
6876 2021-06-24 liuhongt <hongtao.liu@intel.com>
6879 * config/i386/i386-expand.c (ix86_expand_vec_interleave):
6880 Adjust comments for ix86_expand_vecop_qihi2.
6881 (ix86_expand_vecmul_qihi): Renamed to ..
6882 (ix86_expand_vecop_qihi2): Adjust function prototype to
6883 support shift operation, add static to definition.
6884 (ix86_expand_vec_shift_qihi_constant): Add static to definition.
6885 (ix86_expand_vecop_qihi): Call ix86_expand_vecop_qihi2 and
6886 ix86_expand_vec_shift_qihi_constant.
6887 * config/i386/i386-protos.h (ix86_expand_vecmul_qihi): Deleted.
6888 (ix86_expand_vec_shift_qihi_constant): Deleted.
6889 * config/i386/sse.md (VI12_256_512_AVX512VL): New mode
6891 (mulv8qi3): Call ix86_expand_vecop_qihi directly, add
6892 condition TARGET_64BIT.
6893 (mul<mode>3): Ditto.
6894 (<insn><mode>3): Ditto.
6895 (vlshr<mode>3): Extend to support avx512 vlshr.
6896 (v<insn><mode>3): New expander for
6898 (v<insn>v8qi3): Ditto.
6899 (vashrv8hi3<mask_name>): Renamed to ..
6900 (vashr<mode>3): And extend to support V16QImode for avx512.
6901 (vashrv16qi3): Deleted.
6902 (vashrv2di3<mask_name>): Extend expander to support avx512
6905 2021-06-23 Dimitar Dimitrov <dimitar@dinux.eu>
6907 * doc/lto.texi (Design Overview): Update that slim objects are
6910 2021-06-23 Aaron Sawdey <acsawdey@linux.ibm.com>
6912 * config/rs6000/rs6000-cpus.def: Take OPTION_MASK_PCREL_OPT out
6913 of OTHER_POWER10_MASKS so it will not be enabled by default.
6915 2021-06-23 Richard Biener <rguenther@suse.de>
6916 Martin Jambor <mjambor@suse.cz>
6918 * tree-inline.c (setup_one_parameter): Set TREE_READONLY of the
6919 param replacement unconditionally. Adjust comment.
6921 2021-06-23 Andrew MacLeod <amacleod@redhat.com>
6923 * Makefile.in (OBJS): Add gimple-range-fold.o
6924 * gimple-range-fold.cc: New.
6925 * gimple-range-fold.h: New.
6926 * gimple-range-gori.cc (gimple_range_calc_op1): Move to here.
6927 (gimple_range_calc_op2): Ditto.
6928 * gimple-range-gori.h: Move prototypes to here.
6929 * gimple-range.cc: Adjust include files.
6930 (fur_source:fur_source): Relocate to gimple-range-fold.cc.
6931 (fur_source::get_operand): Ditto.
6932 (fur_source::get_phi_operand): Ditto.
6933 (fur_source::query_relation): Ditto.
6934 (fur_source::register_relation): Ditto.
6935 (class fur_edge): Ditto.
6936 (fur_edge::fur_edge): Ditto.
6937 (fur_edge::get_operand): Ditto.
6938 (fur_edge::get_phi_operand): Ditto.
6939 (fur_stmt::fur_stmt): Ditto.
6940 (fur_stmt::get_operand): Ditto.
6941 (fur_stmt::get_phi_operand): Ditto.
6942 (fur_stmt::query_relation): Ditto.
6943 (class fur_depend): Relocate to gimple-range-fold.h.
6944 (fur_depend::fur_depend): Relocate to gimple-range-fold.cc.
6945 (fur_depend::register_relation): Ditto.
6946 (fur_depend::register_relation): Ditto.
6947 (class fur_list): Ditto.
6948 (fur_list::fur_list): Ditto.
6949 (fur_list::get_operand): Ditto.
6950 (fur_list::get_phi_operand): Ditto.
6951 (fold_range): Ditto.
6952 (adjust_pointer_diff_expr): Ditto.
6953 (gimple_range_adjustment): Ditto.
6954 (gimple_range_base_of_assignment): Ditto.
6955 (gimple_range_operand1): Ditto.
6956 (gimple_range_operand2): Ditto.
6957 (gimple_range_calc_op1): Relocate to gimple-range-gori.cc.
6958 (gimple_range_calc_op2): Ditto.
6959 (fold_using_range::fold_stmt): Relocate to gimple-range-fold.cc.
6960 (fold_using_range::range_of_range_op): Ditto.
6961 (fold_using_range::range_of_address): Ditto.
6962 (fold_using_range::range_of_phi): Ditto.
6963 (fold_using_range::range_of_call): Ditto.
6964 (fold_using_range::range_of_builtin_ubsan_call): Ditto.
6965 (fold_using_range::range_of_builtin_call): Ditto.
6966 (fold_using_range::range_of_cond_expr): Ditto.
6967 (fold_using_range::range_of_ssa_name_with_loop_info): Ditto.
6968 (fold_using_range::relation_fold_and_or): Ditto.
6969 (fold_using_range::postfold_gcond_edges): Ditto.
6970 * gimple-range.h: Add gimple-range-fold.h to include files. Change
6971 GIMPLE_RANGE_STMT_H to GIMPLE_RANGE_H.
6972 (gimple_range_handler): Relocate to gimple-range-fold.h.
6973 (gimple_range_ssa_p): Ditto.
6974 (range_compatible_p): Ditto.
6975 (class fur_source): Ditto.
6976 (class fur_stmt): Ditto.
6977 (class fold_using_range): Ditto.
6978 (gimple_range_calc_op1): Relocate to gimple-range-gori.h
6979 (gimple_range_calc_op2): Ditto.
6981 2021-06-23 Andrew MacLeod <amacleod@redhat.com>
6983 PR tree-optimization/101148
6984 PR tree-optimization/101014
6985 * gimple-range-cache.cc (ranger_cache::ranger_cache): Adjust.
6986 (ranger_cache::~ranger_cache): Adjust.
6987 (ranger_cache::block_range): Check if propagation disallowed.
6988 (ranger_cache::propagate_cache): Disallow propagation if new value
6989 can't be stored properly.
6990 * gimple-range-cache.h (ranger_cache::m_propfail): New member.
6992 2021-06-23 Andrew MacLeod <amacleod@redhat.com>
6994 * gimple-range-cache.cc (class ssa_block_ranges): Adjust prototype.
6995 (sbr_vector::set_bb_range): Return true.
6996 (class sbr_sparse_bitmap): Adjust.
6997 (sbr_sparse_bitmap::set_bb_range): Return value.
6998 (block_range_cache::set_bb_range): Return value.
6999 (ranger_cache::propagate_cache): Use return value to print msg.
7000 * gimple-range-cache.h (class block_range_cache): Adjust.
7002 2021-06-23 Andrew MacLeod <amacleod@redhat.com>
7004 * gimple-range.cc (dump_bb): Use range_on_edge from the cache.
7006 2021-06-23 Jeff Law <jeffreyalaw@gmail.com>
7008 * config/h8300/logical.md (<code><mode>3<ccnz>): Use <cczn>
7009 so this pattern can be used for test/compare removal. Pass
7010 current insn to compute_logical_op_length and output_logical_op.
7011 * config/h8300/h8300.c (compute_logical_op_cc): Remove.
7012 (h8300_and_costs): Add argument to compute_logical_op_length.
7013 (output_logical_op): Add new argument. Use it to determine if the
7014 condition codes are used and adjust the output accordingly.
7015 (compute_logical_op_length): Add new argument and update length
7016 computations when condition codes are used.
7017 * config/h8300/h8300-protos.h (compute_logical_op_length): Update
7019 (output_logical_op): Likewise.
7021 2021-06-23 Uroš Bizjak <ubizjak@gmail.com>
7024 * config/i386/i386-expand.c (expand_vec_perm_pshufb):
7025 Handle 64bit modes for TARGET_XOP. Use indirect gen_* functions.
7026 * config/i386/mmx.md (mmx_ppermv64): New insn pattern.
7027 * config/i386/i386.md (unspec): Move UNSPEC_XOP_PERMUTE from ...
7028 * config/i386/sse.md (unspec): ... here.
7030 2021-06-23 Martin Liska <mliska@suse.cz>
7033 * optc-save-gen.awk: Put back arm_fp16_format to
7036 2021-06-23 Uroš Bizjak <ubizjak@gmail.com>
7039 * config/i386/i386.md (bsr_rex64): Add zero-flag setting RTX.
7042 (clz<mode>2): Update RTX pattern for additions.
7044 2021-06-23 Jakub Jelinek <jakub@redhat.com>
7046 PR middle-end/101167
7047 * omp-low.c (lower_omp_regimplify_p): Regimplify also PARM_DECLs
7048 and RESULT_DECLs that have DECL_HAS_VALUE_EXPR_P set.
7050 2021-06-22 Sergei Trofimovich <siarheit@google.com>
7052 * doc/rtl.texi: drop unbalanced parenthesis.
7054 2021-06-22 Richard Biener <rguenther@suse.de>
7056 PR middle-end/101156
7057 * gimplify.c (gimplify_expr): Remove premature incorrect
7060 2021-06-22 Jakub Jelinek <jakub@redhat.com>
7062 PR tree-optimization/101159
7063 * tree-vect-patterns.c (vect_recog_popcount_pattern): Fix some
7066 2021-06-22 Jakub Jelinek <jakub@redhat.com>
7068 PR middle-end/101160
7069 * function.c (assign_parms): For decl_result with TYPE_EMPTY_P type
7070 clear crtl->return_rtx instead of keeping it referencing a pseudo.
7072 2021-06-22 Jakub Jelinek <jakub@redhat.com>
7073 Andrew Pinski <apinski@marvell.com>
7075 PR tree-optimization/101162
7076 * fold-const.c (range_check_type): Handle OFFSET_TYPE like pointer
7079 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
7081 * range-op.cc (range_relational_tests): New.
7082 (range_op_tests): Call range_relational_tests.
7084 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
7086 * range-op.cc (operator_cast::lhs_op1_relation): New.
7087 (operator_identity::lhs_op1_relation): Mew.
7089 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
7091 * range-op.cc (operator_minus::op1_op2_relation_effect): New.
7093 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
7095 * range-op.cc (operator_plus::lhs_op1_relation): New.
7096 (operator_plus::lhs_op2_relation): New.
7098 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
7100 * gimple-range-cache.cc (ranger_cache::ranger_cache): Create a
7101 relation_oracle if dominators exist.
7102 (ranger_cache::~ranger_cache): Dispose of oracle.
7103 (ranger_cache::dump_bb): Dump oracle.
7104 * gimple-range.cc (fur_source::fur_source): New.
7105 (fur_source::get_operand): Use mmeber query.
7106 (fur_source::get_phi_operand): Use member_query.
7107 (fur_source::query_relation): New.
7108 (fur_source::register_dependency): Delete.
7109 (fur_source::register_relation): New.
7110 (fur_edge::fur_edge): Adjust.
7111 (fur_edge::get_phi_operand): Fix comment.
7112 (fur_edge::query): Delete.
7113 (fur_stmt::fur_stmt): Adjust.
7114 (fur_stmt::query): Delete.
7115 (fur_depend::fur_depend): Adjust.
7116 (fur_depend::register_relation): New.
7117 (fur_depend::register_relation): New.
7118 (fur_list::fur_list): Adjust.
7119 (fur_list::get_operand): Use member query.
7120 (fold_using_range::range_of_range_op): Process and query relations.
7121 (fold_using_range::range_of_address): Adjust dependency call.
7122 (fold_using_range::range_of_phi): Ditto.
7123 (gimple_ranger::gimple_ranger): New. Use ranger_ache oracle.
7124 (fold_using_range::relation_fold_and_or): New.
7125 (fold_using_range::postfold_gcond_edges): New.
7126 * gimple-range.h (class gimple_ranger): Adjust.
7127 (class fur_source): Adjust members.
7128 (class fur_stmt): Ditto.
7129 (class fold_using_range): Ditto.
7131 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
7133 * range-op.cc (range_operator::wi_fold): Apply relation effect.
7134 (range_operator::fold_range): Adjust and apply relation effect.
7135 (*::fold_range): Add relation parameters.
7136 (*::op1_range): Ditto.
7137 (*::op2_range): Ditto.
7138 (range_operator::lhs_op1_relation): New.
7139 (range_operator::lhs_op2_relation): New.
7140 (range_operator::op1_op2_relation): New.
7141 (range_operator::op1_op2_relation_effect): New.
7142 (relop_early_resolve): New.
7143 (operator_equal::op1_op2_relation): New.
7144 (operator_equal::fold_range): Call relop_early_resolve.
7145 (operator_not_equal::op1_op2_relation): New.
7146 (operator_not_equal::fold_range): Call relop_early_resolve.
7147 (operator_lt::op1_op2_relation): New.
7148 (operator_lt::fold_range): Call relop_early_resolve.
7149 (operator_le::op1_op2_relation): New.
7150 (operator_le::fold_range): Call relop_early_resolve.
7151 (operator_gt::op1_op2_relation): New.
7152 (operator_gt::fold_range): Call relop_early_resolve.
7153 (operator_ge::op1_op2_relation): New.
7154 (operator_ge::fold_range): Call relop_early_resolve.
7155 * range-op.h (class range_operator): Adjust parameters and methods.
7157 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
7159 * Makefile.in (OBJS): Add value-relation.o.
7160 * gimple-range.h: Adjust include files.
7161 * tree-data-ref.c: Adjust include file order.
7162 * value-query.cc (range_query::get_value_range): Default to no oracle.
7163 (range_query::query_relation): New.
7164 (range_query::query_relation): New.
7165 * value-query.h (class range_query): Adjust.
7166 * value-relation.cc: New.
7167 * value-relation.h: New.
7169 2021-06-22 Richard Biener <rguenther@suse.de>
7171 PR tree-optimization/101151
7172 * tree-ssa-sink.c (statement_sink_location): Expand irreducible
7175 2021-06-22 Jojo R <rjiejie@linux.alibaba.com>
7177 * config/riscv/riscv.c (thead_c906_tune_info): New.
7178 (riscv_tune_info_table): Use new tune.
7180 2021-06-22 Richard Biener <rguenther@suse.de>
7182 PR tree-optimization/101158
7183 * tree-vect-slp.c (vect_build_slp_tree_1): Move same operand
7184 checking after checking for matching operation.
7186 2021-06-22 Richard Biener <rguenther@suse.de>
7188 PR tree-optimization/101159
7189 * tree-vect-patterns.c (vect_recog_popcount_pattern): Add
7190 missing NULL vectype check.
7192 2021-06-22 Richard Biener <rguenther@suse.de>
7194 PR tree-optimization/101154
7195 * tree-vect-slp.c (vect_build_slp_tree_2): Fix out-of-bound access.
7197 2021-06-22 Jakub Jelinek <jakub@redhat.com>
7200 * config/i386/i386-protos.h (ix86_last_zero_store_uid): Declare.
7201 * config/i386/i386-expand.c (ix86_last_zero_store_uid): New variable.
7202 * config/i386/i386.c (ix86_expand_prologue): Clear it.
7203 * config/i386/i386.md (peephole2s for 1/2/4 stores of const0_rtx):
7204 Remove "" from match_operand. Emit new insns using emit_move_insn and
7205 set ix86_last_zero_store_uid to INSN_UID of the last store.
7206 Add peephole2s for 1/2/4 stores of const0_rtx following previous
7209 2021-06-22 Martin Liska <mliska@suse.cz>
7211 * auto-profile.c (AUTO_PROFILE_VERSION): Bump as string format
7214 2021-06-22 Martin Liska <mliska@suse.cz>
7216 * gcov-io.h: Remove padding entries.
7218 2021-06-22 liuhongt <hongtao.liu@intel.com>
7220 PR tree-optimization/97770
7221 * tree-vect-patterns.c (vect_recog_popcount_pattern):
7223 (vect_recog_func vect_vect_recog_func_ptrs): Add new pattern.
7225 2021-06-22 liuhongt <hongtao.liu@intel.com>
7228 * config/i386/i386-builtin.def (BDESC): Adjust builtin name.
7229 * config/i386/sse.md (<avx512>_expand<mode>_mask): Rename to ..
7230 (expand<mode>_mask): this ..
7231 (*expand<mode>_mask): New pre_reload splitter to transform
7232 v{,p}expand* to vmov* when mask is zero, all ones, or has all
7233 ones in it's lower part, otherwise still generate
7236 2021-06-22 liuhongt <hongtao.liu@intel.com>
7239 * config/i386/i386-expand.c
7240 (ix86_expand_special_args_builtin): Keep constm1_operand only
7241 if it satisfies insn's operand predicate.
7243 2021-06-21 Jason Merrill <jason@redhat.com>
7246 * df-scan.c (df_ref_record): Check that regno < endregno.
7247 * function.c (assign_parms, expand_function_end): Do nothing with a
7248 TYPE_EMPTY_P result.
7250 2021-06-21 Richard Biener <rguenther@suse.de>
7252 PR tree-optimization/101120
7253 * tree-vect-data-refs.c (bump_vector_ptr): Fold the
7255 * tree-vect-slp.c (vect_transform_slp_perm_load): Add
7256 DR chain DCE capability.
7257 * tree-vectorizer.h (vect_transform_slp_perm_load): Adjust.
7258 * tree-vect-stmts.c (vectorizable_load): Remove unused
7259 loads in the DR chain for SLP.
7261 2021-06-21 Jakub Jelinek <jakub@redhat.com>
7263 PR inline-asm/100785
7264 * gimplify.c (gimplify_asm_expr): Don't diagnose errors if
7265 output or input operands were already error_mark_node.
7266 * cfgexpand.c (expand_asm_stmt): If errors are emitted,
7267 remove all inputs, outputs and clobbers from the asm and
7270 2021-06-21 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
7272 * config/arm/arm_neon.h (vceq_s8): Replace builtin with __a == __b.
7273 (vceq_s16): Likewise.
7274 (vceq_s32): Likewise.
7275 (vceq_u8): Likewise.
7276 (vceq_u16): Likewise.
7277 (vceq_u32): Likewise.
7278 (vceq_p8): Likewise.
7279 (vceqq_s8): Likewise.
7280 (vceqq_s16): Likewise.
7281 (vceqq_s32): Likewise.
7282 (vceqq_u8): Likewise.
7283 (vceqq_u16): Likewise.
7284 (vceqq_u32): Likewise.
7285 (vceqq_p8): Likewise.
7286 (vceq_f32): Gate __a == __b on __FAST_MATH__.
7287 (vceqq_f32): Likewise.
7288 (vceq_f16): Likewise.
7289 (vceqq_f16): Likewise.
7291 2021-06-21 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
7294 * config/arm/iterators.md (NEON_VACMP): Remove.
7295 * config/arm/neon.md (neon_vca<cmp_op><mode>): Use GLTE instead of GTGE
7297 (neon_vca<cmp_op><mode>_insn): Likewise.
7298 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Use NEON_VAGLTE instead of
7301 2021-06-21 Richard Biener <rguenther@suse.de>
7303 PR tree-optimization/101121
7304 * tree-vect-slp.c (vect_build_slp_tree_2): To not fail fatally
7305 when we just lack a stmt with the desired op when doing permutation.
7306 (vect_build_slp_tree): When caching a failed SLP build attempt
7307 assert that at least one lane is marked as not matching.
7309 2021-06-21 liuhongt <hongtao.liu@intel.com>
7312 * config/i386/i386.md: (*anddi_1): Disparage slightly the mask
7313 register alternative.
7314 (*and<mode>_1): Ditto.
7316 (*andn<mode>_1): Ditto.
7317 (*<code><mode>_1): Ditto.
7318 (*<code>qi_1): Ditto.
7319 (*one_cmpl<mode>2_1): Ditto.
7320 (*one_cmplsi2_1_zext): Ditto.
7321 (*one_cmplqi2_1): Ditto.
7322 * config/i386/i386.c (x86_order_regs_for_local_alloc): Change
7323 the order of mask registers to be before general registers.
7325 2021-06-21 Roger Sayle <roger@nextmovesoftware.com>
7328 * config/i386/i386.md: New define_peephole2s to shrink writing
7329 1, 2 or 4 consecutive zeros to memory when optimizing for size.
7331 2021-06-18 Jeff Law <jeffreyalaw@gmail.com>
7333 * config/h8300/h8300.c (h8300_select_cc_mode): Handle SYMBOL_REF.
7334 * config/h8300/logical.md (<code><mode>3 logcial expander): Generate
7335 more efficient code when the source can be trivially simplified.
7337 2021-06-18 Andrew MacLeod <amacleod@redhat.com>
7339 * gimple-range-cache.cc (ranger_cache::range_of_def): Calculate
7340 a range if global is not available.
7341 (ranger_cache::entry_range): Fallback to range_of_def.
7342 * gimple-range-cache.h (range_of_def): Adjust prototype.
7344 2021-06-18 Andrew MacLeod <amacleod@redhat.com>
7346 PR tree-optimization/101014
7347 * gimple-range-cache.cc (ranger_cache::ranger_cache): Remove poor
7349 (ranger_cache::~ranger_cache): Ditto.
7350 (ranger_cache::enable_new_values): Delete.
7351 (ranger_cache::push_poor_value): Delete.
7352 (ranger_cache::range_of_def): Remove poor value processing.
7353 (ranger_cache::entry_range): Ditto.
7354 (ranger_cache::fill_block_cache): Ditto.
7355 * gimple-range-cache.h (class ranger_cache): Remove poor value members.
7356 * gimple-range.cc (gimple_ranger::range_of_expr): Remove call.
7357 * gimple-range.h (class gimple_ranger): Adjust.
7359 2021-06-18 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
7362 * common/config/arm/arm-common.c (arm_canon_arch_option_1): New function
7363 derived from arm_canon_arch.
7364 (arm_canon_arch_option): Call it.
7365 (arm_canon_arch_multilib_option): New function.
7366 * config/arm/arm-cpus.in (IGNORE_FOR_MULTILIB): New fgroup.
7367 * config/arm/arm.h (arm_canon_arch_multilib_option): New prototype.
7368 (CANON_ARCH_MULTILIB_SPEC_FUNCTION): New macro.
7369 (MULTILIB_ARCH_CANONICAL_SPECS): New macro.
7370 (DRIVER_SELF_SPECS): Add MULTILIB_ARCH_CANONICAL_SPECS.
7371 * config/arm/arm.opt (mlibarch): New option.
7372 * config/arm/t-rmprofile (MULTILIB_MATCHES): For armv8*-m, replace use
7373 of march on RHS with mlibarch.
7375 2021-06-18 Marcel Vollweiler <marcel@codesourcery.com>
7377 * config.in: Regenerate.
7378 * config/gcn/gcn.c (print_operand_address): Fix for global_load assembler
7380 * configure: Regenerate.
7381 * configure.ac: Fix for global_load assembler functions.
7383 2021-06-18 Richard Biener <rguenther@suse.de>
7385 PR tree-optimization/101112
7386 * tree-vect-slp.c (vect_slp_linearize_chain): Fix condition
7387 to lookup a pattern stmt def.
7389 2021-06-18 Jakub Jelinek <jakub@redhat.com>
7391 PR middle-end/101062
7392 * stor-layout.c (finish_bitfield_layout): Don't add bitfield
7393 representatives in QUAL_UNION_TYPE.
7395 2021-06-18 Andrew Pinski <apinski@marvell.com>
7397 * tree-ssa-phiopt.c (replace_phi_edge_with_variable):
7398 Add counting of how many times it is done.
7399 (factor_out_conditional_conversion): Likewise.
7400 (match_simplify_replacement): Likewise.
7401 (value_replacement): Likewise.
7402 (spaceship_replacement): Likewise.
7403 (cond_store_replacement): Likewise.
7404 (cond_if_else_store_replacement_1): Likewise.
7405 (hoist_adjacent_loads): Likewise.
7407 2021-06-18 Andrew Pinski <apinski@marvell.com>
7409 * tree-cfg.c (verify_gimple_assign_unary): Reject point and offset
7410 types on NEGATE_EXPR, ABS_EXPR, BIT_NOT_EXPR, PAREN_EXPR and CNONJ_EXPR.
7411 (verify_gimple_assign_binary): Reject point and offset types on
7412 MULT_EXPR, MULT_HIGHPART_EXPR, TRUNC_DIV_EXPR, CEIL_DIV_EXPR,
7413 FLOOR_DIV_EXPR, ROUND_DIV_EXPR, TRUNC_MOD_EXPR, CEIL_MOD_EXPR,
7414 FLOOR_MOD_EXPR, ROUND_MOD_EXPR, RDIV_EXPR, and EXACT_DIV_EXPR.
7416 2021-06-18 Michael Meissner <meissner@linux.ibm.com>
7418 * config/rs6000/rs6000.c (rs6000_emit_minmax): Add support for ISA
7419 3.1 IEEE 128-bit floating point xsmaxcqp/xsmincqp instructions.
7420 * config/rs6000/rs6000.md (s<minmax><mode>3, IEEE128 iterator):
7423 2021-06-17 Aaron Sawdey <acsawdey@linux.ibm.com>
7425 * config/rs6000/genfusion.pl (gen_logical_addsubf): Add
7426 earlyclobber to alts 0/1.
7427 (gen_addadd): Add earlyclobber to alts 0/1.
7428 * config/rs6000/fusion.md: Regenerate file.
7430 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
7432 * cfgloopanal.c (get_loop_hot_path): Make path an auto_vec.
7434 2021-06-17 Andrew MacLeod <amacleod@redhat.com>
7436 * gimple-range-cache.cc: Comment cleanups.
7437 * gimple-range-gori.cc: Comment cleanups.
7438 * gimple-range.cc: Comment/spacing cleanups
7439 * value-range.h: Comment cleanups.
7441 2021-06-17 H.J. Lu <hjl.tools@gmail.com>
7444 * calls.c (expand_call): Replace PUSH_ARGS with
7445 targetm.calls.push_argument (0).
7446 (emit_library_call_value_1): Likewise.
7447 * defaults.h (PUSH_ARGS): Removed.
7448 (PUSH_ARGS_REVERSED): Replace PUSH_ARGS with
7449 targetm.calls.push_argument (0).
7450 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
7451 (emit_push_insn): Pass the number bytes to push to
7452 targetm.calls.push_argument and pass 0 if ARGS_ADDR is 0.
7453 * hooks.c (hook_bool_uint_true): New.
7454 * hooks.h (hook_bool_uint_true): Likewise.
7455 * rtlanal.c (nonzero_bits1): Replace PUSH_ARGS with
7456 targetm.calls.push_argument (0).
7457 * target.def (push_argument): Add a targetm.calls hook.
7458 * targhooks.c (default_push_argument): New.
7459 * targhooks.h (default_push_argument): Likewise.
7460 * config/bpf/bpf.h (PUSH_ARGS): Removed.
7461 * config/cr16/cr16.c (TARGET_PUSH_ARGUMENT): New.
7462 * config/cr16/cr16.h (PUSH_ARGS): Removed.
7463 * config/i386/i386.c (ix86_push_argument): New.
7464 (TARGET_PUSH_ARGUMENT): Likewise.
7465 * config/i386/i386.h (PUSH_ARGS): Removed.
7466 * config/m32c/m32c.c (TARGET_PUSH_ARGUMENT): New.
7467 * config/m32c/m32c.h (PUSH_ARGS): Removed.
7468 * config/nios2/nios2.h (PUSH_ARGS): Likewise.
7469 * config/pru/pru.h (PUSH_ARGS): Likewise.
7470 * doc/tm.texi.in: Remove PUSH_ARGS documentation. Add
7471 TARGET_PUSH_ARGUMENT hook.
7472 * doc/tm.texi: Regenerated.
7474 2021-06-17 Uroš Bizjak <ubizjak@gmail.com>
7477 * config/i386/i386-expand.c (expand_vector_set_var):
7478 Handle V2FS mode remapping. Pass TARGET_MMX_WITH_SSE to
7479 ix86_expand_vector_init_duplicate.
7480 (ix86_expand_vector_init_duplicate): Emit insv_1 for
7481 QImode for !TARGET_PARTIAL_REG_STALL.
7482 * config/i386/predicates.md (vec_setm_mmx_operand): New predicate.
7483 * config/i386/mmx.md (vec_setv2sf): Use vec_setm_mmx_operand
7484 as operand 2 predicate. Call ix86_expand_vector_set_var
7485 for non-constant index operand.
7486 (vec_setv2si): Ditto.
7487 (vec_setv4hi): Ditto.
7488 (vec_setv8qi): ditto.
7490 2021-06-17 Aldy Hernandez <aldyh@redhat.com>
7492 PR tree-optimization/100790
7493 * gimple-range.cc (range_of_builtin_call): Cleanup clz and ctz
7496 2021-06-17 Martin Liska <mliska@suse.cz>
7498 * doc/invoke.texi: Use consistently -O1 instead of -O.
7500 2021-06-17 Martin Liska <mliska@suse.cz>
7502 * gcov-io.h: Update documentation entry about string format.
7504 2021-06-17 Marius Hillenbrand <mhillen@linux.ibm.com>
7507 * config/s390/vecintrin.h (vec_doublee): Fix to use
7508 __builtin_s390_vflls.
7509 (vec_floate): Fix to use __builtin_s390_vflrd.
7511 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
7513 * dominance.c (get_dominated_to_depth): Return auto_vec<basic_block>.
7514 * dominance.h (get_dominated_to_depth): Likewise.
7515 (get_all_dominated_blocks): Likewise.
7516 * cfgcleanup.c (delete_unreachable_blocks): Adjust.
7517 * gcse.c (hoist_code): Likewise.
7518 * tree-cfg.c (remove_edge_and_dominated_blocks): Likewise.
7519 * tree-parloops.c (oacc_entry_exit_ok): Likewise.
7520 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
7521 * tree-ssa-phiprop.c (pass_phiprop::execute): Likewise.
7523 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
7525 * dominance.c (get_dominated_by_region): Return auto_vec<basic_block>.
7526 * dominance.h (get_dominated_by_region): Likewise.
7527 * tree-cfg.c (gimple_duplicate_sese_region): Adjust.
7528 (gimple_duplicate_sese_tail): Likewise.
7529 (move_sese_region_to_fn): Likewise.
7531 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
7533 * dominance.c (get_dominated_by): Return auto_vec<basic_block>.
7534 * dominance.h (get_dominated_by): Likewise.
7535 * auto-profile.c (afdo_find_equiv_class): Adjust.
7536 * cfgloopmanip.c (duplicate_loop_to_header_edge): Likewise.
7537 * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
7538 * tree-cfg.c (test_linear_chain): Likewise.
7539 (test_diamond): Likewise.
7541 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
7543 * cfgloop.h (get_loop_hot_path): Return auto_vec<basic_block>.
7544 * cfgloopanal.c (get_loop_hot_path): Likewise.
7545 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise.
7547 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
7549 * cgraph.c (cgraph_node::collect_callers): Return
7550 auto_vec<cgraph_edge *>.
7551 * cgraph.h (cgraph_node::collect_callers): Likewise.
7552 * ipa-cp.c (create_specialized_node): Adjust.
7553 (decide_about_value): Likewise.
7554 (decide_whether_version_node): Likewise.
7555 * ipa-sra.c (process_isra_node_results): Likewise.
7557 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
7559 * vec.h (vl_ptr>::using_auto_storage): Handle null m_vec.
7560 (auto_vec<T, 0>::auto_vec): Define move constructor, and delete copy
7562 (auto_vec<T, 0>::operator=): Define move assignment and delete copy
7565 2021-06-17 Aldy Hernandez <aldyh@redhat.com>
7567 * gimple-range.cc (debug_seed_ranger): New.
7569 (debug_ranger): New.
7571 2021-06-17 Richard Biener <rguenther@suse.de>
7573 PR tree-optimization/54400
7574 * tree-vectorizer.h (enum slp_instance_kind): Add
7575 slp_inst_kind_bb_reduc.
7576 (reduction_fn_for_scalar_code): Declare.
7577 * tree-vect-data-refs.c (vect_slp_analyze_instance_dependence):
7578 Check SLP_INSTANCE_KIND instead of looking at the
7580 (vect_slp_analyze_instance_alignment): Likewise.
7581 * tree-vect-loop.c (reduction_fn_for_scalar_code): Export.
7582 * tree-vect-slp.c (vect_slp_linearize_chain): Split out
7583 chain linearization from vect_build_slp_tree_2 and generalize
7584 for the use of BB reduction vectorization.
7585 (vect_build_slp_tree_2): Adjust accordingly.
7586 (vect_optimize_slp): Elide permutes at the root of BB reduction
7588 (vectorizable_bb_reduc_epilogue): New function.
7589 (vect_slp_prune_covered_roots): Likewise.
7590 (vect_slp_analyze_operations): Use them.
7591 (vect_slp_check_for_constructors): Recognize associatable
7592 chains for BB reduction vectorization.
7593 (vectorize_slp_instance_root_stmt): Generate code for the
7594 BB reduction epilogue.
7596 2021-06-17 Andrew MacLeod <amacleod@redhat.com>
7598 * gimple-range-gori.cc (gori_compute::has_edge_range_p): Check with
7600 (gori_compute::may_recompute_p): New.
7601 (gori_compute::outgoing_edge_range_p): Perform recomputations.
7602 * gimple-range-gori.h (class gori_compute): Add prototype.
7604 2021-06-17 Andrew MacLeod <amacleod@redhat.com>
7606 * gimple-range-cache.cc (ranger_cache::range_on_edge): Always return
7607 true when a range can be calculated.
7608 * gimple-range.cc (gimple_ranger::dump_bb): Check has_edge_range_p.
7610 2021-06-16 Martin Sebor <msebor@redhat.com>
7612 * doc/invoke.texi (-Wmismatched-dealloc, -Wmismatched-new-delete):
7613 Correct documented defaults.
7615 2021-06-16 Andrew MacLeod <amacleod@redhat.com>
7617 * gimple-range-cache.cc (ranger_cache::ranger_cache): Initialize
7618 m_new_value_p directly.
7620 2021-06-16 Uroš Bizjak <ubizjak@gmail.com>
7623 * config/i386/i386-expand.c (expand_vec_perm_2perm_pblendv):
7624 Handle 64bit modes for TARGET_SSE4_1.
7625 (expand_vec_perm_pshufb2): Handle 64bit modes for TARGET_SSSE3.
7626 (expand_vec_perm_even_odd_pack): Handle V4HI mode.
7627 (expand_vec_perm_even_odd_1) <case E_V4HImode>: Expand via
7628 expand_vec_perm_pshufb2 for TARGET_SSSE3 and via
7629 expand_vec_perm_even_odd_pack for TARGET_SSE4_1.
7630 * config/i386/mmx.md (mmx_packusdw): New insn pattern.
7632 2021-06-16 Jonathan Wright <jonathan.wright@arm.com>
7634 * config/aarch64/aarch64-simd.md (aarch64_<sur><addsub>hn<mode>):
7635 Change to an expander that emits the correct instruction
7636 depending on endianness.
7637 (aarch64_<sur><addsub>hn<mode>_insn_le): Define.
7638 (aarch64_<sur><addsub>hn<mode>_insn_be): Define.
7640 2021-06-16 Jonathan Wright <jonathan.wright@arm.com>
7642 * config/aarch64/aarch64-simd-builtins.def: Split generator
7643 for aarch64_<su>qmovn builtins into scalar and vector
7645 * config/aarch64/aarch64-simd.md (aarch64_<su>qmovn<mode>_insn_le):
7647 (aarch64_<su>qmovn<mode>_insn_be): Define.
7648 (aarch64_<su>qmovn<mode>): Split into scalar and vector
7649 variants. Change vector variant to an expander that emits the
7650 correct instruction depending on endianness.
7652 2021-06-16 Jonathan Wright <jonathan.wright@arm.com>
7654 * config/aarch64/aarch64-simd-builtins.def: Split generator
7655 for aarch64_sqmovun builtins into scalar and vector variants.
7656 * config/aarch64/aarch64-simd.md (aarch64_sqmovun<mode>):
7657 Split into scalar and vector variants. Change vector variant
7658 to an expander that emits the correct instruction depending
7660 (aarch64_sqmovun<mode>_insn_le): Define.
7661 (aarch64_sqmovun<mode>_insn_be): Define.
7663 2021-06-16 Jonathan Wright <jonathan.wright@arm.com>
7665 * config/aarch64/aarch64-simd.md (aarch64_xtn<mode>_insn_le):
7666 Define - modeling zero-high-half semantics.
7667 (aarch64_xtn<mode>): Change to an expander that emits the
7668 appropriate instruction depending on endianness.
7669 (aarch64_xtn<mode>_insn_be): Define - modeling zero-high-half
7671 (aarch64_xtn2<mode>_le): Rename to...
7672 (aarch64_xtn2<mode>_insn_le): This.
7673 (aarch64_xtn2<mode>_be): Rename to...
7674 (aarch64_xtn2<mode>_insn_be): This.
7675 (vec_pack_trunc_<mode>): Emit truncation instruction instead
7677 * config/aarch64/iterators.md (Vnarrowd): Add Vnarrowd mode
7680 2021-06-16 Martin Jambor <mjambor@suse.cz>
7682 PR tree-optimization/100453
7683 * tree-sra.c (create_access): Disqualify any const candidates
7684 which are written to.
7685 (sra_modify_expr): Do not store sub-replacements back to a const base.
7686 (handle_unscalarized_data_in_subtree): Likewise.
7687 (sra_modify_assign): Likewise. Earlier, use TREE_READONLy test
7688 instead of constant_decl_p.
7690 2021-06-16 Jakub Jelinek <jakub@redhat.com>
7692 PR middle-end/101062
7693 * stor-layout.c (finish_bitfield_representative): For fields in unions
7694 assume nextf is always NULL.
7695 (finish_bitfield_layout): Compute bit field representatives also in
7696 unions, but handle it as if each bitfield was the only field in the
7699 2021-06-16 Richard Biener <rguenther@suse.de>
7701 PR tree-optimization/101088
7702 * tree-ssa-loop-im.c (sm_seq_valid_bb): Only look for
7703 supported refs on edges. Do not assert same ref but
7704 different kind stores are unsuported but mark them so.
7705 (hoist_memory_references): Only look for supported refs
7708 2021-06-16 Roger Sayle <roger@nextmovesoftware.com>
7710 PR rtl-optimization/46235
7711 * config/i386/i386.md: New define_split for bt followed by cmov.
7712 (*bt<mode>_setcqi): New define_insn_and_split for bt followed by setc.
7713 (*bt<mode>_setncqi): New define_insn_and_split for bt then setnc.
7714 (*bt<mode>_setnc<mode>): New define_insn_and_split for bt followed
7715 by setnc with zero extension.
7717 2021-06-16 Richard Biener <rguenther@suse.de>
7719 PR tree-optimization/101083
7720 * tree-vect-slp.c (vect_slp_build_two_operator_nodes): Get
7721 vectype as argument.
7722 (vect_build_slp_tree_2): Adjust.
7724 2021-06-15 Martin Sebor <msebor@redhat.com>
7726 PR middle-end/100876
7727 * builtins.c: (gimple_call_return_array): Account for size_t
7728 mangling as either unsigned int or unsigned long
7730 2021-06-15 Jeff Law <jeffreyalaw@gmail.com>
7732 * compare-elim.c (try_eliminate_compare): Run DCE to clean things
7733 up before eliminating comparisons.
7735 2021-06-15 Aldy Hernandez <aldyh@redhat.com>
7737 * range-op.cc (operator_bitwise_or::wi_fold): Make sure
7738 nonzero|X is nonzero.
7739 (range_op_bitwise_and_tests): Add tests for above.
7741 2021-06-15 Carl Love <cel@us.ibm.com>
7744 * config/rs6000/rs6000-builtin.def (VCMPEQUT): Fix the ICODE for the
7746 (VRLQ, VSLQ, VSRQ, VSRAQ): Remove unused BU_P10_OVERLOAD_2
7749 2021-06-15 Tobias Burnus <tobias@codesourcery.com>
7752 * gimplify.c (enum gimplify_defaultmap_kind): Add GDMK_SCALAR_TARGET.
7753 (struct gimplify_omp_ctx): Extend defaultmap array by one.
7754 (new_omp_context): Init defaultmap[GDMK_SCALAR_TARGET].
7755 (omp_notice_variable): Update type classification for Fortran.
7756 (gimplify_scan_omp_clauses): Update calls for new argument; handle
7757 GDMK_SCALAR_TARGET; for Fortran, GDMK_POINTER avoid GOVD_MAP_0LEN_ARRAY.
7758 * langhooks-def.h (lhd_omp_scalar_p): Add 'ptr_ok' argument.
7759 * langhooks.c (lhd_omp_scalar_p): Likewise.
7760 (LANG_HOOKS_OMP_ALLOCATABLE_P, LANG_HOOKS_OMP_SCALAR_TARGET_P): New.
7761 (LANG_HOOKS_DECLS): Add them.
7762 * langhooks.h (struct lang_hooks_for_decls): Add new hooks, update
7763 omp_scalar_p pointer type to include the new bool argument.
7765 2021-06-15 David Malcolm <dmalcolm@redhat.com>
7768 (Special Functions for Debugging the Analyzer): Add
7769 __analyzer_dump_capacity.
7771 2021-06-15 Jakub Jelinek <jakub@redhat.com>
7774 * expr.c (expand_expr_real_2) <case VEC_PACK_FIX_TRUNC_EXPR,
7775 case VEC_PACK_TRUNC_EXPR>: Clear subtarget when changing mode.
7777 2021-06-15 Richard Biener <rguenther@suse.de>
7779 * cfgloopanal.c (mark_irreducible_loops): Use a dominance
7780 check to identify loop latches.
7781 * cfgloop.c (verify_loop_structure): Likewise.
7782 * loop-init.c (apply_loop_flags): Allow marked irreducible
7783 regions even with multiple latches.
7784 * predict.c (rebuild_frequencies): Simplify.
7786 2021-06-15 Richard Biener <rguenther@suse.de>
7788 * tree-ssa-threadupdate.c
7789 (jump_thread_path_registry::mark_threaded_blocks): Assert we
7790 have marked irreducible regions.
7792 2021-06-14 Martin Sebor <msebor@redhat.com>
7795 * builtins.c (gimple_call_return_array): Check for attribute fn spec.
7796 Handle calls to placement new.
7797 (ndecl_dealloc_argno): Avoid placement delete.
7799 2021-06-14 Peter Bergner <bergner@linux.ibm.com>
7802 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_mma_builtin): Use
7803 create_tmp_reg_or_ssa_name().
7805 2021-06-14 Andrew MacLeod <amacleod@redhat.com>
7807 * gimple-range-cache.cc (ranger_cache::ranger_cache): Adjust.
7808 (ranger_cache::enable_new_values): Set to specified value and
7809 return the old value.
7810 (ranger_cache::disable_new_values): Delete.
7811 (ranger_cache::fill_block_cache): Disable non 1st order derived
7813 * gimple-range-cache.h (ranger_cache): Adjust prototypes.
7814 * gimple-range.cc (gimple_ranger::range_of_expr): Adjust.
7816 2021-06-14 Uroš Bizjak <ubizjak@gmail.com>
7819 * config/i386/i386-expand.c (ix86_vectorize_vec_perm_const):
7820 Return true early when testing with V2HImode.
7821 * config/i386/mmx.md (*punpckwd): Split to sse2_pshuflw_1.
7823 2021-06-14 Christophe Lyon <christophe.lyon@linaro.org>
7825 * config/arm/mve.md (mve_vec_unpack<US>_lo_<mode>): New pattern.
7826 (mve_vec_unpack<US>_hi_<mode>): New pattern.
7827 (@mve_vec_pack_trunc_lo_<mode>): New pattern.
7828 (mve_vmovntq_<supf><mode>): Prefix with '@'.
7829 * config/arm/neon.md (vec_unpack<US>_hi_<mode>): Move to
7831 (vec_unpack<US>_lo_<mode>): Likewise.
7832 (vec_pack_trunc_<mode>): Rename to
7833 neon_quad_vec_pack_trunc_<mode>.
7834 * config/arm/vec-common.md (vec_unpack<US>_hi_<mode>): New
7836 (vec_unpack<US>_lo_<mode>): New.
7837 (vec_pack_trunc_<mode>): New.
7839 2021-06-14 Richard Biener <rguenther@suse.de>
7841 PR tree-optimization/100934
7842 * tree-ssa-dom.c (pass_dominator::execute): Properly
7843 mark irreducible regions.
7845 2021-06-14 Martin Liska <mliska@suse.cz>
7847 * doc/invoke.texi: Put r{...} on the same line as @item.
7849 2021-06-14 Martin Liska <mliska@suse.cz>
7851 * doc/invoke.texi: Add missing newline.
7853 2021-06-14 Martin Liska <mliska@suse.cz>
7855 * doc/invoke.texi: Remove '+' charasters.
7857 2021-06-14 Claudiu Zissulescu <claziss@synopsys.com>
7859 * config.gcc (arc): Add support for with_cpu option.
7860 * config/arc/arc.h (OPTION_DEFAULT_SPECS): Add fpu.
7862 2021-06-14 Richard Biener <rguenther@suse.de>
7864 PR tree-optimization/101031
7865 * tree-ssa-strlen.c (maybe_invalidate): Increment max_size
7866 instead of size when accounting for a possibly string
7869 2021-06-14 Martin Liska <mliska@suse.cz>
7871 * gimple-ssa-evrp.c (pointer_equiv_analyzer::~pointer_equiv_analyzer): Use delete[].
7873 2021-06-14 Aldy Hernandez <aldyh@redhat.com>
7875 * value-query.cc (gimple_range_global): Call get_range_global
7876 if called after inlining.
7878 2021-06-13 Uroš Bizjak <ubizjak@gmail.com>
7881 * config/i386/i386-expand.c (expand_vec_perm_pshufb):
7882 Emit constant permutation insn directly from here.
7884 2021-06-13 Trevor Saunders <tbsaunde@tbsaunde.org>
7886 * attribs.c (find_attribute_namespace): Iterate over vec<> with
7888 * auto-profile.c (afdo_find_equiv_class): Likewise.
7889 * gcc.c (do_specs_vec): Likewise.
7890 (do_spec_1): Likewise.
7891 (driver::set_up_specs): Likewise.
7892 * gimple-loop-jam.c (any_access_function_variant_p): Likewise.
7893 * gimple-ssa-store-merging.c (compatible_load_p): Likewise.
7894 (imm_store_chain_info::try_coalesce_bswap): Likewise.
7895 (imm_store_chain_info::coalesce_immediate_stores): Likewise.
7896 (get_location_for_stmts): Likewise.
7897 * graphite-poly.c (print_iteration_domains): Likewise.
7898 (free_poly_bb): Likewise.
7899 (remove_gbbs_in_scop): Likewise.
7900 (free_scop): Likewise.
7901 (dump_gbb_cases): Likewise.
7902 (dump_gbb_conditions): Likewise.
7903 (print_pdrs): Likewise.
7904 (print_scop): Likewise.
7905 * ifcvt.c (cond_move_process_if_block): Likewise.
7906 * lower-subreg.c (decompose_multiword_subregs): Likewise.
7907 * regcprop.c (pass_cprop_hardreg::execute): Likewise.
7908 * sanopt.c (sanitize_rewrite_addressable_params): Likewise.
7909 * sel-sched-dump.c (dump_insn_vector): Likewise.
7910 * store-motion.c (store_ops_ok): Likewise.
7911 (store_killed_in_insn): Likewise.
7912 * timevar.c (timer::named_items::print): Likewise.
7913 * tree-cfgcleanup.c (cleanup_control_flow_pre): Likewise.
7914 (cleanup_tree_cfg_noloop): Likewise.
7915 * tree-data-ref.c (dump_data_references): Likewise.
7916 (print_dir_vectors): Likewise.
7917 (print_dist_vectors): Likewise.
7918 (dump_data_dependence_relations): Likewise.
7919 (dump_dist_dir_vectors): Likewise.
7920 (dump_ddrs): Likewise.
7921 (create_runtime_alias_checks): Likewise.
7922 (free_subscripts): Likewise.
7923 (save_dist_v): Likewise.
7924 (save_dir_v): Likewise.
7925 (invariant_access_functions): Likewise.
7926 (same_access_functions): Likewise.
7927 (access_functions_are_affine_or_constant_p): Likewise.
7928 (find_data_references_in_stmt): Likewise.
7929 (graphite_find_data_references_in_stmt): Likewise.
7930 (free_dependence_relations): Likewise.
7931 (free_data_refs): Likewise.
7932 * tree-inline.c (copy_debug_stmts): Likewise.
7933 * tree-into-ssa.c (dump_currdefs): Likewise.
7934 (rewrite_update_phi_arguments): Likewise.
7935 * tree-ssa-propagate.c (clean_up_loop_closed_phi): Likewise.
7936 * tree-vect-data-refs.c (vect_analyze_possibly_independent_ddr):
7938 (vect_slp_analyze_node_dependences): Likewise.
7939 (vect_slp_analyze_instance_dependence): Likewise.
7940 (vect_record_base_alignments): Likewise.
7941 (vect_get_peeling_costs_all_drs): Likewise.
7942 (vect_peeling_supportable): Likewise.
7943 * tree-vectorizer.c (vec_info::~vec_info): Likewise.
7944 (vec_info::free_stmt_vec_infos): Likewise.
7946 2021-06-13 Jeff Law <jeffreyalaw@gmail.com>
7948 * config/h8300/logical.md (<code>qi3_1<cczn>): New pattern.
7949 (andqi3_1<cczn>): Removed.
7950 (<ors>qi3_1): Do not split for IOR/XOR a single bit.
7951 (H8/SX bit logicals): Split out from other patterns.
7952 * config/h8300/multiply.md (mulqihi3_const<cczn>): Renamed from
7953 mulqihi3_const_clobber_flags.
7954 (mulqihi3<cczn>, mulhisi3_const<cczn>, mulhisi3<cczn>): Similarly
7956 2021-06-13 H.J. Lu <hjl.tools@gmail.com>
7959 * config/i386/i386.c (ix86_expand_prologue): Set red_zone_used
7960 to true if red zone is used.
7961 (ix86_output_indirect_jmp): Replace ix86_red_zone_size with
7963 * config/i386/i386.h (machine_function): Add red_zone_used.
7964 (ix86_red_zone_size): Removed.
7965 (ix86_red_zone_used): New.
7966 * config/i386/i386.md (peephole2 patterns): Replace
7967 ix86_red_zone_size with ix86_red_zone_used.
7969 2021-06-12 Jason Merrill <jason@redhat.com>
7971 * doc/extend.texi (unused variable attribute): Applies to
7972 structure fields as well.
7974 2021-06-12 Eugene Rozenfeld <erozen@microsoft.com>
7976 * auto-profile.c (read_profile): fix a typo in an error string
7978 2021-06-11 Thomas Schwinge <thomas@codesourcery.com>
7980 * tree-pretty-print.h (dump_omp_clauses): Add 'bool = true'
7982 * tree-pretty-print.c (dump_omp_clauses): Update.
7983 (dump_generic_node) <OMP_CLAUSE>: Use it.
7985 2021-06-11 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
7988 * config/arm/arm_mve.h (__arm_vld1q): Change __ARM_mve_coerce(p0,
7989 int8_t const *) to __ARM_mve_coerce1(p0, int8_t *) in the argument for
7990 the polymorphic variants matching code.
7991 (__arm_vld1q_z): Likewise.
7992 (__arm_vld2q): Likewise.
7993 (__arm_vld4q): Likewise.
7994 (__arm_vldrbq_gather_offset): Likewise.
7995 (__arm_vldrbq_gather_offset_z): Likewise.
7997 2021-06-11 Roger Sayle <roger@nextmovesoftware.com>
7999 PR tree-optimization/96392
8000 * fold-const.h (tree_expr_maybe_real_minus_zero_p): Fix prototype.
8002 2021-06-11 Roger Sayle <roger@nextmovesoftware.com>
8004 PR tree-optimization/96392
8005 * fold-const.c (fold_real_zero_addition_p): Take both arguments
8006 of the addition or subtraction, not just the zero. Use this
8007 other argument in tests for signaling NaNs and signed zeros.
8008 (tree_expr_maybe_real_minus_zero_p): New predicate.
8009 * fold-const.h (fold_real_zero_addition_p): Update prototype.
8010 (tree_expr_maybe_real_minus_zero_p): New function prototype.
8011 * match.pd: Update calls to fold_real_zero_addition_p.
8012 Replace HONOR_NANS with tree_expr_maybe_nan_p.
8013 Replace HONOR_SIGNED_ZEROS with tree_expr_maybe_real_minus_zero_p.
8014 Replace HONOR_SNANS with tree_expr_maybe_signaling_nan_p.
8015 * tree-ssa-reassoc.c (eliminate_using_constants): Update
8016 call to fold_real_zero_addition_p.
8018 2021-06-11 Richard Biener <rguenther@suse.de>
8020 PR tree-optimization/101025
8021 * tree-ssa-loop-im.c (sm_seq_valid_bb): Make sure to process
8022 all refs that require dependence checking.
8024 2021-06-11 Richard Biener <rguenther@suse.de>
8026 PR tree-optimization/101028
8027 * tree-vect-slp.c (vect_build_slp_tree_2): When SLP
8028 reassoc discovery fails fatally, mark appropriate lanes
8031 2021-06-11 Richard Biener <rguenther@suse.de>
8033 PR tree-optimization/101026
8034 * tree-vect-slp.c (vect_build_slp_tree_2): Make sure we
8035 have a representative for the associated chain nodes.
8037 2021-06-11 Jakub Jelinek <jakub@redhat.com>
8039 PR rtl-optimization/101008
8040 * simplify-rtx.c (relational_result): New function.
8041 (simplify_logical_relational_operation,
8042 simplify_relational_operation): Use it.
8044 2021-06-11 Jakub Jelinek <jakub@redhat.com>
8047 * config/i386/sse.md (*vec_concat<mode>_0_1): Require TARGET_SSE2.
8049 2021-06-11 Uroš Bizjak <ubizjak@gmail.com>
8052 * config/i386/i386-expand.c (expand_vec_perm_pshufb): Return
8053 false if the permutation can be implemented with constant
8054 permutation instruction in wider mode.
8055 (canonicalize_vector_int_perm): Move above expand_vec_perm_pshufb.
8056 Handle V8QImode and V4HImode.
8058 2021-06-11 Martin Liska <mliska@suse.cz>
8060 PR gcov-profile/100788
8061 * common.opt: Add new option.
8062 * coverage.c (coverage_begin_function): Emit warning instead on
8063 the internal compiler error.
8064 * doc/invoke.texi: Document the option.
8065 * toplev.c (process_options): Enable it by default.
8067 2021-06-11 Richard Biener <rguenther@suse.de>
8069 PR middle-end/101009
8070 * tree-data-ref.c (build_classic_dist_vector_1): Make sure
8071 to set *init_b to true when we encounter a constant equal
8073 (compute_affine_dependence): Also dump the actual DR_REF.
8075 2021-06-10 Aldy Hernandez <aldyh@redhat.com>
8077 PR tree-optimization/100984
8078 * gimple-ssa-evrp.c (ssa_equiv_stack): Use auto_vec for
8080 (ssa_equiv_stack::~ssa_equiv_stack): Remove.
8082 2021-06-11 Kewen Lin <linkw@linux.ibm.com>
8084 * config/rs6000/rs6000.md
8085 (floatsi<SFDF:mode>2_lfiwax_<QHI:mode>_mem_zext): New
8086 define_insn_and_split.
8088 2021-06-11 Richard Biener <rguenther@suse.de>
8090 * tree-vect-slp.c (vect_build_slp_tree_2): Use stablesort
8091 to sort operands of the associative chain.
8093 2021-06-11 Richard Biener <rguenther@suse.de>
8095 * system.h (gcc_stablesort_r): Declare.
8096 * sort.cc (gcc_sort_r): Support stable sort.
8097 (gcc_stablesort_r): Define.
8098 * vec.h (vec<>::stablesort): Add.
8100 2021-06-10 Uroš Bizjak <ubizjak@gmail.com>
8103 * config/i386/i386-expand.c (ix86_split_mmx_punpck):
8104 Handle V2SF mode. Emit SHUFPS to fixup unpack-high for V2SF mode.
8105 (expand_vec_perm_blend): Handle 64bit modes for TARGET_SSE4_1.
8106 (expand_vec_perm_pshufb): Handle 64bit modes for TARGET_SSSE3.
8107 (expand_vec_perm_pblendv): Handle 64bit modes for TARGET_SSE4_1.
8108 (expand_vec_perm_interleave2): Handle 64bit modes.
8109 (expand_vec_perm_even_odd_pack): Handle V8QI mode.
8110 (expand_vec_perm_even_odd_1): Ditto.
8111 (ix86_vectorize_vec_perm_const): Ditto.
8112 * config/i386/i386.md (UNSPEC_PSHUFB): Move from ...
8113 * config/i386/sse.md: ... here.
8114 * config/i386/mmx.md (*vec_interleave_lowv2sf):
8115 New insn_and_split pattern.
8116 (*vec_interleave_highv2sf): Ditto.
8117 (mmx_pshufbv8qi3): New insn pattern.
8118 (*mmx_pblendw): Ditto.
8120 2021-06-10 Peter Bergner <bergner@linux.ibm.com>
8122 * config/rs6000/rs6000-builtin.def (build_pair): New built-in.
8123 (build_acc): Likewise.
8124 * config/rs6000/rs6000-call.c (mma_expand_builtin): Swap assemble
8125 source operands in little-endian mode.
8126 (rs6000_gimple_fold_mma_builtin): Handle VSX_BUILTIN_BUILD_PAIR.
8127 (mma_init_builtins): Likewise.
8128 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Handle endianness
8129 ordering for the MMA assemble and build source operands.
8130 * doc/extend.texi (__builtin_vsx_build_acc, __builtin_mma_build_pair):
8132 (__builtin_mma_assemble_acc, __builtin_mma_assemble_pair): Remove
8135 2021-06-10 Jeff Law <jeffreyalaw@gmail.com>
8137 * config/h8300/h8300.c (select_cc_mode): Handle MEM. Use
8139 * config/h8300/extensions.md: Replace _clobber_flags patterns
8142 2021-06-10 Robin Dapp <rdapp@linux.ibm.com>
8144 * config/s390/vector.md (vcond_mask_<mode><mode>): Change to
8145 (vcond_mask_<mode><tointvec>): this.
8147 2021-06-10 Andrew Stubbs <ams@codesourcery.com>
8148 Thomas Schwinge <thomas@codesourcery.com>
8150 * omp-builtins.def (BUILT_IN_GOACC_ENTER_EXIT_DATA): Split into...
8151 (BUILT_IN_GOACC_ENTER_DATA, BUILT_IN_GOACC_EXIT_DATA): ... these.
8152 * gimple.h (enum gf_mask): Split
8153 'GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA' into
8154 'GF_OMP_TARGET_KIND_OACC_ENTER_DATA' and
8155 'GF_OMP_TARGET_KIND_OACC_EXIT_DATA'.
8156 (is_gimple_omp_oacc): Update.
8157 * gimple-pretty-print.c (dump_gimple_omp_target): Likewise.
8158 * gimplify.c (gimplify_omp_target_update): Likewise.
8159 * omp-expand.c (expand_omp_target, build_omp_regions_1)
8160 (omp_make_gimple_edges): Likewise.
8161 * omp-low.c (check_omp_nesting_restrictions, lower_omp_target):
8164 2021-06-10 Aldy Hernandez <aldyh@redhat.com>
8166 * value-query.cc (value_query::value_on_edge): Rename name to
8168 (range_query::range_on_edge): Same.
8169 (range_query::value_of_expr): Same.
8170 (range_query::value_on_edge): Same.
8171 * value-query.h (class value_query): Same.
8172 (class range_query): Same.
8174 2021-06-10 Richard Biener <rguenther@suse.de>
8176 PR tree-optimization/101003
8177 * tree-vect-slp.c (vect_build_slp_tree_2): Appropriately
8178 use the pattern stmt defs when linearizing a chain.
8180 2021-06-10 Jakub Jelinek <jakub@redhat.com>
8183 * ifcvt.c (noce_get_alt_condition, noce_try_abs): Use
8184 prev_nonnote_nondebug_insn instead of prev_nonnote_insn.
8186 2021-06-10 Clement Chigot <clement.chigot@atos.net>
8188 * config/rs6000/aix71.h (ASM_CPU_SPEC): Add Power10 directive.
8189 * config/rs6000/aix72.h (ASM_CPU_SPEC): Likewise.
8191 2021-06-09 Andrew Pinski <apinski@marvell.com>
8193 PR tree-optimization/100925
8194 * match.pd (a ? CST1 : CST2): Limit transformations
8195 that would produce a negative to integeral types only.
8196 Change !POINTER_TYPE_P to INTEGRAL_TYPE_P also.
8198 2021-06-09 Jeff Law <jeffreyalaw@gmail.com>
8201 2021-06-09 Jeff Law <jeffreyalaw@gmail.com>
8203 * doc/tm.texi: Correctly update.
8205 2021-06-09 Jeff Law <jeffreyalaw@gmail.com>
8207 * doc/tm.texi: Correctly update.
8209 2021-06-09 H.J. Lu <hjl.tools@gmail.com>
8212 * doc/tm.texi.in (Trampolines): Add a missing blank line.
8214 2021-06-09 Paul Eggert <eggert@cs.ucla.edu>
8217 * doc/invoke.texi (Code Gen Options); Document that -fno-trampolines
8218 and -ftrampolines work only with Ada.
8219 * doc/tm.texi.in (Trampolines): Likewise.
8220 * doc/tm.texi: Regenerated.
8222 2021-06-09 Carl Love <cel@us.ibm.com>
8224 * config/rs6000/altivec.h (vec_signextll, vec_signexti, vec_signextq):
8225 Add define for new builtins.
8226 * config/rs6000/altivec.md(altivec_vreveti2): Add define_expand.
8227 * config/rs6000/rs6000-builtin.def (VSIGNEXTI, VSIGNEXTLL): Add
8228 overloaded builtin definitions.
8229 (VSIGNEXTSB2W, VSIGNEXTSH2W, VSIGNEXTSB2D, VSIGNEXTSH2D,VSIGNEXTSW2D,
8230 VSIGNEXTSD2Q): Add builtin expansions.
8231 (SIGNEXT): Add P10 overload definition.
8232 * config/rs6000/rs6000-call.c (P9V_BUILTIN_VEC_VSIGNEXTI, P9V_BUILTIN_VEC_VSIGNEXTLL,
8233 P10_BUILTIN_VEC_SIGNEXT): Add overloaded argument definitions.
8234 * config/rs6000/vsx.md (vsx_sign_extend_v2di_v1ti): Add define_insn.
8235 (vsignextend_v2di_v1ti, vsignextend_qi_<mode>, vsignextend_hi_<mode>,
8236 vsignextend_si_v2di)[VIlong]: Add define_expand.
8237 Make define_insn vsx_sign_extend_si_v2di visible.
8238 * doc/extend.texi: Add documentation for the vec_signexti,
8239 vec_signextll builtins and vec_signextq.
8241 2021-06-09 Carl Love <cel@us.ibm.com>
8243 * config/rs6000/rs6000.c (__fixkfti, __fixunskfti, __floattikf,
8244 __floatuntikf): Names changed to __fixkfti_sw, __fixunskfti_sw,
8245 __floattikf_sw, __floatuntikf_sw respectively.
8246 * config/rs6000/rs6000.md (floatti<mode>2, floatunsti<mode>2,
8247 fix_trunc<mode>ti2, fixuns_trunc<mode>ti2): Add
8248 define_insn for mode IEEE 128.
8250 2021-06-09 Carl Love <cel@us.ibm.com>
8252 * config/rs6000/altivec.md (altivec_vslq, altivec_vsrq):
8253 Rename to altivec_vslq_<mode>, altivec_vsrq_<mode>, mode VEC_TI.
8254 * config/rs6000/vector.md (VEC_TI): Was named VSX_TI in vsx.md.
8255 (vashlv1ti3): Change to vashl<mode>3, mode VEC_TI.
8256 (vlshrv1ti3): Change to vlshr<mode>3, mode VEC_TI.
8257 * config/rs6000/vsx.md (VSX_TI): Remove define_mode_iterator. Update
8258 uses of VSX_TI to VEC_TI.
8260 2021-06-09 Carl Love <cel@us.ibm.com>
8262 * config/rs6000/dfp.md (floattitd2, fixtdti2): New define_insns.
8264 2021-06-09 Carl Love <cel@us.ibm.com>
8266 * config/rs6000/altivec.h (vec_dive, vec_mod): Add define for new
8268 * config/rs6000/altivec.md (UNSPEC_VMULEUD, UNSPEC_VMULESD,
8269 UNSPEC_VMULOUD, UNSPEC_VMULOSD): New unspecs.
8270 (altivec_eqv1ti, altivec_gtv1ti, altivec_gtuv1ti, altivec_vmuleud,
8271 altivec_vmuloud, altivec_vmulesd, altivec_vmulosd, altivec_vrlq,
8272 altivec_vrlqmi, altivec_vrlqmi_inst, altivec_vrlqnm,
8273 altivec_vrlqnm_inst, altivec_vslq, altivec_vsrq, altivec_vsraq,
8274 altivec_vcmpequt_p, altivec_vcmpgtst_p, altivec_vcmpgtut_p): New
8276 (vec_widen_umult_even_v2di, vec_widen_smult_even_v2di,
8277 vec_widen_umult_odd_v2di, vec_widen_smult_odd_v2di, altivec_vrlqmi,
8278 altivec_vrlqnm): New define_expands.
8279 * config/rs6000/rs6000-builtin.def (VCMPEQUT_P, VCMPGTST_P,
8280 VCMPGTUT_P): Add macro expansions.
8281 (BU_P10V_AV_P): Add builtin predicate definition.
8282 (VCMPGTUT, VCMPGTST, VCMPEQUT, CMPNET, CMPGE_1TI,
8283 CMPGE_U1TI, CMPLE_1TI, CMPLE_U1TI, VNOR_V1TI_UNS, VNOR_V1TI, VCMPNET_P,
8284 VCMPAET_P, VMULEUD, VMULESD, VMULOUD, VMULOSD, VRLQ,
8285 VSLQ, VSRQ, VSRAQ, VRLQNM, DIV_V1TI, UDIV_V1TI, DIVES_V1TI, DIVEU_V1TI,
8286 MODS_V1TI, MODU_V1TI, VRLQMI): New macro expansions.
8287 (VRLQ, VSLQ, VSRQ, VSRAQ, DIVE, MOD): New overload expansions.
8288 * config/rs6000/rs6000-call.c (P10_BUILTIN_VCMPEQUT,
8289 P10V_BUILTIN_CMPGE_1TI, P10V_BUILTIN_CMPGE_U1TI,
8290 P10V_BUILTIN_VCMPGTUT, P10V_BUILTIN_VCMPGTST,
8291 P10V_BUILTIN_CMPLE_1TI, P10V_BUILTIN_VCMPLE_U1TI,
8292 P10V_BUILTIN_DIV_V1TI, P10V_BUILTIN_UDIV_V1TI,
8293 P10V_BUILTIN_VMULESD, P10V_BUILTIN_VMULEUD,
8294 P10V_BUILTIN_VMULOSD, P10V_BUILTIN_VMULOUD,
8295 P10V_BUILTIN_VNOR_V1TI, P10V_BUILTIN_VNOR_V1TI_UNS,
8296 P10V_BUILTIN_VRLQ, P10V_BUILTIN_VRLQMI,
8297 P10V_BUILTIN_VRLQNM, P10V_BUILTIN_VSLQ,
8298 P10V_BUILTIN_VSRQ, P10V_BUILTIN_VSRAQ,
8299 P10V_BUILTIN_VCMPGTUT_P, P10V_BUILTIN_VCMPGTST_P,
8300 P10V_BUILTIN_VCMPEQUT_P, P10V_BUILTIN_VCMPGTUT_P,
8301 P10V_BUILTIN_VCMPGTST_P, P10V_BUILTIN_CMPNET,
8302 P10V_BUILTIN_VCMPNET_P, P10V_BUILTIN_VCMPAET_P,
8303 P10V_BUILTIN_DIVES_V1TI, P10V_BUILTIN_MODS_V1TI,
8304 P10V_BUILTIN_MODU_V1TI):
8305 New overloaded definitions.
8306 (rs6000_gimple_fold_builtin) [P10V_BUILTIN_VCMPEQUT,
8307 P10V_BUILTIN_CMPNET, P10V_BUILTIN_CMPGE_1TI,
8308 P10V_BUILTIN_CMPGE_U1TI, P10V_BUILTIN_VCMPGTUT,
8309 P10V_BUILTIN_VCMPGTST, P10V_BUILTIN_CMPLE_1TI,
8310 P10V_BUILTIN_CMPLE_U1TI]: New case statements.
8311 (rs6000_init_builtins) [bool_V1TI_type_node, int_ftype_int_v1ti_v1ti]:
8313 (altivec_init_builtins): New E_V1TImode case statement.
8314 (builtin_function_type)[P10_BUILTIN_128BIT_VMULEUD,
8315 P10_BUILTIN_128BIT_VMULOUD, P10_BUILTIN_128BIT_DIVEU_V1TI,
8316 P10_BUILTIN_128BIT_MODU_V1TI, P10_BUILTIN_CMPGE_U1TI,
8317 P10_BUILTIN_VCMPGTUT, P10_BUILTIN_VCMPEQUT]: New case statements.
8318 * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute) [E_TImode,
8319 E_V1TImode]: New case statements.
8320 * config/rs6000/rs6000.h (rs6000_builtin_type_index): New enum
8321 value RS6000_BTI_bool_V1TI.
8322 * config/rs6000/vector.md (vector_gtv1ti,vector_nltv1ti,
8323 vector_gtuv1ti, vector_nltuv1ti, vector_ngtv1ti, vector_ngtuv1ti,
8324 vector_eq_v1ti_p, vector_ne_v1ti_p, vector_ae_v1ti_p,
8325 vector_gt_v1ti_p, vector_gtu_v1ti_p, vrotlv1ti3, vashlv1ti3,
8326 vlshrv1ti3, vashrv1ti3): New define_expands.
8327 * config/rs6000/vsx.md (UNSPEC_VSX_DIVSQ, UNSPEC_VSX_DIVUQ,
8328 UNSPEC_VSX_DIVESQ, UNSPEC_VSX_DIVEUQ, UNSPEC_VSX_MODSQ,
8329 UNSPEC_VSX_MODUQ): New unspecs.
8330 (mulv2di3, vsx_div_v1ti, vsx_udiv_v1ti, vsx_dives_v1ti,
8331 vsx_diveu_v1ti, vsx_mods_v1ti, vsx_modu_v1ti, xxswapd_v1ti): New
8333 (vcmpnet): New define_expand.
8334 * doc/extend.texi: Add documentation for the new builtins vec_rl,
8335 vec_rlmi, vec_rlnm, vec_sl, vec_sr, vec_sra, vec_mule, vec_mulo,
8336 vec_div, vec_dive, vec_mod, vec_cmpeq, vec_cmpne, vec_cmpgt, vec_cmplt,
8337 vec_cmpge, vec_cmple, vec_all_eq, vec_all_ne, vec_all_gt, vec_all_lt,
8338 vec_all_ge, vec_all_le, vec_any_eq, vec_any_ne, vec_any_gt, vec_any_lt,
8339 vec_any_ge, vec_any_le.
8341 2021-06-09 Carl Love <cel@us.ibm.com>
8343 * config/rs6000/altivec.md (altivec_vrl<VI_char>mi): Fix
8344 bug in argument generation.
8346 2021-06-09 Christophe Lyon <christophe.lyon@linaro.org>
8348 * config/arm/iterators.md (<supf>): Remove VCLZQ_U, VCLZQ_S.
8350 * config/arm/mve.md (mve_vclzq_<supf><mode>): Add '@' prefix,
8351 remove <supf> iterator.
8352 (mve_vclzq_u<mode>): New.
8353 * config/arm/neon.md (clz<mode>2): Rename to neon_vclz<mode>.
8354 (neon_vclz<mode): Move to ...
8355 * config/arm/unspecs.md (VCLZQ_U, VCLZQ_S): Remove.
8356 * config/arm/vec-common.md: ... here. Add support for MVE.
8358 2021-06-09 Christophe Lyon <christophe.lyon@linaro.org>
8360 * config/arm/mve.md (mve_vhaddq_<supf><mode>): Prefix with '@'.
8361 (@mve_vrhaddq_<supf><mode): Likewise.
8362 * config/arm/neon.md (neon_v<r>hadd<sup><mode>): Likewise.
8363 * config/arm/vec-common.md (avg<mode>3_floor, uavg<mode>3_floor)
8364 (avg<mode>3_ceil", uavg<mode>3_ceil): New patterns.
8366 2021-06-09 imba-tjd <109224573@qq.com>
8368 * doc/invoke.texi: Fix typo.
8370 2021-06-09 Roger Sayle <roger@nextmovesoftware.com>
8373 * fold-const-call.c (fold_const_call_sss) [CASE_CFN_FMOD]:
8374 Support evaluation of fmod/fmodf/fmodl at compile-time.
8376 2021-06-09 Richard Biener <rguenther@suse.de>
8378 PR tree-optimization/100981
8379 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
8380 gimple_get_lhs to also handle calls.
8381 * tree-vect-slp-patterns.c (complex_pattern::build): Transfer
8384 2021-06-09 Richard Biener <rguenther@suse.de>
8386 PR tree-optimization/97832
8387 * tree-vectorizer.h (_slp_tree::failed): New.
8388 * tree-vect-slp.c (_slp_tree::_slp_tree): Initialize
8390 (_slp_tree::~_slp_tree): Free failed.
8391 (vect_build_slp_tree): Retain failed nodes and record
8392 matches in them, copying that back out when running
8393 into a cached fail. Dump start and end of discovery.
8395 (vect_build_slp_tree_2): Handle associatable chains
8396 together doing more aggressive operand swapping.
8398 2021-06-09 H.J. Lu <hjl.tools@gmail.com>
8401 * config.gcc (gcc_cv_initfini_array): Set to yes for Linux and
8403 * doc/install.texi: Require glibc 2.1 and binutils 2.12 for
8404 Linux and GNU targets.
8406 2021-06-09 Richard Biener <rguenther@suse.de>
8408 * tree-vect-stmts.c (vect_is_simple_use): Always get dt
8411 2021-06-09 Claudiu Zissulescu <claziss@synopsys.com>
8413 * config/arc/arc.md (loop_end): Change it to
8414 define_insn_and_split.
8416 2021-06-09 Claudiu Zissulescu <claziss@synopsys.com>
8418 * config/arc/arc.md (maddhisi4): Use VMAC2H instruction.
8419 (machi): New pattern.
8420 (umaddhisi4): Use VMAC2HU instruction.
8421 (umachi): New pattern.
8423 2021-06-09 Claudiu Zissulescu <claziss@synopsys.com>
8425 * config/arc/arc-protos.h (arc_split_move_p): New prototype.
8426 * config/arc/arc.c (arc_split_move_p): New function.
8427 (arc_split_move): Clean up.
8428 * config/arc/arc.md (movdi_insn): Clean up, use arc_split_move_p.
8429 (movdf_insn): Likewise.
8430 * config/arc/simdext.md (mov<VWH>_insn): Likewise.
8432 2021-06-09 Uroš Bizjak <ubizjak@gmail.com>
8435 * config/i386/i386.c (print_operand_address_as): Rename "no_rip"
8436 argument to "raw". Do not emit segment overrides when "raw" is true.
8438 2021-06-09 Martin Liska <mliska@suse.cz>
8440 * doc/gcov.texi: Create a proper JSON files.
8441 * doc/invoke.texi: Remove dots in order to make it a valid
8444 2021-06-09 Xionghu Luo <luoxhu@linux.ibm.com>
8446 * config/rs6000/rs6000-p8swap.c (pattern_is_rotate64): New.
8447 (insn_is_load_p): Use pattern_is_rotate64.
8448 (insn_is_swap_p): Likewise.
8449 (quad_aligned_load_p): Likewise.
8450 (const_load_sequence_p): Likewise.
8451 (replace_swapped_aligned_load): Likewise.
8452 (recombine_lvx_pattern): Likewise.
8453 (recombine_stvx_pattern): Likewise.
8455 2021-06-09 Andrew MacLeod <amacleod@redhat.com>
8457 * gimple-range-gori.cc (gori_compute::outgoing_edge_range_p): Use a
8458 fur_stmt source record.
8459 * gimple-range.cc (fur_source::get_operand): Generic range query.
8460 (fur_source::get_phi_operand): New.
8461 (fur_source::register_dependency): New.
8462 (fur_source::query): New.
8463 (class fur_edge): New. Edge source for operands.
8464 (fur_edge::fur_edge): New.
8465 (fur_edge::get_operand): New.
8466 (fur_edge::get_phi_operand): New.
8467 (fur_edge::query): New.
8468 (fur_stmt::fur_stmt): New.
8469 (fur_stmt::get_operand): New.
8470 (fur_stmt::get_phi_operand): New.
8471 (fur_stmt::query): New.
8472 (class fur_depend): New. Statement source and process dependencies.
8473 (fur_depend::fur_depend): New.
8474 (fur_depend::register_dependency): New.
8475 (class fur_list): New. List source for operands.
8476 (fur_list::fur_list): New.
8477 (fur_list::get_operand): New.
8478 (fur_list::get_phi_operand): New.
8479 (fold_range): New. Instantiate appropriate fur_source class and fold.
8480 (fold_using_range::range_of_range_op): Use new API.
8481 (fold_using_range::range_of_address): Ditto.
8482 (fold_using_range::range_of_phi): Ditto.
8483 (imple_ranger::fold_range_internal): Use fur_depend class.
8484 (fold_using_range::range_of_ssa_name_with_loop_info): Use new API.
8485 * gimple-range.h (class fur_source): Now a base class.
8486 (class fur_stmt): New.
8487 (fold_range): New prototypes.
8488 (fur_source::fur_source): Delete.
8490 2021-06-08 Andrew Pinski <apinski@marvell.com>
8492 PR tree-optimization/25290
8493 * tree-ssa-phiopt.c (xor_replacement): Delete.
8494 (tree_ssa_phiopt_worker): Delete use of xor_replacement.
8495 (match_simplify_replacement): Allow one cheap preparation
8496 statement that can be moved to before the if.
8498 2021-06-08 Pat Haugen <pthaugen@linux.ibm.com>
8500 * config/rs6000/power10.md (power10-fused-load, power10-fused-store,
8501 power10-fused_alu, power10-fused-vec, power10-fused-branch): New.
8503 2021-06-08 Jeff Law <jeffreyalaw@gmail.com>
8505 * config/h8300/logical.md (andqi3_1): Move BCLR case into define_insn_and_split.
8506 Create length attribute on define_insn_and_split. Only split for cases which we
8508 (andqi3_1<cczn>): Renamed from andqi3_1_clobber_flags. Only handle AND here and
8509 fix length computation.
8510 (b<code><mode>msx): Combine QImode and HImode H8/SX patterns using iterator.
8512 2021-06-08 Richard Biener <rguenther@suse.de>
8514 PR tree-optimization/100923
8515 * tree-ssa-sccvn.c (valueize_refs_1): Take a pointer to
8516 the operand vector to be valueized.
8517 (valueize_refs): Likewise.
8518 (valueize_shared_reference_ops_from_ref): Adjust.
8519 (valueize_shared_reference_ops_from_call): Likewise.
8520 (vn_reference_lookup_3): Likewise.
8521 (vn_reference_lookup_pieces): Likewise. Re-valueize
8522 with honoring availability when we are about to create
8523 the ao_ref and valueized before.
8524 (vn_reference_lookup): Likewise.
8525 (vn_reference_insert_pieces): Adjust.
8527 2021-06-08 Richard Biener <rguenther@suse.de>
8529 * tree-vectorizer.h (_slp_instance::root_stmt): Change to...
8530 (_slp_instance::root_stmts): ... a vector.
8531 (SLP_INSTANCE_ROOT_STMT): Rename to ...
8532 (SLP_INSTANCE_ROOT_STMTS): ... this.
8533 (slp_root::root): Change to...
8534 (slp_root::roots): ... a vector.
8535 (slp_root::slp_root): Adjust.
8536 * tree-vect-slp.c (_slp_instance::location): Adjust.
8537 (vect_free_slp_instance): Release the root stmt vector.
8538 (vect_build_slp_instance): Adjust.
8539 (vect_analyze_slp): Likewise.
8540 (_bb_vec_info::~_bb_vec_info): Likewise.
8541 (vect_slp_analyze_operations): Likewise.
8542 (vect_bb_vectorization_profitable_p): Likewise. Adjust
8543 costs for the root stmt.
8544 (vect_slp_check_for_constructors): Gather all BIT_INSERT_EXPRs
8546 (vect_slp_analyze_bb_1): Simplify by marking all root stmts
8548 (vectorize_slp_instance_root_stmt): Adjust.
8549 (vect_schedule_slp): Likewise.
8551 2021-06-08 Aldy Hernandez <aldyh@redhat.com>
8553 * gimple-ssa-evrp.c (class ssa_equiv_stack): New.
8554 (ssa_equiv_stack::ssa_equiv_stack): New.
8555 (ssa_equiv_stack::~ssa_equiv_stack): New.
8556 (ssa_equiv_stack::enter): New.
8557 (ssa_equiv_stack::leave): New.
8558 (ssa_equiv_stack::push_replacement): New.
8559 (ssa_equiv_stack::get_replacement): New.
8560 (is_pointer_ssa): New.
8561 (class pointer_equiv_analyzer): New.
8562 (pointer_equiv_analyzer::pointer_equiv_analyzer): New.
8563 (pointer_equiv_analyzer::~pointer_equiv_analyzer): New.
8564 (pointer_equiv_analyzer::set_global_equiv): New.
8565 (pointer_equiv_analyzer::set_cond_equiv): New.
8566 (pointer_equiv_analyzer::get_equiv): New.
8567 (pointer_equiv_analyzer::enter): New.
8568 (pointer_equiv_analyzer::leave): New.
8569 (pointer_equiv_analyzer::get_equiv_expr): New.
8570 (pta_valueize): New.
8571 (pointer_equiv_analyzer::visit_stmt): New.
8572 (pointer_equiv_analyzer::visit_edge): New.
8573 (hybrid_folder::value_of_expr): Call PTA.
8574 (hybrid_folder::value_on_edge): Same.
8575 (hybrid_folder::pre_fold_bb): New.
8576 (hybrid_folder::post_fold_bb): New.
8577 (hybrid_folder::pre_fold_stmt): New.
8578 (rvrp_folder::pre_fold_bb): New.
8579 (rvrp_folder::post_fold_bb): New.
8580 (rvrp_folder::pre_fold_stmt): New.
8581 (rvrp_folder::value_of_expr): Call PTA.
8582 (rvrp_folder::value_on_edge): Same.
8584 2021-06-08 Jakub Jelinek <jakub@redhat.com>
8587 * tree-inline.c (copy_tree_body_r): For OMP_CLAUSE_DEPEND don't
8588 check TREE_CODE if OMP_CLAUSE_DECL is NULL.
8590 2021-06-08 Richard Biener <rguenther@suse.de>
8592 PR middle-end/100951
8593 * tree-vect-generic.c (expand_vector_piecewise): Build a
8594 VECTOR_CST if all elements are constant.
8595 (expand_vector_condition): Likewise.
8596 (lower_vec_perm): Likewise.
8597 (expand_vector_conversion): Likewise.
8599 2021-06-08 Martin Liska <mliska@suse.cz>
8601 * doc/invoke.texi: Document new param evrp-sparse-threshold.
8603 2021-06-08 Martin Liska <mliska@suse.cz>
8605 * genautomata.c (create_automata): Fix typo.
8607 2021-06-08 Kewen Lin <linkw@linux.ibm.com>
8609 PR tree-optimization/100794
8610 * tree-predcom.c (tree_predictive_commoning_loop): Add parameter
8611 allow_unroll_p and only allow unrolling when it's true.
8612 (tree_predictive_commoning): Add parameter allow_unroll_p and
8614 (run_tree_predictive_commoning): Likewise.
8615 (pass_predcom::gate): Check flag_tree_loop_vectorize and
8616 global_options_set.x_flag_predictive_commoning.
8617 (pass_predcom::execute): Adjust for allow_unroll_p.
8619 2021-06-08 Kewen Lin <linkw@linux.ibm.com>
8621 * tree-predcom.c (execute_pred_commoning): Remove update_ssa call.
8622 (tree_predictive_commoning_loop): Factor some cleanup stuffs into
8623 lambda function cleanup, remove scev_reset call, and adjust return
8625 (tree_predictive_commoning): Adjust for different changed values,
8626 only set flag TODO_update_ssa_only_virtuals if changed.
8627 (pass_data pass_data_predcom): Remove TODO_update_ssa_only_virtuals
8628 from todo_flags_finish.
8630 2021-06-07 Andrew MacLeod <amacleod@redhat.com>
8632 * gimple-range-cache.cc (class sbr_sparse_bitmap): New.
8633 (sbr_sparse_bitmap::sbr_sparse_bitmap): New.
8634 (sbr_sparse_bitmap::bitmap_set_quad): New.
8635 (sbr_sparse_bitmap::bitmap_get_quad): New.
8636 (sbr_sparse_bitmap::set_bb_range): New.
8637 (sbr_sparse_bitmap::get_bb_range): New.
8638 (sbr_sparse_bitmap::bb_range_p): New.
8639 (block_range_cache::block_range_cache): initialize bitmap obstack.
8640 (block_range_cache::~block_range_cache): Destruct obstack.
8641 (block_range_cache::set_bb_range): Decide when to utilze the
8642 sparse on entry cache.
8643 * gimple-range-cache.h (block_range_cache): Add bitmap obstack.
8644 * params.opt (-param=evrp-sparse-threshold): New.
8646 2021-06-07 Andrew MacLeod <amacleod@redhat.com>
8648 * bitmap.c (bitmap_set_aligned_chunk): New.
8649 (bitmap_get_aligned_chunk): New.
8650 (test_aligned_chunk): New.
8651 (bitmap_c_tests): Call test_aligned_chunk.
8652 * bitmap.h (bitmap_set_aligned_chunk, bitmap_get_aligned_chunk): New.
8654 2021-06-07 Uroš Bizjak <ubizjak@gmail.com>
8657 * config/i386/i386-expand.c (ix86_expand_vector_init_duplicate):
8659 (ix86_expand_vector_init_one_nonzero): Ditto.
8660 (ix86_expand_vector_init_one_var): Ditto.
8661 (ix86_expand_vector_init_general): Ditto.
8662 * config/i386/mmx.md (vec_initv4qiqi): New expander.
8664 2021-06-07 Jeff Law <jeffreyalaw@gmail.com>
8666 * config/h8300/movepush.md: Change most _clobber_flags
8667 patterns to instead use <cczn> subst.
8668 (movsi_cczn): New pattern with usable CC cases split out.
8669 (movsi_h8sx_cczn): Likewise.
8671 2021-06-07 Martin Liska <mliska@suse.cz>
8673 * common/common-target.def: Split long lines and replace them
8675 * target.def: Likewise.
8676 * doc/tm.texi: Re-generated.
8678 2021-06-07 Jakub Jelinek <jakub@redhat.com>
8681 * fold-const.c (fold_read_from_vector): Return NULL if trying to
8682 read from a CONSTRUCTOR with vector type elements.
8684 2021-06-07 Jakub Jelinek <jakub@redhat.com>
8686 PR middle-end/100898
8687 * tree-inline.c (copy_bb): Only use gimple_call_arg_ptr if memcpy
8688 should copy any arguments. Don't call gimple_call_num_args
8689 on id->call_stmt or call_stmt more than once.
8691 2021-06-07 liuhongt <hongtao.liu@intel.com>
8694 * config/i386/sse.md (*sse4_1_zero_extendv8qiv8hi2_3): Refine
8696 (<insn>v4siv4di2): Delete constraints for define_expand.
8698 2021-06-07 liuhongt <hongtao.liu@intel.com>
8701 * config/i386/i386-expand.c (ix86_expand_builtin): Remove
8702 assignment of cfun->machine->has_explicit_vzeroupper.
8703 * config/i386/i386-features.c
8704 (ix86_add_reg_usage_to_vzerouppers): Delete.
8705 (ix86_add_reg_usage_to_vzeroupper): Ditto.
8706 (rest_of_handle_insert_vzeroupper): Remove
8707 ix86_add_reg_usage_to_vzerouppers, add df_analyze at the end
8709 (gate): Remove cfun->machine->has_explicit_vzeroupper.
8710 * config/i386/i386-protos.h (ix86_expand_avx_vzeroupper):
8712 * config/i386/i386.c (ix86_insn_callee_abi): New function.
8713 (ix86_initialize_callee_abi): Ditto.
8714 (ix86_expand_avx_vzeroupper): Ditto.
8715 (ix86_hard_regno_call_part_clobbered): Adjust for vzeroupper
8717 (TARGET_INSN_CALLEE_ABI): Define as ix86_insn_callee_abi.
8718 (ix86_emit_mode_set): Call ix86_expand_avx_vzeroupper
8720 * config/i386/i386.h (struct GTY(()) machine_function): Delete
8721 has_explicit_vzeroupper.
8722 * config/i386/i386.md (enum unspec): New member
8724 (ABI_DEFAULT,ABI_VZEROUPPER,ABI_UNKNOWN): New
8725 define_constants for insn callee abi index.
8726 * config/i386/predicates.md (vzeroupper_pattern): Adjust.
8727 * config/i386/sse.md (UNSPECV_VZEROUPPER): Deleted.
8728 (avx_vzeroupper): Call ix86_expand_avx_vzeroupper.
8729 (*avx_vzeroupper): Rename to ..
8730 (avx_vzeroupper_callee_abi): .. this, and adjust pattern as
8731 call_insn which has a special vzeroupper ABI.
8732 (*avx_vzeroupper_1): Deleted.
8734 2021-06-07 liuhongt <hongtao.liu@intel.com>
8737 * df-scan.c (df_get_call_refs): When call_insn is a fake call,
8738 it won't use stack pointer reg.
8739 * final.c (leaf_function_p): When call_insn is a fake call, it
8740 won't affect caller as a leaf function.
8741 * reg-stack.c (callee_clobbers_any_stack_reg): New.
8742 (subst_stack_regs): When call_insn doesn't clobber any stack
8743 reg, don't clear the arguments.
8744 * rtl.c (shallow_copy_rtx): Don't clear flag used when orig is
8746 * shrink-wrap.c (requires_stack_frame_p): No need for stack
8747 frame for a fake call.
8748 * rtl.h (FAKE_CALL_P): New macro.
8750 2021-06-06 Eric Botcazou <ebotcazou@adacore.com>
8752 * config/sparc/sparc-protos.h (order_regs_for_local_alloc): Rename
8754 (sparc_order_regs_for_local_alloc): ...this.
8755 (sparc_leaf_reg_remap): Declare.
8756 * config/sparc/sparc.h (ADJUST_REG_ALLOC_ORDER): Adjust.
8757 (LEAF_REG_REMAP): Reimplement as call to sparc_leaf_reg_remap.
8758 * config/sparc/sparc.c (leaf_reg_remap): Delete.
8759 (order_regs_for_local_alloc): Rename to...
8760 (sparc_order_regs_for_local_alloc): ...this.
8761 (sparc_leaf_reg_remap): New function.
8762 (sparc_conditional_register_usage): Do not modify leaf_reg_remap.
8764 2021-06-06 David Edelsohn <dje.gcc@gmail.com>
8766 * config/rs6000/rs6000.c (rs6000_xcoff_asm_output_aligned_decl_common):
8767 Use assemble_name to output BSS section name.
8769 2021-06-06 Uroš Bizjak <ubizjak@gmail.com>
8771 * config/i386/constraints.md (Bs):
8772 Remove boolean operators from match_test RTX.
8775 (M): Use "mode" variable instead of GET_MODE (op) in match_test RTX.
8778 2021-06-06 Martin Liska <mliska@suse.cz>
8780 * doc/extend.texi: Add missing @headitem.
8781 * doc/invoke.texi: Likewise.
8782 * doc/objc.texi: Likewise.
8784 2021-06-06 Martin Liska <mliska@suse.cz>
8786 * genhooks.c (emit_findices): Remove unused function.
8787 (emit_documentation): Do not call emit_findices
8788 and do not search for @Fcode directives.
8790 2021-06-06 Martin Liska <mliska@suse.cz>
8792 * doc/invoke.texi: Remove extra character.
8794 2021-06-05 Kewen Lin <linkw@linux.ibm.com>
8796 * config/sh/sh.md (doloop_end_split): Fix empty split condition.
8798 2021-06-05 Kewen Lin <linkw@linux.ibm.com>
8800 * config/sparc/sparc.md (*snedi<W:mode>_zero_vis3,
8801 *neg_snedi<W:mode>_zero_subxc, *plus_snedi<W:mode>_zero,
8802 *plus_plus_snedi<W:mode>_zero, *minus_snedi<W:mode>_zero,
8803 *minus_minus_snedi<W:mode>_zero): Fix empty split condition.
8805 2021-06-05 Kewen Lin <linkw@linux.ibm.com>
8807 * config/or1k/or1k.md (*movdi): Fix empty split condition.
8809 2021-06-05 Kewen Lin <linkw@linux.ibm.com>
8811 * config/mips/mips.md (<anonymous>, bswapsi2, bswapdi2): Fix empty
8814 2021-06-05 Kewen Lin <linkw@linux.ibm.com>
8816 * config/m68k/m68k.md (*zero_extend_inc, *zero_extend_dec,
8817 *zero_extendsidi2): Fix empty split condition.
8819 2021-06-05 Jeff Law <jeffreyalaw@gmail.com>
8821 * config/h8300/addsub.md: Fix split condition in define_insn_and_split
8823 * config/h8300/bitfield.md: Likewise.
8824 * config/h8300/combiner.md: Likewise.
8825 * config/h8300/divmod.md: Likewise.
8826 * config/h8300/extensions.md: Likewise.
8827 * config/h8300/jumpcall.md: Likewise.
8828 * config/h8300/movepush.md: Likewise.
8829 * config/h8300/multiply.md: Likewise.
8830 * config/h8300/other.md: Likewise.
8831 * config/h8300/shiftrotate.md: Likewise.
8832 * config/h8300/logical.md: Likewise. Fix split pattern to use
8833 code iterator that somehow slipped through.
8835 2021-06-04 Tobias Burnus <tobias@codesourcery.com>
8837 PR middle-end/100905
8838 * tree-nested.c (convert_nonlocal_omp_clauses,
8839 convert_local_omp_clauses): Handle OMP_CLAUSE_BIND.
8841 2021-06-04 Martin Sebor <msebor@redhat.com>
8843 PR middle-end/100732
8844 * gimple-fold.c (gimple_fold_builtin_sprintf): Avoid folding calls
8845 with either source or destination argument of invalid type.
8846 * tree-ssa-uninit.c (maybe_warn_pass_by_reference): Avoid checking
8847 calls with arguments of invalid type.
8849 2021-06-04 Martin Sebor <msebor@redhat.com>
8851 * attribs.c (init_attr_rdwr_indices): Use VLA bounds in the expected
8853 (attr_access::vla_bounds): Also handle VLA bounds.
8855 2021-06-04 Uroš Bizjak <ubizjak@gmail.com>
8857 * config/i386/predicates.md (GOT_memory_operand):
8858 Implement using match_code RTXes.
8859 (GOT32_symbol_operand): Ditto.
8861 2021-06-04 Uroš Bizjak <ubizjak@gmail.com>
8864 * config/i386/i386-expand.c (ix86_expand_vector_init_duplicate):
8866 (ix86_expand_vector_init_general): Ditto.
8867 Use SImode instead of word_mode for logic operations
8868 when GET_MODE_SIZE (mode) < UNITS_PER_WORD.
8869 (expand_vec_perm_even_odd_1): Assert that V2HI mode should be
8870 implemented by expand_vec_perm_1.
8871 (expand_vec_perm_broadcast_1): Assert that V2HI and V4HI modes
8872 should be implemented using standard shuffle patterns.
8873 (ix86_vectorize_vec_perm_const): Handle V2HImode. Add V4HI and
8874 V2HI modes to modes, implementable with shuffle for one operand.
8875 * config/i386/mmx.md (*punpckwd): New insn_and_split pattern.
8876 (*pshufw_1): New insn pattern.
8877 (*vec_dupv2hi): Ditto.
8878 (vec_initv2hihi): New expander.
8880 2021-06-04 Kewen Lin <linkw@linux.ibm.com>
8882 * config/arm/vfp.md (no_literal_pool_df_immediate,
8883 no_literal_pool_sf_immediate): Fix empty split condition.
8885 2021-06-04 Kewen Lin <linkw@linux.ibm.com>
8887 * config/i386/i386.md (*load_tp_x32_zext, *add_tp_x32_zext,
8888 *tls_dynamic_gnu2_combine_32): Fix empty split condition.
8889 * config/i386/sse.md (*<sse2_avx2>_pmovmskb_lt,
8890 *<sse2_avx2>_pmovmskb_zext_lt, *sse2_pmovmskb_ext_lt,
8891 *<sse4_1_avx2>_pblendvb_lt): Likewise.
8893 2021-06-04 Jakub Jelinek <jakub@redhat.com>
8896 * config/i386/i386-expand.c (ix86_expand_vector_init): Handle
8897 concatenation from half-sized modes with TImode elements.
8899 2021-06-04 Claudiu Zissulescu <claziss@synopsys.com>
8901 * config/arc/arc.c (arc_override_options): Disable millicode
8902 thunks when RF16 is on.
8904 2021-06-04 Haochen Gui <guihaoc@gcc.gnu.org>
8906 * config/rs6000/rs6000.h (PROMOTE_MODE): Remove.
8908 2021-06-04 Haochen Gui <guihaoc@gcc.gnu.org>
8910 * config/rs6000/rs6000-call.c (rs6000_promote_function_mode):
8911 Replace PROMOTE_MODE marco with its content.
8913 2021-06-03 Kewen Lin <linkw@linux.ibm.com>
8915 * config/cris/cris.md (*addi_reload): Fix empty split condition.
8917 2021-06-03 Jim Wilson <jimw@sifive.com>
8919 * config.gcc (riscv*-*-*): If --with-riscv-attribute not used,
8920 turn it on for all riscv targets.
8922 2021-06-03 Uroš Bizjak <ubizjak@gmail.com>
8925 * config/i386/i386-expand.c (ix86_expand_vector_set):
8926 Handle V2HI and V4QI modes.
8927 (ix86_expand_vector_extract): Ditto.
8928 * config/i386/mmx.md (*pinsrw): New insn pattern.
8931 (*pextrw_zext): Ditto.
8933 (*pextrb_zext): Ditto.
8934 (vec_setv2hi): New expander.
8935 (vec_extractv2hihi): Ditto.
8936 (vec_setv4qi): Ditto.
8937 (vec_extractv4qiqi): Ditto.
8938 (vec_setv8qi): Enable only for TARGET_SSE4_1.
8939 (vec_extractv8qiqi): Ditto.
8941 2021-06-03 Aaron Sawdey <acsawdey@linux.ibm.com>
8943 * config/rs6000/genfusion.pl (gen_logical_addsubf): Fix input
8944 order to subf instruction.
8945 * config/rs6000/fusion.md: Regenerate.
8947 2021-06-03 Aldy Hernandez <aldyh@redhat.com>
8949 * calls.c (get_size_range): Use range_of_expr instead of
8950 determine_value_range.
8951 * tree-affine.c (expr_to_aff_combination): Same.
8952 * tree-data-ref.c (split_constant_offset): Same.
8953 * tree-vrp.c (determine_value_range_1): Remove.
8954 (determine_value_range): Remove.
8955 * tree-vrp.h (determine_value_range): Remove.
8957 2021-06-03 Aldy Hernandez <aldyh@redhat.com>
8959 * function-tests.c (test_ranges): Call gimple_range_tests.
8960 * gimple-range-cache.cc (ranger_cache::range_of_expr): Pass stmt
8962 * gimple-range.cc (fur_source::get_operand): Do not call
8963 get_tree_range or gimple_range_global.
8965 (get_tree_range): Move to value-query.cc.
8966 Call get_arith_expr_range.
8967 (gimple_ranger::range_of_expr): Add argument to get_tree_range.
8968 Include gimple-range-tests.cc.
8969 * gimple-range.h (fold_range): Add argument.
8970 (get_tree_range): Remove.
8971 * selftest.h (gimple_range_tests): New.
8972 * value-query.cc (global_range_query::range_of_expr): Add
8974 (range_query::get_tree_range): Move from gimple-range.cc.
8975 * value-query.h (class range_query): Add get_tree_range and
8976 get_arith_expr_range. Make fur_source a friend.
8977 * vr-values.c (vr_values::range_of_expr): Pass stmt to
8979 * gimple-range-tests.cc: New file.
8981 2021-06-03 Aldy Hernandez <aldyh@redhat.com>
8983 * gimple-range.cc (gimple_ranger::export_global_ranges): Call
8984 update_global_range.
8985 * value-query.cc (update_global_range): New.
8986 * value-query.h (update_global_range): New.
8988 2021-06-03 David Malcolm <dmalcolm@redhat.com>
8990 * diagnostic-show-locus.c (diagnostic_show_locus): Don't reject
8991 printing the same location twice if there are fix-it hints,
8992 multiple locations, or a label.
8994 2021-06-03 Andre Vieira <andre.simoesdiasvieira@arm.com>
8996 * tree-vect-loop.c (vect_transform_loop): Use main loop's various'
8997 thresholds to narrow the upper bound on epilogue iterations.
8999 2021-06-03 Christophe Lyon <christophe.lyon@linaro.org>
9001 * config/arm/mve.md (mve_vabsq_f<mode>): Use 'abs' instead of unspec.
9002 (mve_vabsq_s<mode>): Likewise.
9003 * config/arm/neon.md (abs<mode>2): Rename to neon_abs<mode>2.
9004 * config/arm/unspecs.md (VABSQ_F, VABSQ_S): Delete.
9005 * config/arm/vec-common.md (neg<mode>2): Rename to
9006 <absneg_str><mode>2.
9008 2021-06-03 Claudiu Zissulescu <claziss@synopsys.com>
9010 * common/config/arc/arc-common.c (arc_option_optimization_table):
9012 * config/arc/arc.c (arc_unalign_branch_p): Remove unused function.
9013 * config/arc/arc.h (TARGET_MIXED_CODE): Remove macro.
9014 (INDEX_REG_CLASS): Only refer to GENERAL_REGS.
9015 * config/arc/arc.md (abssi2_mixed): Remove pattern.
9016 * config/arc/arc.opt (munalign-prob-threshold): Mark it obsolete.
9017 (malign-call): Likewise.
9018 (mmixed-code): Likewise.
9019 * doc/invoke.texi (ARC): Update doc.
9021 2021-06-03 Martin Liska <mliska@suse.cz>
9023 * common.opt: Use proper Enum values.
9024 * opts.c (COVERAGE_SANITIZER_OPT): Remove.
9025 (parse_sanitizer_options): Handle only sanitizer_opts.
9026 (common_handle_option): Just assign value.
9028 2021-06-03 Eric Botcazou <ebotcazou@adacore.com>
9031 * tree-inline.c (inline_forbidden_p): Remove test on return type.
9033 2021-06-03 Eric Botcazou <ebotcazou@adacore.com>
9035 * dwarf2out.c (loc_list_from_tree_1) <FUNCTION_DECL>: Also generate
9036 DW_OP_GNU_variable_value referencing an existing DIE at file scope.
9037 (type_byte_size): Inline into...
9038 (add_byte_size_attribute): ...this and call add_scalar_info.
9040 2021-06-03 Eric Botcazou <ebotcazou@adacore.com>
9042 * dwarf2out.c (mem_loc_descriptor) <UDIV>: Fix typo.
9043 (typed_binop_from_tree): New function.
9044 (loc_list_from_tree_1) <EXACT_DIV_EXPR>: For an unsigned type,
9045 turn a divide by a power of 2 into a shift.
9046 <CEIL_DIV_EXPR>: For an unsigned type, use a signed divide if the
9047 size of the mode is lower than DWARF2_ADDR_SIZE; otherwise, do a
9048 typed divide by calling typed_binop_from_tree.
9050 2021-06-03 Eric Botcazou <ebotcazou@adacore.com>
9052 * dwarf2out.c (scompare_loc_descriptor): Fix head comment.
9053 (is_handled_procedure_type): Likewise.
9054 (struct loc_descr_context): Add strict_signedness field.
9055 (resolve_args_picking_1): Deal with DW_OP_[GNU_]deref_type,
9056 DW_OP_[GNU_]convert and DW_OP_[GNU_]reinterpret.
9057 (resolve_args_picking): Minor tweak.
9058 (function_to_dwarf_procedure): Initialize strict_signedness field.
9059 (type_byte_size): Likewise.
9060 (field_byte_offset): Likewise.
9061 (gen_descr_array_type_die): Likewise.
9062 (gen_variant_part): Likewise.
9063 (loc_list_from_tree_1) <CALL_EXPR>: Tidy up and set strict_signedness
9064 to true when a context is present before evaluating the arguments.
9065 <COND_EXPR>: Do not generate a useless comparison with zero.
9066 When dereferencing an address, if strict_signedness is true and the
9067 type is small and signed, use DW_OP_deref_type to do the dereference
9068 and then DW_OP_convert to convert back to the generic type.
9070 2021-06-03 Jakub Jelinek <jakub@redhat.com>
9073 * tree-inline.c (copy_tree_body_r): Handle iterators on
9074 OMP_CLAUSE_AFFINITY or OMP_CLAUSE_DEPEND.
9076 2021-06-03 Kewen Lin <linkw@linux.ibm.com>
9078 * config/arc/arc.md (*bbit_di): Remove.
9080 2021-06-02 Christoph Muellner <cmuellner@gcc.gnu.org>
9082 PR rtl-optimization/100264
9083 * ree.c (get_sub_rtx): Ignore SET expressions without register
9084 destinations and remove assertion, as it is not valid anymore
9085 with this new behaviour.
9086 (merge_def_and_ext): Eliminate destination check for register
9087 as such SET expressions can't occur anymore.
9088 (combine_reaching_defs): Likewise.
9090 2021-06-02 Jakub Jelinek <jakub@redhat.com>
9093 * config/xtensa/xtensa.h (LEAF_REG_REMAP): Cast REGNO to int to avoid
9094 -Wtype-limits warnings.
9095 (DWARF_FRAME_REGISTER): Rewrite into ternary operator with addition
9096 in operands to avoid -Wsign-compare warnings.
9098 2021-06-02 Pat Haugen <pthaugen@linux.ibm.com>
9100 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Use
9103 2021-06-02 Vineet Gupta <vgupta@synopsys.com>
9105 * config/arc/arc.h (TARGET_CPU_DEFAULT): Change to hs38_linux.
9107 2021-06-02 Ilya Leoshkevich <iii@linux.ibm.com>
9109 * config/s390/s390.md(*ashrdi3_31<setcc><cconly>): Use a single
9111 * config/s390/subst.md(cconly_subst): Use a single constraint
9114 2021-06-02 Martin Liska <mliska@suse.cz>
9116 * ipa-icf.h: Use auto_vec for memory_access_types.
9118 2021-06-02 Jeff Law <jeffreyalaw@gmail.com>
9120 * config/h8300/h8300-protos.h (compute_a_shift_length): Drop unused
9121 argument from prototype.
9122 (output_logical_op): Add rtx_code argument.
9123 (compute_logical_op_length): Likewise.
9124 * config/h8300/h8300.c (h8300_and_costs): Pass additional argument
9125 to compute_a_shift_length.
9126 (output_logical_op); New argument with the rtx code rather than
9127 extracting it from an operand. Handle QImode too.
9128 (compute_logical_op_length): Similary.
9129 (compute_a_shift_length): Drop unused argument.
9130 * config/h8300/h8300.md (logicals): New code iterator.
9131 * config/h8300/logical.md (<code><mode>3 expander): Combine
9132 the "and" expander with the "ior"/"xor" expander.
9133 (bclr<mode>msx): Combine the QI/HI mode patterns.
9134 (<logical><mode>3 insns): Use code iterator rather than match_operator.
9135 Handle QImode as well. Update call to output_logical_op and
9136 compute_logical_op_length to pass in rtx_code
9137 Fix split condition on all define_insn_and_split patterns.
9138 (one_cmpl<mode>2<cczn>): Use <cczn> to support both clobbering
9139 the flags and setting ZN via existing define_subst.
9140 * config/h8300/shiftrotate.md: Drop unused argument from
9141 calls to compute_a_shift_length.
9142 Signed-off-by: Jeff Law <jeffreyalaw@gmail.com>
9144 2021-06-01 Andrew Pinski <apinski@marvell.com>
9146 PR tree-optimization/25290
9147 * tree-ssa-phiopt.c (match_simplify_replacement):
9149 (tree_ssa_phiopt_worker): Use match_simplify_replacement.
9150 (two_value_replacement): Change the comment about
9151 conditional_replacement.
9152 (conditional_replacement): Delete.
9154 2021-06-01 Andrew Pinski <apinski@marvell.com>
9156 PR tree-optimization/95481
9157 * tree-tailcall.c (find_tail_calls): Handle empty typed
9160 2021-06-01 Andrew Pinski <apinski@marvell.com>
9162 * gimplify.c (zero_sized_field_decl): Delete
9163 (zero_sized_type): Delete
9164 (gimplify_init_ctor_eval): Use is_empty_type instead
9165 of zero_sized_field_decl.
9166 (gimplify_modify_expr): Use is_empty_type instead of
9169 2021-06-01 Jason Merrill <jason@redhat.com>
9172 * tree.h (CALL_FROM_NEW_OR_DELETE_P): Adjust comment.
9174 2021-06-01 Jason Merrill <jason@redhat.com>
9177 * diagnostic.h (warning_enabled_at): Declare.
9178 * diagnostic.c (diagnostic_enabled): Factor out from...
9179 (diagnostic_report_diagnostic): ...here.
9180 (warning_enabled_at): New.
9182 2021-06-01 Aldy Hernandez <aldyh@redhat.com>
9184 * gimple-ssa-evrp.c: Enable exporting of global ranges.
9186 2021-06-01 Martin Liska <mliska@suse.cz>
9189 * doc/invoke.texi: Mention that -fgcse-after-reload
9190 is enabled with -O3.
9192 2021-06-01 liuhongt <hongtao.liu@intel.com>
9194 PR tree-optimization/98365
9195 * tree-if-conv.c (strip_nop_cond_scalar_reduction): New function.
9196 (is_cond_scalar_reduction): Handle nop_expr in cond scalar reduction.
9197 (convert_scalar_cond_reduction): Ditto.
9198 (predicate_scalar_phi): Ditto.
9200 2021-06-01 Andrew MacLeod <amacleod@redhat.com>
9202 PR tree-optimization/100781
9203 * gimple-range-cache.cc (ranger_cache::ranger_cache): Enable new
9204 value calculation by default.
9205 (ranger_cache::enable_new_values): New.
9206 (ranger_cache::disable_new_values): New.
9207 (ranger_cache::push_poor_value): Check if new values are allowed.
9208 * gimple-range-cache.h (class ranger_cache): New member/methods.
9209 * gimple-range.cc (gimple_ranger::range_of_expr): Check for debug
9210 statement, and disable/renable new value calculation.
9212 2021-06-01 Andrew MacLeod <amacleod@redhat.com>
9214 * gimple-range-cache.cc (ranger_cache::ssa_range_in_bb): Delete.
9215 (ranger_cache::range_of_def): New.
9216 (ranger_cache::entry_range): New.
9217 (ranger_cache::exit_range): New.
9218 (ranger_cache::range_of_expr): Adjust.
9219 (ranger_cache::range_on_edge): Adjust.
9220 (ranger_cache::propagate_cache): Call exit_range directly.
9221 * gimple-range-cache.h (class ranger_cache): Adjust.
9223 2021-06-01 Andrew MacLeod <amacleod@redhat.com>
9225 * gimple-range-cache.cc (ranger_cache::ranger_cache): Adjust for
9226 gori_compute being a member rather than base class.
9227 dervied call to member call.
9228 (ranger_cache::dump): No longer dump gori_map.
9229 (ranger_cache::dump_bb): New.
9230 (ranger_cache::get_non_stale_global_range): Adjust for gori_compute
9231 being a member rather than base class.
9232 (ranger_cache::set_global_range): Ditto.
9233 (ranger_cache::ssa_range_in_bb): Ditto.
9234 (ranger_cache::range_of_expr): New.
9235 (ranger_cache::range_on_edge): New.
9236 (ranger_cache::block_range): Adjust for gori_computes. Debug changes.
9237 (ranger_cache::propagate_cache): Adjust debugging output.
9238 (ranger_cache::fill_block_cache): Adjust for gori_computes. Debug
9240 * gimple-range-cache.h (class ranger_cache): Make gori_compute a
9241 member, and inherit from range_query instead.
9242 (ranger_cache::dump_bb): New. split from dump.
9243 * gimple-range-gori.cc (gori_compute::ssa_range_in_bb): Delete.
9244 (gori_compute::expr_range_at_stmt): Delete.
9245 (gori_compute::compute_name_range_op): Delete.
9246 (gori_compute::compute_operand_range_switch): Add fur_source.
9247 (gori_compute::compute_operand_range): Add fur_source param, inline
9248 old compute_name_range_op and optimize_logical_operands.
9249 (struct tf_range): Delete.
9250 (gori_compute::logical_combine): Adjust
9251 (gori_compute::optimize_logical_operands): Delete.
9252 (gori_compute::compute_logical_operands_in_chain): Delete.
9253 (gori_compute::compute_logical_operands): Adjust.
9254 (gori_compute::compute_operand1_range): Adjust to fur_source.
9255 (gori_compute::compute_operand2_range): Ditto.
9256 (gori_compute::compute_operand1_and_operand2_range): Ditto.
9257 (gori_compute::outgoing_edge_range_p): Add range_query parameter,
9258 and adjust to fur_source.
9259 * gimple-range-gori.h (class gori_compute): Simplify and adjust to
9260 range_query and fur_source.
9261 * gimple-range.cc (gimple_ranger::range_on_edge): Query range_on_edge
9262 from the ranger_cache..
9263 (gimple_ranger::fold_range_internal): Adjust to base class change of
9265 (gimple_ranger::dump_bb): Adjust dump.
9266 * gimple-range.h (gimple_ranger):export gori computes object.
9268 2021-06-01 Andrew MacLeod <amacleod@redhat.com>
9270 PR tree-optimization/100774
9271 * gimple-range-cache.cc (ranger_cache::get_non_stale_global_range):
9272 Constant values are also not stale.
9273 (ranger_cache::set_global_range): Range invariant values should also
9274 have the correct timestamp.
9276 2021-05-31 Martin Liska <mliska@suse.cz>
9278 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
9279 Unpack FUNCTION_DECL_DECL_TYPE.
9280 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
9281 Stream FUNCTION_DECL_DECL_TYPE instead of
9282 DECL_IS_OPERATOR_NEW_P.
9283 * tree.h (set_function_decl_type): Use FUNCTION_DECL_DECL_TYPE
9285 (DECL_IS_OPERATOR_NEW_P): Likewise.
9286 (DECL_IS_OPERATOR_DELETE_P): Likewise.
9287 (DECL_LAMBDA_FUNCTION_P): Likewise.
9289 2021-05-31 Richard Biener <rguenther@suse.de>
9292 * internal-fn.c (expand_SHUFFLEVECTOR): Define.
9293 * internal-fn.def (SHUFFLEVECTOR): New.
9294 * internal-fn.h (expand_SHUFFLEVECTOR): Declare.
9295 * doc/extend.texi: Document __builtin_shufflevector.
9297 2021-05-31 Peter Bergner <bergner@linux.ibm.com>
9300 * config/rs6000/predicates.md(mma_assemble_input_operand): Allow
9301 indexed form addresses.
9303 2021-05-29 Jeff Law <jlaw@tachyum.com>
9305 * config/h8300/h8300.c (h8300_emit_stack_adjustment): Drop unused
9306 parameter. Call callers fixed.
9308 (output_plussi): Add FALLTHRU markers.
9309 (h8300_shift_needs_scratch_p): Add gcc_unreachable marker.
9311 2021-05-29 Jakub Jelinek <jakub@redhat.com>
9314 * gimplify.c (gimplify_scan_omp_clauses): For taskloop simd
9315 combined with parallel, make sure to add shared clause to
9316 parallel for explicit linear clause.
9318 2021-05-29 Aldy Hernandez <aldyh@redhat.com>
9320 PR tree-optimization/100787
9321 * gimple-ssa-evrp.c: Disable exporting of global ranges.
9323 2021-05-28 Jason Merrill <jason@redhat.com>
9325 * tree-iterator.h (struct tree_stmt_iterator): Add operator++,
9326 operator--, operator*, operator==, and operator!=.
9327 (class tsi_range): New.
9329 2021-05-28 Richard Biener <rguenther@suse.de>
9331 PR tree-optimization/100778
9332 * tree-vect-slp.c (vect_build_slp_tree_1): Prevent possibly
9333 trapping ops in different BBs.
9335 2021-05-28 Richard Biener <rguenther@suse.de>
9338 * tree-inline.c (copy_bb): When processing __builtin_va_arg_pack
9339 copy fntype from original call.
9341 2021-05-28 Martin Liska <mliska@suse.cz>
9343 PR gcov-profile/100751
9344 * doc/gcov.texi: Revert partially a hunk that was wrong.
9346 2021-05-28 Cooper Qu <cooper.qu@linux.alibaba.com>
9348 * config/csky/csky-linux-elf.h (HAVE_sync_compare_and_swapqi):
9350 (HAVE_sync_compare_and_swaphi): Likewise.
9351 (HAVE_sync_compare_and_swapsi): Likewise.
9353 2021-05-28 Jakub Jelinek <jakub@redhat.com>
9356 * tree.h (OMP_CLAUSE_MAP_IMPLICIT): Define.
9358 2021-05-28 Tobias Burnus <tobias@codesourcery.com>
9360 * gimplify.c (gimplify_omp_affinity): New.
9361 (gimplify_scan_omp_clauses): Call it; remove affinity clause afterwards.
9362 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_AFFINITY.
9363 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_AFFINITY.
9364 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add clause.
9365 (walk_tree_1): Handle OMP_CLAUSE_AFFINITY.
9367 2021-05-28 Joern Rennecke <joern.rennecke@riscy-ip.com>
9368 Richard Biener <rguenther@suse.de>
9370 * match.pd <popcount & / + pattern matching>:
9371 When generating popcount directly fails, try doing it in two halves.
9373 2021-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
9375 * Makefile.in (generated_files): Add gimple-match.c and
9378 2021-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
9380 * gensupport.c (alter_predicate_for_insn): Handle MATCH_DUP.
9382 2021-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
9384 * gensupport.c (alter_constraints): Add MATCH_SCRATCH case.
9386 2021-05-28 Kewen Lin <linkw@linux.ibm.com>
9388 PR tree-optimization/99398
9389 * tree-ssa-forwprop.c (simplify_permutation): Optimize some cases
9390 where the fed operands are CTOR/CST and propagated through
9391 VIEW_CONVERT_EXPR. Call vec_perm_indices::new_shrunk_vector.
9392 * vec-perm-indices.c (vec_perm_indices::new_shrunk_vector): New
9394 * vec-perm-indices.h (vec_perm_indices::new_shrunk_vector): New
9397 2021-05-27 Uroš Bizjak <ubizjak@gmail.com>
9399 * config/i386/mmx.md (addv2sf3): Do not call
9400 ix86_fixup_binary_operands_no_copy.
9403 (<smaxmin:code>v2sf3): Ditto.
9404 (<plusminus:insn><MMXMODEI:mode>3): Ditto.
9405 (<plusminus:insn><VI_32:mode>3): Remove expander.
9406 (<plusminus:insn><VI_32:mode>3): Rename from
9407 "*<plusminus:insn><VI_32:mode>3".
9408 (mulv4hi): Do not call ix86_fixup_binary_operands_no_copy.
9409 (mulv2hi3): Remove expander.
9410 (mulv2hi3): Rename from *mulv2hi3.
9411 (<s>mulv2hi3_highpart): Remove expander.
9412 (<s>mulv2hi3_highpart): Rename from *<s>mulv2hi3_highpart.
9413 (<smaxmin:code><MMXMODE14:mode>3): Rename from
9414 "*mmx_<smaxmin:code><MMXMODE14:mode>3".
9415 (<smaxmin:code><SMAXMIN_MMXMODEI:mode>3): Remove expander.
9416 (SMAXMIN_MMXMODEI): Remove mode iterator.
9417 (<smaxmin:code>v4hi3): New expander.
9418 (<smaxmin:code>v4qi3): Rename from *<smaxmin:code>v4qi3.
9419 (<smaxmin:code>v2hi3): Rename from *<smaxmin:code>v2hi3.
9420 (<smaxmin:code><SMAXMIN_VI_32:mode>3): Remove expander.
9421 (SMAXMIN_VI_32): Remove mode iterator.
9422 (<umaxmin:code><MMXMODE24:mode>3): Rename from
9423 "*mmx_<umaxmin:code><MMXMODE24:mode>3".
9424 (<umaxmin:code><UMAXMIN_MMXMODEI:mode>3): Remove expander.
9425 (UMAXMIN_MMXMODEI): Remove mode iterator.
9426 (<umaxmin:code>v8qi3): New expander.
9427 (<umaxmin:code>v4qi3): Rename from *<umaxmin:code>v4qi3.
9428 (<umaxmin:code>v2hi3): Rename from *<umaxmin:code>v2hi3.
9429 (<umaxmin:code><SMAXMIN_VI_32:mode>3): Remove expander.
9430 (UMAXMIN_VI_32): Remove mode iterator.
9431 (<any_shift:insn>v2hi3): Remove expander.
9432 (<any_shift:insn>v2hi3): Rename from *<any_shift:insn>v2hi3.
9433 (<any_logic:code><MMXMODEI:mode>3): Do not call
9434 ix86_fixup_binary_operands_no_copy.
9435 (<any_logic:code><VI_32:mode>3): Remove expander.
9436 (<any_logic:code><VI_32:mode>3): Rename from
9437 "*<any_logic:code><VI_32:mode>3".
9438 (uavg<mode>3_ceil): Do not call ix86_fixup_binary_operands_no_copy.
9439 * config/i386/sse.md (div<VF2:mode>3): Do not call
9440 ix86_fixup_binary_operands_no_copy.
9441 (div<VF1:mode>3): Ditto.
9442 (<maxmin:code><VI8_AVX2_AVX512F:mode>3): Ditto.
9443 (smulhrsv4hi3): Ditto.
9444 (smulhrsv2hi3): Ditto.
9446 2021-05-27 Martin Sebor <msebor@redhat.com>
9448 * ggc.h (gt_ggc_mx): Add overloads for all integers.
9450 * hash-map.h (class hash_map): Add pch_nx_helper overloads for all
9452 (hash_map::operator==): New function.
9454 2021-05-27 Uroš Bizjak <ubizjak@gmail.com>
9457 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
9458 For TARGET_XOP bypass SSE comparisons for all supported vector modes.
9459 * config/i386/mmx.md (*xop_maskcmp<MMXMODEI:mode>3): New insn pattern.
9460 (*xop_maskcmp<VI_32:mode>3): Ditto.
9461 (*xop_maskcmp_uns<MMXMODEI:mode>3): Ditto.
9462 (*xop_maskcmp_uns<VI_32:mode>3): Ditto.
9464 2021-05-27 Richard Earnshaw <rearnsha@arm.com>
9467 * config/arm/arm.c (arm_configure_build_target): Remove parameter
9468 opts_set, directly check opts parameters for being non-null.
9469 (arm_option_restore): Update call to arm_configure_build_target.
9470 (arm_option_override): Likewise.
9471 (arm_can_inline_p): Likewise.
9472 (arm_valid_target_attribute_tree): Likewise.
9473 * config/arm/arm-c.c (arm_pragma_target_parse): Likewise.
9474 * config/arm/arm-protos.h (arm_configure_build_target): Adjust
9477 2021-05-27 Aldy Hernandez <aldyh@redhat.com>
9479 * vr-values.c (simplify_conversion_using_ranges): Use
9480 get_range_query instead of get_global_range_query.
9482 2021-05-27 Aldy Hernandez <aldyh@redhat.com>
9484 * gimple-range.cc (get_range_global): Move to value-query.cc.
9485 (gimple_range_global): Same.
9486 (get_global_range_query): Same.
9487 (global_range_query::range_of_expr): Same.
9488 * gimple-range.h (class global_range_query): Move to
9490 (gimple_range_global): Same.
9491 * tree-ssanames.c (get_range_info): Move to value-query.cc.
9492 (get_ptr_nonnull): Same.
9493 * tree-ssanames.h (get_range_info): Remove.
9494 (get_ptr_nonnull): Remove.
9495 * value-query.cc (get_ssa_name_range_info): Move from
9497 (get_ssa_name_ptr_info_nonnull): Same.
9498 (get_range_global): Move from gimple-range.cc.
9499 (gimple_range_global): Same.
9500 (get_global_range_query): Same.
9501 (global_range_query::range_of_expr): Same.
9502 * value-query.h (class global_range_query): Move from
9504 (gimple_range_global): Same.
9506 2021-05-27 Uroš Bizjak <ubizjak@gmail.com>
9509 * config/i386/mmx.md (uavgv4qi3_ceil): New insn pattern.
9510 (uavgv2hi3_ceil): Ditto.
9512 2021-05-26 Eric Botcazou <ebotcazou@adacore.com>
9515 * doc/extend.texi (scalar_storage_order): Rephrase slightly.
9517 2021-05-26 Aldy Hernandez <aldyh@redhat.com>
9519 * tree-ssanames.c (get_range_info): Merge both copies of
9520 get_range_info into one that works with irange.
9521 * tree-ssanames.h (get_range_info): Remove version that works on
9524 2021-05-26 Aldy Hernandez <aldyh@redhat.com>
9526 * builtins.c (check_nul_terminated_array): Convert to get_range_query.
9527 (expand_builtin_strnlen): Same.
9528 (determine_block_size): Same.
9529 * fold-const.c (expr_not_equal_to): Same.
9530 * gimple-fold.c (size_must_be_zero_p): Same.
9531 * gimple-match-head.c: Include gimple-range.h.
9532 * gimple-pretty-print.c (dump_ssaname_info): Convert to get_range_query.
9533 * gimple-ssa-warn-restrict.c
9534 (builtin_memref::extend_offset_range): Same.
9535 * graphite-sese-to-poly.c (add_param_constraints): Same.
9536 * internal-fn.c (get_min_precision): Same.
9537 * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Same.
9538 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
9540 * tree-data-ref.c (split_constant_offset): Same.
9541 (dr_step_indicator): Same.
9542 * tree-dfa.c (get_ref_base_and_extent): Same.
9543 * tree-scalar-evolution.c (iv_can_overflow_p): Same.
9544 * tree-ssa-loop-niter.c (refine_value_range_using_guard): Same.
9545 (determine_value_range): Same.
9546 (record_nonwrapping_iv): Same.
9547 (infer_loop_bounds_from_signedness): Same.
9548 (scev_var_range_cant_overflow): Same.
9549 * tree-ssa-phiopt.c (two_value_replacement): Same.
9550 * tree-ssa-pre.c (insert_into_preds_of_block): Same.
9551 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Same.
9552 * tree-ssa-strlen.c (handle_builtin_stxncpy_strncat): Same.
9554 (dump_strlen_info): Same.
9555 (set_strlen_range): Same.
9556 (maybe_diag_stxncpy_trunc): Same.
9557 (get_len_or_size): Same.
9558 (handle_integral_assign): Same.
9559 * tree-ssa-structalias.c (find_what_p_points_to): Same.
9560 * tree-ssa-uninit.c (find_var_cmp_const): Same.
9561 * tree-switch-conversion.c (bit_test_cluster::emit): Same.
9562 * tree-vect-patterns.c (vect_get_range_info): Same.
9563 (vect_recog_divmod_pattern): Same.
9564 * tree-vrp.c (intersect_range_with_nonzero_bits): Same.
9565 (register_edge_assert_for_2): Same.
9566 (determine_value_range_1): Same.
9567 * tree.c (get_range_pos_neg): Same.
9568 * vr-values.c (vr_values::get_lattice_entry): Same.
9569 (vr_values::update_value_range): Same.
9570 (simplify_conversion_using_ranges): Same.
9572 2021-05-26 Aldy Hernandez <aldyh@redhat.com>
9574 * gimple-ssa-warn-alloca.c (alloca_call_type): Use
9575 get_range_query instead of query argument.
9576 (pass_walloca::execute): Enable and disable global ranger.
9578 2021-05-26 Aldy Hernandez <aldyh@redhat.com>
9580 * gimple-ssa-evrp.c (rvrp_folder::rvrp_folder): Call
9582 (rvrp_folder::~rvrp_folder): Call disable_ranger.
9583 (hybrid_folder::hybrid_folder): Call enable_ranger.
9584 (hybrid_folder::~hybrid_folder): Call disable_ranger.
9586 2021-05-26 Aldy Hernandez <aldyh@redhat.com>
9588 * function.c (allocate_struct_function): Set cfun->x_range_query.
9589 * function.h (struct function): Declare x_range_query.
9590 (get_range_query): New.
9591 (get_global_range_query): New.
9592 * gimple-range-cache.cc (ssa_global_cache::ssa_global_cache):
9593 Remove call to safe_grow_cleared.
9594 * gimple-range.cc (get_range_global): New.
9595 (gimple_range_global): Move from gimple-range.h.
9596 (get_global_range_query): New.
9597 (global_range_query::range_of_expr): New.
9598 (enable_ranger): New.
9599 (disable_ranger): New.
9600 * gimple-range.h (gimple_range_global): Move to gimple-range.cc.
9601 (class global_range_query): New.
9602 (enable_ranger): New.
9603 (disable_ranger): New.
9604 * gimple-ssa-evrp.c (evrp_folder::~evrp_folder): Rename
9605 dump_all_value_ranges to dump.
9606 * tree-vrp.c (vrp_prop::finalize): Same.
9607 * value-query.cc (range_query::dump): New.
9608 * value-query.h (range_query::dump): New.
9609 * vr-values.c (vr_values::dump_all_value_ranges): Rename to...
9610 (vr_values::dump): ...this.
9611 * vr-values.h (class vr_values): Rename dump_all_value_ranges to
9612 dump and make virtual.
9614 2021-05-26 Uroš Bizjak <ubizjak@gmail.com>
9616 * config/i386/i386.c (ix86_autovectorize_vector_modes):
9617 Add V4QImode and V16QImode for TARGET_SSE2.
9618 * doc/sourcebuild.texi (Vector-specific attributes):
9619 Add vect64 and vect32 description.
9621 2021-05-26 Bernd Edlinger <bernd.edlinger@hotmail.de>
9623 * gimple-range-gori.cc (range_def_chain::register_dependency):
9624 Resize m_def_chain when needed.
9626 2021-05-26 Christophe Lyon <christophe.lyon@linaro.org>
9628 * config/arm/mve.md (mve_vaddvq_<supf><mode>): Prefix with '@'.
9629 * config/arm/neon.md (reduc_plus_scal_<mode>): Move to ..
9630 * config/arm/vec-common.md: .. here. Add support for MVE.
9632 2021-05-26 Jakub Jelinek <jakub@redhat.com>
9634 * config/epiphany/epiphany.c (epiphany_print_operand_address): Remove
9636 * config/microblaze/microblaze.c (microblaze_legitimize_address,
9638 microblaze_option_override, print_operand): Likewise.
9639 * config/microblaze/microblaze.md (call_internal_plt,
9640 call_value_intern_plt, call_value_intern): Likewise.
9641 * config/arm/aout.h (ASM_OUTPUT_ALIGN): Likewise.
9642 * config/iq2000/iq2000.md (call_internal1, call_value_internal1,
9643 call_value_multiple_internal1): Likewise.
9644 * config/bfin/bfin.c (symbolic_reference_mentioned_p): Likewise.
9646 2021-05-26 Jan-Benedict Glaw <jbglaw@lug-owl.de>
9648 * config/arc/arc.c (arc_address_cost, arc_print_operand_address,
9649 arc_ccfsm_advance, symbolic_reference_mentioned_p,
9650 arc_raw_symbolic_reference_mentioned_p): Remove register
9653 2021-05-26 Jakub Jelinek <jakub@redhat.com>
9656 * omp-low.c: Include omp-offload.h.
9657 (create_omp_child_function): If current_function_decl has
9658 "omp declare target" attribute and is_gimple_omp_offloaded,
9659 remove that attribute from the copy of attribute list and
9660 add "omp target entrypoint" attribute instead.
9661 (lower_omp_target): Mark .omp_data_sizes.* and .omp_data_kinds.*
9662 variables for offloading if in omp_maybe_offloaded_ctx.
9663 * omp-offload.c (pass_omp_target_link::execute): Nullify second
9664 argument to GOMP_target_data_ext in offloaded code.
9666 2021-05-26 Geng Qi <gengqi@linux.alibaba.com>
9668 * config/csky/csky.c (csky_can_change_mode_class): Delete.
9669 For csky, HF/SF mode use the low bits of VREGS.
9671 2021-05-26 Eric Botcazou <ebotcazou@adacore.com>
9673 * gimplify.c (gimplify_decl_expr): Do not clear TREE_READONLY on a
9674 DECL which is a reference for OMP.
9676 2021-05-26 Martin Liska <mliska@suse.cz>
9678 PR gcov-profile/100751
9679 * doc/gcov.texi: Document that __gcov_dump can be called just
9680 once and that __gcov_reset resets run-time counters.
9682 2021-05-26 Martin Liska <mliska@suse.cz>
9684 * doc/install.texi: Port relevant part from install-old.texi
9685 and re-generate list of CPUs and systems.
9687 2021-05-26 Martin Liska <mliska@suse.cz>
9689 * Makefile.in: Remove it.
9690 * doc/include/fdl.texi: Update next/previous chapters.
9691 * doc/install.texi: Likewise.
9692 * doc/install-old.texi: Removed.
9694 2021-05-26 Geng Qi <gengqi@linux.alibaba.com>
9696 * config/csky/csky.c (ck810_legitimate_index_p): Support
9697 "base + index" with DF mode.
9698 * config/csky/constraints.md ("Y"): New constraint for memory operands
9699 without index register.
9700 * config/csky/csky_insn_fpuv2.md (fpuv3_movdf): Use "Y" instead of "m"
9701 when mov between memory and general registers, and lower their priority.
9702 * config/csky/csky_insn_fpuv3.md (fpuv2_movdf): Likewise.
9704 2021-05-26 Geng Qi <gengqi@linux.alibaba.com>
9706 * config/csky/csky.c (TARGET_PROMOTE_PROTOTYPES): Delete.
9708 2021-05-26 Geng Qi <gengqi@linux.alibaba.com>
9710 * config/csky/csky.md (untyped_call): Emit clobber for return
9711 registers to mark them used.
9713 2021-05-26 Geng Qi <gengqi@linux.alibaba.com>
9715 * config/csky/csky.md (cskyv2_sextend_ldbs): New.
9717 2021-05-26 Andrew Pinski <apinski@marvell.com>
9719 * match.pd (x < 0 ? ~y : y): New patterns.
9721 2021-05-26 Andrew Pinski <apinski@marvell.com>
9723 * match.pd (A?CST1:CST2): Add simplifcations for A?0:+-1, A?+-1:0,
9724 A?POW2:0 and A?0:POW2.
9726 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
9728 * gimple-range-gori.cc (class logical_stmt_cache): Delete
9729 (logical_stmt_cache::logical_stmt_cache ): Delete.
9730 (logical_stmt_cache::~logical_stmt_cache): Delete.
9731 (logical_stmt_cache::cache_entry::dump): Delete.
9732 (logical_stmt_cache::get_range): Delete.
9733 (logical_stmt_cache::cached_name ): Delete.
9734 (logical_stmt_cache::same_cached_name): Delete.
9735 (logical_stmt_cache::cacheable_p): Delete.
9736 (logical_stmt_cache::slot_diagnostics ): Delete.
9737 (logical_stmt_cache::dump): Delete.
9738 (gori_compute_cache::gori_compute_cache): Delete.
9739 (gori_compute_cache::~gori_compute_cache): Delete.
9740 (gori_compute_cache::compute_operand_range): Delete.
9741 (gori_compute_cache::cache_stmt): Delete.
9742 * gimple-range-gori.h (gori_compute::compute_operand_range): Remove
9744 (class gori_compute_cache): Delete.
9746 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
9748 * gimple-range.cc (fold_using_range::range_of_range_op): Use m_gori
9750 (fold_using_range::range_of_address): Adjust.
9751 (fold_using_range::range_of_phi): Adjust.
9752 * gimple-range.h (class fur_source): Adjust.
9753 (fur_source::fur_source): Adjust.
9755 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
9757 * gimple-range-gori.cc (gori_compute::expr_range_at_stmt): Rename
9758 from expr_range_in_bb and adjust.
9759 (gori_compute::compute_name_range_op): Adjust.
9760 (gori_compute::optimize_logical_operands): Adjust.
9761 (gori_compute::compute_logical_operands_in_chain): Adjust.
9762 (gori_compute::compute_operand1_range): Adjust.
9763 (gori_compute::compute_operand2_range): Adjust.
9764 (ori_compute_cache::cache_stmt): Adjust.
9765 * gimple-range-gori.h (gori_compute): Rename prototype.
9767 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
9769 * gimple-range.cc (gimple_ranger::range_of_expr): Non-null should be
9770 checked only after range_of_stmt, not range_on_entry.
9771 (gimple_ranger::range_on_entry): Check for non-null in any
9772 predecessor block, if it is not already non-null.
9773 (gimple_ranger::range_on_exit): DOnt check for non-null after
9774 range on entry call.
9775 (gimple_ranger::dump_bb): New. Split from dump.
9776 (gimple_ranger::dump): Adjust.
9777 * gimple-range.h (class gimple_ranger): Adjust.
9779 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
9781 * gimple-range-cache.cc (struct range_timestamp): Delete.
9782 (class temporal_cache): Adjust.
9783 (temporal_cache::get_timestamp): Delete.
9784 (temporal_cache::set_dependency): Delete.
9785 (temporal_cache::temporal_value): Adjust.
9786 (temporal_cache::current_p): Take dependencies as params.
9787 (temporal_cache::set_timestamp): Adjust.
9788 (temporal_cache::set_always_current): Adjust.
9789 (ranger_cache::get_non_stale_global_range): Adjust.
9790 (ranger_cache::register_dependency): Delete.
9791 * gimple-range-cache.h (class range_cache): Adjust.
9793 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
9795 * gimple-range-gori.cc (range_def_chain::range_def_chain): init
9797 (range_def_chain::~range_def_chain): Dispose of obstack rather than
9798 each individual bitmap.
9799 (range_def_chain::set_import): New.
9800 (range_def_chain::get_imports): New.
9801 (range_def_chain::chain_import_p): New.
9802 (range_def_chain::register_dependency): Rename from build_def_chain
9804 (range_def_chain::def_chain_in_bitmap_p): New.
9805 (range_def_chain::add_def_chain_to_bitmap): New.
9806 (range_def_chain::has_def_chain): Just check first depenedence.
9807 (range_def_chain::get_def_chain): Process imports, use generic
9808 register_dependency routine.
9809 (range_def_chain::dump): New.
9810 (gori_map::gori_map): Allocate import list.
9811 (gori_map::~gori_map): Release imports.
9812 (gori_map::exports): Check for past allocated block size.
9813 (gori_map::imports): New.
9814 (gori_map::def_chain_in_export_p): Delete.
9815 (gori_map::is_import_p): New.
9816 (gori_map::maybe_add_gori): Handle imports.
9817 (gori_map::dump): Adjust output, add imports.
9818 (gori_compute::has_edge_range_p): Remove def_chain_in_export call.
9819 (gori_export_iterator::gori_export_iterator): New.
9820 (gori_export_iterator::next): New.
9821 (gori_export_iterator::get_name): New.
9822 * gimple-range-gori.h (range_def_chain): Add imports and direct
9823 dependecies via struct rdc.
9824 (range_def_chain::depend1): New.
9825 (range_def_chain::depend2): New.
9826 (class gori_map): Adjust.
9827 (FOR_EACH_GORI_IMPORT_NAME): New.
9828 (FOR_EACH_GORI_EXPORT_NAME): New.
9829 (class gori_export_iterator): New.
9831 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
9833 * gimple-range-cache.cc (ranger_cache::ranger_cache): Move initial
9834 export cache filling to here.
9835 * gimple-range-gori.cc (gori_compute::gori_compute) : From Here.
9837 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
9839 * gimple-range-gori.cc (range_def_chain): Move to gimple-range-gori.h.
9840 (gori_map): Move to gimple-range-gori.h.
9841 (gori_compute::gori_compute): Adjust.
9842 (gori_compute::~gori_compute): Delete.
9843 (gori_compute::compute_operand_range_switch): Adjust.
9844 (gori_compute::compute_operand_range): Adjust.
9845 (gori_compute::compute_logical_operands): Adjust.
9846 (gori_compute::has_edge_range_p ): Adjust.
9847 (gori_compute::set_range_invariant): Delete.
9848 (gori_compute::dump): Adjust.
9849 (gori_compute::outgoing_edge_range_p): Adjust.
9850 * gimple-range-gori.h (class range_def_chain): Relocate here.
9851 (class gori_map): Relocate here.
9852 (class gori_compute): Inherit from gori_map, and adjust.
9854 2021-05-25 Aldy Hernandez <aldyh@redhat.com>
9856 * value-range.cc (range_tests_legacy): Use
9857 build_nonstandard_integer_type instead of int and short.
9859 2021-05-25 Eric Botcazou <ebotcazou@adacore.com>
9861 * gimplify.c (gimplify_decl_expr): Clear TREE_READONLY on the DECL
9862 when really creating an initialization statement for it.
9864 2021-05-25 Eric Botcazou <ebotcazou@adacore.com>
9866 * tree-inline.c (setup_one_parameter): Fix thinko in new condition.
9868 2021-05-25 Kito Cheng <kito.cheng@sifive.com>
9870 * config/riscv/riscv.h (ASM_SPEC): Pass -mno-relax.
9872 2021-05-25 Martin Liska <mliska@suse.cz>
9874 PR tree-optimization/92860
9876 * optc-save-gen.awk: Remove exceptions.
9878 2021-05-25 Martin Liska <mliska@suse.cz>
9880 * asan.h (sanitize_coverage_p): New function.
9881 * doc/extend.texi: Document it.
9882 * fold-const.c (fold_range_test): Use sanitize_flags_p
9883 instead of flag_sanitize_coverage.
9884 (fold_truth_andor): Likewise.
9885 * sancov.c: Likewise.
9886 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
9887 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Handle
9888 -fsanitize-coverage when inlining.
9890 2021-05-25 Cooper Qu <cooper.qu@linux.alibaba.com>
9892 * config/csky/csky-modes.def : Fix copyright.
9894 2021-05-25 Cooper Qu <cooper.qu@linux.alibaba.com>
9896 * config/csky/csky-modes.def : Amend copyright.
9897 * config/csky/csky_insn_fpuv2.md : Likewise.
9898 * config/csky/csky_insn_fpuv3.md : Likewise.
9900 2021-05-25 Richard Biener <rguenther@suse.de>
9902 PR middle-end/100727
9903 * calls.c (initialize_argument_information): Explicitely test
9905 * gimple-expr.c (mark_addressable): Skip outer WITH_SIZE_EXPR.
9907 2021-05-25 Geng Qi <gengqi@linux.alibaba.com>
9909 * config/csky/csky.h (FRAME_POINTER_REGNUM): Use
9910 HARD_FRAME_POINTER_REGNUM and FRAME_POINTER_REGNUM instead of
9911 the signle definition. The signle definition may not work well
9912 at simplify_subreg_regno().
9913 (HARD_FRAME_POINTER_REGNUM): New.
9914 (ELIMINABLE_REGS): Add for HARD_FRAME_POINTER_REGNUM.
9915 * config/csky/csky.c (get_csky_live_regs, csky_can_eliminate,
9916 csky_initial_elimination_offset, csky_expand_prologue,
9917 csky_expand_epilogue): Add for HARD_FRAME_POINTER_REGNUM.
9919 2021-05-25 Geng Qi <gengqi@linux.alibaba.com>
9921 * config/csky/csky.c (csky_option_override):
9922 Init csky_arch_isa_features[] in advance, so TARGET_DSP
9923 and TARGET_DIV can be set well.
9925 2021-05-25 Geng Qi <gengqi@linux.alibaba.com>
9927 * config/csky/constraints.md ("l", "h"): Delete.
9928 * config/csky/csky.h (reg_class, REG_CLASS_NAMES,
9929 REG_CLASS_CONTENTS): Delete LO_REGS and HI_REGS.
9930 * config/csky/csky.c (regno_reg_classm,
9931 csky_secondary_reload, csky_register_move_cost):
9932 Use HILO_REGS instead of LO_REGS and HI_REGS.
9934 2021-05-25 Geng Qi <gengqi@linux.alibaba.com>
9936 * config/csky/constraints.md ("W"): New constriant for mem operand
9937 with base reg, index register.
9938 ("Q"): Renamed and modified "csky_valid_fpuv2_mem_operand" to
9939 "csky_valid_mem_constraint_operand" to deal with both "Q" and "W"
9941 ("Dv"): New constraint for const double value that can be used at
9943 * config/csky/csky-modes.def (HFmode): New mode.
9944 * config/csky/csky-protos.h (csky_valid_fpuv2_mem_operand): Rename
9945 to "csky_valid_mem_constraint_operand" and support new constraint
9947 (csky_get_movedouble_length): New.
9948 (fpuv3_output_move): New.
9949 (fpuv3_const_double): New.
9950 * config/csky/csky.c (csky_option_override): New arch CK860 with fpv3.
9951 (decompose_csky_address): Refine.
9952 (csky_print_operand): New "CONST_DOUBLE" operand.
9953 (csky_output_move): Support fpv3 instructions.
9954 (csky_get_movedouble_length): New.
9955 (fpuv3_output_move): New.
9956 (fpuv3_const_double): New.
9957 (csky_emit_compare): Cover float comparsion.
9958 (csky_emit_compare_float): Refine.
9959 (csky_vaild_fpuv2_mem_operand): Rename to
9960 "csky_valid_mem_constraint_operand" and support new constraint "W".
9961 (ck860_rtx_costs): New.
9962 (csky_rtx_costs): Add the cost calculation of CK860.
9963 (regno_reg_class): New vregs for fpuv3.
9964 (csky_dbx_regno): Likewise.
9965 (csky_cpu_cpp_builtins): New builtin macro for fpuv3.
9966 (csky_conditional_register_usage): Suporrot fpuv3.
9967 (csky_dwarf_register_span): Suporrot fpuv3.
9968 (csky_init_builtins, csky_mangle_type): Support "__fp16" type.
9969 (ck810_legitimate_index_p): Support fp16.
9970 * config/csky/csky.h (TARGET_TLS): ADD CK860.
9971 (CSKY_VREG_P, CSKY_VREG_LO_P, CSKY_VREG_HI_P): Support fpuv3.
9972 (TARGET_SINGLE_FPU): Support fpuv3.
9973 (TARGET_SUPPORT_FPV3): New.
9974 (FIRST_PSEUDO_REGISTER): Change to 202 to hold the new fpuv3 registers.
9975 (FIXED_REGISTERS, CALL_REALLY_USED_REGISTERS, REGISTER_NAMES,
9976 REG_CLASS_CONTENTS): Support fpuv3.
9977 * config/csky/csky.md (movsf): Move to cksy_insn_fpu.md and refine.
9978 (csky_movsf_fpv2): Likewise.
9979 (ck801_movsf): Likewise.
9980 (csky_movsf): Likewise.
9982 (csky_movdf_fpv2): Likewise.
9983 (ck801_movdf): Likewise.
9984 (csky_movdf): Likewise.
9985 (movsicc): Refine. Use "comparison_operatior" instead of
9986 "ordered_comparison_operatior".
9987 (addsicc): Likewise.
9988 (CSKY_FIRST_VFP3_REGNUM, CSKY_LAST_VFP3_REGNUM): New constant.
9989 (call_value_internal_vh): New.
9990 * config/csky/csky_cores.def (CK860): New arch and cpu.
9995 * config/csky/csky_insn_fpu.md: Refactor. Separate all float patterns
9996 into emit-patterns and match-patterns, remain the emit-patterns here,
9997 and move the match-patterns to csky_insn_fpuv2.md or
9999 * config/csky/csky_insn_fpuv2.md: New file for fpuv2 instructions.
10000 * config/csky/csky_insn_fpuv3.md: New file and new patterns for fpuv3
10002 * config/csky/csky_isa.def (fcr): New.
10007 (CK860): New definition for ck860.
10008 * config/csky/csky_tables.opt (ck860): New processors ck860,
10009 ck860f. And new arch ck860.
10014 * config/csky/predicates.md (csky_float_comparsion_operator): Delete
10015 "geu", "gtu", "leu", "ltu", which will never appear at float comparison.
10016 * config/csky/t-csky-elf: Support 860.
10017 * config/csky/t-csky-linux: Likewise.
10018 * doc/md.texi: Add "Q" and "W" constraints for C-SKY.
10020 2021-05-24 Aaron Sawdey <acsawdey@linux.ibm.com>
10022 * config/rs6000/genfusion.pl (gen_logical_addsubf): Refactor to
10023 add generation of logical-add and add-logical fusion pairs.
10024 * config/rs6000/rs6000-cpus.def: Add new fusion to ISA 3.1 mask
10026 * config/rs6000/rs6000.c (rs6000_option_override_internal): Turn on
10027 logical-add and add-logical fusion by default.
10028 * config/rs6000/rs6000.opt: Add -mpower10-fusion-logical-add and
10029 -mpower10-fusion-add-logical options.
10030 * config/rs6000/fusion.md: Regenerate file.
10032 2021-05-24 Aldy Hernandez <aldyh@redhat.com>
10034 * value-range.cc (irange::legacy_equal_p): Check type when
10035 comparing VR_VARYING types.
10036 (range_tests_legacy): Test comparing VARYING ranges of different
10039 2021-05-24 Wilco Dijkstra <wdijkstr@arm.com>
10041 * config/aarch64/aarch64.c (neoversen1_tunings):
10042 Enable AARCH64_EXTRA_TUNE_CHEAP_SHIFT_EXTEND.
10044 2021-05-24 Wilco Dijkstra <wdijkstr@arm.com>
10046 * config/aarch64/aarch64.c (aarch64_classify_symbol): Use GOT for
10047 extern weak symbols. Limit symbol offsets for non-GOT symbols with
10050 2021-05-24 Christophe Lyon <christophe.lyon@linaro.org>
10052 * config/arm/neon.md (vec_load_lanesxi<mode>)
10053 (vec_store_lanexoi<mode>): Move ...
10054 * config/arm/vec-common.md: here.
10056 2021-05-24 Christophe Lyon <christophe.lyon@linaro.org>
10058 * config/arm/neon.md (vec_load_lanesoi<mode>)
10059 (vec_store_lanesoi<mode>): Move ...
10060 * config/arm/vec-common.md: here.
10062 2021-05-24 liuhongt <hongtao.liu@intel.com>
10065 * config/i386/i386.c (ix86_gimple_fold_builtin): Replacing
10066 stmt with GIMPLE_NOP when lhs doesn't exist.
10068 2021-05-23 Uroš Bizjak <ubizjak@gmail.com>
10071 * config/i386/mmx.md (*push<VI_32:mode>2_rex64):
10072 New instruction pattern.
10073 (*push<VI_32:mode>2): Ditto.
10074 (push splitter for SSE registers): New splitter.
10076 2021-05-23 Andrew Pinski <apinski@marvell.com>
10078 * match.pd ((A & C) != 0 ? D : 0): Limit to non pointer types.
10080 2021-05-22 Aaron Sawdey <acsawdey@linux.ibm.com>
10082 * config/rs6000/genfusion.pl (gen_addadd): Fix incorrect attr types.
10083 * config/rs6000/fusion.md: Regenerate file.
10085 2021-05-21 Aaron Sawdey <acsawdey@linux.ibm.com>
10087 * config/rs6000/genfusion.pl (gen_addadd): New function.
10088 * config/rs6000/fusion.md: Regenerate file.
10089 * config/rs6000/rs6000-cpus.def: Add
10090 OPTION_MASK_P10_FUSION_2ADD to masks.
10091 * config/rs6000/rs6000.c (rs6000_option_override_internal):
10092 Handle default value of OPTION_MASK_P10_FUSION_2ADD.
10093 * config/rs6000/rs6000.opt: Add -mpower10-fusion-2add.
10095 2021-05-21 Jakub Jelinek <jakub@redhat.com>
10097 PR middle-end/99928
10098 * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT_TARGET): Define.
10099 * gimplify.c (enum gimplify_omp_var_data): Fix up
10100 GOVD_MAP_HAS_ATTACHMENTS value, add GOVD_FIRSTPRIVATE_IMPLICIT.
10101 (omp_lastprivate_for_combined_outer_constructs): If combined target
10102 has GOVD_FIRSTPRIVATE_IMPLICIT set for the decl, change it to
10103 GOVD_MAP | GOVD_SEEN.
10104 (gimplify_scan_omp_clauses): Set GOVD_FIRSTPRIVATE_IMPLICIT for
10105 firstprivate clauses with OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT.
10106 (gimplify_adjust_omp_clauses): For firstprivate clauses with
10107 OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT either clear that bit and
10108 OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT_TARGET too, or remove it and
10109 let it be replaced by implicit map clause.
10111 2021-05-21 Jakub Jelinek <jakub@redhat.com>
10113 PR middle-end/99928
10114 * gimplify.c (omp_lastprivate_for_combined_outer_constructs): New
10116 (gimplify_scan_omp_clauses) <case OMP_CLAUSE_LASTPRIVATE>: Use it.
10117 (gimplify_omp_for): Likewise.
10119 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
10121 PR middle-end/90115
10122 * omp-low.c (oacc_privatization_candidate_p): Reject 'static',
10123 'external' in blocks.
10125 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
10127 PR middle-end/90115
10128 * flag-types.h (enum openacc_privatization): New.
10129 * params.opt (-param=openacc-privatization): New.
10130 * doc/invoke.texi (openacc-privatization): Document it.
10131 * omp-general.h (get_openacc_privatization_dump_flags): New
10133 * omp-low.c (oacc_privatization_candidate_p): Add diagnostics.
10134 * omp-offload.c (execute_oacc_device_lower)
10135 <IFN_UNIQUE_OACC_PRIVATE>: Re-work diagnostics.
10136 * target.def (goacc.adjust_private_decl): Add 'location_t'
10138 * doc/tm.texi: Regenerate.
10139 * config/gcn/gcn-protos.h (gcn_goacc_adjust_private_decl): Adjust.
10140 * config/gcn/gcn-tree.c (gcn_goacc_adjust_private_decl): Likewise.
10141 * config/nvptx/nvptx.c (nvptx_goacc_adjust_private_decl):
10142 Likewise. Preserve it for...
10143 (nvptx_goacc_expand_var_decl): ... use here.
10145 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
10147 * doc/sourcebuild.texi (Other attributes): Document '__OPTIMIZE__'
10150 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
10152 PR middle-end/90115
10153 * omp-low.c (oacc_privatization_candidate_p): New function.
10154 (oacc_privatization_scan_clause_chain)
10155 (oacc_privatization_scan_decl_chain): Use it. Also
10156 'gcc_checking_assert' that we're not seeing duplicates.
10158 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
10160 PR middle-end/90115
10161 * omp-offload.c (execute_oacc_device_lower): Skip processing if no
10164 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
10166 PR middle-end/90115
10167 * omp-offload.c (execute_oacc_device_lower): Explain.
10169 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
10171 PR middle-end/90115
10172 * omp-offload.c (execute_oacc_device_lower)
10173 <IFN_UNIQUE_OACC_PRIVATE>: Diagnose and handle for 'level == -1'
10175 * internal-fn.c (expand_UNIQUE): Don't expect
10176 'IFN_UNIQUE_OACC_PRIVATE'.
10178 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
10180 PR middle-end/90115
10181 * omp-low.c (lower_omp_for): Don't evaluate OpenMP 'for' clauses.
10183 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
10185 PR middle-end/90115
10186 * config/nvptx/nvptx.c (nvptx_goacc_adjust_private_decl)
10187 (nvptx_goacc_expand_var_decl): Tighten.
10189 2021-05-21 Julian Brown <julian@codesourcery.com>
10190 Chung-Lin Tang <cltang@codesourcery.com>
10191 Thomas Schwinge <thomas@codesourcery.com>
10193 PR middle-end/90115
10194 * doc/tm.texi.in (TARGET_GOACC_EXPAND_VAR_DECL)
10195 (TARGET_GOACC_ADJUST_PRIVATE_DECL): Add documentation hooks.
10196 * doc/tm.texi: Regenerate.
10197 * expr.c (expand_expr_real_1): Expand decls using the
10198 expand_var_decl OpenACC hook if defined.
10199 * internal-fn.c (expand_UNIQUE): Handle IFN_UNIQUE_OACC_PRIVATE.
10200 * internal-fn.h (IFN_UNIQUE_CODES): Add OACC_PRIVATE.
10201 * omp-low.c (omp_context): Add oacc_privatization_candidates
10203 (lower_oacc_reductions): Add PRIVATE_MARKER parameter. Insert
10205 (lower_oacc_head_tail): Add PRIVATE_MARKER parameter. Modify
10206 private marker's gimple call arguments, and pass it to
10207 lower_oacc_reductions.
10208 (oacc_privatization_scan_clause_chain)
10209 (oacc_privatization_scan_decl_chain, lower_oacc_private_marker):
10211 (lower_omp_for, lower_omp_target, lower_omp_1): Use these.
10212 * omp-offload.c (convert.h): Include.
10213 (oacc_loop_xform_head_tail): Treat private-variable markers like
10214 fork/join when transforming head/tail sequences.
10215 (struct var_decl_rewrite_info): Add struct.
10216 (oacc_rewrite_var_decl, is_sync_builtin_call): New functions.
10217 (execute_oacc_device_lower): Support rewriting gang-private
10218 variables using target hook, and fix up addr_expr and var_decl
10220 * target.def (adjust_private_decl, expand_var_decl): New hooks.
10221 * config/gcn/gcn-protos.h (gcn_goacc_adjust_gangprivate_decl):
10223 (gcn_goacc_adjust_private_decl): ...this.
10224 * config/gcn/gcn-tree.c (gcn_goacc_adjust_gangprivate_decl):
10226 (gcn_goacc_adjust_private_decl): ...this. Add LEVEL parameter.
10227 * config/gcn/gcn.c (TARGET_GOACC_ADJUST_GANGPRIVATE_DECL): Rename
10228 definition using gcn_goacc_adjust_gangprivate_decl...
10229 (TARGET_GOACC_ADJUST_PRIVATE_DECL): ...to this, using
10230 gcn_goacc_adjust_private_decl.
10231 * config/nvptx/nvptx.c (tree-pretty-print.h): Include.
10232 (gang_private_shared_size): New global variable.
10233 (gang_private_shared_align): Likewise.
10234 (gang_private_shared_sym): Likewise.
10235 (gang_private_shared_hmap): Likewise.
10236 (nvptx_option_override): Initialize these.
10237 (nvptx_file_end): Output gang_private_shared_sym.
10238 (nvptx_goacc_adjust_private_decl, nvptx_goacc_expand_var_decl):
10240 (nvptx_set_current_function): Clear gang_private_shared_hmap.
10241 (TARGET_GOACC_ADJUST_PRIVATE_DECL): Define hook.
10242 (TARGET_GOACC_EXPAND_VAR_DECL): Likewise.
10244 2021-05-21 H.J. Lu <hjl.tools@gmail.com>
10246 * config/i386/i386-modes.def (MAX_BITSIZE_MODE_ANY_INT): Removed.
10248 2021-05-21 Richard Biener <rguenther@suse.de>
10249 H.J. Lu <hjl.tools@gmail.com>
10251 PR middle-end/90773
10252 * expr.c (expand_constructor): Elide expand_constructor if
10253 move by pieces is preferred.
10255 2021-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10257 * config/aarch64/aarch64-builtins.c (aarch64_call_properties):
10258 Take a flag and mode value as arguments.
10259 (aarch64_modifies_global_state_p): Likewise.
10260 (aarch64_reads_global_state_p): Likewise.
10261 (aarch64_could_trap_p): Likewise.
10262 (aarch64_get_attributes): Likewise.
10263 (aarch64_init_simd_builtins): Adjust callsite of above.
10264 (aarch64_init_fcmla_laneq_builtins): Use aarch64_get_attributes to get
10265 function attributes to apply to builtins.
10266 (aarch64_init_crc32_builtins): Likewise.
10267 (aarch64_init_builtin_rsqrt): Likewise.
10269 2021-05-21 Aaron Sawdey <acsawdey@linux.ibm.com>
10271 * config/rs6000/rs6000.md (define_attr "type"): Add types for fusion.
10272 * config/rs6000/genfusion.pl (gen_ld_cmpi_p10): Use new fusion types.
10273 (gen_2logical): Use new fusion types.
10274 * config/rs6000/fusion.md: Regenerate.
10276 2021-05-21 Uroš Bizjak <ubizjak@gmail.com>
10279 * config/i386/i386-expand.c (ix86_expand_sse_movcc):
10280 Handle V4QI and V2HI modes.
10281 (ix86_expand_sse_movcc): Ditto.
10282 * config/i386/mmx.md (*<sat_plusminus:insn><VI_32:mode>3):
10283 New instruction pattern.
10284 (*eq<VI_32:mode>3): Ditto.
10285 (*gt<VI_32:mode>3): Ditto.
10286 (*xop_pcmov_<VI_32:mode>): Ditto.
10287 (mmx_pblendvb32): Ditto.
10288 (mmx_pblendvb64): Rename from mmx_pblendvb.
10289 (vec_cmp<VI_32:mode><VI_32:mode>): New expander.
10290 (vec_cmpu<VI_32:mode><VI_32:mode>): Ditto.
10291 (vcond<VI_32:mode><VI_32:mode>): Ditto.
10292 (vcondu<VI_32:mode><VI_32:mode>): Ditto.
10293 (vcond_mask_<VI_32:mode><VI_32:mode>): Ditto.
10295 2021-05-21 Jakub Jelinek <jakub@redhat.com>
10297 PR tree-optimization/94589
10298 * tree-ssa-phiopt.c (spaceship_replacement): For integral rhs1 and
10299 rhs2, treat x <= 4 equivalently to x < 5 etc. In cmp1 and cmp2 (if
10300 not the same as cmp3) treat <= the same as < and >= the same as >.
10301 Don't require that cond2_phi_edge is true edge, instead take
10302 false/true edges into account based on cmp1/cmp2 comparison kinds.
10304 2021-05-21 Uroš Bizjak <ubizjak@gmail.com>
10307 * config/i386/mmx.md (SMAXMIN_MMXMODEI): New mode iterator.
10308 (<smaxmin:code><SMAXMIN_MMXMODEI:mode>3): Macroize expander
10309 from <smaxmin:code>v4hi3> and <smaxmin:code><MMXMODE14:mode>3
10310 using SMAXMIN_MMXMODEI mode iterator.
10311 (*<smaxmin:code>v4qi3): New insn pattern.
10312 (*<smaxmin:code>v2hi3): Ditto.
10313 (SMAXMIN_VI_32): New mode iterator.
10314 (<smaxmin:code><SMAXMIN_VI_32>mode3): New expander.
10315 (UMAXMIN_MMXMODEI): New mode iterator.
10316 (<umaxmin:code><UMAXMIN_MMXMODEI:mode>3): Macroize expander
10317 from <umaxmin:code>v8qi3> and <umaxmin:code><MMXMODE24:mode>3
10318 using UMAXMIN_MMXMODEI mode iterator.
10319 (*<umaxmin:code>v4qi3): New insn pattern.
10320 (*<umaxmin:code>v2hi3): Ditto.
10321 (UMAXMIN_VI_32): New mode iterator.
10322 (<umaxmin:code><UMAXMIN_VI_32>mode3): New expander.
10323 (abs<VI_32:mode>2): New insn pattern.
10324 (ssse3_abs<MMXMODEI:mode>2, abs<MMXMODEI:mode>2): Move from ...
10325 * config/i386/sse.md: ... here.
10327 2021-05-20 Clement Chigot <clement.chigot@atos.net>
10328 David Edelsohn <dje.gcc@gmail.com>
10330 * collect2.c (scan_prog_file): Issue non-fatal warning for
10333 2021-05-20 Jonathan Wakely <jwakely@redhat.com>
10335 * doc/invoke.texi (-Wno-c++11-extensions)
10336 (-Wno-c++14-extensions, -Wno-c++17-extensions)
10337 (-Wno-c++20-extensions, -Wno-c++23-extensions): Document
10340 2021-05-20 Indu Bhagat <indu.bhagat@oracle.com>
10342 * config/c6x/c6x.c (c6x_output_file_unwind): Use dwarf_debuginfo_p.
10343 * config/darwin.c (darwin_override_options): Likewise.
10344 * config/i386/cygming.h (DBX_REGISTER_NUMBER): Likewise.
10345 * config/i386/darwin.h (DBX_REGISTER_NUMBER): Likewise.
10346 (DWARF2_FRAME_REG_OUT): Likewise.
10347 * config/mips/mips.c (mips_output_filename): Likewise.
10348 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name):
10350 (rs6000_dbx_register_number): Likewise.
10351 * dbxout.c: Include flags.h.
10352 * dwarf2cfi.c (cfi_label_required_p): Likewise.
10353 (dwarf2out_do_frame): Likewise.
10354 * except.c: Include flags.h.
10355 * final.c (dwarf2_debug_info_emitted_p): Likewise.
10356 (final_scan_insn_1): Likewise.
10357 * flags.h (dwarf_debuginfo_p): New function declaration.
10358 * opts.c (dwarf_debuginfo_p): New function definition.
10359 * targhooks.c (default_debug_unwind_info): Use dwarf_debuginfo_p.
10360 * toplev.c (process_options): Likewise.
10362 2021-05-20 Indu Bhagat <indu.bhagat@oracle.com>
10364 * common.opt: Change type to support bitmasks.
10365 * flag-types.h (enum debug_info_type): Rename enumerator constants.
10366 (NO_DEBUG): New bitmask.
10367 (DBX_DEBUG): Likewise.
10368 (DWARF2_DEBUG): Likewise.
10369 (XCOFF_DEBUG): Likewise.
10370 (VMS_DEBUG): Likewise.
10371 (VMS_AND_DWARF2_DEBUG): Likewise.
10372 * flags.h (debug_set_to_format): New function declaration.
10373 (debug_set_count): Likewise.
10374 (debug_set_names): Likewise.
10375 * opts.c (debug_type_masks): Array of bitmasks for debug formats.
10376 (debug_set_to_format): New function definition.
10377 (debug_set_count): Likewise.
10378 (debug_set_names): Likewise.
10379 (set_debug_level): Update access to debug_type_names.
10380 * toplev.c: Likewise.
10382 2021-05-20 Martin Sebor <msebor@redhat.com>
10384 PR middle-end/100684
10385 * tree-ssa-ccp.c (pass_post_ipa_warn::execute): Handle C++ lambda.
10387 2021-05-20 Uroš Bizjak <ubizjak@gmail.com>
10390 * config/i386/i386.md (isa): Remove x64_bmi.
10391 (enabled): Remove x64_bmi.
10392 * config/i386/mmx.md (mmx_andnot<MMXMODEI:mode>3):
10393 Remove general register alternative.
10394 (*andnot<VI_32:mode>3): Ditto.
10395 (*mmx_<any_logic:code><MMXMODEI:mode>3): Ditto.
10396 (*<any_logic:code><VI_32:mode>3): Ditto.
10398 2021-05-20 Kewen Lin <linkw@linux.ibm.com>
10400 * config/arm/arm.c: Include head files tree-vectorizer.h and
10403 2021-05-20 Uroš Bizjak <ubizjak@gmail.com>
10406 * config/i386/mmx.md (Yv_Yw): Revert adding V4QI and V2HI modes.
10407 (*<plusminus:insn><VI_32:mode>3): Use Yw instad of <Yv_Yw> constrint.
10408 (<s>mulv4hi3_highpart): New expander.
10409 (*<s>mulv2hi3_highpart): New insn pattern.
10410 (<s>mulv2hi3_higpart): New expander.
10411 (*<any_shift:insn>v2hi3): New insn pattern.
10412 (<any_shift:insn>v2hi3): New expander.
10413 * config/i386/sse.md (smulhrsv2hi3): New expander.
10414 (*smulhrsv2hi3): New insn pattern.
10416 2021-05-20 Kewen Lin <linkw@linux.ibm.com>
10418 * doc/invoke.texi (vect-inner-loop-cost-factor): Document new
10420 * params.opt (vect-inner-loop-cost-factor): New.
10421 * targhooks.c (default_add_stmt_cost): Replace hardcoded factor
10422 50 with LOOP_VINFO_INNER_LOOP_COST_FACTOR, include head file
10423 tree-vectorizer.h and its required ones.
10424 * config/aarch64/aarch64.c (aarch64_add_stmt_cost): Replace
10425 hardcoded factor 50 with LOOP_VINFO_INNER_LOOP_COST_FACTOR.
10426 * config/arm/arm.c (arm_add_stmt_cost): Likewise.
10427 * config/i386/i386.c (ix86_add_stmt_cost): Likewise.
10428 * config/rs6000/rs6000.c (rs6000_add_stmt_cost): Likewise.
10429 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
10431 (_loop_vec_info::_loop_vec_info): Init inner_loop_cost_factor.
10432 * tree-vectorizer.h (_loop_vec_info): Add inner_loop_cost_factor.
10433 (LOOP_VINFO_INNER_LOOP_COST_FACTOR): New macro.
10435 2021-05-20 Christophe Lyon <christophe.lyon@linaro.org>
10436 Torbjörn Svensson <torbjorn.svensson@st.com>
10439 * doc/cpp.texi (Common Predefined Macros): Document __FILE_NAME__.
10441 2021-05-20 Jakub Jelinek <jakub@redhat.com>
10443 PR middle-end/99928
10444 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_LINEAR>: For
10445 explicit linear clause when combined with target, make it map(tofrom:)
10446 instead of no clause or firstprivate.
10448 2021-05-20 Jakub Jelinek <jakub@redhat.com>
10450 PR tree-optimization/94589
10451 * match.pd ((X & Y) == X -> (X & ~Y) == 0): Simplify even in presence
10452 of integral conversions.
10454 2021-05-19 Andrew MacLeod <amacleod@redhat.com>
10456 * gimple-range.cc (fur_source::get_operand): New.
10457 (gimple_range_fold): Delete.
10458 (fold_using_range::fold_stmt): Move from gimple_ranger::calc_stmt.
10459 (fold_using_range::range_of_range_op): Move from gimple_ranger.
10460 (fold_using_range::range_of_address): Ditto.
10461 (fold_using_range::range_of_phi): Ditto.
10462 (fold_using_range::range_of_call): Ditto.
10463 (fold_using_range::range_of_builtin_ubsan_call): Move from
10464 range_of_builtin_ubsan_call.
10465 (fold_using_range::range_of_builtin_call): Move from
10466 range_of_builtin_call.
10467 (gimple_ranger::range_of_builtin_call): Delete.
10468 (fold_using_range::range_of_cond_expr): Move from gimple_ranger.
10469 (gimple_ranger::fold_range_internal): New.
10470 (gimple_ranger::range_of_stmt): Use new fold_using_range API.
10471 (fold_using_range::range_of_ssa_name_with_loop_info): Move from
10472 gimple_ranger. Improve ranges of SSA_NAMES when possible.
10473 * gimple-range.h (gimple_ranger): Remove various range_of routines.
10474 (class fur_source): New.
10475 (class fold_using_range): New.
10476 (fur_source::fur_source): New.
10478 * vr-values.c (vr_values::extract_range_basic): Use fold_using_range
10479 instead of range_of_builtin_call.
10481 2021-05-19 Jonathan Wakely <jwakely@redhat.com>
10483 * doc/cpp.texi (Common Predefined Macros): Update documentation
10484 for the __GXX_EXPERIMENTAL_CXX0X__ macro.
10486 2021-05-19 Alex Coplan <alex.coplan@arm.com>
10489 * config/arm/arm.md (nonsecure_call_internal): Always ensure
10490 callee's address is in a register.
10492 2021-05-19 Geng Qi <gengqi@linux.alibaba.com>
10494 * common/config/riscv/riscv-common.c
10495 (riscv_subset_list::parsing_subset_version): Properly parse the letter
10497 (riscv_subset_list::parse_std_ext,
10498 riscv_subset_list::parse_multiletter_ext): To handle errors generated
10499 in riscv_subset_list::parsing_subset_version.
10501 2021-05-19 Jonathan Wright <jonathan.wright@arm.com>
10503 * config/aarch64/aarch64-simd.md: Use "neon_move_narrow_q"
10504 type attribute in patterns generating XTN(2).
10506 2021-05-19 Jonathan Wright <jonathan.wright@arm.com>
10508 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_pack_trunc_<mode>):
10509 Remove as duplicate of...
10510 (aarch64_xtn<mode>): This.
10511 (aarch64_xtn2<mode>_le): Move position in file.
10512 (aarch64_xtn2<mode>_be): Move position in file.
10513 (aarch64_xtn2<mode>): Move position in file.
10514 (vec_pack_trunc_<mode>): Define as an expander.
10516 2021-05-19 Jonathan Wright <jonathan.wright@arm.com>
10518 * config/aarch64/aarch64-simd-builtins.def: Split builtin
10519 generation for aarch64_<sur>q<r>shr<u>n_n<mode> pattern into
10520 separate scalar and vector generators.
10521 * config/aarch64/aarch64-simd.md
10522 (aarch64_<sur>q<r>shr<u>n_n<mode>): Define as an expander and
10524 (aarch64_<sur>q<r>shr<u>n_n<mode>_insn_le): This and...
10525 (aarch64_<sur>q<r>shr<u>n_n<mode>_insn_be): This.
10526 * config/aarch64/iterators.md: Define SD_HSDI iterator.
10528 2021-05-19 Jonathn Wright <jonathan.wright@arm.com>
10530 * config/aarch64/aarch64-simd.md: Use UNSPEC_SQXTUN instead
10532 * config/aarch64/iterators.md: Remove UNSPEC_SQXTUN2.
10534 2021-05-19 Jonathan Wright <jonathan.wright@arm.com>
10536 * config/aarch64/aarch64-simd.md (aarch64_<sur>q<r>shr<u>n2_n<mode>):
10537 Implement as an expand emitting a big/little endian
10538 instruction pattern.
10539 (aarch64_<sur>q<r>shr<u>n2_n<mode>_insn_le): Define.
10540 (aarch64_<sur>q<r>shr<u>n2_n<mode>_insn_be): Define.
10542 2021-05-19 Jonathan Wright <jonathan.wright@arm.com>
10544 * config/aarch64/aarch64-simd.md (aarch64_<sur><addsub>hn2<mode>):
10545 Implement as an expand emitting a big/little endian
10546 instruction pattern.
10547 (aarch64_<sur><addsub>hn2<mode>_insn_le): Define.
10548 (aarch64_<sur><addsub>hn2<mode>_insn_be): Define.
10549 * config/aarch64/iterators.md: Remove UNSPEC_[R]ADDHN2 and
10550 UNSPEC_[R]SUBHN2 unspecs and ADDSUBHN2 iterator.
10552 2021-05-19 Richard Biener <rguenther@suse.de>
10554 PR middle-end/100672
10555 * fold-const.c (fold_negate_expr_1): Use element_precision.
10556 (negate_expr_p): Likewise.
10558 2021-05-19 Andre Vieira <andre.simoesdiasvieira@arm.com>
10560 * config/aarch64/iterators.md (SVE_PRED_LOAD): New iterator.
10561 (pred_load): New int attribute.
10562 * config/aarch64/aarch64-sve.md
10563 (aarch64_load_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>): Use
10564 SVE_PRED_LOAD enum iterator and corresponding pred_load attribute.
10565 * config/aarch64/aarch64-sve-builtins-base.cc (expand): Update call to
10566 code_for_aarch64_load.
10568 2021-05-19 Richard Biener <rguenther@suse.de>
10570 * cfgexpand.c (discover_nonconstant_array_refs_r): Make
10571 sure TARGET_MEM_REF bases are expanded as memory.
10572 * tree-ssa-operands.c (operands_scanner::get_tmr_operands):
10573 Do not mark TARGET_MEM_REF bases addressable.
10574 * tree-ssa.c (non_rewritable_mem_ref_base): Handle
10575 TARGET_MEM_REF bases as never rewritable.
10576 * gimple-walk.c (walk_stmt_load_store_addr_ops): Do not
10577 walk TARGET_MEM_REF bases as address-takens.
10578 * tree-ssa-dce.c (ref_may_be_aliased): Handle TARGET_MEM_REF.
10580 2021-05-19 Richard Biener <rguenther@suse.de>
10582 * builtins.c (get_object_alignment_1): Strip outer
10584 * tree-dfa.c (get_ref_base_and_extent): Handle outer
10585 WITH_SIZE_EXPR for size processing and process the
10587 * tree-ssa-alias.c (ao_ref_base_alias_set): Strip
10588 outer WITH_SIZE_EXPR.
10589 (ao_ref_base_alias_ptr_type): Likewise.
10590 (refs_may_alias_p_2): Allow WITH_SIZE_EXPR in ref->ref
10591 and handle that accordingly, stripping it for the
10592 core alias workers.
10593 * tree.c (get_base_address): Handle WITH_SIZE_EXPR by
10594 looking through it instead of returning NULL.
10596 2021-05-19 Jakub Jelinek <jakub@redhat.com>
10598 PR middle-end/100576
10599 * builtins.c (check_read_access): Convert bound to size_type_node if
10602 2021-05-19 Richard Biener <rguenther@suse.de>
10604 * tree-cfg.c (verify_types_in_gimple_min_lval): Inline...
10605 (verify_types_in_gimple_reference): ... here. Sanitize.
10606 (verify_gimple_call): Verify references in LHS and arguments.
10607 (verify_gimple_assign_single): Reject WITH_SIZE_EXPR.
10609 2021-05-19 Uroš Bizjak <ubizjak@gmail.com>
10611 * config/i386/i386.h (VALID_INT_MODE_P):
10612 Add V8QI, V4HI and V2SI modes for TARGET_64BIT.
10613 * config/i386/i386.md (isa): Add x64_bmi.
10614 (enabled): Handle x64_bmi.
10615 * config/i386/mmx.md (mmx_andnot<MMXMODEI:mode>3):
10616 Add alternative using 64bit general registers.
10617 (*mmx_<any_logic:code><MMXMODEI:mode>3): Ditto.
10619 2021-05-19 Jakub Jelinek <jakub@redhat.com>
10621 PR middle-end/99928
10622 * tree.h (OMP_MASTER_COMBINED): Define.
10623 * gimplify.c (gimplify_scan_omp_clauses): Rewrite lastprivate
10624 handling for outer combined/composite constructs to a loop.
10625 Handle lastprivate on combined target.
10626 (gimplify_expr): Formatting fix.
10628 2021-05-19 Xionghu Luo <luoxhu@linux.ibm.com>
10630 * passes.def: Add sink_code pass before store_merging.
10631 * tree-ssa-sink.c (pass_sink_code:clone): New.
10633 2021-05-18 Bill Schmidt <wschmidt@linux.ibm.com>
10635 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Remove call to
10636 rs6000_special_adjust_field_align_p.
10637 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
10638 * config/rs6000/rs6000-call.c (rs6000_function_arg_boundary):
10639 Remove ABI warning.
10640 (rs6000_function_arg): Likewise.
10641 * config/rs6000/rs6000-protos.h
10642 (rs6000_special_adjust_field_align_p): Remove prototype.
10643 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
10645 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Remove call to
10646 rs6000_special_adjust_field_align_p.
10648 2021-05-18 Uroš Bizjak <ubizjak@gmail.com>
10651 * config/i386/i386.h (VALID_SSE2_REG_MODE):
10652 Add V4QI and V2HI modes.
10653 (VALID_INT_MODE_P): Ditto.
10654 * config/i386/mmx.md (VI_32): New mode iterator.
10655 (mmxvecsize): Handle V4QI and V2HI.
10657 (mov<VI_32:mode>): New expander.
10658 (*mov<mode>_internal): New insn pattern.
10659 (movmisalign<VI_32:mode>): New expander.
10660 (neg<VI_32:mode>): New expander.
10661 (<plusminus:insn><VI_32:mode>3): New expander.
10662 (*<plusminus:insn><VI_32:mode>3): New insn pattern.
10663 (mulv2hi3): New expander.
10664 (*mulv2hi3): New insn pattern.
10665 (one_cmpl<VI_32:mode>2): New expander.
10666 (*andnot<VI_32:mode>3): New insn pattern.
10667 (<any_logic:code><VI_32:mode>3): New expander.
10668 (*<any_logic:code><VI_32:mode>3): New insn pattern.
10670 2021-05-18 Uroš Bizjak <ubizjak@gmail.com>
10672 * config/i386/sse.md (<any_extend:insn>v4qiv4di2):
10673 Fix a mode mismatch with operand 1.
10675 2021-05-18 Uroš Bizjak <ubizjak@gmail.com>
10678 * config/i386/i386-expand.c (split_double_mode): Return
10679 temporary register when simplify_gen_subreg fails with
10680 the high half od the paradoxical subreg.
10682 2021-05-18 Richard Biener <rguenther@suse.de>
10684 * cfgexpand.c (expand_one_var): Pass in forced_stack_var
10685 and honor it when expanding.
10686 (expand_used_vars_for_block): Pass through forced_stack_var.
10687 (expand_used_vars): Likewise.
10688 (discover_nonconstant_array_refs_r): Set bits in
10689 forced_stack_vars instead of marking vars TREE_ADDRESSABLE.
10690 (avoid_type_punning_on_regs): Likewise.
10691 (discover_nonconstant_array_refs): Likewise.
10692 (pass_expand::execute): Create and pass down forced_stack_var
10693 bitmap. For parameters and returns temporarily set
10694 TREE_ADDRESSABLE when expand_function_start.
10696 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
10698 * doc/sourcebuild.texi: Document 'dg-note'.
10700 2021-05-18 Tobias Burnus <tobias@codesourcery.com>
10703 * configure: Regenerate.
10704 * configure.ac (BUILD_CFLAG, BUILD_CXXFLAGS): Add $(CFLAGS-$@).
10706 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
10708 * gimple.h (is_gimple_omp_oacc): Tighten.
10709 * omp-low.c (check_omp_nesting_restrictions): Adjust.
10711 2021-05-18 Richard Biener <rguenther@suse.de>
10713 * tree-ssa-operands.c (mark_address_taken): Simplify.
10715 2021-05-18 Martin Liska <mliska@suse.cz>
10717 * config/gcn/mkoffload.c (STR): Redefine.
10718 * config/i386/intelmic-mkoffload.c (STR): Likewise.
10719 * config/nvptx/mkoffload.c (STR): Likewise.
10721 2021-05-18 Martin Liska <mliska@suse.cz>
10723 * common/config/aarch64/aarch64-common.c (aarch64_parse_extension):
10724 Use startswith function instead of strncmp.
10725 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
10726 * common/config/riscv/riscv-common.c (riscv_subset_list::parse): Likewise.
10727 * config/aarch64/aarch64-sve-builtins-shapes.cc (parse_type): Likewise.
10728 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Likewise.
10729 * config/alpha/alpha.c (alpha_elf_section_type_flags): Likewise.
10730 * config/arm/aarch-common.c (arm_md_asm_adjust): Likewise.
10731 * config/arm/arm.c (arm_file_start): Likewise.
10732 (arm_valid_target_attribute_rec): Likewise.
10733 (thumb1_md_asm_adjust): Likewise.
10734 * config/arm/driver-arm.c (host_detect_local_cpu): Likewise.
10735 * config/avr/avr.c (STR_PREFIX_P): Likewise.
10736 (avr_set_current_function): Likewise.
10737 (avr_handle_addr_attribute): Likewise.
10738 (avr_asm_output_aligned_decl_common): Likewise.
10739 (avr_asm_named_section): Likewise.
10740 (avr_section_type_flags): Likewise.
10741 (avr_asm_select_section): Likewise.
10742 * config/c6x/c6x.c (c6x_in_small_data_p): Likewise.
10743 (c6x_section_type_flags): Likewise.
10744 * config/darwin-c.c (darwin_cfstring_ref_p): Likewise.
10745 (darwin_objc_declare_unresolved_class_reference): Likewise.
10746 (darwin_objc_declare_class_definition): Likewise.
10747 * config/darwin.c (indirect_data): Likewise.
10748 (darwin_encode_section_info): Likewise.
10749 (darwin_objc2_section): Likewise.
10750 (darwin_objc1_section): Likewise.
10751 (machopic_select_section): Likewise.
10752 (darwin_globalize_label): Likewise.
10753 (darwin_label_is_anonymous_local_objc_name): Likewise.
10754 (darwin_asm_named_section): Likewise.
10755 (darwin_asm_output_dwarf_offset): Likewise.
10756 * config/frv/frv.c (frv_string_begins_with): Likewise.
10757 (frv_in_small_data_p): Likewise.
10758 * config/gcn/mkoffload.c (STR): Likewise.
10760 * config/i386/i386-builtins.c (get_builtin_code_for_version): Likewise.
10761 * config/i386/i386-options.c (ix86_option_override_internal): Likewise.
10762 * config/i386/i386.c (x86_64_elf_section_type_flags): Likewise.
10763 (ix86_md_asm_adjust): Likewise.
10764 * config/i386/intelmic-mkoffload.c (STR): Likewise.
10765 * config/i386/winnt.c (i386_pe_asm_named_section): Likewise.
10766 (i386_pe_file_end): Likewise.
10767 * config/ia64/ia64.c (ia64_in_small_data_p): Likewise.
10768 (ia64_section_type_flags): Likewise.
10769 * config/mips/driver-native.c (host_detect_local_cpu): Likewise.
10770 * config/mips/mips.c (mips_handle_interrupt_attr): Likewise.
10771 (mips16_stub_function_p): Likewise.
10772 (mips_function_rodata_section): Likewise.
10773 * config/msp430/msp430.c (msp430_mcu_name): Likewise.
10774 (msp430_function_section): Likewise.
10775 (msp430_section_type_flags): Likewise.
10776 (msp430_expand_helper): Likewise.
10777 * config/nios2/nios2.c (nios2_small_section_name_p): Likewise.
10778 (nios2_valid_target_attribute_rec): Likewise.
10779 * config/nvptx/mkoffload.c (process): Likewise.
10781 * config/pa/som.h: Likewise.
10782 * config/pdp11/pdp11.c (pdp11_output_ident): Likewise.
10783 * config/riscv/riscv.c (riscv_elf_select_rtx_section): Likewise.
10784 * config/rs6000/rs6000.c (VTABLE_NAME_P): Likewise.
10785 (rs6000_inner_target_options): Likewise.
10786 * config/s390/driver-native.c (s390_host_detect_local_cpu): Likewise.
10787 * config/sparc/driver-sparc.c (host_detect_local_cpu): Likewise.
10788 * config/vax/vax.c (vax_output_int_move): Likewise.
10789 * config/vms/vms-ld.c (startswith): Likewise.
10790 (process_args): Likewise.
10792 * config/vms/vms.c: Likewise.
10794 2021-05-18 Jakub Jelinek <jakub@redhat.com>
10796 PR rtl-optimization/100590
10797 * regcprop.c (copyprop_hardreg_forward_1): Only DCE dead sets if
10798 they are NONJUMP_INSN_P.
10800 2021-05-18 Jakub Jelinek <jakub@redhat.com>
10803 * function.c (push_dummy_function): Set DECL_ARTIFICIAL and
10804 DECL_ASSEMBLER_NAME on the fn_decl.
10806 2021-05-18 Jakub Jelinek <jakub@redhat.com>
10808 PR tree-optimization/94589
10809 * tree-ssa-phiopt.c (spaceship_replacement): Pattern match
10810 phi result used in (res & ~1) == 0 comparison as res >= 0 as
10811 res == 2 would be UB with -ffinite-math-only.
10813 2021-05-18 Martin Liska <mliska@suse.cz>
10815 * Makefile.in: genversion.o should depend on DATESTAMP.
10817 2021-05-18 Claudiu Zissulescu <claziss@synopsys.com>
10819 * config/arc/simdext.md (negv2si2): Remove round bracket.
10821 2021-05-18 Andreas Krebbel <krebbel@linux.ibm.com>
10823 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Define
10824 _Bool as macro expanding to _Bool.
10826 2021-05-18 Andreas Krebbel <krebbel@linux.ibm.com>
10829 * tree.c (build_reference_type_for_mode)
10830 (build_pointer_type_for_mode): Pick pointer mode if MODE argument
10832 (build_reference_type, build_pointer_type): Invoke
10833 build_*_type_for_mode with VOIDmode.
10835 2021-05-17 Andrew MacLeod <amacleod@redhat.com>
10837 PR tree-optimization/100512
10838 * gimple-range-cache.cc (ranger_cache::set_global_range): Mark const
10839 and non-zero pointer ranges as invariant.
10840 * gimple-range.cc (gimple_ranger::range_of_stmt): Remove pointer
10841 processing from here.
10843 2021-05-17 Tom de Vries <tdevries@suse.de>
10846 * config/nvptx/nvptx-protos.h (nvptx_output_atomic_insn): Declare
10847 * config/nvptx/nvptx.c (nvptx_output_barrier)
10848 (nvptx_output_atomic_insn): New function.
10849 (nvptx_print_operand): Add support for 'B'.
10850 * config/nvptx/nvptx.md: Use nvptx_output_atomic_insn for atomic
10853 2021-05-17 Aldy Hernandez <aldyh@redhat.com>
10855 PR tree-optimization/100349
10856 * vr-values.c (bounds_of_var_in_loop): Bail if scev returns
10859 2021-05-17 Tamar Christina <tamar.christina@arm.com>
10861 * config/aarch64/driver-aarch64.c (DEFAULT_ARCH): New.
10862 (host_detect_local_cpu): Use it.
10864 2021-05-17 Martin Liska <mliska@suse.cz>
10866 * doc/invoke.texi: Add 2 missing dots.
10868 2021-05-17 Marius Hillenbrand <mhillen@linux.ibm.com>
10870 PR bootstrap/100552
10871 * configure.ac: Replace pattern substitution with call to sed.
10872 * configure: Regenerate.
10874 2021-05-17 Richard Biener <rguenther@suse.de>
10876 PR middle-end/100582
10877 * tree.c (array_at_struct_end_p): Get to the base of the
10878 reference before looking for the underlying decl.
10880 2021-05-17 Joern Rennecke <joern.rennecke@embecosm.com>
10882 * genoutput.c (validate_insn_alternatives) Make "wrong number of
10883 alternatives" message more specific, and remove assumption on where
10886 2021-05-17 Christophe Lyon <christophe.lyon@linaro.org>
10888 * config/arm/iterators.md (V16): New iterator.
10889 (VH_cvtto): New iterator.
10890 (v_cmp_result): Added V4HF and V8HF support.
10891 * config/arm/vec-common.md (vec_cmp<mode><v_cmp_result>): Use VDQWH.
10892 (vcond<mode><mode>): Likewise.
10893 (vcond_mask_<mode><v_cmp_result>): Likewise.
10894 (vcond<VH_cvtto><mode>): New expander.
10896 2021-05-17 Christophe Lyon <christophe.lyon@linaro.org>
10898 * config/arm/arm-protos.h (arm_expand_vector_compare): Update
10900 * config/arm/arm.c (arm_expand_vector_compare): Add support for
10902 (arm_expand_vcond): Likewise.
10903 * config/arm/iterators.md (supf): Remove VCMPNEQ_S, VCMPEQQ_S,
10904 VCMPEQQ_N_S, VCMPNEQ_N_S.
10905 (VCMPNEQ, VCMPEQQ, VCMPEQQ_N, VCMPNEQ_N): Remove.
10906 * config/arm/mve.md (@mve_vcmp<mve_cmp_op>q_<mode>): Add '@' prefix.
10907 (@mve_vcmp<mve_cmp_op>q_f<mode>): Likewise.
10908 (@mve_vcmp<mve_cmp_op>q_n_f<mode>): Likewise.
10909 (@mve_vpselq_<supf><mode>): Likewise.
10910 (@mve_vpselq_f<mode>"): Likewise.
10911 * config/arm/neon.md (vec_cmp<mode><v_cmp_result): Enable for MVE
10912 and move to vec-common.md.
10913 (vec_cmpu<mode><mode>): Likewise.
10914 (vcond<mode><mode>): Likewise.
10915 (vcond<V_cvtto><mode>): Likewise.
10916 (vcondu<mode><v_cmp_result>): Likewise.
10917 (vcond_mask_<mode><v_cmp_result>): Likewise.
10918 * config/arm/unspecs.md (VCMPNEQ_U, VCMPNEQ_S, VCMPEQQ_S)
10919 (VCMPEQQ_N_S, VCMPNEQ_N_S, VCMPEQQ_U, CMPEQQ_N_U, VCMPNEQ_N_U)
10920 (VCMPGEQ_N_S, VCMPGEQ_S, VCMPGTQ_N_S, VCMPGTQ_S, VCMPLEQ_N_S)
10921 (VCMPLEQ_S, VCMPLTQ_N_S, VCMPLTQ_S, VCMPCSQ_N_U, VCMPCSQ_U)
10922 (VCMPHIQ_N_U, VCMPHIQ_U): Remove.
10923 * config/arm/vec-common.md (vec_cmp<mode><v_cmp_result): Moved
10925 (vec_cmpu<mode><mode>): Likewise.
10926 (vcond<mode><mode>): Likewise.
10927 (vcond<V_cvtto><mode>): Likewise.
10928 (vcondu<mode><v_cmp_result>): Likewise.
10929 (vcond_mask_<mode><v_cmp_result>): Likewise. Added unsafe math
10932 2021-05-17 liuhongt <hongtao.liu@intel.com>
10935 * config/i386/i386.c (ix86_gimple_fold_builtin): Use
10936 gsi_insert_seq_before instead.
10938 2021-05-17 Christophe Lyon <christophe.lyon@linaro.org>
10940 * doc/sourcebuild.texi (arm_qbit_ok): Rename into...
10941 (arm_sat_ok): ...this.
10943 2021-05-17 Martin Liska <mliska@suse.cz>
10945 * lto-wrapper.c (merge_flto_options): Factor out a new function.
10946 (merge_and_complain): Use it.
10947 (run_gcc): Merge also linker command line -flto=foo argument
10950 2021-05-16 Christophe Lyon <christophe.lyon@linaro.org>
10952 * config/arm/arm.h (CPP_SPEC): Remove error message about
10953 -mlittle-endian/-mbig-endian conflict.
10955 2021-05-15 Bill Schmidt <wschmidt@linux.ibm.com>
10957 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
10958 __ROP_PROTECT__ if -mrop-protect is selected.
10960 2021-05-15 Bill Schmidt <wschmidt@linux.ibm.com>
10962 * config/rs6000/rs6000-internal.h (rs6000_stack): Add
10963 rop_hash_save_offset and rop_hash_size.
10964 * config/rs6000/rs6000-logue.c (rs6000_stack_info): Compute
10965 rop_hash_size and rop_hash_save_offset.
10966 (debug_stack_info): Dump rop_hash_save_offset and rop_hash_size.
10967 (rs6000_emit_prologue): Emit hashst[p] in prologue.
10968 (rs6000_emit_epilogue): Emit hashchk[p] in epilogue.
10969 * config/rs6000/rs6000.md (unspec): Add UNSPEC_HASHST and
10971 (hashst): New define_insn.
10972 (hashchk): Likewise.
10974 2021-05-15 Bill Schmidt <wschmidt@linux.ibm.com>
10976 * config/rs6000/rs6000.c (rs6000_option_override_internal):
10977 Disable shrink wrap when inserting ROP-protect instructions.
10978 * config/rs6000/rs6000.opt (mrop-protect): New option.
10979 (mprivileged): Likewise.
10980 * doc/invoke.texi: Document mrop-protect and mprivileged.
10982 2021-05-15 Hans-Peter Nilsson <hp@axis.com>
10984 * reorg.c (fill_slots_from_thread): Reinstate code typoed out in
10987 2021-05-15 Martin Jambor <mjambor@suse.cz>
10990 2021-05-13 Martin Jambor <mjambor@suse.cz>
10992 PR tree-optimization/100453
10993 * tree-sra.c (sra_modify_assign): All const base accesses do not
10994 need refreshing, not just those from decl_pool.
10995 (sra_modify_assign): Do not refresh into a const base decl.
10997 2021-05-15 Jakub Jelinek <jakub@redhat.com>
10999 PR rtl-optimization/100342
11000 * regcprop.c (copy_value): When copying a source reg in a wider
11001 mode than it has recorded for the value, adjust recorded destination
11002 mode too or punt if !REG_CAN_CHANGE_MODE_P.
11004 2021-05-14 Jason Merrill <jason@redhat.com>
11006 * intl.h: Add comments.
11008 2021-05-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11010 * config/aarch64/aarch64-simd.md
11011 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Split into...
11012 (aarch64_sqdmlsl2_lane<mode>_internal): ... This...
11013 (aarch64_sqdmlal2_lane<mode>_internal): ... And this.
11014 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Split into ...
11015 (aarch64_sqdmlsl2_laneq<mode>_internal): ... This...
11016 (aarch64_sqdmlal2_laneq<mode>_internal): ... And this.
11017 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Split into...
11018 (aarch64_sqdmlsl2_n<mode>_internal): ... This...
11019 (aarch64_sqdmlal2_n<mode>_internal): ... And this.
11021 2021-05-14 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
11024 * config/arm/arm_neon.h (vtst_s8): Replace call to vtst builtin with it's
11025 boolean logic equivalent.
11026 (vtst_s16): Likewise.
11027 (vtst_s32): Likewise.
11028 (vtst_u8): Likewise.
11029 (vtst_u16): Likewise.
11030 (vtst_u32): Likewise.
11031 (vtst_p8): Likewise.
11032 (vtst_p16): Likewise.
11033 (vtstq_s8): Likewise.
11034 (vtstq_s16): Likewise.
11035 (vtstq_s32): Likewise.
11036 (vtstq_u8): Likewise.
11037 (vtstq_u16): Likewise.
11038 (vtstq_u32): Likewise.
11039 (vtstq_p8): Likewise.
11040 (vtstq_p16): Likewise.
11041 * config/arm/arm_neon_builtins.def: Remove entry for vtst.
11042 * config/arm/neon.md (neon_vtst<mode>): Remove pattern.
11044 2021-05-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11046 * config/aarch64/aarch64-simd.md (aarch64_sqdmlal2<mode>): Merge into...
11047 (aarch64_sqdml<SBINQOPS:as>l2<mode>): ... This.
11048 (aarch64_sqdmlsl2<mode>): Delete.
11049 (aarch64_sqdmlal2_lane<mode>): Merge this...
11050 (aarch64_sqdmlsl2_lane<mode>): ... And this...
11051 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>): ... Into this.
11052 (aarch64_sqdmlal2_laneq<mode>): Merge this...
11053 (aarch64_sqdmlsl2_laneq<mode>): ... And this...
11054 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>): ... Into this.
11055 (aarch64_sqdmlal2_n<mode>): Merge this...
11056 (aarch64_sqdmlsl2_n<mode>): ... And this...
11057 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>): ... Into this.
11059 2021-05-13 Martin Sebor <msebor@redhat.com>
11061 PR middle-end/100574
11062 * builtins.c (access_ref::get_ref): Improve detection of PHIs with
11063 all null arguments.
11065 2021-05-13 Martin Sebor <msebor@redhat.com>
11067 PR tree-optimization/93100
11068 PR middle-end/98583
11069 * tree-ssa-uninit.c (check_defs): Exclude intrinsic functions that
11070 don't modify referenced objects.
11072 2021-05-13 Martin Jambor <mjambor@suse.cz>
11074 PR tree-optimization/100453
11075 * tree-sra.c (sra_modify_assign): All const base accesses do not
11076 need refreshing, not just those from decl_pool.
11077 (sra_modify_assign): Do not refresh into a const base decl.
11079 2021-05-13 Martin Liska <mliska@suse.cz>
11081 * tree-ssa-dom.c: Remove m_simplifier.
11083 2021-05-13 Richard Earnshaw <rearnsha@arm.com>
11086 * config/arm/arm.c (arm_canonicalize_comparison): Correctly
11087 canonicalize DImode inequality comparisons against the
11088 maximum integral value.
11090 2021-05-13 Jakub Jelinek <jakub@redhat.com>
11092 PR tree-optimization/98856
11093 * config/i386/i386.c (ix86_shift_rotate_cost): Add CODE argument.
11094 Expect V2DI and V4DI arithmetic right shifts to be emulated.
11095 (ix86_rtx_costs, ix86_add_stmt_cost): Adjust ix86_shift_rotate_cost
11097 * config/i386/i386-expand.c (expand_vec_perm_2perm_interleave,
11098 expand_vec_perm_2perm_pblendv): New functions.
11099 (ix86_expand_vec_perm_const_1): Use them.
11100 * config/i386/sse.md (ashr<mode>3<mask_name>): Rename to ...
11101 (<mask_codefor>ashr<mode>3<mask_name>): ... this.
11102 (ashr<mode>3): New define_expand with VI248_AVX512BW iterator.
11103 (ashrv4di3): New define_expand.
11104 (ashrv2di3): Change condition to TARGET_SSE2, handle !TARGET_XOP
11105 and !TARGET_AVX512VL expansion.
11107 2021-05-13 Uroš Bizjak <ubizjak@gmail.com>
11110 * config/i386/i386-expand.c (ix86_expand_sse_movcc): Force mode
11111 sizes < 16 to a register when constructing vpcmov pattern.
11112 * config/i386/mmx.md (*xop_pcmov_<mode>): Use MMXMODE124 mode.
11114 2021-05-13 Martin Liska <mliska@suse.cz>
11116 * gcov-io.c (gcov_write_block): Remove.
11117 (gcov_write_words): Likewise.
11118 (gcov_read_words): Re-implement using gcov_read_bytes.
11119 (gcov_allocate): Remove.
11120 (GCOV_BLOCK_SIZE): Likewise.
11121 (struct gcov_var): Remove most of the fields.
11122 (gcov_position): Implement with ftell.
11123 (gcov_rewrite): Remove setting of start and offset fields.
11124 (from_file): Re-format.
11125 (gcov_open): Remove setbuf call. It should not be needed.
11126 (gcov_close): Remove internal buffer handling.
11127 (gcov_magic): Use __builtin_bswap32.
11128 (gcov_write_counter): Use directly gcov_write_unsigned.
11129 (gcov_write_string): Use direct fwrite and do not round
11131 (gcov_seek): Use directly fseek.
11132 (gcov_write_tag): Use gcov_write_unsigned directly.
11133 (gcov_write_length): Likewise.
11134 (gcov_write_tag_length): Likewise.
11135 (gcov_read_bytes): Use directly fread.
11136 (gcov_read_unsigned): Use gcov_read_words.
11137 (gcov_read_counter): Likewise.
11138 (gcov_read_string): Use gcov_read_bytes.
11139 * gcov-io.h (GCOV_WORD_SIZE): Adjust to reflect
11140 that size is not in bytes, but words (4B).
11141 (GCOV_TAG_FUNCTION_LENGTH): Likewise.
11142 (GCOV_TAG_ARCS_LENGTH): Likewise.
11143 (GCOV_TAG_ARCS_NUM): Likewise.
11144 (GCOV_TAG_COUNTER_LENGTH): Likewise.
11145 (GCOV_TAG_COUNTER_NUM): Likewise.
11146 (GCOV_TAG_SUMMARY_LENGTH): Likewise.
11148 2021-05-13 liuhongt <hongtao.liu@intel.com>
11151 * config/i386/sse.md (ssedoublevecmode): Add attribute for
11152 V64QI/V32HI/V16SI/V4DI.
11153 (ssehalfvecmode): Add attribute for V2DI/V2DF.
11154 (*vec_concatv4si_0): Extend to VI124_128.
11155 (*vec_concat<mode>_0): New pre-reload splitter.
11156 * config/i386/predicates.md (movq_parallel): New predicate.
11158 2021-05-13 Alexandre Oliva <oliva@adacore.com>
11160 * targhooks.c (default_zero_call_used_regs): Retry using
11161 successfully-zeroed registers as sources.
11163 2021-05-12 Tobias Burnus <tobias@codesourcery.com>
11165 * omp-low.c (finish_taskreg_scan): Use the proper detach decl.
11167 2021-05-12 Aldy Hernandez <aldyh@redhat.com>
11170 * gimple-range.cc (range_of_builtin_call): Skip out on
11171 processing __builtin_clz when varying.
11173 2021-05-12 Tom de Vries <tdevries@suse.de>
11176 * config/nvptx/nvptx-opts.h (enum ptx_version): New enum.
11177 * config/nvptx/nvptx.c (nvptx_file_start): Print .version according
11178 to ptx_version_option.
11179 * config/nvptx/nvptx.h (TARGET_PTX_6_3): Define.
11180 * config/nvptx/nvptx.md (define_insn "nvptx_shuffle<mode>")
11181 (define_insn "nvptx_vote_ballot"): Use sync variant for
11183 * config/nvptx/nvptx.opt (ptx_version): Add enum.
11184 (mptx): Add option.
11185 * doc/invoke.texi (Nvidia PTX Options): Add mptx item.
11187 2021-05-12 Richard Biener <rguenther@suse.de>
11189 PR tree-optimization/100566
11190 * tree-ssa-sccvn.c (dominated_by_p_w_unex): Properly handle
11191 allow_back for all edge queries.
11193 2021-05-12 liuhongt <hongtao.liu@intel.com>
11196 * config/i386/sse.md (<sse4_1_avx2>_pblendvb): Add
11197 splitters for pblendvb of NOT mask register.
11199 2021-05-12 Richard Biener <rguenther@suse.de>
11201 PR tree-optimization/100519
11202 * tree-ssa-reassoc.c (can_associate_p): Split into...
11203 (can_associate_op_p): ... this
11204 (can_associate_type_p): ... and this.
11205 (is_reassociable_op): Call can_associate_op_p.
11206 (break_up_subtract_bb): Call the appropriate predicates.
11207 (reassociate_bb): Likewise.
11209 2021-05-12 Martin Liska <mliska@suse.cz>
11211 * lto-wrapper.c (merge_and_complain): Merge -flto=arg options.
11212 (run_gcc): Use -flto argument detection for merged
11215 2021-05-12 Martin Liska <mliska@suse.cz>
11217 * lto-wrapper.c (print_lto_docs_link): New function.
11218 (run_gcc): Print warning about missing job server detection
11219 after we know NR of partitions. Do the same for -flto{,=1}.
11220 * opts.c (get_option_html_page): Support -flto option.
11222 2021-05-12 Martin Liska <mliska@suse.cz>
11224 * lto-wrapper.c (get_options_from_collect_gcc_options): Change
11226 (append_option): Remove.
11227 (find_option): Rework to use the vector type.
11228 (remove_option): Remove.
11229 (merge_and_complain): Use vectors for cl_decoded_option data
11231 (append_compiler_options): Likewise.
11232 (append_diag_options): Likewise.
11233 (append_linker_options): Likewise.
11234 (append_offload_options): Likewise.
11235 (compile_offload_image): Likewise.
11236 (compile_images_for_offload_targets): Likewise.
11237 (find_and_merge_options): Likewise.
11238 (run_gcc): Likewise.
11240 2021-05-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
11243 * dwarf2out.c (dwarf2out_finish): Set
11244 have_multiple_function_sections with multi-range text_section.
11246 2021-05-12 Martin Liska <mliska@suse.cz>
11248 PR bootstrap/100560
11249 * Makefile.in: Remove version.h from linker command line.
11251 2021-05-12 Richard Biener <rguenther@suse.de>
11253 PR middle-end/100547
11254 * rtl.h (rtvec_alloc): Make argument size_t.
11255 * rtl.c (rtvec_alloc): Verify the count is less than INT_MAX.
11257 2021-05-12 Jakub Jelinek <jakub@redhat.com>
11259 PR middle-end/100508
11260 * cfgexpand.c (expand_debug_expr): For DEBUG_EXPR_DECL with vector
11261 type, don't reuse DECL_RTL if it has different mode, instead force
11262 creation of a new DEBUG_EXPR.
11264 2021-05-12 Jakub Jelinek <jakub@redhat.com>
11265 Marc Glisse <marc.glisse@inria.fr>
11267 PR tree-optimization/94589
11268 * match.pd ((X & Y) == X -> (X & ~Y) == 0,
11269 (X | Y) == Y -> (X & ~Y) == 0): New GIMPLE simplifications.
11271 2021-05-12 Uroš Bizjak <ubizjak@gmail.com>
11274 * config/i386/i386-expand.c (ix86_expand_sse_movcc): Handle V2SF mode.
11275 * config/i386/mmx.md (MMXMODE124): New mode iterator.
11277 (mmxintvecmode): New mode attribute.
11278 (mmxintvecmodelower): Ditto.
11279 (*mmx_maskcmpv2sf3_comm): New insn pattern.
11280 (*mmx_maskcmpv2sf3): Ditto.
11281 (vec_cmpv2sfv2si): New expander.
11282 (vcond<V2FI:mode>v2si): Ditto.
11283 (mmx_vlendvps): New insn pattern.
11284 (vcond<MMXMODE124:mode><MMXMODEI:mode>): Also handle V2SFmode.
11285 (vcondu<MMXMODE124:mode><MMXMODEI:mode>): Ditto.
11286 (vcond_mask_<mode><mmxintvecmodelower>): Ditto.
11288 2021-05-11 Martin Sebor <msebor@redhat.com>
11290 PR middle-end/21433
11291 * expr.c (expand_expr_real_1): Replace unreachable code with an assert.
11293 2021-05-11 Richard Biener <rguenther@suse.de>
11295 * gimple-fold.c (gimple_fold_call): Do not call
11296 maybe_fold_reference on call arguments or the static chain.
11297 (fold_stmt_1): Do not call maybe_fold_reference on GIMPLE_ASM
11300 2021-05-11 Martin Liska <mliska@suse.cz>
11302 * builtins.def (DEF_HSAIL_BUILTIN): Remove.
11303 (DEF_HSAIL_ATOMIC_BUILTIN): Likewise.
11304 (DEF_HSAIL_SAT_BUILTIN): Likewise.
11305 (DEF_HSAIL_INTR_BUILTIN): Likewise.
11306 (DEF_HSAIL_CVT_ZEROI_SAT_BUILTIN): Likewise.
11307 * doc/frontends.texi: Remove BRIG.
11308 * doc/install.texi: Likewise.
11309 * doc/invoke.texi: Likewise.
11310 * doc/standards.texi: Likewise.
11311 * brig-builtins.def: Removed.
11312 * brig/ChangeLog: Removed.
11313 * brig/Make-lang.in: Removed.
11314 * brig/brig-builtins.h: Removed.
11315 * brig/brig-c.h: Removed.
11316 * brig/brig-lang.c: Removed.
11317 * brig/brigfrontend/brig-arg-block-handler.cc: Removed.
11318 * brig/brigfrontend/brig-atomic-inst-handler.cc: Removed.
11319 * brig/brigfrontend/brig-basic-inst-handler.cc: Removed.
11320 * brig/brigfrontend/brig-branch-inst-handler.cc: Removed.
11321 * brig/brigfrontend/brig-cmp-inst-handler.cc: Removed.
11322 * brig/brigfrontend/brig-code-entry-handler.cc: Removed.
11323 * brig/brigfrontend/brig-code-entry-handler.h: Removed.
11324 * brig/brigfrontend/brig-comment-handler.cc: Removed.
11325 * brig/brigfrontend/brig-control-handler.cc: Removed.
11326 * brig/brigfrontend/brig-copy-move-inst-handler.cc: Removed.
11327 * brig/brigfrontend/brig-cvt-inst-handler.cc: Removed.
11328 * brig/brigfrontend/brig-fbarrier-handler.cc: Removed.
11329 * brig/brigfrontend/brig-function-handler.cc: Removed.
11330 * brig/brigfrontend/brig-function.cc: Removed.
11331 * brig/brigfrontend/brig-function.h: Removed.
11332 * brig/brigfrontend/brig-inst-mod-handler.cc: Removed.
11333 * brig/brigfrontend/brig-label-handler.cc: Removed.
11334 * brig/brigfrontend/brig-lane-inst-handler.cc: Removed.
11335 * brig/brigfrontend/brig-machine.c: Removed.
11336 * brig/brigfrontend/brig-machine.h: Removed.
11337 * brig/brigfrontend/brig-mem-inst-handler.cc: Removed.
11338 * brig/brigfrontend/brig-module-handler.cc: Removed.
11339 * brig/brigfrontend/brig-queue-inst-handler.cc: Removed.
11340 * brig/brigfrontend/brig-seg-inst-handler.cc: Removed.
11341 * brig/brigfrontend/brig-signal-inst-handler.cc: Removed.
11342 * brig/brigfrontend/brig-to-generic.cc: Removed.
11343 * brig/brigfrontend/brig-to-generic.h: Removed.
11344 * brig/brigfrontend/brig-util.cc: Removed.
11345 * brig/brigfrontend/brig-util.h: Removed.
11346 * brig/brigfrontend/brig-variable-handler.cc: Removed.
11347 * brig/brigfrontend/hsa-brig-format.h: Removed.
11348 * brig/brigfrontend/phsa.h: Removed.
11349 * brig/brigspec.c: Removed.
11350 * brig/config-lang.in: Removed.
11351 * brig/gccbrig.texi: Removed.
11352 * brig/lang-specs.h: Removed.
11353 * brig/lang.opt: Removed.
11355 2021-05-11 Richard Biener <rguenther@suse.de>
11358 * ipa-param-manipulation.c
11359 (ipa_param_body_adjustments::modify_call_stmt): Avoid
11360 altering SSA_NAME_DEF_STMT by adjusting the calls LHS
11361 via gimple_call_lhs_ptr.
11363 2021-05-11 Alex Coplan <alex.coplan@arm.com>
11366 * config/arm/arm.c (cmse_nonsecure_call_inline_register_clear):
11367 Avoid emitting CFA adjusts on the sp if we have the fp.
11369 2021-05-11 Richard Sandiford <richard.sandiford@arm.com>
11371 * config/aarch64/iterators.md (VMUL_CHANGE_NLANES): Delete.
11372 (VMULD): New iterator.
11373 (VCOND): Handle V4HF and V8HF.
11374 (VCONQ): Fix entry for V2SF.
11375 * config/aarch64/aarch64-simd.md (mul_lane<mode>3): Use VMULD
11376 instead of VMUL. Use a 64-bit vector mode for the indexed operand.
11377 (*aarch64_mul3_elt_<vswap_width_name><mode>): Merge with...
11378 (mul_laneq<mode>3): ...this define_insn. Use VMUL instead of VDQSF.
11379 Use a 128-bit vector mode for the indexed operand. Use stype for
11380 the scheduling type.
11382 2021-05-11 Richard Biener <rguenther@suse.de>
11384 * gimple-fold.c (maybe_fold_reference): Only return
11385 is_gimple_min_invariant values.
11387 2021-05-11 Richard Biener <rguenther@suse.de>
11389 PR middle-end/100509
11390 * gimple-fold.c (fold_gimple_assign): Only call
11391 get_symbol_constant_value on register type symbols.
11393 2021-05-11 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
11394 Joe Ramsay <joe.ramsay@arm.com>
11397 * config/arm/arm_mve.h (__arm_vstrwq_scatter_offset): Fix wrong arguments.
11398 (__arm_vcmpneq): Remove duplicate definition.
11399 (__arm_vstrwq_scatter_offset_p): Likewise.
11400 (__arm_vmaxq_x): Likewise.
11401 (__arm_vmlsdavaq): Likewise.
11402 (__arm_vmlsdavaxq): Likewise.
11403 (__arm_vmlsdavq_p): Likewise.
11404 (__arm_vmlsdavxq_p): Likewise.
11405 (__arm_vrmlaldavhaq): Likewise.
11406 (__arm_vstrbq_p): Likewise.
11407 (__arm_vstrbq_scatter_offset): Likewise.
11408 (__arm_vstrbq_scatter_offset_p): Likewise.
11409 (__arm_vstrdq_scatter_offset): Likewise.
11410 (__arm_vstrdq_scatter_offset_p): Likewise.
11411 (__arm_vstrdq_scatter_shifted_offset): Likewise.
11412 (__arm_vstrdq_scatter_shifted_offset_p): Likewise.
11414 2021-05-11 Jakub Jelinek <jakub@redhat.com>
11416 PR middle-end/100471
11417 * omp-low.c (lower_omp_task_reductions): For OMP_TASKLOOP, if data
11418 is 0, bypass the reduction loop including
11419 GOMP_taskgroup_reduction_unregister call.
11421 2021-05-11 Kewen Lin <linkw@linux.ibm.com>
11423 * config/rs6000/rs6000.c (struct rs6000_cost_data): New member
11424 costing_for_scalar.
11425 (rs6000_density_test): Early return if costing_for_scalar is true.
11426 (rs6000_init_cost): Init costing_for_scalar of rs6000_cost_data.
11428 2021-05-11 Kewen Lin <linkw@linux.ibm.com>
11430 * doc/tm.texi: Regenerated.
11431 * target.def (init_cost): Add new parameter costing_for_scalar.
11432 * targhooks.c (default_init_cost): Adjust for new parameter.
11433 * targhooks.h (default_init_cost): Likewise.
11434 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Likewise.
11435 (vect_compute_single_scalar_iteration_cost): Likewise.
11436 (vect_analyze_loop_2): Likewise.
11437 * tree-vect-slp.c (_bb_vec_info::_bb_vec_info): Likewise.
11438 (vect_bb_vectorization_profitable_p): Likewise.
11439 * tree-vectorizer.h (init_cost): Likewise.
11440 * config/aarch64/aarch64.c (aarch64_init_cost): Likewise.
11441 * config/i386/i386.c (ix86_init_cost): Likewise.
11442 * config/rs6000/rs6000.c (rs6000_init_cost): Likewise.
11444 2021-05-11 Kewen Lin <linkw@linux.ibm.com>
11446 * config/rs6000/rs6000.c (rs6000_vect_nonmem): Renamed to
11447 vect_nonmem and moved into...
11448 (struct rs6000_cost_data): ...here.
11449 (rs6000_init_cost): Use vect_nonmem of cost_data instead.
11450 (rs6000_add_stmt_cost): Likewise.
11451 (rs6000_finish_cost): Likewise.
11453 2021-05-10 Eric Botcazou <ebotcazou@adacore.com>
11455 * range-op.cc (get_bool_state): Adjust head comment.
11456 (operator_not_equal::op1_range): Fix comment.
11457 (operator_bitwise_xor::op1_range): Remove call to gcc_unreachable.
11459 2021-05-10 Martin Sebor <msebor@redhat.com>
11461 PR middle-end/100425
11462 PR middle-end/100510
11463 * gimple-ssa-warn-alloca.c (pass_walloca::firast_time_p): Rename...
11464 (pass_walloca::xlimit_certain_p): ...to this.
11465 (pass_walloca::gate): Execute for any kind of handled warning.
11466 (pass_walloca::execute): Avoid issuing "maybe" and "unbounded"
11467 warnings when xlimit_certain_p is set.
11469 2021-05-10 Pat Haugen <pthaugen@linux.ibm.com>
11471 * config/rs6000/rs6000.c (rs6000_ira_change_pseudo_allocno_class):
11472 Return ALTIVEC_REGS if that is best_class.
11473 (rs6000_compute_pressure_classes): Add ALTIVEC_REGS.
11475 2021-05-10 Christophe Lyon <christophe.lyon@linaro.org>
11477 * config/arm/arm.h (CPP_SPEC): Remove error message about
11480 2021-05-10 Martin Jambor <mjambor@suse.cz>
11482 * ipa-prop.h (IPA_NODE_REF): Removed.
11483 (IPA_NODE_REF_GET_CREATE): Likewise.
11484 (IPA_EDGE_REF): Likewise.
11485 (IPA_EDGE_REF_GET_CREATE): Likewise.
11486 (IS_VALID_JUMP_FUNC_INDEX): Likewise.
11487 * ipa-cp.c (print_all_lattices): Replaced IPA_NODE_REF with a direct
11488 use of ipa_node_params_sum.
11489 (ipcp_versionable_function_p): Likewise.
11490 (push_node_to_stack): Likewise.
11491 (pop_node_from_stack): Likewise.
11492 (set_single_call_flag): Replaced two IPA_NODE_REF with one single
11493 direct use of ipa_node_params_sum.
11494 (initialize_node_lattices): Replaced IPA_NODE_REF with a direct use of
11495 ipa_node_params_sum.
11496 (ipa_context_from_jfunc): Replaced IPA_EDGE_REF with a direct use of
11498 (ipcp_verify_propagated_values): Replaced IPA_NODE_REF with a direct
11499 use of ipa_node_params_sum.
11500 (self_recursively_generated_p): Likewise.
11501 (propagate_scalar_across_jump_function): Likewise.
11502 (propagate_context_across_jump_function): Replaced IPA_EDGE_REF with a
11503 direct use of ipa_edge_args_sum, moved the lookup after the early
11504 exit. Replaced IPA_NODE_REF with a direct use of ipa_node_params_sum.
11505 (propagate_bits_across_jump_function): Replaced IPA_NODE_REF with
11506 direct uses of ipa_node_params_sum.
11507 (propagate_vr_across_jump_function): Likewise.
11508 (propagate_aggregate_lattice): Likewise.
11509 (propagate_aggs_across_jump_function): Likewise.
11510 (propagate_constants_across_call): Likewise, also replaced
11511 IPA_EDGE_REF with a direct use of ipa_edge_args_sum.
11512 (good_cloning_opportunity_p): Replaced IPA_NODE_REF with a direct use
11513 of ipa_node_params_sum.
11514 (estimate_local_effects): Likewise.
11515 (add_all_node_vals_to_toposort): Likewise.
11516 (propagate_constants_topo): Likewise.
11517 (ipcp_propagate_stage): Likewise.
11518 (ipcp_discover_new_direct_edges): Likewise.
11519 (calls_same_node_or_its_all_contexts_clone_p): Likewise.
11520 (cgraph_edge_brings_value_p): Likewise (in both overloaded functions).
11521 (get_info_about_necessary_edges): Likewise.
11522 (want_remove_some_param_p): Likewise.
11523 (create_specialized_node): Likewise.
11524 (self_recursive_pass_through_p): Likewise.
11525 (self_recursive_agg_pass_through_p): Likewise.
11526 (find_more_scalar_values_for_callers_subset): Likewise and also
11527 replaced IPA_EDGE_REF with direct uses of ipa_edge_args_sum, in one
11528 case replacing two of those with a single query.
11529 (find_more_contexts_for_caller_subset): Likewise for the
11530 ipa_polymorphic_call_context overload.
11531 (intersect_aggregates_with_edge): Replaced IPA_EDGE_REF with a direct
11532 use of ipa_edge_args_sum. Replaced IPA_NODE_REF with direct uses of
11533 ipa_node_params_sum.
11534 (find_aggregate_values_for_callers_subset): Likewise, also reusing
11535 results of ipa_edge_args_sum->get.
11536 (cgraph_edge_brings_all_scalars_for_node): Replaced IPA_NODE_REF with
11537 direct uses of ipa_node_params_sum, replaced IPA_EDGE_REF with a
11538 direct use of ipa_edge_args_sum.
11539 (cgraph_edge_brings_all_agg_vals_for_node): Likewise, moved node
11540 summary query after the early exit and reused the result later.
11541 (decide_about_value): Replaced IPA_NODE_REF with a direct use of
11542 ipa_node_params_sum.
11543 (decide_whether_version_node): Likewise. Removed re-querying for
11544 summaries after cloning.
11545 (spread_undeadness): Replaced IPA_NODE_REF with a direct use of
11546 ipa_node_params_sum.
11547 (has_undead_caller_from_outside_scc_p): Likewise, reusing results of
11549 (identify_dead_nodes): Likewise.
11550 (ipcp_store_bits_results): Replaced IPA_NODE_REF with direct uses of
11551 ipa_node_params_sum.
11552 (ipcp_store_vr_results): Likewise.
11553 * ipa-fnsummary.c (evaluate_properties_for_edge): Likewise.
11554 (ipa_fn_summary_t::duplicate): Likewise.
11555 (analyze_function_body): Likewise.
11556 (estimate_calls_size_and_time): Likewise.
11557 (ipa_cached_call_context::duplicate_from): Likewise.
11558 (ipa_call_context::equal_to): Likewise.
11559 (remap_edge_params): Likewise.
11560 (ipa_merge_fn_summary_after_inlining): Likewise.
11561 (inline_read_section): Likewise.
11562 * ipa-icf.c (sem_function::param_used_p): Likewise.
11563 * ipa-modref.c (compute_parm_map): Likewise.
11564 (compute_parm_map): Replaced IPA_EDGE_REF with a direct use of
11566 (get_access_for_fnspec): Replaced IPA_NODE_REF with a direct use of
11567 ipa_node_params_sum and replaced IPA_EDGE_REF with a direct use of
11569 * ipa-profile.c (check_argument_count): Likewise.
11570 * ipa-prop.c (ipa_alloc_node_params): Replaced IPA_NODE_REF_GET_CREATE
11571 with a direct use of ipa_node_params_sum.
11572 (ipa_initialize_node_params): Likewise.
11573 (ipa_print_node_jump_functions_for_edge): Replaced IPA_EDGE_REF with a
11574 direct use of ipa_edge_args_sum and reused the query result.
11575 (ipa_compute_jump_functions_for_edge): Replaced IPA_NODE_REF with a
11576 direct use of ipa_node_params_sum and replaced IPA_EDGE_REF with a
11577 direct use of ipa_edge_args_sum.
11578 (ipa_note_param_call): Replaced IPA_NODE_REF with a direct use of
11579 ipa_node_params_sum and reused the result of the query.
11580 (ipa_analyze_node): Likewise.
11581 (ipa_analyze_controlled_uses): Replaced IPA_NODE_REF with a direct use
11582 of ipa_node_params_sum.
11583 (update_jump_functions_after_inlining): Replaced IPA_EDGE_REF with
11584 direct uses of ipa_edge_args_sum.
11585 (update_indirect_edges_after_inlining): Replaced IPA_NODE_REF with
11586 direct uses of ipa_node_params_sum and replaced IPA_EDGE_REF with a
11587 direct use of ipa_edge_args_sum. Removed superficial re-querying the
11589 (propagate_controlled_uses): Replaced IPA_NODE_REF with direct uses of
11590 ipa_node_params_sum and replaced IPA_EDGE_REF with a direct use of
11592 (ipa_propagate_indirect_call_infos): Replaced IPA_EDGE_REF with a
11593 direct use of ipa_edge_args_sum.
11594 (ipa_edge_args_sum_t::duplicate): Replaced IPA_NODE_REF with a direct
11595 use of ipa_node_params_sum.
11596 (ipa_print_node_params): Likewise.
11597 (ipa_write_node_info): Likewise and also replaced IPA_EDGE_REF with
11598 direct uses of ipa_edge_args_sum.
11599 (ipa_read_edge_info): Replaced IPA_EDGE_REF with a direct use of
11601 (ipa_read_node_info): Replaced IPA_NODE_REF with a direct use of
11602 ipa_node_params_sum.
11603 (ipa_prop_write_jump_functions): Likewise. Move variable node to the
11604 scopes where it is used.
11606 2021-05-10 Uroš Bizjak <ubizjak@gmail.com>
11608 * config/i386/i386-expand.c (ix86_expand_sse_movcc)
11609 <case E_V2SImode>: Force op_true to register.
11611 2021-05-10 Christophe Lyon <christophe.lyon@linaro.org>
11613 * config/arm/iterators.md (MVE_FP_COMPARISONS): New.
11614 * config/arm/mve.md (mve_vcmp<mve_cmp_op>q_f<mode>)
11615 (mve_vcmp<mve_cmp_op>q_n_f<mode>): New, merge all vcmp_*f*
11617 (mve_vcmpeqq_f<mode>, mve_vcmpeqq_n_f<mode>, mve_vcmpgeq_f<mode>)
11618 (mve_vcmpgeq_n_f<mode>, mve_vcmpgtq_f<mode>)
11619 (mve_vcmpgtq_n_f<mode>, mve_vcmpleq_f<mode>)
11620 (mve_vcmpleq_n_f<mode>, mve_vcmpltq_f<mode>)
11621 (mve_vcmpltq_n_f<mode>, mve_vcmpneq_f<mode>)
11622 (mve_vcmpneq_n_f<mode>): Remove.
11623 * config/arm/unspecs.md (VCMPEQQ_F, VCMPEQQ_N_F, VCMPGEQ_F)
11624 (VCMPGEQ_N_F, VCMPGTQ_F, VCMPGTQ_N_F, VCMPLEQ_F, VCMPLEQ_N_F)
11625 (VCMPLTQ_F, VCMPLTQ_N_F, VCMPNEQ_F, VCMPNEQ_N_F): Remove.
11627 2021-05-10 Christophe Lyon <christophe.lyon@linaro.org>
11629 * config/arm/iterators.md (MVE_COMPARISONS): New.
11631 (mve_cmp_type): New.
11632 * config/arm/mve.md (mve_vcmp<mve_cmp_op>q_<mode>): New, merge all
11634 (mve_vcmpneq_<mode>, mve_vcmpcsq_n_<mode>, mve_vcmpcsq_<mode>)
11635 (mve_vcmpeqq_n_<mode>, mve_vcmpeqq_<mode>, mve_vcmpgeq_n_<mode>)
11636 (mve_vcmpgeq_<mode>, mve_vcmpgtq_n_<mode>, mve_vcmpgtq_<mode>)
11637 (mve_vcmphiq_n_<mode>, mve_vcmphiq_<mode>, mve_vcmpleq_n_<mode>)
11638 (mve_vcmpleq_<mode>, mve_vcmpltq_n_<mode>, mve_vcmpltq_<mode>)
11639 (mve_vcmpneq_n_<mode>, mve_vcmpltq_n_<mode>, mve_vcmpltq_<mode>)
11640 (mve_vcmpneq_n_<mode>): Remove.
11642 2021-05-10 Christophe Lyon <christophe.lyon@linaro.org>
11644 * config/arm/arm_mve.h (__arm_vcmp*): Remove 's' suffix.
11645 * config/arm/arm_mve_builtins.def (vcmp*): Remove 's' suffix.
11646 * config/arm/mve.md (mve_vcmp*): Remove 's' suffix in pattern
11649 2021-05-10 Christophe Lyon <christophe.lyon@linaro.org>
11651 * config/arm/arm_mve_builtins.def (vcmpneq_u): Remove.
11652 (vcmpneq_n_u): Likewise.
11653 (vcmpeqq_u,): Likewise.
11654 (vcmpeqq_n_u): Likewise.
11655 * config/arm/iterators.md (supf): Remove VCMPNEQ_U, VCMPEQQ_U,
11656 VCMPEQQ_N_U and VCMPNEQ_N_U.
11657 * config/arm/mve.md (mve_vcmpneq): Remove <supf> iteration.
11658 (mve_vcmpeqq_n): Likewise.
11659 (mve_vcmpeqq): Likewise.
11660 (mve_vcmpneq_n): Likewise.
11662 2021-05-10 Christophe Lyon <christophe.lyon@linaro.org>
11664 * config/arm/arm_mve.h (__arm_vcmpeq*u*, __arm_vcmpne*u*): Call
11665 the 's' version of the builtin.
11667 2021-05-10 Richard Biener <rguenther@suse.de>
11669 PR tree-optimization/100492
11670 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
11671 Find nothing when the loop contains an irreducible region.
11673 2021-05-10 Richard Biener <rguenther@suse.de>
11675 PR middle-end/100464
11677 * gimple-fold.c (canonicalize_constructor_val): Do not set
11680 2021-05-10 Richard Biener <rguenther@suse.de>
11682 PR tree-optimization/100434
11683 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
11685 (dse_optimize_stmt): Handle call LHS by dropping the
11686 LHS or the whole call if it doesn't have other
11688 (pass_dse::execute): Adjust.
11690 2021-05-10 Martin Liska <mliska@suse.cz>
11692 * Makefile.in: Add missing genversion rule.
11694 2021-05-10 Alex Coplan <alex.coplan@arm.com>
11697 * config/arm/mve.md (*mve_mov<mode>): Simplify output code. Use
11698 vldrw.u32 and vstrw.32 for V2D[IF]mode loads and stores.
11700 2021-05-10 Martin Liska <mliska@suse.cz>
11702 * builtins.c (is_builtin_name): Use startswith
11703 function instead of strncmp.
11704 * collect2.c (main): Likewise.
11705 (has_lto_section): Likewise.
11706 (scan_libraries): Likewise.
11707 * coverage.c (coverage_checksum_string): Likewise.
11708 (coverage_init): Likewise.
11709 * dwarf2out.c (is_cxx): Likewise.
11710 (gen_compile_unit_die): Likewise.
11711 * gcc-ar.c (main): Likewise.
11712 * gcc.c (init_spec): Likewise.
11713 (read_specs): Likewise.
11714 (execute): Likewise.
11715 (check_live_switch): Likewise.
11716 * genattrtab.c (write_attr_case): Likewise.
11717 (IS_ATTR_GROUP): Likewise.
11718 * gencfn-macros.c (main): Likewise.
11719 * gengtype.c (type_for_name): Likewise.
11720 (gen_rtx_next): Likewise.
11721 (get_file_langdir): Likewise.
11722 (write_local): Likewise.
11723 * genmatch.c (get_operator): Likewise.
11724 (get_operand_type): Likewise.
11725 (expr::gen_transform): Likewise.
11726 * genoutput.c (validate_optab_operands): Likewise.
11727 * incpath.c (add_sysroot_to_chain): Likewise.
11728 * langhooks.c (lang_GNU_C): Likewise.
11729 (lang_GNU_CXX): Likewise.
11730 (lang_GNU_Fortran): Likewise.
11731 (lang_GNU_OBJC): Likewise.
11732 * lto-wrapper.c (run_gcc): Likewise.
11733 * omp-general.c (omp_max_simt_vf): Likewise.
11734 * omp-low.c (omp_runtime_api_call): Likewise.
11735 * opts-common.c (parse_options_from_collect_gcc_options): Likewise.
11736 * read-rtl-function.c (function_reader::read_rtx_operand_r): Likewise.
11737 * real.c (real_from_string): Likewise.
11738 * selftest.c (assert_str_startswith): Likewise.
11739 * timevar.c (timer::validate_phases): Likewise.
11740 * tree.c (get_file_function_name): Likewise.
11741 * ubsan.c (ubsan_use_new_style_p): Likewise.
11742 * varasm.c (default_function_rodata_section): Likewise.
11743 (incorporeal_function_p): Likewise.
11744 (default_section_type_flags): Likewise.
11745 * system.h (startswith): Define startswith.
11747 2021-05-10 Martin Liska <mliska@suse.cz>
11749 * bitmap.h (class auto_bitmap): Remove
11750 __cplusplus >= 201103.
11751 * config/aarch64/aarch64.c: Likewise.
11752 * gimple-ssa-store-merging.c (store_immediate_info::store_immediate_info):
11754 * sbitmap.h: Likewise.
11756 2021-05-10 Martin Liska <mliska@suse.cz>
11758 * Makefile.in: Rename gcov-iov to genversion and depend
11759 on version.h (instead of gcov-iov.h).
11760 * gcov-io.h: Include version.h instread of gcov-iov.h.
11761 * gengtype-state.c (read_state_version): Likewise.
11762 * gcov-iov.c: Moved to...
11763 * genversion.c: ...here.
11764 * lto-streamer.h (LTO_major_version): Define it with
11766 * version.c: Removed.
11767 * version.h: Removed.
11769 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
11771 * config/arc/arc.md (UNSPEC_ARC_DMPYWH): Define.
11772 * config/arc/simdext.md (VCT): Add predicates for iterator
11775 (voptab): Likewise.
11776 (vec_widen_<V_US>mult_hi_v4hi): Change pattern predicate.
11777 (<voptab>v2si3): New patterns.
11779 (reduc_plus_scal_v4hi): Likewise.
11780 (reduc_plus_scal_v2si): Likewise.
11781 (vec_duplicatev2si): Likewise.
11782 (vec_duplicatev4hi): Likewise.
11784 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
11786 * config/arc/simdext.md: Format and cleanup file.
11788 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
11790 * config/arc/simdext.md (movmisalignv2hi): Allow misaligned access
11791 only when munaligned-access option is on.
11792 (movmisalign<mode>): Likewise.
11794 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
11796 * common/config/arc/arc-common.c (arc_handle_option): Remove dot
11798 * config/arc/arc.c (arc_reorg): Remove underscore from string.
11800 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
11802 * config/arc/arc.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
11803 (CTZ_DEFINED_VALUE_AT_ZERO): Likewise.
11804 * config/arc/arc.md (clrsbsi2): Cleanup pattern.
11805 (norm_f): Likewise.
11808 (clzsi2): Use fls instruction when available.
11809 (arc_clzsi2): Likewise.
11811 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
11813 * config/arc/arc.h (ADDITIONAL_REGISTER_NAMES): Add r26 and r27.
11815 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
11817 * doc/extend.texi (__builtin_arc_sr): Swap arguments.
11819 2021-05-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
11821 PR middle-end/100467
11822 * toplev.c (compile_file): Call insn_locations_init before
11823 targetm.asm_out.code_end.
11825 2021-05-07 Andrew Stubbs <ams@codesourcery.com>
11828 2021-05-07 Andrew Stubbs <ams@codesourcery.com>
11830 * config/gcn/gcn.c (gcn_scalar_mode_supported_p): Disable TImode.
11832 2021-05-07 Jakub Jelinek <jakub@redhat.com>
11833 Andrew Stubbs <amd@codesourcery.com>
11836 * builtins.c (try_store_by_multiple_pieces): Use force_operand for
11837 emit_move_insn operands.
11839 2021-05-07 Eric Botcazou <ebotcazou@adacore.com>
11841 * cfgexpand.c (expand_gimple_basic_block): Do not inherit a current
11842 location for the outgoing edges of an empty block.
11843 * dwarf2out.c (add_subscript_info): Retrieve the bounds and index
11844 type by means of the get_array_descr_info langhook, if it is set and
11845 returns true. Remove obsolete code dealing with unnamed subtypes.
11847 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
11849 * gimple-range-cache.cc (ssa_block_ranges): Virtualize.
11850 (sbr_vector): Renamed from ssa_block_cache.
11851 (sbr_vector::sbr_vector): Allocate from obstack abd initialize.
11852 (ssa_block_ranges::~ssa_block_ranges): Remove.
11853 (sbr_vector::set_bb_range): Use varying and undefined cached values.
11854 (ssa_block_ranges::set_bb_varying): Remove.
11855 (sbr_vector::get_bb_range): Adjust assert.
11856 (sbr_vector::bb_range_p): Adjust assert.
11857 (~block_range_cache): No freeing loop required.
11858 (block_range_cache::get_block_ranges): Remove.
11859 (block_range_cache::set_bb_range): Inline get_block_ranges.
11860 (block_range_cache::set_bb_varying): Remove.
11861 * gimple-range-cache.h (set_bb_varying): Remove prototype.
11862 * value-range.h (irange_allocator::get_memory): New.
11864 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
11866 * gimple-range-cache.cc (non_null_ref::non_null_deref_p): Search
11867 dominator tree is available and requested.
11868 (ranger_cache::ssa_range_in_bb): Don't search dom tree here.
11869 (ranger_cache::fill_block_cache): Don't search dom tree here either.
11870 * gimple-range-cache.h (non_null_deref_p): Add dom_search param.
11872 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
11874 * gimple-range.cc (gimple_ranger::range_on_exit): Handle block with
11875 only PHI nodes better.
11877 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
11879 * gimple-range-edge.h (gimple_outgoing_range): Rename from
11881 (gcond_edge_range): Export prototype.
11882 * gimple-range-edge.cc (gcond_edge_range): New.
11883 (gimple_outgoing_range::edge_range_p): Use gcond_edge_range.
11884 * gimple-range-gori.h (gori_compute): Use gimple_outgoing_range.
11886 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
11888 * gimple-range-edge.cc (outgoing_range::calc_switch_ranges): Compute
11889 default range into a temp and allocate only what is needed.
11891 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
11893 * range-op.cc (operator_trunc_mod::wi_fold): x % 0 is UNDEFINED.
11895 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
11897 * gimple-range.h (gimple_range_global): Pick up parameter initial
11898 values, and use-before defined locals are UNDEFINED.
11900 2021-05-07 Eric Botcazou <ebotcazou@adacore.com>
11902 * doc/extend.texi (scalar_storage_order): Mention effect on pointer
11904 * tree.h (reverse_storage_order_for_component_p): Return false if
11905 the type is a pointer.
11907 2021-05-07 Andrew Stubbs <ams@codesourcery.com>
11909 * config/gcn/gcn.c (gcn_scalar_mode_supported_p): Disable TImode.
11911 2021-05-07 Uroš Bizjak <ubizjak@gmail.com>
11914 * config/i386/i386-expand.c (ix86_expand_sse_movcc):
11915 Handle V8QI, V4HI and V2SI modes.
11916 * config/i386/mmx.md (mmx_pblendvb): New insn pattern.
11917 * config/i386/sse.md (unspec): Move UNSPEC_BLENDV ...
11918 * config/i386/i386.md (unspec): ... here.
11920 2021-05-07 Tobias Burnus <tobias@codesourcery.com>
11921 Tom de Vries <tdevries@suse.de>
11923 * omp-low.c (lower_rec_simd_input_clauses): Set max_vf = 1 if
11924 a truth_value_p reduction variable is nonintegral.
11926 2021-05-07 Uroš Bizjak <ubizjak@gmail.com>
11929 * config/i386/i386-expand.c (ix86_use_mask_cmp_p):
11930 Return false for mode sizes < 16.
11932 2021-05-07 Jakub Jelinek <jakub@redhat.com>
11935 * config/i386/mmx.md (*xop_pcmov_<mode>): New define_insn.
11937 2021-05-06 Martin Jambor <mjambor@suse.cz>
11939 * ipa-sra.c (ipa_sra_dump_all_summaries): Dump edge summaries even
11940 when there is no function summary.
11941 (ipa_sra_summarize_function): produce edge summaries even when
11944 2021-05-06 Tom Tromey <tom@tromey.com>
11946 * godump.c (string_hash_eq): Remove.
11947 (go_finish): Use htab_eq_string.
11949 2021-05-06 Tom Tromey <tom@tromey.com>
11951 * gengtype-state.c (read_state): Use htab_eq_string.
11952 (string_eq): Remove.
11954 2021-05-06 Tom Tromey <tom@tromey.com>
11956 * gensupport.c (htab_eq_string): Remove.
11958 2021-05-06 Bernd Edlinger <bernd.edlinger@hotmail.de>
11961 * debug.h (gcc_debug_hooks): Add set_ignored_loc function pointer.
11962 * dwarf2out.h (dw_fde_node::ignored_debug): New data item.
11963 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Add dummy
11964 set_ignored_loc callbacks.
11965 * debug.c (do_nothing_debug_hooks): Likewise.
11966 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
11967 * dwarf2out.c (text_section_used, cold_text_section_used): Remove.
11968 (in_text_section_p, last_text_label, last_cold_label,
11969 switch_text_ranges, switch_cold_ranges): New data items.
11970 (dwarf2out_note_section_used): Remove.
11971 (dwarf2out_begin_prologue): Set fde->ignored_debug and
11973 (mark_ignored_debug_section): New helper function.
11974 (dwarf2out_end_epilogue, dwarf2out_switch_text_section): Call
11975 mark_ignored_debug_section.
11976 (dwarf2_debug_hooks): Use dwarf2out_set_ignored_loc.
11977 (dwarf2_lineno_debug_hooks): Use dummy for set_ignored_loc.
11978 (size_of_aranges): Adjust formula for multi-part text ranges size.
11979 (output_aranges): Output multi-part text ranges.
11980 (dwarf2out_set_ignored_loc): New callback function.
11981 (dwarf2out_finish): Output multi-part text ranges.
11982 (dwarf2out_c_finalize): Clear new data items.
11983 * final.c (final_start_function_1): Call set_ignored_loc callback.
11984 (final_scan_insn_1): Likewise.
11985 * ggc-page.c (gt_ggc_mx): New helper function.
11986 * stringpool.c (gt_pch_nx): Likewise.
11988 2021-05-06 Richard Biener <rguenther@suse.de>
11990 * timevar.def (TV_TREE_INSERT_PHI_NODES): Remove.
11991 (TV_TREE_SSA_REWRITE_BLOCKS): Likewise.
11992 (TV_TREE_INTO_SSA): New.
11993 * tree-into-ssa.c (insert_phi_nodes): Do not account separately.
11994 (rewrite_blocks): Likewise.
11995 (pass_data_build_ssa): Account to TV_TREE_INTO_SSA.
11997 2021-05-06 Jakub Jelinek <jakub@redhat.com>
11999 * tree-ssa-phiopt.c (value_replacement, minmax_replacement,
12000 abs_replacement, xor_replacement,
12001 cond_removal_in_popcount_clz_ctz_pattern,
12002 replace_phi_edge_with_variable): Change type of phi argument from
12003 gimple * to gphi *.
12005 2021-05-06 Richard Biener <rguenther@suse.de>
12007 * tree-ssa-loop-split.c (split_loop): Delay updating SSA form.
12008 Output an opt-info message.
12009 (do_split_loop_on_cond): Likewise.
12010 (tree_ssa_split_loops): Update SSA form here.
12012 2021-05-06 Richard Biener <rguenther@suse.de>
12014 * tree-inline.c (tree_function_versioning): Fix DECL_BY_REFERENCE
12015 return variable removal.
12017 2021-05-06 Marius Hillenbrand <mhillen@linux.ibm.com>
12019 * config/s390/s390-builtins.def (O_M5, O1_M5, ...): Remove unused macros.
12020 (s390_vec_permi_s64, s390_vec_permi_b64, s390_vec_permi_u64)
12021 (s390_vec_permi_dbl, s390_vpdi): Use the O3_U2 type for the immediate
12023 * config/s390/s390.c (s390_const_operand_ok): Remove unused
12026 2021-05-06 Jakub Jelinek <jakub@redhat.com>
12028 PR tree-optimization/94589
12029 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Call
12030 spaceship_replacement.
12031 (cond_only_block_p, spaceship_replacement): New functions.
12033 2021-05-06 Richard Biener <rguenther@suse.de>
12036 * tree-emutls.c (gen_emutls_addr): Pass in whether we're
12037 dealing with a debug use and only query existing addresses
12039 (lower_emutls_1): Avoid splitting out addresses for debug
12040 stmts, reset the debug stmt when we fail to find existing
12042 (lower_emutls_phi_arg): Set wi.stmt.
12044 2021-05-06 Christoph Muellner <cmuellner@gcc.gnu.org>
12047 * config/riscv/riscv.c (riscv_block_move_loop): Use cbranch helper.
12048 * config/riscv/riscv.md (cbranch<mode>4): Generate helpers.
12049 (stack_protect_test): Use cbranch helper.
12051 2021-05-05 Eric Botcazou <ebotcazou@adacore.com>
12054 * config/i386/i386.c (ix86_compute_frame_layout): For a SEH target,
12055 always return the establisher frame for __builtin_frame_address (0).
12057 2021-05-05 Ivan Sorokin <vanyacpp@gmail.com>
12060 * config/i386/i386-builtins.c (ix86_cpu_model_type_node): New.
12061 (ix86_cpu_model_var): Likewise.
12062 (ix86_cpu_features2_type_node): Likewise.
12063 (ix86_cpu_features2_var): Likewise.
12064 (fold_builtin_cpu): Cache __cpu_model and __cpu_features2 with
12067 2021-05-05 Martin Sebor <msebor@redhat.com>
12069 * passes.def (pass_warn_printf): Run after SSA.
12071 2021-05-05 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
12073 * config/arm/neon.md (neon_vtst_combine<mode>): New pattern.
12074 * config/arm/predicates.md (minus_one_operand): New predicate.
12076 2021-05-05 Jeff Law <jlaw@tachyum.com>
12078 * config/avr/avr.md: Remove references to CC_STATUS_INIT.
12080 2021-05-05 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
12082 PR rtl-optimization/100263
12083 * postreload.c (move2add_valid_value_p): Ensure register can
12086 2021-05-05 Eric Botcazou <ebotcazou@adacore.com>
12088 PR rtl-optimization/100411
12089 * cfgcleanup.c (try_crossjump_to_edge): Also skip end of prologue
12090 and beginning of function markers.
12092 2021-05-05 Jeff Law <jlaw@tachyum.com>
12094 * config/cr16/cr16.h (NOTICE_UPDATE_CC): Remove.
12095 * config/cr16/cr16.c (notice_update_cc): Remove.
12096 * config/cr16/cr16-protos.h (notice_update_cc): Remove.
12098 2021-05-05 Uroš Bizjak <ubizjak@gmail.com>
12101 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
12102 Handle V8QI, V4HI and V2SI modes.
12103 * config/i386/i386.c (ix86_build_const_vector): Handle V2SImode.
12104 (ix86_build_signbit_mask): Ditto.
12105 * config/i386/mmx.md (MMXMODE14): New mode iterator.
12106 (<smaxmin:code><MMXMODE14:mode>3): New expander.
12107 (*mmx_<smaxmin:code><MMXMODE14:mode>3): New insn pattern.
12108 (<umaxmin:code><MMXMODE24:mode>3): New expander.
12109 (*mmx_<umaxmin:code><MMXMODE24:mode>3): New insn pattern.
12110 (vec_cmp<MMXMODEI:mode><MMXMODEI:mode>): New expander.
12111 (vec_cmpu<MMXMODEI:mode><MMXMODEI:mode>): Ditto.
12112 (vcond<MMXMODEI:mode><MMXMODEI:mode>): Ditto.
12113 (vcondu<MMXMODEI:mode><MMXMODEI:mode>): Ditto.
12114 (vcond_mask_<MMXMODEI:mode><MMXMODEI:mode>): Ditto.
12116 2021-05-05 Eric Botcazou <ebotcazou@adacore.com>
12118 * dwarf2out.c (loc_list_from_tree_1) <DECL>: During early DWARF, do
12119 not expand the VALUE_EXPR of variables put in the non-local frame.
12120 * gimplify.c (gimplify_type_sizes) <RECORD_TYPE>: If the type is not
12121 to be ignored for debug info, ensure its variable offsets are not.
12123 2021-05-05 Richard Biener <rguenther@suse.de>
12125 PR tree-optimization/79333
12126 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt):
12127 Fold stmt following SSA edges.
12129 2021-05-05 Richard Biener <rguenther@suse.de>
12131 PR middle-end/100394
12132 * calls.c (expand_call): Preserve possibly throwing calls.
12133 * cfgexpand.c (expand_call_stmt): When a call can throw signal
12134 RTL expansion there are side-effects.
12135 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Simplify,
12136 mark all possibly throwing stmts necessary unless we can elide
12138 * tree-ssa-dse.c (pass_dse::execute): Preserve exceptions unless
12139 -fdelete-dead-exceptions.
12140 * tree.h (DECL_PURE_P): Add note about exceptions.
12142 2021-05-05 Alexandre Oliva <oliva@adacore.com>
12144 * config/i386/vxworks.h (DBX_REGISTER_NUMBER): Make it
12147 2021-05-04 David Edelsohn <dje.gcc@gmail.com>
12149 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
12150 get_fnname_from_decl for name of thunk.
12151 * config/rs6000/rs6000.c (rs6000_declare_alias): Use assemble_name
12152 and ASM_OUTPUT_LABEL.
12153 (rs6000_xcoff_declare_function_name): Use assemble_name and
12155 (rs6000_xcoff_declare_object_name): Use ASM_OUTPUT_LABEL.
12156 (rs6000_xcoff_encode_section_info): Don't add mapping class
12157 for aliases. Always add [DS] mapping class to primary
12159 (rs6000_asm_weaken_decl): Don't explicitly add [DS].
12161 2021-05-04 Martin Sebor <msebor@redhat.com>
12163 PR middle-end/100307
12164 * builtins.c (compute_objsize_r): Clear base0 for pointers.
12166 2021-05-04 Jeff Law <jlaw@tachyum.com>
12168 * config/bfin/bfin.h (NOTICE_UPDATE_CC): Remove.
12170 2021-05-04 Segher Boessenkool <segher@kernel.crashing.org>
12172 * caller-save.c: Remove CC0.
12173 * cfgcleanup.c: Remove CC0.
12174 * cfgrtl.c: Remove CC0.
12175 * combine.c: Remove CC0.
12176 * compare-elim.c: Remove CC0.
12177 * conditions.h: Remove CC0.
12178 * config/h8300/h8300.h: Remove CC0.
12179 * config/h8300/h8300-protos.h: Remove CC0.
12180 * config/h8300/peepholes.md: Remove CC0.
12181 * config/i386/x86-tune-sched.c: Remove CC0.
12182 * config/m68k/m68k.c: Remove CC0.
12183 * config/rl78/rl78.c: Remove CC0.
12184 * config/sparc/sparc.c: Remove CC0.
12185 * config/xtensa/xtensa.c: Remove CC0.
12186 (gen_conditional_move): Use pc_rtx instead of cc0_rtx in a piece of
12187 RTL where that is used as a placeholder only.
12188 * cprop.c: Remove CC0.
12189 * cse.c: Remove CC0.
12190 * cselib.c: Remove CC0.
12191 * df-problems.c: Remove CC0.
12192 * df-scan.c: Remove CC0.
12193 * doc/md.texi: Remove CC0. Adjust an example.
12194 * doc/rtl.texi: Remove CC0. Adjust an example.
12195 * doc/tm.texi: Regenerate.
12196 * doc/tm.texi.in: Remove CC0.
12197 * emit-rtl.c: Remove CC0.
12198 * final.c: Remove CC0.
12199 * fwprop.c: Remove CC0.
12200 * gcse-common.c: Remove CC0.
12201 * gcse.c: Remove CC0.
12202 * genattrtab.c: Remove CC0.
12203 * genconfig.c: Remove CC0.
12204 * genemit.c: Remove CC0.
12205 * genextract.c: Remove CC0.
12206 * gengenrtl.c: Remove CC0.
12207 * genrecog.c: Remove CC0.
12208 * haifa-sched.c: Remove CC0.
12209 * ifcvt.c: Remove CC0.
12210 * ira-costs.c: Remove CC0.
12211 * ira.c: Remove CC0.
12212 * jump.c: Remove CC0.
12213 * loop-invariant.c: Remove CC0.
12214 * lra-constraints.c: Remove CC0.
12215 * lra-eliminations.c: Remove CC0.
12216 * optabs.c: Remove CC0.
12217 * postreload-gcse.c: Remove CC0.
12218 * postreload.c: Remove CC0.
12219 * print-rtl.c: Remove CC0.
12220 * read-rtl-function.c: Remove CC0.
12221 * reg-notes.def: Remove CC0.
12222 * reg-stack.c: Remove CC0.
12223 * reginfo.c: Remove CC0.
12224 * regrename.c: Remove CC0.
12225 * reload.c: Remove CC0.
12226 * reload1.c: Remove CC0.
12227 * reorg.c: Remove CC0.
12228 * resource.c: Remove CC0.
12229 * rtl.c: Remove CC0.
12230 * rtl.def: Remove CC0.
12231 * rtl.h: Remove CC0.
12232 * rtlanal.c: Remove CC0.
12233 * sched-deps.c: Remove CC0.
12234 * sched-rgn.c: Remove CC0.
12235 * shrink-wrap.c: Remove CC0.
12236 * simplify-rtx.c: Remove CC0.
12237 * system.h: Remove CC0. Poison NOTICE_UPDATE_CC, CC_STATUS_MDEP_INIT,
12238 CC_STATUS_MDEP, and CC_STATUS.
12239 * target.def: Remove CC0.
12240 * valtrack.c: Remove CC0.
12241 * var-tracking.c: Remove CC0.
12243 2021-05-04 Richard Biener <rguenther@suse.de>
12245 PR tree-optimization/100414
12246 * tree-ssa-phiopt.c (get_non_trapping): Do not compute dominance
12248 (tree_ssa_phiopt_worker): But unconditionally here.
12250 2021-05-04 Tobias Burnus <tobias@codesourcery.com>
12252 * omp-low.c (lower_rec_input_clauses, lower_reduction_clauses): Handle
12253 && and || with floating-point and complex arguments.
12255 2021-05-04 Eric Botcazou <ebotcazou@adacore.com>
12257 * tree-inline.c (insert_debug_decl_map): Delete.
12258 (copy_debug_stmt): Minor tweak.
12259 (setup_one_parameter): Do not use a variable if the value is either
12260 a read-only DECL or a non-addressable local variable in the caller.
12261 In this case, insert the debug-only variable in the map manually.
12262 (expand_call_inline): Do not generate a CLOBBER for these values.
12263 * tree-inline.h (debug_map): Minor tweak.
12265 2021-05-04 Eric Botcazou <ebotcazou@adacore.com>
12267 * builtins.c (builtin_with_linkage_p): Return true for stp[n]cpy.
12268 * symtab.c (symtab_node::output_to_lto_symbol_table_p): Tidy up.
12270 2021-05-04 Richard Biener <rguenther@suse.de>
12272 PR tree-optimization/100329
12273 * tree-ssa-reassoc.c (can_reassociate_p): Do not reassociate
12275 (insert_stmt_after): Assert we're not running into asm goto.
12277 2021-05-04 Richard Biener <rguenther@suse.de>
12279 PR tree-optimization/100398
12280 * tree-ssa-dse.c (pass_dse::execute): Preserve control
12283 2021-05-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
12285 * builtins.c (try_store_by_multiple_pieces): Fix constfun's prototype.
12287 2021-05-04 Alexandre Oliva <oliva@adacore.com>
12289 * builtins.c (try_store_by_multiple_pieces): New.
12290 (expand_builtin_memset_args): Use it. If target_char_cast
12291 fails, proceed as for non-constant val. Pass len's ctz to...
12292 * expr.c (clear_storage_hints): ... this. Try store by
12293 multiple pieces after setmem.
12294 (clear_storage): Adjust.
12295 * expr.h (clear_storage_hints): Likewise.
12296 (try_store_by_multiple_pieces): Declare.
12297 * passes.def: Replace the last copy_prop with ccp.
12299 2021-05-03 Tom de Vries <tdevries@suse.de>
12302 * omp-low.c (lower_rec_input_clauses): Disable SIMT for user-defined
12305 2021-05-03 Richard Biener <rguenther@suse.de>
12307 * tree-ssa-dse.c (dse_classify_store): Track two PHI defs.
12309 2021-05-03 Richard Biener <rguenther@suse.de>
12311 * tree-ssa-dse.c: Do not include domwalk.h but cfganal.h.
12312 (dse_dom_walker): Remove.
12313 (dse_dom_walker::dse_optimize_stmt): Rename...
12314 (dse_optimize_stmt): ... to this, pass in live_bytes sbitmap.
12315 (dse_dom_walker::before_dom_children): Inline ...
12316 (pass_dse::execute): ... here. Perform a reverse program
12319 2021-05-03 H.J. Lu <hjl.tools@gmail.com>
12322 * configure: Regenerated.
12324 2021-05-03 Ilya Leoshkevich <iii@linux.ibm.com>
12327 * config/s390/s390.c (s390_hard_fp_reg_p): New function.
12328 (s390_md_asm_adjust): Handle hard registers.
12330 2021-05-03 Jakub Jelinek <jakub@redhat.com>
12332 PR tree-optimization/100382
12333 * tree-ssa-dse.c: Include tree-eh.h.
12334 (dse_dom_walker::before_dom_children): Don't remove stmts if
12335 stmt_unremovable_because_of_non_call_eh_p is true.
12337 2021-05-02 David Edelsohn <dje.gcc@gmail.com>
12339 * varasm.c (compute_reloc_for_var): Split out from...
12340 (get_variable_section): Use it.
12341 * output.h (compute_reloc_for_var): Declare.
12342 * config/rs6000/rs6000-protos.h
12343 (rs6000_xcoff_asm_output_aligned_decl_common): Change alignment to
12345 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address_aix):
12346 Don't append storage mapping class to symbol.
12347 (rs6000_xcoff_asm_named_section): Add BS and UL mapping classes.
12348 Don't convert TLS BSS to common.
12349 (rs6000_xcoff_unique_section): Don't fall back to select_secton.
12350 (rs6000_xcoff_section_type_flags): Add SECTION_BSS if DECL is
12352 (rs6000_xcoff_asm_globalize_decl_name): Don't strip storage
12354 (rs6000_xcoff_asm_output_aligned_decl_common): Align is unsigned int.
12355 If align is 0 from TLS class, use the same rules as varasm.c
12356 If not common, switch to BSS section manually.
12357 If common, emit appropriate comm or lcomm directive.
12358 (rs6000_xcoff_encode_section_info): Add logic to append all
12359 storage mapping classes.
12360 (rs6000_asm_weaken_decl): Adjust for qualname symbols.
12361 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
12362 rs6000_xcoff_asm_output_aligned_decl_common.
12363 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
12364 rs6000_xcoff_asm_output_aligned_decl_common.
12365 (ASM_OUTPUT_TLS_COMMON): Use
12366 rs6000_xcoff_asm_output_aligned_decl_common.
12368 2021-05-02 Jakub Jelinek <jakub@redhat.com>
12371 * config/nvptx/nvptx.c (nvptx_sese_pseudo): Use nullptr instead of 0
12372 as first argument of pseudo_node_t constructors.
12374 2021-05-02 Jakub Jelinek <jakub@redhat.com>
12377 * config/i386/t-i386 (TM_H): Add $(srcdir)/config/i386/i386-isa.def.
12379 2021-05-01 Aldy Hernandez <aldyh@redhat.com>
12381 * value-range.cc (DEFINE_INT_RANGE_GC_STUBS): Remove.
12382 (gt_pch_nx (int_range<1> *&)): New.
12383 (gt_ggc_mx (int_range<1> *&)): New.
12384 * value-range.h (class irange): Add GTY support for
12387 2021-05-01 Geng Qi <gengqi@linux.alibaba.com>
12389 * doc/options.texi (Negative): Change either or to both and.
12391 2021-04-30 Jonathan Wright <jonathan.wright@arm.com>
12393 * config/aarch64/aarch64-simd-builtins.def: Add
12394 float_ml[as][q]_laneq builtin generator macros.
12395 * config/aarch64/aarch64-simd.md (mul_laneq<mode>3): Define.
12396 (aarch64_float_mla_laneq<mode>): Define.
12397 (aarch64_float_mls_laneq<mode>): Define.
12398 * config/aarch64/arm_neon.h (vmla_laneq_f32): Use RTL builtin
12399 instead of GCC vector extensions.
12400 (vmlaq_laneq_f32): Likewise.
12401 (vmls_laneq_f32): Likewise.
12402 (vmlsq_laneq_f32): Likewise.
12404 2021-04-30 Jonathan Wright <jonathan.wright@arm.com>
12406 * config/aarch64/aarch64-simd-builtins.def: Add
12407 float_ml[as]_lane builtin generator macros.
12408 * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt<mode>):
12410 (mul_lane<mode>3): This, and re-order arguments.
12411 (aarch64_float_mla_lane<mode>): Define.
12412 (aarch64_float_mls_lane<mode>): Define.
12413 * config/aarch64/arm_neon.h (vmla_lane_f32): Use RTL builtin
12414 instead of GCC vector extensions.
12415 (vmlaq_lane_f32): Likewise.
12416 (vmls_lane_f32): Likewise.
12417 (vmlsq_lane_f32): Likewise.
12419 2021-04-30 Jonathan Wright <jonathan.wright@arm.com>
12421 * config/aarch64/aarch64-simd-builtins.def: Add float_ml[as]
12422 builtin generator macros.
12423 * config/aarch64/aarch64-simd.md (aarch64_float_mla<mode>):
12425 (aarch64_float_mls<mode>): Define.
12426 * config/aarch64/arm_neon.h (vmla_f32): Use RTL builtin
12427 instead of relying on GCC vector extensions.
12428 (vmla_f64): Likewise.
12429 (vmlaq_f32): Likewise.
12430 (vmlaq_f64): Likewise.
12431 (vmls_f32): Likewise.
12432 (vmls_f64): Likewise.
12433 (vmlsq_f32): Likewise.
12434 (vmlsq_f64): Likewise.
12435 * config/aarch64/iterators.md: Define VDQF_DF mode iterator.
12437 2021-04-30 Jonathan Wright <jonathan.wright@arm.com>
12439 * config/aarch64/aarch64-simd-builtins.def: Add
12440 float_ml[as]_n_builtin generator macros.
12441 * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_from_dup<mode>):
12443 (mul_n<mode>3): This, and re-order arguments.
12444 (aarch64_float_mla_n<mode>): Define.
12445 (aarch64_float_mls_n<mode>): Define.
12446 * config/aarch64/arm_neon.h (vmla_n_f32): Use RTL builtin
12447 instead of inline asm.
12448 (vmlaq_n_f32): Likewise.
12449 (vmls_n_f32): Likewise.
12450 (vmlsq_n_f32): Likewise.
12452 2021-04-30 Jonathan Wright <joanthan.wright@arm.com>
12454 * config/aarch64/aarch64-simd-builtins.def: Add pmull[2]
12455 builtin generator macros.
12456 * config/aarch64/aarch64-simd.md (aarch64_pmullv8qi): Define.
12457 (aarch64_pmull_hiv16qi_insn): Define.
12458 (aarch64_pmull_hiv16qi): Define.
12459 * config/aarch64/arm_neon.h (vmull_high_p8): Use RTL builtin
12460 instead of inline asm.
12461 (vmull_p8): Likewise.
12463 2021-04-30 Senthil Kumar Selvaraj <saaadhu@gcc.gnu.org>
12465 * config/avr/avr.md: Adjust peepholes to match and
12466 generate parallels with clobber of REG_CC.
12467 (mov<mode>_insn): Rename to mov<mode>_insn_split.
12468 (*mov<mode>_insn): Rename to mov<mode>_insn.
12470 2021-04-30 David Edelsohn <dje.gcc@gmail.com>
12472 * varasm.c (use_blocks_for_decl_p): Don't use section anchors
12473 for VAR_DECLs if -fdata-sections enabled.
12475 2021-04-30 Michael Meissner <meissner@linux.ibm.com>
12477 PR bootstrap/100327
12478 * config/rs6000/rs6000.c
12479 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Define.
12480 (rs6000_libgcc_floating_mode_supported_p): New target hook.
12482 2021-04-30 Aldy Hernandez <aldyh@redhat.com>
12484 * tree-ssa-threadbackward.c (class thread_jumps): Split out code
12486 (class back_threader_registry): ...to here...
12487 (class back_threader_profitability): ...and here...
12488 (thread_jumps::thread_through_all_blocks): Remove argument.
12489 (back_threader_registry::back_threader_registry): New.
12490 (back_threader_registry::~back_threader_registry): New.
12491 (back_threader_registry::thread_through_all_blocks): New.
12492 (thread_jumps::profitable_jump_thread_path): Move from here...
12493 (back_threader_profitability::profitable_path_p): ...to here.
12494 (thread_jumps::find_taken_edge): New.
12495 (thread_jumps::convert_and_register_current_path): Move...
12496 (back_threader_registry::register_path): ...to here.
12497 (thread_jumps::register_jump_thread_path_if_profitable): Move...
12498 (thread_jumps::maybe_register_path): ...to here.
12499 (thread_jumps::handle_phi): Call find_taken_edge and
12500 maybe_register_path.
12501 (thread_jumps::handle_assignment): Same.
12502 (thread_jumps::fsm_find_control_statement_thread_paths): Remove
12503 tree argument to handle_phi and handle_assignment.
12504 (thread_jumps::find_jump_threads_backwards): Set m_name. Remove
12505 set of m_speed_p and m_max_threaded_paths.
12506 (pass_thread_jumps::execute): Remove second argument from
12507 find_jump_threads_backwards.
12508 (pass_early_thread_jumps::execute): Same.
12510 2021-04-30 Aldy Hernandez <aldyh@redhat.com>
12512 * tree-ssa-dom.c (class dom_jump_threader_simplifier): New.
12513 (class dom_opt_dom_walker): Initialize some class variables.
12514 (pass_dominator::execute): Pass evrp_range_analyzer and
12515 dom_jump_threader_simplifier to dom_opt_dom_walker.
12516 Adjust for some functions moving into classes.
12517 (simplify_stmt_for_jump_threading): Adjust and move to...
12518 (jump_threader_simplifier::simplify): ...here.
12519 (dom_opt_dom_walker::before_dom_children): Adjust for
12520 m_evrp_range_analyzer.
12521 (dom_opt_dom_walker::after_dom_children): Remove x_vr_values hack.
12522 (test_for_singularity): Place in dom_opt_dom_walker class.
12523 (dom_opt_dom_walker::optimize_stmt): The argument
12524 evrp_range_analyzer is now a class field.
12525 * tree-ssa-threadbackward.c (class thread_jumps): Add m_registry.
12526 (thread_jumps::thread_through_all_blocks): New.
12527 (thread_jumps::convert_and_register_current_path): Use m_registry.
12528 (pass_thread_jumps::execute): Adjust for thread_through_all_blocks
12529 being in the threader class.
12530 (pass_early_thread_jumps::execute): Same.
12531 * tree-ssa-threadedge.c (threadedge_initialize_values): Move...
12532 (jump_threader::jump_threader): ...here.
12533 (threadedge_finalize_values): Move...
12534 (jump_threader::~jump_threader): ...here.
12535 (jump_threader::remove_jump_threads_including): New.
12536 (jump_threader::thread_through_all_blocks): New.
12537 (record_temporary_equivalences_from_phis): Move...
12538 (jump_threader::record_temporary_equivalences_from_phis): ...here.
12539 (record_temporary_equivalences_from_stmts_at_dest): Move...
12540 (jump_threader::record_temporary_equivalences_from_stmts_at_dest):
12542 (simplify_control_stmt_condition_1): Move to jump_threader class.
12543 (simplify_control_stmt_condition): Move...
12544 (jump_threader::simplify_control_stmt_condition): ...here.
12545 (thread_around_empty_blocks): Move...
12546 (jump_threader::thread_around_empty_blocks): ...here.
12547 (thread_through_normal_block): Move...
12548 (jump_threader::thread_through_normal_block): ...here.
12549 (thread_across_edge): Move...
12550 (jump_threader::thread_across_edge): ...here.
12551 (thread_outgoing_edges): Move...
12552 (jump_threader::thread_outgoing_edges): ...here.
12553 * tree-ssa-threadedge.h: Move externally facing functings...
12554 (class jump_threader): ...here...
12555 (class jump_threader_simplifier): ...and here.
12556 * tree-ssa-threadupdate.c (struct redirection_data): Remove comment.
12557 (jump_thread_path_allocator::jump_thread_path_allocator): New.
12558 (jump_thread_path_allocator::~jump_thread_path_allocator): New.
12559 (jump_thread_path_allocator::allocate_thread_edge): New.
12560 (jump_thread_path_allocator::allocate_thread_path): New.
12561 (jump_thread_path_registry::jump_thread_path_registry): New.
12562 (jump_thread_path_registry::~jump_thread_path_registry): New.
12563 (jump_thread_path_registry::allocate_thread_edge): New.
12564 (jump_thread_path_registry::allocate_thread_path): New.
12565 (dump_jump_thread_path): Make extern.
12566 (debug (const vec<jump_thread_edge *> &path)): New.
12567 (struct removed_edges): Move to tree-ssa-threadupdate.h.
12568 (struct thread_stats_d): Remove.
12569 (remove_ctrl_stmt_and_useless_edges): Make static.
12570 (lookup_redirection_data): Move...
12571 (jump_thread_path_registry::lookup_redirection_data): ...here.
12572 (ssa_redirect_edges): Make static.
12573 (thread_block_1): Move...
12574 (jump_thread_path_registry::thread_block_1): ...here.
12575 (thread_block): Move...
12576 (jump_thread_path_registry::thread_block): ...here.
12577 (thread_through_loop_header): Move...
12578 (jump_thread_path_registry::thread_through_loop_header): ...here.
12579 (mark_threaded_blocks): Move...
12580 (jump_thread_path_registry::mark_threaded_blocks): ...here.
12581 (debug_path): Move...
12582 (jump_thread_path_registry::debug_path): ...here.
12583 (debug_all_paths): Move...
12584 (jump_thread_path_registry::dump): ..here.
12585 (rewire_first_differing_edge): Move...
12586 (jump_thread_path_registry::rewire_first_differing_edge): ...here.
12587 (adjust_paths_after_duplication): Move...
12588 (jump_thread_path_registry::adjust_paths_after_duplication): ...here.
12589 (duplicate_thread_path): Move...
12590 (jump_thread_path_registry::duplicate_thread_path): ..here.
12591 (remove_jump_threads_including): Move...
12592 (jump_thread_path_registry::remove_jump_threads_including): ...here.
12593 (thread_through_all_blocks): Move to...
12594 (jump_thread_path_registry::thread_through_all_blocks): ...here.
12595 (delete_jump_thread_path): Remove.
12596 (register_jump_thread): Move...
12597 (jump_thread_path_registry::register_jump_thread): ...here.
12598 * tree-ssa-threadupdate.h: Move externally facing functions...
12599 (class jump_thread_path_allocator): ...here...
12600 (class jump_thread_path_registry): ...and here.
12601 (thread_through_all_blocks): Remove.
12602 (struct removed_edges): New.
12603 (register_jump_thread): Remove.
12604 (remove_jump_threads_including): Remove.
12605 (delete_jump_thread_path): Remove.
12606 (remove_ctrl_stmt_and_useless_edges): Remove.
12607 (free_dom_edge_info): New prototype.
12608 * tree-vrp.c: Remove x_vr_values hack.
12609 (class vrp_jump_threader_simplifier): New.
12610 (vrp_jump_threader_simplifier::simplify): New.
12611 (vrp_jump_threader::vrp_jump_threader): Adjust method signature.
12612 Remove m_dummy_cond.
12613 Instantiate m_simplifier and m_threader.
12614 (vrp_jump_threader::thread_through_all_blocks): New.
12615 (vrp_jump_threader::simplify_stmt): Remove.
12616 (vrp_jump_threader::after_dom_children): Do not set m_dummy_cond.
12617 Remove x_vr_values hack.
12618 (execute_vrp): Adjust for thread_through_all_blocks being in a
12621 2021-04-30 Christophe Lyon <christophe.lyon@linaro.org>
12623 * genflags.c (gen_insn): Print failed expansion string.
12625 2021-04-30 H.J. Lu <hjl.tools@gmail.com>
12627 * expr.c (alignment_for_piecewise_move): Call mode_for_size
12628 without limit to MAX_FIXED_MODE_SIZE.
12630 2021-04-30 H.J. Lu <hjl.tools@gmail.com>
12632 PR middle-end/90773
12633 * builtins.c (builtin_memset_gen_str): Don't use return from
12634 simplify_gen_subreg.
12636 2021-04-30 Uroš Bizjak <ubizjak@gmail.com>
12639 * config/i386/i386.md (*add<mode>3_carry_0r): New insn pattern.
12640 (*addsi3_carry_zext_0r): Ditto.
12641 (*sub<mode>3_carry_0): Ditto.
12642 (*subsi3_carry_zext_0r): Ditto.
12643 * config/i386/predicates.md (ix86_carry_flag_unset_operator):
12645 * config/i386/i386.c (ix86_rtx_costs) <case PLUS, case MINUS>:
12646 Also consider ix86_carry_flag_unset_operator to calculate
12647 the cost of adc/sbb insn.
12649 2021-04-30 Roman Zhuykov <zhroma@ispras.ru>
12651 PR rtl-optimization/100225
12652 PR rtl-optimization/84878
12653 * modulo-sched.c (sms_schedule): Use note_stores to skip loops
12654 where we have an instruction which touches (writes) any hard
12655 register from df->regular_block_artificial_uses set.
12656 Allow not-single-set instruction only right before basic block
12659 2021-04-30 Geng Qi <gengqi@linux.alibaba.com>
12661 * config/riscv/riscv.opt (march=,mabi=): Negative itself.
12663 2021-04-30 LevyHsu <admin@levyhsu.com>
12665 * config/riscv/riscv.c (riscv_min_arithmetic_precision): New.
12666 * config/riscv/riscv.h (TARGET_MIN_ARITHMETIC_PRECISION): New.
12667 * config/riscv/riscv.md (addv<mode>4, uaddv<mode>4): New.
12668 (subv<mode>4, usubv<mode>4, mulv<mode>4, umulv<mode>4): New.
12670 2021-04-29 Alexandre Oliva <oliva@adacore.com>
12672 * config.gcc: Merged x86 and x86_64 cpu_type-setting cases.
12674 2021-04-29 Alexandre Oliva <oliva@adacore.com>
12676 * config/i386/i386.h (ASM_OUTPUT_MAX_SKIP_PAD): Rename to...
12677 (ASM_OUTPUT_MAX_SKIP_ALIGN): ... this. Enclose in do/while(0).
12678 * config/i386/i386.c: Adjust.
12679 * config/i386/i386.md: Adjust.
12680 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Drop.
12681 * config/i386/dragonfly.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
12682 * config/i386/freebsd.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
12683 * config/i386/gas.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
12684 * config/i386/gnu-user.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
12685 * config/i386/iamcu.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
12686 * config/i386/lynx.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
12687 * config/i386/netbsd-elf.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
12688 * config/i386/openbsdelf.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
12689 * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
12690 (ASM_OUTPUT_MAX_SKIP_PAD): Likewise.
12692 2021-04-29 Uroš Bizjak <ubizjak@gmail.com>
12694 * config/i386/i386-expand.c (ix86_expand_int_compare):
12695 Swap operands of GTU and LEU comparison to emit carry flag comparison.
12696 * config/i386/i386.md (*add<mode>3_carry_0): Change insn
12697 predicate to allow more combine opportunities with memory operands.
12698 (*sub<mode>3_carry_0): Ditto.
12700 2021-04-29 Richard Sandiford <richard.sandiford@arm.com>
12702 PR rtl-optimization/100303
12703 * rtl-ssa/accesses.cc (function_info::make_use_available): Take a
12704 boolean that indicates whether the use will only be used in
12705 debug instructions. Treat it in the same way that existing
12706 cross-EBB debug references would be handled if so.
12707 (function_info::make_uses_available): Likewise.
12708 * rtl-ssa/functions.h (function_info::make_uses_available): Update
12709 prototype accordingly.
12710 (function_info::make_uses_available): Likewise.
12711 * fwprop.c (try_fwprop_subst): Update call accordingly.
12713 2021-04-29 Jeff Law <jlaw@tachyum.com>
12715 * config/nios2/nios2-protos.h (nios2_fpu_insn_enabled): Move outside
12718 2021-04-29 Uroš Bizjak <ubizjak@gmail.com>
12719 Richard Biener <rguenther@suse.de>
12722 * config/i386/i386-builtin.def (IX86_BUILTIN_MASKLOADPD)
12723 (IX86_BUILTIN_MASKLOADPS, IX86_BUILTIN_MASKLOADPD256)
12724 (IX86_BUILTIN_MASKLOADPS256, IX86_BUILTIN_MASKLOADD)
12725 (IX86_BUILTIN_MASKLOADQ, IX86_BUILTIN_MASKLOADD256)
12726 (IX86_BUILTIN_MASKLOADQ256): Move from SPECIAL_ARGS
12727 to PURE_ARGS category.
12728 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
12729 Handle PURE_ARGS category.
12730 * config/i386/i386-expand.c (ix86_expand_builtin): Ditto.
12732 2021-04-29 Eric Botcazou <ebotcazou@adacore.com>
12734 * configure.ac: Check for the presence of sys/locking.h header and
12735 for whether _LK_LOCK is supported by _locking.
12736 * configure: Regenerate.
12737 * config.in: Likewise.
12738 * gcov-io.h: Define GCOV_LOCKED_WITH_LOCKING if HOST_HAS_LK_LOCK.
12739 * gcov-io.c (gcov_open): Add support for GCOV_LOCKED_WITH_LOCKING.
12740 * system.h: Include <sys/locking.h> if HAVE_SYS_LOCKING_H.
12742 2021-04-29 Uroš Bizjak <ubizjak@gmail.com>
12744 * config/i386/predicates.md (fcmov_comparison_operator):
12745 Do not check for trivial FP comparison operator.
12746 <case GEU, case LTU>: Allow CCGZmode.
12747 <case GTU, case LEU>: Do not allow CCCmode.
12748 (ix86_comparison_operator) <case GTU, case LEU>: Allow only CCmode.
12749 (ix86_carry_flag_operator): Match only LTU and UNLT code.
12750 Do not check for trivial FP comparison operator. Allow CCGZmode.
12752 2021-04-29 Tom de Vries <tdevries@suse.de>
12754 * omp-expand.c (expand_omp_simd): Add step_orig, and replace uses of
12755 fd->loop.step by either step or orig_step.
12757 2021-04-29 Eric Botcazou <ebotcazou@adacore.com>
12759 * config/sparc/sparc.c (gen_load_pcrel_sym): Delete.
12760 (load_got_register): Do the PIC dance here.
12761 (sparc_legitimize_tls_address): Simplify.
12762 (sparc_emit_probe_stack_range): Likewise.
12763 (sparc32_initialize_trampoline): Likewise.
12764 (sparc64_initialize_trampoline): Likewise.
12765 * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Add @ marker.
12766 (probe_stack_range<P:mode>): Likewise.
12767 (flush<P:mode>): Likewise.
12768 (tgd_hi22<P:mode>): Likewise.
12769 (tgd_lo10<P:mode>): Likewise.
12770 (tgd_add<P:mode>): Likewise.
12771 (tgd_call<P:mode>): Likewise.
12772 (tldm_hi22<P:mode>): Likewise.
12773 (tldm_lo10<P:mode>): Likewise.
12774 (tldm_add<P:mode>): Likewise.
12775 (tldm_call<P:mode>): Likewise.
12776 (tldo_hix22<P:mode>): Likewise.
12777 (tldo_lox10<P:mode>): Likewise.
12778 (tldo_add<P:mode>): Likewise.
12779 (tie_hi22<P:mode>): Likewise.
12780 (tie_lo10<P:mode>): Likewise.
12781 (tie_add<P:mode>): Likewise.
12782 (tle_hix22<P:mode>): Likewise.
12783 (tle_lox10<P:mode>): Likewise.
12784 (stack_protect_setsi): Rename to...
12785 (stack_protect_set32): ...this.
12786 (stack_protect_setdi): Rename to...
12787 (stack_protect_set64): ...this.
12788 (stack_protect_set): Adjust calls to above.
12789 (stack_protect_testsi): Rename to...
12790 (stack_protect_test32): ...this.
12791 (stack_protect_testdi): Rename to...
12792 (stack_protect_test64): ...this.
12793 (stack_protect_test): Adjust calls to above.
12795 2021-04-29 H.J. Lu <hjl.tools@gmail.com>
12797 PR middle-end/90773
12798 * builtins.c (builtin_memcpy_read_str): Add a dummy argument.
12799 (builtin_strncpy_read_str): Likewise.
12800 (builtin_memset_read_str): Add an argument for the previous RTL
12801 information and generate the new RTL from the previous RTL info.
12802 (builtin_memset_gen_str): Likewise.
12803 * builtins.h (builtin_strncpy_read_str): Update the prototype.
12804 (builtin_memset_read_str): Likewise.
12805 * expr.c (by_pieces_ninsns): If targetm.overlap_op_by_pieces_p()
12806 returns true, round up size and alignment to the widest integer
12807 mode for maximum size.
12808 (pieces_addr::adjust): Add a pointer to by_pieces_prev argument
12809 and pass it to m_constfn.
12810 (op_by_pieces_d): Add m_push and m_overlap_op_by_pieces.
12811 (op_by_pieces_d::op_by_pieces_d): Add a bool argument to
12812 initialize m_push. Initialize m_overlap_op_by_pieces with
12813 targetm.overlap_op_by_pieces_p ().
12814 (op_by_pieces_d::run): Pass the previous RTL information to
12815 pieces_addr::adjust and generate overlapping operations if
12816 m_overlap_op_by_pieces is true.
12818 (move_by_pieces_d::move_by_pieces_d): Updated for op_by_pieces_d
12820 (store_by_pieces_d::store_by_pieces_d): Updated for op_by_pieces_d
12822 (can_store_by_pieces): Use by_pieces_constfn on constfun.
12823 (store_by_pieces): Use by_pieces_constfn on constfun. Updated
12824 for op_by_pieces_d change.
12825 (clear_by_pieces_1): Add a dummy argument.
12826 (clear_by_pieces): Updated for op_by_pieces_d change.
12827 (compare_by_pieces_d::compare_by_pieces_d): Likewise.
12828 (string_cst_read_str): Add a dummy argument.
12829 * expr.h (by_pieces_constfn): Add a dummy argument.
12830 (by_pieces_prev): New.
12831 * target.def (overlap_op_by_pieces_p): New target hook.
12832 * config/i386/i386.c (TARGET_OVERLAP_OP_BY_PIECES_P): New.
12833 * doc/tm.texi.in: Add TARGET_OVERLAP_OP_BY_PIECES_P.
12834 * doc/tm.texi: Regenerated.
12836 2021-04-29 Richard Biener <rguenther@suse.de>
12838 PR tree-optimization/100253
12839 * tree-vect-stmts.c (vectorizable_load): Do not assume
12840 element alignment when DR_MISALIGNMENT is -1.
12841 (vectorizable_store): Likewise.
12843 2021-04-29 Jakub Jelinek <jakub@redhat.com>
12846 * config/aarch64/aarch64.c (aarch64_add_offset_1_temporaries): Use
12847 absu_hwi instead of abs_hwi.
12849 2021-04-29 Richard Biener <rguenther@suse.de>
12851 PR middle-end/38474
12852 * tree-ssa-structalias.c (add_graph_edge): Avoid direct
12853 forwarding when indirect forwarding through ESCAPED
12856 2021-04-29 Tom de Vries <tdevries@suse.de>
12859 * internal-fn.c (expand_GOMP_SIMT_ENTER_ALLOC)
12860 (expand_GOMP_SIMT_LAST_LANE, expand_GOMP_SIMT_ORDERED_PRED)
12861 (expand_GOMP_SIMT_VOTE_ANY, expand_GOMP_SIMT_XCHG_BFLY)
12862 (expand_GOMP_SIMT_XCHG_IDX): Ensure target is assigned to.
12864 2021-04-29 Richard Biener <rguenther@suse.de>
12866 PR tree-optimization/99912
12867 * tree-ssa-dse.c (dse_dom_walker::m_need_cfg_cleanup): New.
12868 (dse_dom_walker::todo): Likewise.
12869 (dse_dom_walker::dse_optimize_stmt): Move VDEF check to the
12871 (dse_dom_walker::before_dom_children): Remove trivially
12872 dead SSA defs and schedule CFG cleanup if we removed all
12874 (pass_dse::execute): Get TODO as computed by the DOM walker
12875 and return it. Wipe dominator info earlier.
12877 2021-04-29 Richard Biener <rguenther@suse.de>
12880 * ipa-prop.c (ipcp_modif_dom_walker::before_dom_children):
12881 Track blocks to cleanup EH in new m_need_eh_cleanup.
12882 (ipcp_modif_dom_walker::cleanup_eh): New.
12883 (ipcp_transform_function): Release dominator info before
12886 2021-04-29 Martin Sebor <msebor@redhat.com>
12888 PR middle-end/100250
12889 * attribs.c (attr_access::array_as_string): Avoid dereferencing
12890 a pointer when it's null.
12892 2021-04-29 Martin Sebor <msebor@redhat.com>
12894 * Makefile.in (OBJS): Add ipa-free-lang-data.o.
12895 * ipa-free-lang-data.cc: New file.
12896 * tree.c: Move pass free_lang_data to file above.
12897 (build_array_type_1): Declare extern.
12898 * tree.h (build_array_type_1): Declare.
12900 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
12902 * config/aarch64/aarch64-simd-builtins.def: Modify comment to
12903 make consistent with updated RTL pattern.
12904 * config/aarch64/aarch64-simd.md (aarch64_<sur>qmovn<mode>):
12905 Implement using ss_truncate and us_truncate rather than
12907 * config/aarch64/iterators.md: Remove redundant unspecs and
12908 iterator: UNSPEC_[SU]QXTN and SUQMOVN respectively.
12910 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
12912 * config/aarch64/arm_acle.h (__attribute__): Make intrinsic
12913 attributes consistent with those defined in arm_neon.h.
12915 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
12917 * config/aarch64/arm_fp16.h (__attribute__): Make intrinsic
12918 attributes consistent with those defined in arm_neon.h.
12920 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
12922 * config/aarch64/aarch64-simd-builtins.def: Add
12923 float_trunc_rodd builtin generator macros.
12924 * config/aarch64/aarch64-simd.md (aarch64_float_trunc_rodd_df):
12926 (aarch64_float_trunc_rodd_lo_v2sf): Define.
12927 (aarch64_float_trunc_rodd_hi_v4sf_le): Define.
12928 (aarch64_float_trunc_rodd_hi_v4sf_be): Define.
12929 (aarch64_float_trunc_rodd_hi_v4sf): Define.
12930 * config/aarch64/arm_neon.h (vcvtx_f32_f64): Use RTL builtin
12931 instead of inline asm.
12932 (vcvtx_high_f32_f64): Likewise.
12933 (vcvtxd_f32_f64): Likewise.
12934 * config/aarch64/iterators.md: Add FCVTXN unspec.
12936 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
12938 * config/aarch64/aarch64-simd-builtins.def: Add tbx1 builtin
12940 * config/aarch64/aarch64-simd.md (aarch64_tbx1<mode>):
12942 * config/aarch64/arm_neon.h (vqtbx1_s8): USE RTL builtin
12943 instead of inline asm.
12944 (vqtbx1_u8): Likewise.
12945 (vqtbx1_p8): Likewise.
12946 (vqtbx1q_s8): Likewise.
12947 (vqtbx1q_u8): Likewise.
12948 (vqtbx1q_p8): Likewise.
12949 (vtbx2_s8): Likewise.
12950 (vtbx2_u8): Likewise.
12951 (vtbx2_p8): Likewise.
12953 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
12955 * config/aarch64/aarch64-simd-builtins.def: Add tbl1 builtin
12957 * config/aarch64/arm_neon.h (vqtbl1_p8): Use RTL builtin
12958 instead of inline asm.
12959 (vqtbl1_s8): Likewise.
12960 (vqtbl1_u8): Likewise.
12961 (vqtbl1q_p8): Likewise.
12962 (vqtbl1q_s8): Likewise.
12963 (vqtbl1q_u8): Likewise.
12964 (vtbl1_s8): Likewise.
12965 (vtbl1_u8): Likewise.
12966 (vtbl1_p8): Likewise.
12967 (vtbl2_s8): Likewise.
12968 (vtbl2_u8): Likewise.
12969 (vtbl2_p8): Likewise.
12971 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
12973 * config/aarch64/aarch64-simd-builtins.def: Add polynomial
12974 ssri_n buitin generator macro.
12975 * config/aarch64/arm_neon.h (vsri_n_p8): Use RTL builtin
12976 instead of inline asm.
12977 (vsri_n_p16): Likewise.
12978 (vsri_n_p64): Likewise.
12979 (vsriq_n_p8): Likewise.
12980 (vsriq_n_p16): Likewise.
12981 (vsriq_n_p64): Likewise.
12983 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
12985 * config/aarch64/aarch64-simd-builtins.def: Use VALLP mode
12986 iterator for polynomial ssli_n builtin generator macro.
12987 * config/aarch64/arm_neon.h (vsli_n_p8): Use RTL builtin
12988 instead of inline asm.
12989 (vsli_n_p16): Likewise.
12990 (vsliq_n_p8): Likewise.
12991 (vsliq_n_p16): Likewise.
12992 * config/aarch64/iterators.md: Define VALLP mode iterator.
12994 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
12996 * config/aarch64/aarch64-simd-builtins.def: Use VDQV_L
12997 iterator to generate [su]adalp RTL builtins.
12998 * config/aarch64/aarch64-simd.md: Use VDQV_L iterator in
12999 [su]adalp RTL pattern.
13000 * config/aarch64/arm_neon.h (vpadal_s32): Use RTL builtin
13001 instead of inline asm.
13002 (vpadal_u32): Likewise.
13004 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
13006 * config/aarch64/aarch64-simd-builtins.def: Add [su]addlp
13007 builtin generator macros.
13008 * config/aarch64/aarch64-simd.md (aarch64_<su>addlp<mode>):
13010 * config/aarch64/arm_neon.h (vpaddl_s8): Use RTL builtin
13011 instead of inline asm.
13012 (vpaddl_s16): Likewise.
13013 (vpaddl_s32): Likewise.
13014 (vpaddl_u8): Likewise.
13015 (vpaddl_u16): Likewise.
13016 (vpaddl_u32): Likewise.
13017 (vpaddlq_s8): Likewise.
13018 (vpaddlq_s16): Likewise.
13019 (vpaddlq_s32): Likewise.
13020 (vpaddlq_u8): Likewise.
13021 (vpaddlq_u16): Likewise.
13022 (vpaddlq_u32): Liwewise.
13023 * config/aarch64/iterators.md: Define [SU]ADDLP unspecs with
13024 appropriate attributes.
13026 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
13028 * config/aarch64/aarch64-simd-builtins.def: Use VDQ_I iterator
13029 for aarch64_addp<mode> builtin macro generator.
13030 * config/aarch64/aarch64-simd.md: Use VDQ_I iterator in
13031 aarch64_addp<mode> RTL pattern.
13032 * config/aarch64/arm_neon.h (vpaddq_s8): Use RTL builtin
13033 instead of inline asm.
13034 (vpaddq_s16): Likewise.
13035 (vpaddq_s32): Likewise.
13036 (vpaddq_s64): Likewise.
13037 (vpaddq_u8): Likewise.
13038 (vpaddq_u16): Likewise.
13039 (vpaddq_u32): Likewise.
13040 (vpaddq_u64): Likewise.
13042 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
13044 * config/aarch64/aarch64-simd-builtins.def: Add sq[r]dmulh_n
13045 builtin generator macros.
13046 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_n<mode>):
13048 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Use RTL builtin
13049 instead of inline asm.
13050 (vqdmulh_n_s32): Likewise.
13051 (vqdmulhq_n_s16): Likewise.
13052 (vqdmulhq_n_s32): Likewise.
13053 (vqrdmulh_n_s16): Likewise.
13054 (vqrdmulh_n_s32): Likewise.
13055 (vqrdmulhq_n_s16): Likewise.
13056 (vqrdmulhq_n_s32): Likewise.
13058 2021-04-28 Tobias Burnus <tobias@codesourcery.com>
13060 * doc/install.texi (--enable-offload-defaulted): Document.
13062 2021-04-28 Senthil Kumar Selvaraj <saaadhu@gcc.gnu.org>
13064 * config/avr/avr-dimode.md: Turn existing patterns into
13065 define_insn_and_split style patterns where the splitter
13066 adds a clobber of the condition code register. Drop "cc"
13067 attribute. Add new patterns to match output of
13069 * config/avr/avr-fixed.md: Likewise.
13070 * config/avr/avr.c (cc_reg_rtx): New.
13071 (avr_parallel_insn_from_insns): Adjust insn count
13072 for removal of set of cc0.
13073 (avr_is_casesi_sequence): Likewise.
13074 (avr_casei_sequence_check_operands): Likewise.
13075 (avr_optimize_casesi): Likewise. Also insert
13076 new insns after jump_insn.
13077 (avr_pass_casesi::avr_rest_of_handle_casesi): Adjust
13078 for removal of set of cc0.
13079 (avr_init_expanders): Initialize cc_reg_rtx.
13080 (avr_regno_reg_class): Handle REG_CC.
13081 (cond_string): Remove usage of CC_OVERFLOW_UNUSABLE.
13082 (avr_notice_update_cc): Remove function.
13083 (ret_cond_branch): Remove usage of CC_OVERFLOW_UNUSABLE.
13084 (compare_condition): Adjust for PARALLEL with
13086 (out_shift_with_cnt): Likewise.
13087 (ashlhi3_out): Likewise.
13088 (ashrhi3_out): Likewise.
13089 (lshrhi3_out): Likewise.
13090 (avr_class_max_nregs): Return single reg for REG_CC.
13091 (avr_compare_pattern): Check for REG_CC instead
13093 (avr_reorg_remove_redundant_compare): Likewise.
13094 (avr_reorg):Adjust for PARALLEL with REG_CC clobber.
13095 (avr_hard_regno_nregs): Return single reg for REG_CC.
13096 (avr_hard_regno_mode_ok): Allow only CCmode for REG_CC.
13097 (avr_md_asm_adjust): Clobber REG_CC.
13098 (TARGET_HARD_REGNO_NREGS): Define.
13099 (TARGET_CLASS_MAX_NREGS): Define.
13100 (TARGET_MD_ASM_ADJUST): Define.
13101 * config/avr/avr.h (FIRST_PSEUDO_REGISTER): Adjust
13103 (enum reg_class): Add CC_REG class.
13104 (NOTICE_UPDATE_CC): Remove.
13105 (CC_OVERFLOW_UNUSABLE): Remove.
13106 (CC_NO_CARRY): Remove.
13107 * config/avr/avr.md: Turn existing patterns into
13108 define_insn_and_split style patterns where the splitter
13109 adds a clobber of the condition code register. Drop "cc"
13110 attribute. Add new patterns to match output of
13112 (sez): Remove unused pattern.
13114 2021-04-28 Richard Earnshaw <rearnsha@arm.com>
13117 * config/arm/arm.c (arm_hard_regno_mode_ok): Only allow VPR to be
13120 2021-04-28 Richard Sandiford <richard.sandiford@arm.com>
13123 * config/aarch64/constraints.md (Utq): Require the address to
13124 be valid for both the element mode and for V2DImode.
13126 2021-04-28 Jakub Jelinek <jakub@redhat.com>
13127 Tobias Burnus <tobias@codesourcery.com>
13129 * configure.ac (OFFLOAD_DEFAULTED): AC_DEFINE if offload-defaulted.
13130 * gcc.c (process_command): New variable.
13131 (driver::maybe_putenv_OFFLOAD_TARGETS): If OFFLOAD_DEFAULTED,
13132 set it if -foffload is defaulted.
13133 * lto-wrapper.c (OFFLOAD_TARGET_DEFAULT_ENV): Define.
13134 (compile_offload_image): If OFFLOAD_DEFAULTED and
13135 OFFLOAD_TARGET_DEFAULT is in the environment, don't fail
13136 if corresponding mkoffload can't be found.
13137 (compile_images_for_offload_targets): Likewise. Free and clear
13138 offload_names if no valid offload is found.
13139 * config.in: Regenerate.
13140 * configure: Regenerate.
13142 2021-04-28 Richard Biener <rguenther@suse.de>
13144 PR tree-optimization/100292
13145 * tree-vect-generic.c (expand_vector_condition): Do not fold
13148 2021-04-27 David Edelsohn <dje.gcc@gmail.com>
13150 * config/rs6000/aix.h (SUBTARGET_DRIVER_SELF_SPECS): New.
13151 * config/rs6000/aix64.opt (m64): New.
13154 2021-04-27 Maciej W. Rozycki <macro@orcam.me.uk>
13156 * config/vax/vax.c (print_operand_address, vax_address_cost_1)
13157 (index_term_p): Handle ASHIFT too.
13159 2021-04-27 Maciej W. Rozycki <macro@orcam.me.uk>
13161 * config/vax/builtins.md (jbb<ccss>i<mode>): Remove operand #3.
13162 (sync_lock_test_and_set<mode>): Adjust accordingly.
13163 (sync_lock_release<mode>): Likewise.
13165 2021-04-27 Maciej W. Rozycki <macro@orcam.me.uk>
13167 * config/vax/vax-protos.h (adjacent_operands_p): Remove
13169 * config/vax/vax.c (adjacent_operands_p): Remove.
13171 2021-04-27 Maciej W. Rozycki <macro@linux-mips.org>
13173 * ifcvt.c (dead_or_predicable) [!IFCVT_MODIFY_TESTS]: Fall
13174 through to the non-conditional execution case if getting the
13175 condition for conditional execution has failed.
13177 2021-04-27 Richard Sandiford <richard.sandiford@arm.com>
13179 PR middle-end/100284
13180 * gimple.c (gimple_could_trap_p_1): Remove VEC_COND_EXPR test.
13181 * tree-eh.c (operation_could_trap_p): Handle VEC_COND_EXPR rather
13182 than asserting on it.
13184 2021-04-27 David Edelsohn <dje.gcc@gmail.com>
13186 * config/rs6000/rs6000.c (rs6000_aix_precompute_tls_p): Protect
13187 with TARGET_AIX_OS.
13189 2021-04-27 David Edelsohn <dje.gcc@gmail.com>
13192 * calls.c (precompute_register_parameters): Additionally test
13193 targetm.precompute_tls_p to pre-compute argument.
13194 * config/rs6000/aix.h (TARGET_PRECOMPUTE_TLS_P): Define.
13195 * config/rs6000/rs6000.c (rs6000_aix_precompute_tls_p): New.
13196 * target.def (precompute_tls_p): New.
13197 * doc/tm.texi.in (TARGET_PRECOMPUTE_TLS_P): Add hook documentation.
13198 * doc/tm.texi: Regenerated.
13200 2021-04-27 Jakub Jelinek <jakub@redhat.com>
13203 * config/aarch64/aarch64.c (aarch64_print_operand): Cast -UINTVAL
13204 back to HOST_WIDE_INT.
13206 2021-04-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
13209 * simplify-rtx.c (simplify_context::simplify_subreg): Check the
13210 memory alignment for the outer mode.
13212 2021-04-27 H.J. Lu <hjl.tools@gmail.com>
13214 PR middle-end/90773
13215 * expr.c (op_by_pieces_d::get_usable_mode): New member function.
13216 (op_by_pieces_d::run): Cange a while loop to a do-while loop.
13218 2021-04-27 Alex Coplan <alex.coplan@arm.com>
13221 * config/arm/arm.c (arm_split_compare_and_swap): Fix up codegen
13222 with negative immediates: ensure we expand cbranchsi4_scratch
13223 correctly and ensure we satisfy its constraints.
13224 * config/arm/sync.md
13225 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Don't
13226 attempt to tie two output operands together with constraints;
13227 collapse two alternatives.
13228 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise.
13229 * config/arm/thumb1.md (cbranchsi4_neg_late): New.
13231 2021-04-27 Jakub Jelinek <jakub@redhat.com>
13234 * config/aarch64/predicates.md (aarch64_sub_immediate,
13235 aarch64_plus_immediate): Use -UINTVAL instead of -INTVAL.
13236 * config/aarch64/aarch64.md (casesi, rotl<mode>3): Likewise.
13237 * config/aarch64/aarch64.c (aarch64_print_operand,
13238 aarch64_split_atomic_op, aarch64_expand_subvti): Likewise.
13240 2021-04-27 Jakub Jelinek <jakub@redhat.com>
13242 PR tree-optimization/100239
13243 * tree-vect-generic.c (lower_vec_perm): Don't accept constant
13244 permutations with all indices from the first zero element as vec_shl.
13246 2021-04-27 Jakub Jelinek <jakub@redhat.com>
13248 PR rtl-optimization/100254
13249 * cfgcleanup.c (outgoing_edges_match): Check REG_EH_REGION on
13250 last1 and last2 insns rather than BB_END (bb1) and BB_END (bb2) insns.
13252 2021-04-27 Richard Biener <rguenther@suse.de>
13254 PR tree-optimization/99912
13255 * passes.def: Add comment about new TODO_remove_unused_locals.
13256 * tree-stdarg.c (pass_data_stdarg): Run TODO_remove_unused_locals
13259 2021-04-27 Richard Biener <rguenther@suse.de>
13261 PR tree-optimization/99912
13262 * passes.def (pass_all_optimizations): Add pass_dse before
13263 the first pass_dce, move the first pass_dse before the
13264 pass_dce following pass_pre.
13266 2021-04-27 Jakub Jelinek <jakub@redhat.com>
13268 PR tree-optimization/95527
13269 * generic-match-head.c: Include tm.h.
13270 * gimple-match-head.c: Include tm.h.
13271 * match.pd (CLZ == INTEGER_CST): Don't use
13272 #ifdef CLZ_DEFINED_VALUE_AT_ZERO, only test CLZ_DEFINED_VALUE_AT_ZERO
13273 if clz == CFN_CLZ. Add missing val declaration.
13274 (CTZ cmp CST): New simplifications.
13276 2021-04-27 Jakub Jelinek <jakub@redhat.com>
13278 PR tree-optimization/96696
13279 * expr.c (expand_expr_divmod): New function.
13280 (expand_expr_real_2) <case TRUNC_DIV_EXPR>: Use it for truncations and
13281 divisions. Formatting fixes.
13282 <case MULT_EXPR>: Optimize x / y * y as x - x % y if the latter is
13285 2021-04-27 Martin Jambor <mjambor@suse.cz>
13288 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call):
13289 If removing a call statement LHS SSA name, release it.
13291 2021-04-27 Richard Earnshaw <rearnsha@arm.com>
13294 * config/arm/arm.c (THUMB2_WORK_REGS): Check PIC_OFFSET_TABLE_REGNUM
13295 is valid before including it in the mask.
13297 2021-04-27 Richard Sandiford <richard.sandiford@arm.com>
13300 * config/aarch64/aarch64.c (aarch64_comp_type_attributes): Handle
13303 2021-04-27 Richard Biener <rguenther@suse.de>
13305 PR tree-optimization/100051
13306 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Add
13307 disambiguator based on access size vs. decl size.
13309 2021-04-27 Richard Biener <rguenther@suse.de>
13311 PR tree-optimization/100278
13312 * tree-ssa-pre.c (compute_avail): Give up when we cannot
13313 adjust TBAA beacuse of mismatching bases.
13315 2021-04-27 Jakub Jelinek <jakub@redhat.com>
13318 * config/i386/i386.md (*<insn><mode>3_mask, *<insn><mode>3_mask_1):
13319 For any_rotate define_insn_split and following splitters, use
13320 SWI iterator instead of SWI48.
13322 2021-04-27 Richard Biener <rguenther@suse.de>
13324 PR tree-optimization/99776
13325 * match.pd (bit_field_ref (ctor)): Relax element extract
13326 type compatibility checks.
13328 2021-04-27 Cui,Lili <lili.cui@intel.com>
13330 * common/config/i386/i386-common.c (processor_names):
13331 Sync processor_names with processor_type.
13332 * config/i386/i386-options.c (processor_cost_table):
13333 Sync processor_cost_table with processor_type.
13335 2021-04-26 Aldy Hernandez <aldyh@redhat.com>
13337 * value-range.cc (irange::irange_set_1bit_anti_range): Add assert.
13338 (irange::set): Call irange_set_1bit_anti_range for handling all
13339 1-bit ranges. Fall through on ~[MIN,MAX].
13341 2021-04-26 Aldy Hernandez <aldyh@redhat.com>
13343 * value-range.cc (irange::legacy_num_pairs): Remove.
13344 (irange::invert): Change gcc_assert to gcc_checking_assert.
13345 * value-range.h (irange::num_pairs): Adjust for a cached
13346 num_pairs(). Also, rename all gcc_assert's to
13347 gcc_checking_assert's.
13349 2021-04-26 Aldy Hernandez <aldyh@redhat.com>
13351 * value-range.cc (irange::operator=): Set m_kind.
13352 (irange::copy_to_legacy): Handle varying and undefined sources
13353 as a legacy copy since they can be easily copied.
13354 (irange::irange_set): Set m_kind.
13355 (irange::irange_set_anti_range): Same.
13356 (irange::set): Rename normalize_min_max to normalize_kind.
13357 (irange::verify_range): Adjust for multi-ranges having the
13359 (irange::irange_union): Set m_kind.
13360 (irange::irange_intersect): Same.
13361 (irange::invert): Same.
13362 * value-range.h (irange::kind): Always return m_kind.
13363 (irange::varying_p): Rename to...
13364 (irange::varying_comptaible_p): ...this.
13365 (irange::undefined_p): Only look at m_kind.
13366 (irange::irange): Always set VR_UNDEFINED if applicable.
13367 (irange::set_undefined): Always set VR_UNDEFINED.
13368 (irange::set_varying): Always set m_kind to VR_VARYING.
13369 (irange::normalize_min_max): Rename to...
13370 (irange::normalize_kind): ...this.
13372 2021-04-26 Aldy Hernandez <aldyh@redhat.com>
13374 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::set_ssa_range_info):
13375 Adjust for constant_p including varying_p.
13376 * tree-vrp.c (vrp_prop::finalize): Same.
13377 (determine_value_range): Same.
13378 * vr-values.c (vr_values::range_of_expr): Same.
13379 * value-range.cc (irange::symbolic_p): Do not check varying_p.
13380 (irange::constant_p): Same.
13382 2021-04-26 Aldy Hernandez <aldyh@redhat.com>
13384 * value-range.cc (irange::legacy_lower_bound): Replace
13385 !undefined_p check with num_ranges > 0.
13386 (irange::legacy_upper_bound): Same.
13387 * value-range.h (irange::type): Same.
13388 (irange::lower_bound): Same.
13389 (irange::upper_bound): Same.
13391 2021-04-26 Richard Biener <rguenther@suse.de>
13393 PR tree-optimization/99956
13394 * gimple-loop-interchange.cc (compute_access_stride):
13395 Try instantiating the access in a shallower loop nest
13396 if instantiating failed.
13397 (compute_access_strides): Pass adjustable loop_nest
13398 to compute_access_stride.
13400 2021-04-26 Christophe Lyon <christophe.lyon@linaro.org>
13402 * doc/sourcebuild.texi (arm_cmse_hw): Document.
13404 2021-04-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13406 * config/aarch64/iterators.md (vwcore): Handle V4BF, V8BF.
13408 2021-04-26 Thomas Schwinge <thomas@codesourcery.com>
13409 Nathan Sidwell <nathan@codesourcery.com>
13410 Tom de Vries <vries@codesourcery.com>
13411 Julian Brown <julian@codesourcery.com>
13412 Kwok Cheung Yeung <kcy@codesourcery.com>
13414 * omp-offload.c (oacc_validate_dims): Implement
13415 '-Wopenacc-parallelism'.
13416 * doc/invoke.texi (-Wopenacc-parallelism): Document.
13418 2021-04-26 Richard Biener <rguenther@suse.de>
13420 * tree-cfg.h (gimplify_build1): Remove.
13421 (gimplify_build2): Likewise.
13422 (gimplify_build3): Likewise.
13423 * tree-cfg.c (gimplify_build1): Move to tree-vect-generic.c.
13424 (gimplify_build2): Likewise.
13425 (gimplify_build3): Likewise.
13426 * tree-vect-generic.c (gimplify_build1): Move from tree-cfg.c.
13428 (gimplify_build2): Likewise.
13429 (gimplify_build3): Likewise.
13430 (tree_vec_extract): Use resimplify with following SSA edges.
13431 (expand_vector_parallel): Avoid passing NULL size/bitpos
13432 to tree_vec_extract.
13433 * expr.c (store_constructor): Deal with zero-element CTORs.
13434 * match.pd (bit_field_ref <vector CTOR>): Make sure to
13435 produce vector constants when possible.
13437 2021-04-26 Richard Biener <rguenther@suse.de>
13439 * tree-complex.c: Include gimple-fold.h.
13440 (expand_complex_addition): Use gimple_build.
13441 (expand_complex_multiplication_components): Likewise.
13442 (expand_complex_multiplication): Likewise.
13443 (expand_complex_div_straight): Likewise.
13444 (expand_complex_div_wide): Likewise.
13445 (expand_complex_division): Likewise.
13446 (expand_complex_conjugate): Likewise.
13447 (expand_complex_comparison): Likewise.
13449 2021-04-26 Richard Biener <rguenther@suse.de>
13451 * tree-ssa-phiopt.c (two_value_replacement): Remove use
13452 of legacy gimplify_buildN API.
13454 2021-04-26 Richard Biener <rguenther@suse.de>
13456 PR tree-optimization/99473
13457 * tree-ssa-phiopt.c (cond_store_replacement): Handle all
13460 2021-04-26 Richard Biener <rguenther@suse.de>
13462 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_builtin):
13463 Use replace_call_with_value.
13465 2021-04-26 Richard Biener <rguenther@suse.de>
13467 * tree-ssa-propagate.h (valid_gimple_rhs_p): Remove.
13468 (update_gimple_call): Likewise.
13469 (update_call_from_tree): Likewise.
13470 * tree-ssa-propagate.c (valid_gimple_rhs_p): Remove.
13471 (valid_gimple_call_p): Likewise.
13472 (move_ssa_defining_stmt_for_defs): Likewise.
13473 (finish_update_gimple_call): Likewise.
13474 (update_gimple_call): Likewise.
13475 (update_call_from_tree): Likewise.
13476 (propagate_tree_value_into_stmt): Use replace_call_with_value.
13477 * gimple-fold.h (update_gimple_call): Declare.
13478 * gimple-fold.c (valid_gimple_rhs_p): Move here from
13479 tree-ssa-propagate.c.
13480 (update_gimple_call): Likewise.
13481 (valid_gimple_call_p): Likewise.
13482 (finish_update_gimple_call): Likewise, and simplify.
13483 (gimplify_and_update_call_from_tree): Implement
13484 update_call_from_tree functionality, avoid excessive
13485 push/pop_gimplify_context.
13486 (gimple_fold_builtin): Use only gimplify_and_update_call_from_tree.
13487 (gimple_fold_call): Likewise.
13488 * gimple-ssa-sprintf.c (try_substitute_return_value): Likewise.
13489 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Likewise.
13490 (pass_fold_builtins::execute): Likewise.
13491 (optimize_stack_restore): Use replace_call_with_value.
13492 * tree-cfg.c (fold_loop_internal_call): Likewise.
13493 * tree-ssa-dce.c (maybe_optimize_arith_overflow): Use
13494 only gimplify_and_update_call_from_tree.
13495 * tree-ssa-strlen.c (handle_builtin_strlen): Likewise.
13496 (handle_builtin_strchr): Likewise.
13497 * tsan.c: Include gimple-fold.h instead of tree-ssa-propagate.h.
13499 2021-04-26 Jakub Jelinek <jakub@redhat.com>
13502 * vmsdbgout.c (ASM_OUTPUT_DEBUG_STRING, vmsdbgout_begin_block,
13503 vmsdbgout_end_block, lookup_filename, vmsdbgout_source_line): Remove
13506 2021-04-25 liuhongt <hongtao.liu@intel.com>
13509 * config/i386/i386-builtin.def (BDESC): Change the icode of
13510 the following builtins to CODE_FOR_nothing.
13511 * config/i386/i386.c (ix86_gimple_fold_builtin): Fold
13512 IX86_BUILTIN_PCMPEQB128, IX86_BUILTIN_PCMPEQW128,
13513 IX86_BUILTIN_PCMPEQD128, IX86_BUILTIN_PCMPEQQ,
13514 IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
13515 IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
13516 IX86_BUILTIN_PCMPGTB128, IX86_BUILTIN_PCMPGTW128,
13517 IX86_BUILTIN_PCMPGTD128, IX86_BUILTIN_PCMPGTQ,
13518 IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
13519 IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256.
13520 * config/i386/sse.md (avx2_eq<mode>3): Deleted.
13521 (sse2_eq<mode>3): Ditto.
13522 (sse4_1_eqv2di3): Ditto.
13523 (sse2_gt<mode>3): Rename to ..
13524 (*sse2_gt<mode>3): .. this.
13526 2021-04-24 Iain Sandoe <iain@sandoe.co.uk>
13529 2021-04-24 Iain Sandoe <iain@sandoe.co.uk>
13532 * config/darwin.c (darwin_binds_local_p): Assume that any
13533 public symbol might be interposed for PIC code. Update function
13534 header comment to reflect current Darwin capability.
13536 2021-04-24 Iain Sandoe <iain@sandoe.co.uk>
13539 * config/darwin.c (darwin_binds_local_p): Assume that any
13540 public symbol might be interposed for PIC code. Update function
13541 header comment to reflect current Darwin capability.
13543 2021-04-24 Richard Sandiford <richard.sandiford@arm.com>
13545 * doc/sourcebuild.texi: Document no-opts and any-opts target
13548 2021-04-23 YiFei Zhu <zhuyifei1999@gmail.com>
13550 * config/bpf/bpf.h (ASM_OUTPUT_ALIGNED_BSS): Use .type and .lcomm.
13552 2021-04-23 YiFei Zhu <zhuyifei1999@gmail.com>
13554 * config/bpf/bpf.h (FUNCTION_BOUNDARY): Set to 64.
13556 2021-04-23 Uroš Bizjak <ubizjak@gmail.com>
13559 * config/i386/i386-options.c (ix86_option_override_internal):
13560 Error out when -m96bit-long-double is used with 64bit targets.
13561 * config/i386/i386.md (*pushxf_rounded): Remove pattern.
13563 2021-04-23 Martin Liska <mliska@suse.cz>
13565 * lto-wrapper.c: Remove FIXME about usage of
13566 hardware_concurrency. The function is not on par with
13569 2021-04-23 Uroš Bizjak <ubizjak@gmail.com>
13572 * config/i386/sync.md (FILD_ATOMIC/FIST_ATOMIC FP load peephole2):
13573 Copy operand 3 to operand 4. Use sse_reg_operand
13574 as operand 3 predicate.
13575 (FILD_ATOMIC/FIST_ATOMIC FP load peephole2 with mem blockage): Ditto.
13576 (LDX_ATOMIC/STX_ATOMIC FP load peephole2): Ditto.
13577 (LDX_ATOMIC/LDX_ATOMIC FP load peephole2 with mem blockage): Ditto.
13578 (FILD_ATOMIC/FIST_ATOMIC FP store peephole2):
13579 Copy operand 1 to operand 0.
13580 (FILD_ATOMIC/FIST_ATOMIC FP store peephole2 with mem blockage): Ditto.
13581 (LDX_ATOMIC/STX_ATOMIC FP store peephole2): Ditto.
13582 (LDX_ATOMIC/LDX_ATOMIC FP store peephole2 with mem blockage): Ditto.
13584 2021-04-23 Alex Coplan <alex.coplan@arm.com>
13586 PR rtl-optimization/100230
13587 * early-remat.c (early_remat::sort_candidates): Use delete[]
13588 instead of delete for array allocated with new[].
13590 2021-04-23 Richard Biener <rguenther@suse.de>
13592 * genmatch.c (lower_cond): Remove VEC_COND_EXPR special-casing.
13593 (capture_info::capture_info): Likewise.
13594 (capture_info::walk_match): Likewise.
13595 (expr::gen_transform): Likewise.
13596 (dt_simplify::gen_1): Likewise.
13597 * gimple-match-head.c (maybe_resimplify_conditional_op):
13598 Remove VEC_COND_EXPR special-casing.
13599 (gimple_simplify): Likewise.
13600 * gimple.c (gimple_could_trap_p_1): Adjust.
13601 * tree-ssa-pre.c (compute_avail): Allow VEC_COND_EXPR
13602 to participate in PRE.
13604 2021-04-23 Richard Biener <rguenther@suse.de>
13606 * cfganal.c (connect_infinite_loops_to_exit): First call
13607 add_noreturn_fake_exit_edges.
13608 * ipa-sra.c (process_scan_results): Do not call the now redundant
13609 add_noreturn_fake_exit_edges.
13610 * predict.c (tree_estimate_probability): Likewise.
13611 (rebuild_frequencies): Likewise.
13612 * store-motion.c (one_store_motion_pass): Likewise.
13614 2021-04-23 Richard Biener <rguenther@suse.de>
13616 PR tree-optimization/100222
13617 * predict.c (pass_profile::execute): Remove redundant call to
13618 mark_irreducible_loops.
13619 (report_predictor_hitrates): Likewise.
13621 2021-04-23 Richard Biener <rguenther@suse.de>
13623 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
13624 valid_gimple_rhs_p by instead gimplifying to one.
13626 2021-04-23 Richard Biener <rguenther@suse.de>
13628 PR tree-optimization/99971
13629 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences):
13630 Always use TBAA for loads.
13632 2021-04-23 liuhongt <hongtao.liu@intel.com>
13635 * config/i386/i386-options.c (ix86_option_override_internal):
13636 Clear MASK_AVX256_SPLIT_UNALIGNED_LOAD/STORE in x_target_flags
13637 when X86_TUNE_AVX256_UNALIGNED_LOAD/STORE_OPTIMAL is enabled
13638 by target attribute.
13640 2021-04-23 David Edelsohn <dje.gcc@gmail.com>
13642 * config/rs6000/aix71.h (PREFERRED_DEBUGGING_TYPE): Change to
13644 * config/rs6000/aix72.h (PREFERRED_DEBUGGING_TYPE): Same.
13646 2021-04-22 David Edelsohn <dje.gcc@gmail.com>
13648 * config.gcc (powerpc-ibm-aix6.*): Remove.
13649 * config/rs6000/aix61.h: Delete.
13651 2021-04-22 Martin Liska <mliska@suse.cz>
13653 PR testsuite/100159
13654 PR testsuite/100192
13655 * builtins.c (expand_builtin): Fix typos and missing comments.
13656 * dwarf2out.c (gen_subprogram_die): Likewise.
13657 (gen_struct_or_union_type_die): Likewise.
13659 2021-04-22 Uroš Bizjak <ubizjak@gmail.com>
13662 * config/i386/i386-expand.c (ix86_expand_convert_uns_sidf_sse):
13663 Remove the sign with FE_DOWNWARD, where x - x = -0.0.
13665 2021-04-21 Iain Sandoe <iain@sandoe.co.uk>
13667 * config/i386/darwin.h (TARGET_64BIT): Remove definition
13668 based on TARGET_ISA_64BIT.
13669 (TARGET_64BIT_P): Remove definition based on
13670 TARGET_ISA_64BIT_P().
13672 2021-04-21 Martin Liska <mliska@suse.cz>
13675 2021-04-21 Martin Liska <mliska@suse.cz>
13677 * lto-wrapper.c (cpuset_popcount): Remove.
13678 (init_num_threads): Remove and use hardware_concurrency.
13680 2021-04-21 Martin Liska <mliska@suse.cz>
13683 * main.c (main): Call toplev::finalize in CHECKING_P mode.
13684 * ipa-modref.c (ipa_modref_c_finalize): summaries are NULL
13685 when incremental LTO linking happens.
13687 2021-04-21 Martin Liska <mliska@suse.cz>
13689 * lto-wrapper.c (run_gcc): When -flto=jobserver is used, but the
13690 makeserver cannot be detected, then use -flto=N fallback.
13692 2021-04-21 Richard Sandiford <richard.sandiford@arm.com>
13694 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): When cross-compiling,
13695 default to yes for aarch64-linux-gnu.
13696 * configure: Regenerate.
13698 2021-04-21 Martin Liska <mliska@suse.cz>
13700 * lto-wrapper.c (cpuset_popcount): Remove.
13701 (init_num_threads): Remove and use hardware_concurrency.
13703 2021-04-21 Martin Liska <mliska@suse.cz>
13705 * config/i386/i386.c: Remove superfluous || TARGET_MACHO
13706 which remains to be '(... || 0)' and clang complains about it.
13707 * dwarf2out.c (AT_vms_delta): Declare conditionally.
13708 (add_AT_vms_delta): Likewise.
13709 * tree.c (fld_simplified_type): Use rather more common pattern
13710 for disabling of something (#if 0).
13711 (get_tree_code_name): Likewise.
13712 (verify_type_variant): Likewise.
13714 2021-04-21 Martin Liska <mliska@suse.cz>
13716 * config/i386/i386-expand.c (decide_alignment): Use newly named
13717 macro TARGET_CPU_P.
13718 * config/i386/i386.c (ix86_decompose_address): Likewise.
13719 (ix86_address_cost): Likewise.
13720 (ix86_lea_outperforms): Likewise.
13721 (ix86_avoid_lea_for_addr): Likewise.
13722 (ix86_add_stmt_cost): Likewise.
13723 * config/i386/i386.h (TARGET_*): Remove.
13724 (TARGET_CPU_P): New macro.
13725 * config/i386/i386.md: Use newly named macro TARGET_CPU_P.
13726 * config/i386/x86-tune-sched-atom.c (do_reorder_for_imul): Likewise.
13727 (swap_top_of_ready_list): Likewise.
13728 (ix86_atom_sched_reorder): Likewise.
13729 * config/i386/x86-tune-sched-bd.c (ix86_bd_has_dispatch): Likewise.
13730 * config/i386/x86-tune-sched.c (ix86_adjust_cost): Likewise.
13732 2021-04-21 Martin Liska <mliska@suse.cz>
13734 * config/i386/i386-options.c (TARGET_EXPLICIT_NO_SAHF_P):
13736 (SET_TARGET_NO_SAHF): Likewise.
13737 (TARGET_EXPLICIT_PREFETCH_SSE_P): Likewise.
13738 (SET_TARGET_PREFETCH_SSE): Likewise.
13739 (TARGET_EXPLICIT_NO_TUNE_P): Likewise.
13740 (SET_TARGET_NO_TUNE): Likewise.
13741 (TARGET_EXPLICIT_NO_80387_P): Likewise.
13742 (SET_TARGET_NO_80387): Likewise.
13744 * config/i386/i386.h (TARGET_*): Remove.
13745 * opth-gen.awk: Generate new used macros.
13747 2021-04-21 Martin Liska <mliska@suse.cz>
13749 * config/i386/i386.h (PTA_*): Remove.
13750 (enum pta_flag): New.
13751 (DEF_PTA): Generate PTA_* values from i386-isa.def.
13752 * config/i386/i386-isa.def: New file.
13754 2021-04-21 Alex Coplan <alex.coplan@arm.com>
13757 * config/aarch64/aarch64-bti-insert.c (aarch64_bti_j_insn_p): New.
13758 (rest_of_insert_bti): Avoid inserting duplicate bti j insns for
13759 jump table targets.
13761 2021-04-21 H.J. Lu <hjl.tools@gmail.com>
13763 * config.gcc: Install mwaitintrin.h for i[34567]86-*-* and
13764 x86_64-*-* targets.
13765 * common/config/i386/i386-common.c (OPTION_MASK_ISA2_MWAIT_SET):
13767 (OPTION_MASK_ISA2_MWAIT_UNSET): Likewise.
13768 (ix86_handle_option): Handle -mmwait.
13769 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
13770 Replace OPTION_MASK_ISA_SSE3 with OPTION_MASK_ISA2_MWAIT on
13771 __builtin_ia32_monitor and __builtin_ia32_mwait.
13772 * config/i386/i386-options.c (isa2_opts): Add -mmwait.
13773 (ix86_valid_target_attribute_inner_p): Likewise.
13774 (ix86_option_override_internal): Enable mwait/monitor
13775 instructions for -msse3.
13776 * config/i386/i386.h (TARGET_MWAIT): New.
13777 (TARGET_MWAIT_P): Likewise.
13778 * config/i386/i386.opt: Add -mmwait.
13779 * config/i386/mwaitintrin.h: New file.
13780 * config/i386/pmmintrin.h: Include <mwaitintrin.h>.
13781 * config/i386/sse.md (sse3_mwait): Replace TARGET_SSE3 with
13783 (@sse3_monitor_<mode>): Likewise.
13784 * config/i386/x86gprintrin.h: Include <mwaitintrin.h>.
13785 * doc/extend.texi: Document mwait target attribute.
13786 * doc/invoke.texi: Document -mmwait.
13788 2021-04-21 Martin Liska <mliska@suse.cz>
13790 * config/i386/i386-options.c (DEF_ENUM): Remove it.
13791 * config/i386/i386-opts.h (DEF_ENUM): Likewise.
13792 * config/i386/stringop.def (DEF_ENUM): Likewise.
13794 2021-04-21 Martin Liska <mliska@suse.cz>
13796 * tree-cfg.c (gimple_verify_flow_info): Use qD instead
13797 of print_generic_expr.
13799 2021-04-21 Jakub Jelinek <jakub@redhat.com>
13801 PR rtl-optimization/100148
13802 * cprop.c (constprop_register): Use next_nondebug_insn instead of
13805 2021-04-21 Martin Liska <mliska@suse.cz>
13808 * cgraphunit.c (cgraph_node::analyze): Remove duplicate
13809 free_dominance_info calls.
13811 2021-04-21 Richard Biener <rguenther@suse.de>
13813 * gimple-fold.c (maybe_fold_reference): Remove is_lhs
13814 parameter (and assume it to be false).
13815 (fold_gimple_assign): Adjust, remove all callers of
13816 maybe_fold_reference calling it with is_lhs true.
13817 (gimple_fold_call): Likewise.
13818 (fold_stmt_1): Likewise.
13820 2021-04-21 Richard Biener <rguenther@suse.de>
13822 * fold-const.c (pedantic_non_lvalue_loc): Remove.
13823 (fold_binary_loc): Adjust.
13824 (fold_ternary_loc): Likewise.
13826 2021-04-21 Richard Sandiford <richard.sandiford@arm.com>
13828 PR middle-end/100130
13829 * varasm.c (get_block_for_decl): Make sure that any use of the
13830 retain attribute matches the section's retain flag.
13831 (switch_to_section): Check for retain mismatches even when
13832 changing sections, but do not warn if the given decl is the
13833 section's named.decl.
13834 (output_object_block): Pass the first decl in the block (if any)
13835 to switch_to_section.
13837 2021-04-20 H.J. Lu <hjl.tools@gmail.com>
13839 * config/i386/i386-c.c (ix86_target_macros_internal): Define
13840 __CRC32__ for -mcrc32.
13841 * config/i386/i386-options.c (ix86_option_override_internal):
13842 Enable crc32 instruction for -msse4.2.
13843 * config/i386/i386.md (sse4_2_crc32<mode>): Remove TARGET_SSE4_2
13845 (sse4_2_crc32di): Likewise.
13846 * config/i386/ia32intrin.h: Use crc32 target option for CRC32
13849 2021-04-20 Segher Boessenkool <segher@kernel.crashing.org>
13852 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Do not consider
13855 2021-04-20 Martin Liska <mliska@suse.cz>
13857 * doc/invoke.texi: Fix typo.
13858 * params.opt: Likewise.
13860 2021-04-20 Martin Liska <mliska@suse.cz>
13862 * doc/invoke.texi: Document new param.
13864 2021-04-19 Andrew MacLeod <amacleod@redhat.com>
13866 PR tree-optimization/100081
13867 * gimple-range-cache.h (ranger_cache): Inherit from gori_compute
13868 rather than gori_compute_cache.
13869 * gimple-range-gori.cc (is_gimple_logical_p): Move to top of file.
13870 (range_def_chain::m_logical_depth): New member.
13871 (range_def_chain::range_def_chain): Initialize m_logical_depth.
13872 (range_def_chain::get_def_chain): Don't build defchains through more
13873 than LOGICAL_LIMIT logical expressions.
13874 * params.opt (param_ranger_logical_depth): New.
13876 2021-04-19 Richard Earnshaw <rearnsha@arm.com>
13879 * config/arm/arm.c (arm_configure_build_target): Do not strip
13880 extended FPU/SIMD feature bits from the target ISA when -mfpu
13881 is specified (partial revert of r11-8168).
13883 2021-04-19 Thomas Schwinge <thomas@codesourcery.com>
13885 * params.opt (-param=openacc-kernels=): Add.
13886 * omp-oacc-kernels-decompose.cc
13887 (pass_omp_oacc_kernels_decompose::gate): Use it.
13888 * doc/invoke.texi (-fopenacc-kernels=@var{mode}): Move...
13889 (--param): ... here, 'openacc-kernels'.
13891 2021-04-19 Martin Liska <mliska@suse.cz>
13894 * gengtype.c (finish_root_table): Align function arguments
13895 in between declaration and definition.
13897 2021-04-19 Eric Botcazou <ebotcazou@adacore.com>
13899 * config/i386/winnt.c (i386_pe_seh_cold_init): Properly deal with
13900 frames larger than the SEH maximum frame size.
13902 2021-04-18 Segher Boessenkool <segher@kernel.crashing.org>
13904 PR rtl-optimization/99927
13905 * combine.c (distribute_notes) [REG_UNUSED]: If the register already
13906 is dead, just drop it.
13908 2021-04-17 Iain Buclaw <ibuclaw@gdcproject.org>
13911 * config/i386/winnt-d.c (TARGET_D_TEMPLATES_ALWAYS_COMDAT): Define.
13912 * doc/tm.texi: Regenerate.
13913 * doc/tm.texi.in (D language and ABI): Add @hook for
13914 TARGET_D_TEMPLATES_ALWAYS_COMDAT.
13916 2021-04-17 Iain Buclaw <ibuclaw@gdcproject.org>
13918 * config/darwin-d.c (darwin_d_handle_target_object_format): New
13920 (darwin_d_register_target_info): New function.
13921 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
13922 * config/dragonfly-d.c (dragonfly_d_handle_target_object_format): New
13924 (dragonfly_d_register_target_info): New function.
13925 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
13926 * config/freebsd-d.c (freebsd_d_handle_target_object_format): New
13928 (freebsd_d_register_target_info): New function.
13929 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
13930 * config/glibc-d.c (glibc_d_handle_target_object_format): New
13932 (glibc_d_register_target_info): New function.
13933 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
13934 * config/i386/i386-d.c (ix86_d_handle_target_object_format): New
13936 (ix86_d_register_target_info): Add ix86_d_handle_target_object_format
13937 as handler for objectFormat key.
13938 * config/i386/winnt-d.c (winnt_d_handle_target_object_format): New
13940 (winnt_d_register_target_info): New function.
13941 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
13942 * config/netbsd-d.c (netbsd_d_handle_target_object_format): New
13944 (netbsd_d_register_target_info): New function.
13945 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
13946 * config/openbsd-d.c (openbsd_d_handle_target_object_format): New
13948 (openbsd_d_register_target_info): New function.
13949 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
13950 * config/pa/pa-d.c (pa_d_handle_target_object_format): New function.
13951 (pa_d_register_target_info): Add pa_d_handle_target_object_format as
13952 handler for objectFormat key.
13953 * config/rs6000/rs6000-d.c (rs6000_d_handle_target_object_format): New
13955 (rs6000_d_register_target_info): Add
13956 rs6000_d_handle_target_object_format as handler for objectFormat key.
13957 * config/sol2-d.c (solaris_d_handle_target_object_format): New
13959 (solaris_d_register_target_info): New function.
13960 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
13962 2021-04-16 Jakub Jelinek <jakub@redhat.com>
13965 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Change
13966 abi_break argument from bool * to unsigned *, store there the pre-GCC 9
13968 (aarch64_layout_arg, aarch64_gimplify_va_arg_expr): Adjust callers.
13969 (aarch64_function_arg_regno_p): Likewise. Only emit -Wpsabi note if
13970 the old and new alignment after applying MIN/MAX to it is different.
13972 2021-04-16 Tamar Christina <tamar.christina@arm.com>
13975 * config/aarch64/aarch64-sve.md (@aarch64_sve_trn1_conv<mode>): New.
13976 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_trn): Use new
13978 * config/aarch64/iterators.md (UNSPEC_TRN1_CONV): New.
13980 2021-04-16 Bill Schmidt <wschmidt@linux.ibm.com>
13982 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Revise
13983 this section and its subsections.
13985 2021-04-16 Jakub Jelinek <jakub@redhat.com>
13988 * config/aarch64/aarch64.md (*neg_asr_si2_extr, *extrsi5_insn_di): New
13989 define_insn patterns.
13991 2021-04-16 Richard Sandiford <richard.sandiford@arm.com>
13993 PR rtl-optimization/98689
13994 * reg-notes.def (UNTYPED_CALL): New note.
13995 * combine.c (distribute_notes): Handle it.
13996 * emit-rtl.c (try_split): Likewise.
13997 * rtlanal.c (rtx_properties::try_to_add_insn): Likewise. Assume
13998 that calls with the note implicitly set all return value registers.
13999 * builtins.c (expand_builtin_apply): Add a REG_UNTYPED_CALL
14002 2021-04-16 Richard Sandiford <richard.sandiford@arm.com>
14004 PR rtl-optimization/99596
14005 * rtlanal.c (rtx_properties::try_to_add_insn): Don't add global
14006 register accesses for const calls. Assume that pure functions
14007 can only read from global registers. Ignore cases in which
14008 the stack pointer has been marked global.
14010 2021-04-16 Jakub Jelinek <jakub@redhat.com>
14013 * tree-vect-loop.c (vect_transform_loop): Don't remove just
14014 dead scalar .MASK_LOAD calls, but also dead .COND_* calls - replace
14015 them by their last argument.
14017 2021-04-15 Martin Liska <mliska@suse.cz>
14019 * doc/invoke.texi: Other params don't use it, remove it.
14021 2021-04-15 Richard Biener <rguenther@suse.de>
14023 * gimple-builder.h: Add deprecation note.
14025 2021-04-15 Richard Sandiford <richard.sandiford@arm.com>
14028 * attribs.h (restrict_type_identity_attributes_to): Declare.
14029 * attribs.c (restrict_type_identity_attributes_to): New function.
14031 2021-04-15 Richard Sandiford <richard.sandiford@arm.com>
14034 * attribs.h (affects_type_identity_attributes): Declare.
14035 * attribs.c (remove_attributes_matching): New function.
14036 (affects_type_identity_attributes): Likewise.
14038 2021-04-15 Jakub Jelinek <jakub@redhat.com>
14041 * config/aarch64/aarch64.md (*<LOGICAL:optab>_<SHIFT:optab><mode>3):
14042 Add combine splitters for *<LOGICAL:optab>_ashl<mode>3 with
14043 ZERO_EXTEND, SIGN_EXTEND or AND.
14045 2021-04-14 Richard Sandiford <richard.sandiford@arm.com>
14047 PR rtl-optimization/99929
14048 * rtl.h (same_vector_encodings_p): New function.
14049 * cse.c (exp_equiv_p): Check that CONST_VECTORs have the same encoding.
14050 * cselib.c (rtx_equal_for_cselib_1): Likewise.
14051 * jump.c (rtx_renumbered_equal_p): Likewise.
14052 * lra-constraints.c (operands_match_p): Likewise.
14053 * reload.c (operands_match_p): Likewise.
14054 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Likewise.
14056 2021-04-14 Richard Sandiford <richard.sandiford@arm.com>
14058 * print-rtl.c (rtx_writer::print_rtx_operand_codes_E_and_V): Print
14059 more information about variable-length CONST_VECTORs.
14061 2021-04-14 Vladimir N. Makarov <vmakarov@redhat.com>
14063 PR rtl-optimization/100066
14064 * lra-constraints.c (split_reg): Check paradoxical_subreg_p for
14065 ordered modes when choosing splitting mode for hard reg.
14067 2021-04-14 Richard Sandiford <richard.sandiford@arm.com>
14070 * config/aarch64/aarch64.c (aarch64_expand_sve_const_vector_sel):
14072 (aarch64_expand_sve_const_vector): Use it for nelts_per_pattern==2.
14074 2021-04-14 Andreas Krebbel <krebbel@linux.ibm.com>
14076 * config/s390/s390-builtins.def (O_M5, O_M12, ...): Add new macros
14077 for mask operand types.
14078 (s390_vec_permi_s64, s390_vec_permi_b64, s390_vec_permi_u64)
14079 (s390_vec_permi_dbl, s390_vpdi): Use the M5 type for the immediate
14081 (s390_vec_msum_u128, s390_vmslg): Use the M12 type for the
14083 * config/s390/s390.c (s390_const_operand_ok): Check the new
14084 operand types and generate a list of valid values.
14086 2021-04-14 Iain Buclaw <ibuclaw@gdcproject.org>
14088 * doc/tm.texi: Regenerate.
14089 * doc/tm.texi.in (D language and ABI): Add @hook for
14090 TARGET_D_REGISTER_OS_TARGET_INFO.
14092 2021-04-14 Iain Buclaw <ibuclaw@gdcproject.org>
14094 * config/aarch64/aarch64-d.c (aarch64_d_handle_target_float_abi): New
14096 (aarch64_d_register_target_info): New function.
14097 * config/aarch64/aarch64-protos.h (aarch64_d_register_target_info):
14099 * config/aarch64/aarch64.h (TARGET_D_REGISTER_CPU_TARGET_INFO):
14101 * config/arm/arm-d.c (arm_d_handle_target_float_abi): New function.
14102 (arm_d_register_target_info): New function.
14103 * config/arm/arm-protos.h (arm_d_register_target_info): Declare.
14104 * config/arm/arm.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
14105 * config/i386/i386-d.c (ix86_d_handle_target_float_abi): New function.
14106 (ix86_d_register_target_info): New function.
14107 * config/i386/i386-protos.h (ix86_d_register_target_info): Declare.
14108 * config/i386/i386.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
14109 * config/mips/mips-d.c (mips_d_handle_target_float_abi): New function.
14110 (mips_d_register_target_info): New function.
14111 * config/mips/mips-protos.h (mips_d_register_target_info): Declare.
14112 * config/mips/mips.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
14113 * config/pa/pa-d.c (pa_d_handle_target_float_abi): New function.
14114 (pa_d_register_target_info): New function.
14115 * config/pa/pa-protos.h (pa_d_register_target_info): Declare.
14116 * config/pa/pa.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
14117 * config/riscv/riscv-d.c (riscv_d_handle_target_float_abi): New
14119 (riscv_d_register_target_info): New function.
14120 * config/riscv/riscv-protos.h (riscv_d_register_target_info): Declare.
14121 * config/riscv/riscv.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
14122 * config/rs6000/rs6000-d.c (rs6000_d_handle_target_float_abi): New
14124 (rs6000_d_register_target_info): New function.
14125 * config/rs6000/rs6000-protos.h (rs6000_d_register_target_info):
14127 * config/rs6000/rs6000.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
14128 * config/s390/s390-d.c (s390_d_handle_target_float_abi): New function.
14129 (s390_d_register_target_info): New function.
14130 * config/s390/s390-protos.h (s390_d_register_target_info): Declare.
14131 * config/s390/s390.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
14132 * config/sparc/sparc-d.c (sparc_d_handle_target_float_abi): New
14134 (sparc_d_register_target_info): New function.
14135 * config/sparc/sparc-protos.h (sparc_d_register_target_info): Declare.
14136 * config/sparc/sparc.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
14137 * doc/tm.texi: Regenerate.
14138 * doc/tm.texi.in (D language and ABI): Add @hook for
14139 TARGET_D_REGISTER_CPU_TARGET_INFO.
14141 2021-04-14 Iain Buclaw <ibuclaw@gdcproject.org>
14143 * config/i386/i386-d.c (ix86_d_has_stdcall_convention): New function.
14144 * config/i386/i386-protos.h (ix86_d_has_stdcall_convention): Declare.
14145 * config/i386/i386.h (TARGET_D_HAS_STDCALL_CONVENTION): Define.
14146 * doc/tm.texi: Regenerate.
14147 * doc/tm.texi.in (D language and ABI): Add @hook for
14148 TARGET_D_HAS_STDCALL_CONVENTION.
14150 2021-04-14 Richard Biener <rguenther@suse.de>
14152 * tree-cfg.c (verify_gimple_assign_ternary): Verify that
14153 VEC_COND_EXPRs have a gimple_val condition.
14154 * tree-ssa-propagate.c (valid_gimple_rhs_p): VEC_COND_EXPR
14155 can no longer have a GENERIC condition.
14157 2021-04-14 Richard Earnshaw <rearnsha@arm.com>
14160 * config/arm/arm.c (arm_configure_build_target): Strip isa_all_fpbits
14161 from the isa_delta when -mfpu has been used.
14162 (arm_options_perform_arch_sanity_checks): It's the architecture that
14163 lacks an FPU not the processor.
14165 2021-04-13 Richard Biener <rguenther@suse.de>
14167 PR tree-optimization/100053
14168 * tree-ssa-sccvn.c (vn_nary_op_get_predicated_value): Do
14169 not use optimistic dominance queries for backedges to validate
14171 (dominated_by_p_w_unex): Add parameter to ignore executable
14172 state on backedges.
14173 (rpo_elim::eliminate_avail): Adjust.
14175 2021-04-13 Jakub Jelinek <jakub@redhat.com>
14178 * config/aarch64/aarch64.md (*aarch64_bfxil<mode>_extr,
14179 *aarch64_bfxilsi_extrdi): New define_insn patterns.
14181 2021-04-13 Jakub Jelinek <jakub@redhat.com>
14184 * simplify-rtx.c (simplify_immed_subreg): For MODE_COMPOSITE_P
14185 outermode, return NULL if the result doesn't encode back to the
14186 original byte sequence.
14187 (simplify_gen_subreg): Don't create SUBREGs from constants to
14188 MODE_COMPOSITE_P outermode.
14190 2021-04-12 Jakub Jelinek <jakub@redhat.com>
14192 PR rtl-optimization/99905
14193 * combine.c (expand_compound_operation): If pos + len > modewidth,
14194 perform the right shift by pos in inner_mode and then convert to mode,
14195 instead of trying to simplify a shift of rtx with inner_mode by pos
14196 as if it was a shift in mode.
14198 2021-04-12 Jakub Jelinek <jakub@redhat.com>
14201 * combine.c (simplify_and_const_int_1): Don't optimize varop
14202 away if it has side-effects.
14204 2021-04-12 Martin Liska <mliska@suse.cz>
14206 * doc/extend.texi: Escape @smallexample content.
14208 2021-04-12 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
14210 * config/s390/s390.md ("*movdi_31", "*movdi_64"): Add
14211 alternative in order to load a DFP zero.
14213 2021-04-12 Martin Liska <mliska@suse.cz>
14215 * doc/extend.texi: Be more precise in documentation
14216 of symver attribute.
14218 2021-04-12 Martin Liska <mliska@suse.cz>
14221 * gimplify.c (gimplify_expr): Right now, we unpoison all
14222 variables before a goto <dest>. We should not do it if we are
14225 2021-04-12 Cui,Lili <lili.cui@intel.com>
14227 * common/config/i386/cpuinfo.h (get_intel_cpu): Handle
14229 * common/config/i386/i386-common.c (processor_names): Add
14231 (processor_alias_table): Add rocketlake.
14232 * common/config/i386/i386-cpuinfo.h (processor_subtypes): Add
14233 INTEL_COREI7_ROCKETLAKE.
14234 * config.gcc: Add -march=rocketlake.
14235 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
14237 * config/i386/i386-options.c (m_ROCKETLAKE) : Define.
14238 (processor_cost_table): Add rocketlake cost.
14239 * config/i386/i386.h (ix86_size_cost) : Define
14241 (processor_type) : Add PROCESSOR_ROCKETLAKE.
14242 (PTA_ROCKETLAKE): Ditto.
14243 * doc/extend.texi: Add rocketlake.
14244 * doc/invoke.texi: Add rocketlake.
14246 2021-04-12 Cui,Lili <lili.cui@intel.com>
14248 * config/i386/i386.h (PTA_ALDERLAKE): Change alderlake ISA list.
14249 * config/i386/i386-options.c (m_CORE_AVX2): Add m_ALDERLAKE.
14250 * common/config/i386/cpuinfo.h (get_intel_cpu): Add AlderLake model.
14251 * doc/invoke.texi: Change alderlake ISA list.
14253 2021-04-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
14255 PR middle-end/98088
14256 * omp-expand.c (expand_oacc_collapse_init): Update condition in
14259 2021-04-10 H.J. Lu <hjl.tools@gmail.com>
14262 * config/i386/serializeintrin.h (_serialize): Defined as macro.
14264 2021-04-10 Jakub Jelinek <jakub@redhat.com>
14267 * expr.c (expand_expr_addr_expr_1): Test is_global_var rather than
14268 just TREE_STATIC on COMPOUND_LITERAL_EXPR_DECLs.
14270 2021-04-10 Jakub Jelinek <jakub@redhat.com>
14272 PR middle-end/99989
14273 * gimple-ssa-warn-alloca.c
14274 (alloca_type_and_limit::alloca_type_and_limit): Initialize limit to
14275 0 with integer precision unconditionally.
14277 2021-04-10 Jakub Jelinek <jakub@redhat.com>
14279 PR rtl-optimization/98601
14280 * rtlanal.c (rtx_addr_can_trap_p_1): Allow in assert unknown size
14281 not just for BLKmode, but also for VOIDmode. For STRICT_ALIGNMENT
14282 unaligned_mems handle VOIDmode like BLKmode.
14284 2021-04-10 Jan Hubicka <hubicka@ucw.cz>
14287 * tree.c (free_lang_data_in_decl): Do not release body of
14288 declare_variant_alt.
14290 2021-04-09 Richard Sandiford <richard.sandiford@arm.com>
14292 * config/aarch64/aarch64.c (aarch64_option_restore): If the
14293 architecture was specified explicitly and the tuning wasn't,
14294 tune for the architecture rather than the configured default CPU.
14296 2021-04-09 Richard Sandiford <richard.sandiford@arm.com>
14298 * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use X30
14299 as the temporary register.
14301 2021-04-09 Martin Liska <mliska@suse.cz>
14303 * doc/extend.texi: Move non-target attributes on the top level.
14305 2021-04-09 Martin Liska <mliska@suse.cz>
14307 * doc/invoke.texi: Document minimum and maximum value of the
14308 argument for both supported compression algorithms.
14310 2021-04-08 David Edelsohn <dje.gcc@gmail.com>
14312 * config/rs6000/rs6000.c (rs6000_xcoff_select_section): Select
14313 TLS BSS before TLS data.
14314 * config/rs6000/xcoff.h (ASM_OUTPUT_TLS_COMMON): Use .comm.
14316 2021-04-08 Richard Sandiford <richard.sandiford@arm.com>
14318 * doc/sourcebuild.texi (stdint_types_mbig_endian): Document.
14320 2021-04-08 Richard Sandiford <richard.sandiford@arm.com>
14322 * match.pd: Extend vec_cond folds to handle shifts.
14324 2021-04-08 Maciej W. Rozycki <macro@orcam.me.uk>
14326 * config/vax/vax.md: Fix comment for `*bit<mode>' pattern's
14329 2021-04-08 Alex Coplan <alex.coplan@arm.com>
14332 * config/arm/iterators.md (MVE_vecs): New.
14333 (V_elem): Also handle V2DF.
14334 * config/arm/mve.md (*mve_mov<mode>): Rename to ...
14335 (*mve_vdup<mode>): ... this. Remove second alternative since
14336 vec_duplicate of const_int is not canonical RTL, and we don't
14337 want to match symbol_refs.
14338 (*mve_vec_duplicate<mode>): Delete (pattern is redundant).
14340 2021-04-08 Xionghu Luo <luoxhu@linux.ibm.com>
14342 * fold-const.c (fold_single_bit_test): Fix typo.
14343 * print-rtl.c (print_rtx_insn_vec): Call print_rtl_single
14346 2021-04-07 Richard Sandiford <richard.sandiford@arm.com>
14348 PR tree-optimization/97513
14349 * tree-vect-slp.c (vect_add_slp_permutation): New function,
14351 (vectorizable_slp_permutation): ...here. Detect cases in which
14352 all VEC_PERM_EXPRs are guaranteed to have the same stepped
14353 permute vector and only generate one permute vector for that case.
14354 Extend that case to handle variable-length vectors.
14356 2021-04-07 Richard Sandiford <richard.sandiford@arm.com>
14358 PR tree-optimization/99873
14359 * tree-vect-slp.c (vect_slp_prefer_store_lanes_p): New function.
14360 (vect_build_slp_instance): Don't split store groups that could
14361 use IFN_STORE_LANES.
14363 2021-04-07 Jakub Jelinek <jakub@redhat.com>
14366 * varasm.c (output_constant_pool_contents): Don't strip name encoding
14367 from XSTR (desc->sym, 0) or from label before passing those to
14370 2021-04-07 Richard Biener <rguenther@suse.de>
14372 PR tree-optimization/99954
14373 * tree-loop-distribution.c: Include tree-affine.h.
14374 (generate_memcpy_builtin): Try using tree-affine to prove
14376 (loop_distribution::classify_builtin_ldst): Always classify
14379 2021-04-07 Richard Biener <rguenther@suse.de>
14381 PR tree-optimization/99947
14382 * tree-vect-loop.c (vectorizable_induction): Pre-allocate
14383 steps vector to avoid pushing elements from the reallocated
14386 2021-04-07 Richard Biener <rguenther@suse.de>
14388 * tree-ssa-sccvn.h (print_vn_reference_ops): Declare.
14389 * tree-ssa-pre.c (print_pre_expr): Factor out VN reference operand
14391 * tree-ssa-sccvn.c (print_vn_reference_ops): ... into this new
14393 (debug_vn_reference_ops): New.
14395 2021-04-07 Bin Cheng <bin.cheng@linux.alibaba.com>
14397 PR tree-optimization/98736
14398 * tree-loop-distribution.c
14399 * (loop_distribution::bb_top_order_init):
14400 Compute RPO with programing order preserved by calling function
14401 rev_post_order_and_mark_dfs_back_seme.
14403 2021-04-06 Vladimir N. Makarov <vmakarov@redhat.com>
14406 * lra-constraints.c (split_reg): Don't check paradoxical_subreg_p.
14407 * lra-lives.c (clear_sparseset_regnos, regnos_in_sparseset_p): New
14409 (process_bb_lives): Don't update biggest mode of hard reg for
14410 implicit in multi-register group. Use the new functions for
14411 updating dead_set and unused_set by register notes.
14413 2021-04-06 Xianmiao Qu <xianmiao_qu@c-sky.com>
14415 * config/csky/csky_pipeline_ck802.md : Use insn reservation name
14418 2021-04-06 H.J. Lu <hjl.tools@gmail.com>
14420 * config/i386/x86-tune-costs.h (skylake_memcpy): Updated.
14421 (skylake_memset): Likewise.
14422 (skylake_cost): Change CLEAR_RATIO to 17.
14423 * config/i386/x86-tune.def (X86_TUNE_PREFER_KNOWN_REP_MOVSB_STOSB):
14424 Replace m_CANNONLAKE, m_ICELAKE_CLIENT, m_ICELAKE_SERVER,
14425 m_TIGERLAKE and m_SAPPHIRERAPIDS with m_SKYLAKE and m_CORE_AVX512.
14427 2021-04-06 Richard Biener <rguenther@suse.de>
14429 PR tree-optimization/99880
14430 * tree-vect-loop.c (maybe_set_vectorized_backedge_value): Only
14431 set vectorized defs of relevant PHIs.
14433 2021-04-06 Richard Biener <rguenther@suse.de>
14435 PR tree-optimization/99924
14436 * tree-vect-slp.c (vect_bb_partition_graph_r): Do not mark
14437 nodes w/o scalar stmts as visited.
14439 2021-04-06 Alex Coplan <alex.coplan@arm.com>
14442 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Also use base
14443 PCS for [su]fix_optab.
14445 2021-04-03 Iain Sandoe <iain@sandoe.co.uk>
14447 * config/darwin.c (machopic_legitimize_pic_address): Check
14448 that the current pic register is one of the hard reg set
14449 before setting liveness.
14451 2021-04-03 Iain Sandoe <iain@sandoe.co.uk>
14453 * config/darwin.c (machopic_legitimize_pic_address): Fix
14454 whitespace, remove unused code.
14456 2021-04-03 Jakub Jelinek <jakub@redhat.com>
14458 PR tree-optimization/99882
14459 * gimple-ssa-store-merging.c (bswap_view_convert): Handle val with
14462 2021-04-03 Jakub Jelinek <jakub@redhat.com>
14464 PR rtl-optimization/99863
14465 * dse.c (replace_read): Drop regs_live argument. Instead of
14466 regs_live, use store_insn->fixed_regs_live if non-NULL,
14467 otherwise punt if insns sequence clobbers or sets any hard
14470 2021-04-03 Jakub Jelinek <jakub@redhat.com>
14473 * targhooks.h (default_print_patchable_function_entry_1): Declare.
14474 * targhooks.c (default_print_patchable_function_entry_1): New function,
14475 copied from default_print_patchable_function_entry with an added flags
14477 (default_print_patchable_function_entry): Rewritten into a small
14478 wrapper around default_print_patchable_function_entry_1.
14479 * config/rs6000/rs6000.c (TARGET_ASM_PRINT_PATCHABLE_FUNCTION_ENTRY):
14481 (rs6000_print_patchable_function_entry): New function.
14483 2021-04-02 Eric Botcazou <ebotcazou@adacore.com>
14485 * doc/invoke.texi (fdelete-dead-exceptions): Minor tweak.
14487 2021-04-01 Jason Merrill <jason@redhat.com>
14490 * common.opt: Document v15 and v16.
14492 2021-04-01 Richard Biener <rguenther@suse.de>
14494 PR tree-optimization/99863
14495 * gimplify.c (gimplify_init_constructor): Recompute vector
14498 2021-04-01 Jakub Jelinek <jakub@redhat.com>
14500 * doc/extend.texi (symver attribute): Fix up syntax errors
14503 2021-04-01 Jakub Jelinek <jakub@redhat.com>
14505 PR tree-optimization/96573
14506 * gimple-ssa-store-merging.c (init_symbolic_number): Handle
14507 also pointer types.
14509 2021-04-01 Richard Biener <rguenther@suse.de>
14511 PR tree-optimization/99856
14512 * tree-vect-patterns.c (vect_recog_over_widening_pattern): Promote
14513 precision to vector element precision.
14515 2021-04-01 Martin Jambor <mjambor@suse.cz>
14517 PR tree-optimization/97009
14518 * tree-sra.c (access_or_its_child_written): New function.
14519 (propagate_subaccesses_from_rhs): Use it instead of a simple grp_write
14522 2021-03-31 Jan Hubicka <hubicka@ucw.cz>
14525 * cif-code.def (USES_COMDAT_LOCAL): Make CIF_FINAL_NORMAL.
14527 2021-03-31 Pat Haugen <pthaugen@linux.ibm.com>
14530 * config/rs6000/altivec.md (xxspltiw_v4si, xxspltiw_v4sf_inst,
14531 xxspltidp_v2df_inst, xxsplti32dx_v4si_inst, xxsplti32dx_v4sf_inst,
14532 xxblend_<mode>, xxpermx_inst, xxeval): Mark prefixed.
14533 * config/rs6000/mma.md (mma_<vvi4i4i8>, mma_<avvi4i4i8>,
14534 mma_<vvi4i4i2>, mma_<avvi4i4i2>, mma_<vvi4i4>, mma_<avvi4i4>,
14535 mma_<pvi4i2>, mma_<apvi4i2>, mma_<vvi4i4i4>, mma_<avvi4i4i4>):
14537 * config/rs6000/rs6000.c (rs6000_final_prescan_insn): Adjust test.
14538 * config/rs6000/rs6000.md (define_attr "maybe_prefixed"): New.
14539 (define_attr "prefixed"): Update initializer.
14541 2021-03-31 Jakub Jelinek <jakub@redhat.com>
14544 * dwarf2out.c (debug_ranges_dwo_section): New variable.
14545 (DW_RANGES_IDX_SKELETON): Define.
14546 (struct dw_ranges): Add begin_entry and end_entry members.
14547 (DEBUG_DWO_RNGLISTS_SECTION): Define.
14548 (add_ranges_num): Adjust r initializer for addition of *_entry
14550 (add_ranges_by_labels): For -gsplit-dwarf and force_direct,
14551 set idx to DW_RANGES_IDX_SKELETON.
14552 (use_distinct_base_address_for_range): New function.
14553 (index_rnglists): Don't set r->idx if it is equal to
14554 DW_RANGES_IDX_SKELETON. Initialize r->begin_entry and
14555 r->end_entry for -gsplit-dwarf if those will be needed by
14557 (output_rnglists): Add DWO argument. If true, switch to
14558 debug_ranges_dwo_section rather than debug_ranges_section.
14559 Adjust l1/l2 label indexes. Only output the offset table when
14560 dwo is true and don't include in there the skeleton range
14561 entry if present. For -gsplit-dwarf, skip ranges that belong
14562 to the other rnglists section. Change return type from void
14563 to bool and return true if there are any range entries for
14564 the other section. For dwarf_split_debug_info use
14565 DW_RLE_startx_endx, DW_RLE_startx_length and DW_RLE_base_addressx
14566 entries instead of DW_RLE_start_end, DW_RLE_start_length and
14567 DW_RLE_base_address. Use use_distinct_base_address_for_range.
14568 (init_sections_and_labels): Initialize debug_ranges_dwo_section
14569 if -gsplit-dwarf and DWARF >= 5. Adjust ranges_section_label
14570 and range_base_label indexes.
14571 (dwarf2out_finish): Call index_rnglists earlier before finalizing
14572 .debug_addr. Never emit DW_AT_rnglists_base attribute. For
14573 -gsplit-dwarf and DWARF >= 5 call output_rnglists up to twice
14574 with different dwo arguments.
14575 (dwarf2out_c_finalize): Clear debug_ranges_dwo_section.
14577 2021-03-31 Richard Sandiford <richard.sandiford@arm.com>
14579 PR tree-optimization/98268
14580 * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Call
14581 recompute_tree_invariant_for_addr_expr after successfully
14582 folding a TARGET_MEM_REF that occurs inside an ADDR_EXPR.
14584 2021-03-31 Richard Sandiford <richard.sandiford@arm.com>
14586 PR tree-optimization/99726
14587 * tree-data-ref.c (create_intersect_range_checks_index): Bail
14588 out if there is more than one access function SCEV for the loop
14591 2021-03-31 Richard Sandiford <richard.sandiford@arm.com>
14593 PR rtl-optimization/97141
14594 PR rtl-optimization/98726
14595 * emit-rtl.c (valid_for_const_vector_p): Return true for
14597 * rtx-vector-builder.h (rtx_vector_builder::step): Return a
14598 poly_wide_int instead of a wide_int.
14599 (rtx_vector_builder::apply_set): Take a poly_wide_int instead
14601 * rtx-vector-builder.c (rtx_vector_builder::apply_set): Likewise.
14602 * config/aarch64/aarch64.c (aarch64_legitimate_constant_p): Return
14603 false for CONST_VECTORs that cannot be forced to memory.
14604 * config/aarch64/aarch64-simd.md (mov<mode>): If a CONST_VECTOR
14605 is too complex to force to memory, build it up from individual
14608 2021-03-31 Jan Hubicka <jh@suse.cz>
14611 * cgraph.c (cgraph_node::release_body): Fix overactive check.
14613 2021-03-31 Christophe Lyon <christophe.lyon@linaro.org>
14616 * config/arm/vec-common.md (mul<mode>3): Disable on iwMMXT, expect
14619 2021-03-31 H.J. Lu <hjl.tools@gmail.com>
14621 * config/i386/i386-expand.c (expand_set_or_cpymem_via_rep):
14622 For TARGET_PREFER_KNOWN_REP_MOVSB_STOSB, don't convert QImode
14624 (decide_alg): For TARGET_PREFER_KNOWN_REP_MOVSB_STOSB, use
14625 "rep movsb/stosb" only for known sizes.
14626 * config/i386/i386-options.c (processor_cost_table): Use Ice
14627 Lake cost for Cannon Lake, Ice Lake, Tiger Lake, Sapphire
14628 Rapids and Alder Lake.
14629 * config/i386/i386.h (TARGET_PREFER_KNOWN_REP_MOVSB_STOSB): New.
14630 * config/i386/x86-tune-costs.h (icelake_memcpy): New.
14631 (icelake_memset): Likewise.
14632 (icelake_cost): Likewise.
14633 * config/i386/x86-tune.def (X86_TUNE_PREFER_KNOWN_REP_MOVSB_STOSB):
14636 2021-03-31 Richard Sandiford <richard.sandiford@arm.com>
14639 * config/aarch64/aarch64.c
14640 (aarch64_vectorize_preferred_vector_alignment): Query the size
14641 of the provided SVE vector; do not assume that all SVE vectors
14642 have the same size.
14644 2021-03-31 Jan Hubicka <jh@suse.cz>
14647 * cgraph.c (cgraph_node::release_body): Remove all callers and
14649 * cgraphclones.c (cgraph_node::materialize_clone): Do not do it here.
14650 * cgraphunit.c (cgraph_node::expand): And here.
14652 2021-03-31 Martin Liska <mliska@suse.cz>
14654 * ipa-modref.c (analyze_ssa_name_flags): Fix coding style
14655 and one negated condition.
14657 2021-03-31 Jakub Jelinek <jakub@redhat.com>
14658 Richard Sandiford <richard.sandiford@arm.com>
14661 * config/aarch64/aarch64.md (*add<mode>3_poly_1): Swap Uai and Uav
14662 constraints on operands[2] and similarly 0 and rk constraints
14663 on operands[1] corresponding to that.
14665 2021-03-31 Jakub Jelinek <jakub@redhat.com>
14668 * configure.ac (HAVE_LD_BROKEN_PE_DWARF5): New AC_DEFINE if PECOFF
14669 linker doesn't support DWARF sections new in DWARF5.
14670 * config/i386/i386-options.c (ix86_option_override_internal): Default
14671 to dwarf_version 4 if HAVE_LD_BROKEN_PE_DWARF5 for TARGET_PECOFF
14673 * config.in: Regenerated.
14674 * configure: Regenerated.
14676 2021-03-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14679 * config/aarch64/aarch64.c (aarch64_analyze_loop_vinfo): Check for
14680 available issue_info before using it.
14682 2021-03-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14685 * config/aarch64/aarch64.md (sub<mode>3_compare1_imm): Do not allow zero
14688 2021-03-30 Xionghu Luo <luoxhu@linux.ibm.com>
14691 * config/rs6000/altivec.md (altivec_lvsl_reg): Change to ...
14692 (altivec_lvsl_reg_<mode>): ... this.
14693 (altivec_lvsr_reg): Change to ...
14694 (altivec_lvsr_reg_<mode>): ... this.
14695 * config/rs6000/predicates.md (vec_set_index_operand): New.
14696 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
14697 Enable 32bit variable vec_insert for all TARGET_VSX.
14698 * config/rs6000/rs6000.c (rs6000_expand_vector_set_var_p9):
14699 Enable 32bit variable vec_insert for p9 and above.
14700 (rs6000_expand_vector_set_var_p8): Rename to ...
14701 (rs6000_expand_vector_set_var_p7): ... this.
14702 (rs6000_expand_vector_set): Use TARGET_VSX and adjust assert
14704 * config/rs6000/vector.md (vec_set<mode>): Use vec_set_index_operand.
14705 * config/rs6000/vsx.md (xl_len_r): Use gen_altivec_lvsl_reg_di and
14706 gen_altivec_lvsr_reg_di.
14708 2021-03-30 H.J. Lu <hjl.tools@gmail.com>
14711 * config/i386/ia32intrin.h (__rdtsc): Defined as macro.
14712 (__rdtscp): Likewise.
14714 2021-03-30 Tamar Christina <tamar.christina@arm.com>
14716 PR tree-optimization/99825
14717 * tree-vect-slp-patterns.c (vect_check_evenodd_blend):
14718 Reject non-mult 2 lanes.
14720 2021-03-30 Richard Earnshaw <rearnsha@arm.com>
14723 * config/arm/arm.c (arm_file_start): Fix emission of
14724 Tag_ABI_VFP_args attribute.
14726 2021-03-30 Richard Biener <rguenther@suse.de>
14728 PR tree-optimization/99824
14729 * stor-layout.c (set_min_and_max_values_for_integral_type):
14730 Assert the precision is within the bounds of
14731 WIDE_INT_MAX_PRECISION.
14732 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use
14733 the outermost component ref only to lower the access size
14734 and initialize that from the access type.
14736 2021-03-30 Richard Sandiford <richard.sandiford@arm.com>
14739 * config/aarch64/aarch64.md (mov<mode>): Pass multi-instruction
14740 CONST_INTs to aarch64_expand_mov_immediate when called after RA.
14742 2021-03-30 Mihailo Stojanovic <mihailo.stojanovic@typhoon-hil.com>
14744 * config/aarch64/aarch64.md
14745 (<optab>_trunc<fcvt_target><GPI:mode>2): Set the "arch"
14746 attribute to disambiguate between SIMD and FP variants of the
14749 2021-03-29 Jan Hubicka <hubicka@ucw.cz>
14751 * ipa-modref.c (merge_call_lhs_flags): Correct handling of deref.
14752 (analyze_ssa_name_flags): Fix typo in comment.
14754 2021-03-29 Alex Coplan <alex.coplan@arm.com>
14757 * config/aarch64/aarch64-sve-builtins.cc
14758 (function_builder::add_function): Add placeholder_p argument, use
14759 placeholder decls if this is set.
14760 (function_builder::add_unique_function): Instead of conditionally adding
14761 direct overloads, unconditionally add either a direct overload or a
14763 (function_builder::add_overloaded_function): Set placeholder_p if we're
14764 using C++ overloads. Use the obstack for string storage instead
14765 of relying on the tree nodes.
14766 (function_builder::add_overloaded_functions): Don't return early for
14767 m_direct_overloads: we need to add placeholders.
14768 * config/aarch64/aarch64-sve-builtins.h
14769 (function_builder::add_function): Add placeholder_p argument.
14771 2021-03-29 Richard Biener <rguenther@suse.de>
14773 PR tree-optimization/99807
14774 * tree-vect-slp.c (vect_slp_analyze_node_operations_1): Move
14775 assert below VEC_PERM handling.
14777 2021-03-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14780 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): Use
14781 aarch64_simd_or_scalar_imm_zero to match zeroes. Remove pattern
14782 matching const_int 0.
14783 (move_lo_quad_internal_be_<mode>): Likewise.
14784 (move_lo_quad_<mode>): Update for the above.
14785 * config/aarch64/iterators.md (VQ_2E): Delete.
14787 2021-03-29 Jakub Jelinek <jakub@redhat.com>
14789 PR tree-optimization/99777
14790 * fold-const.c (extract_muldiv_1): For conversions, punt on casts from
14791 types other than scalar integral types.
14793 2021-03-28 David Edelsohn <dje.gcc@gmail.com>
14795 * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Do not add
14796 XCOFF TLS reloc decorations.
14798 2021-03-28 Gerald Pfeifer <gerald@pfeifer.com>
14800 * doc/analyzer.texi (Analyzer Internals): Update link to
14801 "A Memory Model for Static Analysis of C Programs".
14803 2021-03-26 David Edelsohn <dje.gcc@gmail.com>
14805 * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Call function.
14806 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align):
14808 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align): New.
14809 (rs6000_special_round_type_align): Recursively check innermost first
14812 2021-03-26 Jakub Jelinek <jakub@redhat.com>
14815 * dwarf2out.h (struct dw_fde_node): Add rule18 member.
14816 * dwarf2cfi.c (dwarf2out_frame_debug_expr): When handling (set hfp sp)
14817 assignment with drap_reg active, queue reg save for hfp with offset 0
14818 and flush queued reg saves. When handling a push with rule18,
14819 defer queueing reg save for hfp and just assert the offset is 0.
14820 (scan_trace): Assert that fde->rule18 is false.
14822 2021-03-26 Vladimir Makarov <vmakarov@redhat.com>
14825 * ira-costs.c (record_reg_classes): Put case with
14826 CT_RELAXED_MEMORY adjacent to one with CT_MEMORY.
14827 * ira.c (ira_setup_alts): Ditto.
14828 * lra-constraints.c (process_alt_operands): Ditto.
14829 * recog.c (asm_operand_ok): Ditto.
14830 * reload.c (find_reloads): Ditto.
14832 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
14834 * config/aarch64/aarch64-protos.h
14835 (cpu_addrcost_table::post_modify_ld3_st3): New member variable.
14836 (cpu_addrcost_table::post_modify_ld4_st4): Likewise.
14837 * config/aarch64/aarch64.c (generic_addrcost_table): Update
14838 accordingly, using the same costs as for post_modify.
14839 (exynosm1_addrcost_table, xgene1_addrcost_table): Likewise.
14840 (thunderx2t99_addrcost_table, thunderx3t110_addrcost_table):
14841 (tsv110_addrcost_table, qdf24xx_addrcost_table): Likewise.
14842 (a64fx_addrcost_table): Likewise.
14843 (neoversev1_addrcost_table): New.
14844 (neoversev1_tunings): Use neoversev1_addrcost_table.
14845 (aarch64_address_cost): Use the new post_modify costs for CImode
14848 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
14850 * config/aarch64/aarch64.opt
14851 (-param=aarch64-loop-vect-issue-rate-niters=): New parameter.
14852 * doc/invoke.texi: Document it.
14853 * config/aarch64/aarch64-protos.h (aarch64_base_vec_issue_info)
14854 (aarch64_scalar_vec_issue_info, aarch64_simd_vec_issue_info)
14855 (aarch64_advsimd_vec_issue_info, aarch64_sve_vec_issue_info)
14856 (aarch64_vec_issue_info): New structures.
14857 (cpu_vector_cost): Write comments above the variables rather
14859 (cpu_vector_cost::issue_info): New member variable.
14860 * config/aarch64/aarch64.c: Include gimple-pretty-print.h
14861 and tree-ssa-loop-niter.h.
14862 (generic_vector_cost, a64fx_vector_cost, qdf24xx_vector_cost)
14863 (thunderx_vector_cost, tsv110_vector_cost, cortexa57_vector_cost)
14864 (exynosm1_vector_cost, xgene1_vector_cost, thunderx2t99_vector_cost)
14865 (thunderx3t110_vector_cost): Initialize issue_info to null.
14866 (neoversev1_scalar_issue_info, neoversev1_advsimd_issue_info)
14867 (neoversev1_sve_issue_info, neoversev1_vec_issue_info): New structures.
14868 (neoversev1_vector_cost): Use them.
14869 (aarch64_vec_op_count, aarch64_sve_op_count): New structures.
14870 (aarch64_vector_costs::saw_sve_only_op): New member variable.
14871 (aarch64_vector_costs::num_vector_iterations): Likewise.
14872 (aarch64_vector_costs::scalar_ops): Likewise.
14873 (aarch64_vector_costs::advsimd_ops): Likewise.
14874 (aarch64_vector_costs::sve_ops): Likewise.
14875 (aarch64_vector_costs::seen_loads): Likewise.
14876 (aarch64_simd_vec_costs_for_flags): New function.
14877 (aarch64_analyze_loop_vinfo): Initialize num_vector_iterations.
14878 Count the number of predicate operations required by SVE WHILE
14880 (aarch64_comparison_type, aarch64_multiply_add_p): New functions.
14881 (aarch64_sve_only_stmt_p, aarch64_in_loop_reduction_latency): Likewise.
14882 (aarch64_count_ops): Likewise.
14883 (aarch64_add_stmt_cost): Record whether see an SVE operation
14884 that cannot currently be implementing using Advanced SIMD.
14885 Record issue information about the scalar, Advanced SIMD
14886 and (where relevant) SVE versions of a loop.
14887 (aarch64_vec_op_count::dump): New function.
14888 (aarch64_sve_op_count::dump): Likewise.
14889 (aarch64_estimate_min_cycles_per_iter): Likewise.
14890 (aarch64_adjust_body_cost): If issue information is available,
14891 try to compare the issue rates of the various loop implementations
14892 and increase or decrease the vector body cost accordingly.
14894 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
14896 * config/aarch64/aarch64.c (aarch64_detect_vector_stmt_subtype):
14897 Assume a zero cost for induction phis.
14899 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
14901 * config/aarch64/aarch64.c (aarch64_embedded_comparison_type): New
14903 (aarch64_adjust_stmt_cost): Add the costs of embedded scalar and
14904 vector comparisons.
14906 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
14908 * config/aarch64/aarch64.c (aarch64_detect_scalar_stmt_subtype):
14910 (aarch64_add_stmt_cost): Call it.
14912 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
14914 * config/aarch64/aarch64-tuning-flags.def (matched_vector_throughput):
14915 New tuning parameter.
14916 * config/aarch64/aarch64.c (neoversev1_tunings): Use it.
14917 (aarch64_estimated_sve_vq): New function.
14918 (aarch64_vector_costs::analyzed_vinfo): New member variable.
14919 (aarch64_vector_costs::is_loop): Likewise.
14920 (aarch64_vector_costs::unrolled_advsimd_niters): Likewise.
14921 (aarch64_vector_costs::unrolled_advsimd_stmts): Likewise.
14922 (aarch64_record_potential_advsimd_unrolling): New function.
14923 (aarch64_analyze_loop_vinfo, aarch64_analyze_bb_vinfo): Likewise.
14924 (aarch64_add_stmt_cost): Call aarch64_analyze_loop_vinfo or
14925 aarch64_analyze_bb_vinfo on the first use of a costs structure.
14926 Detect whether we're vectorizing a loop for SVE that might be
14927 completely unrolled if it used Advanced SIMD instead.
14928 (aarch64_adjust_body_cost_for_latency): New function.
14929 (aarch64_finish_cost): Call it.
14931 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
14933 * config/aarch64/aarch64.c (aarch64_vector_costs): New structure.
14934 (aarch64_init_cost): New function.
14935 (aarch64_add_stmt_cost): Use aarch64_vector_costs instead of
14936 the default unsigned[3].
14937 (aarch64_finish_cost, aarch64_destroy_cost_data): New functions.
14938 (TARGET_VECTORIZE_INIT_COST): Override.
14939 (TARGET_VECTORIZE_FINISH_COST): Likewise.
14940 (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
14942 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
14944 * config/aarch64/aarch64.c (neoversev1_advsimd_vector_cost)
14945 (neoversev1_sve_vector_cost): New cost structures.
14946 (neoversev1_vector_cost): Likewise.
14947 (neoversev1_tunings): Use them. Enable use_new_vector_costs.
14949 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
14951 * config/aarch64/aarch64-protos.h
14952 (sve_vec_cost::scatter_store_elt_cost): New member variable.
14953 * config/aarch64/aarch64.c (generic_sve_vector_cost): Update
14954 accordingly, taking the cost from the cost of a scalar_store.
14955 (a64fx_sve_vector_cost): Likewise.
14956 (aarch64_detect_vector_stmt_subtype): Detect scatter stores.
14958 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
14960 * config/aarch64/aarch64-protos.h
14961 (simd_vec_cost::store_elt_extra_cost): New member variable.
14962 * config/aarch64/aarch64.c (generic_advsimd_vector_cost): Update
14963 accordingly, using the vec_to_scalar cost for the new field.
14964 (generic_sve_vector_cost, a64fx_advsimd_vector_cost): Likewise.
14965 (a64fx_sve_vector_cost, qdf24xx_advsimd_vector_cost): Likewise.
14966 (thunderx_advsimd_vector_cost, tsv110_advsimd_vector_cost): Likewise.
14967 (cortexa57_advsimd_vector_cost, exynosm1_advsimd_vector_cost)
14968 (xgene1_advsimd_vector_cost, thunderx2t99_advsimd_vector_cost)
14969 (thunderx3t110_advsimd_vector_cost): Likewise.
14970 (aarch64_detect_vector_stmt_subtype): Detect single-element stores.
14972 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
14974 * config/aarch64/aarch64-protos.h (simd_vec_cost::ld2_st2_permute_cost)
14975 (simd_vec_cost::ld3_st3_permute_cost): New member variables.
14976 (simd_vec_cost::ld4_st4_permute_cost): Likewise.
14977 * config/aarch64/aarch64.c (generic_advsimd_vector_cost): Update
14978 accordingly, using zero for the new costs.
14979 (generic_sve_vector_cost, a64fx_advsimd_vector_cost): Likewise.
14980 (a64fx_sve_vector_cost, qdf24xx_advsimd_vector_cost): Likewise.
14981 (thunderx_advsimd_vector_cost, tsv110_advsimd_vector_cost): Likewise.
14982 (cortexa57_advsimd_vector_cost, exynosm1_advsimd_vector_cost)
14983 (xgene1_advsimd_vector_cost, thunderx2t99_advsimd_vector_cost)
14984 (thunderx3t110_advsimd_vector_cost): Likewise.
14985 (aarch64_ld234_st234_vectors): New function.
14986 (aarch64_adjust_stmt_cost): Likewise.
14987 (aarch64_add_stmt_cost): Call aarch64_adjust_stmt_cost if using
14988 the new vector costs.
14990 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
14992 * config/aarch64/aarch64-protos.h (sve_vec_cost): Turn into a
14993 derived class of simd_vec_cost. Add information about CLAST[AB]
14994 and FADDA instructions.
14995 * config/aarch64/aarch64.c (generic_sve_vector_cost): Update
14996 accordingly, using the vec_to_scalar costs for the new fields.
14997 (a64fx_sve_vector_cost): Likewise.
14998 (aarch64_reduc_type): New function.
14999 (aarch64_sve_in_loop_reduction_latency): Likewise.
15000 (aarch64_detect_vector_stmt_subtype): Take a vinfo parameter.
15001 Use aarch64_sve_in_loop_reduction_latency to handle SVE reductions
15002 that occur in the loop body.
15003 (aarch64_add_stmt_cost): Update call accordingly.
15005 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
15007 * config/aarch64/aarch64-tuning-flags.def (use_new_vector_costs):
15009 * config/aarch64/aarch64-protos.h (simd_vec_cost): Put comments
15010 above the fields rather than to the right.
15011 (simd_vec_cost::reduc_i8_cost): New member variable.
15012 (simd_vec_cost::reduc_i16_cost): Likewise.
15013 (simd_vec_cost::reduc_i32_cost): Likewise.
15014 (simd_vec_cost::reduc_i64_cost): Likewise.
15015 (simd_vec_cost::reduc_f16_cost): Likewise.
15016 (simd_vec_cost::reduc_f32_cost): Likewise.
15017 (simd_vec_cost::reduc_f64_cost): Likewise.
15018 * config/aarch64/aarch64.c (generic_advsimd_vector_cost): Update
15019 accordingly, using the vec_to_scalar_cost for the new fields.
15020 (generic_sve_vector_cost, a64fx_advsimd_vector_cost): Likewise.
15021 (a64fx_sve_vector_cost, qdf24xx_advsimd_vector_cost): Likewise.
15022 (thunderx_advsimd_vector_cost, tsv110_advsimd_vector_cost): Likewise.
15023 (cortexa57_advsimd_vector_cost, exynosm1_advsimd_vector_cost)
15024 (xgene1_advsimd_vector_cost, thunderx2t99_advsimd_vector_cost)
15025 (thunderx3t110_advsimd_vector_cost): Likewise.
15026 (aarch64_use_new_vector_costs_p): New function.
15027 (aarch64_simd_vec_costs): New function, split out from...
15028 (aarch64_builtin_vectorization_cost): ...here.
15029 (aarch64_is_reduction): New function.
15030 (aarch64_detect_vector_stmt_subtype): Likewise.
15031 (aarch64_add_stmt_cost): Call aarch64_detect_vector_stmt_subtype if
15032 using the new vector costs.
15034 2021-03-26 Iain Buclaw <ibuclaw@gdcproject.org>
15037 * tree-emutls.c (get_emutls_init_templ_addr): Mark initializer of weak
15038 TLS declarations as public.
15040 2021-03-26 Iain Buclaw <ibuclaw@gdcproject.org>
15042 * config/aarch64/aarch64-d.c (IN_TARGET_CODE): Define.
15043 * config/arm/arm-d.c (IN_TARGET_CODE): Likewise.
15044 * config/i386/i386-d.c (IN_TARGET_CODE): Likewise.
15045 * config/mips/mips-d.c (IN_TARGET_CODE): Likewise.
15046 * config/pa/pa-d.c (IN_TARGET_CODE): Likewise.
15047 * config/riscv/riscv-d.c (IN_TARGET_CODE): Likewise.
15048 * config/rs6000/rs6000-d.c (IN_TARGET_CODE): Likewise.
15049 * config/s390/s390-d.c (IN_TARGET_CODE): Likewise.
15050 * config/sparc/sparc-d.c (IN_TARGET_CODE): Likewise.
15052 2021-03-26 Iain Buclaw <ibuclaw@gdcproject.org>
15055 * config.gcc (*-*-cygwin*): Add winnt-d.o
15056 (*-*-mingw*): Likewise.
15057 * config/i386/cygwin.h (EXTRA_TARGET_D_OS_VERSIONS): New macro.
15058 * config/i386/mingw32.h (EXTRA_TARGET_D_OS_VERSIONS): Likewise.
15059 * config/i386/t-cygming: Add winnt-d.o.
15060 * config/i386/winnt-d.c: New file.
15062 2021-03-26 Iain Buclaw <ibuclaw@gdcproject.org>
15064 * config/freebsd-d.c: Include memmodel.h.
15066 2021-03-26 Iain Buclaw <ibuclaw@gdcproject.org>
15069 * config.gcc (*-*-openbsd*): Add openbsd-d.o.
15070 * config/t-openbsd: Add openbsd-d.o.
15071 * config/openbsd-d.c: New file.
15073 2021-03-25 Stam Markianos-Wright <stam.markianos-wright@arm.com>
15075 PR tree-optimization/96974
15076 * tree-vect-stmts.c (vect_get_vector_types_for_stmt): Replace assert
15077 with graceful exit.
15079 2021-03-25 H.J. Lu <hjl.tools@gmail.com>
15082 2021-03-25 H.J. Lu <hjl.tools@gmail.com>
15086 * config/i386/i386.c (ix86_can_inline_p): Don't check ISA for
15087 always_inline in system headers.
15089 2021-03-25 Kewen Lin <linkw@linux.ibm.com>
15091 * tree-vect-loop.c (vect_model_reduction_cost): Init inside_cost.
15093 2021-03-25 Jakub Jelinek <jakub@redhat.com>
15096 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF_SAME_FIELD.
15097 * fold-const.c (operand_compare::operand_equal_p): Don't compare
15098 field offsets if OEP_ADDRESS_OF_SAME_FIELD.
15100 2021-03-25 H.J. Lu <hjl.tools@gmail.com>
15104 * config/i386/i386.c (ix86_can_inline_p): Don't check ISA for
15105 always_inline in system headers.
15107 2021-03-25 Richard Biener <rguenther@suse.de>
15109 PR tree-optimization/99746
15110 * tree-vect-slp-patterns.c (complex_pattern::build): Do not mark
15111 the scalar stmt as patterned. Instead set up required things
15114 2021-03-25 Xionghu Luo <luoxhu@linux.ibm.com>
15116 * config/rs6000/rs6000.c (power8_costs): Change l2 cache
15119 2021-03-24 Martin Liska <mliska@suse.cz>
15122 * common/config/i386/i386-common.c (ARRAY_SIZE): Fix off-by-one
15124 * config/i386/i386-options.c (ix86_option_override_internal):
15125 Add run-time assert.
15127 2021-03-24 Martin Jambor <mjambor@suse.cz>
15130 * ipa-cp.c (initialize_node_lattices): Mark as bottom all
15131 parameters with unknown type.
15132 (ipacp_value_safe_for_type): New function.
15133 (propagate_vals_across_arith_jfunc): Verify that the constant type
15134 can be used for a type of the formal parameter.
15135 (propagate_vals_across_ancestor): Likewise.
15136 (propagate_scalar_across_jump_function): Likewise. Pass the type
15137 also to propagate_vals_across_ancestor.
15139 2021-03-24 Christophe Lyon <christophe.lyon@linaro.org>
15142 * config/arm/mve.md (movmisalign<mode>_mve_store): Use Ux
15144 (movmisalign<mode>_mve_load): Likewise.
15146 2021-03-24 Jakub Jelinek <jakub@redhat.com>
15149 * config/arm/vec-common.md (one_cmpl<mode>2, neg<mode>2,
15150 movmisalign<mode>): Disable expanders for TARGET_REALLY_IWMMXT.
15152 2021-03-24 Alexandre Oliva <oliva@adacore.com>
15154 * doc/sourcebuild.texi (sysconf): New effective target.
15156 2021-03-24 Alexandre Oliva <oliva@adacore.com>
15158 * config/i386/predicates.md (reg_or_const_vec_operand): New.
15159 * config/i386/sse.md (ssse3_pshufbv8qi3): Add an expander for
15160 the now *-prefixed insn_and_split, turn the splitter const vec
15161 into an input for the insn, making it an ignored immediate for
15162 non-split cases, and loaded into the scratch register
15165 2021-03-23 Vladimir N. Makarov <vmakarov@redhat.com>
15168 * config/aarch64/constraints.md (Utq, UOb, UOh, UOw, UOd, UOty):
15169 Use define_relaxed_memory_constraint for them.
15171 2021-03-23 Iain Sandoe <iain@sandoe.co.uk>
15174 * config/host-darwin.c (darwin_gt_pch_use_address): Add a
15175 colon to the diagnostic message.
15177 2021-03-23 Ilya Leoshkevich <iii@linux.ibm.com>
15179 * fwprop.c (fwprop_propagation::fwprop_propagation): Look at
15181 (try_fwprop_subst_note): Use set_info instead of insn_info.
15182 (try_fwprop_subst_pattern): Likewise.
15183 (try_fwprop_subst_notes): Likewise.
15184 (try_fwprop_subst): Likewise.
15185 (forward_propagate_subreg): Likewise.
15186 (forward_propagate_and_simplify): Likewise.
15187 (forward_propagate_into): Likewise.
15188 * rtl-ssa/accesses.h (set_info::single_nondebug_use) New
15190 (set_info::single_nondebug_insn_use): Likewise.
15191 (set_info::single_phi_use): Likewise.
15192 * rtl-ssa/member-fns.inl (set_info::single_nondebug_use) New
15194 (set_info::single_nondebug_insn_use): Likewise.
15195 (set_info::single_phi_use): Likewise.
15197 2021-03-23 Christophe Lyon <christophe.lyon@linaro.org>
15199 * doc/sourcebuild.texi (arm_dsp_ok, arm_dsp): Document.
15201 2021-03-23 Jakub Jelinek <jakub@redhat.com>
15204 * config/aarch64/aarch64.c (aarch64_add_offset): Tell
15205 expand_mult to perform an unsigned rather than a signed
15208 2021-03-23 H.J. Lu <hjl.tools@gmail.com>
15211 * config/i386/cpuid.h (__cpuid): Add __volatile__.
15212 (__cpuid_count): Likewise.
15214 2021-03-23 Richard Biener <rguenther@suse.de>
15216 PR tree-optimization/99721
15217 * tree-vect-slp.c (vect_slp_analyze_node_operations):
15218 Make sure we can schedule the node.
15220 2021-03-23 Marcus Comstedt <marcus@mc.pp.se>
15222 * config/riscv/riscv.c (riscv_subword): Take endianness into
15223 account when calculating the byte offset.
15225 2021-03-23 Marcus Comstedt <marcus@mc.pp.se>
15227 * config/riscv/predicates.md (subreg_lowpart_operator): New predicate
15228 * config/riscv/riscv.md (*addsi3_extended2, *subsi3_extended2)
15229 (*negsi2_extended2, *mulsi3_extended2, *<optab>si3_mask)
15230 (*<optab>si3_mask_1, *<optab>di3_mask, *<optab>di3_mask_1)
15231 (*<optab>si3_extend_mask, *<optab>si3_extend_mask_1): Use
15232 new predicate "subreg_lowpart_operator"
15234 2021-03-23 Marcus Comstedt <marcus@mc.pp.se>
15236 * config/riscv/riscv.c (riscv_swap_instruction): New function
15237 to byteswap an SImode rtx containing an instruction.
15238 (riscv_trampoline_init): Byteswap the generated instructions
15241 2021-03-23 Marcus Comstedt <marcus@mc.pp.se>
15243 * common/config/riscv/riscv-common.c
15244 (TARGET_DEFAULT_TARGET_FLAGS): Set default endianness.
15245 * config.gcc (riscv32be-*, riscv64be-*): Set
15246 TARGET_BIG_ENDIAN_DEFAULT to 1.
15247 * config/riscv/elf.h (LINK_SPEC): Change -melf* value
15248 depending on default endianness.
15249 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
15250 * config/riscv/linux.h (LINK_SPEC): Likewise.
15251 * config/riscv/riscv.c (TARGET_DEFAULT_TARGET_FLAGS): Set
15252 default endianness.
15253 * config/riscv/riscv.h (DEFAULT_ENDIAN_SPEC): New macro.
15255 2021-03-23 Marcus Comstedt <marcus@mc.pp.se>
15257 * config/riscv/elf.h (LINK_SPEC): Pass linker endianness flag.
15258 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
15259 * config/riscv/linux.h (LINK_SPEC): Likewise.
15260 * config/riscv/riscv.h (ASM_SPEC): Pass -mbig-endian and
15262 (BYTES_BIG_ENDIAN): Handle big endian.
15263 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
15264 * config/riscv/riscv.opt (-mbig-endian, -mlittle-endian): New
15266 * doc/invoke.texi (-mbig-endian, -mlittle-endian): Document.
15268 2021-03-23 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
15270 * regcprop.c (find_oldest_value_reg): Ask target whether
15271 different mode is fine for replacement register.
15273 2021-03-23 Aldy Hernandez <aldyh@redhat.com>
15275 PR tree-optimization/99296
15276 * value-range.cc (irange::irange_set_1bit_anti_range): New.
15277 (irange::irange_set_anti_range): Call irange_set_1bit_anti_range
15278 * value-range.h (irange::irange_set_1bit_anti_range): New.
15280 2021-03-22 Vladimir N. Makarov <vmakarov@redhat.com>
15283 * config/aarch64/constraints.md (UtQ): Use
15284 define_relaxed_memory_constraint for it.
15285 * doc/md.texi (define_relaxed_memory_constraint): Describe it.
15286 * genoutput.c (main): Process DEFINE_RELAXED_MEMORY_CONSTRAINT.
15287 * genpreds.c (constraint_data): Add bitfield is_relaxed_memory.
15288 (have_relaxed_memory_constraints): New static var.
15289 (relaxed_memory_start, relaxed_memory_end): Ditto.
15290 (add_constraint): Add arg is_relaxed_memory. Check name for
15291 relaxed memory. Set up is_relaxed_memory in constraint_data and
15292 have_relaxed_memory_constraints. Adjust calls.
15293 (choose_enum_order): Process relaxed memory.
15294 (write_tm_preds_h): Ditto.
15295 (main): Process DEFINE_RELAXED_MEMORY_CONSTRAINT.
15296 * gensupport.c (process_rtx): Process DEFINE_RELAXED_MEMORY_CONSTRAINT.
15297 * ira-costs.c (record_reg_classes): Process CT_RELAXED_MEMORY.
15298 * ira-lives.c (single_reg_class): Use
15299 insn_extra_relaxed_memory_constraint.
15300 * ira.c (ira_setup_alts): CT_RELAXED_MEMORY.
15301 * lra-constraints.c (valid_address_p): Use
15302 insn_extra_relaxed_memory_constraint instead of other memory
15304 (process_alt_operands): Process CT_RELAXED_MEMORY.
15305 (curr_insn_transform): Use insn_extra_relaxed_memory_constraint.
15306 * recog.c (asm_operand_ok, preprocess_constraints): Process
15308 * reload.c (find_reloads): Ditto.
15309 * rtl.def (DEFINE_RELAXED_MEMORY_CONSTRAINT): New.
15310 * stmt.c (parse_input_constraint): Use
15311 insn_extra_relaxed_memory_constraint.
15313 2021-03-22 Segher Boessenkool <segher@kernel.crashing.org>
15316 * ubsan.c (ubsan_instrument_float_cast): Don't test for unordered if
15319 2021-03-22 Alex Coplan <alex.coplan@arm.com>
15322 * config/arm/arm-protos.h (neon_make_constant): Add generate
15323 argument to guard emitting insns, default to true.
15324 * config/arm/arm.c (arm_legitimate_constant_p_1): Reject
15325 CONST_VECTORs which neon_make_constant can't handle.
15326 (neon_vdup_constant): Add generate argument, avoid emitting
15327 insns if it's not set.
15328 (neon_make_constant): Plumb new generate argument through.
15329 * config/arm/constraints.md (Ui): New. Use it...
15330 * config/arm/mve.md (*mve_mov<mode>): ... here.
15331 * config/arm/vec-common.md (movv8hf): Use neon_make_constant to
15332 synthesize constants.
15334 2021-03-22 Richard Biener <rguenther@suse.de>
15336 * debug.h: Add deprecation warning.
15338 2021-03-22 Richard Biener <rguenther@suse.de>
15340 PR tree-optimization/99694
15341 * tree-ssa-sccvn.c (visit_phi): Ignore edges with the
15344 2021-03-22 Kito Cheng <kito.cheng@sifive.com>
15347 * config/riscv/riscv.c (riscv_expand_block_move): Get RTL value
15348 after type checking.
15350 2021-03-22 Jakub Jelinek <jakub@redhat.com>
15354 * dwarf2out.c (get_full_len): Use get_precision rather than
15356 (add_const_value_attribute): Make sure add_AT_wide argument has
15357 precision prec rather than some very wide one.
15359 2021-03-22 Kewen Lin <linkw@linux.ibm.com>
15361 * config/rs6000/rs6000.md (*rotldi3_insert_sf,
15362 *mov<SFDF:mode><SFDF2:mode>cc_p9, floatsi<mode>2_lfiwax,
15363 floatsi<mode>2_lfiwax_mem, floatunssi<mode>2_lfiwzx,
15364 floatunssi<mode>2_lfiwzx_mem, *floatsidf2_internal,
15365 *floatunssidf2_internal, fix_trunc<mode>si2_stfiwx,
15366 fix_trunc<mode>si2_internal, fixuns_trunc<mode>si2_stfiwx,
15367 *round32<mode>2_fprs, *roundu32<mode>2_fprs,
15368 *fix_trunc<mode>si2_internal): Fix empty split condition.
15369 * config/rs6000/vsx.md (*vsx_le_undo_permute_<mode>,
15370 vsx_reduc_<VEC_reduc_name>_v2df, vsx_reduc_<VEC_reduc_name>_v4sf,
15371 *vsx_reduc_<VEC_reduc_name>_v2df_scalar,
15372 *vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Likewise.
15374 2021-03-22 Xionghu Luo <luoxhu@linux.ibm.com>
15377 * config/rs6000/rs6000.c (rs6000_expand_vector_set_var_p9):
15378 Convert idx to DImode.
15379 (rs6000_expand_vector_set_var_p8): Likewise.
15381 2021-03-21 Jakub Jelinek <jakub@redhat.com>
15384 * dwarf2out.c (insert_float): Change return type from void to
15385 unsigned, handle GET_MODE_SIZE (mode) == 2 and return element size.
15386 (mem_loc_descriptor, loc_descriptor, add_const_value_attribute):
15389 2021-03-20 H.J. Lu <hjl.tools@gmail.com>
15392 * config/i386/i386.c (construct_container): Check cfun != NULL
15393 before accessing silent_p.
15395 2021-03-20 Ahamed Husni <ahamedhusni73@gmail.com>
15397 * asan.c: Fix typos in comments.
15399 2021-03-20 Vladimir N. Makarov <vmakarov@redhat.com>
15401 PR rtl-optimization/99680
15402 * lra-constraints.c (skip_contraint_modifiers): Rename to skip_constraint_modifiers.
15403 (process_address_1): Check empty constraint before using
15406 2021-03-19 Pat Haugen <pthaugen@linux.ibm.com>
15408 * config/rs6000/rs6000.c (power10_cost): New.
15409 (rs6000_option_override_internal): Set Power10 costs.
15410 (rs6000_issue_rate): Set Power10 issue rate.
15411 * config/rs6000/power10.md: Rewrite for Power10.
15413 2021-03-19 Vladimir N. Makarov <vmakarov@redhat.com>
15416 * lra-constraints.c (process_address_1): Don't use unknown
15417 constraint for address constraint.
15419 2021-03-19 Iain Sandoe <iain@sandoe.co.uk>
15422 * config.gcc (powerpc-*-darwin8): Delete the reference to
15423 the now removed darwin8.h.
15425 2021-03-19 Olivier Hainque <hainque@adacore.com>
15428 * config/vxworksae.h (VX_CPU_PREFIX): Define.
15430 2021-03-19 John David Anglin <danglin@gcc.gnu.org>
15432 * config/pa/pa.c (import_milli): Use memcpy instead of strncpy.
15434 2021-03-19 Tamar Christina <tamar.christina@arm.com>
15436 PR tree-optimization/99656
15437 * tree-vect-slp-patterns.c (linear_loads_p,
15438 complex_add_pattern::matches, is_eq_or_top,
15439 vect_validate_multiplication, complex_mul_pattern::matches,
15440 complex_fms_pattern::matches): Remove complex_perm_kinds_t.
15441 * tree-vectorizer.h: (complex_load_perm_t): Removed.
15442 (slp_tree_to_load_perm_map_t): Use complex_perm_kinds_t instead of
15443 complex_load_perm_t.
15445 2021-03-19 H.J. Lu <hjl.tools@gmail.com>
15448 * config/i386/i386-options.c (ix86_init_machine_status): Set
15450 * config/i386/i386.c (init_cumulative_args): Set silent_p to
15452 (construct_container): Return early for return and argument
15453 errors if silent_p is true.
15454 * config/i386/i386.h (machine_function): Add silent_p.
15456 2021-03-19 Jakub Jelinek <jakub@redhat.com>
15459 * config/arm/constraints.md (Ds): New constraint.
15460 * config/arm/vec-common.md (mve_vshlq_<supf><mode>): Use w,Ds
15461 constraint instead of w,Dm.
15463 2021-03-19 Andrew Stubbs <ams@codesourcery.com>
15465 * config/gcn/gcn.c (gcn_parse_amdgpu_hsa_kernel_attribute): Fix quotes
15468 2021-03-19 Eric Botcazou <ebotcazou@adacore.com>
15470 PR middle-end/99641
15471 * fold-const.c (native_encode_initializer) <CONSTRUCTOR>: For an
15472 array type, do the computation of the current position in sizetype.
15474 2021-03-18 Vladimir N. Makarov <vmakarov@redhat.com>
15477 * lra-constraints.c (process_address_1): Use lookup_constraint
15478 only for a single constraint.
15480 2021-03-18 Martin Sebor <msebor@redhat.com>
15482 PR middle-end/99502
15483 * gimple-array-bounds.cc (inbounds_vbase_memaccess_p): Rename...
15484 (inbounds_memaccess_p): ...to this. Check the ending offset of
15485 the accessed member.
15487 2021-03-18 Andrew Stubbs <ams@codesourcery.com>
15489 * config/gcn/gcn.c (gcn_parse_amdgpu_hsa_kernel_attribute): Add %< and
15490 %> quote markers to error messages.
15491 (gcn_goacc_validate_dims): Likewise.
15492 (gcn_conditional_register_usage): Remove exclaimation mark from error
15494 (gcn_vectorize_vec_perm_const): Ensure perm is fully uninitialized.
15496 2021-03-18 Jan Hubicka <hubicka@ucw.cz>
15498 * config/i386/x86-tune-costs.h (struct processor_costs): Fix costs of
15501 2021-03-18 Sinan Lin <sinan@isrc.iscas.ac.cn>
15502 Kito Cheng <kito.cheng@sifive.com>
15504 * config/riscv/riscv.c (riscv_block_move_straight): Change type
15505 to unsigned HOST_WIDE_INT for parameter and local variable with
15506 HOST_WIDE_INT type.
15507 (riscv_adjust_block_mem): Ditto.
15508 (riscv_block_move_loop): Ditto.
15509 (riscv_expand_block_move): Ditto.
15511 2021-03-18 Nick Clifton <nickc@redhat.com>
15513 * config/v850/v850.c (construct_restore_jr): Increase static
15515 (construct_save_jarl): Likewise.
15516 * config/v850/v850.h (DWARF2_DEBUGGING_INFO): Define.
15518 2021-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15520 * config/aarch64/aarch64.c (aarch64_adjust_generic_arch_tuning): Define.
15521 (aarch64_override_options_internal): Use it.
15522 (generic_tunings): Add AARCH64_EXTRA_TUNE_CSE_SVE_VL_CONSTANTS to
15525 2021-03-17 Sandra Loosemore <sandra@codesourcery.com>
15527 * config/nios2/nios2.c (nios2_custom_check_insns): Clean up
15528 error message format issues.
15529 (nios2_option_override): Likewise.
15530 (nios2_expand_fpu_builtin): Likewise.
15531 (nios2_init_custom_builtins): Adjust to avoid bogus strncpy
15532 truncation warning.
15533 (nios2_expand_custom_builtin): More error message format fixes.
15534 (nios2_expand_rdwrctl_builtin): Likewise.
15535 (nios2_expand_rdprs_builtin): Likewise.
15536 (nios2_expand_eni_builtin): Likewise.
15537 (nios2_expand_builtin): Likewise.
15538 (nios2_register_custom_code): Likewise.
15539 (nios2_valid_target_attribute_rec): Likewise.
15540 (nios2_add_insn_asm): Fix uninitialized variable warning.
15542 2021-03-17 Jan Hubicka <jh@suse.cz>
15544 * config/i386/x86-tune-costs.h (struct processor_costs): Update costs
15545 of gather to match reality.
15546 * config/i386/x86-tune.def (X86_TUNE_USE_GATHER): Enable for znver3.
15548 2021-03-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15550 * config/aarch64/aarch64-builtins.c (aarch64_expand_rng_builtin): Use EQ
15551 to compare against CC_REG rather than NE.
15553 2021-03-17 H.J. Lu <hjl.tools@gmail.com>
15556 * config/i386/i386.c (ix86_force_load_from_GOT_p): Support
15557 inline assembly statements.
15558 (ix86_print_operand): Update 'P' handling for -fno-plt.
15560 2021-03-17 Tamar Christina <tamar.christina@arm.com>
15563 * config/aarch64/aarch64.c
15564 (aarch64_simd_clone_compute_vecsize_and_simdlen): Remove unused var.
15566 2021-03-16 Segher Boessenkool <segher@kernel.crashing.org>
15569 * config/rs6000/predicates.md (branch_comparison_operator): Allow
15570 ordered and unordered for CCFPmode, if flag_finite_math_only.
15572 2021-03-16 Jakub Jelinek <jakub@redhat.com>
15575 * config/i386/i386-expand.c (ix86_split_lea_for_addr): Emit a MULT
15576 rather than ASHIFT.
15577 * config/i386/i386.md (mult by 1248 into ashift): New splitter.
15579 2021-03-16 Martin Liska <mliska@suse.cz>
15582 * optc-save-gen.awk: Add flag_ipa_ra to exceptions for
15583 cl_optimization_compare function.
15585 2021-03-16 Ilya Leoshkevich <iii@linux.ibm.com>
15587 * config/s390/s390.c (f_constraint_p): Treat "fv" constraints
15590 2021-03-16 Jakub Jelinek <jakub@redhat.com>
15593 * config/i386/i386.h (struct machine_function): Add
15594 has_explicit_vzeroupper bitfield.
15595 * config/i386/i386-expand.c (ix86_expand_builtin): Set
15596 cfun->machine->has_explicit_vzeroupper when expanding
15597 IX86_BUILTIN_VZEROUPPER.
15598 * config/i386/i386-features.c (rest_of_handle_insert_vzeroupper):
15599 Do the mode switching only when TARGET_VZEROUPPER, expensive
15600 optimizations turned on and not optimizing for size.
15601 (pass_insert_vzeroupper::gate): Enable even when
15602 cfun->machine->has_explicit_vzeroupper is set.
15604 2021-03-16 Jakub Jelinek <jakub@redhat.com>
15607 * config/aarch64/aarch64.c
15608 (aarch64_simd_clone_compute_vecsize_and_simdlen): If not a function
15609 definition, walk TYPE_ARG_TYPES list if non-NULL for argument types
15610 instead of DECL_ARGUMENTS. Ignore types for uniform arguments.
15612 2021-03-15 Richard Biener <rguenther@suse.de>
15614 PR tree-optimization/98834
15615 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle missing
15616 subsetting by truncating the access size.
15618 2021-03-15 Jan Hubicka <hubicka@ucw.cz>
15620 * config/i386/i386-options.c (processor_cost_table): Add znver3_cost.
15621 * config/i386/x86-tune-costs.h (znver3_cost): New gobal variable; copy
15624 2021-03-15 Martin Liska <mliska@suse.cz>
15626 * spellcheck.c: Add missing comma in initialization.
15628 2021-03-14 Uroš Bizjak <ubizjak@gmail.com>
15630 * config/i386/sse.md (*vec_extract<mode>): Merge alternative 0 with
15631 alternative 2 and alternative 1 with alternative 3 using
15632 YW register constraint.
15633 (*vec_extract<PEXTR_MODE12:mode>_zext): Merge alternatives
15634 using YW register constraint.
15635 (*vec_extractv16qi_zext): Ditto.
15636 (*vec_extractv4si): Merge alternatives 4 and 5
15637 using Yw register constraint.
15638 (*ssse3_palignr<mode>_perm): Use Yw instead of v for alternative 3.
15640 2021-03-13 Martin Sebor <msebor@redhat.com>
15642 PR tree-optimization/99489
15643 * builtins.c (gimple_call_alloc_size): Fail gracefully when argument
15644 is not a call statement.
15646 2021-03-13 Jakub Jelinek <jakub@redhat.com>
15648 PR tree-optimization/99544
15649 * match.pd (X + (X << C) -> X * (1 + (1 << C))): Don't simplify
15650 if for vector types multiplication can't be done in type's mode.
15652 2021-03-12 Eric Botcazou <ebotcazou@adacore.com>
15655 * config/sparc/constraints.md (w): Rename to...
15656 (W): ... this and ditch previous implementation.
15657 * config/sparc/sparc.md (*movdi_insn_sp64): Replace W with m.
15658 (*movdf_insn_sp64): Likewise.
15659 (*mov<VM64:mode>_insn_sp64): Likewise.
15660 * config/sparc/sync.md (*atomic_compare_and_swap<mode>_1): Replace
15662 (atomic_compare_and_swap_leon3_1): Likewise.
15663 (*atomic_compare_and_swapdi_v8plus): Likewise.
15664 * config/sparc/sparc.c (memory_ok_for_ldd): Remove useless test on
15665 architecture and add missing address validity check during LRA.
15667 2021-03-12 Tobias Burnus <tobias@codesourcery.com>
15670 * gimplify.c (omp_add_variable): Handle NULL_TREE as size
15671 occuring for assumed-size arrays in use_device_{ptr,addr}.
15673 2021-03-12 Jakub Jelinek <jakub@redhat.com>
15676 * config/i386/constraints.md (YW): New internal constraint.
15677 * config/i386/sse.md (v_Yw): Add V4TI, V2TI, V1TI and TI cases.
15678 (*<sse2_avx2>_<insn><mode>3<mask_name>,
15679 *<sse2_avx2>_uavg<mode>3<mask_name>, *abs<mode>2,
15680 *<s>mul<mode>3_highpart<mask_name>): Use <v_Yw> instead of v in
15682 (<sse2_avx2>_psadbw): Use YW instead of v in constraints.
15683 (*avx2_pmaddwd, *sse2_pmaddwd, *<code>v8hi3, *<code>v16qi3,
15684 avx2_pmaddubsw256, ssse3_pmaddubsw128): Merge last two alternatives
15685 into one, use Yw instead of former x,v.
15686 (ashr<mode>3, <insn><mode>3): Use <v_Yw> instead of x in constraints of
15687 the last alternative.
15688 (<sse2_avx2>_packsswb<mask_name>, <sse2_avx2>_packssdw<mask_name>,
15689 <sse2_avx2>_packuswb<mask_name>, <sse4_1_avx2>_packusdw<mask_name>,
15690 *<ssse3_avx2>_pmulhrsw<mode>3<mask_name>, <ssse3_avx2>_palignr<mode>,
15691 <ssse3_avx2>_pshufb<mode>3<mask_name>): Merge last two alternatives
15692 into one, use <v_Yw> instead of former x,v.
15693 (avx2_interleave_highv32qi<mask_name>,
15694 vec_interleave_highv16qi<mask_name>): Use Yw instead of v in
15695 constraints. Add && <mask_avx512bw_condition> to condition.
15696 (avx2_interleave_lowv32qi<mask_name>,
15697 vec_interleave_lowv16qi<mask_name>,
15698 avx2_interleave_highv16hi<mask_name>,
15699 vec_interleave_highv8hi<mask_name>,
15700 avx2_interleave_lowv16hi<mask_name>, vec_interleave_lowv8hi<mask_name>,
15701 avx2_pshuflw_1<mask_name>, sse2_pshuflw_1<mask_name>,
15702 avx2_pshufhw_1<mask_name>, sse2_pshufhw_1<mask_name>,
15703 avx2_<code>v16qiv16hi2<mask_name>, sse4_1_<code>v8qiv8hi2<mask_name>,
15704 *sse4_1_<code>v8qiv8hi2<mask_name>_1, <sse2_avx2>_<insn><mode>3): Use
15705 Yw instead of v in constraints.
15706 * config/i386/mmx.md (Yv_Yw): New define_mode_attr.
15707 (*mmx_<insn><mode>3, mmx_ashr<mode>3, mmx_<insn><mode>3): Use <Yv_Yw>
15708 instead of Yv in constraints.
15709 (*mmx_<insn><mode>3, *mmx_mulv4hi3, *mmx_smulv4hi3_highpart,
15710 *mmx_umulv4hi3_highpart, *mmx_pmaddwd, *mmx_<code>v4hi3,
15711 *mmx_<code>v8qi3, mmx_pack<s_trunsuffix>swb, mmx_packssdw,
15712 mmx_punpckhbw, mmx_punpcklbw, mmx_punpckhwd, mmx_punpcklwd,
15713 *mmx_uavgv8qi3, *mmx_uavgv4hi3, mmx_psadbw): Use Yw instead of Yv in
15715 (*mmx_pinsrw, *mmx_pinsrb, *mmx_pextrw, *mmx_pextrw_zext, *mmx_pextrb,
15716 *mmx_pextrb_zext): Use YW instead of Yv in constraints.
15717 (*mmx_eq<mode>3, mmx_gt<mode>3): Use x instead of Yv in constraints.
15718 (mmx_andnot<mode>3, *mmx_<code><mode>3): Split last alternative into
15719 two, one with just x, another isa avx512vl with v.
15721 2021-03-12 Martin Liska <mliska@suse.cz>
15723 * doc/invoke.texi: Add missing param documentation.
15725 2021-03-11 David Malcolm <dmalcolm@redhat.com>
15728 * Makefile.in (ANALYZER_OBJS): Add analyzer/feasible-graph.o and
15729 analyzer/trimmed-graph.o.
15730 * doc/analyzer.texi (Analyzer Paths): Rewrite description of
15731 feasibility checking to reflect new implementation.
15732 * doc/invoke.texi (-fdump-analyzer-feasibility): Document new
15734 * shortest-paths.h (shortest_paths::get_shortest_distance): New.
15736 2021-03-11 David Malcolm <dmalcolm@redhat.com>
15738 * digraph.cc (selftest::test_shortest_paths): Update
15739 shortest_paths init for new param. Add test of
15740 SPS_TO_GIVEN_TARGET.
15741 * shortest-paths.h (enum shortest_path_sense): New.
15742 (shortest_paths::shortest_paths): Add "sense" param.
15743 Update for renamings. Generalize to use "sense" param.
15744 (shortest_paths::get_shortest_path): Rename param.
15745 (shortest_paths::m_sense): New field.
15746 (shortest_paths::m_prev): Rename...
15747 (shortest_paths::m_best_edge): ...to this.
15748 (shortest_paths::get_shortest_path): Update for renamings.
15749 Conditionalize flipping of path on sense of traversal.
15751 2021-03-11 David Malcolm <dmalcolm@redhat.com>
15753 * digraph.cc (selftest::test_shortest_paths): Add test coverage
15754 for paths from B and C.
15755 * shortest-paths.h (shortest_paths::shortest_paths): Handle
15756 unreachable nodes, rather than asserting.
15758 2021-03-11 David Edelsohn <dje.gcc@gmail.com>
15761 * config/rs6000/rs6000.c (rs6000_xcoff_file_start): Don't create
15762 xcoff_tbss_section_name.
15763 * config/rs6000/xcoff.h (ASM_OUTPUT_TLS_COMMON): Use .lcomm.
15764 * xcoffout.c (xcoff_tbss_section_name): Delete.
15765 * xcoffout.h (xcoff_tbss_section_name): Delete.
15767 2021-03-11 Richard Biener <rguenther@suse.de>
15769 PR tree-optimization/99523
15770 * tree-cfg.c (dump_function_to_file): Dump SSA names
15771 w/o identifier to the decls section as well, not only those
15772 without a VAR_DECL.
15774 2021-03-11 Jakub Jelinek <jakub@redhat.com>
15777 * ipa-icf-gimple.c (func_checker::compare_gimple_call): For internal
15778 function calls with lhs fail if the lhs don't have compatible types.
15780 2021-03-11 Hans-Peter Nilsson <hp@axis.com>
15782 * config/cris/cris.h (HARD_FRAME_POINTER_REGNUM): Define.
15783 Change FRAME_POINTER_REGNUM to correspond to a new faked
15784 register faked_fp, part of GENNONACR_REGS like faked_ap.
15785 (CRIS_FAKED_REGS_CONTENTS): New helper macro.
15786 (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS, CALL_USED_REGISTERS):
15787 (REG_ALLOC_ORDER, REG_CLASS_CONTENTS, REGNO_OK_FOR_BASE_P)
15788 (ELIMINABLE_REGS, REGISTER_NAMES): Adjust accordingly.
15789 * config/cris/cris.md (CRIS_FP_REGNUM): Renumber to new faked
15791 (CRIS_REAL_FP_REGNUM): New constant.
15792 * config/cris/cris.c (cris_reg_saved_in_regsave_area): Check
15793 for HARD_FRAME_POINTER_REGNUM instead of FRAME_POINTER_REGNUM.
15794 (cris_initial_elimination_offset): Handle elimination changes
15795 to HARD_FRAME_POINTER_REGNUM instead of FRAME_POINTER_REGNUM
15796 and add one from FRAME_POINTER_REGNUM to
15797 HARD_FRAME_POINTER_REGNUM.
15798 (cris_expand_prologue, cris_expand_epilogue): Emit code for
15799 hard_frame_pointer_rtx instead of frame_pointer_rtx.
15801 2021-03-10 David Edelsohn <dje.gcc@gmail.com>
15804 * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Add check for DCmode.
15805 * config/rs6000/rs6000.c (rs6000_special_round_type_align): Same.
15807 2021-03-10 Vladimir N. Makarov <vmakarov@redhat.com>
15810 * lra-constraints.c (process_address_1): Don't check unknown
15811 constraint, use X for empty constraint.
15813 2021-03-10 Alex Coplan <alex.coplan@arm.com>
15815 * config/aarch64/aarch64.c (aarch64_vfp_is_call_or_return_candidate):
15816 Fix typo in comment describing "is_ha" argument.
15818 2021-03-10 John David Anglin <danglin@gcc.gnu.org>
15820 * doc/sourcebuild.texi: Document LRA target selector.
15822 2021-03-10 David Malcolm <dmalcolm@redhat.com>
15824 * doc/ux.texi: Add subsection contrasting interactive versus
15825 batch usage of GCC.
15827 2021-03-10 Joel Hutton <joel.hutton@arm.com>
15830 * tree-vect-stmts.c (vectorizable_store): Fix scatter store mask
15832 (vectorizable_load): Fix gather load mask check condition.
15834 2021-03-10 Richard Biener <rguenther@suse.de>
15836 PR tree-optimization/99510
15837 * tree.c (check_aligned_type): Check that the candidate
15838 has TYPE_USER_ALIGN set instead of matching with the
15841 2021-03-10 Eric Botcazou <ebotcazou@adacore.com>
15843 * config/sparc/sparc.c (sparc_regmode_natural_size): Return 4 for
15844 float and vector integer modes only if the mode is not larger.
15846 2021-03-10 Hans-Peter Nilsson <hp@axis.com>
15848 * config/cris/cris.h (DWARF_FRAME_REGISTERS): Define.
15850 2021-03-09 Vladimir N. Makarov <vmakarov@redhat.com>
15852 * ira.c (ira_setup_alts, ira_get_dup_out_num): Process digital
15854 * ira-lives.c (single_reg_class): Ditto.
15856 2021-03-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
15858 * config.gcc (aarch64-*-rtems*): Include general rtems.h after
15859 the architecture-specific rtems.h.
15860 (aarch64-*-rtems*): Likewise.
15861 (arm*-*-rtems*): Likewise.
15862 (epiphany-*-rtems*): Likewise.
15863 (riscv*-*-rtems*): Likewise.
15865 2021-03-09 Jakub Jelinek <jakub@redhat.com>
15867 PR tree-optimization/99305
15868 * tree-ssa-phiopt.c (conditional_replacement): Test integer_pow2p
15869 before integer_all_onesp instead of vice versa.
15871 2021-03-09 Richard Earnshaw <rearnsha@arm.com>
15873 * common/config/arm/arm-common.c (arm_config_default): Change type
15874 of 'i' to unsigned.
15876 2021-03-09 Vladimir N. Makarov <vmakarov@redhat.com>
15879 * lra-constraints.c (process_address_1): Process constraint 'g'
15880 separately and digital constraints containing more one digit.
15882 2021-03-09 Nick Clifton <nickc@redhat.com>
15884 * config/rx/rx.h (DBX_DEBUGGING_INFO): Define.
15885 (DWARF"_DEBUGGING_INFO): Define.
15887 2021-03-09 Eric Botcazou <ebotcazou@adacore.com>
15890 * calls.c (initialize_argument_information): When the argument
15891 is passed by reference, do not make a copy in a thunk only if
15892 the argument is already in memory. Remove redundant test for
15893 the case of callee copy.
15895 2021-03-09 Vladimir N. Makarov <vmakarov@redhat.com>
15898 * lra-constraints.c (process_address_1): Process 0..9 constraints
15899 in process_address_1.
15901 2021-03-09 Andreas Krebbel <krebbel@linux.ibm.com>
15903 * config/s390/s390.c (struct s390_processor processor_table):
15904 Binutils name string must not be empty.
15906 2021-03-09 Claudiu Zissulescu <claziss@synopsys.com>
15908 * config/arc/arc.c (arc_attr_type): Remove function.
15910 2021-03-09 Martin Liska <mliska@suse.cz>
15913 * config/i386/i386-options.c (ix86_option_override_internal):
15914 Set isa_flags for OPTS argument and not for the global
15917 2021-03-09 Aaron Sawdey <acsawdey@linux.ibm.com>
15919 * config/rs6000/predicates.md (ds_form_mem_operand): Check
15922 2021-03-09 Aaron Sawdey <acsawdey@linux.ibm.com>
15925 * config/rs6000/predicates.md (ds_form_mem_operand) New
15927 * config/rs6000/genfusion.pl (gen_ld_cmpi_p10) Use
15928 ds_form_mem_operand in ld/lwa patterns.
15929 * config/rs6000/fusion.md: Regenerate file.
15931 2021-03-08 Martin Sebor <msebor@redhat.com>
15933 PR middle-end/98266
15934 * gimple-array-bounds.cc (inbounds_vbase_memaccess_p): New function.
15935 (array_bounds_checker::check_array_bounds): Call it.
15937 2021-03-08 Martin Sebor <msebor@redhat.com>
15939 PR middle-end/97631
15940 * tree-ssa-strlen.c (maybe_warn_overflow): Test rawmem.
15941 (handle_builtin_stxncpy_strncat): Rename locals. Determine
15942 destination size from allocation calls. Issue a more appropriate
15944 (handle_builtin_memcpy): Pass true as rawmem to maybe_warn_overflow.
15945 (handle_builtin_memset): Same.
15947 2021-03-08 Peter Bergner <bergner@linux.ibm.com>
15950 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_permute): Add an assert
15951 to ensure we do not have an Altivec style address.
15952 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>): Disable if passed
15953 an Altivec style address.
15954 (*vsx_le_perm_store_<mode>): Likewise.
15955 (splitters after *vsx_le_perm_store_<mode>): Likewise.
15956 (vsx_load_<mode>): Disable special expander if passed an Altivec
15958 (vsx_store_<mode>): Likewise.
15960 2021-03-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15963 * config/aarch64/predicates.md (aarch64_simd_shift_imm_vec_qi): Define.
15964 (aarch64_simd_shift_imm_vec_hi): Likewise.
15965 (aarch64_simd_shift_imm_vec_si): Likewise.
15966 (aarch64_simd_shift_imm_vec_di): Likewise.
15967 * config/aarch64/aarch64-simd.md (aarch64_shrn<mode>_insn_le): Use
15968 predicate from above.
15969 (aarch64_shrn<mode>_insn_be): Likewise.
15970 (aarch64_rshrn<mode>_insn_le): Likewise.
15971 (aarch64_rshrn<mode>_insn_be): Likewise.
15972 (aarch64_shrn2<mode>_insn_le): Likewise.
15973 (aarch64_shrn2<mode>_insn_be): Likewise.
15974 (aarch64_rshrn2<mode>_insn_le): Likewise.
15975 (aarch64_rshrn2<mode>_insn_be): Likewise.
15977 2021-03-08 Vladimir N. Makarov <vmakarov@redhat.com>
15980 * lra-constraints.c (skip_contraint_modifiers): New function.
15981 (process_address_1): Use it before lookup_constraint call.
15983 2021-03-08 Martin Liska <mliska@suse.cz>
15986 * config/i386/i386-options.c (ix86_option_override_internal):
15987 Enable UINTR and HRESET for -march that supports it.
15989 2021-03-08 Ilya Leoshkevich <iii@linux.ibm.com>
15991 * config/s390/s390.c (f_constraint_p): New function.
15992 (s390_md_asm_adjust): Implement TARGET_MD_ASM_ADJUST.
15993 (TARGET_MD_ASM_ADJUST): Likewise.
15995 2021-03-08 Tobias Burnus <tobias@codesourcery.com>
15998 * tree-nested.c (convert_local_reference_stmt): Avoid calling
15999 lookup_field_for_decl for Fortran module (= namespace context).
16001 2021-03-08 Andreas Krebbel <krebbel@linux.ibm.com>
16003 * config/s390/s390.c (s390_expand_vec_compare): Implement <0
16004 comparison with arithmetic right shift.
16005 (s390_expand_vcond): No need for a force_reg anymore.
16006 s390_vec_compare will do it.
16007 * config/s390/vector.md ("vec_cmp<mode><tointvec>"): Accept also
16008 immediate operands.
16010 2021-03-07 Jakub Jelinek <jakub@redhat.com>
16013 * config/i386/constraints.md (Yw): Use SSE_REGS if TARGET_SSE
16014 but TARGET_AVX512BW or TARGET_AVX512VL is not set. Adjust description
16016 * config/i386/sse.md (v_Yw): New define_mode_attr.
16017 (*<insn><mode>3, *mul<mode>3<mask_name>, *avx2_<code><mode>3,
16018 *sse4_1_<code><mode>3<mask_name>): Use <v_Yw> instead of v
16020 * config/i386/mmx.md (mmx_pshufw_1, *vec_dupv4hi): Use Yw instead of
16021 xYw in constraints.
16023 2021-03-06 Julian Brown <julian@codesourcery.com>
16025 * tree-pretty-print.c (dump_generic_node): Emit non-generic
16026 address space info for aggregates.
16028 2021-03-06 Hans-Peter Nilsson <hp@axis.com>
16030 * config/cris/cris.h (MAX_FIXED_MODE_SIZE): Don't define.
16032 2021-03-05 Jakub Jelinek <jakub@redhat.com>
16034 PR middle-end/99322
16035 * tree-cfg.c (bb_to_omp_idx): New variable.
16036 (execute_build_cfg): Release the bb_to_omp_idx vector after
16037 cleanup_tree_cfg returns.
16038 (handle_abnormal_edges): Remove bb_to_omp_idx argument, adjust
16039 for bb_to_omp_idx being a vec<int> instead of pointer to array
16041 (make_edges): Remove bb_to_omp_idx local variable, don't pass
16042 it to handle_abnormal_edges, adjust for bb_to_omp_idx being a
16043 vec<int> instead of pointer to array of ints and don't free/release
16045 (remove_bb): When removing a bb and placing forced label somewhere
16046 else, ensure it is put into the same OpenMP region during cfg
16047 pass if possible or to entry successor as fallback. Unregister
16048 bb from bb_to_omp_idx.
16050 2021-03-05 Vladimir N. Makarov <vmakarov@redhat.com>
16053 * lra-constraints.c (process_address_1): Skip decomposing address
16054 for asm insn operand with unknown constraint.
16056 2021-03-05 Martin Jambor <mjambor@suse.cz>
16059 * cgraph.c (cgraph_edge::set_call_stmt): Do not update all
16060 corresponding speculative edges if we are about to resolve
16061 sepculation. Make edge direct (and so resolve speculations) before
16062 removing it from call_site_hash.
16063 (cgraph_edge::make_direct): Relax the initial assert to allow calling
16064 the function on speculative direct edges.
16066 2021-03-05 Eric Botcazou <ebotcazou@adacore.com>
16068 PR rtl-optimization/99376
16069 * rtlanal.c (nonzero_bits1) <arithmetic operators>: If the number
16070 of low-order zero bits is too large, set the result to 0 directly.
16072 2021-03-04 Jakub Jelinek <jakub@redhat.com>
16074 PR middle-end/93235
16075 * expmed.c (store_bit_field_using_insv): Return false of xop0 is a
16076 SUBREG and a SUBREG to op_mode can't be created.
16078 2021-03-04 Alex Coplan <alex.coplan@arm.com>
16081 * config/aarch64/aarch64-sve-builtins.cc
16082 (function_resolver::require_vector_type): Handle error_mark_node.
16084 2021-03-04 Ilya Leoshkevich <iii@linux.ibm.com>
16086 * cfgexpand.c (expand_asm_loc): Pass new parameter.
16087 (expand_asm_stmt): Likewise.
16088 * config/arm/aarch-common-protos.h (arm_md_asm_adjust): Add new
16090 * config/arm/aarch-common.c (arm_md_asm_adjust): Likewise.
16091 * config/arm/arm.c (thumb1_md_asm_adjust): Likewise.
16092 * config/cris/cris.c (cris_md_asm_adjust): Likewise.
16093 * config/i386/i386.c (ix86_md_asm_adjust): Likewise.
16094 * config/mn10300/mn10300.c (mn10300_md_asm_adjust): Likewise.
16095 * config/nds32/nds32.c (nds32_md_asm_adjust): Likewise.
16096 * config/pdp11/pdp11.c (pdp11_md_asm_adjust): Likewise.
16097 * config/rs6000/rs6000.c (rs6000_md_asm_adjust): Likewise.
16098 * config/vax/vax.c (vax_md_asm_adjust): Likewise.
16099 * config/visium/visium.c (visium_md_asm_adjust): Likewise.
16100 * doc/tm.texi (md_asm_adjust): Likewise.
16101 * target.def (md_asm_adjust): Likewise.
16103 2021-03-04 Richard Biener <rguenther@suse.de>
16105 PR middle-end/97855
16106 * tree-pretty-print.c: Poison pp_printf.
16107 (dump_decl_name): Avoid use of pp_printf.
16108 (dump_block_node): Likewise.
16109 (dump_generic_node): Likewise.
16111 2021-03-04 Martin Sebor <msebor@redhat.com>
16113 PR middle-end/96963
16114 PR middle-end/94655
16115 * builtins.c (handle_array_ref): New helper.
16116 (handle_mem_ref): New helper.
16117 (compute_objsize_r): Factor out ARRAY_REF and MEM_REF handling
16118 into new helper functions. Correct a workaround for vectorized
16121 2021-03-03 Pat Haugen <pthaugen@linux.ibm.com>
16123 * config/rs6000/dfp.md (extendddtd2, trunctddd2, *cmp<mode>_internal1,
16124 floatditd2, ftrunc<mode>2, fix<mode>di2, dfp_ddedpd_<mode>,
16125 dfp_denbcd_<mode>, dfp_dxex_<mode>, dfp_diex_<mode>,
16126 *dfp_sgnfcnc_<mode>, dfp_dscli_<mode>, dfp_dscri_<mode>): Update size
16127 attribute for Power10.
16128 * config/rs6000/mma.md (*movoo): Likewise.
16129 * config/rs6000/rs6000.md (define_attr "size"): Add 256.
16130 (define_mode_attr bits): Add DD/TD modes.
16131 * config/rs6000/sync.md (load_quadpti, store_quadpti, load_lockedpti,
16132 store_conditionalpti): Update size attribute for Power10.
16134 2021-03-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16137 * config/sparc/t-sparc (tree-ssanames.o-warn): Don't error for
16138 -Wuninitialized, -Wmaybe-uninitialized.
16139 (wide-int.o-warn): Likewise.
16141 2021-03-03 Richard Earnshaw <rearnsha@arm.com>
16143 * common/config/arm/arm-common.c: Include configargs.h.
16144 (arm_config_default): New function.
16145 (arm_target_mode): Renamed from arm_target_thumb_only. Handle
16146 processors that do not support Thumb. Take into account the
16147 --with-mode configuration setting for selecting the default.
16148 * config/arm/arm.h (OPTION_DEFAULT_SPECS): Remove entry for 'mode'.
16149 (TARGET_MODE_SPEC_FUNCTIONS): Update for function name change.
16151 2021-03-03 Martin Liska <mliska@suse.cz>
16153 PR gcov-profile/97461
16154 * gcov-io.h (GCOV_PREALLOCATED_KVP): Remove.
16156 2021-03-03 Eric Botcazou <ebotcazou@adacore.com>
16159 * config/i386/i386.c (ix86_compute_frame_layout): For a SEH target,
16160 point back the hard frame pointer to its default location when the
16161 frame is larger than SEH_MAX_FRAME_SIZE.
16163 2021-03-03 Jakub Jelinek <jakub@redhat.com>
16166 * config/i386/predicates.md (logic_operator): New define_predicate.
16167 * config/i386/i386.md (mov + mem using comm arith peephole2):
16168 Punt if operands[1] is EXT_REX_SSE_REGNO_P, AVX512BW is not enabled
16169 and the inner mode is [QH]Imode.
16171 2021-03-03 Jakub Jelinek <jakub@redhat.com>
16174 * dwarf2out.c (dw_loc_list_struct): Add end_entry member.
16175 (new_loc_list): Clear end_entry.
16176 (output_loc_list): Only use DW_LLE_startx_length for -gsplit-dwarf
16177 if HAVE_AS_LEB128, otherwise use DW_LLE_startx_endx. Fix comment
16179 (index_location_lists): For dwarf_version >= 5 without HAVE_AS_LEB128,
16180 initialize also end_entry.
16182 2021-03-03 Jakub Jelinek <jakub@redhat.com>
16185 * cfgrtl.c (fixup_partitions): When changing some bbs from hot to cold
16186 partitions, if in non-layout mode after reorder_blocks also move
16187 affected blocks to ensure a single partition transition.
16189 2021-03-03 Jason Merrill <jason@redhat.com>
16192 * cgraphunit.c (process_function_and_variable_attributes): Don't
16193 warn about flatten on an alias if the target also has it.
16194 * cgraph.h (symtab_node::get_alias_target_tree): New.
16196 2021-03-02 David Edelsohn <dje.gcc@gmail.com>
16198 * config/rs6000/rs6000.md (tls_get_tpointer_internal): Prepend
16199 period to symbol name.
16200 (tls_get_addr_internal<mode>): Same.
16202 2021-03-02 David Malcolm <dmalcolm@redhat.com>
16205 * diagnostic-show-locus.c
16206 (selftest::test_one_liner_many_fixits_2): Fix accidental usage of
16209 2021-03-02 Martin Sebor <msebor@redhat.com>
16211 PR middle-end/99276
16212 * builtins.c (warn_for_access): Remove stray warning text.
16214 2021-03-02 Martin Sebor <msebor@redhat.com>
16216 PR middle-end/99295
16217 * doc/extend.texi (attribute malloc): Reword and clarify nonaliasing
16220 2021-03-02 Jakub Jelinek <jakub@redhat.com>
16223 * dwarf2out.c (output_macinfo_op): Use DW_MACRO_*_str* even with
16224 -gdwarf-5 -gstrict-dwarf. For -gsplit-dwarf -gdwarf-5 use
16225 DW_MACRO_*_strx instead of DW_MACRO_*_strp. Handle
16226 DW_MACRO_define_strx and DW_MACRO_undef_strx.
16227 (save_macinfo_strings): Use DW_MACRO_*_str* even with
16228 -gdwarf-5 -gstrict-dwarf. Handle DW_MACRO_define_strx and
16229 DW_MACRO_undef_strx.
16231 2021-03-02 Andreas Krebbel <krebbel@linux.ibm.com>
16233 * config/s390/s390-builtin-types.def (BT_FN_V4SF_V8HI_UINT): New
16235 (BT_FN_V8HI_V8HI_UINT): Likewise.
16236 (BT_FN_V8HI_V4SF_V4SF_UINT): Likewise.
16237 * config/s390/s390-builtins.def (B_NNPA): New macro definition.
16238 (s390_vclfnhs, s390_vclfnls, s390_vcrnfs, s390_vcfn, s390_vcnf):
16239 New builtin definitions.
16240 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Bump
16241 vector extension version.
16242 * config/s390/s390.c (s390_expand_builtin): Check if builtins are
16243 available with current -march level.
16244 * config/s390/s390.md (UNSPEC_NNPA_VCLFNHS_V8HI)
16245 (UNSPEC_NNPA_VCLFNLS_V8HI, UNSPEC_NNPA_VCRNFS_V8HI)
16246 (UNSPEC_NNPA_VCFN_V8HI, UNSPEC_NNPA_VCNF_V8HI): New constants.
16247 * config/s390/vecintrin.h (vec_extend_to_fp32_hi): New macro.
16248 (vec_extend_to_fp32_lo): Likewise.
16249 (vec_round_from_fp32): Likewise.
16250 (vec_convert_to_fp16): Likewise.
16251 (vec_convert_from_fp16): Likewise.
16252 * config/s390/vx-builtins.md (vclfnhs_v8hi): New insn pattern.
16253 (vclfnls_v8hi): Likewise.
16254 (vcrnfs_v8hi): Likewise.
16255 (vcfn_v8hi): Likewise.
16256 (vcnf_v8hi): Likewise.
16258 2021-03-02 Andreas Krebbel <krebbel@linux.ibm.com>
16260 * common/config/s390/s390-common.c (processor_flags_table): New entry.
16261 * config.gcc: Enable arch14 for --with-arch and --with-tune.
16262 * config/s390/driver-native.c (s390_host_detect_local_cpu): Pick
16263 arch14 for unknown CPU models.
16264 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH14.
16265 * config/s390/s390.c (s390_issue_rate): Add case for PROCESSOR_ARCH14.
16266 (s390_get_sched_attrmask): Likewise.
16267 (s390_get_unit_mask): Likewise.
16268 * config/s390/s390.h (enum processor_flags): Add PF_NNPA and PF_ARCH14.
16269 (TARGET_CPU_ARCH14, TARGET_CPU_ARCH14_P, TARGET_CPU_NNPA)
16270 (TARGET_CPU_NNPA_P, TARGET_ARCH14, TARGET_ARCH14_P, TARGET_NNPA)
16271 (TARGET_NNPA_P): New macro definitions.
16272 * config/s390/s390.md ("cpu_facility", "enabled"): Add arch14 and nnpa.
16273 * config/s390/s390.opt: Add PROCESSOR_ARCH14.
16275 2021-03-02 Jakub Jelinek <jakub@redhat.com>
16277 PR middle-end/95757
16278 * tree-vrp.c (register_edge_assert_for): Remove superfluous ()s around
16279 condition. Call register_edge_assert_for_1 for == 0, != 0, == 1 and
16280 != 1 comparisons if name is lhs of a comparison.
16282 2021-03-01 Iain Sandoe <iain@sandoe.co.uk>
16286 * config/darwin-protos.h (darwin_should_restore_cfa_state): New.
16287 * config/darwin.c (darwin_should_restore_cfa_state): New.
16288 * config/darwin.h (TARGET_ASM_SHOULD_RESTORE_CFA_STATE): New.
16289 * doc/tm.texi: Regenerated.
16290 * doc/tm.texi.in: Document TARGET_ASM_SHOULD_RESTORE_CFA_STATE.
16291 * dwarf2cfi.c (connect_traces): If the target requests, restore
16292 the CFA expression after a DW_CFA_restore.
16293 * target.def (TARGET_ASM_SHOULD_RESTORE_CFA_STATE): New hook.
16295 2021-03-01 Martin Liska <mliska@suse.cz>
16298 * optc-save-gen.awk: Add 4 more exceptions.
16300 2021-03-01 Nathan Sidwell <nathan@acm.org>
16303 * tree.h (TYPE_ALIGN_RAW): New accessor.
16304 (TYPE_ALIGN): Use it.
16306 2021-03-01 Jan Hubicka <jh@suse.cz>
16309 * ipa-fnsummary.c (compute_fn_summary): Fix sanity check.
16311 2021-03-01 Eric Botcazou <ebotcazou@adacore.com>
16314 * config/i386/i386.c (ix86_compute_frame_layout): For a SEH target,
16315 point the hard frame pointer to the SSE register save area instead
16316 of the general register save area. Perform only minimal adjustment
16317 for small frames if it is initially not correctly aligned.
16318 (ix86_expand_prologue): Remove early saves for a SEH target.
16319 * config/i386/winnt.c (struct seh_frame_state): Document constraint.
16321 2021-02-28 Jakub Jelinek <jakub@redhat.com>
16324 * ipa.c (symbol_table::remove_unreachable_nodes): Fix a comment
16325 typo - referneced -> referenced.
16326 * tree.c (component_ref_size): Fix comment typo -
16327 refernce -> reference.
16328 * tree-ssa-alias.c (access_path_may_continue_p): Fix comment typo -
16329 traling -> trailing.
16330 (aliasing_component_refs_p): Fix comment typos -
16331 refernce -> reference and refernece -> reference and
16332 traling -> trailing.
16333 (nonoverlapping_refs_since_match_p): Fix comment typo -
16334 referneces -> references.
16335 * doc/invoke.texi (--param modref-max-bases): Fix a typo -
16336 referneces -> references.
16338 2021-02-27 Iain Sandoe <iain@sandoe.co.uk>
16340 * config/host-darwin.c (darwin_gt_pch_use_address): Modify
16341 diagnostic message to avoid use of a contraction and format
16344 2021-02-27 Jakub Jelinek <jakub@redhat.com>
16347 * gcse.c (gcse_or_cprop_is_too_expensive): Use %wu instead of
16348 HOST_WIDE_INT_PRINT_UNSIGNED in warning format string.
16349 * ipa-devirt.c (ipa_odr_read_section): Use %wd instead of
16350 HOST_WIDE_INT_PRINT_DEC in inform format string. Fix comment
16353 2021-02-26 Richard Biener <rguenther@suse.de>
16355 PR middle-end/99281
16356 * expr.c (store_field): For calls with return-slot optimization
16357 and addressable return type expand the store directly.
16359 2021-02-26 Richard Biener <rguenther@suse.de>
16362 * builtins.c (warn_string_no_nul): Fix diagnostic formatting.
16364 2021-02-26 Peter Bergner <bergner@linux.ibm.com>
16367 * config/rs6000/rs6000-call.c (rs6000_init_builtins): Replace assert
16370 2021-02-26 Aaron Sawdey <acsawdey@linux.ibm.com>
16372 * config.gcc: Add rs6000-pcrel-opt.o.
16373 * config/rs6000/rs6000-pcrel-opt.c: New file.
16374 * config/rs6000/pcrel-opt.md: New file.
16375 * config/rs6000/predicates.md: Add d_form_memory predicate.
16376 * config/rs6000/rs6000-cpus.def: Add OPTION_MASK_PCREL_OPT.
16377 * config/rs6000/rs6000-passes.def: Add pass_pcrel_opt.
16378 * config/rs6000/rs6000-protos.h: Add reg_to_non_prefixed(),
16379 pcrel_opt_valid_mem_p(), output_pcrel_opt_reloc(),
16380 and make_pass_pcrel_opt().
16381 * config/rs6000/rs6000.c (reg_to_non_prefixed): Make global.
16382 (rs6000_option_override_internal): Add pcrel-opt.
16383 (rs6000_delegitimize_address): Support pcrel-opt.
16384 (rs6000_opt_masks): Add pcrel-opt.
16385 (pcrel_opt_valid_mem_p): New function.
16386 (reg_to_non_prefixed): Make global.
16387 (rs6000_asm_output_opcode): Reset prepend_p_to_next_insn.
16388 (output_pcrel_opt_reloc): New function.
16389 * config/rs6000/rs6000.md (loads_extern_addr): New attr.
16390 (pcrel_extern_addr): Set loads_extern_addr.
16391 Add include for pcrel-opt.md.
16392 * config/rs6000/rs6000.opt: Add -mpcrel-opt.
16393 * config/rs6000/t-rs6000: Add rules for pcrel-opt.c and
16396 2021-02-26 YunQiang Su <yunqiang.su@cipunited.com>
16399 * config/mips/mips.c (mips_expand_ext_as_unaligned_load):
16400 If TARGET_64BIT and dest is SUBREG, we check the width, if it
16401 equal to SImode, we use SImode operation, just like what we are
16404 2021-02-26 Marek Polacek <polacek@redhat.com>
16406 * builtins.c (warn_for_access): Fix typos.
16408 2021-02-25 Iain Sandoe <iain@sandoe.co.uk>
16410 * config/aarch64/aarch64.md (<optab>_rol<mode>3): Add a '#'
16411 mark in front of the immediate quantity.
16412 (<optab>_rolsi3_uxtw): Likewise.
16414 2021-02-25 Richard Earnshaw <rearnsha@arm.com>
16417 * config/arm/thumb2.md (nonsecure_call_reg_thumb2_fpcxt): New pattern.
16418 (nonsecure_call_value_reg_thumb2_fpcxt): Likewise.
16419 (nonsecure_call_reg_thumb2): Restrict to using r4 for the callee
16420 address and disable when the FPCXT is not available.
16421 (nonsecure_call_value_reg_thumb2): Likewise.
16423 2021-02-25 Nathan Sidwell <nathan@acm.org>
16426 * doc/invoke.texi (flang-info-module-cmi): Renamed option.
16428 2021-02-25 Tamar Christina <tamar.christina@arm.com>
16430 * tree-vect-slp.c (optimize_load_redistribution_1): Abort on NULL nodes.
16432 2021-02-25 Richard Biener <rguenther@suse.de>
16434 PR tree-optimization/99253
16435 * tree-vect-loop.c (check_reduction_path): First compute
16436 code, then verify out-of-loop uses.
16438 2021-02-25 Jakub Jelinek <jakub@redhat.com>
16441 * match.pd ((T)(A) + CST -> (T)(A + CST)): Add :s to convert.
16443 2021-02-25 Jakub Jelinek <jakub@redhat.com>
16445 PR tree-optimization/80635
16446 * tree-vrp.c (vrp_simplify_cond_using_ranges): Also handle
16447 VIEW_CONVERT_EXPR if modes are the same, innerop is integral and
16448 has mode precision.
16450 2021-02-25 Richard Biener <rguenther@suse.de>
16452 * tree-vect-slp.c (optimize_load_redistribution_1): Delay
16453 load_map population.
16454 (vect_match_slp_patterns_2): Revert part of last change.
16455 (vect_analyze_slp): Do not interleave optimize_load_redistribution
16456 with pattern detection but do it afterwards. Dump the
16457 whole SLP graph after pattern recognition and load
16458 redistribution optimization finished.
16460 2021-02-24 Jakub Jelinek <jakub@redhat.com>
16463 * omp-low.c (struct omp_context): Add teams_nested_p and
16464 nonteams_nested_p members.
16465 (scan_omp_target): Diagnose teams nested inside of target with other
16466 directives strictly nested inside of the same target.
16467 (check_omp_nesting_restrictions): Set ctx->teams_nested_p or
16468 ctx->nonteams_nested_p as needed.
16470 2021-02-24 Vladimir N. Makarov <vmakarov@redhat.com>
16472 PR inline-asm/99123
16473 * lra-constraints.c (uses_hard_regs_p): Don't use decompose_mem_address.
16475 2021-02-24 Hans-Peter Nilsson <hp@axis.com>
16477 * config/cris/cris.c (cris_expand_prologue): Set
16478 current_function_static_stack_size, if flag_stack_usage_info.
16480 2021-02-24 Pat Haugen <pthaugen@linux.ibm.com>
16482 * config/rs6000/rs6000.c (next_insn_prefixed_p): Rename.
16483 (rs6000_final_prescan_insn): Adjust.
16484 (rs6000_asm_output_opcode): Likewise.
16486 2021-02-24 Martin Sebor <msebor@redhat.com>
16488 PR middle-end/97172
16489 * attribs.c (attr_access::free_lang_data): Clear attribute arg spec
16490 from function arguments.
16492 2021-02-24 Tamar Christina <tamar.christina@arm.com>
16494 PR tree-optimization/99220
16495 * tree-vect-slp.c (optimize_load_redistribution_1): Remove
16496 node from cache when it's about to be deleted.
16498 2021-02-24 Jakub Jelinek <jakub@redhat.com>
16500 PR tree-optimization/99225
16501 * fold-const.c (fold_binary_loc) <case NE_EXPR>: In (x & (1 << y)) != 0
16502 to ((x >> y) & 1) != 0 simplifications use build_one_cst instead of
16503 build_int_cst (..., 1). Formatting fixes.
16505 2021-02-24 Tamar Christina <tamar.christina@arm.com>
16507 PR tree-optimization/99149
16508 * tree-vect-slp-patterns.c (vect_detect_pair_op): Don't recreate the
16510 (vect_slp_reset_pattern): Remove.
16511 (complex_fma_pattern::matches): Remove call to vect_slp_reset_pattern.
16512 (complex_mul_pattern::build, complex_fma_pattern::build,
16513 complex_fms_pattern::build): Fix ref counts.
16514 * tree-vect-slp.c (vect_free_slp_tree): Undo SLP only pattern relevancy
16515 when node is being deleted.
16516 (vect_match_slp_patterns_2): Correct result of cache hit on patterns.
16517 (vect_schedule_slp): Invalidate SLP_TREE_REPRESENTATIVE of removed
16519 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize value.
16521 2021-02-24 Matthias Klose <doko@ubuntu.com>
16524 2020-12-07 Matthias Klose <doko@ubuntu.com>
16526 * genextract.c (print_header): Undefine ENABLE_RTL_CHECKING
16527 and ENABLE_RTL_FLAG_CHECKING.
16529 2021-02-24 Richard Biener <rguenther@suse.de>
16532 * builtins.c (fold_builtin_next_arg): Avoid NULL arg.
16534 2021-02-23 Peter Bergner <bergner@linux.ibm.com>
16536 * config/rs6000/mma.md (mma_assemble_pair): Rename from this...
16537 (vsx_assemble_pair): ...to this.
16538 (*mma_assemble_pair): Rename from this...
16539 (*vsx_assemble_pair): ...to this.
16540 (mma_disassemble_pair): Rename from this...
16541 (vsx_disassemble_pair): ...to this.
16542 (*mma_disassemble_pair): Rename from this...
16543 (*vsx_disassemble_pair): ...to this.
16544 * config/rs6000/rs6000-builtin.def (BU_MMA_V2, BU_MMA_V3,
16545 BU_COMPAT): New macros.
16546 (mma_assemble_pair): Rename from this...
16547 (vsx_assemble_pair): ...to this.
16548 (mma_disassemble_pair): Rename from this...
16549 (vsx_disassemble_pair): ...to this.
16550 (mma_assemble_pair): New compatibility built-in.
16551 (mma_disassemble_pair): Likewise.
16552 * config/rs6000/rs6000-call.c (struct builtin_compatibility): New.
16553 (RS6000_BUILTIN_COMPAT): Define.
16554 (bdesc_compat): New.
16555 (mma_expand_builtin): Use VSX_BUILTIN_DISASSEMBLE_PAIR_INTERNAL.
16556 (rs6000_gimple_fold_mma_builtin): Use MMA_BUILTIN_DISASSEMBLE_PAIR
16557 and VSX_BUILTIN_ASSEMBLE_PAIR.
16558 (rs6000_init_builtins): Register compatibility built-ins.
16559 (mma_init_builtins): Use VSX_BUILTIN_ASSEMBLE_PAIR,
16560 VSX_BUILTIN_ASSEMBLE_PAIR_INTERNAL, VSX_BUILTIN_DISASSEMBLE_PAIR and
16561 VSX_BUILTIN_DISASSEMBLE_PAIR_INTERNAL.
16562 * doc/extend.texi (__builtin_mma_assemble_pair): Rename from this...
16563 (__builtin_vsx_assemble_pair): ...to this.
16564 (__builtin_mma_disassemble_pair): Rename from this...
16565 (__builtin_vsx_disassemble_pair): ...to this.
16567 2021-02-23 Martin Liska <mliska@suse.cz>
16570 * ipa-icf.c (sem_variable::merge): Do not merge 2 variables
16571 with different alignment. That leads to an invalid red zone
16572 size allocated in runtime.
16574 2021-02-23 Jakub Jelinek <jakub@redhat.com>
16576 PR tree-optimization/99204
16577 * fold-const.c (fold_read_from_constant_string): Check that
16578 tree_fits_uhwi_p (index) rather than just that index is INTEGER_CST.
16580 2021-02-23 Segher Boessenkool <segher@kernel.crashing.org>
16581 Kewen Lin <linkw@gcc.gnu.org>
16583 * config/rs6000/rs6000.md (*rotl<mode>3_insert_3): Renamed to...
16584 (rotl<mode>3_insert_3): ...this.
16585 (plus_ior_xor): New code_iterator.
16586 (define_split for GPR rl*imi): New splitter.
16587 * config/rs6000/vsx.md (vsx_init_v4si): Use gen_rotldi3_insert_3
16588 for integer merging.
16590 2021-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16592 * config/aarch64/aarch64-tuning-flags.def (cse_sve_vl_constants):
16594 * config/aarch64/aarch64.md (add<mode>3): Force CONST_POLY_INT immediates
16595 into a register when the above is enabled.
16596 * config/aarch64/aarch64.c (neoversev1_tunings):
16597 AARCH64_EXTRA_TUNE_CSE_SVE_VL_CONSTANTS.
16598 (aarch64_rtx_costs): Use AARCH64_EXTRA_TUNE_CSE_SVE_VL_CONSTANTS.
16600 2021-02-22 Hans-Peter Nilsson <hp@axis.com>
16602 * config/cris/cris.c (cris_print_operand) <'T'>: Change
16603 valid operand from is now an addi mult-value to shift-value.
16604 * config/cris/cris.md (*addi): Change expression of scaled
16605 operand from mult to ashift.
16606 * config/cris/cris.md (*addi_reload): New insn_and_split.
16608 2021-02-22 John David Anglin <danglin@gcc.gnu.org>
16611 * config/pa/pa.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define as
16612 hook_bool_const_tree_hwi_hwi_const_tree_true.
16613 (pa_asm_output_mi_thunk): Add support for nonzero vcall_offset.
16615 2021-02-22 Andre Vieira <andre.simoesdiasvieira@arm.com>
16617 PR rtl-optimization/98791
16618 * ira-conflicts.c (process_regs_for_copy): Don't create allocno copies
16619 for unordered modes.
16621 2021-02-22 Martin Liska <mliska@suse.cz>
16623 * tree-inline.c (inline_forbidden_p): Set
16624 inline_forbidden_reason.
16626 2021-02-22 Richard Biener <rguenther@suse.de>
16628 * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Dump
16631 2021-02-22 Richard Biener <rguenther@suse.de>
16633 PR tree-optimization/99165
16634 * gimple-ssa-store-merging.c (pass_store_merging::process_store):
16635 Accumulate changed to ret.
16637 2021-02-21 Uros Bizjak <ubizjak@gmail.com>
16640 2020-12-09 Uroš Bizjak <ubizjak@gmail.com>
16642 * config/i386/i386.h (REG_ALLOC_ORDER): Remove
16644 2021-02-20 Ilya Leoshkevich <iii@linux.ibm.com>
16647 * config/s390/vector.md (trunctf<DFP_ALL:mode>2_vr): New
16649 (trunctf<DFP_ALL:mode>2): Likewise.
16650 (trunctdtf2_vr): Likewise.
16651 (trunctdtf2): Likewise.
16652 (extend<DFP_ALL:mode>tf2_vr): Likewise.
16653 (extend<DFP_ALL:mode>tf2): Likewise.
16654 (extendtftd2_vr): Likewise.
16655 (extendtftd2): Likewise.
16657 2021-02-20 Ilya Leoshkevich <iii@linux.ibm.com>
16659 * config/s390/vector.md (*fprx2_to_tf): Rename to fprx2_to_tf,
16660 add memory alternative.
16661 (tf_to_fprx2): New pattern.
16663 2021-02-19 Martin Sebor <msebor@redhat.com>
16666 * attribs.c (init_attr_rdwr_indices): Guard vblist use.
16667 (attr_access::free_lang_data): Remove a spurious test.
16669 2021-02-19 Nathan Sidwell <nathan@acm.org>
16671 * doc/invoke.texi (flang-info-module-read): Document.
16673 2021-02-19 Martin Liska <mliska@suse.cz>
16675 PR translation/99167
16676 * params.opt: Fix typo.
16678 2021-02-19 Richard Biener <rguenther@suse.de>
16680 PR middle-end/99122
16681 * tree-inline.c (inline_forbidden_p): Do not inline functions
16682 with VLA arguments or return value.
16684 2021-02-19 Jakub Jelinek <jakub@redhat.com>
16687 * config/arm/arm.md (*stack_protect_combined_set_insn,
16688 *stack_protect_combined_test_insn): If force_const_mem result
16689 is not valid general operand, force its address into the destination
16692 2021-02-19 Jakub Jelinek <jakub@redhat.com>
16695 * tree-cfg.c (gimple_merge_blocks): If bb a starts with eh landing
16696 pad or non-local label, put FORCED_LABELs from bb b after that label
16697 rather than before it.
16699 2021-02-19 Andre Vieira <andre.simoesdiasvieira@arm.com>
16702 * config/aarch64/aarch64-sve.md (<ASHIFT:optab><mode>3): Use
16703 expand_vector_broadcast' to emit the vec_duplicate operand.
16705 2021-02-18 Vladimir N. Makarov <vmakarov@redhat.com>
16707 PR rtl-optimization/96264
16708 * lra-remat.c (reg_overlap_for_remat_p): Check also output insn
16711 2021-02-18 H.J. Lu <hjl.tools@gmail.com>
16714 * varasm.c (get_section): Replace SUPPORTS_SHF_GNU_RETAIN with
16715 looking up the retain attribute.
16716 (resolve_unique_section): Likewise.
16717 (get_variable_section): Likewise.
16718 (switch_to_section): Likewise. Warn when a symbol without the
16719 retain attribute and a symbol with the retain attribute are
16720 placed in the section with the same name, instead of the used
16722 * doc/extend.texi: Document the "retain" attribute.
16724 2021-02-18 Nathan Sidwell <nathan@acm.org>
16727 * doc/invoke.texi (flang-info-include-translate): Document header
16730 2021-02-18 Richard Biener <rguenther@suse.de>
16732 PR middle-end/99122
16733 * ipa-fnsummary.c (analyze_function_body): Set
16734 CIF_FUNCTION_NOT_INLINABLE for VLA parameter calls.
16735 * tree-inline.c (insert_init_debug_bind): Pass NULL for
16736 error_mark_node values.
16737 (force_value_to_type): Do not build V_C_Es for WITH_SIZE_EXPR
16739 (setup_one_parameter): Delay force_value_to_type until when
16742 2021-02-18 Hans-Peter Nilsson <hp@axis.com>
16744 PR tree-optimization/99142
16745 * match.pd (clz cmp 0): Gate replacement on single_use of clz result.
16747 2021-02-18 Jakub Jelinek <jakub@redhat.com>
16749 * wide-int-bitmask.h (wide_int_bitmask::wide_int_bitmask (),
16750 wide_int_bitmask::wide_int_bitmask (uint64_t),
16751 wide_int_bitmask::wide_int_bitmask (uint64_t, uint64_t),
16752 wide_int_bitmask::operator ~ () const,
16753 wide_int_bitmask::operator | (wide_int_bitmask) const,
16754 wide_int_bitmask::operator & (wide_int_bitmask) const): Use constexpr
16756 * config/i386/i386.h (PTA_3DNOW, PTA_3DNOW_A, PTA_64BIT, PTA_ABM,
16757 PTA_AES, PTA_AVX, PTA_BMI, PTA_CX16, PTA_F16C, PTA_FMA, PTA_FMA4,
16758 PTA_FSGSBASE, PTA_LWP, PTA_LZCNT, PTA_MMX, PTA_MOVBE, PTA_NO_SAHF,
16759 PTA_PCLMUL, PTA_POPCNT, PTA_PREFETCH_SSE, PTA_RDRND, PTA_SSE, PTA_SSE2,
16760 PTA_SSE3, PTA_SSE4_1, PTA_SSE4_2, PTA_SSE4A, PTA_SSSE3, PTA_TBM,
16761 PTA_XOP, PTA_AVX2, PTA_BMI2, PTA_RTM, PTA_HLE, PTA_PRFCHW, PTA_RDSEED,
16762 PTA_ADX, PTA_FXSR, PTA_XSAVE, PTA_XSAVEOPT, PTA_AVX512F, PTA_AVX512ER,
16763 PTA_AVX512PF, PTA_AVX512CD, PTA_NO_TUNE, PTA_SHA, PTA_PREFETCHWT1,
16764 PTA_CLFLUSHOPT, PTA_XSAVEC, PTA_XSAVES, PTA_AVX512DQ, PTA_AVX512BW,
16765 PTA_AVX512VL, PTA_AVX512IFMA, PTA_AVX512VBMI, PTA_CLWB, PTA_MWAITX,
16766 PTA_CLZERO, PTA_NO_80387, PTA_PKU, PTA_AVX5124VNNIW, PTA_AVX5124FMAPS,
16767 PTA_AVX512VPOPCNTDQ, PTA_SGX, PTA_AVX512VNNI, PTA_GFNI, PTA_VAES,
16768 PTA_AVX512VBMI2, PTA_VPCLMULQDQ, PTA_AVX512BITALG, PTA_RDPID,
16769 PTA_PCONFIG, PTA_WBNOINVD, PTA_AVX512VP2INTERSECT, PTA_PTWRITE,
16770 PTA_AVX512BF16, PTA_WAITPKG, PTA_MOVDIRI, PTA_MOVDIR64B, PTA_ENQCMD,
16771 PTA_CLDEMOTE, PTA_SERIALIZE, PTA_TSXLDTRK, PTA_AMX_TILE, PTA_AMX_INT8,
16772 PTA_AMX_BF16, PTA_UINTR, PTA_HRESET, PTA_KL, PTA_WIDEKL, PTA_AVXVNNI,
16773 PTA_X86_64_BASELINE, PTA_X86_64_V2, PTA_X86_64_V3, PTA_X86_64_V4,
16774 PTA_CORE2, PTA_NEHALEM, PTA_WESTMERE, PTA_SANDYBRIDGE, PTA_IVYBRIDGE,
16775 PTA_HASWELL, PTA_BROADWELL, PTA_SKYLAKE, PTA_SKYLAKE_AVX512,
16776 PTA_CASCADELAKE, PTA_COOPERLAKE, PTA_CANNONLAKE, PTA_ICELAKE_CLIENT,
16777 PTA_ICELAKE_SERVER, PTA_TIGERLAKE, PTA_SAPPHIRERAPIDS, PTA_ALDERLAKE,
16778 PTA_KNL, PTA_BONNELL, PTA_SILVERMONT, PTA_GOLDMONT, PTA_GOLDMONT_PLUS,
16779 PTA_TREMONT, PTA_KNM): Use constexpr instead of const.
16781 2021-02-18 Jakub Jelinek <jakub@redhat.com>
16783 PR middle-end/99109
16784 * gimple-array-bounds.cc (build_zero_elt_array_type): Rename to ...
16785 (build_printable_array_type): ... this. Add nelts argument. For
16786 overaligned eltype, use TYPE_MAIN_VARIANT (eltype) instead. If
16787 nelts, call build_array_type_nelts.
16788 (array_bounds_checker::check_mem_ref): Use build_printable_array_type
16789 instead of build_zero_elt_array_type and build_array_type_nelts.
16791 2021-02-18 Jakub Jelinek <jakub@redhat.com>
16794 * config/i386/i386.c (distance_non_agu_define): Don't call
16795 extract_insn_cached here.
16796 (ix86_lea_outperforms): Save and restore recog_data around call
16797 to distance_non_agu_define and distance_agu_use.
16798 (ix86_ok_to_clobber_flags): Remove.
16799 (ix86_avoid_lea_for_add): Don't call ix86_ok_to_clobber_flags.
16800 (ix86_avoid_lea_for_addr): Likewise. Adjust function comment.
16801 * config/i386/i386.md (*lea<mode>): Change from define_insn_and_split
16802 into define_insn. Move the splitting to define_peephole2 and
16803 check there using peep2_regno_dead_p if FLAGS_REG is dead.
16805 2021-02-17 Julian Brown <julian@codesourcery.com>
16807 * gimplify.c (gimplify_scan_omp_clauses): Handle ATTACH_DETACH
16810 2021-02-17 Xi Ruoyao <xry111@mengyan1223.wang>
16813 * config/mips/mips.c (mips_symbol_insns): Do not use
16814 MSA_SUPPORTED_MODE_P if mode is MAX_MACHINE_MODE.
16816 2021-02-16 Vladimir N. Makarov <vmakarov@redhat.com>
16818 PR inline-asm/98096
16819 * stmt.c (resolve_operand_name_1): Take inout operands into account
16820 for access to labels by names.
16821 * doc/extend.texi: Describe counting operands for accessing labels.
16823 2021-02-16 Richard Biener <rguenther@suse.de>
16825 PR tree-optimization/38474
16826 * tree-ssa-structalias.c (variable_info::address_taken): New.
16827 (new_var_info): Initialize address_taken.
16828 (process_constraint): Set address_taken.
16829 (solve_constraints): Use the new address_taken flag rather
16830 than is_reg_var for sorting variables.
16831 (dump_constraint): Dump the variable number if the name
16834 2021-02-16 Jakub Jelinek <jakub@redhat.com>
16837 * tree-vect-stmts.c (vectorizable_simd_clone_call): For num_calls != 1
16838 multiply by 4096 and for inbranch by 8192.
16839 * config/i386/i386.c (ix86_simd_clone_usable): For TARGET_AVX512F,
16840 return 3, 2 or 1 for mangle letters 'b', 'c' or 'd'.
16842 2021-02-15 Maya Rashish <coypu@sdf.org>
16844 * config/aarch64/aarch64.c (aarch64_init_builtins):
16845 Call SUBTARGET_INIT_BUILTINS.
16847 2021-02-15 Peter Bergner <bergner@linux.ibm.com>
16849 PR rtl-optimization/98872
16850 * init-regs.c (initialize_uninitialized_regs): Skip initialization
16851 if CONST0_RTX is NULL.
16853 2021-02-15 Richard Sandiford <richard.sandiford@arm.com>
16855 PR rtl-optimization/98863
16856 * rtl-ssa/functions.h (function_info::bb_live_out_info): Delete.
16857 (function_info::build_info): Turn into a declaration, moving the
16858 definition to internals.h.
16859 (function_info::bb_walker): Declare.
16860 (function_info::create_reg_use): Likewise.
16861 (function_info::calculate_potential_phi_regs): Take a build_info
16863 (function_info::place_phis, function_info::create_ebbs): Declare.
16864 (function_info::calculate_ebb_live_in_for_debug): Likewise.
16865 (function_info::populate_backedge_phis): Delete.
16866 (function_info::start_block, function_info::end_block): Declare.
16867 (function_info::populate_phi_inputs): Delete.
16868 (function_info::m_potential_phi_regs): Move information to build_info.
16869 * rtl-ssa/internals.h: New file.
16870 (function_info::bb_phi_info): New class.
16871 (function_info::build_info): Moved from functions.h.
16872 Add a constructor and destructor.
16873 (function_info::build_info::ebb_use): Delete.
16874 (function_info::build_info::ebb_def): Likewise.
16875 (function_info::build_info::bb_live_out): Likewise.
16876 (function_info::build_info::tmp_ebb_live_in_for_debug): New variable.
16877 (function_info::build_info::potential_phi_regs): Likewise.
16878 (function_info::build_info::potential_phi_regs_for_debug): Likewise.
16879 (function_info::build_info::ebb_def_regs): Likewise.
16880 (function_info::build_info::bb_phis): Likewise.
16881 (function_info::build_info::bb_mem_live_out): Likewise.
16882 (function_info::build_info::bb_to_rpo): Likewise.
16883 (function_info::build_info::def_stack): Likewise.
16884 (function_info::build_info::old_def_stack_limit): Likewise.
16885 * rtl-ssa/internals.inl (function_info::build_info::record_reg_def):
16886 Remove the regno argument. Push the previous definition onto the
16887 definition stack where necessary.
16888 * rtl-ssa/accesses.cc: Include internals.h.
16889 * rtl-ssa/changes.cc: Likewise.
16890 * rtl-ssa/blocks.cc: Likewise.
16891 (function_info::build_info::build_info): Define.
16892 (function_info::build_info::~build_info): Likewise.
16893 (function_info::bb_walker): New class.
16894 (function_info::bb_walker::bb_walker): Define.
16895 (function_info::add_live_out_use): Convert a logarithmic-complexity
16896 test into a linear one. Allow the same definition to be passed
16898 (function_info::calculate_potential_phi_regs): Moved from
16899 functions.cc. Take a build_info parameter and store the
16900 information there instead.
16901 (function_info::place_phis): New function.
16902 (function_info::add_entry_block_defs): Update call to record_reg_def.
16903 (function_info::calculate_ebb_live_in_for_debug): New function.
16904 (function_info::add_phi_nodes): Use bb_phis to decide which
16905 registers need phi nodes and initialize ebb_def_regs accordingly.
16906 Do not add degenerate phis here.
16907 (function_info::add_artificial_accesses): Use create_reg_use.
16908 Assert that all definitions are listed in the DF LR sets.
16909 Update call to record_reg_def.
16910 (function_info::record_block_live_out): Record live-out register
16911 values in the phis of successor blocks. Use the live-out set
16912 when processing the last block in an EBB, instead of always
16913 using the live-in sets of successor blocks. AND the live sets
16914 with the set of registers that have been defined in the EBB,
16915 rather than with all potential phi registers. Cope correctly
16916 with branches back to the start of the current EBB.
16917 (function_info::start_block): New function.
16918 (function_info::end_block): Likewise.
16919 (function_info::populate_phi_inputs): Likewise.
16920 (function_info::create_ebbs): Likewise.
16921 (function_info::process_all_blocks): Rewrite into a multi-phase
16923 * rtl-ssa/functions.cc: Include internals.h.
16924 (function_info::calculate_potential_phi_regs): Move to blocks.cc.
16925 (function_info::init_function_data): Remove caller.
16926 * rtl-ssa/insns.cc: Include internals.h
16927 (function_info::create_reg_use): New function. Lazily any
16928 degenerate phis needed by the linear RPO view.
16929 (function_info::record_use): Use create_reg_use. When processing
16930 debug uses, use potential_phi_regs and test it before checking
16931 whether the register is live on entry to the current EBB. Lazily
16932 calculate ebb_live_in_for_debug.
16933 (function_info::record_call_clobbers): Update call to record_reg_def.
16934 (function_info::record_def): Likewise.
16936 2021-02-15 Martin Liska <mliska@suse.cz>
16938 * toplev.c (init_asm_output): Free output of
16939 gen_command_line_string function.
16940 (process_options): Likewise.
16942 2021-02-15 Martin Liska <mliska@suse.cz>
16944 * params.opt: Add 2 missing Param keywords.
16946 2021-02-15 Eric Botcazou <ebotcazou@adacore.com>
16948 * df-core.c (df_worklist_dataflow_doublequeue): Use proper cast.
16950 2021-02-15 Jakub Jelinek <jakub@redhat.com>
16952 PR tree-optimization/99079
16953 * match.pd (A % (pow2pcst << N) -> A & ((pow2pcst << N) - 1)): Remove
16954 useless tree_nop_conversion_p (type, TREE_TYPE (@3)) check. Instead
16955 require both type and TREE_TYPE (@1) to be integral types and either
16956 type having smaller or equal precision, or TREE_TYPE (@1) being
16957 unsigned type, or type being signed type. If TREE_TYPE (@1)
16958 doesn't have wrapping overflow, perform the subtraction of one in
16961 2021-02-14 Jan Hubicka <hubicka@ucw.cz>
16962 Richard Biener <rguether@suse.de>
16965 * ipa-reference.c (ipa_init): Only conditinally initialize
16966 reference_vars_to_consider.
16967 (propagate): Conditionally deninitialize reference_vars_to_consider.
16968 (ipa_reference_write_optimization_summary): Sanity check that
16969 reference_vars_to_consider is not allocated.
16971 2021-02-13 Levy Hsu <admin@levyhsu.com>
16974 * config/riscv/riscv-shorten-memrefs.c (pass_shorten_memrefs): Add
16975 extend parameter to get_si_mem_base_reg declaration.
16976 (get_si_mem_base_reg): Add extend parameter. Set it.
16977 (analyze): Pass extend arg to get_si_mem_base_reg.
16978 (transform): Likewise. Use it when rewriting mems.
16979 * config/riscv/riscv.c (riscv_legitimize_move): Check for subword
16980 loads and emit sign/zero extending load followed by subreg move.
16982 2021-02-13 Jim Wilson <jimw@sifive.com>
16985 * config/riscv/riscv.c (riscv_compressed_lw_address_p): Drop early
16986 exit when !reload_completed. Only perform check for compressed reg
16987 if reload_completed.
16988 (riscv_rtx_costs): In MEM case, when optimizing for size and
16989 shorten memrefs, if not compressible, then increase cost.
16991 2021-02-13 Jakub Jelinek <jakub@redhat.com>
16993 PR rtl-optimization/98439
16994 * recog.c (pass_split_before_regstack::gate): Enable even when
16995 pass_split_before_sched2 is enabled if -fselective-scheduling2 is
16998 2021-02-13 Jakub Jelinek <jakub@redhat.com>
17001 * config/i386/mmx.md (*mmx_pshufd_1): Add a combine splitter for
17002 swap of V2SImode elements in memory into DImode memory rotate by 32.
17004 2021-02-12 Martin Sebor <msebor@redhat.com>
17006 * tree-pretty-print.c (print_generic_expr_to_str): Update comment.
17008 2021-02-12 Richard Sandiford <richard.sandiford@arm.com>
17010 * rtl-ssa/accesses.cc (function_info::make_use_available): Use
17011 m_temp_obstack rather than m_obstack to allocate the temporary use.
17013 2021-02-12 Richard Sandiford <richard.sandiford@arm.com>
17015 * df-problems.c (df_lr_bb_local_compute): Treat partial definitions
17016 as read-modify operations.
17018 2021-02-12 Richard Biener <rguenther@suse.de>
17020 PR middle-end/38474
17021 * ipa-fnsummary.c (unmodified_parm_1): Only walk when
17022 fbi->aa_walk_budget is bigger than zero. Update
17023 fbi->aa_walk_budget.
17024 (param_change_prob): Likewise.
17025 * ipa-prop.c (detect_type_change_from_memory_writes):
17026 Properly account walk_aliased_vdefs.
17027 (parm_preserved_before_stmt_p): Canonicalize updates.
17028 (parm_ref_data_preserved_p): Likewise.
17029 (parm_ref_data_pass_through_p): Likewise.
17030 (determine_known_aggregate_parts): Account own alias queries.
17032 2021-02-12 Martin Liska <mliska@suse.cz>
17034 * opts-common.c (decode_cmdline_option): Release werror_arg.
17035 * opts.c (gen_producer_string): Release output of
17036 gen_command_line_string.
17038 2021-02-12 Richard Biener <rguenther@suse.de>
17040 PR tree-optimization/38474
17041 * params.opt (-param=max-store-chains-to-track=): New param.
17042 (-param=max-stores-to-track=): Likewise.
17043 * doc/invoke.texi (max-store-chains-to-track): Document.
17044 (max-stores-to-track): Likewise.
17045 * gimple-ssa-store-merging.c (pass_store_merging::m_n_chains):
17047 (pass_store_merging::m_n_stores): Likewise.
17048 (pass_store_merging::terminate_and_process_chain): Update
17049 m_n_stores and m_n_chains.
17050 (pass_store_merging::process_store): Likewise. Terminate
17051 oldest chains if the number of stores or chains get too large.
17052 (imm_store_chain_info::terminate_and_process_chain): Dump
17055 2021-02-11 Eric Botcazou <ebotcazou@adacore.com>
17057 * config/i386/winnt.c (i386_pe_seh_unwind_emit): When switching to
17058 the cold section, emit a nop before the directive if the previous
17059 active instruction can throw.
17061 2021-02-11 Peter Bergner <bergner@linux.ibm.com>
17064 * config/rs6000/predicates.md (mma_assemble_input_operand): Restrict
17065 memory addresses that are legal for quad word accesses.
17067 2021-02-11 Andrea Corallo <andrea.corallo@arm.com>
17070 * config/arm/thumb2.md (*doloop_end_internal): Generate
17071 alternative sequence to handle long range branches.
17073 2021-02-11 Joel Hutton <joel.hutton@arm.com>
17075 PR tree-optimization/98772
17076 * optabs-tree.c (supportable_half_widening_operation): New function
17077 to check for supportable V8QI->V8HI widening patterns.
17078 * optabs-tree.h (supportable_half_widening_operation): New function.
17079 * tree-vect-stmts.c (vect_create_half_widening_stmts): New function
17080 to create promotion stmts for V8QI->V8HI widening patterns.
17081 (vectorizable_conversion): Add case for V8QI->V8HI.
17083 2021-02-11 Richard Biener <rguenther@suse.de>
17085 * sparseset.h (SPARSESET_ELT_BITS): Remove.
17086 (SPARSESET_ELT_TYPE): Use unsigned int.
17087 * fwprop.c: Do not include sparseset.h.
17089 2021-02-10 Jakub Jelinek <jakub@redhat.com>
17092 * varasm.c (declare_weak): For -fsyntax-only, allow even
17093 TREE_ASM_WRITTEN function decls.
17095 2021-02-10 Jakub Jelinek <jakub@redhat.com>
17098 * config/i386/sse.md (fix<fixunssuffix>_truncv2sfv2di2,
17099 <insn>v8qiv8hi2, <insn>v8qiv8si2, <insn>v4qiv4si2, <insn>v4hiv4si2,
17100 <insn>v8qiv8di2, <insn>v4qiv4di2, <insn>v2qiv2di2, <insn>v4hiv4di2,
17101 <insn>v2hiv2di2, <insn>v2siv2di2): Force operands[1] into REG before
17102 calling simplify_gen_subreg on it.
17104 2021-02-10 Martin Liska <mliska@suse.cz>
17106 * config/nvptx/nvptx.c (nvptx_option_override): Use
17107 flag_patchable_function_entry instead of the removed
17108 function_entry_patch_area_size.
17110 2021-02-10 Martin Liska <mliska@suse.cz>
17112 PR tree-optimization/99002
17113 PR tree-optimization/99026
17114 * gimple-if-to-switch.cc (if_chain::is_beneficial): Fix memory
17115 leak when adjacent cases are merged.
17116 * tree-switch-conversion.c (switch_decision_tree::analyze_switch_statement): Use
17118 (make_pass_lower_switch): Remove trailing whitespace.
17119 * tree-switch-conversion.h (release_clusters): New.
17121 2021-02-10 Richard Biener <rguenther@suse.de>
17123 PR rtl-optimization/99054
17124 * cfgrtl.c (rtl-optimization/99054): Return an auto_vec.
17125 (fixup_partitions): Adjust.
17126 (rtl_verify_edges): Likewise.
17128 2021-02-10 Jakub Jelinek <jakub@redhat.com>
17130 PR middle-end/99007
17131 * gimplify.c (gimplify_scan_omp_clauses): For MEM_REF on reductions,
17132 temporarily disable gimplify_ctxp->into_ssa around gimplify_expr
17135 2021-02-10 Richard Biener <rguenther@suse.de>
17138 * ipa-pure-const.c (propagate_malloc): Use an auto_vec<>
17141 2021-02-10 Richard Biener <rguenther@suse.de>
17143 PR tree-optimization/99024
17144 * tree-vect-loop.c (_loop_vec_info::~_loop_vec_info): Only
17145 clear loop->aux if it is associated with the destroyed loop_vinfo.
17147 2021-02-10 Martin Liska <mliska@suse.cz>
17149 PR tree-optimization/99002
17150 * gimple-if-to-switch.cc (find_conditions): Fix memory leak
17153 2021-02-10 Martin Liska <mliska@suse.cz>
17156 * ipa-icf.c (sem_item::add_reference): Fix memory leak when
17157 a reference exists.
17159 2021-02-10 Jakub Jelinek <jakub@redhat.com>
17162 * dwarf2out.c (prune_unused_types_walk): Mark DW_TAG_variable DIEs
17163 at class scope for DWARF5+.
17165 2021-02-09 Eric Botcazou <ebotcazou@adacore.com>
17167 PR rtl-optimization/96015
17168 * reorg.c (skip_consecutive_labels): Minor comment tweaks.
17169 (relax_delay_slots): When deleting a jump to the next active
17170 instruction over a barrier, first delete the barrier if the
17171 jump is the only way to reach the target label.
17173 2021-02-09 Andre Vieira <andre.simoesdiasvieira@arm.com>
17175 * config/aarch64/aarch64-cost-tables.h: Add entries for vect.mul.
17176 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Use vect.mul for
17177 vector multiplies and vect.alu for SSRA.
17178 * config/arm/aarch-common-protos.h (struct vector_cost_table): Define
17179 vect.mul cost field.
17180 * config/arm/aarch-cost-tables.h: Add entries for vect.mul.
17181 * config/arm/arm.c: Likewise.
17183 2021-02-09 Richard Biener <rguenther@suse.de>
17185 PR tree-optimization/98863
17186 * tree-ssa-sccvn.h (vn_avail::next_undo): Add.
17187 * tree-ssa-sccvn.c (last_pushed_avail): New global.
17188 (rpo_elim::eliminate_push_avail): Chain pushed avails.
17189 (unwind_state::avail_top): Add.
17190 (do_unwind): Rewrite unwinding of avail entries.
17191 (do_rpo_vn): Initialize last_pushed_avail and
17192 avail_top of the undo state.
17194 2021-02-09 Jakub Jelinek <jakub@redhat.com>
17196 PR middle-end/99004
17197 * calls.c (maybe_warn_rdwr_sizes): Change s0 and s1 type from
17198 const char * to char * and free those pointers after use.
17200 2021-02-09 Richard Biener <rguenther@suse.de>
17202 PR tree-optimization/99017
17203 * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Allow
17204 zero vector cost entries.
17206 2021-02-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
17208 PR middle-end/98974
17209 * tree-vect-stmts.c (vectorizable_condition): Remove shadow vec_num
17210 parameter in vectorizable_condition.
17212 2021-02-08 Richard Biener <rguenther@suse.de>
17215 * tree.c (walk_tree_1): Walk VECTOR_CST elements.
17217 2021-02-08 Martin Liska <mliska@suse.cz>
17220 * cfgexpand.c (pass_expand::execute): Parse per-function option
17221 flag_patchable_function_entry and use it.
17222 * common.opt: Remove function_entry_patch_area_size and
17223 function_entry_patch_area_start global variables.
17224 * opts.c (parse_and_check_patch_area): New function.
17225 (common_handle_option): Use it.
17226 * opts.h (parse_and_check_patch_area): New function.
17227 * toplev.c (process_options): Parse and use
17228 function_entry_patch_area_size.
17230 2021-02-08 Martin Sebor <msebor@redhat.com>
17232 * doc/extend.texi (attribute malloc): Correct typos.
17234 2021-02-05 Nathan Sidwell <nathan@acm.org>
17237 * gcc.c (driver::maybe_run_linker): Check for input file
17238 accessibility if not linking.
17240 2021-02-05 Richard Biener <rguenther@suse.de>
17242 PR tree-optimization/98855
17243 * tree-vectorizer.h (add_stmt_cost): New overload.
17244 * tree-vect-slp.c (li_cost_vec_cmp): New.
17245 (vect_bb_slp_scalar_cost): Cost individual loop regions
17246 separately. Account for the scalar instance root stmt.
17248 2021-02-05 Tom de Vries <tdevries@suse.de>
17251 * tree-switch-conversion.c (jump_table_cluster::emit): Add loc
17253 (bit_test_cluster::emit): Reuse location_t for newly created
17255 (switch_decision_tree::try_switch_expansion): Preserve
17257 * tree-switch-conversion.h: Change function signatures.
17259 2021-02-05 Jakub Jelinek <jakub@redhat.com>
17262 * config/i386/i386-options.c (m_NONE, m_ALL): Define.
17263 * config/i386/x86-tune.def (X86_TUNE_BRANCH_PREDICTION_HINTS,
17264 X86_TUNE_PROMOTE_QI_REGS): Use m_NONE instead of 0U.
17265 (X86_TUNE_QIMODE_MATH): Use m_ALL instead of ~0U.
17267 2021-02-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17269 * config/aarch64/aarch64-simd-builtins.def (get_high): Define builtin.
17270 * config/aarch64/aarch64-simd.md (aarch64_get_high<mode>): Define.
17271 * config/aarch64/arm_neon.h (__GET_HIGH): Delete.
17272 (vget_high_f16): Reimplement using new builtin.
17273 (vget_high_f32): Likewise.
17274 (vget_high_f64): Likewise.
17275 (vget_high_p8): Likewise.
17276 (vget_high_p16): Likewise.
17277 (vget_high_p64): Likewise.
17278 (vget_high_s8): Likewise.
17279 (vget_high_s16): Likewise.
17280 (vget_high_s32): Likewise.
17281 (vget_high_s64): Likewise.
17282 (vget_high_u8): Likewise.
17283 (vget_high_u16): Likewise.
17284 (vget_high_u32): Likewise.
17285 (vget_high_u64): Likewise.
17287 2021-02-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17289 * config/aarch64/aarch64-simd-builtins.def (get_low): Define builtin.
17290 * config/aarch64/aarch64-simd.md (aarch64_get_low<mode>): Define.
17291 * config/aarch64/arm_neon.h (__GET_LOW): Delete.
17292 (vget_low_f16): Reimplement using new builtin.
17293 (vget_low_f32): Likewise.
17294 (vget_low_f64): Likewise.
17295 (vget_low_p8): Likewise.
17296 (vget_low_p16): Likewise.
17297 (vget_low_p64): Likewise.
17298 (vget_low_s8): Likewise.
17299 (vget_low_s16): Likewise.
17300 (vget_low_s32): Likewise.
17301 (vget_low_s64): Likewise.
17302 (vget_low_u8): Likewise.
17303 (vget_low_u16): Likewise.
17304 (vget_low_u32): Likewise.
17305 (vget_low_u64): Likewise.
17307 2021-02-05 Kito Cheng <kito.cheng@sifive.com>
17309 * gcc.c (print_multilib_info): Check all required argument is provided
17312 2021-02-05 liuhongt <hongtao.liu@intel.com>
17315 * config/i386/i386-expand.c (ix86_expand_sse_cmp): Don't
17316 generate integer mask comparison for 128/256-bits vector when
17317 op_true/op_false is NULL_RTX or CONSTM1_RTX/CONST0_RTX. Also
17318 delete redundant !maskcmp condition.
17319 (ix86_expand_int_vec_cmp): Ditto but no redundant deletion
17321 (ix86_expand_sse_movcc): Delete definition of maskcmp, add the
17322 condition directly to if (maskcmp), add extra check for
17323 cmpmode, it should be MODE_INT.
17324 (ix86_expand_fp_vec_cmp): Pass NULL to ix86_expand_sse_cmp's
17325 parameters op_true/op_false.
17326 (ix86_use_mask_cmp_p): New.
17328 2021-02-05 liuhongt <hongtao.liu@intel.com>
17331 * config/i386/x86-tune.def (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL):
17332 Remove m_GENERIC from ~list.
17333 (X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): Ditto.
17335 2021-02-04 David Malcolm <dmalcolm@redhat.com>
17338 * diagnostic-show-locus.c (compatible_locations_p): Require
17339 locations in the same macro map to be either both from the
17340 macro definition, or both from the macro arguments.
17342 2021-02-04 Jonathan Wright <jonathan.wright@arm.com>
17344 * config/aarch64/aarch64-simd-builtins.def: Add
17345 [su]mull_hi_lane[q] builtin generator macros.
17346 * config/aarch64/aarch64-simd.md
17347 (aarch64_<su>mull_hi_lane<mode>_insn): Define.
17348 (aarch64_<su>mull_hi_lane<mode>): Define.
17349 (aarch64_<su>mull_hi_laneq<mode>_insn): Define.
17350 (aarch64_<su>mull_hi_laneq<mode>): Define.
17351 * config/aarch64/arm_neon.h (vmull_high_lane_s16): Use RTL
17352 builtin instead of inline asm.
17353 (vmull_high_lane_s32): Likewise.
17354 (vmull_high_lane_u16): Likewise.
17355 (vmull_high_lane_u32): Likewise.
17356 (vmull_high_laneq_s16): Likewise.
17357 (vmull_high_laneq_s32): Likewise.
17358 (vmull_high_laneq_u16): Likewise.
17359 (vmull_high_laneq_u32): Liekwise.
17361 2021-02-04 Jonathan Wright <jonathan.wright@arm.com>
17363 * config/aarch64/aarch64-simd-builtins.def: Add [su]mull_hi_n
17364 builtin generator macros.
17365 * config/aarch64/aarch64-simd.md
17366 (aarch64_<su>mull_hi_n<mode>_insn): Define.
17367 (aarch64_<su>mull_hi_n<mode>): Define.
17368 * config/aarch64/arm_neon.h (vmull_high_n_s16): Use RTL builtin
17369 instead of inline asm.
17370 (vmull_high_n_s32): Likewise.
17371 (vmull_high_n_u16): Likewise.
17372 (vmull_high_n_u32): Likewise.
17374 2021-02-04 Richard Biener <rguenther@suse.de>
17376 PR tree-optimization/98855
17377 * tree-vect-loop.c (vectorizable_phi): Do not cost
17378 single-argument PHIs.
17379 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Likewise.
17380 * tree-vect-stmts.c (vectorizable_bswap): Also perform
17381 costing for SLP operation.
17383 2021-02-04 Martin Liska <mliska@suse.cz>
17385 * doc/extend.texi: Mention -mprefer-vector-width in target
17388 2021-02-03 Martin Sebor <msebor@redhat.com>
17390 PR tree-optimization/98937
17391 * tree-ssa-strlen.c (strlen_dom_walker::~strlen_dom_walker): Define.
17392 Flush pointer_query cache.
17394 2021-02-03 Aaron Sawdey <acsawdey@linux.ibm.com>
17396 * config/rs6000/genfusion.pl (gen_2logical): Add missing
17397 fixes based on patch review.
17398 * config/rs6000/fusion.md: Regenerate file.
17400 2021-02-03 Aaron Sawdey <acsawdey@linux.ibm.com>
17402 * config/rs6000/t-rs6000: Comment out auto generation of
17405 2021-02-03 Andrew Stubbs <ams@codesourcery.com>
17407 * config/gcn/gcn-opts.h (enum processor_type): Add PROCESSOR_GFX908.
17408 * config/gcn/gcn.c (gcn_omp_device_kind_arch_isa): Add gfx908.
17409 (output_file_start): Add gfx908.
17410 * config/gcn/gcn.opt (gpu_type): Add gfx908.
17411 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add march=gfx908.
17412 (MULTILIB_DIRNAMES): Add gfx908.
17413 * config/gcn/mkoffload.c (EF_AMDGPU_MACH_AMDGCN_GFX908): New define.
17414 (main): Recognize gfx908.
17415 * config/gcn/t-omp-device: Add gfx908.
17417 2021-02-03 Jonathan Wright <jonathan.wright@arm.com>
17419 * config/aarch64/aarch64-simd-builtins.def: Add
17420 [su]mlsl_hi_lane[q] builtin macro generators.
17421 * config/aarch64/aarch64-simd.md
17422 (aarch64_<su>mlsl_hi_lane<mode>_insn): Define.
17423 (aarch64_<su>mlsl_hi_lane<mode>): Define.
17424 (aarch64_<su>mlsl_hi_laneq<mode>_insn): Define.
17425 (aarch64_<su>mlsl_hi_laneq<mode>): Define.
17426 * config/aarch64/arm_neon.h (vmlsl_high_lane_s16): Use RTL
17427 builtin instead of inline asm.
17428 (vmlsl_high_lane_s32): Likewise.
17429 (vmlsl_high_lane_u16): Likewise.
17430 (vmlsl_high_lane_u32): Likewise.
17431 (vmlsl_high_laneq_s16): Likewise.
17432 (vmlsl_high_laneq_s32): Likewise.
17433 (vmlsl_high_laneq_u16): Likewise.
17434 (vmlsl_high_laneq_u32): Likewise.
17435 (vmlal_high_laneq_u32): Likewise.
17437 2021-02-03 Jonathan Wright <jonathan.wright@arm.com>
17439 * config/aarch64/aarch64-simd-builtins.def: Add
17440 [su]mlal_hi_lane[q] builtin generator macros.
17441 * config/aarch64/aarch64-simd.md
17442 (aarch64_<su>mlal_hi_lane<mode>_insn): Define.
17443 (aarch64_<su>mlal_hi_lane<mode>): Define.
17444 (aarch64_<su>mlal_hi_laneq<mode>_insn): Define.
17445 (aarch64_<su>mlal_hi_laneq<mode>): Define.
17446 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Use RTL
17447 builtin instead of inline asm.
17448 (vmlal_high_lane_s32): Likewise.
17449 (vmlal_high_lane_u16): Likewise.
17450 (vmlal_high_lane_u32): Likewise.
17451 (vmlal_high_laneq_s16): Likewise.
17452 (vmlal_high_laneq_s32): Likewise.
17453 (vmlal_high_laneq_u16): Likewise.
17454 (vmlal_high_laneq_u32): Likewise.
17456 2021-02-03 Jonathan Wright <jonathan.wright@arm.com>
17458 * config/aarch64/aarch64-simd-builtins.def: Add [su]mlsl_hi_n
17459 builtin generator macros.
17460 * config/aarch64/aarch64-simd.md (aarch64_<su>mlsl_hi_n<mode>_insn):
17462 (aarch64_<su>mlsl_hi_n<mode>): Define.
17463 * config/aarch64/arm_neon.h (vmlsl_high_n_s16): Use RTL builtin
17464 instead of inline asm.
17465 (vmlsl_high_n_s32): Likewise.
17466 (vmlsl_high_n_u16): Likewise.
17467 (vmlsl_high_n_u32): Likewise.
17469 2021-02-03 Jonathan Wright <jonathan.wright@arm.com>
17471 * config/aarch64/aarch64-simd-builtins.def: Add [su]mlal_hi_n
17472 builtin generator macros.
17473 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_hi_n<mode>_insn):
17475 (aarch64_<su>mlal_hi_n<mode>): Define.
17476 * config/aarch64/arm_neon.h (vmlal_high_n_s16): Use RTL builtin
17477 instead of inline asm.
17478 (vmlal_high_n_s32): Likewise.
17479 (vmlal_high_n_u16): Likewise.
17480 (vmlal_high_n_u32): Likewise.
17482 2021-02-03 Jonathan Wright <jonathan.wright@arm.com>
17484 * config/aarch64/aarch64-simd-builtins.def: Add RTL builtin
17486 * config/aarch64/aarch64-simd.md (*aarch64_<su>mlal_hi<mode>):
17488 (aarch64_<su>mlal_hi<mode>_insn): This.
17489 (aarch64_<su>mlal_hi<mode>): Define.
17490 * config/aarch64/arm_neon.h (vmlal_high_s8): Use RTL builtin
17491 instead of inline asm.
17492 (vmlal_high_s16): Likewise.
17493 (vmlal_high_s32): Likewise.
17494 (vmlal_high_u8): Likewise.
17495 (vmlal_high_u16): Likewise.
17496 (vmlal_high_u32): Likewise.
17498 2021-02-03 Ilya Leoshkevich <iii@linux.ibm.com>
17500 * lra-spills.c (remove_pseudos): Call lra_update_insn_recog_data()
17501 after calling alter_subreg() on a (mem).
17503 2021-02-03 Martin Liska <mliska@suse.cz>
17506 * lto-streamer-out.c (produce_lto_section): Fill up missing
17508 * lto-streamer.h (struct lto_section): Add _padding field.
17510 2021-02-03 Richard Biener <rguenther@suse.de>
17512 * lto-streamer.c (lto_get_section_name): Free temporary
17514 * tree-loop-distribution.c
17515 (loop_distribution::merge_dep_scc_partitions): Free edge data.
17517 2021-02-03 Jakub Jelinek <jakub@redhat.com>
17519 PR middle-end/97487
17520 * ifcvt.c (noce_can_force_operand): New function.
17521 (noce_emit_move_insn): Use it.
17522 (noce_try_sign_mask): Likewise. Formatting fix.
17524 2021-02-03 Jakub Jelinek <jakub@redhat.com>
17526 PR middle-end/97971
17527 * lra-constraints.c (process_alt_operands): For inline asm, don't call
17528 fatal_insn, but instead return false.
17530 2021-02-03 Jakub Jelinek <jakub@redhat.com>
17532 PR tree-optimization/98287
17533 * config/i386/mmx.md (<insn><mode>3): For shifts don't enable expander
17536 2021-02-03 Tamar Christina <tamar.christina@arm.com>
17538 PR tree-optimization/98928
17539 * tree-vect-loop.c (vect_analyze_loop_2): Change
17540 STMT_VINFO_SLP_VECT_ONLY to STMT_VINFO_SLP_VECT_ONLY_PATTERN.
17541 * tree-vect-slp-patterns.c (complex_pattern::build): Likewise.
17542 * tree-vectorizer.h (STMT_VINFO_SLP_VECT_ONLY_PATTERN): New.
17543 (class _stmt_vec_info): Add slp_vect_pattern_only_p.
17545 2021-02-02 Richard Biener <rguenther@suse.de>
17547 * gimple-loop-interchange.cc (prepare_data_references):
17549 * gimple-loop-jam.c (tree_loop_unroll_and_jam): Likewise.
17550 * tree-ssa-loop-im.c (hoist_memory_references): Likewise.
17551 * tree-vect-stmts.c (vectorizable_condition): Do not
17553 (vectorizable_comparison): Likewise.
17555 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17557 * config/aarch64/aarch64-simd-builtins.def (ursqrte): Define builtin.
17558 * config/aarch64/aarch64-simd.md (aarch64_ursqrte<mode>): New pattern.
17559 * config/aarch64/arm_neon.h (vrsqrte_u32): Reimplement using builtin.
17560 (vrsqrteq_u32): Likewise.
17562 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17564 * config/aarch64/aarch64-simd-builtins.def (sqxtun2): Define builtin.
17565 * config/aarch64/aarch64-simd.md (aarch64_sqxtun2<mode>_le): Define.
17566 (aarch64_sqxtun2<mode>_be): Likewise.
17567 (aarch64_sqxtun2<mode>): Likewise.
17568 * config/aarch64/arm_neon.h (vqmovun_high_s16): Reimplement using builtin.
17569 (vqmovun_high_s32): Likewise.
17570 (vqmovun_high_s64): Likewise.
17571 * config/aarch64/iterators.md (UNSPEC_SQXTUN2): Define.
17573 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17575 * config/aarch64/aarch64-simd-builtins.def (bfdot_lane, bfdot_laneq): Use
17577 (bfmlalb_lane, bfmlalt_lane, bfmlalb_lane_q, bfmlalt_lane_q): Use FP flags.
17579 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17581 * config/aarch64/aarch64-simd-builtins.def (fcmla_lane0, fcmla_lane90,
17582 fcmla_lane180, fcmla_lane270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
17583 fcmlaq_lane270, scvtf, ucvtf, fcvtzs, fcvtzu, scvtfsi, scvtfdi, ucvtfsi,
17584 ucvtfdi, fcvtzshf, fcvtzuhf, fmlal_lane_low, fmlsl_lane_low,
17585 fmlal_laneq_low, fmlsl_laneq_low, fmlalq_lane_low, fmlslq_lane_low,
17586 fmlalq_laneq_low, fmlslq_laneq_low, fmlal_lane_high, fmlsl_lane_high,
17587 fmlal_laneq_high, fmlsl_laneq_high, fmlalq_lane_high, fmlslq_lane_high,
17588 fmlalq_laneq_high, fmlslq_laneq_high): Use FP flags.
17590 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17592 * config/aarch64/aarch64-builtins.c (FLAG_LOAD): Define.
17593 * config/aarch64/aarch64-simd-builtins.def (ld1x2, ld2, ld3, ld4, ld2r,
17594 ld3r, ld4r, ld1, ld1x3, ld1x4): Use LOAD flags.
17596 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17598 * config/aarch64/aarch64-simd-builtins.def (combine, zip1, zip2,
17599 uzp1, uzp2, trn1, trn2, simd_bsl): Use AUTO_FP flags.
17601 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17603 * config/aarch64/aarch64-simd-builtins.def (clrsb, clz, ctz, popcount,
17604 vec_smult_lane_, vec_smlal_lane_, vec_smult_laneq_, vec_smlal_laneq_,
17605 vec_umult_lane_, vec_umlal_lane_, vec_umult_laneq_, vec_umlal_laneq_,
17606 ashl, sshl, ushl, srshl, urshl, sdot_lane, udot_lane, sdot_laneq,
17607 udot_laneq, usdot_lane, usdot_laneq, sudot_lane, sudot_laneq, ashr,
17608 ashr_simd, lshr, lshr_simd, srshr_n, urshr_n, ssra_n, usra_n, srsra_n,
17609 ursra_n, sshll_n, ushll_n, sshll2_n, ushll2_n, ssri_n, usri_n, ssli_n,
17610 ssli_n, usli_n, bswap, rbit, simd_bsl, eor3q, rax1q, xarq, bcaxq): Use
17611 NONE builtin flags.
17613 2021-02-02 Jakub Jelinek <jakub@redhat.com>
17615 PR tree-optimization/98848
17616 * tree-vect-patterns.c (vect_recog_over_widening_pattern): Punt if
17617 STMT_VINFO_DEF_TYPE (last_stmt_info) is vect_reduction_def.
17619 2021-02-02 Kito Cheng <kito.cheng@sifive.com>
17622 * expr.c: Check mode before calling store_expr.
17624 2021-02-02 Christophe Lyon <christophe.lyon@linaro.org>
17626 * config/arm/iterators.md (supf): Remove VORNQ_S and VORNQ_U.
17628 * config/arm/mve.md (mve_vornq_s<mode>): New entry for vorn
17629 instruction using expression ior.
17630 (mve_vornq_u<mode>): New expander.
17631 (mve_vornq_f<mode>): Use ior code instead of unspec.
17632 * config/arm/unspecs.md (VORNQ_S, VORNQ_U, VORNQ_F): Remove.
17634 2021-02-02 Alexandre Oliva <oliva@adacore.com>
17636 * tree-nested.c (convert_nonlocal_reference_op): Move
17637 current_function_decl restore after re-gimplification.
17638 (convert_local_reference_op): Likewise.
17640 2021-02-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17642 * config/aarch64/aarch64-simd-builtins.def (rshrn, rshrn2):
17644 * config/aarch64/aarch64-simd.md (aarch64_rshrn<mode>_insn_le):
17646 (aarch64_rshrn<mode>_insn_be): Likewise.
17647 (aarch64_rshrn<mode>): Likewise.
17648 (aarch64_rshrn2<mode>_insn_le): Likewise.
17649 (aarch64_rshrn2<mode>_insn_be): Likewise.
17650 (aarch64_rshrn2<mode>): Likewise.
17651 * config/aarch64/aarch64.md (unspec): Add UNSPEC_RSHRN.
17652 * config/aarch64/arm_neon.h (vrshrn_high_n_s16): Reimplement
17654 (vrshrn_high_n_s32): Likewise.
17655 (vrshrn_high_n_s64): Likewise.
17656 (vrshrn_high_n_u16): Likewise.
17657 (vrshrn_high_n_u32): Likewise.
17658 (vrshrn_high_n_u64): Likewise.
17659 (vrshrn_n_s16): Likewise.
17660 (vrshrn_n_s32): Likewise.
17661 (vrshrn_n_s64): Likewise.
17662 (vrshrn_n_u16): Likewise.
17663 (vrshrn_n_u32): Likewise.
17664 (vrshrn_n_u64): Likewise.
17666 2021-02-01 Sergei Trofimovich <siarheit@google.com>
17668 PR tree-optimization/98499
17669 * ipa-modref.c (analyze_ssa_name_flags): treat RVO
17670 conservatively and assume all possible side-effects.
17672 2021-02-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17674 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi,
17675 vec_unpacku_hi_): Define builtins.
17676 * config/aarch64/arm_neon.h (vmovl_high_s8): Reimplement using
17678 (vmovl_high_s16): Likewise.
17679 (vmovl_high_s32): Likewise.
17680 (vmovl_high_u8): Likewise.
17681 (vmovl_high_u16): Likewise.
17682 (vmovl_high_u32): Likewise.
17684 2021-02-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17686 * config/aarch64/aarch64-simd-builtins.def (sabdl, uabdl):
17688 * config/aarch64/aarch64-simd.md (aarch64_<sur>abdl<mode>): New
17690 * config/aarch64/aarch64.md (unspec): Define UNSPEC_SABDL,
17692 * config/aarch64/arm_neon.h (vabdl_s8): Reimplemet using
17694 (vabdl_s16): Likewise.
17695 (vabdl_s32): Likewise.
17696 (vabdl_u8): Likewise.
17697 (vabdl_u16): Likewise.
17698 (vabdl_u32): Likewise.
17699 * config/aarch64/iterators.md (ABDL): New int iterator.
17700 (sur): Handle UNSPEC_SABDL, UNSPEC_UABDL.
17702 2021-02-01 Martin Sebor <msebor@redhat.com>
17704 * tree.h (BLOCK_VARS): Add comment.
17705 (BLOCK_SUBBLOCKS): Same.
17706 (BLOCK_SUPERCONTEXT): Same.
17707 (BLOCK_ABSTRACT_ORIGIN): Same.
17708 (inlined_function_outer_scope_p): Same.
17710 2021-02-01 Martin Sebor <msebor@redhat.com>
17712 PR middle-end/97172
17713 * attribs.c (attr_access::free_lang_data): Define new function.
17714 * attribs.h (attr_access::free_lang_data): Declare new function.
17716 2021-02-01 Richard Biener <rguenther@suse.de>
17718 * vec.h (auto_vec::auto_vec): Add memory stat parameters
17720 * bitmap.h (auto_bitmap::auto_bitmap): Likewise.
17722 2021-02-01 Tamar Christina <tamar.christina@arm.com>
17724 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_n<mode>,
17725 aarch64_<su>mlsl<mode>, aarch64_<su>mlsl_n<mode>): Flip mult operands.
17727 2021-02-01 Richard Biener <rguenther@suse.de>
17729 PR rtl-optimization/98863
17730 * config/i386/i386-features.c (convert_scalars_to_vector):
17731 Set DF_RD_PRUNE_DEAD_DEFS.
17733 2021-01-31 Eric Botcazou <ebotcazou@adacore.com>
17735 * system.h (SIZE_MAX): Define if not already defined.
17737 2021-01-30 Aaron Sawdey <acsawdey@linux.ibm.com>
17739 * config/rs6000/genfusion.pl (gen_2logical): New function to
17740 generate patterns for logical-logical fusion.
17741 * config/rs6000/fusion.md: Regenerated patterns.
17742 * config/rs6000/rs6000-cpus.def: Add
17743 OPTION_MASK_P10_FUSION_2LOGICAL.
17744 * config/rs6000/rs6000.c (rs6000_option_override_internal):
17745 Enable logical-logical fusion for p10.
17746 * config/rs6000/rs6000.opt: Add -mpower10-fusion-2logical.
17748 2021-01-30 David Edelsohn <dje.gcc@gmail.com>
17750 * config/rs6000/rs6000.opt: Add periods to new AIX options.
17752 2021-01-30 David Edelsohn <dje.gcc@gmail.com>
17754 * config/rs6000/rs6000.opt (mabi=vec-extabi): New.
17755 (mabi=vec-default): New.
17756 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
17757 __EXTABI__ for AIX Vector extended ABI.
17758 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print AIX Vector
17760 (conditional_register_usage): If AIX vec_extabi enabled, vs20-vs31
17762 * doc/invoke.texi (PowerPC mabi): Add AIX vec-extabi and vec-default.
17764 2021-01-30 Jakub Jelinek <jakub@redhat.com>
17766 * config/i386/i386-features.c (remove_partial_avx_dependency): Clear
17767 DF_DEFER_INSN_RESCAN after calling df_process_deferred_rescans.
17769 2021-01-29 Vladimir N. Makarov <vmakarov@redhat.com>
17772 * lra-constraints.c (in_class_p): Don't narrow class only for REG
17775 2021-01-29 Will Schmidt <will_schmidt@vnet.ibm.com>
17777 * config/rs6000/rs6000-call.c (rs6000_expand_binup_builtin): Add
17778 clauses for CODE_FOR_vsx_xvcvuxddp_scale and
17779 CODE_FOR_vsx_xvcvsxddp_scale to the parameter checking code.
17781 2021-01-29 Andrew MacLeod <amacleod@redhat.com>
17783 PR tree-optimization/98866
17784 * gimple-range-gori.h (gori_compute:set_range_invariant): New.
17785 * gimple-range-gori.cc (gori_map::set_range_invariant): New.
17786 (gori_map::m_maybe_invariant): Rename from all_outgoing.
17787 (gori_map::gori_map): Rename all_outgoing to m_maybe_invariant.
17788 (gori_map::is_export_p): Ditto.
17789 (gori_map::calculate_gori): Ditto.
17790 (gori_compute::set_range_invariant): New.
17791 * gimple-range.cc (gimple_ranger::range_of_stmt): Set range
17792 invariant for pointers evaluating to [1, +INF].
17794 2021-01-29 Richard Biener <rguenther@suse.de>
17796 PR rtl-optimization/98863
17797 * config/i386/i386-features.c (remove_partial_avx_dependency):
17798 Do not perform DF analysis.
17799 (pass_data_remove_partial_avx_dependency): Remove
17802 2021-01-29 Jonathan Wright <jonathan.wright@arm.com>
17804 * config/aarch64/aarch64-simd-builtins.def: Add [su]mull_n
17805 builtin generator macros.
17806 * config/aarch64/aarch64-simd.md (aarch64_<su>mull_n<mode>):
17808 * config/aarch64/arm_neon.h (vmull_n_s16): Use RTL builtin
17809 instead of inline asm.
17810 (vmull_n_s32): Likewise.
17811 (vmull_n_u16): Likewise.
17812 (vmull_n_u32): Likewise.
17814 2021-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17816 * config/aarch64/aarch64-simd-builtins.def (sabdl2, uabdl2):
17818 * config/aarch64/aarch64-simd.md (aarch64_<sur>abdl2<mode>_3):
17820 (aarch64_<sur>abdl2<mode>): ... This.
17821 (<sur>sadv16qi): Adjust use of above.
17822 * config/aarch64/arm_neon.h (vabdl_high_s8): Reimplement using
17824 (vabdl_high_s16): Likewise.
17825 (vabdl_high_s32): Likewise.
17826 (vabdl_high_u8): Likewise.
17827 (vabdl_high_u16): Likewise.
17828 (vabdl_high_u32): Likewise.
17830 2021-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17832 * config/aarch64/aarch64-simd-builtins.def (sabal2): Define
17834 (uabal2): Likewise.
17835 * config/aarch64/aarch64-simd.md (aarch64_<sur>abal2<mode>): New
17837 * config/aarch64/aarch64.md (unspec): Add UNSPEC_SABAL2 and
17839 * config/aarch64/arm_neon.h (vabal_high_s8): Reimplement using
17841 (vabal_high_s16): Likewise.
17842 (vabal_high_s32): Likewise.
17843 (vabal_high_u8): Likewise.
17844 (vabal_high_u16): Likewise.
17845 (vabal_high_u32): Likewise.
17846 * config/aarch64/iterators.md (ABAL2): New mode iterator.
17847 (sur): Handle UNSPEC_SABAL2, UNSPEC_UABAL2.
17849 2021-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17851 * config/aarch64/aarch64-simd-builtins.def (sabal): Define
17854 * config/aarch64/aarch64-simd.md (aarch64_<sur>abal<mode>_4):
17856 (aarch64_<sur>abal<mode>): ... This
17857 (<sur>sadv16qi): Adust use of the above.
17858 * config/aarch64/arm_neon.h (vabal_s8): Reimplement using
17860 (vabal_s16): Likewise.
17861 (vabal_s32): Likewise.
17862 (vabal_u8): Likewise.
17863 (vabal_u16): Likewise.
17864 (vabal_u32): Likewise.
17866 2021-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17868 * config/aarch64/aarch64-simd-builtins.def (saddlv, uaddlv):
17870 * config/aarch64/aarch64-simd.md (aarch64_<su>addlv<mode>):
17872 * config/aarch64/arm_neon.h (vaddlv_s8): Reimplement using
17874 (vaddlv_s16): Likewise.
17875 (vaddlv_u8): Likewise.
17876 (vaddlv_u16): Likewise.
17877 (vaddlvq_s8): Likewise.
17878 (vaddlvq_s16): Likewise.
17879 (vaddlvq_s32): Likewise.
17880 (vaddlvq_u8): Likewise.
17881 (vaddlvq_u16): Likewise.
17882 (vaddlvq_u32): Likewise.
17883 (vaddlv_s32): Likewise.
17884 (vaddlv_u32): Likewise.
17885 * config/aarch64/iterators.md (VDQV_L): New mode iterator.
17886 (unspec): Add UNSPEC_SADDLV, UNSPEC_UADDLV.
17887 (Vwstype): New mode attribute.
17889 (VWIDE_S): Likewise.
17890 (USADDLV): New int iterator.
17891 (su): Handle UNSPEC_SADDLV, UNSPEC_UADDLV.
17893 2021-01-29 Jonathan Wright <jonathan.wright@arm.com>
17895 * config/aarch64/aarch64-simd-builtins.def: Add [su]mlsl_lane[q]
17896 builtin generator macros.
17897 * config/aarch64/aarch64-simd.md (aarch64_vec_<su>mlsl_lane<Qlane>):
17899 * config/aarch64/arm_neon.h (vmlsl_lane_s16): Use RTL builtin
17900 instead of inline asm.
17901 (vmlsl_lane_s32): Likewise.
17902 (vmlsl_lane_u16): Likewise.
17903 (vmlsl_lane_u32): Likewise.
17904 (vmlsl_laneq_s16): Likewise.
17905 (vmlsl_laneq_s32): Likewise.
17906 (vmlsl_laneq_u16): Likewise.
17907 (vmlsl_laneq_u32): Likewise.
17909 2021-01-29 Richard Biener <rguenther@suse.de>
17911 * doc/invoke.texi (--param max-gcse-memory): Document unit
17913 * gcse.c (gcse_or_cprop_is_too_expensive): Adjust.
17914 * params.opt (--param max-gcse-memory): Adjust default and
17915 document unit of size.
17917 2021-01-29 Richard Biener <rguenther@suse.de>
17919 PR rtl-optimization/98863
17920 * gcse.c (gcse_or_cprop_is_too_expensive): Use unsigned
17921 HOST_WIDE_INT for the memory estimate.
17923 2021-01-29 Bin Cheng <bin.cheng@linux.alibaba.com>
17924 Richard Biener <rguenther@suse.de>
17926 PR tree-optimization/97627
17927 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions):
17928 Do not analyze fake edges.
17930 2021-01-29 Richard Biener <rguenther@suse.de>
17932 PR rtl-optimization/98144
17933 * df.h (df_mir_bb_info): Add con_visited member.
17934 * df-problems.c (df_mir_alloc): Initialize con_visited,
17935 do not fully populate IN and OUT.
17936 (df_mir_reset): Likewise.
17937 (df_mir_confluence_0): Set con_visited.
17938 (df_mir_confluence_n): Properly handle implicitely
17939 fully populated IN and OUT as designated by con_visited
17940 and update con_visited accordingly.
17942 2021-01-29 Jakub Jelinek <jakub@redhat.com>
17945 * config/arm/vec-common.md (mve_vshlq_<supf><mode>,
17946 vashl<mode>3, vashr<mode>3, vlshr<mode>3): Add
17947 && !TARGET_REALLY_IWMMXT to conditions.
17949 2021-01-29 Jakub Jelinek <jakub@redhat.com>
17952 * cfgbuild.c (find_bb_boundaries): Reset debug_insn when seeing
17955 2021-01-28 Marek Polacek <polacek@redhat.com>
17958 * stor-layout.c (finalize_type_size): If we reset TYPE_USER_ALIGN in
17959 the main variant, maybe reset it in its variants too.
17960 * tree.c (check_base_type): Return true only if TYPE_USER_ALIGN match.
17961 (check_aligned_type): Check if TYPE_USER_ALIGN match.
17963 2021-01-28 Christophe Lyon <christophe.lyon@linaro.org>
17966 * config/arm/arm.c (arm_rtx_costs_internal): Adjust cost of vector
17967 of constant zero for comparisons.
17969 2021-01-28 Michael Meissner <meissner@linux.ibm.com>
17971 * config/rs6000/rs6000.c (rs6000_mangle_decl_assembler_name): Add
17972 support for mapping built-in function names for long double
17973 built-in functions if long double is IEEE 128-bit.
17975 2021-01-28 Jonathan Wright <jonathan.wright@arm.com>
17977 * config/aarch64/aarch64-simd-builtins.def: Add [su]mlsl_n
17978 builtin generator macros.
17979 * config/aarch64/aarch64-simd.md (aarch64_<su>mlsl_n<mode>):
17981 * config/aarch64/arm_neon.h (vmlsl_n_s16): Use RTL builtin
17982 instead of inline asm.
17983 (vmlsl_n_s32): Likewise.
17984 (vmlsl_n_u16): Likewise.
17985 (vmlsl_n_u32): Likewise.
17987 2021-01-28 Jonathan Wright <jonathan.wright@arm.com>
17989 * config/aarch64/aarch64-simd-builtins.def: Add [su]mlal_n
17990 builtin generator macros.
17991 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_n<mode>):
17993 * config/aarch64/arm_neon.h (vmlal_n_s16): Use RTL builtin
17994 instead of inline asm.
17995 (vmlal_n_s32): Likewise.
17996 (vmlal_n_u16): Likewise.
17997 (vmlal_n_u32): Likewise.
17999 2021-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18001 * config/aarch64/aarch64-simd-builtins.def (shrn2): Define
18003 * config/aarch64/aarch64-simd.md (aarch64_shrn2<mode>_insn_le):
18005 (aarch64_shrn2<mode>_insn_be): Likewise.
18006 (aarch64_shrn2<mode>): Likewise.
18007 * config/aarch64/arm_neon.h (vshrn_high_n_s16): Reimlplement
18009 (vshrn_high_n_s32): Likewise.
18010 (vshrn_high_n_s64): Likewise.
18011 (vshrn_high_n_u16): Likewise.
18012 (vshrn_high_n_u32): Likewise.
18013 (vshrn_high_n_u64): Likewise.
18015 2021-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18017 * config/aarch64/aarch64-simd-builtins.def (shrn): Define
18019 * config/aarch64/aarch64-simd.md (aarch64_shrn<mode>_insn_le):
18021 (aarch64_shrn<mode>_insn_be): Likewise.
18022 (aarch64_shrn<mode>): Likewise.
18023 * config/aarch64/arm_neon.h (vshrn_n_s16): Reimplement using
18025 (vshrn_n_s32): Likewise.
18026 (vshrn_n_s64): Likewise.
18027 (vshrn_n_u16): Likewise.
18028 (vshrn_n_u32): Likewise.
18029 (vshrn_n_u64): Likewise.
18030 * config/aarch64/iterators.md (vn_mode): New mode attribute.
18032 2021-01-28 Richard Biener <rguenther@suse.de>
18034 PR rtl-optimization/80960
18035 * dse.c (check_mem_read_rtx): Call get_addr on the
18038 2021-01-28 Xionghu Luo <luoxhu@linux.ibm.com>
18039 David Edelsohn <dje.gcc@gmail.com>
18042 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
18043 Don't generate VIEW_CONVERT_EXPR for fcode ALTIVEC_BUILTIN_VEC_INSERT
18045 * config/rs6000/rs6000-protos.h (rs6000_expand_vector_set_var):
18047 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Remove the
18048 wrapper call rs6000_expand_vector_set_var for cleanup. Call
18049 rs6000_expand_vector_set_var_p9 and rs6000_expand_vector_set_var_p8
18051 (rs6000_expand_vector_set_var): Delete.
18052 (rs6000_expand_vector_set_var_p9): Make static.
18053 (rs6000_expand_vector_set_var_p8): Make static.
18055 2021-01-28 Xing GUO <higuoxing@gmail.com>
18057 * common/config/riscv/riscv-common.c
18058 (riscv_subset_list::parsing_subset_version): Fix -march option parsing
18059 when `p` extension exists.
18061 2021-01-27 Vladimir N. Makarov <vmakarov@redhat.com>
18063 PR rtl-optimization/97684
18064 * ira.c (ira): Call ira_set_pseudo_classes before
18065 update_equiv_regs when it is necessary.
18067 2021-01-27 Jakub Jelinek <jakub@redhat.com>
18070 * config/aarch64/aarch64.md (*aarch64_bfxilsi_uxtw): Use
18071 %w0, %w1 and %2 instead of %0, %1 and %2.
18073 2021-01-27 Aaron Sawdey <acsawdey@linux.ibm.com>
18075 * config/rs6000/genfusion.pl: New script to generate
18076 define_insn_and_split patterns so combine can arrange fused
18077 instructions next to each other.
18078 * config/rs6000/fusion.md: New file, generated fused instruction
18079 patterns for combine.
18080 * config/rs6000/predicates.md (const_m1_to_1_operand): New predicate.
18081 (non_update_memory_operand): New predicate.
18082 * config/rs6000/rs6000-cpus.def: Add OPTION_MASK_P10_FUSION and
18083 OPTION_MASK_P10_FUSION_LD_CMPI to ISA_3_1_MASKS_SERVER and
18085 * config/rs6000/rs6000-protos.h (address_is_non_pfx_d_or_x): Add
18087 * config/rs6000/rs6000.c (rs6000_option_override_internal):
18088 Automatically set OPTION_MASK_P10_FUSION and
18089 OPTION_MASK_P10_FUSION_LD_CMPI if target is power10.
18090 (rs600_opt_masks): Allow -mpower10-fusion
18091 in function attributes.
18092 (address_is_non_pfx_d_or_x): New function.
18093 * config/rs6000/rs6000.h: Add MASK_P10_FUSION.
18094 * config/rs6000/rs6000.md: Include fusion.md.
18095 * config/rs6000/rs6000.opt: Add -mpower10-fusion
18096 and -mpower10-fusion-ld-cmpi.
18097 * config/rs6000/t-rs6000: Add dependencies involving fusion.md.
18099 2021-01-27 Jonathan Wright <jonathan.wright@arm.com>
18101 * config/aarch64/aarch64-simd-builtins.def: Add [su]mlal
18102 builtin generator macros.
18103 * config/aarch64/aarch64-simd.md (*aarch64_<su>mlal<mode>):
18105 (aarch64_<su>mlal<mode>): This.
18106 * config/aarch64/arm_neon.h (vmlal_s8): Use RTL builtin
18107 instead of inline asm.
18108 (vmlal_s16): Likewise.
18109 (vmlal_s32): Likewise.
18110 (vmlal_u8): Likewise.
18111 (vmlal_u16): Likewise.
18112 (vmlal_u32): Likewise.
18114 2021-01-27 Richard Biener <rguenther@suse.de>
18116 PR tree-optimization/98854
18117 * tree-vect-slp.c (vect_build_slp_tree_2): Also build
18118 PHIs from scalars when the number of CTORs matches the
18119 number of children.
18121 2021-01-27 Jonathan Wright <jonathan.wright@arm.com>
18123 * config/aarch64/aarch64-simd-builtins.def: Add mls_n builtin
18125 * config/aarch64/aarch64-simd.md (*aarch64_mls_elt_merge<mode>):
18127 (aarch64_mls_n<mode>): This.
18128 * config/aarch64/arm_neon.h (vmls_n_s16): Use RTL builtin
18130 (vmls_n_s32): Likewise.
18131 (vmls_n_u16): Likewise.
18132 (vmls_n_u32): Likewise.
18133 (vmlsq_n_s16): Likewise.
18134 (vmlsq_n_s32): Likewise.
18135 (vmlsq_n_u16): Likewise.
18136 (vmlsq_n_u32): Likewise.
18138 2021-01-27 Jonathan Wright <jonathan.wright@arm.com>
18140 * config/aarch64/aarch64-simd-builtins.def: Add mls builtin
18142 * config/aarch64/arm_neon.h (vmls_s8): Use RTL builtin rather
18144 (vmls_s16): Likewise.
18145 (vmls_s32): Likewise.
18146 (vmls_u8): Likewise.
18147 (vmls_u16): Likewise.
18148 (vmls_u32): Likewise.
18149 (vmlsq_s8): Likewise.
18150 (vmlsq_s16): Likewise.
18151 (vmlsq_s32): Likewise.
18152 (vmlsq_u8): Likewise.
18153 (vmlsq_u16): Likewise.
18154 (vmlsq_u32): Likewise.
18156 2021-01-27 Jonathan Wright <jonathan.wright@arm.com>
18158 * config/aarch64/aarch64-simd-builtins.def: Add mla_n builtin
18160 * config/aarch64/aarch64-simd.md (*aarch64_mla_elt_merge<mode>):
18162 (aarch64_mla_n<mode>): This.
18163 * config/aarch64/arm_neon.h (vmla_n_s16): Use RTL builtin
18165 (vmla_n_s32): Likewise.
18166 (vmla_n_u16): Likewise.
18167 (vmla_n_u32): Likewise.
18168 (vmlaq_n_s16): Likewise.
18169 (vmlaq_n_s32): Likewise.
18170 (vmlaq_n_u16): Likewise.
18171 (vmlaq_n_u32): Likewise.
18173 2021-01-27 liuhongt <hongtao.liu@intel.com>
18176 * config/i386/sse.md (sse2_gt<mode>3): Drop !TARGET_XOP in condition.
18177 (*sse2_eq<mode>3): Ditto.
18179 2021-01-27 Jakub Jelinek <jakub@redhat.com>
18181 * tree-pass.h (PROP_trees): Rename to ...
18182 (PROP_gimple): ... this.
18183 * cfgexpand.c (pass_data_expand): Replace PROP_trees with PROP_gimple.
18184 * passes.c (execute_function_dump, execute_function_todo,
18185 execute_one_ipa_transform_pass, execute_one_pass): Likewise.
18186 * varpool.c (ctor_for_folding): Likewise.
18188 2021-01-27 Jakub Jelinek <jakub@redhat.com>
18190 PR tree-optimization/97260
18191 * varpool.c: Include tree-pass.h.
18192 (ctor_for_folding): In GENERIC return DECL_INITIAL for TREE_READONLY
18193 non-TREE_SIDE_EFFECTS automatic variables.
18195 2021-01-26 Paul Fee <paul.f.fee@gmail.com>
18197 * doc/cpp.texi (__cplusplus): Document value for -std=c++23
18199 * doc/invoke.texi: Document -std=c++23 and -std=gnu++23.
18200 * dwarf2out.c (highest_c_language): Recognise C++20 and C++23.
18201 (gen_compile_unit_die): Recognise C++23.
18203 2021-01-26 Jakub Jelinek <jakub@redhat.com>
18206 * dwarf2asm.c (dw2_assemble_integer): Cast DWARF2_ADDR_SIZE to int
18209 2021-01-26 Jakub Jelinek <jakub@redhat.com>
18212 * config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
18213 Use UINTVAL (shft_amnt) and UINTVAL (mask) instead of INTVAL (shft_amnt)
18214 and INTVAL (mask). Add && INTVAL (mask) > 0 condition.
18216 2021-01-26 Richard Biener <rguenther@suse.de>
18218 * gimple-pretty-print.c (dump_binary_rhs): Handle
18219 VEC_WIDEN_{PLUS,MINUS}_{LO,HI}_EXPR.
18221 2021-01-26 Richard Biener <rguenther@suse.de>
18223 PR middle-end/98726
18224 * tree.h (vector_cst_int_elt): Remove.
18225 * tree.c (vector_cst_int_elt): Use poly_wide_int for computations,
18228 2021-01-26 Andrew Stubbs <ams@codesourcery.com>
18230 * config/gcn/gcn.c (gcn_expand_reduc_scalar): Use move instructions
18231 for V64DFmode min/max reductions.
18233 2021-01-26 Jakub Jelinek <jakub@redhat.com>
18235 * dwarf2asm.c (dw2_assemble_integer): Handle size twice as large
18236 as DWARF2_ADDR_SIZE if x is not a scalar int by emitting it as
18237 two halves, one with x and the other with const0_rtx, ordered
18238 depending on endianity.
18240 2021-01-26 Alexandre Oliva <oliva@adacore.com>
18242 * gimplify.c (gimplify_decl_expr): Skip asan marking calls for
18243 temporaries not seen in binding block, and not about to be
18244 added as gimple variables.
18246 2021-01-25 Martin Sebor <msebor@redhat.com>
18249 * tree-ssa-ccp.c (pass_post_ipa_warn::execute): Adjust warning text.
18251 2021-01-25 Martin Liska <mliska@suse.cz>
18253 * value-prof.c (get_nth_most_common_value): Use %s instead
18256 2021-01-25 Jakub Jelinek <jakub@redhat.com>
18259 * configure.ac (HAVE_AS_GDWARF_5_DEBUG_FLAG): Only define if
18260 readelf -wi is able to read the emitted .debug_info back.
18261 * configure: Regenerated.
18263 2021-01-25 Martin Liska <mliska@suse.cz>
18265 PR gcov-profile/98739
18266 * common.opt: Add missing sign symbol.
18267 * value-prof.c (get_nth_most_common_value): Restore handling
18268 of PROFILE_REPRODUCIBILITY_PARALLEL_RUNS and
18269 PROFILE_REPRODUCIBILITY_MULTITHREADED.
18271 2021-01-25 Richard Biener <rguenther@suse.de>
18273 PR middle-end/98807
18274 * tree.c (vector_element_bits): Always use precision of
18275 the element type for boolean vectors.
18277 2021-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
18279 * config/rtems.h (STARTFILE_SPEC): Remove qnolinkcmds.
18280 (ENDFILE_SPEC): Evaluate qnolinkcmds.
18282 2021-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
18284 * config/rtems.h (STARTFILE_SPEC): Remove nostdlib and
18285 nostartfiles handling since this is already done by
18286 LINK_COMMAND_SPEC. Evaluate qnolinkcmds.
18287 (ENDFILE_SPEC): Remove nostdlib and nostartfiles handling since this
18288 is already done by LINK_COMMAND_SPEC.
18289 (LIB_SPECS): Remove nostdlib and nodefaultlibs handling since
18290 this is already done by LINK_COMMAND_SPEC. Remove qnolinkcmds
18293 2021-01-25 Jakub Jelinek <jakub@redhat.com>
18296 * fold-const-call.c (host_size_t_cst_p): Renamed to ...
18297 (size_t_cst_p): ... this. Check and store unsigned HOST_WIDE_INT
18298 value rather than host size_t.
18299 (fold_const_call): Change type of s2 from size_t to
18300 unsigned HOST_WIDE_INT. Use size_t_cst_p instead of
18301 host_size_t_cst_p. For strncmp calls, pass MIN (s2, SIZE_MAX)
18302 instead of s2 as last argument.
18304 2021-01-25 Tamar Christina <tamar.christina@arm.com>
18306 * config/arm/iterators.md (rotsplit1, rotsplit2, conj_op, fcmac1,
18307 VCMLA_OP, VCMUL_OP): New.
18308 * config/arm/mve.md (mve_vcmlaq<mve_rot><mode>): Support vec_dup 0.
18309 * config/arm/neon.md (cmul<conj_op><mode>3): New.
18310 * config/arm/unspecs.md (UNSPEC_VCMLA_CONJ, UNSPEC_VCMLA180_CONJ,
18311 UNSPEC_VCMUL_CONJ): New.
18312 * config/arm/vec-common.md (cmul<conj_op><mode>3, arm_vcmla<rot><mode>,
18313 cml<fcmac1><conj_op><mode>4): New.
18315 2021-01-23 Jakub Jelinek <jakub@redhat.com>
18318 * config/rs6000/mmintrin.h (__m64): Add __may_alias__ attribute.
18320 2021-01-22 Jonathan Wright <jonathan.wright@arm.com>
18322 * config/aarch64/aarch64-simd-builtins.def: Add mla builtin
18324 * config/aarch64/arm_neon.h (vmla_s8): Use RTL builtin rather
18326 (vmla_s16): Likewise.
18327 (vmla_s32): Likewise.
18328 (vmla_u8): Likewise.
18329 (vmla_u16): Likewise.
18330 (vmla_u32): Likewise.
18331 (vmlaq_s8): Likewise.
18332 (vmlaq_s16): Likewise.
18333 (vmlaq_s32): Likewise.
18334 (vmlaq_u8): Likewise.
18335 (vmlaq_u16): Likewise.
18336 (vmlaq_u32): Likewise.
18338 2021-01-22 David Malcolm <dmalcolm@redhat.com>
18340 * doc/invoke.texi (GCC_EXTRA_DIAGNOSTIC_OUTPUT): Add @findex
18343 2021-01-22 Jakub Jelinek <jakub@redhat.com>
18346 * dwarf2out.c (output_file_names): For -gdwarf-5, if there are no
18347 filenames to emit, still emit the required 0 index directory and
18348 filename entries that match DW_AT_comp_dir and DW_AT_name of the
18351 2021-01-22 Marek Polacek <polacek@redhat.com>
18354 * doc/invoke.texi: Update C++ ABI Version 15 description.
18356 2021-01-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18358 PR tree-optimization/98766
18359 * tree-ssa-math-opts.c (convert_mult_to_fma): Use maybe_le when
18360 comparing against type size with param_avoid_fma_max_bits.
18362 2021-01-22 Richard Biener <rguenther@suse.de>
18364 PR middle-end/98793
18365 * tree.c (vector_element_bits): Key single-bit bool vector on
18366 integer mode rather than not vector mode.
18368 2021-01-22 Xionghu Luo <luoxhu@linux.ibm.com>
18371 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
18372 Generate ARRAY_REF(VIEW_CONVERT_EXPR) for P8 and later
18374 * config/rs6000/rs6000.c (rs6000_expand_vector_set_var): Update
18375 to call different path for P8 and P9.
18376 (rs6000_expand_vector_set_var_p9): New function.
18377 (rs6000_expand_vector_set_var_p8): New function.
18379 2021-01-22 Xionghu Luo <luoxhu@linux.ibm.com>
18383 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
18384 Ajdust variable index vec_insert from address dereference to
18385 ARRAY_REF(VIEW_CONVERT_EXPR) tree expression.
18386 * config/rs6000/rs6000-protos.h (rs6000_expand_vector_set_var):
18388 * config/rs6000/rs6000.c (rs6000_expand_vector_set_var): New function.
18390 2021-01-22 Martin Liska <mliska@suse.cz>
18392 PR gcov-profile/98739
18393 * profile.c (compute_value_histograms): Drop time profile for
18394 -fprofile-reproducible=multithreaded.
18396 2021-01-22 Nathan Sidwell <nathan@acm.org>
18398 * gcc.c (process_command): Don't check OPT_SPECIAL_input_file
18401 2021-01-22 Richard Biener <rguenther@suse.de>
18403 PR middle-end/98773
18404 * tree-data-ref.c (initalize_matrix_A): Revert previous
18405 change, retaining failing on HOST_WIDE_INT_MIN CHREC_RIGHT.
18407 2021-01-22 Jakub Jelinek <jakub@redhat.com>
18409 PR tree-optimization/90248
18410 * match.pd (X cmp 0.0 ? 1.0 : -1.0 -> copysign(1, +-X),
18411 X cmp 0.0 ? -1.0 : +1.0 -> copysign(1, -+X)): Remove
18413 (X * (X cmp 0.0 ? 1.0 : -1.0) -> +-abs(X),
18414 X * (X cmp 0.0 ? -1.0 : 1.0) -> +-abs(X)): New simplifications.
18416 2021-01-22 Jakub Jelinek <jakub@redhat.com>
18418 PR tree-optimization/98255
18419 * tree-dfa.c (get_ref_base_and_extent): For ARRAY_REFs, sign
18420 extend index - low_bound from sizetype's precision rather than index
18422 (get_addr_base_and_unit_offset_1): Likewise.
18423 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Likewise.
18424 * gimple-fold.c (fold_const_aggregate_ref_1): Likewise.
18426 2021-01-22 Richard Biener <rguenther@suse.de>
18428 PR tree-optimization/98786
18429 * tree-ssa-phiopt.c (factor_out_conditional_conversion): Avoid
18430 adding new uses of abnormals. Verify we deal with a conditional
18433 2021-01-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
18436 * optc-save-gen.awk: Add arm_fp16_format to checked_options.
18438 2021-01-22 liuhongt <hongtao.liu@intel.com>
18442 * config/i386/sse.md (VI_128_256): New mode iterator.
18443 (*avx_cmp<mode>3_1, *avx_cmp<mode>3_2, *avx_cmp<mode>3_3,
18444 *avx_cmp<mode>3_4, *avx2_eq<mode>3, *avx2_pcmp<mode>3_1,
18445 *avx2_pcmp<mode>3_2, *avx2_gt<mode>3): New
18446 define_insn_and_split to lower avx512 vector comparison to avx
18447 version when dest is vector.
18448 (*<avx512>_cmp<mode>3,*<avx512>_cmp<mode>3,*<avx512>_ucmp<mode>3):
18449 define_insn_and_split for negating the comparison result.
18450 * config/i386/predicates.md (float_vector_all_ones_operand):
18452 * config/i386/i386-expand.c (ix86_expand_sse_movcc): Use
18453 general NOT operator without UNSPEC_MASKOP.
18455 2021-01-21 Vladimir N. Makarov <vmakarov@redhat.com>
18457 PR rtl-optimization/98777
18458 * lra-int.h (lra_pmode_pseudo): New extern.
18459 * lra.c (lra_pmode_pseudo): New global.
18461 * lra-eliminations.c (eliminate_regs_in_insn): Use it.
18463 2021-01-21 Ilya Leoshkevich <iii@linux.ibm.com>
18465 * fwprop.c (fwprop_propagation::classify_result): Allow
18466 (subreg (mem)) simplifications.
18468 2021-01-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18470 * config/aarch64/aarch64-simd.md (aarch64_sqdml<SBINQOPS:as>l<mode>):
18472 (aarch64_sqdmlal<mode>): ... This...
18473 (aarch64_sqdmlsl<mode>): ... And this.
18474 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>): Split into...
18475 (aarch64_sqdmlal_lane<mode>): ... This...
18476 (aarch64_sqdmlsl_lane<mode>): ... And this.
18477 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>): Split into...
18478 (aarch64_sqdmlsl_laneq<mode>): ... This...
18479 (aarch64_sqdmlal_laneq<mode>): ... And this.
18480 (aarch64_sqdml<SBINQOPS:as>l_n<mode>): Split into...
18481 (aarch64_sqdmlsl_n<mode>): ... This...
18482 (aarch64_sqdmlal_n<mode>): ... And this.
18483 (aarch64_sqdml<SBINQOPS:as>l2<mode>_internal): Split into...
18484 (aarch64_sqdmlal2<mode>_internal): ... This...
18485 (aarch64_sqdmlsl2<mode>_internal): ... And this.
18487 2021-01-21 Christophe Lyon <christophe.lyon@linaro.org>
18489 * config/arm/arm_mve.h (__arm_vcmpneq_s8): Fix return type.
18491 2021-01-21 Andrea Corallo <andrea.corallo@arm.com>
18494 * doc/sourcebuild.texi (arm_thumb2_no_arm_v8_1_lob): Document.
18496 2021-01-21 liuhongt <hongtao.liu@intel.com>
18498 PR rtl-optimization/98694
18499 * regcprop.c (copy_value): If SRC had been assigned a mode
18500 narrower than the copy, we can't link DEST into the chain even
18501 they have same hard_regno_nregs(i.e. HImode/SImode in i386
18504 2021-01-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18506 * config/aarch64/aarch64-simd.md (aarch64_get_lane<mode>):
18507 Convert to define_insn_and_split. Split into simple move when moving
18510 2021-01-20 Segher Boessenkool <segher@kernel.crashing.org>
18512 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Change assert.
18513 Adjust comment. Simplify code.
18515 2021-01-20 Jakub Jelinek <jakub@redhat.com>
18518 * dwarf2out.c (reset_indirect_string): Also reset indirect strings
18519 with DW_FORM_line_strp form.
18520 (prune_unused_types_update_strings): Don't add into debug_str_hash
18521 indirect strings with DW_FORM_line_strp form.
18522 (adjust_name_comp_dir): New function.
18523 (dwarf2out_finish): Call it on CU DIEs after resetting
18524 debug_line_str_hash.
18526 2021-01-20 Vladimir N. Makarov <vmakarov@redhat.com>
18528 PR rtl-optimization/98722
18529 * lra-eliminations.c (eliminate_regs_in_insn): Check that target
18530 has no 3-op add insn to transform insns containing two pluses.
18532 2021-01-20 Richard Biener <rguenther@suse.de>
18534 * hwint.h (add_hwi): New function.
18535 (mul_hwi): Likewise.
18536 * tree-data-ref.c (initialize_matrix_A): Properly translate
18537 tree constants and avoid HOST_WIDE_INT_MIN.
18538 (lambda_matrix_row_add): Avoid undefined integer overflow
18539 and return true on such overflow.
18540 (lambda_matrix_right_hermite): Handle overflow from
18541 lambda_matrix_row_add gracefully. Simplify previous fix.
18542 (analyze_subscript_affine_affine): Likewise.
18544 2021-01-20 Eugene Rozenfeld <erozen@microsoft.com>
18546 PR tree-optimization/96674
18547 * match.pd: New patterns: x < y || y == XXX_MIN --> x <= y - 1
18548 x >= y && y != XXX_MIN --> x > y - 1
18550 2021-01-20 Richard Sandiford <richard.sandiford@arm.com>
18552 PR tree-optimization/98535
18553 * tree-vect-slp.c (duplicate_and_interleave): Use quick_grow_cleared.
18554 If the high and low permutes are the same, remove the high permutes
18555 from the working set and only continue with the low ones.
18557 2021-01-20 Jakub Jelinek <jakub@redhat.com>
18559 PR tree-optimization/98721
18560 * builtins.c (access_ref::inform_access): Don't assume
18561 SSA_NAME_IDENTIFIER must be non-NULL. Print messages about
18562 object whenever allocfn is NULL, rather than only when DECL_P
18563 is true. Use %qE instead of %qD for that. Formatting fixes.
18565 2021-01-20 Richard Biener <rguenther@suse.de>
18567 PR tree-optimization/98758
18568 * tree-data-ref.c (int_divides_p): Use lambda_int arguments.
18569 (lambda_matrix_right_hermite): Avoid undefinedness with
18570 signed integer abs and multiplication.
18571 (analyze_subscript_affine_affine): Use lambda_int.
18573 2021-01-20 David Malcolm <dmalcolm@redhat.com>
18576 * dwarf2out.c (output_line_info): Rename static variable
18577 "generation", moving it out of the function to...
18578 (output_line_info_generation): New.
18579 (init_sections_and_labels): Likewise, renaming the variable to...
18580 (init_sections_and_labels_generation): New.
18581 (dwarf2out_c_finalize): Reset the new variables.
18583 2021-01-19 Martin Sebor <msebor@redhat.com>
18585 PR middle-end/98664
18586 * tree-ssa-live.c (remove_unused_scope_block_p): Keep scopes for
18587 all functions, even if they're not declared artificial or inline.
18588 * tree.c (tree_inlined_location): Use macro expansion location
18589 only if scope traversal fails to expose one.
18591 2021-01-19 Richard Sandiford <richard.sandiford@arm.com>
18593 PR rtl-optimization/92294
18594 * alias.c (compare_base_symbol_refs): Take an extra parameter
18595 and add the distance between two symbols to it. Enshrine in
18596 comments that -1 means "either 0 or 1, but we can't tell
18597 which at compile time".
18598 (memrefs_conflict_p): Update call accordingly.
18599 (rtx_equal_for_memref_p): Likewise. Take the distance between symbols
18602 2021-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18604 * config/aarch64/aarch64-simd-builtins.def (sqshl, uqshl,
18605 sqrshl, uqrshl, sqadd, uqadd, sqsub, uqsub, suqadd, usqadd, sqmovn,
18606 uqmovn, sqxtn2, uqxtn2, sqabs, sqneg, sqdmlal, sqdmlsl, sqdmlal_lane,
18607 sqdmlsl_lane, sqdmlal_laneq, sqdmlsl_laneq, sqdmlal_n, sqdmlsl_n,
18608 sqdmlal2, sqdmlsl2, sqdmlal2_lane, sqdmlsl2_lane, sqdmlal2_laneq,
18609 sqdmlsl2_laneq, sqdmlal2_n, sqdmlsl2_n, sqdmull, sqdmull_lane,
18610 sqdmull_laneq, sqdmull_n, sqdmull2, sqdmull2_lane, sqdmull2_laneq,
18611 sqdmull2_n, sqdmulh, sqrdmulh, sqdmulh_lane, sqdmulh_laneq,
18612 sqrdmulh_lane, sqrdmulh_laneq, sqshrun_n, sqrshrun_n, sqshrn_n,
18613 uqshrn_n, sqrshrn_n, uqrshrn_n, sqshlu_n, sqshl_n, uqshl_n, sqrdmlah,
18614 sqrdmlsh, sqrdmlah_lane, sqrdmlsh_lane, sqrdmlah_laneq, sqrdmlsh_laneq,
18615 sqmovun): Use NONE flags.
18617 2021-01-19 Richard Biener <rguenther@suse.de>
18620 * ipa-modref.c (analyze_stmt): Only record a summary for a
18623 2021-01-19 Richard Biener <rguenther@suse.de>
18625 PR middle-end/98638
18626 * tree-ssanames.c (fini_ssanames): Zero SSA_NAME_DEF_STMT.
18628 2021-01-19 Daniel Hellstrom <daniel@gaisler.com>
18630 * config/sparc/rtemself.h (TARGET_OS_CPP_BUILTINS): Add
18631 built-in define __FIX_LEON3FT_TN0018.
18633 2021-01-19 Richard Biener <rguenther@suse.de>
18636 * tree-inline.c (tree_function_versioning): Set input_location
18637 to UNKNOWN_LOCATION throughout the function.
18639 2021-01-19 Tobias Burnus <tobias@codesourcery.com>
18642 * omp-low.c (lower_omp_target): Handle nonpointer is_device_ptr.
18644 2021-01-19 Martin Jambor <mjambor@suse.cz>
18647 * ipa-sra.c (ssa_name_only_returned_p): New parameter fun. Check
18648 whether non-call exceptions allow removal of a statement.
18649 (isra_analyze_call): Pass the appropriate function to
18650 ssa_name_only_returned_p.
18652 2021-01-19 Geng Qi <gengqi@linux.alibaba.com>
18654 * config/riscv/arch-canonicalize (longext_sort): New function for
18655 sorting 'multi-letter'.
18656 * config/riscv/multilib-generator: Adjusting the loop of 'alt' in
18657 'alts'. The 'arch' may not be the first of 'alts'.
18658 (_expand_combination): Add underline for the 'ext' without '*'.
18659 This is because, a single-letter extension can always be treated well
18660 with a '_' prefix, but it cannot be separated out if it is appended
18663 2021-01-18 Vladimir N. Makarov <vmakarov@redhat.com>
18666 * ira.c (ira): Skip abnormal critical edge splitting.
18668 2021-01-18 Jakub Jelinek <jakub@redhat.com>
18670 PR tree-optimization/98727
18671 * tree-ssa-math-opts.c (match_arith_overflow): Fix up computation of
18672 second .MUL_OVERFLOW operand for signed multiplication with overflow
18673 checking if the second operand of multiplication is not constant.
18675 2021-01-18 David Edelsohn <dje.gcc@gmail.com>
18677 * doc/invoke.texi (-gdwarf): TPF defaults to version 2 and AIX
18678 defaults to version 4.
18680 2021-01-18 David Malcolm <dmalcolm@redhat.com>
18682 * attribs.h (fndecl_dealloc_argno): New decl.
18683 * builtins.c (call_dealloc_argno): Split out second half of
18685 (fndecl_dealloc_argno): New.
18686 * doc/extend.texi (Common Function Attributes): Document the
18687 interaction between the analyzer and the malloc attribute.
18688 * doc/invoke.texi (Static Analyzer Options): Likewise.
18690 2021-01-17 David Edelsohn <dje.gcc@gmail.com>
18692 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Override
18693 dwarf_version to 4.
18694 * config/rs6000/aix72.h (SUBTARGET_OVERRIDE_OPTIONS): Same.
18696 2021-01-17 Martin Jambor <mjambor@suse.cz>
18699 * cgraph.c (clone_of_p): Check also former_clone_of as we climb
18702 2021-01-17 Mark Wielaard <mark@klomp.org>
18704 * common.opt (gdwarf-): Init(5).
18705 * doc/invoke.texi (-gdwarf): Document default to 5.
18707 2021-01-16 Kwok Cheung Yeung <kcy@codesourcery.com>
18709 * builtin-types.def
18710 (BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT): Rename
18712 (BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT_PTR):
18713 ...this. Add extra argument.
18714 * gimplify.c (omp_default_clause): Ensure that event handle is
18715 firstprivate in a task region.
18716 (gimplify_scan_omp_clauses): Handle OMP_CLAUSE_DETACH.
18717 (gimplify_adjust_omp_clauses): Likewise.
18718 * omp-builtins.def (BUILT_IN_GOMP_TASK): Change function type to
18719 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT_PTR.
18720 * omp-expand.c (expand_task_call): Add GOMP_TASK_FLAG_DETACH to flags
18721 if detach clause specified. Add detach argument when generating
18723 * omp-low.c (scan_sharing_clauses): Setup data environment for detach
18725 (finish_taskreg_scan): Move field for variable containing the event
18726 handle to the front of the struct.
18727 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DETACH. Fix
18729 * tree-nested.c (convert_nonlocal_omp_clauses): Handle
18730 OMP_CLAUSE_DETACH clause.
18731 (convert_local_omp_clauses): Handle OMP_CLAUSE_DETACH clause.
18732 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_DETACH.
18733 * tree.c (omp_clause_num_ops): Add entry for OMP_CLAUSE_DETACH.
18735 (omp_clause_code_name): Add entry for OMP_CLAUSE_DETACH. Fix
18737 (walk_tree_1): Handle OMP_CLAUSE_DETACH.
18739 2021-01-16 Sebastian Huber <sebastian.huber@embedded-brains.de>
18741 * config/nios2/t-rtems: Reset all MULTILIB_* variables. Shorten
18742 multilib directory names. Use MULTILIB_REQUIRED instead of
18743 MULTILIB_EXCEPTIONS. Add -mhw-mul -mhw-mulx -mhw-div
18744 -mcustom-fpu-cfg=fph2 multilib.
18746 2021-01-16 Sebastian Huber <sebastian.huber@embedded-brains.de>
18748 * config/nios2/nios2.c (NIOS2_FPU_CONFIG_NUM): Adjust value.
18749 (nios2_init_fpu_configs): Provide register values for new
18750 -mcustom-fpu-cfg=fph2 option variant.
18751 * doc/invoke.texi (-mcustom-fpu-cfg=fph2): Document new option
18754 2021-01-16 Sebastian Huber <sebastian.huber@embedded-brains.de>
18756 * config/nios2/nios2.c (nios2_custom_check_insns): Remove
18757 custom instruction warnings.
18759 2021-01-16 Jakub Jelinek <jakub@redhat.com>
18761 PR tree-optimization/96669
18762 * match.pd ((CST << x) & 1 -> x == 0): New simplification.
18764 2021-01-16 Jakub Jelinek <jakub@redhat.com>
18766 PR tree-optimization/96271
18767 * passes.def: Pass false argument to first two pass_cd_dce
18768 instances and true to last instance. Add comment that
18769 last instance rewrites no longer addressed locals.
18770 * tree-ssa-dce.c (pass_cd_dce): Add update_address_taken_p member and
18772 (pass_cd_dce::set_pass_param): New method.
18773 (pass_cd_dce::execute): Return TODO_update_address_taken from
18774 last cd_dce instance.
18776 2021-01-15 Carl Love <cel@us.ibm.com>
18778 * config/rs6000/altivec.h (vec_mulh, vec_div, vec_dive, vec_mod):
18780 * config/rs6000/altivec.md (VIlong): Move define to file vsx.md.
18781 * config/rs6000/rs6000-builtin.def (DIVES_V4SI, DIVES_V2DI,
18782 DIVEU_V4SI, DIVEU_V2DI, DIVS_V4SI, DIVS_V2DI, DIVU_V4SI,
18783 DIVU_V2DI, MODS_V2DI, MODS_V4SI, MODU_V2DI, MODU_V4SI,
18784 MULHS_V2DI, MULHS_V4SI, MULHU_V2DI, MULHU_V4SI, MULLD_V2DI):
18785 Add builtin define.
18786 (MULH, DIVE, MOD): Add new BU_P10_OVERLOAD_2 definitions.
18787 * config/rs6000/rs6000-call.c (VSX_BUILTIN_VEC_DIV,
18788 VSX_BUILTIN_VEC_DIVE, P10_BUILTIN_VEC_MOD, P10_BUILTIN_VEC_MULH):
18789 New overloaded definitions.
18790 (builtin_function_type) [P10V_BUILTIN_DIVEU_V4SI,
18791 P10V_BUILTIN_DIVEU_V2DI, P10V_BUILTIN_DIVU_V4SI,
18792 P10V_BUILTIN_DIVU_V2DI, P10V_BUILTIN_MODU_V2DI,
18793 P10V_BUILTIN_MODU_V4SI, P10V_BUILTIN_MULHU_V2DI,
18794 P10V_BUILTIN_MULHU_V4SI]: Add case
18795 statement for builtins.
18796 * config/rs6000/rs6000.md (bits): Add new attribute sizes V4SI, V2DI.
18797 * config/rs6000/vsx.md (VIlong): Moved from config/rs6000/altivec.md.
18798 (UNSPEC_VDIVES, UNSPEC_VDIVEU): New unspec definitions.
18799 (vsx_mul_v2di): Add if TARGET_POWER10 statement.
18800 (vsx_udiv_v2di): Add if TARGET_POWER10 statement.
18801 (dives_<mode>, diveu_<mode>, div<mode>3, uvdiv<mode>3,
18802 mods_<mode>, modu_<mode>, mulhs_<mode>, mulhu_<mode>, mulv2di3):
18803 Add define_insn, mode is VIlong.
18804 * doc/extend.texi (vec_mulh, vec_mul, vec_div, vec_dive, vec_mod):
18805 Add builtin descriptions.
18807 2021-01-15 Eric Botcazou <ebotcazou@adacore.com>
18809 * final.c (final_start_function_1): Reset force_source_line.
18811 2021-01-15 Jakub Jelinek <jakub@redhat.com>
18813 PR tree-optimization/96669
18814 * match.pd (((1 << A) & 1) != 0 -> A == 0,
18815 ((1 << A) & 1) == 0 -> A != 0): Generalize for 1s replaced by
18816 possibly different power of two constants and to right shift too.
18818 2021-01-15 Jakub Jelinek <jakub@redhat.com>
18820 PR tree-optimization/96681
18821 * match.pd ((x < 0) ^ (y < 0) to (x ^ y) < 0): New simplification.
18822 ((x >= 0) ^ (y >= 0) to (x ^ y) < 0): Likewise.
18823 ((x < 0) ^ (y >= 0) to (x ^ y) >= 0): Likewise.
18824 ((x >= 0) ^ (y < 0) to (x ^ y) >= 0): Likewise.
18826 2021-01-15 Alexandre Oliva <oliva@adacore.com>
18828 * opts.c (gen_command_line_string): Exclude -dumpbase-ext.
18830 2021-01-15 Tamar Christina <tamar.christina@arm.com>
18832 * config/aarch64/aarch64-simd.md (cml<fcmac1><conj_op><mode>4,
18833 cmul<conj_op><mode>3): New.
18834 * config/aarch64/iterators.md (UNSPEC_FCMUL,
18835 UNSPEC_FCMUL180, UNSPEC_FCMLA_CONJ, UNSPEC_FCMLA180_CONJ,
18836 UNSPEC_CMLA_CONJ, UNSPEC_CMLA180_CONJ, UNSPEC_CMUL, UNSPEC_CMUL180,
18837 FCMLA_OP, FCMUL_OP, conj_op, rotsplit1, rotsplit2, fcmac1, sve_rot1,
18838 sve_rot2, SVE2_INT_CMLA_OP, SVE2_INT_CMUL_OP, SVE2_INT_CADD_OP): New.
18839 (rot): Add UNSPEC_FCMUL, UNSPEC_FCMUL180.
18840 (rot_op): Renamed to conj_op.
18841 * config/aarch64/aarch64-sve.md (cml<fcmac1><conj_op><mode>4,
18842 cmul<conj_op><mode>3): New.
18843 * config/aarch64/aarch64-sve2.md (cml<fcmac1><conj_op><mode>4,
18844 cmul<conj_op><mode>3): New.
18846 2021-01-15 David Malcolm <dmalcolm@redhat.com>
18850 (selftest::test_print_parseable_fixits_bytes_vs_display_columns):
18851 Escape the tempfile name when constructing the expected output.
18853 2021-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18855 * config/aarch64/aarch64-simd.md (*aarch64_<su>mlsl_hi<mode>):
18857 (aarch64_<su>mlsl_hi<mode>): ... This.
18858 (aarch64_<su>mlsl_hi<mode>): Define.
18859 (*aarch64_<su>mlsl<mode): Rename to...
18860 (aarch64_<su>mlsl<mode): ... This.
18861 * config/aarch64/aarch64-simd-builtins.def (smlsl, umlsl,
18862 smlsl_hi, umlsl_hi): Define builtins.
18863 * config/aarch64/arm_neon.h (vmlsl_high_s8, vmlsl_high_s16,
18864 vmlsl_high_s32, vmlsl_high_u8, vmlsl_high_u16, vmlsl_high_u32,
18865 vmlsl_s8, vmlsl_s16, vmlsl_s32, vmlsl_u8,
18866 vmlsl_u16, vmlsl_u32): Reimplement with builtins.
18868 2021-01-15 Uroš Bizjak <ubizjak@gmail.com>
18870 * config/i386/i386-c.c (ix86_target_macros):
18871 Use cpp_define_formatted for __SIZEOF_FLOAT80__ definition.
18873 2021-01-15 Richard Sandiford <richard.sandiford@arm.com>
18876 * config.gcc (aarch64*-*-*): Add aarch64-cc-fusion.o to extra_objs.
18877 * Makefile.in (RTL_SSA_H): New variable.
18878 * config/aarch64/t-aarch64 (aarch64-cc-fusion.o): New rule.
18879 * config/aarch64/aarch64-protos.h (make_pass_cc_fusion): Declare.
18880 * config/aarch64/aarch64-passes.def: Add pass_cc_fusion after
18882 * config/aarch64/aarch64-cc-fusion.cc: New file.
18884 2021-01-15 Richard Sandiford <richard.sandiford@arm.com>
18886 * recog.h (insn_change_watermark::~insn_change_watermark): Avoid
18887 calling cancel_changes for changes that no longer exist.
18889 2021-01-15 Richard Sandiford <richard.sandiford@arm.com>
18891 * rtl-ssa/functions.h (function_info::ref_defs): Rename to...
18892 (function_info::reg_defs): ...this.
18893 * rtl-ssa/member-fns.inl (function_info::ref_defs): Rename to...
18894 (function_info::reg_defs): ...this.
18896 2021-01-15 Christophe Lyon <christophe.lyon@linaro.org>
18899 * config/arm/arm_neon.h (vceqz_p64, vceqq_p64, vceqzq_p64): New.
18901 2021-01-15 Christophe Lyon <christophe.lyon@linaro.org>
18904 2021-01-15 Christophe Lyon <christophe.lyon@linaro.org>
18907 * config/arm/arm_neon.h (vceqz_p64, vceqq_p64, vceqzq_p64): New.
18909 2021-01-15 Richard Biener <rguenther@suse.de>
18911 PR tree-optimization/96376
18912 * tree-vect-stmts.c (get_load_store_type): Disregard alignment
18913 for VMAT_INVARIANT.
18915 2021-01-15 Martin Liska <mliska@suse.cz>
18917 * doc/install.texi: Document that some tests need pytest module.
18918 * doc/sourcebuild.texi: Likewise.
18920 2021-01-15 Christophe Lyon <christophe.lyon@linaro.org>
18923 * config/arm/arm_neon.h (vceqz_p64, vceqq_p64, vceqzq_p64): New.
18925 2021-01-15 Christophe Lyon <christophe.lyon@linaro.org>
18927 * config/arm/mve.md (mve_vshrq_n_s<mode>_imm): New entry.
18928 (mve_vshrq_n_u<mode>_imm): Likewise.
18929 * config/arm/neon.md (vashr<mode>3, vlshr<mode>3): Move to ...
18930 * config/arm/vec-common.md: ... here.
18932 2021-01-15 Christophe Lyon <christophe.lyon@linaro.org>
18934 * config/arm/mve.md (mve_vshlq_<supf><mode>): Move to
18936 * config/arm/neon.md (vashl<mode>3): Delete.
18937 * config/arm/vec-common.md (mve_vshlq_<supf><mode>): New.
18938 (vasl<mode>3): New expander.
18940 2021-01-15 Richard Biener <rguenther@suse.de>
18942 PR tree-optimization/98685
18943 * tree-vect-slp.c (vect_schedule_slp_node): Refactor handling
18944 of vector extern defs.
18946 2021-01-14 David Malcolm <dmalcolm@redhat.com>
18949 * diagnostic.c (diagnostic_kind_text): Break out this array
18951 (diagnostic_build_prefix): ...here.
18952 (fancy_abort): Detect when diagnostic_initialize has not yet been
18953 called and fall back to a minimal implementation of printing the
18954 ICE, rather than segfaulting in internal_error.
18956 2021-01-14 David Malcolm <dmalcolm@redhat.com>
18958 * diagnostic.c (diagnostic_initialize): Eliminate
18959 parseable_fixits_p in favor of initializing extra_output_kind from
18960 GCC_EXTRA_DIAGNOSTIC_OUTPUT.
18961 (convert_column_unit): New function, split out from...
18962 (diagnostic_converted_column): ...this.
18963 (print_parseable_fixits): Add "column_unit" and "tabstop" params.
18964 Use them to call convert_column_unit on the column values.
18965 (diagnostic_report_diagnostic): Eliminate conditional on
18966 parseable_fixits_p in favor of a switch statement on
18967 extra_output_kind, passing the appropriate values to the new
18968 params of print_parseable_fixits.
18969 (selftest::test_print_parseable_fixits_none): Update for new
18970 params of print_parseable_fixits.
18971 (selftest::test_print_parseable_fixits_insert): Likewise.
18972 (selftest::test_print_parseable_fixits_remove): Likewise.
18973 (selftest::test_print_parseable_fixits_replace): Likewise.
18974 (selftest::test_print_parseable_fixits_bytes_vs_display_columns):
18976 (selftest::diagnostic_c_tests): Call it.
18977 * diagnostic.h (enum diagnostics_extra_output_kind): New.
18978 (diagnostic_context::parseable_fixits_p): Delete field in favor
18980 (diagnostic_context::extra_output_kind): ...this new field.
18981 * doc/invoke.texi (Environment Variables): Add
18982 GCC_EXTRA_DIAGNOSTIC_OUTPUT.
18983 * opts.c (common_handle_option): Update handling of
18984 OPT_fdiagnostics_parseable_fixits for change to diagnostic_context
18987 2021-01-14 Tamar Christina <tamar.christina@arm.com>
18989 * tree-vect-slp-patterns.c (class complex_operations_pattern,
18990 complex_operations_pattern::matches,
18991 complex_operations_pattern::recognize,
18992 complex_operations_pattern::build): New.
18993 (slp_patterns): Use it.
18995 2021-01-14 Tamar Christina <tamar.christina@arm.com>
18997 * internal-fn.def (COMPLEX_FMS, COMPLEX_FMS_CONJ): New.
18998 * optabs.def (cmls_optab, cmls_conj_optab): New.
18999 * doc/md.texi: Document them.
19000 * tree-vect-slp-patterns.c (class complex_fms_pattern,
19001 complex_fms_pattern::matches, complex_fms_pattern::recognize,
19002 complex_fms_pattern::build): New.
19004 2021-01-14 Tamar Christina <tamar.christina@arm.com>
19006 * internal-fn.def (COMPLEX_FMA, COMPLEX_FMA_CONJ): New.
19007 * optabs.def (cmla_optab, cmla_conj_optab): New.
19008 * doc/md.texi: Document them.
19009 * tree-vect-slp-patterns.c (vect_match_call_p,
19010 class complex_fma_pattern, vect_slp_reset_pattern,
19011 complex_fma_pattern::matches, complex_fma_pattern::recognize,
19012 complex_fma_pattern::build): New.
19014 2021-01-14 Tamar Christina <tamar.christina@arm.com>
19016 * internal-fn.def (COMPLEX_MUL, COMPLEX_MUL_CONJ): New.
19017 * optabs.def (cmul_optab, cmul_conj_optab): New.
19018 * doc/md.texi: Document them.
19019 * tree-vect-slp-patterns.c (vect_match_call_complex_mla,
19020 vect_normalize_conj_loc, is_eq_or_top, vect_validate_multiplication,
19021 vect_build_combine_node, class complex_mul_pattern,
19022 complex_mul_pattern::matches, complex_mul_pattern::recognize,
19023 complex_mul_pattern::build): New.
19025 2021-01-14 Tamar Christina <tamar.christina@arm.com>
19027 * tree-vect-slp.c (optimize_load_redistribution_1): New.
19028 (optimize_load_redistribution, vect_is_slp_load_node): New.
19029 (vect_match_slp_patterns): Use it.
19031 2021-01-14 Tamar Christina <tamar.christina@arm.com>
19033 * tree-vect-slp-patterns.c (complex_add_pattern::build):
19036 2021-01-14 Thomas Schwinge <thomas@codesourcery.com>
19038 * config/gcn/mkoffload.c (main): Create an offload image only in
19039 64-bit configurations.
19041 2021-01-14 H.J. Lu <hjl.tools@gmail.com>
19044 * config/i386/i386-options.c (ix86_option_override_internal):
19045 Issue an error for -fcf-protection with CF_BRANCH when compiling
19046 for 32-bit non-TARGET_CMOV targets.
19048 2021-01-14 Uroš Bizjak <ubizjak@gmail.com>
19051 * config/i386/i386-options.c (ix86_valid_target_attribute_inner_p):
19052 Remove declaration and initialization of shadow variable "ret".
19053 (ix86_option_override_internal): Remove delcaration of
19054 shadow variable "i". Redeclare shadowed variable to unsigned.
19055 * common/config/i386/i386-common.c (pta_size): Redeclare to unsigned.
19056 * config/i386/i386-builtins.c (get_builtin_code_for_version):
19057 Update for redeclaration.
19058 * config/i386/i386.h (pta_size): Ditto.
19060 2021-01-14 Richard Biener <rguenther@suse.de>
19062 PR tree-optimization/98674
19063 * tree-data-ref.c (base_supports_access_fn_components_p): New.
19064 (initialize_data_dependence_relation): For two bases without
19065 possible access fns resort to type size equality when determining
19066 shape compatibility.
19068 2021-01-14 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
19071 * config/arm/arm_neon.h: Replace calls to __builtin_vcge* by
19072 <=, >= operators in vcle and vcge intrinsics respectively.
19073 * config/arm/arm_neon_builtins.def: Remove entry for
19076 2021-01-14 Uroš Bizjak <ubizjak@gmail.com>
19079 * config/i386/i386-options.c (ix86_function_specific_save):
19080 Remove redundant assignment to opts->x_ix86_branch_cost.
19081 * config/i386/i386.c (ix86_prefetch_sse):
19082 Rename from x86_prefetch_sse. Update all uses.
19083 * config/i386/i386.h: Update for rename.
19084 * config/i386/i386-options.h: Ditto.
19086 2021-01-14 Jakub Jelinek <jakub@redhat.com>
19089 * config/i386/sse.md (*sse4_1_zero_extendv8qiv8hi2_3,
19090 *sse4_1_zero_extendv4hiv4si2_3, *sse4_1_zero_extendv2siv2di2_3):
19091 Use Bm instead of m for non-avx. Add isa attribute.
19093 2021-01-14 Jakub Jelinek <jakub@redhat.com>
19095 PR tree-optimization/96688
19096 * match.pd (~(X >> Y) -> ~X >> Y): New simplification if
19097 ~X can be simplified.
19099 2021-01-14 Richard Sandiford <richard.sandiford@arm.com>
19101 * tree-vect-stmts.c (vect_model_load_cost): Account for unused
19102 IFN_LOAD_LANES results.
19104 2021-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19106 * config/aarch64/aarch64-simd.md (aarch64_<su>xtl<mode>):
19108 (aarch64_xtn<mode>): Likewise.
19109 * config/aarch64/aarch64-simd-builtins.def (sxtl, uxtl, xtn):
19112 * config/aarch64/arm_neon.h (vmovl_s8): Reimplement using
19114 (vmovl_s16): Likewise.
19115 (vmovl_s32): Likewise.
19116 (vmovl_u8): Likewise.
19117 (vmovl_u16): Likewise.
19118 (vmovl_u32): Likewise.
19119 (vmovn_s16): Likewise.
19120 (vmovn_s32): Likewise.
19121 (vmovn_s64): Likewise.
19122 (vmovn_u16): Likewise.
19123 (vmovn_u32): Likewise.
19124 (vmovn_u64): Likewise.
19126 2021-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19128 * config/aarch64/aarch64-simd.md (aarch64_<su>qxtn2<mode>_le):
19130 (aarch64_<su>qxtn2<mode>_be): Likewise.
19131 (aarch64_<su>qxtn2<mode>): Likewise.
19132 * config/aarch64/aarch64-simd-builtins.def (sqxtn2, uqxtn2):
19134 * config/aarch64/iterators.md (SAT_TRUNC): Define code_iterator.
19135 (su): Handle ss_truncate and us_truncate.
19136 * config/aarch64/arm_neon.h (vqmovn_high_s16): Reimplement using
19138 (vqmovn_high_s32): Likewise.
19139 (vqmovn_high_s64): Likewise.
19140 (vqmovn_high_u16): Likewise.
19141 (vqmovn_high_u32): Likewise.
19142 (vqmovn_high_u64): Likewise.
19144 2021-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19146 * config/aarch64/aarch64-simd.md (aarch64_xtn2<mode>_le):
19148 (aarch64_xtn2<mode>_be): Likewise.
19149 (aarch64_xtn2<mode>): Likewise.
19150 * config/aarch64/aarch64-simd-builtins.def (xtn2): Define
19152 * config/aarch64/arm_neon.h (vmovn_high_s16): Reimplement using
19154 (vmovn_high_s32): Likewise.
19155 (vmovn_high_s64): Likewise.
19156 (vmovn_high_u16): Likewise.
19157 (vmovn_high_u32): Likewise.
19158 (vmovn_high_u64): Likewise.
19160 2021-01-13 Stafford Horne <shorne@gmail.com>
19162 * config/or1k/or1k.h (ASM_PREFERRED_EH_DATA_FORMAT): New macro.
19164 2021-01-13 Stafford Horne <shorne@gmail.com>
19166 * config/or1k/linux.h (TARGET_ASM_FILE_END): Define macro.
19168 2021-01-13 Stafford Horne <shorne@gmail.com>
19170 * config/or1k/or1k.h (TARGET_CPU_CPP_BUILTINS): Add builtin
19171 define for __or1k_hard_float__.
19173 2021-01-13 Stafford Horne <shorne@gmail.com>
19175 * config/or1k/or1k.h (NO_PROFILE_COUNTERS): Define as 1.
19176 (PROFILE_HOOK): Define to call _mcount.
19177 (FUNCTION_PROFILER): Change from abort to no-op.
19179 2021-01-13 Jakub Jelinek <jakub@redhat.com>
19181 PR tree-optimization/96691
19182 * match.pd ((~X | C) ^ D -> (X | C) ^ (~D ^ C),
19183 (~X & C) ^ D -> (X & C) ^ (D ^ C)): New simplifications if
19184 (~D ^ C) or (D ^ C) can be simplified.
19186 2021-01-13 Richard Biener <rguenther@suse.de>
19188 PR tree-optimization/92645
19189 * match.pd (BIT_FIELD_REF to conversion): Delay canonicalization
19190 until after vector lowering.
19192 2021-01-13 Richard Sandiford <richard.sandiford@arm.com>
19194 * config/aarch64/aarch64-sve.md (fnma<mode>4): Extend from SVE_FULL_I
19196 (@aarch64_pred_fnma<mode>, cond_fnma<mode>, *cond_fnma<mode>_2)
19197 (*cond_fnma<mode>_4, *cond_fnma<mode>_any): Likewise.
19199 2021-01-13 Richard Sandiford <richard.sandiford@arm.com>
19201 * config/aarch64/aarch64-sve.md (fma<mode>4): Extend from SVE_FULL_I
19203 (@aarch64_pred_fma<mode>, cond_fma<mode>, *cond_fma<mode>_2)
19204 (*cond_fma<mode>_4, *cond_fma<mode>_any): Likewise.
19206 2021-01-13 Richard Biener <rguenther@suse.de>
19208 PR tree-optimization/92645
19209 * tree-vect-slp.c (vect_build_slp_tree_1): Relax supported
19210 BIT_FIELD_REF argument.
19211 (vect_build_slp_tree_2): Record the desired vector type
19212 on the external vector def.
19213 (vectorizable_slp_permutation): Handle required punning
19214 of existing vector defs.
19216 2021-01-13 Richard Sandiford <richard.sandiford@arm.com>
19218 * rtl-ssa/accesses.h (def_lookup): Fix order of comparison results.
19220 2021-01-13 Richard Sandiford <richard.sandiford@arm.com>
19222 * config/sh/sh.md (movsf_ie): Remove operands[2] test.
19224 2021-01-13 Samuel Thibault <samuel.thibault@ens-lyon.org>
19226 * config.gcc [$target == *-*-gnu*]: Enable
19227 'default_gnu_indirect_function'.
19229 2021-01-13 Jakub Jelinek <jakub@redhat.com>
19232 * optabs.c (expand_vec_perm_const): Don't force v0 and v1 into
19233 registers before calling targetm.vectorize.vec_perm_const, only after
19235 * config/i386/i386-expand.c (ix86_vectorize_vec_perm_const): Handle
19236 two argument permutation when one operand is zero vector and only
19237 after that force operands into registers.
19238 * config/i386/sse.md (*avx2_zero_extendv16qiv16hi2_1): New
19239 define_insn_and_split pattern.
19240 (*avx512bw_zero_extendv32qiv32hi2_1): Likewise.
19241 (*avx512f_zero_extendv16hiv16si2_1): Likewise.
19242 (*avx2_zero_extendv8hiv8si2_1): Likewise.
19243 (*avx512f_zero_extendv8siv8di2_1): Likewise.
19244 (*avx2_zero_extendv4siv4di2_1): Likewise.
19245 * config/mips/mips.c (mips_vectorize_vec_perm_const): Force operands
19247 * config/arm/arm.c (arm_vectorize_vec_perm_const): Likewise.
19248 * config/sparc/sparc.c (sparc_vectorize_vec_perm_const): Likewise.
19249 * config/ia64/ia64.c (ia64_vectorize_vec_perm_const): Likewise.
19250 * config/aarch64/aarch64.c (aarch64_vectorize_vec_perm_const): Likewise.
19251 * config/rs6000/rs6000.c (rs6000_vectorize_vec_perm_const): Likewise.
19252 * config/gcn/gcn.c (gcn_vectorize_vec_perm_const): Likewise. Use std::swap.
19254 2021-01-13 Martin Liska <mliska@suse.cz>
19256 PR tree-optimization/98455
19257 * gimple-if-to-switch.cc (condition_info::record_phi_mapping):
19258 Record also virtual PHIs.
19259 (pass_if_to_switch::execute): Return TODO_cleanup_cfg only
19262 2021-01-13 Jonathan Wakely <jwakely@redhat.com>
19264 * doc/invoke.texi (C++ Modules): Fix typos.
19266 2021-01-13 Richard Biener <rguenther@suse.de>
19268 PR tree-optimization/98640
19269 * tree-ssa-sccvn.c (visit_nary_op): Do not try to
19270 handle plus or minus from a truncated operand to be
19273 2021-01-13 Jakub Jelinek <jakub@redhat.com>
19276 * config/i386/i386.md (*btr<mode>_1, *btr<mode>_2): New
19277 define_insn_and_split patterns.
19278 (splitter after *btr<mode>_2): New splitter.
19280 2021-01-13 Martin Liska <mliska@suse.cz>
19283 * cgraphunit.c (analyze_functions): Remove dead code.
19285 2021-01-13 Qian Jianhua <qianjh@cn.fujitsu.com>
19287 * config/aarch64/aarch64-cost-tables.h (a64fx_extra_costs): New.
19288 * config/aarch64/aarch64.c (a64fx_addrcost_table): New.
19289 (a64fx_regmove_cost, a64fx_vector_cost): New.
19290 (a64fx_tunings): Use the new added cost tables.
19292 2021-01-13 Jakub Jelinek <jakub@redhat.com>
19295 * config/i386/predicates.md (pmovzx_parallel): New predicate.
19296 * config/i386/sse.md (*sse4_1_zero_extendv8qiv8hi2_3): New
19297 define_insn_and_split pattern.
19298 (*sse4_1_zero_extendv4hiv4si2_3): Likewise.
19299 (*sse4_1_zero_extendv2siv2di2_3): Likewise.
19301 2021-01-13 Julian Brown <julian@codesourcery.com>
19303 * config/gcn/gcn.c (gcn_conditional_register_usage): Remove dead code
19304 to fix v0 register.
19306 2021-01-13 Julian Brown <julian@codesourcery.com>
19308 * config/gcn/gcn.c (gcn_md_reorg): Fix case where EXEC reg is live
19311 2021-01-13 Julian Brown <julian@codesourcery.com>
19313 * config/gcn/gcn-valu.md (recip<mode>2<exec>, recip<mode>2): Use unspec
19314 for reciprocal-approximation instructions.
19315 (div<mode>3): Use fused multiply-accumulate operations for reciprocal
19316 refinement and division result.
19317 * config/gcn/gcn.md (UNSPEC_RCP): New unspec constant.
19319 2021-01-13 Julian Brown <julian@codesourcery.com>
19321 * config/gcn/gcn-valu.md (subdf): Rename to...
19324 2021-01-12 Martin Liska <mliska@suse.cz>
19326 * gcov.c (source_info::debug): Fix printf format for 32-bit hosts.
19328 2021-01-12 Andrea Corallo <andrea.corallo@arm.com>
19330 * function-abi.h: Fix typo.
19332 2021-01-12 Christophe Lyon <christophe.lyon@linaro.org>
19336 * config/arm/arm.h (ARM_HAVE_NEON_V8QI_LDST): New macro.
19337 (ARM_HAVE_NEON_V16QI_LDST, ARM_HAVE_NEON_V4HI_LDST): Likewise.
19338 (ARM_HAVE_NEON_V8HI_LDST, ARM_HAVE_NEON_V2SI_LDST): Likewise.
19339 (ARM_HAVE_NEON_V4SI_LDST, ARM_HAVE_NEON_V4HF_LDST): Likewise.
19340 (ARM_HAVE_NEON_V8HF_LDST, ARM_HAVE_NEON_V4BF_LDST): Likewise.
19341 (ARM_HAVE_NEON_V8BF_LDST, ARM_HAVE_NEON_V2SF_LDST): Likewise.
19342 (ARM_HAVE_NEON_V4SF_LDST, ARM_HAVE_NEON_DI_LDST): Likewise.
19343 (ARM_HAVE_NEON_V2DI_LDST): Likewise.
19344 (ARM_HAVE_V8QI_LDST, ARM_HAVE_V16QI_LDST): Likewise.
19345 (ARM_HAVE_V4HI_LDST, ARM_HAVE_V8HI_LDST): Likewise.
19346 (ARM_HAVE_V2SI_LDST, ARM_HAVE_V4SI_LDST, ARM_HAVE_V4HF_LDST): Likewise.
19347 (ARM_HAVE_V8HF_LDST, ARM_HAVE_V4BF_LDST, ARM_HAVE_V8BF_LDST): Likewise.
19348 (ARM_HAVE_V2SF_LDST, ARM_HAVE_V4SF_LDST, ARM_HAVE_DI_LDST): Likewise.
19349 (ARM_HAVE_V2DI_LDST): Likewise.
19350 * config/arm/mve.md (*movmisalign<mode>_mve_store): New pattern.
19351 (*movmisalign<mode>_mve_load): New pattern.
19352 * config/arm/neon.md (movmisalign<mode>): Move to ...
19353 * config/arm/vec-common.md: ... here.
19355 2021-01-12 Vladimir N. Makarov <vmakarov@redhat.com>
19358 * lra-eliminations.c (eliminate_regs_in_insn): Add transformation
19359 of pattern 'plus (plus (hard reg, const), pseudo)'.
19361 2021-01-12 Richard Biener <rguenther@suse.de>
19363 PR tree-optimization/98550
19364 * tree-vect-slp.c (vect_record_max_nunits): Check whether
19365 the group size is a multiple of the vector element count.
19366 (vect_build_slp_tree_1): When we need to fail because
19367 the vector type choosen causes unrolling do so lazily
19368 without affecting matches only at the end to guide group splitting.
19370 2021-01-12 Martin Liska <mliska@suse.cz>
19373 * optc-save-gen.awk: Compare also n_target_save vars with
19376 2021-01-12 Martin Liska <mliska@suse.cz>
19378 * gcov.c (source_info::debug): New.
19379 (print_usage): Add --debug (-D) option.
19380 (process_args): Likewise.
19381 (generate_results): Call src->debug after
19382 accumulate_line_counts.
19383 (read_graph_file): Properly assign id for EXIT_BLOCK.
19384 * profile.c (branch_prob): Dump function body before it is
19387 2021-01-12 Jakub Jelinek <jakub@redhat.com>
19389 PR tree-optimization/98629
19390 * tree-ssa-math-opts.c (arith_overflow_check_p): Don't update use_stmt
19391 unless returning non-zero.
19393 2021-01-12 Jakub Jelinek <jakub@redhat.com>
19395 PR tree-optimization/95731
19396 * tree-ssa-reassoc.c (optimize_range_tests_cmp_bitwise): Also optimize
19397 x < 0 && y < 0 && z < 0 into (x | y | z) < 0 for signed x, y, z.
19398 (optimize_range_tests): Call optimize_range_tests_cmp_bitwise
19399 only after optimize_range_tests_var_bound.
19401 2021-01-12 Jakub Jelinek <jakub@redhat.com>
19403 * configure.ac: Ensure c/Make-lang.in comes first in @all_lang_makefrags@.
19404 * configure: Regenerated.
19406 2021-01-12 liuhongt <hongtao.liu@intel.com>
19409 * config/i386/i386-builtins.h (BUILTIN_DESC_SWAP_OPERANDS):
19411 * config/i386/i386-expand.c (ix86_expand_sse_comi): Delete
19414 2021-01-12 Alexandre Oliva <oliva@adacore.com>
19416 * ssa-iterators.h (end_imm_use_stmt_traverse): Forward
19418 (auto_end_imm_use_stmt_traverse): New struct.
19419 (FOR_EACH_IMM_USE_STMT): Use it.
19420 (BREAK_FROM_IMM_USE_STMT, RETURN_FROM_IMM_USE_STMT): Remove,
19422 * gimple-ssa-strength-reduction.c: ... here, ...
19423 * graphite-scop-detection.c: ... here, ...
19424 * ipa-modref.c, ipa-pure-const.c, ipa-sra.c: ... here, ...
19425 * tree-predcom.c, tree-ssa-ccp.c: ... here, ...
19426 * tree-ssa-dce.c, tree-ssa-dse.c: ... here, ...
19427 * tree-ssa-loop-ivopts.c, tree-ssa-math-opts.c: ... here, ...
19428 * tree-ssa-phiprop.c, tree-ssa.c: ... here, ...
19429 * tree-vect-slp.c: ... and here, ...
19430 * doc/tree-ssa.texi: ... and the example here.
19432 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
19434 * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3): Extend from
19435 SVE_FULL_I to SVE_I. Generate an UNSPEC_PRED_X.
19436 (*sdiv_pow2<mode>3): New pattern.
19437 (@cond_<sve_int_op><mode>): Extend from SVE_FULL_I to SVE_I.
19438 Wrap the ASRD in an UNSPEC_PRED_X.
19439 (*cond_<sve_int_op><mode>_2): Likewise. Replace the UNSPEC_PRED_X
19440 predicate with a constant PTRUE, if it isn't already.
19441 (*cond_<sve_int_op><mode>_z): Replace with...
19442 (*cond_<sve_int_op><mode>_any): ...this new pattern.
19444 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
19446 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2): Extend from
19447 SVE_FULL_I to SVE_I.
19448 (*cond_bic<mode>_any): Likewise.
19450 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
19452 * config/aarch64/aarch64-sve.md (<su>mul<mode>3_highpart)
19453 (@aarch64_pred_<MUL_HIGHPART:optab><mode>): Extend from SVE_FULL_I
19456 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
19458 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): Extend from
19459 SVE_FULL_I to SVE_I.
19460 (*aarch64_cond_<su>abd<mode>_2): Likewise.
19461 (*aarch64_cond_<su>abd<mode>_any): Likewise.
19462 (@aarch64_pred_<su>abd<mode>): Likewise. Use UNSPEC_PRED_X
19463 for the max and min but not for the minus.
19464 (*aarch64_cond_<su>abd<mode>_3): New pattern.
19466 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
19468 * config/aarch64/iterators.md (SVE_24I): New iterator.
19469 * config/aarch64/aarch64-sve.md (*aarch64_adr<mode>_shift): Extend from
19470 SVE_FULL_SDI to SVE_24I. Use containers rather than elements.
19472 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
19474 * config/aarch64/aarch64-sve.md (@cond_<SVE_INT_BINARY:optab><mode>)
19475 (*cond_<SVE_INT_BINARY:optab><mode>_2): Extend from SVE_FULL_I
19477 (*cond_<SVE_INT_BINARY:optab><mode>_3): Likewise.
19478 (*cond_<SVE_INT_BINARY:optab><mode>_any): Likewise.
19479 (*cond_<SVE_INT_BINARY:optab><mode>_2_const): Likewise.
19480 (*cond_<SVE_INT_BINARY:optab><mode>_any_const): Likewise.
19482 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
19484 * config/aarch64/aarch64-sve.md (<SVE_INT_BINARY_IMM:optab><mode>3)
19485 (@aarch64_pred_<SVE_INT_BINARY_IMM:optab><mode>)
19486 (*post_ra_<SVE_INT_BINARY_IMM:optab><mode>3): Extend from SVE_FULL_I
19489 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
19491 * config/aarch64/aarch64-sve.md (<ASHIFT:optab><mode>3)
19492 (v<ASHIFT:optab><mode>3, @aarch64_pred_<optab><mode>)
19493 (*post_ra_v<ASHIFT:optab><mode>3): Extend from SVE_FULL_I to SVE_I.
19495 2021-01-11 Martin Liska <mliska@suse.cz>
19498 * symtab-clones.h (clone_info::release): Release
19499 symtab::m_clones with ggc_delete as it's a GGC memory.
19501 2021-01-11 Matthias Klose <doko@ubuntu.com>
19503 * Makefile.in (LINK_PROGRESS): Show the link target.
19505 2021-01-11 Richard Biener <rguenther@suse.de>
19507 PR tree-optimization/91403
19508 * tree-vect-data-refs.c (vect_analyze_group_access_1): Cap
19509 single-element interleaving group size at 4096 elements.
19511 2021-01-11 Richard Biener <rguenther@suse.de>
19513 PR tree-optimization/98526
19514 * tree-vect-loop.c (vect_model_reduction_cost): Remove costing
19515 of the actual reduction op for the regular case.
19516 (vectorizable_reduction): Cost the stmts
19517 vect_transform_reduction produces here.
19519 2021-01-11 Andreas Krebbel <krebbel@linux.ibm.com>
19521 * tree-ssa-forwprop.c (simplify_vector_constructor): For
19522 big-endian, use UNPACK[_FLOAT]_HI.
19524 2021-01-11 Tamar Christina <tamar.christina@arm.com>
19526 * tree-vect-slp-patterns.c (class complex_pattern,
19527 class complex_add_pattern): Add parameters to matches.
19528 (complex_add_pattern::build): Free memory.
19529 (complex_add_pattern::matches): Move validation end of match.
19530 (complex_add_pattern::recognize): Likewise.
19532 2021-01-11 Tamar Christina <tamar.christina@arm.com>
19534 * tree-vect-slp-patterns.c (linear_loads_p): Fix externals.
19536 2021-01-11 Tamar Christina <tamar.christina@arm.com>
19538 * tree-vect-slp-patterns.c (is_linear_load_p): Fix ambiguity.
19540 2021-01-11 Jakub Jelinek <jakub@redhat.com>
19542 PR tree-optimization/95867
19543 * tree-ssa-math-opts.h: New header.
19544 * tree-ssa-math-opts.c: Include tree-ssa-math-opts.h.
19545 (powi_as_mults): No longer static. Use build_one_cst instead of
19546 build_real. Formatting fix.
19547 * tree-ssa-reassoc.c: Include tree-ssa-math-opts.h.
19548 (attempt_builtin_powi): Handle multiplication reassociation without
19549 powi_fndecl using powi_as_mults.
19550 (reassociate_bb): For integral types don't require
19551 -funsafe-math-optimizations to call attempt_builtin_powi.
19553 2021-01-11 Jakub Jelinek <jakub@redhat.com>
19555 PR tree-optimization/95852
19556 * tree-ssa-math-opts.c (maybe_optimize_guarding_check): Change
19557 mul_stmts parameter type to vec<gimple *> &. Before cond_stmt
19558 allow in the bb any of the stmts in that vector, div_stmt and
19559 up to 3 cast stmts.
19560 (arith_cast_equal_p): New function.
19561 (arith_overflow_check_p): Add cast_stmt argument, handle signed
19562 multiply overflow checks.
19563 (match_arith_overflow): Adjust caller. Handle signed multiply
19566 2021-01-11 Jakub Jelinek <jakub@redhat.com>
19568 PR tree-optimization/95852
19569 * tree-ssa-math-opts.c (maybe_optimize_guarding_check): New function.
19570 (uaddsub_overflow_check_p): Renamed to ...
19571 (arith_overflow_check_p): ... this. Handle also multiplication
19572 with overflow check.
19573 (match_uaddsub_overflow): Renamed to ...
19574 (match_arith_overflow): ... this. Add cfg_changed argument. Handle
19575 also multiplication with overflow check. Adjust function comment.
19576 (math_opts_dom_walker::after_dom_children): Adjust callers. Call
19577 match_arith_overflow also for MULT_EXPR.
19579 2021-01-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19581 * config/aarch64/arm_neon.h (vmovl_s8): Reimplement using
19582 __builtin_convertvector.
19583 (vmovl_s16): Likewise.
19584 (vmovl_s32): Likewise.
19585 (vmovl_u8): Likewise.
19586 (vmovl_u16): Likewise.
19587 (vmovl_u32): Likewise.
19588 (vmovn_s16): Likewise.
19589 (vmovn_s32): Likewise.
19590 (vmovn_s64): Likewise.
19591 (vmovn_u16): Likewise.
19592 (vmovn_u32): Likewise.
19593 (vmovn_u64): Likewise.
19595 2021-01-11 Martin Liska <mliska@suse.cz>
19597 * gimple-if-to-switch.cc (struct condition_info): Use auto_var.
19598 (if_chain::is_beneficial): Delete clusters
19599 (find_conditions): Make second argument of conditions_in_bbs a
19600 pointer so that we control over it's lifetime.
19601 (pass_if_to_switch::execute): Delete them.
19603 2021-01-11 Kewen Lin <linkw@linux.ibm.com>
19605 * ira.c (move_unallocated_pseudos): Check other_reg and skip if
19608 2021-01-09 Maciej W. Rozycki <macro@linux-mips.org>
19610 * config/vax/vax.md (cc): Remove mode attribute.
19611 (subst_<cc>, subst_f<cc>): Rename to...
19612 (subst_<mode>, subst_f<VAXccnz:mode>): ... these respectively.
19613 (*cbranch<VAXint:mode>4_<VAXcc:mode>): Update for `cc' removal.
19614 (*cbranch<VAXfp:mode>4_<VAXccnz:mode>): Likewise.
19615 (*branch_<mode>, *branch_<mode>_reversed): Likewise.
19617 2021-01-09 Maciej W. Rozycki <macro@linux-mips.org>
19619 * config/vax/vax.md (subst_f<cc>): Add mode to operands and
19620 `const_double_zero'.
19622 2021-01-09 Maciej W. Rozycki <macro@linux-mips.org>
19624 * config/pdp11/pdp11.md (PDPfp): New mode iterator.
19625 (fcc_cc, fcc_ccnz): Use it. Add mode to `const_double_zero' and
19628 2021-01-09 Maciej W. Rozycki <macro@linux-mips.org>
19630 * genemit.c (gen_exp) <CONST_DOUBLE>: Handle `const_double_zero'
19632 * read-rtl.c (rtx_reader::read_rtx_code): Handle machine mode
19633 with `const_double_zero'.
19634 * doc/rtl.texi (Constant Expression Types): Document it.
19636 2021-01-09 Jakub Jelinek <jakub@redhat.com>
19639 * tree-cfg.c (verify_gimple_assign_binary): Allow lhs of
19640 POINTER_DIFF_EXPR to be any integral type.
19642 2021-01-09 Jakub Jelinek <jakub@redhat.com>
19644 PR rtl-optimization/98603
19645 * function.c (instantiate_virtual_regs_in_insn): For asm goto
19646 with impossible constraints, drop all SETs, CLOBBERs, drop PARALLEL
19647 if any, set ASM_OPERANDS mode to VOIDmode and change
19648 ASM_OPERANDS_OUTPUT_CONSTRAINT and ASM_OPERANDS_OUTPUT_IDX.
19650 2021-01-09 Alexandre Oliva <oliva@gnu.org>
19653 * final.c (notice_source_line): Narrow down the condition to
19654 skip a line-0 marker.
19656 2021-01-08 Sergei Trofimovich <siarheit@google.com>
19658 * ipa-modref.c (merge_call_side_effects): Fix
19659 linebreak split by reordering two print calls.
19661 2021-01-08 Ilya Leoshkevich <iii@linux.ibm.com>
19663 * config/s390/vector.md (*tf_to_fprx2_0): Rename from
19664 "*mov_tf_to_fprx2_0" for consistency, fix constraint.
19665 (*tf_to_fprx2_1): Rename from "*mov_tf_to_fprx2_1" for
19666 consistency, fix constraint.
19668 2021-01-08 Ilya Leoshkevich <iii@linux.ibm.com>
19670 * config/s390/s390-c.c (s390_def_or_undef_macro): Accept
19671 callables instead of mask values.
19672 (struct target_flag_set_p): New predicate.
19673 (s390_cpu_cpp_builtins_internal): Define or undefine
19674 __LONG_DOUBLE_VX__ macro.
19676 2021-01-08 H.J. Lu <hjl.tools@gmail.com>
19679 * config/i386/i386.c (x86_function_profiler): Use R10 and R11
19680 to call mcount in large model with PIC for NO_PROFILE_COUNTERS
19683 2021-01-08 Richard Biener <rguenther@suse.de>
19685 * tree-ssa-sccvn.c (pass_fre::execute): Reset the SCEV hash table.
19687 2021-01-08 Richard Biener <rguenther@suse.de>
19689 * tree-vect-slp.c (scalar_stmts_to_slp_tree_map_t): Fix.
19690 (vect_build_slp_tree): On cache hit release the matched
19691 scalar stmts vector.
19692 * tree-vect-stmts.c (vectorizable_store): Properly free
19693 vec_oprnds before possibly gathering them again.
19695 2021-01-08 Richard Biener <rguenther@suse.de>
19697 PR tree-optimization/98544
19698 * tree-vect-slp.c (vect_optimize_slp): Always materialize
19699 permutes at a permute node.
19701 2021-01-08 H.J. Lu <hjl.tools@gmail.com>
19704 * config/i386/i386.c (x86_function_profiler): Use R10 to call
19705 mcount in large model. Sorry for large model with PIC.
19707 2021-01-08 Jakub Jelinek <jakub@redhat.com>
19710 * config/i386/i386.opt (ix86_cmodel, ix86_incoming_stack_boundary_arg,
19711 ix86_pmode, ix86_preferred_stack_boundary_arg, ix86_regparm,
19712 ix86_veclibabi_type): Remove x_ prefix, use TargetVariable instead of
19713 TargetSave and initialize for variables with enum types.
19714 (mfentry, mstack-protector-guard-reg=, mstack-protector-guard-offset=,
19715 mstack-protector-guard-symbol=): Add Save.
19716 * config/i386/i386-options.c (ix86_function_specific_save,
19717 ix86_function_specific_restore): Don't save or restore x_ix86_cmodel,
19718 x_ix86_incoming_stack_boundary_arg, x_ix86_pmode,
19719 x_ix86_preferred_stack_boundary_arg, x_ix86_regparm,
19720 x_ix86_veclibabi_type.
19722 2021-01-08 Richard Sandiford <richard.sandiford@arm.com>
19724 * config/aarch64/aarch64-sve.md (*cnot<mode>): Extend from
19725 SVE_FULL_I to SVE_I.
19726 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
19728 2021-01-08 Richard Sandiford <richard.sandiford@arm.com>
19730 * config/aarch64/aarch64-sve.md (*cond_uxt<mode>_2): Extend from
19731 SVE_FULL_I to SVE_I.
19732 (*cond_uxt<mode>_any): Likewise.
19734 2021-01-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19736 * config/aarch64/iterators.md (Vwhalf): New iterator.
19737 * config/aarch64/aarch64-simd.md (aarch64_<sur>adalp<mode>_3):
19739 (aarch64_<sur>adalp<mode>): ... This. Make more
19741 (<sur>sadv16qi): Adjust callsite of the above.
19742 * config/aarch64/aarch64-simd-builtins.def (sadalp, uadalp): New
19744 * config/aarch64/arm_neon.h (vpadal_s8): Reimplement using
19746 (vpadal_s16): Likewise.
19747 (vpadal_u8): Likewise.
19748 (vpadal_u16): Likewise.
19749 (vpadalq_s8): Likewise.
19750 (vpadalq_s16): Likewise.
19751 (vpadalq_s32): Likewise.
19752 (vpadalq_u8): Likewise.
19753 (vpadalq_u16): Likewise.
19754 (vpadalq_u32): Likewise.
19756 2021-01-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19758 * config/aarch64/aarch64-simd.md (aarch64_<su>abd<mode>_3):
19760 (aarch64_<su>abd<mode>): ... This.
19761 (<sur>sadv16qi): Adjust callsite of the above.
19762 * config/aarch64/aarch64-simd-builtins.def (sabd, uabd): Define
19764 * config/aarch64/arm_neon.h (vabd_s8): Reimplement using
19766 (vabd_s16): Likewise.
19767 (vabd_s32): Likewise.
19768 (vabd_u8): Likewise.
19769 (vabd_u16): Likewise.
19770 (vabd_u32): Likewise.
19771 (vabdq_s8): Likewise.
19772 (vabdq_s16): Likewise.
19773 (vabdq_s32): Likewise.
19774 (vabdq_u8): Likewise.
19775 (vabdq_u16): Likewise.
19776 (vabdq_u32): Likewise.
19778 2021-01-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19780 * config/aarch64/aarch64-simd-builtins.def (saba, uaba): Define
19782 * config/aarch64/arm_neon.h (vaba_s8): Implement using builtin.
19783 (vaba_s16): Likewise.
19784 (vaba_s32): Likewise.
19785 (vaba_u8): Likewise.
19786 (vaba_u16): Likewise.
19787 (vaba_u32): Likewise.
19788 (vabaq_s8): Likewise.
19789 (vabaq_s16): Likewise.
19790 (vabaq_s32): Likewise.
19791 (vabaq_u8): Likewise.
19792 (vabaq_u16): Likewise.
19793 (vabaq_u32): Likewise.
19795 2021-01-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19797 * config/aarch64/aarch64-simd.md (aba<mode>_3): Rename to...
19798 (aarch64_<su>aba<mode>): ... This. Handle uaba as well.
19799 Change RTL pattern to match.
19801 2021-01-08 Kito Cheng <kito.cheng@sifive.com>
19803 * common/config/riscv/riscv-common.c (riscv_current_subset_list): New.
19804 * config/riscv/riscv-c.c (riscv-subset.h): New.
19805 (INCLUDE_STRING): Define.
19806 (riscv_cpu_cpp_builtins): Add new style architecture extension
19808 * config/riscv/riscv-subset.h (riscv_subset_list::begin): New.
19809 (riscv_subset_list::end): New.
19810 (riscv_current_subset_list): New.
19812 2021-01-08 Kito Cheng <kito.cheng@sifive.com>
19814 * common/config/riscv/riscv-common.c (RISCV_DONT_CARE_VERSION):
19815 Move to riscv-subset.h.
19816 (struct riscv_subset_t): Ditto.
19817 (class riscv_subset_list): Ditto.
19818 * config/riscv/riscv-subset.h (RISCV_DONT_CARE_VERSION): Move
19819 from riscv-common.c.
19820 (struct riscv_subset_t): Ditto.
19821 (class riscv_subset_list): Ditto.
19822 * config/riscv/t-riscv ($(common_out_file)): Add file
19825 2021-01-07 Jakub Jelinek <jakub@redhat.com>
19828 * config/i386/i386.md (*bmi_blsi_<mode>_cmp, *bmi_blsi_<mode>_ccno):
19829 New define_insn patterns.
19831 2021-01-07 Richard Sandiford <richard.sandiford@arm.com>
19833 * config/aarch64/aarch64-sve.md (@cond_<SVE_INT_UNARY:optab><mode>)
19834 (*cond_<SVE_INT_UNARY:optab><mode>_2): Extend from SVE_FULL_I to SVE_I.
19835 (*cond_<SVE_INT_UNARY:optab><mode>_any): Likewise.
19837 2021-01-07 Richard Sandiford <richard.sandiford@arm.com>
19839 PR tree-optimization/98560
19840 * internal-fn.def (IFN_VCONDU, IFN_VCONDEQ): Use type vec_cond.
19841 * internal-fn.c (vec_cond_mask_direct): Get the data mode from
19843 (vec_cond_direct): Likewise argument 2.
19844 (vec_condu_direct, vec_condeq_direct): Delete.
19845 (expand_vect_cond_optab_fn): Rename to...
19846 (expand_vec_cond_optab_fn): ...this, replacing old macro.
19847 (expand_vec_condu_optab_fn, expand_vec_condeq_optab_fn): Delete.
19848 (expand_vect_cond_mask_optab_fn): Rename to...
19849 (expand_vec_cond_mask_optab_fn): ...this, replacing old macro.
19850 (direct_vec_cond_mask_optab_supported_p): Treat the optab as a
19852 (direct_vec_cond_optab_supported_p): Likewise.
19853 (direct_vec_condu_optab_supported_p): Delete.
19854 (direct_vec_condeq_optab_supported_p): Delete.
19855 * gimple-isel.cc: Include internal-fn.h.
19856 (gimple_expand_vec_cond_expr): Check that IFN_VCONDEQ is supported
19859 2021-01-07 Richard Sandiford <richard.sandiford@arm.com>
19861 PR tree-optimization/98560
19862 * gimple-isel.cc (gimple_expand_vec_cond_expr): If we fail to use
19863 IFN_VCOND{,U,EQ}, fall back on IFN_VCOND_MASK.
19865 2021-01-07 Uroš Bizjak <ubizjak@gmail.com>
19867 * config/i386/i386.md (insn): Merge from plusminus_insn, shift_insn,
19868 rotate_insn and optab code attributes.
19869 Update all uses to merged code attribute.
19870 * config/i386/sse.md: Update all uses to merged code attribute.
19871 * config/i386/mmx.md: Update all uses to merged code attribute.
19873 2021-01-07 Jakub Jelinek <jakub@redhat.com>
19875 PR tree-optimization/98568
19876 * gimple-ssa-store-merging.c (bswap_view_convert): New function.
19877 (bswap_replace): Use it.
19879 2021-01-06 Vladimir N. Makarov <vmakarov@redhat.com>
19881 PR rtl-optimization/97978
19882 * lra-int.h (lra_hard_reg_split_p): New external.
19883 * lra.c (lra_hard_reg_split_p): New global.
19884 (lra): Set up lra_hard_reg_split_p after splitting a hard reg.
19885 * lra-assigns.c (lra_assign): Don't check allocation correctness
19886 after hard reg splitting.
19888 2021-01-06 Martin Sebor <msebor@redhat.com>
19891 * builtins.c (new_delete_mismatch_p): New overload.
19892 (new_delete_mismatch_p (tree, tree)): Call it.
19894 2021-01-06 Alexandre Oliva <oliva@adacore.com>
19896 * Makefile.in (T_GLIMITS_H): New.
19897 (stmp-int-hdrs): Depend on it, use it.
19898 * config/t-vxworks (T_GLIMITS_H): Override it.
19899 (vxw-glimits.h): New.
19901 2021-01-06 Richard Biener <rguenther@suse.de>
19903 PR tree-optimization/98513
19904 * value-range.cc (intersect_ranges): Compare the upper bounds
19905 for the expected relation.
19907 2021-01-06 Gerald Pfeifer <gerald@pfeifer.com>
19910 2020-12-28 Gerald Pfeifer <gerald@pfeifer.com>
19912 * doc/standards.texi (HSAIL): Remove section.
19914 2021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
19916 * configure: Re-generate.
19918 2021-01-05 Jakub Jelinek <jakub@redhat.com>
19920 * doc/invoke.texi (-std=c++20): Adjust for the publication of
19921 ISO 14882:2020 standard.
19922 * doc/standards.texi: Likewise.
19924 2021-01-05 Jakub Jelinek <jakub@redhat.com>
19926 PR tree-optimization/94802
19927 * expr.h (maybe_optimize_sub_cmp_0): Declare.
19928 * expr.c: Include tree-pretty-print.h and flags.h.
19929 (maybe_optimize_sub_cmp_0): New function.
19930 (do_store_flag): Use it.
19931 * cfgexpand.c (expand_gimple_cond): Likewise.
19933 2021-01-05 Richard Sandiford <richard.sandiford@arm.com>
19935 * mux-utils.h (pointer_mux::m_ptr): Tweak description of contents.
19936 * rtlanal.c (simple_regno_set): Tweak description to clarify the
19939 2021-01-05 Richard Biener <rguenther@suse.de>
19941 PR tree-optimization/98516
19942 * tree-vect-slp.c (vect_optimize_slp): Permute the incoming
19943 lanes when materializing on a VEC_PERM node.
19944 (vectorizable_slp_permutation): Dump the permute properly.
19946 2021-01-05 Richard Biener <rguenther@suse.de>
19948 * tree-vect-slp.c (vect_slp_region): Move debug counter
19949 to cover individual subgraphs.
19951 2021-01-05 Richard Biener <rguenther@suse.de>
19953 PR tree-optimization/98428
19954 * tree-vect-slp.c (vect_build_slp_tree_1): Properly reject
19955 vector lane extracts for loop vectorization.
19957 2021-01-05 Jakub Jelinek <jakub@redhat.com>
19959 PR tree-optimization/98514
19960 * tree-ssa-reassoc.c (bb_rank): Change type from long * to
19962 (operand_rank): Change type from hash_map<tree, long> to
19963 hash_map<tree, int64_t>.
19964 (phi_rank): Change return type from long to int64_t.
19965 (loop_carried_phi): Change block_rank variable type from long to
19967 (propagate_rank): Change return type, rank parameter type and
19968 op_rank variable type from long to int64_t.
19969 (find_operand_rank): Change return type from long to int64_t
19970 and change slot variable type from long * to int64_t *.
19971 (insert_operand_rank): Change rank parameter type from long to
19973 (get_rank): Change return type and rank variable type from long to
19974 int64_t. Use PRId64 instead of ld to print the rank.
19975 (init_reassoc): Change rank variable type from long to int64_t
19976 and adjust correspondingly bb_rank and operand_rank initialization.
19978 2021-01-05 Jakub Jelinek <jakub@redhat.com>
19980 PR tree-optimization/96928
19981 * tree-ssa-phiopt.c (xor_replacement): New function.
19982 (tree_ssa_phiopt_worker): Call it.
19984 2021-01-05 Jakub Jelinek <jakub@redhat.com>
19986 PR tree-optimization/96930
19987 * match.pd ((A / (1 << B)) -> (A >> B)): If A is extended
19988 from narrower value which has the same type as 1 << B, perform
19989 the right shift on the narrower value followed by extension.
19991 2021-01-05 Jakub Jelinek <jakub@redhat.com>
19993 PR tree-optimization/96239
19994 * gimple-ssa-store-merging.c (maybe_optimize_vector_constructor): New
19996 (get_status_for_store_merging): Don't return BB_INVALID for blocks
19997 with potential bswap optimizable CONSTRUCTORs.
19998 (pass_store_merging::execute): Optimize vector CONSTRUCTORs with bswap
20001 2021-01-05 Richard Biener <rguenther@suse.de>
20003 PR tree-optimization/98381
20004 * tree.c (vector_element_bits): Properly compute bool vector
20006 * tree-vect-loop.c (vectorizable_live_operation): Properly
20007 compute the last lane bit offset.
20009 2021-01-05 Uroš Bizjak <ubizjak@gmail.com>
20012 * config/i386/sse.md (sse_cvtps2pi): Redefine as define_insn_and_split.
20013 Clear the top 64 bytes of the input XMM register.
20014 (sse_cvttps2pi): Ditto.
20016 2021-01-05 Uroš Bizjak <ubizjak@gmail.com>
20019 * config/i386/xopintrin.h (_mm256_cmov_si256): New.
20021 2021-01-05 H.J. Lu <hjl.tools@gmail.com>
20024 * config/i386/xmmintrin.h (_mm_extract_pi16): Cast to unsigned
20027 2021-01-05 Claudiu Zissulescu <claziss@synopsys.com>
20029 * config/arc/arc.md (maddsidi4_split): Use ACC_REG_FIRST.
20030 (umaddsidi4_split): Likewise.
20032 2021-01-05 liuhongt <hongtao.liu@intel.com>
20035 * config/i386/sse.md (*sse2_pmovskb_zexthisi): New
20036 define_insn_and_split for zero_extend of subreg HI of pmovskb
20038 (*sse2_pmovskb_zexthisi): Add new combine splitters for
20039 zero_extend of not of subreg HI of pmovskb result.
20041 2021-01-05 Richard Sandiford <richard.sandiford@arm.com>
20044 * explow.c (convert_memory_address_addr_space_1): Handle UNSPECs
20046 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Use
20047 convert_memory_address to convert symbolic immediates to ptr_mode
20048 before forcing them to memory.
20050 2021-01-05 Richard Sandiford <richard.sandiford@arm.com>
20052 PR rtl-optimization/97144
20053 * recog.c (constrain_operands): Initialize matching_operand
20054 for each alternative, rather than only doing it once.
20056 2021-01-05 Richard Sandiford <richard.sandiford@arm.com>
20058 PR rtl-optimization/98403
20059 * rtl-ssa/changes.cc (function_info::finalize_new_accesses): Explain
20060 why we don't remove call clobbers.
20061 (function_info::apply_changes_to_insn): Don't attempt to add
20062 call clobbers here.
20064 2021-01-05 Richard Sandiford <richard.sandiford@arm.com>
20066 PR tree-optimization/98371
20067 * tree-vect-loop.c (vect_reanalyze_as_main_loop): New function.
20068 (vect_analyze_loop): If an epilogue loop appears to be cheaper
20069 than the main loop, re-analyze it as a main loop before adopting
20072 2021-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20075 * configure.ac (NETLIBS): Determine using AX_LIB_SOCKET_NSL.
20076 * aclocal.m4, configure: Regenerate.
20077 * Makefile.in (NETLIBS): Define.
20078 (BACKEND): Remove $(CODYLIB).
20080 2021-01-05 Jakub Jelinek <jakub@redhat.com>
20082 PR rtl-optimization/98334
20083 * simplify-rtx.c (simplify_context::simplify_binary_operation_1):
20084 Optimize (X - 1) * Y + Y to X * Y or (X + 1) * Y - Y to X * Y.
20086 2021-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
20088 * tree-inline.c (expand_call_inline): Restore input_location.
20089 Return result from recursive call.
20091 2021-01-04 Richard Sandiford <richard.sandiford@arm.com>
20093 PR tree-optimization/95401
20094 * config/aarch64/aarch64-sve-builtins.cc
20095 (gimple_folder::load_store_cookie): Use bits rather than bytes
20096 for the alignment argument to IFN_MASK_LOAD and IFN_MASK_STORE.
20097 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref): Likewise.
20098 * tree-vect-stmts.c (vectorizable_store): Likewise.
20099 (vectorizable_load): Likewise.
20101 2021-01-04 Richard Biener <rguenther@suse.de>
20103 PR tree-optimization/98308
20104 * tree-vect-stmts.c (vectorizable_load): Set invariant mask
20107 2021-01-04 Jakub Jelinek <jakub@redhat.com>
20109 PR tree-optimization/95771
20110 * tree-ssa-loop-niter.c (number_of_iterations_popcount): Handle types
20111 with precision smaller than int's precision and types with precision
20112 twice as large as long long. Formatting fixes.
20114 2021-01-04 Richard Biener <rguenther@suse.de>
20116 PR tree-optimization/98464
20117 * tree-ssa-sccvn.c (vn_valueize_for_srt): Rename from ...
20118 (vn_valueize_wrapper): ... this. Temporarily adjust vn_context_bb.
20119 (process_bb): Adjust.
20121 2021-01-04 Matthew Malcomson <matthew.malcomson@arm.com>
20124 * doc/invoke.texi (-fsanitize=address): Fix wording describing
20125 clash with -fsanitize=hwaddress.
20127 2021-01-04 Richard Biener <rguenther@suse.de>
20129 PR tree-optimization/98282
20130 * tree-ssa-sccvn.c (vn_get_stmt_kind): Classify tcc_reference on
20131 invariants as VN_NARY.
20133 2021-01-04 Richard Sandiford <richard.sandiford@arm.com>
20136 * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Accept
20137 aarch64_simd_reg_or_zero for operand 2. Use the combinez patterns
20138 to handle zero operands.
20140 2021-01-04 Richard Sandiford <richard.sandiford@arm.com>
20142 * config/aarch64/aarch64.c (offset_6bit_signed_scaled_p): New function.
20143 (offset_6bit_unsigned_scaled_p): Fix typo in comment.
20144 (aarch64_sve_prefetch_operand_p): Accept MUL VLs in the range
20147 2021-01-04 Richard Biener <rguenther@suse.de>
20149 PR tree-optimization/98393
20150 * tree-vect-slp.c (vect_build_slp_tree): Properly zero matches
20151 when hitting the limit.
20153 2021-01-04 Richard Biener <rguenther@suse.de>
20155 PR tree-optimization/98291
20156 * tree-vect-loop.c (vectorizable_reduction): Bypass
20157 associativity check for SLP reductions with VF 1.
20159 2021-01-04 Jakub Jelinek <jakub@redhat.com>
20161 PR tree-optimization/96782
20162 * match.pd (x == ~x -> false, x != ~x -> true): New simplifications.
20164 2021-01-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
20166 * collect-utils.c (collect_execute): Check dumppfx.
20167 * collect2.c (maybe_run_lto_and_relink, do_link): Pass atsuffix
20168 to collect_execute.
20169 (do_link): Add new parameter atsuffix.
20170 (main): Handle -dumpdir option. Skip one argument for
20171 -o, -isystem and -B options.
20172 * gcc.c (make_at_file): New helper function.
20173 (close_at_file): Use it.
20175 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
20177 * config/darwin.h (MIN_LD64_NO_COAL_SECTS): Adjust.
20178 Amend handling for LD64_VERSION fallback defaults.
20180 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
20182 * config.gcc: Compute default version information
20183 from the configured target. Likewise defaults for
20185 * config/darwin10.h: Removed.
20186 * config/darwin12.h: Removed.
20187 * config/darwin9.h: Removed.
20188 * config/rs6000/darwin8.h: Removed.
20190 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
20192 * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Delete.
20194 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
20196 * config/darwin9.h (STACK_CHECK_STATIC_BUILTIN): Move from here..
20197 * config/darwin.h (STACK_CHECK_STATIC_BUILTIN): .. to here.
20199 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
20201 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move from
20203 * config/darwin.h (LINK_GCC_C_SEQUENCE_SPEC): ... to here.
20205 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
20207 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move the spec
20208 for the Darwin10 unwinder stub from here ...
20209 * config/darwin.h (LINK_COMMAND_SPEC_A): ... to here.
20211 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
20213 * config/darwin.h (DSYMUTIL_SPEC): Default to DWARF
20214 (ASM_DEBUG_SPEC):Only define if the assembler supports
20216 (PREFERRED_DEBUGGING_TYPE): Default to DWARF.
20217 (DARWIN_PREFER_DWARF): Define.
20218 * config/darwin9.h (PREFERRED_DEBUGGING_TYPE): Remove.
20219 (DARWIN_PREFER_DWARF): Likewise
20220 (DSYMUTIL_SPEC): Likewise.
20221 (COLLECT_RUN_DSYMUTIL): Likewise.
20222 (ASM_DEBUG_SPEC): Likewise.
20223 (ASM_DEBUG_OPTION_SPEC): Likewise.
20225 2021-01-02 Jan Hubicka <jh@suse.cz>
20227 * cfg.c (free_block): ggc_free bb.
20229 2021-01-01 Jakub Jelinek <jakub@redhat.com>
20231 * gcc.c (process_command): Update copyright notice dates.
20232 * gcov-dump.c (print_version): Ditto.
20233 * gcov.c (print_version): Ditto.
20234 * gcov-tool.c (print_version): Ditto.
20235 * gengtype.c (create_file): Ditto.
20236 * doc/cpp.texi: Bump @copying's copyright year.
20237 * doc/cppinternals.texi: Ditto.
20238 * doc/gcc.texi: Ditto.
20239 * doc/gccint.texi: Ditto.
20240 * doc/gcov.texi: Ditto.
20241 * doc/install.texi: Ditto.
20242 * doc/invoke.texi: Ditto.
20244 2021-01-01 Jakub Jelinek <jakub@redhat.com>
20246 * ChangeLog-2020: Rotate ChangeLog. New file.
20249 Copyright (C) 2021 Free Software Foundation, Inc.
20251 Copying and distribution of this file, with or without modification,
20252 are permitted in any medium without royalty provided the copyright
20253 notice and this notice are preserved.