]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/ChangeLog
Daily bump.
[thirdparty/gcc.git] / gcc / ChangeLog
1 2021-09-02 Martin Sebor <msebor@redhat.com>
2
3 PR tree-optimization/17506
4 PR testsuite/37182
5 * tree-ssa-uninit.c (warn_uninit): Remove conditional guarding note.
6
7 2021-09-02 Richard Biener <rguenther@suse.de>
8
9 * tree-ssa-loop-im.c (fill_always_executed_in_1): Refine
10 fix for PR78185 and continue processing when leaving
11 finite inner loops.
12
13 2021-09-02 Jakub Jelinek <jakub@redhat.com>
14
15 PR tree-optimization/99591
16 * match.pd: Demote operands of IFN_{ADD,SUB,MUL}_OVERFLOW if they
17 were promoted.
18
19 2021-09-02 Richard Biener <rguenther@suse.de>
20
21 Revert:
22 2021-09-02 Richard Biener <rguenther@suse.de>
23
24 PR tree-optimization/102155
25 * tree-ssa-loop-im.c (fill_always_executed_in_1): Iterate
26 over a part of the RPO array and do not recurse here.
27 Dump blocks marked as always executed.
28 (fill_always_executed_in): Walk over the RPO array and
29 process loops whose header we run into.
30 (loop_invariant_motion_in_fun): Compute the first RPO
31 using rev_post_order_and_mark_dfs_back_seme in iteration
32 order and pass that to fill_always_executed_in.
33
34 2021-09-02 liuhongt <hongtao.liu@intel.com>
35
36 * config/i386/i386-modes.def (FLOAT_MODE): Define ieee HFmode.
37 * config/i386/i386.c (enum x86_64_reg_class): Add
38 X86_64_SSEHF_CLASS.
39 (merge_classes): Handle X86_64_SSEHF_CLASS.
40 (examine_argument): Ditto.
41 (construct_container): Ditto.
42 (classify_argument): Ditto, and set HFmode/HCmode to
43 X86_64_SSEHF_CLASS.
44 (function_value_32): Return _FLoat16/Complex Float16 by
45 %xmm0.
46 (function_value_64): Return _Float16/Complex Float16 by SSE
47 register.
48 (ix86_print_operand): Handle CONST_DOUBLE HFmode.
49 (ix86_secondary_reload): Require gpr as intermediate register
50 to store _Float16 from sse register when sse4 is not
51 available.
52 (ix86_libgcc_floating_mode_supported_p): Enable _FLoat16 under
53 sse2.
54 (ix86_scalar_mode_supported_p): Ditto.
55 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Defined.
56 * config/i386/i386.h (VALID_SSE2_REG_MODE): Add HFmode.
57 (VALID_INT_MODE_P): Add HFmode and HCmode.
58 * config/i386/i386.md (*pushhf_rex64): New define_insn.
59 (*pushhf): Ditto.
60 (*movhf_internal): Ditto.
61 * doc/extend.texi (Half-Precision Floating Point): Documemt
62 _Float16 for x86.
63
64 2021-09-02 Richard Biener <rguenther@suse.de>
65
66 PR tree-optimization/102155
67 * tree-ssa-loop-im.c (fill_always_executed_in_1): Iterate
68 over a part of the RPO array and do not recurse here.
69 Dump blocks marked as always executed.
70 (fill_always_executed_in): Walk over the RPO array and
71 process loops whose header we run into.
72 (loop_invariant_motion_in_fun): Compute the first RPO
73 using rev_post_order_and_mark_dfs_back_seme in iteration
74 order and pass that to fill_always_executed_in.
75
76 2021-09-02 YunQiang Su <syq@debian.org>
77
78 Revert:
79 2021-08-31 YunQiang Su <yunqiang.su@cipunited.com>
80
81 * config/mips/mips.c (mips_module_isa_name): New.
82 mips_file_start: add .module mipsREV to all asm output
83
84 2021-09-01 Jeff Law <jlaw@localhost.localdomain>
85
86 PR tree-optimization/102152
87 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Reduce a vector
88 comparison to a scalar comparison before calling
89 update_stmt_if_modified.
90
91 2021-09-01 Andrew Pinski <apinski@marvell.com>
92
93 PR target/101934
94 * config/aarch64/aarch64.c (aarch64_expand_setmem):
95 Check STRICT_ALIGNMENT before creating an overlapping
96 store.
97
98 2021-09-01 Martin Sebor <msebor@redhat.com>
99
100 * gimple-ssa-warn-access.cc (get_size_range): Add argument.
101 (check_access): Pass additional argument.
102 (check_memop_access): Remove template and make a member function.
103 (maybe_check_dealloc_call): Make a pass_waccess member function.
104 (class pass_waccess): Add, rename, and remove members.
105 (pass_waccess::pass_waccess): Adjust to name change.
106 (pass_waccess::~pass_waccess): Same.
107 (check_alloca): Make a member function.
108 (check_alloc_size_call): Same.
109 (check_strcat): Same.
110 (check_strncat): Same.
111 (check_stxcpy): Same.
112 (check_stxncpy): Same.
113 (check_strncmp): Same.
114 (maybe_warn_rdwr_sizes): Rename...
115 (pass_waccess::maybe_check_access_sizes): ...to this.
116 (pass_waccess::check_call): Adjust to name changes.
117 (pass_waccess::maybe_check_dealloc_call): Make a pass_waccess member
118 function.
119 (pass_waccess::execute): Adjust to name changes.
120 * gimple-ssa-warn-access.h (check_memop_access): Remove.
121 * pointer-query.cc (access_ref::phi): Handle null pointer.
122 (access_ref::inform_access): Same.
123 (pointer_query::put_ref): Modify a cached value, not a copy of it.
124 (pointer_query::dump): New function.
125 (compute_objsize_r): Avoid overwriting access_ref::bndrng. Cache
126 more results.
127 * pointer-query.h (pointer_query::dump): Declare.
128 * tree-ssa-strlen.c (get_range): Simplify. Use function query.
129 (dump_strlen_info): Use function query.
130 (printf_strlen_execute): Factor code out into pointer_query::put_ref.
131
132 2021-09-01 Thomas Schwinge <thomas@codesourcery.com>
133
134 * tree.c (walk_tree_1) <OMP_CLAUSE>: Simplify.
135
136 2021-09-01 Iain Sandoe <iain@sandoe.co.uk>
137
138 * doc/extend.texi: Document unavailable attribute.
139 * print-tree.c (print_node): Handle unavailable attribute.
140 * tree-core.h (struct tree_base): Add a bit to carry unavailability.
141 * tree.c (error_unavailable_use): New.
142 * tree.h (TREE_UNAVAILABLE): New.
143 (error_unavailable_use): New.
144
145 2021-09-01 Jakub Jelinek <jakub@redhat.com>
146
147 PR tree-optimization/102124
148 * tree-vect-patterns.c (vect_recog_widen_op_pattern): For ORIG_CODE
149 MINUS_EXPR, if itype is unsigned with smaller precision than type,
150 add an extra cast to signed variant of itype to ensure sign-extension.
151
152 2021-09-01 Martin Liska <mliska@suse.cz>
153
154 * graph.c (draw_cfg_node_succ_edges): Do not color fallthru
155 edges and rather use colors for TRUE and FALSE edges.
156
157 2021-09-01 Richard Biener <rguenther@suse.de>
158
159 PR tree-optimization/93491
160 * tree-ssa-pre.c (compute_avail): Set BB_MAY_NOTRETURN
161 after processing the stmt itself. Do not consider
162 pure functions possibly not returning. Properly avoid
163 adding possibly trapping calls to EXP_GEN when there's
164 a preceeding possibly not returning call.
165 * tree-ssa-sccvn.c (vn_reference_may_trap): Conservatively
166 not handle calls.
167
168 2021-09-01 Richard Biener <rguenther@suse.de>
169
170 PR tree-optimization/102139
171 * tree-vectorizer.h (vec_base_alignments): Adjust hash-map
172 type to record a std::pair of the stmt-info and the innermost
173 loop behavior.
174 (dr_vec_info::group): New member.
175 * tree-vect-data-refs.c (vect_record_base_alignment): Adjust.
176 (vect_compute_data_ref_alignment): Verify the recorded
177 base alignment can be used.
178 (data_ref_pair): Remove.
179 (dr_group_sort_cmp): Adjust.
180 (vect_analyze_data_ref_accesses): Store the group-ID in the
181 dr_vec_info and operate on a vector of dr_vec_infos.
182
183 2021-09-01 YunQiang Su <yunqiang.su@cipunited.com>
184
185 * read-md.c (md_reader::handle_enum): support value assignation.
186 * doc/md.texi: record define_c_enum value assignation support.
187
188 2021-09-01 Jakub Jelinek <jakub@redhat.com>
189
190 PR tree-optimization/102141
191 * gimple-ssa-store-merging.c (bswap_view_convert): Add BEFORE
192 argument. If false, emit stmts after gsi instead of before, and
193 with GSI_NEW_STMT.
194 (bswap_replace): Adjust callers. When converting output of bswap,
195 emit VIEW_CONVERT prepratation stmts after a copy of gsi instead
196 of before it.
197
198 2021-09-01 liuhongt <hongtao.liu@intel.com>
199
200 * emit-rtl.c (validate_subreg): Get rid of all float-int
201 special cases.
202
203 2021-09-01 liuhongt <hongtao.liu@intel.com>
204
205 Revert:
206 2021-08-30 liuhongt <hongtao.liu@intel.com>
207
208 * expmed.c (extract_bit_field_1): Make sure we're playing with
209 integral modes before call extract_integral_bit_field.
210 (extract_integral_bit_field): Add a parameter of type
211 scalar_int_mode which corresponds to of tmode.
212 And call extract_and_convert_fixed_bit_field instead of
213 extract_fixed_bit_field and convert_extracted_bit_field.
214 (extract_and_convert_fixed_bit_field): New function, it's a
215 combination of extract_fixed_bit_field and
216 convert_extracted_bit_field.
217
218 2021-08-31 Thomas Schwinge <thomas@codesourcery.com>
219
220 * tree.c (walk_tree_1) <OMP_CLAUSE_TILE>: Handle three operands.
221
222 2021-08-31 Thomas Schwinge <thomas@codesourcery.com>
223
224 * omp-general.h (omp_is_reference): Rename to...
225 (omp_privatize_by_reference): ... this. Adjust all users...
226 * omp-general.c: ... here, ...
227 * gimplify.c: ... here, ...
228 * omp-expand.c: ... here, ...
229 * omp-low.c: ... here.
230
231 2021-08-31 Martin Sebor <msebor@redhat.com>
232
233 * gimple-ssa-warn-access.cc (maybe_warn_alloc_args_overflow): Test
234 pointer element for equality to zero, not that of the cotaining
235 array.
236
237 2021-08-31 Martin Sebor <msebor@redhat.com>
238
239 * gcc-rich-location.h (gcc_rich_location): Make ctor explicit.
240
241 2021-08-31 Martin Sebor <msebor@redhat.com>
242
243 * function.h (function): Add comments.
244 (get_range_query): Same. Add attribute returns nonnull.
245
246 2021-08-31 Roger Sayle <roger@nextmovesoftware.com>
247
248 * expr.c (convert_modes): Don't use subreg_promoted_mode on a
249 SUBREG if it can't be guaranteed to a SUBREG_PROMOTED_VAR_P set.
250 Instead use the standard (safer) is_a <scalar_int_mode> idiom.
251
252 2021-08-31 Jeff Law <jlaw@localhost.localdomain>
253
254 * config.gcc (cris-*-elf, cris-*-none): Remove dbxelf.h from
255 tm_file.
256 (m32r-*-elf, m32rle-*-elf, m32r-*-linux): Likewise.
257 (mn10300-*-*, am33_2.0-*-linux*): Likewise.
258 (xtensa*-*-elf, xtensa*-*-linux, xtensa*-*-uclinux): Likewise.
259 (m32c-*-elf*, m32c-*-rtems*): Likewise.
260 * config/cris/cris.h (DBX_NO_XREFS): Remove.
261 (DBX_CONTIN_LENGTH, DBX_CONTIN_CHAR): Likewise.
262 * config/m32r/m32r.h (DBXOUT_SOURCE_LINE): Likewise.
263 (DBX_DEBUGGING_INFO, DBX_CONTIN_LENGTH): Likewise.
264 * config/mn10300/mn10300.h (DEFAULT_GDB_EXTENSIONS): Likewise.
265 * config/mn10300/linux.h (DBX_REGISTER_NAMES): Likewise.
266
267 2021-08-31 Marcel Vollweiler <marcel@codesourcery.com>
268
269 * gimplify.c (gimplify_scan_omp_clauses): Error handling. 'ancestor' only
270 allowed on target constructs and only with particular other clauses.
271 * omp-expand.c (expand_omp_target): Output of 'sorry, not supported' if
272 'ancestor' is used.
273 * omp-low.c (check_omp_nesting_restrictions): Error handling. No nested OpenMP
274 structs when 'ancestor' is used.
275 (scan_omp_1_stmt): No usage of OpenMP runtime routines in a target region when
276 'ancestor' is used.
277 * tree-pretty-print.c (dump_omp_clause): Append 'ancestor'.
278 * tree.h (OMP_CLAUSE_DEVICE_ANCESTOR): Define macro.
279
280 2021-08-31 Roger Sayle <roger@nextmovesoftware.com>
281
282 * expr.c (convert_modes): Preserve SUBREG_PROMOTED_VAR_P when
283 creating a (wider) partial subreg from a SUBREG_PROMOTED_VAR_P
284 subreg.
285 * simplify-rtx.c (simplify_unary_operation_1) [SIGN_EXTEND]:
286 Likewise, preserve SUBREG_PROMOTED_VAR_P when creating a (wider)
287 partial subreg from a SUBREG_PROMOTED_VAR_P subreg. Generate
288 SIGN_EXTEND of the SUBREG_REG when a subreg would be paradoxical.
289 [ZERO_EXTEND]: Likewise, preserve SUBREG_PROMOTED_VAR_P when
290 creating a (wider) partial subreg from a SUBREG_PROMOTED_VAR_P
291 subreg. Generate ZERO_EXTEND of the SUBREG_REG when a subreg
292 would be paradoxical.
293
294 2021-08-31 Roger Sayle <roger@nextmovesoftware.com>
295
296 * combine.c (combine_simplify_rtx): Avoid converting an explicit
297 TRUNCATE into a lowpart SUBREG on !TRULY_NOOP_TRUNCATION targets.
298 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
299
300 2021-08-31 Richard Biener <rguenther@suse.de>
301
302 PR tree-optimization/102142
303 * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Fix
304 condition under which to unset the visited flag.
305
306 2021-08-31 Richard Biener <rguenther@suse.de>
307
308 PR middle-end/102129
309 * tree-ssa-ter.c (find_replaceable_in_bb): Do not move
310 possibly trapping expressions across calls.
311
312 2021-08-31 Jakub Jelinek <jakub@redhat.com>
313
314 PR tree-optimization/102134
315 * tree-ssa-ccp.c (bit_value_binop) <case RSHIFT_EXPR>: If sgn is
316 UNSIGNED and r1val | r1mask has MSB set, ensure lzcount doesn't
317 become negative.
318
319 2021-08-31 Andrew Pinski <apinski@marvell.com>
320
321 PR driver/79181
322 * collect-utils.c (setup_signals): New declaration.
323 * collect-utils.h (setup_signals): New function.
324 * collect2.c (handler): Delete.
325 (main): Instead of manually setting up the signals,
326 just call setup_signals.
327 * lto-wrapper.c (main): Likewise.
328
329 2021-08-31 Andrew Pinski <apinski@marvell.com>
330
331 PR target/56337
332 * config/i386/i386-protos.h (x86_output_aligned_bss):
333 Change align argument to unsigned type.
334 (x86_elf_aligned_decl_common): Likewise.
335 * config/i386/i386.c (x86_elf_aligned_decl_common): Likewise.
336 (x86_output_aligned_bss): Likewise.
337
338 2021-08-31 YunQiang Su <yunqiang.su@cipunited.com>
339
340 * config/mips/mips.c (mips_module_isa_name): New.
341 mips_file_start: add .module mipsREV to all asm output
342
343 2021-08-31 YunQiang Su <yunqiang.su@cipunited.com>
344
345 * config/mips/mips.h (struct mips_cpu_info): define enum mips_isa;
346 use enum instead of int for 'isa' member.
347 * config.gcc, config/mips/mips.c, config/mips/mips-cpus.def,
348 config/mips/netbsd.h: replace hardcoded numbers with enum.
349
350 2021-08-31 liuhongt <hongtao.liu@intel.com>
351
352 * config/i386/sse.md (*<avx512>_ucmp<mode>3_1): Change from
353 define_split to define_insn_and_split.
354 (*avx2_eq<mode>3): Removed.
355 (<avx512>_eq<mode>3<mask_scalar_merge_name>): Adjust pattern
356 (<avx512>_eq<mode>3<mask_scalar_merge_name>_1): Rename to ..
357 (*<avx512>_eq<mode>3<mask_scalar_merge_name>_1): .. this, and
358 adjust pattern.
359 (*avx2_gt<mode>3): Removed.
360 (<avx512>_gt<mode>3<mask_scalar_merge_name>): Change from
361 define_insn to define_expand, and adjust pattern.
362 (UNSPEC_MASKED_EQ, UNSPEC_MASKED_GT): Removed.
363
364 2021-08-30 David Malcolm <dmalcolm@redhat.com>
365
366 PR analyzer/99260
367 * Makefile.in (ANALYZER_OBJS): Add analyzer/call-info.o.
368
369 2021-08-30 Jason Merrill <jason@redhat.com>
370
371 * doc/invoke.texi: Document -Wmissing-requires.
372
373 2021-08-30 Bill Schmidt <wschmidt@linux.ibm.com>
374
375 * config/rs6000/rs6000-call.c (rs6000_init_builtins): Remove
376 TARGET_EXTRA_BUILTINS guard.
377
378 2021-08-30 Bill Schmidt <wschmidt@linux.ibm.com>
379
380 * config/rs6000/rs6000-call.c (rs6000_init_builtins): Change
381 initialization of V2DI_type_node and unsigned_V2DI_type_node.
382
383 2021-08-30 Bill Schmidt <wschmidt@linux.ibm.com>
384
385 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Use the new
386 decl when new_builtins_are_live.
387 * config/rs6000/rs6000-builtin-new.def (__builtin_cfstring): New
388 built-in.
389
390 2021-08-30 Pat Haugen <pthaugen@linux.ibm.com>
391
392 * config/rs6000/rs6000-cpus.def (ISA_3_1_MASKS_SERVER): Add
393 OPTION_MASK_P10_FUSION_2STORE.
394 (POWERPC_MASKS): Likewise.
395 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
396 store fusion for Power10.
397 (is_fusable_store): New.
398 (power10_sched_reorder): Likewise.
399 (rs6000_sched_reorder): Do Power10 specific reordering.
400 (rs6000_sched_reorder2): Likewise.
401 * config/rs6000/rs6000.opt: Add new option.
402
403 2021-08-30 Richard Biener <rguenther@suse.de>
404
405 PR tree-optimization/102128
406 * tree-vect-slp.c (vect_bb_vectorization_profitable_p):
407 Move scanning for if-converted scalar code to the caller
408 and instead delay clearing the visited flag for profitable
409 subgraphs.
410 (vect_slp_region): Cost all subgraphs before scheduling.
411 For if-converted BB vectorization scan for scalar COND_EXPRs
412 and do not vectorize if any found and the cost model is
413 very-cheap.
414
415 2021-08-30 Richard Biener <rguenther@suse.de>
416
417 * common.opt (fexceptions): Mark
418 EnabledBy(fnon-call-exceptions).
419 * doc/invoke.texi (fnon-call-exceptions): Document this
420 enables -fexceptions.
421
422 2021-08-30 Sebastian Huber <sebastian.huber@embedded-brains.de>
423
424 * tsystem.h (abort): Define abort() if inhibit_libc is defined and it
425 is not already defined.
426
427 2021-08-30 liuhongt <hongtao.liu@intel.com>
428
429 * expmed.c (extract_bit_field_1): Make sure we're playing with
430 integral modes before call extract_integral_bit_field.
431 (extract_integral_bit_field): Add a parameter of type
432 scalar_int_mode which corresponds to of tmode.
433 And call extract_and_convert_fixed_bit_field instead of
434 extract_fixed_bit_field and convert_extracted_bit_field.
435 (extract_and_convert_fixed_bit_field): New function, it's a
436 combination of extract_fixed_bit_field and
437 convert_extracted_bit_field.
438
439 2021-08-29 Iain Sandoe <iain@sandoe.co.uk>
440
441 * config/darwin.c (darwin_libc_has_function): Do not run
442 the checks for x86 or modern Darwin. Make sure that there
443 is a value set for darwin_macosx_version_min before testing.
444
445 2021-08-29 Iain Sandoe <iain@sandoe.co.uk>
446
447 * config/i386/darwin.h (CLEAR_INSN_CACHE): New.
448
449 2021-08-28 Jan Hubicka <hubicka@ucw.cz>
450
451 * ipa-modref-tree.h (modref_access_node::merge): Break out
452 logic combining offsets and logic merging ranges to ...
453 (modref_access_node::combined_offsets): ... here
454 (modref_access_node::update2): ... here
455 (modref_access_node::closer_pair_p): New member function.
456 (modref_access_node::forced_merge): New member function.
457 (modre_ref_node::insert): Do merging when table is full.
458
459 2021-08-28 YunQiang Su <yunqiang.su@cipunited.com>
460
461 PR target/102089
462 * config.gcc: MIPS: use N64 ABI by default if the triple end
463 with -gnuabi64, which is used by Debian since 2013.
464
465 2021-08-28 Alexandre Oliva <oliva@adacore.com>
466
467 * ipa-modref.c (analyze_function): Skip debug stmts.
468 * tree-inline.c (estimate_num_insn): Consider builtins even
469 without a cgraph_node.
470
471 2021-08-27 Jeff Law <jlaw@localhost.localdomain>
472
473 * config/h8300/bitfield.md (cstore<mode>4): Remove expander.
474 * config/h8300/h8300.c (h8300_expand_branch): Remove function.
475 * config/h8300/h8300-protos.h (h8300_expadn_branch): Remove prototype.
476 * config/h8300/h8300.md (eqne): New code iterator.
477 (geultu, geultu_to_c): Similarly.
478 * config/h8300/testcompare.md (cstore<mode>4): Dummy expander.
479 (store_c_<mode>, store_c_i_<mode>): New define_insn_and_splits
480 (cmp<mode>_c): New pattern
481
482 2021-08-27 Jeff Law <jlaw@localhost.localdomain>
483
484 * tree-ssa-dom.c (reduce_vector_comparison_to_scalar_comparison): New
485 function.
486 (dom_opt_dom_walker::optimize_stmt): Use it.
487
488 2021-08-27 Iain Sandoe <iain@sandoe.co.uk>
489
490 * config/darwin.c (finalize_ctors): Add a section-start linker-
491 visible symbol.
492 (finalize_dtors): Likewise.
493 * config/darwin.h (MIN_LD64_INIT_TERM_START_LABELS): New.
494
495 2021-08-27 Bill Schmidt <wschmidt@linux.ibm.com>
496
497 * config/rs6000/rs6000-call.c (rs6000-builtins.h): New #include.
498 (rs6000_init_builtins): Call rs6000_init_generated_builtins. Skip the
499 old initialization logic when new builtins are enabled.
500 * config/rs6000/rs6000-gen-builtins.c (write_decls): Rename
501 rs6000_autoinit_builtins to rs6000_init_generated_builtins.
502 (write_init_file): Likewise.
503
504 2021-08-27 Iain Sandoe <iain@sandoe.co.uk>
505
506 * configure.ac (darwin2[[0-9]]* | darwin19*): Alter use of
507 gcc_GAS_CHECK_FEATURE to remove an extraneous parameter.
508 (amdgcn-* | gcn-*) Likewise.
509
510 2021-08-27 Anthony Sharp <anthonysharp15@gmail.com>
511
512 * symbol-summary.h: Added missing template keyword.
513
514 2021-08-27 Richard Biener <rguenther@suse.de>
515
516 PR tree-optimization/45178
517 * tree-ssa-dce.c (find_obviously_necessary_stmts): For
518 infinite loops without exit do not mark control dependent
519 edges of the latch necessary.
520
521 2021-08-27 konglin1 <lingling.kong@intel.com>
522
523 PR target/101472
524 * config/i386/sse.md: (<avx512>scattersi<mode>): Add mask operand to
525 UNSPEC_VSIBADDR.
526 (<avx512>scattersi<mode>): Likewise.
527 (*avx512f_scattersi<VI48F:mode>): Merge mask operand to set_dest.
528 (*avx512f_scatterdi<VI48F:mode>): Likewise
529
530 2021-08-27 Kewen Lin <linkw@linux.ibm.com>
531
532 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function): Add
533 support for built-in functions MISC_BUILTIN_DIVWE, MISC_BUILTIN_DIVWEU,
534 MISC_BUILTIN_DIVDE, MISC_BUILTIN_DIVDEU, P10_BUILTIN_CFUGED,
535 P10_BUILTIN_CNTLZDM, P10_BUILTIN_CNTTZDM, P10_BUILTIN_PDEPD and
536 P10_BUILTIN_PEXTD on Power10.
537
538 2021-08-27 Kewen Lin <linkw@linux.ibm.com>
539
540 * config/rs6000/rs6000-call.c (builtin_function_type): Add unsigned
541 signedness for some Power10 bifs.
542
543 2021-08-27 David Edelsohn <dje.gcc@gmail.com>
544
545 PR target/102068
546 * config/rs6000/rs6000.c (rs6000_adjust_field_align): Use
547 computed alignment if the entire struct has attribute packed.
548
549 2021-08-27 liuhongt <hongtao.liu@intel.com>
550
551 PR target/98167
552 PR target/43147
553 * config/i386/i386.c (ix86_gimple_fold_builtin): Fold
554 IX86_BUILTIN_SHUFPD512, IX86_BUILTIN_SHUFPS512,
555 IX86_BUILTIN_SHUFPD256, IX86_BUILTIN_SHUFPS,
556 IX86_BUILTIN_SHUFPS256.
557 (ix86_masked_all_ones): New function.
558
559 2021-08-26 Uroš Bizjak <ubizjak@gmail.com>
560
561 * config/i386/i386.md (*btr<mode>_1): Call force_reg unconditionally.
562 (conditional moves with memory inputs splitters): Ditto.
563 * config/i386/sse.md (one_cmpl<mode>2): Simplify.
564
565 2021-08-26 Jan Hubicka <hubicka@ucw.cz>
566
567 * ipa-modref-tree.h (modref_access_node::try_merge_with): Restart
568 search after merging.
569
570 2021-08-26 Bill Schmidt <wschmidt@linux.ibm.com>
571
572 * config/rs6000/rs6000-overload.def: Add remaining overloads.
573
574 2021-08-26 Bill Schmidt <wschmidt@linux.ibm.com>
575
576 * config/rs6000/rs6000-builtin-new.def: Add cell stanza.
577
578 2021-08-26 Bill Schmidt <wschmidt@linux.ibm.com>
579
580 * config/rs6000/rs6000-builtin-new.def: Add ieee128-hw, dfp,
581 crypto, and htm stanzas.
582
583 2021-08-26 Bill Schmidt <wschmidt@linux.ibm.com>
584
585 * config/rs6000/rs6000-builtin-new.def: Add mma stanza.
586
587 2021-08-26 Martin Sebor <msebor@redhat.com>
588
589 * tree-ssa-uninit.c (warn_uninit): Refactor and simplify.
590 (warn_uninit_phi_uses): Remove argument from calls to warn_uninit.
591 (warn_uninitialized_vars): Same. Reduce visibility of locals.
592 (warn_uninitialized_phi): Same.
593
594 2021-08-26 Roger Sayle <roger@nextmovesoftware.com>
595
596 * tree-ssa-ccp.c (get_individual_bits): Helper function to
597 extract the individual bits from a widest_int constant (mask).
598 (gray_code_bit_flips): New read-only table for effiently
599 enumerating permutations/combinations of bits.
600 (bit_value_binop) [LROTATE_EXPR, RROTATE_EXPR]: Handle rotates
601 by unknown counts that are guaranteed less than the target
602 precision and four or fewer unknown bits by enumeration.
603 [LSHIFT_EXPR, RSHIFT_EXPR]: Likewise, also handle shifts by
604 enumeration under the same conditions. Handle remaining
605 shifts as a mask based upon the minimum possible shift value.
606
607 2021-08-26 Roger Sayle <roger@nextmovesoftware.com>
608 Richard Biener <rguenther@suse.de>
609
610 * match.pd (shift transformations): Remove a redundant
611 !POINTER_TYPE_P check.
612
613 2021-08-26 Uroš Bizjak <ubizjak@gmail.com>
614
615 PR target/102057
616 * config/i386/i386.md (cmove reg-reg move elimination peephole2s):
617 Set all_regs to true in the call to replace_rtx.
618
619 2021-08-26 Jan Hubicka <hubicka@ucw.cz>
620
621 * ipa-modref-tree.c (test_insert_search_collapse): Update test.
622 * ipa-modref-tree.h (modref_base_node::insert): Be smarter when
623 hiting --param modref-max-refs limit.
624 (modref_tree:insert_base): Be smarter when hitting
625 --param modref-max-bases limit. Add new parameter REF.
626 (modref_tree:insert): Update.
627 (modref_tree:merge): Update.
628 * ipa-modref.c (read_modref_records): Update.
629
630 2021-08-26 Jan Hubicka <hubicka@ucw.cz>
631
632 * params.opt: (modref-max-adjustments): Add full stop.
633
634 2021-08-26 Jan Hubicka <hubicka@ucw.cz>
635
636 * ipa-modref-tree.h (modref_ref_node::verify): New member
637 functoin.
638 (modref_ref_node::insert): Use it.
639 (modref_ref_node::try_mere_with): Fix off by one error.
640
641 2021-08-26 Martin Liska <mliska@suse.cz>
642 Stefan Kneifel <stefan.kneifel@bluewin.ch>
643
644 * cgraph.h (create_version_clone_with_body): Add new parameter.
645 * cgraphclones.c: Likewise.
646 * multiple_target.c (create_dispatcher_calls): Do not use
647 numbered suffixes.
648 (create_target_clone): Likewise here.
649
650 2021-08-26 Jonathan Yong <10walls@gmail.com>
651
652 * doc/extend.texi: Add note about reserved priorities
653 to the constructor attribute.
654
655 2021-08-25 Martin Sebor <msebor@redhat.com>
656
657 * gimple-range-cache.cc (ssa_global_cache::dump): Avoid printing
658 range table header alone.
659 * gimple-range.cc (gimple_ranger::export_global_ranges): Same.
660
661 2021-08-25 Jan Hubicka <hubicka@ucw.cz>
662
663 * doc/invoke.texi: Document --param modref-max-adjustments.
664 * ipa-modref-tree.c (test_insert_search_collapse): Update.
665 (test_merge): Update.
666 * ipa-modref-tree.h (struct modref_access_node): Add adjustments;
667 (modref_access_node::operator==): Fix handling of access ranges.
668 (modref_access_node::contains): Constify parameter; handle also
669 mismatched parm offsets.
670 (modref_access_node::update): New function.
671 (modref_access_node::merge): New function.
672 (unspecified_modref_access_node): Update constructor.
673 (modref_ref_node::insert_access): Add record_adjustments parameter;
674 handle merging.
675 (modref_ref_node::try_merge_with): New private function.
676 (modref_tree::insert): New record_adjustments parameter.
677 (modref_tree::merge): New record_adjustments parameter.
678 (modref_tree::copy_from): Update.
679 * ipa-modref.c (dump_access): Dump adjustments field.
680 (get_access): Update constructor.
681 (record_access): Update call of insert.
682 (record_access_lto): Update call of insert.
683 (merge_call_side_effects): Add record_adjustments parameter.
684 (get_access_for_fnspec): Update.
685 (process_fnspec): Update.
686 (analyze_call): Update.
687 (analyze_function): Update.
688 (read_modref_records): Update.
689 (ipa_merge_modref_summary_after_inlining): Update.
690 (propagate_unknown_call): Update.
691 (modref_propagate_in_scc): Update.
692 * params.opt (param-max-modref-adjustments=): New.
693
694 2021-08-25 Michael Meissner <meissner@linux.ibm.com>
695
696 * config/rs6000/vsx.md (UNSPEC_XXSPLTIDP): Rename from
697 UNSPEC_XXSPLTID.
698 (xxspltiw_v4si): Use vecperm type attribute.
699 (xxspltiw_v4si_inst): Use vecperm type attribute.
700 (xxspltiw_v4sf_inst): Likewise.
701 (xxspltidp_v2df): Use vecperm type attribute. Use
702 UNSPEC_XXSPLTIDP instead of UNSPEC_XXSPLTID.
703 (xxspltidp_v2df_inst): Likewise.
704 (xxsplti32dx_v4si): Use vecperm type attribute.
705 (xxsplti32dx_v4si_inst): Likewise.
706 (xxsplti32dx_v4sf_inst): Likewise.
707 (xxblend_<mode>): Likewise.
708 (xxpermx): Likewise.
709 (xxpermx_inst): Likewise.
710 (xxeval): Likewise.
711
712 2021-08-25 Lewis Hyatt <lhyatt@gmail.com>
713
714 PR other/93067
715 * coretypes.h (typedef diagnostic_input_charset_callback): Declare.
716 * diagnostic.c (diagnostic_initialize_input_context): New function.
717 * diagnostic.h (diagnostic_initialize_input_context): Declare.
718 * input.c (default_charset_callback): New function.
719 (file_cache::initialize_input_context): New function.
720 (file_cache_slot::create): Added ability to convert the input
721 according to the input context.
722 (file_cache::file_cache): Initialize the new input context.
723 (class file_cache_slot): Added new m_alloc_offset member.
724 (file_cache_slot::file_cache_slot): Initialize the new member.
725 (file_cache_slot::~file_cache_slot): Handle potentially offset buffer.
726 (file_cache_slot::maybe_grow): Likewise.
727 (file_cache_slot::needs_read_p): Handle NULL fp, which is now possible.
728 (file_cache_slot::get_next_line): Likewise.
729 * input.h (class file_cache): Added input context member.
730
731 2021-08-25 Richard Biener <rguenther@suse.de>
732
733 PR tree-optimization/102046
734 * tree-vect-slp.c (vect_build_slp_tree_2): Conservatively
735 update ->any_pattern when swapping operands.
736
737 2021-08-25 Hongyu Wang <hongyu.wang@intel.com>
738
739 PR target/101716
740 * config/i386/i386.c (ix86_live_on_entry): Adjust comment.
741 (ix86_decompose_address): Remove retval check for ASHIFT,
742 allow non-canonical zero extend if AND mask covers ASHIFT
743 count.
744 (ix86_legitimate_address_p): Adjust condition for decompose.
745 (ix86_rtx_costs): Adjust cost for lea with non-canonical
746 zero-extend.
747 Co-Authored by: Uros Bizjak <ubizjak@gmail.com>
748
749 2021-08-25 Jiufu Guo <guojiufu@linux.ibm.com>
750
751 PR tree-optimization/101145
752 * tree-ssa-loop-niter.c (number_of_iterations_until_wrap):
753 New function.
754 (number_of_iterations_lt): Invoke above function.
755 (adjust_cond_for_loop_until_wrap):
756 Merge to number_of_iterations_until_wrap.
757 (number_of_iterations_cond): Update invokes for
758 adjust_cond_for_loop_until_wrap and number_of_iterations_lt.
759
760 2021-08-25 konglin1 <lingling.kong@intel.com>
761
762 PR target/101471
763 * config/i386/avx512dqintrin.h (_mm512_fpclass_ps_mask): Fix
764 macro define in O0.
765 (_mm512_mask_fpclass_ps_mask): Ditto.
766
767 2021-08-25 Kewen Lin <linkw@linux.ibm.com>
768
769 * config/rs6000/altivec.md (vec_unpacku_hi_v16qi): Remove.
770 (vec_unpacku_hi_v8hi): Likewise.
771 (vec_unpacku_lo_v16qi): Likewise.
772 (vec_unpacku_lo_v8hi): Likewise.
773 (vec_unpacku_hi_<VP_small_lc>): New define_expand.
774 (vec_unpacku_lo_<VP_small_lc>): Likewise.
775
776 2021-08-24 David Edelsohn <dje.gcc@gmail.com>
777
778 * config/rs6000/aix.h (SYSTEM_IMPLICIT_EXTERN_C): Delete.
779 * config/rs6000/aix71.h (SYSTEM_IMPLICIT_EXTERN_C): Define.
780 * config/rs6000/aix72.h (SYSTEM_IMPLICIT_EXTERN_C): Define.
781 * config/rs6000/aix73.h (TARGET_AIX_VERSION): Increase to 73.
782
783 2021-08-24 Roger Sayle <roger@nextmovesoftware.com>
784
785 PR middle-end/102031
786 * simplify-rtx.c (simplify_truncation): When comparing precisions
787 use "subreg_prec" variable, not "subreg_mode".
788
789 2021-08-24 Bill Schmidt <wschmidt@linux.ibm.com>
790
791 * config/rs6000/rs6000-builtin-new.def: Add power10 and power10-64
792 stanzas.
793
794 2021-08-24 Bill Schmidt <wschmidt@linux.ibm.com>
795
796 * config/rs6000/rs6000-call.c (rs6000_init_builtins): Initialize
797 various pointer type nodes.
798 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add enum
799 values for various pointer types.
800 (ptr_V16QI_type_node): New macro.
801 (ptr_V1TI_type_node): New macro.
802 (ptr_V2DI_type_node): New macro.
803 (ptr_V2DF_type_node): New macro.
804 (ptr_V4SI_type_node): New macro.
805 (ptr_V4SF_type_node): New macro.
806 (ptr_V8HI_type_node): New macro.
807 (ptr_unsigned_V16QI_type_node): New macro.
808 (ptr_unsigned_V1TI_type_node): New macro.
809 (ptr_unsigned_V8HI_type_node): New macro.
810 (ptr_unsigned_V4SI_type_node): New macro.
811 (ptr_unsigned_V2DI_type_node): New macro.
812 (ptr_bool_V16QI_type_node): New macro.
813 (ptr_bool_V8HI_type_node): New macro.
814 (ptr_bool_V4SI_type_node): New macro.
815 (ptr_bool_V2DI_type_node): New macro.
816 (ptr_bool_V1TI_type_node): New macro.
817 (ptr_pixel_type_node): New macro.
818 (ptr_intQI_type_node): New macro.
819 (ptr_uintQI_type_node): New macro.
820 (ptr_intHI_type_node): New macro.
821 (ptr_uintHI_type_node): New macro.
822 (ptr_intSI_type_node): New macro.
823 (ptr_uintSI_type_node): New macro.
824 (ptr_intDI_type_node): New macro.
825 (ptr_uintDI_type_node): New macro.
826 (ptr_intTI_type_node): New macro.
827 (ptr_uintTI_type_node): New macro.
828 (ptr_long_integer_type_node): New macro.
829 (ptr_long_unsigned_type_node): New macro.
830 (ptr_float_type_node): New macro.
831 (ptr_double_type_node): New macro.
832 (ptr_long_double_type_node): New macro.
833 (ptr_dfloat64_type_node): New macro.
834 (ptr_dfloat128_type_node): New macro.
835 (ptr_ieee128_type_node): New macro.
836 (ptr_ibm128_type_node): New macro.
837 (ptr_vector_pair_type_node): New macro.
838 (ptr_vector_quad_type_node): New macro.
839 (ptr_long_long_integer_type_node): New macro.
840 (ptr_long_long_unsigned_type_node): New macro.
841
842 2021-08-24 Bill Schmidt <wschmidt@linux.ibm.com>
843
844 * config/rs6000/rs6000-builtin-new.def: Add power9-vector, power9,
845 and power9-64 stanzas.
846
847 2021-08-24 Roger Sayle <roger@nextmovesoftware.com>
848 Tom de Vries <tdevries@suse.de>
849
850 * config.gcc (nvptx-*-*): Define {c,c++}_target_objs.
851 * config/nvptx/nvptx-protos.h (nvptx_cpu_cpp_builtins): Prototype.
852 * config/nvptx/nvptx.h (TARGET_CPU_CPP_BUILTINS): Implement with
853 a call to the new nvptx_cpu_cpp_builtins function in nvptx-c.c.
854 * config/nvptx/t-nvptx (nvptx-c.o): New rule.
855 * config/nvptx/nvptx-c.c: New source file.
856 (nvptx_cpu_cpp_builtins): Move implementation here.
857
858 2021-08-24 Martin Sebor <msebor@redhat.com>
859
860 PR middle-end/101600
861 PR middle-end/101977
862 * gimple-ssa-warn-access.cc (maybe_warn_for_bound): Tighten up
863 the phrasing of a warning.
864 (check_access): Use the remaining size after subtracting any offset
865 rather than the whole object size.
866 * pointer-query.cc (access_ref::get_ref): Clear BASE0 flag if it's
867 clear for any nonnull PHI argument.
868 (compute_objsize): Clear argument.
869
870 2021-08-24 Bill Schmidt <wschmidt@linux.ibm.com>
871
872 * config/rs6000/rs6000-builtin-new.def: Add power8-vector stanza.
873
874 2021-08-24 Bill Schmidt <wschmidt@linux.ibm.com>
875
876 * config/rs6000/rs6000-builtin-new.def: Add power7 and power7-64
877 stanzas.
878
879 2021-08-24 Andrew MacLeod <amacleod@redhat.com>
880
881 * value-relation.cc (rr_transitive_table): New.
882 (relation_transitive): New.
883 (value_relation::swap): Remove.
884 (value_relation::apply_transitive): New.
885 (relation_oracle::relation_oracle): Allocate a new tmp bitmap.
886 (relation_oracle::register_relation): Call register_transitives.
887 (relation_oracle::register_transitives): New.
888 * value-relation.h (relation_oracle): Add new temporary bitmap and
889 methods.
890
891 2021-08-24 H.J. Lu <hjl.tools@gmail.com>
892
893 PR target/102021
894 * config/i386/i386-expand.c (ix86_expand_vector_move): Broadcast
895 from integer to a pseudo vector register.
896
897 2021-08-24 Richard Biener <rguenther@suse.de>
898
899 PR tree-optimization/100089
900 * tree-vectorizer.h (vect_slp_bb): Rename to ...
901 (vect_slp_if_converted_bb): ... this and get the original
902 loop as new argument.
903 * tree-vectorizer.c (try_vectorize_loop_1): Revert previous fix,
904 pass original loop to vect_slp_if_converted_bb.
905 * tree-vect-slp.c (vect_bb_vectorization_profitable_p):
906 If orig_loop was passed scan the not vectorized stmts
907 for COND_EXPRs and force not profitable if found.
908 (vect_slp_region): Pass down all SLP instances to costing
909 if orig_loop was specified.
910 (vect_slp_bbs): Pass through orig_loop.
911 (vect_slp_bb): Rename to ...
912 (vect_slp_if_converted_bb): ... this and get the original
913 loop as new argument.
914 (vect_slp_function): Adjust.
915
916 2021-08-24 Richard Earnshaw <rearnsha@arm.com>
917
918 PR target/102035
919 * config/arm/arm.md (attribute arch): Add fix_vlldm.
920 (arch_enabled): Use it.
921 * config/arm/vfp.md (lazy_store_multiple_insn): Add alternative to
922 use when erratum mitigation is needed.
923
924 2021-08-24 Richard Earnshaw <rearnsha@arm.com>
925
926 PR target/102035
927 * config/arm/arm.opt (mfix-cmse-cve-2021-35465): New option.
928 * doc/invoke.texi (Arm Options): Document it.
929 * config/arm/arm-cpus.in (quirk_vlldm): New feature bit.
930 (ALL_QUIRKS): Add quirk_vlldm.
931 (cortex-m33): Add quirk_vlldm.
932 (cortex-m35p, cortex-m55): Likewise.
933 * config/arm/arm.c (arm_option_override): Enable fix_vlldm if
934 targetting an affected CPU and not explicitly controlled on
935 the command line.
936
937 2021-08-24 Richard Earnshaw <rearnsha@arm.com>
938
939 * config/arm/vfp.md (lazy_store_multiple_insn): Rewrite as valid RTL.
940 (lazy_load_multiple_insn): Likewise.
941
942 2021-08-24 liuhongt <hongtao.liu@intel.com>
943
944 PR target/101989
945 * config/i386/sse.md (<avx512>_vternlog<mode><sd_maskz_name>):
946 Enable avx512 embedded broadcast.
947 (*<avx512>_vternlog<mode>_all): Ditto.
948 (<avx512>_vternlog<mode>_mask): Ditto.
949
950 2021-08-24 liuhongt <hongtao.liu@intel.com>
951
952 PR target/101989
953 * config/i386/i386.c (ix86_rtx_costs): Define cost for
954 UNSPEC_VTERNLOG.
955 * config/i386/i386.h (STRIP_UNARY): New macro.
956 * config/i386/predicates.md (reg_or_notreg_operand): New
957 predicate.
958 * config/i386/sse.md (*<avx512>_vternlog<mode>_all): New define_insn.
959 (*<avx512>_vternlog<mode>_1): New pre_reload
960 define_insn_and_split.
961 (*<avx512>_vternlog<mode>_2): Ditto.
962 (*<avx512>_vternlog<mode>_3): Ditto.
963 (any_logic1,any_logic2): New code iterator.
964 (logic_op): New code attribute.
965 (ternlogsuffix): Extend to VNxDF and VNxSF.
966
967 2021-08-24 Richard Biener <rguenther@suse.de>
968
969 * doc/invoke.texi (vect-inner-loop-cost-factor): Adjust.
970 * params.opt (--param vect-inner-loop-cost-factor): Adjust
971 maximum value.
972 * tree-vect-loop.c (vect_analyze_loop_form): Initialize
973 inner_loop_cost_factor to the minimum of the estimated number
974 of iterations of the inner loop and vect-inner-loop-cost-factor.
975
976 2021-08-24 Roger Sayle <roger@nextmovesoftware.com>
977 Richard Biener <rguenther@suse.de>
978
979 * config/i386/i386-features.c (compute_convert_gain): Provide
980 more accurate values for CONST_INT, when optimizing for size.
981 * config/i386/i386.c (COSTS_N_BYTES): Move definition from here...
982 * config/i386/i386.h (COSTS_N_BYTES): to here.
983
984 2021-08-24 Roger Sayle <roger@nextmovesoftware.com>
985 Jakub Jelinek <jakub@redhat.com>
986
987 PR middle-end/102029
988 * match.pd (shift transformations): Add an additional check for
989 !POINTER_TYPE_P in the recently added left shift transformation.
990
991 2021-08-24 liuhongt <hongtao.liu@intel.com>
992
993 PR tree-optimization/100089
994 * tree-vectorizer.c (try_vectorize_loop_1): Disable slp in
995 loop vectorizer when cost model is very-cheap.
996
997 2021-08-23 Bill Schmidt <wschmidt@linux.ibm.com>
998
999 * config/rs6000/rs6000-gen-builtins.c (parse_bif_entry): Don't call
1000 asprintf, which is not available on AIX.
1001
1002 2021-08-23 Bill Schmidt <wschmidt@linux.ibm.com>
1003
1004 * config.gcc (target_gtfiles): Add ./rs6000-builtins.h.
1005 * config/rs6000/t-rs6000 (EXTRA_GTYPE_DEPS): Set.
1006
1007 2021-08-23 Bill Schmidt <wschmidt@linux.ibm.com>
1008
1009 * config.gcc (powerpc*-*-*): Add rs6000-builtins.o to extra_objs.
1010 * config/rs6000/rs6000-gen-builtins.c (main): Close init_file
1011 last.
1012 * config/rs6000/t-rs6000 (rs6000-gen-builtins.o): New target.
1013 (rbtree.o): Likewise.
1014 (rs6000-gen-builtins): Likewise.
1015 (rs6000-builtins.c): Likewise.
1016 (rs6000-builtins.h): Likewise.
1017 (rs6000.o): Add dependency.
1018 (EXTRA_HEADERS): Add rs6000-vecdefines.h.
1019 (rs6000-vecdefines.h): New target.
1020 (rs6000-builtins.o): Likewise.
1021 (rs6000-call.o): Add rs6000-builtins.h as a dependency.
1022 (rs6000-c.o): Likewise.
1023
1024 2021-08-23 Bill Schmidt <wschmidt@linux.ibm.com>
1025
1026 PR target/101830
1027 * config/rs6000/rs6000-gen-builtins.c (consume_whitespace):
1028 Diagnose buffer overrun.
1029 (safe_inc_pos): Fix overrun detection.
1030 (match_identifier): Diagnose buffer overrun.
1031 (match_integer): Likewise.
1032 (match_to_right_bracket): Likewise.
1033
1034 2021-08-23 Jan Hubicka <hubicka@ucw.cz>
1035
1036 * ipa-modref-tree.h (modref_access_node::range_info_useful_p):
1037 Improve range compare.
1038 (modref_access_node::contains): New member function.
1039 (modref_access_node::search): Remove.
1040 (modref_access_node::insert): Be smarter about subaccesses.
1041
1042 2021-08-23 Thomas Schwinge <thomas@codesourcery.com>
1043
1044 * config/i386/i386-options.c (ix86_omp_device_kind_arch_isa)
1045 <omp_device_arch> [ACCEL_COMPILER]: Match "intel_mic".
1046 * config/i386/t-omp-device (omp-device-properties-i386) <arch>:
1047 Add "intel_mic".
1048
1049 2021-08-23 Jeff Law <jlaw@localhost.localdomain>
1050
1051 * config/h8300/h8300-protos.h (h8300_expand_epilogue): Add new
1052 argument.
1053 * config/h8300/jumpcall.md (call, call_value): Restrict to
1054 !SIBLING_CALL_P cases.
1055 (subcall, sibcall_value): New patterns & expanders.
1056 * config/h8300/proepi.md (epilogue): Pass new argument to
1057 h8300_expand_epilogue.
1058 (sibcall_epilogue): New expander.
1059 * config/h8300/h8300.c (h8300_expand_epilogue): Handle sibcall
1060 epilogues too.
1061 (h8300_ok_for_sibcall_p): New function.
1062 (TARGET_FUNCTION_OK_FOR_SIBCALL): define.
1063
1064 2021-08-23 Roger Sayle <roger@nextmovesoftware.com>
1065
1066 * simplify-rtx.c (simplify_unary_operation_1): [TRUNCATE]:
1067 Handle case where the operand is already the desired mode.
1068
1069 2021-08-23 Richard Biener <rguenther@suse.de>
1070
1071 PR ipa/97565
1072 * tree-ssa-structalias.c (ipa_pta_execute): Check in_other_partition
1073 in addition to has_gimple_body.
1074
1075 2021-08-23 Jan Hubicka <hubicka@ucw.cz>
1076
1077 PR middle-end/101949
1078 * ipa-modref.c (analyze_ssa_name_flags): Fix merging of
1079 EAF_NOCLOBBER
1080
1081 2021-08-23 Martin Liska <mliska@suse.cz>
1082
1083 * doc/invoke.texi: Put the option out of -mxl-mode-app-model
1084 table.
1085
1086 2021-08-23 Richard Biener <rguenther@suse.de>
1087
1088 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
1089 Properly scale the inner loop cost only once.
1090
1091 2021-08-23 Roger Sayle <roger@nextmovesoftware.com>
1092
1093 * tree-ssa-ccp.c (bit_value_binop) [TRUNC_MOD_EXPR, TRUNC_DIV_EXPR]:
1094 Provide bounds for unsigned (and signed with non-negative operands)
1095 division and modulus.
1096
1097 2021-08-23 Roger Sayle <roger@nextmovesoftware.com>
1098
1099 * simplify-rtx.c (simplify_truncation): Generalize simplification
1100 of (truncate:A (subreg:B X)).
1101 (simplify_unary_operation_1) [FLOAT_TRUNCATE, FLOAT_EXTEND,
1102 SIGN_EXTEND, ZERO_EXTEND]: Handle cases where the operand
1103 already has the desired machine mode.
1104 (test_scalar_int_ops): Add tests that useless extensions and
1105 truncations are optimized away.
1106 (test_scalar_int_ext_ops): New self-test function to confirm
1107 that truncations of extensions are correctly simplified.
1108 (test_scalar_int_ext_ops2): New self-test function to check
1109 truncations of truncations, extensions of extensions, and
1110 truncations of extensions.
1111 (test_scalar_ops): Call the above two functions with a
1112 representative sampling of integer machine modes.
1113
1114 2021-08-23 Roger Sayle <roger@nextmovesoftware.com>
1115
1116 * match.pd (shift transformations): Change the sign of an
1117 LSHIFT_EXPR if it reduces the number of explicit conversions.
1118
1119 2021-08-23 Jakub Jelinek <jakub@redhat.com>
1120
1121 PR tree-optimization/86723
1122 * gimple-ssa-store-merging.c (find_bswap_or_nop_finalize): Add
1123 cast64_to_32 argument, set *cast64_to_32 to false, unless n is
1124 non-memory permutation of 64-bit src which only has bytes of
1125 0 or [5..8] and n->range is 4.
1126 (find_bswap_or_nop): Add cast64_to_32 and mask arguments, adjust
1127 find_bswap_or_nop_finalize caller, support bswap with some bytes
1128 zeroed, as long as at least two bytes are not zeroed.
1129 (bswap_replace): Add mask argument and handle masking of bswap
1130 result.
1131 (maybe_optimize_vector_constructor): Adjust find_bswap_or_nop
1132 caller, punt if cast64_to_32 or mask is not all ones.
1133 (pass_optimize_bswap::execute): Adjust find_bswap_or_nop_finalize
1134 caller, for now punt if cast64_to_32.
1135
1136 2021-08-23 Richard Biener <rguenther@suse.de>
1137
1138 PR tree-optimization/79334
1139 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record
1140 a type also for COMPONENT_REFs.
1141 (vn_reference_may_trap): Check ARRAY_REF with constant index
1142 against the array domain.
1143
1144 2021-08-23 liuhongt <hongtao.liu@intel.com>
1145
1146 PR target/102016
1147 * config/i386/sse.md (*avx512f_pshufb_truncv8hiv8qi_1): Add
1148 TARGET_AVX512BW to condition.
1149
1150 2021-08-23 Jakub Jelinek <jakub@redhat.com>
1151
1152 PR debug/101905
1153 * dwarf2out.c (gen_variable_die): Add DW_AT_location for global
1154 register variables already during early_dwarf if possible.
1155
1156 2021-08-23 Christophe Lyon <christophe.lyon@foss.st.com>
1157
1158 * config/arm/arm_mve.h: Fix __arm_vctp16q return type.
1159
1160 2021-08-23 Christophe Lyon <christophe.lyon@foss.st.com>
1161
1162 PR target/100856
1163 * config/arm/arm.opt: Fix typo.
1164 * config/arm/t-rmprofile: Fix typo.
1165
1166 2021-08-23 Jakub Jelinek <jakub@redhat.com>
1167
1168 * tree.h (OMP_CLAUSE_GRAINSIZE_STRICT): Define.
1169 (OMP_CLAUSE_NUM_TASKS_STRICT): Define.
1170 * tree-pretty-print.c (dump_omp_clause) <case OMP_CLAUSE_GRAINSIZE,
1171 case OMP_CLAUSE_NUM_TASKS>: Print strict: modifier.
1172 * omp-expand.c (expand_task_call): Use GOMP_TASK_FLAG_STRICT in iflags
1173 if either grainsize or num_tasks clause has the strict modifier.
1174
1175 2021-08-23 Martin Liska <mliska@suse.cz>
1176
1177 * dbgcnt.def (DEBUG_COUNTER): New counter.
1178 * gimple.c (gimple_call_arg_flags): Use it in IPA PTA.
1179
1180 2021-08-23 Jan Hubicka <hubicka@ucw.cz>
1181
1182 * ipa-modref.c (analyze_ssa_name_flags): Improve handling of return slot.
1183
1184 2021-08-23 Xi Ruoyao <xry111@mengyan1223.wang>
1185
1186 PR target/101922
1187 * config/mips/mips-protos.h (mips_msa_output_shift_immediate):
1188 Declare.
1189 * config/mips/mips.c (mips_msa_output_shift_immediate): New
1190 function.
1191 * config/mips/mips-msa.md (vashl<mode>3, vashr<mode>3,
1192 vlshr<mode>3): Call it.
1193
1194 2021-08-22 Jan Hubicka <hubicka@ucw.cz>
1195 Martin Liska <mliska@suse.cz>
1196
1197 PR middle-end/101949
1198 * ipa-modref.c (analyze_ssa_name_flags): Indirect call implies
1199 ~EAF_NOCLOBBER.
1200
1201 2021-08-21 Dragan Mladjenovic <OT_Dragan.Mladjenovic@mediatek.com>
1202
1203 * config/mips/mips.c (mips_function_rodata_section,
1204 TARGET_ASM_FUNCTION_RODATA_SECTION): Removed.
1205
1206 2021-08-21 John David Anglin <danglin@gcc.gnu.org>
1207
1208 * config/pa/pa.c (pa_asm_output_aligned_common): Remove warning.
1209
1210 2021-08-20 Serge Belyshev <belyshev@depni.sinp.msu.ru>
1211
1212 * configure.ac (thread-local storage support): Remove tls_first_major
1213 and tls_first_minor. Use "$conftest_s" to check support.
1214 * configure: Regenerate.
1215
1216 2021-08-20 Serge Belyshev <belyshev@depni.sinp.msu.ru>
1217
1218 * configure.ac: Fixup formatting.
1219
1220 2021-08-20 Serge Belyshev <belyshev@depni.sinp.msu.ru>
1221
1222 * acinclude.m4 (gcc_GAS_CHECK_FEATURE): Remove third argument and ...
1223 * configure.ac: ... update all callers.
1224
1225 2021-08-20 Serge Belyshev <belyshev@depni.sinp.msu.ru>
1226
1227 PR target/91602
1228 * acinclude.m4 (_gcc_COMPUTE_GAS_VERSION, _gcc_GAS_VERSION_GTE_IFELSE)
1229 (gcc_GAS_VERSION_GTE_IFELSE): Remove.
1230 (gcc_GAS_CHECK_FEATURE): Do not handle in-tree case specially.
1231 * configure.ac: Remove gcc_cv_gas_major_version, gcc_cv_gas_minor_version.
1232 Remove remaining checks for in-tree assembler.
1233 * configure: Regenerate.
1234
1235 2021-08-20 Jeff Law <jlaw@localhost.localdomain>
1236
1237 * config/h8300/h8300.c (shift_alg_hi): Improve arithmetic shift right
1238 by 15 bits for H8/300H and H8/S. Improve logical shifts by 12
1239 bits for H8/S.
1240 (shift_alg_si): Improve arithmetic right shift by 28-30 bits for
1241 H8/300H. Improve arithmetic shift right by 15 bits for H8/S.
1242 Improve logical shifts by 27 bits for H8/S.
1243 (get_shift_alg): Corresponding changes.
1244 (h8300_option_override): Revert to loops for -Os when profitable.
1245
1246 2021-08-20 Richard Biener <rguenther@suse.de>
1247
1248 * tree-vect-data-refs.c (dr_group_sort_cmp): Do not compare
1249 BBs.
1250 (vect_analyze_data_ref_accesses): Likewise. Assign the BB
1251 index as group_id when dataref_groups were not computed.
1252 * tree-vect-slp.c (vect_slp_bbs): Bump current_group when
1253 we advace to the next BB.
1254
1255 2021-08-20 Jakub Jelinek <jakub@redhat.com>
1256
1257 * omp-builtins.def (BUILT_IN_GOMP_WARNING, BUILT_IN_GOMP_ERROR): New
1258 builtins.
1259
1260 2021-08-20 Martin Liska <mliska@suse.cz>
1261
1262 PR gcov-profile/89961
1263 * gcov.c (make_gcov_file_name): Rewrite using std::string.
1264 (mangle_name): Simplify, do not used the second argument.
1265 (strip_extention): New function.
1266 (get_md5sum): Likewise.
1267 (get_gcov_intermediate_filename): Handle properly -p and -x
1268 options.
1269 (output_gcov_file): Use string type.
1270 (generate_results): Likewise.
1271 (md5sum_to_hex): Remove.
1272
1273 2021-08-20 Michael Meissner <meissner@linux.ibm.com>
1274
1275 * config/rs6000/altivec.md (UNSPEC_XXEVAL): Move to vsx.md.
1276 (UNSPEC_XXSPLTIW): Move to vsx.md.
1277 (UNSPEC_XXSPLTID): Move to vsx.md.
1278 (UNSPEC_XXSPLTI32DX): Move to vsx.md.
1279 (UNSPEC_XXBLEND): Move to vsx.md.
1280 (UNSPEC_XXPERMX): Move to vsx.md.
1281 (VM3): Move to vsx.md.
1282 (VM3_char): Move to vsx.md.
1283 (xxspltiw_v4si): Move to vsx.md.
1284 (xxspltiw_v4sf): Move to vsx.md.
1285 (xxspltiw_v4sf_inst): Move to vsx.md.
1286 (xxspltidp_v2df): Move to vsx.md.
1287 (xxspltidp_v2df_inst): Move to vsx.md.
1288 (xxsplti32dx_v4si_inst): Move to vsx.md.
1289 (xxsplti32dx_v4sf): Move to vsx.md.
1290 (xxsplti32dx_v4sf_inst): Move to vsx.md.
1291 (xxblend_<mode>): Move to vsx.md.
1292 (xxpermx): Move to vsx.md.
1293 (xxpermx_inst): Move to vsx.md.
1294 * config/rs6000/vsx.md (UNSPEC_XXEVAL): Move from altivec.md.
1295 (UNSPEC_XXSPLTIW): Move from altivec.md.
1296 (UNSPEC_XXSPLTID): Move from altivec.md.
1297 (UNSPEC_XXSPLTI32DX): Move from altivec.md.
1298 (UNSPEC_XXBLEND): Move from altivec.md.
1299 (UNSPEC_XXPERMX): Move from altivec.md.
1300 (VM3): Move from altivec.md.
1301 (VM3_char): Move from altivec.md.
1302 (xxspltiw_v4si): Move from altivec.md.
1303 (xxspltiw_v4sf): Move from altivec.md.
1304 (xxspltiw_v4sf_inst): Move from altivec.md.
1305 (xxspltidp_v2df): Move from altivec.md.
1306 (xxspltidp_v2df_inst): Move from altivec.md.
1307 (xxsplti32dx_v4si_inst): Move from altivec.md.
1308 (xxsplti32dx_v4sf): Move from altivec.md.
1309 (xxsplti32dx_v4sf_inst): Move from altivec.md.
1310 (xxblend_<mode>): Move from altivec.md.
1311 (xxpermx): Move from altivec.md.
1312 (xxpermx_inst): Move from altivec.md.
1313
1314 2021-08-19 Roger Sayle <roger@nextmovesoftware.com>
1315
1316 * tree-vect-generic.c (expand_vector_operations_1): Use either
1317 gimplify_build1 or gimplify_build2 instead of gimple_build_assign
1318 when constructing scalar splat expressions.
1319
1320 2021-08-19 Peter Bergner <bergner@linux.ibm.com>
1321
1322 PR target/101849
1323 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_mma_builtin): Cast
1324 pointer to __vector_pair *.
1325
1326 2021-08-19 Martin Sebor <msebor@redhat.com>
1327
1328 * gimple-range.cc: Add comments.
1329 * gimple-range.h: Same.
1330
1331 2021-08-19 Martin Sebor <msebor@redhat.com>
1332
1333 PR middle-end/101984
1334 * gimple-ssa-warn-access.cc (pass_waccess::execute): Also call
1335 disable_ranger.
1336
1337 2021-08-19 Jeff Law <jlaw@localhost.localdomain>
1338
1339 * config.gcc (h8300-*-elf*): Do not include dbxelf.h.
1340 (h8300-*-linux*, v850-*-rtems*, v850*-elf*): Likewise.
1341 * config/v850/v850.h (DEFAULT_GDB_EXTENSIONS): Remove.
1342
1343 2021-08-19 Jakub Jelinek <jakub@redhat.com>
1344
1345 PR middle-end/101950
1346 * optabs.c (expand_clrsb_using_clz): New function.
1347 (expand_unop): Use it as another clrsb expansion fallback.
1348
1349 2021-08-19 liuhongt <hongtao.liu@intel.com>
1350
1351 Revert:
1352 2021-07-28 liuhongt <hongtao.liu@intel.com>
1353
1354 PR target/99881
1355 * config/i386/i386.h (processor_costs): Add new member
1356 integer_to_sse.
1357 * config/i386/x86-tune-costs.h (ix86_size_cost, i386_cost,
1358 i486_cost, pentium_cost, lakemont_cost, pentiumpro_cost,
1359 geode_cost, k6_cost, athlon_cost, k8_cost, amdfam10_cost,
1360 bdver_cost, znver1_cost, znver2_cost, znver3_cost,
1361 btver1_cost, btver2_cost, btver3_cost, pentium4_cost,
1362 nocona_cost, atom_cost, atom_cost, slm_cost, intel_cost,
1363 generic_cost, core_cost): Initialize integer_to_sse same value
1364 as sse_op.
1365 (skylake_cost): Initialize integer_to_sse twice as much as sse_op.
1366 * config/i386/i386.c (ix86_builtin_vectorization_cost):
1367 Use integer_to_sse instead of sse_op to calculate the cost of
1368 vec_construct.
1369
1370 2021-08-18 Iain Sandoe <iain@sandoe.co.uk>
1371
1372 * config.gcc: Include rpath.opt for Darwin.
1373 * config/darwin.h (DRIVER_SELF_SPECS): Handle -rpath.
1374
1375 2021-08-18 Thomas Schwinge <thomas@codesourcery.com>
1376
1377 PR bootstrap/101959
1378 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor_expand):
1379 Use an 'int_hash'.
1380
1381 2021-08-18 Jonathan Wright <jonathan.wright@arm.com>
1382
1383 * config/aarch64/arm_neon.h (vld3_lane_f64): Use float RTL
1384 pattern and type cast.
1385 (vld4_lane_f32): Use float RTL pattern.
1386 (vld4q_lane_f64): Use float type cast.
1387
1388 2021-08-18 Jan Hubicka <hubicka@ucw.cz>
1389
1390 * tree-ssa-uninit.c (maybe_warn_pass_by_reference): Check also
1391 EAF_NOREAD.
1392
1393 2021-08-18 Thomas Schwinge <thomas@codesourcery.com>
1394
1395 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): Extend.
1396 (test_map_of_type_with_ctor_and_dtor_expand): Add function.
1397 (hash_map_tests_c_tests): Call it.
1398
1399 2021-08-18 Thomas Schwinge <thomas@codesourcery.com>
1400
1401 * ggc.h (enum ggc_collect): New.
1402 (ggc_collect): Use it.
1403 * ggc-page.c: Adjust.
1404 * ggc-common.c: Likewise.
1405 * ggc-tests.c: Likewise.
1406 * read-rtl-function.c: Likewise.
1407 * selftest-run-tests.c: Likewise.
1408 * doc/gty.texi (Invoking the garbage collector): Likewise.
1409
1410 2021-08-18 liuhongt <hongtao.liu@intel.com>
1411
1412 PR target/97147
1413 * config/i386/i386.h (TARGET_V2DF_REDUCTION_PREFER_HADDPD):
1414 New macro.
1415 * config/i386/sse.md (*sse3_haddv2df3_low): Add
1416 TARGET_V2DF_REDUCTION_PREFER_HADDPD.
1417 (*sse3_hsubv2df3_low): Ditto.
1418 * config/i386/x86-tune.def
1419 (X86_TUNE_V2DF_REDUCTION_PREFER_HADDPD): New tune.
1420
1421 2021-08-17 Andrew MacLeod <amacleod@redhat.com>
1422
1423 * gimple-range-gori.cc (gori_compute::gori_compute): Enable tracing.
1424 (gori_compute::compute_operand_range): Add tracing.
1425 (gori_compute::logical_combine): Ditto.
1426 (gori_compute::compute_logical_operands): Ditto.
1427 (gori_compute::compute_operand1_range): Ditto.
1428 (gori_compute::compute_operand2_range): Ditto.
1429 (gori_compute::outgoing_edge_range_p): Ditto.
1430 * gimple-range-gori.h (class gori_compute): Add range_tracer.
1431
1432 2021-08-17 Andrew MacLeod <amacleod@redhat.com>
1433
1434 * flag-types.h (enum evrp_mode): Adjust evrp-mode values.
1435 * gimple-range-cache.cc (DEBUG_RANGE_CACHE): Relocate from.
1436 * gimple-range-trace.h (DEBUG_RANGE_CACHE): Here.
1437 * params.opt (--param=evrp-mode): Adjust options.
1438
1439 2021-08-17 Andrew MacLeod <amacleod@redhat.com>
1440
1441 * Makefile.in (OBJS): Add gimple-range-trace.o.
1442 * gimple-range-cache.h (enable_new_values): Remove unused prototype.
1443 * gimple-range-fold.cc: Adjust headers.
1444 * gimple-range-trace.cc: New.
1445 * gimple-range-trace.h: New.
1446 * gimple-range.cc (gimple_ranger::gimple_ranger): Enable tracer.
1447 (gimple_ranger::range_of_expr): Add tracing.
1448 (gimple_ranger::range_on_entry): Ditto.
1449 (gimple_ranger::range_on_exit): Ditto.
1450 (gimple_ranger::range_on_edge): Ditto.
1451 (gimple_ranger::fold_range_internal): Ditto.
1452 (gimple_ranger::dump_bb): Do not calculate edge range twice.
1453 (trace_ranger::*): Remove.
1454 (enable_ranger): Never create a trace_ranger.
1455 (debug_seed_ranger): Move to gimple-range-trace.cc.
1456 (dump_ranger): Ditto.
1457 (debug_ranger): Ditto.
1458 * gimple-range.h: Include gimple-range-trace.h.
1459 (range_on_entry, range_on_exit): No longer virtual.
1460 (class trace_ranger): Remove.
1461 (DEBUG_RANGE_CACHE): Move to gimple-range-trace.h.
1462
1463 2021-08-17 Martin Sebor <msebor@redhat.com>
1464
1465 PR middle-end/101854
1466 * builtins.c (expand_builtin_alloca): Move warning code to check_alloca
1467 in gimple-ssa-warn-access.cc.
1468 * calls.c (alloc_max_size): Move code to check_alloca.
1469 (get_size_range): Move to pointer-query.cc.
1470 (maybe_warn_alloc_args_overflow): Move to gimple-ssa-warn-access.cc.
1471 (get_attr_nonstring_decl): Move to tree.c.
1472 (fntype_argno_type): Move to gimple-ssa-warn-access.cc.
1473 (append_attrname): Same.
1474 (maybe_warn_rdwr_sizes): Same.
1475 (initialize_argument_information): Move code to
1476 gimple-ssa-warn-access.cc.
1477 * calls.h (maybe_warn_alloc_args_overflow): Move to
1478 gimple-ssa-warn-access.h.
1479 (get_attr_nonstring_decl): Move to tree.h.
1480 (maybe_warn_nonstring_arg): Move to gimple-ssa-warn-access.h.
1481 (enum size_range_flags): Move to pointer-query.h.
1482 (get_size_range): Same.
1483 * gimple-ssa-warn-access.cc (has_location): Remove unused overload
1484 to avoid Clang -Wunused-function.
1485 (get_size_range): Declare static.
1486 (maybe_emit_free_warning): Rename...
1487 (maybe_check_dealloc_call): ...to this for consistency.
1488 (class pass_waccess): Add members.
1489 (pass_waccess::~pass_waccess): Defined.
1490 (alloc_max_size): Move here from calls.c.
1491 (maybe_warn_alloc_args_overflow): Same.
1492 (check_alloca): New function.
1493 (check_alloc_size_call): New function.
1494 (check_strncat): Handle another warning flag.
1495 (pass_waccess::check_builtin): Handle alloca.
1496 (fntype_argno_type): Move here from calls.c.
1497 (append_attrname): Same.
1498 (maybe_warn_rdwr_sizes): Same.
1499 (pass_waccess::check_call): Define.
1500 (check_nonstring_args): New function.
1501 (pass_waccess::check): Call new member functions.
1502 (pass_waccess::execute): Enable ranger.
1503 * gimple-ssa-warn-access.h (get_size_range): Move here from calls.h.
1504 (maybe_warn_nonstring_arg): Same.
1505 * gimple-ssa-warn-restrict.c: Remove #include.
1506 * pointer-query.cc (get_size_range): Move here from calls.c.
1507 * pointer-query.h (enum size_range_flags): Same.
1508 (get_size_range): Same.
1509 * tree.c (get_attr_nonstring_decl): Move here from calls.c.
1510 * tree.h (get_attr_nonstring_decl): Move here from calls.h.
1511
1512 2021-08-17 Thomas Schwinge <thomas@codesourcery.com>
1513
1514 * ggc.h (ggc_collect): Add 'force_collect' parameter.
1515 * ggc-page.c (ggc_collect): Use that one instead of global
1516 'ggc_force_collect'. Adjust all users.
1517 * doc/gty.texi (Invoking the garbage collector): Update.
1518 * ggc-internal.h (ggc_force_collect): Remove.
1519 * ggc-common.c (ggc_force_collect): Likewise.
1520 * selftest.h (forcibly_ggc_collect): Remove.
1521 * ggc-tests.c (selftest::forcibly_ggc_collect): Likewise.
1522 * read-rtl-function.c (test_loading_labels): Adjust.
1523 * selftest-run-tests.c (run_tests): Likewise.
1524
1525 2021-08-17 Iain Sandoe <iain@sandoe.co.uk>
1526
1527 * config/darwin.c (darwin_file_end): Reset and reclaim the
1528 section names table at the end of compile.
1529
1530 2021-08-17 Iain Sandoe <iain@sandoe.co.uk>
1531
1532 PR target/100340
1533 * config.in: Regenerate.
1534 * config/i386/darwin.h (EXTRA_ASM_OPTS): New
1535 (ASM_SPEC): Pass options to disable branch shortening where
1536 needed.
1537 * configure: Regenerate.
1538 * configure.ac: Detect versions of 'as' that support the
1539 optimisation which has the bug.
1540
1541 2021-08-17 Richard Biener <rguenther@suse.de>
1542
1543 * optabs-query.c (supports_vec_gather_load_p): Also check
1544 for masked optabs.
1545 (supports_vec_scatter_store_p): Likewise.
1546 * tree-vect-data-refs.c (vect_gather_scatter_fn_p): Fall
1547 back to masked variants if non-masked are not supported.
1548 * tree-vect-patterns.c (vect_recog_gather_scatter_pattern):
1549 When we need to use masked gather/scatter but do not have
1550 a mask set up a constant true one.
1551 * tree-vect-stmts.c (vect_check_scalar_mask): Also allow
1552 non-SSA_NAME masks.
1553
1554 2021-08-17 Roger Sayle <roger@nextmovesoftware.com>
1555
1556 * tree-ssa-ccp.c (bit_value_binop) [MINUS_EXPR]: Use same
1557 algorithm as PLUS_EXPR to improve subtraction bit bounds.
1558 [POINTER_DIFF_EXPR]: Treat as synonymous with MINUS_EXPR.
1559
1560 2021-08-17 Roger Sayle <roger@nextmovesoftware.com>
1561
1562 * tree-ssa-ccp.c (bit_value_mult_const): New helper function to
1563 calculate the mask-value pair result of a multiplication by an
1564 unsigned constant.
1565 (bit_value_binop) [MULT_EXPR]: Call it from here for
1566 multiplications by (sparse) non-negative constants.
1567
1568 2021-08-17 Christophe Lyon <christophe.lyon@foss.st.com>
1569
1570 PR target/100896
1571 * config.gcc (gcc_cv_initfini_array): Leave undefined for
1572 uclinuxfdpiceabi targets.
1573
1574 2021-08-17 Alexandre Oliva <oliva@adacore.com>
1575
1576 * tree-inline.c (maybe_move_debug_stmts_to_successors): Don't
1577 reverse debug stmts.
1578
1579 2021-08-17 Alexandre Oliva <oliva@adacore.com>
1580
1581 * tree-cfg.c (dump_function_to_file): Use fun, not cfun.
1582
1583 2021-08-17 Jonathan Wright <jonathan.wright@arm.com>
1584
1585 * config/aarch64/arm_neon.h (__LD4_LANE_FUNC): Delete.
1586 (__LD4Q_LANE_FUNC): Likewise.
1587 (vld4_lane_u8): Define without macro.
1588 (vld4_lane_u16): Likewise.
1589 (vld4_lane_u32): Likewise.
1590 (vld4_lane_u64): Likewise.
1591 (vld4_lane_s8): Likewise.
1592 (vld4_lane_s16): Likewise.
1593 (vld4_lane_s32): Likewise.
1594 (vld4_lane_s64): Likewise.
1595 (vld4_lane_f16): Likewise.
1596 (vld4_lane_f32): Likewise.
1597 (vld4_lane_f64): Likewise.
1598 (vld4_lane_p8): Likewise.
1599 (vld4_lane_p16): Likewise.
1600 (vld4_lane_p64): Likewise.
1601 (vld4q_lane_u8): Likewise.
1602 (vld4q_lane_u16): Likewise.
1603 (vld4q_lane_u32): Likewise.
1604 (vld4q_lane_u64): Likewise.
1605 (vld4q_lane_s8): Likewise.
1606 (vld4q_lane_s16): Likewise.
1607 (vld4q_lane_s32): Likewise.
1608 (vld4q_lane_s64): Likewise.
1609 (vld4q_lane_f16): Likewise.
1610 (vld4q_lane_f32): Likewise.
1611 (vld4q_lane_f64): Likewise.
1612 (vld4q_lane_p8): Likewise.
1613 (vld4q_lane_p16): Likewise.
1614 (vld4q_lane_p64): Likewise.
1615 (vld4_lane_bf16): Likewise.
1616 (vld4q_lane_bf16): Likewise.
1617
1618 2021-08-17 Jonathan Wright <jonathan.wright@arm.com>
1619
1620 * config/aarch64/arm_neon.h (__LD3_LANE_FUNC): Delete.
1621 (__LD3Q_LANE_FUNC): Delete.
1622 (vld3_lane_u8): Define without macro.
1623 (vld3_lane_u16): Likewise.
1624 (vld3_lane_u32): Likewise.
1625 (vld3_lane_u64): Likewise.
1626 (vld3_lane_s8): Likewise.
1627 (vld3_lane_s16): Likewise.
1628 (vld3_lane_s32): Likewise.
1629 (vld3_lane_s64): Likewise.
1630 (vld3_lane_f16): Likewise.
1631 (vld3_lane_f32): Likewise.
1632 (vld3_lane_f64): Likewise.
1633 (vld3_lane_p8): Likewise.
1634 (vld3_lane_p16): Likewise.
1635 (vld3_lane_p64): Likewise.
1636 (vld3q_lane_u8): Likewise.
1637 (vld3q_lane_u16): Likewise.
1638 (vld3q_lane_u32): Likewise.
1639 (vld3q_lane_u64): Likewise.
1640 (vld3q_lane_s8): Likewise.
1641 (vld3q_lane_s16): Likewise.
1642 (vld3q_lane_s32): Likewise.
1643 (vld3q_lane_s64): Likewise.
1644 (vld3q_lane_f16): Likewise.
1645 (vld3q_lane_f32): Likewise.
1646 (vld3q_lane_f64): Likewise.
1647 (vld3q_lane_p8): Likewise.
1648 (vld3q_lane_p16): Likewise.
1649 (vld3q_lane_p64): Likewise.
1650 (vld3_lane_bf16): Likewise.
1651 (vld3q_lane_bf16): Likewise.
1652
1653 2021-08-17 Jonathan Wright <jonathan.wright@arm.com>
1654
1655 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Delete.
1656 (__LD2Q_LANE_FUNC): Likewise.
1657 (vld2_lane_u8): Define without macro.
1658 (vld2_lane_u16): Likewise.
1659 (vld2_lane_u32): Likewise.
1660 (vld2_lane_u64): Likewise.
1661 (vld2_lane_s8): Likewise.
1662 (vld2_lane_s16): Likewise.
1663 (vld2_lane_s32): Likewise.
1664 (vld2_lane_s64): Likewise.
1665 (vld2_lane_f16): Likewise.
1666 (vld2_lane_f32): Likewise.
1667 (vld2_lane_f64): Likewise.
1668 (vld2_lane_p8): Likewise.
1669 (vld2_lane_p16): Likewise.
1670 (vld2_lane_p64): Likewise.
1671 (vld2q_lane_u8): Likewise.
1672 (vld2q_lane_u16): Likewise.
1673 (vld2q_lane_u32): Likewise.
1674 (vld2q_lane_u64): Likewise.
1675 (vld2q_lane_s8): Likewise.
1676 (vld2q_lane_s16): Likewise.
1677 (vld2q_lane_s32): Likewise.
1678 (vld2q_lane_s64): Likewise.
1679 (vld2q_lane_f16): Likewise.
1680 (vld2q_lane_f32): Likewise.
1681 (vld2q_lane_f64): Likewise.
1682 (vld2q_lane_p8): Likewise.
1683 (vld2q_lane_p16): Likewise.
1684 (vld2q_lane_p64): Likewise.
1685 (vld2_lane_bf16): Likewise.
1686 (vld2q_lane_bf16): Likewise.
1687
1688 2021-08-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
1689
1690 * haifa-sched.c (advance_one_cycle): Output more context-synchronization
1691 lines for diff.
1692
1693 2021-08-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
1694
1695 * haifa-sched.c (enum rfs_decision, rfs_str): Add RFS_AUTOPREF.
1696 (rank_for_schedule): Use it.
1697
1698 2021-08-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
1699
1700 PR rtl-optimization/91598
1701 * haifa-sched.c (autopref_rank_for_schedule): Prioritize "irrelevant"
1702 insns after memory reads and before memory writes.
1703
1704 2021-08-17 Alistair_Lee <alistair.lee@arm.com>
1705
1706 * rtl.h (CONST_VECTOR_P): New macro.
1707 * config/aarch64/aarch64.c (aarch64_get_sve_pred_bits): Use RTL
1708 code testing macros.
1709 (aarch64_ptrue_all_mode): Likewise.
1710 (aarch64_expand_mov_immediate): Likewise.
1711 (aarch64_const_vec_all_in_range_p): Likewise.
1712 (aarch64_rtx_costs): Likewise.
1713 (aarch64_legitimate_constant_p): Likewise.
1714 (aarch64_simd_valid_immediate): Likewise.
1715 (aarch64_simd_make_constant): Likewise.
1716 (aarch64_convert_mult_to_shift): Likewise.
1717 (aarch64_expand_sve_vec_perm): Likewise.
1718 (aarch64_vec_fpconst_pow_of_2): Likewise.
1719
1720 2021-08-17 Andrew MacLeod <amacleod@redhat.com>
1721
1722 PR tree-optimization/101938
1723 * range-op.cc (operator_abs::op1_range): Special case
1724 -TYPE_MIN_VALUE for flag_wrapv.
1725
1726 2021-08-17 Kewen Lin <linkw@linux.ibm.com>
1727
1728 * tree-vect-slp.c (vectorizable_bb_reduc_epilogue): Add the cost for
1729 value extraction.
1730
1731 2021-08-17 Jakub Jelinek <jakub@redhat.com>
1732
1733 * tree.def (OMP_SCOPE): New tree code.
1734 * tree.h (OMP_SCOPE_BODY, OMP_SCOPE_CLAUSES): Define.
1735 * tree-nested.c (convert_nonlocal_reference_stmt,
1736 convert_local_reference_stmt, convert_gimple_call): Handle
1737 GIMPLE_OMP_SCOPE.
1738 * tree-pretty-print.c (dump_generic_node): Handle OMP_SCOPE.
1739 * gimple.def (GIMPLE_OMP_SCOPE): New gimple code.
1740 * gimple.c (gimple_build_omp_scope): New function.
1741 (gimple_copy): Handle GIMPLE_OMP_SCOPE.
1742 * gimple.h (gimple_build_omp_scope): Declare.
1743 (gimple_has_substatements): Handle GIMPLE_OMP_SCOPE.
1744 (gimple_omp_scope_clauses, gimple_omp_scope_clauses_ptr,
1745 gimple_omp_scope_set_clauses): New inline functions.
1746 (CASE_GIMPLE_OMP): Add GIMPLE_OMP_SCOPE.
1747 * gimple-pretty-print.c (dump_gimple_omp_scope): New function.
1748 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCOPE.
1749 * gimple-walk.c (walk_gimple_stmt): Likewise.
1750 * gimple-low.c (lower_stmt): Likewise.
1751 * gimplify.c (is_gimple_stmt): Handle OMP_MASTER.
1752 (gimplify_scan_omp_clauses): For task reductions, handle OMP_SCOPE
1753 like ORT_WORKSHARE constructs. Adjust diagnostics for %<scope%>
1754 allowing task reductions. Reject inscan reductions on scope.
1755 (omp_find_stores_stmt): Handle GIMPLE_OMP_SCOPE.
1756 (gimplify_omp_workshare, gimplify_expr): Handle OMP_SCOPE.
1757 * tree-inline.c (remap_gimple_stmt): Handle GIMPLE_OMP_SCOPE.
1758 (estimate_num_insns): Likewise.
1759 * omp-low.c (build_outer_var_ref): Look through GIMPLE_OMP_SCOPE
1760 contexts if var isn't privatized there.
1761 (check_omp_nesting_restrictions): Handle GIMPLE_OMP_SCOPE.
1762 (scan_omp_1_stmt): Likewise.
1763 (maybe_add_implicit_barrier_cancel): Look through outer
1764 scope constructs.
1765 (lower_omp_scope): New function.
1766 (lower_omp_task_reductions): Handle OMP_SCOPE.
1767 (lower_omp_1): Handle GIMPLE_OMP_SCOPE.
1768 (diagnose_sb_1, diagnose_sb_2): Likewise.
1769 * omp-expand.c (expand_omp_single): Support also GIMPLE_OMP_SCOPE.
1770 (expand_omp): Handle GIMPLE_OMP_SCOPE.
1771 (omp_make_gimple_edges): Likewise.
1772 * omp-builtins.def (BUILT_IN_GOMP_SCOPE_START): New built-in.
1773
1774 2021-08-17 Richard Biener <rguenther@suse.de>
1775
1776 PR tree-optimization/101925
1777 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Set
1778 reverse on COMPONENT_REF and ARRAY_REF according to
1779 what reverse_storage_order_for_component_p does.
1780 (vn_reference_eq): Compare reversed on reference ops.
1781 (reverse_storage_order_for_component_p): New overload.
1782 (vn_reference_lookup_3): Check reverse_storage_order_for_component_p
1783 on the reference looked up.
1784
1785 2021-08-17 Jeff Law <jlaw@localhost.localdomain>
1786
1787 * config/h8300/h8300.c (shift_alg_si): Avoid loops for most SImode
1788 shifts on the H8/S.
1789 (h8300_option_override): Use loops on H8/S more often when optimizing
1790 for size.
1791 (get_shift_alg): Handle new "special" cases on H8/S. Simplify
1792 accordingly. Handle various arithmetic right shifts with special
1793 sequences that we couldn't handle before.
1794
1795 2021-08-16 Jeff Law <jlaw@localhost.localdomain>
1796
1797 * config.gcc (rl78-*-elf*): Do not include dbxelf.h.
1798
1799 2021-08-16 Sebastian Huber <sebastian.huber@embedded-brains.de>
1800
1801 * config/sparc/rtemself.h (SPARC_GCOV_TYPE_SIZE): Define.
1802 * config/sparc/sparc.c (sparc_gcov_type_size): New.
1803 (TARGET_GCOV_TYPE_SIZE): Redefine if SPARC_GCOV_TYPE_SIZE is defined.
1804 * coverage.c (get_gcov_type): Use targetm.gcov_type_size().
1805 * doc/tm.texi (TARGET_GCOV_TYPE_SIZE): Add hook under "Misc".
1806 * doc/tm.texi.in: Regenerate.
1807 * target.def (gcov_type_size): New target hook.
1808 * targhooks.c (default_gcov_type_size): New.
1809 * targhooks.h (default_gcov_type_size): Declare.
1810 * tree-profile.c (gimple_gen_edge_profiler): Use precision of
1811 gcov_type_node.
1812 (gimple_gen_time_profiler): Likewise.
1813
1814 2021-08-16 Eric Botcazou <ebotcazou@gcc.gnu.org>
1815
1816 * dwarf2out.c (add_scalar_info): Deal with DW_AT_data_bit_offset.
1817
1818 2021-08-16 Tobias Burnus <tobias@codesourcery.com>
1819
1820 PR middle-end/101931
1821 * omp-low.c (omp_runtime_api_call): Update for routines
1822 added in the meanwhile.
1823
1824 2021-08-16 Martin Liska <mliska@suse.cz>
1825
1826 PR tree-optimization/100393
1827 * tree-switch-conversion.c (group_cluster::dump): Use
1828 get_comparison_count.
1829 (jump_table_cluster::find_jump_tables): Pre-compute number of
1830 comparisons and then decrement it. Cache also max_ratio.
1831 (jump_table_cluster::can_be_handled): Change signature.
1832 * tree-switch-conversion.h (get_comparison_count): New.
1833
1834 2021-08-16 Eric Botcazou <ebotcazou@gcc.gnu.org>
1835
1836 * dwarf2out.c (add_data_member_location_attribute): Use GNAT
1837 encodings only when -fgnat-encodings=all is specified.
1838 (add_bound_info): Likewise.
1839 (add_byte_size_attribute): Likewise.
1840 (gen_member_die): Likewise.
1841
1842 2021-08-16 Thomas Schwinge <thomas@codesourcery.com>
1843
1844 * omp-oacc-neuter-broadcast.cc
1845 (execute_omp_oacc_neuter_broadcast): Plug 'par' memory leak.
1846
1847 2021-08-16 Thomas Schwinge <thomas@codesourcery.com>
1848
1849 * omp-oacc-neuter-broadcast.cc
1850 (execute_omp_oacc_neuter_broadcast): Clarify memory management for
1851 'prop_set'.
1852
1853 2021-08-16 Thomas Schwinge <thomas@codesourcery.com>
1854
1855 * omp-oacc-neuter-broadcast.cc (field_map): Move variable into...
1856 (execute_omp_oacc_neuter_broadcast): ... here.
1857 (install_var_field, build_receiver_ref, build_sender_ref): Take
1858 'field_map_t *' parameter. Adjust all users.
1859 (worker_single_copy, neuter_worker_single): Take a
1860 'record_field_map_t *' parameter. Adjust all users.
1861
1862 2021-08-16 liuhongt <hongtao.liu@intel.com>
1863
1864 PR target/101930
1865 * config/i386/i386.md (ldexp<mode>3): Force operands[1] to
1866 reg.
1867
1868 2021-08-16 Martin Liska <mliska@suse.cz>
1869
1870 PR ipa/101726
1871 * multiple_target.c (create_dispatcher_calls): Make default
1872 function local only if it is a definition.
1873
1874 2021-08-16 Martin Liska <mliska@suse.cz>
1875
1876 PR ipa/100600
1877 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Do not
1878 consider equal SSA_NAMEs when one is a param.
1879
1880 2021-08-16 liuhongt <hongtao.liu@intel.com>
1881
1882 PR target/101846
1883 * config/i386/i386-expand.c (ix86_expand_vec_perm_vpermt2):
1884 Support vpermi2b for V32QI/V16QImode.
1885 (ix86_extract_perm_from_pool_constant): New function.
1886 (ix86_expand_vec_one_operand_perm_avx512): Support
1887 vpermw/vpermb under TARGET_AVX512BW/TARGET_AVX512VBMI.
1888 (expand_vec_perm_1): Adjust comments for upper.
1889 * config/i386/i386-protos.h (ix86_extract_perm_from_pool_constant):
1890 New declare.
1891 * config/i386/predicates.md (permvar_truncate_operand): New predicate.
1892 (pshufb_truncv4siv4hi_operand): Ditto.
1893 (pshufb_truncv8hiv8qi_operand): Ditto.
1894 * config/i386/sse.md (*avx512bw_permvar_truncv16siv16hi_1):
1895 New pre_reload define_insn_and_split.
1896 (*avx512f_permvar_truncv8siv8hi_1): Ditto.
1897 (*avx512f_vpermvar_truncv8div8si_1): Ditto.
1898 (*avx512f_permvar_truncv32hiv32qi_1): Ditto.
1899 (*avx512f_permvar_truncv16hiv16qi_1): Ditto.
1900 (*avx512f_permvar_truncv4div4si_1): Ditto.
1901 (*avx512f_pshufb_truncv8hiv8qi_1): Ditto.
1902 (*avx512f_pshufb_truncv4siv4hi_1): Ditto.
1903 (*avx512f_pshufd_truncv2div2si_1): Ditto.
1904
1905 2021-08-16 Kito Cheng <kito.cheng@sifive.com>
1906
1907 * config/riscv/multilib-generator: Support code model option for
1908 multi-lib.
1909 * doc/install.texi: Add document of new option for
1910 --with-multilib-generator.
1911
1912 2021-08-15 Clément Chigot <clement.chigot@atos.net>
1913
1914 * config/rs6000/rs6000.c (xcoff_tls_exec_model_detected): New.
1915 (rs6000_legitimize_tls_address_aix): Use it.
1916 (rs6000_xcoff_file_end): Add ".ref __tls_get_addr" when
1917 xcoff_tls_exec_model_detected is true.
1918
1919 2021-08-15 Jeff Law <jlaw@localhost.localdomain>
1920
1921 * config/h8300/h8300.c (shift_alg_si): Retune H8/300H shifts
1922 to allow a bit more code growth, saving many dozens of cycles.
1923 (h8300_option_override): Adjus shift_alg_si if optimizing for
1924 code size.
1925 (get_shift_alg): Use special + inline shifts for residuals
1926 in more cases.
1927
1928 2021-08-14 Stafford Horne <shorne@gmail.com>
1929
1930 PR target/99783
1931 * config/or1k/or1k-opts.h: New file.
1932 * config/or1k/or1k.c (or1k_legitimize_address_1, print_reloc):
1933 Support generating gotha relocations if -mcmodel=large is
1934 specified.
1935 * config/or1k/or1k.h (TARGET_CMODEL_SMALL, TARGET_CMODEL_LARGE):
1936 New macros.
1937 * config/or1k/or1k.opt (mcmodel=): New option.
1938 * doc/invoke.texi (OpenRISC Options): Document mcmodel.
1939
1940 2021-08-14 Martin Sebor <msebor@redhat.com>
1941
1942 PR middle-end/101791
1943 * gimple-ssa-warn-access.cc (new_delete_mismatch_p): Use new argument
1944 to valid_new_delete_pair_p.
1945 * tree.c (valid_new_delete_pair_p): Add argument.
1946 * tree.h (valid_new_delete_pair_p): Same.
1947
1948 2021-08-14 Jakub Jelinek <jakub@redhat.com>
1949
1950 PR target/101896
1951 * config/i386/i386-expand.c (expand_vec_perm_broadcast_1)
1952 <case E_V64QImode>: For this mode assert
1953 !TARGET_AVX512BW || d->perm[0] rather than !TARGET_AVX2 || d->perm[0].
1954
1955 2021-08-13 Michael Meissner <meissner@linux.ibm.com>
1956
1957 PR target/99921
1958 * config/rs6000/altivec.md (xxeval): Use register_predicate
1959 instead of altivec_register_predicate.
1960
1961 2021-08-13 Martin Sebor <msebor@redhat.com>
1962
1963 PR middle-end/101734
1964 * tree-ssa-uninit.c (maybe_warn_read_write_only): New function.
1965 (maybe_warn_operand): Call it.
1966
1967 2021-08-13 Martin Liska <mliska@suse.cz>
1968
1969 PR ipa/101354
1970 * attribs.c (decl_attributes): Make naked functions "noipa"
1971 functions.
1972
1973 2021-08-13 Martin Liska <mliska@suse.cz>
1974
1975 PR ipa/101261
1976 * symtab.c (symtab_node::noninterposable_alias): Do not create
1977 local aliases for target_clone functions as the clonning pass
1978 rejects aliases.
1979
1980 2021-08-13 Martin Liska <mliska@suse.cz>
1981
1982 * opts.c (LIVE_PATCHING_OPTION): Define.
1983 (control_options_for_live_patching): Use it in error messages.
1984
1985 2021-08-13 Jan Hubicka <hubicka@ucw.cz>
1986
1987 * ipa-modref.c (dump_eaf_flags): Dump EAF_NOREAD.
1988 (implicit_const_eaf_flags, implicit_pure_eaf_flags,
1989 ignore_stores_eaf_flags): New constants.
1990 (remove_useless_eaf_flags): New function.
1991 (eaf_flags_useful_p): Use it.
1992 (deref_flags): Add EAF_NOT_RETURNED if flag is unused;
1993 handle EAF_NOREAD.
1994 (modref_lattice::init): Add EAF_NOREAD.
1995 (modref_lattice::add_escape_point): Do not reacord escape point if
1996 result is unused.
1997 (modref_lattice::merge): EAF_NOESCAPE implies EAF_NODIRECTESCAPE;
1998 use remove_useless_eaf_flags.
1999 (modref_lattice::merge_deref): Use ignore_stores_eaf_flags.
2000 (modref_lattice::merge_direct_load): Add EAF_NOREAD
2001 (analyze_ssa_name_flags): Fix handling EAF_NOT_RETURNED
2002 (analyze_parms): Use remove_useless_eaf_flags.
2003 (ipa_merge_modref_summary_after_inlining): Use ignore_stores_eaf_flags.
2004 (modref_merge_call_site_flags): Add caller and ecf_flags parameter;
2005 use remove_useless_eaf_flags.
2006 (modref_propagate_flags_in_scc): Update.
2007 * ipa-modref.h: Turn eaf_flags_t back to char.
2008 * tree-core.h (EAF_NOT_RETURNED): Fix.
2009 (EAF_NOREAD): New constant
2010 * tree-ssa-alias.c: (ref_maybe_used_by_call_p_1): Check for
2011 EAF_NOREAD.
2012 * tree-ssa-structalias.c (handle_rhs_call): Handle new flags.
2013 (handle_pure_call): Likewise.
2014
2015 2021-08-12 Jakub Jelinek <jakub@redhat.com>
2016
2017 * tree.def (OMP_MASKED): New tree code.
2018 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_FILTER.
2019 * tree.h (OMP_MASKED_BODY, OMP_MASKED_CLAUSES, OMP_MASKED_COMBINED,
2020 OMP_CLAUSE_FILTER_EXPR): Define.
2021 * tree.c (omp_clause_num_ops): Add OMP_CLAUSE_FILTER entry.
2022 (omp_clause_code_name): Likewise.
2023 (walk_tree_1): Handle OMP_CLAUSE_FILTER.
2024 * tree-nested.c (convert_nonlocal_omp_clauses,
2025 convert_local_omp_clauses): Handle OMP_CLAUSE_FILTER.
2026 (convert_nonlocal_reference_stmt, convert_local_reference_stmt,
2027 convert_gimple_call): Handle GIMPLE_OMP_MASTER.
2028 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_FILTER.
2029 (dump_generic_node): Handle OMP_MASTER.
2030 * gimple.def (GIMPLE_OMP_MASKED): New gimple code.
2031 * gimple.c (gimple_build_omp_masked): New function.
2032 (gimple_copy): Handle GIMPLE_OMP_MASKED.
2033 * gimple.h (gimple_build_omp_masked): Declare.
2034 (gimple_has_substatements): Handle GIMPLE_OMP_MASKED.
2035 (gimple_omp_masked_clauses, gimple_omp_masked_clauses_ptr,
2036 gimple_omp_masked_set_clauses): New inline functions.
2037 (CASE_GIMPLE_OMP): Add GIMPLE_OMP_MASKED.
2038 * gimple-pretty-print.c (dump_gimple_omp_masked): New function.
2039 (pp_gimple_stmt_1): Handle GIMPLE_OMP_MASKED.
2040 * gimple-walk.c (walk_gimple_stmt): Likewise.
2041 * gimple-low.c (lower_stmt): Likewise.
2042 * gimplify.c (is_gimple_stmt): Handle OMP_MASTER.
2043 (gimplify_scan_omp_clauses): Handle OMP_CLAUSE_FILTER. For clauses
2044 that take one expression rather than decl or constant, force
2045 gimplification of that into a SSA_NAME or temporary unless min
2046 invariant.
2047 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_FILTER.
2048 (gimplify_expr): Handle OMP_MASKED.
2049 * tree-inline.c (remap_gimple_stmt): Handle GIMPLE_OMP_MASKED.
2050 (estimate_num_insns): Likewise.
2051 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_FILTER.
2052 (check_omp_nesting_restrictions): Handle GIMPLE_OMP_MASKED. Adjust
2053 diagnostics for existence of masked construct.
2054 (scan_omp_1_stmt, lower_omp_master, lower_omp_1, diagnose_sb_1,
2055 diagnose_sb_2): Handle GIMPLE_OMP_MASKED.
2056 * omp-expand.c (expand_omp_synch, expand_omp, omp_make_gimple_edges):
2057 Likewise.
2058
2059 2021-08-12 Uroš Bizjak <ubizjak@gmail.com>
2060
2061 PR target/98309
2062 * config/i386/i386.md (avx512f_scalef<mode>2): New insn pattern.
2063 (ldexp<mode>3): Use avx512f_scalef<mode>2.
2064 (UNSPEC_SCALEF): Move from ...
2065 * config/i386/sse.md (UNSPEC_SCALEF): ... here.
2066
2067 2021-08-12 Jan Hubicka <hubicka@ucw.cz>
2068
2069 * ipa-split.c (consider_split): Fix condition testing void functions.
2070
2071 2021-08-12 Aldy Hernandez <aldyh@redhat.com>
2072
2073 * doc/invoke.texi: Remove docs for threader-mode param.
2074 * flag-types.h (enum threader_mode): Remove.
2075 * params.opt: Remove threader-mode param.
2076 * tree-ssa-threadbackward.c (class back_threader): Remove
2077 path_is_unreachable_p.
2078 Make find_paths private.
2079 Add maybe_thread and thread_through_all_blocks.
2080 Remove reference marker for m_registry.
2081 Remove reference marker for m_profit.
2082 (back_threader::back_threader): Adjust for registry and profit not
2083 being references.
2084 (dump_path): Move down.
2085 (debug): Move down.
2086 (class thread_jumps): Remove.
2087 (class back_threader_registry): Remove m_all_paths.
2088 Remove destructor.
2089 (thread_jumps::thread_through_all_blocks): Move to back_threader
2090 class.
2091 (fsm_find_thread_path): Remove
2092 (back_threader::maybe_thread): New.
2093 (back_threader::thread_through_all_blocks): Move from
2094 thread_jumps.
2095 (back_threader_registry::back_threader_registry): Remove
2096 m_all_paths.
2097 (back_threader_registry::~back_threader_registry): Remove.
2098 (thread_jumps::find_taken_edge): Remove.
2099 (thread_jumps::check_subpath_and_update_thread_path): Remove.
2100 (thread_jumps::maybe_register_path): Remove.
2101 (thread_jumps::handle_phi): Remove.
2102 (handle_assignment_p): Remove.
2103 (thread_jumps::handle_assignment): Remove.
2104 (thread_jumps::fsm_find_control_statement_thread_paths): Remove.
2105 (thread_jumps::find_jump_threads_backwards): Remove.
2106 (thread_jumps::find_jump_threads_backwards_with_ranger): Remove.
2107 (try_thread_blocks): Rename find_jump_threads_backwards to
2108 maybe_thread.
2109 (pass_early_thread_jumps::execute): Same.
2110
2111 2021-08-12 Tobias Burnus <tobias@codesourcery.com>
2112
2113 * tree-core.h (omp_clause_proc_bind_kind): Add
2114 OMP_CLAUSE_PROC_BIND_PRIMARY.
2115 * tree-pretty-print.c (dump_omp_clause): Add TODO comment to
2116 change 'master' to 'primary' in proc_bind for OpenMP 5.1.
2117
2118 2021-08-12 Claudiu Zissulescu <claziss@synopsys.com>
2119
2120 * common/config/arc/arc-common.c (arc_option_init_struct): Remove
2121 fno-common reference.
2122 * config/arc/arc.c (arc_override_options): Remove overriding of
2123 flag_no_common.
2124
2125 2021-08-12 Jakub Jelinek <jakub@redhat.com>
2126
2127 PR target/101860
2128 * config/i386/i386-expand.c (ix86_expand_vec_one_operand_perm_avx512):
2129 If d->testing_p, return true after performing checks instead of
2130 actually expanding the insn.
2131 (expand_vec_perm_broadcast_1): Handle V32HImode - assert
2132 !TARGET_AVX512BW and return false.
2133
2134 2021-08-12 Eric Botcazou <ebotcazou@gcc.gnu.org>
2135
2136 * configure.ac (PE linker --disable-dynamicbase support): New check.
2137 * configure: Regenerate.
2138 * config.in: Likewise.
2139 * config/i386/mingw32.h (LINK_SPEC_DISABLE_DYNAMICBASE): New define.
2140 (LINK_SPEC): Use it.
2141 * config/i386/mingw-w64.h (LINK_SPEC_DISABLE_DYNAMICBASE): Likewise.
2142 (LINK_SPEC): Likewise.
2143
2144 2021-08-12 liuhongt <hongtao.liu@intel.com>
2145
2146 PR target/101846
2147 * config/i386/sse.md (*avx2_zero_extendv16qiv16hi2_2): New
2148 post_reload define_insn_and_split.
2149 (*avx512bw_zero_extendv32qiv32hi2_2): Ditto.
2150 (*sse4_1_zero_extendv8qiv8hi2_4): Ditto.
2151 (*avx512f_zero_extendv16hiv16si2_2): Ditto.
2152 (*avx2_zero_extendv8hiv8si2_2): Ditto.
2153 (*sse4_1_zero_extendv4hiv4si2_4): Ditto.
2154 (*avx512f_zero_extendv8siv8di2_2): Ditto.
2155 (*avx2_zero_extendv4siv4di2_2): Ditto.
2156 (*sse4_1_zero_extendv2siv2di2_4): Ditto.
2157 (VI248_256, VI248_512, VI148_512, VI148_256, VI148_128): New
2158 mode iterator.
2159
2160 2021-08-11 Bill Schmidt <wschmidt@linux.ibm.com>
2161
2162 * config/rs6000/rs6000-builtin-new.def: Add always, power5, and
2163 power6 stanzas.
2164
2165 2021-08-11 Bill Schmidt <wschmidt@linux.ibm.com>
2166
2167 * config/rs6000/rs6000-builtin-new.def: Add vsx stanza.
2168
2169 2021-08-11 Bill Schmidt <wschmidt@linux.ibm.com>
2170
2171 * config/rs6000/rs6000-builtin-new.def: Finish altivec stanza.
2172 * config/rs6000/rs6000-call.c (rs6000_init_builtins): Move
2173 initialization of pcvoid_type_node here...
2174 (altivec_init_builtins): ...from here.
2175 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add
2176 RS6000_BTI_const_ptr_void.
2177 (pcvoid_type_node): New macro.
2178
2179 2021-08-11 Richard Biener <rguenther@suse.de>
2180
2181 PR target/101877
2182 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not decompose
2183 hard-register accesses.
2184
2185 2021-08-11 Richard Biener <rguenther@suse.de>
2186
2187 * tree-ssa-operands.c (operands_scanner::get_expr_operands):
2188 Do not look at COMPONENT_REF FIELD_DECLs TREE_THIS_VOLATILE
2189 to determine has_volatile_ops.
2190
2191 2021-08-11 Eric Botcazou <ebotcazou@gcc.gnu.org>
2192
2193 * cfgexpand.c (expand_used_vars): Reuse attribs local variable.
2194
2195 2021-08-11 Jan Hubicka <hubicka@ucw.cz>
2196 Alexandre Oliva <oliva@adacore.com>
2197
2198 * ipa-modref.c (modref_lattice::dump): Fix escape_point's min_flags
2199 dumping.
2200 (modref_lattice::merge_deref): Fix handling of indirect scape points.
2201 (update_escape_summary_1): Likewise.
2202 (update_escape_summary): Likewise.
2203 (ipa_merge_modref_summary_after_inlining): Likewise.
2204
2205 2021-08-11 Richard Biener <rguenther@suse.de>
2206
2207 PR middle-end/101858
2208 * fold-const.c (fold_binary_loc): Guard simplification
2209 of X < (cast) (1 << Y) to integer types.
2210
2211 2021-08-11 Richard Biener <rguenther@suse.de>
2212
2213 PR tree-optimization/101861
2214 * tree-vect-stmts.c (vectorizable_load): Fix error in
2215 previous change with regard to gather vectorization.
2216
2217 2021-08-11 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
2218
2219 PR target/66791
2220 * config/arm/arm_neon.h (vdup_n_s8): Replace call to builtin
2221 with constructor.
2222 (vdup_n_s16): Likewise.
2223 (vdup_n_s32): Likewise.
2224 (vdup_n_s64): Likewise.
2225 (vdup_n_u8): Likewise.
2226 (vdup_n_u16): Likewise.
2227 (vdup_n_u32): Likewise.
2228 (vdup_n_u64): Likewise.
2229 (vdup_n_p8): Likewise.
2230 (vdup_n_p16): Likewise.
2231 (vdup_n_p64): Likewise.
2232 (vdup_n_f16): Likewise.
2233 (vdup_n_f32): Likewise.
2234 (vdupq_n_s8): Likewise.
2235 (vdupq_n_s16): Likewise.
2236 (vdupq_n_s32): Likewise.
2237 (vdupq_n_s64): Likewise.
2238 (vdupq_n_u8): Likewise.
2239 (vdupq_n_u16): Likewise.
2240 (vdupq_n_u32): Likewise.
2241 (vdupq_n_u64): Likewise.
2242 (vdupq_n_p8): Likewise.
2243 (vdupq_n_p16): Likewise.
2244 (vdupq_n_p64): Likewise.
2245 (vdupq_n_f16): Likewise.
2246 (vdupq_n_f32): Likewise.
2247 (vmov_n_s8): Replace call to builtin with call to corresponding
2248 vdup_n intrinsic.
2249 (vmov_n_s16): Likewise.
2250 (vmov_n_s32): Likewise.
2251 (vmov_n_s64): Likewise.
2252 (vmov_n_u8): Likewise.
2253 (vmov_n_u16): Likewise.
2254 (vmov_n_u32): Likewise.
2255 (vmov_n_u64): Likewise.
2256 (vmov_n_p8): Likewise.
2257 (vmov_n_p16): Likewise.
2258 (vmov_n_f16): Likewise.
2259 (vmov_n_f32): Likewise.
2260 (vmovq_n_s8): Likewise.
2261 (vmovq_n_s16): Likewise.
2262 (vmovq_n_s32): Likewise.
2263 (vmovq_n_s64): Likewise.
2264 (vmovq_n_u8): Likewise.
2265 (vmovq_n_u16): Likewise.
2266 (vmovq_n_u32): Likewise.
2267 (vmovq_n_u64): Likewise.
2268 (vmovq_n_p8): Likewise.
2269 (vmovq_n_p16): Likewise.
2270 (vmovq_n_f16): Likewise.
2271 (vmovq_n_f32): Likewise.
2272 * config/arm/arm_neon_builtins.def: Remove entries for vdup_n.
2273
2274 2021-08-11 liuhongt <hongtao.liu@intel.com>
2275
2276 PR target/98309
2277 * config/i386/i386.md (ldexp<mode>3): Extend to vscalefs[sd]
2278 when TARGET_AVX512F and TARGET_SSE_MATH.
2279
2280 2021-08-10 Jakub Jelinek <jakub@redhat.com>
2281
2282 PR target/80355
2283 * config/i386/i386-expand.c (expand_vec_perm_even_odd): Return false
2284 for V32HImode if !TARGET_AVX512BW.
2285 (ix86_vectorize_vec_perm_const) <case E_V32HImode, case E_V64QImode>:
2286 If !TARGET_AVX512BW and TARGET_AVX512F and d.testing_p, don't fail
2287 early, but actually check the permutation.
2288
2289 2021-08-10 Richard Biener <rguenther@suse.de>
2290
2291 PR tree-optimization/101809
2292 * tree-vect-stmts.c (get_load_store_type): Allow emulated
2293 gathers with offset vector nunits being a constant multiple
2294 of the data vector nunits.
2295 (vect_get_gather_scatter_ops): Use the appropriate nunits
2296 for the offset vector defs.
2297 (vectorizable_store): Adjust call to
2298 vect_get_gather_scatter_ops.
2299 (vectorizable_load): Likewise. Handle the case of less
2300 offset vectors than data vectors.
2301
2302 2021-08-10 Jakub Jelinek <jakub@redhat.com>
2303
2304 PR target/80355
2305 * config/i386/sse.md (*avx512f_shuf_<shuffletype>64x2_1<mask_name>_1,
2306 *avx512f_shuf_<shuffletype>32x4_1<mask_name>_1): New define_insn
2307 patterns.
2308
2309 2021-08-10 Richard Biener <rguenther@suse.de>
2310
2311 PR tree-optimization/101801
2312 PR tree-optimization/101819
2313 * tree-vectorizer.h (vect_emulated_vector_p): Declare.
2314 * tree-vect-loop.c (vect_emulated_vector_p): New function.
2315 (vectorizable_reduction): Re-instantiate a check for emulated
2316 operations.
2317 * tree-vect-stmts.c (vectorizable_shift): Likewise.
2318 (vectorizable_operation): Likewise. Cost emulated vector
2319 operations according to the scalar sequence synthesized by
2320 vector lowering.
2321
2322 2021-08-10 Richard Biener <rguenther@suse.de>
2323
2324 PR middle-end/101824
2325 * tree-nested.c (get_frame_field): Mark the COMPONENT_REF as
2326 volatile in case the variable was.
2327
2328 2021-08-10 H.J. Lu <hjl.tools@gmail.com>
2329
2330 PR target/101804
2331 * config/i386/constraints.md (BC): Document for integer SSE
2332 constant all bits set operand.
2333 (BF): New constraint for const floating-point all bits set
2334 vectors.
2335 * config/i386/i386.c (standard_sse_constant_p): Likewise.
2336 (standard_sse_constant_opcode): Likewise.
2337 * config/i386/sse.md (sseconstm1): New mode attribute.
2338 (mov<mode>_internal): Replace BC with <sseconstm1>.
2339
2340 2021-08-10 liuhongt <hongtao.liu@intel.com>
2341
2342 * config/i386/sse.md (cond_<insn><mode>): New expander.
2343 (VI248_AVX512VLBW): New mode iterator.
2344 * config/i386/predicates.md
2345 (nonimmediate_or_const_vec_dup_operand): New predicate.
2346
2347 2021-08-09 Andrew MacLeod <amacleod@redhat.com>
2348
2349 PR tree-optimization/101741
2350 * gimple-range-fold.cc (fold_using_range::range_of_builtin_call): Check
2351 type of parameter for toupper/tolower.
2352
2353 2021-08-09 Martin Jambor <mjambor@suse.cz>
2354
2355 PR testsuite/101654
2356 * ipa-prop.c (propagate_controlled_uses): Removed a spurious space.
2357
2358 2021-08-09 Pat Haugen <pthaugen@linux.ibm.com>
2359
2360 * config/rs6000/rs6000.c (is_load_insn1): Verify destination is a
2361 register.
2362 (is_store_insn1): Verify source is a register.
2363
2364 2021-08-09 Uroš Bizjak <ubizjak@gmail.com>
2365
2366 PR target/101812
2367 * config/i386/mmx.md (<any_logic:code>v2sf3):
2368 Rename from *mmx_<any_logic:code>v2sf3
2369
2370 2021-08-09 Thomas Schwinge <thomas@codesourcery.com>
2371
2372 * config/nvptx/nvptx.c: Cross-reference parts adapted in
2373 'gcc/omp-oacc-neuter-broadcast.cc'.
2374 * omp-low.c: Likewise.
2375 * omp-oacc-neuter-broadcast.cc: Cross-reference parts adapted from
2376 the above files.
2377
2378 2021-08-09 Julian Brown <julian@codesourcery.com>
2379 Kwok Cheung Yeung <kcy@codesourcery.com>
2380 Thomas Schwinge <thomas@codesourcery.com>
2381
2382 * config/gcn/gcn.c (gcn_init_builtins): Override decls for
2383 BUILT_IN_GOACC_SINGLE_START, BUILT_IN_GOACC_SINGLE_COPY_START,
2384 BUILT_IN_GOACC_SINGLE_COPY_END and BUILT_IN_GOACC_BARRIER.
2385 (gcn_goacc_validate_dims): Turn on worker partitioning unconditionally.
2386 (gcn_fork_join): Update comment.
2387 * config/gcn/gcn.opt (flag_worker_partitioning): Remove.
2388 (macc_experimental_workers): Remove unused option.
2389
2390 2021-08-09 Julian Brown <julian@codesourcery.com>
2391 Nathan Sidwell <nathan@codesourcery.com> (via 'gcc/config/nvptx/nvptx.c' master)
2392 Kwok Cheung Yeung <kcy@codesourcery.com>
2393 Thomas Schwinge <thomas@codesourcery.com>
2394
2395 * Makefile.in (OBJS): Add omp-oacc-neuter-broadcast.o.
2396 * doc/tm.texi.in (TARGET_GOACC_CREATE_WORKER_BROADCAST_RECORD):
2397 Add documentation hook.
2398 * doc/tm.texi: Regenerate.
2399 * omp-oacc-neuter-broadcast.cc: New file.
2400 * omp-builtins.def (BUILT_IN_GOACC_BARRIER)
2401 (BUILT_IN_GOACC_SINGLE_START, BUILT_IN_GOACC_SINGLE_COPY_START)
2402 (BUILT_IN_GOACC_SINGLE_COPY_END): New builtins.
2403 * passes.def (pass_omp_oacc_neuter_broadcast): Add pass.
2404 * target.def (goacc.create_worker_broadcast_record): Add target
2405 hook.
2406 * tree-pass.h (make_pass_omp_oacc_neuter_broadcast): Add
2407 prototype.
2408 * config/gcn/gcn-protos.h (gcn_goacc_adjust_propagation_record):
2409 Rename prototype to...
2410 (gcn_goacc_create_worker_broadcast_record): ... this.
2411 * config/gcn/gcn-tree.c (gcn_goacc_adjust_propagation_record): Rename
2412 function to...
2413 (gcn_goacc_create_worker_broadcast_record): ... this.
2414 * config/gcn/gcn.c (TARGET_GOACC_ADJUST_PROPAGATION_RECORD):
2415 Rename to...
2416 (TARGET_GOACC_CREATE_WORKER_BROADCAST_RECORD): ... this.
2417
2418 2021-08-09 Tejas Belagod <tejas.belagod@arm.com>
2419
2420 PR target/101609
2421 * config/aarch64/aarch64-simd.md (vlshr<mode>3, vashr<mode>3): Use
2422 the right iterator.
2423
2424 2021-08-09 Thomas Schwinge <thomas@codesourcery.com>
2425
2426 * Makefile.in (GTFILES): Remove '$(srcdir)/omp-offload.c'.
2427
2428 2021-08-09 Thomas Schwinge <thomas@codesourcery.com>
2429
2430 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOMP_BUILTIN): Don't
2431 consider '-foffload-abi'.
2432 * common.opt (-foffload-abi): Remove 'Var', 'Init'.
2433 * opts.c (common_handle_option) <-foffload-abi> [ACCEL_COMPILER]:
2434 Ignore.
2435
2436 2021-08-09 Thomas Schwinge <thomas@codesourcery.com>
2437
2438 * optc-gen.awk: Sanity check that 'Init' doesn't appear without
2439 'Var'.
2440
2441 2021-08-09 Thomas Schwinge <thomas@codesourcery.com>
2442
2443 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE): Remove.
2444
2445 2021-08-09 Thomas Schwinge <thomas@codesourcery.com>
2446
2447 * doc/gty.texi (Files): Update.
2448
2449 2021-08-09 Thomas Schwinge <thomas@codesourcery.com>
2450
2451 * doc/gty.texi (Files): Fix GTY header file example.
2452
2453 2021-08-09 Roger Sayle <roger@nextmovesoftware.com>
2454
2455 * tree-ssa-ccp.c (value_mask_to_min_max): Helper function to
2456 determine the upper and lower bounds from a mask-value pair.
2457 (bit_value_unop) [ABS_EXPR, ABSU_EXPR]: Add support for
2458 absolute value and unsigned absolute value expressions.
2459 (bit_value_binop): Initialize *VAL's precision.
2460 [LT_EXPR, LE_EXPR]: Use value_mask_to_min_max to determine
2461 upper and lower bounds of operands. Add LE_EXPR/GE_EXPR
2462 support when the operands are unknown but potentially equal.
2463 [MIN_EXPR, MAX_EXPR]: Support minimum/maximum expressions.
2464
2465 2021-08-09 Bin Cheng <bin.cheng@linux.alibaba.com>
2466
2467 * config/aarch64/aarch64.md
2468 (*extend<SHORT:mode><GPI:mode>2_aarch64): Use %<GPI:w>0.
2469
2470 2021-08-08 Sergei Trofimovich <siarheit@google.com>
2471
2472 * lra-constraints.c: Fix s/otput/output/ typo.
2473
2474 2021-08-06 Martin Sebor <msebor@redhat.com>
2475
2476 * builtins.c (expand_builtin_memchr): Move to gimple-ssa-warn-access.cc.
2477 (expand_builtin_strcat): Same.
2478 (expand_builtin_stpncpy): Same.
2479 (expand_builtin_strncat): Same.
2480 (check_read_access): Same.
2481 (check_memop_access): Same.
2482 (expand_builtin_strlen): Move checks to gimple-ssa-warn-access.cc.
2483 (expand_builtin_strnlen): Same.
2484 (expand_builtin_memcpy): Same.
2485 (expand_builtin_memmove): Same.
2486 (expand_builtin_mempcpy): Same.
2487 (expand_builtin_strcpy): Same.
2488 (expand_builtin_strcpy_args): Same.
2489 (expand_builtin_stpcpy_1): Same.
2490 (expand_builtin_strncpy): Same.
2491 (expand_builtin_memset): Same.
2492 (expand_builtin_bzero): Same.
2493 (expand_builtin_strcmp): Same.
2494 (expand_builtin_strncmp): Same.
2495 (expand_builtin): Remove handlers.
2496 (fold_builtin_strlen): Add a comment.
2497 * builtins.h (check_access): Move to gimple-ssa-warn-access.cc.
2498 * calls.c (maybe_warn_nonstring_arg): Same.
2499 * diagnostic-spec.c (nowarn_spec_t::nowarn_spec_t): Add warning option.
2500 * gimple-fold.c (gimple_fold_builtin_strcpy): Pass argument to callee.
2501 (gimple_fold_builtin_stpcpy): Same.
2502 * gimple-ssa-warn-access.cc (has_location): New function.
2503 (get_location): Same.
2504 (get_callee_fndecl): Same.
2505 (call_nargs): Same.
2506 (call_arg): Same.
2507 (warn_string_no_nul): Define.
2508 (unterminated_array): Same.
2509 (check_nul_terminated_array): Same.
2510 (maybe_warn_nonstring_arg): Same.
2511 (maybe_warn_for_bound): Same.
2512 (warn_for_access): Same.
2513 (check_access): Same.
2514 (check_memop_access): Same.
2515 (check_read_access): Same.
2516 (warn_dealloc_offset): Use helper functions.
2517 (maybe_emit_free_warning): Same.
2518 (class pass_waccess): Add members.
2519 (check_strcat): New function.
2520 (check_strncat): New function.
2521 (check_stxcpy): New function.
2522 (check_stxncpy): New function.
2523 (check_strncmp): New function.
2524 (pass_waccess::check_builtin): New function.
2525 (pass_waccess::check): Call it.
2526 * gimple-ssa-warn-access.h (warn_string_no_nul): Move here from
2527 builtins.h.
2528 (maybe_warn_for_bound): Same.
2529 (check_access): Same.
2530 (check_memop_access): Same.
2531 (check_read_access): Same.
2532 * pointer-query.h (struct access_data): Define a ctor overload.
2533
2534 2021-08-06 Richard Biener <rguenther@suse.de>
2535
2536 PR tree-optimization/101801
2537 * tree-vectorizer.h (vect_worthwhile_without_simd_p): Rename...
2538 (vect_can_vectorize_without_simd_p): ... to this.
2539 * tree-vect-loop.c (vect_worthwhile_without_simd_p): Rename...
2540 (vect_can_vectorize_without_simd_p): ... to this and fold
2541 in vect_min_worthwhile_factor.
2542 (vect_min_worthwhile_factor): Remove.
2543 (vectorizable_reduction): Adjust and remove the cost part.
2544 * tree-vect-stmts.c (vectorizable_shift): Likewise.
2545 (vectorizable_operation): Likewise.
2546
2547 2021-08-06 Uroš Bizjak <ubizjak@gmail.com>
2548
2549 PR target/101797
2550 * config/i386/i386.md (cmove reg-to-reg move elimination peephole2s):
2551 Add general_gr_operand predicate to operand 3.
2552
2553 2021-08-06 Roger Sayle <roger@nextmovesoftware.com>
2554
2555 * tree-ssa-phiopt.c (cond_removal_in_builtin_zero_pattern): Use
2556 CFN_BUILT_IN_CLRSB* instead of BUILT_IN_CLRSB* for consistency.
2557
2558 2021-08-06 Tamar Christina <tamar.christina@arm.com>
2559
2560 * config/aarch64/aarch64-sve-builtins.cc (register_svpattern,
2561 register_svprfop): Pass vec<> by pointer.
2562 * langhooks-def.h (lhd_simulate_enum_decl): Likewise.
2563 * langhooks.c (lhd_simulate_enum_decl): Likewise.
2564 * langhooks.h (struct lang_hooks_for_types): Likewise.
2565
2566 2021-08-06 Jonathan Wright <jonathan.wright@arm.com>
2567
2568 * config/aarch64/arm_neon.h (vst1_bf16_x2): Use
2569 __builtin_memcpy instead of constructing an additional
2570 __builtin_aarch64_simd_oi one vector at a time.
2571 (vst1q_bf16_x2): Likewise.
2572 (vst1_bf16_x3): Use __builtin_memcpy instead of constructing
2573 an additional __builtin_aarch64_simd_ci one vector at a time.
2574 (vst1q_bf16_x3): Likewise.
2575 (vst1_bf16_x4): Use __builtin_memcpy instead of a union.
2576 (vst1q_bf16_x4): Likewise.
2577 (vst2_bf16): Use __builtin_memcpy instead of constructing an
2578 additional __builtin_aarch64_simd_oi one vector at a time.
2579 (vst2q_bf16): Likewise.
2580 (vst3_bf16): Use __builtin_memcpy instead of constructing an
2581 additional __builtin_aarch64_simd_ci mode one vector at a
2582 time.
2583 (vst3q_bf16): Likewise.
2584 (vst4_bf16): Use __builtin_memcpy instead of constructing an
2585 additional __builtin_aarch64_simd_xi one vector at a time.
2586 (vst4q_bf16): Likewise.
2587
2588 2021-08-06 Jonathan Wright <jonathan.wright@arm.com>
2589
2590 * config/aarch64/arm_neon.h (__ST2_LANE_FUNC): Delete.
2591 (__ST2Q_LANE_FUNC): Delete.
2592 (vst2_lane_f16): Use __builtin_memcpy to copy vector
2593 structure instead of constructing __builtin_aarch64_simd_oi
2594 one vector at a time.
2595 (vst2_lane_f32): Likewise.
2596 (vst2_lane_f64): Likewise.
2597 (vst2_lane_p8): Likewise.
2598 (vst2_lane_p16): Likewise.
2599 (vst2_lane_p64): Likewise.
2600 (vst2_lane_s8): Likewise.
2601 (vst2_lane_s16): Likewise.
2602 (vst2_lane_s32): Likewise.
2603 (vst2_lane_s64): Likewise.
2604 (vst2_lane_u8): Likewise.
2605 (vst2_lane_u16): Likewise.
2606 (vst2_lane_u32): Likewise.
2607 (vst2_lane_u64): Likewise.
2608 (vst2_lane_bf16): Likewise.
2609 (vst2q_lane_f16): Use __builtin_memcpy to copy vector
2610 structure instead of using a union.
2611 (vst2q_lane_f32): Likewise.
2612 (vst2q_lane_f64): Likewise.
2613 (vst2q_lane_p8): Likewise.
2614 (vst2q_lane_p16): Likewise.
2615 (vst2q_lane_p64): Likewise.
2616 (vst2q_lane_s8): Likewise.
2617 (vst2q_lane_s16): Likewise.
2618 (vst2q_lane_s32): Likewise.
2619 (vst2q_lane_s64): Likewise.
2620 (vst2q_lane_u8): Likewise.
2621 (vst2q_lane_u16): Likewise.
2622 (vst2q_lane_u32): Likewise.
2623 (vst2q_lane_u64): Likewise.
2624 (vst2q_lane_bf16): Likewise.
2625
2626 2021-08-06 Jonathan Wright <jonathan.wright@arm.com>
2627
2628 * config/aarch64/arm_neon.h (__ST3_LANE_FUNC): Delete.
2629 (__ST3Q_LANE_FUNC): Delete.
2630 (vst3_lane_f16): Use __builtin_memcpy to copy vector
2631 structure instead of constructing __builtin_aarch64_simd_ci
2632 one vector at a time.
2633 (vst3_lane_f32): Likewise.
2634 (vst3_lane_f64): Likewise.
2635 (vst3_lane_p8): Likewise.
2636 (vst3_lane_p16): Likewise.
2637 (vst3_lane_p64): Likewise.
2638 (vst3_lane_s8): Likewise.
2639 (vst3_lane_s16): Likewise.
2640 (vst3_lane_s32): Likewise.
2641 (vst3_lane_s64): Likewise.
2642 (vst3_lane_u8): Likewise.
2643 (vst3_lane_u16): Likewise.
2644 (vst3_lane_u32): Likewise.
2645 (vst3_lane_u64): Likewise.
2646 (vst3_lane_bf16): Likewise.
2647 (vst3q_lane_f16): Use __builtin_memcpy to copy vector
2648 structure instead of using a union.
2649 (vst3q_lane_f32): Likewise.
2650 (vst3q_lane_f64): Likewise.
2651 (vst3q_lane_p8): Likewise.
2652 (vst3q_lane_p16): Likewise.
2653 (vst3q_lane_p64): Likewise.
2654 (vst3q_lane_s8): Likewise.
2655 (vst3q_lane_s16): Likewise.
2656 (vst3q_lane_s32): Likewise.
2657 (vst3q_lane_s64): Likewise.
2658 (vst3q_lane_u8): Likewise.
2659 (vst3q_lane_u16): Likewise.
2660 (vst3q_lane_u32): Likewise.
2661 (vst3q_lane_u64): Likewise.
2662 (vst3q_lane_bf16): Likewise.
2663
2664 2021-08-06 Jonathan Wright <jonathan.wright@arm.com>
2665
2666 * config/aarch64/arm_neon.h (__ST4_LANE_FUNC): Delete.
2667 (__ST4Q_LANE_FUNC): Delete.
2668 (vst4_lane_f16): Use __builtin_memcpy to copy vector
2669 structure instead of constructing __builtin_aarch64_simd_xi
2670 one vector at a time.
2671 (vst4_lane_f32): Likewise.
2672 (vst4_lane_f64): Likewise.
2673 (vst4_lane_p8): Likewise.
2674 (vst4_lane_p16): Likewise.
2675 (vst4_lane_p64): Likewise.
2676 (vst4_lane_s8): Likewise.
2677 (vst4_lane_s16): Likewise.
2678 (vst4_lane_s32): Likewise.
2679 (vst4_lane_s64): Likewise.
2680 (vst4_lane_u8): Likewise.
2681 (vst4_lane_u16): Likewise.
2682 (vst4_lane_u32): Likewise.
2683 (vst4_lane_u64): Likewise.
2684 (vst4_lane_bf16): Likewise.
2685 (vst4q_lane_f16): Use __builtin_memcpy to copy vector
2686 structure instead of using a union.
2687 (vst4q_lane_f32): Likewise.
2688 (vst4q_lane_f64): Likewise.
2689 (vst4q_lane_p8): Likewise.
2690 (vst4q_lane_p16): Likewise.
2691 (vst4q_lane_p64): Likewise.
2692 (vst4q_lane_s8): Likewise.
2693 (vst4q_lane_s16): Likewise.
2694 (vst4q_lane_s32): Likewise.
2695 (vst4q_lane_s64): Likewise.
2696 (vst4q_lane_u8): Likewise.
2697 (vst4q_lane_u16): Likewise.
2698 (vst4q_lane_u32): Likewise.
2699 (vst4q_lane_u64): Likewise.
2700 (vst4q_lane_bf16): Likewise.
2701
2702 2021-08-06 Martin Liska <mliska@suse.cz>
2703
2704 * config/rs6000/rs6000.c (rs6000_option_override_internal): When
2705 a target option is restored, it can have
2706 rs6000_long_double_type_size set to FLOAT_PRECISION_TFmode
2707 and error should not be emitted.
2708
2709 2021-08-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
2710
2711 * gcov-io.h (gcov_write): Declare.
2712 * gcov-io.c (gcov_write): New.
2713 (gcov_write_counter): Remove.
2714 (gcov_write_tag_length): Likewise.
2715 (gcov_write_summary): Replace gcov_write_tag_length() with calls to
2716 gcov_write_unsigned().
2717 * doc/invoke.texi (fprofile-info-section): Mention
2718 __gcov_info_to_gdca().
2719
2720 2021-08-06 Martin Sebor <msebor@redhat.com>
2721
2722 * dominance.c (prune_bbs_to_update_dominators): Adjust by-value vec
2723 arguments to by-reference.
2724 (iterate_fix_dominators): Same.
2725 * dominance.h (iterate_fix_dominators): Same.
2726 * ipa-prop.h: Call auto_vec::to_vec_legacy.
2727 * tree-data-ref.c (dump_data_dependence_relation): Adjust by-value vec
2728 arguments to by-reference.
2729 (debug_data_dependence_relation): Same.
2730 (dump_data_dependence_relations): Same.
2731 * tree-data-ref.h (debug_data_dependence_relation): Same.
2732 (dump_data_dependence_relations): Same.
2733 * tree-predcom.c (dump_chains): Same.
2734 (initialize_root_vars_lm): Same.
2735 (determine_unroll_factor): Same.
2736 (replace_phis_by_defined_names): Same.
2737 (insert_init_seqs): Same.
2738 (pcom_worker::tree_predictive_commoning_loop): Call
2739 auto_vec::to_vec_legacy.
2740 * tree-ssa-pre.c (insert_into_preds_of_block): Adjust by-value vec
2741 arguments to by-reference.
2742 * tree-ssa-threadbackward.c (populate_worklist): Same.
2743 (back_threader::resolve_def): Same.
2744 * tree-vect-data-refs.c (vect_check_nonzero_value): Same.
2745 (vect_enhance_data_refs_alignment): Same.
2746 (vect_check_lower_bound): Same.
2747 (vect_prune_runtime_alias_test_list): Same.
2748 (vect_permute_store_chain): Same.
2749 * tree-vect-slp-patterns.c (vect_normalize_conj_loc): Same.
2750 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Same.
2751 * tree-vectorizer.h (vect_permute_store_chain): Same.
2752 * vec.c (test_init): New function.
2753 (vec_c_tests): Call new function.
2754 * vec.h (vec): Declare ctors, dtor, and assignment.
2755 (auto_vec::vec_to_legacy): New function.
2756 (vec::copy): Adjust initialization.
2757
2758 2021-08-05 H.J. Lu <hjl.tools@gmail.com>
2759
2760 PR target/99744
2761 * config/i386/i386.c (ix86_can_inline_p): Ignore MASK_80387 if
2762 callee only uses GPRs.
2763 * config/i386/ia32intrin.h: Revert commit 5463cee2770.
2764 * config/i386/serializeintrin.h: Revert commit 71958f740f1.
2765 * config/i386/x86gprintrin.h: Add
2766 #pragma GCC target("general-regs-only") and #pragma GCC pop_options
2767 to disable non-GPR ISAs.
2768
2769 2021-08-05 Richard Sandiford <richard.sandiford@arm.com>
2770
2771 PR middle-end/101787
2772 * doc/md.texi (cond_ashl, cond_ashr, cond_lshr): Document.
2773
2774 2021-08-05 Richard Sandiford <richard.sandiford@arm.com>
2775
2776 * tree-vectorizer.h (vect_is_store_elt_extraction, vect_is_reduction)
2777 (vect_reduc_type, vect_embedded_comparison_type, vect_comparison_type)
2778 (vect_is_extending_load, vect_is_integer_truncation): New functions,
2779 moved from aarch64.c but given different names.
2780 * config/aarch64/aarch64.c (aarch64_is_store_elt_extraction)
2781 (aarch64_is_reduction, aarch64_reduc_type)
2782 (aarch64_embedded_comparison_type, aarch64_comparison_type)
2783 (aarch64_extending_load_p, aarch64_integer_truncation_p): Delete
2784 in favor of the above. Update callers accordingly.
2785
2786 2021-08-05 Richard Earnshaw <rearnsha@arm.com>
2787
2788 PR target/101723
2789 * config/arm/arm-cpus.in (generic-armv7-a): Add quirk to suppress
2790 writing .cpu directive in asm output.
2791 * config/arm/arm.c (arm_identify_fpu_from_isa): New variable.
2792 (arm_last_printed_arch_string): Delete.
2793 (arm_last-printed_fpu_string): Delete.
2794 (arm_configure_build_target): If use of floating-point/SIMD is
2795 disabled, remove all fp/simd related features from the target ISA.
2796 (last_arm_targ_options): New variable.
2797 (arm_print_asm_arch_directives): Add new parameters. Change order
2798 of emitted directives and handle all cases here.
2799 (arm_file_start): Always call arm_print_asm_arch_directives, move
2800 all generation of .arch/.arch_extension here.
2801 (arm_file_end): Call arm_print_asm_arch.
2802 (arm_declare_function_name): Call arm_print_asm_arch_directives
2803 instead of printing .arch/.fpu directives directly.
2804
2805 2021-08-05 Richard Earnshaw <rearnsha@arm.com>
2806
2807 * config/arm/arm.c (arm_configure_build_target): Don't call
2808 arm_option_reconfigure_globals.
2809 (arm_option_restore): Call arm_option_reconfigure_globals after
2810 reconfiguring the target.
2811 * config/arm/arm-c.c (arm_pragma_target_parse): Likewise.
2812
2813 2021-08-05 Richard Earnshaw <rearnsha@arm.com>
2814
2815 * config/arm/arm.c (arm_configure_build_target): Ensure the target's
2816 arch_name is always set.
2817
2818 2021-08-05 Jonathan Wright <jonathan.wright@arm.com>
2819
2820 * config/aarch64/aarch64.c: Traverse RTL tree to prevent cost
2821 of vec_select high-half from being added into Neon subtract
2822 cost.
2823
2824 2021-08-05 Jonathan Wright <jonathan.wright@arm.com>
2825
2826 * config/aarch64/aarch64.c: Traverse RTL tree to prevent cost
2827 of vec_select high-half from being added into Neon add cost.
2828
2829 2021-08-05 Kewen Lin <linkw@linux.ibm.com>
2830
2831 * cfgloop.h (loops_list::loops_list): Add one optional argument
2832 root and adjust accordingly, update loop tree walking and factor
2833 out to ...
2834 * cfgloop.c (loops_list::walk_loop_tree): ... this. New function.
2835
2836 2021-08-05 Eric Botcazou <ebotcazou@gcc.gnu.org>
2837
2838 PR tree-optimization/101626
2839 * tree-sra.c (propagate_subaccesses_from_rhs): Do not set the
2840 reverse scalar storage order on a pointer or vector component.
2841
2842 2021-08-05 liuhongt <hongtao.liu@intel.com>
2843
2844 * config/i386/sse.md (cond_<code><mode>): New expander.
2845
2846 2021-08-05 liuhongt <hongtao.liu@intel.com>
2847
2848 * config/i386/sse.md (cond_<code><mode>): New expander.
2849
2850 2021-08-05 liuhongt <hongtao.liu@intel.com>
2851
2852 * config/i386/sse.md (cond_<code><mode>): New expander.
2853
2854 2021-08-04 David Malcolm <dmalcolm@redhat.com>
2855
2856 PR analyzer/101570
2857 * Makefile.in (ANALYZER_OBJS): Add analyzer/region-model-asm.o.
2858
2859 2021-08-04 H.J. Lu <hjl.tools@gmail.com>
2860
2861 PR target/101742
2862 * config/i386/i386.h (STORE_MAX_PIECES): Allow 16/32/64 bytes
2863 only if TARGET_INTER_UNIT_MOVES_TO_VEC is true.
2864
2865 2021-08-04 H.J. Lu <hjl.tools@gmail.com>
2866
2867 PR target/101772
2868 * config/i386/i386-expand.c (ix86_expand_vector_move): Call
2869 ix86_gen_scratch_sse_rtx to get a scratch SSE register to copy
2870 data with SSE register from one memory location to another.
2871
2872 2021-08-04 Andreas Krebbel <krebbel@linux.ibm.com>
2873
2874 * config/s390/s390.c (expand_perm_with_vpdi): New function.
2875 (vectorize_vec_perm_const_1): Call expand_perm_with_vpdi.
2876 * config/s390/vector.md (*vpdi1<mode>, @vpdi1<mode>): Enable a
2877 parameterized expander.
2878 (*vpdi4<mode>, @vpdi4<mode>): Likewise.
2879
2880 2021-08-04 Andreas Krebbel <krebbel@linux.ibm.com>
2881
2882 * config/s390/s390.c (MAX_VECT_LEN): Define macro.
2883 (struct expand_vec_perm_d): Define struct.
2884 (expand_perm_with_merge): New function.
2885 (vectorize_vec_perm_const_1): New function.
2886 (s390_vectorize_vec_perm_const): New function.
2887 (TARGET_VECTORIZE_VEC_PERM_CONST): Define target macro.
2888
2889 2021-08-04 Andreas Krebbel <krebbel@linux.ibm.com>
2890
2891 * config/s390/vector.md (V_HW_64): Remove mode iterator.
2892 (*vec_load_pair<mode>): Use V_HW_2 instead of V_HW_64.
2893 * config/s390/vx-builtins.md
2894 (vec_scatter_element<V_HW_2:mode>_SI): Use V_HW_2 instead of
2895 V_HW_64.
2896
2897 2021-08-04 Andreas Krebbel <krebbel@linux.ibm.com>
2898
2899 * config/s390/s390.md (UNSPEC_VEC_PERMI): Remove constant
2900 definition.
2901 * config/s390/vector.md (*vpdi1<mode>, *vpdi4<mode>): New pattern
2902 definitions.
2903 * config/s390/vx-builtins.md (*vec_permi<mode>): Emit generic rtx
2904 instead of an unspec.
2905
2906 2021-08-04 Andreas Krebbel <krebbel@linux.ibm.com>
2907
2908 * config/s390/s390-modes.def: Add more vector modes to support
2909 concatenation of two vectors.
2910 * config/s390/s390-protos.h (s390_expand_merge_perm_const): Add
2911 prototype.
2912 (s390_expand_merge): Likewise.
2913 * config/s390/s390.c (s390_expand_merge_perm_const): New function.
2914 (s390_expand_merge): New function.
2915 * config/s390/s390.md (UNSPEC_VEC_MERGEH, UNSPEC_VEC_MERGEL):
2916 Remove constant definitions.
2917 * config/s390/vector.md (V_HW_2): Add mode iterators.
2918 (VI_HW_4, V_HW_4): Rename VI_HW_4 to V_HW_4.
2919 (vec_2x_nelts, vec_2x_wide): New mode attributes.
2920 (*vmrhb, *vmrlb, *vmrhh, *vmrlh, *vmrhf, *vmrlf, *vmrhg, *vmrlg):
2921 New pattern definitions.
2922 (vec_widen_umult_lo_<mode>, vec_widen_umult_hi_<mode>)
2923 (vec_widen_smult_lo_<mode>, vec_widen_smult_hi_<mode>)
2924 (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf, vec_unpacks_lo_v2df)
2925 (vec_unpacks_hi_v2df): Adjust expanders to emit non-unspec RTX for
2926 vec merge.
2927 * config/s390/vx-builtins.md (V_HW_4): Remove mode iterator. Now
2928 in vector.md.
2929 (vec_mergeh<mode>, vec_mergel<mode>): Use s390_expand_merge to
2930 emit vec merge pattern.
2931
2932 2021-08-04 Jonathan Wright <jonathan.wright@arm.com>
2933
2934 * config/aarch64/aarch64.c (aarch64_strip_extend_vec_half):
2935 Define.
2936 (aarch64_rtx_mult_cost): Traverse RTL tree to prevent cost of
2937 vec_select high-half from being added into Neon multiply
2938 cost.
2939 * rtlanal.c (vec_series_highpart_p): Define.
2940 * rtlanal.h (vec_series_highpart_p): Declare.
2941
2942 2021-08-04 Jonathan Wright <jonathan.wright@arm.com>
2943
2944 * config/aarch64/aarch64.c (aarch64_strip_duplicate_vec_elt):
2945 Define.
2946 (aarch64_rtx_mult_cost): Traverse RTL tree to prevent
2947 vec_select cost from being added into Neon multiply cost.
2948
2949 2021-08-04 Richard Sandiford <richard.sandiford@arm.com>
2950
2951 * tree-vect-loop.c (vect_better_loop_vinfo_p): Detect cases in
2952 which old_loop_vinfo is an epilogue loop that handles a constant
2953 number of iterations.
2954
2955 2021-08-04 Richard Sandiford <richard.sandiford@arm.com>
2956
2957 * tree-vect-loop.c (vect_analyze_loop): Print a dump message
2958 when a reanalyzed loop fails to be cheaper than the current
2959 main loop.
2960
2961 2021-08-04 Richard Sandiford <richard.sandiford@arm.com>
2962
2963 * config/aarch64/aarch64.c: Fix a typo.
2964
2965 2021-08-04 Vincent Lefèvre <vincent-gcc@vinc17.net>
2966
2967 PR gcov-profile/101773
2968 * gcov-io.c (gcov_close): Check return code of a fclose.
2969
2970 2021-08-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
2971
2972 PR ada/101575
2973 * dwarf2out.c (dwarf2out_assembly_start): Emit a dummy
2974 .file statement when needed.
2975
2976 2021-08-04 Richard Biener <rguenther@suse.de>
2977
2978 * tree-vect-data-refs.c (vect_check_gather_scatter):
2979 Include widening conversions only when the result is
2980 still handed by native gather or the current offset
2981 size not already matches the data size.
2982 Also succeed analysis in case there's no native support,
2983 noted by a IFN_LAST ifn and a NULL decl.
2984 (vect_analyze_data_refs): Always consider gathers.
2985 * tree-vect-patterns.c (vect_recog_gather_scatter_pattern):
2986 Test for no IFN gather rather than decl gather.
2987 * tree-vect-stmts.c (vect_model_load_cost): Pass in the
2988 gather-scatter info and cost emulated gathers accordingly.
2989 (vect_truncate_gather_scatter_offset): Properly test for
2990 no IFN gather.
2991 (vect_use_strided_gather_scatters_p): Likewise.
2992 (get_load_store_type): Handle emulated gathers and its
2993 restrictions.
2994 (vectorizable_load): Likewise. Emulate them by extracting
2995 scalar offsets, doing scalar loads and a vector construct.
2996
2997 2021-08-04 H.J. Lu <hjl.tools@gmail.com>
2998
2999 PR target/101742
3000 * expr.c (op_by_pieces_d::op_by_pieces_d): Add a max_pieces
3001 argument to set m_max_size.
3002 (move_by_pieces_d): Pass MOVE_MAX_PIECES to op_by_pieces_d.
3003 (store_by_pieces_d): Pass STORE_MAX_PIECES to op_by_pieces_d.
3004 (compare_by_pieces_d): Pass COMPARE_MAX_PIECES to op_by_pieces_d.
3005
3006 2021-08-04 Roger Sayle <roger@nextmovesoftware.com>
3007 Marc Glisse <marc.glisse@inria.fr>
3008
3009 * match.pd (bit_ior, bit_xor): Canonicalize (X*C1)|(X*C2) and
3010 (X*C1)^(X*C2) as X*(C1+C2), and related variants, using
3011 tree_nonzero_bits to ensure that operands are bit-wise disjoint.
3012
3013 2021-08-04 Richard Biener <rguenther@suse.de>
3014
3015 * tree-ssa-forwprop.c (pass_forwprop::execute): Split
3016 out code to decompose vector loads ...
3017 (optimize_vector_load): ... here. Generalize it to
3018 handle intermediate widening and TARGET_MEM_REF loads
3019 and apply it to loads with a supported vector mode as well.
3020
3021 2021-08-04 Richard Biener <rguenther@suse.de>
3022
3023 PR tree-optimization/101756
3024 * tree-vect-slp.c (vectorizable_bb_reduc_epilogue): Make sure
3025 the result of the reduction epilogue is compatible to the original
3026 scalar result.
3027
3028 2021-08-04 liuhongt <hongtao.liu@intel.com>
3029
3030 PR target/101743
3031 * config/i386/i386.md (peephole2): Refine predicate from
3032 register_operand to general_reg_operand.
3033
3034 2021-08-04 Aldy Hernandez <aldyh@redhat.com>
3035
3036 * gimple-range-path.h (path_range_query::dump): Mark override.
3037
3038 2021-08-04 Richard Biener <rguenther@suse.de>
3039
3040 PR tree-optimization/101769
3041 * tree-tailcall.c (eliminate_tail_call): Add the created loop
3042 for the first recursion and return it via the new output parameter.
3043 (optimize_tail_call): Pass through new output param.
3044 (tree_optimize_tail_calls_1): After creating all latches,
3045 add the created loop to the loop tree. Do not mark loops for fixup.
3046
3047 2021-08-04 Martin Liska <mliska@suse.cz>
3048
3049 * doc/invoke.texi: Document threader-mode param.
3050
3051 2021-08-04 liuhongt <hongtao.liu@intel.com>
3052
3053 * config/i386/sse.md (cond_fma<mode>): New expander.
3054 (cond_fms<mode>): Ditto.
3055 (cond_fnma<mode>): Ditto.
3056 (cond_fnms<mode>): Ditto.
3057
3058 2021-08-03 Segher Boessenkool <segher@kernel.crashing.org>
3059
3060 * config/rs6000/vsx.md (*vsx_le_perm_store_<mode>): Use && instead of &.
3061
3062 2021-08-03 Segher Boessenkool <segher@kernel.crashing.org>
3063
3064 * config/rs6000/constraints.md: Remove "e" from the list of available
3065 constraint characters.
3066
3067 2021-08-03 Eugene Rozenfeld <erozen@microsoft.com>
3068
3069 PR gcov-profile/71672
3070 * auto-profile.c (afdo_indirect_call): Fix setup of the historgram value for indirect calls.
3071
3072 2021-08-03 Paul A. Clarke <pc@us.ibm.com>
3073
3074 * config/rs6000/smmintrin.h (_mm_minpos_epu16): New.
3075
3076 2021-08-03 H.J. Lu <hjl.tools@gmail.com>
3077
3078 * config/i386/i386.c (ix86_gen_scratch_sse_rtx): In 64-bit mode,
3079 try XMM31 to avoid vzeroupper.
3080
3081 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
3082
3083 * doc/invoke.texi: Document -mtune=neoverse-512tvb and
3084 -mcpu=neoverse-512tvb.
3085 * config/aarch64/aarch64-cores.def (neoverse-512tvb): New entry.
3086 * config/aarch64/aarch64-tune.md: Regenerate.
3087 * config/aarch64/aarch64.c (neoverse512tvb_sve_vector_cost)
3088 (neoverse512tvb_sve_issue_info, neoverse512tvb_vec_issue_info)
3089 (neoverse512tvb_vector_cost, neoverse512tvb_tunings): New structures.
3090 (aarch64_adjust_body_cost_sve): Handle -mtune=neoverse-512tvb.
3091 (aarch64_adjust_body_cost): Likewise.
3092
3093 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
3094
3095 * config/aarch64/aarch64.c (aarch64_add_stmt_cost): Only
3096 record issue information for operations that occur in the
3097 innermost loop.
3098
3099 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
3100
3101 * config/aarch64/aarch64.c (aarch64_multiply_add_p): Add a vec_flags
3102 parameter. Detect cases in which an Advanced SIMD MLA would almost
3103 certainly require a MOV.
3104 (aarch64_count_ops): Update accordingly.
3105
3106 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
3107
3108 * config/aarch64/aarch64.c (aarch64_is_store_elt_extraction): New
3109 function, split out from...
3110 (aarch64_detect_vector_stmt_subtype): ...here.
3111 (aarch64_add_stmt_cost): Treat extracting element 0 as free.
3112
3113 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
3114
3115 * config/aarch64/aarch64-protos.h (sve_vec_cost):
3116 Add gather_load_x32_cost and gather_load_x64_cost.
3117 * config/aarch64/aarch64.c (generic_sve_vector_cost)
3118 (a64fx_sve_vector_cost, neoversev1_sve_vector_cost): Update
3119 accordingly, using the values given by the scalar_load * number
3120 of elements calculation that we used previously.
3121 (aarch64_detect_vector_stmt_subtype): Use the new fields.
3122
3123 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
3124
3125 * config/aarch64/aarch64.c (aarch64_adjust_body_cost_sve): New
3126 function, split out from...
3127 (aarch64_adjust_body_cost): ...here.
3128
3129 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
3130
3131 * config/aarch64/fractional-cost.h: New file.
3132 * config/aarch64/aarch64.c: Include <algorithm> (indirectly)
3133 and cost_fraction.h.
3134 (vec_cost_fraction): New typedef.
3135 (aarch64_detect_scalar_stmt_subtype): Use it for statement costs.
3136 (aarch64_detect_vector_stmt_subtype): Likewise.
3137 (aarch64_sve_adjust_stmt_cost, aarch64_adjust_stmt_cost): Likewise.
3138 (aarch64_estimate_min_cycles_per_iter): Use vec_cost_fraction
3139 for cycle counts.
3140 (aarch64_adjust_body_cost): Likewise.
3141 (aarch64_test_cost_fraction): New function.
3142 (aarch64_run_selftests): Call it.
3143
3144 2021-08-03 Richard Sandiford <richard.sandiford@arm.com>
3145
3146 * config/aarch64/aarch64-protos.h (tune_params::sve_width): Turn
3147 into a bitmask.
3148 * config/aarch64/aarch64.c (aarch64_cmp_autovec_modes): Update
3149 accordingly.
3150 (aarch64_estimated_poly_value): Likewise. Use the least significant
3151 set bit for the minimum and likely values. Use the most significant
3152 set bit for the maximum value.
3153
3154 2021-08-03 liuhongt <hongtao.liu@intel.com>
3155
3156 * config/i386/sse.md (cond_<insn><mode>): New expander.
3157 (cond_mul<mode>): Ditto.
3158
3159 2021-08-03 Kewen Lin <linkw@linux.ibm.com>
3160
3161 * tree-cfg.c (move_sese_region_to_fn): Fix typos on dloop.
3162
3163 2021-08-03 liuhongt <hongtao.liu@intel.com>
3164
3165 * config/i386/sse.md (cond_<insn><mode>):New expander.
3166 (cond_mul<mode>): Ditto.
3167 (cond_div<mode>): Ditto.
3168
3169 2021-08-02 H.J. Lu <hjl.tools@gmail.com>
3170
3171 * config/i386/i386.c (ix86_finalize_stack_frame_flags): Also
3172 check stack_realign_needed for stack realignment.
3173 (ix86_legitimate_constant_p): Always allow CONST_WIDE_INT smaller
3174 than the largest integer supported by vector register.
3175 * config/i386/i386.h (MAX_MOVE_MAX): New. Set to 64.
3176 (MOVE_MAX): Set to bytes of the largest integer supported by
3177 vector register.
3178 (STORE_MAX_PIECES): New.
3179
3180 2021-08-02 H.J. Lu <hjl.tools@gmail.com>
3181
3182 * config/i386/i386-expand.c (ix86_expand_vector_move): Call
3183 ix86_gen_scratch_sse_rtx to get a scratch SSE register to copy
3184 data from one memory location to another.
3185
3186 2021-08-02 H.J. Lu <hjl.tools@gmail.com>
3187
3188 PR middle-end/90773
3189 * config/i386/i386.c (TARGET_GEN_MEMSET_SCRATCH_RTX): New.
3190
3191 2021-08-02 Aldy Hernandez <aldyh@redhat.com>
3192
3193 PR tree-optimization/101724
3194 * params.opt: Remove --param=threader-iterative.
3195 * tree-ssa-threadbackward.c (pass_thread_jumps::execute): Remove
3196 iterative mode.
3197
3198 2021-08-02 Tom de Vries <tdevries@suse.de>
3199
3200 PR middle-end/101665
3201 * doc/extend.texi (nonnull attribute): Improve documentation.
3202
3203 2021-08-02 Andrew Pinski <apinski@marvell.com>
3204
3205 PR rtl-optimization/101683
3206 * rtlanal.c (may_trap_p_1): Handle UNSIGNED_FIX.
3207
3208 2021-08-02 Roger Sayle <roger@nextmovesoftware.com>
3209
3210 * tree-ssa-phiopt.c (cond_removal_in_builtin_zero_pattern):
3211 Renamed from cond_removal_in_popcount_clz_ctz_pattern.
3212 Add support for BSWAP, FFS, PARITY and CLRSB builtins.
3213 (tree_ssa_phiop_worker): Update call to function above.
3214
3215 2021-08-01 H.J. Lu <hjl.tools@gmail.com>
3216
3217 PR target/78103
3218 * config/i386/i386.md (bsr_rex64_1_zext): New.
3219 (combine splitter for constant - clzll): Replace gen_bsr_rex64_1
3220 with gen_bsr_rex64_1_zext.
3221
3222 2021-07-31 Jakub Jelinek <jakub@redhat.com>
3223
3224 PR target/78103
3225 * config/i386/i386.md (bsr_rex64_1, bsr_1, bsr_zext_1): New
3226 define_insn patterns.
3227 (*bsr_rex64_2, *bsr_2): New define_insn_and_split patterns.
3228 Add combine splitters for constant - clz.
3229 (clz<mode>2): Use a temporary pseudo for bsr result.
3230
3231 2021-07-30 Paul A. Clarke <pc@us.ibm.com>
3232
3233 * config/rs6000/smmintrin.h (_mm_floor_pd, _mm_floor_ps,
3234 _mm_floor_sd, _mm_floor_ss): New.
3235
3236 2021-07-30 Paul A. Clarke <pc@us.ibm.com>
3237
3238 * config/rs6000/smmintrin.h (_mm_ceil_pd, _mm_ceil_ps,
3239 _mm_ceil_sd, _mm_ceil_ss): New.
3240
3241 2021-07-30 Paul A. Clarke <pc@us.ibm.com>
3242
3243 * config/rs6000/smmintrin.h (_mm_blend_pd, _mm_blendv_pd,
3244 _mm_blend_ps, _mm_blendv_ps): New.
3245
3246 2021-07-30 Roger Sayle <roger@nextmovesoftware.com>
3247 Uroš Bizjak <ubizjak@gmail.com>
3248
3249 * config/i386/i386.md (*dec_cmov<mode>): New define_insn_and_split
3250 to generate a conditional move using the carry flag after sub $1.
3251 (peephole2): Eliminate a register-to-register move by inverting
3252 the condition of a conditional move.
3253
3254 2021-07-30 Hans-Peter Nilsson <hp@bitrange.com>
3255
3256 * config/mmix/mmix.md ("call", "call_value", "*call_real")
3257 ("*call_value_real"): Don't generate rtx mentioning the generic
3258 operands 1 and 2 to "call", and similarly for "call_value".
3259 * config/mmix/mmix.c (mmix_print_operand_punct_valid_p)
3260 (mmix_print_operand): Use '!' instead of 'p'.
3261
3262 2021-07-30 Hans-Peter Nilsson <hp@bitrange.com>
3263
3264 * doc/md.texi (call): Correct information about operand 2.
3265 * config/mmix/mmix.md ("call", "call_value"): Remove fixed FIXMEs.
3266
3267 2021-07-30 Andrew MacLeod <amacleod@redhat.com>
3268
3269 * range-op.cc (operator_trunc_mod::wi_fold): Fold constants.
3270
3271 2021-07-30 Andrew MacLeod <amacleod@redhat.com>
3272
3273 * range-op.cc (operator_div::wi_fold): Return UNDEFINED for [0, 0] divisor.
3274
3275 2021-07-30 Andrew MacLeod <amacleod@redhat.com>
3276
3277 * gimple-range-cache.cc (*::set_bb_range): Change const basic_block to
3278 const_basic_block..
3279 (*::get_bb_range): Ditto.
3280 (*::bb_range_p): Ditto.
3281 * gimple-range-cache.h: Change prototypes.
3282
3283 2021-07-30 H.J. Lu <hjl.tools@gmail.com>
3284
3285 PR middle-end/90773
3286 * builtins.c (builtin_memcpy_read_str): Change the mode argument
3287 from scalar_int_mode to fixed_size_mode.
3288 (builtin_strncpy_read_str): Likewise.
3289 (gen_memset_value_from_prev): New function.
3290 (builtin_memset_read_str): Change the mode argument from
3291 scalar_int_mode to fixed_size_mode. Use gen_memset_value_from_prev
3292 and support CONST_VECTOR.
3293 (builtin_memset_gen_str): Likewise.
3294 (try_store_by_multiple_pieces): Use by_pieces_constfn to declare
3295 constfun.
3296 * builtins.h (builtin_strncpy_read_str): Replace scalar_int_mode
3297 with fixed_size_mode.
3298 (builtin_memset_read_str): Likewise.
3299 * expr.c (widest_int_mode_for_size): Renamed to ...
3300 (widest_fixed_size_mode_for_size): Add a bool argument to
3301 indicate if QI vector mode can be used.
3302 (by_pieces_ninsns): Call widest_fixed_size_mode_for_size
3303 instead of widest_int_mode_for_size.
3304 (pieces_addr::adjust): Change the mode argument from
3305 scalar_int_mode to fixed_size_mode.
3306 (op_by_pieces_d): Make m_len read-only. Add a bool member,
3307 m_qi_vector_mode, to indicate that QI vector mode can be used.
3308 (op_by_pieces_d::op_by_pieces_d): Add a bool argument to
3309 initialize m_qi_vector_mode. Call widest_fixed_size_mode_for_size
3310 instead of widest_int_mode_for_size.
3311 (op_by_pieces_d::get_usable_mode): Change the mode argument from
3312 scalar_int_mode to fixed_size_mode. Call
3313 widest_fixed_size_mode_for_size instead of
3314 widest_int_mode_for_size.
3315 (op_by_pieces_d::smallest_fixed_size_mode_for_size): New member
3316 function to return the smallest integer or QI vector mode.
3317 (op_by_pieces_d::run): Call widest_fixed_size_mode_for_size
3318 instead of widest_int_mode_for_size. Call
3319 smallest_fixed_size_mode_for_size instead of
3320 smallest_int_mode_for_size.
3321 (store_by_pieces_d::store_by_pieces_d): Add a bool argument to
3322 indicate that QI vector mode can be used and pass it to
3323 op_by_pieces_d::op_by_pieces_d.
3324 (can_store_by_pieces): Call widest_fixed_size_mode_for_size
3325 instead of widest_int_mode_for_size. Pass memsetp to
3326 widest_fixed_size_mode_for_size to support QI vector mode.
3327 Allow all CONST_VECTORs for memset if vec_duplicate is supported.
3328 (store_by_pieces): Pass memsetp to
3329 store_by_pieces_d::store_by_pieces_d.
3330 (clear_by_pieces_1): Removed.
3331 (clear_by_pieces): Replace clear_by_pieces_1 with
3332 builtin_memset_read_str and pass true to store_by_pieces_d to
3333 support vector mode broadcast.
3334 (string_cst_read_str): Change the mode argument from
3335 scalar_int_mode to fixed_size_mode.
3336 * expr.h (by_pieces_constfn): Change scalar_int_mode to
3337 fixed_size_mode.
3338 (by_pieces_prev): Likewise.
3339 * rtl.h (lowpart_subreg_regno): New.
3340 * rtlanal.c (lowpart_subreg_regno): New. A wrapper around
3341 simplify_subreg_regno.
3342 * target.def (gen_memset_scratch_rtx): New hook.
3343 * doc/tm.texi.in: Add TARGET_GEN_MEMSET_SCRATCH_RTX.
3344 * doc/tm.texi: Regenerated.
3345
3346 2021-07-30 Xi Ruoyao <xry111@mengyan1223.wang>
3347
3348 PR target/94780
3349 * config/mips/mips.c (mips_atomic_assign_expand_fenv): Use
3350 TARGET_EXPR instead of MODIFY_EXPR.
3351
3352 2021-07-30 Xi Ruoyao <xry111@mengyan1223.wang>
3353
3354 PR target/101132
3355 * config/mips/mips-protos.h (mips_expand_vec_cmp_expr): Declare.
3356 * config/mips/mips.c (mips_expand_vec_cmp_expr): New function.
3357 * config/mips/mips-msa.md (vec_cmp<MSA:mode><mode_i>): New
3358 expander.
3359 (vec_cmpu<IMSA:mode><mode_i>): New expander.
3360
3361 2021-07-30 H.J. Lu <hjl.tools@gmail.com>
3362
3363 PR target/101685
3364 * config/i386/i386-options.c (ix86_option_override_internal):
3365 Don't enable LZCNT/POPCNT if they have been disabled explicitly.
3366
3367 2021-07-30 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
3368
3369 PR target/66791
3370 * config/arm/arm_neon.h (vld1_p64): Replace call to builtin by
3371 explicitly dereferencing __a.
3372 (vld1_s64): Likewise.
3373 (vld1_u64): Likewise.
3374 * config/arm/arm_neon_builtins.def (vld1): Remove entry for di
3375 and change to VAR13.
3376
3377 2021-07-30 Aldy Hernandez <aldyh@redhat.com>
3378
3379 * gimple-loop-versioning.cc (lv_dom_walker::lv_dom_walker): Remove
3380 use of m_range_analyzer.
3381 (loop_versioning::lv_dom_walker::before_dom_children): Same.
3382 (loop_versioning::lv_dom_walker::after_dom_children): Remove.
3383 (loop_versioning::prune_loop_conditions): Replace vr_values use
3384 with range_query interface.
3385 (pass_loop_versioning::execute): Use ranger.
3386
3387 2021-07-30 Xi Ruoyao <xry111@mengyan1223.wang>
3388
3389 PR ipa/101396
3390 * ipa-devirt.c (ipa_odr_read_section): Compare the precision of
3391 enum values, and emit a warning if they mismatch.
3392
3393 2021-07-30 Kewen Lin <linkw@linux.ibm.com>
3394
3395 * cfgloop.h (as_const): New function.
3396 (class loop_iterator): Rename to ...
3397 (class loops_list): ... this.
3398 (loop_iterator::next): Rename to ...
3399 (loops_list::Iter::fill_curr_loop): ... this and adjust.
3400 (loop_iterator::loop_iterator): Rename to ...
3401 (loops_list::loops_list): ... this and adjust.
3402 (loops_list::Iter): New class.
3403 (loops_list::iterator): New type.
3404 (loops_list::const_iterator): New type.
3405 (loops_list::begin): New function.
3406 (loops_list::end): Likewise.
3407 (loops_list::begin const): Likewise.
3408 (loops_list::end const): Likewise.
3409 (FOR_EACH_LOOP): Remove.
3410 (FOR_EACH_LOOP_FN): Remove.
3411 * cfgloop.c (flow_loops_dump): Adjust FOR_EACH_LOOP* with range-based
3412 for loop with loops_list instance.
3413 (sort_sibling_loops): Likewise.
3414 (disambiguate_loops_with_multiple_latches): Likewise.
3415 (verify_loop_structure): Likewise.
3416 * cfgloopmanip.c (create_preheaders): Likewise.
3417 (force_single_succ_latches): Likewise.
3418 * config/aarch64/falkor-tag-collision-avoidance.c
3419 (execute_tag_collision_avoidance): Likewise.
3420 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Likewise.
3421 * config/s390/s390.c (s390_adjust_loops): Likewise.
3422 * doc/loop.texi: Likewise.
3423 * gimple-loop-interchange.cc (pass_linterchange::execute): Likewise.
3424 * gimple-loop-jam.c (tree_loop_unroll_and_jam): Likewise.
3425 * gimple-loop-versioning.cc (loop_versioning::analyze_blocks): Likewise.
3426 (loop_versioning::make_versioning_decisions): Likewise.
3427 * gimple-ssa-split-paths.c (split_paths): Likewise.
3428 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl): Likewise.
3429 * graphite.c (canonicalize_loop_form): Likewise.
3430 (graphite_transform_loops): Likewise.
3431 * ipa-fnsummary.c (analyze_function_body): Likewise.
3432 * ipa-pure-const.c (analyze_function): Likewise.
3433 * loop-doloop.c (doloop_optimize_loops): Likewise.
3434 * loop-init.c (loop_optimizer_finalize): Likewise.
3435 (fix_loop_structure): Likewise.
3436 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
3437 (move_loop_invariants): Likewise.
3438 * loop-unroll.c (decide_unrolling): Likewise.
3439 (unroll_loops): Likewise.
3440 * modulo-sched.c (sms_schedule): Likewise.
3441 * predict.c (predict_loops): Likewise.
3442 (pass_profile::execute): Likewise.
3443 * profile.c (branch_prob): Likewise.
3444 * sel-sched-ir.c (sel_finish_pipelining): Likewise.
3445 (sel_find_rgns): Likewise.
3446 * tree-cfg.c (replace_loop_annotate): Likewise.
3447 (replace_uses_by): Likewise.
3448 (move_sese_region_to_fn): Likewise.
3449 * tree-if-conv.c (pass_if_conversion::execute): Likewise.
3450 * tree-loop-distribution.c (loop_distribution::execute): Likewise.
3451 * tree-parloops.c (parallelize_loops): Likewise.
3452 * tree-predcom.c (tree_predictive_commoning): Likewise.
3453 * tree-scalar-evolution.c (scev_initialize): Likewise.
3454 (scev_reset): Likewise.
3455 * tree-ssa-dce.c (find_obviously_necessary_stmts): Likewise.
3456 * tree-ssa-live.c (remove_unused_locals): Likewise.
3457 * tree-ssa-loop-ch.c (ch_base::copy_headers): Likewise.
3458 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
3459 (tree_ssa_lim_initialize): Likewise.
3460 * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Likewise.
3461 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize): Likewise.
3462 * tree-ssa-loop-manip.c (get_loops_exits): Likewise.
3463 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations): Likewise.
3464 (free_numbers_of_iterations_estimates): Likewise.
3465 * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
3466 * tree-ssa-loop-split.c (tree_ssa_split_loops): Likewise.
3467 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Likewise.
3468 * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
3469 (pass_scev_cprop::execute): Likewise.
3470 * tree-ssa-propagate.c (clean_up_loop_closed_phi): Likewise.
3471 * tree-ssa-sccvn.c (do_rpo_vn): Likewise.
3472 * tree-ssa-threadupdate.c
3473 (jump_thread_path_registry::thread_through_all_blocks): Likewise.
3474 * tree-vectorizer.c (vectorize_loops): Likewise.
3475 * tree-vrp.c (vrp_asserts::find_assert_locations): Likewise.
3476
3477 2021-07-29 Hans-Peter Nilsson <hp@bitrange.com>
3478
3479 * config/mmix/mmix.c (mmix_function_arg_1): Avoid
3480 generating a VOIDmode register for e.g the
3481 function_arg_info::end_marker.
3482
3483 2021-07-29 Jeff Law <jeffreyalaw@gmail.com>
3484
3485 * config/h8300/h8300-modes.def: Add CCZ, CCV and CCC, drop CCZNV.
3486 * config/h8300/h8300.md (H8cc mode iterator): Add CCZ.
3487 (cc mode_attr): Similarly.
3488 (ccz subst_attr): Similarly.
3489 * config/h8300/jumpcall.md: Add new patterns for branch-on-bit.
3490 * config/h8300/testcompare.md: Remove various cc0 based patterns
3491 that had been commented out. Add pattern to set CCZ from a bit
3492 test.
3493
3494 2021-07-29 Thomas Schwinge <thomas@codesourcery.com>
3495 Julian Brown <julian@codesourcery.com>
3496 Kwok Cheung Yeung <kcy@codesourcery.com>
3497
3498 * omp-offload.c (oacc_loop_xform_head_tail, oacc_loop_process):
3499 'update_stmt' after modification.
3500 (pass_oacc_loop_designation): New function, extracted out of...
3501 (pass_oacc_device_lower): ... this.
3502 (pass_data_oacc_loop_designation, pass_oacc_loop_designation)
3503 (make_pass_oacc_loop_designation): New
3504 * passes.def: Add it.
3505 * tree-parloops.c (create_parallel_loop): Adjust.
3506 * tree-pass.h (make_pass_oacc_loop_designation): New.
3507
3508 2021-07-29 Aldy Hernandez <aldyh@redhat.com>
3509
3510 * flag-types.h (enum threader_mode): New.
3511 * params.opt: Add entry for --param=threader-mode.
3512 * tree-ssa-threadbackward.c (THREADER_ITERATIVE_MODE): New.
3513 (class back_threader): New.
3514 (back_threader::back_threader): New.
3515 (back_threader::~back_threader): New.
3516 (back_threader::maybe_register_path): New.
3517 (back_threader::find_taken_edge): New.
3518 (back_threader::find_taken_edge_switch): New.
3519 (back_threader::find_taken_edge_cond): New.
3520 (back_threader::resolve_def): New.
3521 (back_threader::resolve_phi): New.
3522 (back_threader::find_paths_to_names): New.
3523 (back_threader::find_paths): New.
3524 (dump_path): New.
3525 (debug): New.
3526 (thread_jumps::find_jump_threads_backwards): Call ranger threader.
3527 (thread_jumps::find_jump_threads_backwards_with_ranger): New.
3528 (pass_thread_jumps::execute): Abstract out code...
3529 (try_thread_blocks): ...here.
3530 * tree-ssa-threadedge.c (jump_threader::thread_outgoing_edges):
3531 Abstract out threading candidate code to...
3532 (single_succ_to_potentially_threadable_block): ...here.
3533 * tree-ssa-threadedge.h (single_succ_to_potentially_threadable_block):
3534 New.
3535 * tree-ssa-threadupdate.c (register_jump_thread): Return boolean.
3536 * tree-ssa-threadupdate.h (class jump_thread_path_registry):
3537 Return bool from register_jump_thread.
3538
3539 2021-07-29 Andreas Krebbel <krebbel@linux.ibm.com>
3540
3541 * target.def: in0 and in1 do not need to be registers.
3542 * doc/tm.texi: Regenerate.
3543
3544 2021-07-29 liuhongt <hongtao.liu@intel.com>
3545
3546 PR target/39821
3547 * config/i386/i386.c (ix86_widen_mult_cost): New function.
3548 (ix86_add_stmt_cost): Use ix86_widen_mult_cost for
3549 WIDEN_MULT_EXPR.
3550
3551 2021-07-29 Jiufu Guo <guojiufu@linux.ibm.com>
3552
3553 PR target/61837
3554 * config/rs6000/rs6000.c (TARGET_PREFERRED_DOLOOP_MODE): New hook.
3555 (rs6000_preferred_doloop_mode): New hook.
3556 * doc/tm.texi: Regenerate.
3557 * doc/tm.texi.in: Add hook preferred_doloop_mode.
3558 * target.def (preferred_doloop_mode): New hook.
3559 * targhooks.c (default_preferred_doloop_mode): New hook.
3560 * targhooks.h (default_preferred_doloop_mode): New hook.
3561 * tree-ssa-loop-ivopts.c (compute_doloop_base_on_mode): New function.
3562 (add_iv_candidate_for_doloop): Call targetm.preferred_doloop_mode
3563 and compute_doloop_base_on_mode.
3564
3565 2021-07-28 Martin Sebor <msebor@redhat.com>
3566
3567 PR middle-end/101494
3568 * tree-ssa-uninit.c (maybe_warn_operand): Correct object offset
3569 and size computation.
3570
3571 2021-07-28 Martin Sebor <msebor@redhat.com>
3572
3573 PR middle-end/101601
3574 * gimple-array-bounds.cc (array_bounds_checker::check_mem_ref): Remove
3575 a pointless test.
3576 Handle pointers to functions.
3577
3578 2021-07-28 Martin Sebor <msebor@redhat.com>
3579
3580 * Makefile.in (OBJS): Add gimple-ssa-warn-access.o and pointer-query.o.
3581 * attribs.h (fndecl_dealloc_argno): Move fndecl_dealloc_argno to tree.h.
3582 * builtins.c (compute_objsize_r): Move to pointer-query.cc.
3583 (access_ref::access_ref): Same.
3584 (access_ref::phi): Same.
3585 (access_ref::get_ref): Same.
3586 (access_ref::size_remaining): Same.
3587 (access_ref::offset_in_range): Same.
3588 (access_ref::add_offset): Same.
3589 (access_ref::inform_access): Same.
3590 (ssa_name_limit_t::visit_phi): Same.
3591 (ssa_name_limit_t::leave_phi): Same.
3592 (ssa_name_limit_t::next): Same.
3593 (ssa_name_limit_t::next_phi): Same.
3594 (ssa_name_limit_t::~ssa_name_limit_t): Same.
3595 (pointer_query::pointer_query): Same.
3596 (pointer_query::get_ref): Same.
3597 (pointer_query::put_ref): Same.
3598 (pointer_query::flush_cache): Same.
3599 (warn_string_no_nul): Move to gimple-ssa-warn-access.cc.
3600 (check_nul_terminated_array): Same.
3601 (unterminated_array): Same.
3602 (maybe_warn_for_bound): Same.
3603 (check_read_access): Same.
3604 (warn_for_access): Same.
3605 (get_size_range): Same.
3606 (check_access): Same.
3607 (gimple_call_alloc_size): Move to tree.c.
3608 (gimple_parm_array_size): Move to pointer-query.cc.
3609 (get_offset_range): Same.
3610 (gimple_call_return_array): Same.
3611 (handle_min_max_size): Same.
3612 (handle_array_ref): Same.
3613 (handle_mem_ref): Same.
3614 (compute_objsize): Same.
3615 (gimple_call_alloc_p): Move to gimple-ssa-warn-access.cc.
3616 (call_dealloc_argno): Same.
3617 (fndecl_dealloc_argno): Same.
3618 (new_delete_mismatch_p): Same.
3619 (matching_alloc_calls_p): Same.
3620 (warn_dealloc_offset): Same.
3621 (maybe_emit_free_warning): Same.
3622 * builtins.h (check_nul_terminated_array): Move to
3623 gimple-ssa-warn-access.h.
3624 (check_nul_terminated_array): Same.
3625 (warn_string_no_nul): Same.
3626 (unterminated_array): Same.
3627 (class ssa_name_limit_t): Same.
3628 (class pointer_query): Same.
3629 (struct access_ref): Same.
3630 (class range_query): Same.
3631 (struct access_data): Same.
3632 (gimple_call_alloc_size): Same.
3633 (gimple_parm_array_size): Same.
3634 (compute_objsize): Same.
3635 (class access_data): Same.
3636 (maybe_emit_free_warning): Same.
3637 * calls.c (initialize_argument_information): Remove call to
3638 maybe_emit_free_warning.
3639 * gimple-array-bounds.cc: Include new header..
3640 * gimple-fold.c: Same.
3641 * gimple-ssa-sprintf.c: Same.
3642 * gimple-ssa-warn-restrict.c: Same.
3643 * passes.def: Add pass_warn_access.
3644 * tree-pass.h (make_pass_warn_access): Declare.
3645 * tree-ssa-strlen.c: Include new headers.
3646 * tree.c (fndecl_dealloc_argno): Move here from builtins.c.
3647 * tree.h (fndecl_dealloc_argno): Move here from attribs.h.
3648 * gimple-ssa-warn-access.cc: New file.
3649 * gimple-ssa-warn-access.h: New file.
3650 * pointer-query.cc: New file.
3651 * pointer-query.h: New file.
3652
3653 2021-07-28 Jakub Jelinek <jakub@redhat.com>
3654
3655 PR middle-end/101624
3656 * ubsan.c (maybe_instrument_pointer_overflow,
3657 instrument_object_size): Only test DECL_REGISTER on VAR_DECLs,
3658 PARM_DECLs or RESULT_DECLs.
3659 * sanopt.c (maybe_optimize_ubsan_ptr_ifn): Likewise.
3660
3661 2021-07-28 Jakub Jelinek <jakub@redhat.com>
3662
3663 PR middle-end/101642
3664 * match.pd (bswap16 (x) == bswap16 (y)): Cast both operands
3665 to type of bswap16 for comparison.
3666 (bswap16 (x) == cst): Cast bswap16 operand to type of cst.
3667
3668 2021-07-28 Richard Biener <rguenther@suse.de>
3669
3670 PR tree-optimization/101615
3671 * tree-vect-slp.c (vect_optimize_slp): Materialize permutes
3672 at CTOR SLP graph entries.
3673
3674 2021-07-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3675
3676 * config/aarch64/aarch64.md (*extend<SHORT:mode><GPI:mode>2_aarch64):
3677 Add "r,w" alternative.
3678
3679 2021-07-28 H.J. Lu <hjl.tools@gmail.com>
3680
3681 PR target/101456
3682 * config/i386/i386.c (ix86_avx_u128_mode_needed): Don't set
3683 AVX_U128_DIRTY when all bits are zero.
3684
3685 2021-07-28 Richard Biener <rguenther@suse.de>
3686
3687 PR tree-optimization/101615
3688 * tree-vect-slp.c (vect_optimize_slp): Pre-existing vector
3689 external nodes cannot be permuted so make them perm_out 0.
3690
3691 2021-07-28 Andrew Stubbs <ams@codesourcery.com>
3692
3693 PR target/100208
3694 * config.in: Regenerate.
3695 * config/gcn/gcn-hsa.h (A_FIJI): New define.
3696 (A_900): New define.
3697 (A_906): New define.
3698 (A_908): New define.
3699 (ASM_SPEC): Use A_FIJI, A_900, A_906 and A_908.
3700 * config/gcn/gcn.c (output_file_start): Adjust attributes according
3701 to the assembler capabilities.
3702 * config/gcn/mkoffload.c (main): Likewise.
3703 * configure: Regenerate.
3704 * configure.ac: Add tests for LLVM assembler attribute features.
3705
3706 2021-07-28 Andrew MacLeod <amacleod@redhat.com>
3707
3708 * gimple-range-gori.cc (gori_compute::outgoing_edge_range_p): Check for
3709 cond_false and cond_true on branches.
3710
3711 2021-07-28 Bin Cheng <bin.cheng@linux.alibaba.com>
3712
3713 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): use
3714 gcc_stablesort.
3715
3716 2021-07-28 Bin Cheng <bin.cheng@linux.alibaba.com>
3717
3718 * alias.c (init_alias_analysis): Don't skip prologue/epilogue.
3719
3720 2021-07-28 Jakub Jelinek <jakub@redhat.com>
3721
3722 PR target/101611
3723 * config/i386/sse.md (vashr<mode>3): Split into vashrv8di3 expander
3724 and vashrv4di3 expander, where the latter requires just TARGET_AVX2
3725 and has special !TARGET_AVX512VL expansion.
3726 (vashrv2di3<mask_name>): Rename to ...
3727 (vashrv2di3): ... this. Change condition to TARGET_XOP || TARGET_AVX2
3728 and add special !TARGET_XOP && !TARGET_AVX512VL expansion.
3729
3730 2021-07-28 Martin Uecker <muecker@gwdg.de>
3731
3732 * calls.c (maybe_warn_rdwr_sizes): Correct argument
3733 numbers in warning that were switched.
3734
3735 2021-07-28 Kewen Lin <linkw@linux.ibm.com>
3736
3737 PR tree-optimization/101596
3738 * tree-vect-patterns.c (vect_recog_mulhs_pattern): Fix wrong check
3739 by using new_type's precision instead.
3740
3741 2021-07-28 liuhongt <hongtao.liu@intel.com>
3742
3743 PR target/99881
3744 * config/i386/i386.h (processor_costs): Add new member
3745 integer_to_sse.
3746 * config/i386/x86-tune-costs.h (ix86_size_cost, i386_cost,
3747 i486_cost, pentium_cost, lakemont_cost, pentiumpro_cost,
3748 geode_cost, k6_cost, athlon_cost, k8_cost, amdfam10_cost,
3749 bdver_cost, znver1_cost, znver2_cost, znver3_cost,
3750 btver1_cost, btver2_cost, btver3_cost, pentium4_cost,
3751 nocona_cost, atom_cost, atom_cost, slm_cost, intel_cost,
3752 generic_cost, core_cost): Initialize integer_to_sse same value
3753 as sse_op.
3754 (skylake_cost): Initialize integer_to_sse twice as much as sse_op.
3755 * config/i386/i386.c (ix86_builtin_vectorization_cost):
3756 Use integer_to_sse instead of sse_op to calculate the cost of
3757 vec_construct.
3758
3759 2021-07-27 Bill Schmidt <wschmidt@linux.ibm.com>
3760
3761 * config/rs6000/rs6000-gen-builtins.c (write_ovld_static_init): New
3762 function.
3763 (write_init_file): Call write_ovld_static_init.
3764
3765 2021-07-27 Bill Schmidt <wschmidt@linux.ibm.com>
3766
3767 * config/rs6000/rs6000-gen-builtins.c (write_bif_static_init): New
3768 function.
3769 (write_init_file): Call write_bif_static_init.
3770
3771 2021-07-27 Bill Schmidt <wschmidt@linux.ibm.com>
3772
3773 * config/rs6000/rs6000-gen-builtins.c (typemap): New struct.
3774 (TYPE_MAP_SIZE): New macro.
3775 (type_map): New initialized variable.
3776 (typemap_cmp): New function.
3777 (write_type_node): Likewise.
3778 (write_fntype_init): Implement.
3779
3780 2021-07-27 Martin Sebor <msebor@redhat.com>
3781
3782 PR tree-optimization/101584
3783 * tree-ssa-uninit.c (builtin_call_nomodifying_p): New function.
3784 (check_defs): Call it.
3785
3786 2021-07-27 Aldy Hernandez <aldyh@redhat.com>
3787
3788 * tree-ssa-dom.c (dom_jump_threader_simplifier):
3789 Put avail_exprs_stack in the class, instead of passing it to
3790 jump_threader_simplifier.
3791 (dom_jump_threader_simplifier::simplify): Add state argument.
3792 (dom_opt_dom_walker): Add state.
3793 (pass_dominator::execute): Pass state to threader.
3794 (dom_opt_dom_walker::before_dom_children): Use state.
3795 * tree-ssa-threadedge.c (jump_threader::jump_threader): Replace
3796 arguments by state.
3797 (jump_threader::record_temporary_equivalences_from_phis):
3798 Register equivalences through the state variable.
3799 (jump_threader::record_temporary_equivalences_from_stmts_at_dest):
3800 Record ranges in a statement through the state variable.
3801 (jump_threader::simplify_control_stmt_condition): Pass state to
3802 simplify.
3803 (jump_threader::simplify_control_stmt_condition_1): Same.
3804 (jump_threader::thread_around_empty_blocks): Remove obsolete
3805 comment.
3806 (jump_threader::thread_through_normal_block): Record equivalences
3807 on edge through the state variable.
3808 (jump_threader::thread_across_edge): Abstract state pushing.
3809 (jt_state::jt_state): New.
3810 (jt_state::push): New.
3811 (jt_state::pop): New.
3812 (jt_state::register_equiv): New.
3813 (jt_state::record_ranges_from_stmt): New.
3814 (jt_state::register_equivs_on_edge): New.
3815 (jump_threader_simplifier::jump_threader_simplifier): Move from
3816 header.
3817 (jump_threader_simplifier::simplify): Add state argument.
3818 * tree-ssa-threadedge.h (class jt_state): New.
3819 (class jump_threader): Add state to constructor.
3820 (class jump_threader_simplifier): Add state to simplify. Remove
3821 avail_exprs_stack from class.
3822 * tree-vrp.c (vrp_jump_threader_simplifier::simplify): Add state
3823 argument.
3824 (vrp_jump_threader::vrp_jump_threader): Add state.
3825 (vrp_jump_threader::~vrp_jump_threader): Cleanup state.
3826
3827 2021-07-27 Aldy Hernandez <aldyh@redhat.com>
3828
3829 * Makefile.in (OBJS): Add gimple-range-path.o.
3830 * gimple-range-path.cc: New file.
3831 * gimple-range-path.h: New file.
3832
3833 2021-07-27 Jonathan Wright <jonathan.wright@arm.com>
3834
3835 * config/aarch64/aarch64-simd.md: Push sign/zero-extension
3836 inside vec_duplicate for all patterns.
3837 * simplify-rtx.c (simplify_context::simplify_unary_operation_1):
3838 Push sign/zero-extension inside vec_duplicate.
3839
3840 2021-07-27 Richard Biener <rguenther@suse.de>
3841
3842 PR tree-optimization/101573
3843 * tree-ssa-uninit.c (warn_uninit_phi_uses): New function
3844 looking at uninitialized PHI arg defs in some constrained cases.
3845 (warn_uninitialized_vars): Call it.
3846 (execute_early_warn_uninitialized): Calculate dominators.
3847
3848 2021-07-27 Richard Biener <rguenther@suse.de>
3849
3850 PR tree-optimization/39821
3851 * tree-vect-stmts.c (vect_model_promotion_demotion_cost): Use
3852 vector_stmt for widening arithmetic.
3853 (vectorizable_conversion): Adjust.
3854
3855 2021-07-27 Martin Jambor <mjambor@suse.cz>
3856
3857 * cgraph.h (ipa_replace_map): New field force_load_ref.
3858 * ipa-prop.h (ipa_param_descriptor): Reduce precision of move_cost,
3859 aded new flag load_dereferenced, adjusted comments.
3860 (ipa_get_param_dereferenced): New function.
3861 (ipa_set_param_dereferenced): Likewise.
3862 * cgraphclones.c (cgraph_node::create_virtual_clone): Follow it.
3863 * ipa-cp.c: Include gimple.h.
3864 (ipcp_discover_new_direct_edges): Take into account dereferenced flag.
3865 (get_replacement_map): New parameter force_load_ref, set the
3866 appropriate flag in ipa_replace_map if set.
3867 (struct symbol_and_index_together): New type.
3868 (adjust_refs_in_act_callers): New function.
3869 (adjust_references_in_caller): Likewise.
3870 (create_specialized_node): When appropriate, call
3871 adjust_references_in_caller and force only load references.
3872 * ipa-prop.c (load_from_dereferenced_name): New function.
3873 (ipa_analyze_controlled_uses): Also detect loads from a
3874 dereference, harden testing of call statements.
3875 (ipa_write_node_info): Stream the dereferenced flag.
3876 (ipa_read_node_info): Likewise.
3877 (ipa_set_jf_constant): Also create refdesc when jump function
3878 references a variable.
3879 (cgraph_node_for_jfunc): Rename to symtab_node_for_jfunc, work
3880 also on references of variables and return a symtab_node. Adjust
3881 all callers.
3882 (propagate_controlled_uses): Also remove references to VAR_DECLs.
3883
3884 2021-07-27 Jakub Jelinek <jakub@redhat.com>
3885
3886 PR middle-end/101586
3887 * gimple-fold.c (clear_padding_type): Ignore FIELD_DECLs with byte
3888 positions above or equal to sz except for diagnostics of flexible
3889 array members.
3890
3891 2021-07-26 Andrew MacLeod <amacleod@redhat.com>
3892
3893 PR tree-optimization/78888
3894 * gimple-range-fold.cc (get_letter_range): New.
3895 (fold_using_range::range_of_builtin_call): Call get_letter_range.
3896
3897 2021-07-26 Andrew MacLeod <amacleod@redhat.com>
3898
3899 PR tree-optimization/78888
3900 * gimple-range-fold.cc (fold_using_range::range_of_builtin_call): Add cases
3901 for CFN_BUILT_IN_TOUPPER and CFN_BUILT_IN_TOLOWER.
3902
3903 2021-07-26 Roger Sayle <roger@nextmovesoftware.com>
3904 Marc Glisse <marc.glisse@inria.fr>
3905
3906 * match.pd (rotate): Simplify equality/inequality of rotations.
3907 (bswap): Simplify equality/inequality tests of byte swapping.
3908
3909 2021-07-26 Aldy Hernandez <aldyh@redhat.com>
3910
3911 * range-op.cc (operator_bitwise_xor::op1_op2_relation_effect):
3912 New.
3913
3914 2021-07-26 Aldy Hernandez <aldyh@redhat.com>
3915
3916 * range-op.cc (operator_lshift::fold_range): Pass rel to
3917 base class fold_range.
3918 (operator_rshift::fold_range): Same.
3919
3920 2021-07-26 Ashimida <ashimida@linux.alibaba.com>
3921
3922 PR driver/101447
3923 * toplev.h (min_align_loops_log): Remove declaration.
3924 (min_align_jumps_log, min_align_labels_log): Likewise.
3925 (min_align_functions_log): Likewise.
3926
3927 2021-07-26 Aldy Hernandez <aldyh@redhat.com>
3928
3929 * tree-vrp.c (vrp_simplify_cond_using_ranges): Rename vr_values
3930 with range_query.
3931 (execute_vrp): Abstract out simplification of conditionals...
3932 (simplify_casted_conds): ...here.
3933
3934 2021-07-26 Aldy Hernandez <aldyh@redhat.com>
3935
3936 * gimple-array-bounds.cc (array_bounds_checker::get_value_range):
3937 Add gimple argument.
3938 (array_bounds_checker::check_array_ref): Same.
3939 (array_bounds_checker::check_addr_expr): Same.
3940 (array_bounds_checker::check_array_bounds): Pass statement to
3941 check_array_bounds and check_addr_expr.
3942 * gimple-array-bounds.h (check_array_bounds): Add gimple argument.
3943 (check_addr_expr): Same.
3944 (get_value_range): Same.
3945
3946 2021-07-26 Tamar Christina <tamar.christina@arm.com>
3947
3948 * config/aarch64/aarch64-simd-builtins.def (sdot, udot): Rename to..
3949 (sdot_prod, udot_prod): ... This.
3950 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>): Merged
3951 into...
3952 (<sur>dot_prod<vsi2qi>): ... this.
3953 (aarch64_<sur>dot_lane<vsi2qi>, aarch64_<sur>dot_laneq<vsi2qi>):
3954 Change operands order.
3955 (<sur>sadv16qi): Use new operands order.
3956 * config/aarch64/arm_neon.h (vdot_u32, vdotq_u32, vdot_s32,
3957 vdotq_s32): Use new RTL ordering.
3958
3959 2021-07-26 Tamar Christina <tamar.christina@arm.com>
3960
3961 * config/aarch64/aarch64-builtins.c (TYPES_TERNOP_SUSS,
3962 aarch64_types_ternop_suss_qualifiers): New.
3963 * config/aarch64/aarch64-simd-builtins.def (usdot_prod): Use it.
3964 * config/aarch64/aarch64-simd.md (usdot_prod<vsi2qi>): Re-organize RTL.
3965 * config/aarch64/arm_neon.h (vusdot_s32, vusdotq_s32): Use it.
3966
3967 2021-07-23 Jakub Jelinek <jakub@redhat.com>
3968
3969 PR rtl-optimization/101562
3970 * expmed.c (store_integral_bit_field): Only use movstrict_optab
3971 if the operand isn't paradoxical.
3972
3973 2021-07-23 Aldy Hernandez <aldyh@redhat.com>
3974
3975 * gimple-array-bounds.h (class array_bounds_checker): Change
3976 ranges type to range_query.
3977
3978 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
3979
3980 * config/aarch64/arm_neon.h (vst1_s64_x2): Use
3981 __builtin_memcpy instead of constructing
3982 __builtin_aarch64_simd_oi one vector at a time.
3983 (vst1_u64_x2): Likewise.
3984 (vst1_f64_x2): Likewise.
3985 (vst1_s8_x2): Likewise.
3986 (vst1_p8_x2): Likewise.
3987 (vst1_s16_x2): Likewise.
3988 (vst1_p16_x2): Likewise.
3989 (vst1_s32_x2): Likewise.
3990 (vst1_u8_x2): Likewise.
3991 (vst1_u16_x2): Likewise.
3992 (vst1_u32_x2): Likewise.
3993 (vst1_f16_x2): Likewise.
3994 (vst1_f32_x2): Likewise.
3995 (vst1_p64_x2): Likewise.
3996 (vst1q_s8_x2): Likewise.
3997 (vst1q_p8_x2): Likewise.
3998 (vst1q_s16_x2): Likewise.
3999 (vst1q_p16_x2): Likewise.
4000 (vst1q_s32_x2): Likewise.
4001 (vst1q_s64_x2): Likewise.
4002 (vst1q_u8_x2): Likewise.
4003 (vst1q_u16_x2): Likewise.
4004 (vst1q_u32_x2): Likewise.
4005 (vst1q_u64_x2): Likewise.
4006 (vst1q_f16_x2): Likewise.
4007 (vst1q_f32_x2): Likewise.
4008 (vst1q_f64_x2): Likewise.
4009 (vst1q_p64_x2): Likewise.
4010
4011 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
4012
4013 * config/aarch64/arm_neon.h (vst1_s64_x3): Use
4014 __builtin_memcpy instead of constructing
4015 __builtin_aarch64_simd_ci one vector at a time.
4016 (vst1_u64_x3): Likewise.
4017 (vst1_f64_x3): Likewise.
4018 (vst1_s8_x3): Likewise.
4019 (vst1_p8_x3): Likewise.
4020 (vst1_s16_x3): Likewise.
4021 (vst1_p16_x3): Likewise.
4022 (vst1_s32_x3): Likewise.
4023 (vst1_u8_x3): Likewise.
4024 (vst1_u16_x3): Likewise.
4025 (vst1_u32_x3): Likewise.
4026 (vst1_f16_x3): Likewise.
4027 (vst1_f32_x3): Likewise.
4028 (vst1_p64_x3): Likewise.
4029 (vst1q_s8_x3): Likewise.
4030 (vst1q_p8_x3): Likewise.
4031 (vst1q_s16_x3): Likewise.
4032 (vst1q_p16_x3): Likewise.
4033 (vst1q_s32_x3): Likewise.
4034 (vst1q_s64_x3): Likewise.
4035 (vst1q_u8_x3): Likewise.
4036 (vst1q_u16_x3): Likewise.
4037 (vst1q_u32_x3): Likewise.
4038 (vst1q_u64_x3): Likewise.
4039 (vst1q_f16_x3): Likewise.
4040 (vst1q_f32_x3): Likewise.
4041 (vst1q_f64_x3): Likewise.
4042 (vst1q_p64_x3): Likewise.
4043
4044 2021-07-23 H.J. Lu <hjl.tools@gmail.com>
4045
4046 PR target/101504
4047 * config/i386/i386.c (ix86_gen_scratch_sse_rtx): Don't return
4048 hard register when LRA is in progress.
4049
4050 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
4051
4052 * config/aarch64/arm_neon.h (vst1_s8_x4): Use
4053 __builtin_memcpy instead of using a union.
4054 (vst1q_s8_x4): Likewise.
4055 (vst1_s16_x4): Likewise.
4056 (vst1q_s16_x4): Likewise.
4057 (vst1_s32_x4): Likewise.
4058 (vst1q_s32_x4): Likewise.
4059 (vst1_u8_x4): Likewise.
4060 (vst1q_u8_x4): Likewise.
4061 (vst1_u16_x4): Likewise.
4062 (vst1q_u16_x4): Likewise.
4063 (vst1_u32_x4): Likewise.
4064 (vst1q_u32_x4): Likewise.
4065 (vst1_f16_x4): Likewise.
4066 (vst1q_f16_x4): Likewise.
4067 (vst1_f32_x4): Likewise.
4068 (vst1q_f32_x4): Likewise.
4069 (vst1_p8_x4): Likewise.
4070 (vst1q_p8_x4): Likewise.
4071 (vst1_p16_x4): Likewise.
4072 (vst1q_p16_x4): Likewise.
4073 (vst1_s64_x4): Likewise.
4074 (vst1_u64_x4): Likewise.
4075 (vst1_p64_x4): Likewise.
4076 (vst1q_s64_x4): Likewise.
4077 (vst1q_u64_x4): Likewise.
4078 (vst1q_p64_x4): Likewise.
4079 (vst1_f64_x4): Likewise.
4080 (vst1q_f64_x4): Likewise.
4081
4082 2021-07-23 Jonathan Wrightt <jonathan.wright@arm.com>
4083
4084 * config/aarch64/arm_neon.h (vst2_s64): Use __builtin_memcpy
4085 instead of constructing __builtin_aarch64_simd_oi one vector
4086 at a time.
4087 (vst2_u64): Likewise.
4088 (vst2_f64): Likewise.
4089 (vst2_s8): Likewise.
4090 (vst2_p8): Likewise.
4091 (vst2_s16): Likewise.
4092 (vst2_p16): Likewise.
4093 (vst2_s32): Likewise.
4094 (vst2_u8): Likewise.
4095 (vst2_u16): Likewise.
4096 (vst2_u32): Likewise.
4097 (vst2_f16): Likewise.
4098 (vst2_f32): Likewise.
4099 (vst2_p64): Likewise.
4100 (vst2q_s8): Likewise.
4101 (vst2q_p8): Likewise.
4102 (vst2q_s16): Likewise.
4103 (vst2q_p16): Likewise.
4104 (vst2q_s32): Likewise.
4105 (vst2q_s64): Likewise.
4106 (vst2q_u8): Likewise.
4107 (vst2q_u16): Likewise.
4108 (vst2q_u32): Likewise.
4109 (vst2q_u64): Likewise.
4110 (vst2q_f16): Likewise.
4111 (vst2q_f32): Likewise.
4112 (vst2q_f64): Likewise.
4113 (vst2q_p64): Likewise.
4114
4115 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
4116
4117 * config/aarch64/arm_neon.h (vst3_s64): Use __builtin_memcpy
4118 instead of constructing __builtin_aarch64_simd_ci one vector
4119 at a time.
4120 (vst3_u64): Likewise.
4121 (vst3_f64): Likewise.
4122 (vst3_s8): Likewise.
4123 (vst3_p8): Likewise.
4124 (vst3_s16): Likewise.
4125 (vst3_p16): Likewise.
4126 (vst3_s32): Likewise.
4127 (vst3_u8): Likewise.
4128 (vst3_u16): Likewise.
4129 (vst3_u32): Likewise.
4130 (vst3_f16): Likewise.
4131 (vst3_f32): Likewise.
4132 (vst3_p64): Likewise.
4133 (vst3q_s8): Likewise.
4134 (vst3q_p8): Likewise.
4135 (vst3q_s16): Likewise.
4136 (vst3q_p16): Likewise.
4137 (vst3q_s32): Likewise.
4138 (vst3q_s64): Likewise.
4139 (vst3q_u8): Likewise.
4140 (vst3q_u16): Likewise.
4141 (vst3q_u32): Likewise.
4142 (vst3q_u64): Likewise.
4143 (vst3q_f16): Likewise.
4144 (vst3q_f32): Likewise.
4145 (vst3q_f64): Likewise.
4146 (vst3q_p64): Likewise.
4147
4148 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
4149
4150 * config/aarch64/arm_neon.h (vst4_s64): Use __builtin_memcpy
4151 instead of constructing __builtin_aarch64_simd_xi one vector
4152 at a time.
4153 (vst4_u64): Likewise.
4154 (vst4_f64): Likewise.
4155 (vst4_s8): Likewise.
4156 (vst4_p8): Likewise.
4157 (vst4_s16): Likewise.
4158 (vst4_p16): Likewise.
4159 (vst4_s32): Likewise.
4160 (vst4_u8): Likewise.
4161 (vst4_u16): Likewise.
4162 (vst4_u32): Likewise.
4163 (vst4_f16): Likewise.
4164 (vst4_f32): Likewise.
4165 (vst4_p64): Likewise.
4166 (vst4q_s8): Likewise.
4167 (vst4q_p8): Likewise.
4168 (vst4q_s16): Likewise.
4169 (vst4q_p16): Likewise.
4170 (vst4q_s32): Likewise.
4171 (vst4q_s64): Likewise.
4172 (vst4q_u8): Likewise.
4173 (vst4q_u16): Likewise.
4174 (vst4q_u32): Likewise.
4175 (vst4q_u64): Likewise.
4176 (vst4q_f16): Likewise.
4177 (vst4q_f32): Likewise.
4178 (vst4q_f64): Likewise.
4179 (vst4q_p64): Likewise.
4180
4181 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
4182
4183 * config/aarch64/arm_neon.h (vtbx4_s8): Use __builtin_memcpy
4184 instead of constructing __builtin_aarch64_simd_oi one vector
4185 at a time.
4186 (vtbx4_u8): Likewise.
4187 (vtbx4_p8): Likewise.
4188
4189 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
4190
4191 * config/aarch64/arm_neon.h (vtbl3_s8): Use __builtin_memcpy
4192 instead of constructing __builtin_aarch64_simd_oi one vector
4193 at a time.
4194 (vtbl3_u8): Likewise.
4195 (vtbl3_p8): Likewise.
4196 (vtbl4_s8): Likewise.
4197 (vtbl4_u8): Likewise.
4198 (vtbl4_p8): Likewise.
4199
4200 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
4201
4202 * config/aarch64/arm_neon.h (vqtbx2_s8): Use __builtin_memcpy
4203 instead of constructing __builtin_aarch64_simd_oi one vector
4204 at a time.
4205 (vqtbx2_u8): Likewise.
4206 (vqtbx2_p8): Likewise.
4207 (vqtbx2q_s8): Likewise.
4208 (vqtbx2q_u8): Likewise.
4209 (vqtbx2q_p8): Likewise.
4210 (vqtbx3_s8): Use __builtin_memcpy instead of constructing
4211 __builtin_aarch64_simd_ci one vector at a time.
4212 (vqtbx3_u8): Likewise.
4213 (vqtbx3_p8): Likewise.
4214 (vqtbx3q_s8): Likewise.
4215 (vqtbx3q_u8): Likewise.
4216 (vqtbx3q_p8): Likewise.
4217 (vqtbx4_s8): Use __builtin_memcpy instead of constructing
4218 __builtin_aarch64_simd_xi one vector at a time.
4219 (vqtbx4_u8): Likewise.
4220 (vqtbx4_p8): Likewise.
4221 (vqtbx4q_s8): Likewise.
4222 (vqtbx4q_u8): Likewise.
4223 (vqtbx4q_p8): Likewise.
4224
4225 2021-07-23 Jonathan Wright <jonathan.wright@arm.com>
4226
4227 * config/aarch64/arm_neon.h (vqtbl2_s8): Use __builtin_memcpy
4228 instead of constructing __builtin_aarch64_simd_oi one vector
4229 at a time.
4230 (vqtbl2_u8): Likewise.
4231 (vqtbl2_p8): Likewise.
4232 (vqtbl2q_s8): Likewise.
4233 (vqtbl2q_u8): Likewise.
4234 (vqtbl2q_p8): Likewise.
4235 (vqtbl3_s8): Use __builtin_memcpy instead of constructing
4236 __builtin_aarch64_simd_ci one vector at a time.
4237 (vqtbl3_u8): Likewise.
4238 (vqtbl3_p8): Likewise.
4239 (vqtbl3q_s8): Likewise.
4240 (vqtbl3q_u8): Likewise.
4241 (vqtbl3q_p8): Likewise.
4242 (vqtbl4_s8): Use __builtin_memcpy instead of constructing
4243 __builtin_aarch64_simd_xi one vector at a time.
4244 (vqtbl4_u8): Likewise.
4245 (vqtbl4_p8): Likewise.
4246 (vqtbl4q_s8): Likewise.
4247 (vqtbl4q_u8): Likewise.
4248 (vqtbl4q_p8): Likewise.
4249
4250 2021-07-23 Haochen Gui <guihaoc@gcc.gnu.org>
4251
4252 PR target/100952
4253 * config/rs6000/rs6000.md (cstore<mode>4): Fix wrong fall through.
4254
4255 2021-07-22 Andrew Pinski <apinski@marvell.com>
4256
4257 PR tree-optimization/10153
4258 * tree-tailcall.c (create_tailcall_accumulator):
4259 Don't call fold_convert as the type should be correct already.
4260 (tree_optimize_tail_calls_1): Use build_{one,zero}_cst instead
4261 of integer_{one,zero}_node for the call of create_tailcall_accumulator.
4262
4263 2021-07-22 Aldy Hernandez <aldyh@redhat.com>
4264
4265 * gimple-range-cache.cc (non_null_ref::adjust_range): Replace
4266 varying_p check for null/non-null check.
4267
4268 2021-07-22 Andrew MacLeod <amacleod@redhat.com>
4269
4270 PR tree-optimization/101511
4271 * value-relation.cc (relation_oracle::query_relation): Check if ssa1
4272 is in ssa2's equiv set, and don't trap if so.
4273
4274 2021-07-22 Andrew MacLeod <amacleod@redhat.com>
4275
4276 PR tree-optimization/101497
4277 * gimple-range-fold.cc (fold_using_range::range_of_cond_expr): Check
4278 for undefined.
4279
4280 2021-07-22 Andrew MacLeod <amacleod@redhat.com>
4281
4282 PR tree-optimization/101496
4283 * vr-values.c (simplify_using_ranges::fold_cond): Call range_of_stmt
4284 first, then vrp_visit_cond_Stmt.
4285
4286 2021-07-22 liuhongt <hongtao.liu@intel.com>
4287
4288 * config/i386/i386-expand.c
4289 (ix86_broadcast_from_integer_constant): Rename to ..
4290 (ix86_broadcast_from_constant): .. this, and extend it to
4291 handle float mode.
4292 (ix86_expand_vector_move): Extend to float mode.
4293 * config/i386/i386-features.c
4294 (replace_constant_pool_with_broadcast): Remove.
4295 (remove_partial_avx_dependency_gate): Ditto.
4296 (constant_pool_broadcast): Ditto.
4297 (class pass_constant_pool_broadcast): Ditto.
4298 (make_pass_constant_pool_broadcast): Ditto.
4299 (remove_partial_avx_dependency): Adjust gate.
4300 * config/i386/i386-passes.def: Remove pass_constant_pool_broadcast.
4301 * config/i386/i386-protos.h
4302 (make_pass_constant_pool_broadcast): Remove.
4303
4304 2021-07-22 liuhongt <hongtao.liu@intel.com>
4305
4306 * config/i386/constraints.md (Wb): New constraint.
4307 (Ww): Ditto.
4308 * config/i386/i386.md (*ashlhi3_1): Extend to avx512 mask
4309 shift.
4310 (*ashlqi3_1): Ditto.
4311 (*<insn><mode>3_1): Split to ..
4312 (*ashr<mode>3_1): this, ...
4313 (*lshr<mode>3_1): and this, also extend this pattern to avx512
4314 mask registers.
4315 (*<insn><mode>3_1): Split to ..
4316 (*ashr<mode>3_1): this, ...
4317 (*lshrqi3_1): and this, also extend this pattern to avx512
4318 mask registers.
4319 (*lshrhi3_1): And this, also extend this pattern to avx512
4320 mask registers.
4321 * config/i386/sse.md (k<code><mode>): New define_split after
4322 it to convert generic shift pattern to mask shift ones.
4323
4324 2021-07-21 Thomas Schwinge <thomas@codesourcery.com>
4325 Joseph Myers <joseph@codesourcery.com>
4326 Cesar Philippidis <cesar@codesourcery.com>
4327
4328 * tree-core.h (omp_clause_code): Add 'OMP_CLAUSE_NOHOST'.
4329 * tree.c (omp_clause_num_ops, omp_clause_code_name, walk_tree_1):
4330 Handle it.
4331 * tree-pretty-print.c (dump_omp_clause): Likewise.
4332 * omp-general.c (oacc_verify_routine_clauses): Likewise.
4333 * gimplify.c (gimplify_scan_omp_clauses)
4334 (gimplify_adjust_omp_clauses): Likewise.
4335 * tree-nested.c (convert_nonlocal_omp_clauses)
4336 (convert_local_omp_clauses): Likewise.
4337 * omp-low.c (scan_sharing_clauses): Likewise.
4338 * omp-offload.c (execute_oacc_device_lower): Update.
4339
4340 2021-07-21 Martin Sebor <msebor@redhat.com>
4341
4342 * tree-ssa-alias.c (walk_aliased_vdefs_1): Fix typos in a comment.
4343
4344 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
4345
4346 * config/rs6000/rs6000-gen-builtins.c (write_init_bif_table):
4347 Implement.
4348
4349 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
4350
4351 * config/rs6000/rs6000-gen-builtins.c (write_fntype): New
4352 callback function.
4353 (write_fntype_init): New stub function.
4354 (write_init_bif_table): Likewise.
4355 (write_init_ovld_table): New function.
4356 (write_init_file): Implement.
4357
4358 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
4359
4360 * config/rs6000/rs6000-gen-builtins.c
4361 (write_autogenerated_header): New function.
4362 (write_decls): Likewise.
4363 (write_extern_fntype): New callback function.
4364 (write_header_file): Implement.
4365
4366 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
4367
4368 * config/rs6000/rs6000-gen-builtins.c (write_defines_file):
4369 Implement.
4370
4371 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
4372
4373 * config/rs6000/rs6000-gen-builtins.c (complete_vector_type): New
4374 function.
4375 (complete_base_type): Likewise.
4376 (construct_fntype_id): Likewise.
4377 (parse_bif_entry): Call contruct_fntype_id.
4378 (parse_ovld_entry): Likewise.
4379
4380 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
4381
4382 * config/rs6000/rs6000-gen-builtins.c (ovld_stanza): New struct.
4383 (MAXOVLDSTANZAS): New macro.
4384 (ovld_stanzas): New variable.
4385 (curr_ovld_stanza): Likewise.
4386 (MAXOVLDS): New macro.
4387 (ovlddata): New struct.
4388 (ovlds): New variable.
4389 (curr_ovld): Likewise.
4390 (max_ovld_args): Likewise.
4391 (parse_ovld_entry): New function.
4392 (parse_ovld_stanza): Likewise.
4393 (parse_ovld): Implement.
4394
4395 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
4396
4397 * config/rs6000/rs6000-gen-builtins.c (parse_bif_attrs):
4398 Implement.
4399
4400 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
4401
4402 * config/rs6000/rs6000-gen-builtins.c (parse_args): New function.
4403 (parse_prototype): Implement.
4404
4405 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
4406
4407 * config/rs6000/rs6000-gen-builtins.c (bif_stanza): New enum.
4408 (curr_bif_stanza): New variable.
4409 (stanza_entry): New struct.
4410 (stanza_map): New initialized variable.
4411 (enable_string): Likewise.
4412 (fnkinds): New enum.
4413 (typelist): New struct.
4414 (attrinfo): Likewise.
4415 (MAXRESTROPNDS): New macro.
4416 (prototype): New struct.
4417 (MAXBIFS): New macro.
4418 (bifdata): New struct.
4419 (bifs): New variable.
4420 (curr_bif): Likewise.
4421 (bif_order): Likewise.
4422 (bif_index): Likewise.
4423 (fatal): New function.
4424 (stanza_name_to_stanza): Likewise.
4425 (parse_bif_attrs): New stub function.
4426 (parse_prototype): Likewise.
4427 (parse_bif_entry): New function.
4428 (parse_bif_stanza): Likewise.
4429 (parse_bif): Implement.
4430 (set_bif_order): New function.
4431 (create_bif_order): Implement.
4432
4433 2021-07-21 Bill Schmidt <wschmidt@linux.ibm.com>
4434
4435 * config/rs6000/rs6000-gen-builtins.c (rbtree.h): New #include.
4436 (num_bifs): New variable.
4437 (num_ovld_stanzas): Likewise.
4438 (num_ovlds): Likewise.
4439 (parse_codes): New enum.
4440 (bif_rbt): New variable.
4441 (ovld_rbt): Likewise.
4442 (fntype_rbt): Likewise.
4443 (bifo_rbt): Likewise.
4444 (parse_bif): New stub function.
4445 (create_bif_order): Likewise.
4446 (parse_ovld): Likewise.
4447 (write_header_file): Likewise.
4448 (write_init_file): Likewise.
4449 (write_defines_file): Likewise.
4450 (delete_output_files): New function.
4451 (main): Likewise.
4452
4453 2021-07-21 H.J. Lu <hjl.tools@gmail.com>
4454
4455 PR target/101549
4456 * config/i386/i386-builtin.def: Remove OPTION_MASK_ISA_SSE4_2
4457 from CRC32 _builtin functions.
4458
4459 2021-07-21 Sebastian Huber <sebastian.huber@embedded-brains.de>
4460
4461 * coverage.c (build_gcov_info_var_registration): Mark the object placed
4462 in the linker set as referenced so that it does not get optimized away.
4463
4464 2021-07-21 Kito Cheng <kito.cheng@sifive.com>
4465
4466 Revert:
4467 2021-07-20 Kito Cheng <kito.cheng@sifive.com>
4468
4469 * config.gcc (riscv*-*-*): Detect which python is available.
4470
4471 2021-07-21 Jakub Jelinek <jakub@redhat.com>
4472
4473 PR middle-end/101535
4474 * gimplify.c (omp_check_private): Properly skip ORT_TARGET_DATA
4475 contexts in which decl isn't privatized and for ORT_TARGET return
4476 false if decl is mapped.
4477
4478 2021-07-21 Richard Sandiford <richard.sandiford@arm.com>
4479
4480 * gimple-loop-jam.c: Include tree-ssa-sccvn.h.
4481 (tree_loop_unroll_and_jam): Run value-numbering on a loop that
4482 has been successfully unrolled.
4483
4484 2021-07-21 Richard Sandiford <richard.sandiford@arm.com>
4485
4486 * tree-ssa-loop-manip.c (determine_exit_conditions): Return a null
4487 exit condition if no tail loop is needed, and if the original exit
4488 condition should therefore be kept as-is.
4489 (tree_transform_and_unroll_loop): Handle that case here too.
4490
4491 2021-07-21 Kewen Lin <linkw@linux.ibm.com>
4492
4493 * tree-data-ref.c (free_dependence_relations): Adjust to pass vec
4494 by reference.
4495 (free_data_refs): Likewise.
4496 * tree-data-ref.h (free_dependence_relations): Likewise.
4497 (free_data_refs): Likewise.
4498 * tree-predcom.c (struct chain): Use auto_vec instead of vec for
4499 members.
4500 (struct component): Likewise.
4501 (pcom_worker::pcom_worker): Adjust for auto_vec and renaming changes.
4502 (pcom_worker::~pcom_worker): Likewise.
4503 (pcom_worker::release_chain): Adjust as auto_vec changes.
4504 (pcom_worker::loop): Rename to ...
4505 (pcom_worker::m_loop): ... this.
4506 (pcom_worker::datarefs): Rename to ...
4507 (pcom_worker::m_datarefs): ... this. Use auto_vec instead of vec.
4508 (pcom_worker::dependences): Rename to ...
4509 (pcom_worker::m_dependences): ... this. Use auto_vec instead of vec.
4510 (pcom_worker::chains): Rename to ...
4511 (pcom_worker::m_chains): ... this. Use auto_vec instead of vec.
4512 (pcom_worker::looparound_phis): Rename to ...
4513 (pcom_worker::m_looparound_phis): ... this. Use auto_vec instead of
4514 vec.
4515 (pcom_worker::cache): Rename to ...
4516 (pcom_worker::m_cache): ... this. Use auto_vec instead of vec.
4517 (pcom_worker::release_chain): Adjust for auto_vec changes.
4518 (pcom_worker::release_chains): Adjust for auto_vec and renaming
4519 changes.
4520 (release_component): Remove.
4521 (release_components): Adjust for release_component removal.
4522 (component_of): Adjust to use vec.
4523 (merge_comps): Likewise.
4524 (pcom_worker::aff_combination_dr_offset): Adjust for renaming changes.
4525 (pcom_worker::determine_offset): Likewise.
4526 (class comp_ptrs): Remove.
4527 (pcom_worker::split_data_refs_to_components): Adjust for renaming
4528 changes, for comp_ptrs removal with auto_vec.
4529 (pcom_worker::suitable_component_p): Adjust for renaming changes.
4530 (pcom_worker::filter_suitable_components): Adjust for release_component
4531 removal.
4532 (pcom_worker::valid_initializer_p): Adjust for renaming changes.
4533 (pcom_worker::find_looparound_phi): Likewise.
4534 (pcom_worker::add_looparound_copies): Likewise.
4535 (pcom_worker::determine_roots_comp): Likewise.
4536 (pcom_worker::single_nonlooparound_use): Likewise.
4537 (pcom_worker::execute_pred_commoning_chain): Likewise.
4538 (pcom_worker::execute_pred_commoning): Likewise.
4539 (pcom_worker::try_combine_chains): Likewise.
4540 (pcom_worker::prepare_initializers_chain): Likewise.
4541 (pcom_worker::prepare_initializers): Likewise.
4542 (pcom_worker::prepare_finalizers_chain): Likewise.
4543 (pcom_worker::prepare_finalizers): Likewise.
4544 (pcom_worker::tree_predictive_commoning_loop): Likewise.
4545
4546 2021-07-20 Martin Sebor <msebor@redhat.com>
4547
4548 PR middle-end/101397
4549 * builtins.c (gimple_call_return_array): Add argument. Correct
4550 offsets for memchr, mempcpy, stpcpy, and stpncpy.
4551 (compute_objsize_r): Adjust offset computation for argument returning
4552 built-ins.
4553
4554 2021-07-20 Martin Sebor <msebor@redhat.com>
4555
4556 PR middle-end/101300
4557 * tree-ssa-uninit.c (check_defs): Handle UBSAN built-ins.
4558
4559 2021-07-20 Jeff Law <jlaw@localhost.localdomain>
4560
4561 * function.c (assign_parm_setup_block): Use adjust_address instead
4562 of change_address to preserve MEM_EXPR and friends.
4563
4564 2021-07-20 Martin Sebor <msebor@redhat.com>
4565
4566 * cfgloop.h (single_likely_exit): Adjust by-value argument to
4567 by-const-reference.
4568 * cfgloopanal.c (single_likely_exit): Same.
4569 * cgraph.h (struct cgraph_node): Same.
4570 * cgraphclones.c (cgraph_node::create_virtual_clone): Same.
4571 * genautomata.c (merge_states): Same.
4572 * genextract.c (VEC_char_to_string): Same.
4573 * genmatch.c (dt_node::gen_kids_1): Same.
4574 (walk_captures): Adjust by-value argument to by-reference.
4575 * gimple-ssa-store-merging.c (check_no_overlap): Adjust by-value argument
4576 to by-const-reference.
4577 * gimple.c (gimple_build_call_vec): Same.
4578 (gimple_build_call_internal_vec): Same.
4579 (gimple_build_switch): Same.
4580 (sort_case_labels): Same.
4581 (preprocess_case_label_vec_for_gimple): Adjust by-value argument to
4582 by-reference.
4583 * gimple.h (gimple_build_call_vec): Adjust by-value argument to
4584 by-const-reference.
4585 (gimple_build_call_internal_vec): Same.
4586 (gimple_build_switch): Same.
4587 (sort_case_labels): Same.
4588 (preprocess_case_label_vec_for_gimple): Adjust by-value argument to
4589 by-reference.
4590 * haifa-sched.c (calc_priorities): Adjust by-value argument to
4591 by-const-reference.
4592 (sched_init_luids): Same.
4593 (haifa_init_h_i_d): Same.
4594 * ipa-cp.c (ipa_get_indirect_edge_target_1): Same.
4595 (adjust_callers_for_value_intersection): Adjust by-value argument to
4596 by-reference.
4597 (find_more_scalar_values_for_callers_subset): Adjust by-value argument to
4598 by-const-reference.
4599 (find_more_contexts_for_caller_subset): Same.
4600 (find_aggregate_values_for_callers_subset): Same.
4601 (copy_useful_known_contexts): Same.
4602 * ipa-fnsummary.c (remap_edge_summaries): Same.
4603 (remap_freqcounting_predicate): Same.
4604 * ipa-inline.c (add_new_edges_to_heap): Adjust by-value argument to
4605 by-reference.
4606 * ipa-predicate.c (predicate::remap_after_inlining): Adjust by-value argument
4607 to by-const-reference.
4608 * ipa-predicate.h (predicate::remap_after_inlining): Same.
4609 * ipa-prop.c (ipa_find_agg_cst_for_param): Same.
4610 * ipa-prop.h (ipa_find_agg_cst_for_param): Same.
4611 * ira-build.c (ira_loop_tree_body_rev_postorder): Same.
4612 * read-rtl.c (add_overload_instance): Same.
4613 * rtl.h (native_decode_rtx): Same.
4614 (native_decode_vector_rtx): Same.
4615 * sched-int.h (sched_init_luids): Same.
4616 (haifa_init_h_i_d): Same.
4617 * simplify-rtx.c (native_decode_vector_rtx): Same.
4618 (native_decode_rtx): Same.
4619 * tree-call-cdce.c (gen_shrink_wrap_conditions): Same.
4620 (shrink_wrap_one_built_in_call_with_conds): Same.
4621 (shrink_wrap_conditional_dead_built_in_calls): Same.
4622 * tree-data-ref.c (create_runtime_alias_checks): Same.
4623 (compute_all_dependences): Same.
4624 * tree-data-ref.h (compute_all_dependences): Same.
4625 (create_runtime_alias_checks): Same.
4626 (index_in_loop_nest): Same.
4627 * tree-if-conv.c (mask_exists): Same.
4628 * tree-loop-distribution.c (class loop_distribution): Same.
4629 (loop_distribution::create_rdg_vertices): Same.
4630 (dump_rdg_partitions): Same.
4631 (debug_rdg_partitions): Same.
4632 (partition_contains_all_rw): Same.
4633 (loop_distribution::distribute_loop): Same.
4634 * tree-parloops.c (oacc_entry_exit_ok_1): Same.
4635 (oacc_entry_exit_single_gang): Same.
4636 * tree-ssa-loop-im.c (hoist_memory_references): Same.
4637 (loop_suitable_for_sm): Same.
4638 * tree-ssa-loop-niter.c (bound_index): Same.
4639 * tree-ssa-reassoc.c (update_ops): Same.
4640 (swap_ops_for_binary_stmt): Same.
4641 (rewrite_expr_tree): Same.
4642 (rewrite_expr_tree_parallel): Same.
4643 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Same.
4644 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Same.
4645 * tree-ssa-structalias.c (process_all_all_constraints): Same.
4646 (make_constraints_to): Same.
4647 (handle_lhs_call): Same.
4648 (find_func_aliases_for_builtin_call): Same.
4649 (sort_fieldstack): Same.
4650 (check_for_overlaps): Same.
4651 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks): Same.
4652 (vect_create_cond_for_unequal_addrs): Same.
4653 (vect_create_cond_for_lower_bounds): Same.
4654 (vect_create_cond_for_alias_checks): Same.
4655 * tree-vect-slp-patterns.c (vect_validate_multiplication): Same.
4656 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
4657 (vect_make_slp_decision): Same.
4658 (vect_slp_bbs): Same.
4659 (duplicate_and_interleave): Same.
4660 (vect_transform_slp_perm_load): Same.
4661 (vect_schedule_slp): Same.
4662 * tree-vectorizer.h (vect_transform_slp_perm_load): Same.
4663 (vect_schedule_slp): Same.
4664 (duplicate_and_interleave): Same.
4665 * tree.c (build_vector_from_ctor): Same.
4666 (build_vector): Same.
4667 (check_vector_cst): Same.
4668 (check_vector_cst_duplicate): Same.
4669 (check_vector_cst_fill): Same.
4670 (check_vector_cst_stepped): Same.
4671 * tree.h (build_vector_from_ctor): Same.
4672
4673 2021-07-20 Jakub Jelinek <jakub@redhat.com>
4674
4675 PR target/101384
4676 * config/rs6000/rs6000-protos.h (easy_altivec_constant): Change return
4677 type from bool to int.
4678 * config/rs6000/rs6000.c (vspltis_constant): Fix up handling the
4679 EASY_VECTOR_MSB case if either step or copies is not 1.
4680 (vspltis_shifted): Fix comment typo.
4681 (easy_altivec_constant): Change return type from bool to int, instead
4682 of returning true return byte size of the element mode that should be
4683 used to synthetize the constant.
4684 * config/rs6000/predicates.md (easy_vector_constant_msb): Require
4685 that vspltis_shifted is 0, handle the case where easy_altivec_constant
4686 assumes using different vector mode from CONST_VECTOR's mode.
4687 * config/rs6000/altivec.md (easy_vector_constant_msb splitter): Use
4688 easy_altivec_constant to determine mode in which -1 >> -1 should be
4689 performed, use rs6000_expand_vector_init instead of gen_vec_initv4sisi.
4690
4691 2021-07-20 Richard Biener <rguenther@suse.de>
4692
4693 PR debug/101473
4694 * dwarf2out.h (dwarf_file_data): Add key member.
4695 * dwarf2out.c (dwarf_file_hasher::equal): Compare key.
4696 (dwarf_file_hasher::hash): Hash key.
4697 (lookup_filename): Remap the filename and store it in the
4698 filename member of dwarf_file_data when creating a new
4699 dwarf_file_data.
4700 (file_name_acquire): Do not remap the filename again.
4701 (maybe_emit_file): Likewise.
4702
4703 2021-07-20 Jonathan Wright <jonathan.wright@arm.com>
4704
4705 * config/aarch64/aarch64-simd-builtins.def: Use two variant
4706 generators for all TBL/TBX intrinsics and rename to
4707 consistent forms: qtbl[1234] or qtbx[1234].
4708 * config/aarch64/aarch64-simd.md (aarch64_tbl1<mode>):
4709 Rename to...
4710 (aarch64_qtbl1<mode>): This.
4711 (aarch64_tbx1<mode>): Rename to...
4712 (aarch64_qtbx1<mode>): This.
4713 (aarch64_tbl2v16qi): Delete.
4714 (aarch64_tbl3<mode>): Rename to...
4715 (aarch64_qtbl2<mode>): This.
4716 (aarch64_tbx4<mode>): Rename to...
4717 (aarch64_qtbx2<mode>): This.
4718 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Use
4719 renamed qtbl1 and qtbl2 RTL patterns.
4720 * config/aarch64/arm_neon.h (vqtbl1_p8): Use renamed qtbl1
4721 RTL pattern.
4722 (vqtbl1_s8): Likewise.
4723 (vqtbl1_u8): Likewise.
4724 (vqtbl1q_p8): Likewise.
4725 (vqtbl1q_s8): Likewise.
4726 (vqtbl1q_u8): Likewise.
4727 (vqtbx1_s8): Use renamed qtbx1 RTL pattern.
4728 (vqtbx1_u8): Likewise.
4729 (vqtbx1_p8): Likewise.
4730 (vqtbx1q_s8): Likewise.
4731 (vqtbx1q_u8): Likewise.
4732 (vqtbx1q_p8): Likewise.
4733 (vtbl1_s8): Use renamed qtbl1 RTL pattern.
4734 (vtbl1_u8): Likewise.
4735 (vtbl1_p8): Likewise.
4736 (vtbl2_s8): Likewise
4737 (vtbl2_u8): Likewise.
4738 (vtbl2_p8): Likewise.
4739 (vtbl3_s8): Use renamed qtbl2 RTL pattern.
4740 (vtbl3_u8): Likewise.
4741 (vtbl3_p8): Likewise.
4742 (vtbl4_s8): Likewise.
4743 (vtbl4_u8): Likewise.
4744 (vtbl4_p8): Likewise.
4745 (vtbx2_s8): Use renamed qtbx2 RTL pattern.
4746 (vtbx2_u8): Likewise.
4747 (vtbx2_p8): Likewise.
4748 (vqtbl2_s8): Use renamed qtbl2 RTL pattern.
4749 (vqtbl2_u8): Likewise.
4750 (vqtbl2_p8): Likewise.
4751 (vqtbl2q_s8): Likewise.
4752 (vqtbl2q_u8): Likewise.
4753 (vqtbl2q_p8): Likewise.
4754 (vqtbx2_s8): Use renamed qtbx2 RTL pattern.
4755 (vqtbx2_u8): Likewise.
4756 (vqtbx2_p8): Likewise.
4757 (vqtbx2q_s8): Likewise.
4758 (vqtbx2q_u8): Likewise.
4759 (vqtbx2q_p8): Likewise.
4760 (vtbx4_s8): Likewise.
4761 (vtbx4_u8): Likewise.
4762 (vtbx4_p8): Likewise.
4763
4764 2021-07-20 Uroš Bizjak <ubizjak@gmail.com>
4765
4766 PR target/100182
4767 * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
4768 Remove.
4769 (define_peephole2 atomic_loaddi_fpu): Ditto.
4770
4771 2021-07-20 Kito Cheng <kito.cheng@sifive.com>
4772
4773 * config.gcc (riscv*-*-*): Detect which python is available.
4774
4775 2021-07-20 Kewen Lin <linkw@linux.ibm.com>
4776
4777 * config/rs6000/vsx.md (mulhs_<mode>): Rename to...
4778 (smul<mode>3_highpart): ... this.
4779 (mulhu_<mode>): Rename to...
4780 (umul<mode>3_highpart): ... this.
4781 * config/rs6000/rs6000-builtin.def (MULHS_V2DI, MULHS_V4SI,
4782 MULHU_V2DI, MULHU_V4SI): Adjust.
4783
4784 2021-07-20 Kewen Lin <linkw@linux.ibm.com>
4785
4786 PR tree-optimization/100696
4787 * internal-fn.c (first_commutative_argument): Add info for IFN_MULH.
4788 * internal-fn.def (IFN_MULH): New internal function.
4789 * tree-vect-patterns.c (vect_recog_mulhs_pattern): Add support to
4790 recog normal multiply highpart as IFN_MULH.
4791 * config/i386/i386.c (ix86_add_stmt_cost): Adjust for combined
4792 function CFN_MULH.
4793
4794 2021-07-19 Indu Bhagat <indu.bhagat@oracle.com>
4795
4796 * config/elfos.h (CTF_DEBUGGING_INFO): New definition.
4797 (BTF_DEBUGGING_INFO): Likewise.
4798 * doc/tm.texi.in: Document the new macros.
4799 * doc/tm.texi: Regenerated.
4800 * toplev.c: Guard initialization of debug hooks.
4801
4802 2021-07-19 Indu Bhagat <indu.bhagat@oracle.com>
4803
4804 * flags.h (ctf_debuginfo_p): New function declaration.
4805 * opts.c (ctf_debuginfo_p): New function definition.
4806
4807 2021-07-19 Andrew Stubbs <ams@codesourcery.com>
4808
4809 PR target/100208
4810 * config/gcn/gcn-hsa.h (DRIVER_SELF_SPECS): New.
4811 (ASM_SPEC): Set -mattr for xnack and sram-ecc.
4812 * config/gcn/gcn-opts.h (enum sram_ecc_type): New.
4813 * config/gcn/gcn-valu.md: Add a warning comment.
4814 * config/gcn/gcn.c (gcn_option_override): Add "sorry" for -mxnack.
4815 (output_file_start): Add xnack and sram-ecc state to ".amdgcn_target".
4816 * config/gcn/gcn.md: Add a warning comment.
4817 * config/gcn/gcn.opt: Add -mxnack and -msram-ecc.
4818 * config/gcn/mkoffload.c (EF_AMDGPU_MACH_AMDGCN_GFX908): Remove
4819 SRAM-ECC flag.
4820 (EF_AMDGPU_XNACK): New.
4821 (EF_AMDGPU_SRAM_ECC): New.
4822 (elf_flags): New.
4823 (copy_early_debug_info): Use elf_flags.
4824 (main): Handle -mxnack and -msram-ecc options.
4825 * doc/invoke.texi: Document -mxnack and -msram-ecc.
4826
4827 2021-07-19 Andrew Pinski <apinski@marvell.com>
4828
4829 PR target/101205
4830 * config/aarch64/aarch64.md (csneg3_uxtw_insn): Rename to ...
4831 (*cs<neg_not_cs>3_uxtw_insn4): and extend to NEG_NOT.
4832
4833 2021-07-19 Richard Biener <rguenther@suse.de>
4834
4835 PR tree-optimization/101505
4836 * tree-vect-patterns.c (vect_determine_precisions): Walk
4837 PHIs also for loop vectorization.
4838
4839 2021-07-19 Richard Biener <rguenther@suse.de>
4840
4841 * gimple.h (gimple_expr_type): Remove.
4842 * doc/gimple.texi: Remove gimple_expr_type documentation.
4843
4844 2021-07-19 Richard Biener <rguenther@suse.de>
4845
4846 * tree-ssa-sccvn.c (vn_reference_eq): Handle NULL vr->type.
4847 (ao_ref_init_from_vn_reference): Likewise.
4848 (fully_constant_reference): Likewise.
4849 (vn_reference_lookup_call): Do not set vr->type to random
4850 values.
4851 * tree-ssa-pre.c (compute_avail): Do not try to PRE calls
4852 without a value.
4853 * tree-vect-generic.c (expand_vector_piecewise): Pass in
4854 whether we expanded parallel.
4855 (expand_vector_parallel): Adjust.
4856 (expand_vector_addition): Likewise.
4857 (expand_vector_comparison): Likewise.
4858 (expand_vector_operation): Likewise.
4859 (expand_vector_scalar_condition): Likewise.
4860 (expand_vector_conversion): Likewise.
4861
4862 2021-07-19 Richard Biener <rguenther@suse.de>
4863
4864 * tree-vrp.c (register_edge_assert_for_2): Use the
4865 type from the LHS.
4866 (vrp_folder::fold_predicate_in): Likewise.
4867 * vr-values.c (gimple_assign_nonzero_p): Likewise.
4868 (vr_values::extract_range_from_comparison): Likewise.
4869 (vr_values::extract_range_from_ubsan_builtin): Use the
4870 type of the first operand.
4871 (vr_values::extract_range_basic): Push down type
4872 computation, use the appropriate LHS.
4873 (vr_values::extract_range_from_assignment): Use the
4874 type of the LHS.
4875
4876 2021-07-18 H.J. Lu <hjl.tools@gmail.com>
4877
4878 PR target/101492
4879 * common/config/i386/i386-common.c (ix86_handle_option): For
4880 -mgeneral-regs-only, enable the GPR only instructions which are
4881 enabled implicitly by SSE ISAs unless they have been disabled
4882 explicitly.
4883
4884 2021-07-18 H.J. Lu <hjl.tools@gmail.com>
4885
4886 PR target/101495
4887 * config/i386/i386.c (ix86_check_avx_upper_stores): Moved before
4888 ix86_avx_u128_mode_needed.
4889 (ix86_avx_u128_mode_needed): Return AVX_U128_DIRTY if callee
4890 returns AVX register.
4891
4892 2021-07-17 Jan Hubicka <hubicka@ucw.cz>
4893
4894 * tree-ssa-structalias.c (handle_rhs_call): Support EAF_NOT_RETURNED.
4895 (handle_const_call): Liekise
4896 (handle_pure_call): Liekise
4897
4898 2021-07-17 Andrew MacLeod <amacleod@redhat.com>
4899
4900 PR tree-optimization/96542
4901 * range-op.cc (range_operator::wi_fold_in_parts): New.
4902 (range_operator::fold_range): Call wi_fold_in_parts.
4903 (operator_lshift::wi_fold): Fix broken lshift by [0,0].
4904 * range-op.h (wi_fold_in_parts): Add prototype.
4905
4906 2021-07-16 David Malcolm <dmalcolm@redhat.com>
4907
4908 * doc/analyzer.texi: Add __analyzer_dump_state.
4909
4910 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
4911
4912 * config/rs6000/rbtree.c: New file.
4913 * config/rs6000/rbtree.h: New file.
4914
4915 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
4916
4917 * config/rs6000/rs6000-gen-builtins.c (restriction): New enum.
4918 (typeinfo): Add restr field.
4919 (match_bracketed_pair): New function.
4920 (match_const_restriction): Implement.
4921
4922 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
4923
4924 * config/rs6000/rs6000-gen-builtins.c (match_basetype): Implement.
4925
4926 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
4927
4928 * config/rs6000/rs6000-gen-builtins.c (void_status): New enum.
4929 (basetype): Likewise.
4930 (typeinfo): Likewise.
4931 (handle_pointer): New function.
4932 (match_basetype): New stub function.
4933 (match_const_restriction): Likewise.
4934 (match_type): New function.
4935
4936 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
4937
4938 * config/rs6000/rs6000-gen-builtins.c (consume_whitespace): New
4939 function.
4940 (advance_line): Likewise.
4941 (safe_inc_pos): Likewise.
4942 (match_identifier): Likewise.
4943 (match_integer): Likewise.
4944 (match_to_right_bracket): Likewise.
4945
4946 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
4947
4948 * config/rs6000/rs6000-gen-builtins.c (bif_file): New variable.
4949 (ovld_file): Likewise.
4950 (header_file): Likewise.
4951 (init_file): Likewise.
4952 (defines_file): Likewise.
4953 (pgm_path): Likewise.
4954 (bif_path): Likewise.
4955 (ovld_path): Likewise.
4956 (header_path): Likewise.
4957 (init_path): Likewise.
4958 (defines_path): Likewise.
4959 (LINELEN): New macro.
4960 (linebuf): New variable.
4961 (line): Likewise.
4962 (pos): Likewise.
4963 (diag): Likewise.
4964 (bif_diag): New function.
4965 (ovld_diag): Likewise.
4966
4967 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
4968
4969 * config/rs6000/rs6000-builtin-new.def: New.
4970 * config/rs6000/rs6000-overload.def: New.
4971
4972 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
4973
4974 * config/rs6000/rs6000-gen-builtins.c: New.
4975
4976 2021-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
4977
4978 * Makefile.in (EXTRA_GTYPE_DEPS): New variable.
4979 (s-gtype): Depend on EXTRA_GTYPE_DEPS.
4980 * gengtype-state.c (state_writer::write_state_file_list): Add a
4981 parameter to the fileslist expression for the number of build
4982 headers to scan.
4983 (read_state_files_list): Detect build headers and strip the
4984 initial "./" or ".\" from their names.
4985 * gengtype.c (build_headers): New global variable.
4986 (num_build_headers): Likewise.
4987 (open_base_files): Emit #include for each build header.
4988 (main): Detect and count build headers.
4989 * gengtype.h (build_headers): New extern variable.
4990 (num_build_headers): Likewise.
4991
4992 2021-07-16 Richard Biener <rguenther@suse.de>
4993
4994 * gimple-ssa-store-merging.c (verify_symbolic_number_p): Use
4995 the type of the LHS.
4996 (find_bswap_or_nop_1): Likewise.
4997 (find_bswap_or_nop): Likewise.
4998 * tree-vectorizer.h (vect_get_smallest_scalar_type): Adjust
4999 prototype.
5000 * tree-vect-data-refs.c (vect_get_smallest_scalar_type):
5001 Remove unused parameters, pass in the scalar type. Fix
5002 internal store function handling.
5003 * tree-vect-stmts.c (vect_analyze_stmt): Remove assert.
5004 (vect_get_vector_types_for_stmt): Move down check for
5005 existing vector stmt after we've determined a scalar type.
5006 Pass down the used scalar type to vect_get_smallest_scalar_type.
5007 * tree-vect-generic.c (expand_vector_condition): Use
5008 the type of the LHS.
5009 (expand_vector_scalar_condition): Likewise.
5010 (expand_vector_operations_1): Likewise.
5011 * tree-vect-patterns.c (vect_widened_op_tree): Likewise.
5012 (vect_recog_dot_prod_pattern): Likewise.
5013 (vect_recog_sad_pattern): Likewise.
5014 (vect_recog_widen_op_pattern): Likewise.
5015 (vect_recog_widen_sum_pattern): Likewise.
5016 (vect_recog_mixed_size_cond_pattern): Likewise.
5017
5018 2021-07-16 Jan Hubicka <hubicka@ucw.cz>
5019
5020 * ipa-modref.c (struct escape_entry): Use eaf_fleags_t.
5021 (dump_eaf_flags): Dump EAF_NOT_RETURNED
5022 (eaf_flags_useful_p): Use eaf_fleags_t; handle const functions
5023 and EAF_NOT_RETURNED.
5024 (modref_summary::useful_p): Likewise.
5025 (modref_summary_lto::useful_p): Likewise.
5026 (struct) modref_summary_lto: Use eaf_fleags_t.
5027 (deref_flags): Handle EAF_NOT_RETURNED.
5028 (struct escape_point): Use min_flags.
5029 (modref_lattice::init): Add EAF_NOT_RETURNED.
5030 (merge_call_lhs_flags): Ignore EAF_NOT_RETURNED functions
5031 (analyze_ssa_name_flags): Clear EAF_NOT_RETURNED on return;
5032 handle call flags.
5033 (analyze_parms): Also analyze const functions; update conition on
5034 flags usefulness.
5035 (modref_write): Update streaming.
5036 (read_section): Update streaming.
5037 (remap_arg_flags): Use eaf_flags_t.
5038 (modref_merge_call_site_flags): Hanlde EAF_NOT_RETURNED.
5039 * ipa-modref.h: (eaf_flags_t): New typedef.
5040 (struct modref_summary): Use eaf_flags_t.
5041 * tree-core.h (EAF_NOT_RETURNED): New constant.
5042
5043 2021-07-16 Richard Biener <rguenther@suse.de>
5044
5045 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Use
5046 the type of the LHS.
5047 (gimple_assign_nonnegative_warnv_p): Likewise.
5048 (gimple_call_nonnegative_warnv_p): Likewise. Return false
5049 if the call has no LHS.
5050 * gimple.c (gimple_could_trap_p_1): Use the type of the LHS.
5051 * tree-eh.c (stmt_could_throw_1_p): Likewise.
5052 * tree-inline.c (insert_init_stmt): Likewise.
5053 * tree-ssa-loop-niter.c (get_val_for): Likewise.
5054 * tree-outof-ssa.c (ssa_is_replaceable_p): Use the type of
5055 the def.
5056 * tree-ssa-sccvn.c (init_vn_nary_op_from_stmt): Take a
5057 gassign *. Use the type of the lhs.
5058 (vn_nary_op_lookup_stmt): Adjust.
5059 (vn_nary_op_insert_stmt): Likewise.
5060
5061 2021-07-16 Ilya Leoshkevich <iii@linux.ibm.com>
5062
5063 * config/s390/predicates.md (bras_sym_operand): Accept all
5064 functions in 64-bit mode, use UNSPEC_PLT31.
5065 (larl_operand): Use UNSPEC_PLT31.
5066 * config/s390/s390.c (s390_loadrelative_operand_p): Likewise.
5067 (legitimize_pic_address): Likewise.
5068 (s390_emit_tls_call_insn): Mark __tls_get_offset as function,
5069 use UNSPEC_PLT31.
5070 (s390_delegitimize_address): Use UNSPEC_PLT31.
5071 (s390_output_addr_const_extra): Likewise.
5072 (print_operand): Add @PLT to TLS calls, handle %K.
5073 (s390_function_profiler): Mark __fentry__/_mcount as function,
5074 use %K, use UNSPEC_PLT31.
5075 (s390_output_mi_thunk): Use only UNSPEC_GOT, use %K.
5076 (s390_emit_call): Use UNSPEC_PLT31.
5077 (s390_emit_tpf_eh_return): Mark __tpf_eh_return as function.
5078 * config/s390/s390.md (UNSPEC_PLT31): Rename from UNSPEC_PLT.
5079 (*movdi_64): Use %K.
5080 (reload_base_64): Likewise.
5081 (*sibcall_brc): Likewise.
5082 (*sibcall_brcl): Likewise.
5083 (*sibcall_value_brc): Likewise.
5084 (*sibcall_value_brcl): Likewise.
5085 (*bras): Likewise.
5086 (*brasl): Likewise.
5087 (*bras_r): Likewise.
5088 (*brasl_r): Likewise.
5089 (*bras_tls): Likewise.
5090 (*brasl_tls): Likewise.
5091 (main_base_64): Likewise.
5092 (reload_base_64): Likewise.
5093 (@split_stack_call<mode>): Likewise.
5094
5095 2021-07-16 Richard Biener <rguenther@suse.de>
5096
5097 PR tree-optimization/101467
5098 * tree-vect-stmts.c (vect_gen_while): Properly guard
5099 make_temp_ssa_name usage.
5100
5101 2021-07-16 Cooper Qu <cooper.qu@linux.alibaba.com>
5102
5103 * config.gcc: Don't use forked print-sysroot-suffix.sh and
5104 t-sysroot-suffix for C-SKY.
5105 * config/csky/print-sysroot-suffix.sh: Delete.
5106 * config/csky/t-csky-linux: Delete.
5107 * config/csky/t-sysroot-suffix: Define MULTILIB_DIRNAMES
5108 instead of CSKY_MULTILIB_DIRNAMES.
5109
5110 2021-07-16 Richard Biener <rguenther@suse.de>
5111
5112 * tree-vect-loop.c (vect_transform_cycle_phi): Correct sign
5113 conversion issues with the partial reduction of the reused
5114 vector accumulator.
5115
5116 2021-07-16 Richard Biener <rguenther@suse.de>
5117
5118 * config/i386/i386-options.c (ix86_option_override_internal): Set
5119 param_vect_partial_vector_usage to zero if not set.
5120
5121 2021-07-15 Uroš Bizjak <ubizjak@gmail.com>
5122
5123 PR target/101346
5124 * config/i386/i386.h (VALID_SSE_REG_MODE): Add TDmode.
5125 (VALID_INT_MODE_P): Add SDmode and DDmode.
5126 Add TDmode for TARGET_64BIT.
5127 (VALID_DFP_MODE_P): Remove.
5128 * config/i386/i386.c (ix86_hard_regno_mode_ok):
5129 Do not use VALID_DFP_MODE_P.
5130
5131 2021-07-15 Andrew MacLeod <amacleod@redhat.com>
5132
5133 * gimple-range-fold.cc (adjust_pointer_diff_expr): Use
5134 gimple_range_type.
5135 (fold_using_range::fold_stmt): Ditto.
5136 (fold_using_range::range_of_range_op): Ditto.
5137 (fold_using_range::range_of_phi): Ditto.
5138 (fold_using_range::range_of_call): Ditto.
5139 (fold_using_range::range_of_builtin_ubsan_call): Ditto.
5140 (fold_using_range::range_of_builtin_call): Ditto.
5141 (fold_using_range::range_of_cond_expr): Ditto.
5142 * gimple-range-fold.h (gimple_range_type): New.
5143
5144 2021-07-15 Martin Sebor <msebor@redhat.com>
5145
5146 PR middle-end/97027
5147 * tree-ssa-strlen.c (handle_assign): New function.
5148 (maybe_warn_overflow): Add argument.
5149 (nonzero_bytes_for_type): New function.
5150 (count_nonzero_bytes): Handle more tree types. Call
5151 nonzero_bytes_for_tye.
5152 (count_nonzero_bytes): Handle types.
5153 (handle_store): Handle stores from function calls.
5154 (strlen_check_and_optimize_call): Move code to handle_assign. Call
5155 it for assignments from function calls.
5156
5157 2021-07-15 David Malcolm <dmalcolm@redhat.com>
5158
5159 PR analyzer/95006
5160 PR analyzer/94713
5161 PR analyzer/94714
5162 * doc/invoke.texi: Add -Wanalyzer-use-of-uninitialized-value.
5163
5164 2021-07-15 David Malcolm <dmalcolm@redhat.com>
5165
5166 * doc/invoke.texi (-fdump-analyzer-exploded-paths): New.
5167
5168 2021-07-15 Martin Sebor <msebor@redhat.com>
5169
5170 PR c/101289
5171 PR c/97548
5172 * fold-const.c (operand_compare::operand_equal_p): Handle OEP_DECL_NAME.
5173 (operand_compare::verify_hash_value): Same.
5174 * tree-core.h (OEP_DECL_NAME): New.
5175
5176 2021-07-15 Martin Jambor <mjambor@suse.cz>
5177
5178 * profile-count.h (profile_count::value): Change the return type to
5179 uint64_t.
5180 * gimple-pretty-print.c (dump_gimple_bb_header): Adjust print
5181 statement.
5182 * tree-cfg.c (dump_function_to_file): Likewise.
5183
5184 2021-07-15 Bill Schmidt <wschmidt@linux.ibm.com>
5185
5186 PR target/101129
5187 * config/rs6000/rs6000-p8swap.c (has_part_mult): New.
5188 (rs6000_analyze_swaps): Insns containing a subreg of a mult are
5189 not swappable.
5190
5191 2021-07-15 Richard Biener <rguenther@suse.de>
5192
5193 * tree-vectorizer.h (vect_gen_while): Match up with
5194 vect_gen_while_not.
5195 * tree-vect-stmts.c (vect_gen_while): Adjust API to that
5196 of vect_gen_while_not.
5197 (vect_gen_while_not): Adjust.
5198 * tree-vect-loop-manip.c (vect_set_loop_controls_directly): Likewise.
5199
5200 2021-07-15 Aldy Hernandez <aldyh@redhat.com>
5201
5202 * gimple-range-cache.cc (non_null_ref::adjust_range): New.
5203 (ranger_cache::range_of_def): Call adjust_range.
5204 (ranger_cache::entry_range): Same.
5205 * gimple-range-cache.h (non_null_ref::adjust_range): New.
5206 * gimple-range.cc (gimple_ranger::range_of_expr): Call
5207 adjust_range.
5208 (gimple_ranger::range_on_entry): Same.
5209
5210 2021-07-15 Tamar Christina <tamar.christina@arm.com>
5211
5212 Revert:
5213 2021-07-14 Tamar Christina <tamar.christina@arm.com>
5214
5215 * config/arm/neon.md (<sup>dot_prod<vsi2qi>): Drop statements.
5216
5217 2021-07-15 Tamar Christina <tamar.christina@arm.com>
5218
5219 Revert:
5220 2021-07-14 Tamar Christina <tamar.christina@arm.com>
5221
5222 * config/aarch64/aarch64-simd-builtins.def (udot, sdot): Rename to...
5223 (sdot_prod, udot_prod): ...These.
5224 * config/aarch64/aarch64-simd.md (<sur>dot_prod<vsi2qi>): Remove.
5225 (aarch64_<sur>dot<vsi2qi>): Rename to...
5226 (<sur>dot_prod<vsi2qi>): ...This.
5227 * config/aarch64/arm_neon.h (vdot_u32, vdotq_u32, vdot_s32, vdotq_s32):
5228 Update builtins.
5229
5230 2021-07-15 Jakub Jelinek <jakub@redhat.com>
5231
5232 PR middle-end/101437
5233 * gimplify.c (gimplify_expr): Throw away volatile reads from empty
5234 types even if they have non-BLKmode TYPE_MODE.
5235
5236 2021-07-15 Richard Biener <rguenther@suse.de>
5237
5238 PR driver/101383
5239 * gcc.c (process_command): Process -gtoggle like process_options
5240 would after parsing options.
5241
5242 2021-07-15 Trevor Saunders <tbsaunde@tbsaunde.org>
5243
5244 * cfgexpand.c (expand_asm_loc): Adjust.
5245 (expand_asm_stmt): Likewise.
5246 * config/arm/aarch-common-protos.h (arm_md_asm_adjust): Likewise.
5247 * config/arm/aarch-common.c (arm_md_asm_adjust): Likewise.
5248 * config/arm/arm.c (thumb1_md_asm_adjust): Likewise.
5249 * config/avr/avr.c (avr_md_asm_adjust): Likewise.
5250 * config/cris/cris.c (cris_md_asm_adjust): Likewise.
5251 * config/i386/i386.c (ix86_md_asm_adjust): Likewise.
5252 * config/mn10300/mn10300.c (mn10300_md_asm_adjust): Likewise.
5253 * config/nds32/nds32.c (nds32_md_asm_adjust): Likewise.
5254 * config/pdp11/pdp11.c (pdp11_md_asm_adjust): Likewise.
5255 * config/rs6000/rs6000.c (rs6000_md_asm_adjust): Likewise.
5256 * config/s390/s390.c (s390_md_asm_adjust): Likewise.
5257 * config/vax/vax.c (vax_md_asm_adjust): Likewise.
5258 * config/visium/visium.c (visium_md_asm_adjust): Likewise.
5259 * doc/tm.texi: Regenerate.
5260 * target.def: Add location argument to md_asm_adjust.
5261
5262 2021-07-15 Trevor Saunders <tbsaunde@tbsaunde.org>
5263
5264 * tree-diagnostic.c (diagnostic_report_current_function): Use the
5265 diagnostic's location, not input_location.
5266
5267 2021-07-15 Trevor Saunders <tbsaunde@tbsaunde.org>
5268
5269 * cfgexpand.c (tree_conflicts_with_clobbers_p): Pass location to
5270 diagnostics.
5271 (expand_asm_stmt): Likewise.
5272
5273 2021-07-14 Peter Bergner <bergner@linux.ibm.com>
5274
5275 * config/rs6000/rs6000.c (adjacent_mem_locations): Return the lower
5276 addressed memory rtx, if any.
5277 (rs6000_split_multireg_move): Fix code formatting.
5278 Handle MMA build built-ins with operands in adjacent memory locations.
5279
5280 2021-07-14 Peter Bergner <bergner@linux.ibm.com>
5281
5282 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Move to later
5283 in the file.
5284
5285 2021-07-14 Jason Merrill <jason@redhat.com>
5286
5287 * sel-sched-ir.h (get_all_loop_exits): Use auto_vec.
5288
5289 2021-07-14 Jason Merrill <jason@redhat.com>
5290
5291 * doc/invoke.texi: -fdelete-dead-exceptions is on by default for
5292 C++.
5293
5294 2021-07-14 Tamar Christina <tamar.christina@arm.com>
5295
5296 * tree-vect-patterns.c (vect_recog_dot_prod_pattern):
5297 Remove erroneous line.
5298
5299 2021-07-14 Andrew MacLeod <amacleod@redhat.com>
5300
5301 * params.opt (param_evrp_mode): Change default.
5302
5303 2021-07-14 Tamar Christina <tamar.christina@arm.com>
5304
5305 * config/aarch64/aarch64-simd-builtins.def (udot, sdot): Rename to...
5306 (sdot_prod, udot_prod): ...These.
5307 * config/aarch64/aarch64-simd.md (<sur>dot_prod<vsi2qi>): Remove.
5308 (aarch64_<sur>dot<vsi2qi>): Rename to...
5309 (<sur>dot_prod<vsi2qi>): ...This.
5310 * config/aarch64/arm_neon.h (vdot_u32, vdotq_u32, vdot_s32, vdotq_s32):
5311 Update builtins.
5312
5313 2021-07-14 Tamar Christina <tamar.christina@arm.com>
5314
5315 * config/arm/neon.md (<sup>dot_prod<vsi2qi>): Drop statements.
5316
5317 2021-07-14 Tamar Christina <tamar.christina@arm.com>
5318
5319 * doc/sourcebuild.texi (arm_v8_2a_i8mm_neon_hw): Document.
5320
5321 2021-07-14 Tamar Christina <tamar.christina@arm.com>
5322
5323 * config/arm/neon.md (usdot_prod<vsi2qi>): New.
5324
5325 2021-07-14 Tamar Christina <tamar.christina@arm.com>
5326
5327 * config/aarch64/aarch64-simd.md (aarch64_usdot<vsi2qi>): Rename to...
5328 (usdot_prod<vsi2qi>): ... This.
5329 * config/aarch64/aarch64-simd-builtins.def (usdot): Rename to...
5330 (usdot_prod): ...This.
5331 * config/aarch64/arm_neon.h (vusdot_s32, vusdotq_s32): Likewise.
5332 * config/aarch64/aarch64-sve.md (@aarch64_<sur>dot_prod<vsi2qi>):
5333 Rename to...
5334 (@<sur>dot_prod<vsi2qi>): ...This.
5335 * config/aarch64/aarch64-sve-builtins-base.cc
5336 (svusdot_impl::expand): Use it.
5337
5338 2021-07-14 Tamar Christina <tamar.christina@arm.com>
5339
5340 * optabs.def (usdot_prod_optab): New.
5341 * doc/md.texi: Document it and clarify other dot prod optabs.
5342 * optabs-tree.h (enum optab_subtype): Add optab_vector_mixed_sign.
5343 * optabs-tree.c (optab_for_tree_code): Support usdot_prod_optab.
5344 * optabs.c (expand_widen_pattern_expr): Likewise.
5345 * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
5346 * tree-vect-loop.c (vectorizable_reduction): Query dot-product kind.
5347 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Take optional
5348 optab subtype.
5349 (vect_widened_op_tree): Optionally ignore
5350 mismatch types.
5351 (vect_recog_dot_prod_pattern): Support usdot_prod_optab.
5352
5353 2021-07-14 H.J. Lu <hjl.tools@gmail.com>
5354
5355 PR target/101395
5356 * config/i386/driver-i386.c (host_detect_local_cpu): Check
5357 "arch [32|64]" and "tune [32|64]" for 32-bit and 64-bit codegen.
5358 Enable UINTR only for 64-bit codegen.
5359 * config/i386/i386-options.c
5360 (ix86_option_override_internal::DEF_PTA): Skip PTA_UINTR if not
5361 in 64-bit mode.
5362 * config/i386/i386.h (ARCH_ARG): New.
5363 (CC1_CPU_SPEC): Pass "[arch|tune] 32" for 32-bit codegen and
5364 "[arch|tune] 64" for 64-bit codegen.
5365
5366 2021-07-14 Richard Biener <rguenther@suse.de>
5367
5368 PR tree-optimization/101445
5369 * tree-vect-stmts.c (vectorizable_load): Do the gap adjustment
5370 of the IV in the correct direction for negative stride
5371 accesses.
5372
5373 2021-07-14 Jakub Jelinek <jakub@redhat.com>
5374
5375 PR go/101407
5376 * godump.c (godump_str_hash): New type.
5377 (godump_container::pot_dummy_types): Use string_hash instead of
5378 ptr_hash in the hash_set.
5379
5380 2021-07-14 Richard Biener <rguenther@suse.de>
5381
5382 * tree-vect-loop.c (vect_find_reusable_accumulator): Handle
5383 vector types where the old vector type has a multiple of
5384 the new vector type elements.
5385 (vect_create_partial_epilog): New function, split out from...
5386 (vect_create_epilog_for_reduction): ... here.
5387 (vect_transform_cycle_phi): Reduce the re-used accumulator
5388 to the new vector type.
5389
5390 2021-07-14 Alexandre Oliva <oliva@adacore.com>
5391
5392 * tree-ssa-alias.c (attr_fnspec::verify): Fix index in
5393 non-'t'-sized arg check.
5394
5395 2021-07-14 Alexandre Oliva <oliva@adacore.com>
5396
5397 * tree-cfg.c (cleanup_dead_labels_eh): Update
5398 post_landing_pad label upon change of landing pad block's
5399 primary label.
5400 (cleanup_dead_labels): Check that a removed label is not that
5401 of a landing pad.
5402
5403 2021-07-13 Jonathan Wright <jonathan.wright@arm.com>
5404
5405 * combine.c (combine_simplify_rtx): Add vec_select -> subreg
5406 simplification.
5407 * config/aarch64/aarch64.md (*zero_extend<SHORT:mode><GPI:mode>2_aarch64):
5408 Add Neon to general purpose register case for zero-extend
5409 pattern.
5410 * config/arm/vfp.md (*arm_movsi_vfp): Remove "*" from *t -> r
5411 case to prevent some cases opting to go through memory.
5412 * cse.c (fold_rtx): Add vec_select -> subreg simplification.
5413 * rtl.c (rtvec_series_p): Define predicate to determine
5414 whether a vector contains a linear series of integers.
5415 * rtl.h (rtvec_series_p): Define.
5416 * rtlanal.c (vec_series_lowpart_p): Define predicate to
5417 determine if a vector selection is equivalent to the low part
5418 of the vector.
5419 * rtlanal.h (vec_series_lowpart_p): Define.
5420 * simplify-rtx.c (simplify_context::simplify_binary_operation_1):
5421 Add vec_select -> subreg simplification.
5422
5423 2021-07-13 Paul A. Clarke <pc@us.ibm.com>
5424
5425 * config/rs6000/smmintrin.h (_mm_testz_si128, _mm_testc_si128,
5426 _mm_testnzc_si128, _mm_test_all_ones, _mm_test_all_zeros,
5427 _mm_test_mix_ones_zeros): New.
5428
5429 2021-07-13 Roger Sayle <roger@nextmovesoftware.com>
5430 Richard Biener <rguenther@suse.de>
5431
5432 * gimple.c (gimple_could_trap_p_1): Make S argument a
5433 "const gimple*". Preserve constness in call to
5434 gimple_asm_volatile_p.
5435 (gimple_could_trap_p): Make S argument a "const gimple*".
5436 * gimple.h (gimple_could_trap_p_1, gimple_could_trap_p):
5437 Update function prototypes.
5438
5439 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
5440
5441 * tree-vectorizer.h (vect_reusable_accumulator): New structure.
5442 (_loop_vec_info::main_loop_edge): New field.
5443 (_loop_vec_info::skip_main_loop_edge): Likewise.
5444 (_loop_vec_info::skip_this_loop_edge): Likewise.
5445 (_loop_vec_info::reusable_accumulators): Likewise.
5446 (_stmt_vec_info::reduc_scalar_results): Likewise.
5447 (_stmt_vec_info::reused_accumulator): Likewise.
5448 (vect_get_main_loop_result): Declare.
5449 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
5450 reduc_scalar_inputs.
5451 (vec_info::free_stmt_vec_info): Free reduc_scalar_inputs.
5452 * tree-vect-loop-manip.c (vect_get_main_loop_result): New function.
5453 (vect_do_peeling): Fill an epilogue loop's main_loop_edge,
5454 skip_main_loop_edge and skip_this_loop_edge fields.
5455 * tree-vect-loop.c (INCLUDE_ALGORITHM): Define.
5456 (vect_emit_reduction_init_stmts): New function.
5457 (get_initial_def_for_reduction): Use it.
5458 (get_initial_defs_for_reduction): Likewise. Change the vinfo
5459 parameter to a loop_vec_info.
5460 (vect_create_epilog_for_reduction): Store the scalar results
5461 in the reduc_info. If an epilogue loop is reusing an accumulator
5462 from the main loop, and if the epilogue loop can also be skipped,
5463 try to place the reduction code in the join block. Record
5464 accumulators that could potentially be reused by epilogue loops.
5465 (vect_transform_cycle_phi): When vectorizing epilogue loops,
5466 try to reuse accumulators from the main loop. Record the initial
5467 value in reduc_info for non-SLP reductions too.
5468
5469 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
5470
5471 * tree-vect-loop.c (get_initial_def_for_reduction): Remove
5472 adjustment handling. Take the neutral value as an argument,
5473 in place of the code argument.
5474 (vect_transform_cycle_phi): Update accordingly. Handle the
5475 initial values of cond reductions separately from code reductions.
5476 Choose the adjustment here rather than in
5477 get_initial_def_for_reduction. Sink the splat of vec_initial_def.
5478
5479 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
5480
5481 * tree-vect-loop.c (neutral_op_for_slp_reduction): Replace with...
5482 (neutral_op_for_reduction): ...this, providing a more general
5483 interface.
5484 (vect_create_epilog_for_reduction): Update accordingly.
5485 (vectorizable_reduction): Likewise.
5486 (vect_transform_cycle_phi): Likewise.
5487
5488 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
5489
5490 * tree-vect-loop.c (get_initial_def_for_reduction): Take the
5491 reduc_info instead of the original stmt_vec_info.
5492 (vect_transform_cycle_phi): Update accordingly.
5493
5494 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
5495
5496 * tree-vect-loop.c (get_initial_defs_for_reduction): Take the
5497 reduc_info as an additional parameter.
5498 (vect_transform_cycle_phi): Update accordingly.
5499
5500 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
5501
5502 * tree-vectorizer.h: Include tree-ssa-operands.h.
5503 (vect_phi_initial_value): New function.
5504 * tree-vect-loop.c (neutral_op_for_slp_reduction): Use it.
5505 (get_initial_defs_for_reduction, info_for_reduction): Likewise.
5506 (vect_create_epilog_for_reduction, vectorizable_reduction): Likewise.
5507 (vect_transform_cycle_phi, vectorizable_induction): Likewise.
5508
5509 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
5510
5511 * tree-vect-loop.c (vect_create_epilog_for_reduction): Convert
5512 the phi results to vectype after creating them. Remove later
5513 conversion code that thus becomes redundant.
5514
5515 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
5516
5517 * tree-vect-loop.c (vect_create_epilog_for_reduction): Replace
5518 the new_phis vector with a reduc_inputs vector. Combine handling
5519 of reduction chains and ncopies > 1.
5520
5521 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
5522
5523 * tree-vect-loop.c (vect_create_epilog_for_reduction): Truncate
5524 scalar_results to group_size elements after reducing down from
5525 N*group_size elements. Construct an array_slice of the live-out
5526 stmts and assert that there is one stmt per scalar result.
5527
5528 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
5529
5530 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
5531 nested_in_vect_loop and use double_reduc everywhere. Remove dead
5532 assignment to "loop".
5533
5534 2021-07-13 Richard Sandiford <richard.sandiford@arm.com>
5535
5536 * internal-fn.c (vectorized_internal_fn_supported_p): Handle
5537 vector types first. For scalar types, consider both the preferred
5538 vector mode and the alternative vector modes.
5539 * optabs-query.c (can_vec_mask_load_store_p): Use the same
5540 structure as above, in particular using related_vector_mode
5541 for modes provided by autovectorize_vector_modes.
5542
5543 2021-07-13 Jakub Jelinek <jakub@redhat.com>
5544 Richard Biener <rguenther@suse.de>
5545
5546 PR tree-optimization/101419
5547 * tree-pass.h (PROP_objsz): Define.
5548 (make_pass_early_object_sizes): Declare.
5549 * passes.def (pass_all_early_optimizations): Rename pass_object_sizes
5550 there to pass_early_object_sizes, drop parameter.
5551 (pass_all_optimizations): Move pass_object_sizes right after pass_ccp,
5552 drop parameter, move pass_post_ipa_warn right after that.
5553 * tree-object-size.c (pass_object_sizes::execute): Rename to...
5554 (object_sizes_execute): ... this. Add insert_min_max_p argument.
5555 (pass_data_object_sizes): Move after object_sizes_execute.
5556 (pass_object_sizes): Likewise. In execute method call
5557 object_sizes_execute, drop set_pass_param method and insert_min_max_p
5558 non-static data member and its initializer in the ctor.
5559 (pass_data_early_object_sizes, pass_early_object_sizes,
5560 make_pass_early_object_sizes): New.
5561 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use
5562 (cfun->curr_properties & PROP_objsz) instead of cfun->after_inlining.
5563
5564 2021-07-13 Kito Cheng <kito.cheng@sifive.com>
5565
5566 PR target/101275
5567 * config/riscv/constraints.md ("S"): Update description and remove
5568 @internal.
5569 * doc/md.texi (Machine Constraints): Document the 'S' constraints
5570 for RISC-V.
5571
5572 2021-07-13 Richard Biener <rguenther@suse.de>
5573
5574 Revert:
5575 2021-07-12 Richard Biener <rguenther@suse.de>
5576
5577 * tree-vect-slp.c (vect_slp_region): Show the number of
5578 SLP graph entries in the optimization message.
5579
5580 2021-07-13 Michael Meissner <meissner@linux.ibm.com>
5581
5582 * config/rs6000/altivec.md (xxspltiw_v4sf): Change local variable
5583 value to to long.
5584 * config/rs6000/rs6000-protos.h (rs6000_const_f32_to_i32): Change
5585 return type to long.
5586 * config/rs6000/rs6000.c (rs6000_const_f32_to_i32): Change return
5587 type to long.
5588
5589 2021-07-12 Andrew MacLeod <amacleod@redhat.com>
5590
5591 * gimple-range-fold.cc (fold_using_range::range_of_builtin_ubsan_call):
5592 Query relation between the 2 operands and use it.
5593
5594 2021-07-12 Sergei Trofimovich <siarheit@google.com>
5595
5596 * doc/cfg.texi: Fix s/ei_safe_safe/ei_safe_edge/ typo.
5597
5598 2021-07-12 Uroš Bizjak <ubizjak@gmail.com>
5599
5600 PR target/101424
5601 * config/i386/predicates.md (vec_setm_sse41_operand):
5602 Rename from vec_setm_operand.
5603 (vec_setm_avx2_operand): New predicate.
5604 * config/i386/sse.md (vec_set<V_128:mode>): Use V_128 mode iterator.
5605 Use vec_setm_sse41_operand as operand 2 predicate.
5606 (vec_set<V_256_512:mode): New expander.
5607 * config/i386/mmx.md (vec_setv2hi): Use vec_setm_sse41_operand
5608 as operand 2 predicate.
5609
5610 2021-07-12 Andrew MacLeod <amacleod@redhat.com>
5611
5612 PR tree-optimization/101335
5613 * range-op.cc (operator_cast::lhs_op1_relation): Delete.
5614
5615 2021-07-12 Andrew Pinski <apinski@marvell.com>
5616
5617 * tree-ssa-phiopt.c (match_simplify_replacement): Move
5618 insert of the sequence before the movement of the
5619 statement. Check if to see if the statement is used
5620 outside of the original phi to see if we should move it.
5621
5622 2021-07-12 Richard Biener <rguenther@suse.de>
5623
5624 * dump-context.h (debug_dump_context::debug_dump_context):
5625 Add FILE * parameter defaulted to stderr.
5626 * dumpfile.c (debug_dump_context::debug_dump_context): Adjust.
5627 * tree-vect-slp.c (dot_slp_tree): New functions.
5628
5629 2021-07-12 Richard Biener <rguenther@suse.de>
5630
5631 PR tree-optimization/101373
5632 * tree-ssa-pre.c (prune_clobbered_mems): Also prune trapping
5633 references when the BB may not return.
5634 (compute_avail): Pass in the function we're working on and
5635 replace cfun references with it. Externally throwing
5636 const calls also possibly terminate the function.
5637 (pass_pre::execute): Pass down the function we're working on.
5638 * gcse.c (compute_hash_table_work): Externally throwing
5639 const/pure calls also need record_last_mem_set_info.
5640 * postreload-gcse.c (record_opr_changes): Looping or externally
5641 throwing const/pure calls also need record_last_mem_set_info.
5642
5643 2021-07-12 Uroš Bizjak <ubizjak@gmail.com>
5644
5645 * recog.c (memory_address_addr_space_p): Change the type to bool.
5646 Return true/false instead of 1/0.
5647 (offsettable_memref_p): Ditto.
5648 (offsettable_nonstrict_memref_p): Ditto.
5649 (offsettable_address_addr_space_p): Ditto.
5650 Change the type of addressp indirect function to bool.
5651 * recog.h (memory_address_addr_space_p): Change the type to bool.
5652 (strict_memory_address_addr_space_p): Ditto.
5653 (offsettable_memref_p): Ditto.
5654 (offsettable_nonstrict_memref_p): Ditto.
5655 (offsettable_address_addr_space_p): Ditto.
5656 * reload.c (maybe_memory_address_addr_space_p): Ditto.
5657 (strict_memory_address_addr_space_p): Change the type to bool.
5658 Return true/false instead of 1/0.
5659 (maybe_memory_address_addr_space_p): Change the type to bool.
5660
5661 2021-07-12 Richard Biener <rguenther@suse.de>
5662
5663 * tree-vect-slp.c (vect_slp_region): Show the number of
5664 SLP graph entries in the optimization message.
5665
5666 2021-07-12 Richard Biener <rguenther@suse.de>
5667
5668 PR tree-optimization/101394
5669 * tree-ssa-pre.c (do_pre_regular_insertion): Avoid inserting
5670 copies from abnormals for a full redundancy.
5671
5672 2021-07-12 Richard Biener <rguenther@suse.de>
5673
5674 PR middle-end/101423
5675 * gimple.c (gimple_could_trap_p_1): Internal function calls
5676 do not trap.
5677 * tree-eh.c (tree_could_trap_p): Likewise.
5678
5679 2021-07-12 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
5680
5681 PR target/66791
5682 * config/arm/arm_neon.h (vmul_n_u32): Replace call to builtin with
5683 __a * __b.
5684 (vmulq_n_u32): Likewise.
5685 (vmul_n_f32): Gate __a * __b on __FAST_MATH__.
5686 (vmulq_n_f32): Likewise.
5687 (vmul_n_f16): Likewise.
5688 (vmulq_n_f16): Likewise.
5689
5690 2021-07-12 Martin Liska <mliska@suse.cz>
5691
5692 PR sanitizer/101425
5693 * gcc.c (check_offload_target_name): Call
5694 candidates_list_and_hint only if we have a candidate.
5695
5696 2021-07-12 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
5697
5698 PR target/98435
5699 * config/arm/neon.md (vec_init): Move to ...
5700 * config/arm/vec-common.md (vec_init): ... here.
5701 Change the pattern's mode to VDQX and gate it on VALID_MVE_MODE.
5702
5703 2021-07-12 Roger Sayle <roger@nextmovesoftware.com>
5704
5705 PR tree-optimization/101403
5706 * match.pd ((T)bswap(X)>>C): Correctly handle cases where
5707 signedness of the shift is not the same as the signedness of
5708 the type extension.
5709
5710 2021-07-09 Roger Sayle <roger@nextmovesoftware.com>
5711 Uroš Bizjak <ubizjak@gmail.com>
5712
5713 * config/i386/i386.md (*divmodsi4_const): Optimize SImode
5714 divmod of a constant numerator with new define_insn_and_split.
5715
5716 2021-07-09 Iain Sandoe <iain@sandoe.co.uk>
5717
5718 PR target/100152
5719 * config/i386/i386-expand.c (ix86_expand_call): If a call is
5720 to a non-local-binding, or local but to a public symbol, then
5721 assume that it might be indirected via the lazy symbol binder.
5722 Mark R10 and R10 as clobbered in that case.
5723
5724 2021-07-09 Eric Botcazou <ebotcazou@adacore.com>
5725
5726 PR target/101377
5727 * gcc.c (ASM_DEBUG_DWARF_OPTION): Set again to --gdwarf2 in
5728 the case where HAVE_AS_WORKING_DWARF_N_FLAG is not defined
5729 and HAVE_LD_BROKEN_PE_DWARF5 is defined.
5730
5731 2021-07-09 Uroš Bizjak <ubizjak@gmail.com>
5732
5733 * config/i386/i386.md (*udivmodsi4_pow2_zext_1): Limit the
5734 log2 range of operands[3] to [1,31].
5735 (*udivmodsi4_pow2_zext_2): Ditto. Correct insn RTX pattern.
5736
5737 2021-07-09 Sergei Trofimovich <siarheit@google.com>
5738
5739 * doc/md.texi: Don't split @smallexample in multiple @groups.
5740
5741 2021-07-09 Sergei Trofimovich <siarheit@google.com>
5742
5743 * doc/md.texi: Add missing 'see' word.
5744
5745 2021-07-09 Andrew Pinski <apinski@marvell.com>
5746
5747 * tree-ssa-phiopt.c (phiopt_early_allow): Change arguments
5748 to take sequence and gimple_match_op. Accept the case where
5749 op is a SSA_NAME and one statement in the sequence.
5750 Also allow constants.
5751 (gimple_simplify_phiopt): Always pass a sequence to resimplify.
5752 Update call to phiopt_early_allow. Discard the sequence if not
5753 used.
5754
5755 2021-07-09 Xi Ruoyao <xry111@mengyan1223.wang>
5756
5757 PR target/100760
5758 PR target/100761
5759 PR target/100762
5760 * config/mips/mips.c (mips_const_insns): Use MSA_SUPPORTED_MODE_P
5761 instead of ISA_HAS_MSA.
5762 (mips_expand_vec_unpack): Likewise.
5763 (mips_expand_vector_init): Likewise.
5764
5765 2021-07-09 Kewen Lin <linkw@linux.ibm.com>
5766
5767 * config/rs6000/vsx.md (mods_<mode>): Rename to...
5768 (mod<mode>3): ... this.
5769 (modu_<mode>): Rename to...
5770 (umod<mode>3): ... this.
5771 * config/rs6000/rs6000-builtin.def (MODS_V2DI, MODS_V4SI, MODU_V2DI,
5772 MODU_V4SI): Adjust.
5773
5774 2021-07-08 Jeff Law <jeffreyalaw@gmail.com>
5775
5776 * config/h8300/shiftrotate.md (variable shifts): Expose condition
5777 code handling for the test before the loop.
5778
5779 2021-07-08 Martin Jambor <mjambor@suse.cz>
5780
5781 PR ipa/101066
5782 * ipa-sra.c (class isra_call_summary): New member
5783 m_before_any_store, initialize it in the constructor.
5784 (isra_call_summary::dump): Dump the new field.
5785 (ipa_sra_call_summaries::duplicate): Copy it.
5786 (process_scan_results): Set it.
5787 (isra_write_edge_summary): Stream it.
5788 (isra_read_edge_summary): Likewise.
5789 (param_splitting_across_edge): Only override
5790 safe_to_import_accesses if m_before_any_store is set.
5791
5792 2021-07-08 Martin Sebor <msebor@redhat.com>
5793
5794 PR bootstrap/101374
5795 * gimple-array-bounds.cc (array_bounds_checker::check_mem_ref):
5796 Use Object Size Type 0 instead of 1.
5797
5798 2021-07-08 Richard Sandiford <richard.sandiford@arm.com>
5799
5800 * tree-vect-loop.c (vectorizable_reduction): Remove always-true
5801 if condition.
5802
5803 2021-07-08 Richard Sandiford <richard.sandiford@arm.com>
5804
5805 * match.pd: Simplify an extend-operate-truncate sequence involving
5806 a POLY_INT_CST.
5807
5808 2021-07-08 Roger Sayle <roger@nextmovesoftware.com>
5809 Richard Biener <rguenther@suse.de>
5810
5811 PR tree-optimization/40210
5812 * match.pd (bswap optimizations): Simplify (bswap(x)>>C1)&C2 as
5813 (x>>C3)&C2 when possible. Simplify bswap(x)>>C1 as ((T)x)>>C2
5814 when possible. Simplify bswap(x)&C1 as (x>>C2)&C1 when 0<=C1<=255.
5815
5816 2021-07-08 Uroš Bizjak <ubizjak@gmail.com>
5817
5818 PR target/100637
5819 * config/i386/i386-expand.c (ix86_expand_sse_unpack):
5820 Handle V4QI mode.
5821 * config/i386/mmx.md (V_32): New mode iterator.
5822 (mov<V_32:mode>): Use V_32 mode iterator.
5823 (*mov<V_32:mode>_internal): Ditto.
5824 (*push<V_32:mode>2_rex64): Ditto.
5825 (*push<V_32:mode>2): Ditto.
5826 (movmisalign<V_32:mode>): Ditto.
5827 (mmx_<any_shiftrt:insn>v1si3): New insn pattern.
5828 (sse4_1_<any_extend:code>v2qiv2hi2): Ditto.
5829 (vec_unpacks_lo_v4qi): New expander.
5830 (vec_unpacks_hi_v4qi): Ditto.
5831 (vec_unpacku_lo_v4qi): Ditto.
5832 (vec_unpacku_hi_v4qi): Ditto.
5833 * config/i386/i386.h (VALID_SSE2_REG_MODE): Add V1SImode.
5834 (VALID_INT_MODE_P): Ditto.
5835
5836 2021-07-08 Michael Meissner <meissner@linux.ibm.com>
5837
5838 PR target/100809
5839 * config/rs6000/rs6000.md (udivti3): New insn.
5840 (divti3): New insn.
5841 (umodti3): New insn.
5842 (modti3): New insn.
5843
5844 2021-07-07 Martin Sebor <msebor@redhat.com>
5845
5846 PR tree-optimization/100137
5847 PR tree-optimization/99121
5848 PR tree-optimization/97027
5849 * builtins.c (access_ref::access_ref): Also set offmax.
5850 (access_ref::offset_in_range): Define new function.
5851 (access_ref::add_offset): Set offmax.
5852 (access_ref::inform_access): Handle access_none.
5853 (handle_mem_ref): Clear ostype.
5854 (compute_objsize_r): Handle ASSERT_EXPR.
5855 * builtins.h (struct access_ref): Add offmax member.
5856 * gimple-array-bounds.cc (array_bounds_checker::check_mem_ref): Use
5857 compute_objsize() and simplify.
5858
5859 2021-07-07 Peter Bergner <bergner@linux.ibm.com>
5860
5861 * config/rs6000/rs6000-call.c (mma_init_builtins): Use VSX_BUILTIN_LXVP
5862 and VSX_BUILTIN_STXVP.
5863
5864 2021-07-07 Martin Sebor <msebor@redhat.com>
5865
5866 PR target/101363
5867 * config/aarch64/aarch64.c (aarch64_simd_lane_bounds): Remove
5868 a stray %K from error_at() missed in r12-2088.
5869
5870 2021-07-07 Richard Biener <rguenther@suse.de>
5871
5872 PR tree-optimization/99728
5873 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Record
5874 aggregate copies.
5875 (mem_refs_may_alias_p): Add assert we handled aggregate
5876 copies elsewhere.
5877 (sm_seq_valid_bb): Give up when running into aggregate copies.
5878 (ref_indep_loop_p): Handle aggregate copies as never
5879 being invariant themselves but allow other refs to be
5880 disambiguated against them.
5881 (can_sm_ref_p): Do not try to apply store-motion to aggregate
5882 copies.
5883
5884 2021-07-06 Indu Bhagat <indu.bhagat@oracle.com>
5885
5886 PR debug/101283
5887 * dwarf2ctf.c (ctf_get_AT_data_member_location): Multiply by 8 to get
5888 number of bits.
5889
5890 2021-07-06 Martin Sebor <msebor@redhat.com>
5891
5892 * gimple-pretty-print.c (percent_G_format): Remove.
5893 * tree-diagnostic.c (default_tree_printer): Remove calls.
5894 * tree-pretty-print.c (percent_K_format): Remove.
5895 * tree-pretty-print.h (percent_K_format): Remove.
5896
5897 2021-07-06 Martin Sebor <msebor@redhat.com>
5898
5899 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
5900 Remove %K and use error_at.
5901 (aarch64_expand_fcmla_builtin): Same.
5902 (aarch64_expand_builtin_tme): Same.
5903 (aarch64_expand_builtin_memtag): Same.
5904 * config/arm/arm-builtins.c (arm_expand_acle_builtin): Same.
5905 (arm_expand_builtin): Same.
5906 * config/arm/arm.c (bounds_check): Same.
5907
5908 2021-07-06 Martin Sebor <msebor@redhat.com>
5909
5910 * builtins.c (warn_string_no_nul): Remove %G.
5911 (maybe_warn_for_bound): Same.
5912 (warn_for_access): Same.
5913 (check_access): Same.
5914 (check_strncat_sizes): Same.
5915 (expand_builtin_strncat): Same.
5916 (expand_builtin_strncmp): Same.
5917 (expand_builtin): Same.
5918 (expand_builtin_object_size): Same.
5919 (warn_dealloc_offset): Same.
5920 (maybe_emit_free_warning): Same.
5921 * calls.c (maybe_warn_alloc_args_overflow): Same.
5922 (maybe_warn_nonstring_arg): Same.
5923 (maybe_warn_rdwr_sizes): Same.
5924 * expr.c (expand_expr_real_1): Remove %K.
5925 * gimple-fold.c (gimple_fold_builtin_strncpy): Remove %G.
5926 (gimple_fold_builtin_strncat): Same.
5927 * gimple-ssa-sprintf.c (format_directive): Same.
5928 (handle_printf_call): Same.
5929 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Same.
5930 * gimple-ssa-warn-restrict.c (maybe_diag_overlap): Same.
5931 (maybe_diag_access_bounds): Same. Call gimple_location.
5932 (check_bounds_or_overlap): Same.
5933 * trans-mem.c (ipa_tm_scan_irr_block): Remove %K. Simplify.
5934 * tree-ssa-ccp.c (pass_post_ipa_warn::execute): Remove %G.
5935 * tree-ssa-strlen.c (maybe_warn_overflow): Same.
5936 (maybe_diag_stxncpy_trunc): Same.
5937 (handle_builtin_stxncpy_strncat): Same.
5938 (maybe_warn_pointless_strcmp): Same.
5939 * tree-ssa-uninit.c (maybe_warn_operand): Same.
5940
5941 2021-07-06 Uroš Bizjak <ubizjak@gmail.com>
5942
5943 PR target/97194
5944 * config/i386/predicates.md (vec_setm_operand): Enable
5945 register_operand for TARGET_SSE4_1.
5946 * config/i386/mmx.md (vec_setv2hi): Use vec_setm_operand
5947 as operand 2 predicate. Call ix86_expand_vector_set_var
5948 for non-constant index operand.
5949 (vec_setv4qi): Use vec_setm_mmx_operand as operand 2 predicate.
5950 Call ix86_expand_vector_set_var for non-constant index operand.
5951
5952 2021-07-06 Jeff Law <jeffreyalaw@gmail.com>
5953
5954 * config/h8300/jumpcall.md (*branch): When possible, generate
5955 the comparison in CCZN mode.
5956 * config/h8300/predicates.md (simple_memory_operand): Reject all
5957 auto-increment addressing modes.
5958
5959 2021-07-06 Iain Sandoe <iain@sandoe.co.uk>
5960
5961 PR bootstrap/100246
5962 * config/i386/i386.h (struct stringop_algs): Define a CTOR for
5963 this type.
5964
5965 2021-07-06 Richard Biener <rguenther@suse.de>
5966
5967 * doc/md.texi (vec_fmaddsub<mode>4): Document.
5968 (vec_fmsubadd<mode>4): Likewise.
5969 * optabs.def (vec_fmaddsub$a4): Add.
5970 (vec_fmsubadd$a4): Likewise.
5971 * internal-fn.def (IFN_VEC_FMADDSUB): Add.
5972 (IFN_VEC_FMSUBADD): Likewise.
5973 * tree-vect-slp-patterns.c (addsub_pattern::recognize):
5974 Refactor to handle IFN_VEC_FMADDSUB and IFN_VEC_FMSUBADD.
5975 (addsub_pattern::build): Likewise.
5976 * tree-vect-slp.c (vect_optimize_slp): CFN_VEC_FMADDSUB
5977 and CFN_VEC_FMSUBADD are not transparent for permutes.
5978 * config/i386/sse.md (vec_fmaddsub<mode>4): New expander.
5979 (vec_fmsubadd<mode>4): Likewise.
5980
5981 2021-07-06 Richard Biener <rguenther@suse.de>
5982
5983 * doc/invoke.texi (fmove-loop-stores): Document.
5984 * common.opt (fmove-loop-stores): New option.
5985 * opts.c (default_options_table): Enable -fmove-loop-stores
5986 at -O1 but not -Og.
5987 * tree-ssa-loop-im.c (pass_lim::execute): Pass
5988 flag_move_loop_stores instead of true to
5989 loop_invariant_motion_in_fun.
5990
5991 2021-07-06 Iain Sandoe <iain@sandoe.co.uk>
5992
5993 * doc/install.texi: Document --with-dsymutil.
5994
5995 2021-07-06 Andrew Pinski <apinski@marvell.com>
5996
5997 PR tree-optimization/101256
5998 * dbgcnt.def (phiopt_edge_range): New counter.
5999 * tree-ssa-phiopt.c (replace_phi_edge_with_variable):
6000 Check to make sure the new name is defined in the same
6001 bb as the conditional before duplicating range info.
6002 Also add debug counter.
6003
6004 2021-07-06 Kewen Lin <linkw@linux.ibm.com>
6005
6006 PR rtl-optimization/100328
6007 * config/i386/i386-options.c (ix86_option_override_internal):
6008 Set param_ira_consider_dup_in_all_alts to 0.
6009
6010 2021-07-06 Kewen Lin <linkw@linux.ibm.com>
6011
6012 PR rtl-optimization/100328
6013 * doc/invoke.texi (ira-consider-dup-in-all-alts): Document new
6014 parameter.
6015 * ira.c (ira_get_dup_out_num): Adjust as parameter
6016 param_ira_consider_dup_in_all_alts.
6017 * params.opt (ira-consider-dup-in-all-alts): New.
6018 * ira-conflicts.c (process_regs_for_copy): Add one parameter
6019 single_input_op_has_cstr_p.
6020 (get_freq_for_shuffle_copy): New function.
6021 (add_insn_allocno_copies): Adjust as single_input_op_has_cstr_p.
6022 * ira-int.h (ira_get_dup_out_num): Add one bool parameter.
6023
6024 2021-07-05 Jeff Law <jeffreyalaw@gmail.com>
6025
6026 * config/h8300/shiftrotate.md (shift-by-variable patterns): Update to
6027 generate condition code aware RTL directly.
6028
6029 2021-07-05 Andrew Pinski <apinski@marvell.com>
6030
6031 PR tree-optimization/101039
6032 * match.pd (A CMP 0 ? A : -A): New patterns.
6033 * tree-ssa-phiopt.c (abs_replacement): Delete function.
6034 (tree_ssa_phiopt_worker): Don't call abs_replacement.
6035 Update comment about abs_replacement.
6036
6037 2021-07-05 Andrew Pinski <apinski@marvell.com>
6038
6039 * tree-ssa-phiopt.c (gimple_simplify_phiopt):
6040 If "A ? B : C" fails to simplify, try "(!A) ? C : B".
6041
6042 2021-07-05 Andrew Pinski <apinski@marvell.com>
6043
6044 * tree-ssa-phiopt.c (match_simplify_replacement):
6045 Add early_p argument. Call gimple_simplify_phiopt
6046 instead of gimple_simplify.
6047 (tree_ssa_phiopt_worker): Update call to
6048 match_simplify_replacement and allow unconditionally.
6049 (phiopt_early_allow): New function.
6050 (gimple_simplify_phiopt): New function.
6051
6052 2021-07-05 Andrew Pinski <apinski@marvell.com>
6053
6054 PR middle-end/101237
6055 * fold-const.c (negate_expr_p): Remove call to element_mode
6056 and TREE_MODE/TREE_TYPE when calling HONOR_SIGNED_ZEROS,
6057 HONOR_SIGN_DEPENDENT_ROUNDING, and HONOR_SNANS.
6058 (fold_negate_expr_1): Likewise.
6059 (const_unop): Likewise.
6060 (fold_cond_expr_with_comparison): Likewise.
6061 (fold_binary_loc): Likewise.
6062 (fold_ternary_loc): Likewise.
6063 (tree_call_nonnegative_warnv_p): Likewise.
6064 * match.pd (-(A + B) -> (-B) - A): Likewise.
6065
6066 2021-07-05 Iain Sandoe <iain@sandoe.co.uk>
6067
6068 * configure.ac: Handle --with-dsymutil in the same way as we
6069 do for the assembler and linker. (DEFAULT_DSYMUTIL): New.
6070 Extract the type and version for the dsymutil configured or
6071 found by the default searches.
6072 * config.in: Regenerated.
6073 * configure: Regenerated.
6074 * collect2.c (do_dsymutil): Handle locating dsymutil in the
6075 same way as for the assembler and linker.
6076 * config/darwin.h (DSYMUTIL): Delete.
6077 * gcc.c: Report a configured dsymutil correctly.
6078 * exec-tool.in: Allow for dsymutil.
6079
6080 2021-07-05 Uroš Bizjak <ubizjak@gmail.com>
6081
6082 * config/i386/i386-expand.c (ix86_split_mmx_punpck):
6083 Handle V4QI and V2HI modes.
6084 (expand_vec_perm_blend): Allow 4-byte vector modes with TARGET_SSE4_1.
6085 Handle V4QI mode. Emit mmx_pblendvb32 for 4-byte modes.
6086 (expand_vec_perm_pshufb): Rewrite to use switch statemets.
6087 Handle 4-byte dual operands with TARGET_XOP and single operands
6088 with TARGET_SSSE3. Emit mmx_ppermv32 for TARGET_XOP and
6089 mmx_pshufbv4qi3 for TARGET_SSSE3.
6090 (expand_vec_perm_pblendv): Allow 4-byte vector modes with TARGET_SSE4_1.
6091 (expand_vec_perm_interleave2): Allow 4-byte vector modes.
6092 (expand_vec_perm_pshufb2): Allow 4-byte vector modes with TARGET_SSSE3.
6093 (expand_vec_perm_even_odd_1): Handle V4QI mode.
6094 (expand_vec_perm_broadcast_1): Handle V4QI mode.
6095 (ix86_vectorize_vec_perm_const): Handle V4QI mode.
6096 * config/i386/mmx.md (mmx_ppermv32): New insn pattern.
6097 (mmx_pshufbv4qi3): Ditto.
6098 (*mmx_pblendw32): Ditto.
6099 (*mmx_pblendw64): Rename from *mmx_pblendw.
6100 (mmx_punpckhbw_low): New insn_and_split pattern.
6101 (mmx_punpcklbw_low): Ditto.
6102
6103 2021-07-05 Richard Biener <rguenther@suse.de>
6104
6105 * tree-vect-loop-manip.c (vect_loop_versioning): Do not
6106 set LOOP_C_INFINITE on the vectorized loop.
6107
6108 2021-07-05 Richard Biener <rguenther@suse.de>
6109
6110 PR middle-end/101291
6111 * cfgloopmanip.c (loop_version): Set the loop copy of the
6112 versioned loop to the new loop.
6113
6114 2021-07-04 Iain Sandoe <iain@sandoe.co.uk>
6115
6116 PR target/100269
6117 * config.gcc: Ensure that Darwin biarch definitions are
6118 added before i386.h.
6119 * config/i386/darwin.h (TARGET_64BIT): Remove.
6120 (PR80556_WORKAROUND): New.
6121 (REAL_LIBGCC_SPEC): Amend to use PR80556_WORKAROUND.
6122 (DARWIN_SUBARCH_SPEC): New.
6123 * config/i386/darwin32-biarch.h (TARGET_64BIT_DEFAULT,
6124 TARGET_BI_ARCH, PR80556_WORKAROUND): New.
6125 (REAL_LIBGCC_SPEC): Remove.
6126 * config/i386/darwin64-biarch.h (TARGET_64BIT_DEFAULT,
6127 TARGET_BI_ARCH, PR80556_WORKAROUND): New.
6128 (REAL_LIBGCC_SPEC): Remove.
6129
6130 2021-07-03 H.J. Lu <hjl.tools@gmail.com>
6131
6132 PR middle-end/101294
6133 * expr.c (store_constructor): Don't use vec_duplicate on vector.
6134
6135 2021-07-02 Martin Sebor <msebor@redhat.com>
6136
6137 PR middle-end/98871
6138 PR middle-end/98512
6139 * diagnostic.c (get_any_inlining_info): New.
6140 (update_effective_level_from_pragmas): Handle inlining context.
6141 (diagnostic_enabled): Same.
6142 (diagnostic_report_diagnostic): Same.
6143 * diagnostic.h (struct diagnostic_info): Add ctor.
6144 (struct diagnostic_context): Add new member.
6145 * tree-diagnostic.c (set_inlining_locations): New.
6146 (tree_diagnostics_defaults): Set new callback pointer.
6147
6148 2021-07-02 Peter Bergner <bergner@linux.ibm.com>
6149
6150 * config/rs6000/rs6000-builtin.def (BU_MMA_PAIR_LD, BU_MMA_PAIR_ST):
6151 New macros.
6152 (__builtin_vsx_lxvp, __builtin_vsx_stxvp): New built-ins.
6153 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_mma_builtin): Expand
6154 lxvp and stxvp built-ins.
6155 (mma_init_builtins): Handle lxvp and stxvp built-ins.
6156 (builtin_function_type): Likewise.
6157 * doc/extend.texi (__builtin_vsx_lxvp, __builtin_mma_stxvp): Document.
6158
6159 2021-07-02 Jeff Law <jeffreyalaw@gmail.com>
6160
6161 * config/h8300/h8300-protos.h (compute_a_shift_cc): Accept
6162 additional argument for the code.
6163 * config/h8300/h8300.c (compute_a_shift_cc): Accept additional
6164 argument for the code. Just return if the ZN bits are useful or
6165 not rather than the old style CC_* enums.
6166 * config/h8300/shiftrotate.md (shiftqi_noscratch): Move before
6167 more generic shiftqi patterns.
6168 (shifthi_noscratch, shiftsi_noscratch): Similarly.
6169 (shiftqi_noscratch_set_flags): New pattern.
6170 (shifthi_noscratch_set_flags, shiftsi_noscratch_set_flags): Likewise.
6171
6172 2021-07-02 Andrew MacLeod <amacleod@redhat.com>
6173
6174 PR tree-optimization/101223
6175 * range-op.cc (build_lt): Add -1 for signed values.
6176 (built_gt): Subtract -1 for signed values.
6177
6178 2021-07-02 David Faust <david.faust@oracle.com>
6179
6180 * btfout.c (get_btf_kind): Support BTF_KIND_FLOAT.
6181 (btf_asm_type): Likewise.
6182
6183 2021-07-02 Jeff Law <jeffreyalaw@gmail.com>
6184
6185 * config/h8300/h8300-protos.h (output_a_shift): Make first argument
6186 an array of rtx rather than a pointer to rtx. Add code argument.
6187 (compute_a_shift_length): Similarly.
6188 * config/h8300/h8300.c (h8300_shift_costs): Adjust now that the
6189 shift itself isn't an operand. Create dummy operand[0] to carry
6190 a mode and pass a suitable rtx code to compute_a_shift_length.
6191 (get_shift_alg): Adjust operand number of clobber in output templates.
6192 (output_a_shift): Make first argument an array of rtx rather than
6193 a pointer to rtx. Add code argument for the type of shift.
6194 Adjust now that the shift itself is no longer an operand.
6195 (compute_a_shift_length): Similarly.
6196 * config/h8300/shiftrotate.md (shiftqi, shifthi, shiftsi): Use an
6197 iterator rather than nshift_operator.
6198 (shiftqi_noscratch, shifthi_noscratch, shiftsi_noscratch): Likewise.
6199 (shiftqi_clobber_flags): Adjust to API changes in output_a_shift
6200 and compute_a_shift_length.
6201 (shiftqi_noscratch_clobber_flags): Likewise.
6202 (shifthi_noscratch_clobber_flags): Likewise.
6203 (shiftsi_noscratch_clobber_flags): Likewise.
6204
6205 2021-07-02 Iain Sandoe <iain@sandoe.co.uk>
6206
6207 PR debug/101283
6208 * config/darwin.h (DSYMUTIL_SPEC): Do not try to run
6209 dsymutil for BTF/CTF.
6210
6211 2021-07-02 Iain Sandoe <iain@sandoe.co.uk>
6212
6213 PR debug/101283
6214 * config/darwin.h (CTF_INFO_SECTION_NAME): Update the
6215 segment to include BTF.
6216 (BTF_INFO_SECTION_NAME): New.
6217
6218 2021-07-02 Jeff Law <jeffreyalaw@gmail.com>
6219
6220 * config/m32r/m32r-protos.h (call_operand): Adjust return type.
6221 (small_data_operand, memreg_operand, small_insn_p): Likewise.
6222 * config/m32r/m32r.c (call_operand): Adjust return type.
6223 (small_data_operand, memreg_operand): Likewise.
6224
6225 2021-07-02 Jeff Law <jeffreyalaw@gmail.com>
6226
6227 * config/frv/frv-protos.h (integer_register_operand): Adjust return
6228 type.
6229 (frv_load_operand, gpr_or_fpr_operand, gpr_no_subreg_operand): Likewise.
6230 (fpr_or_int6_operand, gpr_or_int_operand); Likewise.
6231 (gpr_or_int12_operand, gpr_or_int10_operand); Likewise.
6232 (move_source_operand, move_destination_operand): Likewise.
6233 (condexec_source_operand, condexec_dest_operand): Likewise.
6234 (lr_operand, gpr_or_memory_operand, fpr_or_memory_operand): Likewise.
6235 (reg_or_0_operand, fcc_operand, icc_operand, cc_operand): Likewise.
6236 (fcr_operand, icr_operand, cr_operand, call_operand): Likewise.
6237 (fpr_operand, even_reg_operand, odd_reg_operand): Likewise.
6238 (even_gpr_operand, odd_gpr_operand, quad_fpr_operand): Likewise.
6239 (even_fpr_operand, odd_fpr_operand): Likewise.
6240 (dbl_memory_one_insn_operand, dbl_memory_two_insn_operand): Likewise.
6241 (int12_operand, int6_operand, int5_operand, uint5_operand): Likewise.
6242 (uint4_operand, uint1_operand, int_2word_operand): Likewise
6243 (upper_int16_operand, uint16_operand, symbolic_operand): Likewise.
6244 (relational_operator, float_relational_operator): Likewise.
6245 (ccr_eqne_operator, minmax_operator): Likewise.
6246 (condexec_si_binary_operator, condexec_si_media_operator): Likewise.
6247 (condexec_si_divide_operator, condexec_si_unary_operator): Likewise.
6248 (condexec_sf_conv_operator, condexec_sf_add_operator): Likewise.
6249 (intop_compare_operator, acc_operand, even_acc_operand): Likewise.
6250 (quad_acc_operand, accg_operand): Likewise.
6251
6252 2021-07-02 Jeff Law <jeffreyalaw@gmail.com>
6253
6254 * config/stormy16/stormy16-protos.h (xstormy16_below_100_symbol): Change
6255 return type to a bool.
6256 (nonimmediate_nonstack_operand): Likewise.
6257 (xstormy16_splittable_below100_operand): Likewise.
6258 * config/stormy16/stormy16.c (xstormy16_below_100_symbol): Fix
6259 return type.
6260 (xstormy16_splittable_below100_operand): Likewise.
6261
6262 2021-07-02 Richard Biener <rguenther@suse.de>
6263
6264 PR tree-optimization/101293
6265 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Compare MEM_REF bases
6266 with combined offsets.
6267 (gather_mem_refs_stmt): Hash MEM_REFs as if their offset were
6268 combined with the rest of the offset.
6269
6270 2021-07-02 Eric Botcazou <ebotcazou@adacore.com>
6271
6272 * config/i386/i386.c (asm_preferred_eh_data_format): Always use the
6273 PIC encodings for PE-COFF targets.
6274
6275 2021-07-02 Jakub Jelinek <jakub@redhat.com>
6276
6277 PR target/101286
6278 * config/i386/i386-expand.c (ix86_broadcast_from_integer_constant):
6279 Return nullptr for TImode inner mode.
6280
6281 2021-07-02 Richard Biener <rguenther@suse.de>
6282
6283 PR tree-optimization/101280
6284 PR tree-optimization/101173
6285 * gimple-loop-interchange.cc
6286 (tree_loop_interchange::valid_data_dependences): Properly
6287 guard all dependence checks with DDR_REVERSED_P or its
6288 inverse.
6289
6290 2021-07-02 Hongyu Wang <hongyu.wang@intel.com>
6291
6292 * config/i386/i386-expand.c (ix86_expand_builtin):
6293 Add branch to clear odata when ZF is set for asedecenc_expand
6294 and wideaesdecenc_expand.
6295
6296 2021-07-02 Eugene Rozenfeld <erozen@microsoft.com>
6297
6298 * config/i386/gcc-auto-profile: regenerate
6299
6300 2021-07-02 liuhongt <hongtao.liu@intel.com>
6301
6302 * config/i386/sse.md (trunc<mode><pmov_dst_4>2): Refined to ..
6303 (trunc<mode><pmov_dst_4_lower>2): this.
6304
6305 2021-07-01 David Malcolm <dmalcolm@redhat.com>
6306
6307 * diagnostic.h (diagnostic_context::m_file_cache): New field.
6308 * input.c (class fcache): Rename to...
6309 (class file_cache_slot): ...this, making most members private and
6310 prefixing fields with "m_".
6311 (file_cache_slot::get_file_path): New accessor.
6312 (file_cache_slot::get_use_count): New accessor.
6313 (file_cache_slot::missing_trailing_newline_p): New accessor.
6314 (file_cache_slot::inc_use_count): New.
6315 (fcache_buffer_size): Move to...
6316 (file_cache_slot::buffer_size): ...here.
6317 (fcache_line_record_size): Move to...
6318 (file_cache_slot::line_record_size): ...here.
6319 (fcache_tab): Delete, in favor of global_dc->m_file_cache.
6320 (fcache_tab_size): Move to file_cache::num_file_slots.
6321 (diagnostic_file_cache_init): Update for move of fcache_tab
6322 to global_dc->m_file_cache.
6323 (diagnostic_file_cache_fini): Likewise.
6324 (lookup_file_in_cache_tab): Convert to...
6325 (file_cache::lookup_file): ...this.
6326 (diagnostics_file_cache_forcibly_evict_file): Update for move of
6327 fcache_tab to global_dc->m_file_cache, moving most of
6328 implementation to...
6329 (file_cache::forcibly_evict_file): ...this new function and...
6330 (file_cache_slot::evict): ...this new function.
6331 (evicted_cache_tab_entry): Convert to...
6332 (file_cache::evicted_cache_tab_entry): ...this.
6333 (add_file_to_cache_tab): Convert to...
6334 (file_cache::add_file): ...this, moving bulk of implementation
6335 to...
6336 (file_cache_slot::create): ..this new function.
6337 (file_cache::file_cache): New.
6338 (file_cache::~file_cache): New.
6339 (lookup_or_add_file_to_cache_tab): Convert to...
6340 (file_cache::lookup_or_add_file): ..this new function.
6341 (fcache::fcache): Rename to...
6342 (file_cache_slot::file_cache_slot): ...this, adding "m_" prefixes
6343 to fields.
6344 (fcache::~fcache): Rename to...
6345 (file_cache_slot::~file_cache_slot): ...this, adding "m_" prefixes
6346 to fields.
6347 (needs_read): Convert to...
6348 (file_cache_slot::needs_read_p): ...this.
6349 (needs_grow): Convert to...
6350 (file_cache_slot::needs_grow_p): ...this.
6351 (maybe_grow): Convert to...
6352 (file_cache_slot::maybe_grow): ...this.
6353 (read_data): Convert to...
6354 (file_cache_slot::read_data): ...this.
6355 (maybe_read_data): Convert to...
6356 (file_cache_slot::maybe_read_data): ...this.
6357 (get_next_line): Convert to...
6358 (file_cache_slot::get_next_line): ...this.
6359 (goto_next_line): Convert to...
6360 (file_cache_slot::goto_next_line): ...this.
6361 (read_line_num): Convert to...
6362 (file_cache_slot::read_line_num): ...this.
6363 (location_get_source_line): Update for moving of globals to
6364 global_dc->m_file_cache.
6365 (location_missing_trailing_newline): Likewise.
6366 * input.h (class file_cache_slot): New forward decl.
6367 (class file_cache): New.
6368
6369 2021-07-01 Michael Meissner <meissner@linux.ibm.com>
6370
6371 * config/rs6000/rs6000.c (rs6000_maybe_emit_fp_cmove): Add IEEE
6372 128-bit floating point conditional move support.
6373 (have_compare_and_set_mask): Add IEEE 128-bit floating point
6374 types.
6375 * config/rs6000/rs6000.md (mov<mode>cc, IEEE128 iterator): New insn.
6376 (mov<mode>cc_p10, IEEE128 iterator): New insn.
6377 (mov<mode>cc_invert_p10, IEEE128 iterator): New insn.
6378 (fpmask<mode>, IEEE128 iterator): New insn.
6379 (xxsel<mode>, IEEE128 iterator): New insn.
6380
6381 2021-07-01 Iain Sandoe <iain@sandoe.co.uk>
6382
6383 PR debug/101283
6384 * config/darwin.h (CTF_INFO_SECTION_NAME): New.
6385
6386 2021-07-01 H.J. Lu <hjl.tools@gmail.com>
6387
6388 * config/i386/i386-expand.c (ix86_expand_vector_init_duplicate):
6389 Make it global.
6390 * config/i386/i386-protos.h (ix86_expand_vector_init_duplicate):
6391 New prototype.
6392 * config/i386/sse.md (INT_BROADCAST_MODE): New mode iterator.
6393 (vec_duplicate<mode>): New expander.
6394
6395 2021-07-01 H.J. Lu <hjl.tools@gmail.com>
6396
6397 PR target/100865
6398 * config/i386/i386-expand.c (ix86_expand_vector_init_duplicate):
6399 New prototype.
6400 (ix86_byte_broadcast): New function.
6401 (ix86_convert_const_wide_int_to_broadcast): Likewise.
6402 (ix86_expand_move): Convert CONST_WIDE_INT to broadcast if mode
6403 size is 16 bytes or bigger.
6404 (ix86_broadcast_from_integer_constant): New function.
6405 (ix86_expand_vector_move): Convert CONST_WIDE_INT and CONST_VECTOR
6406 to broadcast if mode size is 16 bytes or bigger.
6407 * config/i386/i386-protos.h (ix86_gen_scratch_sse_rtx): New
6408 prototype.
6409 * config/i386/i386.c (ix86_gen_scratch_sse_rtx): New function.
6410
6411 2021-07-01 Uroš Bizjak <ubizjak@gmail.com>
6412
6413 * config/i386/predicates.md (ix86_endbr_immediate_operand):
6414 Return true/false instead of 1/0.
6415 (movq_parallel): Ditto.
6416
6417 2021-07-01 Uroš Bizjak <ubizjak@gmail.com>
6418
6419 * recog.c (general_operand): Return true/false instead of 1/0.
6420 (register_operand): Ditto.
6421 (immediate_operand): Ditto.
6422 (const_int_operand): Ditto.
6423 (const_scalar_int_operand): Ditto.
6424 (const_double_operand): Ditto.
6425 (push_operand): Ditto.
6426 (pop_operand): Ditto.
6427 (memory_operand): Ditto.
6428 (indirect_operand): Ditto.
6429
6430 2021-07-01 Uroš Bizjak <ubizjak@gmail.com>
6431
6432 * genpreds.c (write_predicate_subfunction):
6433 Change the type of written subfunction to bool.
6434 (write_one_predicate_function):
6435 Change the type of written function to bool.
6436 (write_tm_preds_h): Ditto.
6437 * recog.h (*insn_operand_predicate_fn): Change the type to bool.
6438 * recog.c (general_operand): Change the type to bool.
6439 (address_operand): Ditto.
6440 (register_operand): Ditto.
6441 (pmode_register_operand): Ditto.
6442 (scratch_operand): Ditto.
6443 (immediate_operand): Ditto.
6444 (const_int_operand): Ditto.
6445 (const_scalar_int_operand): Ditto.
6446 (const_double_operand): Ditto.
6447 (nonimmediate_operand): Ditto.
6448 (nonmemory_operand): Ditto.
6449 (push_operand): Ditto.
6450 (pop_operand): Ditto.
6451 (memory_operand): Ditto.
6452 (indirect_operand): Ditto.
6453 (ordered_comparison_operator): Ditto.
6454 (comparison_operator): Ditto.
6455 * config/i386/i386-expand.c (ix86_expand_sse_cmp):
6456 Change the type of indirect predicate function to bool.
6457 * config/rs6000/rs6000.c (easy_vector_constant):
6458 Change the type to bool.
6459 * config/mips/mips-protos.h (m16_based_address_p):
6460 Change the type of operand 3 to bool.
6461
6462 2021-07-01 Richard Biener <rguenther@suse.de>
6463
6464 PR tree-optimization/101280
6465 PR tree-optimization/101173
6466 * gimple-loop-interchange.cc
6467 (tree_loop_interchange::valid_data_dependences): Revert
6468 previous change and instead correctly handle DDR_REVERSED_P
6469 dependence.
6470
6471 2021-07-01 Richard Biener <rguenther@suse.de>
6472
6473 PR tree-optimization/101278
6474 * tree-ssa-dse.c (dse_classify_store): First check for
6475 uses, then ignore stmt for chaining purposes.
6476
6477 2021-07-01 Richard Biener <rguenther@suse.de>
6478
6479 PR tree-optimization/100778
6480 * tree-vect-slp.c (vect_schedule_slp_node): Do not place trapping
6481 vectorized ops ahead of their scalar BB.
6482
6483 2021-07-01 Uroš Bizjak <ubizjak@gmail.com>
6484
6485 PR target/101044
6486 * config/i386/i386.md (*nabs<dwi>2_doubleword):
6487 New insn_and_split pattern.
6488 (*nabs<dwi>2_1): Ditto.
6489 * config/i386/i386-features.c
6490 (general_scalar_chain::compute_convert_gain):
6491 Handle (NEG (ABS (...))) RTX. Rewrite src code
6492 scanner as switch statement.
6493 (general_scalar_chain::convert_insn):
6494 Handle (NEG (ABS (...))) RTX.
6495 (general_scalar_to_vector_candidate_p):
6496 Detect (NEG (ABS (...))) RTX. Reorder case statements
6497 for (AND (NOT (...) ...)) fallthrough.
6498
6499 2021-07-01 Richard Biener <rguenther@suse.de>
6500
6501 PR tree-optimization/101178
6502 * tree-vect-slp.c (slpg_vertex::materialize): Remove.
6503 (slpg::perm_in): Add.
6504 (slpg::get_perm_in): Remove.
6505 (slpg::get_perm_materialized): Add.
6506 (vect_optimize_slp): Handle VEC_PERM nodes more optimally
6507 during permute propagation and materialization.
6508
6509 2021-07-01 Jakub Jelinek <jakub@redhat.com>
6510
6511 PR debug/101266
6512 * dwarf2out.c (loc_list_from_tree_1): Handle COMPOUND_LITERAL_EXPR.
6513
6514 2021-07-01 Jakub Jelinek <jakub@redhat.com>
6515
6516 PR middle-end/94366
6517 * omp-low.c (lower_rec_input_clauses): Rename is_fp_and_or to
6518 is_truth_op, set it for TRUTH_*IF_EXPR regardless of new_var's type,
6519 use boolean_type_node instead of integer_type_node as NE_EXPR type.
6520 (lower_reduction_clauses): Likewise.
6521
6522 2021-06-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
6523
6524 * config/gcn/gcn.c: Include dwarf2.h.
6525 (gcn_addr_space_debug): New function.
6526 (TARGET_ADDR_SPACE_DEBUG): New hook.
6527
6528 2021-06-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
6529
6530 * common/config/gcn/gcn-common.c
6531 (gcn_option_optimization_table): Change OPT_fomit_frame_pointer to -O3.
6532 * config/gcn/gcn.c (gcn_expand_prologue): Prefer the frame pointer
6533 when emitting CFI.
6534 (gcn_expand_prologue): Prefer the frame pointer when emitting CFI.
6535 (gcn_frame_pointer_rqd): New function.
6536 (TARGET_FRAME_POINTER_REQUIRED): New hook.
6537
6538 2021-06-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
6539
6540 * config/gcn/gcn.c (move_callee_saved_registers): Emit CFI notes for
6541 prologue register saves.
6542 (gcn_debug_unwind_info): Use UI_DWARF2.
6543 (gcn_dwarf_register_number): Map DWARF_LINK_REGISTER to DWARF PC.
6544 (gcn_dwarf_register_span): DWARF_LINK_REGISTER doesn't span.
6545 * config/gcn/gcn.h: (DWARF_FRAME_RETURN_COLUMN): New define.
6546 (DWARF_LINK_REGISTER): New define.
6547 (FIRST_PSEUDO_REGISTER): Increment.
6548 (FIXED_REGISTERS): Add entry for DWARF_LINK_REGISTER.
6549 (CALL_USED_REGISTERS): Likewise.
6550 (REGISTER_NAMES): Likewise.
6551
6552 2021-06-30 Richard Biener <rguenther@suse.de>
6553
6554 PR tree-optimization/101267
6555 * tree-vect-stmts.c (vect_check_scalar_mask): Adjust
6556 API and use SLP compatible interface of vect_is_simple_use.
6557 Reject not vectorized SLP defs for callers that do not support
6558 that.
6559 (vect_check_store_rhs): Handle masked stores and pass down
6560 the appropriate operator index.
6561 (vectorizable_call): Adjust.
6562 (vectorizable_store): Likewise.
6563 (vectorizable_load): Likewise. Handle SLP pecularity of
6564 masked loads.
6565 (vect_is_simple_use): Remove special-casing of masked stores.
6566
6567 2021-06-30 Tobias Burnus <tobias@codesourcery.com>
6568
6569 * common.opt (foffload): Remove help as Driver only.
6570 * gcc.c (display_help): Add -foffload.
6571
6572 2021-06-30 Tobias Burnus <tobias@codesourcery.com>
6573
6574 * gcc.c (close_at_file, execute): Replace alloca by XALLOCAVEC.
6575 (check_offload_target_name): Fix splitting OFFLOAD_TARGETS into
6576 a candidate list; better inform no offload target is configured
6577 and fix hint extraction when passed target is not '\0' at [len].
6578 * common.opt (foffload): Add tailing '.'.
6579 (foffload-options): Likewise; fix flag name in the help string.
6580
6581 2021-06-30 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
6582
6583 PR target/66791
6584 * config/arm/arm_neon.h: Move vabs intrinsics before vcage_f32.
6585 (vcage_f32): Gate comparison on __FAST_MATH__.
6586 (vcageq_f32): Likewise.
6587 (vcale_f32): Likewise.
6588 (vcaleq_f32): Likewise.
6589 (vcagt_f32): Likewise.
6590 (vcagtq_f32): Likewise.
6591 (vcalt_f32): Likewise.
6592 (vcaltq_f32): Likewise.
6593 (vcage_f16): Likewise.
6594 (vcageq_f16): Likewise.
6595 (vcale_f16): Likewise.
6596 (vcaleq_f16): Likewise.
6597 (vcagt_f16): Likewise.
6598 (vcagtq_f16): Likewise.
6599 (vcalt_f16): Likewise.
6600 (vcaltq_f16): Likewise.
6601
6602 2021-06-30 Richard Biener <rguenther@suse.de>
6603
6604 PR tree-optimization/101264
6605 * tree-vect-slp.c (vect_optimize_slp): Propagate the
6606 computed perm_in to all "any" permute successors
6607 we cannot de-duplicate immediately.
6608
6609 2021-06-30 liuhongt <hongtao.liu@intel.com>
6610
6611 PR target/101248
6612 * config/i386/sse.md
6613 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>):
6614 Refined to ..
6615 (avx512f_sfixupimm<mode><maskz_scalar_name><round_saeonly_name>):
6616 this.
6617 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>"): Refined.
6618 * config/i386/subst.md (maskz_scalar): New define_subst.
6619 (maskz_scalar_name): New subst_attr.
6620 (maskz_scalar_op5): Ditto.
6621 (round_saeonly_maskz_scalar_op5): Ditto.
6622 (round_saeonly_maskz_scalar_operand5): Ditto.
6623
6624 2021-06-30 David Edelsohn <dje.gcc@gmail.com>
6625
6626 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags):
6627 Increase code CSECT alignment to at least 32 bytes.
6628 * config/rs6000/xcoff.h (TEXT_SECTION_ASM_OP): Add 32 byte
6629 alignment designation.
6630
6631 2021-06-29 Sergei Trofimovich <siarheit@google.com>
6632
6633 * doc/generic.texi: Fix s/net yet/not yet/ typo.
6634
6635 2021-06-29 Andrew MacLeod <amacleod@redhat.com>
6636
6637 PR tree-optimization/101254
6638 * range-op.cc (operator_minus::op1_op2_relation_effect): Check for
6639 wrapping/non-wrapping when setting the result range.
6640
6641 2021-06-29 Andrew MacLeod <amacleod@redhat.com>
6642
6643 * value-query.cc (gimple_range_global): Allow phis.
6644
6645 2021-06-29 Andrew MacLeod <amacleod@redhat.com>
6646
6647 * vr-values.c (vr_values::vrp_stmt_computes_nonzero): Use stmt.
6648 (simplify_using_ranges::op_with_boolean_value_range_p): Add a
6649 statement for location context.
6650 (check_for_binary_op_overflow): Ditto.
6651 (simplify_using_ranges::get_vr_for_comparison): Ditto.
6652 (simplify_using_ranges::compare_name_with_value): Ditto.
6653 (simplify_using_ranges::compare_names): Ditto.
6654 (vrp_evaluate_conditional_warnv_with_ops_using_ranges): Ditto.
6655 (simplify_using_ranges::simplify_truth_ops_using_ranges): Ditto.
6656 (simplify_using_ranges::simplify_min_or_max_using_ranges): Ditto.
6657 (simplify_using_ranges::simplify_internal_call_using_ranges): Ditto.
6658 (simplify_using_ranges::two_valued_val_range_p): Ditto.
6659 (simplify_using_ranges::simplify): Ditto.
6660 * vr-values.h: Adjust prototypes.
6661
6662 2021-06-29 Uroš Bizjak <ubizjak@gmail.com>
6663
6664 PR target/95046
6665 * config/i386/mmx.md (vec_addsubv2sf3): New insn pattern.
6666
6667 2021-06-29 Julian Brown <julian@codesourcery.com>
6668
6669 * config/gcn/gcn.c (gcn_init_libfuncs): New function.
6670 (TARGET_INIT_LIBFUNCS): Define target hook using above function.
6671 * config/gcn/gcn.h (UNITS_PER_WORD): Define to 8 for IN_LIBGCC2, 4
6672 otherwise.
6673 (LIBGCC2_UNITS_PER_WORD, BITS_PER_WORD): Remove definitions.
6674 (MAX_FIXED_MODE_SIZE): Change to 128.
6675
6676 2021-06-29 Julian Brown <julian@codesourcery.com>
6677
6678 * config/gcn/gcn.md (UNSPEC_FLBIT_INT): New unspec constant.
6679 (s_mnemonic): Add clrsb.
6680 (gcn_flbit<mode>_int): Add insn pattern for SImode/DImode.
6681 (clrsb<mode>2): Add expander for SImode/DImode.
6682
6683 2021-06-29 Julian Brown <julian@codesourcery.com>
6684
6685 * config/gcn/gcn.md (<su>mulsidi3, <su>mulsidi3_reg, <su>mulsidi3_imm,
6686 muldi3): Add patterns.
6687
6688 2021-06-29 Julian Brown <julian@codesourcery.com>
6689
6690 * config/gcn/gcn.md (<su>mulsi3_highpart): Change to expander.
6691 (<su>mulsi3_highpart_reg, <su>mulsi3_highpart_imm): New patterns.
6692
6693 2021-06-29 Julian Brown <julian@codesourcery.com>
6694
6695 * config/gcn/gcn.md (mulsi3): Make s_mulk_i32 variant clobber SCC.
6696
6697 2021-06-29 Joseph Myers <joseph@codesourcery.com>
6698
6699 * btfout.c, ctfout.c: Include "memmodel.h".
6700
6701 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
6702
6703 * gcc.c (check_offload_target_name): Cast len argument to
6704 %q.*s to 'int'; avoid -Wstringop-truncation warning.
6705
6706 2021-06-29 Richard Biener <rguenther@suse.de>
6707
6708 * tree-vect-slp.c (vect_optimize_slp): Forward propagate
6709 to "any" permute nodes and relax "any" permute proapgation
6710 during iterative backward propagation.
6711
6712 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
6713
6714 PR other/67300
6715 * common.opt (-foffload=): Update description.
6716 (-foffload-options=): New.
6717 * doc/invoke.texi (C Language Options): Document
6718 -foffload and -foffload-options.
6719 * gcc.c (check_offload_target_name): New, split off from
6720 handle_foffload_option.
6721 (check_foffload_target_names): New.
6722 (handle_foffload_option): Handle -foffload=default.
6723 (driver_handle_option): Update for -foffload-options.
6724 * lto-opts.c (lto_write_options): Use -foffload-options
6725 instead of -foffload.
6726 * lto-wrapper.c (merge_and_complain, append_offload_options):
6727 Likewise.
6728 * opts.c (common_handle_option): Likewise.
6729
6730 2021-06-29 Tobias Burnus <tobias@codesourcery.com>
6731
6732 * doc/invoke.texi (C Language Options): Sort options
6733 alphabetically in optlist and also the description itself.
6734 Remove leftover -fallow-single-precision from and add missing
6735 -fgnu-tm to the optlist.
6736
6737 2021-06-29 Richard Biener <rguenther@suse.de>
6738
6739 * tree-vect-slp.c (slpg_vertex::visited): Remove.
6740 (vect_slp_perms_eq): Handle -1 permutes.
6741 (vect_optimize_slp): Rewrite permute propagation.
6742
6743 2021-06-29 Jakub Jelinek <jakub@redhat.com>
6744
6745 PR c++/101210
6746 * match.pd ((intptr_t)x eq/ne CST to x eq/ne (typeof x) CST): Don't
6747 perform the optimization in GENERIC when sanitizing and x has a
6748 reference type.
6749
6750 2021-06-29 Richard Biener <rguenther@suse.de>
6751
6752 PR tree-optimization/101242
6753 * tree-vect-slp.c (vect_slp_build_vertices): Force-add
6754 PHIs with not represented initial values as leafs.
6755
6756 2021-06-29 Jan-Benedict Glaw <jbglaw@getslash.de>
6757
6758 * config/pdp11/pdp11.h (ASM_OUTPUT_SKIP): Fix signedness warning.
6759 * config/pdp11/pdp11.c (pdp11_asm_print_operand_punct_valid_p): Remove
6760 "register" keyword.
6761 (pdp11_initial_elimination_offset) Remove unused variable.
6762 (pdp11_cmp_length) Ditto.
6763 (pdp11_insn_cost): Ditto, and fix signedness warning.
6764
6765 2021-06-29 David Edelsohn <dje.gcc@gmail.com>
6766
6767 * btfout.c: Include tm_p.h.
6768 * ctfout.c: Same.
6769
6770 2021-06-28 Indu Bhagat <indu.bhagat@oracle.com>
6771
6772 * config/bpf/bpf.c (bpf_expand_prologue): Do not mark insns as
6773 frame related.
6774 (bpf_expand_epilogue): Likewise.
6775 * config/bpf/bpf.h (DWARF2_FRAME_INFO): Define to 0.
6776 Do not define DBX_DEBUGGING_INFO.
6777
6778 2021-06-28 Indu Bhagat <indu.bhagat@oracle.com>
6779
6780 * doc/invoke.texi: Document the CTF and BTF debug info options.
6781
6782 2021-06-28 Indu Bhagat <indu.bhagat@oracle.com>
6783 David Faust <david.faust@oracle.com>
6784 Jose E. Marchesi <jose.marchesi@oracle.com>
6785 Weimin Pan <weimin.pan@oracle.com>
6786
6787 * Makefile.in: Add ctfc.*, ctfout.c and btfout.c files to
6788 GTFILES. Add new object files.
6789 * common.opt: Add CTF and BTF debug info options.
6790 * btfout.c: New file.
6791 * ctfc.c: Likewise.
6792 * ctfc.h: Likewise.
6793 * ctfout.c: Likewise.
6794 * dwarf2ctf.c: Likewise.
6795 * dwarf2ctf.h: Likewise.
6796 * dwarf2cfi.c (dwarf2out_do_frame): Acknowledge CTF_DEBUG and
6797 BTF_DEBUG.
6798 * dwarf2out.c (dwarf2out_source_line): Likewise.
6799 (dwarf2out_finish): Skip emitting DWARF if CTF or BTF are to
6800 be generated.
6801 (debug_format_do_cu): New function.
6802 (dwarf2out_early_finish): Traverse DIEs and emit CTF/BTF for
6803 them if requested.
6804 Include dwarf2ctf.c.
6805 * final.c (dwarf2_debug_info_emitted_p): Acknowledge DWARF-based debug
6806 formats.
6807 * flag-types.h (enum debug_info_type): Add CTF_DEBUG and BTF_DEBUG.
6808 (CTF_DEBUG): New bitmask.
6809 (BTF_DEBUG): Likewise.
6810 (enum ctf_debug_info_levels): New enum.
6811 * gengtype.c (open_base_files): Handle ctfc.h.
6812 (main): Handle uint32_t type.
6813 * flags.h (btf_debuginfo_p): New definition.
6814 (dwarf_based_debuginfo_p): Likewise.
6815 * opts.c (debug_type_names): Add entries for CTF and BTF.
6816 (btf_debuginfo_p): New function.
6817 (dwarf_based_debuginfo_p): Likewise.
6818 (common_handle_option): Handle -gctfN and -gbtf options.
6819 (set_debug_level): Set CTF_DEBUG, BTF_DEBUG whenever appropriate.
6820 * toplev.c (process_options): Inform the user and ignore -gctfLEVEL if
6821 frontend is not C.
6822
6823 2021-06-28 Jose E. Marchesi <jose.marchesi@oracle.com>
6824
6825 * dwarf2out.c (AT_class): Function is no longer static.
6826 (AT_int): Likewise.
6827 (AT_unsigned): Likewise.
6828 (AT_loc): Likewise.
6829 (get_AT): Likewise.
6830 (get_AT_string): Likewise.
6831 (get_AT_flag): Likewise.
6832 (get_AT_unsigned): Likewise.
6833 (get_AT_ref): Likewise.
6834 (new_die_raw): Likewise.
6835 (lookup_decl_die): Likewise.
6836 (base_type_die): Likewise.
6837 (add_name_attribute): Likewise.
6838 (add_AT_int): Likewise.
6839 (add_AT_unsigned): Likewise.
6840 (add_AT_loc): Likewise.
6841 (dw_get_die_tag): New function.
6842 (dw_get_die_child): Likewise.
6843 (dw_get_die_sib): Likewise.
6844 (struct dwarf_file_data): Move from here to dwarf2out.h
6845 (struct dw_attr_struct): Likewise.
6846 * dwarf2out.h: Analogous changes.
6847
6848 2021-06-28 Martin Jambor <mjambor@suse.cz>
6849
6850 PR ipa/93385
6851 * ipa-param-manipulation.h (class ipa_param_body_adjustments): New
6852 members m_dead_stmts and m_dead_ssas.
6853 * ipa-param-manipulation.c
6854 (ipa_param_body_adjustments::mark_dead_statements): New function.
6855 (ipa_param_body_adjustments::common_initialization): Call it on
6856 all removed but not split parameters.
6857 (ipa_param_body_adjustments::ipa_param_body_adjustments): Initialize
6858 new mwmbers.
6859 (ipa_param_body_adjustments::modify_call_stmt): Remove arguments that
6860 are dead.
6861 * tree-inline.c (remap_gimple_stmt): Do not copy dead statements, reset
6862 dead debug statements.
6863 (copy_phis_for_bb): Do not copy dead PHI nodes.
6864
6865 2021-06-28 Martin Jambor <mjambor@suse.cz>
6866
6867 PR ipa/93385
6868 * symtab-clones.h (clone_info): Removed member param_adjustments.
6869 * ipa-param-manipulation.h: Adjust initial comment to reflect how we
6870 deal with pass-through splits now.
6871 (ipa_param_performed_split): Removed.
6872 (ipa_param_adjustments::modify_call): Adjusted parameters.
6873 (class ipa_param_body_adjustments): Adjusted parameters of
6874 register_replacement, modify_gimple_stmt and modify_call_stmt.
6875 (ipa_verify_edge_has_no_modifications): Declare.
6876 (ipa_edge_modifications_finalize): Declare.
6877 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Remove
6878 performed_splits processing, pas only edge to padjs->modify_call,
6879 check that call arguments were not modified if they should not have
6880 been.
6881 * cgraphclones.c (cgraph_node::create_clone): Do not copy performed
6882 splits.
6883 * ipa-param-manipulation.c (struct pass_through_split_map): New type.
6884 (ipa_edge_modification_info): Likewise.
6885 (ipa_edge_modification_sum): Likewise.
6886 (ipa_edge_modifications): New edge summary.
6887 (ipa_verify_edge_has_no_modifications): New function.
6888 (transitive_split_p): Removed.
6889 (transitive_split_map): Likewise.
6890 (init_transitive_splits): Likewise.
6891 (ipa_param_adjustments::modify_call): Adjusted to use the new edge
6892 summary instead of performed_splits.
6893 (ipa_param_body_adjustments::register_replacement): Drop dummy
6894 parameter, set base_index of the created ipa_param_body_replacement.
6895 (phi_arg_will_live_p): New function.
6896 (ipa_param_body_adjustments::common_initialization): Do not create
6897 IPA_SRA dummy decls.
6898 (simple_tree_swap_info): Removed.
6899 (remap_split_decl_to_dummy): Likewise.
6900 (record_argument_state_1): New function.
6901 (record_argument_state): Likewise.
6902 (ipa_param_body_adjustments::modify_call_stmt): New parameter
6903 orig_stmt. Do not work with dummy decls, save necessary info about
6904 changes to ipa_edge_modifications.
6905 (ipa_param_body_adjustments::modify_gimple_stmt): New parameter
6906 orig_stmt, pass it to modify_call_stmt.
6907 (ipa_param_body_adjustments::modify_cfun_body): Adjust call to
6908 modify_gimple_stmt.
6909 (ipa_edge_modifications_finalize): New function.
6910 * tree-inline.c (remap_gimple_stmt): Pass original statement to
6911 modify_gimple_stmt.
6912 (copy_phis_for_bb): Do not copy dead PHI nodes.
6913 (expand_call_inline): Do not remap performed_splits.
6914 (update_clone_info): Likewise.
6915 * toplev.c: Include ipa-param-manipulation.h.
6916 (toplev::finalize): Call ipa_edge_modifications_finalize.
6917
6918 2021-06-28 Andrew Pinski <apinski@marvell.com>
6919
6920 * tree-ssa-phiopt.c (replace_phi_edge_with_variable): Duplicate range
6921 info if we're the only things setting the target PHI.
6922 (value_replacement): Don't duplicate range here.
6923 (minmax_replacement): Likewise.
6924
6925 2021-06-28 Richard Biener <rguenther@suse.de>
6926
6927 PR tree-optimization/101229
6928 * gimple-walk.c (gimple_walk_op): Handle PHIs.
6929
6930 2021-06-28 Martin Liska <mliska@suse.cz>
6931
6932 * config/v850/v850.c (construct_dispose_instruction): Allocate
6933 a bigger buffer.
6934 (construct_prepare_instruction): Likewise.
6935
6936 2021-06-28 Martin Liska <mliska@suse.cz>
6937
6938 * config/v850/v850.c (v850_option_override): Build default
6939 target node.
6940 (v850_can_inline_p): New. Allow MASK_PROLOG_FUNCTION to be
6941 ignored for inlining.
6942 (TARGET_CAN_INLINE_P): New.
6943
6944 2021-06-28 Richard Biener <rguenther@suse.de>
6945
6946 PR tree-optimization/101207
6947 * tree-vect-slp.c (vect_optimize_slp): Do BB reduction
6948 permute eliding for load permutations properly.
6949
6950 2021-06-28 Richard Biener <rguenther@suse.de>
6951
6952 PR tree-optimization/101173
6953 * gimple-loop-interchange.cc
6954 (tree_loop_interchange::valid_data_dependences): Disallow outer
6955 loop dependence distance of zero.
6956
6957 2021-06-28 liuhongt <hongtao.liu@intel.com>
6958
6959 PR target/100648
6960 * config/i386/sse.md (*avx_cmp<mode>3_lt): New
6961 define_insn_and_split.
6962 (*avx_cmp<mode>3_ltint): Ditto.
6963 (*avx2_pcmp<mode>3_3): Ditto.
6964 (*avx2_pcmp<mode>3_4): Ditto.
6965 (*avx2_pcmp<mode>3_5): Ditto.
6966
6967 2021-06-28 liuhongt <hongtao.liu@intel.com>
6968
6969 * config/i386/i386-builtin.def (IX86_BUILTIN_BLENDVPD256,
6970 IX86_BUILTIN_BLENDVPS256, IX86_BUILTIN_PBLENDVB256,
6971 IX86_BUILTIN_BLENDVPD, IX86_BUILTIN_BLENDVPS,
6972 IX86_BUILTIN_PBLENDVB128): Replace icode with
6973 CODE_FOR_nothing.
6974 * config/i386/i386.c (ix86_gimple_fold_builtin): Fold blendv
6975 builtins.
6976 * config/i386/sse.md (*<sse4_1_avx2>_pblendvb_lt_subreg_not):
6977 New pre_reload splitter.
6978
6979 2021-06-27 Andrew Pinski <apinski@marvell.com>
6980
6981 PR middle-end/101230
6982 * fold-const.c (fold_ternary_loc): Check
6983 the return value of invert_tree_comparison.
6984
6985 2021-06-27 David Edelsohn <dje.gcc@gmail.com>
6986
6987 * config.gcc: Add SPDX License Identifier.
6988 (powerpc-ibm-aix789): Default to aix73.h.
6989 (powerpc-ibm-aix7.2.*.*): New stanza.
6990 * config/rs6000/aix72.h: Add SPDX License Identifier.
6991 * config/rs6000/aix73.h: New file.
6992
6993 2021-06-26 Jason Merrill <jason@redhat.com>
6994
6995 * except.c: #include "dwarf2.h" instead of "dwarf2out.h".
6996
6997 2021-06-26 Andrew Pinski <apinski@marvell.com>
6998
6999 * genmatch.c (lower_cond): Copy for_subst_vec
7000 for the simplify also.
7001 (lower): Swap the order for lower_for and lower_cond.
7002
7003 2021-06-26 Andrew Pinski <apinski@marvell.com>
7004
7005 * tree-ssa-phiopt.c (match_simplify_replacement): Reset
7006 flow senatitive info on the moved ssa set.
7007
7008 2021-06-26 Andrew Pinski <apinski@marvell.com>
7009
7010 * fold-const.c (fold_cond_expr_with_comparison):
7011 Exand arg0 into comp_code, arg00, and arg01.
7012 (fold_ternary_loc): Use invert_tree_comparison
7013 instead of fold_invert_truthvalue for the case
7014 where we have A CMP B ? C : A.
7015
7016 2021-06-25 Martin Sebor <msebor@redhat.com>
7017
7018 PR middle-end/101216
7019 * calls.c (maybe_warn_rdwr_sizes): Use the no_warning constant.
7020
7021 2021-06-25 Jeff Law <jeffreyalaw@gmail.com>
7022
7023 * config/h8300/h8300.c (select_cc_mode): Handle ASHIFTRT and LSHIFTRT.
7024
7025 2021-06-25 Richard Biener <rguenther@suse.de>
7026
7027 PR tree-optimization/101202
7028 * tree-vect-slp.c (vect_optimize_slp): Explicitely handle
7029 failed nodes.
7030
7031 2021-06-25 Richard Biener <rguenther@suse.de>
7032
7033 * tree-vect-slp-patterns.c (addsub_pattern::build): Copy
7034 STMT_VINFO_REDUC_DEF from the original representative.
7035
7036 2021-06-25 Martin Sebor <msebor@redhat.com>
7037
7038 * builtins.c (warn_string_no_nul): Replace uses of TREE_NO_WARNING,
7039 gimple_no_warning_p and gimple_set_no_warning with
7040 warning_suppressed_p, and suppress_warning.
7041 (c_strlen): Same.
7042 (maybe_warn_for_bound): Same.
7043 (warn_for_access): Same.
7044 (check_access): Same.
7045 (expand_builtin_strncmp): Same.
7046 (fold_builtin_varargs): Same.
7047 * calls.c (maybe_warn_nonstring_arg): Same.
7048 (maybe_warn_rdwr_sizes): Same.
7049 * cfgexpand.c (expand_call_stmt): Same.
7050 * cgraphunit.c (check_global_declaration): Same.
7051 * fold-const.c (fold_undefer_overflow_warnings): Same.
7052 (fold_truth_not_expr): Same.
7053 (fold_unary_loc): Same.
7054 (fold_checksum_tree): Same.
7055 * gimple-array-bounds.cc (array_bounds_checker::check_array_ref): Same.
7056 (array_bounds_checker::check_mem_ref): Same.
7057 (array_bounds_checker::check_addr_expr): Same.
7058 (array_bounds_checker::check_array_bounds): Same.
7059 * gimple-expr.c (copy_var_decl): Same.
7060 * gimple-fold.c (gimple_fold_builtin_strcpy): Same.
7061 (gimple_fold_builtin_strncat): Same.
7062 (gimple_fold_builtin_stxcpy_chk): Same.
7063 (gimple_fold_builtin_stpcpy): Same.
7064 (gimple_fold_builtin_sprintf): Same.
7065 (fold_stmt_1): Same.
7066 * gimple-ssa-isolate-paths.c (diag_returned_locals): Same.
7067 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
7068 * gimple-ssa-sprintf.c (handle_printf_call): Same.
7069 * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_store): Same.
7070 * gimple-ssa-warn-restrict.c (maybe_diag_overlap): Same.
7071 * gimple-ssa-warn-restrict.h: Adjust declarations.
7072 (maybe_diag_access_bounds): Replace uses of TREE_NO_WARNING,
7073 gimple_no_warning_p and gimple_set_no_warning with
7074 warning_suppressed_p, and suppress_warning.
7075 (check_call): Same.
7076 (check_bounds_or_overlap): Same.
7077 * gimple.c (gimple_build_call_from_tree): Same.
7078 * gimplify.c (gimplify_return_expr): Same.
7079 (gimplify_cond_expr): Same.
7080 (gimplify_modify_expr_complex_part): Same.
7081 (gimplify_modify_expr): Same.
7082 (gimple_push_cleanup): Same.
7083 (gimplify_expr): Same.
7084 * omp-expand.c (expand_omp_for_generic): Same.
7085 (expand_omp_taskloop_for_outer): Same.
7086 * omp-low.c (lower_rec_input_clauses): Same.
7087 (lower_lastprivate_clauses): Same.
7088 (lower_send_clauses): Same.
7089 (lower_omp_target): Same.
7090 * tree-cfg.c (pass_warn_function_return::execute): Same.
7091 * tree-complex.c (create_one_component_var): Same.
7092 * tree-inline.c (remap_gimple_op_r): Same.
7093 (copy_tree_body_r): Same.
7094 (declare_return_variable): Same.
7095 (expand_call_inline): Same.
7096 * tree-nested.c (lookup_field_for_decl): Same.
7097 * tree-sra.c (create_access_replacement): Same.
7098 (generate_subtree_copies): Same.
7099 * tree-ssa-ccp.c (pass_post_ipa_warn::execute): Same.
7100 * tree-ssa-forwprop.c (combine_cond_expr_cond): Same.
7101 * tree-ssa-loop-ch.c (ch_base::copy_headers): Same.
7102 * tree-ssa-loop-im.c (execute_sm): Same.
7103 * tree-ssa-phiopt.c (cond_store_replacement): Same.
7104 * tree-ssa-strlen.c (maybe_warn_overflow): Same.
7105 (handle_builtin_strcpy): Same.
7106 (maybe_diag_stxncpy_trunc): Same.
7107 (handle_builtin_stxncpy_strncat): Same.
7108 (handle_builtin_strcat): Same.
7109 * tree-ssa-uninit.c (get_no_uninit_warning): Same.
7110 (set_no_uninit_warning): Same.
7111 (uninit_undefined_value_p): Same.
7112 (warn_uninit): Same.
7113 (maybe_warn_operand): Same.
7114 * tree-vrp.c (compare_values_warnv): Same.
7115 * vr-values.c (vr_values::extract_range_for_var_from_comparison_expr): Same.
7116 (test_for_singularity): Same.
7117 * gimple.h (warning_suppressed_p): New function.
7118 (suppress_warning): Same.
7119 (copy_no_warning): Same.
7120 (gimple_set_block): Call gimple_set_location.
7121 (gimple_set_location): Call copy_warning.
7122
7123 2021-06-25 Martin Sebor <msebor@redhat.com>
7124
7125 * tree.h (warning_suppressed_at, copy_warning,
7126 warning_suppressed_p, suppress_warning): New functions.
7127
7128 2021-06-25 Martin Sebor <msebor@redhat.com>
7129
7130 * Makefile.in (OBJS-libcommon): Add diagnostic-spec.o.
7131 * gengtype.c (open_base_files): Add diagnostic-spec.h.
7132 * diagnostic-spec.c: New file.
7133 * diagnostic-spec.h: New file.
7134 * tree.h (no_warning, all_warnings, suppress_warning_at): New
7135 declarations.
7136 * warning-control.cc: New file.
7137
7138 2021-06-25 liuhongt <hongtao.liu@intel.com>
7139
7140 PR target/101185
7141 * config/i386/i386.c (x86_order_regs_for_local_alloc):
7142 Revert r12-1669.
7143
7144 2021-06-24 Andrew MacLeod <amacleod@redhat.com>
7145
7146 PR tree-optimization/101189
7147 * gimple-range-fold.cc (fold_using_range::range_of_range_op): Pass
7148 LHS range of condition to postfold routine.
7149 (fold_using_range::postfold_gcond_edges): Only process the TRUE or
7150 FALSE edge if the LHS range supports it being taken.
7151 * gimple-range-fold.h (postfold_gcond_edges): Add range parameter.
7152
7153 2021-06-24 Andrew MacLeod <amacleod@redhat.com>
7154
7155 * value-relation.cc (equiv_oracle::dump): Do not dump NULL blocks.
7156 (relation_oracle::find_relation_block): Check correct bitmap.
7157 (relation_oracle::dump): Do not dump NULL blocks.
7158
7159 2021-06-24 Andrew MacLeod <amacleod@redhat.com>
7160
7161 * gimple-range-cache.cc (ranger_cache::propagate_cache): Call
7162 range_on_edge instead of manually calculating.
7163
7164 2021-06-24 Andrew MacLeod <amacleod@redhat.com>
7165
7166 * range-op.cc: Fix comment.
7167
7168 2021-06-24 Uroš Bizjak <ubizjak@gmail.com>
7169
7170 PR target/89021
7171 * config/i386/i386-expand.c (ix86_expand_sse_unpack):
7172 Handle V8QI and V4HI modes.
7173 * config/i386/mmx.md (sse4_1_<any_extend:code>v4qiv4hi2):
7174 New insn pattern.
7175 (sse4_1_<any_extend:code>v4qiv4hi2): Ditto.
7176 (mmxpackmode): New mode attribute.
7177 (vec_pack_trunc_<mmxpackmode:mode>): New expander.
7178 (mmxunpackmode): New mode attribute.
7179 (vec_unpacks_lo_<mmxunpackmode:mode>): New expander.
7180 (vec_unpacks_hi_<mmxunpackmode:mode>): Ditto.
7181 (vec_unpacku_lo_<mmxunpackmode:mode>): Ditto.
7182 (vec_unpacku_hi_<mmxunpackmode:mode>): Ditto.
7183 * config/i386/i386.md (extsuffix): Move from ...
7184 * config/i386/sse.md: ... here.
7185
7186 2021-06-24 Eric Botcazou <ebotcazou@adacore.com>
7187
7188 * dwarf2out.c (dwarf2out_assembly_start): Emit .file 0 marker here..
7189 (dwarf2out_finish): ...instead of here.
7190
7191 2021-06-24 Eric Botcazou <ebotcazou@adacore.com>
7192
7193 * configure.ac (--gdwarf-5 option): Use objdump instead of readelf.
7194 (working --gdwarf-4/--gdwarf-5 for all sources): Likewise.
7195 (--gdwarf-4 not refusing generated .debug_line): Adjust for Windows.
7196 * configure: Regenerate.
7197
7198 2021-06-24 Richard Biener <rguenther@suse.de>
7199
7200 * config/i386/sse.md (vec_addsubv4df3, vec_addsubv2df3,
7201 vec_addsubv8sf3, vec_addsubv4sf3): Merge into ...
7202 (vec_addsub<mode>3): ... using a new addsub_cst mode attribute.
7203
7204 2021-06-24 Richard Biener <rguenther@suse.de>
7205
7206 * config/i386/sse.md (avx_addsubv4df3): Rename to
7207 vec_addsubv4df3.
7208 (avx_addsubv8sf3): Rename to vec_addsubv8sf3.
7209 (sse3_addsubv2df3): Rename to vec_addsubv2df3.
7210 (sse3_addsubv4sf3): Rename to vec_addsubv4sf3.
7211 * config/i386/i386-builtin.def: Adjust.
7212 * internal-fn.def (VEC_ADDSUB): New internal optab fn.
7213 * optabs.def (vec_addsub_optab): New optab.
7214 * tree-vect-slp-patterns.c (class addsub_pattern): New.
7215 (slp_patterns): Add addsub_pattern.
7216 * tree-vect-slp.c (vect_optimize_slp): Disable propagation
7217 across CFN_VEC_ADDSUB.
7218 * tree-vectorizer.h (vect_pattern::vect_pattern): Make
7219 m_ops optional.
7220 * doc/md.texi (vec_addsub<mode>3): Document.
7221
7222 2021-06-24 Jakub Jelinek <jakub@redhat.com>
7223
7224 PR middle-end/101170
7225 * df-scan.c (df_ref_record): For paradoxical big-endian SUBREGs
7226 where regno + subreg_regno_offset wraps around use 0 as starting
7227 regno.
7228
7229 2021-06-24 Jakub Jelinek <jakub@redhat.com>
7230
7231 PR middle-end/101172
7232 * stor-layout.c (finish_bitfield_representative): If nextf has
7233 error_mark_node type, set repr type to error_mark_node too.
7234
7235 2021-06-24 Ilya Leoshkevich <iii@linux.ibm.com>
7236
7237 * config/s390/s390.c (s390_function_profiler): Ignore labelno
7238 parameter.
7239 * config/s390/s390.h (NO_PROFILE_COUNTERS): Define.
7240
7241 2021-06-24 Richard Biener <rguenther@suse.de>
7242
7243 * tree-vect-slp.c (vect_optimize_slp): Do not propagate
7244 across operations that have different semantics on different
7245 lanes.
7246
7247 2021-06-24 Jakub Jelinek <jakub@redhat.com>
7248
7249 * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): Document meaning for OpenMP.
7250 * gimplify.c (gimplify_scan_omp_clauses): For OpenMP map clauses
7251 with OMP_CLAUSE_MAP_IN_REDUCTION flag partially defer gimplification
7252 of non-decl OMP_CLAUSE_DECL. For OMP_CLAUSE_IN_REDUCTION on
7253 OMP_TARGET user outer_ctx instead of ctx for placeholders and
7254 initializer/combiner gimplification.
7255 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_MAP_IN_REDUCTION
7256 on target constructs.
7257 (lower_rec_input_clauses): Likewise.
7258 (lower_omp_target): Likewise.
7259 * omp-expand.c (expand_omp_target): Temporarily ignore nowait clause
7260 on target if in_reduction is present.
7261
7262 2021-06-24 Kewen Lin <linkw@linux.ibm.com>
7263
7264 * tree-predcom.c (class pcom_worker): New class.
7265 (release_chain): Renamed to...
7266 (pcom_worker::release_chain): ...this.
7267 (release_chains): Renamed to...
7268 (pcom_worker::release_chains): ...this.
7269 (aff_combination_dr_offset): Renamed to...
7270 (pcom_worker::aff_combination_dr_offset): ...this.
7271 (determine_offset): Renamed to...
7272 (pcom_worker::determine_offset): ...this.
7273 (class comp_ptrs): New class.
7274 (split_data_refs_to_components): Renamed to...
7275 (pcom_worker::split_data_refs_to_components): ...this,
7276 and update with class comp_ptrs.
7277 (suitable_component_p): Renamed to...
7278 (pcom_worker::suitable_component_p): ...this.
7279 (filter_suitable_components): Renamed to...
7280 (pcom_worker::filter_suitable_components): ...this.
7281 (valid_initializer_p): Renamed to...
7282 (pcom_worker::valid_initializer_p): ...this.
7283 (find_looparound_phi): Renamed to...
7284 (pcom_worker::find_looparound_phi): ...this.
7285 (add_looparound_copies): Renamed to...
7286 (pcom_worker::add_looparound_copies): ...this.
7287 (determine_roots_comp): Renamed to...
7288 (pcom_worker::determine_roots_comp): ...this.
7289 (determine_roots): Renamed to...
7290 (pcom_worker::determine_roots): ...this.
7291 (single_nonlooparound_use): Renamed to...
7292 (pcom_worker::single_nonlooparound_use): ...this.
7293 (remove_stmt): Renamed to...
7294 (pcom_worker::remove_stmt): ...this.
7295 (execute_pred_commoning_chain): Renamed to...
7296 (pcom_worker::execute_pred_commoning_chain): ...this.
7297 (execute_pred_commoning): Renamed to...
7298 (pcom_worker::execute_pred_commoning): ...this.
7299 (struct epcc_data): New member worker.
7300 (execute_pred_commoning_cbck): Call execute_pred_commoning
7301 with pcom_worker pointer.
7302 (find_use_stmt): Renamed to...
7303 (pcom_worker::find_use_stmt): ...this.
7304 (find_associative_operation_root): Renamed to...
7305 (pcom_worker::find_associative_operation_root): ...this.
7306 (find_common_use_stmt): Renamed to...
7307 (pcom_worker::find_common_use_stmt): ...this.
7308 (combinable_refs_p): Renamed to...
7309 (pcom_worker::combinable_refs_p): ...this.
7310 (reassociate_to_the_same_stmt): Renamed to...
7311 (pcom_worker::reassociate_to_the_same_stmt): ...this.
7312 (stmt_combining_refs): Renamed to...
7313 (pcom_worker::stmt_combining_refs): ...this.
7314 (combine_chains): Renamed to...
7315 (pcom_worker::combine_chains): ...this.
7316 (try_combine_chains): Renamed to...
7317 (pcom_worker::try_combine_chains): ...this.
7318 (prepare_initializers_chain): Renamed to...
7319 (pcom_worker::prepare_initializers_chain): ...this.
7320 (prepare_initializers): Renamed to...
7321 (pcom_worker::prepare_initializers): ...this.
7322 (prepare_finalizers_chain): Renamed to...
7323 (pcom_worker::prepare_finalizers_chain): ...this.
7324 (prepare_finalizers): Renamed to...
7325 (pcom_worker::prepare_finalizers): ...this.
7326 (tree_predictive_commoning_loop): Renamed to...
7327 (pcom_worker::tree_predictive_commoning_loop): ...this, adjust
7328 some calls and remove some cleanup code.
7329 (tree_predictive_commoning): Adjusted to use pcom_worker instance.
7330 (static variable looparound_phis): Remove.
7331 (static variable name_expansions): Remove.
7332
7333 2021-06-24 Richard Biener <rguenther@suse.de>
7334
7335 * tree-vect-slp.c (slpg_vertex): New struct.
7336 (vect_slp_build_vertices): Adjust.
7337 (vect_optimize_slp): Likewise. Maintain an outgoing permute
7338 and a materialized one.
7339
7340 2021-06-24 Richard Biener <rguenther@suse.de>
7341
7342 PR tree-optimization/101105
7343 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
7344 Only ignore steps when they are equal or scalar order is preserved.
7345
7346 2021-06-24 liuhongt <hongtao.liu@intel.com>
7347
7348 PR target/98434
7349 * config/i386/i386-expand.c (ix86_expand_vec_interleave):
7350 Adjust comments for ix86_expand_vecop_qihi2.
7351 (ix86_expand_vecmul_qihi): Renamed to ..
7352 (ix86_expand_vecop_qihi2): Adjust function prototype to
7353 support shift operation, add static to definition.
7354 (ix86_expand_vec_shift_qihi_constant): Add static to definition.
7355 (ix86_expand_vecop_qihi): Call ix86_expand_vecop_qihi2 and
7356 ix86_expand_vec_shift_qihi_constant.
7357 * config/i386/i386-protos.h (ix86_expand_vecmul_qihi): Deleted.
7358 (ix86_expand_vec_shift_qihi_constant): Deleted.
7359 * config/i386/sse.md (VI12_256_512_AVX512VL): New mode
7360 iterator.
7361 (mulv8qi3): Call ix86_expand_vecop_qihi directly, add
7362 condition TARGET_64BIT.
7363 (mul<mode>3): Ditto.
7364 (<insn><mode>3): Ditto.
7365 (vlshr<mode>3): Extend to support avx512 vlshr.
7366 (v<insn><mode>3): New expander for
7367 vashr/vlshr/vashl.
7368 (v<insn>v8qi3): Ditto.
7369 (vashrv8hi3<mask_name>): Renamed to ..
7370 (vashr<mode>3): And extend to support V16QImode for avx512.
7371 (vashrv16qi3): Deleted.
7372 (vashrv2di3<mask_name>): Extend expander to support avx512
7373 instruction.
7374
7375 2021-06-23 Dimitar Dimitrov <dimitar@dinux.eu>
7376
7377 * doc/lto.texi (Design Overview): Update that slim objects are
7378 the default.
7379
7380 2021-06-23 Aaron Sawdey <acsawdey@linux.ibm.com>
7381
7382 * config/rs6000/rs6000-cpus.def: Take OPTION_MASK_PCREL_OPT out
7383 of OTHER_POWER10_MASKS so it will not be enabled by default.
7384
7385 2021-06-23 Richard Biener <rguenther@suse.de>
7386 Martin Jambor <mjambor@suse.cz>
7387
7388 * tree-inline.c (setup_one_parameter): Set TREE_READONLY of the
7389 param replacement unconditionally. Adjust comment.
7390
7391 2021-06-23 Andrew MacLeod <amacleod@redhat.com>
7392
7393 * Makefile.in (OBJS): Add gimple-range-fold.o
7394 * gimple-range-fold.cc: New.
7395 * gimple-range-fold.h: New.
7396 * gimple-range-gori.cc (gimple_range_calc_op1): Move to here.
7397 (gimple_range_calc_op2): Ditto.
7398 * gimple-range-gori.h: Move prototypes to here.
7399 * gimple-range.cc: Adjust include files.
7400 (fur_source:fur_source): Relocate to gimple-range-fold.cc.
7401 (fur_source::get_operand): Ditto.
7402 (fur_source::get_phi_operand): Ditto.
7403 (fur_source::query_relation): Ditto.
7404 (fur_source::register_relation): Ditto.
7405 (class fur_edge): Ditto.
7406 (fur_edge::fur_edge): Ditto.
7407 (fur_edge::get_operand): Ditto.
7408 (fur_edge::get_phi_operand): Ditto.
7409 (fur_stmt::fur_stmt): Ditto.
7410 (fur_stmt::get_operand): Ditto.
7411 (fur_stmt::get_phi_operand): Ditto.
7412 (fur_stmt::query_relation): Ditto.
7413 (class fur_depend): Relocate to gimple-range-fold.h.
7414 (fur_depend::fur_depend): Relocate to gimple-range-fold.cc.
7415 (fur_depend::register_relation): Ditto.
7416 (fur_depend::register_relation): Ditto.
7417 (class fur_list): Ditto.
7418 (fur_list::fur_list): Ditto.
7419 (fur_list::get_operand): Ditto.
7420 (fur_list::get_phi_operand): Ditto.
7421 (fold_range): Ditto.
7422 (adjust_pointer_diff_expr): Ditto.
7423 (gimple_range_adjustment): Ditto.
7424 (gimple_range_base_of_assignment): Ditto.
7425 (gimple_range_operand1): Ditto.
7426 (gimple_range_operand2): Ditto.
7427 (gimple_range_calc_op1): Relocate to gimple-range-gori.cc.
7428 (gimple_range_calc_op2): Ditto.
7429 (fold_using_range::fold_stmt): Relocate to gimple-range-fold.cc.
7430 (fold_using_range::range_of_range_op): Ditto.
7431 (fold_using_range::range_of_address): Ditto.
7432 (fold_using_range::range_of_phi): Ditto.
7433 (fold_using_range::range_of_call): Ditto.
7434 (fold_using_range::range_of_builtin_ubsan_call): Ditto.
7435 (fold_using_range::range_of_builtin_call): Ditto.
7436 (fold_using_range::range_of_cond_expr): Ditto.
7437 (fold_using_range::range_of_ssa_name_with_loop_info): Ditto.
7438 (fold_using_range::relation_fold_and_or): Ditto.
7439 (fold_using_range::postfold_gcond_edges): Ditto.
7440 * gimple-range.h: Add gimple-range-fold.h to include files. Change
7441 GIMPLE_RANGE_STMT_H to GIMPLE_RANGE_H.
7442 (gimple_range_handler): Relocate to gimple-range-fold.h.
7443 (gimple_range_ssa_p): Ditto.
7444 (range_compatible_p): Ditto.
7445 (class fur_source): Ditto.
7446 (class fur_stmt): Ditto.
7447 (class fold_using_range): Ditto.
7448 (gimple_range_calc_op1): Relocate to gimple-range-gori.h
7449 (gimple_range_calc_op2): Ditto.
7450
7451 2021-06-23 Andrew MacLeod <amacleod@redhat.com>
7452
7453 PR tree-optimization/101148
7454 PR tree-optimization/101014
7455 * gimple-range-cache.cc (ranger_cache::ranger_cache): Adjust.
7456 (ranger_cache::~ranger_cache): Adjust.
7457 (ranger_cache::block_range): Check if propagation disallowed.
7458 (ranger_cache::propagate_cache): Disallow propagation if new value
7459 can't be stored properly.
7460 * gimple-range-cache.h (ranger_cache::m_propfail): New member.
7461
7462 2021-06-23 Andrew MacLeod <amacleod@redhat.com>
7463
7464 * gimple-range-cache.cc (class ssa_block_ranges): Adjust prototype.
7465 (sbr_vector::set_bb_range): Return true.
7466 (class sbr_sparse_bitmap): Adjust.
7467 (sbr_sparse_bitmap::set_bb_range): Return value.
7468 (block_range_cache::set_bb_range): Return value.
7469 (ranger_cache::propagate_cache): Use return value to print msg.
7470 * gimple-range-cache.h (class block_range_cache): Adjust.
7471
7472 2021-06-23 Andrew MacLeod <amacleod@redhat.com>
7473
7474 * gimple-range.cc (dump_bb): Use range_on_edge from the cache.
7475
7476 2021-06-23 Jeff Law <jeffreyalaw@gmail.com>
7477
7478 * config/h8300/logical.md (<code><mode>3<ccnz>): Use <cczn>
7479 so this pattern can be used for test/compare removal. Pass
7480 current insn to compute_logical_op_length and output_logical_op.
7481 * config/h8300/h8300.c (compute_logical_op_cc): Remove.
7482 (h8300_and_costs): Add argument to compute_logical_op_length.
7483 (output_logical_op): Add new argument. Use it to determine if the
7484 condition codes are used and adjust the output accordingly.
7485 (compute_logical_op_length): Add new argument and update length
7486 computations when condition codes are used.
7487 * config/h8300/h8300-protos.h (compute_logical_op_length): Update
7488 prototype.
7489 (output_logical_op): Likewise.
7490
7491 2021-06-23 Uroš Bizjak <ubizjak@gmail.com>
7492
7493 PR target/89021
7494 * config/i386/i386-expand.c (expand_vec_perm_pshufb):
7495 Handle 64bit modes for TARGET_XOP. Use indirect gen_* functions.
7496 * config/i386/mmx.md (mmx_ppermv64): New insn pattern.
7497 * config/i386/i386.md (unspec): Move UNSPEC_XOP_PERMUTE from ...
7498 * config/i386/sse.md (unspec): ... here.
7499
7500 2021-06-23 Martin Liska <mliska@suse.cz>
7501
7502 PR target/98636
7503 * optc-save-gen.awk: Put back arm_fp16_format to
7504 checked_options.
7505
7506 2021-06-23 Uroš Bizjak <ubizjak@gmail.com>
7507
7508 PR target/101175
7509 * config/i386/i386.md (bsr_rex64): Add zero-flag setting RTX.
7510 (bsr): Ditto.
7511 (*bsrhi): Remove.
7512 (clz<mode>2): Update RTX pattern for additions.
7513
7514 2021-06-23 Jakub Jelinek <jakub@redhat.com>
7515
7516 PR middle-end/101167
7517 * omp-low.c (lower_omp_regimplify_p): Regimplify also PARM_DECLs
7518 and RESULT_DECLs that have DECL_HAS_VALUE_EXPR_P set.
7519
7520 2021-06-22 Sergei Trofimovich <siarheit@google.com>
7521
7522 * doc/rtl.texi: drop unbalanced parenthesis.
7523
7524 2021-06-22 Richard Biener <rguenther@suse.de>
7525
7526 PR middle-end/101156
7527 * gimplify.c (gimplify_expr): Remove premature incorrect
7528 optimization.
7529
7530 2021-06-22 Jakub Jelinek <jakub@redhat.com>
7531
7532 PR tree-optimization/101159
7533 * tree-vect-patterns.c (vect_recog_popcount_pattern): Fix some
7534 comment typos.
7535
7536 2021-06-22 Jakub Jelinek <jakub@redhat.com>
7537
7538 PR middle-end/101160
7539 * function.c (assign_parms): For decl_result with TYPE_EMPTY_P type
7540 clear crtl->return_rtx instead of keeping it referencing a pseudo.
7541
7542 2021-06-22 Jakub Jelinek <jakub@redhat.com>
7543 Andrew Pinski <apinski@marvell.com>
7544
7545 PR tree-optimization/101162
7546 * fold-const.c (range_check_type): Handle OFFSET_TYPE like pointer
7547 types.
7548
7549 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
7550
7551 * range-op.cc (range_relational_tests): New.
7552 (range_op_tests): Call range_relational_tests.
7553
7554 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
7555
7556 * range-op.cc (operator_cast::lhs_op1_relation): New.
7557 (operator_identity::lhs_op1_relation): Mew.
7558
7559 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
7560
7561 * range-op.cc (operator_minus::op1_op2_relation_effect): New.
7562
7563 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
7564
7565 * range-op.cc (operator_plus::lhs_op1_relation): New.
7566 (operator_plus::lhs_op2_relation): New.
7567
7568 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
7569
7570 * gimple-range-cache.cc (ranger_cache::ranger_cache): Create a
7571 relation_oracle if dominators exist.
7572 (ranger_cache::~ranger_cache): Dispose of oracle.
7573 (ranger_cache::dump_bb): Dump oracle.
7574 * gimple-range.cc (fur_source::fur_source): New.
7575 (fur_source::get_operand): Use mmeber query.
7576 (fur_source::get_phi_operand): Use member_query.
7577 (fur_source::query_relation): New.
7578 (fur_source::register_dependency): Delete.
7579 (fur_source::register_relation): New.
7580 (fur_edge::fur_edge): Adjust.
7581 (fur_edge::get_phi_operand): Fix comment.
7582 (fur_edge::query): Delete.
7583 (fur_stmt::fur_stmt): Adjust.
7584 (fur_stmt::query): Delete.
7585 (fur_depend::fur_depend): Adjust.
7586 (fur_depend::register_relation): New.
7587 (fur_depend::register_relation): New.
7588 (fur_list::fur_list): Adjust.
7589 (fur_list::get_operand): Use member query.
7590 (fold_using_range::range_of_range_op): Process and query relations.
7591 (fold_using_range::range_of_address): Adjust dependency call.
7592 (fold_using_range::range_of_phi): Ditto.
7593 (gimple_ranger::gimple_ranger): New. Use ranger_ache oracle.
7594 (fold_using_range::relation_fold_and_or): New.
7595 (fold_using_range::postfold_gcond_edges): New.
7596 * gimple-range.h (class gimple_ranger): Adjust.
7597 (class fur_source): Adjust members.
7598 (class fur_stmt): Ditto.
7599 (class fold_using_range): Ditto.
7600
7601 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
7602
7603 * range-op.cc (range_operator::wi_fold): Apply relation effect.
7604 (range_operator::fold_range): Adjust and apply relation effect.
7605 (*::fold_range): Add relation parameters.
7606 (*::op1_range): Ditto.
7607 (*::op2_range): Ditto.
7608 (range_operator::lhs_op1_relation): New.
7609 (range_operator::lhs_op2_relation): New.
7610 (range_operator::op1_op2_relation): New.
7611 (range_operator::op1_op2_relation_effect): New.
7612 (relop_early_resolve): New.
7613 (operator_equal::op1_op2_relation): New.
7614 (operator_equal::fold_range): Call relop_early_resolve.
7615 (operator_not_equal::op1_op2_relation): New.
7616 (operator_not_equal::fold_range): Call relop_early_resolve.
7617 (operator_lt::op1_op2_relation): New.
7618 (operator_lt::fold_range): Call relop_early_resolve.
7619 (operator_le::op1_op2_relation): New.
7620 (operator_le::fold_range): Call relop_early_resolve.
7621 (operator_gt::op1_op2_relation): New.
7622 (operator_gt::fold_range): Call relop_early_resolve.
7623 (operator_ge::op1_op2_relation): New.
7624 (operator_ge::fold_range): Call relop_early_resolve.
7625 * range-op.h (class range_operator): Adjust parameters and methods.
7626
7627 2021-06-22 Andrew MacLeod <amacleod@redhat.com>
7628
7629 * Makefile.in (OBJS): Add value-relation.o.
7630 * gimple-range.h: Adjust include files.
7631 * tree-data-ref.c: Adjust include file order.
7632 * value-query.cc (range_query::get_value_range): Default to no oracle.
7633 (range_query::query_relation): New.
7634 (range_query::query_relation): New.
7635 * value-query.h (class range_query): Adjust.
7636 * value-relation.cc: New.
7637 * value-relation.h: New.
7638
7639 2021-06-22 Richard Biener <rguenther@suse.de>
7640
7641 PR tree-optimization/101151
7642 * tree-ssa-sink.c (statement_sink_location): Expand irreducible
7643 region check.
7644
7645 2021-06-22 Jojo R <rjiejie@linux.alibaba.com>
7646
7647 * config/riscv/riscv.c (thead_c906_tune_info): New.
7648 (riscv_tune_info_table): Use new tune.
7649
7650 2021-06-22 Richard Biener <rguenther@suse.de>
7651
7652 PR tree-optimization/101158
7653 * tree-vect-slp.c (vect_build_slp_tree_1): Move same operand
7654 checking after checking for matching operation.
7655
7656 2021-06-22 Richard Biener <rguenther@suse.de>
7657
7658 PR tree-optimization/101159
7659 * tree-vect-patterns.c (vect_recog_popcount_pattern): Add
7660 missing NULL vectype check.
7661
7662 2021-06-22 Richard Biener <rguenther@suse.de>
7663
7664 PR tree-optimization/101154
7665 * tree-vect-slp.c (vect_build_slp_tree_2): Fix out-of-bound access.
7666
7667 2021-06-22 Jakub Jelinek <jakub@redhat.com>
7668
7669 PR target/11877
7670 * config/i386/i386-protos.h (ix86_last_zero_store_uid): Declare.
7671 * config/i386/i386-expand.c (ix86_last_zero_store_uid): New variable.
7672 * config/i386/i386.c (ix86_expand_prologue): Clear it.
7673 * config/i386/i386.md (peephole2s for 1/2/4 stores of const0_rtx):
7674 Remove "" from match_operand. Emit new insns using emit_move_insn and
7675 set ix86_last_zero_store_uid to INSN_UID of the last store.
7676 Add peephole2s for 1/2/4 stores of const0_rtx following previous
7677 successful peep2s.
7678
7679 2021-06-22 Martin Liska <mliska@suse.cz>
7680
7681 * auto-profile.c (AUTO_PROFILE_VERSION): Bump as string format
7682 was changed.
7683
7684 2021-06-22 Martin Liska <mliska@suse.cz>
7685
7686 * gcov-io.h: Remove padding entries.
7687
7688 2021-06-22 liuhongt <hongtao.liu@intel.com>
7689
7690 PR tree-optimization/97770
7691 * tree-vect-patterns.c (vect_recog_popcount_pattern):
7692 New.
7693 (vect_recog_func vect_vect_recog_func_ptrs): Add new pattern.
7694
7695 2021-06-22 liuhongt <hongtao.liu@intel.com>
7696
7697 PR target/100267
7698 * config/i386/i386-builtin.def (BDESC): Adjust builtin name.
7699 * config/i386/sse.md (<avx512>_expand<mode>_mask): Rename to ..
7700 (expand<mode>_mask): this ..
7701 (*expand<mode>_mask): New pre_reload splitter to transform
7702 v{,p}expand* to vmov* when mask is zero, all ones, or has all
7703 ones in it's lower part, otherwise still generate
7704 v{,p}expand*.
7705
7706 2021-06-22 liuhongt <hongtao.liu@intel.com>
7707
7708 PR target/100310
7709 * config/i386/i386-expand.c
7710 (ix86_expand_special_args_builtin): Keep constm1_operand only
7711 if it satisfies insn's operand predicate.
7712
7713 2021-06-21 Jason Merrill <jason@redhat.com>
7714
7715 PR target/88529
7716 * df-scan.c (df_ref_record): Check that regno < endregno.
7717 * function.c (assign_parms, expand_function_end): Do nothing with a
7718 TYPE_EMPTY_P result.
7719
7720 2021-06-21 Richard Biener <rguenther@suse.de>
7721
7722 PR tree-optimization/101120
7723 * tree-vect-data-refs.c (bump_vector_ptr): Fold the
7724 built increment.
7725 * tree-vect-slp.c (vect_transform_slp_perm_load): Add
7726 DR chain DCE capability.
7727 * tree-vectorizer.h (vect_transform_slp_perm_load): Adjust.
7728 * tree-vect-stmts.c (vectorizable_load): Remove unused
7729 loads in the DR chain for SLP.
7730
7731 2021-06-21 Jakub Jelinek <jakub@redhat.com>
7732
7733 PR inline-asm/100785
7734 * gimplify.c (gimplify_asm_expr): Don't diagnose errors if
7735 output or input operands were already error_mark_node.
7736 * cfgexpand.c (expand_asm_stmt): If errors are emitted,
7737 remove all inputs, outputs and clobbers from the asm and
7738 set template to "".
7739
7740 2021-06-21 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
7741
7742 * config/arm/arm_neon.h (vceq_s8): Replace builtin with __a == __b.
7743 (vceq_s16): Likewise.
7744 (vceq_s32): Likewise.
7745 (vceq_u8): Likewise.
7746 (vceq_u16): Likewise.
7747 (vceq_u32): Likewise.
7748 (vceq_p8): Likewise.
7749 (vceqq_s8): Likewise.
7750 (vceqq_s16): Likewise.
7751 (vceqq_s32): Likewise.
7752 (vceqq_u8): Likewise.
7753 (vceqq_u16): Likewise.
7754 (vceqq_u32): Likewise.
7755 (vceqq_p8): Likewise.
7756 (vceq_f32): Gate __a == __b on __FAST_MATH__.
7757 (vceqq_f32): Likewise.
7758 (vceq_f16): Likewise.
7759 (vceqq_f16): Likewise.
7760
7761 2021-06-21 prathamesh.kulkarni <prathamesh.kulkarni@linaro.org>
7762
7763 PR target/97906
7764 * config/arm/iterators.md (NEON_VACMP): Remove.
7765 * config/arm/neon.md (neon_vca<cmp_op><mode>): Use GLTE instead of GTGE
7766 iterator.
7767 (neon_vca<cmp_op><mode>_insn): Likewise.
7768 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Use NEON_VAGLTE instead of
7769 NEON_VACMP.
7770
7771 2021-06-21 Richard Biener <rguenther@suse.de>
7772
7773 PR tree-optimization/101121
7774 * tree-vect-slp.c (vect_build_slp_tree_2): To not fail fatally
7775 when we just lack a stmt with the desired op when doing permutation.
7776 (vect_build_slp_tree): When caching a failed SLP build attempt
7777 assert that at least one lane is marked as not matching.
7778
7779 2021-06-21 liuhongt <hongtao.liu@intel.com>
7780
7781 PR target/101142
7782 * config/i386/i386.md: (*anddi_1): Disparage slightly the mask
7783 register alternative.
7784 (*and<mode>_1): Ditto.
7785 (*andqi_1): Ditto.
7786 (*andn<mode>_1): Ditto.
7787 (*<code><mode>_1): Ditto.
7788 (*<code>qi_1): Ditto.
7789 (*one_cmpl<mode>2_1): Ditto.
7790 (*one_cmplsi2_1_zext): Ditto.
7791 (*one_cmplqi2_1): Ditto.
7792 * config/i386/i386.c (x86_order_regs_for_local_alloc): Change
7793 the order of mask registers to be before general registers.
7794
7795 2021-06-21 Roger Sayle <roger@nextmovesoftware.com>
7796
7797 PR target/11877
7798 * config/i386/i386.md: New define_peephole2s to shrink writing
7799 1, 2 or 4 consecutive zeros to memory when optimizing for size.
7800
7801 2021-06-18 Jeff Law <jeffreyalaw@gmail.com>
7802
7803 * config/h8300/h8300.c (h8300_select_cc_mode): Handle SYMBOL_REF.
7804 * config/h8300/logical.md (<code><mode>3 logcial expander): Generate
7805 more efficient code when the source can be trivially simplified.
7806
7807 2021-06-18 Andrew MacLeod <amacleod@redhat.com>
7808
7809 * gimple-range-cache.cc (ranger_cache::range_of_def): Calculate
7810 a range if global is not available.
7811 (ranger_cache::entry_range): Fallback to range_of_def.
7812 * gimple-range-cache.h (range_of_def): Adjust prototype.
7813
7814 2021-06-18 Andrew MacLeod <amacleod@redhat.com>
7815
7816 PR tree-optimization/101014
7817 * gimple-range-cache.cc (ranger_cache::ranger_cache): Remove poor
7818 value list.
7819 (ranger_cache::~ranger_cache): Ditto.
7820 (ranger_cache::enable_new_values): Delete.
7821 (ranger_cache::push_poor_value): Delete.
7822 (ranger_cache::range_of_def): Remove poor value processing.
7823 (ranger_cache::entry_range): Ditto.
7824 (ranger_cache::fill_block_cache): Ditto.
7825 * gimple-range-cache.h (class ranger_cache): Remove poor value members.
7826 * gimple-range.cc (gimple_ranger::range_of_expr): Remove call.
7827 * gimple-range.h (class gimple_ranger): Adjust.
7828
7829 2021-06-18 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
7830
7831 PR target/100856
7832 * common/config/arm/arm-common.c (arm_canon_arch_option_1): New function
7833 derived from arm_canon_arch.
7834 (arm_canon_arch_option): Call it.
7835 (arm_canon_arch_multilib_option): New function.
7836 * config/arm/arm-cpus.in (IGNORE_FOR_MULTILIB): New fgroup.
7837 * config/arm/arm.h (arm_canon_arch_multilib_option): New prototype.
7838 (CANON_ARCH_MULTILIB_SPEC_FUNCTION): New macro.
7839 (MULTILIB_ARCH_CANONICAL_SPECS): New macro.
7840 (DRIVER_SELF_SPECS): Add MULTILIB_ARCH_CANONICAL_SPECS.
7841 * config/arm/arm.opt (mlibarch): New option.
7842 * config/arm/t-rmprofile (MULTILIB_MATCHES): For armv8*-m, replace use
7843 of march on RHS with mlibarch.
7844
7845 2021-06-18 Marcel Vollweiler <marcel@codesourcery.com>
7846
7847 * config.in: Regenerate.
7848 * config/gcn/gcn.c (print_operand_address): Fix for global_load assembler
7849 functions.
7850 * configure: Regenerate.
7851 * configure.ac: Fix for global_load assembler functions.
7852
7853 2021-06-18 Richard Biener <rguenther@suse.de>
7854
7855 PR tree-optimization/101112
7856 * tree-vect-slp.c (vect_slp_linearize_chain): Fix condition
7857 to lookup a pattern stmt def.
7858
7859 2021-06-18 Jakub Jelinek <jakub@redhat.com>
7860
7861 PR middle-end/101062
7862 * stor-layout.c (finish_bitfield_layout): Don't add bitfield
7863 representatives in QUAL_UNION_TYPE.
7864
7865 2021-06-18 Andrew Pinski <apinski@marvell.com>
7866
7867 * tree-ssa-phiopt.c (replace_phi_edge_with_variable):
7868 Add counting of how many times it is done.
7869 (factor_out_conditional_conversion): Likewise.
7870 (match_simplify_replacement): Likewise.
7871 (value_replacement): Likewise.
7872 (spaceship_replacement): Likewise.
7873 (cond_store_replacement): Likewise.
7874 (cond_if_else_store_replacement_1): Likewise.
7875 (hoist_adjacent_loads): Likewise.
7876
7877 2021-06-18 Andrew Pinski <apinski@marvell.com>
7878
7879 * tree-cfg.c (verify_gimple_assign_unary): Reject point and offset
7880 types on NEGATE_EXPR, ABS_EXPR, BIT_NOT_EXPR, PAREN_EXPR and CNONJ_EXPR.
7881 (verify_gimple_assign_binary): Reject point and offset types on
7882 MULT_EXPR, MULT_HIGHPART_EXPR, TRUNC_DIV_EXPR, CEIL_DIV_EXPR,
7883 FLOOR_DIV_EXPR, ROUND_DIV_EXPR, TRUNC_MOD_EXPR, CEIL_MOD_EXPR,
7884 FLOOR_MOD_EXPR, ROUND_MOD_EXPR, RDIV_EXPR, and EXACT_DIV_EXPR.
7885
7886 2021-06-18 Michael Meissner <meissner@linux.ibm.com>
7887
7888 * config/rs6000/rs6000.c (rs6000_emit_minmax): Add support for ISA
7889 3.1 IEEE 128-bit floating point xsmaxcqp/xsmincqp instructions.
7890 * config/rs6000/rs6000.md (s<minmax><mode>3, IEEE128 iterator):
7891 New insns.
7892
7893 2021-06-17 Aaron Sawdey <acsawdey@linux.ibm.com>
7894
7895 * config/rs6000/genfusion.pl (gen_logical_addsubf): Add
7896 earlyclobber to alts 0/1.
7897 (gen_addadd): Add earlyclobber to alts 0/1.
7898 * config/rs6000/fusion.md: Regenerate file.
7899
7900 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
7901
7902 * cfgloopanal.c (get_loop_hot_path): Make path an auto_vec.
7903
7904 2021-06-17 Andrew MacLeod <amacleod@redhat.com>
7905
7906 * gimple-range-cache.cc: Comment cleanups.
7907 * gimple-range-gori.cc: Comment cleanups.
7908 * gimple-range.cc: Comment/spacing cleanups
7909 * value-range.h: Comment cleanups.
7910
7911 2021-06-17 H.J. Lu <hjl.tools@gmail.com>
7912
7913 PR target/100704
7914 * calls.c (expand_call): Replace PUSH_ARGS with
7915 targetm.calls.push_argument (0).
7916 (emit_library_call_value_1): Likewise.
7917 * defaults.h (PUSH_ARGS): Removed.
7918 (PUSH_ARGS_REVERSED): Replace PUSH_ARGS with
7919 targetm.calls.push_argument (0).
7920 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
7921 (emit_push_insn): Pass the number bytes to push to
7922 targetm.calls.push_argument and pass 0 if ARGS_ADDR is 0.
7923 * hooks.c (hook_bool_uint_true): New.
7924 * hooks.h (hook_bool_uint_true): Likewise.
7925 * rtlanal.c (nonzero_bits1): Replace PUSH_ARGS with
7926 targetm.calls.push_argument (0).
7927 * target.def (push_argument): Add a targetm.calls hook.
7928 * targhooks.c (default_push_argument): New.
7929 * targhooks.h (default_push_argument): Likewise.
7930 * config/bpf/bpf.h (PUSH_ARGS): Removed.
7931 * config/cr16/cr16.c (TARGET_PUSH_ARGUMENT): New.
7932 * config/cr16/cr16.h (PUSH_ARGS): Removed.
7933 * config/i386/i386.c (ix86_push_argument): New.
7934 (TARGET_PUSH_ARGUMENT): Likewise.
7935 * config/i386/i386.h (PUSH_ARGS): Removed.
7936 * config/m32c/m32c.c (TARGET_PUSH_ARGUMENT): New.
7937 * config/m32c/m32c.h (PUSH_ARGS): Removed.
7938 * config/nios2/nios2.h (PUSH_ARGS): Likewise.
7939 * config/pru/pru.h (PUSH_ARGS): Likewise.
7940 * doc/tm.texi.in: Remove PUSH_ARGS documentation. Add
7941 TARGET_PUSH_ARGUMENT hook.
7942 * doc/tm.texi: Regenerated.
7943
7944 2021-06-17 Uroš Bizjak <ubizjak@gmail.com>
7945
7946 PR target/97194
7947 * config/i386/i386-expand.c (expand_vector_set_var):
7948 Handle V2FS mode remapping. Pass TARGET_MMX_WITH_SSE to
7949 ix86_expand_vector_init_duplicate.
7950 (ix86_expand_vector_init_duplicate): Emit insv_1 for
7951 QImode for !TARGET_PARTIAL_REG_STALL.
7952 * config/i386/predicates.md (vec_setm_mmx_operand): New predicate.
7953 * config/i386/mmx.md (vec_setv2sf): Use vec_setm_mmx_operand
7954 as operand 2 predicate. Call ix86_expand_vector_set_var
7955 for non-constant index operand.
7956 (vec_setv2si): Ditto.
7957 (vec_setv4hi): Ditto.
7958 (vec_setv8qi): ditto.
7959
7960 2021-06-17 Aldy Hernandez <aldyh@redhat.com>
7961
7962 PR tree-optimization/100790
7963 * gimple-range.cc (range_of_builtin_call): Cleanup clz and ctz
7964 code.
7965
7966 2021-06-17 Martin Liska <mliska@suse.cz>
7967
7968 * doc/invoke.texi: Use consistently -O1 instead of -O.
7969
7970 2021-06-17 Martin Liska <mliska@suse.cz>
7971
7972 * gcov-io.h: Update documentation entry about string format.
7973
7974 2021-06-17 Marius Hillenbrand <mhillen@linux.ibm.com>
7975
7976 PR target/100871
7977 * config/s390/vecintrin.h (vec_doublee): Fix to use
7978 __builtin_s390_vflls.
7979 (vec_floate): Fix to use __builtin_s390_vflrd.
7980
7981 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
7982
7983 * dominance.c (get_dominated_to_depth): Return auto_vec<basic_block>.
7984 * dominance.h (get_dominated_to_depth): Likewise.
7985 (get_all_dominated_blocks): Likewise.
7986 * cfgcleanup.c (delete_unreachable_blocks): Adjust.
7987 * gcse.c (hoist_code): Likewise.
7988 * tree-cfg.c (remove_edge_and_dominated_blocks): Likewise.
7989 * tree-parloops.c (oacc_entry_exit_ok): Likewise.
7990 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
7991 * tree-ssa-phiprop.c (pass_phiprop::execute): Likewise.
7992
7993 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
7994
7995 * dominance.c (get_dominated_by_region): Return auto_vec<basic_block>.
7996 * dominance.h (get_dominated_by_region): Likewise.
7997 * tree-cfg.c (gimple_duplicate_sese_region): Adjust.
7998 (gimple_duplicate_sese_tail): Likewise.
7999 (move_sese_region_to_fn): Likewise.
8000
8001 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
8002
8003 * dominance.c (get_dominated_by): Return auto_vec<basic_block>.
8004 * dominance.h (get_dominated_by): Likewise.
8005 * auto-profile.c (afdo_find_equiv_class): Adjust.
8006 * cfgloopmanip.c (duplicate_loop_to_header_edge): Likewise.
8007 * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
8008 * tree-cfg.c (test_linear_chain): Likewise.
8009 (test_diamond): Likewise.
8010
8011 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
8012
8013 * cfgloop.h (get_loop_hot_path): Return auto_vec<basic_block>.
8014 * cfgloopanal.c (get_loop_hot_path): Likewise.
8015 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise.
8016
8017 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
8018
8019 * cgraph.c (cgraph_node::collect_callers): Return
8020 auto_vec<cgraph_edge *>.
8021 * cgraph.h (cgraph_node::collect_callers): Likewise.
8022 * ipa-cp.c (create_specialized_node): Adjust.
8023 (decide_about_value): Likewise.
8024 (decide_whether_version_node): Likewise.
8025 * ipa-sra.c (process_isra_node_results): Likewise.
8026
8027 2021-06-17 Trevor Saunders <tbsaunde@tbsaunde.org>
8028
8029 * vec.h (vl_ptr>::using_auto_storage): Handle null m_vec.
8030 (auto_vec<T, 0>::auto_vec): Define move constructor, and delete copy
8031 constructor.
8032 (auto_vec<T, 0>::operator=): Define move assignment and delete copy
8033 assignment.
8034
8035 2021-06-17 Aldy Hernandez <aldyh@redhat.com>
8036
8037 * gimple-range.cc (debug_seed_ranger): New.
8038 (dump_ranger): New.
8039 (debug_ranger): New.
8040
8041 2021-06-17 Richard Biener <rguenther@suse.de>
8042
8043 PR tree-optimization/54400
8044 * tree-vectorizer.h (enum slp_instance_kind): Add
8045 slp_inst_kind_bb_reduc.
8046 (reduction_fn_for_scalar_code): Declare.
8047 * tree-vect-data-refs.c (vect_slp_analyze_instance_dependence):
8048 Check SLP_INSTANCE_KIND instead of looking at the
8049 representative.
8050 (vect_slp_analyze_instance_alignment): Likewise.
8051 * tree-vect-loop.c (reduction_fn_for_scalar_code): Export.
8052 * tree-vect-slp.c (vect_slp_linearize_chain): Split out
8053 chain linearization from vect_build_slp_tree_2 and generalize
8054 for the use of BB reduction vectorization.
8055 (vect_build_slp_tree_2): Adjust accordingly.
8056 (vect_optimize_slp): Elide permutes at the root of BB reduction
8057 instances.
8058 (vectorizable_bb_reduc_epilogue): New function.
8059 (vect_slp_prune_covered_roots): Likewise.
8060 (vect_slp_analyze_operations): Use them.
8061 (vect_slp_check_for_constructors): Recognize associatable
8062 chains for BB reduction vectorization.
8063 (vectorize_slp_instance_root_stmt): Generate code for the
8064 BB reduction epilogue.
8065
8066 2021-06-17 Andrew MacLeod <amacleod@redhat.com>
8067
8068 * gimple-range-gori.cc (gori_compute::has_edge_range_p): Check with
8069 may_recompute_p.
8070 (gori_compute::may_recompute_p): New.
8071 (gori_compute::outgoing_edge_range_p): Perform recomputations.
8072 * gimple-range-gori.h (class gori_compute): Add prototype.
8073
8074 2021-06-17 Andrew MacLeod <amacleod@redhat.com>
8075
8076 * gimple-range-cache.cc (ranger_cache::range_on_edge): Always return
8077 true when a range can be calculated.
8078 * gimple-range.cc (gimple_ranger::dump_bb): Check has_edge_range_p.
8079
8080 2021-06-16 Martin Sebor <msebor@redhat.com>
8081
8082 * doc/invoke.texi (-Wmismatched-dealloc, -Wmismatched-new-delete):
8083 Correct documented defaults.
8084
8085 2021-06-16 Andrew MacLeod <amacleod@redhat.com>
8086
8087 * gimple-range-cache.cc (ranger_cache::ranger_cache): Initialize
8088 m_new_value_p directly.
8089
8090 2021-06-16 Uroš Bizjak <ubizjak@gmail.com>
8091
8092 PR target/89021
8093 * config/i386/i386-expand.c (expand_vec_perm_2perm_pblendv):
8094 Handle 64bit modes for TARGET_SSE4_1.
8095 (expand_vec_perm_pshufb2): Handle 64bit modes for TARGET_SSSE3.
8096 (expand_vec_perm_even_odd_pack): Handle V4HI mode.
8097 (expand_vec_perm_even_odd_1) <case E_V4HImode>: Expand via
8098 expand_vec_perm_pshufb2 for TARGET_SSSE3 and via
8099 expand_vec_perm_even_odd_pack for TARGET_SSE4_1.
8100 * config/i386/mmx.md (mmx_packusdw): New insn pattern.
8101
8102 2021-06-16 Jonathan Wright <jonathan.wright@arm.com>
8103
8104 * config/aarch64/aarch64-simd.md (aarch64_<sur><addsub>hn<mode>):
8105 Change to an expander that emits the correct instruction
8106 depending on endianness.
8107 (aarch64_<sur><addsub>hn<mode>_insn_le): Define.
8108 (aarch64_<sur><addsub>hn<mode>_insn_be): Define.
8109
8110 2021-06-16 Jonathan Wright <jonathan.wright@arm.com>
8111
8112 * config/aarch64/aarch64-simd-builtins.def: Split generator
8113 for aarch64_<su>qmovn builtins into scalar and vector
8114 variants.
8115 * config/aarch64/aarch64-simd.md (aarch64_<su>qmovn<mode>_insn_le):
8116 Define.
8117 (aarch64_<su>qmovn<mode>_insn_be): Define.
8118 (aarch64_<su>qmovn<mode>): Split into scalar and vector
8119 variants. Change vector variant to an expander that emits the
8120 correct instruction depending on endianness.
8121
8122 2021-06-16 Jonathan Wright <jonathan.wright@arm.com>
8123
8124 * config/aarch64/aarch64-simd-builtins.def: Split generator
8125 for aarch64_sqmovun builtins into scalar and vector variants.
8126 * config/aarch64/aarch64-simd.md (aarch64_sqmovun<mode>):
8127 Split into scalar and vector variants. Change vector variant
8128 to an expander that emits the correct instruction depending
8129 on endianness.
8130 (aarch64_sqmovun<mode>_insn_le): Define.
8131 (aarch64_sqmovun<mode>_insn_be): Define.
8132
8133 2021-06-16 Jonathan Wright <jonathan.wright@arm.com>
8134
8135 * config/aarch64/aarch64-simd.md (aarch64_xtn<mode>_insn_le):
8136 Define - modeling zero-high-half semantics.
8137 (aarch64_xtn<mode>): Change to an expander that emits the
8138 appropriate instruction depending on endianness.
8139 (aarch64_xtn<mode>_insn_be): Define - modeling zero-high-half
8140 semantics.
8141 (aarch64_xtn2<mode>_le): Rename to...
8142 (aarch64_xtn2<mode>_insn_le): This.
8143 (aarch64_xtn2<mode>_be): Rename to...
8144 (aarch64_xtn2<mode>_insn_be): This.
8145 (vec_pack_trunc_<mode>): Emit truncation instruction instead
8146 of aarch64_xtn.
8147 * config/aarch64/iterators.md (Vnarrowd): Add Vnarrowd mode
8148 attribute iterator.
8149
8150 2021-06-16 Martin Jambor <mjambor@suse.cz>
8151
8152 PR tree-optimization/100453
8153 * tree-sra.c (create_access): Disqualify any const candidates
8154 which are written to.
8155 (sra_modify_expr): Do not store sub-replacements back to a const base.
8156 (handle_unscalarized_data_in_subtree): Likewise.
8157 (sra_modify_assign): Likewise. Earlier, use TREE_READONLy test
8158 instead of constant_decl_p.
8159
8160 2021-06-16 Jakub Jelinek <jakub@redhat.com>
8161
8162 PR middle-end/101062
8163 * stor-layout.c (finish_bitfield_representative): For fields in unions
8164 assume nextf is always NULL.
8165 (finish_bitfield_layout): Compute bit field representatives also in
8166 unions, but handle it as if each bitfield was the only field in the
8167 aggregate.
8168
8169 2021-06-16 Richard Biener <rguenther@suse.de>
8170
8171 PR tree-optimization/101088
8172 * tree-ssa-loop-im.c (sm_seq_valid_bb): Only look for
8173 supported refs on edges. Do not assert same ref but
8174 different kind stores are unsuported but mark them so.
8175 (hoist_memory_references): Only look for supported refs
8176 on exits.
8177
8178 2021-06-16 Roger Sayle <roger@nextmovesoftware.com>
8179
8180 PR rtl-optimization/46235
8181 * config/i386/i386.md: New define_split for bt followed by cmov.
8182 (*bt<mode>_setcqi): New define_insn_and_split for bt followed by setc.
8183 (*bt<mode>_setncqi): New define_insn_and_split for bt then setnc.
8184 (*bt<mode>_setnc<mode>): New define_insn_and_split for bt followed
8185 by setnc with zero extension.
8186
8187 2021-06-16 Richard Biener <rguenther@suse.de>
8188
8189 PR tree-optimization/101083
8190 * tree-vect-slp.c (vect_slp_build_two_operator_nodes): Get
8191 vectype as argument.
8192 (vect_build_slp_tree_2): Adjust.
8193
8194 2021-06-15 Martin Sebor <msebor@redhat.com>
8195
8196 PR middle-end/100876
8197 * builtins.c: (gimple_call_return_array): Account for size_t
8198 mangling as either unsigned int or unsigned long
8199
8200 2021-06-15 Jeff Law <jeffreyalaw@gmail.com>
8201
8202 * compare-elim.c (try_eliminate_compare): Run DCE to clean things
8203 up before eliminating comparisons.
8204
8205 2021-06-15 Aldy Hernandez <aldyh@redhat.com>
8206
8207 * range-op.cc (operator_bitwise_or::wi_fold): Make sure
8208 nonzero|X is nonzero.
8209 (range_op_bitwise_and_tests): Add tests for above.
8210
8211 2021-06-15 Carl Love <cel@us.ibm.com>
8212
8213 PR target/101022
8214 * config/rs6000/rs6000-builtin.def (VCMPEQUT): Fix the ICODE for the
8215 enum definition.
8216 (VRLQ, VSLQ, VSRQ, VSRAQ): Remove unused BU_P10_OVERLOAD_2
8217 definitions.
8218
8219 2021-06-15 Tobias Burnus <tobias@codesourcery.com>
8220
8221 PR fortran/92568
8222 * gimplify.c (enum gimplify_defaultmap_kind): Add GDMK_SCALAR_TARGET.
8223 (struct gimplify_omp_ctx): Extend defaultmap array by one.
8224 (new_omp_context): Init defaultmap[GDMK_SCALAR_TARGET].
8225 (omp_notice_variable): Update type classification for Fortran.
8226 (gimplify_scan_omp_clauses): Update calls for new argument; handle
8227 GDMK_SCALAR_TARGET; for Fortran, GDMK_POINTER avoid GOVD_MAP_0LEN_ARRAY.
8228 * langhooks-def.h (lhd_omp_scalar_p): Add 'ptr_ok' argument.
8229 * langhooks.c (lhd_omp_scalar_p): Likewise.
8230 (LANG_HOOKS_OMP_ALLOCATABLE_P, LANG_HOOKS_OMP_SCALAR_TARGET_P): New.
8231 (LANG_HOOKS_DECLS): Add them.
8232 * langhooks.h (struct lang_hooks_for_decls): Add new hooks, update
8233 omp_scalar_p pointer type to include the new bool argument.
8234
8235 2021-06-15 David Malcolm <dmalcolm@redhat.com>
8236
8237 * doc/analyzer.texi
8238 (Special Functions for Debugging the Analyzer): Add
8239 __analyzer_dump_capacity.
8240
8241 2021-06-15 Jakub Jelinek <jakub@redhat.com>
8242
8243 PR target/101046
8244 * expr.c (expand_expr_real_2) <case VEC_PACK_FIX_TRUNC_EXPR,
8245 case VEC_PACK_TRUNC_EXPR>: Clear subtarget when changing mode.
8246
8247 2021-06-15 Richard Biener <rguenther@suse.de>
8248
8249 * cfgloopanal.c (mark_irreducible_loops): Use a dominance
8250 check to identify loop latches.
8251 * cfgloop.c (verify_loop_structure): Likewise.
8252 * loop-init.c (apply_loop_flags): Allow marked irreducible
8253 regions even with multiple latches.
8254 * predict.c (rebuild_frequencies): Simplify.
8255
8256 2021-06-15 Richard Biener <rguenther@suse.de>
8257
8258 * tree-ssa-threadupdate.c
8259 (jump_thread_path_registry::mark_threaded_blocks): Assert we
8260 have marked irreducible regions.
8261
8262 2021-06-14 Martin Sebor <msebor@redhat.com>
8263
8264 PR c++/100876
8265 * builtins.c (gimple_call_return_array): Check for attribute fn spec.
8266 Handle calls to placement new.
8267 (ndecl_dealloc_argno): Avoid placement delete.
8268
8269 2021-06-14 Peter Bergner <bergner@linux.ibm.com>
8270
8271 PR target/100777
8272 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_mma_builtin): Use
8273 create_tmp_reg_or_ssa_name().
8274
8275 2021-06-14 Andrew MacLeod <amacleod@redhat.com>
8276
8277 * gimple-range-cache.cc (ranger_cache::ranger_cache): Adjust.
8278 (ranger_cache::enable_new_values): Set to specified value and
8279 return the old value.
8280 (ranger_cache::disable_new_values): Delete.
8281 (ranger_cache::fill_block_cache): Disable non 1st order derived
8282 poor values.
8283 * gimple-range-cache.h (ranger_cache): Adjust prototypes.
8284 * gimple-range.cc (gimple_ranger::range_of_expr): Adjust.
8285
8286 2021-06-14 Uroš Bizjak <ubizjak@gmail.com>
8287
8288 PR target/101058
8289 * config/i386/i386-expand.c (ix86_vectorize_vec_perm_const):
8290 Return true early when testing with V2HImode.
8291 * config/i386/mmx.md (*punpckwd): Split to sse2_pshuflw_1.
8292
8293 2021-06-14 Christophe Lyon <christophe.lyon@linaro.org>
8294
8295 * config/arm/mve.md (mve_vec_unpack<US>_lo_<mode>): New pattern.
8296 (mve_vec_unpack<US>_hi_<mode>): New pattern.
8297 (@mve_vec_pack_trunc_lo_<mode>): New pattern.
8298 (mve_vmovntq_<supf><mode>): Prefix with '@'.
8299 * config/arm/neon.md (vec_unpack<US>_hi_<mode>): Move to
8300 vec-common.md.
8301 (vec_unpack<US>_lo_<mode>): Likewise.
8302 (vec_pack_trunc_<mode>): Rename to
8303 neon_quad_vec_pack_trunc_<mode>.
8304 * config/arm/vec-common.md (vec_unpack<US>_hi_<mode>): New
8305 pattern.
8306 (vec_unpack<US>_lo_<mode>): New.
8307 (vec_pack_trunc_<mode>): New.
8308
8309 2021-06-14 Richard Biener <rguenther@suse.de>
8310
8311 PR tree-optimization/100934
8312 * tree-ssa-dom.c (pass_dominator::execute): Properly
8313 mark irreducible regions.
8314
8315 2021-06-14 Martin Liska <mliska@suse.cz>
8316
8317 * doc/invoke.texi: Put r{...} on the same line as @item.
8318
8319 2021-06-14 Martin Liska <mliska@suse.cz>
8320
8321 * doc/invoke.texi: Add missing newline.
8322
8323 2021-06-14 Martin Liska <mliska@suse.cz>
8324
8325 * doc/invoke.texi: Remove '+' charasters.
8326
8327 2021-06-14 Claudiu Zissulescu <claziss@synopsys.com>
8328
8329 * config.gcc (arc): Add support for with_cpu option.
8330 * config/arc/arc.h (OPTION_DEFAULT_SPECS): Add fpu.
8331
8332 2021-06-14 Richard Biener <rguenther@suse.de>
8333
8334 PR tree-optimization/101031
8335 * tree-ssa-strlen.c (maybe_invalidate): Increment max_size
8336 instead of size when accounting for a possibly string
8337 terminating nul.
8338
8339 2021-06-14 Martin Liska <mliska@suse.cz>
8340
8341 * gimple-ssa-evrp.c (pointer_equiv_analyzer::~pointer_equiv_analyzer): Use delete[].
8342
8343 2021-06-14 Aldy Hernandez <aldyh@redhat.com>
8344
8345 * value-query.cc (gimple_range_global): Call get_range_global
8346 if called after inlining.
8347
8348 2021-06-13 Uroš Bizjak <ubizjak@gmail.com>
8349
8350 PR target/101021
8351 * config/i386/i386-expand.c (expand_vec_perm_pshufb):
8352 Emit constant permutation insn directly from here.
8353
8354 2021-06-13 Trevor Saunders <tbsaunde@tbsaunde.org>
8355
8356 * attribs.c (find_attribute_namespace): Iterate over vec<> with
8357 range based for.
8358 * auto-profile.c (afdo_find_equiv_class): Likewise.
8359 * gcc.c (do_specs_vec): Likewise.
8360 (do_spec_1): Likewise.
8361 (driver::set_up_specs): Likewise.
8362 * gimple-loop-jam.c (any_access_function_variant_p): Likewise.
8363 * gimple-ssa-store-merging.c (compatible_load_p): Likewise.
8364 (imm_store_chain_info::try_coalesce_bswap): Likewise.
8365 (imm_store_chain_info::coalesce_immediate_stores): Likewise.
8366 (get_location_for_stmts): Likewise.
8367 * graphite-poly.c (print_iteration_domains): Likewise.
8368 (free_poly_bb): Likewise.
8369 (remove_gbbs_in_scop): Likewise.
8370 (free_scop): Likewise.
8371 (dump_gbb_cases): Likewise.
8372 (dump_gbb_conditions): Likewise.
8373 (print_pdrs): Likewise.
8374 (print_scop): Likewise.
8375 * ifcvt.c (cond_move_process_if_block): Likewise.
8376 * lower-subreg.c (decompose_multiword_subregs): Likewise.
8377 * regcprop.c (pass_cprop_hardreg::execute): Likewise.
8378 * sanopt.c (sanitize_rewrite_addressable_params): Likewise.
8379 * sel-sched-dump.c (dump_insn_vector): Likewise.
8380 * store-motion.c (store_ops_ok): Likewise.
8381 (store_killed_in_insn): Likewise.
8382 * timevar.c (timer::named_items::print): Likewise.
8383 * tree-cfgcleanup.c (cleanup_control_flow_pre): Likewise.
8384 (cleanup_tree_cfg_noloop): Likewise.
8385 * tree-data-ref.c (dump_data_references): Likewise.
8386 (print_dir_vectors): Likewise.
8387 (print_dist_vectors): Likewise.
8388 (dump_data_dependence_relations): Likewise.
8389 (dump_dist_dir_vectors): Likewise.
8390 (dump_ddrs): Likewise.
8391 (create_runtime_alias_checks): Likewise.
8392 (free_subscripts): Likewise.
8393 (save_dist_v): Likewise.
8394 (save_dir_v): Likewise.
8395 (invariant_access_functions): Likewise.
8396 (same_access_functions): Likewise.
8397 (access_functions_are_affine_or_constant_p): Likewise.
8398 (find_data_references_in_stmt): Likewise.
8399 (graphite_find_data_references_in_stmt): Likewise.
8400 (free_dependence_relations): Likewise.
8401 (free_data_refs): Likewise.
8402 * tree-inline.c (copy_debug_stmts): Likewise.
8403 * tree-into-ssa.c (dump_currdefs): Likewise.
8404 (rewrite_update_phi_arguments): Likewise.
8405 * tree-ssa-propagate.c (clean_up_loop_closed_phi): Likewise.
8406 * tree-vect-data-refs.c (vect_analyze_possibly_independent_ddr):
8407 Likewise.
8408 (vect_slp_analyze_node_dependences): Likewise.
8409 (vect_slp_analyze_instance_dependence): Likewise.
8410 (vect_record_base_alignments): Likewise.
8411 (vect_get_peeling_costs_all_drs): Likewise.
8412 (vect_peeling_supportable): Likewise.
8413 * tree-vectorizer.c (vec_info::~vec_info): Likewise.
8414 (vec_info::free_stmt_vec_infos): Likewise.
8415
8416 2021-06-13 Jeff Law <jeffreyalaw@gmail.com>
8417
8418 * config/h8300/logical.md (<code>qi3_1<cczn>): New pattern.
8419 (andqi3_1<cczn>): Removed.
8420 (<ors>qi3_1): Do not split for IOR/XOR a single bit.
8421 (H8/SX bit logicals): Split out from other patterns.
8422 * config/h8300/multiply.md (mulqihi3_const<cczn>): Renamed from
8423 mulqihi3_const_clobber_flags.
8424 (mulqihi3<cczn>, mulhisi3_const<cczn>, mulhisi3<cczn>): Similarly
8425
8426 2021-06-13 H.J. Lu <hjl.tools@gmail.com>
8427
8428 PR target/101023
8429 * config/i386/i386.c (ix86_expand_prologue): Set red_zone_used
8430 to true if red zone is used.
8431 (ix86_output_indirect_jmp): Replace ix86_red_zone_size with
8432 ix86_red_zone_used.
8433 * config/i386/i386.h (machine_function): Add red_zone_used.
8434 (ix86_red_zone_size): Removed.
8435 (ix86_red_zone_used): New.
8436 * config/i386/i386.md (peephole2 patterns): Replace
8437 ix86_red_zone_size with ix86_red_zone_used.
8438
8439 2021-06-12 Jason Merrill <jason@redhat.com>
8440
8441 * doc/extend.texi (unused variable attribute): Applies to
8442 structure fields as well.
8443
8444 2021-06-12 Eugene Rozenfeld <erozen@microsoft.com>
8445
8446 * auto-profile.c (read_profile): fix a typo in an error string
8447
8448 2021-06-11 Thomas Schwinge <thomas@codesourcery.com>
8449
8450 * tree-pretty-print.h (dump_omp_clauses): Add 'bool = true'
8451 default argument.
8452 * tree-pretty-print.c (dump_omp_clauses): Update.
8453 (dump_generic_node) <OMP_CLAUSE>: Use it.
8454
8455 2021-06-11 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
8456
8457 PR target/101016
8458 * config/arm/arm_mve.h (__arm_vld1q): Change __ARM_mve_coerce(p0,
8459 int8_t const *) to __ARM_mve_coerce1(p0, int8_t *) in the argument for
8460 the polymorphic variants matching code.
8461 (__arm_vld1q_z): Likewise.
8462 (__arm_vld2q): Likewise.
8463 (__arm_vld4q): Likewise.
8464 (__arm_vldrbq_gather_offset): Likewise.
8465 (__arm_vldrbq_gather_offset_z): Likewise.
8466
8467 2021-06-11 Roger Sayle <roger@nextmovesoftware.com>
8468
8469 PR tree-optimization/96392
8470 * fold-const.h (tree_expr_maybe_real_minus_zero_p): Fix prototype.
8471
8472 2021-06-11 Roger Sayle <roger@nextmovesoftware.com>
8473
8474 PR tree-optimization/96392
8475 * fold-const.c (fold_real_zero_addition_p): Take both arguments
8476 of the addition or subtraction, not just the zero. Use this
8477 other argument in tests for signaling NaNs and signed zeros.
8478 (tree_expr_maybe_real_minus_zero_p): New predicate.
8479 * fold-const.h (fold_real_zero_addition_p): Update prototype.
8480 (tree_expr_maybe_real_minus_zero_p): New function prototype.
8481 * match.pd: Update calls to fold_real_zero_addition_p.
8482 Replace HONOR_NANS with tree_expr_maybe_nan_p.
8483 Replace HONOR_SIGNED_ZEROS with tree_expr_maybe_real_minus_zero_p.
8484 Replace HONOR_SNANS with tree_expr_maybe_signaling_nan_p.
8485 * tree-ssa-reassoc.c (eliminate_using_constants): Update
8486 call to fold_real_zero_addition_p.
8487
8488 2021-06-11 Richard Biener <rguenther@suse.de>
8489
8490 PR tree-optimization/101025
8491 * tree-ssa-loop-im.c (sm_seq_valid_bb): Make sure to process
8492 all refs that require dependence checking.
8493
8494 2021-06-11 Richard Biener <rguenther@suse.de>
8495
8496 PR tree-optimization/101028
8497 * tree-vect-slp.c (vect_build_slp_tree_2): When SLP
8498 reassoc discovery fails fatally, mark appropriate lanes
8499 in matches[] so.
8500
8501 2021-06-11 Richard Biener <rguenther@suse.de>
8502
8503 PR tree-optimization/101026
8504 * tree-vect-slp.c (vect_build_slp_tree_2): Make sure we
8505 have a representative for the associated chain nodes.
8506
8507 2021-06-11 Jakub Jelinek <jakub@redhat.com>
8508
8509 PR rtl-optimization/101008
8510 * simplify-rtx.c (relational_result): New function.
8511 (simplify_logical_relational_operation,
8512 simplify_relational_operation): Use it.
8513
8514 2021-06-11 Jakub Jelinek <jakub@redhat.com>
8515
8516 PR target/101007
8517 * config/i386/sse.md (*vec_concat<mode>_0_1): Require TARGET_SSE2.
8518
8519 2021-06-11 Uroš Bizjak <ubizjak@gmail.com>
8520
8521 PR target/101021
8522 * config/i386/i386-expand.c (expand_vec_perm_pshufb): Return
8523 false if the permutation can be implemented with constant
8524 permutation instruction in wider mode.
8525 (canonicalize_vector_int_perm): Move above expand_vec_perm_pshufb.
8526 Handle V8QImode and V4HImode.
8527
8528 2021-06-11 Martin Liska <mliska@suse.cz>
8529
8530 PR gcov-profile/100788
8531 * common.opt: Add new option.
8532 * coverage.c (coverage_begin_function): Emit warning instead on
8533 the internal compiler error.
8534 * doc/invoke.texi: Document the option.
8535 * toplev.c (process_options): Enable it by default.
8536
8537 2021-06-11 Richard Biener <rguenther@suse.de>
8538
8539 PR middle-end/101009
8540 * tree-data-ref.c (build_classic_dist_vector_1): Make sure
8541 to set *init_b to true when we encounter a constant equal
8542 index pair.
8543 (compute_affine_dependence): Also dump the actual DR_REF.
8544
8545 2021-06-10 Aldy Hernandez <aldyh@redhat.com>
8546
8547 PR tree-optimization/100984
8548 * gimple-ssa-evrp.c (ssa_equiv_stack): Use auto_vec for
8549 replacements table.
8550 (ssa_equiv_stack::~ssa_equiv_stack): Remove.
8551
8552 2021-06-11 Kewen Lin <linkw@linux.ibm.com>
8553
8554 * config/rs6000/rs6000.md
8555 (floatsi<SFDF:mode>2_lfiwax_<QHI:mode>_mem_zext): New
8556 define_insn_and_split.
8557
8558 2021-06-11 Richard Biener <rguenther@suse.de>
8559
8560 * tree-vect-slp.c (vect_build_slp_tree_2): Use stablesort
8561 to sort operands of the associative chain.
8562
8563 2021-06-11 Richard Biener <rguenther@suse.de>
8564
8565 * system.h (gcc_stablesort_r): Declare.
8566 * sort.cc (gcc_sort_r): Support stable sort.
8567 (gcc_stablesort_r): Define.
8568 * vec.h (vec<>::stablesort): Add.
8569
8570 2021-06-10 Uroš Bizjak <ubizjak@gmail.com>
8571
8572 PR target/89021
8573 * config/i386/i386-expand.c (ix86_split_mmx_punpck):
8574 Handle V2SF mode. Emit SHUFPS to fixup unpack-high for V2SF mode.
8575 (expand_vec_perm_blend): Handle 64bit modes for TARGET_SSE4_1.
8576 (expand_vec_perm_pshufb): Handle 64bit modes for TARGET_SSSE3.
8577 (expand_vec_perm_pblendv): Handle 64bit modes for TARGET_SSE4_1.
8578 (expand_vec_perm_interleave2): Handle 64bit modes.
8579 (expand_vec_perm_even_odd_pack): Handle V8QI mode.
8580 (expand_vec_perm_even_odd_1): Ditto.
8581 (ix86_vectorize_vec_perm_const): Ditto.
8582 * config/i386/i386.md (UNSPEC_PSHUFB): Move from ...
8583 * config/i386/sse.md: ... here.
8584 * config/i386/mmx.md (*vec_interleave_lowv2sf):
8585 New insn_and_split pattern.
8586 (*vec_interleave_highv2sf): Ditto.
8587 (mmx_pshufbv8qi3): New insn pattern.
8588 (*mmx_pblendw): Ditto.
8589
8590 2021-06-10 Peter Bergner <bergner@linux.ibm.com>
8591
8592 * config/rs6000/rs6000-builtin.def (build_pair): New built-in.
8593 (build_acc): Likewise.
8594 * config/rs6000/rs6000-call.c (mma_expand_builtin): Swap assemble
8595 source operands in little-endian mode.
8596 (rs6000_gimple_fold_mma_builtin): Handle VSX_BUILTIN_BUILD_PAIR.
8597 (mma_init_builtins): Likewise.
8598 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Handle endianness
8599 ordering for the MMA assemble and build source operands.
8600 * doc/extend.texi (__builtin_vsx_build_acc, __builtin_mma_build_pair):
8601 Document.
8602 (__builtin_mma_assemble_acc, __builtin_mma_assemble_pair): Remove
8603 documentation.
8604
8605 2021-06-10 Jeff Law <jeffreyalaw@gmail.com>
8606
8607 * config/h8300/h8300.c (select_cc_mode): Handle MEM. Use
8608 REG_P.
8609 * config/h8300/extensions.md: Replace _clobber_flags patterns
8610 with <cczn>.
8611
8612 2021-06-10 Robin Dapp <rdapp@linux.ibm.com>
8613
8614 * config/s390/vector.md (vcond_mask_<mode><mode>): Change to
8615 (vcond_mask_<mode><tointvec>): this.
8616
8617 2021-06-10 Andrew Stubbs <ams@codesourcery.com>
8618 Thomas Schwinge <thomas@codesourcery.com>
8619
8620 * omp-builtins.def (BUILT_IN_GOACC_ENTER_EXIT_DATA): Split into...
8621 (BUILT_IN_GOACC_ENTER_DATA, BUILT_IN_GOACC_EXIT_DATA): ... these.
8622 * gimple.h (enum gf_mask): Split
8623 'GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA' into
8624 'GF_OMP_TARGET_KIND_OACC_ENTER_DATA' and
8625 'GF_OMP_TARGET_KIND_OACC_EXIT_DATA'.
8626 (is_gimple_omp_oacc): Update.
8627 * gimple-pretty-print.c (dump_gimple_omp_target): Likewise.
8628 * gimplify.c (gimplify_omp_target_update): Likewise.
8629 * omp-expand.c (expand_omp_target, build_omp_regions_1)
8630 (omp_make_gimple_edges): Likewise.
8631 * omp-low.c (check_omp_nesting_restrictions, lower_omp_target):
8632 Likewise.
8633
8634 2021-06-10 Aldy Hernandez <aldyh@redhat.com>
8635
8636 * value-query.cc (value_query::value_on_edge): Rename name to
8637 expr.
8638 (range_query::range_on_edge): Same.
8639 (range_query::value_of_expr): Same.
8640 (range_query::value_on_edge): Same.
8641 * value-query.h (class value_query): Same.
8642 (class range_query): Same.
8643
8644 2021-06-10 Richard Biener <rguenther@suse.de>
8645
8646 PR tree-optimization/101003
8647 * tree-vect-slp.c (vect_build_slp_tree_2): Appropriately
8648 use the pattern stmt defs when linearizing a chain.
8649
8650 2021-06-10 Jakub Jelinek <jakub@redhat.com>
8651
8652 PR debug/100852
8653 * ifcvt.c (noce_get_alt_condition, noce_try_abs): Use
8654 prev_nonnote_nondebug_insn instead of prev_nonnote_insn.
8655
8656 2021-06-10 Clement Chigot <clement.chigot@atos.net>
8657
8658 * config/rs6000/aix71.h (ASM_CPU_SPEC): Add Power10 directive.
8659 * config/rs6000/aix72.h (ASM_CPU_SPEC): Likewise.
8660
8661 2021-06-09 Andrew Pinski <apinski@marvell.com>
8662
8663 PR tree-optimization/100925
8664 * match.pd (a ? CST1 : CST2): Limit transformations
8665 that would produce a negative to integeral types only.
8666 Change !POINTER_TYPE_P to INTEGRAL_TYPE_P also.
8667
8668 2021-06-09 Jeff Law <jeffreyalaw@gmail.com>
8669
8670 Revert:
8671 2021-06-09 Jeff Law <jeffreyalaw@gmail.com>
8672
8673 * doc/tm.texi: Correctly update.
8674
8675 2021-06-09 Jeff Law <jeffreyalaw@gmail.com>
8676
8677 * doc/tm.texi: Correctly update.
8678
8679 2021-06-09 H.J. Lu <hjl.tools@gmail.com>
8680
8681 PR other/100735
8682 * doc/tm.texi.in (Trampolines): Add a missing blank line.
8683
8684 2021-06-09 Paul Eggert <eggert@cs.ucla.edu>
8685
8686 PR other/100735
8687 * doc/invoke.texi (Code Gen Options); Document that -fno-trampolines
8688 and -ftrampolines work only with Ada.
8689 * doc/tm.texi.in (Trampolines): Likewise.
8690 * doc/tm.texi: Regenerated.
8691
8692 2021-06-09 Carl Love <cel@us.ibm.com>
8693
8694 * config/rs6000/altivec.h (vec_signextll, vec_signexti, vec_signextq):
8695 Add define for new builtins.
8696 * config/rs6000/altivec.md(altivec_vreveti2): Add define_expand.
8697 * config/rs6000/rs6000-builtin.def (VSIGNEXTI, VSIGNEXTLL): Add
8698 overloaded builtin definitions.
8699 (VSIGNEXTSB2W, VSIGNEXTSH2W, VSIGNEXTSB2D, VSIGNEXTSH2D,VSIGNEXTSW2D,
8700 VSIGNEXTSD2Q): Add builtin expansions.
8701 (SIGNEXT): Add P10 overload definition.
8702 * config/rs6000/rs6000-call.c (P9V_BUILTIN_VEC_VSIGNEXTI, P9V_BUILTIN_VEC_VSIGNEXTLL,
8703 P10_BUILTIN_VEC_SIGNEXT): Add overloaded argument definitions.
8704 * config/rs6000/vsx.md (vsx_sign_extend_v2di_v1ti): Add define_insn.
8705 (vsignextend_v2di_v1ti, vsignextend_qi_<mode>, vsignextend_hi_<mode>,
8706 vsignextend_si_v2di)[VIlong]: Add define_expand.
8707 Make define_insn vsx_sign_extend_si_v2di visible.
8708 * doc/extend.texi: Add documentation for the vec_signexti,
8709 vec_signextll builtins and vec_signextq.
8710
8711 2021-06-09 Carl Love <cel@us.ibm.com>
8712
8713 * config/rs6000/rs6000.c (__fixkfti, __fixunskfti, __floattikf,
8714 __floatuntikf): Names changed to __fixkfti_sw, __fixunskfti_sw,
8715 __floattikf_sw, __floatuntikf_sw respectively.
8716 * config/rs6000/rs6000.md (floatti<mode>2, floatunsti<mode>2,
8717 fix_trunc<mode>ti2, fixuns_trunc<mode>ti2): Add
8718 define_insn for mode IEEE 128.
8719
8720 2021-06-09 Carl Love <cel@us.ibm.com>
8721
8722 * config/rs6000/altivec.md (altivec_vslq, altivec_vsrq):
8723 Rename to altivec_vslq_<mode>, altivec_vsrq_<mode>, mode VEC_TI.
8724 * config/rs6000/vector.md (VEC_TI): Was named VSX_TI in vsx.md.
8725 (vashlv1ti3): Change to vashl<mode>3, mode VEC_TI.
8726 (vlshrv1ti3): Change to vlshr<mode>3, mode VEC_TI.
8727 * config/rs6000/vsx.md (VSX_TI): Remove define_mode_iterator. Update
8728 uses of VSX_TI to VEC_TI.
8729
8730 2021-06-09 Carl Love <cel@us.ibm.com>
8731
8732 * config/rs6000/dfp.md (floattitd2, fixtdti2): New define_insns.
8733
8734 2021-06-09 Carl Love <cel@us.ibm.com>
8735
8736 * config/rs6000/altivec.h (vec_dive, vec_mod): Add define for new
8737 builtins.
8738 * config/rs6000/altivec.md (UNSPEC_VMULEUD, UNSPEC_VMULESD,
8739 UNSPEC_VMULOUD, UNSPEC_VMULOSD): New unspecs.
8740 (altivec_eqv1ti, altivec_gtv1ti, altivec_gtuv1ti, altivec_vmuleud,
8741 altivec_vmuloud, altivec_vmulesd, altivec_vmulosd, altivec_vrlq,
8742 altivec_vrlqmi, altivec_vrlqmi_inst, altivec_vrlqnm,
8743 altivec_vrlqnm_inst, altivec_vslq, altivec_vsrq, altivec_vsraq,
8744 altivec_vcmpequt_p, altivec_vcmpgtst_p, altivec_vcmpgtut_p): New
8745 define_insn.
8746 (vec_widen_umult_even_v2di, vec_widen_smult_even_v2di,
8747 vec_widen_umult_odd_v2di, vec_widen_smult_odd_v2di, altivec_vrlqmi,
8748 altivec_vrlqnm): New define_expands.
8749 * config/rs6000/rs6000-builtin.def (VCMPEQUT_P, VCMPGTST_P,
8750 VCMPGTUT_P): Add macro expansions.
8751 (BU_P10V_AV_P): Add builtin predicate definition.
8752 (VCMPGTUT, VCMPGTST, VCMPEQUT, CMPNET, CMPGE_1TI,
8753 CMPGE_U1TI, CMPLE_1TI, CMPLE_U1TI, VNOR_V1TI_UNS, VNOR_V1TI, VCMPNET_P,
8754 VCMPAET_P, VMULEUD, VMULESD, VMULOUD, VMULOSD, VRLQ,
8755 VSLQ, VSRQ, VSRAQ, VRLQNM, DIV_V1TI, UDIV_V1TI, DIVES_V1TI, DIVEU_V1TI,
8756 MODS_V1TI, MODU_V1TI, VRLQMI): New macro expansions.
8757 (VRLQ, VSLQ, VSRQ, VSRAQ, DIVE, MOD): New overload expansions.
8758 * config/rs6000/rs6000-call.c (P10_BUILTIN_VCMPEQUT,
8759 P10V_BUILTIN_CMPGE_1TI, P10V_BUILTIN_CMPGE_U1TI,
8760 P10V_BUILTIN_VCMPGTUT, P10V_BUILTIN_VCMPGTST,
8761 P10V_BUILTIN_CMPLE_1TI, P10V_BUILTIN_VCMPLE_U1TI,
8762 P10V_BUILTIN_DIV_V1TI, P10V_BUILTIN_UDIV_V1TI,
8763 P10V_BUILTIN_VMULESD, P10V_BUILTIN_VMULEUD,
8764 P10V_BUILTIN_VMULOSD, P10V_BUILTIN_VMULOUD,
8765 P10V_BUILTIN_VNOR_V1TI, P10V_BUILTIN_VNOR_V1TI_UNS,
8766 P10V_BUILTIN_VRLQ, P10V_BUILTIN_VRLQMI,
8767 P10V_BUILTIN_VRLQNM, P10V_BUILTIN_VSLQ,
8768 P10V_BUILTIN_VSRQ, P10V_BUILTIN_VSRAQ,
8769 P10V_BUILTIN_VCMPGTUT_P, P10V_BUILTIN_VCMPGTST_P,
8770 P10V_BUILTIN_VCMPEQUT_P, P10V_BUILTIN_VCMPGTUT_P,
8771 P10V_BUILTIN_VCMPGTST_P, P10V_BUILTIN_CMPNET,
8772 P10V_BUILTIN_VCMPNET_P, P10V_BUILTIN_VCMPAET_P,
8773 P10V_BUILTIN_DIVES_V1TI, P10V_BUILTIN_MODS_V1TI,
8774 P10V_BUILTIN_MODU_V1TI):
8775 New overloaded definitions.
8776 (rs6000_gimple_fold_builtin) [P10V_BUILTIN_VCMPEQUT,
8777 P10V_BUILTIN_CMPNET, P10V_BUILTIN_CMPGE_1TI,
8778 P10V_BUILTIN_CMPGE_U1TI, P10V_BUILTIN_VCMPGTUT,
8779 P10V_BUILTIN_VCMPGTST, P10V_BUILTIN_CMPLE_1TI,
8780 P10V_BUILTIN_CMPLE_U1TI]: New case statements.
8781 (rs6000_init_builtins) [bool_V1TI_type_node, int_ftype_int_v1ti_v1ti]:
8782 New assignments.
8783 (altivec_init_builtins): New E_V1TImode case statement.
8784 (builtin_function_type)[P10_BUILTIN_128BIT_VMULEUD,
8785 P10_BUILTIN_128BIT_VMULOUD, P10_BUILTIN_128BIT_DIVEU_V1TI,
8786 P10_BUILTIN_128BIT_MODU_V1TI, P10_BUILTIN_CMPGE_U1TI,
8787 P10_BUILTIN_VCMPGTUT, P10_BUILTIN_VCMPEQUT]: New case statements.
8788 * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute) [E_TImode,
8789 E_V1TImode]: New case statements.
8790 * config/rs6000/rs6000.h (rs6000_builtin_type_index): New enum
8791 value RS6000_BTI_bool_V1TI.
8792 * config/rs6000/vector.md (vector_gtv1ti,vector_nltv1ti,
8793 vector_gtuv1ti, vector_nltuv1ti, vector_ngtv1ti, vector_ngtuv1ti,
8794 vector_eq_v1ti_p, vector_ne_v1ti_p, vector_ae_v1ti_p,
8795 vector_gt_v1ti_p, vector_gtu_v1ti_p, vrotlv1ti3, vashlv1ti3,
8796 vlshrv1ti3, vashrv1ti3): New define_expands.
8797 * config/rs6000/vsx.md (UNSPEC_VSX_DIVSQ, UNSPEC_VSX_DIVUQ,
8798 UNSPEC_VSX_DIVESQ, UNSPEC_VSX_DIVEUQ, UNSPEC_VSX_MODSQ,
8799 UNSPEC_VSX_MODUQ): New unspecs.
8800 (mulv2di3, vsx_div_v1ti, vsx_udiv_v1ti, vsx_dives_v1ti,
8801 vsx_diveu_v1ti, vsx_mods_v1ti, vsx_modu_v1ti, xxswapd_v1ti): New
8802 define_insns.
8803 (vcmpnet): New define_expand.
8804 * doc/extend.texi: Add documentation for the new builtins vec_rl,
8805 vec_rlmi, vec_rlnm, vec_sl, vec_sr, vec_sra, vec_mule, vec_mulo,
8806 vec_div, vec_dive, vec_mod, vec_cmpeq, vec_cmpne, vec_cmpgt, vec_cmplt,
8807 vec_cmpge, vec_cmple, vec_all_eq, vec_all_ne, vec_all_gt, vec_all_lt,
8808 vec_all_ge, vec_all_le, vec_any_eq, vec_any_ne, vec_any_gt, vec_any_lt,
8809 vec_any_ge, vec_any_le.
8810
8811 2021-06-09 Carl Love <cel@us.ibm.com>
8812
8813 * config/rs6000/altivec.md (altivec_vrl<VI_char>mi): Fix
8814 bug in argument generation.
8815
8816 2021-06-09 Christophe Lyon <christophe.lyon@linaro.org>
8817
8818 * config/arm/iterators.md (<supf>): Remove VCLZQ_U, VCLZQ_S.
8819 (VCLZQ): Remove.
8820 * config/arm/mve.md (mve_vclzq_<supf><mode>): Add '@' prefix,
8821 remove <supf> iterator.
8822 (mve_vclzq_u<mode>): New.
8823 * config/arm/neon.md (clz<mode>2): Rename to neon_vclz<mode>.
8824 (neon_vclz<mode): Move to ...
8825 * config/arm/unspecs.md (VCLZQ_U, VCLZQ_S): Remove.
8826 * config/arm/vec-common.md: ... here. Add support for MVE.
8827
8828 2021-06-09 Christophe Lyon <christophe.lyon@linaro.org>
8829
8830 * config/arm/mve.md (mve_vhaddq_<supf><mode>): Prefix with '@'.
8831 (@mve_vrhaddq_<supf><mode): Likewise.
8832 * config/arm/neon.md (neon_v<r>hadd<sup><mode>): Likewise.
8833 * config/arm/vec-common.md (avg<mode>3_floor, uavg<mode>3_floor)
8834 (avg<mode>3_ceil", uavg<mode>3_ceil): New patterns.
8835
8836 2021-06-09 imba-tjd <109224573@qq.com>
8837
8838 * doc/invoke.texi: Fix typo.
8839
8840 2021-06-09 Roger Sayle <roger@nextmovesoftware.com>
8841
8842 PR middle-end/53267
8843 * fold-const-call.c (fold_const_call_sss) [CASE_CFN_FMOD]:
8844 Support evaluation of fmod/fmodf/fmodl at compile-time.
8845
8846 2021-06-09 Richard Biener <rguenther@suse.de>
8847
8848 PR tree-optimization/100981
8849 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
8850 gimple_get_lhs to also handle calls.
8851 * tree-vect-slp-patterns.c (complex_pattern::build): Transfer
8852 reduction info.
8853
8854 2021-06-09 Richard Biener <rguenther@suse.de>
8855
8856 PR tree-optimization/97832
8857 * tree-vectorizer.h (_slp_tree::failed): New.
8858 * tree-vect-slp.c (_slp_tree::_slp_tree): Initialize
8859 failed member.
8860 (_slp_tree::~_slp_tree): Free failed.
8861 (vect_build_slp_tree): Retain failed nodes and record
8862 matches in them, copying that back out when running
8863 into a cached fail. Dump start and end of discovery.
8864 (dt_sort_cmp): New.
8865 (vect_build_slp_tree_2): Handle associatable chains
8866 together doing more aggressive operand swapping.
8867
8868 2021-06-09 H.J. Lu <hjl.tools@gmail.com>
8869
8870 PR target/100896
8871 * config.gcc (gcc_cv_initfini_array): Set to yes for Linux and
8872 GNU targets.
8873 * doc/install.texi: Require glibc 2.1 and binutils 2.12 for
8874 Linux and GNU targets.
8875
8876 2021-06-09 Richard Biener <rguenther@suse.de>
8877
8878 * tree-vect-stmts.c (vect_is_simple_use): Always get dt
8879 from the stmt.
8880
8881 2021-06-09 Claudiu Zissulescu <claziss@synopsys.com>
8882
8883 * config/arc/arc.md (loop_end): Change it to
8884 define_insn_and_split.
8885
8886 2021-06-09 Claudiu Zissulescu <claziss@synopsys.com>
8887
8888 * config/arc/arc.md (maddhisi4): Use VMAC2H instruction.
8889 (machi): New pattern.
8890 (umaddhisi4): Use VMAC2HU instruction.
8891 (umachi): New pattern.
8892
8893 2021-06-09 Claudiu Zissulescu <claziss@synopsys.com>
8894
8895 * config/arc/arc-protos.h (arc_split_move_p): New prototype.
8896 * config/arc/arc.c (arc_split_move_p): New function.
8897 (arc_split_move): Clean up.
8898 * config/arc/arc.md (movdi_insn): Clean up, use arc_split_move_p.
8899 (movdf_insn): Likewise.
8900 * config/arc/simdext.md (mov<VWH>_insn): Likewise.
8901
8902 2021-06-09 Uroš Bizjak <ubizjak@gmail.com>
8903
8904 PR target/100936
8905 * config/i386/i386.c (print_operand_address_as): Rename "no_rip"
8906 argument to "raw". Do not emit segment overrides when "raw" is true.
8907
8908 2021-06-09 Martin Liska <mliska@suse.cz>
8909
8910 * doc/gcov.texi: Create a proper JSON files.
8911 * doc/invoke.texi: Remove dots in order to make it a valid
8912 JSON object.
8913
8914 2021-06-09 Xionghu Luo <luoxhu@linux.ibm.com>
8915
8916 * config/rs6000/rs6000-p8swap.c (pattern_is_rotate64): New.
8917 (insn_is_load_p): Use pattern_is_rotate64.
8918 (insn_is_swap_p): Likewise.
8919 (quad_aligned_load_p): Likewise.
8920 (const_load_sequence_p): Likewise.
8921 (replace_swapped_aligned_load): Likewise.
8922 (recombine_lvx_pattern): Likewise.
8923 (recombine_stvx_pattern): Likewise.
8924
8925 2021-06-09 Andrew MacLeod <amacleod@redhat.com>
8926
8927 * gimple-range-gori.cc (gori_compute::outgoing_edge_range_p): Use a
8928 fur_stmt source record.
8929 * gimple-range.cc (fur_source::get_operand): Generic range query.
8930 (fur_source::get_phi_operand): New.
8931 (fur_source::register_dependency): New.
8932 (fur_source::query): New.
8933 (class fur_edge): New. Edge source for operands.
8934 (fur_edge::fur_edge): New.
8935 (fur_edge::get_operand): New.
8936 (fur_edge::get_phi_operand): New.
8937 (fur_edge::query): New.
8938 (fur_stmt::fur_stmt): New.
8939 (fur_stmt::get_operand): New.
8940 (fur_stmt::get_phi_operand): New.
8941 (fur_stmt::query): New.
8942 (class fur_depend): New. Statement source and process dependencies.
8943 (fur_depend::fur_depend): New.
8944 (fur_depend::register_dependency): New.
8945 (class fur_list): New. List source for operands.
8946 (fur_list::fur_list): New.
8947 (fur_list::get_operand): New.
8948 (fur_list::get_phi_operand): New.
8949 (fold_range): New. Instantiate appropriate fur_source class and fold.
8950 (fold_using_range::range_of_range_op): Use new API.
8951 (fold_using_range::range_of_address): Ditto.
8952 (fold_using_range::range_of_phi): Ditto.
8953 (imple_ranger::fold_range_internal): Use fur_depend class.
8954 (fold_using_range::range_of_ssa_name_with_loop_info): Use new API.
8955 * gimple-range.h (class fur_source): Now a base class.
8956 (class fur_stmt): New.
8957 (fold_range): New prototypes.
8958 (fur_source::fur_source): Delete.
8959
8960 2021-06-08 Andrew Pinski <apinski@marvell.com>
8961
8962 PR tree-optimization/25290
8963 * tree-ssa-phiopt.c (xor_replacement): Delete.
8964 (tree_ssa_phiopt_worker): Delete use of xor_replacement.
8965 (match_simplify_replacement): Allow one cheap preparation
8966 statement that can be moved to before the if.
8967
8968 2021-06-08 Pat Haugen <pthaugen@linux.ibm.com>
8969
8970 * config/rs6000/power10.md (power10-fused-load, power10-fused-store,
8971 power10-fused_alu, power10-fused-vec, power10-fused-branch): New.
8972
8973 2021-06-08 Jeff Law <jeffreyalaw@gmail.com>
8974
8975 * config/h8300/logical.md (andqi3_1): Move BCLR case into define_insn_and_split.
8976 Create length attribute on define_insn_and_split. Only split for cases which we
8977 know will use AND.
8978 (andqi3_1<cczn>): Renamed from andqi3_1_clobber_flags. Only handle AND here and
8979 fix length computation.
8980 (b<code><mode>msx): Combine QImode and HImode H8/SX patterns using iterator.
8981
8982 2021-06-08 Richard Biener <rguenther@suse.de>
8983
8984 PR tree-optimization/100923
8985 * tree-ssa-sccvn.c (valueize_refs_1): Take a pointer to
8986 the operand vector to be valueized.
8987 (valueize_refs): Likewise.
8988 (valueize_shared_reference_ops_from_ref): Adjust.
8989 (valueize_shared_reference_ops_from_call): Likewise.
8990 (vn_reference_lookup_3): Likewise.
8991 (vn_reference_lookup_pieces): Likewise. Re-valueize
8992 with honoring availability when we are about to create
8993 the ao_ref and valueized before.
8994 (vn_reference_lookup): Likewise.
8995 (vn_reference_insert_pieces): Adjust.
8996
8997 2021-06-08 Richard Biener <rguenther@suse.de>
8998
8999 * tree-vectorizer.h (_slp_instance::root_stmt): Change to...
9000 (_slp_instance::root_stmts): ... a vector.
9001 (SLP_INSTANCE_ROOT_STMT): Rename to ...
9002 (SLP_INSTANCE_ROOT_STMTS): ... this.
9003 (slp_root::root): Change to...
9004 (slp_root::roots): ... a vector.
9005 (slp_root::slp_root): Adjust.
9006 * tree-vect-slp.c (_slp_instance::location): Adjust.
9007 (vect_free_slp_instance): Release the root stmt vector.
9008 (vect_build_slp_instance): Adjust.
9009 (vect_analyze_slp): Likewise.
9010 (_bb_vec_info::~_bb_vec_info): Likewise.
9011 (vect_slp_analyze_operations): Likewise.
9012 (vect_bb_vectorization_profitable_p): Likewise. Adjust
9013 costs for the root stmt.
9014 (vect_slp_check_for_constructors): Gather all BIT_INSERT_EXPRs
9015 as root stmts.
9016 (vect_slp_analyze_bb_1): Simplify by marking all root stmts
9017 as pure_slp.
9018 (vectorize_slp_instance_root_stmt): Adjust.
9019 (vect_schedule_slp): Likewise.
9020
9021 2021-06-08 Aldy Hernandez <aldyh@redhat.com>
9022
9023 * gimple-ssa-evrp.c (class ssa_equiv_stack): New.
9024 (ssa_equiv_stack::ssa_equiv_stack): New.
9025 (ssa_equiv_stack::~ssa_equiv_stack): New.
9026 (ssa_equiv_stack::enter): New.
9027 (ssa_equiv_stack::leave): New.
9028 (ssa_equiv_stack::push_replacement): New.
9029 (ssa_equiv_stack::get_replacement): New.
9030 (is_pointer_ssa): New.
9031 (class pointer_equiv_analyzer): New.
9032 (pointer_equiv_analyzer::pointer_equiv_analyzer): New.
9033 (pointer_equiv_analyzer::~pointer_equiv_analyzer): New.
9034 (pointer_equiv_analyzer::set_global_equiv): New.
9035 (pointer_equiv_analyzer::set_cond_equiv): New.
9036 (pointer_equiv_analyzer::get_equiv): New.
9037 (pointer_equiv_analyzer::enter): New.
9038 (pointer_equiv_analyzer::leave): New.
9039 (pointer_equiv_analyzer::get_equiv_expr): New.
9040 (pta_valueize): New.
9041 (pointer_equiv_analyzer::visit_stmt): New.
9042 (pointer_equiv_analyzer::visit_edge): New.
9043 (hybrid_folder::value_of_expr): Call PTA.
9044 (hybrid_folder::value_on_edge): Same.
9045 (hybrid_folder::pre_fold_bb): New.
9046 (hybrid_folder::post_fold_bb): New.
9047 (hybrid_folder::pre_fold_stmt): New.
9048 (rvrp_folder::pre_fold_bb): New.
9049 (rvrp_folder::post_fold_bb): New.
9050 (rvrp_folder::pre_fold_stmt): New.
9051 (rvrp_folder::value_of_expr): Call PTA.
9052 (rvrp_folder::value_on_edge): Same.
9053
9054 2021-06-08 Jakub Jelinek <jakub@redhat.com>
9055
9056 PR c++/100957
9057 * tree-inline.c (copy_tree_body_r): For OMP_CLAUSE_DEPEND don't
9058 check TREE_CODE if OMP_CLAUSE_DECL is NULL.
9059
9060 2021-06-08 Richard Biener <rguenther@suse.de>
9061
9062 PR middle-end/100951
9063 * tree-vect-generic.c (expand_vector_piecewise): Build a
9064 VECTOR_CST if all elements are constant.
9065 (expand_vector_condition): Likewise.
9066 (lower_vec_perm): Likewise.
9067 (expand_vector_conversion): Likewise.
9068
9069 2021-06-08 Martin Liska <mliska@suse.cz>
9070
9071 * doc/invoke.texi: Document new param evrp-sparse-threshold.
9072
9073 2021-06-08 Martin Liska <mliska@suse.cz>
9074
9075 * genautomata.c (create_automata): Fix typo.
9076
9077 2021-06-08 Kewen Lin <linkw@linux.ibm.com>
9078
9079 PR tree-optimization/100794
9080 * tree-predcom.c (tree_predictive_commoning_loop): Add parameter
9081 allow_unroll_p and only allow unrolling when it's true.
9082 (tree_predictive_commoning): Add parameter allow_unroll_p and
9083 adjust for it.
9084 (run_tree_predictive_commoning): Likewise.
9085 (pass_predcom::gate): Check flag_tree_loop_vectorize and
9086 global_options_set.x_flag_predictive_commoning.
9087 (pass_predcom::execute): Adjust for allow_unroll_p.
9088
9089 2021-06-08 Kewen Lin <linkw@linux.ibm.com>
9090
9091 * tree-predcom.c (execute_pred_commoning): Remove update_ssa call.
9092 (tree_predictive_commoning_loop): Factor some cleanup stuffs into
9093 lambda function cleanup, remove scev_reset call, and adjust return
9094 value.
9095 (tree_predictive_commoning): Adjust for different changed values,
9096 only set flag TODO_update_ssa_only_virtuals if changed.
9097 (pass_data pass_data_predcom): Remove TODO_update_ssa_only_virtuals
9098 from todo_flags_finish.
9099
9100 2021-06-07 Andrew MacLeod <amacleod@redhat.com>
9101
9102 * gimple-range-cache.cc (class sbr_sparse_bitmap): New.
9103 (sbr_sparse_bitmap::sbr_sparse_bitmap): New.
9104 (sbr_sparse_bitmap::bitmap_set_quad): New.
9105 (sbr_sparse_bitmap::bitmap_get_quad): New.
9106 (sbr_sparse_bitmap::set_bb_range): New.
9107 (sbr_sparse_bitmap::get_bb_range): New.
9108 (sbr_sparse_bitmap::bb_range_p): New.
9109 (block_range_cache::block_range_cache): initialize bitmap obstack.
9110 (block_range_cache::~block_range_cache): Destruct obstack.
9111 (block_range_cache::set_bb_range): Decide when to utilze the
9112 sparse on entry cache.
9113 * gimple-range-cache.h (block_range_cache): Add bitmap obstack.
9114 * params.opt (-param=evrp-sparse-threshold): New.
9115
9116 2021-06-07 Andrew MacLeod <amacleod@redhat.com>
9117
9118 * bitmap.c (bitmap_set_aligned_chunk): New.
9119 (bitmap_get_aligned_chunk): New.
9120 (test_aligned_chunk): New.
9121 (bitmap_c_tests): Call test_aligned_chunk.
9122 * bitmap.h (bitmap_set_aligned_chunk, bitmap_get_aligned_chunk): New.
9123
9124 2021-06-07 Uroš Bizjak <ubizjak@gmail.com>
9125
9126 PR target/100637
9127 * config/i386/i386-expand.c (ix86_expand_vector_init_duplicate):
9128 Handle V4QI mode.
9129 (ix86_expand_vector_init_one_nonzero): Ditto.
9130 (ix86_expand_vector_init_one_var): Ditto.
9131 (ix86_expand_vector_init_general): Ditto.
9132 * config/i386/mmx.md (vec_initv4qiqi): New expander.
9133
9134 2021-06-07 Jeff Law <jeffreyalaw@gmail.com>
9135
9136 * config/h8300/movepush.md: Change most _clobber_flags
9137 patterns to instead use <cczn> subst.
9138 (movsi_cczn): New pattern with usable CC cases split out.
9139 (movsi_h8sx_cczn): Likewise.
9140
9141 2021-06-07 Martin Liska <mliska@suse.cz>
9142
9143 * common/common-target.def: Split long lines and replace them
9144 with '\n\'.
9145 * target.def: Likewise.
9146 * doc/tm.texi: Re-generated.
9147
9148 2021-06-07 Jakub Jelinek <jakub@redhat.com>
9149
9150 PR target/100887
9151 * fold-const.c (fold_read_from_vector): Return NULL if trying to
9152 read from a CONSTRUCTOR with vector type elements.
9153
9154 2021-06-07 Jakub Jelinek <jakub@redhat.com>
9155
9156 PR middle-end/100898
9157 * tree-inline.c (copy_bb): Only use gimple_call_arg_ptr if memcpy
9158 should copy any arguments. Don't call gimple_call_num_args
9159 on id->call_stmt or call_stmt more than once.
9160
9161 2021-06-07 liuhongt <hongtao.liu@intel.com>
9162
9163 PR target/100885
9164 * config/i386/sse.md (*sse4_1_zero_extendv8qiv8hi2_3): Refine
9165 constraints.
9166 (<insn>v4siv4di2): Delete constraints for define_expand.
9167
9168 2021-06-07 liuhongt <hongtao.liu@intel.com>
9169
9170 PR target/82735
9171 * config/i386/i386-expand.c (ix86_expand_builtin): Remove
9172 assignment of cfun->machine->has_explicit_vzeroupper.
9173 * config/i386/i386-features.c
9174 (ix86_add_reg_usage_to_vzerouppers): Delete.
9175 (ix86_add_reg_usage_to_vzeroupper): Ditto.
9176 (rest_of_handle_insert_vzeroupper): Remove
9177 ix86_add_reg_usage_to_vzerouppers, add df_analyze at the end
9178 of the function.
9179 (gate): Remove cfun->machine->has_explicit_vzeroupper.
9180 * config/i386/i386-protos.h (ix86_expand_avx_vzeroupper):
9181 Declared.
9182 * config/i386/i386.c (ix86_insn_callee_abi): New function.
9183 (ix86_initialize_callee_abi): Ditto.
9184 (ix86_expand_avx_vzeroupper): Ditto.
9185 (ix86_hard_regno_call_part_clobbered): Adjust for vzeroupper
9186 ABI.
9187 (TARGET_INSN_CALLEE_ABI): Define as ix86_insn_callee_abi.
9188 (ix86_emit_mode_set): Call ix86_expand_avx_vzeroupper
9189 directly.
9190 * config/i386/i386.h (struct GTY(()) machine_function): Delete
9191 has_explicit_vzeroupper.
9192 * config/i386/i386.md (enum unspec): New member
9193 UNSPEC_CALLEE_ABI.
9194 (ABI_DEFAULT,ABI_VZEROUPPER,ABI_UNKNOWN): New
9195 define_constants for insn callee abi index.
9196 * config/i386/predicates.md (vzeroupper_pattern): Adjust.
9197 * config/i386/sse.md (UNSPECV_VZEROUPPER): Deleted.
9198 (avx_vzeroupper): Call ix86_expand_avx_vzeroupper.
9199 (*avx_vzeroupper): Rename to ..
9200 (avx_vzeroupper_callee_abi): .. this, and adjust pattern as
9201 call_insn which has a special vzeroupper ABI.
9202 (*avx_vzeroupper_1): Deleted.
9203
9204 2021-06-07 liuhongt <hongtao.liu@intel.com>
9205
9206 PR target/82735
9207 * df-scan.c (df_get_call_refs): When call_insn is a fake call,
9208 it won't use stack pointer reg.
9209 * final.c (leaf_function_p): When call_insn is a fake call, it
9210 won't affect caller as a leaf function.
9211 * reg-stack.c (callee_clobbers_any_stack_reg): New.
9212 (subst_stack_regs): When call_insn doesn't clobber any stack
9213 reg, don't clear the arguments.
9214 * rtl.c (shallow_copy_rtx): Don't clear flag used when orig is
9215 a insn.
9216 * shrink-wrap.c (requires_stack_frame_p): No need for stack
9217 frame for a fake call.
9218 * rtl.h (FAKE_CALL_P): New macro.
9219
9220 2021-06-06 Eric Botcazou <ebotcazou@adacore.com>
9221
9222 * config/sparc/sparc-protos.h (order_regs_for_local_alloc): Rename
9223 to...
9224 (sparc_order_regs_for_local_alloc): ...this.
9225 (sparc_leaf_reg_remap): Declare.
9226 * config/sparc/sparc.h (ADJUST_REG_ALLOC_ORDER): Adjust.
9227 (LEAF_REG_REMAP): Reimplement as call to sparc_leaf_reg_remap.
9228 * config/sparc/sparc.c (leaf_reg_remap): Delete.
9229 (order_regs_for_local_alloc): Rename to...
9230 (sparc_order_regs_for_local_alloc): ...this.
9231 (sparc_leaf_reg_remap): New function.
9232 (sparc_conditional_register_usage): Do not modify leaf_reg_remap.
9233
9234 2021-06-06 David Edelsohn <dje.gcc@gmail.com>
9235
9236 * config/rs6000/rs6000.c (rs6000_xcoff_asm_output_aligned_decl_common):
9237 Use assemble_name to output BSS section name.
9238
9239 2021-06-06 Uroš Bizjak <ubizjak@gmail.com>
9240
9241 * config/i386/constraints.md (Bs):
9242 Remove boolean operators from match_test RTX.
9243 (Bw): Ditto.
9244 (L): Ditto.
9245 (M): Use "mode" variable instead of GET_MODE (op) in match_test RTX.
9246 (Wz): Ditto.
9247
9248 2021-06-06 Martin Liska <mliska@suse.cz>
9249
9250 * doc/extend.texi: Add missing @headitem.
9251 * doc/invoke.texi: Likewise.
9252 * doc/objc.texi: Likewise.
9253
9254 2021-06-06 Martin Liska <mliska@suse.cz>
9255
9256 * genhooks.c (emit_findices): Remove unused function.
9257 (emit_documentation): Do not call emit_findices
9258 and do not search for @Fcode directives.
9259
9260 2021-06-06 Martin Liska <mliska@suse.cz>
9261
9262 * doc/invoke.texi: Remove extra character.
9263
9264 2021-06-05 Kewen Lin <linkw@linux.ibm.com>
9265
9266 * config/sh/sh.md (doloop_end_split): Fix empty split condition.
9267
9268 2021-06-05 Kewen Lin <linkw@linux.ibm.com>
9269
9270 * config/sparc/sparc.md (*snedi<W:mode>_zero_vis3,
9271 *neg_snedi<W:mode>_zero_subxc, *plus_snedi<W:mode>_zero,
9272 *plus_plus_snedi<W:mode>_zero, *minus_snedi<W:mode>_zero,
9273 *minus_minus_snedi<W:mode>_zero): Fix empty split condition.
9274
9275 2021-06-05 Kewen Lin <linkw@linux.ibm.com>
9276
9277 * config/or1k/or1k.md (*movdi): Fix empty split condition.
9278
9279 2021-06-05 Kewen Lin <linkw@linux.ibm.com>
9280
9281 * config/mips/mips.md (<anonymous>, bswapsi2, bswapdi2): Fix empty
9282 split condition.
9283
9284 2021-06-05 Kewen Lin <linkw@linux.ibm.com>
9285
9286 * config/m68k/m68k.md (*zero_extend_inc, *zero_extend_dec,
9287 *zero_extendsidi2): Fix empty split condition.
9288
9289 2021-06-05 Jeff Law <jeffreyalaw@gmail.com>
9290
9291 * config/h8300/addsub.md: Fix split condition in define_insn_and_split
9292 patterns.
9293 * config/h8300/bitfield.md: Likewise.
9294 * config/h8300/combiner.md: Likewise.
9295 * config/h8300/divmod.md: Likewise.
9296 * config/h8300/extensions.md: Likewise.
9297 * config/h8300/jumpcall.md: Likewise.
9298 * config/h8300/movepush.md: Likewise.
9299 * config/h8300/multiply.md: Likewise.
9300 * config/h8300/other.md: Likewise.
9301 * config/h8300/shiftrotate.md: Likewise.
9302 * config/h8300/logical.md: Likewise. Fix split pattern to use
9303 code iterator that somehow slipped through.
9304
9305 2021-06-04 Tobias Burnus <tobias@codesourcery.com>
9306
9307 PR middle-end/100905
9308 * tree-nested.c (convert_nonlocal_omp_clauses,
9309 convert_local_omp_clauses): Handle OMP_CLAUSE_BIND.
9310
9311 2021-06-04 Martin Sebor <msebor@redhat.com>
9312
9313 PR middle-end/100732
9314 * gimple-fold.c (gimple_fold_builtin_sprintf): Avoid folding calls
9315 with either source or destination argument of invalid type.
9316 * tree-ssa-uninit.c (maybe_warn_pass_by_reference): Avoid checking
9317 calls with arguments of invalid type.
9318
9319 2021-06-04 Martin Sebor <msebor@redhat.com>
9320
9321 * attribs.c (init_attr_rdwr_indices): Use VLA bounds in the expected
9322 order.
9323 (attr_access::vla_bounds): Also handle VLA bounds.
9324
9325 2021-06-04 Uroš Bizjak <ubizjak@gmail.com>
9326
9327 * config/i386/predicates.md (GOT_memory_operand):
9328 Implement using match_code RTXes.
9329 (GOT32_symbol_operand): Ditto.
9330
9331 2021-06-04 Uroš Bizjak <ubizjak@gmail.com>
9332
9333 PR target/100637
9334 * config/i386/i386-expand.c (ix86_expand_vector_init_duplicate):
9335 Handle V2HI mode.
9336 (ix86_expand_vector_init_general): Ditto.
9337 Use SImode instead of word_mode for logic operations
9338 when GET_MODE_SIZE (mode) < UNITS_PER_WORD.
9339 (expand_vec_perm_even_odd_1): Assert that V2HI mode should be
9340 implemented by expand_vec_perm_1.
9341 (expand_vec_perm_broadcast_1): Assert that V2HI and V4HI modes
9342 should be implemented using standard shuffle patterns.
9343 (ix86_vectorize_vec_perm_const): Handle V2HImode. Add V4HI and
9344 V2HI modes to modes, implementable with shuffle for one operand.
9345 * config/i386/mmx.md (*punpckwd): New insn_and_split pattern.
9346 (*pshufw_1): New insn pattern.
9347 (*vec_dupv2hi): Ditto.
9348 (vec_initv2hihi): New expander.
9349
9350 2021-06-04 Kewen Lin <linkw@linux.ibm.com>
9351
9352 * config/arm/vfp.md (no_literal_pool_df_immediate,
9353 no_literal_pool_sf_immediate): Fix empty split condition.
9354
9355 2021-06-04 Kewen Lin <linkw@linux.ibm.com>
9356
9357 * config/i386/i386.md (*load_tp_x32_zext, *add_tp_x32_zext,
9358 *tls_dynamic_gnu2_combine_32): Fix empty split condition.
9359 * config/i386/sse.md (*<sse2_avx2>_pmovmskb_lt,
9360 *<sse2_avx2>_pmovmskb_zext_lt, *sse2_pmovmskb_ext_lt,
9361 *<sse4_1_avx2>_pblendvb_lt): Likewise.
9362
9363 2021-06-04 Jakub Jelinek <jakub@redhat.com>
9364
9365 PR target/100887
9366 * config/i386/i386-expand.c (ix86_expand_vector_init): Handle
9367 concatenation from half-sized modes with TImode elements.
9368
9369 2021-06-04 Claudiu Zissulescu <claziss@synopsys.com>
9370
9371 * config/arc/arc.c (arc_override_options): Disable millicode
9372 thunks when RF16 is on.
9373
9374 2021-06-04 Haochen Gui <guihaoc@gcc.gnu.org>
9375
9376 * config/rs6000/rs6000.h (PROMOTE_MODE): Remove.
9377
9378 2021-06-04 Haochen Gui <guihaoc@gcc.gnu.org>
9379
9380 * config/rs6000/rs6000-call.c (rs6000_promote_function_mode):
9381 Replace PROMOTE_MODE marco with its content.
9382
9383 2021-06-03 Kewen Lin <linkw@linux.ibm.com>
9384
9385 * config/cris/cris.md (*addi_reload): Fix empty split condition.
9386
9387 2021-06-03 Jim Wilson <jimw@sifive.com>
9388
9389 * config.gcc (riscv*-*-*): If --with-riscv-attribute not used,
9390 turn it on for all riscv targets.
9391
9392 2021-06-03 Uroš Bizjak <ubizjak@gmail.com>
9393
9394 PR target/100637
9395 * config/i386/i386-expand.c (ix86_expand_vector_set):
9396 Handle V2HI and V4QI modes.
9397 (ix86_expand_vector_extract): Ditto.
9398 * config/i386/mmx.md (*pinsrw): New insn pattern.
9399 (*pinsrb): Ditto.
9400 (*pextrw): Ditto.
9401 (*pextrw_zext): Ditto.
9402 (*pextrb): Ditto.
9403 (*pextrb_zext): Ditto.
9404 (vec_setv2hi): New expander.
9405 (vec_extractv2hihi): Ditto.
9406 (vec_setv4qi): Ditto.
9407 (vec_extractv4qiqi): Ditto.
9408 (vec_setv8qi): Enable only for TARGET_SSE4_1.
9409 (vec_extractv8qiqi): Ditto.
9410
9411 2021-06-03 Aaron Sawdey <acsawdey@linux.ibm.com>
9412
9413 * config/rs6000/genfusion.pl (gen_logical_addsubf): Fix input
9414 order to subf instruction.
9415 * config/rs6000/fusion.md: Regenerate.
9416
9417 2021-06-03 Aldy Hernandez <aldyh@redhat.com>
9418
9419 * calls.c (get_size_range): Use range_of_expr instead of
9420 determine_value_range.
9421 * tree-affine.c (expr_to_aff_combination): Same.
9422 * tree-data-ref.c (split_constant_offset): Same.
9423 * tree-vrp.c (determine_value_range_1): Remove.
9424 (determine_value_range): Remove.
9425 * tree-vrp.h (determine_value_range): Remove.
9426
9427 2021-06-03 Aldy Hernandez <aldyh@redhat.com>
9428
9429 * function-tests.c (test_ranges): Call gimple_range_tests.
9430 * gimple-range-cache.cc (ranger_cache::range_of_expr): Pass stmt
9431 to get_tree_range.
9432 * gimple-range.cc (fur_source::get_operand): Do not call
9433 get_tree_range or gimple_range_global.
9434 get_tree_range.
9435 (get_tree_range): Move to value-query.cc.
9436 Call get_arith_expr_range.
9437 (gimple_ranger::range_of_expr): Add argument to get_tree_range.
9438 Include gimple-range-tests.cc.
9439 * gimple-range.h (fold_range): Add argument.
9440 (get_tree_range): Remove.
9441 * selftest.h (gimple_range_tests): New.
9442 * value-query.cc (global_range_query::range_of_expr): Add
9443 stmt argument.
9444 (range_query::get_tree_range): Move from gimple-range.cc.
9445 * value-query.h (class range_query): Add get_tree_range and
9446 get_arith_expr_range. Make fur_source a friend.
9447 * vr-values.c (vr_values::range_of_expr): Pass stmt to
9448 get_tree_range.
9449 * gimple-range-tests.cc: New file.
9450
9451 2021-06-03 Aldy Hernandez <aldyh@redhat.com>
9452
9453 * gimple-range.cc (gimple_ranger::export_global_ranges): Call
9454 update_global_range.
9455 * value-query.cc (update_global_range): New.
9456 * value-query.h (update_global_range): New.
9457
9458 2021-06-03 David Malcolm <dmalcolm@redhat.com>
9459
9460 * diagnostic-show-locus.c (diagnostic_show_locus): Don't reject
9461 printing the same location twice if there are fix-it hints,
9462 multiple locations, or a label.
9463
9464 2021-06-03 Andre Vieira <andre.simoesdiasvieira@arm.com>
9465
9466 * tree-vect-loop.c (vect_transform_loop): Use main loop's various'
9467 thresholds to narrow the upper bound on epilogue iterations.
9468
9469 2021-06-03 Christophe Lyon <christophe.lyon@linaro.org>
9470
9471 * config/arm/mve.md (mve_vabsq_f<mode>): Use 'abs' instead of unspec.
9472 (mve_vabsq_s<mode>): Likewise.
9473 * config/arm/neon.md (abs<mode>2): Rename to neon_abs<mode>2.
9474 * config/arm/unspecs.md (VABSQ_F, VABSQ_S): Delete.
9475 * config/arm/vec-common.md (neg<mode>2): Rename to
9476 <absneg_str><mode>2.
9477
9478 2021-06-03 Claudiu Zissulescu <claziss@synopsys.com>
9479
9480 * common/config/arc/arc-common.c (arc_option_optimization_table):
9481 Remove malign-call.
9482 * config/arc/arc.c (arc_unalign_branch_p): Remove unused function.
9483 * config/arc/arc.h (TARGET_MIXED_CODE): Remove macro.
9484 (INDEX_REG_CLASS): Only refer to GENERAL_REGS.
9485 * config/arc/arc.md (abssi2_mixed): Remove pattern.
9486 * config/arc/arc.opt (munalign-prob-threshold): Mark it obsolete.
9487 (malign-call): Likewise.
9488 (mmixed-code): Likewise.
9489 * doc/invoke.texi (ARC): Update doc.
9490
9491 2021-06-03 Martin Liska <mliska@suse.cz>
9492
9493 * common.opt: Use proper Enum values.
9494 * opts.c (COVERAGE_SANITIZER_OPT): Remove.
9495 (parse_sanitizer_options): Handle only sanitizer_opts.
9496 (common_handle_option): Just assign value.
9497
9498 2021-06-03 Eric Botcazou <ebotcazou@adacore.com>
9499
9500 PR ipa/99122
9501 * tree-inline.c (inline_forbidden_p): Remove test on return type.
9502
9503 2021-06-03 Eric Botcazou <ebotcazou@adacore.com>
9504
9505 * dwarf2out.c (loc_list_from_tree_1) <FUNCTION_DECL>: Also generate
9506 DW_OP_GNU_variable_value referencing an existing DIE at file scope.
9507 (type_byte_size): Inline into...
9508 (add_byte_size_attribute): ...this and call add_scalar_info.
9509
9510 2021-06-03 Eric Botcazou <ebotcazou@adacore.com>
9511
9512 * dwarf2out.c (mem_loc_descriptor) <UDIV>: Fix typo.
9513 (typed_binop_from_tree): New function.
9514 (loc_list_from_tree_1) <EXACT_DIV_EXPR>: For an unsigned type,
9515 turn a divide by a power of 2 into a shift.
9516 <CEIL_DIV_EXPR>: For an unsigned type, use a signed divide if the
9517 size of the mode is lower than DWARF2_ADDR_SIZE; otherwise, do a
9518 typed divide by calling typed_binop_from_tree.
9519
9520 2021-06-03 Eric Botcazou <ebotcazou@adacore.com>
9521
9522 * dwarf2out.c (scompare_loc_descriptor): Fix head comment.
9523 (is_handled_procedure_type): Likewise.
9524 (struct loc_descr_context): Add strict_signedness field.
9525 (resolve_args_picking_1): Deal with DW_OP_[GNU_]deref_type,
9526 DW_OP_[GNU_]convert and DW_OP_[GNU_]reinterpret.
9527 (resolve_args_picking): Minor tweak.
9528 (function_to_dwarf_procedure): Initialize strict_signedness field.
9529 (type_byte_size): Likewise.
9530 (field_byte_offset): Likewise.
9531 (gen_descr_array_type_die): Likewise.
9532 (gen_variant_part): Likewise.
9533 (loc_list_from_tree_1) <CALL_EXPR>: Tidy up and set strict_signedness
9534 to true when a context is present before evaluating the arguments.
9535 <COND_EXPR>: Do not generate a useless comparison with zero.
9536 When dereferencing an address, if strict_signedness is true and the
9537 type is small and signed, use DW_OP_deref_type to do the dereference
9538 and then DW_OP_convert to convert back to the generic type.
9539
9540 2021-06-03 Jakub Jelinek <jakub@redhat.com>
9541
9542 PR c++/100859
9543 * tree-inline.c (copy_tree_body_r): Handle iterators on
9544 OMP_CLAUSE_AFFINITY or OMP_CLAUSE_DEPEND.
9545
9546 2021-06-03 Kewen Lin <linkw@linux.ibm.com>
9547
9548 * config/arc/arc.md (*bbit_di): Remove.
9549
9550 2021-06-02 Christoph Muellner <cmuellner@gcc.gnu.org>
9551
9552 PR rtl-optimization/100264
9553 * ree.c (get_sub_rtx): Ignore SET expressions without register
9554 destinations and remove assertion, as it is not valid anymore
9555 with this new behaviour.
9556 (merge_def_and_ext): Eliminate destination check for register
9557 as such SET expressions can't occur anymore.
9558 (combine_reaching_defs): Likewise.
9559
9560 2021-06-02 Jakub Jelinek <jakub@redhat.com>
9561
9562 PR target/100841
9563 * config/xtensa/xtensa.h (LEAF_REG_REMAP): Cast REGNO to int to avoid
9564 -Wtype-limits warnings.
9565 (DWARF_FRAME_REGISTER): Rewrite into ternary operator with addition
9566 in operands to avoid -Wsign-compare warnings.
9567
9568 2021-06-02 Pat Haugen <pthaugen@linux.ibm.com>
9569
9570 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Use
9571 gen_frame_store.
9572
9573 2021-06-02 Vineet Gupta <vgupta@synopsys.com>
9574
9575 * config/arc/arc.h (TARGET_CPU_DEFAULT): Change to hs38_linux.
9576
9577 2021-06-02 Ilya Leoshkevich <iii@linux.ibm.com>
9578
9579 * config/s390/s390.md(*ashrdi3_31<setcc><cconly>): Use a single
9580 constraint.
9581 * config/s390/subst.md(cconly_subst): Use a single constraint
9582 in (match_scratch).
9583
9584 2021-06-02 Martin Liska <mliska@suse.cz>
9585
9586 * ipa-icf.h: Use auto_vec for memory_access_types.
9587
9588 2021-06-02 Jeff Law <jeffreyalaw@gmail.com>
9589
9590 * config/h8300/h8300-protos.h (compute_a_shift_length): Drop unused
9591 argument from prototype.
9592 (output_logical_op): Add rtx_code argument.
9593 (compute_logical_op_length): Likewise.
9594 * config/h8300/h8300.c (h8300_and_costs): Pass additional argument
9595 to compute_a_shift_length.
9596 (output_logical_op); New argument with the rtx code rather than
9597 extracting it from an operand. Handle QImode too.
9598 (compute_logical_op_length): Similary.
9599 (compute_a_shift_length): Drop unused argument.
9600 * config/h8300/h8300.md (logicals): New code iterator.
9601 * config/h8300/logical.md (<code><mode>3 expander): Combine
9602 the "and" expander with the "ior"/"xor" expander.
9603 (bclr<mode>msx): Combine the QI/HI mode patterns.
9604 (<logical><mode>3 insns): Use code iterator rather than match_operator.
9605 Handle QImode as well. Update call to output_logical_op and
9606 compute_logical_op_length to pass in rtx_code
9607 Fix split condition on all define_insn_and_split patterns.
9608 (one_cmpl<mode>2<cczn>): Use <cczn> to support both clobbering
9609 the flags and setting ZN via existing define_subst.
9610 * config/h8300/shiftrotate.md: Drop unused argument from
9611 calls to compute_a_shift_length.
9612 Signed-off-by: Jeff Law <jeffreyalaw@gmail.com>
9613
9614 2021-06-01 Andrew Pinski <apinski@marvell.com>
9615
9616 PR tree-optimization/25290
9617 * tree-ssa-phiopt.c (match_simplify_replacement):
9618 New function.
9619 (tree_ssa_phiopt_worker): Use match_simplify_replacement.
9620 (two_value_replacement): Change the comment about
9621 conditional_replacement.
9622 (conditional_replacement): Delete.
9623
9624 2021-06-01 Andrew Pinski <apinski@marvell.com>
9625
9626 PR tree-optimization/95481
9627 * tree-tailcall.c (find_tail_calls): Handle empty typed
9628 return decls.
9629
9630 2021-06-01 Andrew Pinski <apinski@marvell.com>
9631
9632 * gimplify.c (zero_sized_field_decl): Delete
9633 (zero_sized_type): Delete
9634 (gimplify_init_ctor_eval): Use is_empty_type instead
9635 of zero_sized_field_decl.
9636 (gimplify_modify_expr): Use is_empty_type instead of
9637 zero_sized_type.
9638
9639 2021-06-01 Jason Merrill <jason@redhat.com>
9640
9641 PR c++/91859
9642 * tree.h (CALL_FROM_NEW_OR_DELETE_P): Adjust comment.
9643
9644 2021-06-01 Jason Merrill <jason@redhat.com>
9645
9646 PR c++/94492
9647 * diagnostic.h (warning_enabled_at): Declare.
9648 * diagnostic.c (diagnostic_enabled): Factor out from...
9649 (diagnostic_report_diagnostic): ...here.
9650 (warning_enabled_at): New.
9651
9652 2021-06-01 Aldy Hernandez <aldyh@redhat.com>
9653
9654 * gimple-ssa-evrp.c: Enable exporting of global ranges.
9655
9656 2021-06-01 Martin Liska <mliska@suse.cz>
9657
9658 PR other/100826
9659 * doc/invoke.texi: Mention that -fgcse-after-reload
9660 is enabled with -O3.
9661
9662 2021-06-01 liuhongt <hongtao.liu@intel.com>
9663
9664 PR tree-optimization/98365
9665 * tree-if-conv.c (strip_nop_cond_scalar_reduction): New function.
9666 (is_cond_scalar_reduction): Handle nop_expr in cond scalar reduction.
9667 (convert_scalar_cond_reduction): Ditto.
9668 (predicate_scalar_phi): Ditto.
9669
9670 2021-06-01 Andrew MacLeod <amacleod@redhat.com>
9671
9672 PR tree-optimization/100781
9673 * gimple-range-cache.cc (ranger_cache::ranger_cache): Enable new
9674 value calculation by default.
9675 (ranger_cache::enable_new_values): New.
9676 (ranger_cache::disable_new_values): New.
9677 (ranger_cache::push_poor_value): Check if new values are allowed.
9678 * gimple-range-cache.h (class ranger_cache): New member/methods.
9679 * gimple-range.cc (gimple_ranger::range_of_expr): Check for debug
9680 statement, and disable/renable new value calculation.
9681
9682 2021-06-01 Andrew MacLeod <amacleod@redhat.com>
9683
9684 * gimple-range-cache.cc (ranger_cache::ssa_range_in_bb): Delete.
9685 (ranger_cache::range_of_def): New.
9686 (ranger_cache::entry_range): New.
9687 (ranger_cache::exit_range): New.
9688 (ranger_cache::range_of_expr): Adjust.
9689 (ranger_cache::range_on_edge): Adjust.
9690 (ranger_cache::propagate_cache): Call exit_range directly.
9691 * gimple-range-cache.h (class ranger_cache): Adjust.
9692
9693 2021-06-01 Andrew MacLeod <amacleod@redhat.com>
9694
9695 * gimple-range-cache.cc (ranger_cache::ranger_cache): Adjust for
9696 gori_compute being a member rather than base class.
9697 dervied call to member call.
9698 (ranger_cache::dump): No longer dump gori_map.
9699 (ranger_cache::dump_bb): New.
9700 (ranger_cache::get_non_stale_global_range): Adjust for gori_compute
9701 being a member rather than base class.
9702 (ranger_cache::set_global_range): Ditto.
9703 (ranger_cache::ssa_range_in_bb): Ditto.
9704 (ranger_cache::range_of_expr): New.
9705 (ranger_cache::range_on_edge): New.
9706 (ranger_cache::block_range): Adjust for gori_computes. Debug changes.
9707 (ranger_cache::propagate_cache): Adjust debugging output.
9708 (ranger_cache::fill_block_cache): Adjust for gori_computes. Debug
9709 output changes.
9710 * gimple-range-cache.h (class ranger_cache): Make gori_compute a
9711 member, and inherit from range_query instead.
9712 (ranger_cache::dump_bb): New. split from dump.
9713 * gimple-range-gori.cc (gori_compute::ssa_range_in_bb): Delete.
9714 (gori_compute::expr_range_at_stmt): Delete.
9715 (gori_compute::compute_name_range_op): Delete.
9716 (gori_compute::compute_operand_range_switch): Add fur_source.
9717 (gori_compute::compute_operand_range): Add fur_source param, inline
9718 old compute_name_range_op and optimize_logical_operands.
9719 (struct tf_range): Delete.
9720 (gori_compute::logical_combine): Adjust
9721 (gori_compute::optimize_logical_operands): Delete.
9722 (gori_compute::compute_logical_operands_in_chain): Delete.
9723 (gori_compute::compute_logical_operands): Adjust.
9724 (gori_compute::compute_operand1_range): Adjust to fur_source.
9725 (gori_compute::compute_operand2_range): Ditto.
9726 (gori_compute::compute_operand1_and_operand2_range): Ditto.
9727 (gori_compute::outgoing_edge_range_p): Add range_query parameter,
9728 and adjust to fur_source.
9729 * gimple-range-gori.h (class gori_compute): Simplify and adjust to
9730 range_query and fur_source.
9731 * gimple-range.cc (gimple_ranger::range_on_edge): Query range_on_edge
9732 from the ranger_cache..
9733 (gimple_ranger::fold_range_internal): Adjust to base class change of
9734 ranger_cache.
9735 (gimple_ranger::dump_bb): Adjust dump.
9736 * gimple-range.h (gimple_ranger):export gori computes object.
9737
9738 2021-06-01 Andrew MacLeod <amacleod@redhat.com>
9739
9740 PR tree-optimization/100774
9741 * gimple-range-cache.cc (ranger_cache::get_non_stale_global_range):
9742 Constant values are also not stale.
9743 (ranger_cache::set_global_range): Range invariant values should also
9744 have the correct timestamp.
9745
9746 2021-05-31 Martin Liska <mliska@suse.cz>
9747
9748 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
9749 Unpack FUNCTION_DECL_DECL_TYPE.
9750 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
9751 Stream FUNCTION_DECL_DECL_TYPE instead of
9752 DECL_IS_OPERATOR_NEW_P.
9753 * tree.h (set_function_decl_type): Use FUNCTION_DECL_DECL_TYPE
9754 macro.
9755 (DECL_IS_OPERATOR_NEW_P): Likewise.
9756 (DECL_IS_OPERATOR_DELETE_P): Likewise.
9757 (DECL_LAMBDA_FUNCTION_P): Likewise.
9758
9759 2021-05-31 Richard Biener <rguenther@suse.de>
9760
9761 PR c++/88601
9762 * internal-fn.c (expand_SHUFFLEVECTOR): Define.
9763 * internal-fn.def (SHUFFLEVECTOR): New.
9764 * internal-fn.h (expand_SHUFFLEVECTOR): Declare.
9765 * doc/extend.texi: Document __builtin_shufflevector.
9766
9767 2021-05-31 Peter Bergner <bergner@linux.ibm.com>
9768
9769 PR target/99842
9770 * config/rs6000/predicates.md(mma_assemble_input_operand): Allow
9771 indexed form addresses.
9772
9773 2021-05-29 Jeff Law <jlaw@tachyum.com>
9774
9775 * config/h8300/h8300.c (h8300_emit_stack_adjustment): Drop unused
9776 parameter. Call callers fixed.
9777 (push): Likewise.
9778 (output_plussi): Add FALLTHRU markers.
9779 (h8300_shift_needs_scratch_p): Add gcc_unreachable marker.
9780
9781 2021-05-29 Jakub Jelinek <jakub@redhat.com>
9782
9783 PR middle-end/99928
9784 * gimplify.c (gimplify_scan_omp_clauses): For taskloop simd
9785 combined with parallel, make sure to add shared clause to
9786 parallel for explicit linear clause.
9787
9788 2021-05-29 Aldy Hernandez <aldyh@redhat.com>
9789
9790 PR tree-optimization/100787
9791 * gimple-ssa-evrp.c: Disable exporting of global ranges.
9792
9793 2021-05-28 Jason Merrill <jason@redhat.com>
9794
9795 * tree-iterator.h (struct tree_stmt_iterator): Add operator++,
9796 operator--, operator*, operator==, and operator!=.
9797 (class tsi_range): New.
9798
9799 2021-05-28 Richard Biener <rguenther@suse.de>
9800
9801 PR tree-optimization/100778
9802 * tree-vect-slp.c (vect_build_slp_tree_1): Prevent possibly
9803 trapping ops in different BBs.
9804
9805 2021-05-28 Richard Biener <rguenther@suse.de>
9806
9807 PR ipa/100791
9808 * tree-inline.c (copy_bb): When processing __builtin_va_arg_pack
9809 copy fntype from original call.
9810
9811 2021-05-28 Martin Liska <mliska@suse.cz>
9812
9813 PR gcov-profile/100751
9814 * doc/gcov.texi: Revert partially a hunk that was wrong.
9815
9816 2021-05-28 Cooper Qu <cooper.qu@linux.alibaba.com>
9817
9818 * config/csky/csky-linux-elf.h (HAVE_sync_compare_and_swapqi):
9819 Defined.
9820 (HAVE_sync_compare_and_swaphi): Likewise.
9821 (HAVE_sync_compare_and_swapsi): Likewise.
9822
9823 2021-05-28 Jakub Jelinek <jakub@redhat.com>
9824
9825 PR middle-end/99928
9826 * tree.h (OMP_CLAUSE_MAP_IMPLICIT): Define.
9827
9828 2021-05-28 Tobias Burnus <tobias@codesourcery.com>
9829
9830 * gimplify.c (gimplify_omp_affinity): New.
9831 (gimplify_scan_omp_clauses): Call it; remove affinity clause afterwards.
9832 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_AFFINITY.
9833 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_AFFINITY.
9834 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add clause.
9835 (walk_tree_1): Handle OMP_CLAUSE_AFFINITY.
9836
9837 2021-05-28 Joern Rennecke <joern.rennecke@riscy-ip.com>
9838 Richard Biener <rguenther@suse.de>
9839
9840 * match.pd <popcount & / + pattern matching>:
9841 When generating popcount directly fails, try doing it in two halves.
9842
9843 2021-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
9844
9845 * Makefile.in (generated_files): Add gimple-match.c and
9846 generic-match.c
9847
9848 2021-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
9849
9850 * gensupport.c (alter_predicate_for_insn): Handle MATCH_DUP.
9851
9852 2021-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
9853
9854 * gensupport.c (alter_constraints): Add MATCH_SCRATCH case.
9855
9856 2021-05-28 Kewen Lin <linkw@linux.ibm.com>
9857
9858 PR tree-optimization/99398
9859 * tree-ssa-forwprop.c (simplify_permutation): Optimize some cases
9860 where the fed operands are CTOR/CST and propagated through
9861 VIEW_CONVERT_EXPR. Call vec_perm_indices::new_shrunk_vector.
9862 * vec-perm-indices.c (vec_perm_indices::new_shrunk_vector): New
9863 function.
9864 * vec-perm-indices.h (vec_perm_indices::new_shrunk_vector): New
9865 declare.
9866
9867 2021-05-27 Uroš Bizjak <ubizjak@gmail.com>
9868
9869 * config/i386/mmx.md (addv2sf3): Do not call
9870 ix86_fixup_binary_operands_no_copy.
9871 (subv2sf3): Ditto.
9872 (mulv2sf3): Ditto.
9873 (<smaxmin:code>v2sf3): Ditto.
9874 (<plusminus:insn><MMXMODEI:mode>3): Ditto.
9875 (<plusminus:insn><VI_32:mode>3): Remove expander.
9876 (<plusminus:insn><VI_32:mode>3): Rename from
9877 "*<plusminus:insn><VI_32:mode>3".
9878 (mulv4hi): Do not call ix86_fixup_binary_operands_no_copy.
9879 (mulv2hi3): Remove expander.
9880 (mulv2hi3): Rename from *mulv2hi3.
9881 (<s>mulv2hi3_highpart): Remove expander.
9882 (<s>mulv2hi3_highpart): Rename from *<s>mulv2hi3_highpart.
9883 (<smaxmin:code><MMXMODE14:mode>3): Rename from
9884 "*mmx_<smaxmin:code><MMXMODE14:mode>3".
9885 (<smaxmin:code><SMAXMIN_MMXMODEI:mode>3): Remove expander.
9886 (SMAXMIN_MMXMODEI): Remove mode iterator.
9887 (<smaxmin:code>v4hi3): New expander.
9888 (<smaxmin:code>v4qi3): Rename from *<smaxmin:code>v4qi3.
9889 (<smaxmin:code>v2hi3): Rename from *<smaxmin:code>v2hi3.
9890 (<smaxmin:code><SMAXMIN_VI_32:mode>3): Remove expander.
9891 (SMAXMIN_VI_32): Remove mode iterator.
9892 (<umaxmin:code><MMXMODE24:mode>3): Rename from
9893 "*mmx_<umaxmin:code><MMXMODE24:mode>3".
9894 (<umaxmin:code><UMAXMIN_MMXMODEI:mode>3): Remove expander.
9895 (UMAXMIN_MMXMODEI): Remove mode iterator.
9896 (<umaxmin:code>v8qi3): New expander.
9897 (<umaxmin:code>v4qi3): Rename from *<umaxmin:code>v4qi3.
9898 (<umaxmin:code>v2hi3): Rename from *<umaxmin:code>v2hi3.
9899 (<umaxmin:code><SMAXMIN_VI_32:mode>3): Remove expander.
9900 (UMAXMIN_VI_32): Remove mode iterator.
9901 (<any_shift:insn>v2hi3): Remove expander.
9902 (<any_shift:insn>v2hi3): Rename from *<any_shift:insn>v2hi3.
9903 (<any_logic:code><MMXMODEI:mode>3): Do not call
9904 ix86_fixup_binary_operands_no_copy.
9905 (<any_logic:code><VI_32:mode>3): Remove expander.
9906 (<any_logic:code><VI_32:mode>3): Rename from
9907 "*<any_logic:code><VI_32:mode>3".
9908 (uavg<mode>3_ceil): Do not call ix86_fixup_binary_operands_no_copy.
9909 * config/i386/sse.md (div<VF2:mode>3): Do not call
9910 ix86_fixup_binary_operands_no_copy.
9911 (div<VF1:mode>3): Ditto.
9912 (<maxmin:code><VI8_AVX2_AVX512F:mode>3): Ditto.
9913 (smulhrsv4hi3): Ditto.
9914 (smulhrsv2hi3): Ditto.
9915
9916 2021-05-27 Martin Sebor <msebor@redhat.com>
9917
9918 * ggc.h (gt_ggc_mx): Add overloads for all integers.
9919 (gt_pch_nx): Same.
9920 * hash-map.h (class hash_map): Add pch_nx_helper overloads for all
9921 integers.
9922 (hash_map::operator==): New function.
9923
9924 2021-05-27 Uroš Bizjak <ubizjak@gmail.com>
9925
9926 PR target/100637
9927 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
9928 For TARGET_XOP bypass SSE comparisons for all supported vector modes.
9929 * config/i386/mmx.md (*xop_maskcmp<MMXMODEI:mode>3): New insn pattern.
9930 (*xop_maskcmp<VI_32:mode>3): Ditto.
9931 (*xop_maskcmp_uns<MMXMODEI:mode>3): Ditto.
9932 (*xop_maskcmp_uns<VI_32:mode>3): Ditto.
9933
9934 2021-05-27 Richard Earnshaw <rearnsha@arm.com>
9935
9936 PR target/100767
9937 * config/arm/arm.c (arm_configure_build_target): Remove parameter
9938 opts_set, directly check opts parameters for being non-null.
9939 (arm_option_restore): Update call to arm_configure_build_target.
9940 (arm_option_override): Likewise.
9941 (arm_can_inline_p): Likewise.
9942 (arm_valid_target_attribute_tree): Likewise.
9943 * config/arm/arm-c.c (arm_pragma_target_parse): Likewise.
9944 * config/arm/arm-protos.h (arm_configure_build_target): Adjust
9945 prototype.
9946
9947 2021-05-27 Aldy Hernandez <aldyh@redhat.com>
9948
9949 * vr-values.c (simplify_conversion_using_ranges): Use
9950 get_range_query instead of get_global_range_query.
9951
9952 2021-05-27 Aldy Hernandez <aldyh@redhat.com>
9953
9954 * gimple-range.cc (get_range_global): Move to value-query.cc.
9955 (gimple_range_global): Same.
9956 (get_global_range_query): Same.
9957 (global_range_query::range_of_expr): Same.
9958 * gimple-range.h (class global_range_query): Move to
9959 value-query.h.
9960 (gimple_range_global): Same.
9961 * tree-ssanames.c (get_range_info): Move to value-query.cc.
9962 (get_ptr_nonnull): Same.
9963 * tree-ssanames.h (get_range_info): Remove.
9964 (get_ptr_nonnull): Remove.
9965 * value-query.cc (get_ssa_name_range_info): Move from
9966 tree-ssanames.c.
9967 (get_ssa_name_ptr_info_nonnull): Same.
9968 (get_range_global): Move from gimple-range.cc.
9969 (gimple_range_global): Same.
9970 (get_global_range_query): Same.
9971 (global_range_query::range_of_expr): Same.
9972 * value-query.h (class global_range_query): Move from
9973 gimple-range.h.
9974 (gimple_range_global): Same.
9975
9976 2021-05-27 Uroš Bizjak <ubizjak@gmail.com>
9977
9978 PR target/100637
9979 * config/i386/mmx.md (uavgv4qi3_ceil): New insn pattern.
9980 (uavgv2hi3_ceil): Ditto.
9981
9982 2021-05-26 Eric Botcazou <ebotcazou@adacore.com>
9983
9984 PR c/100653
9985 * doc/extend.texi (scalar_storage_order): Rephrase slightly.
9986
9987 2021-05-26 Aldy Hernandez <aldyh@redhat.com>
9988
9989 * tree-ssanames.c (get_range_info): Merge both copies of
9990 get_range_info into one that works with irange.
9991 * tree-ssanames.h (get_range_info): Remove version that works on
9992 wide_ints.
9993
9994 2021-05-26 Aldy Hernandez <aldyh@redhat.com>
9995
9996 * builtins.c (check_nul_terminated_array): Convert to get_range_query.
9997 (expand_builtin_strnlen): Same.
9998 (determine_block_size): Same.
9999 * fold-const.c (expr_not_equal_to): Same.
10000 * gimple-fold.c (size_must_be_zero_p): Same.
10001 * gimple-match-head.c: Include gimple-range.h.
10002 * gimple-pretty-print.c (dump_ssaname_info): Convert to get_range_query.
10003 * gimple-ssa-warn-restrict.c
10004 (builtin_memref::extend_offset_range): Same.
10005 * graphite-sese-to-poly.c (add_param_constraints): Same.
10006 * internal-fn.c (get_min_precision): Same.
10007 * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Same.
10008 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
10009 * match.pd: Same.
10010 * tree-data-ref.c (split_constant_offset): Same.
10011 (dr_step_indicator): Same.
10012 * tree-dfa.c (get_ref_base_and_extent): Same.
10013 * tree-scalar-evolution.c (iv_can_overflow_p): Same.
10014 * tree-ssa-loop-niter.c (refine_value_range_using_guard): Same.
10015 (determine_value_range): Same.
10016 (record_nonwrapping_iv): Same.
10017 (infer_loop_bounds_from_signedness): Same.
10018 (scev_var_range_cant_overflow): Same.
10019 * tree-ssa-phiopt.c (two_value_replacement): Same.
10020 * tree-ssa-pre.c (insert_into_preds_of_block): Same.
10021 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Same.
10022 * tree-ssa-strlen.c (handle_builtin_stxncpy_strncat): Same.
10023 (get_range): Same.
10024 (dump_strlen_info): Same.
10025 (set_strlen_range): Same.
10026 (maybe_diag_stxncpy_trunc): Same.
10027 (get_len_or_size): Same.
10028 (handle_integral_assign): Same.
10029 * tree-ssa-structalias.c (find_what_p_points_to): Same.
10030 * tree-ssa-uninit.c (find_var_cmp_const): Same.
10031 * tree-switch-conversion.c (bit_test_cluster::emit): Same.
10032 * tree-vect-patterns.c (vect_get_range_info): Same.
10033 (vect_recog_divmod_pattern): Same.
10034 * tree-vrp.c (intersect_range_with_nonzero_bits): Same.
10035 (register_edge_assert_for_2): Same.
10036 (determine_value_range_1): Same.
10037 * tree.c (get_range_pos_neg): Same.
10038 * vr-values.c (vr_values::get_lattice_entry): Same.
10039 (vr_values::update_value_range): Same.
10040 (simplify_conversion_using_ranges): Same.
10041
10042 2021-05-26 Aldy Hernandez <aldyh@redhat.com>
10043
10044 * gimple-ssa-warn-alloca.c (alloca_call_type): Use
10045 get_range_query instead of query argument.
10046 (pass_walloca::execute): Enable and disable global ranger.
10047
10048 2021-05-26 Aldy Hernandez <aldyh@redhat.com>
10049
10050 * gimple-ssa-evrp.c (rvrp_folder::rvrp_folder): Call
10051 enable_ranger.
10052 (rvrp_folder::~rvrp_folder): Call disable_ranger.
10053 (hybrid_folder::hybrid_folder): Call enable_ranger.
10054 (hybrid_folder::~hybrid_folder): Call disable_ranger.
10055
10056 2021-05-26 Aldy Hernandez <aldyh@redhat.com>
10057
10058 * function.c (allocate_struct_function): Set cfun->x_range_query.
10059 * function.h (struct function): Declare x_range_query.
10060 (get_range_query): New.
10061 (get_global_range_query): New.
10062 * gimple-range-cache.cc (ssa_global_cache::ssa_global_cache):
10063 Remove call to safe_grow_cleared.
10064 * gimple-range.cc (get_range_global): New.
10065 (gimple_range_global): Move from gimple-range.h.
10066 (get_global_range_query): New.
10067 (global_range_query::range_of_expr): New.
10068 (enable_ranger): New.
10069 (disable_ranger): New.
10070 * gimple-range.h (gimple_range_global): Move to gimple-range.cc.
10071 (class global_range_query): New.
10072 (enable_ranger): New.
10073 (disable_ranger): New.
10074 * gimple-ssa-evrp.c (evrp_folder::~evrp_folder): Rename
10075 dump_all_value_ranges to dump.
10076 * tree-vrp.c (vrp_prop::finalize): Same.
10077 * value-query.cc (range_query::dump): New.
10078 * value-query.h (range_query::dump): New.
10079 * vr-values.c (vr_values::dump_all_value_ranges): Rename to...
10080 (vr_values::dump): ...this.
10081 * vr-values.h (class vr_values): Rename dump_all_value_ranges to
10082 dump and make virtual.
10083
10084 2021-05-26 Uroš Bizjak <ubizjak@gmail.com>
10085
10086 * config/i386/i386.c (ix86_autovectorize_vector_modes):
10087 Add V4QImode and V16QImode for TARGET_SSE2.
10088 * doc/sourcebuild.texi (Vector-specific attributes):
10089 Add vect64 and vect32 description.
10090
10091 2021-05-26 Bernd Edlinger <bernd.edlinger@hotmail.de>
10092
10093 * gimple-range-gori.cc (range_def_chain::register_dependency):
10094 Resize m_def_chain when needed.
10095
10096 2021-05-26 Christophe Lyon <christophe.lyon@linaro.org>
10097
10098 * config/arm/mve.md (mve_vaddvq_<supf><mode>): Prefix with '@'.
10099 * config/arm/neon.md (reduc_plus_scal_<mode>): Move to ..
10100 * config/arm/vec-common.md: .. here. Add support for MVE.
10101
10102 2021-05-26 Jakub Jelinek <jakub@redhat.com>
10103
10104 * config/epiphany/epiphany.c (epiphany_print_operand_address): Remove
10105 register keywords.
10106 * config/microblaze/microblaze.c (microblaze_legitimize_address,
10107 call_internal1,
10108 microblaze_option_override, print_operand): Likewise.
10109 * config/microblaze/microblaze.md (call_internal_plt,
10110 call_value_intern_plt, call_value_intern): Likewise.
10111 * config/arm/aout.h (ASM_OUTPUT_ALIGN): Likewise.
10112 * config/iq2000/iq2000.md (call_internal1, call_value_internal1,
10113 call_value_multiple_internal1): Likewise.
10114 * config/bfin/bfin.c (symbolic_reference_mentioned_p): Likewise.
10115
10116 2021-05-26 Jan-Benedict Glaw <jbglaw@lug-owl.de>
10117
10118 * config/arc/arc.c (arc_address_cost, arc_print_operand_address,
10119 arc_ccfsm_advance, symbolic_reference_mentioned_p,
10120 arc_raw_symbolic_reference_mentioned_p): Remove register
10121 keyword.
10122
10123 2021-05-26 Jakub Jelinek <jakub@redhat.com>
10124
10125 PR libgomp/100573
10126 * omp-low.c: Include omp-offload.h.
10127 (create_omp_child_function): If current_function_decl has
10128 "omp declare target" attribute and is_gimple_omp_offloaded,
10129 remove that attribute from the copy of attribute list and
10130 add "omp target entrypoint" attribute instead.
10131 (lower_omp_target): Mark .omp_data_sizes.* and .omp_data_kinds.*
10132 variables for offloading if in omp_maybe_offloaded_ctx.
10133 * omp-offload.c (pass_omp_target_link::execute): Nullify second
10134 argument to GOMP_target_data_ext in offloaded code.
10135
10136 2021-05-26 Geng Qi <gengqi@linux.alibaba.com>
10137
10138 * config/csky/csky.c (csky_can_change_mode_class): Delete.
10139 For csky, HF/SF mode use the low bits of VREGS.
10140
10141 2021-05-26 Eric Botcazou <ebotcazou@adacore.com>
10142
10143 * gimplify.c (gimplify_decl_expr): Do not clear TREE_READONLY on a
10144 DECL which is a reference for OMP.
10145
10146 2021-05-26 Martin Liska <mliska@suse.cz>
10147
10148 PR gcov-profile/100751
10149 * doc/gcov.texi: Document that __gcov_dump can be called just
10150 once and that __gcov_reset resets run-time counters.
10151
10152 2021-05-26 Martin Liska <mliska@suse.cz>
10153
10154 * doc/install.texi: Port relevant part from install-old.texi
10155 and re-generate list of CPUs and systems.
10156
10157 2021-05-26 Martin Liska <mliska@suse.cz>
10158
10159 * Makefile.in: Remove it.
10160 * doc/include/fdl.texi: Update next/previous chapters.
10161 * doc/install.texi: Likewise.
10162 * doc/install-old.texi: Removed.
10163
10164 2021-05-26 Geng Qi <gengqi@linux.alibaba.com>
10165
10166 * config/csky/csky.c (ck810_legitimate_index_p): Support
10167 "base + index" with DF mode.
10168 * config/csky/constraints.md ("Y"): New constraint for memory operands
10169 without index register.
10170 * config/csky/csky_insn_fpuv2.md (fpuv3_movdf): Use "Y" instead of "m"
10171 when mov between memory and general registers, and lower their priority.
10172 * config/csky/csky_insn_fpuv3.md (fpuv2_movdf): Likewise.
10173
10174 2021-05-26 Geng Qi <gengqi@linux.alibaba.com>
10175
10176 * config/csky/csky.c (TARGET_PROMOTE_PROTOTYPES): Delete.
10177
10178 2021-05-26 Geng Qi <gengqi@linux.alibaba.com>
10179
10180 * config/csky/csky.md (untyped_call): Emit clobber for return
10181 registers to mark them used.
10182
10183 2021-05-26 Geng Qi <gengqi@linux.alibaba.com>
10184
10185 * config/csky/csky.md (cskyv2_sextend_ldbs): New.
10186
10187 2021-05-26 Andrew Pinski <apinski@marvell.com>
10188
10189 * match.pd (x < 0 ? ~y : y): New patterns.
10190
10191 2021-05-26 Andrew Pinski <apinski@marvell.com>
10192
10193 * match.pd (A?CST1:CST2): Add simplifcations for A?0:+-1, A?+-1:0,
10194 A?POW2:0 and A?0:POW2.
10195
10196 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
10197
10198 * gimple-range-gori.cc (class logical_stmt_cache): Delete
10199 (logical_stmt_cache::logical_stmt_cache ): Delete.
10200 (logical_stmt_cache::~logical_stmt_cache): Delete.
10201 (logical_stmt_cache::cache_entry::dump): Delete.
10202 (logical_stmt_cache::get_range): Delete.
10203 (logical_stmt_cache::cached_name ): Delete.
10204 (logical_stmt_cache::same_cached_name): Delete.
10205 (logical_stmt_cache::cacheable_p): Delete.
10206 (logical_stmt_cache::slot_diagnostics ): Delete.
10207 (logical_stmt_cache::dump): Delete.
10208 (gori_compute_cache::gori_compute_cache): Delete.
10209 (gori_compute_cache::~gori_compute_cache): Delete.
10210 (gori_compute_cache::compute_operand_range): Delete.
10211 (gori_compute_cache::cache_stmt): Delete.
10212 * gimple-range-gori.h (gori_compute::compute_operand_range): Remove
10213 virtual.
10214 (class gori_compute_cache): Delete.
10215
10216 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
10217
10218 * gimple-range.cc (fold_using_range::range_of_range_op): Use m_gori
10219 intead of m_cache.
10220 (fold_using_range::range_of_address): Adjust.
10221 (fold_using_range::range_of_phi): Adjust.
10222 * gimple-range.h (class fur_source): Adjust.
10223 (fur_source::fur_source): Adjust.
10224
10225 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
10226
10227 * gimple-range-gori.cc (gori_compute::expr_range_at_stmt): Rename
10228 from expr_range_in_bb and adjust.
10229 (gori_compute::compute_name_range_op): Adjust.
10230 (gori_compute::optimize_logical_operands): Adjust.
10231 (gori_compute::compute_logical_operands_in_chain): Adjust.
10232 (gori_compute::compute_operand1_range): Adjust.
10233 (gori_compute::compute_operand2_range): Adjust.
10234 (ori_compute_cache::cache_stmt): Adjust.
10235 * gimple-range-gori.h (gori_compute): Rename prototype.
10236
10237 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
10238
10239 * gimple-range.cc (gimple_ranger::range_of_expr): Non-null should be
10240 checked only after range_of_stmt, not range_on_entry.
10241 (gimple_ranger::range_on_entry): Check for non-null in any
10242 predecessor block, if it is not already non-null.
10243 (gimple_ranger::range_on_exit): DOnt check for non-null after
10244 range on entry call.
10245 (gimple_ranger::dump_bb): New. Split from dump.
10246 (gimple_ranger::dump): Adjust.
10247 * gimple-range.h (class gimple_ranger): Adjust.
10248
10249 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
10250
10251 * gimple-range-cache.cc (struct range_timestamp): Delete.
10252 (class temporal_cache): Adjust.
10253 (temporal_cache::get_timestamp): Delete.
10254 (temporal_cache::set_dependency): Delete.
10255 (temporal_cache::temporal_value): Adjust.
10256 (temporal_cache::current_p): Take dependencies as params.
10257 (temporal_cache::set_timestamp): Adjust.
10258 (temporal_cache::set_always_current): Adjust.
10259 (ranger_cache::get_non_stale_global_range): Adjust.
10260 (ranger_cache::register_dependency): Delete.
10261 * gimple-range-cache.h (class range_cache): Adjust.
10262
10263 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
10264
10265 * gimple-range-gori.cc (range_def_chain::range_def_chain): init
10266 bitmap obstack.
10267 (range_def_chain::~range_def_chain): Dispose of obstack rather than
10268 each individual bitmap.
10269 (range_def_chain::set_import): New.
10270 (range_def_chain::get_imports): New.
10271 (range_def_chain::chain_import_p): New.
10272 (range_def_chain::register_dependency): Rename from build_def_chain
10273 and set imports.
10274 (range_def_chain::def_chain_in_bitmap_p): New.
10275 (range_def_chain::add_def_chain_to_bitmap): New.
10276 (range_def_chain::has_def_chain): Just check first depenedence.
10277 (range_def_chain::get_def_chain): Process imports, use generic
10278 register_dependency routine.
10279 (range_def_chain::dump): New.
10280 (gori_map::gori_map): Allocate import list.
10281 (gori_map::~gori_map): Release imports.
10282 (gori_map::exports): Check for past allocated block size.
10283 (gori_map::imports): New.
10284 (gori_map::def_chain_in_export_p): Delete.
10285 (gori_map::is_import_p): New.
10286 (gori_map::maybe_add_gori): Handle imports.
10287 (gori_map::dump): Adjust output, add imports.
10288 (gori_compute::has_edge_range_p): Remove def_chain_in_export call.
10289 (gori_export_iterator::gori_export_iterator): New.
10290 (gori_export_iterator::next): New.
10291 (gori_export_iterator::get_name): New.
10292 * gimple-range-gori.h (range_def_chain): Add imports and direct
10293 dependecies via struct rdc.
10294 (range_def_chain::depend1): New.
10295 (range_def_chain::depend2): New.
10296 (class gori_map): Adjust.
10297 (FOR_EACH_GORI_IMPORT_NAME): New.
10298 (FOR_EACH_GORI_EXPORT_NAME): New.
10299 (class gori_export_iterator): New.
10300
10301 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
10302
10303 * gimple-range-cache.cc (ranger_cache::ranger_cache): Move initial
10304 export cache filling to here.
10305 * gimple-range-gori.cc (gori_compute::gori_compute) : From Here.
10306
10307 2021-05-25 Andrew MacLeod <amacleod@redhat.com>
10308
10309 * gimple-range-gori.cc (range_def_chain): Move to gimple-range-gori.h.
10310 (gori_map): Move to gimple-range-gori.h.
10311 (gori_compute::gori_compute): Adjust.
10312 (gori_compute::~gori_compute): Delete.
10313 (gori_compute::compute_operand_range_switch): Adjust.
10314 (gori_compute::compute_operand_range): Adjust.
10315 (gori_compute::compute_logical_operands): Adjust.
10316 (gori_compute::has_edge_range_p ): Adjust.
10317 (gori_compute::set_range_invariant): Delete.
10318 (gori_compute::dump): Adjust.
10319 (gori_compute::outgoing_edge_range_p): Adjust.
10320 * gimple-range-gori.h (class range_def_chain): Relocate here.
10321 (class gori_map): Relocate here.
10322 (class gori_compute): Inherit from gori_map, and adjust.
10323
10324 2021-05-25 Aldy Hernandez <aldyh@redhat.com>
10325
10326 * value-range.cc (range_tests_legacy): Use
10327 build_nonstandard_integer_type instead of int and short.
10328
10329 2021-05-25 Eric Botcazou <ebotcazou@adacore.com>
10330
10331 * gimplify.c (gimplify_decl_expr): Clear TREE_READONLY on the DECL
10332 when really creating an initialization statement for it.
10333
10334 2021-05-25 Eric Botcazou <ebotcazou@adacore.com>
10335
10336 * tree-inline.c (setup_one_parameter): Fix thinko in new condition.
10337
10338 2021-05-25 Kito Cheng <kito.cheng@sifive.com>
10339
10340 * config/riscv/riscv.h (ASM_SPEC): Pass -mno-relax.
10341
10342 2021-05-25 Martin Liska <mliska@suse.cz>
10343
10344 PR tree-optimization/92860
10345 PR target/99592
10346 * optc-save-gen.awk: Remove exceptions.
10347
10348 2021-05-25 Martin Liska <mliska@suse.cz>
10349
10350 * asan.h (sanitize_coverage_p): New function.
10351 * doc/extend.texi: Document it.
10352 * fold-const.c (fold_range_test): Use sanitize_flags_p
10353 instead of flag_sanitize_coverage.
10354 (fold_truth_andor): Likewise.
10355 * sancov.c: Likewise.
10356 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
10357 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Handle
10358 -fsanitize-coverage when inlining.
10359
10360 2021-05-25 Cooper Qu <cooper.qu@linux.alibaba.com>
10361
10362 * config/csky/csky-modes.def : Fix copyright.
10363
10364 2021-05-25 Cooper Qu <cooper.qu@linux.alibaba.com>
10365
10366 * config/csky/csky-modes.def : Amend copyright.
10367 * config/csky/csky_insn_fpuv2.md : Likewise.
10368 * config/csky/csky_insn_fpuv3.md : Likewise.
10369
10370 2021-05-25 Richard Biener <rguenther@suse.de>
10371
10372 PR middle-end/100727
10373 * calls.c (initialize_argument_information): Explicitely test
10374 for WITH_SIZE_EXPR.
10375 * gimple-expr.c (mark_addressable): Skip outer WITH_SIZE_EXPR.
10376
10377 2021-05-25 Geng Qi <gengqi@linux.alibaba.com>
10378
10379 * config/csky/csky.h (FRAME_POINTER_REGNUM): Use
10380 HARD_FRAME_POINTER_REGNUM and FRAME_POINTER_REGNUM instead of
10381 the signle definition. The signle definition may not work well
10382 at simplify_subreg_regno().
10383 (HARD_FRAME_POINTER_REGNUM): New.
10384 (ELIMINABLE_REGS): Add for HARD_FRAME_POINTER_REGNUM.
10385 * config/csky/csky.c (get_csky_live_regs, csky_can_eliminate,
10386 csky_initial_elimination_offset, csky_expand_prologue,
10387 csky_expand_epilogue): Add for HARD_FRAME_POINTER_REGNUM.
10388
10389 2021-05-25 Geng Qi <gengqi@linux.alibaba.com>
10390
10391 * config/csky/csky.c (csky_option_override):
10392 Init csky_arch_isa_features[] in advance, so TARGET_DSP
10393 and TARGET_DIV can be set well.
10394
10395 2021-05-25 Geng Qi <gengqi@linux.alibaba.com>
10396
10397 * config/csky/constraints.md ("l", "h"): Delete.
10398 * config/csky/csky.h (reg_class, REG_CLASS_NAMES,
10399 REG_CLASS_CONTENTS): Delete LO_REGS and HI_REGS.
10400 * config/csky/csky.c (regno_reg_classm,
10401 csky_secondary_reload, csky_register_move_cost):
10402 Use HILO_REGS instead of LO_REGS and HI_REGS.
10403
10404 2021-05-25 Geng Qi <gengqi@linux.alibaba.com>
10405
10406 * config/csky/constraints.md ("W"): New constriant for mem operand
10407 with base reg, index register.
10408 ("Q"): Renamed and modified "csky_valid_fpuv2_mem_operand" to
10409 "csky_valid_mem_constraint_operand" to deal with both "Q" and "W"
10410 constraint.
10411 ("Dv"): New constraint for const double value that can be used at
10412 fmovi instruction.
10413 * config/csky/csky-modes.def (HFmode): New mode.
10414 * config/csky/csky-protos.h (csky_valid_fpuv2_mem_operand): Rename
10415 to "csky_valid_mem_constraint_operand" and support new constraint
10416 "W".
10417 (csky_get_movedouble_length): New.
10418 (fpuv3_output_move): New.
10419 (fpuv3_const_double): New.
10420 * config/csky/csky.c (csky_option_override): New arch CK860 with fpv3.
10421 (decompose_csky_address): Refine.
10422 (csky_print_operand): New "CONST_DOUBLE" operand.
10423 (csky_output_move): Support fpv3 instructions.
10424 (csky_get_movedouble_length): New.
10425 (fpuv3_output_move): New.
10426 (fpuv3_const_double): New.
10427 (csky_emit_compare): Cover float comparsion.
10428 (csky_emit_compare_float): Refine.
10429 (csky_vaild_fpuv2_mem_operand): Rename to
10430 "csky_valid_mem_constraint_operand" and support new constraint "W".
10431 (ck860_rtx_costs): New.
10432 (csky_rtx_costs): Add the cost calculation of CK860.
10433 (regno_reg_class): New vregs for fpuv3.
10434 (csky_dbx_regno): Likewise.
10435 (csky_cpu_cpp_builtins): New builtin macro for fpuv3.
10436 (csky_conditional_register_usage): Suporrot fpuv3.
10437 (csky_dwarf_register_span): Suporrot fpuv3.
10438 (csky_init_builtins, csky_mangle_type): Support "__fp16" type.
10439 (ck810_legitimate_index_p): Support fp16.
10440 * config/csky/csky.h (TARGET_TLS): ADD CK860.
10441 (CSKY_VREG_P, CSKY_VREG_LO_P, CSKY_VREG_HI_P): Support fpuv3.
10442 (TARGET_SINGLE_FPU): Support fpuv3.
10443 (TARGET_SUPPORT_FPV3): New.
10444 (FIRST_PSEUDO_REGISTER): Change to 202 to hold the new fpuv3 registers.
10445 (FIXED_REGISTERS, CALL_REALLY_USED_REGISTERS, REGISTER_NAMES,
10446 REG_CLASS_CONTENTS): Support fpuv3.
10447 * config/csky/csky.md (movsf): Move to cksy_insn_fpu.md and refine.
10448 (csky_movsf_fpv2): Likewise.
10449 (ck801_movsf): Likewise.
10450 (csky_movsf): Likewise.
10451 (movdf): Likewise.
10452 (csky_movdf_fpv2): Likewise.
10453 (ck801_movdf): Likewise.
10454 (csky_movdf): Likewise.
10455 (movsicc): Refine. Use "comparison_operatior" instead of
10456 "ordered_comparison_operatior".
10457 (addsicc): Likewise.
10458 (CSKY_FIRST_VFP3_REGNUM, CSKY_LAST_VFP3_REGNUM): New constant.
10459 (call_value_internal_vh): New.
10460 * config/csky/csky_cores.def (CK860): New arch and cpu.
10461 (fpv3_hf): New.
10462 (fpv3_hsf): New.
10463 (fpv3_sdf): New.
10464 (fpv3): New.
10465 * config/csky/csky_insn_fpu.md: Refactor. Separate all float patterns
10466 into emit-patterns and match-patterns, remain the emit-patterns here,
10467 and move the match-patterns to csky_insn_fpuv2.md or
10468 csky_insn_fpuv3.md.
10469 * config/csky/csky_insn_fpuv2.md: New file for fpuv2 instructions.
10470 * config/csky/csky_insn_fpuv3.md: New file and new patterns for fpuv3
10471 isntructions.
10472 * config/csky/csky_isa.def (fcr): New.
10473 (fpv3_hi): New.
10474 (fpv3_hf): New.
10475 (fpv3_sf): New.
10476 (fpv3_df): New.
10477 (CK860): New definition for ck860.
10478 * config/csky/csky_tables.opt (ck860): New processors ck860,
10479 ck860f. And new arch ck860.
10480 (fpv3_hf): New.
10481 (fpv3_hsf): New.
10482 (fpv3_hdf): New.
10483 (fpv3): New.
10484 * config/csky/predicates.md (csky_float_comparsion_operator): Delete
10485 "geu", "gtu", "leu", "ltu", which will never appear at float comparison.
10486 * config/csky/t-csky-elf: Support 860.
10487 * config/csky/t-csky-linux: Likewise.
10488 * doc/md.texi: Add "Q" and "W" constraints for C-SKY.
10489
10490 2021-05-24 Aaron Sawdey <acsawdey@linux.ibm.com>
10491
10492 * config/rs6000/genfusion.pl (gen_logical_addsubf): Refactor to
10493 add generation of logical-add and add-logical fusion pairs.
10494 * config/rs6000/rs6000-cpus.def: Add new fusion to ISA 3.1 mask
10495 and powerpc mask.
10496 * config/rs6000/rs6000.c (rs6000_option_override_internal): Turn on
10497 logical-add and add-logical fusion by default.
10498 * config/rs6000/rs6000.opt: Add -mpower10-fusion-logical-add and
10499 -mpower10-fusion-add-logical options.
10500 * config/rs6000/fusion.md: Regenerate file.
10501
10502 2021-05-24 Aldy Hernandez <aldyh@redhat.com>
10503
10504 * value-range.cc (irange::legacy_equal_p): Check type when
10505 comparing VR_VARYING types.
10506 (range_tests_legacy): Test comparing VARYING ranges of different
10507 sizes.
10508
10509 2021-05-24 Wilco Dijkstra <wdijkstr@arm.com>
10510
10511 * config/aarch64/aarch64.c (neoversen1_tunings):
10512 Enable AARCH64_EXTRA_TUNE_CHEAP_SHIFT_EXTEND.
10513
10514 2021-05-24 Wilco Dijkstra <wdijkstr@arm.com>
10515
10516 * config/aarch64/aarch64.c (aarch64_classify_symbol): Use GOT for
10517 extern weak symbols. Limit symbol offsets for non-GOT symbols with
10518 PIC/PIE.
10519
10520 2021-05-24 Christophe Lyon <christophe.lyon@linaro.org>
10521
10522 * config/arm/neon.md (vec_load_lanesxi<mode>)
10523 (vec_store_lanexoi<mode>): Move ...
10524 * config/arm/vec-common.md: here.
10525
10526 2021-05-24 Christophe Lyon <christophe.lyon@linaro.org>
10527
10528 * config/arm/neon.md (vec_load_lanesoi<mode>)
10529 (vec_store_lanesoi<mode>): Move ...
10530 * config/arm/vec-common.md: here.
10531
10532 2021-05-24 liuhongt <hongtao.liu@intel.com>
10533
10534 PR target/100660
10535 * config/i386/i386.c (ix86_gimple_fold_builtin): Replacing
10536 stmt with GIMPLE_NOP when lhs doesn't exist.
10537
10538 2021-05-23 Uroš Bizjak <ubizjak@gmail.com>
10539
10540 PR target/100722
10541 * config/i386/mmx.md (*push<VI_32:mode>2_rex64):
10542 New instruction pattern.
10543 (*push<VI_32:mode>2): Ditto.
10544 (push splitter for SSE registers): New splitter.
10545
10546 2021-05-23 Andrew Pinski <apinski@marvell.com>
10547
10548 * match.pd ((A & C) != 0 ? D : 0): Limit to non pointer types.
10549
10550 2021-05-22 Aaron Sawdey <acsawdey@linux.ibm.com>
10551
10552 * config/rs6000/genfusion.pl (gen_addadd): Fix incorrect attr types.
10553 * config/rs6000/fusion.md: Regenerate file.
10554
10555 2021-05-21 Aaron Sawdey <acsawdey@linux.ibm.com>
10556
10557 * config/rs6000/genfusion.pl (gen_addadd): New function.
10558 * config/rs6000/fusion.md: Regenerate file.
10559 * config/rs6000/rs6000-cpus.def: Add
10560 OPTION_MASK_P10_FUSION_2ADD to masks.
10561 * config/rs6000/rs6000.c (rs6000_option_override_internal):
10562 Handle default value of OPTION_MASK_P10_FUSION_2ADD.
10563 * config/rs6000/rs6000.opt: Add -mpower10-fusion-2add.
10564
10565 2021-05-21 Jakub Jelinek <jakub@redhat.com>
10566
10567 PR middle-end/99928
10568 * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT_TARGET): Define.
10569 * gimplify.c (enum gimplify_omp_var_data): Fix up
10570 GOVD_MAP_HAS_ATTACHMENTS value, add GOVD_FIRSTPRIVATE_IMPLICIT.
10571 (omp_lastprivate_for_combined_outer_constructs): If combined target
10572 has GOVD_FIRSTPRIVATE_IMPLICIT set for the decl, change it to
10573 GOVD_MAP | GOVD_SEEN.
10574 (gimplify_scan_omp_clauses): Set GOVD_FIRSTPRIVATE_IMPLICIT for
10575 firstprivate clauses with OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT.
10576 (gimplify_adjust_omp_clauses): For firstprivate clauses with
10577 OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT either clear that bit and
10578 OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT_TARGET too, or remove it and
10579 let it be replaced by implicit map clause.
10580
10581 2021-05-21 Jakub Jelinek <jakub@redhat.com>
10582
10583 PR middle-end/99928
10584 * gimplify.c (omp_lastprivate_for_combined_outer_constructs): New
10585 function.
10586 (gimplify_scan_omp_clauses) <case OMP_CLAUSE_LASTPRIVATE>: Use it.
10587 (gimplify_omp_for): Likewise.
10588
10589 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
10590
10591 PR middle-end/90115
10592 * omp-low.c (oacc_privatization_candidate_p): Reject 'static',
10593 'external' in blocks.
10594
10595 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
10596
10597 PR middle-end/90115
10598 * flag-types.h (enum openacc_privatization): New.
10599 * params.opt (-param=openacc-privatization): New.
10600 * doc/invoke.texi (openacc-privatization): Document it.
10601 * omp-general.h (get_openacc_privatization_dump_flags): New
10602 function.
10603 * omp-low.c (oacc_privatization_candidate_p): Add diagnostics.
10604 * omp-offload.c (execute_oacc_device_lower)
10605 <IFN_UNIQUE_OACC_PRIVATE>: Re-work diagnostics.
10606 * target.def (goacc.adjust_private_decl): Add 'location_t'
10607 parameter.
10608 * doc/tm.texi: Regenerate.
10609 * config/gcn/gcn-protos.h (gcn_goacc_adjust_private_decl): Adjust.
10610 * config/gcn/gcn-tree.c (gcn_goacc_adjust_private_decl): Likewise.
10611 * config/nvptx/nvptx.c (nvptx_goacc_adjust_private_decl):
10612 Likewise. Preserve it for...
10613 (nvptx_goacc_expand_var_decl): ... use here.
10614
10615 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
10616
10617 * doc/sourcebuild.texi (Other attributes): Document '__OPTIMIZE__'
10618 DejaGnu selector.
10619
10620 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
10621
10622 PR middle-end/90115
10623 * omp-low.c (oacc_privatization_candidate_p): New function.
10624 (oacc_privatization_scan_clause_chain)
10625 (oacc_privatization_scan_decl_chain): Use it. Also
10626 'gcc_checking_assert' that we're not seeing duplicates.
10627
10628 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
10629
10630 PR middle-end/90115
10631 * omp-offload.c (execute_oacc_device_lower): Skip processing if no
10632 work to be done.
10633
10634 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
10635
10636 PR middle-end/90115
10637 * omp-offload.c (execute_oacc_device_lower): Explain.
10638
10639 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
10640
10641 PR middle-end/90115
10642 * omp-offload.c (execute_oacc_device_lower)
10643 <IFN_UNIQUE_OACC_PRIVATE>: Diagnose and handle for 'level == -1'
10644 case, too.
10645 * internal-fn.c (expand_UNIQUE): Don't expect
10646 'IFN_UNIQUE_OACC_PRIVATE'.
10647
10648 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
10649
10650 PR middle-end/90115
10651 * omp-low.c (lower_omp_for): Don't evaluate OpenMP 'for' clauses.
10652
10653 2021-05-21 Thomas Schwinge <thomas@codesourcery.com>
10654
10655 PR middle-end/90115
10656 * config/nvptx/nvptx.c (nvptx_goacc_adjust_private_decl)
10657 (nvptx_goacc_expand_var_decl): Tighten.
10658
10659 2021-05-21 Julian Brown <julian@codesourcery.com>
10660 Chung-Lin Tang <cltang@codesourcery.com>
10661 Thomas Schwinge <thomas@codesourcery.com>
10662
10663 PR middle-end/90115
10664 * doc/tm.texi.in (TARGET_GOACC_EXPAND_VAR_DECL)
10665 (TARGET_GOACC_ADJUST_PRIVATE_DECL): Add documentation hooks.
10666 * doc/tm.texi: Regenerate.
10667 * expr.c (expand_expr_real_1): Expand decls using the
10668 expand_var_decl OpenACC hook if defined.
10669 * internal-fn.c (expand_UNIQUE): Handle IFN_UNIQUE_OACC_PRIVATE.
10670 * internal-fn.h (IFN_UNIQUE_CODES): Add OACC_PRIVATE.
10671 * omp-low.c (omp_context): Add oacc_privatization_candidates
10672 field.
10673 (lower_oacc_reductions): Add PRIVATE_MARKER parameter. Insert
10674 before fork.
10675 (lower_oacc_head_tail): Add PRIVATE_MARKER parameter. Modify
10676 private marker's gimple call arguments, and pass it to
10677 lower_oacc_reductions.
10678 (oacc_privatization_scan_clause_chain)
10679 (oacc_privatization_scan_decl_chain, lower_oacc_private_marker):
10680 New functions.
10681 (lower_omp_for, lower_omp_target, lower_omp_1): Use these.
10682 * omp-offload.c (convert.h): Include.
10683 (oacc_loop_xform_head_tail): Treat private-variable markers like
10684 fork/join when transforming head/tail sequences.
10685 (struct var_decl_rewrite_info): Add struct.
10686 (oacc_rewrite_var_decl, is_sync_builtin_call): New functions.
10687 (execute_oacc_device_lower): Support rewriting gang-private
10688 variables using target hook, and fix up addr_expr and var_decl
10689 nodes afterwards.
10690 * target.def (adjust_private_decl, expand_var_decl): New hooks.
10691 * config/gcn/gcn-protos.h (gcn_goacc_adjust_gangprivate_decl):
10692 Rename to...
10693 (gcn_goacc_adjust_private_decl): ...this.
10694 * config/gcn/gcn-tree.c (gcn_goacc_adjust_gangprivate_decl):
10695 Rename to...
10696 (gcn_goacc_adjust_private_decl): ...this. Add LEVEL parameter.
10697 * config/gcn/gcn.c (TARGET_GOACC_ADJUST_GANGPRIVATE_DECL): Rename
10698 definition using gcn_goacc_adjust_gangprivate_decl...
10699 (TARGET_GOACC_ADJUST_PRIVATE_DECL): ...to this, using
10700 gcn_goacc_adjust_private_decl.
10701 * config/nvptx/nvptx.c (tree-pretty-print.h): Include.
10702 (gang_private_shared_size): New global variable.
10703 (gang_private_shared_align): Likewise.
10704 (gang_private_shared_sym): Likewise.
10705 (gang_private_shared_hmap): Likewise.
10706 (nvptx_option_override): Initialize these.
10707 (nvptx_file_end): Output gang_private_shared_sym.
10708 (nvptx_goacc_adjust_private_decl, nvptx_goacc_expand_var_decl):
10709 New functions.
10710 (nvptx_set_current_function): Clear gang_private_shared_hmap.
10711 (TARGET_GOACC_ADJUST_PRIVATE_DECL): Define hook.
10712 (TARGET_GOACC_EXPAND_VAR_DECL): Likewise.
10713
10714 2021-05-21 H.J. Lu <hjl.tools@gmail.com>
10715
10716 * config/i386/i386-modes.def (MAX_BITSIZE_MODE_ANY_INT): Removed.
10717
10718 2021-05-21 Richard Biener <rguenther@suse.de>
10719 H.J. Lu <hjl.tools@gmail.com>
10720
10721 PR middle-end/90773
10722 * expr.c (expand_constructor): Elide expand_constructor if
10723 move by pieces is preferred.
10724
10725 2021-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10726
10727 * config/aarch64/aarch64-builtins.c (aarch64_call_properties):
10728 Take a flag and mode value as arguments.
10729 (aarch64_modifies_global_state_p): Likewise.
10730 (aarch64_reads_global_state_p): Likewise.
10731 (aarch64_could_trap_p): Likewise.
10732 (aarch64_get_attributes): Likewise.
10733 (aarch64_init_simd_builtins): Adjust callsite of above.
10734 (aarch64_init_fcmla_laneq_builtins): Use aarch64_get_attributes to get
10735 function attributes to apply to builtins.
10736 (aarch64_init_crc32_builtins): Likewise.
10737 (aarch64_init_builtin_rsqrt): Likewise.
10738
10739 2021-05-21 Aaron Sawdey <acsawdey@linux.ibm.com>
10740
10741 * config/rs6000/rs6000.md (define_attr "type"): Add types for fusion.
10742 * config/rs6000/genfusion.pl (gen_ld_cmpi_p10): Use new fusion types.
10743 (gen_2logical): Use new fusion types.
10744 * config/rs6000/fusion.md: Regenerate.
10745
10746 2021-05-21 Uroš Bizjak <ubizjak@gmail.com>
10747
10748 PR target/100637
10749 * config/i386/i386-expand.c (ix86_expand_sse_movcc):
10750 Handle V4QI and V2HI modes.
10751 (ix86_expand_sse_movcc): Ditto.
10752 * config/i386/mmx.md (*<sat_plusminus:insn><VI_32:mode>3):
10753 New instruction pattern.
10754 (*eq<VI_32:mode>3): Ditto.
10755 (*gt<VI_32:mode>3): Ditto.
10756 (*xop_pcmov_<VI_32:mode>): Ditto.
10757 (mmx_pblendvb32): Ditto.
10758 (mmx_pblendvb64): Rename from mmx_pblendvb.
10759 (vec_cmp<VI_32:mode><VI_32:mode>): New expander.
10760 (vec_cmpu<VI_32:mode><VI_32:mode>): Ditto.
10761 (vcond<VI_32:mode><VI_32:mode>): Ditto.
10762 (vcondu<VI_32:mode><VI_32:mode>): Ditto.
10763 (vcond_mask_<VI_32:mode><VI_32:mode>): Ditto.
10764
10765 2021-05-21 Jakub Jelinek <jakub@redhat.com>
10766
10767 PR tree-optimization/94589
10768 * tree-ssa-phiopt.c (spaceship_replacement): For integral rhs1 and
10769 rhs2, treat x <= 4 equivalently to x < 5 etc. In cmp1 and cmp2 (if
10770 not the same as cmp3) treat <= the same as < and >= the same as >.
10771 Don't require that cond2_phi_edge is true edge, instead take
10772 false/true edges into account based on cmp1/cmp2 comparison kinds.
10773
10774 2021-05-21 Uroš Bizjak <ubizjak@gmail.com>
10775
10776 PR target/100637
10777 * config/i386/mmx.md (SMAXMIN_MMXMODEI): New mode iterator.
10778 (<smaxmin:code><SMAXMIN_MMXMODEI:mode>3): Macroize expander
10779 from <smaxmin:code>v4hi3> and <smaxmin:code><MMXMODE14:mode>3
10780 using SMAXMIN_MMXMODEI mode iterator.
10781 (*<smaxmin:code>v4qi3): New insn pattern.
10782 (*<smaxmin:code>v2hi3): Ditto.
10783 (SMAXMIN_VI_32): New mode iterator.
10784 (<smaxmin:code><SMAXMIN_VI_32>mode3): New expander.
10785 (UMAXMIN_MMXMODEI): New mode iterator.
10786 (<umaxmin:code><UMAXMIN_MMXMODEI:mode>3): Macroize expander
10787 from <umaxmin:code>v8qi3> and <umaxmin:code><MMXMODE24:mode>3
10788 using UMAXMIN_MMXMODEI mode iterator.
10789 (*<umaxmin:code>v4qi3): New insn pattern.
10790 (*<umaxmin:code>v2hi3): Ditto.
10791 (UMAXMIN_VI_32): New mode iterator.
10792 (<umaxmin:code><UMAXMIN_VI_32>mode3): New expander.
10793 (abs<VI_32:mode>2): New insn pattern.
10794 (ssse3_abs<MMXMODEI:mode>2, abs<MMXMODEI:mode>2): Move from ...
10795 * config/i386/sse.md: ... here.
10796
10797 2021-05-20 Clement Chigot <clement.chigot@atos.net>
10798 David Edelsohn <dje.gcc@gmail.com>
10799
10800 * collect2.c (scan_prog_file): Issue non-fatal warning for
10801 non-COFF files.
10802
10803 2021-05-20 Jonathan Wakely <jwakely@redhat.com>
10804
10805 * doc/invoke.texi (-Wno-c++11-extensions)
10806 (-Wno-c++14-extensions, -Wno-c++17-extensions)
10807 (-Wno-c++20-extensions, -Wno-c++23-extensions): Document
10808 new options.
10809
10810 2021-05-20 Indu Bhagat <indu.bhagat@oracle.com>
10811
10812 * config/c6x/c6x.c (c6x_output_file_unwind): Use dwarf_debuginfo_p.
10813 * config/darwin.c (darwin_override_options): Likewise.
10814 * config/i386/cygming.h (DBX_REGISTER_NUMBER): Likewise.
10815 * config/i386/darwin.h (DBX_REGISTER_NUMBER): Likewise.
10816 (DWARF2_FRAME_REG_OUT): Likewise.
10817 * config/mips/mips.c (mips_output_filename): Likewise.
10818 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name):
10819 Likewise.
10820 (rs6000_dbx_register_number): Likewise.
10821 * dbxout.c: Include flags.h.
10822 * dwarf2cfi.c (cfi_label_required_p): Likewise.
10823 (dwarf2out_do_frame): Likewise.
10824 * except.c: Include flags.h.
10825 * final.c (dwarf2_debug_info_emitted_p): Likewise.
10826 (final_scan_insn_1): Likewise.
10827 * flags.h (dwarf_debuginfo_p): New function declaration.
10828 * opts.c (dwarf_debuginfo_p): New function definition.
10829 * targhooks.c (default_debug_unwind_info): Use dwarf_debuginfo_p.
10830 * toplev.c (process_options): Likewise.
10831
10832 2021-05-20 Indu Bhagat <indu.bhagat@oracle.com>
10833
10834 * common.opt: Change type to support bitmasks.
10835 * flag-types.h (enum debug_info_type): Rename enumerator constants.
10836 (NO_DEBUG): New bitmask.
10837 (DBX_DEBUG): Likewise.
10838 (DWARF2_DEBUG): Likewise.
10839 (XCOFF_DEBUG): Likewise.
10840 (VMS_DEBUG): Likewise.
10841 (VMS_AND_DWARF2_DEBUG): Likewise.
10842 * flags.h (debug_set_to_format): New function declaration.
10843 (debug_set_count): Likewise.
10844 (debug_set_names): Likewise.
10845 * opts.c (debug_type_masks): Array of bitmasks for debug formats.
10846 (debug_set_to_format): New function definition.
10847 (debug_set_count): Likewise.
10848 (debug_set_names): Likewise.
10849 (set_debug_level): Update access to debug_type_names.
10850 * toplev.c: Likewise.
10851
10852 2021-05-20 Martin Sebor <msebor@redhat.com>
10853
10854 PR middle-end/100684
10855 * tree-ssa-ccp.c (pass_post_ipa_warn::execute): Handle C++ lambda.
10856
10857 2021-05-20 Uroš Bizjak <ubizjak@gmail.com>
10858
10859 PR target/100701
10860 * config/i386/i386.md (isa): Remove x64_bmi.
10861 (enabled): Remove x64_bmi.
10862 * config/i386/mmx.md (mmx_andnot<MMXMODEI:mode>3):
10863 Remove general register alternative.
10864 (*andnot<VI_32:mode>3): Ditto.
10865 (*mmx_<any_logic:code><MMXMODEI:mode>3): Ditto.
10866 (*<any_logic:code><VI_32:mode>3): Ditto.
10867
10868 2021-05-20 Kewen Lin <linkw@linux.ibm.com>
10869
10870 * config/arm/arm.c: Include head files tree-vectorizer.h and
10871 cfgloop.h.
10872
10873 2021-05-20 Uroš Bizjak <ubizjak@gmail.com>
10874
10875 PR target/100637
10876 * config/i386/mmx.md (Yv_Yw): Revert adding V4QI and V2HI modes.
10877 (*<plusminus:insn><VI_32:mode>3): Use Yw instad of <Yv_Yw> constrint.
10878 (<s>mulv4hi3_highpart): New expander.
10879 (*<s>mulv2hi3_highpart): New insn pattern.
10880 (<s>mulv2hi3_higpart): New expander.
10881 (*<any_shift:insn>v2hi3): New insn pattern.
10882 (<any_shift:insn>v2hi3): New expander.
10883 * config/i386/sse.md (smulhrsv2hi3): New expander.
10884 (*smulhrsv2hi3): New insn pattern.
10885
10886 2021-05-20 Kewen Lin <linkw@linux.ibm.com>
10887
10888 * doc/invoke.texi (vect-inner-loop-cost-factor): Document new
10889 parameter.
10890 * params.opt (vect-inner-loop-cost-factor): New.
10891 * targhooks.c (default_add_stmt_cost): Replace hardcoded factor
10892 50 with LOOP_VINFO_INNER_LOOP_COST_FACTOR, include head file
10893 tree-vectorizer.h and its required ones.
10894 * config/aarch64/aarch64.c (aarch64_add_stmt_cost): Replace
10895 hardcoded factor 50 with LOOP_VINFO_INNER_LOOP_COST_FACTOR.
10896 * config/arm/arm.c (arm_add_stmt_cost): Likewise.
10897 * config/i386/i386.c (ix86_add_stmt_cost): Likewise.
10898 * config/rs6000/rs6000.c (rs6000_add_stmt_cost): Likewise.
10899 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
10900 Likewise.
10901 (_loop_vec_info::_loop_vec_info): Init inner_loop_cost_factor.
10902 * tree-vectorizer.h (_loop_vec_info): Add inner_loop_cost_factor.
10903 (LOOP_VINFO_INNER_LOOP_COST_FACTOR): New macro.
10904
10905 2021-05-20 Christophe Lyon <christophe.lyon@linaro.org>
10906 Torbjörn Svensson <torbjorn.svensson@st.com>
10907
10908 PR c/42579
10909 * doc/cpp.texi (Common Predefined Macros): Document __FILE_NAME__.
10910
10911 2021-05-20 Jakub Jelinek <jakub@redhat.com>
10912
10913 PR middle-end/99928
10914 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_LINEAR>: For
10915 explicit linear clause when combined with target, make it map(tofrom:)
10916 instead of no clause or firstprivate.
10917
10918 2021-05-20 Jakub Jelinek <jakub@redhat.com>
10919
10920 PR tree-optimization/94589
10921 * match.pd ((X & Y) == X -> (X & ~Y) == 0): Simplify even in presence
10922 of integral conversions.
10923
10924 2021-05-19 Andrew MacLeod <amacleod@redhat.com>
10925
10926 * gimple-range.cc (fur_source::get_operand): New.
10927 (gimple_range_fold): Delete.
10928 (fold_using_range::fold_stmt): Move from gimple_ranger::calc_stmt.
10929 (fold_using_range::range_of_range_op): Move from gimple_ranger.
10930 (fold_using_range::range_of_address): Ditto.
10931 (fold_using_range::range_of_phi): Ditto.
10932 (fold_using_range::range_of_call): Ditto.
10933 (fold_using_range::range_of_builtin_ubsan_call): Move from
10934 range_of_builtin_ubsan_call.
10935 (fold_using_range::range_of_builtin_call): Move from
10936 range_of_builtin_call.
10937 (gimple_ranger::range_of_builtin_call): Delete.
10938 (fold_using_range::range_of_cond_expr): Move from gimple_ranger.
10939 (gimple_ranger::fold_range_internal): New.
10940 (gimple_ranger::range_of_stmt): Use new fold_using_range API.
10941 (fold_using_range::range_of_ssa_name_with_loop_info): Move from
10942 gimple_ranger. Improve ranges of SSA_NAMES when possible.
10943 * gimple-range.h (gimple_ranger): Remove various range_of routines.
10944 (class fur_source): New.
10945 (class fold_using_range): New.
10946 (fur_source::fur_source): New.
10947 (fold_range): New.
10948 * vr-values.c (vr_values::extract_range_basic): Use fold_using_range
10949 instead of range_of_builtin_call.
10950
10951 2021-05-19 Jonathan Wakely <jwakely@redhat.com>
10952
10953 * doc/cpp.texi (Common Predefined Macros): Update documentation
10954 for the __GXX_EXPERIMENTAL_CXX0X__ macro.
10955
10956 2021-05-19 Alex Coplan <alex.coplan@arm.com>
10957
10958 PR target/100333
10959 * config/arm/arm.md (nonsecure_call_internal): Always ensure
10960 callee's address is in a register.
10961
10962 2021-05-19 Geng Qi <gengqi@linux.alibaba.com>
10963
10964 * common/config/riscv/riscv-common.c
10965 (riscv_subset_list::parsing_subset_version): Properly parse the letter
10966 'p' in '-march'.
10967 (riscv_subset_list::parse_std_ext,
10968 riscv_subset_list::parse_multiletter_ext): To handle errors generated
10969 in riscv_subset_list::parsing_subset_version.
10970
10971 2021-05-19 Jonathan Wright <jonathan.wright@arm.com>
10972
10973 * config/aarch64/aarch64-simd.md: Use "neon_move_narrow_q"
10974 type attribute in patterns generating XTN(2).
10975
10976 2021-05-19 Jonathan Wright <jonathan.wright@arm.com>
10977
10978 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_pack_trunc_<mode>):
10979 Remove as duplicate of...
10980 (aarch64_xtn<mode>): This.
10981 (aarch64_xtn2<mode>_le): Move position in file.
10982 (aarch64_xtn2<mode>_be): Move position in file.
10983 (aarch64_xtn2<mode>): Move position in file.
10984 (vec_pack_trunc_<mode>): Define as an expander.
10985
10986 2021-05-19 Jonathan Wright <jonathan.wright@arm.com>
10987
10988 * config/aarch64/aarch64-simd-builtins.def: Split builtin
10989 generation for aarch64_<sur>q<r>shr<u>n_n<mode> pattern into
10990 separate scalar and vector generators.
10991 * config/aarch64/aarch64-simd.md
10992 (aarch64_<sur>q<r>shr<u>n_n<mode>): Define as an expander and
10993 split into...
10994 (aarch64_<sur>q<r>shr<u>n_n<mode>_insn_le): This and...
10995 (aarch64_<sur>q<r>shr<u>n_n<mode>_insn_be): This.
10996 * config/aarch64/iterators.md: Define SD_HSDI iterator.
10997
10998 2021-05-19 Jonathn Wright <jonathan.wright@arm.com>
10999
11000 * config/aarch64/aarch64-simd.md: Use UNSPEC_SQXTUN instead
11001 of UNSPEC_SQXTUN2.
11002 * config/aarch64/iterators.md: Remove UNSPEC_SQXTUN2.
11003
11004 2021-05-19 Jonathan Wright <jonathan.wright@arm.com>
11005
11006 * config/aarch64/aarch64-simd.md (aarch64_<sur>q<r>shr<u>n2_n<mode>):
11007 Implement as an expand emitting a big/little endian
11008 instruction pattern.
11009 (aarch64_<sur>q<r>shr<u>n2_n<mode>_insn_le): Define.
11010 (aarch64_<sur>q<r>shr<u>n2_n<mode>_insn_be): Define.
11011
11012 2021-05-19 Jonathan Wright <jonathan.wright@arm.com>
11013
11014 * config/aarch64/aarch64-simd.md (aarch64_<sur><addsub>hn2<mode>):
11015 Implement as an expand emitting a big/little endian
11016 instruction pattern.
11017 (aarch64_<sur><addsub>hn2<mode>_insn_le): Define.
11018 (aarch64_<sur><addsub>hn2<mode>_insn_be): Define.
11019 * config/aarch64/iterators.md: Remove UNSPEC_[R]ADDHN2 and
11020 UNSPEC_[R]SUBHN2 unspecs and ADDSUBHN2 iterator.
11021
11022 2021-05-19 Richard Biener <rguenther@suse.de>
11023
11024 PR middle-end/100672
11025 * fold-const.c (fold_negate_expr_1): Use element_precision.
11026 (negate_expr_p): Likewise.
11027
11028 2021-05-19 Andre Vieira <andre.simoesdiasvieira@arm.com>
11029
11030 * config/aarch64/iterators.md (SVE_PRED_LOAD): New iterator.
11031 (pred_load): New int attribute.
11032 * config/aarch64/aarch64-sve.md
11033 (aarch64_load_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>): Use
11034 SVE_PRED_LOAD enum iterator and corresponding pred_load attribute.
11035 * config/aarch64/aarch64-sve-builtins-base.cc (expand): Update call to
11036 code_for_aarch64_load.
11037
11038 2021-05-19 Richard Biener <rguenther@suse.de>
11039
11040 * cfgexpand.c (discover_nonconstant_array_refs_r): Make
11041 sure TARGET_MEM_REF bases are expanded as memory.
11042 * tree-ssa-operands.c (operands_scanner::get_tmr_operands):
11043 Do not mark TARGET_MEM_REF bases addressable.
11044 * tree-ssa.c (non_rewritable_mem_ref_base): Handle
11045 TARGET_MEM_REF bases as never rewritable.
11046 * gimple-walk.c (walk_stmt_load_store_addr_ops): Do not
11047 walk TARGET_MEM_REF bases as address-takens.
11048 * tree-ssa-dce.c (ref_may_be_aliased): Handle TARGET_MEM_REF.
11049
11050 2021-05-19 Richard Biener <rguenther@suse.de>
11051
11052 * builtins.c (get_object_alignment_1): Strip outer
11053 WITH_SIZE_EXPR.
11054 * tree-dfa.c (get_ref_base_and_extent): Handle outer
11055 WITH_SIZE_EXPR for size processing and process the
11056 containing ref.
11057 * tree-ssa-alias.c (ao_ref_base_alias_set): Strip
11058 outer WITH_SIZE_EXPR.
11059 (ao_ref_base_alias_ptr_type): Likewise.
11060 (refs_may_alias_p_2): Allow WITH_SIZE_EXPR in ref->ref
11061 and handle that accordingly, stripping it for the
11062 core alias workers.
11063 * tree.c (get_base_address): Handle WITH_SIZE_EXPR by
11064 looking through it instead of returning NULL.
11065
11066 2021-05-19 Jakub Jelinek <jakub@redhat.com>
11067
11068 PR middle-end/100576
11069 * builtins.c (check_read_access): Convert bound to size_type_node if
11070 non-NULL.
11071
11072 2021-05-19 Richard Biener <rguenther@suse.de>
11073
11074 * tree-cfg.c (verify_types_in_gimple_min_lval): Inline...
11075 (verify_types_in_gimple_reference): ... here. Sanitize.
11076 (verify_gimple_call): Verify references in LHS and arguments.
11077 (verify_gimple_assign_single): Reject WITH_SIZE_EXPR.
11078
11079 2021-05-19 Uroš Bizjak <ubizjak@gmail.com>
11080
11081 * config/i386/i386.h (VALID_INT_MODE_P):
11082 Add V8QI, V4HI and V2SI modes for TARGET_64BIT.
11083 * config/i386/i386.md (isa): Add x64_bmi.
11084 (enabled): Handle x64_bmi.
11085 * config/i386/mmx.md (mmx_andnot<MMXMODEI:mode>3):
11086 Add alternative using 64bit general registers.
11087 (*mmx_<any_logic:code><MMXMODEI:mode>3): Ditto.
11088
11089 2021-05-19 Jakub Jelinek <jakub@redhat.com>
11090
11091 PR middle-end/99928
11092 * tree.h (OMP_MASTER_COMBINED): Define.
11093 * gimplify.c (gimplify_scan_omp_clauses): Rewrite lastprivate
11094 handling for outer combined/composite constructs to a loop.
11095 Handle lastprivate on combined target.
11096 (gimplify_expr): Formatting fix.
11097
11098 2021-05-19 Xionghu Luo <luoxhu@linux.ibm.com>
11099
11100 * passes.def: Add sink_code pass before store_merging.
11101 * tree-ssa-sink.c (pass_sink_code:clone): New.
11102
11103 2021-05-18 Bill Schmidt <wschmidt@linux.ibm.com>
11104
11105 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Remove call to
11106 rs6000_special_adjust_field_align_p.
11107 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
11108 * config/rs6000/rs6000-call.c (rs6000_function_arg_boundary):
11109 Remove ABI warning.
11110 (rs6000_function_arg): Likewise.
11111 * config/rs6000/rs6000-protos.h
11112 (rs6000_special_adjust_field_align_p): Remove prototype.
11113 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
11114 Remove.
11115 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Remove call to
11116 rs6000_special_adjust_field_align_p.
11117
11118 2021-05-18 Uroš Bizjak <ubizjak@gmail.com>
11119
11120 PR target/100637
11121 * config/i386/i386.h (VALID_SSE2_REG_MODE):
11122 Add V4QI and V2HI modes.
11123 (VALID_INT_MODE_P): Ditto.
11124 * config/i386/mmx.md (VI_32): New mode iterator.
11125 (mmxvecsize): Handle V4QI and V2HI.
11126 (Yv_Yw): Ditto.
11127 (mov<VI_32:mode>): New expander.
11128 (*mov<mode>_internal): New insn pattern.
11129 (movmisalign<VI_32:mode>): New expander.
11130 (neg<VI_32:mode>): New expander.
11131 (<plusminus:insn><VI_32:mode>3): New expander.
11132 (*<plusminus:insn><VI_32:mode>3): New insn pattern.
11133 (mulv2hi3): New expander.
11134 (*mulv2hi3): New insn pattern.
11135 (one_cmpl<VI_32:mode>2): New expander.
11136 (*andnot<VI_32:mode>3): New insn pattern.
11137 (<any_logic:code><VI_32:mode>3): New expander.
11138 (*<any_logic:code><VI_32:mode>3): New insn pattern.
11139
11140 2021-05-18 Uroš Bizjak <ubizjak@gmail.com>
11141
11142 * config/i386/sse.md (<any_extend:insn>v4qiv4di2):
11143 Fix a mode mismatch with operand 1.
11144
11145 2021-05-18 Uroš Bizjak <ubizjak@gmail.com>
11146
11147 PR target/100626
11148 * config/i386/i386-expand.c (split_double_mode): Return
11149 temporary register when simplify_gen_subreg fails with
11150 the high half od the paradoxical subreg.
11151
11152 2021-05-18 Richard Biener <rguenther@suse.de>
11153
11154 * cfgexpand.c (expand_one_var): Pass in forced_stack_var
11155 and honor it when expanding.
11156 (expand_used_vars_for_block): Pass through forced_stack_var.
11157 (expand_used_vars): Likewise.
11158 (discover_nonconstant_array_refs_r): Set bits in
11159 forced_stack_vars instead of marking vars TREE_ADDRESSABLE.
11160 (avoid_type_punning_on_regs): Likewise.
11161 (discover_nonconstant_array_refs): Likewise.
11162 (pass_expand::execute): Create and pass down forced_stack_var
11163 bitmap. For parameters and returns temporarily set
11164 TREE_ADDRESSABLE when expand_function_start.
11165
11166 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
11167
11168 * doc/sourcebuild.texi: Document 'dg-note'.
11169
11170 2021-05-18 Tobias Burnus <tobias@codesourcery.com>
11171
11172 PR other/100598
11173 * configure: Regenerate.
11174 * configure.ac (BUILD_CFLAG, BUILD_CXXFLAGS): Add $(CFLAGS-$@).
11175
11176 2021-05-18 Thomas Schwinge <thomas@codesourcery.com>
11177
11178 * gimple.h (is_gimple_omp_oacc): Tighten.
11179 * omp-low.c (check_omp_nesting_restrictions): Adjust.
11180
11181 2021-05-18 Richard Biener <rguenther@suse.de>
11182
11183 * tree-ssa-operands.c (mark_address_taken): Simplify.
11184
11185 2021-05-18 Martin Liska <mliska@suse.cz>
11186
11187 * config/gcn/mkoffload.c (STR): Redefine.
11188 * config/i386/intelmic-mkoffload.c (STR): Likewise.
11189 * config/nvptx/mkoffload.c (STR): Likewise.
11190
11191 2021-05-18 Martin Liska <mliska@suse.cz>
11192
11193 * common/config/aarch64/aarch64-common.c (aarch64_parse_extension):
11194 Use startswith function instead of strncmp.
11195 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
11196 * common/config/riscv/riscv-common.c (riscv_subset_list::parse): Likewise.
11197 * config/aarch64/aarch64-sve-builtins-shapes.cc (parse_type): Likewise.
11198 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Likewise.
11199 * config/alpha/alpha.c (alpha_elf_section_type_flags): Likewise.
11200 * config/arm/aarch-common.c (arm_md_asm_adjust): Likewise.
11201 * config/arm/arm.c (arm_file_start): Likewise.
11202 (arm_valid_target_attribute_rec): Likewise.
11203 (thumb1_md_asm_adjust): Likewise.
11204 * config/arm/driver-arm.c (host_detect_local_cpu): Likewise.
11205 * config/avr/avr.c (STR_PREFIX_P): Likewise.
11206 (avr_set_current_function): Likewise.
11207 (avr_handle_addr_attribute): Likewise.
11208 (avr_asm_output_aligned_decl_common): Likewise.
11209 (avr_asm_named_section): Likewise.
11210 (avr_section_type_flags): Likewise.
11211 (avr_asm_select_section): Likewise.
11212 * config/c6x/c6x.c (c6x_in_small_data_p): Likewise.
11213 (c6x_section_type_flags): Likewise.
11214 * config/darwin-c.c (darwin_cfstring_ref_p): Likewise.
11215 (darwin_objc_declare_unresolved_class_reference): Likewise.
11216 (darwin_objc_declare_class_definition): Likewise.
11217 * config/darwin.c (indirect_data): Likewise.
11218 (darwin_encode_section_info): Likewise.
11219 (darwin_objc2_section): Likewise.
11220 (darwin_objc1_section): Likewise.
11221 (machopic_select_section): Likewise.
11222 (darwin_globalize_label): Likewise.
11223 (darwin_label_is_anonymous_local_objc_name): Likewise.
11224 (darwin_asm_named_section): Likewise.
11225 (darwin_asm_output_dwarf_offset): Likewise.
11226 * config/frv/frv.c (frv_string_begins_with): Likewise.
11227 (frv_in_small_data_p): Likewise.
11228 * config/gcn/mkoffload.c (STR): Likewise.
11229 (main): Likewise.
11230 * config/i386/i386-builtins.c (get_builtin_code_for_version): Likewise.
11231 * config/i386/i386-options.c (ix86_option_override_internal): Likewise.
11232 * config/i386/i386.c (x86_64_elf_section_type_flags): Likewise.
11233 (ix86_md_asm_adjust): Likewise.
11234 * config/i386/intelmic-mkoffload.c (STR): Likewise.
11235 * config/i386/winnt.c (i386_pe_asm_named_section): Likewise.
11236 (i386_pe_file_end): Likewise.
11237 * config/ia64/ia64.c (ia64_in_small_data_p): Likewise.
11238 (ia64_section_type_flags): Likewise.
11239 * config/mips/driver-native.c (host_detect_local_cpu): Likewise.
11240 * config/mips/mips.c (mips_handle_interrupt_attr): Likewise.
11241 (mips16_stub_function_p): Likewise.
11242 (mips_function_rodata_section): Likewise.
11243 * config/msp430/msp430.c (msp430_mcu_name): Likewise.
11244 (msp430_function_section): Likewise.
11245 (msp430_section_type_flags): Likewise.
11246 (msp430_expand_helper): Likewise.
11247 * config/nios2/nios2.c (nios2_small_section_name_p): Likewise.
11248 (nios2_valid_target_attribute_rec): Likewise.
11249 * config/nvptx/mkoffload.c (process): Likewise.
11250 (STR): Likewise.
11251 * config/pa/som.h: Likewise.
11252 * config/pdp11/pdp11.c (pdp11_output_ident): Likewise.
11253 * config/riscv/riscv.c (riscv_elf_select_rtx_section): Likewise.
11254 * config/rs6000/rs6000.c (VTABLE_NAME_P): Likewise.
11255 (rs6000_inner_target_options): Likewise.
11256 * config/s390/driver-native.c (s390_host_detect_local_cpu): Likewise.
11257 * config/sparc/driver-sparc.c (host_detect_local_cpu): Likewise.
11258 * config/vax/vax.c (vax_output_int_move): Likewise.
11259 * config/vms/vms-ld.c (startswith): Likewise.
11260 (process_args): Likewise.
11261 (main): Likewise.
11262 * config/vms/vms.c: Likewise.
11263
11264 2021-05-18 Jakub Jelinek <jakub@redhat.com>
11265
11266 PR rtl-optimization/100590
11267 * regcprop.c (copyprop_hardreg_forward_1): Only DCE dead sets if
11268 they are NONJUMP_INSN_P.
11269
11270 2021-05-18 Jakub Jelinek <jakub@redhat.com>
11271
11272 PR c++/100580
11273 * function.c (push_dummy_function): Set DECL_ARTIFICIAL and
11274 DECL_ASSEMBLER_NAME on the fn_decl.
11275
11276 2021-05-18 Jakub Jelinek <jakub@redhat.com>
11277
11278 PR tree-optimization/94589
11279 * tree-ssa-phiopt.c (spaceship_replacement): Pattern match
11280 phi result used in (res & ~1) == 0 comparison as res >= 0 as
11281 res == 2 would be UB with -ffinite-math-only.
11282
11283 2021-05-18 Martin Liska <mliska@suse.cz>
11284
11285 * Makefile.in: genversion.o should depend on DATESTAMP.
11286
11287 2021-05-18 Claudiu Zissulescu <claziss@synopsys.com>
11288
11289 * config/arc/simdext.md (negv2si2): Remove round bracket.
11290
11291 2021-05-18 Andreas Krebbel <krebbel@linux.ibm.com>
11292
11293 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Define
11294 _Bool as macro expanding to _Bool.
11295
11296 2021-05-18 Andreas Krebbel <krebbel@linux.ibm.com>
11297
11298 PR c++/100281
11299 * tree.c (build_reference_type_for_mode)
11300 (build_pointer_type_for_mode): Pick pointer mode if MODE argument
11301 is VOIDmode.
11302 (build_reference_type, build_pointer_type): Invoke
11303 build_*_type_for_mode with VOIDmode.
11304
11305 2021-05-17 Andrew MacLeod <amacleod@redhat.com>
11306
11307 PR tree-optimization/100512
11308 * gimple-range-cache.cc (ranger_cache::set_global_range): Mark const
11309 and non-zero pointer ranges as invariant.
11310 * gimple-range.cc (gimple_ranger::range_of_stmt): Remove pointer
11311 processing from here.
11312
11313 2021-05-17 Tom de Vries <tdevries@suse.de>
11314
11315 PR target/100497
11316 * config/nvptx/nvptx-protos.h (nvptx_output_atomic_insn): Declare
11317 * config/nvptx/nvptx.c (nvptx_output_barrier)
11318 (nvptx_output_atomic_insn): New function.
11319 (nvptx_print_operand): Add support for 'B'.
11320 * config/nvptx/nvptx.md: Use nvptx_output_atomic_insn for atomic
11321 insns.
11322
11323 2021-05-17 Aldy Hernandez <aldyh@redhat.com>
11324
11325 PR tree-optimization/100349
11326 * vr-values.c (bounds_of_var_in_loop): Bail if scev returns
11327 NULL.
11328
11329 2021-05-17 Tamar Christina <tamar.christina@arm.com>
11330
11331 * config/aarch64/driver-aarch64.c (DEFAULT_ARCH): New.
11332 (host_detect_local_cpu): Use it.
11333
11334 2021-05-17 Martin Liska <mliska@suse.cz>
11335
11336 * doc/invoke.texi: Add 2 missing dots.
11337
11338 2021-05-17 Marius Hillenbrand <mhillen@linux.ibm.com>
11339
11340 PR bootstrap/100552
11341 * configure.ac: Replace pattern substitution with call to sed.
11342 * configure: Regenerate.
11343
11344 2021-05-17 Richard Biener <rguenther@suse.de>
11345
11346 PR middle-end/100582
11347 * tree.c (array_at_struct_end_p): Get to the base of the
11348 reference before looking for the underlying decl.
11349
11350 2021-05-17 Joern Rennecke <joern.rennecke@embecosm.com>
11351
11352 * genoutput.c (validate_insn_alternatives) Make "wrong number of
11353 alternatives" message more specific, and remove assumption on where
11354 the problem is.
11355
11356 2021-05-17 Christophe Lyon <christophe.lyon@linaro.org>
11357
11358 * config/arm/iterators.md (V16): New iterator.
11359 (VH_cvtto): New iterator.
11360 (v_cmp_result): Added V4HF and V8HF support.
11361 * config/arm/vec-common.md (vec_cmp<mode><v_cmp_result>): Use VDQWH.
11362 (vcond<mode><mode>): Likewise.
11363 (vcond_mask_<mode><v_cmp_result>): Likewise.
11364 (vcond<VH_cvtto><mode>): New expander.
11365
11366 2021-05-17 Christophe Lyon <christophe.lyon@linaro.org>
11367
11368 * config/arm/arm-protos.h (arm_expand_vector_compare): Update
11369 prototype.
11370 * config/arm/arm.c (arm_expand_vector_compare): Add support for
11371 MVE.
11372 (arm_expand_vcond): Likewise.
11373 * config/arm/iterators.md (supf): Remove VCMPNEQ_S, VCMPEQQ_S,
11374 VCMPEQQ_N_S, VCMPNEQ_N_S.
11375 (VCMPNEQ, VCMPEQQ, VCMPEQQ_N, VCMPNEQ_N): Remove.
11376 * config/arm/mve.md (@mve_vcmp<mve_cmp_op>q_<mode>): Add '@' prefix.
11377 (@mve_vcmp<mve_cmp_op>q_f<mode>): Likewise.
11378 (@mve_vcmp<mve_cmp_op>q_n_f<mode>): Likewise.
11379 (@mve_vpselq_<supf><mode>): Likewise.
11380 (@mve_vpselq_f<mode>"): Likewise.
11381 * config/arm/neon.md (vec_cmp<mode><v_cmp_result): Enable for MVE
11382 and move to vec-common.md.
11383 (vec_cmpu<mode><mode>): Likewise.
11384 (vcond<mode><mode>): Likewise.
11385 (vcond<V_cvtto><mode>): Likewise.
11386 (vcondu<mode><v_cmp_result>): Likewise.
11387 (vcond_mask_<mode><v_cmp_result>): Likewise.
11388 * config/arm/unspecs.md (VCMPNEQ_U, VCMPNEQ_S, VCMPEQQ_S)
11389 (VCMPEQQ_N_S, VCMPNEQ_N_S, VCMPEQQ_U, CMPEQQ_N_U, VCMPNEQ_N_U)
11390 (VCMPGEQ_N_S, VCMPGEQ_S, VCMPGTQ_N_S, VCMPGTQ_S, VCMPLEQ_N_S)
11391 (VCMPLEQ_S, VCMPLTQ_N_S, VCMPLTQ_S, VCMPCSQ_N_U, VCMPCSQ_U)
11392 (VCMPHIQ_N_U, VCMPHIQ_U): Remove.
11393 * config/arm/vec-common.md (vec_cmp<mode><v_cmp_result): Moved
11394 from neon.md.
11395 (vec_cmpu<mode><mode>): Likewise.
11396 (vcond<mode><mode>): Likewise.
11397 (vcond<V_cvtto><mode>): Likewise.
11398 (vcondu<mode><v_cmp_result>): Likewise.
11399 (vcond_mask_<mode><v_cmp_result>): Likewise. Added unsafe math
11400 condition.
11401
11402 2021-05-17 liuhongt <hongtao.liu@intel.com>
11403
11404 PR target/100549
11405 * config/i386/i386.c (ix86_gimple_fold_builtin): Use
11406 gsi_insert_seq_before instead.
11407
11408 2021-05-17 Christophe Lyon <christophe.lyon@linaro.org>
11409
11410 * doc/sourcebuild.texi (arm_qbit_ok): Rename into...
11411 (arm_sat_ok): ...this.
11412
11413 2021-05-17 Martin Liska <mliska@suse.cz>
11414
11415 * lto-wrapper.c (merge_flto_options): Factor out a new function.
11416 (merge_and_complain): Use it.
11417 (run_gcc): Merge also linker command line -flto=foo argument
11418 with IL files.
11419
11420 2021-05-16 Christophe Lyon <christophe.lyon@linaro.org>
11421
11422 * config/arm/arm.h (CPP_SPEC): Remove error message about
11423 -mlittle-endian/-mbig-endian conflict.
11424
11425 2021-05-15 Bill Schmidt <wschmidt@linux.ibm.com>
11426
11427 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
11428 __ROP_PROTECT__ if -mrop-protect is selected.
11429
11430 2021-05-15 Bill Schmidt <wschmidt@linux.ibm.com>
11431
11432 * config/rs6000/rs6000-internal.h (rs6000_stack): Add
11433 rop_hash_save_offset and rop_hash_size.
11434 * config/rs6000/rs6000-logue.c (rs6000_stack_info): Compute
11435 rop_hash_size and rop_hash_save_offset.
11436 (debug_stack_info): Dump rop_hash_save_offset and rop_hash_size.
11437 (rs6000_emit_prologue): Emit hashst[p] in prologue.
11438 (rs6000_emit_epilogue): Emit hashchk[p] in epilogue.
11439 * config/rs6000/rs6000.md (unspec): Add UNSPEC_HASHST and
11440 UNSPEC_HASHCHK.
11441 (hashst): New define_insn.
11442 (hashchk): Likewise.
11443
11444 2021-05-15 Bill Schmidt <wschmidt@linux.ibm.com>
11445
11446 * config/rs6000/rs6000.c (rs6000_option_override_internal):
11447 Disable shrink wrap when inserting ROP-protect instructions.
11448 * config/rs6000/rs6000.opt (mrop-protect): New option.
11449 (mprivileged): Likewise.
11450 * doc/invoke.texi: Document mrop-protect and mprivileged.
11451
11452 2021-05-15 Hans-Peter Nilsson <hp@axis.com>
11453
11454 * reorg.c (fill_slots_from_thread): Reinstate code typoed out in
11455 "Remove CC0".
11456
11457 2021-05-15 Martin Jambor <mjambor@suse.cz>
11458
11459 Revert:
11460 2021-05-13 Martin Jambor <mjambor@suse.cz>
11461
11462 PR tree-optimization/100453
11463 * tree-sra.c (sra_modify_assign): All const base accesses do not
11464 need refreshing, not just those from decl_pool.
11465 (sra_modify_assign): Do not refresh into a const base decl.
11466
11467 2021-05-15 Jakub Jelinek <jakub@redhat.com>
11468
11469 PR rtl-optimization/100342
11470 * regcprop.c (copy_value): When copying a source reg in a wider
11471 mode than it has recorded for the value, adjust recorded destination
11472 mode too or punt if !REG_CAN_CHANGE_MODE_P.
11473
11474 2021-05-14 Jason Merrill <jason@redhat.com>
11475
11476 * intl.h: Add comments.
11477
11478 2021-05-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11479
11480 * config/aarch64/aarch64-simd.md
11481 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Split into...
11482 (aarch64_sqdmlsl2_lane<mode>_internal): ... This...
11483 (aarch64_sqdmlal2_lane<mode>_internal): ... And this.
11484 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Split into ...
11485 (aarch64_sqdmlsl2_laneq<mode>_internal): ... This...
11486 (aarch64_sqdmlal2_laneq<mode>_internal): ... And this.
11487 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Split into...
11488 (aarch64_sqdmlsl2_n<mode>_internal): ... This...
11489 (aarch64_sqdmlal2_n<mode>_internal): ... And this.
11490
11491 2021-05-14 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
11492
11493 PR target/66791
11494 * config/arm/arm_neon.h (vtst_s8): Replace call to vtst builtin with it's
11495 boolean logic equivalent.
11496 (vtst_s16): Likewise.
11497 (vtst_s32): Likewise.
11498 (vtst_u8): Likewise.
11499 (vtst_u16): Likewise.
11500 (vtst_u32): Likewise.
11501 (vtst_p8): Likewise.
11502 (vtst_p16): Likewise.
11503 (vtstq_s8): Likewise.
11504 (vtstq_s16): Likewise.
11505 (vtstq_s32): Likewise.
11506 (vtstq_u8): Likewise.
11507 (vtstq_u16): Likewise.
11508 (vtstq_u32): Likewise.
11509 (vtstq_p8): Likewise.
11510 (vtstq_p16): Likewise.
11511 * config/arm/arm_neon_builtins.def: Remove entry for vtst.
11512 * config/arm/neon.md (neon_vtst<mode>): Remove pattern.
11513
11514 2021-05-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11515
11516 * config/aarch64/aarch64-simd.md (aarch64_sqdmlal2<mode>): Merge into...
11517 (aarch64_sqdml<SBINQOPS:as>l2<mode>): ... This.
11518 (aarch64_sqdmlsl2<mode>): Delete.
11519 (aarch64_sqdmlal2_lane<mode>): Merge this...
11520 (aarch64_sqdmlsl2_lane<mode>): ... And this...
11521 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>): ... Into this.
11522 (aarch64_sqdmlal2_laneq<mode>): Merge this...
11523 (aarch64_sqdmlsl2_laneq<mode>): ... And this...
11524 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>): ... Into this.
11525 (aarch64_sqdmlal2_n<mode>): Merge this...
11526 (aarch64_sqdmlsl2_n<mode>): ... And this...
11527 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>): ... Into this.
11528
11529 2021-05-13 Martin Sebor <msebor@redhat.com>
11530
11531 PR middle-end/100574
11532 * builtins.c (access_ref::get_ref): Improve detection of PHIs with
11533 all null arguments.
11534
11535 2021-05-13 Martin Sebor <msebor@redhat.com>
11536
11537 PR tree-optimization/93100
11538 PR middle-end/98583
11539 * tree-ssa-uninit.c (check_defs): Exclude intrinsic functions that
11540 don't modify referenced objects.
11541
11542 2021-05-13 Martin Jambor <mjambor@suse.cz>
11543
11544 PR tree-optimization/100453
11545 * tree-sra.c (sra_modify_assign): All const base accesses do not
11546 need refreshing, not just those from decl_pool.
11547 (sra_modify_assign): Do not refresh into a const base decl.
11548
11549 2021-05-13 Martin Liska <mliska@suse.cz>
11550
11551 * tree-ssa-dom.c: Remove m_simplifier.
11552
11553 2021-05-13 Richard Earnshaw <rearnsha@arm.com>
11554
11555 PR target/100563
11556 * config/arm/arm.c (arm_canonicalize_comparison): Correctly
11557 canonicalize DImode inequality comparisons against the
11558 maximum integral value.
11559
11560 2021-05-13 Jakub Jelinek <jakub@redhat.com>
11561
11562 PR tree-optimization/98856
11563 * config/i386/i386.c (ix86_shift_rotate_cost): Add CODE argument.
11564 Expect V2DI and V4DI arithmetic right shifts to be emulated.
11565 (ix86_rtx_costs, ix86_add_stmt_cost): Adjust ix86_shift_rotate_cost
11566 caller.
11567 * config/i386/i386-expand.c (expand_vec_perm_2perm_interleave,
11568 expand_vec_perm_2perm_pblendv): New functions.
11569 (ix86_expand_vec_perm_const_1): Use them.
11570 * config/i386/sse.md (ashr<mode>3<mask_name>): Rename to ...
11571 (<mask_codefor>ashr<mode>3<mask_name>): ... this.
11572 (ashr<mode>3): New define_expand with VI248_AVX512BW iterator.
11573 (ashrv4di3): New define_expand.
11574 (ashrv2di3): Change condition to TARGET_SSE2, handle !TARGET_XOP
11575 and !TARGET_AVX512VL expansion.
11576
11577 2021-05-13 Uroš Bizjak <ubizjak@gmail.com>
11578
11579 PR target/100581
11580 * config/i386/i386-expand.c (ix86_expand_sse_movcc): Force mode
11581 sizes < 16 to a register when constructing vpcmov pattern.
11582 * config/i386/mmx.md (*xop_pcmov_<mode>): Use MMXMODE124 mode.
11583
11584 2021-05-13 Martin Liska <mliska@suse.cz>
11585
11586 * gcov-io.c (gcov_write_block): Remove.
11587 (gcov_write_words): Likewise.
11588 (gcov_read_words): Re-implement using gcov_read_bytes.
11589 (gcov_allocate): Remove.
11590 (GCOV_BLOCK_SIZE): Likewise.
11591 (struct gcov_var): Remove most of the fields.
11592 (gcov_position): Implement with ftell.
11593 (gcov_rewrite): Remove setting of start and offset fields.
11594 (from_file): Re-format.
11595 (gcov_open): Remove setbuf call. It should not be needed.
11596 (gcov_close): Remove internal buffer handling.
11597 (gcov_magic): Use __builtin_bswap32.
11598 (gcov_write_counter): Use directly gcov_write_unsigned.
11599 (gcov_write_string): Use direct fwrite and do not round
11600 to 4 bytes.
11601 (gcov_seek): Use directly fseek.
11602 (gcov_write_tag): Use gcov_write_unsigned directly.
11603 (gcov_write_length): Likewise.
11604 (gcov_write_tag_length): Likewise.
11605 (gcov_read_bytes): Use directly fread.
11606 (gcov_read_unsigned): Use gcov_read_words.
11607 (gcov_read_counter): Likewise.
11608 (gcov_read_string): Use gcov_read_bytes.
11609 * gcov-io.h (GCOV_WORD_SIZE): Adjust to reflect
11610 that size is not in bytes, but words (4B).
11611 (GCOV_TAG_FUNCTION_LENGTH): Likewise.
11612 (GCOV_TAG_ARCS_LENGTH): Likewise.
11613 (GCOV_TAG_ARCS_NUM): Likewise.
11614 (GCOV_TAG_COUNTER_LENGTH): Likewise.
11615 (GCOV_TAG_COUNTER_NUM): Likewise.
11616 (GCOV_TAG_SUMMARY_LENGTH): Likewise.
11617
11618 2021-05-13 liuhongt <hongtao.liu@intel.com>
11619
11620 PR target/94680
11621 * config/i386/sse.md (ssedoublevecmode): Add attribute for
11622 V64QI/V32HI/V16SI/V4DI.
11623 (ssehalfvecmode): Add attribute for V2DI/V2DF.
11624 (*vec_concatv4si_0): Extend to VI124_128.
11625 (*vec_concat<mode>_0): New pre-reload splitter.
11626 * config/i386/predicates.md (movq_parallel): New predicate.
11627
11628 2021-05-13 Alexandre Oliva <oliva@adacore.com>
11629
11630 * targhooks.c (default_zero_call_used_regs): Retry using
11631 successfully-zeroed registers as sources.
11632
11633 2021-05-12 Tobias Burnus <tobias@codesourcery.com>
11634
11635 * omp-low.c (finish_taskreg_scan): Use the proper detach decl.
11636
11637 2021-05-12 Aldy Hernandez <aldyh@redhat.com>
11638
11639 PR c/100521
11640 * gimple-range.cc (range_of_builtin_call): Skip out on
11641 processing __builtin_clz when varying.
11642
11643 2021-05-12 Tom de Vries <tdevries@suse.de>
11644
11645 PR target/96005
11646 * config/nvptx/nvptx-opts.h (enum ptx_version): New enum.
11647 * config/nvptx/nvptx.c (nvptx_file_start): Print .version according
11648 to ptx_version_option.
11649 * config/nvptx/nvptx.h (TARGET_PTX_6_3): Define.
11650 * config/nvptx/nvptx.md (define_insn "nvptx_shuffle<mode>")
11651 (define_insn "nvptx_vote_ballot"): Use sync variant for
11652 TARGET_PTX_6_3.
11653 * config/nvptx/nvptx.opt (ptx_version): Add enum.
11654 (mptx): Add option.
11655 * doc/invoke.texi (Nvidia PTX Options): Add mptx item.
11656
11657 2021-05-12 Richard Biener <rguenther@suse.de>
11658
11659 PR tree-optimization/100566
11660 * tree-ssa-sccvn.c (dominated_by_p_w_unex): Properly handle
11661 allow_back for all edge queries.
11662
11663 2021-05-12 liuhongt <hongtao.liu@intel.com>
11664
11665 PR target/99908
11666 * config/i386/sse.md (<sse4_1_avx2>_pblendvb): Add
11667 splitters for pblendvb of NOT mask register.
11668
11669 2021-05-12 Richard Biener <rguenther@suse.de>
11670
11671 PR tree-optimization/100519
11672 * tree-ssa-reassoc.c (can_associate_p): Split into...
11673 (can_associate_op_p): ... this
11674 (can_associate_type_p): ... and this.
11675 (is_reassociable_op): Call can_associate_op_p.
11676 (break_up_subtract_bb): Call the appropriate predicates.
11677 (reassociate_bb): Likewise.
11678
11679 2021-05-12 Martin Liska <mliska@suse.cz>
11680
11681 * lto-wrapper.c (merge_and_complain): Merge -flto=arg options.
11682 (run_gcc): Use -flto argument detection for merged
11683 fdecoded_options.
11684
11685 2021-05-12 Martin Liska <mliska@suse.cz>
11686
11687 * lto-wrapper.c (print_lto_docs_link): New function.
11688 (run_gcc): Print warning about missing job server detection
11689 after we know NR of partitions. Do the same for -flto{,=1}.
11690 * opts.c (get_option_html_page): Support -flto option.
11691
11692 2021-05-12 Martin Liska <mliska@suse.cz>
11693
11694 * lto-wrapper.c (get_options_from_collect_gcc_options): Change
11695 return type.
11696 (append_option): Remove.
11697 (find_option): Rework to use the vector type.
11698 (remove_option): Remove.
11699 (merge_and_complain): Use vectors for cl_decoded_option data
11700 type arguments.
11701 (append_compiler_options): Likewise.
11702 (append_diag_options): Likewise.
11703 (append_linker_options): Likewise.
11704 (append_offload_options): Likewise.
11705 (compile_offload_image): Likewise.
11706 (compile_images_for_offload_targets): Likewise.
11707 (find_and_merge_options): Likewise.
11708 (run_gcc): Likewise.
11709
11710 2021-05-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
11711
11712 PR debug/100515
11713 * dwarf2out.c (dwarf2out_finish): Set
11714 have_multiple_function_sections with multi-range text_section.
11715
11716 2021-05-12 Martin Liska <mliska@suse.cz>
11717
11718 PR bootstrap/100560
11719 * Makefile.in: Remove version.h from linker command line.
11720
11721 2021-05-12 Richard Biener <rguenther@suse.de>
11722
11723 PR middle-end/100547
11724 * rtl.h (rtvec_alloc): Make argument size_t.
11725 * rtl.c (rtvec_alloc): Verify the count is less than INT_MAX.
11726
11727 2021-05-12 Jakub Jelinek <jakub@redhat.com>
11728
11729 PR middle-end/100508
11730 * cfgexpand.c (expand_debug_expr): For DEBUG_EXPR_DECL with vector
11731 type, don't reuse DECL_RTL if it has different mode, instead force
11732 creation of a new DEBUG_EXPR.
11733
11734 2021-05-12 Jakub Jelinek <jakub@redhat.com>
11735 Marc Glisse <marc.glisse@inria.fr>
11736
11737 PR tree-optimization/94589
11738 * match.pd ((X & Y) == X -> (X & ~Y) == 0,
11739 (X | Y) == Y -> (X & ~Y) == 0): New GIMPLE simplifications.
11740
11741 2021-05-12 Uroš Bizjak <ubizjak@gmail.com>
11742
11743 PR target/98218
11744 * config/i386/i386-expand.c (ix86_expand_sse_movcc): Handle V2SF mode.
11745 * config/i386/mmx.md (MMXMODE124): New mode iterator.
11746 (V2FI): Ditto.
11747 (mmxintvecmode): New mode attribute.
11748 (mmxintvecmodelower): Ditto.
11749 (*mmx_maskcmpv2sf3_comm): New insn pattern.
11750 (*mmx_maskcmpv2sf3): Ditto.
11751 (vec_cmpv2sfv2si): New expander.
11752 (vcond<V2FI:mode>v2si): Ditto.
11753 (mmx_vlendvps): New insn pattern.
11754 (vcond<MMXMODE124:mode><MMXMODEI:mode>): Also handle V2SFmode.
11755 (vcondu<MMXMODE124:mode><MMXMODEI:mode>): Ditto.
11756 (vcond_mask_<mode><mmxintvecmodelower>): Ditto.
11757
11758 2021-05-11 Martin Sebor <msebor@redhat.com>
11759
11760 PR middle-end/21433
11761 * expr.c (expand_expr_real_1): Replace unreachable code with an assert.
11762
11763 2021-05-11 Richard Biener <rguenther@suse.de>
11764
11765 * gimple-fold.c (gimple_fold_call): Do not call
11766 maybe_fold_reference on call arguments or the static chain.
11767 (fold_stmt_1): Do not call maybe_fold_reference on GIMPLE_ASM
11768 inputs.
11769
11770 2021-05-11 Martin Liska <mliska@suse.cz>
11771
11772 * builtins.def (DEF_HSAIL_BUILTIN): Remove.
11773 (DEF_HSAIL_ATOMIC_BUILTIN): Likewise.
11774 (DEF_HSAIL_SAT_BUILTIN): Likewise.
11775 (DEF_HSAIL_INTR_BUILTIN): Likewise.
11776 (DEF_HSAIL_CVT_ZEROI_SAT_BUILTIN): Likewise.
11777 * doc/frontends.texi: Remove BRIG.
11778 * doc/install.texi: Likewise.
11779 * doc/invoke.texi: Likewise.
11780 * doc/standards.texi: Likewise.
11781 * brig-builtins.def: Removed.
11782 * brig/ChangeLog: Removed.
11783 * brig/Make-lang.in: Removed.
11784 * brig/brig-builtins.h: Removed.
11785 * brig/brig-c.h: Removed.
11786 * brig/brig-lang.c: Removed.
11787 * brig/brigfrontend/brig-arg-block-handler.cc: Removed.
11788 * brig/brigfrontend/brig-atomic-inst-handler.cc: Removed.
11789 * brig/brigfrontend/brig-basic-inst-handler.cc: Removed.
11790 * brig/brigfrontend/brig-branch-inst-handler.cc: Removed.
11791 * brig/brigfrontend/brig-cmp-inst-handler.cc: Removed.
11792 * brig/brigfrontend/brig-code-entry-handler.cc: Removed.
11793 * brig/brigfrontend/brig-code-entry-handler.h: Removed.
11794 * brig/brigfrontend/brig-comment-handler.cc: Removed.
11795 * brig/brigfrontend/brig-control-handler.cc: Removed.
11796 * brig/brigfrontend/brig-copy-move-inst-handler.cc: Removed.
11797 * brig/brigfrontend/brig-cvt-inst-handler.cc: Removed.
11798 * brig/brigfrontend/brig-fbarrier-handler.cc: Removed.
11799 * brig/brigfrontend/brig-function-handler.cc: Removed.
11800 * brig/brigfrontend/brig-function.cc: Removed.
11801 * brig/brigfrontend/brig-function.h: Removed.
11802 * brig/brigfrontend/brig-inst-mod-handler.cc: Removed.
11803 * brig/brigfrontend/brig-label-handler.cc: Removed.
11804 * brig/brigfrontend/brig-lane-inst-handler.cc: Removed.
11805 * brig/brigfrontend/brig-machine.c: Removed.
11806 * brig/brigfrontend/brig-machine.h: Removed.
11807 * brig/brigfrontend/brig-mem-inst-handler.cc: Removed.
11808 * brig/brigfrontend/brig-module-handler.cc: Removed.
11809 * brig/brigfrontend/brig-queue-inst-handler.cc: Removed.
11810 * brig/brigfrontend/brig-seg-inst-handler.cc: Removed.
11811 * brig/brigfrontend/brig-signal-inst-handler.cc: Removed.
11812 * brig/brigfrontend/brig-to-generic.cc: Removed.
11813 * brig/brigfrontend/brig-to-generic.h: Removed.
11814 * brig/brigfrontend/brig-util.cc: Removed.
11815 * brig/brigfrontend/brig-util.h: Removed.
11816 * brig/brigfrontend/brig-variable-handler.cc: Removed.
11817 * brig/brigfrontend/hsa-brig-format.h: Removed.
11818 * brig/brigfrontend/phsa.h: Removed.
11819 * brig/brigspec.c: Removed.
11820 * brig/config-lang.in: Removed.
11821 * brig/gccbrig.texi: Removed.
11822 * brig/lang-specs.h: Removed.
11823 * brig/lang.opt: Removed.
11824
11825 2021-05-11 Richard Biener <rguenther@suse.de>
11826
11827 PR ipa/100513
11828 * ipa-param-manipulation.c
11829 (ipa_param_body_adjustments::modify_call_stmt): Avoid
11830 altering SSA_NAME_DEF_STMT by adjusting the calls LHS
11831 via gimple_call_lhs_ptr.
11832
11833 2021-05-11 Alex Coplan <alex.coplan@arm.com>
11834
11835 PR target/99725
11836 * config/arm/arm.c (cmse_nonsecure_call_inline_register_clear):
11837 Avoid emitting CFA adjusts on the sp if we have the fp.
11838
11839 2021-05-11 Richard Sandiford <richard.sandiford@arm.com>
11840
11841 * config/aarch64/iterators.md (VMUL_CHANGE_NLANES): Delete.
11842 (VMULD): New iterator.
11843 (VCOND): Handle V4HF and V8HF.
11844 (VCONQ): Fix entry for V2SF.
11845 * config/aarch64/aarch64-simd.md (mul_lane<mode>3): Use VMULD
11846 instead of VMUL. Use a 64-bit vector mode for the indexed operand.
11847 (*aarch64_mul3_elt_<vswap_width_name><mode>): Merge with...
11848 (mul_laneq<mode>3): ...this define_insn. Use VMUL instead of VDQSF.
11849 Use a 128-bit vector mode for the indexed operand. Use stype for
11850 the scheduling type.
11851
11852 2021-05-11 Richard Biener <rguenther@suse.de>
11853
11854 * gimple-fold.c (maybe_fold_reference): Only return
11855 is_gimple_min_invariant values.
11856
11857 2021-05-11 Richard Biener <rguenther@suse.de>
11858
11859 PR middle-end/100509
11860 * gimple-fold.c (fold_gimple_assign): Only call
11861 get_symbol_constant_value on register type symbols.
11862
11863 2021-05-11 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
11864 Joe Ramsay <joe.ramsay@arm.com>
11865
11866 PR target/100419
11867 * config/arm/arm_mve.h (__arm_vstrwq_scatter_offset): Fix wrong arguments.
11868 (__arm_vcmpneq): Remove duplicate definition.
11869 (__arm_vstrwq_scatter_offset_p): Likewise.
11870 (__arm_vmaxq_x): Likewise.
11871 (__arm_vmlsdavaq): Likewise.
11872 (__arm_vmlsdavaxq): Likewise.
11873 (__arm_vmlsdavq_p): Likewise.
11874 (__arm_vmlsdavxq_p): Likewise.
11875 (__arm_vrmlaldavhaq): Likewise.
11876 (__arm_vstrbq_p): Likewise.
11877 (__arm_vstrbq_scatter_offset): Likewise.
11878 (__arm_vstrbq_scatter_offset_p): Likewise.
11879 (__arm_vstrdq_scatter_offset): Likewise.
11880 (__arm_vstrdq_scatter_offset_p): Likewise.
11881 (__arm_vstrdq_scatter_shifted_offset): Likewise.
11882 (__arm_vstrdq_scatter_shifted_offset_p): Likewise.
11883
11884 2021-05-11 Jakub Jelinek <jakub@redhat.com>
11885
11886 PR middle-end/100471
11887 * omp-low.c (lower_omp_task_reductions): For OMP_TASKLOOP, if data
11888 is 0, bypass the reduction loop including
11889 GOMP_taskgroup_reduction_unregister call.
11890
11891 2021-05-11 Kewen Lin <linkw@linux.ibm.com>
11892
11893 * config/rs6000/rs6000.c (struct rs6000_cost_data): New member
11894 costing_for_scalar.
11895 (rs6000_density_test): Early return if costing_for_scalar is true.
11896 (rs6000_init_cost): Init costing_for_scalar of rs6000_cost_data.
11897
11898 2021-05-11 Kewen Lin <linkw@linux.ibm.com>
11899
11900 * doc/tm.texi: Regenerated.
11901 * target.def (init_cost): Add new parameter costing_for_scalar.
11902 * targhooks.c (default_init_cost): Adjust for new parameter.
11903 * targhooks.h (default_init_cost): Likewise.
11904 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Likewise.
11905 (vect_compute_single_scalar_iteration_cost): Likewise.
11906 (vect_analyze_loop_2): Likewise.
11907 * tree-vect-slp.c (_bb_vec_info::_bb_vec_info): Likewise.
11908 (vect_bb_vectorization_profitable_p): Likewise.
11909 * tree-vectorizer.h (init_cost): Likewise.
11910 * config/aarch64/aarch64.c (aarch64_init_cost): Likewise.
11911 * config/i386/i386.c (ix86_init_cost): Likewise.
11912 * config/rs6000/rs6000.c (rs6000_init_cost): Likewise.
11913
11914 2021-05-11 Kewen Lin <linkw@linux.ibm.com>
11915
11916 * config/rs6000/rs6000.c (rs6000_vect_nonmem): Renamed to
11917 vect_nonmem and moved into...
11918 (struct rs6000_cost_data): ...here.
11919 (rs6000_init_cost): Use vect_nonmem of cost_data instead.
11920 (rs6000_add_stmt_cost): Likewise.
11921 (rs6000_finish_cost): Likewise.
11922
11923 2021-05-10 Eric Botcazou <ebotcazou@adacore.com>
11924
11925 * range-op.cc (get_bool_state): Adjust head comment.
11926 (operator_not_equal::op1_range): Fix comment.
11927 (operator_bitwise_xor::op1_range): Remove call to gcc_unreachable.
11928
11929 2021-05-10 Martin Sebor <msebor@redhat.com>
11930
11931 PR middle-end/100425
11932 PR middle-end/100510
11933 * gimple-ssa-warn-alloca.c (pass_walloca::firast_time_p): Rename...
11934 (pass_walloca::xlimit_certain_p): ...to this.
11935 (pass_walloca::gate): Execute for any kind of handled warning.
11936 (pass_walloca::execute): Avoid issuing "maybe" and "unbounded"
11937 warnings when xlimit_certain_p is set.
11938
11939 2021-05-10 Pat Haugen <pthaugen@linux.ibm.com>
11940
11941 * config/rs6000/rs6000.c (rs6000_ira_change_pseudo_allocno_class):
11942 Return ALTIVEC_REGS if that is best_class.
11943 (rs6000_compute_pressure_classes): Add ALTIVEC_REGS.
11944
11945 2021-05-10 Christophe Lyon <christophe.lyon@linaro.org>
11946
11947 * config/arm/arm.h (CPP_SPEC): Remove error message about
11948 -mfloat-abi.
11949
11950 2021-05-10 Martin Jambor <mjambor@suse.cz>
11951
11952 * ipa-prop.h (IPA_NODE_REF): Removed.
11953 (IPA_NODE_REF_GET_CREATE): Likewise.
11954 (IPA_EDGE_REF): Likewise.
11955 (IPA_EDGE_REF_GET_CREATE): Likewise.
11956 (IS_VALID_JUMP_FUNC_INDEX): Likewise.
11957 * ipa-cp.c (print_all_lattices): Replaced IPA_NODE_REF with a direct
11958 use of ipa_node_params_sum.
11959 (ipcp_versionable_function_p): Likewise.
11960 (push_node_to_stack): Likewise.
11961 (pop_node_from_stack): Likewise.
11962 (set_single_call_flag): Replaced two IPA_NODE_REF with one single
11963 direct use of ipa_node_params_sum.
11964 (initialize_node_lattices): Replaced IPA_NODE_REF with a direct use of
11965 ipa_node_params_sum.
11966 (ipa_context_from_jfunc): Replaced IPA_EDGE_REF with a direct use of
11967 ipa_edge_args_sum.
11968 (ipcp_verify_propagated_values): Replaced IPA_NODE_REF with a direct
11969 use of ipa_node_params_sum.
11970 (self_recursively_generated_p): Likewise.
11971 (propagate_scalar_across_jump_function): Likewise.
11972 (propagate_context_across_jump_function): Replaced IPA_EDGE_REF with a
11973 direct use of ipa_edge_args_sum, moved the lookup after the early
11974 exit. Replaced IPA_NODE_REF with a direct use of ipa_node_params_sum.
11975 (propagate_bits_across_jump_function): Replaced IPA_NODE_REF with
11976 direct uses of ipa_node_params_sum.
11977 (propagate_vr_across_jump_function): Likewise.
11978 (propagate_aggregate_lattice): Likewise.
11979 (propagate_aggs_across_jump_function): Likewise.
11980 (propagate_constants_across_call): Likewise, also replaced
11981 IPA_EDGE_REF with a direct use of ipa_edge_args_sum.
11982 (good_cloning_opportunity_p): Replaced IPA_NODE_REF with a direct use
11983 of ipa_node_params_sum.
11984 (estimate_local_effects): Likewise.
11985 (add_all_node_vals_to_toposort): Likewise.
11986 (propagate_constants_topo): Likewise.
11987 (ipcp_propagate_stage): Likewise.
11988 (ipcp_discover_new_direct_edges): Likewise.
11989 (calls_same_node_or_its_all_contexts_clone_p): Likewise.
11990 (cgraph_edge_brings_value_p): Likewise (in both overloaded functions).
11991 (get_info_about_necessary_edges): Likewise.
11992 (want_remove_some_param_p): Likewise.
11993 (create_specialized_node): Likewise.
11994 (self_recursive_pass_through_p): Likewise.
11995 (self_recursive_agg_pass_through_p): Likewise.
11996 (find_more_scalar_values_for_callers_subset): Likewise and also
11997 replaced IPA_EDGE_REF with direct uses of ipa_edge_args_sum, in one
11998 case replacing two of those with a single query.
11999 (find_more_contexts_for_caller_subset): Likewise for the
12000 ipa_polymorphic_call_context overload.
12001 (intersect_aggregates_with_edge): Replaced IPA_EDGE_REF with a direct
12002 use of ipa_edge_args_sum. Replaced IPA_NODE_REF with direct uses of
12003 ipa_node_params_sum.
12004 (find_aggregate_values_for_callers_subset): Likewise, also reusing
12005 results of ipa_edge_args_sum->get.
12006 (cgraph_edge_brings_all_scalars_for_node): Replaced IPA_NODE_REF with
12007 direct uses of ipa_node_params_sum, replaced IPA_EDGE_REF with a
12008 direct use of ipa_edge_args_sum.
12009 (cgraph_edge_brings_all_agg_vals_for_node): Likewise, moved node
12010 summary query after the early exit and reused the result later.
12011 (decide_about_value): Replaced IPA_NODE_REF with a direct use of
12012 ipa_node_params_sum.
12013 (decide_whether_version_node): Likewise. Removed re-querying for
12014 summaries after cloning.
12015 (spread_undeadness): Replaced IPA_NODE_REF with a direct use of
12016 ipa_node_params_sum.
12017 (has_undead_caller_from_outside_scc_p): Likewise, reusing results of
12018 some queries.
12019 (identify_dead_nodes): Likewise.
12020 (ipcp_store_bits_results): Replaced IPA_NODE_REF with direct uses of
12021 ipa_node_params_sum.
12022 (ipcp_store_vr_results): Likewise.
12023 * ipa-fnsummary.c (evaluate_properties_for_edge): Likewise.
12024 (ipa_fn_summary_t::duplicate): Likewise.
12025 (analyze_function_body): Likewise.
12026 (estimate_calls_size_and_time): Likewise.
12027 (ipa_cached_call_context::duplicate_from): Likewise.
12028 (ipa_call_context::equal_to): Likewise.
12029 (remap_edge_params): Likewise.
12030 (ipa_merge_fn_summary_after_inlining): Likewise.
12031 (inline_read_section): Likewise.
12032 * ipa-icf.c (sem_function::param_used_p): Likewise.
12033 * ipa-modref.c (compute_parm_map): Likewise.
12034 (compute_parm_map): Replaced IPA_EDGE_REF with a direct use of
12035 ipa_edge_args_sum.
12036 (get_access_for_fnspec): Replaced IPA_NODE_REF with a direct use of
12037 ipa_node_params_sum and replaced IPA_EDGE_REF with a direct use of
12038 ipa_edge_args_sum.
12039 * ipa-profile.c (check_argument_count): Likewise.
12040 * ipa-prop.c (ipa_alloc_node_params): Replaced IPA_NODE_REF_GET_CREATE
12041 with a direct use of ipa_node_params_sum.
12042 (ipa_initialize_node_params): Likewise.
12043 (ipa_print_node_jump_functions_for_edge): Replaced IPA_EDGE_REF with a
12044 direct use of ipa_edge_args_sum and reused the query result.
12045 (ipa_compute_jump_functions_for_edge): Replaced IPA_NODE_REF with a
12046 direct use of ipa_node_params_sum and replaced IPA_EDGE_REF with a
12047 direct use of ipa_edge_args_sum.
12048 (ipa_note_param_call): Replaced IPA_NODE_REF with a direct use of
12049 ipa_node_params_sum and reused the result of the query.
12050 (ipa_analyze_node): Likewise.
12051 (ipa_analyze_controlled_uses): Replaced IPA_NODE_REF with a direct use
12052 of ipa_node_params_sum.
12053 (update_jump_functions_after_inlining): Replaced IPA_EDGE_REF with
12054 direct uses of ipa_edge_args_sum.
12055 (update_indirect_edges_after_inlining): Replaced IPA_NODE_REF with
12056 direct uses of ipa_node_params_sum and replaced IPA_EDGE_REF with a
12057 direct use of ipa_edge_args_sum. Removed superficial re-querying the
12058 top edge summary.
12059 (propagate_controlled_uses): Replaced IPA_NODE_REF with direct uses of
12060 ipa_node_params_sum and replaced IPA_EDGE_REF with a direct use of
12061 ipa_edge_args_sum.
12062 (ipa_propagate_indirect_call_infos): Replaced IPA_EDGE_REF with a
12063 direct use of ipa_edge_args_sum.
12064 (ipa_edge_args_sum_t::duplicate): Replaced IPA_NODE_REF with a direct
12065 use of ipa_node_params_sum.
12066 (ipa_print_node_params): Likewise.
12067 (ipa_write_node_info): Likewise and also replaced IPA_EDGE_REF with
12068 direct uses of ipa_edge_args_sum.
12069 (ipa_read_edge_info): Replaced IPA_EDGE_REF with a direct use of
12070 ipa_edge_args_sum.
12071 (ipa_read_node_info): Replaced IPA_NODE_REF with a direct use of
12072 ipa_node_params_sum.
12073 (ipa_prop_write_jump_functions): Likewise. Move variable node to the
12074 scopes where it is used.
12075
12076 2021-05-10 Uroš Bizjak <ubizjak@gmail.com>
12077
12078 * config/i386/i386-expand.c (ix86_expand_sse_movcc)
12079 <case E_V2SImode>: Force op_true to register.
12080
12081 2021-05-10 Christophe Lyon <christophe.lyon@linaro.org>
12082
12083 * config/arm/iterators.md (MVE_FP_COMPARISONS): New.
12084 * config/arm/mve.md (mve_vcmp<mve_cmp_op>q_f<mode>)
12085 (mve_vcmp<mve_cmp_op>q_n_f<mode>): New, merge all vcmp_*f*
12086 patterns.
12087 (mve_vcmpeqq_f<mode>, mve_vcmpeqq_n_f<mode>, mve_vcmpgeq_f<mode>)
12088 (mve_vcmpgeq_n_f<mode>, mve_vcmpgtq_f<mode>)
12089 (mve_vcmpgtq_n_f<mode>, mve_vcmpleq_f<mode>)
12090 (mve_vcmpleq_n_f<mode>, mve_vcmpltq_f<mode>)
12091 (mve_vcmpltq_n_f<mode>, mve_vcmpneq_f<mode>)
12092 (mve_vcmpneq_n_f<mode>): Remove.
12093 * config/arm/unspecs.md (VCMPEQQ_F, VCMPEQQ_N_F, VCMPGEQ_F)
12094 (VCMPGEQ_N_F, VCMPGTQ_F, VCMPGTQ_N_F, VCMPLEQ_F, VCMPLEQ_N_F)
12095 (VCMPLTQ_F, VCMPLTQ_N_F, VCMPNEQ_F, VCMPNEQ_N_F): Remove.
12096
12097 2021-05-10 Christophe Lyon <christophe.lyon@linaro.org>
12098
12099 * config/arm/iterators.md (MVE_COMPARISONS): New.
12100 (mve_cmp_op): New.
12101 (mve_cmp_type): New.
12102 * config/arm/mve.md (mve_vcmp<mve_cmp_op>q_<mode>): New, merge all
12103 mve_vcmp patterns.
12104 (mve_vcmpneq_<mode>, mve_vcmpcsq_n_<mode>, mve_vcmpcsq_<mode>)
12105 (mve_vcmpeqq_n_<mode>, mve_vcmpeqq_<mode>, mve_vcmpgeq_n_<mode>)
12106 (mve_vcmpgeq_<mode>, mve_vcmpgtq_n_<mode>, mve_vcmpgtq_<mode>)
12107 (mve_vcmphiq_n_<mode>, mve_vcmphiq_<mode>, mve_vcmpleq_n_<mode>)
12108 (mve_vcmpleq_<mode>, mve_vcmpltq_n_<mode>, mve_vcmpltq_<mode>)
12109 (mve_vcmpneq_n_<mode>, mve_vcmpltq_n_<mode>, mve_vcmpltq_<mode>)
12110 (mve_vcmpneq_n_<mode>): Remove.
12111
12112 2021-05-10 Christophe Lyon <christophe.lyon@linaro.org>
12113
12114 * config/arm/arm_mve.h (__arm_vcmp*): Remove 's' suffix.
12115 * config/arm/arm_mve_builtins.def (vcmp*): Remove 's' suffix.
12116 * config/arm/mve.md (mve_vcmp*): Remove 's' suffix in pattern
12117 names.
12118
12119 2021-05-10 Christophe Lyon <christophe.lyon@linaro.org>
12120
12121 * config/arm/arm_mve_builtins.def (vcmpneq_u): Remove.
12122 (vcmpneq_n_u): Likewise.
12123 (vcmpeqq_u,): Likewise.
12124 (vcmpeqq_n_u): Likewise.
12125 * config/arm/iterators.md (supf): Remove VCMPNEQ_U, VCMPEQQ_U,
12126 VCMPEQQ_N_U and VCMPNEQ_N_U.
12127 * config/arm/mve.md (mve_vcmpneq): Remove <supf> iteration.
12128 (mve_vcmpeqq_n): Likewise.
12129 (mve_vcmpeqq): Likewise.
12130 (mve_vcmpneq_n): Likewise.
12131
12132 2021-05-10 Christophe Lyon <christophe.lyon@linaro.org>
12133
12134 * config/arm/arm_mve.h (__arm_vcmpeq*u*, __arm_vcmpne*u*): Call
12135 the 's' version of the builtin.
12136
12137 2021-05-10 Richard Biener <rguenther@suse.de>
12138
12139 PR tree-optimization/100492
12140 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
12141 Find nothing when the loop contains an irreducible region.
12142
12143 2021-05-10 Richard Biener <rguenther@suse.de>
12144
12145 PR middle-end/100464
12146 PR c++/100468
12147 * gimple-fold.c (canonicalize_constructor_val): Do not set
12148 TREE_ADDRESSABLE.
12149
12150 2021-05-10 Richard Biener <rguenther@suse.de>
12151
12152 PR tree-optimization/100434
12153 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
12154 call LHS.
12155 (dse_optimize_stmt): Handle call LHS by dropping the
12156 LHS or the whole call if it doesn't have other
12157 side-effects.
12158 (pass_dse::execute): Adjust.
12159
12160 2021-05-10 Martin Liska <mliska@suse.cz>
12161
12162 * Makefile.in: Add missing genversion rule.
12163
12164 2021-05-10 Alex Coplan <alex.coplan@arm.com>
12165
12166 PR target/99960
12167 * config/arm/mve.md (*mve_mov<mode>): Simplify output code. Use
12168 vldrw.u32 and vstrw.32 for V2D[IF]mode loads and stores.
12169
12170 2021-05-10 Martin Liska <mliska@suse.cz>
12171
12172 * builtins.c (is_builtin_name): Use startswith
12173 function instead of strncmp.
12174 * collect2.c (main): Likewise.
12175 (has_lto_section): Likewise.
12176 (scan_libraries): Likewise.
12177 * coverage.c (coverage_checksum_string): Likewise.
12178 (coverage_init): Likewise.
12179 * dwarf2out.c (is_cxx): Likewise.
12180 (gen_compile_unit_die): Likewise.
12181 * gcc-ar.c (main): Likewise.
12182 * gcc.c (init_spec): Likewise.
12183 (read_specs): Likewise.
12184 (execute): Likewise.
12185 (check_live_switch): Likewise.
12186 * genattrtab.c (write_attr_case): Likewise.
12187 (IS_ATTR_GROUP): Likewise.
12188 * gencfn-macros.c (main): Likewise.
12189 * gengtype.c (type_for_name): Likewise.
12190 (gen_rtx_next): Likewise.
12191 (get_file_langdir): Likewise.
12192 (write_local): Likewise.
12193 * genmatch.c (get_operator): Likewise.
12194 (get_operand_type): Likewise.
12195 (expr::gen_transform): Likewise.
12196 * genoutput.c (validate_optab_operands): Likewise.
12197 * incpath.c (add_sysroot_to_chain): Likewise.
12198 * langhooks.c (lang_GNU_C): Likewise.
12199 (lang_GNU_CXX): Likewise.
12200 (lang_GNU_Fortran): Likewise.
12201 (lang_GNU_OBJC): Likewise.
12202 * lto-wrapper.c (run_gcc): Likewise.
12203 * omp-general.c (omp_max_simt_vf): Likewise.
12204 * omp-low.c (omp_runtime_api_call): Likewise.
12205 * opts-common.c (parse_options_from_collect_gcc_options): Likewise.
12206 * read-rtl-function.c (function_reader::read_rtx_operand_r): Likewise.
12207 * real.c (real_from_string): Likewise.
12208 * selftest.c (assert_str_startswith): Likewise.
12209 * timevar.c (timer::validate_phases): Likewise.
12210 * tree.c (get_file_function_name): Likewise.
12211 * ubsan.c (ubsan_use_new_style_p): Likewise.
12212 * varasm.c (default_function_rodata_section): Likewise.
12213 (incorporeal_function_p): Likewise.
12214 (default_section_type_flags): Likewise.
12215 * system.h (startswith): Define startswith.
12216
12217 2021-05-10 Martin Liska <mliska@suse.cz>
12218
12219 * bitmap.h (class auto_bitmap): Remove
12220 __cplusplus >= 201103.
12221 * config/aarch64/aarch64.c: Likewise.
12222 * gimple-ssa-store-merging.c (store_immediate_info::store_immediate_info):
12223 Likewise.
12224 * sbitmap.h: Likewise.
12225
12226 2021-05-10 Martin Liska <mliska@suse.cz>
12227
12228 * Makefile.in: Rename gcov-iov to genversion and depend
12229 on version.h (instead of gcov-iov.h).
12230 * gcov-io.h: Include version.h instread of gcov-iov.h.
12231 * gengtype-state.c (read_state_version): Likewise.
12232 * gcov-iov.c: Moved to...
12233 * genversion.c: ...here.
12234 * lto-streamer.h (LTO_major_version): Define it with
12235 GCC_major_version.
12236 * version.c: Removed.
12237 * version.h: Removed.
12238
12239 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
12240
12241 * config/arc/arc.md (UNSPEC_ARC_DMPYWH): Define.
12242 * config/arc/simdext.md (VCT): Add predicates for iterator
12243 elements.
12244 (EMUVEC): Define.
12245 (voptab): Likewise.
12246 (vec_widen_<V_US>mult_hi_v4hi): Change pattern predicate.
12247 (<voptab>v2si3): New patterns.
12248 (neg): Likewise.
12249 (reduc_plus_scal_v4hi): Likewise.
12250 (reduc_plus_scal_v2si): Likewise.
12251 (vec_duplicatev2si): Likewise.
12252 (vec_duplicatev4hi): Likewise.
12253
12254 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
12255
12256 * config/arc/simdext.md: Format and cleanup file.
12257
12258 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
12259
12260 * config/arc/simdext.md (movmisalignv2hi): Allow misaligned access
12261 only when munaligned-access option is on.
12262 (movmisalign<mode>): Likewise.
12263
12264 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
12265
12266 * common/config/arc/arc-common.c (arc_handle_option): Remove dot
12267 from string.
12268 * config/arc/arc.c (arc_reorg): Remove underscore from string.
12269
12270 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
12271
12272 * config/arc/arc.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
12273 (CTZ_DEFINED_VALUE_AT_ZERO): Likewise.
12274 * config/arc/arc.md (clrsbsi2): Cleanup pattern.
12275 (norm_f): Likewise.
12276 (ffs): Likewise.
12277 (ffs_f): Likewise.
12278 (clzsi2): Use fls instruction when available.
12279 (arc_clzsi2): Likewise.
12280
12281 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
12282
12283 * config/arc/arc.h (ADDITIONAL_REGISTER_NAMES): Add r26 and r27.
12284
12285 2021-05-10 Claudiu Zissulescu <claziss@synopsys.com>
12286
12287 * doc/extend.texi (__builtin_arc_sr): Swap arguments.
12288
12289 2021-05-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
12290
12291 PR middle-end/100467
12292 * toplev.c (compile_file): Call insn_locations_init before
12293 targetm.asm_out.code_end.
12294
12295 2021-05-07 Andrew Stubbs <ams@codesourcery.com>
12296
12297 Revert:
12298 2021-05-07 Andrew Stubbs <ams@codesourcery.com>
12299
12300 * config/gcn/gcn.c (gcn_scalar_mode_supported_p): Disable TImode.
12301
12302 2021-05-07 Jakub Jelinek <jakub@redhat.com>
12303 Andrew Stubbs <amd@codesourcery.com>
12304
12305 PR target/100418
12306 * builtins.c (try_store_by_multiple_pieces): Use force_operand for
12307 emit_move_insn operands.
12308
12309 2021-05-07 Eric Botcazou <ebotcazou@adacore.com>
12310
12311 * cfgexpand.c (expand_gimple_basic_block): Do not inherit a current
12312 location for the outgoing edges of an empty block.
12313 * dwarf2out.c (add_subscript_info): Retrieve the bounds and index
12314 type by means of the get_array_descr_info langhook, if it is set and
12315 returns true. Remove obsolete code dealing with unnamed subtypes.
12316
12317 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
12318
12319 * gimple-range-cache.cc (ssa_block_ranges): Virtualize.
12320 (sbr_vector): Renamed from ssa_block_cache.
12321 (sbr_vector::sbr_vector): Allocate from obstack abd initialize.
12322 (ssa_block_ranges::~ssa_block_ranges): Remove.
12323 (sbr_vector::set_bb_range): Use varying and undefined cached values.
12324 (ssa_block_ranges::set_bb_varying): Remove.
12325 (sbr_vector::get_bb_range): Adjust assert.
12326 (sbr_vector::bb_range_p): Adjust assert.
12327 (~block_range_cache): No freeing loop required.
12328 (block_range_cache::get_block_ranges): Remove.
12329 (block_range_cache::set_bb_range): Inline get_block_ranges.
12330 (block_range_cache::set_bb_varying): Remove.
12331 * gimple-range-cache.h (set_bb_varying): Remove prototype.
12332 * value-range.h (irange_allocator::get_memory): New.
12333
12334 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
12335
12336 * gimple-range-cache.cc (non_null_ref::non_null_deref_p): Search
12337 dominator tree is available and requested.
12338 (ranger_cache::ssa_range_in_bb): Don't search dom tree here.
12339 (ranger_cache::fill_block_cache): Don't search dom tree here either.
12340 * gimple-range-cache.h (non_null_deref_p): Add dom_search param.
12341
12342 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
12343
12344 * gimple-range.cc (gimple_ranger::range_on_exit): Handle block with
12345 only PHI nodes better.
12346
12347 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
12348
12349 * gimple-range-edge.h (gimple_outgoing_range): Rename from
12350 outgoing_range.
12351 (gcond_edge_range): Export prototype.
12352 * gimple-range-edge.cc (gcond_edge_range): New.
12353 (gimple_outgoing_range::edge_range_p): Use gcond_edge_range.
12354 * gimple-range-gori.h (gori_compute): Use gimple_outgoing_range.
12355
12356 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
12357
12358 * gimple-range-edge.cc (outgoing_range::calc_switch_ranges): Compute
12359 default range into a temp and allocate only what is needed.
12360
12361 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
12362
12363 * range-op.cc (operator_trunc_mod::wi_fold): x % 0 is UNDEFINED.
12364
12365 2021-05-07 Andrew MacLeod <amacleod@redhat.com>
12366
12367 * gimple-range.h (gimple_range_global): Pick up parameter initial
12368 values, and use-before defined locals are UNDEFINED.
12369
12370 2021-05-07 Eric Botcazou <ebotcazou@adacore.com>
12371
12372 * doc/extend.texi (scalar_storage_order): Mention effect on pointer
12373 and vector fields.
12374 * tree.h (reverse_storage_order_for_component_p): Return false if
12375 the type is a pointer.
12376
12377 2021-05-07 Andrew Stubbs <ams@codesourcery.com>
12378
12379 * config/gcn/gcn.c (gcn_scalar_mode_supported_p): Disable TImode.
12380
12381 2021-05-07 Uroš Bizjak <ubizjak@gmail.com>
12382
12383 PR target/98218
12384 * config/i386/i386-expand.c (ix86_expand_sse_movcc):
12385 Handle V8QI, V4HI and V2SI modes.
12386 * config/i386/mmx.md (mmx_pblendvb): New insn pattern.
12387 * config/i386/sse.md (unspec): Move UNSPEC_BLENDV ...
12388 * config/i386/i386.md (unspec): ... here.
12389
12390 2021-05-07 Tobias Burnus <tobias@codesourcery.com>
12391 Tom de Vries <tdevries@suse.de>
12392
12393 * omp-low.c (lower_rec_simd_input_clauses): Set max_vf = 1 if
12394 a truth_value_p reduction variable is nonintegral.
12395
12396 2021-05-07 Uroš Bizjak <ubizjak@gmail.com>
12397
12398 PR target/100445
12399 * config/i386/i386-expand.c (ix86_use_mask_cmp_p):
12400 Return false for mode sizes < 16.
12401
12402 2021-05-07 Jakub Jelinek <jakub@redhat.com>
12403
12404 PR target/100445
12405 * config/i386/mmx.md (*xop_pcmov_<mode>): New define_insn.
12406
12407 2021-05-06 Martin Jambor <mjambor@suse.cz>
12408
12409 * ipa-sra.c (ipa_sra_dump_all_summaries): Dump edge summaries even
12410 when there is no function summary.
12411 (ipa_sra_summarize_function): produce edge summaries even when
12412 bailing out early.
12413
12414 2021-05-06 Tom Tromey <tom@tromey.com>
12415
12416 * godump.c (string_hash_eq): Remove.
12417 (go_finish): Use htab_eq_string.
12418
12419 2021-05-06 Tom Tromey <tom@tromey.com>
12420
12421 * gengtype-state.c (read_state): Use htab_eq_string.
12422 (string_eq): Remove.
12423
12424 2021-05-06 Tom Tromey <tom@tromey.com>
12425
12426 * gensupport.c (htab_eq_string): Remove.
12427
12428 2021-05-06 Bernd Edlinger <bernd.edlinger@hotmail.de>
12429
12430 PR ipa/97937
12431 * debug.h (gcc_debug_hooks): Add set_ignored_loc function pointer.
12432 * dwarf2out.h (dw_fde_node::ignored_debug): New data item.
12433 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Add dummy
12434 set_ignored_loc callbacks.
12435 * debug.c (do_nothing_debug_hooks): Likewise.
12436 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
12437 * dwarf2out.c (text_section_used, cold_text_section_used): Remove.
12438 (in_text_section_p, last_text_label, last_cold_label,
12439 switch_text_ranges, switch_cold_ranges): New data items.
12440 (dwarf2out_note_section_used): Remove.
12441 (dwarf2out_begin_prologue): Set fde->ignored_debug and
12442 in_text_section_p.
12443 (mark_ignored_debug_section): New helper function.
12444 (dwarf2out_end_epilogue, dwarf2out_switch_text_section): Call
12445 mark_ignored_debug_section.
12446 (dwarf2_debug_hooks): Use dwarf2out_set_ignored_loc.
12447 (dwarf2_lineno_debug_hooks): Use dummy for set_ignored_loc.
12448 (size_of_aranges): Adjust formula for multi-part text ranges size.
12449 (output_aranges): Output multi-part text ranges.
12450 (dwarf2out_set_ignored_loc): New callback function.
12451 (dwarf2out_finish): Output multi-part text ranges.
12452 (dwarf2out_c_finalize): Clear new data items.
12453 * final.c (final_start_function_1): Call set_ignored_loc callback.
12454 (final_scan_insn_1): Likewise.
12455 * ggc-page.c (gt_ggc_mx): New helper function.
12456 * stringpool.c (gt_pch_nx): Likewise.
12457
12458 2021-05-06 Richard Biener <rguenther@suse.de>
12459
12460 * timevar.def (TV_TREE_INSERT_PHI_NODES): Remove.
12461 (TV_TREE_SSA_REWRITE_BLOCKS): Likewise.
12462 (TV_TREE_INTO_SSA): New.
12463 * tree-into-ssa.c (insert_phi_nodes): Do not account separately.
12464 (rewrite_blocks): Likewise.
12465 (pass_data_build_ssa): Account to TV_TREE_INTO_SSA.
12466
12467 2021-05-06 Jakub Jelinek <jakub@redhat.com>
12468
12469 * tree-ssa-phiopt.c (value_replacement, minmax_replacement,
12470 abs_replacement, xor_replacement,
12471 cond_removal_in_popcount_clz_ctz_pattern,
12472 replace_phi_edge_with_variable): Change type of phi argument from
12473 gimple * to gphi *.
12474
12475 2021-05-06 Richard Biener <rguenther@suse.de>
12476
12477 * tree-ssa-loop-split.c (split_loop): Delay updating SSA form.
12478 Output an opt-info message.
12479 (do_split_loop_on_cond): Likewise.
12480 (tree_ssa_split_loops): Update SSA form here.
12481
12482 2021-05-06 Richard Biener <rguenther@suse.de>
12483
12484 * tree-inline.c (tree_function_versioning): Fix DECL_BY_REFERENCE
12485 return variable removal.
12486
12487 2021-05-06 Marius Hillenbrand <mhillen@linux.ibm.com>
12488
12489 * config/s390/s390-builtins.def (O_M5, O1_M5, ...): Remove unused macros.
12490 (s390_vec_permi_s64, s390_vec_permi_b64, s390_vec_permi_u64)
12491 (s390_vec_permi_dbl, s390_vpdi): Use the O3_U2 type for the immediate
12492 operand.
12493 * config/s390/s390.c (s390_const_operand_ok): Remove unused
12494 values.
12495
12496 2021-05-06 Jakub Jelinek <jakub@redhat.com>
12497
12498 PR tree-optimization/94589
12499 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Call
12500 spaceship_replacement.
12501 (cond_only_block_p, spaceship_replacement): New functions.
12502
12503 2021-05-06 Richard Biener <rguenther@suse.de>
12504
12505 PR ipa/100373
12506 * tree-emutls.c (gen_emutls_addr): Pass in whether we're
12507 dealing with a debug use and only query existing addresses
12508 if so.
12509 (lower_emutls_1): Avoid splitting out addresses for debug
12510 stmts, reset the debug stmt when we fail to find existing
12511 lowered addresses.
12512 (lower_emutls_phi_arg): Set wi.stmt.
12513
12514 2021-05-06 Christoph Muellner <cmuellner@gcc.gnu.org>
12515
12516 PR target/100266
12517 * config/riscv/riscv.c (riscv_block_move_loop): Use cbranch helper.
12518 * config/riscv/riscv.md (cbranch<mode>4): Generate helpers.
12519 (stack_protect_test): Use cbranch helper.
12520
12521 2021-05-05 Eric Botcazou <ebotcazou@adacore.com>
12522
12523 PR target/100402
12524 * config/i386/i386.c (ix86_compute_frame_layout): For a SEH target,
12525 always return the establisher frame for __builtin_frame_address (0).
12526
12527 2021-05-05 Ivan Sorokin <vanyacpp@gmail.com>
12528
12529 PR target/91400
12530 * config/i386/i386-builtins.c (ix86_cpu_model_type_node): New.
12531 (ix86_cpu_model_var): Likewise.
12532 (ix86_cpu_features2_type_node): Likewise.
12533 (ix86_cpu_features2_var): Likewise.
12534 (fold_builtin_cpu): Cache __cpu_model and __cpu_features2 with
12535 their types.
12536
12537 2021-05-05 Martin Sebor <msebor@redhat.com>
12538
12539 * passes.def (pass_warn_printf): Run after SSA.
12540
12541 2021-05-05 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
12542
12543 * config/arm/neon.md (neon_vtst_combine<mode>): New pattern.
12544 * config/arm/predicates.md (minus_one_operand): New predicate.
12545
12546 2021-05-05 Jeff Law <jlaw@tachyum.com>
12547
12548 * config/avr/avr.md: Remove references to CC_STATUS_INIT.
12549
12550 2021-05-05 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
12551
12552 PR rtl-optimization/100263
12553 * postreload.c (move2add_valid_value_p): Ensure register can
12554 change mode.
12555
12556 2021-05-05 Eric Botcazou <ebotcazou@adacore.com>
12557
12558 PR rtl-optimization/100411
12559 * cfgcleanup.c (try_crossjump_to_edge): Also skip end of prologue
12560 and beginning of function markers.
12561
12562 2021-05-05 Jeff Law <jlaw@tachyum.com>
12563
12564 * config/cr16/cr16.h (NOTICE_UPDATE_CC): Remove.
12565 * config/cr16/cr16.c (notice_update_cc): Remove.
12566 * config/cr16/cr16-protos.h (notice_update_cc): Remove.
12567
12568 2021-05-05 Uroš Bizjak <ubizjak@gmail.com>
12569
12570 PR target/98218
12571 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
12572 Handle V8QI, V4HI and V2SI modes.
12573 * config/i386/i386.c (ix86_build_const_vector): Handle V2SImode.
12574 (ix86_build_signbit_mask): Ditto.
12575 * config/i386/mmx.md (MMXMODE14): New mode iterator.
12576 (<smaxmin:code><MMXMODE14:mode>3): New expander.
12577 (*mmx_<smaxmin:code><MMXMODE14:mode>3): New insn pattern.
12578 (<umaxmin:code><MMXMODE24:mode>3): New expander.
12579 (*mmx_<umaxmin:code><MMXMODE24:mode>3): New insn pattern.
12580 (vec_cmp<MMXMODEI:mode><MMXMODEI:mode>): New expander.
12581 (vec_cmpu<MMXMODEI:mode><MMXMODEI:mode>): Ditto.
12582 (vcond<MMXMODEI:mode><MMXMODEI:mode>): Ditto.
12583 (vcondu<MMXMODEI:mode><MMXMODEI:mode>): Ditto.
12584 (vcond_mask_<MMXMODEI:mode><MMXMODEI:mode>): Ditto.
12585
12586 2021-05-05 Eric Botcazou <ebotcazou@adacore.com>
12587
12588 * dwarf2out.c (loc_list_from_tree_1) <DECL>: During early DWARF, do
12589 not expand the VALUE_EXPR of variables put in the non-local frame.
12590 * gimplify.c (gimplify_type_sizes) <RECORD_TYPE>: If the type is not
12591 to be ignored for debug info, ensure its variable offsets are not.
12592
12593 2021-05-05 Richard Biener <rguenther@suse.de>
12594
12595 PR tree-optimization/79333
12596 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt):
12597 Fold stmt following SSA edges.
12598
12599 2021-05-05 Richard Biener <rguenther@suse.de>
12600
12601 PR middle-end/100394
12602 * calls.c (expand_call): Preserve possibly throwing calls.
12603 * cfgexpand.c (expand_call_stmt): When a call can throw signal
12604 RTL expansion there are side-effects.
12605 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Simplify,
12606 mark all possibly throwing stmts necessary unless we can elide
12607 dead EH.
12608 * tree-ssa-dse.c (pass_dse::execute): Preserve exceptions unless
12609 -fdelete-dead-exceptions.
12610 * tree.h (DECL_PURE_P): Add note about exceptions.
12611
12612 2021-05-05 Alexandre Oliva <oliva@adacore.com>
12613
12614 * config/i386/vxworks.h (DBX_REGISTER_NUMBER): Make it
12615 unconditional.
12616
12617 2021-05-04 David Edelsohn <dje.gcc@gmail.com>
12618
12619 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
12620 get_fnname_from_decl for name of thunk.
12621 * config/rs6000/rs6000.c (rs6000_declare_alias): Use assemble_name
12622 and ASM_OUTPUT_LABEL.
12623 (rs6000_xcoff_declare_function_name): Use assemble_name and
12624 ASM_OUTPUT_LABEL.
12625 (rs6000_xcoff_declare_object_name): Use ASM_OUTPUT_LABEL.
12626 (rs6000_xcoff_encode_section_info): Don't add mapping class
12627 for aliases. Always add [DS] mapping class to primary
12628 FUNCTION_DECL.
12629 (rs6000_asm_weaken_decl): Don't explicitly add [DS].
12630
12631 2021-05-04 Martin Sebor <msebor@redhat.com>
12632
12633 PR middle-end/100307
12634 * builtins.c (compute_objsize_r): Clear base0 for pointers.
12635
12636 2021-05-04 Jeff Law <jlaw@tachyum.com>
12637
12638 * config/bfin/bfin.h (NOTICE_UPDATE_CC): Remove.
12639
12640 2021-05-04 Segher Boessenkool <segher@kernel.crashing.org>
12641
12642 * caller-save.c: Remove CC0.
12643 * cfgcleanup.c: Remove CC0.
12644 * cfgrtl.c: Remove CC0.
12645 * combine.c: Remove CC0.
12646 * compare-elim.c: Remove CC0.
12647 * conditions.h: Remove CC0.
12648 * config/h8300/h8300.h: Remove CC0.
12649 * config/h8300/h8300-protos.h: Remove CC0.
12650 * config/h8300/peepholes.md: Remove CC0.
12651 * config/i386/x86-tune-sched.c: Remove CC0.
12652 * config/m68k/m68k.c: Remove CC0.
12653 * config/rl78/rl78.c: Remove CC0.
12654 * config/sparc/sparc.c: Remove CC0.
12655 * config/xtensa/xtensa.c: Remove CC0.
12656 (gen_conditional_move): Use pc_rtx instead of cc0_rtx in a piece of
12657 RTL where that is used as a placeholder only.
12658 * cprop.c: Remove CC0.
12659 * cse.c: Remove CC0.
12660 * cselib.c: Remove CC0.
12661 * df-problems.c: Remove CC0.
12662 * df-scan.c: Remove CC0.
12663 * doc/md.texi: Remove CC0. Adjust an example.
12664 * doc/rtl.texi: Remove CC0. Adjust an example.
12665 * doc/tm.texi: Regenerate.
12666 * doc/tm.texi.in: Remove CC0.
12667 * emit-rtl.c: Remove CC0.
12668 * final.c: Remove CC0.
12669 * fwprop.c: Remove CC0.
12670 * gcse-common.c: Remove CC0.
12671 * gcse.c: Remove CC0.
12672 * genattrtab.c: Remove CC0.
12673 * genconfig.c: Remove CC0.
12674 * genemit.c: Remove CC0.
12675 * genextract.c: Remove CC0.
12676 * gengenrtl.c: Remove CC0.
12677 * genrecog.c: Remove CC0.
12678 * haifa-sched.c: Remove CC0.
12679 * ifcvt.c: Remove CC0.
12680 * ira-costs.c: Remove CC0.
12681 * ira.c: Remove CC0.
12682 * jump.c: Remove CC0.
12683 * loop-invariant.c: Remove CC0.
12684 * lra-constraints.c: Remove CC0.
12685 * lra-eliminations.c: Remove CC0.
12686 * optabs.c: Remove CC0.
12687 * postreload-gcse.c: Remove CC0.
12688 * postreload.c: Remove CC0.
12689 * print-rtl.c: Remove CC0.
12690 * read-rtl-function.c: Remove CC0.
12691 * reg-notes.def: Remove CC0.
12692 * reg-stack.c: Remove CC0.
12693 * reginfo.c: Remove CC0.
12694 * regrename.c: Remove CC0.
12695 * reload.c: Remove CC0.
12696 * reload1.c: Remove CC0.
12697 * reorg.c: Remove CC0.
12698 * resource.c: Remove CC0.
12699 * rtl.c: Remove CC0.
12700 * rtl.def: Remove CC0.
12701 * rtl.h: Remove CC0.
12702 * rtlanal.c: Remove CC0.
12703 * sched-deps.c: Remove CC0.
12704 * sched-rgn.c: Remove CC0.
12705 * shrink-wrap.c: Remove CC0.
12706 * simplify-rtx.c: Remove CC0.
12707 * system.h: Remove CC0. Poison NOTICE_UPDATE_CC, CC_STATUS_MDEP_INIT,
12708 CC_STATUS_MDEP, and CC_STATUS.
12709 * target.def: Remove CC0.
12710 * valtrack.c: Remove CC0.
12711 * var-tracking.c: Remove CC0.
12712
12713 2021-05-04 Richard Biener <rguenther@suse.de>
12714
12715 PR tree-optimization/100414
12716 * tree-ssa-phiopt.c (get_non_trapping): Do not compute dominance
12717 info here.
12718 (tree_ssa_phiopt_worker): But unconditionally here.
12719
12720 2021-05-04 Tobias Burnus <tobias@codesourcery.com>
12721
12722 * omp-low.c (lower_rec_input_clauses, lower_reduction_clauses): Handle
12723 && and || with floating-point and complex arguments.
12724
12725 2021-05-04 Eric Botcazou <ebotcazou@adacore.com>
12726
12727 * tree-inline.c (insert_debug_decl_map): Delete.
12728 (copy_debug_stmt): Minor tweak.
12729 (setup_one_parameter): Do not use a variable if the value is either
12730 a read-only DECL or a non-addressable local variable in the caller.
12731 In this case, insert the debug-only variable in the map manually.
12732 (expand_call_inline): Do not generate a CLOBBER for these values.
12733 * tree-inline.h (debug_map): Minor tweak.
12734
12735 2021-05-04 Eric Botcazou <ebotcazou@adacore.com>
12736
12737 * builtins.c (builtin_with_linkage_p): Return true for stp[n]cpy.
12738 * symtab.c (symtab_node::output_to_lto_symbol_table_p): Tidy up.
12739
12740 2021-05-04 Richard Biener <rguenther@suse.de>
12741
12742 PR tree-optimization/100329
12743 * tree-ssa-reassoc.c (can_reassociate_p): Do not reassociate
12744 asm goto defs.
12745 (insert_stmt_after): Assert we're not running into asm goto.
12746
12747 2021-05-04 Richard Biener <rguenther@suse.de>
12748
12749 PR tree-optimization/100398
12750 * tree-ssa-dse.c (pass_dse::execute): Preserve control
12751 altering stmts.
12752
12753 2021-05-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
12754
12755 * builtins.c (try_store_by_multiple_pieces): Fix constfun's prototype.
12756
12757 2021-05-04 Alexandre Oliva <oliva@adacore.com>
12758
12759 * builtins.c (try_store_by_multiple_pieces): New.
12760 (expand_builtin_memset_args): Use it. If target_char_cast
12761 fails, proceed as for non-constant val. Pass len's ctz to...
12762 * expr.c (clear_storage_hints): ... this. Try store by
12763 multiple pieces after setmem.
12764 (clear_storage): Adjust.
12765 * expr.h (clear_storage_hints): Likewise.
12766 (try_store_by_multiple_pieces): Declare.
12767 * passes.def: Replace the last copy_prop with ccp.
12768
12769 2021-05-03 Tom de Vries <tdevries@suse.de>
12770
12771 PR target/100321
12772 * omp-low.c (lower_rec_input_clauses): Disable SIMT for user-defined
12773 reduction.
12774
12775 2021-05-03 Richard Biener <rguenther@suse.de>
12776
12777 * tree-ssa-dse.c (dse_classify_store): Track two PHI defs.
12778
12779 2021-05-03 Richard Biener <rguenther@suse.de>
12780
12781 * tree-ssa-dse.c: Do not include domwalk.h but cfganal.h.
12782 (dse_dom_walker): Remove.
12783 (dse_dom_walker::dse_optimize_stmt): Rename...
12784 (dse_optimize_stmt): ... to this, pass in live_bytes sbitmap.
12785 (dse_dom_walker::before_dom_children): Inline ...
12786 (pass_dse::execute): ... here. Perform a reverse program
12787 order walk.
12788
12789 2021-05-03 H.J. Lu <hjl.tools@gmail.com>
12790
12791 PR bootstrap/99703
12792 * configure: Regenerated.
12793
12794 2021-05-03 Ilya Leoshkevich <iii@linux.ibm.com>
12795
12796 PR target/100217
12797 * config/s390/s390.c (s390_hard_fp_reg_p): New function.
12798 (s390_md_asm_adjust): Handle hard registers.
12799
12800 2021-05-03 Jakub Jelinek <jakub@redhat.com>
12801
12802 PR tree-optimization/100382
12803 * tree-ssa-dse.c: Include tree-eh.h.
12804 (dse_dom_walker::before_dom_children): Don't remove stmts if
12805 stmt_unremovable_because_of_non_call_eh_p is true.
12806
12807 2021-05-02 David Edelsohn <dje.gcc@gmail.com>
12808
12809 * varasm.c (compute_reloc_for_var): Split out from...
12810 (get_variable_section): Use it.
12811 * output.h (compute_reloc_for_var): Declare.
12812 * config/rs6000/rs6000-protos.h
12813 (rs6000_xcoff_asm_output_aligned_decl_common): Change alignment to
12814 unsigned int.
12815 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address_aix):
12816 Don't append storage mapping class to symbol.
12817 (rs6000_xcoff_asm_named_section): Add BS and UL mapping classes.
12818 Don't convert TLS BSS to common.
12819 (rs6000_xcoff_unique_section): Don't fall back to select_secton.
12820 (rs6000_xcoff_section_type_flags): Add SECTION_BSS if DECL is
12821 bss_initializer.
12822 (rs6000_xcoff_asm_globalize_decl_name): Don't strip storage
12823 mapping class.
12824 (rs6000_xcoff_asm_output_aligned_decl_common): Align is unsigned int.
12825 If align is 0 from TLS class, use the same rules as varasm.c
12826 If not common, switch to BSS section manually.
12827 If common, emit appropriate comm or lcomm directive.
12828 (rs6000_xcoff_encode_section_info): Add logic to append all
12829 storage mapping classes.
12830 (rs6000_asm_weaken_decl): Adjust for qualname symbols.
12831 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
12832 rs6000_xcoff_asm_output_aligned_decl_common.
12833 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
12834 rs6000_xcoff_asm_output_aligned_decl_common.
12835 (ASM_OUTPUT_TLS_COMMON): Use
12836 rs6000_xcoff_asm_output_aligned_decl_common.
12837
12838 2021-05-02 Jakub Jelinek <jakub@redhat.com>
12839
12840 PR target/100375
12841 * config/nvptx/nvptx.c (nvptx_sese_pseudo): Use nullptr instead of 0
12842 as first argument of pseudo_node_t constructors.
12843
12844 2021-05-02 Jakub Jelinek <jakub@redhat.com>
12845
12846 PR target/100336
12847 * config/i386/t-i386 (TM_H): Add $(srcdir)/config/i386/i386-isa.def.
12848
12849 2021-05-01 Aldy Hernandez <aldyh@redhat.com>
12850
12851 * value-range.cc (DEFINE_INT_RANGE_GC_STUBS): Remove.
12852 (gt_pch_nx (int_range<1> *&)): New.
12853 (gt_ggc_mx (int_range<1> *&)): New.
12854 * value-range.h (class irange): Add GTY support for
12855 the base class.
12856
12857 2021-05-01 Geng Qi <gengqi@linux.alibaba.com>
12858
12859 * doc/options.texi (Negative): Change either or to both and.
12860
12861 2021-04-30 Jonathan Wright <jonathan.wright@arm.com>
12862
12863 * config/aarch64/aarch64-simd-builtins.def: Add
12864 float_ml[as][q]_laneq builtin generator macros.
12865 * config/aarch64/aarch64-simd.md (mul_laneq<mode>3): Define.
12866 (aarch64_float_mla_laneq<mode>): Define.
12867 (aarch64_float_mls_laneq<mode>): Define.
12868 * config/aarch64/arm_neon.h (vmla_laneq_f32): Use RTL builtin
12869 instead of GCC vector extensions.
12870 (vmlaq_laneq_f32): Likewise.
12871 (vmls_laneq_f32): Likewise.
12872 (vmlsq_laneq_f32): Likewise.
12873
12874 2021-04-30 Jonathan Wright <jonathan.wright@arm.com>
12875
12876 * config/aarch64/aarch64-simd-builtins.def: Add
12877 float_ml[as]_lane builtin generator macros.
12878 * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt<mode>):
12879 Rename to...
12880 (mul_lane<mode>3): This, and re-order arguments.
12881 (aarch64_float_mla_lane<mode>): Define.
12882 (aarch64_float_mls_lane<mode>): Define.
12883 * config/aarch64/arm_neon.h (vmla_lane_f32): Use RTL builtin
12884 instead of GCC vector extensions.
12885 (vmlaq_lane_f32): Likewise.
12886 (vmls_lane_f32): Likewise.
12887 (vmlsq_lane_f32): Likewise.
12888
12889 2021-04-30 Jonathan Wright <jonathan.wright@arm.com>
12890
12891 * config/aarch64/aarch64-simd-builtins.def: Add float_ml[as]
12892 builtin generator macros.
12893 * config/aarch64/aarch64-simd.md (aarch64_float_mla<mode>):
12894 Define.
12895 (aarch64_float_mls<mode>): Define.
12896 * config/aarch64/arm_neon.h (vmla_f32): Use RTL builtin
12897 instead of relying on GCC vector extensions.
12898 (vmla_f64): Likewise.
12899 (vmlaq_f32): Likewise.
12900 (vmlaq_f64): Likewise.
12901 (vmls_f32): Likewise.
12902 (vmls_f64): Likewise.
12903 (vmlsq_f32): Likewise.
12904 (vmlsq_f64): Likewise.
12905 * config/aarch64/iterators.md: Define VDQF_DF mode iterator.
12906
12907 2021-04-30 Jonathan Wright <jonathan.wright@arm.com>
12908
12909 * config/aarch64/aarch64-simd-builtins.def: Add
12910 float_ml[as]_n_builtin generator macros.
12911 * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_from_dup<mode>):
12912 Rename to...
12913 (mul_n<mode>3): This, and re-order arguments.
12914 (aarch64_float_mla_n<mode>): Define.
12915 (aarch64_float_mls_n<mode>): Define.
12916 * config/aarch64/arm_neon.h (vmla_n_f32): Use RTL builtin
12917 instead of inline asm.
12918 (vmlaq_n_f32): Likewise.
12919 (vmls_n_f32): Likewise.
12920 (vmlsq_n_f32): Likewise.
12921
12922 2021-04-30 Jonathan Wright <joanthan.wright@arm.com>
12923
12924 * config/aarch64/aarch64-simd-builtins.def: Add pmull[2]
12925 builtin generator macros.
12926 * config/aarch64/aarch64-simd.md (aarch64_pmullv8qi): Define.
12927 (aarch64_pmull_hiv16qi_insn): Define.
12928 (aarch64_pmull_hiv16qi): Define.
12929 * config/aarch64/arm_neon.h (vmull_high_p8): Use RTL builtin
12930 instead of inline asm.
12931 (vmull_p8): Likewise.
12932
12933 2021-04-30 Senthil Kumar Selvaraj <saaadhu@gcc.gnu.org>
12934
12935 * config/avr/avr.md: Adjust peepholes to match and
12936 generate parallels with clobber of REG_CC.
12937 (mov<mode>_insn): Rename to mov<mode>_insn_split.
12938 (*mov<mode>_insn): Rename to mov<mode>_insn.
12939
12940 2021-04-30 David Edelsohn <dje.gcc@gmail.com>
12941
12942 * varasm.c (use_blocks_for_decl_p): Don't use section anchors
12943 for VAR_DECLs if -fdata-sections enabled.
12944
12945 2021-04-30 Michael Meissner <meissner@linux.ibm.com>
12946
12947 PR bootstrap/100327
12948 * config/rs6000/rs6000.c
12949 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Define.
12950 (rs6000_libgcc_floating_mode_supported_p): New target hook.
12951
12952 2021-04-30 Aldy Hernandez <aldyh@redhat.com>
12953
12954 * tree-ssa-threadbackward.c (class thread_jumps): Split out code
12955 from here...
12956 (class back_threader_registry): ...to here...
12957 (class back_threader_profitability): ...and here...
12958 (thread_jumps::thread_through_all_blocks): Remove argument.
12959 (back_threader_registry::back_threader_registry): New.
12960 (back_threader_registry::~back_threader_registry): New.
12961 (back_threader_registry::thread_through_all_blocks): New.
12962 (thread_jumps::profitable_jump_thread_path): Move from here...
12963 (back_threader_profitability::profitable_path_p): ...to here.
12964 (thread_jumps::find_taken_edge): New.
12965 (thread_jumps::convert_and_register_current_path): Move...
12966 (back_threader_registry::register_path): ...to here.
12967 (thread_jumps::register_jump_thread_path_if_profitable): Move...
12968 (thread_jumps::maybe_register_path): ...to here.
12969 (thread_jumps::handle_phi): Call find_taken_edge and
12970 maybe_register_path.
12971 (thread_jumps::handle_assignment): Same.
12972 (thread_jumps::fsm_find_control_statement_thread_paths): Remove
12973 tree argument to handle_phi and handle_assignment.
12974 (thread_jumps::find_jump_threads_backwards): Set m_name. Remove
12975 set of m_speed_p and m_max_threaded_paths.
12976 (pass_thread_jumps::execute): Remove second argument from
12977 find_jump_threads_backwards.
12978 (pass_early_thread_jumps::execute): Same.
12979
12980 2021-04-30 Aldy Hernandez <aldyh@redhat.com>
12981
12982 * tree-ssa-dom.c (class dom_jump_threader_simplifier): New.
12983 (class dom_opt_dom_walker): Initialize some class variables.
12984 (pass_dominator::execute): Pass evrp_range_analyzer and
12985 dom_jump_threader_simplifier to dom_opt_dom_walker.
12986 Adjust for some functions moving into classes.
12987 (simplify_stmt_for_jump_threading): Adjust and move to...
12988 (jump_threader_simplifier::simplify): ...here.
12989 (dom_opt_dom_walker::before_dom_children): Adjust for
12990 m_evrp_range_analyzer.
12991 (dom_opt_dom_walker::after_dom_children): Remove x_vr_values hack.
12992 (test_for_singularity): Place in dom_opt_dom_walker class.
12993 (dom_opt_dom_walker::optimize_stmt): The argument
12994 evrp_range_analyzer is now a class field.
12995 * tree-ssa-threadbackward.c (class thread_jumps): Add m_registry.
12996 (thread_jumps::thread_through_all_blocks): New.
12997 (thread_jumps::convert_and_register_current_path): Use m_registry.
12998 (pass_thread_jumps::execute): Adjust for thread_through_all_blocks
12999 being in the threader class.
13000 (pass_early_thread_jumps::execute): Same.
13001 * tree-ssa-threadedge.c (threadedge_initialize_values): Move...
13002 (jump_threader::jump_threader): ...here.
13003 (threadedge_finalize_values): Move...
13004 (jump_threader::~jump_threader): ...here.
13005 (jump_threader::remove_jump_threads_including): New.
13006 (jump_threader::thread_through_all_blocks): New.
13007 (record_temporary_equivalences_from_phis): Move...
13008 (jump_threader::record_temporary_equivalences_from_phis): ...here.
13009 (record_temporary_equivalences_from_stmts_at_dest): Move...
13010 (jump_threader::record_temporary_equivalences_from_stmts_at_dest):
13011 Here...
13012 (simplify_control_stmt_condition_1): Move to jump_threader class.
13013 (simplify_control_stmt_condition): Move...
13014 (jump_threader::simplify_control_stmt_condition): ...here.
13015 (thread_around_empty_blocks): Move...
13016 (jump_threader::thread_around_empty_blocks): ...here.
13017 (thread_through_normal_block): Move...
13018 (jump_threader::thread_through_normal_block): ...here.
13019 (thread_across_edge): Move...
13020 (jump_threader::thread_across_edge): ...here.
13021 (thread_outgoing_edges): Move...
13022 (jump_threader::thread_outgoing_edges): ...here.
13023 * tree-ssa-threadedge.h: Move externally facing functings...
13024 (class jump_threader): ...here...
13025 (class jump_threader_simplifier): ...and here.
13026 * tree-ssa-threadupdate.c (struct redirection_data): Remove comment.
13027 (jump_thread_path_allocator::jump_thread_path_allocator): New.
13028 (jump_thread_path_allocator::~jump_thread_path_allocator): New.
13029 (jump_thread_path_allocator::allocate_thread_edge): New.
13030 (jump_thread_path_allocator::allocate_thread_path): New.
13031 (jump_thread_path_registry::jump_thread_path_registry): New.
13032 (jump_thread_path_registry::~jump_thread_path_registry): New.
13033 (jump_thread_path_registry::allocate_thread_edge): New.
13034 (jump_thread_path_registry::allocate_thread_path): New.
13035 (dump_jump_thread_path): Make extern.
13036 (debug (const vec<jump_thread_edge *> &path)): New.
13037 (struct removed_edges): Move to tree-ssa-threadupdate.h.
13038 (struct thread_stats_d): Remove.
13039 (remove_ctrl_stmt_and_useless_edges): Make static.
13040 (lookup_redirection_data): Move...
13041 (jump_thread_path_registry::lookup_redirection_data): ...here.
13042 (ssa_redirect_edges): Make static.
13043 (thread_block_1): Move...
13044 (jump_thread_path_registry::thread_block_1): ...here.
13045 (thread_block): Move...
13046 (jump_thread_path_registry::thread_block): ...here.
13047 (thread_through_loop_header): Move...
13048 (jump_thread_path_registry::thread_through_loop_header): ...here.
13049 (mark_threaded_blocks): Move...
13050 (jump_thread_path_registry::mark_threaded_blocks): ...here.
13051 (debug_path): Move...
13052 (jump_thread_path_registry::debug_path): ...here.
13053 (debug_all_paths): Move...
13054 (jump_thread_path_registry::dump): ..here.
13055 (rewire_first_differing_edge): Move...
13056 (jump_thread_path_registry::rewire_first_differing_edge): ...here.
13057 (adjust_paths_after_duplication): Move...
13058 (jump_thread_path_registry::adjust_paths_after_duplication): ...here.
13059 (duplicate_thread_path): Move...
13060 (jump_thread_path_registry::duplicate_thread_path): ..here.
13061 (remove_jump_threads_including): Move...
13062 (jump_thread_path_registry::remove_jump_threads_including): ...here.
13063 (thread_through_all_blocks): Move to...
13064 (jump_thread_path_registry::thread_through_all_blocks): ...here.
13065 (delete_jump_thread_path): Remove.
13066 (register_jump_thread): Move...
13067 (jump_thread_path_registry::register_jump_thread): ...here.
13068 * tree-ssa-threadupdate.h: Move externally facing functions...
13069 (class jump_thread_path_allocator): ...here...
13070 (class jump_thread_path_registry): ...and here.
13071 (thread_through_all_blocks): Remove.
13072 (struct removed_edges): New.
13073 (register_jump_thread): Remove.
13074 (remove_jump_threads_including): Remove.
13075 (delete_jump_thread_path): Remove.
13076 (remove_ctrl_stmt_and_useless_edges): Remove.
13077 (free_dom_edge_info): New prototype.
13078 * tree-vrp.c: Remove x_vr_values hack.
13079 (class vrp_jump_threader_simplifier): New.
13080 (vrp_jump_threader_simplifier::simplify): New.
13081 (vrp_jump_threader::vrp_jump_threader): Adjust method signature.
13082 Remove m_dummy_cond.
13083 Instantiate m_simplifier and m_threader.
13084 (vrp_jump_threader::thread_through_all_blocks): New.
13085 (vrp_jump_threader::simplify_stmt): Remove.
13086 (vrp_jump_threader::after_dom_children): Do not set m_dummy_cond.
13087 Remove x_vr_values hack.
13088 (execute_vrp): Adjust for thread_through_all_blocks being in a
13089 class.
13090
13091 2021-04-30 Christophe Lyon <christophe.lyon@linaro.org>
13092
13093 * genflags.c (gen_insn): Print failed expansion string.
13094
13095 2021-04-30 H.J. Lu <hjl.tools@gmail.com>
13096
13097 * expr.c (alignment_for_piecewise_move): Call mode_for_size
13098 without limit to MAX_FIXED_MODE_SIZE.
13099
13100 2021-04-30 H.J. Lu <hjl.tools@gmail.com>
13101
13102 PR middle-end/90773
13103 * builtins.c (builtin_memset_gen_str): Don't use return from
13104 simplify_gen_subreg.
13105
13106 2021-04-30 Uroš Bizjak <ubizjak@gmail.com>
13107
13108 PR target/98060
13109 * config/i386/i386.md (*add<mode>3_carry_0r): New insn pattern.
13110 (*addsi3_carry_zext_0r): Ditto.
13111 (*sub<mode>3_carry_0): Ditto.
13112 (*subsi3_carry_zext_0r): Ditto.
13113 * config/i386/predicates.md (ix86_carry_flag_unset_operator):
13114 New predicate.
13115 * config/i386/i386.c (ix86_rtx_costs) <case PLUS, case MINUS>:
13116 Also consider ix86_carry_flag_unset_operator to calculate
13117 the cost of adc/sbb insn.
13118
13119 2021-04-30 Roman Zhuykov <zhroma@ispras.ru>
13120
13121 PR rtl-optimization/100225
13122 PR rtl-optimization/84878
13123 * modulo-sched.c (sms_schedule): Use note_stores to skip loops
13124 where we have an instruction which touches (writes) any hard
13125 register from df->regular_block_artificial_uses set.
13126 Allow not-single-set instruction only right before basic block
13127 tail.
13128
13129 2021-04-30 Geng Qi <gengqi@linux.alibaba.com>
13130
13131 * config/riscv/riscv.opt (march=,mabi=): Negative itself.
13132
13133 2021-04-30 LevyHsu <admin@levyhsu.com>
13134
13135 * config/riscv/riscv.c (riscv_min_arithmetic_precision): New.
13136 * config/riscv/riscv.h (TARGET_MIN_ARITHMETIC_PRECISION): New.
13137 * config/riscv/riscv.md (addv<mode>4, uaddv<mode>4): New.
13138 (subv<mode>4, usubv<mode>4, mulv<mode>4, umulv<mode>4): New.
13139
13140 2021-04-29 Alexandre Oliva <oliva@adacore.com>
13141
13142 * config.gcc: Merged x86 and x86_64 cpu_type-setting cases.
13143
13144 2021-04-29 Alexandre Oliva <oliva@adacore.com>
13145
13146 * config/i386/i386.h (ASM_OUTPUT_MAX_SKIP_PAD): Rename to...
13147 (ASM_OUTPUT_MAX_SKIP_ALIGN): ... this. Enclose in do/while(0).
13148 * config/i386/i386.c: Adjust.
13149 * config/i386/i386.md: Adjust.
13150 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Drop.
13151 * config/i386/dragonfly.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
13152 * config/i386/freebsd.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
13153 * config/i386/gas.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
13154 * config/i386/gnu-user.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
13155 * config/i386/iamcu.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
13156 * config/i386/lynx.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
13157 * config/i386/netbsd-elf.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
13158 * config/i386/openbsdelf.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
13159 * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
13160 (ASM_OUTPUT_MAX_SKIP_PAD): Likewise.
13161
13162 2021-04-29 Uroš Bizjak <ubizjak@gmail.com>
13163
13164 * config/i386/i386-expand.c (ix86_expand_int_compare):
13165 Swap operands of GTU and LEU comparison to emit carry flag comparison.
13166 * config/i386/i386.md (*add<mode>3_carry_0): Change insn
13167 predicate to allow more combine opportunities with memory operands.
13168 (*sub<mode>3_carry_0): Ditto.
13169
13170 2021-04-29 Richard Sandiford <richard.sandiford@arm.com>
13171
13172 PR rtl-optimization/100303
13173 * rtl-ssa/accesses.cc (function_info::make_use_available): Take a
13174 boolean that indicates whether the use will only be used in
13175 debug instructions. Treat it in the same way that existing
13176 cross-EBB debug references would be handled if so.
13177 (function_info::make_uses_available): Likewise.
13178 * rtl-ssa/functions.h (function_info::make_uses_available): Update
13179 prototype accordingly.
13180 (function_info::make_uses_available): Likewise.
13181 * fwprop.c (try_fwprop_subst): Update call accordingly.
13182
13183 2021-04-29 Jeff Law <jlaw@tachyum.com>
13184
13185 * config/nios2/nios2-protos.h (nios2_fpu_insn_enabled): Move outside
13186 of RTX_CODE guard.
13187
13188 2021-04-29 Uroš Bizjak <ubizjak@gmail.com>
13189 Richard Biener <rguenther@suse.de>
13190
13191 PR target/100312
13192 * config/i386/i386-builtin.def (IX86_BUILTIN_MASKLOADPD)
13193 (IX86_BUILTIN_MASKLOADPS, IX86_BUILTIN_MASKLOADPD256)
13194 (IX86_BUILTIN_MASKLOADPS256, IX86_BUILTIN_MASKLOADD)
13195 (IX86_BUILTIN_MASKLOADQ, IX86_BUILTIN_MASKLOADD256)
13196 (IX86_BUILTIN_MASKLOADQ256): Move from SPECIAL_ARGS
13197 to PURE_ARGS category.
13198 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
13199 Handle PURE_ARGS category.
13200 * config/i386/i386-expand.c (ix86_expand_builtin): Ditto.
13201
13202 2021-04-29 Eric Botcazou <ebotcazou@adacore.com>
13203
13204 * configure.ac: Check for the presence of sys/locking.h header and
13205 for whether _LK_LOCK is supported by _locking.
13206 * configure: Regenerate.
13207 * config.in: Likewise.
13208 * gcov-io.h: Define GCOV_LOCKED_WITH_LOCKING if HOST_HAS_LK_LOCK.
13209 * gcov-io.c (gcov_open): Add support for GCOV_LOCKED_WITH_LOCKING.
13210 * system.h: Include <sys/locking.h> if HAVE_SYS_LOCKING_H.
13211
13212 2021-04-29 Uroš Bizjak <ubizjak@gmail.com>
13213
13214 * config/i386/predicates.md (fcmov_comparison_operator):
13215 Do not check for trivial FP comparison operator.
13216 <case GEU, case LTU>: Allow CCGZmode.
13217 <case GTU, case LEU>: Do not allow CCCmode.
13218 (ix86_comparison_operator) <case GTU, case LEU>: Allow only CCmode.
13219 (ix86_carry_flag_operator): Match only LTU and UNLT code.
13220 Do not check for trivial FP comparison operator. Allow CCGZmode.
13221
13222 2021-04-29 Tom de Vries <tdevries@suse.de>
13223
13224 * omp-expand.c (expand_omp_simd): Add step_orig, and replace uses of
13225 fd->loop.step by either step or orig_step.
13226
13227 2021-04-29 Eric Botcazou <ebotcazou@adacore.com>
13228
13229 * config/sparc/sparc.c (gen_load_pcrel_sym): Delete.
13230 (load_got_register): Do the PIC dance here.
13231 (sparc_legitimize_tls_address): Simplify.
13232 (sparc_emit_probe_stack_range): Likewise.
13233 (sparc32_initialize_trampoline): Likewise.
13234 (sparc64_initialize_trampoline): Likewise.
13235 * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Add @ marker.
13236 (probe_stack_range<P:mode>): Likewise.
13237 (flush<P:mode>): Likewise.
13238 (tgd_hi22<P:mode>): Likewise.
13239 (tgd_lo10<P:mode>): Likewise.
13240 (tgd_add<P:mode>): Likewise.
13241 (tgd_call<P:mode>): Likewise.
13242 (tldm_hi22<P:mode>): Likewise.
13243 (tldm_lo10<P:mode>): Likewise.
13244 (tldm_add<P:mode>): Likewise.
13245 (tldm_call<P:mode>): Likewise.
13246 (tldo_hix22<P:mode>): Likewise.
13247 (tldo_lox10<P:mode>): Likewise.
13248 (tldo_add<P:mode>): Likewise.
13249 (tie_hi22<P:mode>): Likewise.
13250 (tie_lo10<P:mode>): Likewise.
13251 (tie_add<P:mode>): Likewise.
13252 (tle_hix22<P:mode>): Likewise.
13253 (tle_lox10<P:mode>): Likewise.
13254 (stack_protect_setsi): Rename to...
13255 (stack_protect_set32): ...this.
13256 (stack_protect_setdi): Rename to...
13257 (stack_protect_set64): ...this.
13258 (stack_protect_set): Adjust calls to above.
13259 (stack_protect_testsi): Rename to...
13260 (stack_protect_test32): ...this.
13261 (stack_protect_testdi): Rename to...
13262 (stack_protect_test64): ...this.
13263 (stack_protect_test): Adjust calls to above.
13264
13265 2021-04-29 H.J. Lu <hjl.tools@gmail.com>
13266
13267 PR middle-end/90773
13268 * builtins.c (builtin_memcpy_read_str): Add a dummy argument.
13269 (builtin_strncpy_read_str): Likewise.
13270 (builtin_memset_read_str): Add an argument for the previous RTL
13271 information and generate the new RTL from the previous RTL info.
13272 (builtin_memset_gen_str): Likewise.
13273 * builtins.h (builtin_strncpy_read_str): Update the prototype.
13274 (builtin_memset_read_str): Likewise.
13275 * expr.c (by_pieces_ninsns): If targetm.overlap_op_by_pieces_p()
13276 returns true, round up size and alignment to the widest integer
13277 mode for maximum size.
13278 (pieces_addr::adjust): Add a pointer to by_pieces_prev argument
13279 and pass it to m_constfn.
13280 (op_by_pieces_d): Add m_push and m_overlap_op_by_pieces.
13281 (op_by_pieces_d::op_by_pieces_d): Add a bool argument to
13282 initialize m_push. Initialize m_overlap_op_by_pieces with
13283 targetm.overlap_op_by_pieces_p ().
13284 (op_by_pieces_d::run): Pass the previous RTL information to
13285 pieces_addr::adjust and generate overlapping operations if
13286 m_overlap_op_by_pieces is true.
13287 (PUSHG_P): New.
13288 (move_by_pieces_d::move_by_pieces_d): Updated for op_by_pieces_d
13289 change.
13290 (store_by_pieces_d::store_by_pieces_d): Updated for op_by_pieces_d
13291 change.
13292 (can_store_by_pieces): Use by_pieces_constfn on constfun.
13293 (store_by_pieces): Use by_pieces_constfn on constfun. Updated
13294 for op_by_pieces_d change.
13295 (clear_by_pieces_1): Add a dummy argument.
13296 (clear_by_pieces): Updated for op_by_pieces_d change.
13297 (compare_by_pieces_d::compare_by_pieces_d): Likewise.
13298 (string_cst_read_str): Add a dummy argument.
13299 * expr.h (by_pieces_constfn): Add a dummy argument.
13300 (by_pieces_prev): New.
13301 * target.def (overlap_op_by_pieces_p): New target hook.
13302 * config/i386/i386.c (TARGET_OVERLAP_OP_BY_PIECES_P): New.
13303 * doc/tm.texi.in: Add TARGET_OVERLAP_OP_BY_PIECES_P.
13304 * doc/tm.texi: Regenerated.
13305
13306 2021-04-29 Richard Biener <rguenther@suse.de>
13307
13308 PR tree-optimization/100253
13309 * tree-vect-stmts.c (vectorizable_load): Do not assume
13310 element alignment when DR_MISALIGNMENT is -1.
13311 (vectorizable_store): Likewise.
13312
13313 2021-04-29 Jakub Jelinek <jakub@redhat.com>
13314
13315 PR target/100302
13316 * config/aarch64/aarch64.c (aarch64_add_offset_1_temporaries): Use
13317 absu_hwi instead of abs_hwi.
13318
13319 2021-04-29 Richard Biener <rguenther@suse.de>
13320
13321 PR middle-end/38474
13322 * tree-ssa-structalias.c (add_graph_edge): Avoid direct
13323 forwarding when indirect forwarding through ESCAPED
13324 alread happens.
13325
13326 2021-04-29 Tom de Vries <tdevries@suse.de>
13327
13328 PR target/100232
13329 * internal-fn.c (expand_GOMP_SIMT_ENTER_ALLOC)
13330 (expand_GOMP_SIMT_LAST_LANE, expand_GOMP_SIMT_ORDERED_PRED)
13331 (expand_GOMP_SIMT_VOTE_ANY, expand_GOMP_SIMT_XCHG_BFLY)
13332 (expand_GOMP_SIMT_XCHG_IDX): Ensure target is assigned to.
13333
13334 2021-04-29 Richard Biener <rguenther@suse.de>
13335
13336 PR tree-optimization/99912
13337 * tree-ssa-dse.c (dse_dom_walker::m_need_cfg_cleanup): New.
13338 (dse_dom_walker::todo): Likewise.
13339 (dse_dom_walker::dse_optimize_stmt): Move VDEF check to the
13340 caller.
13341 (dse_dom_walker::before_dom_children): Remove trivially
13342 dead SSA defs and schedule CFG cleanup if we removed all
13343 PHIs in a block.
13344 (pass_dse::execute): Get TODO as computed by the DOM walker
13345 and return it. Wipe dominator info earlier.
13346
13347 2021-04-29 Richard Biener <rguenther@suse.de>
13348
13349 PR ipa/100308
13350 * ipa-prop.c (ipcp_modif_dom_walker::before_dom_children):
13351 Track blocks to cleanup EH in new m_need_eh_cleanup.
13352 (ipcp_modif_dom_walker::cleanup_eh): New.
13353 (ipcp_transform_function): Release dominator info before
13354 doing EH cleanup.
13355
13356 2021-04-29 Martin Sebor <msebor@redhat.com>
13357
13358 PR middle-end/100250
13359 * attribs.c (attr_access::array_as_string): Avoid dereferencing
13360 a pointer when it's null.
13361
13362 2021-04-29 Martin Sebor <msebor@redhat.com>
13363
13364 * Makefile.in (OBJS): Add ipa-free-lang-data.o.
13365 * ipa-free-lang-data.cc: New file.
13366 * tree.c: Move pass free_lang_data to file above.
13367 (build_array_type_1): Declare extern.
13368 * tree.h (build_array_type_1): Declare.
13369
13370 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
13371
13372 * config/aarch64/aarch64-simd-builtins.def: Modify comment to
13373 make consistent with updated RTL pattern.
13374 * config/aarch64/aarch64-simd.md (aarch64_<sur>qmovn<mode>):
13375 Implement using ss_truncate and us_truncate rather than
13376 unspecs.
13377 * config/aarch64/iterators.md: Remove redundant unspecs and
13378 iterator: UNSPEC_[SU]QXTN and SUQMOVN respectively.
13379
13380 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
13381
13382 * config/aarch64/arm_acle.h (__attribute__): Make intrinsic
13383 attributes consistent with those defined in arm_neon.h.
13384
13385 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
13386
13387 * config/aarch64/arm_fp16.h (__attribute__): Make intrinsic
13388 attributes consistent with those defined in arm_neon.h.
13389
13390 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
13391
13392 * config/aarch64/aarch64-simd-builtins.def: Add
13393 float_trunc_rodd builtin generator macros.
13394 * config/aarch64/aarch64-simd.md (aarch64_float_trunc_rodd_df):
13395 Define.
13396 (aarch64_float_trunc_rodd_lo_v2sf): Define.
13397 (aarch64_float_trunc_rodd_hi_v4sf_le): Define.
13398 (aarch64_float_trunc_rodd_hi_v4sf_be): Define.
13399 (aarch64_float_trunc_rodd_hi_v4sf): Define.
13400 * config/aarch64/arm_neon.h (vcvtx_f32_f64): Use RTL builtin
13401 instead of inline asm.
13402 (vcvtx_high_f32_f64): Likewise.
13403 (vcvtxd_f32_f64): Likewise.
13404 * config/aarch64/iterators.md: Add FCVTXN unspec.
13405
13406 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
13407
13408 * config/aarch64/aarch64-simd-builtins.def: Add tbx1 builtin
13409 generator macros.
13410 * config/aarch64/aarch64-simd.md (aarch64_tbx1<mode>):
13411 Define.
13412 * config/aarch64/arm_neon.h (vqtbx1_s8): USE RTL builtin
13413 instead of inline asm.
13414 (vqtbx1_u8): Likewise.
13415 (vqtbx1_p8): Likewise.
13416 (vqtbx1q_s8): Likewise.
13417 (vqtbx1q_u8): Likewise.
13418 (vqtbx1q_p8): Likewise.
13419 (vtbx2_s8): Likewise.
13420 (vtbx2_u8): Likewise.
13421 (vtbx2_p8): Likewise.
13422
13423 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
13424
13425 * config/aarch64/aarch64-simd-builtins.def: Add tbl1 builtin
13426 generator macros.
13427 * config/aarch64/arm_neon.h (vqtbl1_p8): Use RTL builtin
13428 instead of inline asm.
13429 (vqtbl1_s8): Likewise.
13430 (vqtbl1_u8): Likewise.
13431 (vqtbl1q_p8): Likewise.
13432 (vqtbl1q_s8): Likewise.
13433 (vqtbl1q_u8): Likewise.
13434 (vtbl1_s8): Likewise.
13435 (vtbl1_u8): Likewise.
13436 (vtbl1_p8): Likewise.
13437 (vtbl2_s8): Likewise.
13438 (vtbl2_u8): Likewise.
13439 (vtbl2_p8): Likewise.
13440
13441 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
13442
13443 * config/aarch64/aarch64-simd-builtins.def: Add polynomial
13444 ssri_n buitin generator macro.
13445 * config/aarch64/arm_neon.h (vsri_n_p8): Use RTL builtin
13446 instead of inline asm.
13447 (vsri_n_p16): Likewise.
13448 (vsri_n_p64): Likewise.
13449 (vsriq_n_p8): Likewise.
13450 (vsriq_n_p16): Likewise.
13451 (vsriq_n_p64): Likewise.
13452
13453 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
13454
13455 * config/aarch64/aarch64-simd-builtins.def: Use VALLP mode
13456 iterator for polynomial ssli_n builtin generator macro.
13457 * config/aarch64/arm_neon.h (vsli_n_p8): Use RTL builtin
13458 instead of inline asm.
13459 (vsli_n_p16): Likewise.
13460 (vsliq_n_p8): Likewise.
13461 (vsliq_n_p16): Likewise.
13462 * config/aarch64/iterators.md: Define VALLP mode iterator.
13463
13464 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
13465
13466 * config/aarch64/aarch64-simd-builtins.def: Use VDQV_L
13467 iterator to generate [su]adalp RTL builtins.
13468 * config/aarch64/aarch64-simd.md: Use VDQV_L iterator in
13469 [su]adalp RTL pattern.
13470 * config/aarch64/arm_neon.h (vpadal_s32): Use RTL builtin
13471 instead of inline asm.
13472 (vpadal_u32): Likewise.
13473
13474 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
13475
13476 * config/aarch64/aarch64-simd-builtins.def: Add [su]addlp
13477 builtin generator macros.
13478 * config/aarch64/aarch64-simd.md (aarch64_<su>addlp<mode>):
13479 Define.
13480 * config/aarch64/arm_neon.h (vpaddl_s8): Use RTL builtin
13481 instead of inline asm.
13482 (vpaddl_s16): Likewise.
13483 (vpaddl_s32): Likewise.
13484 (vpaddl_u8): Likewise.
13485 (vpaddl_u16): Likewise.
13486 (vpaddl_u32): Likewise.
13487 (vpaddlq_s8): Likewise.
13488 (vpaddlq_s16): Likewise.
13489 (vpaddlq_s32): Likewise.
13490 (vpaddlq_u8): Likewise.
13491 (vpaddlq_u16): Likewise.
13492 (vpaddlq_u32): Liwewise.
13493 * config/aarch64/iterators.md: Define [SU]ADDLP unspecs with
13494 appropriate attributes.
13495
13496 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
13497
13498 * config/aarch64/aarch64-simd-builtins.def: Use VDQ_I iterator
13499 for aarch64_addp<mode> builtin macro generator.
13500 * config/aarch64/aarch64-simd.md: Use VDQ_I iterator in
13501 aarch64_addp<mode> RTL pattern.
13502 * config/aarch64/arm_neon.h (vpaddq_s8): Use RTL builtin
13503 instead of inline asm.
13504 (vpaddq_s16): Likewise.
13505 (vpaddq_s32): Likewise.
13506 (vpaddq_s64): Likewise.
13507 (vpaddq_u8): Likewise.
13508 (vpaddq_u16): Likewise.
13509 (vpaddq_u32): Likewise.
13510 (vpaddq_u64): Likewise.
13511
13512 2021-04-28 Jonathan Wright <jonathan.wright@arm.com>
13513
13514 * config/aarch64/aarch64-simd-builtins.def: Add sq[r]dmulh_n
13515 builtin generator macros.
13516 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_n<mode>):
13517 Define.
13518 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Use RTL builtin
13519 instead of inline asm.
13520 (vqdmulh_n_s32): Likewise.
13521 (vqdmulhq_n_s16): Likewise.
13522 (vqdmulhq_n_s32): Likewise.
13523 (vqrdmulh_n_s16): Likewise.
13524 (vqrdmulh_n_s32): Likewise.
13525 (vqrdmulhq_n_s16): Likewise.
13526 (vqrdmulhq_n_s32): Likewise.
13527
13528 2021-04-28 Tobias Burnus <tobias@codesourcery.com>
13529
13530 * doc/install.texi (--enable-offload-defaulted): Document.
13531
13532 2021-04-28 Senthil Kumar Selvaraj <saaadhu@gcc.gnu.org>
13533
13534 * config/avr/avr-dimode.md: Turn existing patterns into
13535 define_insn_and_split style patterns where the splitter
13536 adds a clobber of the condition code register. Drop "cc"
13537 attribute. Add new patterns to match output of
13538 the splitters.
13539 * config/avr/avr-fixed.md: Likewise.
13540 * config/avr/avr.c (cc_reg_rtx): New.
13541 (avr_parallel_insn_from_insns): Adjust insn count
13542 for removal of set of cc0.
13543 (avr_is_casesi_sequence): Likewise.
13544 (avr_casei_sequence_check_operands): Likewise.
13545 (avr_optimize_casesi): Likewise. Also insert
13546 new insns after jump_insn.
13547 (avr_pass_casesi::avr_rest_of_handle_casesi): Adjust
13548 for removal of set of cc0.
13549 (avr_init_expanders): Initialize cc_reg_rtx.
13550 (avr_regno_reg_class): Handle REG_CC.
13551 (cond_string): Remove usage of CC_OVERFLOW_UNUSABLE.
13552 (avr_notice_update_cc): Remove function.
13553 (ret_cond_branch): Remove usage of CC_OVERFLOW_UNUSABLE.
13554 (compare_condition): Adjust for PARALLEL with
13555 REG_CC clobber.
13556 (out_shift_with_cnt): Likewise.
13557 (ashlhi3_out): Likewise.
13558 (ashrhi3_out): Likewise.
13559 (lshrhi3_out): Likewise.
13560 (avr_class_max_nregs): Return single reg for REG_CC.
13561 (avr_compare_pattern): Check for REG_CC instead
13562 of cc0_rtx.
13563 (avr_reorg_remove_redundant_compare): Likewise.
13564 (avr_reorg):Adjust for PARALLEL with REG_CC clobber.
13565 (avr_hard_regno_nregs): Return single reg for REG_CC.
13566 (avr_hard_regno_mode_ok): Allow only CCmode for REG_CC.
13567 (avr_md_asm_adjust): Clobber REG_CC.
13568 (TARGET_HARD_REGNO_NREGS): Define.
13569 (TARGET_CLASS_MAX_NREGS): Define.
13570 (TARGET_MD_ASM_ADJUST): Define.
13571 * config/avr/avr.h (FIRST_PSEUDO_REGISTER): Adjust
13572 for REG_CC.
13573 (enum reg_class): Add CC_REG class.
13574 (NOTICE_UPDATE_CC): Remove.
13575 (CC_OVERFLOW_UNUSABLE): Remove.
13576 (CC_NO_CARRY): Remove.
13577 * config/avr/avr.md: Turn existing patterns into
13578 define_insn_and_split style patterns where the splitter
13579 adds a clobber of the condition code register. Drop "cc"
13580 attribute. Add new patterns to match output of
13581 the splitters.
13582 (sez): Remove unused pattern.
13583
13584 2021-04-28 Richard Earnshaw <rearnsha@arm.com>
13585
13586 PR target/100311
13587 * config/arm/arm.c (arm_hard_regno_mode_ok): Only allow VPR to be
13588 used in HImode.
13589
13590 2021-04-28 Richard Sandiford <richard.sandiford@arm.com>
13591
13592 PR target/100305
13593 * config/aarch64/constraints.md (Utq): Require the address to
13594 be valid for both the element mode and for V2DImode.
13595
13596 2021-04-28 Jakub Jelinek <jakub@redhat.com>
13597 Tobias Burnus <tobias@codesourcery.com>
13598
13599 * configure.ac (OFFLOAD_DEFAULTED): AC_DEFINE if offload-defaulted.
13600 * gcc.c (process_command): New variable.
13601 (driver::maybe_putenv_OFFLOAD_TARGETS): If OFFLOAD_DEFAULTED,
13602 set it if -foffload is defaulted.
13603 * lto-wrapper.c (OFFLOAD_TARGET_DEFAULT_ENV): Define.
13604 (compile_offload_image): If OFFLOAD_DEFAULTED and
13605 OFFLOAD_TARGET_DEFAULT is in the environment, don't fail
13606 if corresponding mkoffload can't be found.
13607 (compile_images_for_offload_targets): Likewise. Free and clear
13608 offload_names if no valid offload is found.
13609 * config.in: Regenerate.
13610 * configure: Regenerate.
13611
13612 2021-04-28 Richard Biener <rguenther@suse.de>
13613
13614 PR tree-optimization/100292
13615 * tree-vect-generic.c (expand_vector_condition): Do not fold
13616 the comparisons.
13617
13618 2021-04-27 David Edelsohn <dje.gcc@gmail.com>
13619
13620 * config/rs6000/aix.h (SUBTARGET_DRIVER_SELF_SPECS): New.
13621 * config/rs6000/aix64.opt (m64): New.
13622 (m32): New.
13623
13624 2021-04-27 Maciej W. Rozycki <macro@orcam.me.uk>
13625
13626 * config/vax/vax.c (print_operand_address, vax_address_cost_1)
13627 (index_term_p): Handle ASHIFT too.
13628
13629 2021-04-27 Maciej W. Rozycki <macro@orcam.me.uk>
13630
13631 * config/vax/builtins.md (jbb<ccss>i<mode>): Remove operand #3.
13632 (sync_lock_test_and_set<mode>): Adjust accordingly.
13633 (sync_lock_release<mode>): Likewise.
13634
13635 2021-04-27 Maciej W. Rozycki <macro@orcam.me.uk>
13636
13637 * config/vax/vax-protos.h (adjacent_operands_p): Remove
13638 prototype.
13639 * config/vax/vax.c (adjacent_operands_p): Remove.
13640
13641 2021-04-27 Maciej W. Rozycki <macro@linux-mips.org>
13642
13643 * ifcvt.c (dead_or_predicable) [!IFCVT_MODIFY_TESTS]: Fall
13644 through to the non-conditional execution case if getting the
13645 condition for conditional execution has failed.
13646
13647 2021-04-27 Richard Sandiford <richard.sandiford@arm.com>
13648
13649 PR middle-end/100284
13650 * gimple.c (gimple_could_trap_p_1): Remove VEC_COND_EXPR test.
13651 * tree-eh.c (operation_could_trap_p): Handle VEC_COND_EXPR rather
13652 than asserting on it.
13653
13654 2021-04-27 David Edelsohn <dje.gcc@gmail.com>
13655
13656 * config/rs6000/rs6000.c (rs6000_aix_precompute_tls_p): Protect
13657 with TARGET_AIX_OS.
13658
13659 2021-04-27 David Edelsohn <dje.gcc@gmail.com>
13660
13661 PR target/94177
13662 * calls.c (precompute_register_parameters): Additionally test
13663 targetm.precompute_tls_p to pre-compute argument.
13664 * config/rs6000/aix.h (TARGET_PRECOMPUTE_TLS_P): Define.
13665 * config/rs6000/rs6000.c (rs6000_aix_precompute_tls_p): New.
13666 * target.def (precompute_tls_p): New.
13667 * doc/tm.texi.in (TARGET_PRECOMPUTE_TLS_P): Add hook documentation.
13668 * doc/tm.texi: Regenerated.
13669
13670 2021-04-27 Jakub Jelinek <jakub@redhat.com>
13671
13672 PR target/100200
13673 * config/aarch64/aarch64.c (aarch64_print_operand): Cast -UINTVAL
13674 back to HOST_WIDE_INT.
13675
13676 2021-04-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
13677
13678 PR target/100106
13679 * simplify-rtx.c (simplify_context::simplify_subreg): Check the
13680 memory alignment for the outer mode.
13681
13682 2021-04-27 H.J. Lu <hjl.tools@gmail.com>
13683
13684 PR middle-end/90773
13685 * expr.c (op_by_pieces_d::get_usable_mode): New member function.
13686 (op_by_pieces_d::run): Cange a while loop to a do-while loop.
13687
13688 2021-04-27 Alex Coplan <alex.coplan@arm.com>
13689
13690 PR target/99977
13691 * config/arm/arm.c (arm_split_compare_and_swap): Fix up codegen
13692 with negative immediates: ensure we expand cbranchsi4_scratch
13693 correctly and ensure we satisfy its constraints.
13694 * config/arm/sync.md
13695 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Don't
13696 attempt to tie two output operands together with constraints;
13697 collapse two alternatives.
13698 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise.
13699 * config/arm/thumb1.md (cbranchsi4_neg_late): New.
13700
13701 2021-04-27 Jakub Jelinek <jakub@redhat.com>
13702
13703 PR target/100200
13704 * config/aarch64/predicates.md (aarch64_sub_immediate,
13705 aarch64_plus_immediate): Use -UINTVAL instead of -INTVAL.
13706 * config/aarch64/aarch64.md (casesi, rotl<mode>3): Likewise.
13707 * config/aarch64/aarch64.c (aarch64_print_operand,
13708 aarch64_split_atomic_op, aarch64_expand_subvti): Likewise.
13709
13710 2021-04-27 Jakub Jelinek <jakub@redhat.com>
13711
13712 PR tree-optimization/100239
13713 * tree-vect-generic.c (lower_vec_perm): Don't accept constant
13714 permutations with all indices from the first zero element as vec_shl.
13715
13716 2021-04-27 Jakub Jelinek <jakub@redhat.com>
13717
13718 PR rtl-optimization/100254
13719 * cfgcleanup.c (outgoing_edges_match): Check REG_EH_REGION on
13720 last1 and last2 insns rather than BB_END (bb1) and BB_END (bb2) insns.
13721
13722 2021-04-27 Richard Biener <rguenther@suse.de>
13723
13724 PR tree-optimization/99912
13725 * passes.def: Add comment about new TODO_remove_unused_locals.
13726 * tree-stdarg.c (pass_data_stdarg): Run TODO_remove_unused_locals
13727 at start.
13728
13729 2021-04-27 Richard Biener <rguenther@suse.de>
13730
13731 PR tree-optimization/99912
13732 * passes.def (pass_all_optimizations): Add pass_dse before
13733 the first pass_dce, move the first pass_dse before the
13734 pass_dce following pass_pre.
13735
13736 2021-04-27 Jakub Jelinek <jakub@redhat.com>
13737
13738 PR tree-optimization/95527
13739 * generic-match-head.c: Include tm.h.
13740 * gimple-match-head.c: Include tm.h.
13741 * match.pd (CLZ == INTEGER_CST): Don't use
13742 #ifdef CLZ_DEFINED_VALUE_AT_ZERO, only test CLZ_DEFINED_VALUE_AT_ZERO
13743 if clz == CFN_CLZ. Add missing val declaration.
13744 (CTZ cmp CST): New simplifications.
13745
13746 2021-04-27 Jakub Jelinek <jakub@redhat.com>
13747
13748 PR tree-optimization/96696
13749 * expr.c (expand_expr_divmod): New function.
13750 (expand_expr_real_2) <case TRUNC_DIV_EXPR>: Use it for truncations and
13751 divisions. Formatting fixes.
13752 <case MULT_EXPR>: Optimize x / y * y as x - x % y if the latter is
13753 cheaper.
13754
13755 2021-04-27 Martin Jambor <mjambor@suse.cz>
13756
13757 PR ipa/99951
13758 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call):
13759 If removing a call statement LHS SSA name, release it.
13760
13761 2021-04-27 Richard Earnshaw <rearnsha@arm.com>
13762
13763 PR target/100236
13764 * config/arm/arm.c (THUMB2_WORK_REGS): Check PIC_OFFSET_TABLE_REGNUM
13765 is valid before including it in the mask.
13766
13767 2021-04-27 Richard Sandiford <richard.sandiford@arm.com>
13768
13769 PR target/100270
13770 * config/aarch64/aarch64.c (aarch64_comp_type_attributes): Handle
13771 SVE attributes.
13772
13773 2021-04-27 Richard Biener <rguenther@suse.de>
13774
13775 PR tree-optimization/100051
13776 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Add
13777 disambiguator based on access size vs. decl size.
13778
13779 2021-04-27 Richard Biener <rguenther@suse.de>
13780
13781 PR tree-optimization/100278
13782 * tree-ssa-pre.c (compute_avail): Give up when we cannot
13783 adjust TBAA beacuse of mismatching bases.
13784
13785 2021-04-27 Jakub Jelinek <jakub@redhat.com>
13786
13787 PR target/99405
13788 * config/i386/i386.md (*<insn><mode>3_mask, *<insn><mode>3_mask_1):
13789 For any_rotate define_insn_split and following splitters, use
13790 SWI iterator instead of SWI48.
13791
13792 2021-04-27 Richard Biener <rguenther@suse.de>
13793
13794 PR tree-optimization/99776
13795 * match.pd (bit_field_ref (ctor)): Relax element extract
13796 type compatibility checks.
13797
13798 2021-04-27 Cui,Lili <lili.cui@intel.com>
13799
13800 * common/config/i386/i386-common.c (processor_names):
13801 Sync processor_names with processor_type.
13802 * config/i386/i386-options.c (processor_cost_table):
13803 Sync processor_cost_table with processor_type.
13804
13805 2021-04-26 Aldy Hernandez <aldyh@redhat.com>
13806
13807 * value-range.cc (irange::irange_set_1bit_anti_range): Add assert.
13808 (irange::set): Call irange_set_1bit_anti_range for handling all
13809 1-bit ranges. Fall through on ~[MIN,MAX].
13810
13811 2021-04-26 Aldy Hernandez <aldyh@redhat.com>
13812
13813 * value-range.cc (irange::legacy_num_pairs): Remove.
13814 (irange::invert): Change gcc_assert to gcc_checking_assert.
13815 * value-range.h (irange::num_pairs): Adjust for a cached
13816 num_pairs(). Also, rename all gcc_assert's to
13817 gcc_checking_assert's.
13818
13819 2021-04-26 Aldy Hernandez <aldyh@redhat.com>
13820
13821 * value-range.cc (irange::operator=): Set m_kind.
13822 (irange::copy_to_legacy): Handle varying and undefined sources
13823 as a legacy copy since they can be easily copied.
13824 (irange::irange_set): Set m_kind.
13825 (irange::irange_set_anti_range): Same.
13826 (irange::set): Rename normalize_min_max to normalize_kind.
13827 (irange::verify_range): Adjust for multi-ranges having the
13828 m_kind field set.
13829 (irange::irange_union): Set m_kind.
13830 (irange::irange_intersect): Same.
13831 (irange::invert): Same.
13832 * value-range.h (irange::kind): Always return m_kind.
13833 (irange::varying_p): Rename to...
13834 (irange::varying_comptaible_p): ...this.
13835 (irange::undefined_p): Only look at m_kind.
13836 (irange::irange): Always set VR_UNDEFINED if applicable.
13837 (irange::set_undefined): Always set VR_UNDEFINED.
13838 (irange::set_varying): Always set m_kind to VR_VARYING.
13839 (irange::normalize_min_max): Rename to...
13840 (irange::normalize_kind): ...this.
13841
13842 2021-04-26 Aldy Hernandez <aldyh@redhat.com>
13843
13844 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::set_ssa_range_info):
13845 Adjust for constant_p including varying_p.
13846 * tree-vrp.c (vrp_prop::finalize): Same.
13847 (determine_value_range): Same.
13848 * vr-values.c (vr_values::range_of_expr): Same.
13849 * value-range.cc (irange::symbolic_p): Do not check varying_p.
13850 (irange::constant_p): Same.
13851
13852 2021-04-26 Aldy Hernandez <aldyh@redhat.com>
13853
13854 * value-range.cc (irange::legacy_lower_bound): Replace
13855 !undefined_p check with num_ranges > 0.
13856 (irange::legacy_upper_bound): Same.
13857 * value-range.h (irange::type): Same.
13858 (irange::lower_bound): Same.
13859 (irange::upper_bound): Same.
13860
13861 2021-04-26 Richard Biener <rguenther@suse.de>
13862
13863 PR tree-optimization/99956
13864 * gimple-loop-interchange.cc (compute_access_stride):
13865 Try instantiating the access in a shallower loop nest
13866 if instantiating failed.
13867 (compute_access_strides): Pass adjustable loop_nest
13868 to compute_access_stride.
13869
13870 2021-04-26 Christophe Lyon <christophe.lyon@linaro.org>
13871
13872 * doc/sourcebuild.texi (arm_cmse_hw): Document.
13873
13874 2021-04-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13875
13876 * config/aarch64/iterators.md (vwcore): Handle V4BF, V8BF.
13877
13878 2021-04-26 Thomas Schwinge <thomas@codesourcery.com>
13879 Nathan Sidwell <nathan@codesourcery.com>
13880 Tom de Vries <vries@codesourcery.com>
13881 Julian Brown <julian@codesourcery.com>
13882 Kwok Cheung Yeung <kcy@codesourcery.com>
13883
13884 * omp-offload.c (oacc_validate_dims): Implement
13885 '-Wopenacc-parallelism'.
13886 * doc/invoke.texi (-Wopenacc-parallelism): Document.
13887
13888 2021-04-26 Richard Biener <rguenther@suse.de>
13889
13890 * tree-cfg.h (gimplify_build1): Remove.
13891 (gimplify_build2): Likewise.
13892 (gimplify_build3): Likewise.
13893 * tree-cfg.c (gimplify_build1): Move to tree-vect-generic.c.
13894 (gimplify_build2): Likewise.
13895 (gimplify_build3): Likewise.
13896 * tree-vect-generic.c (gimplify_build1): Move from tree-cfg.c.
13897 Modernize.
13898 (gimplify_build2): Likewise.
13899 (gimplify_build3): Likewise.
13900 (tree_vec_extract): Use resimplify with following SSA edges.
13901 (expand_vector_parallel): Avoid passing NULL size/bitpos
13902 to tree_vec_extract.
13903 * expr.c (store_constructor): Deal with zero-element CTORs.
13904 * match.pd (bit_field_ref <vector CTOR>): Make sure to
13905 produce vector constants when possible.
13906
13907 2021-04-26 Richard Biener <rguenther@suse.de>
13908
13909 * tree-complex.c: Include gimple-fold.h.
13910 (expand_complex_addition): Use gimple_build.
13911 (expand_complex_multiplication_components): Likewise.
13912 (expand_complex_multiplication): Likewise.
13913 (expand_complex_div_straight): Likewise.
13914 (expand_complex_div_wide): Likewise.
13915 (expand_complex_division): Likewise.
13916 (expand_complex_conjugate): Likewise.
13917 (expand_complex_comparison): Likewise.
13918
13919 2021-04-26 Richard Biener <rguenther@suse.de>
13920
13921 * tree-ssa-phiopt.c (two_value_replacement): Remove use
13922 of legacy gimplify_buildN API.
13923
13924 2021-04-26 Richard Biener <rguenther@suse.de>
13925
13926 PR tree-optimization/99473
13927 * tree-ssa-phiopt.c (cond_store_replacement): Handle all
13928 stores.
13929
13930 2021-04-26 Richard Biener <rguenther@suse.de>
13931
13932 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_builtin):
13933 Use replace_call_with_value.
13934
13935 2021-04-26 Richard Biener <rguenther@suse.de>
13936
13937 * tree-ssa-propagate.h (valid_gimple_rhs_p): Remove.
13938 (update_gimple_call): Likewise.
13939 (update_call_from_tree): Likewise.
13940 * tree-ssa-propagate.c (valid_gimple_rhs_p): Remove.
13941 (valid_gimple_call_p): Likewise.
13942 (move_ssa_defining_stmt_for_defs): Likewise.
13943 (finish_update_gimple_call): Likewise.
13944 (update_gimple_call): Likewise.
13945 (update_call_from_tree): Likewise.
13946 (propagate_tree_value_into_stmt): Use replace_call_with_value.
13947 * gimple-fold.h (update_gimple_call): Declare.
13948 * gimple-fold.c (valid_gimple_rhs_p): Move here from
13949 tree-ssa-propagate.c.
13950 (update_gimple_call): Likewise.
13951 (valid_gimple_call_p): Likewise.
13952 (finish_update_gimple_call): Likewise, and simplify.
13953 (gimplify_and_update_call_from_tree): Implement
13954 update_call_from_tree functionality, avoid excessive
13955 push/pop_gimplify_context.
13956 (gimple_fold_builtin): Use only gimplify_and_update_call_from_tree.
13957 (gimple_fold_call): Likewise.
13958 * gimple-ssa-sprintf.c (try_substitute_return_value): Likewise.
13959 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Likewise.
13960 (pass_fold_builtins::execute): Likewise.
13961 (optimize_stack_restore): Use replace_call_with_value.
13962 * tree-cfg.c (fold_loop_internal_call): Likewise.
13963 * tree-ssa-dce.c (maybe_optimize_arith_overflow): Use
13964 only gimplify_and_update_call_from_tree.
13965 * tree-ssa-strlen.c (handle_builtin_strlen): Likewise.
13966 (handle_builtin_strchr): Likewise.
13967 * tsan.c: Include gimple-fold.h instead of tree-ssa-propagate.h.
13968
13969 2021-04-26 Jakub Jelinek <jakub@redhat.com>
13970
13971 PR debug/100255
13972 * vmsdbgout.c (ASM_OUTPUT_DEBUG_STRING, vmsdbgout_begin_block,
13973 vmsdbgout_end_block, lookup_filename, vmsdbgout_source_line): Remove
13974 register keywords.
13975
13976 2021-04-25 liuhongt <hongtao.liu@intel.com>
13977
13978 PR target/98911
13979 * config/i386/i386-builtin.def (BDESC): Change the icode of
13980 the following builtins to CODE_FOR_nothing.
13981 * config/i386/i386.c (ix86_gimple_fold_builtin): Fold
13982 IX86_BUILTIN_PCMPEQB128, IX86_BUILTIN_PCMPEQW128,
13983 IX86_BUILTIN_PCMPEQD128, IX86_BUILTIN_PCMPEQQ,
13984 IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
13985 IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
13986 IX86_BUILTIN_PCMPGTB128, IX86_BUILTIN_PCMPGTW128,
13987 IX86_BUILTIN_PCMPGTD128, IX86_BUILTIN_PCMPGTQ,
13988 IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
13989 IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256.
13990 * config/i386/sse.md (avx2_eq<mode>3): Deleted.
13991 (sse2_eq<mode>3): Ditto.
13992 (sse4_1_eqv2di3): Ditto.
13993 (sse2_gt<mode>3): Rename to ..
13994 (*sse2_gt<mode>3): .. this.
13995
13996 2021-04-24 Iain Sandoe <iain@sandoe.co.uk>
13997
13998 Revert:
13999 2021-04-24 Iain Sandoe <iain@sandoe.co.uk>
14000
14001 PR target/100152
14002 * config/darwin.c (darwin_binds_local_p): Assume that any
14003 public symbol might be interposed for PIC code. Update function
14004 header comment to reflect current Darwin capability.
14005
14006 2021-04-24 Iain Sandoe <iain@sandoe.co.uk>
14007
14008 PR target/100152
14009 * config/darwin.c (darwin_binds_local_p): Assume that any
14010 public symbol might be interposed for PIC code. Update function
14011 header comment to reflect current Darwin capability.
14012
14013 2021-04-24 Richard Sandiford <richard.sandiford@arm.com>
14014
14015 * doc/sourcebuild.texi: Document no-opts and any-opts target
14016 selectors.
14017
14018 2021-04-23 YiFei Zhu <zhuyifei1999@gmail.com>
14019
14020 * config/bpf/bpf.h (ASM_OUTPUT_ALIGNED_BSS): Use .type and .lcomm.
14021
14022 2021-04-23 YiFei Zhu <zhuyifei1999@gmail.com>
14023
14024 * config/bpf/bpf.h (FUNCTION_BOUNDARY): Set to 64.
14025
14026 2021-04-23 Uroš Bizjak <ubizjak@gmail.com>
14027
14028 PR target/100041
14029 * config/i386/i386-options.c (ix86_option_override_internal):
14030 Error out when -m96bit-long-double is used with 64bit targets.
14031 * config/i386/i386.md (*pushxf_rounded): Remove pattern.
14032
14033 2021-04-23 Martin Liska <mliska@suse.cz>
14034
14035 * lto-wrapper.c: Remove FIXME about usage of
14036 hardware_concurrency. The function is not on par with
14037 what we have now.
14038
14039 2021-04-23 Uroš Bizjak <ubizjak@gmail.com>
14040
14041 PR target/100182
14042 * config/i386/sync.md (FILD_ATOMIC/FIST_ATOMIC FP load peephole2):
14043 Copy operand 3 to operand 4. Use sse_reg_operand
14044 as operand 3 predicate.
14045 (FILD_ATOMIC/FIST_ATOMIC FP load peephole2 with mem blockage): Ditto.
14046 (LDX_ATOMIC/STX_ATOMIC FP load peephole2): Ditto.
14047 (LDX_ATOMIC/LDX_ATOMIC FP load peephole2 with mem blockage): Ditto.
14048 (FILD_ATOMIC/FIST_ATOMIC FP store peephole2):
14049 Copy operand 1 to operand 0.
14050 (FILD_ATOMIC/FIST_ATOMIC FP store peephole2 with mem blockage): Ditto.
14051 (LDX_ATOMIC/STX_ATOMIC FP store peephole2): Ditto.
14052 (LDX_ATOMIC/LDX_ATOMIC FP store peephole2 with mem blockage): Ditto.
14053
14054 2021-04-23 Alex Coplan <alex.coplan@arm.com>
14055
14056 PR rtl-optimization/100230
14057 * early-remat.c (early_remat::sort_candidates): Use delete[]
14058 instead of delete for array allocated with new[].
14059
14060 2021-04-23 Richard Biener <rguenther@suse.de>
14061
14062 * genmatch.c (lower_cond): Remove VEC_COND_EXPR special-casing.
14063 (capture_info::capture_info): Likewise.
14064 (capture_info::walk_match): Likewise.
14065 (expr::gen_transform): Likewise.
14066 (dt_simplify::gen_1): Likewise.
14067 * gimple-match-head.c (maybe_resimplify_conditional_op):
14068 Remove VEC_COND_EXPR special-casing.
14069 (gimple_simplify): Likewise.
14070 * gimple.c (gimple_could_trap_p_1): Adjust.
14071 * tree-ssa-pre.c (compute_avail): Allow VEC_COND_EXPR
14072 to participate in PRE.
14073
14074 2021-04-23 Richard Biener <rguenther@suse.de>
14075
14076 * cfganal.c (connect_infinite_loops_to_exit): First call
14077 add_noreturn_fake_exit_edges.
14078 * ipa-sra.c (process_scan_results): Do not call the now redundant
14079 add_noreturn_fake_exit_edges.
14080 * predict.c (tree_estimate_probability): Likewise.
14081 (rebuild_frequencies): Likewise.
14082 * store-motion.c (one_store_motion_pass): Likewise.
14083
14084 2021-04-23 Richard Biener <rguenther@suse.de>
14085
14086 PR tree-optimization/100222
14087 * predict.c (pass_profile::execute): Remove redundant call to
14088 mark_irreducible_loops.
14089 (report_predictor_hitrates): Likewise.
14090
14091 2021-04-23 Richard Biener <rguenther@suse.de>
14092
14093 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
14094 valid_gimple_rhs_p by instead gimplifying to one.
14095
14096 2021-04-23 Richard Biener <rguenther@suse.de>
14097
14098 PR tree-optimization/99971
14099 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences):
14100 Always use TBAA for loads.
14101
14102 2021-04-23 liuhongt <hongtao.liu@intel.com>
14103
14104 PR target/100093
14105 * config/i386/i386-options.c (ix86_option_override_internal):
14106 Clear MASK_AVX256_SPLIT_UNALIGNED_LOAD/STORE in x_target_flags
14107 when X86_TUNE_AVX256_UNALIGNED_LOAD/STORE_OPTIMAL is enabled
14108 by target attribute.
14109
14110 2021-04-23 David Edelsohn <dje.gcc@gmail.com>
14111
14112 * config/rs6000/aix71.h (PREFERRED_DEBUGGING_TYPE): Change to
14113 DWARF2_DEBUG.
14114 * config/rs6000/aix72.h (PREFERRED_DEBUGGING_TYPE): Same.
14115
14116 2021-04-22 David Edelsohn <dje.gcc@gmail.com>
14117
14118 * config.gcc (powerpc-ibm-aix6.*): Remove.
14119 * config/rs6000/aix61.h: Delete.
14120
14121 2021-04-22 Martin Liska <mliska@suse.cz>
14122
14123 PR testsuite/100159
14124 PR testsuite/100192
14125 * builtins.c (expand_builtin): Fix typos and missing comments.
14126 * dwarf2out.c (gen_subprogram_die): Likewise.
14127 (gen_struct_or_union_type_die): Likewise.
14128
14129 2021-04-22 Uroš Bizjak <ubizjak@gmail.com>
14130
14131 PR target/100119
14132 * config/i386/i386-expand.c (ix86_expand_convert_uns_sidf_sse):
14133 Remove the sign with FE_DOWNWARD, where x - x = -0.0.
14134
14135 2021-04-21 Iain Sandoe <iain@sandoe.co.uk>
14136
14137 * config/i386/darwin.h (TARGET_64BIT): Remove definition
14138 based on TARGET_ISA_64BIT.
14139 (TARGET_64BIT_P): Remove definition based on
14140 TARGET_ISA_64BIT_P().
14141
14142 2021-04-21 Martin Liska <mliska@suse.cz>
14143
14144 Revert:
14145 2021-04-21 Martin Liska <mliska@suse.cz>
14146
14147 * lto-wrapper.c (cpuset_popcount): Remove.
14148 (init_num_threads): Remove and use hardware_concurrency.
14149
14150 2021-04-21 Martin Liska <mliska@suse.cz>
14151
14152 PR jit/98615
14153 * main.c (main): Call toplev::finalize in CHECKING_P mode.
14154 * ipa-modref.c (ipa_modref_c_finalize): summaries are NULL
14155 when incremental LTO linking happens.
14156
14157 2021-04-21 Martin Liska <mliska@suse.cz>
14158
14159 * lto-wrapper.c (run_gcc): When -flto=jobserver is used, but the
14160 makeserver cannot be detected, then use -flto=N fallback.
14161
14162 2021-04-21 Richard Sandiford <richard.sandiford@arm.com>
14163
14164 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): When cross-compiling,
14165 default to yes for aarch64-linux-gnu.
14166 * configure: Regenerate.
14167
14168 2021-04-21 Martin Liska <mliska@suse.cz>
14169
14170 * lto-wrapper.c (cpuset_popcount): Remove.
14171 (init_num_threads): Remove and use hardware_concurrency.
14172
14173 2021-04-21 Martin Liska <mliska@suse.cz>
14174
14175 * config/i386/i386.c: Remove superfluous || TARGET_MACHO
14176 which remains to be '(... || 0)' and clang complains about it.
14177 * dwarf2out.c (AT_vms_delta): Declare conditionally.
14178 (add_AT_vms_delta): Likewise.
14179 * tree.c (fld_simplified_type): Use rather more common pattern
14180 for disabling of something (#if 0).
14181 (get_tree_code_name): Likewise.
14182 (verify_type_variant): Likewise.
14183
14184 2021-04-21 Martin Liska <mliska@suse.cz>
14185
14186 * config/i386/i386-expand.c (decide_alignment): Use newly named
14187 macro TARGET_CPU_P.
14188 * config/i386/i386.c (ix86_decompose_address): Likewise.
14189 (ix86_address_cost): Likewise.
14190 (ix86_lea_outperforms): Likewise.
14191 (ix86_avoid_lea_for_addr): Likewise.
14192 (ix86_add_stmt_cost): Likewise.
14193 * config/i386/i386.h (TARGET_*): Remove.
14194 (TARGET_CPU_P): New macro.
14195 * config/i386/i386.md: Use newly named macro TARGET_CPU_P.
14196 * config/i386/x86-tune-sched-atom.c (do_reorder_for_imul): Likewise.
14197 (swap_top_of_ready_list): Likewise.
14198 (ix86_atom_sched_reorder): Likewise.
14199 * config/i386/x86-tune-sched-bd.c (ix86_bd_has_dispatch): Likewise.
14200 * config/i386/x86-tune-sched.c (ix86_adjust_cost): Likewise.
14201
14202 2021-04-21 Martin Liska <mliska@suse.cz>
14203
14204 * config/i386/i386-options.c (TARGET_EXPLICIT_NO_SAHF_P):
14205 Define.
14206 (SET_TARGET_NO_SAHF): Likewise.
14207 (TARGET_EXPLICIT_PREFETCH_SSE_P): Likewise.
14208 (SET_TARGET_PREFETCH_SSE): Likewise.
14209 (TARGET_EXPLICIT_NO_TUNE_P): Likewise.
14210 (SET_TARGET_NO_TUNE): Likewise.
14211 (TARGET_EXPLICIT_NO_80387_P): Likewise.
14212 (SET_TARGET_NO_80387): Likewise.
14213 (DEF_PTA): New.
14214 * config/i386/i386.h (TARGET_*): Remove.
14215 * opth-gen.awk: Generate new used macros.
14216
14217 2021-04-21 Martin Liska <mliska@suse.cz>
14218
14219 * config/i386/i386.h (PTA_*): Remove.
14220 (enum pta_flag): New.
14221 (DEF_PTA): Generate PTA_* values from i386-isa.def.
14222 * config/i386/i386-isa.def: New file.
14223
14224 2021-04-21 Alex Coplan <alex.coplan@arm.com>
14225
14226 PR target/99988
14227 * config/aarch64/aarch64-bti-insert.c (aarch64_bti_j_insn_p): New.
14228 (rest_of_insert_bti): Avoid inserting duplicate bti j insns for
14229 jump table targets.
14230
14231 2021-04-21 H.J. Lu <hjl.tools@gmail.com>
14232
14233 * config.gcc: Install mwaitintrin.h for i[34567]86-*-* and
14234 x86_64-*-* targets.
14235 * common/config/i386/i386-common.c (OPTION_MASK_ISA2_MWAIT_SET):
14236 New.
14237 (OPTION_MASK_ISA2_MWAIT_UNSET): Likewise.
14238 (ix86_handle_option): Handle -mmwait.
14239 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
14240 Replace OPTION_MASK_ISA_SSE3 with OPTION_MASK_ISA2_MWAIT on
14241 __builtin_ia32_monitor and __builtin_ia32_mwait.
14242 * config/i386/i386-options.c (isa2_opts): Add -mmwait.
14243 (ix86_valid_target_attribute_inner_p): Likewise.
14244 (ix86_option_override_internal): Enable mwait/monitor
14245 instructions for -msse3.
14246 * config/i386/i386.h (TARGET_MWAIT): New.
14247 (TARGET_MWAIT_P): Likewise.
14248 * config/i386/i386.opt: Add -mmwait.
14249 * config/i386/mwaitintrin.h: New file.
14250 * config/i386/pmmintrin.h: Include <mwaitintrin.h>.
14251 * config/i386/sse.md (sse3_mwait): Replace TARGET_SSE3 with
14252 TARGET_MWAIT.
14253 (@sse3_monitor_<mode>): Likewise.
14254 * config/i386/x86gprintrin.h: Include <mwaitintrin.h>.
14255 * doc/extend.texi: Document mwait target attribute.
14256 * doc/invoke.texi: Document -mmwait.
14257
14258 2021-04-21 Martin Liska <mliska@suse.cz>
14259
14260 * config/i386/i386-options.c (DEF_ENUM): Remove it.
14261 * config/i386/i386-opts.h (DEF_ENUM): Likewise.
14262 * config/i386/stringop.def (DEF_ENUM): Likewise.
14263
14264 2021-04-21 Martin Liska <mliska@suse.cz>
14265
14266 * tree-cfg.c (gimple_verify_flow_info): Use qD instead
14267 of print_generic_expr.
14268
14269 2021-04-21 Jakub Jelinek <jakub@redhat.com>
14270
14271 PR rtl-optimization/100148
14272 * cprop.c (constprop_register): Use next_nondebug_insn instead of
14273 NEXT_INSN.
14274
14275 2021-04-21 Martin Liska <mliska@suse.cz>
14276
14277 PR ipa/98815
14278 * cgraphunit.c (cgraph_node::analyze): Remove duplicate
14279 free_dominance_info calls.
14280
14281 2021-04-21 Richard Biener <rguenther@suse.de>
14282
14283 * gimple-fold.c (maybe_fold_reference): Remove is_lhs
14284 parameter (and assume it to be false).
14285 (fold_gimple_assign): Adjust, remove all callers of
14286 maybe_fold_reference calling it with is_lhs true.
14287 (gimple_fold_call): Likewise.
14288 (fold_stmt_1): Likewise.
14289
14290 2021-04-21 Richard Biener <rguenther@suse.de>
14291
14292 * fold-const.c (pedantic_non_lvalue_loc): Remove.
14293 (fold_binary_loc): Adjust.
14294 (fold_ternary_loc): Likewise.
14295
14296 2021-04-21 Richard Sandiford <richard.sandiford@arm.com>
14297
14298 PR middle-end/100130
14299 * varasm.c (get_block_for_decl): Make sure that any use of the
14300 retain attribute matches the section's retain flag.
14301 (switch_to_section): Check for retain mismatches even when
14302 changing sections, but do not warn if the given decl is the
14303 section's named.decl.
14304 (output_object_block): Pass the first decl in the block (if any)
14305 to switch_to_section.
14306
14307 2021-04-20 H.J. Lu <hjl.tools@gmail.com>
14308
14309 * config/i386/i386-c.c (ix86_target_macros_internal): Define
14310 __CRC32__ for -mcrc32.
14311 * config/i386/i386-options.c (ix86_option_override_internal):
14312 Enable crc32 instruction for -msse4.2.
14313 * config/i386/i386.md (sse4_2_crc32<mode>): Remove TARGET_SSE4_2
14314 check.
14315 (sse4_2_crc32di): Likewise.
14316 * config/i386/ia32intrin.h: Use crc32 target option for CRC32
14317 intrinsics.
14318
14319 2021-04-20 Segher Boessenkool <segher@kernel.crashing.org>
14320
14321 PR target/100108
14322 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Do not consider
14323 OPTION_MASK_ISEL.
14324
14325 2021-04-20 Martin Liska <mliska@suse.cz>
14326
14327 * doc/invoke.texi: Fix typo.
14328 * params.opt: Likewise.
14329
14330 2021-04-20 Martin Liska <mliska@suse.cz>
14331
14332 * doc/invoke.texi: Document new param.
14333
14334 2021-04-19 Andrew MacLeod <amacleod@redhat.com>
14335
14336 PR tree-optimization/100081
14337 * gimple-range-cache.h (ranger_cache): Inherit from gori_compute
14338 rather than gori_compute_cache.
14339 * gimple-range-gori.cc (is_gimple_logical_p): Move to top of file.
14340 (range_def_chain::m_logical_depth): New member.
14341 (range_def_chain::range_def_chain): Initialize m_logical_depth.
14342 (range_def_chain::get_def_chain): Don't build defchains through more
14343 than LOGICAL_LIMIT logical expressions.
14344 * params.opt (param_ranger_logical_depth): New.
14345
14346 2021-04-19 Richard Earnshaw <rearnsha@arm.com>
14347
14348 PR target/100067
14349 * config/arm/arm.c (arm_configure_build_target): Do not strip
14350 extended FPU/SIMD feature bits from the target ISA when -mfpu
14351 is specified (partial revert of r11-8168).
14352
14353 2021-04-19 Thomas Schwinge <thomas@codesourcery.com>
14354
14355 * params.opt (-param=openacc-kernels=): Add.
14356 * omp-oacc-kernels-decompose.cc
14357 (pass_omp_oacc_kernels_decompose::gate): Use it.
14358 * doc/invoke.texi (-fopenacc-kernels=@var{mode}): Move...
14359 (--param): ... here, 'openacc-kernels'.
14360
14361 2021-04-19 Martin Liska <mliska@suse.cz>
14362
14363 PR c/100143
14364 * gengtype.c (finish_root_table): Align function arguments
14365 in between declaration and definition.
14366
14367 2021-04-19 Eric Botcazou <ebotcazou@adacore.com>
14368
14369 * config/i386/winnt.c (i386_pe_seh_cold_init): Properly deal with
14370 frames larger than the SEH maximum frame size.
14371
14372 2021-04-18 Segher Boessenkool <segher@kernel.crashing.org>
14373
14374 PR rtl-optimization/99927
14375 * combine.c (distribute_notes) [REG_UNUSED]: If the register already
14376 is dead, just drop it.
14377
14378 2021-04-17 Iain Buclaw <ibuclaw@gdcproject.org>
14379
14380 PR d/99914
14381 * config/i386/winnt-d.c (TARGET_D_TEMPLATES_ALWAYS_COMDAT): Define.
14382 * doc/tm.texi: Regenerate.
14383 * doc/tm.texi.in (D language and ABI): Add @hook for
14384 TARGET_D_TEMPLATES_ALWAYS_COMDAT.
14385
14386 2021-04-17 Iain Buclaw <ibuclaw@gdcproject.org>
14387
14388 * config/darwin-d.c (darwin_d_handle_target_object_format): New
14389 function.
14390 (darwin_d_register_target_info): New function.
14391 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
14392 * config/dragonfly-d.c (dragonfly_d_handle_target_object_format): New
14393 function.
14394 (dragonfly_d_register_target_info): New function.
14395 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
14396 * config/freebsd-d.c (freebsd_d_handle_target_object_format): New
14397 function.
14398 (freebsd_d_register_target_info): New function.
14399 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
14400 * config/glibc-d.c (glibc_d_handle_target_object_format): New
14401 function.
14402 (glibc_d_register_target_info): New function.
14403 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
14404 * config/i386/i386-d.c (ix86_d_handle_target_object_format): New
14405 function.
14406 (ix86_d_register_target_info): Add ix86_d_handle_target_object_format
14407 as handler for objectFormat key.
14408 * config/i386/winnt-d.c (winnt_d_handle_target_object_format): New
14409 function.
14410 (winnt_d_register_target_info): New function.
14411 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
14412 * config/netbsd-d.c (netbsd_d_handle_target_object_format): New
14413 function.
14414 (netbsd_d_register_target_info): New function.
14415 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
14416 * config/openbsd-d.c (openbsd_d_handle_target_object_format): New
14417 function.
14418 (openbsd_d_register_target_info): New function.
14419 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
14420 * config/pa/pa-d.c (pa_d_handle_target_object_format): New function.
14421 (pa_d_register_target_info): Add pa_d_handle_target_object_format as
14422 handler for objectFormat key.
14423 * config/rs6000/rs6000-d.c (rs6000_d_handle_target_object_format): New
14424 function.
14425 (rs6000_d_register_target_info): Add
14426 rs6000_d_handle_target_object_format as handler for objectFormat key.
14427 * config/sol2-d.c (solaris_d_handle_target_object_format): New
14428 function.
14429 (solaris_d_register_target_info): New function.
14430 (TARGET_D_REGISTER_OS_TARGET_INFO): Define.
14431
14432 2021-04-16 Jakub Jelinek <jakub@redhat.com>
14433
14434 PR target/91710
14435 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Change
14436 abi_break argument from bool * to unsigned *, store there the pre-GCC 9
14437 alignment.
14438 (aarch64_layout_arg, aarch64_gimplify_va_arg_expr): Adjust callers.
14439 (aarch64_function_arg_regno_p): Likewise. Only emit -Wpsabi note if
14440 the old and new alignment after applying MIN/MAX to it is different.
14441
14442 2021-04-16 Tamar Christina <tamar.christina@arm.com>
14443
14444 PR target/100048
14445 * config/aarch64/aarch64-sve.md (@aarch64_sve_trn1_conv<mode>): New.
14446 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_trn): Use new
14447 TRN optab.
14448 * config/aarch64/iterators.md (UNSPEC_TRN1_CONV): New.
14449
14450 2021-04-16 Bill Schmidt <wschmidt@linux.ibm.com>
14451
14452 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Revise
14453 this section and its subsections.
14454
14455 2021-04-16 Jakub Jelinek <jakub@redhat.com>
14456
14457 PR target/100075
14458 * config/aarch64/aarch64.md (*neg_asr_si2_extr, *extrsi5_insn_di): New
14459 define_insn patterns.
14460
14461 2021-04-16 Richard Sandiford <richard.sandiford@arm.com>
14462
14463 PR rtl-optimization/98689
14464 * reg-notes.def (UNTYPED_CALL): New note.
14465 * combine.c (distribute_notes): Handle it.
14466 * emit-rtl.c (try_split): Likewise.
14467 * rtlanal.c (rtx_properties::try_to_add_insn): Likewise. Assume
14468 that calls with the note implicitly set all return value registers.
14469 * builtins.c (expand_builtin_apply): Add a REG_UNTYPED_CALL
14470 to untyped_calls.
14471
14472 2021-04-16 Richard Sandiford <richard.sandiford@arm.com>
14473
14474 PR rtl-optimization/99596
14475 * rtlanal.c (rtx_properties::try_to_add_insn): Don't add global
14476 register accesses for const calls. Assume that pure functions
14477 can only read from global registers. Ignore cases in which
14478 the stack pointer has been marked global.
14479
14480 2021-04-16 Jakub Jelinek <jakub@redhat.com>
14481
14482 PR target/99767
14483 * tree-vect-loop.c (vect_transform_loop): Don't remove just
14484 dead scalar .MASK_LOAD calls, but also dead .COND_* calls - replace
14485 them by their last argument.
14486
14487 2021-04-15 Martin Liska <mliska@suse.cz>
14488
14489 * doc/invoke.texi: Other params don't use it, remove it.
14490
14491 2021-04-15 Richard Biener <rguenther@suse.de>
14492
14493 * gimple-builder.h: Add deprecation note.
14494
14495 2021-04-15 Richard Sandiford <richard.sandiford@arm.com>
14496
14497 PR c++/98852
14498 * attribs.h (restrict_type_identity_attributes_to): Declare.
14499 * attribs.c (restrict_type_identity_attributes_to): New function.
14500
14501 2021-04-15 Richard Sandiford <richard.sandiford@arm.com>
14502
14503 PR c/98852
14504 * attribs.h (affects_type_identity_attributes): Declare.
14505 * attribs.c (remove_attributes_matching): New function.
14506 (affects_type_identity_attributes): Likewise.
14507
14508 2021-04-15 Jakub Jelinek <jakub@redhat.com>
14509
14510 PR target/100056
14511 * config/aarch64/aarch64.md (*<LOGICAL:optab>_<SHIFT:optab><mode>3):
14512 Add combine splitters for *<LOGICAL:optab>_ashl<mode>3 with
14513 ZERO_EXTEND, SIGN_EXTEND or AND.
14514
14515 2021-04-14 Richard Sandiford <richard.sandiford@arm.com>
14516
14517 PR rtl-optimization/99929
14518 * rtl.h (same_vector_encodings_p): New function.
14519 * cse.c (exp_equiv_p): Check that CONST_VECTORs have the same encoding.
14520 * cselib.c (rtx_equal_for_cselib_1): Likewise.
14521 * jump.c (rtx_renumbered_equal_p): Likewise.
14522 * lra-constraints.c (operands_match_p): Likewise.
14523 * reload.c (operands_match_p): Likewise.
14524 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Likewise.
14525
14526 2021-04-14 Richard Sandiford <richard.sandiford@arm.com>
14527
14528 * print-rtl.c (rtx_writer::print_rtx_operand_codes_E_and_V): Print
14529 more information about variable-length CONST_VECTORs.
14530
14531 2021-04-14 Vladimir N. Makarov <vmakarov@redhat.com>
14532
14533 PR rtl-optimization/100066
14534 * lra-constraints.c (split_reg): Check paradoxical_subreg_p for
14535 ordered modes when choosing splitting mode for hard reg.
14536
14537 2021-04-14 Richard Sandiford <richard.sandiford@arm.com>
14538
14539 PR target/99246
14540 * config/aarch64/aarch64.c (aarch64_expand_sve_const_vector_sel):
14541 New function.
14542 (aarch64_expand_sve_const_vector): Use it for nelts_per_pattern==2.
14543
14544 2021-04-14 Andreas Krebbel <krebbel@linux.ibm.com>
14545
14546 * config/s390/s390-builtins.def (O_M5, O_M12, ...): Add new macros
14547 for mask operand types.
14548 (s390_vec_permi_s64, s390_vec_permi_b64, s390_vec_permi_u64)
14549 (s390_vec_permi_dbl, s390_vpdi): Use the M5 type for the immediate
14550 operand.
14551 (s390_vec_msum_u128, s390_vmslg): Use the M12 type for the
14552 immediate operand.
14553 * config/s390/s390.c (s390_const_operand_ok): Check the new
14554 operand types and generate a list of valid values.
14555
14556 2021-04-14 Iain Buclaw <ibuclaw@gdcproject.org>
14557
14558 * doc/tm.texi: Regenerate.
14559 * doc/tm.texi.in (D language and ABI): Add @hook for
14560 TARGET_D_REGISTER_OS_TARGET_INFO.
14561
14562 2021-04-14 Iain Buclaw <ibuclaw@gdcproject.org>
14563
14564 * config/aarch64/aarch64-d.c (aarch64_d_handle_target_float_abi): New
14565 function.
14566 (aarch64_d_register_target_info): New function.
14567 * config/aarch64/aarch64-protos.h (aarch64_d_register_target_info):
14568 Declare.
14569 * config/aarch64/aarch64.h (TARGET_D_REGISTER_CPU_TARGET_INFO):
14570 Define.
14571 * config/arm/arm-d.c (arm_d_handle_target_float_abi): New function.
14572 (arm_d_register_target_info): New function.
14573 * config/arm/arm-protos.h (arm_d_register_target_info): Declare.
14574 * config/arm/arm.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
14575 * config/i386/i386-d.c (ix86_d_handle_target_float_abi): New function.
14576 (ix86_d_register_target_info): New function.
14577 * config/i386/i386-protos.h (ix86_d_register_target_info): Declare.
14578 * config/i386/i386.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
14579 * config/mips/mips-d.c (mips_d_handle_target_float_abi): New function.
14580 (mips_d_register_target_info): New function.
14581 * config/mips/mips-protos.h (mips_d_register_target_info): Declare.
14582 * config/mips/mips.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
14583 * config/pa/pa-d.c (pa_d_handle_target_float_abi): New function.
14584 (pa_d_register_target_info): New function.
14585 * config/pa/pa-protos.h (pa_d_register_target_info): Declare.
14586 * config/pa/pa.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
14587 * config/riscv/riscv-d.c (riscv_d_handle_target_float_abi): New
14588 function.
14589 (riscv_d_register_target_info): New function.
14590 * config/riscv/riscv-protos.h (riscv_d_register_target_info): Declare.
14591 * config/riscv/riscv.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
14592 * config/rs6000/rs6000-d.c (rs6000_d_handle_target_float_abi): New
14593 function.
14594 (rs6000_d_register_target_info): New function.
14595 * config/rs6000/rs6000-protos.h (rs6000_d_register_target_info):
14596 Declare.
14597 * config/rs6000/rs6000.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
14598 * config/s390/s390-d.c (s390_d_handle_target_float_abi): New function.
14599 (s390_d_register_target_info): New function.
14600 * config/s390/s390-protos.h (s390_d_register_target_info): Declare.
14601 * config/s390/s390.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
14602 * config/sparc/sparc-d.c (sparc_d_handle_target_float_abi): New
14603 function.
14604 (sparc_d_register_target_info): New function.
14605 * config/sparc/sparc-protos.h (sparc_d_register_target_info): Declare.
14606 * config/sparc/sparc.h (TARGET_D_REGISTER_CPU_TARGET_INFO): Define.
14607 * doc/tm.texi: Regenerate.
14608 * doc/tm.texi.in (D language and ABI): Add @hook for
14609 TARGET_D_REGISTER_CPU_TARGET_INFO.
14610
14611 2021-04-14 Iain Buclaw <ibuclaw@gdcproject.org>
14612
14613 * config/i386/i386-d.c (ix86_d_has_stdcall_convention): New function.
14614 * config/i386/i386-protos.h (ix86_d_has_stdcall_convention): Declare.
14615 * config/i386/i386.h (TARGET_D_HAS_STDCALL_CONVENTION): Define.
14616 * doc/tm.texi: Regenerate.
14617 * doc/tm.texi.in (D language and ABI): Add @hook for
14618 TARGET_D_HAS_STDCALL_CONVENTION.
14619
14620 2021-04-14 Richard Biener <rguenther@suse.de>
14621
14622 * tree-cfg.c (verify_gimple_assign_ternary): Verify that
14623 VEC_COND_EXPRs have a gimple_val condition.
14624 * tree-ssa-propagate.c (valid_gimple_rhs_p): VEC_COND_EXPR
14625 can no longer have a GENERIC condition.
14626
14627 2021-04-14 Richard Earnshaw <rearnsha@arm.com>
14628
14629 PR target/100067
14630 * config/arm/arm.c (arm_configure_build_target): Strip isa_all_fpbits
14631 from the isa_delta when -mfpu has been used.
14632 (arm_options_perform_arch_sanity_checks): It's the architecture that
14633 lacks an FPU not the processor.
14634
14635 2021-04-13 Richard Biener <rguenther@suse.de>
14636
14637 PR tree-optimization/100053
14638 * tree-ssa-sccvn.c (vn_nary_op_get_predicated_value): Do
14639 not use optimistic dominance queries for backedges to validate
14640 predicated values.
14641 (dominated_by_p_w_unex): Add parameter to ignore executable
14642 state on backedges.
14643 (rpo_elim::eliminate_avail): Adjust.
14644
14645 2021-04-13 Jakub Jelinek <jakub@redhat.com>
14646
14647 PR target/100028
14648 * config/aarch64/aarch64.md (*aarch64_bfxil<mode>_extr,
14649 *aarch64_bfxilsi_extrdi): New define_insn patterns.
14650
14651 2021-04-13 Jakub Jelinek <jakub@redhat.com>
14652
14653 PR target/99648
14654 * simplify-rtx.c (simplify_immed_subreg): For MODE_COMPOSITE_P
14655 outermode, return NULL if the result doesn't encode back to the
14656 original byte sequence.
14657 (simplify_gen_subreg): Don't create SUBREGs from constants to
14658 MODE_COMPOSITE_P outermode.
14659
14660 2021-04-12 Jakub Jelinek <jakub@redhat.com>
14661
14662 PR rtl-optimization/99905
14663 * combine.c (expand_compound_operation): If pos + len > modewidth,
14664 perform the right shift by pos in inner_mode and then convert to mode,
14665 instead of trying to simplify a shift of rtx with inner_mode by pos
14666 as if it was a shift in mode.
14667
14668 2021-04-12 Jakub Jelinek <jakub@redhat.com>
14669
14670 PR debug/99830
14671 * combine.c (simplify_and_const_int_1): Don't optimize varop
14672 away if it has side-effects.
14673
14674 2021-04-12 Martin Liska <mliska@suse.cz>
14675
14676 * doc/extend.texi: Escape @smallexample content.
14677
14678 2021-04-12 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
14679
14680 * config/s390/s390.md ("*movdi_31", "*movdi_64"): Add
14681 alternative in order to load a DFP zero.
14682
14683 2021-04-12 Martin Liska <mliska@suse.cz>
14684
14685 * doc/extend.texi: Be more precise in documentation
14686 of symver attribute.
14687
14688 2021-04-12 Martin Liska <mliska@suse.cz>
14689
14690 PR sanitizer/99877
14691 * gimplify.c (gimplify_expr): Right now, we unpoison all
14692 variables before a goto <dest>. We should not do it if we are
14693 in a omp context.
14694
14695 2021-04-12 Cui,Lili <lili.cui@intel.com>
14696
14697 * common/config/i386/cpuinfo.h (get_intel_cpu): Handle
14698 rocketlake.
14699 * common/config/i386/i386-common.c (processor_names): Add
14700 rocketlake.
14701 (processor_alias_table): Add rocketlake.
14702 * common/config/i386/i386-cpuinfo.h (processor_subtypes): Add
14703 INTEL_COREI7_ROCKETLAKE.
14704 * config.gcc: Add -march=rocketlake.
14705 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
14706 rocketlake.
14707 * config/i386/i386-options.c (m_ROCKETLAKE) : Define.
14708 (processor_cost_table): Add rocketlake cost.
14709 * config/i386/i386.h (ix86_size_cost) : Define
14710 TARGET_ROCKETLAKE.
14711 (processor_type) : Add PROCESSOR_ROCKETLAKE.
14712 (PTA_ROCKETLAKE): Ditto.
14713 * doc/extend.texi: Add rocketlake.
14714 * doc/invoke.texi: Add rocketlake.
14715
14716 2021-04-12 Cui,Lili <lili.cui@intel.com>
14717
14718 * config/i386/i386.h (PTA_ALDERLAKE): Change alderlake ISA list.
14719 * config/i386/i386-options.c (m_CORE_AVX2): Add m_ALDERLAKE.
14720 * common/config/i386/cpuinfo.h (get_intel_cpu): Add AlderLake model.
14721 * doc/invoke.texi: Change alderlake ISA list.
14722
14723 2021-04-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
14724
14725 PR middle-end/98088
14726 * omp-expand.c (expand_oacc_collapse_init): Update condition in
14727 a gcc_assert.
14728
14729 2021-04-10 H.J. Lu <hjl.tools@gmail.com>
14730
14731 PR target/99744
14732 * config/i386/serializeintrin.h (_serialize): Defined as macro.
14733
14734 2021-04-10 Jakub Jelinek <jakub@redhat.com>
14735
14736 PR lto/99849
14737 * expr.c (expand_expr_addr_expr_1): Test is_global_var rather than
14738 just TREE_STATIC on COMPOUND_LITERAL_EXPR_DECLs.
14739
14740 2021-04-10 Jakub Jelinek <jakub@redhat.com>
14741
14742 PR middle-end/99989
14743 * gimple-ssa-warn-alloca.c
14744 (alloca_type_and_limit::alloca_type_and_limit): Initialize limit to
14745 0 with integer precision unconditionally.
14746
14747 2021-04-10 Jakub Jelinek <jakub@redhat.com>
14748
14749 PR rtl-optimization/98601
14750 * rtlanal.c (rtx_addr_can_trap_p_1): Allow in assert unknown size
14751 not just for BLKmode, but also for VOIDmode. For STRICT_ALIGNMENT
14752 unaligned_mems handle VOIDmode like BLKmode.
14753
14754 2021-04-10 Jan Hubicka <hubicka@ucw.cz>
14755
14756 PR lto/99857
14757 * tree.c (free_lang_data_in_decl): Do not release body of
14758 declare_variant_alt.
14759
14760 2021-04-09 Richard Sandiford <richard.sandiford@arm.com>
14761
14762 * config/aarch64/aarch64.c (aarch64_option_restore): If the
14763 architecture was specified explicitly and the tuning wasn't,
14764 tune for the architecture rather than the configured default CPU.
14765
14766 2021-04-09 Richard Sandiford <richard.sandiford@arm.com>
14767
14768 * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use X30
14769 as the temporary register.
14770
14771 2021-04-09 Martin Liska <mliska@suse.cz>
14772
14773 * doc/extend.texi: Move non-target attributes on the top level.
14774
14775 2021-04-09 Martin Liska <mliska@suse.cz>
14776
14777 * doc/invoke.texi: Document minimum and maximum value of the
14778 argument for both supported compression algorithms.
14779
14780 2021-04-08 David Edelsohn <dje.gcc@gmail.com>
14781
14782 * config/rs6000/rs6000.c (rs6000_xcoff_select_section): Select
14783 TLS BSS before TLS data.
14784 * config/rs6000/xcoff.h (ASM_OUTPUT_TLS_COMMON): Use .comm.
14785
14786 2021-04-08 Richard Sandiford <richard.sandiford@arm.com>
14787
14788 * doc/sourcebuild.texi (stdint_types_mbig_endian): Document.
14789
14790 2021-04-08 Richard Sandiford <richard.sandiford@arm.com>
14791
14792 * match.pd: Extend vec_cond folds to handle shifts.
14793
14794 2021-04-08 Maciej W. Rozycki <macro@orcam.me.uk>
14795
14796 * config/vax/vax.md: Fix comment for `*bit<mode>' pattern's
14797 peephole.
14798
14799 2021-04-08 Alex Coplan <alex.coplan@arm.com>
14800
14801 PR target/99647
14802 * config/arm/iterators.md (MVE_vecs): New.
14803 (V_elem): Also handle V2DF.
14804 * config/arm/mve.md (*mve_mov<mode>): Rename to ...
14805 (*mve_vdup<mode>): ... this. Remove second alternative since
14806 vec_duplicate of const_int is not canonical RTL, and we don't
14807 want to match symbol_refs.
14808 (*mve_vec_duplicate<mode>): Delete (pattern is redundant).
14809
14810 2021-04-08 Xionghu Luo <luoxhu@linux.ibm.com>
14811
14812 * fold-const.c (fold_single_bit_test): Fix typo.
14813 * print-rtl.c (print_rtx_insn_vec): Call print_rtl_single
14814 instead.
14815
14816 2021-04-07 Richard Sandiford <richard.sandiford@arm.com>
14817
14818 PR tree-optimization/97513
14819 * tree-vect-slp.c (vect_add_slp_permutation): New function,
14820 split out from...
14821 (vectorizable_slp_permutation): ...here. Detect cases in which
14822 all VEC_PERM_EXPRs are guaranteed to have the same stepped
14823 permute vector and only generate one permute vector for that case.
14824 Extend that case to handle variable-length vectors.
14825
14826 2021-04-07 Richard Sandiford <richard.sandiford@arm.com>
14827
14828 PR tree-optimization/99873
14829 * tree-vect-slp.c (vect_slp_prefer_store_lanes_p): New function.
14830 (vect_build_slp_instance): Don't split store groups that could
14831 use IFN_STORE_LANES.
14832
14833 2021-04-07 Jakub Jelinek <jakub@redhat.com>
14834
14835 PR target/99872
14836 * varasm.c (output_constant_pool_contents): Don't strip name encoding
14837 from XSTR (desc->sym, 0) or from label before passing those to
14838 ASM_OUTPUT_DEF.
14839
14840 2021-04-07 Richard Biener <rguenther@suse.de>
14841
14842 PR tree-optimization/99954
14843 * tree-loop-distribution.c: Include tree-affine.h.
14844 (generate_memcpy_builtin): Try using tree-affine to prove
14845 non-overlap.
14846 (loop_distribution::classify_builtin_ldst): Always classify
14847 as PKIND_MEMMOVE.
14848
14849 2021-04-07 Richard Biener <rguenther@suse.de>
14850
14851 PR tree-optimization/99947
14852 * tree-vect-loop.c (vectorizable_induction): Pre-allocate
14853 steps vector to avoid pushing elements from the reallocated
14854 vector.
14855
14856 2021-04-07 Richard Biener <rguenther@suse.de>
14857
14858 * tree-ssa-sccvn.h (print_vn_reference_ops): Declare.
14859 * tree-ssa-pre.c (print_pre_expr): Factor out VN reference operand
14860 printing...
14861 * tree-ssa-sccvn.c (print_vn_reference_ops): ... into this new
14862 function.
14863 (debug_vn_reference_ops): New.
14864
14865 2021-04-07 Bin Cheng <bin.cheng@linux.alibaba.com>
14866
14867 PR tree-optimization/98736
14868 * tree-loop-distribution.c
14869 * (loop_distribution::bb_top_order_init):
14870 Compute RPO with programing order preserved by calling function
14871 rev_post_order_and_mark_dfs_back_seme.
14872
14873 2021-04-06 Vladimir N. Makarov <vmakarov@redhat.com>
14874
14875 PR target/99781
14876 * lra-constraints.c (split_reg): Don't check paradoxical_subreg_p.
14877 * lra-lives.c (clear_sparseset_regnos, regnos_in_sparseset_p): New
14878 functions.
14879 (process_bb_lives): Don't update biggest mode of hard reg for
14880 implicit in multi-register group. Use the new functions for
14881 updating dead_set and unused_set by register notes.
14882
14883 2021-04-06 Xianmiao Qu <xianmiao_qu@c-sky.com>
14884
14885 * config/csky/csky_pipeline_ck802.md : Use insn reservation name
14886 instead of *.
14887
14888 2021-04-06 H.J. Lu <hjl.tools@gmail.com>
14889
14890 * config/i386/x86-tune-costs.h (skylake_memcpy): Updated.
14891 (skylake_memset): Likewise.
14892 (skylake_cost): Change CLEAR_RATIO to 17.
14893 * config/i386/x86-tune.def (X86_TUNE_PREFER_KNOWN_REP_MOVSB_STOSB):
14894 Replace m_CANNONLAKE, m_ICELAKE_CLIENT, m_ICELAKE_SERVER,
14895 m_TIGERLAKE and m_SAPPHIRERAPIDS with m_SKYLAKE and m_CORE_AVX512.
14896
14897 2021-04-06 Richard Biener <rguenther@suse.de>
14898
14899 PR tree-optimization/99880
14900 * tree-vect-loop.c (maybe_set_vectorized_backedge_value): Only
14901 set vectorized defs of relevant PHIs.
14902
14903 2021-04-06 Richard Biener <rguenther@suse.de>
14904
14905 PR tree-optimization/99924
14906 * tree-vect-slp.c (vect_bb_partition_graph_r): Do not mark
14907 nodes w/o scalar stmts as visited.
14908
14909 2021-04-06 Alex Coplan <alex.coplan@arm.com>
14910
14911 PR target/99748
14912 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Also use base
14913 PCS for [su]fix_optab.
14914
14915 2021-04-03 Iain Sandoe <iain@sandoe.co.uk>
14916
14917 * config/darwin.c (machopic_legitimize_pic_address): Check
14918 that the current pic register is one of the hard reg set
14919 before setting liveness.
14920
14921 2021-04-03 Iain Sandoe <iain@sandoe.co.uk>
14922
14923 * config/darwin.c (machopic_legitimize_pic_address): Fix
14924 whitespace, remove unused code.
14925
14926 2021-04-03 Jakub Jelinek <jakub@redhat.com>
14927
14928 PR tree-optimization/99882
14929 * gimple-ssa-store-merging.c (bswap_view_convert): Handle val with
14930 pointer type.
14931
14932 2021-04-03 Jakub Jelinek <jakub@redhat.com>
14933
14934 PR rtl-optimization/99863
14935 * dse.c (replace_read): Drop regs_live argument. Instead of
14936 regs_live, use store_insn->fixed_regs_live if non-NULL,
14937 otherwise punt if insns sequence clobbers or sets any hard
14938 registers.
14939
14940 2021-04-03 Jakub Jelinek <jakub@redhat.com>
14941
14942 PR testsuite/98125
14943 * targhooks.h (default_print_patchable_function_entry_1): Declare.
14944 * targhooks.c (default_print_patchable_function_entry_1): New function,
14945 copied from default_print_patchable_function_entry with an added flags
14946 argument.
14947 (default_print_patchable_function_entry): Rewritten into a small
14948 wrapper around default_print_patchable_function_entry_1.
14949 * config/rs6000/rs6000.c (TARGET_ASM_PRINT_PATCHABLE_FUNCTION_ENTRY):
14950 Redefine.
14951 (rs6000_print_patchable_function_entry): New function.
14952
14953 2021-04-02 Eric Botcazou <ebotcazou@adacore.com>
14954
14955 * doc/invoke.texi (fdelete-dead-exceptions): Minor tweak.
14956
14957 2021-04-01 Jason Merrill <jason@redhat.com>
14958
14959 PR c++/98481
14960 * common.opt: Document v15 and v16.
14961
14962 2021-04-01 Richard Biener <rguenther@suse.de>
14963
14964 PR tree-optimization/99863
14965 * gimplify.c (gimplify_init_constructor): Recompute vector
14966 constructor flags.
14967
14968 2021-04-01 Jakub Jelinek <jakub@redhat.com>
14969
14970 * doc/extend.texi (symver attribute): Fix up syntax errors
14971 in the examples.
14972
14973 2021-04-01 Jakub Jelinek <jakub@redhat.com>
14974
14975 PR tree-optimization/96573
14976 * gimple-ssa-store-merging.c (init_symbolic_number): Handle
14977 also pointer types.
14978
14979 2021-04-01 Richard Biener <rguenther@suse.de>
14980
14981 PR tree-optimization/99856
14982 * tree-vect-patterns.c (vect_recog_over_widening_pattern): Promote
14983 precision to vector element precision.
14984
14985 2021-04-01 Martin Jambor <mjambor@suse.cz>
14986
14987 PR tree-optimization/97009
14988 * tree-sra.c (access_or_its_child_written): New function.
14989 (propagate_subaccesses_from_rhs): Use it instead of a simple grp_write
14990 test.
14991
14992 2021-03-31 Jan Hubicka <hubicka@ucw.cz>
14993
14994 PR ipa/98265
14995 * cif-code.def (USES_COMDAT_LOCAL): Make CIF_FINAL_NORMAL.
14996
14997 2021-03-31 Pat Haugen <pthaugen@linux.ibm.com>
14998
14999 PR target/99133
15000 * config/rs6000/altivec.md (xxspltiw_v4si, xxspltiw_v4sf_inst,
15001 xxspltidp_v2df_inst, xxsplti32dx_v4si_inst, xxsplti32dx_v4sf_inst,
15002 xxblend_<mode>, xxpermx_inst, xxeval): Mark prefixed.
15003 * config/rs6000/mma.md (mma_<vvi4i4i8>, mma_<avvi4i4i8>,
15004 mma_<vvi4i4i2>, mma_<avvi4i4i2>, mma_<vvi4i4>, mma_<avvi4i4>,
15005 mma_<pvi4i2>, mma_<apvi4i2>, mma_<vvi4i4i4>, mma_<avvi4i4i4>):
15006 Likewise.
15007 * config/rs6000/rs6000.c (rs6000_final_prescan_insn): Adjust test.
15008 * config/rs6000/rs6000.md (define_attr "maybe_prefixed"): New.
15009 (define_attr "prefixed"): Update initializer.
15010
15011 2021-03-31 Jakub Jelinek <jakub@redhat.com>
15012
15013 PR debug/99490
15014 * dwarf2out.c (debug_ranges_dwo_section): New variable.
15015 (DW_RANGES_IDX_SKELETON): Define.
15016 (struct dw_ranges): Add begin_entry and end_entry members.
15017 (DEBUG_DWO_RNGLISTS_SECTION): Define.
15018 (add_ranges_num): Adjust r initializer for addition of *_entry
15019 members.
15020 (add_ranges_by_labels): For -gsplit-dwarf and force_direct,
15021 set idx to DW_RANGES_IDX_SKELETON.
15022 (use_distinct_base_address_for_range): New function.
15023 (index_rnglists): Don't set r->idx if it is equal to
15024 DW_RANGES_IDX_SKELETON. Initialize r->begin_entry and
15025 r->end_entry for -gsplit-dwarf if those will be needed by
15026 output_rnglists.
15027 (output_rnglists): Add DWO argument. If true, switch to
15028 debug_ranges_dwo_section rather than debug_ranges_section.
15029 Adjust l1/l2 label indexes. Only output the offset table when
15030 dwo is true and don't include in there the skeleton range
15031 entry if present. For -gsplit-dwarf, skip ranges that belong
15032 to the other rnglists section. Change return type from void
15033 to bool and return true if there are any range entries for
15034 the other section. For dwarf_split_debug_info use
15035 DW_RLE_startx_endx, DW_RLE_startx_length and DW_RLE_base_addressx
15036 entries instead of DW_RLE_start_end, DW_RLE_start_length and
15037 DW_RLE_base_address. Use use_distinct_base_address_for_range.
15038 (init_sections_and_labels): Initialize debug_ranges_dwo_section
15039 if -gsplit-dwarf and DWARF >= 5. Adjust ranges_section_label
15040 and range_base_label indexes.
15041 (dwarf2out_finish): Call index_rnglists earlier before finalizing
15042 .debug_addr. Never emit DW_AT_rnglists_base attribute. For
15043 -gsplit-dwarf and DWARF >= 5 call output_rnglists up to twice
15044 with different dwo arguments.
15045 (dwarf2out_c_finalize): Clear debug_ranges_dwo_section.
15046
15047 2021-03-31 Richard Sandiford <richard.sandiford@arm.com>
15048
15049 PR tree-optimization/98268
15050 * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Call
15051 recompute_tree_invariant_for_addr_expr after successfully
15052 folding a TARGET_MEM_REF that occurs inside an ADDR_EXPR.
15053
15054 2021-03-31 Richard Sandiford <richard.sandiford@arm.com>
15055
15056 PR tree-optimization/99726
15057 * tree-data-ref.c (create_intersect_range_checks_index): Bail
15058 out if there is more than one access function SCEV for the loop
15059 being versioned.
15060
15061 2021-03-31 Richard Sandiford <richard.sandiford@arm.com>
15062
15063 PR rtl-optimization/97141
15064 PR rtl-optimization/98726
15065 * emit-rtl.c (valid_for_const_vector_p): Return true for
15066 CONST_POLY_INT_P.
15067 * rtx-vector-builder.h (rtx_vector_builder::step): Return a
15068 poly_wide_int instead of a wide_int.
15069 (rtx_vector_builder::apply_set): Take a poly_wide_int instead
15070 of a wide_int.
15071 * rtx-vector-builder.c (rtx_vector_builder::apply_set): Likewise.
15072 * config/aarch64/aarch64.c (aarch64_legitimate_constant_p): Return
15073 false for CONST_VECTORs that cannot be forced to memory.
15074 * config/aarch64/aarch64-simd.md (mov<mode>): If a CONST_VECTOR
15075 is too complex to force to memory, build it up from individual
15076 elements instead.
15077
15078 2021-03-31 Jan Hubicka <jh@suse.cz>
15079
15080 PR lto/99447
15081 * cgraph.c (cgraph_node::release_body): Fix overactive check.
15082
15083 2021-03-31 Christophe Lyon <christophe.lyon@linaro.org>
15084
15085 PR target/99786
15086 * config/arm/vec-common.md (mul<mode>3): Disable on iwMMXT, expect
15087 for V4HI and V2SI.
15088
15089 2021-03-31 H.J. Lu <hjl.tools@gmail.com>
15090
15091 * config/i386/i386-expand.c (expand_set_or_cpymem_via_rep):
15092 For TARGET_PREFER_KNOWN_REP_MOVSB_STOSB, don't convert QImode
15093 to SImode.
15094 (decide_alg): For TARGET_PREFER_KNOWN_REP_MOVSB_STOSB, use
15095 "rep movsb/stosb" only for known sizes.
15096 * config/i386/i386-options.c (processor_cost_table): Use Ice
15097 Lake cost for Cannon Lake, Ice Lake, Tiger Lake, Sapphire
15098 Rapids and Alder Lake.
15099 * config/i386/i386.h (TARGET_PREFER_KNOWN_REP_MOVSB_STOSB): New.
15100 * config/i386/x86-tune-costs.h (icelake_memcpy): New.
15101 (icelake_memset): Likewise.
15102 (icelake_cost): Likewise.
15103 * config/i386/x86-tune.def (X86_TUNE_PREFER_KNOWN_REP_MOVSB_STOSB):
15104 New.
15105
15106 2021-03-31 Richard Sandiford <richard.sandiford@arm.com>
15107
15108 PR target/98119
15109 * config/aarch64/aarch64.c
15110 (aarch64_vectorize_preferred_vector_alignment): Query the size
15111 of the provided SVE vector; do not assume that all SVE vectors
15112 have the same size.
15113
15114 2021-03-31 Jan Hubicka <jh@suse.cz>
15115
15116 PR lto/99447
15117 * cgraph.c (cgraph_node::release_body): Remove all callers and
15118 references.
15119 * cgraphclones.c (cgraph_node::materialize_clone): Do not do it here.
15120 * cgraphunit.c (cgraph_node::expand): And here.
15121
15122 2021-03-31 Martin Liska <mliska@suse.cz>
15123
15124 * ipa-modref.c (analyze_ssa_name_flags): Fix coding style
15125 and one negated condition.
15126
15127 2021-03-31 Jakub Jelinek <jakub@redhat.com>
15128 Richard Sandiford <richard.sandiford@arm.com>
15129
15130 PR target/99813
15131 * config/aarch64/aarch64.md (*add<mode>3_poly_1): Swap Uai and Uav
15132 constraints on operands[2] and similarly 0 and rk constraints
15133 on operands[1] corresponding to that.
15134
15135 2021-03-31 Jakub Jelinek <jakub@redhat.com>
15136
15137 PR bootstrap/98860
15138 * configure.ac (HAVE_LD_BROKEN_PE_DWARF5): New AC_DEFINE if PECOFF
15139 linker doesn't support DWARF sections new in DWARF5.
15140 * config/i386/i386-options.c (ix86_option_override_internal): Default
15141 to dwarf_version 4 if HAVE_LD_BROKEN_PE_DWARF5 for TARGET_PECOFF
15142 targets.
15143 * config.in: Regenerated.
15144 * configure: Regenerated.
15145
15146 2021-03-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15147
15148 PR target/99820
15149 * config/aarch64/aarch64.c (aarch64_analyze_loop_vinfo): Check for
15150 available issue_info before using it.
15151
15152 2021-03-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15153
15154 PR target/99822
15155 * config/aarch64/aarch64.md (sub<mode>3_compare1_imm): Do not allow zero
15156 in operand 1.
15157
15158 2021-03-30 Xionghu Luo <luoxhu@linux.ibm.com>
15159
15160 PR target/99718
15161 * config/rs6000/altivec.md (altivec_lvsl_reg): Change to ...
15162 (altivec_lvsl_reg_<mode>): ... this.
15163 (altivec_lvsr_reg): Change to ...
15164 (altivec_lvsr_reg_<mode>): ... this.
15165 * config/rs6000/predicates.md (vec_set_index_operand): New.
15166 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
15167 Enable 32bit variable vec_insert for all TARGET_VSX.
15168 * config/rs6000/rs6000.c (rs6000_expand_vector_set_var_p9):
15169 Enable 32bit variable vec_insert for p9 and above.
15170 (rs6000_expand_vector_set_var_p8): Rename to ...
15171 (rs6000_expand_vector_set_var_p7): ... this.
15172 (rs6000_expand_vector_set): Use TARGET_VSX and adjust assert
15173 position.
15174 * config/rs6000/vector.md (vec_set<mode>): Use vec_set_index_operand.
15175 * config/rs6000/vsx.md (xl_len_r): Use gen_altivec_lvsl_reg_di and
15176 gen_altivec_lvsr_reg_di.
15177
15178 2021-03-30 H.J. Lu <hjl.tools@gmail.com>
15179
15180 PR target/99744
15181 * config/i386/ia32intrin.h (__rdtsc): Defined as macro.
15182 (__rdtscp): Likewise.
15183
15184 2021-03-30 Tamar Christina <tamar.christina@arm.com>
15185
15186 PR tree-optimization/99825
15187 * tree-vect-slp-patterns.c (vect_check_evenodd_blend):
15188 Reject non-mult 2 lanes.
15189
15190 2021-03-30 Richard Earnshaw <rearnsha@arm.com>
15191
15192 PR target/99773
15193 * config/arm/arm.c (arm_file_start): Fix emission of
15194 Tag_ABI_VFP_args attribute.
15195
15196 2021-03-30 Richard Biener <rguenther@suse.de>
15197
15198 PR tree-optimization/99824
15199 * stor-layout.c (set_min_and_max_values_for_integral_type):
15200 Assert the precision is within the bounds of
15201 WIDE_INT_MAX_PRECISION.
15202 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use
15203 the outermost component ref only to lower the access size
15204 and initialize that from the access type.
15205
15206 2021-03-30 Richard Sandiford <richard.sandiford@arm.com>
15207
15208 PR target/98136
15209 * config/aarch64/aarch64.md (mov<mode>): Pass multi-instruction
15210 CONST_INTs to aarch64_expand_mov_immediate when called after RA.
15211
15212 2021-03-30 Mihailo Stojanovic <mihailo.stojanovic@typhoon-hil.com>
15213
15214 * config/aarch64/aarch64.md
15215 (<optab>_trunc<fcvt_target><GPI:mode>2): Set the "arch"
15216 attribute to disambiguate between SIMD and FP variants of the
15217 instruction.
15218
15219 2021-03-29 Jan Hubicka <hubicka@ucw.cz>
15220
15221 * ipa-modref.c (merge_call_lhs_flags): Correct handling of deref.
15222 (analyze_ssa_name_flags): Fix typo in comment.
15223
15224 2021-03-29 Alex Coplan <alex.coplan@arm.com>
15225
15226 PR target/99216
15227 * config/aarch64/aarch64-sve-builtins.cc
15228 (function_builder::add_function): Add placeholder_p argument, use
15229 placeholder decls if this is set.
15230 (function_builder::add_unique_function): Instead of conditionally adding
15231 direct overloads, unconditionally add either a direct overload or a
15232 placeholder.
15233 (function_builder::add_overloaded_function): Set placeholder_p if we're
15234 using C++ overloads. Use the obstack for string storage instead
15235 of relying on the tree nodes.
15236 (function_builder::add_overloaded_functions): Don't return early for
15237 m_direct_overloads: we need to add placeholders.
15238 * config/aarch64/aarch64-sve-builtins.h
15239 (function_builder::add_function): Add placeholder_p argument.
15240
15241 2021-03-29 Richard Biener <rguenther@suse.de>
15242
15243 PR tree-optimization/99807
15244 * tree-vect-slp.c (vect_slp_analyze_node_operations_1): Move
15245 assert below VEC_PERM handling.
15246
15247 2021-03-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15248
15249 PR target/99037
15250 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): Use
15251 aarch64_simd_or_scalar_imm_zero to match zeroes. Remove pattern
15252 matching const_int 0.
15253 (move_lo_quad_internal_be_<mode>): Likewise.
15254 (move_lo_quad_<mode>): Update for the above.
15255 * config/aarch64/iterators.md (VQ_2E): Delete.
15256
15257 2021-03-29 Jakub Jelinek <jakub@redhat.com>
15258
15259 PR tree-optimization/99777
15260 * fold-const.c (extract_muldiv_1): For conversions, punt on casts from
15261 types other than scalar integral types.
15262
15263 2021-03-28 David Edelsohn <dje.gcc@gmail.com>
15264
15265 * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Do not add
15266 XCOFF TLS reloc decorations.
15267
15268 2021-03-28 Gerald Pfeifer <gerald@pfeifer.com>
15269
15270 * doc/analyzer.texi (Analyzer Internals): Update link to
15271 "A Memory Model for Static Analysis of C Programs".
15272
15273 2021-03-26 David Edelsohn <dje.gcc@gmail.com>
15274
15275 * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Call function.
15276 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align):
15277 Declare.
15278 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align): New.
15279 (rs6000_special_round_type_align): Recursively check innermost first
15280 field.
15281
15282 2021-03-26 Jakub Jelinek <jakub@redhat.com>
15283
15284 PR debug/99334
15285 * dwarf2out.h (struct dw_fde_node): Add rule18 member.
15286 * dwarf2cfi.c (dwarf2out_frame_debug_expr): When handling (set hfp sp)
15287 assignment with drap_reg active, queue reg save for hfp with offset 0
15288 and flush queued reg saves. When handling a push with rule18,
15289 defer queueing reg save for hfp and just assert the offset is 0.
15290 (scan_trace): Assert that fde->rule18 is false.
15291
15292 2021-03-26 Vladimir Makarov <vmakarov@redhat.com>
15293
15294 PR target/99766
15295 * ira-costs.c (record_reg_classes): Put case with
15296 CT_RELAXED_MEMORY adjacent to one with CT_MEMORY.
15297 * ira.c (ira_setup_alts): Ditto.
15298 * lra-constraints.c (process_alt_operands): Ditto.
15299 * recog.c (asm_operand_ok): Ditto.
15300 * reload.c (find_reloads): Ditto.
15301
15302 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
15303
15304 * config/aarch64/aarch64-protos.h
15305 (cpu_addrcost_table::post_modify_ld3_st3): New member variable.
15306 (cpu_addrcost_table::post_modify_ld4_st4): Likewise.
15307 * config/aarch64/aarch64.c (generic_addrcost_table): Update
15308 accordingly, using the same costs as for post_modify.
15309 (exynosm1_addrcost_table, xgene1_addrcost_table): Likewise.
15310 (thunderx2t99_addrcost_table, thunderx3t110_addrcost_table):
15311 (tsv110_addrcost_table, qdf24xx_addrcost_table): Likewise.
15312 (a64fx_addrcost_table): Likewise.
15313 (neoversev1_addrcost_table): New.
15314 (neoversev1_tunings): Use neoversev1_addrcost_table.
15315 (aarch64_address_cost): Use the new post_modify costs for CImode
15316 and XImode.
15317
15318 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
15319
15320 * config/aarch64/aarch64.opt
15321 (-param=aarch64-loop-vect-issue-rate-niters=): New parameter.
15322 * doc/invoke.texi: Document it.
15323 * config/aarch64/aarch64-protos.h (aarch64_base_vec_issue_info)
15324 (aarch64_scalar_vec_issue_info, aarch64_simd_vec_issue_info)
15325 (aarch64_advsimd_vec_issue_info, aarch64_sve_vec_issue_info)
15326 (aarch64_vec_issue_info): New structures.
15327 (cpu_vector_cost): Write comments above the variables rather
15328 than to the side.
15329 (cpu_vector_cost::issue_info): New member variable.
15330 * config/aarch64/aarch64.c: Include gimple-pretty-print.h
15331 and tree-ssa-loop-niter.h.
15332 (generic_vector_cost, a64fx_vector_cost, qdf24xx_vector_cost)
15333 (thunderx_vector_cost, tsv110_vector_cost, cortexa57_vector_cost)
15334 (exynosm1_vector_cost, xgene1_vector_cost, thunderx2t99_vector_cost)
15335 (thunderx3t110_vector_cost): Initialize issue_info to null.
15336 (neoversev1_scalar_issue_info, neoversev1_advsimd_issue_info)
15337 (neoversev1_sve_issue_info, neoversev1_vec_issue_info): New structures.
15338 (neoversev1_vector_cost): Use them.
15339 (aarch64_vec_op_count, aarch64_sve_op_count): New structures.
15340 (aarch64_vector_costs::saw_sve_only_op): New member variable.
15341 (aarch64_vector_costs::num_vector_iterations): Likewise.
15342 (aarch64_vector_costs::scalar_ops): Likewise.
15343 (aarch64_vector_costs::advsimd_ops): Likewise.
15344 (aarch64_vector_costs::sve_ops): Likewise.
15345 (aarch64_vector_costs::seen_loads): Likewise.
15346 (aarch64_simd_vec_costs_for_flags): New function.
15347 (aarch64_analyze_loop_vinfo): Initialize num_vector_iterations.
15348 Count the number of predicate operations required by SVE WHILE
15349 instructions.
15350 (aarch64_comparison_type, aarch64_multiply_add_p): New functions.
15351 (aarch64_sve_only_stmt_p, aarch64_in_loop_reduction_latency): Likewise.
15352 (aarch64_count_ops): Likewise.
15353 (aarch64_add_stmt_cost): Record whether see an SVE operation
15354 that cannot currently be implementing using Advanced SIMD.
15355 Record issue information about the scalar, Advanced SIMD
15356 and (where relevant) SVE versions of a loop.
15357 (aarch64_vec_op_count::dump): New function.
15358 (aarch64_sve_op_count::dump): Likewise.
15359 (aarch64_estimate_min_cycles_per_iter): Likewise.
15360 (aarch64_adjust_body_cost): If issue information is available,
15361 try to compare the issue rates of the various loop implementations
15362 and increase or decrease the vector body cost accordingly.
15363
15364 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
15365
15366 * config/aarch64/aarch64.c (aarch64_detect_vector_stmt_subtype):
15367 Assume a zero cost for induction phis.
15368
15369 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
15370
15371 * config/aarch64/aarch64.c (aarch64_embedded_comparison_type): New
15372 function.
15373 (aarch64_adjust_stmt_cost): Add the costs of embedded scalar and
15374 vector comparisons.
15375
15376 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
15377
15378 * config/aarch64/aarch64.c (aarch64_detect_scalar_stmt_subtype):
15379 New function.
15380 (aarch64_add_stmt_cost): Call it.
15381
15382 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
15383
15384 * config/aarch64/aarch64-tuning-flags.def (matched_vector_throughput):
15385 New tuning parameter.
15386 * config/aarch64/aarch64.c (neoversev1_tunings): Use it.
15387 (aarch64_estimated_sve_vq): New function.
15388 (aarch64_vector_costs::analyzed_vinfo): New member variable.
15389 (aarch64_vector_costs::is_loop): Likewise.
15390 (aarch64_vector_costs::unrolled_advsimd_niters): Likewise.
15391 (aarch64_vector_costs::unrolled_advsimd_stmts): Likewise.
15392 (aarch64_record_potential_advsimd_unrolling): New function.
15393 (aarch64_analyze_loop_vinfo, aarch64_analyze_bb_vinfo): Likewise.
15394 (aarch64_add_stmt_cost): Call aarch64_analyze_loop_vinfo or
15395 aarch64_analyze_bb_vinfo on the first use of a costs structure.
15396 Detect whether we're vectorizing a loop for SVE that might be
15397 completely unrolled if it used Advanced SIMD instead.
15398 (aarch64_adjust_body_cost_for_latency): New function.
15399 (aarch64_finish_cost): Call it.
15400
15401 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
15402
15403 * config/aarch64/aarch64.c (aarch64_vector_costs): New structure.
15404 (aarch64_init_cost): New function.
15405 (aarch64_add_stmt_cost): Use aarch64_vector_costs instead of
15406 the default unsigned[3].
15407 (aarch64_finish_cost, aarch64_destroy_cost_data): New functions.
15408 (TARGET_VECTORIZE_INIT_COST): Override.
15409 (TARGET_VECTORIZE_FINISH_COST): Likewise.
15410 (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
15411
15412 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
15413
15414 * config/aarch64/aarch64.c (neoversev1_advsimd_vector_cost)
15415 (neoversev1_sve_vector_cost): New cost structures.
15416 (neoversev1_vector_cost): Likewise.
15417 (neoversev1_tunings): Use them. Enable use_new_vector_costs.
15418
15419 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
15420
15421 * config/aarch64/aarch64-protos.h
15422 (sve_vec_cost::scatter_store_elt_cost): New member variable.
15423 * config/aarch64/aarch64.c (generic_sve_vector_cost): Update
15424 accordingly, taking the cost from the cost of a scalar_store.
15425 (a64fx_sve_vector_cost): Likewise.
15426 (aarch64_detect_vector_stmt_subtype): Detect scatter stores.
15427
15428 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
15429
15430 * config/aarch64/aarch64-protos.h
15431 (simd_vec_cost::store_elt_extra_cost): New member variable.
15432 * config/aarch64/aarch64.c (generic_advsimd_vector_cost): Update
15433 accordingly, using the vec_to_scalar cost for the new field.
15434 (generic_sve_vector_cost, a64fx_advsimd_vector_cost): Likewise.
15435 (a64fx_sve_vector_cost, qdf24xx_advsimd_vector_cost): Likewise.
15436 (thunderx_advsimd_vector_cost, tsv110_advsimd_vector_cost): Likewise.
15437 (cortexa57_advsimd_vector_cost, exynosm1_advsimd_vector_cost)
15438 (xgene1_advsimd_vector_cost, thunderx2t99_advsimd_vector_cost)
15439 (thunderx3t110_advsimd_vector_cost): Likewise.
15440 (aarch64_detect_vector_stmt_subtype): Detect single-element stores.
15441
15442 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
15443
15444 * config/aarch64/aarch64-protos.h (simd_vec_cost::ld2_st2_permute_cost)
15445 (simd_vec_cost::ld3_st3_permute_cost): New member variables.
15446 (simd_vec_cost::ld4_st4_permute_cost): Likewise.
15447 * config/aarch64/aarch64.c (generic_advsimd_vector_cost): Update
15448 accordingly, using zero for the new costs.
15449 (generic_sve_vector_cost, a64fx_advsimd_vector_cost): Likewise.
15450 (a64fx_sve_vector_cost, qdf24xx_advsimd_vector_cost): Likewise.
15451 (thunderx_advsimd_vector_cost, tsv110_advsimd_vector_cost): Likewise.
15452 (cortexa57_advsimd_vector_cost, exynosm1_advsimd_vector_cost)
15453 (xgene1_advsimd_vector_cost, thunderx2t99_advsimd_vector_cost)
15454 (thunderx3t110_advsimd_vector_cost): Likewise.
15455 (aarch64_ld234_st234_vectors): New function.
15456 (aarch64_adjust_stmt_cost): Likewise.
15457 (aarch64_add_stmt_cost): Call aarch64_adjust_stmt_cost if using
15458 the new vector costs.
15459
15460 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
15461
15462 * config/aarch64/aarch64-protos.h (sve_vec_cost): Turn into a
15463 derived class of simd_vec_cost. Add information about CLAST[AB]
15464 and FADDA instructions.
15465 * config/aarch64/aarch64.c (generic_sve_vector_cost): Update
15466 accordingly, using the vec_to_scalar costs for the new fields.
15467 (a64fx_sve_vector_cost): Likewise.
15468 (aarch64_reduc_type): New function.
15469 (aarch64_sve_in_loop_reduction_latency): Likewise.
15470 (aarch64_detect_vector_stmt_subtype): Take a vinfo parameter.
15471 Use aarch64_sve_in_loop_reduction_latency to handle SVE reductions
15472 that occur in the loop body.
15473 (aarch64_add_stmt_cost): Update call accordingly.
15474
15475 2021-03-26 Richard Sandiford <richard.sandiford@arm.com>
15476
15477 * config/aarch64/aarch64-tuning-flags.def (use_new_vector_costs):
15478 New tuning flag.
15479 * config/aarch64/aarch64-protos.h (simd_vec_cost): Put comments
15480 above the fields rather than to the right.
15481 (simd_vec_cost::reduc_i8_cost): New member variable.
15482 (simd_vec_cost::reduc_i16_cost): Likewise.
15483 (simd_vec_cost::reduc_i32_cost): Likewise.
15484 (simd_vec_cost::reduc_i64_cost): Likewise.
15485 (simd_vec_cost::reduc_f16_cost): Likewise.
15486 (simd_vec_cost::reduc_f32_cost): Likewise.
15487 (simd_vec_cost::reduc_f64_cost): Likewise.
15488 * config/aarch64/aarch64.c (generic_advsimd_vector_cost): Update
15489 accordingly, using the vec_to_scalar_cost for the new fields.
15490 (generic_sve_vector_cost, a64fx_advsimd_vector_cost): Likewise.
15491 (a64fx_sve_vector_cost, qdf24xx_advsimd_vector_cost): Likewise.
15492 (thunderx_advsimd_vector_cost, tsv110_advsimd_vector_cost): Likewise.
15493 (cortexa57_advsimd_vector_cost, exynosm1_advsimd_vector_cost)
15494 (xgene1_advsimd_vector_cost, thunderx2t99_advsimd_vector_cost)
15495 (thunderx3t110_advsimd_vector_cost): Likewise.
15496 (aarch64_use_new_vector_costs_p): New function.
15497 (aarch64_simd_vec_costs): New function, split out from...
15498 (aarch64_builtin_vectorization_cost): ...here.
15499 (aarch64_is_reduction): New function.
15500 (aarch64_detect_vector_stmt_subtype): Likewise.
15501 (aarch64_add_stmt_cost): Call aarch64_detect_vector_stmt_subtype if
15502 using the new vector costs.
15503
15504 2021-03-26 Iain Buclaw <ibuclaw@gdcproject.org>
15505
15506 PR ipa/99466
15507 * tree-emutls.c (get_emutls_init_templ_addr): Mark initializer of weak
15508 TLS declarations as public.
15509
15510 2021-03-26 Iain Buclaw <ibuclaw@gdcproject.org>
15511
15512 * config/aarch64/aarch64-d.c (IN_TARGET_CODE): Define.
15513 * config/arm/arm-d.c (IN_TARGET_CODE): Likewise.
15514 * config/i386/i386-d.c (IN_TARGET_CODE): Likewise.
15515 * config/mips/mips-d.c (IN_TARGET_CODE): Likewise.
15516 * config/pa/pa-d.c (IN_TARGET_CODE): Likewise.
15517 * config/riscv/riscv-d.c (IN_TARGET_CODE): Likewise.
15518 * config/rs6000/rs6000-d.c (IN_TARGET_CODE): Likewise.
15519 * config/s390/s390-d.c (IN_TARGET_CODE): Likewise.
15520 * config/sparc/sparc-d.c (IN_TARGET_CODE): Likewise.
15521
15522 2021-03-26 Iain Buclaw <ibuclaw@gdcproject.org>
15523
15524 PR d/91595
15525 * config.gcc (*-*-cygwin*): Add winnt-d.o
15526 (*-*-mingw*): Likewise.
15527 * config/i386/cygwin.h (EXTRA_TARGET_D_OS_VERSIONS): New macro.
15528 * config/i386/mingw32.h (EXTRA_TARGET_D_OS_VERSIONS): Likewise.
15529 * config/i386/t-cygming: Add winnt-d.o.
15530 * config/i386/winnt-d.c: New file.
15531
15532 2021-03-26 Iain Buclaw <ibuclaw@gdcproject.org>
15533
15534 * config/freebsd-d.c: Include memmodel.h.
15535
15536 2021-03-26 Iain Buclaw <ibuclaw@gdcproject.org>
15537
15538 PR d/99691
15539 * config.gcc (*-*-openbsd*): Add openbsd-d.o.
15540 * config/t-openbsd: Add openbsd-d.o.
15541 * config/openbsd-d.c: New file.
15542
15543 2021-03-25 Stam Markianos-Wright <stam.markianos-wright@arm.com>
15544
15545 PR tree-optimization/96974
15546 * tree-vect-stmts.c (vect_get_vector_types_for_stmt): Replace assert
15547 with graceful exit.
15548
15549 2021-03-25 H.J. Lu <hjl.tools@gmail.com>
15550
15551 Revert:
15552 2021-03-25 H.J. Lu <hjl.tools@gmail.com>
15553
15554 PR target/98209
15555 PR target/99744
15556 * config/i386/i386.c (ix86_can_inline_p): Don't check ISA for
15557 always_inline in system headers.
15558
15559 2021-03-25 Kewen Lin <linkw@linux.ibm.com>
15560
15561 * tree-vect-loop.c (vect_model_reduction_cost): Init inside_cost.
15562
15563 2021-03-25 Jakub Jelinek <jakub@redhat.com>
15564
15565 PR c++/99565
15566 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF_SAME_FIELD.
15567 * fold-const.c (operand_compare::operand_equal_p): Don't compare
15568 field offsets if OEP_ADDRESS_OF_SAME_FIELD.
15569
15570 2021-03-25 H.J. Lu <hjl.tools@gmail.com>
15571
15572 PR target/98209
15573 PR target/99744
15574 * config/i386/i386.c (ix86_can_inline_p): Don't check ISA for
15575 always_inline in system headers.
15576
15577 2021-03-25 Richard Biener <rguenther@suse.de>
15578
15579 PR tree-optimization/99746
15580 * tree-vect-slp-patterns.c (complex_pattern::build): Do not mark
15581 the scalar stmt as patterned. Instead set up required things
15582 manually.
15583
15584 2021-03-25 Xionghu Luo <luoxhu@linux.ibm.com>
15585
15586 * config/rs6000/rs6000.c (power8_costs): Change l2 cache
15587 from 256 to 512.
15588
15589 2021-03-24 Martin Liska <mliska@suse.cz>
15590
15591 PR target/99753
15592 * common/config/i386/i386-common.c (ARRAY_SIZE): Fix off-by-one
15593 error.
15594 * config/i386/i386-options.c (ix86_option_override_internal):
15595 Add run-time assert.
15596
15597 2021-03-24 Martin Jambor <mjambor@suse.cz>
15598
15599 PR ipa/99122
15600 * ipa-cp.c (initialize_node_lattices): Mark as bottom all
15601 parameters with unknown type.
15602 (ipacp_value_safe_for_type): New function.
15603 (propagate_vals_across_arith_jfunc): Verify that the constant type
15604 can be used for a type of the formal parameter.
15605 (propagate_vals_across_ancestor): Likewise.
15606 (propagate_scalar_across_jump_function): Likewise. Pass the type
15607 also to propagate_vals_across_ancestor.
15608
15609 2021-03-24 Christophe Lyon <christophe.lyon@linaro.org>
15610
15611 PR target/99727
15612 * config/arm/mve.md (movmisalign<mode>_mve_store): Use Ux
15613 constraint.
15614 (movmisalign<mode>_mve_load): Likewise.
15615
15616 2021-03-24 Jakub Jelinek <jakub@redhat.com>
15617
15618 PR target/99724
15619 * config/arm/vec-common.md (one_cmpl<mode>2, neg<mode>2,
15620 movmisalign<mode>): Disable expanders for TARGET_REALLY_IWMMXT.
15621
15622 2021-03-24 Alexandre Oliva <oliva@adacore.com>
15623
15624 * doc/sourcebuild.texi (sysconf): New effective target.
15625
15626 2021-03-24 Alexandre Oliva <oliva@adacore.com>
15627
15628 * config/i386/predicates.md (reg_or_const_vec_operand): New.
15629 * config/i386/sse.md (ssse3_pshufbv8qi3): Add an expander for
15630 the now *-prefixed insn_and_split, turn the splitter const vec
15631 into an input for the insn, making it an ignored immediate for
15632 non-split cases, and loaded into the scratch register
15633 otherwise.
15634
15635 2021-03-23 Vladimir N. Makarov <vmakarov@redhat.com>
15636
15637 PR target/99581
15638 * config/aarch64/constraints.md (Utq, UOb, UOh, UOw, UOd, UOty):
15639 Use define_relaxed_memory_constraint for them.
15640
15641 2021-03-23 Iain Sandoe <iain@sandoe.co.uk>
15642
15643 PR target/99733
15644 * config/host-darwin.c (darwin_gt_pch_use_address): Add a
15645 colon to the diagnostic message.
15646
15647 2021-03-23 Ilya Leoshkevich <iii@linux.ibm.com>
15648
15649 * fwprop.c (fwprop_propagation::fwprop_propagation): Look at
15650 set_info's uses.
15651 (try_fwprop_subst_note): Use set_info instead of insn_info.
15652 (try_fwprop_subst_pattern): Likewise.
15653 (try_fwprop_subst_notes): Likewise.
15654 (try_fwprop_subst): Likewise.
15655 (forward_propagate_subreg): Likewise.
15656 (forward_propagate_and_simplify): Likewise.
15657 (forward_propagate_into): Likewise.
15658 * rtl-ssa/accesses.h (set_info::single_nondebug_use) New
15659 method.
15660 (set_info::single_nondebug_insn_use): Likewise.
15661 (set_info::single_phi_use): Likewise.
15662 * rtl-ssa/member-fns.inl (set_info::single_nondebug_use) New
15663 method.
15664 (set_info::single_nondebug_insn_use): Likewise.
15665 (set_info::single_phi_use): Likewise.
15666
15667 2021-03-23 Christophe Lyon <christophe.lyon@linaro.org>
15668
15669 * doc/sourcebuild.texi (arm_dsp_ok, arm_dsp): Document.
15670
15671 2021-03-23 Jakub Jelinek <jakub@redhat.com>
15672
15673 PR target/99540
15674 * config/aarch64/aarch64.c (aarch64_add_offset): Tell
15675 expand_mult to perform an unsigned rather than a signed
15676 multiplication.
15677
15678 2021-03-23 H.J. Lu <hjl.tools@gmail.com>
15679
15680 PR target/99704
15681 * config/i386/cpuid.h (__cpuid): Add __volatile__.
15682 (__cpuid_count): Likewise.
15683
15684 2021-03-23 Richard Biener <rguenther@suse.de>
15685
15686 PR tree-optimization/99721
15687 * tree-vect-slp.c (vect_slp_analyze_node_operations):
15688 Make sure we can schedule the node.
15689
15690 2021-03-23 Marcus Comstedt <marcus@mc.pp.se>
15691
15692 * config/riscv/riscv.c (riscv_subword): Take endianness into
15693 account when calculating the byte offset.
15694
15695 2021-03-23 Marcus Comstedt <marcus@mc.pp.se>
15696
15697 * config/riscv/predicates.md (subreg_lowpart_operator): New predicate
15698 * config/riscv/riscv.md (*addsi3_extended2, *subsi3_extended2)
15699 (*negsi2_extended2, *mulsi3_extended2, *<optab>si3_mask)
15700 (*<optab>si3_mask_1, *<optab>di3_mask, *<optab>di3_mask_1)
15701 (*<optab>si3_extend_mask, *<optab>si3_extend_mask_1): Use
15702 new predicate "subreg_lowpart_operator"
15703
15704 2021-03-23 Marcus Comstedt <marcus@mc.pp.se>
15705
15706 * config/riscv/riscv.c (riscv_swap_instruction): New function
15707 to byteswap an SImode rtx containing an instruction.
15708 (riscv_trampoline_init): Byteswap the generated instructions
15709 when needed.
15710
15711 2021-03-23 Marcus Comstedt <marcus@mc.pp.se>
15712
15713 * common/config/riscv/riscv-common.c
15714 (TARGET_DEFAULT_TARGET_FLAGS): Set default endianness.
15715 * config.gcc (riscv32be-*, riscv64be-*): Set
15716 TARGET_BIG_ENDIAN_DEFAULT to 1.
15717 * config/riscv/elf.h (LINK_SPEC): Change -melf* value
15718 depending on default endianness.
15719 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
15720 * config/riscv/linux.h (LINK_SPEC): Likewise.
15721 * config/riscv/riscv.c (TARGET_DEFAULT_TARGET_FLAGS): Set
15722 default endianness.
15723 * config/riscv/riscv.h (DEFAULT_ENDIAN_SPEC): New macro.
15724
15725 2021-03-23 Marcus Comstedt <marcus@mc.pp.se>
15726
15727 * config/riscv/elf.h (LINK_SPEC): Pass linker endianness flag.
15728 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
15729 * config/riscv/linux.h (LINK_SPEC): Likewise.
15730 * config/riscv/riscv.h (ASM_SPEC): Pass -mbig-endian and
15731 -mlittle-endian.
15732 (BYTES_BIG_ENDIAN): Handle big endian.
15733 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
15734 * config/riscv/riscv.opt (-mbig-endian, -mlittle-endian): New
15735 options.
15736 * doc/invoke.texi (-mbig-endian, -mlittle-endian): Document.
15737
15738 2021-03-23 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
15739
15740 * regcprop.c (find_oldest_value_reg): Ask target whether
15741 different mode is fine for replacement register.
15742
15743 2021-03-23 Aldy Hernandez <aldyh@redhat.com>
15744
15745 PR tree-optimization/99296
15746 * value-range.cc (irange::irange_set_1bit_anti_range): New.
15747 (irange::irange_set_anti_range): Call irange_set_1bit_anti_range
15748 * value-range.h (irange::irange_set_1bit_anti_range): New.
15749
15750 2021-03-22 Vladimir N. Makarov <vmakarov@redhat.com>
15751
15752 PR target/99581
15753 * config/aarch64/constraints.md (UtQ): Use
15754 define_relaxed_memory_constraint for it.
15755 * doc/md.texi (define_relaxed_memory_constraint): Describe it.
15756 * genoutput.c (main): Process DEFINE_RELAXED_MEMORY_CONSTRAINT.
15757 * genpreds.c (constraint_data): Add bitfield is_relaxed_memory.
15758 (have_relaxed_memory_constraints): New static var.
15759 (relaxed_memory_start, relaxed_memory_end): Ditto.
15760 (add_constraint): Add arg is_relaxed_memory. Check name for
15761 relaxed memory. Set up is_relaxed_memory in constraint_data and
15762 have_relaxed_memory_constraints. Adjust calls.
15763 (choose_enum_order): Process relaxed memory.
15764 (write_tm_preds_h): Ditto.
15765 (main): Process DEFINE_RELAXED_MEMORY_CONSTRAINT.
15766 * gensupport.c (process_rtx): Process DEFINE_RELAXED_MEMORY_CONSTRAINT.
15767 * ira-costs.c (record_reg_classes): Process CT_RELAXED_MEMORY.
15768 * ira-lives.c (single_reg_class): Use
15769 insn_extra_relaxed_memory_constraint.
15770 * ira.c (ira_setup_alts): CT_RELAXED_MEMORY.
15771 * lra-constraints.c (valid_address_p): Use
15772 insn_extra_relaxed_memory_constraint instead of other memory
15773 constraints.
15774 (process_alt_operands): Process CT_RELAXED_MEMORY.
15775 (curr_insn_transform): Use insn_extra_relaxed_memory_constraint.
15776 * recog.c (asm_operand_ok, preprocess_constraints): Process
15777 CT_RELAXED_MEMORY.
15778 * reload.c (find_reloads): Ditto.
15779 * rtl.def (DEFINE_RELAXED_MEMORY_CONSTRAINT): New.
15780 * stmt.c (parse_input_constraint): Use
15781 insn_extra_relaxed_memory_constraint.
15782
15783 2021-03-22 Segher Boessenkool <segher@kernel.crashing.org>
15784
15785 PR target/97926
15786 * ubsan.c (ubsan_instrument_float_cast): Don't test for unordered if
15787 there are no NaNs.
15788
15789 2021-03-22 Alex Coplan <alex.coplan@arm.com>
15790
15791 PR target/97252
15792 * config/arm/arm-protos.h (neon_make_constant): Add generate
15793 argument to guard emitting insns, default to true.
15794 * config/arm/arm.c (arm_legitimate_constant_p_1): Reject
15795 CONST_VECTORs which neon_make_constant can't handle.
15796 (neon_vdup_constant): Add generate argument, avoid emitting
15797 insns if it's not set.
15798 (neon_make_constant): Plumb new generate argument through.
15799 * config/arm/constraints.md (Ui): New. Use it...
15800 * config/arm/mve.md (*mve_mov<mode>): ... here.
15801 * config/arm/vec-common.md (movv8hf): Use neon_make_constant to
15802 synthesize constants.
15803
15804 2021-03-22 Richard Biener <rguenther@suse.de>
15805
15806 * debug.h: Add deprecation warning.
15807
15808 2021-03-22 Richard Biener <rguenther@suse.de>
15809
15810 PR tree-optimization/99694
15811 * tree-ssa-sccvn.c (visit_phi): Ignore edges with the
15812 PHI result.
15813
15814 2021-03-22 Kito Cheng <kito.cheng@sifive.com>
15815
15816 PR target/99702
15817 * config/riscv/riscv.c (riscv_expand_block_move): Get RTL value
15818 after type checking.
15819
15820 2021-03-22 Jakub Jelinek <jakub@redhat.com>
15821
15822 PR debug/99562
15823 PR debug/66728
15824 * dwarf2out.c (get_full_len): Use get_precision rather than
15825 min_precision.
15826 (add_const_value_attribute): Make sure add_AT_wide argument has
15827 precision prec rather than some very wide one.
15828
15829 2021-03-22 Kewen Lin <linkw@linux.ibm.com>
15830
15831 * config/rs6000/rs6000.md (*rotldi3_insert_sf,
15832 *mov<SFDF:mode><SFDF2:mode>cc_p9, floatsi<mode>2_lfiwax,
15833 floatsi<mode>2_lfiwax_mem, floatunssi<mode>2_lfiwzx,
15834 floatunssi<mode>2_lfiwzx_mem, *floatsidf2_internal,
15835 *floatunssidf2_internal, fix_trunc<mode>si2_stfiwx,
15836 fix_trunc<mode>si2_internal, fixuns_trunc<mode>si2_stfiwx,
15837 *round32<mode>2_fprs, *roundu32<mode>2_fprs,
15838 *fix_trunc<mode>si2_internal): Fix empty split condition.
15839 * config/rs6000/vsx.md (*vsx_le_undo_permute_<mode>,
15840 vsx_reduc_<VEC_reduc_name>_v2df, vsx_reduc_<VEC_reduc_name>_v4sf,
15841 *vsx_reduc_<VEC_reduc_name>_v2df_scalar,
15842 *vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Likewise.
15843
15844 2021-03-22 Xionghu Luo <luoxhu@linux.ibm.com>
15845
15846 PR target/98914
15847 * config/rs6000/rs6000.c (rs6000_expand_vector_set_var_p9):
15848 Convert idx to DImode.
15849 (rs6000_expand_vector_set_var_p8): Likewise.
15850
15851 2021-03-21 Jakub Jelinek <jakub@redhat.com>
15852
15853 PR debug/99388
15854 * dwarf2out.c (insert_float): Change return type from void to
15855 unsigned, handle GET_MODE_SIZE (mode) == 2 and return element size.
15856 (mem_loc_descriptor, loc_descriptor, add_const_value_attribute):
15857 Adjust callers.
15858
15859 2021-03-20 H.J. Lu <hjl.tools@gmail.com>
15860
15861 PR target/99679
15862 * config/i386/i386.c (construct_container): Check cfun != NULL
15863 before accessing silent_p.
15864
15865 2021-03-20 Ahamed Husni <ahamedhusni73@gmail.com>
15866
15867 * asan.c: Fix typos in comments.
15868
15869 2021-03-20 Vladimir N. Makarov <vmakarov@redhat.com>
15870
15871 PR rtl-optimization/99680
15872 * lra-constraints.c (skip_contraint_modifiers): Rename to skip_constraint_modifiers.
15873 (process_address_1): Check empty constraint before using
15874 CONSTRAINT_LEN.
15875
15876 2021-03-19 Pat Haugen <pthaugen@linux.ibm.com>
15877
15878 * config/rs6000/rs6000.c (power10_cost): New.
15879 (rs6000_option_override_internal): Set Power10 costs.
15880 (rs6000_issue_rate): Set Power10 issue rate.
15881 * config/rs6000/power10.md: Rewrite for Power10.
15882
15883 2021-03-19 Vladimir N. Makarov <vmakarov@redhat.com>
15884
15885 PR target/99663
15886 * lra-constraints.c (process_address_1): Don't use unknown
15887 constraint for address constraint.
15888
15889 2021-03-19 Iain Sandoe <iain@sandoe.co.uk>
15890
15891 PR target/99661
15892 * config.gcc (powerpc-*-darwin8): Delete the reference to
15893 the now removed darwin8.h.
15894
15895 2021-03-19 Olivier Hainque <hainque@adacore.com>
15896
15897 PR target/99660
15898 * config/vxworksae.h (VX_CPU_PREFIX): Define.
15899
15900 2021-03-19 John David Anglin <danglin@gcc.gnu.org>
15901
15902 * config/pa/pa.c (import_milli): Use memcpy instead of strncpy.
15903
15904 2021-03-19 Tamar Christina <tamar.christina@arm.com>
15905
15906 PR tree-optimization/99656
15907 * tree-vect-slp-patterns.c (linear_loads_p,
15908 complex_add_pattern::matches, is_eq_or_top,
15909 vect_validate_multiplication, complex_mul_pattern::matches,
15910 complex_fms_pattern::matches): Remove complex_perm_kinds_t.
15911 * tree-vectorizer.h: (complex_load_perm_t): Removed.
15912 (slp_tree_to_load_perm_map_t): Use complex_perm_kinds_t instead of
15913 complex_load_perm_t.
15914
15915 2021-03-19 H.J. Lu <hjl.tools@gmail.com>
15916
15917 PR target/99652
15918 * config/i386/i386-options.c (ix86_init_machine_status): Set
15919 silent_p to true.
15920 * config/i386/i386.c (init_cumulative_args): Set silent_p to
15921 false.
15922 (construct_container): Return early for return and argument
15923 errors if silent_p is true.
15924 * config/i386/i386.h (machine_function): Add silent_p.
15925
15926 2021-03-19 Jakub Jelinek <jakub@redhat.com>
15927
15928 PR target/99593
15929 * config/arm/constraints.md (Ds): New constraint.
15930 * config/arm/vec-common.md (mve_vshlq_<supf><mode>): Use w,Ds
15931 constraint instead of w,Dm.
15932
15933 2021-03-19 Andrew Stubbs <ams@codesourcery.com>
15934
15935 * config/gcn/gcn.c (gcn_parse_amdgpu_hsa_kernel_attribute): Fix quotes
15936 in error message.
15937
15938 2021-03-19 Eric Botcazou <ebotcazou@adacore.com>
15939
15940 PR middle-end/99641
15941 * fold-const.c (native_encode_initializer) <CONSTRUCTOR>: For an
15942 array type, do the computation of the current position in sizetype.
15943
15944 2021-03-18 Vladimir N. Makarov <vmakarov@redhat.com>
15945
15946 PR target/99422
15947 * lra-constraints.c (process_address_1): Use lookup_constraint
15948 only for a single constraint.
15949
15950 2021-03-18 Martin Sebor <msebor@redhat.com>
15951
15952 PR middle-end/99502
15953 * gimple-array-bounds.cc (inbounds_vbase_memaccess_p): Rename...
15954 (inbounds_memaccess_p): ...to this. Check the ending offset of
15955 the accessed member.
15956
15957 2021-03-18 Andrew Stubbs <ams@codesourcery.com>
15958
15959 * config/gcn/gcn.c (gcn_parse_amdgpu_hsa_kernel_attribute): Add %< and
15960 %> quote markers to error messages.
15961 (gcn_goacc_validate_dims): Likewise.
15962 (gcn_conditional_register_usage): Remove exclaimation mark from error
15963 message.
15964 (gcn_vectorize_vec_perm_const): Ensure perm is fully uninitialized.
15965
15966 2021-03-18 Jan Hubicka <hubicka@ucw.cz>
15967
15968 * config/i386/x86-tune-costs.h (struct processor_costs): Fix costs of
15969 integer divides1.
15970
15971 2021-03-18 Sinan Lin <sinan@isrc.iscas.ac.cn>
15972 Kito Cheng <kito.cheng@sifive.com>
15973
15974 * config/riscv/riscv.c (riscv_block_move_straight): Change type
15975 to unsigned HOST_WIDE_INT for parameter and local variable with
15976 HOST_WIDE_INT type.
15977 (riscv_adjust_block_mem): Ditto.
15978 (riscv_block_move_loop): Ditto.
15979 (riscv_expand_block_move): Ditto.
15980
15981 2021-03-18 Nick Clifton <nickc@redhat.com>
15982
15983 * config/v850/v850.c (construct_restore_jr): Increase static
15984 buffer size.
15985 (construct_save_jarl): Likewise.
15986 * config/v850/v850.h (DWARF2_DEBUGGING_INFO): Define.
15987
15988 2021-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15989
15990 * config/aarch64/aarch64.c (aarch64_adjust_generic_arch_tuning): Define.
15991 (aarch64_override_options_internal): Use it.
15992 (generic_tunings): Add AARCH64_EXTRA_TUNE_CSE_SVE_VL_CONSTANTS to
15993 tune_flags.
15994
15995 2021-03-17 Sandra Loosemore <sandra@codesourcery.com>
15996
15997 * config/nios2/nios2.c (nios2_custom_check_insns): Clean up
15998 error message format issues.
15999 (nios2_option_override): Likewise.
16000 (nios2_expand_fpu_builtin): Likewise.
16001 (nios2_init_custom_builtins): Adjust to avoid bogus strncpy
16002 truncation warning.
16003 (nios2_expand_custom_builtin): More error message format fixes.
16004 (nios2_expand_rdwrctl_builtin): Likewise.
16005 (nios2_expand_rdprs_builtin): Likewise.
16006 (nios2_expand_eni_builtin): Likewise.
16007 (nios2_expand_builtin): Likewise.
16008 (nios2_register_custom_code): Likewise.
16009 (nios2_valid_target_attribute_rec): Likewise.
16010 (nios2_add_insn_asm): Fix uninitialized variable warning.
16011
16012 2021-03-17 Jan Hubicka <jh@suse.cz>
16013
16014 * config/i386/x86-tune-costs.h (struct processor_costs): Update costs
16015 of gather to match reality.
16016 * config/i386/x86-tune.def (X86_TUNE_USE_GATHER): Enable for znver3.
16017
16018 2021-03-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16019
16020 * config/aarch64/aarch64-builtins.c (aarch64_expand_rng_builtin): Use EQ
16021 to compare against CC_REG rather than NE.
16022
16023 2021-03-17 H.J. Lu <hjl.tools@gmail.com>
16024
16025 PR target/99504
16026 * config/i386/i386.c (ix86_force_load_from_GOT_p): Support
16027 inline assembly statements.
16028 (ix86_print_operand): Update 'P' handling for -fno-plt.
16029
16030 2021-03-17 Tamar Christina <tamar.christina@arm.com>
16031
16032 PR target/99542
16033 * config/aarch64/aarch64.c
16034 (aarch64_simd_clone_compute_vecsize_and_simdlen): Remove unused var.
16035
16036 2021-03-16 Segher Boessenkool <segher@kernel.crashing.org>
16037
16038 PR target/98092
16039 * config/rs6000/predicates.md (branch_comparison_operator): Allow
16040 ordered and unordered for CCFPmode, if flag_finite_math_only.
16041
16042 2021-03-16 Jakub Jelinek <jakub@redhat.com>
16043
16044 PR target/99600
16045 * config/i386/i386-expand.c (ix86_split_lea_for_addr): Emit a MULT
16046 rather than ASHIFT.
16047 * config/i386/i386.md (mult by 1248 into ashift): New splitter.
16048
16049 2021-03-16 Martin Liska <mliska@suse.cz>
16050
16051 PR target/99592
16052 * optc-save-gen.awk: Add flag_ipa_ra to exceptions for
16053 cl_optimization_compare function.
16054
16055 2021-03-16 Ilya Leoshkevich <iii@linux.ibm.com>
16056
16057 * config/s390/s390.c (f_constraint_p): Treat "fv" constraints
16058 as "v".
16059
16060 2021-03-16 Jakub Jelinek <jakub@redhat.com>
16061
16062 PR target/99563
16063 * config/i386/i386.h (struct machine_function): Add
16064 has_explicit_vzeroupper bitfield.
16065 * config/i386/i386-expand.c (ix86_expand_builtin): Set
16066 cfun->machine->has_explicit_vzeroupper when expanding
16067 IX86_BUILTIN_VZEROUPPER.
16068 * config/i386/i386-features.c (rest_of_handle_insert_vzeroupper):
16069 Do the mode switching only when TARGET_VZEROUPPER, expensive
16070 optimizations turned on and not optimizing for size.
16071 (pass_insert_vzeroupper::gate): Enable even when
16072 cfun->machine->has_explicit_vzeroupper is set.
16073
16074 2021-03-16 Jakub Jelinek <jakub@redhat.com>
16075
16076 PR target/99542
16077 * config/aarch64/aarch64.c
16078 (aarch64_simd_clone_compute_vecsize_and_simdlen): If not a function
16079 definition, walk TYPE_ARG_TYPES list if non-NULL for argument types
16080 instead of DECL_ARGUMENTS. Ignore types for uniform arguments.
16081
16082 2021-03-15 Richard Biener <rguenther@suse.de>
16083
16084 PR tree-optimization/98834
16085 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle missing
16086 subsetting by truncating the access size.
16087
16088 2021-03-15 Jan Hubicka <hubicka@ucw.cz>
16089
16090 * config/i386/i386-options.c (processor_cost_table): Add znver3_cost.
16091 * config/i386/x86-tune-costs.h (znver3_cost): New gobal variable; copy
16092 of znver2_cost.
16093
16094 2021-03-15 Martin Liska <mliska@suse.cz>
16095
16096 * spellcheck.c: Add missing comma in initialization.
16097
16098 2021-03-14 Uroš Bizjak <ubizjak@gmail.com>
16099
16100 * config/i386/sse.md (*vec_extract<mode>): Merge alternative 0 with
16101 alternative 2 and alternative 1 with alternative 3 using
16102 YW register constraint.
16103 (*vec_extract<PEXTR_MODE12:mode>_zext): Merge alternatives
16104 using YW register constraint.
16105 (*vec_extractv16qi_zext): Ditto.
16106 (*vec_extractv4si): Merge alternatives 4 and 5
16107 using Yw register constraint.
16108 (*ssse3_palignr<mode>_perm): Use Yw instead of v for alternative 3.
16109
16110 2021-03-13 Martin Sebor <msebor@redhat.com>
16111
16112 PR tree-optimization/99489
16113 * builtins.c (gimple_call_alloc_size): Fail gracefully when argument
16114 is not a call statement.
16115
16116 2021-03-13 Jakub Jelinek <jakub@redhat.com>
16117
16118 PR tree-optimization/99544
16119 * match.pd (X + (X << C) -> X * (1 + (1 << C))): Don't simplify
16120 if for vector types multiplication can't be done in type's mode.
16121
16122 2021-03-12 Eric Botcazou <ebotcazou@adacore.com>
16123
16124 PR target/99422
16125 * config/sparc/constraints.md (w): Rename to...
16126 (W): ... this and ditch previous implementation.
16127 * config/sparc/sparc.md (*movdi_insn_sp64): Replace W with m.
16128 (*movdf_insn_sp64): Likewise.
16129 (*mov<VM64:mode>_insn_sp64): Likewise.
16130 * config/sparc/sync.md (*atomic_compare_and_swap<mode>_1): Replace
16131 w with W.
16132 (atomic_compare_and_swap_leon3_1): Likewise.
16133 (*atomic_compare_and_swapdi_v8plus): Likewise.
16134 * config/sparc/sparc.c (memory_ok_for_ldd): Remove useless test on
16135 architecture and add missing address validity check during LRA.
16136
16137 2021-03-12 Tobias Burnus <tobias@codesourcery.com>
16138
16139 PR fortran/98858
16140 * gimplify.c (omp_add_variable): Handle NULL_TREE as size
16141 occuring for assumed-size arrays in use_device_{ptr,addr}.
16142
16143 2021-03-12 Jakub Jelinek <jakub@redhat.com>
16144
16145 PR target/99321
16146 * config/i386/constraints.md (YW): New internal constraint.
16147 * config/i386/sse.md (v_Yw): Add V4TI, V2TI, V1TI and TI cases.
16148 (*<sse2_avx2>_<insn><mode>3<mask_name>,
16149 *<sse2_avx2>_uavg<mode>3<mask_name>, *abs<mode>2,
16150 *<s>mul<mode>3_highpart<mask_name>): Use <v_Yw> instead of v in
16151 constraints.
16152 (<sse2_avx2>_psadbw): Use YW instead of v in constraints.
16153 (*avx2_pmaddwd, *sse2_pmaddwd, *<code>v8hi3, *<code>v16qi3,
16154 avx2_pmaddubsw256, ssse3_pmaddubsw128): Merge last two alternatives
16155 into one, use Yw instead of former x,v.
16156 (ashr<mode>3, <insn><mode>3): Use <v_Yw> instead of x in constraints of
16157 the last alternative.
16158 (<sse2_avx2>_packsswb<mask_name>, <sse2_avx2>_packssdw<mask_name>,
16159 <sse2_avx2>_packuswb<mask_name>, <sse4_1_avx2>_packusdw<mask_name>,
16160 *<ssse3_avx2>_pmulhrsw<mode>3<mask_name>, <ssse3_avx2>_palignr<mode>,
16161 <ssse3_avx2>_pshufb<mode>3<mask_name>): Merge last two alternatives
16162 into one, use <v_Yw> instead of former x,v.
16163 (avx2_interleave_highv32qi<mask_name>,
16164 vec_interleave_highv16qi<mask_name>): Use Yw instead of v in
16165 constraints. Add && <mask_avx512bw_condition> to condition.
16166 (avx2_interleave_lowv32qi<mask_name>,
16167 vec_interleave_lowv16qi<mask_name>,
16168 avx2_interleave_highv16hi<mask_name>,
16169 vec_interleave_highv8hi<mask_name>,
16170 avx2_interleave_lowv16hi<mask_name>, vec_interleave_lowv8hi<mask_name>,
16171 avx2_pshuflw_1<mask_name>, sse2_pshuflw_1<mask_name>,
16172 avx2_pshufhw_1<mask_name>, sse2_pshufhw_1<mask_name>,
16173 avx2_<code>v16qiv16hi2<mask_name>, sse4_1_<code>v8qiv8hi2<mask_name>,
16174 *sse4_1_<code>v8qiv8hi2<mask_name>_1, <sse2_avx2>_<insn><mode>3): Use
16175 Yw instead of v in constraints.
16176 * config/i386/mmx.md (Yv_Yw): New define_mode_attr.
16177 (*mmx_<insn><mode>3, mmx_ashr<mode>3, mmx_<insn><mode>3): Use <Yv_Yw>
16178 instead of Yv in constraints.
16179 (*mmx_<insn><mode>3, *mmx_mulv4hi3, *mmx_smulv4hi3_highpart,
16180 *mmx_umulv4hi3_highpart, *mmx_pmaddwd, *mmx_<code>v4hi3,
16181 *mmx_<code>v8qi3, mmx_pack<s_trunsuffix>swb, mmx_packssdw,
16182 mmx_punpckhbw, mmx_punpcklbw, mmx_punpckhwd, mmx_punpcklwd,
16183 *mmx_uavgv8qi3, *mmx_uavgv4hi3, mmx_psadbw): Use Yw instead of Yv in
16184 constraints.
16185 (*mmx_pinsrw, *mmx_pinsrb, *mmx_pextrw, *mmx_pextrw_zext, *mmx_pextrb,
16186 *mmx_pextrb_zext): Use YW instead of Yv in constraints.
16187 (*mmx_eq<mode>3, mmx_gt<mode>3): Use x instead of Yv in constraints.
16188 (mmx_andnot<mode>3, *mmx_<code><mode>3): Split last alternative into
16189 two, one with just x, another isa avx512vl with v.
16190
16191 2021-03-12 Martin Liska <mliska@suse.cz>
16192
16193 * doc/invoke.texi: Add missing param documentation.
16194
16195 2021-03-11 David Malcolm <dmalcolm@redhat.com>
16196
16197 PR analyzer/96374
16198 * Makefile.in (ANALYZER_OBJS): Add analyzer/feasible-graph.o and
16199 analyzer/trimmed-graph.o.
16200 * doc/analyzer.texi (Analyzer Paths): Rewrite description of
16201 feasibility checking to reflect new implementation.
16202 * doc/invoke.texi (-fdump-analyzer-feasibility): Document new
16203 option.
16204 * shortest-paths.h (shortest_paths::get_shortest_distance): New.
16205
16206 2021-03-11 David Malcolm <dmalcolm@redhat.com>
16207
16208 * digraph.cc (selftest::test_shortest_paths): Update
16209 shortest_paths init for new param. Add test of
16210 SPS_TO_GIVEN_TARGET.
16211 * shortest-paths.h (enum shortest_path_sense): New.
16212 (shortest_paths::shortest_paths): Add "sense" param.
16213 Update for renamings. Generalize to use "sense" param.
16214 (shortest_paths::get_shortest_path): Rename param.
16215 (shortest_paths::m_sense): New field.
16216 (shortest_paths::m_prev): Rename...
16217 (shortest_paths::m_best_edge): ...to this.
16218 (shortest_paths::get_shortest_path): Update for renamings.
16219 Conditionalize flipping of path on sense of traversal.
16220
16221 2021-03-11 David Malcolm <dmalcolm@redhat.com>
16222
16223 * digraph.cc (selftest::test_shortest_paths): Add test coverage
16224 for paths from B and C.
16225 * shortest-paths.h (shortest_paths::shortest_paths): Handle
16226 unreachable nodes, rather than asserting.
16227
16228 2021-03-11 David Edelsohn <dje.gcc@gmail.com>
16229
16230 PR target/99094
16231 * config/rs6000/rs6000.c (rs6000_xcoff_file_start): Don't create
16232 xcoff_tbss_section_name.
16233 * config/rs6000/xcoff.h (ASM_OUTPUT_TLS_COMMON): Use .lcomm.
16234 * xcoffout.c (xcoff_tbss_section_name): Delete.
16235 * xcoffout.h (xcoff_tbss_section_name): Delete.
16236
16237 2021-03-11 Richard Biener <rguenther@suse.de>
16238
16239 PR tree-optimization/99523
16240 * tree-cfg.c (dump_function_to_file): Dump SSA names
16241 w/o identifier to the decls section as well, not only those
16242 without a VAR_DECL.
16243
16244 2021-03-11 Jakub Jelinek <jakub@redhat.com>
16245
16246 PR ipa/99517
16247 * ipa-icf-gimple.c (func_checker::compare_gimple_call): For internal
16248 function calls with lhs fail if the lhs don't have compatible types.
16249
16250 2021-03-11 Hans-Peter Nilsson <hp@axis.com>
16251
16252 * config/cris/cris.h (HARD_FRAME_POINTER_REGNUM): Define.
16253 Change FRAME_POINTER_REGNUM to correspond to a new faked
16254 register faked_fp, part of GENNONACR_REGS like faked_ap.
16255 (CRIS_FAKED_REGS_CONTENTS): New helper macro.
16256 (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS, CALL_USED_REGISTERS):
16257 (REG_ALLOC_ORDER, REG_CLASS_CONTENTS, REGNO_OK_FOR_BASE_P)
16258 (ELIMINABLE_REGS, REGISTER_NAMES): Adjust accordingly.
16259 * config/cris/cris.md (CRIS_FP_REGNUM): Renumber to new faked
16260 register.
16261 (CRIS_REAL_FP_REGNUM): New constant.
16262 * config/cris/cris.c (cris_reg_saved_in_regsave_area): Check
16263 for HARD_FRAME_POINTER_REGNUM instead of FRAME_POINTER_REGNUM.
16264 (cris_initial_elimination_offset): Handle elimination changes
16265 to HARD_FRAME_POINTER_REGNUM instead of FRAME_POINTER_REGNUM
16266 and add one from FRAME_POINTER_REGNUM to
16267 HARD_FRAME_POINTER_REGNUM.
16268 (cris_expand_prologue, cris_expand_epilogue): Emit code for
16269 hard_frame_pointer_rtx instead of frame_pointer_rtx.
16270
16271 2021-03-10 David Edelsohn <dje.gcc@gmail.com>
16272
16273 PR target/99492
16274 * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Add check for DCmode.
16275 * config/rs6000/rs6000.c (rs6000_special_round_type_align): Same.
16276
16277 2021-03-10 Vladimir N. Makarov <vmakarov@redhat.com>
16278
16279 PR target/99422
16280 * lra-constraints.c (process_address_1): Don't check unknown
16281 constraint, use X for empty constraint.
16282
16283 2021-03-10 Alex Coplan <alex.coplan@arm.com>
16284
16285 * config/aarch64/aarch64.c (aarch64_vfp_is_call_or_return_candidate):
16286 Fix typo in comment describing "is_ha" argument.
16287
16288 2021-03-10 John David Anglin <danglin@gcc.gnu.org>
16289
16290 * doc/sourcebuild.texi: Document LRA target selector.
16291
16292 2021-03-10 David Malcolm <dmalcolm@redhat.com>
16293
16294 * doc/ux.texi: Add subsection contrasting interactive versus
16295 batch usage of GCC.
16296
16297 2021-03-10 Joel Hutton <joel.hutton@arm.com>
16298
16299 PR target/99102
16300 * tree-vect-stmts.c (vectorizable_store): Fix scatter store mask
16301 check condition.
16302 (vectorizable_load): Fix gather load mask check condition.
16303
16304 2021-03-10 Richard Biener <rguenther@suse.de>
16305
16306 PR tree-optimization/99510
16307 * tree.c (check_aligned_type): Check that the candidate
16308 has TYPE_USER_ALIGN set instead of matching with the
16309 original type.
16310
16311 2021-03-10 Eric Botcazou <ebotcazou@adacore.com>
16312
16313 * config/sparc/sparc.c (sparc_regmode_natural_size): Return 4 for
16314 float and vector integer modes only if the mode is not larger.
16315
16316 2021-03-10 Hans-Peter Nilsson <hp@axis.com>
16317
16318 * config/cris/cris.h (DWARF_FRAME_REGISTERS): Define.
16319
16320 2021-03-09 Vladimir N. Makarov <vmakarov@redhat.com>
16321
16322 * ira.c (ira_setup_alts, ira_get_dup_out_num): Process digital
16323 constraints > 9.
16324 * ira-lives.c (single_reg_class): Ditto.
16325
16326 2021-03-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
16327
16328 * config.gcc (aarch64-*-rtems*): Include general rtems.h after
16329 the architecture-specific rtems.h.
16330 (aarch64-*-rtems*): Likewise.
16331 (arm*-*-rtems*): Likewise.
16332 (epiphany-*-rtems*): Likewise.
16333 (riscv*-*-rtems*): Likewise.
16334
16335 2021-03-09 Jakub Jelinek <jakub@redhat.com>
16336
16337 PR tree-optimization/99305
16338 * tree-ssa-phiopt.c (conditional_replacement): Test integer_pow2p
16339 before integer_all_onesp instead of vice versa.
16340
16341 2021-03-09 Richard Earnshaw <rearnsha@arm.com>
16342
16343 * common/config/arm/arm-common.c (arm_config_default): Change type
16344 of 'i' to unsigned.
16345
16346 2021-03-09 Vladimir N. Makarov <vmakarov@redhat.com>
16347
16348 PR target/99454
16349 * lra-constraints.c (process_address_1): Process constraint 'g'
16350 separately and digital constraints containing more one digit.
16351
16352 2021-03-09 Nick Clifton <nickc@redhat.com>
16353
16354 * config/rx/rx.h (DBX_DEBUGGING_INFO): Define.
16355 (DWARF"_DEBUGGING_INFO): Define.
16356
16357 2021-03-09 Eric Botcazou <ebotcazou@adacore.com>
16358
16359 PR c++/90448
16360 * calls.c (initialize_argument_information): When the argument
16361 is passed by reference, do not make a copy in a thunk only if
16362 the argument is already in memory. Remove redundant test for
16363 the case of callee copy.
16364
16365 2021-03-09 Vladimir N. Makarov <vmakarov@redhat.com>
16366
16367 PR target/99454
16368 * lra-constraints.c (process_address_1): Process 0..9 constraints
16369 in process_address_1.
16370
16371 2021-03-09 Andreas Krebbel <krebbel@linux.ibm.com>
16372
16373 * config/s390/s390.c (struct s390_processor processor_table):
16374 Binutils name string must not be empty.
16375
16376 2021-03-09 Claudiu Zissulescu <claziss@synopsys.com>
16377
16378 * config/arc/arc.c (arc_attr_type): Remove function.
16379
16380 2021-03-09 Martin Liska <mliska@suse.cz>
16381
16382 PR target/99464
16383 * config/i386/i386-options.c (ix86_option_override_internal):
16384 Set isa_flags for OPTS argument and not for the global
16385 global_options.
16386
16387 2021-03-09 Aaron Sawdey <acsawdey@linux.ibm.com>
16388
16389 * config/rs6000/predicates.md (ds_form_mem_operand): Check
16390 in correct code.
16391
16392 2021-03-09 Aaron Sawdey <acsawdey@linux.ibm.com>
16393
16394 PR target/99070
16395 * config/rs6000/predicates.md (ds_form_mem_operand) New
16396 predicate.
16397 * config/rs6000/genfusion.pl (gen_ld_cmpi_p10) Use
16398 ds_form_mem_operand in ld/lwa patterns.
16399 * config/rs6000/fusion.md: Regenerate file.
16400
16401 2021-03-08 Martin Sebor <msebor@redhat.com>
16402
16403 PR middle-end/98266
16404 * gimple-array-bounds.cc (inbounds_vbase_memaccess_p): New function.
16405 (array_bounds_checker::check_array_bounds): Call it.
16406
16407 2021-03-08 Martin Sebor <msebor@redhat.com>
16408
16409 PR middle-end/97631
16410 * tree-ssa-strlen.c (maybe_warn_overflow): Test rawmem.
16411 (handle_builtin_stxncpy_strncat): Rename locals. Determine
16412 destination size from allocation calls. Issue a more appropriate
16413 kind of warning.
16414 (handle_builtin_memcpy): Pass true as rawmem to maybe_warn_overflow.
16415 (handle_builtin_memset): Same.
16416
16417 2021-03-08 Peter Bergner <bergner@linux.ibm.com>
16418
16419 PR target/98959
16420 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_permute): Add an assert
16421 to ensure we do not have an Altivec style address.
16422 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>): Disable if passed
16423 an Altivec style address.
16424 (*vsx_le_perm_store_<mode>): Likewise.
16425 (splitters after *vsx_le_perm_store_<mode>): Likewise.
16426 (vsx_load_<mode>): Disable special expander if passed an Altivec
16427 style address.
16428 (vsx_store_<mode>): Likewise.
16429
16430 2021-03-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16431
16432 PR target/99437
16433 * config/aarch64/predicates.md (aarch64_simd_shift_imm_vec_qi): Define.
16434 (aarch64_simd_shift_imm_vec_hi): Likewise.
16435 (aarch64_simd_shift_imm_vec_si): Likewise.
16436 (aarch64_simd_shift_imm_vec_di): Likewise.
16437 * config/aarch64/aarch64-simd.md (aarch64_shrn<mode>_insn_le): Use
16438 predicate from above.
16439 (aarch64_shrn<mode>_insn_be): Likewise.
16440 (aarch64_rshrn<mode>_insn_le): Likewise.
16441 (aarch64_rshrn<mode>_insn_be): Likewise.
16442 (aarch64_shrn2<mode>_insn_le): Likewise.
16443 (aarch64_shrn2<mode>_insn_be): Likewise.
16444 (aarch64_rshrn2<mode>_insn_le): Likewise.
16445 (aarch64_rshrn2<mode>_insn_be): Likewise.
16446
16447 2021-03-08 Vladimir N. Makarov <vmakarov@redhat.com>
16448
16449 PR target/99422
16450 * lra-constraints.c (skip_contraint_modifiers): New function.
16451 (process_address_1): Use it before lookup_constraint call.
16452
16453 2021-03-08 Martin Liska <mliska@suse.cz>
16454
16455 PR target/99463
16456 * config/i386/i386-options.c (ix86_option_override_internal):
16457 Enable UINTR and HRESET for -march that supports it.
16458
16459 2021-03-08 Ilya Leoshkevich <iii@linux.ibm.com>
16460
16461 * config/s390/s390.c (f_constraint_p): New function.
16462 (s390_md_asm_adjust): Implement TARGET_MD_ASM_ADJUST.
16463 (TARGET_MD_ASM_ADJUST): Likewise.
16464
16465 2021-03-08 Tobias Burnus <tobias@codesourcery.com>
16466
16467 PR fortran/97927
16468 * tree-nested.c (convert_local_reference_stmt): Avoid calling
16469 lookup_field_for_decl for Fortran module (= namespace context).
16470
16471 2021-03-08 Andreas Krebbel <krebbel@linux.ibm.com>
16472
16473 * config/s390/s390.c (s390_expand_vec_compare): Implement <0
16474 comparison with arithmetic right shift.
16475 (s390_expand_vcond): No need for a force_reg anymore.
16476 s390_vec_compare will do it.
16477 * config/s390/vector.md ("vec_cmp<mode><tointvec>"): Accept also
16478 immediate operands.
16479
16480 2021-03-07 Jakub Jelinek <jakub@redhat.com>
16481
16482 PR target/99321
16483 * config/i386/constraints.md (Yw): Use SSE_REGS if TARGET_SSE
16484 but TARGET_AVX512BW or TARGET_AVX512VL is not set. Adjust description
16485 and comment.
16486 * config/i386/sse.md (v_Yw): New define_mode_attr.
16487 (*<insn><mode>3, *mul<mode>3<mask_name>, *avx2_<code><mode>3,
16488 *sse4_1_<code><mode>3<mask_name>): Use <v_Yw> instead of v
16489 in constraints.
16490 * config/i386/mmx.md (mmx_pshufw_1, *vec_dupv4hi): Use Yw instead of
16491 xYw in constraints.
16492
16493 2021-03-06 Julian Brown <julian@codesourcery.com>
16494
16495 * tree-pretty-print.c (dump_generic_node): Emit non-generic
16496 address space info for aggregates.
16497
16498 2021-03-06 Hans-Peter Nilsson <hp@axis.com>
16499
16500 * config/cris/cris.h (MAX_FIXED_MODE_SIZE): Don't define.
16501
16502 2021-03-05 Jakub Jelinek <jakub@redhat.com>
16503
16504 PR middle-end/99322
16505 * tree-cfg.c (bb_to_omp_idx): New variable.
16506 (execute_build_cfg): Release the bb_to_omp_idx vector after
16507 cleanup_tree_cfg returns.
16508 (handle_abnormal_edges): Remove bb_to_omp_idx argument, adjust
16509 for bb_to_omp_idx being a vec<int> instead of pointer to array
16510 of ints.
16511 (make_edges): Remove bb_to_omp_idx local variable, don't pass
16512 it to handle_abnormal_edges, adjust for bb_to_omp_idx being a
16513 vec<int> instead of pointer to array of ints and don't free/release
16514 it at the end.
16515 (remove_bb): When removing a bb and placing forced label somewhere
16516 else, ensure it is put into the same OpenMP region during cfg
16517 pass if possible or to entry successor as fallback. Unregister
16518 bb from bb_to_omp_idx.
16519
16520 2021-03-05 Vladimir N. Makarov <vmakarov@redhat.com>
16521
16522 PR target/99378
16523 * lra-constraints.c (process_address_1): Skip decomposing address
16524 for asm insn operand with unknown constraint.
16525
16526 2021-03-05 Martin Jambor <mjambor@suse.cz>
16527
16528 PR ipa/98078
16529 * cgraph.c (cgraph_edge::set_call_stmt): Do not update all
16530 corresponding speculative edges if we are about to resolve
16531 sepculation. Make edge direct (and so resolve speculations) before
16532 removing it from call_site_hash.
16533 (cgraph_edge::make_direct): Relax the initial assert to allow calling
16534 the function on speculative direct edges.
16535
16536 2021-03-05 Eric Botcazou <ebotcazou@adacore.com>
16537
16538 PR rtl-optimization/99376
16539 * rtlanal.c (nonzero_bits1) <arithmetic operators>: If the number
16540 of low-order zero bits is too large, set the result to 0 directly.
16541
16542 2021-03-04 Jakub Jelinek <jakub@redhat.com>
16543
16544 PR middle-end/93235
16545 * expmed.c (store_bit_field_using_insv): Return false of xop0 is a
16546 SUBREG and a SUBREG to op_mode can't be created.
16547
16548 2021-03-04 Alex Coplan <alex.coplan@arm.com>
16549
16550 PR target/99381
16551 * config/aarch64/aarch64-sve-builtins.cc
16552 (function_resolver::require_vector_type): Handle error_mark_node.
16553
16554 2021-03-04 Ilya Leoshkevich <iii@linux.ibm.com>
16555
16556 * cfgexpand.c (expand_asm_loc): Pass new parameter.
16557 (expand_asm_stmt): Likewise.
16558 * config/arm/aarch-common-protos.h (arm_md_asm_adjust): Add new
16559 parameter.
16560 * config/arm/aarch-common.c (arm_md_asm_adjust): Likewise.
16561 * config/arm/arm.c (thumb1_md_asm_adjust): Likewise.
16562 * config/cris/cris.c (cris_md_asm_adjust): Likewise.
16563 * config/i386/i386.c (ix86_md_asm_adjust): Likewise.
16564 * config/mn10300/mn10300.c (mn10300_md_asm_adjust): Likewise.
16565 * config/nds32/nds32.c (nds32_md_asm_adjust): Likewise.
16566 * config/pdp11/pdp11.c (pdp11_md_asm_adjust): Likewise.
16567 * config/rs6000/rs6000.c (rs6000_md_asm_adjust): Likewise.
16568 * config/vax/vax.c (vax_md_asm_adjust): Likewise.
16569 * config/visium/visium.c (visium_md_asm_adjust): Likewise.
16570 * doc/tm.texi (md_asm_adjust): Likewise.
16571 * target.def (md_asm_adjust): Likewise.
16572
16573 2021-03-04 Richard Biener <rguenther@suse.de>
16574
16575 PR middle-end/97855
16576 * tree-pretty-print.c: Poison pp_printf.
16577 (dump_decl_name): Avoid use of pp_printf.
16578 (dump_block_node): Likewise.
16579 (dump_generic_node): Likewise.
16580
16581 2021-03-04 Martin Sebor <msebor@redhat.com>
16582
16583 PR middle-end/96963
16584 PR middle-end/94655
16585 * builtins.c (handle_array_ref): New helper.
16586 (handle_mem_ref): New helper.
16587 (compute_objsize_r): Factor out ARRAY_REF and MEM_REF handling
16588 into new helper functions. Correct a workaround for vectorized
16589 assignments.
16590
16591 2021-03-03 Pat Haugen <pthaugen@linux.ibm.com>
16592
16593 * config/rs6000/dfp.md (extendddtd2, trunctddd2, *cmp<mode>_internal1,
16594 floatditd2, ftrunc<mode>2, fix<mode>di2, dfp_ddedpd_<mode>,
16595 dfp_denbcd_<mode>, dfp_dxex_<mode>, dfp_diex_<mode>,
16596 *dfp_sgnfcnc_<mode>, dfp_dscli_<mode>, dfp_dscri_<mode>): Update size
16597 attribute for Power10.
16598 * config/rs6000/mma.md (*movoo): Likewise.
16599 * config/rs6000/rs6000.md (define_attr "size"): Add 256.
16600 (define_mode_attr bits): Add DD/TD modes.
16601 * config/rs6000/sync.md (load_quadpti, store_quadpti, load_lockedpti,
16602 store_conditionalpti): Update size attribute for Power10.
16603
16604 2021-03-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16605
16606 PR bootstrap/92002
16607 * config/sparc/t-sparc (tree-ssanames.o-warn): Don't error for
16608 -Wuninitialized, -Wmaybe-uninitialized.
16609 (wide-int.o-warn): Likewise.
16610
16611 2021-03-03 Richard Earnshaw <rearnsha@arm.com>
16612
16613 * common/config/arm/arm-common.c: Include configargs.h.
16614 (arm_config_default): New function.
16615 (arm_target_mode): Renamed from arm_target_thumb_only. Handle
16616 processors that do not support Thumb. Take into account the
16617 --with-mode configuration setting for selecting the default.
16618 * config/arm/arm.h (OPTION_DEFAULT_SPECS): Remove entry for 'mode'.
16619 (TARGET_MODE_SPEC_FUNCTIONS): Update for function name change.
16620
16621 2021-03-03 Martin Liska <mliska@suse.cz>
16622
16623 PR gcov-profile/97461
16624 * gcov-io.h (GCOV_PREALLOCATED_KVP): Remove.
16625
16626 2021-03-03 Eric Botcazou <ebotcazou@adacore.com>
16627
16628 PR target/99234
16629 * config/i386/i386.c (ix86_compute_frame_layout): For a SEH target,
16630 point back the hard frame pointer to its default location when the
16631 frame is larger than SEH_MAX_FRAME_SIZE.
16632
16633 2021-03-03 Jakub Jelinek <jakub@redhat.com>
16634
16635 PR target/99321
16636 * config/i386/predicates.md (logic_operator): New define_predicate.
16637 * config/i386/i386.md (mov + mem using comm arith peephole2):
16638 Punt if operands[1] is EXT_REX_SSE_REGNO_P, AVX512BW is not enabled
16639 and the inner mode is [QH]Imode.
16640
16641 2021-03-03 Jakub Jelinek <jakub@redhat.com>
16642
16643 PR debug/99090
16644 * dwarf2out.c (dw_loc_list_struct): Add end_entry member.
16645 (new_loc_list): Clear end_entry.
16646 (output_loc_list): Only use DW_LLE_startx_length for -gsplit-dwarf
16647 if HAVE_AS_LEB128, otherwise use DW_LLE_startx_endx. Fix comment
16648 typo.
16649 (index_location_lists): For dwarf_version >= 5 without HAVE_AS_LEB128,
16650 initialize also end_entry.
16651
16652 2021-03-03 Jakub Jelinek <jakub@redhat.com>
16653
16654 PR target/99085
16655 * cfgrtl.c (fixup_partitions): When changing some bbs from hot to cold
16656 partitions, if in non-layout mode after reorder_blocks also move
16657 affected blocks to ensure a single partition transition.
16658
16659 2021-03-03 Jason Merrill <jason@redhat.com>
16660
16661 PR c++/96078
16662 * cgraphunit.c (process_function_and_variable_attributes): Don't
16663 warn about flatten on an alias if the target also has it.
16664 * cgraph.h (symtab_node::get_alias_target_tree): New.
16665
16666 2021-03-02 David Edelsohn <dje.gcc@gmail.com>
16667
16668 * config/rs6000/rs6000.md (tls_get_tpointer_internal): Prepend
16669 period to symbol name.
16670 (tls_get_addr_internal<mode>): Same.
16671
16672 2021-03-02 David Malcolm <dmalcolm@redhat.com>
16673
16674 PR c/99323
16675 * diagnostic-show-locus.c
16676 (selftest::test_one_liner_many_fixits_2): Fix accidental usage of
16677 column 0.
16678
16679 2021-03-02 Martin Sebor <msebor@redhat.com>
16680
16681 PR middle-end/99276
16682 * builtins.c (warn_for_access): Remove stray warning text.
16683
16684 2021-03-02 Martin Sebor <msebor@redhat.com>
16685
16686 PR middle-end/99295
16687 * doc/extend.texi (attribute malloc): Reword and clarify nonaliasing
16688 property.
16689
16690 2021-03-02 Jakub Jelinek <jakub@redhat.com>
16691
16692 PR debug/99319
16693 * dwarf2out.c (output_macinfo_op): Use DW_MACRO_*_str* even with
16694 -gdwarf-5 -gstrict-dwarf. For -gsplit-dwarf -gdwarf-5 use
16695 DW_MACRO_*_strx instead of DW_MACRO_*_strp. Handle
16696 DW_MACRO_define_strx and DW_MACRO_undef_strx.
16697 (save_macinfo_strings): Use DW_MACRO_*_str* even with
16698 -gdwarf-5 -gstrict-dwarf. Handle DW_MACRO_define_strx and
16699 DW_MACRO_undef_strx.
16700
16701 2021-03-02 Andreas Krebbel <krebbel@linux.ibm.com>
16702
16703 * config/s390/s390-builtin-types.def (BT_FN_V4SF_V8HI_UINT): New
16704 builtin signature.
16705 (BT_FN_V8HI_V8HI_UINT): Likewise.
16706 (BT_FN_V8HI_V4SF_V4SF_UINT): Likewise.
16707 * config/s390/s390-builtins.def (B_NNPA): New macro definition.
16708 (s390_vclfnhs, s390_vclfnls, s390_vcrnfs, s390_vcfn, s390_vcnf):
16709 New builtin definitions.
16710 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Bump
16711 vector extension version.
16712 * config/s390/s390.c (s390_expand_builtin): Check if builtins are
16713 available with current -march level.
16714 * config/s390/s390.md (UNSPEC_NNPA_VCLFNHS_V8HI)
16715 (UNSPEC_NNPA_VCLFNLS_V8HI, UNSPEC_NNPA_VCRNFS_V8HI)
16716 (UNSPEC_NNPA_VCFN_V8HI, UNSPEC_NNPA_VCNF_V8HI): New constants.
16717 * config/s390/vecintrin.h (vec_extend_to_fp32_hi): New macro.
16718 (vec_extend_to_fp32_lo): Likewise.
16719 (vec_round_from_fp32): Likewise.
16720 (vec_convert_to_fp16): Likewise.
16721 (vec_convert_from_fp16): Likewise.
16722 * config/s390/vx-builtins.md (vclfnhs_v8hi): New insn pattern.
16723 (vclfnls_v8hi): Likewise.
16724 (vcrnfs_v8hi): Likewise.
16725 (vcfn_v8hi): Likewise.
16726 (vcnf_v8hi): Likewise.
16727
16728 2021-03-02 Andreas Krebbel <krebbel@linux.ibm.com>
16729
16730 * common/config/s390/s390-common.c (processor_flags_table): New entry.
16731 * config.gcc: Enable arch14 for --with-arch and --with-tune.
16732 * config/s390/driver-native.c (s390_host_detect_local_cpu): Pick
16733 arch14 for unknown CPU models.
16734 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH14.
16735 * config/s390/s390.c (s390_issue_rate): Add case for PROCESSOR_ARCH14.
16736 (s390_get_sched_attrmask): Likewise.
16737 (s390_get_unit_mask): Likewise.
16738 * config/s390/s390.h (enum processor_flags): Add PF_NNPA and PF_ARCH14.
16739 (TARGET_CPU_ARCH14, TARGET_CPU_ARCH14_P, TARGET_CPU_NNPA)
16740 (TARGET_CPU_NNPA_P, TARGET_ARCH14, TARGET_ARCH14_P, TARGET_NNPA)
16741 (TARGET_NNPA_P): New macro definitions.
16742 * config/s390/s390.md ("cpu_facility", "enabled"): Add arch14 and nnpa.
16743 * config/s390/s390.opt: Add PROCESSOR_ARCH14.
16744
16745 2021-03-02 Jakub Jelinek <jakub@redhat.com>
16746
16747 PR middle-end/95757
16748 * tree-vrp.c (register_edge_assert_for): Remove superfluous ()s around
16749 condition. Call register_edge_assert_for_1 for == 0, != 0, == 1 and
16750 != 1 comparisons if name is lhs of a comparison.
16751
16752 2021-03-01 Iain Sandoe <iain@sandoe.co.uk>
16753
16754 PR target/44107
16755 PR target/48097
16756 * config/darwin-protos.h (darwin_should_restore_cfa_state): New.
16757 * config/darwin.c (darwin_should_restore_cfa_state): New.
16758 * config/darwin.h (TARGET_ASM_SHOULD_RESTORE_CFA_STATE): New.
16759 * doc/tm.texi: Regenerated.
16760 * doc/tm.texi.in: Document TARGET_ASM_SHOULD_RESTORE_CFA_STATE.
16761 * dwarf2cfi.c (connect_traces): If the target requests, restore
16762 the CFA expression after a DW_CFA_restore.
16763 * target.def (TARGET_ASM_SHOULD_RESTORE_CFA_STATE): New hook.
16764
16765 2021-03-01 Martin Liska <mliska@suse.cz>
16766
16767 PR target/99313
16768 * optc-save-gen.awk: Add 4 more exceptions.
16769
16770 2021-03-01 Nathan Sidwell <nathan@acm.org>
16771
16772 PR c++/99294
16773 * tree.h (TYPE_ALIGN_RAW): New accessor.
16774 (TYPE_ALIGN): Use it.
16775
16776 2021-03-01 Jan Hubicka <jh@suse.cz>
16777
16778 PR ipa/98338
16779 * ipa-fnsummary.c (compute_fn_summary): Fix sanity check.
16780
16781 2021-03-01 Eric Botcazou <ebotcazou@adacore.com>
16782
16783 PR target/99234
16784 * config/i386/i386.c (ix86_compute_frame_layout): For a SEH target,
16785 point the hard frame pointer to the SSE register save area instead
16786 of the general register save area. Perform only minimal adjustment
16787 for small frames if it is initially not correctly aligned.
16788 (ix86_expand_prologue): Remove early saves for a SEH target.
16789 * config/i386/winnt.c (struct seh_frame_state): Document constraint.
16790
16791 2021-02-28 Jakub Jelinek <jakub@redhat.com>
16792
16793 PR c/99304
16794 * ipa.c (symbol_table::remove_unreachable_nodes): Fix a comment
16795 typo - referneced -> referenced.
16796 * tree.c (component_ref_size): Fix comment typo -
16797 refernce -> reference.
16798 * tree-ssa-alias.c (access_path_may_continue_p): Fix comment typo -
16799 traling -> trailing.
16800 (aliasing_component_refs_p): Fix comment typos -
16801 refernce -> reference and refernece -> reference and
16802 traling -> trailing.
16803 (nonoverlapping_refs_since_match_p): Fix comment typo -
16804 referneces -> references.
16805 * doc/invoke.texi (--param modref-max-bases): Fix a typo -
16806 referneces -> references.
16807
16808 2021-02-27 Iain Sandoe <iain@sandoe.co.uk>
16809
16810 * config/host-darwin.c (darwin_gt_pch_use_address): Modify
16811 diagnostic message to avoid use of a contraction and format
16812 warning.
16813
16814 2021-02-27 Jakub Jelinek <jakub@redhat.com>
16815
16816 PR other/99288
16817 * gcse.c (gcse_or_cprop_is_too_expensive): Use %wu instead of
16818 HOST_WIDE_INT_PRINT_UNSIGNED in warning format string.
16819 * ipa-devirt.c (ipa_odr_read_section): Use %wd instead of
16820 HOST_WIDE_INT_PRINT_DEC in inform format string. Fix comment
16821 typos.
16822
16823 2021-02-26 Richard Biener <rguenther@suse.de>
16824
16825 PR middle-end/99281
16826 * expr.c (store_field): For calls with return-slot optimization
16827 and addressable return type expand the store directly.
16828
16829 2021-02-26 Richard Biener <rguenther@suse.de>
16830
16831 PR c/99275
16832 * builtins.c (warn_string_no_nul): Fix diagnostic formatting.
16833
16834 2021-02-26 Peter Bergner <bergner@linux.ibm.com>
16835
16836 PR target/99279
16837 * config/rs6000/rs6000-call.c (rs6000_init_builtins): Replace assert
16838 with an "if" test.
16839
16840 2021-02-26 Aaron Sawdey <acsawdey@linux.ibm.com>
16841
16842 * config.gcc: Add rs6000-pcrel-opt.o.
16843 * config/rs6000/rs6000-pcrel-opt.c: New file.
16844 * config/rs6000/pcrel-opt.md: New file.
16845 * config/rs6000/predicates.md: Add d_form_memory predicate.
16846 * config/rs6000/rs6000-cpus.def: Add OPTION_MASK_PCREL_OPT.
16847 * config/rs6000/rs6000-passes.def: Add pass_pcrel_opt.
16848 * config/rs6000/rs6000-protos.h: Add reg_to_non_prefixed(),
16849 pcrel_opt_valid_mem_p(), output_pcrel_opt_reloc(),
16850 and make_pass_pcrel_opt().
16851 * config/rs6000/rs6000.c (reg_to_non_prefixed): Make global.
16852 (rs6000_option_override_internal): Add pcrel-opt.
16853 (rs6000_delegitimize_address): Support pcrel-opt.
16854 (rs6000_opt_masks): Add pcrel-opt.
16855 (pcrel_opt_valid_mem_p): New function.
16856 (reg_to_non_prefixed): Make global.
16857 (rs6000_asm_output_opcode): Reset prepend_p_to_next_insn.
16858 (output_pcrel_opt_reloc): New function.
16859 * config/rs6000/rs6000.md (loads_extern_addr): New attr.
16860 (pcrel_extern_addr): Set loads_extern_addr.
16861 Add include for pcrel-opt.md.
16862 * config/rs6000/rs6000.opt: Add -mpcrel-opt.
16863 * config/rs6000/t-rs6000: Add rules for pcrel-opt.c and
16864 pcrel-opt.md.
16865
16866 2021-02-26 YunQiang Su <yunqiang.su@cipunited.com>
16867
16868 PR target/98996
16869 * config/mips/mips.c (mips_expand_ext_as_unaligned_load):
16870 If TARGET_64BIT and dest is SUBREG, we check the width, if it
16871 equal to SImode, we use SImode operation, just like what we are
16872 doing for REG one.
16873
16874 2021-02-26 Marek Polacek <polacek@redhat.com>
16875
16876 * builtins.c (warn_for_access): Fix typos.
16877
16878 2021-02-25 Iain Sandoe <iain@sandoe.co.uk>
16879
16880 * config/aarch64/aarch64.md (<optab>_rol<mode>3): Add a '#'
16881 mark in front of the immediate quantity.
16882 (<optab>_rolsi3_uxtw): Likewise.
16883
16884 2021-02-25 Richard Earnshaw <rearnsha@arm.com>
16885
16886 PR target/99271
16887 * config/arm/thumb2.md (nonsecure_call_reg_thumb2_fpcxt): New pattern.
16888 (nonsecure_call_value_reg_thumb2_fpcxt): Likewise.
16889 (nonsecure_call_reg_thumb2): Restrict to using r4 for the callee
16890 address and disable when the FPCXT is not available.
16891 (nonsecure_call_value_reg_thumb2): Likewise.
16892
16893 2021-02-25 Nathan Sidwell <nathan@acm.org>
16894
16895 PR c++/99166
16896 * doc/invoke.texi (flang-info-module-cmi): Renamed option.
16897
16898 2021-02-25 Tamar Christina <tamar.christina@arm.com>
16899
16900 * tree-vect-slp.c (optimize_load_redistribution_1): Abort on NULL nodes.
16901
16902 2021-02-25 Richard Biener <rguenther@suse.de>
16903
16904 PR tree-optimization/99253
16905 * tree-vect-loop.c (check_reduction_path): First compute
16906 code, then verify out-of-loop uses.
16907
16908 2021-02-25 Jakub Jelinek <jakub@redhat.com>
16909
16910 PR target/95798
16911 * match.pd ((T)(A) + CST -> (T)(A + CST)): Add :s to convert.
16912
16913 2021-02-25 Jakub Jelinek <jakub@redhat.com>
16914
16915 PR tree-optimization/80635
16916 * tree-vrp.c (vrp_simplify_cond_using_ranges): Also handle
16917 VIEW_CONVERT_EXPR if modes are the same, innerop is integral and
16918 has mode precision.
16919
16920 2021-02-25 Richard Biener <rguenther@suse.de>
16921
16922 * tree-vect-slp.c (optimize_load_redistribution_1): Delay
16923 load_map population.
16924 (vect_match_slp_patterns_2): Revert part of last change.
16925 (vect_analyze_slp): Do not interleave optimize_load_redistribution
16926 with pattern detection but do it afterwards. Dump the
16927 whole SLP graph after pattern recognition and load
16928 redistribution optimization finished.
16929
16930 2021-02-24 Jakub Jelinek <jakub@redhat.com>
16931
16932 PR fortran/99226
16933 * omp-low.c (struct omp_context): Add teams_nested_p and
16934 nonteams_nested_p members.
16935 (scan_omp_target): Diagnose teams nested inside of target with other
16936 directives strictly nested inside of the same target.
16937 (check_omp_nesting_restrictions): Set ctx->teams_nested_p or
16938 ctx->nonteams_nested_p as needed.
16939
16940 2021-02-24 Vladimir N. Makarov <vmakarov@redhat.com>
16941
16942 PR inline-asm/99123
16943 * lra-constraints.c (uses_hard_regs_p): Don't use decompose_mem_address.
16944
16945 2021-02-24 Hans-Peter Nilsson <hp@axis.com>
16946
16947 * config/cris/cris.c (cris_expand_prologue): Set
16948 current_function_static_stack_size, if flag_stack_usage_info.
16949
16950 2021-02-24 Pat Haugen <pthaugen@linux.ibm.com>
16951
16952 * config/rs6000/rs6000.c (next_insn_prefixed_p): Rename.
16953 (rs6000_final_prescan_insn): Adjust.
16954 (rs6000_asm_output_opcode): Likewise.
16955
16956 2021-02-24 Martin Sebor <msebor@redhat.com>
16957
16958 PR middle-end/97172
16959 * attribs.c (attr_access::free_lang_data): Clear attribute arg spec
16960 from function arguments.
16961
16962 2021-02-24 Tamar Christina <tamar.christina@arm.com>
16963
16964 PR tree-optimization/99220
16965 * tree-vect-slp.c (optimize_load_redistribution_1): Remove
16966 node from cache when it's about to be deleted.
16967
16968 2021-02-24 Jakub Jelinek <jakub@redhat.com>
16969
16970 PR tree-optimization/99225
16971 * fold-const.c (fold_binary_loc) <case NE_EXPR>: In (x & (1 << y)) != 0
16972 to ((x >> y) & 1) != 0 simplifications use build_one_cst instead of
16973 build_int_cst (..., 1). Formatting fixes.
16974
16975 2021-02-24 Tamar Christina <tamar.christina@arm.com>
16976
16977 PR tree-optimization/99149
16978 * tree-vect-slp-patterns.c (vect_detect_pair_op): Don't recreate the
16979 buffer.
16980 (vect_slp_reset_pattern): Remove.
16981 (complex_fma_pattern::matches): Remove call to vect_slp_reset_pattern.
16982 (complex_mul_pattern::build, complex_fma_pattern::build,
16983 complex_fms_pattern::build): Fix ref counts.
16984 * tree-vect-slp.c (vect_free_slp_tree): Undo SLP only pattern relevancy
16985 when node is being deleted.
16986 (vect_match_slp_patterns_2): Correct result of cache hit on patterns.
16987 (vect_schedule_slp): Invalidate SLP_TREE_REPRESENTATIVE of removed
16988 stores.
16989 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize value.
16990
16991 2021-02-24 Matthias Klose <doko@ubuntu.com>
16992
16993 Revert:
16994 2020-12-07 Matthias Klose <doko@ubuntu.com>
16995
16996 * genextract.c (print_header): Undefine ENABLE_RTL_CHECKING
16997 and ENABLE_RTL_FLAG_CHECKING.
16998
16999 2021-02-24 Richard Biener <rguenther@suse.de>
17000
17001 PR c/99224
17002 * builtins.c (fold_builtin_next_arg): Avoid NULL arg.
17003
17004 2021-02-23 Peter Bergner <bergner@linux.ibm.com>
17005
17006 * config/rs6000/mma.md (mma_assemble_pair): Rename from this...
17007 (vsx_assemble_pair): ...to this.
17008 (*mma_assemble_pair): Rename from this...
17009 (*vsx_assemble_pair): ...to this.
17010 (mma_disassemble_pair): Rename from this...
17011 (vsx_disassemble_pair): ...to this.
17012 (*mma_disassemble_pair): Rename from this...
17013 (*vsx_disassemble_pair): ...to this.
17014 * config/rs6000/rs6000-builtin.def (BU_MMA_V2, BU_MMA_V3,
17015 BU_COMPAT): New macros.
17016 (mma_assemble_pair): Rename from this...
17017 (vsx_assemble_pair): ...to this.
17018 (mma_disassemble_pair): Rename from this...
17019 (vsx_disassemble_pair): ...to this.
17020 (mma_assemble_pair): New compatibility built-in.
17021 (mma_disassemble_pair): Likewise.
17022 * config/rs6000/rs6000-call.c (struct builtin_compatibility): New.
17023 (RS6000_BUILTIN_COMPAT): Define.
17024 (bdesc_compat): New.
17025 (mma_expand_builtin): Use VSX_BUILTIN_DISASSEMBLE_PAIR_INTERNAL.
17026 (rs6000_gimple_fold_mma_builtin): Use MMA_BUILTIN_DISASSEMBLE_PAIR
17027 and VSX_BUILTIN_ASSEMBLE_PAIR.
17028 (rs6000_init_builtins): Register compatibility built-ins.
17029 (mma_init_builtins): Use VSX_BUILTIN_ASSEMBLE_PAIR,
17030 VSX_BUILTIN_ASSEMBLE_PAIR_INTERNAL, VSX_BUILTIN_DISASSEMBLE_PAIR and
17031 VSX_BUILTIN_DISASSEMBLE_PAIR_INTERNAL.
17032 * doc/extend.texi (__builtin_mma_assemble_pair): Rename from this...
17033 (__builtin_vsx_assemble_pair): ...to this.
17034 (__builtin_mma_disassemble_pair): Rename from this...
17035 (__builtin_vsx_disassemble_pair): ...to this.
17036
17037 2021-02-23 Martin Liska <mliska@suse.cz>
17038
17039 PR sanitizer/99168
17040 * ipa-icf.c (sem_variable::merge): Do not merge 2 variables
17041 with different alignment. That leads to an invalid red zone
17042 size allocated in runtime.
17043
17044 2021-02-23 Jakub Jelinek <jakub@redhat.com>
17045
17046 PR tree-optimization/99204
17047 * fold-const.c (fold_read_from_constant_string): Check that
17048 tree_fits_uhwi_p (index) rather than just that index is INTEGER_CST.
17049
17050 2021-02-23 Segher Boessenkool <segher@kernel.crashing.org>
17051 Kewen Lin <linkw@gcc.gnu.org>
17052
17053 * config/rs6000/rs6000.md (*rotl<mode>3_insert_3): Renamed to...
17054 (rotl<mode>3_insert_3): ...this.
17055 (plus_ior_xor): New code_iterator.
17056 (define_split for GPR rl*imi): New splitter.
17057 * config/rs6000/vsx.md (vsx_init_v4si): Use gen_rotldi3_insert_3
17058 for integer merging.
17059
17060 2021-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17061
17062 * config/aarch64/aarch64-tuning-flags.def (cse_sve_vl_constants):
17063 Define.
17064 * config/aarch64/aarch64.md (add<mode>3): Force CONST_POLY_INT immediates
17065 into a register when the above is enabled.
17066 * config/aarch64/aarch64.c (neoversev1_tunings):
17067 AARCH64_EXTRA_TUNE_CSE_SVE_VL_CONSTANTS.
17068 (aarch64_rtx_costs): Use AARCH64_EXTRA_TUNE_CSE_SVE_VL_CONSTANTS.
17069
17070 2021-02-22 Hans-Peter Nilsson <hp@axis.com>
17071
17072 * config/cris/cris.c (cris_print_operand) <'T'>: Change
17073 valid operand from is now an addi mult-value to shift-value.
17074 * config/cris/cris.md (*addi): Change expression of scaled
17075 operand from mult to ashift.
17076 * config/cris/cris.md (*addi_reload): New insn_and_split.
17077
17078 2021-02-22 John David Anglin <danglin@gcc.gnu.org>
17079
17080 PR target/85074
17081 * config/pa/pa.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define as
17082 hook_bool_const_tree_hwi_hwi_const_tree_true.
17083 (pa_asm_output_mi_thunk): Add support for nonzero vcall_offset.
17084
17085 2021-02-22 Andre Vieira <andre.simoesdiasvieira@arm.com>
17086
17087 PR rtl-optimization/98791
17088 * ira-conflicts.c (process_regs_for_copy): Don't create allocno copies
17089 for unordered modes.
17090
17091 2021-02-22 Martin Liska <mliska@suse.cz>
17092
17093 * tree-inline.c (inline_forbidden_p): Set
17094 inline_forbidden_reason.
17095
17096 2021-02-22 Richard Biener <rguenther@suse.de>
17097
17098 * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Dump
17099 costed subgraph.
17100
17101 2021-02-22 Richard Biener <rguenther@suse.de>
17102
17103 PR tree-optimization/99165
17104 * gimple-ssa-store-merging.c (pass_store_merging::process_store):
17105 Accumulate changed to ret.
17106
17107 2021-02-21 Uros Bizjak <ubizjak@gmail.com>
17108
17109 Revert:
17110 2020-12-09 Uroš Bizjak <ubizjak@gmail.com>
17111
17112 * config/i386/i386.h (REG_ALLOC_ORDER): Remove
17113
17114 2021-02-20 Ilya Leoshkevich <iii@linux.ibm.com>
17115
17116 PR target/99134
17117 * config/s390/vector.md (trunctf<DFP_ALL:mode>2_vr): New
17118 pattern.
17119 (trunctf<DFP_ALL:mode>2): Likewise.
17120 (trunctdtf2_vr): Likewise.
17121 (trunctdtf2): Likewise.
17122 (extend<DFP_ALL:mode>tf2_vr): Likewise.
17123 (extend<DFP_ALL:mode>tf2): Likewise.
17124 (extendtftd2_vr): Likewise.
17125 (extendtftd2): Likewise.
17126
17127 2021-02-20 Ilya Leoshkevich <iii@linux.ibm.com>
17128
17129 * config/s390/vector.md (*fprx2_to_tf): Rename to fprx2_to_tf,
17130 add memory alternative.
17131 (tf_to_fprx2): New pattern.
17132
17133 2021-02-19 Martin Sebor <msebor@redhat.com>
17134
17135 PR c/97172
17136 * attribs.c (init_attr_rdwr_indices): Guard vblist use.
17137 (attr_access::free_lang_data): Remove a spurious test.
17138
17139 2021-02-19 Nathan Sidwell <nathan@acm.org>
17140
17141 * doc/invoke.texi (flang-info-module-read): Document.
17142
17143 2021-02-19 Martin Liska <mliska@suse.cz>
17144
17145 PR translation/99167
17146 * params.opt: Fix typo.
17147
17148 2021-02-19 Richard Biener <rguenther@suse.de>
17149
17150 PR middle-end/99122
17151 * tree-inline.c (inline_forbidden_p): Do not inline functions
17152 with VLA arguments or return value.
17153
17154 2021-02-19 Jakub Jelinek <jakub@redhat.com>
17155
17156 PR target/98998
17157 * config/arm/arm.md (*stack_protect_combined_set_insn,
17158 *stack_protect_combined_test_insn): If force_const_mem result
17159 is not valid general operand, force its address into the destination
17160 register first.
17161
17162 2021-02-19 Jakub Jelinek <jakub@redhat.com>
17163
17164 PR ipa/99034
17165 * tree-cfg.c (gimple_merge_blocks): If bb a starts with eh landing
17166 pad or non-local label, put FORCED_LABELs from bb b after that label
17167 rather than before it.
17168
17169 2021-02-19 Andre Vieira <andre.simoesdiasvieira@arm.com>
17170
17171 PR target/98657
17172 * config/aarch64/aarch64-sve.md (<ASHIFT:optab><mode>3): Use
17173 expand_vector_broadcast' to emit the vec_duplicate operand.
17174
17175 2021-02-18 Vladimir N. Makarov <vmakarov@redhat.com>
17176
17177 PR rtl-optimization/96264
17178 * lra-remat.c (reg_overlap_for_remat_p): Check also output insn
17179 hard regs.
17180
17181 2021-02-18 H.J. Lu <hjl.tools@gmail.com>
17182
17183 PR target/99113
17184 * varasm.c (get_section): Replace SUPPORTS_SHF_GNU_RETAIN with
17185 looking up the retain attribute.
17186 (resolve_unique_section): Likewise.
17187 (get_variable_section): Likewise.
17188 (switch_to_section): Likewise. Warn when a symbol without the
17189 retain attribute and a symbol with the retain attribute are
17190 placed in the section with the same name, instead of the used
17191 attribute.
17192 * doc/extend.texi: Document the "retain" attribute.
17193
17194 2021-02-18 Nathan Sidwell <nathan@acm.org>
17195
17196 PR c++/99023
17197 * doc/invoke.texi (flang-info-include-translate): Document header
17198 lookup behaviour.
17199
17200 2021-02-18 Richard Biener <rguenther@suse.de>
17201
17202 PR middle-end/99122
17203 * ipa-fnsummary.c (analyze_function_body): Set
17204 CIF_FUNCTION_NOT_INLINABLE for VLA parameter calls.
17205 * tree-inline.c (insert_init_debug_bind): Pass NULL for
17206 error_mark_node values.
17207 (force_value_to_type): Do not build V_C_Es for WITH_SIZE_EXPR
17208 values.
17209 (setup_one_parameter): Delay force_value_to_type until when
17210 it's needed.
17211
17212 2021-02-18 Hans-Peter Nilsson <hp@axis.com>
17213
17214 PR tree-optimization/99142
17215 * match.pd (clz cmp 0): Gate replacement on single_use of clz result.
17216
17217 2021-02-18 Jakub Jelinek <jakub@redhat.com>
17218
17219 * wide-int-bitmask.h (wide_int_bitmask::wide_int_bitmask (),
17220 wide_int_bitmask::wide_int_bitmask (uint64_t),
17221 wide_int_bitmask::wide_int_bitmask (uint64_t, uint64_t),
17222 wide_int_bitmask::operator ~ () const,
17223 wide_int_bitmask::operator | (wide_int_bitmask) const,
17224 wide_int_bitmask::operator & (wide_int_bitmask) const): Use constexpr
17225 instead of inline.
17226 * config/i386/i386.h (PTA_3DNOW, PTA_3DNOW_A, PTA_64BIT, PTA_ABM,
17227 PTA_AES, PTA_AVX, PTA_BMI, PTA_CX16, PTA_F16C, PTA_FMA, PTA_FMA4,
17228 PTA_FSGSBASE, PTA_LWP, PTA_LZCNT, PTA_MMX, PTA_MOVBE, PTA_NO_SAHF,
17229 PTA_PCLMUL, PTA_POPCNT, PTA_PREFETCH_SSE, PTA_RDRND, PTA_SSE, PTA_SSE2,
17230 PTA_SSE3, PTA_SSE4_1, PTA_SSE4_2, PTA_SSE4A, PTA_SSSE3, PTA_TBM,
17231 PTA_XOP, PTA_AVX2, PTA_BMI2, PTA_RTM, PTA_HLE, PTA_PRFCHW, PTA_RDSEED,
17232 PTA_ADX, PTA_FXSR, PTA_XSAVE, PTA_XSAVEOPT, PTA_AVX512F, PTA_AVX512ER,
17233 PTA_AVX512PF, PTA_AVX512CD, PTA_NO_TUNE, PTA_SHA, PTA_PREFETCHWT1,
17234 PTA_CLFLUSHOPT, PTA_XSAVEC, PTA_XSAVES, PTA_AVX512DQ, PTA_AVX512BW,
17235 PTA_AVX512VL, PTA_AVX512IFMA, PTA_AVX512VBMI, PTA_CLWB, PTA_MWAITX,
17236 PTA_CLZERO, PTA_NO_80387, PTA_PKU, PTA_AVX5124VNNIW, PTA_AVX5124FMAPS,
17237 PTA_AVX512VPOPCNTDQ, PTA_SGX, PTA_AVX512VNNI, PTA_GFNI, PTA_VAES,
17238 PTA_AVX512VBMI2, PTA_VPCLMULQDQ, PTA_AVX512BITALG, PTA_RDPID,
17239 PTA_PCONFIG, PTA_WBNOINVD, PTA_AVX512VP2INTERSECT, PTA_PTWRITE,
17240 PTA_AVX512BF16, PTA_WAITPKG, PTA_MOVDIRI, PTA_MOVDIR64B, PTA_ENQCMD,
17241 PTA_CLDEMOTE, PTA_SERIALIZE, PTA_TSXLDTRK, PTA_AMX_TILE, PTA_AMX_INT8,
17242 PTA_AMX_BF16, PTA_UINTR, PTA_HRESET, PTA_KL, PTA_WIDEKL, PTA_AVXVNNI,
17243 PTA_X86_64_BASELINE, PTA_X86_64_V2, PTA_X86_64_V3, PTA_X86_64_V4,
17244 PTA_CORE2, PTA_NEHALEM, PTA_WESTMERE, PTA_SANDYBRIDGE, PTA_IVYBRIDGE,
17245 PTA_HASWELL, PTA_BROADWELL, PTA_SKYLAKE, PTA_SKYLAKE_AVX512,
17246 PTA_CASCADELAKE, PTA_COOPERLAKE, PTA_CANNONLAKE, PTA_ICELAKE_CLIENT,
17247 PTA_ICELAKE_SERVER, PTA_TIGERLAKE, PTA_SAPPHIRERAPIDS, PTA_ALDERLAKE,
17248 PTA_KNL, PTA_BONNELL, PTA_SILVERMONT, PTA_GOLDMONT, PTA_GOLDMONT_PLUS,
17249 PTA_TREMONT, PTA_KNM): Use constexpr instead of const.
17250
17251 2021-02-18 Jakub Jelinek <jakub@redhat.com>
17252
17253 PR middle-end/99109
17254 * gimple-array-bounds.cc (build_zero_elt_array_type): Rename to ...
17255 (build_printable_array_type): ... this. Add nelts argument. For
17256 overaligned eltype, use TYPE_MAIN_VARIANT (eltype) instead. If
17257 nelts, call build_array_type_nelts.
17258 (array_bounds_checker::check_mem_ref): Use build_printable_array_type
17259 instead of build_zero_elt_array_type and build_array_type_nelts.
17260
17261 2021-02-18 Jakub Jelinek <jakub@redhat.com>
17262
17263 PR target/99104
17264 * config/i386/i386.c (distance_non_agu_define): Don't call
17265 extract_insn_cached here.
17266 (ix86_lea_outperforms): Save and restore recog_data around call
17267 to distance_non_agu_define and distance_agu_use.
17268 (ix86_ok_to_clobber_flags): Remove.
17269 (ix86_avoid_lea_for_add): Don't call ix86_ok_to_clobber_flags.
17270 (ix86_avoid_lea_for_addr): Likewise. Adjust function comment.
17271 * config/i386/i386.md (*lea<mode>): Change from define_insn_and_split
17272 into define_insn. Move the splitting to define_peephole2 and
17273 check there using peep2_regno_dead_p if FLAGS_REG is dead.
17274
17275 2021-02-17 Julian Brown <julian@codesourcery.com>
17276
17277 * gimplify.c (gimplify_scan_omp_clauses): Handle ATTACH_DETACH
17278 for non-decls.
17279
17280 2021-02-17 Xi Ruoyao <xry111@mengyan1223.wang>
17281
17282 PR target/98491
17283 * config/mips/mips.c (mips_symbol_insns): Do not use
17284 MSA_SUPPORTED_MODE_P if mode is MAX_MACHINE_MODE.
17285
17286 2021-02-16 Vladimir N. Makarov <vmakarov@redhat.com>
17287
17288 PR inline-asm/98096
17289 * stmt.c (resolve_operand_name_1): Take inout operands into account
17290 for access to labels by names.
17291 * doc/extend.texi: Describe counting operands for accessing labels.
17292
17293 2021-02-16 Richard Biener <rguenther@suse.de>
17294
17295 PR tree-optimization/38474
17296 * tree-ssa-structalias.c (variable_info::address_taken): New.
17297 (new_var_info): Initialize address_taken.
17298 (process_constraint): Set address_taken.
17299 (solve_constraints): Use the new address_taken flag rather
17300 than is_reg_var for sorting variables.
17301 (dump_constraint): Dump the variable number if the name
17302 is just NULL.
17303
17304 2021-02-16 Jakub Jelinek <jakub@redhat.com>
17305
17306 PR target/99100
17307 * tree-vect-stmts.c (vectorizable_simd_clone_call): For num_calls != 1
17308 multiply by 4096 and for inbranch by 8192.
17309 * config/i386/i386.c (ix86_simd_clone_usable): For TARGET_AVX512F,
17310 return 3, 2 or 1 for mangle letters 'b', 'c' or 'd'.
17311
17312 2021-02-15 Maya Rashish <coypu@sdf.org>
17313
17314 * config/aarch64/aarch64.c (aarch64_init_builtins):
17315 Call SUBTARGET_INIT_BUILTINS.
17316
17317 2021-02-15 Peter Bergner <bergner@linux.ibm.com>
17318
17319 PR rtl-optimization/98872
17320 * init-regs.c (initialize_uninitialized_regs): Skip initialization
17321 if CONST0_RTX is NULL.
17322
17323 2021-02-15 Richard Sandiford <richard.sandiford@arm.com>
17324
17325 PR rtl-optimization/98863
17326 * rtl-ssa/functions.h (function_info::bb_live_out_info): Delete.
17327 (function_info::build_info): Turn into a declaration, moving the
17328 definition to internals.h.
17329 (function_info::bb_walker): Declare.
17330 (function_info::create_reg_use): Likewise.
17331 (function_info::calculate_potential_phi_regs): Take a build_info
17332 parameter.
17333 (function_info::place_phis, function_info::create_ebbs): Declare.
17334 (function_info::calculate_ebb_live_in_for_debug): Likewise.
17335 (function_info::populate_backedge_phis): Delete.
17336 (function_info::start_block, function_info::end_block): Declare.
17337 (function_info::populate_phi_inputs): Delete.
17338 (function_info::m_potential_phi_regs): Move information to build_info.
17339 * rtl-ssa/internals.h: New file.
17340 (function_info::bb_phi_info): New class.
17341 (function_info::build_info): Moved from functions.h.
17342 Add a constructor and destructor.
17343 (function_info::build_info::ebb_use): Delete.
17344 (function_info::build_info::ebb_def): Likewise.
17345 (function_info::build_info::bb_live_out): Likewise.
17346 (function_info::build_info::tmp_ebb_live_in_for_debug): New variable.
17347 (function_info::build_info::potential_phi_regs): Likewise.
17348 (function_info::build_info::potential_phi_regs_for_debug): Likewise.
17349 (function_info::build_info::ebb_def_regs): Likewise.
17350 (function_info::build_info::bb_phis): Likewise.
17351 (function_info::build_info::bb_mem_live_out): Likewise.
17352 (function_info::build_info::bb_to_rpo): Likewise.
17353 (function_info::build_info::def_stack): Likewise.
17354 (function_info::build_info::old_def_stack_limit): Likewise.
17355 * rtl-ssa/internals.inl (function_info::build_info::record_reg_def):
17356 Remove the regno argument. Push the previous definition onto the
17357 definition stack where necessary.
17358 * rtl-ssa/accesses.cc: Include internals.h.
17359 * rtl-ssa/changes.cc: Likewise.
17360 * rtl-ssa/blocks.cc: Likewise.
17361 (function_info::build_info::build_info): Define.
17362 (function_info::build_info::~build_info): Likewise.
17363 (function_info::bb_walker): New class.
17364 (function_info::bb_walker::bb_walker): Define.
17365 (function_info::add_live_out_use): Convert a logarithmic-complexity
17366 test into a linear one. Allow the same definition to be passed
17367 multiple times.
17368 (function_info::calculate_potential_phi_regs): Moved from
17369 functions.cc. Take a build_info parameter and store the
17370 information there instead.
17371 (function_info::place_phis): New function.
17372 (function_info::add_entry_block_defs): Update call to record_reg_def.
17373 (function_info::calculate_ebb_live_in_for_debug): New function.
17374 (function_info::add_phi_nodes): Use bb_phis to decide which
17375 registers need phi nodes and initialize ebb_def_regs accordingly.
17376 Do not add degenerate phis here.
17377 (function_info::add_artificial_accesses): Use create_reg_use.
17378 Assert that all definitions are listed in the DF LR sets.
17379 Update call to record_reg_def.
17380 (function_info::record_block_live_out): Record live-out register
17381 values in the phis of successor blocks. Use the live-out set
17382 when processing the last block in an EBB, instead of always
17383 using the live-in sets of successor blocks. AND the live sets
17384 with the set of registers that have been defined in the EBB,
17385 rather than with all potential phi registers. Cope correctly
17386 with branches back to the start of the current EBB.
17387 (function_info::start_block): New function.
17388 (function_info::end_block): Likewise.
17389 (function_info::populate_phi_inputs): Likewise.
17390 (function_info::create_ebbs): Likewise.
17391 (function_info::process_all_blocks): Rewrite into a multi-phase
17392 process.
17393 * rtl-ssa/functions.cc: Include internals.h.
17394 (function_info::calculate_potential_phi_regs): Move to blocks.cc.
17395 (function_info::init_function_data): Remove caller.
17396 * rtl-ssa/insns.cc: Include internals.h
17397 (function_info::create_reg_use): New function. Lazily any
17398 degenerate phis needed by the linear RPO view.
17399 (function_info::record_use): Use create_reg_use. When processing
17400 debug uses, use potential_phi_regs and test it before checking
17401 whether the register is live on entry to the current EBB. Lazily
17402 calculate ebb_live_in_for_debug.
17403 (function_info::record_call_clobbers): Update call to record_reg_def.
17404 (function_info::record_def): Likewise.
17405
17406 2021-02-15 Martin Liska <mliska@suse.cz>
17407
17408 * toplev.c (init_asm_output): Free output of
17409 gen_command_line_string function.
17410 (process_options): Likewise.
17411
17412 2021-02-15 Martin Liska <mliska@suse.cz>
17413
17414 * params.opt: Add 2 missing Param keywords.
17415
17416 2021-02-15 Eric Botcazou <ebotcazou@adacore.com>
17417
17418 * df-core.c (df_worklist_dataflow_doublequeue): Use proper cast.
17419
17420 2021-02-15 Jakub Jelinek <jakub@redhat.com>
17421
17422 PR tree-optimization/99079
17423 * match.pd (A % (pow2pcst << N) -> A & ((pow2pcst << N) - 1)): Remove
17424 useless tree_nop_conversion_p (type, TREE_TYPE (@3)) check. Instead
17425 require both type and TREE_TYPE (@1) to be integral types and either
17426 type having smaller or equal precision, or TREE_TYPE (@1) being
17427 unsigned type, or type being signed type. If TREE_TYPE (@1)
17428 doesn't have wrapping overflow, perform the subtraction of one in
17429 unsigned type.
17430
17431 2021-02-14 Jan Hubicka <hubicka@ucw.cz>
17432 Richard Biener <rguether@suse.de>
17433
17434 PR ipa/97346
17435 * ipa-reference.c (ipa_init): Only conditinally initialize
17436 reference_vars_to_consider.
17437 (propagate): Conditionally deninitialize reference_vars_to_consider.
17438 (ipa_reference_write_optimization_summary): Sanity check that
17439 reference_vars_to_consider is not allocated.
17440
17441 2021-02-13 Levy Hsu <admin@levyhsu.com>
17442
17443 PR target/97417
17444 * config/riscv/riscv-shorten-memrefs.c (pass_shorten_memrefs): Add
17445 extend parameter to get_si_mem_base_reg declaration.
17446 (get_si_mem_base_reg): Add extend parameter. Set it.
17447 (analyze): Pass extend arg to get_si_mem_base_reg.
17448 (transform): Likewise. Use it when rewriting mems.
17449 * config/riscv/riscv.c (riscv_legitimize_move): Check for subword
17450 loads and emit sign/zero extending load followed by subreg move.
17451
17452 2021-02-13 Jim Wilson <jimw@sifive.com>
17453
17454 PR target/97417
17455 * config/riscv/riscv.c (riscv_compressed_lw_address_p): Drop early
17456 exit when !reload_completed. Only perform check for compressed reg
17457 if reload_completed.
17458 (riscv_rtx_costs): In MEM case, when optimizing for size and
17459 shorten memrefs, if not compressible, then increase cost.
17460
17461 2021-02-13 Jakub Jelinek <jakub@redhat.com>
17462
17463 PR rtl-optimization/98439
17464 * recog.c (pass_split_before_regstack::gate): Enable even when
17465 pass_split_before_sched2 is enabled if -fselective-scheduling2 is
17466 on.
17467
17468 2021-02-13 Jakub Jelinek <jakub@redhat.com>
17469
17470 PR target/96166
17471 * config/i386/mmx.md (*mmx_pshufd_1): Add a combine splitter for
17472 swap of V2SImode elements in memory into DImode memory rotate by 32.
17473
17474 2021-02-12 Martin Sebor <msebor@redhat.com>
17475
17476 * tree-pretty-print.c (print_generic_expr_to_str): Update comment.
17477
17478 2021-02-12 Richard Sandiford <richard.sandiford@arm.com>
17479
17480 * rtl-ssa/accesses.cc (function_info::make_use_available): Use
17481 m_temp_obstack rather than m_obstack to allocate the temporary use.
17482
17483 2021-02-12 Richard Sandiford <richard.sandiford@arm.com>
17484
17485 * df-problems.c (df_lr_bb_local_compute): Treat partial definitions
17486 as read-modify operations.
17487
17488 2021-02-12 Richard Biener <rguenther@suse.de>
17489
17490 PR middle-end/38474
17491 * ipa-fnsummary.c (unmodified_parm_1): Only walk when
17492 fbi->aa_walk_budget is bigger than zero. Update
17493 fbi->aa_walk_budget.
17494 (param_change_prob): Likewise.
17495 * ipa-prop.c (detect_type_change_from_memory_writes):
17496 Properly account walk_aliased_vdefs.
17497 (parm_preserved_before_stmt_p): Canonicalize updates.
17498 (parm_ref_data_preserved_p): Likewise.
17499 (parm_ref_data_pass_through_p): Likewise.
17500 (determine_known_aggregate_parts): Account own alias queries.
17501
17502 2021-02-12 Martin Liska <mliska@suse.cz>
17503
17504 * opts-common.c (decode_cmdline_option): Release werror_arg.
17505 * opts.c (gen_producer_string): Release output of
17506 gen_command_line_string.
17507
17508 2021-02-12 Richard Biener <rguenther@suse.de>
17509
17510 PR tree-optimization/38474
17511 * params.opt (-param=max-store-chains-to-track=): New param.
17512 (-param=max-stores-to-track=): Likewise.
17513 * doc/invoke.texi (max-store-chains-to-track): Document.
17514 (max-stores-to-track): Likewise.
17515 * gimple-ssa-store-merging.c (pass_store_merging::m_n_chains):
17516 New.
17517 (pass_store_merging::m_n_stores): Likewise.
17518 (pass_store_merging::terminate_and_process_chain): Update
17519 m_n_stores and m_n_chains.
17520 (pass_store_merging::process_store): Likewise. Terminate
17521 oldest chains if the number of stores or chains get too large.
17522 (imm_store_chain_info::terminate_and_process_chain): Dump
17523 chain length.
17524
17525 2021-02-11 Eric Botcazou <ebotcazou@adacore.com>
17526
17527 * config/i386/winnt.c (i386_pe_seh_unwind_emit): When switching to
17528 the cold section, emit a nop before the directive if the previous
17529 active instruction can throw.
17530
17531 2021-02-11 Peter Bergner <bergner@linux.ibm.com>
17532
17533 PR target/99041
17534 * config/rs6000/predicates.md (mma_assemble_input_operand): Restrict
17535 memory addresses that are legal for quad word accesses.
17536
17537 2021-02-11 Andrea Corallo <andrea.corallo@arm.com>
17538
17539 PR target/98931
17540 * config/arm/thumb2.md (*doloop_end_internal): Generate
17541 alternative sequence to handle long range branches.
17542
17543 2021-02-11 Joel Hutton <joel.hutton@arm.com>
17544
17545 PR tree-optimization/98772
17546 * optabs-tree.c (supportable_half_widening_operation): New function
17547 to check for supportable V8QI->V8HI widening patterns.
17548 * optabs-tree.h (supportable_half_widening_operation): New function.
17549 * tree-vect-stmts.c (vect_create_half_widening_stmts): New function
17550 to create promotion stmts for V8QI->V8HI widening patterns.
17551 (vectorizable_conversion): Add case for V8QI->V8HI.
17552
17553 2021-02-11 Richard Biener <rguenther@suse.de>
17554
17555 * sparseset.h (SPARSESET_ELT_BITS): Remove.
17556 (SPARSESET_ELT_TYPE): Use unsigned int.
17557 * fwprop.c: Do not include sparseset.h.
17558
17559 2021-02-10 Jakub Jelinek <jakub@redhat.com>
17560
17561 PR c++/99035
17562 * varasm.c (declare_weak): For -fsyntax-only, allow even
17563 TREE_ASM_WRITTEN function decls.
17564
17565 2021-02-10 Jakub Jelinek <jakub@redhat.com>
17566
17567 PR target/99025
17568 * config/i386/sse.md (fix<fixunssuffix>_truncv2sfv2di2,
17569 <insn>v8qiv8hi2, <insn>v8qiv8si2, <insn>v4qiv4si2, <insn>v4hiv4si2,
17570 <insn>v8qiv8di2, <insn>v4qiv4di2, <insn>v2qiv2di2, <insn>v4hiv4di2,
17571 <insn>v2hiv2di2, <insn>v2siv2di2): Force operands[1] into REG before
17572 calling simplify_gen_subreg on it.
17573
17574 2021-02-10 Martin Liska <mliska@suse.cz>
17575
17576 * config/nvptx/nvptx.c (nvptx_option_override): Use
17577 flag_patchable_function_entry instead of the removed
17578 function_entry_patch_area_size.
17579
17580 2021-02-10 Martin Liska <mliska@suse.cz>
17581
17582 PR tree-optimization/99002
17583 PR tree-optimization/99026
17584 * gimple-if-to-switch.cc (if_chain::is_beneficial): Fix memory
17585 leak when adjacent cases are merged.
17586 * tree-switch-conversion.c (switch_decision_tree::analyze_switch_statement): Use
17587 release_clusters.
17588 (make_pass_lower_switch): Remove trailing whitespace.
17589 * tree-switch-conversion.h (release_clusters): New.
17590
17591 2021-02-10 Richard Biener <rguenther@suse.de>
17592
17593 PR rtl-optimization/99054
17594 * cfgrtl.c (rtl-optimization/99054): Return an auto_vec.
17595 (fixup_partitions): Adjust.
17596 (rtl_verify_edges): Likewise.
17597
17598 2021-02-10 Jakub Jelinek <jakub@redhat.com>
17599
17600 PR middle-end/99007
17601 * gimplify.c (gimplify_scan_omp_clauses): For MEM_REF on reductions,
17602 temporarily disable gimplify_ctxp->into_ssa around gimplify_expr
17603 calls.
17604
17605 2021-02-10 Richard Biener <rguenther@suse.de>
17606
17607 PR ipa/99029
17608 * ipa-pure-const.c (propagate_malloc): Use an auto_vec<>
17609 for callees.
17610
17611 2021-02-10 Richard Biener <rguenther@suse.de>
17612
17613 PR tree-optimization/99024
17614 * tree-vect-loop.c (_loop_vec_info::~_loop_vec_info): Only
17615 clear loop->aux if it is associated with the destroyed loop_vinfo.
17616
17617 2021-02-10 Martin Liska <mliska@suse.cz>
17618
17619 PR tree-optimization/99002
17620 * gimple-if-to-switch.cc (find_conditions): Fix memory leak
17621 in the function.
17622
17623 2021-02-10 Martin Liska <mliska@suse.cz>
17624
17625 PR ipa/99003
17626 * ipa-icf.c (sem_item::add_reference): Fix memory leak when
17627 a reference exists.
17628
17629 2021-02-10 Jakub Jelinek <jakub@redhat.com>
17630
17631 PR debug/98755
17632 * dwarf2out.c (prune_unused_types_walk): Mark DW_TAG_variable DIEs
17633 at class scope for DWARF5+.
17634
17635 2021-02-09 Eric Botcazou <ebotcazou@adacore.com>
17636
17637 PR rtl-optimization/96015
17638 * reorg.c (skip_consecutive_labels): Minor comment tweaks.
17639 (relax_delay_slots): When deleting a jump to the next active
17640 instruction over a barrier, first delete the barrier if the
17641 jump is the only way to reach the target label.
17642
17643 2021-02-09 Andre Vieira <andre.simoesdiasvieira@arm.com>
17644
17645 * config/aarch64/aarch64-cost-tables.h: Add entries for vect.mul.
17646 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Use vect.mul for
17647 vector multiplies and vect.alu for SSRA.
17648 * config/arm/aarch-common-protos.h (struct vector_cost_table): Define
17649 vect.mul cost field.
17650 * config/arm/aarch-cost-tables.h: Add entries for vect.mul.
17651 * config/arm/arm.c: Likewise.
17652
17653 2021-02-09 Richard Biener <rguenther@suse.de>
17654
17655 PR tree-optimization/98863
17656 * tree-ssa-sccvn.h (vn_avail::next_undo): Add.
17657 * tree-ssa-sccvn.c (last_pushed_avail): New global.
17658 (rpo_elim::eliminate_push_avail): Chain pushed avails.
17659 (unwind_state::avail_top): Add.
17660 (do_unwind): Rewrite unwinding of avail entries.
17661 (do_rpo_vn): Initialize last_pushed_avail and
17662 avail_top of the undo state.
17663
17664 2021-02-09 Jakub Jelinek <jakub@redhat.com>
17665
17666 PR middle-end/99004
17667 * calls.c (maybe_warn_rdwr_sizes): Change s0 and s1 type from
17668 const char * to char * and free those pointers after use.
17669
17670 2021-02-09 Richard Biener <rguenther@suse.de>
17671
17672 PR tree-optimization/99017
17673 * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Allow
17674 zero vector cost entries.
17675
17676 2021-02-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
17677
17678 PR middle-end/98974
17679 * tree-vect-stmts.c (vectorizable_condition): Remove shadow vec_num
17680 parameter in vectorizable_condition.
17681
17682 2021-02-08 Richard Biener <rguenther@suse.de>
17683
17684 PR lto/96591
17685 * tree.c (walk_tree_1): Walk VECTOR_CST elements.
17686
17687 2021-02-08 Martin Liska <mliska@suse.cz>
17688
17689 PR lto/98971
17690 * cfgexpand.c (pass_expand::execute): Parse per-function option
17691 flag_patchable_function_entry and use it.
17692 * common.opt: Remove function_entry_patch_area_size and
17693 function_entry_patch_area_start global variables.
17694 * opts.c (parse_and_check_patch_area): New function.
17695 (common_handle_option): Use it.
17696 * opts.h (parse_and_check_patch_area): New function.
17697 * toplev.c (process_options): Parse and use
17698 function_entry_patch_area_size.
17699
17700 2021-02-08 Martin Sebor <msebor@redhat.com>
17701
17702 * doc/extend.texi (attribute malloc): Correct typos.
17703
17704 2021-02-05 Nathan Sidwell <nathan@acm.org>
17705
17706 PR driver/98943
17707 * gcc.c (driver::maybe_run_linker): Check for input file
17708 accessibility if not linking.
17709
17710 2021-02-05 Richard Biener <rguenther@suse.de>
17711
17712 PR tree-optimization/98855
17713 * tree-vectorizer.h (add_stmt_cost): New overload.
17714 * tree-vect-slp.c (li_cost_vec_cmp): New.
17715 (vect_bb_slp_scalar_cost): Cost individual loop regions
17716 separately. Account for the scalar instance root stmt.
17717
17718 2021-02-05 Tom de Vries <tdevries@suse.de>
17719
17720 PR debug/98656
17721 * tree-switch-conversion.c (jump_table_cluster::emit): Add loc
17722 argument.
17723 (bit_test_cluster::emit): Reuse location_t for newly created
17724 gswitch statement.
17725 (switch_decision_tree::try_switch_expansion): Preserve
17726 location_t.
17727 * tree-switch-conversion.h: Change function signatures.
17728
17729 2021-02-05 Jakub Jelinek <jakub@redhat.com>
17730
17731 PR target/98957
17732 * config/i386/i386-options.c (m_NONE, m_ALL): Define.
17733 * config/i386/x86-tune.def (X86_TUNE_BRANCH_PREDICTION_HINTS,
17734 X86_TUNE_PROMOTE_QI_REGS): Use m_NONE instead of 0U.
17735 (X86_TUNE_QIMODE_MATH): Use m_ALL instead of ~0U.
17736
17737 2021-02-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17738
17739 * config/aarch64/aarch64-simd-builtins.def (get_high): Define builtin.
17740 * config/aarch64/aarch64-simd.md (aarch64_get_high<mode>): Define.
17741 * config/aarch64/arm_neon.h (__GET_HIGH): Delete.
17742 (vget_high_f16): Reimplement using new builtin.
17743 (vget_high_f32): Likewise.
17744 (vget_high_f64): Likewise.
17745 (vget_high_p8): Likewise.
17746 (vget_high_p16): Likewise.
17747 (vget_high_p64): Likewise.
17748 (vget_high_s8): Likewise.
17749 (vget_high_s16): Likewise.
17750 (vget_high_s32): Likewise.
17751 (vget_high_s64): Likewise.
17752 (vget_high_u8): Likewise.
17753 (vget_high_u16): Likewise.
17754 (vget_high_u32): Likewise.
17755 (vget_high_u64): Likewise.
17756
17757 2021-02-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17758
17759 * config/aarch64/aarch64-simd-builtins.def (get_low): Define builtin.
17760 * config/aarch64/aarch64-simd.md (aarch64_get_low<mode>): Define.
17761 * config/aarch64/arm_neon.h (__GET_LOW): Delete.
17762 (vget_low_f16): Reimplement using new builtin.
17763 (vget_low_f32): Likewise.
17764 (vget_low_f64): Likewise.
17765 (vget_low_p8): Likewise.
17766 (vget_low_p16): Likewise.
17767 (vget_low_p64): Likewise.
17768 (vget_low_s8): Likewise.
17769 (vget_low_s16): Likewise.
17770 (vget_low_s32): Likewise.
17771 (vget_low_s64): Likewise.
17772 (vget_low_u8): Likewise.
17773 (vget_low_u16): Likewise.
17774 (vget_low_u32): Likewise.
17775 (vget_low_u64): Likewise.
17776
17777 2021-02-05 Kito Cheng <kito.cheng@sifive.com>
17778
17779 * gcc.c (print_multilib_info): Check all required argument is provided
17780 by default arg.
17781
17782 2021-02-05 liuhongt <hongtao.liu@intel.com>
17783
17784 PR target/98537
17785 * config/i386/i386-expand.c (ix86_expand_sse_cmp): Don't
17786 generate integer mask comparison for 128/256-bits vector when
17787 op_true/op_false is NULL_RTX or CONSTM1_RTX/CONST0_RTX. Also
17788 delete redundant !maskcmp condition.
17789 (ix86_expand_int_vec_cmp): Ditto but no redundant deletion
17790 here.
17791 (ix86_expand_sse_movcc): Delete definition of maskcmp, add the
17792 condition directly to if (maskcmp), add extra check for
17793 cmpmode, it should be MODE_INT.
17794 (ix86_expand_fp_vec_cmp): Pass NULL to ix86_expand_sse_cmp's
17795 parameters op_true/op_false.
17796 (ix86_use_mask_cmp_p): New.
17797
17798 2021-02-05 liuhongt <hongtao.liu@intel.com>
17799
17800 PR target/98172
17801 * config/i386/x86-tune.def (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL):
17802 Remove m_GENERIC from ~list.
17803 (X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): Ditto.
17804
17805 2021-02-04 David Malcolm <dmalcolm@redhat.com>
17806
17807 PR c/97932
17808 * diagnostic-show-locus.c (compatible_locations_p): Require
17809 locations in the same macro map to be either both from the
17810 macro definition, or both from the macro arguments.
17811
17812 2021-02-04 Jonathan Wright <jonathan.wright@arm.com>
17813
17814 * config/aarch64/aarch64-simd-builtins.def: Add
17815 [su]mull_hi_lane[q] builtin generator macros.
17816 * config/aarch64/aarch64-simd.md
17817 (aarch64_<su>mull_hi_lane<mode>_insn): Define.
17818 (aarch64_<su>mull_hi_lane<mode>): Define.
17819 (aarch64_<su>mull_hi_laneq<mode>_insn): Define.
17820 (aarch64_<su>mull_hi_laneq<mode>): Define.
17821 * config/aarch64/arm_neon.h (vmull_high_lane_s16): Use RTL
17822 builtin instead of inline asm.
17823 (vmull_high_lane_s32): Likewise.
17824 (vmull_high_lane_u16): Likewise.
17825 (vmull_high_lane_u32): Likewise.
17826 (vmull_high_laneq_s16): Likewise.
17827 (vmull_high_laneq_s32): Likewise.
17828 (vmull_high_laneq_u16): Likewise.
17829 (vmull_high_laneq_u32): Liekwise.
17830
17831 2021-02-04 Jonathan Wright <jonathan.wright@arm.com>
17832
17833 * config/aarch64/aarch64-simd-builtins.def: Add [su]mull_hi_n
17834 builtin generator macros.
17835 * config/aarch64/aarch64-simd.md
17836 (aarch64_<su>mull_hi_n<mode>_insn): Define.
17837 (aarch64_<su>mull_hi_n<mode>): Define.
17838 * config/aarch64/arm_neon.h (vmull_high_n_s16): Use RTL builtin
17839 instead of inline asm.
17840 (vmull_high_n_s32): Likewise.
17841 (vmull_high_n_u16): Likewise.
17842 (vmull_high_n_u32): Likewise.
17843
17844 2021-02-04 Richard Biener <rguenther@suse.de>
17845
17846 PR tree-optimization/98855
17847 * tree-vect-loop.c (vectorizable_phi): Do not cost
17848 single-argument PHIs.
17849 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Likewise.
17850 * tree-vect-stmts.c (vectorizable_bswap): Also perform
17851 costing for SLP operation.
17852
17853 2021-02-04 Martin Liska <mliska@suse.cz>
17854
17855 * doc/extend.texi: Mention -mprefer-vector-width in target
17856 attributes.
17857
17858 2021-02-03 Martin Sebor <msebor@redhat.com>
17859
17860 PR tree-optimization/98937
17861 * tree-ssa-strlen.c (strlen_dom_walker::~strlen_dom_walker): Define.
17862 Flush pointer_query cache.
17863
17864 2021-02-03 Aaron Sawdey <acsawdey@linux.ibm.com>
17865
17866 * config/rs6000/genfusion.pl (gen_2logical): Add missing
17867 fixes based on patch review.
17868 * config/rs6000/fusion.md: Regenerate file.
17869
17870 2021-02-03 Aaron Sawdey <acsawdey@linux.ibm.com>
17871
17872 * config/rs6000/t-rs6000: Comment out auto generation of
17873 fusion.md for now.
17874
17875 2021-02-03 Andrew Stubbs <ams@codesourcery.com>
17876
17877 * config/gcn/gcn-opts.h (enum processor_type): Add PROCESSOR_GFX908.
17878 * config/gcn/gcn.c (gcn_omp_device_kind_arch_isa): Add gfx908.
17879 (output_file_start): Add gfx908.
17880 * config/gcn/gcn.opt (gpu_type): Add gfx908.
17881 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add march=gfx908.
17882 (MULTILIB_DIRNAMES): Add gfx908.
17883 * config/gcn/mkoffload.c (EF_AMDGPU_MACH_AMDGCN_GFX908): New define.
17884 (main): Recognize gfx908.
17885 * config/gcn/t-omp-device: Add gfx908.
17886
17887 2021-02-03 Jonathan Wright <jonathan.wright@arm.com>
17888
17889 * config/aarch64/aarch64-simd-builtins.def: Add
17890 [su]mlsl_hi_lane[q] builtin macro generators.
17891 * config/aarch64/aarch64-simd.md
17892 (aarch64_<su>mlsl_hi_lane<mode>_insn): Define.
17893 (aarch64_<su>mlsl_hi_lane<mode>): Define.
17894 (aarch64_<su>mlsl_hi_laneq<mode>_insn): Define.
17895 (aarch64_<su>mlsl_hi_laneq<mode>): Define.
17896 * config/aarch64/arm_neon.h (vmlsl_high_lane_s16): Use RTL
17897 builtin instead of inline asm.
17898 (vmlsl_high_lane_s32): Likewise.
17899 (vmlsl_high_lane_u16): Likewise.
17900 (vmlsl_high_lane_u32): Likewise.
17901 (vmlsl_high_laneq_s16): Likewise.
17902 (vmlsl_high_laneq_s32): Likewise.
17903 (vmlsl_high_laneq_u16): Likewise.
17904 (vmlsl_high_laneq_u32): Likewise.
17905 (vmlal_high_laneq_u32): Likewise.
17906
17907 2021-02-03 Jonathan Wright <jonathan.wright@arm.com>
17908
17909 * config/aarch64/aarch64-simd-builtins.def: Add
17910 [su]mlal_hi_lane[q] builtin generator macros.
17911 * config/aarch64/aarch64-simd.md
17912 (aarch64_<su>mlal_hi_lane<mode>_insn): Define.
17913 (aarch64_<su>mlal_hi_lane<mode>): Define.
17914 (aarch64_<su>mlal_hi_laneq<mode>_insn): Define.
17915 (aarch64_<su>mlal_hi_laneq<mode>): Define.
17916 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Use RTL
17917 builtin instead of inline asm.
17918 (vmlal_high_lane_s32): Likewise.
17919 (vmlal_high_lane_u16): Likewise.
17920 (vmlal_high_lane_u32): Likewise.
17921 (vmlal_high_laneq_s16): Likewise.
17922 (vmlal_high_laneq_s32): Likewise.
17923 (vmlal_high_laneq_u16): Likewise.
17924 (vmlal_high_laneq_u32): Likewise.
17925
17926 2021-02-03 Jonathan Wright <jonathan.wright@arm.com>
17927
17928 * config/aarch64/aarch64-simd-builtins.def: Add [su]mlsl_hi_n
17929 builtin generator macros.
17930 * config/aarch64/aarch64-simd.md (aarch64_<su>mlsl_hi_n<mode>_insn):
17931 Define.
17932 (aarch64_<su>mlsl_hi_n<mode>): Define.
17933 * config/aarch64/arm_neon.h (vmlsl_high_n_s16): Use RTL builtin
17934 instead of inline asm.
17935 (vmlsl_high_n_s32): Likewise.
17936 (vmlsl_high_n_u16): Likewise.
17937 (vmlsl_high_n_u32): Likewise.
17938
17939 2021-02-03 Jonathan Wright <jonathan.wright@arm.com>
17940
17941 * config/aarch64/aarch64-simd-builtins.def: Add [su]mlal_hi_n
17942 builtin generator macros.
17943 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_hi_n<mode>_insn):
17944 Define.
17945 (aarch64_<su>mlal_hi_n<mode>): Define.
17946 * config/aarch64/arm_neon.h (vmlal_high_n_s16): Use RTL builtin
17947 instead of inline asm.
17948 (vmlal_high_n_s32): Likewise.
17949 (vmlal_high_n_u16): Likewise.
17950 (vmlal_high_n_u32): Likewise.
17951
17952 2021-02-03 Jonathan Wright <jonathan.wright@arm.com>
17953
17954 * config/aarch64/aarch64-simd-builtins.def: Add RTL builtin
17955 generator macros.
17956 * config/aarch64/aarch64-simd.md (*aarch64_<su>mlal_hi<mode>):
17957 Rename to...
17958 (aarch64_<su>mlal_hi<mode>_insn): This.
17959 (aarch64_<su>mlal_hi<mode>): Define.
17960 * config/aarch64/arm_neon.h (vmlal_high_s8): Use RTL builtin
17961 instead of inline asm.
17962 (vmlal_high_s16): Likewise.
17963 (vmlal_high_s32): Likewise.
17964 (vmlal_high_u8): Likewise.
17965 (vmlal_high_u16): Likewise.
17966 (vmlal_high_u32): Likewise.
17967
17968 2021-02-03 Ilya Leoshkevich <iii@linux.ibm.com>
17969
17970 * lra-spills.c (remove_pseudos): Call lra_update_insn_recog_data()
17971 after calling alter_subreg() on a (mem).
17972
17973 2021-02-03 Martin Liska <mliska@suse.cz>
17974
17975 PR lto/98912
17976 * lto-streamer-out.c (produce_lto_section): Fill up missing
17977 padding.
17978 * lto-streamer.h (struct lto_section): Add _padding field.
17979
17980 2021-02-03 Richard Biener <rguenther@suse.de>
17981
17982 * lto-streamer.c (lto_get_section_name): Free temporary
17983 buffer.
17984 * tree-loop-distribution.c
17985 (loop_distribution::merge_dep_scc_partitions): Free edge data.
17986
17987 2021-02-03 Jakub Jelinek <jakub@redhat.com>
17988
17989 PR middle-end/97487
17990 * ifcvt.c (noce_can_force_operand): New function.
17991 (noce_emit_move_insn): Use it.
17992 (noce_try_sign_mask): Likewise. Formatting fix.
17993
17994 2021-02-03 Jakub Jelinek <jakub@redhat.com>
17995
17996 PR middle-end/97971
17997 * lra-constraints.c (process_alt_operands): For inline asm, don't call
17998 fatal_insn, but instead return false.
17999
18000 2021-02-03 Jakub Jelinek <jakub@redhat.com>
18001
18002 PR tree-optimization/98287
18003 * config/i386/mmx.md (<insn><mode>3): For shifts don't enable expander
18004 for V1DImode.
18005
18006 2021-02-03 Tamar Christina <tamar.christina@arm.com>
18007
18008 PR tree-optimization/98928
18009 * tree-vect-loop.c (vect_analyze_loop_2): Change
18010 STMT_VINFO_SLP_VECT_ONLY to STMT_VINFO_SLP_VECT_ONLY_PATTERN.
18011 * tree-vect-slp-patterns.c (complex_pattern::build): Likewise.
18012 * tree-vectorizer.h (STMT_VINFO_SLP_VECT_ONLY_PATTERN): New.
18013 (class _stmt_vec_info): Add slp_vect_pattern_only_p.
18014
18015 2021-02-02 Richard Biener <rguenther@suse.de>
18016
18017 * gimple-loop-interchange.cc (prepare_data_references):
18018 Release vectors.
18019 * gimple-loop-jam.c (tree_loop_unroll_and_jam): Likewise.
18020 * tree-ssa-loop-im.c (hoist_memory_references): Likewise.
18021 * tree-vect-stmts.c (vectorizable_condition): Do not
18022 allocate vectors.
18023 (vectorizable_comparison): Likewise.
18024
18025 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18026
18027 * config/aarch64/aarch64-simd-builtins.def (ursqrte): Define builtin.
18028 * config/aarch64/aarch64-simd.md (aarch64_ursqrte<mode>): New pattern.
18029 * config/aarch64/arm_neon.h (vrsqrte_u32): Reimplement using builtin.
18030 (vrsqrteq_u32): Likewise.
18031
18032 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18033
18034 * config/aarch64/aarch64-simd-builtins.def (sqxtun2): Define builtin.
18035 * config/aarch64/aarch64-simd.md (aarch64_sqxtun2<mode>_le): Define.
18036 (aarch64_sqxtun2<mode>_be): Likewise.
18037 (aarch64_sqxtun2<mode>): Likewise.
18038 * config/aarch64/arm_neon.h (vqmovun_high_s16): Reimplement using builtin.
18039 (vqmovun_high_s32): Likewise.
18040 (vqmovun_high_s64): Likewise.
18041 * config/aarch64/iterators.md (UNSPEC_SQXTUN2): Define.
18042
18043 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18044
18045 * config/aarch64/aarch64-simd-builtins.def (bfdot_lane, bfdot_laneq): Use
18046 AUTO_FP flags.
18047 (bfmlalb_lane, bfmlalt_lane, bfmlalb_lane_q, bfmlalt_lane_q): Use FP flags.
18048
18049 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18050
18051 * config/aarch64/aarch64-simd-builtins.def (fcmla_lane0, fcmla_lane90,
18052 fcmla_lane180, fcmla_lane270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
18053 fcmlaq_lane270, scvtf, ucvtf, fcvtzs, fcvtzu, scvtfsi, scvtfdi, ucvtfsi,
18054 ucvtfdi, fcvtzshf, fcvtzuhf, fmlal_lane_low, fmlsl_lane_low,
18055 fmlal_laneq_low, fmlsl_laneq_low, fmlalq_lane_low, fmlslq_lane_low,
18056 fmlalq_laneq_low, fmlslq_laneq_low, fmlal_lane_high, fmlsl_lane_high,
18057 fmlal_laneq_high, fmlsl_laneq_high, fmlalq_lane_high, fmlslq_lane_high,
18058 fmlalq_laneq_high, fmlslq_laneq_high): Use FP flags.
18059
18060 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18061
18062 * config/aarch64/aarch64-builtins.c (FLAG_LOAD): Define.
18063 * config/aarch64/aarch64-simd-builtins.def (ld1x2, ld2, ld3, ld4, ld2r,
18064 ld3r, ld4r, ld1, ld1x3, ld1x4): Use LOAD flags.
18065
18066 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18067
18068 * config/aarch64/aarch64-simd-builtins.def (combine, zip1, zip2,
18069 uzp1, uzp2, trn1, trn2, simd_bsl): Use AUTO_FP flags.
18070
18071 2021-02-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18072
18073 * config/aarch64/aarch64-simd-builtins.def (clrsb, clz, ctz, popcount,
18074 vec_smult_lane_, vec_smlal_lane_, vec_smult_laneq_, vec_smlal_laneq_,
18075 vec_umult_lane_, vec_umlal_lane_, vec_umult_laneq_, vec_umlal_laneq_,
18076 ashl, sshl, ushl, srshl, urshl, sdot_lane, udot_lane, sdot_laneq,
18077 udot_laneq, usdot_lane, usdot_laneq, sudot_lane, sudot_laneq, ashr,
18078 ashr_simd, lshr, lshr_simd, srshr_n, urshr_n, ssra_n, usra_n, srsra_n,
18079 ursra_n, sshll_n, ushll_n, sshll2_n, ushll2_n, ssri_n, usri_n, ssli_n,
18080 ssli_n, usli_n, bswap, rbit, simd_bsl, eor3q, rax1q, xarq, bcaxq): Use
18081 NONE builtin flags.
18082
18083 2021-02-02 Jakub Jelinek <jakub@redhat.com>
18084
18085 PR tree-optimization/98848
18086 * tree-vect-patterns.c (vect_recog_over_widening_pattern): Punt if
18087 STMT_VINFO_DEF_TYPE (last_stmt_info) is vect_reduction_def.
18088
18089 2021-02-02 Kito Cheng <kito.cheng@sifive.com>
18090
18091 PR target/98743
18092 * expr.c: Check mode before calling store_expr.
18093
18094 2021-02-02 Christophe Lyon <christophe.lyon@linaro.org>
18095
18096 * config/arm/iterators.md (supf): Remove VORNQ_S and VORNQ_U.
18097 (VORNQ): Remove.
18098 * config/arm/mve.md (mve_vornq_s<mode>): New entry for vorn
18099 instruction using expression ior.
18100 (mve_vornq_u<mode>): New expander.
18101 (mve_vornq_f<mode>): Use ior code instead of unspec.
18102 * config/arm/unspecs.md (VORNQ_S, VORNQ_U, VORNQ_F): Remove.
18103
18104 2021-02-02 Alexandre Oliva <oliva@adacore.com>
18105
18106 * tree-nested.c (convert_nonlocal_reference_op): Move
18107 current_function_decl restore after re-gimplification.
18108 (convert_local_reference_op): Likewise.
18109
18110 2021-02-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18111
18112 * config/aarch64/aarch64-simd-builtins.def (rshrn, rshrn2):
18113 Define builtins.
18114 * config/aarch64/aarch64-simd.md (aarch64_rshrn<mode>_insn_le):
18115 Define.
18116 (aarch64_rshrn<mode>_insn_be): Likewise.
18117 (aarch64_rshrn<mode>): Likewise.
18118 (aarch64_rshrn2<mode>_insn_le): Likewise.
18119 (aarch64_rshrn2<mode>_insn_be): Likewise.
18120 (aarch64_rshrn2<mode>): Likewise.
18121 * config/aarch64/aarch64.md (unspec): Add UNSPEC_RSHRN.
18122 * config/aarch64/arm_neon.h (vrshrn_high_n_s16): Reimplement
18123 using builtin.
18124 (vrshrn_high_n_s32): Likewise.
18125 (vrshrn_high_n_s64): Likewise.
18126 (vrshrn_high_n_u16): Likewise.
18127 (vrshrn_high_n_u32): Likewise.
18128 (vrshrn_high_n_u64): Likewise.
18129 (vrshrn_n_s16): Likewise.
18130 (vrshrn_n_s32): Likewise.
18131 (vrshrn_n_s64): Likewise.
18132 (vrshrn_n_u16): Likewise.
18133 (vrshrn_n_u32): Likewise.
18134 (vrshrn_n_u64): Likewise.
18135
18136 2021-02-01 Sergei Trofimovich <siarheit@google.com>
18137
18138 PR tree-optimization/98499
18139 * ipa-modref.c (analyze_ssa_name_flags): treat RVO
18140 conservatively and assume all possible side-effects.
18141
18142 2021-02-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18143
18144 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi,
18145 vec_unpacku_hi_): Define builtins.
18146 * config/aarch64/arm_neon.h (vmovl_high_s8): Reimplement using
18147 builtin.
18148 (vmovl_high_s16): Likewise.
18149 (vmovl_high_s32): Likewise.
18150 (vmovl_high_u8): Likewise.
18151 (vmovl_high_u16): Likewise.
18152 (vmovl_high_u32): Likewise.
18153
18154 2021-02-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18155
18156 * config/aarch64/aarch64-simd-builtins.def (sabdl, uabdl):
18157 Define builtins.
18158 * config/aarch64/aarch64-simd.md (aarch64_<sur>abdl<mode>): New
18159 pattern.
18160 * config/aarch64/aarch64.md (unspec): Define UNSPEC_SABDL,
18161 UNSPEC_UABDL.
18162 * config/aarch64/arm_neon.h (vabdl_s8): Reimplemet using
18163 builtin.
18164 (vabdl_s16): Likewise.
18165 (vabdl_s32): Likewise.
18166 (vabdl_u8): Likewise.
18167 (vabdl_u16): Likewise.
18168 (vabdl_u32): Likewise.
18169 * config/aarch64/iterators.md (ABDL): New int iterator.
18170 (sur): Handle UNSPEC_SABDL, UNSPEC_UABDL.
18171
18172 2021-02-01 Martin Sebor <msebor@redhat.com>
18173
18174 * tree.h (BLOCK_VARS): Add comment.
18175 (BLOCK_SUBBLOCKS): Same.
18176 (BLOCK_SUPERCONTEXT): Same.
18177 (BLOCK_ABSTRACT_ORIGIN): Same.
18178 (inlined_function_outer_scope_p): Same.
18179
18180 2021-02-01 Martin Sebor <msebor@redhat.com>
18181
18182 PR middle-end/97172
18183 * attribs.c (attr_access::free_lang_data): Define new function.
18184 * attribs.h (attr_access::free_lang_data): Declare new function.
18185
18186 2021-02-01 Richard Biener <rguenther@suse.de>
18187
18188 * vec.h (auto_vec::auto_vec): Add memory stat parameters
18189 and pass them on.
18190 * bitmap.h (auto_bitmap::auto_bitmap): Likewise.
18191
18192 2021-02-01 Tamar Christina <tamar.christina@arm.com>
18193
18194 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_n<mode>,
18195 aarch64_<su>mlsl<mode>, aarch64_<su>mlsl_n<mode>): Flip mult operands.
18196
18197 2021-02-01 Richard Biener <rguenther@suse.de>
18198
18199 PR rtl-optimization/98863
18200 * config/i386/i386-features.c (convert_scalars_to_vector):
18201 Set DF_RD_PRUNE_DEAD_DEFS.
18202
18203 2021-01-31 Eric Botcazou <ebotcazou@adacore.com>
18204
18205 * system.h (SIZE_MAX): Define if not already defined.
18206
18207 2021-01-30 Aaron Sawdey <acsawdey@linux.ibm.com>
18208
18209 * config/rs6000/genfusion.pl (gen_2logical): New function to
18210 generate patterns for logical-logical fusion.
18211 * config/rs6000/fusion.md: Regenerated patterns.
18212 * config/rs6000/rs6000-cpus.def: Add
18213 OPTION_MASK_P10_FUSION_2LOGICAL.
18214 * config/rs6000/rs6000.c (rs6000_option_override_internal):
18215 Enable logical-logical fusion for p10.
18216 * config/rs6000/rs6000.opt: Add -mpower10-fusion-2logical.
18217
18218 2021-01-30 David Edelsohn <dje.gcc@gmail.com>
18219
18220 * config/rs6000/rs6000.opt: Add periods to new AIX options.
18221
18222 2021-01-30 David Edelsohn <dje.gcc@gmail.com>
18223
18224 * config/rs6000/rs6000.opt (mabi=vec-extabi): New.
18225 (mabi=vec-default): New.
18226 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
18227 __EXTABI__ for AIX Vector extended ABI.
18228 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print AIX Vector
18229 extabi info.
18230 (conditional_register_usage): If AIX vec_extabi enabled, vs20-vs31
18231 are non-volatile.
18232 * doc/invoke.texi (PowerPC mabi): Add AIX vec-extabi and vec-default.
18233
18234 2021-01-30 Jakub Jelinek <jakub@redhat.com>
18235
18236 * config/i386/i386-features.c (remove_partial_avx_dependency): Clear
18237 DF_DEFER_INSN_RESCAN after calling df_process_deferred_rescans.
18238
18239 2021-01-29 Vladimir N. Makarov <vmakarov@redhat.com>
18240
18241 PR target/97701
18242 * lra-constraints.c (in_class_p): Don't narrow class only for REG
18243 or MEM.
18244
18245 2021-01-29 Will Schmidt <will_schmidt@vnet.ibm.com>
18246
18247 * config/rs6000/rs6000-call.c (rs6000_expand_binup_builtin): Add
18248 clauses for CODE_FOR_vsx_xvcvuxddp_scale and
18249 CODE_FOR_vsx_xvcvsxddp_scale to the parameter checking code.
18250
18251 2021-01-29 Andrew MacLeod <amacleod@redhat.com>
18252
18253 PR tree-optimization/98866
18254 * gimple-range-gori.h (gori_compute:set_range_invariant): New.
18255 * gimple-range-gori.cc (gori_map::set_range_invariant): New.
18256 (gori_map::m_maybe_invariant): Rename from all_outgoing.
18257 (gori_map::gori_map): Rename all_outgoing to m_maybe_invariant.
18258 (gori_map::is_export_p): Ditto.
18259 (gori_map::calculate_gori): Ditto.
18260 (gori_compute::set_range_invariant): New.
18261 * gimple-range.cc (gimple_ranger::range_of_stmt): Set range
18262 invariant for pointers evaluating to [1, +INF].
18263
18264 2021-01-29 Richard Biener <rguenther@suse.de>
18265
18266 PR rtl-optimization/98863
18267 * config/i386/i386-features.c (remove_partial_avx_dependency):
18268 Do not perform DF analysis.
18269 (pass_data_remove_partial_avx_dependency): Remove
18270 TODO_df_finish.
18271
18272 2021-01-29 Jonathan Wright <jonathan.wright@arm.com>
18273
18274 * config/aarch64/aarch64-simd-builtins.def: Add [su]mull_n
18275 builtin generator macros.
18276 * config/aarch64/aarch64-simd.md (aarch64_<su>mull_n<mode>):
18277 Define.
18278 * config/aarch64/arm_neon.h (vmull_n_s16): Use RTL builtin
18279 instead of inline asm.
18280 (vmull_n_s32): Likewise.
18281 (vmull_n_u16): Likewise.
18282 (vmull_n_u32): Likewise.
18283
18284 2021-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18285
18286 * config/aarch64/aarch64-simd-builtins.def (sabdl2, uabdl2):
18287 Define builtins.
18288 * config/aarch64/aarch64-simd.md (aarch64_<sur>abdl2<mode>_3):
18289 Rename to...
18290 (aarch64_<sur>abdl2<mode>): ... This.
18291 (<sur>sadv16qi): Adjust use of above.
18292 * config/aarch64/arm_neon.h (vabdl_high_s8): Reimplement using
18293 builtin.
18294 (vabdl_high_s16): Likewise.
18295 (vabdl_high_s32): Likewise.
18296 (vabdl_high_u8): Likewise.
18297 (vabdl_high_u16): Likewise.
18298 (vabdl_high_u32): Likewise.
18299
18300 2021-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18301
18302 * config/aarch64/aarch64-simd-builtins.def (sabal2): Define
18303 builtin.
18304 (uabal2): Likewise.
18305 * config/aarch64/aarch64-simd.md (aarch64_<sur>abal2<mode>): New
18306 pattern.
18307 * config/aarch64/aarch64.md (unspec): Add UNSPEC_SABAL2 and
18308 UNSPEC_UABAL2.
18309 * config/aarch64/arm_neon.h (vabal_high_s8): Reimplement using
18310 builtin.
18311 (vabal_high_s16): Likewise.
18312 (vabal_high_s32): Likewise.
18313 (vabal_high_u8): Likewise.
18314 (vabal_high_u16): Likewise.
18315 (vabal_high_u32): Likewise.
18316 * config/aarch64/iterators.md (ABAL2): New mode iterator.
18317 (sur): Handle UNSPEC_SABAL2, UNSPEC_UABAL2.
18318
18319 2021-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18320
18321 * config/aarch64/aarch64-simd-builtins.def (sabal): Define
18322 builtin.
18323 (uabal): Likewise.
18324 * config/aarch64/aarch64-simd.md (aarch64_<sur>abal<mode>_4):
18325 Rename to...
18326 (aarch64_<sur>abal<mode>): ... This
18327 (<sur>sadv16qi): Adust use of the above.
18328 * config/aarch64/arm_neon.h (vabal_s8): Reimplement using
18329 builtin.
18330 (vabal_s16): Likewise.
18331 (vabal_s32): Likewise.
18332 (vabal_u8): Likewise.
18333 (vabal_u16): Likewise.
18334 (vabal_u32): Likewise.
18335
18336 2021-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18337
18338 * config/aarch64/aarch64-simd-builtins.def (saddlv, uaddlv):
18339 Define builtins.
18340 * config/aarch64/aarch64-simd.md (aarch64_<su>addlv<mode>):
18341 Define.
18342 * config/aarch64/arm_neon.h (vaddlv_s8): Reimplement using
18343 builtin.
18344 (vaddlv_s16): Likewise.
18345 (vaddlv_u8): Likewise.
18346 (vaddlv_u16): Likewise.
18347 (vaddlvq_s8): Likewise.
18348 (vaddlvq_s16): Likewise.
18349 (vaddlvq_s32): Likewise.
18350 (vaddlvq_u8): Likewise.
18351 (vaddlvq_u16): Likewise.
18352 (vaddlvq_u32): Likewise.
18353 (vaddlv_s32): Likewise.
18354 (vaddlv_u32): Likewise.
18355 * config/aarch64/iterators.md (VDQV_L): New mode iterator.
18356 (unspec): Add UNSPEC_SADDLV, UNSPEC_UADDLV.
18357 (Vwstype): New mode attribute.
18358 (Vwsuf): Likewise.
18359 (VWIDE_S): Likewise.
18360 (USADDLV): New int iterator.
18361 (su): Handle UNSPEC_SADDLV, UNSPEC_UADDLV.
18362
18363 2021-01-29 Jonathan Wright <jonathan.wright@arm.com>
18364
18365 * config/aarch64/aarch64-simd-builtins.def: Add [su]mlsl_lane[q]
18366 builtin generator macros.
18367 * config/aarch64/aarch64-simd.md (aarch64_vec_<su>mlsl_lane<Qlane>):
18368 Define.
18369 * config/aarch64/arm_neon.h (vmlsl_lane_s16): Use RTL builtin
18370 instead of inline asm.
18371 (vmlsl_lane_s32): Likewise.
18372 (vmlsl_lane_u16): Likewise.
18373 (vmlsl_lane_u32): Likewise.
18374 (vmlsl_laneq_s16): Likewise.
18375 (vmlsl_laneq_s32): Likewise.
18376 (vmlsl_laneq_u16): Likewise.
18377 (vmlsl_laneq_u32): Likewise.
18378
18379 2021-01-29 Richard Biener <rguenther@suse.de>
18380
18381 * doc/invoke.texi (--param max-gcse-memory): Document unit
18382 of size.
18383 * gcse.c (gcse_or_cprop_is_too_expensive): Adjust.
18384 * params.opt (--param max-gcse-memory): Adjust default and
18385 document unit of size.
18386
18387 2021-01-29 Richard Biener <rguenther@suse.de>
18388
18389 PR rtl-optimization/98863
18390 * gcse.c (gcse_or_cprop_is_too_expensive): Use unsigned
18391 HOST_WIDE_INT for the memory estimate.
18392
18393 2021-01-29 Bin Cheng <bin.cheng@linux.alibaba.com>
18394 Richard Biener <rguenther@suse.de>
18395
18396 PR tree-optimization/97627
18397 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions):
18398 Do not analyze fake edges.
18399
18400 2021-01-29 Richard Biener <rguenther@suse.de>
18401
18402 PR rtl-optimization/98144
18403 * df.h (df_mir_bb_info): Add con_visited member.
18404 * df-problems.c (df_mir_alloc): Initialize con_visited,
18405 do not fully populate IN and OUT.
18406 (df_mir_reset): Likewise.
18407 (df_mir_confluence_0): Set con_visited.
18408 (df_mir_confluence_n): Properly handle implicitely
18409 fully populated IN and OUT as designated by con_visited
18410 and update con_visited accordingly.
18411
18412 2021-01-29 Jakub Jelinek <jakub@redhat.com>
18413
18414 PR target/98849
18415 * config/arm/vec-common.md (mve_vshlq_<supf><mode>,
18416 vashl<mode>3, vashr<mode>3, vlshr<mode>3): Add
18417 && !TARGET_REALLY_IWMMXT to conditions.
18418
18419 2021-01-29 Jakub Jelinek <jakub@redhat.com>
18420
18421 PR debug/98331
18422 * cfgbuild.c (find_bb_boundaries): Reset debug_insn when seeing
18423 a BARRIER.
18424
18425 2021-01-28 Marek Polacek <polacek@redhat.com>
18426
18427 PR c++/94775
18428 * stor-layout.c (finalize_type_size): If we reset TYPE_USER_ALIGN in
18429 the main variant, maybe reset it in its variants too.
18430 * tree.c (check_base_type): Return true only if TYPE_USER_ALIGN match.
18431 (check_aligned_type): Check if TYPE_USER_ALIGN match.
18432
18433 2021-01-28 Christophe Lyon <christophe.lyon@linaro.org>
18434
18435 PR target/98730
18436 * config/arm/arm.c (arm_rtx_costs_internal): Adjust cost of vector
18437 of constant zero for comparisons.
18438
18439 2021-01-28 Michael Meissner <meissner@linux.ibm.com>
18440
18441 * config/rs6000/rs6000.c (rs6000_mangle_decl_assembler_name): Add
18442 support for mapping built-in function names for long double
18443 built-in functions if long double is IEEE 128-bit.
18444
18445 2021-01-28 Jonathan Wright <jonathan.wright@arm.com>
18446
18447 * config/aarch64/aarch64-simd-builtins.def: Add [su]mlsl_n
18448 builtin generator macros.
18449 * config/aarch64/aarch64-simd.md (aarch64_<su>mlsl_n<mode>):
18450 Define.
18451 * config/aarch64/arm_neon.h (vmlsl_n_s16): Use RTL builtin
18452 instead of inline asm.
18453 (vmlsl_n_s32): Likewise.
18454 (vmlsl_n_u16): Likewise.
18455 (vmlsl_n_u32): Likewise.
18456
18457 2021-01-28 Jonathan Wright <jonathan.wright@arm.com>
18458
18459 * config/aarch64/aarch64-simd-builtins.def: Add [su]mlal_n
18460 builtin generator macros.
18461 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_n<mode>):
18462 Define.
18463 * config/aarch64/arm_neon.h (vmlal_n_s16): Use RTL builtin
18464 instead of inline asm.
18465 (vmlal_n_s32): Likewise.
18466 (vmlal_n_u16): Likewise.
18467 (vmlal_n_u32): Likewise.
18468
18469 2021-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18470
18471 * config/aarch64/aarch64-simd-builtins.def (shrn2): Define
18472 builtin.
18473 * config/aarch64/aarch64-simd.md (aarch64_shrn2<mode>_insn_le):
18474 Define.
18475 (aarch64_shrn2<mode>_insn_be): Likewise.
18476 (aarch64_shrn2<mode>): Likewise.
18477 * config/aarch64/arm_neon.h (vshrn_high_n_s16): Reimlplement
18478 using builtins.
18479 (vshrn_high_n_s32): Likewise.
18480 (vshrn_high_n_s64): Likewise.
18481 (vshrn_high_n_u16): Likewise.
18482 (vshrn_high_n_u32): Likewise.
18483 (vshrn_high_n_u64): Likewise.
18484
18485 2021-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18486
18487 * config/aarch64/aarch64-simd-builtins.def (shrn): Define
18488 builtin.
18489 * config/aarch64/aarch64-simd.md (aarch64_shrn<mode>_insn_le):
18490 Define.
18491 (aarch64_shrn<mode>_insn_be): Likewise.
18492 (aarch64_shrn<mode>): Likewise.
18493 * config/aarch64/arm_neon.h (vshrn_n_s16): Reimplement using
18494 builtins.
18495 (vshrn_n_s32): Likewise.
18496 (vshrn_n_s64): Likewise.
18497 (vshrn_n_u16): Likewise.
18498 (vshrn_n_u32): Likewise.
18499 (vshrn_n_u64): Likewise.
18500 * config/aarch64/iterators.md (vn_mode): New mode attribute.
18501
18502 2021-01-28 Richard Biener <rguenther@suse.de>
18503
18504 PR rtl-optimization/80960
18505 * dse.c (check_mem_read_rtx): Call get_addr on the
18506 offsetted address.
18507
18508 2021-01-28 Xionghu Luo <luoxhu@linux.ibm.com>
18509 David Edelsohn <dje.gcc@gmail.com>
18510
18511 PR target/98799
18512 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
18513 Don't generate VIEW_CONVERT_EXPR for fcode ALTIVEC_BUILTIN_VEC_INSERT
18514 when -m32.
18515 * config/rs6000/rs6000-protos.h (rs6000_expand_vector_set_var):
18516 Delete.
18517 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Remove the
18518 wrapper call rs6000_expand_vector_set_var for cleanup. Call
18519 rs6000_expand_vector_set_var_p9 and rs6000_expand_vector_set_var_p8
18520 directly.
18521 (rs6000_expand_vector_set_var): Delete.
18522 (rs6000_expand_vector_set_var_p9): Make static.
18523 (rs6000_expand_vector_set_var_p8): Make static.
18524
18525 2021-01-28 Xing GUO <higuoxing@gmail.com>
18526
18527 * common/config/riscv/riscv-common.c
18528 (riscv_subset_list::parsing_subset_version): Fix -march option parsing
18529 when `p` extension exists.
18530
18531 2021-01-27 Vladimir N. Makarov <vmakarov@redhat.com>
18532
18533 PR rtl-optimization/97684
18534 * ira.c (ira): Call ira_set_pseudo_classes before
18535 update_equiv_regs when it is necessary.
18536
18537 2021-01-27 Jakub Jelinek <jakub@redhat.com>
18538
18539 PR target/98853
18540 * config/aarch64/aarch64.md (*aarch64_bfxilsi_uxtw): Use
18541 %w0, %w1 and %2 instead of %0, %1 and %2.
18542
18543 2021-01-27 Aaron Sawdey <acsawdey@linux.ibm.com>
18544
18545 * config/rs6000/genfusion.pl: New script to generate
18546 define_insn_and_split patterns so combine can arrange fused
18547 instructions next to each other.
18548 * config/rs6000/fusion.md: New file, generated fused instruction
18549 patterns for combine.
18550 * config/rs6000/predicates.md (const_m1_to_1_operand): New predicate.
18551 (non_update_memory_operand): New predicate.
18552 * config/rs6000/rs6000-cpus.def: Add OPTION_MASK_P10_FUSION and
18553 OPTION_MASK_P10_FUSION_LD_CMPI to ISA_3_1_MASKS_SERVER and
18554 POWERPC_MASKS.
18555 * config/rs6000/rs6000-protos.h (address_is_non_pfx_d_or_x): Add
18556 prototype.
18557 * config/rs6000/rs6000.c (rs6000_option_override_internal):
18558 Automatically set OPTION_MASK_P10_FUSION and
18559 OPTION_MASK_P10_FUSION_LD_CMPI if target is power10.
18560 (rs600_opt_masks): Allow -mpower10-fusion
18561 in function attributes.
18562 (address_is_non_pfx_d_or_x): New function.
18563 * config/rs6000/rs6000.h: Add MASK_P10_FUSION.
18564 * config/rs6000/rs6000.md: Include fusion.md.
18565 * config/rs6000/rs6000.opt: Add -mpower10-fusion
18566 and -mpower10-fusion-ld-cmpi.
18567 * config/rs6000/t-rs6000: Add dependencies involving fusion.md.
18568
18569 2021-01-27 Jonathan Wright <jonathan.wright@arm.com>
18570
18571 * config/aarch64/aarch64-simd-builtins.def: Add [su]mlal
18572 builtin generator macros.
18573 * config/aarch64/aarch64-simd.md (*aarch64_<su>mlal<mode>):
18574 Rename to...
18575 (aarch64_<su>mlal<mode>): This.
18576 * config/aarch64/arm_neon.h (vmlal_s8): Use RTL builtin
18577 instead of inline asm.
18578 (vmlal_s16): Likewise.
18579 (vmlal_s32): Likewise.
18580 (vmlal_u8): Likewise.
18581 (vmlal_u16): Likewise.
18582 (vmlal_u32): Likewise.
18583
18584 2021-01-27 Richard Biener <rguenther@suse.de>
18585
18586 PR tree-optimization/98854
18587 * tree-vect-slp.c (vect_build_slp_tree_2): Also build
18588 PHIs from scalars when the number of CTORs matches the
18589 number of children.
18590
18591 2021-01-27 Jonathan Wright <jonathan.wright@arm.com>
18592
18593 * config/aarch64/aarch64-simd-builtins.def: Add mls_n builtin
18594 generator macro.
18595 * config/aarch64/aarch64-simd.md (*aarch64_mls_elt_merge<mode>):
18596 Rename to...
18597 (aarch64_mls_n<mode>): This.
18598 * config/aarch64/arm_neon.h (vmls_n_s16): Use RTL builtin
18599 instead of asm.
18600 (vmls_n_s32): Likewise.
18601 (vmls_n_u16): Likewise.
18602 (vmls_n_u32): Likewise.
18603 (vmlsq_n_s16): Likewise.
18604 (vmlsq_n_s32): Likewise.
18605 (vmlsq_n_u16): Likewise.
18606 (vmlsq_n_u32): Likewise.
18607
18608 2021-01-27 Jonathan Wright <jonathan.wright@arm.com>
18609
18610 * config/aarch64/aarch64-simd-builtins.def: Add mls builtin
18611 generator macro.
18612 * config/aarch64/arm_neon.h (vmls_s8): Use RTL builtin rather
18613 than asm.
18614 (vmls_s16): Likewise.
18615 (vmls_s32): Likewise.
18616 (vmls_u8): Likewise.
18617 (vmls_u16): Likewise.
18618 (vmls_u32): Likewise.
18619 (vmlsq_s8): Likewise.
18620 (vmlsq_s16): Likewise.
18621 (vmlsq_s32): Likewise.
18622 (vmlsq_u8): Likewise.
18623 (vmlsq_u16): Likewise.
18624 (vmlsq_u32): Likewise.
18625
18626 2021-01-27 Jonathan Wright <jonathan.wright@arm.com>
18627
18628 * config/aarch64/aarch64-simd-builtins.def: Add mla_n builtin
18629 generator macro.
18630 * config/aarch64/aarch64-simd.md (*aarch64_mla_elt_merge<mode>):
18631 Rename to...
18632 (aarch64_mla_n<mode>): This.
18633 * config/aarch64/arm_neon.h (vmla_n_s16): Use RTL builtin
18634 instead of asm.
18635 (vmla_n_s32): Likewise.
18636 (vmla_n_u16): Likewise.
18637 (vmla_n_u32): Likewise.
18638 (vmlaq_n_s16): Likewise.
18639 (vmlaq_n_s32): Likewise.
18640 (vmlaq_n_u16): Likewise.
18641 (vmlaq_n_u32): Likewise.
18642
18643 2021-01-27 liuhongt <hongtao.liu@intel.com>
18644
18645 PR target/98833
18646 * config/i386/sse.md (sse2_gt<mode>3): Drop !TARGET_XOP in condition.
18647 (*sse2_eq<mode>3): Ditto.
18648
18649 2021-01-27 Jakub Jelinek <jakub@redhat.com>
18650
18651 * tree-pass.h (PROP_trees): Rename to ...
18652 (PROP_gimple): ... this.
18653 * cfgexpand.c (pass_data_expand): Replace PROP_trees with PROP_gimple.
18654 * passes.c (execute_function_dump, execute_function_todo,
18655 execute_one_ipa_transform_pass, execute_one_pass): Likewise.
18656 * varpool.c (ctor_for_folding): Likewise.
18657
18658 2021-01-27 Jakub Jelinek <jakub@redhat.com>
18659
18660 PR tree-optimization/97260
18661 * varpool.c: Include tree-pass.h.
18662 (ctor_for_folding): In GENERIC return DECL_INITIAL for TREE_READONLY
18663 non-TREE_SIDE_EFFECTS automatic variables.
18664
18665 2021-01-26 Paul Fee <paul.f.fee@gmail.com>
18666
18667 * doc/cpp.texi (__cplusplus): Document value for -std=c++23
18668 or -std=gnu++23.
18669 * doc/invoke.texi: Document -std=c++23 and -std=gnu++23.
18670 * dwarf2out.c (highest_c_language): Recognise C++20 and C++23.
18671 (gen_compile_unit_die): Recognise C++23.
18672
18673 2021-01-26 Jakub Jelinek <jakub@redhat.com>
18674
18675 PR bootstrap/98839
18676 * dwarf2asm.c (dw2_assemble_integer): Cast DWARF2_ADDR_SIZE to int
18677 in comparison.
18678
18679 2021-01-26 Jakub Jelinek <jakub@redhat.com>
18680
18681 PR target/98681
18682 * config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
18683 Use UINTVAL (shft_amnt) and UINTVAL (mask) instead of INTVAL (shft_amnt)
18684 and INTVAL (mask). Add && INTVAL (mask) > 0 condition.
18685
18686 2021-01-26 Richard Biener <rguenther@suse.de>
18687
18688 * gimple-pretty-print.c (dump_binary_rhs): Handle
18689 VEC_WIDEN_{PLUS,MINUS}_{LO,HI}_EXPR.
18690
18691 2021-01-26 Richard Biener <rguenther@suse.de>
18692
18693 PR middle-end/98726
18694 * tree.h (vector_cst_int_elt): Remove.
18695 * tree.c (vector_cst_int_elt): Use poly_wide_int for computations,
18696 make static.
18697
18698 2021-01-26 Andrew Stubbs <ams@codesourcery.com>
18699
18700 * config/gcn/gcn.c (gcn_expand_reduc_scalar): Use move instructions
18701 for V64DFmode min/max reductions.
18702
18703 2021-01-26 Jakub Jelinek <jakub@redhat.com>
18704
18705 * dwarf2asm.c (dw2_assemble_integer): Handle size twice as large
18706 as DWARF2_ADDR_SIZE if x is not a scalar int by emitting it as
18707 two halves, one with x and the other with const0_rtx, ordered
18708 depending on endianity.
18709
18710 2021-01-26 Alexandre Oliva <oliva@adacore.com>
18711
18712 * gimplify.c (gimplify_decl_expr): Skip asan marking calls for
18713 temporaries not seen in binding block, and not about to be
18714 added as gimple variables.
18715
18716 2021-01-25 Martin Sebor <msebor@redhat.com>
18717
18718 PR c++/98646
18719 * tree-ssa-ccp.c (pass_post_ipa_warn::execute): Adjust warning text.
18720
18721 2021-01-25 Martin Liska <mliska@suse.cz>
18722
18723 * value-prof.c (get_nth_most_common_value): Use %s instead
18724 of %qs string.
18725
18726 2021-01-25 Jakub Jelinek <jakub@redhat.com>
18727
18728 PR debug/98811
18729 * configure.ac (HAVE_AS_GDWARF_5_DEBUG_FLAG): Only define if
18730 readelf -wi is able to read the emitted .debug_info back.
18731 * configure: Regenerated.
18732
18733 2021-01-25 Martin Liska <mliska@suse.cz>
18734
18735 PR gcov-profile/98739
18736 * common.opt: Add missing sign symbol.
18737 * value-prof.c (get_nth_most_common_value): Restore handling
18738 of PROFILE_REPRODUCIBILITY_PARALLEL_RUNS and
18739 PROFILE_REPRODUCIBILITY_MULTITHREADED.
18740
18741 2021-01-25 Richard Biener <rguenther@suse.de>
18742
18743 PR middle-end/98807
18744 * tree.c (vector_element_bits): Always use precision of
18745 the element type for boolean vectors.
18746
18747 2021-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
18748
18749 * config/rtems.h (STARTFILE_SPEC): Remove qnolinkcmds.
18750 (ENDFILE_SPEC): Evaluate qnolinkcmds.
18751
18752 2021-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
18753
18754 * config/rtems.h (STARTFILE_SPEC): Remove nostdlib and
18755 nostartfiles handling since this is already done by
18756 LINK_COMMAND_SPEC. Evaluate qnolinkcmds.
18757 (ENDFILE_SPEC): Remove nostdlib and nostartfiles handling since this
18758 is already done by LINK_COMMAND_SPEC.
18759 (LIB_SPECS): Remove nostdlib and nodefaultlibs handling since
18760 this is already done by LINK_COMMAND_SPEC. Remove qnolinkcmds
18761 evaluation.
18762
18763 2021-01-25 Jakub Jelinek <jakub@redhat.com>
18764
18765 PR testsuite/98771
18766 * fold-const-call.c (host_size_t_cst_p): Renamed to ...
18767 (size_t_cst_p): ... this. Check and store unsigned HOST_WIDE_INT
18768 value rather than host size_t.
18769 (fold_const_call): Change type of s2 from size_t to
18770 unsigned HOST_WIDE_INT. Use size_t_cst_p instead of
18771 host_size_t_cst_p. For strncmp calls, pass MIN (s2, SIZE_MAX)
18772 instead of s2 as last argument.
18773
18774 2021-01-25 Tamar Christina <tamar.christina@arm.com>
18775
18776 * config/arm/iterators.md (rotsplit1, rotsplit2, conj_op, fcmac1,
18777 VCMLA_OP, VCMUL_OP): New.
18778 * config/arm/mve.md (mve_vcmlaq<mve_rot><mode>): Support vec_dup 0.
18779 * config/arm/neon.md (cmul<conj_op><mode>3): New.
18780 * config/arm/unspecs.md (UNSPEC_VCMLA_CONJ, UNSPEC_VCMLA180_CONJ,
18781 UNSPEC_VCMUL_CONJ): New.
18782 * config/arm/vec-common.md (cmul<conj_op><mode>3, arm_vcmla<rot><mode>,
18783 cml<fcmac1><conj_op><mode>4): New.
18784
18785 2021-01-23 Jakub Jelinek <jakub@redhat.com>
18786
18787 PR testsuite/97301
18788 * config/rs6000/mmintrin.h (__m64): Add __may_alias__ attribute.
18789
18790 2021-01-22 Jonathan Wright <jonathan.wright@arm.com>
18791
18792 * config/aarch64/aarch64-simd-builtins.def: Add mla builtin
18793 generator macro.
18794 * config/aarch64/arm_neon.h (vmla_s8): Use RTL builtin rather
18795 than asm.
18796 (vmla_s16): Likewise.
18797 (vmla_s32): Likewise.
18798 (vmla_u8): Likewise.
18799 (vmla_u16): Likewise.
18800 (vmla_u32): Likewise.
18801 (vmlaq_s8): Likewise.
18802 (vmlaq_s16): Likewise.
18803 (vmlaq_s32): Likewise.
18804 (vmlaq_u8): Likewise.
18805 (vmlaq_u16): Likewise.
18806 (vmlaq_u32): Likewise.
18807
18808 2021-01-22 David Malcolm <dmalcolm@redhat.com>
18809
18810 * doc/invoke.texi (GCC_EXTRA_DIAGNOSTIC_OUTPUT): Add @findex
18811 directive.
18812
18813 2021-01-22 Jakub Jelinek <jakub@redhat.com>
18814
18815 PR debug/98796
18816 * dwarf2out.c (output_file_names): For -gdwarf-5, if there are no
18817 filenames to emit, still emit the required 0 index directory and
18818 filename entries that match DW_AT_comp_dir and DW_AT_name of the
18819 compilation unit.
18820
18821 2021-01-22 Marek Polacek <polacek@redhat.com>
18822
18823 PR c++/98545
18824 * doc/invoke.texi: Update C++ ABI Version 15 description.
18825
18826 2021-01-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18827
18828 PR tree-optimization/98766
18829 * tree-ssa-math-opts.c (convert_mult_to_fma): Use maybe_le when
18830 comparing against type size with param_avoid_fma_max_bits.
18831
18832 2021-01-22 Richard Biener <rguenther@suse.de>
18833
18834 PR middle-end/98793
18835 * tree.c (vector_element_bits): Key single-bit bool vector on
18836 integer mode rather than not vector mode.
18837
18838 2021-01-22 Xionghu Luo <luoxhu@linux.ibm.com>
18839
18840 PR target/98093
18841 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
18842 Generate ARRAY_REF(VIEW_CONVERT_EXPR) for P8 and later
18843 platforms.
18844 * config/rs6000/rs6000.c (rs6000_expand_vector_set_var): Update
18845 to call different path for P8 and P9.
18846 (rs6000_expand_vector_set_var_p9): New function.
18847 (rs6000_expand_vector_set_var_p8): New function.
18848
18849 2021-01-22 Xionghu Luo <luoxhu@linux.ibm.com>
18850
18851 PR target/79251
18852 PR target/98065
18853 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
18854 Ajdust variable index vec_insert from address dereference to
18855 ARRAY_REF(VIEW_CONVERT_EXPR) tree expression.
18856 * config/rs6000/rs6000-protos.h (rs6000_expand_vector_set_var):
18857 New declaration.
18858 * config/rs6000/rs6000.c (rs6000_expand_vector_set_var): New function.
18859
18860 2021-01-22 Martin Liska <mliska@suse.cz>
18861
18862 PR gcov-profile/98739
18863 * profile.c (compute_value_histograms): Drop time profile for
18864 -fprofile-reproducible=multithreaded.
18865
18866 2021-01-22 Nathan Sidwell <nathan@acm.org>
18867
18868 * gcc.c (process_command): Don't check OPT_SPECIAL_input_file
18869 existence here.
18870
18871 2021-01-22 Richard Biener <rguenther@suse.de>
18872
18873 PR middle-end/98773
18874 * tree-data-ref.c (initalize_matrix_A): Revert previous
18875 change, retaining failing on HOST_WIDE_INT_MIN CHREC_RIGHT.
18876
18877 2021-01-22 Jakub Jelinek <jakub@redhat.com>
18878
18879 PR tree-optimization/90248
18880 * match.pd (X cmp 0.0 ? 1.0 : -1.0 -> copysign(1, +-X),
18881 X cmp 0.0 ? -1.0 : +1.0 -> copysign(1, -+X)): Remove
18882 simplifications.
18883 (X * (X cmp 0.0 ? 1.0 : -1.0) -> +-abs(X),
18884 X * (X cmp 0.0 ? -1.0 : 1.0) -> +-abs(X)): New simplifications.
18885
18886 2021-01-22 Jakub Jelinek <jakub@redhat.com>
18887
18888 PR tree-optimization/98255
18889 * tree-dfa.c (get_ref_base_and_extent): For ARRAY_REFs, sign
18890 extend index - low_bound from sizetype's precision rather than index
18891 precision.
18892 (get_addr_base_and_unit_offset_1): Likewise.
18893 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Likewise.
18894 * gimple-fold.c (fold_const_aggregate_ref_1): Likewise.
18895
18896 2021-01-22 Richard Biener <rguenther@suse.de>
18897
18898 PR tree-optimization/98786
18899 * tree-ssa-phiopt.c (factor_out_conditional_conversion): Avoid
18900 adding new uses of abnormals. Verify we deal with a conditional
18901 conversion.
18902
18903 2021-01-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
18904
18905 PR target/98636
18906 * optc-save-gen.awk: Add arm_fp16_format to checked_options.
18907
18908 2021-01-22 liuhongt <hongtao.liu@intel.com>
18909
18910 PR target/96891
18911 PR target/98348
18912 * config/i386/sse.md (VI_128_256): New mode iterator.
18913 (*avx_cmp<mode>3_1, *avx_cmp<mode>3_2, *avx_cmp<mode>3_3,
18914 *avx_cmp<mode>3_4, *avx2_eq<mode>3, *avx2_pcmp<mode>3_1,
18915 *avx2_pcmp<mode>3_2, *avx2_gt<mode>3): New
18916 define_insn_and_split to lower avx512 vector comparison to avx
18917 version when dest is vector.
18918 (*<avx512>_cmp<mode>3,*<avx512>_cmp<mode>3,*<avx512>_ucmp<mode>3):
18919 define_insn_and_split for negating the comparison result.
18920 * config/i386/predicates.md (float_vector_all_ones_operand):
18921 New predicate.
18922 * config/i386/i386-expand.c (ix86_expand_sse_movcc): Use
18923 general NOT operator without UNSPEC_MASKOP.
18924
18925 2021-01-21 Vladimir N. Makarov <vmakarov@redhat.com>
18926
18927 PR rtl-optimization/98777
18928 * lra-int.h (lra_pmode_pseudo): New extern.
18929 * lra.c (lra_pmode_pseudo): New global.
18930 (lra): Set it up.
18931 * lra-eliminations.c (eliminate_regs_in_insn): Use it.
18932
18933 2021-01-21 Ilya Leoshkevich <iii@linux.ibm.com>
18934
18935 * fwprop.c (fwprop_propagation::classify_result): Allow
18936 (subreg (mem)) simplifications.
18937
18938 2021-01-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18939
18940 * config/aarch64/aarch64-simd.md (aarch64_sqdml<SBINQOPS:as>l<mode>):
18941 Split into...
18942 (aarch64_sqdmlal<mode>): ... This...
18943 (aarch64_sqdmlsl<mode>): ... And this.
18944 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>): Split into...
18945 (aarch64_sqdmlal_lane<mode>): ... This...
18946 (aarch64_sqdmlsl_lane<mode>): ... And this.
18947 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>): Split into...
18948 (aarch64_sqdmlsl_laneq<mode>): ... This...
18949 (aarch64_sqdmlal_laneq<mode>): ... And this.
18950 (aarch64_sqdml<SBINQOPS:as>l_n<mode>): Split into...
18951 (aarch64_sqdmlsl_n<mode>): ... This...
18952 (aarch64_sqdmlal_n<mode>): ... And this.
18953 (aarch64_sqdml<SBINQOPS:as>l2<mode>_internal): Split into...
18954 (aarch64_sqdmlal2<mode>_internal): ... This...
18955 (aarch64_sqdmlsl2<mode>_internal): ... And this.
18956
18957 2021-01-21 Christophe Lyon <christophe.lyon@linaro.org>
18958
18959 * config/arm/arm_mve.h (__arm_vcmpneq_s8): Fix return type.
18960
18961 2021-01-21 Andrea Corallo <andrea.corallo@arm.com>
18962
18963 PR target/96372
18964 * doc/sourcebuild.texi (arm_thumb2_no_arm_v8_1_lob): Document.
18965
18966 2021-01-21 liuhongt <hongtao.liu@intel.com>
18967
18968 PR rtl-optimization/98694
18969 * regcprop.c (copy_value): If SRC had been assigned a mode
18970 narrower than the copy, we can't link DEST into the chain even
18971 they have same hard_regno_nregs(i.e. HImode/SImode in i386
18972 backend).
18973
18974 2021-01-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18975
18976 * config/aarch64/aarch64-simd.md (aarch64_get_lane<mode>):
18977 Convert to define_insn_and_split. Split into simple move when moving
18978 bottom element.
18979
18980 2021-01-20 Segher Boessenkool <segher@kernel.crashing.org>
18981
18982 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Change assert.
18983 Adjust comment. Simplify code.
18984
18985 2021-01-20 Jakub Jelinek <jakub@redhat.com>
18986
18987 PR debug/98765
18988 * dwarf2out.c (reset_indirect_string): Also reset indirect strings
18989 with DW_FORM_line_strp form.
18990 (prune_unused_types_update_strings): Don't add into debug_str_hash
18991 indirect strings with DW_FORM_line_strp form.
18992 (adjust_name_comp_dir): New function.
18993 (dwarf2out_finish): Call it on CU DIEs after resetting
18994 debug_line_str_hash.
18995
18996 2021-01-20 Vladimir N. Makarov <vmakarov@redhat.com>
18997
18998 PR rtl-optimization/98722
18999 * lra-eliminations.c (eliminate_regs_in_insn): Check that target
19000 has no 3-op add insn to transform insns containing two pluses.
19001
19002 2021-01-20 Richard Biener <rguenther@suse.de>
19003
19004 * hwint.h (add_hwi): New function.
19005 (mul_hwi): Likewise.
19006 * tree-data-ref.c (initialize_matrix_A): Properly translate
19007 tree constants and avoid HOST_WIDE_INT_MIN.
19008 (lambda_matrix_row_add): Avoid undefined integer overflow
19009 and return true on such overflow.
19010 (lambda_matrix_right_hermite): Handle overflow from
19011 lambda_matrix_row_add gracefully. Simplify previous fix.
19012 (analyze_subscript_affine_affine): Likewise.
19013
19014 2021-01-20 Eugene Rozenfeld <erozen@microsoft.com>
19015
19016 PR tree-optimization/96674
19017 * match.pd: New patterns: x < y || y == XXX_MIN --> x <= y - 1
19018 x >= y && y != XXX_MIN --> x > y - 1
19019
19020 2021-01-20 Richard Sandiford <richard.sandiford@arm.com>
19021
19022 PR tree-optimization/98535
19023 * tree-vect-slp.c (duplicate_and_interleave): Use quick_grow_cleared.
19024 If the high and low permutes are the same, remove the high permutes
19025 from the working set and only continue with the low ones.
19026
19027 2021-01-20 Jakub Jelinek <jakub@redhat.com>
19028
19029 PR tree-optimization/98721
19030 * builtins.c (access_ref::inform_access): Don't assume
19031 SSA_NAME_IDENTIFIER must be non-NULL. Print messages about
19032 object whenever allocfn is NULL, rather than only when DECL_P
19033 is true. Use %qE instead of %qD for that. Formatting fixes.
19034
19035 2021-01-20 Richard Biener <rguenther@suse.de>
19036
19037 PR tree-optimization/98758
19038 * tree-data-ref.c (int_divides_p): Use lambda_int arguments.
19039 (lambda_matrix_right_hermite): Avoid undefinedness with
19040 signed integer abs and multiplication.
19041 (analyze_subscript_affine_affine): Use lambda_int.
19042
19043 2021-01-20 David Malcolm <dmalcolm@redhat.com>
19044
19045 PR debug/98751
19046 * dwarf2out.c (output_line_info): Rename static variable
19047 "generation", moving it out of the function to...
19048 (output_line_info_generation): New.
19049 (init_sections_and_labels): Likewise, renaming the variable to...
19050 (init_sections_and_labels_generation): New.
19051 (dwarf2out_c_finalize): Reset the new variables.
19052
19053 2021-01-19 Martin Sebor <msebor@redhat.com>
19054
19055 PR middle-end/98664
19056 * tree-ssa-live.c (remove_unused_scope_block_p): Keep scopes for
19057 all functions, even if they're not declared artificial or inline.
19058 * tree.c (tree_inlined_location): Use macro expansion location
19059 only if scope traversal fails to expose one.
19060
19061 2021-01-19 Richard Sandiford <richard.sandiford@arm.com>
19062
19063 PR rtl-optimization/92294
19064 * alias.c (compare_base_symbol_refs): Take an extra parameter
19065 and add the distance between two symbols to it. Enshrine in
19066 comments that -1 means "either 0 or 1, but we can't tell
19067 which at compile time".
19068 (memrefs_conflict_p): Update call accordingly.
19069 (rtx_equal_for_memref_p): Likewise. Take the distance between symbols
19070 into account.
19071
19072 2021-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19073
19074 * config/aarch64/aarch64-simd-builtins.def (sqshl, uqshl,
19075 sqrshl, uqrshl, sqadd, uqadd, sqsub, uqsub, suqadd, usqadd, sqmovn,
19076 uqmovn, sqxtn2, uqxtn2, sqabs, sqneg, sqdmlal, sqdmlsl, sqdmlal_lane,
19077 sqdmlsl_lane, sqdmlal_laneq, sqdmlsl_laneq, sqdmlal_n, sqdmlsl_n,
19078 sqdmlal2, sqdmlsl2, sqdmlal2_lane, sqdmlsl2_lane, sqdmlal2_laneq,
19079 sqdmlsl2_laneq, sqdmlal2_n, sqdmlsl2_n, sqdmull, sqdmull_lane,
19080 sqdmull_laneq, sqdmull_n, sqdmull2, sqdmull2_lane, sqdmull2_laneq,
19081 sqdmull2_n, sqdmulh, sqrdmulh, sqdmulh_lane, sqdmulh_laneq,
19082 sqrdmulh_lane, sqrdmulh_laneq, sqshrun_n, sqrshrun_n, sqshrn_n,
19083 uqshrn_n, sqrshrn_n, uqrshrn_n, sqshlu_n, sqshl_n, uqshl_n, sqrdmlah,
19084 sqrdmlsh, sqrdmlah_lane, sqrdmlsh_lane, sqrdmlah_laneq, sqrdmlsh_laneq,
19085 sqmovun): Use NONE flags.
19086
19087 2021-01-19 Richard Biener <rguenther@suse.de>
19088
19089 PR ipa/98330
19090 * ipa-modref.c (analyze_stmt): Only record a summary for a
19091 direct call.
19092
19093 2021-01-19 Richard Biener <rguenther@suse.de>
19094
19095 PR middle-end/98638
19096 * tree-ssanames.c (fini_ssanames): Zero SSA_NAME_DEF_STMT.
19097
19098 2021-01-19 Daniel Hellstrom <daniel@gaisler.com>
19099
19100 * config/sparc/rtemself.h (TARGET_OS_CPP_BUILTINS): Add
19101 built-in define __FIX_LEON3FT_TN0018.
19102
19103 2021-01-19 Richard Biener <rguenther@suse.de>
19104
19105 PR ipa/97673
19106 * tree-inline.c (tree_function_versioning): Set input_location
19107 to UNKNOWN_LOCATION throughout the function.
19108
19109 2021-01-19 Tobias Burnus <tobias@codesourcery.com>
19110
19111 PR fortran/98476
19112 * omp-low.c (lower_omp_target): Handle nonpointer is_device_ptr.
19113
19114 2021-01-19 Martin Jambor <mjambor@suse.cz>
19115
19116 PR ipa/98690
19117 * ipa-sra.c (ssa_name_only_returned_p): New parameter fun. Check
19118 whether non-call exceptions allow removal of a statement.
19119 (isra_analyze_call): Pass the appropriate function to
19120 ssa_name_only_returned_p.
19121
19122 2021-01-19 Geng Qi <gengqi@linux.alibaba.com>
19123
19124 * config/riscv/arch-canonicalize (longext_sort): New function for
19125 sorting 'multi-letter'.
19126 * config/riscv/multilib-generator: Adjusting the loop of 'alt' in
19127 'alts'. The 'arch' may not be the first of 'alts'.
19128 (_expand_combination): Add underline for the 'ext' without '*'.
19129 This is because, a single-letter extension can always be treated well
19130 with a '_' prefix, but it cannot be separated out if it is appended
19131 to a multi-letter.
19132
19133 2021-01-18 Vladimir N. Makarov <vmakarov@redhat.com>
19134
19135 PR target/97847
19136 * ira.c (ira): Skip abnormal critical edge splitting.
19137
19138 2021-01-18 Jakub Jelinek <jakub@redhat.com>
19139
19140 PR tree-optimization/98727
19141 * tree-ssa-math-opts.c (match_arith_overflow): Fix up computation of
19142 second .MUL_OVERFLOW operand for signed multiplication with overflow
19143 checking if the second operand of multiplication is not constant.
19144
19145 2021-01-18 David Edelsohn <dje.gcc@gmail.com>
19146
19147 * doc/invoke.texi (-gdwarf): TPF defaults to version 2 and AIX
19148 defaults to version 4.
19149
19150 2021-01-18 David Malcolm <dmalcolm@redhat.com>
19151
19152 * attribs.h (fndecl_dealloc_argno): New decl.
19153 * builtins.c (call_dealloc_argno): Split out second half of
19154 function into...
19155 (fndecl_dealloc_argno): New.
19156 * doc/extend.texi (Common Function Attributes): Document the
19157 interaction between the analyzer and the malloc attribute.
19158 * doc/invoke.texi (Static Analyzer Options): Likewise.
19159
19160 2021-01-17 David Edelsohn <dje.gcc@gmail.com>
19161
19162 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Override
19163 dwarf_version to 4.
19164 * config/rs6000/aix72.h (SUBTARGET_OVERRIDE_OPTIONS): Same.
19165
19166 2021-01-17 Martin Jambor <mjambor@suse.cz>
19167
19168 PR ipa/98222
19169 * cgraph.c (clone_of_p): Check also former_clone_of as we climb
19170 the clone tree.
19171
19172 2021-01-17 Mark Wielaard <mark@klomp.org>
19173
19174 * common.opt (gdwarf-): Init(5).
19175 * doc/invoke.texi (-gdwarf): Document default to 5.
19176
19177 2021-01-16 Kwok Cheung Yeung <kcy@codesourcery.com>
19178
19179 * builtin-types.def
19180 (BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT): Rename
19181 to...
19182 (BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT_PTR):
19183 ...this. Add extra argument.
19184 * gimplify.c (omp_default_clause): Ensure that event handle is
19185 firstprivate in a task region.
19186 (gimplify_scan_omp_clauses): Handle OMP_CLAUSE_DETACH.
19187 (gimplify_adjust_omp_clauses): Likewise.
19188 * omp-builtins.def (BUILT_IN_GOMP_TASK): Change function type to
19189 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT_PTR.
19190 * omp-expand.c (expand_task_call): Add GOMP_TASK_FLAG_DETACH to flags
19191 if detach clause specified. Add detach argument when generating
19192 call to GOMP_task.
19193 * omp-low.c (scan_sharing_clauses): Setup data environment for detach
19194 clause.
19195 (finish_taskreg_scan): Move field for variable containing the event
19196 handle to the front of the struct.
19197 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DETACH. Fix
19198 ordering.
19199 * tree-nested.c (convert_nonlocal_omp_clauses): Handle
19200 OMP_CLAUSE_DETACH clause.
19201 (convert_local_omp_clauses): Handle OMP_CLAUSE_DETACH clause.
19202 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_DETACH.
19203 * tree.c (omp_clause_num_ops): Add entry for OMP_CLAUSE_DETACH.
19204 Fix ordering.
19205 (omp_clause_code_name): Add entry for OMP_CLAUSE_DETACH. Fix
19206 ordering.
19207 (walk_tree_1): Handle OMP_CLAUSE_DETACH.
19208
19209 2021-01-16 Sebastian Huber <sebastian.huber@embedded-brains.de>
19210
19211 * config/nios2/t-rtems: Reset all MULTILIB_* variables. Shorten
19212 multilib directory names. Use MULTILIB_REQUIRED instead of
19213 MULTILIB_EXCEPTIONS. Add -mhw-mul -mhw-mulx -mhw-div
19214 -mcustom-fpu-cfg=fph2 multilib.
19215
19216 2021-01-16 Sebastian Huber <sebastian.huber@embedded-brains.de>
19217
19218 * config/nios2/nios2.c (NIOS2_FPU_CONFIG_NUM): Adjust value.
19219 (nios2_init_fpu_configs): Provide register values for new
19220 -mcustom-fpu-cfg=fph2 option variant.
19221 * doc/invoke.texi (-mcustom-fpu-cfg=fph2): Document new option
19222 variant.
19223
19224 2021-01-16 Sebastian Huber <sebastian.huber@embedded-brains.de>
19225
19226 * config/nios2/nios2.c (nios2_custom_check_insns): Remove
19227 custom instruction warnings.
19228
19229 2021-01-16 Jakub Jelinek <jakub@redhat.com>
19230
19231 PR tree-optimization/96669
19232 * match.pd ((CST << x) & 1 -> x == 0): New simplification.
19233
19234 2021-01-16 Jakub Jelinek <jakub@redhat.com>
19235
19236 PR tree-optimization/96271
19237 * passes.def: Pass false argument to first two pass_cd_dce
19238 instances and true to last instance. Add comment that
19239 last instance rewrites no longer addressed locals.
19240 * tree-ssa-dce.c (pass_cd_dce): Add update_address_taken_p member and
19241 initialize it.
19242 (pass_cd_dce::set_pass_param): New method.
19243 (pass_cd_dce::execute): Return TODO_update_address_taken from
19244 last cd_dce instance.
19245
19246 2021-01-15 Carl Love <cel@us.ibm.com>
19247
19248 * config/rs6000/altivec.h (vec_mulh, vec_div, vec_dive, vec_mod):
19249 New defines.
19250 * config/rs6000/altivec.md (VIlong): Move define to file vsx.md.
19251 * config/rs6000/rs6000-builtin.def (DIVES_V4SI, DIVES_V2DI,
19252 DIVEU_V4SI, DIVEU_V2DI, DIVS_V4SI, DIVS_V2DI, DIVU_V4SI,
19253 DIVU_V2DI, MODS_V2DI, MODS_V4SI, MODU_V2DI, MODU_V4SI,
19254 MULHS_V2DI, MULHS_V4SI, MULHU_V2DI, MULHU_V4SI, MULLD_V2DI):
19255 Add builtin define.
19256 (MULH, DIVE, MOD): Add new BU_P10_OVERLOAD_2 definitions.
19257 * config/rs6000/rs6000-call.c (VSX_BUILTIN_VEC_DIV,
19258 VSX_BUILTIN_VEC_DIVE, P10_BUILTIN_VEC_MOD, P10_BUILTIN_VEC_MULH):
19259 New overloaded definitions.
19260 (builtin_function_type) [P10V_BUILTIN_DIVEU_V4SI,
19261 P10V_BUILTIN_DIVEU_V2DI, P10V_BUILTIN_DIVU_V4SI,
19262 P10V_BUILTIN_DIVU_V2DI, P10V_BUILTIN_MODU_V2DI,
19263 P10V_BUILTIN_MODU_V4SI, P10V_BUILTIN_MULHU_V2DI,
19264 P10V_BUILTIN_MULHU_V4SI]: Add case
19265 statement for builtins.
19266 * config/rs6000/rs6000.md (bits): Add new attribute sizes V4SI, V2DI.
19267 * config/rs6000/vsx.md (VIlong): Moved from config/rs6000/altivec.md.
19268 (UNSPEC_VDIVES, UNSPEC_VDIVEU): New unspec definitions.
19269 (vsx_mul_v2di): Add if TARGET_POWER10 statement.
19270 (vsx_udiv_v2di): Add if TARGET_POWER10 statement.
19271 (dives_<mode>, diveu_<mode>, div<mode>3, uvdiv<mode>3,
19272 mods_<mode>, modu_<mode>, mulhs_<mode>, mulhu_<mode>, mulv2di3):
19273 Add define_insn, mode is VIlong.
19274 * doc/extend.texi (vec_mulh, vec_mul, vec_div, vec_dive, vec_mod):
19275 Add builtin descriptions.
19276
19277 2021-01-15 Eric Botcazou <ebotcazou@adacore.com>
19278
19279 * final.c (final_start_function_1): Reset force_source_line.
19280
19281 2021-01-15 Jakub Jelinek <jakub@redhat.com>
19282
19283 PR tree-optimization/96669
19284 * match.pd (((1 << A) & 1) != 0 -> A == 0,
19285 ((1 << A) & 1) == 0 -> A != 0): Generalize for 1s replaced by
19286 possibly different power of two constants and to right shift too.
19287
19288 2021-01-15 Jakub Jelinek <jakub@redhat.com>
19289
19290 PR tree-optimization/96681
19291 * match.pd ((x < 0) ^ (y < 0) to (x ^ y) < 0): New simplification.
19292 ((x >= 0) ^ (y >= 0) to (x ^ y) < 0): Likewise.
19293 ((x < 0) ^ (y >= 0) to (x ^ y) >= 0): Likewise.
19294 ((x >= 0) ^ (y < 0) to (x ^ y) >= 0): Likewise.
19295
19296 2021-01-15 Alexandre Oliva <oliva@adacore.com>
19297
19298 * opts.c (gen_command_line_string): Exclude -dumpbase-ext.
19299
19300 2021-01-15 Tamar Christina <tamar.christina@arm.com>
19301
19302 * config/aarch64/aarch64-simd.md (cml<fcmac1><conj_op><mode>4,
19303 cmul<conj_op><mode>3): New.
19304 * config/aarch64/iterators.md (UNSPEC_FCMUL,
19305 UNSPEC_FCMUL180, UNSPEC_FCMLA_CONJ, UNSPEC_FCMLA180_CONJ,
19306 UNSPEC_CMLA_CONJ, UNSPEC_CMLA180_CONJ, UNSPEC_CMUL, UNSPEC_CMUL180,
19307 FCMLA_OP, FCMUL_OP, conj_op, rotsplit1, rotsplit2, fcmac1, sve_rot1,
19308 sve_rot2, SVE2_INT_CMLA_OP, SVE2_INT_CMUL_OP, SVE2_INT_CADD_OP): New.
19309 (rot): Add UNSPEC_FCMUL, UNSPEC_FCMUL180.
19310 (rot_op): Renamed to conj_op.
19311 * config/aarch64/aarch64-sve.md (cml<fcmac1><conj_op><mode>4,
19312 cmul<conj_op><mode>3): New.
19313 * config/aarch64/aarch64-sve2.md (cml<fcmac1><conj_op><mode>4,
19314 cmul<conj_op><mode>3): New.
19315
19316 2021-01-15 David Malcolm <dmalcolm@redhat.com>
19317
19318 PR bootstrap/98696
19319 * diagnostic.c
19320 (selftest::test_print_parseable_fixits_bytes_vs_display_columns):
19321 Escape the tempfile name when constructing the expected output.
19322
19323 2021-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19324
19325 * config/aarch64/aarch64-simd.md (*aarch64_<su>mlsl_hi<mode>):
19326 Rename to...
19327 (aarch64_<su>mlsl_hi<mode>): ... This.
19328 (aarch64_<su>mlsl_hi<mode>): Define.
19329 (*aarch64_<su>mlsl<mode): Rename to...
19330 (aarch64_<su>mlsl<mode): ... This.
19331 * config/aarch64/aarch64-simd-builtins.def (smlsl, umlsl,
19332 smlsl_hi, umlsl_hi): Define builtins.
19333 * config/aarch64/arm_neon.h (vmlsl_high_s8, vmlsl_high_s16,
19334 vmlsl_high_s32, vmlsl_high_u8, vmlsl_high_u16, vmlsl_high_u32,
19335 vmlsl_s8, vmlsl_s16, vmlsl_s32, vmlsl_u8,
19336 vmlsl_u16, vmlsl_u32): Reimplement with builtins.
19337
19338 2021-01-15 Uroš Bizjak <ubizjak@gmail.com>
19339
19340 * config/i386/i386-c.c (ix86_target_macros):
19341 Use cpp_define_formatted for __SIZEOF_FLOAT80__ definition.
19342
19343 2021-01-15 Richard Sandiford <richard.sandiford@arm.com>
19344
19345 PR target/88836
19346 * config.gcc (aarch64*-*-*): Add aarch64-cc-fusion.o to extra_objs.
19347 * Makefile.in (RTL_SSA_H): New variable.
19348 * config/aarch64/t-aarch64 (aarch64-cc-fusion.o): New rule.
19349 * config/aarch64/aarch64-protos.h (make_pass_cc_fusion): Declare.
19350 * config/aarch64/aarch64-passes.def: Add pass_cc_fusion after
19351 pass_combine.
19352 * config/aarch64/aarch64-cc-fusion.cc: New file.
19353
19354 2021-01-15 Richard Sandiford <richard.sandiford@arm.com>
19355
19356 * recog.h (insn_change_watermark::~insn_change_watermark): Avoid
19357 calling cancel_changes for changes that no longer exist.
19358
19359 2021-01-15 Richard Sandiford <richard.sandiford@arm.com>
19360
19361 * rtl-ssa/functions.h (function_info::ref_defs): Rename to...
19362 (function_info::reg_defs): ...this.
19363 * rtl-ssa/member-fns.inl (function_info::ref_defs): Rename to...
19364 (function_info::reg_defs): ...this.
19365
19366 2021-01-15 Christophe Lyon <christophe.lyon@linaro.org>
19367
19368 PR target/71233
19369 * config/arm/arm_neon.h (vceqz_p64, vceqq_p64, vceqzq_p64): New.
19370
19371 2021-01-15 Christophe Lyon <christophe.lyon@linaro.org>
19372
19373 Revert:
19374 2021-01-15 Christophe Lyon <christophe.lyon@linaro.org>
19375
19376 PR target/71233
19377 * config/arm/arm_neon.h (vceqz_p64, vceqq_p64, vceqzq_p64): New.
19378
19379 2021-01-15 Richard Biener <rguenther@suse.de>
19380
19381 PR tree-optimization/96376
19382 * tree-vect-stmts.c (get_load_store_type): Disregard alignment
19383 for VMAT_INVARIANT.
19384
19385 2021-01-15 Martin Liska <mliska@suse.cz>
19386
19387 * doc/install.texi: Document that some tests need pytest module.
19388 * doc/sourcebuild.texi: Likewise.
19389
19390 2021-01-15 Christophe Lyon <christophe.lyon@linaro.org>
19391
19392 PR target/71233
19393 * config/arm/arm_neon.h (vceqz_p64, vceqq_p64, vceqzq_p64): New.
19394
19395 2021-01-15 Christophe Lyon <christophe.lyon@linaro.org>
19396
19397 * config/arm/mve.md (mve_vshrq_n_s<mode>_imm): New entry.
19398 (mve_vshrq_n_u<mode>_imm): Likewise.
19399 * config/arm/neon.md (vashr<mode>3, vlshr<mode>3): Move to ...
19400 * config/arm/vec-common.md: ... here.
19401
19402 2021-01-15 Christophe Lyon <christophe.lyon@linaro.org>
19403
19404 * config/arm/mve.md (mve_vshlq_<supf><mode>): Move to
19405 vec-commond.md.
19406 * config/arm/neon.md (vashl<mode>3): Delete.
19407 * config/arm/vec-common.md (mve_vshlq_<supf><mode>): New.
19408 (vasl<mode>3): New expander.
19409
19410 2021-01-15 Richard Biener <rguenther@suse.de>
19411
19412 PR tree-optimization/98685
19413 * tree-vect-slp.c (vect_schedule_slp_node): Refactor handling
19414 of vector extern defs.
19415
19416 2021-01-14 David Malcolm <dmalcolm@redhat.com>
19417
19418 PR jit/98586
19419 * diagnostic.c (diagnostic_kind_text): Break out this array
19420 from...
19421 (diagnostic_build_prefix): ...here.
19422 (fancy_abort): Detect when diagnostic_initialize has not yet been
19423 called and fall back to a minimal implementation of printing the
19424 ICE, rather than segfaulting in internal_error.
19425
19426 2021-01-14 David Malcolm <dmalcolm@redhat.com>
19427
19428 * diagnostic.c (diagnostic_initialize): Eliminate
19429 parseable_fixits_p in favor of initializing extra_output_kind from
19430 GCC_EXTRA_DIAGNOSTIC_OUTPUT.
19431 (convert_column_unit): New function, split out from...
19432 (diagnostic_converted_column): ...this.
19433 (print_parseable_fixits): Add "column_unit" and "tabstop" params.
19434 Use them to call convert_column_unit on the column values.
19435 (diagnostic_report_diagnostic): Eliminate conditional on
19436 parseable_fixits_p in favor of a switch statement on
19437 extra_output_kind, passing the appropriate values to the new
19438 params of print_parseable_fixits.
19439 (selftest::test_print_parseable_fixits_none): Update for new
19440 params of print_parseable_fixits.
19441 (selftest::test_print_parseable_fixits_insert): Likewise.
19442 (selftest::test_print_parseable_fixits_remove): Likewise.
19443 (selftest::test_print_parseable_fixits_replace): Likewise.
19444 (selftest::test_print_parseable_fixits_bytes_vs_display_columns):
19445 New.
19446 (selftest::diagnostic_c_tests): Call it.
19447 * diagnostic.h (enum diagnostics_extra_output_kind): New.
19448 (diagnostic_context::parseable_fixits_p): Delete field in favor
19449 of...
19450 (diagnostic_context::extra_output_kind): ...this new field.
19451 * doc/invoke.texi (Environment Variables): Add
19452 GCC_EXTRA_DIAGNOSTIC_OUTPUT.
19453 * opts.c (common_handle_option): Update handling of
19454 OPT_fdiagnostics_parseable_fixits for change to diagnostic_context
19455 fields.
19456
19457 2021-01-14 Tamar Christina <tamar.christina@arm.com>
19458
19459 * tree-vect-slp-patterns.c (class complex_operations_pattern,
19460 complex_operations_pattern::matches,
19461 complex_operations_pattern::recognize,
19462 complex_operations_pattern::build): New.
19463 (slp_patterns): Use it.
19464
19465 2021-01-14 Tamar Christina <tamar.christina@arm.com>
19466
19467 * internal-fn.def (COMPLEX_FMS, COMPLEX_FMS_CONJ): New.
19468 * optabs.def (cmls_optab, cmls_conj_optab): New.
19469 * doc/md.texi: Document them.
19470 * tree-vect-slp-patterns.c (class complex_fms_pattern,
19471 complex_fms_pattern::matches, complex_fms_pattern::recognize,
19472 complex_fms_pattern::build): New.
19473
19474 2021-01-14 Tamar Christina <tamar.christina@arm.com>
19475
19476 * internal-fn.def (COMPLEX_FMA, COMPLEX_FMA_CONJ): New.
19477 * optabs.def (cmla_optab, cmla_conj_optab): New.
19478 * doc/md.texi: Document them.
19479 * tree-vect-slp-patterns.c (vect_match_call_p,
19480 class complex_fma_pattern, vect_slp_reset_pattern,
19481 complex_fma_pattern::matches, complex_fma_pattern::recognize,
19482 complex_fma_pattern::build): New.
19483
19484 2021-01-14 Tamar Christina <tamar.christina@arm.com>
19485
19486 * internal-fn.def (COMPLEX_MUL, COMPLEX_MUL_CONJ): New.
19487 * optabs.def (cmul_optab, cmul_conj_optab): New.
19488 * doc/md.texi: Document them.
19489 * tree-vect-slp-patterns.c (vect_match_call_complex_mla,
19490 vect_normalize_conj_loc, is_eq_or_top, vect_validate_multiplication,
19491 vect_build_combine_node, class complex_mul_pattern,
19492 complex_mul_pattern::matches, complex_mul_pattern::recognize,
19493 complex_mul_pattern::build): New.
19494
19495 2021-01-14 Tamar Christina <tamar.christina@arm.com>
19496
19497 * tree-vect-slp.c (optimize_load_redistribution_1): New.
19498 (optimize_load_redistribution, vect_is_slp_load_node): New.
19499 (vect_match_slp_patterns): Use it.
19500
19501 2021-01-14 Tamar Christina <tamar.christina@arm.com>
19502
19503 * tree-vect-slp-patterns.c (complex_add_pattern::build):
19504 Elide nodes.
19505
19506 2021-01-14 Thomas Schwinge <thomas@codesourcery.com>
19507
19508 * config/gcn/mkoffload.c (main): Create an offload image only in
19509 64-bit configurations.
19510
19511 2021-01-14 H.J. Lu <hjl.tools@gmail.com>
19512
19513 PR target/98667
19514 * config/i386/i386-options.c (ix86_option_override_internal):
19515 Issue an error for -fcf-protection with CF_BRANCH when compiling
19516 for 32-bit non-TARGET_CMOV targets.
19517
19518 2021-01-14 Uroš Bizjak <ubizjak@gmail.com>
19519
19520 PR target/98671
19521 * config/i386/i386-options.c (ix86_valid_target_attribute_inner_p):
19522 Remove declaration and initialization of shadow variable "ret".
19523 (ix86_option_override_internal): Remove delcaration of
19524 shadow variable "i". Redeclare shadowed variable to unsigned.
19525 * common/config/i386/i386-common.c (pta_size): Redeclare to unsigned.
19526 * config/i386/i386-builtins.c (get_builtin_code_for_version):
19527 Update for redeclaration.
19528 * config/i386/i386.h (pta_size): Ditto.
19529
19530 2021-01-14 Richard Biener <rguenther@suse.de>
19531
19532 PR tree-optimization/98674
19533 * tree-data-ref.c (base_supports_access_fn_components_p): New.
19534 (initialize_data_dependence_relation): For two bases without
19535 possible access fns resort to type size equality when determining
19536 shape compatibility.
19537
19538 2021-01-14 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
19539
19540 PR target/66791
19541 * config/arm/arm_neon.h: Replace calls to __builtin_vcge* by
19542 <=, >= operators in vcle and vcge intrinsics respectively.
19543 * config/arm/arm_neon_builtins.def: Remove entry for
19544 vcge and vcgeu.
19545
19546 2021-01-14 Uroš Bizjak <ubizjak@gmail.com>
19547
19548 PR target/98671
19549 * config/i386/i386-options.c (ix86_function_specific_save):
19550 Remove redundant assignment to opts->x_ix86_branch_cost.
19551 * config/i386/i386.c (ix86_prefetch_sse):
19552 Rename from x86_prefetch_sse. Update all uses.
19553 * config/i386/i386.h: Update for rename.
19554 * config/i386/i386-options.h: Ditto.
19555
19556 2021-01-14 Jakub Jelinek <jakub@redhat.com>
19557
19558 PR target/98670
19559 * config/i386/sse.md (*sse4_1_zero_extendv8qiv8hi2_3,
19560 *sse4_1_zero_extendv4hiv4si2_3, *sse4_1_zero_extendv2siv2di2_3):
19561 Use Bm instead of m for non-avx. Add isa attribute.
19562
19563 2021-01-14 Jakub Jelinek <jakub@redhat.com>
19564
19565 PR tree-optimization/96688
19566 * match.pd (~(X >> Y) -> ~X >> Y): New simplification if
19567 ~X can be simplified.
19568
19569 2021-01-14 Richard Sandiford <richard.sandiford@arm.com>
19570
19571 * tree-vect-stmts.c (vect_model_load_cost): Account for unused
19572 IFN_LOAD_LANES results.
19573
19574 2021-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19575
19576 * config/aarch64/aarch64-simd.md (aarch64_<su>xtl<mode>):
19577 Define.
19578 (aarch64_xtn<mode>): Likewise.
19579 * config/aarch64/aarch64-simd-builtins.def (sxtl, uxtl, xtn):
19580 Define
19581 builtins.
19582 * config/aarch64/arm_neon.h (vmovl_s8): Reimplement using
19583 builtin.
19584 (vmovl_s16): Likewise.
19585 (vmovl_s32): Likewise.
19586 (vmovl_u8): Likewise.
19587 (vmovl_u16): Likewise.
19588 (vmovl_u32): Likewise.
19589 (vmovn_s16): Likewise.
19590 (vmovn_s32): Likewise.
19591 (vmovn_s64): Likewise.
19592 (vmovn_u16): Likewise.
19593 (vmovn_u32): Likewise.
19594 (vmovn_u64): Likewise.
19595
19596 2021-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19597
19598 * config/aarch64/aarch64-simd.md (aarch64_<su>qxtn2<mode>_le):
19599 Define.
19600 (aarch64_<su>qxtn2<mode>_be): Likewise.
19601 (aarch64_<su>qxtn2<mode>): Likewise.
19602 * config/aarch64/aarch64-simd-builtins.def (sqxtn2, uqxtn2):
19603 Define builtins.
19604 * config/aarch64/iterators.md (SAT_TRUNC): Define code_iterator.
19605 (su): Handle ss_truncate and us_truncate.
19606 * config/aarch64/arm_neon.h (vqmovn_high_s16): Reimplement using
19607 builtin.
19608 (vqmovn_high_s32): Likewise.
19609 (vqmovn_high_s64): Likewise.
19610 (vqmovn_high_u16): Likewise.
19611 (vqmovn_high_u32): Likewise.
19612 (vqmovn_high_u64): Likewise.
19613
19614 2021-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19615
19616 * config/aarch64/aarch64-simd.md (aarch64_xtn2<mode>_le):
19617 Define.
19618 (aarch64_xtn2<mode>_be): Likewise.
19619 (aarch64_xtn2<mode>): Likewise.
19620 * config/aarch64/aarch64-simd-builtins.def (xtn2): Define
19621 builtins.
19622 * config/aarch64/arm_neon.h (vmovn_high_s16): Reimplement using
19623 builtins.
19624 (vmovn_high_s32): Likewise.
19625 (vmovn_high_s64): Likewise.
19626 (vmovn_high_u16): Likewise.
19627 (vmovn_high_u32): Likewise.
19628 (vmovn_high_u64): Likewise.
19629
19630 2021-01-13 Stafford Horne <shorne@gmail.com>
19631
19632 * config/or1k/or1k.h (ASM_PREFERRED_EH_DATA_FORMAT): New macro.
19633
19634 2021-01-13 Stafford Horne <shorne@gmail.com>
19635
19636 * config/or1k/linux.h (TARGET_ASM_FILE_END): Define macro.
19637
19638 2021-01-13 Stafford Horne <shorne@gmail.com>
19639
19640 * config/or1k/or1k.h (TARGET_CPU_CPP_BUILTINS): Add builtin
19641 define for __or1k_hard_float__.
19642
19643 2021-01-13 Stafford Horne <shorne@gmail.com>
19644
19645 * config/or1k/or1k.h (NO_PROFILE_COUNTERS): Define as 1.
19646 (PROFILE_HOOK): Define to call _mcount.
19647 (FUNCTION_PROFILER): Change from abort to no-op.
19648
19649 2021-01-13 Jakub Jelinek <jakub@redhat.com>
19650
19651 PR tree-optimization/96691
19652 * match.pd ((~X | C) ^ D -> (X | C) ^ (~D ^ C),
19653 (~X & C) ^ D -> (X & C) ^ (D ^ C)): New simplifications if
19654 (~D ^ C) or (D ^ C) can be simplified.
19655
19656 2021-01-13 Richard Biener <rguenther@suse.de>
19657
19658 PR tree-optimization/92645
19659 * match.pd (BIT_FIELD_REF to conversion): Delay canonicalization
19660 until after vector lowering.
19661
19662 2021-01-13 Richard Sandiford <richard.sandiford@arm.com>
19663
19664 * config/aarch64/aarch64-sve.md (fnma<mode>4): Extend from SVE_FULL_I
19665 to SVE_I.
19666 (@aarch64_pred_fnma<mode>, cond_fnma<mode>, *cond_fnma<mode>_2)
19667 (*cond_fnma<mode>_4, *cond_fnma<mode>_any): Likewise.
19668
19669 2021-01-13 Richard Sandiford <richard.sandiford@arm.com>
19670
19671 * config/aarch64/aarch64-sve.md (fma<mode>4): Extend from SVE_FULL_I
19672 to SVE_I.
19673 (@aarch64_pred_fma<mode>, cond_fma<mode>, *cond_fma<mode>_2)
19674 (*cond_fma<mode>_4, *cond_fma<mode>_any): Likewise.
19675
19676 2021-01-13 Richard Biener <rguenther@suse.de>
19677
19678 PR tree-optimization/92645
19679 * tree-vect-slp.c (vect_build_slp_tree_1): Relax supported
19680 BIT_FIELD_REF argument.
19681 (vect_build_slp_tree_2): Record the desired vector type
19682 on the external vector def.
19683 (vectorizable_slp_permutation): Handle required punning
19684 of existing vector defs.
19685
19686 2021-01-13 Richard Sandiford <richard.sandiford@arm.com>
19687
19688 * rtl-ssa/accesses.h (def_lookup): Fix order of comparison results.
19689
19690 2021-01-13 Richard Sandiford <richard.sandiford@arm.com>
19691
19692 * config/sh/sh.md (movsf_ie): Remove operands[2] test.
19693
19694 2021-01-13 Samuel Thibault <samuel.thibault@ens-lyon.org>
19695
19696 * config.gcc [$target == *-*-gnu*]: Enable
19697 'default_gnu_indirect_function'.
19698
19699 2021-01-13 Jakub Jelinek <jakub@redhat.com>
19700
19701 PR target/95905
19702 * optabs.c (expand_vec_perm_const): Don't force v0 and v1 into
19703 registers before calling targetm.vectorize.vec_perm_const, only after
19704 that.
19705 * config/i386/i386-expand.c (ix86_vectorize_vec_perm_const): Handle
19706 two argument permutation when one operand is zero vector and only
19707 after that force operands into registers.
19708 * config/i386/sse.md (*avx2_zero_extendv16qiv16hi2_1): New
19709 define_insn_and_split pattern.
19710 (*avx512bw_zero_extendv32qiv32hi2_1): Likewise.
19711 (*avx512f_zero_extendv16hiv16si2_1): Likewise.
19712 (*avx2_zero_extendv8hiv8si2_1): Likewise.
19713 (*avx512f_zero_extendv8siv8di2_1): Likewise.
19714 (*avx2_zero_extendv4siv4di2_1): Likewise.
19715 * config/mips/mips.c (mips_vectorize_vec_perm_const): Force operands
19716 into registers.
19717 * config/arm/arm.c (arm_vectorize_vec_perm_const): Likewise.
19718 * config/sparc/sparc.c (sparc_vectorize_vec_perm_const): Likewise.
19719 * config/ia64/ia64.c (ia64_vectorize_vec_perm_const): Likewise.
19720 * config/aarch64/aarch64.c (aarch64_vectorize_vec_perm_const): Likewise.
19721 * config/rs6000/rs6000.c (rs6000_vectorize_vec_perm_const): Likewise.
19722 * config/gcn/gcn.c (gcn_vectorize_vec_perm_const): Likewise. Use std::swap.
19723
19724 2021-01-13 Martin Liska <mliska@suse.cz>
19725
19726 PR tree-optimization/98455
19727 * gimple-if-to-switch.cc (condition_info::record_phi_mapping):
19728 Record also virtual PHIs.
19729 (pass_if_to_switch::execute): Return TODO_cleanup_cfg only
19730 conditionally.
19731
19732 2021-01-13 Jonathan Wakely <jwakely@redhat.com>
19733
19734 * doc/invoke.texi (C++ Modules): Fix typos.
19735
19736 2021-01-13 Richard Biener <rguenther@suse.de>
19737
19738 PR tree-optimization/98640
19739 * tree-ssa-sccvn.c (visit_nary_op): Do not try to
19740 handle plus or minus from a truncated operand to be
19741 sign-extended.
19742
19743 2021-01-13 Jakub Jelinek <jakub@redhat.com>
19744
19745 PR target/96938
19746 * config/i386/i386.md (*btr<mode>_1, *btr<mode>_2): New
19747 define_insn_and_split patterns.
19748 (splitter after *btr<mode>_2): New splitter.
19749
19750 2021-01-13 Martin Liska <mliska@suse.cz>
19751
19752 PR ipa/98652
19753 * cgraphunit.c (analyze_functions): Remove dead code.
19754
19755 2021-01-13 Qian Jianhua <qianjh@cn.fujitsu.com>
19756
19757 * config/aarch64/aarch64-cost-tables.h (a64fx_extra_costs): New.
19758 * config/aarch64/aarch64.c (a64fx_addrcost_table): New.
19759 (a64fx_regmove_cost, a64fx_vector_cost): New.
19760 (a64fx_tunings): Use the new added cost tables.
19761
19762 2021-01-13 Jakub Jelinek <jakub@redhat.com>
19763
19764 PR target/95905
19765 * config/i386/predicates.md (pmovzx_parallel): New predicate.
19766 * config/i386/sse.md (*sse4_1_zero_extendv8qiv8hi2_3): New
19767 define_insn_and_split pattern.
19768 (*sse4_1_zero_extendv4hiv4si2_3): Likewise.
19769 (*sse4_1_zero_extendv2siv2di2_3): Likewise.
19770
19771 2021-01-13 Julian Brown <julian@codesourcery.com>
19772
19773 * config/gcn/gcn.c (gcn_conditional_register_usage): Remove dead code
19774 to fix v0 register.
19775
19776 2021-01-13 Julian Brown <julian@codesourcery.com>
19777
19778 * config/gcn/gcn.c (gcn_md_reorg): Fix case where EXEC reg is live
19779 on entry to a BB.
19780
19781 2021-01-13 Julian Brown <julian@codesourcery.com>
19782
19783 * config/gcn/gcn-valu.md (recip<mode>2<exec>, recip<mode>2): Use unspec
19784 for reciprocal-approximation instructions.
19785 (div<mode>3): Use fused multiply-accumulate operations for reciprocal
19786 refinement and division result.
19787 * config/gcn/gcn.md (UNSPEC_RCP): New unspec constant.
19788
19789 2021-01-13 Julian Brown <julian@codesourcery.com>
19790
19791 * config/gcn/gcn-valu.md (subdf): Rename to...
19792 (subdf3): This.
19793
19794 2021-01-12 Martin Liska <mliska@suse.cz>
19795
19796 * gcov.c (source_info::debug): Fix printf format for 32-bit hosts.
19797
19798 2021-01-12 Andrea Corallo <andrea.corallo@arm.com>
19799
19800 * function-abi.h: Fix typo.
19801
19802 2021-01-12 Christophe Lyon <christophe.lyon@linaro.org>
19803
19804 PR target/97875
19805 PR target/97875
19806 * config/arm/arm.h (ARM_HAVE_NEON_V8QI_LDST): New macro.
19807 (ARM_HAVE_NEON_V16QI_LDST, ARM_HAVE_NEON_V4HI_LDST): Likewise.
19808 (ARM_HAVE_NEON_V8HI_LDST, ARM_HAVE_NEON_V2SI_LDST): Likewise.
19809 (ARM_HAVE_NEON_V4SI_LDST, ARM_HAVE_NEON_V4HF_LDST): Likewise.
19810 (ARM_HAVE_NEON_V8HF_LDST, ARM_HAVE_NEON_V4BF_LDST): Likewise.
19811 (ARM_HAVE_NEON_V8BF_LDST, ARM_HAVE_NEON_V2SF_LDST): Likewise.
19812 (ARM_HAVE_NEON_V4SF_LDST, ARM_HAVE_NEON_DI_LDST): Likewise.
19813 (ARM_HAVE_NEON_V2DI_LDST): Likewise.
19814 (ARM_HAVE_V8QI_LDST, ARM_HAVE_V16QI_LDST): Likewise.
19815 (ARM_HAVE_V4HI_LDST, ARM_HAVE_V8HI_LDST): Likewise.
19816 (ARM_HAVE_V2SI_LDST, ARM_HAVE_V4SI_LDST, ARM_HAVE_V4HF_LDST): Likewise.
19817 (ARM_HAVE_V8HF_LDST, ARM_HAVE_V4BF_LDST, ARM_HAVE_V8BF_LDST): Likewise.
19818 (ARM_HAVE_V2SF_LDST, ARM_HAVE_V4SF_LDST, ARM_HAVE_DI_LDST): Likewise.
19819 (ARM_HAVE_V2DI_LDST): Likewise.
19820 * config/arm/mve.md (*movmisalign<mode>_mve_store): New pattern.
19821 (*movmisalign<mode>_mve_load): New pattern.
19822 * config/arm/neon.md (movmisalign<mode>): Move to ...
19823 * config/arm/vec-common.md: ... here.
19824
19825 2021-01-12 Vladimir N. Makarov <vmakarov@redhat.com>
19826
19827 PR target/97969
19828 * lra-eliminations.c (eliminate_regs_in_insn): Add transformation
19829 of pattern 'plus (plus (hard reg, const), pseudo)'.
19830
19831 2021-01-12 Richard Biener <rguenther@suse.de>
19832
19833 PR tree-optimization/98550
19834 * tree-vect-slp.c (vect_record_max_nunits): Check whether
19835 the group size is a multiple of the vector element count.
19836 (vect_build_slp_tree_1): When we need to fail because
19837 the vector type choosen causes unrolling do so lazily
19838 without affecting matches only at the end to guide group splitting.
19839
19840 2021-01-12 Martin Liska <mliska@suse.cz>
19841
19842 PR c++/97284
19843 * optc-save-gen.awk: Compare also n_target_save vars with
19844 strcmp.
19845
19846 2021-01-12 Martin Liska <mliska@suse.cz>
19847
19848 * gcov.c (source_info::debug): New.
19849 (print_usage): Add --debug (-D) option.
19850 (process_args): Likewise.
19851 (generate_results): Call src->debug after
19852 accumulate_line_counts.
19853 (read_graph_file): Properly assign id for EXIT_BLOCK.
19854 * profile.c (branch_prob): Dump function body before it is
19855 instrumented.
19856
19857 2021-01-12 Jakub Jelinek <jakub@redhat.com>
19858
19859 PR tree-optimization/98629
19860 * tree-ssa-math-opts.c (arith_overflow_check_p): Don't update use_stmt
19861 unless returning non-zero.
19862
19863 2021-01-12 Jakub Jelinek <jakub@redhat.com>
19864
19865 PR tree-optimization/95731
19866 * tree-ssa-reassoc.c (optimize_range_tests_cmp_bitwise): Also optimize
19867 x < 0 && y < 0 && z < 0 into (x | y | z) < 0 for signed x, y, z.
19868 (optimize_range_tests): Call optimize_range_tests_cmp_bitwise
19869 only after optimize_range_tests_var_bound.
19870
19871 2021-01-12 Jakub Jelinek <jakub@redhat.com>
19872
19873 * configure.ac: Ensure c/Make-lang.in comes first in @all_lang_makefrags@.
19874 * configure: Regenerated.
19875
19876 2021-01-12 liuhongt <hongtao.liu@intel.com>
19877
19878 PR target/98612
19879 * config/i386/i386-builtins.h (BUILTIN_DESC_SWAP_OPERANDS):
19880 Deleted.
19881 * config/i386/i386-expand.c (ix86_expand_sse_comi): Delete
19882 dead code.
19883
19884 2021-01-12 Alexandre Oliva <oliva@adacore.com>
19885
19886 * ssa-iterators.h (end_imm_use_stmt_traverse): Forward
19887 declare.
19888 (auto_end_imm_use_stmt_traverse): New struct.
19889 (FOR_EACH_IMM_USE_STMT): Use it.
19890 (BREAK_FROM_IMM_USE_STMT, RETURN_FROM_IMM_USE_STMT): Remove,
19891 along with uses...
19892 * gimple-ssa-strength-reduction.c: ... here, ...
19893 * graphite-scop-detection.c: ... here, ...
19894 * ipa-modref.c, ipa-pure-const.c, ipa-sra.c: ... here, ...
19895 * tree-predcom.c, tree-ssa-ccp.c: ... here, ...
19896 * tree-ssa-dce.c, tree-ssa-dse.c: ... here, ...
19897 * tree-ssa-loop-ivopts.c, tree-ssa-math-opts.c: ... here, ...
19898 * tree-ssa-phiprop.c, tree-ssa.c: ... here, ...
19899 * tree-vect-slp.c: ... and here, ...
19900 * doc/tree-ssa.texi: ... and the example here.
19901
19902 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
19903
19904 * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3): Extend from
19905 SVE_FULL_I to SVE_I. Generate an UNSPEC_PRED_X.
19906 (*sdiv_pow2<mode>3): New pattern.
19907 (@cond_<sve_int_op><mode>): Extend from SVE_FULL_I to SVE_I.
19908 Wrap the ASRD in an UNSPEC_PRED_X.
19909 (*cond_<sve_int_op><mode>_2): Likewise. Replace the UNSPEC_PRED_X
19910 predicate with a constant PTRUE, if it isn't already.
19911 (*cond_<sve_int_op><mode>_z): Replace with...
19912 (*cond_<sve_int_op><mode>_any): ...this new pattern.
19913
19914 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
19915
19916 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2): Extend from
19917 SVE_FULL_I to SVE_I.
19918 (*cond_bic<mode>_any): Likewise.
19919
19920 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
19921
19922 * config/aarch64/aarch64-sve.md (<su>mul<mode>3_highpart)
19923 (@aarch64_pred_<MUL_HIGHPART:optab><mode>): Extend from SVE_FULL_I
19924 to SVE_I.
19925
19926 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
19927
19928 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): Extend from
19929 SVE_FULL_I to SVE_I.
19930 (*aarch64_cond_<su>abd<mode>_2): Likewise.
19931 (*aarch64_cond_<su>abd<mode>_any): Likewise.
19932 (@aarch64_pred_<su>abd<mode>): Likewise. Use UNSPEC_PRED_X
19933 for the max and min but not for the minus.
19934 (*aarch64_cond_<su>abd<mode>_3): New pattern.
19935
19936 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
19937
19938 * config/aarch64/iterators.md (SVE_24I): New iterator.
19939 * config/aarch64/aarch64-sve.md (*aarch64_adr<mode>_shift): Extend from
19940 SVE_FULL_SDI to SVE_24I. Use containers rather than elements.
19941
19942 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
19943
19944 * config/aarch64/aarch64-sve.md (@cond_<SVE_INT_BINARY:optab><mode>)
19945 (*cond_<SVE_INT_BINARY:optab><mode>_2): Extend from SVE_FULL_I
19946 to SVE_I.
19947 (*cond_<SVE_INT_BINARY:optab><mode>_3): Likewise.
19948 (*cond_<SVE_INT_BINARY:optab><mode>_any): Likewise.
19949 (*cond_<SVE_INT_BINARY:optab><mode>_2_const): Likewise.
19950 (*cond_<SVE_INT_BINARY:optab><mode>_any_const): Likewise.
19951
19952 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
19953
19954 * config/aarch64/aarch64-sve.md (<SVE_INT_BINARY_IMM:optab><mode>3)
19955 (@aarch64_pred_<SVE_INT_BINARY_IMM:optab><mode>)
19956 (*post_ra_<SVE_INT_BINARY_IMM:optab><mode>3): Extend from SVE_FULL_I
19957 to SVE_I.
19958
19959 2021-01-11 Richard Sandiford <richard.sandiford@arm.com>
19960
19961 * config/aarch64/aarch64-sve.md (<ASHIFT:optab><mode>3)
19962 (v<ASHIFT:optab><mode>3, @aarch64_pred_<optab><mode>)
19963 (*post_ra_v<ASHIFT:optab><mode>3): Extend from SVE_FULL_I to SVE_I.
19964
19965 2021-01-11 Martin Liska <mliska@suse.cz>
19966
19967 PR jit/98615
19968 * symtab-clones.h (clone_info::release): Release
19969 symtab::m_clones with ggc_delete as it's a GGC memory.
19970
19971 2021-01-11 Matthias Klose <doko@ubuntu.com>
19972
19973 * Makefile.in (LINK_PROGRESS): Show the link target.
19974
19975 2021-01-11 Richard Biener <rguenther@suse.de>
19976
19977 PR tree-optimization/91403
19978 * tree-vect-data-refs.c (vect_analyze_group_access_1): Cap
19979 single-element interleaving group size at 4096 elements.
19980
19981 2021-01-11 Richard Biener <rguenther@suse.de>
19982
19983 PR tree-optimization/98526
19984 * tree-vect-loop.c (vect_model_reduction_cost): Remove costing
19985 of the actual reduction op for the regular case.
19986 (vectorizable_reduction): Cost the stmts
19987 vect_transform_reduction produces here.
19988
19989 2021-01-11 Andreas Krebbel <krebbel@linux.ibm.com>
19990
19991 * tree-ssa-forwprop.c (simplify_vector_constructor): For
19992 big-endian, use UNPACK[_FLOAT]_HI.
19993
19994 2021-01-11 Tamar Christina <tamar.christina@arm.com>
19995
19996 * tree-vect-slp-patterns.c (class complex_pattern,
19997 class complex_add_pattern): Add parameters to matches.
19998 (complex_add_pattern::build): Free memory.
19999 (complex_add_pattern::matches): Move validation end of match.
20000 (complex_add_pattern::recognize): Likewise.
20001
20002 2021-01-11 Tamar Christina <tamar.christina@arm.com>
20003
20004 * tree-vect-slp-patterns.c (linear_loads_p): Fix externals.
20005
20006 2021-01-11 Tamar Christina <tamar.christina@arm.com>
20007
20008 * tree-vect-slp-patterns.c (is_linear_load_p): Fix ambiguity.
20009
20010 2021-01-11 Jakub Jelinek <jakub@redhat.com>
20011
20012 PR tree-optimization/95867
20013 * tree-ssa-math-opts.h: New header.
20014 * tree-ssa-math-opts.c: Include tree-ssa-math-opts.h.
20015 (powi_as_mults): No longer static. Use build_one_cst instead of
20016 build_real. Formatting fix.
20017 * tree-ssa-reassoc.c: Include tree-ssa-math-opts.h.
20018 (attempt_builtin_powi): Handle multiplication reassociation without
20019 powi_fndecl using powi_as_mults.
20020 (reassociate_bb): For integral types don't require
20021 -funsafe-math-optimizations to call attempt_builtin_powi.
20022
20023 2021-01-11 Jakub Jelinek <jakub@redhat.com>
20024
20025 PR tree-optimization/95852
20026 * tree-ssa-math-opts.c (maybe_optimize_guarding_check): Change
20027 mul_stmts parameter type to vec<gimple *> &. Before cond_stmt
20028 allow in the bb any of the stmts in that vector, div_stmt and
20029 up to 3 cast stmts.
20030 (arith_cast_equal_p): New function.
20031 (arith_overflow_check_p): Add cast_stmt argument, handle signed
20032 multiply overflow checks.
20033 (match_arith_overflow): Adjust caller. Handle signed multiply
20034 overflow checks.
20035
20036 2021-01-11 Jakub Jelinek <jakub@redhat.com>
20037
20038 PR tree-optimization/95852
20039 * tree-ssa-math-opts.c (maybe_optimize_guarding_check): New function.
20040 (uaddsub_overflow_check_p): Renamed to ...
20041 (arith_overflow_check_p): ... this. Handle also multiplication
20042 with overflow check.
20043 (match_uaddsub_overflow): Renamed to ...
20044 (match_arith_overflow): ... this. Add cfg_changed argument. Handle
20045 also multiplication with overflow check. Adjust function comment.
20046 (math_opts_dom_walker::after_dom_children): Adjust callers. Call
20047 match_arith_overflow also for MULT_EXPR.
20048
20049 2021-01-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20050
20051 * config/aarch64/arm_neon.h (vmovl_s8): Reimplement using
20052 __builtin_convertvector.
20053 (vmovl_s16): Likewise.
20054 (vmovl_s32): Likewise.
20055 (vmovl_u8): Likewise.
20056 (vmovl_u16): Likewise.
20057 (vmovl_u32): Likewise.
20058 (vmovn_s16): Likewise.
20059 (vmovn_s32): Likewise.
20060 (vmovn_s64): Likewise.
20061 (vmovn_u16): Likewise.
20062 (vmovn_u32): Likewise.
20063 (vmovn_u64): Likewise.
20064
20065 2021-01-11 Martin Liska <mliska@suse.cz>
20066
20067 * gimple-if-to-switch.cc (struct condition_info): Use auto_var.
20068 (if_chain::is_beneficial): Delete clusters
20069 (find_conditions): Make second argument of conditions_in_bbs a
20070 pointer so that we control over it's lifetime.
20071 (pass_if_to_switch::execute): Delete them.
20072
20073 2021-01-11 Kewen Lin <linkw@linux.ibm.com>
20074
20075 * ira.c (move_unallocated_pseudos): Check other_reg and skip if
20076 it isn't set.
20077
20078 2021-01-09 Maciej W. Rozycki <macro@linux-mips.org>
20079
20080 * config/vax/vax.md (cc): Remove mode attribute.
20081 (subst_<cc>, subst_f<cc>): Rename to...
20082 (subst_<mode>, subst_f<VAXccnz:mode>): ... these respectively.
20083 (*cbranch<VAXint:mode>4_<VAXcc:mode>): Update for `cc' removal.
20084 (*cbranch<VAXfp:mode>4_<VAXccnz:mode>): Likewise.
20085 (*branch_<mode>, *branch_<mode>_reversed): Likewise.
20086
20087 2021-01-09 Maciej W. Rozycki <macro@linux-mips.org>
20088
20089 * config/vax/vax.md (subst_f<cc>): Add mode to operands and
20090 `const_double_zero'.
20091
20092 2021-01-09 Maciej W. Rozycki <macro@linux-mips.org>
20093
20094 * config/pdp11/pdp11.md (PDPfp): New mode iterator.
20095 (fcc_cc, fcc_ccnz): Use it. Add mode to `const_double_zero' and
20096 operands.
20097
20098 2021-01-09 Maciej W. Rozycki <macro@linux-mips.org>
20099
20100 * genemit.c (gen_exp) <CONST_DOUBLE>: Handle `const_double_zero'
20101 rtx.
20102 * read-rtl.c (rtx_reader::read_rtx_code): Handle machine mode
20103 with `const_double_zero'.
20104 * doc/rtl.texi (Constant Expression Types): Document it.
20105
20106 2021-01-09 Jakub Jelinek <jakub@redhat.com>
20107
20108 PR c++/98556
20109 * tree-cfg.c (verify_gimple_assign_binary): Allow lhs of
20110 POINTER_DIFF_EXPR to be any integral type.
20111
20112 2021-01-09 Jakub Jelinek <jakub@redhat.com>
20113
20114 PR rtl-optimization/98603
20115 * function.c (instantiate_virtual_regs_in_insn): For asm goto
20116 with impossible constraints, drop all SETs, CLOBBERs, drop PARALLEL
20117 if any, set ASM_OPERANDS mode to VOIDmode and change
20118 ASM_OPERANDS_OUTPUT_CONSTRAINT and ASM_OPERANDS_OUTPUT_IDX.
20119
20120 2021-01-09 Alexandre Oliva <oliva@gnu.org>
20121
20122 PR debug/97714
20123 * final.c (notice_source_line): Narrow down the condition to
20124 skip a line-0 marker.
20125
20126 2021-01-08 Sergei Trofimovich <siarheit@google.com>
20127
20128 * ipa-modref.c (merge_call_side_effects): Fix
20129 linebreak split by reordering two print calls.
20130
20131 2021-01-08 Ilya Leoshkevich <iii@linux.ibm.com>
20132
20133 * config/s390/vector.md (*tf_to_fprx2_0): Rename from
20134 "*mov_tf_to_fprx2_0" for consistency, fix constraint.
20135 (*tf_to_fprx2_1): Rename from "*mov_tf_to_fprx2_1" for
20136 consistency, fix constraint.
20137
20138 2021-01-08 Ilya Leoshkevich <iii@linux.ibm.com>
20139
20140 * config/s390/s390-c.c (s390_def_or_undef_macro): Accept
20141 callables instead of mask values.
20142 (struct target_flag_set_p): New predicate.
20143 (s390_cpu_cpp_builtins_internal): Define or undefine
20144 __LONG_DOUBLE_VX__ macro.
20145
20146 2021-01-08 H.J. Lu <hjl.tools@gmail.com>
20147
20148 PR target/98482
20149 * config/i386/i386.c (x86_function_profiler): Use R10 and R11
20150 to call mcount in large model with PIC for NO_PROFILE_COUNTERS
20151 targets.
20152
20153 2021-01-08 Richard Biener <rguenther@suse.de>
20154
20155 * tree-ssa-sccvn.c (pass_fre::execute): Reset the SCEV hash table.
20156
20157 2021-01-08 Richard Biener <rguenther@suse.de>
20158
20159 * tree-vect-slp.c (scalar_stmts_to_slp_tree_map_t): Fix.
20160 (vect_build_slp_tree): On cache hit release the matched
20161 scalar stmts vector.
20162 * tree-vect-stmts.c (vectorizable_store): Properly free
20163 vec_oprnds before possibly gathering them again.
20164
20165 2021-01-08 Richard Biener <rguenther@suse.de>
20166
20167 PR tree-optimization/98544
20168 * tree-vect-slp.c (vect_optimize_slp): Always materialize
20169 permutes at a permute node.
20170
20171 2021-01-08 H.J. Lu <hjl.tools@gmail.com>
20172
20173 PR target/98482
20174 * config/i386/i386.c (x86_function_profiler): Use R10 to call
20175 mcount in large model. Sorry for large model with PIC.
20176
20177 2021-01-08 Jakub Jelinek <jakub@redhat.com>
20178
20179 PR target/98585
20180 * config/i386/i386.opt (ix86_cmodel, ix86_incoming_stack_boundary_arg,
20181 ix86_pmode, ix86_preferred_stack_boundary_arg, ix86_regparm,
20182 ix86_veclibabi_type): Remove x_ prefix, use TargetVariable instead of
20183 TargetSave and initialize for variables with enum types.
20184 (mfentry, mstack-protector-guard-reg=, mstack-protector-guard-offset=,
20185 mstack-protector-guard-symbol=): Add Save.
20186 * config/i386/i386-options.c (ix86_function_specific_save,
20187 ix86_function_specific_restore): Don't save or restore x_ix86_cmodel,
20188 x_ix86_incoming_stack_boundary_arg, x_ix86_pmode,
20189 x_ix86_preferred_stack_boundary_arg, x_ix86_regparm,
20190 x_ix86_veclibabi_type.
20191
20192 2021-01-08 Richard Sandiford <richard.sandiford@arm.com>
20193
20194 * config/aarch64/aarch64-sve.md (*cnot<mode>): Extend from
20195 SVE_FULL_I to SVE_I.
20196 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
20197
20198 2021-01-08 Richard Sandiford <richard.sandiford@arm.com>
20199
20200 * config/aarch64/aarch64-sve.md (*cond_uxt<mode>_2): Extend from
20201 SVE_FULL_I to SVE_I.
20202 (*cond_uxt<mode>_any): Likewise.
20203
20204 2021-01-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20205
20206 * config/aarch64/iterators.md (Vwhalf): New iterator.
20207 * config/aarch64/aarch64-simd.md (aarch64_<sur>adalp<mode>_3):
20208 Rename to...
20209 (aarch64_<sur>adalp<mode>): ... This. Make more
20210 builtin-friendly.
20211 (<sur>sadv16qi): Adjust callsite of the above.
20212 * config/aarch64/aarch64-simd-builtins.def (sadalp, uadalp): New
20213 builtins.
20214 * config/aarch64/arm_neon.h (vpadal_s8): Reimplement using
20215 builtins.
20216 (vpadal_s16): Likewise.
20217 (vpadal_u8): Likewise.
20218 (vpadal_u16): Likewise.
20219 (vpadalq_s8): Likewise.
20220 (vpadalq_s16): Likewise.
20221 (vpadalq_s32): Likewise.
20222 (vpadalq_u8): Likewise.
20223 (vpadalq_u16): Likewise.
20224 (vpadalq_u32): Likewise.
20225
20226 2021-01-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20227
20228 * config/aarch64/aarch64-simd.md (aarch64_<su>abd<mode>_3):
20229 Rename to...
20230 (aarch64_<su>abd<mode>): ... This.
20231 (<sur>sadv16qi): Adjust callsite of the above.
20232 * config/aarch64/aarch64-simd-builtins.def (sabd, uabd): Define
20233 builtins.
20234 * config/aarch64/arm_neon.h (vabd_s8): Reimplement using
20235 builtin.
20236 (vabd_s16): Likewise.
20237 (vabd_s32): Likewise.
20238 (vabd_u8): Likewise.
20239 (vabd_u16): Likewise.
20240 (vabd_u32): Likewise.
20241 (vabdq_s8): Likewise.
20242 (vabdq_s16): Likewise.
20243 (vabdq_s32): Likewise.
20244 (vabdq_u8): Likewise.
20245 (vabdq_u16): Likewise.
20246 (vabdq_u32): Likewise.
20247
20248 2021-01-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20249
20250 * config/aarch64/aarch64-simd-builtins.def (saba, uaba): Define
20251 builtins.
20252 * config/aarch64/arm_neon.h (vaba_s8): Implement using builtin.
20253 (vaba_s16): Likewise.
20254 (vaba_s32): Likewise.
20255 (vaba_u8): Likewise.
20256 (vaba_u16): Likewise.
20257 (vaba_u32): Likewise.
20258 (vabaq_s8): Likewise.
20259 (vabaq_s16): Likewise.
20260 (vabaq_s32): Likewise.
20261 (vabaq_u8): Likewise.
20262 (vabaq_u16): Likewise.
20263 (vabaq_u32): Likewise.
20264
20265 2021-01-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20266
20267 * config/aarch64/aarch64-simd.md (aba<mode>_3): Rename to...
20268 (aarch64_<su>aba<mode>): ... This. Handle uaba as well.
20269 Change RTL pattern to match.
20270
20271 2021-01-08 Kito Cheng <kito.cheng@sifive.com>
20272
20273 * common/config/riscv/riscv-common.c (riscv_current_subset_list): New.
20274 * config/riscv/riscv-c.c (riscv-subset.h): New.
20275 (INCLUDE_STRING): Define.
20276 (riscv_cpu_cpp_builtins): Add new style architecture extension
20277 test macros.
20278 * config/riscv/riscv-subset.h (riscv_subset_list::begin): New.
20279 (riscv_subset_list::end): New.
20280 (riscv_current_subset_list): New.
20281
20282 2021-01-08 Kito Cheng <kito.cheng@sifive.com>
20283
20284 * common/config/riscv/riscv-common.c (RISCV_DONT_CARE_VERSION):
20285 Move to riscv-subset.h.
20286 (struct riscv_subset_t): Ditto.
20287 (class riscv_subset_list): Ditto.
20288 * config/riscv/riscv-subset.h (RISCV_DONT_CARE_VERSION): Move
20289 from riscv-common.c.
20290 (struct riscv_subset_t): Ditto.
20291 (class riscv_subset_list): Ditto.
20292 * config/riscv/t-riscv ($(common_out_file)): Add file
20293 dependency.
20294
20295 2021-01-07 Jakub Jelinek <jakub@redhat.com>
20296
20297 PR target/98567
20298 * config/i386/i386.md (*bmi_blsi_<mode>_cmp, *bmi_blsi_<mode>_ccno):
20299 New define_insn patterns.
20300
20301 2021-01-07 Richard Sandiford <richard.sandiford@arm.com>
20302
20303 * config/aarch64/aarch64-sve.md (@cond_<SVE_INT_UNARY:optab><mode>)
20304 (*cond_<SVE_INT_UNARY:optab><mode>_2): Extend from SVE_FULL_I to SVE_I.
20305 (*cond_<SVE_INT_UNARY:optab><mode>_any): Likewise.
20306
20307 2021-01-07 Richard Sandiford <richard.sandiford@arm.com>
20308
20309 PR tree-optimization/98560
20310 * internal-fn.def (IFN_VCONDU, IFN_VCONDEQ): Use type vec_cond.
20311 * internal-fn.c (vec_cond_mask_direct): Get the data mode from
20312 argument 1.
20313 (vec_cond_direct): Likewise argument 2.
20314 (vec_condu_direct, vec_condeq_direct): Delete.
20315 (expand_vect_cond_optab_fn): Rename to...
20316 (expand_vec_cond_optab_fn): ...this, replacing old macro.
20317 (expand_vec_condu_optab_fn, expand_vec_condeq_optab_fn): Delete.
20318 (expand_vect_cond_mask_optab_fn): Rename to...
20319 (expand_vec_cond_mask_optab_fn): ...this, replacing old macro.
20320 (direct_vec_cond_mask_optab_supported_p): Treat the optab as a
20321 convert optab.
20322 (direct_vec_cond_optab_supported_p): Likewise.
20323 (direct_vec_condu_optab_supported_p): Delete.
20324 (direct_vec_condeq_optab_supported_p): Delete.
20325 * gimple-isel.cc: Include internal-fn.h.
20326 (gimple_expand_vec_cond_expr): Check that IFN_VCONDEQ is supported
20327 before using it.
20328
20329 2021-01-07 Richard Sandiford <richard.sandiford@arm.com>
20330
20331 PR tree-optimization/98560
20332 * gimple-isel.cc (gimple_expand_vec_cond_expr): If we fail to use
20333 IFN_VCOND{,U,EQ}, fall back on IFN_VCOND_MASK.
20334
20335 2021-01-07 Uroš Bizjak <ubizjak@gmail.com>
20336
20337 * config/i386/i386.md (insn): Merge from plusminus_insn, shift_insn,
20338 rotate_insn and optab code attributes.
20339 Update all uses to merged code attribute.
20340 * config/i386/sse.md: Update all uses to merged code attribute.
20341 * config/i386/mmx.md: Update all uses to merged code attribute.
20342
20343 2021-01-07 Jakub Jelinek <jakub@redhat.com>
20344
20345 PR tree-optimization/98568
20346 * gimple-ssa-store-merging.c (bswap_view_convert): New function.
20347 (bswap_replace): Use it.
20348
20349 2021-01-06 Vladimir N. Makarov <vmakarov@redhat.com>
20350
20351 PR rtl-optimization/97978
20352 * lra-int.h (lra_hard_reg_split_p): New external.
20353 * lra.c (lra_hard_reg_split_p): New global.
20354 (lra): Set up lra_hard_reg_split_p after splitting a hard reg.
20355 * lra-assigns.c (lra_assign): Don't check allocation correctness
20356 after hard reg splitting.
20357
20358 2021-01-06 Martin Sebor <msebor@redhat.com>
20359
20360 PR c++/98305
20361 * builtins.c (new_delete_mismatch_p): New overload.
20362 (new_delete_mismatch_p (tree, tree)): Call it.
20363
20364 2021-01-06 Alexandre Oliva <oliva@adacore.com>
20365
20366 * Makefile.in (T_GLIMITS_H): New.
20367 (stmp-int-hdrs): Depend on it, use it.
20368 * config/t-vxworks (T_GLIMITS_H): Override it.
20369 (vxw-glimits.h): New.
20370
20371 2021-01-06 Richard Biener <rguenther@suse.de>
20372
20373 PR tree-optimization/98513
20374 * value-range.cc (intersect_ranges): Compare the upper bounds
20375 for the expected relation.
20376
20377 2021-01-06 Gerald Pfeifer <gerald@pfeifer.com>
20378
20379 Revert:
20380 2020-12-28 Gerald Pfeifer <gerald@pfeifer.com>
20381
20382 * doc/standards.texi (HSAIL): Remove section.
20383
20384 2021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
20385
20386 * configure: Re-generate.
20387
20388 2021-01-05 Jakub Jelinek <jakub@redhat.com>
20389
20390 * doc/invoke.texi (-std=c++20): Adjust for the publication of
20391 ISO 14882:2020 standard.
20392 * doc/standards.texi: Likewise.
20393
20394 2021-01-05 Jakub Jelinek <jakub@redhat.com>
20395
20396 PR tree-optimization/94802
20397 * expr.h (maybe_optimize_sub_cmp_0): Declare.
20398 * expr.c: Include tree-pretty-print.h and flags.h.
20399 (maybe_optimize_sub_cmp_0): New function.
20400 (do_store_flag): Use it.
20401 * cfgexpand.c (expand_gimple_cond): Likewise.
20402
20403 2021-01-05 Richard Sandiford <richard.sandiford@arm.com>
20404
20405 * mux-utils.h (pointer_mux::m_ptr): Tweak description of contents.
20406 * rtlanal.c (simple_regno_set): Tweak description to clarify the
20407 RMW condition.
20408
20409 2021-01-05 Richard Biener <rguenther@suse.de>
20410
20411 PR tree-optimization/98516
20412 * tree-vect-slp.c (vect_optimize_slp): Permute the incoming
20413 lanes when materializing on a VEC_PERM node.
20414 (vectorizable_slp_permutation): Dump the permute properly.
20415
20416 2021-01-05 Richard Biener <rguenther@suse.de>
20417
20418 * tree-vect-slp.c (vect_slp_region): Move debug counter
20419 to cover individual subgraphs.
20420
20421 2021-01-05 Richard Biener <rguenther@suse.de>
20422
20423 PR tree-optimization/98428
20424 * tree-vect-slp.c (vect_build_slp_tree_1): Properly reject
20425 vector lane extracts for loop vectorization.
20426
20427 2021-01-05 Jakub Jelinek <jakub@redhat.com>
20428
20429 PR tree-optimization/98514
20430 * tree-ssa-reassoc.c (bb_rank): Change type from long * to
20431 int64_t *.
20432 (operand_rank): Change type from hash_map<tree, long> to
20433 hash_map<tree, int64_t>.
20434 (phi_rank): Change return type from long to int64_t.
20435 (loop_carried_phi): Change block_rank variable type from long to
20436 int64_t.
20437 (propagate_rank): Change return type, rank parameter type and
20438 op_rank variable type from long to int64_t.
20439 (find_operand_rank): Change return type from long to int64_t
20440 and change slot variable type from long * to int64_t *.
20441 (insert_operand_rank): Change rank parameter type from long to
20442 int64_t.
20443 (get_rank): Change return type and rank variable type from long to
20444 int64_t. Use PRId64 instead of ld to print the rank.
20445 (init_reassoc): Change rank variable type from long to int64_t
20446 and adjust correspondingly bb_rank and operand_rank initialization.
20447
20448 2021-01-05 Jakub Jelinek <jakub@redhat.com>
20449
20450 PR tree-optimization/96928
20451 * tree-ssa-phiopt.c (xor_replacement): New function.
20452 (tree_ssa_phiopt_worker): Call it.
20453
20454 2021-01-05 Jakub Jelinek <jakub@redhat.com>
20455
20456 PR tree-optimization/96930
20457 * match.pd ((A / (1 << B)) -> (A >> B)): If A is extended
20458 from narrower value which has the same type as 1 << B, perform
20459 the right shift on the narrower value followed by extension.
20460
20461 2021-01-05 Jakub Jelinek <jakub@redhat.com>
20462
20463 PR tree-optimization/96239
20464 * gimple-ssa-store-merging.c (maybe_optimize_vector_constructor): New
20465 function.
20466 (get_status_for_store_merging): Don't return BB_INVALID for blocks
20467 with potential bswap optimizable CONSTRUCTORs.
20468 (pass_store_merging::execute): Optimize vector CONSTRUCTORs with bswap
20469 if possible.
20470
20471 2021-01-05 Richard Biener <rguenther@suse.de>
20472
20473 PR tree-optimization/98381
20474 * tree.c (vector_element_bits): Properly compute bool vector
20475 element size.
20476 * tree-vect-loop.c (vectorizable_live_operation): Properly
20477 compute the last lane bit offset.
20478
20479 2021-01-05 Uroš Bizjak <ubizjak@gmail.com>
20480
20481 PR target/98522
20482 * config/i386/sse.md (sse_cvtps2pi): Redefine as define_insn_and_split.
20483 Clear the top 64 bytes of the input XMM register.
20484 (sse_cvttps2pi): Ditto.
20485
20486 2021-01-05 Uroš Bizjak <ubizjak@gmail.com>
20487
20488 PR target/98521
20489 * config/i386/xopintrin.h (_mm256_cmov_si256): New.
20490
20491 2021-01-05 H.J. Lu <hjl.tools@gmail.com>
20492
20493 PR target/98495
20494 * config/i386/xmmintrin.h (_mm_extract_pi16): Cast to unsigned
20495 short first.
20496
20497 2021-01-05 Claudiu Zissulescu <claziss@synopsys.com>
20498
20499 * config/arc/arc.md (maddsidi4_split): Use ACC_REG_FIRST.
20500 (umaddsidi4_split): Likewise.
20501
20502 2021-01-05 liuhongt <hongtao.liu@intel.com>
20503
20504 PR target/98461
20505 * config/i386/sse.md (*sse2_pmovskb_zexthisi): New
20506 define_insn_and_split for zero_extend of subreg HI of pmovskb
20507 result.
20508 (*sse2_pmovskb_zexthisi): Add new combine splitters for
20509 zero_extend of not of subreg HI of pmovskb result.
20510
20511 2021-01-05 Richard Sandiford <richard.sandiford@arm.com>
20512
20513 PR target/97269
20514 * explow.c (convert_memory_address_addr_space_1): Handle UNSPECs
20515 nested in CONSTs.
20516 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Use
20517 convert_memory_address to convert symbolic immediates to ptr_mode
20518 before forcing them to memory.
20519
20520 2021-01-05 Richard Sandiford <richard.sandiford@arm.com>
20521
20522 PR rtl-optimization/97144
20523 * recog.c (constrain_operands): Initialize matching_operand
20524 for each alternative, rather than only doing it once.
20525
20526 2021-01-05 Richard Sandiford <richard.sandiford@arm.com>
20527
20528 PR rtl-optimization/98403
20529 * rtl-ssa/changes.cc (function_info::finalize_new_accesses): Explain
20530 why we don't remove call clobbers.
20531 (function_info::apply_changes_to_insn): Don't attempt to add
20532 call clobbers here.
20533
20534 2021-01-05 Richard Sandiford <richard.sandiford@arm.com>
20535
20536 PR tree-optimization/98371
20537 * tree-vect-loop.c (vect_reanalyze_as_main_loop): New function.
20538 (vect_analyze_loop): If an epilogue loop appears to be cheaper
20539 than the main loop, re-analyze it as a main loop before adopting
20540 it as a main loop.
20541
20542 2021-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20543
20544 PR c++/98316
20545 * configure.ac (NETLIBS): Determine using AX_LIB_SOCKET_NSL.
20546 * aclocal.m4, configure: Regenerate.
20547 * Makefile.in (NETLIBS): Define.
20548 (BACKEND): Remove $(CODYLIB).
20549
20550 2021-01-05 Jakub Jelinek <jakub@redhat.com>
20551
20552 PR rtl-optimization/98334
20553 * simplify-rtx.c (simplify_context::simplify_binary_operation_1):
20554 Optimize (X - 1) * Y + Y to X * Y or (X + 1) * Y - Y to X * Y.
20555
20556 2021-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
20557
20558 * tree-inline.c (expand_call_inline): Restore input_location.
20559 Return result from recursive call.
20560
20561 2021-01-04 Richard Sandiford <richard.sandiford@arm.com>
20562
20563 PR tree-optimization/95401
20564 * config/aarch64/aarch64-sve-builtins.cc
20565 (gimple_folder::load_store_cookie): Use bits rather than bytes
20566 for the alignment argument to IFN_MASK_LOAD and IFN_MASK_STORE.
20567 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref): Likewise.
20568 * tree-vect-stmts.c (vectorizable_store): Likewise.
20569 (vectorizable_load): Likewise.
20570
20571 2021-01-04 Richard Biener <rguenther@suse.de>
20572
20573 PR tree-optimization/98308
20574 * tree-vect-stmts.c (vectorizable_load): Set invariant mask
20575 SLP vectype.
20576
20577 2021-01-04 Jakub Jelinek <jakub@redhat.com>
20578
20579 PR tree-optimization/95771
20580 * tree-ssa-loop-niter.c (number_of_iterations_popcount): Handle types
20581 with precision smaller than int's precision and types with precision
20582 twice as large as long long. Formatting fixes.
20583
20584 2021-01-04 Richard Biener <rguenther@suse.de>
20585
20586 PR tree-optimization/98464
20587 * tree-ssa-sccvn.c (vn_valueize_for_srt): Rename from ...
20588 (vn_valueize_wrapper): ... this. Temporarily adjust vn_context_bb.
20589 (process_bb): Adjust.
20590
20591 2021-01-04 Matthew Malcomson <matthew.malcomson@arm.com>
20592
20593 PR other/98437
20594 * doc/invoke.texi (-fsanitize=address): Fix wording describing
20595 clash with -fsanitize=hwaddress.
20596
20597 2021-01-04 Richard Biener <rguenther@suse.de>
20598
20599 PR tree-optimization/98282
20600 * tree-ssa-sccvn.c (vn_get_stmt_kind): Classify tcc_reference on
20601 invariants as VN_NARY.
20602
20603 2021-01-04 Richard Sandiford <richard.sandiford@arm.com>
20604
20605 PR target/89057
20606 * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Accept
20607 aarch64_simd_reg_or_zero for operand 2. Use the combinez patterns
20608 to handle zero operands.
20609
20610 2021-01-04 Richard Sandiford <richard.sandiford@arm.com>
20611
20612 * config/aarch64/aarch64.c (offset_6bit_signed_scaled_p): New function.
20613 (offset_6bit_unsigned_scaled_p): Fix typo in comment.
20614 (aarch64_sve_prefetch_operand_p): Accept MUL VLs in the range
20615 [-32, 31].
20616
20617 2021-01-04 Richard Biener <rguenther@suse.de>
20618
20619 PR tree-optimization/98393
20620 * tree-vect-slp.c (vect_build_slp_tree): Properly zero matches
20621 when hitting the limit.
20622
20623 2021-01-04 Richard Biener <rguenther@suse.de>
20624
20625 PR tree-optimization/98291
20626 * tree-vect-loop.c (vectorizable_reduction): Bypass
20627 associativity check for SLP reductions with VF 1.
20628
20629 2021-01-04 Jakub Jelinek <jakub@redhat.com>
20630
20631 PR tree-optimization/96782
20632 * match.pd (x == ~x -> false, x != ~x -> true): New simplifications.
20633
20634 2021-01-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
20635
20636 * collect-utils.c (collect_execute): Check dumppfx.
20637 * collect2.c (maybe_run_lto_and_relink, do_link): Pass atsuffix
20638 to collect_execute.
20639 (do_link): Add new parameter atsuffix.
20640 (main): Handle -dumpdir option. Skip one argument for
20641 -o, -isystem and -B options.
20642 * gcc.c (make_at_file): New helper function.
20643 (close_at_file): Use it.
20644
20645 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
20646
20647 * config/darwin.h (MIN_LD64_NO_COAL_SECTS): Adjust.
20648 Amend handling for LD64_VERSION fallback defaults.
20649
20650 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
20651
20652 * config.gcc: Compute default version information
20653 from the configured target. Likewise defaults for
20654 ld64.
20655 * config/darwin10.h: Removed.
20656 * config/darwin12.h: Removed.
20657 * config/darwin9.h: Removed.
20658 * config/rs6000/darwin8.h: Removed.
20659
20660 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
20661
20662 * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Delete.
20663
20664 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
20665
20666 * config/darwin9.h (STACK_CHECK_STATIC_BUILTIN): Move from here..
20667 * config/darwin.h (STACK_CHECK_STATIC_BUILTIN): .. to here.
20668
20669 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
20670
20671 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move from
20672 here...
20673 * config/darwin.h (LINK_GCC_C_SEQUENCE_SPEC): ... to here.
20674
20675 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
20676
20677 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move the spec
20678 for the Darwin10 unwinder stub from here ...
20679 * config/darwin.h (LINK_COMMAND_SPEC_A): ... to here.
20680
20681 2021-01-02 Iain Sandoe <iain@sandoe.co.uk>
20682
20683 * config/darwin.h (DSYMUTIL_SPEC): Default to DWARF
20684 (ASM_DEBUG_SPEC):Only define if the assembler supports
20685 stabs.
20686 (PREFERRED_DEBUGGING_TYPE): Default to DWARF.
20687 (DARWIN_PREFER_DWARF): Define.
20688 * config/darwin9.h (PREFERRED_DEBUGGING_TYPE): Remove.
20689 (DARWIN_PREFER_DWARF): Likewise
20690 (DSYMUTIL_SPEC): Likewise.
20691 (COLLECT_RUN_DSYMUTIL): Likewise.
20692 (ASM_DEBUG_SPEC): Likewise.
20693 (ASM_DEBUG_OPTION_SPEC): Likewise.
20694
20695 2021-01-02 Jan Hubicka <jh@suse.cz>
20696
20697 * cfg.c (free_block): ggc_free bb.
20698
20699 2021-01-01 Jakub Jelinek <jakub@redhat.com>
20700
20701 * gcc.c (process_command): Update copyright notice dates.
20702 * gcov-dump.c (print_version): Ditto.
20703 * gcov.c (print_version): Ditto.
20704 * gcov-tool.c (print_version): Ditto.
20705 * gengtype.c (create_file): Ditto.
20706 * doc/cpp.texi: Bump @copying's copyright year.
20707 * doc/cppinternals.texi: Ditto.
20708 * doc/gcc.texi: Ditto.
20709 * doc/gccint.texi: Ditto.
20710 * doc/gcov.texi: Ditto.
20711 * doc/install.texi: Ditto.
20712 * doc/invoke.texi: Ditto.
20713
20714 2021-01-01 Jakub Jelinek <jakub@redhat.com>
20715
20716 * ChangeLog-2020: Rotate ChangeLog. New file.
20717
20718 \f
20719 Copyright (C) 2021 Free Software Foundation, Inc.
20720
20721 Copying and distribution of this file, with or without modification,
20722 are permitted in any medium without royalty provided the copyright
20723 notice and this notice are preserved.